@nypl/design-system-react-components 3.4.1 → 3.4.3-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 (26) hide show
  1. package/dist/design-system-react-components.cjs +52 -52
  2. package/dist/design-system-react-components.js +12376 -11594
  3. package/dist/src/components/Heading/Heading.d.ts +1 -1
  4. package/dist/src/components/Icons/IconSvgs.d.ts +2 -0
  5. package/dist/src/components/Icons/iconVariables.d.ts +1 -1
  6. package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +1 -1
  7. package/dist/src/theme/components/customTable.d.ts +63 -71
  8. package/dist/src/theme/components/header.d.ts +100 -0
  9. package/dist/src/theme/components/headerLogin.d.ts +333 -0
  10. package/dist/src/theme/components/headerLoginButton.d.ts +72 -0
  11. package/dist/src/theme/components/headerLowerNav.d.ts +78 -0
  12. package/dist/src/theme/components/headerMobileIconNav.d.ts +28 -0
  13. package/dist/src/theme/components/headerMobileNav.d.ts +92 -0
  14. package/dist/src/theme/components/headerMobileNavButton.d.ts +36 -0
  15. package/dist/src/theme/components/headerSearchButton.d.ts +85 -0
  16. package/dist/src/theme/components/headerSearchForm.d.ts +185 -0
  17. package/dist/src/theme/components/headerSitewideAlerts.d.ts +43 -0
  18. package/dist/src/theme/components/headerUpperNav.d.ts +60 -0
  19. package/dist/src/theme/components/heading.d.ts +49 -1
  20. package/dist/src/theme/components/icon.d.ts +56 -0
  21. package/dist/src/theme/components/link.d.ts +1 -0
  22. package/dist/src/theme/components/newsletterSignup.d.ts +1 -1
  23. package/dist/src/theme/components/slider.d.ts +3 -3
  24. package/dist/src/theme/components/structuredContent.d.ts +34 -17
  25. package/dist/src/theme/foundations/breakpoints.d.ts +6 -0
  26. package/package.json +10 -9
