@undefine-ui/design-system 3.3.0 → 3.4.0
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/README.md +414 -8
- package/dist/index.cjs +2141 -605
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +297 -3
- package/dist/index.d.ts +297 -3
- package/dist/index.js +2059 -514
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,12 +35,19 @@ __export(index_exports, {
|
|
|
35
35
|
CloudUpload: () => CloudUpload,
|
|
36
36
|
Copy: () => Copy,
|
|
37
37
|
CopyButton: () => CopyButton,
|
|
38
|
+
CustomDialog: () => CustomDialog,
|
|
39
|
+
CustomDrawer: () => CustomDrawer,
|
|
40
|
+
DateRangeDropdown: () => DateRangeDropdown,
|
|
41
|
+
DateRangePicker: () => DateRangePicker,
|
|
38
42
|
Download: () => Download,
|
|
39
43
|
EmptyContent: () => EmptyContent,
|
|
40
44
|
ErrorToast: () => ErrorToast,
|
|
41
45
|
Eye: () => Eye,
|
|
42
46
|
EyeClosed: () => EyeClosed,
|
|
47
|
+
FeedbackDialog: () => FeedbackDialog,
|
|
43
48
|
Field: () => Field,
|
|
49
|
+
FilterDropdown: () => FilterDropdown,
|
|
50
|
+
FilterList: () => FilterList,
|
|
44
51
|
Form: () => Form,
|
|
45
52
|
HelpCircle: () => HelpCircle,
|
|
46
53
|
Icon: () => Icon,
|
|
@@ -65,6 +72,7 @@ __export(index_exports, {
|
|
|
65
72
|
RHFAutocomplete: () => RHFAutocomplete,
|
|
66
73
|
RHFCheckbox: () => RHFCheckbox,
|
|
67
74
|
RHFDatePicker: () => RHFDatePicker,
|
|
75
|
+
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
68
76
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
69
77
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
70
78
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
@@ -83,6 +91,7 @@ __export(index_exports, {
|
|
|
83
91
|
SettingsContext: () => SettingsContext,
|
|
84
92
|
SettingsProvider: () => SettingsProvider,
|
|
85
93
|
SortDown: () => SortDown,
|
|
94
|
+
SortDropdown: () => SortDropdown,
|
|
86
95
|
SortUp: () => SortUp,
|
|
87
96
|
SplashScreen: () => SplashScreen,
|
|
88
97
|
StatDown: () => StatDown,
|
|
@@ -92,6 +101,14 @@ __export(index_exports, {
|
|
|
92
101
|
TablePagination: () => TablePagination,
|
|
93
102
|
ThemeProvider: () => ThemeProvider,
|
|
94
103
|
Toast: () => Toast,
|
|
104
|
+
ToolbarButton: () => ToolbarButton,
|
|
105
|
+
ToolbarDatePickerButton: () => ToolbarDatePickerButton,
|
|
106
|
+
ToolbarFilterButton: () => ToolbarFilterButton,
|
|
107
|
+
ToolbarSearchField: () => ToolbarSearchField,
|
|
108
|
+
ToolbarSettingsButton: () => ToolbarSettingsButton,
|
|
109
|
+
ToolbarSortButton: () => ToolbarSortButton,
|
|
110
|
+
ToolbarTodayButton: () => ToolbarTodayButton,
|
|
111
|
+
ToolbarViewSwitcher: () => ToolbarViewSwitcher,
|
|
95
112
|
Trash: () => Trash,
|
|
96
113
|
Upload: () => Upload,
|
|
97
114
|
User: () => User,
|
|
@@ -118,15 +135,20 @@ __export(index_exports, {
|
|
|
118
135
|
customShadows: () => customShadows,
|
|
119
136
|
customSpacing: () => customSpacing,
|
|
120
137
|
darkPalette: () => darkPalette,
|
|
138
|
+
defaultPresets: () => defaultPresets,
|
|
121
139
|
defaultSettings: () => defaultSettings,
|
|
140
|
+
dialogClasses: () => dialogClasses,
|
|
141
|
+
drawerClasses: () => drawerClasses,
|
|
122
142
|
error: () => error,
|
|
123
143
|
fCurrency: () => fCurrency,
|
|
124
144
|
fData: () => fData,
|
|
125
145
|
fNumber: () => fNumber,
|
|
126
146
|
fPercent: () => fPercent,
|
|
127
147
|
fShortenNumber: () => fShortenNumber,
|
|
148
|
+
feedbackDialogClasses: () => feedbackDialogClasses,
|
|
128
149
|
formatFullname: () => formatFullname,
|
|
129
150
|
getCurrencySymbol: () => getCurrencySymbol,
|
|
151
|
+
getDateRangeFromPreset: () => getDateRangeFromPreset,
|
|
130
152
|
getDefaultChartOptions: () => getDefaultChartOptions,
|
|
131
153
|
getInitials: () => getInitials,
|
|
132
154
|
getStorage: () => getStorage,
|
|
@@ -168,6 +190,7 @@ __export(index_exports, {
|
|
|
168
190
|
tertiaryFont: () => tertiaryFont,
|
|
169
191
|
text: () => text,
|
|
170
192
|
textGradient: () => textGradient,
|
|
193
|
+
toolbarClasses: () => toolbarClasses,
|
|
171
194
|
typography: () => typography,
|
|
172
195
|
updateComponentsWithSettings: () => updateComponentsWithSettings,
|
|
173
196
|
updateCoreWithSettings: () => updateCoreWithSettings,
|
|
@@ -1109,7 +1132,7 @@ var getLineHeight = (lineHeight, fontSize) => {
|
|
|
1109
1132
|
return lineHeight;
|
|
1110
1133
|
};
|
|
1111
1134
|
var maxLine = ({ line, persistent }) => {
|
|
1112
|
-
const
|
|
1135
|
+
const baseStyles6 = {
|
|
1113
1136
|
overflow: "hidden",
|
|
1114
1137
|
display: "-webkit-box",
|
|
1115
1138
|
textOverflow: "ellipsis",
|
|
@@ -1123,7 +1146,7 @@ var maxLine = ({ line, persistent }) => {
|
|
|
1123
1146
|
const fontSizeLg = getFontSize(persistent[mediaQueries.upLg]?.fontSize);
|
|
1124
1147
|
const lineHeight = getLineHeight(persistent.lineHeight, fontSizeBase);
|
|
1125
1148
|
return {
|
|
1126
|
-
...
|
|
1149
|
+
...baseStyles6,
|
|
1127
1150
|
...lineHeight && {
|
|
1128
1151
|
...fontSizeBase && { height: fontSizeBase * lineHeight * line },
|
|
1129
1152
|
...fontSizeSm && {
|
|
@@ -1138,7 +1161,7 @@ var maxLine = ({ line, persistent }) => {
|
|
|
1138
1161
|
}
|
|
1139
1162
|
};
|
|
1140
1163
|
}
|
|
1141
|
-
return
|
|
1164
|
+
return baseStyles6;
|
|
1142
1165
|
};
|
|
1143
1166
|
function paper({
|
|
1144
1167
|
theme,
|
|
@@ -1159,7 +1182,7 @@ function paper({
|
|
|
1159
1182
|
},
|
|
1160
1183
|
...dropdown && {
|
|
1161
1184
|
border: `1px solid ${theme.vars.palette.border.subtle}`,
|
|
1162
|
-
boxShadow: theme.customShadows["shadow-
|
|
1185
|
+
boxShadow: theme.customShadows["shadow-md"],
|
|
1163
1186
|
borderRadius: theme.radius["radius-md"]
|
|
1164
1187
|
}
|
|
1165
1188
|
};
|
|
@@ -2364,6 +2387,7 @@ __export(components_exports, {
|
|
|
2364
2387
|
ErrorToast: () => ErrorToast,
|
|
2365
2388
|
Eye: () => Eye,
|
|
2366
2389
|
EyeClosed: () => EyeClosed,
|
|
2390
|
+
FilterList: () => FilterList,
|
|
2367
2391
|
HelpCircle: () => HelpCircle,
|
|
2368
2392
|
InfoCircle: () => InfoCircle,
|
|
2369
2393
|
InfoCircleSolid: () => InfoCircleSolid,
|
|
@@ -3271,15 +3295,15 @@ var InfoToast = (props) => {
|
|
|
3271
3295
|
);
|
|
3272
3296
|
};
|
|
3273
3297
|
|
|
3274
|
-
// src/components/Icon/components/
|
|
3298
|
+
// src/components/Icon/components/EyeClosed.tsx
|
|
3275
3299
|
import { jsx as jsx22, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3276
|
-
var
|
|
3300
|
+
var EyeClosed = (props) => {
|
|
3277
3301
|
return /* @__PURE__ */ jsxs18(
|
|
3278
3302
|
"svg",
|
|
3279
3303
|
{
|
|
3280
|
-
width: "
|
|
3304
|
+
width: "24",
|
|
3281
3305
|
height: "24",
|
|
3282
|
-
viewBox: "0 0
|
|
3306
|
+
viewBox: "0 0 24 24",
|
|
3283
3307
|
fill: "none",
|
|
3284
3308
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3285
3309
|
...props,
|
|
@@ -3287,15 +3311,41 @@ var UserSolid = (props) => {
|
|
|
3287
3311
|
/* @__PURE__ */ jsx22(
|
|
3288
3312
|
"path",
|
|
3289
3313
|
{
|
|
3290
|
-
d: "
|
|
3291
|
-
|
|
3314
|
+
d: "M19.4996 16L17.0244 12.6038",
|
|
3315
|
+
stroke: "currentColor",
|
|
3316
|
+
strokeWidth: "1.5",
|
|
3317
|
+
strokeLinecap: "round",
|
|
3318
|
+
strokeLinejoin: "round"
|
|
3292
3319
|
}
|
|
3293
3320
|
),
|
|
3294
3321
|
/* @__PURE__ */ jsx22(
|
|
3295
3322
|
"path",
|
|
3296
3323
|
{
|
|
3297
|
-
d: "
|
|
3298
|
-
|
|
3324
|
+
d: "M12 17.5V14",
|
|
3325
|
+
stroke: "currentColor",
|
|
3326
|
+
strokeWidth: "1.5",
|
|
3327
|
+
strokeLinecap: "round",
|
|
3328
|
+
strokeLinejoin: "round"
|
|
3329
|
+
}
|
|
3330
|
+
),
|
|
3331
|
+
/* @__PURE__ */ jsx22(
|
|
3332
|
+
"path",
|
|
3333
|
+
{
|
|
3334
|
+
d: "M4.5 16L6.96895 12.6124",
|
|
3335
|
+
stroke: "currentColor",
|
|
3336
|
+
strokeWidth: "1.5",
|
|
3337
|
+
strokeLinecap: "round",
|
|
3338
|
+
strokeLinejoin: "round"
|
|
3339
|
+
}
|
|
3340
|
+
),
|
|
3341
|
+
/* @__PURE__ */ jsx22(
|
|
3342
|
+
"path",
|
|
3343
|
+
{
|
|
3344
|
+
d: "M3 8C6.6 16 17.4 16 21 8",
|
|
3345
|
+
stroke: "currentColor",
|
|
3346
|
+
strokeWidth: "1.5",
|
|
3347
|
+
strokeLinecap: "round",
|
|
3348
|
+
strokeLinejoin: "round"
|
|
3299
3349
|
}
|
|
3300
3350
|
)
|
|
3301
3351
|
]
|
|
@@ -3303,15 +3353,15 @@ var UserSolid = (props) => {
|
|
|
3303
3353
|
);
|
|
3304
3354
|
};
|
|
3305
3355
|
|
|
3306
|
-
// src/components/Icon/components/
|
|
3356
|
+
// src/components/Icon/components/UserSolid.tsx
|
|
3307
3357
|
import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3308
|
-
var
|
|
3358
|
+
var UserSolid = (props) => {
|
|
3309
3359
|
return /* @__PURE__ */ jsxs19(
|
|
3310
3360
|
"svg",
|
|
3311
3361
|
{
|
|
3312
|
-
width: "
|
|
3362
|
+
width: "19",
|
|
3313
3363
|
height: "24",
|
|
3314
|
-
viewBox: "0 0
|
|
3364
|
+
viewBox: "0 0 19 24",
|
|
3315
3365
|
fill: "none",
|
|
3316
3366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3317
3367
|
...props,
|
|
@@ -3319,41 +3369,60 @@ var EyeClosed = (props) => {
|
|
|
3319
3369
|
/* @__PURE__ */ jsx23(
|
|
3320
3370
|
"path",
|
|
3321
3371
|
{
|
|
3322
|
-
d: "
|
|
3323
|
-
|
|
3324
|
-
strokeWidth: "1.5",
|
|
3325
|
-
strokeLinecap: "round",
|
|
3326
|
-
strokeLinejoin: "round"
|
|
3372
|
+
d: "M9.33333 10.6667C12.2788 10.6667 14.6667 8.2788 14.6667 5.33333C14.6667 2.38781 12.2788 0 9.33333 0C6.38781 0 4 2.38781 4 5.33333C4 8.2788 6.38781 10.6667 9.33333 10.6667Z",
|
|
3373
|
+
fill: "currentColor"
|
|
3327
3374
|
}
|
|
3328
3375
|
),
|
|
3329
3376
|
/* @__PURE__ */ jsx23(
|
|
3330
3377
|
"path",
|
|
3331
3378
|
{
|
|
3332
|
-
d: "
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3379
|
+
d: "M0 23.3334V22C0 16.8454 4.17868 12.6667 9.33333 12.6667C14.488 12.6667 18.6667 16.8454 18.6667 22V23.3334",
|
|
3380
|
+
fill: "currentColor"
|
|
3381
|
+
}
|
|
3382
|
+
)
|
|
3383
|
+
]
|
|
3384
|
+
}
|
|
3385
|
+
);
|
|
3386
|
+
};
|
|
3387
|
+
|
|
3388
|
+
// src/components/Icon/components/FilterList.tsx
|
|
3389
|
+
import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3390
|
+
var FilterList = (props) => {
|
|
3391
|
+
return /* @__PURE__ */ jsxs20(
|
|
3392
|
+
"svg",
|
|
3393
|
+
{
|
|
3394
|
+
width: "24",
|
|
3395
|
+
height: "24",
|
|
3396
|
+
viewBox: "0 0 24 24",
|
|
3397
|
+
fill: "none",
|
|
3398
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3399
|
+
...props,
|
|
3400
|
+
children: [
|
|
3401
|
+
/* @__PURE__ */ jsx24(
|
|
3402
|
+
"path",
|
|
3403
|
+
{
|
|
3404
|
+
fillRule: "evenodd",
|
|
3405
|
+
clipRule: "evenodd",
|
|
3406
|
+
d: "M2.25 6C2.25 5.58579 2.58579 5.25 3 5.25H21C21.4142 5.25 21.75 5.58579 21.75 6C21.75 6.41421 21.4142 6.75 21 6.75H3C2.58579 6.75 2.25 6.41421 2.25 6Z",
|
|
3407
|
+
fill: "currentColor"
|
|
3337
3408
|
}
|
|
3338
3409
|
),
|
|
3339
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ jsx24(
|
|
3340
3411
|
"path",
|
|
3341
3412
|
{
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
strokeLinejoin: "round"
|
|
3413
|
+
fillRule: "evenodd",
|
|
3414
|
+
clipRule: "evenodd",
|
|
3415
|
+
d: "M6.25 12C6.25 11.5858 6.58579 11.25 7 11.25L17 11.25C17.4142 11.25 17.75 11.5858 17.75 12C17.75 12.4142 17.4142 12.75 17 12.75L7 12.75C6.58579 12.75 6.25 12.4142 6.25 12Z",
|
|
3416
|
+
fill: "currentColor"
|
|
3347
3417
|
}
|
|
3348
3418
|
),
|
|
3349
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ jsx24(
|
|
3350
3420
|
"path",
|
|
3351
3421
|
{
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
strokeLinejoin: "round"
|
|
3422
|
+
fillRule: "evenodd",
|
|
3423
|
+
clipRule: "evenodd",
|
|
3424
|
+
d: "M10.25 18C10.25 17.5858 10.5858 17.25 11 17.25L13 17.25C13.4142 17.25 13.75 17.5858 13.75 18C13.75 18.4142 13.4142 18.75 13 18.75L11 18.75C10.5858 18.75 10.25 18.4142 10.25 18Z",
|
|
3425
|
+
fill: "currentColor"
|
|
3357
3426
|
}
|
|
3358
3427
|
)
|
|
3359
3428
|
]
|
|
@@ -3362,9 +3431,9 @@ var EyeClosed = (props) => {
|
|
|
3362
3431
|
};
|
|
3363
3432
|
|
|
3364
3433
|
// src/components/Icon/components/ErrorToast.tsx
|
|
3365
|
-
import { jsx as
|
|
3434
|
+
import { jsx as jsx25, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3366
3435
|
var ErrorToast = (props) => {
|
|
3367
|
-
return /* @__PURE__ */
|
|
3436
|
+
return /* @__PURE__ */ jsxs21(
|
|
3368
3437
|
"svg",
|
|
3369
3438
|
{
|
|
3370
3439
|
width: "30",
|
|
@@ -3374,8 +3443,8 @@ var ErrorToast = (props) => {
|
|
|
3374
3443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3375
3444
|
...props,
|
|
3376
3445
|
children: [
|
|
3377
|
-
/* @__PURE__ */
|
|
3378
|
-
/* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsx25("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", stroke: "#EF4444", strokeOpacity: "0.1" }),
|
|
3447
|
+
/* @__PURE__ */ jsx25(
|
|
3379
3448
|
"rect",
|
|
3380
3449
|
{
|
|
3381
3450
|
x: "3.5",
|
|
@@ -3387,7 +3456,7 @@ var ErrorToast = (props) => {
|
|
|
3387
3456
|
"stroke-Opacity": "0.3"
|
|
3388
3457
|
}
|
|
3389
3458
|
),
|
|
3390
|
-
/* @__PURE__ */
|
|
3459
|
+
/* @__PURE__ */ jsx25(
|
|
3391
3460
|
"path",
|
|
3392
3461
|
{
|
|
3393
3462
|
fillRule: "evenodd",
|
|
@@ -3396,7 +3465,7 @@ var ErrorToast = (props) => {
|
|
|
3396
3465
|
fill: "#D93636"
|
|
3397
3466
|
}
|
|
3398
3467
|
),
|
|
3399
|
-
/* @__PURE__ */
|
|
3468
|
+
/* @__PURE__ */ jsx25(
|
|
3400
3469
|
"path",
|
|
3401
3470
|
{
|
|
3402
3471
|
fillRule: "evenodd",
|
|
@@ -3411,9 +3480,9 @@ var ErrorToast = (props) => {
|
|
|
3411
3480
|
};
|
|
3412
3481
|
|
|
3413
3482
|
// src/components/Icon/components/KeyCommand.tsx
|
|
3414
|
-
import { jsx as
|
|
3483
|
+
import { jsx as jsx26, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3415
3484
|
var KeyCommand = (props) => {
|
|
3416
|
-
return /* @__PURE__ */
|
|
3485
|
+
return /* @__PURE__ */ jsxs22(
|
|
3417
3486
|
"svg",
|
|
3418
3487
|
{
|
|
3419
3488
|
width: "14",
|
|
@@ -3423,7 +3492,7 @@ var KeyCommand = (props) => {
|
|
|
3423
3492
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3424
3493
|
...props,
|
|
3425
3494
|
children: [
|
|
3426
|
-
/* @__PURE__ */
|
|
3495
|
+
/* @__PURE__ */ jsx26(
|
|
3427
3496
|
"path",
|
|
3428
3497
|
{
|
|
3429
3498
|
d: "M5.25 3.5V10.5",
|
|
@@ -3433,7 +3502,7 @@ var KeyCommand = (props) => {
|
|
|
3433
3502
|
strokeLinejoin: "round"
|
|
3434
3503
|
}
|
|
3435
3504
|
),
|
|
3436
|
-
/* @__PURE__ */
|
|
3505
|
+
/* @__PURE__ */ jsx26(
|
|
3437
3506
|
"path",
|
|
3438
3507
|
{
|
|
3439
3508
|
d: "M8.75 3.5V10.5",
|
|
@@ -3443,7 +3512,7 @@ var KeyCommand = (props) => {
|
|
|
3443
3512
|
strokeLinejoin: "round"
|
|
3444
3513
|
}
|
|
3445
3514
|
),
|
|
3446
|
-
/* @__PURE__ */
|
|
3515
|
+
/* @__PURE__ */ jsx26(
|
|
3447
3516
|
"path",
|
|
3448
3517
|
{
|
|
3449
3518
|
d: "M5.25 3.5C5.25 2.5335 4.4665 1.75 3.5 1.75C2.5335 1.75 1.75 2.5335 1.75 3.5C1.75 4.4665 2.5335 5.25 3.5 5.25H10.5C11.4665 5.25 12.25 4.4665 12.25 3.5C12.25 2.5335 11.4665 1.75 10.5 1.75C9.5335 1.75 8.75 2.5335 8.75 3.5",
|
|
@@ -3453,7 +3522,7 @@ var KeyCommand = (props) => {
|
|
|
3453
3522
|
strokeLinejoin: "round"
|
|
3454
3523
|
}
|
|
3455
3524
|
),
|
|
3456
|
-
/* @__PURE__ */
|
|
3525
|
+
/* @__PURE__ */ jsx26(
|
|
3457
3526
|
"path",
|
|
3458
3527
|
{
|
|
3459
3528
|
d: "M5.25 10.5C5.25 11.4665 4.4665 12.25 3.5 12.25C2.5335 12.25 1.75 11.4665 1.75 10.5C1.75 9.5335 2.5335 8.75 3.5 8.75H10.5C11.4665 8.75 12.25 9.5335 12.25 10.5C12.25 11.4665 11.4665 12.25 10.5 12.25C9.5335 12.25 8.75 11.4665 8.75 10.5",
|
|
@@ -3469,9 +3538,9 @@ var KeyCommand = (props) => {
|
|
|
3469
3538
|
};
|
|
3470
3539
|
|
|
3471
3540
|
// src/components/Icon/components/XMarkSolid.tsx
|
|
3472
|
-
import { jsx as
|
|
3541
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
3473
3542
|
var XMarkSolid = (props) => {
|
|
3474
|
-
return /* @__PURE__ */
|
|
3543
|
+
return /* @__PURE__ */ jsx27(
|
|
3475
3544
|
"svg",
|
|
3476
3545
|
{
|
|
3477
3546
|
width: "24",
|
|
@@ -3480,7 +3549,7 @@ var XMarkSolid = (props) => {
|
|
|
3480
3549
|
fill: "none",
|
|
3481
3550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3482
3551
|
...props,
|
|
3483
|
-
children: /* @__PURE__ */
|
|
3552
|
+
children: /* @__PURE__ */ jsx27(
|
|
3484
3553
|
"path",
|
|
3485
3554
|
{
|
|
3486
3555
|
d: "M12 1.25C17.9371 1.25 22.75 6.06294 22.75 12C22.75 17.9371 17.9371 22.75 12 22.75C6.06294 22.75 1.25 17.9371 1.25 12C1.25 6.06294 6.06294 1.25 12 1.25ZM15.3584 8.6416C15.0655 8.34871 14.5907 8.34871 14.2979 8.6416L12 10.9395L9.70117 8.6416C9.40827 8.34876 8.9335 8.34873 8.64062 8.6416C8.34811 8.9345 8.34791 9.40937 8.64062 9.70215L10.9395 12L8.64062 14.2979C8.34791 14.5906 8.34811 15.0655 8.64062 15.3584C8.9335 15.6513 9.40827 15.6512 9.70117 15.3584L12 13.0605L14.2979 15.3584C14.5907 15.6513 15.0655 15.6513 15.3584 15.3584C15.6512 15.0655 15.6512 14.5907 15.3584 14.2979L13.0605 12L15.3584 9.70215C15.6512 9.4093 15.6512 8.93451 15.3584 8.6416Z",
|
|
@@ -3492,9 +3561,9 @@ var XMarkSolid = (props) => {
|
|
|
3492
3561
|
};
|
|
3493
3562
|
|
|
3494
3563
|
// src/components/Icon/components/Attachment.tsx
|
|
3495
|
-
import { jsx as
|
|
3564
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3496
3565
|
var Attachment = (props) => {
|
|
3497
|
-
return /* @__PURE__ */
|
|
3566
|
+
return /* @__PURE__ */ jsx28(
|
|
3498
3567
|
"svg",
|
|
3499
3568
|
{
|
|
3500
3569
|
width: "20",
|
|
@@ -3503,7 +3572,7 @@ var Attachment = (props) => {
|
|
|
3503
3572
|
fill: "none",
|
|
3504
3573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3505
3574
|
...props,
|
|
3506
|
-
children: /* @__PURE__ */
|
|
3575
|
+
children: /* @__PURE__ */ jsx28(
|
|
3507
3576
|
"path",
|
|
3508
3577
|
{
|
|
3509
3578
|
fillRule: "evenodd",
|
|
@@ -3517,9 +3586,9 @@ var Attachment = (props) => {
|
|
|
3517
3586
|
};
|
|
3518
3587
|
|
|
3519
3588
|
// src/components/Icon/components/HelpCircle.tsx
|
|
3520
|
-
import { jsx as
|
|
3589
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3521
3590
|
var HelpCircle = (props) => {
|
|
3522
|
-
return /* @__PURE__ */
|
|
3591
|
+
return /* @__PURE__ */ jsxs23(
|
|
3523
3592
|
"svg",
|
|
3524
3593
|
{
|
|
3525
3594
|
width: "16",
|
|
@@ -3529,8 +3598,8 @@ var HelpCircle = (props) => {
|
|
|
3529
3598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3530
3599
|
...props,
|
|
3531
3600
|
children: [
|
|
3532
|
-
/* @__PURE__ */
|
|
3533
|
-
/* @__PURE__ */
|
|
3601
|
+
/* @__PURE__ */ jsxs23("g", { "clip-path": "url(#clip0_2471_10977)", children: [
|
|
3602
|
+
/* @__PURE__ */ jsx29(
|
|
3534
3603
|
"path",
|
|
3535
3604
|
{
|
|
3536
3605
|
fillRule: "evenodd",
|
|
@@ -3539,7 +3608,7 @@ var HelpCircle = (props) => {
|
|
|
3539
3608
|
fill: "currentColor"
|
|
3540
3609
|
}
|
|
3541
3610
|
),
|
|
3542
|
-
/* @__PURE__ */
|
|
3611
|
+
/* @__PURE__ */ jsx29(
|
|
3543
3612
|
"path",
|
|
3544
3613
|
{
|
|
3545
3614
|
fillRule: "evenodd",
|
|
@@ -3548,7 +3617,7 @@ var HelpCircle = (props) => {
|
|
|
3548
3617
|
fill: "currentColor"
|
|
3549
3618
|
}
|
|
3550
3619
|
),
|
|
3551
|
-
/* @__PURE__ */
|
|
3620
|
+
/* @__PURE__ */ jsx29(
|
|
3552
3621
|
"path",
|
|
3553
3622
|
{
|
|
3554
3623
|
fillRule: "evenodd",
|
|
@@ -3558,16 +3627,16 @@ var HelpCircle = (props) => {
|
|
|
3558
3627
|
}
|
|
3559
3628
|
)
|
|
3560
3629
|
] }),
|
|
3561
|
-
/* @__PURE__ */
|
|
3630
|
+
/* @__PURE__ */ jsx29("defs", { children: /* @__PURE__ */ jsx29("clipPath", { id: "clip0_2471_10977", children: /* @__PURE__ */ jsx29("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3562
3631
|
]
|
|
3563
3632
|
}
|
|
3564
3633
|
);
|
|
3565
3634
|
};
|
|
3566
3635
|
|
|
3567
3636
|
// src/components/Icon/components/PlusSquare.tsx
|
|
3568
|
-
import { jsx as
|
|
3637
|
+
import { jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3569
3638
|
var PlusSquare = (props) => {
|
|
3570
|
-
return /* @__PURE__ */
|
|
3639
|
+
return /* @__PURE__ */ jsxs24(
|
|
3571
3640
|
"svg",
|
|
3572
3641
|
{
|
|
3573
3642
|
width: "18",
|
|
@@ -3577,7 +3646,7 @@ var PlusSquare = (props) => {
|
|
|
3577
3646
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3578
3647
|
...props,
|
|
3579
3648
|
children: [
|
|
3580
|
-
/* @__PURE__ */
|
|
3649
|
+
/* @__PURE__ */ jsx30(
|
|
3581
3650
|
"path",
|
|
3582
3651
|
{
|
|
3583
3652
|
fillRule: "evenodd",
|
|
@@ -3586,7 +3655,7 @@ var PlusSquare = (props) => {
|
|
|
3586
3655
|
fill: "currentColor"
|
|
3587
3656
|
}
|
|
3588
3657
|
),
|
|
3589
|
-
/* @__PURE__ */
|
|
3658
|
+
/* @__PURE__ */ jsx30(
|
|
3590
3659
|
"path",
|
|
3591
3660
|
{
|
|
3592
3661
|
fillRule: "evenodd",
|
|
@@ -3601,9 +3670,9 @@ var PlusSquare = (props) => {
|
|
|
3601
3670
|
};
|
|
3602
3671
|
|
|
3603
3672
|
// src/components/Icon/components/InfoCircle.tsx
|
|
3604
|
-
import { jsx as
|
|
3673
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3605
3674
|
var InfoCircle = (props) => {
|
|
3606
|
-
return /* @__PURE__ */
|
|
3675
|
+
return /* @__PURE__ */ jsxs25(
|
|
3607
3676
|
"svg",
|
|
3608
3677
|
{
|
|
3609
3678
|
width: "16",
|
|
@@ -3613,8 +3682,8 @@ var InfoCircle = (props) => {
|
|
|
3613
3682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3614
3683
|
...props,
|
|
3615
3684
|
children: [
|
|
3616
|
-
/* @__PURE__ */
|
|
3617
|
-
/* @__PURE__ */
|
|
3685
|
+
/* @__PURE__ */ jsxs25("g", { "clip-path": "url(#clip0_1881_10590)", children: [
|
|
3686
|
+
/* @__PURE__ */ jsx31(
|
|
3618
3687
|
"path",
|
|
3619
3688
|
{
|
|
3620
3689
|
fillRule: "evenodd",
|
|
@@ -3623,7 +3692,7 @@ var InfoCircle = (props) => {
|
|
|
3623
3692
|
fill: "currentColor"
|
|
3624
3693
|
}
|
|
3625
3694
|
),
|
|
3626
|
-
/* @__PURE__ */
|
|
3695
|
+
/* @__PURE__ */ jsx31(
|
|
3627
3696
|
"path",
|
|
3628
3697
|
{
|
|
3629
3698
|
fillRule: "evenodd",
|
|
@@ -3632,7 +3701,7 @@ var InfoCircle = (props) => {
|
|
|
3632
3701
|
fill: "currentColor"
|
|
3633
3702
|
}
|
|
3634
3703
|
),
|
|
3635
|
-
/* @__PURE__ */
|
|
3704
|
+
/* @__PURE__ */ jsx31(
|
|
3636
3705
|
"path",
|
|
3637
3706
|
{
|
|
3638
3707
|
fillRule: "evenodd",
|
|
@@ -3642,16 +3711,16 @@ var InfoCircle = (props) => {
|
|
|
3642
3711
|
}
|
|
3643
3712
|
)
|
|
3644
3713
|
] }),
|
|
3645
|
-
/* @__PURE__ */
|
|
3714
|
+
/* @__PURE__ */ jsx31("defs", { children: /* @__PURE__ */ jsx31("clipPath", { id: "clip0_1881_10590", children: /* @__PURE__ */ jsx31("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3646
3715
|
]
|
|
3647
3716
|
}
|
|
3648
3717
|
);
|
|
3649
3718
|
};
|
|
3650
3719
|
|
|
3651
3720
|
// src/components/Icon/components/CloudUpload.tsx
|
|
3652
|
-
import { jsx as
|
|
3721
|
+
import { jsx as jsx32, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3653
3722
|
var CloudUpload = (props) => {
|
|
3654
|
-
return /* @__PURE__ */
|
|
3723
|
+
return /* @__PURE__ */ jsxs26(
|
|
3655
3724
|
"svg",
|
|
3656
3725
|
{
|
|
3657
3726
|
width: "32",
|
|
@@ -3661,7 +3730,7 @@ var CloudUpload = (props) => {
|
|
|
3661
3730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3662
3731
|
...props,
|
|
3663
3732
|
children: [
|
|
3664
|
-
/* @__PURE__ */
|
|
3733
|
+
/* @__PURE__ */ jsx32(
|
|
3665
3734
|
"path",
|
|
3666
3735
|
{
|
|
3667
3736
|
d: "M16.0007 29.3333V17.3333M16.0007 17.3333L20.6673 21.9999M16.0007 17.3333L11.334 21.9999",
|
|
@@ -3671,7 +3740,7 @@ var CloudUpload = (props) => {
|
|
|
3671
3740
|
strokeLinejoin: "round"
|
|
3672
3741
|
}
|
|
3673
3742
|
),
|
|
3674
|
-
/* @__PURE__ */
|
|
3743
|
+
/* @__PURE__ */ jsx32(
|
|
3675
3744
|
"path",
|
|
3676
3745
|
{
|
|
3677
3746
|
d: "M26.6673 23.4764C28.6589 22.6963 30.6673 20.9186 30.6673 17.3334C30.6673 12.0001 26.2229 10.6667 24.0006 10.6667C24.0006 8.00008 24.0006 2.66675 16.0007 2.66675C8.00065 2.66675 8.00065 8.00008 8.00065 10.6667C5.77843 10.6667 1.33398 12.0001 1.33398 17.3334C1.33398 20.9186 3.34235 22.6963 5.33399 23.4764",
|
|
@@ -3687,9 +3756,9 @@ var CloudUpload = (props) => {
|
|
|
3687
3756
|
};
|
|
3688
3757
|
|
|
3689
3758
|
// src/components/Icon/components/RadioSelect.tsx
|
|
3690
|
-
import { jsx as
|
|
3759
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3691
3760
|
var RadioSelect = (props) => {
|
|
3692
|
-
return /* @__PURE__ */
|
|
3761
|
+
return /* @__PURE__ */ jsx33(
|
|
3693
3762
|
"svg",
|
|
3694
3763
|
{
|
|
3695
3764
|
width: "17",
|
|
@@ -3698,15 +3767,15 @@ var RadioSelect = (props) => {
|
|
|
3698
3767
|
fill: "none",
|
|
3699
3768
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3700
3769
|
...props,
|
|
3701
|
-
children: /* @__PURE__ */
|
|
3770
|
+
children: /* @__PURE__ */ jsx33("rect", { x: "2.5", y: "2", width: "12", height: "12", rx: "6", stroke: "currentColor", strokeWidth: "4" })
|
|
3702
3771
|
}
|
|
3703
3772
|
);
|
|
3704
3773
|
};
|
|
3705
3774
|
|
|
3706
3775
|
// src/components/Icon/components/SuccessToast.tsx
|
|
3707
|
-
import { jsx as
|
|
3776
|
+
import { jsx as jsx34, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3708
3777
|
var SuccessToast = (props) => {
|
|
3709
|
-
return /* @__PURE__ */
|
|
3778
|
+
return /* @__PURE__ */ jsxs27(
|
|
3710
3779
|
"svg",
|
|
3711
3780
|
{
|
|
3712
3781
|
width: "30",
|
|
@@ -3716,7 +3785,7 @@ var SuccessToast = (props) => {
|
|
|
3716
3785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3717
3786
|
...props,
|
|
3718
3787
|
children: [
|
|
3719
|
-
/* @__PURE__ */
|
|
3788
|
+
/* @__PURE__ */ jsx34(
|
|
3720
3789
|
"rect",
|
|
3721
3790
|
{
|
|
3722
3791
|
x: "0.5",
|
|
@@ -3728,8 +3797,8 @@ var SuccessToast = (props) => {
|
|
|
3728
3797
|
"stroke-opacity": "0.1"
|
|
3729
3798
|
}
|
|
3730
3799
|
),
|
|
3731
|
-
/* @__PURE__ */
|
|
3732
|
-
/* @__PURE__ */
|
|
3800
|
+
/* @__PURE__ */ jsx34("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#22C55E", strokeOpacity: "0.3" }),
|
|
3801
|
+
/* @__PURE__ */ jsx34(
|
|
3733
3802
|
"path",
|
|
3734
3803
|
{
|
|
3735
3804
|
fillRule: "evenodd",
|
|
@@ -3738,7 +3807,7 @@ var SuccessToast = (props) => {
|
|
|
3738
3807
|
fill: "#1AB04F"
|
|
3739
3808
|
}
|
|
3740
3809
|
),
|
|
3741
|
-
/* @__PURE__ */
|
|
3810
|
+
/* @__PURE__ */ jsx34(
|
|
3742
3811
|
"path",
|
|
3743
3812
|
{
|
|
3744
3813
|
fillRule: "evenodd",
|
|
@@ -3753,9 +3822,9 @@ var SuccessToast = (props) => {
|
|
|
3753
3822
|
};
|
|
3754
3823
|
|
|
3755
3824
|
// src/components/Icon/components/WarningToast.tsx
|
|
3756
|
-
import { jsx as
|
|
3825
|
+
import { jsx as jsx35, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3757
3826
|
var WarningToast = (props) => {
|
|
3758
|
-
return /* @__PURE__ */
|
|
3827
|
+
return /* @__PURE__ */ jsxs28(
|
|
3759
3828
|
"svg",
|
|
3760
3829
|
{
|
|
3761
3830
|
width: "30",
|
|
@@ -3765,18 +3834,18 @@ var WarningToast = (props) => {
|
|
|
3765
3834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3766
3835
|
...props,
|
|
3767
3836
|
children: [
|
|
3768
|
-
/* @__PURE__ */
|
|
3769
|
-
/* @__PURE__ */
|
|
3770
|
-
/* @__PURE__ */
|
|
3837
|
+
/* @__PURE__ */ jsx35("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", stroke: "#F59E0B", strokeOpacity: "0.1" }),
|
|
3838
|
+
/* @__PURE__ */ jsx35("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#F59E0B", strokeOpacity: "0.3" }),
|
|
3839
|
+
/* @__PURE__ */ jsx35(
|
|
3771
3840
|
"path",
|
|
3772
3841
|
{
|
|
3773
|
-
|
|
3774
|
-
|
|
3842
|
+
fillRule: "evenodd",
|
|
3843
|
+
clipRule: "evenodd",
|
|
3775
3844
|
d: "M15 10.2083C15.3452 10.2083 15.625 10.4881 15.625 10.8333V15.8333C15.625 16.1785 15.3452 16.4583 15 16.4583C14.6548 16.4583 14.375 16.1785 14.375 15.8333L14.375 10.8333C14.375 10.4881 14.6548 10.2083 15 10.2083Z",
|
|
3776
3845
|
fill: "#DB8709"
|
|
3777
3846
|
}
|
|
3778
3847
|
),
|
|
3779
|
-
/* @__PURE__ */
|
|
3848
|
+
/* @__PURE__ */ jsx35(
|
|
3780
3849
|
"path",
|
|
3781
3850
|
{
|
|
3782
3851
|
fillRule: "evenodd",
|
|
@@ -3785,7 +3854,7 @@ var WarningToast = (props) => {
|
|
|
3785
3854
|
fill: "#DB8709"
|
|
3786
3855
|
}
|
|
3787
3856
|
),
|
|
3788
|
-
/* @__PURE__ */
|
|
3857
|
+
/* @__PURE__ */ jsx35(
|
|
3789
3858
|
"path",
|
|
3790
3859
|
{
|
|
3791
3860
|
fillRule: "evenodd",
|
|
@@ -3800,9 +3869,9 @@ var WarningToast = (props) => {
|
|
|
3800
3869
|
};
|
|
3801
3870
|
|
|
3802
3871
|
// src/components/Icon/components/RadioDefault.tsx
|
|
3803
|
-
import { jsx as
|
|
3872
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3804
3873
|
var RadioDefault = (props) => {
|
|
3805
|
-
return /* @__PURE__ */
|
|
3874
|
+
return /* @__PURE__ */ jsx36(
|
|
3806
3875
|
"svg",
|
|
3807
3876
|
{
|
|
3808
3877
|
width: "16",
|
|
@@ -3811,15 +3880,15 @@ var RadioDefault = (props) => {
|
|
|
3811
3880
|
fill: "none",
|
|
3812
3881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3813
3882
|
...props,
|
|
3814
|
-
children: /* @__PURE__ */
|
|
3883
|
+
children: /* @__PURE__ */ jsx36("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "7.5", stroke: "currentColor" })
|
|
3815
3884
|
}
|
|
3816
3885
|
);
|
|
3817
3886
|
};
|
|
3818
3887
|
|
|
3819
3888
|
// src/components/Icon/components/NavArrowDown.tsx
|
|
3820
|
-
import { jsx as
|
|
3889
|
+
import { jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3821
3890
|
var NavArrowDown = (props) => {
|
|
3822
|
-
return /* @__PURE__ */
|
|
3891
|
+
return /* @__PURE__ */ jsxs29(
|
|
3823
3892
|
"svg",
|
|
3824
3893
|
{
|
|
3825
3894
|
width: "16",
|
|
@@ -3829,7 +3898,7 @@ var NavArrowDown = (props) => {
|
|
|
3829
3898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3830
3899
|
...props,
|
|
3831
3900
|
children: [
|
|
3832
|
-
/* @__PURE__ */
|
|
3901
|
+
/* @__PURE__ */ jsx37(
|
|
3833
3902
|
"path",
|
|
3834
3903
|
{
|
|
3835
3904
|
d: "M4 6L8 10L12 6",
|
|
@@ -3839,7 +3908,7 @@ var NavArrowDown = (props) => {
|
|
|
3839
3908
|
strokeLinejoin: "round"
|
|
3840
3909
|
}
|
|
3841
3910
|
),
|
|
3842
|
-
/* @__PURE__ */
|
|
3911
|
+
/* @__PURE__ */ jsx37(
|
|
3843
3912
|
"path",
|
|
3844
3913
|
{
|
|
3845
3914
|
fillRule: "evenodd",
|
|
@@ -3854,9 +3923,9 @@ var NavArrowDown = (props) => {
|
|
|
3854
3923
|
};
|
|
3855
3924
|
|
|
3856
3925
|
// src/components/Icon/components/NavArrowLeft.tsx
|
|
3857
|
-
import { jsx as
|
|
3926
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3858
3927
|
var NavArrowLeft = (props) => {
|
|
3859
|
-
return /* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ jsx38(
|
|
3860
3929
|
"svg",
|
|
3861
3930
|
{
|
|
3862
3931
|
width: "25",
|
|
@@ -3865,7 +3934,7 @@ var NavArrowLeft = (props) => {
|
|
|
3865
3934
|
fill: "none",
|
|
3866
3935
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3867
3936
|
...props,
|
|
3868
|
-
children: /* @__PURE__ */
|
|
3937
|
+
children: /* @__PURE__ */ jsx38(
|
|
3869
3938
|
"path",
|
|
3870
3939
|
{
|
|
3871
3940
|
fillRule: "evenodd",
|
|
@@ -3879,9 +3948,9 @@ var NavArrowLeft = (props) => {
|
|
|
3879
3948
|
};
|
|
3880
3949
|
|
|
3881
3950
|
// src/components/Icon/components/NavArrowRight.tsx
|
|
3882
|
-
import { jsx as
|
|
3951
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3883
3952
|
var NavArrowRight = (props) => {
|
|
3884
|
-
return /* @__PURE__ */
|
|
3953
|
+
return /* @__PURE__ */ jsx39(
|
|
3885
3954
|
"svg",
|
|
3886
3955
|
{
|
|
3887
3956
|
width: "25",
|
|
@@ -3890,7 +3959,7 @@ var NavArrowRight = (props) => {
|
|
|
3890
3959
|
fill: "none",
|
|
3891
3960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3892
3961
|
...props,
|
|
3893
|
-
children: /* @__PURE__ */
|
|
3962
|
+
children: /* @__PURE__ */ jsx39(
|
|
3894
3963
|
"path",
|
|
3895
3964
|
{
|
|
3896
3965
|
fillRule: "evenodd",
|
|
@@ -3904,9 +3973,9 @@ var NavArrowRight = (props) => {
|
|
|
3904
3973
|
};
|
|
3905
3974
|
|
|
3906
3975
|
// src/components/Icon/components/ClipboardCheck.tsx
|
|
3907
|
-
import { jsx as
|
|
3976
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3908
3977
|
var ClipboardCheck = (props) => {
|
|
3909
|
-
return /* @__PURE__ */
|
|
3978
|
+
return /* @__PURE__ */ jsxs30(
|
|
3910
3979
|
"svg",
|
|
3911
3980
|
{
|
|
3912
3981
|
width: "24",
|
|
@@ -3916,7 +3985,7 @@ var ClipboardCheck = (props) => {
|
|
|
3916
3985
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3917
3986
|
...props,
|
|
3918
3987
|
children: [
|
|
3919
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ jsx40(
|
|
3920
3989
|
"path",
|
|
3921
3990
|
{
|
|
3922
3991
|
fillRule: "evenodd",
|
|
@@ -3925,7 +3994,7 @@ var ClipboardCheck = (props) => {
|
|
|
3925
3994
|
fill: "currentColor"
|
|
3926
3995
|
}
|
|
3927
3996
|
),
|
|
3928
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ jsx40(
|
|
3929
3998
|
"path",
|
|
3930
3999
|
{
|
|
3931
4000
|
fillRule: "evenodd",
|
|
@@ -3934,7 +4003,7 @@ var ClipboardCheck = (props) => {
|
|
|
3934
4003
|
fill: "currentColor"
|
|
3935
4004
|
}
|
|
3936
4005
|
),
|
|
3937
|
-
/* @__PURE__ */
|
|
4006
|
+
/* @__PURE__ */ jsx40(
|
|
3938
4007
|
"path",
|
|
3939
4008
|
{
|
|
3940
4009
|
fillRule: "evenodd",
|
|
@@ -3943,7 +4012,7 @@ var ClipboardCheck = (props) => {
|
|
|
3943
4012
|
fill: "currentColor"
|
|
3944
4013
|
}
|
|
3945
4014
|
),
|
|
3946
|
-
/* @__PURE__ */
|
|
4015
|
+
/* @__PURE__ */ jsx40(
|
|
3947
4016
|
"path",
|
|
3948
4017
|
{
|
|
3949
4018
|
fillRule: "evenodd",
|
|
@@ -3958,9 +4027,9 @@ var ClipboardCheck = (props) => {
|
|
|
3958
4027
|
};
|
|
3959
4028
|
|
|
3960
4029
|
// src/components/Icon/components/CheckboxSelect.tsx
|
|
3961
|
-
import { jsx as
|
|
4030
|
+
import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3962
4031
|
var CheckboxSelect = (props) => {
|
|
3963
|
-
return /* @__PURE__ */
|
|
4032
|
+
return /* @__PURE__ */ jsxs31(
|
|
3964
4033
|
"svg",
|
|
3965
4034
|
{
|
|
3966
4035
|
width: "24",
|
|
@@ -3970,14 +4039,14 @@ var CheckboxSelect = (props) => {
|
|
|
3970
4039
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3971
4040
|
...props,
|
|
3972
4041
|
children: [
|
|
3973
|
-
/* @__PURE__ */
|
|
4042
|
+
/* @__PURE__ */ jsx41(
|
|
3974
4043
|
"path",
|
|
3975
4044
|
{
|
|
3976
4045
|
d: "M0 8C0 3.58172 3.58172 0 8 0H16C20.4183 0 24 3.58172 24 8V16C24 20.4183 20.4183 24 16 24H8C3.58172 24 0 20.4183 0 16V8Z",
|
|
3977
4046
|
fill: "currentColor"
|
|
3978
4047
|
}
|
|
3979
4048
|
),
|
|
3980
|
-
/* @__PURE__ */
|
|
4049
|
+
/* @__PURE__ */ jsx41(
|
|
3981
4050
|
"path",
|
|
3982
4051
|
{
|
|
3983
4052
|
d: "M6.16602 12.8333L9.49935 16.1666L17.8327 7.83331",
|
|
@@ -3993,9 +4062,9 @@ var CheckboxSelect = (props) => {
|
|
|
3993
4062
|
};
|
|
3994
4063
|
|
|
3995
4064
|
// src/components/Icon/components/InfoCircleSolid.tsx
|
|
3996
|
-
import { jsx as
|
|
4065
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3997
4066
|
var InfoCircleSolid = (props) => {
|
|
3998
|
-
return /* @__PURE__ */
|
|
4067
|
+
return /* @__PURE__ */ jsx42(
|
|
3999
4068
|
"svg",
|
|
4000
4069
|
{
|
|
4001
4070
|
width: "20",
|
|
@@ -4004,7 +4073,7 @@ var InfoCircleSolid = (props) => {
|
|
|
4004
4073
|
fill: "none",
|
|
4005
4074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4006
4075
|
...props,
|
|
4007
|
-
children: /* @__PURE__ */
|
|
4076
|
+
children: /* @__PURE__ */ jsx42(
|
|
4008
4077
|
"path",
|
|
4009
4078
|
{
|
|
4010
4079
|
d: "M10.001 1.04199C14.9485 1.04199 18.959 5.05245 18.959 10C18.959 14.9476 14.9485 18.958 10.001 18.958C5.05343 18.958 1.04297 14.9476 1.04297 10C1.04297 5.05245 5.05343 1.04199 10.001 1.04199ZM10.001 8.95801C9.65591 8.95801 9.37615 9.23798 9.37598 9.58301V13.75C9.37598 14.0952 9.6558 14.375 10.001 14.375C10.3462 14.375 10.626 14.0952 10.626 13.75V9.58301C10.6258 9.23798 10.346 8.95801 10.001 8.95801ZM10.4277 5.78418C10.1712 5.55335 9.77583 5.5746 9.54492 5.83105L9.53613 5.84082C9.30564 6.09736 9.32667 6.49185 9.58301 6.72266C9.83958 6.95357 10.2349 6.93333 10.4658 6.67676L10.4736 6.66699C10.7045 6.41042 10.6843 6.01508 10.4277 5.78418Z",
|
|
@@ -4016,9 +4085,9 @@ var InfoCircleSolid = (props) => {
|
|
|
4016
4085
|
};
|
|
4017
4086
|
|
|
4018
4087
|
// src/components/Icon/components/CheckboxDefault.tsx
|
|
4019
|
-
import { jsx as
|
|
4088
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
4020
4089
|
var CheckboxDefault = (props) => {
|
|
4021
|
-
return /* @__PURE__ */
|
|
4090
|
+
return /* @__PURE__ */ jsx43(
|
|
4022
4091
|
"svg",
|
|
4023
4092
|
{
|
|
4024
4093
|
width: "24",
|
|
@@ -4027,7 +4096,7 @@ var CheckboxDefault = (props) => {
|
|
|
4027
4096
|
fill: "none",
|
|
4028
4097
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4029
4098
|
...props,
|
|
4030
|
-
children: /* @__PURE__ */
|
|
4099
|
+
children: /* @__PURE__ */ jsx43(
|
|
4031
4100
|
"path",
|
|
4032
4101
|
{
|
|
4033
4102
|
d: "M8 0.5H16C20.1421 0.5 23.5 3.85786 23.5 8V16C23.5 20.1421 20.1421 23.5 16 23.5H8C3.85786 23.5 0.5 20.1421 0.5 16V8C0.5 3.85786 3.85786 0.5 8 0.5Z",
|
|
@@ -4039,9 +4108,9 @@ var CheckboxDefault = (props) => {
|
|
|
4039
4108
|
};
|
|
4040
4109
|
|
|
4041
4110
|
// src/components/Icon/components/CheckCircleSolid.tsx
|
|
4042
|
-
import { jsx as
|
|
4111
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
4043
4112
|
var CheckCircleSolid = (props) => {
|
|
4044
|
-
return /* @__PURE__ */
|
|
4113
|
+
return /* @__PURE__ */ jsx44(
|
|
4045
4114
|
"svg",
|
|
4046
4115
|
{
|
|
4047
4116
|
width: "24",
|
|
@@ -4050,7 +4119,7 @@ var CheckCircleSolid = (props) => {
|
|
|
4050
4119
|
fill: "none",
|
|
4051
4120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4052
4121
|
...props,
|
|
4053
|
-
children: /* @__PURE__ */
|
|
4122
|
+
children: /* @__PURE__ */ jsx44(
|
|
4054
4123
|
"path",
|
|
4055
4124
|
{
|
|
4056
4125
|
d: "M12 1.25C17.9371 1.25 22.75 6.06294 22.75 12C22.75 17.9371 17.9371 22.75 12 22.75C6.06294 22.75 1.25 17.9371 1.25 12C1.25 6.06294 6.06294 1.25 12 1.25ZM17.5303 7.96973C17.2374 7.67689 16.7626 7.67685 16.4697 7.96973L10 14.4395L7.53027 11.9697C7.23738 11.6769 6.7626 11.6769 6.46973 11.9697C6.17691 12.2626 6.17691 12.7374 6.46973 13.0303L9.46973 16.0303C9.7626 16.3231 10.2374 16.3231 10.5303 16.0303L17.5303 9.03027C17.8232 8.73738 17.8232 8.26262 17.5303 7.96973Z",
|
|
@@ -4062,9 +4131,9 @@ var CheckCircleSolid = (props) => {
|
|
|
4062
4131
|
};
|
|
4063
4132
|
|
|
4064
4133
|
// src/components/Icon/components/BellNotification.tsx
|
|
4065
|
-
import { jsx as
|
|
4134
|
+
import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4066
4135
|
var BellNotification = (props) => {
|
|
4067
|
-
return /* @__PURE__ */
|
|
4136
|
+
return /* @__PURE__ */ jsxs32(
|
|
4068
4137
|
"svg",
|
|
4069
4138
|
{
|
|
4070
4139
|
width: "20",
|
|
@@ -4074,7 +4143,7 @@ var BellNotification = (props) => {
|
|
|
4074
4143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4075
4144
|
...props,
|
|
4076
4145
|
children: [
|
|
4077
|
-
/* @__PURE__ */
|
|
4146
|
+
/* @__PURE__ */ jsx45(
|
|
4078
4147
|
"path",
|
|
4079
4148
|
{
|
|
4080
4149
|
fillRule: "evenodd",
|
|
@@ -4083,7 +4152,7 @@ var BellNotification = (props) => {
|
|
|
4083
4152
|
fill: "currentColor"
|
|
4084
4153
|
}
|
|
4085
4154
|
),
|
|
4086
|
-
/* @__PURE__ */
|
|
4155
|
+
/* @__PURE__ */ jsx45(
|
|
4087
4156
|
"path",
|
|
4088
4157
|
{
|
|
4089
4158
|
fillRule: "evenodd",
|
|
@@ -4092,7 +4161,7 @@ var BellNotification = (props) => {
|
|
|
4092
4161
|
fill: "currentColor"
|
|
4093
4162
|
}
|
|
4094
4163
|
),
|
|
4095
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsx45(
|
|
4096
4165
|
"path",
|
|
4097
4166
|
{
|
|
4098
4167
|
fillRule: "evenodd",
|
|
@@ -4101,7 +4170,7 @@ var BellNotification = (props) => {
|
|
|
4101
4170
|
fill: "currentColor"
|
|
4102
4171
|
}
|
|
4103
4172
|
),
|
|
4104
|
-
/* @__PURE__ */
|
|
4173
|
+
/* @__PURE__ */ jsx45(
|
|
4105
4174
|
"path",
|
|
4106
4175
|
{
|
|
4107
4176
|
d: "M15.6937 13.6179C15.8418 13.9075 15.9909 14.1587 16.1344 14.375H10.0001C9.65496 14.375 9.37514 14.6548 9.37514 15C9.37514 15.3452 9.65496 15.625 10.0001 15.625H17.5001C17.7721 15.625 18.0128 15.4492 18.0955 15.1901C18.1775 14.9333 18.0856 14.6531 17.868 14.4947L17.8607 14.4891C17.8513 14.4816 17.8333 14.4669 17.8079 14.4443C17.7573 14.3993 17.6771 14.3229 17.5768 14.21C17.3766 13.9845 17.0943 13.6115 16.8066 13.0488C16.3746 12.2039 15.9239 10.9191 15.7271 9.04612C15.6523 8.33332 14.4002 8.37434 14.483 9.16668C14.6937 11.1836 15.1843 12.6219 15.6937 13.6179Z",
|
|
@@ -4114,9 +4183,9 @@ var BellNotification = (props) => {
|
|
|
4114
4183
|
};
|
|
4115
4184
|
|
|
4116
4185
|
// src/components/Icon/components/NavArrowDownSolid.tsx
|
|
4117
|
-
import { jsx as
|
|
4186
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4118
4187
|
var NavArrowDownSolid = (props) => {
|
|
4119
|
-
return /* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ jsx46(
|
|
4120
4189
|
"svg",
|
|
4121
4190
|
{
|
|
4122
4191
|
width: "24",
|
|
@@ -4125,7 +4194,7 @@ var NavArrowDownSolid = (props) => {
|
|
|
4125
4194
|
fill: "none",
|
|
4126
4195
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4127
4196
|
...props,
|
|
4128
|
-
children: /* @__PURE__ */
|
|
4197
|
+
children: /* @__PURE__ */ jsx46(
|
|
4129
4198
|
"path",
|
|
4130
4199
|
{
|
|
4131
4200
|
fillRule: "evenodd",
|
|
@@ -4139,9 +4208,9 @@ var NavArrowDownSolid = (props) => {
|
|
|
4139
4208
|
};
|
|
4140
4209
|
|
|
4141
4210
|
// src/components/Icon/components/LongArrowUpLeftSolid.tsx
|
|
4142
|
-
import { jsx as
|
|
4211
|
+
import { jsx as jsx47, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4143
4212
|
var LongArrowUpLeftSolid = (props) => {
|
|
4144
|
-
return /* @__PURE__ */
|
|
4213
|
+
return /* @__PURE__ */ jsxs33(
|
|
4145
4214
|
"svg",
|
|
4146
4215
|
{
|
|
4147
4216
|
width: "24",
|
|
@@ -4151,7 +4220,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4151
4220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4152
4221
|
...props,
|
|
4153
4222
|
children: [
|
|
4154
|
-
/* @__PURE__ */
|
|
4223
|
+
/* @__PURE__ */ jsx47(
|
|
4155
4224
|
"path",
|
|
4156
4225
|
{
|
|
4157
4226
|
fillRule: "evenodd",
|
|
@@ -4160,7 +4229,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4160
4229
|
fill: "currentColor"
|
|
4161
4230
|
}
|
|
4162
4231
|
),
|
|
4163
|
-
/* @__PURE__ */
|
|
4232
|
+
/* @__PURE__ */ jsx47(
|
|
4164
4233
|
"path",
|
|
4165
4234
|
{
|
|
4166
4235
|
fillRule: "evenodd",
|
|
@@ -4175,9 +4244,9 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4175
4244
|
};
|
|
4176
4245
|
|
|
4177
4246
|
// src/components/Icon/components/CheckboxIndeterminate.tsx
|
|
4178
|
-
import { jsx as
|
|
4247
|
+
import { jsx as jsx48, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4179
4248
|
var CheckboxIndeterminate = (props) => {
|
|
4180
|
-
return /* @__PURE__ */
|
|
4249
|
+
return /* @__PURE__ */ jsxs34(
|
|
4181
4250
|
"svg",
|
|
4182
4251
|
{
|
|
4183
4252
|
width: "24",
|
|
@@ -4187,14 +4256,14 @@ var CheckboxIndeterminate = (props) => {
|
|
|
4187
4256
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4188
4257
|
...props,
|
|
4189
4258
|
children: [
|
|
4190
|
-
/* @__PURE__ */
|
|
4259
|
+
/* @__PURE__ */ jsx48(
|
|
4191
4260
|
"path",
|
|
4192
4261
|
{
|
|
4193
4262
|
d: "M0 8C0 3.58172 3.58172 0 8 0H16C20.4183 0 24 3.58172 24 8V16C24 20.4183 20.4183 24 16 24H8C3.58172 24 0 20.4183 0 16V8Z",
|
|
4194
4263
|
fill: "currentColor"
|
|
4195
4264
|
}
|
|
4196
4265
|
),
|
|
4197
|
-
/* @__PURE__ */
|
|
4266
|
+
/* @__PURE__ */ jsx48("path", { d: "M6 12H18", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
4198
4267
|
]
|
|
4199
4268
|
}
|
|
4200
4269
|
);
|
|
@@ -4206,10 +4275,10 @@ var iconClasses = {
|
|
|
4206
4275
|
};
|
|
4207
4276
|
|
|
4208
4277
|
// src/components/Icon/icon.tsx
|
|
4209
|
-
import { jsx as
|
|
4278
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4210
4279
|
var Icon = ({ icon: icon2, className, ...props }) => {
|
|
4211
4280
|
const IconComponent = components_exports[icon2];
|
|
4212
|
-
return /* @__PURE__ */
|
|
4281
|
+
return /* @__PURE__ */ jsx49(
|
|
4213
4282
|
Box,
|
|
4214
4283
|
{
|
|
4215
4284
|
component: IconComponent,
|
|
@@ -4220,7 +4289,7 @@ var Icon = ({ icon: icon2, className, ...props }) => {
|
|
|
4220
4289
|
};
|
|
4221
4290
|
|
|
4222
4291
|
// src/theme/core/components/alert.tsx
|
|
4223
|
-
import { jsx as
|
|
4292
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4224
4293
|
var COLORS2 = ["info", "success", "warning", "error"];
|
|
4225
4294
|
function styleColors2(ownerState, styles) {
|
|
4226
4295
|
const outputStyle = COLORS2.reduce((acc, color) => {
|
|
@@ -4238,10 +4307,10 @@ var MuiAlert = {
|
|
|
4238
4307
|
defaultProps: {
|
|
4239
4308
|
variant: "standard",
|
|
4240
4309
|
iconMapping: {
|
|
4241
|
-
error: /* @__PURE__ */
|
|
4242
|
-
info: /* @__PURE__ */
|
|
4243
|
-
success: /* @__PURE__ */
|
|
4244
|
-
warning: /* @__PURE__ */
|
|
4310
|
+
error: /* @__PURE__ */ jsx50(Icon, { icon: "InfoCircleSolid" }),
|
|
4311
|
+
info: /* @__PURE__ */ jsx50(Icon, { icon: "InfoCircleSolid" }),
|
|
4312
|
+
success: /* @__PURE__ */ jsx50(Icon, { icon: "InfoCircleSolid" }),
|
|
4313
|
+
warning: /* @__PURE__ */ jsx50(Icon, { icon: "InfoCircleSolid" })
|
|
4245
4314
|
}
|
|
4246
4315
|
},
|
|
4247
4316
|
/** **************************************
|
|
@@ -4450,7 +4519,7 @@ var badge = { MuiBadge };
|
|
|
4450
4519
|
|
|
4451
4520
|
// src/theme/core/components/radio.tsx
|
|
4452
4521
|
import { radioClasses } from "@mui/material/Radio";
|
|
4453
|
-
import { jsx as
|
|
4522
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
4454
4523
|
var MuiRadio = {
|
|
4455
4524
|
/** **************************************
|
|
4456
4525
|
* DEFAULT PROPS
|
|
@@ -4459,8 +4528,8 @@ var MuiRadio = {
|
|
|
4459
4528
|
color: "default",
|
|
4460
4529
|
size: "small",
|
|
4461
4530
|
disableRipple: true,
|
|
4462
|
-
icon: /* @__PURE__ */
|
|
4463
|
-
checkedIcon: /* @__PURE__ */
|
|
4531
|
+
icon: /* @__PURE__ */ jsx51(Icon, { icon: "RadioDefault" }),
|
|
4532
|
+
checkedIcon: /* @__PURE__ */ jsx51(Icon, { icon: "RadioSelect" })
|
|
4464
4533
|
},
|
|
4465
4534
|
/** **************************************
|
|
4466
4535
|
* STYLE
|
|
@@ -4528,8 +4597,9 @@ var MuiDialog = {
|
|
|
4528
4597
|
*************************************** */
|
|
4529
4598
|
styleOverrides: {
|
|
4530
4599
|
paper: ({ ownerState, theme }) => ({
|
|
4600
|
+
position: "relative",
|
|
4531
4601
|
boxShadow: theme.customShadows["shadow-sm"],
|
|
4532
|
-
borderRadius:
|
|
4602
|
+
borderRadius: theme.radius["radius-3xl"],
|
|
4533
4603
|
...!ownerState.fullScreen && { margin: theme.spacing(2) }
|
|
4534
4604
|
}),
|
|
4535
4605
|
paperFullScreen: { borderRadius: 0 }
|
|
@@ -4763,13 +4833,13 @@ var MuiDrawer = {
|
|
|
4763
4833
|
var drawer = { MuiDrawer };
|
|
4764
4834
|
|
|
4765
4835
|
// src/theme/core/components/select.tsx
|
|
4766
|
-
import { jsx as
|
|
4836
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4767
4837
|
var MuiSelect = {
|
|
4768
4838
|
/** **************************************
|
|
4769
4839
|
* DEFAULT PROPS
|
|
4770
4840
|
*************************************** */
|
|
4771
4841
|
defaultProps: {
|
|
4772
|
-
IconComponent: () => /* @__PURE__ */
|
|
4842
|
+
IconComponent: () => /* @__PURE__ */ jsx52(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4773
4843
|
}
|
|
4774
4844
|
};
|
|
4775
4845
|
var MuiNativeSelect = {
|
|
@@ -4777,7 +4847,7 @@ var MuiNativeSelect = {
|
|
|
4777
4847
|
* DEFAULT PROPS
|
|
4778
4848
|
*************************************** */
|
|
4779
4849
|
defaultProps: {
|
|
4780
|
-
IconComponent: () => /* @__PURE__ */
|
|
4850
|
+
IconComponent: () => /* @__PURE__ */ jsx52(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4781
4851
|
}
|
|
4782
4852
|
};
|
|
4783
4853
|
var select = { MuiSelect, MuiNativeSelect };
|
|
@@ -4785,13 +4855,13 @@ var select = { MuiSelect, MuiNativeSelect };
|
|
|
4785
4855
|
// src/theme/core/components/rating.tsx
|
|
4786
4856
|
import { ratingClasses } from "@mui/material/Rating";
|
|
4787
4857
|
import SvgIcon, { svgIconClasses } from "@mui/material/SvgIcon";
|
|
4788
|
-
import { jsx as
|
|
4789
|
-
var RatingIcon = (props) => /* @__PURE__ */
|
|
4858
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4859
|
+
var RatingIcon = (props) => /* @__PURE__ */ jsx53(SvgIcon, { ...props, children: /* @__PURE__ */ jsx53("path", { d: "M17.56,21 C17.4000767,21.0006435 17.2423316,20.9629218 17.1,20.89 L12,18.22 L6.9,20.89 C6.56213339,21.067663 6.15259539,21.0374771 5.8444287,20.8121966 C5.53626201,20.5869161 5.38323252,20.2058459 5.45,19.83 L6.45,14.2 L2.33,10.2 C2.06805623,9.93860108 1.9718844,9.55391377 2.08,9.2 C2.19824414,8.83742187 2.51242293,8.57366684 2.89,8.52 L8.59,7.69 L11.1,2.56 C11.2670864,2.21500967 11.6166774,1.99588989 12,1.99588989 C12.3833226,1.99588989 12.7329136,2.21500967 12.9,2.56 L15.44,7.68 L21.14,8.51 C21.5175771,8.56366684 21.8317559,8.82742187 21.95,9.19 C22.0581156,9.54391377 21.9619438,9.92860108 21.7,10.19 L17.58,14.19 L18.58,19.82 C18.652893,20.2027971 18.4967826,20.5930731 18.18,20.82 C17.9989179,20.9468967 17.7808835,21.010197 17.56,21 L17.56,21 Z" }) });
|
|
4790
4860
|
var MuiRating = {
|
|
4791
4861
|
/** **************************************
|
|
4792
4862
|
* DEFAULT PROPS
|
|
4793
4863
|
*************************************** */
|
|
4794
|
-
defaultProps: { emptyIcon: /* @__PURE__ */
|
|
4864
|
+
defaultProps: { emptyIcon: /* @__PURE__ */ jsx53(RatingIcon, {}), icon: /* @__PURE__ */ jsx53(RatingIcon, {}) },
|
|
4795
4865
|
/** **************************************
|
|
4796
4866
|
* STYLE
|
|
4797
4867
|
*************************************** */
|
|
@@ -4916,7 +4986,7 @@ var slider = {
|
|
|
4916
4986
|
// src/theme/core/components/button.tsx
|
|
4917
4987
|
import { buttonClasses } from "@mui/material/Button";
|
|
4918
4988
|
import { keyframes } from "@mui/material/styles";
|
|
4919
|
-
import { jsx as
|
|
4989
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
4920
4990
|
var spin = keyframes`
|
|
4921
4991
|
0% {
|
|
4922
4992
|
transform: rotate(0deg);
|
|
@@ -4977,15 +5047,15 @@ var secondaryVariant = {
|
|
|
4977
5047
|
props: ({ ownerState }) => ownerState.variant === "secondary" && ownerState.color === color,
|
|
4978
5048
|
style: ({ theme }) => ({
|
|
4979
5049
|
color: color === "neutral" ? theme.vars.palette[color][950] : theme.vars.palette[color].main,
|
|
4980
|
-
border: `1px solid ${color === "neutral" ? theme.vars.palette.neutral[
|
|
5050
|
+
border: `1px solid ${color === "neutral" ? theme.vars.palette.neutral[200] : theme.vars.palette[color].main}`,
|
|
4981
5051
|
backgroundColor: "transparent",
|
|
4982
5052
|
"&:hover": {
|
|
4983
|
-
backgroundColor: "transparent",
|
|
5053
|
+
backgroundColor: color === "neutral" ? theme.vars.palette.neutral[200] : "transparent",
|
|
4984
5054
|
borderWidth: "2px"
|
|
4985
5055
|
},
|
|
4986
5056
|
[`&.${buttonClasses.loading}`]: {
|
|
4987
5057
|
color: "transparent",
|
|
4988
|
-
borderColor: color === "neutral" ? theme.vars.palette.neutral[
|
|
5058
|
+
borderColor: color === "neutral" ? theme.vars.palette.neutral[200] : theme.vars.palette[color].main,
|
|
4989
5059
|
"& .MuiButton-loadingIndicator": {
|
|
4990
5060
|
color: color === "neutral" ? theme.vars.palette[color][950] : theme.vars.palette[color].main,
|
|
4991
5061
|
left: "auto",
|
|
@@ -5033,10 +5103,10 @@ var MuiButton = {
|
|
|
5033
5103
|
*************************************** */
|
|
5034
5104
|
defaultProps: {
|
|
5035
5105
|
color: "primary",
|
|
5036
|
-
variant: "
|
|
5106
|
+
variant: "primary",
|
|
5037
5107
|
disableElevation: true,
|
|
5038
5108
|
disableRipple: true,
|
|
5039
|
-
loadingIndicator: /* @__PURE__ */
|
|
5109
|
+
loadingIndicator: /* @__PURE__ */ jsx54(Icon, { icon: "Loader" })
|
|
5040
5110
|
},
|
|
5041
5111
|
/** **************************************
|
|
5042
5112
|
* VARIANTS
|
|
@@ -5522,7 +5592,7 @@ var MuiBackdrop = {
|
|
|
5522
5592
|
*************************************** */
|
|
5523
5593
|
styleOverrides: {
|
|
5524
5594
|
root: ({ theme }) => ({
|
|
5525
|
-
backgroundColor: varAlpha(theme.vars.palette.
|
|
5595
|
+
backgroundColor: varAlpha(theme.vars.palette.common.blackChannel, 0.4)
|
|
5526
5596
|
}),
|
|
5527
5597
|
invisible: { background: "transparent" }
|
|
5528
5598
|
}
|
|
@@ -5591,7 +5661,7 @@ var timeline = { MuiTimelineDot, MuiTimelineConnector };
|
|
|
5591
5661
|
|
|
5592
5662
|
// src/theme/core/components/checkbox.tsx
|
|
5593
5663
|
import { checkboxClasses as checkboxClasses2 } from "@mui/material/Checkbox";
|
|
5594
|
-
import { jsx as
|
|
5664
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
5595
5665
|
var MuiCheckbox = {
|
|
5596
5666
|
/** **************************************
|
|
5597
5667
|
* DEFAULT PROPS
|
|
@@ -5600,9 +5670,9 @@ var MuiCheckbox = {
|
|
|
5600
5670
|
color: "default",
|
|
5601
5671
|
size: "small",
|
|
5602
5672
|
disableRipple: true,
|
|
5603
|
-
icon: /* @__PURE__ */
|
|
5604
|
-
checkedIcon: /* @__PURE__ */
|
|
5605
|
-
indeterminateIcon: /* @__PURE__ */
|
|
5673
|
+
icon: /* @__PURE__ */ jsx55(Icon, { icon: "CheckboxDefault" }),
|
|
5674
|
+
checkedIcon: /* @__PURE__ */ jsx55(Icon, { icon: "CheckboxSelect" }),
|
|
5675
|
+
indeterminateIcon: /* @__PURE__ */ jsx55(Icon, { icon: "CheckboxIndeterminate" })
|
|
5606
5676
|
},
|
|
5607
5677
|
/** **************************************
|
|
5608
5678
|
* STYLE
|
|
@@ -6152,7 +6222,7 @@ import { listItemIconClasses } from "@mui/material/ListItemIcon";
|
|
|
6152
6222
|
import { circularProgressClasses } from "@mui/material/CircularProgress";
|
|
6153
6223
|
import { formControlLabelClasses } from "@mui/material/FormControlLabel";
|
|
6154
6224
|
import SvgIcon2, { svgIconClasses as svgIconClasses2 } from "@mui/material/SvgIcon";
|
|
6155
|
-
import { jsx as
|
|
6225
|
+
import { jsx as jsx56, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6156
6226
|
var MuiDataGrid = {
|
|
6157
6227
|
/** **************************************
|
|
6158
6228
|
* DEFAULT PROPS
|
|
@@ -6160,9 +6230,9 @@ var MuiDataGrid = {
|
|
|
6160
6230
|
defaultProps: {
|
|
6161
6231
|
slots: {
|
|
6162
6232
|
/* Column */
|
|
6163
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */
|
|
6164
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */
|
|
6165
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */
|
|
6233
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ jsx56(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
6234
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ jsx56(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
6235
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ jsx56(
|
|
6166
6236
|
DataGridArrowUpIcon,
|
|
6167
6237
|
{
|
|
6168
6238
|
fontSize: props.fontSize,
|
|
@@ -6170,26 +6240,26 @@ var MuiDataGrid = {
|
|
|
6170
6240
|
sx: { color: "text.disabled" }
|
|
6171
6241
|
}
|
|
6172
6242
|
),
|
|
6173
|
-
columnMenuIcon: (props) => /* @__PURE__ */
|
|
6174
|
-
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */
|
|
6175
|
-
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */
|
|
6176
|
-
columnMenuFilterIcon: (props) => /* @__PURE__ */
|
|
6177
|
-
columnMenuHideIcon: (props) => /* @__PURE__ */
|
|
6178
|
-
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */
|
|
6179
|
-
columnSelectorIcon: (props) => /* @__PURE__ */
|
|
6243
|
+
columnMenuIcon: (props) => /* @__PURE__ */ jsx56(DataGridMoreIcon, { width: 20, ...props }),
|
|
6244
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ jsx56(DataGridArrowUpIcon, { ...props }),
|
|
6245
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ jsx56(DataGridArrowDownIcon, { ...props }),
|
|
6246
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ jsx56(DataGridFilterIcon, { ...props }),
|
|
6247
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ jsx56(DataGridEyeCloseIcon, { ...props }),
|
|
6248
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ jsx56(DataGridEyeIcon, { ...props }),
|
|
6249
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ jsx56(DataGridEyeIcon, { ...props }),
|
|
6180
6250
|
/* Filter */
|
|
6181
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */
|
|
6182
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */
|
|
6183
|
-
columnFilteredIcon: (props) => /* @__PURE__ */
|
|
6251
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ jsx56(DataGridCloseIcon, { ...props }),
|
|
6252
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ jsx56(DataGridFilterIcon, { ...props }),
|
|
6253
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ jsx56(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
6184
6254
|
/* Density */
|
|
6185
|
-
densityCompactIcon: (props) => /* @__PURE__ */
|
|
6186
|
-
densityStandardIcon: (props) => /* @__PURE__ */
|
|
6187
|
-
densityComfortableIcon: (props) => /* @__PURE__ */
|
|
6255
|
+
densityCompactIcon: (props) => /* @__PURE__ */ jsx56(DataGridDensityCompactIcon, { ...props }),
|
|
6256
|
+
densityStandardIcon: (props) => /* @__PURE__ */ jsx56(DataGridDensityStandardIcon, { ...props }),
|
|
6257
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ jsx56(DataGridDensityComfortableIcon, { ...props }),
|
|
6188
6258
|
/* Export */
|
|
6189
|
-
exportIcon: (props) => /* @__PURE__ */
|
|
6259
|
+
exportIcon: (props) => /* @__PURE__ */ jsx56(DataGridExportIcon, { ...props }),
|
|
6190
6260
|
/* Quick Filter */
|
|
6191
|
-
quickFilterIcon: (props) => /* @__PURE__ */
|
|
6192
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */
|
|
6261
|
+
quickFilterIcon: (props) => /* @__PURE__ */ jsx56(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
6262
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ jsx56(DataGridCloseIcon, { ...props })
|
|
6193
6263
|
},
|
|
6194
6264
|
slotProps: {
|
|
6195
6265
|
basePopper: { placement: "bottom-end" },
|
|
@@ -6355,15 +6425,15 @@ var MuiDataGrid = {
|
|
|
6355
6425
|
}
|
|
6356
6426
|
};
|
|
6357
6427
|
var dataGrid = { MuiDataGrid };
|
|
6358
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */
|
|
6359
|
-
/* @__PURE__ */
|
|
6428
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs35(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6429
|
+
/* @__PURE__ */ jsx56(
|
|
6360
6430
|
"path",
|
|
6361
6431
|
{
|
|
6362
6432
|
fill: "currentColor",
|
|
6363
6433
|
d: "m8.303 11.596l3.327-3.431a.499.499 0 0 1 .74 0l6.43 6.63c.401.414.158 1.205-.37 1.205h-5.723z"
|
|
6364
6434
|
}
|
|
6365
6435
|
),
|
|
6366
|
-
/* @__PURE__ */
|
|
6436
|
+
/* @__PURE__ */ jsx56(
|
|
6367
6437
|
"path",
|
|
6368
6438
|
{
|
|
6369
6439
|
fill: "currentColor",
|
|
@@ -6372,15 +6442,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ jsxs34(SvgIcon2, { s
|
|
|
6372
6442
|
}
|
|
6373
6443
|
)
|
|
6374
6444
|
] });
|
|
6375
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */
|
|
6376
|
-
/* @__PURE__ */
|
|
6445
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs35(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6446
|
+
/* @__PURE__ */ jsx56(
|
|
6377
6447
|
"path",
|
|
6378
6448
|
{
|
|
6379
6449
|
fill: "currentColor",
|
|
6380
6450
|
d: "m8.303 12.404l3.327 3.431c.213.22.527.22.74 0l6.43-6.63C19.201 8.79 18.958 8 18.43 8h-5.723z"
|
|
6381
6451
|
}
|
|
6382
6452
|
),
|
|
6383
|
-
/* @__PURE__ */
|
|
6453
|
+
/* @__PURE__ */ jsx56(
|
|
6384
6454
|
"path",
|
|
6385
6455
|
{
|
|
6386
6456
|
fill: "currentColor",
|
|
@@ -6389,15 +6459,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ jsxs34(SvgIcon2, {
|
|
|
6389
6459
|
}
|
|
6390
6460
|
)
|
|
6391
6461
|
] });
|
|
6392
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */
|
|
6462
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx56(
|
|
6393
6463
|
"path",
|
|
6394
6464
|
{
|
|
6395
6465
|
fill: "currentColor",
|
|
6396
6466
|
d: "M19 3H5c-1.414 0-2.121 0-2.56.412C2 3.824 2 4.488 2 5.815v.69c0 1.037 0 1.556.26 1.986c.26.43.733.698 1.682 1.232l2.913 1.64c.636.358.955.537 1.183.735c.474.411.766.895.898 1.49c.064.284.064.618.064 1.285v2.67c0 .909 0 1.364.252 1.718c.252.355.7.53 1.594.88c1.879.734 2.818 1.101 3.486.683c.668-.417.668-1.372.668-3.282v-2.67c0-.666 0-1 .064-1.285a2.68 2.68 0 0 1 .899-1.49c.227-.197.546-.376 1.182-.735l2.913-1.64c.948-.533 1.423-.8 1.682-1.23c.26-.43.26-.95.26-1.988v-.69c0-1.326 0-1.99-.44-2.402C21.122 3 20.415 3 19 3"
|
|
6397
6467
|
}
|
|
6398
6468
|
) });
|
|
6399
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */
|
|
6400
|
-
/* @__PURE__ */
|
|
6469
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs35(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6470
|
+
/* @__PURE__ */ jsx56(
|
|
6401
6471
|
"path",
|
|
6402
6472
|
{
|
|
6403
6473
|
fill: "currentColor",
|
|
@@ -6406,7 +6476,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs34(SvgIcon2, { sx
|
|
|
6406
6476
|
clipRule: "evenodd"
|
|
6407
6477
|
}
|
|
6408
6478
|
),
|
|
6409
|
-
/* @__PURE__ */
|
|
6479
|
+
/* @__PURE__ */ jsx56(
|
|
6410
6480
|
"path",
|
|
6411
6481
|
{
|
|
6412
6482
|
fill: "currentColor",
|
|
@@ -6414,9 +6484,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ jsxs34(SvgIcon2, { sx
|
|
|
6414
6484
|
}
|
|
6415
6485
|
)
|
|
6416
6486
|
] });
|
|
6417
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */
|
|
6418
|
-
/* @__PURE__ */
|
|
6419
|
-
/* @__PURE__ */
|
|
6487
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs35(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6488
|
+
/* @__PURE__ */ jsx56("path", { fill: "currentColor", d: "M9.75 12a2.25 2.25 0 1 1 4.5 0a2.25 2.25 0 0 1-4.5 0" }),
|
|
6489
|
+
/* @__PURE__ */ jsx56(
|
|
6420
6490
|
"path",
|
|
6421
6491
|
{
|
|
6422
6492
|
fill: "currentColor",
|
|
@@ -6426,7 +6496,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ jsxs34(SvgIcon2, { sx: {
|
|
|
6426
6496
|
}
|
|
6427
6497
|
)
|
|
6428
6498
|
] });
|
|
6429
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
6499
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx56(
|
|
6430
6500
|
"path",
|
|
6431
6501
|
{
|
|
6432
6502
|
fill: "currentColor",
|
|
@@ -6435,23 +6505,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx55(SvgIcon2, { s
|
|
|
6435
6505
|
clipRule: "evenodd"
|
|
6436
6506
|
}
|
|
6437
6507
|
) });
|
|
6438
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */
|
|
6508
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx56(
|
|
6439
6509
|
"path",
|
|
6440
6510
|
{
|
|
6441
6511
|
fill: "currentColor",
|
|
6442
6512
|
d: "m20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8a7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42M5 11a6 6 0 1 1 6 6a6 6 0 0 1-6-6"
|
|
6443
6513
|
}
|
|
6444
6514
|
) });
|
|
6445
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */
|
|
6515
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx56(
|
|
6446
6516
|
"path",
|
|
6447
6517
|
{
|
|
6448
6518
|
fill: "currentColor",
|
|
6449
6519
|
d: "m13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29l-4.3 4.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l4.29-4.3l4.29 4.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42Z"
|
|
6450
6520
|
}
|
|
6451
6521
|
) });
|
|
6452
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */
|
|
6453
|
-
/* @__PURE__ */
|
|
6454
|
-
/* @__PURE__ */
|
|
6522
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs35("g", { fill: "none", children: [
|
|
6523
|
+
/* @__PURE__ */ jsx56("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
6524
|
+
/* @__PURE__ */ jsx56(
|
|
6455
6525
|
"path",
|
|
6456
6526
|
{
|
|
6457
6527
|
fill: "currentColor",
|
|
@@ -6459,16 +6529,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ jsx55(SvgIcon2, { sx: {
|
|
|
6459
6529
|
}
|
|
6460
6530
|
)
|
|
6461
6531
|
] }) });
|
|
6462
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */
|
|
6532
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsx56(
|
|
6463
6533
|
"path",
|
|
6464
6534
|
{
|
|
6465
6535
|
fill: "currentColor",
|
|
6466
6536
|
d: "M4 15.5q-.425 0-.712-.288T3 14.5V14q0-.425.288-.712T4 13h16q.425 0 .713.288T21 14v.5q0 .425-.288.713T20 15.5zM4 11q-.425 0-.712-.288T3 10v-.5q0-.425.288-.712T4 8.5h16q.425 0 .713.288T21 9.5v.5q0 .425-.288.713T20 11zm0-4.5q-.425 0-.712-.288T3 5.5V5q0-.425.288-.712T4 4h16q.425 0 .713.288T21 5v.5q0 .425-.288.713T20 6.5zM4 20q-.425 0-.712-.288T3 19v-.5q0-.425.288-.712T4 17.5h16q.425 0 .713.288T21 18.5v.5q0 .425-.288.713T20 20z"
|
|
6467
6537
|
}
|
|
6468
6538
|
) });
|
|
6469
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */
|
|
6470
|
-
/* @__PURE__ */
|
|
6471
|
-
/* @__PURE__ */
|
|
6539
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs35("g", { fill: "none", fillRule: "evenodd", children: [
|
|
6540
|
+
/* @__PURE__ */ jsx56("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
6541
|
+
/* @__PURE__ */ jsx56(
|
|
6472
6542
|
"path",
|
|
6473
6543
|
{
|
|
6474
6544
|
fill: "currentColor",
|
|
@@ -6476,9 +6546,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ jsx55(Svg
|
|
|
6476
6546
|
}
|
|
6477
6547
|
)
|
|
6478
6548
|
] }) });
|
|
6479
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */
|
|
6480
|
-
/* @__PURE__ */
|
|
6481
|
-
/* @__PURE__ */
|
|
6549
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ jsx56(SvgIcon2, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ jsxs35("g", { fill: "none", children: [
|
|
6550
|
+
/* @__PURE__ */ jsx56("path", { d: "M24 0v24H0V0zM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022m-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z" }),
|
|
6551
|
+
/* @__PURE__ */ jsx56(
|
|
6482
6552
|
"path",
|
|
6483
6553
|
{
|
|
6484
6554
|
fill: "currentColor",
|
|
@@ -6638,12 +6708,12 @@ var buttonGroup = { MuiButtonGroup };
|
|
|
6638
6708
|
// src/theme/core/components/autocomplete.tsx
|
|
6639
6709
|
import { svgIconClasses as svgIconClasses3 } from "@mui/material/SvgIcon";
|
|
6640
6710
|
import { autocompleteClasses as autocompleteClasses3 } from "@mui/material/Autocomplete";
|
|
6641
|
-
import { jsx as
|
|
6711
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6642
6712
|
var MuiAutocomplete = {
|
|
6643
6713
|
/** **************************************
|
|
6644
6714
|
* DEFAULT PROPS
|
|
6645
6715
|
*************************************** */
|
|
6646
|
-
defaultProps: { popupIcon: /* @__PURE__ */
|
|
6716
|
+
defaultProps: { popupIcon: /* @__PURE__ */ jsx57(Icon, { icon: "NavArrowDown" }) },
|
|
6647
6717
|
/** **************************************
|
|
6648
6718
|
* STYLE
|
|
6649
6719
|
*************************************** */
|
|
@@ -6767,8 +6837,8 @@ var MuiToggleButtonGroup = {
|
|
|
6767
6837
|
var toggleButton = { MuiToggleButton, MuiToggleButtonGroup };
|
|
6768
6838
|
|
|
6769
6839
|
// src/theme/core/components/mui-x-date-picker.tsx
|
|
6770
|
-
import
|
|
6771
|
-
import
|
|
6840
|
+
import IconButton7 from "@mui/material/IconButton";
|
|
6841
|
+
import Typography13 from "@mui/material/Typography";
|
|
6772
6842
|
import { buttonClasses as buttonClasses3 } from "@mui/material/Button";
|
|
6773
6843
|
import { styled as styled3 } from "@mui/material/styles";
|
|
6774
6844
|
import { dialogActionsClasses } from "@mui/material/DialogActions";
|
|
@@ -6792,12 +6862,19 @@ __export(components_exports2, {
|
|
|
6792
6862
|
CloudUpload: () => CloudUpload,
|
|
6793
6863
|
Copy: () => Copy,
|
|
6794
6864
|
CopyButton: () => CopyButton,
|
|
6865
|
+
CustomDialog: () => CustomDialog,
|
|
6866
|
+
CustomDrawer: () => CustomDrawer,
|
|
6867
|
+
DateRangeDropdown: () => DateRangeDropdown,
|
|
6868
|
+
DateRangePicker: () => DateRangePicker,
|
|
6795
6869
|
Download: () => Download,
|
|
6796
6870
|
EmptyContent: () => EmptyContent,
|
|
6797
6871
|
ErrorToast: () => ErrorToast,
|
|
6798
6872
|
Eye: () => Eye,
|
|
6799
6873
|
EyeClosed: () => EyeClosed,
|
|
6874
|
+
FeedbackDialog: () => FeedbackDialog,
|
|
6800
6875
|
Field: () => Field,
|
|
6876
|
+
FilterDropdown: () => FilterDropdown,
|
|
6877
|
+
FilterList: () => FilterList,
|
|
6801
6878
|
Form: () => Form,
|
|
6802
6879
|
HelpCircle: () => HelpCircle,
|
|
6803
6880
|
Icon: () => Icon,
|
|
@@ -6820,6 +6897,7 @@ __export(components_exports2, {
|
|
|
6820
6897
|
RHFAutocomplete: () => RHFAutocomplete,
|
|
6821
6898
|
RHFCheckbox: () => RHFCheckbox,
|
|
6822
6899
|
RHFDatePicker: () => RHFDatePicker,
|
|
6900
|
+
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
6823
6901
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
6824
6902
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
6825
6903
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
@@ -6834,6 +6912,7 @@ __export(components_exports2, {
|
|
|
6834
6912
|
Search: () => Search,
|
|
6835
6913
|
Settings: () => Settings,
|
|
6836
6914
|
SortDown: () => SortDown,
|
|
6915
|
+
SortDropdown: () => SortDropdown,
|
|
6837
6916
|
SortUp: () => SortUp,
|
|
6838
6917
|
SplashScreen: () => SplashScreen,
|
|
6839
6918
|
StatDown: () => StatDown,
|
|
@@ -6842,6 +6921,14 @@ __export(components_exports2, {
|
|
|
6842
6921
|
Table: () => Table,
|
|
6843
6922
|
TablePagination: () => TablePagination,
|
|
6844
6923
|
Toast: () => Toast,
|
|
6924
|
+
ToolbarButton: () => ToolbarButton,
|
|
6925
|
+
ToolbarDatePickerButton: () => ToolbarDatePickerButton,
|
|
6926
|
+
ToolbarFilterButton: () => ToolbarFilterButton,
|
|
6927
|
+
ToolbarSearchField: () => ToolbarSearchField,
|
|
6928
|
+
ToolbarSettingsButton: () => ToolbarSettingsButton,
|
|
6929
|
+
ToolbarSortButton: () => ToolbarSortButton,
|
|
6930
|
+
ToolbarTodayButton: () => ToolbarTodayButton,
|
|
6931
|
+
ToolbarViewSwitcher: () => ToolbarViewSwitcher,
|
|
6845
6932
|
Trash: () => Trash,
|
|
6846
6933
|
Upload: () => Upload,
|
|
6847
6934
|
User: () => User,
|
|
@@ -6849,13 +6936,19 @@ __export(components_exports2, {
|
|
|
6849
6936
|
WarningToast: () => WarningToast,
|
|
6850
6937
|
XMark: () => XMark,
|
|
6851
6938
|
XMarkSolid: () => XMarkSolid,
|
|
6852
|
-
|
|
6939
|
+
defaultPresets: () => defaultPresets,
|
|
6940
|
+
dialogClasses: () => dialogClasses,
|
|
6941
|
+
drawerClasses: () => drawerClasses,
|
|
6942
|
+
feedbackDialogClasses: () => feedbackDialogClasses,
|
|
6943
|
+
getDateRangeFromPreset: () => getDateRangeFromPreset,
|
|
6944
|
+
iconClasses: () => iconClasses,
|
|
6945
|
+
toolbarClasses: () => toolbarClasses
|
|
6853
6946
|
});
|
|
6854
6947
|
|
|
6855
6948
|
// src/components/Logo/index.tsx
|
|
6856
6949
|
import Link from "@mui/material/Link";
|
|
6857
6950
|
import Box2 from "@mui/material/Box";
|
|
6858
|
-
import { jsx as
|
|
6951
|
+
import { jsx as jsx58, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6859
6952
|
var LOGO_MAP = {
|
|
6860
6953
|
full: {
|
|
6861
6954
|
black: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-black-full_mjngwu.png",
|
|
@@ -6883,7 +6976,7 @@ var Logo = ({
|
|
|
6883
6976
|
const type = isFull ? "full" : "single";
|
|
6884
6977
|
const color = isWhite ? "white" : isBlack ? "black" : "default";
|
|
6885
6978
|
const logoImg = src ?? LOGO_MAP[type][color];
|
|
6886
|
-
const logo = /* @__PURE__ */
|
|
6979
|
+
const logo = /* @__PURE__ */ jsx58(
|
|
6887
6980
|
Box2,
|
|
6888
6981
|
{
|
|
6889
6982
|
component: "img",
|
|
@@ -6896,10 +6989,10 @@ var Logo = ({
|
|
|
6896
6989
|
if (disableLink) {
|
|
6897
6990
|
return logo;
|
|
6898
6991
|
}
|
|
6899
|
-
return /* @__PURE__ */
|
|
6992
|
+
return /* @__PURE__ */ jsx58(Link, { component: LinkComponent, href, sx: { display: "contents" }, children: logo });
|
|
6900
6993
|
};
|
|
6901
6994
|
var AnimatedLogo = () => {
|
|
6902
|
-
return /* @__PURE__ */
|
|
6995
|
+
return /* @__PURE__ */ jsxs36(
|
|
6903
6996
|
"svg",
|
|
6904
6997
|
{
|
|
6905
6998
|
width: "120",
|
|
@@ -6908,7 +7001,7 @@ var AnimatedLogo = () => {
|
|
|
6908
7001
|
fill: "none",
|
|
6909
7002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6910
7003
|
children: [
|
|
6911
|
-
/* @__PURE__ */
|
|
7004
|
+
/* @__PURE__ */ jsx58("style", { children: `
|
|
6912
7005
|
@keyframes fadeIn {
|
|
6913
7006
|
from {
|
|
6914
7007
|
opacity: 0;
|
|
@@ -6969,7 +7062,7 @@ var AnimatedLogo = () => {
|
|
|
6969
7062
|
transform-origin: center;
|
|
6970
7063
|
}
|
|
6971
7064
|
` }),
|
|
6972
|
-
/* @__PURE__ */
|
|
7065
|
+
/* @__PURE__ */ jsx58(
|
|
6973
7066
|
"rect",
|
|
6974
7067
|
{
|
|
6975
7068
|
className: "background-rect",
|
|
@@ -6980,7 +7073,7 @@ var AnimatedLogo = () => {
|
|
|
6980
7073
|
fill: "white"
|
|
6981
7074
|
}
|
|
6982
7075
|
),
|
|
6983
|
-
/* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ jsx58(
|
|
6984
7077
|
"path",
|
|
6985
7078
|
{
|
|
6986
7079
|
className: "bars",
|
|
@@ -6988,7 +7081,7 @@ var AnimatedLogo = () => {
|
|
|
6988
7081
|
fill: "#5E30EB"
|
|
6989
7082
|
}
|
|
6990
7083
|
),
|
|
6991
|
-
/* @__PURE__ */
|
|
7084
|
+
/* @__PURE__ */ jsx58(
|
|
6992
7085
|
"path",
|
|
6993
7086
|
{
|
|
6994
7087
|
className: "d-letter",
|
|
@@ -7011,7 +7104,7 @@ import { styled } from "@mui/material/styles";
|
|
|
7011
7104
|
import Box3 from "@mui/material/Box";
|
|
7012
7105
|
import Stack from "@mui/material/Stack";
|
|
7013
7106
|
import Typography from "@mui/material/Typography";
|
|
7014
|
-
import { jsx as
|
|
7107
|
+
import { jsx as jsx59, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7015
7108
|
var EmptyContent = ({
|
|
7016
7109
|
sx,
|
|
7017
7110
|
imgUrl,
|
|
@@ -7022,7 +7115,7 @@ var EmptyContent = ({
|
|
|
7022
7115
|
title = "No data",
|
|
7023
7116
|
...rest
|
|
7024
7117
|
}) => {
|
|
7025
|
-
return /* @__PURE__ */
|
|
7118
|
+
return /* @__PURE__ */ jsxs37(
|
|
7026
7119
|
Stack,
|
|
7027
7120
|
{
|
|
7028
7121
|
flexGrow: 1,
|
|
@@ -7040,7 +7133,7 @@ var EmptyContent = ({
|
|
|
7040
7133
|
},
|
|
7041
7134
|
...rest,
|
|
7042
7135
|
children: [
|
|
7043
|
-
imgUrl && /* @__PURE__ */
|
|
7136
|
+
imgUrl && /* @__PURE__ */ jsx59(
|
|
7044
7137
|
Box3,
|
|
7045
7138
|
{
|
|
7046
7139
|
component: "img",
|
|
@@ -7049,7 +7142,7 @@ var EmptyContent = ({
|
|
|
7049
7142
|
sx: { width: 1, maxWidth: 160, ...slotProps?.img, mb: 2 }
|
|
7050
7143
|
}
|
|
7051
7144
|
),
|
|
7052
|
-
title && /* @__PURE__ */
|
|
7145
|
+
title && /* @__PURE__ */ jsx59(
|
|
7053
7146
|
Typography,
|
|
7054
7147
|
{
|
|
7055
7148
|
variant: filled ? "h7" : "h6",
|
|
@@ -7063,7 +7156,7 @@ var EmptyContent = ({
|
|
|
7063
7156
|
children: title
|
|
7064
7157
|
}
|
|
7065
7158
|
),
|
|
7066
|
-
description && /* @__PURE__ */
|
|
7159
|
+
description && /* @__PURE__ */ jsx59(
|
|
7067
7160
|
Typography,
|
|
7068
7161
|
{
|
|
7069
7162
|
variant: "h8",
|
|
@@ -7083,14 +7176,14 @@ var EmptyContent = ({
|
|
|
7083
7176
|
};
|
|
7084
7177
|
|
|
7085
7178
|
// src/components/Table/components/TableNoRows.tsx
|
|
7086
|
-
import { jsx as
|
|
7179
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
7087
7180
|
var StyledGridOverlay = styled("div")(({ theme }) => ({
|
|
7088
7181
|
padding: theme.spacing(1.5, 3, 3),
|
|
7089
7182
|
width: "100%",
|
|
7090
7183
|
height: "100%"
|
|
7091
7184
|
}));
|
|
7092
7185
|
var TableNoRows = (props) => {
|
|
7093
|
-
return /* @__PURE__ */
|
|
7186
|
+
return /* @__PURE__ */ jsx60(StyledGridOverlay, { children: /* @__PURE__ */ jsx60(EmptyContent, { ...props, sx: { width: "100%" } }) });
|
|
7094
7187
|
};
|
|
7095
7188
|
var TableNoRows_default = TableNoRows;
|
|
7096
7189
|
|
|
@@ -7108,14 +7201,14 @@ import {
|
|
|
7108
7201
|
gridPageSizeSelector,
|
|
7109
7202
|
gridPageCountSelector
|
|
7110
7203
|
} from "@mui/x-data-grid";
|
|
7111
|
-
import { jsx as
|
|
7204
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7112
7205
|
var TablePagination = () => {
|
|
7113
7206
|
const theme = useTheme2();
|
|
7114
7207
|
const apiRef = useGridApiContext();
|
|
7115
7208
|
const page = useGridSelector(apiRef, gridPageSelector);
|
|
7116
7209
|
const pageCount = useGridSelector(apiRef, gridPageCountSelector);
|
|
7117
7210
|
const pageSize = useGridSelector(apiRef, gridPageSizeSelector);
|
|
7118
|
-
return /* @__PURE__ */
|
|
7211
|
+
return /* @__PURE__ */ jsxs38(
|
|
7119
7212
|
Stack2,
|
|
7120
7213
|
{
|
|
7121
7214
|
direction: "row",
|
|
@@ -7124,7 +7217,7 @@ var TablePagination = () => {
|
|
|
7124
7217
|
width: 1,
|
|
7125
7218
|
p: 1.5,
|
|
7126
7219
|
children: [
|
|
7127
|
-
/* @__PURE__ */
|
|
7220
|
+
/* @__PURE__ */ jsx61(Stack2, { direction: "row", alignItems: "center", spacing: 1, children: /* @__PURE__ */ jsxs38(
|
|
7128
7221
|
Typography2,
|
|
7129
7222
|
{
|
|
7130
7223
|
variant: "h8",
|
|
@@ -7136,13 +7229,13 @@ var TablePagination = () => {
|
|
|
7136
7229
|
]
|
|
7137
7230
|
}
|
|
7138
7231
|
) }),
|
|
7139
|
-
/* @__PURE__ */
|
|
7232
|
+
/* @__PURE__ */ jsx61(
|
|
7140
7233
|
Stack2,
|
|
7141
7234
|
{
|
|
7142
7235
|
direction: { xs: "column", md: "row" },
|
|
7143
7236
|
alignItems: { xs: "flex-start", md: "center" },
|
|
7144
7237
|
spacing: 2,
|
|
7145
|
-
children: /* @__PURE__ */
|
|
7238
|
+
children: /* @__PURE__ */ jsx61(
|
|
7146
7239
|
Pagination,
|
|
7147
7240
|
{
|
|
7148
7241
|
size: "medium",
|
|
@@ -7154,13 +7247,13 @@ var TablePagination = () => {
|
|
|
7154
7247
|
hideNextButton: true,
|
|
7155
7248
|
hidePrevButton: true,
|
|
7156
7249
|
onChange: (_, value) => apiRef.current.setPage(value - 1),
|
|
7157
|
-
renderItem: (item) => /* @__PURE__ */
|
|
7250
|
+
renderItem: (item) => /* @__PURE__ */ jsx61(PaginationItem, { ...item })
|
|
7158
7251
|
}
|
|
7159
7252
|
)
|
|
7160
7253
|
}
|
|
7161
7254
|
),
|
|
7162
|
-
/* @__PURE__ */
|
|
7163
|
-
/* @__PURE__ */
|
|
7255
|
+
/* @__PURE__ */ jsxs38(Stack2, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7256
|
+
/* @__PURE__ */ jsx61(
|
|
7164
7257
|
Button,
|
|
7165
7258
|
{
|
|
7166
7259
|
color: "inherit",
|
|
@@ -7170,7 +7263,7 @@ var TablePagination = () => {
|
|
|
7170
7263
|
children: "Previous"
|
|
7171
7264
|
}
|
|
7172
7265
|
),
|
|
7173
|
-
/* @__PURE__ */
|
|
7266
|
+
/* @__PURE__ */ jsx61(
|
|
7174
7267
|
Button,
|
|
7175
7268
|
{
|
|
7176
7269
|
color: "inherit",
|
|
@@ -7187,11 +7280,11 @@ var TablePagination = () => {
|
|
|
7187
7280
|
};
|
|
7188
7281
|
|
|
7189
7282
|
// src/components/Table/Table.tsx
|
|
7190
|
-
import { jsx as
|
|
7283
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7191
7284
|
var Table = (props) => {
|
|
7192
7285
|
const { data, showFooter = true, sx, slots, slotProps, ...rest } = props;
|
|
7193
7286
|
const isEmpty = data.length === 0;
|
|
7194
|
-
return /* @__PURE__ */
|
|
7287
|
+
return /* @__PURE__ */ jsx62(
|
|
7195
7288
|
DataGrid,
|
|
7196
7289
|
{
|
|
7197
7290
|
rowHeight: 56,
|
|
@@ -7255,7 +7348,7 @@ var imageClasses = {
|
|
|
7255
7348
|
};
|
|
7256
7349
|
|
|
7257
7350
|
// src/components/Image/index.tsx
|
|
7258
|
-
import { jsx as
|
|
7351
|
+
import { jsx as jsx63, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7259
7352
|
var Image = forwardRef(function Image2(props, ref) {
|
|
7260
7353
|
const {
|
|
7261
7354
|
src,
|
|
@@ -7354,7 +7447,7 @@ var Image = forwardRef(function Image2(props, ref) {
|
|
|
7354
7447
|
const showLoader = status === "idle" || status === "loading";
|
|
7355
7448
|
const showError = status === "error";
|
|
7356
7449
|
const loadingAttr = lazy ? "lazy" : imgLoading ?? "eager";
|
|
7357
|
-
return /* @__PURE__ */
|
|
7450
|
+
return /* @__PURE__ */ jsxs39(
|
|
7358
7451
|
Box4,
|
|
7359
7452
|
{
|
|
7360
7453
|
className: imageClasses.root.concat(className ? ` ${className}` : ""),
|
|
@@ -7363,13 +7456,13 @@ var Image = forwardRef(function Image2(props, ref) {
|
|
|
7363
7456
|
display: "block",
|
|
7364
7457
|
width: 1,
|
|
7365
7458
|
lineHeight: 0,
|
|
7366
|
-
overflow:
|
|
7459
|
+
overflow: "hidden",
|
|
7367
7460
|
...aspectRatio && { aspectRatio },
|
|
7368
7461
|
...sx
|
|
7369
7462
|
},
|
|
7370
7463
|
...rest,
|
|
7371
7464
|
children: [
|
|
7372
|
-
showLoader && (loadingIndicator ?? /* @__PURE__ */
|
|
7465
|
+
showLoader && (loadingIndicator ?? /* @__PURE__ */ jsx63(
|
|
7373
7466
|
Skeleton,
|
|
7374
7467
|
{
|
|
7375
7468
|
animation: "wave",
|
|
@@ -7384,7 +7477,7 @@ var Image = forwardRef(function Image2(props, ref) {
|
|
|
7384
7477
|
}
|
|
7385
7478
|
}
|
|
7386
7479
|
)),
|
|
7387
|
-
/* @__PURE__ */
|
|
7480
|
+
/* @__PURE__ */ jsx63(
|
|
7388
7481
|
Box4,
|
|
7389
7482
|
{
|
|
7390
7483
|
ref: setRefs,
|
|
@@ -7413,7 +7506,7 @@ var Image = forwardRef(function Image2(props, ref) {
|
|
|
7413
7506
|
}
|
|
7414
7507
|
}
|
|
7415
7508
|
),
|
|
7416
|
-
withOverlay && !showError && /* @__PURE__ */
|
|
7509
|
+
withOverlay && !showError && /* @__PURE__ */ jsx63(
|
|
7417
7510
|
Box4,
|
|
7418
7511
|
{
|
|
7419
7512
|
className: imageClasses.overlay,
|
|
@@ -7425,7 +7518,7 @@ var Image = forwardRef(function Image2(props, ref) {
|
|
|
7425
7518
|
children: overlay
|
|
7426
7519
|
}
|
|
7427
7520
|
),
|
|
7428
|
-
showError && (renderError ?? /* @__PURE__ */
|
|
7521
|
+
showError && (renderError ?? /* @__PURE__ */ jsx63(
|
|
7429
7522
|
Box4,
|
|
7430
7523
|
{
|
|
7431
7524
|
className: imageClasses.overlay,
|
|
@@ -7484,7 +7577,7 @@ var toasterClasses = {
|
|
|
7484
7577
|
|
|
7485
7578
|
// src/components/Toast/styles.ts
|
|
7486
7579
|
var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
7487
|
-
const
|
|
7580
|
+
const baseStyles6 = {
|
|
7488
7581
|
toastDefault: {
|
|
7489
7582
|
padding: theme.spacing(1.5),
|
|
7490
7583
|
boxShadow: theme.customShadows["shadow-lg"],
|
|
@@ -7600,7 +7693,7 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7600
7693
|
*/
|
|
7601
7694
|
"@keyframes rotate": { to: { transform: "rotate(1turn)" } },
|
|
7602
7695
|
[`& .${toasterClasses.default}`]: {
|
|
7603
|
-
...
|
|
7696
|
+
...baseStyles6.toastDefault,
|
|
7604
7697
|
[`&:has(${toasterClasses.closeBtnVisible})`]: {
|
|
7605
7698
|
[`& .${toasterClasses.content}`]: {
|
|
7606
7699
|
paddingRight: 32
|
|
@@ -7611,7 +7704,7 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7611
7704
|
* Error
|
|
7612
7705
|
*/
|
|
7613
7706
|
[`& .${toasterClasses.error}`]: {
|
|
7614
|
-
...
|
|
7707
|
+
...baseStyles6.toastColor,
|
|
7615
7708
|
[`& .${toasterClasses.icon}`]: {
|
|
7616
7709
|
color: theme.vars.palette.error.main
|
|
7617
7710
|
}
|
|
@@ -7620,7 +7713,7 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7620
7713
|
* Success
|
|
7621
7714
|
*/
|
|
7622
7715
|
[`& .${toasterClasses.success}`]: {
|
|
7623
|
-
...
|
|
7716
|
+
...baseStyles6.toastColor,
|
|
7624
7717
|
[`& .${toasterClasses.icon}`]: {
|
|
7625
7718
|
color: theme.vars.palette.success.main
|
|
7626
7719
|
}
|
|
@@ -7629,7 +7722,7 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7629
7722
|
* Warning
|
|
7630
7723
|
*/
|
|
7631
7724
|
[`& .${toasterClasses.warning}`]: {
|
|
7632
|
-
...
|
|
7725
|
+
...baseStyles6.toastColor,
|
|
7633
7726
|
[`& .${toasterClasses.icon}`]: {
|
|
7634
7727
|
color: theme.vars.palette.warning.main
|
|
7635
7728
|
}
|
|
@@ -7638,7 +7731,7 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7638
7731
|
* Info
|
|
7639
7732
|
*/
|
|
7640
7733
|
[`& .${toasterClasses.info}`]: {
|
|
7641
|
-
...
|
|
7734
|
+
...baseStyles6.toastColor,
|
|
7642
7735
|
[`& .${toasterClasses.icon}`]: {
|
|
7643
7736
|
color: theme.vars.palette.info.main
|
|
7644
7737
|
}
|
|
@@ -7649,9 +7742,9 @@ var StyledToaster = styled2(Toaster)(({ theme }) => {
|
|
|
7649
7742
|
// src/components/Toast/index.tsx
|
|
7650
7743
|
__reExport(Toast_exports, sonner_star);
|
|
7651
7744
|
import * as sonner_star from "sonner";
|
|
7652
|
-
import { jsx as
|
|
7745
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
7653
7746
|
var Toast = () => {
|
|
7654
|
-
return /* @__PURE__ */
|
|
7747
|
+
return /* @__PURE__ */ jsx64(Portal, { children: /* @__PURE__ */ jsx64(
|
|
7655
7748
|
StyledToaster,
|
|
7656
7749
|
{
|
|
7657
7750
|
expand: true,
|
|
@@ -7683,12 +7776,12 @@ var Toast = () => {
|
|
|
7683
7776
|
}
|
|
7684
7777
|
},
|
|
7685
7778
|
icons: {
|
|
7686
|
-
loading: /* @__PURE__ */
|
|
7687
|
-
info: /* @__PURE__ */
|
|
7688
|
-
success: /* @__PURE__ */
|
|
7689
|
-
warning: /* @__PURE__ */
|
|
7690
|
-
error: /* @__PURE__ */
|
|
7691
|
-
close: /* @__PURE__ */
|
|
7779
|
+
loading: /* @__PURE__ */ jsx64("span", { className: toasterClasses.loadingIcon }),
|
|
7780
|
+
info: /* @__PURE__ */ jsx64(Icon, { className: toasterClasses.iconSvg, icon: "InfoToast" }),
|
|
7781
|
+
success: /* @__PURE__ */ jsx64(Icon, { className: toasterClasses.iconSvg, icon: "SuccessToast" }),
|
|
7782
|
+
warning: /* @__PURE__ */ jsx64(Icon, { className: toasterClasses.iconSvg, icon: "WarningToast" }),
|
|
7783
|
+
error: /* @__PURE__ */ jsx64(Icon, { className: toasterClasses.iconSvg, icon: "ErrorToast" }),
|
|
7784
|
+
close: /* @__PURE__ */ jsx64(Icon, { className: toasterClasses.iconSvg, icon: "XMark" })
|
|
7692
7785
|
}
|
|
7693
7786
|
}
|
|
7694
7787
|
) });
|
|
@@ -7707,9 +7800,9 @@ import FormHelperText from "@mui/material/FormHelperText";
|
|
|
7707
7800
|
// src/components/Upload/components/Placeholder.tsx
|
|
7708
7801
|
import Stack3 from "@mui/material/Stack";
|
|
7709
7802
|
import Box5 from "@mui/material/Box";
|
|
7710
|
-
import { jsx as
|
|
7803
|
+
import { jsx as jsx65, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7711
7804
|
var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
7712
|
-
return /* @__PURE__ */
|
|
7805
|
+
return /* @__PURE__ */ jsxs40(
|
|
7713
7806
|
Box5,
|
|
7714
7807
|
{
|
|
7715
7808
|
sx: {
|
|
@@ -7720,7 +7813,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7720
7813
|
},
|
|
7721
7814
|
...rest,
|
|
7722
7815
|
children: [
|
|
7723
|
-
/* @__PURE__ */
|
|
7816
|
+
/* @__PURE__ */ jsx65(
|
|
7724
7817
|
Icon,
|
|
7725
7818
|
{
|
|
7726
7819
|
icon: "CloudUpload",
|
|
@@ -7731,10 +7824,10 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7731
7824
|
}
|
|
7732
7825
|
}
|
|
7733
7826
|
),
|
|
7734
|
-
/* @__PURE__ */
|
|
7735
|
-
/* @__PURE__ */
|
|
7827
|
+
/* @__PURE__ */ jsxs40(Stack3, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
|
|
7828
|
+
/* @__PURE__ */ jsxs40(Box5, { sx: { typography: "h8" }, children: [
|
|
7736
7829
|
"Drag files here or",
|
|
7737
|
-
/* @__PURE__ */
|
|
7830
|
+
/* @__PURE__ */ jsx65(
|
|
7738
7831
|
Box5,
|
|
7739
7832
|
{
|
|
7740
7833
|
component: "span",
|
|
@@ -7747,7 +7840,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7747
7840
|
}
|
|
7748
7841
|
)
|
|
7749
7842
|
] }),
|
|
7750
|
-
/* @__PURE__ */
|
|
7843
|
+
/* @__PURE__ */ jsxs40(
|
|
7751
7844
|
Box5,
|
|
7752
7845
|
{
|
|
7753
7846
|
sx: {
|
|
@@ -7802,12 +7895,12 @@ var fileData = (file) => {
|
|
|
7802
7895
|
};
|
|
7803
7896
|
|
|
7804
7897
|
// src/components/Upload/components/RejectionFiles.tsx
|
|
7805
|
-
import { jsx as
|
|
7898
|
+
import { jsx as jsx66, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7806
7899
|
var RejectionFiles = ({ files }) => {
|
|
7807
7900
|
if (!files.length) {
|
|
7808
7901
|
return null;
|
|
7809
7902
|
}
|
|
7810
|
-
return /* @__PURE__ */
|
|
7903
|
+
return /* @__PURE__ */ jsx66(
|
|
7811
7904
|
Paper,
|
|
7812
7905
|
{
|
|
7813
7906
|
variant: "outlined",
|
|
@@ -7822,13 +7915,13 @@ var RejectionFiles = ({ files }) => {
|
|
|
7822
7915
|
},
|
|
7823
7916
|
children: files.map(({ file, errors }) => {
|
|
7824
7917
|
const { path, size } = fileData(file);
|
|
7825
|
-
return /* @__PURE__ */
|
|
7826
|
-
/* @__PURE__ */
|
|
7918
|
+
return /* @__PURE__ */ jsxs41(Box6, { sx: { my: 1 }, children: [
|
|
7919
|
+
/* @__PURE__ */ jsxs41(Typography3, { variant: "subtitle2", noWrap: true, children: [
|
|
7827
7920
|
path,
|
|
7828
7921
|
" - ",
|
|
7829
7922
|
size ? fData(size) : ""
|
|
7830
7923
|
] }),
|
|
7831
|
-
errors.map((error2) => /* @__PURE__ */
|
|
7924
|
+
errors.map((error2) => /* @__PURE__ */ jsxs41(Box6, { component: "span", sx: { typography: "caption" }, children: [
|
|
7832
7925
|
"- ",
|
|
7833
7926
|
error2.message
|
|
7834
7927
|
] }, error2.code))
|
|
@@ -7841,9 +7934,9 @@ var RejectionFiles = ({ files }) => {
|
|
|
7841
7934
|
// src/components/Upload/components/UploadProgress.tsx
|
|
7842
7935
|
import Box7 from "@mui/material/Box";
|
|
7843
7936
|
import CircularProgress from "@mui/material/CircularProgress";
|
|
7844
|
-
import { jsx as
|
|
7937
|
+
import { jsx as jsx67, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7845
7938
|
var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
7846
|
-
return /* @__PURE__ */
|
|
7939
|
+
return /* @__PURE__ */ jsxs42(
|
|
7847
7940
|
Box7,
|
|
7848
7941
|
{
|
|
7849
7942
|
sx: {
|
|
@@ -7854,8 +7947,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7854
7947
|
height: "100%"
|
|
7855
7948
|
},
|
|
7856
7949
|
children: [
|
|
7857
|
-
/* @__PURE__ */
|
|
7858
|
-
/* @__PURE__ */
|
|
7950
|
+
/* @__PURE__ */ jsxs42(Box7, { sx: { position: "relative", display: "inline-flex" }, children: [
|
|
7951
|
+
/* @__PURE__ */ jsx67(
|
|
7859
7952
|
CircularProgress,
|
|
7860
7953
|
{
|
|
7861
7954
|
variant: "determinate",
|
|
@@ -7868,7 +7961,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7868
7961
|
}
|
|
7869
7962
|
}
|
|
7870
7963
|
),
|
|
7871
|
-
/* @__PURE__ */
|
|
7964
|
+
/* @__PURE__ */ jsx67(
|
|
7872
7965
|
CircularProgress,
|
|
7873
7966
|
{
|
|
7874
7967
|
variant: "determinate",
|
|
@@ -7880,7 +7973,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7880
7973
|
}
|
|
7881
7974
|
}
|
|
7882
7975
|
),
|
|
7883
|
-
/* @__PURE__ */
|
|
7976
|
+
/* @__PURE__ */ jsx67(
|
|
7884
7977
|
Box7,
|
|
7885
7978
|
{
|
|
7886
7979
|
sx: {
|
|
@@ -7893,11 +7986,11 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7893
7986
|
alignItems: "center",
|
|
7894
7987
|
justifyContent: "center"
|
|
7895
7988
|
},
|
|
7896
|
-
children: /* @__PURE__ */
|
|
7989
|
+
children: /* @__PURE__ */ jsx67(Box7, { sx: { typography: "h6", color: "common.black" }, children: `${Math.round(progress2)}` })
|
|
7897
7990
|
}
|
|
7898
7991
|
)
|
|
7899
7992
|
] }),
|
|
7900
|
-
/* @__PURE__ */
|
|
7993
|
+
/* @__PURE__ */ jsx67(Box7, { sx: { mt: 2, typography: "h6" }, children: "Uploading" })
|
|
7901
7994
|
]
|
|
7902
7995
|
}
|
|
7903
7996
|
);
|
|
@@ -7911,11 +8004,11 @@ import IconButton2 from "@mui/material/IconButton";
|
|
|
7911
8004
|
// src/components/Upload/components/SingleFilePreview.tsx
|
|
7912
8005
|
import Box8 from "@mui/material/Box";
|
|
7913
8006
|
import IconButton from "@mui/material/IconButton";
|
|
7914
|
-
import { jsx as
|
|
8007
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
7915
8008
|
var SingleFilePreview = ({ file }) => {
|
|
7916
8009
|
const fileName = typeof file === "string" ? file : file.name;
|
|
7917
8010
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
7918
|
-
const renderImg = /* @__PURE__ */
|
|
8011
|
+
const renderImg = /* @__PURE__ */ jsx68(
|
|
7919
8012
|
Box8,
|
|
7920
8013
|
{
|
|
7921
8014
|
component: "img",
|
|
@@ -7929,7 +8022,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7929
8022
|
}
|
|
7930
8023
|
}
|
|
7931
8024
|
);
|
|
7932
|
-
return /* @__PURE__ */
|
|
8025
|
+
return /* @__PURE__ */ jsx68(
|
|
7933
8026
|
Box8,
|
|
7934
8027
|
{
|
|
7935
8028
|
sx: {
|
|
@@ -7945,7 +8038,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7945
8038
|
);
|
|
7946
8039
|
};
|
|
7947
8040
|
var DeleteButton = ({ sx, ...rest }) => {
|
|
7948
|
-
return /* @__PURE__ */
|
|
8041
|
+
return /* @__PURE__ */ jsx68(
|
|
7949
8042
|
IconButton,
|
|
7950
8043
|
{
|
|
7951
8044
|
size: "small",
|
|
@@ -7964,13 +8057,13 @@ var DeleteButton = ({ sx, ...rest }) => {
|
|
|
7964
8057
|
...sx
|
|
7965
8058
|
},
|
|
7966
8059
|
...rest,
|
|
7967
|
-
children: /* @__PURE__ */
|
|
8060
|
+
children: /* @__PURE__ */ jsx68(Icon, { icon: "XMark", sx: { width: 18, height: 18 } })
|
|
7968
8061
|
}
|
|
7969
8062
|
);
|
|
7970
8063
|
};
|
|
7971
8064
|
|
|
7972
8065
|
// src/components/Upload/components/MultiFilePreview.tsx
|
|
7973
|
-
import { jsx as
|
|
8066
|
+
import { jsx as jsx69, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7974
8067
|
var MultiFilePreview = ({ files, onRemove }) => {
|
|
7975
8068
|
const scrollRef = useRef5(null);
|
|
7976
8069
|
const handleScroll = (direction) => {
|
|
@@ -7984,8 +8077,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7984
8077
|
}
|
|
7985
8078
|
};
|
|
7986
8079
|
const showNavigation = files.length > 2;
|
|
7987
|
-
return /* @__PURE__ */
|
|
7988
|
-
showNavigation && /* @__PURE__ */
|
|
8080
|
+
return /* @__PURE__ */ jsxs43(Box9, { sx: { position: "relative", width: 1 }, children: [
|
|
8081
|
+
showNavigation && /* @__PURE__ */ jsx69(
|
|
7989
8082
|
IconButton2,
|
|
7990
8083
|
{
|
|
7991
8084
|
size: "small",
|
|
@@ -8002,10 +8095,10 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8002
8095
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
8003
8096
|
}
|
|
8004
8097
|
},
|
|
8005
|
-
children: /* @__PURE__ */
|
|
8098
|
+
children: /* @__PURE__ */ jsx69(Icon, { icon: "NavArrowLeft", width: 20 })
|
|
8006
8099
|
}
|
|
8007
8100
|
),
|
|
8008
|
-
/* @__PURE__ */
|
|
8101
|
+
/* @__PURE__ */ jsx69(
|
|
8009
8102
|
Box9,
|
|
8010
8103
|
{
|
|
8011
8104
|
ref: scrollRef,
|
|
@@ -8024,7 +8117,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8024
8117
|
children: files.map((file, index) => {
|
|
8025
8118
|
const fileName = typeof file === "string" ? file : file.name;
|
|
8026
8119
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
8027
|
-
return /* @__PURE__ */
|
|
8120
|
+
return /* @__PURE__ */ jsxs43(
|
|
8028
8121
|
Box9,
|
|
8029
8122
|
{
|
|
8030
8123
|
sx: {
|
|
@@ -8036,7 +8129,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8036
8129
|
flexShrink: 0
|
|
8037
8130
|
},
|
|
8038
8131
|
children: [
|
|
8039
|
-
/* @__PURE__ */
|
|
8132
|
+
/* @__PURE__ */ jsx69(
|
|
8040
8133
|
Box9,
|
|
8041
8134
|
{
|
|
8042
8135
|
component: "img",
|
|
@@ -8050,7 +8143,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8050
8143
|
}
|
|
8051
8144
|
}
|
|
8052
8145
|
),
|
|
8053
|
-
onRemove && /* @__PURE__ */
|
|
8146
|
+
onRemove && /* @__PURE__ */ jsx69(
|
|
8054
8147
|
DeleteButton,
|
|
8055
8148
|
{
|
|
8056
8149
|
onClick: (e) => {
|
|
@@ -8066,7 +8159,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8066
8159
|
})
|
|
8067
8160
|
}
|
|
8068
8161
|
),
|
|
8069
|
-
showNavigation && /* @__PURE__ */
|
|
8162
|
+
showNavigation && /* @__PURE__ */ jsx69(
|
|
8070
8163
|
IconButton2,
|
|
8071
8164
|
{
|
|
8072
8165
|
size: "small",
|
|
@@ -8083,14 +8176,14 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8083
8176
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
8084
8177
|
}
|
|
8085
8178
|
},
|
|
8086
|
-
children: /* @__PURE__ */
|
|
8179
|
+
children: /* @__PURE__ */ jsx69(Icon, { icon: "NavArrowRight", width: 20 })
|
|
8087
8180
|
}
|
|
8088
8181
|
)
|
|
8089
8182
|
] });
|
|
8090
8183
|
};
|
|
8091
8184
|
|
|
8092
8185
|
// src/components/Upload/Upload.tsx
|
|
8093
|
-
import { jsx as
|
|
8186
|
+
import { jsx as jsx70, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
8094
8187
|
var Upload = ({
|
|
8095
8188
|
sx,
|
|
8096
8189
|
value,
|
|
@@ -8117,19 +8210,19 @@ var Upload = ({
|
|
|
8117
8210
|
const hasError = isDragReject || !!error2;
|
|
8118
8211
|
const renderContent = () => {
|
|
8119
8212
|
if (isUploading) {
|
|
8120
|
-
return /* @__PURE__ */
|
|
8213
|
+
return /* @__PURE__ */ jsx70(UploadProgress, { progress: uploadProgress });
|
|
8121
8214
|
}
|
|
8122
8215
|
if (hasFile) {
|
|
8123
|
-
return /* @__PURE__ */
|
|
8216
|
+
return /* @__PURE__ */ jsx70(SingleFilePreview, { file: value });
|
|
8124
8217
|
}
|
|
8125
8218
|
if (hasFiles) {
|
|
8126
|
-
return /* @__PURE__ */
|
|
8219
|
+
return /* @__PURE__ */ jsx70(MultiFilePreview, { files: value, onRemove });
|
|
8127
8220
|
}
|
|
8128
|
-
return /* @__PURE__ */
|
|
8221
|
+
return /* @__PURE__ */ jsx70(UploadPlaceholder, { hasError });
|
|
8129
8222
|
};
|
|
8130
8223
|
const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
|
|
8131
|
-
return /* @__PURE__ */
|
|
8132
|
-
/* @__PURE__ */
|
|
8224
|
+
return /* @__PURE__ */ jsxs44(Box10, { sx: { width: 1, position: "relative", ...sx }, children: [
|
|
8225
|
+
/* @__PURE__ */ jsxs44(
|
|
8133
8226
|
Box10,
|
|
8134
8227
|
{
|
|
8135
8228
|
...shouldShowDropzone ? getRootProps() : {},
|
|
@@ -8168,61 +8261,1353 @@ var Upload = ({
|
|
|
8168
8261
|
}
|
|
8169
8262
|
},
|
|
8170
8263
|
children: [
|
|
8171
|
-
shouldShowDropzone && /* @__PURE__ */
|
|
8264
|
+
shouldShowDropzone && /* @__PURE__ */ jsx70("input", { ...getInputProps() }),
|
|
8172
8265
|
renderContent()
|
|
8173
8266
|
]
|
|
8174
8267
|
}
|
|
8175
8268
|
),
|
|
8176
|
-
hasFile && !isUploading && /* @__PURE__ */
|
|
8177
|
-
hasFiles && /* @__PURE__ */
|
|
8178
|
-
onRemoveAll && /* @__PURE__ */
|
|
8269
|
+
hasFile && !isUploading && /* @__PURE__ */ jsx70(DeleteButton, { onClick: onDelete }),
|
|
8270
|
+
hasFiles && /* @__PURE__ */ jsxs44(Stack4, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
|
|
8271
|
+
onRemoveAll && /* @__PURE__ */ jsx70(
|
|
8179
8272
|
Button2,
|
|
8180
8273
|
{
|
|
8181
8274
|
variant: "outlined",
|
|
8182
8275
|
color: "inherit",
|
|
8183
8276
|
size: "small",
|
|
8184
8277
|
onClick: onRemoveAll,
|
|
8185
|
-
startIcon: /* @__PURE__ */
|
|
8278
|
+
startIcon: /* @__PURE__ */ jsx70(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
|
|
8186
8279
|
children: "Remove all"
|
|
8187
8280
|
}
|
|
8188
8281
|
),
|
|
8189
|
-
onUpload && /* @__PURE__ */
|
|
8282
|
+
onUpload && /* @__PURE__ */ jsx70(
|
|
8190
8283
|
Button2,
|
|
8191
8284
|
{
|
|
8192
8285
|
variant: "contained",
|
|
8193
8286
|
size: "small",
|
|
8194
8287
|
onClick: onUpload,
|
|
8195
|
-
startIcon: /* @__PURE__ */
|
|
8288
|
+
startIcon: /* @__PURE__ */ jsx70(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
|
|
8196
8289
|
children: "Upload files"
|
|
8197
8290
|
}
|
|
8198
8291
|
)
|
|
8199
8292
|
] }),
|
|
8200
|
-
helperText && /* @__PURE__ */
|
|
8201
|
-
/* @__PURE__ */
|
|
8293
|
+
helperText && /* @__PURE__ */ jsx70(FormHelperText, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
|
|
8294
|
+
/* @__PURE__ */ jsx70(RejectionFiles, { files: [...fileRejections] })
|
|
8202
8295
|
] });
|
|
8203
8296
|
};
|
|
8204
8297
|
|
|
8205
|
-
// src/components/
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8298
|
+
// src/components/Dialog/classes.ts
|
|
8299
|
+
var dialogClasses = {
|
|
8300
|
+
root: "undefine__Dialog-root",
|
|
8301
|
+
closeButton: "undefine__Dialog-closeButton"
|
|
8302
|
+
};
|
|
8303
|
+
var feedbackDialogClasses = {
|
|
8304
|
+
root: "undefine__FeedbackDialog-root",
|
|
8305
|
+
image: "undefine__FeedbackDialog-image",
|
|
8306
|
+
title: "undefine__FeedbackDialog-title",
|
|
8307
|
+
description: "undefine__FeedbackDialog-description",
|
|
8308
|
+
actions: "undefine__FeedbackDialog-actions"
|
|
8309
|
+
};
|
|
8310
|
+
|
|
8311
|
+
// src/components/Dialog/CustomDialog.tsx
|
|
8209
8312
|
import Box11 from "@mui/material/Box";
|
|
8210
|
-
import
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
}) => {
|
|
8217
|
-
return /* @__PURE__ */ jsx70(RHFForm, { ...methods, children: /* @__PURE__ */ jsx70(
|
|
8218
|
-
Box11,
|
|
8313
|
+
import IconButton3 from "@mui/material/IconButton";
|
|
8314
|
+
import Dialog from "@mui/material/Dialog";
|
|
8315
|
+
import { jsx as jsx71, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
8316
|
+
var CustomDialog = ({ children, onClose, className, ...props }) => {
|
|
8317
|
+
return /* @__PURE__ */ jsxs45(
|
|
8318
|
+
Dialog,
|
|
8219
8319
|
{
|
|
8220
|
-
|
|
8221
|
-
|
|
8222
|
-
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8320
|
+
className: dialogClasses.root.concat(className ? ` ${className}` : ""),
|
|
8321
|
+
onClose,
|
|
8322
|
+
...props,
|
|
8323
|
+
children: [
|
|
8324
|
+
/* @__PURE__ */ jsx71(
|
|
8325
|
+
IconButton3,
|
|
8326
|
+
{
|
|
8327
|
+
"aria-label": "close",
|
|
8328
|
+
onClick: onClose,
|
|
8329
|
+
className: dialogClasses.closeButton,
|
|
8330
|
+
sx: {
|
|
8331
|
+
position: "absolute",
|
|
8332
|
+
right: 24,
|
|
8333
|
+
top: 24,
|
|
8334
|
+
color: (theme) => theme.vars.palette.text.body,
|
|
8335
|
+
zIndex: 1
|
|
8336
|
+
},
|
|
8337
|
+
children: /* @__PURE__ */ jsx71(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
8338
|
+
}
|
|
8339
|
+
),
|
|
8340
|
+
/* @__PURE__ */ jsx71(Box11, { sx: { p: 4, pt: 9.5 }, children })
|
|
8341
|
+
]
|
|
8342
|
+
}
|
|
8343
|
+
);
|
|
8344
|
+
};
|
|
8345
|
+
|
|
8346
|
+
// src/components/Dialog/FeedbackDialog.tsx
|
|
8347
|
+
import Stack5 from "@mui/material/Stack";
|
|
8348
|
+
import Box12 from "@mui/material/Box";
|
|
8349
|
+
import Typography4 from "@mui/material/Typography";
|
|
8350
|
+
import { jsx as jsx72, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
8351
|
+
var FeedbackDialog = ({
|
|
8352
|
+
image,
|
|
8353
|
+
title,
|
|
8354
|
+
description,
|
|
8355
|
+
actions,
|
|
8356
|
+
feedbackSlotProps,
|
|
8357
|
+
slotProps,
|
|
8358
|
+
...props
|
|
8359
|
+
}) => {
|
|
8360
|
+
return /* @__PURE__ */ jsx72(
|
|
8361
|
+
CustomDialog,
|
|
8362
|
+
{
|
|
8363
|
+
slotProps: {
|
|
8364
|
+
...slotProps,
|
|
8365
|
+
paper: {
|
|
8366
|
+
sx: { minWidth: 360, maxWidth: 420 },
|
|
8367
|
+
...slotProps?.paper
|
|
8368
|
+
}
|
|
8369
|
+
},
|
|
8370
|
+
...props,
|
|
8371
|
+
children: /* @__PURE__ */ jsxs46(Stack5, { className: feedbackDialogClasses.root, alignItems: "center", spacing: 2.5, children: [
|
|
8372
|
+
image && /* @__PURE__ */ jsx72(
|
|
8373
|
+
Box12,
|
|
8374
|
+
{
|
|
8375
|
+
component: "img",
|
|
8376
|
+
alt: "feedback",
|
|
8377
|
+
src: image,
|
|
8378
|
+
className: feedbackDialogClasses.image,
|
|
8379
|
+
sx: {
|
|
8380
|
+
width: 80,
|
|
8381
|
+
height: 80,
|
|
8382
|
+
objectFit: "contain",
|
|
8383
|
+
...feedbackSlotProps?.image
|
|
8384
|
+
}
|
|
8385
|
+
}
|
|
8386
|
+
),
|
|
8387
|
+
title && /* @__PURE__ */ jsx72(
|
|
8388
|
+
Typography4,
|
|
8389
|
+
{
|
|
8390
|
+
variant: "h4",
|
|
8391
|
+
className: feedbackDialogClasses.title,
|
|
8392
|
+
sx: {
|
|
8393
|
+
textAlign: "center",
|
|
8394
|
+
fontWeight: 500,
|
|
8395
|
+
color: "text.header",
|
|
8396
|
+
...feedbackSlotProps?.title
|
|
8397
|
+
},
|
|
8398
|
+
children: title
|
|
8399
|
+
}
|
|
8400
|
+
),
|
|
8401
|
+
description && /* @__PURE__ */ jsx72(
|
|
8402
|
+
Typography4,
|
|
8403
|
+
{
|
|
8404
|
+
variant: "body2",
|
|
8405
|
+
className: feedbackDialogClasses.description,
|
|
8406
|
+
sx: {
|
|
8407
|
+
textAlign: "center",
|
|
8408
|
+
color: "text.body",
|
|
8409
|
+
...feedbackSlotProps?.description
|
|
8410
|
+
},
|
|
8411
|
+
children: description
|
|
8412
|
+
}
|
|
8413
|
+
),
|
|
8414
|
+
actions && /* @__PURE__ */ jsx72(
|
|
8415
|
+
Box12,
|
|
8416
|
+
{
|
|
8417
|
+
className: feedbackDialogClasses.actions,
|
|
8418
|
+
sx: {
|
|
8419
|
+
display: "flex",
|
|
8420
|
+
flexDirection: "column",
|
|
8421
|
+
gap: 1,
|
|
8422
|
+
width: "100%",
|
|
8423
|
+
...feedbackSlotProps?.actions
|
|
8424
|
+
},
|
|
8425
|
+
children: actions
|
|
8426
|
+
}
|
|
8427
|
+
)
|
|
8428
|
+
] })
|
|
8429
|
+
}
|
|
8430
|
+
);
|
|
8431
|
+
};
|
|
8432
|
+
|
|
8433
|
+
// src/components/Drawer/classes.ts
|
|
8434
|
+
var drawerClasses = {
|
|
8435
|
+
root: "undefine__Drawer-root",
|
|
8436
|
+
header: "undefine__Drawer-header",
|
|
8437
|
+
title: "undefine__Drawer-title",
|
|
8438
|
+
closeButton: "undefine__Drawer-closeButton",
|
|
8439
|
+
content: "undefine__Drawer-content"
|
|
8440
|
+
};
|
|
8441
|
+
|
|
8442
|
+
// src/components/Drawer/CustomDrawer.tsx
|
|
8443
|
+
import Box13 from "@mui/material/Box";
|
|
8444
|
+
import IconButton4 from "@mui/material/IconButton";
|
|
8445
|
+
import Typography5 from "@mui/material/Typography";
|
|
8446
|
+
import MuiDrawer2 from "@mui/material/Drawer";
|
|
8447
|
+
import { jsx as jsx73, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
8448
|
+
var CustomDrawer = ({
|
|
8449
|
+
title,
|
|
8450
|
+
children,
|
|
8451
|
+
onClose,
|
|
8452
|
+
className,
|
|
8453
|
+
anchor = "right",
|
|
8454
|
+
slotProps,
|
|
8455
|
+
...props
|
|
8456
|
+
}) => {
|
|
8457
|
+
return /* @__PURE__ */ jsxs47(
|
|
8458
|
+
MuiDrawer2,
|
|
8459
|
+
{
|
|
8460
|
+
anchor,
|
|
8461
|
+
className: drawerClasses.root.concat(className ? ` ${className}` : ""),
|
|
8462
|
+
onClose,
|
|
8463
|
+
slotProps: {
|
|
8464
|
+
...slotProps,
|
|
8465
|
+
paper: {
|
|
8466
|
+
sx: {
|
|
8467
|
+
width: { xs: "100%", sm: 400 },
|
|
8468
|
+
display: "flex",
|
|
8469
|
+
flexDirection: "column"
|
|
8470
|
+
},
|
|
8471
|
+
...slotProps?.paper
|
|
8472
|
+
}
|
|
8473
|
+
},
|
|
8474
|
+
...props,
|
|
8475
|
+
children: [
|
|
8476
|
+
/* @__PURE__ */ jsxs47(
|
|
8477
|
+
Box13,
|
|
8478
|
+
{
|
|
8479
|
+
className: drawerClasses.header,
|
|
8480
|
+
sx: {
|
|
8481
|
+
display: "flex",
|
|
8482
|
+
alignItems: "center",
|
|
8483
|
+
justifyContent: "space-between",
|
|
8484
|
+
p: 4,
|
|
8485
|
+
borderBottom: (theme) => `0.5px solid ${theme.vars.palette.border.mute}`,
|
|
8486
|
+
flexShrink: 0
|
|
8487
|
+
},
|
|
8488
|
+
children: [
|
|
8489
|
+
/* @__PURE__ */ jsx73(
|
|
8490
|
+
Typography5,
|
|
8491
|
+
{
|
|
8492
|
+
variant: "h4",
|
|
8493
|
+
className: drawerClasses.title,
|
|
8494
|
+
sx: {
|
|
8495
|
+
fontWeight: 500,
|
|
8496
|
+
color: "text.header",
|
|
8497
|
+
letterSpacing: "-1px",
|
|
8498
|
+
flex: 1
|
|
8499
|
+
},
|
|
8500
|
+
children: title
|
|
8501
|
+
}
|
|
8502
|
+
),
|
|
8503
|
+
/* @__PURE__ */ jsx73(
|
|
8504
|
+
IconButton4,
|
|
8505
|
+
{
|
|
8506
|
+
"aria-label": "close",
|
|
8507
|
+
onClick: onClose,
|
|
8508
|
+
className: drawerClasses.closeButton,
|
|
8509
|
+
sx: {
|
|
8510
|
+
color: "text.body",
|
|
8511
|
+
p: 0
|
|
8512
|
+
},
|
|
8513
|
+
children: /* @__PURE__ */ jsx73(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
8514
|
+
}
|
|
8515
|
+
)
|
|
8516
|
+
]
|
|
8517
|
+
}
|
|
8518
|
+
),
|
|
8519
|
+
/* @__PURE__ */ jsx73(
|
|
8520
|
+
Box13,
|
|
8521
|
+
{
|
|
8522
|
+
className: drawerClasses.content,
|
|
8523
|
+
sx: {
|
|
8524
|
+
flex: 1,
|
|
8525
|
+
overflow: "auto",
|
|
8526
|
+
p: 4,
|
|
8527
|
+
pt: 3
|
|
8528
|
+
},
|
|
8529
|
+
children
|
|
8530
|
+
}
|
|
8531
|
+
)
|
|
8532
|
+
]
|
|
8533
|
+
}
|
|
8534
|
+
);
|
|
8535
|
+
};
|
|
8536
|
+
|
|
8537
|
+
// src/components/Toolbar/classes.ts
|
|
8538
|
+
var toolbarClasses = {
|
|
8539
|
+
root: "undefine__Toolbar-root",
|
|
8540
|
+
button: "undefine__Toolbar-button",
|
|
8541
|
+
buttonOpen: "undefine__Toolbar-button--open",
|
|
8542
|
+
buttonIcon: "undefine__Toolbar-button-icon",
|
|
8543
|
+
buttonLabel: "undefine__Toolbar-button-label",
|
|
8544
|
+
searchField: "undefine__Toolbar-searchField",
|
|
8545
|
+
searchFieldFocused: "undefine__Toolbar-searchField--focused",
|
|
8546
|
+
searchIcon: "undefine__Toolbar-searchIcon",
|
|
8547
|
+
searchInput: "undefine__Toolbar-searchInput",
|
|
8548
|
+
searchClearButton: "undefine__Toolbar-searchClearButton",
|
|
8549
|
+
viewSwitcher: "undefine__Toolbar-viewSwitcher",
|
|
8550
|
+
viewSwitcherLabel: "undefine__Toolbar-viewSwitcher-label",
|
|
8551
|
+
viewSwitcherIcon: "undefine__Toolbar-viewSwitcher-icon",
|
|
8552
|
+
filterDropdown: "undefine__Toolbar-filterDropdown",
|
|
8553
|
+
sortDropdown: "undefine__Toolbar-sortDropdown",
|
|
8554
|
+
dateRangeDropdown: "undefine__Toolbar-dateRangeDropdown"
|
|
8555
|
+
};
|
|
8556
|
+
|
|
8557
|
+
// src/components/Toolbar/SortDropdown.tsx
|
|
8558
|
+
import { useState as useState10, forwardRef as forwardRef2, useCallback as useCallback9 } from "react";
|
|
8559
|
+
import Box14 from "@mui/material/Box";
|
|
8560
|
+
import Radio from "@mui/material/Radio";
|
|
8561
|
+
import Popover from "@mui/material/Popover";
|
|
8562
|
+
import Typography7 from "@mui/material/Typography";
|
|
8563
|
+
import ButtonBase2 from "@mui/material/ButtonBase";
|
|
8564
|
+
import RadioGroup from "@mui/material/RadioGroup";
|
|
8565
|
+
import FormControlLabel from "@mui/material/FormControlLabel";
|
|
8566
|
+
|
|
8567
|
+
// src/components/Toolbar/ToolbarButton.tsx
|
|
8568
|
+
import Typography6 from "@mui/material/Typography";
|
|
8569
|
+
import ButtonBase from "@mui/material/ButtonBase";
|
|
8570
|
+
import { jsx as jsx74, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8571
|
+
var baseStyles2 = {
|
|
8572
|
+
display: "flex",
|
|
8573
|
+
alignItems: "center",
|
|
8574
|
+
gap: 1,
|
|
8575
|
+
px: 1.25,
|
|
8576
|
+
py: 0.75,
|
|
8577
|
+
bgcolor: "common.white",
|
|
8578
|
+
border: "0.5px solid",
|
|
8579
|
+
borderColor: "border.mute",
|
|
8580
|
+
borderBottomWidth: "1.5px",
|
|
8581
|
+
cursor: "pointer",
|
|
8582
|
+
"&:hover": {
|
|
8583
|
+
bgcolor: "grey.50"
|
|
8584
|
+
}
|
|
8585
|
+
};
|
|
8586
|
+
var openStyles = {
|
|
8587
|
+
boxShadow: "0px 0px 0px 1.6px white, 0px 0px 0px 3.2px var(--mui-palette-primary-300)"
|
|
8588
|
+
};
|
|
8589
|
+
var ToolbarButton = ({
|
|
8590
|
+
icon: icon2,
|
|
8591
|
+
label,
|
|
8592
|
+
open = false,
|
|
8593
|
+
className,
|
|
8594
|
+
sx,
|
|
8595
|
+
...props
|
|
8596
|
+
}) => {
|
|
8597
|
+
return /* @__PURE__ */ jsxs48(
|
|
8598
|
+
ButtonBase,
|
|
8599
|
+
{
|
|
8600
|
+
className: toolbarClasses.button.concat(
|
|
8601
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
8602
|
+
className ? ` ${className}` : ""
|
|
8603
|
+
),
|
|
8604
|
+
sx: {
|
|
8605
|
+
...baseStyles2,
|
|
8606
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
8607
|
+
...open && openStyles,
|
|
8608
|
+
...sx
|
|
8609
|
+
},
|
|
8610
|
+
...props,
|
|
8611
|
+
children: [
|
|
8612
|
+
icon2 && /* @__PURE__ */ jsx74(
|
|
8613
|
+
Icon,
|
|
8614
|
+
{
|
|
8615
|
+
icon: icon2,
|
|
8616
|
+
className: toolbarClasses.buttonIcon,
|
|
8617
|
+
sx: { width: 16, height: 16, color: "text.header" }
|
|
8618
|
+
}
|
|
8619
|
+
),
|
|
8620
|
+
label && /* @__PURE__ */ jsx74(
|
|
8621
|
+
Typography6,
|
|
8622
|
+
{
|
|
8623
|
+
variant: "body2",
|
|
8624
|
+
className: toolbarClasses.buttonLabel,
|
|
8625
|
+
sx: {
|
|
8626
|
+
fontSize: 14,
|
|
8627
|
+
lineHeight: "22px",
|
|
8628
|
+
color: "text.header",
|
|
8629
|
+
whiteSpace: "nowrap"
|
|
8630
|
+
},
|
|
8631
|
+
children: label
|
|
8632
|
+
}
|
|
8633
|
+
)
|
|
8634
|
+
]
|
|
8635
|
+
}
|
|
8636
|
+
);
|
|
8637
|
+
};
|
|
8638
|
+
|
|
8639
|
+
// src/components/Toolbar/ToolbarSortButton.tsx
|
|
8640
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
8641
|
+
var ToolbarSortButton = ({ label = "Sort", ...props }) => {
|
|
8642
|
+
return /* @__PURE__ */ jsx75(ToolbarButton, { icon: "SortUp", label, ...props });
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
// src/components/Toolbar/SortDropdown.tsx
|
|
8646
|
+
import { jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8647
|
+
var SortDropdown = forwardRef2(
|
|
8648
|
+
({
|
|
8649
|
+
options,
|
|
8650
|
+
value: externalValue,
|
|
8651
|
+
direction: externalDirection = "asc",
|
|
8652
|
+
onChange,
|
|
8653
|
+
onClose,
|
|
8654
|
+
buttonLabel = "Sort",
|
|
8655
|
+
ascLabel = "Ascending",
|
|
8656
|
+
descLabel = "Descending",
|
|
8657
|
+
popoverSx,
|
|
8658
|
+
PopoverProps,
|
|
8659
|
+
disabled
|
|
8660
|
+
}, ref) => {
|
|
8661
|
+
const [anchorEl, setAnchorEl] = useState10(null);
|
|
8662
|
+
const [internalValue, setInternalValue] = useState10(options[0]?.value || "");
|
|
8663
|
+
const [internalDirection, setInternalDirection] = useState10("asc");
|
|
8664
|
+
const open = Boolean(anchorEl);
|
|
8665
|
+
const currentValue = externalValue ?? internalValue;
|
|
8666
|
+
const currentDirection = externalValue !== void 0 ? externalDirection : internalDirection;
|
|
8667
|
+
const handleOpen = useCallback9((event) => {
|
|
8668
|
+
setAnchorEl(event.currentTarget);
|
|
8669
|
+
}, []);
|
|
8670
|
+
const handleClose = useCallback9(() => {
|
|
8671
|
+
setAnchorEl(null);
|
|
8672
|
+
onClose?.();
|
|
8673
|
+
}, [onClose]);
|
|
8674
|
+
const handleValueChange = useCallback9(
|
|
8675
|
+
(event) => {
|
|
8676
|
+
const newValue = event.target.value;
|
|
8677
|
+
if (externalValue === void 0) {
|
|
8678
|
+
setInternalValue(newValue);
|
|
8679
|
+
}
|
|
8680
|
+
onChange?.(newValue, currentDirection);
|
|
8681
|
+
},
|
|
8682
|
+
[externalValue, onChange, currentDirection]
|
|
8683
|
+
);
|
|
8684
|
+
const handleDirectionChange = useCallback9(
|
|
8685
|
+
(newDirection) => {
|
|
8686
|
+
if (externalValue === void 0) {
|
|
8687
|
+
setInternalDirection(newDirection);
|
|
8688
|
+
}
|
|
8689
|
+
onChange?.(currentValue, newDirection);
|
|
8690
|
+
},
|
|
8691
|
+
[externalValue, onChange, currentValue]
|
|
8692
|
+
);
|
|
8693
|
+
return /* @__PURE__ */ jsxs49(Box14, { ref, className: toolbarClasses.sortDropdown, children: [
|
|
8694
|
+
/* @__PURE__ */ jsx76(
|
|
8695
|
+
ToolbarSortButton,
|
|
8696
|
+
{
|
|
8697
|
+
label: buttonLabel,
|
|
8698
|
+
open,
|
|
8699
|
+
onClick: handleOpen,
|
|
8700
|
+
disabled
|
|
8701
|
+
}
|
|
8702
|
+
),
|
|
8703
|
+
/* @__PURE__ */ jsxs49(
|
|
8704
|
+
Popover,
|
|
8705
|
+
{
|
|
8706
|
+
open,
|
|
8707
|
+
anchorEl,
|
|
8708
|
+
onClose: handleClose,
|
|
8709
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8710
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8711
|
+
slotProps: {
|
|
8712
|
+
paper: {
|
|
8713
|
+
sx: {
|
|
8714
|
+
pb: 0,
|
|
8715
|
+
px: 0,
|
|
8716
|
+
...popoverSx
|
|
8717
|
+
}
|
|
8718
|
+
}
|
|
8719
|
+
},
|
|
8720
|
+
...PopoverProps,
|
|
8721
|
+
children: [
|
|
8722
|
+
/* @__PURE__ */ jsx76(RadioGroup, { value: currentValue, onChange: handleValueChange, sx: { px: 1, py: 0.5 }, children: options.map((option) => /* @__PURE__ */ jsx76(
|
|
8723
|
+
FormControlLabel,
|
|
8724
|
+
{
|
|
8725
|
+
value: option.value,
|
|
8726
|
+
control: /* @__PURE__ */ jsx76(
|
|
8727
|
+
Radio,
|
|
8728
|
+
{
|
|
8729
|
+
sx: {
|
|
8730
|
+
p: 0,
|
|
8731
|
+
mr: 1,
|
|
8732
|
+
"& .MuiSvgIcon-root": {
|
|
8733
|
+
width: 16,
|
|
8734
|
+
height: 16
|
|
8735
|
+
},
|
|
8736
|
+
"&.Mui-checked": {
|
|
8737
|
+
color: "primary.500"
|
|
8738
|
+
}
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
),
|
|
8742
|
+
label: /* @__PURE__ */ jsx76(
|
|
8743
|
+
Typography7,
|
|
8744
|
+
{
|
|
8745
|
+
sx: {
|
|
8746
|
+
fontSize: 14,
|
|
8747
|
+
fontWeight: 500,
|
|
8748
|
+
lineHeight: "22px",
|
|
8749
|
+
color: "text.header"
|
|
8750
|
+
},
|
|
8751
|
+
children: option.label
|
|
8752
|
+
}
|
|
8753
|
+
),
|
|
8754
|
+
sx: {
|
|
8755
|
+
mx: 0,
|
|
8756
|
+
mb: 1.5,
|
|
8757
|
+
alignItems: "center"
|
|
8758
|
+
}
|
|
8759
|
+
},
|
|
8760
|
+
option.value
|
|
8761
|
+
)) }),
|
|
8762
|
+
/* @__PURE__ */ jsxs49(
|
|
8763
|
+
Box14,
|
|
8764
|
+
{
|
|
8765
|
+
sx: {
|
|
8766
|
+
display: "flex",
|
|
8767
|
+
borderTop: "0.5px solid",
|
|
8768
|
+
borderColor: "border.mute",
|
|
8769
|
+
overflow: "hidden"
|
|
8770
|
+
},
|
|
8771
|
+
children: [
|
|
8772
|
+
/* @__PURE__ */ jsxs49(
|
|
8773
|
+
ButtonBase2,
|
|
8774
|
+
{
|
|
8775
|
+
onClick: () => handleDirectionChange("asc"),
|
|
8776
|
+
sx: {
|
|
8777
|
+
display: "flex",
|
|
8778
|
+
alignItems: "center",
|
|
8779
|
+
gap: 0.875,
|
|
8780
|
+
px: 1,
|
|
8781
|
+
py: 0.75,
|
|
8782
|
+
bgcolor: currentDirection === "asc" ? "primary.100" : "transparent",
|
|
8783
|
+
transition: "background-color 0.2s",
|
|
8784
|
+
"&:hover": {
|
|
8785
|
+
bgcolor: currentDirection === "asc" ? "primary.100" : "grey.50"
|
|
8786
|
+
}
|
|
8787
|
+
},
|
|
8788
|
+
children: [
|
|
8789
|
+
/* @__PURE__ */ jsx76(
|
|
8790
|
+
Icon,
|
|
8791
|
+
{
|
|
8792
|
+
icon: "SortUp",
|
|
8793
|
+
sx: {
|
|
8794
|
+
width: 16,
|
|
8795
|
+
height: 16,
|
|
8796
|
+
color: currentDirection === "asc" ? "text.action" : "text.header"
|
|
8797
|
+
}
|
|
8798
|
+
}
|
|
8799
|
+
),
|
|
8800
|
+
/* @__PURE__ */ jsx76(
|
|
8801
|
+
Typography7,
|
|
8802
|
+
{
|
|
8803
|
+
sx: {
|
|
8804
|
+
fontSize: 12,
|
|
8805
|
+
lineHeight: "18px",
|
|
8806
|
+
color: currentDirection === "asc" ? "text.action" : "text.header"
|
|
8807
|
+
},
|
|
8808
|
+
children: ascLabel
|
|
8809
|
+
}
|
|
8810
|
+
)
|
|
8811
|
+
]
|
|
8812
|
+
}
|
|
8813
|
+
),
|
|
8814
|
+
/* @__PURE__ */ jsxs49(
|
|
8815
|
+
ButtonBase2,
|
|
8816
|
+
{
|
|
8817
|
+
onClick: () => handleDirectionChange("desc"),
|
|
8818
|
+
sx: {
|
|
8819
|
+
display: "flex",
|
|
8820
|
+
alignItems: "center",
|
|
8821
|
+
gap: 0.875,
|
|
8822
|
+
px: 1,
|
|
8823
|
+
py: 0.75,
|
|
8824
|
+
bgcolor: currentDirection === "desc" ? "primary.100" : "transparent",
|
|
8825
|
+
transition: "background-color 0.2s",
|
|
8826
|
+
"&:hover": {
|
|
8827
|
+
bgcolor: currentDirection === "desc" ? "primary.100" : "grey.50"
|
|
8828
|
+
}
|
|
8829
|
+
},
|
|
8830
|
+
children: [
|
|
8831
|
+
/* @__PURE__ */ jsx76(
|
|
8832
|
+
Icon,
|
|
8833
|
+
{
|
|
8834
|
+
icon: "SortDown",
|
|
8835
|
+
sx: {
|
|
8836
|
+
width: 16,
|
|
8837
|
+
height: 16,
|
|
8838
|
+
color: currentDirection === "desc" ? "text.action" : "text.header"
|
|
8839
|
+
}
|
|
8840
|
+
}
|
|
8841
|
+
),
|
|
8842
|
+
/* @__PURE__ */ jsx76(
|
|
8843
|
+
Typography7,
|
|
8844
|
+
{
|
|
8845
|
+
sx: {
|
|
8846
|
+
fontSize: 12,
|
|
8847
|
+
lineHeight: "18px",
|
|
8848
|
+
color: currentDirection === "desc" ? "text.action" : "text.header"
|
|
8849
|
+
},
|
|
8850
|
+
children: descLabel
|
|
8851
|
+
}
|
|
8852
|
+
)
|
|
8853
|
+
]
|
|
8854
|
+
}
|
|
8855
|
+
)
|
|
8856
|
+
]
|
|
8857
|
+
}
|
|
8858
|
+
)
|
|
8859
|
+
]
|
|
8860
|
+
}
|
|
8861
|
+
)
|
|
8862
|
+
] });
|
|
8863
|
+
}
|
|
8864
|
+
);
|
|
8865
|
+
SortDropdown.displayName = "SortDropdown";
|
|
8866
|
+
|
|
8867
|
+
// src/components/Toolbar/FilterDropdown.tsx
|
|
8868
|
+
import { useState as useState11, forwardRef as forwardRef3, useCallback as useCallback10 } from "react";
|
|
8869
|
+
import Box15 from "@mui/material/Box";
|
|
8870
|
+
import Popover2 from "@mui/material/Popover";
|
|
8871
|
+
|
|
8872
|
+
// src/components/Toolbar/ToolbarFilterButton.tsx
|
|
8873
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
8874
|
+
var ToolbarFilterButton = ({ label = "Filter", ...props }) => {
|
|
8875
|
+
return /* @__PURE__ */ jsx77(ToolbarButton, { icon: "FilterList", label, ...props });
|
|
8876
|
+
};
|
|
8877
|
+
|
|
8878
|
+
// src/components/Toolbar/FilterDropdown.tsx
|
|
8879
|
+
import { jsx as jsx78, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8880
|
+
var FilterDropdown = forwardRef3(
|
|
8881
|
+
({ children, onClose, buttonLabel = "Filter", popoverSx, PopoverProps, disabled }, ref) => {
|
|
8882
|
+
const [anchorEl, setAnchorEl] = useState11(null);
|
|
8883
|
+
const open = Boolean(anchorEl);
|
|
8884
|
+
const handleOpen = useCallback10((event) => {
|
|
8885
|
+
setAnchorEl(event.currentTarget);
|
|
8886
|
+
}, []);
|
|
8887
|
+
const handleClose = useCallback10(() => {
|
|
8888
|
+
setAnchorEl(null);
|
|
8889
|
+
onClose?.();
|
|
8890
|
+
}, [onClose]);
|
|
8891
|
+
return /* @__PURE__ */ jsxs50(Box15, { ref, className: toolbarClasses.filterDropdown, children: [
|
|
8892
|
+
/* @__PURE__ */ jsx78(
|
|
8893
|
+
ToolbarFilterButton,
|
|
8894
|
+
{
|
|
8895
|
+
label: buttonLabel,
|
|
8896
|
+
open,
|
|
8897
|
+
onClick: handleOpen,
|
|
8898
|
+
disabled
|
|
8899
|
+
}
|
|
8900
|
+
),
|
|
8901
|
+
/* @__PURE__ */ jsx78(
|
|
8902
|
+
Popover2,
|
|
8903
|
+
{
|
|
8904
|
+
open,
|
|
8905
|
+
anchorEl,
|
|
8906
|
+
onClose: handleClose,
|
|
8907
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8908
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8909
|
+
slotProps: {
|
|
8910
|
+
paper: {
|
|
8911
|
+
sx: {
|
|
8912
|
+
mt: 1,
|
|
8913
|
+
p: 2.5,
|
|
8914
|
+
width: 360,
|
|
8915
|
+
borderRadius: (theme) => theme.radius["radius-2xl"],
|
|
8916
|
+
border: "0.5px solid",
|
|
8917
|
+
borderColor: "border.mute",
|
|
8918
|
+
boxShadow: "-1px 2px 10px 0px rgba(0, 0, 0, 0.1)",
|
|
8919
|
+
display: "flex",
|
|
8920
|
+
flexDirection: "column",
|
|
8921
|
+
gap: 2,
|
|
8922
|
+
...popoverSx
|
|
8923
|
+
}
|
|
8924
|
+
}
|
|
8925
|
+
},
|
|
8926
|
+
...PopoverProps,
|
|
8927
|
+
children
|
|
8928
|
+
}
|
|
8929
|
+
)
|
|
8930
|
+
] });
|
|
8931
|
+
}
|
|
8932
|
+
);
|
|
8933
|
+
FilterDropdown.displayName = "FilterDropdown";
|
|
8934
|
+
|
|
8935
|
+
// src/components/Toolbar/DateRangeDropdown.tsx
|
|
8936
|
+
import { useMemo as useMemo9, useState as useState13, useCallback as useCallback12 } from "react";
|
|
8937
|
+
import { format as format2 } from "date-fns";
|
|
8938
|
+
import Popover3 from "@mui/material/Popover";
|
|
8939
|
+
|
|
8940
|
+
// src/components/Toolbar/ToolbarDatePickerButton.tsx
|
|
8941
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
8942
|
+
var ToolbarDatePickerButton = ({
|
|
8943
|
+
label = "Last 30 days",
|
|
8944
|
+
...props
|
|
8945
|
+
}) => {
|
|
8946
|
+
return /* @__PURE__ */ jsx79(ToolbarButton, { icon: "Calendar", label, ...props });
|
|
8947
|
+
};
|
|
8948
|
+
|
|
8949
|
+
// src/components/DateRangePicker/index.tsx
|
|
8950
|
+
import { useMemo as useMemo8, useState as useState12, forwardRef as forwardRef4, useCallback as useCallback11 } from "react";
|
|
8951
|
+
import {
|
|
8952
|
+
format,
|
|
8953
|
+
subDays,
|
|
8954
|
+
isAfter,
|
|
8955
|
+
endOfDay,
|
|
8956
|
+
subYears,
|
|
8957
|
+
subMonths,
|
|
8958
|
+
addMonths,
|
|
8959
|
+
startOfDay
|
|
8960
|
+
} from "date-fns";
|
|
8961
|
+
import Box16 from "@mui/material/Box";
|
|
8962
|
+
import Radio2 from "@mui/material/Radio";
|
|
8963
|
+
import Button3 from "@mui/material/Button";
|
|
8964
|
+
import TextField from "@mui/material/TextField";
|
|
8965
|
+
import Typography8 from "@mui/material/Typography";
|
|
8966
|
+
import RadioGroup2 from "@mui/material/RadioGroup";
|
|
8967
|
+
import FormControlLabel2 from "@mui/material/FormControlLabel";
|
|
8968
|
+
import { DateCalendar } from "@mui/x-date-pickers/DateCalendar";
|
|
8969
|
+
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
8970
|
+
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
8971
|
+
import { jsx as jsx80, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8972
|
+
var defaultPresets = [
|
|
8973
|
+
{ value: "today", label: "Today" },
|
|
8974
|
+
{ value: "yesterday", label: "Yesterday" },
|
|
8975
|
+
{ value: "last7days", label: "Last 7 Days" },
|
|
8976
|
+
{ value: "last30days", label: "Last 30 Days" },
|
|
8977
|
+
{ value: "last6months", label: "Last 6 Months" },
|
|
8978
|
+
{ value: "lastyear", label: "Last Year" },
|
|
8979
|
+
{ value: "alltime", label: "All Time" },
|
|
8980
|
+
{ value: "custom", label: "Custom Date" }
|
|
8981
|
+
];
|
|
8982
|
+
function getDateRangeFromPreset(preset) {
|
|
8983
|
+
const today = /* @__PURE__ */ new Date();
|
|
8984
|
+
switch (preset) {
|
|
8985
|
+
case "today":
|
|
8986
|
+
return { start: startOfDay(today), end: endOfDay(today) };
|
|
8987
|
+
case "yesterday":
|
|
8988
|
+
return {
|
|
8989
|
+
start: startOfDay(subDays(today, 1)),
|
|
8990
|
+
end: endOfDay(subDays(today, 1))
|
|
8991
|
+
};
|
|
8992
|
+
case "last7days":
|
|
8993
|
+
return { start: startOfDay(subDays(today, 6)), end: endOfDay(today) };
|
|
8994
|
+
case "last30days":
|
|
8995
|
+
return { start: startOfDay(subDays(today, 29)), end: endOfDay(today) };
|
|
8996
|
+
case "last6months":
|
|
8997
|
+
return { start: startOfDay(subMonths(today, 6)), end: endOfDay(today) };
|
|
8998
|
+
case "lastyear":
|
|
8999
|
+
return { start: startOfDay(subYears(today, 1)), end: endOfDay(today) };
|
|
9000
|
+
case "alltime":
|
|
9001
|
+
return { start: null, end: null };
|
|
9002
|
+
case "custom":
|
|
9003
|
+
default:
|
|
9004
|
+
return { start: null, end: null };
|
|
9005
|
+
}
|
|
9006
|
+
}
|
|
9007
|
+
var DateRangePicker = forwardRef4(
|
|
9008
|
+
({
|
|
9009
|
+
value: externalValue,
|
|
9010
|
+
preset: externalPreset,
|
|
9011
|
+
onChange,
|
|
9012
|
+
onCancel,
|
|
9013
|
+
applyLabel = "Apply",
|
|
9014
|
+
cancelLabel = "Cancel",
|
|
9015
|
+
presets = defaultPresets,
|
|
9016
|
+
dateFormat = "dd/MM/yyyy",
|
|
9017
|
+
showPresets = true,
|
|
9018
|
+
showActions = true,
|
|
9019
|
+
sx,
|
|
9020
|
+
minDate,
|
|
9021
|
+
maxDate
|
|
9022
|
+
}, ref) => {
|
|
9023
|
+
const [selectedPreset, setSelectedPreset] = useState12(externalPreset ?? "today");
|
|
9024
|
+
const [tempRange, setTempRange] = useState12(
|
|
9025
|
+
externalValue ?? { start: null, end: null }
|
|
9026
|
+
);
|
|
9027
|
+
const [selectingDate, setSelectingDate] = useState12("start");
|
|
9028
|
+
const handleApply = useCallback11(() => {
|
|
9029
|
+
onChange?.(tempRange, selectedPreset);
|
|
9030
|
+
}, [onChange, tempRange, selectedPreset]);
|
|
9031
|
+
const handlePresetChange = useCallback11((event) => {
|
|
9032
|
+
const newPreset = event.target.value;
|
|
9033
|
+
setSelectedPreset(newPreset);
|
|
9034
|
+
if (newPreset !== "custom") {
|
|
9035
|
+
const newRange = getDateRangeFromPreset(newPreset);
|
|
9036
|
+
setTempRange(newRange);
|
|
9037
|
+
}
|
|
9038
|
+
}, []);
|
|
9039
|
+
const handleCalendarChange = useCallback11(
|
|
9040
|
+
(date) => {
|
|
9041
|
+
if (!date) return;
|
|
9042
|
+
if (selectingDate === "start") {
|
|
9043
|
+
setTempRange((prev) => ({
|
|
9044
|
+
start: date,
|
|
9045
|
+
end: prev.end && isAfter(date, prev.end) ? null : prev.end
|
|
9046
|
+
}));
|
|
9047
|
+
setSelectingDate("end");
|
|
9048
|
+
} else {
|
|
9049
|
+
setTempRange((prev) => ({
|
|
9050
|
+
start: prev.start,
|
|
9051
|
+
end: date
|
|
9052
|
+
}));
|
|
9053
|
+
setSelectingDate("start");
|
|
9054
|
+
}
|
|
9055
|
+
setSelectedPreset("custom");
|
|
9056
|
+
},
|
|
9057
|
+
[selectingDate]
|
|
9058
|
+
);
|
|
9059
|
+
const handleStartDateClick = useCallback11(() => {
|
|
9060
|
+
setSelectingDate("start");
|
|
9061
|
+
}, []);
|
|
9062
|
+
const handleEndDateClick = useCallback11(() => {
|
|
9063
|
+
setSelectingDate("end");
|
|
9064
|
+
}, []);
|
|
9065
|
+
const formattedStartDate = tempRange.start ? format(tempRange.start, dateFormat) : "";
|
|
9066
|
+
const formattedEndDate = tempRange.end ? format(tempRange.end, dateFormat) : "";
|
|
9067
|
+
const leftCalendarMonth = useMemo8(() => {
|
|
9068
|
+
if (tempRange.start) return tempRange.start;
|
|
9069
|
+
return /* @__PURE__ */ new Date();
|
|
9070
|
+
}, [tempRange.start]);
|
|
9071
|
+
const rightCalendarMonth = useMemo8(() => {
|
|
9072
|
+
if (tempRange.end) return tempRange.end;
|
|
9073
|
+
return addMonths(/* @__PURE__ */ new Date(), 1);
|
|
9074
|
+
}, [tempRange.end]);
|
|
9075
|
+
return /* @__PURE__ */ jsx80(LocalizationProvider, { dateAdapter: AdapterDateFns, children: /* @__PURE__ */ jsxs51(
|
|
9076
|
+
Box16,
|
|
9077
|
+
{
|
|
9078
|
+
ref,
|
|
9079
|
+
sx: {
|
|
9080
|
+
display: "flex",
|
|
9081
|
+
bgcolor: "common.white",
|
|
9082
|
+
overflow: "hidden",
|
|
9083
|
+
...sx
|
|
9084
|
+
},
|
|
9085
|
+
children: [
|
|
9086
|
+
showPresets && /* @__PURE__ */ jsx80(
|
|
9087
|
+
Box16,
|
|
9088
|
+
{
|
|
9089
|
+
sx: {
|
|
9090
|
+
display: "flex",
|
|
9091
|
+
flexDirection: "column",
|
|
9092
|
+
gap: 1.5,
|
|
9093
|
+
pt: 2.5,
|
|
9094
|
+
px: 2.5,
|
|
9095
|
+
pb: 0,
|
|
9096
|
+
borderRight: "0.5px solid",
|
|
9097
|
+
borderColor: "border.mute",
|
|
9098
|
+
bgcolor: "common.white"
|
|
9099
|
+
},
|
|
9100
|
+
children: /* @__PURE__ */ jsx80(RadioGroup2, { value: selectedPreset, onChange: handlePresetChange, children: presets.map((preset) => /* @__PURE__ */ jsx80(
|
|
9101
|
+
FormControlLabel2,
|
|
9102
|
+
{
|
|
9103
|
+
value: preset.value,
|
|
9104
|
+
control: /* @__PURE__ */ jsx80(Radio2, { size: "small" }),
|
|
9105
|
+
label: /* @__PURE__ */ jsx80(Typography8, { variant: "body2", children: preset.label }),
|
|
9106
|
+
sx: { m: 0, mb: 1.5, gap: 1 }
|
|
9107
|
+
},
|
|
9108
|
+
preset.value
|
|
9109
|
+
)) })
|
|
9110
|
+
}
|
|
9111
|
+
),
|
|
9112
|
+
/* @__PURE__ */ jsxs51(Box16, { sx: { display: "flex", flexDirection: "column" }, children: [
|
|
9113
|
+
/* @__PURE__ */ jsxs51(
|
|
9114
|
+
Box16,
|
|
9115
|
+
{
|
|
9116
|
+
sx: {
|
|
9117
|
+
display: "flex",
|
|
9118
|
+
borderBottom: "0.5px solid",
|
|
9119
|
+
borderColor: "border.mute"
|
|
9120
|
+
},
|
|
9121
|
+
children: [
|
|
9122
|
+
/* @__PURE__ */ jsx80(
|
|
9123
|
+
DateCalendar,
|
|
9124
|
+
{
|
|
9125
|
+
value: tempRange.start,
|
|
9126
|
+
onChange: handleCalendarChange,
|
|
9127
|
+
referenceDate: leftCalendarMonth,
|
|
9128
|
+
minDate,
|
|
9129
|
+
maxDate: tempRange.end || maxDate,
|
|
9130
|
+
sx: {
|
|
9131
|
+
width: "auto",
|
|
9132
|
+
p: 2,
|
|
9133
|
+
m: 0,
|
|
9134
|
+
borderRight: "0.5px solid",
|
|
9135
|
+
borderColor: "border.mute"
|
|
9136
|
+
}
|
|
9137
|
+
}
|
|
9138
|
+
),
|
|
9139
|
+
/* @__PURE__ */ jsx80(
|
|
9140
|
+
DateCalendar,
|
|
9141
|
+
{
|
|
9142
|
+
value: tempRange.end,
|
|
9143
|
+
onChange: handleCalendarChange,
|
|
9144
|
+
referenceDate: rightCalendarMonth,
|
|
9145
|
+
minDate: tempRange.start || minDate,
|
|
9146
|
+
maxDate,
|
|
9147
|
+
sx: {
|
|
9148
|
+
width: "auto",
|
|
9149
|
+
p: 2,
|
|
9150
|
+
m: 0
|
|
9151
|
+
}
|
|
9152
|
+
}
|
|
9153
|
+
)
|
|
9154
|
+
]
|
|
9155
|
+
}
|
|
9156
|
+
),
|
|
9157
|
+
showActions && /* @__PURE__ */ jsxs51(
|
|
9158
|
+
Box16,
|
|
9159
|
+
{
|
|
9160
|
+
sx: {
|
|
9161
|
+
display: "flex",
|
|
9162
|
+
alignItems: "center",
|
|
9163
|
+
justifyContent: "space-between"
|
|
9164
|
+
},
|
|
9165
|
+
children: [
|
|
9166
|
+
/* @__PURE__ */ jsxs51(
|
|
9167
|
+
Box16,
|
|
9168
|
+
{
|
|
9169
|
+
sx: {
|
|
9170
|
+
display: "flex",
|
|
9171
|
+
alignItems: "center",
|
|
9172
|
+
gap: 1.5,
|
|
9173
|
+
p: 2,
|
|
9174
|
+
flex: 1
|
|
9175
|
+
},
|
|
9176
|
+
children: [
|
|
9177
|
+
/* @__PURE__ */ jsx80(
|
|
9178
|
+
TextField,
|
|
9179
|
+
{
|
|
9180
|
+
size: "small",
|
|
9181
|
+
value: formattedStartDate,
|
|
9182
|
+
onClick: handleStartDateClick,
|
|
9183
|
+
placeholder: dateFormat,
|
|
9184
|
+
slotProps: {
|
|
9185
|
+
input: {
|
|
9186
|
+
readOnly: true
|
|
9187
|
+
}
|
|
9188
|
+
},
|
|
9189
|
+
sx: { flex: 1 }
|
|
9190
|
+
}
|
|
9191
|
+
),
|
|
9192
|
+
/* @__PURE__ */ jsx80(Typography8, { color: "text.primary", children: "-" }),
|
|
9193
|
+
/* @__PURE__ */ jsx80(
|
|
9194
|
+
TextField,
|
|
9195
|
+
{
|
|
9196
|
+
size: "small",
|
|
9197
|
+
value: formattedEndDate,
|
|
9198
|
+
onClick: handleEndDateClick,
|
|
9199
|
+
placeholder: dateFormat,
|
|
9200
|
+
slotProps: {
|
|
9201
|
+
input: {
|
|
9202
|
+
readOnly: true
|
|
9203
|
+
}
|
|
9204
|
+
},
|
|
9205
|
+
sx: { flex: 1 }
|
|
9206
|
+
}
|
|
9207
|
+
)
|
|
9208
|
+
]
|
|
9209
|
+
}
|
|
9210
|
+
),
|
|
9211
|
+
/* @__PURE__ */ jsxs51(Box16, { sx: { display: "flex", gap: 1, px: 2 }, children: [
|
|
9212
|
+
/* @__PURE__ */ jsx80(Button3, { size: "small", variant: "secondary", color: "neutral", onClick: onCancel, children: cancelLabel }),
|
|
9213
|
+
/* @__PURE__ */ jsx80(Button3, { size: "small", variant: "primary", onClick: handleApply, children: applyLabel })
|
|
9214
|
+
] })
|
|
9215
|
+
]
|
|
9216
|
+
}
|
|
9217
|
+
)
|
|
9218
|
+
] })
|
|
9219
|
+
]
|
|
9220
|
+
}
|
|
9221
|
+
) });
|
|
9222
|
+
}
|
|
9223
|
+
);
|
|
9224
|
+
DateRangePicker.displayName = "DateRangePicker";
|
|
9225
|
+
|
|
9226
|
+
// src/components/Toolbar/DateRangeDropdown.tsx
|
|
9227
|
+
import { Fragment, jsx as jsx81, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
9228
|
+
function DateRangeDropdown({
|
|
9229
|
+
value,
|
|
9230
|
+
preset,
|
|
9231
|
+
onChange,
|
|
9232
|
+
buttonLabel = "Date",
|
|
9233
|
+
presets,
|
|
9234
|
+
dateFormat,
|
|
9235
|
+
applyLabel,
|
|
9236
|
+
cancelLabel,
|
|
9237
|
+
disabled = false,
|
|
9238
|
+
popoverSx,
|
|
9239
|
+
PopoverProps
|
|
9240
|
+
}) {
|
|
9241
|
+
const [anchorEl, setAnchorEl] = useState13(null);
|
|
9242
|
+
const open = Boolean(anchorEl);
|
|
9243
|
+
const displayLabel = useMemo9(() => {
|
|
9244
|
+
if (!preset) return buttonLabel;
|
|
9245
|
+
if (preset === "custom" && value?.start && value?.end) {
|
|
9246
|
+
const startYear = value.start.getFullYear();
|
|
9247
|
+
const endYear = value.end.getFullYear();
|
|
9248
|
+
const startStr = startYear !== endYear ? format2(value.start, "MMM d, yyyy") : format2(value.start, "MMM d");
|
|
9249
|
+
const endStr = format2(value.end, "MMM d, yyyy");
|
|
9250
|
+
return `${startStr} - ${endStr}`;
|
|
9251
|
+
}
|
|
9252
|
+
const presetsToSearch = presets ?? defaultPresets;
|
|
9253
|
+
const presetOption = presetsToSearch.find((p) => p.value === preset);
|
|
9254
|
+
return presetOption?.label ?? buttonLabel;
|
|
9255
|
+
}, [preset, presets, buttonLabel, value]);
|
|
9256
|
+
const handleClick = useCallback12((event) => {
|
|
9257
|
+
setAnchorEl(event.currentTarget);
|
|
9258
|
+
}, []);
|
|
9259
|
+
const handleClose = useCallback12(() => {
|
|
9260
|
+
setAnchorEl(null);
|
|
9261
|
+
}, []);
|
|
9262
|
+
const handleChange = useCallback12(
|
|
9263
|
+
(range, newPreset) => {
|
|
9264
|
+
onChange?.(range, newPreset);
|
|
9265
|
+
handleClose();
|
|
9266
|
+
},
|
|
9267
|
+
[onChange, handleClose]
|
|
9268
|
+
);
|
|
9269
|
+
return /* @__PURE__ */ jsxs52(Fragment, { children: [
|
|
9270
|
+
/* @__PURE__ */ jsx81(
|
|
9271
|
+
ToolbarDatePickerButton,
|
|
9272
|
+
{
|
|
9273
|
+
label: displayLabel,
|
|
9274
|
+
onClick: handleClick,
|
|
9275
|
+
open,
|
|
9276
|
+
disabled
|
|
9277
|
+
}
|
|
9278
|
+
),
|
|
9279
|
+
/* @__PURE__ */ jsx81(
|
|
9280
|
+
Popover3,
|
|
9281
|
+
{
|
|
9282
|
+
open,
|
|
9283
|
+
anchorEl,
|
|
9284
|
+
onClose: handleClose,
|
|
9285
|
+
anchorOrigin: {
|
|
9286
|
+
vertical: "bottom",
|
|
9287
|
+
horizontal: "left"
|
|
9288
|
+
},
|
|
9289
|
+
transformOrigin: {
|
|
9290
|
+
vertical: "top",
|
|
9291
|
+
horizontal: "left"
|
|
9292
|
+
},
|
|
9293
|
+
slotProps: {
|
|
9294
|
+
paper: {
|
|
9295
|
+
sx: {
|
|
9296
|
+
mt: 1,
|
|
9297
|
+
p: 0,
|
|
9298
|
+
borderRadius: "radius-2xl",
|
|
9299
|
+
boxShadow: "-1px 2px 10px 0px rgba(0,0,0,0.1)",
|
|
9300
|
+
overflow: "hidden",
|
|
9301
|
+
...popoverSx
|
|
9302
|
+
}
|
|
9303
|
+
}
|
|
9304
|
+
},
|
|
9305
|
+
...PopoverProps,
|
|
9306
|
+
children: /* @__PURE__ */ jsx81(
|
|
9307
|
+
DateRangePicker,
|
|
9308
|
+
{
|
|
9309
|
+
value,
|
|
9310
|
+
preset,
|
|
9311
|
+
onChange: handleChange,
|
|
9312
|
+
onCancel: handleClose,
|
|
9313
|
+
presets,
|
|
9314
|
+
dateFormat,
|
|
9315
|
+
applyLabel,
|
|
9316
|
+
cancelLabel
|
|
9317
|
+
}
|
|
9318
|
+
)
|
|
9319
|
+
}
|
|
9320
|
+
)
|
|
9321
|
+
] });
|
|
9322
|
+
}
|
|
9323
|
+
|
|
9324
|
+
// src/components/Toolbar/ToolbarTodayButton.tsx
|
|
9325
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
9326
|
+
var ToolbarTodayButton = ({ label = "Today", sx, ...props }) => {
|
|
9327
|
+
return /* @__PURE__ */ jsx82(ToolbarButton, { label, sx: { px: 1.5, ...sx }, ...props });
|
|
9328
|
+
};
|
|
9329
|
+
|
|
9330
|
+
// src/components/Toolbar/ToolbarSearchField.tsx
|
|
9331
|
+
import { useState as useState14, useCallback as useCallback13 } from "react";
|
|
9332
|
+
import Box17 from "@mui/material/Box";
|
|
9333
|
+
import ButtonBase3 from "@mui/material/ButtonBase";
|
|
9334
|
+
import InputBase from "@mui/material/InputBase";
|
|
9335
|
+
import { jsx as jsx83, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
9336
|
+
var baseStyles3 = {
|
|
9337
|
+
display: "flex",
|
|
9338
|
+
alignItems: "center",
|
|
9339
|
+
gap: 1,
|
|
9340
|
+
px: 1.25,
|
|
9341
|
+
py: 0.75,
|
|
9342
|
+
bgcolor: "common.white",
|
|
9343
|
+
border: "0.5px solid",
|
|
9344
|
+
borderColor: "border.mute",
|
|
9345
|
+
borderBottomWidth: "1.5px"
|
|
9346
|
+
};
|
|
9347
|
+
var ToolbarSearchField = ({
|
|
9348
|
+
placeholder = "Search",
|
|
9349
|
+
className,
|
|
9350
|
+
sx,
|
|
9351
|
+
value,
|
|
9352
|
+
onFocus,
|
|
9353
|
+
onBlur,
|
|
9354
|
+
onClear,
|
|
9355
|
+
...props
|
|
9356
|
+
}) => {
|
|
9357
|
+
const [isFocused, setIsFocused] = useState14(false);
|
|
9358
|
+
const hasValue = Boolean(value && String(value).length > 0);
|
|
9359
|
+
const handleFocus = useCallback13(
|
|
9360
|
+
(event) => {
|
|
9361
|
+
setIsFocused(true);
|
|
9362
|
+
onFocus?.(event);
|
|
9363
|
+
},
|
|
9364
|
+
[onFocus]
|
|
9365
|
+
);
|
|
9366
|
+
const handleBlur = useCallback13(
|
|
9367
|
+
(event) => {
|
|
9368
|
+
setIsFocused(false);
|
|
9369
|
+
onBlur?.(event);
|
|
9370
|
+
},
|
|
9371
|
+
[onBlur]
|
|
9372
|
+
);
|
|
9373
|
+
const handleClear = useCallback13(() => {
|
|
9374
|
+
onClear?.();
|
|
9375
|
+
}, [onClear]);
|
|
9376
|
+
return /* @__PURE__ */ jsxs53(
|
|
9377
|
+
Box17,
|
|
9378
|
+
{
|
|
9379
|
+
className: toolbarClasses.searchField.concat(
|
|
9380
|
+
isFocused ? ` ${toolbarClasses.searchFieldFocused}` : "",
|
|
9381
|
+
className ? ` ${className}` : ""
|
|
9382
|
+
),
|
|
9383
|
+
sx: {
|
|
9384
|
+
...baseStyles3,
|
|
9385
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9386
|
+
...isFocused && {
|
|
9387
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9388
|
+
},
|
|
9389
|
+
...sx
|
|
9390
|
+
},
|
|
9391
|
+
children: [
|
|
9392
|
+
/* @__PURE__ */ jsx83(
|
|
9393
|
+
Icon,
|
|
9394
|
+
{
|
|
9395
|
+
icon: "Search",
|
|
9396
|
+
className: toolbarClasses.searchIcon,
|
|
9397
|
+
sx: { width: 16, height: 16, color: "icon.black", flexShrink: 0 }
|
|
9398
|
+
}
|
|
9399
|
+
),
|
|
9400
|
+
/* @__PURE__ */ jsx83(
|
|
9401
|
+
InputBase,
|
|
9402
|
+
{
|
|
9403
|
+
placeholder,
|
|
9404
|
+
className: toolbarClasses.searchInput,
|
|
9405
|
+
value,
|
|
9406
|
+
onFocus: handleFocus,
|
|
9407
|
+
onBlur: handleBlur,
|
|
9408
|
+
sx: {
|
|
9409
|
+
flex: 1,
|
|
9410
|
+
minWidth: 0,
|
|
9411
|
+
height: 22,
|
|
9412
|
+
"& .MuiInputBase-input": {
|
|
9413
|
+
p: 0,
|
|
9414
|
+
fontSize: 14,
|
|
9415
|
+
lineHeight: "22px",
|
|
9416
|
+
color: "text.header",
|
|
9417
|
+
"&::placeholder": {
|
|
9418
|
+
color: "text.body",
|
|
9419
|
+
opacity: 1
|
|
9420
|
+
}
|
|
9421
|
+
}
|
|
9422
|
+
},
|
|
9423
|
+
...props
|
|
9424
|
+
}
|
|
9425
|
+
),
|
|
9426
|
+
hasValue && onClear && /* @__PURE__ */ jsx83(
|
|
9427
|
+
ButtonBase3,
|
|
9428
|
+
{
|
|
9429
|
+
onClick: handleClear,
|
|
9430
|
+
className: toolbarClasses.searchClearButton,
|
|
9431
|
+
sx: {
|
|
9432
|
+
p: 0.25,
|
|
9433
|
+
borderRadius: "50%",
|
|
9434
|
+
flexShrink: 0,
|
|
9435
|
+
"&:hover": {
|
|
9436
|
+
bgcolor: "grey.100"
|
|
9437
|
+
}
|
|
9438
|
+
},
|
|
9439
|
+
children: /* @__PURE__ */ jsx83(Icon, { icon: "XMark", sx: { width: 14, height: 14, color: "icon.mute" } })
|
|
9440
|
+
}
|
|
9441
|
+
)
|
|
9442
|
+
]
|
|
9443
|
+
}
|
|
9444
|
+
);
|
|
9445
|
+
};
|
|
9446
|
+
|
|
9447
|
+
// src/components/Toolbar/ToolbarViewSwitcher.tsx
|
|
9448
|
+
import Box18 from "@mui/material/Box";
|
|
9449
|
+
import Typography9 from "@mui/material/Typography";
|
|
9450
|
+
import ButtonBase4 from "@mui/material/ButtonBase";
|
|
9451
|
+
import { jsx as jsx84, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
9452
|
+
var viewLabels = {
|
|
9453
|
+
year: "Year",
|
|
9454
|
+
month: "Month",
|
|
9455
|
+
week: "Week",
|
|
9456
|
+
day: "Day"
|
|
9457
|
+
};
|
|
9458
|
+
var baseStyles4 = {
|
|
9459
|
+
display: "flex",
|
|
9460
|
+
alignItems: "center",
|
|
9461
|
+
justifyContent: "center",
|
|
9462
|
+
gap: 1,
|
|
9463
|
+
px: 1.5,
|
|
9464
|
+
py: 0.75,
|
|
9465
|
+
bgcolor: "common.white",
|
|
9466
|
+
border: "0.5px solid",
|
|
9467
|
+
borderColor: "border.mute",
|
|
9468
|
+
borderBottomWidth: "1.5px",
|
|
9469
|
+
cursor: "pointer",
|
|
9470
|
+
"&:hover": {
|
|
9471
|
+
bgcolor: "grey.50"
|
|
9472
|
+
}
|
|
9473
|
+
};
|
|
9474
|
+
var ToolbarViewSwitcher = ({
|
|
9475
|
+
value,
|
|
9476
|
+
open = false,
|
|
9477
|
+
className,
|
|
9478
|
+
sx,
|
|
9479
|
+
...props
|
|
9480
|
+
}) => {
|
|
9481
|
+
return /* @__PURE__ */ jsxs54(
|
|
9482
|
+
ButtonBase4,
|
|
9483
|
+
{
|
|
9484
|
+
className: toolbarClasses.viewSwitcher.concat(
|
|
9485
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
9486
|
+
className ? ` ${className}` : ""
|
|
9487
|
+
),
|
|
9488
|
+
sx: {
|
|
9489
|
+
...baseStyles4,
|
|
9490
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9491
|
+
...open && {
|
|
9492
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9493
|
+
},
|
|
9494
|
+
...sx
|
|
9495
|
+
},
|
|
9496
|
+
...props,
|
|
9497
|
+
children: [
|
|
9498
|
+
/* @__PURE__ */ jsx84(
|
|
9499
|
+
Box18,
|
|
9500
|
+
{
|
|
9501
|
+
sx: {
|
|
9502
|
+
display: "flex",
|
|
9503
|
+
alignItems: "center",
|
|
9504
|
+
justifyContent: "center",
|
|
9505
|
+
pr: 1,
|
|
9506
|
+
borderRight: "0.5px solid",
|
|
9507
|
+
borderColor: "border.mute"
|
|
9508
|
+
},
|
|
9509
|
+
children: /* @__PURE__ */ jsx84(
|
|
9510
|
+
Typography9,
|
|
9511
|
+
{
|
|
9512
|
+
variant: "body2",
|
|
9513
|
+
className: toolbarClasses.viewSwitcherLabel,
|
|
9514
|
+
sx: {
|
|
9515
|
+
fontSize: 14,
|
|
9516
|
+
lineHeight: "22px",
|
|
9517
|
+
color: "text.header",
|
|
9518
|
+
whiteSpace: "nowrap"
|
|
9519
|
+
},
|
|
9520
|
+
children: viewLabels[value]
|
|
9521
|
+
}
|
|
9522
|
+
)
|
|
9523
|
+
}
|
|
9524
|
+
),
|
|
9525
|
+
/* @__PURE__ */ jsx84(
|
|
9526
|
+
Icon,
|
|
9527
|
+
{
|
|
9528
|
+
icon: "NavArrowDown",
|
|
9529
|
+
className: toolbarClasses.viewSwitcherIcon,
|
|
9530
|
+
sx: { width: 16, height: 16, color: "text.header" }
|
|
9531
|
+
}
|
|
9532
|
+
)
|
|
9533
|
+
]
|
|
9534
|
+
}
|
|
9535
|
+
);
|
|
9536
|
+
};
|
|
9537
|
+
|
|
9538
|
+
// src/components/Toolbar/ToolbarSettingsButton.tsx
|
|
9539
|
+
import ButtonBase5 from "@mui/material/ButtonBase";
|
|
9540
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
9541
|
+
var baseStyles5 = {
|
|
9542
|
+
display: "flex",
|
|
9543
|
+
alignItems: "center",
|
|
9544
|
+
justifyContent: "center",
|
|
9545
|
+
px: 1.5,
|
|
9546
|
+
py: 1.25,
|
|
9547
|
+
bgcolor: "common.white",
|
|
9548
|
+
border: "0.5px solid",
|
|
9549
|
+
borderColor: "border.mute",
|
|
9550
|
+
borderBottomWidth: "1.5px",
|
|
9551
|
+
cursor: "pointer",
|
|
9552
|
+
"&:hover": {
|
|
9553
|
+
bgcolor: "grey.50"
|
|
9554
|
+
}
|
|
9555
|
+
};
|
|
9556
|
+
var ToolbarSettingsButton = ({
|
|
9557
|
+
open = false,
|
|
9558
|
+
className,
|
|
9559
|
+
sx,
|
|
9560
|
+
...props
|
|
9561
|
+
}) => {
|
|
9562
|
+
return /* @__PURE__ */ jsx85(
|
|
9563
|
+
ButtonBase5,
|
|
9564
|
+
{
|
|
9565
|
+
className: toolbarClasses.button.concat(
|
|
9566
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
9567
|
+
className ? ` ${className}` : ""
|
|
9568
|
+
),
|
|
9569
|
+
sx: {
|
|
9570
|
+
...baseStyles5,
|
|
9571
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9572
|
+
...open && {
|
|
9573
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9574
|
+
},
|
|
9575
|
+
...sx
|
|
9576
|
+
},
|
|
9577
|
+
...props,
|
|
9578
|
+
children: /* @__PURE__ */ jsx85(
|
|
9579
|
+
Icon,
|
|
9580
|
+
{
|
|
9581
|
+
icon: "Settings",
|
|
9582
|
+
className: toolbarClasses.buttonIcon,
|
|
9583
|
+
sx: { width: 17, height: 17, color: "text.header" }
|
|
9584
|
+
}
|
|
9585
|
+
)
|
|
9586
|
+
}
|
|
9587
|
+
);
|
|
9588
|
+
};
|
|
9589
|
+
|
|
9590
|
+
// src/components/HookForm/Form.tsx
|
|
9591
|
+
import {
|
|
9592
|
+
FormProvider as RHFForm
|
|
9593
|
+
} from "react-hook-form";
|
|
9594
|
+
import Box19 from "@mui/material/Box";
|
|
9595
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
9596
|
+
var Form = ({
|
|
9597
|
+
children,
|
|
9598
|
+
onSubmit,
|
|
9599
|
+
methods,
|
|
9600
|
+
...rest
|
|
9601
|
+
}) => {
|
|
9602
|
+
return /* @__PURE__ */ jsx86(RHFForm, { ...methods, children: /* @__PURE__ */ jsx86(
|
|
9603
|
+
Box19,
|
|
9604
|
+
{
|
|
9605
|
+
component: "form",
|
|
9606
|
+
onSubmit: (e) => {
|
|
9607
|
+
e.preventDefault();
|
|
9608
|
+
if (onSubmit) {
|
|
9609
|
+
methods.handleSubmit(onSubmit)();
|
|
9610
|
+
}
|
|
8226
9611
|
},
|
|
8227
9612
|
noValidate: true,
|
|
8228
9613
|
autoComplete: "off",
|
|
@@ -8234,16 +9619,16 @@ var Form = ({
|
|
|
8234
9619
|
|
|
8235
9620
|
// src/components/HookForm/RHFSwitch.tsx
|
|
8236
9621
|
import { Controller, useFormContext } from "react-hook-form";
|
|
8237
|
-
import
|
|
8238
|
-
import
|
|
8239
|
-
import
|
|
9622
|
+
import Stack6 from "@mui/material/Stack";
|
|
9623
|
+
import Box20 from "@mui/material/Box";
|
|
9624
|
+
import Typography10 from "@mui/material/Typography";
|
|
8240
9625
|
import Switch from "@mui/material/Switch";
|
|
8241
9626
|
import FormGroup from "@mui/material/FormGroup";
|
|
8242
9627
|
import FormLabel from "@mui/material/FormLabel";
|
|
8243
9628
|
import FormControl from "@mui/material/FormControl";
|
|
8244
9629
|
import FormHelperText2 from "@mui/material/FormHelperText";
|
|
8245
|
-
import
|
|
8246
|
-
import { jsx as
|
|
9630
|
+
import FormControlLabel3 from "@mui/material/FormControlLabel";
|
|
9631
|
+
import { jsx as jsx87, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8247
9632
|
var RHFSwitch = ({
|
|
8248
9633
|
name,
|
|
8249
9634
|
description,
|
|
@@ -8255,16 +9640,16 @@ var RHFSwitch = ({
|
|
|
8255
9640
|
}) => {
|
|
8256
9641
|
const { control } = useFormContext();
|
|
8257
9642
|
const baseAriaLabel = `Switch ${name}`;
|
|
8258
|
-
return /* @__PURE__ */
|
|
9643
|
+
return /* @__PURE__ */ jsx87(
|
|
8259
9644
|
Controller,
|
|
8260
9645
|
{
|
|
8261
9646
|
name,
|
|
8262
9647
|
control,
|
|
8263
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
8264
|
-
/* @__PURE__ */
|
|
8265
|
-
|
|
9648
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs55(Box20, { sx: slotProps?.wrap, children: [
|
|
9649
|
+
/* @__PURE__ */ jsx87(
|
|
9650
|
+
FormControlLabel3,
|
|
8266
9651
|
{
|
|
8267
|
-
control: /* @__PURE__ */
|
|
9652
|
+
control: /* @__PURE__ */ jsx87(
|
|
8268
9653
|
Switch,
|
|
8269
9654
|
{
|
|
8270
9655
|
...field,
|
|
@@ -8279,9 +9664,9 @@ var RHFSwitch = ({
|
|
|
8279
9664
|
}
|
|
8280
9665
|
}
|
|
8281
9666
|
),
|
|
8282
|
-
label: /* @__PURE__ */
|
|
8283
|
-
/* @__PURE__ */
|
|
8284
|
-
description && /* @__PURE__ */
|
|
9667
|
+
label: /* @__PURE__ */ jsxs55(Stack6, { children: [
|
|
9668
|
+
/* @__PURE__ */ jsx87(Typography10, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
|
|
9669
|
+
description && /* @__PURE__ */ jsx87(Typography10, { variant: "body2", color: "textBody", children: description })
|
|
8285
9670
|
] }),
|
|
8286
9671
|
sx: {
|
|
8287
9672
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -8290,7 +9675,7 @@ var RHFSwitch = ({
|
|
|
8290
9675
|
...other
|
|
8291
9676
|
}
|
|
8292
9677
|
),
|
|
8293
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
9678
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx87(
|
|
8294
9679
|
FormHelperText2,
|
|
8295
9680
|
{
|
|
8296
9681
|
error: !!error2,
|
|
@@ -8313,19 +9698,19 @@ var RHFMultiSwitch = ({
|
|
|
8313
9698
|
}) => {
|
|
8314
9699
|
const { control } = useFormContext();
|
|
8315
9700
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
8316
|
-
return /* @__PURE__ */
|
|
9701
|
+
return /* @__PURE__ */ jsx87(
|
|
8317
9702
|
Controller,
|
|
8318
9703
|
{
|
|
8319
9704
|
name,
|
|
8320
9705
|
control,
|
|
8321
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
9706
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs55(
|
|
8322
9707
|
FormControl,
|
|
8323
9708
|
{
|
|
8324
9709
|
component: "fieldset",
|
|
8325
9710
|
sx: slotProps?.formControl?.sx,
|
|
8326
9711
|
...slotProps?.formControl,
|
|
8327
9712
|
children: [
|
|
8328
|
-
label && /* @__PURE__ */
|
|
9713
|
+
label && /* @__PURE__ */ jsx87(
|
|
8329
9714
|
FormLabel,
|
|
8330
9715
|
{
|
|
8331
9716
|
component: "legend",
|
|
@@ -8334,12 +9719,12 @@ var RHFMultiSwitch = ({
|
|
|
8334
9719
|
children: label
|
|
8335
9720
|
}
|
|
8336
9721
|
),
|
|
8337
|
-
/* @__PURE__ */
|
|
9722
|
+
/* @__PURE__ */ jsx87(FormGroup, { ...other, children: options.map((option) => {
|
|
8338
9723
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
8339
|
-
return /* @__PURE__ */
|
|
8340
|
-
|
|
9724
|
+
return /* @__PURE__ */ jsx87(
|
|
9725
|
+
FormControlLabel3,
|
|
8341
9726
|
{
|
|
8342
|
-
control: /* @__PURE__ */
|
|
9727
|
+
control: /* @__PURE__ */ jsx87(
|
|
8343
9728
|
Switch,
|
|
8344
9729
|
{
|
|
8345
9730
|
checked: (field.value || []).includes(option.value),
|
|
@@ -8362,7 +9747,7 @@ var RHFMultiSwitch = ({
|
|
|
8362
9747
|
option.value
|
|
8363
9748
|
);
|
|
8364
9749
|
}) }),
|
|
8365
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
9750
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx87(FormHelperText2, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8366
9751
|
]
|
|
8367
9752
|
}
|
|
8368
9753
|
)
|
|
@@ -8372,10 +9757,10 @@ var RHFMultiSwitch = ({
|
|
|
8372
9757
|
|
|
8373
9758
|
// src/components/HookForm/RHFUpload.tsx
|
|
8374
9759
|
import { Controller as Controller2, useFormContext as useFormContext2 } from "react-hook-form";
|
|
8375
|
-
import { jsx as
|
|
9760
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
8376
9761
|
var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
8377
9762
|
const { control, setValue } = useFormContext2();
|
|
8378
|
-
return /* @__PURE__ */
|
|
9763
|
+
return /* @__PURE__ */ jsx88(
|
|
8379
9764
|
Controller2,
|
|
8380
9765
|
{
|
|
8381
9766
|
name,
|
|
@@ -8403,7 +9788,7 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
8403
9788
|
const onRemoveAll = () => {
|
|
8404
9789
|
setValue(name, [], { shouldValidate: true });
|
|
8405
9790
|
};
|
|
8406
|
-
return /* @__PURE__ */
|
|
9791
|
+
return /* @__PURE__ */ jsx88(
|
|
8407
9792
|
Upload,
|
|
8408
9793
|
{
|
|
8409
9794
|
multiple,
|
|
@@ -8427,17 +9812,17 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
8427
9812
|
import { Controller as Controller3, useFormContext as useFormContext3 } from "react-hook-form";
|
|
8428
9813
|
|
|
8429
9814
|
// src/components/OTPInput/index.tsx
|
|
8430
|
-
import { useRef as useRef6, useState as
|
|
9815
|
+
import { useRef as useRef6, useState as useState15 } from "react";
|
|
8431
9816
|
import { useTheme as useTheme3 } from "@mui/material/styles";
|
|
8432
|
-
import
|
|
9817
|
+
import Box21 from "@mui/material/Box";
|
|
8433
9818
|
import FormHelperText3 from "@mui/material/FormHelperText";
|
|
8434
9819
|
import { inputBaseClasses as inputBaseClasses3 } from "@mui/material/InputBase";
|
|
8435
|
-
import
|
|
8436
|
-
import { Fragment, jsx as
|
|
9820
|
+
import TextField2 from "@mui/material/TextField";
|
|
9821
|
+
import { Fragment as Fragment2, jsx as jsx89, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8437
9822
|
var OTPInput = (props) => {
|
|
8438
9823
|
const { length = 6, onChange, onComplete, error: error2, helperText, containerProps, ...rest } = props;
|
|
8439
9824
|
const theme = useTheme3();
|
|
8440
|
-
const [otp, setOtp] =
|
|
9825
|
+
const [otp, setOtp] = useState15(Array(length).fill(""));
|
|
8441
9826
|
const inputsRef = useRef6([]);
|
|
8442
9827
|
const handleChange = (value, index) => {
|
|
8443
9828
|
if (!/^[0-9]$/.test(value) && value !== "") return;
|
|
@@ -8501,9 +9886,9 @@ var OTPInput = (props) => {
|
|
|
8501
9886
|
onComplete?.(newOtp.join(""));
|
|
8502
9887
|
}
|
|
8503
9888
|
};
|
|
8504
|
-
return /* @__PURE__ */
|
|
8505
|
-
/* @__PURE__ */
|
|
8506
|
-
|
|
9889
|
+
return /* @__PURE__ */ jsxs56(Fragment2, { children: [
|
|
9890
|
+
/* @__PURE__ */ jsx89(Box21, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ jsx89(
|
|
9891
|
+
Box21,
|
|
8507
9892
|
{
|
|
8508
9893
|
display: "flex",
|
|
8509
9894
|
alignItems: "center",
|
|
@@ -8512,8 +9897,8 @@ var OTPInput = (props) => {
|
|
|
8512
9897
|
mr: 1.5
|
|
8513
9898
|
}
|
|
8514
9899
|
},
|
|
8515
|
-
children: /* @__PURE__ */
|
|
8516
|
-
|
|
9900
|
+
children: /* @__PURE__ */ jsx89(
|
|
9901
|
+
TextField2,
|
|
8517
9902
|
{
|
|
8518
9903
|
size: "medium",
|
|
8519
9904
|
value: otp[index],
|
|
@@ -8595,21 +9980,21 @@ var OTPInput = (props) => {
|
|
|
8595
9980
|
},
|
|
8596
9981
|
index
|
|
8597
9982
|
)) }),
|
|
8598
|
-
error2 && /* @__PURE__ */
|
|
9983
|
+
error2 && /* @__PURE__ */ jsx89(FormHelperText3, { sx: { color: "error.main" }, children: helperText })
|
|
8599
9984
|
] });
|
|
8600
9985
|
};
|
|
8601
9986
|
var OTPInput_default = OTPInput;
|
|
8602
9987
|
|
|
8603
9988
|
// src/components/HookForm/RHFOTPInput.tsx
|
|
8604
|
-
import { jsx as
|
|
9989
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
8605
9990
|
var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
8606
9991
|
const { control, setValue } = useFormContext3();
|
|
8607
|
-
return /* @__PURE__ */
|
|
9992
|
+
return /* @__PURE__ */ jsx90(
|
|
8608
9993
|
Controller3,
|
|
8609
9994
|
{
|
|
8610
9995
|
name,
|
|
8611
9996
|
control,
|
|
8612
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
9997
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx90(
|
|
8613
9998
|
OTPInput_default,
|
|
8614
9999
|
{
|
|
8615
10000
|
length,
|
|
@@ -8626,20 +10011,20 @@ var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
|
8626
10011
|
|
|
8627
10012
|
// src/components/HookForm/RHFTextField.tsx
|
|
8628
10013
|
import { Controller as Controller4, useFormContext as useFormContext4 } from "react-hook-form";
|
|
8629
|
-
import
|
|
10014
|
+
import IconButton5 from "@mui/material/IconButton";
|
|
8630
10015
|
import InputAdornment from "@mui/material/InputAdornment";
|
|
8631
|
-
import
|
|
8632
|
-
import { jsx as
|
|
10016
|
+
import TextField3 from "@mui/material/TextField";
|
|
10017
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
8633
10018
|
var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
8634
10019
|
const { control } = useFormContext4();
|
|
8635
10020
|
const passwordVisibility = useBoolean();
|
|
8636
|
-
return /* @__PURE__ */
|
|
10021
|
+
return /* @__PURE__ */ jsx91(
|
|
8637
10022
|
Controller4,
|
|
8638
10023
|
{
|
|
8639
10024
|
name,
|
|
8640
10025
|
control,
|
|
8641
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
8642
|
-
|
|
10026
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx91(
|
|
10027
|
+
TextField3,
|
|
8643
10028
|
{
|
|
8644
10029
|
...field,
|
|
8645
10030
|
fullWidth: true,
|
|
@@ -8659,7 +10044,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
8659
10044
|
input: {
|
|
8660
10045
|
...slotProps?.input,
|
|
8661
10046
|
...type === "password" && {
|
|
8662
|
-
endAdornment: /* @__PURE__ */
|
|
10047
|
+
endAdornment: /* @__PURE__ */ jsx91(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx91(IconButton5, { edge: "end", onClick: passwordVisibility.onToggle, children: /* @__PURE__ */ jsx91(
|
|
8663
10048
|
Icon,
|
|
8664
10049
|
{
|
|
8665
10050
|
icon: passwordVisibility.value ? "EyeClosed" : "Eye",
|
|
@@ -8678,15 +10063,15 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
8678
10063
|
|
|
8679
10064
|
// src/components/HookForm/RHFRadioGroup.tsx
|
|
8680
10065
|
import { Controller as Controller5, useFormContext as useFormContext5 } from "react-hook-form";
|
|
8681
|
-
import
|
|
8682
|
-
import
|
|
8683
|
-
import
|
|
8684
|
-
import
|
|
10066
|
+
import Stack7 from "@mui/material/Stack";
|
|
10067
|
+
import Typography11 from "@mui/material/Typography";
|
|
10068
|
+
import Radio3 from "@mui/material/Radio";
|
|
10069
|
+
import FormControlLabel4 from "@mui/material/FormControlLabel";
|
|
8685
10070
|
import FormLabel2 from "@mui/material/FormLabel";
|
|
8686
|
-
import
|
|
10071
|
+
import RadioGroup3 from "@mui/material/RadioGroup";
|
|
8687
10072
|
import FormControl2 from "@mui/material/FormControl";
|
|
8688
10073
|
import FormHelperText4 from "@mui/material/FormHelperText";
|
|
8689
|
-
import { jsx as
|
|
10074
|
+
import { jsx as jsx92, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
8690
10075
|
var RHFRadioGroup = ({
|
|
8691
10076
|
name,
|
|
8692
10077
|
label,
|
|
@@ -8698,13 +10083,13 @@ var RHFRadioGroup = ({
|
|
|
8698
10083
|
const { control } = useFormContext5();
|
|
8699
10084
|
const labelledby = `${name}-radio-buttons-group-label`;
|
|
8700
10085
|
const ariaLabel = (val) => `Radio ${val}`;
|
|
8701
|
-
return /* @__PURE__ */
|
|
10086
|
+
return /* @__PURE__ */ jsx92(
|
|
8702
10087
|
Controller5,
|
|
8703
10088
|
{
|
|
8704
10089
|
name,
|
|
8705
10090
|
control,
|
|
8706
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
8707
|
-
label && /* @__PURE__ */
|
|
10091
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs57(FormControl2, { component: "fieldset", sx: slotProps?.wrap, children: [
|
|
10092
|
+
label && /* @__PURE__ */ jsx92(
|
|
8708
10093
|
FormLabel2,
|
|
8709
10094
|
{
|
|
8710
10095
|
id: labelledby,
|
|
@@ -8714,12 +10099,12 @@ var RHFRadioGroup = ({
|
|
|
8714
10099
|
children: label
|
|
8715
10100
|
}
|
|
8716
10101
|
),
|
|
8717
|
-
/* @__PURE__ */
|
|
8718
|
-
|
|
10102
|
+
/* @__PURE__ */ jsx92(RadioGroup3, { ...field, "aria-labelledby": labelledby, ...other, children: options.map((option) => /* @__PURE__ */ jsx92(
|
|
10103
|
+
FormControlLabel4,
|
|
8719
10104
|
{
|
|
8720
10105
|
value: option.value,
|
|
8721
|
-
control: /* @__PURE__ */
|
|
8722
|
-
|
|
10106
|
+
control: /* @__PURE__ */ jsx92(
|
|
10107
|
+
Radio3,
|
|
8723
10108
|
{
|
|
8724
10109
|
...slotProps?.radio,
|
|
8725
10110
|
slotProps: {
|
|
@@ -8730,9 +10115,9 @@ var RHFRadioGroup = ({
|
|
|
8730
10115
|
}
|
|
8731
10116
|
}
|
|
8732
10117
|
),
|
|
8733
|
-
label: /* @__PURE__ */
|
|
8734
|
-
/* @__PURE__ */
|
|
8735
|
-
option?.description && /* @__PURE__ */
|
|
10118
|
+
label: /* @__PURE__ */ jsxs57(Stack7, { children: [
|
|
10119
|
+
/* @__PURE__ */ jsx92(Typography11, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
|
|
10120
|
+
option?.description && /* @__PURE__ */ jsx92(Typography11, { variant: "body2", color: "textBody", children: option?.description })
|
|
8736
10121
|
] }),
|
|
8737
10122
|
sx: {
|
|
8738
10123
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -8740,7 +10125,7 @@ var RHFRadioGroup = ({
|
|
|
8740
10125
|
},
|
|
8741
10126
|
option.value
|
|
8742
10127
|
)) }),
|
|
8743
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10128
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx92(FormHelperText4, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8744
10129
|
] })
|
|
8745
10130
|
}
|
|
8746
10131
|
);
|
|
@@ -8748,9 +10133,9 @@ var RHFRadioGroup = ({
|
|
|
8748
10133
|
|
|
8749
10134
|
// src/components/HookForm/RHFAutocomplete.tsx
|
|
8750
10135
|
import { Controller as Controller6, useFormContext as useFormContext6 } from "react-hook-form";
|
|
8751
|
-
import
|
|
10136
|
+
import TextField4 from "@mui/material/TextField";
|
|
8752
10137
|
import Autocomplete from "@mui/material/Autocomplete";
|
|
8753
|
-
import { jsx as
|
|
10138
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
8754
10139
|
var RHFAutocomplete = ({
|
|
8755
10140
|
name,
|
|
8756
10141
|
label,
|
|
@@ -8761,12 +10146,12 @@ var RHFAutocomplete = ({
|
|
|
8761
10146
|
...other
|
|
8762
10147
|
}) => {
|
|
8763
10148
|
const { control, setValue } = useFormContext6();
|
|
8764
|
-
return /* @__PURE__ */
|
|
10149
|
+
return /* @__PURE__ */ jsx93(
|
|
8765
10150
|
Controller6,
|
|
8766
10151
|
{
|
|
8767
10152
|
name,
|
|
8768
10153
|
control,
|
|
8769
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10154
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx93(
|
|
8770
10155
|
Autocomplete,
|
|
8771
10156
|
{
|
|
8772
10157
|
...field,
|
|
@@ -8775,8 +10160,8 @@ var RHFAutocomplete = ({
|
|
|
8775
10160
|
setValue(name, newValue, { shouldValidate: true });
|
|
8776
10161
|
handleChange?.(newValue);
|
|
8777
10162
|
},
|
|
8778
|
-
renderInput: (params) => /* @__PURE__ */
|
|
8779
|
-
|
|
10163
|
+
renderInput: (params) => /* @__PURE__ */ jsx93(
|
|
10164
|
+
TextField4,
|
|
8780
10165
|
{
|
|
8781
10166
|
label,
|
|
8782
10167
|
placeholder,
|
|
@@ -8793,18 +10178,150 @@ var RHFAutocomplete = ({
|
|
|
8793
10178
|
);
|
|
8794
10179
|
};
|
|
8795
10180
|
|
|
10181
|
+
// src/components/HookForm/RHFDateRangePicker.tsx
|
|
10182
|
+
import { useMemo as useMemo10, useState as useState16, useCallback as useCallback14 } from "react";
|
|
10183
|
+
import { useWatch, Controller as Controller7, useFormContext as useFormContext7 } from "react-hook-form";
|
|
10184
|
+
import { format as format3, isValid } from "date-fns";
|
|
10185
|
+
import Box22 from "@mui/material/Box";
|
|
10186
|
+
import Popover4 from "@mui/material/Popover";
|
|
10187
|
+
import TextField5 from "@mui/material/TextField";
|
|
10188
|
+
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
10189
|
+
import { Fragment as Fragment3, jsx as jsx94, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
10190
|
+
function RHFDateRangePicker({
|
|
10191
|
+
name,
|
|
10192
|
+
label,
|
|
10193
|
+
placeholder = "Select date range",
|
|
10194
|
+
helperText,
|
|
10195
|
+
dateFormat = "MMM d, yyyy",
|
|
10196
|
+
presets = defaultPresets,
|
|
10197
|
+
applyLabel,
|
|
10198
|
+
cancelLabel,
|
|
10199
|
+
disabled = false,
|
|
10200
|
+
size = "medium",
|
|
10201
|
+
fullWidth = true
|
|
10202
|
+
}) {
|
|
10203
|
+
const { control } = useFormContext7();
|
|
10204
|
+
const [anchorEl, setAnchorEl] = useState16(null);
|
|
10205
|
+
const open = Boolean(anchorEl);
|
|
10206
|
+
const watchedValue = useWatch({ control, name });
|
|
10207
|
+
const value = watchedValue ?? {
|
|
10208
|
+
start: null,
|
|
10209
|
+
end: null,
|
|
10210
|
+
preset: void 0
|
|
10211
|
+
};
|
|
10212
|
+
const displayValue = useMemo10(() => {
|
|
10213
|
+
if (value.preset && value.preset !== "custom") {
|
|
10214
|
+
const presetOption = presets.find((p) => p.value === value.preset);
|
|
10215
|
+
if (presetOption) return presetOption.label;
|
|
10216
|
+
}
|
|
10217
|
+
if (value.start && value.end && isValid(value.start) && isValid(value.end)) {
|
|
10218
|
+
const startYear = value.start.getFullYear();
|
|
10219
|
+
const endYear = value.end.getFullYear();
|
|
10220
|
+
const startStr = startYear !== endYear ? format3(value.start, dateFormat) : format3(value.start, "MMM d");
|
|
10221
|
+
const endStr = format3(value.end, dateFormat);
|
|
10222
|
+
return `${startStr} - ${endStr}`;
|
|
10223
|
+
}
|
|
10224
|
+
return "";
|
|
10225
|
+
}, [value.preset, value.start, value.end, presets, dateFormat]);
|
|
10226
|
+
const handleClick = useCallback14(
|
|
10227
|
+
(event) => {
|
|
10228
|
+
if (!disabled) {
|
|
10229
|
+
setAnchorEl(event.currentTarget);
|
|
10230
|
+
}
|
|
10231
|
+
},
|
|
10232
|
+
[disabled]
|
|
10233
|
+
);
|
|
10234
|
+
const handleClose = useCallback14(() => {
|
|
10235
|
+
setAnchorEl(null);
|
|
10236
|
+
}, []);
|
|
10237
|
+
return /* @__PURE__ */ jsx94(
|
|
10238
|
+
Controller7,
|
|
10239
|
+
{
|
|
10240
|
+
name,
|
|
10241
|
+
control,
|
|
10242
|
+
render: ({ field, fieldState: { error: error2 } }) => {
|
|
10243
|
+
const handleChange = (range, preset) => {
|
|
10244
|
+
field.onChange({ ...range, preset });
|
|
10245
|
+
handleClose();
|
|
10246
|
+
};
|
|
10247
|
+
return /* @__PURE__ */ jsxs58(Fragment3, { children: [
|
|
10248
|
+
/* @__PURE__ */ jsx94(Box22, { onClick: handleClick, sx: { cursor: disabled ? "default" : "pointer" }, children: /* @__PURE__ */ jsx94(
|
|
10249
|
+
TextField5,
|
|
10250
|
+
{
|
|
10251
|
+
label,
|
|
10252
|
+
placeholder,
|
|
10253
|
+
value: displayValue,
|
|
10254
|
+
error: !!error2,
|
|
10255
|
+
helperText: error2?.message ?? helperText,
|
|
10256
|
+
disabled,
|
|
10257
|
+
size,
|
|
10258
|
+
fullWidth,
|
|
10259
|
+
slotProps: {
|
|
10260
|
+
input: {
|
|
10261
|
+
readOnly: true,
|
|
10262
|
+
endAdornment: /* @__PURE__ */ jsx94(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx94(Icon, { icon: "Calendar", sx: { width: 20, height: 20, color: "icon.mute" } }) }),
|
|
10263
|
+
sx: { cursor: disabled ? "default" : "pointer" }
|
|
10264
|
+
}
|
|
10265
|
+
}
|
|
10266
|
+
}
|
|
10267
|
+
) }),
|
|
10268
|
+
/* @__PURE__ */ jsx94(
|
|
10269
|
+
Popover4,
|
|
10270
|
+
{
|
|
10271
|
+
open,
|
|
10272
|
+
anchorEl,
|
|
10273
|
+
onClose: handleClose,
|
|
10274
|
+
anchorOrigin: {
|
|
10275
|
+
vertical: "bottom",
|
|
10276
|
+
horizontal: "left"
|
|
10277
|
+
},
|
|
10278
|
+
transformOrigin: {
|
|
10279
|
+
vertical: "top",
|
|
10280
|
+
horizontal: "left"
|
|
10281
|
+
},
|
|
10282
|
+
slotProps: {
|
|
10283
|
+
paper: {
|
|
10284
|
+
sx: {
|
|
10285
|
+
mt: 1,
|
|
10286
|
+
p: 0,
|
|
10287
|
+
borderRadius: "radius-2xl",
|
|
10288
|
+
boxShadow: "-1px 2px 10px 0px rgba(0,0,0,0.1)",
|
|
10289
|
+
overflow: "hidden"
|
|
10290
|
+
}
|
|
10291
|
+
}
|
|
10292
|
+
},
|
|
10293
|
+
children: /* @__PURE__ */ jsx94(
|
|
10294
|
+
DateRangePicker,
|
|
10295
|
+
{
|
|
10296
|
+
value: { start: value.start, end: value.end },
|
|
10297
|
+
preset: value.preset,
|
|
10298
|
+
onChange: handleChange,
|
|
10299
|
+
onCancel: handleClose,
|
|
10300
|
+
presets,
|
|
10301
|
+
applyLabel,
|
|
10302
|
+
cancelLabel
|
|
10303
|
+
}
|
|
10304
|
+
)
|
|
10305
|
+
}
|
|
10306
|
+
)
|
|
10307
|
+
] });
|
|
10308
|
+
}
|
|
10309
|
+
}
|
|
10310
|
+
);
|
|
10311
|
+
}
|
|
10312
|
+
|
|
8796
10313
|
// src/components/HookForm/RHFCheckbox.tsx
|
|
8797
|
-
import { Controller as
|
|
8798
|
-
import
|
|
8799
|
-
import
|
|
8800
|
-
import
|
|
10314
|
+
import { Controller as Controller8, useFormContext as useFormContext8 } from "react-hook-form";
|
|
10315
|
+
import Stack8 from "@mui/material/Stack";
|
|
10316
|
+
import Box23 from "@mui/material/Box";
|
|
10317
|
+
import Typography12 from "@mui/material/Typography";
|
|
8801
10318
|
import Checkbox from "@mui/material/Checkbox";
|
|
8802
10319
|
import FormGroup2 from "@mui/material/FormGroup";
|
|
8803
10320
|
import FormLabel3 from "@mui/material/FormLabel";
|
|
8804
10321
|
import FormControl3 from "@mui/material/FormControl";
|
|
8805
10322
|
import FormHelperText5 from "@mui/material/FormHelperText";
|
|
8806
|
-
import
|
|
8807
|
-
import { jsx as
|
|
10323
|
+
import FormControlLabel5 from "@mui/material/FormControlLabel";
|
|
10324
|
+
import { jsx as jsx95, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8808
10325
|
var RHFCheckbox = ({
|
|
8809
10326
|
name,
|
|
8810
10327
|
description,
|
|
@@ -8814,18 +10331,18 @@ var RHFCheckbox = ({
|
|
|
8814
10331
|
slotProps,
|
|
8815
10332
|
...other
|
|
8816
10333
|
}) => {
|
|
8817
|
-
const { control } =
|
|
10334
|
+
const { control } = useFormContext8();
|
|
8818
10335
|
const baseAriaLabel = `Checkbox for ${name}`;
|
|
8819
|
-
return /* @__PURE__ */
|
|
8820
|
-
|
|
10336
|
+
return /* @__PURE__ */ jsx95(
|
|
10337
|
+
Controller8,
|
|
8821
10338
|
{
|
|
8822
10339
|
name,
|
|
8823
10340
|
control,
|
|
8824
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
8825
|
-
/* @__PURE__ */
|
|
8826
|
-
|
|
10341
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs59(Box23, { sx: slotProps?.wrap, children: [
|
|
10342
|
+
/* @__PURE__ */ jsx95(
|
|
10343
|
+
FormControlLabel5,
|
|
8827
10344
|
{
|
|
8828
|
-
control: /* @__PURE__ */
|
|
10345
|
+
control: /* @__PURE__ */ jsx95(
|
|
8829
10346
|
Checkbox,
|
|
8830
10347
|
{
|
|
8831
10348
|
...field,
|
|
@@ -8840,9 +10357,9 @@ var RHFCheckbox = ({
|
|
|
8840
10357
|
}
|
|
8841
10358
|
}
|
|
8842
10359
|
),
|
|
8843
|
-
label: /* @__PURE__ */
|
|
8844
|
-
/* @__PURE__ */
|
|
8845
|
-
description && /* @__PURE__ */
|
|
10360
|
+
label: /* @__PURE__ */ jsxs59(Stack8, { children: [
|
|
10361
|
+
/* @__PURE__ */ jsx95(Typography12, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
|
|
10362
|
+
description && /* @__PURE__ */ jsx95(Typography12, { variant: "body2", color: "textBody", children: description })
|
|
8846
10363
|
] }),
|
|
8847
10364
|
sx: {
|
|
8848
10365
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -8851,7 +10368,7 @@ var RHFCheckbox = ({
|
|
|
8851
10368
|
...other
|
|
8852
10369
|
}
|
|
8853
10370
|
),
|
|
8854
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10371
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx95(FormHelperText5, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8855
10372
|
] })
|
|
8856
10373
|
}
|
|
8857
10374
|
);
|
|
@@ -8865,15 +10382,15 @@ var RHFMultiCheckbox = ({
|
|
|
8865
10382
|
row,
|
|
8866
10383
|
...other
|
|
8867
10384
|
}) => {
|
|
8868
|
-
const { control } =
|
|
10385
|
+
const { control } = useFormContext8();
|
|
8869
10386
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
8870
|
-
return /* @__PURE__ */
|
|
8871
|
-
|
|
10387
|
+
return /* @__PURE__ */ jsx95(
|
|
10388
|
+
Controller8,
|
|
8872
10389
|
{
|
|
8873
10390
|
name,
|
|
8874
10391
|
control,
|
|
8875
10392
|
defaultValue: [],
|
|
8876
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10393
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsxs59(
|
|
8877
10394
|
FormControl3,
|
|
8878
10395
|
{
|
|
8879
10396
|
component: "fieldset",
|
|
@@ -8881,7 +10398,7 @@ var RHFMultiCheckbox = ({
|
|
|
8881
10398
|
sx: slotProps?.formControl?.sx,
|
|
8882
10399
|
...slotProps?.formControl,
|
|
8883
10400
|
children: [
|
|
8884
|
-
label && /* @__PURE__ */
|
|
10401
|
+
label && /* @__PURE__ */ jsx95(
|
|
8885
10402
|
FormLabel3,
|
|
8886
10403
|
{
|
|
8887
10404
|
component: "legend",
|
|
@@ -8890,12 +10407,12 @@ var RHFMultiCheckbox = ({
|
|
|
8890
10407
|
children: label
|
|
8891
10408
|
}
|
|
8892
10409
|
),
|
|
8893
|
-
/* @__PURE__ */
|
|
10410
|
+
/* @__PURE__ */ jsx95(FormGroup2, { row, ...other, children: options.map((option) => {
|
|
8894
10411
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
8895
|
-
return /* @__PURE__ */
|
|
8896
|
-
|
|
10412
|
+
return /* @__PURE__ */ jsx95(
|
|
10413
|
+
FormControlLabel5,
|
|
8897
10414
|
{
|
|
8898
|
-
control: /* @__PURE__ */
|
|
10415
|
+
control: /* @__PURE__ */ jsx95(
|
|
8899
10416
|
Checkbox,
|
|
8900
10417
|
{
|
|
8901
10418
|
checked: (field.value || []).includes(option.value),
|
|
@@ -8913,9 +10430,9 @@ var RHFMultiCheckbox = ({
|
|
|
8913
10430
|
}
|
|
8914
10431
|
}
|
|
8915
10432
|
),
|
|
8916
|
-
label: /* @__PURE__ */
|
|
8917
|
-
/* @__PURE__ */
|
|
8918
|
-
option?.description && /* @__PURE__ */
|
|
10433
|
+
label: /* @__PURE__ */ jsxs59(Stack8, { children: [
|
|
10434
|
+
/* @__PURE__ */ jsx95(Typography12, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
|
|
10435
|
+
option?.description && /* @__PURE__ */ jsx95(Typography12, { variant: "body2", color: "textBody", children: option?.description })
|
|
8919
10436
|
] }),
|
|
8920
10437
|
sx: {
|
|
8921
10438
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -8924,7 +10441,7 @@ var RHFMultiCheckbox = ({
|
|
|
8924
10441
|
option.value
|
|
8925
10442
|
);
|
|
8926
10443
|
}) }),
|
|
8927
|
-
(!!error2 || helperText) && /* @__PURE__ */
|
|
10444
|
+
(!!error2 || helperText) && /* @__PURE__ */ jsx95(
|
|
8928
10445
|
FormHelperText5,
|
|
8929
10446
|
{
|
|
8930
10447
|
sx: { mx: 0, ...slotProps?.formHelperText?.sx },
|
|
@@ -8940,11 +10457,11 @@ var RHFMultiCheckbox = ({
|
|
|
8940
10457
|
};
|
|
8941
10458
|
|
|
8942
10459
|
// src/components/HookForm/RHFDatePicker.tsx
|
|
8943
|
-
import { memo, useState as
|
|
8944
|
-
import { Controller as
|
|
8945
|
-
import
|
|
8946
|
-
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
8947
|
-
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
|
|
10460
|
+
import { memo, useState as useState17, useEffect as useEffect6 } from "react";
|
|
10461
|
+
import { Controller as Controller9, useFormContext as useFormContext9 } from "react-hook-form";
|
|
10462
|
+
import TextField6 from "@mui/material/TextField";
|
|
10463
|
+
import { LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers";
|
|
10464
|
+
import { AdapterDateFns as AdapterDateFns2 } from "@mui/x-date-pickers/AdapterDateFns";
|
|
8948
10465
|
import {
|
|
8949
10466
|
DatePicker as MuiDatePicker
|
|
8950
10467
|
} from "@mui/x-date-pickers/DatePicker";
|
|
@@ -8954,18 +10471,18 @@ import {
|
|
|
8954
10471
|
import {
|
|
8955
10472
|
DateTimePicker as MuiDateTimePicker
|
|
8956
10473
|
} from "@mui/x-date-pickers/DateTimePicker";
|
|
8957
|
-
import { jsx as
|
|
10474
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
|
8958
10475
|
var RHFDatePickerComponent = ({
|
|
8959
10476
|
name,
|
|
8960
10477
|
slotProps,
|
|
8961
10478
|
helperText,
|
|
8962
10479
|
clearable = false,
|
|
8963
|
-
format = "MMM d, yyyy",
|
|
10480
|
+
format: format4 = "MMM d, yyyy",
|
|
8964
10481
|
...other
|
|
8965
10482
|
}) => {
|
|
8966
|
-
const { control } =
|
|
8967
|
-
const [isOpen, setIsOpen] =
|
|
8968
|
-
const [cleared, setCleared] =
|
|
10483
|
+
const { control } = useFormContext9();
|
|
10484
|
+
const [isOpen, setIsOpen] = useState17(false);
|
|
10485
|
+
const [cleared, setCleared] = useState17(false);
|
|
8969
10486
|
useEffect6(() => {
|
|
8970
10487
|
if (cleared) {
|
|
8971
10488
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
@@ -8974,23 +10491,23 @@ var RHFDatePickerComponent = ({
|
|
|
8974
10491
|
return () => {
|
|
8975
10492
|
};
|
|
8976
10493
|
}, [cleared]);
|
|
8977
|
-
return /* @__PURE__ */
|
|
8978
|
-
|
|
10494
|
+
return /* @__PURE__ */ jsx96(
|
|
10495
|
+
Controller9,
|
|
8979
10496
|
{
|
|
8980
10497
|
name,
|
|
8981
10498
|
control,
|
|
8982
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10499
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx96(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx96(
|
|
8983
10500
|
MuiDatePicker,
|
|
8984
10501
|
{
|
|
8985
10502
|
...field,
|
|
8986
10503
|
value: field.value ?? null,
|
|
8987
10504
|
onChange: (newValue) => field.onChange(newValue),
|
|
8988
10505
|
enableAccessibleFieldDOMStructure: false,
|
|
8989
|
-
format,
|
|
10506
|
+
format: format4,
|
|
8990
10507
|
open: isOpen,
|
|
8991
10508
|
onClose: () => setIsOpen(false),
|
|
8992
10509
|
slots: {
|
|
8993
|
-
textField:
|
|
10510
|
+
textField: TextField6,
|
|
8994
10511
|
...other.slots
|
|
8995
10512
|
},
|
|
8996
10513
|
slotProps: {
|
|
@@ -9002,6 +10519,7 @@ var RHFDatePickerComponent = ({
|
|
|
9002
10519
|
onClick: () => setIsOpen(true),
|
|
9003
10520
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9004
10521
|
},
|
|
10522
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9005
10523
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9006
10524
|
},
|
|
9007
10525
|
...other
|
|
@@ -9016,12 +10534,12 @@ var RHFTimePickerComponent = ({
|
|
|
9016
10534
|
slotProps,
|
|
9017
10535
|
helperText,
|
|
9018
10536
|
clearable = false,
|
|
9019
|
-
format = "h:mma",
|
|
10537
|
+
format: format4 = "h:mma",
|
|
9020
10538
|
...other
|
|
9021
10539
|
}) => {
|
|
9022
|
-
const { control } =
|
|
9023
|
-
const [isOpen, setIsOpen] =
|
|
9024
|
-
const [cleared, setCleared] =
|
|
10540
|
+
const { control } = useFormContext9();
|
|
10541
|
+
const [isOpen, setIsOpen] = useState17(false);
|
|
10542
|
+
const [cleared, setCleared] = useState17(false);
|
|
9025
10543
|
useEffect6(() => {
|
|
9026
10544
|
if (cleared) {
|
|
9027
10545
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
@@ -9030,23 +10548,23 @@ var RHFTimePickerComponent = ({
|
|
|
9030
10548
|
return () => {
|
|
9031
10549
|
};
|
|
9032
10550
|
}, [cleared]);
|
|
9033
|
-
return /* @__PURE__ */
|
|
9034
|
-
|
|
10551
|
+
return /* @__PURE__ */ jsx96(
|
|
10552
|
+
Controller9,
|
|
9035
10553
|
{
|
|
9036
10554
|
name,
|
|
9037
10555
|
control,
|
|
9038
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10556
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx96(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx96(
|
|
9039
10557
|
MuiTimePicker,
|
|
9040
10558
|
{
|
|
9041
10559
|
...field,
|
|
9042
10560
|
value: field.value ?? null,
|
|
9043
10561
|
onChange: (newValue) => field.onChange(newValue),
|
|
9044
10562
|
enableAccessibleFieldDOMStructure: false,
|
|
9045
|
-
format,
|
|
10563
|
+
format: format4,
|
|
9046
10564
|
open: isOpen,
|
|
9047
10565
|
onClose: () => setIsOpen(false),
|
|
9048
10566
|
slots: {
|
|
9049
|
-
textField:
|
|
10567
|
+
textField: TextField6,
|
|
9050
10568
|
...other.slots
|
|
9051
10569
|
},
|
|
9052
10570
|
slotProps: {
|
|
@@ -9058,6 +10576,7 @@ var RHFTimePickerComponent = ({
|
|
|
9058
10576
|
onClick: () => setIsOpen(true),
|
|
9059
10577
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9060
10578
|
},
|
|
10579
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9061
10580
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9062
10581
|
},
|
|
9063
10582
|
...other
|
|
@@ -9072,12 +10591,12 @@ var RHFDateTimePickerComponent = ({
|
|
|
9072
10591
|
slotProps,
|
|
9073
10592
|
helperText,
|
|
9074
10593
|
clearable = false,
|
|
9075
|
-
format = "MMM d, yyyy h:mma",
|
|
10594
|
+
format: format4 = "MMM d, yyyy h:mma",
|
|
9076
10595
|
...other
|
|
9077
10596
|
}) => {
|
|
9078
|
-
const { control } =
|
|
9079
|
-
const [isOpen, setIsOpen] =
|
|
9080
|
-
const [cleared, setCleared] =
|
|
10597
|
+
const { control } = useFormContext9();
|
|
10598
|
+
const [isOpen, setIsOpen] = useState17(false);
|
|
10599
|
+
const [cleared, setCleared] = useState17(false);
|
|
9081
10600
|
useEffect6(() => {
|
|
9082
10601
|
if (cleared) {
|
|
9083
10602
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
@@ -9086,23 +10605,23 @@ var RHFDateTimePickerComponent = ({
|
|
|
9086
10605
|
return () => {
|
|
9087
10606
|
};
|
|
9088
10607
|
}, [cleared]);
|
|
9089
|
-
return /* @__PURE__ */
|
|
9090
|
-
|
|
10608
|
+
return /* @__PURE__ */ jsx96(
|
|
10609
|
+
Controller9,
|
|
9091
10610
|
{
|
|
9092
10611
|
name,
|
|
9093
10612
|
control,
|
|
9094
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */
|
|
10613
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ jsx96(LocalizationProvider2, { dateAdapter: AdapterDateFns2, children: /* @__PURE__ */ jsx96(
|
|
9095
10614
|
MuiDateTimePicker,
|
|
9096
10615
|
{
|
|
9097
10616
|
...field,
|
|
9098
10617
|
value: field.value ?? null,
|
|
9099
10618
|
onChange: (newValue) => field.onChange(newValue),
|
|
9100
10619
|
enableAccessibleFieldDOMStructure: false,
|
|
9101
|
-
format,
|
|
10620
|
+
format: format4,
|
|
9102
10621
|
open: isOpen,
|
|
9103
10622
|
onClose: () => setIsOpen(false),
|
|
9104
10623
|
slots: {
|
|
9105
|
-
textField:
|
|
10624
|
+
textField: TextField6,
|
|
9106
10625
|
...other.slots
|
|
9107
10626
|
},
|
|
9108
10627
|
slotProps: {
|
|
@@ -9114,6 +10633,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
9114
10633
|
onClick: () => setIsOpen(true),
|
|
9115
10634
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9116
10635
|
},
|
|
10636
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9117
10637
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9118
10638
|
},
|
|
9119
10639
|
...other
|
|
@@ -9136,35 +10656,36 @@ var Field = {
|
|
|
9136
10656
|
MultiCheckbox: RHFMultiCheckbox,
|
|
9137
10657
|
Date: RHFDatePicker,
|
|
9138
10658
|
Time: RHFTimePicker,
|
|
9139
|
-
DateTime: RHFDateTimePicker
|
|
10659
|
+
DateTime: RHFDateTimePicker,
|
|
10660
|
+
DateRange: RHFDateRangePicker
|
|
9140
10661
|
};
|
|
9141
10662
|
|
|
9142
10663
|
// src/components/CopyButton/index.tsx
|
|
9143
10664
|
import Tooltip from "@mui/material/Tooltip";
|
|
9144
|
-
import
|
|
9145
|
-
import { jsx as
|
|
10665
|
+
import IconButton6 from "@mui/material/IconButton";
|
|
10666
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
9146
10667
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
9147
10668
|
const { copy, isCopied } = useCopyToClipboard();
|
|
9148
|
-
return /* @__PURE__ */
|
|
9149
|
-
|
|
10669
|
+
return /* @__PURE__ */ jsx97(Tooltip, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ jsx97(
|
|
10670
|
+
IconButton6,
|
|
9150
10671
|
{
|
|
9151
10672
|
size,
|
|
9152
10673
|
onClick: () => copy(text2),
|
|
9153
10674
|
"aria-label": "copy token",
|
|
9154
10675
|
sx: { color: "icon.black" },
|
|
9155
|
-
children: /* @__PURE__ */
|
|
10676
|
+
children: /* @__PURE__ */ jsx97(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
9156
10677
|
}
|
|
9157
10678
|
) });
|
|
9158
10679
|
};
|
|
9159
10680
|
|
|
9160
10681
|
// src/components/LoadingScreen/index.tsx
|
|
9161
10682
|
import Portal2 from "@mui/material/Portal";
|
|
9162
|
-
import
|
|
10683
|
+
import Box24 from "@mui/material/Box";
|
|
9163
10684
|
import LinearProgress from "@mui/material/LinearProgress";
|
|
9164
|
-
import { jsx as
|
|
10685
|
+
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
9165
10686
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
9166
|
-
const content = /* @__PURE__ */
|
|
9167
|
-
|
|
10687
|
+
const content = /* @__PURE__ */ jsx98(
|
|
10688
|
+
Box24,
|
|
9168
10689
|
{
|
|
9169
10690
|
sx: {
|
|
9170
10691
|
px: 5,
|
|
@@ -9177,17 +10698,17 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
9177
10698
|
...sx
|
|
9178
10699
|
},
|
|
9179
10700
|
...rest,
|
|
9180
|
-
children: /* @__PURE__ */
|
|
10701
|
+
children: /* @__PURE__ */ jsx98(LinearProgress, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
9181
10702
|
}
|
|
9182
10703
|
);
|
|
9183
10704
|
if (portal) {
|
|
9184
|
-
return /* @__PURE__ */
|
|
10705
|
+
return /* @__PURE__ */ jsx98(Portal2, { children: content });
|
|
9185
10706
|
}
|
|
9186
10707
|
return content;
|
|
9187
10708
|
};
|
|
9188
10709
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
9189
|
-
const content = /* @__PURE__ */
|
|
9190
|
-
|
|
10710
|
+
const content = /* @__PURE__ */ jsx98(
|
|
10711
|
+
Box24,
|
|
9191
10712
|
{
|
|
9192
10713
|
sx: {
|
|
9193
10714
|
right: 0,
|
|
@@ -9203,24 +10724,24 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
9203
10724
|
...sx
|
|
9204
10725
|
},
|
|
9205
10726
|
...rest,
|
|
9206
|
-
children: /* @__PURE__ */
|
|
10727
|
+
children: /* @__PURE__ */ jsx98(AnimatedLogo, {})
|
|
9207
10728
|
}
|
|
9208
10729
|
);
|
|
9209
10730
|
if (portal) {
|
|
9210
|
-
return /* @__PURE__ */
|
|
10731
|
+
return /* @__PURE__ */ jsx98(Portal2, { children: content });
|
|
9211
10732
|
}
|
|
9212
10733
|
return content;
|
|
9213
10734
|
};
|
|
9214
10735
|
|
|
9215
10736
|
// src/theme/core/components/mui-x-date-picker.tsx
|
|
9216
|
-
import { jsx as
|
|
10737
|
+
import { jsx as jsx99, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9217
10738
|
var CustomCalendarHeaderRoot = styled3("div")(({ theme }) => ({
|
|
9218
10739
|
display: "flex",
|
|
9219
10740
|
justifyContent: "space-between",
|
|
9220
10741
|
padding: theme.spacing(2),
|
|
9221
10742
|
alignItems: "center"
|
|
9222
10743
|
}));
|
|
9223
|
-
var CustomIconButton = styled3(
|
|
10744
|
+
var CustomIconButton = styled3(IconButton7)(({ theme }) => ({
|
|
9224
10745
|
color: theme.vars.palette.neutral[700],
|
|
9225
10746
|
border: `1px solid ${theme.vars.palette.border.mute}`,
|
|
9226
10747
|
borderRadius: theme.radius["radius-sm"],
|
|
@@ -9231,7 +10752,7 @@ var CustomIconButton = styled3(IconButton5)(({ theme }) => ({
|
|
|
9231
10752
|
backgroundColor: varAlpha(theme.vars.palette.neutral.mainChannel, 0.08)
|
|
9232
10753
|
}
|
|
9233
10754
|
}));
|
|
9234
|
-
function
|
|
10755
|
+
function addMonths2(date, amount) {
|
|
9235
10756
|
const result = new Date(date);
|
|
9236
10757
|
result.setMonth(result.getMonth() + amount);
|
|
9237
10758
|
return result;
|
|
@@ -9241,8 +10762,8 @@ function formatMonthYear(date) {
|
|
|
9241
10762
|
}
|
|
9242
10763
|
function CustomCalendarHeader(props) {
|
|
9243
10764
|
const { currentMonth, onMonthChange, view, views, onViewChange } = props;
|
|
9244
|
-
const selectNextMonth = () => onMonthChange(
|
|
9245
|
-
const selectPreviousMonth = () => onMonthChange(
|
|
10765
|
+
const selectNextMonth = () => onMonthChange(addMonths2(currentMonth, 1));
|
|
10766
|
+
const selectPreviousMonth = () => onMonthChange(addMonths2(currentMonth, -1));
|
|
9246
10767
|
const monthLabel = formatMonthYear(currentMonth);
|
|
9247
10768
|
const canSwitchView = views && views.length > 1 && onViewChange;
|
|
9248
10769
|
const handleLabelClick = () => {
|
|
@@ -9251,10 +10772,10 @@ function CustomCalendarHeader(props) {
|
|
|
9251
10772
|
onViewChange("year");
|
|
9252
10773
|
}
|
|
9253
10774
|
};
|
|
9254
|
-
return /* @__PURE__ */
|
|
9255
|
-
/* @__PURE__ */
|
|
9256
|
-
/* @__PURE__ */
|
|
9257
|
-
|
|
10775
|
+
return /* @__PURE__ */ jsxs60(CustomCalendarHeaderRoot, { children: [
|
|
10776
|
+
/* @__PURE__ */ jsx99(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ jsx99(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
10777
|
+
/* @__PURE__ */ jsx99(
|
|
10778
|
+
Typography13,
|
|
9258
10779
|
{
|
|
9259
10780
|
variant: "subtitle1",
|
|
9260
10781
|
onClick: handleLabelClick,
|
|
@@ -9268,7 +10789,7 @@ function CustomCalendarHeader(props) {
|
|
|
9268
10789
|
children: monthLabel
|
|
9269
10790
|
}
|
|
9270
10791
|
),
|
|
9271
|
-
/* @__PURE__ */
|
|
10792
|
+
/* @__PURE__ */ jsx99(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ jsx99(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
9272
10793
|
] });
|
|
9273
10794
|
}
|
|
9274
10795
|
var localeText = {
|
|
@@ -9276,13 +10797,13 @@ var localeText = {
|
|
|
9276
10797
|
};
|
|
9277
10798
|
var defaultProps = {
|
|
9278
10799
|
date: {
|
|
9279
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
10800
|
+
openPickerIcon: () => /* @__PURE__ */ jsx99(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
9280
10801
|
calendarHeader: CustomCalendarHeader
|
|
9281
10802
|
},
|
|
9282
10803
|
time: {
|
|
9283
|
-
openPickerIcon: () => /* @__PURE__ */
|
|
9284
|
-
rightArrowIcon: () => /* @__PURE__ */
|
|
9285
|
-
switchViewIcon: () => /* @__PURE__ */
|
|
10804
|
+
openPickerIcon: () => /* @__PURE__ */ jsx99(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
10805
|
+
rightArrowIcon: () => /* @__PURE__ */ jsx99(Icon, { icon: "NavArrowRight" }),
|
|
10806
|
+
switchViewIcon: () => /* @__PURE__ */ jsx99(Icon, { icon: "NavArrowDownSolid" })
|
|
9286
10807
|
}
|
|
9287
10808
|
};
|
|
9288
10809
|
var dateViews = ["year", "month", "day"];
|
|
@@ -9301,7 +10822,7 @@ var MuiTimePicker2 = { defaultProps: timePickerDefaults };
|
|
|
9301
10822
|
var MuiMobileTimePicker = { defaultProps: timePickerDefaults };
|
|
9302
10823
|
var MuiStaticTimePicker = { defaultProps: timePickerDefaults };
|
|
9303
10824
|
var MuiDesktopTimePicker = { defaultProps: timePickerDefaults };
|
|
9304
|
-
var
|
|
10825
|
+
var MuiPickerLayout = {
|
|
9305
10826
|
/** **************************************
|
|
9306
10827
|
* STYLE
|
|
9307
10828
|
*************************************** */
|
|
@@ -9327,14 +10848,16 @@ var MuiPickersLayout = {
|
|
|
9327
10848
|
})
|
|
9328
10849
|
}
|
|
9329
10850
|
};
|
|
9330
|
-
var
|
|
10851
|
+
var MuiPickerPopper = {
|
|
9331
10852
|
/** **************************************
|
|
9332
10853
|
* DEFAULT PROPS
|
|
9333
10854
|
*************************************** */
|
|
9334
10855
|
styleOverrides: {
|
|
9335
|
-
|
|
10856
|
+
root: ({ theme }) => ({
|
|
10857
|
+
border: `1px solid ${theme.vars.palette.border.subtle}`,
|
|
10858
|
+
overflow: "hidden",
|
|
9336
10859
|
boxShadow: theme.customShadows["shadow-sm"],
|
|
9337
|
-
borderRadius:
|
|
10860
|
+
borderRadius: theme.radius["radius-md"]
|
|
9338
10861
|
})
|
|
9339
10862
|
}
|
|
9340
10863
|
};
|
|
@@ -9342,8 +10865,7 @@ var MuiDateCalendar = {
|
|
|
9342
10865
|
defaultProps: { views: dateViews, slots: defaultProps.date },
|
|
9343
10866
|
styleOverrides: {
|
|
9344
10867
|
root: ({ theme }) => ({
|
|
9345
|
-
backgroundColor: theme.vars.palette.background.paper
|
|
9346
|
-
borderRadius: theme.radius["radius-md"]
|
|
10868
|
+
backgroundColor: theme.vars.palette.background.paper
|
|
9347
10869
|
})
|
|
9348
10870
|
}
|
|
9349
10871
|
};
|
|
@@ -9461,8 +10983,8 @@ var MuiDayCalendar = {
|
|
|
9461
10983
|
}
|
|
9462
10984
|
};
|
|
9463
10985
|
var datePicker = {
|
|
9464
|
-
|
|
9465
|
-
|
|
10986
|
+
MuiPickerPopper,
|
|
10987
|
+
MuiPickerLayout,
|
|
9466
10988
|
// Calendar
|
|
9467
10989
|
MuiDateCalendar,
|
|
9468
10990
|
MuiPickersDay,
|
|
@@ -9712,18 +11234,18 @@ import "@fontsource/geist/500.css";
|
|
|
9712
11234
|
import "@fontsource/geist/600.css";
|
|
9713
11235
|
import "@fontsource/geist/700.css";
|
|
9714
11236
|
import "./satoshi-4X3TX4PE.css";
|
|
9715
|
-
import { jsx as
|
|
11237
|
+
import { jsx as jsx100, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9716
11238
|
var ThemeProvider = ({ children }) => {
|
|
9717
11239
|
const settings = useSettings();
|
|
9718
11240
|
const theme = createTheme(settings);
|
|
9719
|
-
return /* @__PURE__ */
|
|
11241
|
+
return /* @__PURE__ */ jsxs61(
|
|
9720
11242
|
MuiThemeProvider,
|
|
9721
11243
|
{
|
|
9722
11244
|
theme,
|
|
9723
11245
|
defaultMode: schemeConfig.defaultMode,
|
|
9724
11246
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
9725
11247
|
children: [
|
|
9726
|
-
/* @__PURE__ */
|
|
11248
|
+
/* @__PURE__ */ jsx100(CssBaseline, {}),
|
|
9727
11249
|
children
|
|
9728
11250
|
]
|
|
9729
11251
|
}
|
|
@@ -9749,12 +11271,19 @@ export {
|
|
|
9749
11271
|
CloudUpload,
|
|
9750
11272
|
Copy,
|
|
9751
11273
|
CopyButton,
|
|
11274
|
+
CustomDialog,
|
|
11275
|
+
CustomDrawer,
|
|
11276
|
+
DateRangeDropdown,
|
|
11277
|
+
DateRangePicker,
|
|
9752
11278
|
Download,
|
|
9753
11279
|
EmptyContent,
|
|
9754
11280
|
ErrorToast,
|
|
9755
11281
|
Eye,
|
|
9756
11282
|
EyeClosed,
|
|
11283
|
+
FeedbackDialog,
|
|
9757
11284
|
Field,
|
|
11285
|
+
FilterDropdown,
|
|
11286
|
+
FilterList,
|
|
9758
11287
|
Form,
|
|
9759
11288
|
HelpCircle,
|
|
9760
11289
|
Icon,
|
|
@@ -9779,6 +11308,7 @@ export {
|
|
|
9779
11308
|
RHFAutocomplete,
|
|
9780
11309
|
RHFCheckbox,
|
|
9781
11310
|
RHFDatePicker,
|
|
11311
|
+
RHFDateRangePicker,
|
|
9782
11312
|
RHFDateTimePicker,
|
|
9783
11313
|
RHFMultiCheckbox,
|
|
9784
11314
|
RHFMultiSwitch,
|
|
@@ -9797,6 +11327,7 @@ export {
|
|
|
9797
11327
|
SettingsContext,
|
|
9798
11328
|
SettingsProvider,
|
|
9799
11329
|
SortDown,
|
|
11330
|
+
SortDropdown,
|
|
9800
11331
|
SortUp,
|
|
9801
11332
|
SplashScreen,
|
|
9802
11333
|
StatDown,
|
|
@@ -9806,6 +11337,14 @@ export {
|
|
|
9806
11337
|
TablePagination,
|
|
9807
11338
|
ThemeProvider,
|
|
9808
11339
|
Toast,
|
|
11340
|
+
ToolbarButton,
|
|
11341
|
+
ToolbarDatePickerButton,
|
|
11342
|
+
ToolbarFilterButton,
|
|
11343
|
+
ToolbarSearchField,
|
|
11344
|
+
ToolbarSettingsButton,
|
|
11345
|
+
ToolbarSortButton,
|
|
11346
|
+
ToolbarTodayButton,
|
|
11347
|
+
ToolbarViewSwitcher,
|
|
9809
11348
|
Trash,
|
|
9810
11349
|
Upload,
|
|
9811
11350
|
User,
|
|
@@ -9832,15 +11371,20 @@ export {
|
|
|
9832
11371
|
customShadows,
|
|
9833
11372
|
customSpacing,
|
|
9834
11373
|
darkPalette,
|
|
11374
|
+
defaultPresets,
|
|
9835
11375
|
defaultSettings,
|
|
11376
|
+
dialogClasses,
|
|
11377
|
+
drawerClasses,
|
|
9836
11378
|
error,
|
|
9837
11379
|
fCurrency,
|
|
9838
11380
|
fData,
|
|
9839
11381
|
fNumber,
|
|
9840
11382
|
fPercent,
|
|
9841
11383
|
fShortenNumber,
|
|
11384
|
+
feedbackDialogClasses,
|
|
9842
11385
|
formatFullname,
|
|
9843
11386
|
getCurrencySymbol,
|
|
11387
|
+
getDateRangeFromPreset,
|
|
9844
11388
|
getDefaultChartOptions,
|
|
9845
11389
|
getInitials,
|
|
9846
11390
|
getStorage,
|
|
@@ -9882,6 +11426,7 @@ export {
|
|
|
9882
11426
|
tertiaryFont,
|
|
9883
11427
|
text,
|
|
9884
11428
|
textGradient,
|
|
11429
|
+
toolbarClasses,
|
|
9885
11430
|
typography,
|
|
9886
11431
|
updateComponentsWithSettings,
|
|
9887
11432
|
updateCoreWithSettings,
|