@companycam/slab-web 1.31.7 → 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 +3 -1
  2. package/index.mjs +4 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -922,6 +922,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
922
922
  `:null}
923
923
  `;function sM({ccMargin:e,...n}){return P.jsx(oM,{$ccMargin:e,...n})}const aM=G.div`
924
924
  display: grid; /* kill extra space created by display: inline-flex children (radios, checkboxes) */
925
+ position: relative;
925
926
  `,Vg=G.div`
926
927
  display: flex;
927
928
  align-items: center;
@@ -1561,7 +1562,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
1561
1562
  min-width: var(--cc_size_spacing_xxl);
1562
1563
  text-align: center;
1563
1564
  margin-inline-start: var(--cc_size_spacing_m);
1564
- `,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`
1565
1566
  all: initial;
1566
1567
  ${e=>e.$hideLabel?fr:pe`
1567
1568
  box-sizing: border-box;
@@ -2181,6 +2182,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
2181
2182
  `,eO=G.label`
2182
2183
  all: initial;
2183
2184
  cursor: pointer;
2185
+ position: relative;
2184
2186
  width: ${e=>`var(--cc_size_avatar_${il[e.$size||"small"]})`};
2185
2187
  height: ${e=>`var(--cc_size_avatar_${il[e.$size||"small"]})`};
2186
2188
  transition: scale 0.3s ease-out;
package/index.mjs CHANGED
@@ -6589,6 +6589,7 @@ function PN({ ccMargin: e, ...n }) {
6589
6589
  }
6590
6590
  const pM = j.div`
6591
6591
  display: grid; /* kill extra space created by display: inline-flex children (radios, checkboxes) */
6592
+ position: relative;
6592
6593
  `, im = j.div`
6593
6594
  display: flex;
6594
6595
  align-items: center;
@@ -14043,7 +14044,7 @@ const LR = j.span`
14043
14044
  },
14044
14045
  [p, f]
14045
14046
  ), P = f ?? b, {
14046
- status: N = "normal",
14047
+ status: N,
14047
14048
  className: F,
14048
14049
  disabled: B = !1,
14049
14050
  style: X,
@@ -14068,7 +14069,7 @@ const LR = j.span`
14068
14069
  ref: _,
14069
14070
  disabled: B,
14070
14071
  "aria-describedby": K ? `${y.id}-message` : "",
14071
- "aria-invalid": N === "error",
14072
+ "aria-invalid": N === "error" ? !0 : void 0,
14072
14073
  min: a,
14073
14074
  max: c,
14074
14075
  onChange: C,
@@ -23020,6 +23021,7 @@ const _l = {
23020
23021
  `, jL = j.label`
23021
23022
  all: initial;
23022
23023
  cursor: pointer;
23024
+ position: relative;
23023
23025
  width: ${(e) => `var(--cc_size_avatar_${_l[e.$size || "small"]})`};
23024
23026
  height: ${(e) => `var(--cc_size_avatar_${_l[e.$size || "small"]})`};
23025
23027
  transition: scale 0.3s ease-out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companycam/slab-web",
3
- "version": "1.31.7",
3
+ "version": "1.31.9",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {