@spscommerce/ds-react 4.30.0 → 4.30.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.cjs.js +61 -61
- package/lib/index.es.js +5 -0
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -36552,6 +36552,11 @@ function SpsDatepickerV2(_W) {
|
|
|
36552
36552
|
updateValue();
|
|
36553
36553
|
}
|
|
36554
36554
|
const classes = clsx(CSS_BLOCK$1, "sps-text-input", showPopup && `${CSS_BLOCK$1}--open`, className);
|
|
36555
|
+
React.useEffect(() => {
|
|
36556
|
+
if (!value || SimpleDateUtils.isValid(value)) {
|
|
36557
|
+
setStringValue(SimpleDateUtils.toString(value));
|
|
36558
|
+
}
|
|
36559
|
+
}, [value]);
|
|
36555
36560
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SpsFormComponentWrapper, {
|
|
36556
36561
|
id: wrapperId,
|
|
36557
36562
|
className: classes,
|
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": "4.30.
|
|
4
|
+
"version": "4.30.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": "4.30.
|
|
32
|
-
"@spscommerce/ds-shared": "4.30.
|
|
33
|
-
"@spscommerce/positioning": "4.30.
|
|
34
|
-
"@spscommerce/utils": "4.30.
|
|
31
|
+
"@spscommerce/ds-colors": "4.30.1",
|
|
32
|
+
"@spscommerce/ds-shared": "4.30.1",
|
|
33
|
+
"@spscommerce/positioning": "4.30.1",
|
|
34
|
+
"@spscommerce/utils": "4.30.1",
|
|
35
35
|
"moment": "^2.25.3",
|
|
36
36
|
"moment-timezone": "^0.5.28",
|
|
37
37
|
"react": "^16.9.0",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@react-stately/collections": "^3.3.3",
|
|
42
|
-
"@spscommerce/ds-colors": "4.30.
|
|
43
|
-
"@spscommerce/ds-shared": "4.30.
|
|
44
|
-
"@spscommerce/positioning": "4.30.
|
|
45
|
-
"@spscommerce/utils": "4.30.
|
|
42
|
+
"@spscommerce/ds-colors": "4.30.1",
|
|
43
|
+
"@spscommerce/ds-shared": "4.30.1",
|
|
44
|
+
"@spscommerce/positioning": "4.30.1",
|
|
45
|
+
"@spscommerce/utils": "4.30.1",
|
|
46
46
|
"@testing-library/jest-dom": "^4.2.4",
|
|
47
47
|
"@testing-library/react": "^9.3.2",
|
|
48
48
|
"@types/prop-types": "^15.7.1",
|