@nypl/design-system-react-components 3.1.6 → 3.1.7
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 +41 -41
- package/dist/design-system-react-components.js +7058 -6989
- package/dist/src/components/Accordion/Accordion.d.ts +4 -0
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/src/components/MultiSelect/MultiSelectItemsCountButton.d.ts +1 -1
- package/dist/src/theme/components/breadcrumb.d.ts +40 -1
- package/package.json +6 -6
|
@@ -27,6 +27,10 @@ export interface AccordionProps {
|
|
|
27
27
|
* within accordion panel is greater than height set by panelMaxHeight, a
|
|
28
28
|
* scrollbar will appear for accordion panel. */
|
|
29
29
|
panelMaxHeight?: string;
|
|
30
|
+
/** For internal use only. This value toggles the accordion closed if the
|
|
31
|
+
* MultiSelect's `closeOnBlur` prop is true and the user clicks outside the
|
|
32
|
+
* component. */
|
|
33
|
+
userClickedOutside?: boolean;
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* Accordion component that shows content on toggle. Can be used to display
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChakraComponent } from "@chakra-ui/react";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "connect", "education", "locations", "research", "whatsOn"];
|
|
3
|
+
export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "connect", "digitalCollections", "education", "locations", "research", "whatsOn"];
|
|
4
4
|
export type BreadcrumbsTypes = typeof breadcrumbTypeArray[number];
|
|
5
5
|
export interface BreadcrumbsDataProps {
|
|
6
6
|
url: string;
|
|
@@ -18,6 +18,9 @@ export interface SelectedItems {
|
|
|
18
18
|
export interface MultiSelectProps {
|
|
19
19
|
/** The button text rendered within the MultiSelect. */
|
|
20
20
|
buttonText: string;
|
|
21
|
+
/** Determines whether the component will toggle to the closed state
|
|
22
|
+
* when it loses focus. The default value is false. */
|
|
23
|
+
closeOnBlur?: boolean;
|
|
21
24
|
/** The number of items that will be visible in the list when the component
|
|
22
25
|
* first loads. */
|
|
23
26
|
defaultItemsVisible?: number;
|
|
@@ -19,7 +19,7 @@ export interface MultiSelectItemsCountButtonProps {
|
|
|
19
19
|
/** The action to perform for key down event. */
|
|
20
20
|
onKeyDown?: () => void;
|
|
21
21
|
/** Ref to the Accordion Button element. */
|
|
22
|
-
|
|
22
|
+
accordionButtonRef: any;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* The toggle button component used to open and close the `MultiSelect` menu.
|
|
@@ -152,6 +152,45 @@ declare const Breadcrumb: {
|
|
|
152
152
|
bg: string;
|
|
153
153
|
};
|
|
154
154
|
};
|
|
155
|
+
digitalCollections: {
|
|
156
|
+
bg: string;
|
|
157
|
+
color: string;
|
|
158
|
+
_dark: {
|
|
159
|
+
bg: string;
|
|
160
|
+
};
|
|
161
|
+
a: {
|
|
162
|
+
_hover: {
|
|
163
|
+
color: string;
|
|
164
|
+
};
|
|
165
|
+
_dark: {
|
|
166
|
+
_hover: {
|
|
167
|
+
color: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
_focus: {
|
|
171
|
+
boxShadow: string;
|
|
172
|
+
outline: string;
|
|
173
|
+
outlineOffset: string;
|
|
174
|
+
outlineColor: any;
|
|
175
|
+
zIndex: string;
|
|
176
|
+
_dark: {
|
|
177
|
+
outlineColor: any;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
"li:last-child": {
|
|
182
|
+
".chakra-breadcrumb__link": {
|
|
183
|
+
_hover: {
|
|
184
|
+
color: string;
|
|
185
|
+
};
|
|
186
|
+
_dark: {
|
|
187
|
+
_hover: {
|
|
188
|
+
color: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
155
194
|
education: {
|
|
156
195
|
bg: string;
|
|
157
196
|
_dark: {
|
|
@@ -179,7 +218,7 @@ declare const Breadcrumb: {
|
|
|
179
218
|
};
|
|
180
219
|
defaultProps?: {
|
|
181
220
|
size?: string | number;
|
|
182
|
-
variant?: "blogs" | "booksAndMore" | "brand" | "connect" | "education" | "locations" | "research" | "whatsOn";
|
|
221
|
+
variant?: "blogs" | "booksAndMore" | "brand" | "connect" | "digitalCollections" | "education" | "locations" | "research" | "whatsOn";
|
|
183
222
|
colorScheme?: string;
|
|
184
223
|
};
|
|
185
224
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7",
|
|
4
4
|
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@babel/core": "7.14.6",
|
|
79
|
-
"@jest/core": "
|
|
79
|
+
"@jest/core": "29.7.0",
|
|
80
80
|
"@rollup/plugin-commonjs": "24.0.1",
|
|
81
81
|
"@rollup/plugin-typescript": "11.0.0",
|
|
82
82
|
"@storybook/addon-a11y": "8.0.8",
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
"eslint-plugin-react": "7.32.2",
|
|
113
113
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
114
114
|
"husky": "7.0.4",
|
|
115
|
-
"jest": "29.
|
|
116
|
-
"jest-axe": "
|
|
117
|
-
"jest-environment-jsdom": "29.
|
|
115
|
+
"jest": "29.7.0",
|
|
116
|
+
"jest-axe": "9.0.0",
|
|
117
|
+
"jest-environment-jsdom": "29.7.0",
|
|
118
118
|
"jest-transformer-svg": "2.0.2",
|
|
119
119
|
"lint-staged": "10.5.4",
|
|
120
120
|
"normalize.css": "8.0.1",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"sass-loader": "10.0.0",
|
|
131
131
|
"storybook": "8.0.8",
|
|
132
132
|
"style-loader": "2.0.0",
|
|
133
|
-
"ts-jest": "29.
|
|
133
|
+
"ts-jest": "29.1.5",
|
|
134
134
|
"tslib": "2.3.0",
|
|
135
135
|
"typescript": "4.9.5",
|
|
136
136
|
"vite": "5.2.8",
|