@nypl/design-system-react-components 3.0.0-react-chakra-rc4 → 3.0.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.
@@ -38596,7 +38596,7 @@ const bI = g2((r, i) => {
38596
38596
  multiSelectId: s,
38597
38597
  multiSelectLabelText: a,
38598
38598
  accordianButtonRef: p,
38599
- onClearAll: f,
38599
+ onClear: f,
38600
38600
  selectedItemsString: v,
38601
38601
  selectedItemsCount: y
38602
38602
  } = r;
@@ -38615,7 +38615,7 @@ const bI = g2((r, i) => {
38615
38615
  "data-testid": "multi-select-close-button-testid",
38616
38616
  onClick: () => {
38617
38617
  var E;
38618
- f(), (E = p.current) == null || E.focus();
38618
+ f && f(), (E = p.current) == null || E.focus();
38619
38619
  },
38620
38620
  __css: M,
38621
38621
  children: [
@@ -38648,7 +38648,7 @@ const bI = g2((r, i) => {
38648
38648
  listOverflow: y = "scroll",
38649
38649
  buttonText: b,
38650
38650
  onChange: M,
38651
- onClearAll: E,
38651
+ onClear: E,
38652
38652
  onMixedStateChange: x,
38653
38653
  selectedItems: T,
38654
38654
  width: R = "full",
@@ -38828,7 +38828,7 @@ const bI = g2((r, i) => {
38828
38828
  isOpen: a,
38829
38829
  selectedItemsString: X1,
38830
38830
  selectedItemsCount: S1,
38831
- onClearAll: E,
38831
+ onClear: E,
38832
38832
  accordianButtonRef: N
38833
38833
  }
38834
38834
  )
@@ -20,8 +20,8 @@ export interface MultiSelectProps {
20
20
  buttonText: string;
21
21
  /** The number of items that will be visible in the list when the component first loads. */
22
22
  defaultItemsVisible?: number;
23
- /** The action to perform for clear/reset button of MultiSelect. */
24
- onClearAll?: () => void;
23
+ /** The action to perform for the clear/reset button of individual MultiSelects. */
24
+ onClear?: () => void;
25
25
  /** The action to perform on the checkbox's onChange function. */
26
26
  onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
27
27
  /** The action to perform for a mixed state checkbox (parent checkbox). */
@@ -14,8 +14,8 @@ export interface MultiSelectItemsCountButtonProps {
14
14
  selectedItemsCount: number;
15
15
  /** The callback function for the menu toggle. */
16
16
  onMenuToggle?: () => void;
17
- /** The action to perform for clear/reset button of MultiSelect. */
18
- onClearAll?: () => void;
17
+ /** The action to perform for the clear/reset button of individual MultiSelects. */
18
+ onClear?: () => void;
19
19
  /** The action to perform for key down event. */
20
20
  onKeyDown?: () => void;
21
21
  /** Ref to the Accordion Button element. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nypl/design-system-react-components",
3
- "version": "3.0.0-react-chakra-rc4",
3
+ "version": "3.0.0",
4
4
  "description": "NYPL Reservoir Design System React Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "lint": "eslint src --ext=ts,tsx --cache",
36
36
  "prepare": "npm run build && husky install",
37
37
  "storybook": "storybook dev -p 6006",
38
- "build-storybook:v2": "storybook build -c .storybook -o ./reservoir/v2",
38
+ "build-storybook:v3": "storybook build -c .storybook -o ./reservoir/v3",
39
39
  "prebuild:storybook": "npm run test:generate-output",
40
40
  "build-storybook": "storybook build"
41
41
  },
@@ -53,7 +53,6 @@
53
53
  "types-ramda": "0.29.4"
54
54
  },
55
55
  "dependencies": {
56
- "@chakra-ui/focus-lock": "2.1.0",
57
56
  "@chakra-ui/react": "2.8.1",
58
57
  "@chakra-ui/system": "2.6.2",
59
58
  "@charlietango/use-native-lazy-loading": "1.10.0",
@@ -69,7 +68,6 @@
69
68
  "vite-plugin-svgr": "2.4.0"
70
69
  },
71
70
  "peerDependencies": {
72
- "@chakra-ui/focus-lock": ">=2.1.0",
73
71
  "@chakra-ui/react": ">=2.8.1",
74
72
  "@chakra-ui/system": ">=2.6.2",
75
73
  "@emotion/react": ">=11.11.1",