@team-monolith/cds 1.76.6 → 1.76.8
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/CdsProvider.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +2 -2
- package/dist/components/AlertDialog/AlertDialogContext.d.ts +1 -2
- package/dist/components/AlertDialog/AlertDialogContext.js +1 -1
- package/dist/components/AlertDialog/AlertDialogTitle.js +2 -2
- package/dist/components/Banner.d.ts +1 -2
- package/dist/components/Banner.js +3 -4
- package/dist/components/Book/Book.d.ts +18 -3
- package/dist/components/Book/Book.js +5 -6
- package/dist/components/Book/index.d.ts +0 -1
- package/dist/components/Book/index.js +0 -1
- package/dist/components/Button.d.ts +2 -2
- package/dist/components/Button.js +1 -2
- package/dist/components/CheckboxInput.d.ts +1 -2
- package/dist/components/CheckboxInput.js +1 -2
- package/dist/components/Input.d.ts +1 -2
- package/dist/components/Input.js +1 -2
- package/dist/components/Pagination.d.ts +1 -2
- package/dist/components/Pagination.js +1 -2
- package/dist/components/PinInput.d.ts +1 -2
- package/dist/components/PinInput.js +1 -2
- package/dist/components/Popover.d.ts +1 -2
- package/dist/components/Popover.js +2 -3
- package/dist/components/RadioInput.d.ts +1 -2
- package/dist/components/RadioInput.js +1 -2
- package/dist/components/SquareButton.d.ts +2 -2
- package/dist/components/SquareButton.js +1 -2
- package/dist/components/Switch.d.ts +1 -2
- package/dist/components/Switch.js +1 -2
- package/dist/components/SwitchButton.d.ts +2 -2
- package/dist/components/SwitchButton.js +1 -2
- package/dist/components/Tag.d.ts +1 -2
- package/dist/components/Tag.js +1 -2
- package/dist/components/Tooltip.d.ts +1 -2
- package/dist/components/Tooltip.js +1 -2
- package/dist/foundation/color.d.ts +1 -2
- package/dist/foundation/color.js +1 -1
- package/dist/foundation/font.d.ts +1 -2
- package/dist/foundation/font.js +1 -1
- package/dist/foundation/shadows.d.ts +1 -2
- package/dist/foundation/shadows.js +1 -2
- package/dist/index.d.ts +2 -16
- package/dist/index.js +2 -16
- package/dist/patterns/Dropdown/DropdownContext.d.ts +1 -2
- package/dist/patterns/Dropdown/DropdownContext.js +1 -2
- package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +1 -1
- package/dist/patterns/Dropdown/DropdownMenu/DropdownMenu.js +1 -1
- package/dist/patterns/LexicalEditor/LexicalEditor.js +1 -1
- package/dist/patterns/LexicalEditor/Plugins.d.ts +1 -1
- package/dist/patterns/LexicalEditor/Plugins.js +10 -10
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +3 -3
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageNode.js +3 -1
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/index.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +2 -2
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +2 -2
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +3 -3
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +4 -4
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/index.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.d.ts +1 -1
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +1 -1
- package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/ActionsPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/ActionsPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.d.ts +1 -2
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.js +2 -3
- package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.d.ts +1 -2
- package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.js +2 -3
- package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/index.js +2 -2
- package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/ListMaxIndentLevelPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/ListMaxIndentLevelPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/ProblemInputPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/ProblemInputPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/ProblemSelectPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/ProblemSelectPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/SelfEvaluationPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/SelfEvaluationPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/SheetInputPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/SheetInputPlugin/index.js +1 -1
- package/dist/patterns/LexicalEditor/plugins/SheetSelectPlugin/index.d.ts +1 -1
- package/dist/patterns/LexicalEditor/plugins/SheetSelectPlugin/index.js +1 -1
- package/package.json +4 -2
package/dist/CdsProvider.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Global, ThemeProvider, css } from "@emotion/react";
|
|
3
3
|
import { ThemeProvider as MuiThemeProvider } from "@mui/material";
|
|
4
|
-
import COLOR from "./foundation/color";
|
|
5
|
-
import FONT from "./foundation/font";
|
|
4
|
+
import { COLOR } from "./foundation/color";
|
|
5
|
+
import { FONT } from "./foundation/font";
|
|
6
6
|
import { createTheme } from "@mui/material";
|
|
7
7
|
import { createContext } from "react";
|
|
8
8
|
export const light = {
|
|
@@ -13,10 +13,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
|
13
13
|
/** @jsxImportSource @emotion/react */
|
|
14
14
|
import { css, useTheme } from "@emotion/react";
|
|
15
15
|
import React from "react";
|
|
16
|
-
import shadows from "../../foundation/shadows";
|
|
16
|
+
import { shadows } from "../../foundation/shadows";
|
|
17
17
|
import styled from "@emotion/styled";
|
|
18
18
|
import { MOBILE } from "../../foundation/breakpoints";
|
|
19
|
-
import AlertDialogContext from "./AlertDialogContext";
|
|
19
|
+
import { AlertDialogContext } from "./AlertDialogContext";
|
|
20
20
|
import { ZINDEX } from "../../utils/zIndex";
|
|
21
21
|
import { Modal } from "../..";
|
|
22
22
|
export const AlertDialog = React.forwardRef(function AlertDialog(props, ref) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export const AlertDialogContext = React.createContext({});
|
|
@@ -13,9 +13,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@emotion/reac
|
|
|
13
13
|
/** @jsxImportSource @emotion/react */
|
|
14
14
|
import { css, useTheme } from "@emotion/react";
|
|
15
15
|
import React from "react";
|
|
16
|
-
import SquareButton from "../SquareButton";
|
|
16
|
+
import { SquareButton } from "../SquareButton";
|
|
17
17
|
import { CloseFillIcon } from "../../icons";
|
|
18
|
-
import AlertDialogContext from "./AlertDialogContext";
|
|
18
|
+
import { AlertDialogContext } from "./AlertDialogContext";
|
|
19
19
|
import { MOBILE } from "../../foundation/breakpoints";
|
|
20
20
|
// eslint-disable-next-line react/display-name, @typescript-eslint/no-explicit-any
|
|
21
21
|
export const AlertDialogTitle = React.forwardRef((props, ref) => {
|
|
@@ -36,5 +36,4 @@ export interface BannerProps {
|
|
|
36
36
|
/**
|
|
37
37
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=44-2847&t=bhnL1ombbddld3RQ-0)
|
|
38
38
|
*/
|
|
39
|
-
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<any>>;
|
|
40
|
-
export default Banner;
|
|
39
|
+
export declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<any>>;
|
|
@@ -15,8 +15,8 @@ import { css, useTheme } from "@emotion/react";
|
|
|
15
15
|
import styled from "@emotion/styled";
|
|
16
16
|
import React from "react";
|
|
17
17
|
import { CloseFillIcon } from "../icons";
|
|
18
|
-
import SquareButton from "./SquareButton";
|
|
19
|
-
import Button from "./Button";
|
|
18
|
+
import { SquareButton } from "./SquareButton";
|
|
19
|
+
import { Button } from "./Button";
|
|
20
20
|
export const bannerClasses = {
|
|
21
21
|
icon: "Banner-icon",
|
|
22
22
|
textContainer: "Banner-textContainer",
|
|
@@ -56,7 +56,7 @@ const COLOR_PALETTE = (theme, color) => ({
|
|
|
56
56
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=44-2847&t=bhnL1ombbddld3RQ-0)
|
|
57
57
|
*/
|
|
58
58
|
// eslint-disable-next-line react/display-name, @typescript-eslint/no-explicit-any
|
|
59
|
-
const Banner = React.forwardRef((props, ref) => {
|
|
59
|
+
export const Banner = React.forwardRef((props, ref) => {
|
|
60
60
|
const { className, component: Component = "div", headline, content, icon, color, buttonLabel, onButtonClick, buttonProps, close, onClose, fullWidth } = props, other = __rest(props, ["className", "component", "headline", "content", "icon", "color", "buttonLabel", "onButtonClick", "buttonProps", "close", "onClose", "fullWidth"]);
|
|
61
61
|
const theme = useTheme();
|
|
62
62
|
return (_jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: [
|
|
@@ -126,4 +126,3 @@ const TextContainer = styled.div `
|
|
|
126
126
|
padding: 12px;
|
|
127
127
|
gap: 4px;
|
|
128
128
|
`;
|
|
129
|
-
export default Banner;
|
|
@@ -33,8 +33,23 @@ export interface BookProps {
|
|
|
33
33
|
onCoverClick?: () => void;
|
|
34
34
|
/** 커버에 노출되는 아이콘 */
|
|
35
35
|
icon?: React.ReactNode;
|
|
36
|
-
/** 진행도 프로그레스 바
|
|
36
|
+
/** 진행도 프로그레스 바 표시를 위한 정보 */
|
|
37
37
|
progressInfo?: ProgressInfo;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Framer Motion의 whileHover를 사용하지 않고 직접 애니메이션 상태를 관리합니다.
|
|
41
|
+
* 내부적으로는 간단한 애니메이션 상태 관리가 있으며, 필요한 경우
|
|
42
|
+
* open 상태를 전달하여 외부에서 관리할 수 있습니다.
|
|
43
|
+
*
|
|
44
|
+
* 사유1)
|
|
45
|
+
* 모바일에서는 hover가 없기 때문에 whileHover를 사용할 수 없습니다.
|
|
46
|
+
* 클릭(탭)을 통해 열고 닫을 수 있어야 합니다.
|
|
47
|
+
*
|
|
48
|
+
* 사유2)
|
|
49
|
+
* 관리/배부 드랍다운 Modal이 Card 위로 그려져 hoverEnd를 유발하기 때문에
|
|
50
|
+
* 특정 상황에서는 hoverEnd가 발생했어도 Card를 열고 있어야 합니다.
|
|
51
|
+
* @param props
|
|
52
|
+
* @param ref
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
export declare const Book: React.ForwardRefExoticComponent<BookProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/reac
|
|
|
3
3
|
import { css, useTheme } from "@emotion/react";
|
|
4
4
|
import styled from "@emotion/styled";
|
|
5
5
|
import { forwardRef, useState } from "react";
|
|
6
|
-
import shadows from "../../foundation/shadows";
|
|
6
|
+
import { shadows } from "../../foundation/shadows";
|
|
7
7
|
import { EyeOffFillIcon } from "../../icons";
|
|
8
8
|
import { motion } from "framer-motion";
|
|
9
9
|
export const bookClasses = {
|
|
@@ -78,17 +78,17 @@ const CARD_COLOR_PALETTE = (theme) => ({
|
|
|
78
78
|
* @param ref
|
|
79
79
|
* @returns
|
|
80
80
|
*/
|
|
81
|
-
function Book(props, ref) {
|
|
81
|
+
export const Book = forwardRef(function Book(props, ref) {
|
|
82
82
|
const { className, title, subtitle, subtitleBold, isHidden = false, buttons, open: controlledOpen, onHoverStart, onHoverEnd, onCoverClick, icon, progressInfo, } = props;
|
|
83
83
|
const theme = useTheme();
|
|
84
84
|
const [open, setOpen] = useState(false);
|
|
85
|
-
return (_jsxs(Container, Object.assign({ initial: "closed", animate: (controlledOpen !== null && controlledOpen !== void 0 ? controlledOpen : open) ? "open" : "closed", ref: ref, onHoverStart: () => {
|
|
85
|
+
return (_jsxs(Container, Object.assign({ className: className, initial: "closed", animate: (controlledOpen !== null && controlledOpen !== void 0 ? controlledOpen : open) ? "open" : "closed", ref: ref, onHoverStart: () => {
|
|
86
86
|
setOpen(true);
|
|
87
87
|
onHoverStart === null || onHoverStart === void 0 ? void 0 : onHoverStart();
|
|
88
88
|
}, onHoverEnd: () => {
|
|
89
89
|
setOpen(false);
|
|
90
90
|
onHoverEnd === null || onHoverEnd === void 0 ? void 0 : onHoverEnd();
|
|
91
|
-
} }, { children: [_jsxs(Cover, Object.assign({ className:
|
|
91
|
+
} }, { children: [_jsxs(Cover, Object.assign({ className: bookClasses.cover, css: onCoverClick &&
|
|
92
92
|
css `
|
|
93
93
|
cursor: pointer;
|
|
94
94
|
`, variants: coverMotion, onClick: () => {
|
|
@@ -124,8 +124,7 @@ function Book(props, ref) {
|
|
|
124
124
|
// Button 클릭 시에도 CoverClick 이벤트가 발생하지 않도록 막습니다.
|
|
125
125
|
e.stopPropagation();
|
|
126
126
|
} }, { children: buttons }))] })), _jsx(Shelf, {})] })));
|
|
127
|
-
}
|
|
128
|
-
export default forwardRef(Book);
|
|
127
|
+
});
|
|
129
128
|
const Container = styled(motion.div) `
|
|
130
129
|
position: relative;
|
|
131
130
|
|
|
@@ -33,5 +33,5 @@ type ButtonComponent = <RootComponentType extends React.ElementType = "button">(
|
|
|
33
33
|
/**
|
|
34
34
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=20-173&t=cXcCv3QijbX7MkoC-0)
|
|
35
35
|
*/
|
|
36
|
-
declare const Button: ButtonComponent;
|
|
37
|
-
export
|
|
36
|
+
export declare const Button: ButtonComponent;
|
|
37
|
+
export {};
|
|
@@ -209,7 +209,7 @@ const SIZE_TO_LABEL_STYLE = {
|
|
|
209
209
|
/**
|
|
210
210
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=20-173&t=cXcCv3QijbX7MkoC-0)
|
|
211
211
|
*/
|
|
212
|
-
const Button = React.forwardRef(function Button(props, ref) {
|
|
212
|
+
export const Button = React.forwardRef(function Button(props, ref) {
|
|
213
213
|
const { className, component: Component = "button", disabled, color, size, startIcon, endIcon, label, fullWidth, bold = false, loading = false } = props, other = __rest(props, ["className", "component", "disabled", "color", "size", "startIcon", "endIcon", "label", "fullWidth", "bold", "loading"]);
|
|
214
214
|
const theme = useTheme();
|
|
215
215
|
return (_jsxs(Component, Object.assign({ type: "button" }, other, { className: className, ref: ref, css: [
|
|
@@ -250,4 +250,3 @@ const Label = styled.span `
|
|
|
250
250
|
white-space: nowrap;
|
|
251
251
|
${({ size }) => SIZE_TO_LABEL_STYLE[size]}
|
|
252
252
|
`;
|
|
253
|
-
export default Button;
|
|
@@ -23,5 +23,4 @@ export interface CheckboxInputProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=36-907&t=G4t39O7uXZvsGQ9u-0)
|
|
25
25
|
*/
|
|
26
|
-
declare const CheckboxInput: React.ForwardRefExoticComponent<CheckboxInputProps & React.RefAttributes<any>>;
|
|
27
|
-
export default CheckboxInput;
|
|
26
|
+
export declare const CheckboxInput: React.ForwardRefExoticComponent<CheckboxInputProps & React.RefAttributes<any>>;
|
|
@@ -101,7 +101,7 @@ const CHECKBOX_ICON_STYLE = (theme, type, disabled) => {
|
|
|
101
101
|
/**
|
|
102
102
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=36-907&t=G4t39O7uXZvsGQ9u-0)
|
|
103
103
|
*/
|
|
104
|
-
const CheckboxInput = React.forwardRef((props, ref) => {
|
|
104
|
+
export const CheckboxInput = React.forwardRef((props, ref) => {
|
|
105
105
|
const { className, checked, label, spacer, disabled, partial, onChange, onClick, inputProps } = props, other = __rest(props, ["className", "checked", "label", "spacer", "disabled", "partial", "onChange", "onClick", "inputProps"]);
|
|
106
106
|
if (!label) {
|
|
107
107
|
return _jsx(Checkbox, Object.assign({}, props, { ref: ref }));
|
|
@@ -164,4 +164,3 @@ const CheckboxIcon = (props) => {
|
|
|
164
164
|
const theme = useTheme();
|
|
165
165
|
return (_jsxs("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", css: CHECKBOX_ICON_STYLE(theme, props.type, props.disabled) }, { children: [_jsx("rect", { x: "0.5", y: "0.5", width: "15", height: "15", rx: "1.5", fill: "currentColor", stroke: "currentColor" }), props.type === "checked" && (_jsx("path", { d: "M7.10545 12.6041L7.08783 12.6217L2.68799 8.22185L4.12067 6.78917L7.10551 9.77402L11.8795 5L13.3122 6.43268L7.12313 12.6218L7.10545 12.6041Z", fill: "currentColor" })), props.type === "partial" && (_jsx("rect", { x: "4", y: "4", width: "8", height: "8", fill: "currentColor" }))] })));
|
|
166
166
|
};
|
|
167
|
-
export default CheckboxInput;
|
|
@@ -13,5 +13,4 @@ export type InputProps = InputBaseProps & {
|
|
|
13
13
|
/**
|
|
14
14
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-10284&t=HnIfxpf8uR6WmzMW-0)
|
|
15
15
|
*/
|
|
16
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
|
|
17
|
-
export default Input;
|
|
16
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
|
package/dist/components/Input.js
CHANGED
|
@@ -66,7 +66,7 @@ const SIZE_TO_FONT_STYLES = (size) => ({
|
|
|
66
66
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-10284&t=HnIfxpf8uR6WmzMW-0)
|
|
67
67
|
*/
|
|
68
68
|
// eslint-disable-next-line react/display-name, @typescript-eslint/no-explicit-any
|
|
69
|
-
const Input = React.forwardRef((props, ref) => {
|
|
69
|
+
export const Input = React.forwardRef((props, ref) => {
|
|
70
70
|
const { label, hintText, hintIcon,
|
|
71
71
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
72
72
|
className, color, size, placeholder, disabled, startIcon, startLabel, endLabel, endIcon, inputProps, inputRef, fullWidth, onChange, onClear, defaultValue, value } = props,
|
|
@@ -102,4 +102,3 @@ const Hint = styled.div(({ theme, color, disabled }) => css `
|
|
|
102
102
|
gap: 4px;
|
|
103
103
|
${COLOR_TO_HINT_STYLES(theme, color, disabled)};
|
|
104
104
|
`);
|
|
105
|
-
export default Input;
|
|
@@ -23,5 +23,4 @@ export interface PaginationProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=35-798&t=6OdVgm0hiYaq5PFw-0)
|
|
25
25
|
*/
|
|
26
|
-
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<any>>;
|
|
27
|
-
export default Pagination;
|
|
26
|
+
export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<any>>;
|
|
@@ -8,7 +8,7 @@ import { HOVER } from "../utils/hover";
|
|
|
8
8
|
/**
|
|
9
9
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=35-798&t=6OdVgm0hiYaq5PFw-0)
|
|
10
10
|
*/
|
|
11
|
-
const Pagination = React.forwardRef((props, ref) => (_jsx(StyledPagination, Object.assign({ siblingCount: 2, shape: "rounded" }, props, { ref: ref }))));
|
|
11
|
+
export const Pagination = React.forwardRef((props, ref) => (_jsx(StyledPagination, Object.assign({ siblingCount: 2, shape: "rounded" }, props, { ref: ref }))));
|
|
12
12
|
const StyledPagination = styled(MuiPagination)(({ theme }) => css `
|
|
13
13
|
&.MuiPagination-root {
|
|
14
14
|
& .MuiPagination-ul {
|
|
@@ -66,4 +66,3 @@ const StyledPagination = styled(MuiPagination)(({ theme }) => css `
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
`);
|
|
69
|
-
export default Pagination;
|
|
@@ -32,5 +32,4 @@ export interface PinInputProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-11031&t=n7a8XP4k8R2TGmiO-0)
|
|
34
34
|
*/
|
|
35
|
-
declare const PinInput: React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<any>>;
|
|
36
|
-
export default PinInput;
|
|
35
|
+
export declare const PinInput: React.ForwardRefExoticComponent<PinInputProps & React.RefAttributes<any>>;
|
|
@@ -81,7 +81,7 @@ function updateFocus(value, i, setFocus) {
|
|
|
81
81
|
/**
|
|
82
82
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=26-11031&t=n7a8XP4k8R2TGmiO-0)
|
|
83
83
|
*/
|
|
84
|
-
const PinInput = React.forwardRef((props, ref) => {
|
|
84
|
+
export const PinInput = React.forwardRef((props, ref) => {
|
|
85
85
|
const { className, autoFocus, size, placeholder, label, hintText, hintIcon, disabled = false, error, positive, onChange, values } = props, other = __rest(props, ["className", "autoFocus", "size", "placeholder", "label", "hintText", "hintIcon", "disabled", "error", "positive", "onChange", "values"]);
|
|
86
86
|
return (_jsxs(PinInputWrapper, Object.assign({ className: className, size: size, ref: ref }, other, { children: [label ? (_jsxs(Label, Object.assign({ disabled: disabled }, { children: [label, " ", _jsx(PinInputComponent, Object.assign({}, props))] }))) : (_jsx(PinInputComponent, Object.assign({}, props))), hintText && (_jsxs(Hint, Object.assign({ color: error ? "activeDanger" : positive ? "activeSuccess" : "default", disabled: disabled }, { children: [hintIcon, hintText] })))] })));
|
|
87
87
|
});
|
|
@@ -183,4 +183,3 @@ const Label = styled.label `
|
|
|
183
183
|
color: ${theme.color.foreground.neutralBaseDisabled};
|
|
184
184
|
`}
|
|
185
185
|
`;
|
|
186
|
-
export default PinInput;
|
|
@@ -10,5 +10,4 @@ export interface PopoverProps {
|
|
|
10
10
|
/** 우측 버튼 */
|
|
11
11
|
button?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export default Popover;
|
|
13
|
+
export declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from "@emotion/styled";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import shadows from "../foundation/shadows";
|
|
4
|
+
import { shadows } from "../foundation/shadows";
|
|
5
5
|
import { css } from "@emotion/react";
|
|
6
|
-
const Popover = React.forwardRef((props, ref) => {
|
|
6
|
+
export const Popover = React.forwardRef((props, ref) => {
|
|
7
7
|
const { className, headline, content, icon, button } = props;
|
|
8
8
|
return (_jsxs(Container, Object.assign({ ref: ref, className: className }, { children: [icon && _jsx(Icon, { children: icon }), _jsxs(ContentArea, { children: [headline && _jsx(Headline, { children: headline }), content && _jsx(Content, { children: content })] }), button] })));
|
|
9
9
|
});
|
|
10
|
-
export default Popover;
|
|
11
10
|
const Container = styled.div(({ theme }) => css `
|
|
12
11
|
display: inline-flex;
|
|
13
12
|
align-items: center;
|
|
@@ -19,5 +19,4 @@ export interface RadioInputProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=420-3704&t=lvpbJKdtz7Lb8wIQ-0)
|
|
21
21
|
*/
|
|
22
|
-
declare const RadioInput: React.ForwardRefExoticComponent<RadioInputProps & React.RefAttributes<any>>;
|
|
23
|
-
export default RadioInput;
|
|
22
|
+
export declare const RadioInput: React.ForwardRefExoticComponent<RadioInputProps & React.RefAttributes<any>>;
|
|
@@ -71,7 +71,7 @@ const TYPE_TO_ICON_STYLE = (theme, type, disabled) => {
|
|
|
71
71
|
/**
|
|
72
72
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=420-3704&t=lvpbJKdtz7Lb8wIQ-0)
|
|
73
73
|
*/
|
|
74
|
-
const RadioInput = React.forwardRef((props, ref) => {
|
|
74
|
+
export const RadioInput = React.forwardRef((props, ref) => {
|
|
75
75
|
const { className, checked, label, spacer, disabled, onChange, inputProps } = props, other = __rest(props, ["className", "checked", "label", "spacer", "disabled", "onChange", "inputProps"]);
|
|
76
76
|
if (!label) {
|
|
77
77
|
return _jsx(RadioButton, Object.assign({}, props, { ref: ref }));
|
|
@@ -130,4 +130,3 @@ const RadioButtonIcon = (props) => {
|
|
|
130
130
|
const theme = useTheme();
|
|
131
131
|
return (_jsxs("svg", Object.assign({ width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", css: TYPE_TO_ICON_STYLE(theme, props.type, props.disabled) }, { children: [_jsx("path", { d: "M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8Z", fill: "currentColor", stroke: "currentColor" }), props.type === "selected" && (_jsx("rect", { x: "4", y: "4", width: "8", height: "8", rx: "4", fill: "currentColor" }))] })));
|
|
132
132
|
};
|
|
133
|
-
export default RadioInput;
|
|
@@ -38,5 +38,5 @@ type SquareButtonComponent = <RootComponentType extends React.ElementType = "spa
|
|
|
38
38
|
/**
|
|
39
39
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=22-374&t=kTLv3t86qtGalHSS-0)
|
|
40
40
|
*/
|
|
41
|
-
declare const SquareButton: SquareButtonComponent;
|
|
42
|
-
export
|
|
41
|
+
export declare const SquareButton: SquareButtonComponent;
|
|
42
|
+
export {};
|
|
@@ -167,7 +167,7 @@ const SIZE_TO_LABEL_STYLE = {
|
|
|
167
167
|
/**
|
|
168
168
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=22-374&t=kTLv3t86qtGalHSS-0)
|
|
169
169
|
*/
|
|
170
|
-
const SquareButton = React.forwardRef(function SquareButton(props, ref) {
|
|
170
|
+
export const SquareButton = React.forwardRef(function SquareButton(props, ref) {
|
|
171
171
|
const { className, component: Component = "span", disabled, type = "button", color, size, icon, label, fullWidth, onClick, loading = false, buttonProps } = props, other = __rest(props, ["className", "component", "disabled", "type", "color", "size", "icon", "label", "fullWidth", "onClick", "loading", "buttonProps"]);
|
|
172
172
|
return (_jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: css `
|
|
173
173
|
display: flex;
|
|
@@ -194,4 +194,3 @@ const Label = styled.span `
|
|
|
194
194
|
: theme.color.foreground.neutralBase};
|
|
195
195
|
${({ size }) => SIZE_TO_LABEL_STYLE[size]}
|
|
196
196
|
`;
|
|
197
|
-
export default SquareButton;
|
|
@@ -15,5 +15,4 @@ export interface SwitchProps {
|
|
|
15
15
|
/**
|
|
16
16
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=36-1577&t=9sDLb4XIOdmF2VMc-0)
|
|
17
17
|
*/
|
|
18
|
-
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<any>>;
|
|
19
|
-
export default Switch;
|
|
18
|
+
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<any>>;
|
|
@@ -18,7 +18,7 @@ import { css } from "@emotion/react";
|
|
|
18
18
|
/**
|
|
19
19
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=36-1577&t=9sDLb4XIOdmF2VMc-0)
|
|
20
20
|
*/
|
|
21
|
-
const Switch = React.forwardRef((props, ref) => {
|
|
21
|
+
export const Switch = React.forwardRef((props, ref) => {
|
|
22
22
|
const { className, checked, disabled = false, size, onChange } = props, other = __rest(props, ["className", "checked", "disabled", "size", "onChange"]);
|
|
23
23
|
return (_jsx(StyledSwitch, Object.assign({}, other, { ref: ref, className: className, checked: checked, disabled: disabled, onChange: onChange, switchSize: size })));
|
|
24
24
|
});
|
|
@@ -108,4 +108,3 @@ const StyledSwitch = styled(MuiSwitch, {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
`);
|
|
111
|
-
export default Switch;
|
|
@@ -29,5 +29,5 @@ type SwitchButtonComponent = <RootComponentType extends React.ElementType = "but
|
|
|
29
29
|
/**
|
|
30
30
|
* [피그마](https://www.figma.com/file/CxpgZcJFoRPWEZyx5RC0tq/Framework-System?node-id=766%3A11274&mode=dev)
|
|
31
31
|
*/
|
|
32
|
-
declare const SwitchButton: SwitchButtonComponent;
|
|
33
|
-
export
|
|
32
|
+
export declare const SwitchButton: SwitchButtonComponent;
|
|
33
|
+
export {};
|
|
@@ -126,7 +126,7 @@ const SIZE_TO_SWITCH_BUTTON_STYLE = (size) => ({
|
|
|
126
126
|
/**
|
|
127
127
|
* [피그마](https://www.figma.com/file/CxpgZcJFoRPWEZyx5RC0tq/Framework-System?node-id=766%3A11274&mode=dev)
|
|
128
128
|
*/
|
|
129
|
-
const SwitchButton = React.forwardRef(function SwitchButton(props, ref) {
|
|
129
|
+
export const SwitchButton = React.forwardRef(function SwitchButton(props, ref) {
|
|
130
130
|
const { className, component: Component = "button", color, size, isOn, onIcon, offIcon, content, onClick } = props, other = __rest(props, ["className", "component", "color", "size", "isOn", "onIcon", "offIcon", "content", "onClick"]);
|
|
131
131
|
const theme = useTheme();
|
|
132
132
|
return (_jsxs(Component, Object.assign({ type: "button" }, other, { className: className, ref: ref, css: [
|
|
@@ -150,4 +150,3 @@ const Content = styled.span(({ theme }) => css `
|
|
|
150
150
|
font-family: ${theme.fontFamily.ui};
|
|
151
151
|
font-weight: 500;
|
|
152
152
|
`);
|
|
153
|
-
export default SwitchButton;
|
package/dist/components/Tag.d.ts
CHANGED
|
@@ -19,5 +19,4 @@ export interface TagProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=42-869&t=HZXCHP0r0tbvMA6v-0)
|
|
21
21
|
*/
|
|
22
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<any>>;
|
|
23
|
-
export default Tag;
|
|
22
|
+
export declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<any>>;
|
package/dist/components/Tag.js
CHANGED
|
@@ -67,7 +67,7 @@ const COLOR_TO_STYLE = (theme, color) => ({
|
|
|
67
67
|
/**
|
|
68
68
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=42-869&t=HZXCHP0r0tbvMA6v-0)
|
|
69
69
|
*/
|
|
70
|
-
const Tag = React.forwardRef((props, ref) => {
|
|
70
|
+
export const Tag = React.forwardRef((props, ref) => {
|
|
71
71
|
const { className, component: Component = "span", label, icon, color = "default", bold, close, onClick } = props, other = __rest(props, ["className", "component", "label", "icon", "color", "bold", "close", "onClick"]);
|
|
72
72
|
const theme = useTheme();
|
|
73
73
|
return (_jsxs(Component, Object.assign({}, other, { ref: ref, className: className, css: [
|
|
@@ -103,4 +103,3 @@ const StyledCloseFillIcon = styled(CloseFillIcon) `
|
|
|
103
103
|
width: 10px;
|
|
104
104
|
height: 10px;
|
|
105
105
|
`;
|
|
106
|
-
export default Tag;
|
|
@@ -22,5 +22,4 @@ export interface TooltipProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=172-626&t=aFkKTFgWq2xFFGC5-0)
|
|
24
24
|
*/
|
|
25
|
-
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<any>>;
|
|
26
|
-
export default Tooltip;
|
|
25
|
+
export declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<any>>;
|
|
@@ -18,7 +18,7 @@ import { Tooltip as MuiTooltip, } from "@mui/material";
|
|
|
18
18
|
/**
|
|
19
19
|
* [피그마](https://www.figma.com/file/yhrRFizzmhPoHdw9FbYow2/Codle-PD-Kit---Components?type=design&node-id=172-626&t=aFkKTFgWq2xFFGC5-0)
|
|
20
20
|
*/
|
|
21
|
-
const Tooltip = React.forwardRef((props, ref) => {
|
|
21
|
+
export const Tooltip = React.forwardRef((props, ref) => {
|
|
22
22
|
const { title, text, children } = props, restProps = __rest(props, ["title", "text", "children"]);
|
|
23
23
|
return (_jsx(StyledTooltip, Object.assign({ ref: ref, title: _jsxs(_Fragment, { children: [title && _jsx(TitleDiv, { children: title }), text] }) }, restProps, { children: children })));
|
|
24
24
|
});
|
|
@@ -47,4 +47,3 @@ const StyledTooltip = styled((_a) => {
|
|
|
47
47
|
const TitleDiv = styled.div `
|
|
48
48
|
font-weight: 700;
|
|
49
49
|
`;
|
|
50
|
-
export default Tooltip;
|
package/dist/foundation/color.js
CHANGED
package/dist/foundation/font.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// https://www.figma.com/file/wefLB6cN0oM2VZjwYmBA6B/Codle-PD-Kit---Foundation?type=design&node-id=1-14238&t=Jg9tQ0vSRG6mw1RZ-0
|
|
2
|
-
const shadows = {
|
|
2
|
+
export const shadows = {
|
|
3
3
|
shadow02: "0px 0.15px 0.45px rgba(0, 0, 0, 0.11), 0px 0.8px 1.8px rgba(0, 0, 0, 0.13)",
|
|
4
4
|
shadow04: "0px 0.3px 0.9px rgba(0, 0, 0, 0.07), 0px 1.6px 3.6px rgba(0, 0, 0, 0.11)",
|
|
5
5
|
shadow08: "0px 0.6px 1.8px rgba(0, 0, 0, 0.11), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)",
|
|
@@ -7,4 +7,3 @@ const shadows = {
|
|
|
7
7
|
shadow32: "0px 2.4px 7.4px rgba(0, 0, 0, 0.18), 0px 12.8px 28.8px rgba(0, 0, 0, 0.22)",
|
|
8
8
|
shadow64: "0px 4.8px 14.4px rgba(0, 0, 0, 0.18), 0px 25.6px 57.6px rgba(0, 0, 0, 0.22)",
|
|
9
9
|
};
|
|
10
|
-
export default shadows;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
/// <reference path="../@types/emotion.d.ts" />
|
|
2
2
|
export * from "./components/AlertDialog";
|
|
3
3
|
export * from "./components/DecoratedNumber";
|
|
4
|
-
export { default as Banner } from "./components/Banner";
|
|
5
4
|
export * from "./components/Banner";
|
|
6
|
-
export { default as Book } from "./components/Book";
|
|
7
5
|
export * from "./components/Book";
|
|
8
|
-
export { default as Button } from "./components/Button";
|
|
9
6
|
export * from "./components/Button";
|
|
10
|
-
export { default as CheckboxInput } from "./components/CheckboxInput";
|
|
11
7
|
export * from "./components/CheckboxInput";
|
|
12
|
-
export { default as Input } from "./components/Input";
|
|
13
8
|
export * from "./components/Input";
|
|
14
9
|
export * from "./components/Modal";
|
|
15
|
-
export { default as Pagination } from "./components/Pagination";
|
|
16
10
|
export * from "./components/Pagination";
|
|
17
|
-
export { default as PinInput } from "./components/PinInput";
|
|
18
11
|
export * from "./components/PinInput";
|
|
19
|
-
export { default as Popover } from "./components/Popover";
|
|
20
12
|
export * from "./components/Popover";
|
|
21
|
-
export { default as RadioInput } from "./components/RadioInput";
|
|
22
13
|
export * from "./components/RadioInput";
|
|
23
14
|
export * from "./components/Spinner";
|
|
24
|
-
export { default as SquareButton } from "./components/SquareButton";
|
|
25
15
|
export * from "./components/SquareButton";
|
|
26
|
-
export { default as Switch } from "./components/Switch";
|
|
27
16
|
export * from "./components/Switch";
|
|
28
|
-
export { default as SwitchButton } from "./components/SwitchButton";
|
|
29
17
|
export * from "./components/SwitchButton";
|
|
30
|
-
export { default as Tag } from "./components/Tag";
|
|
31
18
|
export * from "./components/Tag";
|
|
32
|
-
export { default as Tooltip } from "./components/Tooltip";
|
|
33
19
|
export * from "./components/Tooltip";
|
|
34
|
-
export
|
|
35
|
-
export
|
|
20
|
+
export * from "./foundation/color";
|
|
21
|
+
export * from "./foundation/shadows";
|
|
36
22
|
export * from "./foundation/breakpoints";
|
|
37
23
|
export * from "./CdsProvider";
|
|
38
24
|
export * from "./icons";
|
package/dist/index.js
CHANGED
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
/// <reference path="../../@types/emotion.d.ts" />
|
|
2
2
|
export * from "./components/AlertDialog";
|
|
3
3
|
export * from "./components/DecoratedNumber";
|
|
4
|
-
export { default as Banner } from "./components/Banner";
|
|
5
4
|
export * from "./components/Banner";
|
|
6
|
-
export { default as Book } from "./components/Book";
|
|
7
5
|
export * from "./components/Book";
|
|
8
|
-
export { default as Button } from "./components/Button";
|
|
9
6
|
export * from "./components/Button";
|
|
10
|
-
export { default as CheckboxInput } from "./components/CheckboxInput";
|
|
11
7
|
export * from "./components/CheckboxInput";
|
|
12
|
-
export { default as Input } from "./components/Input";
|
|
13
8
|
export * from "./components/Input";
|
|
14
9
|
export * from "./components/Modal";
|
|
15
|
-
export { default as Pagination } from "./components/Pagination";
|
|
16
10
|
export * from "./components/Pagination";
|
|
17
|
-
export { default as PinInput } from "./components/PinInput";
|
|
18
11
|
export * from "./components/PinInput";
|
|
19
|
-
export { default as Popover } from "./components/Popover";
|
|
20
12
|
export * from "./components/Popover";
|
|
21
|
-
export { default as RadioInput } from "./components/RadioInput";
|
|
22
13
|
export * from "./components/RadioInput";
|
|
23
14
|
export * from "./components/Spinner";
|
|
24
|
-
export { default as SquareButton } from "./components/SquareButton";
|
|
25
15
|
export * from "./components/SquareButton";
|
|
26
|
-
export { default as Switch } from "./components/Switch";
|
|
27
16
|
export * from "./components/Switch";
|
|
28
|
-
export { default as SwitchButton } from "./components/SwitchButton";
|
|
29
17
|
export * from "./components/SwitchButton";
|
|
30
|
-
export { default as Tag } from "./components/Tag";
|
|
31
18
|
export * from "./components/Tag";
|
|
32
|
-
export { default as Tooltip } from "./components/Tooltip";
|
|
33
19
|
export * from "./components/Tooltip";
|
|
34
|
-
export
|
|
35
|
-
export
|
|
20
|
+
export * from "./foundation/color";
|
|
21
|
+
export * from "./foundation/shadows";
|
|
36
22
|
export * from "./foundation/breakpoints";
|
|
37
23
|
export * from "./CdsProvider";
|
|
38
24
|
export * from "./icons";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ItemState } from "./DropdownItem";
|
|
3
|
-
declare const DropdownContext: React.Context<{
|
|
3
|
+
export declare const DropdownContext: React.Context<{
|
|
4
4
|
/** 최상위 드롭다운 메뉴의 open 여부 */
|
|
5
5
|
open: boolean;
|
|
6
6
|
onCloseOnItemClick?: ((e: React.MouseEvent<HTMLElement>) => void) | undefined;
|
|
@@ -8,4 +8,3 @@ declare const DropdownContext: React.Context<{
|
|
|
8
8
|
itemState: ItemState;
|
|
9
9
|
setItemState: React.Dispatch<React.SetStateAction<ItemState>>;
|
|
10
10
|
}>;
|
|
11
|
-
export default DropdownContext;
|