@nypl/design-system-react-components 1.0.1 → 1.0.2
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/CHANGELOG.md +1428 -3
- package/README.md +391 -3
- package/dist/__tests__/fileMock.d.ts +4 -0
- package/dist/__tests__/setup.d.ts +2 -0
- package/{lib/stories/0-Welcome.stories.d.ts → dist/__tests__/utils/utils.test.d.ts} +1 -1
- package/dist/components/Accordion/Accordion.d.ts +21 -0
- package/dist/components/Autosuggest/Autosuggest.stories.d.ts +4 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
- package/dist/components/Button/Button.d.ts +25 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
- package/dist/components/Card/Card.d.ts +49 -0
- package/dist/components/Checkbox/Checkbox.d.ts +47 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +49 -0
- package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +29 -0
- package/dist/components/DatePicker/DatePicker.d.ts +81 -0
- package/dist/components/Fieldset/Fieldset.d.ts +22 -0
- package/dist/components/Form/Form.d.ts +29 -0
- package/dist/components/Grid/SimpleGrid.d.ts +17 -0
- package/dist/components/Heading/Heading.d.ts +27 -0
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +29 -0
- package/dist/components/Hero/Hero.d.ts +40 -0
- package/dist/components/HorizontalRule/HorizontalRule.d.ts +11 -0
- package/dist/components/Icons/Icon.d.ts +37 -0
- package/dist/components/Icons/IconSvgs.d.ts +33 -0
- package/dist/components/Image/Image.d.ts +61 -0
- package/dist/components/Label/Label.d.ts +20 -0
- package/dist/components/Link/Link.d.ts +20 -0
- package/dist/components/List/List.d.ts +35 -0
- package/dist/components/Logo/Logo.d.ts +26 -0
- package/dist/components/Logo/LogoSvgs.d.ts +46 -0
- package/dist/components/Modal/Modal.d.ts +33 -0
- package/dist/components/Notification/Notification.d.ts +50 -0
- package/dist/components/Pagination/Pagination.d.ts +27 -0
- package/dist/components/Placeholder/Placeholder.d.ts +10 -0
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +30 -0
- package/dist/components/Radio/Radio.d.ts +43 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +51 -0
- package/dist/components/SearchBar/SearchBar.d.ts +61 -0
- package/dist/components/Select/Select.d.ts +57 -0
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +39 -0
- package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
- package/dist/components/Slider/Slider.d.ts +60 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +16 -0
- package/dist/components/StructuredContent/StructuredContent.d.ts +28 -0
- package/dist/components/StyleGuide/ColorCard.d.ts +12 -0
- package/dist/components/Table/Table.d.ts +29 -0
- package/dist/components/Tabs/Tabs.d.ts +26 -0
- package/dist/components/Template/Template.d.ts +126 -0
- package/dist/components/Text/Text.d.ts +16 -0
- package/dist/components/TextInput/TextInput.d.ts +78 -0
- package/dist/components/Toggle/Toggle.d.ts +42 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +38 -0
- package/dist/design-system-react-components.cjs.development.js +11305 -0
- package/dist/design-system-react-components.cjs.development.js.map +1 -0
- package/dist/design-system-react-components.cjs.production.min.js +2 -0
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -0
- package/dist/design-system-react-components.esm.js +11150 -0
- package/dist/design-system-react-components.esm.js.map +1 -0
- package/dist/helpers/types.d.ts +1 -0
- package/dist/hooks/tests/useCarouselStyles.test.d.ts +1 -0
- package/dist/hooks/useCarouselStyles.d.ts +17 -0
- package/dist/hooks/useNYPLTheme.d.ts +66 -0
- package/dist/hooks/useWindowSize.d.ts +10 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +8 -0
- package/dist/resources.scss +386 -0
- package/dist/styles.css +3 -0
- package/dist/theme/components/accordion.d.ts +20 -0
- package/dist/theme/components/breadcrumb.d.ts +105 -0
- package/dist/theme/components/button.d.ts +120 -0
- package/dist/theme/components/buttonGroup.d.ts +11 -0
- package/dist/theme/components/card.d.ts +381 -0
- package/dist/theme/components/checkbox.d.ts +95 -0
- package/dist/theme/components/checkboxGroup.d.ts +14 -0
- package/dist/theme/components/componentWrapper.d.ts +12 -0
- package/dist/theme/components/customTable.d.ts +136 -0
- package/dist/theme/components/datePicker.d.ts +16 -0
- package/dist/theme/components/fieldset.d.ts +20 -0
- package/dist/theme/components/global.d.ts +73 -0
- package/dist/theme/components/globalMixins.d.ts +23 -0
- package/dist/theme/components/heading.d.ts +160 -0
- package/dist/theme/components/helperErrorText.d.ts +12 -0
- package/dist/theme/components/hero.d.ts +499 -0
- package/dist/theme/components/horizontalRule.d.ts +15 -0
- package/dist/theme/components/icon.d.ts +47755 -0
- package/dist/theme/components/image.d.ts +590 -0
- package/dist/theme/components/label.d.ts +18 -0
- package/dist/theme/components/link.d.ts +62 -0
- package/dist/theme/components/list.d.ts +182 -0
- package/dist/theme/components/logo.d.ts +477 -0
- package/dist/theme/components/notification.d.ts +95 -0
- package/dist/theme/components/pagination.d.ts +16 -0
- package/dist/theme/components/progressIndicator.d.ts +52 -0
- package/dist/theme/components/radio.d.ts +99 -0
- package/dist/theme/components/radioGroup.d.ts +14 -0
- package/dist/theme/components/searchBar.d.ts +18 -0
- package/dist/theme/components/select.d.ts +87 -0
- package/dist/theme/components/skeletonLoader.d.ts +102 -0
- package/dist/theme/components/skipNavigation.d.ts +25 -0
- package/dist/theme/components/slider.d.ts +59 -0
- package/dist/theme/components/statusBadge.d.ts +25 -0
- package/dist/theme/components/structuredContent.d.ts +226 -0
- package/dist/theme/components/tabs.d.ts +136 -0
- package/dist/theme/components/template.d.ts +105 -0
- package/dist/theme/components/text.d.ts +26 -0
- package/dist/theme/components/textInput.d.ts +124 -0
- package/dist/theme/components/toggle.d.ts +92 -0
- package/dist/theme/components/videoPlayer.d.ts +40 -0
- package/dist/theme/foundations/breakpoints.d.ts +23 -0
- package/dist/theme/foundations/colors.d.ts +3 -0
- package/dist/theme/foundations/global.d.ts +58 -0
- package/dist/theme/foundations/radii.d.ts +6 -0
- package/dist/theme/foundations/shadows.d.ts +4 -0
- package/dist/theme/foundations/spacing.d.ts +82 -0
- package/dist/theme/foundations/typography.d.ts +8 -0
- package/dist/theme/index.d.ts +20 -0
- package/dist/theme/provider.d.ts +3 -0
- package/dist/theme/types.d.ts +1 -0
- package/dist/utils/componentCategories.d.ts +1 -0
- package/dist/utils/interfaces.d.ts +5 -0
- package/dist/utils/utils.d.ts +31 -0
- package/package.json +133 -20
- package/src/__tests__/fileMock.ts +6 -0
- package/src/__tests__/setup.ts +27 -0
- package/src/__tests__/utils/utils.test.ts +18 -0
- package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +42 -0
- package/src/components/Accordion/Accordion.stories.mdx +333 -0
- package/src/components/Accordion/Accordion.test.tsx +237 -0
- package/src/components/Accordion/Accordion.tsx +137 -0
- package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +734 -0
- package/src/components/Autosuggest/Autosuggest.stories.mdx +75 -0
- package/src/components/Autosuggest/Autosuggest.stories.tsx +211 -0
- package/src/components/Autosuggest/_Autosuggest.scss +51 -0
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +231 -0
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +144 -0
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +98 -0
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +695 -0
- package/src/components/Button/Button.stories.mdx +320 -0
- package/src/components/Button/Button.test.tsx +184 -0
- package/src/components/Button/Button.tsx +95 -0
- package/src/components/Button/__snapshots__/Button.test.tsx.snap +106 -0
- package/src/components/ButtonGroup/ButtonGroup.stories.mdx +178 -0
- package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +100 -0
- package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
- package/src/components/Card/Card.stories.mdx +1041 -0
- package/src/components/Card/Card.test.tsx +388 -0
- package/src/components/Card/Card.tsx +346 -0
- package/src/components/Card/__snapshots__/Card.test.tsx.snap +568 -0
- package/src/components/Chakra/Box.stories.mdx +52 -0
- package/src/components/Chakra/Center.stories.mdx +96 -0
- package/src/components/Chakra/Flex.stories.mdx +111 -0
- package/src/components/Chakra/Grid.stories.mdx +89 -0
- package/src/components/Chakra/Stack.stories.mdx +109 -0
- package/src/components/Checkbox/Checkbox.stories.mdx +243 -0
- package/src/components/Checkbox/Checkbox.test.tsx +350 -0
- package/src/components/Checkbox/Checkbox.tsx +152 -0
- package/src/components/Checkbox/__snapshots__/Checkbox.test.tsx.snap +661 -0
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +462 -0
- package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +492 -0
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +173 -0
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +1842 -0
- package/src/components/ComponentWrapper/ComponentWrapper.test.tsx +163 -0
- package/src/components/ComponentWrapper/ComponentWrapper.tsx +76 -0
- package/src/components/ComponentWrapper/__snapshots__/ComponentWrapper.test.tsx.snap +103 -0
- package/src/components/DatePicker/DatePicker.stories.mdx +452 -0
- package/src/components/DatePicker/DatePicker.test.tsx +940 -0
- package/src/components/DatePicker/DatePicker.tsx +450 -0
- package/src/components/DatePicker/_DatePicker.scss +100 -0
- package/src/components/DatePicker/__snapshots__/DatePicker.test.tsx.snap +908 -0
- package/src/components/Fieldset/Fieldset.stories.mdx +96 -0
- package/src/components/Fieldset/Fieldset.test.tsx +155 -0
- package/src/components/Fieldset/Fieldset.tsx +55 -0
- package/src/components/Fieldset/__snapshots__/Fieldset.test.tsx.snap +89 -0
- package/src/components/Form/Form.stories.mdx +426 -0
- package/src/components/Form/Form.test.tsx +234 -0
- package/src/components/Form/Form.tsx +124 -0
- package/src/components/Form/__snapshots__/Form.test.tsx.snap +115 -0
- package/src/components/Grid/SimpleGrid.stories.mdx +336 -0
- package/src/components/Grid/SimpleGrid.test.tsx +79 -0
- package/src/components/Grid/SimpleGrid.tsx +49 -0
- package/src/components/Grid/__snapshots__/SimpleGrid.test.tsx.snap +23 -0
- package/src/components/Heading/Heading.stories.mdx +187 -0
- package/src/components/Heading/Heading.test.tsx +171 -0
- package/src/components/Heading/Heading.tsx +104 -0
- package/src/components/Heading/__snapshots__/Heading.test.tsx.snap +90 -0
- package/src/components/HelperErrorText/HelperErrorText.stories.mdx +172 -0
- package/src/components/HelperErrorText/HelperErrorText.test.tsx +114 -0
- package/src/components/HelperErrorText/HelperErrorText.tsx +62 -0
- package/src/components/HelperErrorText/__snapshots__/HelperErrorText.test.tsx.snap +93 -0
- package/src/components/Hero/Hero.stories.mdx +378 -0
- package/src/components/Hero/Hero.test.tsx +611 -0
- package/src/components/Hero/Hero.tsx +203 -0
- package/src/components/Hero/__snapshots__/Hero.test.tsx.snap +379 -0
- package/src/components/HorizontalRule/HorizontalRule.stories.mdx +73 -0
- package/src/components/HorizontalRule/HorizontalRule.test.tsx +54 -0
- package/src/components/HorizontalRule/HorizontalRule.tsx +27 -0
- package/src/components/HorizontalRule/__snapshots__/HorizontalRule.test.tsx.snap +44 -0
- package/src/components/Icons/Icon.stories.mdx +413 -0
- package/src/components/Icons/Icon.test.tsx +120 -0
- package/src/components/Icons/Icon.tsx +187 -0
- package/src/components/Icons/IconSvgs.tsx +64 -0
- package/src/components/Icons/__snapshots__/Icon.test.tsx.snap +129 -0
- package/src/components/Image/Image.stories.mdx +332 -0
- package/src/components/Image/Image.test.tsx +155 -0
- package/src/components/Image/Image.tsx +171 -0
- package/src/components/Image/__snapshots__/Image.test.tsx.snap +269 -0
- package/src/components/Label/Label.stories.mdx +100 -0
- package/src/components/Label/Label.test.tsx +116 -0
- package/src/components/Label/Label.tsx +55 -0
- package/src/components/Label/__snapshots__/Label.test.tsx.snap +45 -0
- package/src/components/Link/Link.stories.mdx +249 -0
- package/src/components/Link/Link.test.tsx +224 -0
- package/src/components/Link/Link.tsx +178 -0
- package/src/components/Link/__snapshots__/Link.test.tsx.snap +286 -0
- package/src/components/List/List.stories.mdx +393 -0
- package/src/components/List/List.test.tsx +265 -0
- package/src/components/List/List.tsx +156 -0
- package/src/components/List/__snapshots__/List.test.tsx.snap +213 -0
- package/src/components/Logo/Logo.stories.mdx +295 -0
- package/src/components/Logo/Logo.test.tsx +116 -0
- package/src/components/Logo/Logo.tsx +151 -0
- package/src/components/Logo/LogoSvgs.tsx +90 -0
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +142 -0
- package/src/components/Modal/Modal.stories.mdx +294 -0
- package/src/components/Modal/Modal.test.tsx +157 -0
- package/src/components/Modal/Modal.tsx +154 -0
- package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +25 -0
- package/src/components/Notification/Notification.stories.mdx +358 -0
- package/src/components/Notification/Notification.test.tsx +279 -0
- package/src/components/Notification/Notification.tsx +224 -0
- package/src/components/Notification/__snapshots__/Notification.test.tsx.snap +525 -0
- package/src/components/Pagination/Pagination.stories.mdx +184 -0
- package/src/components/Pagination/Pagination.test.tsx +419 -0
- package/src/components/Pagination/Pagination.tsx +269 -0
- package/src/components/Pagination/__snapshots__/Pagination.test.tsx.snap +544 -0
- package/src/components/Placeholder/Placeholder.tsx +19 -0
- package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +360 -0
- package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +298 -0
- package/src/components/ProgressIndicator/ProgressIndicator.tsx +132 -0
- package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +434 -0
- package/src/components/Radio/Radio.stories.mdx +216 -0
- package/src/components/Radio/Radio.test.tsx +247 -0
- package/src/components/Radio/Radio.tsx +119 -0
- package/src/components/Radio/__snapshots__/Radio.test.tsx.snap +451 -0
- package/src/components/RadioGroup/RadioGroup.stories.mdx +479 -0
- package/src/components/RadioGroup/RadioGroup.test.tsx +471 -0
- package/src/components/RadioGroup/RadioGroup.tsx +171 -0
- package/src/components/RadioGroup/__snapshots__/RadioGroup.test.tsx.snap +1550 -0
- package/src/components/SearchBar/SearchBar.stories.mdx +518 -0
- package/src/components/SearchBar/SearchBar.test.tsx +435 -0
- package/src/components/SearchBar/SearchBar.tsx +210 -0
- package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +1049 -0
- package/src/components/Select/Select.stories.mdx +439 -0
- package/src/components/Select/Select.test.tsx +358 -0
- package/src/components/Select/Select.tsx +183 -0
- package/src/components/Select/__snapshots__/Select.test.tsx.snap +895 -0
- package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +142 -0
- package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +116 -0
- package/src/components/SkeletonLoader/SkeletonLoader.tsx +123 -0
- package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +898 -0
- package/src/components/SkipNavigation/SkipNavigation.stories.mdx +90 -0
- package/src/components/SkipNavigation/SkipNavigation.test.tsx +63 -0
- package/src/components/SkipNavigation/SkipNavigation.tsx +51 -0
- package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +130 -0
- package/src/components/Slider/Slider.stories.mdx +628 -0
- package/src/components/Slider/Slider.test.tsx +736 -0
- package/src/components/Slider/Slider.tsx +322 -0
- package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2186 -0
- package/src/components/StatusBadge/StatusBadge.stories.mdx +109 -0
- package/src/components/StatusBadge/StatusBadge.test.tsx +70 -0
- package/src/components/StatusBadge/StatusBadge.tsx +35 -0
- package/src/components/StatusBadge/__snapshots__/StatusBadge.test.tsx.snap +47 -0
- package/src/components/StructuredContent/StructuredContent.stories.mdx +567 -0
- package/src/components/StructuredContent/StructuredContent.test.tsx +435 -0
- package/src/components/StructuredContent/StructuredContent.tsx +139 -0
- package/src/components/StructuredContent/__snapshots__/StructuredContent.test.tsx.snap +368 -0
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +206 -0
- package/src/components/StyleGuide/Breakpoints.stories.mdx +55 -0
- package/src/components/StyleGuide/Buttons.stories.mdx +194 -0
- package/src/components/StyleGuide/ColorCard.tsx +43 -0
- package/src/components/StyleGuide/Colors.stories.mdx +201 -0
- package/src/components/StyleGuide/DesignTokens.stories.mdx +193 -0
- package/src/components/StyleGuide/Forms.stories.mdx +94 -0
- package/src/components/StyleGuide/Iconography.stories.mdx +142 -0
- package/src/components/StyleGuide/Spacing.stories.mdx +116 -0
- package/src/components/StyleGuide/Typography.stories.mdx +419 -0
- package/src/components/Table/Table.stories.mdx +272 -0
- package/src/components/Table/Table.test.tsx +241 -0
- package/src/components/Table/Table.tsx +152 -0
- package/src/components/Table/__snapshots__/Table.test.tsx.snap +1703 -0
- package/src/components/Tabs/Tabs.stories.mdx +338 -0
- package/src/components/Tabs/Tabs.test.tsx +298 -0
- package/src/components/Tabs/Tabs.tsx +264 -0
- package/src/components/Tabs/__snapshots__/Tabs.test.tsx.snap +584 -0
- package/src/components/Template/Template.stories.mdx +695 -0
- package/src/components/Template/Template.test.tsx +309 -0
- package/src/components/Template/Template.tsx +326 -0
- package/src/components/Template/__snapshots__/Template.test.tsx.snap +342 -0
- package/src/components/Text/Text.stories.mdx +103 -0
- package/src/components/Text/Text.test.tsx +63 -0
- package/src/components/Text/Text.tsx +50 -0
- package/src/components/Text/__snapshots__/Text.test.tsx.snap +50 -0
- package/src/components/TextInput/TextInput.stories.mdx +268 -0
- package/src/components/TextInput/TextInput.test.tsx +451 -0
- package/src/components/TextInput/TextInput.tsx +240 -0
- package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +274 -0
- package/src/components/Toggle/Toggle.stories.mdx +237 -0
- package/src/components/Toggle/Toggle.test.tsx +170 -0
- package/src/components/Toggle/Toggle.tsx +128 -0
- package/src/components/Toggle/__snapshots__/Toggle.test.tsx.snap +470 -0
- package/src/components/VideoPlayer/VideoPlayer.stories.mdx +212 -0
- package/src/components/VideoPlayer/VideoPlayer.test.tsx +308 -0
- package/src/components/VideoPlayer/VideoPlayer.tsx +188 -0
- package/src/components/VideoPlayer/__snapshots__/VideoPlayer.test.tsx.snap +192 -0
- package/src/docs/Chakra.stories.mdx +563 -0
- package/src/docs/Welcome.stories.mdx +148 -0
- package/src/helpers/types.ts +1 -0
- package/src/hooks/tests/useCarouselStyles.test.ts +140 -0
- package/src/hooks/tests/useNYPLTheme.test.tsx +36 -0
- package/src/hooks/useCarouselStyles.stories.mdx +30 -0
- package/src/hooks/useCarouselStyles.ts +35 -0
- package/src/hooks/useNYPLTheme.stories.mdx +98 -0
- package/src/hooks/useNYPLTheme.ts +91 -0
- package/src/hooks/useWindowSize.stories.mdx +23 -0
- package/src/hooks/useWindowSize.ts +40 -0
- package/src/index.ts +136 -0
- package/src/resources.scss +6 -0
- package/src/styles/base/_01-breakpoints.scss +27 -0
- package/src/styles/base/_02-mixins.scss +103 -0
- package/src/styles/base/_place-holder.scss +33 -0
- package/src/styles/space/_space-inline.scss +79 -0
- package/src/styles/space/_space-inset.scss +57 -0
- package/src/styles/space/_space-stack.scss +116 -0
- package/src/styles.scss +23 -0
- package/src/theme/components/accordion.ts +25 -0
- package/src/theme/components/breadcrumb.ts +94 -0
- package/src/theme/components/button.ts +133 -0
- package/src/theme/components/buttonGroup.ts +10 -0
- package/src/theme/components/card.ts +237 -0
- package/src/theme/components/checkbox.ts +110 -0
- package/src/theme/components/checkboxGroup.ts +10 -0
- package/src/theme/components/componentWrapper.ts +14 -0
- package/src/theme/components/customTable.ts +77 -0
- package/src/theme/components/datePicker.ts +17 -0
- package/src/theme/components/fieldset.ts +23 -0
- package/src/theme/components/global.ts +91 -0
- package/src/theme/components/globalMixins.ts +24 -0
- package/src/theme/components/heading.ts +79 -0
- package/src/theme/components/helperErrorText.ts +14 -0
- package/src/theme/components/hero.ts +238 -0
- package/src/theme/components/horizontalRule.ts +17 -0
- package/src/theme/components/icon.ts +88 -0
- package/src/theme/components/image.ts +136 -0
- package/src/theme/components/label.ts +15 -0
- package/src/theme/components/link.ts +63 -0
- package/src/theme/components/list.ts +88 -0
- package/src/theme/components/logo.ts +58 -0
- package/src/theme/components/notification.ts +132 -0
- package/src/theme/components/pagination.ts +17 -0
- package/src/theme/components/progressIndicator.ts +67 -0
- package/src/theme/components/radio.ts +103 -0
- package/src/theme/components/radioGroup.ts +10 -0
- package/src/theme/components/searchBar.ts +19 -0
- package/src/theme/components/select.ts +72 -0
- package/src/theme/components/skeletonLoader.ts +113 -0
- package/src/theme/components/skipNavigation.ts +29 -0
- package/src/theme/components/slider.ts +95 -0
- package/src/theme/components/statusBadge.ts +26 -0
- package/src/theme/components/structuredContent.ts +149 -0
- package/src/theme/components/tabs.ts +109 -0
- package/src/theme/components/template.ts +114 -0
- package/src/theme/components/text.ts +38 -0
- package/src/theme/components/textInput.ts +65 -0
- package/src/theme/components/toggle.ts +109 -0
- package/src/theme/components/videoPlayer.ts +47 -0
- package/src/theme/foundations/breakpoints.ts +24 -0
- package/src/theme/foundations/colors.ts +212 -0
- package/src/theme/foundations/global.ts +43 -0
- package/src/theme/foundations/radii.ts +7 -0
- package/src/theme/foundations/shadows.ts +5 -0
- package/src/theme/foundations/spacing.ts +136 -0
- package/src/theme/foundations/typography.ts +107 -0
- package/src/theme/index.ts +131 -0
- package/src/theme/provider.tsx +9 -0
- package/src/theme/types.ts +1 -0
- package/src/utils/componentCategories.ts +152 -0
- package/src/utils/interfaces.ts +5 -0
- package/src/utils/utils.ts +84 -0
- package/lib/components/Button/Button.d.ts +0 -17
- package/lib/components/Button/Button.js +0 -42
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -6
- package/lib/stories/0-Welcome.stories.js +0 -19
- package/lib/stories/1-Button.stories.d.ts +0 -6
- package/lib/stories/1-Button.stories.js +0 -20
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare const Button: {
|
|
2
|
+
baseStyle: {
|
|
3
|
+
borderRadius: string;
|
|
4
|
+
lineHeight: string;
|
|
5
|
+
display: string;
|
|
6
|
+
cursor: string;
|
|
7
|
+
color: string;
|
|
8
|
+
justifyContent: string;
|
|
9
|
+
maxHeight: string;
|
|
10
|
+
py: string;
|
|
11
|
+
px: string;
|
|
12
|
+
textDecoration: string;
|
|
13
|
+
wordWrap: string;
|
|
14
|
+
fontWeight: string;
|
|
15
|
+
svg: {
|
|
16
|
+
fill: string;
|
|
17
|
+
marginTop: string;
|
|
18
|
+
};
|
|
19
|
+
_hover: {
|
|
20
|
+
bg: string;
|
|
21
|
+
};
|
|
22
|
+
_visited: {
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
_disabled: {
|
|
26
|
+
bg: string;
|
|
27
|
+
color: string;
|
|
28
|
+
pointerEvents: string;
|
|
29
|
+
opacity: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
variants: {
|
|
33
|
+
primary: {
|
|
34
|
+
bg: string;
|
|
35
|
+
minWidth: string;
|
|
36
|
+
height: string;
|
|
37
|
+
fontSize: string;
|
|
38
|
+
};
|
|
39
|
+
secondary: {
|
|
40
|
+
bg: string;
|
|
41
|
+
border: string;
|
|
42
|
+
borderColor: string;
|
|
43
|
+
color: string;
|
|
44
|
+
fontSize: string;
|
|
45
|
+
_hover: {
|
|
46
|
+
bg: string;
|
|
47
|
+
borderColor: string;
|
|
48
|
+
};
|
|
49
|
+
_disabled: {
|
|
50
|
+
bg: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
link: {
|
|
54
|
+
bg: string;
|
|
55
|
+
lineHeight: string;
|
|
56
|
+
color: string;
|
|
57
|
+
textDecoration: string;
|
|
58
|
+
_disabled: {
|
|
59
|
+
bg: string;
|
|
60
|
+
};
|
|
61
|
+
_hover: {
|
|
62
|
+
bg: string;
|
|
63
|
+
color: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
pill: {
|
|
67
|
+
bg: string;
|
|
68
|
+
border: string;
|
|
69
|
+
borderColor: string;
|
|
70
|
+
color: string;
|
|
71
|
+
borderRadius: string;
|
|
72
|
+
py: string;
|
|
73
|
+
px: string;
|
|
74
|
+
fontSize: string;
|
|
75
|
+
_hover: {
|
|
76
|
+
bg: string;
|
|
77
|
+
borderColor: string;
|
|
78
|
+
};
|
|
79
|
+
_disabled: {
|
|
80
|
+
bg: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
iconOnly: {
|
|
84
|
+
bg: string;
|
|
85
|
+
border: string;
|
|
86
|
+
borderColor: string;
|
|
87
|
+
color: string;
|
|
88
|
+
_hover: {
|
|
89
|
+
bg: string;
|
|
90
|
+
borderColor: string;
|
|
91
|
+
};
|
|
92
|
+
paddingInlineStart: string;
|
|
93
|
+
paddingInlineEnd: string;
|
|
94
|
+
};
|
|
95
|
+
callout: {
|
|
96
|
+
bg: string;
|
|
97
|
+
fontSize: string;
|
|
98
|
+
_hover: {
|
|
99
|
+
bg: string;
|
|
100
|
+
};
|
|
101
|
+
_active: {
|
|
102
|
+
bg: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
noBrand: {
|
|
106
|
+
bg: string;
|
|
107
|
+
color: string;
|
|
108
|
+
_hover: {
|
|
109
|
+
bg: string;
|
|
110
|
+
};
|
|
111
|
+
minWidth: string;
|
|
112
|
+
height: string;
|
|
113
|
+
fontSize: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
defaultProps: {
|
|
117
|
+
variant: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export default Button;
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
interface CardBaseStyleProps {
|
|
2
|
+
hasImage: boolean;
|
|
3
|
+
imageIsAtEnd: boolean;
|
|
4
|
+
isAlignedRightActions: boolean;
|
|
5
|
+
isBordered: boolean;
|
|
6
|
+
isCentered: boolean;
|
|
7
|
+
layout: string;
|
|
8
|
+
mainActionLink: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface CardImageBaseStyleProps {
|
|
11
|
+
imageIsAtEnd: boolean;
|
|
12
|
+
isCentered: boolean;
|
|
13
|
+
size: keyof typeof imageSizes;
|
|
14
|
+
layout: string;
|
|
15
|
+
}
|
|
16
|
+
interface CardActionsBaseStyleProps {
|
|
17
|
+
bottomBorder: boolean;
|
|
18
|
+
isCentered: boolean;
|
|
19
|
+
layout: string;
|
|
20
|
+
topBorder: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const imageSizes: {
|
|
23
|
+
xxsmall: {
|
|
24
|
+
flex: {
|
|
25
|
+
base: string;
|
|
26
|
+
md: string;
|
|
27
|
+
};
|
|
28
|
+
width: string;
|
|
29
|
+
};
|
|
30
|
+
xsmall: {
|
|
31
|
+
flex: {
|
|
32
|
+
md: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
small: {
|
|
36
|
+
flex: {
|
|
37
|
+
md: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
medium: {
|
|
41
|
+
flex: {
|
|
42
|
+
md: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
large: {
|
|
46
|
+
flex: {
|
|
47
|
+
md: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
declare const _default: {
|
|
52
|
+
Card: {
|
|
53
|
+
parts: string[];
|
|
54
|
+
baseStyle: ({ hasImage, imageIsAtEnd, isAlignedRightActions, isBordered, isCentered, layout, mainActionLink, }: CardBaseStyleProps) => {
|
|
55
|
+
display: string;
|
|
56
|
+
flexFlow: {
|
|
57
|
+
base: string;
|
|
58
|
+
md: string;
|
|
59
|
+
};
|
|
60
|
+
maxWidth: string;
|
|
61
|
+
textAlign: string;
|
|
62
|
+
alignItems: string;
|
|
63
|
+
border: string;
|
|
64
|
+
borderColor: string;
|
|
65
|
+
actions: {
|
|
66
|
+
flexShrink: {
|
|
67
|
+
base: string;
|
|
68
|
+
md: string;
|
|
69
|
+
};
|
|
70
|
+
marginLeft: {
|
|
71
|
+
base: string;
|
|
72
|
+
md: string;
|
|
73
|
+
};
|
|
74
|
+
marginTop: {
|
|
75
|
+
base: string;
|
|
76
|
+
md: string;
|
|
77
|
+
};
|
|
78
|
+
maxWidth: {
|
|
79
|
+
base: string;
|
|
80
|
+
md: string;
|
|
81
|
+
};
|
|
82
|
+
width: string;
|
|
83
|
+
};
|
|
84
|
+
body: {
|
|
85
|
+
display: {
|
|
86
|
+
md: string;
|
|
87
|
+
};
|
|
88
|
+
flexBasis: {
|
|
89
|
+
sm: string;
|
|
90
|
+
};
|
|
91
|
+
flexFlow: {
|
|
92
|
+
md: string;
|
|
93
|
+
};
|
|
94
|
+
margin: any;
|
|
95
|
+
padding: any;
|
|
96
|
+
width: {
|
|
97
|
+
base: string;
|
|
98
|
+
md: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
heading: {
|
|
102
|
+
marginBottom: string;
|
|
103
|
+
a: {
|
|
104
|
+
color: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
} | {
|
|
108
|
+
display: string;
|
|
109
|
+
flexFlow: string;
|
|
110
|
+
maxWidth?: undefined;
|
|
111
|
+
textAlign: string;
|
|
112
|
+
alignItems: string;
|
|
113
|
+
border: string;
|
|
114
|
+
borderColor: string;
|
|
115
|
+
actions: {
|
|
116
|
+
flexShrink: {
|
|
117
|
+
base: string;
|
|
118
|
+
md: string;
|
|
119
|
+
};
|
|
120
|
+
marginLeft: {
|
|
121
|
+
base: string;
|
|
122
|
+
md: string;
|
|
123
|
+
};
|
|
124
|
+
marginTop: {
|
|
125
|
+
base: string;
|
|
126
|
+
md: string;
|
|
127
|
+
};
|
|
128
|
+
maxWidth: {
|
|
129
|
+
base: string;
|
|
130
|
+
md: string;
|
|
131
|
+
};
|
|
132
|
+
width: string;
|
|
133
|
+
};
|
|
134
|
+
body: {
|
|
135
|
+
display: {
|
|
136
|
+
md: string;
|
|
137
|
+
};
|
|
138
|
+
flexBasis: {
|
|
139
|
+
sm: string;
|
|
140
|
+
};
|
|
141
|
+
flexFlow: {
|
|
142
|
+
md: string;
|
|
143
|
+
};
|
|
144
|
+
margin: any;
|
|
145
|
+
padding: any;
|
|
146
|
+
width: {
|
|
147
|
+
base: string;
|
|
148
|
+
md: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
heading: {
|
|
152
|
+
marginBottom: string;
|
|
153
|
+
a: {
|
|
154
|
+
color: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
} | {
|
|
158
|
+
display: string;
|
|
159
|
+
flexFlow: {
|
|
160
|
+
base: string;
|
|
161
|
+
md: string;
|
|
162
|
+
};
|
|
163
|
+
maxWidth: string;
|
|
164
|
+
textAlign: string;
|
|
165
|
+
alignItems: string;
|
|
166
|
+
border?: undefined;
|
|
167
|
+
borderColor?: undefined;
|
|
168
|
+
actions: {
|
|
169
|
+
flexShrink: {
|
|
170
|
+
base: string;
|
|
171
|
+
md: string;
|
|
172
|
+
};
|
|
173
|
+
marginLeft: {
|
|
174
|
+
base: string;
|
|
175
|
+
md: string;
|
|
176
|
+
};
|
|
177
|
+
marginTop: {
|
|
178
|
+
base: string;
|
|
179
|
+
md: string;
|
|
180
|
+
};
|
|
181
|
+
maxWidth: {
|
|
182
|
+
base: string;
|
|
183
|
+
md: string;
|
|
184
|
+
};
|
|
185
|
+
width: string;
|
|
186
|
+
};
|
|
187
|
+
body: {
|
|
188
|
+
display: {
|
|
189
|
+
md: string;
|
|
190
|
+
};
|
|
191
|
+
flexBasis: {
|
|
192
|
+
sm: string;
|
|
193
|
+
};
|
|
194
|
+
flexFlow: {
|
|
195
|
+
md: string;
|
|
196
|
+
};
|
|
197
|
+
margin: any;
|
|
198
|
+
padding: any;
|
|
199
|
+
width: {
|
|
200
|
+
base: string;
|
|
201
|
+
md: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
heading: {
|
|
205
|
+
marginBottom: string;
|
|
206
|
+
a: {
|
|
207
|
+
color: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
} | {
|
|
211
|
+
display: string;
|
|
212
|
+
flexFlow: string;
|
|
213
|
+
maxWidth?: undefined;
|
|
214
|
+
textAlign: string;
|
|
215
|
+
alignItems: string;
|
|
216
|
+
border?: undefined;
|
|
217
|
+
borderColor?: undefined;
|
|
218
|
+
actions: {
|
|
219
|
+
flexShrink: {
|
|
220
|
+
base: string;
|
|
221
|
+
md: string;
|
|
222
|
+
};
|
|
223
|
+
marginLeft: {
|
|
224
|
+
base: string;
|
|
225
|
+
md: string;
|
|
226
|
+
};
|
|
227
|
+
marginTop: {
|
|
228
|
+
base: string;
|
|
229
|
+
md: string;
|
|
230
|
+
};
|
|
231
|
+
maxWidth: {
|
|
232
|
+
base: string;
|
|
233
|
+
md: string;
|
|
234
|
+
};
|
|
235
|
+
width: string;
|
|
236
|
+
};
|
|
237
|
+
body: {
|
|
238
|
+
display: {
|
|
239
|
+
md: string;
|
|
240
|
+
};
|
|
241
|
+
flexBasis: {
|
|
242
|
+
sm: string;
|
|
243
|
+
};
|
|
244
|
+
flexFlow: {
|
|
245
|
+
md: string;
|
|
246
|
+
};
|
|
247
|
+
margin: any;
|
|
248
|
+
padding: any;
|
|
249
|
+
width: {
|
|
250
|
+
base: string;
|
|
251
|
+
md: string;
|
|
252
|
+
};
|
|
253
|
+
};
|
|
254
|
+
heading: {
|
|
255
|
+
marginBottom: string;
|
|
256
|
+
a: {
|
|
257
|
+
color: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
CardActions: {
|
|
263
|
+
baseStyle: ({ bottomBorder, isCentered, layout, topBorder, }: CardActionsBaseStyleProps) => {
|
|
264
|
+
justifyContent: any;
|
|
265
|
+
borderColor: string;
|
|
266
|
+
borderBottom: string;
|
|
267
|
+
paddingBottom: string;
|
|
268
|
+
borderTop: string;
|
|
269
|
+
paddingTop: string;
|
|
270
|
+
marginBottom: string;
|
|
271
|
+
columnGap: string;
|
|
272
|
+
display: string;
|
|
273
|
+
_last: {
|
|
274
|
+
marginBottom: string;
|
|
275
|
+
};
|
|
276
|
+
} | {
|
|
277
|
+
justifyContent: any;
|
|
278
|
+
borderColor: string;
|
|
279
|
+
borderBottom?: undefined;
|
|
280
|
+
paddingBottom?: undefined;
|
|
281
|
+
borderTop: string;
|
|
282
|
+
paddingTop: string;
|
|
283
|
+
marginBottom: string;
|
|
284
|
+
columnGap: string;
|
|
285
|
+
display: string;
|
|
286
|
+
_last: {
|
|
287
|
+
marginBottom: string;
|
|
288
|
+
};
|
|
289
|
+
} | {
|
|
290
|
+
justifyContent: any;
|
|
291
|
+
borderColor: string;
|
|
292
|
+
borderBottom: string;
|
|
293
|
+
paddingBottom: string;
|
|
294
|
+
borderTop?: undefined;
|
|
295
|
+
paddingTop?: undefined;
|
|
296
|
+
marginBottom: string;
|
|
297
|
+
columnGap: string;
|
|
298
|
+
display: string;
|
|
299
|
+
_last: {
|
|
300
|
+
marginBottom: string;
|
|
301
|
+
};
|
|
302
|
+
} | {
|
|
303
|
+
justifyContent: any;
|
|
304
|
+
borderColor: string;
|
|
305
|
+
borderBottom?: undefined;
|
|
306
|
+
paddingBottom?: undefined;
|
|
307
|
+
borderTop?: undefined;
|
|
308
|
+
paddingTop?: undefined;
|
|
309
|
+
marginBottom: string;
|
|
310
|
+
columnGap: string;
|
|
311
|
+
display: string;
|
|
312
|
+
_last: {
|
|
313
|
+
marginBottom: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
CardContent: {
|
|
318
|
+
baseStyle: {
|
|
319
|
+
marginBottom: string;
|
|
320
|
+
_last: {
|
|
321
|
+
marginBottom: string;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
CardImage: {
|
|
326
|
+
baseStyle: ({ imageIsAtEnd, isCentered, layout, size, }: CardImageBaseStyleProps) => {
|
|
327
|
+
flex: {
|
|
328
|
+
md: string;
|
|
329
|
+
};
|
|
330
|
+
maxWidth: {
|
|
331
|
+
base: string;
|
|
332
|
+
md: string;
|
|
333
|
+
};
|
|
334
|
+
textAlign: string;
|
|
335
|
+
alignItems: string;
|
|
336
|
+
margin: {
|
|
337
|
+
base: string;
|
|
338
|
+
md: string;
|
|
339
|
+
};
|
|
340
|
+
width: {
|
|
341
|
+
base: string;
|
|
342
|
+
md: any;
|
|
343
|
+
};
|
|
344
|
+
marginBottom: string[];
|
|
345
|
+
marginTop: string;
|
|
346
|
+
order: string;
|
|
347
|
+
} | {
|
|
348
|
+
marginBottom: string;
|
|
349
|
+
width: string;
|
|
350
|
+
marginTop: string;
|
|
351
|
+
order: string;
|
|
352
|
+
} | {
|
|
353
|
+
flex: {
|
|
354
|
+
md: string;
|
|
355
|
+
};
|
|
356
|
+
maxWidth: {
|
|
357
|
+
base: string;
|
|
358
|
+
md: string;
|
|
359
|
+
};
|
|
360
|
+
textAlign: string;
|
|
361
|
+
alignItems: string;
|
|
362
|
+
margin: {
|
|
363
|
+
base: string;
|
|
364
|
+
md: string;
|
|
365
|
+
};
|
|
366
|
+
width: {
|
|
367
|
+
base: string;
|
|
368
|
+
md: any;
|
|
369
|
+
};
|
|
370
|
+
marginBottom: string[];
|
|
371
|
+
marginTop?: undefined;
|
|
372
|
+
order?: undefined;
|
|
373
|
+
} | {
|
|
374
|
+
marginBottom: string;
|
|
375
|
+
width: string;
|
|
376
|
+
marginTop?: undefined;
|
|
377
|
+
order?: undefined;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const Checkbox: {
|
|
2
|
+
parts: string[];
|
|
3
|
+
baseStyle: {
|
|
4
|
+
icon: {
|
|
5
|
+
transitionProperty: string;
|
|
6
|
+
transitionDuration: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
};
|
|
10
|
+
control: {
|
|
11
|
+
border: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
color: string;
|
|
15
|
+
outline: string;
|
|
16
|
+
transitionProperty: string;
|
|
17
|
+
transitionDuration: string;
|
|
18
|
+
_checked: {
|
|
19
|
+
bg: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
color: string;
|
|
22
|
+
_hover: {
|
|
23
|
+
bg: string;
|
|
24
|
+
};
|
|
25
|
+
_disabled: {
|
|
26
|
+
bg: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
svg: {
|
|
29
|
+
color: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
_indeterminate: {
|
|
33
|
+
color: string;
|
|
34
|
+
borderColor: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
_indeterminate: {
|
|
38
|
+
color: string;
|
|
39
|
+
borderColor: string;
|
|
40
|
+
};
|
|
41
|
+
_disabled: {
|
|
42
|
+
bg: string;
|
|
43
|
+
borderColor: string;
|
|
44
|
+
};
|
|
45
|
+
_focus: {
|
|
46
|
+
borderColor: string;
|
|
47
|
+
boxShadow: string;
|
|
48
|
+
outlineColor: string;
|
|
49
|
+
};
|
|
50
|
+
_invalid: {
|
|
51
|
+
borderColor: string;
|
|
52
|
+
color: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
label: {
|
|
56
|
+
userSelect: string;
|
|
57
|
+
fontWeight: string;
|
|
58
|
+
marginBottom: string;
|
|
59
|
+
marginLeft: string;
|
|
60
|
+
width: string;
|
|
61
|
+
_disabled: {
|
|
62
|
+
color: string;
|
|
63
|
+
opacity: number;
|
|
64
|
+
fontStyle: string;
|
|
65
|
+
};
|
|
66
|
+
_invalid: {
|
|
67
|
+
color: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
helperErrorText: {
|
|
71
|
+
marginLeft: string;
|
|
72
|
+
_disabled: {
|
|
73
|
+
color: string;
|
|
74
|
+
fontStyle: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
sizes: {
|
|
79
|
+
lg: {
|
|
80
|
+
control: {
|
|
81
|
+
borderRadius: string;
|
|
82
|
+
h: string;
|
|
83
|
+
w: string;
|
|
84
|
+
};
|
|
85
|
+
label: {
|
|
86
|
+
fontSize: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
defaultProps: {
|
|
91
|
+
size: string;
|
|
92
|
+
colorScheme: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export default Checkbox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ComponentWrapperProps {
|
|
2
|
+
hasChildren: boolean;
|
|
3
|
+
}
|
|
4
|
+
declare const ComponentWrapper: {
|
|
5
|
+
parts: string[];
|
|
6
|
+
baseStyle: ({ hasChildren }: ComponentWrapperProps) => {
|
|
7
|
+
helperErrorText: {
|
|
8
|
+
marginTop: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default ComponentWrapper;
|