@t3q-ui/design-system 1.67.1 → 1.67.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/alertDialog.cjs +2 -2
  3. package/dist/components/alertDialog.cjs.map +1 -1
  4. package/dist/components/alertDialog.js +2 -2
  5. package/dist/components/alertDialog.js.map +1 -1
  6. package/dist/components/chatComposer.cjs +6 -6
  7. package/dist/components/chatComposer.cjs.map +1 -1
  8. package/dist/components/chatComposer.js +6 -6
  9. package/dist/components/chatComposer.js.map +1 -1
  10. package/dist/components/columnFilter/ColumnFilter.cjs +15 -25
  11. package/dist/components/columnFilter/ColumnFilter.cjs.map +1 -1
  12. package/dist/components/columnFilter/ColumnFilter.js +15 -25
  13. package/dist/components/columnFilter/ColumnFilter.js.map +1 -1
  14. package/dist/components/columnFilter/ColumnFilterPopover.cjs +1 -1
  15. package/dist/components/columnFilter/ColumnFilterPopover.cjs.map +1 -1
  16. package/dist/components/columnFilter/ColumnFilterPopover.js +1 -1
  17. package/dist/components/columnFilter/ColumnFilterPopover.js.map +1 -1
  18. package/dist/components/dialog.cjs +2 -2
  19. package/dist/components/dialog.cjs.map +1 -1
  20. package/dist/components/dialog.js +2 -2
  21. package/dist/components/dialog.js.map +1 -1
  22. package/dist/components/drawer.cjs +2 -2
  23. package/dist/components/drawer.cjs.map +1 -1
  24. package/dist/components/drawer.js +2 -2
  25. package/dist/components/drawer.js.map +1 -1
  26. package/dist/components/dropdownMenu.cjs +1 -1
  27. package/dist/components/dropdownMenu.cjs.map +1 -1
  28. package/dist/components/dropdownMenu.js +1 -1
  29. package/dist/components/dropdownMenu.js.map +1 -1
  30. package/dist/components/multiSelect/multiSelect.cjs +29 -29
  31. package/dist/components/multiSelect/multiSelect.cjs.map +1 -1
  32. package/dist/components/multiSelect/multiSelect.js +29 -29
  33. package/dist/components/multiSelect/multiSelect.js.map +1 -1
  34. package/dist/components/multiSelect/multiSelectContent.cjs +1 -1
  35. package/dist/components/multiSelect/multiSelectContent.cjs.map +1 -1
  36. package/dist/components/multiSelect/multiSelectContent.js +1 -1
  37. package/dist/components/multiSelect/multiSelectContent.js.map +1 -1
  38. package/dist/components/parameterTable/ParameterTable.cjs +12 -10
  39. package/dist/components/parameterTable/ParameterTable.cjs.map +1 -1
  40. package/dist/components/parameterTable/ParameterTable.js +12 -10
  41. package/dist/components/parameterTable/ParameterTable.js.map +1 -1
  42. package/dist/components/popover.cjs +1 -1
  43. package/dist/components/popover.cjs.map +1 -1
  44. package/dist/components/popover.js +1 -1
  45. package/dist/components/popover.js.map +1 -1
  46. package/dist/components/range/range.cjs.map +1 -1
  47. package/dist/components/range/range.js.map +1 -1
  48. package/dist/components/range/rangeSlider.cjs +9 -12
  49. package/dist/components/range/rangeSlider.cjs.map +1 -1
  50. package/dist/components/range/rangeSlider.js +9 -12
  51. package/dist/components/range/rangeSlider.js.map +1 -1
  52. package/dist/components/range/useRangeValue.cjs +10 -8
  53. package/dist/components/range/useRangeValue.cjs.map +1 -1
  54. package/dist/components/range/useRangeValue.js +10 -8
  55. package/dist/components/range/useRangeValue.js.map +1 -1
  56. package/dist/components/select/select.cjs +7 -12
  57. package/dist/components/select/select.cjs.map +1 -1
  58. package/dist/components/select/select.js +7 -12
  59. package/dist/components/select/select.js.map +1 -1
  60. package/dist/components/select/selectContent.cjs +1 -1
  61. package/dist/components/select/selectContent.cjs.map +1 -1
  62. package/dist/components/select/selectContent.js +1 -1
  63. package/dist/components/select/selectContent.js.map +1 -1
  64. package/dist/components/sidebar/index.cjs +49 -11
  65. package/dist/components/sidebar/index.cjs.map +1 -1
  66. package/dist/components/sidebar/index.js +49 -11
  67. package/dist/components/sidebar/index.js.map +1 -1
  68. package/dist/components/textArea.cjs +10 -8
  69. package/dist/components/textArea.cjs.map +1 -1
  70. package/dist/components/textArea.js +10 -8
  71. package/dist/components/textArea.js.map +1 -1
  72. package/dist/components/textField.cjs +12 -10
  73. package/dist/components/textField.cjs.map +1 -1
  74. package/dist/components/textField.js +12 -10
  75. package/dist/components/textField.js.map +1 -1
  76. package/dist/components/tooltip.cjs +1 -1
  77. package/dist/components/tooltip.cjs.map +1 -1
  78. package/dist/components/tooltip.js +1 -1
  79. package/dist/components/tooltip.js.map +1 -1
  80. package/dist/hooks/useControllableValue.cjs +45 -0
  81. package/dist/hooks/useControllableValue.cjs.map +1 -0
  82. package/dist/hooks/useControllableValue.js +28 -0
  83. package/dist/hooks/useControllableValue.js.map +1 -0
  84. package/dist/{index-Guefjty-.d.cts → index-CWvJ53EI.d.cts} +1 -1
  85. package/dist/{index-Guefjty-.d.ts → index-CWvJ53EI.d.ts} +1 -1
  86. package/dist/index.d.cts +9 -6
  87. package/dist/index.d.ts +9 -6
  88. package/dist/patterns/index.d.cts +1 -1
  89. package/dist/patterns/index.d.ts +1 -1
  90. package/dist/styles.css +11 -1
  91. package/mcp/manifests/components.json +11 -6
  92. package/package.json +1 -1
  93. package/skills/tds/reference/components.md +9 -25
