@nypl/design-system-react-components 1.4.2 → 1.5.0-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.
Files changed (63) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  3. package/dist/components/Header/components/HeaderSearchButton.d.ts +2 -2
  4. package/dist/components/Notification/Notification.d.ts +8 -7
  5. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
  6. package/dist/design-system-react-components.cjs.development.js +1185 -203
  7. package/dist/design-system-react-components.cjs.development.js.map +1 -1
  8. package/dist/design-system-react-components.cjs.production.min.js +1 -1
  9. package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
  10. package/dist/design-system-react-components.esm.js +1188 -206
  11. package/dist/design-system-react-components.esm.js.map +1 -1
  12. package/dist/styles.css +1 -1
  13. package/dist/theme/components/accordion.d.ts +14 -0
  14. package/dist/theme/components/audioPlayer.d.ts +7 -0
  15. package/dist/theme/components/breadcrumb.d.ts +28 -0
  16. package/dist/theme/components/button.d.ts +12 -0
  17. package/dist/theme/components/card.d.ts +40 -0
  18. package/dist/theme/components/checkbox.d.ts +67 -0
  19. package/dist/theme/components/customTable.d.ts +103 -2
  20. package/dist/theme/components/feedbackBox.d.ts +22 -0
  21. package/dist/theme/components/fieldset.d.ts +3 -0
  22. package/dist/theme/components/filterBar.d.ts +16 -0
  23. package/dist/theme/components/footer.d.ts +18 -0
  24. package/dist/theme/components/global.d.ts +46 -0
  25. package/dist/theme/components/header/header.d.ts +7 -0
  26. package/dist/theme/components/header/headerLogin.d.ts +18 -0
  27. package/dist/theme/components/header/headerLoginButton.d.ts +15 -0
  28. package/dist/theme/components/header/headerLowerNav.d.ts +32 -0
  29. package/dist/theme/components/header/headerMobileIconNav.d.ts +5 -0
  30. package/dist/theme/components/header/headerMobileNavButton.d.ts +6 -0
  31. package/dist/theme/components/header/headerSearchButton.d.ts +26 -0
  32. package/dist/theme/components/header/headerSearchForm.d.ts +9 -0
  33. package/dist/theme/components/header/headerSitewideAlerts.d.ts +12 -0
  34. package/dist/theme/components/header/headerUpperNav.d.ts +12 -0
  35. package/dist/theme/components/heading.d.ts +9 -0
  36. package/dist/theme/components/helperErrorText.d.ts +3 -0
  37. package/dist/theme/components/hero.d.ts +42 -5
  38. package/dist/theme/components/horizontalRule.d.ts +3 -0
  39. package/dist/theme/components/image.d.ts +54 -0
  40. package/dist/theme/components/label.d.ts +3 -0
  41. package/dist/theme/components/link.d.ts +20 -4
  42. package/dist/theme/components/list.d.ts +46 -0
  43. package/dist/theme/components/modal.d.ts +21 -0
  44. package/dist/theme/components/multiSelectMenuButton.d.ts +23 -0
  45. package/dist/theme/components/notification.d.ts +62 -21
  46. package/dist/theme/components/progressIndicator.d.ts +16 -0
  47. package/dist/theme/components/radio.d.ts +63 -0
  48. package/dist/theme/components/searchBar.d.ts +11 -1
  49. package/dist/theme/components/select.d.ts +39 -0
  50. package/dist/theme/components/skeletonLoader.d.ts +4 -1
  51. package/dist/theme/components/slider.d.ts +21 -2
  52. package/dist/theme/components/statusBadge.d.ts +12 -0
  53. package/dist/theme/components/structuredContent.d.ts +63 -4
  54. package/dist/theme/components/styledList.d.ts +10 -0
  55. package/dist/theme/components/tabs.d.ts +37 -1
  56. package/dist/theme/components/tagSet.d.ts +39 -0
  57. package/dist/theme/components/template.d.ts +3 -0
  58. package/dist/theme/components/textInput.d.ts +194 -0
  59. package/dist/theme/components/toggle.d.ts +39 -3
  60. package/dist/theme/components/tooltip.d.ts +6 -1
  61. package/dist/theme/components/videoPlayer.d.ts +7 -0
  62. package/dist/theme/foundations/global.d.ts +10 -0
  63. package/package.json +1 -1
