@ceed/ads 1.2.5 → 1.2.6-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/InsetDrawer/InsetDrawer.d.ts +1 -7
- package/dist/index.cjs +159 -172
- package/dist/index.js +150 -163
- package/framer/index.js +29 -29
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
CircularProgress as CircularProgress2,
|
|
121
121
|
circularProgressClasses,
|
|
122
122
|
Drawer,
|
|
123
|
-
drawerClasses,
|
|
123
|
+
drawerClasses as drawerClasses2,
|
|
124
124
|
LinearProgress as LinearProgress2,
|
|
125
125
|
linearProgressClasses,
|
|
126
126
|
List,
|
|
@@ -4211,42 +4211,29 @@ var Divider = (props) => {
|
|
|
4211
4211
|
Divider.displayName = "Divider";
|
|
4212
4212
|
|
|
4213
4213
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
4214
|
-
import
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
...innerProps.slotProps?.content,
|
|
4228
|
-
sx: {
|
|
4229
|
-
bgcolor: "transparent",
|
|
4230
|
-
p: { md: 3, sm: 0 },
|
|
4231
|
-
boxShadow: "none"
|
|
4232
|
-
}
|
|
4233
|
-
}
|
|
4234
|
-
}
|
|
4235
|
-
},
|
|
4236
|
-
children
|
|
4237
|
-
);
|
|
4238
|
-
};
|
|
4239
|
-
InsetDrawer.displayName = "InsetDrawer";
|
|
4214
|
+
import { Drawer as JoyDrawer, styled as styled18, drawerClasses } from "@mui/joy";
|
|
4215
|
+
var InsetDrawer = styled18(JoyDrawer)(({ theme }) => ({
|
|
4216
|
+
[`& .${drawerClasses.content}`]: {
|
|
4217
|
+
backgroundColor: "transparent",
|
|
4218
|
+
boxShadow: "none",
|
|
4219
|
+
padding: 0,
|
|
4220
|
+
width: "100%",
|
|
4221
|
+
[theme.breakpoints.up("md")]: {
|
|
4222
|
+
padding: theme.spacing(3),
|
|
4223
|
+
width: "auto"
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
}));
|
|
4240
4227
|
|
|
4241
4228
|
// src/components/Uploader/Uploader.tsx
|
|
4242
|
-
import
|
|
4229
|
+
import React28, {
|
|
4243
4230
|
useCallback as useCallback11,
|
|
4244
4231
|
useEffect as useEffect7,
|
|
4245
4232
|
useMemo as useMemo10,
|
|
4246
4233
|
useRef as useRef6,
|
|
4247
4234
|
useState as useState8
|
|
4248
4235
|
} from "react";
|
|
4249
|
-
import { styled as
|
|
4236
|
+
import { styled as styled19, Input as Input2 } from "@mui/joy";
|
|
4250
4237
|
import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
|
|
4251
4238
|
import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
|
|
4252
4239
|
import MuiClearIcon from "@mui/icons-material/ClearRounded";
|
|
@@ -4268,7 +4255,7 @@ var esmFiles = {
|
|
|
4268
4255
|
"@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
|
|
4269
4256
|
)
|
|
4270
4257
|
};
|
|
4271
|
-
var VisuallyHiddenInput =
|
|
4258
|
+
var VisuallyHiddenInput = styled19(Input2)({
|
|
4272
4259
|
width: "1px",
|
|
4273
4260
|
height: "1px",
|
|
4274
4261
|
overflow: "hidden",
|
|
@@ -4277,18 +4264,18 @@ var VisuallyHiddenInput = styled18(Input2)({
|
|
|
4277
4264
|
clipPath: "inset(50%)",
|
|
4278
4265
|
position: "absolute"
|
|
4279
4266
|
});
|
|
4280
|
-
var PreviewRoot =
|
|
4267
|
+
var PreviewRoot = styled19(Stack_default, {
|
|
4281
4268
|
name: "Uploader",
|
|
4282
4269
|
slot: "PreviewRoot"
|
|
4283
4270
|
})({});
|
|
4284
|
-
var UploadCard =
|
|
4271
|
+
var UploadCard = styled19(Card, {
|
|
4285
4272
|
name: "Uploader",
|
|
4286
4273
|
slot: "UploadCard"
|
|
4287
4274
|
})(({ theme }) => ({
|
|
4288
4275
|
padding: theme.spacing(2.5),
|
|
4289
4276
|
border: `1px solid ${theme.palette.neutral.outlinedBorder}`
|
|
4290
4277
|
}));
|
|
4291
|
-
var UploadFileIcon =
|
|
4278
|
+
var UploadFileIcon = styled19(MuiUploadFileIcon, {
|
|
4292
4279
|
name: "Uploader",
|
|
4293
4280
|
slot: "UploadFileIcon"
|
|
4294
4281
|
})(({ theme }) => ({
|
|
@@ -4296,7 +4283,7 @@ var UploadFileIcon = styled18(MuiUploadFileIcon, {
|
|
|
4296
4283
|
width: "32px",
|
|
4297
4284
|
height: "32px"
|
|
4298
4285
|
}));
|
|
4299
|
-
var ClearIcon2 =
|
|
4286
|
+
var ClearIcon2 = styled19(MuiClearIcon, {
|
|
4300
4287
|
name: "Uploader",
|
|
4301
4288
|
slot: "ClearIcon"
|
|
4302
4289
|
})(({ theme }) => ({
|
|
@@ -4363,7 +4350,7 @@ var getFileSize = (n) => {
|
|
|
4363
4350
|
};
|
|
4364
4351
|
var Preview = (props) => {
|
|
4365
4352
|
const { files, uploaded, onDelete } = props;
|
|
4366
|
-
return /* @__PURE__ */
|
|
4353
|
+
return /* @__PURE__ */ React28.createElement(PreviewRoot, { gap: 1 }, [...uploaded, ...files].map((file) => /* @__PURE__ */ React28.createElement(UploadCard, { key: file.name, size: "sm", color: "neutral" }, /* @__PURE__ */ React28.createElement(Stack_default, { direction: "row", alignItems: "center", gap: 2 }, /* @__PURE__ */ React28.createElement(UploadFileIcon, null), /* @__PURE__ */ React28.createElement(Stack_default, { flex: "1" }, /* @__PURE__ */ React28.createElement(Typography_default, { level: "body-sm", textColor: "common.black" }, file.name), !!file.size && /* @__PURE__ */ React28.createElement(
|
|
4367
4354
|
Typography_default,
|
|
4368
4355
|
{
|
|
4369
4356
|
level: "body-xs",
|
|
@@ -4372,15 +4359,15 @@ var Preview = (props) => {
|
|
|
4372
4359
|
textColor: "text.tertiary"
|
|
4373
4360
|
},
|
|
4374
4361
|
getFileSize(file.size)
|
|
4375
|
-
)), /* @__PURE__ */
|
|
4362
|
+
)), /* @__PURE__ */ React28.createElement(IconButton_default, { onClick: () => onDelete?.(file) }, /* @__PURE__ */ React28.createElement(ClearIcon2, null))))));
|
|
4376
4363
|
};
|
|
4377
|
-
var UploaderRoot =
|
|
4364
|
+
var UploaderRoot = styled19(Stack_default, {
|
|
4378
4365
|
name: "Uploader",
|
|
4379
4366
|
slot: "root"
|
|
4380
4367
|
})(({ theme }) => ({
|
|
4381
4368
|
gap: theme.spacing(2)
|
|
4382
4369
|
}));
|
|
4383
|
-
var FileDropZone =
|
|
4370
|
+
var FileDropZone = styled19(Sheet_default, {
|
|
4384
4371
|
name: "Uploader",
|
|
4385
4372
|
slot: "dropZone",
|
|
4386
4373
|
shouldForwardProp: (prop) => prop !== "error"
|
|
@@ -4398,7 +4385,7 @@ var FileDropZone = styled18(Sheet_default, {
|
|
|
4398
4385
|
border: error ? `1px solid ${theme.palette.danger.outlinedBorder}` : state === "idle" ? `1px solid ${theme.palette.neutral.outlinedBorder}` : `1px solid ${theme.palette.primary.outlinedBorder}`
|
|
4399
4386
|
})
|
|
4400
4387
|
);
|
|
4401
|
-
var UploaderIcon =
|
|
4388
|
+
var UploaderIcon = styled19(MuiFileUploadIcon, {
|
|
4402
4389
|
name: "Uploader",
|
|
4403
4390
|
slot: "iconContainer",
|
|
4404
4391
|
shouldForwardProp: (prop) => prop !== "error"
|
|
@@ -4409,7 +4396,7 @@ var UploaderIcon = styled18(MuiFileUploadIcon, {
|
|
|
4409
4396
|
height: "32px"
|
|
4410
4397
|
})
|
|
4411
4398
|
);
|
|
4412
|
-
var Uploader =
|
|
4399
|
+
var Uploader = React28.memo(
|
|
4413
4400
|
(props) => {
|
|
4414
4401
|
const {
|
|
4415
4402
|
accept,
|
|
@@ -4634,7 +4621,7 @@ var Uploader = React29.memo(
|
|
|
4634
4621
|
const handleUploaderButtonClick = useCallback11(() => {
|
|
4635
4622
|
inputRef.current?.click();
|
|
4636
4623
|
}, []);
|
|
4637
|
-
const uploader = /* @__PURE__ */
|
|
4624
|
+
const uploader = /* @__PURE__ */ React28.createElement(
|
|
4638
4625
|
FileDropZone,
|
|
4639
4626
|
{
|
|
4640
4627
|
state: previewState,
|
|
@@ -4642,8 +4629,8 @@ var Uploader = React29.memo(
|
|
|
4642
4629
|
ref: dropZoneRef,
|
|
4643
4630
|
onClick: handleUploaderButtonClick
|
|
4644
4631
|
},
|
|
4645
|
-
/* @__PURE__ */
|
|
4646
|
-
/* @__PURE__ */
|
|
4632
|
+
/* @__PURE__ */ React28.createElement(Stack_default, { alignItems: "center", gap: 1 }, /* @__PURE__ */ React28.createElement(UploaderIcon, { state: previewState, error: !!(error || errorText) })),
|
|
4633
|
+
/* @__PURE__ */ React28.createElement(
|
|
4647
4634
|
VisuallyHiddenInput,
|
|
4648
4635
|
{
|
|
4649
4636
|
disabled,
|
|
@@ -4668,7 +4655,7 @@ var Uploader = React29.memo(
|
|
|
4668
4655
|
}
|
|
4669
4656
|
)
|
|
4670
4657
|
);
|
|
4671
|
-
return /* @__PURE__ */
|
|
4658
|
+
return /* @__PURE__ */ React28.createElement(UploaderRoot, null, showDropZone && /* @__PURE__ */ React28.createElement(
|
|
4672
4659
|
FormControl_default,
|
|
4673
4660
|
{
|
|
4674
4661
|
size,
|
|
@@ -4676,10 +4663,10 @@ var Uploader = React29.memo(
|
|
|
4676
4663
|
disabled,
|
|
4677
4664
|
required: !!minCount
|
|
4678
4665
|
},
|
|
4679
|
-
label && /* @__PURE__ */
|
|
4666
|
+
label && /* @__PURE__ */ React28.createElement(FormLabel_default, null, label),
|
|
4680
4667
|
uploader,
|
|
4681
|
-
/* @__PURE__ */
|
|
4682
|
-
), [...uploaded, ...files].length > 0 && /* @__PURE__ */
|
|
4668
|
+
/* @__PURE__ */ React28.createElement(FormHelperText_default, null, /* @__PURE__ */ React28.createElement(Stack_default, null, errorText && /* @__PURE__ */ React28.createElement("div", null, errorText), /* @__PURE__ */ React28.createElement("div", null, helperText)))
|
|
4669
|
+
), [...uploaded, ...files].length > 0 && /* @__PURE__ */ React28.createElement(
|
|
4683
4670
|
Preview,
|
|
4684
4671
|
{
|
|
4685
4672
|
files,
|
|
@@ -4695,7 +4682,7 @@ Uploader.displayName = "Uploader";
|
|
|
4695
4682
|
import { Grid } from "@mui/joy";
|
|
4696
4683
|
|
|
4697
4684
|
// src/components/Markdown/Markdown.tsx
|
|
4698
|
-
import
|
|
4685
|
+
import React29, { lazy, Suspense, useEffect as useEffect8, useState as useState9 } from "react";
|
|
4699
4686
|
import { Skeleton } from "@mui/joy";
|
|
4700
4687
|
import { Link as Link2 } from "@mui/joy";
|
|
4701
4688
|
var LazyReactMarkdown = lazy(() => import("react-markdown"));
|
|
@@ -4723,7 +4710,7 @@ var Markdown = (props) => {
|
|
|
4723
4710
|
if (!rehypeAccent2) {
|
|
4724
4711
|
return null;
|
|
4725
4712
|
}
|
|
4726
|
-
return /* @__PURE__ */
|
|
4713
|
+
return /* @__PURE__ */ React29.createElement(
|
|
4727
4714
|
Typography,
|
|
4728
4715
|
{
|
|
4729
4716
|
component: "div",
|
|
@@ -4732,23 +4719,23 @@ var Markdown = (props) => {
|
|
|
4732
4719
|
level: defaultLevel,
|
|
4733
4720
|
...innerProps
|
|
4734
4721
|
},
|
|
4735
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ React29.createElement(
|
|
4736
4723
|
Suspense,
|
|
4737
4724
|
{
|
|
4738
|
-
fallback: fallback || /* @__PURE__ */
|
|
4725
|
+
fallback: fallback || /* @__PURE__ */ React29.createElement(Typography, null, /* @__PURE__ */ React29.createElement(Skeleton, null, content || ""))
|
|
4739
4726
|
},
|
|
4740
|
-
/* @__PURE__ */
|
|
4727
|
+
/* @__PURE__ */ React29.createElement(
|
|
4741
4728
|
LazyReactMarkdown,
|
|
4742
4729
|
{
|
|
4743
4730
|
...markdownOptions,
|
|
4744
4731
|
children: content,
|
|
4745
4732
|
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
4746
4733
|
components: {
|
|
4747
|
-
h1: ({ children }) => /* @__PURE__ */
|
|
4748
|
-
h2: ({ children }) => /* @__PURE__ */
|
|
4749
|
-
h3: ({ children }) => /* @__PURE__ */
|
|
4750
|
-
h4: ({ children }) => /* @__PURE__ */
|
|
4751
|
-
p: ({ children, node }) => /* @__PURE__ */
|
|
4734
|
+
h1: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
4735
|
+
h2: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
4736
|
+
h3: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
4737
|
+
h4: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
4738
|
+
p: ({ children, node }) => /* @__PURE__ */ React29.createElement(
|
|
4752
4739
|
Typography,
|
|
4753
4740
|
{
|
|
4754
4741
|
color,
|
|
@@ -4758,10 +4745,10 @@ var Markdown = (props) => {
|
|
|
4758
4745
|
},
|
|
4759
4746
|
children
|
|
4760
4747
|
),
|
|
4761
|
-
a: ({ children, href }) => /* @__PURE__ */
|
|
4762
|
-
hr: () => /* @__PURE__ */
|
|
4763
|
-
b: ({ children }) => /* @__PURE__ */
|
|
4764
|
-
strong: ({ children }) => /* @__PURE__ */
|
|
4748
|
+
a: ({ children, href }) => /* @__PURE__ */ React29.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
4749
|
+
hr: () => /* @__PURE__ */ React29.createElement(Divider, null),
|
|
4750
|
+
b: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4751
|
+
strong: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4765
4752
|
...markdownOptions?.components
|
|
4766
4753
|
}
|
|
4767
4754
|
}
|
|
@@ -4772,7 +4759,7 @@ var Markdown = (props) => {
|
|
|
4772
4759
|
Markdown.displayName = "Markdown";
|
|
4773
4760
|
|
|
4774
4761
|
// src/components/MenuButton/MenuButton.tsx
|
|
4775
|
-
import
|
|
4762
|
+
import React30 from "react";
|
|
4776
4763
|
import {
|
|
4777
4764
|
MenuButton as JoyMenuButton2,
|
|
4778
4765
|
Button as JoyButton2
|
|
@@ -4792,7 +4779,7 @@ function MenuButton(props) {
|
|
|
4792
4779
|
startDecorator
|
|
4793
4780
|
} = props;
|
|
4794
4781
|
if (!items.length) {
|
|
4795
|
-
return /* @__PURE__ */
|
|
4782
|
+
return /* @__PURE__ */ React30.createElement(
|
|
4796
4783
|
JoyButton2,
|
|
4797
4784
|
{
|
|
4798
4785
|
component: props.buttonComponent ?? "button",
|
|
@@ -4803,12 +4790,12 @@ function MenuButton(props) {
|
|
|
4803
4790
|
loading,
|
|
4804
4791
|
startDecorator,
|
|
4805
4792
|
...props.buttonComponentProps ?? {},
|
|
4806
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
4793
|
+
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4807
4794
|
},
|
|
4808
4795
|
buttonText
|
|
4809
4796
|
);
|
|
4810
4797
|
}
|
|
4811
|
-
return /* @__PURE__ */
|
|
4798
|
+
return /* @__PURE__ */ React30.createElement(Dropdown_default, null, /* @__PURE__ */ React30.createElement(
|
|
4812
4799
|
JoyMenuButton2,
|
|
4813
4800
|
{
|
|
4814
4801
|
component: props.buttonComponent ?? "button",
|
|
@@ -4819,10 +4806,10 @@ function MenuButton(props) {
|
|
|
4819
4806
|
loading,
|
|
4820
4807
|
startDecorator,
|
|
4821
4808
|
...props.buttonComponentProps ?? {},
|
|
4822
|
-
endDecorator: showIcon ? /* @__PURE__ */
|
|
4809
|
+
endDecorator: showIcon ? /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator, /* @__PURE__ */ React30.createElement(ExpandMoreIcon, null)) : /* @__PURE__ */ React30.createElement(React30.Fragment, null, endDecorator)
|
|
4823
4810
|
},
|
|
4824
4811
|
buttonText
|
|
4825
|
-
), /* @__PURE__ */
|
|
4812
|
+
), /* @__PURE__ */ React30.createElement(Menu, { size }, items.map((i) => /* @__PURE__ */ React30.createElement(
|
|
4826
4813
|
MenuItem,
|
|
4827
4814
|
{
|
|
4828
4815
|
key: i.text,
|
|
@@ -4835,7 +4822,7 @@ function MenuButton(props) {
|
|
|
4835
4822
|
MenuButton.displayName = "MenuButton";
|
|
4836
4823
|
|
|
4837
4824
|
// src/components/MonthPicker/MonthPicker.tsx
|
|
4838
|
-
import
|
|
4825
|
+
import React31, {
|
|
4839
4826
|
forwardRef as forwardRef9,
|
|
4840
4827
|
useCallback as useCallback12,
|
|
4841
4828
|
useEffect as useEffect9,
|
|
@@ -4845,15 +4832,15 @@ import React32, {
|
|
|
4845
4832
|
} from "react";
|
|
4846
4833
|
import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
|
|
4847
4834
|
import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
|
|
4848
|
-
import { styled as
|
|
4835
|
+
import { styled as styled20, useThemeProps as useThemeProps6 } from "@mui/joy";
|
|
4849
4836
|
import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
|
|
4850
|
-
var StyledPopper3 =
|
|
4837
|
+
var StyledPopper3 = styled20(Popper4, {
|
|
4851
4838
|
name: "MonthPicker",
|
|
4852
4839
|
slot: "popper"
|
|
4853
4840
|
})(({ theme }) => ({
|
|
4854
4841
|
zIndex: theme.zIndex.tooltip
|
|
4855
4842
|
}));
|
|
4856
|
-
var CalendarSheet3 =
|
|
4843
|
+
var CalendarSheet3 = styled20(Sheet_default, {
|
|
4857
4844
|
name: "MonthPicker",
|
|
4858
4845
|
slot: "sheet",
|
|
4859
4846
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4862,7 +4849,7 @@ var CalendarSheet3 = styled19(Sheet_default, {
|
|
|
4862
4849
|
boxShadow: theme.shadow.md,
|
|
4863
4850
|
borderRadius: theme.radius.md
|
|
4864
4851
|
}));
|
|
4865
|
-
var MonthPickerRoot =
|
|
4852
|
+
var MonthPickerRoot = styled20("div", {
|
|
4866
4853
|
name: "MonthPicker",
|
|
4867
4854
|
slot: "root",
|
|
4868
4855
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -4891,10 +4878,10 @@ function parseDate3(dateString) {
|
|
|
4891
4878
|
const date = /* @__PURE__ */ new Date(`${year}/${month}`);
|
|
4892
4879
|
return date;
|
|
4893
4880
|
}
|
|
4894
|
-
var TextMaskAdapter7 =
|
|
4881
|
+
var TextMaskAdapter7 = React31.forwardRef(
|
|
4895
4882
|
function TextMaskAdapter8(props, ref) {
|
|
4896
4883
|
const { onChange, format, ...other } = props;
|
|
4897
|
-
return /* @__PURE__ */
|
|
4884
|
+
return /* @__PURE__ */ React31.createElement(
|
|
4898
4885
|
IMaskInput3,
|
|
4899
4886
|
{
|
|
4900
4887
|
...other,
|
|
@@ -4977,7 +4964,7 @@ var MonthPicker = forwardRef9(
|
|
|
4977
4964
|
},
|
|
4978
4965
|
[anchorEl, setAnchorEl, innerRef]
|
|
4979
4966
|
);
|
|
4980
|
-
return /* @__PURE__ */
|
|
4967
|
+
return /* @__PURE__ */ React31.createElement(MonthPickerRoot, null, /* @__PURE__ */ React31.createElement(FocusTrap3, { open: true }, /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(
|
|
4981
4968
|
Input_default,
|
|
4982
4969
|
{
|
|
4983
4970
|
...innerProps,
|
|
@@ -4999,7 +4986,7 @@ var MonthPicker = forwardRef9(
|
|
|
4999
4986
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
5000
4987
|
fontFamily: "monospace"
|
|
5001
4988
|
},
|
|
5002
|
-
endDecorator: /* @__PURE__ */
|
|
4989
|
+
endDecorator: /* @__PURE__ */ React31.createElement(
|
|
5003
4990
|
IconButton_default,
|
|
5004
4991
|
{
|
|
5005
4992
|
variant: "plain",
|
|
@@ -5009,12 +4996,12 @@ var MonthPicker = forwardRef9(
|
|
|
5009
4996
|
"aria-haspopup": "dialog",
|
|
5010
4997
|
"aria-expanded": open
|
|
5011
4998
|
},
|
|
5012
|
-
/* @__PURE__ */
|
|
4999
|
+
/* @__PURE__ */ React31.createElement(CalendarTodayIcon3, null)
|
|
5013
5000
|
),
|
|
5014
5001
|
label,
|
|
5015
5002
|
helperText
|
|
5016
5003
|
}
|
|
5017
|
-
), open && /* @__PURE__ */
|
|
5004
|
+
), open && /* @__PURE__ */ React31.createElement(ClickAwayListener3, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React31.createElement(
|
|
5018
5005
|
StyledPopper3,
|
|
5019
5006
|
{
|
|
5020
5007
|
id: "month-picker-popper",
|
|
@@ -5033,7 +5020,7 @@ var MonthPicker = forwardRef9(
|
|
|
5033
5020
|
"aria-label": "Calendar Tooltip",
|
|
5034
5021
|
"aria-expanded": open
|
|
5035
5022
|
},
|
|
5036
|
-
/* @__PURE__ */
|
|
5023
|
+
/* @__PURE__ */ React31.createElement(CalendarSheet3, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React31.createElement(
|
|
5037
5024
|
Calendar_default,
|
|
5038
5025
|
{
|
|
5039
5026
|
view: "month",
|
|
@@ -5053,14 +5040,14 @@ var MonthPicker = forwardRef9(
|
|
|
5053
5040
|
disableFuture,
|
|
5054
5041
|
disablePast
|
|
5055
5042
|
}
|
|
5056
|
-
), /* @__PURE__ */
|
|
5043
|
+
), /* @__PURE__ */ React31.createElement(
|
|
5057
5044
|
DialogActions_default,
|
|
5058
5045
|
{
|
|
5059
5046
|
sx: {
|
|
5060
5047
|
p: 1
|
|
5061
5048
|
}
|
|
5062
5049
|
},
|
|
5063
|
-
/* @__PURE__ */
|
|
5050
|
+
/* @__PURE__ */ React31.createElement(
|
|
5064
5051
|
Button_default,
|
|
5065
5052
|
{
|
|
5066
5053
|
size,
|
|
@@ -5084,7 +5071,7 @@ var MonthPicker = forwardRef9(
|
|
|
5084
5071
|
);
|
|
5085
5072
|
|
|
5086
5073
|
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
5087
|
-
import
|
|
5074
|
+
import React32, {
|
|
5088
5075
|
forwardRef as forwardRef10,
|
|
5089
5076
|
useCallback as useCallback13,
|
|
5090
5077
|
useEffect as useEffect10,
|
|
@@ -5095,15 +5082,15 @@ import React33, {
|
|
|
5095
5082
|
} from "react";
|
|
5096
5083
|
import { IMaskInput as IMaskInput4, IMask as IMask4 } from "react-imask";
|
|
5097
5084
|
import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
|
|
5098
|
-
import { styled as
|
|
5085
|
+
import { styled as styled21, useThemeProps as useThemeProps7 } from "@mui/joy";
|
|
5099
5086
|
import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
|
|
5100
|
-
var StyledPopper4 =
|
|
5087
|
+
var StyledPopper4 = styled21(Popper5, {
|
|
5101
5088
|
name: "MonthRangePicker",
|
|
5102
5089
|
slot: "popper"
|
|
5103
5090
|
})(({ theme }) => ({
|
|
5104
5091
|
zIndex: theme.zIndex.tooltip
|
|
5105
5092
|
}));
|
|
5106
|
-
var CalendarSheet4 =
|
|
5093
|
+
var CalendarSheet4 = styled21(Sheet_default, {
|
|
5107
5094
|
name: "MonthRangePicker",
|
|
5108
5095
|
slot: "sheet",
|
|
5109
5096
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -5113,7 +5100,7 @@ var CalendarSheet4 = styled20(Sheet_default, {
|
|
|
5113
5100
|
boxShadow: theme.shadow.md,
|
|
5114
5101
|
borderRadius: theme.radius.md
|
|
5115
5102
|
}));
|
|
5116
|
-
var MonthRangePickerRoot =
|
|
5103
|
+
var MonthRangePickerRoot = styled21("div", {
|
|
5117
5104
|
name: "MonthRangePicker",
|
|
5118
5105
|
slot: "root",
|
|
5119
5106
|
overridesResolver: (props, styles) => styles.root
|
|
@@ -5150,10 +5137,10 @@ var parseDates2 = (str) => {
|
|
|
5150
5137
|
var formatToPattern4 = (format) => {
|
|
5151
5138
|
return `${format} - ${format}`.replace(/YYYY/g, "Y").replace(/MM/g, "m").replace(/[^YMm\s]/g, (match) => `${match}\``);
|
|
5152
5139
|
};
|
|
5153
|
-
var TextMaskAdapter9 =
|
|
5140
|
+
var TextMaskAdapter9 = React32.forwardRef(
|
|
5154
5141
|
function TextMaskAdapter10(props, ref) {
|
|
5155
5142
|
const { onChange, format, ...other } = props;
|
|
5156
|
-
return /* @__PURE__ */
|
|
5143
|
+
return /* @__PURE__ */ React32.createElement(
|
|
5157
5144
|
IMaskInput4,
|
|
5158
5145
|
{
|
|
5159
5146
|
...other,
|
|
@@ -5248,7 +5235,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
5248
5235
|
},
|
|
5249
5236
|
[setValue, setAnchorEl, format]
|
|
5250
5237
|
);
|
|
5251
|
-
return /* @__PURE__ */
|
|
5238
|
+
return /* @__PURE__ */ React32.createElement(MonthRangePickerRoot, null, /* @__PURE__ */ React32.createElement(FocusTrap4, { open: true }, /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(
|
|
5252
5239
|
Input_default,
|
|
5253
5240
|
{
|
|
5254
5241
|
...innerProps,
|
|
@@ -5270,7 +5257,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
5270
5257
|
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
5271
5258
|
fontFamily: "monospace"
|
|
5272
5259
|
},
|
|
5273
|
-
endDecorator: /* @__PURE__ */
|
|
5260
|
+
endDecorator: /* @__PURE__ */ React32.createElement(
|
|
5274
5261
|
IconButton_default,
|
|
5275
5262
|
{
|
|
5276
5263
|
variant: "plain",
|
|
@@ -5280,12 +5267,12 @@ var MonthRangePicker = forwardRef10(
|
|
|
5280
5267
|
"aria-haspopup": "dialog",
|
|
5281
5268
|
"aria-expanded": open
|
|
5282
5269
|
},
|
|
5283
|
-
/* @__PURE__ */
|
|
5270
|
+
/* @__PURE__ */ React32.createElement(CalendarTodayIcon4, null)
|
|
5284
5271
|
),
|
|
5285
5272
|
label,
|
|
5286
5273
|
helperText
|
|
5287
5274
|
}
|
|
5288
|
-
), open && /* @__PURE__ */
|
|
5275
|
+
), open && /* @__PURE__ */ React32.createElement(ClickAwayListener4, { onClickAway: () => setAnchorEl(null) }, /* @__PURE__ */ React32.createElement(
|
|
5289
5276
|
StyledPopper4,
|
|
5290
5277
|
{
|
|
5291
5278
|
id: "month-range-picker-popper",
|
|
@@ -5304,7 +5291,7 @@ var MonthRangePicker = forwardRef10(
|
|
|
5304
5291
|
"aria-label": "Calendar Tooltip",
|
|
5305
5292
|
"aria-expanded": open
|
|
5306
5293
|
},
|
|
5307
|
-
/* @__PURE__ */
|
|
5294
|
+
/* @__PURE__ */ React32.createElement(CalendarSheet4, { tabIndex: -1, role: "presentation" }, /* @__PURE__ */ React32.createElement(
|
|
5308
5295
|
Calendar_default,
|
|
5309
5296
|
{
|
|
5310
5297
|
view: "month",
|
|
@@ -5317,14 +5304,14 @@ var MonthRangePicker = forwardRef10(
|
|
|
5317
5304
|
disableFuture,
|
|
5318
5305
|
disablePast
|
|
5319
5306
|
}
|
|
5320
|
-
), /* @__PURE__ */
|
|
5307
|
+
), /* @__PURE__ */ React32.createElement(
|
|
5321
5308
|
DialogActions_default,
|
|
5322
5309
|
{
|
|
5323
5310
|
sx: {
|
|
5324
5311
|
p: 1
|
|
5325
5312
|
}
|
|
5326
5313
|
},
|
|
5327
|
-
/* @__PURE__ */
|
|
5314
|
+
/* @__PURE__ */ React32.createElement(
|
|
5328
5315
|
Button_default,
|
|
5329
5316
|
{
|
|
5330
5317
|
size,
|
|
@@ -5344,16 +5331,16 @@ var MonthRangePicker = forwardRef10(
|
|
|
5344
5331
|
MonthRangePicker.displayName = "MonthRangePicker";
|
|
5345
5332
|
|
|
5346
5333
|
// src/components/NavigationGroup/NavigationGroup.tsx
|
|
5347
|
-
import
|
|
5334
|
+
import React33 from "react";
|
|
5348
5335
|
import {
|
|
5349
5336
|
Accordion as JoyAccordion2,
|
|
5350
5337
|
AccordionSummary as JoyAccordionSummary2,
|
|
5351
5338
|
AccordionDetails as JoyAccordionDetails2,
|
|
5352
|
-
styled as
|
|
5339
|
+
styled as styled22,
|
|
5353
5340
|
accordionSummaryClasses,
|
|
5354
5341
|
Stack as Stack2
|
|
5355
5342
|
} from "@mui/joy";
|
|
5356
|
-
var AccordionSummary2 =
|
|
5343
|
+
var AccordionSummary2 = styled22(JoyAccordionSummary2, {
|
|
5357
5344
|
name: "NavigationGroup",
|
|
5358
5345
|
slot: "Summary",
|
|
5359
5346
|
shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
|
|
@@ -5366,7 +5353,7 @@ var AccordionSummary2 = styled21(JoyAccordionSummary2, {
|
|
|
5366
5353
|
}
|
|
5367
5354
|
}
|
|
5368
5355
|
}));
|
|
5369
|
-
var AccordionDetails2 =
|
|
5356
|
+
var AccordionDetails2 = styled22(JoyAccordionDetails2, {
|
|
5370
5357
|
name: "NavigationGroup",
|
|
5371
5358
|
slot: "Details"
|
|
5372
5359
|
})(({ theme }) => ({
|
|
@@ -5375,19 +5362,19 @@ var AccordionDetails2 = styled21(JoyAccordionDetails2, {
|
|
|
5375
5362
|
}));
|
|
5376
5363
|
function NavigationGroup(props) {
|
|
5377
5364
|
const { title, children, startDecorator, level, ...rest } = props;
|
|
5378
|
-
return /* @__PURE__ */
|
|
5365
|
+
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));
|
|
5379
5366
|
}
|
|
5380
5367
|
|
|
5381
5368
|
// src/components/NavigationItem/NavigationItem.tsx
|
|
5382
|
-
import
|
|
5369
|
+
import React34 from "react";
|
|
5383
5370
|
import {
|
|
5384
5371
|
ListItem as JoyListItem,
|
|
5385
5372
|
ListItemButton as JoyListItemButton,
|
|
5386
5373
|
ListItemDecorator as JoyListItemDecorator,
|
|
5387
|
-
styled as
|
|
5374
|
+
styled as styled23,
|
|
5388
5375
|
listItemButtonClasses
|
|
5389
5376
|
} from "@mui/joy";
|
|
5390
|
-
var ListItemButton =
|
|
5377
|
+
var ListItemButton = styled23(JoyListItemButton, {
|
|
5391
5378
|
name: "NavigationItem",
|
|
5392
5379
|
slot: "Button",
|
|
5393
5380
|
shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
|
|
@@ -5414,7 +5401,7 @@ function NavigationItem(props) {
|
|
|
5414
5401
|
const handleClick = () => {
|
|
5415
5402
|
onClick?.(id);
|
|
5416
5403
|
};
|
|
5417
|
-
return /* @__PURE__ */
|
|
5404
|
+
return /* @__PURE__ */ React34.createElement(JoyListItem, { ...rest }, /* @__PURE__ */ React34.createElement(
|
|
5418
5405
|
ListItemButton,
|
|
5419
5406
|
{
|
|
5420
5407
|
level,
|
|
@@ -5423,21 +5410,21 @@ function NavigationItem(props) {
|
|
|
5423
5410
|
"aria-current": selected,
|
|
5424
5411
|
onClick: handleClick
|
|
5425
5412
|
},
|
|
5426
|
-
startDecorator && /* @__PURE__ */
|
|
5413
|
+
startDecorator && /* @__PURE__ */ React34.createElement(JoyListItemDecorator, null, startDecorator),
|
|
5427
5414
|
children
|
|
5428
5415
|
));
|
|
5429
5416
|
}
|
|
5430
5417
|
|
|
5431
5418
|
// src/components/Navigator/Navigator.tsx
|
|
5432
|
-
import
|
|
5419
|
+
import React35 from "react";
|
|
5433
5420
|
function Navigator(props) {
|
|
5434
5421
|
const { items, level = 0, onSelect } = props;
|
|
5435
5422
|
const handleItemClick = (id) => {
|
|
5436
5423
|
onSelect?.(id);
|
|
5437
5424
|
};
|
|
5438
|
-
return /* @__PURE__ */
|
|
5425
|
+
return /* @__PURE__ */ React35.createElement("div", null, items.map((item, index) => {
|
|
5439
5426
|
if (item.type === "item") {
|
|
5440
|
-
return /* @__PURE__ */
|
|
5427
|
+
return /* @__PURE__ */ React35.createElement(
|
|
5441
5428
|
NavigationItem,
|
|
5442
5429
|
{
|
|
5443
5430
|
key: item.id,
|
|
@@ -5450,7 +5437,7 @@ function Navigator(props) {
|
|
|
5450
5437
|
item.title
|
|
5451
5438
|
);
|
|
5452
5439
|
} else if (item.type === "group") {
|
|
5453
|
-
return /* @__PURE__ */
|
|
5440
|
+
return /* @__PURE__ */ React35.createElement(
|
|
5454
5441
|
NavigationGroup,
|
|
5455
5442
|
{
|
|
5456
5443
|
key: index,
|
|
@@ -5468,17 +5455,17 @@ function Navigator(props) {
|
|
|
5468
5455
|
Navigator.displayName = "Navigator";
|
|
5469
5456
|
|
|
5470
5457
|
// src/components/PercentageInput/PercentageInput.tsx
|
|
5471
|
-
import
|
|
5458
|
+
import React36, { useCallback as useCallback14, useMemo as useMemo12, useState as useState12 } from "react";
|
|
5472
5459
|
import { NumericFormat as NumericFormat2 } from "react-number-format";
|
|
5473
|
-
import { styled as
|
|
5460
|
+
import { styled as styled24, useThemeProps as useThemeProps8 } from "@mui/joy";
|
|
5474
5461
|
var padDecimal = (value, decimalScale) => {
|
|
5475
5462
|
const [integer, decimal = ""] = `${value}`.split(".");
|
|
5476
5463
|
return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
|
|
5477
5464
|
};
|
|
5478
|
-
var TextMaskAdapter11 =
|
|
5465
|
+
var TextMaskAdapter11 = React36.forwardRef(
|
|
5479
5466
|
function TextMaskAdapter12(props, ref) {
|
|
5480
5467
|
const { onChange, min, max, ...innerProps } = props;
|
|
5481
|
-
return /* @__PURE__ */
|
|
5468
|
+
return /* @__PURE__ */ React36.createElement(
|
|
5482
5469
|
NumericFormat2,
|
|
5483
5470
|
{
|
|
5484
5471
|
...innerProps,
|
|
@@ -5499,12 +5486,12 @@ var TextMaskAdapter11 = React37.forwardRef(
|
|
|
5499
5486
|
);
|
|
5500
5487
|
}
|
|
5501
5488
|
);
|
|
5502
|
-
var PercentageInputRoot =
|
|
5489
|
+
var PercentageInputRoot = styled24(Input_default, {
|
|
5503
5490
|
name: "PercentageInput",
|
|
5504
5491
|
slot: "Root",
|
|
5505
5492
|
overridesResolver: (props, styles) => styles.root
|
|
5506
5493
|
})({});
|
|
5507
|
-
var PercentageInput =
|
|
5494
|
+
var PercentageInput = React36.forwardRef(function PercentageInput2(inProps, ref) {
|
|
5508
5495
|
const props = useThemeProps8({ props: inProps, name: "PercentageInput" });
|
|
5509
5496
|
const {
|
|
5510
5497
|
name,
|
|
@@ -5557,7 +5544,7 @@ var PercentageInput = React37.forwardRef(function PercentageInput2(inProps, ref)
|
|
|
5557
5544
|
},
|
|
5558
5545
|
[setValue, useMinorUnit, maxDecimalScale, min, max]
|
|
5559
5546
|
);
|
|
5560
|
-
return /* @__PURE__ */
|
|
5547
|
+
return /* @__PURE__ */ React36.createElement(
|
|
5561
5548
|
PercentageInputRoot,
|
|
5562
5549
|
{
|
|
5563
5550
|
...innerProps,
|
|
@@ -5587,17 +5574,17 @@ var PercentageInput = React37.forwardRef(function PercentageInput2(inProps, ref)
|
|
|
5587
5574
|
PercentageInput.displayName = "PercentageInput";
|
|
5588
5575
|
|
|
5589
5576
|
// src/components/ProfileMenu/ProfileMenu.tsx
|
|
5590
|
-
import
|
|
5577
|
+
import React37, { useCallback as useCallback15, useMemo as useMemo13 } from "react";
|
|
5591
5578
|
import {
|
|
5592
5579
|
Dropdown as Dropdown2,
|
|
5593
5580
|
ListDivider,
|
|
5594
5581
|
menuItemClasses,
|
|
5595
|
-
styled as
|
|
5582
|
+
styled as styled25,
|
|
5596
5583
|
MenuButton as MenuButton2
|
|
5597
5584
|
} from "@mui/joy";
|
|
5598
5585
|
import { ClickAwayListener as ClickAwayListener5 } from "@mui/base";
|
|
5599
5586
|
import DropdownIcon from "@mui/icons-material/ArrowDropDown";
|
|
5600
|
-
var StyledProfileCard =
|
|
5587
|
+
var StyledProfileCard = styled25(Stack, {
|
|
5601
5588
|
name: "ProfileMenu",
|
|
5602
5589
|
slot: "item"
|
|
5603
5590
|
})({});
|
|
@@ -5611,7 +5598,7 @@ function ProfileCard(props) {
|
|
|
5611
5598
|
() => size === "sm" ? "body-sm" : "body-md",
|
|
5612
5599
|
[size]
|
|
5613
5600
|
);
|
|
5614
|
-
return /* @__PURE__ */
|
|
5601
|
+
return /* @__PURE__ */ React37.createElement(StyledProfileCard, { px: 4, py: 2 }, /* @__PURE__ */ React37.createElement(Stack, { direction: "row", gap: 2 }, /* @__PURE__ */ React37.createElement(
|
|
5615
5602
|
Typography,
|
|
5616
5603
|
{
|
|
5617
5604
|
level: nameLevel,
|
|
@@ -5619,10 +5606,10 @@ function ProfileCard(props) {
|
|
|
5619
5606
|
textColor: "text.primary"
|
|
5620
5607
|
},
|
|
5621
5608
|
children
|
|
5622
|
-
), chip && /* @__PURE__ */
|
|
5609
|
+
), chip && /* @__PURE__ */ React37.createElement(Chip, { size, color: "neutral", variant: "outlined" }, chip)), caption && /* @__PURE__ */ React37.createElement(Typography, { level: captionLevel, textColor: "text.tertiary" }, caption));
|
|
5623
5610
|
}
|
|
5624
5611
|
ProfileCard.displayName = "ProfileCard";
|
|
5625
|
-
var StyledProfileMenuButton =
|
|
5612
|
+
var StyledProfileMenuButton = styled25(MenuButton2, {
|
|
5626
5613
|
name: "ProfileMenu",
|
|
5627
5614
|
slot: "button"
|
|
5628
5615
|
})(({ theme }) => ({
|
|
@@ -5631,16 +5618,16 @@ var StyledProfileMenuButton = styled24(MenuButton2, {
|
|
|
5631
5618
|
}));
|
|
5632
5619
|
function ProfileMenuButton(props) {
|
|
5633
5620
|
const { size = "md", src, alt, children, getInitial, ...innerProps } = props;
|
|
5634
|
-
return /* @__PURE__ */
|
|
5621
|
+
return /* @__PURE__ */ React37.createElement(
|
|
5635
5622
|
StyledProfileMenuButton,
|
|
5636
5623
|
{
|
|
5637
5624
|
variant: "plain",
|
|
5638
5625
|
color: "neutral",
|
|
5639
5626
|
size,
|
|
5640
|
-
endDecorator: /* @__PURE__ */
|
|
5627
|
+
endDecorator: /* @__PURE__ */ React37.createElement(DropdownIcon, null),
|
|
5641
5628
|
...innerProps
|
|
5642
5629
|
},
|
|
5643
|
-
/* @__PURE__ */
|
|
5630
|
+
/* @__PURE__ */ React37.createElement(
|
|
5644
5631
|
Avatar,
|
|
5645
5632
|
{
|
|
5646
5633
|
variant: "soft",
|
|
@@ -5655,7 +5642,7 @@ function ProfileMenuButton(props) {
|
|
|
5655
5642
|
);
|
|
5656
5643
|
}
|
|
5657
5644
|
ProfileMenuButton.displayName = "ProfileMenuButton";
|
|
5658
|
-
var ProfileMenuRoot =
|
|
5645
|
+
var ProfileMenuRoot = styled25(Menu, {
|
|
5659
5646
|
name: "ProfileMenu",
|
|
5660
5647
|
slot: "root"
|
|
5661
5648
|
})(({ theme }) => ({
|
|
@@ -5681,7 +5668,7 @@ function ProfileMenu(props) {
|
|
|
5681
5668
|
defaultOpen ?? false,
|
|
5682
5669
|
useCallback15((value) => onOpenChange?.(value), [onOpenChange])
|
|
5683
5670
|
);
|
|
5684
|
-
return /* @__PURE__ */
|
|
5671
|
+
return /* @__PURE__ */ React37.createElement(ClickAwayListener5, { onClickAway: () => setOpen(false) }, /* @__PURE__ */ React37.createElement("div", null, /* @__PURE__ */ React37.createElement(Dropdown2, { open }, /* @__PURE__ */ React37.createElement(
|
|
5685
5672
|
ProfileMenuButton,
|
|
5686
5673
|
{
|
|
5687
5674
|
size,
|
|
@@ -5691,7 +5678,7 @@ function ProfileMenu(props) {
|
|
|
5691
5678
|
getInitial
|
|
5692
5679
|
},
|
|
5693
5680
|
profile.name
|
|
5694
|
-
), /* @__PURE__ */
|
|
5681
|
+
), /* @__PURE__ */ React37.createElement(
|
|
5695
5682
|
ProfileMenuRoot,
|
|
5696
5683
|
{
|
|
5697
5684
|
size,
|
|
@@ -5699,7 +5686,7 @@ function ProfileMenu(props) {
|
|
|
5699
5686
|
...innerProps,
|
|
5700
5687
|
onClose: () => setOpen(false)
|
|
5701
5688
|
},
|
|
5702
|
-
/* @__PURE__ */
|
|
5689
|
+
/* @__PURE__ */ React37.createElement(
|
|
5703
5690
|
ProfileCard,
|
|
5704
5691
|
{
|
|
5705
5692
|
size,
|
|
@@ -5708,8 +5695,8 @@ function ProfileMenu(props) {
|
|
|
5708
5695
|
},
|
|
5709
5696
|
profile.name
|
|
5710
5697
|
),
|
|
5711
|
-
!!menuItems.length && /* @__PURE__ */
|
|
5712
|
-
menuItems.map(({ label, ...menuProps }) => /* @__PURE__ */
|
|
5698
|
+
!!menuItems.length && /* @__PURE__ */ React37.createElement(ListDivider, null),
|
|
5699
|
+
menuItems.map(({ label, ...menuProps }) => /* @__PURE__ */ React37.createElement(
|
|
5713
5700
|
MenuItem,
|
|
5714
5701
|
{
|
|
5715
5702
|
...menuProps,
|
|
@@ -5726,39 +5713,39 @@ ProfileMenu.displayName = "ProfileMenu";
|
|
|
5726
5713
|
|
|
5727
5714
|
// src/components/Radio/Radio.tsx
|
|
5728
5715
|
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
5729
|
-
import { motion as
|
|
5730
|
-
var MotionRadio =
|
|
5716
|
+
import { motion as motion26 } from "framer-motion";
|
|
5717
|
+
var MotionRadio = motion26(JoyRadio);
|
|
5731
5718
|
var Radio = MotionRadio;
|
|
5732
5719
|
Radio.displayName = "Radio";
|
|
5733
|
-
var MotionRadioGroup =
|
|
5720
|
+
var MotionRadioGroup = motion26(JoyRadioGroup);
|
|
5734
5721
|
var RadioGroup = MotionRadioGroup;
|
|
5735
5722
|
RadioGroup.displayName = "RadioGroup";
|
|
5736
5723
|
|
|
5737
5724
|
// src/components/RadioList/RadioList.tsx
|
|
5738
|
-
import
|
|
5725
|
+
import React38 from "react";
|
|
5739
5726
|
function RadioList(props) {
|
|
5740
5727
|
const { items, ...innerProps } = props;
|
|
5741
|
-
return /* @__PURE__ */
|
|
5728
|
+
return /* @__PURE__ */ React38.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React38.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
5742
5729
|
}
|
|
5743
5730
|
RadioList.displayName = "RadioList";
|
|
5744
5731
|
|
|
5745
5732
|
// src/components/Stepper/Stepper.tsx
|
|
5746
|
-
import
|
|
5733
|
+
import React39 from "react";
|
|
5747
5734
|
import {
|
|
5748
5735
|
Stepper as JoyStepper,
|
|
5749
5736
|
Step as JoyStep,
|
|
5750
5737
|
StepIndicator as JoyStepIndicator,
|
|
5751
5738
|
stepClasses,
|
|
5752
5739
|
stepIndicatorClasses,
|
|
5753
|
-
styled as
|
|
5740
|
+
styled as styled26
|
|
5754
5741
|
} from "@mui/joy";
|
|
5755
5742
|
import CheckIcon from "@mui/icons-material/Check";
|
|
5756
|
-
import { motion as
|
|
5757
|
-
var Step =
|
|
5743
|
+
import { motion as motion27 } from "framer-motion";
|
|
5744
|
+
var Step = styled26(JoyStep)({});
|
|
5758
5745
|
Step.displayName = "Step";
|
|
5759
|
-
var StepIndicator =
|
|
5746
|
+
var StepIndicator = styled26(JoyStepIndicator)({});
|
|
5760
5747
|
StepIndicator.displayName = "StepIndicator";
|
|
5761
|
-
var StyledStepper =
|
|
5748
|
+
var StyledStepper = styled26(JoyStepper)(({ theme }) => ({
|
|
5762
5749
|
"--StepIndicator-size": "24px",
|
|
5763
5750
|
"--Step-gap": theme.spacing(2),
|
|
5764
5751
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -5766,7 +5753,7 @@ var StyledStepper = styled25(JoyStepper)(({ theme }) => ({
|
|
|
5766
5753
|
fontSize: "var(--ceed-fontSize-xs)"
|
|
5767
5754
|
}
|
|
5768
5755
|
}));
|
|
5769
|
-
var MotionStepper =
|
|
5756
|
+
var MotionStepper = motion27(StyledStepper);
|
|
5770
5757
|
function Stepper(props) {
|
|
5771
5758
|
const {
|
|
5772
5759
|
steps,
|
|
@@ -5776,7 +5763,7 @@ function Stepper(props) {
|
|
|
5776
5763
|
inactiveLineColor = "neutral.300",
|
|
5777
5764
|
activeStep
|
|
5778
5765
|
} = props;
|
|
5779
|
-
return /* @__PURE__ */
|
|
5766
|
+
return /* @__PURE__ */ React39.createElement(
|
|
5780
5767
|
MotionStepper,
|
|
5781
5768
|
{
|
|
5782
5769
|
sx: (theme) => ({
|
|
@@ -5810,15 +5797,15 @@ function Stepper(props) {
|
|
|
5810
5797
|
const completed = activeStep > i + 1;
|
|
5811
5798
|
const disabled = activeStep < i + 1;
|
|
5812
5799
|
const hasContent = step.label || step.extraContent;
|
|
5813
|
-
return /* @__PURE__ */
|
|
5800
|
+
return /* @__PURE__ */ React39.createElement(
|
|
5814
5801
|
Step,
|
|
5815
5802
|
{
|
|
5816
|
-
indicator: /* @__PURE__ */
|
|
5803
|
+
indicator: /* @__PURE__ */ React39.createElement(StepIndicator, { variant: "solid", color: "primary" }, completed ? /* @__PURE__ */ React39.createElement(CheckIcon, null) : step.indicatorContent),
|
|
5817
5804
|
active,
|
|
5818
5805
|
completed,
|
|
5819
5806
|
disabled
|
|
5820
5807
|
},
|
|
5821
|
-
hasContent && /* @__PURE__ */
|
|
5808
|
+
hasContent && /* @__PURE__ */ React39.createElement(Stack_default, null, step.label && /* @__PURE__ */ React39.createElement(Typography_default, { level: "title-sm" }, step.label), step.extraContent && /* @__PURE__ */ React39.createElement(Typography_default, { level: "body-xs" }, step.extraContent))
|
|
5822
5809
|
);
|
|
5823
5810
|
})
|
|
5824
5811
|
);
|
|
@@ -5826,15 +5813,15 @@ function Stepper(props) {
|
|
|
5826
5813
|
Stepper.displayName = "Stepper";
|
|
5827
5814
|
|
|
5828
5815
|
// src/components/Switch/Switch.tsx
|
|
5829
|
-
import
|
|
5816
|
+
import React40 from "react";
|
|
5830
5817
|
import {
|
|
5831
5818
|
Switch as JoySwitch,
|
|
5832
|
-
styled as
|
|
5819
|
+
styled as styled27,
|
|
5833
5820
|
switchClasses
|
|
5834
5821
|
} from "@mui/joy";
|
|
5835
|
-
import { motion as
|
|
5836
|
-
var MotionSwitch =
|
|
5837
|
-
var StyledThumb =
|
|
5822
|
+
import { motion as motion28 } from "framer-motion";
|
|
5823
|
+
var MotionSwitch = motion28(JoySwitch);
|
|
5824
|
+
var StyledThumb = styled27(motion28.div)({
|
|
5838
5825
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
5839
5826
|
display: "inline-flex",
|
|
5840
5827
|
justifyContent: "center",
|
|
@@ -5852,14 +5839,14 @@ var StyledThumb = styled26(motion29.div)({
|
|
|
5852
5839
|
right: "var(--Switch-thumbOffset)"
|
|
5853
5840
|
}
|
|
5854
5841
|
});
|
|
5855
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
5842
|
+
var Thumb = (props) => /* @__PURE__ */ React40.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
5856
5843
|
var spring = {
|
|
5857
5844
|
type: "spring",
|
|
5858
5845
|
stiffness: 700,
|
|
5859
5846
|
damping: 30
|
|
5860
5847
|
};
|
|
5861
5848
|
var Switch = (props) => {
|
|
5862
|
-
return /* @__PURE__ */
|
|
5849
|
+
return /* @__PURE__ */ React40.createElement(
|
|
5863
5850
|
MotionSwitch,
|
|
5864
5851
|
{
|
|
5865
5852
|
...props,
|
|
@@ -5878,29 +5865,29 @@ import {
|
|
|
5878
5865
|
Tab as JoyTab,
|
|
5879
5866
|
TabList as JoyTabList,
|
|
5880
5867
|
TabPanel as JoyTabPanel,
|
|
5881
|
-
styled as
|
|
5868
|
+
styled as styled28,
|
|
5882
5869
|
tabClasses
|
|
5883
5870
|
} from "@mui/joy";
|
|
5884
|
-
import { motion as
|
|
5885
|
-
var MotionTabs =
|
|
5871
|
+
import { motion as motion29 } from "framer-motion";
|
|
5872
|
+
var MotionTabs = motion29(JoyTabs);
|
|
5886
5873
|
var Tabs = MotionTabs;
|
|
5887
5874
|
Tabs.displayName = "Tabs";
|
|
5888
|
-
var MotionTab =
|
|
5875
|
+
var MotionTab = styled28(motion29(JoyTab))(({ theme }) => ({
|
|
5889
5876
|
[`&:not(.${tabClasses.selected})`]: {
|
|
5890
5877
|
color: theme.palette.neutral[700]
|
|
5891
5878
|
}
|
|
5892
5879
|
}));
|
|
5893
5880
|
var Tab = MotionTab;
|
|
5894
5881
|
Tab.displayName = "Tab";
|
|
5895
|
-
var MotionTabList =
|
|
5882
|
+
var MotionTabList = motion29(JoyTabList);
|
|
5896
5883
|
var TabList = MotionTabList;
|
|
5897
5884
|
TabList.displayName = "TabList";
|
|
5898
|
-
var MotionTabPanel =
|
|
5885
|
+
var MotionTabPanel = motion29(JoyTabPanel);
|
|
5899
5886
|
var TabPanel = MotionTabPanel;
|
|
5900
5887
|
TabPanel.displayName = "TabPanel";
|
|
5901
5888
|
|
|
5902
5889
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
5903
|
-
import
|
|
5890
|
+
import React41 from "react";
|
|
5904
5891
|
import {
|
|
5905
5892
|
CssBaseline,
|
|
5906
5893
|
CssVarsProvider,
|
|
@@ -6170,7 +6157,7 @@ var defaultTheme = extendTheme({
|
|
|
6170
6157
|
});
|
|
6171
6158
|
function ThemeProvider(props) {
|
|
6172
6159
|
const theme = props.theme || defaultTheme;
|
|
6173
|
-
return /* @__PURE__ */
|
|
6160
|
+
return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React41.createElement(CssBaseline, null), props.children));
|
|
6174
6161
|
}
|
|
6175
6162
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6176
6163
|
export {
|
|
@@ -6299,7 +6286,7 @@ export {
|
|
|
6299
6286
|
dialogContentClasses,
|
|
6300
6287
|
dialogTitleClasses,
|
|
6301
6288
|
dividerClasses,
|
|
6302
|
-
drawerClasses,
|
|
6289
|
+
drawerClasses2 as drawerClasses,
|
|
6303
6290
|
extendTheme,
|
|
6304
6291
|
formControlClasses,
|
|
6305
6292
|
formHelperTextClasses,
|