freemium-ui 2.0.0-beta.45 → 2.0.0-beta.47
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 +32 -29
- package/index.d.ts +10 -4
- package/index.js +34 -32
- 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,13 +3659,12 @@ 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
|
-
$isOpen:B,fill:S.colors.text.primary,width:8,height:8})))
|
|
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
|
+
},e.createElement(id,{$isOpen:B,fill:S.colors.text.primary,width:8,height:8})))
|
|
3668
3668
|
}),!i&&!l&&e.createElement(sd,{$isOpen:D,...E,...k({disabled:l,readOnly:i})
|
|
3669
3669
|
},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
3670
|
onClick:e=>{e.stopPropagation(),m&&m({inputValue:O,customValues:!0}),I("")}
|
|
@@ -15668,16 +15668,17 @@ fillRule:"evenodd",clipRule:"evenodd",
|
|
|
15668
15668
|
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
15669
|
fill:n.colors.text.semantic.error}))},nj=({index:t,...n})=>{
|
|
15670
15670
|
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
|
|
15671
|
+
;return e.createElement(e.Fragment,null,e.createElement(YB,{role:"alert",
|
|
15672
|
+
"aria-live":"polite",ref:i,toastType:n.type,toastIndex:t,
|
|
15673
|
+
className:`ToastRoot Toast-${n.id??""}`.trim(),duration:n.delay??3e3,
|
|
15674
|
+
onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}},e.createElement(ZB,{
|
|
15675
|
+
className:"ToastProgress",windowState:o,toastType:n.type,delay:n.delay??3e3
|
|
15676
15676
|
}),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
15677
|
fill:r.colors.text.semantic.success}),"warning"===n.type&&e.createElement(ej,{
|
|
15678
15678
|
fill:r.colors.text.semantic.warning}),"error"===n.type&&e.createElement(tj,{
|
|
15679
15679
|
fill:r.colors.text.semantic.error})),e.createElement(WB,{className:"ToastTitle"
|
|
15680
|
-
},n.text),e.createElement(GB,{className:"ToastAction",asChild:!0,
|
|
15680
|
+
},n.text),e.createElement(GB,{className:"ToastAction",asChild:!0,
|
|
15681
|
+
altText:"Close","aria-label":"Close"
|
|
15681
15682
|
},e.createElement(Ln,null,e.createElement(qn,{fill:r.colors.text.primary}))))))
|
|
15682
15683
|
},rj=()=>{const n=((t=vN())=>{
|
|
15683
15684
|
const n=`ui-${t}`,{isBrowser:r}=XB(),[a,o]=e.useState(r?QB(n):null)
|
|
@@ -16079,18 +16080,19 @@ disabled:t?.disabled,className:"DropdownMenuItem",key:t?.[i],onSelect:()=>c?.(t)
|
|
|
16079
16080
|
exports.CardActions=Sn,exports.CardContent=En,exports.CardDescription=Hn,
|
|
16080
16081
|
exports.CardText=Dn,
|
|
16081
16082
|
exports.CardTitle=_n,exports.Checkbox=Ac,exports.ChevronUp=rr,
|
|
16082
|
-
exports.Confirmation=({isOpen:t,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,
|
|
16083
|
+
exports.Confirmation=({isOpen:t,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,clickOutToClose:d=!1,bodyStyles:h,contentStyles:p,footerStyles:f,width:m="520px"})=>e.createElement(Ds,{
|
|
16083
16084
|
open:t,onOpenChange:e=>{e||o?.("root")}
|
|
16084
|
-
},e.createElement(Ls,null,e.createElement(ks,{forceMount:!0,style:
|
|
16085
|
-
className:"AlertDialogOverlay",onClick:
|
|
16086
|
-
forceMount:!0,className:"AlertDialogContent",style:{...
|
|
16087
|
-
},n&&e.createElement(Rs,{className:"AlertDialogTitle"
|
|
16085
|
+
},e.createElement(Ls,null,e.createElement(ks,{forceMount:!0,style:h,
|
|
16086
|
+
className:"AlertDialogOverlay",onClick:e=>{d&&o?.("overlay",e)}
|
|
16087
|
+
}),e.createElement(Ts,{forceMount:!0,className:"AlertDialogContent",style:{...p,
|
|
16088
|
+
width:m}},n&&e.createElement(Rs,{className:"AlertDialogTitle"
|
|
16088
16089
|
},n),r&&e.createElement(Ps,{$hasChildren:!!l,className:"AlertDialogDescription"
|
|
16089
|
-
},r),l?e.createElement(e.Fragment,null,l):null,e.createElement(Is,{style:
|
|
16090
|
+
},r),l?e.createElement(e.Fragment,null,l):null,e.createElement(Is,{style:f
|
|
16090
16091
|
},i&&e.createElement(Vs,{asChild:!0},e.createElement(tr,{variant:"secondary",
|
|
16091
|
-
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:
|
|
16092
|
-
"aria-label":i},i)),u&&e.createElement(As,{
|
|
16093
|
-
variant:"primary","aria-disabled":s,disabled:s,
|
|
16092
|
+
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:e=>{
|
|
16093
|
+
e.preventDefault(),o?.("button",e)},"aria-label":i},i)),u&&e.createElement(As,{
|
|
16094
|
+
asChild:!0},e.createElement(tr,{variant:"primary","aria-disabled":s,disabled:s,
|
|
16095
|
+
onClick:e=>{e.preventDefault(),a?.(e)},"aria-label":u
|
|
16094
16096
|
},u)))))),exports.CrossIcon=qn,exports.DatePicker=t=>{
|
|
16095
16097
|
const{placeholder:n,name:r,isRequired:a,label:o,isErrored:i,errorText:l,id:c,disabled:s,displayFormat:u="YYYY-MM-DD",...d}=t
|
|
16096
16098
|
;return e.createElement(jR,{id:`date-picker-container-${c??""}`.trim(),
|
|
@@ -16397,10 +16399,11 @@ className:"toggle-off",...yj[i]})))
|
|
|
16397
16399
|
},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})=>{
|
|
16398
16400
|
const[h="bottom",p="center"]=t.split("-");return e.createElement(Gj,{
|
|
16399
16401
|
delayDuration:c,...u},e.createElement(Kj,{...d,open:!l&&void 0
|
|
16400
|
-
},e.createElement(qj,{className:"TooltipTrigger",asChild:!0
|
|
16401
|
-
},e.createElement(Ln,{
|
|
16402
|
-
},o)),e.createElement(Zj,null,e.createElement(Wj,{forceMount:!0,
|
|
16403
|
-
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16402
|
+
},e.createElement(qj,{className:"TooltipTrigger",asChild:!0,
|
|
16403
|
+
"aria-label":"string"==typeof o?o:"TooltipTrigger"},e.createElement(Ln,{
|
|
16404
|
+
className:i},o)),e.createElement(Zj,null,e.createElement(Wj,{forceMount:!0,
|
|
16405
|
+
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16406
|
+
"aria-live":"polite",side:h,align:p
|
|
16404
16407
|
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(Yj,null)))))
|
|
16405
16408
|
},
|
|
16406
16409
|
exports.Transition=Xj,exports.TriggerButtonWrapper=Ln,exports.Typography=Qn,exports.Warning=Zn,
|
package/index.d.ts
CHANGED
|
@@ -253,6 +253,10 @@ interface ConfirmationProps {
|
|
|
253
253
|
* Is the cancel button disabled
|
|
254
254
|
*/
|
|
255
255
|
cancelButtonDisabled?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Should the confirmation close when clicking outside
|
|
258
|
+
*/
|
|
259
|
+
clickOutToClose?: boolean;
|
|
256
260
|
/**
|
|
257
261
|
* Title of the confirmation
|
|
258
262
|
*/
|
|
@@ -268,11 +272,11 @@ interface ConfirmationProps {
|
|
|
268
272
|
/**
|
|
269
273
|
* Function to be called when the confirmation is dismissed
|
|
270
274
|
*/
|
|
271
|
-
onDismiss?: (type: 'overlay' | 'button' | 'root') => void;
|
|
275
|
+
onDismiss?: (type: 'overlay' | 'button' | 'root', event?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
272
276
|
/**
|
|
273
277
|
* Function to be called when the confirmation is confirmed
|
|
274
278
|
*/
|
|
275
|
-
onConfirm?:
|
|
279
|
+
onConfirm?: React.DOMAttributes<HTMLButtonElement>['onClick'];
|
|
276
280
|
/**
|
|
277
281
|
* Confirm button text
|
|
278
282
|
*/
|
|
@@ -298,7 +302,7 @@ interface ConfirmationProps {
|
|
|
298
302
|
/**
|
|
299
303
|
* Confirmation component is used to show a confirmation dialog to the user. It is used to confirm an action before it is executed.
|
|
300
304
|
*/
|
|
301
|
-
declare const Confirmation: ({ isOpen, title, description, onConfirm, onDismiss, cancelButtonText, children, cancelButtonDisabled, confirmButtonDisabled, confirmButtonText, bodyStyles, contentStyles, footerStyles, width, }: ConfirmationProps) => react__default.JSX.Element;
|
|
305
|
+
declare const Confirmation: ({ isOpen, title, description, onConfirm, onDismiss, cancelButtonText, children, cancelButtonDisabled, confirmButtonDisabled, confirmButtonText, clickOutToClose, bodyStyles, contentStyles, footerStyles, width, }: ConfirmationProps) => react__default.JSX.Element;
|
|
302
306
|
|
|
303
307
|
type DrawerSizeType = 'default' | 'medium' | 'small' | 'large' | 'x-large';
|
|
304
308
|
type DrawerPlacement = 'left' | 'right';
|
|
@@ -1662,7 +1666,9 @@ declare const CardActions: styled_components.IStyledComponent<"web", styled_comp
|
|
|
1662
1666
|
declare const CardTitle: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>>;
|
|
1663
1667
|
declare const CardDescription: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1664
1668
|
declare const CardText: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
1665
|
-
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>>;
|
|
1666
1672
|
declare const basicHide: () => styled_components.RuleSet<object>;
|
|
1667
1673
|
declare const basicShow: () => styled_components.RuleSet<object>;
|
|
1668
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;
|
|
@@ -2068,21 +2068,21 @@ const{__scopeAlertDialog:t,...n}=e,r=Is(t);return i(_s,Ln({},r,n,{modal:!0}))
|
|
|
2068
2068
|
padding: 16px;
|
|
2069
2069
|
gap: 8px;
|
|
2070
2070
|
justify-content: flex-end;
|
|
2071
|
-
`,lu=({isOpen:e,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,
|
|
2071
|
+
`,lu=({isOpen:e,title:n,description:r,onConfirm:a,onDismiss:o,cancelButtonText:i,children:l,cancelButtonDisabled:c,confirmButtonDisabled:s,confirmButtonText:u,clickOutToClose:d=!1,bodyStyles:h,contentStyles:p,footerStyles:f,width:m="520px"})=>t.createElement(Qs,{
|
|
2072
2072
|
open:e,onOpenChange:e=>{e||o?.("root")}
|
|
2073
|
-
},t.createElement(Js,null,t.createElement(nu,{forceMount:!0,style:
|
|
2074
|
-
className:"AlertDialogOverlay",onClick:
|
|
2075
|
-
forceMount:!0,className:"AlertDialogContent",style:{...
|
|
2076
|
-
},n&&t.createElement(au,{className:"AlertDialogTitle"
|
|
2073
|
+
},t.createElement(Js,null,t.createElement(nu,{forceMount:!0,style:h,
|
|
2074
|
+
className:"AlertDialogOverlay",onClick:e=>{d&&o?.("overlay",e)}
|
|
2075
|
+
}),t.createElement(ru,{forceMount:!0,className:"AlertDialogContent",style:{...p,
|
|
2076
|
+
width:m}},n&&t.createElement(au,{className:"AlertDialogTitle"
|
|
2077
2077
|
},n),r&&t.createElement(ou,{$hasChildren:!!l,className:"AlertDialogDescription"
|
|
2078
|
-
},r),l?t.createElement(t.Fragment,null,l):null,t.createElement(iu,{style:
|
|
2078
|
+
},r),l?t.createElement(t.Fragment,null,l):null,t.createElement(iu,{style:f
|
|
2079
2079
|
},i&&t.createElement(eu,{asChild:!0},t.createElement(zr,{variant:"secondary",
|
|
2080
|
-
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:
|
|
2081
|
-
"aria-label":i},i)),u&&t.createElement(tu,{
|
|
2082
|
-
variant:"primary","aria-disabled":s,disabled:s,
|
|
2083
|
-
},u)))))),cu={right:{x:"0",
|
|
2084
|
-
},
|
|
2085
|
-
"x-large":"1200px"},uu=Hn`
|
|
2080
|
+
autoFocus:!0,"aria-disabled":c,disabled:c,onClick:e=>{
|
|
2081
|
+
e.preventDefault(),o?.("button",e)},"aria-label":i},i)),u&&t.createElement(tu,{
|
|
2082
|
+
asChild:!0},t.createElement(zr,{variant:"primary","aria-disabled":s,disabled:s,
|
|
2083
|
+
onClick:e=>{e.preventDefault(),a?.(e)},"aria-label":u},u)))))),cu={right:{x:"0",
|
|
2084
|
+
right:"0",top:"0"},left:{x:"0",left:"0",top:"0"}},su={small:"424px",
|
|
2085
|
+
default:"600px",medium:"720px",large:"800px","x-large":"1200px"},uu=Hn`
|
|
2086
2086
|
from {
|
|
2087
2087
|
opacity: 1;
|
|
2088
2088
|
transform: translate(0px, 0px);
|
|
@@ -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,13 +3641,12 @@ 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
|
-
$isOpen:B,fill:E.colors.text.primary,width:8,height:8})))
|
|
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
|
+
},t.createElement(Vd,{$isOpen:B,fill:E.colors.text.primary,width:8,height:8})))
|
|
3650
3650
|
}),!i&&!l&&t.createElement(Td,{$isOpen:D,...S,...k({disabled:l,readOnly:i})
|
|
3651
3651
|
},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
3652
|
onClick:e=>{e.stopPropagation(),m&&m({inputValue:O,customValues:!0}),R("")}
|
|
@@ -15858,16 +15858,17 @@ fillRule:"evenodd",clipRule:"evenodd",
|
|
|
15858
15858
|
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
15859
|
fill:n.colors.text.semantic.error}))},Rj=({index:e,...n})=>{
|
|
15860
15860
|
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
|
|
15861
|
+
;return t.createElement(t.Fragment,null,t.createElement(Ej,{role:"alert",
|
|
15862
|
+
"aria-live":"polite",ref:i,toastType:n.type,toastIndex:e,
|
|
15863
|
+
className:`ToastRoot Toast-${n.id??""}`.trim(),duration:n.delay??3e3,
|
|
15864
|
+
onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}},t.createElement(Vj,{
|
|
15865
|
+
className:"ToastProgress",windowState:o,toastType:n.type,delay:n.delay??3e3
|
|
15866
15866
|
}),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
15867
|
fill:r.colors.text.semantic.success}),"warning"===n.type&&t.createElement(Pj,{
|
|
15868
15868
|
fill:r.colors.text.semantic.warning}),"error"===n.type&&t.createElement(Ij,{
|
|
15869
15869
|
fill:r.colors.text.semantic.error})),t.createElement(_j,{className:"ToastTitle"
|
|
15870
|
-
},n.text),t.createElement(Hj,{className:"ToastAction",asChild:!0,
|
|
15870
|
+
},n.text),t.createElement(Hj,{className:"ToastAction",asChild:!0,
|
|
15871
|
+
altText:"Close","aria-label":"Close"
|
|
15871
15872
|
},t.createElement(Zn,null,t.createElement(mr,{fill:r.colors.text.primary}))))))
|
|
15872
15873
|
},Oj=()=>{const e=((e=qN())=>{
|
|
15873
15874
|
const t=`ui-${e}`,{isBrowser:n}=Aj(),[r,a]=m(n?kj(t):null);return p((()=>{
|
|
@@ -16116,10 +16117,11 @@ container:a},r)))},H$=b$,D$=En(c(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=o$(n)
|
|
|
16116
16117
|
`,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
16118
|
const[h="bottom",p="center"]=e.split("-");return t.createElement(V$,{
|
|
16118
16119
|
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,
|
|
16120
|
+
},t.createElement(k$,{className:"TooltipTrigger",asChild:!0,
|
|
16121
|
+
"aria-label":"string"==typeof o?o:"TooltipTrigger"},t.createElement(Zn,{
|
|
16122
|
+
className:i},o)),t.createElement(T$,null,t.createElement(L$,{forceMount:!0,
|
|
16123
|
+
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,
|
|
16124
|
+
"aria-live":"polite",side:h,align:p
|
|
16123
16125
|
},n?t.createElement(t.Fragment,null,n):t.createElement(t.Fragment,null,r),s&&t.createElement(D$,null)))))
|
|
16124
16126
|
},I$=e=>{
|
|
16125
16127
|
const{styles:n,in:r,timeout:a=150,transition:o=`all ${a}ms ease-in-out`,children:i,...l}=e
|