@nypl/design-system-react-components 0.27.0 → 0.28.0
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 +29 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -5
- package/dist/components/Button/Button.d.ts +2 -10
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -8
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +2 -2
- package/dist/components/Grid/SimpleGrid.d.ts +6 -3
- package/dist/components/Heading/Heading.d.ts +2 -5
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +1 -5
- package/dist/components/Hero/Hero.d.ts +13 -9
- package/dist/components/Icons/Icon.d.ts +6 -5
- package/dist/components/Icons/IconSvgs.d.ts +21 -21
- package/dist/components/Image/Image.d.ts +8 -5
- package/dist/components/Link/Link.d.ts +1 -9
- package/dist/components/List/List.d.ts +7 -11
- package/dist/components/Logo/Logo.d.ts +2 -5
- package/dist/components/Logo/LogoSvgs.d.ts +39 -39
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +2 -5
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -4
- package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Template/Template.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +21 -9
- package/dist/components/Toggle/Toggle.d.ts +1 -5
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
- package/dist/design-system-react-components.cjs.development.js +856 -1155
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +858 -1220
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/helpers/types.d.ts +1 -0
- package/dist/index.d.ts +26 -47
- package/dist/theme/components/buttonGroup.d.ts +11 -0
- package/dist/theme/components/card.d.ts +104 -8
- package/dist/theme/components/componentWrapper.d.ts +4 -3
- package/dist/theme/components/customTable.d.ts +11 -14
- package/dist/theme/components/fieldset.d.ts +4 -3
- package/dist/theme/components/helperErrorText.d.ts +4 -3
- package/dist/theme/components/hero.d.ts +1 -1
- package/dist/theme/components/horizontalRule.d.ts +4 -3
- package/dist/theme/components/icon.d.ts +47743 -1
- package/dist/theme/components/image.d.ts +563 -10
- package/dist/theme/components/label.d.ts +4 -3
- package/dist/theme/components/list.d.ts +6 -7
- package/dist/theme/components/logo.d.ts +474 -1
- package/dist/theme/components/notification.d.ts +20 -16
- package/dist/theme/components/progressIndicator.d.ts +6 -4
- package/dist/theme/components/select.d.ts +4 -4
- package/dist/theme/components/skeletonLoader.d.ts +14 -10
- package/dist/theme/components/skipNavigation.d.ts +22 -0
- package/dist/theme/components/slider.d.ts +7 -6
- package/dist/theme/components/structuredContent.d.ts +10 -9
- package/dist/theme/components/text.d.ts +7 -1
- package/dist/theme/components/toggle.d.ts +6 -4
- package/dist/theme/provider.d.ts +2 -4
- package/dist/utils/componentCategories.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +5 -0
- package/dist/utils/utils.d.ts +2 -18
- package/package.json +2 -2
- package/src/__tests__/setup.ts +3 -3
- package/src/__tests__/utils/utils.test.ts +1 -23
- package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +22 -14
- package/src/components/Accordion/Accordion.stories.mdx +43 -44
- package/src/components/Accordion/Accordion.test.tsx +5 -13
- package/src/components/Accordion/Accordion.tsx +14 -18
- package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +6 -6
- package/src/components/Autosuggest/Autosuggest.stories.mdx +1 -1
- package/src/components/Autosuggest/Autosuggest.stories.tsx +23 -25
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -37
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +4 -17
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +18 -21
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +1 -100
- package/src/components/Button/Button.stories.mdx +89 -126
- package/src/components/Button/Button.test.tsx +16 -30
- package/src/components/Button/Button.tsx +14 -20
- package/src/components/ButtonGroup/ButtonGroup.stories.mdx +147 -0
- package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +99 -0
- package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
- package/src/components/Card/Card.stories.mdx +143 -177
- package/src/components/Card/Card.test.tsx +36 -97
- package/src/components/Card/Card.tsx +78 -74
- package/src/components/Chakra/Box.stories.mdx +2 -6
- package/src/components/Chakra/Center.stories.mdx +5 -23
- package/src/components/Chakra/Flex.stories.mdx +4 -6
- package/src/components/Chakra/Stack.stories.mdx +9 -10
- package/src/components/Checkbox/Checkbox.stories.mdx +1 -1
- package/src/components/Checkbox/Checkbox.test.tsx +2 -2
- package/src/components/Checkbox/Checkbox.tsx +20 -13
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +6 -17
- package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +1 -7
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +33 -29
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -11
- package/src/components/ComponentWrapper/ComponentWrapper.tsx +3 -10
- package/src/components/DatePicker/DatePicker.stories.mdx +23 -37
- package/src/components/DatePicker/DatePicker.test.tsx +21 -19
- package/src/components/DatePicker/DatePicker.tsx +57 -49
- package/src/components/Form/Form.stories.mdx +46 -31
- package/src/components/Form/Form.test.tsx +1 -18
- package/src/components/Form/Form.tsx +7 -7
- package/src/components/Grid/SimpleGrid.stories.mdx +73 -49
- package/src/components/Grid/SimpleGrid.test.tsx +7 -9
- package/src/components/Grid/SimpleGrid.tsx +14 -11
- package/src/components/Heading/Heading.stories.mdx +27 -72
- package/src/components/Heading/Heading.test.tsx +18 -44
- package/src/components/Heading/Heading.tsx +7 -10
- package/src/components/HelperErrorText/HelperErrorText.stories.mdx +1 -3
- package/src/components/HelperErrorText/HelperErrorText.tsx +1 -5
- package/src/components/Hero/Hero.stories.mdx +219 -216
- package/src/components/Hero/Hero.test.tsx +107 -223
- package/src/components/Hero/Hero.tsx +63 -61
- package/src/components/Icons/Icon.stories.mdx +172 -118
- package/src/components/Icons/Icon.test.tsx +8 -16
- package/src/components/Icons/Icon.tsx +75 -29
- package/src/components/Icons/IconSvgs.tsx +42 -42
- package/src/components/Image/Image.stories.mdx +45 -132
- package/src/components/Image/Image.test.tsx +16 -31
- package/src/components/Image/Image.tsx +28 -12
- package/src/components/Link/Link.stories.mdx +30 -80
- package/src/components/Link/Link.test.tsx +25 -53
- package/src/components/Link/Link.tsx +43 -56
- package/src/components/Link/__snapshots__/Link.test.tsx.snap +1 -2
- package/src/components/List/List.stories.mdx +20 -31
- package/src/components/List/List.test.tsx +24 -43
- package/src/components/List/List.tsx +25 -36
- package/src/components/Logo/Logo.stories.mdx +94 -50
- package/src/components/Logo/Logo.test.tsx +10 -19
- package/src/components/Logo/Logo.tsx +50 -17
- package/src/components/Logo/LogoSvgs.tsx +78 -78
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +4 -4
- package/src/components/Modal/Modal.stories.mdx +8 -9
- package/src/components/Modal/Modal.test.tsx +5 -10
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/Notification/Notification.stories.mdx +10 -28
- package/src/components/Notification/Notification.test.tsx +9 -12
- package/src/components/Notification/Notification.tsx +34 -37
- package/src/components/Pagination/Pagination.stories.mdx +2 -2
- package/src/components/Pagination/Pagination.tsx +15 -10
- package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +27 -53
- package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +9 -10
- package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -21
- package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -10
- package/src/components/Radio/Radio.stories.mdx +1 -1
- package/src/components/Radio/Radio.tsx +9 -6
- package/src/components/RadioGroup/RadioGroup.stories.mdx +15 -16
- package/src/components/RadioGroup/RadioGroup.test.tsx +2 -8
- package/src/components/RadioGroup/RadioGroup.tsx +28 -24
- package/src/components/SearchBar/SearchBar.stories.mdx +1 -1
- package/src/components/SearchBar/SearchBar.test.tsx +1 -1
- package/src/components/SearchBar/SearchBar.tsx +14 -22
- package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -12
- package/src/components/Select/Select.stories.mdx +8 -23
- package/src/components/Select/Select.test.tsx +6 -7
- package/src/components/Select/Select.tsx +13 -26
- package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +17 -56
- package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -21
- package/src/components/SkeletonLoader/SkeletonLoader.tsx +9 -8
- package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +33 -33
- 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 +19 -53
- package/src/components/Slider/Slider.test.tsx +2 -2
- package/src/components/Slider/Slider.tsx +10 -12
- package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2 -9
- package/src/components/StatusBadge/StatusBadge.stories.mdx +6 -21
- package/src/components/StatusBadge/StatusBadge.test.tsx +2 -3
- package/src/components/StatusBadge/StatusBadge.tsx +3 -10
- package/src/components/StructuredContent/StructuredContent.stories.mdx +30 -58
- package/src/components/StructuredContent/StructuredContent.test.tsx +42 -44
- package/src/components/StructuredContent/StructuredContent.tsx +9 -18
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -23
- package/src/components/StyleGuide/Buttons.stories.mdx +62 -62
- package/src/components/StyleGuide/ColorCard.tsx +2 -4
- package/src/components/StyleGuide/Colors.stories.mdx +7 -8
- package/src/components/StyleGuide/DesignTokens.stories.mdx +5 -7
- package/src/components/StyleGuide/Forms.stories.mdx +0 -1
- package/src/components/StyleGuide/Iconography.stories.mdx +59 -77
- package/src/components/StyleGuide/Spacing.stories.mdx +0 -1
- package/src/components/StyleGuide/Typography.stories.mdx +15 -18
- package/src/components/Table/Table.stories.mdx +85 -1
- package/src/components/Table/Table.test.tsx +57 -1
- package/src/components/Table/Table.tsx +7 -4
- package/src/components/Table/__snapshots__/Table.test.tsx.snap +121 -0
- package/src/components/Tabs/Tabs.stories.mdx +1 -1
- package/src/components/Tabs/Tabs.test.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +26 -27
- package/src/components/Template/Template.stories.mdx +49 -54
- package/src/components/Template/Template.tsx +9 -3
- package/src/components/Text/Text.stories.mdx +5 -11
- package/src/components/Text/Text.test.tsx +3 -6
- package/src/components/Text/Text.tsx +3 -5
- package/src/components/TextInput/TextInput.stories.mdx +10 -22
- package/src/components/TextInput/TextInput.test.tsx +32 -62
- package/src/components/TextInput/TextInput.tsx +61 -30
- package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +1 -0
- package/src/components/Toggle/Toggle.stories.mdx +5 -16
- package/src/components/Toggle/Toggle.test.tsx +2 -3
- package/src/components/Toggle/Toggle.tsx +9 -10
- package/src/components/VideoPlayer/VideoPlayer.stories.mdx +13 -29
- package/src/components/VideoPlayer/VideoPlayer.test.tsx +18 -23
- package/src/components/VideoPlayer/VideoPlayer.tsx +13 -10
- package/src/docs/Chakra.stories.mdx +14 -11
- package/src/docs/Welcome.stories.mdx +23 -43
- package/src/helpers/types.ts +1 -0
- package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
- package/src/hooks/useNYPLTheme.stories.mdx +3 -6
- package/src/index.ts +51 -45
- package/src/theme/components/buttonGroup.ts +10 -0
- package/src/theme/components/card.ts +50 -15
- package/src/theme/components/componentWrapper.ts +5 -1
- package/src/theme/components/customTable.ts +8 -2
- package/src/theme/components/fieldset.ts +5 -1
- package/src/theme/components/helperErrorText.ts +5 -1
- package/src/theme/components/hero.ts +2 -2
- package/src/theme/components/horizontalRule.ts +5 -1
- package/src/theme/components/icon.ts +7 -1
- package/src/theme/components/image.ts +14 -3
- package/src/theme/components/label.ts +5 -1
- package/src/theme/components/list.ts +8 -2
- package/src/theme/components/logo.ts +5 -1
- package/src/theme/components/notification.ts +38 -14
- package/src/theme/components/progressIndicator.ts +10 -5
- package/src/theme/components/select.ts +5 -2
- package/src/theme/components/skeletonLoader.ts +8 -2
- package/src/theme/components/skipNavigation.ts +26 -0
- package/src/theme/components/slider.ts +13 -1
- package/src/theme/components/structuredContent.ts +11 -1
- package/src/theme/components/text.ts +12 -5
- package/src/theme/components/toggle.ts +9 -3
- package/src/theme/index.ts +4 -0
- package/src/theme/provider.tsx +1 -1
- package/src/utils/componentCategories.ts +13 -5
- package/src/utils/interfaces.ts +5 -0
- package/src/utils/utils.ts +2 -32
- package/dist/components/Accordion/AccordionTypes.d.ts +0 -5
- package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +0 -8
- package/dist/components/Button/ButtonTypes.d.ts +0 -8
- package/dist/components/DatePicker/DatePickerTypes.d.ts +0 -5
- package/dist/components/Form/FormTypes.d.ts +0 -2
- package/dist/components/Grid/GridTypes.d.ts +0 -9
- package/dist/components/Heading/HeadingTypes.d.ts +0 -14
- package/dist/components/Hero/HeroTypes.d.ts +0 -12
- package/dist/components/Icons/IconTypes.d.ts +0 -77
- package/dist/components/Image/ImageTypes.d.ts +0 -22
- package/dist/components/Link/LinkTypes.d.ts +0 -8
- package/dist/components/List/ListTypes.d.ts +0 -5
- package/dist/components/Logo/LogoTypes.d.ts +0 -54
- package/dist/components/Notification/NotificationTypes.d.ts +0 -5
- package/dist/components/ProgressIndicator/ProgressIndicatorTypes.d.ts +0 -8
- package/dist/components/Select/SelectTypes.d.ts +0 -8
- package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -5
- package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +0 -5
- package/dist/components/StructuredContent/StructuredContentTypes.d.ts +0 -5
- package/dist/components/Text/TextTypes.d.ts +0 -6
- package/dist/components/TextInput/TextInputTypes.d.ts +0 -25
- package/dist/components/Toggle/ToggleTypes.d.ts +0 -4
- package/dist/components/VideoPlayer/VideoPlayerTypes.d.ts +0 -9
- package/dist/helpers/enums.d.ts +0 -4
- package/dist/utils/siteSections.d.ts +0 -2
- package/src/components/Accordion/AccordionTypes.tsx +0 -5
- package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +0 -8
- package/src/components/Button/ButtonTypes.tsx +0 -8
- package/src/components/DatePicker/DatePickerTypes.tsx +0 -5
- package/src/components/Form/FormTypes.tsx +0 -3
- package/src/components/Grid/GridTypes.tsx +0 -9
- package/src/components/Heading/HeadingTypes.tsx +0 -15
- package/src/components/Hero/HeroTypes.tsx +0 -20
- package/src/components/Icons/IconTypes.tsx +0 -83
- package/src/components/Image/ImageTypes.ts +0 -24
- package/src/components/Link/LinkTypes.tsx +0 -8
- package/src/components/List/ListTypes.tsx +0 -5
- package/src/components/Logo/LogoTypes.tsx +0 -56
- package/src/components/Notification/NotificationTypes.tsx +0 -5
- package/src/components/ProgressIndicator/ProgressIndicatorTypes.ts +0 -8
- package/src/components/Select/SelectTypes.tsx +0 -10
- package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
- package/src/components/StatusBadge/StatusBadgeTypes.tsx +0 -5
- package/src/components/StructuredContent/StructuredContentTypes.tsx +0 -5
- package/src/components/Text/TextTypes.tsx +0 -6
- package/src/components/TextInput/TextInputTypes.tsx +0 -48
- package/src/components/Toggle/ToggleTypes.tsx +0 -4
- package/src/components/VideoPlayer/VideoPlayerTypes.tsx +0 -10
- package/src/helpers/enums.ts +0 -4
- package/src/utils/siteSections.ts +0 -10
|
@@ -1,3 +1,97 @@
|
|
|
1
|
+
interface CustomImageBaseStyle {
|
|
2
|
+
size: keyof typeof imageSizes;
|
|
3
|
+
}
|
|
4
|
+
interface CustomImageWrapperBaseStyle {
|
|
5
|
+
ratio: keyof typeof imageRatios;
|
|
6
|
+
size: keyof typeof imageSizes;
|
|
7
|
+
}
|
|
8
|
+
declare const imageSizes: {
|
|
9
|
+
default: {
|
|
10
|
+
maxWidth: string;
|
|
11
|
+
};
|
|
12
|
+
xxsmall: {
|
|
13
|
+
maxWidth: string;
|
|
14
|
+
marginLeft: string;
|
|
15
|
+
marginRight: string;
|
|
16
|
+
};
|
|
17
|
+
xsmall: {
|
|
18
|
+
maxWidth: string;
|
|
19
|
+
marginLeft: string;
|
|
20
|
+
marginRight: string;
|
|
21
|
+
};
|
|
22
|
+
small: {
|
|
23
|
+
maxWidth: string;
|
|
24
|
+
marginLeft: string;
|
|
25
|
+
marginRight: string;
|
|
26
|
+
};
|
|
27
|
+
medium: {
|
|
28
|
+
maxWidth: string;
|
|
29
|
+
marginLeft: string;
|
|
30
|
+
marginRight: string;
|
|
31
|
+
};
|
|
32
|
+
large: {
|
|
33
|
+
maxWidth: string;
|
|
34
|
+
marginLeft: string;
|
|
35
|
+
marginRight: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare const imageRatios: {
|
|
39
|
+
fourByThree: {
|
|
40
|
+
paddingBottom: string;
|
|
41
|
+
position: string;
|
|
42
|
+
width: string;
|
|
43
|
+
height: string;
|
|
44
|
+
overflow: string;
|
|
45
|
+
};
|
|
46
|
+
oneByTwo: {
|
|
47
|
+
paddingBottom: string;
|
|
48
|
+
position: string;
|
|
49
|
+
width: string;
|
|
50
|
+
height: string;
|
|
51
|
+
overflow: string;
|
|
52
|
+
};
|
|
53
|
+
original: {
|
|
54
|
+
position: string;
|
|
55
|
+
width: string;
|
|
56
|
+
height: string;
|
|
57
|
+
overflow: string;
|
|
58
|
+
};
|
|
59
|
+
sixteenByNine: {
|
|
60
|
+
paddingBottom: string;
|
|
61
|
+
position: string;
|
|
62
|
+
width: string;
|
|
63
|
+
height: string;
|
|
64
|
+
overflow: string;
|
|
65
|
+
};
|
|
66
|
+
square: {
|
|
67
|
+
paddingBottom: string;
|
|
68
|
+
position: string;
|
|
69
|
+
width: string;
|
|
70
|
+
height: string;
|
|
71
|
+
overflow: string;
|
|
72
|
+
};
|
|
73
|
+
threeByFour: {
|
|
74
|
+
paddingBottom: string;
|
|
75
|
+
position: string;
|
|
76
|
+
width: string;
|
|
77
|
+
height: string;
|
|
78
|
+
overflow: string;
|
|
79
|
+
};
|
|
80
|
+
threeByTwo: {
|
|
81
|
+
paddingBottom: string;
|
|
82
|
+
position: string;
|
|
83
|
+
width: string;
|
|
84
|
+
height: string;
|
|
85
|
+
overflow: string;
|
|
86
|
+
};
|
|
87
|
+
twoByOne: {
|
|
88
|
+
paddingBottom: string;
|
|
89
|
+
position: string;
|
|
90
|
+
width: string;
|
|
91
|
+
height: string;
|
|
92
|
+
overflow: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
1
95
|
declare const CustomImage: {
|
|
2
96
|
parts: string[];
|
|
3
97
|
variants: {
|
|
@@ -7,25 +101,484 @@ declare const CustomImage: {
|
|
|
7
101
|
};
|
|
8
102
|
};
|
|
9
103
|
};
|
|
10
|
-
baseStyle: ({ size }: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
104
|
+
baseStyle: ({ size }: CustomImageBaseStyle) => {
|
|
105
|
+
figure: {
|
|
106
|
+
img: {
|
|
107
|
+
marginBottom: string;
|
|
108
|
+
};
|
|
109
|
+
maxWidth: string;
|
|
110
|
+
margin: string;
|
|
111
|
+
} | {
|
|
112
|
+
img: {
|
|
113
|
+
marginBottom: string;
|
|
114
|
+
};
|
|
115
|
+
maxWidth: string;
|
|
116
|
+
marginLeft: string;
|
|
117
|
+
marginRight: string;
|
|
118
|
+
margin: string;
|
|
119
|
+
} | {
|
|
120
|
+
img: {
|
|
121
|
+
marginBottom: string;
|
|
122
|
+
};
|
|
123
|
+
maxWidth: string;
|
|
124
|
+
marginLeft: string;
|
|
125
|
+
marginRight: string;
|
|
126
|
+
margin: string;
|
|
127
|
+
} | {
|
|
128
|
+
img: {
|
|
129
|
+
marginBottom: string;
|
|
130
|
+
};
|
|
131
|
+
maxWidth: string;
|
|
132
|
+
marginLeft: string;
|
|
133
|
+
marginRight: string;
|
|
134
|
+
margin: string;
|
|
135
|
+
} | {
|
|
136
|
+
img: {
|
|
137
|
+
marginBottom: string;
|
|
138
|
+
};
|
|
139
|
+
maxWidth: string;
|
|
140
|
+
marginLeft: string;
|
|
141
|
+
marginRight: string;
|
|
142
|
+
margin: string;
|
|
143
|
+
} | {
|
|
144
|
+
img: {
|
|
145
|
+
marginBottom: string;
|
|
146
|
+
};
|
|
147
|
+
maxWidth: string;
|
|
148
|
+
marginLeft: string;
|
|
149
|
+
marginRight: string;
|
|
150
|
+
margin: string;
|
|
151
|
+
};
|
|
14
152
|
figcaption: {
|
|
15
153
|
fontStyle: string;
|
|
16
154
|
fontSize: string;
|
|
17
155
|
};
|
|
18
|
-
img:
|
|
156
|
+
img: {
|
|
157
|
+
maxWidth: string;
|
|
158
|
+
display: string;
|
|
159
|
+
boxSizing: string;
|
|
160
|
+
objectFit: string;
|
|
161
|
+
position: string;
|
|
162
|
+
width: string;
|
|
163
|
+
} | {
|
|
164
|
+
maxWidth: string;
|
|
165
|
+
marginLeft: string;
|
|
166
|
+
marginRight: string;
|
|
167
|
+
display: string;
|
|
168
|
+
boxSizing: string;
|
|
169
|
+
objectFit: string;
|
|
170
|
+
position: string;
|
|
171
|
+
width: string;
|
|
172
|
+
} | {
|
|
173
|
+
maxWidth: string;
|
|
174
|
+
marginLeft: string;
|
|
175
|
+
marginRight: string;
|
|
176
|
+
display: string;
|
|
177
|
+
boxSizing: string;
|
|
178
|
+
objectFit: string;
|
|
179
|
+
position: string;
|
|
180
|
+
width: string;
|
|
181
|
+
} | {
|
|
182
|
+
maxWidth: string;
|
|
183
|
+
marginLeft: string;
|
|
184
|
+
marginRight: string;
|
|
185
|
+
display: string;
|
|
186
|
+
boxSizing: string;
|
|
187
|
+
objectFit: string;
|
|
188
|
+
position: string;
|
|
189
|
+
width: string;
|
|
190
|
+
} | {
|
|
191
|
+
maxWidth: string;
|
|
192
|
+
marginLeft: string;
|
|
193
|
+
marginRight: string;
|
|
194
|
+
display: string;
|
|
195
|
+
boxSizing: string;
|
|
196
|
+
objectFit: string;
|
|
197
|
+
position: string;
|
|
198
|
+
width: string;
|
|
199
|
+
} | {
|
|
200
|
+
maxWidth: string;
|
|
201
|
+
marginLeft: string;
|
|
202
|
+
marginRight: string;
|
|
203
|
+
display: string;
|
|
204
|
+
boxSizing: string;
|
|
205
|
+
objectFit: string;
|
|
206
|
+
position: string;
|
|
207
|
+
width: string;
|
|
208
|
+
};
|
|
19
209
|
captionWrappers: {
|
|
20
|
-
|
|
210
|
+
marginTop: string;
|
|
21
211
|
};
|
|
22
212
|
};
|
|
23
213
|
};
|
|
24
214
|
declare const CustomImageWrapper: {
|
|
25
215
|
parts: string[];
|
|
26
|
-
baseStyle: ({ ratio, size }: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
216
|
+
baseStyle: ({ ratio, size, }: CustomImageWrapperBaseStyle) => {
|
|
217
|
+
crop: {
|
|
218
|
+
paddingBottom: string;
|
|
219
|
+
position: string;
|
|
220
|
+
width: string;
|
|
221
|
+
height: string;
|
|
222
|
+
overflow: string;
|
|
223
|
+
} | {
|
|
224
|
+
paddingBottom: string;
|
|
225
|
+
position: string;
|
|
226
|
+
width: string;
|
|
227
|
+
height: string;
|
|
228
|
+
overflow: string;
|
|
229
|
+
} | {
|
|
230
|
+
position: string;
|
|
231
|
+
width: string;
|
|
232
|
+
height: string;
|
|
233
|
+
overflow: string;
|
|
234
|
+
} | {
|
|
235
|
+
paddingBottom: string;
|
|
236
|
+
position: string;
|
|
237
|
+
width: string;
|
|
238
|
+
height: string;
|
|
239
|
+
overflow: string;
|
|
240
|
+
} | {
|
|
241
|
+
paddingBottom: string;
|
|
242
|
+
position: string;
|
|
243
|
+
width: string;
|
|
244
|
+
height: string;
|
|
245
|
+
overflow: string;
|
|
246
|
+
} | {
|
|
247
|
+
paddingBottom: string;
|
|
248
|
+
position: string;
|
|
249
|
+
width: string;
|
|
250
|
+
height: string;
|
|
251
|
+
overflow: string;
|
|
252
|
+
} | {
|
|
253
|
+
paddingBottom: string;
|
|
254
|
+
position: string;
|
|
255
|
+
width: string;
|
|
256
|
+
height: string;
|
|
257
|
+
overflow: string;
|
|
258
|
+
} | {
|
|
259
|
+
paddingBottom: string;
|
|
260
|
+
position: string;
|
|
261
|
+
width: string;
|
|
262
|
+
height: string;
|
|
263
|
+
overflow: string;
|
|
264
|
+
};
|
|
265
|
+
img: {
|
|
266
|
+
height: string;
|
|
267
|
+
left: string;
|
|
268
|
+
maxWidth: string;
|
|
269
|
+
position: string;
|
|
270
|
+
top: string;
|
|
271
|
+
width: string;
|
|
272
|
+
};
|
|
273
|
+
maxWidth: string;
|
|
274
|
+
marginLeft: string;
|
|
275
|
+
marginRight: string;
|
|
276
|
+
width: string;
|
|
277
|
+
} | {
|
|
278
|
+
crop: {
|
|
279
|
+
paddingBottom: string;
|
|
280
|
+
position: string;
|
|
281
|
+
width: string;
|
|
282
|
+
height: string;
|
|
283
|
+
overflow: string;
|
|
284
|
+
} | {
|
|
285
|
+
paddingBottom: string;
|
|
286
|
+
position: string;
|
|
287
|
+
width: string;
|
|
288
|
+
height: string;
|
|
289
|
+
overflow: string;
|
|
290
|
+
} | {
|
|
291
|
+
position: string;
|
|
292
|
+
width: string;
|
|
293
|
+
height: string;
|
|
294
|
+
overflow: string;
|
|
295
|
+
} | {
|
|
296
|
+
paddingBottom: string;
|
|
297
|
+
position: string;
|
|
298
|
+
width: string;
|
|
299
|
+
height: string;
|
|
300
|
+
overflow: string;
|
|
301
|
+
} | {
|
|
302
|
+
paddingBottom: string;
|
|
303
|
+
position: string;
|
|
304
|
+
width: string;
|
|
305
|
+
height: string;
|
|
306
|
+
overflow: string;
|
|
307
|
+
} | {
|
|
308
|
+
paddingBottom: string;
|
|
309
|
+
position: string;
|
|
310
|
+
width: string;
|
|
311
|
+
height: string;
|
|
312
|
+
overflow: string;
|
|
313
|
+
} | {
|
|
314
|
+
paddingBottom: string;
|
|
315
|
+
position: string;
|
|
316
|
+
width: string;
|
|
317
|
+
height: string;
|
|
318
|
+
overflow: string;
|
|
319
|
+
} | {
|
|
320
|
+
paddingBottom: string;
|
|
321
|
+
position: string;
|
|
322
|
+
width: string;
|
|
323
|
+
height: string;
|
|
324
|
+
overflow: string;
|
|
325
|
+
};
|
|
326
|
+
img: {
|
|
327
|
+
height: string;
|
|
328
|
+
left: string;
|
|
329
|
+
maxWidth: string;
|
|
330
|
+
position: string;
|
|
331
|
+
top: string;
|
|
332
|
+
width: string;
|
|
333
|
+
};
|
|
334
|
+
maxWidth: string;
|
|
335
|
+
marginLeft: string;
|
|
336
|
+
marginRight: string;
|
|
337
|
+
width: string;
|
|
338
|
+
} | {
|
|
339
|
+
crop: {
|
|
340
|
+
paddingBottom: string;
|
|
341
|
+
position: string;
|
|
342
|
+
width: string;
|
|
343
|
+
height: string;
|
|
344
|
+
overflow: string;
|
|
345
|
+
} | {
|
|
346
|
+
paddingBottom: string;
|
|
347
|
+
position: string;
|
|
348
|
+
width: string;
|
|
349
|
+
height: string;
|
|
350
|
+
overflow: string;
|
|
351
|
+
} | {
|
|
352
|
+
position: string;
|
|
353
|
+
width: string;
|
|
354
|
+
height: string;
|
|
355
|
+
overflow: string;
|
|
356
|
+
} | {
|
|
357
|
+
paddingBottom: string;
|
|
358
|
+
position: string;
|
|
359
|
+
width: string;
|
|
360
|
+
height: string;
|
|
361
|
+
overflow: string;
|
|
362
|
+
} | {
|
|
363
|
+
paddingBottom: string;
|
|
364
|
+
position: string;
|
|
365
|
+
width: string;
|
|
366
|
+
height: string;
|
|
367
|
+
overflow: string;
|
|
368
|
+
} | {
|
|
369
|
+
paddingBottom: string;
|
|
370
|
+
position: string;
|
|
371
|
+
width: string;
|
|
372
|
+
height: string;
|
|
373
|
+
overflow: string;
|
|
374
|
+
} | {
|
|
375
|
+
paddingBottom: string;
|
|
376
|
+
position: string;
|
|
377
|
+
width: string;
|
|
378
|
+
height: string;
|
|
379
|
+
overflow: string;
|
|
380
|
+
} | {
|
|
381
|
+
paddingBottom: string;
|
|
382
|
+
position: string;
|
|
383
|
+
width: string;
|
|
384
|
+
height: string;
|
|
385
|
+
overflow: string;
|
|
386
|
+
};
|
|
387
|
+
img: {
|
|
388
|
+
height: string;
|
|
389
|
+
left: string;
|
|
390
|
+
maxWidth: string;
|
|
391
|
+
position: string;
|
|
392
|
+
top: string;
|
|
393
|
+
width: string;
|
|
394
|
+
};
|
|
395
|
+
maxWidth: string;
|
|
396
|
+
marginLeft: string;
|
|
397
|
+
marginRight: string;
|
|
398
|
+
width: string;
|
|
399
|
+
} | {
|
|
400
|
+
crop: {
|
|
401
|
+
paddingBottom: string;
|
|
402
|
+
position: string;
|
|
403
|
+
width: string;
|
|
404
|
+
height: string;
|
|
405
|
+
overflow: string;
|
|
406
|
+
} | {
|
|
407
|
+
paddingBottom: string;
|
|
408
|
+
position: string;
|
|
409
|
+
width: string;
|
|
410
|
+
height: string;
|
|
411
|
+
overflow: string;
|
|
412
|
+
} | {
|
|
413
|
+
position: string;
|
|
414
|
+
width: string;
|
|
415
|
+
height: string;
|
|
416
|
+
overflow: string;
|
|
417
|
+
} | {
|
|
418
|
+
paddingBottom: string;
|
|
419
|
+
position: string;
|
|
420
|
+
width: string;
|
|
421
|
+
height: string;
|
|
422
|
+
overflow: string;
|
|
423
|
+
} | {
|
|
424
|
+
paddingBottom: string;
|
|
425
|
+
position: string;
|
|
426
|
+
width: string;
|
|
427
|
+
height: string;
|
|
428
|
+
overflow: string;
|
|
429
|
+
} | {
|
|
430
|
+
paddingBottom: string;
|
|
431
|
+
position: string;
|
|
432
|
+
width: string;
|
|
433
|
+
height: string;
|
|
434
|
+
overflow: string;
|
|
435
|
+
} | {
|
|
436
|
+
paddingBottom: string;
|
|
437
|
+
position: string;
|
|
438
|
+
width: string;
|
|
439
|
+
height: string;
|
|
440
|
+
overflow: string;
|
|
441
|
+
} | {
|
|
442
|
+
paddingBottom: string;
|
|
443
|
+
position: string;
|
|
444
|
+
width: string;
|
|
445
|
+
height: string;
|
|
446
|
+
overflow: string;
|
|
447
|
+
};
|
|
448
|
+
img: {
|
|
449
|
+
height: string;
|
|
450
|
+
left: string;
|
|
451
|
+
maxWidth: string;
|
|
452
|
+
position: string;
|
|
453
|
+
top: string;
|
|
454
|
+
width: string;
|
|
455
|
+
};
|
|
456
|
+
maxWidth: string;
|
|
457
|
+
marginLeft: string;
|
|
458
|
+
marginRight: string;
|
|
459
|
+
width: string;
|
|
460
|
+
} | {
|
|
461
|
+
crop: {
|
|
462
|
+
paddingBottom: string;
|
|
463
|
+
position: string;
|
|
464
|
+
width: string;
|
|
465
|
+
height: string;
|
|
466
|
+
overflow: string;
|
|
467
|
+
} | {
|
|
468
|
+
paddingBottom: string;
|
|
469
|
+
position: string;
|
|
470
|
+
width: string;
|
|
471
|
+
height: string;
|
|
472
|
+
overflow: string;
|
|
473
|
+
} | {
|
|
474
|
+
position: string;
|
|
475
|
+
width: string;
|
|
476
|
+
height: string;
|
|
477
|
+
overflow: string;
|
|
478
|
+
} | {
|
|
479
|
+
paddingBottom: string;
|
|
480
|
+
position: string;
|
|
481
|
+
width: string;
|
|
482
|
+
height: string;
|
|
483
|
+
overflow: string;
|
|
484
|
+
} | {
|
|
485
|
+
paddingBottom: string;
|
|
486
|
+
position: string;
|
|
487
|
+
width: string;
|
|
488
|
+
height: string;
|
|
489
|
+
overflow: string;
|
|
490
|
+
} | {
|
|
491
|
+
paddingBottom: string;
|
|
492
|
+
position: string;
|
|
493
|
+
width: string;
|
|
494
|
+
height: string;
|
|
495
|
+
overflow: string;
|
|
496
|
+
} | {
|
|
497
|
+
paddingBottom: string;
|
|
498
|
+
position: string;
|
|
499
|
+
width: string;
|
|
500
|
+
height: string;
|
|
501
|
+
overflow: string;
|
|
502
|
+
} | {
|
|
503
|
+
paddingBottom: string;
|
|
504
|
+
position: string;
|
|
505
|
+
width: string;
|
|
506
|
+
height: string;
|
|
507
|
+
overflow: string;
|
|
508
|
+
};
|
|
509
|
+
img: {
|
|
510
|
+
height: string;
|
|
511
|
+
left: string;
|
|
512
|
+
maxWidth: string;
|
|
513
|
+
position: string;
|
|
514
|
+
top: string;
|
|
515
|
+
width: string;
|
|
516
|
+
};
|
|
517
|
+
maxWidth: string;
|
|
518
|
+
marginLeft: string;
|
|
519
|
+
marginRight: string;
|
|
520
|
+
width: string;
|
|
521
|
+
} | {
|
|
522
|
+
crop: {
|
|
523
|
+
paddingBottom: string;
|
|
524
|
+
position: string;
|
|
525
|
+
width: string;
|
|
526
|
+
height: string;
|
|
527
|
+
overflow: string;
|
|
528
|
+
} | {
|
|
529
|
+
paddingBottom: string;
|
|
530
|
+
position: string;
|
|
531
|
+
width: string;
|
|
532
|
+
height: string;
|
|
533
|
+
overflow: string;
|
|
534
|
+
} | {
|
|
535
|
+
position: string;
|
|
536
|
+
width: string;
|
|
537
|
+
height: string;
|
|
538
|
+
overflow: string;
|
|
539
|
+
} | {
|
|
540
|
+
paddingBottom: string;
|
|
541
|
+
position: string;
|
|
542
|
+
width: string;
|
|
543
|
+
height: string;
|
|
544
|
+
overflow: string;
|
|
545
|
+
} | {
|
|
546
|
+
paddingBottom: string;
|
|
547
|
+
position: string;
|
|
548
|
+
width: string;
|
|
549
|
+
height: string;
|
|
550
|
+
overflow: string;
|
|
551
|
+
} | {
|
|
552
|
+
paddingBottom: string;
|
|
553
|
+
position: string;
|
|
554
|
+
width: string;
|
|
555
|
+
height: string;
|
|
556
|
+
overflow: string;
|
|
557
|
+
} | {
|
|
558
|
+
paddingBottom: string;
|
|
559
|
+
position: string;
|
|
560
|
+
width: string;
|
|
561
|
+
height: string;
|
|
562
|
+
overflow: string;
|
|
563
|
+
} | {
|
|
564
|
+
paddingBottom: string;
|
|
565
|
+
position: string;
|
|
566
|
+
width: string;
|
|
567
|
+
height: string;
|
|
568
|
+
overflow: string;
|
|
569
|
+
};
|
|
570
|
+
img: {
|
|
571
|
+
height: string;
|
|
572
|
+
left: string;
|
|
573
|
+
maxWidth: string;
|
|
574
|
+
position: string;
|
|
575
|
+
top: string;
|
|
576
|
+
width: string;
|
|
577
|
+
};
|
|
578
|
+
maxWidth: string;
|
|
579
|
+
marginLeft: string;
|
|
580
|
+
marginRight: string;
|
|
581
|
+
width: string;
|
|
582
|
+
};
|
|
30
583
|
};
|
|
31
584
|
export { CustomImage, CustomImageWrapper };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
interface ListBaseStyle {
|
|
2
|
+
inline?: boolean;
|
|
3
|
+
noStyling: boolean;
|
|
4
|
+
}
|
|
1
5
|
export declare const baseListStyles: (inline?: boolean, noStyling?: boolean) => {
|
|
2
6
|
margin: string;
|
|
3
7
|
listStyle: string;
|
|
@@ -89,10 +93,7 @@ export declare const baseDefinitionStyles: {
|
|
|
89
93
|
};
|
|
90
94
|
};
|
|
91
95
|
declare const List: {
|
|
92
|
-
baseStyle: ({ inline, noStyling }: {
|
|
93
|
-
inline: any;
|
|
94
|
-
noStyling: any;
|
|
95
|
-
}) => {
|
|
96
|
+
baseStyle: ({ inline, noStyling }: ListBaseStyle) => {
|
|
96
97
|
margin: string;
|
|
97
98
|
listStyle: string;
|
|
98
99
|
marginInlineStart: string;
|
|
@@ -108,9 +109,7 @@ declare const List: {
|
|
|
108
109
|
};
|
|
109
110
|
};
|
|
110
111
|
variants: {
|
|
111
|
-
ul: ({ noStyling }: {
|
|
112
|
-
noStyling: any;
|
|
113
|
-
}) => {
|
|
112
|
+
ul: ({ noStyling }: ListBaseStyle) => {
|
|
114
113
|
listStyle: string;
|
|
115
114
|
li: {
|
|
116
115
|
_before: {
|