@lucian-seo/lucian-ui 0.1.1

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 (401) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -0
  3. package/dist/lib/Input-Bv7L1_wj.js +90 -0
  4. package/dist/lib/Input-Bv7L1_wj.js.map +1 -0
  5. package/dist/lib/Menu-B3G64GV4.js +321 -0
  6. package/dist/lib/Menu-B3G64GV4.js.map +1 -0
  7. package/dist/lib/Switch-BkMnC02l.js +999 -0
  8. package/dist/lib/Switch-BkMnC02l.js.map +1 -0
  9. package/dist/lib/Tag-Z8PjnJFt.js +60 -0
  10. package/dist/lib/Tag-Z8PjnJFt.js.map +1 -0
  11. package/dist/lib/TagInput-BaGz-QKU.js +372 -0
  12. package/dist/lib/TagInput-BaGz-QKU.js.map +1 -0
  13. package/dist/lib/Text-D7hoYpuZ.js +26 -0
  14. package/dist/lib/Text-D7hoYpuZ.js.map +1 -0
  15. package/dist/lib/ToggleButton-D6oEjMeF.js +238 -0
  16. package/dist/lib/ToggleButton-D6oEjMeF.js.map +1 -0
  17. package/dist/lib/Toolbar-DiP1iR_t.js +3088 -0
  18. package/dist/lib/Toolbar-DiP1iR_t.js.map +1 -0
  19. package/dist/lib/Tooltip-BJSUlXS2.js +117 -0
  20. package/dist/lib/Tooltip-BJSUlXS2.js.map +1 -0
  21. package/dist/lib/VisuallyHidden-DcE0EFpo.js +194 -0
  22. package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +1 -0
  23. package/dist/lib/VoiceControlBar-CWDLR71w.js +3447 -0
  24. package/dist/lib/VoiceControlBar-CWDLR71w.js.map +1 -0
  25. package/dist/lib/Waveform-BIE2Ztc8.js +318 -0
  26. package/dist/lib/Waveform-BIE2Ztc8.js.map +1 -0
  27. package/dist/lib/components/common/AspectRatio/AspectRatio.d.ts +26 -0
  28. package/dist/lib/components/common/AspectRatio/index.d.ts +2 -0
  29. package/dist/lib/components/common/Avatar/Avatar.d.ts +58 -0
  30. package/dist/lib/components/common/Avatar/index.d.ts +2 -0
  31. package/dist/lib/components/common/Badge/Badge.d.ts +36 -0
  32. package/dist/lib/components/common/Badge/index.d.ts +2 -0
  33. package/dist/lib/components/common/Blockquote/Blockquote.d.ts +40 -0
  34. package/dist/lib/components/common/Blockquote/index.d.ts +2 -0
  35. package/dist/lib/components/common/Button/Button.d.ts +38 -0
  36. package/dist/lib/components/common/Button/index.d.ts +2 -0
  37. package/dist/lib/components/common/CalibratedPulse/CalibratedPulse.d.ts +63 -0
  38. package/dist/lib/components/common/CalibratedPulse/index.d.ts +2 -0
  39. package/dist/lib/components/common/Center/Center.d.ts +23 -0
  40. package/dist/lib/components/common/Center/index.d.ts +2 -0
  41. package/dist/lib/components/common/Checkbox/Checkbox.d.ts +35 -0
  42. package/dist/lib/components/common/Checkbox/index.d.ts +2 -0
  43. package/dist/lib/components/common/Code/Code.d.ts +37 -0
  44. package/dist/lib/components/common/Code/index.d.ts +2 -0
  45. package/dist/lib/components/common/Collapse/Collapse.d.ts +29 -0
  46. package/dist/lib/components/common/Collapse/index.d.ts +2 -0
  47. package/dist/lib/components/common/Container/Container.d.ts +28 -0
  48. package/dist/lib/components/common/Container/index.d.ts +2 -0
  49. package/dist/lib/components/common/Divider/Divider.d.ts +28 -0
  50. package/dist/lib/components/common/Divider/index.d.ts +2 -0
  51. package/dist/lib/components/common/FileInput/FileInput.d.ts +52 -0
  52. package/dist/lib/components/common/FileInput/index.d.ts +2 -0
  53. package/dist/lib/components/common/Flex/Flex.d.ts +35 -0
  54. package/dist/lib/components/common/Flex/index.d.ts +2 -0
  55. package/dist/lib/components/common/Glass/Glass.d.ts +35 -0
  56. package/dist/lib/components/common/Glass/index.d.ts +2 -0
  57. package/dist/lib/components/common/Glass/refraction.d.ts +24 -0
  58. package/dist/lib/components/common/Glass/rim.d.ts +37 -0
  59. package/dist/lib/components/common/Grid/Grid.d.ts +28 -0
  60. package/dist/lib/components/common/Grid/GridItem.d.ts +31 -0
  61. package/dist/lib/components/common/Grid/index.d.ts +4 -0
  62. package/dist/lib/components/common/Group/Group.d.ts +38 -0
  63. package/dist/lib/components/common/Group/index.d.ts +2 -0
  64. package/dist/lib/components/common/Highlight/Highlight.d.ts +63 -0
  65. package/dist/lib/components/common/Highlight/index.d.ts +2 -0
  66. package/dist/lib/components/common/Icon/Icon.d.ts +39 -0
  67. package/dist/lib/components/common/Icon/index.d.ts +2 -0
  68. package/dist/lib/components/common/IconButton/IconButton.d.ts +34 -0
  69. package/dist/lib/components/common/IconButton/index.d.ts +2 -0
  70. package/dist/lib/components/common/Indicator/Indicator.d.ts +51 -0
  71. package/dist/lib/components/common/Indicator/index.d.ts +2 -0
  72. package/dist/lib/components/common/Input/Input.d.ts +84 -0
  73. package/dist/lib/components/common/Input/index.d.ts +2 -0
  74. package/dist/lib/components/common/Kbd/Kbd.d.ts +34 -0
  75. package/dist/lib/components/common/Kbd/index.d.ts +2 -0
  76. package/dist/lib/components/common/Link/Link.d.ts +21 -0
  77. package/dist/lib/components/common/Link/index.d.ts +2 -0
  78. package/dist/lib/components/common/Mark/Mark.d.ts +38 -0
  79. package/dist/lib/components/common/Mark/index.d.ts +2 -0
  80. package/dist/lib/components/common/MultiSelect/MultiSelect.d.ts +54 -0
  81. package/dist/lib/components/common/MultiSelect/index.d.ts +2 -0
  82. package/dist/lib/components/common/PinInput/PinInput.d.ts +49 -0
  83. package/dist/lib/components/common/PinInput/index.d.ts +2 -0
  84. package/dist/lib/components/common/Progress/Progress.d.ts +30 -0
  85. package/dist/lib/components/common/Progress/index.d.ts +2 -0
  86. package/dist/lib/components/common/Radio/Radio.d.ts +45 -0
  87. package/dist/lib/components/common/Radio/index.d.ts +2 -0
  88. package/dist/lib/components/common/RingProgress/RingProgress.d.ts +40 -0
  89. package/dist/lib/components/common/RingProgress/index.d.ts +2 -0
  90. package/dist/lib/components/common/ScrollArea/ScrollArea.d.ts +33 -0
  91. package/dist/lib/components/common/ScrollArea/index.d.ts +2 -0
  92. package/dist/lib/components/common/Select/Select.d.ts +50 -0
  93. package/dist/lib/components/common/Select/index.d.ts +2 -0
  94. package/dist/lib/components/common/Select/listbox.d.ts +68 -0
  95. package/dist/lib/components/common/SimpleGrid/SimpleGrid.d.ts +30 -0
  96. package/dist/lib/components/common/SimpleGrid/index.d.ts +2 -0
  97. package/dist/lib/components/common/Skeleton/Skeleton.d.ts +23 -0
  98. package/dist/lib/components/common/Skeleton/index.d.ts +2 -0
  99. package/dist/lib/components/common/Slider/Slider.d.ts +55 -0
  100. package/dist/lib/components/common/Slider/index.d.ts +2 -0
  101. package/dist/lib/components/common/Space/Space.d.ts +29 -0
  102. package/dist/lib/components/common/Space/index.d.ts +2 -0
  103. package/dist/lib/components/common/Spinner/Spinner.d.ts +25 -0
  104. package/dist/lib/components/common/Spinner/index.d.ts +2 -0
  105. package/dist/lib/components/common/Stack/Stack.d.ts +41 -0
  106. package/dist/lib/components/common/Stack/index.d.ts +2 -0
  107. package/dist/lib/components/common/Switch/Switch.d.ts +28 -0
  108. package/dist/lib/components/common/Switch/index.d.ts +2 -0
  109. package/dist/lib/components/common/Text/Text.d.ts +57 -0
  110. package/dist/lib/components/common/Text/index.d.ts +2 -0
  111. package/dist/lib/components/common/Textarea/Textarea.d.ts +29 -0
  112. package/dist/lib/components/common/Textarea/index.d.ts +2 -0
  113. package/dist/lib/components/common/Tooltip/Tooltip.d.ts +33 -0
  114. package/dist/lib/components/common/Tooltip/index.d.ts +2 -0
  115. package/dist/lib/components/common/VisuallyHidden/VisuallyHidden.d.ts +20 -0
  116. package/dist/lib/components/common/VisuallyHidden/index.d.ts +2 -0
  117. package/dist/lib/components/common/Waveform/Waveform.d.ts +66 -0
  118. package/dist/lib/components/common/Waveform/index.d.ts +2 -0
  119. package/dist/lib/components/common/index.d.ts +44 -0
  120. package/dist/lib/components/common/index.js +7 -0
  121. package/dist/lib/components/composed/AppShell/AppShell.d.ts +95 -0
  122. package/dist/lib/components/composed/AppShell/index.d.ts +2 -0
  123. package/dist/lib/components/composed/Breadcrumb/Breadcrumb.d.ts +46 -0
  124. package/dist/lib/components/composed/Breadcrumb/index.d.ts +2 -0
  125. package/dist/lib/components/composed/BulkActionBar/BulkActionBar.d.ts +48 -0
  126. package/dist/lib/components/composed/BulkActionBar/index.d.ts +2 -0
  127. package/dist/lib/components/composed/Callout/Callout.d.ts +43 -0
  128. package/dist/lib/components/composed/Callout/index.d.ts +2 -0
  129. package/dist/lib/components/composed/Card/Card.d.ts +80 -0
  130. package/dist/lib/components/composed/Card/index.d.ts +2 -0
  131. package/dist/lib/components/composed/Carousel/Carousel.d.ts +52 -0
  132. package/dist/lib/components/composed/Carousel/index.d.ts +2 -0
  133. package/dist/lib/components/composed/Combobox/Combobox.d.ts +50 -0
  134. package/dist/lib/components/composed/Combobox/index.d.ts +2 -0
  135. package/dist/lib/components/composed/CommandPalette/CommandPalette.d.ts +51 -0
  136. package/dist/lib/components/composed/CommandPalette/index.d.ts +2 -0
  137. package/dist/lib/components/composed/DatePicker/Calendar.d.ts +49 -0
  138. package/dist/lib/components/composed/DatePicker/DatePicker.d.ts +36 -0
  139. package/dist/lib/components/composed/DatePicker/dates.d.ts +50 -0
  140. package/dist/lib/components/composed/DatePicker/index.d.ts +3 -0
  141. package/dist/lib/components/composed/DateRangePicker/DateRangePicker.d.ts +40 -0
  142. package/dist/lib/components/composed/DateRangePicker/index.d.ts +2 -0
  143. package/dist/lib/components/composed/Disclosure/Disclosure.d.ts +44 -0
  144. package/dist/lib/components/composed/Disclosure/index.d.ts +2 -0
  145. package/dist/lib/components/composed/Drawer/Drawer.d.ts +39 -0
  146. package/dist/lib/components/composed/Drawer/index.d.ts +2 -0
  147. package/dist/lib/components/composed/EmptyState/EmptyState.d.ts +43 -0
  148. package/dist/lib/components/composed/EmptyState/index.d.ts +2 -0
  149. package/dist/lib/components/composed/Field/Field.d.ts +63 -0
  150. package/dist/lib/components/composed/Field/index.d.ts +2 -0
  151. package/dist/lib/components/composed/FilterBar/FilterBar.d.ts +58 -0
  152. package/dist/lib/components/composed/FilterBar/index.d.ts +2 -0
  153. package/dist/lib/components/composed/FormSection/FormSection.d.ts +35 -0
  154. package/dist/lib/components/composed/FormSection/index.d.ts +2 -0
  155. package/dist/lib/components/composed/ListRow/ListRow.d.ts +83 -0
  156. package/dist/lib/components/composed/ListRow/index.d.ts +2 -0
  157. package/dist/lib/components/composed/Menu/Menu.d.ts +102 -0
  158. package/dist/lib/components/composed/Menu/index.d.ts +2 -0
  159. package/dist/lib/components/composed/Menu/scope.d.ts +15 -0
  160. package/dist/lib/components/composed/Modal/Modal.d.ts +65 -0
  161. package/dist/lib/components/composed/Modal/index.d.ts +2 -0
  162. package/dist/lib/components/composed/PageHeader/PageHeader.d.ts +46 -0
  163. package/dist/lib/components/composed/PageHeader/index.d.ts +2 -0
  164. package/dist/lib/components/composed/Pagination/Pagination.d.ts +48 -0
  165. package/dist/lib/components/composed/Pagination/index.d.ts +2 -0
  166. package/dist/lib/components/composed/Popover/Popover.d.ts +47 -0
  167. package/dist/lib/components/composed/Popover/index.d.ts +2 -0
  168. package/dist/lib/components/composed/PreferenceRow/PreferenceRow.d.ts +43 -0
  169. package/dist/lib/components/composed/PreferenceRow/index.d.ts +2 -0
  170. package/dist/lib/components/composed/Sheet/Sheet.d.ts +53 -0
  171. package/dist/lib/components/composed/Sheet/index.d.ts +2 -0
  172. package/dist/lib/components/composed/SidePanel/SidePanel.d.ts +34 -0
  173. package/dist/lib/components/composed/SidePanel/index.d.ts +2 -0
  174. package/dist/lib/components/composed/SidebarNav/SidebarNav.d.ts +85 -0
  175. package/dist/lib/components/composed/SidebarNav/index.d.ts +2 -0
  176. package/dist/lib/components/composed/Spotlight/Spotlight.d.ts +57 -0
  177. package/dist/lib/components/composed/Spotlight/index.d.ts +2 -0
  178. package/dist/lib/components/composed/Stepper/Stepper.d.ts +36 -0
  179. package/dist/lib/components/composed/Stepper/index.d.ts +2 -0
  180. package/dist/lib/components/composed/Table/Table.d.ts +142 -0
  181. package/dist/lib/components/composed/Table/index.d.ts +2 -0
  182. package/dist/lib/components/composed/Tabs/Tabs.d.ts +48 -0
  183. package/dist/lib/components/composed/Tabs/index.d.ts +2 -0
  184. package/dist/lib/components/composed/TimeInput/TimeInput.d.ts +41 -0
  185. package/dist/lib/components/composed/TimeInput/index.d.ts +3 -0
  186. package/dist/lib/components/composed/TimeInput/times.d.ts +47 -0
  187. package/dist/lib/components/composed/Toast/Toast.d.ts +37 -0
  188. package/dist/lib/components/composed/Toast/index.d.ts +2 -0
  189. package/dist/lib/components/composed/Toolbar/Toolbar.d.ts +45 -0
  190. package/dist/lib/components/composed/Toolbar/index.d.ts +2 -0
  191. package/dist/lib/components/composed/index.d.ts +33 -0
  192. package/dist/lib/components/composed/index.js +3 -0
  193. package/dist/lib/components/derived/AvatarGroup/AvatarGroup.d.ts +52 -0
  194. package/dist/lib/components/derived/AvatarGroup/index.d.ts +2 -0
  195. package/dist/lib/components/derived/ButtonGroup/ButtonGroup.d.ts +33 -0
  196. package/dist/lib/components/derived/ButtonGroup/index.d.ts +2 -0
  197. package/dist/lib/components/derived/ChoiceCard/ChoiceCard.d.ts +43 -0
  198. package/dist/lib/components/derived/ChoiceCard/index.d.ts +2 -0
  199. package/dist/lib/components/derived/InputGroup/InputGroup.d.ts +23 -0
  200. package/dist/lib/components/derived/InputGroup/index.d.ts +2 -0
  201. package/dist/lib/components/derived/MorphIcon/MorphIcon.d.ts +71 -0
  202. package/dist/lib/components/derived/MorphIcon/index.d.ts +2 -0
  203. package/dist/lib/components/derived/NumberFlow/NumberFlow.d.ts +47 -0
  204. package/dist/lib/components/derived/NumberFlow/index.d.ts +2 -0
  205. package/dist/lib/components/derived/NumberInput/NumberInput.d.ts +54 -0
  206. package/dist/lib/components/derived/NumberInput/index.d.ts +2 -0
  207. package/dist/lib/components/derived/PasswordInput/PasswordInput.d.ts +53 -0
  208. package/dist/lib/components/derived/PasswordInput/index.d.ts +2 -0
  209. package/dist/lib/components/derived/SearchInput/SearchInput.d.ts +33 -0
  210. package/dist/lib/components/derived/SearchInput/index.d.ts +2 -0
  211. package/dist/lib/components/derived/SegmentedControl/SegmentedControl.d.ts +44 -0
  212. package/dist/lib/components/derived/SegmentedControl/index.d.ts +2 -0
  213. package/dist/lib/components/derived/SplitButton/SplitButton.d.ts +42 -0
  214. package/dist/lib/components/derived/SplitButton/index.d.ts +2 -0
  215. package/dist/lib/components/derived/StatusDot/StatusDot.d.ts +31 -0
  216. package/dist/lib/components/derived/StatusDot/index.d.ts +2 -0
  217. package/dist/lib/components/derived/Tag/Tag.d.ts +47 -0
  218. package/dist/lib/components/derived/Tag/index.d.ts +2 -0
  219. package/dist/lib/components/derived/TagInput/TagInput.d.ts +28 -0
  220. package/dist/lib/components/derived/TagInput/index.d.ts +2 -0
  221. package/dist/lib/components/derived/TextCycle/TextCycle.d.ts +40 -0
  222. package/dist/lib/components/derived/TextCycle/index.d.ts +2 -0
  223. package/dist/lib/components/derived/ToggleButton/ToggleButton.d.ts +43 -0
  224. package/dist/lib/components/derived/ToggleButton/index.d.ts +2 -0
  225. package/dist/lib/components/derived/index.d.ts +16 -0
  226. package/dist/lib/components/derived/index.js +4 -0
  227. package/dist/lib/components/extended/ActivityList/ActivityList.d.ts +38 -0
  228. package/dist/lib/components/extended/ActivityList/index.d.ts +2 -0
  229. package/dist/lib/components/extended/AddressForm/AddressForm.d.ts +71 -0
  230. package/dist/lib/components/extended/AddressForm/index.d.ts +2 -0
  231. package/dist/lib/components/extended/ApprovalGate/ApprovalGate.d.ts +60 -0
  232. package/dist/lib/components/extended/ApprovalGate/index.d.ts +2 -0
  233. package/dist/lib/components/extended/BackgroundProgress/BackgroundProgress.d.ts +63 -0
  234. package/dist/lib/components/extended/BackgroundProgress/index.d.ts +2 -0
  235. package/dist/lib/components/extended/Citation/Citation.d.ts +61 -0
  236. package/dist/lib/components/extended/Citation/index.d.ts +2 -0
  237. package/dist/lib/components/extended/CommentThread/CommentThread.d.ts +61 -0
  238. package/dist/lib/components/extended/CommentThread/index.d.ts +2 -0
  239. package/dist/lib/components/extended/Composer/Composer.d.ts +57 -0
  240. package/dist/lib/components/extended/Composer/index.d.ts +2 -0
  241. package/dist/lib/components/extended/CouponField/CouponField.d.ts +59 -0
  242. package/dist/lib/components/extended/CouponField/index.d.ts +2 -0
  243. package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +161 -0
  244. package/dist/lib/components/extended/DataGrid/DataGrid.state.d.ts +93 -0
  245. package/dist/lib/components/extended/DataGrid/index.d.ts +2 -0
  246. package/dist/lib/components/extended/Dropzone/Dropzone.d.ts +83 -0
  247. package/dist/lib/components/extended/Dropzone/index.d.ts +2 -0
  248. package/dist/lib/components/extended/FeedbackControl/FeedbackControl.d.ts +47 -0
  249. package/dist/lib/components/extended/FeedbackControl/index.d.ts +2 -0
  250. package/dist/lib/components/extended/FilterBuilder/FilterBuilder.d.ts +67 -0
  251. package/dist/lib/components/extended/FilterBuilder/index.d.ts +2 -0
  252. package/dist/lib/components/extended/FollowUpList/FollowUpList.d.ts +34 -0
  253. package/dist/lib/components/extended/FollowUpList/index.d.ts +2 -0
  254. package/dist/lib/components/extended/KanbanColumn/KanbanColumn.d.ts +62 -0
  255. package/dist/lib/components/extended/KanbanColumn/index.d.ts +2 -0
  256. package/dist/lib/components/extended/Message/Message.d.ts +43 -0
  257. package/dist/lib/components/extended/Message/index.d.ts +2 -0
  258. package/dist/lib/components/extended/MessageList/MessageList.d.ts +66 -0
  259. package/dist/lib/components/extended/MessageList/index.d.ts +2 -0
  260. package/dist/lib/components/extended/MetricCard/MetricCard.d.ts +60 -0
  261. package/dist/lib/components/extended/MetricCard/index.d.ts +2 -0
  262. package/dist/lib/components/extended/OrderSummary/OrderSummary.d.ts +70 -0
  263. package/dist/lib/components/extended/OrderSummary/index.d.ts +2 -0
  264. package/dist/lib/components/extended/PaymentMethodSelector/PaymentMethodSelector.d.ts +65 -0
  265. package/dist/lib/components/extended/PaymentMethodSelector/index.d.ts +2 -0
  266. package/dist/lib/components/extended/PresenceBar/PresenceBar.d.ts +49 -0
  267. package/dist/lib/components/extended/PresenceBar/index.d.ts +2 -0
  268. package/dist/lib/components/extended/PriceDisplay/PriceDisplay.d.ts +53 -0
  269. package/dist/lib/components/extended/PriceDisplay/index.d.ts +2 -0
  270. package/dist/lib/components/extended/ProductCard/ProductCard.d.ts +58 -0
  271. package/dist/lib/components/extended/ProductCard/index.d.ts +2 -0
  272. package/dist/lib/components/extended/QuantityStepper/QuantityStepper.d.ts +41 -0
  273. package/dist/lib/components/extended/QuantityStepper/index.d.ts +2 -0
  274. package/dist/lib/components/extended/ReasoningDisclosure/ReasoningDisclosure.d.ts +33 -0
  275. package/dist/lib/components/extended/ReasoningDisclosure/index.d.ts +2 -0
  276. package/dist/lib/components/extended/RecognitionFallback/RecognitionFallback.d.ts +57 -0
  277. package/dist/lib/components/extended/RecognitionFallback/index.d.ts +2 -0
  278. package/dist/lib/components/extended/RunStatusCard/RunStatusCard.d.ts +51 -0
  279. package/dist/lib/components/extended/RunStatusCard/index.d.ts +2 -0
  280. package/dist/lib/components/extended/SavedViewTabs/SavedViewTabs.d.ts +49 -0
  281. package/dist/lib/components/extended/SavedViewTabs/index.d.ts +2 -0
  282. package/dist/lib/components/extended/SourceChip/SourceChip.d.ts +37 -0
  283. package/dist/lib/components/extended/SourceChip/index.d.ts +2 -0
  284. package/dist/lib/components/extended/SourceChipRow/SourceChipRow.d.ts +54 -0
  285. package/dist/lib/components/extended/SourceChipRow/index.d.ts +2 -0
  286. package/dist/lib/components/extended/SourcePanel/SourcePanel.d.ts +46 -0
  287. package/dist/lib/components/extended/SourcePanel/index.d.ts +2 -0
  288. package/dist/lib/components/extended/StreamingText/StreamingText.d.ts +30 -0
  289. package/dist/lib/components/extended/StreamingText/index.d.ts +2 -0
  290. package/dist/lib/components/extended/ToolCallCard/ToolCallCard.d.ts +52 -0
  291. package/dist/lib/components/extended/ToolCallCard/index.d.ts +2 -0
  292. package/dist/lib/components/extended/TranscriptSync/TranscriptSync.d.ts +58 -0
  293. package/dist/lib/components/extended/TranscriptSync/index.d.ts +2 -0
  294. package/dist/lib/components/extended/TrustBlock/TrustBlock.d.ts +37 -0
  295. package/dist/lib/components/extended/TrustBlock/index.d.ts +2 -0
  296. package/dist/lib/components/extended/VoiceControlBar/VoiceControlBar.d.ts +77 -0
  297. package/dist/lib/components/extended/VoiceControlBar/index.d.ts +2 -0
  298. package/dist/lib/components/extended/index.d.ts +35 -0
  299. package/dist/lib/components/extended/index.js +2 -0
  300. package/dist/lib/fonts/pretendard/LICENSE.txt +94 -0
  301. package/dist/lib/fonts/pretendard/PretendardVariable.subset.0.woff2 +0 -0
  302. package/dist/lib/fonts/pretendard/PretendardVariable.subset.1.woff2 +0 -0
  303. package/dist/lib/fonts/pretendard/PretendardVariable.subset.10.woff2 +0 -0
  304. package/dist/lib/fonts/pretendard/PretendardVariable.subset.11.woff2 +0 -0
  305. package/dist/lib/fonts/pretendard/PretendardVariable.subset.12.woff2 +0 -0
  306. package/dist/lib/fonts/pretendard/PretendardVariable.subset.13.woff2 +0 -0
  307. package/dist/lib/fonts/pretendard/PretendardVariable.subset.14.woff2 +0 -0
  308. package/dist/lib/fonts/pretendard/PretendardVariable.subset.15.woff2 +0 -0
  309. package/dist/lib/fonts/pretendard/PretendardVariable.subset.16.woff2 +0 -0
  310. package/dist/lib/fonts/pretendard/PretendardVariable.subset.17.woff2 +0 -0
  311. package/dist/lib/fonts/pretendard/PretendardVariable.subset.18.woff2 +0 -0
  312. package/dist/lib/fonts/pretendard/PretendardVariable.subset.19.woff2 +0 -0
  313. package/dist/lib/fonts/pretendard/PretendardVariable.subset.2.woff2 +0 -0
  314. package/dist/lib/fonts/pretendard/PretendardVariable.subset.20.woff2 +0 -0
  315. package/dist/lib/fonts/pretendard/PretendardVariable.subset.21.woff2 +0 -0
  316. package/dist/lib/fonts/pretendard/PretendardVariable.subset.22.woff2 +0 -0
  317. package/dist/lib/fonts/pretendard/PretendardVariable.subset.23.woff2 +0 -0
  318. package/dist/lib/fonts/pretendard/PretendardVariable.subset.24.woff2 +0 -0
  319. package/dist/lib/fonts/pretendard/PretendardVariable.subset.25.woff2 +0 -0
  320. package/dist/lib/fonts/pretendard/PretendardVariable.subset.26.woff2 +0 -0
  321. package/dist/lib/fonts/pretendard/PretendardVariable.subset.27.woff2 +0 -0
  322. package/dist/lib/fonts/pretendard/PretendardVariable.subset.28.woff2 +0 -0
  323. package/dist/lib/fonts/pretendard/PretendardVariable.subset.29.woff2 +0 -0
  324. package/dist/lib/fonts/pretendard/PretendardVariable.subset.3.woff2 +0 -0
  325. package/dist/lib/fonts/pretendard/PretendardVariable.subset.30.woff2 +0 -0
  326. package/dist/lib/fonts/pretendard/PretendardVariable.subset.31.woff2 +0 -0
  327. package/dist/lib/fonts/pretendard/PretendardVariable.subset.32.woff2 +0 -0
  328. package/dist/lib/fonts/pretendard/PretendardVariable.subset.33.woff2 +0 -0
  329. package/dist/lib/fonts/pretendard/PretendardVariable.subset.34.woff2 +0 -0
  330. package/dist/lib/fonts/pretendard/PretendardVariable.subset.35.woff2 +0 -0
  331. package/dist/lib/fonts/pretendard/PretendardVariable.subset.36.woff2 +0 -0
  332. package/dist/lib/fonts/pretendard/PretendardVariable.subset.37.woff2 +0 -0
  333. package/dist/lib/fonts/pretendard/PretendardVariable.subset.38.woff2 +0 -0
  334. package/dist/lib/fonts/pretendard/PretendardVariable.subset.39.woff2 +0 -0
  335. package/dist/lib/fonts/pretendard/PretendardVariable.subset.4.woff2 +0 -0
  336. package/dist/lib/fonts/pretendard/PretendardVariable.subset.40.woff2 +0 -0
  337. package/dist/lib/fonts/pretendard/PretendardVariable.subset.41.woff2 +0 -0
  338. package/dist/lib/fonts/pretendard/PretendardVariable.subset.42.woff2 +0 -0
  339. package/dist/lib/fonts/pretendard/PretendardVariable.subset.43.woff2 +0 -0
  340. package/dist/lib/fonts/pretendard/PretendardVariable.subset.44.woff2 +0 -0
  341. package/dist/lib/fonts/pretendard/PretendardVariable.subset.45.woff2 +0 -0
  342. package/dist/lib/fonts/pretendard/PretendardVariable.subset.46.woff2 +0 -0
  343. package/dist/lib/fonts/pretendard/PretendardVariable.subset.47.woff2 +0 -0
  344. package/dist/lib/fonts/pretendard/PretendardVariable.subset.48.woff2 +0 -0
  345. package/dist/lib/fonts/pretendard/PretendardVariable.subset.49.woff2 +0 -0
  346. package/dist/lib/fonts/pretendard/PretendardVariable.subset.5.woff2 +0 -0
  347. package/dist/lib/fonts/pretendard/PretendardVariable.subset.50.woff2 +0 -0
  348. package/dist/lib/fonts/pretendard/PretendardVariable.subset.51.woff2 +0 -0
  349. package/dist/lib/fonts/pretendard/PretendardVariable.subset.52.woff2 +0 -0
  350. package/dist/lib/fonts/pretendard/PretendardVariable.subset.53.woff2 +0 -0
  351. package/dist/lib/fonts/pretendard/PretendardVariable.subset.54.woff2 +0 -0
  352. package/dist/lib/fonts/pretendard/PretendardVariable.subset.55.woff2 +0 -0
  353. package/dist/lib/fonts/pretendard/PretendardVariable.subset.56.woff2 +0 -0
  354. package/dist/lib/fonts/pretendard/PretendardVariable.subset.57.woff2 +0 -0
  355. package/dist/lib/fonts/pretendard/PretendardVariable.subset.58.woff2 +0 -0
  356. package/dist/lib/fonts/pretendard/PretendardVariable.subset.59.woff2 +0 -0
  357. package/dist/lib/fonts/pretendard/PretendardVariable.subset.6.woff2 +0 -0
  358. package/dist/lib/fonts/pretendard/PretendardVariable.subset.60.woff2 +0 -0
  359. package/dist/lib/fonts/pretendard/PretendardVariable.subset.61.woff2 +0 -0
  360. package/dist/lib/fonts/pretendard/PretendardVariable.subset.62.woff2 +0 -0
  361. package/dist/lib/fonts/pretendard/PretendardVariable.subset.63.woff2 +0 -0
  362. package/dist/lib/fonts/pretendard/PretendardVariable.subset.64.woff2 +0 -0
  363. package/dist/lib/fonts/pretendard/PretendardVariable.subset.65.woff2 +0 -0
  364. package/dist/lib/fonts/pretendard/PretendardVariable.subset.66.woff2 +0 -0
  365. package/dist/lib/fonts/pretendard/PretendardVariable.subset.67.woff2 +0 -0
  366. package/dist/lib/fonts/pretendard/PretendardVariable.subset.68.woff2 +0 -0
  367. package/dist/lib/fonts/pretendard/PretendardVariable.subset.69.woff2 +0 -0
  368. package/dist/lib/fonts/pretendard/PretendardVariable.subset.7.woff2 +0 -0
  369. package/dist/lib/fonts/pretendard/PretendardVariable.subset.70.woff2 +0 -0
  370. package/dist/lib/fonts/pretendard/PretendardVariable.subset.71.woff2 +0 -0
  371. package/dist/lib/fonts/pretendard/PretendardVariable.subset.72.woff2 +0 -0
  372. package/dist/lib/fonts/pretendard/PretendardVariable.subset.73.woff2 +0 -0
  373. package/dist/lib/fonts/pretendard/PretendardVariable.subset.74.woff2 +0 -0
  374. package/dist/lib/fonts/pretendard/PretendardVariable.subset.75.woff2 +0 -0
  375. package/dist/lib/fonts/pretendard/PretendardVariable.subset.76.woff2 +0 -0
  376. package/dist/lib/fonts/pretendard/PretendardVariable.subset.77.woff2 +0 -0
  377. package/dist/lib/fonts/pretendard/PretendardVariable.subset.78.woff2 +0 -0
  378. package/dist/lib/fonts/pretendard/PretendardVariable.subset.79.woff2 +0 -0
  379. package/dist/lib/fonts/pretendard/PretendardVariable.subset.8.woff2 +0 -0
  380. package/dist/lib/fonts/pretendard/PretendardVariable.subset.80.woff2 +0 -0
  381. package/dist/lib/fonts/pretendard/PretendardVariable.subset.81.woff2 +0 -0
  382. package/dist/lib/fonts/pretendard/PretendardVariable.subset.82.woff2 +0 -0
  383. package/dist/lib/fonts/pretendard/PretendardVariable.subset.83.woff2 +0 -0
  384. package/dist/lib/fonts/pretendard/PretendardVariable.subset.84.woff2 +0 -0
  385. package/dist/lib/fonts/pretendard/PretendardVariable.subset.85.woff2 +0 -0
  386. package/dist/lib/fonts/pretendard/PretendardVariable.subset.86.woff2 +0 -0
  387. package/dist/lib/fonts/pretendard/PretendardVariable.subset.87.woff2 +0 -0
  388. package/dist/lib/fonts/pretendard/PretendardVariable.subset.88.woff2 +0 -0
  389. package/dist/lib/fonts/pretendard/PretendardVariable.subset.89.woff2 +0 -0
  390. package/dist/lib/fonts/pretendard/PretendardVariable.subset.9.woff2 +0 -0
  391. package/dist/lib/fonts/pretendard/PretendardVariable.subset.90.woff2 +0 -0
  392. package/dist/lib/fonts/pretendard/PretendardVariable.subset.91.woff2 +0 -0
  393. package/dist/lib/foundation/focus.d.ts +10 -0
  394. package/dist/lib/foundation/josa.d.ts +4 -0
  395. package/dist/lib/index.d.ts +4 -0
  396. package/dist/lib/index.js +13 -0
  397. package/dist/lib/pretendard.css +940 -0
  398. package/dist/lib/reset.css +50 -0
  399. package/dist/lib/styles.css +3 -0
  400. package/dist/lib/tokens.css +1118 -0
  401. package/package.json +91 -0
