@nypl/design-system-react-components 1.5.1 → 1.5.2
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/README.md +21 -5
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/LogoSvgs.d.ts +2 -0
- package/dist/design-system-react-components.cjs.development.js +297 -244
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +297 -245
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/hooks/useCloseDropDown.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/package.json +4 -3
- package/CHANGELOG.md +0 -1861
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
* the escape key. It expects an action callback that will set
|
|
4
4
|
* the dropdown state to false (close).
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
declare const useCloseDropDown: (actionCb: (val: boolean) => void, ref: React.RefObject<HTMLDivElement>) => void;
|
|
7
|
+
export default useCloseDropDown;
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ export { default as Text, TextSizes } from "./components/Text/Text";
|
|
|
55
55
|
export { default as TextInput, TextInputRefType, TextInputTypes, } from "./components/TextInput/TextInput";
|
|
56
56
|
export { default as Toggle, ToggleSizes } from "./components/Toggle/Toggle";
|
|
57
57
|
export { default as useCarouselStyles } from "./hooks/useCarouselStyles";
|
|
58
|
+
export { default as useCloseDropDown } from "./hooks/useCloseDropDown";
|
|
58
59
|
export { default as useFilterBar } from "./hooks/useFilterBar";
|
|
59
60
|
export { default as useMultiSelect } from "./hooks/useMultiSelect";
|
|
60
61
|
export { default as useNYPLBreakpoints } from "./hooks/useNYPLBreakpoints";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nypl/design-system-react-components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "NYPL Reservoir Design System React Components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"analyze": "size-limit --why",
|
|
33
33
|
"generate-sass-resources": "gulp",
|
|
34
34
|
"storybook": "start-storybook -p 6006 -s ./.storybook/public",
|
|
35
|
-
"build-storybook:v1": "npm run prebuild:storybook &&
|
|
35
|
+
"build-storybook:v1": "npm run prebuild:storybook && build-storybook -c .storybook -o ./reservoir/v1",
|
|
36
36
|
"prebuild:storybook": "npm run test:generate-output"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"@storybook/react": "6.5.13",
|
|
99
99
|
"@svgr/rollup": "6.2.1",
|
|
100
100
|
"@svgr/webpack": "5.5.0",
|
|
101
|
+
"@testing-library/dom": "^9.2.0",
|
|
101
102
|
"@testing-library/jest-dom": "5.14.1",
|
|
102
103
|
"@testing-library/react": "12.0.0",
|
|
103
104
|
"@testing-library/react-hooks": "7.0.2",
|
|
@@ -135,7 +136,7 @@
|
|
|
135
136
|
"react-docgen-typescript-loader": "3.7.2",
|
|
136
137
|
"react-dom": "17.0.2",
|
|
137
138
|
"react-test-renderer": "17.0.2",
|
|
138
|
-
"rollup-plugin-postcss": "4.0.
|
|
139
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
139
140
|
"rollup-plugin-svg": "2.0.0",
|
|
140
141
|
"sass": "1.35.1",
|
|
141
142
|
"sass-loader": "10.0.0",
|