@nypl/design-system-react-components 1.5.0 → 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.
@@ -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
- export declare const useCloseDropDown: (actionCb: (val: boolean) => void, ref: React.RefObject<HTMLDivElement>) => void;
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";
@@ -503,7 +503,7 @@ declare const Hero: {
503
503
  display: string;
504
504
  flexFlow: {
505
505
  base: string;
506
- md: string;
506
+ lg: string;
507
507
  };
508
508
  minHeight: string;
509
509
  flex: {
@@ -528,26 +528,44 @@ declare const Hero: {
528
528
  display: string;
529
529
  };
530
530
  img: {
531
- flex: {
531
+ clip: string;
532
+ height: {
532
533
  base: string;
533
534
  md: string;
534
535
  };
535
- minWidth: string;
536
- objectFit: string;
537
- width: string;
538
- height: {
536
+ overflow: string;
537
+ position: {
538
+ base: string;
539
539
  md: string;
540
540
  };
541
- };
542
- interior: {
543
- flex: {
541
+ width: {
544
542
  base: string;
545
543
  md: string;
546
544
  };
547
- padding: string;
545
+ wordWrap: string;
546
+ };
547
+ imgWrapper: {
548
+ backgroundPosition: string;
549
+ backgroundSize: string;
550
+ minHeight: string;
551
+ width: {
552
+ base: string;
553
+ lg: string;
554
+ };
555
+ };
556
+ interior: {
557
+ alignSelf: string;
548
558
  maxWidth: {
549
559
  md: string;
550
560
  };
561
+ padding: {
562
+ base: string;
563
+ md: string;
564
+ };
565
+ width: {
566
+ base: string;
567
+ lg: string;
568
+ };
551
569
  };
552
570
  };
553
571
  fiftyFifty: {
@@ -558,33 +576,51 @@ declare const Hero: {
558
576
  base: string;
559
577
  lg: string;
560
578
  };
561
- paddingBottom: string;
562
- paddingEnd: string;
563
- paddingStart: string;
564
- padding: {
565
- lg: string;
566
- };
567
579
  marginY: string;
568
580
  marginX: string;
569
581
  maxWidth: string;
582
+ padding: string;
570
583
  width: string;
571
584
  };
572
585
  imgWrapper: {
573
- marginBottom: {
586
+ backgroundPosition: string;
587
+ backgroundSize: string;
588
+ minHeight: string;
589
+ width: {
574
590
  base: string;
575
591
  lg: string;
576
592
  };
577
- marginEnd: {
593
+ };
594
+ img: {
595
+ clip: string;
596
+ height: {
578
597
  base: string;
579
- lg: string;
598
+ md: string;
580
599
  };
581
- marginStart: {
600
+ overflow: string;
601
+ position: {
582
602
  base: string;
603
+ md: string;
604
+ };
605
+ width: {
606
+ base: string;
607
+ md: string;
583
608
  };
609
+ wordWrap: string;
610
+ };
611
+ bodyText: {
612
+ alignSelf: string;
584
613
  maxWidth: {
614
+ md: string;
615
+ };
616
+ padding: {
617
+ base: string;
618
+ md: string;
619
+ };
620
+ width: {
621
+ base: string;
585
622
  lg: string;
586
623
  };
587
- width: string;
588
624
  };
589
625
  };
590
626
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "1.5.0",
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 && NODE_OPTIONS=--openssl-legacy-provider build-storybook -c .storybook -o ./reservoir/v1",
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.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",