@t3q-ui/design-system 1.69.2 → 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 (45) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +2 -0
  3. package/dist/components/_internal/formControlTarget.cjs +34 -0
  4. package/dist/components/_internal/formControlTarget.cjs.map +1 -0
  5. package/dist/components/_internal/formControlTarget.js +34 -0
  6. package/dist/components/_internal/formControlTarget.js.map +1 -0
  7. package/dist/components/datePicker.cjs +148 -131
  8. package/dist/components/datePicker.cjs.map +1 -1
  9. package/dist/components/datePicker.js +148 -131
  10. package/dist/components/datePicker.js.map +1 -1
  11. package/dist/components/form.cjs +29 -8
  12. package/dist/components/form.cjs.map +1 -1
  13. package/dist/components/form.js +29 -8
  14. package/dist/components/form.js.map +1 -1
  15. package/dist/components/iconSelect/index.cjs +137 -135
  16. package/dist/components/iconSelect/index.cjs.map +1 -1
  17. package/dist/components/iconSelect/index.js +138 -136
  18. package/dist/components/iconSelect/index.js.map +1 -1
  19. package/dist/components/parameterTable/ParameterTable.cjs +1 -0
  20. package/dist/components/parameterTable/ParameterTable.cjs.map +1 -1
  21. package/dist/components/parameterTable/ParameterTable.js +1 -0
  22. package/dist/components/parameterTable/ParameterTable.js.map +1 -1
  23. package/dist/components/parameterTable/ParameterTableRow.cjs +14 -17
  24. package/dist/components/parameterTable/ParameterTableRow.cjs.map +1 -1
  25. package/dist/components/parameterTable/ParameterTableRow.js +14 -17
  26. package/dist/components/parameterTable/ParameterTableRow.js.map +1 -1
  27. package/dist/components/range/range.cjs +89 -64
  28. package/dist/components/range/range.cjs.map +1 -1
  29. package/dist/components/range/range.js +89 -64
  30. package/dist/components/range/range.js.map +1 -1
  31. package/dist/components/range/rangeSlider.cjs +35 -4
  32. package/dist/components/range/rangeSlider.cjs.map +1 -1
  33. package/dist/components/range/rangeSlider.js +35 -4
  34. package/dist/components/range/rangeSlider.js.map +1 -1
  35. package/dist/components/timePicker.cjs +15 -9
  36. package/dist/components/timePicker.cjs.map +1 -1
  37. package/dist/components/timePicker.js +15 -9
  38. package/dist/components/timePicker.js.map +1 -1
  39. package/dist/design-system.css +9 -3
  40. package/dist/index.d.cts +81 -11
  41. package/dist/index.d.ts +81 -11
  42. package/dist/styles.css +22 -3
  43. package/mcp/manifests/components.json +343 -11
  44. package/package.json +1 -1
  45. package/skills/tds/reference/components.md +17 -1
@@ -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.2",
3
+ "version": "1.69.4",
4
4
  "description": "T3Q Design System - React Components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -831,6 +831,10 @@ const GroupVertical = () => <VerticalExample />;
831
831
  | `classNames` | `{ button?: string; PopoverContent?: string; } \| undefined` | | 클래스 오버라이드. `button` = 트리거 틀(기본 폭 250px — 폼 칸을 채우려면 `'w-full'`), `PopoverContent` = 달력 팝오버 |
832
832
  | `label` | `string` | | Floating label 텍스트 |
833
833
  | `required` | `boolean` | | 라벨 필수 표시 (*) |
834
+ | `id` | `string` | | FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다 |
835
+ | `aria-describedby` | `string` | | 도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다 |
836
+ | `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling"` | | 오류 여부. FormControl 안에서는 FormControl 이 넣는다 |
837
+ | `onBlur` | `FocusEventHandler<HTMLButtonElement>` | | 칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다 |
834
838
 
835
839
  예시 — story "Single — 기본 (제어)":
836
840
 
@@ -858,7 +862,7 @@ const Login = () => <LoginForm />;
858
862
 
