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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/design-system-react-components.cjs +77 -400
  2. package/dist/design-system-react-components.js +24102 -22655
  3. package/dist/src/components/Accordion/Accordion.d.ts +1 -1
  4. package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +1 -1
  5. package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +1 -3
  6. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  7. package/dist/src/components/Button/Button.d.ts +1 -24
  8. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +1 -16
  9. package/dist/src/components/Card/Card.d.ts +4 -16
  10. package/dist/src/components/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  12. package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +1 -3
  13. package/dist/src/components/DatePicker/DatePicker.d.ts +1 -1
  14. package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +1 -3
  15. package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +2 -52
  16. package/dist/src/components/Fieldset/Fieldset.d.ts +1 -18
  17. package/dist/src/components/Form/Form.d.ts +3 -5
  18. package/dist/src/components/Grid/SimpleGrid.d.ts +1 -3
  19. package/dist/src/components/Heading/Heading.d.ts +1 -3
  20. package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +1 -25
  21. package/dist/src/components/Hero/Hero.d.ts +1 -3
  22. package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +1 -1
  23. package/dist/src/components/Icons/Icon.d.ts +1 -3
  24. package/dist/src/components/Image/Image.d.ts +1 -1
  25. package/dist/src/components/Label/Label.d.ts +1 -20
  26. package/dist/src/components/Link/Link.d.ts +3 -1
  27. package/dist/src/components/List/List.d.ts +1 -3
  28. package/dist/src/components/Logo/Logo.d.ts +1 -3
  29. package/dist/src/components/Modal/Modal.d.ts +2 -8
  30. package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +1 -39
  31. package/dist/src/components/Notification/Notification.d.ts +4 -6
  32. package/dist/src/components/Pagination/Pagination.d.ts +1 -1
  33. package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  34. package/dist/src/components/Radio/Radio.d.ts +1 -1
  35. package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -3
  36. package/dist/src/components/SearchBar/SearchBar.d.ts +1 -1
  37. package/dist/src/components/Select/Select.d.ts +1 -3
  38. package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +1 -3
  39. package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +1 -11
  40. package/dist/src/components/Slider/Slider.d.ts +1 -3
  41. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +1 -1
  42. package/dist/src/components/StatusBadge/StatusBadge.d.ts +1 -3
  43. package/dist/src/components/StructuredContent/StructuredContent.d.ts +1 -3
  44. package/dist/src/components/StyleGuide/ColorCard.d.ts +3 -3
  45. package/dist/src/components/StyledList/StyledList.d.ts +1 -1
  46. package/dist/src/components/Table/Table.d.ts +1 -3
  47. package/dist/src/components/Tabs/Tabs.d.ts +1 -3
  48. package/dist/src/components/TagSet/TagSet.d.ts +1 -1
  49. package/dist/src/components/TagSet/TagSetExplore.d.ts +2 -2
  50. package/dist/src/components/TagSet/TagSetFilter.d.ts +2 -1
  51. package/dist/src/components/TagSet/TooltipWrapper.d.ts +1 -3
  52. package/dist/src/components/Template/Template.d.ts +11 -15
  53. package/dist/src/components/Text/Text.d.ts +1 -3
  54. package/dist/src/components/TextInput/TextInput.d.ts +1 -1
  55. package/dist/src/components/Toggle/Toggle.d.ts +1 -1
  56. package/dist/src/components/Tooltip/Tooltip.d.ts +1 -1
  57. package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +1 -3
  58. package/dist/src/theme/components/button.d.ts +115 -102
  59. package/dist/src/theme/components/card.d.ts +36 -48
  60. package/dist/src/theme/components/heading.d.ts +9 -12
  61. package/dist/src/theme/components/link.d.ts +283 -94
  62. package/dist/src/theme/components/searchBar.d.ts +3 -0
  63. package/dist/src/theme/components/structuredContent.d.ts +9 -13
  64. package/dist/src/theme/foundations/breakpoints.d.ts +2 -2
  65. package/dist/src/theme/provider.d.ts +2 -2
  66. package/package.json +20 -20
  67. package/dist/src/theme/internalChakraProvider.d.ts +0 -67
