@nypl/design-system-react-components 2.2.0-react-chakra-rc-2 → 3.0.0-react-chakra-rc2

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.
Files changed (125) hide show
  1. package/dist/design-system-react-components.cjs +59 -59
  2. package/dist/design-system-react-components.js +18230 -17049
  3. package/dist/src/components/Accordion/Accordion.d.ts +9 -2
  4. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
  5. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
  6. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
  7. package/dist/src/components/Button/Button.d.ts +23 -1
  8. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
  9. package/dist/src/components/Card/Card.d.ts +2 -1
  10. package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
  11. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
  12. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
  13. package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
  14. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
  16. package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
  17. package/dist/src/components/Form/Form.d.ts +4 -3
  18. package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
  19. package/dist/src/components/Heading/Heading.d.ts +2 -1
  20. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
  21. package/dist/src/components/Hero/Hero.d.ts +6 -1
  22. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
  23. package/dist/src/components/Icons/Icon.d.ts +2 -1
  24. package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
  25. package/dist/src/components/Icons/iconVariables.d.ts +2 -2
  26. package/dist/src/components/Image/Image.d.ts +9 -2
  27. package/dist/src/components/Label/Label.d.ts +19 -1
  28. package/dist/src/components/Link/Link.d.ts +2 -1
  29. package/dist/src/components/List/List.d.ts +6 -4
  30. package/dist/src/components/Logo/Logo.d.ts +5 -4
  31. package/dist/src/components/Logo/logoVariables.d.ts +0 -1
  32. package/dist/src/components/Menu/Menu.d.ts +58 -0
  33. package/dist/src/components/Modal/Modal.d.ts +13 -4
  34. package/dist/src/components/MultiSelect/MultiSelect.d.ts +55 -0
  35. package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +29 -0
  36. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
  37. package/dist/src/components/Notification/Notification.d.ts +11 -5
  38. package/dist/src/components/Pagination/Pagination.d.ts +2 -1
  39. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
  40. package/dist/src/components/Radio/Radio.d.ts +2 -1
  41. package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
  42. package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
  43. package/dist/src/components/Select/Select.d.ts +2 -1
  44. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
  45. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
  46. package/dist/src/components/Slider/Slider.d.ts +2 -1
  47. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
  48. package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
  49. package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
  50. package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
  51. package/dist/src/components/StyledList/StyledList.d.ts +2 -1
  52. package/dist/src/components/Table/Table.d.ts +2 -1
  53. package/dist/src/components/Tabs/Tabs.d.ts +2 -2
  54. package/dist/src/components/TagSet/TagSet.d.ts +2 -1
  55. package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
  56. package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
  57. package/dist/src/components/Template/Template.d.ts +3 -2
  58. package/dist/src/components/Text/Text.d.ts +2 -1
  59. package/dist/src/components/TextInput/TextInput.d.ts +2 -1
  60. package/dist/src/components/Toggle/Toggle.d.ts +2 -1
  61. package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
  62. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
  63. package/dist/src/helpers/types.d.ts +2 -0
  64. package/dist/src/hooks/useDSHeading.d.ts +16 -0
  65. package/dist/src/hooks/useMultiSelect.d.ts +18 -0
  66. package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
  67. package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
  68. package/dist/src/index.d.ts +6 -1
  69. package/dist/src/theme/components/accordion.d.ts +25 -2
  70. package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
  71. package/dist/src/theme/components/audioPlayer.d.ts +18 -1
  72. package/dist/src/theme/components/breadcrumb.d.ts +24 -16
  73. package/dist/src/theme/components/button.d.ts +39 -0
  74. package/dist/src/theme/components/buttonGroup.d.ts +12 -3
  75. package/dist/src/theme/components/card.d.ts +104 -235
  76. package/dist/src/theme/components/checkbox.d.ts +44 -34
  77. package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
  78. package/dist/src/theme/components/datePicker.d.ts +17 -6
  79. package/dist/src/theme/components/featuredContent.d.ts +75 -36
  80. package/dist/src/theme/components/feedbackBox.d.ts +28 -9
  81. package/dist/src/theme/components/fieldset.d.ts +14 -2
  82. package/dist/src/theme/components/global.d.ts +1 -0
  83. package/dist/src/theme/components/heading.d.ts +596 -249
  84. package/dist/src/theme/components/helperErrorText.d.ts +19 -3
  85. package/dist/src/theme/components/hero.d.ts +198 -176
  86. package/dist/src/theme/components/horizontalRule.d.ts +14 -2
  87. package/dist/src/theme/components/icon.d.ts +13 -4
  88. package/dist/src/theme/components/image.d.ts +326 -223
  89. package/dist/src/theme/components/label.d.ts +14 -2
  90. package/dist/src/theme/components/link.d.ts +40 -197
  91. package/dist/src/theme/components/list.d.ts +130 -101
  92. package/dist/src/theme/components/logo.d.ts +17 -5
  93. package/dist/src/theme/components/menu.d.ts +169 -0
  94. package/dist/src/theme/components/modal.d.ts +19 -4
  95. package/dist/src/theme/components/multiSelect.d.ts +106 -12
  96. package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +52 -0
  97. package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
  98. package/dist/src/theme/components/notification.d.ts +51 -116
  99. package/dist/src/theme/components/notificationContent.d.ts +58 -0
  100. package/dist/src/theme/components/notificationHeading.d.ts +57 -0
  101. package/dist/src/theme/components/pagination.d.ts +17 -2
  102. package/dist/src/theme/components/progressIndicator.d.ts +21 -5
  103. package/dist/src/theme/components/radio.d.ts +25 -6
  104. package/dist/src/theme/components/radioGroup.d.ts +18 -4
  105. package/dist/src/theme/components/searchBar.d.ts +24 -6
  106. package/dist/src/theme/components/select.d.ts +21 -13
  107. package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
  108. package/dist/src/theme/components/skipNavigation.d.ts +12 -1
  109. package/dist/src/theme/components/slider.d.ts +49 -33
  110. package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
  111. package/dist/src/theme/components/statusBadge.d.ts +66 -10
  112. package/dist/src/theme/components/structuredContent.d.ts +233 -102
  113. package/dist/src/theme/components/styledList.d.ts +12 -6
  114. package/dist/src/theme/components/tabs.d.ts +27 -13
  115. package/dist/src/theme/components/tagSet.d.ts +83 -42
  116. package/dist/src/theme/components/template.d.ts +76 -25
  117. package/dist/src/theme/components/text.d.ts +27 -12
  118. package/dist/src/theme/components/textInput.d.ts +52 -44
  119. package/dist/src/theme/components/toggle.d.ts +33 -11
  120. package/dist/src/theme/components/tooltip.d.ts +13 -1
  121. package/dist/src/theme/components/videoPlayer.d.ts +32 -21
  122. package/dist/src/theme/foundations/global.d.ts +6 -0
  123. package/dist/styles.css +1 -1
  124. package/package.json +4 -7
  125. package/dist/src/theme/components/multiSelectMenuButton.d.ts +0 -99
