@ceed/cds 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/index.d.ts +3 -0
- package/dist/components/Card/Card.d.ts +4 -4
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/DialogActions/DialogActions.d.ts +1 -1
- package/dist/components/DialogContent/DialogContent.d.ts +1 -1
- package/dist/components/DialogFrame/DialogFrame.d.ts +2 -2
- package/dist/components/FormControl/FormControl.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Markdown/Markdown.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Stepper/Stepper.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Textarea/Textarea.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +810 -771
- package/dist/index.d.ts +2 -2
- package/dist/index.js +469 -429
- package/framer/index.js +37 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
useColorScheme,
|
|
61
61
|
useThemeProps as useThemeProps9,
|
|
62
62
|
ButtonGroup,
|
|
63
|
+
alertClasses,
|
|
63
64
|
boxClasses,
|
|
64
65
|
buttonClasses,
|
|
65
66
|
checkboxClasses as checkboxClasses2,
|
|
@@ -151,7 +152,7 @@ import {
|
|
|
151
152
|
stepperClasses,
|
|
152
153
|
Skeleton as Skeleton2,
|
|
153
154
|
skeletonClasses,
|
|
154
|
-
styled as
|
|
155
|
+
styled as styled29
|
|
155
156
|
} from "@mui/joy";
|
|
156
157
|
|
|
157
158
|
// src/components/Accordions/Accordions.tsx
|
|
@@ -194,8 +195,53 @@ function Accordions(props) {
|
|
|
194
195
|
}
|
|
195
196
|
Accordions.displayName = "Accordions";
|
|
196
197
|
|
|
198
|
+
// src/components/Alert/Alert.tsx
|
|
199
|
+
import React3 from "react";
|
|
200
|
+
import { Alert as JoyAlert, styled } from "@mui/joy";
|
|
201
|
+
import { motion as motion3 } from "framer-motion";
|
|
202
|
+
|
|
203
|
+
// src/components/Typography/Typography.tsx
|
|
204
|
+
import React2 from "react";
|
|
205
|
+
import { Typography as JoyTypography } from "@mui/joy";
|
|
206
|
+
import { motion as motion2 } from "framer-motion";
|
|
207
|
+
var MotionTypography = motion2(JoyTypography);
|
|
208
|
+
var Typography = (props) => {
|
|
209
|
+
return /* @__PURE__ */ React2.createElement(MotionTypography, { ...props });
|
|
210
|
+
};
|
|
211
|
+
Typography.displayName = "Typography";
|
|
212
|
+
|
|
213
|
+
// src/components/Typography/index.ts
|
|
214
|
+
var Typography_default = Typography;
|
|
215
|
+
|
|
216
|
+
// src/components/Stack/Stack.tsx
|
|
217
|
+
import { Stack } from "@mui/joy";
|
|
218
|
+
|
|
219
|
+
// src/components/Stack/index.ts
|
|
220
|
+
var Stack_default = Stack;
|
|
221
|
+
|
|
222
|
+
// src/components/Alert/Alert.tsx
|
|
223
|
+
var MotionAlert = styled(motion3(JoyAlert))({
|
|
224
|
+
alignItems: "flex-start",
|
|
225
|
+
fontWeight: "unset"
|
|
226
|
+
});
|
|
227
|
+
function Alert(props) {
|
|
228
|
+
const { title, content, actions, color = "primary", ...innerProps } = props;
|
|
229
|
+
const invertedColors = props.invertedColors || props.variant === "solid";
|
|
230
|
+
return /* @__PURE__ */ React3.createElement(
|
|
231
|
+
MotionAlert,
|
|
232
|
+
{
|
|
233
|
+
...innerProps,
|
|
234
|
+
color,
|
|
235
|
+
endDecorator: actions,
|
|
236
|
+
invertedColors
|
|
237
|
+
},
|
|
238
|
+
/* @__PURE__ */ React3.createElement(Stack_default, null, title && /* @__PURE__ */ React3.createElement(Typography_default, { level: "title-md", fontWeight: "bold", color }, title), /* @__PURE__ */ React3.createElement(Typography_default, { level: "body-sm", fontWeight: 500, color }, content))
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
Alert.displayName = "Alert";
|
|
242
|
+
|
|
197
243
|
// src/components/Autocomplete/Autocomplete.tsx
|
|
198
|
-
import
|
|
244
|
+
import React5, { useCallback as useCallback2, useEffect as useEffect2, useMemo, useRef as useRef2 } from "react";
|
|
199
245
|
import {
|
|
200
246
|
Autocomplete as JoyAutocomplete,
|
|
201
247
|
AutocompleteOption as JoyAutocompleteOption,
|
|
@@ -203,7 +249,7 @@ import {
|
|
|
203
249
|
AutocompleteListbox as JoyAutocompleteListbox,
|
|
204
250
|
ListItemDecorator,
|
|
205
251
|
CircularProgress,
|
|
206
|
-
styled as
|
|
252
|
+
styled as styled3
|
|
207
253
|
} from "@mui/joy";
|
|
208
254
|
import CloseIcon from "@mui/icons-material/Close";
|
|
209
255
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
@@ -212,12 +258,12 @@ import { Popper } from "@mui/base";
|
|
|
212
258
|
// src/components/FormControl/FormControl.tsx
|
|
213
259
|
import {
|
|
214
260
|
FormControl as JoyFormControl,
|
|
215
|
-
styled,
|
|
261
|
+
styled as styled2,
|
|
216
262
|
formLabelClasses
|
|
217
263
|
} from "@mui/joy";
|
|
218
|
-
import { motion as
|
|
219
|
-
var MotionFormControl =
|
|
220
|
-
var FormControl =
|
|
264
|
+
import { motion as motion4 } from "framer-motion";
|
|
265
|
+
var MotionFormControl = motion4(JoyFormControl);
|
|
266
|
+
var FormControl = styled2(MotionFormControl)(({ theme }) => ({
|
|
221
267
|
[`.${formLabelClasses.root}`]: {
|
|
222
268
|
display: "block"
|
|
223
269
|
},
|
|
@@ -232,8 +278,8 @@ var FormControl_default = FormControl;
|
|
|
232
278
|
|
|
233
279
|
// src/components/FormLabel/FormLabel.tsx
|
|
234
280
|
import { FormLabel as JoyFormLabel } from "@mui/joy";
|
|
235
|
-
import { motion as
|
|
236
|
-
var MotionFormLabel =
|
|
281
|
+
import { motion as motion5 } from "framer-motion";
|
|
282
|
+
var MotionFormLabel = motion5(JoyFormLabel);
|
|
237
283
|
var FormLabel = MotionFormLabel;
|
|
238
284
|
FormLabel.displayName = "FormLabel";
|
|
239
285
|
|
|
@@ -242,8 +288,8 @@ var FormLabel_default = FormLabel;
|
|
|
242
288
|
|
|
243
289
|
// src/components/FormHelperText/FormHelperText.tsx
|
|
244
290
|
import { FormHelperText as JoyFormHelperText } from "@mui/joy";
|
|
245
|
-
import { motion as
|
|
246
|
-
var MotionFormHelperText =
|
|
291
|
+
import { motion as motion6 } from "framer-motion";
|
|
292
|
+
var MotionFormHelperText = motion6(JoyFormHelperText);
|
|
247
293
|
var FormHelperText = MotionFormHelperText;
|
|
248
294
|
FormHelperText.displayName = "FormHelperText";
|
|
249
295
|
|
|
@@ -252,8 +298,8 @@ var FormHelperText_default = FormHelperText;
|
|
|
252
298
|
|
|
253
299
|
// src/components/Chip/Chip.tsx
|
|
254
300
|
import { Chip as JoyChip } from "@mui/joy";
|
|
255
|
-
import { motion as
|
|
256
|
-
var MotionChip =
|
|
301
|
+
import { motion as motion7 } from "framer-motion";
|
|
302
|
+
var MotionChip = motion7(JoyChip);
|
|
257
303
|
var Chip = MotionChip;
|
|
258
304
|
Chip.displayName = "Chip";
|
|
259
305
|
|
|
@@ -261,15 +307,15 @@ Chip.displayName = "Chip";
|
|
|
261
307
|
var Chip_default = Chip;
|
|
262
308
|
|
|
263
309
|
// src/components/IconButton/IconButton.tsx
|
|
264
|
-
import
|
|
310
|
+
import React4, { forwardRef } from "react";
|
|
265
311
|
import {
|
|
266
312
|
IconButton as JoyIconButton
|
|
267
313
|
} from "@mui/joy";
|
|
268
|
-
import { motion as
|
|
269
|
-
var MotionIconButton =
|
|
314
|
+
import { motion as motion8 } from "framer-motion";
|
|
315
|
+
var MotionIconButton = motion8(JoyIconButton);
|
|
270
316
|
var IconButton = forwardRef(
|
|
271
317
|
({ ...props }, ref) => {
|
|
272
|
-
return /* @__PURE__ */
|
|
318
|
+
return /* @__PURE__ */ React4.createElement(MotionIconButton, { ref, ...props });
|
|
273
319
|
}
|
|
274
320
|
);
|
|
275
321
|
IconButton.displayName = "IconButton";
|
|
@@ -277,12 +323,6 @@ IconButton.displayName = "IconButton";
|
|
|
277
323
|
// src/components/IconButton/index.ts
|
|
278
324
|
var IconButton_default = IconButton;
|
|
279
325
|
|
|
280
|
-
// src/components/Stack/Stack.tsx
|
|
281
|
-
import { Stack } from "@mui/joy";
|
|
282
|
-
|
|
283
|
-
// src/components/Stack/index.ts
|
|
284
|
-
var Stack_default = Stack;
|
|
285
|
-
|
|
286
326
|
// src/hooks/use-controlled-state/index.ts
|
|
287
327
|
import { useState, useCallback, useEffect, useRef } from "react";
|
|
288
328
|
function useControlledState(controlledValue, defaultValue, onChange, options) {
|
|
@@ -309,13 +349,13 @@ function useControlledState(controlledValue, defaultValue, onChange, options) {
|
|
|
309
349
|
}
|
|
310
350
|
|
|
311
351
|
// src/components/Autocomplete/Autocomplete.tsx
|
|
312
|
-
var AutocompletePopper =
|
|
352
|
+
var AutocompletePopper = styled3(Popper, {
|
|
313
353
|
name: "Autocomplete",
|
|
314
354
|
slot: "Popper"
|
|
315
355
|
})(({ theme }) => ({
|
|
316
356
|
zIndex: theme.zIndex.tooltip
|
|
317
357
|
}));
|
|
318
|
-
var AutocompleteListBox =
|
|
358
|
+
var AutocompleteListBox = React5.forwardRef((props, ref) => {
|
|
319
359
|
const {
|
|
320
360
|
anchorEl,
|
|
321
361
|
open,
|
|
@@ -335,7 +375,7 @@ var AutocompleteListBox = React3.forwardRef((props, ref) => {
|
|
|
335
375
|
}
|
|
336
376
|
if (isGrouped) {
|
|
337
377
|
return children[0].flatMap((child) => [
|
|
338
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ React5.createElement(JoyListSubheader, { key: child.key, component: "li" }, child.group),
|
|
339
379
|
...child.children
|
|
340
380
|
]);
|
|
341
381
|
}
|
|
@@ -354,7 +394,7 @@ var AutocompleteListBox = React3.forwardRef((props, ref) => {
|
|
|
354
394
|
virtualizer.measure();
|
|
355
395
|
}
|
|
356
396
|
}, [open, virtualizer]);
|
|
357
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ React5.createElement(AutocompletePopper, { ref, anchorEl, open, modifiers }, /* @__PURE__ */ React5.createElement(JoyAutocompleteListbox, { ...innerProps }, /* @__PURE__ */ React5.createElement("div", { ref: parentRef, style: { overflow: "auto" } }, /* @__PURE__ */ React5.createElement(
|
|
358
398
|
"div",
|
|
359
399
|
{
|
|
360
400
|
style: {
|
|
@@ -363,7 +403,7 @@ var AutocompleteListBox = React3.forwardRef((props, ref) => {
|
|
|
363
403
|
}
|
|
364
404
|
},
|
|
365
405
|
items.map(
|
|
366
|
-
({ index, size, start, key }) =>
|
|
406
|
+
({ index, size, start, key }) => React5.cloneElement(renderTargets[index], {
|
|
367
407
|
key,
|
|
368
408
|
style: {
|
|
369
409
|
position: "absolute",
|
|
@@ -375,7 +415,7 @@ var AutocompleteListBox = React3.forwardRef((props, ref) => {
|
|
|
375
415
|
transform: `translateY(${start}px)`,
|
|
376
416
|
overflow: "visible"
|
|
377
417
|
},
|
|
378
|
-
children: /* @__PURE__ */
|
|
418
|
+
children: /* @__PURE__ */ React5.createElement(
|
|
379
419
|
"div",
|
|
380
420
|
{
|
|
381
421
|
style: {
|
|
@@ -396,7 +436,7 @@ var AutocompleteDeleteSize = {
|
|
|
396
436
|
md: "24px",
|
|
397
437
|
lg: "28px"
|
|
398
438
|
};
|
|
399
|
-
var AutocompleteTagDelete =
|
|
439
|
+
var AutocompleteTagDelete = styled3(IconButton_default, {
|
|
400
440
|
name: "Autocomplete",
|
|
401
441
|
slot: "tagDelete"
|
|
402
442
|
})(({ theme, size = "md" }) => ({
|
|
@@ -459,7 +499,7 @@ function Autocomplete(props) {
|
|
|
459
499
|
return {
|
|
460
500
|
value: "",
|
|
461
501
|
label: "",
|
|
462
|
-
startDecorator: /* @__PURE__ */
|
|
502
|
+
startDecorator: /* @__PURE__ */ React5.createElement(CircularProgress, { size: "sm", color: "neutral", variant: "plain", thickness: 3 })
|
|
463
503
|
};
|
|
464
504
|
}
|
|
465
505
|
if (Array.isArray(_value)) {
|
|
@@ -469,7 +509,7 @@ function Autocomplete(props) {
|
|
|
469
509
|
}, [_value, optionMap, props.loading]);
|
|
470
510
|
const applySize = useCallback2(
|
|
471
511
|
(node) => {
|
|
472
|
-
return
|
|
512
|
+
return React5.isValidElement(node) && !props.loading ? React5.cloneElement(node, { ...{ size } }) : node;
|
|
473
513
|
},
|
|
474
514
|
[size, props.loading]
|
|
475
515
|
);
|
|
@@ -498,7 +538,7 @@ function Autocomplete(props) {
|
|
|
498
538
|
},
|
|
499
539
|
[onChangeComplete, setValue, optionMap]
|
|
500
540
|
);
|
|
501
|
-
const autocomplete = /* @__PURE__ */
|
|
541
|
+
const autocomplete = /* @__PURE__ */ React5.createElement(
|
|
502
542
|
JoyAutocomplete,
|
|
503
543
|
{
|
|
504
544
|
...innerProps,
|
|
@@ -515,15 +555,15 @@ function Autocomplete(props) {
|
|
|
515
555
|
renderTags: (tags, getTagProps) => tags.map((tag, index) => {
|
|
516
556
|
const { onClick, ...rest } = getTagProps({ index });
|
|
517
557
|
return applySize(
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
/* @__PURE__ */
|
|
558
|
+
/* @__PURE__ */ React5.createElement(Chip_default, { color: "primary", ...rest }, /* @__PURE__ */ React5.createElement(Stack_default, { direction: "row", alignItems: "center", gap: 2, py: 0.5 }, tag.value, applySize(
|
|
559
|
+
/* @__PURE__ */ React5.createElement(AutocompleteTagDelete, { color: "primary", variant: "soft", onClick }, /* @__PURE__ */ React5.createElement(CloseIcon, null))
|
|
520
560
|
)))
|
|
521
561
|
);
|
|
522
562
|
}),
|
|
523
563
|
slots: {
|
|
524
564
|
listbox: AutocompleteListBox
|
|
525
565
|
},
|
|
526
|
-
renderOption: (props2, option) => /* @__PURE__ */
|
|
566
|
+
renderOption: (props2, option) => /* @__PURE__ */ React5.createElement(JoyAutocompleteOption, { ...props2 }, option.startDecorator && /* @__PURE__ */ React5.createElement(
|
|
527
567
|
ListItemDecorator,
|
|
528
568
|
{
|
|
529
569
|
sx: (theme) => ({
|
|
@@ -531,7 +571,7 @@ function Autocomplete(props) {
|
|
|
531
571
|
})
|
|
532
572
|
},
|
|
533
573
|
applySize(option.startDecorator)
|
|
534
|
-
), applySize(option.label), option.endDecorator && /* @__PURE__ */
|
|
574
|
+
), applySize(option.label), option.endDecorator && /* @__PURE__ */ React5.createElement(
|
|
535
575
|
ListItemDecorator,
|
|
536
576
|
{
|
|
537
577
|
sx: (theme) => ({
|
|
@@ -543,7 +583,7 @@ function Autocomplete(props) {
|
|
|
543
583
|
renderGroup: (params) => params
|
|
544
584
|
}
|
|
545
585
|
);
|
|
546
|
-
return /* @__PURE__ */
|
|
586
|
+
return /* @__PURE__ */ React5.createElement(
|
|
547
587
|
FormControl_default,
|
|
548
588
|
{
|
|
549
589
|
required,
|
|
@@ -554,9 +594,9 @@ function Autocomplete(props) {
|
|
|
554
594
|
sx,
|
|
555
595
|
className
|
|
556
596
|
},
|
|
557
|
-
label && /* @__PURE__ */
|
|
597
|
+
label && /* @__PURE__ */ React5.createElement(FormLabel_default, null, label),
|
|
558
598
|
autocomplete,
|
|
559
|
-
helperText && /* @__PURE__ */
|
|
599
|
+
helperText && /* @__PURE__ */ React5.createElement(FormHelperText_default, null, helperText)
|
|
560
600
|
);
|
|
561
601
|
}
|
|
562
602
|
Autocomplete.displayName = "Autocomplete";
|
|
@@ -565,14 +605,14 @@ Autocomplete.displayName = "Autocomplete";
|
|
|
565
605
|
var Autocomplete_default = Autocomplete;
|
|
566
606
|
|
|
567
607
|
// src/components/Avatar/Avatar.tsx
|
|
568
|
-
import
|
|
608
|
+
import React6, { forwardRef as forwardRef2, useMemo as useMemo2 } from "react";
|
|
569
609
|
import {
|
|
570
610
|
Avatar as JoyAvatar,
|
|
571
611
|
AvatarGroup,
|
|
572
|
-
styled as
|
|
612
|
+
styled as styled4,
|
|
573
613
|
useThemeProps
|
|
574
614
|
} from "@mui/joy";
|
|
575
|
-
var StyledAvatar =
|
|
615
|
+
var StyledAvatar = styled4(JoyAvatar, {
|
|
576
616
|
name: "Avatar",
|
|
577
617
|
slot: "Root",
|
|
578
618
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -604,13 +644,13 @@ var Avatar = forwardRef2(function Avatar2(inProps, ref) {
|
|
|
604
644
|
}
|
|
605
645
|
return children;
|
|
606
646
|
}, [children, getInitial]);
|
|
607
|
-
return /* @__PURE__ */
|
|
647
|
+
return /* @__PURE__ */ React6.createElement(StyledAvatar, { ...inheritProps, children: calcChildren, ref });
|
|
608
648
|
});
|
|
609
649
|
|
|
610
650
|
// src/components/Box/Box.tsx
|
|
611
651
|
import { Box as JoyBox } from "@mui/joy";
|
|
612
|
-
import { motion as
|
|
613
|
-
var MotionBox =
|
|
652
|
+
import { motion as motion9 } from "framer-motion";
|
|
653
|
+
var MotionBox = motion9(JoyBox);
|
|
614
654
|
var Box = MotionBox;
|
|
615
655
|
Box.displayName = "Box";
|
|
616
656
|
|
|
@@ -618,7 +658,7 @@ Box.displayName = "Box";
|
|
|
618
658
|
var Box_default = Box;
|
|
619
659
|
|
|
620
660
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
621
|
-
import
|
|
661
|
+
import React8 from "react";
|
|
622
662
|
import {
|
|
623
663
|
Breadcrumbs as JoyBreadcrumbs,
|
|
624
664
|
Link as JoyLink,
|
|
@@ -626,20 +666,20 @@ import {
|
|
|
626
666
|
} from "@mui/joy";
|
|
627
667
|
|
|
628
668
|
// src/components/Menu/Menu.tsx
|
|
629
|
-
import
|
|
669
|
+
import React7 from "react";
|
|
630
670
|
import {
|
|
631
671
|
Menu as JoyMenu,
|
|
632
672
|
MenuItem as JoyMenuItem
|
|
633
673
|
} from "@mui/joy";
|
|
634
|
-
import { motion as
|
|
635
|
-
var MotionMenu =
|
|
674
|
+
import { motion as motion10 } from "framer-motion";
|
|
675
|
+
var MotionMenu = motion10(JoyMenu);
|
|
636
676
|
var Menu = (props) => {
|
|
637
|
-
return /* @__PURE__ */
|
|
677
|
+
return /* @__PURE__ */ React7.createElement(MotionMenu, { ...props });
|
|
638
678
|
};
|
|
639
679
|
Menu.displayName = "Menu";
|
|
640
|
-
var MotionMenuItem =
|
|
680
|
+
var MotionMenuItem = motion10(JoyMenuItem);
|
|
641
681
|
var MenuItem = (props) => {
|
|
642
|
-
return /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ React7.createElement(MotionMenuItem, { ...props });
|
|
643
683
|
};
|
|
644
684
|
MenuItem.displayName = "MenuItem";
|
|
645
685
|
|
|
@@ -652,19 +692,6 @@ import { Dropdown } from "@mui/joy";
|
|
|
652
692
|
// src/components/Dropdown/index.ts
|
|
653
693
|
var Dropdown_default = Dropdown;
|
|
654
694
|
|
|
655
|
-
// src/components/Typography/Typography.tsx
|
|
656
|
-
import React6 from "react";
|
|
657
|
-
import { Typography as JoyTypography } from "@mui/joy";
|
|
658
|
-
import { motion as motion9 } from "framer-motion";
|
|
659
|
-
var MotionTypography = motion9(JoyTypography);
|
|
660
|
-
var Typography = (props) => {
|
|
661
|
-
return /* @__PURE__ */ React6.createElement(MotionTypography, { ...props });
|
|
662
|
-
};
|
|
663
|
-
Typography.displayName = "Typography";
|
|
664
|
-
|
|
665
|
-
// src/components/Typography/index.ts
|
|
666
|
-
var Typography_default = Typography;
|
|
667
|
-
|
|
668
695
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
669
696
|
function Breadcrumbs(props) {
|
|
670
697
|
const {
|
|
@@ -681,15 +708,15 @@ function Breadcrumbs(props) {
|
|
|
681
708
|
const _endCrumbCount = Math.max(1, endCrumbCount);
|
|
682
709
|
const Crumb = (props2) => {
|
|
683
710
|
if (props2.type === "link" && Link4) {
|
|
684
|
-
return /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ React8.createElement(Link4, { to: props2.linkHref, href: props2.linkHref, ...linkProps }, props2.label);
|
|
685
712
|
} else {
|
|
686
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ React8.createElement(Typography_default, null, props2.label);
|
|
687
714
|
}
|
|
688
715
|
};
|
|
689
|
-
const frontCrumbs = crumbs.slice(0, startCrumbCount).map((crumb) => /* @__PURE__ */
|
|
690
|
-
const backCrumbs = (startCrumbCount + _endCrumbCount > crumbs.length ? crumbs.slice(startCrumbCount) : crumbs.slice(-_endCrumbCount)).map((crumb) => /* @__PURE__ */
|
|
691
|
-
const collapsedCrumbs = crumbs.slice(startCrumbCount, -_endCrumbCount).map((crumb) => /* @__PURE__ */
|
|
692
|
-
return /* @__PURE__ */
|
|
716
|
+
const frontCrumbs = crumbs.slice(0, startCrumbCount).map((crumb) => /* @__PURE__ */ React8.createElement(Crumb, { ...crumb }));
|
|
717
|
+
const backCrumbs = (startCrumbCount + _endCrumbCount > crumbs.length ? crumbs.slice(startCrumbCount) : crumbs.slice(-_endCrumbCount)).map((crumb) => /* @__PURE__ */ React8.createElement(Crumb, { ...crumb }));
|
|
718
|
+
const collapsedCrumbs = crumbs.slice(startCrumbCount, -_endCrumbCount).map((crumb) => /* @__PURE__ */ React8.createElement(MenuItem, null, /* @__PURE__ */ React8.createElement(Crumb, { ...crumb })));
|
|
719
|
+
return /* @__PURE__ */ React8.createElement(
|
|
693
720
|
JoyBreadcrumbs,
|
|
694
721
|
{
|
|
695
722
|
size,
|
|
@@ -698,20 +725,20 @@ function Breadcrumbs(props) {
|
|
|
698
725
|
...innerProps
|
|
699
726
|
},
|
|
700
727
|
frontCrumbs,
|
|
701
|
-
collapsedCrumbs.length && /* @__PURE__ */
|
|
728
|
+
collapsedCrumbs.length && /* @__PURE__ */ React8.createElement(Dropdown_default, null, /* @__PURE__ */ React8.createElement(JoyMenuButton, { size, variant: "plain" }, "..."), /* @__PURE__ */ React8.createElement(Menu_default, { size }, collapsedCrumbs)),
|
|
702
729
|
backCrumbs
|
|
703
730
|
);
|
|
704
731
|
}
|
|
705
732
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
706
733
|
|
|
707
734
|
// src/components/Button/Button.tsx
|
|
708
|
-
import
|
|
735
|
+
import React9, { forwardRef as forwardRef3 } from "react";
|
|
709
736
|
import { Button as JoyButton } from "@mui/joy";
|
|
710
|
-
import { motion as
|
|
711
|
-
var MotionButton =
|
|
737
|
+
import { motion as motion11 } from "framer-motion";
|
|
738
|
+
var MotionButton = motion11(JoyButton);
|
|
712
739
|
var Button = forwardRef3(
|
|
713
740
|
({ ...props }, ref) => {
|
|
714
|
-
return /* @__PURE__ */
|
|
741
|
+
return /* @__PURE__ */ React9.createElement(MotionButton, { ref, ...props });
|
|
715
742
|
}
|
|
716
743
|
);
|
|
717
744
|
Button.displayName = "Button";
|
|
@@ -720,11 +747,11 @@ Button.displayName = "Button";
|
|
|
720
747
|
var Button_default = Button;
|
|
721
748
|
|
|
722
749
|
// src/components/Calendar/Calendar.tsx
|
|
723
|
-
import
|
|
724
|
-
import { styled as
|
|
750
|
+
import React11, { Fragment, forwardRef as forwardRef4, useMemo as useMemo4 } from "react";
|
|
751
|
+
import { styled as styled5 } from "@mui/joy";
|
|
725
752
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
726
753
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
727
|
-
import { AnimatePresence, motion as
|
|
754
|
+
import { AnimatePresence, motion as motion12 } from "framer-motion";
|
|
728
755
|
|
|
729
756
|
// src/components/Calendar/utils/index.ts
|
|
730
757
|
var getCalendarDates = (date) => {
|
|
@@ -1105,13 +1132,13 @@ var useCalendar = (ownerState) => {
|
|
|
1105
1132
|
};
|
|
1106
1133
|
|
|
1107
1134
|
// src/components/Calendar/Calendar.tsx
|
|
1108
|
-
var CalendarRoot =
|
|
1135
|
+
var CalendarRoot = styled5("div", {
|
|
1109
1136
|
name: "Calendar",
|
|
1110
1137
|
slot: "root"
|
|
1111
1138
|
})({
|
|
1112
1139
|
maxWidth: "264px"
|
|
1113
1140
|
});
|
|
1114
|
-
var CalendarHeader =
|
|
1141
|
+
var CalendarHeader = styled5("div", {
|
|
1115
1142
|
name: "Calendar",
|
|
1116
1143
|
slot: "calendarHeader"
|
|
1117
1144
|
})(({ theme }) => ({
|
|
@@ -1120,7 +1147,7 @@ var CalendarHeader = styled4("div", {
|
|
|
1120
1147
|
alignItems: "center",
|
|
1121
1148
|
padding: theme.spacing(2)
|
|
1122
1149
|
}));
|
|
1123
|
-
var CalendarViewContainer =
|
|
1150
|
+
var CalendarViewContainer = styled5("div", {
|
|
1124
1151
|
name: "Calendar",
|
|
1125
1152
|
slot: "viewContainer",
|
|
1126
1153
|
shouldForwardProp: (prop) => prop !== "calendarType"
|
|
@@ -1133,7 +1160,7 @@ var CalendarViewContainer = styled4("div", {
|
|
|
1133
1160
|
minHeight: calendarType === "datePicker" ? "250px" : "unset"
|
|
1134
1161
|
})
|
|
1135
1162
|
);
|
|
1136
|
-
var CalendarViewTable =
|
|
1163
|
+
var CalendarViewTable = styled5(motion12.table, {
|
|
1137
1164
|
name: "Calendar",
|
|
1138
1165
|
slot: "viewTable"
|
|
1139
1166
|
})(({ theme }) => ({
|
|
@@ -1146,15 +1173,15 @@ var CalendarViewTable = styled4(motion11.table, {
|
|
|
1146
1173
|
paddingBottom: theme.spacing(2)
|
|
1147
1174
|
}
|
|
1148
1175
|
}));
|
|
1149
|
-
var CalendarWeekHeaderContainer =
|
|
1176
|
+
var CalendarWeekHeaderContainer = styled5("thead", {
|
|
1150
1177
|
name: "Calendar",
|
|
1151
1178
|
slot: "weekHeaderContainer"
|
|
1152
1179
|
})({});
|
|
1153
|
-
var CalendarDayPickerContainer =
|
|
1180
|
+
var CalendarDayPickerContainer = styled5("tbody", {
|
|
1154
1181
|
name: "Calendar",
|
|
1155
1182
|
slot: "dayPickerContainer"
|
|
1156
1183
|
})({});
|
|
1157
|
-
var CalendarSwitchViewButton =
|
|
1184
|
+
var CalendarSwitchViewButton = styled5(Button_default, {
|
|
1158
1185
|
name: "Calendar",
|
|
1159
1186
|
slot: "switchViewButton"
|
|
1160
1187
|
})(({ ownerState }) => [
|
|
@@ -1162,7 +1189,7 @@ var CalendarSwitchViewButton = styled4(Button_default, {
|
|
|
1162
1189
|
pointerEvents: "none"
|
|
1163
1190
|
}
|
|
1164
1191
|
]);
|
|
1165
|
-
var CalendarDayCell =
|
|
1192
|
+
var CalendarDayCell = styled5("td", {
|
|
1166
1193
|
name: "Calendar",
|
|
1167
1194
|
slot: "dayCell"
|
|
1168
1195
|
})(({ theme }) => ({
|
|
@@ -1184,7 +1211,7 @@ var CalendarDayCell = styled4("td", {
|
|
|
1184
1211
|
}
|
|
1185
1212
|
}
|
|
1186
1213
|
}));
|
|
1187
|
-
var CalendarMonthCell =
|
|
1214
|
+
var CalendarMonthCell = styled5("td", {
|
|
1188
1215
|
name: "Calendar",
|
|
1189
1216
|
slot: "monthCell"
|
|
1190
1217
|
})(({ theme }) => ({
|
|
@@ -1206,7 +1233,7 @@ var CalendarMonthCell = styled4("td", {
|
|
|
1206
1233
|
}
|
|
1207
1234
|
}
|
|
1208
1235
|
}));
|
|
1209
|
-
var CalendarMonth =
|
|
1236
|
+
var CalendarMonth = styled5(Button_default, {
|
|
1210
1237
|
name: "Calendar",
|
|
1211
1238
|
slot: "month",
|
|
1212
1239
|
shouldForwardProp: (prop) => prop !== "isSelected"
|
|
@@ -1241,7 +1268,7 @@ var CalendarMonth = styled4(Button_default, {
|
|
|
1241
1268
|
backgroundColor: theme.palette.neutral.solidDisabledBg
|
|
1242
1269
|
}
|
|
1243
1270
|
]);
|
|
1244
|
-
var CalendarDay =
|
|
1271
|
+
var CalendarDay = styled5(Button_default, {
|
|
1245
1272
|
name: "Calendar",
|
|
1246
1273
|
slot: "day",
|
|
1247
1274
|
shouldForwardProp: (prop) => !["isToday", "isSelected"].includes(prop)
|
|
@@ -1319,7 +1346,7 @@ var PickerDays = (props) => {
|
|
|
1319
1346
|
() => getWeekdayNames(ownerState.locale || "default"),
|
|
1320
1347
|
[ownerState.locale]
|
|
1321
1348
|
);
|
|
1322
|
-
return /* @__PURE__ */
|
|
1349
|
+
return /* @__PURE__ */ React11.createElement(CalendarViewContainer, { calendarType: "datePicker" }, /* @__PURE__ */ React11.createElement(AnimatePresence, { initial: false, custom: ownerState.direction }, /* @__PURE__ */ React11.createElement(
|
|
1323
1350
|
CalendarViewTable,
|
|
1324
1351
|
{
|
|
1325
1352
|
key: `${ownerState.viewMonth.toString()}_${ownerState.direction}`,
|
|
@@ -1348,7 +1375,7 @@ var PickerDays = (props) => {
|
|
|
1348
1375
|
}
|
|
1349
1376
|
}
|
|
1350
1377
|
},
|
|
1351
|
-
/* @__PURE__ */
|
|
1378
|
+
/* @__PURE__ */ React11.createElement(CalendarWeekHeaderContainer, null, /* @__PURE__ */ React11.createElement("tr", null, weekdayNames.map((name, i) => /* @__PURE__ */ React11.createElement(Fragment, { key: `${ownerState.viewMonth}_${name}_${i}` }, /* @__PURE__ */ React11.createElement("th", null, /* @__PURE__ */ React11.createElement(Typography_default, { level: "body-xs", textAlign: "center" }, name)), i < 6 && /* @__PURE__ */ React11.createElement(
|
|
1352
1379
|
"th",
|
|
1353
1380
|
{
|
|
1354
1381
|
style: { width: 4 },
|
|
@@ -1356,8 +1383,8 @@ var PickerDays = (props) => {
|
|
|
1356
1383
|
"aria-description": "cell-gap"
|
|
1357
1384
|
}
|
|
1358
1385
|
))))),
|
|
1359
|
-
/* @__PURE__ */
|
|
1360
|
-
(date, i) => date ? /* @__PURE__ */
|
|
1386
|
+
/* @__PURE__ */ React11.createElement(CalendarDayPickerContainer, null, calendarDates.map((weekDates, rowIndex) => /* @__PURE__ */ React11.createElement(Fragment, { key: `${ownerState.viewMonth}_${rowIndex}` }, /* @__PURE__ */ React11.createElement("tr", null, weekDates.map(
|
|
1387
|
+
(date, i) => date ? /* @__PURE__ */ React11.createElement(Fragment, { key: i }, /* @__PURE__ */ React11.createElement(CalendarDayCell, { ...getDayCellProps(date) }, /* @__PURE__ */ React11.createElement(
|
|
1361
1388
|
CalendarDay,
|
|
1362
1389
|
{
|
|
1363
1390
|
size: "sm",
|
|
@@ -1366,8 +1393,8 @@ var PickerDays = (props) => {
|
|
|
1366
1393
|
...getPickerDayProps(date)
|
|
1367
1394
|
},
|
|
1368
1395
|
date
|
|
1369
|
-
)), i < 6 && /* @__PURE__ */
|
|
1370
|
-
)), rowIndex < calendarDates.length - 1 && /* @__PURE__ */
|
|
1396
|
+
)), i < 6 && /* @__PURE__ */ React11.createElement("td", { "aria-hidden": "true", "aria-description": "cell-gap" })) : /* @__PURE__ */ React11.createElement(Fragment, { key: i }, /* @__PURE__ */ React11.createElement("td", null), i < 6 && /* @__PURE__ */ React11.createElement("td", { "aria-hidden": "true", "aria-description": "cell-gap" }))
|
|
1397
|
+
)), rowIndex < calendarDates.length - 1 && /* @__PURE__ */ React11.createElement("tr", { "aria-hidden": "true", "aria-description": "row-gap" }, /* @__PURE__ */ React11.createElement("td", { colSpan: 13, style: { height: 4 } })))))
|
|
1371
1398
|
)));
|
|
1372
1399
|
};
|
|
1373
1400
|
var PickerMonths = (props) => {
|
|
@@ -1384,12 +1411,12 @@ var PickerMonths = (props) => {
|
|
|
1384
1411
|
[[]]
|
|
1385
1412
|
);
|
|
1386
1413
|
const isMonthPicker = !ownerState.views?.find((view) => view === "day");
|
|
1387
|
-
return /* @__PURE__ */
|
|
1414
|
+
return /* @__PURE__ */ React11.createElement(
|
|
1388
1415
|
CalendarViewContainer,
|
|
1389
1416
|
{
|
|
1390
1417
|
calendarType: isMonthPicker ? "monthPicker" : "datePicker"
|
|
1391
1418
|
},
|
|
1392
|
-
/* @__PURE__ */
|
|
1419
|
+
/* @__PURE__ */ React11.createElement(AnimatePresence, { initial: false, custom: ownerState.direction }, /* @__PURE__ */ React11.createElement(
|
|
1393
1420
|
CalendarViewTable,
|
|
1394
1421
|
{
|
|
1395
1422
|
key: `${ownerState.viewMonth.getFullYear()}_${ownerState.direction}`,
|
|
@@ -1418,7 +1445,7 @@ var PickerMonths = (props) => {
|
|
|
1418
1445
|
}
|
|
1419
1446
|
}
|
|
1420
1447
|
},
|
|
1421
|
-
/* @__PURE__ */
|
|
1448
|
+
/* @__PURE__ */ React11.createElement("tbody", null, chunkedMonths.map((months, i) => /* @__PURE__ */ React11.createElement(Fragment, { key: i }, /* @__PURE__ */ React11.createElement("tr", null, months.map((monthIndex, j) => /* @__PURE__ */ React11.createElement(Fragment, { key: monthIndex }, /* @__PURE__ */ React11.createElement(CalendarMonthCell, { ...getMonthCellProps(monthIndex) }, /* @__PURE__ */ React11.createElement(
|
|
1422
1449
|
CalendarMonth,
|
|
1423
1450
|
{
|
|
1424
1451
|
size: "sm",
|
|
@@ -1430,14 +1457,14 @@ var PickerMonths = (props) => {
|
|
|
1430
1457
|
monthIndex,
|
|
1431
1458
|
ownerState.locale
|
|
1432
1459
|
)
|
|
1433
|
-
)), j < 3 && /* @__PURE__ */
|
|
1460
|
+
)), j < 3 && /* @__PURE__ */ React11.createElement(
|
|
1434
1461
|
"td",
|
|
1435
1462
|
{
|
|
1436
1463
|
style: { width: 4 },
|
|
1437
1464
|
"aria-hidden": "true",
|
|
1438
1465
|
"aria-description": "cell-gap"
|
|
1439
1466
|
}
|
|
1440
|
-
)))), i < chunkedMonths.length - 1 && /* @__PURE__ */
|
|
1467
|
+
)))), i < chunkedMonths.length - 1 && /* @__PURE__ */ React11.createElement("tr", { "aria-hidden": "true", "aria-description": "row-gap" }, /* @__PURE__ */ React11.createElement("td", { colSpan: 7, style: { height: 4 } })))))
|
|
1441
1468
|
))
|
|
1442
1469
|
);
|
|
1443
1470
|
};
|
|
@@ -1460,15 +1487,15 @@ var Calendar = forwardRef4((inProps, ref) => {
|
|
|
1460
1487
|
...others
|
|
1461
1488
|
} = props;
|
|
1462
1489
|
const { calendarTitle, onPrev, onNext } = useCalendar(ownerState);
|
|
1463
|
-
return /* @__PURE__ */
|
|
1490
|
+
return /* @__PURE__ */ React11.createElement(CalendarRoot, { ref, ...others }, /* @__PURE__ */ React11.createElement(CalendarHeader, null, /* @__PURE__ */ React11.createElement(
|
|
1464
1491
|
IconButton_default,
|
|
1465
1492
|
{
|
|
1466
1493
|
size: "sm",
|
|
1467
1494
|
onClick: onPrev,
|
|
1468
1495
|
"aria-label": `Previous ${view === "day" ? "Month" : "Year"}`
|
|
1469
1496
|
},
|
|
1470
|
-
/* @__PURE__ */
|
|
1471
|
-
), /* @__PURE__ */
|
|
1497
|
+
/* @__PURE__ */ React11.createElement(ChevronLeftIcon, null)
|
|
1498
|
+
), /* @__PURE__ */ React11.createElement(
|
|
1472
1499
|
CalendarSwitchViewButton,
|
|
1473
1500
|
{
|
|
1474
1501
|
ownerState,
|
|
@@ -1478,15 +1505,15 @@ var Calendar = forwardRef4((inProps, ref) => {
|
|
|
1478
1505
|
"aria-label": "Switch Calendar View"
|
|
1479
1506
|
},
|
|
1480
1507
|
calendarTitle
|
|
1481
|
-
), /* @__PURE__ */
|
|
1508
|
+
), /* @__PURE__ */ React11.createElement(
|
|
1482
1509
|
IconButton_default,
|
|
1483
1510
|
{
|
|
1484
1511
|
size: "sm",
|
|
1485
1512
|
onClick: onNext,
|
|
1486
1513
|
"aria-label": `Next ${view === "day" ? "Month" : "Year"}`
|
|
1487
1514
|
},
|
|
1488
|
-
/* @__PURE__ */
|
|
1489
|
-
)), view === "day" && /* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ React11.createElement(ChevronRightIcon, null)
|
|
1516
|
+
)), view === "day" && /* @__PURE__ */ React11.createElement(PickerDays, { ownerState }), view === "month" && /* @__PURE__ */ React11.createElement(PickerMonths, { ownerState }));
|
|
1490
1517
|
});
|
|
1491
1518
|
Calendar.displayName = "Calendar";
|
|
1492
1519
|
|
|
@@ -1501,30 +1528,30 @@ import {
|
|
|
1501
1528
|
CardActions as JoyCardActions,
|
|
1502
1529
|
CardOverflow as JoyCardOverflow
|
|
1503
1530
|
} from "@mui/joy";
|
|
1504
|
-
import { motion as
|
|
1505
|
-
var MotionCard =
|
|
1531
|
+
import { motion as motion13 } from "framer-motion";
|
|
1532
|
+
var MotionCard = motion13(JoyCard);
|
|
1506
1533
|
var Card = MotionCard;
|
|
1507
1534
|
Card.displayName = "Card";
|
|
1508
|
-
var MotionCardContent =
|
|
1535
|
+
var MotionCardContent = motion13(JoyCardContent);
|
|
1509
1536
|
var CardContent = MotionCardContent;
|
|
1510
1537
|
CardContent.displayName = "CardContent";
|
|
1511
|
-
var MotionCardCover =
|
|
1538
|
+
var MotionCardCover = motion13(JoyCardCover);
|
|
1512
1539
|
var CardCover = MotionCardCover;
|
|
1513
1540
|
CardCover.displayName = "CardCover";
|
|
1514
|
-
var MotionCardActions =
|
|
1541
|
+
var MotionCardActions = motion13(JoyCardActions);
|
|
1515
1542
|
var CardActions = MotionCardActions;
|
|
1516
1543
|
CardActions.displayName = "CardActions";
|
|
1517
|
-
var MotionCardOverflow =
|
|
1544
|
+
var MotionCardOverflow = motion13(JoyCardOverflow);
|
|
1518
1545
|
var CardOverflow = MotionCardOverflow;
|
|
1519
1546
|
CardOverflow.displayName = "CardOverflow";
|
|
1520
1547
|
|
|
1521
1548
|
// src/components/Checkbox/Checkbox.tsx
|
|
1522
|
-
import
|
|
1549
|
+
import React12 from "react";
|
|
1523
1550
|
import { Checkbox as JoyCheckbox } from "@mui/joy";
|
|
1524
|
-
import { motion as
|
|
1525
|
-
var MotionCheckbox =
|
|
1551
|
+
import { motion as motion14 } from "framer-motion";
|
|
1552
|
+
var MotionCheckbox = motion14(JoyCheckbox);
|
|
1526
1553
|
var Checkbox = (props) => {
|
|
1527
|
-
return /* @__PURE__ */
|
|
1554
|
+
return /* @__PURE__ */ React12.createElement(MotionCheckbox, { ...props });
|
|
1528
1555
|
};
|
|
1529
1556
|
Checkbox.displayName = "Checkbox";
|
|
1530
1557
|
|
|
@@ -1532,9 +1559,9 @@ Checkbox.displayName = "Checkbox";
|
|
|
1532
1559
|
var Checkbox_default = Checkbox;
|
|
1533
1560
|
|
|
1534
1561
|
// src/components/Container/Container.tsx
|
|
1535
|
-
import { styled as
|
|
1536
|
-
import
|
|
1537
|
-
var ContainerRoot =
|
|
1562
|
+
import { styled as styled6 } from "@mui/joy";
|
|
1563
|
+
import React13, { forwardRef as forwardRef5 } from "react";
|
|
1564
|
+
var ContainerRoot = styled6("div", {
|
|
1538
1565
|
name: "Container",
|
|
1539
1566
|
slot: "root",
|
|
1540
1567
|
shouldForwardProp: (prop) => prop !== "maxWidth" && prop !== "overrideBreakpoint"
|
|
@@ -1560,22 +1587,22 @@ var ContainerRoot = styled5("div", {
|
|
|
1560
1587
|
} : null
|
|
1561
1588
|
]);
|
|
1562
1589
|
var Container = forwardRef5(function Container2(props, ref) {
|
|
1563
|
-
return /* @__PURE__ */
|
|
1590
|
+
return /* @__PURE__ */ React13.createElement(ContainerRoot, { ref, ...props });
|
|
1564
1591
|
});
|
|
1565
1592
|
Container.displayName = "Container";
|
|
1566
1593
|
|
|
1567
1594
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
1568
|
-
import
|
|
1595
|
+
import React15, { useCallback as useCallback6, useMemo as useMemo5, useState as useState4 } from "react";
|
|
1569
1596
|
import { IntlMessageFormat as IntlMessageFormat2 } from "intl-messageformat";
|
|
1570
1597
|
import { NumericFormat } from "react-number-format";
|
|
1571
1598
|
|
|
1572
1599
|
// src/components/Input/Input.tsx
|
|
1573
|
-
import
|
|
1600
|
+
import React14, { useCallback as useCallback5 } from "react";
|
|
1574
1601
|
import { Input as JoyInput } from "@mui/joy";
|
|
1575
|
-
import { motion as
|
|
1602
|
+
import { motion as motion15 } from "framer-motion";
|
|
1576
1603
|
import ClearIcon from "@mui/icons-material/Close";
|
|
1577
|
-
var MotionInput =
|
|
1578
|
-
var Input =
|
|
1604
|
+
var MotionInput = motion15(JoyInput);
|
|
1605
|
+
var Input = React14.forwardRef((props, ref) => {
|
|
1579
1606
|
const {
|
|
1580
1607
|
label,
|
|
1581
1608
|
helperText,
|
|
@@ -1616,7 +1643,7 @@ var Input = React13.forwardRef((props, ref) => {
|
|
|
1616
1643
|
const handleClear = () => {
|
|
1617
1644
|
setValue(props.defaultValue || "");
|
|
1618
1645
|
};
|
|
1619
|
-
const input = /* @__PURE__ */
|
|
1646
|
+
const input = /* @__PURE__ */ React14.createElement(
|
|
1620
1647
|
MotionInput,
|
|
1621
1648
|
{
|
|
1622
1649
|
value,
|
|
@@ -1630,26 +1657,26 @@ var Input = React13.forwardRef((props, ref) => {
|
|
|
1630
1657
|
...innerProps.slotProps
|
|
1631
1658
|
},
|
|
1632
1659
|
...innerProps,
|
|
1633
|
-
endDecorator: enableClearable ? /* @__PURE__ */
|
|
1660
|
+
endDecorator: enableClearable ? /* @__PURE__ */ React14.createElement(
|
|
1634
1661
|
Stack_default,
|
|
1635
1662
|
{
|
|
1636
1663
|
gap: 1,
|
|
1637
1664
|
direction: "row"
|
|
1638
1665
|
},
|
|
1639
1666
|
innerProps.endDecorator,
|
|
1640
|
-
value && /* @__PURE__ */
|
|
1667
|
+
value && /* @__PURE__ */ React14.createElement(
|
|
1641
1668
|
IconButton_default,
|
|
1642
1669
|
{
|
|
1643
1670
|
onMouseDown: (e) => e.preventDefault(),
|
|
1644
1671
|
onClick: handleClear,
|
|
1645
1672
|
"aria-label": "Clear"
|
|
1646
1673
|
},
|
|
1647
|
-
/* @__PURE__ */
|
|
1674
|
+
/* @__PURE__ */ React14.createElement(ClearIcon, null)
|
|
1648
1675
|
)
|
|
1649
1676
|
) : innerProps.endDecorator
|
|
1650
1677
|
}
|
|
1651
1678
|
);
|
|
1652
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ React14.createElement(
|
|
1653
1680
|
FormControl_default,
|
|
1654
1681
|
{
|
|
1655
1682
|
required,
|
|
@@ -1660,9 +1687,9 @@ var Input = React13.forwardRef((props, ref) => {
|
|
|
1660
1687
|
sx,
|
|
1661
1688
|
className
|
|
1662
1689
|
},
|
|
1663
|
-
label && /* @__PURE__ */
|
|
1690
|
+
label && /* @__PURE__ */ React14.createElement(FormLabel_default, null, label),
|
|
1664
1691
|
input,
|
|
1665
|
-
helperText && /* @__PURE__ */
|
|
1692
|
+
helperText && /* @__PURE__ */ React14.createElement(FormHelperText_default, null, helperText)
|
|
1666
1693
|
);
|
|
1667
1694
|
});
|
|
1668
1695
|
Input.displayName = "Input";
|
|
@@ -1671,7 +1698,7 @@ Input.displayName = "Input";
|
|
|
1671
1698
|
var Input_default = Input;
|
|
1672
1699
|
|
|
1673
1700
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
1674
|
-
import { styled as
|
|
1701
|
+
import { styled as styled7, useThemeProps as useThemeProps3 } from "@mui/joy";
|
|
1675
1702
|
|
|
1676
1703
|
// src/components/CurrencyInput/hooks/use-currency-setting.ts
|
|
1677
1704
|
import IntlMessageFormat from "intl-messageformat";
|
|
@@ -1833,10 +1860,10 @@ var useCurrencySetting = (currencyCode = "USD") => {
|
|
|
1833
1860
|
};
|
|
1834
1861
|
|
|
1835
1862
|
// src/components/CurrencyInput/CurrencyInput.tsx
|
|
1836
|
-
var TextMaskAdapter =
|
|
1863
|
+
var TextMaskAdapter = React15.forwardRef(
|
|
1837
1864
|
function TextMaskAdapter2(props, ref) {
|
|
1838
1865
|
const { onChange, ...innerProps } = props;
|
|
1839
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1840
1867
|
NumericFormat,
|
|
1841
1868
|
{
|
|
1842
1869
|
...innerProps,
|
|
@@ -1852,12 +1879,12 @@ var TextMaskAdapter = React14.forwardRef(
|
|
|
1852
1879
|
);
|
|
1853
1880
|
}
|
|
1854
1881
|
);
|
|
1855
|
-
var CurrencyInputRoot =
|
|
1882
|
+
var CurrencyInputRoot = styled7(Input_default, {
|
|
1856
1883
|
name: "CurrencyInput",
|
|
1857
1884
|
slot: "root",
|
|
1858
1885
|
overridesResolver: (props, styles) => styles.root
|
|
1859
1886
|
})({});
|
|
1860
|
-
var CurrencyInput =
|
|
1887
|
+
var CurrencyInput = React15.forwardRef(function CurrencyInput2(inProps, ref) {
|
|
1861
1888
|
const props = useThemeProps3({ props: inProps, name: "CurrencyInput" });
|
|
1862
1889
|
const {
|
|
1863
1890
|
currency = "USD",
|
|
@@ -1921,7 +1948,7 @@ var CurrencyInput = React14.forwardRef(function CurrencyInput2(inProps, ref) {
|
|
|
1921
1948
|
},
|
|
1922
1949
|
[decimalSeparator, max, useMinorUnit, setValue]
|
|
1923
1950
|
);
|
|
1924
|
-
return /* @__PURE__ */
|
|
1951
|
+
return /* @__PURE__ */ React15.createElement(
|
|
1925
1952
|
CurrencyInputRoot,
|
|
1926
1953
|
{
|
|
1927
1954
|
...innerProps,
|
|
@@ -1960,7 +1987,7 @@ var CurrencyInput = React14.forwardRef(function CurrencyInput2(inProps, ref) {
|
|
|
1960
1987
|
var CurrencyInput_default = CurrencyInput;
|
|
1961
1988
|
|
|
1962
1989
|
// src/components/DataTable/DataTable.tsx
|
|
1963
|
-
import
|
|
1990
|
+
import React23, {
|
|
1964
1991
|
useCallback as useCallback9,
|
|
1965
1992
|
useEffect as useEffect5,
|
|
1966
1993
|
useMemo as useMemo8,
|
|
@@ -1973,13 +2000,13 @@ import React22, {
|
|
|
1973
2000
|
memo
|
|
1974
2001
|
} from "react";
|
|
1975
2002
|
import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
|
|
1976
|
-
import { styled as
|
|
2003
|
+
import { styled as styled12, LinearProgress, Link, useTheme } from "@mui/joy";
|
|
1977
2004
|
import SortIcon from "@mui/icons-material/ArrowUpwardRounded";
|
|
1978
2005
|
|
|
1979
2006
|
// src/components/Sheet/Sheet.tsx
|
|
1980
2007
|
import { Sheet as JoySheet } from "@mui/joy";
|
|
1981
|
-
import { motion as
|
|
1982
|
-
var MotionSheet =
|
|
2008
|
+
import { motion as motion16 } from "framer-motion";
|
|
2009
|
+
var MotionSheet = motion16(JoySheet);
|
|
1983
2010
|
var Sheet = MotionSheet;
|
|
1984
2011
|
Sheet.displayName = "Sheet";
|
|
1985
2012
|
|
|
@@ -1987,11 +2014,11 @@ Sheet.displayName = "Sheet";
|
|
|
1987
2014
|
var Sheet_default = Sheet;
|
|
1988
2015
|
|
|
1989
2016
|
// src/components/Table/Table.tsx
|
|
1990
|
-
import
|
|
2017
|
+
import React16 from "react";
|
|
1991
2018
|
import { Table as JoyTable } from "@mui/joy";
|
|
1992
2019
|
var Table = (props) => {
|
|
1993
2020
|
const { children, ...inheritProps } = props;
|
|
1994
|
-
return /* @__PURE__ */
|
|
2021
|
+
return /* @__PURE__ */ React16.createElement(JoyTable, { ...inheritProps }, children);
|
|
1995
2022
|
};
|
|
1996
2023
|
Table.displayName = "Table";
|
|
1997
2024
|
function TableHead(props) {
|
|
@@ -2002,7 +2029,7 @@ function TableHead(props) {
|
|
|
2002
2029
|
slots: { checkbox: RenderCheckbox = Checkbox_default } = {},
|
|
2003
2030
|
slotProps: { checkbox: checkboxProps = {} } = {}
|
|
2004
2031
|
} = props;
|
|
2005
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ React16.createElement("thead", null, /* @__PURE__ */ React16.createElement("tr", null, showCheckbox && /* @__PURE__ */ React16.createElement(
|
|
2006
2033
|
"th",
|
|
2007
2034
|
{
|
|
2008
2035
|
style: {
|
|
@@ -2010,8 +2037,8 @@ function TableHead(props) {
|
|
|
2010
2037
|
textAlign: "center"
|
|
2011
2038
|
}
|
|
2012
2039
|
},
|
|
2013
|
-
/* @__PURE__ */
|
|
2014
|
-
), headCells.map((headCell) => /* @__PURE__ */
|
|
2040
|
+
/* @__PURE__ */ React16.createElement(RenderCheckbox, { onChange: onCheckboxChange, ...checkboxProps })
|
|
2041
|
+
), headCells.map((headCell) => /* @__PURE__ */ React16.createElement(
|
|
2015
2042
|
"th",
|
|
2016
2043
|
{
|
|
2017
2044
|
key: headCell.label,
|
|
@@ -2036,21 +2063,21 @@ function TableBody(props) {
|
|
|
2036
2063
|
slots: { checkbox: RenderCheckbox = Checkbox_default } = {},
|
|
2037
2064
|
slotProps: { checkbox: checkboxProps = {} } = {}
|
|
2038
2065
|
} = props;
|
|
2039
|
-
return /* @__PURE__ */
|
|
2066
|
+
return /* @__PURE__ */ React16.createElement("tbody", null, rows.map((row, rowIndex) => /* @__PURE__ */ React16.createElement("tr", { key: rowIndex }, showCheckbox && /* @__PURE__ */ React16.createElement(
|
|
2040
2067
|
"td",
|
|
2041
2068
|
{
|
|
2042
2069
|
style: {
|
|
2043
2070
|
textAlign: "center"
|
|
2044
2071
|
}
|
|
2045
2072
|
},
|
|
2046
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ React16.createElement(
|
|
2047
2074
|
RenderCheckbox,
|
|
2048
2075
|
{
|
|
2049
2076
|
onChange: (event) => onCheckboxChange?.(event, rowIndex),
|
|
2050
2077
|
...checkboxProps
|
|
2051
2078
|
}
|
|
2052
2079
|
)
|
|
2053
|
-
), cellOrder.map((cellKey) => /* @__PURE__ */
|
|
2080
|
+
), cellOrder.map((cellKey) => /* @__PURE__ */ React16.createElement(
|
|
2054
2081
|
"td",
|
|
2055
2082
|
{
|
|
2056
2083
|
key: cellKey,
|
|
@@ -2064,7 +2091,7 @@ function TableBody(props) {
|
|
|
2064
2091
|
TableBody.displayName = "TableBody";
|
|
2065
2092
|
|
|
2066
2093
|
// src/components/DatePicker/DatePicker.tsx
|
|
2067
|
-
import
|
|
2094
|
+
import React17, {
|
|
2068
2095
|
forwardRef as forwardRef6,
|
|
2069
2096
|
useCallback as useCallback7,
|
|
2070
2097
|
useEffect as useEffect3,
|
|
@@ -2074,14 +2101,14 @@ import React16, {
|
|
|
2074
2101
|
} from "react";
|
|
2075
2102
|
import { IMaskInput, IMask } from "react-imask";
|
|
2076
2103
|
import CalendarTodayIcon from "@mui/icons-material/CalendarToday";
|
|
2077
|
-
import { styled as
|
|
2104
|
+
import { styled as styled9, useThemeProps as useThemeProps4 } from "@mui/joy";
|
|
2078
2105
|
import { FocusTrap, ClickAwayListener, Popper as Popper2 } from "@mui/base";
|
|
2079
2106
|
|
|
2080
2107
|
// src/components/DialogActions/DialogActions.tsx
|
|
2081
|
-
import { DialogActions as JoyDialogActions, styled as
|
|
2082
|
-
import { motion as
|
|
2083
|
-
var MotionDialogActions =
|
|
2084
|
-
var StyledDialogActions =
|
|
2108
|
+
import { DialogActions as JoyDialogActions, styled as styled8 } from "@mui/joy";
|
|
2109
|
+
import { motion as motion17 } from "framer-motion";
|
|
2110
|
+
var MotionDialogActions = motion17(JoyDialogActions);
|
|
2111
|
+
var StyledDialogActions = styled8(MotionDialogActions)(({ theme }) => ({
|
|
2085
2112
|
padding: theme.spacing(2),
|
|
2086
2113
|
gap: theme.spacing(2),
|
|
2087
2114
|
flexDirection: "row",
|
|
@@ -2094,7 +2121,7 @@ DialogActions.displayName = "DialogActions";
|
|
|
2094
2121
|
var DialogActions_default = DialogActions;
|
|
2095
2122
|
|
|
2096
2123
|
// src/components/DatePicker/DatePicker.tsx
|
|
2097
|
-
var CalendarButton =
|
|
2124
|
+
var CalendarButton = styled9(IconButton_default, {
|
|
2098
2125
|
name: "DatePicker",
|
|
2099
2126
|
slot: "calendarButton"
|
|
2100
2127
|
})(({ theme }) => ({
|
|
@@ -2106,13 +2133,13 @@ var CalendarButton = styled8(IconButton_default, {
|
|
|
2106
2133
|
)}`
|
|
2107
2134
|
}
|
|
2108
2135
|
}));
|
|
2109
|
-
var StyledPopper =
|
|
2136
|
+
var StyledPopper = styled9(Popper2, {
|
|
2110
2137
|
name: "DatePicker",
|
|
2111
2138
|
slot: "popper"
|
|
2112
2139
|
})(({ theme }) => ({
|
|
2113
2140
|
zIndex: theme.zIndex.tooltip
|
|
2114
2141
|
}));
|
|
2115
|
-
var CalendarSheet =
|
|
2142
|
+
var CalendarSheet = styled9(Sheet_default, {
|
|
2116
2143
|
name: "DatePicker",
|
|
2117
2144
|
slot: "sheet",
|
|
2118
2145
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2121,7 +2148,7 @@ var CalendarSheet = styled8(Sheet_default, {
|
|
|
2121
2148
|
boxShadow: theme.shadow.md,
|
|
2122
2149
|
borderRadius: theme.radius.md
|
|
2123
2150
|
}));
|
|
2124
|
-
var DatePickerRoot =
|
|
2151
|
+
var DatePickerRoot = styled9("div", {
|
|
2125
2152
|
name: "DatePicker",
|
|
2126
2153
|
slot: "root",
|
|
2127
2154
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -2180,10 +2207,10 @@ function parseDate(dateString, format) {
|
|
|
2180
2207
|
var formatToPattern = (format) => {
|
|
2181
2208
|
return format.replace(/YYYY/g, "Y").replace(/MM/g, "M").replace(/DD/g, "D").replace(/[^YMD\s]/g, (match) => `${match}\``);
|
|
2182
2209
|
};
|
|
2183
|
-
var TextMaskAdapter3 =
|
|
2210
|
+
var TextMaskAdapter3 = React17.forwardRef(
|
|
2184
2211
|
function TextMaskAdapter4(props, ref) {
|
|
2185
2212
|
const { onChange, format, ...other } = props;
|
|
2186
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ React17.createElement(
|
|
2187
2214
|
IMaskInput,
|
|
2188
2215
|
{
|
|
2189
2216
|
...other,
|
|
@@ -2337,7 +2364,7 @@ var DatePicker = forwardRef6(
|
|
|
2337
2364
|
},
|
|
2338
2365
|
[inputReadOnly, buttonRef]
|
|
2339
2366
|
);
|
|
2340
|
-
return /* @__PURE__ */
|
|
2367
|
+
return /* @__PURE__ */ React17.createElement(DatePickerRoot, null, /* @__PURE__ */ React17.createElement(FocusTrap, { open: true }, /* @__PURE__ */ React17.createElement(React17.Fragment, null, /* @__PURE__ */ React17.createElement(
|
|
2341
2368
|
Input_default,
|
|
2342
2369
|
{
|
|
2343
2370
|
...innerProps,
|
|
@@ -2365,7 +2392,7 @@ var DatePicker = forwardRef6(
|
|
|
2365
2392
|
},
|
|
2366
2393
|
className,
|
|
2367
2394
|
sx,
|
|
2368
|
-
endDecorator: /* @__PURE__ */
|
|
2395
|
+
endDecorator: /* @__PURE__ */ React17.createElement(
|
|
2369
2396
|
CalendarButton,
|
|
2370
2397
|
{
|
|
2371
2398
|
ref: buttonRef,
|
|
@@ -2377,13 +2404,13 @@ var DatePicker = forwardRef6(
|
|
|
2377
2404
|
"aria-expanded": open,
|
|
2378
2405
|
disabled
|
|
2379
2406
|
},
|
|
2380
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ React17.createElement(CalendarTodayIcon, null)
|
|
2381
2408
|
),
|
|
2382
2409
|
label,
|
|
2383
2410
|
helperText,
|
|
2384
2411
|
readOnly: readOnly || inputReadOnly
|
|
2385
2412
|
}
|
|
2386
|
-
), open && /* @__PURE__ */
|
|
2413
|
+
), open && /* @__PURE__ */ React17.createElement(ClickAwayListener, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React17.createElement(
|
|
2387
2414
|
StyledPopper,
|
|
2388
2415
|
{
|
|
2389
2416
|
id: "date-picker-popper",
|
|
@@ -2402,7 +2429,7 @@ var DatePicker = forwardRef6(
|
|
|
2402
2429
|
"aria-label": "Calendar Tooltip",
|
|
2403
2430
|
"aria-expanded": open
|
|
2404
2431
|
},
|
|
2405
|
-
/* @__PURE__ */
|
|
2432
|
+
/* @__PURE__ */ React17.createElement(CalendarSheet, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React17.createElement(
|
|
2406
2433
|
Calendar_default,
|
|
2407
2434
|
{
|
|
2408
2435
|
value: value && !Number.isNaN(parseDate(value, format).getTime()) ? [parseDate(value, format), void 0] : void 0,
|
|
@@ -2420,14 +2447,14 @@ var DatePicker = forwardRef6(
|
|
|
2420
2447
|
disableFuture,
|
|
2421
2448
|
disablePast
|
|
2422
2449
|
}
|
|
2423
|
-
), !hideClearButton && /* @__PURE__ */
|
|
2450
|
+
), !hideClearButton && /* @__PURE__ */ React17.createElement(
|
|
2424
2451
|
DialogActions_default,
|
|
2425
2452
|
{
|
|
2426
2453
|
sx: {
|
|
2427
2454
|
p: 1
|
|
2428
2455
|
}
|
|
2429
2456
|
},
|
|
2430
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ React17.createElement(
|
|
2431
2458
|
Button_default,
|
|
2432
2459
|
{
|
|
2433
2460
|
size,
|
|
@@ -2454,10 +2481,10 @@ var DatePicker = forwardRef6(
|
|
|
2454
2481
|
var DatePicker_default = DatePicker;
|
|
2455
2482
|
|
|
2456
2483
|
// src/components/Textarea/Textarea.tsx
|
|
2457
|
-
import
|
|
2484
|
+
import React18 from "react";
|
|
2458
2485
|
import { Textarea as JoyTextarea } from "@mui/joy";
|
|
2459
|
-
import { motion as
|
|
2460
|
-
var MotionTextarea =
|
|
2486
|
+
import { motion as motion18 } from "framer-motion";
|
|
2487
|
+
var MotionTextarea = motion18(JoyTextarea);
|
|
2461
2488
|
var Textarea = (props) => {
|
|
2462
2489
|
const {
|
|
2463
2490
|
label,
|
|
@@ -2474,7 +2501,7 @@ var Textarea = (props) => {
|
|
|
2474
2501
|
className,
|
|
2475
2502
|
...innerProps
|
|
2476
2503
|
} = props;
|
|
2477
|
-
const textarea = /* @__PURE__ */
|
|
2504
|
+
const textarea = /* @__PURE__ */ React18.createElement(
|
|
2478
2505
|
MotionTextarea,
|
|
2479
2506
|
{
|
|
2480
2507
|
required,
|
|
@@ -2486,7 +2513,7 @@ var Textarea = (props) => {
|
|
|
2486
2513
|
...innerProps
|
|
2487
2514
|
}
|
|
2488
2515
|
);
|
|
2489
|
-
return /* @__PURE__ */
|
|
2516
|
+
return /* @__PURE__ */ React18.createElement(
|
|
2490
2517
|
FormControl_default,
|
|
2491
2518
|
{
|
|
2492
2519
|
required,
|
|
@@ -2497,9 +2524,9 @@ var Textarea = (props) => {
|
|
|
2497
2524
|
sx,
|
|
2498
2525
|
className
|
|
2499
2526
|
},
|
|
2500
|
-
label && /* @__PURE__ */
|
|
2527
|
+
label && /* @__PURE__ */ React18.createElement(FormLabel_default, null, label),
|
|
2501
2528
|
textarea,
|
|
2502
|
-
helperText && /* @__PURE__ */
|
|
2529
|
+
helperText && /* @__PURE__ */ React18.createElement(FormHelperText_default, null, helperText)
|
|
2503
2530
|
);
|
|
2504
2531
|
};
|
|
2505
2532
|
Textarea.displayName = "Textarea";
|
|
@@ -2508,13 +2535,13 @@ Textarea.displayName = "Textarea";
|
|
|
2508
2535
|
var Textarea_default = Textarea;
|
|
2509
2536
|
|
|
2510
2537
|
// src/components/Select/Select.tsx
|
|
2511
|
-
import
|
|
2538
|
+
import React19, { useMemo as useMemo7 } from "react";
|
|
2512
2539
|
import {
|
|
2513
2540
|
Select as JoySelect,
|
|
2514
2541
|
Option as JoyOption
|
|
2515
2542
|
} from "@mui/joy";
|
|
2516
|
-
import { motion as
|
|
2517
|
-
var MotionOption =
|
|
2543
|
+
import { motion as motion19 } from "framer-motion";
|
|
2544
|
+
var MotionOption = motion19(JoyOption);
|
|
2518
2545
|
var Option = MotionOption;
|
|
2519
2546
|
Option.displayName = "Option";
|
|
2520
2547
|
function Select(props) {
|
|
@@ -2557,7 +2584,7 @@ function Select(props) {
|
|
|
2557
2584
|
};
|
|
2558
2585
|
onChange?.(newEvent, newValue);
|
|
2559
2586
|
};
|
|
2560
|
-
const select = /* @__PURE__ */
|
|
2587
|
+
const select = /* @__PURE__ */ React19.createElement(
|
|
2561
2588
|
JoySelect,
|
|
2562
2589
|
{
|
|
2563
2590
|
...innerProps,
|
|
@@ -2567,9 +2594,9 @@ function Select(props) {
|
|
|
2567
2594
|
color: error ? "danger" : color,
|
|
2568
2595
|
onChange: handleChange
|
|
2569
2596
|
},
|
|
2570
|
-
options.map((option) => /* @__PURE__ */
|
|
2597
|
+
options.map((option) => /* @__PURE__ */ React19.createElement(Option, { key: option.value, value: option.value }, option.label))
|
|
2571
2598
|
);
|
|
2572
|
-
return /* @__PURE__ */
|
|
2599
|
+
return /* @__PURE__ */ React19.createElement(
|
|
2573
2600
|
FormControl_default,
|
|
2574
2601
|
{
|
|
2575
2602
|
required,
|
|
@@ -2580,9 +2607,9 @@ function Select(props) {
|
|
|
2580
2607
|
sx,
|
|
2581
2608
|
className
|
|
2582
2609
|
},
|
|
2583
|
-
label && /* @__PURE__ */
|
|
2610
|
+
label && /* @__PURE__ */ React19.createElement(FormLabel_default, null, label),
|
|
2584
2611
|
select,
|
|
2585
|
-
helperText && /* @__PURE__ */
|
|
2612
|
+
helperText && /* @__PURE__ */ React19.createElement(FormHelperText_default, null, helperText)
|
|
2586
2613
|
);
|
|
2587
2614
|
}
|
|
2588
2615
|
Select.displayName = "Select";
|
|
@@ -2591,12 +2618,12 @@ Select.displayName = "Select";
|
|
|
2591
2618
|
var Select_default = Select;
|
|
2592
2619
|
|
|
2593
2620
|
// src/components/Tooltip/Tooltip.tsx
|
|
2594
|
-
import
|
|
2621
|
+
import React20 from "react";
|
|
2595
2622
|
import { Tooltip as JoyTooltip } from "@mui/joy";
|
|
2596
|
-
import { motion as
|
|
2597
|
-
var MotionTooltip =
|
|
2623
|
+
import { motion as motion20 } from "framer-motion";
|
|
2624
|
+
var MotionTooltip = motion20(JoyTooltip);
|
|
2598
2625
|
var Tooltip = (props) => {
|
|
2599
|
-
return /* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ React20.createElement(MotionTooltip, { ...props });
|
|
2600
2627
|
};
|
|
2601
2628
|
Tooltip.displayName = "Tooltip";
|
|
2602
2629
|
|
|
@@ -2604,14 +2631,14 @@ Tooltip.displayName = "Tooltip";
|
|
|
2604
2631
|
var Tooltip_default = Tooltip;
|
|
2605
2632
|
|
|
2606
2633
|
// src/components/DataTable/DataTable.tsx
|
|
2607
|
-
import { motion as
|
|
2634
|
+
import { motion as motion21 } from "framer-motion";
|
|
2608
2635
|
|
|
2609
2636
|
// src/components/Pagination/Pagination.tsx
|
|
2610
|
-
import
|
|
2637
|
+
import React21, { useCallback as useCallback8, useEffect as useEffect4 } from "react";
|
|
2611
2638
|
import PreviousIcon from "@mui/icons-material/ChevronLeft";
|
|
2612
2639
|
import NextIcon from "@mui/icons-material/ChevronRight";
|
|
2613
|
-
import { styled as
|
|
2614
|
-
var PaginationButton =
|
|
2640
|
+
import { styled as styled10 } from "@mui/joy";
|
|
2641
|
+
var PaginationButton = styled10(Button_default, {
|
|
2615
2642
|
name: "Pagination",
|
|
2616
2643
|
slot: "button"
|
|
2617
2644
|
})(({ theme, active, size }) => ({
|
|
@@ -2629,7 +2656,7 @@ var PaginationButton = styled9(Button_default, {
|
|
|
2629
2656
|
backgroundColor: active ? theme.vars.palette.primary.softActiveBg : theme.vars.palette.neutral.softHoverBg
|
|
2630
2657
|
}
|
|
2631
2658
|
}));
|
|
2632
|
-
var PaginationIconButton =
|
|
2659
|
+
var PaginationIconButton = styled10(IconButton_default, {
|
|
2633
2660
|
name: "Pagination",
|
|
2634
2661
|
slot: "button"
|
|
2635
2662
|
})(({ theme, size }) => ({
|
|
@@ -2647,11 +2674,11 @@ var PaginationIconButton = styled9(IconButton_default, {
|
|
|
2647
2674
|
backgroundColor: theme.vars.palette.neutral.softHoverBg
|
|
2648
2675
|
}
|
|
2649
2676
|
}));
|
|
2650
|
-
var PaginationRoot =
|
|
2677
|
+
var PaginationRoot = styled10(Stack_default, {
|
|
2651
2678
|
name: "Pagination",
|
|
2652
2679
|
slot: "root"
|
|
2653
2680
|
})({});
|
|
2654
|
-
var PaginationContainer =
|
|
2681
|
+
var PaginationContainer = styled10(Stack_default, {
|
|
2655
2682
|
name: "Pagination",
|
|
2656
2683
|
slot: "container"
|
|
2657
2684
|
})(({ theme, size }) => ({
|
|
@@ -2703,7 +2730,7 @@ function Pagination(props) {
|
|
|
2703
2730
|
setPaginationModel({ ...paginationModel, page: lastPage });
|
|
2704
2731
|
}
|
|
2705
2732
|
}, [rowCount, paginationModel, lastPage, setPaginationModel]);
|
|
2706
|
-
return /* @__PURE__ */
|
|
2733
|
+
return /* @__PURE__ */ React21.createElement(PaginationRoot, { ...innerProps }, /* @__PURE__ */ React21.createElement(PaginationContainer, { direction: "row", size, alignItems: "center" }, /* @__PURE__ */ React21.createElement(
|
|
2707
2734
|
PaginationIconButton,
|
|
2708
2735
|
{
|
|
2709
2736
|
size,
|
|
@@ -2713,8 +2740,8 @@ function Pagination(props) {
|
|
|
2713
2740
|
disabled: paginationModel.page === firstPage,
|
|
2714
2741
|
"aria-label": "Previous page"
|
|
2715
2742
|
},
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
), paginationModel.page !== firstPage && /* @__PURE__ */
|
|
2743
|
+
/* @__PURE__ */ React21.createElement(PreviousIcon, null)
|
|
2744
|
+
), paginationModel.page !== firstPage && /* @__PURE__ */ React21.createElement(
|
|
2718
2745
|
PaginationButton,
|
|
2719
2746
|
{
|
|
2720
2747
|
size,
|
|
@@ -2723,7 +2750,7 @@ function Pagination(props) {
|
|
|
2723
2750
|
onClick: () => handlePageChange(firstPage)
|
|
2724
2751
|
},
|
|
2725
2752
|
firstPage
|
|
2726
|
-
), isMoreBeforePages && /* @__PURE__ */
|
|
2753
|
+
), isMoreBeforePages && /* @__PURE__ */ React21.createElement(
|
|
2727
2754
|
PaginationButton,
|
|
2728
2755
|
{
|
|
2729
2756
|
size,
|
|
@@ -2733,7 +2760,7 @@ function Pagination(props) {
|
|
|
2733
2760
|
"aria-label": "More previous pages"
|
|
2734
2761
|
},
|
|
2735
2762
|
"..."
|
|
2736
|
-
), beforePages.map((p) => /* @__PURE__ */
|
|
2763
|
+
), beforePages.map((p) => /* @__PURE__ */ React21.createElement(
|
|
2737
2764
|
PaginationButton,
|
|
2738
2765
|
{
|
|
2739
2766
|
key: p,
|
|
@@ -2743,7 +2770,7 @@ function Pagination(props) {
|
|
|
2743
2770
|
onClick: () => handlePageChange(p)
|
|
2744
2771
|
},
|
|
2745
2772
|
p
|
|
2746
|
-
)), /* @__PURE__ */
|
|
2773
|
+
)), /* @__PURE__ */ React21.createElement(PaginationButton, { active: "active", size, "aria-current": "page" }, paginationModel.page), afterPages.map((p) => /* @__PURE__ */ React21.createElement(
|
|
2747
2774
|
PaginationButton,
|
|
2748
2775
|
{
|
|
2749
2776
|
key: p,
|
|
@@ -2753,7 +2780,7 @@ function Pagination(props) {
|
|
|
2753
2780
|
onClick: () => handlePageChange(p)
|
|
2754
2781
|
},
|
|
2755
2782
|
p
|
|
2756
|
-
)), isMoreAfterPages && /* @__PURE__ */
|
|
2783
|
+
)), isMoreAfterPages && /* @__PURE__ */ React21.createElement(
|
|
2757
2784
|
PaginationButton,
|
|
2758
2785
|
{
|
|
2759
2786
|
size,
|
|
@@ -2763,7 +2790,7 @@ function Pagination(props) {
|
|
|
2763
2790
|
onClick: () => handlePageChange(paginationModel.page + 3)
|
|
2764
2791
|
},
|
|
2765
2792
|
"..."
|
|
2766
|
-
), paginationModel.page !== lastPage && /* @__PURE__ */
|
|
2793
|
+
), paginationModel.page !== lastPage && /* @__PURE__ */ React21.createElement(
|
|
2767
2794
|
PaginationButton,
|
|
2768
2795
|
{
|
|
2769
2796
|
size,
|
|
@@ -2772,7 +2799,7 @@ function Pagination(props) {
|
|
|
2772
2799
|
onClick: () => handlePageChange(lastPage)
|
|
2773
2800
|
},
|
|
2774
2801
|
lastPage
|
|
2775
|
-
), /* @__PURE__ */
|
|
2802
|
+
), /* @__PURE__ */ React21.createElement(
|
|
2776
2803
|
PaginationIconButton,
|
|
2777
2804
|
{
|
|
2778
2805
|
size,
|
|
@@ -2782,7 +2809,7 @@ function Pagination(props) {
|
|
|
2782
2809
|
disabled: paginationModel.page === lastPage,
|
|
2783
2810
|
"aria-label": "Next page"
|
|
2784
2811
|
},
|
|
2785
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ React21.createElement(NextIcon, null)
|
|
2786
2813
|
)));
|
|
2787
2814
|
}
|
|
2788
2815
|
Pagination.displayName = "Pagination";
|
|
@@ -2791,13 +2818,13 @@ Pagination.displayName = "Pagination";
|
|
|
2791
2818
|
var Pagination_default = Pagination;
|
|
2792
2819
|
|
|
2793
2820
|
// src/components/InfoSign/InfoSign.tsx
|
|
2794
|
-
import
|
|
2821
|
+
import React22 from "react";
|
|
2795
2822
|
import {
|
|
2796
|
-
styled as
|
|
2823
|
+
styled as styled11,
|
|
2797
2824
|
tooltipClasses
|
|
2798
2825
|
} from "@mui/joy";
|
|
2799
2826
|
import MuiInfoIcon from "@mui/icons-material/Info";
|
|
2800
|
-
var InfoIcon =
|
|
2827
|
+
var InfoIcon = styled11(MuiInfoIcon, {
|
|
2801
2828
|
name: "InfoSign",
|
|
2802
2829
|
slot: "InfoSign"
|
|
2803
2830
|
})(({ theme }) => ({
|
|
@@ -2807,7 +2834,7 @@ var InfoIcon = styled10(MuiInfoIcon, {
|
|
|
2807
2834
|
}));
|
|
2808
2835
|
function InfoSign(props) {
|
|
2809
2836
|
const { message, placement } = props;
|
|
2810
|
-
return /* @__PURE__ */
|
|
2837
|
+
return /* @__PURE__ */ React22.createElement(
|
|
2811
2838
|
Tooltip_default,
|
|
2812
2839
|
{
|
|
2813
2840
|
arrow: true,
|
|
@@ -2817,9 +2844,9 @@ function InfoSign(props) {
|
|
|
2817
2844
|
maxWidth: "320px"
|
|
2818
2845
|
}
|
|
2819
2846
|
},
|
|
2820
|
-
title: message?.split("\n").map((line, i) => /* @__PURE__ */
|
|
2847
|
+
title: message?.split("\n").map((line, i) => /* @__PURE__ */ React22.createElement("div", { key: i }, line))
|
|
2821
2848
|
},
|
|
2822
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ React22.createElement(InfoIcon, null)
|
|
2823
2850
|
);
|
|
2824
2851
|
}
|
|
2825
2852
|
|
|
@@ -2830,7 +2857,16 @@ var InfoSign_default = InfoSign;
|
|
|
2830
2857
|
function getTextAlign(props) {
|
|
2831
2858
|
return !props.editMode && ["number", "date", "currency"].includes(props.type || "") ? "end" : "start";
|
|
2832
2859
|
}
|
|
2833
|
-
var
|
|
2860
|
+
var DefaultLoadingOverlay = () => /* @__PURE__ */ React23.createElement(LinearProgress, { value: 8, variant: "plain" });
|
|
2861
|
+
var TextEllipsis = styled12("div", {
|
|
2862
|
+
name: "DataTable",
|
|
2863
|
+
slot: "textEllipsis"
|
|
2864
|
+
})({
|
|
2865
|
+
overflow: "hidden",
|
|
2866
|
+
textOverflow: "ellipsis",
|
|
2867
|
+
whiteSpace: "nowrap"
|
|
2868
|
+
});
|
|
2869
|
+
var OverlayWrapper = styled12("tr", {
|
|
2834
2870
|
name: "DataTable",
|
|
2835
2871
|
slot: "overlayWrapper"
|
|
2836
2872
|
})({
|
|
@@ -2846,7 +2882,7 @@ var OverlayWrapper = styled11("tr", {
|
|
|
2846
2882
|
}
|
|
2847
2883
|
});
|
|
2848
2884
|
var numberFormatter = (value) => "Intl" in window ? new Intl.NumberFormat().format(value) : value;
|
|
2849
|
-
var Resizer = (ref) => /* @__PURE__ */
|
|
2885
|
+
var Resizer = (ref) => /* @__PURE__ */ React23.createElement(
|
|
2850
2886
|
Box_default,
|
|
2851
2887
|
{
|
|
2852
2888
|
sx: {
|
|
@@ -2875,7 +2911,7 @@ var Resizer = (ref) => /* @__PURE__ */ React22.createElement(
|
|
|
2875
2911
|
}
|
|
2876
2912
|
}
|
|
2877
2913
|
);
|
|
2878
|
-
var VirtualizedTableBody =
|
|
2914
|
+
var VirtualizedTableBody = styled12("tbody", {
|
|
2879
2915
|
name: "DataTable",
|
|
2880
2916
|
slot: "tableBody"
|
|
2881
2917
|
})({
|
|
@@ -2886,7 +2922,7 @@ var VirtualizedTableBody = styled11("tbody", {
|
|
|
2886
2922
|
height: "0.01em"
|
|
2887
2923
|
}
|
|
2888
2924
|
});
|
|
2889
|
-
var VirtualizedTableRow =
|
|
2925
|
+
var VirtualizedTableRow = styled12("tr", {
|
|
2890
2926
|
name: "DataTable",
|
|
2891
2927
|
slot: "tableRow",
|
|
2892
2928
|
shouldForwardProp: (prop) => prop !== "striped"
|
|
@@ -2905,18 +2941,18 @@ var VirtualizedTableRow = styled11("tr", {
|
|
|
2905
2941
|
}
|
|
2906
2942
|
}
|
|
2907
2943
|
}));
|
|
2908
|
-
var Asterisk =
|
|
2944
|
+
var Asterisk = styled12("span", {
|
|
2909
2945
|
name: "DataTable",
|
|
2910
2946
|
slot: "headCellAsterisk"
|
|
2911
2947
|
})(({ theme }) => ({
|
|
2912
2948
|
color: "var(--ceed-palette-danger-500)",
|
|
2913
2949
|
marginLeft: theme.spacing(0.5)
|
|
2914
2950
|
}));
|
|
2915
|
-
var StyledTh =
|
|
2951
|
+
var StyledTh = styled12(motion21.th)(({ theme }) => ({
|
|
2916
2952
|
boxShadow: "1px 0 var(--TableCell-borderColor)"
|
|
2917
2953
|
// border 대신 box-shadow를 사용하여 stickyHeader와 함께 사용할 때 border가 겹치는 문제를 해결
|
|
2918
2954
|
}));
|
|
2919
|
-
var StyledTd =
|
|
2955
|
+
var StyledTd = styled12("td")(({ theme }) => ({
|
|
2920
2956
|
transition: `box-shadow 0.3s`,
|
|
2921
2957
|
boxShadow: "1px 0 var(--TableCell-borderColor)",
|
|
2922
2958
|
".ScrollableRight &": {
|
|
@@ -2930,7 +2966,7 @@ var StyledTd = styled11("td")(({ theme }) => ({
|
|
|
2930
2966
|
}
|
|
2931
2967
|
}
|
|
2932
2968
|
}));
|
|
2933
|
-
var MotionSortIcon =
|
|
2969
|
+
var MotionSortIcon = motion21(SortIcon);
|
|
2934
2970
|
var HeadCell = (props) => {
|
|
2935
2971
|
const {
|
|
2936
2972
|
width,
|
|
@@ -2992,7 +3028,7 @@ var HeadCell = (props) => {
|
|
|
2992
3028
|
const textAlign = getTextAlign(props);
|
|
2993
3029
|
const initialSort = sortOrder[0];
|
|
2994
3030
|
const sortIcon = useMemo8(
|
|
2995
|
-
() => sortable && /* @__PURE__ */
|
|
3031
|
+
() => sortable && /* @__PURE__ */ React23.createElement(
|
|
2996
3032
|
MotionSortIcon,
|
|
2997
3033
|
{
|
|
2998
3034
|
style: {
|
|
@@ -3023,10 +3059,10 @@ var HeadCell = (props) => {
|
|
|
3023
3059
|
[headId, initialSort, sort, sortable]
|
|
3024
3060
|
);
|
|
3025
3061
|
const infoSign = useMemo8(
|
|
3026
|
-
() => description ? /* @__PURE__ */
|
|
3062
|
+
() => description ? /* @__PURE__ */ React23.createElement(InfoSign_default, { message: description, placement: "bottom" }) : null,
|
|
3027
3063
|
[description]
|
|
3028
3064
|
);
|
|
3029
|
-
return /* @__PURE__ */
|
|
3065
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3030
3066
|
StyledTh,
|
|
3031
3067
|
{
|
|
3032
3068
|
id: headId,
|
|
@@ -3042,7 +3078,7 @@ var HeadCell = (props) => {
|
|
|
3042
3078
|
whileHover: "hover",
|
|
3043
3079
|
initial: "initial"
|
|
3044
3080
|
},
|
|
3045
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ React23.createElement(
|
|
3046
3082
|
Stack_default,
|
|
3047
3083
|
{
|
|
3048
3084
|
gap: 1,
|
|
@@ -3052,7 +3088,7 @@ var HeadCell = (props) => {
|
|
|
3052
3088
|
},
|
|
3053
3089
|
textAlign === "end" && sortIcon,
|
|
3054
3090
|
textAlign === "end" && infoSign,
|
|
3055
|
-
/* @__PURE__ */
|
|
3091
|
+
/* @__PURE__ */ React23.createElement(TextEllipsis, null, headerName ?? field, editMode && required && /* @__PURE__ */ React23.createElement(Asterisk, null, "*")),
|
|
3056
3092
|
textAlign === "start" && infoSign,
|
|
3057
3093
|
textAlign === "start" && sortIcon
|
|
3058
3094
|
),
|
|
@@ -3174,21 +3210,21 @@ var BodyCell = (props) => {
|
|
|
3174
3210
|
return createElement(memo(renderEditCell), params);
|
|
3175
3211
|
}
|
|
3176
3212
|
return {
|
|
3177
|
-
date: /* @__PURE__ */
|
|
3213
|
+
date: /* @__PURE__ */ React23.createElement(
|
|
3178
3214
|
DatePicker_default,
|
|
3179
3215
|
{
|
|
3180
3216
|
value,
|
|
3181
3217
|
...editModeComponentProps
|
|
3182
3218
|
}
|
|
3183
3219
|
),
|
|
3184
|
-
currency: /* @__PURE__ */
|
|
3220
|
+
currency: /* @__PURE__ */ React23.createElement(
|
|
3185
3221
|
CurrencyInput_default,
|
|
3186
3222
|
{
|
|
3187
3223
|
value,
|
|
3188
3224
|
...editModeComponentProps
|
|
3189
3225
|
}
|
|
3190
3226
|
),
|
|
3191
|
-
number: /* @__PURE__ */
|
|
3227
|
+
number: /* @__PURE__ */ React23.createElement(
|
|
3192
3228
|
Input_default,
|
|
3193
3229
|
{
|
|
3194
3230
|
value,
|
|
@@ -3196,7 +3232,7 @@ var BodyCell = (props) => {
|
|
|
3196
3232
|
...editModeComponentProps
|
|
3197
3233
|
}
|
|
3198
3234
|
),
|
|
3199
|
-
text: /* @__PURE__ */
|
|
3235
|
+
text: /* @__PURE__ */ React23.createElement(
|
|
3200
3236
|
Input_default,
|
|
3201
3237
|
{
|
|
3202
3238
|
value,
|
|
@@ -3204,14 +3240,14 @@ var BodyCell = (props) => {
|
|
|
3204
3240
|
...editModeComponentProps
|
|
3205
3241
|
}
|
|
3206
3242
|
),
|
|
3207
|
-
longText: /* @__PURE__ */
|
|
3243
|
+
longText: /* @__PURE__ */ React23.createElement(
|
|
3208
3244
|
Textarea_default,
|
|
3209
3245
|
{
|
|
3210
3246
|
value,
|
|
3211
3247
|
...editModeComponentProps
|
|
3212
3248
|
}
|
|
3213
3249
|
),
|
|
3214
|
-
autocomplete: /* @__PURE__ */
|
|
3250
|
+
autocomplete: /* @__PURE__ */ React23.createElement(
|
|
3215
3251
|
Autocomplete_default,
|
|
3216
3252
|
{
|
|
3217
3253
|
value,
|
|
@@ -3219,7 +3255,7 @@ var BodyCell = (props) => {
|
|
|
3219
3255
|
...editModeComponentProps
|
|
3220
3256
|
}
|
|
3221
3257
|
),
|
|
3222
|
-
select: /* @__PURE__ */
|
|
3258
|
+
select: /* @__PURE__ */ React23.createElement(
|
|
3223
3259
|
Select_default,
|
|
3224
3260
|
{
|
|
3225
3261
|
value,
|
|
@@ -3235,7 +3271,7 @@ var BodyCell = (props) => {
|
|
|
3235
3271
|
}
|
|
3236
3272
|
const innerText = value;
|
|
3237
3273
|
const typedComponent = {
|
|
3238
|
-
link:
|
|
3274
|
+
link: React23.createElement(
|
|
3239
3275
|
props.component || Link,
|
|
3240
3276
|
{
|
|
3241
3277
|
children: innerText,
|
|
@@ -3256,7 +3292,7 @@ var BodyCell = (props) => {
|
|
|
3256
3292
|
useEffect5(() => {
|
|
3257
3293
|
setValue(row[field]);
|
|
3258
3294
|
}, [row, field]);
|
|
3259
|
-
return /* @__PURE__ */
|
|
3295
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3260
3296
|
StyledTd,
|
|
3261
3297
|
{
|
|
3262
3298
|
ref: cellRef,
|
|
@@ -3274,7 +3310,7 @@ var BodyCell = (props) => {
|
|
|
3274
3310
|
className: isLastStartPinnedColumn && "is-last-left" || isLastEndPinnedColumn && "is-last-right" || ""
|
|
3275
3311
|
},
|
|
3276
3312
|
useMemo8(
|
|
3277
|
-
() => showTooltip ? /* @__PURE__ */
|
|
3313
|
+
() => showTooltip ? /* @__PURE__ */ React23.createElement(
|
|
3278
3314
|
Tooltip_default,
|
|
3279
3315
|
{
|
|
3280
3316
|
title: value,
|
|
@@ -3283,7 +3319,7 @@ var BodyCell = (props) => {
|
|
|
3283
3319
|
enterDelay: 1500,
|
|
3284
3320
|
enterNextDelay: 1500
|
|
3285
3321
|
},
|
|
3286
|
-
/* @__PURE__ */
|
|
3322
|
+
/* @__PURE__ */ React23.createElement(
|
|
3287
3323
|
"div",
|
|
3288
3324
|
{
|
|
3289
3325
|
style: {
|
|
@@ -3301,7 +3337,7 @@ var BodyCell = (props) => {
|
|
|
3301
3337
|
var BodyRow = memo(
|
|
3302
3338
|
(props) => {
|
|
3303
3339
|
const { tableId, columns, rowId, editMode, noWrap, row } = props;
|
|
3304
|
-
return /* @__PURE__ */
|
|
3340
|
+
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, columns.map((column, i) => /* @__PURE__ */ React23.createElement(
|
|
3305
3341
|
BodyCell,
|
|
3306
3342
|
{
|
|
3307
3343
|
...column,
|
|
@@ -3349,7 +3385,7 @@ function useDataTableRenderer({
|
|
|
3349
3385
|
...acc,
|
|
3350
3386
|
[curr.field]: {
|
|
3351
3387
|
...curr,
|
|
3352
|
-
headerRef:
|
|
3388
|
+
headerRef: React23.createRef()
|
|
3353
3389
|
}
|
|
3354
3390
|
}),
|
|
3355
3391
|
{}
|
|
@@ -3587,12 +3623,14 @@ function Component(props, apiRef) {
|
|
|
3587
3623
|
// onSortModelChange is used in useDataTableRenderer
|
|
3588
3624
|
initialState: _________,
|
|
3589
3625
|
// initialState is used in useDataTableRenderer
|
|
3626
|
+
getId: ____________,
|
|
3627
|
+
// getId is used in useDataTableRenderer
|
|
3590
3628
|
loading,
|
|
3591
3629
|
slots: {
|
|
3592
3630
|
checkbox: RenderCheckbox = Checkbox_default,
|
|
3593
3631
|
toolbar: Toolbar,
|
|
3594
3632
|
footer: Footer,
|
|
3595
|
-
loadingOverlay: LoadingOverlay =
|
|
3633
|
+
loadingOverlay: LoadingOverlay = DefaultLoadingOverlay
|
|
3596
3634
|
} = {},
|
|
3597
3635
|
slotProps: {
|
|
3598
3636
|
checkbox: checkboxProps = {},
|
|
@@ -3652,7 +3690,7 @@ function Component(props, apiRef) {
|
|
|
3652
3690
|
});
|
|
3653
3691
|
}
|
|
3654
3692
|
}));
|
|
3655
|
-
return /* @__PURE__ */
|
|
3693
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3656
3694
|
Box_default,
|
|
3657
3695
|
{
|
|
3658
3696
|
sx: {
|
|
@@ -3662,7 +3700,7 @@ function Component(props, apiRef) {
|
|
|
3662
3700
|
flexDirection: "column"
|
|
3663
3701
|
}
|
|
3664
3702
|
},
|
|
3665
|
-
(!!checkboxSelection || !!Toolbar) && /* @__PURE__ */
|
|
3703
|
+
(!!checkboxSelection || !!Toolbar) && /* @__PURE__ */ React23.createElement(
|
|
3666
3704
|
Stack_default,
|
|
3667
3705
|
{
|
|
3668
3706
|
direction: "row",
|
|
@@ -3673,7 +3711,7 @@ function Component(props, apiRef) {
|
|
|
3673
3711
|
justifyContent: "space-between",
|
|
3674
3712
|
alignItems: "center"
|
|
3675
3713
|
},
|
|
3676
|
-
!!checkboxSelection && /* @__PURE__ */
|
|
3714
|
+
!!checkboxSelection && /* @__PURE__ */ React23.createElement(Stack_default, { direction: "row", spacing: 1 }, !isAllSelected && /* @__PURE__ */ React23.createElement(Typography_default, { level: "body-xs" }, numberFormatter(selectionModel?.length || 0), " items selected"), isAllSelected && !isTotalSelected && /* @__PURE__ */ React23.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React23.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(selectionModel?.length || 0), " items on this page are selected."), /* @__PURE__ */ React23.createElement(Button_default, { size: "sm", variant: "plain", onClick: onTotalSelect }, "Select all ", numberFormatter(rowCount ?? rows.length), " items")), isTotalSelected && /* @__PURE__ */ React23.createElement(Stack_default, { direction: "row", spacing: 1, alignItems: "center" }, /* @__PURE__ */ React23.createElement(Typography_default, { level: "body-xs" }, "All ", numberFormatter(rowCount ?? rows.length), " items are selected."), /* @__PURE__ */ React23.createElement(
|
|
3677
3715
|
Button_default,
|
|
3678
3716
|
{
|
|
3679
3717
|
size: "sm",
|
|
@@ -3683,9 +3721,9 @@ function Component(props, apiRef) {
|
|
|
3683
3721
|
},
|
|
3684
3722
|
"Cancel"
|
|
3685
3723
|
))),
|
|
3686
|
-
Toolbar && /* @__PURE__ */
|
|
3724
|
+
Toolbar && /* @__PURE__ */ React23.createElement(Toolbar, { ...toolbarProps || {} })
|
|
3687
3725
|
),
|
|
3688
|
-
/* @__PURE__ */
|
|
3726
|
+
/* @__PURE__ */ React23.createElement(
|
|
3689
3727
|
Sheet_default,
|
|
3690
3728
|
{
|
|
3691
3729
|
variant: "outlined",
|
|
@@ -3704,7 +3742,7 @@ function Component(props, apiRef) {
|
|
|
3704
3742
|
ref: parentRef,
|
|
3705
3743
|
...backgroundProps
|
|
3706
3744
|
},
|
|
3707
|
-
/* @__PURE__ */
|
|
3745
|
+
/* @__PURE__ */ React23.createElement(Table, { ...innerProps }, /* @__PURE__ */ React23.createElement("thead", null, /* @__PURE__ */ React23.createElement("tr", null, checkboxSelection && /* @__PURE__ */ React23.createElement(
|
|
3708
3746
|
"th",
|
|
3709
3747
|
{
|
|
3710
3748
|
style: {
|
|
@@ -3712,7 +3750,7 @@ function Component(props, apiRef) {
|
|
|
3712
3750
|
textAlign: "center"
|
|
3713
3751
|
}
|
|
3714
3752
|
},
|
|
3715
|
-
/* @__PURE__ */
|
|
3753
|
+
/* @__PURE__ */ React23.createElement(
|
|
3716
3754
|
RenderCheckbox,
|
|
3717
3755
|
{
|
|
3718
3756
|
onChange: onAllCheckboxChange,
|
|
@@ -3721,7 +3759,7 @@ function Component(props, apiRef) {
|
|
|
3721
3759
|
...checkboxProps
|
|
3722
3760
|
}
|
|
3723
3761
|
)
|
|
3724
|
-
), columns.map((c, i) => /* @__PURE__ */
|
|
3762
|
+
), columns.map((c, i) => /* @__PURE__ */ React23.createElement(
|
|
3725
3763
|
HeadCell2,
|
|
3726
3764
|
{
|
|
3727
3765
|
tableId,
|
|
@@ -3731,7 +3769,7 @@ function Component(props, apiRef) {
|
|
|
3731
3769
|
onSortChange: handleSortChange,
|
|
3732
3770
|
...c
|
|
3733
3771
|
}
|
|
3734
|
-
)))), /* @__PURE__ */
|
|
3772
|
+
)))), /* @__PURE__ */ React23.createElement(
|
|
3735
3773
|
VirtualizedTableBody,
|
|
3736
3774
|
{
|
|
3737
3775
|
ref: tableBodyRef,
|
|
@@ -3739,7 +3777,7 @@ function Component(props, apiRef) {
|
|
|
3739
3777
|
height: `${totalSize}px`
|
|
3740
3778
|
}
|
|
3741
3779
|
},
|
|
3742
|
-
!!loading && /* @__PURE__ */
|
|
3780
|
+
!!loading && /* @__PURE__ */ React23.createElement(OverlayWrapper, null, /* @__PURE__ */ React23.createElement(
|
|
3743
3781
|
"td",
|
|
3744
3782
|
{
|
|
3745
3783
|
style: {
|
|
@@ -3748,7 +3786,7 @@ function Component(props, apiRef) {
|
|
|
3748
3786
|
overflow: "visible"
|
|
3749
3787
|
}
|
|
3750
3788
|
},
|
|
3751
|
-
/* @__PURE__ */
|
|
3789
|
+
/* @__PURE__ */ React23.createElement(
|
|
3752
3790
|
Box_default,
|
|
3753
3791
|
{
|
|
3754
3792
|
sx: {
|
|
@@ -3758,7 +3796,7 @@ function Component(props, apiRef) {
|
|
|
3758
3796
|
right: 0
|
|
3759
3797
|
}
|
|
3760
3798
|
},
|
|
3761
|
-
/* @__PURE__ */
|
|
3799
|
+
/* @__PURE__ */ React23.createElement(LoadingOverlay, null)
|
|
3762
3800
|
)
|
|
3763
3801
|
)),
|
|
3764
3802
|
virtualizedItems.map((virtualizedRow, index) => {
|
|
@@ -3766,7 +3804,7 @@ function Component(props, apiRef) {
|
|
|
3766
3804
|
const row = dataInPage[rowIndex];
|
|
3767
3805
|
const rowId = getId(row, rowIndex);
|
|
3768
3806
|
const striped = stripe && (stripe === "even" && (rowIndex + 1) % 2 === 0 || stripe === "odd" && (rowIndex + 1) % 2 === 1);
|
|
3769
|
-
return /* @__PURE__ */
|
|
3807
|
+
return /* @__PURE__ */ React23.createElement(
|
|
3770
3808
|
VirtualizedTableRow,
|
|
3771
3809
|
{
|
|
3772
3810
|
key: virtualizedRow.key,
|
|
@@ -3786,7 +3824,7 @@ function Component(props, apiRef) {
|
|
|
3786
3824
|
transform: `translateY(${virtualizedRow.start - index * virtualizedRow.size}px)`
|
|
3787
3825
|
}
|
|
3788
3826
|
},
|
|
3789
|
-
checkboxSelection && /* @__PURE__ */
|
|
3827
|
+
checkboxSelection && /* @__PURE__ */ React23.createElement(
|
|
3790
3828
|
"th",
|
|
3791
3829
|
{
|
|
3792
3830
|
scope: "row",
|
|
@@ -3794,7 +3832,7 @@ function Component(props, apiRef) {
|
|
|
3794
3832
|
textAlign: "center"
|
|
3795
3833
|
}
|
|
3796
3834
|
},
|
|
3797
|
-
/* @__PURE__ */
|
|
3835
|
+
/* @__PURE__ */ React23.createElement(
|
|
3798
3836
|
RenderCheckbox,
|
|
3799
3837
|
{
|
|
3800
3838
|
onClick: (e) => e.stopPropagation(),
|
|
@@ -3804,7 +3842,7 @@ function Component(props, apiRef) {
|
|
|
3804
3842
|
}
|
|
3805
3843
|
)
|
|
3806
3844
|
),
|
|
3807
|
-
/* @__PURE__ */
|
|
3845
|
+
/* @__PURE__ */ React23.createElement(
|
|
3808
3846
|
BodyRow2,
|
|
3809
3847
|
{
|
|
3810
3848
|
tableId,
|
|
@@ -3817,9 +3855,9 @@ function Component(props, apiRef) {
|
|
|
3817
3855
|
)
|
|
3818
3856
|
);
|
|
3819
3857
|
})
|
|
3820
|
-
), Footer && /* @__PURE__ */
|
|
3858
|
+
), Footer && /* @__PURE__ */ React23.createElement(Footer, null))
|
|
3821
3859
|
),
|
|
3822
|
-
pagination && /* @__PURE__ */
|
|
3860
|
+
pagination && /* @__PURE__ */ React23.createElement(
|
|
3823
3861
|
Pagination_default,
|
|
3824
3862
|
{
|
|
3825
3863
|
py: 2,
|
|
@@ -3836,7 +3874,7 @@ var DataTable = forwardRef7(Component);
|
|
|
3836
3874
|
DataTable.displayName = "DataTable";
|
|
3837
3875
|
|
|
3838
3876
|
// src/components/DateRangePicker/DateRangePicker.tsx
|
|
3839
|
-
import
|
|
3877
|
+
import React24, {
|
|
3840
3878
|
forwardRef as forwardRef8,
|
|
3841
3879
|
useCallback as useCallback10,
|
|
3842
3880
|
useEffect as useEffect6,
|
|
@@ -3847,9 +3885,9 @@ import React23, {
|
|
|
3847
3885
|
} from "react";
|
|
3848
3886
|
import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
|
|
3849
3887
|
import CalendarTodayIcon2 from "@mui/icons-material/CalendarToday";
|
|
3850
|
-
import { styled as
|
|
3888
|
+
import { styled as styled13, useThemeProps as useThemeProps5 } from "@mui/joy";
|
|
3851
3889
|
import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper3 } from "@mui/base";
|
|
3852
|
-
var CalendarButton2 =
|
|
3890
|
+
var CalendarButton2 = styled13(IconButton_default, {
|
|
3853
3891
|
name: "DateRangePicker",
|
|
3854
3892
|
slot: "calendarButton"
|
|
3855
3893
|
})(({ theme }) => ({
|
|
@@ -3859,13 +3897,13 @@ var CalendarButton2 = styled12(IconButton_default, {
|
|
|
3859
3897
|
outline: `${theme.getCssVar("focus-thickness")} solid ${theme.getCssVar("palette-focusVisible")}`
|
|
3860
3898
|
}
|
|
3861
3899
|
}));
|
|
3862
|
-
var StyledPopper2 =
|
|
3900
|
+
var StyledPopper2 = styled13(Popper3, {
|
|
3863
3901
|
name: "DateRangePicker",
|
|
3864
3902
|
slot: "popper"
|
|
3865
3903
|
})(({ theme }) => ({
|
|
3866
3904
|
zIndex: theme.zIndex.tooltip
|
|
3867
3905
|
}));
|
|
3868
|
-
var CalendarSheet2 =
|
|
3906
|
+
var CalendarSheet2 = styled13(Sheet_default, {
|
|
3869
3907
|
name: "DateRangePicker",
|
|
3870
3908
|
slot: "sheet",
|
|
3871
3909
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -3875,7 +3913,7 @@ var CalendarSheet2 = styled12(Sheet_default, {
|
|
|
3875
3913
|
boxShadow: theme.shadow.md,
|
|
3876
3914
|
borderRadius: theme.radius.md
|
|
3877
3915
|
}));
|
|
3878
|
-
var DateRangePickerRoot =
|
|
3916
|
+
var DateRangePickerRoot = styled13("div", {
|
|
3879
3917
|
name: "DateRangePicker",
|
|
3880
3918
|
slot: "root",
|
|
3881
3919
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -3922,10 +3960,10 @@ var parseDates = (str, format) => {
|
|
|
3922
3960
|
var formatToPattern2 = (format) => {
|
|
3923
3961
|
return `${format} - ${format}`.replace(/YYYY/g, "Y").replace(/MM/g, "M").replace(/DD/g, "D").replace(/[^YMD\s]/g, (match) => `${match}\``);
|
|
3924
3962
|
};
|
|
3925
|
-
var TextMaskAdapter5 =
|
|
3963
|
+
var TextMaskAdapter5 = React24.forwardRef(
|
|
3926
3964
|
function TextMaskAdapter6(props, ref) {
|
|
3927
3965
|
const { onChange, format, ...other } = props;
|
|
3928
|
-
return /* @__PURE__ */
|
|
3966
|
+
return /* @__PURE__ */ React24.createElement(
|
|
3929
3967
|
IMaskInput2,
|
|
3930
3968
|
{
|
|
3931
3969
|
...other,
|
|
@@ -4039,7 +4077,7 @@ var DateRangePicker = forwardRef8(
|
|
|
4039
4077
|
},
|
|
4040
4078
|
[inputReadOnly, buttonRef]
|
|
4041
4079
|
);
|
|
4042
|
-
return /* @__PURE__ */
|
|
4080
|
+
return /* @__PURE__ */ React24.createElement(DateRangePickerRoot, null, /* @__PURE__ */ React24.createElement(FocusTrap2, { open: true }, /* @__PURE__ */ React24.createElement(React24.Fragment, null, /* @__PURE__ */ React24.createElement(
|
|
4043
4081
|
Input_default,
|
|
4044
4082
|
{
|
|
4045
4083
|
...innerProps,
|
|
@@ -4063,7 +4101,7 @@ var DateRangePicker = forwardRef8(
|
|
|
4063
4101
|
error,
|
|
4064
4102
|
className,
|
|
4065
4103
|
sx,
|
|
4066
|
-
endDecorator: /* @__PURE__ */
|
|
4104
|
+
endDecorator: /* @__PURE__ */ React24.createElement(
|
|
4067
4105
|
CalendarButton2,
|
|
4068
4106
|
{
|
|
4069
4107
|
ref: buttonRef,
|
|
@@ -4075,13 +4113,13 @@ var DateRangePicker = forwardRef8(
|
|
|
4075
4113
|
"aria-expanded": open,
|
|
4076
4114
|
disabled
|
|
4077
4115
|
},
|
|
4078
|
-
/* @__PURE__ */
|
|
4116
|
+
/* @__PURE__ */ React24.createElement(CalendarTodayIcon2, null)
|
|
4079
4117
|
),
|
|
4080
4118
|
label,
|
|
4081
4119
|
helperText,
|
|
4082
4120
|
readOnly: readOnly || inputReadOnly
|
|
4083
4121
|
}
|
|
4084
|
-
), open && /* @__PURE__ */
|
|
4122
|
+
), open && /* @__PURE__ */ React24.createElement(ClickAwayListener2, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React24.createElement(
|
|
4085
4123
|
StyledPopper2,
|
|
4086
4124
|
{
|
|
4087
4125
|
id: "date-range-picker-popper",
|
|
@@ -4100,7 +4138,7 @@ var DateRangePicker = forwardRef8(
|
|
|
4100
4138
|
"aria-label": "Calendar Tooltip",
|
|
4101
4139
|
"aria-expanded": open
|
|
4102
4140
|
},
|
|
4103
|
-
/* @__PURE__ */
|
|
4141
|
+
/* @__PURE__ */ React24.createElement(CalendarSheet2, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React24.createElement(
|
|
4104
4142
|
Calendar_default,
|
|
4105
4143
|
{
|
|
4106
4144
|
rangeSelection: true,
|
|
@@ -4111,14 +4149,14 @@ var DateRangePicker = forwardRef8(
|
|
|
4111
4149
|
disableFuture,
|
|
4112
4150
|
disablePast
|
|
4113
4151
|
}
|
|
4114
|
-
), !hideClearButton && /* @__PURE__ */
|
|
4152
|
+
), !hideClearButton && /* @__PURE__ */ React24.createElement(
|
|
4115
4153
|
DialogActions_default,
|
|
4116
4154
|
{
|
|
4117
4155
|
sx: {
|
|
4118
4156
|
p: 1
|
|
4119
4157
|
}
|
|
4120
4158
|
},
|
|
4121
|
-
/* @__PURE__ */
|
|
4159
|
+
/* @__PURE__ */ React24.createElement(
|
|
4122
4160
|
Button_default,
|
|
4123
4161
|
{
|
|
4124
4162
|
size,
|
|
@@ -4138,15 +4176,15 @@ var DateRangePicker = forwardRef8(
|
|
|
4138
4176
|
DateRangePicker.displayName = "DateRangePicker";
|
|
4139
4177
|
|
|
4140
4178
|
// src/components/Drawer/Drawer.tsx
|
|
4141
|
-
import
|
|
4179
|
+
import React25 from "react";
|
|
4142
4180
|
import {
|
|
4143
4181
|
Drawer as JoyDrawer,
|
|
4144
|
-
styled as
|
|
4182
|
+
styled as styled14,
|
|
4145
4183
|
drawerClasses
|
|
4146
4184
|
} from "@mui/joy";
|
|
4147
|
-
import { motion as
|
|
4148
|
-
var MotionDrawer =
|
|
4149
|
-
var StyledDrawer =
|
|
4185
|
+
import { motion as motion22 } from "framer-motion";
|
|
4186
|
+
var MotionDrawer = motion22(JoyDrawer);
|
|
4187
|
+
var StyledDrawer = styled14(MotionDrawer)(({ theme, size = "md" }) => ({
|
|
4150
4188
|
"--Drawer-horizontalSize": {
|
|
4151
4189
|
sm: "360px",
|
|
4152
4190
|
md: "600px",
|
|
@@ -4160,15 +4198,15 @@ var StyledDrawer = styled13(MotionDrawer)(({ theme, size = "md" }) => ({
|
|
|
4160
4198
|
}));
|
|
4161
4199
|
var Drawer = (props) => {
|
|
4162
4200
|
const { children, ...innerProps } = props;
|
|
4163
|
-
return /* @__PURE__ */
|
|
4201
|
+
return /* @__PURE__ */ React25.createElement(StyledDrawer, { ...innerProps }, children);
|
|
4164
4202
|
};
|
|
4165
4203
|
Drawer.displayName = "Drawer";
|
|
4166
4204
|
|
|
4167
4205
|
// src/components/DialogContent/DialogContent.tsx
|
|
4168
|
-
import { DialogContent as JoyDialogContent, styled as
|
|
4169
|
-
import { motion as
|
|
4170
|
-
var MotionDialogContent =
|
|
4171
|
-
var StyledDialogContent =
|
|
4206
|
+
import { DialogContent as JoyDialogContent, styled as styled15 } from "@mui/joy";
|
|
4207
|
+
import { motion as motion23 } from "framer-motion";
|
|
4208
|
+
var MotionDialogContent = motion23(JoyDialogContent);
|
|
4209
|
+
var StyledDialogContent = styled15(MotionDialogContent)(({ theme }) => ({
|
|
4172
4210
|
padding: theme.spacing(0, 6, 5)
|
|
4173
4211
|
}));
|
|
4174
4212
|
var DialogContent = StyledDialogContent;
|
|
@@ -4178,10 +4216,10 @@ DialogContent.displayName = "DialogContent";
|
|
|
4178
4216
|
var DialogContent_default = DialogContent;
|
|
4179
4217
|
|
|
4180
4218
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
4181
|
-
import { DialogTitle as JoyDialogTitle, styled as
|
|
4182
|
-
import { motion as
|
|
4183
|
-
var MotionDialogTitle =
|
|
4184
|
-
var StyledDialogTitle =
|
|
4219
|
+
import { DialogTitle as JoyDialogTitle, styled as styled16 } from "@mui/joy";
|
|
4220
|
+
import { motion as motion24 } from "framer-motion";
|
|
4221
|
+
var MotionDialogTitle = motion24(JoyDialogTitle);
|
|
4222
|
+
var StyledDialogTitle = styled16(MotionDialogTitle)(({ theme }) => ({
|
|
4185
4223
|
padding: theme.spacing(4, 6)
|
|
4186
4224
|
}));
|
|
4187
4225
|
var DialogTitle = StyledDialogTitle;
|
|
@@ -4191,78 +4229,78 @@ DialogTitle.displayName = "DialogTitle";
|
|
|
4191
4229
|
var DialogTitle_default = DialogTitle;
|
|
4192
4230
|
|
|
4193
4231
|
// src/components/DialogFrame/DialogFrame.tsx
|
|
4194
|
-
import
|
|
4232
|
+
import React27 from "react";
|
|
4195
4233
|
|
|
4196
4234
|
// src/components/Modal/Modal.tsx
|
|
4197
|
-
import
|
|
4235
|
+
import React26 from "react";
|
|
4198
4236
|
import {
|
|
4199
4237
|
Modal as JoyModal,
|
|
4200
4238
|
ModalDialog as JoyModalDialog,
|
|
4201
4239
|
ModalClose as JoyModalClose,
|
|
4202
4240
|
ModalOverflow as JoyModalOverflow,
|
|
4203
|
-
styled as
|
|
4241
|
+
styled as styled17
|
|
4204
4242
|
} from "@mui/joy";
|
|
4205
|
-
import { motion as
|
|
4206
|
-
var MotionModal =
|
|
4243
|
+
import { motion as motion25 } from "framer-motion";
|
|
4244
|
+
var MotionModal = motion25(JoyModal);
|
|
4207
4245
|
var Modal = MotionModal;
|
|
4208
4246
|
Modal.displayName = "Modal";
|
|
4209
|
-
var StyledModalDialog =
|
|
4247
|
+
var StyledModalDialog = styled17(JoyModalDialog)({
|
|
4210
4248
|
padding: 0
|
|
4211
4249
|
});
|
|
4212
4250
|
var ModalDialog = StyledModalDialog;
|
|
4213
4251
|
ModalDialog.displayName = "ModalDialog";
|
|
4214
|
-
var MotionModalClose =
|
|
4252
|
+
var MotionModalClose = styled17(motion25(JoyModalClose))(({ theme }) => ({
|
|
4215
4253
|
top: theme.spacing(3),
|
|
4216
4254
|
right: theme.spacing(6)
|
|
4217
4255
|
}));
|
|
4218
4256
|
var ModalClose = MotionModalClose;
|
|
4219
4257
|
ModalClose.displayName = "ModalClose";
|
|
4220
|
-
var MotionModalOverflow =
|
|
4258
|
+
var MotionModalOverflow = motion25(JoyModalOverflow);
|
|
4221
4259
|
var ModalOverflow = MotionModalOverflow;
|
|
4222
4260
|
ModalOverflow.displayName = "ModalOverflow";
|
|
4223
4261
|
function ModalFrame(props) {
|
|
4224
4262
|
const { title, children, titleStartDecorator, ...innerProps } = props;
|
|
4225
|
-
return /* @__PURE__ */
|
|
4263
|
+
return /* @__PURE__ */ React26.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ React26.createElement(ModalClose, null), /* @__PURE__ */ React26.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ React26.createElement(DialogContent_default, null, children));
|
|
4226
4264
|
}
|
|
4227
4265
|
ModalFrame.displayName = "ModalFrame";
|
|
4228
4266
|
|
|
4229
4267
|
// src/components/DialogFrame/DialogFrame.tsx
|
|
4230
|
-
import { styled as
|
|
4231
|
-
var StyledDialogFrame =
|
|
4268
|
+
import { styled as styled18 } from "@mui/joy";
|
|
4269
|
+
var StyledDialogFrame = styled18(ModalDialog, {
|
|
4232
4270
|
name: "Dialog",
|
|
4233
4271
|
slot: "Root"
|
|
4234
4272
|
})({
|
|
4235
4273
|
padding: 0
|
|
4236
4274
|
});
|
|
4237
|
-
var DialogFrame =
|
|
4275
|
+
var DialogFrame = React27.forwardRef((props, ref) => {
|
|
4238
4276
|
const { title, children, actions, fullscreen, ...innerProps } = props;
|
|
4239
|
-
return /* @__PURE__ */
|
|
4277
|
+
return /* @__PURE__ */ React27.createElement(
|
|
4240
4278
|
StyledDialogFrame,
|
|
4241
4279
|
{
|
|
4242
4280
|
layout: fullscreen ? "fullscreen" : "center",
|
|
4243
4281
|
ref,
|
|
4244
4282
|
...innerProps
|
|
4245
4283
|
},
|
|
4246
|
-
/* @__PURE__ */
|
|
4247
|
-
/* @__PURE__ */
|
|
4248
|
-
/* @__PURE__ */
|
|
4284
|
+
/* @__PURE__ */ React27.createElement(DialogTitle_default, null, title),
|
|
4285
|
+
/* @__PURE__ */ React27.createElement(DialogContent_default, null, children),
|
|
4286
|
+
/* @__PURE__ */ React27.createElement(DialogActions_default, null, actions)
|
|
4249
4287
|
);
|
|
4250
4288
|
});
|
|
4251
4289
|
DialogFrame.displayName = "DialogFrame";
|
|
4252
4290
|
|
|
4253
4291
|
// src/components/Divider/Divider.tsx
|
|
4254
|
-
import
|
|
4292
|
+
import React28 from "react";
|
|
4255
4293
|
import { Divider as JoyDivider } from "@mui/joy";
|
|
4256
|
-
import { motion as
|
|
4257
|
-
var MotionDivider =
|
|
4294
|
+
import { motion as motion26 } from "framer-motion";
|
|
4295
|
+
var MotionDivider = motion26(JoyDivider);
|
|
4258
4296
|
var Divider = (props) => {
|
|
4259
|
-
return /* @__PURE__ */
|
|
4297
|
+
return /* @__PURE__ */ React28.createElement(MotionDivider, { ...props });
|
|
4260
4298
|
};
|
|
4261
4299
|
Divider.displayName = "Divider";
|
|
4262
4300
|
|
|
4263
4301
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
4264
|
-
import { Drawer as JoyDrawer2, styled as
|
|
4265
|
-
var InsetDrawer =
|
|
4302
|
+
import { Drawer as JoyDrawer2, styled as styled19, drawerClasses as drawerClasses2 } from "@mui/joy";
|
|
4303
|
+
var InsetDrawer = styled19(JoyDrawer2)(({ theme }) => ({
|
|
4266
4304
|
[`& .${drawerClasses2.content}`]: {
|
|
4267
4305
|
backgroundColor: "transparent",
|
|
4268
4306
|
boxShadow: "none",
|
|
@@ -4280,7 +4318,7 @@ var InsetDrawer = styled18(JoyDrawer2)(({ theme }) => ({
|
|
|
4280
4318
|
import { Grid } from "@mui/joy";
|
|
4281
4319
|
|
|
4282
4320
|
// src/components/Markdown/Markdown.tsx
|
|
4283
|
-
import
|
|
4321
|
+
import React29, { lazy, Suspense, useEffect as useEffect7, useState as useState8 } from "react";
|
|
4284
4322
|
import { Skeleton } from "@mui/joy";
|
|
4285
4323
|
import { Link as Link2 } from "@mui/joy";
|
|
4286
4324
|
import remarkGfm from "remark-gfm";
|
|
@@ -4309,7 +4347,7 @@ var Markdown = (props) => {
|
|
|
4309
4347
|
if (!rehypeAccent2) {
|
|
4310
4348
|
return null;
|
|
4311
4349
|
}
|
|
4312
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4313
4351
|
Typography,
|
|
4314
4352
|
{
|
|
4315
4353
|
component: "div",
|
|
@@ -4318,12 +4356,12 @@ var Markdown = (props) => {
|
|
|
4318
4356
|
level: defaultLevel,
|
|
4319
4357
|
...innerProps
|
|
4320
4358
|
},
|
|
4321
|
-
/* @__PURE__ */
|
|
4359
|
+
/* @__PURE__ */ React29.createElement(
|
|
4322
4360
|
Suspense,
|
|
4323
4361
|
{
|
|
4324
|
-
fallback: fallback || /* @__PURE__ */
|
|
4362
|
+
fallback: fallback || /* @__PURE__ */ React29.createElement(Typography, null, /* @__PURE__ */ React29.createElement(Skeleton, null, content || ""))
|
|
4325
4363
|
},
|
|
4326
|
-
/* @__PURE__ */
|
|
4364
|
+
/* @__PURE__ */ React29.createElement(
|
|
4327
4365
|
LazyReactMarkdown,
|
|
4328
4366
|
{
|
|
4329
4367
|
...markdownOptions,
|
|
@@ -4331,11 +4369,11 @@ var Markdown = (props) => {
|
|
|
4331
4369
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
4332
4370
|
remarkPlugins: [remarkGfm],
|
|
4333
4371
|
components: {
|
|
4334
|
-
h1: ({ children }) => /* @__PURE__ */
|
|
4335
|
-
h2: ({ children }) => /* @__PURE__ */
|
|
4336
|
-
h3: ({ children }) => /* @__PURE__ */
|
|
4337
|
-
h4: ({ children }) => /* @__PURE__ */
|
|
4338
|
-
p: ({ children, node }) => /* @__PURE__ */
|
|
4372
|
+
h1: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
4373
|
+
h2: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
4374
|
+
h3: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
4375
|
+
h4: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
4376
|
+
p: ({ children, node }) => /* @__PURE__ */ React29.createElement(
|
|
4339
4377
|
Typography,
|
|
4340
4378
|
{
|
|
4341
4379
|
color,
|
|
@@ -4345,10 +4383,10 @@ var Markdown = (props) => {
|
|
|
4345
4383
|
},
|
|
4346
4384
|
children
|
|
4347
4385
|
),
|
|
4348
|
-
a: ({ children, href }) => /* @__PURE__ */
|
|
4349
|
-
hr: () => /* @__PURE__ */
|
|
4350
|
-
b: ({ children }) => /* @__PURE__ */
|
|
4351
|
-
strong: ({ children }) => /* @__PURE__ */
|
|
4386
|
+
a: ({ children, href }) => /* @__PURE__ */ React29.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
4387
|
+
hr: () => /* @__PURE__ */ React29.createElement(Divider, null),
|
|
4388
|
+
b: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4389
|
+
strong: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4352
4390
|
...markdownOptions?.components
|
|
4353
4391
|
}
|
|
4354
4392
|
}
|
|
@@ -4359,7 +4397,7 @@ var Markdown = (props) => {
|
|
|
4359
4397
|
Markdown.displayName = "Markdown";
|
|
4360
4398
|
|
|
4361
4399
|
// src/components/MenuButton/MenuButton.tsx
|
|
4362
|
-
import
|
|
4400
|
+
import React30 from "react";
|
|
4363
4401
|
import {
|
|
4364
4402
|
MenuButton as JoyMenuButton2,
|
|
4365
4403
|
Button as JoyButton2
|
|
@@ -4379,7 +4417,7 @@ function MenuButton(props) {
|
|
|
4379
4417
|
startDecorator
|
|
4380
4418
|
} = props;
|
|
4381
4419
|
if (!items.length) {
|
|
4382
|
-
return /* @__PURE__ */
|
|
4420
|
+
return /* @__PURE__ */ React30.createElement(
|
|
4383
4421
|
JoyButton2,
|
|
4384
4422
|
{
|
|
4385
4423
|
component: props.buttonComponent ?? "button",
|
|
@@ -4390,12 +4428,12 @@ function MenuButton(props) {
|
|
|
4390
4428
|
loading,
|
|
4391
4429
|
startDecorator,
|
|
4392
4430
|
...props.buttonComponentProps ?? {},
|
|
4393
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
4431
|
+
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4394
4432
|
},
|
|
4395
4433
|
buttonText
|
|
4396
4434
|
);
|
|
4397
4435
|
}
|
|
4398
|
-
return /* @__PURE__ */
|
|
4436
|
+
return /* @__PURE__ */ React30.createElement(Dropdown_default, null, /* @__PURE__ */ React30.createElement(
|
|
4399
4437
|
JoyMenuButton2,
|
|
4400
4438
|
{
|
|
4401
4439
|
component: props.buttonComponent ?? "button",
|
|
@@ -4406,10 +4444,10 @@ function MenuButton(props) {
|
|
|
4406
4444
|
loading,
|
|
4407
4445
|
startDecorator,
|
|
4408
4446
|
...props.buttonComponentProps ?? {},
|
|
4409
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
4447
|
+
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4410
4448
|
},
|
|
4411
4449
|
buttonText
|
|
4412
|
-
), /* @__PURE__ */
|
|
4450
|
+
), /* @__PURE__ */ React30.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4413
4451
|
MenuItem,
|
|
4414
4452
|
{
|
|
4415
4453
|
key: i.text,
|
|
@@ -4422,7 +4460,7 @@ function MenuButton(props) {
|
|
|
4422
4460
|
MenuButton.displayName = "MenuButton";
|
|
4423
4461
|
|
|
4424
4462
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
4425
|
-
import
|
|
4463
|
+
import React31, {
|
|
4426
4464
|
forwardRef as forwardRef9,
|
|
4427
4465
|
useCallback as useCallback11,
|
|
4428
4466
|
useEffect as useEffect8,
|
|
@@ -4432,15 +4470,15 @@ import React30, {
|
|
|
4432
4470
|
} from "react";
|
|
4433
4471
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
4434
4472
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
4435
|
-
import { styled as
|
|
4473
|
+
import { styled as styled20, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
4436
4474
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
4437
|
-
var StyledPopper3 =
|
|
4475
|
+
var StyledPopper3 = styled20(Popper4, {
|
|
4438
4476
|
name: "MonthPicker",
|
|
4439
4477
|
slot: "popper"
|
|
4440
4478
|
})(({ theme }) => ({
|
|
4441
4479
|
zIndex: theme.zIndex.tooltip
|
|
4442
4480
|
}));
|
|
4443
|
-
var CalendarSheet3 =
|
|
4481
|
+
var CalendarSheet3 = styled20(Sheet_default, {
|
|
4444
4482
|
name: "MonthPicker",
|
|
4445
4483
|
slot: "sheet",
|
|
4446
4484
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4449,7 +4487,7 @@ var CalendarSheet3 = styled19(Sheet_default, {
|
|
|
4449
4487
|
boxShadow: theme.shadow.md,
|
|
4450
4488
|
borderRadius: theme.radius.md
|
|
4451
4489
|
}));
|
|
4452
|
-
var MonthPickerRoot =
|
|
4490
|
+
var MonthPickerRoot = styled20("div", {
|
|
4453
4491
|
name: "MonthPicker",
|
|
4454
4492
|
slot: "root",
|
|
4455
4493
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4478,10 +4516,10 @@ function parseDate3(dateString) {
|
|
|
4478
4516
|
const date = /* @__PURE__ */ new Date(`${year}/${month}`);
|
|
4479
4517
|
return date;
|
|
4480
4518
|
}
|
|
4481
|
-
var TextMaskAdapter7 =
|
|
4519
|
+
var TextMaskAdapter7 = React31.forwardRef(
|
|
4482
4520
|
function TextMaskAdapter8(props, ref) {
|
|
4483
4521
|
const { onChange, format, ...other } = props;
|
|
4484
|
-
return /* @__PURE__ */
|
|
4522
|
+
return /* @__PURE__ */ React31.createElement(
|
|
4485
4523
|
IMaskInput3,
|
|
4486
4524
|
{
|
|
4487
4525
|
...other,
|
|
@@ -4564,7 +4602,7 @@ var MonthPicker = forwardRef9(
|
|
|
4564
4602
|
},
|
|
4565
4603
|
[anchorEl, setAnchorEl, innerRef]
|
|
4566
4604
|
);
|
|
4567
|
-
return /* @__PURE__ */
|
|
4605
|
+
return /* @__PURE__ */ React31.createElement(MonthPickerRoot, null, /* @__PURE__ */ React31.createElement(FocusTrap3, { open: true }, /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(
|
|
4568
4606
|
Input_default,
|
|
4569
4607
|
{
|
|
4570
4608
|
...innerProps,
|
|
@@ -4586,7 +4624,7 @@ var MonthPicker = forwardRef9(
|
|
|
4586
4624
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
4587
4625
|
fontFamily: "monospace"
|
|
4588
4626
|
},
|
|
4589
|
-
endDecorator: /* @__PURE__ */
|
|
4627
|
+
endDecorator: /* @__PURE__ */ React31.createElement(
|
|
4590
4628
|
IconButton_default,
|
|
4591
4629
|
{
|
|
4592
4630
|
variant: "plain",
|
|
@@ -4596,12 +4634,12 @@ var MonthPicker = forwardRef9(
|
|
|
4596
4634
|
"aria-haspopup": "dialog",
|
|
4597
4635
|
"aria-expanded": open
|
|
4598
4636
|
},
|
|
4599
|
-
/* @__PURE__ */
|
|
4637
|
+
/* @__PURE__ */ React31.createElement(CalendarTodayIcon3, null)
|
|
4600
4638
|
),
|
|
4601
4639
|
label,
|
|
4602
4640
|
helperText
|
|
4603
4641
|
}
|
|
4604
|
-
), open && /* @__PURE__ */
|
|
4642
|
+
), open && /* @__PURE__ */ React31.createElement(ClickAwayListener3, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React31.createElement(
|
|
4605
4643
|
StyledPopper3,
|
|
4606
4644
|
{
|
|
4607
4645
|
id: "month-picker-popper",
|
|
@@ -4620,7 +4658,7 @@ var MonthPicker = forwardRef9(
|
|
|
4620
4658
|
"aria-label": "Calendar Tooltip",
|
|
4621
4659
|
"aria-expanded": open
|
|
4622
4660
|
},
|
|
4623
|
-
/* @__PURE__ */
|
|
4661
|
+
/* @__PURE__ */ React31.createElement(CalendarSheet3, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React31.createElement(
|
|
4624
4662
|
Calendar_default,
|
|
4625
4663
|
{
|
|
4626
4664
|
view: "month",
|
|
@@ -4640,14 +4678,14 @@ var MonthPicker = forwardRef9(
|
|
|
4640
4678
|
disableFuture,
|
|
4641
4679
|
disablePast
|
|
4642
4680
|
}
|
|
4643
|
-
), /* @__PURE__ */
|
|
4681
|
+
), /* @__PURE__ */ React31.createElement(
|
|
4644
4682
|
DialogActions_default,
|
|
4645
4683
|
{
|
|
4646
4684
|
sx: {
|
|
4647
4685
|
p: 1
|
|
4648
4686
|
}
|
|
4649
4687
|
},
|
|
4650
|
-
/* @__PURE__ */
|
|
4688
|
+
/* @__PURE__ */ React31.createElement(
|
|
4651
4689
|
Button_default,
|
|
4652
4690
|
{
|
|
4653
4691
|
size,
|
|
@@ -4671,7 +4709,7 @@ var MonthPicker = forwardRef9(
|
|
|
4671
4709
|
);
|
|
4672
4710
|
|
|
4673
4711
|
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
4674
|
-
import
|
|
4712
|
+
import React32, {
|
|
4675
4713
|
forwardRef as forwardRef10,
|
|
4676
4714
|
useCallback as useCallback12,
|
|
4677
4715
|
useEffect as useEffect9,
|
|
@@ -4682,15 +4720,15 @@ import React31, {
|
|
|
4682
4720
|
} from "react";
|
|
4683
4721
|
import { IMaskInput as IMaskInput4, IMask as IMask4 } from "react-imask";
|
|
4684
4722
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
4685
|
-
import { styled as
|
|
4723
|
+
import { styled as styled21, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
4686
4724
|
import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
|
|
4687
|
-
var StyledPopper4 =
|
|
4725
|
+
var StyledPopper4 = styled21(Popper5, {
|
|
4688
4726
|
name: "MonthRangePicker",
|
|
4689
4727
|
slot: "popper"
|
|
4690
4728
|
})(({ theme }) => ({
|
|
4691
4729
|
zIndex: theme.zIndex.tooltip
|
|
4692
4730
|
}));
|
|
4693
|
-
var CalendarSheet4 =
|
|
4731
|
+
var CalendarSheet4 = styled21(Sheet_default, {
|
|
4694
4732
|
name: "MonthRangePicker",
|
|
4695
4733
|
slot: "sheet",
|
|
4696
4734
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4700,7 +4738,7 @@ var CalendarSheet4 = styled20(Sheet_default, {
|
|
|
4700
4738
|
boxShadow: theme.shadow.md,
|
|
4701
4739
|
borderRadius: theme.radius.md
|
|
4702
4740
|
}));
|
|
4703
|
-
var MonthRangePickerRoot =
|
|
4741
|
+
var MonthRangePickerRoot = styled21("div", {
|
|
4704
4742
|
name: "MonthRangePicker",
|
|
4705
4743
|
slot: "root",
|
|
4706
4744
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4737,10 +4775,10 @@ var parseDates2 = (str) => {
|
|
|
4737
4775
|
var formatToPattern4 = (format) => {
|
|
4738
4776
|
return `${format} - ${format}`.replace(/YYYY/g, "Y").replace(/MM/g, "m").replace(/[^YMm\s]/g, (match) => `${match}\``);
|
|
4739
4777
|
};
|
|
4740
|
-
var TextMaskAdapter9 =
|
|
4778
|
+
var TextMaskAdapter9 = React32.forwardRef(
|
|
4741
4779
|
function TextMaskAdapter10(props, ref) {
|
|
4742
4780
|
const { onChange, format, ...other } = props;
|
|
4743
|
-
return /* @__PURE__ */
|
|
4781
|
+
return /* @__PURE__ */ React32.createElement(
|
|
4744
4782
|
IMaskInput4,
|
|
4745
4783
|
{
|
|
4746
4784
|
...other,
|
|
@@ -4835,7 +4873,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
4835
4873
|
},
|
|
4836
4874
|
[setValue, setAnchorEl, format]
|
|
4837
4875
|
);
|
|
4838
|
-
return /* @__PURE__ */
|
|
4876
|
+
return /* @__PURE__ */ React32.createElement(MonthRangePickerRoot, null, /* @__PURE__ */ React32.createElement(FocusTrap4, { open: true }, /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(
|
|
4839
4877
|
Input_default,
|
|
4840
4878
|
{
|
|
4841
4879
|
...innerProps,
|
|
@@ -4857,7 +4895,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
4857
4895
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
4858
4896
|
fontFamily: "monospace"
|
|
4859
4897
|
},
|
|
4860
|
-
endDecorator: /* @__PURE__ */
|
|
4898
|
+
endDecorator: /* @__PURE__ */ React32.createElement(
|
|
4861
4899
|
IconButton_default,
|
|
4862
4900
|
{
|
|
4863
4901
|
variant: "plain",
|
|
@@ -4867,12 +4905,12 @@ var MonthRangePicker = forwardRef10(
|
|
|
4867
4905
|
"aria-haspopup": "dialog",
|
|
4868
4906
|
"aria-expanded": open
|
|
4869
4907
|
},
|
|
4870
|
-
/* @__PURE__ */
|
|
4908
|
+
/* @__PURE__ */ React32.createElement(CalendarTodayIcon4, null)
|
|
4871
4909
|
),
|
|
4872
4910
|
label,
|
|
4873
4911
|
helperText
|
|
4874
4912
|
}
|
|
4875
|
-
), open && /* @__PURE__ */
|
|
4913
|
+
), open && /* @__PURE__ */ React32.createElement(ClickAwayListener4, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React32.createElement(
|
|
4876
4914
|
StyledPopper4,
|
|
4877
4915
|
{
|
|
4878
4916
|
id: "month-range-picker-popper",
|
|
@@ -4891,7 +4929,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
4891
4929
|
"aria-label": "Calendar Tooltip",
|
|
4892
4930
|
"aria-expanded": open
|
|
4893
4931
|
},
|
|
4894
|
-
/* @__PURE__ */
|
|
4932
|
+
/* @__PURE__ */ React32.createElement(CalendarSheet4, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React32.createElement(
|
|
4895
4933
|
Calendar_default,
|
|
4896
4934
|
{
|
|
4897
4935
|
view: "month",
|
|
@@ -4904,14 +4942,14 @@ var MonthRangePicker = forwardRef10(
|
|
|
4904
4942
|
disableFuture,
|
|
4905
4943
|
disablePast
|
|
4906
4944
|
}
|
|
4907
|
-
), /* @__PURE__ */
|
|
4945
|
+
), /* @__PURE__ */ React32.createElement(
|
|
4908
4946
|
DialogActions_default,
|
|
4909
4947
|
{
|
|
4910
4948
|
sx: {
|
|
4911
4949
|
p: 1
|
|
4912
4950
|
}
|
|
4913
4951
|
},
|
|
4914
|
-
/* @__PURE__ */
|
|
4952
|
+
/* @__PURE__ */ React32.createElement(
|
|
4915
4953
|
Button_default,
|
|
4916
4954
|
{
|
|
4917
4955
|
size,
|
|
@@ -4931,16 +4969,16 @@ var MonthRangePicker = forwardRef10(
|
|
|
4931
4969
|
MonthRangePicker.displayName = "MonthRangePicker";
|
|
4932
4970
|
|
|
4933
4971
|
// src/components/NavigationGroup/NavigationGroup.tsx
|
|
4934
|
-
import
|
|
4972
|
+
import React33 from "react";
|
|
4935
4973
|
import {
|
|
4936
4974
|
Accordion as JoyAccordion2,
|
|
4937
4975
|
AccordionSummary as JoyAccordionSummary2,
|
|
4938
4976
|
AccordionDetails as JoyAccordionDetails2,
|
|
4939
|
-
styled as
|
|
4977
|
+
styled as styled22,
|
|
4940
4978
|
accordionSummaryClasses,
|
|
4941
4979
|
Stack as Stack2
|
|
4942
4980
|
} from "@mui/joy";
|
|
4943
|
-
var AccordionSummary2 =
|
|
4981
|
+
var AccordionSummary2 = styled22(JoyAccordionSummary2, {
|
|
4944
4982
|
name: "NavigationGroup",
|
|
4945
4983
|
slot: "Summary",
|
|
4946
4984
|
shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
|
|
@@ -4953,7 +4991,7 @@ var AccordionSummary2 = styled21(JoyAccordionSummary2, {
|
|
|
4953
4991
|
}
|
|
4954
4992
|
}
|
|
4955
4993
|
}));
|
|
4956
|
-
var AccordionDetails2 =
|
|
4994
|
+
var AccordionDetails2 = styled22(JoyAccordionDetails2, {
|
|
4957
4995
|
name: "NavigationGroup",
|
|
4958
4996
|
slot: "Details"
|
|
4959
4997
|
})(({ theme }) => ({
|
|
@@ -4962,19 +5000,19 @@ var AccordionDetails2 = styled21(JoyAccordionDetails2, {
|
|
|
4962
5000
|
}));
|
|
4963
5001
|
function NavigationGroup(props) {
|
|
4964
5002
|
const { title, children, startDecorator, level, ...rest } = props;
|
|
4965
|
-
return /* @__PURE__ */
|
|
5003
|
+
return /* @__PURE__ */ React33.createElement(JoyAccordion2, { ...rest }, /* @__PURE__ */ React33.createElement(AccordionSummary2, { useIcon: !!startDecorator, level }, /* @__PURE__ */ React33.createElement(Stack2, { direction: "row", gap: 4 }, startDecorator, title)), /* @__PURE__ */ React33.createElement(AccordionDetails2, null, children));
|
|
4966
5004
|
}
|
|
4967
5005
|
|
|
4968
5006
|
// src/components/NavigationItem/NavigationItem.tsx
|
|
4969
|
-
import
|
|
5007
|
+
import React34 from "react";
|
|
4970
5008
|
import {
|
|
4971
5009
|
ListItem as JoyListItem,
|
|
4972
5010
|
ListItemButton as JoyListItemButton,
|
|
4973
5011
|
ListItemDecorator as JoyListItemDecorator,
|
|
4974
|
-
styled as
|
|
5012
|
+
styled as styled23,
|
|
4975
5013
|
listItemButtonClasses
|
|
4976
5014
|
} from "@mui/joy";
|
|
4977
|
-
var ListItemButton =
|
|
5015
|
+
var ListItemButton = styled23(JoyListItemButton, {
|
|
4978
5016
|
name: "NavigationItem",
|
|
4979
5017
|
slot: "Button",
|
|
4980
5018
|
shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
|
|
@@ -5001,7 +5039,7 @@ function NavigationItem(props) {
|
|
|
5001
5039
|
const handleClick = () => {
|
|
5002
5040
|
onClick?.(id);
|
|
5003
5041
|
};
|
|
5004
|
-
return /* @__PURE__ */
|
|
5042
|
+
return /* @__PURE__ */ React34.createElement(JoyListItem, { ...rest }, /* @__PURE__ */ React34.createElement(
|
|
5005
5043
|
ListItemButton,
|
|
5006
5044
|
{
|
|
5007
5045
|
level,
|
|
@@ -5010,21 +5048,21 @@ function NavigationItem(props) {
|
|
|
5010
5048
|
"aria-current": selected,
|
|
5011
5049
|
onClick: handleClick
|
|
5012
5050
|
},
|
|
5013
|
-
startDecorator && /* @__PURE__ */
|
|
5051
|
+
startDecorator && /* @__PURE__ */ React34.createElement(JoyListItemDecorator, null, startDecorator),
|
|
5014
5052
|
children
|
|
5015
5053
|
));
|
|
5016
5054
|
}
|
|
5017
5055
|
|
|
5018
5056
|
// src/components/Navigator/Navigator.tsx
|
|
5019
|
-
import
|
|
5057
|
+
import React35 from "react";
|
|
5020
5058
|
function Navigator(props) {
|
|
5021
5059
|
const { items, level = 0, onSelect } = props;
|
|
5022
5060
|
const handleItemClick = (id) => {
|
|
5023
5061
|
onSelect?.(id);
|
|
5024
5062
|
};
|
|
5025
|
-
return /* @__PURE__ */
|
|
5063
|
+
return /* @__PURE__ */ React35.createElement("div", null, items.map((item, index) => {
|
|
5026
5064
|
if (item.type === "item") {
|
|
5027
|
-
return /* @__PURE__ */
|
|
5065
|
+
return /* @__PURE__ */ React35.createElement(
|
|
5028
5066
|
NavigationItem,
|
|
5029
5067
|
{
|
|
5030
5068
|
key: item.id,
|
|
@@ -5037,7 +5075,7 @@ function Navigator(props) {
|
|
|
5037
5075
|
item.title
|
|
5038
5076
|
);
|
|
5039
5077
|
} else if (item.type === "group") {
|
|
5040
|
-
return /* @__PURE__ */
|
|
5078
|
+
return /* @__PURE__ */ React35.createElement(
|
|
5041
5079
|
NavigationGroup,
|
|
5042
5080
|
{
|
|
5043
5081
|
key: index,
|
|
@@ -5055,17 +5093,17 @@ function Navigator(props) {
|
|
|
5055
5093
|
Navigator.displayName = "Navigator";
|
|
5056
5094
|
|
|
5057
5095
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
5058
|
-
import
|
|
5096
|
+
import React36, { useCallback as useCallback13, useMemo as useMemo11, useState as useState11 } from "react";
|
|
5059
5097
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
5060
|
-
import { styled as
|
|
5098
|
+
import { styled as styled24, useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
5061
5099
|
var padDecimal = (value, decimalScale) => {
|
|
5062
5100
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
5063
5101
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
5064
5102
|
};
|
|
5065
|
-
var TextMaskAdapter11 =
|
|
5103
|
+
var TextMaskAdapter11 = React36.forwardRef(
|
|
5066
5104
|
function TextMaskAdapter12(props, ref) {
|
|
5067
5105
|
const { onChange, min, max, ...innerProps } = props;
|
|
5068
|
-
return /* @__PURE__ */
|
|
5106
|
+
return /* @__PURE__ */ React36.createElement(
|
|
5069
5107
|
NumericFormat2,
|
|
5070
5108
|
{
|
|
5071
5109
|
...innerProps,
|
|
@@ -5086,12 +5124,12 @@ var TextMaskAdapter11 = React35.forwardRef(
|
|
|
5086
5124
|
);
|
|
5087
5125
|
}
|
|
5088
5126
|
);
|
|
5089
|
-
var PercentageInputRoot =
|
|
5127
|
+
var PercentageInputRoot = styled24(Input_default, {
|
|
5090
5128
|
name: "PercentageInput",
|
|
5091
5129
|
slot: "Root",
|
|
5092
5130
|
overridesResolver: (props, styles) => styles.root
|
|
5093
5131
|
})({});
|
|
5094
|
-
var PercentageInput =
|
|
5132
|
+
var PercentageInput = React36.forwardRef(function PercentageInput2(inProps, ref) {
|
|
5095
5133
|
const props = useThemeProps8({ props: inProps, name: "PercentageInput" });
|
|
5096
5134
|
const {
|
|
5097
5135
|
name,
|
|
@@ -5144,7 +5182,7 @@ var PercentageInput = React35.forwardRef(function PercentageInput2(inProps, ref)
|
|
|
5144
5182
|
},
|
|
5145
5183
|
[setValue, useMinorUnit, maxDecimalScale, min, max]
|
|
5146
5184
|
);
|
|
5147
|
-
return /* @__PURE__ */
|
|
5185
|
+
return /* @__PURE__ */ React36.createElement(
|
|
5148
5186
|
PercentageInputRoot,
|
|
5149
5187
|
{
|
|
5150
5188
|
...innerProps,
|
|
@@ -5175,39 +5213,39 @@ PercentageInput.displayName = "PercentageInput";
|
|
|
5175
5213
|
|
|
5176
5214
|
// src/components/Radio/Radio.tsx
|
|
5177
5215
|
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
5178
|
-
import { motion as
|
|
5179
|
-
var MotionRadio =
|
|
5216
|
+
import { motion as motion27 } from "framer-motion";
|
|
5217
|
+
var MotionRadio = motion27(JoyRadio);
|
|
5180
5218
|
var Radio = MotionRadio;
|
|
5181
5219
|
Radio.displayName = "Radio";
|
|
5182
|
-
var MotionRadioGroup =
|
|
5220
|
+
var MotionRadioGroup = motion27(JoyRadioGroup);
|
|
5183
5221
|
var RadioGroup = MotionRadioGroup;
|
|
5184
5222
|
RadioGroup.displayName = "RadioGroup";
|
|
5185
5223
|
|
|
5186
5224
|
// src/components/RadioList/RadioList.tsx
|
|
5187
|
-
import
|
|
5225
|
+
import React37 from "react";
|
|
5188
5226
|
function RadioList(props) {
|
|
5189
5227
|
const { items, ...innerProps } = props;
|
|
5190
|
-
return /* @__PURE__ */
|
|
5228
|
+
return /* @__PURE__ */ React37.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React37.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
5191
5229
|
}
|
|
5192
5230
|
RadioList.displayName = "RadioList";
|
|
5193
5231
|
|
|
5194
5232
|
// src/components/Stepper/Stepper.tsx
|
|
5195
|
-
import
|
|
5233
|
+
import React38 from "react";
|
|
5196
5234
|
import {
|
|
5197
5235
|
Stepper as JoyStepper,
|
|
5198
5236
|
Step as JoyStep,
|
|
5199
5237
|
StepIndicator as JoyStepIndicator,
|
|
5200
5238
|
stepClasses,
|
|
5201
5239
|
stepIndicatorClasses,
|
|
5202
|
-
styled as
|
|
5240
|
+
styled as styled25
|
|
5203
5241
|
} from "@mui/joy";
|
|
5204
5242
|
import CheckIcon from "@mui/icons-material/Check";
|
|
5205
|
-
import { motion as
|
|
5206
|
-
var Step =
|
|
5243
|
+
import { motion as motion28 } from "framer-motion";
|
|
5244
|
+
var Step = styled25(JoyStep)({});
|
|
5207
5245
|
Step.displayName = "Step";
|
|
5208
|
-
var StepIndicator =
|
|
5246
|
+
var StepIndicator = styled25(JoyStepIndicator)({});
|
|
5209
5247
|
StepIndicator.displayName = "StepIndicator";
|
|
5210
|
-
var StyledStepper =
|
|
5248
|
+
var StyledStepper = styled25(JoyStepper)(({ theme }) => ({
|
|
5211
5249
|
"--StepIndicator-size": "24px",
|
|
5212
5250
|
"--Step-gap": theme.spacing(2),
|
|
5213
5251
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -5215,7 +5253,7 @@ var StyledStepper = styled24(JoyStepper)(({ theme }) => ({
|
|
|
5215
5253
|
fontSize: "var(--ceed-fontSize-xs)"
|
|
5216
5254
|
}
|
|
5217
5255
|
}));
|
|
5218
|
-
var MotionStepper =
|
|
5256
|
+
var MotionStepper = motion28(StyledStepper);
|
|
5219
5257
|
function Stepper(props) {
|
|
5220
5258
|
const {
|
|
5221
5259
|
steps,
|
|
@@ -5225,7 +5263,7 @@ function Stepper(props) {
|
|
|
5225
5263
|
inactiveLineColor = "neutral.300",
|
|
5226
5264
|
activeStep
|
|
5227
5265
|
} = props;
|
|
5228
|
-
return /* @__PURE__ */
|
|
5266
|
+
return /* @__PURE__ */ React38.createElement(
|
|
5229
5267
|
MotionStepper,
|
|
5230
5268
|
{
|
|
5231
5269
|
sx: (theme) => ({
|
|
@@ -5259,15 +5297,15 @@ function Stepper(props) {
|
|
|
5259
5297
|
const completed = activeStep > i + 1;
|
|
5260
5298
|
const disabled = activeStep < i + 1;
|
|
5261
5299
|
const hasContent = step.label || step.extraContent;
|
|
5262
|
-
return /* @__PURE__ */
|
|
5300
|
+
return /* @__PURE__ */ React38.createElement(
|
|
5263
5301
|
Step,
|
|
5264
5302
|
{
|
|
5265
|
-
indicator: /* @__PURE__ */
|
|
5303
|
+
indicator: /* @__PURE__ */ React38.createElement(StepIndicator, { variant: "solid", color: "primary" }, completed ? /* @__PURE__ */ React38.createElement(CheckIcon, null) : step.indicatorContent),
|
|
5266
5304
|
active,
|
|
5267
5305
|
completed,
|
|
5268
5306
|
disabled
|
|
5269
5307
|
},
|
|
5270
|
-
hasContent && /* @__PURE__ */
|
|
5308
|
+
hasContent && /* @__PURE__ */ React38.createElement(Stack_default, null, step.label && /* @__PURE__ */ React38.createElement(Typography_default, { level: "title-sm" }, step.label), step.extraContent && /* @__PURE__ */ React38.createElement(Typography_default, { level: "body-xs" }, step.extraContent))
|
|
5271
5309
|
);
|
|
5272
5310
|
})
|
|
5273
5311
|
);
|
|
@@ -5275,15 +5313,15 @@ function Stepper(props) {
|
|
|
5275
5313
|
Stepper.displayName = "Stepper";
|
|
5276
5314
|
|
|
5277
5315
|
// src/components/Switch/Switch.tsx
|
|
5278
|
-
import
|
|
5316
|
+
import React39 from "react";
|
|
5279
5317
|
import {
|
|
5280
5318
|
Switch as JoySwitch,
|
|
5281
|
-
styled as
|
|
5319
|
+
styled as styled26,
|
|
5282
5320
|
switchClasses
|
|
5283
5321
|
} from "@mui/joy";
|
|
5284
|
-
import { motion as
|
|
5285
|
-
var MotionSwitch =
|
|
5286
|
-
var StyledThumb =
|
|
5322
|
+
import { motion as motion29 } from "framer-motion";
|
|
5323
|
+
var MotionSwitch = motion29(JoySwitch);
|
|
5324
|
+
var StyledThumb = styled26(motion29.div)({
|
|
5287
5325
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
5288
5326
|
display: "inline-flex",
|
|
5289
5327
|
justifyContent: "center",
|
|
@@ -5301,14 +5339,14 @@ var StyledThumb = styled25(motion28.div)({
|
|
|
5301
5339
|
right: "var(--Switch-thumbOffset)"
|
|
5302
5340
|
}
|
|
5303
5341
|
});
|
|
5304
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
5342
|
+
var Thumb = (props) => /* @__PURE__ */ React39.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
5305
5343
|
var spring = {
|
|
5306
5344
|
type: "spring",
|
|
5307
5345
|
stiffness: 700,
|
|
5308
5346
|
damping: 30
|
|
5309
5347
|
};
|
|
5310
5348
|
var Switch = (props) => {
|
|
5311
|
-
return /* @__PURE__ */
|
|
5349
|
+
return /* @__PURE__ */ React39.createElement(
|
|
5312
5350
|
MotionSwitch,
|
|
5313
5351
|
{
|
|
5314
5352
|
...props,
|
|
@@ -5322,21 +5360,21 @@ var Switch = (props) => {
|
|
|
5322
5360
|
Switch.displayName = "Switch";
|
|
5323
5361
|
|
|
5324
5362
|
// src/components/Tabs/Tabs.tsx
|
|
5325
|
-
import
|
|
5363
|
+
import React40, { forwardRef as forwardRef11 } from "react";
|
|
5326
5364
|
import {
|
|
5327
5365
|
Tabs as JoyTabs,
|
|
5328
5366
|
Tab as JoyTab,
|
|
5329
5367
|
TabList as JoyTabList,
|
|
5330
5368
|
TabPanel as JoyTabPanel,
|
|
5331
|
-
styled as
|
|
5369
|
+
styled as styled27,
|
|
5332
5370
|
tabClasses
|
|
5333
5371
|
} from "@mui/joy";
|
|
5334
|
-
var StyledTabs =
|
|
5372
|
+
var StyledTabs = styled27(JoyTabs)(({ theme }) => ({
|
|
5335
5373
|
backgroundColor: theme.palette.background.body
|
|
5336
5374
|
}));
|
|
5337
5375
|
var Tabs = StyledTabs;
|
|
5338
5376
|
Tabs.displayName = "Tabs";
|
|
5339
|
-
var StyledTab =
|
|
5377
|
+
var StyledTab = styled27(JoyTab)(({ theme }) => ({
|
|
5340
5378
|
[`&:not(.${tabClasses.selected})`]: {
|
|
5341
5379
|
color: theme.palette.neutral[700]
|
|
5342
5380
|
},
|
|
@@ -5345,14 +5383,14 @@ var StyledTab = styled26(JoyTab)(({ theme }) => ({
|
|
|
5345
5383
|
}
|
|
5346
5384
|
}));
|
|
5347
5385
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
5348
|
-
return /* @__PURE__ */
|
|
5386
|
+
return /* @__PURE__ */ React40.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
5349
5387
|
});
|
|
5350
5388
|
Tab.displayName = "Tab";
|
|
5351
5389
|
var TabList = JoyTabList;
|
|
5352
5390
|
var TabPanel = JoyTabPanel;
|
|
5353
5391
|
|
|
5354
5392
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5355
|
-
import
|
|
5393
|
+
import React41 from "react";
|
|
5356
5394
|
import {
|
|
5357
5395
|
CssBaseline,
|
|
5358
5396
|
CssVarsProvider,
|
|
@@ -5608,19 +5646,19 @@ var defaultTheme = extendTheme({
|
|
|
5608
5646
|
});
|
|
5609
5647
|
function ThemeProvider(props) {
|
|
5610
5648
|
const theme = props.theme || defaultTheme;
|
|
5611
|
-
return /* @__PURE__ */
|
|
5649
|
+
return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React41.createElement(CssBaseline, null), props.children));
|
|
5612
5650
|
}
|
|
5613
5651
|
ThemeProvider.displayName = "ThemeProvider";
|
|
5614
5652
|
|
|
5615
5653
|
// src/components/Uploader/Uploader.tsx
|
|
5616
|
-
import
|
|
5654
|
+
import React42, {
|
|
5617
5655
|
useCallback as useCallback14,
|
|
5618
5656
|
useEffect as useEffect10,
|
|
5619
5657
|
useMemo as useMemo12,
|
|
5620
5658
|
useRef as useRef8,
|
|
5621
5659
|
useState as useState12
|
|
5622
5660
|
} from "react";
|
|
5623
|
-
import { styled as
|
|
5661
|
+
import { styled as styled28, Input as Input2 } from "@mui/joy";
|
|
5624
5662
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
5625
5663
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
5626
5664
|
import MuiClearIcon from "@mui/icons-material/ClearRounded";
|
|
@@ -5642,7 +5680,7 @@ var esmFiles = {
|
|
|
5642
5680
|
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
|
|
5643
5681
|
)
|
|
5644
5682
|
};
|
|
5645
|
-
var VisuallyHiddenInput =
|
|
5683
|
+
var VisuallyHiddenInput = styled28(Input2)({
|
|
5646
5684
|
width: "1px",
|
|
5647
5685
|
height: "1px",
|
|
5648
5686
|
overflow: "hidden",
|
|
@@ -5651,18 +5689,18 @@ var VisuallyHiddenInput = styled27(Input2)({
|
|
|
5651
5689
|
clipPath: "inset(50%)",
|
|
5652
5690
|
position: "absolute"
|
|
5653
5691
|
});
|
|
5654
|
-
var PreviewRoot =
|
|
5692
|
+
var PreviewRoot = styled28(Stack_default, {
|
|
5655
5693
|
name: "Uploader",
|
|
5656
5694
|
slot: "PreviewRoot"
|
|
5657
5695
|
})({});
|
|
5658
|
-
var UploadCard =
|
|
5696
|
+
var UploadCard = styled28(Card, {
|
|
5659
5697
|
name: "Uploader",
|
|
5660
5698
|
slot: "UploadCard"
|
|
5661
5699
|
})(({ theme }) => ({
|
|
5662
5700
|
padding: theme.spacing(2.5),
|
|
5663
5701
|
border: `1px solid ${theme.palette.neutral.outlinedBorder}`
|
|
5664
5702
|
}));
|
|
5665
|
-
var UploadFileIcon =
|
|
5703
|
+
var UploadFileIcon = styled28(MuiUploadFileIcon, {
|
|
5666
5704
|
name: "Uploader",
|
|
5667
5705
|
slot: "UploadFileIcon"
|
|
5668
5706
|
})(({ theme }) => ({
|
|
@@ -5670,7 +5708,7 @@ var UploadFileIcon = styled27(MuiUploadFileIcon, {
|
|
|
5670
5708
|
width: "32px",
|
|
5671
5709
|
height: "32px"
|
|
5672
5710
|
}));
|
|
5673
|
-
var ClearIcon2 =
|
|
5711
|
+
var ClearIcon2 = styled28(MuiClearIcon, {
|
|
5674
5712
|
name: "Uploader",
|
|
5675
5713
|
slot: "ClearIcon"
|
|
5676
5714
|
})(({ theme }) => ({
|
|
@@ -5737,7 +5775,7 @@ var getFileSize = (n) => {
|
|
|
5737
5775
|
};
|
|
5738
5776
|
var Preview = (props) => {
|
|
5739
5777
|
const { files, uploaded, onDelete } = props;
|
|
5740
|
-
return /* @__PURE__ */
|
|
5778
|
+
return /* @__PURE__ */ React42.createElement(PreviewRoot, { gap: 1 }, [...uploaded, ...files].map((file) => /* @__PURE__ */ React42.createElement(UploadCard, { key: file.name, size: "sm", color: "neutral" }, /* @__PURE__ */ React42.createElement(Stack_default, { direction: "row", alignItems: "center", gap: 2 }, /* @__PURE__ */ React42.createElement(UploadFileIcon, null), /* @__PURE__ */ React42.createElement(Stack_default, { flex: "1" }, /* @__PURE__ */ React42.createElement(Typography_default, { level: "body-sm", textColor: "common.black" }, file.name), !!file.size && /* @__PURE__ */ React42.createElement(
|
|
5741
5779
|
Typography_default,
|
|
5742
5780
|
{
|
|
5743
5781
|
level: "body-xs",
|
|
@@ -5746,15 +5784,15 @@ var Preview = (props) => {
|
|
|
5746
5784
|
textColor: "text.tertiary"
|
|
5747
5785
|
},
|
|
5748
5786
|
getFileSize(file.size)
|
|
5749
|
-
)), /* @__PURE__ */
|
|
5787
|
+
)), /* @__PURE__ */ React42.createElement(IconButton_default, { onClick: () => onDelete?.(file) }, /* @__PURE__ */ React42.createElement(ClearIcon2, null))))));
|
|
5750
5788
|
};
|
|
5751
|
-
var UploaderRoot =
|
|
5789
|
+
var UploaderRoot = styled28(Stack_default, {
|
|
5752
5790
|
name: "Uploader",
|
|
5753
5791
|
slot: "root"
|
|
5754
5792
|
})(({ theme }) => ({
|
|
5755
5793
|
gap: theme.spacing(2)
|
|
5756
5794
|
}));
|
|
5757
|
-
var FileDropZone =
|
|
5795
|
+
var FileDropZone = styled28(Sheet_default, {
|
|
5758
5796
|
name: "Uploader",
|
|
5759
5797
|
slot: "dropZone",
|
|
5760
5798
|
shouldForwardProp: (prop) => prop !== "error"
|
|
@@ -5772,7 +5810,7 @@ var FileDropZone = styled27(Sheet_default, {
|
|
|
5772
5810
|
border: error ? `1px solid ${theme.palette.danger.outlinedBorder}` : state === "idle" ? `1px solid ${theme.palette.neutral.outlinedBorder}` : `1px solid ${theme.palette.primary.outlinedBorder}`
|
|
5773
5811
|
})
|
|
5774
5812
|
);
|
|
5775
|
-
var UploaderIcon =
|
|
5813
|
+
var UploaderIcon = styled28(MuiFileUploadIcon, {
|
|
5776
5814
|
name: "Uploader",
|
|
5777
5815
|
slot: "iconContainer",
|
|
5778
5816
|
shouldForwardProp: (prop) => prop !== "error"
|
|
@@ -5783,7 +5821,7 @@ var UploaderIcon = styled27(MuiFileUploadIcon, {
|
|
|
5783
5821
|
height: "32px"
|
|
5784
5822
|
})
|
|
5785
5823
|
);
|
|
5786
|
-
var Uploader =
|
|
5824
|
+
var Uploader = React42.memo(
|
|
5787
5825
|
(props) => {
|
|
5788
5826
|
const {
|
|
5789
5827
|
accept,
|
|
@@ -6008,7 +6046,7 @@ var Uploader = React41.memo(
|
|
|
6008
6046
|
const handleUploaderButtonClick = useCallback14(() => {
|
|
6009
6047
|
inputRef.current?.click();
|
|
6010
6048
|
}, []);
|
|
6011
|
-
const uploader = /* @__PURE__ */
|
|
6049
|
+
const uploader = /* @__PURE__ */ React42.createElement(
|
|
6012
6050
|
FileDropZone,
|
|
6013
6051
|
{
|
|
6014
6052
|
state: previewState,
|
|
@@ -6016,8 +6054,8 @@ var Uploader = React41.memo(
|
|
|
6016
6054
|
ref: dropZoneRef,
|
|
6017
6055
|
onClick: handleUploaderButtonClick
|
|
6018
6056
|
},
|
|
6019
|
-
/* @__PURE__ */
|
|
6020
|
-
/* @__PURE__ */
|
|
6057
|
+
/* @__PURE__ */ React42.createElement(Stack_default, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React42.createElement(UploaderIcon, { state: previewState, error: !!(error || errorText) })),
|
|
6058
|
+
/* @__PURE__ */ React42.createElement(
|
|
6021
6059
|
VisuallyHiddenInput,
|
|
6022
6060
|
{
|
|
6023
6061
|
disabled,
|
|
@@ -6042,7 +6080,7 @@ var Uploader = React41.memo(
|
|
|
6042
6080
|
}
|
|
6043
6081
|
)
|
|
6044
6082
|
);
|
|
6045
|
-
return /* @__PURE__ */
|
|
6083
|
+
return /* @__PURE__ */ React42.createElement(UploaderRoot, null, showDropZone && /* @__PURE__ */ React42.createElement(
|
|
6046
6084
|
FormControl_default,
|
|
6047
6085
|
{
|
|
6048
6086
|
size,
|
|
@@ -6050,10 +6088,10 @@ var Uploader = React41.memo(
|
|
|
6050
6088
|
disabled,
|
|
6051
6089
|
required: !!minCount
|
|
6052
6090
|
},
|
|
6053
|
-
label && /* @__PURE__ */
|
|
6091
|
+
label && /* @__PURE__ */ React42.createElement(FormLabel_default, null, label),
|
|
6054
6092
|
uploader,
|
|
6055
|
-
/* @__PURE__ */
|
|
6056
|
-
), [...uploaded, ...files].length > 0 && /* @__PURE__ */
|
|
6093
|
+
/* @__PURE__ */ React42.createElement(FormHelperText_default, null, /* @__PURE__ */ React42.createElement(Stack_default, null, errorText && /* @__PURE__ */ React42.createElement("div", null, errorText), /* @__PURE__ */ React42.createElement("div", null, helperText)))
|
|
6094
|
+
), [...uploaded, ...files].length > 0 && /* @__PURE__ */ React42.createElement(
|
|
6057
6095
|
Preview,
|
|
6058
6096
|
{
|
|
6059
6097
|
files,
|
|
@@ -6069,6 +6107,7 @@ export {
|
|
|
6069
6107
|
AccordionDetails,
|
|
6070
6108
|
AccordionSummary,
|
|
6071
6109
|
Accordions,
|
|
6110
|
+
Alert,
|
|
6072
6111
|
AspectRatio,
|
|
6073
6112
|
Autocomplete,
|
|
6074
6113
|
AutocompleteListbox,
|
|
@@ -6164,6 +6203,7 @@ export {
|
|
|
6164
6203
|
accordionDetailsClasses,
|
|
6165
6204
|
accordionSummaryClasses2 as accordionSummaryClasses,
|
|
6166
6205
|
accordionGroupClasses as accordionsClasses,
|
|
6206
|
+
alertClasses,
|
|
6167
6207
|
aspectRatioClasses,
|
|
6168
6208
|
autocompleteClasses,
|
|
6169
6209
|
autocompleteListboxClasses,
|
|
@@ -6221,7 +6261,7 @@ export {
|
|
|
6221
6261
|
stepButtonClasses,
|
|
6222
6262
|
stepClasses2 as stepClasses,
|
|
6223
6263
|
stepperClasses,
|
|
6224
|
-
|
|
6264
|
+
styled29 as styled,
|
|
6225
6265
|
switchClasses2 as switchClasses,
|
|
6226
6266
|
tabListClasses,
|
|
6227
6267
|
tabPanelClasses,
|