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