@t3q-ui/design-system 1.69.3 → 1.69.4

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 (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/_internal/formControlTarget.cjs +34 -0
  3. package/dist/components/_internal/formControlTarget.cjs.map +1 -0
  4. package/dist/components/_internal/formControlTarget.js +34 -0
  5. package/dist/components/_internal/formControlTarget.js.map +1 -0
  6. package/dist/components/datePicker.cjs +148 -131
  7. package/dist/components/datePicker.cjs.map +1 -1
  8. package/dist/components/datePicker.js +148 -131
  9. package/dist/components/datePicker.js.map +1 -1
  10. package/dist/components/form.cjs +29 -8
  11. package/dist/components/form.cjs.map +1 -1
  12. package/dist/components/form.js +29 -8
  13. package/dist/components/form.js.map +1 -1
  14. package/dist/components/iconSelect/index.cjs +137 -135
  15. package/dist/components/iconSelect/index.cjs.map +1 -1
  16. package/dist/components/iconSelect/index.js +138 -136
  17. package/dist/components/iconSelect/index.js.map +1 -1
  18. package/dist/components/range/range.cjs +89 -64
  19. package/dist/components/range/range.cjs.map +1 -1
  20. package/dist/components/range/range.js +89 -64
  21. package/dist/components/range/range.js.map +1 -1
  22. package/dist/components/range/rangeSlider.cjs +35 -4
  23. package/dist/components/range/rangeSlider.cjs.map +1 -1
  24. package/dist/components/range/rangeSlider.js +35 -4
  25. package/dist/components/range/rangeSlider.js.map +1 -1
  26. package/dist/components/timePicker.cjs +15 -9
  27. package/dist/components/timePicker.cjs.map +1 -1
  28. package/dist/components/timePicker.js +15 -9
  29. package/dist/components/timePicker.js.map +1 -1
  30. package/dist/index.d.cts +81 -11
  31. package/dist/index.d.ts +81 -11
  32. package/mcp/manifests/components.json +343 -11
  33. package/package.json +1 -1
  34. package/skills/tds/reference/components.md +17 -1
package/dist/index.d.ts CHANGED
@@ -577,6 +577,18 @@ declare const CommandShortcut: {
577
577
  displayName: string;
578
578
  };
579
579
 
580
+ /** FormControl 이 자식에 얹는 연결 속성과 react-hook-form 의 onBlur. 칸의 대표 요소(트리거 button·숫자 입력·thumb)가 받는다 */
581
+ interface FormControlTargetProps<T extends Element = Element> {
582
+ /** FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다 */
583
+ id?: string;
584
+ /** 도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다 */
585
+ 'aria-describedby'?: string;
586
+ /** 오류 여부. FormControl 안에서는 FormControl 이 넣는다 */
587
+ 'aria-invalid'?: React$1.AriaAttributes['aria-invalid'];
588
+ /** 칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다 */
589
+ onBlur?: React$1.FocusEventHandler<T>;
590
+ }
591
+
580
592
  type DateRangePresetsProps = {
581
593
  /** 컴포넌트의 각 부분에 대한 className 오버라이드 */
582
594
  className?: {
@@ -647,7 +659,7 @@ type DatePickerProps = {
647
659
  appearance?: 'standard' | 'none';
648
660
  /** 라벨 필수 표시 (*) */
649
661
  required?: boolean;
650
- };
662
+ } & FormControlTargetProps<HTMLButtonElement>;
651
663
  /**
652
664
  * 날짜 하나를 고르는 입력. 트리거를 누르면 달력 팝오버가 열린다.
653
665
  *
@@ -655,9 +667,30 @@ type DatePickerProps = {
655
667
  * 언제 안 쓰나: 기간(→ DatePickerRange), 시각만(→ TimePicker).
656
668
  * 대신/함께: 기본 폭은 250px 이다. 폼 칸을 채우려면 `classNames={{ button: 'w-full' }}`(TimePicker 는 `classNames={{ trigger: 'w-full' }}`) — 좁은 고정 폭이 두 칸 줄의 절반을 비워 감점됐다(2026-10-28 홀드아웃 14).
657
669
  */
658
- declare function DatePicker({ date, setDate, classNames, disabled, placeholder, withPresets, datePresetsProps, calendarProps, isInvalid, label, appearance, required, }: DatePickerProps): react_jsx_runtime.JSX.Element;
670
+ declare const DatePicker: React$1.ForwardRefExoticComponent<{
671
+ date?: Date;
672
+ setDate?: SelectSingleEventHandler;
673
+ /** 클래스 오버라이드. `button` = 트리거 틀(기본 폭 250px — 폼 칸을 채우려면 `'w-full'`), `PopoverContent` = 달력 팝오버 */
674
+ classNames?: {
675
+ button?: string;
676
+ PopoverContent?: string;
677
+ };
678
+ disabled?: boolean;
679
+ placeholder?: string;
680
+ withPresets?: boolean;
681
+ datePresetsProps?: Omit<DatePresetsProps, "date" | "setDate">;
682
+ calendarProps?: CalendarProps;
683
+ isInvalid?: boolean;
684
+ /** Floating label 텍스트 */
685
+ label?: string;
686
+ /** @default 'standard' */
687
+ appearance?: "standard" | "none";
688
+ /** 라벨 필수 표시 (*) */
689
+ required?: boolean;
690
+ } & FormControlTargetProps<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
659
691
  type DatePickerRangeProps = {
660
- date: DateRange;
692
+ /** 고른 기간. 비어 있으면(폼 기본값 등) 빈 칸으로 보인다 */
693
+ date?: DateRange;
661
694
  setDate?: SelectRangeEventHandler;
662
695
  placeholder?: string;
663
696
  withPresets?: boolean;
@@ -678,8 +711,31 @@ type DatePickerRangeProps = {
678
711
  * `defaultMonth` 는 선택된 시작일(`date.from`)이 없을 때만 적용된다.
679
712
  */
680
713
  calendarProps?: Omit<CalendarProps, 'mode' | 'selected' | 'onSelect' | 'numberOfMonths'>;
681
- };
682
- declare function DatePickerRange({ date, setDate, withPresets, placeholder, classNames, disabled, isInvalid, label, appearance, required, calendarProps, }: DatePickerRangeProps): react_jsx_runtime.JSX.Element;
714
+ } & FormControlTargetProps<HTMLButtonElement>;
715
+ declare const DatePickerRange: React$1.ForwardRefExoticComponent<{
716
+ /** 고른 기간. 비어 있으면(폼 기본값 등) 빈 칸으로 보인다 */
717
+ date?: DateRange;
718
+ setDate?: SelectRangeEventHandler;
719
+ placeholder?: string;
720
+ withPresets?: boolean;
721
+ classNames?: {
722
+ button?: string;
723
+ };
724
+ disabled?: boolean;
725
+ isInvalid?: boolean;
726
+ /** Floating label 텍스트 */
727
+ label?: string;
728
+ /** @default 'standard' */
729
+ appearance?: "standard" | "none";
730
+ /** 라벨 필수 표시 (*) */
731
+ required?: boolean;
732
+ /**
733
+ * Calendar 에 전달할 추가 props (예: `defaultMonth`, `disabled` 날짜).
734
+ * `mode`·`selected`·`onSelect`·`numberOfMonths` 는 DatePickerRange 가 관리한다.
735
+ * `defaultMonth` 는 선택된 시작일(`date.from`)이 없을 때만 적용된다.
736
+ */
737
+ calendarProps?: Omit<CalendarProps, "mode" | "selected" | "onSelect" | "numberOfMonths">;
738
+ } & FormControlTargetProps<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
683
739
 
684
740
  /**
685
741
  * 버튼을 눌러 여는 행동 메뉴. 자주 쓰지 않는 행동을 "더보기" 안에 접어 둔다.
@@ -781,6 +837,7 @@ declare const useFormField: () => {
781
837
  id: string;
782
838
  name: string;
783
839
  formItemId: string;
840
+ formLabelId: string;
784
841
  formDescriptionId: string;
785
842
  formMessageId: string;
786
843
  };
@@ -797,6 +854,8 @@ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.L
797
854
  } & React$1.RefAttributes<HTMLLabelElement>>;
798
855
  type FormControlContextValue = {
799
856
  isInvalid: boolean;
857
+ /** FormLabel 의 id(그려져 있을 때만). label 의 htmlFor 가 닿지 못하는 요소(slider thumb)가 aria-labelledby 로 쓴다 */
858
+ labelId?: string;
800
859
  };
801
860
  declare const useFormControlContext: () => FormControlContextValue | null;
802
861
  /**
@@ -871,15 +930,26 @@ type IconSelectProps = {
871
930
  hasCategory?: boolean;
872
931
  /** 검색 입력 숨김 @default false */
873
932
  hiddenSearch?: boolean;
874
- };
933
+ } & FormControlTargetProps<HTMLDivElement>;
875
934
  /**
876
935
  * 아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.
877
936
  *
878
937
  * 언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.
879
938
  * 언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).
880
- * 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.
939
+ * 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다 — 라벨·오류는 검색 칸에 이어진다(ref 도 검색 칸).
881
940
  */
