@ceed/cds 1.5.0 → 1.5.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/Modal/Modal.d.ts +2 -8
- package/dist/index.cjs +13 -8
- package/dist/index.js +25 -13
- package/framer/index.js +35 -35
- package/package.json +1 -1
|
@@ -21,14 +21,7 @@ declare const ModalDialog: import("@emotion/styled").StyledComponent<{
|
|
|
21
21
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
22
22
|
}, "children" | "layout" | "color" | "maxWidth" | "minWidth" | "variant" | "sx" | "size" | "invertedColors" | "orientation" | keyof import("@mui/joy").ModalDialogSlotsAndSlotProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
23
23
|
export { ModalDialog };
|
|
24
|
-
declare const ModalClose: import("@
|
|
25
|
-
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").ModalClosePropsColorOverrides> | undefined;
|
|
26
|
-
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").ModalClosePropsSizeOverrides> | undefined;
|
|
27
|
-
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
28
|
-
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").ModalClosePropsVariantOverrides> | undefined;
|
|
29
|
-
} & import("@mui/joy").ModalCloseSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
30
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
31
|
-
}, "color" | "variant" | "sx" | "size" | keyof import("@mui/joy").ModalCloseSlotsAndSlotProps> & import("framer-motion").MotionProps, "ref"> & React.RefAttributes<HTMLElement | SVGElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/joy").Theme>, {}, {}>;
|
|
24
|
+
declare const ModalClose: import("@mui/types").OverridableComponent<import("@mui/joy").ModalCloseTypeMap<{}, "button">>;
|
|
32
25
|
export { ModalClose };
|
|
33
26
|
declare const ModalOverflow: import("framer-motion").CustomDomComponent<{
|
|
34
27
|
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
@@ -40,6 +33,7 @@ declare function ModalFrame(props: {
|
|
|
40
33
|
title: React.ReactNode;
|
|
41
34
|
children: React.ReactNode;
|
|
42
35
|
titleStartDecorator?: React.ReactNode;
|
|
36
|
+
onClose?: () => void;
|
|
43
37
|
} & React.ComponentProps<typeof ModalDialog>): React.JSX.Element;
|
|
44
38
|
declare namespace ModalFrame {
|
|
45
39
|
var displayName: string;
|
package/dist/index.cjs
CHANGED
|
@@ -2964,6 +2964,16 @@ var VirtualizedTableBody = (0, import_joy33.styled)("tbody", {
|
|
|
2964
2964
|
content: "''",
|
|
2965
2965
|
display: "block",
|
|
2966
2966
|
height: "0.01em"
|
|
2967
|
+
},
|
|
2968
|
+
// NOTE: 테이블 안에 버튼을 넣을 때 버튼의 높이가 테이블의 높이를 넘어가지 않도록 설정
|
|
2969
|
+
[`& .${import_joy33.buttonClasses.root}`]: {
|
|
2970
|
+
"--Button-minHeight": "20px",
|
|
2971
|
+
"--Button-paddingBlock": "0.25rem",
|
|
2972
|
+
lineHeight: 1
|
|
2973
|
+
},
|
|
2974
|
+
[`& .${import_joy33.iconButtonClasses.root}`]: {
|
|
2975
|
+
"--IconButton-size": "21px",
|
|
2976
|
+
verticalAlign: "middle"
|
|
2967
2977
|
}
|
|
2968
2978
|
});
|
|
2969
2979
|
var StyledTableRow = (0, import_joy33.styled)("tr", {
|
|
@@ -4303,18 +4313,13 @@ var StyledModalDialog = (0, import_joy38.styled)(import_joy38.ModalDialog)({
|
|
|
4303
4313
|
});
|
|
4304
4314
|
var ModalDialog = StyledModalDialog;
|
|
4305
4315
|
ModalDialog.displayName = "ModalDialog";
|
|
4306
|
-
var
|
|
4307
|
-
top: theme.spacing(3),
|
|
4308
|
-
right: theme.spacing(6)
|
|
4309
|
-
}));
|
|
4310
|
-
var ModalClose = MotionModalClose;
|
|
4311
|
-
ModalClose.displayName = "ModalClose";
|
|
4316
|
+
var ModalClose = import_joy38.ModalClose;
|
|
4312
4317
|
var MotionModalOverflow = (0, import_framer_motion25.motion)(import_joy38.ModalOverflow);
|
|
4313
4318
|
var ModalOverflow = MotionModalOverflow;
|
|
4314
4319
|
ModalOverflow.displayName = "ModalOverflow";
|
|
4315
4320
|
function ModalFrame(props) {
|
|
4316
|
-
const { title, children, titleStartDecorator, ...innerProps } = props;
|
|
4317
|
-
return /* @__PURE__ */ import_react28.default.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ import_react28.default.createElement(ModalClose,
|
|
4321
|
+
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
4322
|
+
return /* @__PURE__ */ import_react28.default.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ import_react28.default.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ import_react28.default.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ import_react28.default.createElement(DialogContent_default, null, children));
|
|
4318
4323
|
}
|
|
4319
4324
|
ModalFrame.displayName = "ModalFrame";
|
|
4320
4325
|
|
package/dist/index.js
CHANGED
|
@@ -62,10 +62,10 @@ import {
|
|
|
62
62
|
ButtonGroup,
|
|
63
63
|
alertClasses,
|
|
64
64
|
boxClasses,
|
|
65
|
-
buttonClasses,
|
|
65
|
+
buttonClasses as buttonClasses2,
|
|
66
66
|
checkboxClasses as checkboxClasses2,
|
|
67
67
|
dividerClasses,
|
|
68
|
-
iconButtonClasses,
|
|
68
|
+
iconButtonClasses as iconButtonClasses2,
|
|
69
69
|
inputClasses as inputClasses2,
|
|
70
70
|
menuClasses,
|
|
71
71
|
menuButtonClasses,
|
|
@@ -2001,7 +2001,14 @@ import React23, {
|
|
|
2001
2001
|
memo
|
|
2002
2002
|
} from "react";
|
|
2003
2003
|
import { useVirtualizer as useVirtualizer2 } from "@tanstack/react-virtual";
|
|
2004
|
-
import {
|
|
2004
|
+
import {
|
|
2005
|
+
styled as styled12,
|
|
2006
|
+
LinearProgress,
|
|
2007
|
+
Link,
|
|
2008
|
+
useTheme,
|
|
2009
|
+
buttonClasses,
|
|
2010
|
+
iconButtonClasses
|
|
2011
|
+
} from "@mui/joy";
|
|
2005
2012
|
import SortIcon from "@mui/icons-material/ArrowUpwardRounded";
|
|
2006
2013
|
|
|
2007
2014
|
// src/components/Sheet/Sheet.tsx
|
|
@@ -2925,6 +2932,16 @@ var VirtualizedTableBody = styled12("tbody", {
|
|
|
2925
2932
|
content: "''",
|
|
2926
2933
|
display: "block",
|
|
2927
2934
|
height: "0.01em"
|
|
2935
|
+
},
|
|
2936
|
+
// NOTE: 테이블 안에 버튼을 넣을 때 버튼의 높이가 테이블의 높이를 넘어가지 않도록 설정
|
|
2937
|
+
[`& .${buttonClasses.root}`]: {
|
|
2938
|
+
"--Button-minHeight": "20px",
|
|
2939
|
+
"--Button-paddingBlock": "0.25rem",
|
|
2940
|
+
lineHeight: 1
|
|
2941
|
+
},
|
|
2942
|
+
[`& .${iconButtonClasses.root}`]: {
|
|
2943
|
+
"--IconButton-size": "21px",
|
|
2944
|
+
verticalAlign: "middle"
|
|
2928
2945
|
}
|
|
2929
2946
|
});
|
|
2930
2947
|
var StyledTableRow = styled12("tr", {
|
|
@@ -4282,18 +4299,13 @@ var StyledModalDialog = styled17(JoyModalDialog)({
|
|
|
4282
4299
|
});
|
|
4283
4300
|
var ModalDialog = StyledModalDialog;
|
|
4284
4301
|
ModalDialog.displayName = "ModalDialog";
|
|
4285
|
-
var
|
|
4286
|
-
top: theme.spacing(3),
|
|
4287
|
-
right: theme.spacing(6)
|
|
4288
|
-
}));
|
|
4289
|
-
var ModalClose = MotionModalClose;
|
|
4290
|
-
ModalClose.displayName = "ModalClose";
|
|
4302
|
+
var ModalClose = JoyModalClose;
|
|
4291
4303
|
var MotionModalOverflow = motion25(JoyModalOverflow);
|
|
4292
4304
|
var ModalOverflow = MotionModalOverflow;
|
|
4293
4305
|
ModalOverflow.displayName = "ModalOverflow";
|
|
4294
4306
|
function ModalFrame(props) {
|
|
4295
|
-
const { title, children, titleStartDecorator, ...innerProps } = props;
|
|
4296
|
-
return /* @__PURE__ */ React26.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ React26.createElement(ModalClose,
|
|
4307
|
+
const { title, children, titleStartDecorator, onClose, ...innerProps } = props;
|
|
4308
|
+
return /* @__PURE__ */ React26.createElement(StyledModalDialog, { ...innerProps }, /* @__PURE__ */ React26.createElement(ModalClose, { onClick: onClose }), /* @__PURE__ */ React26.createElement(DialogTitle_default, null, titleStartDecorator, title), /* @__PURE__ */ React26.createElement(DialogContent_default, null, children));
|
|
4297
4309
|
}
|
|
4298
4310
|
ModalFrame.displayName = "ModalFrame";
|
|
4299
4311
|
|
|
@@ -6248,7 +6260,7 @@ export {
|
|
|
6248
6260
|
badgeClasses,
|
|
6249
6261
|
boxClasses,
|
|
6250
6262
|
breadcrumbsClasses,
|
|
6251
|
-
buttonClasses,
|
|
6263
|
+
buttonClasses2 as buttonClasses,
|
|
6252
6264
|
cardActionsClasses,
|
|
6253
6265
|
cardClasses,
|
|
6254
6266
|
cardContentClasses,
|
|
@@ -6267,7 +6279,7 @@ export {
|
|
|
6267
6279
|
formHelperTextClasses,
|
|
6268
6280
|
formLabelClasses2 as formLabelClasses,
|
|
6269
6281
|
gridClasses,
|
|
6270
|
-
iconButtonClasses,
|
|
6282
|
+
iconButtonClasses2 as iconButtonClasses,
|
|
6271
6283
|
inputClasses2 as inputClasses,
|
|
6272
6284
|
linearProgressClasses,
|
|
6273
6285
|
linkClasses,
|