@nypl/design-system-react-components 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +466 -17
- package/dist/design-system-react-components.cjs +528 -0
- package/dist/design-system-react-components.js +37569 -0
- package/dist/src/components/Accordion/Accordion.d.ts +29 -0
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +23 -0
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +43 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +24 -0
- package/dist/src/components/Button/Button.d.ts +35 -0
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +25 -0
- package/dist/src/components/Card/Card.d.ts +55 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +47 -0
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +51 -0
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +31 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +82 -0
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +64 -0
- package/dist/src/components/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -0
- package/dist/src/components/Fieldset/Fieldset.d.ts +24 -0
- package/dist/src/components/Form/Form.d.ts +31 -0
- package/dist/src/components/Grid/SimpleGrid.d.ts +20 -0
- package/dist/src/components/Heading/Heading.d.ts +42 -0
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +34 -0
- package/dist/src/components/Hero/Hero.d.ts +49 -0
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +11 -0
- package/dist/src/components/Icons/Icon.d.ts +41 -0
- package/dist/src/components/Icons/IconSvgs.d.ts +196 -0
- package/dist/src/components/Icons/iconVariables.d.ts +6 -0
- package/dist/src/components/Image/Image.d.ts +68 -0
- package/dist/src/components/Label/Label.d.ts +25 -0
- package/dist/src/components/Link/Link.d.ts +32 -0
- package/dist/src/components/List/List.d.ts +43 -0
- package/dist/src/components/Logo/Logo.d.ts +29 -0
- package/dist/src/components/Logo/LogoSvgs.d.ts +166 -0
- package/dist/src/components/Logo/logoVariables.d.ts +2 -0
- package/dist/src/components/Modal/Modal.d.ts +35 -0
- package/dist/src/components/Notification/Notification.d.ts +52 -0
- package/dist/src/components/Pagination/Pagination.d.ts +27 -0
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +32 -0
- package/dist/src/components/Radio/Radio.d.ts +43 -0
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +51 -0
- package/dist/src/components/SearchBar/SearchBar.d.ts +58 -0
- package/dist/src/components/Select/Select.d.ts +59 -0
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +42 -0
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +19 -0
- package/dist/src/components/Slider/Slider.d.ts +65 -0
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +42 -0
- package/dist/src/components/SocialMediaLinks/SocialMediaLinksUtils.d.ts +7 -0
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +19 -0
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +30 -0
- package/dist/src/components/StyleGuide/ColorCard.d.ts +348 -0
- package/dist/src/components/StyledList/StyledList.d.ts +26 -0
- package/dist/src/components/Table/Table.d.ts +32 -0
- package/dist/src/components/Tabs/Tabs.d.ts +28 -0
- package/dist/src/components/TagSet/TagSet.d.ts +24 -0
- package/dist/src/components/TagSet/TagSetExplore.d.ts +28 -0
- package/dist/src/components/TagSet/TagSetFilter.d.ts +25 -0
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
- package/dist/src/components/Template/Template.d.ts +140 -0
- package/dist/src/components/Text/Text.d.ts +27 -0
- package/dist/src/components/TextInput/TextInput.d.ts +89 -0
- package/dist/src/components/Toggle/Toggle.d.ts +43 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +42 -0
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useCarouselStyles.d.ts +17 -0
- package/dist/src/hooks/useCloseDropDown.d.ts +7 -0
- package/dist/src/hooks/useNYPLBreakpoints.d.ts +13 -0
- package/dist/src/hooks/useNYPLTheme.d.ts +75 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +5 -0
- package/dist/src/hooks/useWindowSize.d.ts +10 -0
- package/dist/src/index.d.ts +83 -0
- package/dist/src/theme/components/accordion.d.ts +34 -0
- package/dist/src/theme/components/alphabetFilter.d.ts +40 -0
- package/dist/src/theme/components/audioPlayer.d.ts +16 -0
- package/dist/src/theme/components/breadcrumb.d.ts +158 -0
- package/dist/src/theme/components/button.d.ts +152 -0
- package/dist/src/theme/components/buttonGroup.d.ts +11 -0
- package/dist/src/theme/components/card.d.ts +485 -0
- package/dist/src/theme/components/checkbox.d.ts +178 -0
- package/dist/src/theme/components/checkboxGroup.d.ts +14 -0
- package/dist/src/theme/components/componentWrapper.d.ts +12 -0
- package/dist/src/theme/components/customTable.d.ts +739 -0
- package/dist/src/theme/components/datePicker.d.ts +17 -0
- package/dist/src/theme/components/feedbackBox.d.ts +100 -0
- package/dist/src/theme/components/fieldset.d.ts +24 -0
- package/dist/src/theme/components/filterBar.d.ts +46 -0
- package/dist/src/theme/components/global.d.ts +141 -0
- package/dist/src/theme/components/globalMixins.d.ts +40 -0
- package/dist/src/theme/components/heading.d.ts +372 -0
- package/dist/src/theme/components/helperErrorText.d.ts +18 -0
- package/dist/src/theme/components/hero.d.ts +639 -0
- package/dist/src/theme/components/horizontalRule.d.ts +18 -0
- package/dist/src/theme/components/icon.d.ts +62251 -0
- package/dist/src/theme/components/image.d.ts +754 -0
- package/dist/src/theme/components/label.d.ts +22 -0
- package/dist/src/theme/components/link.d.ts +152 -0
- package/dist/src/theme/components/list.d.ts +230 -0
- package/dist/src/theme/components/logo.d.ts +477 -0
- package/dist/src/theme/components/modal.d.ts +27 -0
- package/dist/src/theme/components/multiSelect.d.ts +29 -0
- package/dist/src/theme/components/multiSelectMenuButton.d.ts +99 -0
- package/dist/src/theme/components/notification.d.ts +137 -0
- package/dist/src/theme/components/pagination.d.ts +19 -0
- package/dist/src/theme/components/progressIndicator.d.ts +69 -0
- package/dist/src/theme/components/radio.d.ts +202 -0
- package/dist/src/theme/components/radioGroup.d.ts +14 -0
- package/dist/src/theme/components/searchBar.d.ts +34 -0
- package/dist/src/theme/components/select.d.ts +126 -0
- package/dist/src/theme/components/skeletonLoader.d.ts +105 -0
- package/dist/src/theme/components/skipNavigation.d.ts +28 -0
- package/dist/src/theme/components/slider.d.ts +78 -0
- package/dist/src/theme/components/socialmedialinks.d.ts +192 -0
- package/dist/src/theme/components/statusBadge.d.ts +37 -0
- package/dist/src/theme/components/structuredContent.d.ts +454 -0
- package/dist/src/theme/components/styledList.d.ts +51 -0
- package/dist/src/theme/components/tabs.d.ts +172 -0
- package/dist/src/theme/components/tagSet.d.ts +154 -0
- package/dist/src/theme/components/template.d.ts +98 -0
- package/dist/src/theme/components/text.d.ts +59 -0
- package/dist/src/theme/components/textInput.d.ts +360 -0
- package/dist/src/theme/components/toggle.d.ts +129 -0
- package/dist/src/theme/components/tooltip.d.ts +21 -0
- package/dist/src/theme/components/videoPlayer.d.ts +47 -0
- package/dist/src/theme/foundations/breakpoints.d.ts +23 -0
- package/dist/src/theme/foundations/colors.d.ts +3 -0
- package/dist/src/theme/foundations/global.d.ts +68 -0
- package/dist/src/theme/foundations/radii.d.ts +11 -0
- package/dist/src/theme/foundations/shadows.d.ts +4 -0
- package/dist/src/theme/foundations/spacing.d.ts +96 -0
- package/dist/src/theme/foundations/typography.d.ts +8 -0
- package/dist/src/theme/index.d.ts +20 -0
- package/dist/src/theme/internalChakraProvider.d.ts +67 -0
- package/dist/src/theme/provider.d.ts +4 -0
- package/dist/src/theme/types.d.ts +1 -0
- package/dist/src/utils/colorUtils.d.ts +5 -0
- package/dist/src/utils/interfaces.d.ts +5 -0
- package/dist/src/utils/utils.d.ts +41 -0
- package/dist/styles.css +1 -0
- package/package.json +129 -24
- package/CHANGELOG.md +0 -139
- package/dist/design-system-react-components.min.js +0 -23
- package/dist/design-system-react-components.min.js.map +0 -1
- package/lib/components/00-base/Container/Container.d.ts +0 -6
- package/lib/components/00-base/Container/Container.js +0 -19
- package/lib/components/00-base/Container/Modal.d.ts +0 -12
- package/lib/components/00-base/Container/Modal.js +0 -29
- package/lib/components/00-base/Container/Modal.stories.d.ts +0 -7
- package/lib/components/00-base/Container/Modal.stories.js +0 -20
- package/lib/components/00-base/Placeholder.d.ts +0 -10
- package/lib/components/00-base/Placeholder.js +0 -23
- package/lib/components/00-base/SectionName.d.ts +0 -4
- package/lib/components/00-base/SectionName.js +0 -16
- package/lib/components/01-atoms/Button/Button.d.ts +0 -52
- package/lib/components/01-atoms/Button/Button.js +0 -76
- package/lib/components/01-atoms/Button/Button.stories.d.ts +0 -14
- package/lib/components/01-atoms/Button/Button.stories.js +0 -33
- package/lib/components/01-atoms/Button/ButtonTypes.d.ts +0 -10
- package/lib/components/01-atoms/Button/ButtonTypes.js +0 -14
- package/lib/components/01-atoms/Forms/Checkbox.d.ts +0 -21
- package/lib/components/01-atoms/Forms/Checkbox.js +0 -27
- package/lib/components/01-atoms/Forms/Checkbox.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/Checkbox.stories.js +0 -23
- package/lib/components/01-atoms/Forms/DateRangeForm.d.ts +0 -31
- package/lib/components/01-atoms/Forms/DateRangeForm.js +0 -27
- package/lib/components/01-atoms/Forms/DateRangeForm.stories.d.ts +0 -9
- package/lib/components/01-atoms/Forms/DateRangeForm.stories.js +0 -23
- package/lib/components/01-atoms/Forms/FormDropdown.d.ts +0 -22
- package/lib/components/01-atoms/Forms/FormDropdown.js +0 -64
- package/lib/components/01-atoms/Forms/FormDropdown.stories.d.ts +0 -8
- package/lib/components/01-atoms/Forms/FormDropdown.stories.js +0 -22
- package/lib/components/01-atoms/Forms/HelperErrorText.d.ts +0 -26
- package/lib/components/01-atoms/Forms/HelperErrorText.js +0 -29
- package/lib/components/01-atoms/Forms/HelperErrorText.stories.d.ts +0 -9
- package/lib/components/01-atoms/Forms/HelperErrorText.stories.js +0 -23
- package/lib/components/01-atoms/Forms/Input.d.ts +0 -47
- package/lib/components/01-atoms/Forms/Input.js +0 -39
- package/lib/components/01-atoms/Forms/Input.stories.d.ts +0 -10
- package/lib/components/01-atoms/Forms/Input.stories.js +0 -22
- package/lib/components/01-atoms/Forms/Label.d.ts +0 -19
- package/lib/components/01-atoms/Forms/Label.js +0 -22
- package/lib/components/01-atoms/Forms/Label.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/Label.stories.js +0 -20
- package/lib/components/01-atoms/Forms/TextField.d.ts +0 -26
- package/lib/components/01-atoms/Forms/TextField.js +0 -36
- package/lib/components/01-atoms/Forms/TextField.stories.d.ts +0 -7
- package/lib/components/01-atoms/Forms/TextField.stories.js +0 -20
- package/lib/components/01-atoms/Images/Icons/Icon.d.ts +0 -14
- package/lib/components/01-atoms/Images/Icons/Icon.js +0 -38
- package/lib/components/01-atoms/Images/Image/Image.d.ts +0 -8
- package/lib/components/01-atoms/Images/Image/Image.js +0 -32
- package/lib/components/01-atoms/Images/Image/Image.stories.d.ts +0 -8
- package/lib/components/01-atoms/Images/Image/Image.stories.js +0 -24
- package/lib/components/01-atoms/Links/BasicLink.d.ts +0 -15
- package/lib/components/01-atoms/Links/BasicLink.js +0 -50
- package/lib/components/01-atoms/Links/BasicLink.stories.d.ts +0 -8
- package/lib/components/01-atoms/Links/BasicLink.stories.js +0 -21
- package/lib/components/01-atoms/Links/IconLink.d.ts +0 -13
- package/lib/components/01-atoms/Links/IconLink.js +0 -44
- package/lib/components/01-atoms/Links/IconLink.stories.d.ts +0 -10
- package/lib/components/01-atoms/Links/IconLink.stories.js +0 -24
- package/lib/components/01-atoms/Links/Link.d.ts +0 -13
- package/lib/components/01-atoms/Links/Link.js +0 -51
- package/lib/components/01-atoms/Links/UnderlineLink.d.ts +0 -11
- package/lib/components/01-atoms/Links/UnderlineLink.js +0 -29
- package/lib/components/01-atoms/Links/UnderlineLink.stories.d.ts +0 -8
- package/lib/components/01-atoms/Links/UnderlineLink.stories.js +0 -21
- package/lib/components/01-atoms/Text/Headings/Heading.d.ts +0 -16
- package/lib/components/01-atoms/Text/Headings/Heading.js +0 -40
- package/lib/components/01-atoms/Text/Headings/Heading.stories.d.ts +0 -12
- package/lib/components/01-atoms/Text/Headings/Heading.stories.js +0 -35
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.d.ts +0 -2
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.js +0 -18
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.d.ts +0 -7
- package/lib/components/01-atoms/Text/Headings/RNSectionTitle.stories.js +0 -24
- package/lib/components/01-atoms/Text/Text/BodyText.d.ts +0 -12
- package/lib/components/01-atoms/Text/Text/BodyText.js +0 -73
- package/lib/components/01-atoms/Text/Text/BodyText.stories.d.ts +0 -14
- package/lib/components/01-atoms/Text/Text/BodyText.stories.js +0 -54
- package/lib/components/02-molecules/Cards/EditionCard.d.ts +0 -31
- package/lib/components/02-molecules/Cards/EditionCard.js +0 -51
- package/lib/components/02-molecules/Cards/EditionCard.stories.d.ts +0 -13
- package/lib/components/02-molecules/Cards/EditionCard.stories.js +0 -26
- package/lib/components/02-molecules/Cards/SearchResultItem.d.ts +0 -17
- package/lib/components/02-molecules/Cards/SearchResultItem.js +0 -40
- package/lib/components/02-molecules/Cards/SearchResultItem.stories.d.ts +0 -8
- package/lib/components/02-molecules/Cards/SearchResultItem.stories.js +0 -31
- package/lib/components/02-molecules/Dropdown/Dropdown.d.ts +0 -21
- package/lib/components/02-molecules/Dropdown/Dropdown.js +0 -55
- package/lib/components/02-molecules/Dropdown/Dropdown.stories.d.ts +0 -14
- package/lib/components/02-molecules/Dropdown/Dropdown.stories.js +0 -33
- package/lib/components/02-molecules/Headings/SectionTitle.d.ts +0 -17
- package/lib/components/02-molecules/Headings/SectionTitle.js +0 -42
- package/lib/components/02-molecules/Headings/SectionTitle.stories.d.ts +0 -8
- package/lib/components/02-molecules/Headings/SectionTitle.stories.js +0 -20
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.d.ts +0 -14
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.js +0 -51
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -8
- package/lib/components/02-molecules/Menus/Breadcrumbs/Breadcrumbs.stories.js +0 -30
- package/lib/components/02-molecules/Menus/Pagination/Pagination.d.ts +0 -11
- package/lib/components/02-molecules/Menus/Pagination/Pagination.js +0 -57
- package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.d.ts +0 -7
- package/lib/components/02-molecules/Menus/Pagination/Pagination.stories.js +0 -20
- package/lib/components/02-molecules/SearchBar/SearchBar.d.ts +0 -26
- package/lib/components/02-molecules/SearchBar/SearchBar.js +0 -69
- package/lib/components/02-molecules/SearchBar/SearchBar.stories.d.ts +0 -11
- package/lib/components/02-molecules/SearchBar/SearchBar.stories.js +0 -24
- package/lib/components/03-organisms/Accordion/Accordion.d.ts +0 -19
- package/lib/components/03-organisms/Accordion/Accordion.js +0 -41
- package/lib/components/03-organisms/Accordion/Accordion.stories.d.ts +0 -7
- package/lib/components/03-organisms/Accordion/Accordion.stories.js +0 -30
- package/lib/components/03-organisms/Headers/HeaderImgRight.d.ts +0 -12
- package/lib/components/03-organisms/Headers/HeaderImgRight.js +0 -32
- package/lib/components/03-organisms/Headers/HeaderImgRight.stories.d.ts +0 -7
- package/lib/components/03-organisms/Headers/HeaderImgRight.stories.js +0 -19
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.d.ts +0 -19
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.js +0 -27
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.d.ts +0 -7
- package/lib/components/03-organisms/Headers/RNHeaderWithSearch.stories.js +0 -26
- package/lib/components/03-organisms/Hero/Hero.d.ts +0 -31
- package/lib/components/03-organisms/Hero/Hero.js +0 -62
- package/lib/components/03-organisms/Hero/Hero.stories.d.ts +0 -11
- package/lib/components/03-organisms/Hero/Hero.stories.js +0 -35
- package/lib/components/03-organisms/Hero/HeroTypes.d.ts +0 -6
- package/lib/components/03-organisms/Hero/HeroTypes.js +0 -9
- package/lib/components/03-organisms/List/UnorderedList.d.ts +0 -18
- package/lib/components/03-organisms/List/UnorderedList.js +0 -28
- package/lib/components/03-organisms/List/UnorderedList.stories.d.ts +0 -11
- package/lib/components/03-organisms/List/UnorderedList.stories.js +0 -73
- package/lib/components/03-organisms/SearchPromo/SearchPromo.d.ts +0 -22
- package/lib/components/03-organisms/SearchPromo/SearchPromo.js +0 -30
- package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.d.ts +0 -8
- package/lib/components/03-organisms/SearchPromo/SearchPromo.stories.js +0 -28
- package/lib/helpers/hoc/WithOneChild.d.ts +0 -8
- package/lib/helpers/hoc/WithOneChild.js +0 -63
- package/lib/index.d.ts +0 -24
- package/lib/index.js +0 -51
- package/lib/utils/bem.d.ts +0 -1
- package/lib/utils/bem.js +0 -35
- package/tsd.d.ts +0 -4
- package/webpack.prod.js +0 -38
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface LabelBaseStyle {
|
|
2
|
+
isInlined: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const Label: {
|
|
5
|
+
baseStyle: ({ isInlined }: LabelBaseStyle) => {
|
|
6
|
+
flex: string;
|
|
7
|
+
whiteSpace: string;
|
|
8
|
+
color: string;
|
|
9
|
+
display: string;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
fontWeight: string;
|
|
12
|
+
marginBottom: string;
|
|
13
|
+
width: string;
|
|
14
|
+
span: {
|
|
15
|
+
fontWeight: string;
|
|
16
|
+
};
|
|
17
|
+
_dark: {
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default Label;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare const baseLinkStyles: {
|
|
2
|
+
color: string;
|
|
3
|
+
textDecoration: string;
|
|
4
|
+
textDecorationStyle: string;
|
|
5
|
+
textDecorationThickness: string;
|
|
6
|
+
textUnderlineOffset: string;
|
|
7
|
+
_dark: {
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
10
|
+
_hover: {
|
|
11
|
+
color: string;
|
|
12
|
+
textDecorationStyle: string;
|
|
13
|
+
textDecorationThickness: string;
|
|
14
|
+
_dark: {
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
_visited: {
|
|
19
|
+
color: string;
|
|
20
|
+
_dark: {
|
|
21
|
+
color: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare const Link: {
|
|
26
|
+
parts: string[];
|
|
27
|
+
baseStyle: ({ finalIsUnderlined }: {
|
|
28
|
+
finalIsUnderlined?: boolean;
|
|
29
|
+
}) => {
|
|
30
|
+
textDecoration: string;
|
|
31
|
+
/** This is needed for custom anchor elements or link components
|
|
32
|
+
* that are passed as children to the `Link` component. */
|
|
33
|
+
a: {
|
|
34
|
+
_hover: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/** The element will handle descriptive text added to aid
|
|
39
|
+
* screen readers. */
|
|
40
|
+
screenreaderOnly: {
|
|
41
|
+
clip: string;
|
|
42
|
+
height: {
|
|
43
|
+
base: string;
|
|
44
|
+
md: string;
|
|
45
|
+
};
|
|
46
|
+
overflow: string;
|
|
47
|
+
position: {
|
|
48
|
+
base: string;
|
|
49
|
+
md: string;
|
|
50
|
+
};
|
|
51
|
+
width: {
|
|
52
|
+
base: string;
|
|
53
|
+
md: string;
|
|
54
|
+
};
|
|
55
|
+
wordWrap: string;
|
|
56
|
+
};
|
|
57
|
+
color: string;
|
|
58
|
+
textDecorationStyle: string;
|
|
59
|
+
textDecorationThickness: string;
|
|
60
|
+
textUnderlineOffset: string;
|
|
61
|
+
_dark: {
|
|
62
|
+
color: string;
|
|
63
|
+
};
|
|
64
|
+
_hover: {
|
|
65
|
+
color: string;
|
|
66
|
+
textDecorationStyle: string;
|
|
67
|
+
textDecorationThickness: string;
|
|
68
|
+
_dark: {
|
|
69
|
+
color: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
_visited: {
|
|
73
|
+
color: string;
|
|
74
|
+
_dark: {
|
|
75
|
+
color: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
variants: {
|
|
80
|
+
link: {};
|
|
81
|
+
disabled: {
|
|
82
|
+
color: string;
|
|
83
|
+
pointerEvents: string;
|
|
84
|
+
};
|
|
85
|
+
moreLink: {
|
|
86
|
+
alignItems: string;
|
|
87
|
+
display: string;
|
|
88
|
+
svg: {
|
|
89
|
+
height: string;
|
|
90
|
+
width: string;
|
|
91
|
+
textDecoration: string;
|
|
92
|
+
fill: string;
|
|
93
|
+
};
|
|
94
|
+
_hover: {
|
|
95
|
+
color: string;
|
|
96
|
+
textDecoration: string;
|
|
97
|
+
};
|
|
98
|
+
_visited: {
|
|
99
|
+
svg: {
|
|
100
|
+
fill: string;
|
|
101
|
+
};
|
|
102
|
+
_dark: {
|
|
103
|
+
svg: {
|
|
104
|
+
fill: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
button: {
|
|
110
|
+
width: string;
|
|
111
|
+
borderRadius: string;
|
|
112
|
+
lineHeight: string;
|
|
113
|
+
display: string;
|
|
114
|
+
cursor: string;
|
|
115
|
+
color: string;
|
|
116
|
+
justifyContent: string;
|
|
117
|
+
py: string;
|
|
118
|
+
px: string;
|
|
119
|
+
textDecoration: string;
|
|
120
|
+
fontWeight: string;
|
|
121
|
+
bg: string;
|
|
122
|
+
_dark: {
|
|
123
|
+
color: string;
|
|
124
|
+
bg: string;
|
|
125
|
+
};
|
|
126
|
+
_hover: {
|
|
127
|
+
color: string;
|
|
128
|
+
bg: string;
|
|
129
|
+
textDecoration: string;
|
|
130
|
+
_dark: {
|
|
131
|
+
color: string;
|
|
132
|
+
bg: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
_visited: {
|
|
136
|
+
color: string;
|
|
137
|
+
_dark: {
|
|
138
|
+
_visited: {
|
|
139
|
+
color: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
buttonPrimary: any;
|
|
145
|
+
buttonSecondary: any;
|
|
146
|
+
buttonPill: any;
|
|
147
|
+
buttonCallout: any;
|
|
148
|
+
buttonNoBrand: any;
|
|
149
|
+
buttonDisabled: any;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export default Link;
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
interface ListBaseStyle {
|
|
2
|
+
inline?: boolean;
|
|
3
|
+
noStyling: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const baseListStyles: (inline?: boolean, noStyling?: boolean) => {
|
|
6
|
+
margin: string;
|
|
7
|
+
listStyle: string;
|
|
8
|
+
marginInlineStart: string;
|
|
9
|
+
paddingStart: string;
|
|
10
|
+
padding: string;
|
|
11
|
+
display: string;
|
|
12
|
+
li: {
|
|
13
|
+
marginEnd: string;
|
|
14
|
+
listStyleType: string;
|
|
15
|
+
_notFirst: {
|
|
16
|
+
marginTop: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const baseUnorderedStyles: (noStyling?: boolean) => {
|
|
21
|
+
listStyle: string;
|
|
22
|
+
li: {
|
|
23
|
+
_before: {
|
|
24
|
+
color: string;
|
|
25
|
+
content: string;
|
|
26
|
+
display: string;
|
|
27
|
+
fontWeight: string;
|
|
28
|
+
fontSize: string;
|
|
29
|
+
lineHeight: string;
|
|
30
|
+
marginStart: string;
|
|
31
|
+
width: string;
|
|
32
|
+
};
|
|
33
|
+
_dark: {
|
|
34
|
+
_before: {
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
margin: string;
|
|
40
|
+
marginBottom: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const baseSectionDescriptionStyles: {
|
|
43
|
+
borderBottom: string;
|
|
44
|
+
borderColor: string;
|
|
45
|
+
paddingStart: string;
|
|
46
|
+
h2: {
|
|
47
|
+
borderTop: string;
|
|
48
|
+
borderColor: string;
|
|
49
|
+
margin: string;
|
|
50
|
+
padding: string;
|
|
51
|
+
_dark: {
|
|
52
|
+
borderColor: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
_dark: {
|
|
56
|
+
borderColor: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export declare const baseDescriptionStyles: {
|
|
60
|
+
dl: {
|
|
61
|
+
display: string;
|
|
62
|
+
gridTemplateColumns: {
|
|
63
|
+
base: string;
|
|
64
|
+
md: string;
|
|
65
|
+
};
|
|
66
|
+
gridTemplateRows: string;
|
|
67
|
+
margin: string;
|
|
68
|
+
};
|
|
69
|
+
dt: {
|
|
70
|
+
borderTop: string;
|
|
71
|
+
borderColor: string;
|
|
72
|
+
color: string;
|
|
73
|
+
fontWeight: string;
|
|
74
|
+
paddingBottom: {
|
|
75
|
+
base: string;
|
|
76
|
+
md: string;
|
|
77
|
+
};
|
|
78
|
+
paddingTop: string;
|
|
79
|
+
paddingEnd: {
|
|
80
|
+
md: string;
|
|
81
|
+
};
|
|
82
|
+
_dark: {
|
|
83
|
+
borderColor: string;
|
|
84
|
+
color: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
dd: {
|
|
88
|
+
margin: string;
|
|
89
|
+
paddingBottom: string;
|
|
90
|
+
borderTop: {
|
|
91
|
+
base: string;
|
|
92
|
+
md: string;
|
|
93
|
+
};
|
|
94
|
+
borderColor: {
|
|
95
|
+
md: string;
|
|
96
|
+
};
|
|
97
|
+
paddingTop: {
|
|
98
|
+
md: string;
|
|
99
|
+
};
|
|
100
|
+
_dark: {
|
|
101
|
+
borderColor: {
|
|
102
|
+
md: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
borderBottom: string;
|
|
107
|
+
borderColor: string;
|
|
108
|
+
paddingStart: string;
|
|
109
|
+
h2: {
|
|
110
|
+
borderTop: string;
|
|
111
|
+
borderColor: string;
|
|
112
|
+
margin: string;
|
|
113
|
+
padding: string;
|
|
114
|
+
_dark: {
|
|
115
|
+
borderColor: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
_dark: {
|
|
119
|
+
borderColor: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
declare const List: {
|
|
123
|
+
baseStyle: ({ inline, noStyling }: ListBaseStyle) => {
|
|
124
|
+
margin: string;
|
|
125
|
+
listStyle: string;
|
|
126
|
+
marginInlineStart: string;
|
|
127
|
+
paddingStart: string;
|
|
128
|
+
padding: string;
|
|
129
|
+
display: string;
|
|
130
|
+
li: {
|
|
131
|
+
marginEnd: string;
|
|
132
|
+
listStyleType: string;
|
|
133
|
+
_notFirst: {
|
|
134
|
+
marginTop: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
variants: {
|
|
139
|
+
ul: ({ noStyling }: ListBaseStyle) => {
|
|
140
|
+
listStyle: string;
|
|
141
|
+
li: {
|
|
142
|
+
_before: {
|
|
143
|
+
color: string;
|
|
144
|
+
content: string;
|
|
145
|
+
display: string;
|
|
146
|
+
fontWeight: string;
|
|
147
|
+
fontSize: string;
|
|
148
|
+
lineHeight: string;
|
|
149
|
+
marginStart: string;
|
|
150
|
+
width: string;
|
|
151
|
+
};
|
|
152
|
+
_dark: {
|
|
153
|
+
_before: {
|
|
154
|
+
color: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
margin: string;
|
|
159
|
+
marginBottom: string;
|
|
160
|
+
};
|
|
161
|
+
ol: {
|
|
162
|
+
margin: string;
|
|
163
|
+
marginBottom: string;
|
|
164
|
+
};
|
|
165
|
+
dl: {
|
|
166
|
+
dl: {
|
|
167
|
+
display: string;
|
|
168
|
+
gridTemplateColumns: {
|
|
169
|
+
base: string;
|
|
170
|
+
md: string;
|
|
171
|
+
};
|
|
172
|
+
gridTemplateRows: string;
|
|
173
|
+
margin: string;
|
|
174
|
+
};
|
|
175
|
+
dt: {
|
|
176
|
+
borderTop: string;
|
|
177
|
+
borderColor: string;
|
|
178
|
+
color: string;
|
|
179
|
+
fontWeight: string;
|
|
180
|
+
paddingBottom: {
|
|
181
|
+
base: string;
|
|
182
|
+
md: string;
|
|
183
|
+
};
|
|
184
|
+
paddingTop: string;
|
|
185
|
+
paddingEnd: {
|
|
186
|
+
md: string;
|
|
187
|
+
};
|
|
188
|
+
_dark: {
|
|
189
|
+
borderColor: string;
|
|
190
|
+
color: string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
dd: {
|
|
194
|
+
margin: string;
|
|
195
|
+
paddingBottom: string;
|
|
196
|
+
borderTop: {
|
|
197
|
+
base: string;
|
|
198
|
+
md: string;
|
|
199
|
+
};
|
|
200
|
+
borderColor: {
|
|
201
|
+
md: string;
|
|
202
|
+
};
|
|
203
|
+
paddingTop: {
|
|
204
|
+
md: string;
|
|
205
|
+
};
|
|
206
|
+
_dark: {
|
|
207
|
+
borderColor: {
|
|
208
|
+
md: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
borderBottom: string;
|
|
213
|
+
borderColor: string;
|
|
214
|
+
paddingStart: string;
|
|
215
|
+
h2: {
|
|
216
|
+
borderTop: string;
|
|
217
|
+
borderColor: string;
|
|
218
|
+
margin: string;
|
|
219
|
+
padding: string;
|
|
220
|
+
_dark: {
|
|
221
|
+
borderColor: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
_dark: {
|
|
225
|
+
borderColor: string;
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
export default List;
|