882
- declare function IconSelect({ iconColumnCount, hasCategory, hiddenSearch, ...props }: IconSelectProps): react_jsx_runtime.JSX.Element;
941
+ declare const IconSelect: React$1.ForwardRefExoticComponent<{
942
+ /** 선택된 아이콘 이름 (lucide kebab-case, 예: 'calendar-days') */
943
+ value?: string | null;
944
+ /** 아이콘을 클릭하면 그 아이콘 이름으로 호출된다 */
945
+ onValueChange?: (value: string) => void;
946
+ /** 한 줄에 보여줄 아이콘 수 @default 8 */
947
+ iconColumnCount?: number;
948
+ /** 왼쪽에 카테고리 목록 표시 @default false */
949
+ hasCategory?: boolean;
950
+ /** 검색 입력 숨김 @default false */
951
+ hiddenSearch?: boolean;
952
+ } & FormControlTargetProps<HTMLDivElement> & React$1.RefAttributes<HTMLInputElement>>;
883
953
 
884
954
  type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
885
955
  /** @default 'standard' */
@@ -1601,7 +1671,7 @@ type RangeMark = number | {
1601
1671
  label?: React$1.ReactNode;
1602
1672
  };
1603
1673
 
1604
- interface RangeProps {
1674
+ interface RangeProps extends FormControlTargetProps<HTMLDivElement> {
1605
1675
  min?: number;
1606
1676
  max?: number;
1607
1677
  step?: number;
@@ -2054,7 +2124,7 @@ type TimeValue12 = {
2054
2124
  period: 'AM' | 'PM';
2055
2125
  };
2056
2126
  type HourType = '24hrs' | '12hrs';
2057
- interface TimePickerBaseProps {
2127
+ interface TimePickerBaseProps extends FormControlTargetProps<HTMLButtonElement> {
2058
2128
  /** 플레이스홀더 텍스트 */
2059
2129
  placeholder?: string;
2060
2130
  /** 비활성 상태 */
@@ -2091,7 +2161,7 @@ type TimePickerProps = TimePickerBaseProps & ({
2091
2161
  * 언제 안 쓰나: 날짜만(→ DatePicker), 기간(→ DatePickerRange), 분 단위 지속 시간(→ TextField + 단위).
2092
2162
  * 대신/함께: 기본 폭은 160px(12시간 180px)이다. 폼 칸을 채우려면 `classNames={{ trigger: 'w-full' }}`(DatePicker 는 `classNames={{ button: 'w-full' }}`) — 좁은 고정 폭이 줄의 절반을 비워 감점됐다(2026-10-28 홀드아웃 14).
2093
2163
  */
2094
- declare function TimePicker(props: TimePickerProps): react_jsx_runtime.JSX.Element;
2164
+ declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLButtonElement>>;
2095
2165
 
2096
2166
  type ToastVariant = 'info' | 'success' | 'error' | 'warning';
2097
2167
  interface ToastProps {
@@ -5282,9 +5282,7 @@
5282
5282
  }
5283
5283
  },
5284
5284
  "isInvalid": {
5285
- "defaultValue": {
5286
- "value": "false"
5287
- },
5285
+ "defaultValue": null,
5288
5286
  "description": "",
5289
5287
  "name": "isInvalid",
5290
5288
  "declarations": [
@@ -5353,6 +5351,82 @@
5353
5351
  "type": {
5354
5352
  "name": "boolean"
5355
5353
  }
5354
+ },
5355
+ "id": {
5356
+ "defaultValue": null,
5357
+ "description": "FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다",
5358
+ "name": "id",
5359
+ "parent": {
5360
+ "fileName": "src/components/_internal/formControlTarget.ts",
5361
+ "name": "FormControlTargetProps"
5362
+ },
5363
+ "declarations": [
5364
+ {
5365
+ "fileName": "src/components/_internal/formControlTarget.ts",
5366
+ "name": "FormControlTargetProps"
5367
+ }
5368
+ ],
5369
+ "required": false,
5370
+ "type": {
5371
+ "name": "string"
5372
+ }
5373
+ },
5374
+ "aria-describedby": {
5375
+ "defaultValue": null,
5376
+ "description": "도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다",
5377
+ "name": "aria-describedby",
5378
+ "parent": {
5379
+ "fileName": "src/components/_internal/formControlTarget.ts",
5380
+ "name": "FormControlTargetProps"
5381
+ },
5382
+ "declarations": [
5383
+ {
5384
+ "fileName": "src/components/_internal/formControlTarget.ts",
5385
+ "name": "FormControlTargetProps"
5386
+ }
5387
+ ],
5388
+ "required": false,
5389
+ "type": {
5390
+ "name": "string"
5391
+ }
5392
+ },
5393
+ "aria-invalid": {
5394
+ "defaultValue": null,
5395
+ "description": "오류 여부. FormControl 안에서는 FormControl 이 넣는다",
5396
+ "name": "aria-invalid",
5397
+ "parent": {
5398
+ "fileName": "src/components/_internal/formControlTarget.ts",
5399
+ "name": "FormControlTargetProps"
5400
+ },
5401
+ "declarations": [
5402
+ {
5403
+ "fileName": "src/components/_internal/formControlTarget.ts",
5404
+ "name": "FormControlTargetProps"
5405
+ }
5406
+ ],
5407
+ "required": false,
5408
+ "type": {
5409
+ "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\""
5410
+ }
5411
+ },
5412
+ "onBlur": {
5413
+ "defaultValue": null,
5414
+ "description": "칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다",
5415
+ "name": "onBlur",
5416
+ "parent": {
5417
+ "fileName": "src/components/_internal/formControlTarget.ts",
5418
+ "name": "FormControlTargetProps"
5419
+ },
5420
+ "declarations": [
5421
+ {
5422
+ "fileName": "src/components/_internal/formControlTarget.ts",
5423
+ "name": "FormControlTargetProps"
5424
+ }
5425
+ ],
5426
+ "required": false,
5427
+ "type": {
5428
+ "name": "FocusEventHandler<HTMLButtonElement>"
5429
+ }
5356
5430
  }
5357
5431
  },
5358
5432
  "exportName": "DatePicker"
@@ -5402,9 +5476,19 @@
5402
5476
  "id": "components-inputs-datepicker--range-presets-standalone",
5403
5477
  "name": "DateRangePresets — 단독 사용 (최근 N일 프리셋 + 직접 선택)",
5404
5478
  "snippet": "const RangePresetsStandalone = () => <DateRangePresetsExample />;"
5479
+ },
5480
+ {
5481
+ "id": "components-inputs-datepicker--form-field-error",
5482
+ "name": "Single — 폼 칸 오류 (FormControl)",
5483
+ "snippet": "const FormFieldError = () => (\n <FieldWithError\n label='시작일'\n description='학습을 시작할 날짜입니다.'\n defaultValue={undefined}\n rules={{ required: '시작일을 선택해 주세요.' }}\n render={(field) => (\n <DatePicker\n date={field.value}\n setDate={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n calendarProps={{ defaultMonth: DEFAULT_MONTH }}\n />\n )}\n />\n);"
5484
+ },
5485
+ {
5486
+ "id": "components-inputs-datepicker--range-form-field-error",
5487
+ "name": "Range — 폼 칸 오류 (FormControl)",
5488
+ "snippet": "const RangeFormFieldError = () => (\n <FieldWithError\n label='수집 기간'\n description='시작일과 종료일을 모두 고릅니다.'\n defaultValue={undefined}\n rules={{ validate: (v?: DateRange) => (!!v?.from && !!v?.to) || '기간을 선택해 주세요.' }}\n render={(field) => (\n <DatePickerRange\n date={field.value}\n setDate={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n placeholder='기간'\n calendarProps={{ defaultMonth: DEFAULT_MONTH }}\n />\n )}\n />\n);"
5405
5489
  }
5406
5490
  ],
5407
- "import": "import { DatePicker, DatePickerRange, DatePresets, DateRangePresets, Label } from '@t3q-ui/design-system';"
5491
+ "import": "import {\n DatePicker,\n DatePickerRange,\n DatePresets,\n DateRangePresets,\n FieldWithError,\n Label,\n} from '@t3q-ui/design-system';"
5408
5492
  },
5409
5493
  "patterns-detailpage": {
5410
5494
  "id": "patterns-detailpage",
@@ -7394,7 +7478,7 @@
7394
7478
  ],
7395
7479
  "required": false,
7396
7480
  "type": {
7397
- "name": "Omit<RegisterOptions<TFieldValues, TName>, \"disabled\" | \"valueAsNumber\" | \"valueAsDate\" | \"setValueAs\">"
7481
+ "name": "Omit<RegisterOptions<TFieldValues, TName>, \"disabled\" | \"setValueAs\" | \"valueAsNumber\" | \"valueAsDate\">"
7398
7482
  }
7399
7483
  },
7400
7484
  "shouldUnregister": {
@@ -8806,11 +8890,11 @@
8806
8890
  "name": "IconSelect",
8807
8891
  "path": "./src/stories/IconSelect/IconSelect.stories.tsx",
8808
8892
  "jsDocTags": {},
8809
- "description": "아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.\n\n언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.\n언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).\n대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.",
8893
+ "description": "아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.\n\n언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.\n언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).\n대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다 — 라벨·오류는 검색 칸에 이어진다(ref 도 검색 칸).",
8810
8894
  "reactDocgenTypescript": {
8811
8895
  "tags": {},
8812
8896
  "filePath": "src/components/iconSelect/index.tsx",
8813
- "description": "아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.\n\n언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.\n언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).\n대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.",
8897
+ "description": "아이콘을 검색·분류로 골라 그 이름(lucide)을 돌려주는 아이콘 선택기.\n\n언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.\n언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).\n대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다 — 라벨·오류는 검색 칸에 이어진다(ref 도 검색 칸).",
8814
8898
  "displayName": "IconSelect",
8815
8899
  "methods": [],
8816
8900
  "props": {
@@ -8894,6 +8978,82 @@
8894
8978
  "type": {
8895
8979
  "name": "boolean"
8896
8980
  }
8981
+ },
8982
+ "id": {
8983
+ "defaultValue": null,
8984
+ "description": "FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다",
8985
+ "name": "id",
8986
+ "parent": {
8987
+ "fileName": "src/components/_internal/formControlTarget.ts",
8988
+ "name": "FormControlTargetProps"
8989
+ },
8990
+ "declarations": [
8991
+ {
8992
+ "fileName": "src/components/_internal/formControlTarget.ts",
8993
+ "name": "FormControlTargetProps"
8994
+ }
8995
+ ],
8996
+ "required": false,
8997
+ "type": {
8998
+ "name": "string"
8999
+ }
9000
+ },
9001
+ "aria-describedby": {
9002
+ "defaultValue": null,
9003
+ "description": "도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다",
9004
+ "name": "aria-describedby",
9005
+ "parent": {
9006
+ "fileName": "src/components/_internal/formControlTarget.ts",
9007
+ "name": "FormControlTargetProps"
9008
+ },
9009
+ "declarations": [
9010
+ {
9011
+ "fileName": "src/components/_internal/formControlTarget.ts",
9012
+ "name": "FormControlTargetProps"
9013
+ }
9014
+ ],
9015
+ "required": false,
9016
+ "type": {
9017
+ "name": "string"
9018
+ }
9019
+ },
9020
+ "aria-invalid": {
9021
+ "defaultValue": null,
9022
+ "description": "오류 여부. FormControl 안에서는 FormControl 이 넣는다",
9023
+ "name": "aria-invalid",
9024
+ "parent": {
9025
+ "fileName": "src/components/_internal/formControlTarget.ts",
9026
+ "name": "FormControlTargetProps"
9027
+ },
9028
+ "declarations": [
9029
+ {
9030
+ "fileName": "src/components/_internal/formControlTarget.ts",
9031
+ "name": "FormControlTargetProps"
9032
+ }
9033
+ ],
9034
+ "required": false,
9035
+ "type": {
9036
+ "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\""
9037
+ }
9038
+ },
9039
+ "onBlur": {
9040
+ "defaultValue": null,
9041
+ "description": "칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다",
9042
+ "name": "onBlur",
9043
+ "parent": {
9044
+ "fileName": "src/components/_internal/formControlTarget.ts",
9045
+ "name": "FormControlTargetProps"
9046
+ },
9047
+ "declarations": [
9048
+ {
9049
+ "fileName": "src/components/_internal/formControlTarget.ts",
9050
+ "name": "FormControlTargetProps"
9051
+ }
9052
+ ],
9053
+ "required": false,
9054
+ "type": {
9055
+ "name": "FocusEventHandler<HTMLDivElement>"
9056
+ }
8897
9057
  }
8898
9058
  },
8899
9059
  "exportName": "IconSelect"
@@ -8913,9 +9073,14 @@
8913
9073
  "id": "components-inputs-iconselect--hidden-search",
8914
9074
  "name": "HiddenSearch — 검색 입력 숨김",
8915
9075
  "snippet": "const HiddenSearch = () => <ControlledExample hasCategory={false} hiddenSearch iconColumnCount={6} />;"
9076
+ },
9077
+ {
9078
+ "id": "components-inputs-iconselect--form-field-error",
9079
+ "name": "FormFieldError — 폼 칸 오류 (FormControl)",
9080
+ "snippet": "const FormFieldError = () => (\n <FieldWithError\n label='메뉴 아이콘'\n description='사이드바 메뉴 옆에 보일 아이콘입니다.'\n defaultValue={undefined}\n rules={{ required: '아이콘을 선택해 주세요.' }}\n render={(field) => (\n <IconSelect\n value={field.value}\n onValueChange={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n />\n )}\n />\n);"
8916
9081
  }
8917
9082
  ],
8918
- "import": "import { IconSelect, LucideIcon } from '@t3q-ui/design-system';"
9083
+ "import": "import { FieldWithError, IconSelect, LucideIcon } from '@t3q-ui/design-system';"
8919
9084
  },
8920
9085
  "components-inputs-label": {
8921
9086
  "id": "components-inputs-label",
@@ -12965,6 +13130,82 @@
12965
13130
  "type": {
12966
13131
  "name": "string"
12967
13132
  }
13133
+ },
13134
+ "id": {
13135
+ "defaultValue": null,
13136
+ "description": "FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다",
13137
+ "name": "id",
13138
+ "parent": {
13139
+ "fileName": "src/components/_internal/formControlTarget.ts",
13140
+ "name": "FormControlTargetProps"
13141
+ },
13142
+ "declarations": [
13143
+ {
13144
+ "fileName": "src/components/_internal/formControlTarget.ts",
13145
+ "name": "FormControlTargetProps"
13146
+ }
13147
+ ],
13148
+ "required": false,
13149
+ "type": {
13150
+ "name": "string"
13151
+ }
13152
+ },
13153
+ "aria-describedby": {
13154
+ "defaultValue": null,
13155
+ "description": "도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다",
13156
+ "name": "aria-describedby",
13157
+ "parent": {
13158
+ "fileName": "src/components/_internal/formControlTarget.ts",
13159
+ "name": "FormControlTargetProps"
13160
+ },
13161
+ "declarations": [
13162
+ {
13163
+ "fileName": "src/components/_internal/formControlTarget.ts",
13164
+ "name": "FormControlTargetProps"
13165
+ }
13166
+ ],
13167
+ "required": false,
13168
+ "type": {
13169
+ "name": "string"
13170
+ }
13171
+ },
13172
+ "aria-invalid": {
13173
+ "defaultValue": null,
13174
+ "description": "오류 여부. FormControl 안에서는 FormControl 이 넣는다",
13175
+ "name": "aria-invalid",
13176
+ "parent": {
13177
+ "fileName": "src/components/_internal/formControlTarget.ts",
13178
+ "name": "FormControlTargetProps"
13179
+ },
13180
+ "declarations": [
13181
+ {
13182
+ "fileName": "src/components/_internal/formControlTarget.ts",
13183
+ "name": "FormControlTargetProps"
13184
+ }
13185
+ ],
13186
+ "required": false,
13187
+ "type": {
13188
+ "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\""
13189
+ }
13190
+ },
13191
+ "onBlur": {
13192
+ "defaultValue": null,
13193
+ "description": "칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다",
13194
+ "name": "onBlur",
13195
+ "parent": {
13196
+ "fileName": "src/components/_internal/formControlTarget.ts",
13197
+ "name": "FormControlTargetProps"
13198
+ },
13199
+ "declarations": [
13200
+ {
13201
+ "fileName": "src/components/_internal/formControlTarget.ts",
13202
+ "name": "FormControlTargetProps"
13203
+ }
13204
+ ],
13205
+ "required": false,
13206
+ "type": {
13207
+ "name": "FocusEventHandler<HTMLDivElement>"
13208
+ }
12968
13209
  }