package/dist/index.d.ts CHANGED
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
8
8
  }
9
9
  import { VariantProps } from 'class-variance-authority';
10
10
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
11
- import { B as BadgeProps } from './index-Guefjty-.js';
12
- export { U as AgGridTable, X as AgGridTableType, d as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, o as ChatAttachment, C as ChatComposer, h as ChatComposerProps, i as ChatHistory, k as ChatHistoryGroup, j as ChatHistoryItem, m as ChatHistoryProps, n as ChatMessage, q as ChatMessageProps, p as ChatSource, D as Dialog, u as DialogClose, v as DialogContent, z as DialogDescription, x as DialogFooter, w as DialogHeader, s as DialogOverlay, r as DialogPortal, y as DialogTitle, t as DialogTrigger, A as Drawer, K as DrawerBody, H as DrawerClose, I as DrawerContent, N as DrawerDescription, L as DrawerFooter, J as DrawerHeader, F as DrawerOverlay, E as DrawerPortal, M as DrawerTitle, G as DrawerTrigger, V as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, T as PageHeader, S as PageHeaderProps, Q as PageHeaderProvider, O as PageHeaderState, P as PageHeaderTabItem, W as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, b as badgeVariants, f as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, l as groupChatHistoryByDate, a8 as growColumnIds, R as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-Guefjty-.js';
11
+ import { B as BadgeProps } from './index-CWvJ53EI.js';
12
+ export { U as AgGridTable, X as AgGridTableType, d as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, a as Badge, c as BadgeTone, e as Button, g as ButtonProps, o as ChatAttachment, C as ChatComposer, h as ChatComposerProps, i as ChatHistory, k as ChatHistoryGroup, j as ChatHistoryItem, m as ChatHistoryProps, n as ChatMessage, q as ChatMessageProps, p as ChatSource, D as Dialog, u as DialogClose, v as DialogContent, z as DialogDescription, x as DialogFooter, w as DialogHeader, s as DialogOverlay, r as DialogPortal, y as DialogTitle, t as DialogTrigger, A as Drawer, K as DrawerBody, H as DrawerClose, I as DrawerContent, N as DrawerDescription, L as DrawerFooter, J as DrawerHeader, F as DrawerOverlay, E as DrawerPortal, M as DrawerTitle, G as DrawerTrigger, V as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, T as PageHeader, S as PageHeaderProps, Q as PageHeaderProvider, O as PageHeaderState, P as PageHeaderTabItem, W as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, b as badgeVariants, f as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, l as groupChatHistoryByDate, a8 as growColumnIds, R as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-CWvJ53EI.js';
13
13
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
14
14
  import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
15
15
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
@@ -1402,8 +1402,9 @@ interface MultiSelectProps$1 {
1402
1402
  defaultOpen?: boolean;
1403
1403
  onOpenChange?: (open: boolean) => void;
1404
1404
  /**
1405
- * 트리거 input / Content 의 검색어가 변경될 때 호출.
1406
- * typing 외에도 토글/popup close 시 빈 문자열로 reset 될 때도 호출됨.
1405
+ * 트리거 input / Content 의 검색어가 바뀔 때 새 검색어로 부른다.
1406
+ * 입력할 때, 그리고 항목을 고른 뒤·목록이 닫힐 때 검색어가 비워지면 빈 문자열로 부른다.
1407
+ * 검색어가 그대로면 부르지 않는다 — 마운트할 때도, 부모가 다시 그려질 때도 부르지 않으므로 인라인 콜백·부모 상태 갱신을 넘겨도 된다.
1407
1408
  */
1408
1409
  onSearchChange?: (value: string) => void;
1409
1410
  disabled?: boolean;
@@ -1583,7 +1584,9 @@ declare const SidebarSection: React$1.ForwardRefExoticComponent<React$1.HTMLAttr
1583
1584
  declare const SidebarMenuItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLLIElement> & {
1584
1585
  icon?: string;
1585
1586
  label: string;
1587
+ /** 지금 화면의 메뉴 — 강조해 그리고 `aria-current="page"` 로 알린다 */
1586
1588
  isActive?: boolean;
1589
+ /** 자식 요소(라우터 `Link` 등 포커스를 받는 요소)가 메뉴 항목이 된다. 없으면 `<button>` 을 그린다 */
1587
1590
  asChild?: boolean;
1588
1591
  } & React$1.RefAttributes<HTMLLIElement>>;
1589
1592
  declare const SidebarFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
@@ -1620,7 +1623,7 @@ interface RangeProps {
1620
1623
  min?: number;
1621
1624
  max?: number;
1622
1625
  step?: number;
1623
- /** controlled 값 */
1626
+ /** controlled 값. 주던 값을 `undefined` 로 바꾸면 `min` 이 된다(defaultValue 로 돌아가지 않는다) */
1624
1627
  value?: number;
1625
1628
  /** uncontrolled 초기값 */
1626
1629
  defaultValue?: number;
@@ -1708,7 +1711,7 @@ interface UseRangeValueReturn {
1708
1711
  }
1709
1712
  /**
1710
1713
  * Range 합성 컴포넌트용 단일값 상태 훅.
1711
- * controlled/uncontrolled를 모두 지원하며, 커밋 시 항상 clamp/snap/정밀도 보정을 적용한다.
1714
+ * 제어/비제어는 useControllableValue 규칙을 따른다(받던 value 가 undefined 가 되면 min). 커밋 시 항상 clamp/snap/정밀도 보정을 적용한다.
1712
1715
  */
1713
1716
  declare function useRangeValue({ value, defaultValue, min, max, step, onValueChange, }: UseRangeValueOptions): UseRangeValueReturn;
1714
1717
 
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, ComponentProps } from 'react';
3
3
  import { ColDef } from 'ag-grid-community';
4
- import { B as BadgeProps, X as AgGridTableType, g as ButtonProps, S as PageHeaderProps, I as DrawerContent, v as DialogContent, o as ChatAttachment, p as ChatSource, h as ChatComposerProps, m as ChatHistoryProps } from '../index-Guefjty-.cjs';
4
+ import { B as BadgeProps, X as AgGridTableType, g as ButtonProps, S as PageHeaderProps, I as DrawerContent, v as DialogContent, o as ChatAttachment, p as ChatSource, h as ChatComposerProps, m as ChatHistoryProps } from '../index-CWvJ53EI.cjs';
5
5
  import { FieldValues, UseFormReturn } from 'react-hook-form';
6
6
  import 'class-variance-authority';
7
7
  import '@radix-ui/react-dialog';
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, ComponentProps } from 'react';
3
3
  import { ColDef } from 'ag-grid-community';
4
- import { B as BadgeProps, X as AgGridTableType, g as ButtonProps, S as PageHeaderProps, I as DrawerContent, v as DialogContent, o as ChatAttachment, p as ChatSource, h as ChatComposerProps, m as ChatHistoryProps } from '../index-Guefjty-.js';
4
+ import { B as BadgeProps, X as AgGridTableType, g as ButtonProps, S as PageHeaderProps, I as DrawerContent, v as DialogContent, o as ChatAttachment, p as ChatSource, h as ChatComposerProps, m as ChatHistoryProps } from '../index-CWvJ53EI.js';
5
5
  import { FieldValues, UseFormReturn } from 'react-hook-form';
6
6
  import 'class-variance-authority';
7
7
  import '@radix-ui/react-dialog';
package/dist/styles.css CHANGED
@@ -649,9 +649,19 @@
649
649
  --color-sys-button-disabled-outline: var(--color-secondary-o30);
650
650
  }
651
651
 
652
- /* Overlay z-index: popover, dialog, drawer 등 overlay 컴포넌트의 기본 z-index */
652
+ /* 겹침 층 — 컴포넌트는 아래 세 토큰만 쓴다(숫자·--root-z-index 직접 사용 금지, src/styles/layers.test.ts 가 지킨다).
653
+ 떠 있는 것(Dialog·Drawer·Popover·목록·메뉴)은 모두 한 층이고, 같은 층에서는 나중에 열린 것이 위에 온다.
654
+ 그래서 Drawer 안에서 연 달력이 Drawer 위에, 메뉴에서 연 Dialog 가 메뉴 위에 뜬다. Popover 만 한 단계 아래(1000)에 두었을 때는
655
+ Drawer·Dialog 안의 달력·필터가 가려졌다(2026-11-23).
656
+ 소비 앱은 --root-z-index 하나만 바꾸면 세 층이 함께 움직인다 */
653
657
  :root {
654
658
  --root-z-index: 1001;
659
+ /* 떠 있는 층: Dialog·AlertDialog·Drawer·Popover·Select 목록·DropdownMenu·열 필터 */
660
+ --z-index-overlay: var(--root-z-index);
661
+ /* 툴팁: 떠 있는 것 위의 버튼에도 붙으므로 한 단계 위 */
662
+ --z-index-tooltip: calc(var(--root-z-index) + 1);
663
+ /* 사이드바: 본문 위, 떠 있는 층 아래(기본 500) */
664
+ --z-index-sidebar: max(1, calc(var(--root-z-index) - 501));
655
665
  }
656
666
 
657
667
  /* dark: prefix를 [data-theme='dark']와 연결 */
@@ -1341,7 +1341,7 @@
1341
1341
  "props": {
1342
1342
  "value": {
1343
1343
  "defaultValue": null,
1344
- "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
1344
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다",
1345
1345
  "name": "value",
1346
1346
  "parent": {
1347
1347
  "fileName": "src/components/chatComposer.tsx",
@@ -2629,7 +2629,7 @@
2629
2629
  },
2630
2630
  "value": {
2631
2631
  "defaultValue": null,
2632
- "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
2632
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다",
2633
2633
  "name": "value",
2634
2634
  "parent": {
2635
2635
  "fileName": "src/components/chatComposer.tsx",
@@ -3301,7 +3301,7 @@
3301
3301
  },
3302
3302
  "value": {
3303
3303
  "defaultValue": null,
3304
- "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다",
3304
+ "description": "입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다",
3305
3305
  "name": "value",
3306
3306
  "parent": {
3307
3307
  "fileName": "src/components/chatComposer.tsx",
@@ -6769,9 +6769,14 @@
6769
6769
  "id": "components-overlay-drawer--scrollable-body",
6770
6770
  "name": "ScrollableBody — 긴 본문 스크롤",
6771
6771
  "snippet": "const ScrollableBody = () => (\n <Drawer>\n <DrawerTrigger asChild>\n <Button variant='secondaryOutline'>긴 콘텐츠 열기</Button>\n </DrawerTrigger>\n <DrawerContent size='medium'>\n <DrawerHeader>\n <DrawerTitle>모델 버전 목록</DrawerTitle>\n <DrawerDescription>Body 영역이 넘치면 스크롤됩니다.</DrawerDescription>\n </DrawerHeader>\n <DrawerBody className='flex flex-col gap-[8px] overflow-y-auto px-[24px]'>\n {sampleItems.map((item) => (\n <div key={item.id} className='rounded-small border border-sys-divider-subtler p-[12px]'>\n <p className='text-small-medium text-sys-text-main'>{item.name}</p>\n <p className='text-small-regular text-sys-text-subtler'>{item.description}</p>\n </div>\n ))}\n </DrawerBody>\n <DrawerFooter>\n <DrawerClose asChild>\n <Button variant='secondaryOutline'>닫기</Button>\n </DrawerClose>\n </DrawerFooter>\n </DrawerContent>\n </Drawer>\n);"
6772
+ },
6773
+ {
6774
+ "id": "components-overlay-drawer--with-date-picker",
6775
+ "name": "WithDatePicker — 안에서 달력 열기",
6776
+ "snippet": "const WithDatePicker = () => <ScheduleDrawer />;"
6772
6777
  }
6773
6778
  ],
6774
- "import": "import {\n Button,\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from '@t3q-ui/design-system';"
6779
+ "import": "import {\n Button,\n DatePicker,\n Drawer,\n DrawerBody,\n DrawerClose,\n DrawerContent,\n DrawerDescription,\n DrawerFooter,\n DrawerHeader,\n DrawerTitle,\n DrawerTrigger,\n} from '@t3q-ui/design-system';"
6775
6780
  },
6776
6781
  "components-actions-dropdownmenu": {
6777
6782
  "id": "components-actions-dropdownmenu",
@@ -9580,7 +9585,7 @@
9580
9585
  },
9581
9586
  "onSearchChange": {
9582
9587
  "defaultValue": null,
9583
- "description": "트리거 input / Content 의 검색어가 변경될 때 호출.\ntyping 외에도 토글/popup close 시 빈 문자열로 reset 될 때도 호출됨.",
9588
+ "description": "트리거 input / Content 의 검색어가 바뀔 때 새 검색어로 부른다.\n입력할 때, 그리고 항목을 고른 뒤·목록이 닫힐 때 검색어가 비워지면 빈 문자열로 부른다.\n검색어가 그대로면 부르지 않는다 — 마운트할 때도, 부모가 다시 그려질 때도 부르지 않으므로 인라인 콜백·부모 상태 갱신을 넘겨도 된다.",
9584
9589
  "name": "onSearchChange",
9585
9590
  "parent": {
9586
9591
  "fileName": "src/components/multiSelect/types.ts",
@@ -12360,7 +12365,7 @@
12360
12365
  },
12361
12366
  "value": {
12362
12367
  "defaultValue": null,
12363
- "description": "controlled 값",
12368
+ "description": "controlled 값. 주던 값을 `undefined` 로 바꾸면 `min` 이 된다(defaultValue 로 돌아가지 않는다)",
12364
12369
  "name": "value",
12365
12370
  "parent": {
12366
12371
  "fileName": "src/components/range/range.tsx",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3q-ui/design-system",
3
- "version": "1.67.1",
3
+ "version": "1.67.3",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -38,7 +38,7 @@ MCP `docs-list` / `docs-show <id>` / `docs-show-story` 와 같은 내용이다.
38
38
  | `error` | `ReactNode` | | 주면 메시지 대신 오류 상자 (지난 대화를 못 불러옴). `onRetry` 가 있으면 "다시 시도" 버튼 |
39
39
  | `onRetry` | `(() => void)` | | error 상태의 "다시 시도" 클릭 |
40
40
  | `disabled` | `boolean` | | 입력과 전송을 모두 잠근다 (예: 모델을 아직 고르지 않음). 이유는 `placeholder` 에 적는다 |
41
- | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다 |
41
+ | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다 |
42
42
  | `menu` | `ReactNode` | | `+` 메뉴에 넣을 항목(`DropdownMenuItem`). 주면 아래 줄 왼쪽에 `+` 버튼이 생기고, 누르면 메뉴가 열린다. `onAttach` 가 있으면 "파일 첨부" 가 맨 위에 놓인다 |
43
43
  | `multiple` | `boolean` | | 한 번에 여러 파일을 고를 수 있는가. 기본 true |
44
44
  | `accept` | `string` | | 고를 수 있는 파일 종류 (`<input accept>` 와 같은 형식) |
@@ -88,7 +88,7 @@ const Default = () => <Frame>
88
88
  | `error` | `ReactNode` | | 주면 메시지 대신 오류 상자 (지난 대화를 못 불러옴). `onRetry` 가 있으면 "다시 시도" 버튼 |
89
89
  | `onRetry` | `(() => void)` | | error 상태의 "다시 시도" 클릭 |
90
90
  | `disabled` | `boolean` | | 입력과 전송을 모두 잠근다 (예: 모델을 아직 고르지 않음). 이유는 `placeholder` 에 적는다 |
91
- | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다 |
91
+ | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다 |
92
92
  | `menu` | `ReactNode` | | `+` 메뉴에 넣을 항목(`DropdownMenuItem`). 주면 아래 줄 왼쪽에 `+` 버튼이 생기고, 누르면 메뉴가 열린다. `onAttach` 가 있으면 "파일 첨부" 가 맨 위에 놓인다 |
93
93
  | `multiple` | `boolean` | | 한 번에 여러 파일을 고를 수 있는가. 기본 true |
94
94
  | `accept` | `string` | | 고를 수 있는 파일 종류 (`<input accept>` 와 같은 형식) |
@@ -737,7 +737,7 @@ const Single = () => <SingleCalendar />;
737
737
 
738
738
  | prop | 타입 | 기본값 | 설명 |
739
739
  |---|---|---|---|
740
- | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 없으면 내부 상태로 관리하고 전송 뒤 비운다 |
740
+ | `value` | `string` | | 입력 값. 주면 제어 컴포넌트가 된다(`onValueChange` 와 함께). 처음부터 없으면 내부 상태로 관리하고 전송 뒤 비운다. 주던 값을 `undefined` 로 바꾸면 빈 칸이 된다 |
741
741
  | `onValueChange` | `((value: string) => void)` | | 입력 값이 바뀔 때. 전송 뒤에는 빈 문자열로 불린다 |
742
742
  | `onSubmit` (필수) | `(text: string) => void` | | 전송. 앞뒤 공백을 뗀 글자를 넘긴다. 글 없이 첨부만 있으면 빈 문자열 |
743
743
  | `streaming` | `boolean` | `false` | 답변 생성 중. 전송 버튼이 중지 버튼으로 바뀌고 Enter 로 전송되지 않는다(입력은 계속할 수 있다) |
@@ -876,7 +876,7 @@ const Playground = () => <Label>데이터셋 이름</Label>;
876
876
 
877
877
  | prop | 타입 | 기본값 | 설명 |
878
878
  |---|---|---|---|
879
- | `onSearchChange` | `((value: string) => void)` | | 트리거 input / Content 의 검색어가 변경될 때 호출. typing 외에도 토글/popup close 시 빈 문자열로 reset 될 때도 호출됨. |
879
+ | `onSearchChange` | `((value: string) => void)` | | 트리거 input / Content 의 검색어가 바뀔 때 새 검색어로 부른다. 입력할 때, 그리고 항목을 고른 뒤·목록이 닫힐 때 검색어가 비워지면 빈 문자열로 부른다. 검색어가 그대로면 부르지 않는다 — 마운트할 때도, 부모가 다시 그려질 때도 부르지 않으므로 인라인 콜백·부모 상태 갱신을 넘겨도 된다. |
880
880
  | `className` | `string` | | root container 에 적용할 추가 className. FormControl 의 maxWidth 가 여기에 주입된다. |
881
881
 
882
882
  예시 — story "Basic — controlled":
@@ -951,7 +951,7 @@ const Standalone = () => <StandaloneExample />;
951
951
 
952
952
  | prop | 타입 | 기본값 | 설명 |
953
953
  |---|---|---|---|
954
- | `value` | `number` | | controlled 값 |
954
+ | `value` | `number` | | controlled 값. 주던 값을 `undefined` 로 바꾸면 `min` 이 된다(defaultValue 로 돌아가지 않는다) |
955
955
  | `defaultValue` | `number` | | uncontrolled 초기값 |
956
956
  | `shape` | `enum` | `rounded` | ±버튼·숫자입력 모서리 형태 (트랙/썸/눈금엔 영향 없음) |
957
957
  | `type` | `enum` | `discrete` | discrete: step 눈금/숫자, continuous: 양끝 라벨만 |
@@ -1547,26 +1547,10 @@ const OpenByDefault = () => (
1547
1547
  | `onOpenAutoFocus` | `((event: Event) => void)` | | Event handler called when auto-focusing on open. Can be prevented. |
1548
1548
  | `onCloseAutoFocus` | `((event: Event) => void)` | | Event handler called when auto-focusing on close. Can be prevented. |
1549
1549
 
1550
- 예시 — story "Sizes — small·medium·large·xLarge":
1551
-
1552
- ```tsx
1553
- const Sizes = () => (
1554
- <div className='flex gap-[8px]'>
1555
- {(['small', 'medium', 'large', 'xLarge'] as const).map((size) => (
1556
- <Drawer key={size}>
1557
- <DrawerTrigger asChild>
1558
- <Button variant='secondaryOutline'>{size}</Button>
1559
- </DrawerTrigger>
1560
- <DrawerContent size={size}>
1561
- <DrawerHeader>
1562
- <DrawerTitle>{size} 크기</DrawerTitle>
1563
- <DrawerDescription>size=&quot;{size}&quot;</DrawerDescription>
1564
- </DrawerHeader>
1565
- </DrawerContent>
1566
- </Drawer>
1567
- ))}
1568
- </div>
1569
- );
1550
+ 예시 — story "WithDatePicker — 안에서 달력 열기":
1551
+
1552
+ ```tsx
1553
+ const WithDatePicker = () => <ScheduleDrawer />;
1570
1554
  ```
1571
1555
 
1572
1556
  ## PopoverContent (`components-overlay-popover`)