@idbrnd/design-system 2.3.0 → 3.0.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @idbrnd/design-system
2
2
 
3
- ![Version](https://img.shields.io/badge/version-2.3.0-4B5FE1?style=flat-square)
3
+ ![Version](https://img.shields.io/badge/version-3.0.0-4B5FE1?style=flat-square)
4
4
  ![React](https://img.shields.io/badge/React-18.3.1-61DAFB?style=flat-square&logo=react&logoColor=white)
5
5
  ![Vite](https://img.shields.io/badge/Vite-7.3.0-646CFF?style=flat-square&logo=vite&logoColor=white)
6
6
  ![TypeScript](https://img.shields.io/badge/TypeScript-5.9.3-3178C6?style=flat-square&logo=typescript&logoColor=white)
@@ -166,14 +166,16 @@ import { WeakButton } from "@idbrnd/design-system";
166
166
  import { BasicIconButton } from "@idbrnd/design-system";
167
167
 
168
168
  <BasicIconButton size="large"><SearchIcon /></BasicIconButton>
169
- <BasicIconButton size="small" disabled><SearchIcon /></BasicIconButton>
169
+ <BasicIconButton size="large" touchArea="compact"><SearchIcon /></BasicIconButton>
170
+ <BasicIconButton size="medium" disabled><SearchIcon /></BasicIconButton>
170
171
  ```
171
172
 
172
- | Prop | 타입 | 기본값 | 설명 |
173
- | ------------- | ------------------------------------ | ---------- | ------------------ |
174
- | `size` | `"small"` \| `"medium"` \| `"large"` | `"medium"` | 크기 |
175
- | `disabled` | `boolean` | `false` | 비활성화 |
176
- | `customStyle` | `CSSProperties` | — | 추가 인라인 스타일 |
173
+ | Prop | 타입 | 기본값 | 설명 |
174
+ | ------------- | -------------------------- | ----------- | --------------------------------------------------------------------------------------------------- |
175
+ | `size` | `"medium"` \| `"large"` | `"medium"` | 아이콘 크기 (large: 24×24, medium: 20×20) |
176
+ | `touchArea` | `"default"` \| `"compact"` | `"default"` | 인터랙션 적용 범위. large는 default(44×44)/compact(36×36) 모두 지원, medium은 default(32×32)만 지원 |
177
+ | `disabled` | `boolean` | `false` | 비활성화 |
178
+ | `customStyle` | `CSSProperties` | — | 추가 인라인 스타일 |
177
179
 
178
180
  ### FillIconButton
179
181
 
@@ -1854,6 +1856,7 @@ import type {
1854
1856
  // IconButton
1855
1857
  BasicIconButtonProps,
1856
1858
  BasicIconButtonSize,
1859
+ BasicIconButtonTouchArea,
1857
1860
  FillIconButtonProps,
1858
1861
  FillIconButtonSize,
1859
1862
  FillIconButtonVariant,
@@ -1,10 +1,18 @@
1
- import type { ButtonHTMLAttributes, CSSProperties, ReactNode } from 'react';
2
- export type BasicIconButtonSize = 'large' | 'small';
3
- export interface BasicIconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'style'> {
1
+ import type { ButtonHTMLAttributes, CSSProperties, ReactNode } from "react";
2
+ export type BasicIconButtonSize = "large" | "medium";
3
+ export type BasicIconButtonTouchArea = "default" | "compact";
4
+ export interface BasicIconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "style"> {
4
5
  size?: BasicIconButtonSize;
6
+ /**
7
+ * 인터랙션(hover/focus/active)이 적용되는 터치 영역.
8
+ * - `size="large"`: `default`(44×44) / `compact`(36×36) 모두 지원
9
+ * - `size="medium"`: `default`(32×32)만 지원 — `compact` 전달 시 `default`로 처리됩니다.
10
+ * @defaultValue `'default'`
11
+ */
12
+ touchArea?: BasicIconButtonTouchArea;
5
13
  keepFocusOnClick?: boolean;
6
14
  customStyle?: CSSProperties;
7
15
  children?: ReactNode;
8
16
  }
9
- declare function BasicIconButton({ size, disabled, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: BasicIconButtonProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function BasicIconButton({ size, touchArea, disabled, keepFocusOnClick, customStyle, onClick, className, children, type, ...rest }: BasicIconButtonProps): import("react/jsx-runtime").JSX.Element;
10
18
  export default BasicIconButton;
@@ -0,0 +1 @@
1
+ export default function BasicIconButtonPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IconProps } from "../Icon.types";
2
+ declare const DashboardGraphIcon: ({ size, color, style, ...props }: IconProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DashboardGraphIcon;
@@ -86,6 +86,7 @@ export { default as CollapseSidebarIcon } from "./CollapseSidebarIcon";
86
86
  export { default as CopyIcon } from "./CopyIcon";
87
87
  export { default as DashboardBookCheckIcon } from "./DashboardBookCheckIcon";
88
88
  export { default as DashboardDetectionIcon } from "./DashboardDetectionIcon";
89
+ export { default as DashboardGraphIcon } from "./DashboardGraphIcon";
89
90
  export { default as DashboardHeartPulseIcon } from "./DashboardHeartPulseIcon";
90
91
  export { default as DashboardHistoryIcon } from "./DashboardHistoryIcon";
91
92
  export { default as DashboardLayerIcon } from "./DashboardLayerIcon";
@@ -87,6 +87,7 @@ export declare const iconMap: {
87
87
  readonly copy: ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
88
88
  readonly "dashboard-book-check": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
89
89
  readonly "dashboard-detection": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
90
+ readonly "dashboard-graph": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
90
91
  readonly "dashboard-heart-pulse": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
91
92
  readonly "dashboard-history": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
92
93
  readonly "dashboard-layer": ({ size, color, style, ...props }: import("./Icon.types").IconProps) => import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export type { WeakButtonProps, WeakButtonSize, WeakButtonVariant, WeakButtonWidt
11
11
  export { default as BasicIconButton } from "./components/IconButton/BasicIcon/BasicIconButton";
12
12
  export { default as FillIconButton } from "./components/IconButton/FillIcon/FillIconButton";
13
13
  export { default as OutlineIconButton } from "./components/IconButton/OutlineIcon/OutlineIconButton";
14
- export type { BasicIconButtonProps, BasicIconButtonSize, } from "./components/IconButton/BasicIcon/BasicIconButton";
14
+ export type { BasicIconButtonProps, BasicIconButtonSize, BasicIconButtonTouchArea, } from "./components/IconButton/BasicIcon/BasicIconButton";
15
15
  export type { FillIconButtonProps, FillIconButtonSize, FillIconButtonVariant, } from "./components/IconButton/FillIcon/FillIconButton";
16
16
  export type { OutlineIconButtonProps, OutlineIconButtonSize, } from "./components/IconButton/OutlineIcon/OutlineIconButton";
17
17
  export { default as Input } from "./components/Input/Input";