@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.cjs
CHANGED
|
@@ -47,12 +47,19 @@ __export(index_exports, {
|
|
|
47
47
|
CloudUpload: () => CloudUpload,
|
|
48
48
|
Copy: () => Copy,
|
|
49
49
|
CopyButton: () => CopyButton,
|
|
50
|
+
CustomDialog: () => CustomDialog,
|
|
51
|
+
CustomDrawer: () => CustomDrawer,
|
|
52
|
+
DateRangeDropdown: () => DateRangeDropdown,
|
|
53
|
+
DateRangePicker: () => DateRangePicker,
|
|
50
54
|
Download: () => Download,
|
|
51
55
|
EmptyContent: () => EmptyContent,
|
|
52
56
|
ErrorToast: () => ErrorToast,
|
|
53
57
|
Eye: () => Eye,
|
|
54
58
|
EyeClosed: () => EyeClosed,
|
|
59
|
+
FeedbackDialog: () => FeedbackDialog,
|
|
55
60
|
Field: () => Field,
|
|
61
|
+
FilterDropdown: () => FilterDropdown,
|
|
62
|
+
FilterList: () => FilterList,
|
|
56
63
|
Form: () => Form,
|
|
57
64
|
HelpCircle: () => HelpCircle,
|
|
58
65
|
Icon: () => Icon,
|
|
@@ -77,6 +84,7 @@ __export(index_exports, {
|
|
|
77
84
|
RHFAutocomplete: () => RHFAutocomplete,
|
|
78
85
|
RHFCheckbox: () => RHFCheckbox,
|
|
79
86
|
RHFDatePicker: () => RHFDatePicker,
|
|
87
|
+
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
80
88
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
81
89
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
82
90
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
@@ -95,6 +103,7 @@ __export(index_exports, {
|
|
|
95
103
|
SettingsContext: () => SettingsContext,
|
|
96
104
|
SettingsProvider: () => SettingsProvider,
|
|
97
105
|
SortDown: () => SortDown,
|
|
106
|
+
SortDropdown: () => SortDropdown,
|
|
98
107
|
SortUp: () => SortUp,
|
|
99
108
|
SplashScreen: () => SplashScreen,
|
|
100
109
|
StatDown: () => StatDown,
|
|
@@ -104,6 +113,14 @@ __export(index_exports, {
|
|
|
104
113
|
TablePagination: () => TablePagination,
|
|
105
114
|
ThemeProvider: () => ThemeProvider,
|
|
106
115
|
Toast: () => Toast,
|
|
116
|
+
ToolbarButton: () => ToolbarButton,
|
|
117
|
+
ToolbarDatePickerButton: () => ToolbarDatePickerButton,
|
|
118
|
+
ToolbarFilterButton: () => ToolbarFilterButton,
|
|
119
|
+
ToolbarSearchField: () => ToolbarSearchField,
|
|
120
|
+
ToolbarSettingsButton: () => ToolbarSettingsButton,
|
|
121
|
+
ToolbarSortButton: () => ToolbarSortButton,
|
|
122
|
+
ToolbarTodayButton: () => ToolbarTodayButton,
|
|
123
|
+
ToolbarViewSwitcher: () => ToolbarViewSwitcher,
|
|
107
124
|
Trash: () => Trash,
|
|
108
125
|
Upload: () => Upload,
|
|
109
126
|
User: () => User,
|
|
@@ -130,15 +147,20 @@ __export(index_exports, {
|
|
|
130
147
|
customShadows: () => customShadows,
|
|
131
148
|
customSpacing: () => customSpacing,
|
|
132
149
|
darkPalette: () => darkPalette,
|
|
150
|
+
defaultPresets: () => defaultPresets,
|
|
133
151
|
defaultSettings: () => defaultSettings,
|
|
152
|
+
dialogClasses: () => dialogClasses,
|
|
153
|
+
drawerClasses: () => drawerClasses,
|
|
134
154
|
error: () => error,
|
|
135
155
|
fCurrency: () => fCurrency,
|
|
136
156
|
fData: () => fData,
|
|
137
157
|
fNumber: () => fNumber,
|
|
138
158
|
fPercent: () => fPercent,
|
|
139
159
|
fShortenNumber: () => fShortenNumber,
|
|
160
|
+
feedbackDialogClasses: () => feedbackDialogClasses,
|
|
140
161
|
formatFullname: () => formatFullname,
|
|
141
162
|
getCurrencySymbol: () => getCurrencySymbol,
|
|
163
|
+
getDateRangeFromPreset: () => getDateRangeFromPreset,
|
|
142
164
|
getDefaultChartOptions: () => getDefaultChartOptions,
|
|
143
165
|
getInitials: () => getInitials,
|
|
144
166
|
getStorage: () => getStorage,
|
|
@@ -180,6 +202,7 @@ __export(index_exports, {
|
|
|
180
202
|
tertiaryFont: () => tertiaryFont,
|
|
181
203
|
text: () => text,
|
|
182
204
|
textGradient: () => textGradient,
|
|
205
|
+
toolbarClasses: () => toolbarClasses,
|
|
183
206
|
typography: () => typography,
|
|
184
207
|
updateComponentsWithSettings: () => updateComponentsWithSettings,
|
|
185
208
|
updateCoreWithSettings: () => updateCoreWithSettings,
|
|
@@ -1122,7 +1145,7 @@ var getLineHeight = (lineHeight, fontSize) => {
|
|
|
1122
1145
|
return lineHeight;
|
|
1123
1146
|
};
|
|
1124
1147
|
var maxLine = ({ line, persistent }) => {
|
|
1125
|
-
const
|
|
1148
|
+
const baseStyles6 = {
|
|
1126
1149
|
overflow: "hidden",
|
|
1127
1150
|
display: "-webkit-box",
|
|
1128
1151
|
textOverflow: "ellipsis",
|
|
@@ -1136,7 +1159,7 @@ var maxLine = ({ line, persistent }) => {
|
|
|
1136
1159
|
const fontSizeLg = getFontSize(persistent[mediaQueries.upLg]?.fontSize);
|
|
1137
1160
|
const lineHeight = getLineHeight(persistent.lineHeight, fontSizeBase);
|
|
1138
1161
|
return {
|
|
1139
|
-
...
|
|
1162
|
+
...baseStyles6,
|
|
1140
1163
|
...lineHeight && {
|
|
1141
1164
|
...fontSizeBase && { height: fontSizeBase * lineHeight * line },
|
|
1142
1165
|
...fontSizeSm && {
|
|
@@ -1151,7 +1174,7 @@ var maxLine = ({ line, persistent }) => {
|
|
|
1151
1174
|
}
|
|
1152
1175
|
};
|
|
1153
1176
|
}
|
|
1154
|
-
return
|
|
1177
|
+
return baseStyles6;
|
|
1155
1178
|
};
|
|
1156
1179
|
function paper({
|
|
1157
1180
|
theme,
|
|
@@ -1172,7 +1195,7 @@ function paper({
|
|
|
1172
1195
|
},
|
|
1173
1196
|
...dropdown && {
|
|
1174
1197
|
border: `1px solid ${theme.vars.palette.border.subtle}`,
|
|
1175
|
-
boxShadow: theme.customShadows["shadow-
|
|
1198
|
+
boxShadow: theme.customShadows["shadow-md"],
|
|
1176
1199
|
borderRadius: theme.radius["radius-md"]
|
|
1177
1200
|
}
|
|
1178
1201
|
};
|
|
@@ -2377,6 +2400,7 @@ __export(components_exports, {
|
|
|
2377
2400
|
ErrorToast: () => ErrorToast,
|
|
2378
2401
|
Eye: () => Eye,
|
|
2379
2402
|
EyeClosed: () => EyeClosed,
|
|
2403
|
+
FilterList: () => FilterList,
|
|
2380
2404
|
HelpCircle: () => HelpCircle,
|
|
2381
2405
|
InfoCircle: () => InfoCircle,
|
|
2382
2406
|
InfoCircleSolid: () => InfoCircleSolid,
|
|
@@ -3284,15 +3308,15 @@ var InfoToast = (props) => {
|
|
|
3284
3308
|
);
|
|
3285
3309
|
};
|
|
3286
3310
|
|
|
3287
|
-
// src/components/Icon/components/
|
|
3311
|
+
// src/components/Icon/components/EyeClosed.tsx
|
|
3288
3312
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3289
|
-
var
|
|
3313
|
+
var EyeClosed = (props) => {
|
|
3290
3314
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
3291
3315
|
"svg",
|
|
3292
3316
|
{
|
|
3293
|
-
width: "
|
|
3317
|
+
width: "24",
|
|
3294
3318
|
height: "24",
|
|
3295
|
-
viewBox: "0 0
|
|
3319
|
+
viewBox: "0 0 24 24",
|
|
3296
3320
|
fill: "none",
|
|
3297
3321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3298
3322
|
...props,
|
|
@@ -3300,15 +3324,41 @@ var UserSolid = (props) => {
|
|
|
3300
3324
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3301
3325
|
"path",
|
|
3302
3326
|
{
|
|
3303
|
-
d: "
|
|
3304
|
-
|
|
3327
|
+
d: "M19.4996 16L17.0244 12.6038",
|
|
3328
|
+
stroke: "currentColor",
|
|
3329
|
+
strokeWidth: "1.5",
|
|
3330
|
+
strokeLinecap: "round",
|
|
3331
|
+
strokeLinejoin: "round"
|
|
3305
3332
|
}
|
|
3306
3333
|
),
|
|
3307
3334
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3308
3335
|
"path",
|
|
3309
3336
|
{
|
|
3310
|
-
d: "
|
|
3311
|
-
|
|
3337
|
+
d: "M12 17.5V14",
|
|
3338
|
+
stroke: "currentColor",
|
|
3339
|
+
strokeWidth: "1.5",
|
|
3340
|
+
strokeLinecap: "round",
|
|
3341
|
+
strokeLinejoin: "round"
|
|
3342
|
+
}
|
|
3343
|
+
),
|
|
3344
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3345
|
+
"path",
|
|
3346
|
+
{
|
|
3347
|
+
d: "M4.5 16L6.96895 12.6124",
|
|
3348
|
+
stroke: "currentColor",
|
|
3349
|
+
strokeWidth: "1.5",
|
|
3350
|
+
strokeLinecap: "round",
|
|
3351
|
+
strokeLinejoin: "round"
|
|
3352
|
+
}
|
|
3353
|
+
),
|
|
3354
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3355
|
+
"path",
|
|
3356
|
+
{
|
|
3357
|
+
d: "M3 8C6.6 16 17.4 16 21 8",
|
|
3358
|
+
stroke: "currentColor",
|
|
3359
|
+
strokeWidth: "1.5",
|
|
3360
|
+
strokeLinecap: "round",
|
|
3361
|
+
strokeLinejoin: "round"
|
|
3312
3362
|
}
|
|
3313
3363
|
)
|
|
3314
3364
|
]
|
|
@@ -3316,15 +3366,15 @@ var UserSolid = (props) => {
|
|
|
3316
3366
|
);
|
|
3317
3367
|
};
|
|
3318
3368
|
|
|
3319
|
-
// src/components/Icon/components/
|
|
3369
|
+
// src/components/Icon/components/UserSolid.tsx
|
|
3320
3370
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3321
|
-
var
|
|
3371
|
+
var UserSolid = (props) => {
|
|
3322
3372
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3323
3373
|
"svg",
|
|
3324
3374
|
{
|
|
3325
|
-
width: "
|
|
3375
|
+
width: "19",
|
|
3326
3376
|
height: "24",
|
|
3327
|
-
viewBox: "0 0
|
|
3377
|
+
viewBox: "0 0 19 24",
|
|
3328
3378
|
fill: "none",
|
|
3329
3379
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3330
3380
|
...props,
|
|
@@ -3332,41 +3382,60 @@ var EyeClosed = (props) => {
|
|
|
3332
3382
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3333
3383
|
"path",
|
|
3334
3384
|
{
|
|
3335
|
-
d: "
|
|
3336
|
-
|
|
3337
|
-
strokeWidth: "1.5",
|
|
3338
|
-
strokeLinecap: "round",
|
|
3339
|
-
strokeLinejoin: "round"
|
|
3385
|
+
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",
|
|
3386
|
+
fill: "currentColor"
|
|
3340
3387
|
}
|
|
3341
3388
|
),
|
|
3342
3389
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3343
3390
|
"path",
|
|
3344
3391
|
{
|
|
3345
|
-
d: "
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3392
|
+
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",
|
|
3393
|
+
fill: "currentColor"
|
|
3394
|
+
}
|
|
3395
|
+
)
|
|
3396
|
+
]
|
|
3397
|
+
}
|
|
3398
|
+
);
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
// src/components/Icon/components/FilterList.tsx
|
|
3402
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3403
|
+
var FilterList = (props) => {
|
|
3404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
3405
|
+
"svg",
|
|
3406
|
+
{
|
|
3407
|
+
width: "24",
|
|
3408
|
+
height: "24",
|
|
3409
|
+
viewBox: "0 0 24 24",
|
|
3410
|
+
fill: "none",
|
|
3411
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3412
|
+
...props,
|
|
3413
|
+
children: [
|
|
3414
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3415
|
+
"path",
|
|
3416
|
+
{
|
|
3417
|
+
fillRule: "evenodd",
|
|
3418
|
+
clipRule: "evenodd",
|
|
3419
|
+
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",
|
|
3420
|
+
fill: "currentColor"
|
|
3350
3421
|
}
|
|
3351
3422
|
),
|
|
3352
|
-
/* @__PURE__ */ (0,
|
|
3423
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3353
3424
|
"path",
|
|
3354
3425
|
{
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
strokeLinejoin: "round"
|
|
3426
|
+
fillRule: "evenodd",
|
|
3427
|
+
clipRule: "evenodd",
|
|
3428
|
+
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",
|
|
3429
|
+
fill: "currentColor"
|
|
3360
3430
|
}
|
|
3361
3431
|
),
|
|
3362
|
-
/* @__PURE__ */ (0,
|
|
3432
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3363
3433
|
"path",
|
|
3364
3434
|
{
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
strokeLinejoin: "round"
|
|
3435
|
+
fillRule: "evenodd",
|
|
3436
|
+
clipRule: "evenodd",
|
|
3437
|
+
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",
|
|
3438
|
+
fill: "currentColor"
|
|
3370
3439
|
}
|
|
3371
3440
|
)
|
|
3372
3441
|
]
|
|
@@ -3375,9 +3444,9 @@ var EyeClosed = (props) => {
|
|
|
3375
3444
|
};
|
|
3376
3445
|
|
|
3377
3446
|
// src/components/Icon/components/ErrorToast.tsx
|
|
3378
|
-
var
|
|
3447
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3379
3448
|
var ErrorToast = (props) => {
|
|
3380
|
-
return /* @__PURE__ */ (0,
|
|
3449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3381
3450
|
"svg",
|
|
3382
3451
|
{
|
|
3383
3452
|
width: "30",
|
|
@@ -3387,8 +3456,8 @@ var ErrorToast = (props) => {
|
|
|
3387
3456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3388
3457
|
...props,
|
|
3389
3458
|
children: [
|
|
3390
|
-
/* @__PURE__ */ (0,
|
|
3391
|
-
/* @__PURE__ */ (0,
|
|
3459
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", stroke: "#EF4444", strokeOpacity: "0.1" }),
|
|
3460
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3392
3461
|
"rect",
|
|
3393
3462
|
{
|
|
3394
3463
|
x: "3.5",
|
|
@@ -3400,7 +3469,7 @@ var ErrorToast = (props) => {
|
|
|
3400
3469
|
"stroke-Opacity": "0.3"
|
|
3401
3470
|
}
|
|
3402
3471
|
),
|
|
3403
|
-
/* @__PURE__ */ (0,
|
|
3472
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3404
3473
|
"path",
|
|
3405
3474
|
{
|
|
3406
3475
|
fillRule: "evenodd",
|
|
@@ -3409,7 +3478,7 @@ var ErrorToast = (props) => {
|
|
|
3409
3478
|
fill: "#D93636"
|
|
3410
3479
|
}
|
|
3411
3480
|
),
|
|
3412
|
-
/* @__PURE__ */ (0,
|
|
3481
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
3413
3482
|
"path",
|
|
3414
3483
|
{
|
|
3415
3484
|
fillRule: "evenodd",
|
|
@@ -3424,9 +3493,9 @@ var ErrorToast = (props) => {
|
|
|
3424
3493
|
};
|
|
3425
3494
|
|
|
3426
3495
|
// src/components/Icon/components/KeyCommand.tsx
|
|
3427
|
-
var
|
|
3496
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
3428
3497
|
var KeyCommand = (props) => {
|
|
3429
|
-
return /* @__PURE__ */ (0,
|
|
3498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
3430
3499
|
"svg",
|
|
3431
3500
|
{
|
|
3432
3501
|
width: "14",
|
|
@@ -3436,7 +3505,7 @@ var KeyCommand = (props) => {
|
|
|
3436
3505
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3437
3506
|
...props,
|
|
3438
3507
|
children: [
|
|
3439
|
-
/* @__PURE__ */ (0,
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3440
3509
|
"path",
|
|
3441
3510
|
{
|
|
3442
3511
|
d: "M5.25 3.5V10.5",
|
|
@@ -3446,7 +3515,7 @@ var KeyCommand = (props) => {
|
|
|
3446
3515
|
strokeLinejoin: "round"
|
|
3447
3516
|
}
|
|
3448
3517
|
),
|
|
3449
|
-
/* @__PURE__ */ (0,
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3450
3519
|
"path",
|
|
3451
3520
|
{
|
|
3452
3521
|
d: "M8.75 3.5V10.5",
|
|
@@ -3456,7 +3525,7 @@ var KeyCommand = (props) => {
|
|
|
3456
3525
|
strokeLinejoin: "round"
|
|
3457
3526
|
}
|
|
3458
3527
|
),
|
|
3459
|
-
/* @__PURE__ */ (0,
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3460
3529
|
"path",
|
|
3461
3530
|
{
|
|
3462
3531
|
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",
|
|
@@ -3466,7 +3535,7 @@ var KeyCommand = (props) => {
|
|
|
3466
3535
|
strokeLinejoin: "round"
|
|
3467
3536
|
}
|
|
3468
3537
|
),
|
|
3469
|
-
/* @__PURE__ */ (0,
|
|
3538
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
3470
3539
|
"path",
|
|
3471
3540
|
{
|
|
3472
3541
|
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",
|
|
@@ -3482,9 +3551,9 @@ var KeyCommand = (props) => {
|
|
|
3482
3551
|
};
|
|
3483
3552
|
|
|
3484
3553
|
// src/components/Icon/components/XMarkSolid.tsx
|
|
3485
|
-
var
|
|
3554
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3486
3555
|
var XMarkSolid = (props) => {
|
|
3487
|
-
return /* @__PURE__ */ (0,
|
|
3556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3488
3557
|
"svg",
|
|
3489
3558
|
{
|
|
3490
3559
|
width: "24",
|
|
@@ -3493,7 +3562,7 @@ var XMarkSolid = (props) => {
|
|
|
3493
3562
|
fill: "none",
|
|
3494
3563
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3495
3564
|
...props,
|
|
3496
|
-
children: /* @__PURE__ */ (0,
|
|
3565
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
3497
3566
|
"path",
|
|
3498
3567
|
{
|
|
3499
3568
|
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",
|
|
@@ -3505,9 +3574,9 @@ var XMarkSolid = (props) => {
|
|
|
3505
3574
|
};
|
|
3506
3575
|
|
|
3507
3576
|
// src/components/Icon/components/Attachment.tsx
|
|
3508
|
-
var
|
|
3577
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
3509
3578
|
var Attachment = (props) => {
|
|
3510
|
-
return /* @__PURE__ */ (0,
|
|
3579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3511
3580
|
"svg",
|
|
3512
3581
|
{
|
|
3513
3582
|
width: "20",
|
|
@@ -3516,7 +3585,7 @@ var Attachment = (props) => {
|
|
|
3516
3585
|
fill: "none",
|
|
3517
3586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3518
3587
|
...props,
|
|
3519
|
-
children: /* @__PURE__ */ (0,
|
|
3588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
3520
3589
|
"path",
|
|
3521
3590
|
{
|
|
3522
3591
|
fillRule: "evenodd",
|
|
@@ -3530,9 +3599,9 @@ var Attachment = (props) => {
|
|
|
3530
3599
|
};
|
|
3531
3600
|
|
|
3532
3601
|
// src/components/Icon/components/HelpCircle.tsx
|
|
3533
|
-
var
|
|
3602
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
3534
3603
|
var HelpCircle = (props) => {
|
|
3535
|
-
return /* @__PURE__ */ (0,
|
|
3604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
3536
3605
|
"svg",
|
|
3537
3606
|
{
|
|
3538
3607
|
width: "16",
|
|
@@ -3542,8 +3611,8 @@ var HelpCircle = (props) => {
|
|
|
3542
3611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3543
3612
|
...props,
|
|
3544
3613
|
children: [
|
|
3545
|
-
/* @__PURE__ */ (0,
|
|
3546
|
-
/* @__PURE__ */ (0,
|
|
3614
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("g", { "clip-path": "url(#clip0_2471_10977)", children: [
|
|
3615
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3547
3616
|
"path",
|
|
3548
3617
|
{
|
|
3549
3618
|
fillRule: "evenodd",
|
|
@@ -3552,7 +3621,7 @@ var HelpCircle = (props) => {
|
|
|
3552
3621
|
fill: "currentColor"
|
|
3553
3622
|
}
|
|
3554
3623
|
),
|
|
3555
|
-
/* @__PURE__ */ (0,
|
|
3624
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3556
3625
|
"path",
|
|
3557
3626
|
{
|
|
3558
3627
|
fillRule: "evenodd",
|
|
@@ -3561,7 +3630,7 @@ var HelpCircle = (props) => {
|
|
|
3561
3630
|
fill: "currentColor"
|
|
3562
3631
|
}
|
|
3563
3632
|
),
|
|
3564
|
-
/* @__PURE__ */ (0,
|
|
3633
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
3565
3634
|
"path",
|
|
3566
3635
|
{
|
|
3567
3636
|
fillRule: "evenodd",
|
|
@@ -3571,16 +3640,16 @@ var HelpCircle = (props) => {
|
|
|
3571
3640
|
}
|
|
3572
3641
|
)
|
|
3573
3642
|
] }),
|
|
3574
|
-
/* @__PURE__ */ (0,
|
|
3643
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("clipPath", { id: "clip0_2471_10977", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3575
3644
|
]
|
|
3576
3645
|
}
|
|
3577
3646
|
);
|
|
3578
3647
|
};
|
|
3579
3648
|
|
|
3580
3649
|
// src/components/Icon/components/PlusSquare.tsx
|
|
3581
|
-
var
|
|
3650
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
3582
3651
|
var PlusSquare = (props) => {
|
|
3583
|
-
return /* @__PURE__ */ (0,
|
|
3652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
3584
3653
|
"svg",
|
|
3585
3654
|
{
|
|
3586
3655
|
width: "18",
|
|
@@ -3590,7 +3659,7 @@ var PlusSquare = (props) => {
|
|
|
3590
3659
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3591
3660
|
...props,
|
|
3592
3661
|
children: [
|
|
3593
|
-
/* @__PURE__ */ (0,
|
|
3662
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3594
3663
|
"path",
|
|
3595
3664
|
{
|
|
3596
3665
|
fillRule: "evenodd",
|
|
@@ -3599,7 +3668,7 @@ var PlusSquare = (props) => {
|
|
|
3599
3668
|
fill: "currentColor"
|
|
3600
3669
|
}
|
|
3601
3670
|
),
|
|
3602
|
-
/* @__PURE__ */ (0,
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3603
3672
|
"path",
|
|
3604
3673
|
{
|
|
3605
3674
|
fillRule: "evenodd",
|
|
@@ -3614,9 +3683,9 @@ var PlusSquare = (props) => {
|
|
|
3614
3683
|
};
|
|
3615
3684
|
|
|
3616
3685
|
// src/components/Icon/components/InfoCircle.tsx
|
|
3617
|
-
var
|
|
3686
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
3618
3687
|
var InfoCircle = (props) => {
|
|
3619
|
-
return /* @__PURE__ */ (0,
|
|
3688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
3620
3689
|
"svg",
|
|
3621
3690
|
{
|
|
3622
3691
|
width: "16",
|
|
@@ -3626,8 +3695,8 @@ var InfoCircle = (props) => {
|
|
|
3626
3695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3627
3696
|
...props,
|
|
3628
3697
|
children: [
|
|
3629
|
-
/* @__PURE__ */ (0,
|
|
3630
|
-
/* @__PURE__ */ (0,
|
|
3698
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("g", { "clip-path": "url(#clip0_1881_10590)", children: [
|
|
3699
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3631
3700
|
"path",
|
|
3632
3701
|
{
|
|
3633
3702
|
fillRule: "evenodd",
|
|
@@ -3636,7 +3705,7 @@ var InfoCircle = (props) => {
|
|
|
3636
3705
|
fill: "currentColor"
|
|
3637
3706
|
}
|
|
3638
3707
|
),
|
|
3639
|
-
/* @__PURE__ */ (0,
|
|
3708
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3640
3709
|
"path",
|
|
3641
3710
|
{
|
|
3642
3711
|
fillRule: "evenodd",
|
|
@@ -3645,7 +3714,7 @@ var InfoCircle = (props) => {
|
|
|
3645
3714
|
fill: "currentColor"
|
|
3646
3715
|
}
|
|
3647
3716
|
),
|
|
3648
|
-
/* @__PURE__ */ (0,
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
3649
3718
|
"path",
|
|
3650
3719
|
{
|
|
3651
3720
|
fillRule: "evenodd",
|
|
@@ -3655,16 +3724,16 @@ var InfoCircle = (props) => {
|
|
|
3655
3724
|
}
|
|
3656
3725
|
)
|
|
3657
3726
|
] }),
|
|
3658
|
-
/* @__PURE__ */ (0,
|
|
3727
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("clipPath", { id: "clip0_1881_10590", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
3659
3728
|
]
|
|
3660
3729
|
}
|
|
3661
3730
|
);
|
|
3662
3731
|
};
|
|
3663
3732
|
|
|
3664
3733
|
// src/components/Icon/components/CloudUpload.tsx
|
|
3665
|
-
var
|
|
3734
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
3666
3735
|
var CloudUpload = (props) => {
|
|
3667
|
-
return /* @__PURE__ */ (0,
|
|
3736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
3668
3737
|
"svg",
|
|
3669
3738
|
{
|
|
3670
3739
|
width: "32",
|
|
@@ -3674,7 +3743,7 @@ var CloudUpload = (props) => {
|
|
|
3674
3743
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3675
3744
|
...props,
|
|
3676
3745
|
children: [
|
|
3677
|
-
/* @__PURE__ */ (0,
|
|
3746
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3678
3747
|
"path",
|
|
3679
3748
|
{
|
|
3680
3749
|
d: "M16.0007 29.3333V17.3333M16.0007 17.3333L20.6673 21.9999M16.0007 17.3333L11.334 21.9999",
|
|
@@ -3684,7 +3753,7 @@ var CloudUpload = (props) => {
|
|
|
3684
3753
|
strokeLinejoin: "round"
|
|
3685
3754
|
}
|
|
3686
3755
|
),
|
|
3687
|
-
/* @__PURE__ */ (0,
|
|
3756
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3688
3757
|
"path",
|
|
3689
3758
|
{
|
|
3690
3759
|
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",
|
|
@@ -3700,9 +3769,9 @@ var CloudUpload = (props) => {
|
|
|
3700
3769
|
};
|
|
3701
3770
|
|
|
3702
3771
|
// src/components/Icon/components/RadioSelect.tsx
|
|
3703
|
-
var
|
|
3772
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
3704
3773
|
var RadioSelect = (props) => {
|
|
3705
|
-
return /* @__PURE__ */ (0,
|
|
3774
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
3706
3775
|
"svg",
|
|
3707
3776
|
{
|
|
3708
3777
|
width: "17",
|
|
@@ -3711,15 +3780,15 @@ var RadioSelect = (props) => {
|
|
|
3711
3780
|
fill: "none",
|
|
3712
3781
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3713
3782
|
...props,
|
|
3714
|
-
children: /* @__PURE__ */ (0,
|
|
3783
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("rect", { x: "2.5", y: "2", width: "12", height: "12", rx: "6", stroke: "currentColor", strokeWidth: "4" })
|
|
3715
3784
|
}
|
|
3716
3785
|
);
|
|
3717
3786
|
};
|
|
3718
3787
|
|
|
3719
3788
|
// src/components/Icon/components/SuccessToast.tsx
|
|
3720
|
-
var
|
|
3789
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
3721
3790
|
var SuccessToast = (props) => {
|
|
3722
|
-
return /* @__PURE__ */ (0,
|
|
3791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
3723
3792
|
"svg",
|
|
3724
3793
|
{
|
|
3725
3794
|
width: "30",
|
|
@@ -3729,7 +3798,7 @@ var SuccessToast = (props) => {
|
|
|
3729
3798
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3730
3799
|
...props,
|
|
3731
3800
|
children: [
|
|
3732
|
-
/* @__PURE__ */ (0,
|
|
3801
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3733
3802
|
"rect",
|
|
3734
3803
|
{
|
|
3735
3804
|
x: "0.5",
|
|
@@ -3741,8 +3810,8 @@ var SuccessToast = (props) => {
|
|
|
3741
3810
|
"stroke-opacity": "0.1"
|
|
3742
3811
|
}
|
|
3743
3812
|
),
|
|
3744
|
-
/* @__PURE__ */ (0,
|
|
3745
|
-
/* @__PURE__ */ (0,
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#22C55E", strokeOpacity: "0.3" }),
|
|
3814
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3746
3815
|
"path",
|
|
3747
3816
|
{
|
|
3748
3817
|
fillRule: "evenodd",
|
|
@@ -3751,7 +3820,7 @@ var SuccessToast = (props) => {
|
|
|
3751
3820
|
fill: "#1AB04F"
|
|
3752
3821
|
}
|
|
3753
3822
|
),
|
|
3754
|
-
/* @__PURE__ */ (0,
|
|
3823
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
3755
3824
|
"path",
|
|
3756
3825
|
{
|
|
3757
3826
|
fillRule: "evenodd",
|
|
@@ -3766,9 +3835,9 @@ var SuccessToast = (props) => {
|
|
|
3766
3835
|
};
|
|
3767
3836
|
|
|
3768
3837
|
// src/components/Icon/components/WarningToast.tsx
|
|
3769
|
-
var
|
|
3838
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3770
3839
|
var WarningToast = (props) => {
|
|
3771
|
-
return /* @__PURE__ */ (0,
|
|
3840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
3772
3841
|
"svg",
|
|
3773
3842
|
{
|
|
3774
3843
|
width: "30",
|
|
@@ -3778,18 +3847,18 @@ var WarningToast = (props) => {
|
|
|
3778
3847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3779
3848
|
...props,
|
|
3780
3849
|
children: [
|
|
3781
|
-
/* @__PURE__ */ (0,
|
|
3782
|
-
/* @__PURE__ */ (0,
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3850
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("rect", { x: "0.5", y: "0.5", width: "29", height: "29", rx: "14.5", stroke: "#F59E0B", strokeOpacity: "0.1" }),
|
|
3851
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("rect", { x: "3.5", y: "3.5", width: "23", height: "23", rx: "11.5", stroke: "#F59E0B", strokeOpacity: "0.3" }),
|
|
3852
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3784
3853
|
"path",
|
|
3785
3854
|
{
|
|
3786
|
-
|
|
3787
|
-
|
|
3855
|
+
fillRule: "evenodd",
|
|
3856
|
+
clipRule: "evenodd",
|
|
3788
3857
|
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",
|
|
3789
3858
|
fill: "#DB8709"
|
|
3790
3859
|
}
|
|
3791
3860
|
),
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3793
3862
|
"path",
|
|
3794
3863
|
{
|
|
3795
3864
|
fillRule: "evenodd",
|
|
@@ -3798,7 +3867,7 @@ var WarningToast = (props) => {
|
|
|
3798
3867
|
fill: "#DB8709"
|
|
3799
3868
|
}
|
|
3800
3869
|
),
|
|
3801
|
-
/* @__PURE__ */ (0,
|
|
3870
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3802
3871
|
"path",
|
|
3803
3872
|
{
|
|
3804
3873
|
fillRule: "evenodd",
|
|
@@ -3813,9 +3882,9 @@ var WarningToast = (props) => {
|
|
|
3813
3882
|
};
|
|
3814
3883
|
|
|
3815
3884
|
// src/components/Icon/components/RadioDefault.tsx
|
|
3816
|
-
var
|
|
3885
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3817
3886
|
var RadioDefault = (props) => {
|
|
3818
|
-
return /* @__PURE__ */ (0,
|
|
3887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3819
3888
|
"svg",
|
|
3820
3889
|
{
|
|
3821
3890
|
width: "16",
|
|
@@ -3824,15 +3893,15 @@ var RadioDefault = (props) => {
|
|
|
3824
3893
|
fill: "none",
|
|
3825
3894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3826
3895
|
...props,
|
|
3827
|
-
children: /* @__PURE__ */ (0,
|
|
3896
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "7.5", stroke: "currentColor" })
|
|
3828
3897
|
}
|
|
3829
3898
|
);
|
|
3830
3899
|
};
|
|
3831
3900
|
|
|
3832
3901
|
// src/components/Icon/components/NavArrowDown.tsx
|
|
3833
|
-
var
|
|
3902
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3834
3903
|
var NavArrowDown = (props) => {
|
|
3835
|
-
return /* @__PURE__ */ (0,
|
|
3904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
3836
3905
|
"svg",
|
|
3837
3906
|
{
|
|
3838
3907
|
width: "16",
|
|
@@ -3842,7 +3911,7 @@ var NavArrowDown = (props) => {
|
|
|
3842
3911
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3843
3912
|
...props,
|
|
3844
3913
|
children: [
|
|
3845
|
-
/* @__PURE__ */ (0,
|
|
3914
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3846
3915
|
"path",
|
|
3847
3916
|
{
|
|
3848
3917
|
d: "M4 6L8 10L12 6",
|
|
@@ -3852,7 +3921,7 @@ var NavArrowDown = (props) => {
|
|
|
3852
3921
|
strokeLinejoin: "round"
|
|
3853
3922
|
}
|
|
3854
3923
|
),
|
|
3855
|
-
/* @__PURE__ */ (0,
|
|
3924
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3856
3925
|
"path",
|
|
3857
3926
|
{
|
|
3858
3927
|
fillRule: "evenodd",
|
|
@@ -3867,9 +3936,9 @@ var NavArrowDown = (props) => {
|
|
|
3867
3936
|
};
|
|
3868
3937
|
|
|
3869
3938
|
// src/components/Icon/components/NavArrowLeft.tsx
|
|
3870
|
-
var
|
|
3939
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3871
3940
|
var NavArrowLeft = (props) => {
|
|
3872
|
-
return /* @__PURE__ */ (0,
|
|
3941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3873
3942
|
"svg",
|
|
3874
3943
|
{
|
|
3875
3944
|
width: "25",
|
|
@@ -3878,7 +3947,7 @@ var NavArrowLeft = (props) => {
|
|
|
3878
3947
|
fill: "none",
|
|
3879
3948
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3880
3949
|
...props,
|
|
3881
|
-
children: /* @__PURE__ */ (0,
|
|
3950
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
3882
3951
|
"path",
|
|
3883
3952
|
{
|
|
3884
3953
|
fillRule: "evenodd",
|
|
@@ -3892,9 +3961,9 @@ var NavArrowLeft = (props) => {
|
|
|
3892
3961
|
};
|
|
3893
3962
|
|
|
3894
3963
|
// src/components/Icon/components/NavArrowRight.tsx
|
|
3895
|
-
var
|
|
3964
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3896
3965
|
var NavArrowRight = (props) => {
|
|
3897
|
-
return /* @__PURE__ */ (0,
|
|
3966
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3898
3967
|
"svg",
|
|
3899
3968
|
{
|
|
3900
3969
|
width: "25",
|
|
@@ -3903,7 +3972,7 @@ var NavArrowRight = (props) => {
|
|
|
3903
3972
|
fill: "none",
|
|
3904
3973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3905
3974
|
...props,
|
|
3906
|
-
children: /* @__PURE__ */ (0,
|
|
3975
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3907
3976
|
"path",
|
|
3908
3977
|
{
|
|
3909
3978
|
fillRule: "evenodd",
|
|
@@ -3917,9 +3986,9 @@ var NavArrowRight = (props) => {
|
|
|
3917
3986
|
};
|
|
3918
3987
|
|
|
3919
3988
|
// src/components/Icon/components/ClipboardCheck.tsx
|
|
3920
|
-
var
|
|
3989
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3921
3990
|
var ClipboardCheck = (props) => {
|
|
3922
|
-
return /* @__PURE__ */ (0,
|
|
3991
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3923
3992
|
"svg",
|
|
3924
3993
|
{
|
|
3925
3994
|
width: "24",
|
|
@@ -3929,7 +3998,7 @@ var ClipboardCheck = (props) => {
|
|
|
3929
3998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3930
3999
|
...props,
|
|
3931
4000
|
children: [
|
|
3932
|
-
/* @__PURE__ */ (0,
|
|
4001
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3933
4002
|
"path",
|
|
3934
4003
|
{
|
|
3935
4004
|
fillRule: "evenodd",
|
|
@@ -3938,7 +4007,7 @@ var ClipboardCheck = (props) => {
|
|
|
3938
4007
|
fill: "currentColor"
|
|
3939
4008
|
}
|
|
3940
4009
|
),
|
|
3941
|
-
/* @__PURE__ */ (0,
|
|
4010
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3942
4011
|
"path",
|
|
3943
4012
|
{
|
|
3944
4013
|
fillRule: "evenodd",
|
|
@@ -3947,7 +4016,7 @@ var ClipboardCheck = (props) => {
|
|
|
3947
4016
|
fill: "currentColor"
|
|
3948
4017
|
}
|
|
3949
4018
|
),
|
|
3950
|
-
/* @__PURE__ */ (0,
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3951
4020
|
"path",
|
|
3952
4021
|
{
|
|
3953
4022
|
fillRule: "evenodd",
|
|
@@ -3956,7 +4025,7 @@ var ClipboardCheck = (props) => {
|
|
|
3956
4025
|
fill: "currentColor"
|
|
3957
4026
|
}
|
|
3958
4027
|
),
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
4028
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3960
4029
|
"path",
|
|
3961
4030
|
{
|
|
3962
4031
|
fillRule: "evenodd",
|
|
@@ -3971,9 +4040,9 @@ var ClipboardCheck = (props) => {
|
|
|
3971
4040
|
};
|
|
3972
4041
|
|
|
3973
4042
|
// src/components/Icon/components/CheckboxSelect.tsx
|
|
3974
|
-
var
|
|
4043
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3975
4044
|
var CheckboxSelect = (props) => {
|
|
3976
|
-
return /* @__PURE__ */ (0,
|
|
4045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
3977
4046
|
"svg",
|
|
3978
4047
|
{
|
|
3979
4048
|
width: "24",
|
|
@@ -3983,14 +4052,14 @@ var CheckboxSelect = (props) => {
|
|
|
3983
4052
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3984
4053
|
...props,
|
|
3985
4054
|
children: [
|
|
3986
|
-
/* @__PURE__ */ (0,
|
|
4055
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3987
4056
|
"path",
|
|
3988
4057
|
{
|
|
3989
4058
|
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",
|
|
3990
4059
|
fill: "currentColor"
|
|
3991
4060
|
}
|
|
3992
4061
|
),
|
|
3993
|
-
/* @__PURE__ */ (0,
|
|
4062
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
3994
4063
|
"path",
|
|
3995
4064
|
{
|
|
3996
4065
|
d: "M6.16602 12.8333L9.49935 16.1666L17.8327 7.83331",
|
|
@@ -4006,9 +4075,9 @@ var CheckboxSelect = (props) => {
|
|
|
4006
4075
|
};
|
|
4007
4076
|
|
|
4008
4077
|
// src/components/Icon/components/InfoCircleSolid.tsx
|
|
4009
|
-
var
|
|
4078
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4010
4079
|
var InfoCircleSolid = (props) => {
|
|
4011
|
-
return /* @__PURE__ */ (0,
|
|
4080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4012
4081
|
"svg",
|
|
4013
4082
|
{
|
|
4014
4083
|
width: "20",
|
|
@@ -4017,7 +4086,7 @@ var InfoCircleSolid = (props) => {
|
|
|
4017
4086
|
fill: "none",
|
|
4018
4087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4019
4088
|
...props,
|
|
4020
|
-
children: /* @__PURE__ */ (0,
|
|
4089
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4021
4090
|
"path",
|
|
4022
4091
|
{
|
|
4023
4092
|
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",
|
|
@@ -4029,9 +4098,9 @@ var InfoCircleSolid = (props) => {
|
|
|
4029
4098
|
};
|
|
4030
4099
|
|
|
4031
4100
|
// src/components/Icon/components/CheckboxDefault.tsx
|
|
4032
|
-
var
|
|
4101
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
4033
4102
|
var CheckboxDefault = (props) => {
|
|
4034
|
-
return /* @__PURE__ */ (0,
|
|
4103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4035
4104
|
"svg",
|
|
4036
4105
|
{
|
|
4037
4106
|
width: "24",
|
|
@@ -4040,7 +4109,7 @@ var CheckboxDefault = (props) => {
|
|
|
4040
4109
|
fill: "none",
|
|
4041
4110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4042
4111
|
...props,
|
|
4043
|
-
children: /* @__PURE__ */ (0,
|
|
4112
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
4044
4113
|
"path",
|
|
4045
4114
|
{
|
|
4046
4115
|
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",
|
|
@@ -4052,9 +4121,9 @@ var CheckboxDefault = (props) => {
|
|
|
4052
4121
|
};
|
|
4053
4122
|
|
|
4054
4123
|
// src/components/Icon/components/CheckCircleSolid.tsx
|
|
4055
|
-
var
|
|
4124
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4056
4125
|
var CheckCircleSolid = (props) => {
|
|
4057
|
-
return /* @__PURE__ */ (0,
|
|
4126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4058
4127
|
"svg",
|
|
4059
4128
|
{
|
|
4060
4129
|
width: "24",
|
|
@@ -4063,7 +4132,7 @@ var CheckCircleSolid = (props) => {
|
|
|
4063
4132
|
fill: "none",
|
|
4064
4133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4065
4134
|
...props,
|
|
4066
|
-
children: /* @__PURE__ */ (0,
|
|
4135
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4067
4136
|
"path",
|
|
4068
4137
|
{
|
|
4069
4138
|
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",
|
|
@@ -4075,9 +4144,9 @@ var CheckCircleSolid = (props) => {
|
|
|
4075
4144
|
};
|
|
4076
4145
|
|
|
4077
4146
|
// src/components/Icon/components/BellNotification.tsx
|
|
4078
|
-
var
|
|
4147
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
4079
4148
|
var BellNotification = (props) => {
|
|
4080
|
-
return /* @__PURE__ */ (0,
|
|
4149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
4081
4150
|
"svg",
|
|
4082
4151
|
{
|
|
4083
4152
|
width: "20",
|
|
@@ -4087,7 +4156,7 @@ var BellNotification = (props) => {
|
|
|
4087
4156
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4088
4157
|
...props,
|
|
4089
4158
|
children: [
|
|
4090
|
-
/* @__PURE__ */ (0,
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4091
4160
|
"path",
|
|
4092
4161
|
{
|
|
4093
4162
|
fillRule: "evenodd",
|
|
@@ -4096,7 +4165,7 @@ var BellNotification = (props) => {
|
|
|
4096
4165
|
fill: "currentColor"
|
|
4097
4166
|
}
|
|
4098
4167
|
),
|
|
4099
|
-
/* @__PURE__ */ (0,
|
|
4168
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4100
4169
|
"path",
|
|
4101
4170
|
{
|
|
4102
4171
|
fillRule: "evenodd",
|
|
@@ -4105,7 +4174,7 @@ var BellNotification = (props) => {
|
|
|
4105
4174
|
fill: "currentColor"
|
|
4106
4175
|
}
|
|
4107
4176
|
),
|
|
4108
|
-
/* @__PURE__ */ (0,
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4109
4178
|
"path",
|
|
4110
4179
|
{
|
|
4111
4180
|
fillRule: "evenodd",
|
|
@@ -4114,7 +4183,7 @@ var BellNotification = (props) => {
|
|
|
4114
4183
|
fill: "currentColor"
|
|
4115
4184
|
}
|
|
4116
4185
|
),
|
|
4117
|
-
/* @__PURE__ */ (0,
|
|
4186
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
4118
4187
|
"path",
|
|
4119
4188
|
{
|
|
4120
4189
|
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",
|
|
@@ -4127,9 +4196,9 @@ var BellNotification = (props) => {
|
|
|
4127
4196
|
};
|
|
4128
4197
|
|
|
4129
4198
|
// src/components/Icon/components/NavArrowDownSolid.tsx
|
|
4130
|
-
var
|
|
4199
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
4131
4200
|
var NavArrowDownSolid = (props) => {
|
|
4132
|
-
return /* @__PURE__ */ (0,
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4133
4202
|
"svg",
|
|
4134
4203
|
{
|
|
4135
4204
|
width: "24",
|
|
@@ -4138,7 +4207,7 @@ var NavArrowDownSolid = (props) => {
|
|
|
4138
4207
|
fill: "none",
|
|
4139
4208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4140
4209
|
...props,
|
|
4141
|
-
children: /* @__PURE__ */ (0,
|
|
4210
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
4142
4211
|
"path",
|
|
4143
4212
|
{
|
|
4144
4213
|
fillRule: "evenodd",
|
|
@@ -4152,9 +4221,9 @@ var NavArrowDownSolid = (props) => {
|
|
|
4152
4221
|
};
|
|
4153
4222
|
|
|
4154
4223
|
// src/components/Icon/components/LongArrowUpLeftSolid.tsx
|
|
4155
|
-
var
|
|
4224
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
4156
4225
|
var LongArrowUpLeftSolid = (props) => {
|
|
4157
|
-
return /* @__PURE__ */ (0,
|
|
4226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
4158
4227
|
"svg",
|
|
4159
4228
|
{
|
|
4160
4229
|
width: "24",
|
|
@@ -4164,7 +4233,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4164
4233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4165
4234
|
...props,
|
|
4166
4235
|
children: [
|
|
4167
|
-
/* @__PURE__ */ (0,
|
|
4236
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4168
4237
|
"path",
|
|
4169
4238
|
{
|
|
4170
4239
|
fillRule: "evenodd",
|
|
@@ -4173,7 +4242,7 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4173
4242
|
fill: "currentColor"
|
|
4174
4243
|
}
|
|
4175
4244
|
),
|
|
4176
|
-
/* @__PURE__ */ (0,
|
|
4245
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
4177
4246
|
"path",
|
|
4178
4247
|
{
|
|
4179
4248
|
fillRule: "evenodd",
|
|
@@ -4188,9 +4257,9 @@ var LongArrowUpLeftSolid = (props) => {
|
|
|
4188
4257
|
};
|
|
4189
4258
|
|
|
4190
4259
|
// src/components/Icon/components/CheckboxIndeterminate.tsx
|
|
4191
|
-
var
|
|
4260
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4192
4261
|
var CheckboxIndeterminate = (props) => {
|
|
4193
|
-
return /* @__PURE__ */ (0,
|
|
4262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4194
4263
|
"svg",
|
|
4195
4264
|
{
|
|
4196
4265
|
width: "24",
|
|
@@ -4200,14 +4269,14 @@ var CheckboxIndeterminate = (props) => {
|
|
|
4200
4269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4201
4270
|
...props,
|
|
4202
4271
|
children: [
|
|
4203
|
-
/* @__PURE__ */ (0,
|
|
4272
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4204
4273
|
"path",
|
|
4205
4274
|
{
|
|
4206
4275
|
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",
|
|
4207
4276
|
fill: "currentColor"
|
|
4208
4277
|
}
|
|
4209
4278
|
),
|
|
4210
|
-
/* @__PURE__ */ (0,
|
|
4279
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("path", { d: "M6 12H18", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round" })
|
|
4211
4280
|
]
|
|
4212
4281
|
}
|
|
4213
4282
|
);
|
|
@@ -4219,10 +4288,10 @@ var iconClasses = {
|
|
|
4219
4288
|
};
|
|
4220
4289
|
|
|
4221
4290
|
// src/components/Icon/icon.tsx
|
|
4222
|
-
var
|
|
4291
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4223
4292
|
var Icon = ({ icon: icon2, className, ...props }) => {
|
|
4224
4293
|
const IconComponent = components_exports[icon2];
|
|
4225
|
-
return /* @__PURE__ */ (0,
|
|
4294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4226
4295
|
import_Box.default,
|
|
4227
4296
|
{
|
|
4228
4297
|
component: IconComponent,
|
|
@@ -4233,7 +4302,7 @@ var Icon = ({ icon: icon2, className, ...props }) => {
|
|
|
4233
4302
|
};
|
|
4234
4303
|
|
|
4235
4304
|
// src/theme/core/components/alert.tsx
|
|
4236
|
-
var
|
|
4305
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
4237
4306
|
var COLORS2 = ["info", "success", "warning", "error"];
|
|
4238
4307
|
function styleColors2(ownerState, styles) {
|
|
4239
4308
|
const outputStyle = COLORS2.reduce((acc, color) => {
|
|
@@ -4251,10 +4320,10 @@ var MuiAlert = {
|
|
|
4251
4320
|
defaultProps: {
|
|
4252
4321
|
variant: "standard",
|
|
4253
4322
|
iconMapping: {
|
|
4254
|
-
error: /* @__PURE__ */ (0,
|
|
4255
|
-
info: /* @__PURE__ */ (0,
|
|
4256
|
-
success: /* @__PURE__ */ (0,
|
|
4257
|
-
warning: /* @__PURE__ */ (0,
|
|
4323
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4324
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4325
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "InfoCircleSolid" }),
|
|
4326
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { icon: "InfoCircleSolid" })
|
|
4258
4327
|
}
|
|
4259
4328
|
},
|
|
4260
4329
|
/** **************************************
|
|
@@ -4463,7 +4532,7 @@ var badge = { MuiBadge };
|
|
|
4463
4532
|
|
|
4464
4533
|
// src/theme/core/components/radio.tsx
|
|
4465
4534
|
var import_Radio = require("@mui/material/Radio");
|
|
4466
|
-
var
|
|
4535
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4467
4536
|
var MuiRadio = {
|
|
4468
4537
|
/** **************************************
|
|
4469
4538
|
* DEFAULT PROPS
|
|
@@ -4472,8 +4541,8 @@ var MuiRadio = {
|
|
|
4472
4541
|
color: "default",
|
|
4473
4542
|
size: "small",
|
|
4474
4543
|
disableRipple: true,
|
|
4475
|
-
icon: /* @__PURE__ */ (0,
|
|
4476
|
-
checkedIcon: /* @__PURE__ */ (0,
|
|
4544
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "RadioDefault" }),
|
|
4545
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon, { icon: "RadioSelect" })
|
|
4477
4546
|
},
|
|
4478
4547
|
/** **************************************
|
|
4479
4548
|
* STYLE
|
|
@@ -4541,8 +4610,9 @@ var MuiDialog = {
|
|
|
4541
4610
|
*************************************** */
|
|
4542
4611
|
styleOverrides: {
|
|
4543
4612
|
paper: ({ ownerState, theme }) => ({
|
|
4613
|
+
position: "relative",
|
|
4544
4614
|
boxShadow: theme.customShadows["shadow-sm"],
|
|
4545
|
-
borderRadius:
|
|
4615
|
+
borderRadius: theme.radius["radius-3xl"],
|
|
4546
4616
|
...!ownerState.fullScreen && { margin: theme.spacing(2) }
|
|
4547
4617
|
}),
|
|
4548
4618
|
paperFullScreen: { borderRadius: 0 }
|
|
@@ -4776,13 +4846,13 @@ var MuiDrawer = {
|
|
|
4776
4846
|
var drawer = { MuiDrawer };
|
|
4777
4847
|
|
|
4778
4848
|
// src/theme/core/components/select.tsx
|
|
4779
|
-
var
|
|
4849
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4780
4850
|
var MuiSelect = {
|
|
4781
4851
|
/** **************************************
|
|
4782
4852
|
* DEFAULT PROPS
|
|
4783
4853
|
*************************************** */
|
|
4784
4854
|
defaultProps: {
|
|
4785
|
-
IconComponent: () => /* @__PURE__ */ (0,
|
|
4855
|
+
IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4786
4856
|
}
|
|
4787
4857
|
};
|
|
4788
4858
|
var MuiNativeSelect = {
|
|
@@ -4790,7 +4860,7 @@ var MuiNativeSelect = {
|
|
|
4790
4860
|
* DEFAULT PROPS
|
|
4791
4861
|
*************************************** */
|
|
4792
4862
|
defaultProps: {
|
|
4793
|
-
IconComponent: () => /* @__PURE__ */ (0,
|
|
4863
|
+
IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Icon, { icon: "NavArrowDown", sx: { width: 18, height: 18, position: "absolute", right: 10 } })
|
|
4794
4864
|
}
|
|
4795
4865
|
};
|
|
4796
4866
|
var select = { MuiSelect, MuiNativeSelect };
|
|
@@ -4798,13 +4868,13 @@ var select = { MuiSelect, MuiNativeSelect };
|
|
|
4798
4868
|
// src/theme/core/components/rating.tsx
|
|
4799
4869
|
var import_Rating = require("@mui/material/Rating");
|
|
4800
4870
|
var import_SvgIcon = __toESM(require("@mui/material/SvgIcon"), 1);
|
|
4801
|
-
var
|
|
4802
|
-
var RatingIcon = (props) => /* @__PURE__ */ (0,
|
|
4871
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4872
|
+
var RatingIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_SvgIcon.default, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("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" }) });
|
|
4803
4873
|
var MuiRating = {
|
|
4804
4874
|
/** **************************************
|
|
4805
4875
|
* DEFAULT PROPS
|
|
4806
4876
|
*************************************** */
|
|
4807
|
-
defaultProps: { emptyIcon: /* @__PURE__ */ (0,
|
|
4877
|
+
defaultProps: { emptyIcon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RatingIcon, {}), icon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(RatingIcon, {}) },
|
|
4808
4878
|
/** **************************************
|
|
4809
4879
|
* STYLE
|
|
4810
4880
|
*************************************** */
|
|
@@ -4929,7 +4999,7 @@ var slider = {
|
|
|
4929
4999
|
// src/theme/core/components/button.tsx
|
|
4930
5000
|
var import_Button = require("@mui/material/Button");
|
|
4931
5001
|
var import_styles11 = require("@mui/material/styles");
|
|
4932
|
-
var
|
|
5002
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4933
5003
|
var spin = import_styles11.keyframes`
|
|
4934
5004
|
0% {
|
|
4935
5005
|
transform: rotate(0deg);
|
|
@@ -4990,15 +5060,15 @@ var secondaryVariant = {
|
|
|
4990
5060
|
props: ({ ownerState }) => ownerState.variant === "secondary" && ownerState.color === color,
|
|
4991
5061
|
style: ({ theme }) => ({
|
|
4992
5062
|
color: color === "neutral" ? theme.vars.palette[color][950] : theme.vars.palette[color].main,
|
|
4993
|
-
border: `1px solid ${color === "neutral" ? theme.vars.palette.neutral[
|
|
5063
|
+
border: `1px solid ${color === "neutral" ? theme.vars.palette.neutral[200] : theme.vars.palette[color].main}`,
|
|
4994
5064
|
backgroundColor: "transparent",
|
|
4995
5065
|
"&:hover": {
|
|
4996
|
-
backgroundColor: "transparent",
|
|
5066
|
+
backgroundColor: color === "neutral" ? theme.vars.palette.neutral[200] : "transparent",
|
|
4997
5067
|
borderWidth: "2px"
|
|
4998
5068
|
},
|
|
4999
5069
|
[`&.${import_Button.buttonClasses.loading}`]: {
|
|
5000
5070
|
color: "transparent",
|
|
5001
|
-
borderColor: color === "neutral" ? theme.vars.palette.neutral[
|
|
5071
|
+
borderColor: color === "neutral" ? theme.vars.palette.neutral[200] : theme.vars.palette[color].main,
|
|
5002
5072
|
"& .MuiButton-loadingIndicator": {
|
|
5003
5073
|
color: color === "neutral" ? theme.vars.palette[color][950] : theme.vars.palette[color].main,
|
|
5004
5074
|
left: "auto",
|
|
@@ -5046,10 +5116,10 @@ var MuiButton = {
|
|
|
5046
5116
|
*************************************** */
|
|
5047
5117
|
defaultProps: {
|
|
5048
5118
|
color: "primary",
|
|
5049
|
-
variant: "
|
|
5119
|
+
variant: "primary",
|
|
5050
5120
|
disableElevation: true,
|
|
5051
5121
|
disableRipple: true,
|
|
5052
|
-
loadingIndicator: /* @__PURE__ */ (0,
|
|
5122
|
+
loadingIndicator: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { icon: "Loader" })
|
|
5053
5123
|
},
|
|
5054
5124
|
/** **************************************
|
|
5055
5125
|
* VARIANTS
|
|
@@ -5535,7 +5605,7 @@ var MuiBackdrop = {
|
|
|
5535
5605
|
*************************************** */
|
|
5536
5606
|
styleOverrides: {
|
|
5537
5607
|
root: ({ theme }) => ({
|
|
5538
|
-
backgroundColor: varAlpha(theme.vars.palette.
|
|
5608
|
+
backgroundColor: varAlpha(theme.vars.palette.common.blackChannel, 0.4)
|
|
5539
5609
|
}),
|
|
5540
5610
|
invisible: { background: "transparent" }
|
|
5541
5611
|
}
|
|
@@ -5604,7 +5674,7 @@ var timeline = { MuiTimelineDot, MuiTimelineConnector };
|
|
|
5604
5674
|
|
|
5605
5675
|
// src/theme/core/components/checkbox.tsx
|
|
5606
5676
|
var import_Checkbox2 = require("@mui/material/Checkbox");
|
|
5607
|
-
var
|
|
5677
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5608
5678
|
var MuiCheckbox = {
|
|
5609
5679
|
/** **************************************
|
|
5610
5680
|
* DEFAULT PROPS
|
|
@@ -5613,9 +5683,9 @@ var MuiCheckbox = {
|
|
|
5613
5683
|
color: "default",
|
|
5614
5684
|
size: "small",
|
|
5615
5685
|
disableRipple: true,
|
|
5616
|
-
icon: /* @__PURE__ */ (0,
|
|
5617
|
-
checkedIcon: /* @__PURE__ */ (0,
|
|
5618
|
-
indeterminateIcon: /* @__PURE__ */ (0,
|
|
5686
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: "CheckboxDefault" }),
|
|
5687
|
+
checkedIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: "CheckboxSelect" }),
|
|
5688
|
+
indeterminateIcon: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Icon, { icon: "CheckboxIndeterminate" })
|
|
5619
5689
|
},
|
|
5620
5690
|
/** **************************************
|
|
5621
5691
|
* STYLE
|
|
@@ -6165,7 +6235,7 @@ var import_ListItemIcon = require("@mui/material/ListItemIcon");
|
|
|
6165
6235
|
var import_CircularProgress = require("@mui/material/CircularProgress");
|
|
6166
6236
|
var import_FormControlLabel = require("@mui/material/FormControlLabel");
|
|
6167
6237
|
var import_SvgIcon2 = __toESM(require("@mui/material/SvgIcon"), 1);
|
|
6168
|
-
var
|
|
6238
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6169
6239
|
var MuiDataGrid = {
|
|
6170
6240
|
/** **************************************
|
|
6171
6241
|
* DEFAULT PROPS
|
|
@@ -6173,9 +6243,9 @@ var MuiDataGrid = {
|
|
|
6173
6243
|
defaultProps: {
|
|
6174
6244
|
slots: {
|
|
6175
6245
|
/* Column */
|
|
6176
|
-
columnSortedAscendingIcon: (props) => /* @__PURE__ */ (0,
|
|
6177
|
-
columnSortedDescendingIcon: (props) => /* @__PURE__ */ (0,
|
|
6178
|
-
columnUnsortedIcon: (props) => /* @__PURE__ */ (0,
|
|
6246
|
+
columnSortedAscendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridArrowUpIcon, { sx: { color: "text.primary" }, ...props }),
|
|
6247
|
+
columnSortedDescendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridArrowDownIcon, { sx: { color: "text.primary" }, ...props }),
|
|
6248
|
+
columnUnsortedIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6179
6249
|
DataGridArrowUpIcon,
|
|
6180
6250
|
{
|
|
6181
6251
|
fontSize: props.fontSize,
|
|
@@ -6183,26 +6253,26 @@ var MuiDataGrid = {
|
|
|
6183
6253
|
sx: { color: "text.disabled" }
|
|
6184
6254
|
}
|
|
6185
6255
|
),
|
|
6186
|
-
columnMenuIcon: (props) => /* @__PURE__ */ (0,
|
|
6187
|
-
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ (0,
|
|
6188
|
-
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ (0,
|
|
6189
|
-
columnMenuFilterIcon: (props) => /* @__PURE__ */ (0,
|
|
6190
|
-
columnMenuHideIcon: (props) => /* @__PURE__ */ (0,
|
|
6191
|
-
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ (0,
|
|
6192
|
-
columnSelectorIcon: (props) => /* @__PURE__ */ (0,
|
|
6256
|
+
columnMenuIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridMoreIcon, { width: 20, ...props }),
|
|
6257
|
+
columnMenuSortAscendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridArrowUpIcon, { ...props }),
|
|
6258
|
+
columnMenuSortDescendingIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridArrowDownIcon, { ...props }),
|
|
6259
|
+
columnMenuFilterIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridFilterIcon, { ...props }),
|
|
6260
|
+
columnMenuHideIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridEyeCloseIcon, { ...props }),
|
|
6261
|
+
columnMenuManageColumnsIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridEyeIcon, { ...props }),
|
|
6262
|
+
columnSelectorIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridEyeIcon, { ...props }),
|
|
6193
6263
|
/* Filter */
|
|
6194
|
-
filterPanelDeleteIcon: (props) => /* @__PURE__ */ (0,
|
|
6195
|
-
openFilterButtonIcon: (props) => /* @__PURE__ */ (0,
|
|
6196
|
-
columnFilteredIcon: (props) => /* @__PURE__ */ (0,
|
|
6264
|
+
filterPanelDeleteIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridCloseIcon, { ...props }),
|
|
6265
|
+
openFilterButtonIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridFilterIcon, { ...props }),
|
|
6266
|
+
columnFilteredIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridFilterIcon, { sx: { width: 16, color: "text.primary" }, ...props }),
|
|
6197
6267
|
/* Density */
|
|
6198
|
-
densityCompactIcon: (props) => /* @__PURE__ */ (0,
|
|
6199
|
-
densityStandardIcon: (props) => /* @__PURE__ */ (0,
|
|
6200
|
-
densityComfortableIcon: (props) => /* @__PURE__ */ (0,
|
|
6268
|
+
densityCompactIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridDensityCompactIcon, { ...props }),
|
|
6269
|
+
densityStandardIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridDensityStandardIcon, { ...props }),
|
|
6270
|
+
densityComfortableIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridDensityComfortableIcon, { ...props }),
|
|
6201
6271
|
/* Export */
|
|
6202
|
-
exportIcon: (props) => /* @__PURE__ */ (0,
|
|
6272
|
+
exportIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridExportIcon, { ...props }),
|
|
6203
6273
|
/* Quick Filter */
|
|
6204
|
-
quickFilterIcon: (props) => /* @__PURE__ */ (0,
|
|
6205
|
-
quickFilterClearIcon: (props) => /* @__PURE__ */ (0,
|
|
6274
|
+
quickFilterIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridSearchIcon, { sx: { width: 24, height: 24, color: "text.secondary" }, ...props }),
|
|
6275
|
+
quickFilterClearIcon: (props) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DataGridCloseIcon, { ...props })
|
|
6206
6276
|
},
|
|
6207
6277
|
slotProps: {
|
|
6208
6278
|
basePopper: { placement: "bottom-end" },
|
|
@@ -6368,15 +6438,15 @@ var MuiDataGrid = {
|
|
|
6368
6438
|
}
|
|
6369
6439
|
};
|
|
6370
6440
|
var dataGrid = { MuiDataGrid };
|
|
6371
|
-
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6441
|
+
var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6442
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6373
6443
|
"path",
|
|
6374
6444
|
{
|
|
6375
6445
|
fill: "currentColor",
|
|
6376
6446
|
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"
|
|
6377
6447
|
}
|
|
6378
6448
|
),
|
|
6379
|
-
/* @__PURE__ */ (0,
|
|
6449
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6380
6450
|
"path",
|
|
6381
6451
|
{
|
|
6382
6452
|
fill: "currentColor",
|
|
@@ -6385,15 +6455,15 @@ var DataGridArrowUpIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
6385
6455
|
}
|
|
6386
6456
|
)
|
|
6387
6457
|
] });
|
|
6388
|
-
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6389
|
-
/* @__PURE__ */ (0,
|
|
6458
|
+
var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6390
6460
|
"path",
|
|
6391
6461
|
{
|
|
6392
6462
|
fill: "currentColor",
|
|
6393
6463
|
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"
|
|
6394
6464
|
}
|
|
6395
6465
|
),
|
|
6396
|
-
/* @__PURE__ */ (0,
|
|
6466
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6397
6467
|
"path",
|
|
6398
6468
|
{
|
|
6399
6469
|
fill: "currentColor",
|
|
@@ -6402,15 +6472,15 @@ var DataGridArrowDownIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6402
6472
|
}
|
|
6403
6473
|
)
|
|
6404
6474
|
] });
|
|
6405
|
-
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6475
|
+
var DataGridFilterIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6406
6476
|
"path",
|
|
6407
6477
|
{
|
|
6408
6478
|
fill: "currentColor",
|
|
6409
6479
|
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"
|
|
6410
6480
|
}
|
|
6411
6481
|
) });
|
|
6412
|
-
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6413
|
-
/* @__PURE__ */ (0,
|
|
6482
|
+
var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6483
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6414
6484
|
"path",
|
|
6415
6485
|
{
|
|
6416
6486
|
fill: "currentColor",
|
|
@@ -6419,7 +6489,7 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6419
6489
|
clipRule: "evenodd"
|
|
6420
6490
|
}
|
|
6421
6491
|
),
|
|
6422
|
-
/* @__PURE__ */ (0,
|
|
6492
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6423
6493
|
"path",
|
|
6424
6494
|
{
|
|
6425
6495
|
fill: "currentColor",
|
|
@@ -6427,9 +6497,9 @@ var DataGridExportIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6427
6497
|
}
|
|
6428
6498
|
)
|
|
6429
6499
|
] });
|
|
6430
|
-
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6431
|
-
/* @__PURE__ */ (0,
|
|
6432
|
-
/* @__PURE__ */ (0,
|
|
6500
|
+
var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: [
|
|
6501
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6433
6503
|
"path",
|
|
6434
6504
|
{
|
|
6435
6505
|
fill: "currentColor",
|
|
@@ -6439,7 +6509,7 @@ var DataGridEyeIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime55
|
|
|
6439
6509
|
}
|
|
6440
6510
|
)
|
|
6441
6511
|
] });
|
|
6442
|
-
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6512
|
+
var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6443
6513
|
"path",
|
|
6444
6514
|
{
|
|
6445
6515
|
fill: "currentColor",
|
|
@@ -6448,23 +6518,23 @@ var DataGridEyeCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runt
|
|
|
6448
6518
|
clipRule: "evenodd"
|
|
6449
6519
|
}
|
|
6450
6520
|
) });
|
|
6451
|
-
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6521
|
+
var DataGridSearchIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6452
6522
|
"path",
|
|
6453
6523
|
{
|
|
6454
6524
|
fill: "currentColor",
|
|
6455
6525
|
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"
|
|
6456
6526
|
}
|
|
6457
6527
|
) });
|
|
6458
|
-
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6528
|
+
var DataGridCloseIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6459
6529
|
"path",
|
|
6460
6530
|
{
|
|
6461
6531
|
fill: "currentColor",
|
|
6462
6532
|
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"
|
|
6463
6533
|
}
|
|
6464
6534
|
) });
|
|
6465
|
-
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6466
|
-
/* @__PURE__ */ (0,
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6535
|
+
var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { fill: "none", children: [
|
|
6536
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
|
|
6537
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6468
6538
|
"path",
|
|
6469
6539
|
{
|
|
6470
6540
|
fill: "currentColor",
|
|
@@ -6472,16 +6542,16 @@ var DataGridMoreIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime5
|
|
|
6472
6542
|
}
|
|
6473
6543
|
)
|
|
6474
6544
|
] }) });
|
|
6475
|
-
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6545
|
+
var DataGridDensityCompactIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6476
6546
|
"path",
|
|
6477
6547
|
{
|
|
6478
6548
|
fill: "currentColor",
|
|
6479
6549
|
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"
|
|
6480
6550
|
}
|
|
6481
6551
|
) });
|
|
6482
|
-
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6483
|
-
/* @__PURE__ */ (0,
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6552
|
+
var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { fill: "none", fillRule: "evenodd", children: [
|
|
6553
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
|
|
6554
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6485
6555
|
"path",
|
|
6486
6556
|
{
|
|
6487
6557
|
fill: "currentColor",
|
|
@@ -6489,9 +6559,9 @@ var DataGridDensityComfortableIcon = ({ ...props }) => /* @__PURE__ */ (0, impor
|
|
|
6489
6559
|
}
|
|
6490
6560
|
)
|
|
6491
6561
|
] }) });
|
|
6492
|
-
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ (0,
|
|
6493
|
-
/* @__PURE__ */ (0,
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6562
|
+
var DataGridDensityStandardIcon = ({ ...props }) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_SvgIcon2.default, { sx: { width: 20, height: 20, ...props.sx }, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("g", { fill: "none", children: [
|
|
6563
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("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" }),
|
|
6564
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
6495
6565
|
"path",
|
|
6496
6566
|
{
|
|
6497
6567
|
fill: "currentColor",
|
|
@@ -6651,12 +6721,12 @@ var buttonGroup = { MuiButtonGroup };
|
|
|
6651
6721
|
// src/theme/core/components/autocomplete.tsx
|
|
6652
6722
|
var import_SvgIcon3 = require("@mui/material/SvgIcon");
|
|
6653
6723
|
var import_Autocomplete3 = require("@mui/material/Autocomplete");
|
|
6654
|
-
var
|
|
6724
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
6655
6725
|
var MuiAutocomplete = {
|
|
6656
6726
|
/** **************************************
|
|
6657
6727
|
* DEFAULT PROPS
|
|
6658
6728
|
*************************************** */
|
|
6659
|
-
defaultProps: { popupIcon: /* @__PURE__ */ (0,
|
|
6729
|
+
defaultProps: { popupIcon: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { icon: "NavArrowDown" }) },
|
|
6660
6730
|
/** **************************************
|
|
6661
6731
|
* STYLE
|
|
6662
6732
|
*************************************** */
|
|
@@ -6780,9 +6850,9 @@ var MuiToggleButtonGroup = {
|
|
|
6780
6850
|
var toggleButton = { MuiToggleButton, MuiToggleButtonGroup };
|
|
6781
6851
|
|
|
6782
6852
|
// src/theme/core/components/mui-x-date-picker.tsx
|
|
6783
|
-
var
|
|
6784
|
-
var
|
|
6785
|
-
var
|
|
6853
|
+
var import_IconButton8 = __toESM(require("@mui/material/IconButton"), 1);
|
|
6854
|
+
var import_Typography14 = __toESM(require("@mui/material/Typography"), 1);
|
|
6855
|
+
var import_Button5 = require("@mui/material/Button");
|
|
6786
6856
|
var import_styles36 = require("@mui/material/styles");
|
|
6787
6857
|
var import_DialogActions = require("@mui/material/DialogActions");
|
|
6788
6858
|
|
|
@@ -6805,12 +6875,19 @@ __export(components_exports2, {
|
|
|
6805
6875
|
CloudUpload: () => CloudUpload,
|
|
6806
6876
|
Copy: () => Copy,
|
|
6807
6877
|
CopyButton: () => CopyButton,
|
|
6878
|
+
CustomDialog: () => CustomDialog,
|
|
6879
|
+
CustomDrawer: () => CustomDrawer,
|
|
6880
|
+
DateRangeDropdown: () => DateRangeDropdown,
|
|
6881
|
+
DateRangePicker: () => DateRangePicker,
|
|
6808
6882
|
Download: () => Download,
|
|
6809
6883
|
EmptyContent: () => EmptyContent,
|
|
6810
6884
|
ErrorToast: () => ErrorToast,
|
|
6811
6885
|
Eye: () => Eye,
|
|
6812
6886
|
EyeClosed: () => EyeClosed,
|
|
6887
|
+
FeedbackDialog: () => FeedbackDialog,
|
|
6813
6888
|
Field: () => Field,
|
|
6889
|
+
FilterDropdown: () => FilterDropdown,
|
|
6890
|
+
FilterList: () => FilterList,
|
|
6814
6891
|
Form: () => Form,
|
|
6815
6892
|
HelpCircle: () => HelpCircle,
|
|
6816
6893
|
Icon: () => Icon,
|
|
@@ -6833,6 +6910,7 @@ __export(components_exports2, {
|
|
|
6833
6910
|
RHFAutocomplete: () => RHFAutocomplete,
|
|
6834
6911
|
RHFCheckbox: () => RHFCheckbox,
|
|
6835
6912
|
RHFDatePicker: () => RHFDatePicker,
|
|
6913
|
+
RHFDateRangePicker: () => RHFDateRangePicker,
|
|
6836
6914
|
RHFDateTimePicker: () => RHFDateTimePicker,
|
|
6837
6915
|
RHFMultiCheckbox: () => RHFMultiCheckbox,
|
|
6838
6916
|
RHFMultiSwitch: () => RHFMultiSwitch,
|
|
@@ -6847,6 +6925,7 @@ __export(components_exports2, {
|
|
|
6847
6925
|
Search: () => Search,
|
|
6848
6926
|
Settings: () => Settings,
|
|
6849
6927
|
SortDown: () => SortDown,
|
|
6928
|
+
SortDropdown: () => SortDropdown,
|
|
6850
6929
|
SortUp: () => SortUp,
|
|
6851
6930
|
SplashScreen: () => SplashScreen,
|
|
6852
6931
|
StatDown: () => StatDown,
|
|
@@ -6855,6 +6934,14 @@ __export(components_exports2, {
|
|
|
6855
6934
|
Table: () => Table,
|
|
6856
6935
|
TablePagination: () => TablePagination,
|
|
6857
6936
|
Toast: () => Toast,
|
|
6937
|
+
ToolbarButton: () => ToolbarButton,
|
|
6938
|
+
ToolbarDatePickerButton: () => ToolbarDatePickerButton,
|
|
6939
|
+
ToolbarFilterButton: () => ToolbarFilterButton,
|
|
6940
|
+
ToolbarSearchField: () => ToolbarSearchField,
|
|
6941
|
+
ToolbarSettingsButton: () => ToolbarSettingsButton,
|
|
6942
|
+
ToolbarSortButton: () => ToolbarSortButton,
|
|
6943
|
+
ToolbarTodayButton: () => ToolbarTodayButton,
|
|
6944
|
+
ToolbarViewSwitcher: () => ToolbarViewSwitcher,
|
|
6858
6945
|
Trash: () => Trash,
|
|
6859
6946
|
Upload: () => Upload,
|
|
6860
6947
|
User: () => User,
|
|
@@ -6862,13 +6949,19 @@ __export(components_exports2, {
|
|
|
6862
6949
|
WarningToast: () => WarningToast,
|
|
6863
6950
|
XMark: () => XMark,
|
|
6864
6951
|
XMarkSolid: () => XMarkSolid,
|
|
6865
|
-
|
|
6952
|
+
defaultPresets: () => defaultPresets,
|
|
6953
|
+
dialogClasses: () => dialogClasses,
|
|
6954
|
+
drawerClasses: () => drawerClasses,
|
|
6955
|
+
feedbackDialogClasses: () => feedbackDialogClasses,
|
|
6956
|
+
getDateRangeFromPreset: () => getDateRangeFromPreset,
|
|
6957
|
+
iconClasses: () => iconClasses,
|
|
6958
|
+
toolbarClasses: () => toolbarClasses
|
|
6866
6959
|
});
|
|
6867
6960
|
|
|
6868
6961
|
// src/components/Logo/index.tsx
|
|
6869
6962
|
var import_Link = __toESM(require("@mui/material/Link"), 1);
|
|
6870
6963
|
var import_Box2 = __toESM(require("@mui/material/Box"), 1);
|
|
6871
|
-
var
|
|
6964
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6872
6965
|
var LOGO_MAP = {
|
|
6873
6966
|
full: {
|
|
6874
6967
|
black: "https://res.cloudinary.com/dvbtbsinu/image/upload/v1763077834/define-agency/logos/logo-black-full_mjngwu.png",
|
|
@@ -6896,7 +6989,7 @@ var Logo = ({
|
|
|
6896
6989
|
const type = isFull ? "full" : "single";
|
|
6897
6990
|
const color = isWhite ? "white" : isBlack ? "black" : "default";
|
|
6898
6991
|
const logoImg = src ?? LOGO_MAP[type][color];
|
|
6899
|
-
const logo = /* @__PURE__ */ (0,
|
|
6992
|
+
const logo = /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6900
6993
|
import_Box2.default,
|
|
6901
6994
|
{
|
|
6902
6995
|
component: "img",
|
|
@@ -6909,10 +7002,10 @@ var Logo = ({
|
|
|
6909
7002
|
if (disableLink) {
|
|
6910
7003
|
return logo;
|
|
6911
7004
|
}
|
|
6912
|
-
return /* @__PURE__ */ (0,
|
|
7005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_Link.default, { component: LinkComponent, href, sx: { display: "contents" }, children: logo });
|
|
6913
7006
|
};
|
|
6914
7007
|
var AnimatedLogo = () => {
|
|
6915
|
-
return /* @__PURE__ */ (0,
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
6916
7009
|
"svg",
|
|
6917
7010
|
{
|
|
6918
7011
|
width: "120",
|
|
@@ -6921,7 +7014,7 @@ var AnimatedLogo = () => {
|
|
|
6921
7014
|
fill: "none",
|
|
6922
7015
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6923
7016
|
children: [
|
|
6924
|
-
/* @__PURE__ */ (0,
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("style", { children: `
|
|
6925
7018
|
@keyframes fadeIn {
|
|
6926
7019
|
from {
|
|
6927
7020
|
opacity: 0;
|
|
@@ -6982,7 +7075,7 @@ var AnimatedLogo = () => {
|
|
|
6982
7075
|
transform-origin: center;
|
|
6983
7076
|
}
|
|
6984
7077
|
` }),
|
|
6985
|
-
/* @__PURE__ */ (0,
|
|
7078
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6986
7079
|
"rect",
|
|
6987
7080
|
{
|
|
6988
7081
|
className: "background-rect",
|
|
@@ -6993,7 +7086,7 @@ var AnimatedLogo = () => {
|
|
|
6993
7086
|
fill: "white"
|
|
6994
7087
|
}
|
|
6995
7088
|
),
|
|
6996
|
-
/* @__PURE__ */ (0,
|
|
7089
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
6997
7090
|
"path",
|
|
6998
7091
|
{
|
|
6999
7092
|
className: "bars",
|
|
@@ -7001,7 +7094,7 @@ var AnimatedLogo = () => {
|
|
|
7001
7094
|
fill: "#5E30EB"
|
|
7002
7095
|
}
|
|
7003
7096
|
),
|
|
7004
|
-
/* @__PURE__ */ (0,
|
|
7097
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
7005
7098
|
"path",
|
|
7006
7099
|
{
|
|
7007
7100
|
className: "d-letter",
|
|
@@ -7024,7 +7117,7 @@ var import_styles26 = require("@mui/material/styles");
|
|
|
7024
7117
|
var import_Box3 = __toESM(require("@mui/material/Box"), 1);
|
|
7025
7118
|
var import_Stack = __toESM(require("@mui/material/Stack"), 1);
|
|
7026
7119
|
var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
|
|
7027
|
-
var
|
|
7120
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7028
7121
|
var EmptyContent = ({
|
|
7029
7122
|
sx,
|
|
7030
7123
|
imgUrl,
|
|
@@ -7035,7 +7128,7 @@ var EmptyContent = ({
|
|
|
7035
7128
|
title = "No data",
|
|
7036
7129
|
...rest
|
|
7037
7130
|
}) => {
|
|
7038
|
-
return /* @__PURE__ */ (0,
|
|
7131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
7039
7132
|
import_Stack.default,
|
|
7040
7133
|
{
|
|
7041
7134
|
flexGrow: 1,
|
|
@@ -7053,7 +7146,7 @@ var EmptyContent = ({
|
|
|
7053
7146
|
},
|
|
7054
7147
|
...rest,
|
|
7055
7148
|
children: [
|
|
7056
|
-
imgUrl && /* @__PURE__ */ (0,
|
|
7149
|
+
imgUrl && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7057
7150
|
import_Box3.default,
|
|
7058
7151
|
{
|
|
7059
7152
|
component: "img",
|
|
@@ -7062,7 +7155,7 @@ var EmptyContent = ({
|
|
|
7062
7155
|
sx: { width: 1, maxWidth: 160, ...slotProps?.img, mb: 2 }
|
|
7063
7156
|
}
|
|
7064
7157
|
),
|
|
7065
|
-
title && /* @__PURE__ */ (0,
|
|
7158
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7066
7159
|
import_Typography2.default,
|
|
7067
7160
|
{
|
|
7068
7161
|
variant: filled ? "h7" : "h6",
|
|
@@ -7076,7 +7169,7 @@ var EmptyContent = ({
|
|
|
7076
7169
|
children: title
|
|
7077
7170
|
}
|
|
7078
7171
|
),
|
|
7079
|
-
description && /* @__PURE__ */ (0,
|
|
7172
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7080
7173
|
import_Typography2.default,
|
|
7081
7174
|
{
|
|
7082
7175
|
variant: "h8",
|
|
@@ -7096,14 +7189,14 @@ var EmptyContent = ({
|
|
|
7096
7189
|
};
|
|
7097
7190
|
|
|
7098
7191
|
// src/components/Table/components/TableNoRows.tsx
|
|
7099
|
-
var
|
|
7192
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7100
7193
|
var StyledGridOverlay = (0, import_styles26.styled)("div")(({ theme }) => ({
|
|
7101
7194
|
padding: theme.spacing(1.5, 3, 3),
|
|
7102
7195
|
width: "100%",
|
|
7103
7196
|
height: "100%"
|
|
7104
7197
|
}));
|
|
7105
7198
|
var TableNoRows = (props) => {
|
|
7106
|
-
return /* @__PURE__ */ (0,
|
|
7199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(StyledGridOverlay, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(EmptyContent, { ...props, sx: { width: "100%" } }) });
|
|
7107
7200
|
};
|
|
7108
7201
|
var TableNoRows_default = TableNoRows;
|
|
7109
7202
|
|
|
@@ -7115,14 +7208,14 @@ var import_Typography3 = __toESM(require("@mui/material/Typography"), 1);
|
|
|
7115
7208
|
var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
|
|
7116
7209
|
var import_PaginationItem2 = __toESM(require("@mui/material/PaginationItem"), 1);
|
|
7117
7210
|
var import_x_data_grid = require("@mui/x-data-grid");
|
|
7118
|
-
var
|
|
7211
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7119
7212
|
var TablePagination = () => {
|
|
7120
7213
|
const theme = (0, import_styles27.useTheme)();
|
|
7121
7214
|
const apiRef = (0, import_x_data_grid.useGridApiContext)();
|
|
7122
7215
|
const page = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSelector);
|
|
7123
7216
|
const pageCount = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageCountSelector);
|
|
7124
7217
|
const pageSize = (0, import_x_data_grid.useGridSelector)(apiRef, import_x_data_grid.gridPageSizeSelector);
|
|
7125
|
-
return /* @__PURE__ */ (0,
|
|
7218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
7126
7219
|
import_Stack2.default,
|
|
7127
7220
|
{
|
|
7128
7221
|
direction: "row",
|
|
@@ -7131,7 +7224,7 @@ var TablePagination = () => {
|
|
|
7131
7224
|
width: 1,
|
|
7132
7225
|
p: 1.5,
|
|
7133
7226
|
children: [
|
|
7134
|
-
/* @__PURE__ */ (0,
|
|
7227
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
7135
7228
|
import_Typography3.default,
|
|
7136
7229
|
{
|
|
7137
7230
|
variant: "h8",
|
|
@@ -7143,13 +7236,13 @@ var TablePagination = () => {
|
|
|
7143
7236
|
]
|
|
7144
7237
|
}
|
|
7145
7238
|
) }),
|
|
7146
|
-
/* @__PURE__ */ (0,
|
|
7239
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7147
7240
|
import_Stack2.default,
|
|
7148
7241
|
{
|
|
7149
7242
|
direction: { xs: "column", md: "row" },
|
|
7150
7243
|
alignItems: { xs: "flex-start", md: "center" },
|
|
7151
7244
|
spacing: 2,
|
|
7152
|
-
children: /* @__PURE__ */ (0,
|
|
7245
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7153
7246
|
import_Pagination.default,
|
|
7154
7247
|
{
|
|
7155
7248
|
size: "medium",
|
|
@@ -7161,13 +7254,13 @@ var TablePagination = () => {
|
|
|
7161
7254
|
hideNextButton: true,
|
|
7162
7255
|
hidePrevButton: true,
|
|
7163
7256
|
onChange: (_, value) => apiRef.current.setPage(value - 1),
|
|
7164
|
-
renderItem: (item) => /* @__PURE__ */ (0,
|
|
7257
|
+
renderItem: (item) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_PaginationItem2.default, { ...item })
|
|
7165
7258
|
}
|
|
7166
7259
|
)
|
|
7167
7260
|
}
|
|
7168
7261
|
),
|
|
7169
|
-
/* @__PURE__ */ (0,
|
|
7170
|
-
/* @__PURE__ */ (0,
|
|
7262
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_Stack2.default, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7263
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7171
7264
|
import_Button2.default,
|
|
7172
7265
|
{
|
|
7173
7266
|
color: "inherit",
|
|
@@ -7177,7 +7270,7 @@ var TablePagination = () => {
|
|
|
7177
7270
|
children: "Previous"
|
|
7178
7271
|
}
|
|
7179
7272
|
),
|
|
7180
|
-
/* @__PURE__ */ (0,
|
|
7273
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7181
7274
|
import_Button2.default,
|
|
7182
7275
|
{
|
|
7183
7276
|
color: "inherit",
|
|
@@ -7194,11 +7287,11 @@ var TablePagination = () => {
|
|
|
7194
7287
|
};
|
|
7195
7288
|
|
|
7196
7289
|
// src/components/Table/Table.tsx
|
|
7197
|
-
var
|
|
7290
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7198
7291
|
var Table = (props) => {
|
|
7199
7292
|
const { data, showFooter = true, sx, slots, slotProps, ...rest } = props;
|
|
7200
7293
|
const isEmpty = data.length === 0;
|
|
7201
|
-
return /* @__PURE__ */ (0,
|
|
7294
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7202
7295
|
import_x_data_grid2.DataGrid,
|
|
7203
7296
|
{
|
|
7204
7297
|
rowHeight: 56,
|
|
@@ -7262,7 +7355,7 @@ var imageClasses = {
|
|
|
7262
7355
|
};
|
|
7263
7356
|
|
|
7264
7357
|
// src/components/Image/index.tsx
|
|
7265
|
-
var
|
|
7358
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7266
7359
|
var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
7267
7360
|
const {
|
|
7268
7361
|
src,
|
|
@@ -7361,7 +7454,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7361
7454
|
const showLoader = status === "idle" || status === "loading";
|
|
7362
7455
|
const showError = status === "error";
|
|
7363
7456
|
const loadingAttr = lazy ? "lazy" : imgLoading ?? "eager";
|
|
7364
|
-
return /* @__PURE__ */ (0,
|
|
7457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
7365
7458
|
import_Box4.default,
|
|
7366
7459
|
{
|
|
7367
7460
|
className: imageClasses.root.concat(className ? ` ${className}` : ""),
|
|
@@ -7370,13 +7463,13 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7370
7463
|
display: "block",
|
|
7371
7464
|
width: 1,
|
|
7372
7465
|
lineHeight: 0,
|
|
7373
|
-
overflow:
|
|
7466
|
+
overflow: "hidden",
|
|
7374
7467
|
...aspectRatio && { aspectRatio },
|
|
7375
7468
|
...sx
|
|
7376
7469
|
},
|
|
7377
7470
|
...rest,
|
|
7378
7471
|
children: [
|
|
7379
|
-
showLoader && (loadingIndicator ?? /* @__PURE__ */ (0,
|
|
7472
|
+
showLoader && (loadingIndicator ?? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7380
7473
|
import_Skeleton.default,
|
|
7381
7474
|
{
|
|
7382
7475
|
animation: "wave",
|
|
@@ -7391,7 +7484,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7391
7484
|
}
|
|
7392
7485
|
}
|
|
7393
7486
|
)),
|
|
7394
|
-
/* @__PURE__ */ (0,
|
|
7487
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7395
7488
|
import_Box4.default,
|
|
7396
7489
|
{
|
|
7397
7490
|
ref: setRefs,
|
|
@@ -7420,7 +7513,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7420
7513
|
}
|
|
7421
7514
|
}
|
|
7422
7515
|
),
|
|
7423
|
-
withOverlay && !showError && /* @__PURE__ */ (0,
|
|
7516
|
+
withOverlay && !showError && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7424
7517
|
import_Box4.default,
|
|
7425
7518
|
{
|
|
7426
7519
|
className: imageClasses.overlay,
|
|
@@ -7432,7 +7525,7 @@ var Image = (0, import_react12.forwardRef)(function Image2(props, ref) {
|
|
|
7432
7525
|
children: overlay
|
|
7433
7526
|
}
|
|
7434
7527
|
),
|
|
7435
|
-
showError && (renderError ?? /* @__PURE__ */ (0,
|
|
7528
|
+
showError && (renderError ?? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7436
7529
|
import_Box4.default,
|
|
7437
7530
|
{
|
|
7438
7531
|
className: imageClasses.overlay,
|
|
@@ -7491,7 +7584,7 @@ var toasterClasses = {
|
|
|
7491
7584
|
|
|
7492
7585
|
// src/components/Toast/styles.ts
|
|
7493
7586
|
var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme }) => {
|
|
7494
|
-
const
|
|
7587
|
+
const baseStyles6 = {
|
|
7495
7588
|
toastDefault: {
|
|
7496
7589
|
padding: theme.spacing(1.5),
|
|
7497
7590
|
boxShadow: theme.customShadows["shadow-lg"],
|
|
@@ -7607,7 +7700,7 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7607
7700
|
*/
|
|
7608
7701
|
"@keyframes rotate": { to: { transform: "rotate(1turn)" } },
|
|
7609
7702
|
[`& .${toasterClasses.default}`]: {
|
|
7610
|
-
...
|
|
7703
|
+
...baseStyles6.toastDefault,
|
|
7611
7704
|
[`&:has(${toasterClasses.closeBtnVisible})`]: {
|
|
7612
7705
|
[`& .${toasterClasses.content}`]: {
|
|
7613
7706
|
paddingRight: 32
|
|
@@ -7618,7 +7711,7 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7618
7711
|
* Error
|
|
7619
7712
|
*/
|
|
7620
7713
|
[`& .${toasterClasses.error}`]: {
|
|
7621
|
-
...
|
|
7714
|
+
...baseStyles6.toastColor,
|
|
7622
7715
|
[`& .${toasterClasses.icon}`]: {
|
|
7623
7716
|
color: theme.vars.palette.error.main
|
|
7624
7717
|
}
|
|
@@ -7627,7 +7720,7 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7627
7720
|
* Success
|
|
7628
7721
|
*/
|
|
7629
7722
|
[`& .${toasterClasses.success}`]: {
|
|
7630
|
-
...
|
|
7723
|
+
...baseStyles6.toastColor,
|
|
7631
7724
|
[`& .${toasterClasses.icon}`]: {
|
|
7632
7725
|
color: theme.vars.palette.success.main
|
|
7633
7726
|
}
|
|
@@ -7636,7 +7729,7 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7636
7729
|
* Warning
|
|
7637
7730
|
*/
|
|
7638
7731
|
[`& .${toasterClasses.warning}`]: {
|
|
7639
|
-
...
|
|
7732
|
+
...baseStyles6.toastColor,
|
|
7640
7733
|
[`& .${toasterClasses.icon}`]: {
|
|
7641
7734
|
color: theme.vars.palette.warning.main
|
|
7642
7735
|
}
|
|
@@ -7645,7 +7738,7 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7645
7738
|
* Info
|
|
7646
7739
|
*/
|
|
7647
7740
|
[`& .${toasterClasses.info}`]: {
|
|
7648
|
-
...
|
|
7741
|
+
...baseStyles6.toastColor,
|
|
7649
7742
|
[`& .${toasterClasses.icon}`]: {
|
|
7650
7743
|
color: theme.vars.palette.info.main
|
|
7651
7744
|
}
|
|
@@ -7655,9 +7748,9 @@ var StyledToaster = (0, import_styles28.styled)(import_sonner.Toaster)(({ theme
|
|
|
7655
7748
|
|
|
7656
7749
|
// src/components/Toast/index.tsx
|
|
7657
7750
|
__reExport(Toast_exports, require("sonner"));
|
|
7658
|
-
var
|
|
7751
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7659
7752
|
var Toast = () => {
|
|
7660
|
-
return /* @__PURE__ */ (0,
|
|
7753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_Portal.default, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7661
7754
|
StyledToaster,
|
|
7662
7755
|
{
|
|
7663
7756
|
expand: true,
|
|
@@ -7689,12 +7782,12 @@ var Toast = () => {
|
|
|
7689
7782
|
}
|
|
7690
7783
|
},
|
|
7691
7784
|
icons: {
|
|
7692
|
-
loading: /* @__PURE__ */ (0,
|
|
7693
|
-
info: /* @__PURE__ */ (0,
|
|
7694
|
-
success: /* @__PURE__ */ (0,
|
|
7695
|
-
warning: /* @__PURE__ */ (0,
|
|
7696
|
-
error: /* @__PURE__ */ (0,
|
|
7697
|
-
close: /* @__PURE__ */ (0,
|
|
7785
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("span", { className: toasterClasses.loadingIcon }),
|
|
7786
|
+
info: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "InfoToast" }),
|
|
7787
|
+
success: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "SuccessToast" }),
|
|
7788
|
+
warning: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "WarningToast" }),
|
|
7789
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "ErrorToast" }),
|
|
7790
|
+
close: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Icon, { className: toasterClasses.iconSvg, icon: "XMark" })
|
|
7698
7791
|
}
|
|
7699
7792
|
}
|
|
7700
7793
|
) });
|
|
@@ -7713,9 +7806,9 @@ var import_FormHelperText = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
|
7713
7806
|
// src/components/Upload/components/Placeholder.tsx
|
|
7714
7807
|
var import_Stack3 = __toESM(require("@mui/material/Stack"), 1);
|
|
7715
7808
|
var import_Box5 = __toESM(require("@mui/material/Box"), 1);
|
|
7716
|
-
var
|
|
7809
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7717
7810
|
var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
7718
|
-
return /* @__PURE__ */ (0,
|
|
7811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
7719
7812
|
import_Box5.default,
|
|
7720
7813
|
{
|
|
7721
7814
|
sx: {
|
|
@@ -7726,7 +7819,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7726
7819
|
},
|
|
7727
7820
|
...rest,
|
|
7728
7821
|
children: [
|
|
7729
|
-
/* @__PURE__ */ (0,
|
|
7822
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7730
7823
|
Icon,
|
|
7731
7824
|
{
|
|
7732
7825
|
icon: "CloudUpload",
|
|
@@ -7737,10 +7830,10 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7737
7830
|
}
|
|
7738
7831
|
}
|
|
7739
7832
|
),
|
|
7740
|
-
/* @__PURE__ */ (0,
|
|
7741
|
-
/* @__PURE__ */ (0,
|
|
7833
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_Stack3.default, { spacing: 1, sx: { textAlign: "center", mt: 2 }, children: [
|
|
7834
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_Box5.default, { sx: { typography: "h8" }, children: [
|
|
7742
7835
|
"Drag files here or",
|
|
7743
|
-
/* @__PURE__ */ (0,
|
|
7836
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7744
7837
|
import_Box5.default,
|
|
7745
7838
|
{
|
|
7746
7839
|
component: "span",
|
|
@@ -7753,7 +7846,7 @@ var UploadPlaceholder = ({ hasError, ...rest }) => {
|
|
|
7753
7846
|
}
|
|
7754
7847
|
)
|
|
7755
7848
|
] }),
|
|
7756
|
-
/* @__PURE__ */ (0,
|
|
7849
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
7757
7850
|
import_Box5.default,
|
|
7758
7851
|
{
|
|
7759
7852
|
sx: {
|
|
@@ -7808,12 +7901,12 @@ var fileData = (file) => {
|
|
|
7808
7901
|
};
|
|
7809
7902
|
|
|
7810
7903
|
// src/components/Upload/components/RejectionFiles.tsx
|
|
7811
|
-
var
|
|
7904
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7812
7905
|
var RejectionFiles = ({ files }) => {
|
|
7813
7906
|
if (!files.length) {
|
|
7814
7907
|
return null;
|
|
7815
7908
|
}
|
|
7816
|
-
return /* @__PURE__ */ (0,
|
|
7909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
7817
7910
|
import_Paper2.default,
|
|
7818
7911
|
{
|
|
7819
7912
|
variant: "outlined",
|
|
@@ -7828,13 +7921,13 @@ var RejectionFiles = ({ files }) => {
|
|
|
7828
7921
|
},
|
|
7829
7922
|
children: files.map(({ file, errors }) => {
|
|
7830
7923
|
const { path, size } = fileData(file);
|
|
7831
|
-
return /* @__PURE__ */ (0,
|
|
7832
|
-
/* @__PURE__ */ (0,
|
|
7924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_Box6.default, { sx: { my: 1 }, children: [
|
|
7925
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_Typography4.default, { variant: "subtitle2", noWrap: true, children: [
|
|
7833
7926
|
path,
|
|
7834
7927
|
" - ",
|
|
7835
7928
|
size ? fData(size) : ""
|
|
7836
7929
|
] }),
|
|
7837
|
-
errors.map((error2) => /* @__PURE__ */ (0,
|
|
7930
|
+
errors.map((error2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_Box6.default, { component: "span", sx: { typography: "caption" }, children: [
|
|
7838
7931
|
"- ",
|
|
7839
7932
|
error2.message
|
|
7840
7933
|
] }, error2.code))
|
|
@@ -7847,9 +7940,9 @@ var RejectionFiles = ({ files }) => {
|
|
|
7847
7940
|
// src/components/Upload/components/UploadProgress.tsx
|
|
7848
7941
|
var import_Box7 = __toESM(require("@mui/material/Box"), 1);
|
|
7849
7942
|
var import_CircularProgress2 = __toESM(require("@mui/material/CircularProgress"), 1);
|
|
7850
|
-
var
|
|
7943
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7851
7944
|
var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
7852
|
-
return /* @__PURE__ */ (0,
|
|
7945
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
7853
7946
|
import_Box7.default,
|
|
7854
7947
|
{
|
|
7855
7948
|
sx: {
|
|
@@ -7860,8 +7953,8 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7860
7953
|
height: "100%"
|
|
7861
7954
|
},
|
|
7862
7955
|
children: [
|
|
7863
|
-
/* @__PURE__ */ (0,
|
|
7864
|
-
/* @__PURE__ */ (0,
|
|
7956
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_Box7.default, { sx: { position: "relative", display: "inline-flex" }, children: [
|
|
7957
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7865
7958
|
import_CircularProgress2.default,
|
|
7866
7959
|
{
|
|
7867
7960
|
variant: "determinate",
|
|
@@ -7874,7 +7967,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7874
7967
|
}
|
|
7875
7968
|
}
|
|
7876
7969
|
),
|
|
7877
|
-
/* @__PURE__ */ (0,
|
|
7970
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7878
7971
|
import_CircularProgress2.default,
|
|
7879
7972
|
{
|
|
7880
7973
|
variant: "determinate",
|
|
@@ -7886,7 +7979,7 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7886
7979
|
}
|
|
7887
7980
|
}
|
|
7888
7981
|
),
|
|
7889
|
-
/* @__PURE__ */ (0,
|
|
7982
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7890
7983
|
import_Box7.default,
|
|
7891
7984
|
{
|
|
7892
7985
|
sx: {
|
|
@@ -7899,11 +7992,11 @@ var UploadProgress = ({ progress: progress2 = 20 }) => {
|
|
|
7899
7992
|
alignItems: "center",
|
|
7900
7993
|
justifyContent: "center"
|
|
7901
7994
|
},
|
|
7902
|
-
children: /* @__PURE__ */ (0,
|
|
7995
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Box7.default, { sx: { typography: "h6", color: "common.black" }, children: `${Math.round(progress2)}` })
|
|
7903
7996
|
}
|
|
7904
7997
|
)
|
|
7905
7998
|
] }),
|
|
7906
|
-
/* @__PURE__ */ (0,
|
|
7999
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Box7.default, { sx: { mt: 2, typography: "h6" }, children: "Uploading" })
|
|
7907
8000
|
]
|
|
7908
8001
|
}
|
|
7909
8002
|
);
|
|
@@ -7917,11 +8010,11 @@ var import_IconButton3 = __toESM(require("@mui/material/IconButton"), 1);
|
|
|
7917
8010
|
// src/components/Upload/components/SingleFilePreview.tsx
|
|
7918
8011
|
var import_Box8 = __toESM(require("@mui/material/Box"), 1);
|
|
7919
8012
|
var import_IconButton2 = __toESM(require("@mui/material/IconButton"), 1);
|
|
7920
|
-
var
|
|
8013
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7921
8014
|
var SingleFilePreview = ({ file }) => {
|
|
7922
8015
|
const fileName = typeof file === "string" ? file : file.name;
|
|
7923
8016
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
7924
|
-
const renderImg = /* @__PURE__ */ (0,
|
|
8017
|
+
const renderImg = /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7925
8018
|
import_Box8.default,
|
|
7926
8019
|
{
|
|
7927
8020
|
component: "img",
|
|
@@ -7935,7 +8028,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7935
8028
|
}
|
|
7936
8029
|
}
|
|
7937
8030
|
);
|
|
7938
|
-
return /* @__PURE__ */ (0,
|
|
8031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7939
8032
|
import_Box8.default,
|
|
7940
8033
|
{
|
|
7941
8034
|
sx: {
|
|
@@ -7951,7 +8044,7 @@ var SingleFilePreview = ({ file }) => {
|
|
|
7951
8044
|
);
|
|
7952
8045
|
};
|
|
7953
8046
|
var DeleteButton = ({ sx, ...rest }) => {
|
|
7954
|
-
return /* @__PURE__ */ (0,
|
|
8047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7955
8048
|
import_IconButton2.default,
|
|
7956
8049
|
{
|
|
7957
8050
|
size: "small",
|
|
@@ -7970,13 +8063,13 @@ var DeleteButton = ({ sx, ...rest }) => {
|
|
|
7970
8063
|
...sx
|
|
7971
8064
|
},
|
|
7972
8065
|
...rest,
|
|
7973
|
-
children: /* @__PURE__ */ (0,
|
|
8066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Icon, { icon: "XMark", sx: { width: 18, height: 18 } })
|
|
7974
8067
|
}
|
|
7975
8068
|
);
|
|
7976
8069
|
};
|
|
7977
8070
|
|
|
7978
8071
|
// src/components/Upload/components/MultiFilePreview.tsx
|
|
7979
|
-
var
|
|
8072
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7980
8073
|
var MultiFilePreview = ({ files, onRemove }) => {
|
|
7981
8074
|
const scrollRef = (0, import_react13.useRef)(null);
|
|
7982
8075
|
const handleScroll = (direction) => {
|
|
@@ -7990,8 +8083,8 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
7990
8083
|
}
|
|
7991
8084
|
};
|
|
7992
8085
|
const showNavigation = files.length > 2;
|
|
7993
|
-
return /* @__PURE__ */ (0,
|
|
7994
|
-
showNavigation && /* @__PURE__ */ (0,
|
|
8086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_Box9.default, { sx: { position: "relative", width: 1 }, children: [
|
|
8087
|
+
showNavigation && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
7995
8088
|
import_IconButton3.default,
|
|
7996
8089
|
{
|
|
7997
8090
|
size: "small",
|
|
@@ -8008,10 +8101,10 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8008
8101
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
8009
8102
|
}
|
|
8010
8103
|
},
|
|
8011
|
-
children: /* @__PURE__ */ (0,
|
|
8104
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: "NavArrowLeft", width: 20 })
|
|
8012
8105
|
}
|
|
8013
8106
|
),
|
|
8014
|
-
/* @__PURE__ */ (0,
|
|
8107
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8015
8108
|
import_Box9.default,
|
|
8016
8109
|
{
|
|
8017
8110
|
ref: scrollRef,
|
|
@@ -8030,7 +8123,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8030
8123
|
children: files.map((file, index) => {
|
|
8031
8124
|
const fileName = typeof file === "string" ? file : file.name;
|
|
8032
8125
|
const previewUrl = typeof file === "string" ? file : URL.createObjectURL(file);
|
|
8033
|
-
return /* @__PURE__ */ (0,
|
|
8126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8034
8127
|
import_Box9.default,
|
|
8035
8128
|
{
|
|
8036
8129
|
sx: {
|
|
@@ -8042,7 +8135,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8042
8135
|
flexShrink: 0
|
|
8043
8136
|
},
|
|
8044
8137
|
children: [
|
|
8045
|
-
/* @__PURE__ */ (0,
|
|
8138
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8046
8139
|
import_Box9.default,
|
|
8047
8140
|
{
|
|
8048
8141
|
component: "img",
|
|
@@ -8056,7 +8149,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8056
8149
|
}
|
|
8057
8150
|
}
|
|
8058
8151
|
),
|
|
8059
|
-
onRemove && /* @__PURE__ */ (0,
|
|
8152
|
+
onRemove && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8060
8153
|
DeleteButton,
|
|
8061
8154
|
{
|
|
8062
8155
|
onClick: (e) => {
|
|
@@ -8072,7 +8165,7 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8072
8165
|
})
|
|
8073
8166
|
}
|
|
8074
8167
|
),
|
|
8075
|
-
showNavigation && /* @__PURE__ */ (0,
|
|
8168
|
+
showNavigation && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8076
8169
|
import_IconButton3.default,
|
|
8077
8170
|
{
|
|
8078
8171
|
size: "small",
|
|
@@ -8089,137 +8182,1420 @@ var MultiFilePreview = ({ files, onRemove }) => {
|
|
|
8089
8182
|
bgcolor: (theme) => varAlpha(theme.vars.palette.common.whiteChannel, 1)
|
|
8090
8183
|
}
|
|
8091
8184
|
},
|
|
8092
|
-
children: /* @__PURE__ */ (0,
|
|
8093
|
-
}
|
|
8094
|
-
)
|
|
8095
|
-
] });
|
|
8185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: "NavArrowRight", width: 20 })
|
|
8186
|
+
}
|
|
8187
|
+
)
|
|
8188
|
+
] });
|
|
8189
|
+
};
|
|
8190
|
+
|
|
8191
|
+
// src/components/Upload/Upload.tsx
|
|
8192
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
8193
|
+
var Upload = ({
|
|
8194
|
+
sx,
|
|
8195
|
+
value,
|
|
8196
|
+
error: error2,
|
|
8197
|
+
disabled,
|
|
8198
|
+
onDelete,
|
|
8199
|
+
onUpload,
|
|
8200
|
+
onRemove,
|
|
8201
|
+
helperText,
|
|
8202
|
+
onRemoveAll,
|
|
8203
|
+
uploadProgress,
|
|
8204
|
+
isUploading = false,
|
|
8205
|
+
multiple = false,
|
|
8206
|
+
...rest
|
|
8207
|
+
}) => {
|
|
8208
|
+
const { getRootProps, getInputProps, isDragActive, isDragReject, fileRejections } = (0, import_react_dropzone.useDropzone)({
|
|
8209
|
+
multiple,
|
|
8210
|
+
disabled,
|
|
8211
|
+
...rest
|
|
8212
|
+
});
|
|
8213
|
+
const isArray = Array.isArray(value) && multiple;
|
|
8214
|
+
const hasFile = !isArray && !!value;
|
|
8215
|
+
const hasFiles = isArray && !!value.length;
|
|
8216
|
+
const hasError = isDragReject || !!error2;
|
|
8217
|
+
const renderContent = () => {
|
|
8218
|
+
if (isUploading) {
|
|
8219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UploadProgress, { progress: uploadProgress });
|
|
8220
|
+
}
|
|
8221
|
+
if (hasFile) {
|
|
8222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(SingleFilePreview, { file: value });
|
|
8223
|
+
}
|
|
8224
|
+
if (hasFiles) {
|
|
8225
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(MultiFilePreview, { files: value, onRemove });
|
|
8226
|
+
}
|
|
8227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UploadPlaceholder, { hasError });
|
|
8228
|
+
};
|
|
8229
|
+
const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
|
|
8230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_Box10.default, { sx: { width: 1, position: "relative", ...sx }, children: [
|
|
8231
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
8232
|
+
import_Box10.default,
|
|
8233
|
+
{
|
|
8234
|
+
...shouldShowDropzone ? getRootProps() : {},
|
|
8235
|
+
sx: {
|
|
8236
|
+
p: hasFiles || hasFile ? 0 : 7,
|
|
8237
|
+
outline: "none",
|
|
8238
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
8239
|
+
cursor: shouldShowDropzone ? "pointer" : "default",
|
|
8240
|
+
overflow: "hidden",
|
|
8241
|
+
position: "relative",
|
|
8242
|
+
bgcolor: (theme) => varAlpha(theme.vars.palette.grey["200Channel"], 0.1),
|
|
8243
|
+
border: (theme) => isUploading ? `1.5px solid ${varAlpha(theme.vars.palette.primary.mainChannel, 1)}` : `1.5px dashed ${varAlpha(theme.vars.palette.border.primaryChannel, 1)}`,
|
|
8244
|
+
transition: (theme) => theme.transitions.create(["opacity", "padding"]),
|
|
8245
|
+
...shouldShowDropzone && {
|
|
8246
|
+
"&:hover": { opacity: 0.72 }
|
|
8247
|
+
},
|
|
8248
|
+
...isDragActive && { opacity: 0.72 },
|
|
8249
|
+
...disabled && { opacity: 0.48, pointerEvents: "none" },
|
|
8250
|
+
...hasError && {
|
|
8251
|
+
color: "error.main",
|
|
8252
|
+
borderColor: "error.main",
|
|
8253
|
+
bgcolor: (theme) => varAlpha(theme.vars.palette.error.mainChannel, 0.08)
|
|
8254
|
+
},
|
|
8255
|
+
...isUploading && {
|
|
8256
|
+
minHeight: 148,
|
|
8257
|
+
display: "flex",
|
|
8258
|
+
alignItems: "center",
|
|
8259
|
+
justifyContent: "center"
|
|
8260
|
+
},
|
|
8261
|
+
...hasFile && { padding: "18% 0" },
|
|
8262
|
+
...hasFiles && {
|
|
8263
|
+
padding: 3,
|
|
8264
|
+
minHeight: 148,
|
|
8265
|
+
display: "flex",
|
|
8266
|
+
alignItems: "center"
|
|
8267
|
+
}
|
|
8268
|
+
},
|
|
8269
|
+
children: [
|
|
8270
|
+
shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("input", { ...getInputProps() }),
|
|
8271
|
+
renderContent()
|
|
8272
|
+
]
|
|
8273
|
+
}
|
|
8274
|
+
),
|
|
8275
|
+
hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(DeleteButton, { onClick: onDelete }),
|
|
8276
|
+
hasFiles && /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_Stack4.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
|
|
8277
|
+
onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8278
|
+
import_Button3.default,
|
|
8279
|
+
{
|
|
8280
|
+
variant: "outlined",
|
|
8281
|
+
color: "inherit",
|
|
8282
|
+
size: "small",
|
|
8283
|
+
onClick: onRemoveAll,
|
|
8284
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
|
|
8285
|
+
children: "Remove all"
|
|
8286
|
+
}
|
|
8287
|
+
),
|
|
8288
|
+
onUpload && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
8289
|
+
import_Button3.default,
|
|
8290
|
+
{
|
|
8291
|
+
variant: "contained",
|
|
8292
|
+
size: "small",
|
|
8293
|
+
onClick: onUpload,
|
|
8294
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
|
|
8295
|
+
children: "Upload files"
|
|
8296
|
+
}
|
|
8297
|
+
)
|
|
8298
|
+
] }),
|
|
8299
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_FormHelperText.default, { error: !!error2, sx: { color: "text.body", fontWeight: 500, mt: 1 }, children: helperText }),
|
|
8300
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(RejectionFiles, { files: [...fileRejections] })
|
|
8301
|
+
] });
|
|
8302
|
+
};
|
|
8303
|
+
|
|
8304
|
+
// src/components/Dialog/classes.ts
|
|
8305
|
+
var dialogClasses = {
|
|
8306
|
+
root: "undefine__Dialog-root",
|
|
8307
|
+
closeButton: "undefine__Dialog-closeButton"
|
|
8308
|
+
};
|
|
8309
|
+
var feedbackDialogClasses = {
|
|
8310
|
+
root: "undefine__FeedbackDialog-root",
|
|
8311
|
+
image: "undefine__FeedbackDialog-image",
|
|
8312
|
+
title: "undefine__FeedbackDialog-title",
|
|
8313
|
+
description: "undefine__FeedbackDialog-description",
|
|
8314
|
+
actions: "undefine__FeedbackDialog-actions"
|
|
8315
|
+
};
|
|
8316
|
+
|
|
8317
|
+
// src/components/Dialog/CustomDialog.tsx
|
|
8318
|
+
var import_Box11 = __toESM(require("@mui/material/Box"), 1);
|
|
8319
|
+
var import_IconButton4 = __toESM(require("@mui/material/IconButton"), 1);
|
|
8320
|
+
var import_Dialog = __toESM(require("@mui/material/Dialog"), 1);
|
|
8321
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
8322
|
+
var CustomDialog = ({ children, onClose, className, ...props }) => {
|
|
8323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
8324
|
+
import_Dialog.default,
|
|
8325
|
+
{
|
|
8326
|
+
className: dialogClasses.root.concat(className ? ` ${className}` : ""),
|
|
8327
|
+
onClose,
|
|
8328
|
+
...props,
|
|
8329
|
+
children: [
|
|
8330
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
8331
|
+
import_IconButton4.default,
|
|
8332
|
+
{
|
|
8333
|
+
"aria-label": "close",
|
|
8334
|
+
onClick: onClose,
|
|
8335
|
+
className: dialogClasses.closeButton,
|
|
8336
|
+
sx: {
|
|
8337
|
+
position: "absolute",
|
|
8338
|
+
right: 24,
|
|
8339
|
+
top: 24,
|
|
8340
|
+
color: (theme) => theme.vars.palette.text.body,
|
|
8341
|
+
zIndex: 1
|
|
8342
|
+
},
|
|
8343
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
8344
|
+
}
|
|
8345
|
+
),
|
|
8346
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_Box11.default, { sx: { p: 4, pt: 9.5 }, children })
|
|
8347
|
+
]
|
|
8348
|
+
}
|
|
8349
|
+
);
|
|
8350
|
+
};
|
|
8351
|
+
|
|
8352
|
+
// src/components/Dialog/FeedbackDialog.tsx
|
|
8353
|
+
var import_Stack5 = __toESM(require("@mui/material/Stack"), 1);
|
|
8354
|
+
var import_Box12 = __toESM(require("@mui/material/Box"), 1);
|
|
8355
|
+
var import_Typography5 = __toESM(require("@mui/material/Typography"), 1);
|
|
8356
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
8357
|
+
var FeedbackDialog = ({
|
|
8358
|
+
image,
|
|
8359
|
+
title,
|
|
8360
|
+
description,
|
|
8361
|
+
actions,
|
|
8362
|
+
feedbackSlotProps,
|
|
8363
|
+
slotProps,
|
|
8364
|
+
...props
|
|
8365
|
+
}) => {
|
|
8366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8367
|
+
CustomDialog,
|
|
8368
|
+
{
|
|
8369
|
+
slotProps: {
|
|
8370
|
+
...slotProps,
|
|
8371
|
+
paper: {
|
|
8372
|
+
sx: { minWidth: 360, maxWidth: 420 },
|
|
8373
|
+
...slotProps?.paper
|
|
8374
|
+
}
|
|
8375
|
+
},
|
|
8376
|
+
...props,
|
|
8377
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_Stack5.default, { className: feedbackDialogClasses.root, alignItems: "center", spacing: 2.5, children: [
|
|
8378
|
+
image && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8379
|
+
import_Box12.default,
|
|
8380
|
+
{
|
|
8381
|
+
component: "img",
|
|
8382
|
+
alt: "feedback",
|
|
8383
|
+
src: image,
|
|
8384
|
+
className: feedbackDialogClasses.image,
|
|
8385
|
+
sx: {
|
|
8386
|
+
width: 80,
|
|
8387
|
+
height: 80,
|
|
8388
|
+
objectFit: "contain",
|
|
8389
|
+
...feedbackSlotProps?.image
|
|
8390
|
+
}
|
|
8391
|
+
}
|
|
8392
|
+
),
|
|
8393
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8394
|
+
import_Typography5.default,
|
|
8395
|
+
{
|
|
8396
|
+
variant: "h4",
|
|
8397
|
+
className: feedbackDialogClasses.title,
|
|
8398
|
+
sx: {
|
|
8399
|
+
textAlign: "center",
|
|
8400
|
+
fontWeight: 500,
|
|
8401
|
+
color: "text.header",
|
|
8402
|
+
...feedbackSlotProps?.title
|
|
8403
|
+
},
|
|
8404
|
+
children: title
|
|
8405
|
+
}
|
|
8406
|
+
),
|
|
8407
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8408
|
+
import_Typography5.default,
|
|
8409
|
+
{
|
|
8410
|
+
variant: "body2",
|
|
8411
|
+
className: feedbackDialogClasses.description,
|
|
8412
|
+
sx: {
|
|
8413
|
+
textAlign: "center",
|
|
8414
|
+
color: "text.body",
|
|
8415
|
+
...feedbackSlotProps?.description
|
|
8416
|
+
},
|
|
8417
|
+
children: description
|
|
8418
|
+
}
|
|
8419
|
+
),
|
|
8420
|
+
actions && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
8421
|
+
import_Box12.default,
|
|
8422
|
+
{
|
|
8423
|
+
className: feedbackDialogClasses.actions,
|
|
8424
|
+
sx: {
|
|
8425
|
+
display: "flex",
|
|
8426
|
+
flexDirection: "column",
|
|
8427
|
+
gap: 1,
|
|
8428
|
+
width: "100%",
|
|
8429
|
+
...feedbackSlotProps?.actions
|
|
8430
|
+
},
|
|
8431
|
+
children: actions
|
|
8432
|
+
}
|
|
8433
|
+
)
|
|
8434
|
+
] })
|
|
8435
|
+
}
|
|
8436
|
+
);
|
|
8437
|
+
};
|
|
8438
|
+
|
|
8439
|
+
// src/components/Drawer/classes.ts
|
|
8440
|
+
var drawerClasses = {
|
|
8441
|
+
root: "undefine__Drawer-root",
|
|
8442
|
+
header: "undefine__Drawer-header",
|
|
8443
|
+
title: "undefine__Drawer-title",
|
|
8444
|
+
closeButton: "undefine__Drawer-closeButton",
|
|
8445
|
+
content: "undefine__Drawer-content"
|
|
8446
|
+
};
|
|
8447
|
+
|
|
8448
|
+
// src/components/Drawer/CustomDrawer.tsx
|
|
8449
|
+
var import_Box13 = __toESM(require("@mui/material/Box"), 1);
|
|
8450
|
+
var import_IconButton5 = __toESM(require("@mui/material/IconButton"), 1);
|
|
8451
|
+
var import_Typography6 = __toESM(require("@mui/material/Typography"), 1);
|
|
8452
|
+
var import_Drawer = __toESM(require("@mui/material/Drawer"), 1);
|
|
8453
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
8454
|
+
var CustomDrawer = ({
|
|
8455
|
+
title,
|
|
8456
|
+
children,
|
|
8457
|
+
onClose,
|
|
8458
|
+
className,
|
|
8459
|
+
anchor = "right",
|
|
8460
|
+
slotProps,
|
|
8461
|
+
...props
|
|
8462
|
+
}) => {
|
|
8463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
8464
|
+
import_Drawer.default,
|
|
8465
|
+
{
|
|
8466
|
+
anchor,
|
|
8467
|
+
className: drawerClasses.root.concat(className ? ` ${className}` : ""),
|
|
8468
|
+
onClose,
|
|
8469
|
+
slotProps: {
|
|
8470
|
+
...slotProps,
|
|
8471
|
+
paper: {
|
|
8472
|
+
sx: {
|
|
8473
|
+
width: { xs: "100%", sm: 400 },
|
|
8474
|
+
display: "flex",
|
|
8475
|
+
flexDirection: "column"
|
|
8476
|
+
},
|
|
8477
|
+
...slotProps?.paper
|
|
8478
|
+
}
|
|
8479
|
+
},
|
|
8480
|
+
...props,
|
|
8481
|
+
children: [
|
|
8482
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
8483
|
+
import_Box13.default,
|
|
8484
|
+
{
|
|
8485
|
+
className: drawerClasses.header,
|
|
8486
|
+
sx: {
|
|
8487
|
+
display: "flex",
|
|
8488
|
+
alignItems: "center",
|
|
8489
|
+
justifyContent: "space-between",
|
|
8490
|
+
p: 4,
|
|
8491
|
+
borderBottom: (theme) => `0.5px solid ${theme.vars.palette.border.mute}`,
|
|
8492
|
+
flexShrink: 0
|
|
8493
|
+
},
|
|
8494
|
+
children: [
|
|
8495
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
8496
|
+
import_Typography6.default,
|
|
8497
|
+
{
|
|
8498
|
+
variant: "h4",
|
|
8499
|
+
className: drawerClasses.title,
|
|
8500
|
+
sx: {
|
|
8501
|
+
fontWeight: 500,
|
|
8502
|
+
color: "text.header",
|
|
8503
|
+
letterSpacing: "-1px",
|
|
8504
|
+
flex: 1
|
|
8505
|
+
},
|
|
8506
|
+
children: title
|
|
8507
|
+
}
|
|
8508
|
+
),
|
|
8509
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
8510
|
+
import_IconButton5.default,
|
|
8511
|
+
{
|
|
8512
|
+
"aria-label": "close",
|
|
8513
|
+
onClick: onClose,
|
|
8514
|
+
className: drawerClasses.closeButton,
|
|
8515
|
+
sx: {
|
|
8516
|
+
color: "text.body",
|
|
8517
|
+
p: 0
|
|
8518
|
+
},
|
|
8519
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Icon, { icon: "XMark", sx: { width: 25, height: 24 } })
|
|
8520
|
+
}
|
|
8521
|
+
)
|
|
8522
|
+
]
|
|
8523
|
+
}
|
|
8524
|
+
),
|
|
8525
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
8526
|
+
import_Box13.default,
|
|
8527
|
+
{
|
|
8528
|
+
className: drawerClasses.content,
|
|
8529
|
+
sx: {
|
|
8530
|
+
flex: 1,
|
|
8531
|
+
overflow: "auto",
|
|
8532
|
+
p: 4,
|
|
8533
|
+
pt: 3
|
|
8534
|
+
},
|
|
8535
|
+
children
|
|
8536
|
+
}
|
|
8537
|
+
)
|
|
8538
|
+
]
|
|
8539
|
+
}
|
|
8540
|
+
);
|
|
8541
|
+
};
|
|
8542
|
+
|
|
8543
|
+
// src/components/Toolbar/classes.ts
|
|
8544
|
+
var toolbarClasses = {
|
|
8545
|
+
root: "undefine__Toolbar-root",
|
|
8546
|
+
button: "undefine__Toolbar-button",
|
|
8547
|
+
buttonOpen: "undefine__Toolbar-button--open",
|
|
8548
|
+
buttonIcon: "undefine__Toolbar-button-icon",
|
|
8549
|
+
buttonLabel: "undefine__Toolbar-button-label",
|
|
8550
|
+
searchField: "undefine__Toolbar-searchField",
|
|
8551
|
+
searchFieldFocused: "undefine__Toolbar-searchField--focused",
|
|
8552
|
+
searchIcon: "undefine__Toolbar-searchIcon",
|
|
8553
|
+
searchInput: "undefine__Toolbar-searchInput",
|
|
8554
|
+
searchClearButton: "undefine__Toolbar-searchClearButton",
|
|
8555
|
+
viewSwitcher: "undefine__Toolbar-viewSwitcher",
|
|
8556
|
+
viewSwitcherLabel: "undefine__Toolbar-viewSwitcher-label",
|
|
8557
|
+
viewSwitcherIcon: "undefine__Toolbar-viewSwitcher-icon",
|
|
8558
|
+
filterDropdown: "undefine__Toolbar-filterDropdown",
|
|
8559
|
+
sortDropdown: "undefine__Toolbar-sortDropdown",
|
|
8560
|
+
dateRangeDropdown: "undefine__Toolbar-dateRangeDropdown"
|
|
8561
|
+
};
|
|
8562
|
+
|
|
8563
|
+
// src/components/Toolbar/SortDropdown.tsx
|
|
8564
|
+
var import_react14 = require("react");
|
|
8565
|
+
var import_Box14 = __toESM(require("@mui/material/Box"), 1);
|
|
8566
|
+
var import_Radio2 = __toESM(require("@mui/material/Radio"), 1);
|
|
8567
|
+
var import_Popover = __toESM(require("@mui/material/Popover"), 1);
|
|
8568
|
+
var import_Typography8 = __toESM(require("@mui/material/Typography"), 1);
|
|
8569
|
+
var import_ButtonBase2 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
8570
|
+
var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"), 1);
|
|
8571
|
+
var import_FormControlLabel2 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
8572
|
+
|
|
8573
|
+
// src/components/Toolbar/ToolbarButton.tsx
|
|
8574
|
+
var import_Typography7 = __toESM(require("@mui/material/Typography"), 1);
|
|
8575
|
+
var import_ButtonBase = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
8576
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
8577
|
+
var baseStyles2 = {
|
|
8578
|
+
display: "flex",
|
|
8579
|
+
alignItems: "center",
|
|
8580
|
+
gap: 1,
|
|
8581
|
+
px: 1.25,
|
|
8582
|
+
py: 0.75,
|
|
8583
|
+
bgcolor: "common.white",
|
|
8584
|
+
border: "0.5px solid",
|
|
8585
|
+
borderColor: "border.mute",
|
|
8586
|
+
borderBottomWidth: "1.5px",
|
|
8587
|
+
cursor: "pointer",
|
|
8588
|
+
"&:hover": {
|
|
8589
|
+
bgcolor: "grey.50"
|
|
8590
|
+
}
|
|
8591
|
+
};
|
|
8592
|
+
var openStyles = {
|
|
8593
|
+
boxShadow: "0px 0px 0px 1.6px white, 0px 0px 0px 3.2px var(--mui-palette-primary-300)"
|
|
8594
|
+
};
|
|
8595
|
+
var ToolbarButton = ({
|
|
8596
|
+
icon: icon2,
|
|
8597
|
+
label,
|
|
8598
|
+
open = false,
|
|
8599
|
+
className,
|
|
8600
|
+
sx,
|
|
8601
|
+
...props
|
|
8602
|
+
}) => {
|
|
8603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
8604
|
+
import_ButtonBase.default,
|
|
8605
|
+
{
|
|
8606
|
+
className: toolbarClasses.button.concat(
|
|
8607
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
8608
|
+
className ? ` ${className}` : ""
|
|
8609
|
+
),
|
|
8610
|
+
sx: {
|
|
8611
|
+
...baseStyles2,
|
|
8612
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
8613
|
+
...open && openStyles,
|
|
8614
|
+
...sx
|
|
8615
|
+
},
|
|
8616
|
+
...props,
|
|
8617
|
+
children: [
|
|
8618
|
+
icon2 && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
8619
|
+
Icon,
|
|
8620
|
+
{
|
|
8621
|
+
icon: icon2,
|
|
8622
|
+
className: toolbarClasses.buttonIcon,
|
|
8623
|
+
sx: { width: 16, height: 16, color: "text.header" }
|
|
8624
|
+
}
|
|
8625
|
+
),
|
|
8626
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
8627
|
+
import_Typography7.default,
|
|
8628
|
+
{
|
|
8629
|
+
variant: "body2",
|
|
8630
|
+
className: toolbarClasses.buttonLabel,
|
|
8631
|
+
sx: {
|
|
8632
|
+
fontSize: 14,
|
|
8633
|
+
lineHeight: "22px",
|
|
8634
|
+
color: "text.header",
|
|
8635
|
+
whiteSpace: "nowrap"
|
|
8636
|
+
},
|
|
8637
|
+
children: label
|
|
8638
|
+
}
|
|
8639
|
+
)
|
|
8640
|
+
]
|
|
8641
|
+
}
|
|
8642
|
+
);
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
// src/components/Toolbar/ToolbarSortButton.tsx
|
|
8646
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
8647
|
+
var ToolbarSortButton = ({ label = "Sort", ...props }) => {
|
|
8648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ToolbarButton, { icon: "SortUp", label, ...props });
|
|
8649
|
+
};
|
|
8650
|
+
|
|
8651
|
+
// src/components/Toolbar/SortDropdown.tsx
|
|
8652
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8653
|
+
var SortDropdown = (0, import_react14.forwardRef)(
|
|
8654
|
+
({
|
|
8655
|
+
options,
|
|
8656
|
+
value: externalValue,
|
|
8657
|
+
direction: externalDirection = "asc",
|
|
8658
|
+
onChange,
|
|
8659
|
+
onClose,
|
|
8660
|
+
buttonLabel = "Sort",
|
|
8661
|
+
ascLabel = "Ascending",
|
|
8662
|
+
descLabel = "Descending",
|
|
8663
|
+
popoverSx,
|
|
8664
|
+
PopoverProps,
|
|
8665
|
+
disabled
|
|
8666
|
+
}, ref) => {
|
|
8667
|
+
const [anchorEl, setAnchorEl] = (0, import_react14.useState)(null);
|
|
8668
|
+
const [internalValue, setInternalValue] = (0, import_react14.useState)(options[0]?.value || "");
|
|
8669
|
+
const [internalDirection, setInternalDirection] = (0, import_react14.useState)("asc");
|
|
8670
|
+
const open = Boolean(anchorEl);
|
|
8671
|
+
const currentValue = externalValue ?? internalValue;
|
|
8672
|
+
const currentDirection = externalValue !== void 0 ? externalDirection : internalDirection;
|
|
8673
|
+
const handleOpen = (0, import_react14.useCallback)((event) => {
|
|
8674
|
+
setAnchorEl(event.currentTarget);
|
|
8675
|
+
}, []);
|
|
8676
|
+
const handleClose = (0, import_react14.useCallback)(() => {
|
|
8677
|
+
setAnchorEl(null);
|
|
8678
|
+
onClose?.();
|
|
8679
|
+
}, [onClose]);
|
|
8680
|
+
const handleValueChange = (0, import_react14.useCallback)(
|
|
8681
|
+
(event) => {
|
|
8682
|
+
const newValue = event.target.value;
|
|
8683
|
+
if (externalValue === void 0) {
|
|
8684
|
+
setInternalValue(newValue);
|
|
8685
|
+
}
|
|
8686
|
+
onChange?.(newValue, currentDirection);
|
|
8687
|
+
},
|
|
8688
|
+
[externalValue, onChange, currentDirection]
|
|
8689
|
+
);
|
|
8690
|
+
const handleDirectionChange = (0, import_react14.useCallback)(
|
|
8691
|
+
(newDirection) => {
|
|
8692
|
+
if (externalValue === void 0) {
|
|
8693
|
+
setInternalDirection(newDirection);
|
|
8694
|
+
}
|
|
8695
|
+
onChange?.(currentValue, newDirection);
|
|
8696
|
+
},
|
|
8697
|
+
[externalValue, onChange, currentValue]
|
|
8698
|
+
);
|
|
8699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_Box14.default, { ref, className: toolbarClasses.sortDropdown, children: [
|
|
8700
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8701
|
+
ToolbarSortButton,
|
|
8702
|
+
{
|
|
8703
|
+
label: buttonLabel,
|
|
8704
|
+
open,
|
|
8705
|
+
onClick: handleOpen,
|
|
8706
|
+
disabled
|
|
8707
|
+
}
|
|
8708
|
+
),
|
|
8709
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8710
|
+
import_Popover.default,
|
|
8711
|
+
{
|
|
8712
|
+
open,
|
|
8713
|
+
anchorEl,
|
|
8714
|
+
onClose: handleClose,
|
|
8715
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8716
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8717
|
+
slotProps: {
|
|
8718
|
+
paper: {
|
|
8719
|
+
sx: {
|
|
8720
|
+
pb: 0,
|
|
8721
|
+
px: 0,
|
|
8722
|
+
...popoverSx
|
|
8723
|
+
}
|
|
8724
|
+
}
|
|
8725
|
+
},
|
|
8726
|
+
...PopoverProps,
|
|
8727
|
+
children: [
|
|
8728
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_RadioGroup.default, { value: currentValue, onChange: handleValueChange, sx: { px: 1, py: 0.5 }, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8729
|
+
import_FormControlLabel2.default,
|
|
8730
|
+
{
|
|
8731
|
+
value: option.value,
|
|
8732
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8733
|
+
import_Radio2.default,
|
|
8734
|
+
{
|
|
8735
|
+
sx: {
|
|
8736
|
+
p: 0,
|
|
8737
|
+
mr: 1,
|
|
8738
|
+
"& .MuiSvgIcon-root": {
|
|
8739
|
+
width: 16,
|
|
8740
|
+
height: 16
|
|
8741
|
+
},
|
|
8742
|
+
"&.Mui-checked": {
|
|
8743
|
+
color: "primary.500"
|
|
8744
|
+
}
|
|
8745
|
+
}
|
|
8746
|
+
}
|
|
8747
|
+
),
|
|
8748
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8749
|
+
import_Typography8.default,
|
|
8750
|
+
{
|
|
8751
|
+
sx: {
|
|
8752
|
+
fontSize: 14,
|
|
8753
|
+
fontWeight: 500,
|
|
8754
|
+
lineHeight: "22px",
|
|
8755
|
+
color: "text.header"
|
|
8756
|
+
},
|
|
8757
|
+
children: option.label
|
|
8758
|
+
}
|
|
8759
|
+
),
|
|
8760
|
+
sx: {
|
|
8761
|
+
mx: 0,
|
|
8762
|
+
mb: 1.5,
|
|
8763
|
+
alignItems: "center"
|
|
8764
|
+
}
|
|
8765
|
+
},
|
|
8766
|
+
option.value
|
|
8767
|
+
)) }),
|
|
8768
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8769
|
+
import_Box14.default,
|
|
8770
|
+
{
|
|
8771
|
+
sx: {
|
|
8772
|
+
display: "flex",
|
|
8773
|
+
borderTop: "0.5px solid",
|
|
8774
|
+
borderColor: "border.mute",
|
|
8775
|
+
overflow: "hidden"
|
|
8776
|
+
},
|
|
8777
|
+
children: [
|
|
8778
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8779
|
+
import_ButtonBase2.default,
|
|
8780
|
+
{
|
|
8781
|
+
onClick: () => handleDirectionChange("asc"),
|
|
8782
|
+
sx: {
|
|
8783
|
+
display: "flex",
|
|
8784
|
+
alignItems: "center",
|
|
8785
|
+
gap: 0.875,
|
|
8786
|
+
px: 1,
|
|
8787
|
+
py: 0.75,
|
|
8788
|
+
bgcolor: currentDirection === "asc" ? "primary.100" : "transparent",
|
|
8789
|
+
transition: "background-color 0.2s",
|
|
8790
|
+
"&:hover": {
|
|
8791
|
+
bgcolor: currentDirection === "asc" ? "primary.100" : "grey.50"
|
|
8792
|
+
}
|
|
8793
|
+
},
|
|
8794
|
+
children: [
|
|
8795
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8796
|
+
Icon,
|
|
8797
|
+
{
|
|
8798
|
+
icon: "SortUp",
|
|
8799
|
+
sx: {
|
|
8800
|
+
width: 16,
|
|
8801
|
+
height: 16,
|
|
8802
|
+
color: currentDirection === "asc" ? "text.action" : "text.header"
|
|
8803
|
+
}
|
|
8804
|
+
}
|
|
8805
|
+
),
|
|
8806
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8807
|
+
import_Typography8.default,
|
|
8808
|
+
{
|
|
8809
|
+
sx: {
|
|
8810
|
+
fontSize: 12,
|
|
8811
|
+
lineHeight: "18px",
|
|
8812
|
+
color: currentDirection === "asc" ? "text.action" : "text.header"
|
|
8813
|
+
},
|
|
8814
|
+
children: ascLabel
|
|
8815
|
+
}
|
|
8816
|
+
)
|
|
8817
|
+
]
|
|
8818
|
+
}
|
|
8819
|
+
),
|
|
8820
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
|
|
8821
|
+
import_ButtonBase2.default,
|
|
8822
|
+
{
|
|
8823
|
+
onClick: () => handleDirectionChange("desc"),
|
|
8824
|
+
sx: {
|
|
8825
|
+
display: "flex",
|
|
8826
|
+
alignItems: "center",
|
|
8827
|
+
gap: 0.875,
|
|
8828
|
+
px: 1,
|
|
8829
|
+
py: 0.75,
|
|
8830
|
+
bgcolor: currentDirection === "desc" ? "primary.100" : "transparent",
|
|
8831
|
+
transition: "background-color 0.2s",
|
|
8832
|
+
"&:hover": {
|
|
8833
|
+
bgcolor: currentDirection === "desc" ? "primary.100" : "grey.50"
|
|
8834
|
+
}
|
|
8835
|
+
},
|
|
8836
|
+
children: [
|
|
8837
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8838
|
+
Icon,
|
|
8839
|
+
{
|
|
8840
|
+
icon: "SortDown",
|
|
8841
|
+
sx: {
|
|
8842
|
+
width: 16,
|
|
8843
|
+
height: 16,
|
|
8844
|
+
color: currentDirection === "desc" ? "text.action" : "text.header"
|
|
8845
|
+
}
|
|
8846
|
+
}
|
|
8847
|
+
),
|
|
8848
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8849
|
+
import_Typography8.default,
|
|
8850
|
+
{
|
|
8851
|
+
sx: {
|
|
8852
|
+
fontSize: 12,
|
|
8853
|
+
lineHeight: "18px",
|
|
8854
|
+
color: currentDirection === "desc" ? "text.action" : "text.header"
|
|
8855
|
+
},
|
|
8856
|
+
children: descLabel
|
|
8857
|
+
}
|
|
8858
|
+
)
|
|
8859
|
+
]
|
|
8860
|
+
}
|
|
8861
|
+
)
|
|
8862
|
+
]
|
|
8863
|
+
}
|
|
8864
|
+
)
|
|
8865
|
+
]
|
|
8866
|
+
}
|
|
8867
|
+
)
|
|
8868
|
+
] });
|
|
8869
|
+
}
|
|
8870
|
+
);
|
|
8871
|
+
SortDropdown.displayName = "SortDropdown";
|
|
8872
|
+
|
|
8873
|
+
// src/components/Toolbar/FilterDropdown.tsx
|
|
8874
|
+
var import_react15 = require("react");
|
|
8875
|
+
var import_Box15 = __toESM(require("@mui/material/Box"), 1);
|
|
8876
|
+
var import_Popover2 = __toESM(require("@mui/material/Popover"), 1);
|
|
8877
|
+
|
|
8878
|
+
// src/components/Toolbar/ToolbarFilterButton.tsx
|
|
8879
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
8880
|
+
var ToolbarFilterButton = ({ label = "Filter", ...props }) => {
|
|
8881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ToolbarButton, { icon: "FilterList", label, ...props });
|
|
8882
|
+
};
|
|
8883
|
+
|
|
8884
|
+
// src/components/Toolbar/FilterDropdown.tsx
|
|
8885
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
8886
|
+
var FilterDropdown = (0, import_react15.forwardRef)(
|
|
8887
|
+
({ children, onClose, buttonLabel = "Filter", popoverSx, PopoverProps, disabled }, ref) => {
|
|
8888
|
+
const [anchorEl, setAnchorEl] = (0, import_react15.useState)(null);
|
|
8889
|
+
const open = Boolean(anchorEl);
|
|
8890
|
+
const handleOpen = (0, import_react15.useCallback)((event) => {
|
|
8891
|
+
setAnchorEl(event.currentTarget);
|
|
8892
|
+
}, []);
|
|
8893
|
+
const handleClose = (0, import_react15.useCallback)(() => {
|
|
8894
|
+
setAnchorEl(null);
|
|
8895
|
+
onClose?.();
|
|
8896
|
+
}, [onClose]);
|
|
8897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_Box15.default, { ref, className: toolbarClasses.filterDropdown, children: [
|
|
8898
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8899
|
+
ToolbarFilterButton,
|
|
8900
|
+
{
|
|
8901
|
+
label: buttonLabel,
|
|
8902
|
+
open,
|
|
8903
|
+
onClick: handleOpen,
|
|
8904
|
+
disabled
|
|
8905
|
+
}
|
|
8906
|
+
),
|
|
8907
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
8908
|
+
import_Popover2.default,
|
|
8909
|
+
{
|
|
8910
|
+
open,
|
|
8911
|
+
anchorEl,
|
|
8912
|
+
onClose: handleClose,
|
|
8913
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8914
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8915
|
+
slotProps: {
|
|
8916
|
+
paper: {
|
|
8917
|
+
sx: {
|
|
8918
|
+
mt: 1,
|
|
8919
|
+
p: 2.5,
|
|
8920
|
+
width: 360,
|
|
8921
|
+
borderRadius: (theme) => theme.radius["radius-2xl"],
|
|
8922
|
+
border: "0.5px solid",
|
|
8923
|
+
borderColor: "border.mute",
|
|
8924
|
+
boxShadow: "-1px 2px 10px 0px rgba(0, 0, 0, 0.1)",
|
|
8925
|
+
display: "flex",
|
|
8926
|
+
flexDirection: "column",
|
|
8927
|
+
gap: 2,
|
|
8928
|
+
...popoverSx
|
|
8929
|
+
}
|
|
8930
|
+
}
|
|
8931
|
+
},
|
|
8932
|
+
...PopoverProps,
|
|
8933
|
+
children
|
|
8934
|
+
}
|
|
8935
|
+
)
|
|
8936
|
+
] });
|
|
8937
|
+
}
|
|
8938
|
+
);
|
|
8939
|
+
FilterDropdown.displayName = "FilterDropdown";
|
|
8940
|
+
|
|
8941
|
+
// src/components/Toolbar/DateRangeDropdown.tsx
|
|
8942
|
+
var import_react17 = require("react");
|
|
8943
|
+
var import_date_fns2 = require("date-fns");
|
|
8944
|
+
var import_Popover3 = __toESM(require("@mui/material/Popover"), 1);
|
|
8945
|
+
|
|
8946
|
+
// src/components/Toolbar/ToolbarDatePickerButton.tsx
|
|
8947
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
8948
|
+
var ToolbarDatePickerButton = ({
|
|
8949
|
+
label = "Last 30 days",
|
|
8950
|
+
...props
|
|
8951
|
+
}) => {
|
|
8952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ToolbarButton, { icon: "Calendar", label, ...props });
|
|
8953
|
+
};
|
|
8954
|
+
|
|
8955
|
+
// src/components/DateRangePicker/index.tsx
|
|
8956
|
+
var import_react16 = require("react");
|
|
8957
|
+
var import_date_fns = require("date-fns");
|
|
8958
|
+
var import_Box16 = __toESM(require("@mui/material/Box"), 1);
|
|
8959
|
+
var import_Radio3 = __toESM(require("@mui/material/Radio"), 1);
|
|
8960
|
+
var import_Button4 = __toESM(require("@mui/material/Button"), 1);
|
|
8961
|
+
var import_TextField2 = __toESM(require("@mui/material/TextField"), 1);
|
|
8962
|
+
var import_Typography9 = __toESM(require("@mui/material/Typography"), 1);
|
|
8963
|
+
var import_RadioGroup2 = __toESM(require("@mui/material/RadioGroup"), 1);
|
|
8964
|
+
var import_FormControlLabel3 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
8965
|
+
var import_DateCalendar = require("@mui/x-date-pickers/DateCalendar");
|
|
8966
|
+
var import_AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
|
|
8967
|
+
var import_LocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
|
|
8968
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
8969
|
+
var defaultPresets = [
|
|
8970
|
+
{ value: "today", label: "Today" },
|
|
8971
|
+
{ value: "yesterday", label: "Yesterday" },
|
|
8972
|
+
{ value: "last7days", label: "Last 7 Days" },
|
|
8973
|
+
{ value: "last30days", label: "Last 30 Days" },
|
|
8974
|
+
{ value: "last6months", label: "Last 6 Months" },
|
|
8975
|
+
{ value: "lastyear", label: "Last Year" },
|
|
8976
|
+
{ value: "alltime", label: "All Time" },
|
|
8977
|
+
{ value: "custom", label: "Custom Date" }
|
|
8978
|
+
];
|
|
8979
|
+
function getDateRangeFromPreset(preset) {
|
|
8980
|
+
const today = /* @__PURE__ */ new Date();
|
|
8981
|
+
switch (preset) {
|
|
8982
|
+
case "today":
|
|
8983
|
+
return { start: (0, import_date_fns.startOfDay)(today), end: (0, import_date_fns.endOfDay)(today) };
|
|
8984
|
+
case "yesterday":
|
|
8985
|
+
return {
|
|
8986
|
+
start: (0, import_date_fns.startOfDay)((0, import_date_fns.subDays)(today, 1)),
|
|
8987
|
+
end: (0, import_date_fns.endOfDay)((0, import_date_fns.subDays)(today, 1))
|
|
8988
|
+
};
|
|
8989
|
+
case "last7days":
|
|
8990
|
+
return { start: (0, import_date_fns.startOfDay)((0, import_date_fns.subDays)(today, 6)), end: (0, import_date_fns.endOfDay)(today) };
|
|
8991
|
+
case "last30days":
|
|
8992
|
+
return { start: (0, import_date_fns.startOfDay)((0, import_date_fns.subDays)(today, 29)), end: (0, import_date_fns.endOfDay)(today) };
|
|
8993
|
+
case "last6months":
|
|
8994
|
+
return { start: (0, import_date_fns.startOfDay)((0, import_date_fns.subMonths)(today, 6)), end: (0, import_date_fns.endOfDay)(today) };
|
|
8995
|
+
case "lastyear":
|
|
8996
|
+
return { start: (0, import_date_fns.startOfDay)((0, import_date_fns.subYears)(today, 1)), end: (0, import_date_fns.endOfDay)(today) };
|
|
8997
|
+
case "alltime":
|
|
8998
|
+
return { start: null, end: null };
|
|
8999
|
+
case "custom":
|
|
9000
|
+
default:
|
|
9001
|
+
return { start: null, end: null };
|
|
9002
|
+
}
|
|
9003
|
+
}
|
|
9004
|
+
var DateRangePicker = (0, import_react16.forwardRef)(
|
|
9005
|
+
({
|
|
9006
|
+
value: externalValue,
|
|
9007
|
+
preset: externalPreset,
|
|
9008
|
+
onChange,
|
|
9009
|
+
onCancel,
|
|
9010
|
+
applyLabel = "Apply",
|
|
9011
|
+
cancelLabel = "Cancel",
|
|
9012
|
+
presets = defaultPresets,
|
|
9013
|
+
dateFormat = "dd/MM/yyyy",
|
|
9014
|
+
showPresets = true,
|
|
9015
|
+
showActions = true,
|
|
9016
|
+
sx,
|
|
9017
|
+
minDate,
|
|
9018
|
+
maxDate
|
|
9019
|
+
}, ref) => {
|
|
9020
|
+
const [selectedPreset, setSelectedPreset] = (0, import_react16.useState)(externalPreset ?? "today");
|
|
9021
|
+
const [tempRange, setTempRange] = (0, import_react16.useState)(
|
|
9022
|
+
externalValue ?? { start: null, end: null }
|
|
9023
|
+
);
|
|
9024
|
+
const [selectingDate, setSelectingDate] = (0, import_react16.useState)("start");
|
|
9025
|
+
const handleApply = (0, import_react16.useCallback)(() => {
|
|
9026
|
+
onChange?.(tempRange, selectedPreset);
|
|
9027
|
+
}, [onChange, tempRange, selectedPreset]);
|
|
9028
|
+
const handlePresetChange = (0, import_react16.useCallback)((event) => {
|
|
9029
|
+
const newPreset = event.target.value;
|
|
9030
|
+
setSelectedPreset(newPreset);
|
|
9031
|
+
if (newPreset !== "custom") {
|
|
9032
|
+
const newRange = getDateRangeFromPreset(newPreset);
|
|
9033
|
+
setTempRange(newRange);
|
|
9034
|
+
}
|
|
9035
|
+
}, []);
|
|
9036
|
+
const handleCalendarChange = (0, import_react16.useCallback)(
|
|
9037
|
+
(date) => {
|
|
9038
|
+
if (!date) return;
|
|
9039
|
+
if (selectingDate === "start") {
|
|
9040
|
+
setTempRange((prev) => ({
|
|
9041
|
+
start: date,
|
|
9042
|
+
end: prev.end && (0, import_date_fns.isAfter)(date, prev.end) ? null : prev.end
|
|
9043
|
+
}));
|
|
9044
|
+
setSelectingDate("end");
|
|
9045
|
+
} else {
|
|
9046
|
+
setTempRange((prev) => ({
|
|
9047
|
+
start: prev.start,
|
|
9048
|
+
end: date
|
|
9049
|
+
}));
|
|
9050
|
+
setSelectingDate("start");
|
|
9051
|
+
}
|
|
9052
|
+
setSelectedPreset("custom");
|
|
9053
|
+
},
|
|
9054
|
+
[selectingDate]
|
|
9055
|
+
);
|
|
9056
|
+
const handleStartDateClick = (0, import_react16.useCallback)(() => {
|
|
9057
|
+
setSelectingDate("start");
|
|
9058
|
+
}, []);
|
|
9059
|
+
const handleEndDateClick = (0, import_react16.useCallback)(() => {
|
|
9060
|
+
setSelectingDate("end");
|
|
9061
|
+
}, []);
|
|
9062
|
+
const formattedStartDate = tempRange.start ? (0, import_date_fns.format)(tempRange.start, dateFormat) : "";
|
|
9063
|
+
const formattedEndDate = tempRange.end ? (0, import_date_fns.format)(tempRange.end, dateFormat) : "";
|
|
9064
|
+
const leftCalendarMonth = (0, import_react16.useMemo)(() => {
|
|
9065
|
+
if (tempRange.start) return tempRange.start;
|
|
9066
|
+
return /* @__PURE__ */ new Date();
|
|
9067
|
+
}, [tempRange.start]);
|
|
9068
|
+
const rightCalendarMonth = (0, import_react16.useMemo)(() => {
|
|
9069
|
+
if (tempRange.end) return tempRange.end;
|
|
9070
|
+
return (0, import_date_fns.addMonths)(/* @__PURE__ */ new Date(), 1);
|
|
9071
|
+
}, [tempRange.end]);
|
|
9072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_LocalizationProvider.LocalizationProvider, { dateAdapter: import_AdapterDateFns.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9073
|
+
import_Box16.default,
|
|
9074
|
+
{
|
|
9075
|
+
ref,
|
|
9076
|
+
sx: {
|
|
9077
|
+
display: "flex",
|
|
9078
|
+
bgcolor: "common.white",
|
|
9079
|
+
overflow: "hidden",
|
|
9080
|
+
...sx
|
|
9081
|
+
},
|
|
9082
|
+
children: [
|
|
9083
|
+
showPresets && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9084
|
+
import_Box16.default,
|
|
9085
|
+
{
|
|
9086
|
+
sx: {
|
|
9087
|
+
display: "flex",
|
|
9088
|
+
flexDirection: "column",
|
|
9089
|
+
gap: 1.5,
|
|
9090
|
+
pt: 2.5,
|
|
9091
|
+
px: 2.5,
|
|
9092
|
+
pb: 0,
|
|
9093
|
+
borderRight: "0.5px solid",
|
|
9094
|
+
borderColor: "border.mute",
|
|
9095
|
+
bgcolor: "common.white"
|
|
9096
|
+
},
|
|
9097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_RadioGroup2.default, { value: selectedPreset, onChange: handlePresetChange, children: presets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9098
|
+
import_FormControlLabel3.default,
|
|
9099
|
+
{
|
|
9100
|
+
value: preset.value,
|
|
9101
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_Radio3.default, { size: "small" }),
|
|
9102
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_Typography9.default, { variant: "body2", children: preset.label }),
|
|
9103
|
+
sx: { m: 0, mb: 1.5, gap: 1 }
|
|
9104
|
+
},
|
|
9105
|
+
preset.value
|
|
9106
|
+
)) })
|
|
9107
|
+
}
|
|
9108
|
+
),
|
|
9109
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_Box16.default, { sx: { display: "flex", flexDirection: "column" }, children: [
|
|
9110
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9111
|
+
import_Box16.default,
|
|
9112
|
+
{
|
|
9113
|
+
sx: {
|
|
9114
|
+
display: "flex",
|
|
9115
|
+
borderBottom: "0.5px solid",
|
|
9116
|
+
borderColor: "border.mute"
|
|
9117
|
+
},
|
|
9118
|
+
children: [
|
|
9119
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9120
|
+
import_DateCalendar.DateCalendar,
|
|
9121
|
+
{
|
|
9122
|
+
value: tempRange.start,
|
|
9123
|
+
onChange: handleCalendarChange,
|
|
9124
|
+
referenceDate: leftCalendarMonth,
|
|
9125
|
+
minDate,
|
|
9126
|
+
maxDate: tempRange.end || maxDate,
|
|
9127
|
+
sx: {
|
|
9128
|
+
width: "auto",
|
|
9129
|
+
p: 2,
|
|
9130
|
+
m: 0,
|
|
9131
|
+
borderRight: "0.5px solid",
|
|
9132
|
+
borderColor: "border.mute"
|
|
9133
|
+
}
|
|
9134
|
+
}
|
|
9135
|
+
),
|
|
9136
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9137
|
+
import_DateCalendar.DateCalendar,
|
|
9138
|
+
{
|
|
9139
|
+
value: tempRange.end,
|
|
9140
|
+
onChange: handleCalendarChange,
|
|
9141
|
+
referenceDate: rightCalendarMonth,
|
|
9142
|
+
minDate: tempRange.start || minDate,
|
|
9143
|
+
maxDate,
|
|
9144
|
+
sx: {
|
|
9145
|
+
width: "auto",
|
|
9146
|
+
p: 2,
|
|
9147
|
+
m: 0
|
|
9148
|
+
}
|
|
9149
|
+
}
|
|
9150
|
+
)
|
|
9151
|
+
]
|
|
9152
|
+
}
|
|
9153
|
+
),
|
|
9154
|
+
showActions && /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9155
|
+
import_Box16.default,
|
|
9156
|
+
{
|
|
9157
|
+
sx: {
|
|
9158
|
+
display: "flex",
|
|
9159
|
+
alignItems: "center",
|
|
9160
|
+
justifyContent: "space-between"
|
|
9161
|
+
},
|
|
9162
|
+
children: [
|
|
9163
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
9164
|
+
import_Box16.default,
|
|
9165
|
+
{
|
|
9166
|
+
sx: {
|
|
9167
|
+
display: "flex",
|
|
9168
|
+
alignItems: "center",
|
|
9169
|
+
gap: 1.5,
|
|
9170
|
+
p: 2,
|
|
9171
|
+
flex: 1
|
|
9172
|
+
},
|
|
9173
|
+
children: [
|
|
9174
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9175
|
+
import_TextField2.default,
|
|
9176
|
+
{
|
|
9177
|
+
size: "small",
|
|
9178
|
+
value: formattedStartDate,
|
|
9179
|
+
onClick: handleStartDateClick,
|
|
9180
|
+
placeholder: dateFormat,
|
|
9181
|
+
slotProps: {
|
|
9182
|
+
input: {
|
|
9183
|
+
readOnly: true
|
|
9184
|
+
}
|
|
9185
|
+
},
|
|
9186
|
+
sx: { flex: 1 }
|
|
9187
|
+
}
|
|
9188
|
+
),
|
|
9189
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_Typography9.default, { color: "text.primary", children: "-" }),
|
|
9190
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9191
|
+
import_TextField2.default,
|
|
9192
|
+
{
|
|
9193
|
+
size: "small",
|
|
9194
|
+
value: formattedEndDate,
|
|
9195
|
+
onClick: handleEndDateClick,
|
|
9196
|
+
placeholder: dateFormat,
|
|
9197
|
+
slotProps: {
|
|
9198
|
+
input: {
|
|
9199
|
+
readOnly: true
|
|
9200
|
+
}
|
|
9201
|
+
},
|
|
9202
|
+
sx: { flex: 1 }
|
|
9203
|
+
}
|
|
9204
|
+
)
|
|
9205
|
+
]
|
|
9206
|
+
}
|
|
9207
|
+
),
|
|
9208
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_Box16.default, { sx: { display: "flex", gap: 1, px: 2 }, children: [
|
|
9209
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_Button4.default, { size: "small", variant: "secondary", color: "neutral", onClick: onCancel, children: cancelLabel }),
|
|
9210
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_Button4.default, { size: "small", variant: "primary", onClick: handleApply, children: applyLabel })
|
|
9211
|
+
] })
|
|
9212
|
+
]
|
|
9213
|
+
}
|
|
9214
|
+
)
|
|
9215
|
+
] })
|
|
9216
|
+
]
|
|
9217
|
+
}
|
|
9218
|
+
) });
|
|
9219
|
+
}
|
|
9220
|
+
);
|
|
9221
|
+
DateRangePicker.displayName = "DateRangePicker";
|
|
9222
|
+
|
|
9223
|
+
// src/components/Toolbar/DateRangeDropdown.tsx
|
|
9224
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
9225
|
+
function DateRangeDropdown({
|
|
9226
|
+
value,
|
|
9227
|
+
preset,
|
|
9228
|
+
onChange,
|
|
9229
|
+
buttonLabel = "Date",
|
|
9230
|
+
presets,
|
|
9231
|
+
dateFormat,
|
|
9232
|
+
applyLabel,
|
|
9233
|
+
cancelLabel,
|
|
9234
|
+
disabled = false,
|
|
9235
|
+
popoverSx,
|
|
9236
|
+
PopoverProps
|
|
9237
|
+
}) {
|
|
9238
|
+
const [anchorEl, setAnchorEl] = (0, import_react17.useState)(null);
|
|
9239
|
+
const open = Boolean(anchorEl);
|
|
9240
|
+
const displayLabel = (0, import_react17.useMemo)(() => {
|
|
9241
|
+
if (!preset) return buttonLabel;
|
|
9242
|
+
if (preset === "custom" && value?.start && value?.end) {
|
|
9243
|
+
const startYear = value.start.getFullYear();
|
|
9244
|
+
const endYear = value.end.getFullYear();
|
|
9245
|
+
const startStr = startYear !== endYear ? (0, import_date_fns2.format)(value.start, "MMM d, yyyy") : (0, import_date_fns2.format)(value.start, "MMM d");
|
|
9246
|
+
const endStr = (0, import_date_fns2.format)(value.end, "MMM d, yyyy");
|
|
9247
|
+
return `${startStr} - ${endStr}`;
|
|
9248
|
+
}
|
|
9249
|
+
const presetsToSearch = presets ?? defaultPresets;
|
|
9250
|
+
const presetOption = presetsToSearch.find((p) => p.value === preset);
|
|
9251
|
+
return presetOption?.label ?? buttonLabel;
|
|
9252
|
+
}, [preset, presets, buttonLabel, value]);
|
|
9253
|
+
const handleClick = (0, import_react17.useCallback)((event) => {
|
|
9254
|
+
setAnchorEl(event.currentTarget);
|
|
9255
|
+
}, []);
|
|
9256
|
+
const handleClose = (0, import_react17.useCallback)(() => {
|
|
9257
|
+
setAnchorEl(null);
|
|
9258
|
+
}, []);
|
|
9259
|
+
const handleChange = (0, import_react17.useCallback)(
|
|
9260
|
+
(range, newPreset) => {
|
|
9261
|
+
onChange?.(range, newPreset);
|
|
9262
|
+
handleClose();
|
|
9263
|
+
},
|
|
9264
|
+
[onChange, handleClose]
|
|
9265
|
+
);
|
|
9266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
|
|
9267
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9268
|
+
ToolbarDatePickerButton,
|
|
9269
|
+
{
|
|
9270
|
+
label: displayLabel,
|
|
9271
|
+
onClick: handleClick,
|
|
9272
|
+
open,
|
|
9273
|
+
disabled
|
|
9274
|
+
}
|
|
9275
|
+
),
|
|
9276
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9277
|
+
import_Popover3.default,
|
|
9278
|
+
{
|
|
9279
|
+
open,
|
|
9280
|
+
anchorEl,
|
|
9281
|
+
onClose: handleClose,
|
|
9282
|
+
anchorOrigin: {
|
|
9283
|
+
vertical: "bottom",
|
|
9284
|
+
horizontal: "left"
|
|
9285
|
+
},
|
|
9286
|
+
transformOrigin: {
|
|
9287
|
+
vertical: "top",
|
|
9288
|
+
horizontal: "left"
|
|
9289
|
+
},
|
|
9290
|
+
slotProps: {
|
|
9291
|
+
paper: {
|
|
9292
|
+
sx: {
|
|
9293
|
+
mt: 1,
|
|
9294
|
+
p: 0,
|
|
9295
|
+
borderRadius: "radius-2xl",
|
|
9296
|
+
boxShadow: "-1px 2px 10px 0px rgba(0,0,0,0.1)",
|
|
9297
|
+
overflow: "hidden",
|
|
9298
|
+
...popoverSx
|
|
9299
|
+
}
|
|
9300
|
+
}
|
|
9301
|
+
},
|
|
9302
|
+
...PopoverProps,
|
|
9303
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9304
|
+
DateRangePicker,
|
|
9305
|
+
{
|
|
9306
|
+
value,
|
|
9307
|
+
preset,
|
|
9308
|
+
onChange: handleChange,
|
|
9309
|
+
onCancel: handleClose,
|
|
9310
|
+
presets,
|
|
9311
|
+
dateFormat,
|
|
9312
|
+
applyLabel,
|
|
9313
|
+
cancelLabel
|
|
9314
|
+
}
|
|
9315
|
+
)
|
|
9316
|
+
}
|
|
9317
|
+
)
|
|
9318
|
+
] });
|
|
9319
|
+
}
|
|
9320
|
+
|
|
9321
|
+
// src/components/Toolbar/ToolbarTodayButton.tsx
|
|
9322
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
9323
|
+
var ToolbarTodayButton = ({ label = "Today", sx, ...props }) => {
|
|
9324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ToolbarButton, { label, sx: { px: 1.5, ...sx }, ...props });
|
|
9325
|
+
};
|
|
9326
|
+
|
|
9327
|
+
// src/components/Toolbar/ToolbarSearchField.tsx
|
|
9328
|
+
var import_react18 = require("react");
|
|
9329
|
+
var import_Box17 = __toESM(require("@mui/material/Box"), 1);
|
|
9330
|
+
var import_ButtonBase3 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
9331
|
+
var import_InputBase3 = __toESM(require("@mui/material/InputBase"), 1);
|
|
9332
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
9333
|
+
var baseStyles3 = {
|
|
9334
|
+
display: "flex",
|
|
9335
|
+
alignItems: "center",
|
|
9336
|
+
gap: 1,
|
|
9337
|
+
px: 1.25,
|
|
9338
|
+
py: 0.75,
|
|
9339
|
+
bgcolor: "common.white",
|
|
9340
|
+
border: "0.5px solid",
|
|
9341
|
+
borderColor: "border.mute",
|
|
9342
|
+
borderBottomWidth: "1.5px"
|
|
9343
|
+
};
|
|
9344
|
+
var ToolbarSearchField = ({
|
|
9345
|
+
placeholder = "Search",
|
|
9346
|
+
className,
|
|
9347
|
+
sx,
|
|
9348
|
+
value,
|
|
9349
|
+
onFocus,
|
|
9350
|
+
onBlur,
|
|
9351
|
+
onClear,
|
|
9352
|
+
...props
|
|
9353
|
+
}) => {
|
|
9354
|
+
const [isFocused, setIsFocused] = (0, import_react18.useState)(false);
|
|
9355
|
+
const hasValue = Boolean(value && String(value).length > 0);
|
|
9356
|
+
const handleFocus = (0, import_react18.useCallback)(
|
|
9357
|
+
(event) => {
|
|
9358
|
+
setIsFocused(true);
|
|
9359
|
+
onFocus?.(event);
|
|
9360
|
+
},
|
|
9361
|
+
[onFocus]
|
|
9362
|
+
);
|
|
9363
|
+
const handleBlur = (0, import_react18.useCallback)(
|
|
9364
|
+
(event) => {
|
|
9365
|
+
setIsFocused(false);
|
|
9366
|
+
onBlur?.(event);
|
|
9367
|
+
},
|
|
9368
|
+
[onBlur]
|
|
9369
|
+
);
|
|
9370
|
+
const handleClear = (0, import_react18.useCallback)(() => {
|
|
9371
|
+
onClear?.();
|
|
9372
|
+
}, [onClear]);
|
|
9373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
|
|
9374
|
+
import_Box17.default,
|
|
9375
|
+
{
|
|
9376
|
+
className: toolbarClasses.searchField.concat(
|
|
9377
|
+
isFocused ? ` ${toolbarClasses.searchFieldFocused}` : "",
|
|
9378
|
+
className ? ` ${className}` : ""
|
|
9379
|
+
),
|
|
9380
|
+
sx: {
|
|
9381
|
+
...baseStyles3,
|
|
9382
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9383
|
+
...isFocused && {
|
|
9384
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9385
|
+
},
|
|
9386
|
+
...sx
|
|
9387
|
+
},
|
|
9388
|
+
children: [
|
|
9389
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9390
|
+
Icon,
|
|
9391
|
+
{
|
|
9392
|
+
icon: "Search",
|
|
9393
|
+
className: toolbarClasses.searchIcon,
|
|
9394
|
+
sx: { width: 16, height: 16, color: "icon.black", flexShrink: 0 }
|
|
9395
|
+
}
|
|
9396
|
+
),
|
|
9397
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9398
|
+
import_InputBase3.default,
|
|
9399
|
+
{
|
|
9400
|
+
placeholder,
|
|
9401
|
+
className: toolbarClasses.searchInput,
|
|
9402
|
+
value,
|
|
9403
|
+
onFocus: handleFocus,
|
|
9404
|
+
onBlur: handleBlur,
|
|
9405
|
+
sx: {
|
|
9406
|
+
flex: 1,
|
|
9407
|
+
minWidth: 0,
|
|
9408
|
+
height: 22,
|
|
9409
|
+
"& .MuiInputBase-input": {
|
|
9410
|
+
p: 0,
|
|
9411
|
+
fontSize: 14,
|
|
9412
|
+
lineHeight: "22px",
|
|
9413
|
+
color: "text.header",
|
|
9414
|
+
"&::placeholder": {
|
|
9415
|
+
color: "text.body",
|
|
9416
|
+
opacity: 1
|
|
9417
|
+
}
|
|
9418
|
+
}
|
|
9419
|
+
},
|
|
9420
|
+
...props
|
|
9421
|
+
}
|
|
9422
|
+
),
|
|
9423
|
+
hasValue && onClear && /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
9424
|
+
import_ButtonBase3.default,
|
|
9425
|
+
{
|
|
9426
|
+
onClick: handleClear,
|
|
9427
|
+
className: toolbarClasses.searchClearButton,
|
|
9428
|
+
sx: {
|
|
9429
|
+
p: 0.25,
|
|
9430
|
+
borderRadius: "50%",
|
|
9431
|
+
flexShrink: 0,
|
|
9432
|
+
"&:hover": {
|
|
9433
|
+
bgcolor: "grey.100"
|
|
9434
|
+
}
|
|
9435
|
+
},
|
|
9436
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, { icon: "XMark", sx: { width: 14, height: 14, color: "icon.mute" } })
|
|
9437
|
+
}
|
|
9438
|
+
)
|
|
9439
|
+
]
|
|
9440
|
+
}
|
|
9441
|
+
);
|
|
9442
|
+
};
|
|
9443
|
+
|
|
9444
|
+
// src/components/Toolbar/ToolbarViewSwitcher.tsx
|
|
9445
|
+
var import_Box18 = __toESM(require("@mui/material/Box"), 1);
|
|
9446
|
+
var import_Typography10 = __toESM(require("@mui/material/Typography"), 1);
|
|
9447
|
+
var import_ButtonBase4 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
9448
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
9449
|
+
var viewLabels = {
|
|
9450
|
+
year: "Year",
|
|
9451
|
+
month: "Month",
|
|
9452
|
+
week: "Week",
|
|
9453
|
+
day: "Day"
|
|
9454
|
+
};
|
|
9455
|
+
var baseStyles4 = {
|
|
9456
|
+
display: "flex",
|
|
9457
|
+
alignItems: "center",
|
|
9458
|
+
justifyContent: "center",
|
|
9459
|
+
gap: 1,
|
|
9460
|
+
px: 1.5,
|
|
9461
|
+
py: 0.75,
|
|
9462
|
+
bgcolor: "common.white",
|
|
9463
|
+
border: "0.5px solid",
|
|
9464
|
+
borderColor: "border.mute",
|
|
9465
|
+
borderBottomWidth: "1.5px",
|
|
9466
|
+
cursor: "pointer",
|
|
9467
|
+
"&:hover": {
|
|
9468
|
+
bgcolor: "grey.50"
|
|
9469
|
+
}
|
|
9470
|
+
};
|
|
9471
|
+
var ToolbarViewSwitcher = ({
|
|
9472
|
+
value,
|
|
9473
|
+
open = false,
|
|
9474
|
+
className,
|
|
9475
|
+
sx,
|
|
9476
|
+
...props
|
|
9477
|
+
}) => {
|
|
9478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
9479
|
+
import_ButtonBase4.default,
|
|
9480
|
+
{
|
|
9481
|
+
className: toolbarClasses.viewSwitcher.concat(
|
|
9482
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
9483
|
+
className ? ` ${className}` : ""
|
|
9484
|
+
),
|
|
9485
|
+
sx: {
|
|
9486
|
+
...baseStyles4,
|
|
9487
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9488
|
+
...open && {
|
|
9489
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9490
|
+
},
|
|
9491
|
+
...sx
|
|
9492
|
+
},
|
|
9493
|
+
...props,
|
|
9494
|
+
children: [
|
|
9495
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9496
|
+
import_Box18.default,
|
|
9497
|
+
{
|
|
9498
|
+
sx: {
|
|
9499
|
+
display: "flex",
|
|
9500
|
+
alignItems: "center",
|
|
9501
|
+
justifyContent: "center",
|
|
9502
|
+
pr: 1,
|
|
9503
|
+
borderRight: "0.5px solid",
|
|
9504
|
+
borderColor: "border.mute"
|
|
9505
|
+
},
|
|
9506
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9507
|
+
import_Typography10.default,
|
|
9508
|
+
{
|
|
9509
|
+
variant: "body2",
|
|
9510
|
+
className: toolbarClasses.viewSwitcherLabel,
|
|
9511
|
+
sx: {
|
|
9512
|
+
fontSize: 14,
|
|
9513
|
+
lineHeight: "22px",
|
|
9514
|
+
color: "text.header",
|
|
9515
|
+
whiteSpace: "nowrap"
|
|
9516
|
+
},
|
|
9517
|
+
children: viewLabels[value]
|
|
9518
|
+
}
|
|
9519
|
+
)
|
|
9520
|
+
}
|
|
9521
|
+
),
|
|
9522
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9523
|
+
Icon,
|
|
9524
|
+
{
|
|
9525
|
+
icon: "NavArrowDown",
|
|
9526
|
+
className: toolbarClasses.viewSwitcherIcon,
|
|
9527
|
+
sx: { width: 16, height: 16, color: "text.header" }
|
|
9528
|
+
}
|
|
9529
|
+
)
|
|
9530
|
+
]
|
|
9531
|
+
}
|
|
9532
|
+
);
|
|
8096
9533
|
};
|
|
8097
9534
|
|
|
8098
|
-
// src/components/
|
|
8099
|
-
var
|
|
8100
|
-
var
|
|
9535
|
+
// src/components/Toolbar/ToolbarSettingsButton.tsx
|
|
9536
|
+
var import_ButtonBase5 = __toESM(require("@mui/material/ButtonBase"), 1);
|
|
9537
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
9538
|
+
var baseStyles5 = {
|
|
9539
|
+
display: "flex",
|
|
9540
|
+
alignItems: "center",
|
|
9541
|
+
justifyContent: "center",
|
|
9542
|
+
px: 1.5,
|
|
9543
|
+
py: 1.25,
|
|
9544
|
+
bgcolor: "common.white",
|
|
9545
|
+
border: "0.5px solid",
|
|
9546
|
+
borderColor: "border.mute",
|
|
9547
|
+
borderBottomWidth: "1.5px",
|
|
9548
|
+
cursor: "pointer",
|
|
9549
|
+
"&:hover": {
|
|
9550
|
+
bgcolor: "grey.50"
|
|
9551
|
+
}
|
|
9552
|
+
};
|
|
9553
|
+
var ToolbarSettingsButton = ({
|
|
9554
|
+
open = false,
|
|
9555
|
+
className,
|
|
8101
9556
|
sx,
|
|
8102
|
-
|
|
8103
|
-
error: error2,
|
|
8104
|
-
disabled,
|
|
8105
|
-
onDelete,
|
|
8106
|
-
onUpload,
|
|
8107
|
-
onRemove,
|
|
8108
|
-
helperText,
|
|
8109
|
-
onRemoveAll,
|
|
8110
|
-
uploadProgress,
|
|
8111
|
-
isUploading = false,
|
|
8112
|
-
multiple = false,
|
|
8113
|
-
...rest
|
|
9557
|
+
...props
|
|
8114
9558
|
}) => {
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
|
|
8121
|
-
const hasFile = !isArray && !!value;
|
|
8122
|
-
const hasFiles = isArray && !!value.length;
|
|
8123
|
-
const hasError = isDragReject || !!error2;
|
|
8124
|
-
const renderContent = () => {
|
|
8125
|
-
if (isUploading) {
|
|
8126
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UploadProgress, { progress: uploadProgress });
|
|
8127
|
-
}
|
|
8128
|
-
if (hasFile) {
|
|
8129
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SingleFilePreview, { file: value });
|
|
8130
|
-
}
|
|
8131
|
-
if (hasFiles) {
|
|
8132
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(MultiFilePreview, { files: value, onRemove });
|
|
8133
|
-
}
|
|
8134
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(UploadPlaceholder, { hasError });
|
|
8135
|
-
};
|
|
8136
|
-
const shouldShowDropzone = !hasFile && !hasFiles && !isUploading;
|
|
8137
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_Box10.default, { sx: { width: 1, position: "relative", ...sx }, children: [
|
|
8138
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8139
|
-
import_Box10.default,
|
|
8140
|
-
{
|
|
8141
|
-
...shouldShowDropzone ? getRootProps() : {},
|
|
8142
|
-
sx: {
|
|
8143
|
-
p: hasFiles || hasFile ? 0 : 7,
|
|
8144
|
-
outline: "none",
|
|
8145
|
-
borderRadius: (theme) => theme.radius["radius-md"],
|
|
8146
|
-
cursor: shouldShowDropzone ? "pointer" : "default",
|
|
8147
|
-
overflow: "hidden",
|
|
8148
|
-
position: "relative",
|
|
8149
|
-
bgcolor: (theme) => varAlpha(theme.vars.palette.grey["200Channel"], 0.1),
|
|
8150
|
-
border: (theme) => isUploading ? `1.5px solid ${varAlpha(theme.vars.palette.primary.mainChannel, 1)}` : `1.5px dashed ${varAlpha(theme.vars.palette.border.primaryChannel, 1)}`,
|
|
8151
|
-
transition: (theme) => theme.transitions.create(["opacity", "padding"]),
|
|
8152
|
-
...shouldShowDropzone && {
|
|
8153
|
-
"&:hover": { opacity: 0.72 }
|
|
8154
|
-
},
|
|
8155
|
-
...isDragActive && { opacity: 0.72 },
|
|
8156
|
-
...disabled && { opacity: 0.48, pointerEvents: "none" },
|
|
8157
|
-
...hasError && {
|
|
8158
|
-
color: "error.main",
|
|
8159
|
-
borderColor: "error.main",
|
|
8160
|
-
bgcolor: (theme) => varAlpha(theme.vars.palette.error.mainChannel, 0.08)
|
|
8161
|
-
},
|
|
8162
|
-
...isUploading && {
|
|
8163
|
-
minHeight: 148,
|
|
8164
|
-
display: "flex",
|
|
8165
|
-
alignItems: "center",
|
|
8166
|
-
justifyContent: "center"
|
|
8167
|
-
},
|
|
8168
|
-
...hasFile && { padding: "18% 0" },
|
|
8169
|
-
...hasFiles && {
|
|
8170
|
-
padding: 3,
|
|
8171
|
-
minHeight: 148,
|
|
8172
|
-
display: "flex",
|
|
8173
|
-
alignItems: "center"
|
|
8174
|
-
}
|
|
8175
|
-
},
|
|
8176
|
-
children: [
|
|
8177
|
-
shouldShowDropzone && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("input", { ...getInputProps() }),
|
|
8178
|
-
renderContent()
|
|
8179
|
-
]
|
|
8180
|
-
}
|
|
8181
|
-
),
|
|
8182
|
-
hasFile && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(DeleteButton, { onClick: onDelete }),
|
|
8183
|
-
hasFiles && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_Stack4.default, { direction: "row", spacing: 2, sx: { mt: 2 }, children: [
|
|
8184
|
-
onRemoveAll && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8185
|
-
import_Button3.default,
|
|
8186
|
-
{
|
|
8187
|
-
variant: "outlined",
|
|
8188
|
-
color: "inherit",
|
|
8189
|
-
size: "small",
|
|
8190
|
-
onClick: onRemoveAll,
|
|
8191
|
-
startIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: "Trash", sx: { width: 14, height: 14 } }),
|
|
8192
|
-
children: "Remove all"
|
|
8193
|
-
}
|
|
9559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
9560
|
+
import_ButtonBase5.default,
|
|
9561
|
+
{
|
|
9562
|
+
className: toolbarClasses.button.concat(
|
|
9563
|
+
open ? ` ${toolbarClasses.buttonOpen}` : "",
|
|
9564
|
+
className ? ` ${className}` : ""
|
|
8194
9565
|
),
|
|
8195
|
-
|
|
8196
|
-
|
|
9566
|
+
sx: {
|
|
9567
|
+
...baseStyles5,
|
|
9568
|
+
borderRadius: (theme) => theme.radius["radius-md"],
|
|
9569
|
+
...open && {
|
|
9570
|
+
boxShadow: (theme) => `0px 0px 0px 1.6px white, 0px 0px 0px 3.2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
9571
|
+
},
|
|
9572
|
+
...sx
|
|
9573
|
+
},
|
|
9574
|
+
...props,
|
|
9575
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
9576
|
+
Icon,
|
|
8197
9577
|
{
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
startIcon: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Icon, { icon: "CloudUpload", sx: { width: 14, height: 14 } }),
|
|
8202
|
-
children: "Upload files"
|
|
9578
|
+
icon: "Settings",
|
|
9579
|
+
className: toolbarClasses.buttonIcon,
|
|
9580
|
+
sx: { width: 17, height: 17, color: "text.header" }
|
|
8203
9581
|
}
|
|
8204
9582
|
)
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(RejectionFiles, { files: [...fileRejections] })
|
|
8208
|
-
] });
|
|
9583
|
+
}
|
|
9584
|
+
);
|
|
8209
9585
|
};
|
|
8210
9586
|
|
|
8211
9587
|
// src/components/HookForm/Form.tsx
|
|
8212
9588
|
var import_react_hook_form = require("react-hook-form");
|
|
8213
|
-
var
|
|
8214
|
-
var
|
|
9589
|
+
var import_Box19 = __toESM(require("@mui/material/Box"), 1);
|
|
9590
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
8215
9591
|
var Form = ({
|
|
8216
9592
|
children,
|
|
8217
9593
|
onSubmit,
|
|
8218
9594
|
methods,
|
|
8219
9595
|
...rest
|
|
8220
9596
|
}) => {
|
|
8221
|
-
return /* @__PURE__ */ (0,
|
|
8222
|
-
|
|
9597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_hook_form.FormProvider, { ...methods, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9598
|
+
import_Box19.default,
|
|
8223
9599
|
{
|
|
8224
9600
|
component: "form",
|
|
8225
9601
|
onSubmit: (e) => {
|
|
@@ -8238,16 +9614,16 @@ var Form = ({
|
|
|
8238
9614
|
|
|
8239
9615
|
// src/components/HookForm/RHFSwitch.tsx
|
|
8240
9616
|
var import_react_hook_form2 = require("react-hook-form");
|
|
8241
|
-
var
|
|
8242
|
-
var
|
|
8243
|
-
var
|
|
9617
|
+
var import_Stack6 = __toESM(require("@mui/material/Stack"), 1);
|
|
9618
|
+
var import_Box20 = __toESM(require("@mui/material/Box"), 1);
|
|
9619
|
+
var import_Typography11 = __toESM(require("@mui/material/Typography"), 1);
|
|
8244
9620
|
var import_Switch2 = __toESM(require("@mui/material/Switch"), 1);
|
|
8245
9621
|
var import_FormGroup = __toESM(require("@mui/material/FormGroup"), 1);
|
|
8246
9622
|
var import_FormLabel = __toESM(require("@mui/material/FormLabel"), 1);
|
|
8247
9623
|
var import_FormControl = __toESM(require("@mui/material/FormControl"), 1);
|
|
8248
9624
|
var import_FormHelperText2 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
8249
|
-
var
|
|
8250
|
-
var
|
|
9625
|
+
var import_FormControlLabel4 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
9626
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
8251
9627
|
var RHFSwitch = ({
|
|
8252
9628
|
name,
|
|
8253
9629
|
description,
|
|
@@ -8259,16 +9635,16 @@ var RHFSwitch = ({
|
|
|
8259
9635
|
}) => {
|
|
8260
9636
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
8261
9637
|
const baseAriaLabel = `Switch ${name}`;
|
|
8262
|
-
return /* @__PURE__ */ (0,
|
|
9638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8263
9639
|
import_react_hook_form2.Controller,
|
|
8264
9640
|
{
|
|
8265
9641
|
name,
|
|
8266
9642
|
control,
|
|
8267
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
8268
|
-
/* @__PURE__ */ (0,
|
|
8269
|
-
|
|
9643
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_Box20.default, { sx: slotProps?.wrap, children: [
|
|
9644
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9645
|
+
import_FormControlLabel4.default,
|
|
8270
9646
|
{
|
|
8271
|
-
control: /* @__PURE__ */ (0,
|
|
9647
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8272
9648
|
import_Switch2.default,
|
|
8273
9649
|
{
|
|
8274
9650
|
...field,
|
|
@@ -8283,9 +9659,9 @@ var RHFSwitch = ({
|
|
|
8283
9659
|
}
|
|
8284
9660
|
}
|
|
8285
9661
|
),
|
|
8286
|
-
label: /* @__PURE__ */ (0,
|
|
8287
|
-
/* @__PURE__ */ (0,
|
|
8288
|
-
description && /* @__PURE__ */ (0,
|
|
9662
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_Stack6.default, { children: [
|
|
9663
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_Typography11.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
|
|
9664
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_Typography11.default, { variant: "body2", color: "textBody", children: description })
|
|
8289
9665
|
] }),
|
|
8290
9666
|
sx: {
|
|
8291
9667
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -8294,7 +9670,7 @@ var RHFSwitch = ({
|
|
|
8294
9670
|
...other
|
|
8295
9671
|
}
|
|
8296
9672
|
),
|
|
8297
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9673
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8298
9674
|
import_FormHelperText2.default,
|
|
8299
9675
|
{
|
|
8300
9676
|
error: !!error2,
|
|
@@ -8317,19 +9693,19 @@ var RHFMultiSwitch = ({
|
|
|
8317
9693
|
}) => {
|
|
8318
9694
|
const { control } = (0, import_react_hook_form2.useFormContext)();
|
|
8319
9695
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
8320
|
-
return /* @__PURE__ */ (0,
|
|
9696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8321
9697
|
import_react_hook_form2.Controller,
|
|
8322
9698
|
{
|
|
8323
9699
|
name,
|
|
8324
9700
|
control,
|
|
8325
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9701
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
8326
9702
|
import_FormControl.default,
|
|
8327
9703
|
{
|
|
8328
9704
|
component: "fieldset",
|
|
8329
9705
|
sx: slotProps?.formControl?.sx,
|
|
8330
9706
|
...slotProps?.formControl,
|
|
8331
9707
|
children: [
|
|
8332
|
-
label && /* @__PURE__ */ (0,
|
|
9708
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8333
9709
|
import_FormLabel.default,
|
|
8334
9710
|
{
|
|
8335
9711
|
component: "legend",
|
|
@@ -8338,12 +9714,12 @@ var RHFMultiSwitch = ({
|
|
|
8338
9714
|
children: label
|
|
8339
9715
|
}
|
|
8340
9716
|
),
|
|
8341
|
-
/* @__PURE__ */ (0,
|
|
9717
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_FormGroup.default, { ...other, children: options.map((option) => {
|
|
8342
9718
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
8343
|
-
return /* @__PURE__ */ (0,
|
|
8344
|
-
|
|
9719
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9720
|
+
import_FormControlLabel4.default,
|
|
8345
9721
|
{
|
|
8346
|
-
control: /* @__PURE__ */ (0,
|
|
9722
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
8347
9723
|
import_Switch2.default,
|
|
8348
9724
|
{
|
|
8349
9725
|
checked: (field.value || []).includes(option.value),
|
|
@@ -8366,7 +9742,7 @@ var RHFMultiSwitch = ({
|
|
|
8366
9742
|
option.value
|
|
8367
9743
|
);
|
|
8368
9744
|
}) }),
|
|
8369
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
9745
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_FormHelperText2.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8370
9746
|
]
|
|
8371
9747
|
}
|
|
8372
9748
|
)
|
|
@@ -8376,10 +9752,10 @@ var RHFMultiSwitch = ({
|
|
|
8376
9752
|
|
|
8377
9753
|
// src/components/HookForm/RHFUpload.tsx
|
|
8378
9754
|
var import_react_hook_form3 = require("react-hook-form");
|
|
8379
|
-
var
|
|
9755
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
8380
9756
|
var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
8381
9757
|
const { control, setValue } = (0, import_react_hook_form3.useFormContext)();
|
|
8382
|
-
return /* @__PURE__ */ (0,
|
|
9758
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8383
9759
|
import_react_hook_form3.Controller,
|
|
8384
9760
|
{
|
|
8385
9761
|
name,
|
|
@@ -8407,7 +9783,7 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
8407
9783
|
const onRemoveAll = () => {
|
|
8408
9784
|
setValue(name, [], { shouldValidate: true });
|
|
8409
9785
|
};
|
|
8410
|
-
return /* @__PURE__ */ (0,
|
|
9786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
8411
9787
|
Upload,
|
|
8412
9788
|
{
|
|
8413
9789
|
multiple,
|
|
@@ -8431,18 +9807,18 @@ var RHFUpload = ({ name, multiple, helperText, ...rest }) => {
|
|
|
8431
9807
|
var import_react_hook_form4 = require("react-hook-form");
|
|
8432
9808
|
|
|
8433
9809
|
// src/components/OTPInput/index.tsx
|
|
8434
|
-
var
|
|
9810
|
+
var import_react19 = require("react");
|
|
8435
9811
|
var import_styles35 = require("@mui/material/styles");
|
|
8436
|
-
var
|
|
9812
|
+
var import_Box21 = __toESM(require("@mui/material/Box"), 1);
|
|
8437
9813
|
var import_FormHelperText3 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
8438
|
-
var
|
|
8439
|
-
var
|
|
8440
|
-
var
|
|
9814
|
+
var import_InputBase4 = require("@mui/material/InputBase");
|
|
9815
|
+
var import_TextField3 = __toESM(require("@mui/material/TextField"), 1);
|
|
9816
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
8441
9817
|
var OTPInput = (props) => {
|
|
8442
9818
|
const { length = 6, onChange, onComplete, error: error2, helperText, containerProps, ...rest } = props;
|
|
8443
9819
|
const theme = (0, import_styles35.useTheme)();
|
|
8444
|
-
const [otp, setOtp] = (0,
|
|
8445
|
-
const inputsRef = (0,
|
|
9820
|
+
const [otp, setOtp] = (0, import_react19.useState)(Array(length).fill(""));
|
|
9821
|
+
const inputsRef = (0, import_react19.useRef)([]);
|
|
8446
9822
|
const handleChange = (value, index) => {
|
|
8447
9823
|
if (!/^[0-9]$/.test(value) && value !== "") return;
|
|
8448
9824
|
const newOtp = [...otp];
|
|
@@ -8505,9 +9881,9 @@ var OTPInput = (props) => {
|
|
|
8505
9881
|
onComplete?.(newOtp.join(""));
|
|
8506
9882
|
}
|
|
8507
9883
|
};
|
|
8508
|
-
return /* @__PURE__ */ (0,
|
|
8509
|
-
/* @__PURE__ */ (0,
|
|
8510
|
-
|
|
9884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_jsx_runtime89.Fragment, { children: [
|
|
9885
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Box21.default, { display: "flex", justifyContent: "center", ...containerProps, children: otp.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9886
|
+
import_Box21.default,
|
|
8511
9887
|
{
|
|
8512
9888
|
display: "flex",
|
|
8513
9889
|
alignItems: "center",
|
|
@@ -8516,8 +9892,8 @@ var OTPInput = (props) => {
|
|
|
8516
9892
|
mr: 1.5
|
|
8517
9893
|
}
|
|
8518
9894
|
},
|
|
8519
|
-
children: /* @__PURE__ */ (0,
|
|
8520
|
-
|
|
9895
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
9896
|
+
import_TextField3.default,
|
|
8521
9897
|
{
|
|
8522
9898
|
size: "medium",
|
|
8523
9899
|
value: otp[index],
|
|
@@ -8534,7 +9910,7 @@ var OTPInput = (props) => {
|
|
|
8534
9910
|
}
|
|
8535
9911
|
},
|
|
8536
9912
|
sx: {
|
|
8537
|
-
[`& .${
|
|
9913
|
+
[`& .${import_InputBase4.inputBaseClasses.root}`]: {
|
|
8538
9914
|
borderRadius: theme.radius["radius-lg"],
|
|
8539
9915
|
backgroundColor: "transparent",
|
|
8540
9916
|
border: `1px solid ${theme.vars.palette.border.default}`,
|
|
@@ -8554,27 +9930,27 @@ var OTPInput = (props) => {
|
|
|
8554
9930
|
borderColor: theme.vars.palette.border.default
|
|
8555
9931
|
},
|
|
8556
9932
|
// Focus state
|
|
8557
|
-
[`&.${
|
|
9933
|
+
[`&.${import_InputBase4.inputBaseClasses.focused}`]: {
|
|
8558
9934
|
backgroundColor: theme.vars.palette.common.white,
|
|
8559
9935
|
border: `1px solid ${theme.vars.palette.border.default}`,
|
|
8560
9936
|
boxShadow: `0 0 0 2px ${varAlpha(theme.vars.palette.primary["300Channel"], 1)}`
|
|
8561
9937
|
},
|
|
8562
9938
|
// Error state
|
|
8563
|
-
[`&.${
|
|
9939
|
+
[`&.${import_InputBase4.inputBaseClasses.error}`]: {
|
|
8564
9940
|
backgroundColor: theme.vars.palette.error[100],
|
|
8565
9941
|
borderColor: theme.vars.palette.error[300],
|
|
8566
9942
|
"&:hover": {
|
|
8567
9943
|
backgroundColor: theme.vars.palette.error[100],
|
|
8568
9944
|
borderColor: theme.vars.palette.error[300]
|
|
8569
9945
|
},
|
|
8570
|
-
[`&.${
|
|
9946
|
+
[`&.${import_InputBase4.inputBaseClasses.focused}`]: {
|
|
8571
9947
|
backgroundColor: theme.vars.palette.error[100],
|
|
8572
9948
|
border: `1px solid ${theme.vars.palette.border.default}`,
|
|
8573
9949
|
boxShadow: `0 0 0 2px ${varAlpha(theme.vars.palette.error["300Channel"], 1)}`
|
|
8574
9950
|
}
|
|
8575
9951
|
},
|
|
8576
9952
|
// Disabled state
|
|
8577
|
-
[`&.${
|
|
9953
|
+
[`&.${import_InputBase4.inputBaseClasses.disabled}`]: {
|
|
8578
9954
|
backgroundColor: theme.vars.palette.surface.disable,
|
|
8579
9955
|
borderColor: theme.vars.palette.surface.disable,
|
|
8580
9956
|
color: theme.vars.palette.text.disabled,
|
|
@@ -8599,21 +9975,21 @@ var OTPInput = (props) => {
|
|
|
8599
9975
|
},
|
|
8600
9976
|
index
|
|
8601
9977
|
)) }),
|
|
8602
|
-
error2 && /* @__PURE__ */ (0,
|
|
9978
|
+
error2 && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_FormHelperText3.default, { sx: { color: "error.main" }, children: helperText })
|
|
8603
9979
|
] });
|
|
8604
9980
|
};
|
|
8605
9981
|
var OTPInput_default = OTPInput;
|
|
8606
9982
|
|
|
8607
9983
|
// src/components/HookForm/RHFOTPInput.tsx
|
|
8608
|
-
var
|
|
9984
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
8609
9985
|
var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
8610
9986
|
const { control, setValue } = (0, import_react_hook_form4.useFormContext)();
|
|
8611
|
-
return /* @__PURE__ */ (0,
|
|
9987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
8612
9988
|
import_react_hook_form4.Controller,
|
|
8613
9989
|
{
|
|
8614
9990
|
name,
|
|
8615
9991
|
control,
|
|
8616
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
9992
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
8617
9993
|
OTPInput_default,
|
|
8618
9994
|
{
|
|
8619
9995
|
length,
|
|
@@ -8630,20 +10006,20 @@ var RHFOTPInput = ({ name, length = 6, helperText, ...rest }) => {
|
|
|
8630
10006
|
|
|
8631
10007
|
// src/components/HookForm/RHFTextField.tsx
|
|
8632
10008
|
var import_react_hook_form5 = require("react-hook-form");
|
|
8633
|
-
var
|
|
10009
|
+
var import_IconButton6 = __toESM(require("@mui/material/IconButton"), 1);
|
|
8634
10010
|
var import_InputAdornment2 = __toESM(require("@mui/material/InputAdornment"), 1);
|
|
8635
|
-
var
|
|
8636
|
-
var
|
|
10011
|
+
var import_TextField4 = __toESM(require("@mui/material/TextField"), 1);
|
|
10012
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
8637
10013
|
var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
8638
10014
|
const { control } = (0, import_react_hook_form5.useFormContext)();
|
|
8639
10015
|
const passwordVisibility = useBoolean();
|
|
8640
|
-
return /* @__PURE__ */ (0,
|
|
10016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
8641
10017
|
import_react_hook_form5.Controller,
|
|
8642
10018
|
{
|
|
8643
10019
|
name,
|
|
8644
10020
|
control,
|
|
8645
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
8646
|
-
|
|
10021
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
10022
|
+
import_TextField4.default,
|
|
8647
10023
|
{
|
|
8648
10024
|
...field,
|
|
8649
10025
|
fullWidth: true,
|
|
@@ -8663,7 +10039,7 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
8663
10039
|
input: {
|
|
8664
10040
|
...slotProps?.input,
|
|
8665
10041
|
...type === "password" && {
|
|
8666
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
10042
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_InputAdornment2.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_IconButton6.default, { edge: "end", onClick: passwordVisibility.onToggle, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
8667
10043
|
Icon,
|
|
8668
10044
|
{
|
|
8669
10045
|
icon: passwordVisibility.value ? "EyeClosed" : "Eye",
|
|
@@ -8682,15 +10058,15 @@ var RHFTextField = ({ name, helperText, type, slotProps, ...rest }) => {
|
|
|
8682
10058
|
|
|
8683
10059
|
// src/components/HookForm/RHFRadioGroup.tsx
|
|
8684
10060
|
var import_react_hook_form6 = require("react-hook-form");
|
|
8685
|
-
var
|
|
8686
|
-
var
|
|
8687
|
-
var
|
|
8688
|
-
var
|
|
10061
|
+
var import_Stack7 = __toESM(require("@mui/material/Stack"), 1);
|
|
10062
|
+
var import_Typography12 = __toESM(require("@mui/material/Typography"), 1);
|
|
10063
|
+
var import_Radio4 = __toESM(require("@mui/material/Radio"), 1);
|
|
10064
|
+
var import_FormControlLabel5 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
8689
10065
|
var import_FormLabel2 = __toESM(require("@mui/material/FormLabel"), 1);
|
|
8690
|
-
var
|
|
10066
|
+
var import_RadioGroup3 = __toESM(require("@mui/material/RadioGroup"), 1);
|
|
8691
10067
|
var import_FormControl2 = __toESM(require("@mui/material/FormControl"), 1);
|
|
8692
10068
|
var import_FormHelperText4 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
8693
|
-
var
|
|
10069
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
8694
10070
|
var RHFRadioGroup = ({
|
|
8695
10071
|
name,
|
|
8696
10072
|
label,
|
|
@@ -8702,13 +10078,13 @@ var RHFRadioGroup = ({
|
|
|
8702
10078
|
const { control } = (0, import_react_hook_form6.useFormContext)();
|
|
8703
10079
|
const labelledby = `${name}-radio-buttons-group-label`;
|
|
8704
10080
|
const ariaLabel = (val) => `Radio ${val}`;
|
|
8705
|
-
return /* @__PURE__ */ (0,
|
|
10081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8706
10082
|
import_react_hook_form6.Controller,
|
|
8707
10083
|
{
|
|
8708
10084
|
name,
|
|
8709
10085
|
control,
|
|
8710
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
8711
|
-
label && /* @__PURE__ */ (0,
|
|
10086
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_FormControl2.default, { component: "fieldset", sx: slotProps?.wrap, children: [
|
|
10087
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
8712
10088
|
import_FormLabel2.default,
|
|
8713
10089
|
{
|
|
8714
10090
|
id: labelledby,
|
|
@@ -8718,12 +10094,12 @@ var RHFRadioGroup = ({
|
|
|
8718
10094
|
children: label
|
|
8719
10095
|
}
|
|
8720
10096
|
),
|
|
8721
|
-
/* @__PURE__ */ (0,
|
|
8722
|
-
|
|
10097
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_RadioGroup3.default, { ...field, "aria-labelledby": labelledby, ...other, children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
10098
|
+
import_FormControlLabel5.default,
|
|
8723
10099
|
{
|
|
8724
10100
|
value: option.value,
|
|
8725
|
-
control: /* @__PURE__ */ (0,
|
|
8726
|
-
|
|
10101
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
10102
|
+
import_Radio4.default,
|
|
8727
10103
|
{
|
|
8728
10104
|
...slotProps?.radio,
|
|
8729
10105
|
slotProps: {
|
|
@@ -8734,9 +10110,9 @@ var RHFRadioGroup = ({
|
|
|
8734
10110
|
}
|
|
8735
10111
|
}
|
|
8736
10112
|
),
|
|
8737
|
-
label: /* @__PURE__ */ (0,
|
|
8738
|
-
/* @__PURE__ */ (0,
|
|
8739
|
-
option?.description && /* @__PURE__ */ (0,
|
|
10113
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_Stack7.default, { children: [
|
|
10114
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_Typography12.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
|
|
10115
|
+
option?.description && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_Typography12.default, { variant: "body2", color: "textBody", children: option?.description })
|
|
8740
10116
|
] }),
|
|
8741
10117
|
sx: {
|
|
8742
10118
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -8744,7 +10120,7 @@ var RHFRadioGroup = ({
|
|
|
8744
10120
|
},
|
|
8745
10121
|
option.value
|
|
8746
10122
|
)) }),
|
|
8747
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
10123
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_FormHelperText4.default, { error: !!error2, sx: { mx: 0 }, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8748
10124
|
] })
|
|
8749
10125
|
}
|
|
8750
10126
|
);
|
|
@@ -8752,9 +10128,9 @@ var RHFRadioGroup = ({
|
|
|
8752
10128
|
|
|
8753
10129
|
// src/components/HookForm/RHFAutocomplete.tsx
|
|
8754
10130
|
var import_react_hook_form7 = require("react-hook-form");
|
|
8755
|
-
var
|
|
10131
|
+
var import_TextField5 = __toESM(require("@mui/material/TextField"), 1);
|
|
8756
10132
|
var import_Autocomplete4 = __toESM(require("@mui/material/Autocomplete"), 1);
|
|
8757
|
-
var
|
|
10133
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
8758
10134
|
var RHFAutocomplete = ({
|
|
8759
10135
|
name,
|
|
8760
10136
|
label,
|
|
@@ -8765,12 +10141,12 @@ var RHFAutocomplete = ({
|
|
|
8765
10141
|
...other
|
|
8766
10142
|
}) => {
|
|
8767
10143
|
const { control, setValue } = (0, import_react_hook_form7.useFormContext)();
|
|
8768
|
-
return /* @__PURE__ */ (0,
|
|
10144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8769
10145
|
import_react_hook_form7.Controller,
|
|
8770
10146
|
{
|
|
8771
10147
|
name,
|
|
8772
10148
|
control,
|
|
8773
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10149
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
8774
10150
|
import_Autocomplete4.default,
|
|
8775
10151
|
{
|
|
8776
10152
|
...field,
|
|
@@ -8779,8 +10155,8 @@ var RHFAutocomplete = ({
|
|
|
8779
10155
|
setValue(name, newValue, { shouldValidate: true });
|
|
8780
10156
|
handleChange?.(newValue);
|
|
8781
10157
|
},
|
|
8782
|
-
renderInput: (params) => /* @__PURE__ */ (0,
|
|
8783
|
-
|
|
10158
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
10159
|
+
import_TextField5.default,
|
|
8784
10160
|
{
|
|
8785
10161
|
label,
|
|
8786
10162
|
placeholder,
|
|
@@ -8797,18 +10173,150 @@ var RHFAutocomplete = ({
|
|
|
8797
10173
|
);
|
|
8798
10174
|
};
|
|
8799
10175
|
|
|
8800
|
-
// src/components/HookForm/
|
|
10176
|
+
// src/components/HookForm/RHFDateRangePicker.tsx
|
|
10177
|
+
var import_react20 = require("react");
|
|
8801
10178
|
var import_react_hook_form8 = require("react-hook-form");
|
|
8802
|
-
var
|
|
8803
|
-
var
|
|
8804
|
-
var
|
|
10179
|
+
var import_date_fns3 = require("date-fns");
|
|
10180
|
+
var import_Box22 = __toESM(require("@mui/material/Box"), 1);
|
|
10181
|
+
var import_Popover4 = __toESM(require("@mui/material/Popover"), 1);
|
|
10182
|
+
var import_TextField6 = __toESM(require("@mui/material/TextField"), 1);
|
|
10183
|
+
var import_InputAdornment3 = __toESM(require("@mui/material/InputAdornment"), 1);
|
|
10184
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
10185
|
+
function RHFDateRangePicker({
|
|
10186
|
+
name,
|
|
10187
|
+
label,
|
|
10188
|
+
placeholder = "Select date range",
|
|
10189
|
+
helperText,
|
|
10190
|
+
dateFormat = "MMM d, yyyy",
|
|
10191
|
+
presets = defaultPresets,
|
|
10192
|
+
applyLabel,
|
|
10193
|
+
cancelLabel,
|
|
10194
|
+
disabled = false,
|
|
10195
|
+
size = "medium",
|
|
10196
|
+
fullWidth = true
|
|
10197
|
+
}) {
|
|
10198
|
+
const { control } = (0, import_react_hook_form8.useFormContext)();
|
|
10199
|
+
const [anchorEl, setAnchorEl] = (0, import_react20.useState)(null);
|
|
10200
|
+
const open = Boolean(anchorEl);
|
|
10201
|
+
const watchedValue = (0, import_react_hook_form8.useWatch)({ control, name });
|
|
10202
|
+
const value = watchedValue ?? {
|
|
10203
|
+
start: null,
|
|
10204
|
+
end: null,
|
|
10205
|
+
preset: void 0
|
|
10206
|
+
};
|
|
10207
|
+
const displayValue = (0, import_react20.useMemo)(() => {
|
|
10208
|
+
if (value.preset && value.preset !== "custom") {
|
|
10209
|
+
const presetOption = presets.find((p) => p.value === value.preset);
|
|
10210
|
+
if (presetOption) return presetOption.label;
|
|
10211
|
+
}
|
|
10212
|
+
if (value.start && value.end && (0, import_date_fns3.isValid)(value.start) && (0, import_date_fns3.isValid)(value.end)) {
|
|
10213
|
+
const startYear = value.start.getFullYear();
|
|
10214
|
+
const endYear = value.end.getFullYear();
|
|
10215
|
+
const startStr = startYear !== endYear ? (0, import_date_fns3.format)(value.start, dateFormat) : (0, import_date_fns3.format)(value.start, "MMM d");
|
|
10216
|
+
const endStr = (0, import_date_fns3.format)(value.end, dateFormat);
|
|
10217
|
+
return `${startStr} - ${endStr}`;
|
|
10218
|
+
}
|
|
10219
|
+
return "";
|
|
10220
|
+
}, [value.preset, value.start, value.end, presets, dateFormat]);
|
|
10221
|
+
const handleClick = (0, import_react20.useCallback)(
|
|
10222
|
+
(event) => {
|
|
10223
|
+
if (!disabled) {
|
|
10224
|
+
setAnchorEl(event.currentTarget);
|
|
10225
|
+
}
|
|
10226
|
+
},
|
|
10227
|
+
[disabled]
|
|
10228
|
+
);
|
|
10229
|
+
const handleClose = (0, import_react20.useCallback)(() => {
|
|
10230
|
+
setAnchorEl(null);
|
|
10231
|
+
}, []);
|
|
10232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10233
|
+
import_react_hook_form8.Controller,
|
|
10234
|
+
{
|
|
10235
|
+
name,
|
|
10236
|
+
control,
|
|
10237
|
+
render: ({ field, fieldState: { error: error2 } }) => {
|
|
10238
|
+
const handleChange = (range, preset) => {
|
|
10239
|
+
field.onChange({ ...range, preset });
|
|
10240
|
+
handleClose();
|
|
10241
|
+
};
|
|
10242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
|
|
10243
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_Box22.default, { onClick: handleClick, sx: { cursor: disabled ? "default" : "pointer" }, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10244
|
+
import_TextField6.default,
|
|
10245
|
+
{
|
|
10246
|
+
label,
|
|
10247
|
+
placeholder,
|
|
10248
|
+
value: displayValue,
|
|
10249
|
+
error: !!error2,
|
|
10250
|
+
helperText: error2?.message ?? helperText,
|
|
10251
|
+
disabled,
|
|
10252
|
+
size,
|
|
10253
|
+
fullWidth,
|
|
10254
|
+
slotProps: {
|
|
10255
|
+
input: {
|
|
10256
|
+
readOnly: true,
|
|
10257
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_InputAdornment3.default, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { icon: "Calendar", sx: { width: 20, height: 20, color: "icon.mute" } }) }),
|
|
10258
|
+
sx: { cursor: disabled ? "default" : "pointer" }
|
|
10259
|
+
}
|
|
10260
|
+
}
|
|
10261
|
+
}
|
|
10262
|
+
) }),
|
|
10263
|
+
/* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10264
|
+
import_Popover4.default,
|
|
10265
|
+
{
|
|
10266
|
+
open,
|
|
10267
|
+
anchorEl,
|
|
10268
|
+
onClose: handleClose,
|
|
10269
|
+
anchorOrigin: {
|
|
10270
|
+
vertical: "bottom",
|
|
10271
|
+
horizontal: "left"
|
|
10272
|
+
},
|
|
10273
|
+
transformOrigin: {
|
|
10274
|
+
vertical: "top",
|
|
10275
|
+
horizontal: "left"
|
|
10276
|
+
},
|
|
10277
|
+
slotProps: {
|
|
10278
|
+
paper: {
|
|
10279
|
+
sx: {
|
|
10280
|
+
mt: 1,
|
|
10281
|
+
p: 0,
|
|
10282
|
+
borderRadius: "radius-2xl",
|
|
10283
|
+
boxShadow: "-1px 2px 10px 0px rgba(0,0,0,0.1)",
|
|
10284
|
+
overflow: "hidden"
|
|
10285
|
+
}
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10288
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
10289
|
+
DateRangePicker,
|
|
10290
|
+
{
|
|
10291
|
+
value: { start: value.start, end: value.end },
|
|
10292
|
+
preset: value.preset,
|
|
10293
|
+
onChange: handleChange,
|
|
10294
|
+
onCancel: handleClose,
|
|
10295
|
+
presets,
|
|
10296
|
+
applyLabel,
|
|
10297
|
+
cancelLabel
|
|
10298
|
+
}
|
|
10299
|
+
)
|
|
10300
|
+
}
|
|
10301
|
+
)
|
|
10302
|
+
] });
|
|
10303
|
+
}
|
|
10304
|
+
}
|
|
10305
|
+
);
|
|
10306
|
+
}
|
|
10307
|
+
|
|
10308
|
+
// src/components/HookForm/RHFCheckbox.tsx
|
|
10309
|
+
var import_react_hook_form9 = require("react-hook-form");
|
|
10310
|
+
var import_Stack8 = __toESM(require("@mui/material/Stack"), 1);
|
|
10311
|
+
var import_Box23 = __toESM(require("@mui/material/Box"), 1);
|
|
10312
|
+
var import_Typography13 = __toESM(require("@mui/material/Typography"), 1);
|
|
8805
10313
|
var import_Checkbox3 = __toESM(require("@mui/material/Checkbox"), 1);
|
|
8806
10314
|
var import_FormGroup2 = __toESM(require("@mui/material/FormGroup"), 1);
|
|
8807
10315
|
var import_FormLabel3 = __toESM(require("@mui/material/FormLabel"), 1);
|
|
8808
10316
|
var import_FormControl3 = __toESM(require("@mui/material/FormControl"), 1);
|
|
8809
10317
|
var import_FormHelperText5 = __toESM(require("@mui/material/FormHelperText"), 1);
|
|
8810
|
-
var
|
|
8811
|
-
var
|
|
10318
|
+
var import_FormControlLabel6 = __toESM(require("@mui/material/FormControlLabel"), 1);
|
|
10319
|
+
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
8812
10320
|
var RHFCheckbox = ({
|
|
8813
10321
|
name,
|
|
8814
10322
|
description,
|
|
@@ -8818,18 +10326,18 @@ var RHFCheckbox = ({
|
|
|
8818
10326
|
slotProps,
|
|
8819
10327
|
...other
|
|
8820
10328
|
}) => {
|
|
8821
|
-
const { control } = (0,
|
|
10329
|
+
const { control } = (0, import_react_hook_form9.useFormContext)();
|
|
8822
10330
|
const baseAriaLabel = `Checkbox for ${name}`;
|
|
8823
|
-
return /* @__PURE__ */ (0,
|
|
8824
|
-
|
|
10331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10332
|
+
import_react_hook_form9.Controller,
|
|
8825
10333
|
{
|
|
8826
10334
|
name,
|
|
8827
10335
|
control,
|
|
8828
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
8829
|
-
/* @__PURE__ */ (0,
|
|
8830
|
-
|
|
10336
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_Box23.default, { sx: slotProps?.wrap, children: [
|
|
10337
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10338
|
+
import_FormControlLabel6.default,
|
|
8831
10339
|
{
|
|
8832
|
-
control: /* @__PURE__ */ (0,
|
|
10340
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8833
10341
|
import_Checkbox3.default,
|
|
8834
10342
|
{
|
|
8835
10343
|
...field,
|
|
@@ -8844,9 +10352,9 @@ var RHFCheckbox = ({
|
|
|
8844
10352
|
}
|
|
8845
10353
|
}
|
|
8846
10354
|
),
|
|
8847
|
-
label: /* @__PURE__ */ (0,
|
|
8848
|
-
/* @__PURE__ */ (0,
|
|
8849
|
-
description && /* @__PURE__ */ (0,
|
|
10355
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_Stack8.default, { children: [
|
|
10356
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography13.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: label }),
|
|
10357
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography13.default, { variant: "body2", color: "textBody", children: description })
|
|
8850
10358
|
] }),
|
|
8851
10359
|
sx: {
|
|
8852
10360
|
alignItems: description ? "flex-start" : "center",
|
|
@@ -8855,7 +10363,7 @@ var RHFCheckbox = ({
|
|
|
8855
10363
|
...other
|
|
8856
10364
|
}
|
|
8857
10365
|
),
|
|
8858
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
10366
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_FormHelperText5.default, { error: !!error2, ...slotProps?.formHelperText, children: error2 ? error2?.message : helperText })
|
|
8859
10367
|
] })
|
|
8860
10368
|
}
|
|
8861
10369
|
);
|
|
@@ -8869,15 +10377,15 @@ var RHFMultiCheckbox = ({
|
|
|
8869
10377
|
row,
|
|
8870
10378
|
...other
|
|
8871
10379
|
}) => {
|
|
8872
|
-
const { control } = (0,
|
|
10380
|
+
const { control } = (0, import_react_hook_form9.useFormContext)();
|
|
8873
10381
|
const getSelected = (currentValues, optionValue) => currentValues.includes(optionValue) ? currentValues.filter((value) => value !== optionValue) : [...currentValues, optionValue];
|
|
8874
|
-
return /* @__PURE__ */ (0,
|
|
8875
|
-
|
|
10382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10383
|
+
import_react_hook_form9.Controller,
|
|
8876
10384
|
{
|
|
8877
10385
|
name,
|
|
8878
10386
|
control,
|
|
8879
10387
|
defaultValue: [],
|
|
8880
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10388
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
8881
10389
|
import_FormControl3.default,
|
|
8882
10390
|
{
|
|
8883
10391
|
component: "fieldset",
|
|
@@ -8885,7 +10393,7 @@ var RHFMultiCheckbox = ({
|
|
|
8885
10393
|
sx: slotProps?.formControl?.sx,
|
|
8886
10394
|
...slotProps?.formControl,
|
|
8887
10395
|
children: [
|
|
8888
|
-
label && /* @__PURE__ */ (0,
|
|
10396
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8889
10397
|
import_FormLabel3.default,
|
|
8890
10398
|
{
|
|
8891
10399
|
component: "legend",
|
|
@@ -8894,12 +10402,12 @@ var RHFMultiCheckbox = ({
|
|
|
8894
10402
|
children: label
|
|
8895
10403
|
}
|
|
8896
10404
|
),
|
|
8897
|
-
/* @__PURE__ */ (0,
|
|
10405
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_FormGroup2.default, { row, ...other, children: options.map((option) => {
|
|
8898
10406
|
const itemAriaLabel = option.label || `Option ${option.value}`;
|
|
8899
|
-
return /* @__PURE__ */ (0,
|
|
8900
|
-
|
|
10407
|
+
return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10408
|
+
import_FormControlLabel6.default,
|
|
8901
10409
|
{
|
|
8902
|
-
control: /* @__PURE__ */ (0,
|
|
10410
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8903
10411
|
import_Checkbox3.default,
|
|
8904
10412
|
{
|
|
8905
10413
|
checked: (field.value || []).includes(option.value),
|
|
@@ -8917,9 +10425,9 @@ var RHFMultiCheckbox = ({
|
|
|
8917
10425
|
}
|
|
8918
10426
|
}
|
|
8919
10427
|
),
|
|
8920
|
-
label: /* @__PURE__ */ (0,
|
|
8921
|
-
/* @__PURE__ */ (0,
|
|
8922
|
-
option?.description && /* @__PURE__ */ (0,
|
|
10428
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(import_Stack8.default, { children: [
|
|
10429
|
+
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography13.default, { variant: "bodyMd", color: "textHeader", fontWeight: 500, children: option.label }),
|
|
10430
|
+
option?.description && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_Typography13.default, { variant: "body2", color: "textBody", children: option?.description })
|
|
8923
10431
|
] }),
|
|
8924
10432
|
sx: {
|
|
8925
10433
|
alignItems: option?.description ? "flex-start" : "center"
|
|
@@ -8928,7 +10436,7 @@ var RHFMultiCheckbox = ({
|
|
|
8928
10436
|
option.value
|
|
8929
10437
|
);
|
|
8930
10438
|
}) }),
|
|
8931
|
-
(!!error2 || helperText) && /* @__PURE__ */ (0,
|
|
10439
|
+
(!!error2 || helperText) && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
8932
10440
|
import_FormHelperText5.default,
|
|
8933
10441
|
{
|
|
8934
10442
|
sx: { mx: 0, ...slotProps?.formHelperText?.sx },
|
|
@@ -8944,27 +10452,27 @@ var RHFMultiCheckbox = ({
|
|
|
8944
10452
|
};
|
|
8945
10453
|
|
|
8946
10454
|
// src/components/HookForm/RHFDatePicker.tsx
|
|
8947
|
-
var
|
|
8948
|
-
var
|
|
8949
|
-
var
|
|
10455
|
+
var import_react21 = require("react");
|
|
10456
|
+
var import_react_hook_form10 = require("react-hook-form");
|
|
10457
|
+
var import_TextField7 = __toESM(require("@mui/material/TextField"), 1);
|
|
8950
10458
|
var import_x_date_pickers = require("@mui/x-date-pickers");
|
|
8951
|
-
var
|
|
10459
|
+
var import_AdapterDateFns2 = require("@mui/x-date-pickers/AdapterDateFns");
|
|
8952
10460
|
var import_DatePicker = require("@mui/x-date-pickers/DatePicker");
|
|
8953
10461
|
var import_TimePicker = require("@mui/x-date-pickers/TimePicker");
|
|
8954
10462
|
var import_DateTimePicker = require("@mui/x-date-pickers/DateTimePicker");
|
|
8955
|
-
var
|
|
10463
|
+
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
8956
10464
|
var RHFDatePickerComponent = ({
|
|
8957
10465
|
name,
|
|
8958
10466
|
slotProps,
|
|
8959
10467
|
helperText,
|
|
8960
10468
|
clearable = false,
|
|
8961
|
-
format = "MMM d, yyyy",
|
|
10469
|
+
format: format4 = "MMM d, yyyy",
|
|
8962
10470
|
...other
|
|
8963
10471
|
}) => {
|
|
8964
|
-
const { control } = (0,
|
|
8965
|
-
const [isOpen, setIsOpen] = (0,
|
|
8966
|
-
const [cleared, setCleared] = (0,
|
|
8967
|
-
(0,
|
|
10472
|
+
const { control } = (0, import_react_hook_form10.useFormContext)();
|
|
10473
|
+
const [isOpen, setIsOpen] = (0, import_react21.useState)(false);
|
|
10474
|
+
const [cleared, setCleared] = (0, import_react21.useState)(false);
|
|
10475
|
+
(0, import_react21.useEffect)(() => {
|
|
8968
10476
|
if (cleared) {
|
|
8969
10477
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
8970
10478
|
return () => clearTimeout(timeout);
|
|
@@ -8972,23 +10480,23 @@ var RHFDatePickerComponent = ({
|
|
|
8972
10480
|
return () => {
|
|
8973
10481
|
};
|
|
8974
10482
|
}, [cleared]);
|
|
8975
|
-
return /* @__PURE__ */ (0,
|
|
8976
|
-
|
|
10483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10484
|
+
import_react_hook_form10.Controller,
|
|
8977
10485
|
{
|
|
8978
10486
|
name,
|
|
8979
10487
|
control,
|
|
8980
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10488
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
8981
10489
|
import_DatePicker.DatePicker,
|
|
8982
10490
|
{
|
|
8983
10491
|
...field,
|
|
8984
10492
|
value: field.value ?? null,
|
|
8985
10493
|
onChange: (newValue) => field.onChange(newValue),
|
|
8986
10494
|
enableAccessibleFieldDOMStructure: false,
|
|
8987
|
-
format,
|
|
10495
|
+
format: format4,
|
|
8988
10496
|
open: isOpen,
|
|
8989
10497
|
onClose: () => setIsOpen(false),
|
|
8990
10498
|
slots: {
|
|
8991
|
-
textField:
|
|
10499
|
+
textField: import_TextField7.default,
|
|
8992
10500
|
...other.slots
|
|
8993
10501
|
},
|
|
8994
10502
|
slotProps: {
|
|
@@ -9000,6 +10508,7 @@ var RHFDatePickerComponent = ({
|
|
|
9000
10508
|
onClick: () => setIsOpen(true),
|
|
9001
10509
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9002
10510
|
},
|
|
10511
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9003
10512
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9004
10513
|
},
|
|
9005
10514
|
...other
|
|
@@ -9008,19 +10517,19 @@ var RHFDatePickerComponent = ({
|
|
|
9008
10517
|
}
|
|
9009
10518
|
);
|
|
9010
10519
|
};
|
|
9011
|
-
var RHFDatePicker = (0,
|
|
10520
|
+
var RHFDatePicker = (0, import_react21.memo)(RHFDatePickerComponent);
|
|
9012
10521
|
var RHFTimePickerComponent = ({
|
|
9013
10522
|
name,
|
|
9014
10523
|
slotProps,
|
|
9015
10524
|
helperText,
|
|
9016
10525
|
clearable = false,
|
|
9017
|
-
format = "h:mma",
|
|
10526
|
+
format: format4 = "h:mma",
|
|
9018
10527
|
...other
|
|
9019
10528
|
}) => {
|
|
9020
|
-
const { control } = (0,
|
|
9021
|
-
const [isOpen, setIsOpen] = (0,
|
|
9022
|
-
const [cleared, setCleared] = (0,
|
|
9023
|
-
(0,
|
|
10529
|
+
const { control } = (0, import_react_hook_form10.useFormContext)();
|
|
10530
|
+
const [isOpen, setIsOpen] = (0, import_react21.useState)(false);
|
|
10531
|
+
const [cleared, setCleared] = (0, import_react21.useState)(false);
|
|
10532
|
+
(0, import_react21.useEffect)(() => {
|
|
9024
10533
|
if (cleared) {
|
|
9025
10534
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
9026
10535
|
return () => clearTimeout(timeout);
|
|
@@ -9028,23 +10537,23 @@ var RHFTimePickerComponent = ({
|
|
|
9028
10537
|
return () => {
|
|
9029
10538
|
};
|
|
9030
10539
|
}, [cleared]);
|
|
9031
|
-
return /* @__PURE__ */ (0,
|
|
9032
|
-
|
|
10540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10541
|
+
import_react_hook_form10.Controller,
|
|
9033
10542
|
{
|
|
9034
10543
|
name,
|
|
9035
10544
|
control,
|
|
9036
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10545
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9037
10546
|
import_TimePicker.TimePicker,
|
|
9038
10547
|
{
|
|
9039
10548
|
...field,
|
|
9040
10549
|
value: field.value ?? null,
|
|
9041
10550
|
onChange: (newValue) => field.onChange(newValue),
|
|
9042
10551
|
enableAccessibleFieldDOMStructure: false,
|
|
9043
|
-
format,
|
|
10552
|
+
format: format4,
|
|
9044
10553
|
open: isOpen,
|
|
9045
10554
|
onClose: () => setIsOpen(false),
|
|
9046
10555
|
slots: {
|
|
9047
|
-
textField:
|
|
10556
|
+
textField: import_TextField7.default,
|
|
9048
10557
|
...other.slots
|
|
9049
10558
|
},
|
|
9050
10559
|
slotProps: {
|
|
@@ -9056,6 +10565,7 @@ var RHFTimePickerComponent = ({
|
|
|
9056
10565
|
onClick: () => setIsOpen(true),
|
|
9057
10566
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9058
10567
|
},
|
|
10568
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9059
10569
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9060
10570
|
},
|
|
9061
10571
|
...other
|
|
@@ -9064,19 +10574,19 @@ var RHFTimePickerComponent = ({
|
|
|
9064
10574
|
}
|
|
9065
10575
|
);
|
|
9066
10576
|
};
|
|
9067
|
-
var RHFTimePicker = (0,
|
|
10577
|
+
var RHFTimePicker = (0, import_react21.memo)(RHFTimePickerComponent);
|
|
9068
10578
|
var RHFDateTimePickerComponent = ({
|
|
9069
10579
|
name,
|
|
9070
10580
|
slotProps,
|
|
9071
10581
|
helperText,
|
|
9072
10582
|
clearable = false,
|
|
9073
|
-
format = "MMM d, yyyy h:mma",
|
|
10583
|
+
format: format4 = "MMM d, yyyy h:mma",
|
|
9074
10584
|
...other
|
|
9075
10585
|
}) => {
|
|
9076
|
-
const { control } = (0,
|
|
9077
|
-
const [isOpen, setIsOpen] = (0,
|
|
9078
|
-
const [cleared, setCleared] = (0,
|
|
9079
|
-
(0,
|
|
10586
|
+
const { control } = (0, import_react_hook_form10.useFormContext)();
|
|
10587
|
+
const [isOpen, setIsOpen] = (0, import_react21.useState)(false);
|
|
10588
|
+
const [cleared, setCleared] = (0, import_react21.useState)(false);
|
|
10589
|
+
(0, import_react21.useEffect)(() => {
|
|
9080
10590
|
if (cleared) {
|
|
9081
10591
|
const timeout = setTimeout(() => setCleared(false), 1500);
|
|
9082
10592
|
return () => clearTimeout(timeout);
|
|
@@ -9084,23 +10594,23 @@ var RHFDateTimePickerComponent = ({
|
|
|
9084
10594
|
return () => {
|
|
9085
10595
|
};
|
|
9086
10596
|
}, [cleared]);
|
|
9087
|
-
return /* @__PURE__ */ (0,
|
|
9088
|
-
|
|
10597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10598
|
+
import_react_hook_form10.Controller,
|
|
9089
10599
|
{
|
|
9090
10600
|
name,
|
|
9091
10601
|
control,
|
|
9092
|
-
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0,
|
|
10602
|
+
render: ({ field, fieldState: { error: error2 } }) => /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(import_x_date_pickers.LocalizationProvider, { dateAdapter: import_AdapterDateFns2.AdapterDateFns, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
9093
10603
|
import_DateTimePicker.DateTimePicker,
|
|
9094
10604
|
{
|
|
9095
10605
|
...field,
|
|
9096
10606
|
value: field.value ?? null,
|
|
9097
10607
|
onChange: (newValue) => field.onChange(newValue),
|
|
9098
10608
|
enableAccessibleFieldDOMStructure: false,
|
|
9099
|
-
format,
|
|
10609
|
+
format: format4,
|
|
9100
10610
|
open: isOpen,
|
|
9101
10611
|
onClose: () => setIsOpen(false),
|
|
9102
10612
|
slots: {
|
|
9103
|
-
textField:
|
|
10613
|
+
textField: import_TextField7.default,
|
|
9104
10614
|
...other.slots
|
|
9105
10615
|
},
|
|
9106
10616
|
slotProps: {
|
|
@@ -9112,6 +10622,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
9112
10622
|
onClick: () => setIsOpen(true),
|
|
9113
10623
|
...typeof slotProps?.textField === "object" ? slotProps.textField : {}
|
|
9114
10624
|
},
|
|
10625
|
+
openPickerButton: { onClick: () => setIsOpen(true) },
|
|
9115
10626
|
field: { clearable, onClear: () => setCleared(true) }
|
|
9116
10627
|
},
|
|
9117
10628
|
...other
|
|
@@ -9120,7 +10631,7 @@ var RHFDateTimePickerComponent = ({
|
|
|
9120
10631
|
}
|
|
9121
10632
|
);
|
|
9122
10633
|
};
|
|
9123
|
-
var RHFDateTimePicker = (0,
|
|
10634
|
+
var RHFDateTimePicker = (0, import_react21.memo)(RHFDateTimePickerComponent);
|
|
9124
10635
|
|
|
9125
10636
|
// src/components/HookForm/fields.ts
|
|
9126
10637
|
var Field = {
|
|
@@ -9134,35 +10645,36 @@ var Field = {
|
|
|
9134
10645
|
MultiCheckbox: RHFMultiCheckbox,
|
|
9135
10646
|
Date: RHFDatePicker,
|
|
9136
10647
|
Time: RHFTimePicker,
|
|
9137
|
-
DateTime: RHFDateTimePicker
|
|
10648
|
+
DateTime: RHFDateTimePicker,
|
|
10649
|
+
DateRange: RHFDateRangePicker
|
|
9138
10650
|
};
|
|
9139
10651
|
|
|
9140
10652
|
// src/components/CopyButton/index.tsx
|
|
9141
10653
|
var import_Tooltip2 = __toESM(require("@mui/material/Tooltip"), 1);
|
|
9142
|
-
var
|
|
9143
|
-
var
|
|
10654
|
+
var import_IconButton7 = __toESM(require("@mui/material/IconButton"), 1);
|
|
10655
|
+
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
9144
10656
|
var CopyButton = ({ text: text2, size = "small" }) => {
|
|
9145
10657
|
const { copy, isCopied } = useCopyToClipboard();
|
|
9146
|
-
return /* @__PURE__ */ (0,
|
|
9147
|
-
|
|
10658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_Tooltip2.default, { title: isCopied ? "Copied" : "Copy", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
10659
|
+
import_IconButton7.default,
|
|
9148
10660
|
{
|
|
9149
10661
|
size,
|
|
9150
10662
|
onClick: () => copy(text2),
|
|
9151
10663
|
"aria-label": "copy token",
|
|
9152
10664
|
sx: { color: "icon.black" },
|
|
9153
|
-
children: /* @__PURE__ */ (0,
|
|
10665
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Icon, { icon: isCopied ? "ClipboardCheck" : "Copy", sx: { width: 20, height: 20 } })
|
|
9154
10666
|
}
|
|
9155
10667
|
) });
|
|
9156
10668
|
};
|
|
9157
10669
|
|
|
9158
10670
|
// src/components/LoadingScreen/index.tsx
|
|
9159
10671
|
var import_Portal2 = __toESM(require("@mui/material/Portal"), 1);
|
|
9160
|
-
var
|
|
10672
|
+
var import_Box24 = __toESM(require("@mui/material/Box"), 1);
|
|
9161
10673
|
var import_LinearProgress = __toESM(require("@mui/material/LinearProgress"), 1);
|
|
9162
|
-
var
|
|
10674
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
9163
10675
|
var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
9164
|
-
const content = /* @__PURE__ */ (0,
|
|
9165
|
-
|
|
10676
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
10677
|
+
import_Box24.default,
|
|
9166
10678
|
{
|
|
9167
10679
|
sx: {
|
|
9168
10680
|
px: 5,
|
|
@@ -9175,17 +10687,17 @@ var LoadingScreen = ({ portal, sx, ...rest }) => {
|
|
|
9175
10687
|
...sx
|
|
9176
10688
|
},
|
|
9177
10689
|
...rest,
|
|
9178
|
-
children: /* @__PURE__ */ (0,
|
|
10690
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_LinearProgress.default, { color: "primary", sx: { width: 1, maxWidth: 360 } })
|
|
9179
10691
|
}
|
|
9180
10692
|
);
|
|
9181
10693
|
if (portal) {
|
|
9182
|
-
return /* @__PURE__ */ (0,
|
|
10694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Portal2.default, { children: content });
|
|
9183
10695
|
}
|
|
9184
10696
|
return content;
|
|
9185
10697
|
};
|
|
9186
10698
|
var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
9187
|
-
const content = /* @__PURE__ */ (0,
|
|
9188
|
-
|
|
10699
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
10700
|
+
import_Box24.default,
|
|
9189
10701
|
{
|
|
9190
10702
|
sx: {
|
|
9191
10703
|
right: 0,
|
|
@@ -9201,24 +10713,24 @@ var SplashScreen = ({ portal, sx, ...rest }) => {
|
|
|
9201
10713
|
...sx
|
|
9202
10714
|
},
|
|
9203
10715
|
...rest,
|
|
9204
|
-
children: /* @__PURE__ */ (0,
|
|
10716
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(AnimatedLogo, {})
|
|
9205
10717
|
}
|
|
9206
10718
|
);
|
|
9207
10719
|
if (portal) {
|
|
9208
|
-
return /* @__PURE__ */ (0,
|
|
10720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(import_Portal2.default, { children: content });
|
|
9209
10721
|
}
|
|
9210
10722
|
return content;
|
|
9211
10723
|
};
|
|
9212
10724
|
|
|
9213
10725
|
// src/theme/core/components/mui-x-date-picker.tsx
|
|
9214
|
-
var
|
|
10726
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
9215
10727
|
var CustomCalendarHeaderRoot = (0, import_styles36.styled)("div")(({ theme }) => ({
|
|
9216
10728
|
display: "flex",
|
|
9217
10729
|
justifyContent: "space-between",
|
|
9218
10730
|
padding: theme.spacing(2),
|
|
9219
10731
|
alignItems: "center"
|
|
9220
10732
|
}));
|
|
9221
|
-
var CustomIconButton = (0, import_styles36.styled)(
|
|
10733
|
+
var CustomIconButton = (0, import_styles36.styled)(import_IconButton8.default)(({ theme }) => ({
|
|
9222
10734
|
color: theme.vars.palette.neutral[700],
|
|
9223
10735
|
border: `1px solid ${theme.vars.palette.border.mute}`,
|
|
9224
10736
|
borderRadius: theme.radius["radius-sm"],
|
|
@@ -9229,7 +10741,7 @@ var CustomIconButton = (0, import_styles36.styled)(import_IconButton6.default)((
|
|
|
9229
10741
|
backgroundColor: varAlpha(theme.vars.palette.neutral.mainChannel, 0.08)
|
|
9230
10742
|
}
|
|
9231
10743
|
}));
|
|
9232
|
-
function
|
|
10744
|
+
function addMonths2(date, amount) {
|
|
9233
10745
|
const result = new Date(date);
|
|
9234
10746
|
result.setMonth(result.getMonth() + amount);
|
|
9235
10747
|
return result;
|
|
@@ -9239,8 +10751,8 @@ function formatMonthYear(date) {
|
|
|
9239
10751
|
}
|
|
9240
10752
|
function CustomCalendarHeader(props) {
|
|
9241
10753
|
const { currentMonth, onMonthChange, view, views, onViewChange } = props;
|
|
9242
|
-
const selectNextMonth = () => onMonthChange(
|
|
9243
|
-
const selectPreviousMonth = () => onMonthChange(
|
|
10754
|
+
const selectNextMonth = () => onMonthChange(addMonths2(currentMonth, 1));
|
|
10755
|
+
const selectPreviousMonth = () => onMonthChange(addMonths2(currentMonth, -1));
|
|
9244
10756
|
const monthLabel = formatMonthYear(currentMonth);
|
|
9245
10757
|
const canSwitchView = views && views.length > 1 && onViewChange;
|
|
9246
10758
|
const handleLabelClick = () => {
|
|
@@ -9249,10 +10761,10 @@ function CustomCalendarHeader(props) {
|
|
|
9249
10761
|
onViewChange("year");
|
|
9250
10762
|
}
|
|
9251
10763
|
};
|
|
9252
|
-
return /* @__PURE__ */ (0,
|
|
9253
|
-
/* @__PURE__ */ (0,
|
|
9254
|
-
/* @__PURE__ */ (0,
|
|
9255
|
-
|
|
10764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(CustomCalendarHeaderRoot, { children: [
|
|
10765
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CustomIconButton, { onClick: selectPreviousMonth, title: "Previous month", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "NavArrowLeft", width: 16 }) }),
|
|
10766
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
10767
|
+
import_Typography14.default,
|
|
9256
10768
|
{
|
|
9257
10769
|
variant: "subtitle1",
|
|
9258
10770
|
onClick: handleLabelClick,
|
|
@@ -9266,7 +10778,7 @@ function CustomCalendarHeader(props) {
|
|
|
9266
10778
|
children: monthLabel
|
|
9267
10779
|
}
|
|
9268
10780
|
),
|
|
9269
|
-
/* @__PURE__ */ (0,
|
|
10781
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CustomIconButton, { onClick: selectNextMonth, title: "Next month", size: "small", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "NavArrowRight", width: 16 }) })
|
|
9270
10782
|
] });
|
|
9271
10783
|
}
|
|
9272
10784
|
var localeText = {
|
|
@@ -9274,13 +10786,13 @@ var localeText = {
|
|
|
9274
10786
|
};
|
|
9275
10787
|
var defaultProps = {
|
|
9276
10788
|
date: {
|
|
9277
|
-
openPickerIcon: () => /* @__PURE__ */ (0,
|
|
10789
|
+
openPickerIcon: () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "Calendar", sx: { width: 20, height: 20 } }),
|
|
9278
10790
|
calendarHeader: CustomCalendarHeader
|
|
9279
10791
|
},
|
|
9280
10792
|
time: {
|
|
9281
|
-
openPickerIcon: () => /* @__PURE__ */ (0,
|
|
9282
|
-
rightArrowIcon: () => /* @__PURE__ */ (0,
|
|
9283
|
-
switchViewIcon: () => /* @__PURE__ */ (0,
|
|
10793
|
+
openPickerIcon: () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "Clock", sx: { width: 20, height: 20 } }),
|
|
10794
|
+
rightArrowIcon: () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "NavArrowRight" }),
|
|
10795
|
+
switchViewIcon: () => /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { icon: "NavArrowDownSolid" })
|
|
9284
10796
|
}
|
|
9285
10797
|
};
|
|
9286
10798
|
var dateViews = ["year", "month", "day"];
|
|
@@ -9299,14 +10811,14 @@ var MuiTimePicker2 = { defaultProps: timePickerDefaults };
|
|
|
9299
10811
|
var MuiMobileTimePicker = { defaultProps: timePickerDefaults };
|
|
9300
10812
|
var MuiStaticTimePicker = { defaultProps: timePickerDefaults };
|
|
9301
10813
|
var MuiDesktopTimePicker = { defaultProps: timePickerDefaults };
|
|
9302
|
-
var
|
|
10814
|
+
var MuiPickerLayout = {
|
|
9303
10815
|
/** **************************************
|
|
9304
10816
|
* STYLE
|
|
9305
10817
|
*************************************** */
|
|
9306
10818
|
styleOverrides: {
|
|
9307
10819
|
root: ({ theme }) => ({
|
|
9308
10820
|
[`& .${import_DialogActions.dialogActionsClasses.root}`]: {
|
|
9309
|
-
[`& .${
|
|
10821
|
+
[`& .${import_Button5.buttonClasses.root}`]: {
|
|
9310
10822
|
[`&:first-of-type`]: {
|
|
9311
10823
|
color: theme.vars.palette.text.header,
|
|
9312
10824
|
backgroundColor: "transparent",
|
|
@@ -9325,14 +10837,16 @@ var MuiPickersLayout = {
|
|
|
9325
10837
|
})
|
|
9326
10838
|
}
|
|
9327
10839
|
};
|
|
9328
|
-
var
|
|
10840
|
+
var MuiPickerPopper = {
|
|
9329
10841
|
/** **************************************
|
|
9330
10842
|
* DEFAULT PROPS
|
|
9331
10843
|
*************************************** */
|
|
9332
10844
|
styleOverrides: {
|
|
9333
|
-
|
|
10845
|
+
root: ({ theme }) => ({
|
|
10846
|
+
border: `1px solid ${theme.vars.palette.border.subtle}`,
|
|
10847
|
+
overflow: "hidden",
|
|
9334
10848
|
boxShadow: theme.customShadows["shadow-sm"],
|
|
9335
|
-
borderRadius:
|
|
10849
|
+
borderRadius: theme.radius["radius-md"]
|
|
9336
10850
|
})
|
|
9337
10851
|
}
|
|
9338
10852
|
};
|
|
@@ -9340,8 +10854,7 @@ var MuiDateCalendar = {
|
|
|
9340
10854
|
defaultProps: { views: dateViews, slots: defaultProps.date },
|
|
9341
10855
|
styleOverrides: {
|
|
9342
10856
|
root: ({ theme }) => ({
|
|
9343
|
-
backgroundColor: theme.vars.palette.background.paper
|
|
9344
|
-
borderRadius: theme.radius["radius-md"]
|
|
10857
|
+
backgroundColor: theme.vars.palette.background.paper
|
|
9345
10858
|
})
|
|
9346
10859
|
}
|
|
9347
10860
|
};
|
|
@@ -9459,8 +10972,8 @@ var MuiDayCalendar = {
|
|
|
9459
10972
|
}
|
|
9460
10973
|
};
|
|
9461
10974
|
var datePicker = {
|
|
9462
|
-
|
|
9463
|
-
|
|
10975
|
+
MuiPickerPopper,
|
|
10976
|
+
MuiPickerLayout,
|
|
9464
10977
|
// Calendar
|
|
9465
10978
|
MuiDateCalendar,
|
|
9466
10979
|
MuiPickersDay,
|
|
@@ -9710,18 +11223,18 @@ var import__8 = require("@fontsource/geist/500.css");
|
|
|
9710
11223
|
var import__9 = require("@fontsource/geist/600.css");
|
|
9711
11224
|
var import__10 = require("@fontsource/geist/700.css");
|
|
9712
11225
|
var import_satoshi = require("./satoshi-4X3TX4PE.css");
|
|
9713
|
-
var
|
|
11226
|
+
var import_jsx_runtime100 = require("react/jsx-runtime");
|
|
9714
11227
|
var ThemeProvider = ({ children }) => {
|
|
9715
11228
|
const settings = useSettings();
|
|
9716
11229
|
const theme = createTheme(settings);
|
|
9717
|
-
return /* @__PURE__ */ (0,
|
|
11230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
|
|
9718
11231
|
import_styles41.ThemeProvider,
|
|
9719
11232
|
{
|
|
9720
11233
|
theme,
|
|
9721
11234
|
defaultMode: schemeConfig.defaultMode,
|
|
9722
11235
|
modeStorageKey: schemeConfig.modeStorageKey,
|
|
9723
11236
|
children: [
|
|
9724
|
-
/* @__PURE__ */ (0,
|
|
11237
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_CssBaseline.default, {}),
|
|
9725
11238
|
children
|
|
9726
11239
|
]
|
|
9727
11240
|
}
|
|
@@ -9748,12 +11261,19 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9748
11261
|
CloudUpload,
|
|
9749
11262
|
Copy,
|
|
9750
11263
|
CopyButton,
|
|
11264
|
+
CustomDialog,
|
|
11265
|
+
CustomDrawer,
|
|
11266
|
+
DateRangeDropdown,
|
|
11267
|
+
DateRangePicker,
|
|
9751
11268
|
Download,
|
|
9752
11269
|
EmptyContent,
|
|
9753
11270
|
ErrorToast,
|
|
9754
11271
|
Eye,
|
|
9755
11272
|
EyeClosed,
|
|
11273
|
+
FeedbackDialog,
|
|
9756
11274
|
Field,
|
|
11275
|
+
FilterDropdown,
|
|
11276
|
+
FilterList,
|
|
9757
11277
|
Form,
|
|
9758
11278
|
HelpCircle,
|
|
9759
11279
|
Icon,
|
|
@@ -9778,6 +11298,7 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9778
11298
|
RHFAutocomplete,
|
|
9779
11299
|
RHFCheckbox,
|
|
9780
11300
|
RHFDatePicker,
|
|
11301
|
+
RHFDateRangePicker,
|
|
9781
11302
|
RHFDateTimePicker,
|
|
9782
11303
|
RHFMultiCheckbox,
|
|
9783
11304
|
RHFMultiSwitch,
|
|
@@ -9796,6 +11317,7 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9796
11317
|
SettingsContext,
|
|
9797
11318
|
SettingsProvider,
|
|
9798
11319
|
SortDown,
|
|
11320
|
+
SortDropdown,
|
|
9799
11321
|
SortUp,
|
|
9800
11322
|
SplashScreen,
|
|
9801
11323
|
StatDown,
|
|
@@ -9805,6 +11327,14 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9805
11327
|
TablePagination,
|
|
9806
11328
|
ThemeProvider,
|
|
9807
11329
|
Toast,
|
|
11330
|
+
ToolbarButton,
|
|
11331
|
+
ToolbarDatePickerButton,
|
|
11332
|
+
ToolbarFilterButton,
|
|
11333
|
+
ToolbarSearchField,
|
|
11334
|
+
ToolbarSettingsButton,
|
|
11335
|
+
ToolbarSortButton,
|
|
11336
|
+
ToolbarTodayButton,
|
|
11337
|
+
ToolbarViewSwitcher,
|
|
9808
11338
|
Trash,
|
|
9809
11339
|
Upload,
|
|
9810
11340
|
User,
|
|
@@ -9831,15 +11361,20 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9831
11361
|
customShadows,
|
|
9832
11362
|
customSpacing,
|
|
9833
11363
|
darkPalette,
|
|
11364
|
+
defaultPresets,
|
|
9834
11365
|
defaultSettings,
|
|
11366
|
+
dialogClasses,
|
|
11367
|
+
drawerClasses,
|
|
9835
11368
|
error,
|
|
9836
11369
|
fCurrency,
|
|
9837
11370
|
fData,
|
|
9838
11371
|
fNumber,
|
|
9839
11372
|
fPercent,
|
|
9840
11373
|
fShortenNumber,
|
|
11374
|
+
feedbackDialogClasses,
|
|
9841
11375
|
formatFullname,
|
|
9842
11376
|
getCurrencySymbol,
|
|
11377
|
+
getDateRangeFromPreset,
|
|
9843
11378
|
getDefaultChartOptions,
|
|
9844
11379
|
getInitials,
|
|
9845
11380
|
getStorage,
|
|
@@ -9881,6 +11416,7 @@ __reExport(index_exports, components_exports2, module.exports);
|
|
|
9881
11416
|
tertiaryFont,
|
|
9882
11417
|
text,
|
|
9883
11418
|
textGradient,
|
|
11419
|
+
toolbarClasses,
|
|
9884
11420
|
typography,
|
|
9885
11421
|
updateComponentsWithSettings,
|
|
9886
11422
|
updateCoreWithSettings,
|