@t3q-ui/design-system 1.69.3 → 1.69.5

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 (38) hide show
  1. package/CHANGELOG.md +16 -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/components/toast.cjs +12 -1
  31. package/dist/components/toast.cjs.map +1 -1
  32. package/dist/components/toast.js +12 -1
  33. package/dist/components/toast.js.map +1 -1
  34. package/dist/index.d.cts +81 -11
  35. package/dist/index.d.ts +81 -11
  36. package/mcp/manifests/components.json +406 -74
  37. package/package.json +2 -1
  38. package/skills/tds/reference/components.md +17 -5
package/dist/index.d.cts 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 {
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 {