@companycam/slab-web 1.31.8 → 1.31.9

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.
Files changed (3) hide show
  1. package/index.js +1 -1
  2. package/index.mjs +2 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1562,7 +1562,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
1562
1562
  min-width: var(--cc_size_spacing_xxl);
1563
1563
  text-align: center;
1564
1564
  margin-inline-start: var(--cc_size_spacing_m);
1565
- `,FR=(e,n,t)=>Math.round((e-n)/t)*t+n,AR=(e,n,t)=>{const r=t>0?t:1,i=e+(n-e)/2;return FR(i,e,r)},LR=w.forwardRef(({contentBefore:e,contentAfter:n,hideLabel:t=!1,hideValue:r=!1,formatValue:i,label:o,min:a=0,max:c=100,step:u=1,value:f,onChange:p,defaultValue:g,...y},_)=>{const[b,x]=w.useState(g??AR(a,c,u)),E=w.useCallback(se=>{const ae=Number(se.target.value);f===void 0&&x(ae),p==null||p(se)},[p,f]),T=f??b,{status:z="normal",className:L,disabled:B=!1,style:X,message:U,...Z}=y;return P.jsxs(ni,{inputId:y.id,message:U,className:L,status:z,style:X,children:[P.jsx(TR,{htmlFor:y.id,$hideLabel:t,children:P.jsx(xo,{children:o})}),P.jsxs(DR,{$disabled:B,children:[e?P.jsx(Lh,{children:e}):null,P.jsx(RR,{ref:_,disabled:B,"aria-describedby":U?`${y.id}-message`:"","aria-invalid":z==="error",min:a,max:c,onChange:E,step:u,$status:z,type:"range",value:T,...Z}),n?P.jsx(Lh,{children:n}):null,r?null:P.jsx(IR,{htmlFor:y.id,children:i?i(T):T})]})]})}),OR=G.label`
1565
+ `,FR=(e,n,t)=>Math.round((e-n)/t)*t+n,AR=(e,n,t)=>{const r=t>0?t:1,i=e+(n-e)/2;return FR(i,e,r)},LR=w.forwardRef(({contentBefore:e,contentAfter:n,hideLabel:t=!1,hideValue:r=!1,formatValue:i,label:o,min:a=0,max:c=100,step:u=1,value:f,onChange:p,defaultValue:g,...y},_)=>{const[b,x]=w.useState(g??AR(a,c,u)),E=w.useCallback(se=>{const ae=Number(se.target.value);f===void 0&&x(ae),p==null||p(se)},[p,f]),T=f??b,{status:z,className:L,disabled:B=!1,style:X,message:U,...Z}=y;return P.jsxs(ni,{inputId:y.id,message:U,className:L,status:z,style:X,children:[P.jsx(TR,{htmlFor:y.id,$hideLabel:t,children:P.jsx(xo,{children:o})}),P.jsxs(DR,{$disabled:B,children:[e?P.jsx(Lh,{children:e}):null,P.jsx(RR,{ref:_,disabled:B,"aria-describedby":U?`${y.id}-message`:"","aria-invalid":z==="error"?!0:void 0,min:a,max:c,onChange:E,step:u,$status:z,type:"range",value:T,...Z}),n?P.jsx(Lh,{children:n}):null,r?null:P.jsx(IR,{htmlFor:y.id,children:i?i(T):T})]})]})}),OR=G.label`
1566
1566
  all: initial;
1567
1567
  ${e=>e.$hideLabel?fr:pe`
1568
1568
  box-sizing: border-box;
package/index.mjs CHANGED
@@ -14044,7 +14044,7 @@ const LR = j.span`
14044
14044
  },
14045
14045
  [p, f]
14046
14046
  ), P = f ?? b, {
14047
- status: N = "normal",
14047
+ status: N,
14048
14048
  className: F,
14049
14049
  disabled: B = !1,
14050
14050
  style: X,
@@ -14069,7 +14069,7 @@ const LR = j.span`
14069
14069
  ref: _,
14070
14070
  disabled: B,
14071
14071
  "aria-describedby": K ? `${y.id}-message` : "",
14072
- "aria-invalid": N === "error",
14072
+ "aria-invalid": N === "error" ? !0 : void 0,
14073
14073
  min: a,
14074
14074
  max: c,
14075
14075
  onChange: C,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companycam/slab-web",
3
- "version": "1.31.8",
3
+ "version": "1.31.9",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {