@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-link-test-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/dist/design-system-react-components.cjs +59 -59
- package/dist/design-system-react-components.js +18645 -17492
- package/dist/src/components/Accordion/Accordion.d.ts +9 -2
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/src/components/Button/Button.d.ts +23 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
- package/dist/src/components/Card/Card.d.ts +2 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
- package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
- package/dist/src/components/Form/Form.d.ts +4 -3
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
- package/dist/src/components/Heading/Heading.d.ts +2 -1
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
- package/dist/src/components/Hero/Hero.d.ts +6 -1
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
- package/dist/src/components/Icons/Icon.d.ts +2 -1
- package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
- package/dist/src/components/Icons/iconVariables.d.ts +2 -2
- package/dist/src/components/Image/Image.d.ts +9 -2
- package/dist/src/components/Label/Label.d.ts +19 -1
- package/dist/src/components/Link/Link.d.ts +5 -6
- package/dist/src/components/List/List.d.ts +6 -4
- package/dist/src/components/Logo/Logo.d.ts +5 -4
- package/dist/src/components/Logo/logoVariables.d.ts +0 -1
- package/dist/src/components/Menu/Menu.d.ts +58 -0
- package/dist/src/components/Modal/Modal.d.ts +13 -4
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +55 -0
- package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +29 -0
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
- package/dist/src/components/Notification/Notification.d.ts +11 -5
- package/dist/src/components/Pagination/Pagination.d.ts +2 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/src/components/Radio/Radio.d.ts +2 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
- package/dist/src/components/Select/Select.d.ts +2 -1
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
- package/dist/src/components/Slider/Slider.d.ts +2 -1
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
- package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
- package/dist/src/components/StyledList/StyledList.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/TagSet/TagSet.d.ts +2 -1
- package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
- package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
- package/dist/src/components/Template/Template.d.ts +3 -2
- package/dist/src/components/Text/Text.d.ts +2 -1
- package/dist/src/components/TextInput/TextInput.d.ts +2 -1
- package/dist/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useDSHeading.d.ts +16 -0
- package/dist/src/hooks/useMultiSelect.d.ts +18 -0
- package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
- package/dist/src/index.d.ts +6 -1
- package/dist/src/theme/components/accordion.d.ts +25 -2
- package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
- package/dist/src/theme/components/audioPlayer.d.ts +18 -1
- package/dist/src/theme/components/breadcrumb.d.ts +24 -16
- package/dist/src/theme/components/button.d.ts +39 -0
- package/dist/src/theme/components/buttonGroup.d.ts +12 -3
- package/dist/src/theme/components/card.d.ts +104 -235
- package/dist/src/theme/components/checkbox.d.ts +44 -34
- package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
- package/dist/src/theme/components/datePicker.d.ts +17 -6
- package/dist/src/theme/components/featuredContent.d.ts +75 -36
- package/dist/src/theme/components/feedbackBox.d.ts +28 -9
- package/dist/src/theme/components/fieldset.d.ts +14 -2
- package/dist/src/theme/components/global.d.ts +1 -0
- package/dist/src/theme/components/heading.d.ts +596 -249
- package/dist/src/theme/components/helperErrorText.d.ts +19 -3
- package/dist/src/theme/components/hero.d.ts +198 -176
- package/dist/src/theme/components/horizontalRule.d.ts +14 -2
- package/dist/src/theme/components/icon.d.ts +13 -4
- package/dist/src/theme/components/image.d.ts +326 -223
- package/dist/src/theme/components/label.d.ts +14 -2
- package/dist/src/theme/components/link.d.ts +40 -197
- package/dist/src/theme/components/list.d.ts +130 -101
- package/dist/src/theme/components/logo.d.ts +17 -5
- package/dist/src/theme/components/menu.d.ts +169 -0
- package/dist/src/theme/components/modal.d.ts +19 -4
- package/dist/src/theme/components/multiSelect.d.ts +106 -12
- package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +52 -0
- package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
- package/dist/src/theme/components/notification.d.ts +51 -116
- package/dist/src/theme/components/notificationContent.d.ts +58 -0
- package/dist/src/theme/components/notificationHeading.d.ts +57 -0
- package/dist/src/theme/components/pagination.d.ts +17 -2
- package/dist/src/theme/components/progressIndicator.d.ts +21 -5
- package/dist/src/theme/components/radio.d.ts +25 -6
- package/dist/src/theme/components/radioGroup.d.ts +18 -4
- package/dist/src/theme/components/searchBar.d.ts +24 -6
- package/dist/src/theme/components/select.d.ts +21 -13
- package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
- package/dist/src/theme/components/skipNavigation.d.ts +12 -1
- package/dist/src/theme/components/slider.d.ts +49 -33
- package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
- package/dist/src/theme/components/statusBadge.d.ts +66 -10
- package/dist/src/theme/components/structuredContent.d.ts +233 -102
- package/dist/src/theme/components/styledList.d.ts +12 -6
- package/dist/src/theme/components/tabs.d.ts +27 -13
- package/dist/src/theme/components/tagSet.d.ts +83 -42
- package/dist/src/theme/components/template.d.ts +76 -25
- package/dist/src/theme/components/text.d.ts +27 -12
- package/dist/src/theme/components/textInput.d.ts +52 -44
- package/dist/src/theme/components/toggle.d.ts +33 -11
- package/dist/src/theme/components/tooltip.d.ts +13 -1
- package/dist/src/theme/components/videoPlayer.d.ts +32 -21
- package/dist/src/theme/foundations/global.d.ts +6 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -9
- package/dist/src/theme/components/multiSelectMenuButton.d.ts +0 -99
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { StyleFunctionProps } from "@chakra-ui/
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/react";
|
|
2
2
|
declare const SocialMediaLinks: {
|
|
3
|
-
baseStyle
|
|
3
|
+
baseStyle?: {
|
|
4
4
|
display: string;
|
|
5
5
|
alignItems: string;
|
|
6
6
|
gap: string;
|
|
7
7
|
width: {
|
|
8
|
-
base:
|
|
9
|
-
md:
|
|
8
|
+
base: "100%";
|
|
9
|
+
md: "unset";
|
|
10
10
|
};
|
|
11
11
|
marginBottom: string;
|
|
12
12
|
li: {
|
|
13
13
|
marginInlineEnd: string;
|
|
14
14
|
marginTop: string;
|
|
15
15
|
width: {
|
|
16
|
-
base:
|
|
17
|
-
md:
|
|
16
|
+
base: "100%";
|
|
17
|
+
md: "unset";
|
|
18
18
|
};
|
|
19
19
|
_notFirst: {
|
|
20
20
|
marginTop: string;
|
|
@@ -26,12 +26,12 @@ declare const SocialMediaLinks: {
|
|
|
26
26
|
alignContent: string;
|
|
27
27
|
flexWrap: string;
|
|
28
28
|
minWidth: {
|
|
29
|
-
base:
|
|
30
|
-
md:
|
|
29
|
+
base: "44px";
|
|
30
|
+
md: "unset";
|
|
31
31
|
};
|
|
32
32
|
minHeight: {
|
|
33
|
-
base:
|
|
34
|
-
md:
|
|
33
|
+
base: "44px";
|
|
34
|
+
md: "unset";
|
|
35
35
|
};
|
|
36
36
|
fontStyle: string;
|
|
37
37
|
fontSize: string;
|
|
@@ -39,6 +39,7 @@ declare const SocialMediaLinks: {
|
|
|
39
39
|
color: string;
|
|
40
40
|
_hover: {
|
|
41
41
|
color: string;
|
|
42
|
+
textDecoration: string;
|
|
42
43
|
};
|
|
43
44
|
_visited: {
|
|
44
45
|
color: string;
|
|
@@ -69,10 +70,13 @@ declare const SocialMediaLinks: {
|
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
+
sizes?: {
|
|
74
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
75
|
+
};
|
|
76
|
+
variants?: {
|
|
73
77
|
straight(props: StyleFunctionProps): {
|
|
74
78
|
flexDirection: {
|
|
75
|
-
base:
|
|
79
|
+
base: "column";
|
|
76
80
|
md: any;
|
|
77
81
|
};
|
|
78
82
|
gap: string;
|
|
@@ -115,7 +119,7 @@ declare const SocialMediaLinks: {
|
|
|
115
119
|
};
|
|
116
120
|
circular(props: StyleFunctionProps): {
|
|
117
121
|
flexDirection: {
|
|
118
|
-
base:
|
|
122
|
+
base: "column";
|
|
119
123
|
md: any;
|
|
120
124
|
};
|
|
121
125
|
gap: string;
|
|
@@ -156,7 +160,7 @@ declare const SocialMediaLinks: {
|
|
|
156
160
|
};
|
|
157
161
|
none(props: StyleFunctionProps): {
|
|
158
162
|
flexDirection: {
|
|
159
|
-
base:
|
|
163
|
+
base: "column";
|
|
160
164
|
md: any;
|
|
161
165
|
};
|
|
162
166
|
a: {
|
|
@@ -185,8 +189,10 @@ declare const SocialMediaLinks: {
|
|
|
185
189
|
};
|
|
186
190
|
};
|
|
187
191
|
};
|
|
188
|
-
defaultProps
|
|
189
|
-
|
|
192
|
+
defaultProps?: {
|
|
193
|
+
size?: string | number;
|
|
194
|
+
variant?: "none" | "circular" | "straight";
|
|
195
|
+
colorScheme?: string;
|
|
190
196
|
};
|
|
191
197
|
};
|
|
192
198
|
export default SocialMediaLinks;
|
|
@@ -1,37 +1,93 @@
|
|
|
1
1
|
declare const StatusBadge: {
|
|
2
|
-
baseStyle
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
bgColor: string;
|
|
4
|
+
borderLeft: string;
|
|
5
|
+
borderColor: string;
|
|
3
6
|
borderRadius: string;
|
|
4
7
|
color: string;
|
|
5
8
|
display: string;
|
|
6
9
|
fontSize: string;
|
|
7
|
-
|
|
10
|
+
fontWeight: string;
|
|
8
11
|
py: string;
|
|
9
|
-
|
|
12
|
+
paddingInlineEnd: string;
|
|
13
|
+
paddingInlineStart: string;
|
|
10
14
|
textAlign: string;
|
|
15
|
+
whiteSpace: string;
|
|
11
16
|
width: string;
|
|
12
17
|
_dark: {
|
|
13
18
|
backgroundColor: string;
|
|
14
|
-
borderLeft: string;
|
|
15
19
|
borderColor: string;
|
|
16
20
|
color: string;
|
|
17
21
|
};
|
|
18
22
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
sizes?: {
|
|
24
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
25
|
+
};
|
|
26
|
+
variants?: {
|
|
27
|
+
low: {};
|
|
23
28
|
medium: {
|
|
24
|
-
|
|
29
|
+
borderColor: string;
|
|
25
30
|
_dark: {
|
|
26
31
|
borderColor: string;
|
|
27
32
|
};
|
|
28
33
|
};
|
|
29
34
|
high: {
|
|
30
|
-
|
|
35
|
+
borderColor: string;
|
|
36
|
+
_dark: {
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
neutral: {
|
|
41
|
+
borderColor: string;
|
|
31
42
|
_dark: {
|
|
32
43
|
borderColor: string;
|
|
33
44
|
};
|
|
34
45
|
};
|
|
46
|
+
informative: {
|
|
47
|
+
bgColor: string;
|
|
48
|
+
borderColor: string;
|
|
49
|
+
_dark: {
|
|
50
|
+
bgColor: string;
|
|
51
|
+
borderColor: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
positive: {
|
|
55
|
+
bgColor: string;
|
|
56
|
+
borderColor: string;
|
|
57
|
+
_dark: {
|
|
58
|
+
bgColor: string;
|
|
59
|
+
borderColor: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
negative: {
|
|
63
|
+
bgColor: string;
|
|
64
|
+
borderColor: string;
|
|
65
|
+
_dark: {
|
|
66
|
+
bgColor: string;
|
|
67
|
+
borderColor: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
warning: {
|
|
71
|
+
bgColor: string;
|
|
72
|
+
borderColor: string;
|
|
73
|
+
_dark: {
|
|
74
|
+
bgColor: string;
|
|
75
|
+
borderColor: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
recommendation: {
|
|
79
|
+
bgColor: string;
|
|
80
|
+
borderColor: string;
|
|
81
|
+
_dark: {
|
|
82
|
+
bgColor: string;
|
|
83
|
+
borderColor: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
defaultProps?: {
|
|
88
|
+
size?: string | number;
|
|
89
|
+
variant?: "medium" | "warning" | "low" | "high" | "neutral" | "informative" | "positive" | "negative" | "recommendation";
|
|
90
|
+
colorScheme?: string;
|
|
35
91
|
};
|
|
36
92
|
};
|
|
37
93
|
export default StatusBadge;
|
|
@@ -1,119 +1,238 @@
|
|
|
1
|
-
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
interface StructuredContentBaseStyle extends StyleFunctionProps {
|
|
2
3
|
hasFigureImage: boolean;
|
|
3
4
|
imageAspectRatio: string;
|
|
4
5
|
imagePosition: string;
|
|
5
6
|
}
|
|
6
7
|
declare const StructuredContent: {
|
|
7
|
-
|
|
8
|
-
baseStyle: ({ hasFigureImage, imageAspectRatio, imagePosition, }: StructuredContentBaseStyle) => {
|
|
8
|
+
baseStyle?: ({ hasFigureImage, imageAspectRatio, imagePosition, }: StructuredContentBaseStyle) => {
|
|
9
9
|
one: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
base: {
|
|
11
|
+
width: string;
|
|
12
|
+
a: {
|
|
13
|
+
textUnderlineOffset: string;
|
|
14
|
+
};
|
|
15
|
+
"@media (min-width: 0px)": {
|
|
16
|
+
fontSize: string;
|
|
17
|
+
};
|
|
18
|
+
"@media (min-width: 600px)": {
|
|
19
|
+
fontSize: string;
|
|
20
|
+
};
|
|
21
|
+
marginTop: string;
|
|
22
|
+
marginStart: string;
|
|
23
|
+
marginEnd: string;
|
|
24
|
+
fontWeight: string;
|
|
25
|
+
letterSpacing: string;
|
|
26
|
+
lineHeight: string;
|
|
13
27
|
};
|
|
14
|
-
marginTop: string;
|
|
15
|
-
marginStart: string;
|
|
16
|
-
marginEnd: string;
|
|
17
|
-
fontSize: string;
|
|
18
|
-
fontWeight: string;
|
|
19
|
-
letterSpacing: string;
|
|
20
|
-
lineHeight: string;
|
|
21
28
|
};
|
|
22
29
|
two: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
base: {
|
|
31
|
+
width: string;
|
|
32
|
+
a: {
|
|
33
|
+
textUnderlineOffset: string;
|
|
34
|
+
};
|
|
35
|
+
"@media (min-width: 0px)": {
|
|
36
|
+
fontSize: string;
|
|
37
|
+
};
|
|
38
|
+
"@media (min-width: 600px)": {
|
|
39
|
+
fontSize: string;
|
|
40
|
+
};
|
|
41
|
+
marginTop: string;
|
|
42
|
+
marginStart: string;
|
|
43
|
+
marginEnd: string;
|
|
44
|
+
fontWeight: string;
|
|
45
|
+
lineHeight: string;
|
|
26
46
|
};
|
|
27
|
-
marginTop: string;
|
|
28
|
-
marginStart: string;
|
|
29
|
-
marginEnd: string;
|
|
30
|
-
fontSize: string;
|
|
31
|
-
fontWeight: string;
|
|
32
|
-
lineHeight: string;
|
|
33
47
|
};
|
|
34
48
|
three: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
base: {
|
|
50
|
+
width: string;
|
|
51
|
+
"@media (min-width: 0px)": {
|
|
52
|
+
fontSize: string;
|
|
53
|
+
};
|
|
54
|
+
"@media (min-width: 600px)": {
|
|
55
|
+
fontSize: string;
|
|
56
|
+
};
|
|
57
|
+
marginTop: string;
|
|
58
|
+
marginStart: string;
|
|
59
|
+
marginEnd: string;
|
|
60
|
+
fontWeight: string;
|
|
61
|
+
lineHeight: string;
|
|
62
|
+
};
|
|
42
63
|
};
|
|
43
64
|
four: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
65
|
+
base: {
|
|
66
|
+
width: string;
|
|
67
|
+
"@media (min-width: 0px)": {
|
|
68
|
+
fontSize: string;
|
|
69
|
+
};
|
|
70
|
+
"@media (min-width: 600px)": {
|
|
71
|
+
fontSize: string;
|
|
72
|
+
};
|
|
73
|
+
marginTop: string;
|
|
74
|
+
marginStart: string;
|
|
75
|
+
marginEnd: string;
|
|
76
|
+
fontWeight: string;
|
|
77
|
+
lineHeight: string;
|
|
78
|
+
};
|
|
51
79
|
};
|
|
52
80
|
fallback: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
81
|
+
base: {
|
|
82
|
+
width: string;
|
|
83
|
+
"@media (min-width: 0px)": {
|
|
84
|
+
fontSize: string;
|
|
85
|
+
};
|
|
86
|
+
"@media (min-width: 600px)": {
|
|
87
|
+
fontSize: string;
|
|
88
|
+
};
|
|
89
|
+
marginTop: string;
|
|
90
|
+
marginStart: string;
|
|
91
|
+
marginEnd: string;
|
|
92
|
+
fontWeight: string;
|
|
93
|
+
lineHeight: string;
|
|
94
|
+
};
|
|
60
95
|
};
|
|
61
96
|
display1: {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
97
|
+
base: {
|
|
98
|
+
fontSize: {
|
|
99
|
+
base: "mobile.heading.display1";
|
|
100
|
+
md: "desktop.heading.display1";
|
|
101
|
+
};
|
|
102
|
+
fontWeight: string;
|
|
103
|
+
letterSpacing: string;
|
|
104
|
+
lineHeight: string;
|
|
105
|
+
width: string;
|
|
106
|
+
a: {
|
|
107
|
+
textUnderlineOffset: string;
|
|
108
|
+
};
|
|
109
|
+
"@media (min-width: 0px)": {
|
|
110
|
+
fontSize: string;
|
|
111
|
+
};
|
|
112
|
+
"@media (min-width: 600px)": {
|
|
113
|
+
fontSize: string;
|
|
114
|
+
};
|
|
68
115
|
};
|
|
69
116
|
};
|
|
70
117
|
heading1: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
118
|
+
base: {
|
|
119
|
+
fontSize: {
|
|
120
|
+
base: "mobile.heading.heading1";
|
|
121
|
+
md: "desktop.heading.heading1";
|
|
122
|
+
};
|
|
123
|
+
fontWeight: string;
|
|
124
|
+
letterSpacing: string;
|
|
125
|
+
lineHeight: string;
|
|
126
|
+
width: string;
|
|
127
|
+
a: {
|
|
128
|
+
textUnderlineOffset: string;
|
|
129
|
+
};
|
|
130
|
+
"@media (min-width: 0px)": {
|
|
131
|
+
fontSize: string;
|
|
132
|
+
};
|
|
133
|
+
"@media (min-width: 600px)": {
|
|
134
|
+
fontSize: string;
|
|
135
|
+
};
|
|
77
136
|
};
|
|
78
137
|
};
|
|
79
138
|
heading2: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
139
|
+
base: {
|
|
140
|
+
fontSize: {
|
|
141
|
+
base: "mobile.heading.heading2";
|
|
142
|
+
md: "desktop.heading.heading2";
|
|
143
|
+
};
|
|
144
|
+
fontWeight: string;
|
|
145
|
+
letterSpacing: string;
|
|
146
|
+
lineHeight: string;
|
|
147
|
+
width: string;
|
|
148
|
+
a: {
|
|
149
|
+
textUnderlineOffset: string;
|
|
150
|
+
};
|
|
151
|
+
"@media (min-width: 0px)": {
|
|
152
|
+
fontSize: string;
|
|
153
|
+
};
|
|
154
|
+
"@media (min-width: 600px)": {
|
|
155
|
+
fontSize: string;
|
|
156
|
+
};
|
|
86
157
|
};
|
|
87
158
|
};
|
|
88
159
|
heading3: {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
160
|
+
base: {
|
|
161
|
+
fontSize: {
|
|
162
|
+
base: "mobile.heading.heading3";
|
|
163
|
+
md: "desktop.heading.heading3";
|
|
164
|
+
};
|
|
165
|
+
fontWeight: string;
|
|
166
|
+
letterSpacing: string;
|
|
167
|
+
lineHeight: string;
|
|
168
|
+
width: string;
|
|
169
|
+
a: {
|
|
170
|
+
textUnderlineOffset: string;
|
|
171
|
+
};
|
|
172
|
+
"@media (min-width: 0px)": {
|
|
173
|
+
fontSize: string;
|
|
174
|
+
};
|
|
175
|
+
"@media (min-width: 600px)": {
|
|
176
|
+
fontSize: string;
|
|
177
|
+
};
|
|
95
178
|
};
|
|
96
179
|
};
|
|
97
180
|
heading4: {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
181
|
+
base: {
|
|
182
|
+
fontSize: {
|
|
183
|
+
base: "mobile.heading.heading4";
|
|
184
|
+
md: "desktop.heading.heading4";
|
|
185
|
+
};
|
|
186
|
+
fontWeight: string;
|
|
187
|
+
letterSpacing: string;
|
|
188
|
+
lineHeight: string;
|
|
189
|
+
width: string;
|
|
190
|
+
a: {
|
|
191
|
+
textUnderlineOffset: string;
|
|
192
|
+
};
|
|
193
|
+
"@media (min-width: 0px)": {
|
|
194
|
+
fontSize: string;
|
|
195
|
+
};
|
|
196
|
+
"@media (min-width: 600px)": {
|
|
197
|
+
fontSize: string;
|
|
198
|
+
};
|
|
104
199
|
};
|
|
105
200
|
};
|
|
106
201
|
heading5: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
202
|
+
base: {
|
|
203
|
+
fontSize: {
|
|
204
|
+
base: "mobile.heading.heading5";
|
|
205
|
+
md: "desktop.heading.heading5";
|
|
206
|
+
};
|
|
207
|
+
fontWeight: string;
|
|
208
|
+
letterSpacing: string;
|
|
209
|
+
lineHeight: string;
|
|
210
|
+
width: string;
|
|
211
|
+
"@media (min-width: 0px)": {
|
|
212
|
+
fontSize: string;
|
|
213
|
+
};
|
|
214
|
+
"@media (min-width: 600px)": {
|
|
215
|
+
fontSize: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
111
218
|
};
|
|
112
219
|
heading6: {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
220
|
+
base: {
|
|
221
|
+
fontSize: {
|
|
222
|
+
base: "mobile.heading.heading6";
|
|
223
|
+
md: "desktop.heading.heading6";
|
|
224
|
+
};
|
|
225
|
+
fontWeight: string;
|
|
226
|
+
letterSpacing: string;
|
|
227
|
+
lineHeight: string;
|
|
228
|
+
width: string;
|
|
229
|
+
"@media (min-width: 0px)": {
|
|
230
|
+
fontSize: string;
|
|
231
|
+
};
|
|
232
|
+
"@media (min-width: 600px)": {
|
|
233
|
+
fontSize: string;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
117
236
|
};
|
|
118
237
|
imageFigure: {
|
|
119
238
|
marginBottom: string;
|
|
@@ -134,8 +253,8 @@ declare const StructuredContent: {
|
|
|
134
253
|
image: {
|
|
135
254
|
maxWidth?: string;
|
|
136
255
|
float: string[];
|
|
137
|
-
marginStart:
|
|
138
|
-
marginEnd:
|
|
256
|
+
marginStart: ("m" | "auto")[];
|
|
257
|
+
marginEnd: ("m" | "auto")[];
|
|
139
258
|
marginBottom: string;
|
|
140
259
|
};
|
|
141
260
|
/** The following styles are meant to target HTML elements that are
|
|
@@ -149,23 +268,22 @@ declare const StructuredContent: {
|
|
|
149
268
|
marginInlineStart: string;
|
|
150
269
|
};
|
|
151
270
|
a: {
|
|
152
|
-
|
|
271
|
+
color: string;
|
|
272
|
+
textDecoration: string;
|
|
273
|
+
textDecorationStyle: string;
|
|
274
|
+
textDecorationThickness: string;
|
|
275
|
+
textUnderlineOffset: string;
|
|
276
|
+
_dark: {
|
|
277
|
+
color: string;
|
|
278
|
+
};
|
|
279
|
+
_hover: {
|
|
153
280
|
color: string;
|
|
154
281
|
textDecoration: string;
|
|
155
282
|
textDecorationStyle: string;
|
|
156
283
|
textDecorationThickness: string;
|
|
157
|
-
textUnderlineOffset: string;
|
|
158
284
|
_dark: {
|
|
159
285
|
color: string;
|
|
160
286
|
};
|
|
161
|
-
_hover: {
|
|
162
|
-
color: string;
|
|
163
|
-
textDecorationStyle: string;
|
|
164
|
-
textDecorationThickness: string;
|
|
165
|
-
_dark: {
|
|
166
|
-
color: string;
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
287
|
};
|
|
170
288
|
};
|
|
171
289
|
ul: {
|
|
@@ -256,7 +374,10 @@ declare const StructuredContent: {
|
|
|
256
374
|
};
|
|
257
375
|
dd: {
|
|
258
376
|
margin: string;
|
|
259
|
-
paddingBottom: string;
|
|
377
|
+
paddingBottom: string; /** The following styles are meant to target HTML elements that are
|
|
378
|
+
* not rendered from the Reservoir DS. Typically, these HTML elements
|
|
379
|
+
* are added from an API response.
|
|
380
|
+
*/
|
|
260
381
|
borderTop: {
|
|
261
382
|
base: string;
|
|
262
383
|
md: string;
|
|
@@ -343,10 +464,7 @@ declare const StructuredContent: {
|
|
|
343
464
|
};
|
|
344
465
|
paddingEnd: string;
|
|
345
466
|
paddingTop: {
|
|
346
|
-
base: string;
|
|
347
|
-
* not rendered from the Reservoir DS. Typically, these HTML elements
|
|
348
|
-
* are added from an API response.
|
|
349
|
-
*/
|
|
467
|
+
base: string;
|
|
350
468
|
md: string;
|
|
351
469
|
};
|
|
352
470
|
_first: {
|
|
@@ -424,10 +542,7 @@ declare const StructuredContent: {
|
|
|
424
542
|
};
|
|
425
543
|
paddingEnd: string;
|
|
426
544
|
paddingTop: {
|
|
427
|
-
base: string;
|
|
428
|
-
* not rendered from the Reservoir DS. Typically, these HTML elements
|
|
429
|
-
* are added from an API response.
|
|
430
|
-
*/
|
|
545
|
+
base: string;
|
|
431
546
|
md: string;
|
|
432
547
|
};
|
|
433
548
|
_first: {
|
|
@@ -446,5 +561,21 @@ declare const StructuredContent: {
|
|
|
446
561
|
};
|
|
447
562
|
};
|
|
448
563
|
};
|
|
564
|
+
sizes?: {
|
|
565
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
566
|
+
keys: ("image" | "imageFigure" | "imageWrapper")[];
|
|
567
|
+
}>;
|
|
568
|
+
};
|
|
569
|
+
variants?: {
|
|
570
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
571
|
+
keys: ("image" | "imageFigure" | "imageWrapper")[];
|
|
572
|
+
}>;
|
|
573
|
+
};
|
|
574
|
+
defaultProps?: {
|
|
575
|
+
size?: string | number;
|
|
576
|
+
variant?: string | number;
|
|
577
|
+
colorScheme?: string;
|
|
578
|
+
};
|
|
579
|
+
parts: ("image" | "imageFigure" | "imageWrapper")[];
|
|
449
580
|
};
|
|
450
581
|
export default StructuredContent;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
declare const StyledList: {
|
|
2
|
-
baseStyle
|
|
3
|
-
textSize?: string;
|
|
4
|
-
}) => {
|
|
2
|
+
baseStyle?: ({ textSize }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
5
3
|
listStyle: string;
|
|
6
4
|
li: {
|
|
7
5
|
_before: {
|
|
@@ -28,13 +26,16 @@ declare const StyledList: {
|
|
|
28
26
|
display: string;
|
|
29
27
|
fontSize: string;
|
|
30
28
|
};
|
|
31
|
-
|
|
29
|
+
sizes?: {
|
|
30
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
31
|
+
};
|
|
32
|
+
variants?: {
|
|
32
33
|
capped: {
|
|
33
34
|
li: {
|
|
34
35
|
borderStart: string;
|
|
35
36
|
borderEnd: {
|
|
36
|
-
base:
|
|
37
|
-
md:
|
|
37
|
+
base: "1px solid";
|
|
38
|
+
md: "none";
|
|
38
39
|
};
|
|
39
40
|
borderColor: string;
|
|
40
41
|
my: string;
|
|
@@ -47,5 +48,10 @@ declare const StyledList: {
|
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
50
|
};
|
|
51
|
+
defaultProps?: {
|
|
52
|
+
size?: string | number;
|
|
53
|
+
variant?: "capped";
|
|
54
|
+
colorScheme?: string;
|
|
55
|
+
};
|
|
50
56
|
};
|
|
51
57
|
export default StyledList;
|