@nypl/design-system-react-components 3.0.1 → 3.1.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.
- package/dist/design-system-react-components.cjs +38 -38
- package/dist/design-system-react-components.js +8274 -8097
- package/dist/src/components/Icons/IconSvgs.d.ts +3 -0
- package/dist/src/components/Icons/iconVariables.d.ts +2 -2
- package/dist/src/theme/components/banner.d.ts +194 -0
- package/dist/src/theme/components/datePicker.d.ts +8 -3
- package/dist/src/theme/components/global.d.ts +4 -1
- package/dist/src/theme/components/select.d.ts +3 -0
- package/dist/src/theme/components/slider.d.ts +3 -0
- package/dist/src/theme/components/statusBadge.d.ts +47 -1
- package/dist/src/theme/components/textInput.d.ts +3 -0
- package/package.json +1 -1
|
@@ -36,6 +36,9 @@ declare const _default: {
|
|
|
36
36
|
actionLaunch: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
37
37
|
title?: string;
|
|
38
38
|
}>;
|
|
39
|
+
actionLightbulb: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string;
|
|
41
|
+
}>;
|
|
39
42
|
actionLockClosed: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
40
43
|
title?: string;
|
|
41
44
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const iconAlignArray: readonly ["left", "right", "none"];
|
|
2
|
-
export declare const iconColorsArray: readonly ["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.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.
|
|
3
|
-
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionDelete", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionHome", "actionIdentity", "actionIdentityFilled", "actionLaunch", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationMoreVert", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
|
|
2
|
+
export declare const iconColorsArray: readonly ["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.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", "actionLaunch", "actionLightbulb", "actionLockClosed", "actionPayment", "actionPower", "actionRegistration", "actionSearch", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "communicationCall", "communicationChatBubble", "communicationEmail", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "editorMode", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "mapsPlace", "minus", "moonCrescent", "navigationMoreVert", "plus", "search", "socialFacebook", "socialInstagram", "socialPinterest", "socialSoundCloud", "socialSpotify", "socialTikTok", "socialTumblr", "socialTwitter", "socialVimeo", "socialYoutube", "speakerNotes", "sunFull", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "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"];
|
|
6
6
|
export declare const iconTypesArray: readonly ["default", "breadcrumbs"];
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
declare const Banner: {
|
|
2
|
+
baseStyle?: ({ backgroundColor, highlightColor }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
3
|
+
base: {
|
|
4
|
+
alignItems: string;
|
|
5
|
+
backgroundColor: any;
|
|
6
|
+
borderLeft: string;
|
|
7
|
+
borderColor: any;
|
|
8
|
+
display: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
flexDirection: string;
|
|
11
|
+
gap: string;
|
|
12
|
+
justifyContent: string;
|
|
13
|
+
py: string;
|
|
14
|
+
paddingEnd: string;
|
|
15
|
+
paddingStart: {
|
|
16
|
+
base: "s";
|
|
17
|
+
md: "l";
|
|
18
|
+
};
|
|
19
|
+
position: string;
|
|
20
|
+
width: string;
|
|
21
|
+
a: {
|
|
22
|
+
color: string;
|
|
23
|
+
_hover: {
|
|
24
|
+
color: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
svg: {
|
|
28
|
+
fill: any;
|
|
29
|
+
};
|
|
30
|
+
_dark: {
|
|
31
|
+
a: {
|
|
32
|
+
color: string;
|
|
33
|
+
_hover: {
|
|
34
|
+
color: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
dismissibleButton: {
|
|
40
|
+
alignItems: string;
|
|
41
|
+
border: string;
|
|
42
|
+
bgColor: string;
|
|
43
|
+
color: string;
|
|
44
|
+
display: string;
|
|
45
|
+
margin: string;
|
|
46
|
+
minWidth: string;
|
|
47
|
+
position: string;
|
|
48
|
+
right: string;
|
|
49
|
+
top: string;
|
|
50
|
+
svg: {
|
|
51
|
+
fill: string;
|
|
52
|
+
_dark: {
|
|
53
|
+
fill: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
_hover: {
|
|
57
|
+
bg: string;
|
|
58
|
+
};
|
|
59
|
+
_dark: {
|
|
60
|
+
color: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
sizes?: {
|
|
65
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
66
|
+
keys: ("base" | "dismissibleButton")[];
|
|
67
|
+
}>;
|
|
68
|
+
};
|
|
69
|
+
variants?: {
|
|
70
|
+
neutral: {
|
|
71
|
+
base: {
|
|
72
|
+
bgColor: string;
|
|
73
|
+
svg: {
|
|
74
|
+
fill: string;
|
|
75
|
+
_dark: {
|
|
76
|
+
fill: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
_dark: {
|
|
80
|
+
bgColor: string;
|
|
81
|
+
};
|
|
82
|
+
borderColor: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
informative: {
|
|
86
|
+
base: {
|
|
87
|
+
svg: {
|
|
88
|
+
fill: string;
|
|
89
|
+
_dark: {
|
|
90
|
+
fill: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
bgColor: string;
|
|
94
|
+
borderColor: string;
|
|
95
|
+
_dark: {
|
|
96
|
+
bgColor: string;
|
|
97
|
+
borderColor: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
positive: {
|
|
102
|
+
base: {
|
|
103
|
+
svg: {
|
|
104
|
+
fill: string;
|
|
105
|
+
_dark: {
|
|
106
|
+
fill: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
bgColor: string;
|
|
110
|
+
borderColor: string;
|
|
111
|
+
_dark: {
|
|
112
|
+
bgColor: string;
|
|
113
|
+
borderColor: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
negative: {
|
|
118
|
+
base: {
|
|
119
|
+
color: string;
|
|
120
|
+
a: {
|
|
121
|
+
color: string;
|
|
122
|
+
_hover: {
|
|
123
|
+
color: string;
|
|
124
|
+
};
|
|
125
|
+
_visited: {
|
|
126
|
+
color: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
svg: {
|
|
130
|
+
fill: string;
|
|
131
|
+
_hover: {
|
|
132
|
+
fill: string;
|
|
133
|
+
};
|
|
134
|
+
_dark: {
|
|
135
|
+
fill: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
_dark: {
|
|
139
|
+
a: {
|
|
140
|
+
color: string;
|
|
141
|
+
_hover: {
|
|
142
|
+
color: string;
|
|
143
|
+
};
|
|
144
|
+
_visited: {
|
|
145
|
+
color: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
color: string;
|
|
149
|
+
};
|
|
150
|
+
bgColor: string;
|
|
151
|
+
borderColor: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
warning: {
|
|
155
|
+
base: {
|
|
156
|
+
svg: {
|
|
157
|
+
fill: string;
|
|
158
|
+
_dark: {
|
|
159
|
+
fill: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
bgColor: string;
|
|
163
|
+
borderColor: string;
|
|
164
|
+
_dark: {
|
|
165
|
+
bgColor: string;
|
|
166
|
+
borderColor: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
recommendation: {
|
|
171
|
+
base: {
|
|
172
|
+
svg: {
|
|
173
|
+
fill: string;
|
|
174
|
+
_dark: {
|
|
175
|
+
fill: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
bgColor: string;
|
|
179
|
+
borderColor: string;
|
|
180
|
+
_dark: {
|
|
181
|
+
bgColor: string;
|
|
182
|
+
borderColor: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
defaultProps?: {
|
|
188
|
+
size?: string | number;
|
|
189
|
+
variant?: "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation";
|
|
190
|
+
colorScheme?: string;
|
|
191
|
+
};
|
|
192
|
+
parts: ("base" | "dismissibleButton")[];
|
|
193
|
+
};
|
|
194
|
+
export default Banner;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
declare const DatePicker: {
|
|
2
2
|
baseStyle?: {
|
|
3
|
+
fieldset: {
|
|
4
|
+
legend: {
|
|
5
|
+
marginBottom: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
3
8
|
subLabels: {
|
|
4
9
|
label: {
|
|
5
10
|
fontSize: string;
|
|
@@ -10,12 +15,12 @@ declare const DatePicker: {
|
|
|
10
15
|
};
|
|
11
16
|
sizes?: {
|
|
12
17
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
13
|
-
keys: "subLabels"[];
|
|
18
|
+
keys: ("fieldset" | "subLabels")[];
|
|
14
19
|
}>;
|
|
15
20
|
};
|
|
16
21
|
variants?: {
|
|
17
22
|
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
18
|
-
keys: "subLabels"[];
|
|
23
|
+
keys: ("fieldset" | "subLabels")[];
|
|
19
24
|
}>;
|
|
20
25
|
};
|
|
21
26
|
defaultProps?: {
|
|
@@ -23,6 +28,6 @@ declare const DatePicker: {
|
|
|
23
28
|
variant?: string | number;
|
|
24
29
|
colorScheme?: string;
|
|
25
30
|
};
|
|
26
|
-
parts: "subLabels"[];
|
|
31
|
+
parts: ("fieldset" | "subLabels")[];
|
|
27
32
|
};
|
|
28
33
|
export default DatePicker;
|
|
@@ -115,6 +115,9 @@ declare const labelLegendText: {
|
|
|
115
115
|
color: string;
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
|
+
declare const labelLegendTextSpecialSpacing: {
|
|
119
|
+
marginBottom: string;
|
|
120
|
+
};
|
|
118
121
|
declare const selectTextInputDisabledStyles: {
|
|
119
122
|
bg: string;
|
|
120
123
|
borderColor: string;
|
|
@@ -149,4 +152,4 @@ declare const textMargin: {
|
|
|
149
152
|
margin: string;
|
|
150
153
|
marginBottom: string;
|
|
151
154
|
};
|
|
152
|
-
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, customFocusColor, defaultElementSizes, labelLegendText, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
|
|
155
|
+
export { activeFocus, checkboxRadioControlSize, checkboxRadioGroupStyles, checkboxRadioHelperErrorTextStyle, checkboxRadioHoverStyles, checkboxRadioLabelStyles, customFocusColor, defaultElementSizes, labelLegendText, labelLegendTextSpecialSpacing, selectTextInputDisabledStyles, selectTextInputFocusStyles, textMargin, };
|
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
export declare const neutral: {
|
|
2
|
+
borderColor: string;
|
|
3
|
+
_dark: {
|
|
4
|
+
borderColor: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const informative: {
|
|
8
|
+
bgColor: string;
|
|
9
|
+
borderColor: string;
|
|
10
|
+
_dark: {
|
|
11
|
+
bgColor: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const positive: {
|
|
16
|
+
bgColor: string;
|
|
17
|
+
borderColor: string;
|
|
18
|
+
_dark: {
|
|
19
|
+
bgColor: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const negative: {
|
|
24
|
+
bgColor: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
_dark: {
|
|
27
|
+
bgColor: string;
|
|
28
|
+
borderColor: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const warning: {
|
|
32
|
+
bgColor: string;
|
|
33
|
+
borderColor: string;
|
|
34
|
+
_dark: {
|
|
35
|
+
bgColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const recommendation: {
|
|
40
|
+
bgColor: string;
|
|
41
|
+
borderColor: string;
|
|
42
|
+
_dark: {
|
|
43
|
+
bgColor: string;
|
|
44
|
+
borderColor: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
1
47
|
declare const StatusBadge: {
|
|
2
48
|
baseStyle?: {
|
|
3
49
|
alignItems: string;
|
|
@@ -86,7 +132,7 @@ declare const StatusBadge: {
|
|
|
86
132
|
};
|
|
87
133
|
defaultProps?: {
|
|
88
134
|
size?: string | number;
|
|
89
|
-
variant?: "medium" | "
|
|
135
|
+
variant?: "medium" | "neutral" | "informative" | "positive" | "negative" | "warning" | "recommendation" | "low" | "high";
|
|
90
136
|
colorScheme?: string;
|
|
91
137
|
};
|
|
92
138
|
};
|