@nypl/design-system-react-components 4.2.0-rc → 4.2.0
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 +64 -73
- package/dist/design-system-react-components.js +16807 -15687
- package/dist/src/components/Icons/IconSvgs.d.ts +1 -0
- package/dist/src/components/Icons/iconVariables.d.ts +1 -1
- package/dist/src/theme/components/breadcrumb.d.ts +3 -3
- package/dist/src/theme/components/buttonGroup.d.ts +3 -3
- package/dist/src/theme/components/card.d.ts +8 -8
- package/dist/src/theme/components/fieldset.d.ts +2 -2
- package/dist/src/theme/components/helperErrorText.d.ts +2 -2
- package/dist/src/theme/components/hero.d.ts +2 -2
- package/dist/src/theme/components/horizontalRule.d.ts +2 -2
- package/dist/src/theme/components/icon.d.ts +1 -1
- package/dist/src/theme/components/label.d.ts +2 -2
- package/dist/src/theme/components/list.d.ts +2 -2
- package/dist/src/theme/components/logo.d.ts +2 -2
- package/dist/src/theme/components/multiSelectItemsCountButton.d.ts +3 -3
- package/dist/src/theme/components/skipNavigation.d.ts +2 -2
- package/dist/src/theme/components/socialmedialinks.d.ts +1 -1
- package/dist/src/theme/components/statusBadge.d.ts +78 -2
- package/dist/src/theme/components/styledList.d.ts +2 -2
- package/dist/src/theme/components/table.d.ts +2 -2
- package/dist/src/theme/components/tagSet.d.ts +6 -6
- package/dist/src/theme/components/template.d.ts +7 -7
- package/dist/src/theme/components/text.d.ts +1 -1
- package/dist/src/theme/components/tooltip.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const iconAlignArray: readonly ["left", "right", "none"];
|
|
2
2
|
export declare const iconColorsArray: readonly ["currentColor", "transparent", "ui.black", "ui.white", "ui.disabled.primary", "ui.disabled.secondary", "ui.error.primary", "ui.error.secondary", "ui.focus", "ui.link.primary", "ui.link.primary-05", "ui.link.primary-10", "ui.link.secondary", "ui.link.tertiary", "ui.status.primary", "ui.status.secondary", "ui.success.primary", "ui.success.secondary", "ui.test", "ui.warning.primary", "ui.warning.secondary", "ui.warning.tertiary", "ui.bg.default", "ui.bg.hover", "ui.bg.active", "ui.border.default", "ui.border.hover", "ui.typography.heading", "ui.typography.body", "ui.typography.inverse.heading", "ui.typography.inverse.body", "ui.gray.xxxx-dark", "ui.gray.xxx-dark", "ui.gray.xx-dark", "ui.gray.x-dark", "ui.gray.dark", "ui.gray.semi-dark", "ui.gray.medium", "ui.gray.semi-medium", "ui.gray.light-cool", "ui.gray.x-light-cool", "ui.gray.xx-light-cool", "ui.gray.light-warm", "ui.gray.x-light-warm", "brand.primary", "brand.secondary", "section.blogs.primary", "section.blogs.secondary", "section.books-and-more.primary", "section.books-and-more.secondary", "section.connect.primary", "section.connect.secondary", "section.education.primary", "section.education.secondary", "section.locations.primary", "section.locations.secondary", "section.research.primary", "section.research.secondary", "section.research-library.lpa", "section.research-library.schomburg", "section.research-library.schwarzman", "section.whats-on.primary", "section.whats-on.secondary", "dark.brand.primary", "dark.brand.secondary", "dark.section.blogs.primary", "dark.section.blogs.secondary", "dark.section.books-and-more.primary", "dark.section.books-and-more.secondary", "dark.section.connect.primary", "dark.section.connect.secondary", "dark.section.education.primary", "dark.section.education.secondary", "dark.section.locations.primary", "dark.section.locations.secondary", "dark.section.research.primary", "dark.section.research.secondary", "dark.section.research-library.primary", "dark.section.research-library.secondary", "dark.section.whats-on.primary", "dark.section.whats-on.secondary", "dark.ui.disabled.primary", "dark.ui.disabled.secondary", "dark.ui.error.primary", "dark.ui.error.secondary", "dark.ui.focus", "dark.ui.link.primary", "dark.ui.link.primary-05", "dark.ui.link.primary-10", "dark.ui.link.secondary", "dark.ui.link.tertiary", "dark.ui.status.primary", "dark.ui.status.secondary", "dark.ui.success.primary", "dark.ui.success.secondary", "dark.ui.test", "dark.ui.warning.secondary", "dark.ui.warning.primary", "dark.ui.bg.page", "dark.ui.bg.default", "dark.ui.bg.hover", "dark.ui.bg.active", "dark.ui.border.default", "dark.ui.border.hover", "dark.ui.typography.heading", "dark.ui.typography.body", "dark.ui.typography.inverse.heading", "dark.ui.typography.inverse.body"];
|
|
3
|
-
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionInfo", "actionLaunch", "actionLightbulb", "actionList", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "actionTaskAlt", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationDynamicFeed", "communicationEmail", "contentBookmark", "contentBookmarkOutline", "contentCopy", "contentFilterList", "contentTypeAudio", "contentTypeBook", "contentTypeEBook", "contentTypeEvent", "contentTypeImage", "contentTypeMisc", "contentTypeVideo", "decorativeBookBroken", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "hardwareLaptop", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationApps", "navigationArrowDown", "navigationMoreVert", "navigationSubdirectoryArrowLeft", "navigationSubdirectoryArrowRight", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialX", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityCheck", "utilityGridView", "utilityHamburger", "utilityListView", "utilitySearch"];
|
|
3
|
+
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionInfo", "actionLaunch", "actionLightbulb", "actionList", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "actionTaskAlt", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationDynamicFeed", "communicationEmail", "contentBookmark", "contentBookmarkOutline", "contentCopy", "contentFilterList", "contentTypeAudio", "contentTypeBook", "contentTypeEBook", "contentTypeEvent", "contentTypeImage", "contentTypeMisc", "contentTypeVideo", "decorativeBookBroken", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "hardwareLaptop", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsLayers", "mapsPlace", "minus", "moonCrescent", "navigationApps", "navigationArrowDown", "navigationMoreVert", "navigationSubdirectoryArrowLeft", "navigationSubdirectoryArrowRight", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialX", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityCheck", "utilityGridView", "utilityHamburger", "utilityListView", "utilitySearch"];
|
|
4
4
|
export declare const iconRotationsArray: readonly ["rotate0", "rotate90", "rotate180", "rotate270"];
|
|
5
5
|
export declare const iconSizesArray: readonly ["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge", "xxxxlarge", "xxxxxlarge", "2xlarge", "3xlarge", "4xlarge", "5xlarge"];
|
|
6
6
|
export declare const iconVariantsArray: readonly ["default", "breadcrumbs"];
|
|
@@ -53,8 +53,8 @@ declare const Breadcrumb: {
|
|
|
53
53
|
};
|
|
54
54
|
"li:last-child": {
|
|
55
55
|
fontWeight: {
|
|
56
|
-
base:
|
|
57
|
-
md:
|
|
56
|
+
base: string;
|
|
57
|
+
md: string;
|
|
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/
|
|
138
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
139
139
|
};
|
|
140
140
|
variants?: {
|
|
141
141
|
blogs: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const ButtonGroup: {
|
|
2
|
-
baseStyle?: ({ buttonWidth }: import("@chakra-ui/
|
|
2
|
+
baseStyle?: ({ buttonWidth }: import("@chakra-ui/styled-system").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/
|
|
12
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
13
13
|
};
|
|
14
14
|
variants?: {
|
|
15
|
-
[key: string]: import("@chakra-ui/
|
|
15
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
163
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
164
164
|
keys: ("base" | "body" | "heading" | "action")[];
|
|
165
165
|
}>;
|
|
166
166
|
};
|
|
167
167
|
variants?: {
|
|
168
|
-
[key: string]: import("@chakra-ui/
|
|
168
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
246
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
247
247
|
};
|
|
248
248
|
variants?: {
|
|
249
|
-
[key: string]: import("@chakra-ui/
|
|
249
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
265
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
266
266
|
};
|
|
267
267
|
variants?: {
|
|
268
|
-
[key: string]: import("@chakra-ui/
|
|
268
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
307
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
308
308
|
};
|
|
309
309
|
variants?: {
|
|
310
|
-
[key: string]: import("@chakra-ui/
|
|
310
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
25
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
26
26
|
};
|
|
27
27
|
variants?: {
|
|
28
|
-
[key: string]: import("@chakra-ui/
|
|
28
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
14
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
15
15
|
};
|
|
16
16
|
variants?: {
|
|
17
|
-
[key: string]: import("@chakra-ui/
|
|
17
|
+
[key: string]: import("@chakra-ui/styled-system").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" | "
|
|
7
|
+
keys: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "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" | "
|
|
745
|
+
parts: ("base" | "content" | "grid" | "imgWrapper" | "bodyText" | "heading" | "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/
|
|
17
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
18
18
|
};
|
|
19
19
|
variants?: {
|
|
20
|
-
[key: string]: import("@chakra-ui/
|
|
20
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
21
21
|
};
|
|
22
22
|
defaultProps?: {
|
|
23
23
|
size?: string | number;
|
|
@@ -19,10 +19,10 @@ declare const Label: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
sizes?: {
|
|
22
|
-
[key: string]: import("@chakra-ui/
|
|
22
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
23
23
|
};
|
|
24
24
|
variants?: {
|
|
25
|
-
[key: string]: import("@chakra-ui/
|
|
25
|
+
[key: string]: import("@chakra-ui/styled-system").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:
|
|
154
|
+
ul: (props: 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 }:
|
|
176
|
+
dl: ({ showRowDividers }: 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/
|
|
130
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
131
131
|
};
|
|
132
132
|
variants?: {
|
|
133
|
-
[key: string]: import("@chakra-ui/
|
|
133
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
2
|
+
baseStyle?: ({ isOpen }: import("@chakra-ui/styled-system").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/
|
|
45
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
46
46
|
};
|
|
47
47
|
variants?: {
|
|
48
|
-
[key: string]: import("@chakra-ui/
|
|
48
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
28
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
29
29
|
};
|
|
30
30
|
variants?: {
|
|
31
|
-
[key: string]: import("@chakra-ui/
|
|
31
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
82
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
83
83
|
};
|
|
84
84
|
variants?: {
|
|
85
85
|
straight(props: StyleFunctionProps): {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { defineStyleConfig } from "@chakra-ui/react";
|
|
2
1
|
export declare const neutral: {
|
|
3
2
|
borderColor: string;
|
|
4
3
|
_dark: {
|
|
@@ -45,5 +44,82 @@ export declare const recommendation: {
|
|
|
45
44
|
borderColor: string;
|
|
46
45
|
};
|
|
47
46
|
};
|
|
48
|
-
declare const StatusBadge:
|
|
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
|
+
};
|
|
49
125
|
export default StatusBadge;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const StyledList: {
|
|
2
|
-
baseStyle?: ({ textSize }: import("@chakra-ui/
|
|
2
|
+
baseStyle?: ({ textSize }: import("@chakra-ui/styled-system").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/
|
|
29
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
728
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
729
729
|
keys: ("base" | "innerTable")[];
|
|
730
730
|
}>;
|
|
731
731
|
};
|
|
732
732
|
variants?: {
|
|
733
|
-
[key: string]: import("@chakra-ui/
|
|
733
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
18
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
19
19
|
};
|
|
20
20
|
variants?: {
|
|
21
|
-
[key: string]: import("@chakra-ui/
|
|
21
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
32
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
33
33
|
};
|
|
34
34
|
variants?: {
|
|
35
|
-
[key: string]: import("@chakra-ui/
|
|
35
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
48
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
49
49
|
keys: ("base" | "clearAll")[];
|
|
50
50
|
}>;
|
|
51
51
|
};
|
|
52
52
|
variants?: {
|
|
53
|
-
[key: string]: import("@chakra-ui/
|
|
53
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
26
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
86
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
87
87
|
};
|
|
88
88
|
variants?: {
|
|
89
|
-
[key: string]: import("@chakra-ui/
|
|
89
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
102
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
103
103
|
};
|
|
104
104
|
variants?: {
|
|
105
|
-
[key: string]: import("@chakra-ui/
|
|
105
|
+
[key: string]: import("@chakra-ui/styled-system").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/
|
|
140
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
141
141
|
};
|
|
142
142
|
variants?: {
|
|
143
|
-
[key: string]: import("@chakra-ui/
|
|
143
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
144
144
|
};
|
|
145
145
|
defaultProps?: {
|
|
146
146
|
size?: string | number;
|
|
@@ -19,10 +19,10 @@ declare const Tooltip: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
sizes?: {
|
|
22
|
-
[key: string]: import("@chakra-ui/
|
|
22
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
23
23
|
};
|
|
24
24
|
variants?: {
|
|
25
|
-
[key: string]: import("@chakra-ui/
|
|
25
|
+
[key: string]: import("@chakra-ui/styled-system").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.2.0",
|
|
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.
|
|
57
|
+
"@chakra-ui/react": "2.8.2",
|
|
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.
|
|
119
|
-
"react-dom": "18.
|
|
120
|
-
"react-test-renderer": "18.
|
|
118
|
+
"react": "18.2.0",
|
|
119
|
+
"react-dom": "18.2.0",
|
|
120
|
+
"react-test-renderer": "18.2.0",
|
|
121
121
|
"remark-gfm": "4.0.0",
|
|
122
122
|
"rollup": "3.29.5",
|
|
123
123
|
"sass": "1.60.0",
|