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