@@ -0,0 +1,85 @@
1
+ declare const HeaderSearchButton: {
2
+ baseStyle: ({ isOpen }: {
3
+ isOpen: any;
4
+ }) => {
5
+ alignItems: string;
6
+ borderRadius: string;
7
+ backgroundColor: string;
8
+ color: string;
9
+ display: string;
10
+ fontFamily: string;
11
+ fontSize: string;
12
+ fontWeight: string;
13
+ justifyContent: string;
14
+ minHeight: {
15
+ mh: string;
16
+ };
17
+ minWidth: {
18
+ mh: string;
19
+ };
20
+ textDecoration: string;
21
+ _dark: {
22
+ bgColor: string;
23
+ color: string;
24
+ };
25
+ span: {
26
+ alignItems: string;
27
+ borderBottom: {
28
+ mh: string;
29
+ };
30
+ display: string;
31
+ _dark: {
32
+ borderBottom: string | {
33
+ mh: string;
34
+ };
35
+ borderColor: {
36
+ mh: string;
37
+ };
38
+ };
39
+ };
40
+ svg: {
41
+ marginLeft: {
42
+ base: string;
43
+ mh: string;
44
+ };
45
+ fill: {
46
+ base: string;
47
+ mh: string;
48
+ };
49
+ _dark: {
50
+ fill: {
51
+ base: string;
52
+ mh: string;
53
+ };
54
+ };
55
+ };
56
+ _hover: {
57
+ backgroundColor: string;
58
+ color: string;
59
+ textDecoration: string;
60
+ svg: {
61
+ fill: {
62
+ base: string;
63
+ mh: string;
64
+ };
65
+ };
66
+ _dark: {
67
+ color: string;
68
+ svg: {
69
+ fill: {
70
+ base: string;
71
+ mh: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ _focus: {
77
+ borderRadius: string;
78
+ outlineColor: string;
79
+ outlineOffset: string;
80
+ outlineStyle: string;
81
+ outlineWidth: string;
82
+ };
83
+ };
84
+ };
85
+ export default HeaderSearchButton;
@@ -0,0 +1,185 @@
1
+ declare const HeaderSearchForm: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ color: string;
5
+ backgroundColor: string;
6
+ left: string;
7
+ minHeight: {
8
+ base: string;
9
+ mh: string;
10
+ };
11
+ position: string;
12
+ whiteSpace: string;
13
+ width: string;
14
+ zIndex: string;
15
+ svg: {
16
+ color: string;
17
+ fill: string;
18
+ marginTop: string;
19
+ };
20
+ form: {
21
+ margin: {
22
+ mh: string;
23
+ };
24
+ maxWidth: {
25
+ mh: string;
26
+ };
27
+ whiteSpace: string;
28
+ "> div": {
29
+ margin: string;
30
+ marginLeft: {
31
+ mh: string;
32
+ lh: string;
33
+ };
34
+ marginRight: {
35
+ mh: string;
36
+ };
37
+ };
38
+ };
39
+ "#radio-group-search-type": {
40
+ margin: {
41
+ base: string;
42
+ mh: string;
43
+ };
44
+ };
45
+ textInput: {
46
+ label: {
47
+ color: string;
48
+ fontSize: {
49
+ base: string;
50
+ mh: string;
51
+ };
52
+ };
53
+ input: {
54
+ borderRadius: {
55
+ mh: string;
56
+ };
57
+ color: string;
58
+ lineHeight: string;
59
+ minHeight: {
60
+ base: string;
61
+ mh: string;
62
+ };
63
+ paddingLeft: {
64
+ base: string;
65
+ mh: string;
66
+ };
67
+ _placeholder: {
68
+ fontSize: {
69
+ base: string;
70
+ };
71
+ fontStyle: string;
72
+ };
73
+ _focus: {
74
+ borderRadius: string;
75
+ outlineColor: string;
76
+ outlineOffset: string;
77
+ outlineStyle: string;
78
+ outlineWidth: string;
79
+ };
80
+ _hover: {
81
+ borderRadius: string;
82
+ outlineColor: string;
83
+ outlineOffset: string;
84
+ outlineStyle: string;
85
+ outlineWidth: string;
86
+ };
87
+ _dark: {
88
+ color: string;
89
+ };
90
+ };
91
+ };
92
+ searchBtn: {
93
+ alignSelf: string;
94
+ backgroundColor: string;
95
+ borderColor: string;
96
+ borderRadius: string;
97
+ borderWidth: string;
98
+ height: {
99
+ base: string;
100
+ mh: string;
101
+ };
102
+ marginTop: string;
103
+ marginEnd: string;
104
+ maxHeight: string;
105
+ svg: {
106
+ marginTop: string;
107
+ };
108
+ width: {
109
+ base: string;
110
+ mh: string;
111
+ };
112
+ _focus: {
113
+ borderRadius: string;
114
+ outlineColor: string;
115
+ outlineOffset: string;
116
+ outlineStyle: string;
117
+ outlineWidth: string;
118
+ };
119
+ _hover: {
120
+ borderRadius: string;
121
+ outlineColor: string;
122
+ outlineOffset: string;
123
+ outlineStyle: string;
124
+ outlineWidth: string;
125
+ backgroundColor: string;
126
+ };
127
+ };
128
+ radio: {
129
+ backgroundColor: string;
130
+ border: string;
131
+ _focus: {
132
+ borderRadius: string;
133
+ outlineColor: string;
134
+ outlineOffset: string;
135
+ outlineStyle: string;
136
+ outlineWidth: string;
137
+ };
138
+ _hover: {
139
+ borderRadius: string;
140
+ outlineColor: string;
141
+ outlineOffset: string;
142
+ outlineStyle: string;
143
+ outlineWidth: string;
144
+ };
145
+ };
146
+ ".chakra-radio": {
147
+ alignItems: string;
148
+ };
149
+ ".chakra-radio__label": {
150
+ fontWeight: string;
151
+ };
152
+ mobileBtns: {
153
+ alignItems: string;
154
+ backgroundColor: string;
155
+ borderRadius: string;
156
+ display: string;
157
+ fontSize: string;
158
+ flex: string;
159
+ justifyContent: string;
160
+ padding: string;
161
+ svg: {
162
+ fill: string;
163
+ marginLeft: string;
164
+ };
165
+ _hover: {
166
+ backgroundColor: string;
167
+ };
168
+ _focus: {
169
+ borderRadius: string;
170
+ outlineColor: string;
171
+ outlineOffset: string;
172
+ outlineStyle: string;
173
+ outlineWidth: string;
174
+ };
175
+ };
176
+ _dark: {
177
+ bgColor: string;
178
+ color: string;
179
+ label: {
180
+ color: string;
181
+ };
182
+ };
183
+ };
184
+ };
185
+ export default HeaderSearchForm;
@@ -0,0 +1,43 @@
1
+ declare const SitewideAlerts: {
2
+ baseStyle: {
3
+ backgroundColor: string;
4
+ borderBottom: {
5
+ base: string;
6
+ mh: string;
7
+ };
8
+ fontSize: string;
9
+ fontWeight: string;
10
+ lineHeight: string;
11
+ minHeight: {
12
+ base: string;
13
+ mh: string;
14
+ };
15
+ paddingX: string;
16
+ ul: {
17
+ marginBottom: string;
18
+ a: {
19
+ textDecoration: string;
20
+ };
21
+ p: {
22
+ marginBottom: string;
23
+ marginTop: string;
24
+ };
25
+ _dark: {
26
+ color: string;
27
+ a: {
28
+ color: string;
29
+ _hover: {
30
+ color: string;
31
+ };
32
+ };
33
+ };
34
+ };
35
+ _dark: {
36
+ backgroundColor: string;
37
+ borderBottom: string;
38
+ borderColor: string;
39
+ color: string;
40
+ };
41
+ };
42
+ };
43
+ export default SitewideAlerts;
@@ -0,0 +1,60 @@
1
+ declare const HeaderUpperNav: {
2
+ parts: string[];
3
+ baseStyle: {
4
+ height: string;
5
+ ul: {
6
+ alignItems: string;
7
+ display: string;
8
+ margin: string;
9
+ whiteSpace: string;
10
+ };
11
+ li: {
12
+ fontSize: string;
13
+ fontWeight: string;
14
+ marginRight: string;
15
+ _last: {
16
+ marginRight: string;
17
+ };
18
+ };
19
+ a: {
20
+ color: string;
21
+ position: string;
22
+ textDecoration: string;
23
+ _hover: {
24
+ color: string;
25
+ textDecoration: string;
26
+ };
27
+ _focus: {
28
+ borderRadius: string;
29
+ outlineColor: string;
30
+ outlineOffset: string;
31
+ outlineStyle: string;
32
+ outlineWidth: string;
33
+ };
34
+ _dark: {
35
+ color: string;
36
+ _hover: {
37
+ color: string;
38
+ };
39
+ };
40
+ };
41
+ svg: {
42
+ _dark: {
43
+ fill: string;
44
+ };
45
+ };
46
+ donateLink: {
47
+ color: string;
48
+ _hover: {
49
+ color: string;
50
+ };
51
+ _dark: {
52
+ bgColor: string;
53
+ _hover: {
54
+ bgColor: string;
55
+ };
56
+ };
57
+ };
58
+ };
59
+ };
60
+ export default HeaderUpperNav;
@@ -160,6 +160,30 @@ export declare const headings: {
160
160
  width: string;
161
161
  };
162
162
  };
163
+ heading7: {
164
+ base: {
165
+ fontSize: {
166
+ base: "mobile.heading.heading7";
167
+ md: "desktop.heading.heading7";
168
+ };
169
+ fontWeight: string;
170
+ letterSpacing: string;
171
+ lineHeight: string;
172
+ width: string;
173
+ };
174
+ };
175
+ heading8: {
176
+ base: {
177
+ fontSize: {
178
+ base: "mobile.heading.heading8";
179
+ md: "desktop.heading.heading8";
180
+ };
181
+ fontWeight: string;
182
+ letterSpacing: string;
183
+ lineHeight: string;
184
+ width: string;
185
+ };
186
+ };
163
187
  };
