@spscommerce/ds-react 6.36.5 → 6.37.1

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/lib/index.es.js CHANGED
@@ -15659,6 +15659,9 @@ function SpsColumnChooser(props2) {
15659
15659
  }))
15660
15660
  ]
15661
15661
  });
15662
+ const initialSearchValue = { searchSelectedColumn: "" };
15663
+ const classes = clsx(state.isVisible && "sps-button--open", className);
15664
+ const { formMeta, formValue, updateForm } = useSpsForm(initialSearchValue);
15662
15665
  function onSelectBoxChange(event) {
15663
15666
  if (event.target.value) {
15664
15667
  const selected = [...state.selectedColumns];
@@ -15714,13 +15717,12 @@ function SpsColumnChooser(props2) {
15714
15717
  }
15715
15718
  return selectedColumn;
15716
15719
  });
15720
+ updateForm(initialSearchValue);
15717
15721
  onApplyChanges(selectedColumnsCopy);
15718
15722
  }
15719
15723
  function onVisibilityToggle() {
15720
15724
  patchState({ isVisible: !state.isVisible });
15721
15725
  }
15722
- const classes = clsx(state.isVisible && "sps-button--open", className);
15723
- const { formMeta, formValue } = useSpsForm({ searchSelectedColumn: "" });
15724
15726
  return /* @__PURE__ */ React.createElement("div", __spreadValues({
15725
15727
  className: "sps-column-chooser z-stratum-dropdown"
15726
15728
  }, rest), /* @__PURE__ */ React.createElement(SpsButton, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spscommerce/ds-react",
3
3
  "description": "SPS Design System React components",
4
- "version": "6.36.5",
4
+ "version": "6.37.1",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/design-system/tree/main/packages/@spscommerce/ds-react",
@@ -28,10 +28,10 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "6.36.5",
32
- "@spscommerce/ds-illustrations": "6.36.5",
33
- "@spscommerce/ds-shared": "6.36.5",
34
- "@spscommerce/positioning": "6.36.5",
31
+ "@spscommerce/ds-colors": "6.37.1",
32
+ "@spscommerce/ds-illustrations": "6.37.1",
33
+ "@spscommerce/ds-shared": "6.37.1",
34
+ "@spscommerce/positioning": "6.37.1",
35
35
  "@spscommerce/utils": "^6.11.3",
36
36
  "moment": "^2.25.3",
37
37
  "moment-timezone": "^0.5.28",
@@ -40,10 +40,10 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@react-stately/collections": "^3.3.3",
43
- "@spscommerce/ds-colors": "6.36.5",
44
- "@spscommerce/ds-illustrations": "6.36.5",
45
- "@spscommerce/ds-shared": "6.36.5",
46
- "@spscommerce/positioning": "6.36.5",
43
+ "@spscommerce/ds-colors": "6.37.1",
44
+ "@spscommerce/ds-illustrations": "6.37.1",
45
+ "@spscommerce/ds-shared": "6.37.1",
46
+ "@spscommerce/positioning": "6.37.1",
47
47
  "@spscommerce/utils": "^6.11.3",
48
48
  "@testing-library/react": "^10.4.0",
49
49
  "@types/prop-types": "^15.7.1",