name: string;
}
+/** @deprecated Use Text (with `isHighlighted` prop) from Echoes instead.
+ */
export function TextBold({ match, name, className }: TextBoldProps) {
return match ? (
<StyledText
);
}
+/** @deprecated Use Text (with `isSubdued` prop) from Echoes instead.
+ */
export function TextMuted({ text, className }: { className?: string; text: string }) {
return (
<StyledMutedText className={className} title={text}>
);
}
+/** @deprecated Use Heading from Echoes instead.
+ */
export function PageTitle({
text,
className,
);
}
+/** @deprecated Use Text (with `colorOverride='echoes-color-text-danger'` prop) from Echoes instead.
+ */
export function TextError({
as,
text,
);
}
+/** @deprecated Use Text (with `colorOverride='echoes-color-text-success'` prop) from Echoes instead.
+ */
export function TextSuccess({ text, className }: Readonly<{ className?: string; text: string }>) {
return (
<StyledTextSuccess className={className} title={text}>
);
}
-export const StyledText = styled.span`
+const StyledText = styled.span`
${tw`sw-inline-block`};
${tw`sw-truncate`};
${tw`sw-font-semibold`};
}
`;
+/** @deprecated Use Text (with `isSubdued` prop) from Echoes instead.
+ */
export const StyledMutedText = styled(StyledText)`
${tw`sw-font-regular`};
color: ${themeColor('dropdownMenuSubTitle')};
`;
+/** @deprecated Use Heading from Echoes instead.
+ */
export const StyledPageTitle = styled(StyledText)`
${tw`sw-block`};
${tw`sw-text-base`}
color: ${themeColor('textSuccess')};
`;
-export const TextDisabled = styled.span`
- ${tw`sw-font-regular`};
- color: ${themeColor('textDisabled')};
-`;
-
+/** @deprecated Use Text (with `isSubdued` prop) from Echoes instead.
+ */
export const TextSubdued = styled.span`
${tw`sw-font-regular`};
color: ${themeColor('textSubdued')};
`;
+/** @deprecated Use Text (with `isSubdued` prop) from Echoes instead.
+ */
export const LightLabel = styled.span`
color: ${themeColor('pageContentLight')};
`;
+/** @deprecated Use Label or Text (with `isHighlighted` prop) from Echoes instead.
+ */
export const DarkLabel = styled.label`
color: ${themeColor('pageContentDark')};
${tw`sw-body-sm-highlight`}
`;
+/** @deprecated Use Text from Echoes instead.
+ */
export const LightPrimary = styled.span`
color: ${themeContrast('primaryLight')};
`;
+/** @deprecated Use Text (with `isHighlighted` prop) from Echoes instead.
+ */
export const Highlight = styled.strong`
color: ${themeColor('pageContentDark')};
* 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/theme';
+/** @deprecated Use Heading from Echoes instead.
+ */
export const Title = styled.h1`
${tw`sw-heading-lg`}
${tw`sw-mb-4`}
color: ${themeColor('pageTitle')};
`;
+/** @deprecated Use Heading from Echoes instead.
+ */
export const SubTitle = styled.h2`
${tw`sw-heading-md`}
${tw`sw-mb-4`}
color: ${themeColor('pageTitle')};
`;
+/** @deprecated Use Heading from Echoes instead.
+ */
export const HeadingDark = styled.h2`
color: ${themeColor('pageContentDark')};
${tw`sw-body-sm-highlight`}
`;
+/** @deprecated Use Heading from Echoes instead.
+ */
export const SubHeading = styled.h3`
${tw`sw-body-md-highlight`}
${tw`sw-mb-2`}
color: ${themeColor('pageContent')};
`;
+/** @deprecated Use Heading from Echoes instead.
+ */
export const SubHeadingHighlight = styled(SubHeading)`
color: ${themeColor('pageContentDark')};
`;