@nypl/design-system-react-components 2.0.0 → 2.1.0-rc
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 +37957 -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/FeaturedContent/FeaturedContent.d.ts +29 -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/NewsletterSignup/NewsletterSignup.d.ts +46 -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 +92 -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/getSectionColors.d.ts +8 -0
- package/dist/src/helpers/types.d.ts +50 -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 +8 -0
- package/dist/src/hooks/useWindowSize.d.ts +10 -0
- package/dist/src/index.d.ts +87 -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/featuredContent.d.ts +70 -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/newsletterSignup.d.ts +93 -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 +42 -0
- package/dist/styles.css +1 -0
- package/package.json +132 -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,137 @@
|
|
|
1
|
+
import { NotificationTypes } from "../../components/Notification/Notification";
|
|
2
|
+
interface NotificationBaseStyle {
|
|
3
|
+
isCentered: boolean;
|
|
4
|
+
noMargin: boolean;
|
|
5
|
+
notificationHeading: string;
|
|
6
|
+
notificationType: NotificationTypes;
|
|
7
|
+
showIcon: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface NotificationContentBaseStyle {
|
|
10
|
+
alignText: boolean;
|
|
11
|
+
isCentered: boolean;
|
|
12
|
+
notificationHeading: string;
|
|
13
|
+
notificationType: NotificationTypes;
|
|
14
|
+
showIcon: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface NotificationHeadingBaseStyle {
|
|
17
|
+
icon: boolean;
|
|
18
|
+
isCentered: boolean;
|
|
19
|
+
notificationType: NotificationTypes;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: {
|
|
22
|
+
Notification: {
|
|
23
|
+
parts: string[];
|
|
24
|
+
baseStyle: ({ isCentered, noMargin, notificationHeading, notificationType, }: NotificationBaseStyle) => {
|
|
25
|
+
bg: string;
|
|
26
|
+
borderRadius: string;
|
|
27
|
+
display: string;
|
|
28
|
+
fontSize: string;
|
|
29
|
+
m: string;
|
|
30
|
+
position: string;
|
|
31
|
+
p: string;
|
|
32
|
+
textAlign: string;
|
|
33
|
+
_dark: {
|
|
34
|
+
bg: string;
|
|
35
|
+
};
|
|
36
|
+
container: {
|
|
37
|
+
display: string;
|
|
38
|
+
flexDirection: string;
|
|
39
|
+
m: string;
|
|
40
|
+
maxWidth: string;
|
|
41
|
+
paddingEnd: string;
|
|
42
|
+
paddingStart: string;
|
|
43
|
+
w: string;
|
|
44
|
+
};
|
|
45
|
+
dismissibleButton: {
|
|
46
|
+
border: string;
|
|
47
|
+
bgColor: string;
|
|
48
|
+
alignItems: string;
|
|
49
|
+
color: string;
|
|
50
|
+
display: string;
|
|
51
|
+
h: string;
|
|
52
|
+
w: string;
|
|
53
|
+
minWidth: string;
|
|
54
|
+
position: string;
|
|
55
|
+
right: string;
|
|
56
|
+
top: string;
|
|
57
|
+
svg: {
|
|
58
|
+
marginTop: string;
|
|
59
|
+
};
|
|
60
|
+
_dark: {
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
_hover: {
|
|
64
|
+
bg: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
NotificationContent: {
|
|
70
|
+
parts: string[];
|
|
71
|
+
baseStyle: ({ isCentered, notificationHeading, notificationType, showIcon, }: NotificationContentBaseStyle) => {
|
|
72
|
+
display: string;
|
|
73
|
+
justifyContent: string;
|
|
74
|
+
content: {
|
|
75
|
+
color: string;
|
|
76
|
+
marginTop: string;
|
|
77
|
+
paddingStart: string;
|
|
78
|
+
pt: string;
|
|
79
|
+
w: string;
|
|
80
|
+
_dark: {
|
|
81
|
+
borderLeftColor: string;
|
|
82
|
+
borderLeftStyle: string;
|
|
83
|
+
borderLeftWidth: string;
|
|
84
|
+
marginTop: string;
|
|
85
|
+
paddingStart: string;
|
|
86
|
+
color: string;
|
|
87
|
+
ml: string;
|
|
88
|
+
};
|
|
89
|
+
a: {
|
|
90
|
+
color: string;
|
|
91
|
+
textDecoration: string;
|
|
92
|
+
_dark: {
|
|
93
|
+
color: string;
|
|
94
|
+
_hover: {
|
|
95
|
+
color: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
NotificationHeading: {
|
|
103
|
+
parts: string[];
|
|
104
|
+
baseStyle: ({ icon, isCentered, notificationType, }: NotificationHeadingBaseStyle) => {
|
|
105
|
+
display: string;
|
|
106
|
+
flexDirection: string;
|
|
107
|
+
m: string;
|
|
108
|
+
mb: string;
|
|
109
|
+
px: string;
|
|
110
|
+
w: string;
|
|
111
|
+
_dark: {
|
|
112
|
+
borderBottomColor: string;
|
|
113
|
+
borderBottomStyle: string;
|
|
114
|
+
borderBottomWidth: string;
|
|
115
|
+
color: string;
|
|
116
|
+
paddingBottom: string;
|
|
117
|
+
};
|
|
118
|
+
heading: {
|
|
119
|
+
color: string;
|
|
120
|
+
ml: string;
|
|
121
|
+
mt: string;
|
|
122
|
+
_dark: {
|
|
123
|
+
borderLeftColor: string;
|
|
124
|
+
borderLeftStyle: string;
|
|
125
|
+
borderLeftWidth: string;
|
|
126
|
+
paddingLeft: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
svg: {
|
|
130
|
+
mx: string;
|
|
131
|
+
mb: string;
|
|
132
|
+
mt: string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const Pagination: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
alignItems: string;
|
|
5
|
+
display: string;
|
|
6
|
+
width: string;
|
|
7
|
+
link: {
|
|
8
|
+
lineHeight: string;
|
|
9
|
+
textDecoration: string;
|
|
10
|
+
_hover: {
|
|
11
|
+
textDecoration: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
ul: {
|
|
15
|
+
marginBottom: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default Pagination;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ProgressIndicatorSizes } from "../../components/ProgressIndicator/ProgressIndicator";
|
|
2
|
+
interface ProgressIndicatorBaseStyle {
|
|
3
|
+
darkMode: boolean;
|
|
4
|
+
size: ProgressIndicatorSizes;
|
|
5
|
+
}
|
|
6
|
+
declare const ProgressIndicator: {
|
|
7
|
+
parts: string[];
|
|
8
|
+
baseStyle: ({ darkMode, size }: ProgressIndicatorBaseStyle) => {
|
|
9
|
+
color: string;
|
|
10
|
+
fontSize: string;
|
|
11
|
+
_dark: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
circular: {
|
|
15
|
+
svg: {
|
|
16
|
+
height: string;
|
|
17
|
+
width: string;
|
|
18
|
+
display: string;
|
|
19
|
+
circle: {
|
|
20
|
+
_first: {
|
|
21
|
+
stroke: string;
|
|
22
|
+
_dark: {
|
|
23
|
+
stroke: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
_last: {
|
|
27
|
+
stroke: string;
|
|
28
|
+
_dark: {
|
|
29
|
+
stroke: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
circularContainer: {
|
|
36
|
+
alignItems: string;
|
|
37
|
+
display: string;
|
|
38
|
+
flexDirection: string;
|
|
39
|
+
width: string;
|
|
40
|
+
};
|
|
41
|
+
linear: {
|
|
42
|
+
"> div": {
|
|
43
|
+
bg: string;
|
|
44
|
+
_dark: {
|
|
45
|
+
bg: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
flex: number;
|
|
49
|
+
bg: string;
|
|
50
|
+
height: {
|
|
51
|
+
base: string;
|
|
52
|
+
md: string;
|
|
53
|
+
};
|
|
54
|
+
_dark: {
|
|
55
|
+
bg: string;
|
|
56
|
+
color: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
linearContainer: {
|
|
60
|
+
display: string;
|
|
61
|
+
alignItems: string;
|
|
62
|
+
};
|
|
63
|
+
linearPercentage: {
|
|
64
|
+
padding: string;
|
|
65
|
+
flex: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default ProgressIndicator;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
declare const Radio: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
control: {
|
|
5
|
+
verticalAlign: string;
|
|
6
|
+
transitionProperty: string;
|
|
7
|
+
transitionDuration: string;
|
|
8
|
+
border: string;
|
|
9
|
+
borderRadius: string;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
color: string;
|
|
13
|
+
outline: string;
|
|
14
|
+
_checked: {
|
|
15
|
+
bg: string;
|
|
16
|
+
borderColor: string;
|
|
17
|
+
color: string;
|
|
18
|
+
_disabled: {
|
|
19
|
+
borderColor: string;
|
|
20
|
+
bg: string;
|
|
21
|
+
_before: {
|
|
22
|
+
bg: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
_invalid: {
|
|
26
|
+
_hover: {
|
|
27
|
+
borderColor: string;
|
|
28
|
+
};
|
|
29
|
+
_before: {
|
|
30
|
+
borderColor: string;
|
|
31
|
+
bg: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
_hover: {
|
|
35
|
+
bg: string;
|
|
36
|
+
};
|
|
37
|
+
_before: {
|
|
38
|
+
content: string;
|
|
39
|
+
display: string;
|
|
40
|
+
w: string;
|
|
41
|
+
h: string;
|
|
42
|
+
borderRadius: string;
|
|
43
|
+
bg: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
_disabled: {
|
|
47
|
+
borderColor: string;
|
|
48
|
+
bg: string;
|
|
49
|
+
};
|
|
50
|
+
_focus: {
|
|
51
|
+
boxShadow: string;
|
|
52
|
+
borderColor: string;
|
|
53
|
+
outline: string;
|
|
54
|
+
outlineOffset: string;
|
|
55
|
+
outlineColor: string;
|
|
56
|
+
zIndex: string;
|
|
57
|
+
_dark: {
|
|
58
|
+
outlineColor: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
_invalid: {
|
|
62
|
+
borderColor: string;
|
|
63
|
+
};
|
|
64
|
+
_dark: {
|
|
65
|
+
borderColor: string;
|
|
66
|
+
backgroundColor: string;
|
|
67
|
+
_checked: {
|
|
68
|
+
borderColor: string;
|
|
69
|
+
_disabled: {
|
|
70
|
+
borderColor: string;
|
|
71
|
+
_before: {
|
|
72
|
+
bg: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
_invalid: {
|
|
76
|
+
borderColor: string;
|
|
77
|
+
_before: {
|
|
78
|
+
borderColor: string;
|
|
79
|
+
bg: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
_disabled: {
|
|
84
|
+
borderColor: string;
|
|
85
|
+
_before: {
|
|
86
|
+
bg: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
_focus: {
|
|
90
|
+
boxShadow: string;
|
|
91
|
+
outlineColor: string;
|
|
92
|
+
};
|
|
93
|
+
_invalid: {
|
|
94
|
+
borderColor: string;
|
|
95
|
+
};
|
|
96
|
+
_before: {
|
|
97
|
+
bg: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
label: {
|
|
102
|
+
userSelect: string;
|
|
103
|
+
fontWeight: string;
|
|
104
|
+
marginBottom: string;
|
|
105
|
+
marginStart: string;
|
|
106
|
+
width: string;
|
|
107
|
+
_disabled: {
|
|
108
|
+
color: string;
|
|
109
|
+
opacity: number;
|
|
110
|
+
fontStyle: string;
|
|
111
|
+
};
|
|
112
|
+
_invalid: {
|
|
113
|
+
color: string;
|
|
114
|
+
};
|
|
115
|
+
_dark: {
|
|
116
|
+
_disabled: {
|
|
117
|
+
color: string;
|
|
118
|
+
};
|
|
119
|
+
_invalid: {
|
|
120
|
+
color: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
helperErrorText: {
|
|
125
|
+
marginStart: string;
|
|
126
|
+
_disabled: {
|
|
127
|
+
color: string;
|
|
128
|
+
fontStyle: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
hiddenLabel: {
|
|
132
|
+
clip: string;
|
|
133
|
+
height: {
|
|
134
|
+
base: string;
|
|
135
|
+
md: string;
|
|
136
|
+
};
|
|
137
|
+
overflow: string;
|
|
138
|
+
position: {
|
|
139
|
+
base: string;
|
|
140
|
+
md: string;
|
|
141
|
+
};
|
|
142
|
+
width: {
|
|
143
|
+
base: string;
|
|
144
|
+
md: string;
|
|
145
|
+
};
|
|
146
|
+
wordWrap: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
sizes: {
|
|
150
|
+
md: {
|
|
151
|
+
control: {
|
|
152
|
+
h: string;
|
|
153
|
+
w: string;
|
|
154
|
+
};
|
|
155
|
+
label: {
|
|
156
|
+
fontSize: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
defaultProps: {
|
|
161
|
+
size: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
export declare const RadioWrapper: {
|
|
165
|
+
baseStyle: {
|
|
166
|
+
label: {
|
|
167
|
+
_hover: {
|
|
168
|
+
span: {
|
|
169
|
+
_first: {
|
|
170
|
+
borderColor: string;
|
|
171
|
+
};
|
|
172
|
+
_checked: {
|
|
173
|
+
borderColor: string;
|
|
174
|
+
};
|
|
175
|
+
_disabled: {
|
|
176
|
+
borderColor: string;
|
|
177
|
+
};
|
|
178
|
+
_invalid: {
|
|
179
|
+
borderColor: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
_dark: {
|
|
183
|
+
span: {
|
|
184
|
+
_first: {
|
|
185
|
+
borderColor: string;
|
|
186
|
+
};
|
|
187
|
+
_checked: {
|
|
188
|
+
borderColor: string;
|
|
189
|
+
};
|
|
190
|
+
_disabled: {
|
|
191
|
+
borderColor: string;
|
|
192
|
+
};
|
|
193
|
+
_invalid: {
|
|
194
|
+
borderColor: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
export default Radio;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare const SearchBar: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
display: string;
|
|
5
|
+
marginBottom: {
|
|
6
|
+
base: string;
|
|
7
|
+
md: string;
|
|
8
|
+
};
|
|
9
|
+
flexFlow: {
|
|
10
|
+
base: string;
|
|
11
|
+
md: string;
|
|
12
|
+
};
|
|
13
|
+
select: {
|
|
14
|
+
flexShrink: string;
|
|
15
|
+
marginBottom: {
|
|
16
|
+
base: string;
|
|
17
|
+
md: string;
|
|
18
|
+
};
|
|
19
|
+
maxWidth: {
|
|
20
|
+
base: any;
|
|
21
|
+
md: string;
|
|
22
|
+
};
|
|
23
|
+
textOverflow: string;
|
|
24
|
+
marginRight: {
|
|
25
|
+
base: any;
|
|
26
|
+
md: string;
|
|
27
|
+
};
|
|
28
|
+
_hover: {
|
|
29
|
+
zIndex: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default SearchBar;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
interface SelectBaseStyle {
|
|
2
|
+
labelPosition: string;
|
|
3
|
+
}
|
|
4
|
+
declare const Select: {
|
|
5
|
+
parts: string[];
|
|
6
|
+
baseStyle: ({ labelPosition }: SelectBaseStyle) => {
|
|
7
|
+
inline: {
|
|
8
|
+
display: {
|
|
9
|
+
md: string;
|
|
10
|
+
};
|
|
11
|
+
gap: {
|
|
12
|
+
md: string;
|
|
13
|
+
};
|
|
14
|
+
alignItems: {
|
|
15
|
+
md: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
select: {
|
|
19
|
+
flex: {
|
|
20
|
+
md: string;
|
|
21
|
+
};
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
borderRadius: string;
|
|
24
|
+
borderColor: string;
|
|
25
|
+
fontSize: string;
|
|
26
|
+
minHeight: {
|
|
27
|
+
base: string;
|
|
28
|
+
md: string;
|
|
29
|
+
};
|
|
30
|
+
paddingTop: string;
|
|
31
|
+
paddingEnd: string;
|
|
32
|
+
paddingBottom: string;
|
|
33
|
+
paddingStart: string;
|
|
34
|
+
_hover: {
|
|
35
|
+
borderColor: string;
|
|
36
|
+
};
|
|
37
|
+
_active: {
|
|
38
|
+
borderColor: string;
|
|
39
|
+
_dark: {
|
|
40
|
+
borderColor: string;
|
|
41
|
+
boxShadow: string;
|
|
42
|
+
outline: string;
|
|
43
|
+
outlineOffset: string;
|
|
44
|
+
outlineColor: string;
|
|
45
|
+
zIndex: string;
|
|
46
|
+
_dark: {
|
|
47
|
+
outlineColor: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
boxShadow: string;
|
|
51
|
+
outline: string;
|
|
52
|
+
outlineOffset: string;
|
|
53
|
+
outlineColor: string;
|
|
54
|
+
zIndex: string;
|
|
55
|
+
};
|
|
56
|
+
_disabled: {
|
|
57
|
+
bg: string;
|
|
58
|
+
borderColor: string;
|
|
59
|
+
color: string;
|
|
60
|
+
opacity: string;
|
|
61
|
+
_dark: {
|
|
62
|
+
bg: string;
|
|
63
|
+
borderColor: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
_focus: {
|
|
68
|
+
"+ .chakra-select__icon-wrapper": {
|
|
69
|
+
zIndex: string;
|
|
70
|
+
};
|
|
71
|
+
borderColor: string;
|
|
72
|
+
_dark: {
|
|
73
|
+
borderColor: string;
|
|
74
|
+
boxShadow: string;
|
|
75
|
+
outline: string;
|
|
76
|
+
outlineOffset: string;
|
|
77
|
+
outlineColor: string;
|
|
78
|
+
zIndex: string;
|
|
79
|
+
_dark: {
|
|
80
|
+
outlineColor: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
outline: string;
|
|
85
|
+
outlineOffset: string;
|
|
86
|
+
outlineColor: string;
|
|
87
|
+
zIndex: string;
|
|
88
|
+
};
|
|
89
|
+
_invalid: {
|
|
90
|
+
border: string;
|
|
91
|
+
borderColor: string;
|
|
92
|
+
boxShadow: string;
|
|
93
|
+
color: string;
|
|
94
|
+
};
|
|
95
|
+
_dark: {
|
|
96
|
+
backgroundColor: string;
|
|
97
|
+
borderColor: string;
|
|
98
|
+
color: string;
|
|
99
|
+
_hover: {
|
|
100
|
+
borderColor: string;
|
|
101
|
+
};
|
|
102
|
+
_invalid: {
|
|
103
|
+
borderColor: string;
|
|
104
|
+
color: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
variants: {
|
|
110
|
+
searchbar: {
|
|
111
|
+
select: {
|
|
112
|
+
flex: string;
|
|
113
|
+
borderRightColor: {
|
|
114
|
+
md: string;
|
|
115
|
+
};
|
|
116
|
+
borderRightRadius: {
|
|
117
|
+
md: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
defaultProps: {
|
|
123
|
+
size: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export default Select;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
interface SkeletonLoaderBaseStyle {
|
|
2
|
+
imageAspectRatio: keyof typeof imagePaddingBottomStyles;
|
|
3
|
+
isBordered: boolean;
|
|
4
|
+
showImage?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const imagePaddingBottomStyles: {
|
|
7
|
+
landscape: string;
|
|
8
|
+
portrait: string;
|
|
9
|
+
square: string;
|
|
10
|
+
};
|
|
11
|
+
declare const SkeletonLoader: {
|
|
12
|
+
parts: string[];
|
|
13
|
+
baseStyle: ({ imageAspectRatio, isBordered }: SkeletonLoaderBaseStyle) => {
|
|
14
|
+
section: {
|
|
15
|
+
marginBottom: string;
|
|
16
|
+
_last: {
|
|
17
|
+
marginBottom: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
image: {
|
|
21
|
+
boxSizing: string;
|
|
22
|
+
flexShrink: string;
|
|
23
|
+
height: string;
|
|
24
|
+
overflow: string;
|
|
25
|
+
paddingBottom: string;
|
|
26
|
+
position: string;
|
|
27
|
+
width: string;
|
|
28
|
+
borderRadius: string;
|
|
29
|
+
marginBottom: string;
|
|
30
|
+
};
|
|
31
|
+
container: {
|
|
32
|
+
marginTop: string;
|
|
33
|
+
width: string;
|
|
34
|
+
};
|
|
35
|
+
heading: {
|
|
36
|
+
height: string;
|
|
37
|
+
borderRadius: string;
|
|
38
|
+
boxSizing: string;
|
|
39
|
+
marginBottom: string;
|
|
40
|
+
};
|
|
41
|
+
content: {
|
|
42
|
+
height: string;
|
|
43
|
+
borderRadius: string;
|
|
44
|
+
boxSizing: string;
|
|
45
|
+
marginBottom: string;
|
|
46
|
+
};
|
|
47
|
+
button: {
|
|
48
|
+
height: string;
|
|
49
|
+
margin: string;
|
|
50
|
+
maxWidth: string;
|
|
51
|
+
width: string;
|
|
52
|
+
};
|
|
53
|
+
margin: string;
|
|
54
|
+
width: string;
|
|
55
|
+
};
|
|
56
|
+
variants: {
|
|
57
|
+
row: ({ imageAspectRatio, showImage }: SkeletonLoaderBaseStyle) => {
|
|
58
|
+
alignItems: string;
|
|
59
|
+
display: {
|
|
60
|
+
md: string;
|
|
61
|
+
};
|
|
62
|
+
image: {
|
|
63
|
+
overflow: {
|
|
64
|
+
md: string;
|
|
65
|
+
};
|
|
66
|
+
paddingBottom: {
|
|
67
|
+
md: string;
|
|
68
|
+
};
|
|
69
|
+
position: {
|
|
70
|
+
md: string;
|
|
71
|
+
};
|
|
72
|
+
width: {
|
|
73
|
+
md: string;
|
|
74
|
+
};
|
|
75
|
+
height: {
|
|
76
|
+
md: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
container: {
|
|
80
|
+
marginStart: {
|
|
81
|
+
md: string;
|
|
82
|
+
};
|
|
83
|
+
marginTop: {
|
|
84
|
+
md: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
button: {
|
|
88
|
+
margin: {
|
|
89
|
+
md: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
declare const Skeleton: {
|
|
96
|
+
baseStyle: {
|
|
97
|
+
borderRadius: string;
|
|
98
|
+
bg: string;
|
|
99
|
+
animation: string;
|
|
100
|
+
_dark: {
|
|
101
|
+
bg: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export { Skeleton, SkeletonLoader };
|