@@ -15,6 +15,9 @@ declare const HeaderSearchButton: {
15
15
  md: string;
16
16
  };
17
17
  textDecoration: string;
18
+ _dark: {
19
+ color: string;
20
+ };
18
21
  span: {
19
22
  alignItems: string;
20
23
  borderBottom: {
@@ -22,6 +25,14 @@ declare const HeaderSearchButton: {
22
25
  };
23
26
  display: string;
24
27
  lineHeight: string;
28
+ _dark: {
29
+ borderBottom: string | {
30
+ md: string;
31
+ };
32
+ borderColor: {
33
+ md: string;
34
+ };
35
+ };
25
36
  };
26
37
  svg: {
27
38
  marginLeft: {
@@ -32,6 +43,12 @@ declare const HeaderSearchButton: {
32
43
  base: string;
33
44
  md: string;
34
45
  };
46
+ _dark: {
47
+ fill: {
48
+ base: string;
49
+ md: string;
50
+ };
51
+ };
35
52
  };
36
53
  _hover: {
37
54
  backgroundColor: string;
@@ -43,6 +60,15 @@ declare const HeaderSearchButton: {
43
60
  md: string;
44
61
  };
45
62
  };
63
+ _dark: {
64
+ color: string;
65
+ svg: {
66
+ fill: {
67
+ base: string;
68
+ md: string;
69
+ };
70
+ };
71
+ };
46
72
  };
47
73
  _focus: {
48
74
  borderRadius: string;
@@ -82,6 +82,9 @@ declare const HeaderSearchForm: {
82
82
  outlineStyle: string;
83
83
  outlineWidth: string;
84
84
  };
85
+ _dark: {
86
+ color: string;
87
+ };
85
88
  };
86
89
  };
87
90
  searchBtn: {
@@ -168,6 +171,12 @@ declare const HeaderSearchForm: {
168
171
  outlineWidth: string;
169
172
  };
170
173
  };
174
+ _dark: {
175
+ color: string;
176
+ label: {
177
+ color: string;
178
+ };
179
+ };
171
180
  };
172
181
  };
173
182
  export default HeaderSearchForm;
@@ -21,6 +21,18 @@ declare const SitewideAlerts: {
21
21
  p: {
22
22
  marginBottom: string;
23
23
  };
24
+ _dark: {
25
+ color: string;
26
+ a: {
27
+ color: string;
28
+ _hover: {
29
+ color: string;
30
+ };
31
+ };
32
+ };
33
+ };
34
+ _dark: {
35
+ backgroundColor: string;
24
36
  };
25
37
  };
26
38
  };
@@ -31,9 +31,18 @@ declare const HeaderUpperNav: {
31
31
  outlineStyle: string;
32
32
  outlineWidth: string;
33
33
  };
34
+ _dark: {
35
+ color: string;
36
+ _hover: {
37
+ color: string;
38
+ };
39
+ };
34
40
  };
35
41
  svg: {
36
42
  marginTop: string;
43
+ _dark: {
44
+ fill: string;
45
+ };
37
46
  };
38
47
  emailUpdatesLink: {
39
48
  display: string;
@@ -51,6 +60,9 @@ declare const HeaderUpperNav: {
51
60
  _hover: {
52
61
  bg: string;
53
62
  };
63
+ _dark: {
64
+ color: string;
65
+ };
54
66
  };
55
67
  };
56
68
  };
@@ -56,12 +56,21 @@ declare const Heading: {
56
56
  a: {
57
57
  color: string;
58
58
  textDecoration: string;
59
+ _dark: {
60
+ color: string;
61
+ };
59
62
  _hover: {
60
63
  color: string;
64
+ _dark: {
65
+ color: string;
66
+ };
61
67
  };
62
68
  };
63
69
  marginBottom: string;
64
70
  textTransform: string;
71
+ _dark: {
72
+ color: string;
73
+ };
65
74
  };
