@nypl/design-system-react-components 1.4.2 → 1.5.0-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 (65) 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 +1227 -205
  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 +1230 -208
  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 +33 -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 +5 -0
  26. package/dist/theme/components/header/headerLogin.d.ts +35 -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/headerMobileNav.d.ts +7 -0
  31. package/dist/theme/components/header/headerMobileNavButton.d.ts +6 -0
  32. package/dist/theme/components/header/headerSearchButton.d.ts +27 -0
  33. package/dist/theme/components/header/headerSearchForm.d.ts +10 -0
  34. package/dist/theme/components/header/headerSitewideAlerts.d.ts +15 -0
  35. package/dist/theme/components/header/headerUpperNav.d.ts +15 -0
  36. package/dist/theme/components/heading.d.ts +9 -0
  37. package/dist/theme/components/helperErrorText.d.ts +3 -0
  38. package/dist/theme/components/hero.d.ts +43 -6
  39. package/dist/theme/components/horizontalRule.d.ts +3 -0
  40. package/dist/theme/components/image.d.ts +54 -0
  41. package/dist/theme/components/label.d.ts +3 -0
  42. package/dist/theme/components/link.d.ts +20 -4
  43. package/dist/theme/components/list.d.ts +46 -0
  44. package/dist/theme/components/modal.d.ts +21 -0
  45. package/dist/theme/components/multiSelectMenuButton.d.ts +23 -0
  46. package/dist/theme/components/notification.d.ts +62 -21
  47. package/dist/theme/components/progressIndicator.d.ts +16 -0
  48. package/dist/theme/components/radio.d.ts +63 -0
  49. package/dist/theme/components/searchBar.d.ts +11 -1
  50. package/dist/theme/components/select.d.ts +39 -0
  51. package/dist/theme/components/skeletonLoader.d.ts +4 -1
  52. package/dist/theme/components/skipNavigation.d.ts +3 -0
  53. package/dist/theme/components/slider.d.ts +21 -2
  54. package/dist/theme/components/statusBadge.d.ts +12 -0
  55. package/dist/theme/components/structuredContent.d.ts +63 -4
  56. package/dist/theme/components/styledList.d.ts +10 -0
  57. package/dist/theme/components/tabs.d.ts +37 -1
  58. package/dist/theme/components/tagSet.d.ts +39 -0
  59. package/dist/theme/components/template.d.ts +3 -0
  60. package/dist/theme/components/textInput.d.ts +194 -0
  61. package/dist/theme/components/toggle.d.ts +39 -3
  62. package/dist/theme/components/tooltip.d.ts +6 -1
  63. package/dist/theme/components/videoPlayer.d.ts +7 -0
  64. package/dist/theme/foundations/global.d.ts +10 -0
  65. package/package.json +1 -1
@@ -39,6 +39,19 @@ declare const MultiSelectMenuButton: {
39
39
  svg: {
40
40
  marginTop: string;
41
41
  };
42
+ _dark: {
43
+ backgroundColor: string;
44
+ borderBottomLeftRadius: string;
45
+ borderBottomRightRadius: string;
46
+ borderColor: string;
47
+ svg: {
48
+ fill: string;
49
+ };
50
+ _hover: {
51
+ backgroundColor: string;
52
+ borderColor: string;
53
+ };
54
+ };
42
55
  };
43
56
  selectedItemsCountButton: {
44
57
  alignItems: string;
@@ -66,6 +79,16 @@ declare const MultiSelectMenuButton: {
66
79
  marginRight: string;
67
80
  marginTop: string;
68
81
  };
82
+ _dark: {
83
+ backgroundColor: string;
84
+ borderColor: string;
85
+ svg: {
86
+ fill: string;
87
+ };
88
+ _hover: {
89
+ borderColor: string;
90
+ };
91
+ };
69
92
  };
70
93
  };
71
94
  };
@@ -1,14 +1,17 @@
1
1
  import { NotificationTypes } from "../../components/Notification/Notification";
2
2
  interface NotificationBaseStyle {
3
- dismissible: boolean;
4
3
  isCentered: boolean;
5
4
  noMargin: boolean;
5
+ notificationHeading: string;
6
6
  notificationType: NotificationTypes;
7
+ showIcon: boolean;
7
8
  }
8
9
  interface NotificationContentBaseStyle {
9
10
  alignText: boolean;
10
- icon: boolean;
11
+ isCentered: boolean;
12
+ notificationHeading: string;
11
13
  notificationType: NotificationTypes;
14
+ showIcon: boolean;
12
15
  }
13
16
  interface NotificationHeadingBaseStyle {
14
17
  icon: boolean;
@@ -18,21 +21,26 @@ interface NotificationHeadingBaseStyle {
18
21
  declare const _default: {
19
22
  Notification: {
20
23
  parts: string[];
21
- baseStyle: ({ dismissible, isCentered, noMargin, notificationType, }: NotificationBaseStyle) => {
24
+ baseStyle: ({ isCentered, noMargin, notificationHeading, notificationType, }: NotificationBaseStyle) => {
22
25
  bg: string;
26
+ borderRadius: string;
23
27
  display: string;
24
28
  fontSize: string;
29
+ m: string;
25
30
  position: string;
31
+ p: string;
26
32
  textAlign: string;
27
- borderRadius: string;
28
- margin: string;
33
+ _dark: {
34
+ bg: string;
35
+ };
29
36
  container: {
30
- margin: string;
37
+ display: string;
38
+ flexDirection: string;
39
+ m: string;
31
40
  maxWidth: string;
32
- padding: string;
33
41
  paddingEnd: string;
34
42
  paddingStart: string;
35
- width: string;
43
+ w: string;
36
44
  };
37
45
  dismissibleButton: {
38
46
  border: string;
@@ -40,8 +48,8 @@ declare const _default: {
40
48
  alignItems: string;
41
49
  color: string;
42
50
  display: string;
43
- height: string;
44
- width: string;
51
+ h: string;
52
+ w: string;
45
53
  minWidth: string;
46
54
  position: string;
47
55
  right: string;
@@ -49,30 +57,43 @@ declare const _default: {
49
57
  svg: {
50
58
  marginTop: string;
51
59
  };
60
+ _dark: {
61
+ color: string;
62
+ };
52
63
  _hover: {
53
64
  bg: string;
54
65
  };
55
66
  };
56
- icon: {
57
- flexShrink: string;
58
- marginEnd: string;
59
- };
60
67
  };
61
68
  };
62
69
  NotificationContent: {
63
70
  parts: string[];
64
- baseStyle: ({ alignText, icon, notificationType, }: NotificationContentBaseStyle) => {
71
+ baseStyle: ({ isCentered, notificationHeading, notificationType, showIcon, }: NotificationContentBaseStyle) => {
65
72
  display: string;
66
73
  justifyContent: string;
67
74
  content: {
68
75
  color: string;
69
76
  marginTop: string;
70
77
  paddingStart: string;
71
- width: string;
78
+ pt: string;
79
+ w: string;
80
+ _dark: {
81
+ borderLeftColor: string;
82
+ borderLeftStyle: string;
83
+ borderLeftWidth: string;
84
+ marginTop: string;
85
+ paddingStart: string;
86
+ color: string;
87
+ ml: string;
88
+ };
72
89
  a: {
73
90
  color: string;
74
- _hover: {
91
+ textDecoration: string;
92
+ _dark: {
75
93
  color: string;
94
+ _hover: {
95
+ color: string;
96
+ };
76
97
  };
77
98
  };
78
99
  };
@@ -82,12 +103,32 @@ declare const _default: {
82
103
  parts: string[];
83
104
  baseStyle: ({ icon, isCentered, notificationType, }: NotificationHeadingBaseStyle) => {
84
105
  display: string;
85
- marginBottom: string;
86
- justifyContent: string;
106
+ flexDirection: string;
107
+ m: string;
108
+ mb: string;
109
+ px: string;
110
+ w: string;
111
+ _dark: {
112
+ borderBottomColor: string;
113
+ borderBottomStyle: string;
114
+ borderBottomWidth: string;
115
+ color: string;
116
+ paddingBottom: string;
117
+ };
87
118
  heading: {
88
- marginBottom: string;
89
- marginTop: string;
90
119
  color: string;
120
+ ml: string;
121
+ mt: string;
122
+ _dark: {
123
+ borderLeftColor: string;
124
+ borderLeftStyle: string;
125
+ borderLeftWidth: string;
126
+ paddingLeft: string;
127
+ };
128
+ };
129
+ svg: {
130
+ mx: string;
131
+ mb: string;
91
132
  };
92
133
  };
93
134
  };
@@ -7,6 +7,9 @@ declare const ProgressIndicator: {
7
7
  parts: string[];
8
8
  baseStyle: ({ darkMode, size }: ProgressIndicatorBaseStyle) => {
9
9
  color: string;
10
+ _dark: {
11
+ color: string;
12
+ };
10
13
  circular: {
11
14
  svg: {
12
15
  height: string;
@@ -15,9 +18,15 @@ declare const ProgressIndicator: {
15
18
  circle: {
16
19
  _first: {
17
20
  stroke: string;
21
+ _dark: {
22
+ stroke: string;
23
+ };
18
24
  };
19
25
  _last: {
20
26
  stroke: string;
27
+ _dark: {
28
+ stroke: string;
29
+ };
21
30
  };
22
31
  };
23
32
  };
@@ -31,6 +40,9 @@ declare const ProgressIndicator: {
31
40
  linear: {
32
41
  "> div": {
33
42
  bg: string;
43
+ _dark: {
44
+ bg: string;
45
+ };
34
46
  };
35
47
  flex: number;
36
48
  bg: string;
@@ -38,6 +50,10 @@ declare const ProgressIndicator: {
38
50
  base: string;
39
51
  md: string;
40
52
  };
53
+ _dark: {
54
+ bg: string;
55
+ color: string;
56
+ };
41
57
  };
42
58
  linearContainer: {
43
59
  display: string;
@@ -54,10 +54,49 @@ declare const Radio: {
54
54
  outlineOffset: string;
55
55
  outlineColor: string;
56
56
  zIndex: string;
57
+ _dark: {
58
+ outlineColor: string;
59
+ };
57
60
  };
58
61
  _invalid: {
59
62
  borderColor: string;
60
63
  };
64
+ _dark: {
65
+ borderColor: string;
66
+ backgroundColor: string;
67
+ _checked: {
68
+ borderColor: string;
69
+ _disabled: {
70
+ borderColor: string;
71
+ _before: {
72
+ bg: string;
73
+ };
74
+ };
75
+ _invalid: {
76
+ borderColor: string;
77
+ _before: {
78
+ borderColor: string;
79
+ bg: string;
80
+ };
81
+ };
82
+ };
83
+ _disabled: {
84
+ borderColor: string;
85
+ _before: {
86
+ bg: string;
87
+ };
88
+ };
89
+ _focus: {
90
+ boxShadow: string;
91
+ outlineColor: string;
92
+ };
93
+ _invalid: {
94
+ borderColor: string;
95
+ };
96
+ _before: {
97
+ bg: string;
98
+ };
99
+ };
61
100
  };
62
101
  label: {
63
102
  userSelect: string;
@@ -73,6 +112,14 @@ declare const Radio: {
73
112
  _invalid: {
74
113
  color: string;
75
114
  };
115
+ _dark: {
116
+ _disabled: {
117
+ color: string;
118
+ };
119
+ _invalid: {
120
+ color: string;
121
+ };
122
+ };
76
123
  };
77
124
  helperErrorText: {
78
125
  marginStart: string;
@@ -132,6 +179,22 @@ export declare const RadioWrapper: {
132
179
  borderColor: string;
133
180
  };
134
181
  };
182
+ _dark: {
183
+ span: {
184
+ _first: {
185
+ borderColor: string;
186
+ };
187
+ _checked: {
188
+ borderColor: string;
189
+ };
190
+ _disabled: {
191
+ borderColor: string;
192
+ };
193
+ _invalid: {
194
+ borderColor: string;
195
+ };
196
+ };
197
+ };
135
198
  };
136
199
  };
137
200
  };
@@ -12,12 +12,22 @@ declare const SearchBar: {
12
12
  };
13
13
  select: {
14
14
  flexShrink: string;
15
- marginBottom: string;
15
+ marginBottom: {
16
+ base: string;
17
+ md: string;
18
+ };
16
19
  maxWidth: {
17
20
  base: any;
18
21
  md: string;
19
22
  };
20
23
  textOverflow: string;
24
+ marginRight: {
25
+ base: any;
26
+ md: string;
27
+ };
28
+ _hover: {
29
+ zIndex: string;
30
+ };
21
31
  };
22
32
  };
23
33
  };
@@ -36,6 +36,17 @@ declare const Select: {
36
36
  };
37
37
  _active: {
38
38
  borderColor: string;
39
+ _dark: {
40
+ borderColor: string;
41
+ boxShadow: string;
42
+ outline: string;
43
+ outlineOffset: string;
44
+ outlineColor: string;
45
+ zIndex: string;
46
+ _dark: {
47
+ outlineColor: string;
48
+ };
49
+ };
39
50
  boxShadow: string;
40
51
  outline: string;
41
52
  outlineOffset: string;
@@ -47,12 +58,28 @@ declare const Select: {
47
58
  borderColor: string;
48
59
  color: string;
49
60
  opacity: string;
61
+ _dark: {
62
+ bg: string;
63
+ borderColor: string;
64
+ color: string;
65
+ };
50
66
  };
51
67
  _focus: {
52
68
  "+ .chakra-select__icon-wrapper": {
53
69
  zIndex: string;
54
70
  };
55
71
  borderColor: string;
72
+ _dark: {
73
+ borderColor: string;
74
+ boxShadow: string;
75
+ outline: string;
76
+ outlineOffset: string;
77
+ outlineColor: string;
78
+ zIndex: string;
79
+ _dark: {
80
+ outlineColor: string;
81
+ };
82
+ };
56
83
  boxShadow: string;
57
84
  outline: string;
58
85
  outlineOffset: string;
@@ -63,6 +90,18 @@ declare const Select: {
63
90
  border: string;
64
91
  borderColor: string;
65
92
  boxShadow: string;
93
+ color: string;
94
+ };
95
+ _dark: {
96
+ backgroundColor: string;
97
+ borderColor: string;
98
+ _hover: {
99
+ borderColor: string;
100
+ };
101
+ _invalid: {
102
+ borderColor: string;
103
+ color: string;
104
+ };
66
105
  };
67
106
  };
68
107
  };
@@ -95,8 +95,11 @@ declare const SkeletonLoader: {
95
95
  declare const Skeleton: {
96
96
  baseStyle: {
97
97
  borderRadius: string;
98
- background: string;
98
+ bg: string;
99
99
  animation: string;
100
+ _dark: {
101
+ bg: string;
102
+ };
100
103
  };
101
104
  };
102
105
  export { Skeleton, SkeletonLoader };
@@ -19,6 +19,9 @@ declare const SkipNavigation: {
19
19
  top: string;
20
20
  width: string;
21
21
  };
22
+ _dark: {
23
+ backgroundColor: string;
24
+ };
22
25
  };
23
26
  };
24
27
  };
@@ -1,4 +1,5 @@
1
1
  interface CustomSliderBaseStyle {
2
+ isDarkMode: boolean;
2
3
  isDisabled: boolean;
3
4
  isInvalid: boolean;
4
5
  showBoxes: boolean;
@@ -6,13 +7,16 @@ interface CustomSliderBaseStyle {
6
7
  }
7
8
  declare const CustomSlider: {
8
9
  parts: string[];
9
- baseStyle: ({ isDisabled, isInvalid, showBoxes, showValues, }: CustomSliderBaseStyle) => {
10
+ baseStyle: ({ isDarkMode, isDisabled, isInvalid, showBoxes, showValues, }: CustomSliderBaseStyle) => {
10
11
  container: {
11
12
  display: string;
12
13
  alignItems: string;
13
14
  };
14
15
  leftValue: {
15
16
  color: string;
17
+ _dark: {
18
+ color: string;
19
+ };
16
20
  marginTop: string;
17
21
  marginBottom: string;
18
22
  marginEnd: string;
@@ -22,12 +26,14 @@ declare const CustomSlider: {
22
26
  marginStart: string;
23
27
  marginEnd: string;
24
28
  color: string;
29
+ _dark: {
30
+ color: string;
31
+ };
25
32
  marginTop: string;
26
33
  marginBottom: string;
27
34
  };
28
35
  textInput: {
29
36
  minWidth: string;
30
- color: string;
31
37
  };
32
38
  sliderContainer: {
33
39
  marginStart: string;
@@ -41,6 +47,12 @@ declare const CustomSlider: {
41
47
  _disabled: {
42
48
  bgColor: string;
43
49
  };
50
+ _dark: {
51
+ bgColor: string;
52
+ _disabled: {
53
+ bgColor: string;
54
+ };
55
+ };
44
56
  };
45
57
  thumb: {
46
58
  border: string;
@@ -53,6 +65,13 @@ declare const CustomSlider: {
53
65
  bgColor: string;
54
66
  borderColor: string;
55
67
  };
68
+ _dark: {
69
+ bgColor: string;
70
+ _disabled: {
71
+ bgColor: string;
72
+ borderColor: string;
73
+ };
74
+ };
56
75
  };
57
76
  };
58
77
  };
@@ -9,6 +9,12 @@ declare const StatusBadge: {
9
9
  px: string;
10
10
  textAlign: string;
11
11
  width: string;
12
+ _dark: {
13
+ backgroundColor: string;
14
+ borderLeft: string;
15
+ borderColor: string;
16
+ color: string;
17
+ };
12
18
  };
13
19
  variants: {
14
20
  low: {
@@ -16,9 +22,15 @@ declare const StatusBadge: {
16
22
  };
17
23
  medium: {
18
24
  bg: string;
25
+ _dark: {
26
+ borderColor: string;
27
+ };
19
28
  };
20
29
  high: {
21
30
  bg: string;
31
+ _dark: {
32
+ borderColor: string;
33
+ };
22
34
  };
23
35
  };
24
36
  };
@@ -88,8 +88,14 @@ declare const StructuredContent: {
88
88
  a: {
89
89
  color: string;
90
90
  textDecoration: string;
91
+ _dark: {
92
+ color: string;
93
+ };
91
94
  _hover: {
92
95
  color: string;
96
+ _dark: {
97
+ color: string;
98
+ };
93
99
  };
94
100
  };
95
101
  ul: {
@@ -105,6 +111,11 @@ declare const StructuredContent: {
105
111
  marginStart: string;
106
112
  width: string;
107
113
  };
114
+ _dark: {
115
+ _before: {
116
+ color: string;
117
+ };
118
+ };
108
119
  };
109
120
  margin: string;
110
121
  marginBottom: string;
@@ -138,6 +149,12 @@ declare const StructuredContent: {
138
149
  borderColor: string;
139
150
  margin: string;
140
151
  padding: string;
152
+ _dark: {
153
+ borderColor: string;
154
+ };
155
+ };
156
+ _dark: {
157
+ borderColor: string;
141
158
  };
142
159
  };
143
160
  dl: {
@@ -161,6 +178,10 @@ declare const StructuredContent: {
161
178
  paddingEnd: {
162
179
  md: string;
163
180
  };
181
+ _dark: {
182
+ borderColor: string;
183
+ color: string;
184
+ };
164
185
  };
165
186
  dd: {
166
187
  margin: string;
@@ -175,6 +196,11 @@ declare const StructuredContent: {
175
196
  paddingTop: {
176
197
  md: string;
177
198
  };
199
+ _dark: {
200
+ borderColor: {
201
+ md: string;
202
+ };
203
+ };
178
204
  };
179
205
  table: {
180
206
  width: string;
@@ -188,11 +214,17 @@ declare const StructuredContent: {
188
214
  md: string;
189
215
  };
190
216
  };
217
+ _dark: {
218
+ color: string;
219
+ };
191
220
  border: string;
192
221
  borderBottom: string;
193
222
  borderColor: {
194
223
  base: string;
195
224
  md: string;
225
+ } | {
226
+ base: string;
227
+ md: string;
196
228
  };
197
229
  display: {
198
230
  base: string;
@@ -227,6 +259,9 @@ declare const StructuredContent: {
227
259
  borderColor: {
228
260
  base: string;
229
261
  md: string;
262
+ } | {
263
+ base: string;
264
+ md: string;
230
265
  };
231
266
  };
232
267
  "> span": {
@@ -238,13 +273,22 @@ declare const StructuredContent: {
238
273
  paddingEnd: string;
239
274
  paddingTop: {
240
275
  base: string;
241
- md: string;
242
- };
276
+ md: string; /** The following styles are meant to target HTML elements that are
277
+ * not rendered from the Reservoir DS. Typically, these HTML elements
278
+ * are added from an API response.
279
+ */
280
+ }; /** The following styles are meant to target HTML elements that are
281
+ * not rendered from the Reservoir DS. Typically, these HTML elements
282
+ * are added from an API response.
283
+ */
243
284
  _first: {
244
285
  bg: string;
245
286
  color: string;
246
287
  fontWeight: string;
247
288
  paddingStart: string;
289
+ _dark: {
290
+ color: string;
291
+ };
248
292
  };
249
293
  };
250
294
  textAlign: string;
@@ -266,6 +310,9 @@ declare const StructuredContent: {
266
310
  borderColor: {
267
311
  base: string;
268
312
  md: string;
313
+ } | {
314
+ base: string;
315
+ md: string;
269
316
  };
270
317
  };
271
318
  border: string;
@@ -273,6 +320,9 @@ declare const StructuredContent: {
273
320
  borderColor: {
274
321
  base: string;
275
322
  md: string;
323
+ } | {
324
+ base: string;
325
+ md: string;
276
326
  };
277
327
  display: {
278
328
  base: string;
@@ -307,13 +357,22 @@ declare const StructuredContent: {
307
357
  paddingEnd: string;
308
358
  paddingTop: {
309
359
  base: string;
310
- md: string;
311
- };
360
+ md: string; /** The following styles are meant to target HTML elements that are
361
+ * not rendered from the Reservoir DS. Typically, these HTML elements
362
+ * are added from an API response.
363
+ */
364
+ }; /** The following styles are meant to target HTML elements that are
365
+ * not rendered from the Reservoir DS. Typically, these HTML elements
366
+ * are added from an API response.
367
+ */
312
368
  _first: {
313
369
  bg: string;
314
370
  color: string;
315
371
  fontWeight: string;
316
372
  paddingStart: string;
373
+ _dark: {
374
+ color: string;
375
+ };
317
376
  };
318
377
  };
319
378
  textAlign: string;