freemium-ui 2.0.38 → 2.0.40
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 +255 -252
- package/lib/index.d.ts +1 -0
- package/lib/index.js +255 -252
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/dist/README.md +0 -86
- package/dist/index.cjs.js +0 -16653
- package/dist/index.d.ts +0 -1748
- package/dist/index.js +0 -16478
- package/dist/package.json +0 -74
package/lib/index.cjs.js
CHANGED
|
@@ -4585,6 +4585,7 @@ modal:!0}))}))``,By=yr(Ty)``,jy=yr(Oy)``,Uy=yr(Iy)``,Yy=yr(Ry)`
|
|
|
4585
4585
|
border-bottom-left-radius: 8px;
|
|
4586
4586
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
4587
4587
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
4588
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
4588
4589
|
&:focus {
|
|
4589
4590
|
outline: none;
|
|
4590
4591
|
}
|
|
@@ -4609,6 +4610,7 @@ modal:!0}))}))``,By=yr(Ty)``,jy=yr(Oy)``,Uy=yr(Iy)``,Yy=yr(Ry)`
|
|
|
4609
4610
|
padding: 32px 32px
|
|
4610
4611
|
${({$hasdescription:e})=>e?"0px":"16px"} 32px;
|
|
4611
4612
|
`,Ky=yr(Fy)`
|
|
4613
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
4612
4614
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
4613
4615
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
4614
4616
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
@@ -9229,9 +9231,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
|
|
|
9229
9231
|
function d_(e){return Ce(this,void 0,void 0,(function(){var t,n
|
|
9230
9232
|
;return ze(this,(function(r){switch(r.label){case 0:
|
|
9231
9233
|
return t=e.loader,"function"!=typeof(n=void 0===t?p_.defaultLoader:t)?[3,1]:[2,n]
|
|
9232
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
9234
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return oG
|
|
9233
9235
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
9234
|
-
return[4,Promise.resolve().then((function(){return
|
|
9236
|
+
return[4,Promise.resolve().then((function(){return aG}))];case 4:
|
|
9235
9237
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var h_=function(){function e(){
|
|
9236
9238
|
this.defaultLoader="split-by-size",
|
|
9237
9239
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -16187,7 +16189,7 @@ fill:t.fill}))))`
|
|
|
16187
16189
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16188
16190
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16189
16191
|
animation-name: ${Pr};
|
|
16190
|
-
`,SU=yr.div``,_U=yr.div``,HU=yr.div`
|
|
16192
|
+
`,SU=yr.div``,_U=yr.div``,HU=yr.div``,DU=yr.div`
|
|
16191
16193
|
display: flex;
|
|
16192
16194
|
align-items: center;
|
|
16193
16195
|
direction: ${({theme:e})=>e.direction};
|
|
@@ -16212,7 +16214,7 @@ fill:t.fill}))))`
|
|
|
16212
16214
|
font-size: 14px;
|
|
16213
16215
|
font-weight: 400;
|
|
16214
16216
|
}
|
|
16215
|
-
`,
|
|
16217
|
+
`,kU=yr.div`
|
|
16216
16218
|
display: flex;
|
|
16217
16219
|
gap: 8px;
|
|
16218
16220
|
align-items: center;
|
|
@@ -16224,10 +16226,10 @@ fill:t.fill}))))`
|
|
|
16224
16226
|
place-content: center;
|
|
16225
16227
|
padding: 0;
|
|
16226
16228
|
}
|
|
16227
|
-
`,
|
|
16229
|
+
`,AU=yr.div`
|
|
16228
16230
|
overflow: auto;
|
|
16229
16231
|
flex: 1;
|
|
16230
|
-
`,
|
|
16232
|
+
`,LU=yr.table`
|
|
16231
16233
|
border-spacing: 0px;
|
|
16232
16234
|
border-collapse: collapse;
|
|
16233
16235
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -16236,9 +16238,9 @@ fill:t.fill}))))`
|
|
|
16236
16238
|
margin: 0;
|
|
16237
16239
|
direction: ${({theme:e})=>e.direction};
|
|
16238
16240
|
position: relative;
|
|
16239
|
-
`,
|
|
16241
|
+
`,VU=yr.thead``,TU=yr.tbody`
|
|
16240
16242
|
position: relative;
|
|
16241
|
-
`,
|
|
16243
|
+
`,RU=yr.tfoot``,PU=yr.tr`
|
|
16242
16244
|
&:hover {
|
|
16243
16245
|
transition: 0.2s ease;
|
|
16244
16246
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -16252,7 +16254,7 @@ fill:t.fill}))))`
|
|
|
16252
16254
|
border-bottom-width: 3px;
|
|
16253
16255
|
}
|
|
16254
16256
|
`}
|
|
16255
|
-
`,
|
|
16257
|
+
`,IU=yr.div`
|
|
16256
16258
|
position: absolute;
|
|
16257
16259
|
width: 100%;
|
|
16258
16260
|
height: 100%;
|
|
@@ -16262,7 +16264,7 @@ fill:t.fill}))))`
|
|
|
16262
16264
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16263
16265
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16264
16266
|
animation-name: ${Sr};
|
|
16265
|
-
`,
|
|
16267
|
+
`,OU=yr.th`
|
|
16266
16268
|
padding: 16px;
|
|
16267
16269
|
font-size: 12px;
|
|
16268
16270
|
line-height: 16px;
|
|
@@ -16295,7 +16297,7 @@ fill:t.fill}))))`
|
|
|
16295
16297
|
border-right: 3px solid ${({theme:e})=>e.colors.border.light};
|
|
16296
16298
|
}
|
|
16297
16299
|
`}
|
|
16298
|
-
`,
|
|
16300
|
+
`,NU=yr.td`
|
|
16299
16301
|
padding: 12px;
|
|
16300
16302
|
margin: 0;
|
|
16301
16303
|
font-size: 14px;
|
|
@@ -16318,19 +16320,19 @@ fill:t.fill}))))`
|
|
|
16318
16320
|
border-right: 3px solid ${e.colors.border.light};
|
|
16319
16321
|
}
|
|
16320
16322
|
`}
|
|
16321
|
-
`,NU=yr.div`
|
|
16322
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16323
16323
|
`,FU=yr.div`
|
|
16324
|
+
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16325
|
+
`,$U=yr.div`
|
|
16324
16326
|
padding: 24px;
|
|
16325
16327
|
display: flex;
|
|
16326
16328
|
justify-content: space-between;
|
|
16327
16329
|
align-items: center;
|
|
16328
|
-
|
|
16330
|
+
`,BU=yr.div`
|
|
16329
16331
|
padding: 0 24px;
|
|
16330
16332
|
display: flex;
|
|
16331
16333
|
gap: 16px;
|
|
16332
16334
|
height: 256px;
|
|
16333
|
-
`,
|
|
16335
|
+
`,jU=yr.div`
|
|
16334
16336
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
16335
16337
|
border-radius: 4px 4px 0px 0px;
|
|
16336
16338
|
padding: 8px 8px 0 8px;
|
|
@@ -16344,11 +16346,11 @@ fill:t.fill}))))`
|
|
|
16344
16346
|
margin-bottom: 8px;
|
|
16345
16347
|
}
|
|
16346
16348
|
}
|
|
16347
|
-
`,
|
|
16349
|
+
`,UU=yr.div`
|
|
16348
16350
|
display: flex;
|
|
16349
16351
|
gap: 8px;
|
|
16350
16352
|
flex-direction: column;
|
|
16351
|
-
`,
|
|
16353
|
+
`,YU=yr.div`
|
|
16352
16354
|
display: flex;
|
|
16353
16355
|
gap: 12px;
|
|
16354
16356
|
flex-direction: column;
|
|
@@ -16362,13 +16364,13 @@ fill:t.fill}))))`
|
|
|
16362
16364
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
16363
16365
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16364
16366
|
}
|
|
16365
|
-
`,
|
|
16367
|
+
`,WU=yr.div`
|
|
16366
16368
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
16367
16369
|
display: flex;
|
|
16368
16370
|
padding: 16px;
|
|
16369
16371
|
gap: 8px;
|
|
16370
16372
|
justify-content: flex-end;
|
|
16371
|
-
`,
|
|
16373
|
+
`,GU=yr.div`
|
|
16372
16374
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16373
16375
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
16374
16376
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -16382,7 +16384,7 @@ fill:t.fill}))))`
|
|
|
16382
16384
|
display: flex;
|
|
16383
16385
|
justify-content: space-between;
|
|
16384
16386
|
gap: 8px;
|
|
16385
|
-
`,
|
|
16387
|
+
`,KU=yr.div`
|
|
16386
16388
|
display: flex;
|
|
16387
16389
|
align-items: center;
|
|
16388
16390
|
width: fit-content;
|
|
@@ -16403,7 +16405,7 @@ fill:t.fill}))))`
|
|
|
16403
16405
|
color: ${e.colors.text.link};
|
|
16404
16406
|
`}
|
|
16405
16407
|
}
|
|
16406
|
-
`,
|
|
16408
|
+
`,qU=e.forwardRef(((t,n)=>{const r=cr();return e.createElement("svg",{
|
|
16407
16409
|
width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",
|
|
16408
16410
|
xmlns:"http://www.w3.org/2000/svg",...t,ref:n},e.createElement("path",{
|
|
16409
16411
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16412,36 +16414,36 @@ fill:r.colors.text.primary}),e.createElement("mask",{id:"mask0_3930_5537",
|
|
|
16412
16414
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
16413
16415
|
height:"16"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
16414
16416
|
d:"M2.58355 11.1378C4.81252 13.3668 8.33651 13.5074 10.7134 11.5548L14.1832 15.0246C14.4164 15.2578 14.7939 15.2586 15.0262 15.0262C15.2586 14.7939 15.2578 14.4164 15.0246 14.1832L11.5548 10.7134C13.5074 8.33651 13.3668 4.81252 11.1378 2.58355C8.76634 0.212068 4.92894 0.204542 2.56674 2.56674C0.204542 4.92894 0.212068 8.76634 2.58355 11.1378ZM3.42481 10.2966C1.51985 8.39167 1.5138 5.30917 3.41131 3.41166C5.30881 1.51416 8.39131 1.52021 10.2963 3.42517C12.2012 5.33013 12.2073 8.41263 10.3098 10.3101C8.41228 12.2076 5.32977 12.2016 3.42481 10.2966Z"
|
|
16415
|
-
})))})),
|
|
16417
|
+
})))})),ZU=["rowMenuOptions","select"],XU=({table:t})=>{
|
|
16416
16418
|
const n=cr(),[r,o]=e.useState({}),[a,i]=e.useState([]),l=t.getAllColumns(),c=t.getState(),s=e.useCallback((()=>{
|
|
16417
16419
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
16418
16420
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
16419
16421
|
}),[c.columnOrder,l,i]);return e.useEffect((()=>{o(c.columnVisibility),s()
|
|
16420
16422
|
}),[c.columnVisibility,s]),
|
|
16421
|
-
e.createElement(
|
|
16423
|
+
e.createElement(FU,null,e.createElement($U,null,e.createElement(Bo,{
|
|
16422
16424
|
weight:"semi-bold"},"Customize columns"),e.createElement(Mm,{variant:"link",
|
|
16423
16425
|
onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
|
|
16424
16426
|
})),o(e),s()}
|
|
16425
|
-
},"Reset")),e.createElement(
|
|
16426
|
-
startAdornment:e.createElement(
|
|
16427
|
+
},"Reset")),e.createElement(BU,null,e.createElement(UU,null,e.createElement(_c,{
|
|
16428
|
+
startAdornment:e.createElement(qU,{viewBox:"0 0 18px 18px"}),
|
|
16427
16429
|
placeholder:"Search columns"}),e.createElement(Bo,{weight:"semi-bold"
|
|
16428
|
-
},"Choose columns"),e.createElement(
|
|
16430
|
+
},"Choose columns"),e.createElement(YU,null,t.getAllColumns().filter((e=>!ZU.includes(e.id))).map((n=>e.createElement(Ug,{
|
|
16429
16431
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
16430
16432
|
onCheckedChange:e=>{const r=t.getAllColumns().find((e=>e.id===n.id));o((t=>({
|
|
16431
16433
|
...t,[n.id]:!0===e
|
|
16432
16434
|
}))),i((t=>!0===e?[...t,...r?[r]:[]]:t.filter((e=>e.id!==n.id))))}
|
|
16433
|
-
}))))),e.createElement(
|
|
16435
|
+
}))))),e.createElement(jU,null,e.createElement(Bo,{weight:"semi-bold"
|
|
16434
16436
|
},`Selected columns (${a.length})`),e.createElement(gj,{
|
|
16435
16437
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
16436
|
-
customFilter:e=>!
|
|
16438
|
+
customFilter:e=>!ZU.includes(e.id??""),customRender:t=>e.createElement(GU,{
|
|
16437
16439
|
key:t.id
|
|
16438
16440
|
},e.createElement("div",null,t?.columnDef?.header?.toString()??""),e.createElement(Ao,{
|
|
16439
16441
|
onClick:()=>{o((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
|
|
16440
16442
|
},e.createElement(no,{fill:n.colors.text.primary}))),items:a
|
|
16441
|
-
}))),e.createElement(
|
|
16443
|
+
}))),e.createElement(WU,null,e.createElement(zF,{asChild:!0
|
|
16442
16444
|
},e.createElement(Mm,{variant:"secondary"},"Cancel")),e.createElement(Mm,{
|
|
16443
16445
|
onClick:()=>{t.setColumnOrder(a.map((e=>e.id))),t.setColumnVisibility(r)}
|
|
16444
|
-
},"Update")))},
|
|
16446
|
+
},"Update")))},JU=t=>{
|
|
16445
16447
|
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=t,s=cr()
|
|
16446
16448
|
;return e.createElement(Kv,null,e.createElement(qv,{asChild:!0,disabled:i
|
|
16447
16449
|
},e.createElement(Oo,null,n)),e.createElement(Zv,null,e.createElement(Qv,{
|
|
@@ -16451,18 +16453,18 @@ side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
|
16451
16453
|
className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=c??[];e[n]=t?.[r],
|
|
16452
16454
|
a?.(e)}},t?.[o],c?.[n]===t?.[r]&&e.createElement(ro,{fill:s.colors.common.accent
|
|
16453
16455
|
})))),e.createElement(Jv,{className:"DropdownMenuSeparator"})))))))
|
|
16454
|
-
},
|
|
16456
|
+
},QU="Tabs",[eY,tY]=i(QU,[Pm]),nY=Pm(),[rY,oY]=eY(QU),aY=e.forwardRef(((t,n)=>{
|
|
16455
16457
|
const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:s,activationMode:u="automatic",...d}=t,h=B(s),[p,f]=y({
|
|
16456
|
-
prop:o,onChange:i,defaultProp:l});return e.createElement(
|
|
16458
|
+
prop:o,onChange:i,defaultProp:l});return e.createElement(rY,{scope:r,baseId:S(),
|
|
16457
16459
|
value:p,onValueChange:f,orientation:c,dir:h,activationMode:u
|
|
16458
16460
|
},e.createElement(b.div,a({dir:h,"data-orientation":c},d,{ref:n})))}))
|
|
16459
|
-
;function
|
|
16460
|
-
return`${e}-content-${t}`}const
|
|
16461
|
-
const{__scopeTabs:r,loop:o=!0,...i}=t,l=
|
|
16461
|
+
;function iY(e,t){return`${e}-trigger-${t}`}function lY(e,t){
|
|
16462
|
+
return`${e}-content-${t}`}const cY=e.forwardRef(((t,n)=>{
|
|
16463
|
+
const{__scopeTabs:r,loop:o=!0,...i}=t,l=oY("TabsList",r),c=nY(r)
|
|
16462
16464
|
;return e.createElement(Um,a({asChild:!0},c,{orientation:l.orientation,
|
|
16463
16465
|
dir:l.dir,loop:o}),e.createElement(b.div,a({role:"tablist",
|
|
16464
|
-
"aria-orientation":l.orientation},i,{ref:n})))})),
|
|
16465
|
-
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=
|
|
16466
|
+
"aria-orientation":l.orientation},i,{ref:n})))})),sY=e.forwardRef(((t,n)=>{
|
|
16467
|
+
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=oY("TabsTrigger",r),s=nY(r),u=iY(c.baseId,o),d=lY(c.baseId,o),h=o===c.value
|
|
16466
16468
|
;return e.createElement(Ym,a({asChild:!0},s,{focusable:!i,active:h
|
|
16467
16469
|
}),e.createElement(b.button,a({type:"button",role:"tab","aria-selected":h,
|
|
16468
16470
|
"aria-controls":d,"data-state":h?"active":"inactive",
|
|
@@ -16471,21 +16473,21 @@ onMouseDown:v(t.onMouseDown,(e=>{
|
|
|
16471
16473
|
i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(o)})),
|
|
16472
16474
|
onKeyDown:v(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(o)
|
|
16473
16475
|
})),onFocus:v(t.onFocus,(()=>{const e="manual"!==c.activationMode
|
|
16474
|
-
;h||i||!e||c.onValueChange(o)}))})))})),
|
|
16475
|
-
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=
|
|
16476
|
+
;h||i||!e||c.onValueChange(o)}))})))})),uY=e.forwardRef(((t,n)=>{
|
|
16477
|
+
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=oY("TabsContent",r),u=iY(s.baseId,o),d=lY(s.baseId,o),h=o===s.value,p=e.useRef(h)
|
|
16476
16478
|
;return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1))
|
|
16477
16479
|
;return()=>cancelAnimationFrame(e)}),[]),e.createElement(z,{present:i||h
|
|
16478
16480
|
},(({present:r})=>e.createElement(b.div,a({"data-state":h?"active":"inactive",
|
|
16479
16481
|
"data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,
|
|
16480
16482
|
id:d,tabIndex:0},c,{ref:n,style:{...t.style,
|
|
16481
16483
|
animationDuration:p.current?"0s":void 0}}),r&&l)))
|
|
16482
|
-
})),
|
|
16484
|
+
})),dY=yr(aY)``,hY=yr(uY)``,pY=yr(cY)`
|
|
16483
16485
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16484
16486
|
display: flex;
|
|
16485
16487
|
flex-wrap: nowrap;
|
|
16486
16488
|
gap: 12px;
|
|
16487
16489
|
direction: ${({theme:e})=>e.direction};
|
|
16488
|
-
`,
|
|
16490
|
+
`,fY=yr(sY)`
|
|
16489
16491
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16490
16492
|
direction: ${({theme:e})=>e.direction};
|
|
16491
16493
|
background-color: unset;
|
|
@@ -16513,28 +16515,28 @@ animationDuration:p.current?"0s":void 0}}),r&&l)))
|
|
|
16513
16515
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
16514
16516
|
cursor: not-allowed;
|
|
16515
16517
|
}
|
|
16516
|
-
`,
|
|
16518
|
+
`,mY=e.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
|
|
16517
16519
|
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}
|
|
16518
|
-
}),
|
|
16520
|
+
}),vY="ToastProvider",[gY,yY,bY]=m("Toast"),[wY,CY]=i("Toast",[bY]),[zY,MY]=wY(vY),xY=t=>{
|
|
16519
16521
|
const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:l}=t,[c,s]=e.useState(null),[u,d]=e.useState(0),h=e.useRef(!1),p=e.useRef(!1)
|
|
16520
|
-
;return e.createElement(
|
|
16522
|
+
;return e.createElement(gY.Provider,{scope:n},e.createElement(zY,{scope:n,
|
|
16521
16523
|
label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,
|
|
16522
16524
|
onViewportChange:s,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),
|
|
16523
16525
|
onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),
|
|
16524
|
-
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};
|
|
16526
|
+
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};xY.propTypes={
|
|
16525
16527
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
16526
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
16528
|
+
return new Error(`Invalid prop \`label\` supplied to \`${vY}\`. Expected non-empty \`string\`.`)
|
|
16527
16529
|
}return null}}
|
|
16528
|
-
;const
|
|
16529
|
-
const{__scopeToast:r,hotkey:o=
|
|
16530
|
+
;const EY=["F8"],SY="toast.viewportPause",_Y="toast.viewportResume",HY=e.forwardRef(((t,n)=>{
|
|
16531
|
+
const{__scopeToast:r,hotkey:o=EY,label:i="Notifications ({hotkey})",...l}=t,c=MY("ToastViewport",r),u=yY(r),d=e.useRef(null),h=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=s(n,f,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0
|
|
16530
16532
|
;e.useEffect((()=>{const e=e=>{var t;const n=o.every((t=>e[t]||e.code===t))
|
|
16531
16533
|
;n&&(null===(t=f.current)||void 0===t||t.focus())}
|
|
16532
16534
|
;return document.addEventListener("keydown",e),
|
|
16533
16535
|
()=>document.removeEventListener("keydown",e)}),[o]),e.useEffect((()=>{
|
|
16534
16536
|
const e=d.current,t=f.current;if(g&&e&&t){const n=()=>{
|
|
16535
|
-
if(!c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16537
|
+
if(!c.isClosePausedRef.current){const e=new CustomEvent(SY)
|
|
16536
16538
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
|
|
16537
|
-
if(c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16539
|
+
if(c.isClosePausedRef.current){const e=new CustomEvent(_Y)
|
|
16538
16540
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
|
|
16539
16541
|
!e.contains(t.relatedTarget)&&r()},a=()=>{
|
|
16540
16542
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -16546,7 +16548,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
|
|
|
16546
16548
|
e.removeEventListener("pointerleave",a),
|
|
16547
16549
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
16548
16550
|
}),[g,c.isClosePausedRef]);const y=e.useCallback((({tabbingDirection:e})=>{
|
|
16549
|
-
const t=u().map((t=>{const n=t.ref.current,r=[n,...
|
|
16551
|
+
const t=u().map((t=>{const n=t.ref.current,r=[n,...jY(n)]
|
|
16550
16552
|
;return"forwards"===e?r:r.reverse()}))
|
|
16551
16553
|
;return("forwards"===e?t.reverse():t).flat()}),[u]);return e.useEffect((()=>{
|
|
16552
16554
|
const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -16554,23 +16556,23 @@ const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
16554
16556
|
;if(t.target===e&&i)return void(null===(r=h.current)||void 0===r||r.focus())
|
|
16555
16557
|
;const l=y({tabbingDirection:i?"backwards":"forwards"
|
|
16556
16558
|
}),c=l.findIndex((e=>e===n));var o,a
|
|
16557
|
-
;if(
|
|
16559
|
+
;if(UY(l.slice(c+1)))t.preventDefault();else i?null===(o=h.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()
|
|
16558
16560
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
16559
16561
|
}}),[u,y]),e.createElement(Yc,{ref:d,role:"region",
|
|
16560
16562
|
"aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{
|
|
16561
|
-
pointerEvents:g?void 0:"none"}},g&&e.createElement(
|
|
16562
|
-
onFocusFromOutsideViewport:()=>{
|
|
16563
|
-
}),e.createElement(
|
|
16564
|
-
ref:m}))),g&&e.createElement(
|
|
16565
|
-
tabbingDirection:"backwards"}))}}))})),
|
|
16566
|
-
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=
|
|
16563
|
+
pointerEvents:g?void 0:"none"}},g&&e.createElement(DY,{ref:h,
|
|
16564
|
+
onFocusFromOutsideViewport:()=>{UY(y({tabbingDirection:"forwards"}))}
|
|
16565
|
+
}),e.createElement(gY.Slot,{scope:r},e.createElement(b.ol,a({tabIndex:-1},l,{
|
|
16566
|
+
ref:m}))),g&&e.createElement(DY,{ref:p,onFocusFromOutsideViewport:()=>{UY(y({
|
|
16567
|
+
tabbingDirection:"backwards"}))}}))})),DY=e.forwardRef(((t,n)=>{
|
|
16568
|
+
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=MY("ToastFocusProxy",r)
|
|
16567
16569
|
;return e.createElement(Wu,a({"aria-hidden":!0,tabIndex:0},i,{ref:n,style:{
|
|
16568
16570
|
position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
|
|
16569
16571
|
;!(null!==(t=l.viewport)&&void 0!==t&&t.contains(n))&&o()}}))
|
|
16570
|
-
})),
|
|
16572
|
+
})),kY="Toast",AY=e.forwardRef(((t,n)=>{
|
|
16571
16573
|
const{forceMount:r,open:o,defaultOpen:i,onOpenChange:l,...c}=t,[s=!0,u]=y({
|
|
16572
16574
|
prop:o,defaultProp:i,onChange:l});return e.createElement(z,{present:r||s
|
|
16573
|
-
},e.createElement(
|
|
16575
|
+
},e.createElement(TY,a({open:s},c,{ref:n,onClose:()=>u(!1),onPause:g(t.onPause),
|
|
16574
16576
|
onResume:g(t.onResume),onSwipeStart:v(t.onSwipeStart,(e=>{
|
|
16575
16577
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
16576
16578
|
onSwipeMove:v(t.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta
|
|
@@ -16589,8 +16591,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
16589
16591
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
16590
16592
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
16591
16593
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)}))
|
|
16592
|
-
})))})),[
|
|
16593
|
-
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=
|
|
16594
|
+
})))})),[LY,VY]=wY(kY,{onClose(){}}),TY=e.forwardRef(((n,r)=>{
|
|
16595
|
+
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=MY(kY,o),[M,x]=e.useState(null),E=s(r,(e=>x(e))),S=e.useRef(null),_=e.useRef(null),H=l||z.duration,D=e.useRef(0),k=e.useRef(H),A=e.useRef(0),{onToastAdd:L,onToastRemove:V}=z,T=g((()=>{
|
|
16594
16596
|
var e
|
|
16595
16597
|
;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
16596
16598
|
u()})),R=e.useCallback((e=>{
|
|
@@ -16599,15 +16601,15 @@ A.current=window.setTimeout(T,e))}),[T]);e.useEffect((()=>{const e=z.viewport
|
|
|
16599
16601
|
;if(e){const t=()=>{R(k.current),null==p||p()},n=()=>{
|
|
16600
16602
|
const e=(new Date).getTime()-D.current
|
|
16601
16603
|
;k.current=k.current-e,window.clearTimeout(A.current),null==h||h()}
|
|
16602
|
-
;return e.addEventListener(
|
|
16603
|
-
e.removeEventListener(
|
|
16604
|
+
;return e.addEventListener(SY,n),e.addEventListener(_Y,t),()=>{
|
|
16605
|
+
e.removeEventListener(SY,n),e.removeEventListener(_Y,t)}}
|
|
16604
16606
|
}),[z.viewport,H,h,p,R]),e.useEffect((()=>{c&&!z.isClosePausedRef.current&&R(H)
|
|
16605
16607
|
}),[c,H,z.isClosePausedRef,R]),e.useEffect((()=>(L(),()=>V())),[L,V])
|
|
16606
|
-
;const P=e.useMemo((()=>M?
|
|
16607
|
-
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(
|
|
16608
|
+
;const P=e.useMemo((()=>M?FY(M):null),[M])
|
|
16609
|
+
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(RY,{
|
|
16608
16610
|
__scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite",
|
|
16609
|
-
"aria-atomic":!0},P),e.createElement(
|
|
16610
|
-
},t.createPortal(e.createElement(
|
|
16611
|
+
"aria-atomic":!0},P),e.createElement(LY,{scope:o,onClose:T
|
|
16612
|
+
},t.createPortal(e.createElement(gY.ItemSlot,{scope:o},e.createElement(Uc,{
|
|
16611
16613
|
asChild:!0,onEscapeKeyDown:v(d,(()=>{
|
|
16612
16614
|
z.isFocusedToastEscapeKeyDownRef.current||T(),
|
|
16613
16615
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},e.createElement(b.li,a({
|
|
@@ -16620,59 +16622,59 @@ T()))})),onPointerDown:v(n.onPointerDown,(e=>{0===e.button&&(S.current={
|
|
|
16620
16622
|
x:e.clientX,y:e.clientY})})),onPointerMove:v(n.onPointerMove,(e=>{
|
|
16621
16623
|
if(!S.current)return
|
|
16622
16624
|
;const t=e.clientX-S.current.x,n=e.clientY-S.current.y,r=Boolean(_.current),o=["left","right"].includes(z.swipeDirection),a=["left","up"].includes(z.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,l=o?0:a(0,n),c="touch"===e.pointerType?10:2,s={
|
|
16623
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s
|
|
16624
|
-
discrete:!1}))
|
|
16625
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,$Y("toast.swipeMove",m,u,{
|
|
16626
|
+
discrete:!1})):BY(s,z.swipeDirection,c)?(_.current=s,$Y("toast.swipeStart",f,u,{
|
|
16625
16627
|
discrete:!1
|
|
16626
16628
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(S.current=null)
|
|
16627
16629
|
})),onPointerUp:v(n.onPointerUp,(e=>{const t=_.current,n=e.target
|
|
16628
16630
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
16629
16631
|
_.current=null,S.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
16630
|
-
delta:t}
|
|
16631
|
-
discrete:!0})
|
|
16632
|
+
delta:t};BY(t,z.swipeDirection,z.swipeThreshold)?$Y("toast.swipeEnd",w,r,{
|
|
16633
|
+
discrete:!0}):$Y("toast.swipeCancel",y,r,{discrete:!0
|
|
16632
16634
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
16633
|
-
})))),z.viewport))):null}));
|
|
16635
|
+
})))),z.viewport))):null}));TY.propTypes={type(e){
|
|
16634
16636
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
16635
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
16636
|
-
}return null}};const
|
|
16637
|
-
const{__scopeToast:n,children:r,...o}=t,a=
|
|
16637
|
+
return new Error(`Invalid prop \`type\` supplied to \`${kY}\`. Expected \`foreground | background\`.`)
|
|
16638
|
+
}return null}};const RY=t=>{
|
|
16639
|
+
const{__scopeToast:n,children:r,...o}=t,a=MY(kY,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
|
|
16638
16640
|
;return function(e=(()=>{})){const t=g(e);C((()=>{let e=0,n=0
|
|
16639
16641
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
16640
16642
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
16641
16643
|
}((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
16642
16644
|
;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Uu,{asChild:!0
|
|
16643
16645
|
},e.createElement(Wu,o,i&&e.createElement(e.Fragment,null,a.label," ",r)))
|
|
16644
|
-
},
|
|
16645
|
-
;return e.createElement(b.div,a({},o,{ref:n}))})),
|
|
16646
|
-
const{altText:r,...o}=t;return r?e.createElement(
|
|
16647
|
-
},e.createElement(
|
|
16646
|
+
},PY=e.forwardRef(((t,n)=>{const{__scopeToast:r,...o}=t
|
|
16647
|
+
;return e.createElement(b.div,a({},o,{ref:n}))})),IY=e.forwardRef(((t,n)=>{
|
|
16648
|
+
const{altText:r,...o}=t;return r?e.createElement(NY,{altText:r,asChild:!0
|
|
16649
|
+
},e.createElement(OY,a({},o,{ref:n}))):null}));IY.propTypes={
|
|
16648
16650
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
16649
|
-
};const
|
|
16650
|
-
const{__scopeToast:r,...o}=t,i=
|
|
16651
|
+
};const OY=e.forwardRef(((t,n)=>{
|
|
16652
|
+
const{__scopeToast:r,...o}=t,i=VY("ToastClose",r);return e.createElement(NY,{
|
|
16651
16653
|
asChild:!0},e.createElement(b.button,a({type:"button"},o,{ref:n,
|
|
16652
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16654
|
+
onClick:v(t.onClick,i.onClose)})))})),NY=e.forwardRef(((t,n)=>{
|
|
16653
16655
|
const{__scopeToast:r,altText:o,...i}=t;return e.createElement(b.div,a({
|
|
16654
16656
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0
|
|
16655
|
-
},i,{ref:n}))}));function
|
|
16657
|
+
},i,{ref:n}))}));function FY(e){const t=[]
|
|
16656
16658
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
16657
16659
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
16658
16660
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
16659
16661
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
16660
16662
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
16661
|
-
}else t.push(...
|
|
16663
|
+
}else t.push(...FY(e))}})),t}function $Y(e,t,n,{discrete:r}){
|
|
16662
16664
|
const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
|
|
16663
16665
|
cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
|
|
16664
|
-
}),r?w(o,a):o.dispatchEvent(a)}const
|
|
16666
|
+
}),r?w(o,a):o.dispatchEvent(a)}const BY=(e,t,n=0)=>{
|
|
16665
16667
|
const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
|
|
16666
|
-
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function
|
|
16668
|
+
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function jY(e){
|
|
16667
16669
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
16668
16670
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
16669
16671
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
16670
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
16672
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function UY(e){
|
|
16671
16673
|
const t=document.activeElement
|
|
16672
16674
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
16673
|
-
const
|
|
16675
|
+
const YY=HY,WY=AY,GY=PY,KY=IY,qY=yr(xY)``;yr.div`
|
|
16674
16676
|
border-top: 4px solid;
|
|
16675
|
-
`;const
|
|
16677
|
+
`;const ZY=yr(WY)`
|
|
16676
16678
|
direction: ${({theme:e})=>e.direction};
|
|
16677
16679
|
&[data-state='open']:nth-last-of-type(1) {
|
|
16678
16680
|
z-index: ${({theme:e})=>(e.zIndex.snackbar||xo.snackbar)-1};
|
|
@@ -16719,7 +16721,7 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16719
16721
|
|
|
16720
16722
|
width: 400px;
|
|
16721
16723
|
transition: all 0.3s ease-in-out;
|
|
16722
|
-
`,
|
|
16724
|
+
`,XY=yr(GY)`
|
|
16723
16725
|
text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
|
|
16724
16726
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16725
16727
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -16727,7 +16729,7 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16727
16729
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16728
16730
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
16729
16731
|
flex: 1;
|
|
16730
|
-
`,
|
|
16732
|
+
`,JY=yr(KY)``,QY=yr(YY)`
|
|
16731
16733
|
position: fixed;
|
|
16732
16734
|
top: 16px;
|
|
16733
16735
|
display: flex;
|
|
@@ -16759,13 +16761,13 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16759
16761
|
animation-play-state: paused;
|
|
16760
16762
|
}
|
|
16761
16763
|
}
|
|
16762
|
-
`,
|
|
16764
|
+
`,eW=yr.div`
|
|
16763
16765
|
direction: ${({theme:e})=>e.direction};
|
|
16764
16766
|
display: flex;
|
|
16765
16767
|
align-items: center;
|
|
16766
16768
|
padding: 16px;
|
|
16767
16769
|
gap: 8px;
|
|
16768
|
-
`,
|
|
16770
|
+
`,tW=yr.div`
|
|
16769
16771
|
height: 4px;
|
|
16770
16772
|
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16771
16773
|
border-radius: 4px 4px 0 0;
|
|
@@ -16776,20 +16778,20 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16776
16778
|
${"focus"===t?"running":"paused"};
|
|
16777
16779
|
will-change: width;
|
|
16778
16780
|
`}
|
|
16779
|
-
`,
|
|
16781
|
+
`,nW=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
|
|
16780
16782
|
n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
16781
|
-
}),[]),{isBrowser:t,isServer:!t}},
|
|
16782
|
-
;return t.setAttribute("id",e),t},
|
|
16783
|
+
}),[]),{isBrowser:t,isServer:!t}},rW=e=>{const t=document.createElement("div")
|
|
16784
|
+
;return t.setAttribute("id",e),t},oW=t=>{const n=cr()
|
|
16783
16785
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
16784
16786
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16785
16787
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16786
16788
|
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",
|
|
16787
|
-
fill:n.colors.text.semantic.error}))},
|
|
16789
|
+
fill:n.colors.text.semantic.error}))},aW=t=>{const n=cr()
|
|
16788
16790
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16789
16791
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16790
16792
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16791
16793
|
d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84286 12.1217 2 10 2ZM9.99999 16.6C6.35491 16.6 3.39999 13.6451 3.39999 10C3.39999 6.35493 6.35491 3.40001 9.99999 3.40001C13.6451 3.40001 16.6 6.35493 16.6 10C16.5945 13.6428 13.6428 16.5945 9.99999 16.6ZM14.0045 7.83C14.0045 7.64099 13.927 7.46025 13.79 7.33C13.5144 7.06199 13.0756 7.06199 12.8 7.33L9 11.18L7.21 9.41C7.03137 9.23136 6.771 9.1616 6.52699 9.22698C6.28297 9.29237 6.09237 9.48297 6.02699 9.72698C5.9616 9.971 6.03137 10.2314 6.21 10.41L8.45 12.67C8.7268 12.9446 9.1732 12.9446 9.45 12.67L13.79 8.33C13.927 8.19974 14.0045 8.01901 14.0045 7.83Z",
|
|
16792
|
-
fill:n.colors.text.semantic.success}))},
|
|
16794
|
+
fill:n.colors.text.semantic.success}))},iW=t=>{const n=cr()
|
|
16793
16795
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16794
16796
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16795
16797
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16798,34 +16800,34 @@ fill:n.colors.text.semantic.warning}),e.createElement("path",{
|
|
|
16798
16800
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16799
16801
|
d:"M9 12.8668C9 12.3145 9.44771 11.8668 10 11.8668C10.5523 11.8668 11 12.3145 11 12.8668C11 13.4191 10.5523 13.8668 10 13.8668C9.44771 13.8668 9 13.4191 9 12.8668ZM9.99951 10.9268C10.387 10.9268 10.7012 10.6127 10.7012 10.2252V6.48847C10.7012 6.10096 10.387 5.78681 9.99951 5.78681C9.612 5.78681 9.29785 6.10096 9.29785 6.48847V10.2252C9.29785 10.6127 9.612 10.9268 9.99951 10.9268Z",
|
|
16800
16802
|
fill:n.colors.text.semantic.warning}))
|
|
16801
|
-
},
|
|
16802
|
-
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(
|
|
16803
|
+
},lW=({index:t,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
|
|
16804
|
+
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(mY)??{},f=e.useRef(null),[m,v]=e.useState(!1)
|
|
16803
16805
|
;e.useEffect((()=>{const e=window.setTimeout((()=>{
|
|
16804
16806
|
o||m&&p||h||u((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
|
|
16805
|
-
}),[l,o,r,u,m,p,h]);const g={success:e.createElement(
|
|
16806
|
-
fill:s.colors.text.semantic.success}),warning:e.createElement(
|
|
16807
|
-
fill:s.colors.text.semantic.warning}),error:e.createElement(
|
|
16807
|
+
}),[l,o,r,u,m,p,h]);const g={success:e.createElement(aW,{
|
|
16808
|
+
fill:s.colors.text.semantic.success}),warning:e.createElement(iW,{
|
|
16809
|
+
fill:s.colors.text.semantic.warning}),error:e.createElement(oW,{
|
|
16808
16810
|
fill:s.colors.text.semantic.error}),info:e.createElement(lo,{
|
|
16809
16811
|
fill:s.colors.text.semantic.info})}
|
|
16810
|
-
;return e.createElement(e.Fragment,null,e.createElement(
|
|
16812
|
+
;return e.createElement(e.Fragment,null,e.createElement(ZY,{role:"alert",
|
|
16811
16813
|
"aria-live":"polite",ref:f,toastType:c,dir:s.direction,style:o||!i?{
|
|
16812
16814
|
borderTop:"none"}:void 0,toastIndex:t,
|
|
16813
16815
|
className:`ToastRoot Toast-${r??""}`.trim(),duration:o?1/0:l,
|
|
16814
16816
|
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16815
|
-
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(
|
|
16817
|
+
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(tW,{
|
|
16816
16818
|
className:"ToastProgress",windowState:d,toastType:c,delay:!o&&i?l:"none"
|
|
16817
|
-
}),e.createElement(
|
|
16818
|
-
},a),e.createElement(
|
|
16819
|
+
}),e.createElement(eW,null,n??g[c],e.createElement(XY,{className:"ToastTitle"
|
|
16820
|
+
},a),e.createElement(JY,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
16819
16821
|
"aria-label":"Close"},e.createElement(Oo,null,e.createElement(no,{
|
|
16820
|
-
fill:s.colors.text.primary}))))))},
|
|
16821
|
-
const n=`ui-${t}`,{isBrowser:r}=
|
|
16822
|
-
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||
|
|
16822
|
+
fill:s.colors.text.primary}))))))},cW=()=>{const n=((t=pj())=>{
|
|
16823
|
+
const n=`ui-${t}`,{isBrowser:r}=nW(),[o,a]=e.useState(r?rW(n):null)
|
|
16824
|
+
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||rW(n)
|
|
16823
16825
|
;e||document.body.appendChild(t),a(t)}),[]),o
|
|
16824
|
-
})("toast"),{toasts:r}=e.useContext(
|
|
16825
|
-
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(
|
|
16826
|
-
swipeDirection:"up"},r.map(((t,n)=>e.createElement(
|
|
16827
|
-
index:n}))),e.createElement(
|
|
16828
|
-
},
|
|
16826
|
+
})("toast"),{toasts:r}=e.useContext(mY)??{}
|
|
16827
|
+
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(qY,{
|
|
16828
|
+
swipeDirection:"up"},r.map(((t,n)=>e.createElement(lW,{key:`Toast-${t.id}`,...t,
|
|
16829
|
+
index:n}))),e.createElement(QY,{className:"ToastViewport"}))),n):null
|
|
16830
|
+
},sW=({children:t,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
|
|
16829
16831
|
const[o,a]=e.useState("focus"),[i,l]=e.useState([]),c=e.useCallback((e=>{
|
|
16830
16832
|
l((t=>[{...e,id:pj(),state:"open"},...t]))}),[]),s=e.useCallback((e=>{
|
|
16831
16833
|
l((t=>e(t)))}),[]),u=e.useMemo((()=>({toasts:i,addToast:c,windowState:o,
|
|
@@ -16834,25 +16836,25 @@ updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
|
|
|
16834
16836
|
a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
|
|
16835
16837
|
r&&(window.removeEventListener("focus",(()=>{})),
|
|
16836
16838
|
window.removeEventListener("blur",(()=>{})))
|
|
16837
|
-
})),[r]),e.createElement(
|
|
16838
|
-
;var
|
|
16839
|
+
})),[r]),e.createElement(mY.Provider,{value:u},e.createElement(cW,null),t)}
|
|
16840
|
+
;var uW=wr`
|
|
16839
16841
|
* {
|
|
16840
16842
|
box-sizing: border-box;
|
|
16841
16843
|
/* direction: ${({theme:e})=>e.direction}; */
|
|
16842
16844
|
}
|
|
16843
|
-
`;const
|
|
16844
|
-
height:7.16}},
|
|
16845
|
-
height:8}},
|
|
16845
|
+
`;const dW={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,
|
|
16846
|
+
height:7.16}},hW={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,
|
|
16847
|
+
height:8}},pW="Switch",[fW,mW]=i(pW),[vW,gW]=fW(pW),yW=e.forwardRef(((t,n)=>{
|
|
16846
16848
|
const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...p}=t,[f,m]=e.useState(null),g=s(n,(e=>m(e))),w=e.useRef(!1),C=!f||Boolean(f.closest("form")),[z=!1,M]=y({
|
|
16847
|
-
prop:i,defaultProp:l,onChange:h});return e.createElement(
|
|
16849
|
+
prop:i,defaultProp:l,onChange:h});return e.createElement(vW,{scope:r,checked:z,
|
|
16848
16850
|
disabled:u},e.createElement(b.button,a({type:"button",role:"switch",
|
|
16849
|
-
"aria-checked":z,"aria-required":c,"data-state":
|
|
16851
|
+
"aria-checked":z,"aria-required":c,"data-state":wW(z),
|
|
16850
16852
|
"data-disabled":u?"":void 0,disabled:u,value:d},p,{ref:g,
|
|
16851
16853
|
onClick:v(t.onClick,(e=>{
|
|
16852
16854
|
M((e=>!e)),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())
|
|
16853
|
-
}))})),C&&e.createElement(
|
|
16855
|
+
}))})),C&&e.createElement(bW,{control:f,bubbles:!w.current,name:o,value:d,
|
|
16854
16856
|
checked:z,required:c,disabled:u,style:{transform:"translateX(-100%)"}}))
|
|
16855
|
-
})),
|
|
16857
|
+
})),bW=t=>{
|
|
16856
16858
|
const{control:n,checked:r,bubbles:o=!0,...i}=t,l=e.useRef(null),c=Yu(r),s=Mu(n)
|
|
16857
16859
|
;return e.useEffect((()=>{
|
|
16858
16860
|
const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
@@ -16860,21 +16862,21 @@ const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDes
|
|
|
16860
16862
|
;n.call(e,r),e.dispatchEvent(t)}}),[c,r,o]),e.createElement("input",a({
|
|
16861
16863
|
type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:l,style:{
|
|
16862
16864
|
...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
|
|
16863
|
-
;function
|
|
16864
|
-
const{__scopeSwitch:r,...o}=t,i=
|
|
16865
|
-
;return e.createElement(b.span,a({"data-state":
|
|
16866
|
-
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),
|
|
16865
|
+
;function wW(e){return e?"checked":"unchecked"}const CW=e.forwardRef(((t,n)=>{
|
|
16866
|
+
const{__scopeSwitch:r,...o}=t,i=gW("SwitchThumb",r)
|
|
16867
|
+
;return e.createElement(b.span,a({"data-state":wW(i.checked),
|
|
16868
|
+
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),zW={sm:{width:28,height:12,
|
|
16867
16869
|
thumb:16,offTransform:[-2,-2],onTransform:[14,-2]},md:{width:36,height:16,
|
|
16868
16870
|
thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{width:44,height:20,
|
|
16869
|
-
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},
|
|
16871
|
+
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},MW=yr(yW)`
|
|
16870
16872
|
margin: 0;
|
|
16871
16873
|
padding: 0;
|
|
16872
16874
|
outline: 0;
|
|
16873
16875
|
border: none;
|
|
16874
16876
|
position: relative;
|
|
16875
|
-
width: ${({size:e})=>
|
|
16876
|
-
height: ${({size:e})=>
|
|
16877
|
-
border-radius: ${({size:e})=>
|
|
16877
|
+
width: ${({size:e})=>zW[e].width}px;
|
|
16878
|
+
height: ${({size:e})=>zW[e].height}px;
|
|
16879
|
+
border-radius: ${({size:e})=>zW[e].height/2}px;
|
|
16878
16880
|
&[data-disabled] {
|
|
16879
16881
|
opacity: 0.5;
|
|
16880
16882
|
}
|
|
@@ -16894,16 +16896,16 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
|
|
|
16894
16896
|
}
|
|
16895
16897
|
}
|
|
16896
16898
|
}
|
|
16897
|
-
`,
|
|
16899
|
+
`,xW=yr(CW)`
|
|
16898
16900
|
display: grid;
|
|
16899
16901
|
place-content: center;
|
|
16900
|
-
width: ${({size:e})=>
|
|
16901
|
-
height: ${({size:e})=>
|
|
16902
|
+
width: ${({size:e})=>zW[e].thumb}px;
|
|
16903
|
+
height: ${({size:e})=>zW[e].thumb}px;
|
|
16902
16904
|
border-radius: 50%;
|
|
16903
16905
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
16904
16906
|
transition: transform 100ms;
|
|
16905
16907
|
transform: translate(
|
|
16906
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16908
|
+
${({theme:e,size:t})=>("ltr"===e.direction?zW[t].offTransform:zW[t].onTransform).map((e=>`${e}px`)).join(",")}
|
|
16907
16909
|
);
|
|
16908
16910
|
will-change: transform;
|
|
16909
16911
|
overflow: hidden;
|
|
@@ -16925,15 +16927,15 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
|
|
|
16925
16927
|
}
|
|
16926
16928
|
&[data-state='checked'] {
|
|
16927
16929
|
transform: translate(
|
|
16928
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16930
|
+
${({theme:e,size:t})=>("ltr"===e.direction?zW[t].onTransform:zW[t].offTransform).map((e=>`${e}px`)).join(",")}
|
|
16929
16931
|
);
|
|
16930
16932
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
16931
16933
|
svg.toggle-off {
|
|
16932
16934
|
display: none;
|
|
16933
16935
|
}
|
|
16934
16936
|
}
|
|
16935
|
-
`,[
|
|
16936
|
-
const{__scopeTooltip:r,...o}=t,i=
|
|
16937
|
+
`,[EW,SW]=i("Tooltip",[Su]),_W=Su(),HW=700,DW="tooltip.open",[kW,AW]=EW("TooltipProvider"),LW="Tooltip",[VW,TW]=EW(LW),RW="TooltipTrigger",PW=e.forwardRef(((t,n)=>{
|
|
16938
|
+
const{__scopeTooltip:r,...o}=t,i=TW(RW,r),l=AW(RW,r),c=_W(r),u=s(n,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),h=e.useRef(!1),p=e.useCallback((()=>d.current=!1),[])
|
|
16937
16939
|
;return e.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),
|
|
16938
16940
|
e.createElement($u,a({asChild:!0},c),e.createElement(b.button,a({
|
|
16939
16941
|
"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{
|
|
@@ -16943,13 +16945,13 @@ h.current=!0))})),onPointerLeave:v(t.onPointerLeave,(()=>{
|
|
|
16943
16945
|
i.onTriggerLeave(),h.current=!1})),onPointerDown:v(t.onPointerDown,(()=>{
|
|
16944
16946
|
d.current=!0,document.addEventListener("pointerup",p,{once:!0})})),
|
|
16945
16947
|
onFocus:v(t.onFocus,(()=>{d.current||i.onOpen()})),onBlur:v(t.onBlur,i.onClose),
|
|
16946
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16947
|
-
forceMount:void 0}),
|
|
16948
|
-
const r=
|
|
16948
|
+
onClick:v(t.onClick,i.onClose)})))})),IW="TooltipPortal",[OW,NW]=EW(IW,{
|
|
16949
|
+
forceMount:void 0}),FW="TooltipContent",$W=e.forwardRef(((t,n)=>{
|
|
16950
|
+
const r=NW(FW,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,c=TW(FW,t.__scopeTooltip)
|
|
16949
16951
|
;return e.createElement(z,{present:o||c.open
|
|
16950
|
-
},c.disableHoverableContent?e.createElement(
|
|
16951
|
-
})):e.createElement(
|
|
16952
|
-
const r=
|
|
16952
|
+
},c.disableHoverableContent?e.createElement(YW,a({side:i},l,{ref:n
|
|
16953
|
+
})):e.createElement(BW,a({side:i},l,{ref:n})))})),BW=e.forwardRef(((t,n)=>{
|
|
16954
|
+
const r=TW(FW,t.__scopeTooltip),o=AW(FW,t.__scopeTooltip),i=e.useRef(null),l=s(n,i),[c,u]=e.useState(null),{trigger:d,onClose:h}=r,p=i.current,{onPointerInTransitChange:f}=o,m=e.useCallback((()=>{
|
|
16953
16955
|
u(null),f(!1)}),[f]),v=e.useCallback(((e,t)=>{const n=e.currentTarget,r={
|
|
16954
16956
|
x:e.clientX,y:e.clientY},o=function(e,t){
|
|
16955
16957
|
const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x)
|
|
@@ -16986,11 +16988,11 @@ const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
|
|
|
16986
16988
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?m():o&&(m(),h())}
|
|
16987
16989
|
;return document.addEventListener("pointermove",e),
|
|
16988
16990
|
()=>document.removeEventListener("pointermove",e)}
|
|
16989
|
-
}),[d,p,c,h,m]),e.createElement(
|
|
16990
|
-
isInside:!1}),
|
|
16991
|
-
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=
|
|
16992
|
-
;return e.useEffect((()=>(document.addEventListener(
|
|
16993
|
-
()=>document.removeEventListener(
|
|
16991
|
+
}),[d,p,c,h,m]),e.createElement(YW,a({},t,{ref:l}))})),[jW,UW]=EW(LW,{
|
|
16992
|
+
isInside:!1}),YW=e.forwardRef(((t,n)=>{
|
|
16993
|
+
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=TW(FW,r),d=_W(r),{onClose:p}=u
|
|
16994
|
+
;return e.useEffect((()=>(document.addEventListener(DW,p),
|
|
16995
|
+
()=>document.removeEventListener(DW,p))),[p]),e.useEffect((()=>{if(u.trigger){
|
|
16994
16996
|
const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&p()}
|
|
16995
16997
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
16996
16998
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -17003,19 +17005,19 @@ style:{...s.style,
|
|
|
17003
17005
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
17004
17006
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
17005
17007
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
17006
|
-
}),e.createElement(h,null,o),e.createElement(
|
|
17007
|
-
},e.createElement(Gu,{id:u.contentId,role:"tooltip"},i||o))))}));const
|
|
17008
|
-
const{__scopeTooltip:n,delayDuration:r=
|
|
17008
|
+
}),e.createElement(h,null,o),e.createElement(jW,{scope:r,isInside:!0
|
|
17009
|
+
},e.createElement(Gu,{id:u.contentId,role:"tooltip"},i||o))))}));const WW=t=>{
|
|
17010
|
+
const{__scopeTooltip:n,delayDuration:r=HW,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
|
|
17009
17011
|
;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
|
|
17010
|
-
}),[]),e.createElement(
|
|
17012
|
+
}),[]),e.createElement(kW,{scope:n,isOpenDelayed:l,delayDuration:r,
|
|
17011
17013
|
onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),
|
|
17012
17014
|
onClose:e.useCallback((()=>{
|
|
17013
17015
|
window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)
|
|
17014
17016
|
}),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{
|
|
17015
|
-
s.current=e}),[]),disableHoverableContent:a},i)},
|
|
17016
|
-
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=
|
|
17017
|
+
s.current=e}),[]),disableHoverableContent:a},i)},GW=t=>{
|
|
17018
|
+
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=AW(LW,t.__scopeTooltip),u=_W(n),[d,h]=e.useState(null),p=S(),f=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[b=!1,w]=y({
|
|
17017
17019
|
prop:o,defaultProp:a,onChange:e=>{
|
|
17018
|
-
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
17020
|
+
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(DW))):s.onClose(),
|
|
17019
17021
|
null==i||i(e)}
|
|
17020
17022
|
}),C=e.useMemo((()=>b?g.current?"delayed-open":"instant-open":"closed"),[b]),z=e.useCallback((()=>{
|
|
17021
17023
|
window.clearTimeout(f.current),g.current=!1,w(!0)}),[w]),M=e.useCallback((()=>{
|
|
@@ -17023,19 +17025,19 @@ window.clearTimeout(f.current),w(!1)}),[w]),x=e.useCallback((()=>{
|
|
|
17023
17025
|
window.clearTimeout(f.current),f.current=window.setTimeout((()=>{
|
|
17024
17026
|
g.current=!0,w(!0)}),v)}),[v,w])
|
|
17025
17027
|
;return e.useEffect((()=>()=>window.clearTimeout(f.current)),[]),
|
|
17026
|
-
e.createElement(Fu,u,e.createElement(
|
|
17028
|
+
e.createElement(Fu,u,e.createElement(VW,{scope:n,contentId:p,open:b,
|
|
17027
17029
|
stateAttribute:C,trigger:d,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{
|
|
17028
17030
|
s.isOpenDelayed?x():z()}),[s.isOpenDelayed,x,z]),
|
|
17029
17031
|
onTriggerLeave:e.useCallback((()=>{m?M():window.clearTimeout(f.current)
|
|
17030
|
-
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},
|
|
17031
|
-
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=
|
|
17032
|
-
;return e.createElement(
|
|
17032
|
+
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},KW=PW,qW=t=>{
|
|
17033
|
+
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=TW(IW,n)
|
|
17034
|
+
;return e.createElement(OW,{scope:n,forceMount:r},e.createElement(z,{
|
|
17033
17035
|
present:r||i.open},e.createElement(Uu,{asChild:!0,container:a},o)))
|
|
17034
|
-
},
|
|
17035
|
-
;return
|
|
17036
|
+
},ZW=$W,XW=yr(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=_W(r)
|
|
17037
|
+
;return UW("TooltipArrow",r).isInside?null:e.createElement(ju,a({},i,o,{ref:n}))
|
|
17036
17038
|
})))`
|
|
17037
17039
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
17038
|
-
`,
|
|
17040
|
+
`,JW=yr(ZW)`
|
|
17039
17041
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17040
17042
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
17041
17043
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -17067,9 +17069,9 @@ present:r||i.open},e.createElement(Uu,{asChild:!0,container:a},o)))
|
|
|
17067
17069
|
&[data-state='closed'] {
|
|
17068
17070
|
animation-name: ${xr};
|
|
17069
17071
|
}
|
|
17070
|
-
`,
|
|
17072
|
+
`,QW=yr(WW)``,eG=yr(GW)``,tG=yr(KW)`
|
|
17071
17073
|
color: inherit;
|
|
17072
|
-
`,
|
|
17074
|
+
`,nG=yr(qW)``;var rG=wr`
|
|
17073
17075
|
|
|
17074
17076
|
div:has( > div[data-tooltip-content]){
|
|
17075
17077
|
z-index: ${({theme:e})=>e.zIndex.tooltip||xo.tooltip} !important;
|
|
@@ -17079,10 +17081,10 @@ div:has( > div[data-popover-content]){
|
|
|
17079
17081
|
z-index: ${({theme:e})=>e.zIndex.popover||xo.popover} !important;
|
|
17080
17082
|
}
|
|
17081
17083
|
|
|
17082
|
-
`,
|
|
17084
|
+
`,oG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
|
|
17083
17085
|
return Ce(void 0,void 0,void 0,(function(){return ze(this,(function(n){
|
|
17084
17086
|
switch(n.label){case 0:return[4,Promise.resolve().then((function(){return n_}))]
|
|
17085
|
-
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),
|
|
17087
|
+
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),aG=Object.freeze({
|
|
17086
17088
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
17087
17089
|
return Ce(void 0,void 0,void 0,(function(){var n,r;return ze(this,(function(o){
|
|
17088
17090
|
switch(o.label){case 0:
|
|
@@ -17269,7 +17271,7 @@ placement:l,dir:u.direction},!r&&e.createElement(tb,{asChild:!0
|
|
|
17269
17271
|
fill:u.colors.text.inverse}))),n)))
|
|
17270
17272
|
},exports.Dropdown=ob,exports.DropdownInputItem=Gh,
|
|
17271
17273
|
exports.DropdownItem=lb,exports.DropdownMenuItem=eg,
|
|
17272
|
-
exports.ErrorIcon=ao,exports.FreemiumUIGlobalStyles=
|
|
17274
|
+
exports.ErrorIcon=ao,exports.FreemiumUIGlobalStyles=rG,
|
|
17273
17275
|
exports.FreshLink=Lo,exports.IconButton=Ao,exports.InfoIcon=lo,exports.Input=_c,
|
|
17274
17276
|
exports.InputLabel=Do,
|
|
17275
17277
|
exports.Loader=Vc,exports.Menu=cb,exports.Minus=co,exports.Modal=({isOpen:t,children:n,align:r="center",customClass:o="",fullWidth:a=!1,customModalContentStyles:i={},onDismiss:l,position:c="center",size:s})=>{
|
|
@@ -17355,34 +17357,34 @@ disabled:t.disabled,htmlFor:t?.[r]
|
|
|
17355
17357
|
},exports.RadixMenuItem=Wv,exports.RadixSelectItem=Oh,
|
|
17356
17358
|
exports.Reorder=gj,exports.RequiredIndicator=ko,
|
|
17357
17359
|
exports.StyledLabel=Ho,exports.Table=t=>{
|
|
17358
|
-
const{data:n,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,
|
|
17360
|
+
const{data:n,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,editColumnComponent:p,filterComponent:f,hideTableOnEmpty:m,hideTopPagination:v,hideFilters:g,sortingHeading:y,showTableOnLoading:b,hideLoaderOnTopPagination:w,hideActions:C,count:z,pageIndex:M=0,pageSize:x=20,enablePreviousPage:E,enableNextPage:S,hideColumnSettings:_=!0,hideBottomPagination:H,rowMenuOptions:D,onPreviousPageClick:k,enableSorting:A,sortingValues:L,sortingOptions:V,onSortingOptionSelect:T,onNextPageClick:R,disableRowSelect:P,hideSelectAllInTable:I,onSelectAllRows:O,onRowSelect:N,onMenuOptionSelect:F,onRowClick:$,columnOrder:B,setColumnOrder:j,setHiddenColumns:U,hiddenColumns:Y,selectedRowIds:W={},isDisableSortDropdown:G,setSelectedRowIds:K,dataKey:q="id",cellPropGetter:Z,setPageIndex:X,rowPropGetter:J}=t,Q=cr(),[ee,te]=e.useState(!g),ne={
|
|
17359
17361
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17360
|
-
display:e=>e,group:e=>e},
|
|
17361
|
-
id:"select",header:({table:t})=>
|
|
17362
|
+
display:e=>e,group:e=>e},re=-1===z||void 0===z,oe=e.useMemo((()=>[...P?[]:[{
|
|
17363
|
+
id:"select",header:({table:t})=>I?e.createElement("div",{
|
|
17362
17364
|
className:"table-checkbox-header"}):e.createElement(Ug,{
|
|
17363
17365
|
className:"table-checkbox",
|
|
17364
17366
|
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
17365
17367
|
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
17366
|
-
t.toggleAllPageRowsSelected(!0===e),
|
|
17368
|
+
t.toggleAllPageRowsSelected(!0===e),O?.(!0===e)}}),
|
|
17367
17369
|
cell:({row:t})=>e.createElement(Ug,{className:"table-checkbox",
|
|
17368
17370
|
checked:t.getIsSelected(),disabled:!t.getCanSelect(),
|
|
17369
17371
|
indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
|
|
17370
|
-
t.toggleSelected(!0===e),
|
|
17371
|
-
}],...o.map((e=>
|
|
17372
|
-
cell:t=>e.accessorFn(t.row.original)}))),...
|
|
17372
|
+
t.toggleSelected(!0===e),N?.(t.original,!0===e)}})
|
|
17373
|
+
}],...o.map((e=>ne.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
17374
|
+
cell:t=>e.accessorFn(t.row.original)}))),...D?[{id:"rowMenuOptions",
|
|
17373
17375
|
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
17374
17376
|
cell:({row:t})=>e.createElement(cb,{trigger:e.createElement(so,{
|
|
17375
|
-
className:"more-actions",fill:"currentcolor"}),options:
|
|
17376
|
-
onSelect:e=>{e.id&&
|
|
17377
|
-
}]:[]]),[o,
|
|
17378
|
-
;return o.forEach((t=>{e[t.id]=!(
|
|
17379
|
-
}),[o,
|
|
17377
|
+
className:"more-actions",fill:"currentcolor"}),options:D(t.original)||[],
|
|
17378
|
+
onSelect:e=>{e.id&&F?.(e.id,t.original)},side:"bottom",align:"end"})
|
|
17379
|
+
}]:[]]),[o,P,I,Q.colors.text.primary]),ae=e.useMemo((()=>{const e={}
|
|
17380
|
+
;return o.forEach((t=>{e[t.id]=!(Y??[]).includes(t.id)})),e
|
|
17381
|
+
}),[o,Y]),ie=e.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),le=function(e){
|
|
17380
17382
|
const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e
|
|
17381
17383
|
},[n]=r.useState((()=>({current:fU(t)
|
|
17382
17384
|
}))),[o,a]=r.useState((()=>n.current.initialState))
|
|
17383
17385
|
;return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},
|
|
17384
17386
|
onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current
|
|
17385
|
-
}({data:n,columns:
|
|
17387
|
+
}({data:n,columns:oe,getRowId:e=>e?.[q]??"id",
|
|
17386
17388
|
getCoreRowModel:e=>zj((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
|
|
17387
17389
|
rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
|
|
17388
17390
|
;for(let c=0;c<t.length;c++){
|
|
@@ -17392,79 +17394,80 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
|
|
|
17392
17394
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s)))}
|
|
17393
17395
|
return i};return n.rows=r(t),n
|
|
17394
17396
|
}),Mj(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
17395
|
-
state:{columnOrder
|
|
17397
|
+
state:{columnOrder:B,columnVisibility:ae,rowSelection:W,pagination:ie},
|
|
17396
17398
|
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
17397
|
-
onPaginationChange:e=>{let t=
|
|
17398
|
-
},onColumnVisibilityChange:e=>{let t=
|
|
17399
|
-
;t="function"==typeof e?e(
|
|
17400
|
-
onColumnOrderChange:e=>{let t
|
|
17401
|
-
onRowSelectionChange:e=>{let t=
|
|
17402
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
17403
|
-
}),{getPageCount:
|
|
17404
|
-
;return e.createElement(yU,{className:"TableContainer"},!
|
|
17399
|
+
onPaginationChange:e=>{let t=ie;t="function"==typeof e?e(ie):e,X?.(t.pageIndex)
|
|
17400
|
+
},onColumnVisibilityChange:e=>{let t=ae
|
|
17401
|
+
;t="function"==typeof e?e(ae):e,U?.(Object.keys(t).filter((e=>!t[e])))},
|
|
17402
|
+
onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,j?.(t)},
|
|
17403
|
+
onRowSelectionChange:e=>{let t=W;t="function"==typeof e?e(W):e,K?.(t)},
|
|
17404
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:re?-1:z
|
|
17405
|
+
}),{getPageCount:ce,getRowModel:se,getState:ue,getCanNextPage:de,getCanPreviousPage:he,getPageOptions:pe,previousPage:fe,setPageIndex:me,nextPage:ve,lastPage:ge,firstPage:ye}=le,{rows:be}=se(),{pagination:{pageIndex:we,pageSize:Ce}}=ue(),ze=we*Ce+(we<ce()-1?Ce:be.length),Me=le.getAllColumns().filter((e=>e.getIsVisible())).length+(P?0:1)+(D?1:0),xe=V?.[0].find((e=>e.id===L?.[0]))?.name
|
|
17406
|
+
;return e.createElement(yU,{className:"TableContainer"},!C&&e.createElement(xU,{
|
|
17405
17407
|
className:"table-actions"
|
|
17406
17408
|
},d&&e.createElement(e.Fragment,null,d),e.createElement(_U,{
|
|
17407
|
-
className:"table-header-component"},h??null),e.createElement(
|
|
17408
|
-
className:"table-header-dropdown-pagination"},
|
|
17409
|
+
className:"table-header-component"},h??null),e.createElement(DU,{
|
|
17410
|
+
className:"table-header-dropdown-pagination"},A&&e.createElement("div",{
|
|
17409
17411
|
className:"table-heading-dropdown"},e.createElement("div",{
|
|
17410
|
-
className:"table-sorting-heading"},`${
|
|
17412
|
+
className:"table-sorting-heading"},`${y}:`)," ",e.createElement(JU,{
|
|
17411
17413
|
trigger:e.createElement("div",{className:"table-sorting-value-continer"
|
|
17412
|
-
},e.createElement("div",null,
|
|
17413
|
-
isDisableSortDropdown:!!
|
|
17414
|
-
})),e.createElement(
|
|
17415
|
-
}
|
|
17416
|
-
|
|
17417
|
-
|
|
17414
|
+
},e.createElement("div",null,xe),e.createElement(vU,{fill:"currentcolor"})),
|
|
17415
|
+
isDisableSortDropdown:!!G,options:V||[],value:L,onSelect:e=>{T?.(e??[])}
|
|
17416
|
+
})),e.createElement(HU,{className:"table-edit-column-component"
|
|
17417
|
+
},p??null),e.createElement(kU,{className:"pagination-actions"
|
|
17418
|
+
},!v&&e.createElement(e.Fragment,null,e.createElement(Bo,{variant:"primary",
|
|
17419
|
+
className:"pagination-text"},l&&!w?e.createElement(Vc,{size:"small"
|
|
17420
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${we*Ce+1} - ${ze} of ${re?""+(be.length>0?"Many":"-"):z??be.length??"-"}`:null)),e.createElement(Mm,{
|
|
17418
17421
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
17419
|
-
|
|
17420
|
-
fill:
|
|
17421
|
-
className:"table-pagination-button",onClick:()=>{
|
|
17422
|
-
disabled:
|
|
17423
|
-
}))),!
|
|
17424
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
17425
|
-
},e.createElement(bU,{style:{transform:
|
|
17422
|
+
k?.(),re||fe()},disabled:re?!E:!he()||l||c},e.createElement(wU,{
|
|
17423
|
+
fill:Q.colors.text.primary})),e.createElement(Mm,{variant:"secondary",
|
|
17424
|
+
className:"table-pagination-button",onClick:()=>{R?.(),re||ve()},
|
|
17425
|
+
disabled:re?!S:!de()||l||c},e.createElement(CU,{fill:Q.colors.text.primary
|
|
17426
|
+
}))),!g&&e.createElement(Mm,{variant:"secondary",
|
|
17427
|
+
className:"table-pagination-button filter-toggle",onClick:()=>te(!ee)
|
|
17428
|
+
},e.createElement(bU,{style:{transform:ee?"rotateY(180deg)":"rotateY(0deg)"},
|
|
17426
17429
|
fill:"currentcolor"
|
|
17427
|
-
}))))),e.createElement(zU,null,e.createElement(MU,null,i&&e.createElement(SU,null,i),l&&!
|
|
17430
|
+
}))))),e.createElement(zU,null,e.createElement(MU,null,i&&e.createElement(SU,null,i),l&&!b?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===be.length&&m?e.createElement(e.Fragment,null,s):e.createElement(AU,null,e.createElement(LU,null,!_&&e.createElement(MF,{
|
|
17428
17431
|
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(gU,{
|
|
17429
|
-
fill:"currentcolor"})},e.createElement(
|
|
17430
|
-
})),e.createElement(
|
|
17431
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17432
|
-
},t.isPlaceholder?null:mU(t.column.columnDef.header,t.getContext())))))))),e.createElement(
|
|
17433
|
-
key:t.id,$isSelected:t.getIsSelected(),...
|
|
17434
|
-
},t.getVisibleCells().map((n=>e.createElement(
|
|
17435
|
-
|
|
17436
|
-
},mU(n.column.columnDef.cell,n.getContext())))))))),a&&e.createElement(
|
|
17437
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17438
|
-
},t.isPlaceholder?null:mU(t.column.columnDef.footer,t.getContext())))))))),!
|
|
17439
|
-
colSpan:
|
|
17440
|
-
},e.createElement(Mm,{variant:"secondary",onClick:()=>{
|
|
17441
|
-
disabled:!
|
|
17442
|
-
onClick:()=>{
|
|
17443
|
-
},"<"),
|
|
17444
|
-
variant:"secondary",onClick:()=>{
|
|
17445
|
-
},"1"),
|
|
17446
|
-
},"...")),
|
|
17447
|
-
key:t,variant:"secondary",className:
|
|
17432
|
+
fill:"currentcolor"})},e.createElement(XU,{table:le
|
|
17433
|
+
})),e.createElement(VU,null,le.getHeaderGroups().map((t=>e.createElement(PU,{
|
|
17434
|
+
key:t.id},t.headers.map((t=>e.createElement(OU,{key:t.id
|
|
17435
|
+
},t.isPlaceholder?null:mU(t.column.columnDef.header,t.getContext())))))))),e.createElement(TU,null,c&&!l&&e.createElement(IU,null,e.createElement(Vc,null)),be.map((t=>e.createElement(PU,{
|
|
17436
|
+
key:t.id,$isSelected:t.getIsSelected(),...J?.(t.original)
|
|
17437
|
+
},t.getVisibleCells().map((n=>e.createElement(NU,{key:n.id,onClick:()=>{
|
|
17438
|
+
$?.(t.original,n.column.columnDef)},...Z?.(n)
|
|
17439
|
+
},mU(n.column.columnDef.cell,n.getContext())))))))),a&&e.createElement(RU,null,le.getFooterGroups().map((t=>e.createElement(PU,{
|
|
17440
|
+
key:t.id},t.headers.map((t=>e.createElement(OU,{key:t.id
|
|
17441
|
+
},t.isPlaceholder?null:mU(t.column.columnDef.footer,t.getContext())))))))),!H&&e.createElement(RU,null,e.createElement(PU,null,e.createElement(OU,{
|
|
17442
|
+
colSpan:Me},e.createElement(KU,{className:"table-pagination"
|
|
17443
|
+
},e.createElement(Mm,{variant:"secondary",onClick:()=>{ye()},
|
|
17444
|
+
disabled:!he()||l||c},"<<"),e.createElement(Mm,{variant:"secondary",
|
|
17445
|
+
onClick:()=>{fe()},disabled:!he()||l||c
|
|
17446
|
+
},"<"),we+1>2&&e.createElement(e.Fragment,null,e.createElement(Mm,{
|
|
17447
|
+
variant:"secondary",onClick:()=>{ye()},disabled:l||c
|
|
17448
|
+
},"1"),we+1-3!=0&&e.createElement(Mm,{variant:"secondary",disabled:!0
|
|
17449
|
+
},"...")),pe().map((t=>[t-2,t-1,t,t+1,t+2].includes(we+1)&&e.createElement(Mm,{
|
|
17450
|
+
key:t,variant:"secondary",className:we+1===t+1?"active":"",onClick:()=>{me?.(t)
|
|
17448
17451
|
},disabled:l||c
|
|
17449
|
-
},t+1))),
|
|
17452
|
+
},t+1))),we+2<Math.ceil(n.length/Ce)-2&&e.createElement(e.Fragment,null,we+2+3!==Math.ceil(n.length/Ce)&&e.createElement(Mm,{
|
|
17450
17453
|
variant:"secondary",disabled:!0},"..."),e.createElement(Mm,{variant:"secondary",
|
|
17451
|
-
onClick:()=>{
|
|
17452
|
-
},Math.ceil(n.length/
|
|
17453
|
-
|
|
17454
|
-
onClick:()=>{
|
|
17455
|
-
},">>"))))))))),!
|
|
17454
|
+
onClick:()=>{me?.(Math.ceil(n.length/Ce)-1)},disabled:l||c
|
|
17455
|
+
},Math.ceil(n.length/Ce))),e.createElement(Mm,{variant:"secondary",onClick:()=>{
|
|
17456
|
+
ve()},disabled:!de()||l||c},">"),e.createElement(Mm,{variant:"secondary",
|
|
17457
|
+
onClick:()=>{ge()},disabled:!de()||l||c
|
|
17458
|
+
},">>"))))))))),!g&&ee&&f&&e.createElement(EU,null,f)))
|
|
17456
17459
|
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
17457
|
-
const u=cr();return e.createElement(
|
|
17458
|
-
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(
|
|
17459
|
-
className:"TabsList","aria-label":l},t.map((t=>e.createElement(
|
|
17460
|
+
const u=cr();return e.createElement(dY,{className:"TabsRoot",value:s,
|
|
17461
|
+
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(pY,{
|
|
17462
|
+
className:"TabsList","aria-label":l},t.map((t=>e.createElement(fY,{
|
|
17460
17463
|
className:"TabsTrigger",value:t?.[n],key:t?.[n],disabled:t?.[o]
|
|
17461
|
-
},t?.[r])))),t.map((t=>e.createElement(
|
|
17464
|
+
},t?.[r])))),t.map((t=>e.createElement(hY,{className:"TabsContent",value:t?.[n],
|
|
17462
17465
|
key:t?.[n]},c?c(t):null))))
|
|
17463
|
-
},exports.TabsContent=
|
|
17464
|
-
exports.TabsTrigger=
|
|
17466
|
+
},exports.TabsContent=hY,exports.TabsList=pY,exports.TabsRoot=dY,
|
|
17467
|
+
exports.TabsTrigger=fY,
|
|
17465
17468
|
exports.Tag=kb,exports.TextArea=Hc,exports.ThemeProvider=t=>e.createElement(sr,{
|
|
17466
17469
|
theme:t.theme
|
|
17467
|
-
},e.createElement(
|
|
17470
|
+
},e.createElement(uW,null),e.createElement(sW,null,t.children)),exports.Themes=_o,
|
|
17468
17471
|
exports.TickIcon=ro,exports.TimePicker=t=>{
|
|
17469
17472
|
const{isRequired:n,label:r,isErrored:o,errorText:a,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=t,h=cr()
|
|
17470
17473
|
;return e.createElement(FN,{id:`datetime-picker-container-${i??""}`.trim()
|
|
@@ -17501,24 +17504,24 @@ showTick:!1,defaultSelectedItem:u?qN.find((e=>e.id===Tb(u).format("A"))):null,
|
|
|
17501
17504
|
width:"65px",itemIdentifier:"id",items:qN,onChange:e=>{
|
|
17502
17505
|
const t=Tb(new Date(u)).hour(Tb(u).hour()+("AM"===e?.id?-12:12))
|
|
17503
17506
|
;d?.(t.toISOString())}})),o&&a&&e.createElement(wc,null,a))
|
|
17504
|
-
},exports.ToastProvider=
|
|
17507
|
+
},exports.ToastProvider=sW,
|
|
17505
17508
|
exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,...c})=>{
|
|
17506
|
-
const s=cr();return e.createElement(
|
|
17507
|
-
required:a,"aria-required":a,size:i,...c},e.createElement(
|
|
17509
|
+
const s=cr();return e.createElement(MW,{checked:r,onCheckedChange:e=>{t?.(e)},
|
|
17510
|
+
required:a,"aria-required":a,size:i,...c},e.createElement(xW,{...l,size:i
|
|
17508
17511
|
},n&&e.createElement(ro,{fill:s.colors.common.accent,className:"toggle-on",
|
|
17509
|
-
...
|
|
17510
|
-
className:"toggle-off",...
|
|
17512
|
+
...dW[i]}),n&&e.createElement(no,{fill:s.colors.text.primary,
|
|
17513
|
+
className:"toggle-off",...hW[i]})))
|
|
17511
17514
|
},exports.Tooltip=({position:t="bottom",label:n,html:r,style:o={},children:a,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
17512
|
-
const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(
|
|
17513
|
-
delayDuration:c,...u},e.createElement(
|
|
17514
|
-
},e.createElement(
|
|
17515
|
+
const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(QW,{
|
|
17516
|
+
delayDuration:c,...u},e.createElement(eG,{...d,open:!l&&void 0
|
|
17517
|
+
},e.createElement(tG,{className:"TooltipTrigger",asChild:!0,
|
|
17515
17518
|
"aria-label":"string"==typeof a?a:"TooltipTrigger",type:"button"
|
|
17516
17519
|
},e.createElement(Oo,{className:i,type:"button"
|
|
17517
|
-
},a)),e.createElement(
|
|
17520
|
+
},a)),e.createElement(nG,null,e.createElement(JW,{forceMount:!0,
|
|
17518
17521
|
"data-tooltip-content":!0,className:"TooltipContent",style:o,sideOffset:5,
|
|
17519
17522
|
"aria-disabled":l,"aria-live":"polite",side:p,align:f,dir:h.direction
|
|
17520
|
-
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(
|
|
17523
|
+
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(XW,null)))))
|
|
17521
17524
|
},
|
|
17522
17525
|
exports.TriggerButtonWrapper=Oo,exports.Typography=Bo,exports.Warning=oo,exports.dialogContentMixin=Fo,
|
|
17523
17526
|
exports.dialogOverlayMixin=No,exports.useToasts=()=>{
|
|
17524
|
-
const{toasts:t,addToast:n}=e.useContext(
|
|
17527
|
+
const{toasts:t,addToast:n}=e.useContext(mY)??{};return[t,n]};
|