freemium-ui 2.0.93 → 2.0.95
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/lib/index.cjs.js +43 -35
- package/lib/index.js +43 -35
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -883,9 +883,8 @@ window[zr]+=1);const Mr=Cr`
|
|
|
883
883
|
}
|
|
884
884
|
`,to=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
885
885
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
886
|
-
},e.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
887
|
-
|
|
888
|
-
"fill-rule":"evenodd","clip-rule":"evenodd",
|
|
886
|
+
},e.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
887
|
+
}),e.createElement("path",{fill:t.fill,fillRule:"evenodd",clipRule:"evenodd",
|
|
889
888
|
d:"M1 8C1 11.86 4.14 15 8 15H8.01C11.87 15 15.01 11.86 15.01 8C15.01 7.69 14.98 7.38 14.93 7C14.88 6.67 14.57 6.45 14.25 6.49C13.92 6.54 13.69 6.84 13.74 7.17C13.79 7.49 13.81 7.75 13.81 8C13.81 11.2 11.21 13.8 8.01 13.8C4.81 13.8 2.21 11.2 2.21 8C2.21 4.8 4.81 2.2 8.01 2.2C8.73 2.2 9.46 2.35 10.17 2.64C10.47 2.77 10.83 2.62 10.95 2.31C11.07 2.01 10.93 1.66 10.62 1.53C9.76 1.18 8.88 1 8 1C4.14 1 1 4.14 1 8ZM6.65003 10.35C6.76003 10.47 6.91003 10.53 7.07003 10.53L7.08003 10.54C7.23003 10.54 7.39003 10.47 7.50003 10.36L13.43 4.42997C13.66 4.18997 13.66 3.80997 13.43 3.57997C13.19 3.34997 12.81 3.34997 12.58 3.57997L7.08003 9.07997L5.49003 7.48997C5.25003 7.25997 4.88003 7.25997 4.64003 7.48997C4.41003 7.72997 4.41003 8.10997 4.64003 8.33997L6.65003 10.35Z"
|
|
890
889
|
})))),no=e.forwardRef(((t,n)=>e.createElement("svg",{width:"8",height:"6",
|
|
891
890
|
viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
@@ -897,8 +896,8 @@ height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",
|
|
|
897
896
|
d:"M5.29058 3.96971L7.72863 1.59934C8.09046 1.23484 8.09046 0.646977 7.72863 0.28247C7.55697 0.102105 7.31879 0 7.0697 0C6.8206 0 6.58242 0.102105 6.41076 0.28247L3.97271 2.65284L1.60055 0.295638C1.42889 0.115274 1.19071 0.0131687 0.941616 0.0131687C0.692525 0.0131687 0.454339 0.115274 0.282683 0.295638C0.102182 0.467165 0 0.705171 0 0.954075C0 1.20298 0.102182 1.44098 0.282683 1.61251L2.65484 3.96971L0.295861 6.4191C0.115361 6.59062 0.0131787 6.82863 0.0131787 7.07753C0.0131787 7.32644 0.115361 7.56444 0.295861 7.73597C0.468326 7.90482 0.700166 7.99938 0.941616 7.99934C1.18657 7.99736 1.4218 7.90334 1.60055 7.73597L3.97271 5.28659L6.42394 7.7228C6.59641 7.89165 6.82825 7.98621 7.0697 7.98618C7.31465 7.98419 7.54988 7.89017 7.72863 7.7228C8.09046 7.35829 8.09046 6.77044 7.72863 6.40593L5.29058 3.96971Z",
|
|
898
897
|
fill:t.fill})))),oo=e.forwardRef(((t,n)=>e.createElement("svg",{width:"18",
|
|
899
898
|
height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",
|
|
900
|
-
...t,ref:n},e.createElement("path",{fill:t.fill,
|
|
901
|
-
|
|
899
|
+
...t,ref:n},e.createElement("path",{fill:t.fill,fillRule:"evenodd",
|
|
900
|
+
clipRule:"evenodd",
|
|
902
901
|
d:"M2 10C2 5.58172 5.58172 2 10 2C12.1217 2 14.1566 2.84285 15.6569 4.34315C17.1571 5.84344 18 7.87827 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10ZM3.4 10C3.4 13.6451 6.35492 16.6 10 16.6C13.6428 16.5945 16.5945 13.6428 16.6 10C16.6 6.35492 13.6451 3.4 10 3.4C6.35492 3.4 3.4 6.35492 3.4 10ZM9.34998 10.31V6.7C9.34998 6.44991 9.48339 6.21883 9.69998 6.09378C9.91656 5.96874 10.1834 5.96874 10.4 6.09378C10.6166 6.21883 10.75 6.44991 10.75 6.7V10.31C10.75 10.6966 10.4366 11.01 10.05 11.01C9.66338 11.01 9.34998 10.6966 9.34998 10.31ZM9 13.1099C9 12.53 9.4701 12.0599 10.05 12.0599C10.3327 12.0454 10.6083 12.1513 10.8084 12.3515C11.0086 12.5516 11.1145 12.8272 11.1 13.1099C11.1 13.6898 10.6299 14.1599 10.05 14.1599C9.4701 14.1599 9 13.6898 9 13.1099Z"
|
|
903
902
|
})))),ao=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
904
903
|
viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
@@ -918,9 +917,8 @@ id:"clip0_3716_21092"},e.createElement("rect",{width:"11",height:"11",
|
|
|
918
917
|
fill:"white",transform:"translate(0.5 0.5)"
|
|
919
918
|
})))))),io=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
920
919
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
921
|
-
},e.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
922
|
-
|
|
923
|
-
"fill-rule":"evenodd","clip-rule":"evenodd",
|
|
920
|
+
},e.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
921
|
+
}),e.createElement("path",{fill:t.fill,fillRule:"evenodd",clipRule:"evenodd",
|
|
924
922
|
d:"M8 1C4.14 1 1 4.14 1 8C1 11.86 4.14 15 8 15C11.86 15 15 11.86 15 8C15 4.14 11.86 1 8 1ZM8 13.8C4.8 13.8 2.2 11.2 2.2 8C2.2 4.8 4.8 2.2 8 2.2C11.2 2.2 13.8 4.8 13.8 8C13.8 11.2 11.2 13.8 8 13.8ZM8.00003 6.24004C8.50003 6.24004 8.91003 5.83004 8.91003 5.33004C8.91003 4.83004 8.50003 4.42004 8.00003 4.42004C7.50003 4.42004 7.09003 4.83004 7.09003 5.33004C7.09003 5.83004 7.50003 6.24004 8.00003 6.24004ZM8.00003 5.04004C8.16003 5.04004 8.29003 5.17004 8.29003 5.33004C8.29003 5.49004 8.16003 5.62004 8.00003 5.62004C7.84003 5.62004 7.71003 5.49004 7.71003 5.33004C7.71003 5.17004 7.84003 5.04004 8.00003 5.04004ZM8.60002 10.37H8.86002C9.19002 10.37 9.46002 10.64 9.46002 10.97C9.46002 11.3 9.19002 11.57 8.86002 11.57H7.12002C6.79002 11.57 6.52002 11.3 6.52002 10.97C6.52002 10.64 6.79002 10.37 7.12002 10.37H7.39002V8.24996C7.15002 8.16996 6.96002 7.94996 6.96002 7.67996C6.96002 7.34996 7.23002 7.07996 7.56002 7.07996H8.43002C8.76002 7.07996 9.03002 7.34996 9.03002 7.67996C9.03002 7.95996 8.85002 8.17996 8.60002 8.24996V10.37Z"
|
|
925
923
|
})))),lo=e.forwardRef(((t,n)=>e.createElement("svg",{width:"24",height:"7",
|
|
926
924
|
viewBox:"0 0 24 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
@@ -12771,7 +12769,7 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12771
12769
|
align-items: center;
|
|
12772
12770
|
display: flex;
|
|
12773
12771
|
flex-direction: column;
|
|
12774
|
-
width: 280px;
|
|
12772
|
+
min-width: 280px;
|
|
12775
12773
|
.rdp {
|
|
12776
12774
|
width: 100%;
|
|
12777
12775
|
padding: 16px;
|
|
@@ -12826,6 +12824,7 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12826
12824
|
}
|
|
12827
12825
|
.bp5-datepicker-timepicker-wrapper {
|
|
12828
12826
|
padding: 0 16px 16px 16px;
|
|
12827
|
+
max-width: 100%;
|
|
12829
12828
|
}
|
|
12830
12829
|
.bp5-timepicker {
|
|
12831
12830
|
display: flex;
|
|
@@ -13057,11 +13056,18 @@ defaultSelectedItem:n.find((e=>e.id===t.value))??null,style:t.style,
|
|
|
13057
13056
|
className:`${t.className??""} bp-custom-dropdown bp-custom-dropdown-${t.name??""}`.trim(),
|
|
13058
13057
|
onChange:e=>{t?.onChange?.({target:{value:e?.id}})}})}
|
|
13059
13058
|
return e.createElement(ub,{itemToString:()=>"",type:"button"})},JN=t=>{
|
|
13060
|
-
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,dateToHilight:g,...y}=t,b=document.querySelector('div[role="dialog"].DialogContent'),w=cr(),C=e.useRef(m??null),[z,M]=e.useState(
|
|
13059
|
+
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m=null,useTime:v,dateToHilight:g,...y}=t,b=document.querySelector('div[role="dialog"].DialogContent'),w=cr(),C=e.useRef(m??null),[z,M]=e.useState(),[x,E]=e.useState(m??null),S=e.useMemo((()=>{
|
|
13060
|
+
if(!v)return"YYYY-MM-DD";switch(y.timePrecision){case"minute":
|
|
13061
|
+
return"YYYY-MM-DDTHH:mm";case"second":return"YYYY-MM-DDTHH:mm:ss"
|
|
13062
|
+
;case"millisecond":return"YYYY-MM-DDTHH:mm:ss.SSS"}return"YYYY-MM-DDTHH:mm"
|
|
13063
|
+
}),[y.timePrecision,v]),_=e.useCallback((e=>{E(e?jN(e).format(S):null)
|
|
13064
|
+
}),[S]),H=e.useCallback((e=>e?jN(e).format(f):""),[f]),D=e.useCallback((e=>e?jN(e).toDate():new Date),[])
|
|
13061
13065
|
;return e.useEffect((()=>(window.addEventListener("popstate",(()=>{
|
|
13062
|
-
Mc("DateRangePicker",{action:"Closing",useTime:v}),
|
|
13063
|
-
|
|
13064
|
-
})),[]),e.
|
|
13066
|
+
Mc("DateRangePicker",{action:"Closing",useTime:v}),M(!1),setTimeout((()=>{
|
|
13067
|
+
M(void 0)}),0)})),()=>{document.body.removeEventListener("popstate",(()=>{}))
|
|
13068
|
+
})),[]),e.useEffect((()=>{const e=m?jN(m).format(S):null;Mc("useEffect",{
|
|
13069
|
+
valueToSet:e,localValue:x}),e!==x&&(Mc("setLocalValue",{valueToSet:e,
|
|
13070
|
+
localValue:x}),E(e))}),[m]),e.createElement(KN,{
|
|
13065
13071
|
id:`${v?"datetime":"date"}-picker-container-${s??""}`.trim(),"aria-invalid":i,
|
|
13066
13072
|
dir:w.direction},a&&e.createElement(Do,{htmlFor:t.id,className:"input-label"
|
|
13067
13073
|
},a,a&&o&&e.createElement(Lo,null,"*")),e.createElement(qN,{$isErrored:i,
|
|
@@ -13078,17 +13084,17 @@ className:r.buttonProps.className?.replace("rdp-day_today","")}
|
|
|
13078
13084
|
e.createElement("button",{ref:n,...o})}}:{},Dropdown:t=>e.createElement(XN,{
|
|
13079
13085
|
...t,disabled:h})}},showActionsBar:!1,
|
|
13080
13086
|
footerElement:u||d?e.createElement(GN,null,u&&e.createElement(Dm,{
|
|
13081
|
-
variant:"secondary",disabled:h,onClick:()=>{
|
|
13082
|
-
E(
|
|
13083
|
-
|
|
13087
|
+
variant:"secondary",disabled:h,onClick:()=>{
|
|
13088
|
+
E(m?jN(m).format(S):null),M(!1),setTimeout((()=>{M(void 0)}),0)}
|
|
13089
|
+
},u),d&&e.createElement(Dm,{disabled:m===x,onClick:()=>{
|
|
13090
|
+
y.onChange?.(x,!0),C.current=x,M(!1),setTimeout((()=>{M(void 0)}),0)}
|
|
13084
13091
|
},d)):void 0,popoverProps:{hasBackdrop:!0,canEscapeKeyClose:!0,minimal:!1,
|
|
13085
13092
|
placement:"ltr"===w.direction?"bottom-start":"bottom-end",usePortal:!0,
|
|
13086
|
-
onClosed:()=>{C.current!==
|
|
13087
|
-
portalContainer:p??(b||void 0),...void 0!==
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
value:z??""})),i&&c&&e.createElement(dm,null,c))},QN=t=>{
|
|
13093
|
+
onClosed:()=>{C.current!==x&&(y.onChange?.(x,!0),C.current=x)},
|
|
13094
|
+
portalContainer:p??(b||void 0),...void 0!==z?{isOpen:z}:{}},parseDate:D,
|
|
13095
|
+
formatDate:H,...v?{timePrecision:"minute",timePickerProps:{useAmPm:!0,
|
|
13096
|
+
showArrowButtons:!1},showTimezoneSelect:!1,disableTimezoneSelect:!0}:{},...y,
|
|
13097
|
+
onChange:_,value:x})),i&&c&&e.createElement(dm,null,c))},QN=t=>{
|
|
13092
13098
|
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",language:h,displayFormat:f="YYYY-MM-DD",portalContainer:p,value:m,useTime:v,dateToHilight:g,...y}=t,b=document.querySelector('div[role="dialog"].DialogContent'),w=cr(),C=e.useRef(m??[null,null]),[z,M]=e.useState(m??[null,null]),[x,E]=e.useState()
|
|
13093
13099
|
;return e.useEffect((()=>(window.addEventListener("popstate",(()=>{
|
|
13094
13100
|
Mc("DateRangePicker",{action:"Closing",useTime:v}),E(!1),setTimeout((()=>{
|
|
@@ -15921,6 +15927,9 @@ fill:t.fill}))))`
|
|
|
15921
15927
|
justify-content: center;
|
|
15922
15928
|
align-items: center;
|
|
15923
15929
|
}
|
|
15930
|
+
.disabledActionMenu {
|
|
15931
|
+
color: ${({theme:e})=>e.colors.text.disabled};
|
|
15932
|
+
}
|
|
15924
15933
|
|
|
15925
15934
|
${({theme:e})=>"dark"===e.mode&&mr`
|
|
15926
15935
|
color: ${e.colors.text.primary};
|
|
@@ -16019,8 +16028,8 @@ fill:t.fill}))))`
|
|
|
16019
16028
|
}
|
|
16020
16029
|
`,QU=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
16021
16030
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"
|
|
16022
|
-
},e.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
16023
|
-
|
|
16031
|
+
},e.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
16032
|
+
}),e.createElement("path",{
|
|
16024
16033
|
d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",
|
|
16025
16034
|
fill:"currentcolor"})))),eY=e.forwardRef(((t,n)=>e.createElement("svg",{
|
|
16026
16035
|
width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",
|
|
@@ -16340,7 +16349,7 @@ const QY=PY,eW=NY,tW=UY,nW=YY,rW=yr(VY)``;yr.div`
|
|
|
16340
16349
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16341
16350
|
will-change: transform, opacity;
|
|
16342
16351
|
position: absolute;
|
|
16343
|
-
order: ${({toastIndex:e})=>e+1};
|
|
16352
|
+
order: ${({$toastIndex:e})=>e+1};
|
|
16344
16353
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
16345
16354
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16346
16355
|
border-radius: 4px;
|
|
@@ -16398,10 +16407,10 @@ const QY=PY,eW=NY,tW=UY,nW=YY,rW=yr(VY)``;yr.div`
|
|
|
16398
16407
|
gap: 8px;
|
|
16399
16408
|
`,sW=yr.div`
|
|
16400
16409
|
height: 4px;
|
|
16401
|
-
background-color: ${({theme:e
|
|
16410
|
+
background-color: ${({theme:e,$toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16402
16411
|
border-radius: 4px 4px 0 0;
|
|
16403
16412
|
|
|
16404
|
-
${({delay:e
|
|
16413
|
+
${({$delay:e,$windowState:t})=>"none"===e?"width: 100%;":mr`
|
|
16405
16414
|
width: 0%;
|
|
16406
16415
|
animation: ${Or} ${e}ms linear
|
|
16407
16416
|
${"focus"===t?"running":"paused"};
|
|
@@ -16437,12 +16446,11 @@ fill:s.colors.text.semantic.warning}),error:e.createElement(dW,{
|
|
|
16437
16446
|
fill:s.colors.text.semantic.error}),info:e.createElement(io,{
|
|
16438
16447
|
fill:s.colors.text.semantic.info})}
|
|
16439
16448
|
;return e.createElement(e.Fragment,null,e.createElement(oW,{role:"alert",
|
|
16440
|
-
"aria-live":"polite",ref:p,
|
|
16441
|
-
|
|
16442
|
-
|
|
16443
|
-
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16449
|
+
"aria-live":"polite",ref:p,dir:s.direction,style:o||!i?{borderTop:"none"
|
|
16450
|
+
}:void 0,$toastIndex:t,className:`ToastRoot Toast-${r??""}`.trim(),
|
|
16451
|
+
duration:o?1/0:l,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16444
16452
|
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(sW,{
|
|
16445
|
-
className:"ToastProgress"
|
|
16453
|
+
className:"ToastProgress",$windowState:d,$toastType:c,$delay:!o&&i?l:"none"
|
|
16446
16454
|
}),e.createElement(cW,null,n??g[c],e.createElement(aW,{className:"ToastTitle"
|
|
16447
16455
|
},a),e.createElement(iW,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
16448
16456
|
"aria-label":"Close"},e.createElement(No,null,e.createElement(ro,{
|
|
@@ -17160,9 +17168,9 @@ t.toggleSelected(!0===e),T?.(t.original,!0===e)}})
|
|
|
17160
17168
|
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
17161
17169
|
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
17162
17170
|
cell:({row:t})=>e.createElement(pb,{trigger:e.createElement(co,{
|
|
17163
|
-
className:"more-actions",fill:"currentcolor"}),
|
|
17164
|
-
options:_(t.original)||[],onSelect:e=>{e.id&&R?.(e.id,t.original)
|
|
17165
|
-
side:"bottom",align:"rtl"===q.direction?"start":"end"})
|
|
17171
|
+
className:"more-actions "+(D?"disabledActionMenu":""),fill:"currentcolor"}),
|
|
17172
|
+
disableMenu:!0,options:_(t.original)||[],onSelect:e=>{e.id&&R?.(e.id,t.original)
|
|
17173
|
+
},side:"bottom",align:"rtl"===q.direction?"start":"end"})
|
|
17166
17174
|
}]:[]]),[r,L,V,q.colors.text.primary]),te=e.useMemo((()=>{const e={}
|
|
17167
17175
|
;return r.forEach((t=>{e[t.id]=!(F??[]).includes(t.id)})),e
|
|
17168
17176
|
}),[r,F]),ne=e.useMemo((()=>({pageIndex:C,pageSize:z})),[z,C]),re=CU({data:n,
|
package/lib/index.js
CHANGED
|
@@ -870,9 +870,8 @@ window[Br]+=1);const jr=$r`
|
|
|
870
870
|
}
|
|
871
871
|
`,zo=t.forwardRef(((e,n)=>t.createElement("svg",{width:"16",height:"16",
|
|
872
872
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
873
|
-
},t.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
874
|
-
|
|
875
|
-
"fill-rule":"evenodd","clip-rule":"evenodd",
|
|
873
|
+
},t.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
874
|
+
}),t.createElement("path",{fill:e.fill,fillRule:"evenodd",clipRule:"evenodd",
|
|
876
875
|
d:"M1 8C1 11.86 4.14 15 8 15H8.01C11.87 15 15.01 11.86 15.01 8C15.01 7.69 14.98 7.38 14.93 7C14.88 6.67 14.57 6.45 14.25 6.49C13.92 6.54 13.69 6.84 13.74 7.17C13.79 7.49 13.81 7.75 13.81 8C13.81 11.2 11.21 13.8 8.01 13.8C4.81 13.8 2.21 11.2 2.21 8C2.21 4.8 4.81 2.2 8.01 2.2C8.73 2.2 9.46 2.35 10.17 2.64C10.47 2.77 10.83 2.62 10.95 2.31C11.07 2.01 10.93 1.66 10.62 1.53C9.76 1.18 8.88 1 8 1C4.14 1 1 4.14 1 8ZM6.65003 10.35C6.76003 10.47 6.91003 10.53 7.07003 10.53L7.08003 10.54C7.23003 10.54 7.39003 10.47 7.50003 10.36L13.43 4.42997C13.66 4.18997 13.66 3.80997 13.43 3.57997C13.19 3.34997 12.81 3.34997 12.58 3.57997L7.08003 9.07997L5.49003 7.48997C5.25003 7.25997 4.88003 7.25997 4.64003 7.48997C4.41003 7.72997 4.41003 8.10997 4.64003 8.33997L6.65003 10.35Z"
|
|
877
876
|
})))),Mo=t.forwardRef(((e,n)=>t.createElement("svg",{width:"8",height:"6",
|
|
878
877
|
viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
@@ -884,8 +883,8 @@ height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",
|
|
|
884
883
|
d:"M5.29058 3.96971L7.72863 1.59934C8.09046 1.23484 8.09046 0.646977 7.72863 0.28247C7.55697 0.102105 7.31879 0 7.0697 0C6.8206 0 6.58242 0.102105 6.41076 0.28247L3.97271 2.65284L1.60055 0.295638C1.42889 0.115274 1.19071 0.0131687 0.941616 0.0131687C0.692525 0.0131687 0.454339 0.115274 0.282683 0.295638C0.102182 0.467165 0 0.705171 0 0.954075C0 1.20298 0.102182 1.44098 0.282683 1.61251L2.65484 3.96971L0.295861 6.4191C0.115361 6.59062 0.0131787 6.82863 0.0131787 7.07753C0.0131787 7.32644 0.115361 7.56444 0.295861 7.73597C0.468326 7.90482 0.700166 7.99938 0.941616 7.99934C1.18657 7.99736 1.4218 7.90334 1.60055 7.73597L3.97271 5.28659L6.42394 7.7228C6.59641 7.89165 6.82825 7.98621 7.0697 7.98618C7.31465 7.98419 7.54988 7.89017 7.72863 7.7228C8.09046 7.35829 8.09046 6.77044 7.72863 6.40593L5.29058 3.96971Z",
|
|
885
884
|
fill:e.fill})))),Eo=t.forwardRef(((e,n)=>t.createElement("svg",{width:"18",
|
|
886
885
|
height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",
|
|
887
|
-
...e,ref:n},t.createElement("path",{fill:e.fill,
|
|
888
|
-
|
|
886
|
+
...e,ref:n},t.createElement("path",{fill:e.fill,fillRule:"evenodd",
|
|
887
|
+
clipRule:"evenodd",
|
|
889
888
|
d:"M2 10C2 5.58172 5.58172 2 10 2C12.1217 2 14.1566 2.84285 15.6569 4.34315C17.1571 5.84344 18 7.87827 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10ZM3.4 10C3.4 13.6451 6.35492 16.6 10 16.6C13.6428 16.5945 16.5945 13.6428 16.6 10C16.6 6.35492 13.6451 3.4 10 3.4C6.35492 3.4 3.4 6.35492 3.4 10ZM9.34998 10.31V6.7C9.34998 6.44991 9.48339 6.21883 9.69998 6.09378C9.91656 5.96874 10.1834 5.96874 10.4 6.09378C10.6166 6.21883 10.75 6.44991 10.75 6.7V10.31C10.75 10.6966 10.4366 11.01 10.05 11.01C9.66338 11.01 9.34998 10.6966 9.34998 10.31ZM9 13.1099C9 12.53 9.4701 12.0599 10.05 12.0599C10.3327 12.0454 10.6083 12.1513 10.8084 12.3515C11.0086 12.5516 11.1145 12.8272 11.1 13.1099C11.1 13.6898 10.6299 14.1599 10.05 14.1599C9.4701 14.1599 9 13.6898 9 13.1099Z"
|
|
890
889
|
})))),So=t.forwardRef(((e,n)=>t.createElement("svg",{width:"16",height:"16",
|
|
891
890
|
viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
@@ -905,9 +904,8 @@ id:"clip0_3716_21092"},t.createElement("rect",{width:"11",height:"11",
|
|
|
905
904
|
fill:"white",transform:"translate(0.5 0.5)"
|
|
906
905
|
})))))),_o=t.forwardRef(((e,n)=>t.createElement("svg",{width:"16",height:"16",
|
|
907
906
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
908
|
-
},t.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
909
|
-
|
|
910
|
-
"fill-rule":"evenodd","clip-rule":"evenodd",
|
|
907
|
+
},t.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
908
|
+
}),t.createElement("path",{fill:e.fill,fillRule:"evenodd",clipRule:"evenodd",
|
|
911
909
|
d:"M8 1C4.14 1 1 4.14 1 8C1 11.86 4.14 15 8 15C11.86 15 15 11.86 15 8C15 4.14 11.86 1 8 1ZM8 13.8C4.8 13.8 2.2 11.2 2.2 8C2.2 4.8 4.8 2.2 8 2.2C11.2 2.2 13.8 4.8 13.8 8C13.8 11.2 11.2 13.8 8 13.8ZM8.00003 6.24004C8.50003 6.24004 8.91003 5.83004 8.91003 5.33004C8.91003 4.83004 8.50003 4.42004 8.00003 4.42004C7.50003 4.42004 7.09003 4.83004 7.09003 5.33004C7.09003 5.83004 7.50003 6.24004 8.00003 6.24004ZM8.00003 5.04004C8.16003 5.04004 8.29003 5.17004 8.29003 5.33004C8.29003 5.49004 8.16003 5.62004 8.00003 5.62004C7.84003 5.62004 7.71003 5.49004 7.71003 5.33004C7.71003 5.17004 7.84003 5.04004 8.00003 5.04004ZM8.60002 10.37H8.86002C9.19002 10.37 9.46002 10.64 9.46002 10.97C9.46002 11.3 9.19002 11.57 8.86002 11.57H7.12002C6.79002 11.57 6.52002 11.3 6.52002 10.97C6.52002 10.64 6.79002 10.37 7.12002 10.37H7.39002V8.24996C7.15002 8.16996 6.96002 7.94996 6.96002 7.67996C6.96002 7.34996 7.23002 7.07996 7.56002 7.07996H8.43002C8.76002 7.07996 9.03002 7.34996 9.03002 7.67996C9.03002 7.95996 8.85002 8.17996 8.60002 8.24996V10.37Z"
|
|
912
910
|
})))),Ho=t.forwardRef(((e,n)=>t.createElement("svg",{width:"24",height:"7",
|
|
913
911
|
viewBox:"0 0 24 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
@@ -12845,7 +12843,7 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12845
12843
|
align-items: center;
|
|
12846
12844
|
display: flex;
|
|
12847
12845
|
flex-direction: column;
|
|
12848
|
-
width: 280px;
|
|
12846
|
+
min-width: 280px;
|
|
12849
12847
|
.rdp {
|
|
12850
12848
|
width: 100%;
|
|
12851
12849
|
padding: 16px;
|
|
@@ -12900,6 +12898,7 @@ TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"
|
|
|
12900
12898
|
}
|
|
12901
12899
|
.bp5-datepicker-timepicker-wrapper {
|
|
12902
12900
|
padding: 0 16px 16px 16px;
|
|
12901
|
+
max-width: 100%;
|
|
12903
12902
|
}
|
|
12904
12903
|
.bp5-timepicker {
|
|
12905
12904
|
display: flex;
|
|
@@ -13131,11 +13130,18 @@ defaultSelectedItem:n.find((t=>t.id===e.value))??null,style:e.style,
|
|
|
13131
13130
|
className:`${e.className??""} bp-custom-dropdown bp-custom-dropdown-${e.name??""}`.trim(),
|
|
13132
13131
|
onChange:t=>{e?.onChange?.({target:{value:t?.id}})}})}
|
|
13133
13132
|
return t.createElement(Rb,{itemToString:()=>"",type:"button"})},_F=e=>{
|
|
13134
|
-
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:p="YYYY-MM-DD",portalContainer:f,value:m,useTime:v,dateToHilight:g,...y}=e,b=document.querySelector('div[role="dialog"].DialogContent'),w=Hr(),C=t.useRef(m??null),[z,M]=t.useState(
|
|
13133
|
+
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,language:l,errorText:c,id:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",disabled:h,displayFormat:p="YYYY-MM-DD",portalContainer:f,value:m=null,useTime:v,dateToHilight:g,...y}=e,b=document.querySelector('div[role="dialog"].DialogContent'),w=Hr(),C=t.useRef(m??null),[z,M]=t.useState(),[x,E]=t.useState(m??null),S=t.useMemo((()=>{
|
|
13134
|
+
if(!v)return"YYYY-MM-DD";switch(y.timePrecision){case"minute":
|
|
13135
|
+
return"YYYY-MM-DDTHH:mm";case"second":return"YYYY-MM-DDTHH:mm:ss"
|
|
13136
|
+
;case"millisecond":return"YYYY-MM-DDTHH:mm:ss.SSS"}return"YYYY-MM-DDTHH:mm"
|
|
13137
|
+
}),[y.timePrecision,v]),_=t.useCallback((e=>{E(e?yF(e).format(S):null)
|
|
13138
|
+
}),[S]),H=t.useCallback((e=>e?yF(e).format(p):""),[p]),D=t.useCallback((e=>e?yF(e).toDate():new Date),[])
|
|
13135
13139
|
;return t.useEffect((()=>(window.addEventListener("popstate",(()=>{
|
|
13136
|
-
Yc("DateRangePicker",{action:"Closing",useTime:v}),
|
|
13137
|
-
|
|
13138
|
-
})),[]),t.
|
|
13140
|
+
Yc("DateRangePicker",{action:"Closing",useTime:v}),M(!1),setTimeout((()=>{
|
|
13141
|
+
M(void 0)}),0)})),()=>{document.body.removeEventListener("popstate",(()=>{}))
|
|
13142
|
+
})),[]),t.useEffect((()=>{const e=m?yF(m).format(S):null;Yc("useEffect",{
|
|
13143
|
+
valueToSet:e,localValue:x}),e!==x&&(Yc("setLocalValue",{valueToSet:e,
|
|
13144
|
+
localValue:x}),E(e))}),[m]),t.createElement(MF,{
|
|
13139
13145
|
id:`${v?"datetime":"date"}-picker-container-${s??""}`.trim(),"aria-invalid":i,
|
|
13140
13146
|
dir:w.direction},a&&t.createElement(Zo,{htmlFor:e.id,className:"input-label"
|
|
13141
13147
|
},a,a&&o&&t.createElement(Jo,null,"*")),t.createElement(xF,{$isErrored:i,
|
|
@@ -13152,17 +13158,17 @@ className:r.buttonProps.className?.replace("rdp-day_today","")}
|
|
|
13152
13158
|
t.createElement("button",{ref:n,...o})}}:{},Dropdown:e=>t.createElement(SF,{
|
|
13153
13159
|
...e,disabled:h})}},showActionsBar:!1,
|
|
13154
13160
|
footerElement:u||d?t.createElement(zF,null,u&&t.createElement(Jm,{
|
|
13155
|
-
variant:"secondary",disabled:h,onClick:()=>{
|
|
13156
|
-
E(
|
|
13157
|
-
|
|
13161
|
+
variant:"secondary",disabled:h,onClick:()=>{
|
|
13162
|
+
E(m?yF(m).format(S):null),M(!1),setTimeout((()=>{M(void 0)}),0)}
|
|
13163
|
+
},u),d&&t.createElement(Jm,{disabled:m===x,onClick:()=>{
|
|
13164
|
+
y.onChange?.(x,!0),C.current=x,M(!1),setTimeout((()=>{M(void 0)}),0)}
|
|
13158
13165
|
},d)):void 0,popoverProps:{hasBackdrop:!0,canEscapeKeyClose:!0,minimal:!1,
|
|
13159
13166
|
placement:"ltr"===w.direction?"bottom-start":"bottom-end",usePortal:!0,
|
|
13160
|
-
onClosed:()=>{C.current!==
|
|
13161
|
-
portalContainer:f??(b||void 0),...void 0!==
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
value:z??""})),i&&c&&t.createElement(km,null,c))},HF=e=>{
|
|
13167
|
+
onClosed:()=>{C.current!==x&&(y.onChange?.(x,!0),C.current=x)},
|
|
13168
|
+
portalContainer:f??(b||void 0),...void 0!==z?{isOpen:z}:{}},parseDate:D,
|
|
13169
|
+
formatDate:H,...v?{timePrecision:"minute",timePickerProps:{useAmPm:!0,
|
|
13170
|
+
showArrowButtons:!1},showTimezoneSelect:!1,disableTimezoneSelect:!0}:{},...y,
|
|
13171
|
+
onChange:_,value:x})),i&&c&&t.createElement(km,null,c))},HF=e=>{
|
|
13166
13172
|
const{displayFormat:n="YYYY-MM-DD hh:mm A",...r}=e;return t.createElement(_F,{
|
|
13167
13173
|
...r,displayFormat:n,useTime:!0})},DF=e=>{
|
|
13168
13174
|
const{placeholder:n,name:r,isRequired:o,label:a,isErrored:i,errorText:l,id:c,disabled:s,cancelButtonText:u="Cancel",updateButtonText:d="Update",language:h,displayFormat:p="YYYY-MM-DD",portalContainer:f,value:m,useTime:v,dateToHilight:g,...y}=e,b=document.querySelector('div[role="dialog"].DialogContent'),w=Hr(),C=t.useRef(m??[null,null]),[z,M]=t.useState(m??[null,null]),[x,E]=t.useState()
|
|
@@ -16036,6 +16042,9 @@ fill:e.fill}))))`
|
|
|
16036
16042
|
justify-content: center;
|
|
16037
16043
|
align-items: center;
|
|
16038
16044
|
}
|
|
16045
|
+
.disabledActionMenu {
|
|
16046
|
+
color: ${({theme:e})=>e.colors.text.disabled};
|
|
16047
|
+
}
|
|
16039
16048
|
|
|
16040
16049
|
${({theme:e})=>"dark"===e.mode&&Pr`
|
|
16041
16050
|
color: ${e.colors.text.primary};
|
|
@@ -16134,8 +16143,8 @@ fill:e.fill}))))`
|
|
|
16134
16143
|
}
|
|
16135
16144
|
`,VY=t.forwardRef(((e,n)=>t.createElement("svg",{width:"16",height:"16",
|
|
16136
16145
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"
|
|
16137
|
-
},t.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
16138
|
-
|
|
16146
|
+
},t.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
16147
|
+
}),t.createElement("path",{
|
|
16139
16148
|
d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",
|
|
16140
16149
|
fill:"currentcolor"})))),kY=t.forwardRef(((e,n)=>t.createElement("svg",{
|
|
16141
16150
|
width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",
|
|
@@ -16538,7 +16547,7 @@ const TW=gW,PW=wW,IW=EW,RW=SW,OW=Or(pW)``;Or.div`
|
|
|
16538
16547
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16539
16548
|
will-change: transform, opacity;
|
|
16540
16549
|
position: absolute;
|
|
16541
|
-
order: ${({toastIndex:e})=>e+1};
|
|
16550
|
+
order: ${({$toastIndex:e})=>e+1};
|
|
16542
16551
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
16543
16552
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16544
16553
|
border-radius: 4px;
|
|
@@ -16596,10 +16605,10 @@ const TW=gW,PW=wW,IW=EW,RW=SW,OW=Or(pW)``;Or.div`
|
|
|
16596
16605
|
gap: 8px;
|
|
16597
16606
|
`,UW=Or.div`
|
|
16598
16607
|
height: 4px;
|
|
16599
|
-
background-color: ${({theme:e
|
|
16608
|
+
background-color: ${({theme:e,$toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16600
16609
|
border-radius: 4px 4px 0 0;
|
|
16601
16610
|
|
|
16602
|
-
${({delay:e
|
|
16611
|
+
${({$delay:e,$windowState:t})=>"none"===e?"width: 100%;":Pr`
|
|
16603
16612
|
width: 0%;
|
|
16604
16613
|
animation: ${oo} ${e}ms linear
|
|
16605
16614
|
${"focus"===t?"running":"paused"};
|
|
@@ -16635,12 +16644,11 @@ fill:s.colors.text.semantic.warning}),error:t.createElement(WW,{
|
|
|
16635
16644
|
fill:s.colors.text.semantic.error}),info:t.createElement(_o,{
|
|
16636
16645
|
fill:s.colors.text.semantic.info})}
|
|
16637
16646
|
;return t.createElement(t.Fragment,null,t.createElement(NW,{role:"alert",
|
|
16638
|
-
"aria-live":"polite",ref:f,
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16647
|
+
"aria-live":"polite",ref:f,dir:s.direction,style:o||!i?{borderTop:"none"
|
|
16648
|
+
}:void 0,$toastIndex:e,className:`ToastRoot Toast-${r??""}`.trim(),
|
|
16649
|
+
duration:o?1/0:l,onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16642
16650
|
e||u((e=>e.filter((e=>e.id!==r))))}},t.createElement(UW,{
|
|
16643
|
-
className:"ToastProgress"
|
|
16651
|
+
className:"ToastProgress",$windowState:d,$toastType:c,$delay:!o&&i?l:"none"
|
|
16644
16652
|
}),t.createElement(jW,null,n??g[c],t.createElement(FW,{className:"ToastTitle"
|
|
16645
16653
|
},a),t.createElement($W,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
16646
16654
|
"aria-label":"Close"},t.createElement(ia,null,t.createElement(xo,{
|
|
@@ -16920,9 +16928,9 @@ e.toggleSelected(!0===t),T?.(e.original,!0===t)}})
|
|
|
16920
16928
|
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
16921
16929
|
header:()=>t.createElement("div",{id:"more-actions-header"}),
|
|
16922
16930
|
cell:({row:e})=>t.createElement($b,{trigger:t.createElement(Do,{
|
|
16923
|
-
className:"more-actions",fill:"currentcolor"}),
|
|
16924
|
-
options:_(e.original)||[],onSelect:t=>{t.id&&P?.(t.id,e.original)
|
|
16925
|
-
side:"bottom",align:"rtl"===q.direction?"start":"end"})
|
|
16931
|
+
className:"more-actions "+(D?"disabledActionMenu":""),fill:"currentcolor"}),
|
|
16932
|
+
disableMenu:!0,options:_(e.original)||[],onSelect:t=>{t.id&&P?.(t.id,e.original)
|
|
16933
|
+
},side:"bottom",align:"rtl"===q.direction?"start":"end"})
|
|
16926
16934
|
}]:[]]),[r,L,V,q.colors.text.primary]),te=t.useMemo((()=>{const e={}
|
|
16927
16935
|
;return r.forEach((t=>{e[t.id]=!(F??[]).includes(t.id)})),e
|
|
16928
16936
|
}),[r,F]),ne=t.useMemo((()=>({pageIndex:C,pageSize:z})),[z,C]),re=eY({data:n,
|
package/lib/package.json
CHANGED