66
75
  variants: {
67
76
  h1: {
@@ -7,6 +7,9 @@ declare const helperErrorText: {
7
7
  marginBottom: string;
8
8
  fontSize: string;
9
9
  color: string;
10
+ _dark: {
11
+ color: string;
12
+ };
10
13
  };
11
14
  };
12
15
  export default helperErrorText;
@@ -1,6 +1,9 @@
1
1
  declare const Hero: {
2
2
  baseStyle: {
3
3
  bg: string;
4
+ _dark: {
5
+ bg: string;
6
+ };
4
7
  };
5
8
  variants: {
6
9
  primary: {
@@ -38,11 +41,14 @@ declare const Hero: {
38
41
  bodyText: {
39
42
  marginBottom: string;
40
43
  };
44
+ _dark: {
45
+ bg: string;
46
+ color: string;
47
+ };
41
48
  };
42
49
  };
43
50
  secondary: {
44
51
  heading: {
45
- bg: string;
46
52
  _before: {
47
53
  bg: string;
48
54
  content: string;
@@ -52,6 +58,11 @@ declare const Hero: {
52
58
  width: string;
53
59
  zIndex: string;
54
60
  };
61
+ _dark: {
62
+ _before: {
63
+ bg: string;
64
+ };
65
+ };
55
66
  marginBottom: string;
56
67
  color: string;
57
68
  flex: string;
@@ -117,7 +128,6 @@ declare const Hero: {
117
128
  };
118
129
  secondaryBooksAndMore: {
119
130
  heading: {
120
- bg: string;
121
131
  _before: {
122
132
  bg: string;
123
133
  content: string;
@@ -127,6 +137,11 @@ declare const Hero: {
127
137
  width: string;
128
138
  zIndex: string;
129
139
  };
140
+ _dark: {
141
+ _before: {
142
+ bg: string;
143
+ };
144
+ };
130
145
  marginBottom: string;
131
146
  color: string;
132
147
  flex: string;
@@ -192,7 +207,6 @@ declare const Hero: {
192
207
  };
193
208
  secondaryLocations: {
194
209
  heading: {
195
- bg: string;
196
210
  _before: {
197
211
  bg: string;
198
212
  content: string;
@@ -202,6 +216,11 @@ declare const Hero: {
202
216
  width: string;
203
217
  zIndex: string;
204
218
  };
219
+ _dark: {
220
+ _before: {
221
+ bg: string;
222
+ };
223
+ };
205
224
  marginBottom: string;
206
225
  color: string;
207
226
  flex: string;
@@ -267,7 +286,6 @@ declare const Hero: {
267
286
  };
268
287
  secondaryResearch: {
269
288
  heading: {
270
- bg: string;
271
289
  _before: {
272
290
  bg: string;
273
291
  content: string;
@@ -277,6 +295,11 @@ declare const Hero: {
277
295
  width: string;
278
296
  zIndex: string;
279
297
  };
298
+ _dark: {
299
+ _before: {
300
+ bg: string;
301
+ };
302
+ };
280
303
  marginBottom: string;
281
304
  color: string;
282
305
  flex: string;
@@ -342,7 +365,6 @@ declare const Hero: {
342
365
  };
343
366
  secondaryWhatsOn: {
344
367
  heading: {
345
- bg: string;
346
368
  _before: {
347
369
  bg: string;
348
370
  content: string;
@@ -352,6 +374,11 @@ declare const Hero: {
352
374
  width: string;
353
375
  zIndex: string;
354
376
  };
377
+ _dark: {
378
+ _before: {
379
+ bg: string;
380
+ };
381
+ };
355
382
  marginBottom: string;
356
383
  color: string;
357
384
  flex: string;
@@ -433,6 +460,9 @@ declare const Hero: {
433
460
  xl: string;
434
461
  };
435
462
  };
463
+ _dark: {
464
+ color: string;
465
+ };
436
466
  marginY: string;
437
467
  marginX: string;
438
468
  maxWidth: string;
@@ -448,6 +478,9 @@ declare const Hero: {
448
478
  p: {
449
479
  marginBottom: string;
450
480
  };
481
+ _dark: {
482
+ bg: string;
483
+ };
451
484
  };
452
485
  campaign: {
453
486
  alignItems: string;
@@ -485,6 +518,10 @@ declare const Hero: {
485
518
  top: {
486
519
  md: string;
487
520
  };
521
+ _dark: {
522
+ bg: string;
523
+ color: string;
524
+ };
488
525
  };
489
526
  a: {
490
527
  color: string;
@@ -10,6 +10,9 @@ declare const HorizontalRule: {
10
10
  marginTop: string;
11
11
  marginStart: string | number;
12
12
  marginEnd: string | number;
13
+ _dark: {
14
+ bg: string;
15
+ };
13
16
  };
14
17
  };
15
18
  export default HorizontalRule;
@@ -106,6 +106,9 @@ declare const CustomImage: {
106
106
  img: {
107
107
  backgroundColor: string;
108
108
  marginBottom: string;
109
+ _dark: {
110
+ backgroundColor: string;
111
+ };
109
112
  };
110
113
  maxWidth: string;
111
114
  margin: string;
@@ -114,6 +117,9 @@ declare const CustomImage: {
114
117
  img: {
115
118
  backgroundColor: string;
116
119
  marginBottom: string;
120
+ _dark: {
121
+ backgroundColor: string;
122
+ };
117
123
  };
118
124
  maxWidth: string;
119
125
  marginStart: string;
@@ -124,6 +130,9 @@ declare const CustomImage: {
124
130
  img: {
125
131
  backgroundColor: string;
126
132
  marginBottom: string;
133
+ _dark: {
134
+ backgroundColor: string;
135
+ };
127
136
  };
128
137
  maxWidth: string;
129
138
  marginStart: string;
@@ -134,6 +143,9 @@ declare const CustomImage: {
134
143
  img: {
135
144
  backgroundColor: string;
136
145
  marginBottom: string;
146
+ _dark: {
147
+ backgroundColor: string;
148
+ };
137
149
  };
138
150
  maxWidth: string;
139
151
  marginStart: string;
@@ -144,6 +156,9 @@ declare const CustomImage: {
144
156
  img: {
145
157
  backgroundColor: string;
146
158
  marginBottom: string;
159
+ _dark: {
160
+ backgroundColor: string;
161
+ };
147
162
  };
148
163
  maxWidth: string;
149
164
  marginStart: string;
@@ -154,6 +169,9 @@ declare const CustomImage: {
154
169
  img: {
155
170
  backgroundColor: string;
156
171
  marginBottom: string;
172
+ _dark: {
173
+ backgroundColor: string;
174
+ };
157
175
  };
158
176
  maxWidth: string;
159
177
  marginStart: string;
@@ -166,6 +184,9 @@ declare const CustomImage: {
166
184
  fontSize: string;
167
185
  };
168
186
  img: {
187
+ _dark: {
188
+ backgroundColor: string;
189
+ };
169
190
  maxWidth: string;
170
191
  display: string;
171
192
  backgroundColor: string;
@@ -174,6 +195,9 @@ declare const CustomImage: {
174
195
  position: string;
175
196
  width: string;
176
197
  } | {
198
+ _dark: {
199
+ backgroundColor: string;
200
+ };
177
201
  maxWidth: string;
178
202
  marginStart: string;
179
203
  marginEnd: string;
@@ -184,6 +208,9 @@ declare const CustomImage: {
184
208
  position: string;
185
209
  width: string;
186
210
  } | {
211
+ _dark: {
212
+ backgroundColor: string;
213
+ };
187
214
  maxWidth: string;
188
215
  marginStart: string;
189
216
  marginEnd: string;
@@ -194,6 +221,9 @@ declare const CustomImage: {
194
221
  position: string;
195
222
  width: string;
196
223
  } | {
224
+ _dark: {
225
+ backgroundColor: string;
226
+ };
197
227
  maxWidth: string;
198
228
  marginStart: string;
199
229
  marginEnd: string;
@@ -204,6 +234,9 @@ declare const CustomImage: {
204
234
  position: string;
205
235
  width: string;
206
236
  } | {
237
+ _dark: {
238
+ backgroundColor: string;
239
+ };
207
240
  maxWidth: string;
208
241
  marginStart: string;
209
242
  marginEnd: string;
@@ -214,6 +247,9 @@ declare const CustomImage: {
214
247
  position: string;
215
248
  width: string;
216
249
  } | {
250
+ _dark: {
251
+ backgroundColor: string;
252
+ };
217
253
  maxWidth: string;
218
254
  marginStart: string;
219
255
  marginEnd: string;
@@ -288,6 +324,9 @@ declare const CustomImageWrapper: {
288
324
  position: string;
289
325
  top: string;
290
326
  width: string;
327
+ _dark: {
328
+ backgroundColor: string;
329
+ };
291
330
  };
292
331
  maxWidth: string;
293
332
  marginStart: string;
@@ -350,6 +389,9 @@ declare const CustomImageWrapper: {
350
389
  position: string;
351
390
  top: string;
352
391
  width: string;
392
+ _dark: {
393
+ backgroundColor: string;
394
+ };
353
395
  };
354
396
  maxWidth: string;
355
397
  marginStart: string;
@@ -412,6 +454,9 @@ declare const CustomImageWrapper: {
412
454
  position: string;
413
455
  top: string;
414
456
  width: string;
457
+ _dark: {
458
+ backgroundColor: string;
459
+ };
415
460
  };
416
461
  maxWidth: string;
417
462
  marginStart: string;
@@ -474,6 +519,9 @@ declare const CustomImageWrapper: {
474
519
  position: string;
475
520
  top: string;
476
521
  width: string;
522
+ _dark: {
523
+ backgroundColor: string;
524
+ };
477
525
  };
478
526
  maxWidth: string;
479
527
  marginStart: string;
@@ -536,6 +584,9 @@ declare const CustomImageWrapper: {
536
584
  position: string;
537
585
  top: string;
538
586
  width: string;
587
+ _dark: {
588
+ backgroundColor: string;
589
+ };
539
590
  };
540
591
  maxWidth: string;
541
592
  marginStart: string;
@@ -598,6 +649,9 @@ declare const CustomImageWrapper: {
598
649
  position: string;
599
650
  top: string;
600
651
  width: string;
652
+ _dark: {
653
+ backgroundColor: string;
654
+ };
601
655
  };
602
656
  maxWidth: string;
603
657
  marginStart: string;
@@ -13,6 +13,9 @@ declare const Label: {
13
13
  span: {
14
14
  fontWeight: string;
15
15
  };
16
+ _dark: {
17
+ color: string;
18
+ };
16
19
  };
17
20
  };
18
21
  export default Label;
@@ -1,8 +1,14 @@
1
1
  export declare const baseLinkStyles: {
2
2
  color: string;
3
3
  textDecoration: string;
4
+ _dark: {
5
+ color: string;
6
+ };
4
7
  _hover: {
5
8
  color: string;
9
+ _dark: {
10
+ color: string;
11
+ };
6
12
  };
7
13
  };
8
14
  declare const Link: {
@@ -36,8 +42,14 @@ declare const Link: {
36
42
  };
37
43
  color: string;
38
44
  textDecoration: string;
45
+ _dark: {
46
+ color: string;
47
+ };
39
48
  _hover: {
40
49
  color: string;
50
+ _dark: {
51
+ color: string;
52
+ };
41
53
  };
42
54
  };
43
55
  variants: {
@@ -55,10 +67,6 @@ declare const Link: {
55
67
  textDecoration: string;
56
68
  fill: string;
57
69
  };
58
- _hover: {
59
- color: string;
60
- textDecoration: string;
61
- };
62
70
  };
63
71
  button: {
64
72
  width: string;
@@ -73,10 +81,18 @@ declare const Link: {
73
81
  textDecoration: string;
74
82
  fontWeight: string;
75
83
  bg: string;
84
+ _dark: {
85
+ color: string;
86
+ bg: string;
87
+ };
76
88
  _hover: {
77
89
  color: string;
78
90
  bg: string;
79
91
  textDecoration: string;
92
+ _dark: {
93
+ color: string;
94
+ bg: string;
95
+ };
80
96
  };
81
97
  };
82
98
  buttonPrimary: any;
@@ -30,6 +30,11 @@ export declare const baseUnorderedStyles: (noStyling?: boolean) => {
30
30
  marginStart: string;
31
31
  width: string;
32
32
  };
33
+ _dark: {
34
+ _before: {
35
+ color: string;
36
+ };
37
+ };
33
38
  };
34
39
  margin: string;
35
40
  marginBottom: string;
@@ -43,6 +48,12 @@ export declare const baseSectionDescriptionStyles: {
43
48
  borderColor: string;
44
49
  margin: string;
45
50
  padding: string;
51
+ _dark: {
52
+ borderColor: string;
53
+ };
54
+ };
55
+ _dark: {
56
+ borderColor: string;
46
57
  };
47
58
  };
48
59
  export declare const baseDescriptionStyles: {
@@ -67,6 +78,10 @@ export declare const baseDescriptionStyles: {
67
78
  paddingEnd: {
68
79
  md: string;
69
80
  };
81
+ _dark: {
82
+ borderColor: string;
83
+ color: string;
84
+ };
70
85
  };
71
86
  dd: {
72
87
  margin: string;
@@ -81,6 +96,11 @@ export declare const baseDescriptionStyles: {
81
96
  paddingTop: {
82
97
  md: string;
83
98
  };
99
+ _dark: {
100
+ borderColor: {
101
+ md: string;
102
+ };
103
+ };
84
104
  };
85
105
  borderBottom: string;
86
106
  borderColor: string;
@@ -90,6 +110,12 @@ export declare const baseDescriptionStyles: {
90
110
  borderColor: string;
91
111
  margin: string;
92
112
  padding: string;
113
+ _dark: {
114
+ borderColor: string;
115
+ };
116
+ };
117
+ _dark: {
118
+ borderColor: string;
93
119
  };
94
120
  };
95
121
  declare const List: {
@@ -122,6 +148,11 @@ declare const List: {
122
148
  marginStart: string;
123
149
  width: string;
124
150
  };
151
+ _dark: {
152
+ _before: {
153
+ color: string;
154
+ };
155
+ };
125
156
  };
126
157
  margin: string;
127
158
  marginBottom: string;
@@ -152,6 +183,10 @@ declare const List: {
152
183
  paddingEnd: {
153
184
  md: string;
154
185
  };
186
+ _dark: {
187
+ borderColor: string;
188
+ color: string;
189
+ };
155
190
  };
156
191
  dd: {
157
192
  margin: string;
@@ -166,6 +201,11 @@ declare const List: {
166
201
  paddingTop: {
167
202
  md: string;
168
203
  };
204
+ _dark: {
205
+ borderColor: {
206
+ md: string;
207
+ };
208
+ };
169
209
  };
170
210
  borderBottom: string;
171
211
  borderColor: string;
@@ -175,6 +215,12 @@ declare const List: {
175
215
  borderColor: string;
176
216
  margin: string;
177
217
  padding: string;
218
+ _dark: {
219
+ borderColor: string;
220
+ };
221
+ };
222
+ _dark: {
223
+ borderColor: string;
178
224
  };
179
225
  };
180
226
  };
@@ -0,0 +1,21 @@
1
+ declare const Modal: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ dialog: {
5
+ _dark: {
6
+ bg: string;
7
+ };
8
+ };
9
+ header: {
10
+ _dark: {
11
+ color: string;
12
+ };
13
+ };
14
+ body: {
15
+ _dark: {
16
+ color: string;
17
+ };
18
+ };
19
+ };
20
+ };
21
+ export default Modal;