@team-monolith/cds 1.27.1 → 1.28.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.
@@ -16,12 +16,14 @@ export interface DropdownProps {
16
16
  bold?: boolean;
17
17
  /** 버튼 컴포넌트 내 좌측에 표기될 아이콘 */
18
18
  startIcon?: React.ReactNode;
19
- /** 버튼 컴포넌트 내 우측에 표기될 아이콘 */
19
+ /** 버튼 컴포넌트 내 우측에 표기될 아이콘.
20
+ * 전달하지 않으면 기본으로 ArrowDropDownFillIcon이 표기됩니다.
21
+ */
20
22
  endIcon?: React.ReactNode;
21
23
  /** button에 적용되는 css 스타일 */
22
24
  buttonCss?: SerializedStyles;
23
25
  /** 버튼 컴포넌트 내 표기될 문자열 */
24
- label: string;
26
+ label?: string;
25
27
  /** 버튼 클릭 시 호출될 콜백 함수 */
26
28
  onClick?: React.MouseEventHandler<HTMLButtonElement>;
27
29
  /** 드롭다운 메뉴의 props */
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { ModalProps } from "@mui/material";
4
4
  import { OriginProps } from "./style";
5
5
  import { ItemState } from "../DropdownItem";
6
- export declare const DROPDOWN_MENU_WIDTH = 124;
6
+ export declare const DROPDOWN_MENU_WIDTH = 132;
7
7
  export declare const DROPDOWN_MENU_MAX_HEIGHT = 160;
8
8
  export interface DropdownMenuProps extends Omit<ModalProps, "open" | "onClose" | "children"> {
9
9
  /** 드롭다운 메뉴의 커스텀 스타일 */
@@ -18,7 +18,7 @@ import { shadows } from "../../..";
18
18
  import { Modal as MuiModal, Grow as MuiGrow, Portal, } from "@mui/material";
19
19
  import { ORIGIN_PROPS_TO_POSITION, ORIGIN_PROPS_TO_TRANSFORM, } from "./style";
20
20
  import DropdownContext from "../DropdownContext";
21
- export const DROPDOWN_MENU_WIDTH = 124;
21
+ export const DROPDOWN_MENU_WIDTH = 132;
22
22
  export const DROPDOWN_MENU_MAX_HEIGHT = 160;
23
23
  /**
24
24
  * [피그마](https://www.figma.com/file/PnQp3tPxiCjgsPZfLUaUL1/Codle-PD-Kit---Patterns?type=design&node-id=106-1921&t=FwczLZ1IVvskUVbT-0)
@@ -23,7 +23,7 @@ export const ORIGIN_PROPS_TO_POSITION = (anchorOrigin, anchorRect, nested) => {
23
23
  right: css `
24
24
  top: ${top}px;
25
25
  left: ${left + (nested ? DROPDOWN_MENU_WIDTH : width)}px;
26
- margin-left: 12px;
26
+ margin-left: 4px;
27
27
  `,
28
28
  },
29
29
  center: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.27.1",
3
+ "version": "1.28.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,