freemium-ui 2.0.0-beta.46 → 2.0.0-beta.48
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.cjs.js +28 -25
- package/index.d.ts +3 -1
- package/index.js +28 -25
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -567,7 +567,7 @@ onMouseDown:e=>{var n
|
|
|
567
567
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
568
568
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
569
569
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
570
|
-
`,Ln=on.button`
|
|
570
|
+
`,Ln=on.button.attrs((e=>({"aria-label":e["aria-label"]||"Trigger Button"})))`
|
|
571
571
|
border: none;
|
|
572
572
|
padding: 0;
|
|
573
573
|
margin: 0;
|
|
@@ -2552,6 +2552,7 @@ fill:t.fill})))),id=on(rr)`
|
|
|
2552
2552
|
margin-top: 8px;
|
|
2553
2553
|
transform: rotate(-180deg);
|
|
2554
2554
|
`,Hd=on(Ku)`
|
|
2555
|
+
cursor: pointer;
|
|
2555
2556
|
transform: rotate(-180deg);
|
|
2556
2557
|
transition: transform 0.2s ease-in-out;
|
|
2557
2558
|
display: grid;
|
|
@@ -3626,8 +3627,8 @@ className:"input-label","aria-label":a,htmlFor:o
|
|
|
3626
3627
|
},a,d&&e.createElement(zn,null,"*"))),e.createElement(md,{open:x,defaultOpen:M,
|
|
3627
3628
|
name:f,required:d,disabled:u,value:b?.[r]??void 0,onValueChange:e=>{if(s)return
|
|
3628
3629
|
;const t=i.find((t=>t?.[r]===e));l?.(t??null)}},e.createElement(Dd,{
|
|
3629
|
-
className:`SelectTrigger ${g??""}`.trim(),"aria-label":"
|
|
3630
|
-
|
|
3630
|
+
className:`SelectTrigger ${g??""}`.trim(),"aria-label":a??"dropdown",disabled:u,
|
|
3631
|
+
id:o,$isErrored:!!w,"aria-invalid":!!w,width:v,style:y},e.createElement(gd,{
|
|
3631
3632
|
className:"SelectValue",placeholder:c}),e.createElement(Hd,{
|
|
3632
3633
|
className:"SelectIcon"},e.createElement(rr,{fill:n.colors.text.primary
|
|
3633
3634
|
}))),e.createElement(yd,null,e.createElement(zd,{className:"SelectContent",
|
|
@@ -3647,7 +3648,7 @@ className:"SelectScrollButton"},e.createElement(rr,{fill:n.colors.text.primary
|
|
|
3647
3648
|
})))))),w&&z&&e.createElement(vc,null,z))
|
|
3648
3649
|
},am=({itemIdentifier:t="id",label:n,id:r,items:a=[],placeholder:o,readOnly:i=!1,disabled:l=!1,isRequired:c=!1,hideClear:s=!1,itemToString:u,name:d,filterKey:h,width:p,customValues:f,onCustomValueAdd:m,itemComponent:v,emptyItemsText:g,getCustomMessage:y,onChange:b,useComboboxProps:w,isErrored:C,errorText:z,defaultSelectedItem:M,isMenuLoading:x,contentProps:E})=>{
|
|
3649
3650
|
const S=qt(),[_,H]=e.useState(a),{isOpen:D,selectedItem:L,getToggleButtonProps:V,getLabelProps:A,getMenuProps:k,openMenu:T,highlightedIndex:R,setHighlightedIndex:P,setInputValue:I,inputValue:O,getItemProps:N,getInputProps:F}=ff({
|
|
3650
|
-
selectedItem:M,items:_,onSelectedItemChange:({selectedItem:e})=>{
|
|
3651
|
+
id:r,selectedItem:M,items:_,onSelectedItemChange:({selectedItem:e})=>{
|
|
3651
3652
|
console.log("onSelectedItemChange",{sI:e}),b?.(e??null)},
|
|
3652
3653
|
onIsOpenChange:({isOpen:e})=>{
|
|
3653
3654
|
if(e&&(""===O||L&&h&&(O||"").toLowerCase()===`${L?.[h||t]||""}`.toLowerCase()))H(a),
|
|
@@ -3658,14 +3659,14 @@ D&&(""===e||L&&h&&(e||"").toLowerCase()===`${L?.[h||t]||""}`.toLowerCase())?H(a)
|
|
|
3658
3659
|
;return e.createElement(ld,{width:p},e.createElement(wn,{
|
|
3659
3660
|
className:"input-label",...A({disabled:l,readOnly:i})
|
|
3660
3661
|
},n,c&&e.createElement(zn,null,"*")),e.createElement(Kf,{...F({name:d,
|
|
3661
|
-
readOnly:i,disabled:l
|
|
3662
|
+
readOnly:i,disabled:l}),placeholder:o,
|
|
3662
3663
|
endAdornment:e.createElement(pd,null,!l&&!i&&!s&&L&&e.createElement(Mn,{
|
|
3663
|
-
onClick:e=>{
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3664
|
+
"aria-label":"close",onClick:e=>{console.log("onClick WORKING"),I(""),b?.(null),
|
|
3665
|
+
T(),e.stopPropagation()},style:{borderRadius:"50%"}},e.createElement(qn,{
|
|
3666
|
+
fill:S.colors.text.primary})),e.createElement(Mn,{...V({disabled:l,readOnly:i,
|
|
3667
|
+
"aria-label":"toggle-button"})},e.createElement(id,{$isOpen:B,
|
|
3668
|
+
fill:S.colors.text.primary,width:8,height:8})))}),!i&&!l&&e.createElement(sd,{
|
|
3669
|
+
$isOpen:D,...E,...k({disabled:l,readOnly:i})
|
|
3669
3670
|
},x?e.createElement(hd,null,e.createElement(tm,null)):e.createElement(e.Fragment,null,D&&0===_.length&&e.createElement(e.Fragment,null,f?e.createElement(ud,null,e.createElement(dd,{
|
|
3670
3671
|
onClick:e=>{e.stopPropagation(),m&&m({inputValue:O,customValues:!0}),I("")}
|
|
3671
3672
|
},y?.(O)||"Click to add")):e.createElement(ud,{readOnly:!0
|
|
@@ -15668,16 +15669,17 @@ fillRule:"evenodd",clipRule:"evenodd",
|
|
|
15668
15669
|
d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0ZM8 14.6C4.35492 14.6 1.4 11.6451 1.4 8C1.4 4.35492 4.35492 1.4 8 1.4C11.6451 1.4 14.6 4.35492 14.6 8C14.5945 11.6428 11.6428 14.5945 8 14.6ZM9 8L10.82 6.17L10.83 6.18C11.1061 5.90386 11.1061 5.45614 10.83 5.18C10.5539 4.90386 10.1061 4.90386 9.83 5.18L8 7L6.18 5.17C5.90386 4.89386 5.45614 4.89386 5.18 5.17C4.90386 5.44614 4.90386 5.89386 5.18 6.17L7 8L5.17 9.82C4.89386 10.0961 4.89386 10.5439 5.17 10.82C5.44614 11.0961 5.89386 11.0961 6.17 10.82L8 9L9.83 10.83C10.1061 11.1061 10.5539 11.1061 10.83 10.83C11.1061 10.5539 11.1061 10.1061 10.83 9.83L9 8Z",
|
|
15669
15670
|
fill:n.colors.text.semantic.error}))},nj=({index:t,...n})=>{
|
|
15670
15671
|
const r=qt(),{updateToasts:a,windowState:o}=e.useContext(cB)??{},i=e.useRef(null)
|
|
15671
|
-
;return e.createElement(e.Fragment,null,e.createElement(YB,{
|
|
15672
|
-
toastType:n.type,toastIndex:t,
|
|
15673
|
-
duration:n.delay??3e3,
|
|
15674
|
-
},e.createElement(ZB,{
|
|
15675
|
-
delay:n.delay??3e3
|
|
15672
|
+
;return e.createElement(e.Fragment,null,e.createElement(YB,{role:"alert",
|
|
15673
|
+
"aria-live":"polite",ref:i,toastType:n.type,toastIndex:t,
|
|
15674
|
+
className:`ToastRoot Toast-${n.id??""}`.trim(),duration:n.delay??3e3,
|
|
15675
|
+
onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}},e.createElement(ZB,{
|
|
15676
|
+
className:"ToastProgress",windowState:o,toastType:n.type,delay:n.delay??3e3
|
|
15676
15677
|
}),e.createElement(qB,null,n.customIcon?e.createElement(e.Fragment,null,n.customIcon):e.createElement(e.Fragment,null,"success"===n.type&&e.createElement(JB,{
|
|
15677
15678
|
fill:r.colors.text.semantic.success}),"warning"===n.type&&e.createElement(ej,{
|
|
15678
15679
|
fill:r.colors.text.semantic.warning}),"error"===n.type&&e.createElement(tj,{
|
|
15679
15680
|
fill:r.colors.text.semantic.error})),e.createElement(WB,{className:"ToastTitle"
|
|
15680
|
-
},n.text),e.createElement(GB,{className:"ToastAction",asChild:!0,
|
|
15681
|
+
},n.text),e.createElement(GB,{className:"ToastAction",asChild:!0,
|
|
15682
|
+
altText:"Close","aria-label":"Close"
|
|
15681
15683
|
},e.createElement(Ln,null,e.createElement(qn,{fill:r.colors.text.primary}))))))
|
|
15682
15684
|
},rj=()=>{const n=((t=vN())=>{
|
|
15683
15685
|
const n=`ui-${t}`,{isBrowser:r}=XB(),[a,o]=e.useState(r?QB(n):null)
|
|
@@ -16063,14 +16065,14 @@ className:"BoxedRadioLabelHeading"
|
|
|
16063
16065
|
},n):e.createElement(e.Fragment,null,n),a&&e.createElement(pc,{
|
|
16064
16066
|
className:"BoxedRadioLabelDescription"},a))))
|
|
16065
16067
|
}))),o&&i&&e.createElement(vc,null,i)),
|
|
16066
|
-
exports.Button=tr,exports.ButtonDropdown=({size:t="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>e.createElement("div",
|
|
16067
|
-
id:g,name:y,size:t,variant:n,
|
|
16068
|
-
onClick:e=>c?.(o,e),
|
|
16068
|
+
exports.Button=tr,exports.ButtonDropdown=({size:t="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>e.createElement("div",{
|
|
16069
|
+
style:{display:"flex"}},e.createElement(or,{id:g,name:y,size:t,variant:n,
|
|
16070
|
+
inline:a,disabled:v||r,"aria-disabled":v||r,onClick:e=>c?.(o,e),
|
|
16069
16071
|
"aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0
|
|
16070
16072
|
},e.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),e.createElement(Al,null,e.createElement(kl,{
|
|
16071
16073
|
asChild:!0},e.createElement(ir,{id:`${g}-more`,name:`${y}-more`,size:t,
|
|
16072
16074
|
variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
|
|
16073
|
-
"aria-
|
|
16075
|
+
"aria-label":"Additional options"},e.createElement(ar,{variant:n
|
|
16074
16076
|
}))),e.createElement(Tl,null,e.createElement(Pl,{side:u,sideOffset:d,align:h,
|
|
16075
16077
|
alignOffset:p,arrowPadding:f,avoidCollisions:m,className:"DropdownMenuContent"
|
|
16076
16078
|
},(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((t=>e.createElement(Il,{id:t?.[i],
|
|
@@ -16398,10 +16400,11 @@ className:"toggle-off",...yj[i]})))
|
|
|
16398
16400
|
},exports.Tooltip=({position:t="bottom",label:n,html:r,style:a={},children:o,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
16399
16401
|
const[h="bottom",p="center"]=t.split("-");return e.createElement(Gj,{
|
|
16400
16402
|
delayDuration:c,...u},e.createElement(Kj,{...d,open:!l&&void 0
|
|
16401
|
-
},e.createElement(qj,{className:"TooltipTrigger",asChild:!0
|
|
16402
|
-
},e.createElement(Ln,{
|
|
16403
|
-
},o)),e.createElement(Zj,null,e.createElement(Wj,{forceMount:!0,
|
|
16404
|
-
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16403
|
+
},e.createElement(qj,{className:"TooltipTrigger",asChild:!0,
|
|
16404
|
+
"aria-label":"string"==typeof o?o:"TooltipTrigger"},e.createElement(Ln,{
|
|
16405
|
+
className:i},o)),e.createElement(Zj,null,e.createElement(Wj,{forceMount:!0,
|
|
16406
|
+
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16407
|
+
"aria-live":"polite",side:h,align:p
|
|
16405
16408
|
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(Yj,null)))))
|
|
16406
16409
|
},
|
|
16407
16410
|
exports.Transition=Xj,exports.TriggerButtonWrapper=Ln,exports.Typography=Qn,exports.Warning=Zn,
|
package/index.d.ts
CHANGED
|
@@ -1666,7 +1666,9 @@ declare const CardActions: styled_components.IStyledComponent<"web", styled_comp
|
|
|
1666
1666
|
declare const CardTitle: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>;
|
|
1667
1667
|
declare const CardDescription: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1668
1668
|
declare const CardText: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1669
|
-
declare const TriggerButtonWrapper: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
|
|
1669
|
+
declare const TriggerButtonWrapper: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<styled_components_dist_types.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
1670
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
1671
|
+
}>, never>, never>>;
|
|
1670
1672
|
declare const basicHide: () => styled_components.RuleSet<object>;
|
|
1671
1673
|
declare const basicShow: () => styled_components.RuleSet<object>;
|
|
1672
1674
|
declare const contentHide: () => styled_components.RuleSet<object>;
|
package/index.js
CHANGED
|
@@ -563,7 +563,7 @@ onMouseDown:t=>{var n
|
|
|
563
563
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
564
564
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
565
565
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
566
|
-
`,Zn=En.button`
|
|
566
|
+
`,Zn=En.button.attrs((e=>({"aria-label":e["aria-label"]||"Trigger Button"})))`
|
|
567
567
|
border: none;
|
|
568
568
|
padding: 0;
|
|
569
569
|
margin: 0;
|
|
@@ -1668,14 +1668,14 @@ const{__scopeDropdownMenu:n,...r}=e,a=Ul(n);return i(Fl,Ln({},a,r,{ref:t}))
|
|
|
1668
1668
|
&:hover {
|
|
1669
1669
|
background: ${({disabled:e,theme:t})=>e?t.colors.fill.disabled:t.colors.fill.hilight};
|
|
1670
1670
|
}
|
|
1671
|
-
`,oc=({size:e="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>t.createElement("div",
|
|
1672
|
-
id:g,name:y,size:e,variant:n,
|
|
1673
|
-
onClick:e=>c?.(o,e),
|
|
1671
|
+
`,oc=({size:e="normal",variant:n="primary",loading:r=!1,inline:a=!0,defaultSelectedItem:o,idAccessor:i="id",nameAccessor:l="name",onClick:c,options:s,side:u="bottom",sideOffset:d=4,align:h="end",alignOffset:p,arrowPadding:f,avoidCollisions:m,disabled:v,id:g,name:y})=>t.createElement("div",{
|
|
1672
|
+
style:{display:"flex"}},t.createElement(Er,{id:g,name:y,size:e,variant:n,
|
|
1673
|
+
inline:a,disabled:v||r,"aria-disabled":v||r,onClick:e=>c?.(o,e),
|
|
1674
1674
|
"aria-describedby":"string"===(typeof o?.[l]??s?.[0]?.[l])?o?.[l]??s?.[0]?.[l]:void 0
|
|
1675
1675
|
},t.createElement("span",null,o?.[l]??s?.[0]?.[l]??"")),t.createElement(Jl,null,t.createElement(ec,{
|
|
1676
1676
|
asChild:!0},t.createElement(_r,{id:`${g}-more`,name:`${y}-more`,size:e,
|
|
1677
1677
|
variant:n,inline:a,disabled:v||r,"aria-disabled":v||r,
|
|
1678
|
-
"aria-
|
|
1678
|
+
"aria-label":"Additional options"},t.createElement(Sr,{variant:n
|
|
1679
1679
|
}))),t.createElement(tc,null,t.createElement(rc,{side:u,sideOffset:d,align:h,
|
|
1680
1680
|
alignOffset:p,arrowPadding:f,avoidCollisions:m,className:"DropdownMenuContent"
|
|
1681
1681
|
},(s?.filter((e=>e?.[i]!==o?.[i]))??[]).map((e=>t.createElement(ac,{id:e?.[i],
|
|
@@ -2543,6 +2543,7 @@ fill:e.fill})))),Vd=En(xr)`
|
|
|
2543
2543
|
margin-top: 8px;
|
|
2544
2544
|
transform: rotate(-180deg);
|
|
2545
2545
|
`,Jd=En(bd)`
|
|
2546
|
+
cursor: pointer;
|
|
2546
2547
|
transform: rotate(-180deg);
|
|
2547
2548
|
transition: transform 0.2s ease-in-out;
|
|
2548
2549
|
display: grid;
|
|
@@ -3608,8 +3609,8 @@ className:"input-label","aria-label":a,htmlFor:o
|
|
|
3608
3609
|
},a,d&&t.createElement(jn,null,"*"))),t.createElement(Fd,{open:x,defaultOpen:M,
|
|
3609
3610
|
name:f,required:d,disabled:u,value:b?.[r]??void 0,onValueChange:e=>{if(s)return
|
|
3610
3611
|
;const t=i.find((t=>t?.[r]===e));l?.(t??null)}},t.createElement(eh,{
|
|
3611
|
-
className:`SelectTrigger ${g??""}`.trim(),"aria-label":"
|
|
3612
|
-
|
|
3612
|
+
className:`SelectTrigger ${g??""}`.trim(),"aria-label":a??"dropdown",disabled:u,
|
|
3613
|
+
id:o,$isErrored:!!w,"aria-invalid":!!w,width:v,style:y},t.createElement(jd,{
|
|
3613
3614
|
className:"SelectValue",placeholder:c}),t.createElement(Jd,{
|
|
3614
3615
|
className:"SelectIcon"},t.createElement(xr,{fill:n.colors.text.primary
|
|
3615
3616
|
}))),t.createElement($d,null,t.createElement(Gd,{className:"SelectContent",
|
|
@@ -3629,7 +3630,7 @@ className:"SelectScrollButton"},t.createElement(xr,{fill:n.colors.text.primary
|
|
|
3629
3630
|
})))))),w&&z&&t.createElement(Oc,null,z))
|
|
3630
3631
|
},Dm=({itemIdentifier:e="id",label:n,id:r,items:a=[],placeholder:o,readOnly:i=!1,disabled:l=!1,isRequired:c=!1,hideClear:s=!1,itemToString:u,name:d,filterKey:h,width:p,customValues:f,onCustomValueAdd:m,itemComponent:v,emptyItemsText:g,getCustomMessage:y,onChange:b,useComboboxProps:w,isErrored:C,errorText:z,defaultSelectedItem:M,isMenuLoading:x,contentProps:S})=>{
|
|
3631
3632
|
const E=vn(),[_,H]=t.useState(a),{isOpen:D,selectedItem:L,getToggleButtonProps:V,getLabelProps:A,getMenuProps:k,openMenu:T,highlightedIndex:P,setHighlightedIndex:I,setInputValue:R,inputValue:O,getItemProps:N,getInputProps:F}=Nf({
|
|
3632
|
-
selectedItem:M,items:_,onSelectedItemChange:({selectedItem:e})=>{
|
|
3633
|
+
id:r,selectedItem:M,items:_,onSelectedItemChange:({selectedItem:e})=>{
|
|
3633
3634
|
console.log("onSelectedItemChange",{sI:e}),b?.(e??null)},
|
|
3634
3635
|
onIsOpenChange:({isOpen:t})=>{
|
|
3635
3636
|
if(t&&(""===O||L&&h&&(O||"").toLowerCase()===`${L?.[h||e]||""}`.toLowerCase()))H(a),
|
|
@@ -3640,14 +3641,14 @@ D&&(""===t||L&&h&&(t||"").toLowerCase()===`${L?.[h||e]||""}`.toLowerCase())?H(a)
|
|
|
3640
3641
|
;return t.createElement(Ad,{width:p},t.createElement(Fn,{
|
|
3641
3642
|
className:"input-label",...A({disabled:l,readOnly:i})
|
|
3642
3643
|
},n,c&&t.createElement(jn,null,"*")),t.createElement(bm,{...F({name:d,
|
|
3643
|
-
readOnly:i,disabled:l
|
|
3644
|
+
readOnly:i,disabled:l}),placeholder:o,
|
|
3644
3645
|
endAdornment:t.createElement(Od,null,!l&&!i&&!s&&L&&t.createElement($n,{
|
|
3645
|
-
onClick:e=>{
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3646
|
+
"aria-label":"close",onClick:e=>{console.log("onClick WORKING"),R(""),b?.(null),
|
|
3647
|
+
T(),e.stopPropagation()},style:{borderRadius:"50%"}},t.createElement(mr,{
|
|
3648
|
+
fill:E.colors.text.primary})),t.createElement($n,{...V({disabled:l,readOnly:i,
|
|
3649
|
+
"aria-label":"toggle-button"})},t.createElement(Vd,{$isOpen:B,
|
|
3650
|
+
fill:E.colors.text.primary,width:8,height:8})))}),!i&&!l&&t.createElement(Td,{
|
|
3651
|
+
$isOpen:D,...S,...k({disabled:l,readOnly:i})
|
|
3651
3652
|
},x?t.createElement(Rd,null,t.createElement(Em,null)):t.createElement(t.Fragment,null,D&&0===_.length&&t.createElement(t.Fragment,null,f?t.createElement(Pd,null,t.createElement(Id,{
|
|
3652
3653
|
onClick:e=>{e.stopPropagation(),m&&m({inputValue:O,customValues:!0}),R("")}
|
|
3653
3654
|
},y?.(O)||"Click to add")):t.createElement(Pd,{readOnly:!0
|
|
@@ -15858,16 +15859,17 @@ fillRule:"evenodd",clipRule:"evenodd",
|
|
|
15858
15859
|
d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0ZM8 14.6C4.35492 14.6 1.4 11.6451 1.4 8C1.4 4.35492 4.35492 1.4 8 1.4C11.6451 1.4 14.6 4.35492 14.6 8C14.5945 11.6428 11.6428 14.5945 8 14.6ZM9 8L10.82 6.17L10.83 6.18C11.1061 5.90386 11.1061 5.45614 10.83 5.18C10.5539 4.90386 10.1061 4.90386 9.83 5.18L8 7L6.18 5.17C5.90386 4.89386 5.45614 4.89386 5.18 5.17C4.90386 5.44614 4.90386 5.89386 5.18 6.17L7 8L5.17 9.82C4.89386 10.0961 4.89386 10.5439 5.17 10.82C5.44614 11.0961 5.89386 11.0961 6.17 10.82L8 9L9.83 10.83C10.1061 11.1061 10.5539 11.1061 10.83 10.83C11.1061 10.5539 11.1061 10.1061 10.83 9.83L9 8Z",
|
|
15859
15860
|
fill:n.colors.text.semantic.error}))},Rj=({index:e,...n})=>{
|
|
15860
15861
|
const r=vn(),{updateToasts:a,windowState:o}=t.useContext($B)??{},i=t.useRef(null)
|
|
15861
|
-
;return t.createElement(t.Fragment,null,t.createElement(Ej,{
|
|
15862
|
-
toastType:n.type,toastIndex:e,
|
|
15863
|
-
duration:n.delay??3e3,
|
|
15864
|
-
},t.createElement(Vj,{
|
|
15865
|
-
delay:n.delay??3e3
|
|
15862
|
+
;return t.createElement(t.Fragment,null,t.createElement(Ej,{role:"alert",
|
|
15863
|
+
"aria-live":"polite",ref:i,toastType:n.type,toastIndex:e,
|
|
15864
|
+
className:`ToastRoot Toast-${n.id??""}`.trim(),duration:n.delay??3e3,
|
|
15865
|
+
onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}},t.createElement(Vj,{
|
|
15866
|
+
className:"ToastProgress",windowState:o,toastType:n.type,delay:n.delay??3e3
|
|
15866
15867
|
}),t.createElement(Lj,null,n.customIcon?t.createElement(t.Fragment,null,n.customIcon):t.createElement(t.Fragment,null,"success"===n.type&&t.createElement(Tj,{
|
|
15867
15868
|
fill:r.colors.text.semantic.success}),"warning"===n.type&&t.createElement(Pj,{
|
|
15868
15869
|
fill:r.colors.text.semantic.warning}),"error"===n.type&&t.createElement(Ij,{
|
|
15869
15870
|
fill:r.colors.text.semantic.error})),t.createElement(_j,{className:"ToastTitle"
|
|
15870
|
-
},n.text),t.createElement(Hj,{className:"ToastAction",asChild:!0,
|
|
15871
|
+
},n.text),t.createElement(Hj,{className:"ToastAction",asChild:!0,
|
|
15872
|
+
altText:"Close","aria-label":"Close"
|
|
15871
15873
|
},t.createElement(Zn,null,t.createElement(mr,{fill:r.colors.text.primary}))))))
|
|
15872
15874
|
},Oj=()=>{const e=((e=qN())=>{
|
|
15873
15875
|
const t=`ui-${e}`,{isBrowser:n}=Aj(),[r,a]=m(n?kj(t):null);return p((()=>{
|
|
@@ -16116,10 +16118,11 @@ container:a},r)))},H$=b$,D$=En(c(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=o$(n)
|
|
|
16116
16118
|
`,V$=En(x$)``,A$=En(S$)``,k$=En(E$)``,T$=En(_$)``,P$=({position:e="bottom",label:n,html:r,style:a={},children:o,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
16117
16119
|
const[h="bottom",p="center"]=e.split("-");return t.createElement(V$,{
|
|
16118
16120
|
delayDuration:c,...u},t.createElement(A$,{...d,open:!l&&void 0
|
|
16119
|
-
},t.createElement(k$,{className:"TooltipTrigger",asChild:!0
|
|
16120
|
-
},t.createElement(Zn,{
|
|
16121
|
-
},o)),t.createElement(T$,null,t.createElement(L$,{forceMount:!0,
|
|
16122
|
-
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16121
|
+
},t.createElement(k$,{className:"TooltipTrigger",asChild:!0,
|
|
16122
|
+
"aria-label":"string"==typeof o?o:"TooltipTrigger"},t.createElement(Zn,{
|
|
16123
|
+
className:i},o)),t.createElement(T$,null,t.createElement(L$,{forceMount:!0,
|
|
16124
|
+
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16125
|
+
"aria-live":"polite",side:h,align:p
|
|
16123
16126
|
},n?t.createElement(t.Fragment,null,n):t.createElement(t.Fragment,null,r),s&&t.createElement(D$,null)))))
|
|
16124
16127
|
},I$=e=>{
|
|
16125
16128
|
const{styles:n,in:r,timeout:a=150,transition:o=`all ${a}ms ease-in-out`,children:i,...l}=e
|