@companycam/slab-web 1.31.6 → 1.31.8
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/index.js +4 -2
- package/index.mjs +5 -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;
|
|
@@ -1281,7 +1282,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
|
|
|
1281
1282
|
background: var(--cc_color_background_1);
|
|
1282
1283
|
border-width: var(--cc_size_border_width_s);
|
|
1283
1284
|
border-style: dashed;
|
|
1284
|
-
border-color: ${e
|
|
1285
|
+
border-color: ${e=>!e.$status||e.$status==="normal"?"var(--cc_color_border_input_inactive)":It(e.$status).accentColor};
|
|
1285
1286
|
border-radius: var(--cc_size_border_radius_m);
|
|
1286
1287
|
`,gR=G.div`
|
|
1287
1288
|
position: relative;
|
|
@@ -1318,7 +1319,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Gs]+=1);const Y0=G.span`
|
|
|
1318
1319
|
&:hover {
|
|
1319
1320
|
background: var(--cc_color_button_background_primary_alpha_10);
|
|
1320
1321
|
}
|
|
1321
|
-
`;function _R({messages:e,id:n,status:t}){return P.jsx("div",{role:"region","aria-live":"assertive",children:P.jsx(hR,{id:n,children:e.map((r,i)=>P.jsx(pR,{children:P.jsxs(Vg,{$status:t,children:[P.jsx(Hg,{className:`mdi mdi-${It(t).icon}`,"aria-hidden":"true"}),P.jsx(Bg,{children:r})]})},i))})})}const yR=w.forwardRef(({onDrop:e,onDropAccepted:n,onDropRejected:t,accept:r,billboard:i,dropZoneStyle:o,fileUploadButtonLabel:a,multiple:c=!0,loading:u,messages:f,maxSize:p=1/0,...g},y)=>{const{className:_,message:b,status:x
|
|
1322
|
+
`;function _R({messages:e,id:n,status:t}){return P.jsx("div",{role:"region","aria-live":"assertive",children:P.jsx(hR,{id:n,children:e.map((r,i)=>P.jsx(pR,{children:P.jsxs(Vg,{$status:t,children:[P.jsx(Hg,{className:`mdi mdi-${It(t).icon}`,"aria-hidden":"true"}),P.jsx(Bg,{children:r})]})},i))})})}const yR=w.forwardRef(({onDrop:e,onDropAccepted:n,onDropRejected:t,accept:r,billboard:i,dropZoneStyle:o,fileUploadButtonLabel:a,multiple:c=!0,loading:u,messages:f,maxSize:p=1/0,...g},y)=>{const{className:_,message:b,status:x,style:E,...T}=g,[z,L]=w.useState(!1),B=Z=>{const se=Z.target.files,ae=(r??"").split(",").map(ce=>ce.trim()),ue=[],fe=[];se&&Array.from(se).forEach(ce=>{ce.size<=p&&ae.includes(ce.type)?ue.push(ce):fe.push(ce)}),ue.length>0&&n&&n(ue),fe.length>0&&t&&t(fe),e(ue,fe,Z),L(!1)},X=Z=>{L(!0)},U=Z=>{L(!1)};return P.jsxs(gR,{onDragEnter:X,onDragLeave:U,$isDragOver:z,children:[P.jsx(mR,{ref:y,"aria-describedby":b?`${g.id}-message`:"","aria-disabled":u==null?void 0:u.isVisible,"aria-invalid":x==="error"?!0:void 0,type:"file",onChange:B,accept:r,multiple:c,$status:x,$isDragOver:z,...T}),P.jsxs(od,{htmlFor:g.id,$status:x,style:o,children:[u!=null&&u.isVisible?u.component:null,!(u!=null&&u.isVisible)&&i?P.jsx(Ig,{title:i.title,iconName:i.iconName,message:i.message,color:i.color,image:i.image}):null,!(u!=null&&u.isVisible)&&a?P.jsx(vR,{children:a}):null]}),f?P.jsx(_R,{id:b?`${g.id}-message`:"",messages:f,status:x},g.id):null]})}),bR=G.label`
|
|
1322
1323
|
all: initial;
|
|
1323
1324
|
${e=>e.$hideLabel?fr:pe`
|
|
1324
1325
|
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;
|
|
@@ -13478,7 +13479,7 @@ const bR = j.ul`
|
|
|
13478
13479
|
background: var(--cc_color_background_1);
|
|
13479
13480
|
border-width: var(--cc_size_border_width_s);
|
|
13480
13481
|
border-style: dashed;
|
|
13481
|
-
border-color: ${(e) => e.$status === "normal" ? "var(--cc_color_border_input_inactive)" : Vt(e.$status).accentColor};
|
|
13482
|
+
border-color: ${(e) => !e.$status || e.$status === "normal" ? "var(--cc_color_border_input_inactive)" : Vt(e.$status).accentColor};
|
|
13482
13483
|
border-radius: var(--cc_size_border_radius_m);
|
|
13483
13484
|
`, xR = j.div`
|
|
13484
13485
|
position: relative;
|
|
@@ -13543,7 +13544,7 @@ const RN = Gt(
|
|
|
13543
13544
|
maxSize: p = 1 / 0,
|
|
13544
13545
|
...g
|
|
13545
13546
|
}, y) => {
|
|
13546
|
-
const { className: _, message: b, status: w
|
|
13547
|
+
const { className: _, message: b, status: w, style: C, ...P } = g, [N, F] = nt(!1), B = (Z) => {
|
|
13547
13548
|
const se = Z.target.files, ae = (r ?? "").split(",").map((ce) => ce.trim()), ue = [], fe = [];
|
|
13548
13549
|
se && Array.from(se).forEach((ce) => {
|
|
13549
13550
|
ce.size <= p && ae.includes(ce.type) ? ue.push(ce) : fe.push(ce);
|
|
@@ -13566,7 +13567,7 @@ const RN = Gt(
|
|
|
13566
13567
|
ref: y,
|
|
13567
13568
|
"aria-describedby": b ? `${g.id}-message` : "",
|
|
13568
13569
|
"aria-disabled": u == null ? void 0 : u.isVisible,
|
|
13569
|
-
"aria-invalid": w === "error",
|
|
13570
|
+
"aria-invalid": w === "error" ? !0 : void 0,
|
|
13570
13571
|
type: "file",
|
|
13571
13572
|
onChange: B,
|
|
13572
13573
|
accept: r,
|
|
@@ -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;
|