12969
13210
  },
12970
13211
  "exportName": "Range"
@@ -13020,9 +13261,14 @@
13020
13261
  "name": "Matrix — shape × type × disabled",
13021
13262
  "snippet": "const AllVariants = () => (\n <div className='flex flex-col gap-[40px]' style={{ width: 560 }}>\n {SHAPES.map((shape) =>\n TYPES.map((type) =>\n [false, true].map((disabled) => (\n <div key={`${shape}-${type}-${disabled}`} className='flex flex-col gap-[8px]'>\n <span className='text-small-regular text-sys-text-subtle'>\n {shape} · {type} · {disabled ? 'disabled' : 'enabled'}\n </span>\n <Range\n shape={shape}\n type={type}\n disabled={disabled}\n min={0}\n max={type === 'continuous' ? 100 : 10}\n step={1}\n defaultValue={type === 'continuous' ? 40 : 5}\n />\n </div>\n )),\n ),\n )}\n </div>\n);",
13022
13263
  "description": "shape(3) × type(2) × disabled(2) 전체 조합 매트릭스"
13264
+ },
13265
+ {
13266
+ "id": "components-inputs-range--form-field-error",
13267
+ "name": "FormFieldError — 폼 칸 오류 (FormControl)",
13268
+ "snippet": "const FormFieldError = () => (\n <FieldWithError\n label='GPU 수'\n description='분산 학습은 GPU 2개 이상이 필요합니다.'\n defaultValue={1}\n rules={{ validate: (v: number) => v >= 2 || 'GPU 는 2개 이상이어야 합니다.' }}\n render={(field) => (\n <Range\n min={0}\n max={8}\n value={field.value}\n onValueChange={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n />\n )}\n />\n);"
13023
13269
  }
