@ceed/cds 1.2.4-next.2 → 1.2.4

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/index.cjs CHANGED
@@ -4129,53 +4129,23 @@ var import_react26 = __toESM(require("react"));
4129
4129
  var import_joy34 = require("@mui/joy");
4130
4130
  var import_framer_motion21 = require("framer-motion");
4131
4131
  var MotionDrawer = (0, import_framer_motion21.motion)(import_joy34.Drawer);
4132
+ var StyledDrawer = (0, import_joy34.styled)(MotionDrawer)(({ theme, size = "md" }) => ({
4133
+ "--Drawer-horizontalSize": {
4134
+ sm: "360px",
4135
+ md: "600px",
4136
+ lg: "900px"
4137
+ }[size],
4138
+ [`& .${import_joy34.drawerClasses.content}`]: {
4139
+ bgcolor: "transparent",
4140
+ boxShadow: "none",
4141
+ [theme.breakpoints.down("md")]: {
4142
+ width: "100%"
4143
+ }
4144
+ }
4145
+ }));
4132
4146
  var Drawer = (props) => {
4133
- const { children, size = "md", ...innerProps } = props;
4134
- const theme = (0, import_joy34.useTheme)();
4135
- return /* @__PURE__ */ import_react26.default.createElement(
4136
- MotionDrawer,
4137
- {
4138
- ...innerProps,
4139
- size,
4140
- slotProps: {
4141
- ...innerProps.slotProps,
4142
- content: {
4143
- ...innerProps.slotProps?.content,
4144
- sx: {
4145
- // @ts-expect-error: slotProps 는 fn을 넘길수 있어서 인터페이스 에러가 발생하지만 우리는 커스텀을 이정도로 허용하지 않을것이라 무시하고 쓴다.
4146
- ...innerProps.slotProps?.content?.sx,
4147
- bgcolor: "transparent",
4148
- boxShadow: "none",
4149
- [theme.breakpoints.down("md")]: {
4150
- width: "100%"
4151
- }
4152
- }
4153
- },
4154
- // HACK: MUI 5 & 6 버전을 함께 사용하면서 @mui/base & @mui/system 의 참조가 꼬인다. 전부 mui 6 기반으로 업그레이드 하기 전까지는 임시로 아래와 같이 복제하여 사용한다.
4155
- root: {
4156
- ...innerProps.slotProps?.root,
4157
- sx: {
4158
- // @ts-expect-error: slotProps 는 fn을 넘길수 있어서 인터페이스 에러가 발생하지만 우리는 커스텀을 이정도로 허용하지 않을것이라 무시하고 쓴다.
4159
- ...innerProps.slotProps?.root?.sx,
4160
- "--Drawer-horizontalSize": {
4161
- sm: "360px",
4162
- md: "600px",
4163
- lg: "900px"
4164
- }[size]
4165
- }
4166
- }
4167
- },
4168
- sx: {
4169
- ...props.sx,
4170
- "--Drawer-horizontalSize": {
4171
- sm: "360px",
4172
- md: "600px",
4173
- lg: "900px"
4174
- }[size]
4175
- }
4176
- },
4177
- children
4178
- );
4147
+ const { children, ...innerProps } = props;
4148
+ return /* @__PURE__ */ import_react26.default.createElement(StyledDrawer, { ...innerProps }, children);
4179
4149
  };
4180
4150
  Drawer.displayName = "Drawer";
4181
4151
 
