@spscommerce/ds-react 5.32.6 → 5.33.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 CHANGED
@@ -8892,7 +8892,7 @@ function Component() {
8892
8892
  </>
8893
8893
  )
8894
8894
  }
8895
- `}}}};function NM(){const[e,t]=s.useState([]),n=s.useCallback(()=>e.map((r,i)=>s.createElement(Ir,{id:r.id,key:r.id,title:r.title,kind:r.kind,imgSrc:r.imgSrc,onClose:()=>{r.onClose&&r.onClose(),r.closed=!0,e.every(l=>l.closed)&&t([])}},At(r.content))),[e]),a=s.useCallback(r=>{t(i=>[...i,$(I({},r),{kind:r.kind||M.GrowlerKind.INFO,id:r.id||Dn()})])},[]);return[n,a]}const IM={color:"TagKind",href:"String",icon:"SpsIcon",tagKey:{type:"String",required:!0},value:{type:"String",required:!0}},_M=$(I({},q),{color:be(M.TagKind),href:T.exports.string,icon:be(M.SpsIcon),tagKey:T.exports.string.isRequired,value:T.exports.string.isRequired});function Dh(e){const f=e,{color:t=M.TagKind.KEY,"data-testid":n,href:a,icon:r,tagKey:i,value:l,unsafelyReplaceClassName:c}=f,p=J(f,["color","data-testid","href","icon","tagKey","value","unsafelyReplaceClassName"]),u=A(c||"sps-key-value-tag",a&&"sps-key-value-tag--link");return s.createElement("span",I({className:u,"data-testid":`${n}__key-value-tag`},p),s.createElement(Ot,{icon:r,kind:t,className:"sps-key-value-tag--key"},i),s.createElement(Ot,{className:"sps-key-value-tag--value"},a&&s.createElement("a",{href:a},l),!a&&l))}Object.assign(Dh,{props:IM,propTypes:_M,displayName:"SpsKeyValueTag"});const MM={basic:{label:"Basic",examples:{basic:{react:x.code`
8895
+ `}}}};function NM(){const[e,t]=s.useState([]),n=s.useCallback(()=>e.map((r,i)=>s.createElement(Ir,{id:r.id,key:r.id,title:r.title,kind:r.kind,imgSrc:r.imgSrc,onClose:()=>{r.onClose&&r.onClose(),r.closed=!0,e.every(l=>l.closed)&&t([])}},At(r.content))),[e]),a=s.useCallback(r=>{t(i=>[...i,$(I({},r),{kind:r.kind||M.GrowlerKind.INFO,id:r.id||Dn()})])},[]);return[n,a]}const IM={color:"TagKind",href:"String",icon:"SpsIcon",tagKey:{type:"String",required:!0},value:{type:"String",required:!0}},_M=$(I({},q),{color:be(M.TagKind),href:T.exports.string,icon:be(M.SpsIcon),tagKey:T.exports.string.isRequired,value:T.exports.string.isRequired});function Dh(e){const m=e,{color:t=M.TagKind.KEY,className:n,"data-testid":a,href:r,icon:i,tagKey:l,value:c,unsafelyReplaceClassName:p}=m,u=J(m,["color","className","data-testid","href","icon","tagKey","value","unsafelyReplaceClassName"]),f=A(p||"sps-key-value-tag",r&&"sps-key-value-tag--link",n);return s.createElement("span",I({className:f,"data-testid":`${a}__key-value-tag`},u),s.createElement(Ot,{icon:i,kind:t,className:"sps-key-value-tag--key"},l),s.createElement(Ot,{className:"sps-key-value-tag--value"},r&&s.createElement("a",{href:r},c),!r&&c))}Object.assign(Dh,{props:IM,propTypes:_M,displayName:"SpsKeyValueTag"});const MM={basic:{label:"Basic",examples:{basic:{react:x.code`
8896
8896
  function Component() {
8897
8897
  return (
8898
8898
  <>
package/lib/index.es.js CHANGED
@@ -38534,6 +38534,7 @@ const propTypes$7 = __spreadProps(__spreadValues({}, spsGlobalPropTypes), {
38534
38534
  function SpsKeyValueTag(props2) {
38535
38535
  const _a = props2, {
38536
38536
  color = TagKind.KEY,
38537
+ className,
38537
38538
  "data-testid": testId,
38538
38539
  href,
38539
38540
  icon,
@@ -38542,6 +38543,7 @@ function SpsKeyValueTag(props2) {
38542
38543
  unsafelyReplaceClassName
38543
38544
  } = _a, rest = __objRest(_a, [
38544
38545
  "color",
38546
+ "className",
38545
38547
  "data-testid",
38546
38548
  "href",
38547
38549
  "icon",
@@ -38549,7 +38551,7 @@ function SpsKeyValueTag(props2) {
38549
38551
  "value",
38550
38552
  "unsafelyReplaceClassName"
38551
38553
  ]);
38552
- const classes = clsx(unsafelyReplaceClassName || "sps-key-value-tag", href && "sps-key-value-tag--link");
38554
+ const classes = clsx(unsafelyReplaceClassName || "sps-key-value-tag", href && "sps-key-value-tag--link", className);
38553
38555
  return /* @__PURE__ */ React.createElement("span", __spreadValues({
38554
38556
  className: classes,
38555
38557
  "data-testid": `${testId}__key-value-tag`
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": "5.32.6",
4
+ "version": "5.33.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,11 +28,11 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@react-stately/collections": "^3.3.3",
31
- "@spscommerce/ds-colors": "5.32.6",
32
- "@spscommerce/ds-illustrations": "5.32.6",
33
- "@spscommerce/ds-shared": "5.32.6",
34
- "@spscommerce/positioning": "5.32.6",
35
- "@spscommerce/utils": "5.32.6",
31
+ "@spscommerce/ds-colors": "5.33.2",
32
+ "@spscommerce/ds-illustrations": "5.33.2",
33
+ "@spscommerce/ds-shared": "5.33.2",
34
+ "@spscommerce/positioning": "5.33.2",
35
+ "@spscommerce/utils": "5.33.2",
36
36
  "moment": "^2.25.3",
37
37
  "moment-timezone": "^0.5.28",
38
38
  "react": "^16.9.0",
@@ -40,11 +40,11 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@react-stately/collections": "^3.3.3",
43
- "@spscommerce/ds-colors": "5.32.6",
44
- "@spscommerce/ds-illustrations": "5.32.6",
45
- "@spscommerce/ds-shared": "5.32.6",
46
- "@spscommerce/positioning": "5.32.6",
47
- "@spscommerce/utils": "5.32.6",
43
+ "@spscommerce/ds-colors": "5.33.2",
44
+ "@spscommerce/ds-illustrations": "5.33.2",
45
+ "@spscommerce/ds-shared": "5.33.2",
46
+ "@spscommerce/positioning": "5.33.2",
47
+ "@spscommerce/utils": "5.33.2",
48
48
  "@testing-library/react": "^9.3.2",
49
49
  "@types/prop-types": "^15.7.1",
50
50
  "@types/react": "^16.9.0",