@@ -105,25 +105,22 @@ declare const _default: {
105
105
  marginBottom: string;
106
106
  a: {
107
107
  textDecoration: string;
108
- color: string;
109
- textDecorationStyle: string;
110
- textDecorationThickness: string;
111
- textUnderlineOffset: string;
112
- _dark: {
113
- color: string;
114
- };
115
- _hover: {
108
+ base: {
116
109
  color: string;
110
+ textDecoration: string;
117
111
  textDecorationStyle: string;
118
112
  textDecorationThickness: string;
113
+ textUnderlineOffset: string;
119
114
  _dark: {
120
115
  color: string;
121
116
  };
122
- };
123
- _visited: {
124
- color: string;
125
- _dark: {
117
+ _hover: {
126
118
  color: string;
119
+ textDecorationStyle: string;
120
+ textDecorationThickness: string;
121
+ _dark: {
122
+ color: string;
123
+ };
127
124
  };
128
125
  };
129
126
  };
@@ -179,25 +176,22 @@ declare const _default: {
179
176
  marginBottom: string;
180
177
  a: {
181
178
  textDecoration: string;
182
- color: string;
183
- textDecorationStyle: string;
184
- textDecorationThickness: string;
185
- textUnderlineOffset: string;
186
- _dark: {
187
- color: string;
188
- };
189
- _hover: {
179
+ base: {
190
180
  color: string;
181
+ textDecoration: string;
191
182
  textDecorationStyle: string;
192
183
  textDecorationThickness: string;
184
+ textUnderlineOffset: string;
193
185
  _dark: {
194
186
  color: string;
195
187
  };
196
- };
197
- _visited: {
198
- color: string;
199
- _dark: {
188
+ _hover: {
200
189
  color: string;
190
+ textDecorationStyle: string;
191
+ textDecorationThickness: string;
192
+ _dark: {
193
+ color: string;
194
+ };
201
195
  };
202
196
  };
203
197
  };
@@ -254,25 +248,22 @@ declare const _default: {
254
248
  marginBottom: string;
255
249
  a: {
256
250
  textDecoration: string;
257
- color: string;
258
- textDecorationStyle: string;
259
- textDecorationThickness: string;
260
- textUnderlineOffset: string;
261
- _dark: {
262
- color: string;
263
- };
264
- _hover: {
251
+ base: {
265
252
  color: string;
253
+ textDecoration: string;
266
254
  textDecorationStyle: string;
267
255
  textDecorationThickness: string;
256
+ textUnderlineOffset: string;
268
257
  _dark: {
269
258
  color: string;
270
259
  };
271
- };
272
- _visited: {
273
- color: string;
274
- _dark: {
260
+ _hover: {
275
261
  color: string;
262
+ textDecorationStyle: string;
263
+ textDecorationThickness: string;
264
+ _dark: {
265
+ color: string;
266
+ };
276
267
  };
277
268
  };
278
269
  };
@@ -326,25 +317,22 @@ declare const _default: {
326
317
  marginBottom: string;
327
318
  a: {
328
319
  textDecoration: string;
329
- color: string;
330
- textDecorationStyle: string;
331
- textDecorationThickness: string;
332
- textUnderlineOffset: string;
333
- _dark: {
334
- color: string;
335
- };
336
- _hover: {
320
+ base: {
337
321
  color: string;
322
+ textDecoration: string;
338
323
  textDecorationStyle: string;
339
324
  textDecorationThickness: string;
325
+ textUnderlineOffset: string;
340
326
  _dark: {
341
327
  color: string;
342
328
  };
343
- };
344
- _visited: {
345
- color: string;
346
- _dark: {
329
+ _hover: {
347
330
  color: string;
331
+ textDecorationStyle: string;
332
+ textDecorationThickness: string;
333
+ _dark: {
334
+ color: string;
335
+ };
348
336
  };
349
337
  };
350
338
  };
@@ -120,25 +120,22 @@ declare const Heading: {
120
120
  }) => {
121
121
  a: {
122
122
  textDecoration: string;
123
- color: string;
124
- textDecorationStyle: string;
125
- textDecorationThickness: string;
126
- textUnderlineOffset: string;
127
- _dark: {
128
- color: string;
129
- };
130
- _hover: {
123
+ base: {
131
124
  color: string;
125
+ textDecoration: string;
132
126
  textDecorationStyle: string;
133
127
  textDecorationThickness: string;
128
+ textUnderlineOffset: string;
134
129
  _dark: {
135
130
  color: string;
136
131
  };
137
- };
138
- _visited: {
139
- color: string;
140
- _dark: {
132
+ _hover: {
141
133
  color: string;
134
+ textDecorationStyle: string;
135
+ textDecorationThickness: string;
136
+ _dark: {
137
+ color: string;
138
+ };
142
139
  };
143
140
  };
144
141
  };
@@ -1,38 +1,60 @@
1
1
  export declare const baseLinkStyles: {
2
- color: string;
3
- textDecoration: string;
4
- textDecorationStyle: string;
5
- textDecorationThickness: string;
6
- textUnderlineOffset: string;
7
- _dark: {
8
- color: string;
9
- };
10
- _hover: {
2
+ base: {
11
3
  color: string;
4
+ textDecoration: string;
12
5
  textDecorationStyle: string;
13
6
  textDecorationThickness: string;
7
+ textUnderlineOffset: string;
14
8
  _dark: {
15
9
  color: string;
16
10
  };
17
- };
18
- _visited: {
19
- color: string;
20
- _dark: {
11
+ _hover: {
21
12
  color: string;
13
+ textDecorationStyle: string;
14
+ textDecorationThickness: string;
15
+ _dark: {
16
+ color: string;
17
+ };
22
18
  };
23
19
  };
24
20
  };
25
21
  declare const Link: {
26
- parts: string[];
27
- baseStyle: ({ finalIsUnderlined }: {
28
- finalIsUnderlined?: boolean;
29
- }) => {
30
- textDecoration: string;
31
- /** This is needed for custom anchor elements or link components
32
- * that are passed as children to the `Link` component. */
33
- a: {
34
- _hover: {
22
+ baseStyle?: ({ finalIsUnderlined, hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
23
+ base: {
24
+ _visited: {
35
25
  color: string;
26
+ _dark: {
27
+ color: string;
28
+ };
29
+ } | {
30
+ color?: undefined;
31
+ _dark?: undefined;
32
+ };
33
+ textDecoration: string;
34
+ /** This is needed for custom anchor elements or link components
35
+ * that are passed as children to the `Link` component. */
36
+ a: {
37
+ _hover: {
38
+ color: string;
39
+ };
40
+ };
41
+ base: {
42
+ color: string;
43
+ textDecoration: string;
44
+ textDecorationStyle: string;
45
+ textDecorationThickness: string;
46
+ textUnderlineOffset: string;
47
+ _dark: {
48
+ color: string;
49
+ };
50
+ _hover: {
51
+ color: string;
52
+ textDecorationStyle: string;
53
+ textDecorationThickness: string;
54
+ _dark: {
55
+ color: string;
56
+ };
57
+ };
36
58
  };
37
59
  };
38
60
  /** The element will handle descriptive text added to aid
@@ -54,99 +76,266 @@ declare const Link: {
54
76
  };
55
77
  wordWrap: string;
56
78
  };
57
- color: string;
58
- textDecorationStyle: string;
59
- textDecorationThickness: string;
60
- textUnderlineOffset: string;
61
- _dark: {
62
- color: string;
63
- };
64
- _hover: {
65
- color: string;
66
- textDecorationStyle: string;
67
- textDecorationThickness: string;
68
- _dark: {
69
- color: string;
70
- };
71
- };
72
- _visited: {
73
- color: string;
74
- _dark: {
75
- color: string;
76
- };
77
- };
78
79
  };
79
- variants: {
80
- link: {};
81
- disabled: {
82
- color: string;
83
- pointerEvents: string;
84
- };
85
- moreLink: {
86
- alignItems: string;
87
- display: string;
88
- svg: {
89
- height: string;
80
+ sizes?: {
81
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
82
+ keys: ("base" | "screenreaderOnly")[];
83
+ }>;
84
+ };
85
+ variants?: {
86
+ button: {
87
+ base: {
90
88
  width: string;
91
- textDecoration: string;
92
- fill: string;
93
- };
94
- _hover: {
89
+ borderRadius: string;
90
+ lineHeight: string;
91
+ display: string;
92
+ cursor: string;
95
93
  color: string;
94
+ justifyContent: string;
95
+ py: string;
96
+ px: string;
96
97
  textDecoration: string;
98
+ fontWeight: string;
99
+ bg: string;
100
+ _dark: {
101
+ color: string;
102
+ bg: string;
103
+ };
104
+ _hover: {
105
+ color: string;
106
+ bg: string;
107
+ textDecoration: string;
108
+ _dark: {
109
+ color: string;
110
+ bg: string;
111
+ };
112
+ };
113
+ _visited: {
114
+ color: string;
115
+ _dark: {
116
+ _visited: {
117
+ color: string;
118
+ };
119
+ };
120
+ };
97
121
  };
98
- _visited: {
99
- svg: {
100
- fill: string;
122
+ };
123
+ buttonCallout: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
124
+ base: {
125
+ _hover: {
126
+ color: string;
101
127
  };
102
- _dark: {
103
- svg: {
104
- fill: string;
128
+ _visited: {
129
+ color: string;
130
+ _dark: {
131
+ color: string;
132
+ };
133
+ } | {
134
+ color?: undefined;
135
+ _dark?: undefined;
136
+ };
137
+ base: any;
138
+ display: string;
139
+ screenreaderOnly: {
140
+ clip: string;
141
+ height: {
142
+ base: string;
143
+ md: string;
144
+ };
145
+ overflow: string;
146
+ position: {
147
+ base: string;
148
+ md: string;
149
+ };
150
+ width: {
151
+ base: string;
152
+ md: string;
105
153
  };
154
+ wordWrap: string;
106
155
  };
107
156
  };
108
157
  };
109
- button: {
110
- width: string;
111
- borderRadius: string;
112
- lineHeight: string;
113
- display: string;
114
- cursor: string;
115
- color: string;
116
- justifyContent: string;
117
- py: string;
118
- px: string;
119
- textDecoration: string;
120
- fontWeight: string;
121
- bg: string;
122
- _dark: {
123
- color: string;
158
+ buttonDisabled: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
159
+ base: {
124
160
  bg: string;
125
- };
126
- _hover: {
127
161
  color: string;
128
- bg: string;
129
- textDecoration: string;
130
- _dark: {
162
+ opacity: string;
163
+ pointerEvents: string;
164
+ _visited: {
131
165
  color: string;
166
+ _dark: {
167
+ color: string;
168
+ };
169
+ } | {
170
+ color?: undefined;
171
+ _dark?: undefined;
172
+ };
173
+ _dark: {
132
174
  bg: string;
175
+ color: string;
133
176
  };
177
+ base: any;
178
+ screenreaderOnly: {};
179
+ display: string;
134
180
  };
135
- _visited: {
136
- color: string;
137
- _dark: {
138
- _visited: {
181
+ };
182
+ buttonNoBrand: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
183
+ base: {
184
+ _hover: {
185
+ color: string;
186
+ };
187
+ _visited: {
188
+ color: string;
189
+ _dark: {
190
+ color: string;
191
+ };
192
+ } | {
193
+ color?: undefined;
194
+ _dark?: undefined;
195
+ };
196
+ base: any;
197
+ display: string;
198
+ screenreaderOnly: {
199
+ clip: string;
200
+ height: {
201
+ base: string;
202
+ md: string;
203
+ };
204
+ overflow: string;
205
+ position: {
206
+ base: string;
207
+ md: string;
208
+ };
209
+ width: {
210
+ base: string;
211
+ md: string;
212
+ };
213
+ wordWrap: string;
214
+ };
215
+ };
216
+ };
217
+ buttonPill: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
218
+ base: {
219
+ _hover: {
220
+ color: string;
221
+ };
222
+ _visited: {
223
+ color: string;
224
+ _dark: {
225
+ color: string;
226
+ };
227
+ } | {
228
+ color?: undefined;
229
+ _dark?: undefined;
230
+ };
231
+ base: any;
232
+ display: string;
233
+ screenreaderOnly: {
234
+ clip: string;
235
+ height: {
236
+ base: string;
237
+ md: string;
238
+ };
239
+ overflow: string;
240
+ position: {
241
+ base: string;
242
+ md: string;
243
+ };
244
+ width: {
245
+ base: string;
246
+ md: string;
247
+ };
248
+ wordWrap: string;
249
+ };
250
+ };
251
+ };
252
+ buttonPrimary: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
253
+ base: {
254
+ _hover: {
255
+ backgroundColor: string;
256
+ color: string;
257
+ };
258
+ _visited: {
259
+ color: string;
260
+ _dark: {
261
+ color: string;
262
+ };
263
+ } | {
264
+ color?: undefined;
265
+ _dark?: undefined;
266
+ };
267
+ base: any;
268
+ screenreaderOnly: {};
269
+ display: string;
270
+ };
271
+ };
272
+ buttonSecondary: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
273
+ base: {
274
+ _visited: {
275
+ color: string;
276
+ _dark: {
139
277
  color: string;
140
278
  };
279
+ } | {
280
+ color?: undefined;
281
+ _dark?: undefined;
282
+ };
283
+ base: any;
284
+ display: string;
285
+ screenreaderOnly: {
286
+ clip: string;
287
+ height: {
288
+ base: string;
289
+ md: string;
290
+ };
291
+ overflow: string;
292
+ position: {
293
+ base: string;
294
+ md: string;
295
+ };
296
+ width: {
297
+ base: string;
298
+ md: string;
299
+ };
300
+ wordWrap: string;
141
301
  };
142
302
  };
143
303
  };
144
- buttonPrimary: any;
145
- buttonSecondary: any;
146
- buttonPill: any;
147
- buttonCallout: any;
148
- buttonNoBrand: any;
149
- buttonDisabled: any;
304
+ moreLink: ({ hasVisitedState }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
305
+ base: {
306
+ alignItems: string;
307
+ display: string;
308
+ svg: {
309
+ height: string;
310
+ width: string;
311
+ textDecoration: string;
312
+ fill: string;
313
+ };
314
+ _hover: {
315
+ color: string;
316
+ textDecoration: string;
317
+ };
318
+ _visited: {
319
+ svg: {
320
+ fill: string;
321
+ };
322
+ _dark: {
323
+ svg: {
324
+ fill: string;
325
+ };
326
+ };
327
+ } | {
328
+ svg?: undefined;
329
+ _dark?: undefined;
330
+ };
331
+ };
332
+ };
333
+ };
334
+ defaultProps?: {
335
+ size?: string | number;
336
+ variant?: "button" | "buttonCallout" | "buttonDisabled" | "buttonNoBrand" | "buttonPill" | "buttonPrimary" | "buttonSecondary" | "moreLink";
337
+ colorScheme?: string;
150
338
  };
339
+ parts: ("base" | "screenreaderOnly")[];
151
340
  };
152
341
  export default Link;
@@ -27,6 +27,9 @@ declare const SearchBar: {
27
27
  };
28
28
  _hover: {
29
29
  zIndex: string;
30
+ "+ .chakra-select__icon-wrapper": {
31
+ zIndex: string;
32
+ };
30
33
  };
31
34
  };
32
35
  };
@@ -149,26 +149,22 @@ declare const StructuredContent: {
149
149
  marginInlineStart: string;
150
150
  };
151
151
  a: {
152
- color: string;
153
- textDecoration: string;
154
- textDecorationStyle: string;
155
- textDecorationThickness: string;
156
- textUnderlineOffset: string;
157
- _dark: {
158
- color: string;
159
- };
160
- _hover: {
152
+ base: {
161
153
  color: string;
154
+ textDecoration: string;
162
155
  textDecorationStyle: string;
163
156
  textDecorationThickness: string;
157
+ textUnderlineOffset: string;
164
158
  _dark: {
165
159
  color: string;
166
160
  };
167
- };
168
- _visited: {
169
- color: string;
170
- _dark: {
161
+ _hover: {
171
162
  color: string;
163
+ textDecorationStyle: string;
164
+ textDecorationThickness: string;
165
+ _dark: {
166
+ color: string;
167
+ };
172
168
  };
173
169
  };
174
170
  };
@@ -13,11 +13,11 @@
13
13
  * @Note Chakra provides a 2xl option while the DS does not. We don't
14
14
  * recommend using this value until further notice.
15
15
  */
16
- declare const _default: import("@chakra-ui/theme-tools").Breakpoints<{
16
+ declare const _default: {
17
17
  sm: string;
18
18
  md: string;
19
19
  lg: string;
20
20
  xl: string;
21
21
  "2xl": string;
22
- }>;
22
+ };
23
23
  export default _default;
@@ -1,4 +1,4 @@
1
+ import { ChakraProviderProps } from "@chakra-ui/react";
1
2
  import React from "react";
2
- import { ChakraProviderProps } from "./internalChakraProvider";
3
- declare const DSProvider: ({ children, colorModeManager, disableGlobalStyle, resetCSS, theme, }: React.PropsWithChildren<ChakraProviderProps>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ declare const DSProvider: ({ children, colorModeManager, disableGlobalStyle, resetCSS, theme, }: React.PropsWithChildren<ChakraProviderProps>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default DSProvider;