164
188
  declare const Heading: {
165
189
  baseStyle?: ({ isCapitalized, isUppercase, isLowercase, noSpace }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
@@ -459,6 +483,30 @@ declare const Heading: {
459
483
  width: string;
460
484
  };
461
485
  };
486
+ heading7: {
487
+ base: {
488
+ fontSize: {
489
+ base: "mobile.heading.heading7";
490
+ md: "desktop.heading.heading7";
491
+ };
492
+ fontWeight: string;
493
+ letterSpacing: string;
494
+ lineHeight: string;
495
+ width: string;
496
+ };
497
+ };
498
+ heading8: {
499
+ base: {
500
+ fontSize: {
501
+ base: "mobile.heading.heading8";
502
+ md: "desktop.heading.heading8";
503
+ };
504
+ fontWeight: string;
505
+ letterSpacing: string;
506
+ lineHeight: string;
507
+ width: string;
508
+ };
509
+ };
462
510
  primary: {
463
511
  base: {
464
512
  width: string;
@@ -513,7 +561,7 @@ declare const Heading: {
513
561
  };
514
562
  defaultProps?: {
515
563
  size?: string | number;
516
- variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "primary" | "secondary" | "tertiary" | "callout" | "one" | "two" | "three" | "four" | "five" | "six";
564
+ variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "display1" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "heading7" | "heading8" | "primary" | "secondary" | "tertiary" | "callout" | "one" | "two" | "three" | "four" | "five" | "six";
517
565
  colorScheme?: string;
518
566
  };
519
567
  parts: ("base" | "headingWrapper")[];
@@ -0,0 +1,56 @@
1
+ import { StyleFunctionProps } from "@chakra-ui/system";
2
+ declare const align: Record<string, {
3
+ marginEnd?: string;
4
+ marginStart?: string;
5
+ }>;
6
+ declare const iconRotation: Record<string, {
7
+ transform: string;
8
+ }>;
9
+ declare const size: Record<string, {
10
+ height?: string;
11
+ width?: string;
12
+ }>;
13
+ interface IconBaseStyle extends StyleFunctionProps {
14
+ align: keyof typeof align;
15
+ color: string;
16
+ iconRotation: keyof typeof iconRotation;
17
+ size: keyof typeof size;
18
+ }
19
+ declare const Icon: {
20
+ baseStyle?: (props: IconBaseStyle) => {
21
+ svg: {
22
+ height: string;
23
+ width: string;
24
+ transform: string;
25
+ fill: string;
26
+ marginEnd?: string;
27
+ marginStart?: string;
28
+ display: string;
29
+ };
30
+ height: string;
31
+ width: string;
32
+ transform: string;
33
+ fill: string;
34
+ marginEnd?: string;
35
+ marginStart?: string;
36
+ display: string;
37
+ };
38
+ sizes?: {
39
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
40
+ };
41
+ variants?: {
42
+ default: {};
43
+ breadcrumbs: {
44
+ fill: string;
45
+ display: {
46
+ md: "none";
47
+ };
48
+ };
49
+ };
50
+ defaultProps?: {
51
+ size?: string | number;
52
+ variant?: "default" | "breadcrumbs";
53
+ colorScheme?: string;
54
+ };
55
+ };
56
+ export default Icon;
@@ -151,6 +151,7 @@ declare const Link: {
151
151
  base: {
152
152
  alignItems: string;
153
153
  display: string;
154
+ whiteSpace: string;
154
155
  svg: {
155
156
  height: string;
156
157
  width: string;
@@ -35,7 +35,7 @@ declare const NewsletterSignup: {
35
35
  md: "dark.ui.border.default";
36
36
  };
37
37
  borderLeftColor: {
38
- md: "dark.section.blogs.secondary" | "dark.section.locations.primary" | "dark.section.books-and-more.primary" | "dark.brand.primary" | "dark.section.connect.primary" | "dark.section.education.primary" | "dark.section.research.primary" | "dark.section.research-library.lpa" | "dark.section.research-library.schomburg" | "dark.section.whats-on.primary" | "dark.ui.gray.medium" | "dark.section.research-library.schwartzman";
38
+ md: "dark.section.blogs.secondary" | "dark.section.locations.primary" | "dark.brand.primary" | "dark.section.books-and-more.primary" | "dark.section.connect.primary" | "dark.section.education.primary" | "dark.section.research.primary" | "dark.section.research-library.lpa" | "dark.section.research-library.schomburg" | "dark.section.whats-on.primary" | "dark.ui.gray.medium" | "dark.section.research-library.schwartzman";
39
39
  };
40
40
  };
41
41
  padding: {
@@ -79,12 +79,12 @@ declare const CustomSlider: {
79
79
  };
80
80
  sizes?: {
81
81
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
82
- keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
82
+ keys: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
83
83
  }>;
84
84
  };
85
85
  variants?: {
86
86
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
87
- keys: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
87
+ keys: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
88
88
  }>;
89
89
  };
90
90
  defaultProps?: {
@@ -92,6 +92,6 @@ declare const CustomSlider: {
92
92
  variant?: string | number;
93
93
  colorScheme?: string;
94
94
  };
95
- parts: ("track" | "container" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "textInput" | "sliderContainer")[];
95
+ parts: ("track" | "container" | "textInput" | "thumb" | "filledTrack" | "leftValue" | "rightValue" | "sliderContainer")[];
96
96
  };
97
97
  export default CustomSlider;
@@ -167,6 +167,30 @@ declare const StructuredContent: {
167
167
  width: string;
168
168
  };
169
169
  };
170
+ heading7: {
171
+ base: {
172
+ fontSize: {
173
+ base: "mobile.heading.heading7";
174
+ md: "desktop.heading.heading7";
175
+ };
176
+ fontWeight: string;
177
+ letterSpacing: string;
178
+ lineHeight: string;
179
+ width: string;
180
+ };
181
+ };
182
+ heading8: {
183
+ base: {
184
+ fontSize: {
185
+ base: "mobile.heading.heading8";
186
+ md: "desktop.heading.heading8";
187
+ };
188
+ fontWeight: string;
189
+ letterSpacing: string;
190
+ lineHeight: string;
191
+ width: string;
192
+ };
193
+ };
170
194
  imageFigure: {
171
195
  marginBottom: string;
172
196
  maxWidth?: string;
@@ -348,7 +372,10 @@ declare const StructuredContent: {
348
372
  zIndex: string;
349
373
  _dark: {
350
374
  backgroundColor: string;
351
- borderRight: string;
375
+ borderRight: string | {
376
+ base: any;
377
+ md: string;
378
+ };
352
379
  };
353
380
  };
354
381
  _dark: {
@@ -356,10 +383,7 @@ declare const StructuredContent: {
356
383
  };
357
384
  border: string;
358
385
  borderBottom: string;
359
- borderColor: string | {
360
- base: string;
361
- md: string;
362
- };
386
+ borderColor: string;
363
387
  display: {
364
388
  base: string;
365
389
  md: string;
@@ -382,10 +406,7 @@ declare const StructuredContent: {
382
406
  };
383
407
  _last: {
384
408
  borderBottom: string;
385
- borderColor: string | {
386
- base: string;
387
- md: string;
388
- };
409
+ borderColor: string;
389
410
  };
390
411
  "> span": {
391
412
  flexBasis: string;
@@ -417,14 +438,10 @@ declare const StructuredContent: {
417
438
  base: number;
418
439
  md: string;
419
440
  };
420
- borderColor: string;
421
441
  };
422
442
  border: string;
423
443
  borderBottom: string;
424
- borderColor: string | {
425
- base: string;
426
- md: string;
427
- };
444
+ borderColor: string;
428
445
  display: {
429
446
  base: string;
430
447
  md: string;
@@ -447,9 +464,9 @@ declare const StructuredContent: {
447
464
  md: string;
448
465
  };
449
466
  _first: {
450
- borderBottom: string | {
451
- base: string;
452
- md: string;
467
+ borderBottom: string;
468
+ _dark: {
469
+ borderBottom: string;
453
470
  };
454
471
  };
455
472
  "> span": {
@@ -1,3 +1,7 @@
1
+ export declare const headerBreakpoints: {
2
+ mh: string;
3
+ lh: string;
4
+ };
1
5
  /**
2
6
  * Breakpoints from "src/styles/base/_01-breakpoints.scss"
3
7
  * How to use Chakra responsive styles: https://chakra-ui.com/docs/features/responsive-styles
@@ -16,7 +20,9 @@
16
20
  declare const _default: {
17
21
  sm: string;
18
22
  md: string;
23
+ mh: string;
19
24
  lg: string;
25
+ lh: string;
20
26
  xl: string;
21
27
  "2xl": string;
22
28
  };