@nypl/design-system-react-components 1.0.1 → 1.0.3

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 (129) hide show
  1. package/CHANGELOG.md +1452 -3
  2. package/README.md +389 -3
  3. package/dist/__tests__/fileMock.d.ts +4 -0
  4. package/dist/__tests__/setup.d.ts +2 -0
  5. package/{lib/stories/0-Welcome.stories.d.ts → dist/__tests__/utils/utils.test.d.ts} +1 -1
  6. package/dist/components/Accordion/Accordion.d.ts +21 -0
  7. package/dist/components/Autosuggest/Autosuggest.stories.d.ts +4 -0
  8. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  9. package/dist/components/Button/Button.d.ts +25 -0
  10. package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
  11. package/dist/components/Card/Card.d.ts +51 -0
  12. package/dist/components/Checkbox/Checkbox.d.ts +47 -0
  13. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +49 -0
  14. package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +29 -0
  15. package/dist/components/DatePicker/DatePicker.d.ts +81 -0
  16. package/dist/components/Fieldset/Fieldset.d.ts +22 -0
  17. package/dist/components/Form/Form.d.ts +29 -0
  18. package/dist/components/Grid/SimpleGrid.d.ts +17 -0
  19. package/dist/components/Heading/Heading.d.ts +27 -0
  20. package/dist/components/HelperErrorText/HelperErrorText.d.ts +29 -0
  21. package/dist/components/Hero/Hero.d.ts +40 -0
  22. package/dist/components/HorizontalRule/HorizontalRule.d.ts +11 -0
  23. package/dist/components/Icons/Icon.d.ts +37 -0
  24. package/dist/components/Icons/IconSvgs.d.ts +33 -0
  25. package/dist/components/Image/Image.d.ts +61 -0
  26. package/dist/components/Label/Label.d.ts +20 -0
  27. package/dist/components/Link/Link.d.ts +20 -0
  28. package/dist/components/List/List.d.ts +35 -0
  29. package/dist/components/Logo/Logo.d.ts +26 -0
  30. package/dist/components/Logo/LogoSvgs.d.ts +48 -0
  31. package/dist/components/Modal/Modal.d.ts +33 -0
  32. package/dist/components/Notification/Notification.d.ts +50 -0
  33. package/dist/components/Pagination/Pagination.d.ts +27 -0
  34. package/dist/components/Placeholder/Placeholder.d.ts +10 -0
  35. package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +30 -0
  36. package/dist/components/Radio/Radio.d.ts +43 -0
  37. package/dist/components/RadioGroup/RadioGroup.d.ts +51 -0
  38. package/dist/components/SearchBar/SearchBar.d.ts +61 -0
  39. package/dist/components/Select/Select.d.ts +57 -0
  40. package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +39 -0
  41. package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
  42. package/dist/components/Slider/Slider.d.ts +59 -0
  43. package/dist/components/StatusBadge/StatusBadge.d.ts +16 -0
  44. package/dist/components/StructuredContent/StructuredContent.d.ts +28 -0
  45. package/dist/components/StyleGuide/ColorCard.d.ts +12 -0
  46. package/dist/components/Table/Table.d.ts +30 -0
  47. package/dist/components/Tabs/Tabs.d.ts +26 -0
  48. package/dist/components/Template/Template.d.ts +126 -0
  49. package/dist/components/Text/Text.d.ts +16 -0
  50. package/dist/components/TextInput/TextInput.d.ts +79 -0
  51. package/dist/components/Toggle/Toggle.d.ts +42 -0
  52. package/dist/components/VideoPlayer/VideoPlayer.d.ts +38 -0
  53. package/dist/design-system-react-components.cjs.development.js +11648 -0
  54. package/dist/design-system-react-components.cjs.development.js.map +1 -0
  55. package/dist/design-system-react-components.cjs.production.min.js +2 -0
  56. package/dist/design-system-react-components.cjs.production.min.js.map +1 -0
  57. package/dist/design-system-react-components.esm.js +11493 -0
  58. package/dist/design-system-react-components.esm.js.map +1 -0
  59. package/dist/helpers/types.d.ts +1 -0
  60. package/dist/hooks/__tests__/useCarouselStyles.test.d.ts +1 -0
  61. package/dist/hooks/useCarouselStyles.d.ts +17 -0
  62. package/dist/hooks/useNYPLTheme.d.ts +66 -0
  63. package/dist/hooks/useWindowSize.d.ts +10 -0
  64. package/dist/index.d.ts +48 -0
  65. package/dist/index.js +8 -0
  66. package/dist/resources.scss +386 -0
  67. package/dist/styles.css +3 -0
  68. package/dist/theme/components/accordion.d.ts +20 -0
  69. package/dist/theme/components/breadcrumb.d.ts +105 -0
  70. package/dist/theme/components/button.d.ts +120 -0
  71. package/dist/theme/components/buttonGroup.d.ts +11 -0
  72. package/dist/theme/components/card.d.ts +381 -0
  73. package/dist/theme/components/checkbox.d.ts +95 -0
  74. package/dist/theme/components/checkboxGroup.d.ts +14 -0
  75. package/dist/theme/components/componentWrapper.d.ts +12 -0
  76. package/dist/theme/components/customTable.d.ts +624 -0
  77. package/dist/theme/components/datePicker.d.ts +16 -0
  78. package/dist/theme/components/fieldset.d.ts +20 -0
  79. package/dist/theme/components/global.d.ts +73 -0
  80. package/dist/theme/components/globalMixins.d.ts +23 -0
  81. package/dist/theme/components/heading.d.ts +160 -0
  82. package/dist/theme/components/helperErrorText.d.ts +12 -0
  83. package/dist/theme/components/hero.d.ts +499 -0
  84. package/dist/theme/components/horizontalRule.d.ts +15 -0
  85. package/dist/theme/components/icon.d.ts +47755 -0
  86. package/dist/theme/components/image.d.ts +590 -0
  87. package/dist/theme/components/label.d.ts +18 -0
  88. package/dist/theme/components/link.d.ts +62 -0
  89. package/dist/theme/components/list.d.ts +182 -0
  90. package/dist/theme/components/logo.d.ts +477 -0
  91. package/dist/theme/components/notification.d.ts +95 -0
  92. package/dist/theme/components/pagination.d.ts +16 -0
  93. package/dist/theme/components/progressIndicator.d.ts +52 -0
  94. package/dist/theme/components/radio.d.ts +107 -0
  95. package/dist/theme/components/radioGroup.d.ts +14 -0
  96. package/dist/theme/components/searchBar.d.ts +18 -0
  97. package/dist/theme/components/select.d.ts +82 -0
  98. package/dist/theme/components/skeletonLoader.d.ts +102 -0
  99. package/dist/theme/components/skipNavigation.d.ts +25 -0
  100. package/dist/theme/components/slider.d.ts +59 -0
  101. package/dist/theme/components/statusBadge.d.ts +25 -0
  102. package/dist/theme/components/structuredContent.d.ts +326 -0
  103. package/dist/theme/components/tabs.d.ts +136 -0
  104. package/dist/theme/components/template.d.ts +108 -0
  105. package/dist/theme/components/text.d.ts +26 -0
  106. package/dist/theme/components/textInput.d.ts +124 -0
  107. package/dist/theme/components/toggle.d.ts +93 -0
  108. package/dist/theme/components/videoPlayer.d.ts +40 -0
  109. package/dist/theme/foundations/breakpoints.d.ts +23 -0
  110. package/dist/theme/foundations/colors.d.ts +3 -0
  111. package/dist/theme/foundations/global.d.ts +58 -0
  112. package/dist/theme/foundations/radii.d.ts +6 -0
  113. package/dist/theme/foundations/shadows.d.ts +4 -0
  114. package/dist/theme/foundations/spacing.d.ts +82 -0
  115. package/dist/theme/foundations/typography.d.ts +8 -0
  116. package/dist/theme/index.d.ts +20 -0
  117. package/dist/theme/provider.d.ts +3 -0
  118. package/dist/theme/types.d.ts +1 -0
  119. package/dist/utils/componentCategories.d.ts +1 -0
  120. package/dist/utils/interfaces.d.ts +5 -0
  121. package/dist/utils/utils.d.ts +31 -0
  122. package/package.json +132 -20
  123. package/lib/components/Button/Button.d.ts +0 -17
  124. package/lib/components/Button/Button.js +0 -42
  125. package/lib/index.d.ts +0 -1
  126. package/lib/index.js +0 -6
  127. package/lib/stories/0-Welcome.stories.js +0 -19
  128. package/lib/stories/1-Button.stories.d.ts +0 -6
  129. package/lib/stories/1-Button.stories.js +0 -20
