@spscommerce/ds-react 6.37.0 → 6.37.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/lib/index.cjs.js +65 -65
- package/lib/index.es.js +15 -8
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -6443,7 +6443,7 @@ function SpsCheckbox(_q) {
|
|
|
6443
6443
|
id: controlId,
|
|
6444
6444
|
checked,
|
|
6445
6445
|
disabled,
|
|
6446
|
-
"data-
|
|
6446
|
+
"data-testid": `${testId}__checkbox-input`,
|
|
6447
6447
|
onChange: handleChange
|
|
6448
6448
|
}, rest)), /* @__PURE__ */ React.createElement("label", {
|
|
6449
6449
|
className: "sps-checkable__label",
|
|
@@ -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, {
|
|
@@ -23093,28 +23095,33 @@ function SpsCheckboxDropdown(props2) {
|
|
|
23093
23095
|
checked,
|
|
23094
23096
|
onChange,
|
|
23095
23097
|
indeterminate,
|
|
23096
|
-
disabled
|
|
23098
|
+
disabled,
|
|
23099
|
+
"data-testid": testId
|
|
23097
23100
|
} = _a, rest = __objRest(_a, [
|
|
23098
23101
|
"options",
|
|
23099
23102
|
"className",
|
|
23100
23103
|
"checked",
|
|
23101
23104
|
"onChange",
|
|
23102
23105
|
"indeterminate",
|
|
23103
|
-
"disabled"
|
|
23106
|
+
"disabled",
|
|
23107
|
+
"data-testid"
|
|
23104
23108
|
]);
|
|
23105
23109
|
const classes = clsx("sps-checkbox-dropdown", className);
|
|
23106
23110
|
return /* @__PURE__ */ React.createElement("span", __spreadValues({
|
|
23107
|
-
className: classes
|
|
23111
|
+
className: classes,
|
|
23112
|
+
"data-testid": testId
|
|
23108
23113
|
}, rest), /* @__PURE__ */ React.createElement(SpsCheckbox, {
|
|
23109
23114
|
indeterminate,
|
|
23110
23115
|
checked,
|
|
23111
23116
|
disabled,
|
|
23112
23117
|
onChange,
|
|
23113
|
-
inline: true
|
|
23118
|
+
inline: true,
|
|
23119
|
+
"data-testid": `${testId}__checkbox`
|
|
23114
23120
|
}), /* @__PURE__ */ React.createElement(SpsDropdown, {
|
|
23115
23121
|
disabled,
|
|
23116
23122
|
options,
|
|
23117
|
-
icon: SpsIcon.CHEVRON_DOWN
|
|
23123
|
+
icon: SpsIcon.CHEVRON_DOWN,
|
|
23124
|
+
"data-testid": `${testId}__dropdown`
|
|
23118
23125
|
}));
|
|
23119
23126
|
}
|
|
23120
23127
|
Object.assign(SpsCheckboxDropdown, {
|
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.37.
|
|
4
|
+
"version": "6.37.2",
|
|
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.37.
|
|
32
|
-
"@spscommerce/ds-illustrations": "6.37.
|
|
33
|
-
"@spscommerce/ds-shared": "6.37.
|
|
34
|
-
"@spscommerce/positioning": "6.37.
|
|
31
|
+
"@spscommerce/ds-colors": "6.37.2",
|
|
32
|
+
"@spscommerce/ds-illustrations": "6.37.2",
|
|
33
|
+
"@spscommerce/ds-shared": "6.37.2",
|
|
34
|
+
"@spscommerce/positioning": "6.37.2",
|
|
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.37.
|
|
44
|
-
"@spscommerce/ds-illustrations": "6.37.
|
|
45
|
-
"@spscommerce/ds-shared": "6.37.
|
|
46
|
-
"@spscommerce/positioning": "6.37.
|
|
43
|
+
"@spscommerce/ds-colors": "6.37.2",
|
|
44
|
+
"@spscommerce/ds-illustrations": "6.37.2",
|
|
45
|
+
"@spscommerce/ds-shared": "6.37.2",
|
|
46
|
+
"@spscommerce/positioning": "6.37.2",
|
|
47
47
|
"@spscommerce/utils": "^6.11.3",
|
|
48
48
|
"@testing-library/react": "^10.4.0",
|
|
49
49
|
"@types/prop-types": "^15.7.1",
|