@team-monolith/cds 0.2.11 → 0.3.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/package.json +1 -1
- package/src/cds/components/Button.tsx +0 -5
- package/src/cds/components/Input.tsx +7 -2
- package/src/cds/foundation/shadows.ts +1 -1
- package/src/cds/index.ts +1 -1
- package/dist/CodleDesignSystemProvider.d.ts +0 -69
- package/dist/CodleDesignSystemProvider.js +0 -96
- package/dist/components/AlertDialog/AlertDialog.d.ts +0 -14
- package/dist/components/AlertDialog/AlertDialog.js +0 -45
- package/dist/components/AlertDialog/AlertDialogActions.d.ts +0 -8
- package/dist/components/AlertDialog/AlertDialogActions.js +0 -35
- package/dist/components/AlertDialog/AlertDialogContent.d.ts +0 -8
- package/dist/components/AlertDialog/AlertDialogContent.js +0 -36
- package/dist/components/AlertDialog/AlertDialogTitle.d.ts +0 -13
- package/dist/components/AlertDialog/AlertDialogTitle.js +0 -38
- package/dist/components/AlertDialog/index.d.ts +0 -4
- package/dist/components/AlertDialog/index.js +0 -4
- package/dist/components/Banner.d.ts +0 -29
- package/dist/components/Banner.js +0 -65
- package/dist/components/Button.d.ts +0 -33
- package/dist/components/Button.js +0 -72
- package/dist/components/CheckboxInput.d.ts +0 -27
- package/dist/components/CheckboxInput.js +0 -77
- package/dist/components/Input.d.ts +0 -17
- package/dist/components/Input.js +0 -72
- package/dist/components/InputBase.d.ts +0 -42
- package/dist/components/InputBase.js +0 -52
- package/dist/components/Pagination.d.ts +0 -27
- package/dist/components/Pagination.js +0 -32
- package/dist/components/PinInput.d.ts +0 -36
- package/dist/components/PinInput.js +0 -154
- package/dist/components/RadioInput.d.ts +0 -23
- package/dist/components/RadioInput.js +0 -78
- package/dist/components/SquareButton.d.ts +0 -26
- package/dist/components/SquareButton.js +0 -80
- package/dist/components/Switch.d.ts +0 -19
- package/dist/components/Switch.js +0 -59
- package/dist/components/Tag.d.ts +0 -21
- package/dist/components/Tag.js +0 -61
- package/dist/components/Tooltip.d.ts +0 -26
- package/dist/components/Tooltip.js +0 -50
- package/dist/foundation/color.d.ts +0 -75
- package/dist/foundation/color.js +0 -75
- package/dist/foundation/shadows.d.ts +0 -9
- package/dist/foundation/shadows.js +0 -10
- package/dist/icons/Arrows/index.d.ts +0 -2
- package/dist/icons/Arrows/index.js +0 -2
- package/dist/icons/Media/index.d.ts +0 -2
- package/dist/icons/Media/index.js +0 -2
- package/dist/icons/System/index.d.ts +0 -2
- package/dist/icons/System/index.js +0 -2
- package/dist/icons/arrows.d.ts +0 -28
- package/dist/icons/arrows.js +0 -21
- package/dist/icons/brand.d.ts +0 -4
- package/dist/icons/brand.js +0 -13
- package/dist/icons/design.d.ts +0 -4
- package/dist/icons/design.js +0 -13
- package/dist/icons/map.d.ts +0 -4
- package/dist/icons/map.js +0 -13
- package/dist/icons/system.d.ts +0 -31
- package/dist/icons/system.js +0 -22
- package/dist/index.d.ts +0 -44
- package/dist/index.js +0 -44
- package/dist/patterns/Card/Card.d.ts +0 -39
- package/dist/patterns/Card/Card.js +0 -68
- package/dist/patterns/Card/class-icon.svg +0 -28
- package/dist/patterns/Card/index.d.ts +0 -2
- package/dist/patterns/Card/index.js +0 -2
- package/dist/patterns/Card/material-icon.svg +0 -25
- package/dist/patterns/Card/problem-icon.svg +0 -25
- package/dist/patterns/Card/thumbnail/sample.png +0 -0
- package/dist/patterns/Dialog/Dialog.d.ts +0 -12
- package/dist/patterns/Dialog/Dialog.js +0 -26
- package/dist/patterns/Dialog/DialogContent.d.ts +0 -8
- package/dist/patterns/Dialog/DialogContent.js +0 -23
- package/dist/patterns/Dialog/DialogNavigation.d.ts +0 -12
- package/dist/patterns/Dialog/DialogNavigation.js +0 -25
- package/dist/patterns/Dialog/DialogNavigationContext.d.ts +0 -5
- package/dist/patterns/Dialog/DialogNavigationContext.js +0 -5
- package/dist/patterns/Dialog/DialogNavigationItem.d.ts +0 -10
- package/dist/patterns/Dialog/DialogNavigationItem.js +0 -25
- package/dist/patterns/Dialog/DialogPanel.d.ts +0 -10
- package/dist/patterns/Dialog/DialogPanel.js +0 -31
- package/dist/patterns/Dialog/DialogPanels.d.ts +0 -13
- package/dist/patterns/Dialog/DialogPanels.js +0 -17
- package/dist/patterns/Dialog/DialogPanelsContext.d.ts +0 -5
- package/dist/patterns/Dialog/DialogPanelsContext.js +0 -5
- package/dist/patterns/Dialog/DialogTitle.d.ts +0 -13
- package/dist/patterns/Dialog/DialogTitle.js +0 -26
- package/dist/patterns/Dialog/index.d.ts +0 -7
- package/dist/patterns/Dialog/index.js +0 -7
- package/dist/patterns/Dropdown/Dropdown.d.ts +0 -27
- package/dist/patterns/Dropdown/Dropdown.js +0 -41
- package/dist/patterns/Dropdown/DropdownItem.d.ts +0 -42
- package/dist/patterns/Dropdown/DropdownItem.js +0 -89
- package/dist/patterns/Dropdown/DropdownMenu.d.ts +0 -30
- package/dist/patterns/Dropdown/DropdownMenu.js +0 -85
- package/dist/patterns/Dropdown/index.d.ts +0 -2
- package/dist/patterns/Dropdown/index.js +0 -2
- package/dist/patterns/EmptyState/EmptyState.d.ts +0 -16
- package/dist/patterns/EmptyState/EmptyState.js +0 -36
- package/dist/patterns/EmptyState/empty-state-icon.svg +0 -36
- package/dist/patterns/EmptyState/index.d.ts +0 -2
- package/dist/patterns/EmptyState/index.js +0 -2
- package/dist/patterns/Navigation/NavigationContext.d.ts +0 -5
- package/dist/patterns/Navigation/NavigationContext.js +0 -5
- package/dist/patterns/Navigation/NavigationHorizontal.d.ts +0 -11
- package/dist/patterns/Navigation/NavigationHorizontal.js +0 -27
- package/dist/patterns/Navigation/NavigationItem.d.ts +0 -9
- package/dist/patterns/Navigation/NavigationItem.js +0 -33
- package/dist/patterns/Navigation/NavigationVertical.d.ts +0 -14
- package/dist/patterns/Navigation/NavigationVertical.js +0 -27
- package/dist/patterns/Navigation/index.d.ts +0 -3
- package/dist/patterns/Navigation/index.js +0 -3
- package/dist/patterns/SegmentedControl/SegmentedControlButton.d.ts +0 -8
- package/dist/patterns/SegmentedControl/SegmentedControlButton.js +0 -41
- package/dist/patterns/SegmentedControl/SegmentedControlGroup.d.ts +0 -26
- package/dist/patterns/SegmentedControl/SegmentedControlGroup.js +0 -50
- package/dist/patterns/SegmentedControl/SegmentedControlGroupPropsContext.d.ts +0 -5
- package/dist/patterns/SegmentedControl/SegmentedControlGroupPropsContext.js +0 -5
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.d.ts +0 -8
- package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +0 -45
- package/dist/patterns/SegmentedControl/index.d.ts +0 -3
- package/dist/patterns/SegmentedControl/index.js +0 -3
- package/dist/patterns/Table/Table.d.ts +0 -18
- package/dist/patterns/Table/Table.js +0 -33
- package/dist/patterns/Table/TableBody.d.ts +0 -8
- package/dist/patterns/Table/TableBody.js +0 -26
- package/dist/patterns/Table/TableCell.d.ts +0 -15
- package/dist/patterns/Table/TableCell.js +0 -78
- package/dist/patterns/Table/TableHead.d.ts +0 -8
- package/dist/patterns/Table/TableHead.js +0 -26
- package/dist/patterns/Table/TablePropsContext.d.ts +0 -7
- package/dist/patterns/Table/TablePropsContext.js +0 -3
- package/dist/patterns/Table/TableRow.d.ts +0 -14
- package/dist/patterns/Table/TableRow.js +0 -34
- package/dist/patterns/Table/TableVariantContext.d.ts +0 -6
- package/dist/patterns/Table/TableVariantContext.js +0 -3
- package/dist/patterns/Table/index.d.ts +0 -7
- package/dist/patterns/Table/index.js +0 -6
- package/dist/svg.d.ts +0 -10
- package/dist/utils/hover.d.ts +0 -3
- package/dist/utils/hover.js +0 -14
- package/dist/utils/reset.d.ts +0 -2
- package/dist/utils/reset.js +0 -8
- package/dist/utils/zIndex.d.ts +0 -3
- package/dist/utils/zIndex.js +0 -3
package/package.json
CHANGED
|
@@ -172,9 +172,6 @@ export interface ButtonOwnProps<RootComponentType extends React.ElementType> {
|
|
|
172
172
|
|
|
173
173
|
/** 컴포넌트 내 표기될 문자열 */
|
|
174
174
|
label: string;
|
|
175
|
-
|
|
176
|
-
/** 버튼 클릭 시 호출될 콜백 함수 */
|
|
177
|
-
onClick?: () => void;
|
|
178
175
|
}
|
|
179
176
|
|
|
180
177
|
export type ButtonProps<
|
|
@@ -210,7 +207,6 @@ const Button: ButtonComponent = React.forwardRef(function Button<
|
|
|
210
207
|
startIcon,
|
|
211
208
|
endIcon,
|
|
212
209
|
label,
|
|
213
|
-
onClick,
|
|
214
210
|
...other
|
|
215
211
|
} = props;
|
|
216
212
|
const theme = useTheme();
|
|
@@ -242,7 +238,6 @@ const Button: ButtonComponent = React.forwardRef(function Button<
|
|
|
242
238
|
SIZE_TO_BUTTON_STYLE[size],
|
|
243
239
|
]}
|
|
244
240
|
disabled={disabled}
|
|
245
|
-
onClick={onClick}
|
|
246
241
|
>
|
|
247
242
|
{startIcon}
|
|
248
243
|
<Label size={size}>{label}</Label>
|
|
@@ -104,6 +104,11 @@ const Input = React.forwardRef<any, InputProps>(
|
|
|
104
104
|
...other
|
|
105
105
|
} = props;
|
|
106
106
|
|
|
107
|
+
const {
|
|
108
|
+
className: _className,
|
|
109
|
+
...inputBaseProps
|
|
110
|
+
} = props;
|
|
111
|
+
|
|
107
112
|
return (
|
|
108
113
|
<InputWrapper
|
|
109
114
|
className={props.className}
|
|
@@ -114,10 +119,10 @@ const Input = React.forwardRef<any, InputProps>(
|
|
|
114
119
|
>
|
|
115
120
|
{label ? (
|
|
116
121
|
<Label disabled={props.disabled}>
|
|
117
|
-
{label} <InputBase {...
|
|
122
|
+
{label} <InputBase {...inputBaseProps} />
|
|
118
123
|
</Label>
|
|
119
124
|
) : (
|
|
120
|
-
<InputBase {...
|
|
125
|
+
<InputBase {...inputBaseProps} />
|
|
121
126
|
)}
|
|
122
127
|
{hintText && (
|
|
123
128
|
<Hint color={props.color} disabled={props.disabled}>
|
package/src/cds/index.ts
CHANGED
|
@@ -61,4 +61,4 @@ export * from "./patterns/SegmentedControl";
|
|
|
61
61
|
export * from "./patterns/Table";
|
|
62
62
|
|
|
63
63
|
export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
|
|
64
|
-
export
|
|
64
|
+
export { light } from "./CodleDesignSystemProvider";
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const light: {
|
|
3
|
-
color: {
|
|
4
|
-
background: {
|
|
5
|
-
neutralBase: string;
|
|
6
|
-
neutralAlt: string;
|
|
7
|
-
neutralAltActive: string;
|
|
8
|
-
neutralAltDisabled: string;
|
|
9
|
-
primary: string;
|
|
10
|
-
primaryActive: string;
|
|
11
|
-
primaryDisabled: string;
|
|
12
|
-
secondary: string;
|
|
13
|
-
secondaryActive: string;
|
|
14
|
-
secondaryDisabled: string;
|
|
15
|
-
danger: string;
|
|
16
|
-
dangerActive: string;
|
|
17
|
-
dangerDisabled: string;
|
|
18
|
-
success: string;
|
|
19
|
-
successActive: string;
|
|
20
|
-
successDisabled: string;
|
|
21
|
-
info: string;
|
|
22
|
-
infoActive: string;
|
|
23
|
-
infoDisabled: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
warningActive: string;
|
|
26
|
-
warningDisabled: string;
|
|
27
|
-
};
|
|
28
|
-
foreground: {
|
|
29
|
-
neutralBase: string;
|
|
30
|
-
neutralBaseDisabled: string;
|
|
31
|
-
neutralAlt: string;
|
|
32
|
-
neutralAltDisabled: string;
|
|
33
|
-
primary: string;
|
|
34
|
-
primaryDisabled: string;
|
|
35
|
-
secondary: string;
|
|
36
|
-
secondaryDisabled: string;
|
|
37
|
-
danger: string;
|
|
38
|
-
dangerDisabled: string;
|
|
39
|
-
success: string;
|
|
40
|
-
successDisabled: string;
|
|
41
|
-
info: string;
|
|
42
|
-
infoDisabled: string;
|
|
43
|
-
warning: string;
|
|
44
|
-
warningDisabled: string;
|
|
45
|
-
};
|
|
46
|
-
container: {
|
|
47
|
-
primaryContainer: string;
|
|
48
|
-
primaryOnContainer: string;
|
|
49
|
-
secondaryContainer: string;
|
|
50
|
-
secondaryOnContainer: string;
|
|
51
|
-
dangerContainer: string;
|
|
52
|
-
dangerOnContainer: string;
|
|
53
|
-
successContainer: string;
|
|
54
|
-
successOnContainer: string;
|
|
55
|
-
infoContainer: string;
|
|
56
|
-
infoOnContainer: string;
|
|
57
|
-
warningContainer: string;
|
|
58
|
-
warningOnContainer: string;
|
|
59
|
-
obsidianContainer: string;
|
|
60
|
-
obsidianOnContainer: string;
|
|
61
|
-
marbleContainer: string;
|
|
62
|
-
marbleOnContainer: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export default function (props: {
|
|
67
|
-
children: React.ReactNode;
|
|
68
|
-
fontFamily?: string;
|
|
69
|
-
}): React.ReactElement;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { ThemeProvider } from "@emotion/react";
|
|
14
|
-
import { ThemeProvider as MuiThemeProvider } from "@mui/material";
|
|
15
|
-
import COLOR from "./foundation/color";
|
|
16
|
-
import { createTheme } from "@mui/material";
|
|
17
|
-
export var light = {
|
|
18
|
-
color: {
|
|
19
|
-
background: {
|
|
20
|
-
neutralBase: COLOR.white,
|
|
21
|
-
neutralAlt: COLOR.grey03,
|
|
22
|
-
neutralAltActive: COLOR.grey04,
|
|
23
|
-
neutralAltDisabled: COLOR.grey03,
|
|
24
|
-
primary: COLOR.blue06,
|
|
25
|
-
primaryActive: COLOR.blue07,
|
|
26
|
-
primaryDisabled: COLOR.blue03,
|
|
27
|
-
secondary: COLOR.orange06,
|
|
28
|
-
secondaryActive: COLOR.orange07,
|
|
29
|
-
secondaryDisabled: COLOR.orange03,
|
|
30
|
-
danger: COLOR.red06,
|
|
31
|
-
dangerActive: COLOR.red07,
|
|
32
|
-
dangerDisabled: COLOR.red03,
|
|
33
|
-
success: COLOR.green06,
|
|
34
|
-
successActive: COLOR.green07,
|
|
35
|
-
successDisabled: COLOR.green03,
|
|
36
|
-
info: COLOR.teal06,
|
|
37
|
-
infoActive: COLOR.teal07,
|
|
38
|
-
infoDisabled: COLOR.teal03,
|
|
39
|
-
warning: COLOR.yellow06,
|
|
40
|
-
warningActive: COLOR.yellow07,
|
|
41
|
-
warningDisabled: COLOR.yellow03,
|
|
42
|
-
},
|
|
43
|
-
foreground: {
|
|
44
|
-
neutralBase: COLOR.black,
|
|
45
|
-
neutralBaseDisabled: COLOR.grey06,
|
|
46
|
-
neutralAlt: COLOR.white,
|
|
47
|
-
neutralAltDisabled: COLOR.white,
|
|
48
|
-
primary: COLOR.blue06,
|
|
49
|
-
primaryDisabled: COLOR.blue02,
|
|
50
|
-
secondary: COLOR.orange06,
|
|
51
|
-
secondaryDisabled: COLOR.orange02,
|
|
52
|
-
danger: COLOR.red06,
|
|
53
|
-
dangerDisabled: COLOR.red02,
|
|
54
|
-
success: COLOR.green06,
|
|
55
|
-
successDisabled: COLOR.green02,
|
|
56
|
-
info: COLOR.teal06,
|
|
57
|
-
infoDisabled: COLOR.teal02,
|
|
58
|
-
warning: COLOR.yellow06,
|
|
59
|
-
warningDisabled: COLOR.yellow02,
|
|
60
|
-
},
|
|
61
|
-
container: {
|
|
62
|
-
primaryContainer: COLOR.blue01,
|
|
63
|
-
primaryOnContainer: COLOR.blue08,
|
|
64
|
-
secondaryContainer: COLOR.orange01,
|
|
65
|
-
secondaryOnContainer: COLOR.orange08,
|
|
66
|
-
dangerContainer: COLOR.red01,
|
|
67
|
-
dangerOnContainer: COLOR.red08,
|
|
68
|
-
successContainer: COLOR.green01,
|
|
69
|
-
successOnContainer: COLOR.green08,
|
|
70
|
-
infoContainer: COLOR.teal01,
|
|
71
|
-
infoOnContainer: COLOR.teal08,
|
|
72
|
-
warningContainer: COLOR.yellow01,
|
|
73
|
-
warningOnContainer: COLOR.yellow08,
|
|
74
|
-
obsidianContainer: COLOR.black,
|
|
75
|
-
obsidianOnContainer: COLOR.grey03,
|
|
76
|
-
marbleContainer: COLOR.grey03,
|
|
77
|
-
marbleOnContainer: COLOR.grey07,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
// eslint-disable-next-line import/no-anonymous-default-export
|
|
82
|
-
export default function (props) {
|
|
83
|
-
var muiTheme = createTheme({
|
|
84
|
-
typography: {
|
|
85
|
-
fontFamily: props.fontFamily,
|
|
86
|
-
},
|
|
87
|
-
components: {
|
|
88
|
-
MuiButtonBase: {
|
|
89
|
-
defaultProps: {
|
|
90
|
-
disableRipple: true, // No more ripple, on the whole application 💣!
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
});
|
|
95
|
-
return (_jsx(MuiThemeProvider, __assign({ theme: muiTheme }, { children: _jsx(ThemeProvider, __assign({ theme: light }, { children: props.children })) })));
|
|
96
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AlertDialogProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
/** `true` 값일때 모달이 노출됩니다. */
|
|
6
|
-
open: boolean;
|
|
7
|
-
/** 모달이 닫힐 때 호출되는 callback */
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
/** 모달의 내용으로 표기될 값 */
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
/** 모달 좌측에 표기될 아이콘 */
|
|
12
|
-
icon?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare const AlertDialog: React.ForwardRefExoticComponent<AlertDialogProps & React.RefAttributes<any>>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
28
|
-
/** @jsxImportSource @emotion/react */
|
|
29
|
-
import { Modal as MuiModal } from "@mui/material";
|
|
30
|
-
import { css, useTheme } from "@emotion/react";
|
|
31
|
-
import React from "react";
|
|
32
|
-
import shadows from "../../foundation/shadows";
|
|
33
|
-
import styled from "@emotion/styled";
|
|
34
|
-
export var AlertDialog = React.forwardRef(function (props, ref) {
|
|
35
|
-
var className = props.className, _a = props.component, Component = _a === void 0 ? "div" : _a, open = props.open, onClose = props.onClose, children = props.children, icon = props.icon, other = __rest(props, ["className", "component", "open", "onClose", "children", "icon"]);
|
|
36
|
-
var theme = useTheme();
|
|
37
|
-
return (_jsx(MuiModal, __assign({ open: open, onClose: onClose, ref: ref }, other, { children: _jsxs(Component, __assign({ className: className, css: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: 480px;\n background: ", ";\n box-shadow: ", ";\n border-radius: 16px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 24px;\n box-sizing: border-box;\n\n display: grid;\n ", "\n\n gap: 8px 16px;\n "], ["\n width: 480px;\n background: ", ";\n box-shadow: ", ";\n border-radius: 16px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: 24px;\n box-sizing: border-box;\n\n display: grid;\n ", "\n\n gap: 8px 16px;\n "])), theme.color.background.neutralBase, shadows.shadow04, icon
|
|
38
|
-
? css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-template-areas:\n \"icon title\"\n \"iconPadding content\"\n \"actions actions\";\n "], ["\n grid-template-areas:\n \"icon title\"\n \"iconPadding content\"\n \"actions actions\";\n "]))) : css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n grid-template-areas:\n \"title\"\n \"content\"\n \"actions\";\n "], ["\n grid-template-areas:\n \"title\"\n \"content\"\n \"actions\";\n "])))) }, { children: [icon && (_jsxs(_Fragment, { children: [_jsx(IconDiv, { children: icon }), _jsx(IconPadding, {})] })), children] })) })));
|
|
39
|
-
});
|
|
40
|
-
var IconDiv = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-area: icon;\n ", "\n svg {\n width: 32px;\n height: 32px;\n }\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n grid-area: icon;\n ", "\n svg {\n width: 32px;\n height: 32px;\n }\n"])), function (_a) {
|
|
41
|
-
var theme = _a.theme;
|
|
42
|
-
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), theme.color.background.infoActive);
|
|
43
|
-
});
|
|
44
|
-
var IconPadding = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n grid-area: iconPadding;\n"], ["\n grid-area: iconPadding;\n"])));
|
|
45
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AlertDialogActionsProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
/** Content 내용으로 표기될 값 */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const AlertDialogActions: React.ForwardRefExoticComponent<AlertDialogActionsProps & React.RefAttributes<any>>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
28
|
-
/** @jsxImportSource @emotion/react */
|
|
29
|
-
import { css } from "@emotion/react";
|
|
30
|
-
import React from "react";
|
|
31
|
-
export var AlertDialogActions = React.forwardRef(function (props, ref) {
|
|
32
|
-
var className = props.className, _a = props.component, Component = _a === void 0 ? "div" : _a, children = props.children, other = __rest(props, ["className", "component", "children"]);
|
|
33
|
-
return (_jsx(Component, __assign({}, other, { ref: ref, className: className, css: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-area: actions;\n\n margin-top: 8px;\n display: flex;\n gap: 16px;\n justify-content: flex-end;\n "], ["\n grid-area: actions;\n\n margin-top: 8px;\n display: flex;\n gap: 16px;\n justify-content: flex-end;\n "]))) }, { children: children })));
|
|
34
|
-
});
|
|
35
|
-
var templateObject_1;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AlertDialogContentProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
/** Content 내용으로 표기될 값 */
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare const AlertDialogContent: React.ForwardRefExoticComponent<AlertDialogContentProps & React.RefAttributes<any>>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
28
|
-
/** @jsxImportSource @emotion/react */
|
|
29
|
-
import { css, useTheme } from "@emotion/react";
|
|
30
|
-
import React from "react";
|
|
31
|
-
export var AlertDialogContent = React.forwardRef(function (props, ref) {
|
|
32
|
-
var className = props.className, _a = props.component, Component = _a === void 0 ? "div" : _a, children = props.children, other = __rest(props, ["className", "component", "children"]);
|
|
33
|
-
var theme = useTheme();
|
|
34
|
-
return (_jsx(Component, __assign({}, other, { ref: ref, className: className, css: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-area: content;\n\n font-style: normal;\n font-size: 18px;\n line-height: 28px;\n color: ", ";\n "], ["\n grid-area: content;\n\n font-style: normal;\n font-size: 18px;\n line-height: 28px;\n color: ", ";\n "])), theme.color.foreground.neutralBase) }, { children: children })));
|
|
35
|
-
});
|
|
36
|
-
var templateObject_1;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AlertDialogTitleProps {
|
|
3
|
-
className?: string;
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
/**
|
|
6
|
-
* 제목의 X 버튼을 누르를 때 호출되는 callback.
|
|
7
|
-
* 이 속성이 전달되면 X 버튼을 Title 영역에 그립니다.
|
|
8
|
-
*/
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
/** Content 내용으로 표기될 값 */
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const AlertDialogTitle: React.ForwardRefExoticComponent<AlertDialogTitleProps & React.RefAttributes<any>>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
28
|
-
/** @jsxImportSource @emotion/react */
|
|
29
|
-
import { css, useTheme } from "@emotion/react";
|
|
30
|
-
import React from "react";
|
|
31
|
-
import SquareButton from "../SquareButton";
|
|
32
|
-
import { CloseFillIcon } from "../../icons/system";
|
|
33
|
-
export var AlertDialogTitle = React.forwardRef(function (props, ref) {
|
|
34
|
-
var className = props.className, _a = props.component, Component = _a === void 0 ? "div" : _a, onClose = props.onClose, children = props.children, other = __rest(props, ["className", "component", "onClose", "children"]);
|
|
35
|
-
var theme = useTheme();
|
|
36
|
-
return (_jsx(_Fragment, { children: _jsxs(Component, __assign({}, other, { ref: ref, className: className, css: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-area: title;\n font-family: \"Pretendard\";\n font-style: normal;\n font-weight: 500;\n font-size: 20px;\n line-height: 36px;\n color: ", ";\n\n display: flex;\n justify-content: space-between;\n "], ["\n grid-area: title;\n font-family: \"Pretendard\";\n font-style: normal;\n font-weight: 500;\n font-size: 20px;\n line-height: 36px;\n color: ", ";\n\n display: flex;\n justify-content: space-between;\n "])), theme.color.foreground.neutralBase) }, { children: [children, onClose && (_jsx(SquareButton, { color: "icon", size: "small", icon: _jsx(CloseFillIcon, {}), onClick: onClose }))] })) }));
|
|
37
|
-
});
|
|
38
|
-
var templateObject_1;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type BannerColor = "red" | "blue" | "green" | "yellow";
|
|
3
|
-
export interface BannerProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
component?: React.ElementType;
|
|
6
|
-
/** 컴포넌트 내 헤드라인으로 표기될 문자열 */
|
|
7
|
-
headline?: string;
|
|
8
|
-
/** 컴포넌트 내용으로 표기될 값 */
|
|
9
|
-
content: React.ReactNode;
|
|
10
|
-
/** 컴포넌트 좌측에 표기될 아이콘 */
|
|
11
|
-
icon?: React.ReactNode;
|
|
12
|
-
/** 컴포넌트의 색상 */
|
|
13
|
-
color: BannerColor;
|
|
14
|
-
/** 컴포넌트 우측에 표기될 버튼의 라벨 */
|
|
15
|
-
buttonLabel?: string;
|
|
16
|
-
/** 컴포넌트 우측 버튼 클릭 시 호출될 콜백 함수 */
|
|
17
|
-
onButtonClick?: () => void;
|
|
18
|
-
/** 컴포넌트 우측에 표기될 닫기 버튼 유무 */
|
|
19
|
-
close?: boolean;
|
|
20
|
-
/** 닫기 버튼 클릭 시 호출될 콜백 함수 */
|
|
21
|
-
onClose?: () => void;
|
|
22
|
-
/** 전체 너비 유무 */
|
|
23
|
-
fullWidth?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=44-2847&t=bhnL1ombbddld3RQ-0)
|
|
27
|
-
*/
|
|
28
|
-
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<any>>;
|
|
29
|
-
export default Banner;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
28
|
-
/** @jsxImportSource @emotion/react */
|
|
29
|
-
import { css, useTheme } from "@emotion/react";
|
|
30
|
-
import styled from "@emotion/styled";
|
|
31
|
-
import React from "react";
|
|
32
|
-
import COLOR from "../foundation/color";
|
|
33
|
-
import { CloseFillIcon } from "../icons/system";
|
|
34
|
-
import { RESET_BUTTON } from "../utils/reset";
|
|
35
|
-
var COLOR_TO_STYLE = function (theme, color) {
|
|
36
|
-
return ({
|
|
37
|
-
red: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.dangerContainer, theme.color.container.dangerOnContainer),
|
|
38
|
-
blue: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.primaryContainer, theme.color.container.primaryOnContainer),
|
|
39
|
-
green: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.successContainer, theme.color.container.successOnContainer),
|
|
40
|
-
yellow: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n "], ["\n background: ", ";\n color: ", ";\n "])), theme.color.container.warningContainer, theme.color.container.warningOnContainer),
|
|
41
|
-
}[color]);
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=44-2847&t=bhnL1ombbddld3RQ-0)
|
|
45
|
-
*/
|
|
46
|
-
var Banner = React.forwardRef(function (props, ref) {
|
|
47
|
-
var className = props.className, _a = props.component, Component = _a === void 0 ? "div" : _a, headline = props.headline, content = props.content, icon = props.icon, color = props.color, buttonLabel = props.buttonLabel, onButtonClick = props.onButtonClick, close = props.close, onClose = props.onClose, fullWidth = props.fullWidth, other = __rest(props, ["className", "component", "headline", "content", "icon", "color", "buttonLabel", "onButtonClick", "close", "onClose", "fullWidth"]);
|
|
48
|
-
var theme = useTheme();
|
|
49
|
-
return (_jsxs(Component, __assign({}, other, { ref: ref, className: className, css: [
|
|
50
|
-
css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n color: ", ";\n line-height: 125%;\n "], ["\n box-sizing: border-box;\n display: flex;\n align-items: center;\n color: ", ";\n line-height: 125%;\n "])), COLOR.white),
|
|
51
|
-
COLOR_TO_STYLE(theme, color),
|
|
52
|
-
fullWidth
|
|
53
|
-
? css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "]))) : css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-radius: 12px;\n width: fit-content;\n min-width: 343px;\n "], ["\n border-radius: 12px;\n width: fit-content;\n min-width: 343px;\n "]))),
|
|
54
|
-
] }, { children: [icon && _jsx(IconDiv, { children: icon }), _jsxs(TextContainer, __assign({ setPaddingRight: !close && !buttonLabel }, { children: [headline && _jsx(HeadlineDiv, { children: headline }), _jsx("div", { children: content })] })), buttonLabel && (_jsx(BannerButton, __assign({ onClick: onButtonClick }, { children: buttonLabel }))), close && (_jsx(CloseButton, __assign({ onClick: onClose }, { children: _jsx(StyledCloseFillIcon, {}) })))] })));
|
|
55
|
-
});
|
|
56
|
-
var StyledCloseFillIcon = styled(CloseFillIcon)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: block;\n padding: 14px;\n width: 20px;\n height: 20px;\n\n color: currentColor;\n"], ["\n display: block;\n padding: 14px;\n width: 20px;\n height: 20px;\n\n color: currentColor;\n"])));
|
|
57
|
-
var IconDiv = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 16px 0px 16px 16px;\n"], ["\n display: flex;\n align-items: center;\n padding: 16px 0px 16px 16px;\n"])));
|
|
58
|
-
var HeadlineDiv = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n font-weight: 700;\n"], ["\n font-weight: 700;\n"])));
|
|
59
|
-
var TextContainer = styled.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 16px 0px 16px 16px;\n gap: 4px;\n ", ";\n"], ["\n flex: 1;\n\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 16px 0px 16px 16px;\n gap: 4px;\n ", ";\n"])), function (props) {
|
|
60
|
-
return props.setPaddingRight && css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n padding-right: 16px;\n "], ["\n padding-right: 16px;\n "])));
|
|
61
|
-
});
|
|
62
|
-
var BannerButton = styled.button(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px 12px;\n cursor: pointer;\n color: currentColor;\n"], ["\n ", "\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 10px 12px;\n cursor: pointer;\n color: currentColor;\n"])), RESET_BUTTON);
|
|
63
|
-
var CloseButton = styled.button(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n cursor: pointer;\n color: currentColor;\n"], ["\n ", "\n cursor: pointer;\n color: currentColor;\n"])), RESET_BUTTON);
|
|
64
|
-
export default Banner;
|
|
65
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PolymorphicProps } from "@mui/base";
|
|
3
|
-
export type ButtonColor = "primary" | "secondary" | "danger" | "textNeutral" | "textDanger" | "textPrimary";
|
|
4
|
-
export type ButtonSize = "large" | "medium" | "small" | "xsmall";
|
|
5
|
-
export interface ButtonOwnProps<RootComponentType extends React.ElementType> {
|
|
6
|
-
className?: string;
|
|
7
|
-
component?: RootComponentType;
|
|
8
|
-
/** 비활성화 여부 */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** 컴포넌트 색상 */
|
|
11
|
-
color: ButtonColor;
|
|
12
|
-
/** 컴포넌트 크기 */
|
|
13
|
-
size: ButtonSize;
|
|
14
|
-
/** 컴포넌트 좌측에 표기될 아이콘 */
|
|
15
|
-
startIcon?: React.ReactNode;
|
|
16
|
-
/** 컴포넌트 우측에 표기될 아이콘 */
|
|
17
|
-
endIcon?: React.ReactNode;
|
|
18
|
-
/** 컴포넌트 내 표기될 문자열 */
|
|
19
|
-
label: string;
|
|
20
|
-
/** 버튼 클릭 시 호출될 콜백 함수 */
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
}
|
|
23
|
-
export type ButtonProps<RootComponentType extends React.ElementType = ButtonTypeMap["defaultComponent"]> = PolymorphicProps<ButtonTypeMap<RootComponentType>, RootComponentType>;
|
|
24
|
-
export interface ButtonTypeMap<RootComponentType extends React.ElementType = "button"> {
|
|
25
|
-
props: ButtonOwnProps<RootComponentType>;
|
|
26
|
-
defaultComponent: RootComponentType;
|
|
27
|
-
}
|
|
28
|
-
type ButtonComponent = <RootComponentType extends React.ElementType = "button">(props: ButtonProps<RootComponentType>) => React.ReactElement | null;
|
|
29
|
-
/**
|
|
30
|
-
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=20-173&t=cXcCv3QijbX7MkoC-0)
|
|
31
|
-
*/
|
|
32
|
-
declare const Button: ButtonComponent;
|
|
33
|
-
export default Button;
|