@@ -0,0 +1,624 @@
1
+ interface BaseStyleProps {
2
+ columnHeadersBackgroundColor?: string;
3
+ columnHeadersTextColor?: string;
4
+ showRowDividers?: boolean;
5
+ useRowHeaders?: boolean;
6
+ }
7
+ export declare const baseTRStyles: (columnHeadersBackgroundColor?: string, showRowDividers?: boolean, useRowHeaders?: boolean) => {
8
+ borderBottom: {
9
+ base: string;
10
+ md: number;
11
+ };
12
+ borderColor: string;
13
+ display: {
14
+ base: string;
15
+ md: string;
16
+ };
17
+ paddingBottom: number | {
18
+ base: string;
19
+ md: string;
20
+ };
21
+ paddingTop: number | {
22
+ base: string;
23
+ md: string;
24
+ };
25
+ _first: {
26
+ borderTop: {
27
+ base: string;
28
+ md: string;
29
+ };
30
+ borderColor: string;
31
+ };
32
+ };
33
+ export declare const baseCellStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, showRowDividers?: boolean, useRowHeaders?: boolean) => {
34
+ border: string;
35
+ borderBottom: string;
36
+ borderColor: {
37
+ base: string;
38
+ md: string;
39
+ };
40
+ display: {
41
+ base: string;
42
+ md: string;
43
+ };
44
+ fontSize: {
45
+ base: string;
46
+ lg: string;
47
+ };
48
+ gap: string;
49
+ letterSpacing: string;
50
+ lineHeight: number;
51
+ paddingBottom: {
52
+ base: string;
53
+ md: string;
54
+ };
55
+ paddingLeft: number;
56
+ paddingRight: {
57
+ base: string;
58
+ md: string;
59
+ };
60
+ paddingTop: {
61
+ base: string;
62
+ md: string;
63
+ };
64
+ _first: {
65
+ paddingLeft: {
66
+ base: string;
67
+ md: string;
68
+ };
69
+ borderBottom: string | {
70
+ base: string;
71
+ md: string;
72
+ };
73
+ };
74
+ _last: {
75
+ paddingRight: {
76
+ base: string;
77
+ md: string;
78
+ };
79
+ borderBottom: string;
80
+ borderColor: {
81
+ base: string;
82
+ md: string;
83
+ };
84
+ };
85
+ "> span": {
86
+ flexBasis: string;
87
+ paddingBottom: {
88
+ base: string;
89
+ md: string;
90
+ };
91
+ paddingRight: string;
92
+ paddingTop: {
93
+ base: string;
94
+ md: string;
95
+ };
96
+ _first: {
97
+ bg: string;
98
+ color: string;
99
+ fontWeight: string;
100
+ paddingLeft: string;
101
+ };
102
+ };
103
+ };
104
+ export declare const baseTHStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, showRowDividers?: boolean, useRowHeaders?: boolean) => {
105
+ color: string;
106
+ fontWeight: string;
107
+ textTransform: string;
108
+ _first: {
109
+ paddingLeft: {
110
+ base: string;
111
+ md: string;
112
+ };
113
+ };
114
+ border: string;
115
+ borderBottom: string;
116
+ borderColor: {
117
+ base: string;
118
+ md: string;
119
+ };
120
+ display: {
121
+ base: string;
122
+ md: string;
123
+ };
124
+ fontSize: {
125
+ base: string;
126
+ lg: string;
127
+ };
128
+ gap: string;
129
+ letterSpacing: string;
130
+ lineHeight: number;
131
+ paddingBottom: {
132
+ base: string;
133
+ md: string;
134
+ };
135
+ paddingLeft: number;
136
+ paddingRight: {
137
+ base: string;
138
+ md: string;
139
+ };
140
+ paddingTop: {
141
+ base: string;
142
+ md: string;
143
+ };
144
+ _last: {
145
+ paddingRight: {
146
+ base: string;
147
+ md: string;
148
+ };
149
+ borderBottom: string;
150
+ borderColor: {
151
+ base: string;
152
+ md: string;
153
+ };
154
+ };
155
+ "> span": {
156
+ flexBasis: string;
157
+ paddingBottom: {
158
+ base: string;
159
+ md: string;
160
+ };
161
+ paddingRight: string;
162
+ paddingTop: {
163
+ base: string;
164
+ md: string;
165
+ };
166
+ _first: {
167
+ bg: string;
168
+ color: string;
169
+ fontWeight: string;
170
+ paddingLeft: string;
171
+ };
172
+ };
173
+ };
174
+ export declare const baseTDStyles: (columnHeadersBackgroundColor?: string, columnHeadersTextColor?: string, showRowDividers?: boolean, useRowHeaders?: boolean) => {
175
+ _first: {
176
+ paddingLeft: {
177
+ base: string;
178
+ md: string;
179
+ };
180
+ };
181
+ _last: {
182
+ borderBottom: {
183
+ base: number;
184
+ md: string;
185
+ };
186
+ borderColor: {
187
+ base: string;
188
+ md: string;
189
+ };
190
+ };
191
+ border: string;
192
+ borderBottom: string;
193
+ borderColor: {
194
+ base: string;
195
+ md: string;
196
+ };
197
+ display: {
198
+ base: string;
199
+ md: string;
200
+ };
201
+ fontSize: {
202
+ base: string;
203
+ lg: string;
204
+ };
205
+ gap: string;
206
+ letterSpacing: string;
207
+ lineHeight: number;
208
+ paddingBottom: {
209
+ base: string;
210
+ md: string;
211
+ };
212
+ paddingLeft: number;
213
+ paddingRight: {
214
+ base: string;
215
+ md: string;
216
+ };
217
+ paddingTop: {
218
+ base: string;
219
+ md: string;
220
+ };
221
+ "> span": {
222
+ flexBasis: string;
223
+ paddingBottom: {
224
+ base: string;
225
+ md: string;
226
+ };
227
+ paddingRight: string;
228
+ paddingTop: {
229
+ base: string;
230
+ md: string;
231
+ };
232
+ _first: {
233
+ bg: string;
234
+ color: string;
235
+ fontWeight: string;
236
+ paddingLeft: string;
237
+ };
238
+ };
239
+ };
240
+ export declare const baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTextColor, showRowDividers, useRowHeaders, }: BaseStyleProps) => {
241
+ tbody: {
242
+ th: {
243
+ color: string;
244
+ backgroundColor: {
245
+ base: string;
246
+ md: string;
247
+ };
248
+ };
249
+ };
250
+ thead: {
251
+ display: {
252
+ base: string;
253
+ md: string;
254
+ };
255
+ };
256
+ tr: {
257
+ borderBottom: {
258
+ base: string;
259
+ md: number;
260
+ };
261
+ borderColor: string;
262
+ display: {
263
+ base: string;
264
+ md: string;
265
+ };
266
+ paddingBottom: number | {
267
+ base: string;
268
+ md: string;
269
+ };
270
+ paddingTop: number | {
271
+ base: string;
272
+ md: string;
273
+ };
274
+ _first: {
275
+ borderTop: {
276
+ base: string;
277
+ md: string;
278
+ };
279
+ borderColor: string;
280
+ };
281
+ };
282
+ th: {
283
+ color: string;
284
+ fontWeight: string;
285
+ textTransform: string;
286
+ _first: {
287
+ paddingLeft: {
288
+ base: string;
289
+ md: string;
290
+ };
291
+ };
292
+ border: string;
293
+ borderBottom: string;
294
+ borderColor: {
295
+ base: string;
296
+ md: string;
297
+ };
298
+ display: {
299
+ base: string;
300
+ md: string;
301
+ };
302
+ fontSize: {
303
+ base: string;
304
+ lg: string;
305
+ };
306
+ gap: string;
307
+ letterSpacing: string;
308
+ lineHeight: number;
309
+ paddingBottom: {
310
+ base: string;
311
+ md: string;
312
+ };
313
+ paddingLeft: number;
314
+ paddingRight: {
315
+ base: string;
316
+ md: string;
317
+ };
318
+ paddingTop: {
319
+ base: string;
320
+ md: string;
321
+ };
322
+ _last: {
323
+ paddingRight: {
324
+ base: string;
325
+ md: string;
326
+ };
327
+ borderBottom: string;
328
+ borderColor: {
329
+ base: string;
330
+ md: string;
331
+ };
332
+ };
333
+ "> span": {
334
+ flexBasis: string;
335
+ paddingBottom: {
336
+ base: string;
337
+ md: string;
338
+ };
339
+ paddingRight: string;
340
+ paddingTop: {
341
+ base: string;
342
+ md: string;
343
+ };
344
+ _first: {
345
+ bg: string;
346
+ color: string;
347
+ fontWeight: string;
348
+ paddingLeft: string;
349
+ };
350
+ };
351
+ };
352
+ td: {
353
+ _first: {
354
+ paddingLeft: {
355
+ base: string;
356
+ md: string;
357
+ };
358
+ };
359
+ _last: {
360
+ borderBottom: {
361
+ base: number;
362
+ md: string;
363
+ };
364
+ borderColor: {
365
+ base: string;
366
+ md: string;
367
+ };
368
+ };
369
+ border: string;
370
+ borderBottom: string;
371
+ borderColor: {
372
+ base: string;
373
+ md: string;
374
+ };
375
+ display: {
376
+ base: string;
377
+ md: string;
378
+ };
379
+ fontSize: {
380
+ base: string;
381
+ lg: string;
382
+ };
383
+ gap: string;
384
+ letterSpacing: string;
385
+ lineHeight: number;
386
+ paddingBottom: {
387
+ base: string;
388
+ md: string;
389
+ };
390
+ paddingLeft: number;
391
+ paddingRight: {
392
+ base: string;
393
+ md: string;
394
+ };
395
+ paddingTop: {
396
+ base: string;
397
+ md: string;
398
+ };
399
+ "> span": {
400
+ flexBasis: string;
401
+ paddingBottom: {
402
+ base: string;
403
+ md: string;
404
+ };
405
+ paddingRight: string;
406
+ paddingTop: {
407
+ base: string;
408
+ md: string;
409
+ };
410
+ _first: {
411
+ bg: string;
412
+ color: string;
413
+ fontWeight: string;
414
+ paddingLeft: string;
415
+ };
416
+ };
417
+ };
418
+ caption: {
419
+ captionSide: string;
420
+ color: string;
421
+ fontSize: string;
422
+ fontWeight: string;
423
+ marginBottom: string;
424
+ marginLeft: string;
425
+ marginRight: string;
426
+ marginTop: string;
427
+ padding: string;
428
+ textAlign: string;
429
+ };
430
+ };
431
+ declare const CustomTable: {
432
+ baseStyle: ({ columnHeadersBackgroundColor, columnHeadersTextColor, showRowDividers, useRowHeaders, }: BaseStyleProps) => {
433
+ tbody: {
434
+ th: {
435
+ color: string;
436
+ backgroundColor: {
437
+ base: string;
438
+ md: string;
439
+ };
440
+ };
441
+ };
442
+ thead: {
443
+ display: {
444
+ base: string;
445
+ md: string;
446
+ };
447
+ };
448
+ tr: {
449
+ borderBottom: {
450
+ base: string;
451
+ md: number;
452
+ };
453
+ borderColor: string;
454
+ display: {
455
+ base: string;
456
+ md: string;
457
+ };
458
+ paddingBottom: number | {
459
+ base: string;
460
+ md: string;
461
+ };
462
+ paddingTop: number | {
463
+ base: string;
464
+ md: string;
465
+ };
466
+ _first: {
467
+ borderTop: {
468
+ base: string;
469
+ md: string;
470
+ };
471
+ borderColor: string;
472
+ };
473
+ };
474
+ th: {
475
+ color: string;
476
+ fontWeight: string;
477
+ textTransform: string;
478
+ _first: {
479
+ paddingLeft: {
480
+ base: string;
481
+ md: string;
482
+ };
483
+ };
484
+ border: string;
485
+ borderBottom: string;
486
+ borderColor: {
487
+ base: string;
488
+ md: string;
489
+ };
490
+ display: {
491
+ base: string;
492
+ md: string;
493
+ };
494
+ fontSize: {
495
+ base: string;
496
+ lg: string;
497
+ };
498
+ gap: string;
499
+ letterSpacing: string;
500
+ lineHeight: number;
501
+ paddingBottom: {
502
+ base: string;
503
+ md: string;
504
+ };
505
+ paddingLeft: number;
506
+ paddingRight: {
507
+ base: string;
508
+ md: string;
509
+ };
510
+ paddingTop: {
511
+ base: string;
512
+ md: string;
513
+ };
514
+ _last: {
515
+ paddingRight: {
516
+ base: string;
517
+ md: string;
518
+ };
519
+ borderBottom: string;
520
+ borderColor: {
521
+ base: string;
522
+ md: string;
523
+ };
524
+ };
525
+ "> span": {
526
+ flexBasis: string;
527
+ paddingBottom: {
528
+ base: string;
529
+ md: string;
530
+ };
531
+ paddingRight: string;
532
+ paddingTop: {
533
+ base: string;
534
+ md: string;
535
+ };
536
+ _first: {
537
+ bg: string;
538
+ color: string;
539
+ fontWeight: string;
540
+ paddingLeft: string;
541
+ };
542
+ };
543
+ };
544
+ td: {
545
+ _first: {
546
+ paddingLeft: {
547
+ base: string;
548
+ md: string;
549
+ };
550
+ };
551
+ _last: {
552
+ borderBottom: {
553
+ base: number;
554
+ md: string;
555
+ };
556
+ borderColor: {
557
+ base: string;
558
+ md: string;
559
+ };
560
+ };
561
+ border: string;
562
+ borderBottom: string;
563
+ borderColor: {
564
+ base: string;
565
+ md: string;
566
+ };
567
+ display: {
568
+ base: string;
569
+ md: string;
570
+ };
571
+ fontSize: {
572
+ base: string;
573
+ lg: string;
574
+ };
575
+ gap: string;
576
+ letterSpacing: string;
577
+ lineHeight: number;
578
+ paddingBottom: {
579
+ base: string;
580
+ md: string;
581
+ };
582
+ paddingLeft: number;
583
+ paddingRight: {
584
+ base: string;
585
+ md: string;
586
+ };
587
+ paddingTop: {
588
+ base: string;
589
+ md: string;
590
+ };
591
+ "> span": {
592
+ flexBasis: string;
593
+ paddingBottom: {
594
+ base: string;
595
+ md: string;
596
+ };
597
+ paddingRight: string;
598
+ paddingTop: {
599
+ base: string;
600
+ md: string;
601
+ };
602
+ _first: {
603
+ bg: string;
604
+ color: string;
605
+ fontWeight: string;
606
+ paddingLeft: string;
607
+ };
608
+ };
609
+ };
610
+ caption: {
611
+ captionSide: string;
612
+ color: string;
613
+ fontSize: string;
614
+ fontWeight: string;
615
+ marginBottom: string;
616
+ marginLeft: string;
617
+ marginRight: string;
618
+ marginTop: string;
619
+ padding: string;
620
+ textAlign: string;
621
+ };
622
+ };
623
+ };
624
+ export default CustomTable;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Note: these styles are only used when the
3
+ * DatePicker is in "date range" mode.
4
+ */
5
+ declare const DatePicker: {
6
+ parts: string[];
7
+ baseStyle: {
8
+ subLabels: {
9
+ label: {
10
+ fontSize: string;
11
+ marginBottom: string;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default DatePicker;
@@ -0,0 +1,20 @@
1
+ interface FieldSetProps {
2
+ isLegendHidden?: boolean;
3
+ }
4
+ declare const Fieldset: {
5
+ baseStyle: ({ isLegendHidden }: FieldSetProps) => {
6
+ border: number;
7
+ padding: number;
8
+ legend: {
9
+ display: string;
10
+ fontSize: string;
11
+ fontWeight: string;
12
+ marginBottom: string;
13
+ width: string;
14
+ span: {
15
+ fontWeight: string;
16
+ };
17
+ };
18
+ };
19
+ };
20
+ export default Fieldset;
@@ -0,0 +1,73 @@
1
+ /** Export "mixin" styles. */
2
+ export { screenreaderOnly, wrapperStyles } from "./globalMixins";
3
+ /** Reusable component styles. */
4
+ declare const activeFocus: (darkMode?: boolean) => {
5
+ boxShadow: string;
6
+ outline: string;
7
+ outlineOffset: string;
8
+ outlineColor: string;
9
+ zIndex: string;
10
+ };
11
+ declare const checkboxRadioLabelStyles: {
12
+ userSelect: string;
13
+ fontWeight: string;
14
+ marginBottom: string;
15
+ marginLeft: string;
16
+ width: string;
17
+ _disabled: {
18
+ color: string;
19
+ opacity: number;
20
+ fontStyle: string;
21
+ };
22
+ _invalid: {
23
+ color: string;
24
+ };
25
+ };
26
+ declare const checkboxRadioControlSize: {
27
+ h: string;
28
+ w: string;
29
+ };
30
+ declare const checkboxRadioHelperErrorTextStyle: {
31
+ marginLeft: string;
32
+ _disabled: {
33
+ color: string;
34
+ fontStyle: string;
35
+ };
36
+ };
37
+ declare const checkboxRadioGroupStyles: (isFullWidth?: boolean) => {
38
+ helperErrorText: {
39
+ marginTop: string;
40
+ };
41
+ label: {
42
+ width: string;
43
+ };
44
+ };
45
+ declare const labelLegendText: {
46
+ display: string;
47
+ fontSize: string;
48
+ fontWeight: string;
49
+ marginBottom: string;
50
+ width: string;
51
+ span: {
52
+ fontWeight: string;
53
+ };
54
+ };
55
+ declare const selectTextInputDisabledStyles: {
56
+ bg: string;
57
+ borderColor: string;
58
+ color: string;
59
+ opacity: string;
60
+ };
61
+ declare const selectTextInputFocusStyles: {
62
+ borderColor: string;
63
+ boxShadow: string;
64
+ outline: string;
65
+ outlineOffset: string;
66
+ outlineColor: string;
67
+ zIndex: string;
68
+ };
69
+ declare const textMargin: {
70
+ margin: string;
71
+ marginBottom: string;
72
+ };
73
+ export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioLabelStyles, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };