@ceed/ads 1.12.1 → 1.13.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/RadioTileGroup/RadioTileGroup.d.ts +40 -0
- package/dist/components/RadioTileGroup/index.d.ts +3 -0
- package/dist/components/Sheet/Sheet.d.ts +1 -10
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs +329 -174
- package/dist/index.d.ts +1 -1
- package/dist/index.js +215 -60
- package/framer/index.js +39 -39
- package/package.json +19 -18
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { useTheme, useColorScheme, useThemeProps, ButtonGroup, alertClasses, boxClasses, buttonClasses, checkboxClasses, dividerClasses, iconButtonClasses, inputClasses, menuClasses, menuButtonClasses, menuItemClasses, optionClasses, radioClasses, radioGroupClasses, selectClasses, switchClasses, tableClasses, textareaClasses, typographyClasses, formControlClasses, formLabelClasses, formHelperTextClasses, gridClasses, stackClasses, sheetClasses, modalClasses, modalCloseClasses, modalDialogClasses, modalOverflowClasses, dialogTitleClasses, dialogContentClasses, dialogActionsClasses, tooltipClasses, tabsClasses, tabListClasses, tabPanelClasses, accordionClasses, accordionDetailsClasses, accordionGroupClasses as accordionsClasses, accordionSummaryClasses, AutocompleteListbox, AutocompleteOption, autocompleteClasses, autocompleteListboxClasses, autocompleteOptionClasses, avatarClasses, avatarGroupClasses, AspectRatio, aspectRatioClasses, Badge, badgeClasses, breadcrumbsClasses, cardClasses, cardActionsClasses, cardContentClasses, cardCoverClasses, cardOverflowClasses, chipClasses, CircularProgress, circularProgressClasses, Drawer, drawerClasses, LinearProgress, linearProgressClasses, List, listClasses, ListDivider, listDividerClasses, ListItem, listItemClasses, ListItemButton, listItemButtonClasses, ListItemContent, listItemContentClasses, ListItemDecorator, listItemDecoratorClasses, ListSubheader, listSubheaderClasses, Link, linkClasses, Slider, sliderClasses, stepClasses, StepButton, stepButtonClasses, stepperClasses, Skeleton, skeletonClasses, styled, } from '@mui/joy';
|
|
2
2
|
export type { ButtonProps, Theme } from '@mui/joy';
|
|
3
|
-
export { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, FilterMenu, extendTheme, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, PercentageInput, ProfileMenu, Pagination, NavigationGroup, NavigationItem, Navigator, Radio, RadioGroup, RadioList, Select, Option, Sheet, Stack, Step, StepIndicator, Stepper, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from './components';
|
|
3
|
+
export { Accordion, Accordions, Alert, Autocomplete, AccordionDetails, AccordionSummary, Avatar, AvatarGroup, Box, Breadcrumbs, Button, Calendar, Card, CardActions, CardContent, CardCover, CardOverflow, Checkbox, Chip, Container, CssBaseline, CurrencyInput, DataTable, DatePicker, DateRangePicker, DialogActions, DialogContent, DialogTitle, DialogFrame, Divider, Dropdown, FilterMenu, extendTheme, InsetDrawer, Uploader, FormControl, FormHelperText, FormLabel, Grid, IconButton, IconMenuButton, InfoSign, Input, Markdown, Menu, MenuButton, MenuItem, Modal, ModalClose, ModalDialog, ModalOverflow, ModalFrame, MonthPicker, MonthRangePicker, PercentageInput, ProfileMenu, Pagination, NavigationGroup, NavigationItem, Navigator, Radio, RadioGroup, RadioList, RadioTileGroup, Select, Option, Sheet, Stack, Step, StepIndicator, Stepper, Switch, theme, Table, TableHead, TableBody, Tabs, Tab, TabList, TabPanel, Textarea, ThemeProvider, Tooltip, Typography, } from './components';
|
|
4
4
|
export type * from './components';
|
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
menuButtonClasses,
|
|
72
72
|
menuItemClasses as menuItemClasses2,
|
|
73
73
|
optionClasses,
|
|
74
|
-
radioClasses,
|
|
74
|
+
radioClasses as radioClasses2,
|
|
75
75
|
radioGroupClasses,
|
|
76
76
|
selectClasses,
|
|
77
77
|
switchClasses as switchClasses2,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
formHelperTextClasses,
|
|
84
84
|
gridClasses,
|
|
85
85
|
stackClasses,
|
|
86
|
-
sheetClasses,
|
|
86
|
+
sheetClasses as sheetClasses2,
|
|
87
87
|
modalClasses,
|
|
88
88
|
modalCloseClasses,
|
|
89
89
|
modalDialogClasses,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
stepperClasses,
|
|
148
148
|
Skeleton as Skeleton2,
|
|
149
149
|
skeletonClasses,
|
|
150
|
-
styled as
|
|
150
|
+
styled as styled31
|
|
151
151
|
} from "@mui/joy";
|
|
152
152
|
|
|
153
153
|
// src/components/Accordions/Accordions.tsx
|
|
@@ -2128,18 +2128,15 @@ import { FocusTrap, ClickAwayListener, Popper as Popper2 } from "@mui/base";
|
|
|
2128
2128
|
|
|
2129
2129
|
// src/components/Sheet/Sheet.tsx
|
|
2130
2130
|
import { Sheet as JoySheet } from "@mui/joy";
|
|
2131
|
-
|
|
2132
|
-
var MotionSheet = motion17(JoySheet);
|
|
2133
|
-
var Sheet = MotionSheet;
|
|
2134
|
-
Sheet.displayName = "Sheet";
|
|
2131
|
+
var Sheet = JoySheet;
|
|
2135
2132
|
|
|
2136
2133
|
// src/components/Sheet/index.ts
|
|
2137
2134
|
var Sheet_default = Sheet;
|
|
2138
2135
|
|
|
2139
2136
|
// src/components/DialogActions/DialogActions.tsx
|
|
2140
2137
|
import { DialogActions as JoyDialogActions, styled as styled9 } from "@mui/joy";
|
|
2141
|
-
import { motion as
|
|
2142
|
-
var MotionDialogActions =
|
|
2138
|
+
import { motion as motion17 } from "framer-motion";
|
|
2139
|
+
var MotionDialogActions = motion17(JoyDialogActions);
|
|
2143
2140
|
var StyledDialogActions = styled9(MotionDialogActions)(({ theme }) => ({
|
|
2144
2141
|
padding: theme.spacing(2),
|
|
2145
2142
|
gap: theme.spacing(2),
|
|
@@ -2495,8 +2492,8 @@ var DatePicker_default = DatePicker;
|
|
|
2495
2492
|
// src/components/Textarea/Textarea.tsx
|
|
2496
2493
|
import React18 from "react";
|
|
2497
2494
|
import { Textarea as JoyTextarea } from "@mui/joy";
|
|
2498
|
-
import { motion as
|
|
2499
|
-
var MotionTextarea =
|
|
2495
|
+
import { motion as motion18 } from "framer-motion";
|
|
2496
|
+
var MotionTextarea = motion18(JoyTextarea);
|
|
2500
2497
|
var Textarea = (props) => {
|
|
2501
2498
|
const {
|
|
2502
2499
|
label,
|
|
@@ -2549,8 +2546,8 @@ var Textarea_default = Textarea;
|
|
|
2549
2546
|
// src/components/Select/Select.tsx
|
|
2550
2547
|
import React19, { useMemo as useMemo7 } from "react";
|
|
2551
2548
|
import { Select as JoySelect, Option as JoyOption } from "@mui/joy";
|
|
2552
|
-
import { motion as
|
|
2553
|
-
var MotionOption =
|
|
2549
|
+
import { motion as motion19 } from "framer-motion";
|
|
2550
|
+
var MotionOption = motion19(JoyOption);
|
|
2554
2551
|
var Option = MotionOption;
|
|
2555
2552
|
Option.displayName = "Option";
|
|
2556
2553
|
function Select(props) {
|
|
@@ -2632,8 +2629,8 @@ import { Link } from "@mui/joy";
|
|
|
2632
2629
|
// src/components/Tooltip/Tooltip.tsx
|
|
2633
2630
|
import React20 from "react";
|
|
2634
2631
|
import { Tooltip as JoyTooltip } from "@mui/joy";
|
|
2635
|
-
import { motion as
|
|
2636
|
-
var MotionTooltip =
|
|
2632
|
+
import { motion as motion20 } from "framer-motion";
|
|
2633
|
+
var MotionTooltip = motion20(JoyTooltip);
|
|
2637
2634
|
var Tooltip = (props) => {
|
|
2638
2635
|
return /* @__PURE__ */ React20.createElement(MotionTooltip, { ...props });
|
|
2639
2636
|
};
|
|
@@ -4297,8 +4294,8 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
4297
4294
|
|
|
4298
4295
|
// src/components/DialogContent/DialogContent.tsx
|
|
4299
4296
|
import { DialogContent as JoyDialogContent, styled as styled15 } from "@mui/joy";
|
|
4300
|
-
import { motion as
|
|
4301
|
-
var MotionDialogContent =
|
|
4297
|
+
import { motion as motion21 } from "framer-motion";
|
|
4298
|
+
var MotionDialogContent = motion21(JoyDialogContent);
|
|
4302
4299
|
var StyledDialogContent = styled15(MotionDialogContent)(({ theme }) => ({
|
|
4303
4300
|
padding: theme.spacing(0, 6, 5)
|
|
4304
4301
|
}));
|
|
@@ -4310,8 +4307,8 @@ var DialogContent_default = DialogContent;
|
|
|
4310
4307
|
|
|
4311
4308
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
4312
4309
|
import { DialogTitle as JoyDialogTitle, styled as styled16 } from "@mui/joy";
|
|
4313
|
-
import { motion as
|
|
4314
|
-
var MotionDialogTitle =
|
|
4310
|
+
import { motion as motion22 } from "framer-motion";
|
|
4311
|
+
var MotionDialogTitle = motion22(JoyDialogTitle);
|
|
4315
4312
|
var StyledDialogTitle = styled16(MotionDialogTitle)(({ theme }) => ({
|
|
4316
4313
|
padding: theme.spacing(4, 6)
|
|
4317
4314
|
}));
|
|
@@ -4333,8 +4330,8 @@ import {
|
|
|
4333
4330
|
ModalOverflow as JoyModalOverflow,
|
|
4334
4331
|
styled as styled17
|
|
4335
4332
|
} from "@mui/joy";
|
|
4336
|
-
import { motion as
|
|
4337
|
-
var MotionModal =
|
|
4333
|
+
import { motion as motion23 } from "framer-motion";
|
|
4334
|
+
var MotionModal = motion23(JoyModal);
|
|
4338
4335
|
var Modal = MotionModal;
|
|
4339
4336
|
Modal.displayName = "Modal";
|
|
4340
4337
|
var StyledModalDialog = styled17(JoyModalDialog)({
|
|
@@ -4343,7 +4340,7 @@ var StyledModalDialog = styled17(JoyModalDialog)({
|
|
|
4343
4340
|
var ModalDialog = StyledModalDialog;
|
|
4344
4341
|
ModalDialog.displayName = "ModalDialog";
|
|
4345
4342
|
var ModalClose = JoyModalClose;
|
|
4346
|
-
var MotionModalOverflow =
|
|
4343
|
+
var MotionModalOverflow = motion23(JoyModalOverflow);
|
|
4347
4344
|
var ModalOverflow = MotionModalOverflow;
|
|
4348
4345
|
ModalOverflow.displayName = "ModalOverflow";
|
|
4349
4346
|
function ModalFrame(props) {
|
|
@@ -4369,8 +4366,8 @@ DialogFrame.displayName = "DialogFrame";
|
|
|
4369
4366
|
// src/components/Divider/Divider.tsx
|
|
4370
4367
|
import React29 from "react";
|
|
4371
4368
|
import { Divider as JoyDivider } from "@mui/joy";
|
|
4372
|
-
import { motion as
|
|
4373
|
-
var MotionDivider =
|
|
4369
|
+
import { motion as motion24 } from "framer-motion";
|
|
4370
|
+
var MotionDivider = motion24(JoyDivider);
|
|
4374
4371
|
var Divider = (props) => {
|
|
4375
4372
|
return /* @__PURE__ */ React29.createElement(MotionDivider, { ...props });
|
|
4376
4373
|
};
|
|
@@ -4435,11 +4432,11 @@ import React31, { useCallback as useCallback14 } from "react";
|
|
|
4435
4432
|
|
|
4436
4433
|
// src/components/Radio/Radio.tsx
|
|
4437
4434
|
import { Radio as JoyRadio, RadioGroup as JoyRadioGroup } from "@mui/joy";
|
|
4438
|
-
import { motion as
|
|
4439
|
-
var MotionRadio =
|
|
4435
|
+
import { motion as motion25 } from "framer-motion";
|
|
4436
|
+
var MotionRadio = motion25(JoyRadio);
|
|
4440
4437
|
var Radio = MotionRadio;
|
|
4441
4438
|
Radio.displayName = "Radio";
|
|
4442
|
-
var MotionRadioGroup =
|
|
4439
|
+
var MotionRadioGroup = motion25(JoyRadioGroup);
|
|
4443
4440
|
var RadioGroup = MotionRadioGroup;
|
|
4444
4441
|
RadioGroup.displayName = "RadioGroup";
|
|
4445
4442
|
|
|
@@ -5239,14 +5236,14 @@ var Uploader = React40.memo(
|
|
|
5239
5236
|
uploads.forEach((file) => {
|
|
5240
5237
|
const ext = file.name.split(".").pop() || "";
|
|
5241
5238
|
if (!fileExtension.test(ext)) {
|
|
5242
|
-
throw new Error("Please upload
|
|
5239
|
+
throw new Error("Please upload the correct file type.");
|
|
5243
5240
|
}
|
|
5244
5241
|
});
|
|
5245
5242
|
if (maxFileSize) {
|
|
5246
5243
|
uploads.forEach((file) => {
|
|
5247
5244
|
if (file.size > maxFileSize) {
|
|
5248
5245
|
throw new Error(
|
|
5249
|
-
`One or more
|
|
5246
|
+
`One or more files exceeded the maximum file size. Each file size must be ${getFileSize(
|
|
5250
5247
|
maxFileSize
|
|
5251
5248
|
)} or less.`
|
|
5252
5249
|
);
|
|
@@ -5255,7 +5252,7 @@ var Uploader = React40.memo(
|
|
|
5255
5252
|
}
|
|
5256
5253
|
const totalFileSize = [...files, ...uploads].reduce((acc, file) => acc + file.size, 0);
|
|
5257
5254
|
if (totalFileSize > maxFileTotalSize) {
|
|
5258
|
-
throw new Error(`
|
|
5255
|
+
throw new Error(`The total file size exceeds the maximum limit.`);
|
|
5259
5256
|
}
|
|
5260
5257
|
const newFiles = [...files, ...uploads];
|
|
5261
5258
|
if (maxCount && [...uploaded, ...newFiles].length > maxCount) {
|
|
@@ -6253,31 +6250,188 @@ function ProfileMenu(props) {
|
|
|
6253
6250
|
}
|
|
6254
6251
|
ProfileMenu.displayName = "ProfileMenu";
|
|
6255
6252
|
|
|
6256
|
-
// src/components/
|
|
6253
|
+
// src/components/RadioTileGroup/RadioTileGroup.tsx
|
|
6257
6254
|
import React50 from "react";
|
|
6255
|
+
import { styled as styled27, radioClasses, sheetClasses } from "@mui/joy";
|
|
6256
|
+
var RadioTileGroupRoot = styled27(RadioGroup, {
|
|
6257
|
+
name: "RadioTileGroup",
|
|
6258
|
+
slot: "root",
|
|
6259
|
+
shouldForwardProp: (prop) => prop !== "flex" && prop !== "columns"
|
|
6260
|
+
})(({ theme, flex, columns }) => ({
|
|
6261
|
+
flexDirection: "row",
|
|
6262
|
+
gap: theme.spacing(2),
|
|
6263
|
+
...flex && { flex: 1 },
|
|
6264
|
+
...columns && {
|
|
6265
|
+
display: "grid",
|
|
6266
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
6267
|
+
},
|
|
6268
|
+
[`& .${sheetClasses.root}.${radioClasses.disabled}`]: {
|
|
6269
|
+
borderColor: theme.palette.neutral.outlinedDisabledBorder
|
|
6270
|
+
},
|
|
6271
|
+
[`& .${radioClasses.root}`]: {
|
|
6272
|
+
[`& .${radioClasses.action}`]: {
|
|
6273
|
+
borderRadius: theme.radius.md
|
|
6274
|
+
},
|
|
6275
|
+
[`&.${radioClasses.checked}`]: {
|
|
6276
|
+
[`& .${radioClasses.action}`]: {
|
|
6277
|
+
inset: -1,
|
|
6278
|
+
border: "2px solid",
|
|
6279
|
+
borderColor: theme.palette.primary.outlinedColor
|
|
6280
|
+
},
|
|
6281
|
+
[`&.${radioClasses.disabled}`]: {
|
|
6282
|
+
[`& .${radioClasses.action}`]: {
|
|
6283
|
+
borderColor: theme.palette.neutral.outlinedBorder
|
|
6284
|
+
}
|
|
6285
|
+
}
|
|
6286
|
+
}
|
|
6287
|
+
}
|
|
6288
|
+
}));
|
|
6289
|
+
var RadioTileSheet = styled27(Sheet, {
|
|
6290
|
+
name: "RadioTileGroup",
|
|
6291
|
+
slot: "tile",
|
|
6292
|
+
shouldForwardProp: (prop) => prop !== "disabled" && prop !== "size" && prop !== "flex" && prop !== "textAlign"
|
|
6293
|
+
})(({
|
|
6294
|
+
theme,
|
|
6295
|
+
disabled,
|
|
6296
|
+
size = "sm",
|
|
6297
|
+
flex,
|
|
6298
|
+
textAlign
|
|
6299
|
+
}) => {
|
|
6300
|
+
const px = { sm: theme.spacing(3), md: theme.spacing(3), lg: theme.spacing(4) }[size];
|
|
6301
|
+
const py = { sm: theme.spacing(3), md: theme.spacing(4), lg: theme.spacing(4) }[size];
|
|
6302
|
+
return {
|
|
6303
|
+
borderRadius: theme.radius.md,
|
|
6304
|
+
display: "flex",
|
|
6305
|
+
gap: { sm: theme.spacing(2), md: theme.spacing(3), lg: theme.spacing(4) }[size],
|
|
6306
|
+
padding: `${py} ${px}`,
|
|
6307
|
+
// NOTE: Radio에도 Label과의 정렬을 맞추기 위해 중복 코드가 있지만 Icon과 RadioButton 의 정렬도 일치시켜야 해서 코드가 중복으로 존재할수밖에 없다.
|
|
6308
|
+
flexDirection: textAlign === "start" ? "row-reverse" : "column-reverse",
|
|
6309
|
+
justifyContent: textAlign === "start" ? "space-between" : "center",
|
|
6310
|
+
alignItems: "center",
|
|
6311
|
+
...flex ? { flex: 1 } : {},
|
|
6312
|
+
...disabled ? { borderColor: theme.palette.neutral.outlinedDisabledBorder } : {
|
|
6313
|
+
":hover": {
|
|
6314
|
+
backgroundColor: theme.palette.neutral.outlinedHoverBg
|
|
6315
|
+
},
|
|
6316
|
+
":active": {
|
|
6317
|
+
backgroundColor: theme.palette.neutral.outlinedActiveBg
|
|
6318
|
+
}
|
|
6319
|
+
}
|
|
6320
|
+
};
|
|
6321
|
+
});
|
|
6322
|
+
function RadioTileGroup(props) {
|
|
6323
|
+
const {
|
|
6324
|
+
options,
|
|
6325
|
+
value,
|
|
6326
|
+
defaultValue,
|
|
6327
|
+
onChange,
|
|
6328
|
+
name,
|
|
6329
|
+
disabled: allDisabled,
|
|
6330
|
+
sx,
|
|
6331
|
+
className,
|
|
6332
|
+
useIndicator,
|
|
6333
|
+
textAlign = "center",
|
|
6334
|
+
size = "sm",
|
|
6335
|
+
flex,
|
|
6336
|
+
columns
|
|
6337
|
+
} = props;
|
|
6338
|
+
return /* @__PURE__ */ React50.createElement(
|
|
6339
|
+
RadioTileGroupRoot,
|
|
6340
|
+
{
|
|
6341
|
+
overlay: true,
|
|
6342
|
+
name,
|
|
6343
|
+
className,
|
|
6344
|
+
value,
|
|
6345
|
+
defaultValue,
|
|
6346
|
+
onChange,
|
|
6347
|
+
flex,
|
|
6348
|
+
columns,
|
|
6349
|
+
sx
|
|
6350
|
+
},
|
|
6351
|
+
options.map((option) => /* @__PURE__ */ React50.createElement(
|
|
6352
|
+
RadioTileSheet,
|
|
6353
|
+
{
|
|
6354
|
+
key: option.value,
|
|
6355
|
+
variant: "outlined",
|
|
6356
|
+
disabled: allDisabled ?? option.disabled,
|
|
6357
|
+
size,
|
|
6358
|
+
flex,
|
|
6359
|
+
textAlign
|
|
6360
|
+
},
|
|
6361
|
+
/* @__PURE__ */ React50.createElement(
|
|
6362
|
+
Radio,
|
|
6363
|
+
{
|
|
6364
|
+
id: `${option.value}`,
|
|
6365
|
+
value: option.value,
|
|
6366
|
+
label: option.label,
|
|
6367
|
+
disableIcon: !useIndicator,
|
|
6368
|
+
disabled: allDisabled ?? option.disabled,
|
|
6369
|
+
size,
|
|
6370
|
+
slotProps: {
|
|
6371
|
+
root: {
|
|
6372
|
+
sx: {
|
|
6373
|
+
width: "100%",
|
|
6374
|
+
flexDirection: textAlign === "start" ? "row-reverse" : "column-reverse",
|
|
6375
|
+
justifyContent: textAlign === "start" ? "space-between" : "center",
|
|
6376
|
+
alignItems: "center",
|
|
6377
|
+
gap: { sm: 2, md: 3, lg: 4 }[size]
|
|
6378
|
+
}
|
|
6379
|
+
},
|
|
6380
|
+
label: ({ disabled }) => ({
|
|
6381
|
+
sx: (theme) => ({
|
|
6382
|
+
...theme.typography[{ sm: "body-sm", md: "body-md", lg: "body-lg" }[size]],
|
|
6383
|
+
color: disabled ? theme.palette.neutral.outlinedDisabledColor : theme.palette.neutral.outlinedColor
|
|
6384
|
+
})
|
|
6385
|
+
})
|
|
6386
|
+
}
|
|
6387
|
+
}
|
|
6388
|
+
),
|
|
6389
|
+
option.startDecorator && /* @__PURE__ */ React50.createElement(
|
|
6390
|
+
Box_default,
|
|
6391
|
+
{
|
|
6392
|
+
sx: {
|
|
6393
|
+
zIndex: 2,
|
|
6394
|
+
// HACK: Radio의 overlay가 decorator를 덮어버리기 때문에 문제 예방을 위해 적용해야 한다.
|
|
6395
|
+
width: { sm: "20px", md: "24px", lg: "24px" }[size],
|
|
6396
|
+
height: { sm: "20px", md: "24px", lg: "24px" }[size],
|
|
6397
|
+
"& > .MuiSvgIcon-root": {
|
|
6398
|
+
width: "inherit",
|
|
6399
|
+
height: "inherit"
|
|
6400
|
+
}
|
|
6401
|
+
}
|
|
6402
|
+
},
|
|
6403
|
+
option.startDecorator
|
|
6404
|
+
)
|
|
6405
|
+
))
|
|
6406
|
+
);
|
|
6407
|
+
}
|
|
6408
|
+
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6409
|
+
|
|
6410
|
+
// src/components/RadioList/RadioList.tsx
|
|
6411
|
+
import React51 from "react";
|
|
6258
6412
|
function RadioList(props) {
|
|
6259
6413
|
const { items, ...innerProps } = props;
|
|
6260
|
-
return /* @__PURE__ */
|
|
6414
|
+
return /* @__PURE__ */ React51.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React51.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
6261
6415
|
}
|
|
6262
6416
|
RadioList.displayName = "RadioList";
|
|
6263
6417
|
|
|
6264
6418
|
// src/components/Stepper/Stepper.tsx
|
|
6265
|
-
import
|
|
6419
|
+
import React52 from "react";
|
|
6266
6420
|
import {
|
|
6267
6421
|
Stepper as JoyStepper,
|
|
6268
6422
|
Step as JoyStep,
|
|
6269
6423
|
StepIndicator as JoyStepIndicator,
|
|
6270
6424
|
stepClasses,
|
|
6271
6425
|
stepIndicatorClasses,
|
|
6272
|
-
styled as
|
|
6426
|
+
styled as styled28
|
|
6273
6427
|
} from "@mui/joy";
|
|
6274
6428
|
import CheckIcon from "@mui/icons-material/Check";
|
|
6275
|
-
import { motion as
|
|
6276
|
-
var Step =
|
|
6429
|
+
import { motion as motion26 } from "framer-motion";
|
|
6430
|
+
var Step = styled28(JoyStep)({});
|
|
6277
6431
|
Step.displayName = "Step";
|
|
6278
|
-
var StepIndicator =
|
|
6432
|
+
var StepIndicator = styled28(JoyStepIndicator)({});
|
|
6279
6433
|
StepIndicator.displayName = "StepIndicator";
|
|
6280
|
-
var StyledStepper =
|
|
6434
|
+
var StyledStepper = styled28(JoyStepper)(({ theme }) => ({
|
|
6281
6435
|
"--StepIndicator-size": "24px",
|
|
6282
6436
|
"--Step-gap": theme.spacing(2),
|
|
6283
6437
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -6285,7 +6439,7 @@ var StyledStepper = styled27(JoyStepper)(({ theme }) => ({
|
|
|
6285
6439
|
fontSize: "var(--ceed-fontSize-xs)"
|
|
6286
6440
|
}
|
|
6287
6441
|
}));
|
|
6288
|
-
var MotionStepper =
|
|
6442
|
+
var MotionStepper = motion26(StyledStepper);
|
|
6289
6443
|
function Stepper(props) {
|
|
6290
6444
|
const {
|
|
6291
6445
|
steps,
|
|
@@ -6295,7 +6449,7 @@ function Stepper(props) {
|
|
|
6295
6449
|
inactiveLineColor = "neutral.300",
|
|
6296
6450
|
activeStep
|
|
6297
6451
|
} = props;
|
|
6298
|
-
return /* @__PURE__ */
|
|
6452
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6299
6453
|
MotionStepper,
|
|
6300
6454
|
{
|
|
6301
6455
|
sx: (theme) => ({
|
|
@@ -6329,16 +6483,16 @@ function Stepper(props) {
|
|
|
6329
6483
|
const completed = activeStep > i + 1;
|
|
6330
6484
|
const disabled = activeStep < i + 1;
|
|
6331
6485
|
const hasContent = step.label || step.extraContent;
|
|
6332
|
-
return /* @__PURE__ */
|
|
6486
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6333
6487
|
Step,
|
|
6334
6488
|
{
|
|
6335
6489
|
key: `step-${i}`,
|
|
6336
|
-
indicator: /* @__PURE__ */
|
|
6490
|
+
indicator: /* @__PURE__ */ React52.createElement(StepIndicator, { variant: "solid", color: "primary" }, completed ? /* @__PURE__ */ React52.createElement(CheckIcon, null) : step.indicatorContent),
|
|
6337
6491
|
active,
|
|
6338
6492
|
completed,
|
|
6339
6493
|
disabled
|
|
6340
6494
|
},
|
|
6341
|
-
hasContent && /* @__PURE__ */
|
|
6495
|
+
hasContent && /* @__PURE__ */ React52.createElement(Stack_default, null, step.label && /* @__PURE__ */ React52.createElement(Typography_default, { level: "title-sm" }, step.label), step.extraContent && /* @__PURE__ */ React52.createElement(Typography_default, { level: "body-xs" }, step.extraContent))
|
|
6342
6496
|
);
|
|
6343
6497
|
})
|
|
6344
6498
|
);
|
|
@@ -6346,11 +6500,11 @@ function Stepper(props) {
|
|
|
6346
6500
|
Stepper.displayName = "Stepper";
|
|
6347
6501
|
|
|
6348
6502
|
// src/components/Switch/Switch.tsx
|
|
6349
|
-
import
|
|
6350
|
-
import { Switch as JoySwitch, styled as
|
|
6351
|
-
import { motion as
|
|
6352
|
-
var MotionSwitch =
|
|
6353
|
-
var StyledThumb =
|
|
6503
|
+
import React53 from "react";
|
|
6504
|
+
import { Switch as JoySwitch, styled as styled29, switchClasses } from "@mui/joy";
|
|
6505
|
+
import { motion as motion27 } from "framer-motion";
|
|
6506
|
+
var MotionSwitch = motion27(JoySwitch);
|
|
6507
|
+
var StyledThumb = styled29(motion27.div)({
|
|
6354
6508
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
6355
6509
|
display: "inline-flex",
|
|
6356
6510
|
justifyContent: "center",
|
|
@@ -6368,14 +6522,14 @@ var StyledThumb = styled28(motion28.div)({
|
|
|
6368
6522
|
right: "var(--Switch-thumbOffset)"
|
|
6369
6523
|
}
|
|
6370
6524
|
});
|
|
6371
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
6525
|
+
var Thumb = (props) => /* @__PURE__ */ React53.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
6372
6526
|
var spring = {
|
|
6373
6527
|
type: "spring",
|
|
6374
6528
|
stiffness: 700,
|
|
6375
6529
|
damping: 30
|
|
6376
6530
|
};
|
|
6377
6531
|
var Switch = (props) => {
|
|
6378
|
-
return /* @__PURE__ */
|
|
6532
|
+
return /* @__PURE__ */ React53.createElement(
|
|
6379
6533
|
MotionSwitch,
|
|
6380
6534
|
{
|
|
6381
6535
|
...props,
|
|
@@ -6389,21 +6543,21 @@ var Switch = (props) => {
|
|
|
6389
6543
|
Switch.displayName = "Switch";
|
|
6390
6544
|
|
|
6391
6545
|
// src/components/Tabs/Tabs.tsx
|
|
6392
|
-
import
|
|
6546
|
+
import React54, { forwardRef as forwardRef11 } from "react";
|
|
6393
6547
|
import {
|
|
6394
6548
|
Tabs as JoyTabs,
|
|
6395
6549
|
Tab as JoyTab,
|
|
6396
6550
|
TabList as JoyTabList,
|
|
6397
6551
|
TabPanel as JoyTabPanel,
|
|
6398
|
-
styled as
|
|
6552
|
+
styled as styled30,
|
|
6399
6553
|
tabClasses
|
|
6400
6554
|
} from "@mui/joy";
|
|
6401
|
-
var StyledTabs =
|
|
6555
|
+
var StyledTabs = styled30(JoyTabs)(({ theme }) => ({
|
|
6402
6556
|
backgroundColor: theme.palette.background.body
|
|
6403
6557
|
}));
|
|
6404
6558
|
var Tabs = StyledTabs;
|
|
6405
6559
|
Tabs.displayName = "Tabs";
|
|
6406
|
-
var StyledTab =
|
|
6560
|
+
var StyledTab = styled30(JoyTab)(({ theme }) => ({
|
|
6407
6561
|
gap: theme.spacing(2),
|
|
6408
6562
|
[`&:not(.${tabClasses.selected})`]: {
|
|
6409
6563
|
color: theme.palette.neutral[700]
|
|
@@ -6413,14 +6567,14 @@ var StyledTab = styled29(JoyTab)(({ theme }) => ({
|
|
|
6413
6567
|
}
|
|
6414
6568
|
}));
|
|
6415
6569
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
6416
|
-
return /* @__PURE__ */
|
|
6570
|
+
return /* @__PURE__ */ React54.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
6417
6571
|
});
|
|
6418
6572
|
Tab.displayName = "Tab";
|
|
6419
6573
|
var TabList = JoyTabList;
|
|
6420
6574
|
var TabPanel = JoyTabPanel;
|
|
6421
6575
|
|
|
6422
6576
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
6423
|
-
import
|
|
6577
|
+
import React55 from "react";
|
|
6424
6578
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, inputClasses } from "@mui/joy";
|
|
6425
6579
|
var colorScheme = {
|
|
6426
6580
|
palette: {
|
|
@@ -6699,7 +6853,7 @@ var defaultTheme = extendTheme({
|
|
|
6699
6853
|
});
|
|
6700
6854
|
function ThemeProvider(props) {
|
|
6701
6855
|
const theme = props.theme || defaultTheme;
|
|
6702
|
-
return /* @__PURE__ */
|
|
6856
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React55.createElement(CssBaseline, null), props.children));
|
|
6703
6857
|
}
|
|
6704
6858
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6705
6859
|
export {
|
|
@@ -6781,6 +6935,7 @@ export {
|
|
|
6781
6935
|
Radio,
|
|
6782
6936
|
RadioGroup,
|
|
6783
6937
|
RadioList,
|
|
6938
|
+
RadioTileGroup,
|
|
6784
6939
|
Select,
|
|
6785
6940
|
Sheet,
|
|
6786
6941
|
Skeleton2 as Skeleton,
|
|
@@ -6855,17 +7010,17 @@ export {
|
|
|
6855
7010
|
modalDialogClasses,
|
|
6856
7011
|
modalOverflowClasses,
|
|
6857
7012
|
optionClasses,
|
|
6858
|
-
radioClasses,
|
|
7013
|
+
radioClasses2 as radioClasses,
|
|
6859
7014
|
radioGroupClasses,
|
|
6860
7015
|
selectClasses,
|
|
6861
|
-
sheetClasses,
|
|
7016
|
+
sheetClasses2 as sheetClasses,
|
|
6862
7017
|
skeletonClasses,
|
|
6863
7018
|
sliderClasses,
|
|
6864
7019
|
stackClasses,
|
|
6865
7020
|
stepButtonClasses,
|
|
6866
7021
|
stepClasses2 as stepClasses,
|
|
6867
7022
|
stepperClasses,
|
|
6868
|
-
|
|
7023
|
+
styled31 as styled,
|
|
6869
7024
|
switchClasses2 as switchClasses,
|
|
6870
7025
|
tabListClasses,
|
|
6871
7026
|
tabPanelClasses,
|