@ceed/ads 1.12.2 → 1.13.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/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 -171
- package/dist/index.d.ts +1 -1
- package/dist/index.js +215 -57
- package/framer/index.js +42 -42
- package/package.json +1 -1
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
|
|
|
@@ -6253,31 +6250,191 @@ 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
|
+
color: "inherit",
|
|
6398
|
+
"& > .MuiSvgIcon-root": {
|
|
6399
|
+
width: "inherit",
|
|
6400
|
+
height: "inherit",
|
|
6401
|
+
fill: "currentColor",
|
|
6402
|
+
color: "inherit"
|
|
6403
|
+
}
|
|
6404
|
+
}
|
|
6405
|
+
},
|
|
6406
|
+
option.startDecorator
|
|
6407
|
+
)
|
|
6408
|
+
))
|
|
6409
|
+
);
|
|
6410
|
+
}
|
|
6411
|
+
RadioTileGroup.displayName = "RadioTileGroup";
|
|
6412
|
+
|
|
6413
|
+
// src/components/RadioList/RadioList.tsx
|
|
6414
|
+
import React51 from "react";
|
|
6258
6415
|
function RadioList(props) {
|
|
6259
6416
|
const { items, ...innerProps } = props;
|
|
6260
|
-
return /* @__PURE__ */
|
|
6417
|
+
return /* @__PURE__ */ React51.createElement(RadioGroup, { ...innerProps }, items.map((item) => /* @__PURE__ */ React51.createElement(Radio, { key: `${item.value}`, value: item.value, label: item.label })));
|
|
6261
6418
|
}
|
|
6262
6419
|
RadioList.displayName = "RadioList";
|
|
6263
6420
|
|
|
6264
6421
|
// src/components/Stepper/Stepper.tsx
|
|
6265
|
-
import
|
|
6422
|
+
import React52 from "react";
|
|
6266
6423
|
import {
|
|
6267
6424
|
Stepper as JoyStepper,
|
|
6268
6425
|
Step as JoyStep,
|
|
6269
6426
|
StepIndicator as JoyStepIndicator,
|
|
6270
6427
|
stepClasses,
|
|
6271
6428
|
stepIndicatorClasses,
|
|
6272
|
-
styled as
|
|
6429
|
+
styled as styled28
|
|
6273
6430
|
} from "@mui/joy";
|
|
6274
6431
|
import CheckIcon from "@mui/icons-material/Check";
|
|
6275
|
-
import { motion as
|
|
6276
|
-
var Step =
|
|
6432
|
+
import { motion as motion26 } from "framer-motion";
|
|
6433
|
+
var Step = styled28(JoyStep)({});
|
|
6277
6434
|
Step.displayName = "Step";
|
|
6278
|
-
var StepIndicator =
|
|
6435
|
+
var StepIndicator = styled28(JoyStepIndicator)({});
|
|
6279
6436
|
StepIndicator.displayName = "StepIndicator";
|
|
6280
|
-
var StyledStepper =
|
|
6437
|
+
var StyledStepper = styled28(JoyStepper)(({ theme }) => ({
|
|
6281
6438
|
"--StepIndicator-size": "24px",
|
|
6282
6439
|
"--Step-gap": theme.spacing(2),
|
|
6283
6440
|
"--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
|
|
@@ -6285,7 +6442,7 @@ var StyledStepper = styled27(JoyStepper)(({ theme }) => ({
|
|
|
6285
6442
|
fontSize: "var(--ceed-fontSize-xs)"
|
|
6286
6443
|
}
|
|
6287
6444
|
}));
|
|
6288
|
-
var MotionStepper =
|
|
6445
|
+
var MotionStepper = motion26(StyledStepper);
|
|
6289
6446
|
function Stepper(props) {
|
|
6290
6447
|
const {
|
|
6291
6448
|
steps,
|
|
@@ -6295,7 +6452,7 @@ function Stepper(props) {
|
|
|
6295
6452
|
inactiveLineColor = "neutral.300",
|
|
6296
6453
|
activeStep
|
|
6297
6454
|
} = props;
|
|
6298
|
-
return /* @__PURE__ */
|
|
6455
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6299
6456
|
MotionStepper,
|
|
6300
6457
|
{
|
|
6301
6458
|
sx: (theme) => ({
|
|
@@ -6329,16 +6486,16 @@ function Stepper(props) {
|
|
|
6329
6486
|
const completed = activeStep > i + 1;
|
|
6330
6487
|
const disabled = activeStep < i + 1;
|
|
6331
6488
|
const hasContent = step.label || step.extraContent;
|
|
6332
|
-
return /* @__PURE__ */
|
|
6489
|
+
return /* @__PURE__ */ React52.createElement(
|
|
6333
6490
|
Step,
|
|
6334
6491
|
{
|
|
6335
6492
|
key: `step-${i}`,
|
|
6336
|
-
indicator: /* @__PURE__ */
|
|
6493
|
+
indicator: /* @__PURE__ */ React52.createElement(StepIndicator, { variant: "solid", color: "primary" }, completed ? /* @__PURE__ */ React52.createElement(CheckIcon, null) : step.indicatorContent),
|
|
6337
6494
|
active,
|
|
6338
6495
|
completed,
|
|
6339
6496
|
disabled
|
|
6340
6497
|
},
|
|
6341
|
-
hasContent && /* @__PURE__ */
|
|
6498
|
+
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
6499
|
);
|
|
6343
6500
|
})
|
|
6344
6501
|
);
|
|
@@ -6346,11 +6503,11 @@ function Stepper(props) {
|
|
|
6346
6503
|
Stepper.displayName = "Stepper";
|
|
6347
6504
|
|
|
6348
6505
|
// src/components/Switch/Switch.tsx
|
|
6349
|
-
import
|
|
6350
|
-
import { Switch as JoySwitch, styled as
|
|
6351
|
-
import { motion as
|
|
6352
|
-
var MotionSwitch =
|
|
6353
|
-
var StyledThumb =
|
|
6506
|
+
import React53 from "react";
|
|
6507
|
+
import { Switch as JoySwitch, styled as styled29, switchClasses } from "@mui/joy";
|
|
6508
|
+
import { motion as motion27 } from "framer-motion";
|
|
6509
|
+
var MotionSwitch = motion27(JoySwitch);
|
|
6510
|
+
var StyledThumb = styled29(motion27.div)({
|
|
6354
6511
|
"--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
|
|
6355
6512
|
display: "inline-flex",
|
|
6356
6513
|
justifyContent: "center",
|
|
@@ -6368,14 +6525,14 @@ var StyledThumb = styled28(motion28.div)({
|
|
|
6368
6525
|
right: "var(--Switch-thumbOffset)"
|
|
6369
6526
|
}
|
|
6370
6527
|
});
|
|
6371
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
6528
|
+
var Thumb = (props) => /* @__PURE__ */ React53.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
6372
6529
|
var spring = {
|
|
6373
6530
|
type: "spring",
|
|
6374
6531
|
stiffness: 700,
|
|
6375
6532
|
damping: 30
|
|
6376
6533
|
};
|
|
6377
6534
|
var Switch = (props) => {
|
|
6378
|
-
return /* @__PURE__ */
|
|
6535
|
+
return /* @__PURE__ */ React53.createElement(
|
|
6379
6536
|
MotionSwitch,
|
|
6380
6537
|
{
|
|
6381
6538
|
...props,
|
|
@@ -6389,21 +6546,21 @@ var Switch = (props) => {
|
|
|
6389
6546
|
Switch.displayName = "Switch";
|
|
6390
6547
|
|
|
6391
6548
|
// src/components/Tabs/Tabs.tsx
|
|
6392
|
-
import
|
|
6549
|
+
import React54, { forwardRef as forwardRef11 } from "react";
|
|
6393
6550
|
import {
|
|
6394
6551
|
Tabs as JoyTabs,
|
|
6395
6552
|
Tab as JoyTab,
|
|
6396
6553
|
TabList as JoyTabList,
|
|
6397
6554
|
TabPanel as JoyTabPanel,
|
|
6398
|
-
styled as
|
|
6555
|
+
styled as styled30,
|
|
6399
6556
|
tabClasses
|
|
6400
6557
|
} from "@mui/joy";
|
|
6401
|
-
var StyledTabs =
|
|
6558
|
+
var StyledTabs = styled30(JoyTabs)(({ theme }) => ({
|
|
6402
6559
|
backgroundColor: theme.palette.background.body
|
|
6403
6560
|
}));
|
|
6404
6561
|
var Tabs = StyledTabs;
|
|
6405
6562
|
Tabs.displayName = "Tabs";
|
|
6406
|
-
var StyledTab =
|
|
6563
|
+
var StyledTab = styled30(JoyTab)(({ theme }) => ({
|
|
6407
6564
|
gap: theme.spacing(2),
|
|
6408
6565
|
[`&:not(.${tabClasses.selected})`]: {
|
|
6409
6566
|
color: theme.palette.neutral[700]
|
|
@@ -6413,14 +6570,14 @@ var StyledTab = styled29(JoyTab)(({ theme }) => ({
|
|
|
6413
6570
|
}
|
|
6414
6571
|
}));
|
|
6415
6572
|
var Tab = forwardRef11(function Tab2({ startDecorator, endDecorator, children, ...props }, ref) {
|
|
6416
|
-
return /* @__PURE__ */
|
|
6573
|
+
return /* @__PURE__ */ React54.createElement(StyledTab, { ...props, ref }, startDecorator, children, endDecorator);
|
|
6417
6574
|
});
|
|
6418
6575
|
Tab.displayName = "Tab";
|
|
6419
6576
|
var TabList = JoyTabList;
|
|
6420
6577
|
var TabPanel = JoyTabPanel;
|
|
6421
6578
|
|
|
6422
6579
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
6423
|
-
import
|
|
6580
|
+
import React55 from "react";
|
|
6424
6581
|
import { CssBaseline, CssVarsProvider, checkboxClasses, extendTheme, inputClasses } from "@mui/joy";
|
|
6425
6582
|
var colorScheme = {
|
|
6426
6583
|
palette: {
|
|
@@ -6699,7 +6856,7 @@ var defaultTheme = extendTheme({
|
|
|
6699
6856
|
});
|
|
6700
6857
|
function ThemeProvider(props) {
|
|
6701
6858
|
const theme = props.theme || defaultTheme;
|
|
6702
|
-
return /* @__PURE__ */
|
|
6859
|
+
return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(CssVarsProvider, { theme }, /* @__PURE__ */ React55.createElement(CssBaseline, null), props.children));
|
|
6703
6860
|
}
|
|
6704
6861
|
ThemeProvider.displayName = "ThemeProvider";
|
|
6705
6862
|
export {
|
|
@@ -6781,6 +6938,7 @@ export {
|
|
|
6781
6938
|
Radio,
|
|
6782
6939
|
RadioGroup,
|
|
6783
6940
|
RadioList,
|
|
6941
|
+
RadioTileGroup,
|
|
6784
6942
|
Select,
|
|
6785
6943
|
Sheet,
|
|
6786
6944
|
Skeleton2 as Skeleton,
|
|
@@ -6855,17 +7013,17 @@ export {
|
|
|
6855
7013
|
modalDialogClasses,
|
|
6856
7014
|
modalOverflowClasses,
|
|
6857
7015
|
optionClasses,
|
|
6858
|
-
radioClasses,
|
|
7016
|
+
radioClasses2 as radioClasses,
|
|
6859
7017
|
radioGroupClasses,
|
|
6860
7018
|
selectClasses,
|
|
6861
|
-
sheetClasses,
|
|
7019
|
+
sheetClasses2 as sheetClasses,
|
|
6862
7020
|
skeletonClasses,
|
|
6863
7021
|
sliderClasses,
|
|
6864
7022
|
stackClasses,
|
|
6865
7023
|
stepButtonClasses,
|
|
6866
7024
|
stepClasses2 as stepClasses,
|
|
6867
7025
|
stepperClasses,
|
|
6868
|
-
|
|
7026
|
+
styled31 as styled,
|
|
6869
7027
|
switchClasses2 as switchClasses,
|
|
6870
7028
|
tabListClasses,
|
|
6871
7029
|
tabPanelClasses,
|