13024
13270
  ],
13025
- "import": "import { Range } from '@t3q-ui/design-system';"
13271
+ "import": "import { FieldWithError, Range } from '@t3q-ui/design-system';"
13026
13272
  },
13027
13273
  "components-inputs-rangeslider": {
13028
13274
  "id": "components-inputs-rangeslider",
@@ -13440,9 +13686,14 @@
13440
13686
  "id": "components-inputs-rangeslider--disabled",
13441
13687
  "name": "Disabled",
13442
13688
  "snippet": "const Disabled = () => <RangeSlider min={0} max={100} step={10} defaultValue={[40]} type=\"discrete\" disabled />;"
13689
+ },
13690
+ {
13691
+ "id": "components-inputs-rangeslider--form-field-error",
13692
+ "name": "FormFieldError — 폼 칸 오류 (FormControl)",
13693
+ "snippet": "const FormFieldError = () => (\n <FieldWithError\n label='점수 구간'\n description='구간 폭은 20 이상입니다.'\n defaultValue={[40, 50]}\n rules={{\n validate: ([lo, hi]: number[]) => hi - lo >= 20 || '구간 폭을 20 이상으로 넓혀 주세요.',\n }}\n render={(field) => (\n <RangeSlider\n step={10}\n value={field.value}\n onValueChange={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n />\n )}\n />\n);"
13443
13694
  }