859
863
  언제 쓰나: 사용자가 항목(카테고리·바로가기·위젯)에 표시할 아이콘을 직접 고를 때. 분류 목록은 `hasCategory`, 한 줄 아이콘 수는 `iconColumnCount`.
860
864
  언제 안 쓰나: 개발자가 화면에 아이콘을 넣을 때(→ LucideIcon 에 이름을 바로), 일반 값 고르기(→ Select).
861
- 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다.
865
+ 대신/함께: 폼에서는 `FormField` + `FormControl` 안에 둔다 — 라벨·오류는 검색 칸에 이어진다(ref 도 검색 칸).
862
866
 
863
867
  | prop | 타입 | 기본값 | 설명 |
864
868
  |---|---|---|---|
@@ -867,6 +871,10 @@ const Login = () => <LoginForm />;
867
871
  | `iconColumnCount` | `number` | `8` | 한 줄에 보여줄 아이콘 수 |
868
872
  | `hasCategory` | `boolean` | `false` | 왼쪽에 카테고리 목록 표시 |
869
873
  | `hiddenSearch` | `boolean` | `false` | 검색 입력 숨김 |
874
+ | `id` | `string` | | FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다 |
875
+ | `aria-describedby` | `string` | | 도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다 |
876
+ | `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling"` | | 오류 여부. FormControl 안에서는 FormControl 이 넣는다 |
877
+ | `onBlur` | `FocusEventHandler<HTMLDivElement>` | | 칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다 |
870
878
 
871
879
  예시 — story "WithCategory — 카테고리 목록 표시":
872
880
 
@@ -984,6 +992,10 @@ const Standalone = () => <StandaloneExample />;
984
992
  | `aria-label` | `string` | | 슬라이더 thumb 과 숫자 입력의 접근 가능한 이름 (예: '학습률') |
985
993
  | `aria-labelledby` | `string` | | 외부 라벨 요소의 id. 지정 시 thumb 과 숫자 입력이 그 요소로 이름을 얻는다 |
986
994
  | `name` | `string` | | 숫자 입력의 name (폼 전송용) |
995
+ | `id` | `string` | | FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다 |
996
+ | `aria-describedby` | `string` | | 도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다 |
997
+ | `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling"` | | 오류 여부. FormControl 안에서는 FormControl 이 넣는다 |
998
+ | `onBlur` | `FocusEventHandler<HTMLDivElement>` | | 칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다 |
987
999
 
988
1000
  예시 — story "Disabled":
989
1001
 
@@ -1151,6 +1163,10 @@ const Controlled = () => <ControlledExample />;
1151
1163
  | `required` | `boolean` | | 라벨 필수 표시 (*) |
1152
1164
  | `minuteStep` | `number` | `5` | 분 간격. |
1153
1165
  | `classNames` | `{ trigger?: string; popoverContent?: string; } \| undefined` | | 클래스 오버라이드. `trigger` = 트리거 틀(기본 폭 160px, 12시간 180px — 폼 칸을 채우려면 `'w-full'`), `popoverContent` = 시·분 팝오버 |
1166
+ | `id` | `string` | | FormLabel 의 htmlFor 가 가리키는 id. FormControl 안에서는 FormControl 이 넣는다 |
1167
+ | `aria-describedby` | `string` | | 도움말·오류 문구의 id. FormControl 안에서는 FormControl 이 넣는다 |
1168
+ | `aria-invalid` | `boolean \| "true" \| "false" \| "grammar" \| "spelling"` | | 오류 여부. FormControl 안에서는 FormControl 이 넣는다 |
1169
+ | `onBlur` | `FocusEventHandler<HTMLButtonElement>` | | 칸을 떠날 때 부른다(열린 목록·칸 안으로 옮기는 포커스는 떠난 것이 아니다). react-hook-form 의 `field.onBlur` 를 넘긴다 |
1154
1170
 
1155
1171
  예시 — story "24hrs (기본)":
1156
1172