freemium-ui 2.0.133 → 2.0.134
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/.github/actionlint.yaml +6 -0
- package/.github/pr_validation_guide.md +305 -0
- package/.github/pull_request_template.md +189 -0
- package/.github/workflows/pr-quality.yml +114 -0
- package/.github/workflows/pr-template-validation.yml +367 -0
- package/.github/workflows/sonarqube-main.yml +106 -0
- package/.nvmrc +1 -0
- package/README.md +9 -0
- package/catalog-info.yaml +33 -0
- package/docs/adrs/index.md +11 -0
- package/docs/architecture/code-structure.md +109 -0
- package/docs/architecture/deep-dive.md +193 -0
- package/docs/getting-started.md +103 -0
- package/docs/index.md +35 -0
- package/docs/operations/alerts-configuration.md +11 -0
- package/docs/operations/how-to-debug.md +43 -0
- package/docs/operations/monitoring.md +16 -0
- package/docs/operations/recent-issues.md +14 -0
- package/docs/operations/sop.md +25 -0
- package/docs/operations/support.md +15 -0
- package/lib/README.md +9 -0
- package/lib/index.cjs.js +1041 -1021
- package/lib/index.d.ts +2 -0
- package/lib/index.js +315 -294
- package/lib/package.json +1 -1
- package/mkdocs.yml +38 -0
- package/package.json +3 -1
- package/sonar-project.properties +25 -0
- package/tech-docs/docs/architecture/components.md +49 -0
- package/tech-docs/docs/architecture/index.md +54 -0
- package/tech-docs/docs/development/build-publish.md +42 -0
- package/tech-docs/docs/development/storybook.md +37 -0
- package/tech-docs/docs/getting-started.md +67 -0
- package/tech-docs/docs/index.md +47 -0
- package/tech-docs/docs/repositories/index.md +22 -0
- package/tech-docs/mkdocs.yml +28 -0
package/lib/index.js
CHANGED
|
@@ -7803,9 +7803,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
|
|
|
7803
7803
|
function jM(e){return je(this,void 0,void 0,(function(){var t,n
|
|
7804
7804
|
;return Ue(this,(function(r){switch(r.label){case 0:
|
|
7805
7805
|
return t=e.loader,"function"!=typeof(n=void 0===t?YM.defaultLoader:t)?[3,1]:[2,n]
|
|
7806
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
7806
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return sq
|
|
7807
7807
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
7808
|
-
return[4,Promise.resolve().then((function(){return
|
|
7808
|
+
return[4,Promise.resolve().then((function(){return uq}))];case 4:
|
|
7809
7809
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var UM=function(){function e(){
|
|
7810
7810
|
this.defaultLoader="split-by-size",
|
|
7811
7811
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -16907,7 +16907,14 @@ fill:e.fill}))))`
|
|
|
16907
16907
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16908
16908
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16909
16909
|
animation-name: ${uo};
|
|
16910
|
-
`,iW=Wr.div``,lW=Wr.div``,cW=Wr.div
|
|
16910
|
+
`,iW=Wr.div``,lW=Wr.div``,cW=Wr.div`
|
|
16911
|
+
display: flex;
|
|
16912
|
+
flex-wrap: wrap;
|
|
16913
|
+
min-width: 0;
|
|
16914
|
+
justify-content: space-between;
|
|
16915
|
+
gap: 16px;
|
|
16916
|
+
align-items: center;
|
|
16917
|
+
`,sW=Wr.div``,uW=Wr.div`
|
|
16911
16918
|
display: flex;
|
|
16912
16919
|
align-items: center;
|
|
16913
16920
|
gap: 10px;
|
|
@@ -16933,11 +16940,17 @@ fill:e.fill}))))`
|
|
|
16933
16940
|
font-size: 14px;
|
|
16934
16941
|
font-weight: 400;
|
|
16935
16942
|
}
|
|
16936
|
-
`,
|
|
16943
|
+
`,dW=Wr.div`
|
|
16937
16944
|
display: flex;
|
|
16938
16945
|
gap: 8px;
|
|
16939
16946
|
align-items: center;
|
|
16940
16947
|
direction: ${({theme:e})=>e.direction};
|
|
16948
|
+
.pagination-text--workspace {
|
|
16949
|
+
min-width: 110px;
|
|
16950
|
+
display: inline-flex;
|
|
16951
|
+
justify-content: flex-end;
|
|
16952
|
+
align-items: center;
|
|
16953
|
+
}
|
|
16941
16954
|
button.table-pagination-button {
|
|
16942
16955
|
width: 32px;
|
|
16943
16956
|
height: 32px;
|
|
@@ -16945,10 +16958,10 @@ fill:e.fill}))))`
|
|
|
16945
16958
|
place-content: center;
|
|
16946
16959
|
padding: 0;
|
|
16947
16960
|
}
|
|
16948
|
-
`,
|
|
16961
|
+
`,hW=Wr.div`
|
|
16949
16962
|
overflow: auto;
|
|
16950
16963
|
flex: 1;
|
|
16951
|
-
`,
|
|
16964
|
+
`,pW=Wr.table`
|
|
16952
16965
|
border-spacing: 0px;
|
|
16953
16966
|
border-collapse: collapse;
|
|
16954
16967
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -16957,9 +16970,9 @@ fill:e.fill}))))`
|
|
|
16957
16970
|
margin: 0;
|
|
16958
16971
|
direction: ${({theme:e})=>e.direction};
|
|
16959
16972
|
position: relative;
|
|
16960
|
-
`,
|
|
16973
|
+
`,fW=Wr.thead``,mW=Wr.tbody`
|
|
16961
16974
|
position: relative;
|
|
16962
|
-
`,
|
|
16975
|
+
`,vW=Wr.tfoot``,gW=Wr.tr`
|
|
16963
16976
|
&:hover {
|
|
16964
16977
|
transition: 0.2s ease;
|
|
16965
16978
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -16975,7 +16988,7 @@ fill:e.fill}))))`
|
|
|
16975
16988
|
border-bottom-width: 3px;
|
|
16976
16989
|
}
|
|
16977
16990
|
`}
|
|
16978
|
-
`,
|
|
16991
|
+
`,yW=Wr.div`
|
|
16979
16992
|
position: absolute;
|
|
16980
16993
|
width: 100%;
|
|
16981
16994
|
height: 100%;
|
|
@@ -16985,7 +16998,7 @@ fill:e.fill}))))`
|
|
|
16985
16998
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16986
16999
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16987
17000
|
animation-name: ${eo};
|
|
16988
|
-
`,
|
|
17001
|
+
`,bW=Wr.th`
|
|
16989
17002
|
padding: 16px;
|
|
16990
17003
|
font-size: 12px;
|
|
16991
17004
|
line-height: 16px;
|
|
@@ -17032,7 +17045,7 @@ fill:e.fill}))))`
|
|
|
17032
17045
|
border-right: 3px solid ${({theme:e})=>e.colors.border.light};
|
|
17033
17046
|
}
|
|
17034
17047
|
`}
|
|
17035
|
-
`,
|
|
17048
|
+
`,wW=Wr.td`
|
|
17036
17049
|
padding: 12px;
|
|
17037
17050
|
margin: 0;
|
|
17038
17051
|
font-size: 14px;
|
|
@@ -17058,19 +17071,19 @@ fill:e.fill}))))`
|
|
|
17058
17071
|
border-right: 3px solid ${e.colors.border.light};
|
|
17059
17072
|
}
|
|
17060
17073
|
`}
|
|
17061
|
-
`,wW=Wr.div`
|
|
17062
|
-
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17063
17074
|
`,CW=Wr.div`
|
|
17075
|
+
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17076
|
+
`,zW=Wr.div`
|
|
17064
17077
|
padding: 24px;
|
|
17065
17078
|
display: flex;
|
|
17066
17079
|
justify-content: space-between;
|
|
17067
17080
|
align-items: center;
|
|
17068
|
-
`,
|
|
17081
|
+
`,MW=Wr.div`
|
|
17069
17082
|
padding: 0 24px;
|
|
17070
17083
|
display: flex;
|
|
17071
17084
|
gap: 16px;
|
|
17072
17085
|
height: 256px;
|
|
17073
|
-
`,
|
|
17086
|
+
`,xW=Wr.div`
|
|
17074
17087
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
17075
17088
|
border-radius: 4px 4px 0px 0px;
|
|
17076
17089
|
padding: 8px 8px 0 8px;
|
|
@@ -17084,11 +17097,11 @@ fill:e.fill}))))`
|
|
|
17084
17097
|
margin-bottom: 8px;
|
|
17085
17098
|
}
|
|
17086
17099
|
}
|
|
17087
|
-
`,
|
|
17100
|
+
`,EW=Wr.div`
|
|
17088
17101
|
display: flex;
|
|
17089
17102
|
gap: 8px;
|
|
17090
17103
|
flex-direction: column;
|
|
17091
|
-
`,
|
|
17104
|
+
`,SW=Wr.div`
|
|
17092
17105
|
display: flex;
|
|
17093
17106
|
gap: 12px;
|
|
17094
17107
|
flex-direction: column;
|
|
@@ -17102,13 +17115,13 @@ fill:e.fill}))))`
|
|
|
17102
17115
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
17103
17116
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
17104
17117
|
}
|
|
17105
|
-
`,
|
|
17118
|
+
`,_W=Wr.div`
|
|
17106
17119
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
17107
17120
|
display: flex;
|
|
17108
17121
|
padding: 16px;
|
|
17109
17122
|
gap: 8px;
|
|
17110
17123
|
justify-content: flex-end;
|
|
17111
|
-
`,
|
|
17124
|
+
`,HW=Wr.div`
|
|
17112
17125
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17113
17126
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
17114
17127
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -17122,7 +17135,7 @@ fill:e.fill}))))`
|
|
|
17122
17135
|
display: flex;
|
|
17123
17136
|
justify-content: space-between;
|
|
17124
17137
|
gap: 8px;
|
|
17125
|
-
`,
|
|
17138
|
+
`,DW=Wr.div`
|
|
17126
17139
|
display: flex;
|
|
17127
17140
|
align-items: center;
|
|
17128
17141
|
width: fit-content;
|
|
@@ -17181,17 +17194,17 @@ fill:e.fill}))))`
|
|
|
17181
17194
|
color: ${e.colors.text.link};
|
|
17182
17195
|
`}
|
|
17183
17196
|
}
|
|
17184
|
-
`,
|
|
17197
|
+
`,AW=t.forwardRef(((e,n)=>t.createElement("svg",{width:"16",height:"16",
|
|
17185
17198
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"
|
|
17186
17199
|
},t.createElement("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"
|
|
17187
17200
|
}),t.createElement("path",{
|
|
17188
17201
|
d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",
|
|
17189
|
-
fill:"currentcolor"})))),
|
|
17202
|
+
fill:"currentcolor"})))),LW=t.forwardRef(((e,n)=>t.createElement("svg",{
|
|
17190
17203
|
width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",
|
|
17191
17204
|
xmlns:"http://www.w3.org/2000/svg",...e,ref:n},t.createElement("path",{
|
|
17192
17205
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17193
17206
|
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",
|
|
17194
|
-
fill:e.fill})))),
|
|
17207
|
+
fill:e.fill})))),kW=t.forwardRef(((e,n)=>{const r=Ir()
|
|
17195
17208
|
;return t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
17196
17209
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:n
|
|
17197
17210
|
},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -17200,36 +17213,36 @@ fill:r.colors.text.primary}),t.createElement("mask",{id:"mask0_3930_5537",
|
|
|
17200
17213
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
17201
17214
|
height:"16"},t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
17202
17215
|
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"
|
|
17203
|
-
})))})),
|
|
17216
|
+
})))})),VW=["rowMenuOptions","select"],TW=({table:e})=>{
|
|
17204
17217
|
const n=Ir(),[r,o]=t.useState({}),[a,i]=t.useState([]),l=e.getAllColumns(),c=e.getState(),s=t.useCallback((()=>{
|
|
17205
17218
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
17206
17219
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
17207
17220
|
}),[c.columnOrder,l,i]);return t.useEffect((()=>{o(c.columnVisibility),s()
|
|
17208
17221
|
}),[c.columnVisibility,s]),
|
|
17209
|
-
t.createElement(
|
|
17222
|
+
t.createElement(CW,null,t.createElement(zW,null,t.createElement(_a,{
|
|
17210
17223
|
weight:"semi-bold"},"Customize columns"),t.createElement(kv,{variant:"link",
|
|
17211
17224
|
onClick:()=>{const t={};e.getAllColumns().forEach((e=>{t[e.id]=e.getIsVisible()
|
|
17212
17225
|
})),o(t),s()}
|
|
17213
|
-
},"Reset")),t.createElement(
|
|
17214
|
-
startAdornment:t.createElement(
|
|
17226
|
+
},"Reset")),t.createElement(MW,null,t.createElement(EW,null,t.createElement(gv,{
|
|
17227
|
+
startAdornment:t.createElement(kW,{viewBox:"0 0 18px 18px"}),
|
|
17215
17228
|
placeholder:"Search columns"}),t.createElement(_a,{weight:"semi-bold"
|
|
17216
|
-
},"Choose columns"),t.createElement(
|
|
17229
|
+
},"Choose columns"),t.createElement(SW,null,e.getAllColumns().filter((e=>!VW.includes(e.id))).map((n=>t.createElement(ib,{
|
|
17217
17230
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
17218
17231
|
onCheckedChange:t=>{const r=e.getAllColumns().find((e=>e.id===n.id));o((e=>({
|
|
17219
17232
|
...e,[n.id]:!0===t
|
|
17220
17233
|
}))),i((e=>!0===t?[...e,...r?[r]:[]]:e.filter((e=>e.id!==n.id))))}
|
|
17221
|
-
}))))),t.createElement(
|
|
17234
|
+
}))))),t.createElement(xW,null,t.createElement(_a,{weight:"semi-bold"
|
|
17222
17235
|
},`Selected columns (${a.length})`),t.createElement(XU,{
|
|
17223
17236
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
17224
|
-
customFilter:e=>!
|
|
17237
|
+
customFilter:e=>!VW.includes(e.id??""),customRender:e=>t.createElement(HW,{
|
|
17225
17238
|
key:e.id
|
|
17226
17239
|
},t.createElement("div",null,e?.columnDef?.header?.toString()??""),t.createElement(ha,{
|
|
17227
17240
|
onClick:()=>{o((t=>({...t,[e.id]:!1}))),i((t=>t.filter((t=>t.id!==e.id))))}
|
|
17228
17241
|
},t.createElement(Vo,{fill:n.colors.text.primary}))),items:a
|
|
17229
|
-
}))),t.createElement(
|
|
17242
|
+
}))),t.createElement(_W,null,t.createElement(tB,{asChild:!0
|
|
17230
17243
|
},t.createElement(kv,{variant:"secondary"},"Cancel")),t.createElement(kv,{
|
|
17231
17244
|
onClick:()=>{e.setColumnOrder(a.map((e=>e.id))),e.setColumnVisibility(r)}
|
|
17232
|
-
},"Update")))},
|
|
17245
|
+
},"Update")))},PW=e=>{
|
|
17233
17246
|
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=e,s=Ir(),u=h(null),d={
|
|
17234
17247
|
container:hy(u)};return t.createElement(Qg,null,t.createElement(ey,{asChild:!0,
|
|
17235
17248
|
disabled:i},t.createElement(ba,{ref:u},n)),t.createElement(ty,{...d
|
|
@@ -17238,7 +17251,7 @@ className:"DropdownMenuContent"},l.map(((e,n)=>t.createElement(t.Fragment,{key:n
|
|
|
17238
17251
|
},e.map((e=>t.createElement(iy,{id:e?.[r],disabled:e?.disabled,
|
|
17239
17252
|
className:"DropdownMenuItem",key:e?.[r],onSelect:()=>{const t=c??[];t[n]=e?.[r],
|
|
17240
17253
|
a?.(t)}},e?.[o],c?.[n]===e?.[r]&&t.createElement($o,{fill:s.colors.common.accent
|
|
17241
|
-
})))),t.createElement(ry,{className:"DropdownMenuSeparator"})))))))},
|
|
17254
|
+
})))),t.createElement(ry,{className:"DropdownMenuSeparator"})))))))},IW=e=>{
|
|
17242
17255
|
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,actionComponent:u,headerComponent:d,editColumnComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,isFilterOpenByDefault:g=!0,sortingHeading:y,showTableOnLoading:b,hideLoaderOnTopPagination:w,hideActions:C,count:z,pageIndex:M=0,pageSize:x=20,hidePageNavigation:E,enablePreviousPage:S,enableNextPage:_,hideColumnSettings:H=!0,hideBottomPagination:D,isDisableActionMenu:A=!1,rowMenuOptions:L,onPreviousPageClick:k,enableSorting:V,sortingValues:T,sortingOptions:P,onSortingOptionSelect:I,onNextPageClick:R,disableRowSelect:O,hideSelectAllInTable:N,onSelectAllRows:$,onRowSelect:F,onMenuOptionSelect:B,onRowClick:j,columnOrder:U,setColumnOrder:Y,setHiddenColumns:W,hiddenColumns:G,selectedRowIds:K={},isDisableSortDropdown:q,setSelectedRowIds:Z,dataKey:X="id",cellPropGetter:J,setPageIndex:Q,rowPropGetter:ee,translationTexts:te}=e,ne=Ir(),[re,oe]=t.useState(!!g),ae={
|
|
17243
17256
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17244
17257
|
display:e=>e,group:e=>e},ie=-1===z||void 0===z,le=t.useMemo((()=>[...O?[]:[{
|
|
@@ -17274,15 +17287,15 @@ enableRowSelection:!0,manualPagination:!0,rowCount:ie?-1:z
|
|
|
17274
17287
|
;return t.createElement(JY,{className:"TableContainer"},!C&&t.createElement(oW,{
|
|
17275
17288
|
className:"table-actions"
|
|
17276
17289
|
},u&&t.createElement(t.Fragment,null,u),t.createElement(lW,{
|
|
17277
|
-
className:"table-header-component"},d??null),t.createElement(
|
|
17290
|
+
className:"table-header-component"},d??null),t.createElement(uW,{
|
|
17278
17291
|
className:"table-header-dropdown-pagination"},V&&t.createElement("div",{
|
|
17279
17292
|
className:"table-heading-dropdown"},t.createElement("div",{
|
|
17280
|
-
className:"table-sorting-heading"},`${y}:`)," ",t.createElement(
|
|
17293
|
+
className:"table-sorting-heading"},`${y}:`)," ",t.createElement(PW,{
|
|
17281
17294
|
trigger:t.createElement("div",{className:"table-sorting-value-continer"
|
|
17282
|
-
},t.createElement("div",null,_e),t.createElement(
|
|
17295
|
+
},t.createElement("div",null,_e),t.createElement(AW,{fill:"currentcolor"})),
|
|
17283
17296
|
isDisableSortDropdown:!!q,options:P||[],value:T,onSelect:e=>{I?.(e??[])}
|
|
17284
|
-
})),t.createElement(
|
|
17285
|
-
},h??null),t.createElement(
|
|
17297
|
+
})),t.createElement(sW,{className:"table-edit-column-component"
|
|
17298
|
+
},h??null),t.createElement(dW,{className:"pagination-actions"
|
|
17286
17299
|
},!m&&t.createElement(t.Fragment,null,t.createElement(_a,{variant:"primary",
|
|
17287
17300
|
className:"pagination-text"},i&&!w?t.createElement(Sv,{size:"small"
|
|
17288
17301
|
}):t.createElement(t.Fragment,null,n.length>0?`${Me*xe+1} - ${Ee} ${te?.of||"of"} ${ie?""+(ze.length>0?`${te?.many||"Many"}`:"-"):z??ze.length??"-"}`:null)),!E&&t.createElement(t.Fragment,null,t.createElement(kv,{
|
|
@@ -17296,22 +17309,22 @@ variant:"secondary",className:"table-pagination-button filter-toggle",
|
|
|
17296
17309
|
onClick:e=>{e?.preventDefault(),oe(!re)}},t.createElement(QY,{style:{
|
|
17297
17310
|
transform:re?"rotateY(180deg)":"rotateY(0deg)"},fill:"currentcolor"
|
|
17298
17311
|
}))))),t.createElement(nW,null,t.createElement(rW,{className:"table-wrapper"
|
|
17299
|
-
},a&&t.createElement(iW,null,a),i&&!b?t.createElement(t.Fragment,null,s):t.createElement(t.Fragment,null,0===ze.length&&f?t.createElement(t.Fragment,null,c):t.createElement(
|
|
17300
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(
|
|
17301
|
-
fill:"currentcolor"})},t.createElement(
|
|
17302
|
-
})),t.createElement(
|
|
17303
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
17312
|
+
},a&&t.createElement(iW,null,a),i&&!b?t.createElement(t.Fragment,null,s):t.createElement(t.Fragment,null,0===ze.length&&f?t.createElement(t.Fragment,null,c):t.createElement(hW,null,t.createElement(pW,null,!H&&t.createElement(nB,{
|
|
17313
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(LW,{
|
|
17314
|
+
fill:"currentcolor"})},t.createElement(TW,{table:ue
|
|
17315
|
+
})),t.createElement(fW,null,ue.getHeaderGroups().map((e=>t.createElement(gW,{
|
|
17316
|
+
key:e.id},e.headers.map((e=>t.createElement(bW,{key:e.id,
|
|
17304
17317
|
className:"table-head-data"
|
|
17305
|
-
},e.isPlaceholder?null:ZY(e.column.columnDef.header,e.getContext())))))))),t.createElement(
|
|
17318
|
+
},e.isPlaceholder?null:ZY(e.column.columnDef.header,e.getContext())))))))),t.createElement(mW,null,l&&!i&&t.createElement(yW,null,t.createElement(Sv,null)),ze.map((e=>t.createElement(gW,{
|
|
17306
17319
|
key:e.id,$isSelected:e.getIsSelected(),...ee?.(e.original)
|
|
17307
|
-
},e.getVisibleCells().map((n=>t.createElement(
|
|
17320
|
+
},e.getVisibleCells().map((n=>t.createElement(wW,{key:n.id,onClick:()=>{
|
|
17308
17321
|
j?.(e.original,n.column.columnDef)},...J?.(n)
|
|
17309
|
-
},ZY(n.column.columnDef.cell,n.getContext())))))))),o&&t.createElement(
|
|
17310
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
17322
|
+
},ZY(n.column.columnDef.cell,n.getContext())))))))),o&&t.createElement(vW,null,ue.getFooterGroups().map((e=>t.createElement(gW,{
|
|
17323
|
+
key:e.id},e.headers.map((e=>t.createElement(bW,{key:e.id,
|
|
17311
17324
|
className:"table-head-data"
|
|
17312
|
-
},e.isPlaceholder?null:ZY(e.column.columnDef.footer,e.getContext())))))))),!D&&t.createElement(
|
|
17325
|
+
},e.isPlaceholder?null:ZY(e.column.columnDef.footer,e.getContext())))))))),!D&&t.createElement(vW,null,t.createElement(gW,null,t.createElement(bW,{
|
|
17313
17326
|
colSpan:Se,className:"table-head-data table-pagination-head-data"
|
|
17314
|
-
},t.createElement(
|
|
17327
|
+
},t.createElement(DW,{className:"table-pagination"},t.createElement(kv,{
|
|
17315
17328
|
variant:"secondary",onClick:()=>{Ce()},disabled:!me()||i||l
|
|
17316
17329
|
},"<<"),t.createElement(kv,{variant:"secondary",onClick:()=>{ge()},
|
|
17317
17330
|
disabled:!me()||i||l
|
|
@@ -17329,16 +17342,16 @@ onClick:()=>{ye?.(Math.ceil(n.length/xe)-1)},disabled:i||l
|
|
|
17329
17342
|
be()},disabled:!fe()||i||l},">"),t.createElement(kv,{variant:"secondary",
|
|
17330
17343
|
onClick:()=>{we()},disabled:!fe()||i||l
|
|
17331
17344
|
},">>"))))))))),!v&&re&&p&&t.createElement(aW,null,p)))
|
|
17332
|
-
},
|
|
17345
|
+
},RW="Tabs",[OW,NW]=H(RW,[Fv]),$W=Fv(),[FW,BW]=OW(RW),jW=l(((e,t)=>{
|
|
17333
17346
|
const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=e,d=ue(c),[h,p]=$({
|
|
17334
|
-
prop:r,onChange:a,defaultProp:i});return o(
|
|
17347
|
+
prop:r,onChange:a,defaultProp:i});return o(FW,{scope:n,baseId:K(),value:h,
|
|
17335
17348
|
onValueChange:p,orientation:l,dir:d,activationMode:s},o(F.div,_({dir:d,
|
|
17336
|
-
"data-orientation":l},u,{ref:t})))}));function
|
|
17337
|
-
}function
|
|
17338
|
-
const{__scopeTabs:n,loop:r=!0,...a}=e,i=
|
|
17349
|
+
"data-orientation":l},u,{ref:t})))}));function UW(e,t){return`${e}-trigger-${t}`
|
|
17350
|
+
}function YW(e,t){return`${e}-content-${t}`}const WW=l(((e,t)=>{
|
|
17351
|
+
const{__scopeTabs:n,loop:r=!0,...a}=e,i=BW("TabsList",n),l=$W(n);return o(qv,_({
|
|
17339
17352
|
asChild:!0},l,{orientation:i.orientation,dir:i.dir,loop:r}),o(F.div,_({
|
|
17340
|
-
role:"tablist","aria-orientation":i.orientation},a,{ref:t})))})),
|
|
17341
|
-
const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=
|
|
17353
|
+
role:"tablist","aria-orientation":i.orientation},a,{ref:t})))})),GW=l(((e,t)=>{
|
|
17354
|
+
const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,l=BW("TabsTrigger",n),c=$W(n),s=UW(l.baseId,r),u=YW(l.baseId,r),d=r===l.value
|
|
17342
17355
|
;return o(Zv,_({asChild:!0},c,{focusable:!a,active:d}),o(F.button,_({
|
|
17343
17356
|
type:"button",role:"tab","aria-selected":d,"aria-controls":u,
|
|
17344
17357
|
"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:s
|
|
@@ -17346,21 +17359,21 @@ type:"button",role:"tab","aria-selected":d,"aria-controls":u,
|
|
|
17346
17359
|
a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(r)})),
|
|
17347
17360
|
onKeyDown:O(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(r)
|
|
17348
17361
|
})),onFocus:O(e.onFocus,(()=>{const e="manual"!==l.activationMode
|
|
17349
|
-
;d||a||!e||l.onValueChange(r)}))})))})),
|
|
17350
|
-
const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,c=
|
|
17362
|
+
;d||a||!e||l.onValueChange(r)}))})))})),KW=l(((e,t)=>{
|
|
17363
|
+
const{__scopeTabs:n,value:r,forceMount:a,children:i,...l}=e,c=BW("TabsContent",n),s=UW(c.baseId,r),u=YW(c.baseId,r),d=r===c.value,f=h(d)
|
|
17351
17364
|
;return p((()=>{const e=requestAnimationFrame((()=>f.current=!1))
|
|
17352
17365
|
;return()=>cancelAnimationFrame(e)}),[]),o(U,{present:a||d
|
|
17353
17366
|
},(({present:n})=>o(F.div,_({"data-state":d?"active":"inactive",
|
|
17354
17367
|
"data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!n,
|
|
17355
17368
|
id:u,tabIndex:0},l,{ref:t,style:{...e.style,
|
|
17356
17369
|
animationDuration:f.current?"0s":void 0}}),n&&i)))
|
|
17357
|
-
})),
|
|
17370
|
+
})),qW=Wr(jW)``,ZW=Wr(KW)``,XW=Wr(WW)`
|
|
17358
17371
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
17359
17372
|
display: flex;
|
|
17360
17373
|
flex-wrap: nowrap;
|
|
17361
17374
|
gap: 12px;
|
|
17362
17375
|
direction: ${({theme:e})=>e.direction};
|
|
17363
|
-
`,
|
|
17376
|
+
`,JW=Wr(GW)`
|
|
17364
17377
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17365
17378
|
direction: ${({theme:e})=>e.direction};
|
|
17366
17379
|
background-color: unset;
|
|
@@ -17388,7 +17401,7 @@ animationDuration:f.current?"0s":void 0}}),n&&i)))
|
|
|
17388
17401
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
17389
17402
|
cursor: not-allowed;
|
|
17390
17403
|
}
|
|
17391
|
-
`,
|
|
17404
|
+
`,QW=Wr(JW)`
|
|
17392
17405
|
color: ${({theme:e})=>e.colors.text.secondary};
|
|
17393
17406
|
font-weight: 500;
|
|
17394
17407
|
&:hover {
|
|
@@ -17400,40 +17413,40 @@ animationDuration:f.current?"0s":void 0}}),n&&i)))
|
|
|
17400
17413
|
border-color: ${({theme:e})=>e.colors.text.link};
|
|
17401
17414
|
cursor: pointer !important;
|
|
17402
17415
|
}
|
|
17403
|
-
`,
|
|
17404
|
-
const u=Ir(),d="dew"===u?.name?JW
|
|
17416
|
+
`,eG=({options:e=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
17417
|
+
const u=Ir(),d="dew"===u?.name?QW:JW;return t.createElement(qW,{
|
|
17405
17418
|
className:"TabsRoot",value:s,defaultValue:i,onValueChange:a,dir:u.direction
|
|
17406
|
-
},t.createElement(
|
|
17419
|
+
},t.createElement(XW,{className:"TabsList","aria-label":l
|
|
17407
17420
|
},e.map((e=>t.createElement(d,{className:"TabsTrigger",value:e?.[n],key:e?.[n],
|
|
17408
|
-
disabled:e?.[o]},e?.[r])))),e.map((e=>t.createElement(
|
|
17409
|
-
className:"TabsContent",value:e?.[n],key:e?.[n]},c?c(e):null))))};var
|
|
17421
|
+
disabled:e?.[o]},e?.[r])))),e.map((e=>t.createElement(ZW,{
|
|
17422
|
+
className:"TabsContent",value:e?.[n],key:e?.[n]},c?c(e):null))))};var tG=Kr`
|
|
17410
17423
|
* {
|
|
17411
17424
|
box-sizing: border-box;
|
|
17412
17425
|
/* direction: ${({theme:e})=>e.direction}; */
|
|
17413
17426
|
}
|
|
17414
|
-
`;const
|
|
17427
|
+
`;const nG=()=>{const[e,t]=f(!1);return p((()=>{
|
|
17415
17428
|
t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
17416
|
-
}),[]),{isBrowser:e,isServer:!e}},
|
|
17429
|
+
}),[]),{isBrowser:e,isServer:!e}},rG=e=>{const t=document.createElement("div")
|
|
17417
17430
|
;return t.setAttribute("id",e),t
|
|
17418
|
-
},
|
|
17431
|
+
},oG="ToastProvider",[aG,iG,lG]=R("Toast"),[cG,sG]=H("Toast",[lG]),[uG,dG]=cG(oG),hG=e=>{
|
|
17419
17432
|
const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:c}=e,[s,u]=f(null),[d,p]=f(0),m=h(!1),v=h(!1)
|
|
17420
|
-
;return o(
|
|
17433
|
+
;return o(aG.Provider,{scope:t},o(uG,{scope:t,label:n,duration:r,
|
|
17421
17434
|
swipeDirection:a,swipeThreshold:l,toastCount:d,viewport:s,onViewportChange:u,
|
|
17422
17435
|
onToastAdd:i((()=>p((e=>e+1))),[]),onToastRemove:i((()=>p((e=>e-1))),[]),
|
|
17423
|
-
isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v},c))};
|
|
17436
|
+
isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v},c))};hG.propTypes={
|
|
17424
17437
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
17425
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
17438
|
+
return new Error(`Invalid prop \`label\` supplied to \`${oG}\`. Expected non-empty \`string\`.`)
|
|
17426
17439
|
}return null}}
|
|
17427
|
-
;const
|
|
17428
|
-
const{__scopeToast:n,hotkey:r=
|
|
17440
|
+
;const pG=["F8"],fG="toast.viewportPause",mG="toast.viewportResume",vG=l(((e,t)=>{
|
|
17441
|
+
const{__scopeToast:n,hotkey:r=pG,label:a="Notifications ({hotkey})",...l}=e,c=dG("ToastViewport",n),s=iG(n),u=h(null),d=h(null),f=h(null),m=h(null),v=L(t,m,c.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=c.toastCount>0
|
|
17429
17442
|
;p((()=>{const e=e=>{var t;const n=r.every((t=>e[t]||e.code===t))
|
|
17430
17443
|
;n&&(null===(t=m.current)||void 0===t||t.focus())}
|
|
17431
17444
|
;return document.addEventListener("keydown",e),
|
|
17432
17445
|
()=>document.removeEventListener("keydown",e)}),[r]),p((()=>{
|
|
17433
17446
|
const e=u.current,t=m.current;if(y&&e&&t){const n=()=>{
|
|
17434
|
-
if(!c.isClosePausedRef.current){const e=new CustomEvent(
|
|
17447
|
+
if(!c.isClosePausedRef.current){const e=new CustomEvent(fG)
|
|
17435
17448
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
|
|
17436
|
-
if(c.isClosePausedRef.current){const e=new CustomEvent(
|
|
17449
|
+
if(c.isClosePausedRef.current){const e=new CustomEvent(mG)
|
|
17437
17450
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
|
|
17438
17451
|
!e.contains(t.relatedTarget)&&r()},a=()=>{
|
|
17439
17452
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -17445,7 +17458,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
|
|
|
17445
17458
|
e.removeEventListener("pointerleave",a),
|
|
17446
17459
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
17447
17460
|
}),[y,c.isClosePausedRef]);const b=i((({tabbingDirection:e})=>{
|
|
17448
|
-
const t=s().map((t=>{const n=t.ref.current,r=[n,...
|
|
17461
|
+
const t=s().map((t=>{const n=t.ref.current,r=[n,...LG(n)]
|
|
17449
17462
|
;return"forwards"===e?r:r.reverse()}))
|
|
17450
17463
|
;return("forwards"===e?t.reverse():t).flat()}),[s]);return p((()=>{
|
|
17451
17464
|
const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -17453,21 +17466,21 @@ const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
17453
17466
|
;if(t.target===e&&i)return void(null===(r=d.current)||void 0===r||r.focus())
|
|
17454
17467
|
;const l=b({tabbingDirection:i?"backwards":"forwards"
|
|
17455
17468
|
}),c=l.findIndex((e=>e===n));var o,a
|
|
17456
|
-
;if(
|
|
17469
|
+
;if(kG(l.slice(c+1)))t.preventDefault();else i?null===(o=d.current)||void 0===o||o.focus():null===(a=f.current)||void 0===a||a.focus()
|
|
17457
17470
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
17458
17471
|
}}),[s,b]),o(Ed,{ref:u,role:"region","aria-label":a.replace("{hotkey}",g),
|
|
17459
|
-
tabIndex:-1,style:{pointerEvents:y?void 0:"none"}},y&&o(
|
|
17460
|
-
onFocusFromOutsideViewport:()=>{
|
|
17461
|
-
}),o(
|
|
17462
|
-
onFocusFromOutsideViewport:()=>{
|
|
17463
|
-
})),
|
|
17464
|
-
const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,i=
|
|
17472
|
+
tabIndex:-1,style:{pointerEvents:y?void 0:"none"}},y&&o(gG,{ref:d,
|
|
17473
|
+
onFocusFromOutsideViewport:()=>{kG(b({tabbingDirection:"forwards"}))}
|
|
17474
|
+
}),o(aG.Slot,{scope:n},o(F.ol,_({tabIndex:-1},l,{ref:v}))),y&&o(gG,{ref:f,
|
|
17475
|
+
onFocusFromOutsideViewport:()=>{kG(b({tabbingDirection:"backwards"}))}}))
|
|
17476
|
+
})),gG=l(((e,t)=>{
|
|
17477
|
+
const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,i=dG("ToastFocusProxy",n)
|
|
17465
17478
|
;return o(Sp,_({"aria-hidden":!0,tabIndex:0},a,{ref:t,style:{position:"fixed"},
|
|
17466
17479
|
onFocus:e=>{var t;const n=e.relatedTarget
|
|
17467
17480
|
;!(null!==(t=i.viewport)&&void 0!==t&&t.contains(n))&&r()}}))
|
|
17468
|
-
})),
|
|
17481
|
+
})),yG="Toast",bG=l(((e,t)=>{
|
|
17469
17482
|
const{forceMount:n,open:r,defaultOpen:a,onOpenChange:i,...l}=e,[c=!0,s]=$({
|
|
17470
|
-
prop:r,defaultProp:a,onChange:i});return o(U,{present:n||c},o(
|
|
17483
|
+
prop:r,defaultProp:a,onChange:i});return o(U,{present:n||c},o(zG,_({open:c},l,{
|
|
17471
17484
|
ref:t,onClose:()=>s(!1),onPause:N(e.onPause),onResume:N(e.onResume),
|
|
17472
17485
|
onSwipeStart:O(e.onSwipeStart,(e=>{
|
|
17473
17486
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
@@ -17487,8 +17500,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
17487
17500
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
17488
17501
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
17489
17502
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),s(!1)}))
|
|
17490
|
-
})))})),[
|
|
17491
|
-
const{__scopeToast:n,type:a="foreground",duration:l,open:c,onClose:s,onEscapeKeyDown:u,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=
|
|
17503
|
+
})))})),[wG,CG]=cG(yG,{onClose(){}}),zG=l(((e,t)=>{
|
|
17504
|
+
const{__scopeToast:n,type:a="foreground",duration:l,open:c,onClose:s,onEscapeKeyDown:u,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:y,onSwipeCancel:b,onSwipeEnd:w,...C}=e,z=dG(yG,n),[x,E]=f(null),S=L(t,(e=>E(e))),H=h(null),D=h(null),A=l||z.duration,k=h(0),V=h(A),T=h(0),{onToastAdd:P,onToastRemove:I}=z,R=N((()=>{
|
|
17492
17505
|
var e
|
|
17493
17506
|
;(null==x?void 0:x.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
17494
17507
|
s()})),$=i((e=>{
|
|
@@ -17497,13 +17510,13 @@ T.current=window.setTimeout(R,e))}),[R]);p((()=>{const e=z.viewport;if(e){
|
|
|
17497
17510
|
const t=()=>{$(V.current),null==v||v()},n=()=>{
|
|
17498
17511
|
const e=(new Date).getTime()-k.current
|
|
17499
17512
|
;V.current=V.current-e,window.clearTimeout(T.current),null==m||m()}
|
|
17500
|
-
;return e.addEventListener(
|
|
17501
|
-
e.removeEventListener(
|
|
17513
|
+
;return e.addEventListener(fG,n),e.addEventListener(mG,t),()=>{
|
|
17514
|
+
e.removeEventListener(fG,n),e.removeEventListener(mG,t)}}
|
|
17502
17515
|
}),[z.viewport,A,m,v,$]),p((()=>{c&&!z.isClosePausedRef.current&&$(A)
|
|
17503
17516
|
}),[c,A,z.isClosePausedRef,$]),p((()=>(P(),()=>I())),[P,I])
|
|
17504
|
-
;const B=r((()=>x?
|
|
17517
|
+
;const B=r((()=>x?HG(x):null),[x]);return z.viewport?o(d,null,B&&o(MG,{
|
|
17505
17518
|
__scopeToast:n,role:"status","aria-live":"foreground"===a?"assertive":"polite",
|
|
17506
|
-
"aria-atomic":!0},B),o(
|
|
17519
|
+
"aria-atomic":!0},B),o(wG,{scope:n,onClose:R},M(o(aG.ItemSlot,{scope:n},o(xd,{
|
|
17507
17520
|
asChild:!0,onEscapeKeyDown:O(u,(()=>{
|
|
17508
17521
|
z.isFocusedToastEscapeKeyDownRef.current||R(),
|
|
17509
17522
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},o(F.li,_({role:"status",
|
|
@@ -17516,57 +17529,57 @@ R()))})),onPointerDown:O(e.onPointerDown,(e=>{0===e.button&&(H.current={
|
|
|
17516
17529
|
x:e.clientX,y:e.clientY})})),onPointerMove:O(e.onPointerMove,(e=>{
|
|
17517
17530
|
if(!H.current)return
|
|
17518
17531
|
;const t=e.clientX-H.current.x,n=e.clientY-H.current.y,r=Boolean(D.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={
|
|
17519
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(D.current=s,
|
|
17520
|
-
discrete:!1})):
|
|
17532
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(D.current=s,DG("toast.swipeMove",y,u,{
|
|
17533
|
+
discrete:!1})):AG(s,z.swipeDirection,c)?(D.current=s,DG("toast.swipeStart",g,u,{
|
|
17521
17534
|
discrete:!1
|
|
17522
17535
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(H.current=null)
|
|
17523
17536
|
})),onPointerUp:O(e.onPointerUp,(e=>{const t=D.current,n=e.target
|
|
17524
17537
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
17525
17538
|
D.current=null,H.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
17526
|
-
delta:t};
|
|
17527
|
-
discrete:!0}):
|
|
17539
|
+
delta:t};AG(t,z.swipeDirection,z.swipeThreshold)?DG("toast.swipeEnd",w,r,{
|
|
17540
|
+
discrete:!0}):DG("toast.swipeCancel",b,r,{discrete:!0
|
|
17528
17541
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
17529
|
-
})))),z.viewport))):null}));
|
|
17542
|
+
})))),z.viewport))):null}));zG.propTypes={type(e){
|
|
17530
17543
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
17531
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
17532
|
-
}return null}};const
|
|
17533
|
-
const{__scopeToast:t,children:n,...r}=e,a=
|
|
17544
|
+
return new Error(`Invalid prop \`type\` supplied to \`${yG}\`. Expected \`foreground | background\`.`)
|
|
17545
|
+
}return null}};const MG=e=>{
|
|
17546
|
+
const{__scopeToast:t,children:n,...r}=e,a=dG(yG,t),[i,l]=f(!1),[c,s]=f(!1)
|
|
17534
17547
|
;return function(e=(()=>{})){const t=N(e);j((()=>{let e=0,n=0
|
|
17535
17548
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
17536
17549
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
17537
17550
|
}((()=>l(!0))),p((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
17538
17551
|
;return()=>window.clearTimeout(e)}),[]),c?null:o(xp,{asChild:!0
|
|
17539
|
-
},o(Sp,r,i&&o(d,null,a.label," ",n)))},
|
|
17540
|
-
const{__scopeToast:n,...r}=e;return o(F.div,_({},r,{ref:t}))})),
|
|
17541
|
-
const{altText:n,...r}=e;return n?o(
|
|
17542
|
-
}))):null}));
|
|
17552
|
+
},o(Sp,r,i&&o(d,null,a.label," ",n)))},xG=l(((e,t)=>{
|
|
17553
|
+
const{__scopeToast:n,...r}=e;return o(F.div,_({},r,{ref:t}))})),EG=l(((e,t)=>{
|
|
17554
|
+
const{altText:n,...r}=e;return n?o(_G,{altText:n,asChild:!0},o(SG,_({},r,{ref:t
|
|
17555
|
+
}))):null}));EG.propTypes={
|
|
17543
17556
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
17544
|
-
};const
|
|
17545
|
-
;return o(
|
|
17546
|
-
onClick:O(e.onClick,a.onClose)})))})),
|
|
17557
|
+
};const SG=l(((e,t)=>{const{__scopeToast:n,...r}=e,a=CG("ToastClose",n)
|
|
17558
|
+
;return o(_G,{asChild:!0},o(F.button,_({type:"button"},r,{ref:t,
|
|
17559
|
+
onClick:O(e.onClick,a.onClose)})))})),_G=l(((e,t)=>{
|
|
17547
17560
|
const{__scopeToast:n,altText:r,...a}=e;return o(F.div,_({
|
|
17548
17561
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0
|
|
17549
|
-
},a,{ref:t}))}));function
|
|
17562
|
+
},a,{ref:t}))}));function HG(e){const t=[]
|
|
17550
17563
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
17551
17564
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
17552
17565
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
17553
17566
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
17554
17567
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
17555
|
-
}else t.push(...
|
|
17568
|
+
}else t.push(...HG(e))}})),t}function DG(e,t,n,{discrete:r}){
|
|
17556
17569
|
const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
|
|
17557
17570
|
cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
|
|
17558
|
-
}),r?B(o,a):o.dispatchEvent(a)}const
|
|
17571
|
+
}),r?B(o,a):o.dispatchEvent(a)}const AG=(e,t,n=0)=>{
|
|
17559
17572
|
const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
|
|
17560
|
-
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function
|
|
17573
|
+
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function LG(e){
|
|
17561
17574
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
17562
17575
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
17563
17576
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
17564
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
17577
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function kG(e){
|
|
17565
17578
|
const t=document.activeElement
|
|
17566
17579
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
17567
|
-
const
|
|
17580
|
+
const VG=vG,TG=bG,PG=xG,IG=EG,RG=Wr(hG)``;Wr.div`
|
|
17568
17581
|
border-top: 4px solid;
|
|
17569
|
-
`;const
|
|
17582
|
+
`;const OG=Wr(TG)`
|
|
17570
17583
|
direction: ${({theme:e})=>e.direction};
|
|
17571
17584
|
&[data-state='open']:nth-last-of-type(1) {
|
|
17572
17585
|
z-index: ${({theme:e})=>(e.zIndex.snackbar||na.snackbar)-1};
|
|
@@ -17613,7 +17626,7 @@ const kG=mG,VG=yG,TG=MG,PG=xG,IG=Wr(dG)``;Wr.div`
|
|
|
17613
17626
|
|
|
17614
17627
|
width: 400px;
|
|
17615
17628
|
transition: all 0.3s ease-in-out;
|
|
17616
|
-
`,
|
|
17629
|
+
`,NG=Wr(PG)`
|
|
17617
17630
|
text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
|
|
17618
17631
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17619
17632
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -17621,7 +17634,7 @@ const kG=mG,VG=yG,TG=MG,PG=xG,IG=Wr(dG)``;Wr.div`
|
|
|
17621
17634
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
17622
17635
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
17623
17636
|
flex: 1;
|
|
17624
|
-
|
|
17637
|
+
`,$G=Wr(IG)``,FG=Wr(VG)`
|
|
17625
17638
|
position: fixed;
|
|
17626
17639
|
top: 16px;
|
|
17627
17640
|
display: flex;
|
|
@@ -17653,13 +17666,13 @@ const kG=mG,VG=yG,TG=MG,PG=xG,IG=Wr(dG)``;Wr.div`
|
|
|
17653
17666
|
animation-play-state: paused;
|
|
17654
17667
|
}
|
|
17655
17668
|
}
|
|
17656
|
-
`,
|
|
17669
|
+
`,BG=Wr.div`
|
|
17657
17670
|
direction: ${({theme:e})=>e.direction};
|
|
17658
17671
|
display: flex;
|
|
17659
17672
|
align-items: center;
|
|
17660
17673
|
padding: 16px;
|
|
17661
17674
|
gap: 8px;
|
|
17662
|
-
`,
|
|
17675
|
+
`,jG=Wr.div`
|
|
17663
17676
|
height: 4px;
|
|
17664
17677
|
background-color: ${({theme:e,$toastType:t="success"})=>"dew"===e?.name?e.colors.fill.toast?.[t]:e.colors.text.semantic[t]};
|
|
17665
17678
|
|
|
@@ -17671,23 +17684,23 @@ const kG=mG,VG=yG,TG=MG,PG=xG,IG=Wr(dG)``;Wr.div`
|
|
|
17671
17684
|
${"focus"===t?"running":"paused"};
|
|
17672
17685
|
will-change: width;
|
|
17673
17686
|
`}
|
|
17674
|
-
`,
|
|
17675
|
-
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),
|
|
17687
|
+
`,UG=t.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
|
|
17688
|
+
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),YG=e=>{const n=Ir()
|
|
17676
17689
|
;return t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
17677
17690
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17678
17691
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17679
17692
|
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",
|
|
17680
|
-
fill:n.colors.text.semantic.error}))},
|
|
17693
|
+
fill:n.colors.text.semantic.error}))},WG=e=>{const n=Ir()
|
|
17681
17694
|
;return t.createElement("svg",{width:"18",height:"16",viewBox:"0 0 18 16",
|
|
17682
17695
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17683
17696
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17684
17697
|
d:"M15.7563 15.5H2.23128C1.50628 15.5 0.856282 15.125 0.506282 14.5C0.156282 13.875 0.156282 13.125 0.531282 12.5125L7.30628 1.4625C7.66878 0.8625 8.30628 0.5 9.00628 0.5C9.70628 0.5 10.3438 0.8625 10.7063 1.4625L17.4688 12.5C17.8438 13.125 17.8438 13.8625 17.4938 14.4875C17.1313 15.1125 16.4938 15.4875 15.7688 15.4875L15.7563 15.5ZM8.99378 2C8.90628 2 8.70628 2.025 8.58128 2.2375L1.80628 13.275C1.68128 13.4875 1.75628 13.675 1.80628 13.75C1.84378 13.825 1.96878 14 2.23128 14H15.7563C16.0148 14 16.1279 13.8302 16.179 13.7535L16.1813 13.75C16.2313 13.675 16.3063 13.4875 16.1813 13.275L9.41878 2.2375C9.29378 2.025 9.08128 2 9.00628 2H8.99378ZM8.99381 10.175C8.58131 10.175 8.24381 9.83748 8.24381 9.42498V5.59998C8.24381 5.18748 8.58131 4.84998 8.99381 4.84998C9.40631 4.84998 9.74381 5.18748 9.74381 5.59998V9.42498C9.74381 9.83748 9.40631 10.175 8.99381 10.175ZM8.24381 11.725C8.24381 11.3125 8.58131 10.975 8.99381 10.975C9.40631 10.975 9.74381 11.3125 9.74381 11.725C9.74381 12.1375 9.40631 12.475 8.99381 12.475C8.58131 12.475 8.24381 12.1375 8.24381 11.725Z",
|
|
17685
|
-
fill:n.colors.icon?.semantic?.error}))},
|
|
17698
|
+
fill:n.colors.icon?.semantic?.error}))},GG=e=>{const n=Ir()
|
|
17686
17699
|
;return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
17687
17700
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17688
17701
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17689
17702
|
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",
|
|
17690
|
-
fill:n.colors.text.semantic.success}))},
|
|
17703
|
+
fill:n.colors.text.semantic.success}))},KG=e=>{const n=Ir()
|
|
17691
17704
|
;return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
17692
17705
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{
|
|
17693
17706
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -17696,36 +17709,36 @@ fill:n.colors.text.semantic.warning}),t.createElement("path",{
|
|
|
17696
17709
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
17697
17710
|
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",
|
|
17698
17711
|
fill:n.colors.text.semantic.warning}))
|
|
17699
|
-
},
|
|
17700
|
-
const s=Ir(),u="dew"===s.name,{updateToasts:d,windowState:h,retainOnWindowBlur:p,retainOnHover:f}=t.useContext(
|
|
17712
|
+
},qG=({index:e,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
|
|
17713
|
+
const s=Ir(),u="dew"===s.name,{updateToasts:d,windowState:h,retainOnWindowBlur:p,retainOnHover:f}=t.useContext(UG)??{},m=t.useRef(null),[v,g]=t.useState(!1)
|
|
17701
17714
|
;t.useEffect((()=>{const e=window.setTimeout((()=>{
|
|
17702
17715
|
o||v&&f||p||d((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
|
|
17703
|
-
}),[l,o,r,d,v,f,p]);const y={success:t.createElement(
|
|
17716
|
+
}),[l,o,r,d,v,f,p]);const y={success:t.createElement(GG,{
|
|
17704
17717
|
fill:u?s.colors.icon?.semantic?.success:s.colors.text.semantic.success}),
|
|
17705
|
-
warning:t.createElement(
|
|
17718
|
+
warning:t.createElement(KG,{
|
|
17706
17719
|
fill:u?s.colors.icon?.semantic?.warning:s.colors.text.semantic.warning}),
|
|
17707
|
-
error:u?t.createElement(
|
|
17708
|
-
}):t.createElement(
|
|
17720
|
+
error:u?t.createElement(WG,{fill:s.colors.icon?.semantic?.error
|
|
17721
|
+
}):t.createElement(YG,{fill:s.colors.text.semantic.error}),
|
|
17709
17722
|
info:u?t.createElement(Ro,{fill:s.colors.icon?.semantic?.info
|
|
17710
17723
|
}):t.createElement(Io,{fill:s.colors.text.semantic.info})}
|
|
17711
|
-
;return t.createElement(t.Fragment,null,t.createElement(
|
|
17724
|
+
;return t.createElement(t.Fragment,null,t.createElement(OG,{role:"alert",
|
|
17712
17725
|
"aria-live":"polite",ref:m,dir:s.direction,style:o||!i?{borderTop:"none"
|
|
17713
17726
|
}:void 0,$toastIndex:e,className:`ToastRoot Toast-${r??""}`.trim(),
|
|
17714
17727
|
duration:o?1/0:l,onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onOpenChange:e=>{
|
|
17715
|
-
e||d((e=>e.filter((e=>e.id!==r))))}},t.createElement(
|
|
17728
|
+
e||d((e=>e.filter((e=>e.id!==r))))}},t.createElement(jG,{
|
|
17716
17729
|
className:"ToastProgress",$windowState:h,$toastType:c,$delay:!o&&i?l:"none"
|
|
17717
|
-
}),t.createElement(
|
|
17718
|
-
},a),t.createElement(
|
|
17730
|
+
}),t.createElement(BG,null,n??y[c],t.createElement(NG,{className:"ToastTitle"
|
|
17731
|
+
},a),t.createElement($G,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
17719
17732
|
"aria-label":"Close"},t.createElement(ba,null,t.createElement(Vo,{
|
|
17720
|
-
fill:u?s.colors.icon?.primary:s.colors.text.primary}))))))},
|
|
17721
|
-
const e=((e=ns())=>{const t=`ui-${e}`,{isBrowser:n}=
|
|
17722
|
-
;return p((()=>{const e=document.querySelector(`#${t}`),n=e||
|
|
17733
|
+
fill:u?s.colors.icon?.primary:s.colors.text.primary}))))))},ZG=()=>{
|
|
17734
|
+
const e=((e=ns())=>{const t=`ui-${e}`,{isBrowser:n}=nG(),[r,o]=f(n?rG(t):null)
|
|
17735
|
+
;return p((()=>{const e=document.querySelector(`#${t}`),n=e||rG(t)
|
|
17723
17736
|
;e||document.body.appendChild(n),o(n)}),[]),r
|
|
17724
|
-
})("toast"),{toasts:n}=t.useContext(
|
|
17725
|
-
target:document.body},t.createElement(
|
|
17726
|
-
},n.map(((e,n)=>t.createElement(
|
|
17727
|
-
}))),t.createElement(
|
|
17728
|
-
},
|
|
17737
|
+
})("toast"),{toasts:n}=t.useContext(UG)??{};return e?M(t.createElement(Er,{
|
|
17738
|
+
target:document.body},t.createElement(RG,{swipeDirection:"up"
|
|
17739
|
+
},n.map(((e,n)=>t.createElement(qG,{key:`Toast-${e.id}`,...e,index:n
|
|
17740
|
+
}))),t.createElement(FG,{className:"ToastViewport"}))),e):null
|
|
17741
|
+
},XG=({children:e,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
|
|
17729
17742
|
const[o,a]=t.useState("focus"),[i,l]=t.useState([]),c=t.useCallback((e=>{
|
|
17730
17743
|
l((t=>[{...e,id:ns(),state:"open"},...t]))}),[]),s=t.useCallback((e=>{
|
|
17731
17744
|
l((t=>e(t)))}),[]),u=t.useMemo((()=>({toasts:i,addToast:c,windowState:o,
|
|
@@ -17734,41 +17747,41 @@ updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
|
|
|
17734
17747
|
a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
|
|
17735
17748
|
r&&(window.removeEventListener("focus",(()=>{})),
|
|
17736
17749
|
window.removeEventListener("blur",(()=>{})))
|
|
17737
|
-
})),[r]),t.createElement(
|
|
17738
|
-
},
|
|
17739
|
-
;return[e,n,t.useCallback((()=>{r((()=>[]))}),[r])]},
|
|
17750
|
+
})),[r]),t.createElement(UG.Provider,{value:u},t.createElement(ZG,null),e)
|
|
17751
|
+
},JG=()=>{const{toasts:e,addToast:n,updateToasts:r}=t.useContext(UG)??{}
|
|
17752
|
+
;return[e,n,t.useCallback((()=>{r((()=>[]))}),[r])]},QG=e=>t.createElement(Rr,{
|
|
17740
17753
|
theme:e.theme
|
|
17741
|
-
},t.createElement(
|
|
17754
|
+
},t.createElement(tG,null),t.createElement(XG,null,e.children)),eK="Switch",[tK,nK]=H(eK),[rK,oK]=tK(eK),aK=l(((e,t)=>{
|
|
17742
17755
|
const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:l,disabled:c,value:s="on",onCheckedChange:u,...d}=e,[p,m]=f(null),v=L(t,(e=>m(e))),g=h(!1),y=!p||Boolean(p.closest("form")),[b=!1,w]=$({
|
|
17743
|
-
prop:a,defaultProp:i,onChange:u});return o(
|
|
17756
|
+
prop:a,defaultProp:i,onChange:u});return o(rK,{scope:n,checked:b,disabled:c
|
|
17744
17757
|
},o(F.button,_({type:"button",role:"switch","aria-checked":b,"aria-required":l,
|
|
17745
|
-
"data-state":
|
|
17758
|
+
"data-state":lK(b),"data-disabled":c?"":void 0,disabled:c,value:s},d,{ref:v,
|
|
17746
17759
|
onClick:O(e.onClick,(e=>{
|
|
17747
17760
|
w((e=>!e)),y&&(g.current=e.isPropagationStopped(),g.current||e.stopPropagation())
|
|
17748
|
-
}))})),y&&o(
|
|
17749
|
-
required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),
|
|
17761
|
+
}))})),y&&o(iK,{control:p,bubbles:!g.current,name:r,value:s,checked:b,
|
|
17762
|
+
required:l,disabled:c,style:{transform:"translateX(-100%)"}}))})),iK=e=>{
|
|
17750
17763
|
const{control:t,checked:n,bubbles:r=!0,...a}=e,i=h(null),l=Ep(n),c=rp(t)
|
|
17751
17764
|
;return p((()=>{
|
|
17752
17765
|
const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
17753
17766
|
;if(l!==n&&o){const t=new Event("click",{bubbles:r})
|
|
17754
17767
|
;o.call(e,n),e.dispatchEvent(t)}}),[l,n,r]),o("input",_({type:"checkbox",
|
|
17755
17768
|
"aria-hidden":!0,defaultChecked:n},a,{tabIndex:-1,ref:i,style:{...e.style,...c,
|
|
17756
|
-
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function
|
|
17757
|
-
return e?"checked":"unchecked"}const
|
|
17758
|
-
const{__scopeSwitch:n,...r}=e,a=
|
|
17759
|
-
"data-state":
|
|
17760
|
-
})),
|
|
17769
|
+
position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function lK(e){
|
|
17770
|
+
return e?"checked":"unchecked"}const cK=aK,sK=l(((e,t)=>{
|
|
17771
|
+
const{__scopeSwitch:n,...r}=e,a=oK("SwitchThumb",n);return o(F.span,_({
|
|
17772
|
+
"data-state":lK(a.checked),"data-disabled":a.disabled?"":void 0},r,{ref:t}))
|
|
17773
|
+
})),uK={sm:{width:28,height:12,thumb:16,offTransform:[-2,-2],onTransform:[14,-2]
|
|
17761
17774
|
},md:{width:36,height:16,thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{
|
|
17762
17775
|
width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
17763
|
-
},
|
|
17776
|
+
},dK=Wr(cK)`
|
|
17764
17777
|
margin: 0;
|
|
17765
17778
|
padding: 0;
|
|
17766
17779
|
outline: 0;
|
|
17767
17780
|
border: none;
|
|
17768
17781
|
position: relative;
|
|
17769
|
-
width: ${({size:e})=>
|
|
17770
|
-
height: ${({size:e})=>
|
|
17771
|
-
border-radius: ${({size:e})=>
|
|
17782
|
+
width: ${({size:e})=>uK[e].width}px;
|
|
17783
|
+
height: ${({size:e})=>uK[e].height}px;
|
|
17784
|
+
border-radius: ${({size:e})=>uK[e].height/2}px;
|
|
17772
17785
|
direction: ltr !important;
|
|
17773
17786
|
&[data-disabled] {
|
|
17774
17787
|
opacity: 0.5;
|
|
@@ -17789,17 +17802,17 @@ width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
|
17789
17802
|
}
|
|
17790
17803
|
}
|
|
17791
17804
|
}
|
|
17792
|
-
`,
|
|
17805
|
+
`,hK=Wr(sK)`
|
|
17793
17806
|
display: grid;
|
|
17794
17807
|
place-content: center;
|
|
17795
|
-
width: ${({size:e})=>
|
|
17796
|
-
height: ${({size:e})=>
|
|
17808
|
+
width: ${({size:e})=>uK[e].thumb}px;
|
|
17809
|
+
height: ${({size:e})=>uK[e].thumb}px;
|
|
17797
17810
|
border-radius: 50%;
|
|
17798
17811
|
direction: ltr !important;
|
|
17799
17812
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
17800
17813
|
transition: transform 100ms;
|
|
17801
17814
|
transform: translate(
|
|
17802
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
17815
|
+
${({theme:e,size:t})=>("ltr"===e.direction?uK[t].offTransform:uK[t].onTransform).map((e=>`${e}px`)).join(",")}
|
|
17803
17816
|
) !important;
|
|
17804
17817
|
will-change: transform;
|
|
17805
17818
|
overflow: hidden;
|
|
@@ -17821,23 +17834,23 @@ width:44,height:20,thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}
|
|
|
17821
17834
|
}
|
|
17822
17835
|
&[data-state='checked'] {
|
|
17823
17836
|
transform: translate(
|
|
17824
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
17837
|
+
${({theme:e,size:t})=>("ltr"===e.direction?uK[t].onTransform:uK[t].offTransform).map((e=>`${e}px`)).join(",")}
|
|
17825
17838
|
) !important;
|
|
17826
17839
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
17827
17840
|
svg.toggle-off {
|
|
17828
17841
|
display: none;
|
|
17829
17842
|
}
|
|
17830
17843
|
}
|
|
17831
|
-
`,
|
|
17844
|
+
`,pK={sm:{width:32,height:18,thumb:14,offTransform:[2,0],onTransform:[16,0]},
|
|
17832
17845
|
md:{width:40,height:22,thumb:16,offTransform:[3,0],onTransform:[20,0]},lg:{
|
|
17833
|
-
width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},
|
|
17846
|
+
width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},fK=Wr(cK)`
|
|
17834
17847
|
margin: 0;
|
|
17835
17848
|
padding: 0;
|
|
17836
17849
|
outline: 0;
|
|
17837
17850
|
border: none;
|
|
17838
17851
|
position: relative;
|
|
17839
|
-
width: ${({size:e})=>
|
|
17840
|
-
height: ${({size:e})=>
|
|
17852
|
+
width: ${({size:e})=>pK[e].width}px;
|
|
17853
|
+
height: ${({size:e})=>pK[e].height}px;
|
|
17841
17854
|
border-radius: 99px;
|
|
17842
17855
|
direction: ltr !important;
|
|
17843
17856
|
transition: background-color 100ms;
|
|
@@ -17863,14 +17876,14 @@ width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},pK=Wr(lK)`
|
|
|
17863
17876
|
outline-offset: 1px;
|
|
17864
17877
|
}
|
|
17865
17878
|
}
|
|
17866
|
-
`,
|
|
17879
|
+
`,mK=Wr(sK)`
|
|
17867
17880
|
position: absolute;
|
|
17868
17881
|
display: flex;
|
|
17869
17882
|
align-items: center;
|
|
17870
17883
|
justify-content: center;
|
|
17871
|
-
width: ${({size:e})=>
|
|
17872
|
-
height: ${({size:e})=>
|
|
17873
|
-
top: calc(50% - ${({size:e})=>
|
|
17884
|
+
width: ${({size:e})=>pK[e].thumb}px;
|
|
17885
|
+
height: ${({size:e})=>pK[e].thumb}px;
|
|
17886
|
+
top: calc(50% - ${({size:e})=>pK[e].thumb/2}px);
|
|
17874
17887
|
border-radius: 50%;
|
|
17875
17888
|
direction: ltr !important;
|
|
17876
17889
|
background-color: ${({theme:e})=>e.colors.fill.surface};
|
|
@@ -17883,7 +17896,7 @@ width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},pK=Wr(lK)`
|
|
|
17883
17896
|
cursor: pointer;
|
|
17884
17897
|
|
|
17885
17898
|
transform: translateX(
|
|
17886
|
-
${({theme:e,size:t})=>"ltr"===e.direction?
|
|
17899
|
+
${({theme:e,size:t})=>"ltr"===e.direction?pK[t].offTransform[0]:pK[t].onTransform[0]}px
|
|
17887
17900
|
) !important;
|
|
17888
17901
|
|
|
17889
17902
|
/* Hover state for unchecked */
|
|
@@ -17902,19 +17915,19 @@ width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},pK=Wr(lK)`
|
|
|
17902
17915
|
|
|
17903
17916
|
&[data-state='checked'] {
|
|
17904
17917
|
transform: translateX(
|
|
17905
|
-
${({theme:e,size:t})=>"ltr"===e.direction?
|
|
17918
|
+
${({theme:e,size:t})=>"ltr"===e.direction?pK[t].onTransform[0]:pK[t].offTransform[0]}px
|
|
17906
17919
|
) !important;
|
|
17907
17920
|
}
|
|
17908
17921
|
&[data-disabled] {
|
|
17909
17922
|
cursor: not-allowed;
|
|
17910
17923
|
}
|
|
17911
|
-
`,
|
|
17924
|
+
`,vK=Wr.div`
|
|
17912
17925
|
display: flex;
|
|
17913
17926
|
flex-direction: row;
|
|
17914
17927
|
align-items: center;
|
|
17915
17928
|
padding: 0px;
|
|
17916
17929
|
gap: 8px;
|
|
17917
|
-
`,
|
|
17930
|
+
`,gK=Wr.span`
|
|
17918
17931
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17919
17932
|
font-weight: ${({theme:e})=>e.typography.fontWeight?.regular||400};
|
|
17920
17933
|
font-size: 14px;
|
|
@@ -17927,22 +17940,22 @@ width:48,height:26,thumb:18,offTransform:[4,0],onTransform:[24,0]}},pK=Wr(lK)`
|
|
|
17927
17940
|
overflow-wrap: anywhere;
|
|
17928
17941
|
word-wrap: anywhere;
|
|
17929
17942
|
white-space: wrap;
|
|
17930
|
-
`,
|
|
17931
|
-
},
|
|
17932
|
-
},
|
|
17933
|
-
const u=Ir(),[d,h]=f(r);if("dew"===u.name){const n=t.createElement(
|
|
17943
|
+
`,yK={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}
|
|
17944
|
+
},bK={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,height:8}
|
|
17945
|
+
},wK=({handleChange:e,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,label:c,...s})=>{
|
|
17946
|
+
const u=Ir(),[d,h]=f(r);if("dew"===u.name){const n=t.createElement(fK,{
|
|
17934
17947
|
checked:d,onCheckedChange:t=>{h(t),e?.(t)},required:a,"aria-required":a,size:i,
|
|
17935
|
-
...s},t.createElement(
|
|
17936
|
-
fill:u.colors.icon?.selected,className:"toggle-on",...
|
|
17948
|
+
...s},t.createElement(mK,{...l,size:i},d&&t.createElement($o,{
|
|
17949
|
+
fill:u.colors.icon?.selected,className:"toggle-on",...yK[i]
|
|
17937
17950
|
}),!d&&t.createElement(Vo,{fill:u.colors.icon?.disabled,className:"toggle-off",
|
|
17938
|
-
...
|
|
17939
|
-
return t.createElement(
|
|
17940
|
-
"aria-required":a,size:i,...s},t.createElement(
|
|
17951
|
+
...bK[i]})));return c?t.createElement(vK,null,n,t.createElement(gK,null,c)):n}
|
|
17952
|
+
return t.createElement(dK,{checked:r,onCheckedChange:t=>{e?.(t)},required:a,
|
|
17953
|
+
"aria-required":a,size:i,...s},t.createElement(hK,{...l,size:i
|
|
17941
17954
|
},n&&t.createElement($o,{fill:u.colors.common.accent,className:"toggle-on",
|
|
17942
|
-
...
|
|
17943
|
-
className:"toggle-off",...
|
|
17944
|
-
},[
|
|
17945
|
-
const{__scopeTooltip:n,...r}=e,a=
|
|
17955
|
+
...yK[i]}),n&&t.createElement(Vo,{fill:u.colors.text.primary,
|
|
17956
|
+
className:"toggle-off",...bK[i]})))
|
|
17957
|
+
},[CK,zK]=H("Tooltip",[ip]),MK=ip(),xK=700,EK="tooltip.open",[SK,_K]=CK("TooltipProvider"),HK="Tooltip",[DK,AK]=CK(HK),LK="TooltipTrigger",kK=l(((e,t)=>{
|
|
17958
|
+
const{__scopeTooltip:n,...r}=e,a=AK(LK,n),l=_K(LK,n),c=MK(n),s=L(t,h(null),a.onTriggerChange),u=h(!1),d=h(!1),f=i((()=>u.current=!1),[])
|
|
17946
17959
|
;return p((()=>()=>document.removeEventListener("pointerup",f)),[f]),o(Cp,_({
|
|
17947
17960
|
asChild:!0},c),o(F.button,_({"aria-describedby":a.open?a.contentId:void 0,
|
|
17948
17961
|
"data-state":a.stateAttribute},r,{ref:s,onPointerMove:O(e.onPointerMove,(e=>{
|
|
@@ -17951,12 +17964,12 @@ d.current=!0))})),onPointerLeave:O(e.onPointerLeave,(()=>{
|
|
|
17951
17964
|
a.onTriggerLeave(),d.current=!1})),onPointerDown:O(e.onPointerDown,(()=>{
|
|
17952
17965
|
u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),
|
|
17953
17966
|
onFocus:O(e.onFocus,(()=>{u.current||a.onOpen()})),onBlur:O(e.onBlur,a.onClose),
|
|
17954
|
-
onClick:O(e.onClick,a.onClose)})))})),
|
|
17955
|
-
forceMount:void 0}),
|
|
17956
|
-
const n=
|
|
17957
|
-
;return o(U,{present:r||l.open},l.disableHoverableContent?o(
|
|
17958
|
-
ref:t})):o(
|
|
17959
|
-
const n=
|
|
17967
|
+
onClick:O(e.onClick,a.onClose)})))})),VK="TooltipPortal",[TK,PK]=CK(VK,{
|
|
17968
|
+
forceMount:void 0}),IK="TooltipContent",RK=l(((e,t)=>{
|
|
17969
|
+
const n=PK(IK,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,l=AK(IK,e.__scopeTooltip)
|
|
17970
|
+
;return o(U,{present:r||l.open},l.disableHoverableContent?o(FK,_({side:a},i,{
|
|
17971
|
+
ref:t})):o(OK,_({side:a},i,{ref:t})))})),OK=l(((e,t)=>{
|
|
17972
|
+
const n=AK(IK,e.__scopeTooltip),r=_K(IK,e.__scopeTooltip),a=h(null),l=L(t,a),[c,s]=f(null),{trigger:u,onClose:d}=n,m=a.current,{onPointerInTransitChange:v}=r,g=i((()=>{
|
|
17960
17973
|
s(null),v(!1)}),[v]),y=i(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,
|
|
17961
17974
|
y:e.clientY},o=function(e,t){
|
|
17962
17975
|
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)
|
|
@@ -17991,11 +18004,11 @@ const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){
|
|
|
17991
18004
|
const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
|
|
17992
18005
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?g():o&&(g(),d())}
|
|
17993
18006
|
;return document.addEventListener("pointermove",e),
|
|
17994
|
-
()=>document.removeEventListener("pointermove",e)}}),[u,m,c,d,g]),o(
|
|
17995
|
-
ref:l}))})),[
|
|
17996
|
-
const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,s=
|
|
17997
|
-
;return p((()=>(document.addEventListener(
|
|
17998
|
-
()=>document.removeEventListener(
|
|
18007
|
+
()=>document.removeEventListener("pointermove",e)}}),[u,m,c,d,g]),o(FK,_({},e,{
|
|
18008
|
+
ref:l}))})),[NK,$K]=CK(HK,{isInside:!1}),FK=l(((e,t)=>{
|
|
18009
|
+
const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,s=AK(IK,n),u=MK(n),{onClose:d}=s
|
|
18010
|
+
;return p((()=>(document.addEventListener(EK,d),
|
|
18011
|
+
()=>document.removeEventListener(EK,d))),[d]),p((()=>{if(s.trigger){const e=e=>{
|
|
17999
18012
|
const t=e.target;null!=t&&t.contains(s.trigger)&&d()}
|
|
18000
18013
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
18001
18014
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -18008,39 +18021,39 @@ onDismiss:d},o(zp,_({"data-state":s.stateAttribute},u,c,{ref:t,style:{
|
|
|
18008
18021
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
18009
18022
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
18010
18023
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
18011
|
-
}),o(T,null,r),o(
|
|
18012
|
-
},a||r))))}));const
|
|
18013
|
-
const{__scopeTooltip:t,delayDuration:n=
|
|
18014
|
-
;return p((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),o(
|
|
18024
|
+
}),o(T,null,r),o(NK,{scope:n,isInside:!0},o(_p,{id:s.contentId,role:"tooltip"
|
|
18025
|
+
},a||r))))}));const BK=e=>{
|
|
18026
|
+
const{__scopeTooltip:t,delayDuration:n=xK,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:l}=e,[c,s]=f(!0),u=h(!1),d=h(0)
|
|
18027
|
+
;return p((()=>{const e=d.current;return()=>window.clearTimeout(e)}),[]),o(SK,{
|
|
18015
18028
|
scope:t,isOpenDelayed:c,delayDuration:n,onOpen:i((()=>{
|
|
18016
18029
|
window.clearTimeout(d.current),s(!1)}),[]),onClose:i((()=>{
|
|
18017
18030
|
window.clearTimeout(d.current),d.current=window.setTimeout((()=>s(!0)),r)
|
|
18018
18031
|
}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:i((e=>{u.current=e
|
|
18019
|
-
}),[]),disableHoverableContent:a},l)},
|
|
18020
|
-
const{__scopeTooltip:t,children:n,open:a,defaultOpen:l=!1,onOpenChange:c,disableHoverableContent:s,delayDuration:u}=e,d=
|
|
18032
|
+
}),[]),disableHoverableContent:a},l)},jK=e=>{
|
|
18033
|
+
const{__scopeTooltip:t,children:n,open:a,defaultOpen:l=!1,onOpenChange:c,disableHoverableContent:s,delayDuration:u}=e,d=_K(HK,e.__scopeTooltip),m=MK(t),[v,g]=f(null),y=K(),b=h(0),w=null!=s?s:d.disableHoverableContent,C=null!=u?u:d.delayDuration,z=h(!1),[M=!1,x]=$({
|
|
18021
18034
|
prop:a,defaultProp:l,onChange:e=>{
|
|
18022
|
-
e?(d.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
18035
|
+
e?(d.onOpen(),document.dispatchEvent(new CustomEvent(EK))):d.onClose(),
|
|
18023
18036
|
null==c||c(e)}
|
|
18024
18037
|
}),E=r((()=>M?z.current?"delayed-open":"instant-open":"closed"),[M]),S=i((()=>{
|
|
18025
18038
|
window.clearTimeout(b.current),z.current=!1,x(!0)}),[x]),_=i((()=>{
|
|
18026
18039
|
window.clearTimeout(b.current),x(!1)}),[x]),H=i((()=>{
|
|
18027
18040
|
window.clearTimeout(b.current),b.current=window.setTimeout((()=>{
|
|
18028
18041
|
z.current=!0,x(!0)}),C)}),[C,x])
|
|
18029
|
-
;return p((()=>()=>window.clearTimeout(b.current)),[]),o(wp,m,o(
|
|
18042
|
+
;return p((()=>()=>window.clearTimeout(b.current)),[]),o(wp,m,o(DK,{scope:t,
|
|
18030
18043
|
contentId:y,open:M,stateAttribute:E,trigger:v,onTriggerChange:g,
|
|
18031
18044
|
onTriggerEnter:i((()=>{d.isOpenDelayed?H():S()}),[d.isOpenDelayed,H,S]),
|
|
18032
18045
|
onTriggerLeave:i((()=>{w?_():window.clearTimeout(b.current)}),[_,w]),onOpen:S,
|
|
18033
|
-
onClose:_,disableHoverableContent:w},n))},
|
|
18034
|
-
const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,i=
|
|
18035
|
-
;return o(
|
|
18036
|
-
container:a},r)))},
|
|
18037
|
-
;return
|
|
18046
|
+
onClose:_,disableHoverableContent:w},n))},UK=kK,YK=e=>{
|
|
18047
|
+
const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,i=AK(VK,t)
|
|
18048
|
+
;return o(TK,{scope:t,forceMount:n},o(U,{present:n||i.open},o(xp,{asChild:!0,
|
|
18049
|
+
container:a},r)))},WK=RK,GK=l(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=MK(n)
|
|
18050
|
+
;return $K("TooltipArrow",n).isInside?null:o(Mp,_({},a,r,{ref:t}))})),KK=Wr(GK)`
|
|
18038
18051
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
18039
|
-
`,
|
|
18052
|
+
`,qK=Wr(GK)`
|
|
18040
18053
|
fill: ${({theme:e})=>e.colors.fill.neutral};
|
|
18041
18054
|
width: 12px;
|
|
18042
18055
|
height: 6px;
|
|
18043
|
-
`,
|
|
18056
|
+
`,ZK=Wr(WK)`
|
|
18044
18057
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
18045
18058
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
18046
18059
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -18072,7 +18085,7 @@ container:a},r)))},YK=IK,WK=l(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=zK(n)
|
|
|
18072
18085
|
&[data-state='closed'] {
|
|
18073
18086
|
animation-name: ${Jr};
|
|
18074
18087
|
}
|
|
18075
|
-
`,
|
|
18088
|
+
`,XK=Wr(WK)`
|
|
18076
18089
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
18077
18090
|
font-size: 12px;
|
|
18078
18091
|
line-height: ${({theme:e})=>e.typography.secondary.lineHeight};
|
|
@@ -18104,107 +18117,115 @@ container:a},r)))},YK=IK,WK=l(((e,t)=>{const{__scopeTooltip:n,...r}=e,a=zK(n)
|
|
|
18104
18117
|
&[data-state='closed'] {
|
|
18105
18118
|
animation-name: ${Jr};
|
|
18106
18119
|
}
|
|
18107
|
-
`,
|
|
18120
|
+
`,JK=Wr(BK)``,QK=Wr(jK)``,eq=Wr(UK)`
|
|
18108
18121
|
color: inherit;
|
|
18109
|
-
`,
|
|
18122
|
+
`,tq=Wr(YK)``,nq=({position:e="bottom",label:n,html:r,style:o={},arrowStyle:a={},children:i,className:l="",disabled:c=!1,delay:s=300,arrow:u=!0,providerProps:d,portalProps:p,rootProps:f})=>{
|
|
18110
18123
|
const m=Ir(),v=h(null),g={container:hy(v)
|
|
18111
|
-
},[y="bottom",b="center"]=e.split("-"),w="dew"===m?.name?ZK
|
|
18112
|
-
;return t.createElement(
|
|
18113
|
-
open:!c&&void 0},t.createElement(
|
|
18124
|
+
},[y="bottom",b="center"]=e.split("-"),w="dew"===m?.name?XK:ZK,C="dew"===m?.name?qK:KK
|
|
18125
|
+
;return t.createElement(JK,{delayDuration:s,...d},t.createElement(QK,{...f,
|
|
18126
|
+
open:!c&&void 0},t.createElement(eq,{className:"TooltipTrigger",asChild:!0,
|
|
18114
18127
|
"aria-label":"string"==typeof i?i:"TooltipTrigger",type:"button",ref:v
|
|
18115
|
-
},t.createElement(ba,{className:l,type:"button"},i)),t.createElement(
|
|
18128
|
+
},t.createElement(ba,{className:l,type:"button"},i)),t.createElement(tq,{...p||g
|
|
18116
18129
|
},t.createElement(w,{forceMount:!0,"data-tooltip-content":!0,
|
|
18117
18130
|
className:"TooltipContent",style:o,sideOffset:5,"aria-disabled":c,
|
|
18118
18131
|
"aria-live":"polite",side:y,align:b,dir:m.direction
|
|
18119
18132
|
},r?t.createElement(t.Fragment,null,r):t.createElement(t.Fragment,null,n??""),u&&t.createElement(C,{
|
|
18120
|
-
style:a})))))
|
|
18121
|
-
|
|
18133
|
+
style:a})))))
|
|
18134
|
+
},rq=({hideTopPagination:e,showLoader:n,isLoading:r,isFetching:o,label:a,intermediateCount:i,canPrevious:l,canNext:c,onPrevious:s,onNext:u})=>{
|
|
18135
|
+
const d=Ir(),h=!i&&(r||o);return t.createElement(uW,{
|
|
18136
|
+
className:"table-header-dropdown-pagination"},t.createElement(dW,{
|
|
18137
|
+
className:"pagination-actions"
|
|
18138
|
+
},!e&&t.createElement(t.Fragment,null,t.createElement(_a,{variant:"primary",
|
|
18139
|
+
className:"pagination-text pagination-text--workspace"},n?t.createElement(Sv,{
|
|
18140
|
+
size:"small"}):a),t.createElement(kv,{variant:"secondary",
|
|
18141
|
+
className:"table-pagination-button",type:"button","aria-label":"Previous page",
|
|
18142
|
+
onClick:s,disabled:!l||h},t.createElement(eW,{fill:d.colors.text.primary
|
|
18143
|
+
})),t.createElement(kv,{variant:"secondary",className:"table-pagination-button",
|
|
18144
|
+
type:"button","aria-label":"Next page",onClick:u,disabled:!c||h
|
|
18145
|
+
},t.createElement(tW,{fill:d.colors.text.primary})))))},oq=e=>{
|
|
18146
|
+
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,headerComponent:u,filterComponent:d,filterTriggerComponent:h,sortByComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,isFilterOpenByDefault:g=!0,showTableOnLoading:y,hideLoaderOnTopPagination:b,showWorkspaceActions:w,count:C,isWSOpen:z=!0,pageIndex:M=0,pageSize:x=20,enablePreviousPage:E,enableNextPage:S,hideColumnSettings:_=!0,hideBottomPagination:H,rowMenuOptions:D,onPreviousPageClick:A,isDisableActionMenu:L=!1,onNextPageClick:k,disableRowSelect:V,hideSelectAllInTable:T,onSelectAllRows:P,onRowSelect:I,onMenuOptionSelect:R,onRowClick:O,columnOrder:N,setColumnOrder:$,setHiddenColumns:F,hiddenColumns:B,selectedRowIds:j={},isDisableSortDropdown:U,setSelectedRowIds:Y,dataKey:W="id",cellPropGetter:G,setPageIndex:K,rowPropGetter:q,translationTexts:Z}=e,X=Ir(),[J,Q]=t.useState(!!g),ee={
|
|
18122
18147
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
18123
|
-
display:e=>e,group:e=>e},
|
|
18124
|
-
id:"select",header:({table:e})=>
|
|
18148
|
+
display:e=>e,group:e=>e},te=-1===C||void 0===C,ne=t.useMemo((()=>[...V?[]:[{
|
|
18149
|
+
id:"select",header:({table:e})=>T?t.createElement("div",{
|
|
18125
18150
|
className:"table-checkbox-header"}):t.createElement(ib,{
|
|
18126
18151
|
className:"table-checkbox",
|
|
18127
18152
|
checked:e.getIsSomeRowsSelected()?"indeterminate":e.getIsAllRowsSelected(),
|
|
18128
18153
|
indeterminate:e.getIsSomeRowsSelected(),onCheckedChange:t=>{
|
|
18129
|
-
e.toggleAllPageRowsSelected(!0===t),
|
|
18154
|
+
e.toggleAllPageRowsSelected(!0===t),P?.(!0===t)}}),
|
|
18130
18155
|
cell:({row:e})=>t.createElement(ib,{className:"table-checkbox",
|
|
18131
18156
|
checked:e.getIsSelected(),disabled:!e.getCanSelect(),
|
|
18132
18157
|
indeterminate:e.getIsSomeSelected(),onCheckedChange:t=>{
|
|
18133
|
-
e.toggleSelected(!0===t),
|
|
18134
|
-
}],...r.map((e=>
|
|
18135
|
-
cell:t=>e.accessorFn(t.row.original)}))),...
|
|
18158
|
+
e.toggleSelected(!0===t),I?.(e.original,!0===t)}})
|
|
18159
|
+
}],...r.map((e=>ee.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
18160
|
+
cell:t=>e.accessorFn(t.row.original)}))),...D?[{id:"rowMenuOptions",
|
|
18136
18161
|
header:()=>t.createElement("div",{id:"more-actions-header"}),
|
|
18137
18162
|
cell:({row:e})=>t.createElement(Iw,{trigger:t.createElement(No,{
|
|
18138
|
-
className:"more-actions "+(
|
|
18139
|
-
disableMenu:
|
|
18140
|
-
},side:"bottom",align:"rtl"===
|
|
18141
|
-
}]:[]]),[r,
|
|
18142
|
-
;return r.forEach((t=>{e[t.id]=!(
|
|
18143
|
-
}),[r
|
|
18144
|
-
columns:
|
|
18145
|
-
columnVisibility:
|
|
18146
|
-
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=
|
|
18147
|
-
;t="function"==typeof e?e(
|
|
18148
|
-
let t=
|
|
18149
|
-
onColumnOrderChange:e=>{let t=
|
|
18150
|
-
onRowSelectionChange:e=>{let t=
|
|
18151
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
18152
|
-
}),{getPageCount:
|
|
18153
|
-
|
|
18154
|
-
|
|
18155
|
-
className:"table-
|
|
18156
|
-
className:"table-header-
|
|
18157
|
-
className:"
|
|
18158
|
-
}
|
|
18159
|
-
|
|
18160
|
-
|
|
18161
|
-
|
|
18162
|
-
|
|
18163
|
-
fill:q.colors.text.primary})),t.createElement(kv,{variant:"secondary",
|
|
18164
|
-
className:"table-pagination-button",onClick:e=>{A?.(),Q||he()},
|
|
18165
|
-
disabled:Q?!x:!le()||i||l},t.createElement(tW,{fill:q.colors.text.primary
|
|
18166
|
-
})))))),!!w&&t.createElement(nW,null,t.createElement(rW,{
|
|
18163
|
+
className:"more-actions "+(L?"disabledActionMenu":""),fill:"currentcolor"}),
|
|
18164
|
+
disableMenu:L,options:D(e.original)||[],onSelect:t=>{t.id&&R?.(t.id,e.original)
|
|
18165
|
+
},side:"bottom",align:"rtl"===X.direction?"start":"end"})
|
|
18166
|
+
}]:[]]),[r,V,T,X.colors.text.primary]),re=t.useMemo((()=>{const e={}
|
|
18167
|
+
;return r.forEach((t=>{e[t.id]=!(B??[]).includes(t.id)})),e
|
|
18168
|
+
}),[r,B]),oe=t.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),ae=XY({data:n,
|
|
18169
|
+
columns:ne,getRowId:e=>e?.[W]??"id",getCoreRowModel:qY(),state:{columnOrder:N,
|
|
18170
|
+
columnVisibility:re,rowSelection:j,pagination:oe},initialState:{columnPinning:{
|
|
18171
|
+
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=oe
|
|
18172
|
+
;t="function"==typeof e?e(oe):e,K?.(t.pageIndex)},onColumnVisibilityChange:e=>{
|
|
18173
|
+
let t=re;t="function"==typeof e?e(re):e,F?.(Object.keys(t).filter((e=>!t[e])))},
|
|
18174
|
+
onColumnOrderChange:e=>{let t=N??[];t="function"==typeof e?e(N??[]):e,$?.(t)},
|
|
18175
|
+
onRowSelectionChange:e=>{let t=j;t="function"==typeof e?e(j):e,Y?.(t)},
|
|
18176
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:te?-1:C
|
|
18177
|
+
}),{getPageCount:ie,getRowModel:le,getState:ce,getCanNextPage:se,getCanPreviousPage:ue,getPageOptions:de,previousPage:he,setPageIndex:pe,nextPage:fe,lastPage:me,firstPage:ve}=ae,{rows:ge}=le(),{pagination:{pageIndex:ye,pageSize:be}}=ce(),we=ye*be+(ye<ie()-1?be:ge.length),Ce=ae.getAllColumns().filter((e=>e.getIsVisible())).length+(V?0:1)+(D?1:0),ze=n.length>0?`${ye*be+1} - ${we} ${Z?.of||"of"} ${(({intermediateCount:e,rowsLength:t,count:n,translationTexts:r})=>e?t>0?r?.many||"Many":"-":n??t??"-")({
|
|
18178
|
+
intermediateCount:te,rowsLength:ge.length,count:C,translationTexts:Z
|
|
18179
|
+
})}`:`0 ${Z?.of||"of"} 0`;return t.createElement(JY,{className:"TableContainer"
|
|
18180
|
+
},w&&t.createElement(oW,{className:"table-actions"},t.createElement(lW,{
|
|
18181
|
+
className:"table-header-component"},u??null),t.createElement(cW,{
|
|
18182
|
+
className:"table-header-actions"
|
|
18183
|
+
},p?t.createElement("div",null,p??null):null,!!z&&t.createElement(rq,{
|
|
18184
|
+
hideTopPagination:m,showLoader:!!i&&!b,isLoading:i,isFetching:l,label:ze,
|
|
18185
|
+
intermediateCount:te,canPrevious:te?!!E:ue(),canNext:te?!!S:se(),
|
|
18186
|
+
onPrevious:()=>{A?.(),te||he()},onNext:()=>{k?.(),te||fe()}
|
|
18187
|
+
}),h?t.createElement("div",null,h):null)),!!z&&t.createElement(nW,null,t.createElement(rW,{
|
|
18167
18188
|
className:"table-wrapper"
|
|
18168
|
-
},a&&t.createElement(iW,null,a),i&&!
|
|
18169
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(
|
|
18170
|
-
fill:"currentcolor"})},t.createElement(
|
|
18171
|
-
})),t.createElement(
|
|
18172
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
18189
|
+
},a&&t.createElement(iW,null,a),i&&!y?t.createElement(t.Fragment,null,s):t.createElement(t.Fragment,null,0===ge.length&&f?t.createElement(t.Fragment,null,c):t.createElement(hW,null,t.createElement(pW,null,!_&&t.createElement(nB,{
|
|
18190
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(LW,{
|
|
18191
|
+
fill:"currentcolor"})},t.createElement(TW,{table:ae
|
|
18192
|
+
})),t.createElement(fW,null,ae.getHeaderGroups().map((e=>t.createElement(gW,{
|
|
18193
|
+
key:e.id},e.headers.map((e=>t.createElement(bW,{key:e.id,
|
|
18173
18194
|
className:"table-head-data"
|
|
18174
|
-
},e.isPlaceholder?null:ZY(e.column.columnDef.header,e.getContext())))))))),t.createElement(
|
|
18175
|
-
key:e.id,$isSelected:e.getIsSelected(),...
|
|
18176
|
-
},e.getVisibleCells().map((n=>t.createElement(
|
|
18177
|
-
|
|
18178
|
-
},ZY(n.column.columnDef.cell,n.getContext())))))))),o&&t.createElement(
|
|
18179
|
-
key:e.id},e.headers.map((e=>t.createElement(
|
|
18195
|
+
},e.isPlaceholder?null:ZY(e.column.columnDef.header,e.getContext())))))))),t.createElement(mW,null,l&&!i&&t.createElement(yW,null,t.createElement(Sv,null)),ge.map((e=>t.createElement(gW,{
|
|
18196
|
+
key:e.id,$isSelected:e.getIsSelected(),...q?.(e.original)
|
|
18197
|
+
},e.getVisibleCells().map((n=>t.createElement(wW,{key:n.id,onClick:()=>{
|
|
18198
|
+
O?.(e.original,n.column.columnDef)},...G?.(n)
|
|
18199
|
+
},ZY(n.column.columnDef.cell,n.getContext())))))))),o&&t.createElement(vW,null,ae.getFooterGroups().map((e=>t.createElement(gW,{
|
|
18200
|
+
key:e.id},e.headers.map((e=>t.createElement(bW,{key:e.id,
|
|
18180
18201
|
className:"table-head-data"
|
|
18181
|
-
},e.isPlaceholder?null:ZY(e.column.columnDef.footer,e.getContext())))))))),!
|
|
18182
|
-
colSpan:
|
|
18183
|
-
},t.createElement(
|
|
18184
|
-
variant:"secondary",onClick:()=>{
|
|
18185
|
-
},"<<"),t.createElement(kv,{variant:"secondary",onClick:()=>{
|
|
18186
|
-
disabled:!
|
|
18187
|
-
},"<"),
|
|
18188
|
-
variant:"secondary",className:"number-button",onClick:()=>{
|
|
18189
|
-
},"1"),
|
|
18202
|
+
},e.isPlaceholder?null:ZY(e.column.columnDef.footer,e.getContext())))))))),!H&&t.createElement(vW,null,t.createElement(gW,null,t.createElement(bW,{
|
|
18203
|
+
colSpan:Ce,className:"table-head-data table-pagination-head-data"
|
|
18204
|
+
},t.createElement(DW,{className:"table-pagination"},t.createElement(kv,{
|
|
18205
|
+
variant:"secondary",onClick:()=>{ve()},disabled:!ue()||i||l
|
|
18206
|
+
},"<<"),t.createElement(kv,{variant:"secondary",onClick:()=>{he()},
|
|
18207
|
+
disabled:!ue()||i||l
|
|
18208
|
+
},"<"),ye+1>2&&t.createElement(t.Fragment,null,t.createElement(kv,{
|
|
18209
|
+
variant:"secondary",className:"number-button",onClick:()=>{ve()},disabled:i||l
|
|
18210
|
+
},"1"),ye+1-3!=0&&t.createElement(kv,{variant:"secondary",
|
|
18190
18211
|
className:"dot-button",disabled:!0
|
|
18191
|
-
},"...")),
|
|
18192
|
-
key:e,variant:"secondary",className:"number-button "+(
|
|
18193
|
-
onClick:()=>{
|
|
18194
|
-
},e+1))),
|
|
18212
|
+
},"...")),de().map((e=>[e-2,e-1,e,e+1,e+2].includes(ye+1)&&t.createElement(kv,{
|
|
18213
|
+
key:e,variant:"secondary",className:"number-button "+(ye+1===e+1?"active":""),
|
|
18214
|
+
onClick:()=>{pe?.(e)},disabled:i||l
|
|
18215
|
+
},e+1))),ye+2<Math.ceil(n.length/be)-2&&t.createElement(t.Fragment,null,ye+2+3!==Math.ceil(n.length/be)&&t.createElement(kv,{
|
|
18195
18216
|
variant:"secondary",disabled:!0},"..."),t.createElement(kv,{variant:"secondary",
|
|
18196
|
-
onClick:()=>{
|
|
18197
|
-
},Math.ceil(n.length/
|
|
18198
|
-
|
|
18199
|
-
onClick:()=>{
|
|
18200
|
-
},">>"))))))))),!
|
|
18217
|
+
onClick:()=>{pe?.(Math.ceil(n.length/be)-1)},disabled:i||l
|
|
18218
|
+
},Math.ceil(n.length/be))),t.createElement(kv,{variant:"secondary",onClick:()=>{
|
|
18219
|
+
fe()},disabled:!se()||i||l},">"),t.createElement(kv,{variant:"secondary",
|
|
18220
|
+
onClick:()=>{me()},disabled:!se()||i||l
|
|
18221
|
+
},">>"))))))))),!v&&J&&d&&t.createElement(aW,null,d)))},aq=Wr.div`
|
|
18201
18222
|
display: flex;
|
|
18202
18223
|
flex-wrap: wrap;
|
|
18203
18224
|
flex-direction: ${({theme:e})=>"rtl"===e.direction?"row-reverse":"row"};
|
|
18204
18225
|
gap: 10px;
|
|
18205
18226
|
margin: 0;
|
|
18206
18227
|
padding: 0;
|
|
18207
|
-
`,
|
|
18228
|
+
`,iq=Wr.button`
|
|
18208
18229
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
18209
18230
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
18210
18231
|
font-weight: ${({theme:e})=>e.typography.primary.fontWeight};
|
|
@@ -18236,15 +18257,15 @@ onClick:()=>{pe()},disabled:!le()||i||l
|
|
|
18236
18257
|
box-shadow: none;
|
|
18237
18258
|
border-color: ${({theme:e})=>e.components.button.secondary.disabledBorderColor};
|
|
18238
18259
|
}
|
|
18239
|
-
`,
|
|
18260
|
+
`,lq=({value:e={},items:n,onChange:r,idAccessor:o="id",nameAccessor:a="name",disabled:i})=>{
|
|
18240
18261
|
const l=t=>{if(i)return;const n={...e};n[t]=!n[t],r?.(n)}
|
|
18241
|
-
;return t.createElement(
|
|
18262
|
+
;return t.createElement(aq,{role:"group"},n.map(((n,r)=>t.createElement(iq,{
|
|
18242
18263
|
key:r,id:n?.[o],"aria-label":n?.[a],value:n?.[o],tabIndex:0,type:"button",
|
|
18243
18264
|
"aria-disabled":!!n?.disabled||i,disabled:!!n?.disabled||i,
|
|
18244
18265
|
"aria-pressed":!!e?.[n?.[o]],$isSelected:!!e?.[n?.[o]],onKeyDown:e=>{
|
|
18245
18266
|
console.log("onKeyDown",{event:e,key:e.key
|
|
18246
18267
|
})," "!==e.key&&"Enter"!==e.key||(l(n?.[o]),e.preventDefault())},
|
|
18247
|
-
onClick:()=>l(n?.[o])},n?.[a]))))};var
|
|
18268
|
+
onClick:()=>l(n?.[o])},n?.[a]))))};var cq=Kr`
|
|
18248
18269
|
|
|
18249
18270
|
div:has( > div[data-tooltip-content]){
|
|
18250
18271
|
z-index: ${({theme:e})=>e.zIndex.tooltip||na.tooltip} !important;
|
|
@@ -18254,10 +18275,10 @@ div:has( > div[data-popover-content]){
|
|
|
18254
18275
|
z-index: ${({theme:e})=>e.zIndex.popover||na.popover} !important;
|
|
18255
18276
|
}
|
|
18256
18277
|
|
|
18257
|
-
`,
|
|
18278
|
+
`,sq=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
|
|
18258
18279
|
return je(void 0,void 0,void 0,(function(){return Ue(this,(function(n){
|
|
18259
18280
|
switch(n.label){case 0:return[4,Promise.resolve().then((function(){return TM}))]
|
|
18260
|
-
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),
|
|
18281
|
+
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),uq=Object.freeze({
|
|
18261
18282
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
18262
18283
|
return je(void 0,void 0,void 0,(function(){var n,r;return Ue(this,(function(o){
|
|
18263
18284
|
switch(o.label){case 0:
|
|
@@ -18265,4 +18286,4 @@ return n=_M(e),t!==DM.STANDARD?[3,2]:[4,Promise.resolve().then((function(){
|
|
|
18265
18286
|
return AM}))];case 1:return r=o.sent(),[3,4];case 2:
|
|
18266
18287
|
return[4,Promise.resolve().then((function(){return LM}))];case 3:
|
|
18267
18288
|
r=o.sent(),o.label=4;case 4:return[2,r[n]]}}))}))}})
|
|
18268
|
-
;export{Go as Accordion,Ha as Alert,Hv as AutoComplete,Yy as BoxedRadio,kv as Button,fy as ButtonDropdown,
|
|
18289
|
+
;export{Go as Accordion,Ha as Alert,Hv as AutoComplete,Yy as BoxedRadio,kv as Button,fy as ButtonDropdown,lq as Calendar,ma as CardActions,fa as CardContent,ga as CardDescription,ya as CardText,va as CardTitle,ib as Checkbox,Ao as Checkmark,ko as ChevronUp,fw as Confirmation,Vo as CrossIcon,MF as DatePicker,EF as DateRangePicker,xF as DateTimePicker,SF as DateTimeRangePicker,Ca as DialogChildrenWrapper,Lw as Drawer,kw as Dropdown,Am as DropdownInputItem,Pw as DropdownItem,iy as DropdownMenuItem,ly as DropdownMenuItemDew,To as ErrorIcon,Po as Freddy,cq as FreemiumUIGlobalStyles,pa as FreshLink,ha as IconButton,Io as InfoIcon,gv as Input,ua as InputLabel,Sv as Loader,Iw as Menu,Oo as Minus,Yw as Modal,No as MoreVertical,lC as MultiSelectDropdown,nB as Popover,tB as PopoverClose,QF as PopoverTrigger,sB as Radio,uB as RadioGroup,Xg as RadixMenuItem,ym as RadixSelectItem,XU as Reorder,da as RequiredIndicator,PW as SortDropdown,Er as StyleSheetManager,sa as StyledLabel,IW as Table,eG as Tabs,ZW as TabsContent,XW as TabsList,qW as TabsRoot,JW as TabsTrigger,iC as Tag,yv as TextArea,QG as ThemeProvider,ca as Themes,$o as TickIcon,HF as TimePicker,XG as ToastProvider,wK as Toggle,nq as Tooltip,ba as TriggerButtonWrapper,_a as Typography,Fo as Warning,oq as WorkspaceTable,za as dialogContentMixin,wa as dialogOverlayMixin,JG as useToasts};
|