@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-react-chakra-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 +58 -58
- package/dist/design-system-react-components.js +17460 -16512
- package/dist/src/components/Accordion/Accordion.d.ts +2 -1
- 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 +2 -1
- 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/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/useScrollTabIntoView.d.ts +9 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/components/accordion.d.ts +22 -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/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
|
@@ -1,13 +1,28 @@
|
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
interface TagSetFilterProps extends StyleFunctionProps {
|
|
3
|
+
isDismissible: boolean;
|
|
4
|
+
}
|
|
1
5
|
declare const _default: {
|
|
2
6
|
TagSet: {
|
|
3
|
-
baseStyle
|
|
7
|
+
baseStyle?: {
|
|
4
8
|
display: string;
|
|
5
9
|
flexWrap: string;
|
|
6
10
|
gap: string;
|
|
7
11
|
};
|
|
12
|
+
sizes?: {
|
|
13
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
14
|
+
};
|
|
15
|
+
variants?: {
|
|
16
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
17
|
+
};
|
|
18
|
+
defaultProps?: {
|
|
19
|
+
size?: string | number;
|
|
20
|
+
variant?: string | number;
|
|
21
|
+
colorScheme?: string;
|
|
22
|
+
};
|
|
8
23
|
};
|
|
9
24
|
TagSetExplore: {
|
|
10
|
-
baseStyle
|
|
25
|
+
baseStyle?: {
|
|
11
26
|
display: string;
|
|
12
27
|
alignItems: string;
|
|
13
28
|
justifyContent: string;
|
|
@@ -19,8 +34,8 @@ declare const _default: {
|
|
|
19
34
|
cursor: string;
|
|
20
35
|
fontSize: string;
|
|
21
36
|
height: {
|
|
22
|
-
base:
|
|
23
|
-
md:
|
|
37
|
+
base: "32px";
|
|
38
|
+
md: "22px";
|
|
24
39
|
};
|
|
25
40
|
minHeight: string;
|
|
26
41
|
maxWidth: string;
|
|
@@ -89,58 +104,68 @@ declare const _default: {
|
|
|
89
104
|
};
|
|
90
105
|
};
|
|
91
106
|
};
|
|
107
|
+
sizes?: {
|
|
108
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
109
|
+
};
|
|
110
|
+
variants?: {
|
|
111
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
112
|
+
};
|
|
113
|
+
defaultProps?: {
|
|
114
|
+
size?: string | number;
|
|
115
|
+
variant?: string | number;
|
|
116
|
+
colorScheme?: string;
|
|
117
|
+
};
|
|
92
118
|
};
|
|
93
119
|
TagSetFilter: {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
isDismissible: boolean;
|
|
97
|
-
}) => {
|
|
98
|
-
display: string;
|
|
99
|
-
alignItems: string;
|
|
100
|
-
justifyContent: string;
|
|
101
|
-
bg: string;
|
|
102
|
-
border: string;
|
|
103
|
-
borderColor: string;
|
|
104
|
-
borderRadius: string;
|
|
105
|
-
color: string;
|
|
106
|
-
cursor: string;
|
|
107
|
-
height: {
|
|
108
|
-
base: string;
|
|
109
|
-
md: string;
|
|
110
|
-
};
|
|
111
|
-
minHeight: string;
|
|
112
|
-
maxWidth: string;
|
|
113
|
-
py: string;
|
|
114
|
-
paddingLeft: string;
|
|
115
|
-
paddingRight: string | {
|
|
116
|
-
base: string;
|
|
117
|
-
md: string;
|
|
118
|
-
};
|
|
119
|
-
fontSize: string;
|
|
120
|
-
"> span": {
|
|
120
|
+
baseStyle?: ({ isDismissible }: TagSetFilterProps) => {
|
|
121
|
+
base: {
|
|
121
122
|
display: string;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
whiteSpace: string;
|
|
125
|
-
};
|
|
126
|
-
_hover: {
|
|
127
|
-
bg: string;
|
|
128
|
-
borderColor: string;
|
|
129
|
-
};
|
|
130
|
-
_dark: {
|
|
123
|
+
alignItems: string;
|
|
124
|
+
justifyContent: string;
|
|
131
125
|
bg: string;
|
|
126
|
+
border: string;
|
|
132
127
|
borderColor: string;
|
|
128
|
+
borderRadius: string;
|
|
133
129
|
color: string;
|
|
130
|
+
cursor: string;
|
|
131
|
+
height: {
|
|
132
|
+
base: "32px";
|
|
133
|
+
md: "22px";
|
|
134
|
+
};
|
|
135
|
+
minHeight: string;
|
|
136
|
+
maxWidth: string;
|
|
137
|
+
py: string;
|
|
138
|
+
paddingLeft: string;
|
|
139
|
+
paddingRight: string | {
|
|
140
|
+
base: "8px";
|
|
141
|
+
md: "6px";
|
|
142
|
+
};
|
|
143
|
+
fontSize: string;
|
|
144
|
+
"> span": {
|
|
145
|
+
display: string;
|
|
146
|
+
overflow: string;
|
|
147
|
+
textOverflow: string;
|
|
148
|
+
whiteSpace: string;
|
|
149
|
+
};
|
|
134
150
|
_hover: {
|
|
135
151
|
bg: string;
|
|
136
152
|
borderColor: string;
|
|
137
153
|
};
|
|
154
|
+
_dark: {
|
|
155
|
+
bg: string;
|
|
156
|
+
borderColor: string;
|
|
157
|
+
color: string;
|
|
158
|
+
_hover: {
|
|
159
|
+
bg: string;
|
|
160
|
+
borderColor: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
138
163
|
};
|
|
139
164
|
clearAll: {
|
|
140
165
|
color: string;
|
|
141
166
|
height: {
|
|
142
|
-
base:
|
|
143
|
-
md:
|
|
167
|
+
base: "32px";
|
|
168
|
+
md: "22px";
|
|
144
169
|
};
|
|
145
170
|
fontSize: string;
|
|
146
171
|
minHeight: string;
|
|
@@ -149,6 +174,22 @@ declare const _default: {
|
|
|
149
174
|
};
|
|
150
175
|
};
|
|
151
176
|
};
|
|
177
|
+
sizes?: {
|
|
178
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
179
|
+
keys: ("base" | "clearAll")[];
|
|
180
|
+
}>;
|
|
181
|
+
};
|
|
182
|
+
variants?: {
|
|
183
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
184
|
+
keys: ("base" | "clearAll")[];
|
|
185
|
+
}>;
|
|
186
|
+
};
|
|
187
|
+
defaultProps?: {
|
|
188
|
+
size?: string | number;
|
|
189
|
+
variant?: string | number;
|
|
190
|
+
colorScheme?: string;
|
|
191
|
+
};
|
|
192
|
+
parts: ("base" | "clearAll")[];
|
|
152
193
|
};
|
|
153
194
|
};
|
|
154
195
|
export default _default;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Grid layout based on https://www.joshwcomeau.com/css/full-bleed/
|
|
3
|
-
*/
|
|
4
1
|
declare const _default: {
|
|
5
2
|
Template: {
|
|
6
|
-
baseStyle
|
|
3
|
+
baseStyle?: {
|
|
7
4
|
boxSizing: string;
|
|
8
5
|
color: string;
|
|
9
6
|
display: string;
|
|
@@ -13,17 +10,35 @@ declare const _default: {
|
|
|
13
10
|
color: string;
|
|
14
11
|
};
|
|
15
12
|
};
|
|
16
|
-
sizes
|
|
17
|
-
|
|
13
|
+
sizes?: {};
|
|
14
|
+
variants?: {
|
|
15
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
16
|
+
};
|
|
17
|
+
defaultProps?: {
|
|
18
|
+
size?: never;
|
|
19
|
+
variant?: string | number;
|
|
20
|
+
colorScheme?: string;
|
|
21
|
+
};
|
|
18
22
|
};
|
|
19
23
|
TemplateBreakout: {
|
|
20
|
-
baseStyle
|
|
24
|
+
baseStyle?: {
|
|
21
25
|
width: string;
|
|
22
26
|
gridColumn: string;
|
|
23
27
|
};
|
|
28
|
+
sizes?: {
|
|
29
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
30
|
+
};
|
|
31
|
+
variants?: {
|
|
32
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
33
|
+
};
|
|
34
|
+
defaultProps?: {
|
|
35
|
+
size?: string | number;
|
|
36
|
+
variant?: string | number;
|
|
37
|
+
colorScheme?: string;
|
|
38
|
+
};
|
|
24
39
|
};
|
|
25
40
|
TemplateContent: {
|
|
26
|
-
baseStyle
|
|
41
|
+
baseStyle?: {
|
|
27
42
|
gridColumn: string;
|
|
28
43
|
display: string;
|
|
29
44
|
gridTemplateColumns: string;
|
|
@@ -31,40 +46,62 @@ declare const _default: {
|
|
|
31
46
|
paddingX: string;
|
|
32
47
|
gap: string;
|
|
33
48
|
};
|
|
34
|
-
|
|
49
|
+
sizes?: {
|
|
50
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
51
|
+
};
|
|
52
|
+
variants?: {
|
|
35
53
|
left: {
|
|
36
54
|
gridTemplateColumns: {
|
|
37
|
-
md:
|
|
55
|
+
md: "255px 1fr";
|
|
38
56
|
};
|
|
39
57
|
};
|
|
40
58
|
right: {
|
|
41
59
|
gridTemplateColumns: {
|
|
42
|
-
md:
|
|
60
|
+
md: "1fr 255px";
|
|
43
61
|
};
|
|
44
62
|
};
|
|
45
63
|
};
|
|
64
|
+
defaultProps?: {
|
|
65
|
+
size?: string | number;
|
|
66
|
+
variant?: "left" | "right";
|
|
67
|
+
colorScheme?: string;
|
|
68
|
+
};
|
|
46
69
|
};
|
|
47
70
|
TemplateContentTopBottom: {
|
|
48
|
-
baseStyle
|
|
71
|
+
baseStyle?: {
|
|
49
72
|
gridColumn: {
|
|
50
|
-
base:
|
|
51
|
-
md:
|
|
73
|
+
base: "1";
|
|
74
|
+
md: "1 / span 2";
|
|
52
75
|
};
|
|
53
76
|
height: string;
|
|
54
77
|
};
|
|
78
|
+
sizes?: {
|
|
79
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
80
|
+
};
|
|
81
|
+
variants?: {
|
|
82
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
83
|
+
};
|
|
84
|
+
defaultProps?: {
|
|
85
|
+
size?: string | number;
|
|
86
|
+
variant?: string | number;
|
|
87
|
+
colorScheme?: string;
|
|
88
|
+
};
|
|
55
89
|
};
|
|
56
90
|
TemplateContentPrimary: {
|
|
57
|
-
baseStyle
|
|
91
|
+
baseStyle?: {
|
|
58
92
|
gridColumn: {
|
|
59
|
-
base:
|
|
60
|
-
md:
|
|
93
|
+
base: "1";
|
|
94
|
+
md: "1 / span 2";
|
|
61
95
|
};
|
|
62
96
|
};
|
|
63
|
-
|
|
97
|
+
sizes?: {
|
|
98
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
99
|
+
};
|
|
100
|
+
variants?: {
|
|
64
101
|
left: {
|
|
65
102
|
gridColumn: {
|
|
66
|
-
base:
|
|
67
|
-
md:
|
|
103
|
+
base: "1";
|
|
104
|
+
md: "2";
|
|
68
105
|
};
|
|
69
106
|
marginEnd: {
|
|
70
107
|
md: number;
|
|
@@ -75,24 +112,38 @@ declare const _default: {
|
|
|
75
112
|
};
|
|
76
113
|
right: {
|
|
77
114
|
gridColumn: {
|
|
78
|
-
base:
|
|
79
|
-
md:
|
|
115
|
+
base: "1";
|
|
116
|
+
md: "1";
|
|
80
117
|
};
|
|
81
118
|
};
|
|
82
119
|
};
|
|
120
|
+
defaultProps?: {
|
|
121
|
+
size?: string | number;
|
|
122
|
+
variant?: "left" | "right";
|
|
123
|
+
colorScheme?: string;
|
|
124
|
+
};
|
|
83
125
|
};
|
|
84
126
|
TemplateContentSidebar: {
|
|
85
|
-
|
|
127
|
+
baseStyle?: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
128
|
+
sizes?: {
|
|
129
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
130
|
+
};
|
|
131
|
+
variants?: {
|
|
86
132
|
left: {
|
|
87
133
|
gridColumn: string;
|
|
88
134
|
};
|
|
89
135
|
right: {
|
|
90
136
|
gridColumn: {
|
|
91
|
-
base:
|
|
92
|
-
md:
|
|
137
|
+
base: "1";
|
|
138
|
+
md: "2";
|
|
93
139
|
};
|
|
94
140
|
};
|
|
95
141
|
};
|
|
142
|
+
defaultProps?: {
|
|
143
|
+
size?: string | number;
|
|
144
|
+
variant?: "left" | "right";
|
|
145
|
+
colorScheme?: string;
|
|
146
|
+
};
|
|
96
147
|
};
|
|
97
148
|
};
|
|
98
149
|
export default _default;
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
interface TextBaseStyle extends Partial<StyleFunctionProps> {
|
|
3
|
+
isBold?: boolean;
|
|
4
|
+
isItalic?: boolean;
|
|
5
|
+
isCapitalized?: boolean;
|
|
6
|
+
isUppercase?: boolean;
|
|
7
|
+
isLowercase?: boolean;
|
|
8
|
+
noSpace?: boolean;
|
|
9
|
+
variant?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const Text: {
|
|
11
|
-
baseStyle
|
|
12
|
+
baseStyle?: ({ isBold, isItalic, isCapitalized, isUppercase, isLowercase, noSpace, variant, }: TextBaseStyle) => {
|
|
12
13
|
fontStyle: string;
|
|
13
14
|
fontWeight: string;
|
|
14
15
|
textTransform: string;
|
|
15
16
|
marginBottom: string;
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
sizes?: {
|
|
19
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
20
|
+
};
|
|
21
|
+
variants?: {
|
|
18
22
|
default: {};
|
|
19
23
|
body1: {};
|
|
20
24
|
body2: {
|
|
@@ -37,12 +41,18 @@ declare const Text: {
|
|
|
37
41
|
textTransform: string;
|
|
38
42
|
};
|
|
39
43
|
subtitle1: {
|
|
40
|
-
fontSize:
|
|
44
|
+
fontSize: {
|
|
45
|
+
base: "mobile.subtitle.subtitle1";
|
|
46
|
+
md: "desktop.subtitle.subtitle1";
|
|
47
|
+
};
|
|
41
48
|
fontWeight: string;
|
|
42
49
|
lineHeight: number;
|
|
43
50
|
};
|
|
44
51
|
subtitle2: {
|
|
45
|
-
fontSize:
|
|
52
|
+
fontSize: {
|
|
53
|
+
base: "mobile.subtitle.subtitle2";
|
|
54
|
+
md: "desktop.subtitle.subtitle2";
|
|
55
|
+
};
|
|
46
56
|
fontWeight: string;
|
|
47
57
|
lineHeight: number;
|
|
48
58
|
};
|
|
@@ -55,5 +65,10 @@ declare const Text: {
|
|
|
55
65
|
fontWeight: string;
|
|
56
66
|
};
|
|
57
67
|
};
|
|
68
|
+
defaultProps?: {
|
|
69
|
+
size?: string | number;
|
|
70
|
+
variant?: "caption" | "default" | "tag" | "mini" | "body1" | "body2" | "overline1" | "overline2" | "subtitle1" | "subtitle2";
|
|
71
|
+
colorScheme?: string;
|
|
72
|
+
};
|
|
58
73
|
};
|
|
59
74
|
export default Text;
|
|
@@ -1,9 +1,41 @@
|
|
|
1
1
|
declare const TextInput: {
|
|
2
|
-
|
|
3
|
-
baseStyle: ({ showLabel }: {
|
|
4
|
-
showLabel: any;
|
|
5
|
-
}) => {
|
|
2
|
+
baseStyle?: ({ showLabel }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
6
3
|
position: string;
|
|
4
|
+
clearButton: {
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
minHeight: {
|
|
7
|
+
base: "42px";
|
|
8
|
+
md: "auto";
|
|
9
|
+
};
|
|
10
|
+
height: string;
|
|
11
|
+
position: string;
|
|
12
|
+
top: string;
|
|
13
|
+
px: string;
|
|
14
|
+
right: string;
|
|
15
|
+
span: {
|
|
16
|
+
clip: string;
|
|
17
|
+
height: {
|
|
18
|
+
base: string;
|
|
19
|
+
md: string;
|
|
20
|
+
};
|
|
21
|
+
overflow: string;
|
|
22
|
+
position: {
|
|
23
|
+
base: string;
|
|
24
|
+
md: string;
|
|
25
|
+
};
|
|
26
|
+
width: {
|
|
27
|
+
base: string;
|
|
28
|
+
md: string;
|
|
29
|
+
};
|
|
30
|
+
wordWrap: string;
|
|
31
|
+
};
|
|
32
|
+
zIndex: string;
|
|
33
|
+
_dark: {
|
|
34
|
+
svg: {
|
|
35
|
+
fill: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
7
39
|
input: {
|
|
8
40
|
bgColor: string;
|
|
9
41
|
border: string;
|
|
@@ -298,43 +330,13 @@ declare const TextInput: {
|
|
|
298
330
|
};
|
|
299
331
|
};
|
|
300
332
|
};
|
|
301
|
-
clearButton: {
|
|
302
|
-
borderRadius: string;
|
|
303
|
-
minHeight: {
|
|
304
|
-
base: string;
|
|
305
|
-
md: string;
|
|
306
|
-
};
|
|
307
|
-
height: string;
|
|
308
|
-
position: string;
|
|
309
|
-
top: string;
|
|
310
|
-
px: string;
|
|
311
|
-
right: string;
|
|
312
|
-
span: {
|
|
313
|
-
clip: string;
|
|
314
|
-
height: {
|
|
315
|
-
base: string;
|
|
316
|
-
md: string;
|
|
317
|
-
};
|
|
318
|
-
overflow: string;
|
|
319
|
-
position: {
|
|
320
|
-
base: string;
|
|
321
|
-
md: string;
|
|
322
|
-
};
|
|
323
|
-
width: {
|
|
324
|
-
base: string;
|
|
325
|
-
md: string;
|
|
326
|
-
};
|
|
327
|
-
wordWrap: string;
|
|
328
|
-
};
|
|
329
|
-
zIndex: string;
|
|
330
|
-
_dark: {
|
|
331
|
-
svg: {
|
|
332
|
-
fill: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
333
|
};
|
|
337
|
-
|
|
334
|
+
sizes?: {
|
|
335
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
336
|
+
keys: ("input" | "textarea" | "clearButton")[];
|
|
337
|
+
}>;
|
|
338
|
+
};
|
|
339
|
+
variants?: {
|
|
338
340
|
searchBar: {
|
|
339
341
|
flex: string;
|
|
340
342
|
input: {
|
|
@@ -346,15 +348,21 @@ declare const TextInput: {
|
|
|
346
348
|
input: {
|
|
347
349
|
borderRadius: string;
|
|
348
350
|
borderTopLeftRadius: {
|
|
349
|
-
base:
|
|
350
|
-
md:
|
|
351
|
+
base: "sm";
|
|
352
|
+
md: "none";
|
|
351
353
|
};
|
|
352
354
|
borderTopRightRadius: {
|
|
353
|
-
base:
|
|
354
|
-
md:
|
|
355
|
+
base: "sm";
|
|
356
|
+
md: "none";
|
|
355
357
|
};
|
|
356
358
|
};
|
|
357
359
|
};
|
|
358
360
|
};
|
|
361
|
+
defaultProps?: {
|
|
362
|
+
size?: string | number;
|
|
363
|
+
variant?: "searchBar" | "searchBarSelect";
|
|
364
|
+
colorScheme?: string;
|
|
365
|
+
};
|
|
366
|
+
parts: ("input" | "textarea" | "clearButton")[];
|
|
359
367
|
};
|
|
360
368
|
export default TextInput;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
1
2
|
import { ToggleSizes } from "../../components/Toggle/Toggle";
|
|
2
|
-
interface ToggleBaseStyle {
|
|
3
|
+
interface ToggleBaseStyle extends StyleFunctionProps {
|
|
3
4
|
isDisabled: boolean;
|
|
4
5
|
size: ToggleSizes;
|
|
5
6
|
}
|
|
7
|
+
interface SwitchStyleProps extends StyleFunctionProps {
|
|
8
|
+
size: string;
|
|
9
|
+
}
|
|
6
10
|
declare const _default: {
|
|
7
11
|
Toggle: {
|
|
8
|
-
|
|
9
|
-
baseStyle: ({ isDisabled, size }: ToggleBaseStyle) => {
|
|
12
|
+
baseStyle?: ({ isDisabled, size }: ToggleBaseStyle) => {
|
|
10
13
|
label: {
|
|
11
14
|
alignItems: string;
|
|
12
15
|
display: string;
|
|
@@ -17,14 +20,25 @@ declare const _default: {
|
|
|
17
20
|
fontStyle: string;
|
|
18
21
|
};
|
|
19
22
|
};
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
sizes?: {
|
|
24
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
25
|
+
keys: ("label" | "helperErrorText")[];
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
variants?: {
|
|
29
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
30
|
+
keys: ("label" | "helperErrorText")[];
|
|
31
|
+
}>;
|
|
22
32
|
};
|
|
33
|
+
defaultProps?: {
|
|
34
|
+
size?: string | number;
|
|
35
|
+
variant?: string | number;
|
|
36
|
+
colorScheme?: string;
|
|
37
|
+
};
|
|
38
|
+
parts: ("label" | "helperErrorText")[];
|
|
23
39
|
};
|
|
24
40
|
Switch: {
|
|
25
|
-
baseStyle
|
|
26
|
-
size: string;
|
|
27
|
-
}) => {
|
|
41
|
+
baseStyle?: ({ size }: SwitchStyleProps) => {
|
|
28
42
|
alignItems: string;
|
|
29
43
|
track: {
|
|
30
44
|
backgroundColor: string;
|
|
@@ -109,7 +123,7 @@ declare const _default: {
|
|
|
109
123
|
};
|
|
110
124
|
};
|
|
111
125
|
};
|
|
112
|
-
sizes
|
|
126
|
+
sizes?: {
|
|
113
127
|
sm: {
|
|
114
128
|
container: {
|
|
115
129
|
[x: string]: string;
|
|
@@ -121,9 +135,17 @@ declare const _default: {
|
|
|
121
135
|
};
|
|
122
136
|
};
|
|
123
137
|
};
|
|
124
|
-
|
|
125
|
-
|
|
138
|
+
variants?: {
|
|
139
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
140
|
+
keys: ("label" | "track" | "container" | "thumb")[];
|
|
141
|
+
}>;
|
|
142
|
+
};
|
|
143
|
+
defaultProps?: {
|
|
144
|
+
size?: "sm" | "lg";
|
|
145
|
+
variant?: string | number;
|
|
146
|
+
colorScheme?: string;
|
|
126
147
|
};
|
|
148
|
+
parts: ("label" | "track" | "container" | "thumb")[];
|
|
127
149
|
};
|
|
128
150
|
};
|
|
129
151
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const Tooltip: {
|
|
2
|
-
baseStyle
|
|
2
|
+
baseStyle?: {
|
|
3
3
|
[x: string]: string | {
|
|
4
4
|
[x: string]: string;
|
|
5
5
|
color: string;
|
|
@@ -10,6 +10,7 @@ declare const Tooltip: {
|
|
|
10
10
|
fontSize: string;
|
|
11
11
|
marginBottom: string;
|
|
12
12
|
maxWidth: string;
|
|
13
|
+
marginTop: string;
|
|
13
14
|
px: string;
|
|
14
15
|
py: string;
|
|
15
16
|
_dark: {
|
|
@@ -17,5 +18,16 @@ declare const Tooltip: {
|
|
|
17
18
|
color: string;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
21
|
+
sizes?: {
|
|
22
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
23
|
+
};
|
|
24
|
+
variants?: {
|
|
25
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
26
|
+
};
|
|
27
|
+
defaultProps?: {
|
|
28
|
+
size?: string | number;
|
|
29
|
+
variant?: string | number;
|
|
30
|
+
colorScheme?: string;
|
|
31
|
+
};
|
|
20
32
|
};
|
|
21
33
|
export default Tooltip;
|