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