@spscommerce/ds-react 4.35.0 → 4.36.3
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/growler/useGrowlers.d.ts +1 -0
- package/lib/index.cjs.js +17 -17
- package/lib/index.es.js +4 -2
- package/package.json +9 -9
package/lib/index.es.js
CHANGED
|
@@ -37040,7 +37040,8 @@ const SpsCurrencyInputExamples = {
|
|
|
37040
37040
|
function useGrowlers() {
|
|
37041
37041
|
const [growlerList, setGrowlerList] = React.useState([]);
|
|
37042
37042
|
const growlers = React.useCallback(() => growlerList.map((g2, i2) => /* @__PURE__ */ React.createElement(SpsGrowler, {
|
|
37043
|
-
|
|
37043
|
+
id: g2.id,
|
|
37044
|
+
key: g2.id,
|
|
37044
37045
|
title: g2.title,
|
|
37045
37046
|
kind: g2.kind,
|
|
37046
37047
|
imgSrc: g2.imgSrc,
|
|
@@ -37058,7 +37059,8 @@ function useGrowlers() {
|
|
|
37058
37059
|
setGrowlerList((currentGrowlerList) => [
|
|
37059
37060
|
...currentGrowlerList,
|
|
37060
37061
|
__spreadProps(__spreadValues({}, config2), {
|
|
37061
|
-
kind: config2.kind || GrowlerKind.INFO
|
|
37062
|
+
kind: config2.kind || GrowlerKind.INFO,
|
|
37063
|
+
id: config2.id || nanoid()
|
|
37062
37064
|
})
|
|
37063
37065
|
]);
|
|
37064
37066
|
}, []);
|
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.
|
|
4
|
+
"version": "4.36.3",
|
|
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.
|
|
32
|
-
"@spscommerce/ds-shared": "4.
|
|
33
|
-
"@spscommerce/positioning": "4.
|
|
34
|
-
"@spscommerce/utils": "4.
|
|
31
|
+
"@spscommerce/ds-colors": "4.36.3",
|
|
32
|
+
"@spscommerce/ds-shared": "4.36.3",
|
|
33
|
+
"@spscommerce/positioning": "4.36.3",
|
|
34
|
+
"@spscommerce/utils": "4.36.3",
|
|
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.
|
|
43
|
-
"@spscommerce/ds-shared": "4.
|
|
44
|
-
"@spscommerce/positioning": "4.
|
|
45
|
-
"@spscommerce/utils": "4.
|
|
42
|
+
"@spscommerce/ds-colors": "4.36.3",
|
|
43
|
+
"@spscommerce/ds-shared": "4.36.3",
|
|
44
|
+
"@spscommerce/positioning": "4.36.3",
|
|
45
|
+
"@spscommerce/utils": "4.36.3",
|
|
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",
|