@nypl/design-system-react-components 4.2.0 → 4.3.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.
@@ -53,8 +53,8 @@ declare const Breadcrumb: {
53
53
  };
54
54
  "li:last-child": {
55
55
  fontWeight: {
56
- base: string;
57
- md: string;
56
+ base: "breadcrumbs.default";
57
+ md: "breadcrumbs.lastChild";
58
58
  };
59
59
  ".chakra-breadcrumb__link": {
60
60
  _hover: {
@@ -135,7 +135,7 @@ declare const Breadcrumb: {
135
135
  };
136
136
  };
137
137
  sizes?: {
138
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
138
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
139
139
  };
140
140
  variants?: {
141
141
  blogs: {
@@ -1,5 +1,5 @@
1
1
  declare const ButtonGroup: {
2
- baseStyle?: ({ buttonWidth }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
2
+ baseStyle?: ({ buttonWidth }: import("@chakra-ui/react").StyleFunctionProps) => {
3
3
  width: {
4
4
  base: "100%";
5
5
  md: "100%" | "fit-content";
@@ -9,10 +9,10 @@ declare const ButtonGroup: {
9
9
  };
10
10
  };
11
11
  sizes?: {
12
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
12
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
13
13
  };
14
14
  variants?: {
15
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
15
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
16
16
  };
17
17
  defaultProps?: {
18
18
  size?: string | number;
@@ -160,12 +160,12 @@ declare const _default: {
160
160
  };
161
161
  };
162
162
  sizes?: {
163
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
163
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
164
164
  keys: ("base" | "body" | "heading" | "action")[];
165
165
  }>;
166
166
  };
167
167
  variants?: {
168
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
168
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
169
169
  keys: ("base" | "body" | "heading" | "action")[];
170
170
  }>;
171
171
  };
@@ -243,10 +243,10 @@ declare const _default: {
243
243
  };
244
244
  };
245
245
  sizes?: {
246
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
246
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
247
247
  };
248
248
  variants?: {
249
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
249
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
250
250
  };
251
251
  defaultProps?: {
252
252
  size?: string | number;
@@ -262,10 +262,10 @@ declare const _default: {
262
262
  };
263
263
  };
264
264
  sizes?: {
265
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
265
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
266
266
  };
267
267
  variants?: {
268
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
268
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
269
269
  };
270
270
  defaultProps?: {
271
271
  size?: string | number;
@@ -304,10 +304,10 @@ declare const _default: {
304
304
  order?: undefined;
305
305
  };
306
306
  sizes?: {
307
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
307
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
308
308
  };
309
309
  variants?: {
310
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
310
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
311
311
  };
312
312
  defaultProps?: {
313
313
  size?: string | number;
@@ -22,10 +22,10 @@ declare const Fieldset: {
22
22
  };
23
23
  };
24
24
  sizes?: {
25
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
25
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
26
26
  };
27
27
  variants?: {
28
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
28
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
29
29
  };
30
30
  defaultProps?: {
31
31
  size?: string | number;
@@ -11,10 +11,10 @@ declare const HelperErrorText: {
11
11
  };
12
12
  };
13
13
  sizes?: {
14
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
14
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
15
15
  };
16
16
  variants?: {
17
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
17
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
18
18
  };
19
19
  defaultProps?: {
20
20
  size?: string | number;
@@ -4,7 +4,7 @@ declare const Hero: {
4
4
  baseStyle?: {};
5
5
  sizes?: {
6
6
  [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
7
- keys: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
7
+ keys: ("base" | "content" | "grid" | "heading" | "imgWrapper" | "bodyText" | "interior")[];
8
8
  }>;
9
9
  };
10
10
  variants?: {
@@ -742,6 +742,6 @@ declare const Hero: {
742
742
  variant?: "primary" | "secondary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "tertiary" | "campaign" | "fiftyFifty";
743
743
  colorScheme?: string;
744
744
  };
745
- parts: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "interior")[];
745
+ parts: ("base" | "content" | "grid" | "heading" | "imgWrapper" | "bodyText" | "interior")[];
746
746
  };
747
747
  export default Hero;
@@ -14,10 +14,10 @@ declare const HorizontalRule: {
14
14
  };
15
15
  };
16
16
  sizes?: {
17
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
17
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
18
18
  };
19
19
  variants?: {
20
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
20
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
21
21
  };
22
22
  defaultProps?: {
23
23
  size?: string | number;
@@ -34,7 +34,7 @@ declare const Icon: {
34
34
  display?: string;
35
35
  };
36
36
  sizes?: {
37
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
37
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
38
38
  };
39
39
  variants?: {
40
40
  default: {};
@@ -19,10 +19,10 @@ declare const Label: {
19
19
  };
20
20
  };
21
21
  sizes?: {
22
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
22
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
23
23
  };
24
24
  variants?: {
25
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
25
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
26
26
  };
27
27
  defaultProps?: {
28
28
  size?: string | number;
@@ -151,7 +151,7 @@ declare const List: {
151
151
  }>;
152
152
  };
153
153
  variants?: {
154
- ul: (props: StyleFunctionProps) => {
154
+ ul: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
155
155
  base: {
156
156
  listStyle: string;
157
157
  li: {
@@ -173,7 +173,7 @@ declare const List: {
173
173
  };
174
174
  };
175
175
  };
176
- dl: ({ showRowDividers }: StyleFunctionProps) => {
176
+ dl: ({ showRowDividers }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
177
177
  base: {
178
178
  dl: {
179
179
  display: string;
@@ -127,10 +127,10 @@ declare const Logo: {
127
127
  width: string;
128
128
  };
129
129
  sizes?: {
130
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
130
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
131
131
  };
132
132
  variants?: {
133
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
133
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
134
134
  };
135
135
  defaultProps?: {
136
136
  size?: string | number;
@@ -1,5 +1,5 @@
1
1
  declare const MultiSelectItemsCountButton: {
2
- baseStyle?: ({ isOpen }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
2
+ baseStyle?: ({ isOpen }: import("@chakra-ui/react").StyleFunctionProps) => {
3
3
  alignItems: string;
4
4
  backgroundColor: string;
5
5
  border: string;
@@ -42,10 +42,10 @@ declare const MultiSelectItemsCountButton: {
42
42
  };
43
43
  };
44
44
  sizes?: {
45
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
45
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
46
46
  };
47
47
  variants?: {
48
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
48
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
49
49
  };
50
50
  defaultProps?: {
51
51
  size?: string | number;
@@ -25,10 +25,10 @@ declare const SkipNavigation: {
25
25
  };
26
26
  };
27
27
  sizes?: {
28
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
28
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
29
29
  };
30
30
  variants?: {
31
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
31
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
32
32
  };
33
33
  defaultProps?: {
34
34
  size?: string | number;
@@ -79,7 +79,7 @@ declare const SocialMediaLinks: {
79
79
  };
80
80
  };
81
81
  sizes?: {
82
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
82
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
83
83
  };
84
84
  variants?: {
85
85
  straight(props: StyleFunctionProps): {
@@ -1,3 +1,4 @@
1
+ import { defineStyleConfig } from "@chakra-ui/react";
1
2
  export declare const neutral: {
2
3
  borderColor: string;
3
4
  _dark: {
@@ -44,82 +45,5 @@ export declare const recommendation: {
44
45
  borderColor: string;
45
46
  };
46
47
  };
47
- declare const StatusBadge: {
48
- baseStyle?: ({ labelFontSize }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
49
- alignItems: string;
50
- bgColor: string;
51
- borderLeft: string;
52
- borderColor: string;
53
- borderRadius: string;
54
- color: string;
55
- display: string;
56
- fontSize: any;
57
- fontWeight: string;
58
- py: string;
59
- paddingInlineEnd: string;
60
- paddingInlineStart: string;
61
- width: string;
62
- _dark: {
63
- backgroundColor: string;
64
- borderColor: string;
65
- color: string;
66
- };
67
- };
68
- sizes?: {
69
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
70
- };
71
- variants?: {
72
- neutral: {
73
- borderColor: string;
74
- _dark: {
75
- borderColor: string;
76
- };
77
- };
78
- informative: {
79
- bgColor: string;
80
- borderColor: string;
81
- _dark: {
82
- bgColor: string;
83
- borderColor: string;
84
- };
85
- };
86
- positive: {
87
- bgColor: string;
88
- borderColor: string;
89
- _dark: {
90
- bgColor: string;
91
- borderColor: string;
92
- };
93
- };
94
- negative: {
95
- bgColor: string;
96
- borderColor: string;
97
- _dark: {
98
- bgColor: string;
99
- borderColor: string;
100
- };
101
- };
102
- warning: {
103
- bgColor: string;
104
- borderColor: string;
105
- _dark: {
106
- bgColor: string;
107
- borderColor: string;
108
- };
109
- };
110
- recommendation: {
111
- bgColor: string;
112
- borderColor: string;
113
- _dark: {
114
- bgColor: string;
115
- borderColor: string;
116
- };
117
- };
118
- };
119
- defaultProps?: {
120
- size?: string | number;
121
- variant?: "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation";
122
- colorScheme?: string;
123
- };
124
- };
48
+ declare const StatusBadge: ReturnType<typeof defineStyleConfig>;
125
49
  export default StatusBadge;
@@ -1,5 +1,5 @@
1
1
  declare const StyledList: {
2
- baseStyle?: ({ textSize }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
2
+ baseStyle?: ({ textSize }: import("@chakra-ui/react").StyleFunctionProps) => {
3
3
  listStyle: string;
4
4
  li: {
5
5
  _before: {
@@ -26,7 +26,7 @@ declare const StyledList: {
26
26
  fontSize: string;
27
27
  };
28
28
  sizes?: {
29
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
29
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
30
30
  };
31
31
  variants?: {
32
32
  capped: {
@@ -725,12 +725,12 @@ declare const CustomTable: {
725
725
  };
726
726
  };
727
727
  sizes?: {
728
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
728
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
729
729
  keys: ("base" | "innerTable")[];
730
730
  }>;
731
731
  };
732
732
  variants?: {
733
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
733
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
734
734
  keys: ("base" | "innerTable")[];
735
735
  }>;
736
736
  };
@@ -15,10 +15,10 @@ declare const _default: {
15
15
  gap: string;
16
16
  };
17
17
  sizes?: {
18
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
18
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
19
19
  };
20
20
  variants?: {
21
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
21
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
22
22
  };
23
23
  defaultProps?: {
24
24
  size?: string | number;
@@ -29,10 +29,10 @@ declare const _default: {
29
29
  TagSetExplore: {
30
30
  baseStyle?: ({ semanticVariant }: TagSetExploreProps) => any;
31
31
  sizes?: {
32
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
32
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
33
33
  };
34
34
  variants?: {
35
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
35
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
36
36
  };
37
37
  defaultProps?: {
38
38
  size?: string | number;
@@ -45,12 +45,12 @@ declare const _default: {
45
45
  base: any;
46
46
  };
47
47
  sizes?: {
48
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
48
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
49
49
  keys: ("base" | "clearAll")[];
50
50
  }>;
51
51
  };
52
52
  variants?: {
53
- [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
53
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
54
54
  keys: ("base" | "clearAll")[];
55
55
  }>;
56
56
  };
@@ -23,7 +23,7 @@ declare const _default: {
23
23
  };
24
24
  };
25
25
  sizes?: {
26
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
26
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
27
27
  };
28
28
  variants?: {
29
29
  sidebarLeft: {
@@ -83,10 +83,10 @@ declare const _default: {
83
83
  width: string;
84
84
  };
85
85
  sizes?: {
86
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
86
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
87
87
  };
88
88
  variants?: {
89
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
89
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
90
90
  };
91
91
  defaultProps?: {
92
92
  size?: string | number;
@@ -99,10 +99,10 @@ declare const _default: {
99
99
  gridColumn: string;
100
100
  };
101
101
  sizes?: {
102
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
102
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
103
103
  };
104
104
  variants?: {
105
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
105
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
106
106
  };
107
107
  defaultProps?: {
108
108
  size?: string | number;
@@ -137,10 +137,10 @@ declare const _default: {
137
137
  };
138
138
  };
139
139
  sizes?: {
140
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
140
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
141
141
  };
142
142
  variants?: {
143
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
143
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
144
144
  };
145
145
  defaultProps?: {
146
146
  size?: string | number;
@@ -14,7 +14,7 @@ declare const Text: {
14
14
  textTransform: string;
15
15
  };
16
16
  sizes?: {
17
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
17
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
18
18
  };
19
19
  variants?: {
20
20
  default: {};
@@ -19,10 +19,10 @@ declare const Tooltip: {
19
19
  };
20
20
  };
21
21
  sizes?: {
22
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
22
+ [key: string]: import("@chakra-ui/theme-tools").SystemStyleInterpolation;
23
23
  };
24
24
  variants?: {
25
- [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
25
+ [key: string]: import("@chakra-ui/theme-tools").SystemStyleInterpolation;
26
26
  };
27
27
  defaultProps?: {
28
28
  size?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "4.2.0",
3
+ "version": "4.3.0-rc",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,7 +54,7 @@
54
54
  "types-ramda": "0.29.4"
55
55
  },
56
56
  "dependencies": {
57
- "@chakra-ui/react": "2.8.2",
57
+ "@chakra-ui/react": "2.9.5",
58
58
  "@chakra-ui/system": "2.6.2",
59
59
  "@charlietango/use-native-lazy-loading": "1.10.0",
60
60
  "@emotion/react": "11.11.1",
@@ -115,9 +115,9 @@
115
115
  "normalize.css": "8.0.1",
116
116
  "prettier": "2.4.1",
117
117
  "prop-types": "15.8.1",
118
- "react": "18.2.0",
119
- "react-dom": "18.2.0",
120
- "react-test-renderer": "18.2.0",
118
+ "react": "18.3.0",
119
+ "react-dom": "18.3.0",
120
+ "react-test-renderer": "18.3.0",
121
121
  "remark-gfm": "4.0.0",
122
122
  "rollup": "3.29.5",
123
123
  "sass": "1.60.0",