import tw from 'twin.macro';
import { themeColor, themeContrast } from '../helpers';
import { ButtonSecondary } from '../sonar-aligned/components/buttons';
+import { Note } from '../sonar-aligned/components/typography';
import { BubbleColorVal } from '../types/charts';
-import { Note } from './Text';
import { Tooltip } from './Tooltip';
const TICKS_COUNT = 5;
${tw`sw-body-sm-highlight`}
`;
-
-export const Note = styled.span`
- color: ${themeColor('pageContentLight')};
-
- ${tw`sw-body-sm`}
-`;
import tw from 'twin.macro';
import { themeColor } from '../helpers';
import { BareButton } from '../sonar-aligned/components/buttons';
-import { Note } from './Text';
+import { Note } from '../sonar-aligned/components/typography';
import { OpenCloseIndicator } from './icons';
interface Props {
*/
import { screen } from '@testing-library/react';
import { renderWithContext } from '../../helpers/testUtils';
+import { Note } from '../../sonar-aligned';
import { FCProps } from '../../types/misc';
import { Banner } from '../Banner';
-import { Note } from '../Text';
it('should render with close button', async () => {
const onDismiss = jest.fn();
import classNames from 'classnames';
import { useCallback, useRef, useState } from 'react';
import { ButtonSecondary } from '../../sonar-aligned/components/buttons/ButtonSecondary';
-import { Note } from '../Text';
+import { Note } from '../../sonar-aligned/components/typography';
interface Props {
chooseLabel: string;
import styled from '@emotion/styled';
import { ReactNode } from 'react';
import tw from 'twin.macro';
-import { Highlight, Note } from '../Text';
+import { Note } from '../../sonar-aligned';
+import { Highlight } from '../Text';
import { RequiredIcon } from '../icons';
interface Props {
export * from './Card';
export * from './MetricsRatingBadge';
export * from './buttons';
+export * from './typography';
--- /dev/null
+/*
+ * SonarQube
+ * Copyright (C) 2009-2024 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+import styled from '@emotion/styled';
+import tw from 'twin.macro';
+import { themeColor } from '../../../helpers';
+
+export const Note = styled.span`
+ color: ${themeColor('pageContentLight')};
+
+ ${tw`sw-body-sm`}
+`;
--- /dev/null
+/*
+ * SonarQube
+ * Copyright (C) 2009-2024 SonarSource SA
+ * mailto:info AT sonarsource DOT com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+export * from './Note';