13444
13695
  ],
13445
- "import": "import { RangeSlider } from '@t3q-ui/design-system';"
13696
+ "import": "import { FieldWithError, RangeSlider } from '@t3q-ui/design-system';"
13446
13697
  },
13447
13698
  "components-inputs-select": {
13448
13699
  "id": "components-inputs-select",
@@ -17511,6 +17762,82 @@
17511
17762
  "name": "{ trigger?: string; popoverContent?: string; } | undefined"
17512
17763
  }
17513
17764
  },
17765
+ "id": {
17766
+ "defaultValue": null,
17767
+ "description": "FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다",
17768
+ "name": "id",
17769
+ "parent": {
17770
+ "fileName": "src/components/_internal/formControlTarget.ts",
17771
+ "name": "FormControlTargetProps"
17772
+ },
17773
+ "declarations": [
17774
+ {
17775
+ "fileName": "src/components/_internal/formControlTarget.ts",
17776
+ "name": "FormControlTargetProps"
17777
+ }
17778
+ ],
17779
+ "required": false,
17780
+ "type": {
17781
+ "name": "string"
17782
+ }
17783
+ },
17784
+ "aria-describedby": {
17785
+ "defaultValue": null,
17786
+ "description": "도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다",
17787
+ "name": "aria-describedby",
17788
+ "parent": {
17789
+ "fileName": "src/components/_internal/formControlTarget.ts",
17790
+ "name": "FormControlTargetProps"
17791
+ },
17792
+ "declarations": [
17793
+ {
17794
+ "fileName": "src/components/_internal/formControlTarget.ts",
17795
+ "name": "FormControlTargetProps"
17796
+ }
17797
+ ],
17798
+ "required": false,
17799
+ "type": {
17800
+ "name": "string"
17801
+ }
17802
+ },
17803
+ "aria-invalid": {
17804
+ "defaultValue": null,
17805
+ "description": "오류 여부. FormControl 안에서는 FormControl 이 넣는다",
17806
+ "name": "aria-invalid",
17807
+ "parent": {
17808
+ "fileName": "src/components/_internal/formControlTarget.ts",
17809
+ "name": "FormControlTargetProps"
17810
+ },
17811
+ "declarations": [
17812
+ {
17813
+ "fileName": "src/components/_internal/formControlTarget.ts",
17814
+ "name": "FormControlTargetProps"
17815
+ }
17816
+ ],
17817
+ "required": false,
17818
+ "type": {
17819
+ "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\""
17820
+ }
17821
+ },
17822
+ "onBlur": {
17823
+ "defaultValue": null,
17824
+ "description": "칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다",
17825
+ "name": "onBlur",
17826
+ "parent": {
17827
+ "fileName": "src/components/_internal/formControlTarget.ts",
17828
+ "name": "FormControlTargetProps"
17829
+ },
17830
+ "declarations": [
17831
+ {
17832
+ "fileName": "src/components/_internal/formControlTarget.ts",
17833
+ "name": "FormControlTargetProps"
17834
+ }
17835
+ ],
17836
+ "required": false,
17837
+ "type": {
17838
+ "name": "FocusEventHandler<HTMLButtonElement>"
17839
+ }
17840
+ },
17514
17841
  "hourType": {
17515
17842
  "defaultValue": {
17516
17843
  "value": "24hrs"
@@ -17612,9 +17939,14 @@
17612
17939
  "id": "components-inputs-timepicker--floating-label",
17613
17940
  "name": "Floating Label (라벨)",
17614
17941
  "snippet": "const FloatingLabel = () => (\n <div className='flex flex-wrap items-start gap-[24px]'>\n <Example label='label'>\n <TimePicker24Example label='시작 시간' />\n </Example>\n <Example label='label + 값'>\n <TimePicker24Example label='시작 시간' defaultValue='14:35' />\n </Example>\n <Example label='label + required'>\n <TimePicker24Example label='시작 시간' required />\n </Example>\n <Example label='label + isInvalid'>\n <TimePicker24Example label='시작 시간' isInvalid />\n </Example>\n <Example label='label (none)'>\n <TimePicker24Example label='시작 시간' appearance='none' />\n </Example>\n <Example label='label + 12hrs + 값'>\n <TimePicker12Example\n label='시작 시간'\n defaultValue={{ hour: 2, minute: 0, period: 'PM' }}\n />\n </Example>\n </div>\n);"
17942
+ },
17943
+ {
17944
+ "id": "components-inputs-timepicker--form-field-error",
17945
+ "name": "폼 칸 오류 (FormControl)",
17946
+ "snippet": "const FormFieldError = () => (\n <FieldWithError\n label='실행 시각'\n description='매일 이 시각에 실행합니다.'\n defaultValue={undefined}\n rules={{ required: '실행 시각을 선택해 주세요.' }}\n render={(field) => (\n <TimePicker\n value={field.value}\n onChange={field.onChange}\n onBlur={field.onBlur}\n ref={field.ref}\n />\n )}\n />\n);"
17615
17947
  }
17616
17948
  ],
17617
- "import": "import { Label, TimePicker } from '@t3q-ui/design-system';"
17949
+ "import": "import { FieldWithError, Label, TimePicker } from '@t3q-ui/design-system';"
17618
17950
  },
17619
17951
  "components-overlay-toast": {
17620
17952
  "id": "components-overlay-toast",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t3q-ui/design-system",
3
- "version": "1.69.3",
3
+ "version": "1.69.4",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",