@@ -0,0 +1,49 @@
1
+ import type { RefObject } from "react";
2
+ import { type IsoDate } from "./dates";
3
+ import "./DatePicker.css";
4
+ /**
5
+ * The month grid, owned by nobody and used by two.
6
+ *
7
+ * `DatePicker` had all of this inside it and `DateRangePicker` needed the same thing: the
8
+ * same six rows, the same one tab stop, the same `aria-current`, the same locked days. A
9
+ * second copy would have been a second place to fix every one of those, and the copy that
10
+ * nobody remembers is the one that stays broken — so the grid moved here and both render it.
11
+ *
12
+ * It holds no state. The cursor, the selection and the month all live in the caller, because
13
+ * the two callers disagree about what a selection is: one date, or a pair with a middle.
14
+ */
15
+ export type CalendarMark = {
16
+ /** An end of the selection — filled, and `aria-selected` on its cell. */
17
+ chosen?: boolean;
18
+ /** Which end, when there are two. Drawn as a half-round fill. */
19
+ edge?: "start" | "end";
20
+ /** Between the two ends. */
21
+ inRange?: boolean;
22
+ /** The range that would be chosen if the reader committed here. */
23
+ preview?: boolean;
24
+ };
25
+ export type CalendarProps = {
26
+ /** The day the arrow keys are standing on. Also decides which month is drawn. */
27
+ cursor: IsoDate;
28
+ /**
29
+ * `key` means the reader moved it and focus has to follow; `page` means the month buttons
30
+ * moved it and focus must stay on the button that was pressed; `focus` is the grid telling
31
+ * the caller where focus already went.
32
+ */
33
+ onCursorChange: (iso: IsoDate, cause: "key" | "page" | "focus") => void;
34
+ onChoose: (iso: IsoDate) => void;
35
+ today: IsoDate;
36
+ /** The caption's id, so the grid is named by the month it shows. */
37
+ captionId: string;
38
+ gridRef?: RefObject<HTMLTableElement | null>;
39
+ blocked?: (iso: IsoDate) => boolean;
40
+ mark?: (iso: IsoDate) => CalendarMark;
41
+ /**
42
+ * Appended to the day's accessible name. This is how a range says which end a day is
43
+ * without saying it in colour.
44
+ */
45
+ describe?: (iso: IsoDate) => string | undefined;
46
+ onDayEnter?: (iso: IsoDate) => void;
47
+ onGridLeave?: () => void;
48
+ };
49
+ export declare function Calendar({ cursor, onCursorChange, onChoose, today, captionId, gridRef, blocked, mark, describe, onDayEnter, onGridLeave, }: CalendarProps): import("react").JSX.Element;
@@ -0,0 +1,36 @@
1
+ import { type IsoDate } from "./dates";
2
+ import "./DatePicker.css";
3
+ export type DatePickerProps = {
4
+ /** `YYYY-MM-DD`, or null. Never a `Date` — see the note at the top of `dates.ts`. */
5
+ value: IsoDate | null;
6
+ onValueChange: (value: IsoDate | null) => void;
7
+ /** What date this is. "출발일", "마감일". Names the field. */
8
+ label: string;
9
+ /** Earliest and latest selectable, both `YYYY-MM-DD`. */
10
+ min?: IsoDate;
11
+ max?: IsoDate;
12
+ size?: "sm" | "md" | "lg";
13
+ disabled?: boolean;
14
+ invalid?: boolean;
15
+ id?: string;
16
+ "aria-describedby"?: string;
17
+ "aria-labelledby"?: string;
18
+ required?: boolean;
19
+ className?: string;
20
+ [key: `data-${string}`]: unknown;
21
+ [key: `aria-${string}`]: unknown;
22
+ };
23
+ /**
24
+ * A date, typed or picked.
25
+ *
26
+ * Not `<input type="date">`, and that is a decision rather than an oversight. The native
27
+ * control is excellent on a phone and unusable as a design element on a desktop: its picker
28
+ * cannot be styled at all and its layout differs in every browser. What it does well —
29
+ * taking a typed date in whatever shape the reader types it — is copied rather than thrown
30
+ * away: `2026-08-25`, `2026.8.25`, `20260825` and `2026년 8월 25일` all mean the same day.
31
+ *
32
+ * The calendar is a real `<table role="grid">`, because a date grid *is* a grid: a reader
33
+ * moves through it by row and column and every screen reader already knows how. One day is
34
+ * in the tab order, so Tab leaves the calendar instead of walking through forty-two buttons.
35
+ */
36
+ export declare function DatePicker({ value, onValueChange, label, min, max, size, disabled, invalid, id, "aria-describedby": describedBy, "aria-labelledby": labelledBy, required, className, ...rest }: DatePickerProps): import("react").JSX.Element;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Dates as `YYYY-MM-DD` strings, never as `Date` objects.
3
+ *
4
+ * A `Date` is a moment in time, and a calendar day is not one. A date-only ISO string is read
5
+ * as midnight UTC, so `new Date("2026-08-25")` is the 25th in Seoul and the 24th in New York,
6
+ * and a birthday that moves depending on where the reader is standing is the single most
7
+ * common bug in every date picker ever written. The string is unambiguous; `Date` is used here
8
+ * only to ask the calendar what weekday something falls on, and never to store anything.
9
+ */
10
+ export type IsoDate = string;
11
+ export declare const toIso: (year: number, month: number, day: number) => IsoDate;
12
+ export declare function parseIso(value: string | null | undefined): {
13
+ year: number;
14
+ month: number;
15
+ day: number;
16
+ } | null;
17
+ export declare const daysInMonth: (year: number, month: number) => number;
18
+ /** 0 is Sunday, which is where a Korean calendar week starts. */
19
+ export declare const firstWeekday: (year: number, month: number) => number;
20
+ /** Adds days and rolls over months and years, which is why it is not `day + n`. */
21
+ export declare function shift(iso: IsoDate, days: number): IsoDate;
22
+ export declare function shiftMonths(iso: IsoDate, months: number): IsoDate;
23
+ export declare function todayIso(): IsoDate;
24
+ /** "2026년 8월 25일 화요일" — the whole date, for the button's accessible name. */
25
+ export declare const formatLong: (iso: IsoDate) => string;
26
+ /** "2026년 8월 25일" — what goes in the field. Unreadable values are shown as they came. */
27
+ export declare const formatShort: (iso: IsoDate) => string;
28
+ /** "2026년 8월" — the caption over the grid. */
29
+ export declare const formatMonth: (year: number, month: number) => string;
30
+ /**
31
+ * Reads what a reader typed, in the shapes they actually type.
32
+ *
33
+ * `2026-08-25`, `2026.8.25`, `20260825` and `2026년 8월 25일` all mean the same day, and a
34
+ * field that accepts only the first is a field most people fail on their first attempt.
35
+ */
36
+ export declare function parseTyped(text: string): IsoDate | null;
37
+ /** 0 for Sunday. Used for the Home and End keys, which reach the ends of the week. */
38
+ export declare const weekdayOf: (iso: IsoDate) => number;
39
+ /**
40
+ * How many days a range covers, counting both ends — the number a reader means by "6일".
41
+ *
42
+ * Local `Date`s and a division, not a subtraction of two ISO strings: months and years are
43
+ * not fixed widths, and a range that crosses a daylight-saving boundary is still a whole
44
+ * number of calendar days. Rounded for that reason.
45
+ */
46
+ export declare function daysBetween(from: IsoDate, to: IsoDate): number;
47
+ /** The first day of the month `iso` falls in. */
48
+ export declare function startOfMonth(iso: IsoDate): IsoDate;
49
+ /** The last day of that month — 28, 29, 30 or 31, asked rather than assumed. */
50
+ export declare function endOfMonth(iso: IsoDate): IsoDate;
@@ -0,0 +1,3 @@
1
+ export { DatePicker } from "./DatePicker";
2
+ export type { DatePickerProps } from "./DatePicker";
3
+ export { parseTyped, formatShort, formatLong, todayIso, type IsoDate } from "./dates";
@@ -0,0 +1,40 @@
1
+ import { type IsoDate } from "../DatePicker/dates";
2
+ import "./DateRangePicker.css";
3
+ export type DateRange = {
4
+ /** `YYYY-MM-DD`, or null. Never a `Date` — see the note at the top of `dates.ts`. */
5
+ start: IsoDate | null;
6
+ end: IsoDate | null;
7
+ };
8
+ export type DateRangePickerProps = {
9
+ value: DateRange;
10
+ onValueChange: (value: DateRange) => void;
11
+ /** What period this is. "숙박 기간", "조회 기간". Names both boxes and the calendar. */
12
+ label: string;
13
+ /** Earliest and latest selectable, both `YYYY-MM-DD`. */
14
+ min?: IsoDate;
15
+ max?: IsoDate;
16
+ size?: "sm" | "md" | "lg";
17
+ disabled?: boolean;
18
+ invalid?: boolean;
19
+ id?: string;
20
+ "aria-describedby"?: string;
21
+ "aria-labelledby"?: string;
22
+ required?: boolean;
23
+ className?: string;
24
+ [key: `data-${string}`]: unknown;
25
+ [key: `aria-${string}`]: unknown;
26
+ };
27
+ /**
28
+ * A period: two dates that belong together.
29
+ *
30
+ * The calendar is `DatePicker`'s calendar — the same `Calendar`, six rows, one tab stop,
31
+ * `aria-current` on today, the same locked days. Nothing about a range changes what a month
32
+ * looks like, and a second copy of that grid would be a second place to fix every one of
33
+ * those things.
34
+ *
35
+ * What a range adds is a middle. Three facts have to reach a reader — where it starts, where
36
+ * it ends, and what is inside — and a band of colour carries none of them to anybody who
37
+ * cannot see it. So each day says which part it is in its accessible name, and a live line
38
+ * under the grid says the whole range in words as it is being built.
39
+ */
40
+ export declare function DateRangePicker({ value, onValueChange, label, min, max, size, disabled, invalid, id, "aria-describedby": describedBy, "aria-labelledby": labelledBy, required, className, ...rest }: DateRangePickerProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { DateRangePicker } from "./DateRangePicker";
2
+ export type { DateRangePickerProps, DateRange } from "./DateRangePicker";
@@ -0,0 +1,44 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./Disclosure.css";
4
+ export type DisclosureProps = {
5
+ summary: ReactNode;
6
+ children: ReactNode;
7
+ /** Open to begin with. Uncontrolled — the element keeps its own state. */
8
+ defaultOpen?: boolean;
9
+ /** Controlled, for an accordion that allows only one open at a time. */
10
+ open?: boolean;
11
+ onOpenChange?: (open: boolean) => void;
12
+ icon?: LucideIcon;
13
+ /** The end of the summary row — a count, a badge, a status. Never a control. */
14
+ aside?: ReactNode;
15
+ /** No border and no ground, for a run of them inside something that already has both. */
16
+ plain?: boolean;
17
+ className?: string;
18
+ [key: `data-${string}`]: unknown;
19
+ };
20
+ /**
21
+ * A heading that opens.
22
+ *
23
+ * A real `<details>` and `<summary>`, which is the whole point. The element gives the
24
+ * expanded state to assistive technology without an `aria-expanded` to keep in sync, works
25
+ * with the keyboard on its own, and — the part that is hard to rebuild — lets the browser's
26
+ * find-in-page open it to show a match that is inside it. A `<div>` with a click handler
27
+ * hides that text from Ctrl+F entirely.
28
+ */
29
+ export declare function Disclosure({ summary, children, defaultOpen, open, onOpenChange, icon, aside, plain, className, ...rest }: DisclosureProps): import("react").JSX.Element;
30
+ export type AccordionProps = {
31
+ children: ReactNode;
32
+ className?: string;
33
+ [key: `data-${string}`]: unknown;
34
+ };
35
+ /**
36
+ * A run of disclosures.
37
+ *
38
+ * It does not enforce "one open at a time", and that is deliberate: closing a section a
39
+ * reader opened, because they opened another one, is the behaviour people complain about
40
+ * most in an accordion. An adopter who wants it holds the state and passes `open` to each —
41
+ * `Disclosure` takes it — and then it is their decision rather than one this component made
42
+ * for every use of it.
43
+ */
44
+ export declare function Accordion({ children, className, ...rest }: AccordionProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Disclosure, Accordion } from "./Disclosure";
2
+ export type { DisclosureProps, AccordionProps } from "./Disclosure";
@@ -0,0 +1,39 @@
1
+ import type { ReactElement, ReactNode } from "react";
2
+ import "./Drawer.css";
3
+ export type DrawerSide = "start" | "end" | "bottom";
4
+ export type DrawerSize = "sm" | "md" | "lg";
5
+ export type DrawerProps = {
6
+ open?: boolean;
7
+ onOpenChange?: (open: boolean) => void;
8
+ trigger?: ReactElement;
9
+ /** What the panel is about. Required, for the same reason `Modal`'s is. */
10
+ title: string;
11
+ description?: ReactNode;
12
+ children: ReactNode;
13
+ footer?: ReactNode;
14
+ /**
15
+ * Which edge it comes from.
16
+ *
17
+ * `start` and `end` rather than left and right: in a right-to-left layout a panel that
18
+ * came from "right" would arrive on the side the reader reads *from*, which is the wrong
19
+ * side of the page in the same way it is in English.
20
+ */
21
+ side?: DrawerSide;
22
+ size?: DrawerSize;
23
+ dismissOnOutside?: boolean;
24
+ className?: string;
25
+ [key: `data-${string}`]: unknown;
26
+ };
27
+ /**
28
+ * A panel from the edge, with the page inert behind it.
29
+ *
30
+ * The same Radix dialog `Modal` uses and deliberately not the same component: a modal is a
31
+ * window over the page that interrupts, and a drawer is a second column that arrives beside
32
+ * the work. The difference is not a `placement` prop — it is what the reader is meant to do
33
+ * next, and folding both into one component would mean every use of it choosing between two
34
+ * unrelated behaviours.
35
+ *
36
+ * A drawer holding a form should set `dismissOnOutside={false}`: a stray click on the page
37
+ * behind it otherwise throws away everything the reader typed.
38
+ */
39
+ export declare function Drawer({ open, onOpenChange, trigger, title, description, children, footer, side, size, dismissOnOutside, className, ...rest }: DrawerProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Drawer } from "./Drawer";
2
+ export type { DrawerProps, DrawerSide, DrawerSize } from "./Drawer";
@@ -0,0 +1,43 @@
1
+ import type { ElementType, ReactNode } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./EmptyState.css";
4
+ export type EmptyStateSize = "sm" | "md" | "lg";
5
+ export type EmptyStateTone = "neutral" | "danger";
6
+ export type EmptyStateProps = {
7
+ title: ReactNode;
8
+ description?: ReactNode;
9
+ icon?: LucideIcon;
10
+ /** An illustration instead of a glyph. Decorative either way — the title says it. */
11
+ media?: ReactNode;
12
+ /** What to do about it. The first one is the way out; the rest are alternatives. */
13
+ actions?: ReactNode;
14
+ as?: ElementType;
15
+ size?: EmptyStateSize;
16
+ tone?: EmptyStateTone;
17
+ /**
18
+ * Say it when it appears.
19
+ *
20
+ * For an empty state that replaces a list after a search or a filter: the results changed
21
+ * and nothing on screen moved for a reader who cannot see it. Off by default, because an
22
+ * empty state that was there when the page loaded has already been read in document order
23
+ * and announcing it again is noise.
24
+ *
25
+ * How loudly is `tone`'s call, not a second flag: an absence waits its turn, a failure
26
+ * interrupts. Two knobs would let a caller draw a failure in red and announce it politely.
27
+ */
28
+ announce?: boolean;
29
+ className?: string;
30
+ [key: `data-${string}`]: unknown;
31
+ [key: `aria-${string}`]: unknown;
32
+ };
33
+ /**
34
+ * Nothing here — and what to do about it.
35
+ *
36
+ * A title that says what is missing, not that something is missing. "결과가 없습니다" tells
37
+ * a reader the machine worked; "'김민수'와 맞는 주문이 없습니다" tells them what to change.
38
+ *
39
+ * `tone="danger"` is the one that is a failure rather than an absence, and it changes what is
40
+ * said as well as what is painted: with `announce` it is an `alert` that interrupts, because a
41
+ * list that could not be loaded is not news that can wait for the reader to finish a sentence.
42
+ */
43
+ export declare function EmptyState({ title, description, icon, media, actions, as: Heading, size, tone, announce, className, ...rest }: EmptyStateProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { EmptyState } from "./EmptyState";
2
+ export type { EmptyStateProps, EmptyStateSize, EmptyStateTone } from "./EmptyState";
@@ -0,0 +1,63 @@
1
+ import type { ReactNode } from "react";
2
+ import "./Field.css";
3
+ export type FieldSize = "sm" | "md" | "lg";
4
+ export type FieldLayout = "stacked" | "inline";
5
+ /**
6
+ * What a control needs in order to be part of a field.
7
+ *
8
+ * Handed to `children` rather than pushed onto them. The alternative — cloning the child and
9
+ * writing these in — works until the child is wrapped in anything at all, and then it fails
10
+ * silently: the label points at nothing and nobody notices, because the field still looks
11
+ * right.
12
+ */
13
+ export type FieldControl = {
14
+ id: string;
15
+ /** The visible label, said a second way — see where this is handed over below. */
16
+ "aria-labelledby": string;
17
+ /** The hint, the error, or both, in the order a reader should hear them. */
18
+ "aria-describedby": string | undefined;
19
+ "aria-invalid": true | undefined;
20
+ required: boolean | undefined;
21
+ invalid: boolean;
22
+ };
23
+ type FieldBase = {
24
+ label: ReactNode;
25
+ children: (field: FieldControl) => ReactNode;
26
+ /** How to fill it in. Said before the reader starts, not after they get it wrong. */
27
+ hint?: ReactNode;
28
+ /** What is wrong with it. Announced when it appears, because it appears after a submit. */
29
+ error?: ReactNode;
30
+ size?: FieldSize;
31
+ layout?: FieldLayout;
32
+ /** The label leaves the screen and stays in the accessibility tree. */
33
+ labelHidden?: boolean;
34
+ id?: string;
35
+ className?: string;
36
+ [key: `data-${string}`]: unknown;
37
+ };
38
+ /**
39
+ * Required or optional, never both.
40
+ *
41
+ * A field wearing an asterisk *and* the word "선택" tells the reader two opposite things at
42
+ * once, and nothing stopped it: the two flags are answers to the same question, so the type
43
+ * makes them exclusive.
44
+ *
45
+ * `optional` says "선택" instead of marking the required ones — the right choice when most of
46
+ * a form is required, because marking eleven fields and leaving one unmarked makes the
47
+ * exception the thing that is hard to find.
48
+ */
49
+ export type FieldProps = FieldBase & ({
50
+ required?: boolean;
51
+ optional?: never;
52
+ } | {
53
+ required?: never;
54
+ optional?: boolean;
55
+ });
56
+ /**
57
+ * A control, and everything a reader needs in order to answer it.
58
+ *
59
+ * The wiring is handed to `children` as a function rather than cloned onto them, because a
60
+ * label that points at nothing looks exactly like a label that works.
61
+ */
62
+ export declare function Field({ label, children, hint, error, required, optional, size, layout, labelHidden, id, className, ...rest }: FieldProps): import("react").JSX.Element;
63
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Field } from "./Field";
2
+ export type { FieldProps, FieldControl, FieldSize, FieldLayout } from "./Field";
@@ -0,0 +1,58 @@
1
+ import type { ReactNode } from "react";
2
+ import "./FilterBar.css";
3
+ export type AppliedFilter = {
4
+ id: string;
5
+ /** The facet. "상태", "담당자". */
6
+ field: string;
7
+ /** The chosen value, in words. "배송 중", "김민수". */
8
+ value: string;
9
+ };
10
+ export type FilterBarProps = {
11
+ filters: AppliedFilter[];
12
+ onRemove: (id: string) => void;
13
+ onClear: () => void;
14
+ /** What the filters apply to. "주문 목록". Names the group. */
15
+ label: string;
16
+ /** The control that adds one — a `Menu` or a `Popover` trigger. */
17
+ add?: ReactNode;
18
+ /**
19
+ * How many things are left after filtering.
20
+ *
21
+ * Announced politely when it changes, because removing a chip changes a list somewhere
22
+ * else on the page and nothing else says so.
23
+ */
24
+ count?: {
25
+ value: number;
26
+ noun: string;
27
+ };
28
+ className?: string;
29
+ [key: `data-${string}`]: unknown;
30
+ };
31
+ /**
32
+ * The filters that are on, and the ways to change them.
33
+ *
34
+ * Each chip says its facet as well as its value. "김민수" on its own is a chip a reader has
35
+ * to guess at — the assignee? the creator? the last person to touch it? — and the guess is
36
+ * free to be wrong. "담당자: 김민수" is not.
37
+ *
38
+ * "모두 지우기" appears only when there is something to clear. A permanently visible control
39
+ * that does nothing most of the time is one a reader learns to stop reading.
40
+ */
41
+ export declare function FilterBar({ filters, onRemove, onClear, label, add, count, className, ...rest }: FilterBarProps): import("react").JSX.Element;
42
+ export type FilterBarAddProps = {
43
+ children?: ReactNode;
44
+ onClick?: () => void;
45
+ className?: string;
46
+ [key: `data-${string}`]: unknown;
47
+ };
48
+ /**
49
+ * The default "조건 추가" button.
50
+ *
51
+ * `plain`, not `outline`, and that is a hierarchy fix rather than a taste one. The chips
52
+ * are what the reader is looking at: each one is a condition currently narrowing the
53
+ * answer, and the row exists to show them. An outlined button beside a soft chip reads as
54
+ * the heavier of the two, so the screen put its bordered pill on the affordance and its
55
+ * faint one on the state. Objects are filled here and actions are not — `모두 지우기` was
56
+ * already plain, and this puts the two actions on the same footing beneath the state.
57
+ */
58
+ export declare function FilterBarAdd({ children, onClick, className, ...rest }: FilterBarAddProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FilterBar, FilterBarAdd } from "./FilterBar";
2
+ export type { FilterBarProps, FilterBarAddProps, AppliedFilter } from "./FilterBar";
@@ -0,0 +1,35 @@
1
+ import type { ElementType, ReactNode } from "react";
2
+ import "./FormSection.css";
3
+ export type FormSectionProps = {
4
+ title: ReactNode;
5
+ children: ReactNode;
6
+ description?: ReactNode;
7
+ /**
8
+ * The heading element. `h3` because a form section is usually inside a page that already
9
+ * has an `h1` and an `h2` — but the level belongs to the page, not to this component, and
10
+ * a component that hard-coded it would build a broken outline everywhere else.
11
+ */
12
+ as?: ElementType;
13
+ /** The end of the title's own line — a badge, a count, a "모두 지우기". */
14
+ aside?: ReactNode;
15
+ /** A rule above the section, for a form that is a run of them. */
16
+ divided?: boolean;
17
+ columns?: 1 | 2;
18
+ className?: string;
19
+ [key: `data-${string}`]: unknown;
20
+ };
21
+ /**
22
+ * A few fields that belong to one question.
23
+ *
24
+ * `role="group"` with a real heading, and not a `<fieldset>` — which is where this started.
25
+ * Two things stopped it. A `<legend>` is not laid out with the rest of the fieldset's
26
+ * contents: it is taken out of the normal flow and rendered against the border, so it cannot
27
+ * share a row with anything, and a badge meant to sit at the end of the title line ends up
28
+ * underneath it. And a legend does not put the section in the document's heading outline,
29
+ * which for a page of settings is the thing a reader navigates by.
30
+ *
31
+ * What a fieldset would have given — entering the group announces its name — `role="group"`
32
+ * with `aria-labelledby` gives too. `<section>` is avoided on purpose: a named section is a
33
+ * landmark, and a form of six of them is six landmarks announced as regions.
34
+ */
35
+ export declare function FormSection({ title, children, description, as: Heading, aside, divided, columns, className, ...rest }: FormSectionProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FormSection } from "./FormSection";
2
+ export type { FormSectionProps } from "./FormSection";
@@ -0,0 +1,83 @@
1
+ import type { ElementType, ReactNode } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./ListRow.css";
4
+ export type ListRowDensity = "comfortable" | "compact";
5
+ export type ListRowActionTone = "neutral" | "warning" | "danger";
6
+ export type ListRowAction = {
7
+ id: string;
8
+ /** What it does, in words. Shown and announced — an icon alone is a guess. */
9
+ label: string;
10
+ icon?: LucideIcon;
11
+ tone?: ListRowActionTone;
12
+ onAction: () => void;
13
+ };
14
+ export type ListRowProps = {
15
+ title: ReactNode;
16
+ /** Under the title. One line by default — a list row is scanned, not read. */
17
+ description?: ReactNode;
18
+ /** Before the title — an avatar, an icon, a checkbox, a drag handle. */
19
+ media?: ReactNode;
20
+ /** After the description — a timestamp, a count, a status. Never a control. */
21
+ meta?: ReactNode;
22
+ /** The end of the row, where the controls go. */
23
+ actions?: ReactNode;
24
+ as?: ElementType;
25
+ /**
26
+ * The whole row is one target, by the same construction `Card` uses: a link inside it
27
+ * stretches over the row rather than the row becoming a link.
28
+ */
29
+ interactive?: boolean;
30
+ selected?: boolean;
31
+ disabled?: boolean;
32
+ /**
33
+ * Row density, and it reaches the DOM as `data-row-density` rather than `data-density`.
34
+ *
35
+ * `[data-density]` is the page-level scope that rescales `--space-*` for everything under
36
+ * it. If this component minted the same attribute, `<ListRow density="compact">` would match
37
+ * that scope too and rescale the whole subtree — the rows would compact once here and
38
+ * again through every token inside them, and a badge in a compact row would shrink for a
39
+ * reason nobody could find. The two are different variations: one is how much room this
40
+ * component gives its rows, the other is how much room the page gives everything.
41
+ */
42
+ density?: ListRowDensity;
43
+ /**
44
+ * The row is waiting for what goes in it.
45
+ *
46
+ * A row knows its own shape — media, title, description, meta — so it draws that shape
47
+ * rather than a grey bar. An adopter rebuilding it out of `Skeleton` gets a placeholder
48
+ * that jumps to a different height the moment the real row arrives, and a list of twenty of
49
+ * them reflows twenty times.
50
+ */
51
+ loading?: boolean;
52
+ /** Truncate the description to one line instead of letting it wrap. */
53
+ clamp?: boolean;
54
+ /**
55
+ * What a swipe from the trailing edge reveals. Three at most.
56
+ *
57
+ * Past three, the row is a menu that happens to open sideways: the labels stop fitting, the
58
+ * targets fall under the 24px a thumb needs, and a reader has to swipe carefully to land on
59
+ * the right one. A row with more to offer has a menu.
60
+ */
61
+ swipeActions?: ListRowAction[];
62
+ className?: string;
63
+ [key: `data-${string}`]: unknown;
64
+ [key: `aria-${string}`]: unknown;
65
+ };
66
+ /**
67
+ * One thing in a list of things.
68
+ *
69
+ * The same shape as a card laid on its side, and deliberately not the same component: a card
70
+ * is a surface with its own edge and a row is a band in something else's. Sharing them would
71
+ * mean every row carrying a border it has to turn off.
72
+ */
73
+ export declare function ListRow({ title, description, media, meta, actions, as: Element, interactive, selected, disabled, density, loading, clamp, swipeActions, className, ...rest }: ListRowProps): import("react").JSX.Element;
74
+ export type ListRowLinkProps = {
75
+ children: ReactNode;
76
+ href?: string;
77
+ onClick?: () => void;
78
+ className?: string;
79
+ [key: `data-${string}`]: unknown;
80
+ [key: `aria-${string}`]: unknown;
81
+ };
82
+ /** The one control that owns the row. Its text is the row's name. */
83
+ export declare function ListRowLink({ children, href, onClick, className, ...rest }: ListRowLinkProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { ListRow, ListRowLink } from "./ListRow";
2
+ export type { ListRowProps, ListRowLinkProps, ListRowDensity } from "./ListRow";