package/dist/index.js CHANGED
@@ -56,7 +56,7 @@ var init_rehype_accent = __esm({
56
56
 
57
57
  // src/index.ts
58
58
  import {
59
- useTheme as useTheme3,
59
+ useTheme as useTheme2,
60
60
  useColorScheme,
61
61
  useThemeProps as useThemeProps9,
62
62
  ButtonGroup,
@@ -124,7 +124,7 @@ import {
124
124
  chipClasses,
125
125
  CircularProgress as CircularProgress2,
126
126
  circularProgressClasses,
127
- drawerClasses,
127
+ drawerClasses as drawerClasses2,
128
128
  LinearProgress as LinearProgress2,
129
129
  linearProgressClasses,
130
130
  List,
@@ -4094,64 +4094,38 @@ DateRangePicker.displayName = "DateRangePicker";
4094
4094
 
4095
4095
  // src/components/Drawer/Drawer.tsx
4096
4096
  import React24 from "react";
4097
- import { Drawer as JoyDrawer, useTheme as useTheme2 } from "@mui/joy";
4097
+ import {
4098
+ Drawer as JoyDrawer,
4099
+ styled as styled13,
4100
+ drawerClasses
4101
+ } from "@mui/joy";
4098
4102
  import { motion as motion21 } from "framer-motion";
4099
4103
  var MotionDrawer = motion21(JoyDrawer);
4104
+ var StyledDrawer = styled13(MotionDrawer)(({ theme, size = "md" }) => ({
4105
+ "--Drawer-horizontalSize": {
4106
+ sm: "360px",
4107
+ md: "600px",
4108
+ lg: "900px"
4109
+ }[size],
4110
+ [`& .${drawerClasses.content}`]: {
4111
+ bgcolor: "transparent",
4112
+ boxShadow: "none",
4113
+ [theme.breakpoints.down("md")]: {
4114
+ width: "100%"
4115
+ }
4116
+ }
4117
+ }));
4100
4118
  var Drawer = (props) => {
4101
- const { children, size = "md", ...innerProps } = props;
4102
- const theme = useTheme2();
4103
- return /* @__PURE__ */ React24.createElement(
4104
- MotionDrawer,
4105
- {
4106
- ...innerProps,
4107
- size,
4108
- slotProps: {
4109
- ...innerProps.slotProps,
4110
- content: {
4111
- ...innerProps.slotProps?.content,
4112
- sx: {
4113
- // @ts-expect-error: slotProps 는 fn을 넘길수 있어서 인터페이스 에러가 발생하지만 우리는 커스텀을 이정도로 허용하지 않을것이라 무시하고 쓴다.
4114
- ...innerProps.slotProps?.content?.sx,
4115
- bgcolor: "transparent",
4116
- boxShadow: "none",
4117
- [theme.breakpoints.down("md")]: {
4118
- width: "100%"
4119
- }
4120
- }
4121
- },
4122
- // HACK: MUI 5 & 6 버전을 함께 사용하면서 @mui/base & @mui/system 의 참조가 꼬인다. 전부 mui 6 기반으로 업그레이드 하기 전까지는 임시로 아래와 같이 복제하여 사용한다.
4123
- root: {
4124
- ...innerProps.slotProps?.root,
4125
- sx: {
4126
- // @ts-expect-error: slotProps 는 fn을 넘길수 있어서 인터페이스 에러가 발생하지만 우리는 커스텀을 이정도로 허용하지 않을것이라 무시하고 쓴다.
4127
- ...innerProps.slotProps?.root?.sx,
4128
- "--Drawer-horizontalSize": {
4129
- sm: "360px",
4130
- md: "600px",
4131
- lg: "900px"
4132
- }[size]
4133
- }
4134
- }
4135
- },
4136
- sx: {
4137
- ...props.sx,
4138
- "--Drawer-horizontalSize": {
4139
- sm: "360px",
4140
- md: "600px",
4141
- lg: "900px"
4142
- }[size]
4143
- }
4144
- },
4145
- children
4146
- );
4119
+ const { children, ...innerProps } = props;
4120
+ return /* @__PURE__ */ React24.createElement(StyledDrawer, { ...innerProps }, children);
4147
4121
  };
4148
4122
  Drawer.displayName = "Drawer";
4149
4123
 
4150
4124
  // src/components/DialogContent/DialogContent.tsx
4151
- import { DialogContent as JoyDialogContent, styled as styled13 } from "@mui/joy";
4125
+ import { DialogContent as JoyDialogContent, styled as styled14 } from "@mui/joy";
4152
4126
  import { motion as motion22 } from "framer-motion";
4153
4127
  var MotionDialogContent = motion22(JoyDialogContent);
4154
- var StyledDialogContent = styled13(MotionDialogContent)(({ theme }) => ({
4128
+ var StyledDialogContent = styled14(MotionDialogContent)(({ theme }) => ({
4155
4129
  padding: theme.spacing(0, 6, 5)
4156
4130
  }));
4157
4131
  var DialogContent = StyledDialogContent;
@@ -4161,10 +4135,10 @@ DialogContent.displayName = "DialogContent";
4161
4135
  var DialogContent_default = DialogContent;
4162
4136
 
4163
4137
  // src/components/DialogTitle/DialogTitle.tsx
4164
- import { DialogTitle as JoyDialogTitle, styled as styled14 } from "@mui/joy";
4138
+ import { DialogTitle as JoyDialogTitle, styled as styled15 } from "@mui/joy";
4165
4139
  import { motion as motion23 } from "framer-motion";
4166
4140
  var MotionDialogTitle = motion23(JoyDialogTitle);
4167
- var StyledDialogTitle = styled14(MotionDialogTitle)(({ theme }) => ({
4141
+ var StyledDialogTitle = styled15(MotionDialogTitle)(({ theme }) => ({
4168
4142
  padding: theme.spacing(4, 6)
4169
4143
  }));
4170
4144
  var DialogTitle = StyledDialogTitle;
@@ -4183,18 +4157,18 @@ import {
4183
4157
  ModalDialog as JoyModalDialog,
4184
4158
  ModalClose as JoyModalClose,
4185
4159
  ModalOverflow as JoyModalOverflow,
4186
- styled as styled15
4160
+ styled as styled16
4187
4161
  } from "@mui/joy";
4188
4162
  import { motion as motion24 } from "framer-motion";
4189
4163
  var MotionModal = motion24(JoyModal);
4190
4164
  var Modal = MotionModal;
4191
4165
  Modal.displayName = "Modal";
4192
- var StyledModalDialog = styled15(JoyModalDialog)({
4166
+ var StyledModalDialog = styled16(JoyModalDialog)({
4193
4167
  padding: 0
4194
4168
  });
4195
4169
  var ModalDialog = StyledModalDialog;
4196
4170
  ModalDialog.displayName = "ModalDialog";
4197
- var MotionModalClose = styled15(motion24(JoyModalClose))(({ theme }) => ({
4171
+ var MotionModalClose = styled16(motion24(JoyModalClose))(({ theme }) => ({
4198
4172
  top: theme.spacing(3),
4199
4173
  right: theme.spacing(6)
4200
4174
  }));
@@ -4210,8 +4184,8 @@ function ModalFrame(props) {
4210
4184
  ModalFrame.displayName = "ModalFrame";
4211
4185
 
4212
4186
  // src/components/DialogFrame/DialogFrame.tsx
4213
- import { styled as styled16 } from "@mui/joy";
4214
- var StyledDialogFrame = styled16(ModalDialog, {
4187
+ import { styled as styled17 } from "@mui/joy";
4188
+ var StyledDialogFrame = styled17(ModalDialog, {
4215
4189
  name: "Dialog",
4216
4190
  slot: "Root"
4217
4191
  })({
@@ -4425,15 +4399,15 @@ import React31, {
4425
4399
  } from "react";
4426
4400
  import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
4427
4401
  import CalendarTodayIcon3 from "@mui/icons-material/CalendarToday";
4428
- import { styled as styled17, useThemeProps as useThemeProps6 } from "@mui/joy";
4402
+ import { styled as styled18, useThemeProps as useThemeProps6 } from "@mui/joy";
4429
4403
  import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper4 } from "@mui/base";
4430
- var StyledPopper3 = styled17(Popper4, {
4404
+ var StyledPopper3 = styled18(Popper4, {
4431
4405
  name: "MonthPicker",
4432
4406
  slot: "popper"
4433
4407
  })(({ theme }) => ({
4434
4408
  zIndex: theme.zIndex.tooltip
4435
4409
  }));
4436
- var CalendarSheet3 = styled17(Sheet_default, {
4410
+ var CalendarSheet3 = styled18(Sheet_default, {
4437
4411
  name: "MonthPicker",
4438
4412
  slot: "sheet",
4439
4413
  overridesResolver: (props, styles) => styles.root
@@ -4442,7 +4416,7 @@ var CalendarSheet3 = styled17(Sheet_default, {
4442
4416
  boxShadow: theme.shadow.md,
4443
4417
  borderRadius: theme.radius.md
4444
4418
  }));
4445
- var MonthPickerRoot = styled17("div", {
4419
+ var MonthPickerRoot = styled18("div", {
4446
4420
  name: "MonthPicker",
4447
4421
  slot: "root",
4448
4422
  overridesResolver: (props, styles) => styles.root
@@ -4675,15 +4649,15 @@ import React32, {
4675
4649
  } from "react";
4676
4650
  import { IMaskInput as IMaskInput4, IMask as IMask4 } from "react-imask";
4677
4651
  import CalendarTodayIcon4 from "@mui/icons-material/CalendarToday";
4678
- import { styled as styled18, useThemeProps as useThemeProps7 } from "@mui/joy";
4652
+ import { styled as styled19, useThemeProps as useThemeProps7 } from "@mui/joy";
4679
4653
  import { FocusTrap as FocusTrap4, ClickAwayListener as ClickAwayListener4, Popper as Popper5 } from "@mui/base";
4680
- var StyledPopper4 = styled18(Popper5, {
4654
+ var StyledPopper4 = styled19(Popper5, {
4681
4655
  name: "MonthRangePicker",
4682
4656
  slot: "popper"
4683
4657
  })(({ theme }) => ({
4684
4658
  zIndex: theme.zIndex.tooltip
4685
4659
  }));
4686
- var CalendarSheet4 = styled18(Sheet_default, {
4660
+ var CalendarSheet4 = styled19(Sheet_default, {
4687
4661
  name: "MonthRangePicker",
4688
4662
  slot: "sheet",
4689
4663
  overridesResolver: (props, styles) => styles.root
@@ -4693,7 +4667,7 @@ var CalendarSheet4 = styled18(Sheet_default, {
4693
4667
  boxShadow: theme.shadow.md,
4694
4668
  borderRadius: theme.radius.md
4695
4669
  }));
4696
- var MonthRangePickerRoot = styled18("div", {
4670
+ var MonthRangePickerRoot = styled19("div", {
4697
4671
  name: "MonthRangePicker",
4698
4672
  slot: "root",
4699
4673
  overridesResolver: (props, styles) => styles.root
@@ -4929,11 +4903,11 @@ import {
4929
4903
  Accordion as JoyAccordion2,
4930
4904
  AccordionSummary as JoyAccordionSummary2,
4931
4905
  AccordionDetails as JoyAccordionDetails2,
4932
- styled as styled19,
4906
+ styled as styled20,
4933
4907
  accordionSummaryClasses,
4934
4908
  Stack as Stack2
4935
4909
  } from "@mui/joy";
4936
- var AccordionSummary2 = styled19(JoyAccordionSummary2, {
4910
+ var AccordionSummary2 = styled20(JoyAccordionSummary2, {
4937
4911
  name: "NavigationGroup",
4938
4912
  slot: "Summary",
4939
4913
  shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
@@ -4946,7 +4920,7 @@ var AccordionSummary2 = styled19(JoyAccordionSummary2, {
4946
4920
  }
4947
4921
  }
4948
4922
  }));
4949
- var AccordionDetails2 = styled19(JoyAccordionDetails2, {
4923
+ var AccordionDetails2 = styled20(JoyAccordionDetails2, {
4950
4924
  name: "NavigationGroup",
4951
4925
  slot: "Details"
4952
4926
  })(({ theme }) => ({
@@ -4964,10 +4938,10 @@ import {
4964
4938
  ListItem as JoyListItem,
4965
4939
  ListItemButton as JoyListItemButton,
4966
4940
  ListItemDecorator as JoyListItemDecorator,
4967
- styled as styled20,
4941
+ styled as styled21,
4968
4942
  listItemButtonClasses
4969
4943
  } from "@mui/joy";
4970
- var ListItemButton = styled20(JoyListItemButton, {
4944
+ var ListItemButton = styled21(JoyListItemButton, {
4971
4945
  name: "NavigationItem",
4972
4946
  slot: "Button",
4973
4947
  shouldForwardProp: (prop) => prop !== "useIcon" && prop !== "level"
@@ -5050,7 +5024,7 @@ Navigator.displayName = "Navigator";
5050
5024
  // src/components/PercentageInput/PercentageInput.tsx
5051
5025
  import React36, { useCallback as useCallback13, useMemo as useMemo11, useState as useState11 } from "react";
5052
5026
  import { NumericFormat as NumericFormat2 } from "react-number-format";
5053
- import { styled as styled21, useThemeProps as useThemeProps8 } from "@mui/joy";
5027
+ import { styled as styled22, useThemeProps as useThemeProps8 } from "@mui/joy";
5054
5028
  var padDecimal = (value, decimalScale) => {
5055
5029
  const [integer, decimal = ""] = `${value}`.split(".");
5056
5030
  return Number(`${integer}${decimal.padEnd(decimalScale, "0")}`);
@@ -5079,7 +5053,7 @@ var TextMaskAdapter11 = React36.forwardRef(
5079
5053
  );
5080
5054
  }
5081
5055
  );
5082
- var PercentageInputRoot = styled21(Input_default, {
5056
+ var PercentageInputRoot = styled22(Input_default, {
5083
5057
  name: "PercentageInput",
5084
5058
  slot: "Root",
5085
5059
  overridesResolver: (props, styles) => styles.root
@@ -5192,15 +5166,15 @@ import {
5192
5166
  StepIndicator as JoyStepIndicator,
5193
5167
  stepClasses,
5194
5168
  stepIndicatorClasses,
5195
- styled as styled22
5169
+ styled as styled23
5196
5170
  } from "@mui/joy";
5197
5171
  import CheckIcon from "@mui/icons-material/Check";
5198
5172
  import { motion as motion28 } from "framer-motion";
5199
- var Step = styled22(JoyStep)({});
5173
+ var Step = styled23(JoyStep)({});
5200
5174
  Step.displayName = "Step";
5201
- var StepIndicator = styled22(JoyStepIndicator)({});
5175
+ var StepIndicator = styled23(JoyStepIndicator)({});
5202
5176
  StepIndicator.displayName = "StepIndicator";
5203
- var StyledStepper = styled22(JoyStepper)(({ theme }) => ({
5177
+ var StyledStepper = styled23(JoyStepper)(({ theme }) => ({
5204
5178
  "--StepIndicator-size": "24px",
5205
5179
  "--Step-gap": theme.spacing(2),
5206
5180
  "--joy-palette-success-solidBg": "var(--joy-palette-success-400)",
@@ -5271,12 +5245,12 @@ Stepper.displayName = "Stepper";
5271
5245
  import React39 from "react";
5272
5246
  import {
5273
5247
  Switch as JoySwitch,
5274
- styled as styled23,
5248
+ styled as styled24,
5275
5249
  switchClasses
5276
5250
  } from "@mui/joy";
5277
5251
  import { motion as motion29 } from "framer-motion";
5278
5252
  var MotionSwitch = motion29(JoySwitch);
5279
- var StyledThumb = styled23(motion29.div)({
5253
+ var StyledThumb = styled24(motion29.div)({
5280
5254
  "--Icon-fontSize": "calc(var(--Switch-thumbSize) * 0.75)",
5281
5255
  display: "inline-flex",
5282
5256
  justifyContent: "center",
@@ -5599,7 +5573,7 @@ import React41, {
5599
5573
  useRef as useRef8,
5600
5574
  useState as useState12
5601
5575
  } from "react";
5602
- import { styled as styled24, Input as Input2 } from "@mui/joy";
5576
+ import { styled as styled25, Input as Input2 } from "@mui/joy";
5603
5577
  import MuiFileUploadIcon from "@mui/icons-material/CloudUploadRounded";
5604
5578
  import MuiUploadFileIcon from "@mui/icons-material/UploadFileRounded";
5605
5579
  import MuiClearIcon from "@mui/icons-material/ClearRounded";
@@ -5621,7 +5595,7 @@ var esmFiles = {
5621
5595
  "@atlaskit/pragmatic-drag-and-drop/dist/esm/entry-point/prevent-unhandled.js"
5622
5596
  )
5623
5597
  };
5624
- var VisuallyHiddenInput = styled24(Input2)({
5598
+ var VisuallyHiddenInput = styled25(Input2)({
5625
5599
  width: "1px",
5626
5600
  height: "1px",
5627
5601
  overflow: "hidden",
@@ -5630,18 +5604,18 @@ var VisuallyHiddenInput = styled24(Input2)({
5630
5604
  clipPath: "inset(50%)",
5631
5605
  position: "absolute"
5632
5606
  });
5633
- var PreviewRoot = styled24(Stack_default, {
5607
+ var PreviewRoot = styled25(Stack_default, {
5634
5608
  name: "Uploader",
5635
5609
  slot: "PreviewRoot"
5636
5610
  })({});
5637
- var UploadCard = styled24(Card, {
5611
+ var UploadCard = styled25(Card, {
5638
5612
  name: "Uploader",
5639
5613
  slot: "UploadCard"
5640
5614
  })(({ theme }) => ({
5641
5615
  padding: theme.spacing(2.5),
5642
5616
  border: `1px solid ${theme.palette.neutral.outlinedBorder}`
5643
5617
  }));
5644
- var UploadFileIcon = styled24(MuiUploadFileIcon, {
5618
+ var UploadFileIcon = styled25(MuiUploadFileIcon, {
5645
5619
  name: "Uploader",
5646
5620
  slot: "UploadFileIcon"
5647
5621
  })(({ theme }) => ({
@@ -5649,7 +5623,7 @@ var UploadFileIcon = styled24(MuiUploadFileIcon, {
5649
5623
  width: "32px",
5650
5624
  height: "32px"
5651
5625
  }));
5652
- var ClearIcon2 = styled24(MuiClearIcon, {
5626
+ var ClearIcon2 = styled25(MuiClearIcon, {
5653
5627
  name: "Uploader",
5654
5628
  slot: "ClearIcon"
5655
5629
  })(({ theme }) => ({
@@ -5727,13 +5701,13 @@ var Preview = (props) => {
5727
5701
  getFileSize(file.size)
5728
5702
  )), /* @__PURE__ */ React41.createElement(IconButton_default, { onClick: () => onDelete?.(file) }, /* @__PURE__ */ React41.createElement(ClearIcon2, null))))));
5729
5703
  };
5730
- var UploaderRoot = styled24(Stack_default, {
5704
+ var UploaderRoot = styled25(Stack_default, {
5731
5705
  name: "Uploader",
5732
5706
  slot: "root"
5733
5707
  })(({ theme }) => ({
5734
5708
  gap: theme.spacing(2)
5735
5709
  }));
5736
- var FileDropZone = styled24(Sheet_default, {
5710
+ var FileDropZone = styled25(Sheet_default, {
5737
5711
  name: "Uploader",
5738
5712
  slot: "dropZone",
5739
5713
  shouldForwardProp: (prop) => prop !== "error"
@@ -5751,7 +5725,7 @@ var FileDropZone = styled24(Sheet_default, {
5751
5725
  border: error ? `1px solid ${theme.palette.danger.outlinedBorder}` : state === "idle" ? `1px solid ${theme.palette.neutral.outlinedBorder}` : `1px solid ${theme.palette.primary.outlinedBorder}`
5752
5726
  })
5753
5727
  );
5754
- var UploaderIcon = styled24(MuiFileUploadIcon, {
5728
+ var UploaderIcon = styled25(MuiFileUploadIcon, {
5755
5729
  name: "Uploader",
5756
5730
  slot: "iconContainer",
5757
5731
  shouldForwardProp: (prop) => prop !== "error"
@@ -6165,7 +6139,7 @@ export {
6165
6139
  dialogContentClasses,
6166
6140
  dialogTitleClasses,
6167
6141
  dividerClasses,
6168
- drawerClasses,
6142
+ drawerClasses2 as drawerClasses,
6169
6143
  extendTheme,
6170
6144
  formControlClasses,
6171
6145
  formHelperTextClasses,
@@ -6210,6 +6184,6 @@ export {
6210
6184
  tooltipClasses2 as tooltipClasses,
6211
6185
  typographyClasses,
6212
6186
  useColorScheme,
6213
- useTheme3 as useTheme,
6187
+ useTheme2 as useTheme,
6214
6188
  useThemeProps9 as useThemeProps
6215
6189
  };