freemium-ui 2.0.0-beta.16 → 2.0.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +266 -262
- package/index.d.ts +1 -1
- package/index.js +267 -263
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -8147,9 +8147,9 @@ console.info("Finished '".concat(e,"' in ").concat(a,"ms"))),[2]}var i}))}))}
|
|
|
8147
8147
|
function Jz(e){return s(this,void 0,void 0,(function(){var t,n
|
|
8148
8148
|
;return u(this,(function(r){switch(r.label){case 0:
|
|
8149
8149
|
return t=e.loader,"function"!=typeof(n=void 0===t?tM.defaultLoader:t)?[3,1]:[2,n]
|
|
8150
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
8150
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return BB
|
|
8151
8151
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
8152
|
-
return[4,Promise.resolve().then((function(){return
|
|
8152
|
+
return[4,Promise.resolve().then((function(){return UB}))];case 4:
|
|
8153
8153
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var eM=function(){function e(){
|
|
8154
8154
|
this.defaultLoader="split-by-size",
|
|
8155
8155
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -14995,6 +14995,7 @@ return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forw
|
|
|
14995
14995
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
14996
14996
|
display: flex;
|
|
14997
14997
|
flex-direction: column;
|
|
14998
|
+
height: 100%;
|
|
14998
14999
|
.TriggerButtonWrapper {
|
|
14999
15000
|
position: absolute;
|
|
15000
15001
|
height: 48px;
|
|
@@ -15020,6 +15021,8 @@ fill:t.fill}))))`
|
|
|
15020
15021
|
transform: rotate(90deg);
|
|
15021
15022
|
`,aF=on.div`
|
|
15022
15023
|
display: flex;
|
|
15024
|
+
flex: 1;
|
|
15025
|
+
overflow: auto;
|
|
15023
15026
|
`,oF=on.div`
|
|
15024
15027
|
flex: 1;
|
|
15025
15028
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -15043,7 +15046,7 @@ fill:t.fill}))))`
|
|
|
15043
15046
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
15044
15047
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
15045
15048
|
animation-name: ${Gn};
|
|
15046
|
-
`,cF=on.div``,sF=on.div``,uF=on.div
|
|
15049
|
+
`,cF=on.div``,sF=on.div``,uF=on.div`
|
|
15047
15050
|
display: flex;
|
|
15048
15051
|
gap: 8px;
|
|
15049
15052
|
align-items: center;
|
|
@@ -15054,9 +15057,10 @@ fill:t.fill}))))`
|
|
|
15054
15057
|
place-content: center;
|
|
15055
15058
|
padding: 0;
|
|
15056
15059
|
}
|
|
15057
|
-
`,
|
|
15060
|
+
`,dF=on.div`
|
|
15058
15061
|
overflow: auto;
|
|
15059
|
-
|
|
15062
|
+
flex: 1;
|
|
15063
|
+
`,hF=on.table`
|
|
15060
15064
|
border-spacing: 0px;
|
|
15061
15065
|
border-collapse: collapse;
|
|
15062
15066
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -15064,9 +15068,9 @@ fill:t.fill}))))`
|
|
|
15064
15068
|
width: 100%;
|
|
15065
15069
|
margin: 0;
|
|
15066
15070
|
position: relative;
|
|
15067
|
-
`,
|
|
15071
|
+
`,pF=on.thead``,fF=on.tbody`
|
|
15068
15072
|
position: relative;
|
|
15069
|
-
`,
|
|
15073
|
+
`,mF=on.tfoot``,vF=on.tr`
|
|
15070
15074
|
&:hover {
|
|
15071
15075
|
transition: 0.2s ease;
|
|
15072
15076
|
background-color: #f3f5f7;
|
|
@@ -15074,7 +15078,7 @@ fill:t.fill}))))`
|
|
|
15074
15078
|
}
|
|
15075
15079
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
15076
15080
|
/* background-color: ${({isSelected:e})=>e?"#fffdf6":"white"}; */
|
|
15077
|
-
`,
|
|
15081
|
+
`,gF=on.div`
|
|
15078
15082
|
position: absolute;
|
|
15079
15083
|
width: 100%;
|
|
15080
15084
|
height: 100%;
|
|
@@ -15084,7 +15088,7 @@ fill:t.fill}))))`
|
|
|
15084
15088
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
15085
15089
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
15086
15090
|
animation-name: ${Rn};
|
|
15087
|
-
`,
|
|
15091
|
+
`,yF=on.th`
|
|
15088
15092
|
padding: 16px;
|
|
15089
15093
|
font-size: 12px;
|
|
15090
15094
|
line-height: 16px;
|
|
@@ -15095,26 +15099,26 @@ fill:t.fill}))))`
|
|
|
15095
15099
|
margin: 0;
|
|
15096
15100
|
background: #f5f7f9;
|
|
15097
15101
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
15098
|
-
`,
|
|
15102
|
+
`,bF=on.td`
|
|
15099
15103
|
padding: 12px;
|
|
15100
15104
|
margin: 0;
|
|
15101
15105
|
font-size: 14px;
|
|
15102
15106
|
line-height: 20px;
|
|
15103
15107
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
15104
15108
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
15105
|
-
`,
|
|
15109
|
+
`,wF=on.div`
|
|
15106
15110
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15107
|
-
`,
|
|
15111
|
+
`,CF=on.div`
|
|
15108
15112
|
padding: 24px;
|
|
15109
15113
|
display: flex;
|
|
15110
15114
|
justify-content: space-between;
|
|
15111
15115
|
align-items: center;
|
|
15112
|
-
`,
|
|
15116
|
+
`,zF=on.div`
|
|
15113
15117
|
padding: 0 24px;
|
|
15114
15118
|
display: flex;
|
|
15115
15119
|
gap: 16px;
|
|
15116
15120
|
height: 256px;
|
|
15117
|
-
`,
|
|
15121
|
+
`,MF=on.div`
|
|
15118
15122
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
15119
15123
|
border-radius: 4px 4px 0px 0px;
|
|
15120
15124
|
padding: 8px 8px 0 8px;
|
|
@@ -15128,11 +15132,11 @@ fill:t.fill}))))`
|
|
|
15128
15132
|
margin-bottom: 8px;
|
|
15129
15133
|
}
|
|
15130
15134
|
}
|
|
15131
|
-
`,
|
|
15135
|
+
`,xF=on.div`
|
|
15132
15136
|
display: flex;
|
|
15133
15137
|
gap: 8px;
|
|
15134
15138
|
flex-direction: column;
|
|
15135
|
-
`,
|
|
15139
|
+
`,EF=on.div`
|
|
15136
15140
|
display: flex;
|
|
15137
15141
|
gap: 12px;
|
|
15138
15142
|
flex-direction: column;
|
|
@@ -15146,13 +15150,13 @@ fill:t.fill}))))`
|
|
|
15146
15150
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
15147
15151
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
15148
15152
|
}
|
|
15149
|
-
`,
|
|
15153
|
+
`,SF=on.div`
|
|
15150
15154
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
15151
15155
|
display: flex;
|
|
15152
15156
|
padding: 16px;
|
|
15153
15157
|
gap: 8px;
|
|
15154
15158
|
justify-content: flex-end;
|
|
15155
|
-
`,
|
|
15159
|
+
`,_F=on.div`
|
|
15156
15160
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15157
15161
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
15158
15162
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -15165,7 +15169,7 @@ fill:t.fill}))))`
|
|
|
15165
15169
|
display: flex;
|
|
15166
15170
|
justify-content: space-between;
|
|
15167
15171
|
gap: 8px;
|
|
15168
|
-
`,
|
|
15172
|
+
`,HF=on.div`
|
|
15169
15173
|
display: flex;
|
|
15170
15174
|
align-items: center;
|
|
15171
15175
|
width: fit-content;
|
|
@@ -15181,11 +15185,11 @@ fill:t.fill}))))`
|
|
|
15181
15185
|
border: 1px solid #b1bdc8;
|
|
15182
15186
|
box-shadow: inset 0 0 4px 0 rgb(39 49 58 / 26%);
|
|
15183
15187
|
}
|
|
15184
|
-
`,
|
|
15188
|
+
`,DF=t=>e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",
|
|
15185
15189
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
15186
15190
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15187
15191
|
d:"M17.0975 18.4944C17.6301 18.1751 17.8085 17.4835 17.5071 16.9414L17.17 16.335C16.9678 15.9711 16.9704 15.528 17.1769 15.1666C17.3793 14.8126 17.7558 14.5941 18.1635 14.5941H18.8694C19.4997 14.5941 20 14.0745 20 13.4461V10.7544C20 10.1259 19.4997 9.6063 18.8694 9.6063H18.3369C17.8687 9.6063 17.4377 9.3511 17.2126 8.94057C16.9773 8.51146 16.9788 7.9916 17.2166 7.56386L17.4998 7.05431C17.8012 6.51212 17.6228 5.82059 17.0903 5.50125L14.8604 4.16415C14.3128 3.83576 13.6107 4.03115 13.301 4.58826L12.9716 5.18081C12.7696 5.54419 12.3864 5.7694 11.9706 5.76906C11.5542 5.76871 11.1707 5.54291 10.9685 5.17902L10.6376 4.58392C10.3279 4.02681 9.62586 3.83142 9.07821 4.15981L6.83388 5.50559C6.30131 5.82493 6.1229 6.51646 6.4243 7.05865L6.7111 7.57457C6.94768 8.00015 6.94938 8.51734 6.7156 8.94446C6.49224 9.35254 6.06407 9.6063 5.59885 9.6063H5.13055C4.50031 9.6063 4 10.1259 4 10.7544V13.4461C4 14.0745 4.50031 14.5941 5.13055 14.5941H5.76345C6.17421 14.5941 6.55354 14.814 6.75763 15.1705C6.96571 15.5339 6.96853 15.9797 6.76506 16.3457L6.43154 16.9457C6.13014 17.4879 6.30855 18.1794 6.84112 18.4988L9.07097 19.8358C9.61862 20.1642 10.3207 19.9689 10.6304 19.4117L10.9598 18.8192C11.1618 18.4558 11.545 18.2306 11.9608 18.2309C12.3771 18.2313 12.7606 18.4571 12.9629 18.821L13.2937 19.4161C13.6034 19.9732 14.3055 20.1686 14.8532 19.8402L17.0975 18.4944ZM16.003 14.4957C15.5617 15.2679 15.5561 16.2146 15.9882 16.9919L16.2347 17.4353L14.3634 18.5574L14.1447 18.1641C13.7041 17.3715 12.8688 16.8796 11.9619 16.8789C11.0548 16.8781 10.2187 17.3695 9.778 18.1623L9.56078 18.553L7.70395 17.4396L7.94686 17.0026C8.38037 16.2228 8.37437 15.273 7.93103 14.4987C7.48605 13.7215 6.65902 13.2421 5.76345 13.2421H5.35211V10.9584H5.59885C6.55817 10.9584 7.4411 10.4351 7.90168 9.59361C8.35835 8.75926 8.35503 7.74898 7.8929 6.91765L7.69671 6.56473L9.56802 5.44263L9.78666 5.83594C10.2273 6.62855 11.0626 7.12037 11.9695 7.12113C12.8766 7.12188 13.7127 6.63053 14.1534 5.83772L14.3706 5.44697L16.2274 6.56039L16.0348 6.90695C15.5713 7.74077 15.5683 8.75417 16.027 9.59065C16.4895 10.4341 17.375 10.9584 18.3369 10.9584H18.6479V13.2421H18.1635C17.2706 13.2421 16.4461 13.7205 16.003 14.4957ZM11.9657 15.3927C10.1384 15.3927 8.66702 13.8685 8.66702 12C8.66702 10.1315 10.1384 8.60732 11.9657 8.60732C13.7929 8.60732 15.2644 10.1315 15.2644 12C15.2644 13.8685 13.7929 15.3927 11.9657 15.3927ZM13.9123 12C13.9123 13.1322 13.0353 14.0406 11.9657 14.0406C10.8961 14.0406 10.0191 13.1322 10.0191 12C10.0191 10.8678 10.8961 9.95939 11.9657 9.95939C13.0353 9.95939 13.9123 10.8678 13.9123 12Z",
|
|
15188
|
-
fill:t.fill})),
|
|
15192
|
+
fill:t.fill})),LF=t=>{const n=qt();return e.createElement("svg",{width:"16",
|
|
15189
15193
|
height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",
|
|
15190
15194
|
...t},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
15191
15195
|
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",
|
|
@@ -15193,47 +15197,47 @@ fill:n.colors.text.primary}),e.createElement("mask",{id:"mask0_3930_5537",
|
|
|
15193
15197
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
15194
15198
|
height:"16"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
15195
15199
|
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"
|
|
15196
|
-
})))},
|
|
15200
|
+
})))},VF=["rowMenuOptions","select"],AF=({table:t})=>{
|
|
15197
15201
|
const n=qt(),[r,a]=e.useState({}),[o,i]=e.useState([]),l=t.getAllColumns(),c=t.getState(),s=e.useCallback((()=>{
|
|
15198
15202
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
15199
15203
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
15200
15204
|
}),[c.columnOrder,l,i]);return e.useEffect((()=>{a(c.columnVisibility),s()
|
|
15201
15205
|
}),[c.columnVisibility,s]),
|
|
15202
|
-
e.createElement(
|
|
15206
|
+
e.createElement(wF,null,e.createElement(CF,null,e.createElement(Jn,{
|
|
15203
15207
|
weight:"semi-bold"},"Customize columns"),e.createElement(nr,{variant:"link",
|
|
15204
15208
|
onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
|
|
15205
15209
|
})),a(e),s()}
|
|
15206
|
-
},"Reset")),e.createElement(
|
|
15207
|
-
startAdornment:e.createElement(
|
|
15210
|
+
},"Reset")),e.createElement(zF,null,e.createElement(xF,null,e.createElement(jf,{
|
|
15211
|
+
startAdornment:e.createElement(LF,{viewBox:"0 0 18px 18px"}),
|
|
15208
15212
|
placeholder:"Search columns"}),e.createElement(Jn,{weight:"semi-bold"
|
|
15209
|
-
},"Choose columns"),e.createElement(
|
|
15213
|
+
},"Choose columns"),e.createElement(EF,null,t.getAllColumns().filter((e=>!VF.includes(e.id))).map((n=>e.createElement(Dc,{
|
|
15210
15214
|
label:n.columnDef.header?.toString(),checked:!!r[n.id],onCheckedChange:e=>{
|
|
15211
15215
|
const r=t.getAllColumns().find((e=>e.id===n.id));a((t=>({...t,[n.id]:!0===e}))),
|
|
15212
15216
|
i((t=>!0===e?[...t,...r?[r]:[]]:t.filter((e=>e.id!==n.id))))}
|
|
15213
|
-
}))))),e.createElement(
|
|
15217
|
+
}))))),e.createElement(MF,null,e.createElement(Jn,{weight:"semi-bold"
|
|
15214
15218
|
},`Selected columns (${o.length})`),e.createElement(aN,{
|
|
15215
15219
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
15216
|
-
customFilter:e=>!
|
|
15220
|
+
customFilter:e=>!VF.includes(e.id??""),customRender:t=>e.createElement(_F,{
|
|
15217
15221
|
key:t.id
|
|
15218
15222
|
},e.createElement("div",null,t?.columnDef?.header?.toString()??""),e.createElement(xn,{
|
|
15219
15223
|
onClick:()=>{a((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
|
|
15220
15224
|
},e.createElement(Zn,{fill:n.colors.text.primary}))),items:o
|
|
15221
|
-
}))),e.createElement(
|
|
15225
|
+
}))),e.createElement(SF,null,e.createElement(uP,{asChild:!0
|
|
15222
15226
|
},e.createElement(nr,{variant:"secondary"},"Cancel")),e.createElement(nr,{
|
|
15223
15227
|
onClick:()=>{t.setColumnOrder(o.map((e=>e.id))),t.setColumnVisibility(r)}
|
|
15224
15228
|
},"Update")))
|
|
15225
|
-
},
|
|
15229
|
+
},kF="Tabs",[TF,RF]=cr(kF,[No]),PF=No(),[IF,OF]=TF(kF),NF=e.forwardRef(((t,n)=>{
|
|
15226
15230
|
const{__scopeTabs:r,value:a,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=t,d=fr(c),[h,p]=dr({
|
|
15227
|
-
prop:a,onChange:o,defaultProp:i});return e.createElement(
|
|
15231
|
+
prop:a,onChange:o,defaultProp:i});return e.createElement(IF,{scope:r,
|
|
15228
15232
|
baseId:Br(),value:h,onValueChange:p,orientation:l,dir:d,activationMode:s
|
|
15229
15233
|
},e.createElement(yn.div,un({dir:d,"data-orientation":l},u,{ref:n})))}))
|
|
15230
|
-
;function
|
|
15231
|
-
return`${e}-content-${t}`}const
|
|
15232
|
-
const{__scopeTabs:r,loop:a=!0,...o}=t,i=
|
|
15234
|
+
;function FF(e,t){return`${e}-trigger-${t}`}function jF(e,t){
|
|
15235
|
+
return`${e}-content-${t}`}const BF=e.forwardRef(((t,n)=>{
|
|
15236
|
+
const{__scopeTabs:r,loop:a=!0,...o}=t,i=OF("TabsList",r),l=PF(r)
|
|
15233
15237
|
;return e.createElement(Go,un({asChild:!0},l,{orientation:i.orientation,
|
|
15234
15238
|
dir:i.dir,loop:a}),e.createElement(yn.div,un({role:"tablist",
|
|
15235
|
-
"aria-orientation":i.orientation},o,{ref:n})))}))
|
|
15236
|
-
const{__scopeTabs:r,value:a,disabled:o=!1,...i}=t,l=
|
|
15239
|
+
"aria-orientation":i.orientation},o,{ref:n})))})),UF=e.forwardRef(((t,n)=>{
|
|
15240
|
+
const{__scopeTabs:r,value:a,disabled:o=!1,...i}=t,l=OF("TabsTrigger",r),c=PF(r),s=FF(l.baseId,a),u=jF(l.baseId,a),d=a===l.value
|
|
15237
15241
|
;return e.createElement(Ko,un({asChild:!0},c,{focusable:!o,active:d
|
|
15238
15242
|
}),e.createElement(yn.button,un({type:"button",role:"tab","aria-selected":d,
|
|
15239
15243
|
"aria-controls":u,"data-state":d?"active":"inactive",
|
|
@@ -15242,17 +15246,17 @@ onMouseDown:lr(t.onMouseDown,(e=>{
|
|
|
15242
15246
|
o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(a)})),
|
|
15243
15247
|
onKeyDown:lr(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(a)
|
|
15244
15248
|
})),onFocus:lr(t.onFocus,(()=>{const e="manual"!==l.activationMode
|
|
15245
|
-
;d||o||!e||l.onValueChange(a)}))})))}))
|
|
15246
|
-
const{__scopeTabs:r,value:a,forceMount:o,children:i,...l}=t,c=
|
|
15249
|
+
;d||o||!e||l.onValueChange(a)}))})))})),$F=e.forwardRef(((t,n)=>{
|
|
15250
|
+
const{__scopeTabs:r,value:a,forceMount:o,children:i,...l}=t,c=OF("TabsContent",r),s=FF(c.baseId,a),u=jF(c.baseId,a),d=a===c.value,h=e.useRef(d)
|
|
15247
15251
|
;return e.useEffect((()=>{const e=requestAnimationFrame((()=>h.current=!1))
|
|
15248
15252
|
;return()=>cancelAnimationFrame(e)}),[]),e.createElement(Lo,{present:o||d
|
|
15249
15253
|
},(({present:r})=>e.createElement(yn.div,un({"data-state":d?"active":"inactive",
|
|
15250
15254
|
"data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,
|
|
15251
15255
|
id:u,tabIndex:0},l,{ref:n,style:{...t.style,
|
|
15252
15256
|
animationDuration:h.current?"0s":void 0}}),r&&i)))
|
|
15253
|
-
})),
|
|
15257
|
+
})),YF=on(NF)``,WF=on($F)``,GF=on(BF)`
|
|
15254
15258
|
border-bottom: 1px solid #f5f7f9;
|
|
15255
|
-
`,
|
|
15259
|
+
`,KF=on(UF)`
|
|
15256
15260
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15257
15261
|
background-color: unset;
|
|
15258
15262
|
border: unset;
|
|
@@ -15272,28 +15276,28 @@ animationDuration:h.current?"0s":void 0}}),r&&i)))
|
|
|
15272
15276
|
color: ${({theme:e})=>e.colors.text.link};
|
|
15273
15277
|
border-color: ${({theme:e})=>e.colors.text.link};
|
|
15274
15278
|
}
|
|
15275
|
-
`,
|
|
15279
|
+
`,qF=e.createContext({toasts:[],windowState:"focus",addToast:()=>{},
|
|
15276
15280
|
updateToasts:()=>{}
|
|
15277
|
-
}),
|
|
15281
|
+
}),ZF="ToastProvider",[XF,QF,JF]=hr("Toast"),[ej,tj]=cr("Toast",[JF]),[nj,rj]=ej(ZF),aj=t=>{
|
|
15278
15282
|
const{__scopeToast:n,label:r="Notification",duration:a=5e3,swipeDirection:o="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)
|
|
15279
|
-
;return e.createElement(
|
|
15283
|
+
;return e.createElement(XF.Provider,{scope:n},e.createElement(nj,{scope:n,
|
|
15280
15284
|
label:r,duration:a,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:c,
|
|
15281
15285
|
onViewportChange:s,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),
|
|
15282
15286
|
onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),
|
|
15283
|
-
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};
|
|
15287
|
+
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};aj.propTypes={
|
|
15284
15288
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
15285
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
15289
|
+
return new Error(`Invalid prop \`label\` supplied to \`${ZF}\`. Expected non-empty \`string\`.`)
|
|
15286
15290
|
}return null}}
|
|
15287
|
-
;const
|
|
15288
|
-
const{__scopeToast:r,hotkey:a=
|
|
15291
|
+
;const oj=["F8"],ij="toast.viewportPause",lj="toast.viewportResume",cj=e.forwardRef(((t,n)=>{
|
|
15292
|
+
const{__scopeToast:r,hotkey:a=oj,label:o="Notifications ({hotkey})",...i}=t,l=rj("ToastViewport",r),c=QF(r),s=e.useRef(null),u=e.useRef(null),d=e.useRef(null),h=e.useRef(null),p=hn(n,h,l.onViewportChange),f=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=l.toastCount>0
|
|
15289
15293
|
;e.useEffect((()=>{const e=e=>{var t;const n=a.every((t=>e[t]||e.code===t))
|
|
15290
15294
|
;n&&(null===(t=h.current)||void 0===t||t.focus())}
|
|
15291
15295
|
;return document.addEventListener("keydown",e),
|
|
15292
15296
|
()=>document.removeEventListener("keydown",e)}),[a]),e.useEffect((()=>{
|
|
15293
15297
|
const e=s.current,t=h.current;if(m&&e&&t){const n=()=>{
|
|
15294
|
-
if(!l.isClosePausedRef.current){const e=new CustomEvent(
|
|
15298
|
+
if(!l.isClosePausedRef.current){const e=new CustomEvent(ij)
|
|
15295
15299
|
;t.dispatchEvent(e),l.isClosePausedRef.current=!0}},r=()=>{
|
|
15296
|
-
if(l.isClosePausedRef.current){const e=new CustomEvent(
|
|
15300
|
+
if(l.isClosePausedRef.current){const e=new CustomEvent(lj)
|
|
15297
15301
|
;t.dispatchEvent(e),l.isClosePausedRef.current=!1}},a=t=>{
|
|
15298
15302
|
!e.contains(t.relatedTarget)&&r()},o=()=>{
|
|
15299
15303
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -15305,7 +15309,7 @@ e.removeEventListener("focusout",a),e.removeEventListener("pointermove",n),
|
|
|
15305
15309
|
e.removeEventListener("pointerleave",o),
|
|
15306
15310
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
15307
15311
|
}),[m,l.isClosePausedRef]);const v=e.useCallback((({tabbingDirection:e})=>{
|
|
15308
|
-
const t=c().map((t=>{const n=t.ref.current,r=[n,...
|
|
15312
|
+
const t=c().map((t=>{const n=t.ref.current,r=[n,...Mj(n)]
|
|
15309
15313
|
;return"forwards"===e?r:r.reverse()}))
|
|
15310
15314
|
;return("forwards"===e?t.reverse():t).flat()}),[c]);return e.useEffect((()=>{
|
|
15311
15315
|
const e=h.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -15313,23 +15317,23 @@ const e=h.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
15313
15317
|
;if(t.target===e&&i)return void(null===(r=u.current)||void 0===r||r.focus())
|
|
15314
15318
|
;const l=v({tabbingDirection:i?"backwards":"forwards"
|
|
15315
15319
|
}),c=l.findIndex((e=>e===n));var a,o
|
|
15316
|
-
;if(
|
|
15320
|
+
;if(xj(l.slice(c+1)))t.preventDefault();else i?null===(a=u.current)||void 0===a||a.focus():null===(o=d.current)||void 0===o||o.focus()
|
|
15317
15321
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
15318
15322
|
}}),[c,v]),e.createElement(Er,{ref:s,role:"region",
|
|
15319
15323
|
"aria-label":o.replace("{hotkey}",f),tabIndex:-1,style:{
|
|
15320
|
-
pointerEvents:m?void 0:"none"}},m&&e.createElement(
|
|
15321
|
-
onFocusFromOutsideViewport:()=>{
|
|
15322
|
-
}),e.createElement(
|
|
15323
|
-
ref:p}))),m&&e.createElement(
|
|
15324
|
-
tabbingDirection:"backwards"}))}}))})),
|
|
15325
|
-
const{__scopeToast:r,onFocusFromOutsideViewport:a,...o}=t,i=
|
|
15324
|
+
pointerEvents:m?void 0:"none"}},m&&e.createElement(sj,{ref:u,
|
|
15325
|
+
onFocusFromOutsideViewport:()=>{xj(v({tabbingDirection:"forwards"}))}
|
|
15326
|
+
}),e.createElement(XF.Slot,{scope:r},e.createElement(yn.ol,un({tabIndex:-1},i,{
|
|
15327
|
+
ref:p}))),m&&e.createElement(sj,{ref:d,onFocusFromOutsideViewport:()=>{xj(v({
|
|
15328
|
+
tabbingDirection:"backwards"}))}}))})),sj=e.forwardRef(((t,n)=>{
|
|
15329
|
+
const{__scopeToast:r,onFocusFromOutsideViewport:a,...o}=t,i=rj("ToastFocusProxy",r)
|
|
15326
15330
|
;return e.createElement(Ws,un({"aria-hidden":!0,tabIndex:0},o,{ref:n,style:{
|
|
15327
15331
|
position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
|
|
15328
15332
|
;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&a()}}))
|
|
15329
|
-
})),
|
|
15333
|
+
})),uj="Toast",dj=e.forwardRef(((t,n)=>{
|
|
15330
15334
|
const{forceMount:r,open:a,defaultOpen:o,onOpenChange:i,...l}=t,[c=!0,s]=dr({
|
|
15331
15335
|
prop:a,defaultProp:o,onChange:i});return e.createElement(Lo,{present:r||c
|
|
15332
|
-
},e.createElement(
|
|
15336
|
+
},e.createElement(fj,un({open:c},l,{ref:n,onClose:()=>s(!1),
|
|
15333
15337
|
onPause:ur(t.onPause),onResume:ur(t.onResume),
|
|
15334
15338
|
onSwipeStart:lr(t.onSwipeStart,(e=>{
|
|
15335
15339
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
@@ -15349,8 +15353,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
15349
15353
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
15350
15354
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
15351
15355
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),s(!1)}))
|
|
15352
|
-
})))})),[pj
|
|
15353
|
-
const{__scopeToast:a,type:o="foreground",duration:i,open:l,onClose:c,onEscapeKeyDown:s,onPause:u,onResume:d,onSwipeStart:h,onSwipeMove:p,onSwipeCancel:f,onSwipeEnd:m,...v}=n,g=
|
|
15356
|
+
})))})),[hj,pj]=ej(uj,{onClose(){}}),fj=e.forwardRef(((n,r)=>{
|
|
15357
|
+
const{__scopeToast:a,type:o="foreground",duration:i,open:l,onClose:c,onEscapeKeyDown:s,onPause:u,onResume:d,onSwipeStart:h,onSwipeMove:p,onSwipeCancel:f,onSwipeEnd:m,...v}=n,g=rj(uj,a),[y,b]=e.useState(null),w=hn(r,(e=>b(e))),C=e.useRef(null),z=e.useRef(null),M=i||g.duration,x=e.useRef(0),E=e.useRef(M),S=e.useRef(0),{onToastAdd:_,onToastRemove:H}=g,D=ur((()=>{
|
|
15354
15358
|
var e
|
|
15355
15359
|
;(null==y?void 0:y.contains(document.activeElement))&&(null===(e=g.viewport)||void 0===e||e.focus()),
|
|
15356
15360
|
c()})),L=e.useCallback((e=>{
|
|
@@ -15359,15 +15363,15 @@ S.current=window.setTimeout(D,e))}),[D]);e.useEffect((()=>{const e=g.viewport
|
|
|
15359
15363
|
;if(e){const t=()=>{L(E.current),null==d||d()},n=()=>{
|
|
15360
15364
|
const e=(new Date).getTime()-x.current
|
|
15361
15365
|
;E.current=E.current-e,window.clearTimeout(S.current),null==u||u()}
|
|
15362
|
-
;return e.addEventListener(
|
|
15363
|
-
e.removeEventListener(
|
|
15366
|
+
;return e.addEventListener(ij,n),e.addEventListener(lj,t),()=>{
|
|
15367
|
+
e.removeEventListener(ij,n),e.removeEventListener(lj,t)}}
|
|
15364
15368
|
}),[g.viewport,M,u,d,L]),e.useEffect((()=>{l&&!g.isClosePausedRef.current&&L(M)
|
|
15365
15369
|
}),[l,M,g.isClosePausedRef,L]),e.useEffect((()=>(_(),()=>H())),[_,H])
|
|
15366
|
-
;const V=e.useMemo((()=>y?
|
|
15367
|
-
;return g.viewport?e.createElement(e.Fragment,null,V&&e.createElement(
|
|
15370
|
+
;const V=e.useMemo((()=>y?wj(y):null),[y])
|
|
15371
|
+
;return g.viewport?e.createElement(e.Fragment,null,V&&e.createElement(mj,{
|
|
15368
15372
|
__scopeToast:a,role:"status","aria-live":"foreground"===o?"assertive":"polite",
|
|
15369
|
-
"aria-atomic":!0},V),e.createElement(
|
|
15370
|
-
},t.createPortal(e.createElement(
|
|
15373
|
+
"aria-atomic":!0},V),e.createElement(hj,{scope:a,onClose:D
|
|
15374
|
+
},t.createPortal(e.createElement(XF.ItemSlot,{scope:a},e.createElement(xr,{
|
|
15371
15375
|
asChild:!0,onEscapeKeyDown:lr(s,(()=>{
|
|
15372
15376
|
g.isFocusedToastEscapeKeyDownRef.current||D(),
|
|
15373
15377
|
g.isFocusedToastEscapeKeyDownRef.current=!1}))},e.createElement(yn.li,un({
|
|
@@ -15380,59 +15384,59 @@ D()))})),onPointerDown:lr(n.onPointerDown,(e=>{0===e.button&&(C.current={
|
|
|
15380
15384
|
x:e.clientX,y:e.clientY})})),onPointerMove:lr(n.onPointerMove,(e=>{
|
|
15381
15385
|
if(!C.current)return
|
|
15382
15386
|
;const t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=Boolean(z.current),a=["left","right"].includes(g.swipeDirection),o=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,i=a?o(0,t):0,l=a?0:o(0,n),c="touch"===e.pointerType?10:2,s={
|
|
15383
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(z.current=s,
|
|
15384
|
-
discrete:!1})):
|
|
15387
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(z.current=s,Cj("toast.swipeMove",p,u,{
|
|
15388
|
+
discrete:!1})):zj(s,g.swipeDirection,c)?(z.current=s,Cj("toast.swipeStart",h,u,{
|
|
15385
15389
|
discrete:!1
|
|
15386
15390
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)
|
|
15387
15391
|
})),onPointerUp:lr(n.onPointerUp,(e=>{const t=z.current,n=e.target
|
|
15388
15392
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
15389
15393
|
z.current=null,C.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
15390
|
-
delta:t};
|
|
15391
|
-
discrete:!0}):
|
|
15394
|
+
delta:t};zj(t,g.swipeDirection,g.swipeThreshold)?Cj("toast.swipeEnd",m,r,{
|
|
15395
|
+
discrete:!0}):Cj("toast.swipeCancel",f,r,{discrete:!0
|
|
15392
15396
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
15393
|
-
})))),g.viewport))):null}));
|
|
15397
|
+
})))),g.viewport))):null}));fj.propTypes={type(e){
|
|
15394
15398
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
15395
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
15396
|
-
}return null}};const
|
|
15397
|
-
const{__scopeToast:n,children:r,...a}=t,o=
|
|
15399
|
+
return new Error(`Invalid prop \`type\` supplied to \`${uj}\`. Expected \`foreground | background\`.`)
|
|
15400
|
+
}return null}};const mj=t=>{
|
|
15401
|
+
const{__scopeToast:n,children:r,...a}=t,o=rj(uj,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
|
|
15398
15402
|
;return function(e=(()=>{})){const t=ur(e);Nr((()=>{let e=0,n=0
|
|
15399
15403
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
15400
15404
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
15401
15405
|
}((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
15402
15406
|
;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Do,{asChild:!0
|
|
15403
15407
|
},e.createElement(Ws,a,i&&e.createElement(e.Fragment,null,o.label," ",r)))
|
|
15404
|
-
},
|
|
15405
|
-
;return e.createElement(yn.div,un({},a,{ref:n}))})),
|
|
15406
|
-
const{altText:r,...a}=t;return r?e.createElement(
|
|
15407
|
-
},e.createElement(
|
|
15408
|
+
},vj=e.forwardRef(((t,n)=>{const{__scopeToast:r,...a}=t
|
|
15409
|
+
;return e.createElement(yn.div,un({},a,{ref:n}))})),gj=e.forwardRef(((t,n)=>{
|
|
15410
|
+
const{altText:r,...a}=t;return r?e.createElement(bj,{altText:r,asChild:!0
|
|
15411
|
+
},e.createElement(yj,un({},a,{ref:n}))):null}));gj.propTypes={
|
|
15408
15412
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
15409
|
-
};const
|
|
15410
|
-
const{__scopeToast:r,...a}=t,o=
|
|
15413
|
+
};const yj=e.forwardRef(((t,n)=>{
|
|
15414
|
+
const{__scopeToast:r,...a}=t,o=pj("ToastClose",r);return e.createElement(bj,{
|
|
15411
15415
|
asChild:!0},e.createElement(yn.button,un({type:"button"},a,{ref:n,
|
|
15412
|
-
onClick:lr(t.onClick,o.onClose)})))})),
|
|
15416
|
+
onClick:lr(t.onClick,o.onClose)})))})),bj=e.forwardRef(((t,n)=>{
|
|
15413
15417
|
const{__scopeToast:r,altText:a,...o}=t;return e.createElement(yn.div,un({
|
|
15414
15418
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0
|
|
15415
|
-
},o,{ref:n}))}));function
|
|
15419
|
+
},o,{ref:n}))}));function wj(e){const t=[]
|
|
15416
15420
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
15417
15421
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
15418
15422
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
15419
15423
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
15420
15424
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
15421
|
-
}else t.push(...
|
|
15425
|
+
}else t.push(...wj(e))}})),t}function Cj(e,t,n,{discrete:r}){
|
|
15422
15426
|
const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,
|
|
15423
15427
|
cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0
|
|
15424
|
-
}),r?bn(a,o):a.dispatchEvent(o)}const
|
|
15428
|
+
}),r?bn(a,o):a.dispatchEvent(o)}const zj=(e,t,n=0)=>{
|
|
15425
15429
|
const r=Math.abs(e.x),a=Math.abs(e.y),o=r>a
|
|
15426
|
-
;return"left"===t||"right"===t?o&&r>n:!o&&a>n};function
|
|
15430
|
+
;return"left"===t||"right"===t?o&&r>n:!o&&a>n};function Mj(e){
|
|
15427
15431
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
15428
15432
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
15429
15433
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
15430
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
15434
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function xj(e){
|
|
15431
15435
|
const t=document.activeElement
|
|
15432
15436
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
15433
|
-
const Sj=
|
|
15437
|
+
const Ej=cj,Sj=dj,_j=vj,Hj=gj,Dj=on(aj)``;on.div`
|
|
15434
15438
|
border-top: 4px solid;
|
|
15435
|
-
`;const
|
|
15439
|
+
`;const Lj=cn`
|
|
15436
15440
|
from {
|
|
15437
15441
|
opacity: 0;
|
|
15438
15442
|
transform: translateY(-32px);
|
|
@@ -15441,14 +15445,14 @@ const Sj=sj,_j=hj,Hj=gj,Dj=yj,Lj=on(oj)``;on.div`
|
|
|
15441
15445
|
opacity: 1;
|
|
15442
15446
|
transform: translateY(0);
|
|
15443
15447
|
}
|
|
15444
|
-
`,
|
|
15448
|
+
`,Vj=cn`
|
|
15445
15449
|
from {
|
|
15446
15450
|
width: 100%;
|
|
15447
15451
|
}
|
|
15448
15452
|
to {
|
|
15449
15453
|
width: 0%;
|
|
15450
15454
|
}
|
|
15451
|
-
`,
|
|
15455
|
+
`,Aj=on(Sj)`
|
|
15452
15456
|
&[data-state='open']:nth-last-of-type(1) {
|
|
15453
15457
|
z-index: 3;
|
|
15454
15458
|
opacity: 1 !important;
|
|
@@ -15478,7 +15482,7 @@ const Sj=sj,_j=hj,Hj=gj,Dj=yj,Lj=on(oj)``;on.div`
|
|
|
15478
15482
|
opacity: 0;
|
|
15479
15483
|
}
|
|
15480
15484
|
&[data-state='open'] {
|
|
15481
|
-
animation-name: ${
|
|
15485
|
+
animation-name: ${Lj};
|
|
15482
15486
|
}
|
|
15483
15487
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
15484
15488
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
@@ -15493,14 +15497,14 @@ const Sj=sj,_j=hj,Hj=gj,Dj=yj,Lj=on(oj)``;on.div`
|
|
|
15493
15497
|
0px 2px 16px rgba(18, 52, 77, 0.16);
|
|
15494
15498
|
width: 400px;
|
|
15495
15499
|
transition: all 0.3s ease-in-out;
|
|
15496
|
-
`,
|
|
15500
|
+
`,kj=on(_j)`
|
|
15497
15501
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15498
15502
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
15499
15503
|
font-weight: 500;
|
|
15500
15504
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
15501
15505
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
15502
15506
|
flex: 1;
|
|
15503
|
-
`,
|
|
15507
|
+
`,Tj=on(Hj)``,Rj=on(Ej)`
|
|
15504
15508
|
position: fixed;
|
|
15505
15509
|
top: 16px;
|
|
15506
15510
|
left: 50%;
|
|
@@ -15532,30 +15536,30 @@ const Sj=sj,_j=hj,Hj=gj,Dj=yj,Lj=on(oj)``;on.div`
|
|
|
15532
15536
|
animation-play-state: paused;
|
|
15533
15537
|
}
|
|
15534
15538
|
}
|
|
15535
|
-
`,
|
|
15539
|
+
`,Pj=on.div`
|
|
15536
15540
|
display: flex;
|
|
15537
15541
|
align-items: flex-start;
|
|
15538
15542
|
padding: 16px;
|
|
15539
15543
|
gap: 16px;
|
|
15540
|
-
`,
|
|
15544
|
+
`,Ij=on.div`
|
|
15541
15545
|
height: 4px;
|
|
15542
15546
|
background-color: ${({theme:e,toastType:t})=>e.colors.text.semantic[t??"success"]};
|
|
15543
15547
|
width: 0%;
|
|
15544
15548
|
border-radius: 4px 4px 0 0;
|
|
15545
15549
|
animation-play-state: ${({windowState:e})=>"focus"===e?"running":"paused"};
|
|
15546
|
-
animation-name: ${
|
|
15550
|
+
animation-name: ${Vj};
|
|
15547
15551
|
animation-duration: ${({delay:e})=>e}ms;
|
|
15548
15552
|
animation-timing-function: linear;
|
|
15549
15553
|
will-change: width;
|
|
15550
|
-
`,
|
|
15554
|
+
`,Oj=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
|
|
15551
15555
|
n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
15552
|
-
}),[]),{isBrowser:t,isServer:!t}},
|
|
15553
|
-
;return t.setAttribute("id",e),t},
|
|
15556
|
+
}),[]),{isBrowser:t,isServer:!t}},Nj=e=>{const t=document.createElement("div")
|
|
15557
|
+
;return t.setAttribute("id",e),t},Fj=t=>{const n=qt()
|
|
15554
15558
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
15555
15559
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
15556
15560
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15557
15561
|
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",
|
|
15558
|
-
fill:n.colors.text.semantic.success}))},
|
|
15562
|
+
fill:n.colors.text.semantic.success}))},jj=t=>{const n=qt()
|
|
15559
15563
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
15560
15564
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
15561
15565
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -15563,32 +15567,32 @@ d:"M2 10C2 5.58172 5.58172 2 10 2C12.1217 2 14.1566 2.84286 15.6569 4.34315C17.1
|
|
|
15563
15567
|
fill:n.colors.text.semantic.warning}),e.createElement("path",{
|
|
15564
15568
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15565
15569
|
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",
|
|
15566
|
-
fill:n.colors.text.semantic.warning}))},
|
|
15570
|
+
fill:n.colors.text.semantic.warning}))},Bj=t=>{const n=qt()
|
|
15567
15571
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
15568
15572
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
15569
15573
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
15570
15574
|
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",
|
|
15571
|
-
fill:n.colors.text.semantic.error}))}
|
|
15572
|
-
const r=qt(),{updateToasts:a,windowState:o}=e.useContext(
|
|
15573
|
-
;return e.createElement(e.Fragment,null,e.createElement(
|
|
15575
|
+
fill:n.colors.text.semantic.error}))},Uj=({index:t,...n})=>{
|
|
15576
|
+
const r=qt(),{updateToasts:a,windowState:o}=e.useContext(qF)??{},i=e.useRef(null)
|
|
15577
|
+
;return e.createElement(e.Fragment,null,e.createElement(Aj,{ref:i,
|
|
15574
15578
|
toastType:n.type,toastIndex:t,className:`ToastRoot Toast-${n.id}`.trim(),
|
|
15575
15579
|
duration:n.delay??3e3,onOpenChange:e=>{e||a((e=>e.filter((e=>e.id!==n.id))))}
|
|
15576
|
-
},e.createElement(
|
|
15580
|
+
},e.createElement(Ij,{className:"ToastProgress",windowState:o,toastType:n.type,
|
|
15577
15581
|
delay:n.delay??3e3
|
|
15578
|
-
}),e.createElement(
|
|
15579
|
-
fill:r.colors.text.semantic.success}),"warning"===n.type&&e.createElement(
|
|
15580
|
-
fill:r.colors.text.semantic.warning}),"error"===n.type&&e.createElement(
|
|
15581
|
-
fill:r.colors.text.semantic.error})),e.createElement(
|
|
15582
|
-
},n.text),e.createElement(
|
|
15582
|
+
}),e.createElement(Pj,null,n.customIcon?e.createElement(e.Fragment,null,n.customIcon):e.createElement(e.Fragment,null,"success"===n.type&&e.createElement(Fj,{
|
|
15583
|
+
fill:r.colors.text.semantic.success}),"warning"===n.type&&e.createElement(jj,{
|
|
15584
|
+
fill:r.colors.text.semantic.warning}),"error"===n.type&&e.createElement(Bj,{
|
|
15585
|
+
fill:r.colors.text.semantic.error})),e.createElement(kj,{className:"ToastTitle"
|
|
15586
|
+
},n.text),e.createElement(Tj,{className:"ToastAction",asChild:!0,altText:"Close"
|
|
15583
15587
|
},e.createElement(Vn,null,e.createElement(Zn,{fill:r.colors.text.primary}))))))
|
|
15584
|
-
}
|
|
15585
|
-
const n=`ui-${t}`,{isBrowser:r}=
|
|
15586
|
-
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||
|
|
15588
|
+
},$j=()=>{const n=((t=rN())=>{
|
|
15589
|
+
const n=`ui-${t}`,{isBrowser:r}=Oj(),[a,o]=e.useState(r?Nj(n):null)
|
|
15590
|
+
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||Nj(n)
|
|
15587
15591
|
;e||document.body.appendChild(t),o(t)}),[]),a
|
|
15588
|
-
})("toast"),{toasts:r}=e.useContext(
|
|
15589
|
-
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(
|
|
15590
|
-
swipeDirection:"up"},r.map(((t,n)=>e.createElement(
|
|
15591
|
-
index:n}))),e.createElement(
|
|
15592
|
+
})("toast"),{toasts:r}=e.useContext(qF)??{}
|
|
15593
|
+
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(Dj,{
|
|
15594
|
+
swipeDirection:"up"},r.map(((t,n)=>e.createElement(Uj,{key:`Toast-${t.id}`,...t,
|
|
15595
|
+
index:n}))),e.createElement(Rj,{className:"ToastViewport"}))),n):null},Yj=t=>{
|
|
15592
15596
|
const[n,r]=e.useState("focus"),[a,o]=e.useState([]),i=e.useCallback((e=>{
|
|
15593
15597
|
o((t=>[{...e,id:rN(),state:"open"},...t]))}),[]),l=e.useCallback((e=>{
|
|
15594
15598
|
o((t=>e(t)))}),[]),c=e.useMemo((()=>({toasts:a,addToast:i,windowState:n,
|
|
@@ -15596,19 +15600,19 @@ updateToasts:l})),[a,i,n,l])
|
|
|
15596
15600
|
;return e.useEffect((()=>(window.addEventListener&&(window.addEventListener("focus",(()=>{
|
|
15597
15601
|
r("focus")}),!1),window.addEventListener("blur",(()=>{r("blur")}),!1)),()=>{
|
|
15598
15602
|
window.removeEventListener("focus",(()=>{})),
|
|
15599
|
-
window.removeEventListener("blur",(()=>{}))})),[]),e.createElement(
|
|
15600
|
-
value:c},e.createElement(
|
|
15601
|
-
},
|
|
15603
|
+
window.removeEventListener("blur",(()=>{}))})),[]),e.createElement(qF.Provider,{
|
|
15604
|
+
value:c},e.createElement($j,null),t.children)
|
|
15605
|
+
},Wj="Switch",[Gj,Kj]=cr(Wj),[qj,Zj]=Gj(Wj),Xj=e.forwardRef(((t,n)=>{
|
|
15602
15606
|
const{__scopeSwitch:r,name:a,checked:o,defaultChecked:i,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=t,[h,p]=e.useState(null),f=hn(n,(e=>p(e))),m=e.useRef(!1),v=!h||Boolean(h.closest("form")),[g=!1,y]=dr({
|
|
15603
|
-
prop:o,defaultProp:i,onChange:u});return e.createElement(
|
|
15607
|
+
prop:o,defaultProp:i,onChange:u});return e.createElement(qj,{scope:r,checked:g,
|
|
15604
15608
|
disabled:c},e.createElement(yn.button,un({type:"button",role:"switch",
|
|
15605
|
-
"aria-checked":g,"aria-required":l,"data-state":
|
|
15609
|
+
"aria-checked":g,"aria-required":l,"data-state":Jj(g),
|
|
15606
15610
|
"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:f,
|
|
15607
15611
|
onClick:lr(t.onClick,(e=>{
|
|
15608
15612
|
y((e=>!e)),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())
|
|
15609
|
-
}))})),v&&e.createElement(
|
|
15613
|
+
}))})),v&&e.createElement(Qj,{control:h,bubbles:!m.current,name:a,value:s,
|
|
15610
15614
|
checked:g,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))
|
|
15611
|
-
})),
|
|
15615
|
+
})),Qj=t=>{
|
|
15612
15616
|
const{control:n,checked:r,bubbles:a=!0,...o}=t,i=e.useRef(null),l=Nl(r),c=lo(n)
|
|
15613
15617
|
;return e.useEffect((()=>{
|
|
15614
15618
|
const e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
@@ -15616,21 +15620,21 @@ const e=i.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDes
|
|
|
15616
15620
|
;n.call(e,r),e.dispatchEvent(t)}}),[l,r,a]),e.createElement("input",un({
|
|
15617
15621
|
type:"checkbox","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{
|
|
15618
15622
|
...t.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
|
|
15619
|
-
;function
|
|
15620
|
-
const{__scopeSwitch:r,...a}=t,o=
|
|
15621
|
-
;return e.createElement(yn.span,un({"data-state":
|
|
15622
|
-
"data-disabled":o.disabled?"":void 0},a,{ref:n}))})),
|
|
15623
|
+
;function Jj(e){return e?"checked":"unchecked"}const eB=e.forwardRef(((t,n)=>{
|
|
15624
|
+
const{__scopeSwitch:r,...a}=t,o=Zj("SwitchThumb",r)
|
|
15625
|
+
;return e.createElement(yn.span,un({"data-state":Jj(o.checked),
|
|
15626
|
+
"data-disabled":o.disabled?"":void 0},a,{ref:n}))})),tB={sm:{width:28,height:12,
|
|
15623
15627
|
thumb:16,offTransform:[-2,-2.5],onTransform:[12,-2.5]},md:{width:36,height:16,
|
|
15624
15628
|
thumb:20,offTransform:[-2,-2.75],onTransform:[16,-2.75]},lg:{width:44,height:20,
|
|
15625
|
-
thumb:24,offTransform:[-2,-2.5],onTransform:[20,-2.5]}},
|
|
15629
|
+
thumb:24,offTransform:[-2,-2.5],onTransform:[20,-2.5]}},nB=on(Xj)`
|
|
15626
15630
|
margin: 0;
|
|
15627
15631
|
padding: 0;
|
|
15628
15632
|
outline: 0;
|
|
15629
15633
|
border: none;
|
|
15630
15634
|
position: relative;
|
|
15631
|
-
width: ${({size:e})=>
|
|
15632
|
-
height: ${({size:e})=>
|
|
15633
|
-
border-radius: ${({size:e})=>
|
|
15635
|
+
width: ${({size:e})=>tB[e].width}px;
|
|
15636
|
+
height: ${({size:e})=>tB[e].height}px;
|
|
15637
|
+
border-radius: ${({size:e})=>tB[e].height/2}px;
|
|
15634
15638
|
&[data-disabled] {
|
|
15635
15639
|
opacity: 0.5;
|
|
15636
15640
|
}
|
|
@@ -15650,16 +15654,16 @@ thumb:24,offTransform:[-2,-2.5],onTransform:[20,-2.5]}},rB=on(Qj)`
|
|
|
15650
15654
|
}
|
|
15651
15655
|
}
|
|
15652
15656
|
}
|
|
15653
|
-
`,
|
|
15657
|
+
`,rB=on(eB)`
|
|
15654
15658
|
display: grid;
|
|
15655
15659
|
place-content: center;
|
|
15656
|
-
width: ${({size:e})=>
|
|
15657
|
-
height: ${({size:e})=>
|
|
15660
|
+
width: ${({size:e})=>tB[e].thumb}px;
|
|
15661
|
+
height: ${({size:e})=>tB[e].thumb}px;
|
|
15658
15662
|
border-radius: 50%;
|
|
15659
15663
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
15660
15664
|
transition: transform 100ms;
|
|
15661
15665
|
transform: translate(
|
|
15662
|
-
${({size:e})=>
|
|
15666
|
+
${({size:e})=>tB[e].offTransform.map((e=>`${e}px`)).join(",")}
|
|
15663
15667
|
);
|
|
15664
15668
|
will-change: transform;
|
|
15665
15669
|
overflow: hidden;
|
|
@@ -15681,17 +15685,17 @@ thumb:24,offTransform:[-2,-2.5],onTransform:[20,-2.5]}},rB=on(Qj)`
|
|
|
15681
15685
|
}
|
|
15682
15686
|
&[data-state='checked'] {
|
|
15683
15687
|
transform: translate(
|
|
15684
|
-
${({size:e})=>
|
|
15688
|
+
${({size:e})=>tB[e].onTransform.map((e=>`${e}px`)).join(",")}
|
|
15685
15689
|
);
|
|
15686
15690
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
15687
15691
|
svg.toggle-off {
|
|
15688
15692
|
display: none;
|
|
15689
15693
|
}
|
|
15690
15694
|
}
|
|
15691
|
-
`,
|
|
15692
|
-
},
|
|
15693
|
-
},[lB
|
|
15694
|
-
const{__scopeTooltip:r,...a}=t,o=vB
|
|
15695
|
+
`,aB={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}
|
|
15696
|
+
},oB={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,height:8}
|
|
15697
|
+
},[iB,lB]=cr("Tooltip",[uo]),cB=uo(),sB=700,uB="tooltip.open",[dB,hB]=iB("TooltipProvider"),pB="Tooltip",[fB,mB]=iB(pB),vB="TooltipTrigger",gB=e.forwardRef(((t,n)=>{
|
|
15698
|
+
const{__scopeTooltip:r,...a}=t,o=mB(vB,r),i=hB(vB,r),l=cB(r),c=hn(n,e.useRef(null),o.onTriggerChange),s=e.useRef(!1),u=e.useRef(!1),d=e.useCallback((()=>s.current=!1),[])
|
|
15695
15699
|
;return e.useEffect((()=>()=>document.removeEventListener("pointerup",d)),[d]),
|
|
15696
15700
|
e.createElement(So,un({asChild:!0},l),e.createElement(yn.button,un({
|
|
15697
15701
|
"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},a,{
|
|
@@ -15702,13 +15706,13 @@ o.onTriggerLeave(),u.current=!1})),onPointerDown:lr(t.onPointerDown,(()=>{
|
|
|
15702
15706
|
s.current=!0,document.addEventListener("pointerup",d,{once:!0})})),
|
|
15703
15707
|
onFocus:lr(t.onFocus,(()=>{s.current||o.onOpen()})),
|
|
15704
15708
|
onBlur:lr(t.onBlur,o.onClose),onClick:lr(t.onClick,o.onClose)})))
|
|
15705
|
-
})),
|
|
15706
|
-
}),
|
|
15707
|
-
const r=CB
|
|
15709
|
+
})),yB="TooltipPortal",[bB,wB]=iB(yB,{forceMount:void 0
|
|
15710
|
+
}),CB="TooltipContent",zB=e.forwardRef(((t,n)=>{
|
|
15711
|
+
const r=wB(CB,t.__scopeTooltip),{forceMount:a=r.forceMount,side:o="top",...i}=t,l=mB(CB,t.__scopeTooltip)
|
|
15708
15712
|
;return e.createElement(Lo,{present:a||l.open
|
|
15709
|
-
},l.disableHoverableContent?e.createElement(
|
|
15710
|
-
})):e.createElement(
|
|
15711
|
-
const r=
|
|
15713
|
+
},l.disableHoverableContent?e.createElement(SB,un({side:o},i,{ref:n
|
|
15714
|
+
})):e.createElement(MB,un({side:o},i,{ref:n})))})),MB=e.forwardRef(((t,n)=>{
|
|
15715
|
+
const r=mB(CB,t.__scopeTooltip),a=hB(CB,t.__scopeTooltip),o=e.useRef(null),i=hn(n,o),[l,c]=e.useState(null),{trigger:s,onClose:u}=r,d=o.current,{onPointerInTransitChange:h}=a,p=e.useCallback((()=>{
|
|
15712
15716
|
c(null),h(!1)}),[h]),f=e.useCallback(((e,t)=>{const n=e.currentTarget,r={
|
|
15713
15717
|
x:e.clientX,y:e.clientY},a=function(e,t){
|
|
15714
15718
|
const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x)
|
|
@@ -15745,11 +15749,11 @@ const i=t[e].x,l=t[e].y,c=t[o].x,s=t[o].y
|
|
|
15745
15749
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(a=!a)}return a}(n,l);r?p():a&&(p(),u())}
|
|
15746
15750
|
;return document.addEventListener("pointermove",e),
|
|
15747
15751
|
()=>document.removeEventListener("pointermove",e)}
|
|
15748
|
-
}),[s,d,l,u,p]),e.createElement(
|
|
15749
|
-
isInside:!1}),
|
|
15750
|
-
const{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=t,s=
|
|
15751
|
-
;return e.useEffect((()=>(document.addEventListener(
|
|
15752
|
-
()=>document.removeEventListener(
|
|
15752
|
+
}),[s,d,l,u,p]),e.createElement(SB,un({},t,{ref:i}))})),[xB,EB]=iB(pB,{
|
|
15753
|
+
isInside:!1}),SB=e.forwardRef(((t,n)=>{
|
|
15754
|
+
const{__scopeTooltip:r,children:a,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=t,s=mB(CB,r),u=cB(r),{onClose:d}=s
|
|
15755
|
+
;return e.useEffect((()=>(document.addEventListener(uB,d),
|
|
15756
|
+
()=>document.removeEventListener(uB,d))),[d]),e.useEffect((()=>{if(s.trigger){
|
|
15753
15757
|
const e=e=>{const t=e.target;null!=t&&t.contains(s.trigger)&&d()}
|
|
15754
15758
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
15755
15759
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -15762,19 +15766,19 @@ style:{...c.style,
|
|
|
15762
15766
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
15763
15767
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
15764
15768
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
15765
|
-
}),e.createElement(mn,null,a),e.createElement(
|
|
15766
|
-
},e.createElement(Gs,{id:s.contentId,role:"tooltip"},o||a))))}));const
|
|
15767
|
-
const{__scopeTooltip:n,delayDuration:r=
|
|
15769
|
+
}),e.createElement(mn,null,a),e.createElement(xB,{scope:r,isInside:!0
|
|
15770
|
+
},e.createElement(Gs,{id:s.contentId,role:"tooltip"},o||a))))}));const _B=t=>{
|
|
15771
|
+
const{__scopeTooltip:n,delayDuration:r=sB,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
|
|
15768
15772
|
;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
|
|
15769
|
-
}),[]),e.createElement(
|
|
15773
|
+
}),[]),e.createElement(dB,{scope:n,isOpenDelayed:l,delayDuration:r,
|
|
15770
15774
|
onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),
|
|
15771
15775
|
onClose:e.useCallback((()=>{
|
|
15772
15776
|
window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),a)
|
|
15773
15777
|
}),[a]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{
|
|
15774
|
-
s.current=e}),[]),disableHoverableContent:o},i)},
|
|
15775
|
-
const{__scopeTooltip:n,children:r,open:a,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=pB
|
|
15778
|
+
s.current=e}),[]),disableHoverableContent:o},i)},HB=t=>{
|
|
15779
|
+
const{__scopeTooltip:n,children:r,open:a,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=hB(pB,t.__scopeTooltip),u=cB(n),[d,h]=e.useState(null),p=Br(),f=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[y=!1,b]=dr({
|
|
15776
15780
|
prop:a,defaultProp:o,onChange:e=>{
|
|
15777
|
-
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
15781
|
+
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(uB))):s.onClose(),
|
|
15778
15782
|
null==i||i(e)}
|
|
15779
15783
|
}),w=e.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),C=e.useCallback((()=>{
|
|
15780
15784
|
window.clearTimeout(f.current),g.current=!1,b(!0)}),[b]),z=e.useCallback((()=>{
|
|
@@ -15782,19 +15786,19 @@ window.clearTimeout(f.current),b(!1)}),[b]),M=e.useCallback((()=>{
|
|
|
15782
15786
|
window.clearTimeout(f.current),f.current=window.setTimeout((()=>{
|
|
15783
15787
|
g.current=!0,b(!0)}),v)}),[v,b])
|
|
15784
15788
|
;return e.useEffect((()=>()=>window.clearTimeout(f.current)),[]),
|
|
15785
|
-
e.createElement(Eo,u,e.createElement(
|
|
15789
|
+
e.createElement(Eo,u,e.createElement(fB,{scope:n,contentId:p,open:y,
|
|
15786
15790
|
stateAttribute:w,trigger:d,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{
|
|
15787
15791
|
s.isOpenDelayed?M():C()}),[s.isOpenDelayed,M,C]),
|
|
15788
15792
|
onTriggerLeave:e.useCallback((()=>{m?z():window.clearTimeout(f.current)
|
|
15789
|
-
}),[z,m]),onOpen:C,onClose:z,disableHoverableContent:m},r))},
|
|
15790
|
-
const{__scopeTooltip:n,forceMount:r,children:a,container:o}=t,i=
|
|
15791
|
-
;return e.createElement(
|
|
15793
|
+
}),[z,m]),onOpen:C,onClose:z,disableHoverableContent:m},r))},DB=gB,LB=t=>{
|
|
15794
|
+
const{__scopeTooltip:n,forceMount:r,children:a,container:o}=t,i=mB(yB,n)
|
|
15795
|
+
;return e.createElement(bB,{scope:n,forceMount:r},e.createElement(Lo,{
|
|
15792
15796
|
present:r||i.open},e.createElement(Do,{asChild:!0,container:o},a)))
|
|
15793
|
-
},
|
|
15794
|
-
;return
|
|
15797
|
+
},VB=zB,AB=on(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...a}=t,o=cB(r)
|
|
15798
|
+
;return EB("TooltipArrow",r).isInside?null:e.createElement(Ho,un({},o,a,{ref:n
|
|
15795
15799
|
}))})))`
|
|
15796
15800
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
15797
|
-
`,
|
|
15801
|
+
`,kB=on(VB)`
|
|
15798
15802
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
15799
15803
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
15800
15804
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -15826,21 +15830,21 @@ present:r||i.open},e.createElement(Do,{asChild:!0,container:o},a)))
|
|
|
15826
15830
|
&[data-state='closed'] {
|
|
15827
15831
|
animation-name: ${kn};
|
|
15828
15832
|
}
|
|
15829
|
-
`,RB=on(HB)``,PB=on(DB)``,IB=on(LB)``,OB=
|
|
15833
|
+
`,TB=on(_B)``,RB=on(HB)``,PB=on(DB)``,IB=on(LB)``,OB=t=>{
|
|
15830
15834
|
const{styles:n,in:r,timeout:a=150,transition:o=`all ${a}ms ease-in-out`,children:i,...l}=t
|
|
15831
15835
|
;return e.createElement(UM,{appear:!0,unmountOnExit:!0,in:r,timeout:a,...l
|
|
15832
|
-
},(e=>i((e=>({...n.init,transition:o,...n[e]}))(e))))},
|
|
15833
|
-
entered:{opacity:1},exiting:{opacity:0}};function
|
|
15836
|
+
},(e=>i((e=>({...n.init,transition:o,...n[e]}))(e))))},NB={init:{opacity:0},
|
|
15837
|
+
entered:{opacity:1},exiting:{opacity:0}};function FB(e){switch(e){case"bottom":
|
|
15834
15838
|
return{maxWidth:"100vw",bottom:0,left:0,right:0};case"top":return{
|
|
15835
15839
|
maxWidth:"100vw",top:0,left:0,right:0};case"left":return{height:"100vh",left:0,
|
|
15836
|
-
top:0};case"right":return{right:0,top:0,height:"100vh"}}}const
|
|
15840
|
+
top:0};case"right":return{right:0,top:0,height:"100vh"}}}const jB=(e,t)=>{
|
|
15837
15841
|
let n=""
|
|
15838
15842
|
;return"left"!==e&&"right"!==e||(n="X"),"top"!==e&&"bottom"!==e||(n="Y"),
|
|
15839
|
-
`translate${n}(${t})`};var
|
|
15843
|
+
`translate${n}(${t})`};var BB=Object.freeze({__proto__:null,
|
|
15840
15844
|
allPathsLoader:function(e,t){return s(void 0,void 0,void 0,(function(){
|
|
15841
15845
|
return u(this,(function(n){switch(n.label){case 0:
|
|
15842
15846
|
return[4,Promise.resolve().then((function(){return $z}))];case 1:
|
|
15843
|
-
return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}})
|
|
15847
|
+
return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),UB=Object.freeze({
|
|
15844
15848
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
15845
15849
|
return s(void 0,void 0,void 0,(function(){var n,r;return u(this,(function(a){
|
|
15846
15850
|
switch(a.label){case 0:
|
|
@@ -15960,8 +15964,8 @@ forceMount:!0,className:`DialogContent ${a}`.trim(),isFullHeight:i,size:o,
|
|
|
15960
15964
|
placement:l},!r&&e.createElement(Bs,{asChild:!0},e.createElement(js,{
|
|
15961
15965
|
"aria-label":"Close"},e.createElement(Zn,{fill:u.colors.text.inverse}))),n)))
|
|
15962
15966
|
},exports.Dropdown=Kf,exports.ErrorText=Mn,exports.Fade=t=>{
|
|
15963
|
-
const{timeout:n=150,...r}=t;return e.createElement(
|
|
15964
|
-
transition:`all ${n}ms cubic-bezier(0.175, 0.885, 0.320, 1.175)`,styles:
|
|
15967
|
+
const{timeout:n=150,...r}=t;return e.createElement(OB,{
|
|
15968
|
+
transition:`all ${n}ms cubic-bezier(0.175, 0.885, 0.320, 1.175)`,styles:NB,
|
|
15965
15969
|
timeout:{enter:0,exit:n},...r})
|
|
15966
15970
|
},exports.FreshLink=En,exports.IconButton=xn,exports.Input=jf,
|
|
15967
15971
|
exports.InputLabel=Cn,
|
|
@@ -16034,41 +16038,42 @@ id:t?.[r]},e.createElement(pP,{className:"RadioGroupIndicator"
|
|
|
16034
16038
|
},t?.[a]))))),exports.Reorder=aN,exports.RequiredIndicator=zn,exports.Slide=t=>{
|
|
16035
16039
|
const{placement:n="left",timeout:r=150,children:a,...o}=t,i=function(e){
|
|
16036
16040
|
const t={bottom:"100%",top:"-100%",left:"-100%",right:"100%"};return{init:{
|
|
16037
|
-
transform:
|
|
16038
|
-
transform:
|
|
16039
|
-
;return e.createElement(
|
|
16041
|
+
transform:jB(e,t[e])},entered:{transform:jB(e,"0%")},exiting:{
|
|
16042
|
+
transform:jB(e,t[e])}}}(n),l={position:"fixed",willChange:"transform",...FB(n)}
|
|
16043
|
+
;return e.createElement(OB,{styles:i,
|
|
16040
16044
|
transition:`all ${r}ms cubic-bezier(0, 0, 0.2, 1)`,timeout:{enter:0,exit:r},...o
|
|
16041
16045
|
},(e=>a({...l,...e})))},exports.SlideFade=t=>{
|
|
16042
16046
|
const{initialOffset:n="20px",timeout:r=150,...a}=t,o=function(e){return{init:{
|
|
16043
16047
|
opacity:0,transform:`translateY(${e})`},entered:{opacity:1,
|
|
16044
16048
|
transform:"translateY(0px)"},exiting:{opacity:0,transform:`translateY(${e})`}}
|
|
16045
|
-
}(n);return e.createElement(
|
|
16049
|
+
}(n);return e.createElement(OB,{styles:o,
|
|
16046
16050
|
transition:`all ${r}ms cubic-bezier(0.4, 0.14, 0.3, 1)`,timeout:{enter:0,exit:r
|
|
16047
|
-
},...a})
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
16051
|
-
|
|
16052
|
-
header:({table:t})=>
|
|
16051
|
+
},...a})},exports.StyledLabel=wn,exports.Table=t=>{
|
|
16052
|
+
const{data:n,columns:a,showFooter:o=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,showTableOnLoading:g,hideLoaderOnTopPagination:y,hideActions:b,count:w,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!1,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,onNextPageClick:D,disableRowSelect:L,hideSelectAllInTable:V,onSelectAllRows:A,onRowSelect:k,onMenuOptionSelect:T,onRowClick:R,columnOrder:P,setColumnOrder:I,setHiddenColumns:O,hiddenColumns:N,selectedRowIds:F={},setSelectedRowIds:j,dataKey:B="id",cellPropGetter:U,setPageIndex:$,rowPropGetter:Y}=t,W=qt(),[G,K]=e.useState(!v),q={
|
|
16053
|
+
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16054
|
+
display:e=>e,group:e=>e},Z=-1===w||void 0===w,X=e.useMemo((()=>[...L?[]:[{
|
|
16055
|
+
id:"select",
|
|
16056
|
+
header:({table:t})=>V?e.createElement("div",null):e.createElement(Dc,{
|
|
16053
16057
|
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
16054
16058
|
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
16055
|
-
t.toggleAllPageRowsSelected(!0===e),
|
|
16059
|
+
t.toggleAllPageRowsSelected(!0===e),A?.(!0===e)}}),
|
|
16056
16060
|
cell:({row:t})=>e.createElement(Dc,{checked:t.getIsSelected(),
|
|
16057
16061
|
disabled:!t.getCanSelect(),indeterminate:t.getIsSomeSelected(),
|
|
16058
|
-
onCheckedChange:e=>{t.toggleSelected(!0===e),
|
|
16059
|
-
}],...
|
|
16060
|
-
cell:t=>e.accessorFn(t.row.original)}))),...
|
|
16062
|
+
onCheckedChange:e=>{t.toggleSelected(!0===e),k?.(t.original,!0===e)}})
|
|
16063
|
+
}],...a.map((e=>q.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
16064
|
+
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
16061
16065
|
header:()=>e.createElement("div",null),cell:({row:t})=>e.createElement(Ol,{
|
|
16062
|
-
trigger:e.createElement(ed,{fill:
|
|
16063
|
-
options:
|
|
16064
|
-
align:"end"})}]:[]],
|
|
16065
|
-
e[t.id]=!(
|
|
16066
|
-
|
|
16067
|
-
|
|
16066
|
+
trigger:e.createElement(ed,{fill:W.colors.text.primary}),
|
|
16067
|
+
options:_(t.original)||[],onSelect:e=>{T?.(e.id,t.original)},side:"bottom",
|
|
16068
|
+
align:"end"})}]:[]]),[a,L,V,W.colors.text.primary]),Q=e.useMemo((()=>{const e={}
|
|
16069
|
+
;return a.forEach((t=>{e[t.id]=!(N??[]).includes(t.id)})),e
|
|
16070
|
+
}),[a,N]),J=e.useMemo((()=>({pageIndex:C,pageSize:z})),[z,C]),ee=function(e){
|
|
16071
|
+
const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e
|
|
16072
|
+
},[n]=r.useState((()=>({current:XN(t)
|
|
16068
16073
|
}))),[a,o]=r.useState((()=>n.current.initialState))
|
|
16069
16074
|
;return n.current.setOptions((t=>({...t,...e,state:{...a,...e.state},
|
|
16070
16075
|
onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current
|
|
16071
|
-
}({data:
|
|
16076
|
+
}({data:n,columns:X,getRowId:e=>e?.[B]??"id",
|
|
16072
16077
|
getCoreRowModel:e=>sN((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
|
|
16073
16078
|
rowsById:{}},r=function(t,a,o){void 0===a&&(a=0);const i=[]
|
|
16074
16079
|
;for(let c=0;c<t.length;c++){
|
|
@@ -16078,70 +16083,69 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
|
|
|
16078
16083
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,a+1,s)))}
|
|
16079
16084
|
return i};return n.rows=r(t),n
|
|
16080
16085
|
}),uN(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
16081
|
-
state:{columnOrder:
|
|
16086
|
+
state:{columnOrder:P,columnVisibility:Q,rowSelection:F,pagination:J},
|
|
16082
16087
|
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
16083
|
-
onPaginationChange:e=>{let t=
|
|
16084
|
-
onColumnVisibilityChange:e=>{let t=
|
|
16085
|
-
;t="function"==typeof e?e(
|
|
16086
|
-
onColumnOrderChange:e=>{let t=
|
|
16087
|
-
onRowSelectionChange:e=>{let t=
|
|
16088
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
16089
|
-
}),{getPageCount:
|
|
16090
|
-
;return console.log("STATE",
|
|
16091
|
-
|
|
16092
|
-
}
|
|
16093
|
-
className:"table-
|
|
16094
|
-
className:"table-header-component"},d??null),e.createElement(dF,{
|
|
16088
|
+
onPaginationChange:e=>{let t=J;t="function"==typeof e?e(J):e,$?.(t.pageIndex)},
|
|
16089
|
+
onColumnVisibilityChange:e=>{let t=Q
|
|
16090
|
+
;t="function"==typeof e?e(Q):e,O?.(Object.keys(t).filter((e=>!t[e])))},
|
|
16091
|
+
onColumnOrderChange:e=>{let t=P??[];t="function"==typeof e?e(P??[]):e,I?.(t)},
|
|
16092
|
+
onRowSelectionChange:e=>{let t=F;t="function"==typeof e?e(F):e,j?.(t)},
|
|
16093
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:Z?-1:w
|
|
16094
|
+
}),{getPageCount:te,getRowModel:ne,getState:re,getCanNextPage:ae,getCanPreviousPage:oe,getPageOptions:ie,previousPage:le,setPageIndex:ce,nextPage:se,lastPage:ue,firstPage:de}=ee,{rows:he}=ne(),{pagination:{pageIndex:pe,pageSize:fe}}=re(),me=pe*fe+(pe<te()-1?fe:he.length),ve=ee.getAllColumns().filter((e=>e.getIsVisible())).length+(L?0:1)+(_?1:0)
|
|
16095
|
+
;return console.log("STATE",re()),e.createElement(eF,{className:"TableContainer"
|
|
16096
|
+
},!b&&e.createElement(iF,{className:"table-actions"
|
|
16097
|
+
},d&&e.createElement(e.Fragment,null,d),e.createElement(sF,{
|
|
16098
|
+
className:"table-header-component"},h??null),e.createElement(uF,{
|
|
16095
16099
|
className:"pagination-actions"
|
|
16096
|
-
},!
|
|
16097
|
-
className:"pagination-text"},
|
|
16098
|
-
}):e.createElement(e.Fragment,null,
|
|
16100
|
+
},!m&&e.createElement(e.Fragment,null,e.createElement(Jn,{variant:"secondary",
|
|
16101
|
+
className:"pagination-text"},l&&!y?e.createElement(Gf,{size:"small"
|
|
16102
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${pe*fe+1} - ${me} of ${Z?""+(he.length>0?"Many":"-"):w??he.length??"-"}`:null)),e.createElement(nr,{
|
|
16099
16103
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
16100
|
-
|
|
16101
|
-
fill:
|
|
16102
|
-
className:"table-pagination-button",onClick:()=>{
|
|
16103
|
-
disabled:
|
|
16104
|
-
}))),!
|
|
16105
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
16106
|
-
},e.createElement(tF,{style:{transform:
|
|
16107
|
-
fill:
|
|
16108
|
-
})))),e.createElement(aF,null,e.createElement(oF,null,
|
|
16109
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(
|
|
16110
|
-
fill:
|
|
16111
|
-
})),e.createElement(
|
|
16112
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
16113
|
-
},t.isPlaceholder?null:JN(t.column.columnDef.header,t.getContext())))))))),e.createElement(
|
|
16114
|
-
key:t.id,isSelected:t.getIsSelected()
|
|
16115
|
-
},t.getVisibleCells().map((n=>e.createElement(
|
|
16116
|
-
|
|
16117
|
-
},JN(n.column.columnDef.cell,n.getContext())))))))),
|
|
16118
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
16119
|
-
},t.isPlaceholder?null:JN(t.column.columnDef.footer,t.getContext())))))))),!
|
|
16120
|
-
colSpan:ve},e.createElement(
|
|
16104
|
+
H?.(),Z||le()},disabled:Z?!M:!oe()||l||c},e.createElement(nF,{
|
|
16105
|
+
fill:W.colors.text.primary})),e.createElement(nr,{variant:"secondary",
|
|
16106
|
+
className:"table-pagination-button",onClick:()=>{D?.(),Z||se()},
|
|
16107
|
+
disabled:Z?!x:!ae()||l||c},e.createElement(rF,{fill:W.colors.text.primary
|
|
16108
|
+
}))),!v&&e.createElement(nr,{variant:"secondary",
|
|
16109
|
+
className:"table-pagination-button filter-toggle",onClick:()=>K(!G)
|
|
16110
|
+
},e.createElement(tF,{style:{transform:G?"rotateY(180deg)":"rotateY(0deg)"},
|
|
16111
|
+
fill:W.colors.text.primary
|
|
16112
|
+
})))),e.createElement(aF,null,e.createElement(oF,null,i&&e.createElement(cF,null,i),l&&!g?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===he.length&&f?e.createElement(e.Fragment,null,s):e.createElement(dF,null,e.createElement(hF,null,!E&&e.createElement(dP,{
|
|
16113
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(DF,{
|
|
16114
|
+
fill:W.colors.text.primary})},e.createElement(AF,{table:ee
|
|
16115
|
+
})),e.createElement(pF,null,ee.getHeaderGroups().map((t=>e.createElement(vF,{
|
|
16116
|
+
key:t.id},t.headers.map((t=>e.createElement(yF,{key:t.id
|
|
16117
|
+
},t.isPlaceholder?null:JN(t.column.columnDef.header,t.getContext())))))))),e.createElement(fF,null,c&&!l&&e.createElement(gF,null,e.createElement(Gf,null)),he.map((t=>e.createElement(vF,{
|
|
16118
|
+
key:t.id,isSelected:t.getIsSelected(),...Y?.(t.original)
|
|
16119
|
+
},t.getVisibleCells().map((n=>e.createElement(bF,{key:n.id,onClick:()=>{
|
|
16120
|
+
R?.(t.original,n.column.columnDef)},...U?.(n)
|
|
16121
|
+
},JN(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement(mF,null,ee.getFooterGroups().map((t=>e.createElement(vF,{
|
|
16122
|
+
key:t.id},t.headers.map((t=>e.createElement(yF,{key:t.id
|
|
16123
|
+
},t.isPlaceholder?null:JN(t.column.columnDef.footer,t.getContext())))))))),!S&&e.createElement(mF,null,e.createElement(vF,null,e.createElement(yF,{
|
|
16124
|
+
colSpan:ve},e.createElement(HF,{className:"table-pagination"
|
|
16121
16125
|
},e.createElement(nr,{variant:"secondary",onClick:()=>{de()},
|
|
16122
|
-
disabled:!oe()||
|
|
16123
|
-
onClick:()=>{le()},disabled:!oe()||
|
|
16126
|
+
disabled:!oe()||l||c},"<<"),e.createElement(nr,{variant:"secondary",
|
|
16127
|
+
onClick:()=>{le()},disabled:!oe()||l||c
|
|
16124
16128
|
},"<"),pe+1>2&&e.createElement(e.Fragment,null,e.createElement(nr,{
|
|
16125
|
-
variant:"secondary",onClick:()=>{de()},disabled:
|
|
16129
|
+
variant:"secondary",onClick:()=>{de()},disabled:l||c
|
|
16126
16130
|
},"1"),pe+1-3!=0&&e.createElement(nr,{variant:"secondary",disabled:!0
|
|
16127
16131
|
},"...")),ie().map((t=>[t-2,t-1,t,t+1,t+2].includes(pe+1)&&e.createElement(nr,{
|
|
16128
16132
|
key:t,variant:"secondary",className:pe+1===t+1?"active":"",onClick:()=>{ce?.(t)
|
|
16129
|
-
},disabled:
|
|
16130
|
-
},t+1))),pe+2<Math.ceil(
|
|
16133
|
+
},disabled:l||c
|
|
16134
|
+
},t+1))),pe+2<Math.ceil(n.length/fe)-2&&e.createElement(e.Fragment,null,pe+2+3!==Math.ceil(n.length/fe)&&e.createElement(nr,{
|
|
16131
16135
|
variant:"secondary",disabled:!0},"..."),e.createElement(nr,{variant:"secondary",
|
|
16132
|
-
onClick:()=>{ce?.(Math.ceil(
|
|
16133
|
-
},Math.ceil(
|
|
16134
|
-
se()},disabled:!ae()||
|
|
16135
|
-
onClick:()=>{ue()},disabled:!ae()||
|
|
16136
|
-
},">>"))))))))),!
|
|
16137
|
-
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,renderTabsContent:i,value:l})=>e.createElement(
|
|
16136
|
+
onClick:()=>{ce?.(Math.ceil(n.length/fe)-1)},disabled:l||c
|
|
16137
|
+
},Math.ceil(n.length/fe))),e.createElement(nr,{variant:"secondary",onClick:()=>{
|
|
16138
|
+
se()},disabled:!ae()||l||c},">"),e.createElement(nr,{variant:"secondary",
|
|
16139
|
+
onClick:()=>{ue()},disabled:!ae()||l||c
|
|
16140
|
+
},">>"))))))))),!v&&G&&p&&e.createElement(lF,null,p)))
|
|
16141
|
+
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",onChange:a,defaultValue:o,renderTabsContent:i,value:l})=>e.createElement(YF,{
|
|
16138
16142
|
className:"TabsRoot",value:l,defaultValue:o,onValueChange:a
|
|
16139
|
-
},e.createElement(
|
|
16140
|
-
},t.map((t=>e.createElement(
|
|
16141
|
-
},t?.[r])))),t.map((t=>e.createElement(
|
|
16143
|
+
},e.createElement(GF,{className:"TabsList","aria-label":"Manage your account"
|
|
16144
|
+
},t.map((t=>e.createElement(KF,{className:"TabsTrigger",value:t?.[n]
|
|
16145
|
+
},t?.[r])))),t.map((t=>e.createElement(WF,{className:"TabsContent",value:t?.[n]
|
|
16142
16146
|
},i?i(t):null)))),
|
|
16143
|
-
exports.TabsContent=
|
|
16144
|
-
exports.TabsTrigger=
|
|
16147
|
+
exports.TabsContent=WF,exports.TabsList=GF,exports.TabsRoot=YF,
|
|
16148
|
+
exports.TabsTrigger=KF,
|
|
16145
16149
|
exports.Tag=bm,exports.TextArea=({label:t,inline:n,startLabel:r,startAdornment:a,endLabel:o,endAdornment:i,isRequired:l,isErrored:c,showCount:s,inputStyle:u,style:d,errorText:h,ref:p,maxLength:f,...m})=>e.createElement(Ff,{
|
|
16146
16150
|
inline:n,isErrored:c,disabled:m.disabled,style:d},e.createElement(wn,{
|
|
16147
16151
|
htmlFor:m.id,className:"input-label"
|
|
@@ -16155,7 +16159,7 @@ className:"input-basic"},a&&e.createElement("div",{className:"start-adornment"
|
|
|
16155
16159
|
className:"end-adornment"},i)),o&&e.createElement("div",{className:"end-label"
|
|
16156
16160
|
},o)),c&&h&&e.createElement(Mn,{className:"input-helper"
|
|
16157
16161
|
},h)),exports.ThemeProvider=t=>e.createElement(Zt,{theme:t.theme
|
|
16158
|
-
},e.createElement(
|
|
16162
|
+
},e.createElement(Yj,null,t.children)),
|
|
16159
16163
|
exports.TickIcon=_c,exports.TimePicker=t=>{
|
|
16160
16164
|
const{isRequired:n,label:r,isErrored:a,errorText:o,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u,onChange:d}=t,[h,p]=e.useState("")
|
|
16161
16165
|
;return e.useEffect((()=>{p(u??"")}),[u]),e.useEffect((()=>{d?.(h)
|
|
@@ -16192,25 +16196,25 @@ itemIdentifier:"id",items:IR,onChange:e=>{
|
|
|
16192
16196
|
const t=Mm(new Date(h)).hour(Mm(h).hour()+("AM"===e?.id?-12:12))
|
|
16193
16197
|
;p(t.toISOString())}})),a&&o&&e.createElement(Mn,{className:"input-helper"},o))
|
|
16194
16198
|
},
|
|
16195
|
-
exports.ToastProvider=
|
|
16196
|
-
const s=qt();return e.createElement(
|
|
16197
|
-
required:o,"aria-required":o,size:i,...c},e.createElement(
|
|
16199
|
+
exports.ToastProvider=Yj,exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:a,isRequired:o,size:i="md",thumbProps:l,...c})=>{
|
|
16200
|
+
const s=qt();return e.createElement(nB,{checked:r,onCheckedChange:e=>{t?.(e)},
|
|
16201
|
+
required:o,"aria-required":o,size:i,...c},e.createElement(rB,{...l,size:i
|
|
16198
16202
|
},n&&e.createElement(_c,{fill:s.colors.common.accent,className:"toggle-on",
|
|
16199
|
-
...
|
|
16200
|
-
className:"toggle-off",...
|
|
16203
|
+
...aB[i]}),n&&e.createElement(Zn,{fill:s.colors.text.primary,
|
|
16204
|
+
className:"toggle-off",...oB[i]})))
|
|
16201
16205
|
},exports.Tooltip=({position:t="bottom",label:n,html:r,style:a={},children:o,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
16202
|
-
const[h="bottom",p="center"]=t.split("-");return e.createElement(
|
|
16203
|
-
delayDuration:c,...u},e.createElement(
|
|
16204
|
-
},e.createElement(
|
|
16206
|
+
const[h="bottom",p="center"]=t.split("-");return e.createElement(TB,{
|
|
16207
|
+
delayDuration:c,...u},e.createElement(RB,{...d,open:!l&&void 0
|
|
16208
|
+
},e.createElement(PB,{className:"TooltipTrigger",asChild:!0
|
|
16205
16209
|
},e.createElement(Vn,{className:i
|
|
16206
|
-
},o)),e.createElement(
|
|
16210
|
+
},o)),e.createElement(IB,null,e.createElement(kB,{forceMount:!0,
|
|
16207
16211
|
className:"TooltipContent",style:a,sideOffset:5,"aria-disabled":l,side:h,align:p
|
|
16208
|
-
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(
|
|
16212
|
+
},n?e.createElement(e.Fragment,null,n):e.createElement(e.Fragment,null,r),s&&e.createElement(AB,null)))))
|
|
16209
16213
|
},
|
|
16210
|
-
exports.Transition=
|
|
16214
|
+
exports.Transition=OB,exports.TriggerButtonWrapper=Vn,exports.Typography=Jn,exports.Warning=Xn,
|
|
16211
16215
|
exports.basicHide=kn,
|
|
16212
16216
|
exports.basicShow=Rn,exports.contentHide=In,exports.contentShow=Nn,
|
|
16213
16217
|
exports.slideDownAndFade=Yn,
|
|
16214
16218
|
exports.slideLeftAndFade=Gn,exports.slideRightAndFade=Un,
|
|
16215
16219
|
exports.slideUpAndFade=jn,exports.useToasts=()=>{
|
|
16216
|
-
const{toasts:t,addToast:n}=e.useContext(
|
|
16220
|
+
const{toasts:t,addToast:n}=e.useContext(qF)??{};return[t,n]};
|