@team-monolith/cds 1.79.2 → 1.79.3
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.
|
@@ -17,7 +17,7 @@ export interface DropdownProps {
|
|
|
17
17
|
/** 버튼 컴포넌트 내 좌측에 표기될 아이콘 */
|
|
18
18
|
startIcon?: React.ReactNode;
|
|
19
19
|
/** 버튼 컴포넌트 내 우측에 표기될 아이콘.
|
|
20
|
-
* 전달하지 않으면 기본으로
|
|
20
|
+
* 전달하지 않으면 기본으로 ArrowDownSFillIcon이 표기됩니다.
|
|
21
21
|
*/
|
|
22
22
|
endIcon?: React.ReactNode;
|
|
23
23
|
/** 버튼에 전달할 Props */
|
|
@@ -12,13 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
13
13
|
/** @jsxImportSource @emotion/react */
|
|
14
14
|
import { forwardRef, useRef, useState } from "react";
|
|
15
|
-
import { Button,
|
|
15
|
+
import { Button, ArrowDownSFillIcon, } from "../..";
|
|
16
16
|
import { DropdownMenu } from "./DropdownMenu";
|
|
17
17
|
/**
|
|
18
18
|
* [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?type=design&node-id=203-95329&t=FwczLZ1IVvskUVbT-0)
|
|
19
19
|
*/
|
|
20
20
|
const Dropdown = forwardRef(function Dropdown(props, ref) {
|
|
21
|
-
const { className, component: Component = "div", disabled, color = "primary", size = "medium", bold, startIcon, endIcon = _jsx(
|
|
21
|
+
const { className, component: Component = "div", disabled, color = "primary", size = "medium", bold, startIcon, endIcon = _jsx(ArrowDownSFillIcon, {}), buttonCss, label, onClick, menuProps = {}, children, closeOnItemClick } = props, other = __rest(props, ["className", "component", "disabled", "color", "size", "bold", "startIcon", "endIcon", "buttonCss", "label", "onClick", "menuProps", "children", "closeOnItemClick"]);
|
|
22
22
|
const buttonProps = Object.assign(Object.assign({}, props.buttonProps), { disabled,
|
|
23
23
|
color,
|
|
24
24
|
size,
|