@@ -1,6 +1,10 @@
1
1
  declare const CustomTabs: {
2
- parts: string[];
3
- baseStyle: {
2
+ baseStyle?: {
3
+ tabpanel: {};
4
+ root: {};
5
+ tabpanels: {
6
+ paddingTop: string;
7
+ };
4
8
  tablist: {
5
9
  borderColor: string;
6
10
  };
@@ -126,9 +130,6 @@ declare const CustomTabs: {
126
130
  borderColor: string;
127
131
  };
128
132
  };
129
- tabpanels: {
130
- paddingTop: string;
131
- };
132
133
  carouselParent: {
133
134
  position: {
134
135
  base: string;
@@ -142,14 +143,10 @@ declare const CustomTabs: {
142
143
  base: string;
143
144
  md: string;
144
145
  };
145
- paddingStart: {
146
- base: string;
147
- md: string;
148
- };
146
+ paddingStart: string;
149
147
  paddingEnd: string;
150
148
  paddingTop: {
151
149
  base: string;
152
- md: string;
153
150
  };
154
151
  right: {
155
152
  base: string;
@@ -157,16 +154,33 @@ declare const CustomTabs: {
157
154
  };
158
155
  top: {
159
156
  base: string;
160
- md: string;
161
157
  };
158
+ scrollbarWidth: string;
159
+ "::-webkit-scrollbar": {
160
+ display: string;
161
+ };
162
+ overflowY: string;
162
163
  overflowX: {
163
164
  base: string;
164
165
  md: string;
165
166
  };
166
167
  };
167
168
  };
168
- defaultProps: {
169
- colorScheme: string;
169
+ sizes?: {
170
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
171
+ keys: ("tab" | "tabpanel" | "tabpanels" | "root" | "tablist" | "buttonArrows" | "tablistWrapper" | "carouselParent")[];
172
+ }>;
173
+ };
174
+ variants?: {
175
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
176
+ keys: ("tab" | "tabpanel" | "tabpanels" | "root" | "tablist" | "buttonArrows" | "tablistWrapper" | "carouselParent")[];
177
+ }>;
178
+ };
179
+ defaultProps?: {
180
+ size?: string | number;
181
+ variant?: string | number;
182
+ colorScheme?: string;
170
183
  };
184
+ parts: ("tab" | "tabpanel" | "tabpanels" | "root" | "tablist" | "buttonArrows" | "tablistWrapper" | "carouselParent")[];
171
185
  };
172
186
  export default CustomTabs;
@@ -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: string;
23
- md: string;
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
- parts: string[];
95
- baseStyle: ({ isDismissible }: {
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
- overflow: string;
123
- textOverflow: string;
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: string;
143
- md: string;
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
- defaultProps: {};
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
- variants: {
49
+ sizes?: {
50
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
51
+ };
52
+ variants?: {
35
53
  left: {
36
54
  gridTemplateColumns: {
37
- md: string;
55
+ md: "255px 1fr";
38
56
  };
39
57
  };
40
58
  right: {
41
59
  gridTemplateColumns: {
42
- md: string;
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: string;
51
- md: string;
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: string;
60
- md: string;
93
+ base: "1";
94
+ md: "1 / span 2";
61
95
  };
62
96
  };
63
- variants: {
97
+ sizes?: {
98
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
99
+ };
100
+ variants?: {
64
101
  left: {
65
102
  gridColumn: {
66
- base: string;
67
- md: string;
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: string;
79
- md: string;
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
- variants: {
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: string;
92
- md: string;
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
- interface TextBaseStyle {
2
- isBold: boolean;
3
- isItalic: boolean;
4
- isCapitalized: boolean;
5
- isUppercase: boolean;
6
- isLowercase: boolean;
7
- noSpace: boolean;
8
- variant: string;
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: ({ isBold, isItalic, isCapitalized, isUppercase, isLowercase, noSpace, variant, }: TextBaseStyle) => {
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
- variants: {
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: string;
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: string;
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
- parts: string[];
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
- variants: {
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: string;
350
- md: string;
351
+ base: "sm";
352
+ md: "none";
351
353
  };
352
354
  borderTopRightRadius: {
353
- base: string;
354
- md: string;
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
- parts: string[];
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
- defaultProps: {
21
- size: string;
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: ({ size }: {
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
- defaultProps: {
125
- colorScheme: string;
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;