@nypl/design-system-react-components 2.0.0-rc → 2.0.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.
- package/dist/design-system-react-components.cjs +46 -46
- package/dist/design-system-react-components.js +703 -699
- package/dist/src/components/StyledList/StyledList.d.ts +2 -1
- package/dist/src/theme/components/heading.d.ts +9 -0
- package/dist/src/theme/components/structuredContent.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
export declare const textSizesArray: readonly ["default", "body1", "body2", "caption", "tag", "mini"];
|
|
3
|
+
export type TextSizes = typeof textSizesArray[number];
|
|
3
4
|
export interface StyledListProps {
|
|
4
5
|
/** Any child node passed to the component. */
|
|
5
6
|
children?: React.ReactNode;
|
|
@@ -89,6 +89,7 @@ export declare const headings: {
|
|
|
89
89
|
};
|
|
90
90
|
heading4: {
|
|
91
91
|
fontWeight: string;
|
|
92
|
+
letterSpacing: string;
|
|
92
93
|
lineHeight: string;
|
|
93
94
|
width: string;
|
|
94
95
|
a: {
|
|
@@ -97,11 +98,13 @@ export declare const headings: {
|
|
|
97
98
|
};
|
|
98
99
|
heading5: {
|
|
99
100
|
fontWeight: string;
|
|
101
|
+
letterSpacing: string;
|
|
100
102
|
lineHeight: string;
|
|
101
103
|
width: string;
|
|
102
104
|
};
|
|
103
105
|
heading6: {
|
|
104
106
|
fontWeight: string;
|
|
107
|
+
letterSpacing: string;
|
|
105
108
|
lineHeight: string;
|
|
106
109
|
width: string;
|
|
107
110
|
};
|
|
@@ -181,6 +184,7 @@ declare const Heading: {
|
|
|
181
184
|
};
|
|
182
185
|
h4: {
|
|
183
186
|
fontWeight: string;
|
|
187
|
+
letterSpacing: string;
|
|
184
188
|
lineHeight: string;
|
|
185
189
|
width: string;
|
|
186
190
|
a: {
|
|
@@ -189,11 +193,13 @@ declare const Heading: {
|
|
|
189
193
|
};
|
|
190
194
|
h5: {
|
|
191
195
|
fontWeight: string;
|
|
196
|
+
letterSpacing: string;
|
|
192
197
|
lineHeight: string;
|
|
193
198
|
width: string;
|
|
194
199
|
};
|
|
195
200
|
h6: {
|
|
196
201
|
fontWeight: string;
|
|
202
|
+
letterSpacing: string;
|
|
197
203
|
lineHeight: string;
|
|
198
204
|
width: string;
|
|
199
205
|
};
|
|
@@ -296,6 +302,7 @@ declare const Heading: {
|
|
|
296
302
|
};
|
|
297
303
|
heading4: {
|
|
298
304
|
fontWeight: string;
|
|
305
|
+
letterSpacing: string;
|
|
299
306
|
lineHeight: string;
|
|
300
307
|
width: string;
|
|
301
308
|
a: {
|
|
@@ -304,11 +311,13 @@ declare const Heading: {
|
|
|
304
311
|
};
|
|
305
312
|
heading5: {
|
|
306
313
|
fontWeight: string;
|
|
314
|
+
letterSpacing: string;
|
|
307
315
|
lineHeight: string;
|
|
308
316
|
width: string;
|
|
309
317
|
};
|
|
310
318
|
heading6: {
|
|
311
319
|
fontWeight: string;
|
|
320
|
+
letterSpacing: string;
|
|
312
321
|
lineHeight: string;
|
|
313
322
|
width: string;
|
|
314
323
|
};
|
|
@@ -96,6 +96,7 @@ declare const StructuredContent: {
|
|
|
96
96
|
};
|
|
97
97
|
heading4: {
|
|
98
98
|
fontWeight: string;
|
|
99
|
+
letterSpacing: string;
|
|
99
100
|
lineHeight: string;
|
|
100
101
|
width: string;
|
|
101
102
|
a: {
|
|
@@ -104,11 +105,13 @@ declare const StructuredContent: {
|
|
|
104
105
|
};
|
|
105
106
|
heading5: {
|
|
106
107
|
fontWeight: string;
|
|
108
|
+
letterSpacing: string;
|
|
107
109
|
lineHeight: string;
|
|
108
110
|
width: string;
|
|
109
111
|
};
|
|
110
112
|
heading6: {
|
|
111
113
|
fontWeight: string;
|
|
114
|
+
letterSpacing: string;
|
|
112
115
|
lineHeight: string;
|
|
113
116
|
width: string;
|
|
114
117
|
};
|