@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,161 @@
1
+ import type { ReactNode } from "react";
2
+ import "./DataGrid.css";
3
+ export type DataGridWidth = "sm" | "md" | "lg" | "grow";
4
+ export type DataGridDensity = "compact" | "comfortable";
5
+ export type DataGridHeight = "sm" | "md" | "lg";
6
+ export type DataGridSortDirection = "asc" | "desc";
7
+ export type DataGridSort = {
8
+ columnId: string;
9
+ direction: DataGridSortDirection;
10
+ };
11
+ export type DataGridColumn<T> = {
12
+ id: string;
13
+ header: string;
14
+ cell: (row: T) => ReactNode;
15
+ /** Enumerated, not measured. See the note on why there is no computed template. */
16
+ width?: DataGridWidth;
17
+ align?: "start" | "end";
18
+ /** Tabular figures and no wrapping — a column of amounts. */
19
+ numeric?: boolean;
20
+ /**
21
+ * Offers sorting in this column's menu.
22
+ *
23
+ * The grid does not sort. It reports what the reader asked for and renders the order it was
24
+ * given back — because the rows it holds are usually a page of a much larger answer, and a
25
+ * grid that sorted its own ten thousand would be sorting the wrong ten thousand.
26
+ */
27
+ sortable?: boolean;
28
+ /** Whether the reader may hide it. The column that identifies the row usually may not. */
29
+ hideable?: boolean;
30
+ /** Opens an editor in the cell. Needs `value` to know what the editor starts with. */
31
+ editable?: boolean;
32
+ value?: (row: T) => string;
33
+ /**
34
+ * What stands under the column — a count, a max, a sum.
35
+ *
36
+ * Given the rows the grid is holding, and that is the whole contract: at ten thousand rows
37
+ * these are the ten thousand, and at a server-paged fifty they are the fifty. A footer that
38
+ * says `합계 137` under fifty rows is a footer the caller computed from the answer rather
39
+ * than from the page, which is the caller's business and not something this can guess.
40
+ */
41
+ footer?: (rows: T[]) => ReactNode;
42
+ };
43
+ export type DataGridProps<T> = {
44
+ rows: T[];
45
+ columns: DataGridColumn<T>[];
46
+ /**
47
+ * Which cells changed under the reader, and what makes each change distinct.
48
+ *
49
+ * Returns a token for a cell that changed without this reader doing it — an updated-at, a
50
+ * version, the new value itself — and `undefined` for one that did not. The cell flashes
51
+ * once each time the token differs from the one it was drawn with. `Table` takes the same
52
+ * prop for the same reason and with the same shape; a grid holding a live answer is the
53
+ * place it matters most, because the reader cannot re-read ten thousand rows to find what
54
+ * moved.
55
+ */
56
+ changed?: (row: T, column: DataGridColumn<T>) => string | number | undefined;
57
+ rowKey: (row: T) => string;
58
+ /** What the grid is. Names it, and a grid must be named. */
59
+ label: string;
60
+ /** Keep the first column in place while the rest scroll under it. */
61
+ pinFirst?: boolean;
62
+ /**
63
+ * Row density, and it reaches the DOM as `data-row-density` rather than `data-density`.
64
+ *
65
+ * `[data-density]` is the page-level scope that rescales `--space-*` for everything under
66
+ * it. If this component minted the same attribute, `<DataGrid density="compact">` would match
67
+ * that scope too and rescale the whole subtree — the rows would compact once here and
68
+ * again through every token inside them, and a badge in a compact row would shrink for a
69
+ * reason nobody could find. The two are different variations: one is how much room this
70
+ * component gives its rows, the other is how much room the page gives everything.
71
+ */
72
+ density?: DataGridDensity;
73
+ height?: DataGridHeight;
74
+ onRowActivate?: (row: T) => void;
75
+ empty?: ReactNode;
76
+ /**
77
+ * The grid is waiting for its rows.
78
+ *
79
+ * It draws its own skeleton at the row height it already declares as a token, so the box
80
+ * does not change size when the answer lands. A grid that grows on arrival moves everything
81
+ * under it, and the reader was already looking somewhere.
82
+ */
83
+ loading?: boolean;
84
+ loadingRows?: number;
85
+ /**
86
+ * What went wrong. Error, then loading, then empty, then rows — one at a time.
87
+ *
88
+ * A grid that failed is not an empty grid. Telling the reader 행이 없습니다 when the request
89
+ * threw sends them to change the filter, which fails again, and nothing ever says why.
90
+ */
91
+ error?: ReactNode;
92
+ /**
93
+ * The keys of the chosen rows. Controlled — the grid never holds this.
94
+ *
95
+ * Selection is the join. `BulkActionBar` needs a count, `FilterBar` narrows what can be
96
+ * chosen and `SavedViewTabs` switches between whole sets of both, and until this existed
97
+ * those three had nothing to say to each other: four parts, each in its own demo. What
98
+ * connects them is one array of keys, and it belongs to whoever is holding the four.
99
+ */
100
+ selectedKeys?: string[];
101
+ onSelectedChange?: (keys: string[]) => void;
102
+ /** Names each row's checkbox: "12345 고르기". Required once selection is on. */
103
+ rowLabel?: (row: T) => string;
104
+ sort?: DataGridSort | null;
105
+ onSortChange?: (sort: DataGridSort | null) => void;
106
+ hiddenColumns?: string[];
107
+ onHiddenColumnsChange?: (ids: string[]) => void;
108
+ /** Called when an editor commits. The grid does not change the row; the caller does. */
109
+ onCellCommit?: (row: T, columnId: string, value: string) => void;
110
+ /** What the result is — "6행 · 388ms". Rendered under the grid, read as a status. */
111
+ meta?: ReactNode;
112
+ className?: string;
113
+ [key: `data-${string}`]: unknown;
114
+ };
115
+ /**
116
+ * Ten thousand rows, and a first column that stays put.
117
+ *
118
+ * **A grid is not a table with more rows.** `Table` renders what it is given and is right up
119
+ * to a few hundred; past that the question is what the browser is doing with the rows nobody
120
+ * is looking at.
121
+ *
122
+ * The rows are skipped rather than removed. `content-visibility: auto` lets the browser drop
123
+ * the layout and paint of anything off screen, and `contain-intrinsic-size` tells it exactly
124
+ * how tall each skipped row would be — exactly, because the height is a token this component
125
+ * reads rather than a guess. What that buys over cutting the DOM down to a window of twenty:
126
+ *
127
+ * - `aria-rowcount` and `aria-rowindex` are simply true. A windowed grid has twenty rows in
128
+ * the document and ten thousand in the data, and unless both attributes are maintained by
129
+ * hand a reader is told the table has twenty rows in it.
130
+ * - Find-in-page works. A skipped subtree is still searchable, and the browser reveals it.
131
+ * - The scrollbar is the real one, so it neither drifts nor jumps.
132
+ *
133
+ * What it does not buy: the nodes still exist. This is not a substitute for asking the server
134
+ * for a page at a hundred thousand rows — it is what makes ten thousand behave.
135
+ *
136
+ * **The column widths are enumerated, not computed.** Every row is its own flex line and the
137
+ * columns line up because each cell takes the same declared width as the cell above it. The
138
+ * usual answer — building a `grid-template-columns` string and putting it in a style
139
+ * attribute — is a value in the one place no stylesheet can reach, which is what this library
140
+ * doubles every root selector to avoid.
141
+ *
142
+ * **One pinned column**, for the same reason: a second one has to be offset by the first
143
+ * one's width, and that is a measurement. It is also why the column menu offers sorting and
144
+ * hiding but not pinning — pinning a third column is not a harder version of this, it is the
145
+ * measurement this component declined.
146
+ *
147
+ * **Nothing here changes the data.** Sorting, hiding, choosing and editing all report what
148
+ * the reader did and render what they are given back. A grid holding a page of a larger
149
+ * answer that sorted itself would be sorting the wrong rows, and one that edited its own
150
+ * copy would be showing a value the server never accepted.
151
+ *
152
+ * The cells share one tab stop and the header controls do not. Ten thousand rows is why the
153
+ * cells rove; six columns is why the menus can simply be buttons.
154
+ *
155
+ * **The grid is not one tab stop, and claiming it was is the note this replaces.** Turn
156
+ * selection on and every row grows a real `<input type="checkbox">`, which is a tab stop each.
157
+ * A real box is what makes the state reach a screen reader and the space bar work, and roving
158
+ * the cursor over them would take both away. The cell cursor is one tab stop; the controls in
159
+ * and above the rows are their own. Anyone counting has to count both.
160
+ */
161
+ export declare function DataGrid<T>({ rows, columns, changed, rowKey, label, pinFirst, density, height, onRowActivate, empty, loading, loadingRows, error, selectedKeys, onSelectedChange, rowLabel, sort, onSortChange, hiddenColumns, onHiddenColumnsChange, onCellCommit, meta, className, ...rest }: DataGridProps<T>): import("react").JSX.Element;
@@ -0,0 +1,93 @@
1
+ import type { DataGridColumn } from "./DataGrid";
2
+ /**
3
+ * What the grid decides, with the DOM taken out.
4
+ *
5
+ * `docs/COMPONENT-AUDIT.md` found one piece of god-code in the library and this was it: 672
6
+ * lines holding eight things. Its conclusion was that splitting the MARKUP would be wrong —
7
+ * the cursor has to know whether a cell is being edited, editing has to know the columns, and
8
+ * three components passing that between them as props is the same tangle in a worse shape.
9
+ *
10
+ * What could come out is what never touched the DOM in the first place. Every function here
11
+ * takes values and returns values, which buys the thing the audit actually wanted:
12
+ *
13
+ * These rules were reachable only through Playwright. A cursor that has to stay inside a
14
+ * grid that just lost four rows is a claim about arithmetic, and proving it by driving a
15
+ * browser to a filtered grid and pressing the down arrow is slow, indirect, and silent
16
+ * about the case nobody thought to click. `tests/components/data-grid-state.spec.ts` states
17
+ * them directly, the way `tests/brand.spec.ts` does for the colour maths.
18
+ *
19
+ * Nothing here is new behaviour. Each function is the body it was lifted from, including the
20
+ * clamping order, which matters: see `clampCursor`.
21
+ */
22
+ /** A rendered column: the selection box, or one of the caller's. */
23
+ export type Slot<T> = {
24
+ id: string;
25
+ kind: "select";
26
+ } | {
27
+ id: string;
28
+ kind: "data";
29
+ column: DataGridColumn<T>;
30
+ };
31
+ export type Cursor = {
32
+ row: number;
33
+ column: number;
34
+ };
35
+ /** How far the cursor may go. Both are counts, not last indices. */
36
+ export type Bounds = {
37
+ rows: number;
38
+ columns: number;
39
+ };
40
+ /**
41
+ * The columns actually drawn, in order, with the selection box first when there is one.
42
+ *
43
+ * Hidden columns are dropped here rather than skipped at render, so everything downstream —
44
+ * the cursor's column count above all — counts what the reader can see.
45
+ */
46
+ export declare function slotsFor<T>(columns: DataGridColumn<T>[], hidden: Set<string>, selecting: boolean): Slot<T>[];
47
+ /**
48
+ * The cursor, held inside the grid.
49
+ *
50
+ * `Math.max(0, …)` runs OUTSIDE `Math.min(count - 1, …)` and the order is load-bearing. An
51
+ * empty grid makes `count - 1` equal -1, the inner `min` returns -1 for any input, and the
52
+ * outer `max` lifts it back to 0. Written the other way round the cursor would sit at -1 and
53
+ * no cell would carry `tabindex="0"`.
54
+ */
55
+ export declare function clampCursor(cursor: Cursor, bounds: Bounds): Cursor;
56
+ /**
57
+ * One key press worth of movement.
58
+ *
59
+ * `absolute` is Home and End, which name a position rather than a distance. A field left out
60
+ * of it keeps the axis where it was, which is what Home without a modifier means: the start of
61
+ * this row, not the start of the grid.
62
+ */
63
+ export declare function moveCursor(cursor: Cursor, bounds: Bounds, rowDelta: number, columnDelta: number, absolute?: {
64
+ row?: number;
65
+ column?: number;
66
+ }): Cursor;
67
+ export type BodyState = "error" | "loading" | "empty" | "rows";
68
+ /**
69
+ * One state, decided once: error, then loading, then empty, then rows.
70
+ *
71
+ * The rows used to be drawn whenever `loading` was false, so a grid that failed kept the rows
72
+ * it had before the request threw sitting under the alert. The reader is told it failed and
73
+ * shown values anyway, with nothing saying which of the two to believe.
74
+ */
75
+ export declare function bodyState(error: boolean, loading: boolean, rowCount: number): BodyState;
76
+ /**
77
+ * How many rows the body is drawing, which is what `aria-rowcount` has to count.
78
+ *
79
+ * Not the row count: while the grid waits, the body holds placeholders and the rows are
80
+ * usually empty, so the grid announced itself as one row tall — a header — with five rows
81
+ * under it that carried no `aria-rowindex` at all.
82
+ */
83
+ export declare function bodyRowCount(state: BodyState, rowCount: number, loadingRows: number): number;
84
+ /** A key added or removed. Used for one row's checkbox and for one column's visibility alike. */
85
+ export declare function toggleKey(keys: Iterable<string>, key: string): string[];
86
+ /**
87
+ * Select-all over the rows the grid is holding, leaving the rest of the selection alone.
88
+ *
89
+ * Replacing the whole array is what a one-page grid looks like from the inside, and it
90
+ * silently drops everything the reader chose on the pages before this one. The same gesture
91
+ * cannot mean two different things in two components that sit next to each other.
92
+ */
93
+ export declare function toggleAllKeys(chosen: Iterable<string>, pageKeys: string[], remove: boolean): string[];
@@ -0,0 +1,2 @@
1
+ export { DataGrid } from "./DataGrid";
2
+ export type { DataGridColumn, DataGridDensity, DataGridHeight, DataGridProps, DataGridSort, DataGridSortDirection, DataGridWidth, } from "./DataGrid";
@@ -0,0 +1,83 @@
1
+ import type { ReactNode } from "react";
2
+ import "./Dropzone.css";
3
+ export type DropzoneFileState = "queued" | "uploading" | "done" | "failed";
4
+ export type DropzoneFile = {
5
+ id: string;
6
+ name: string;
7
+ /** Already formatted — "2.4 MB". Bytes are the adopter's to turn into a sentence. */
8
+ size?: ReactNode;
9
+ state?: DropzoneFileState;
10
+ /** 0 to 100 while uploading. Omitted means no measurable end. */
11
+ value?: number;
12
+ /** Why it failed, in the reader's words. Not "Error 413". */
13
+ error?: ReactNode;
14
+ onCancel?: () => void;
15
+ onRetry?: () => void;
16
+ };
17
+ export type DropzoneProps = {
18
+ /** What is being collected. "자료 올리기". The field's name. */
19
+ label: string;
20
+ /** What is accepted, in words a reader can act on. "PDF · DOCX · TXT · 20MB까지". */
21
+ hint?: ReactNode;
22
+ /** Decorative content replacing the upload icon. Use null to omit it. No controls. */
23
+ illustration?: ReactNode;
24
+ /**
25
+ * What the field takes, in the syntax the `accept` attribute uses. The sentence above is
26
+ * what a person reads.
27
+ *
28
+ * It reaches the input, so the picker filters by it — and the drop handler runs the same
29
+ * test, because a file dragged in never goes near the input. Left to the attribute alone,
30
+ * `accept=".pdf"` was a rule the picker kept and drag and drop did not.
31
+ */
32
+ accept?: string;
33
+ /**
34
+ * Whether more than one file may be handed over at a time.
35
+ *
36
+ * Same story as `accept`: the attribute governs the picker, and the drop handler keeps the
37
+ * first file and drops the rest so that both paths mean the same thing.
38
+ */
39
+ multiple?: boolean;
40
+ /**
41
+ * The field's name in the form it is inside.
42
+ *
43
+ * The area is a real `<input type="file">` so that a form can own its value, and without a
44
+ * name the input is not submitted at all — the value existed and never went anywhere. Given
45
+ * one, each picker change or drop replaces the input with the accepted files only. An
46
+ * entirely refused batch clears the previous selection and calls `onFiles([])`.
47
+ * Unnamed inputs are cleared after each change so the same file can be offered again.
48
+ */
49
+ name?: string;
50
+ onFiles: (files: File[]) => void;
51
+ /** What has been handed over, and how each one is going. */
52
+ files?: DropzoneFile[];
53
+ disabled?: boolean;
54
+ className?: string;
55
+ [key: `data-${string}`]: unknown;
56
+ };
57
+ /**
58
+ * A place to put files, and what happened to them after.
59
+ *
60
+ * **It is a file input, not a button that opens one.** The area is a `<label>` around a real
61
+ * `<input type="file">`, so the keyboard reaches it, the space bar opens the picker, the label
62
+ * is announced, and the form owns the value. The common alternative — a `<div>` with a click
63
+ * handler calling `input.click()` — looks identical and is reachable by exactly one input
64
+ * device.
65
+ *
66
+ * **A drag over its own children is not a drag leaving.** `dragleave` fires every time the
67
+ * pointer crosses into a child, so the naive version flickers the whole time a file is held
68
+ * over the list. The depth is counted instead.
69
+ *
70
+ * **It refuses what the picker refuses, and nothing beyond that.** `accept` and `multiple` are
71
+ * attributes on the input, so the picker has always held to them and drag and drop went around
72
+ * the input entirely: three files landed in a `multiple={false}` area and a `.exe` landed in a
73
+ * PDF one. Both paths run the same two tests now — **and a refused file is told about.** A drop
74
+ * that leaves nothing used to return in silence, which is a gesture the reader repeats because
75
+ * nothing said it failed; the reason goes into a live region, in the same words `FileInput`
76
+ * uses for the same refusal.
77
+ *
78
+ * **Everything else is the adopter's.** How large is too large, what already exists, what this
79
+ * account is allowed to send: facts this does not have. Everything that survives the two tests
80
+ * is handed over, and a file that comes back `failed` with a sentence is how a refusal is
81
+ * shown — which also means the reason is written by whoever knows it.
82
+ */
83
+ export declare function Dropzone({ label, hint, illustration, accept, multiple, name, onFiles, files, disabled, className, ...rest }: DropzoneProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Dropzone } from "./Dropzone";
2
+ export type { DropzoneProps, DropzoneFile, DropzoneFileState } from "./Dropzone";
@@ -0,0 +1,47 @@
1
+ import "./FeedbackControl.css";
2
+ export type FeedbackRating = "up" | "down";
3
+ export type FeedbackReason = {
4
+ id: string;
5
+ /** Why it was wrong, in the reader's words. "사실이 틀렸어요", "질문과 상관없어요". */
6
+ label: string;
7
+ };
8
+ export type FeedbackControlProps = {
9
+ /** Which way the reader voted. Controlled — this component never owns the verdict. */
10
+ value: FeedbackRating | null;
11
+ onRate: (rating: FeedbackRating | null) => void;
12
+ /** Offered after a rating. Empty, and this is two buttons and nothing else. */
13
+ reasons?: FeedbackReason[];
14
+ /** The reader sent their reasons. Chosen ids, and whatever they typed. */
15
+ onReasons?: (reasons: string[], note: string) => void;
16
+ /** Which verdict opens the reason step. Both, when a product wants to know what worked. */
17
+ askOn?: "down" | "both";
18
+ label?: string;
19
+ noteLabel?: string;
20
+ className?: string;
21
+ [key: `data-${string}`]: unknown;
22
+ };
23
+ /**
24
+ * Was this any good — and then the question every implementation stops before.
25
+ *
26
+ * **Why**. A thumbs-down with no second step tells a product that something was wrong and
27
+ * nothing about what, which is a metric that goes down and a team that cannot act. The
28
+ * reason step is not a nicety bolted onto the rating; it is the part that makes the rating
29
+ * worth collecting.
30
+ *
31
+ * It does not block. Nothing is disabled while it is open, the answer above stays readable,
32
+ * and the reader can walk away having voted and said nothing — a modal here would be asking
33
+ * a person who just told you the answer was bad to fill in a form before continuing.
34
+ *
35
+ * **The press is acknowledged.** A thumbs press that changes nothing a reader can perceive is
36
+ * a press people repeat, and then the product counts two. The verdict shows on the button and
37
+ * the sending is announced.
38
+ *
39
+ * The verdict stays changeable after it is sent. A reader who pressed the wrong one and can
40
+ * only watch it sit there is a reader who has learned not to press either.
41
+ *
42
+ * The two buttons are `ToggleButton`s and their labels name what they mean, not what state
43
+ * they are in — the rule that component was written to hold. "도움이 됐어요" with
44
+ * `aria-pressed` is one fact told once; a label that flips to "도움이 안 됐어요" while
45
+ * `aria-pressed` also flips is the same fact told twice, in opposite directions.
46
+ */
47
+ export declare function FeedbackControl({ value, onRate, reasons, onReasons, askOn, label, noteLabel, className, ...rest }: FeedbackControlProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FeedbackControl } from "./FeedbackControl";
2
+ export type { FeedbackControlProps, FeedbackRating, FeedbackReason } from "./FeedbackControl";
@@ -0,0 +1,67 @@
1
+ import "./FilterBuilder.css";
2
+ export type FilterFieldType = "text" | "number" | "date" | "choice";
3
+ export type FilterField = {
4
+ id: string;
5
+ label: string;
6
+ type: FilterFieldType;
7
+ /** For `choice` only. */
8
+ options?: {
9
+ value: string;
10
+ label: string;
11
+ }[];
12
+ };
13
+ export type FilterRule = {
14
+ id: string;
15
+ field: string;
16
+ operator: string;
17
+ value: string;
18
+ };
19
+ export type FilterJoin = "and" | "or";
20
+ /**
21
+ * The fields, and there is at least one.
22
+ *
23
+ * A contract that lives only in prose is a contract nobody keeps: an empty array made
24
+ * `fields[0]` undefined and the first render threw on `field.id`. The tuple says it where the
25
+ * caller reads it, at the call site, before it runs.
26
+ */
27
+ export type FilterFields = readonly [FilterField, ...FilterField[]];
28
+ export type FilterBuilderProps = {
29
+ fields: FilterFields;
30
+ rules: FilterRule[];
31
+ onRulesChange: (rules: FilterRule[]) => void;
32
+ join: FilterJoin;
33
+ onJoinChange: (join: FilterJoin) => void;
34
+ /** What the whole set of conditions is for. Names the group. */
35
+ label: string;
36
+ addLabel?: string;
37
+ className?: string;
38
+ [key: `data-${string}`]: unknown;
39
+ };
40
+ /**
41
+ * The operators a field type can take.
42
+ *
43
+ * Not a shared list. "포함" is meaningless for a date and "이후" is meaningless for a name,
44
+ * and offering both to both is how a query ends up reading 생성일 포함 김민수.
45
+ */
46
+ export declare const OPERATORS: Record<FilterFieldType, {
47
+ value: string;
48
+ label: string;
49
+ }[]>;
50
+ export declare function nextRule(fields: FilterFields, id: string): FilterRule;
51
+ /**
52
+ * 필드 · 연산자 · 값, joined.
53
+ *
54
+ * **Changing the field resets the operator and the value.** They belonged to the old field:
55
+ * an operator list is per type, and a value typed for a name is not a value for a date. Every
56
+ * builder that keeps them produces a rule that reads like a sentence and matches nothing —
57
+ * and it looks completely correct on screen, because both halves are things the reader
58
+ * themselves chose.
59
+ *
60
+ * **The join is one choice for the whole group.** The second row carries the select and every
61
+ * row after it shows the word, because "A 그리고 B 또는 C" has two meanings and a builder that
62
+ * lets it be typed has to pick one silently.
63
+ *
64
+ * **Each remove button is named after its rule.** Six buttons called "제거" are six buttons a
65
+ * reader cannot tell apart — the rule `Tag` and `NumberInput` already answer to.
66
+ */
67
+ export declare function FilterBuilder({ fields, rules, onRulesChange, join, onJoinChange, label, addLabel, className, ...rest }: FilterBuilderProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FilterBuilder, OPERATORS, nextRule } from "./FilterBuilder";
2
+ export type { FilterBuilderProps, FilterField, FilterFieldType, FilterJoin, FilterRule } from "./FilterBuilder";
@@ -0,0 +1,34 @@
1
+ import "./FollowUpList.css";
2
+ export type FollowUp = {
3
+ id: string;
4
+ /** The question itself, as the reader would ask it. This is also the button's name. */
5
+ question: string;
6
+ };
7
+ export type FollowUpListProps = {
8
+ items: FollowUp[];
9
+ onAsk: (item: FollowUp) => void;
10
+ /** What the list is. Names the group, and the summary when it folds. */
11
+ label?: string;
12
+ /** Folded behind a summary, the way a long answer's suggestions usually are. */
13
+ collapsible?: boolean;
14
+ defaultOpen?: boolean;
15
+ className?: string;
16
+ [key: `data-${string}`]: unknown;
17
+ };
18
+ /**
19
+ * The questions the answer suggests asking next.
20
+ *
21
+ * Each button's name *is* the question. Not "물어보기" five times — the repository already
22
+ * learned this from `Tag`, `SplitButton` and `NumberInput`: five buttons that read the same
23
+ * to a screen reader are five buttons a reader cannot choose between, and a suggestion list
24
+ * is the case where the difference between them is the entire point.
25
+ *
26
+ * They wrap rather than truncate, which is the opposite of what `PageHeader` does with its
27
+ * actions and right for the opposite reason. A clipped action is dangerous because the reader
28
+ * presses it anyway; a clipped question is useless because the reader cannot tell what they
29
+ * would be asking. When a question is long, the room goes to the question.
30
+ *
31
+ * Suggestions, not commands: they sit under the answer in a named group, so a reader moving
32
+ * by landmark or heading passes them rather than reading them as more of the answer.
33
+ */
34
+ export declare function FollowUpList({ items, onAsk, label, collapsible, defaultOpen, className, ...rest }: FollowUpListProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { FollowUpList } from "./FollowUpList";
2
+ export type { FollowUp, FollowUpListProps } from "./FollowUpList";
@@ -0,0 +1,62 @@
1
+ import type { ReactNode } from "react";
2
+ import "./KanbanColumn.css";
3
+ export type KanbanCard = {
4
+ id: string;
5
+ title: string;
6
+ /** A ticket number, a due date — one line, under the title. */
7
+ meta?: ReactNode;
8
+ /** Tags, an avatar, an estimate. */
9
+ footer?: ReactNode;
10
+ };
11
+ export type KanbanColumnProps = {
12
+ title: string;
13
+ cards: KanbanCard[];
14
+ /** Work in progress limit. The count says so when it is passed. */
15
+ limit?: number;
16
+ /**
17
+ * Move a card one column back or forward.
18
+ *
19
+ * Not optional in practice: this is the only path a keyboard has. See the note.
20
+ */
21
+ onMove?: (cardId: string, direction: -1 | 1) => void;
22
+ /** Given, the column accepts a card dropped on it. */
23
+ onDropCard?: (cardId: string) => void;
24
+ onAdd?: () => void;
25
+ /**
26
+ * The column is waiting for its cards.
27
+ *
28
+ * A board draws all its columns at once and they fill at different times, so a column with
29
+ * no waiting state is a board where empty and not-yet-arrived look identical — and a reader
30
+ * decides the column is done when it is not.
31
+ */
32
+ loading?: boolean;
33
+ loadingCards?: number;
34
+ /** What to say instead of "비어 있습니다". A column that is empty for a reason can say it. */
35
+ empty?: ReactNode;
36
+ /** What went wrong. Takes precedence over waiting, which takes precedence over empty. */
37
+ error?: ReactNode;
38
+ /** What is on either side, so the move controls can be named after the destination. */
39
+ neighbours?: {
40
+ back?: string;
41
+ forward?: string;
42
+ };
43
+ className?: string;
44
+ [key: `data-${string}`]: unknown;
45
+ };
46
+ /**
47
+ * One column of a board.
48
+ *
49
+ * **Dragging is not reachable by a keyboard, so every move exists twice.** HTML drag and drop
50
+ * fires no events for anyone who is not holding a pointer, and the ARIA drag-and-drop
51
+ * attributes were removed from the spec because nothing ever implemented them usefully. The
52
+ * answer is not a better drag: it is that moving a card is a *command* — a pair of buttons on
53
+ * the card, named after where the card would land — and dragging is the shortcut for the
54
+ * people who can use it. A board that is only draggable is a board a keyboard cannot play.
55
+ *
56
+ * **The limit is a fact about the column, so the column says it.** Not a red border alone:
57
+ * the count reads "5 / 4" and the word 초과 is in the name.
58
+ *
59
+ * **The header does not scroll.** A column of thirty cards whose title has scrolled away is a
60
+ * column of thirty cards nobody can name.
61
+ */
62
+ export declare function KanbanColumn({ title, cards, limit, onMove, onDropCard, onAdd, loading, loadingCards, empty, error, neighbours, className, ...rest }: KanbanColumnProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { KanbanColumn } from "./KanbanColumn";
2
+ export type { KanbanCard, KanbanColumnProps } from "./KanbanColumn";
@@ -0,0 +1,43 @@
1
+ import type { ReactNode } from "react";
2
+ import "./Message.css";
3
+ export type MessageRole = "user" | "assistant" | "system";
4
+ export type MessageState = "sent" | "streaming" | "failed";
5
+ export type MessageProps = {
6
+ children: ReactNode;
7
+ role?: MessageRole;
8
+ /** Who said it. Defaults to 나 / 어시스턴트, which is what the accessible name uses too. */
9
+ author?: string;
10
+ avatar?: ReactNode;
11
+ /** `YYYY-MM-DD HH:mm` — a string. See the note on `<time>` below. */
12
+ time?: string;
13
+ /** How it is displayed to a reader who cannot parse the machine form. */
14
+ timeLabel?: string;
15
+ state?: MessageState;
16
+ edited?: boolean;
17
+ /** Copy, retry, feedback. Present in the DOM always; see the stylesheet. */
18
+ actions?: ReactNode;
19
+ /** Files and images sent with the turn, above the text. */
20
+ attachments?: ReactNode;
21
+ /** Sources, tool calls, reasoning — what the turn was built out of, under it. */
22
+ footer?: ReactNode;
23
+ className?: string;
24
+ [key: `data-${string}`]: unknown;
25
+ };
26
+ /**
27
+ * One turn.
28
+ *
29
+ * The two roles are not two skins of the same thing, and drawing them as facing bubbles is
30
+ * the mistake that makes long assistant replies unreadable. A person's turn is short, known
31
+ * and finished: it hugs its own text, takes a fill, and sits at the end of the row. The
32
+ * assistant's turn is the page's body copy — it arrives over time, it can be twenty
33
+ * paragraphs, and it gets the full measure, no fill, and the same type as an article.
34
+ *
35
+ * So: `--message-measure` is 46ch for a person and 66ch for the assistant, and only one of
36
+ * the two ever has a ground.
37
+ *
38
+ * The turn's controls are in the DOM whether or not they are on screen. Rendering them on
39
+ * hover means they do not exist for a keyboard, and `visibility: hidden` means they are
40
+ * skipped by the tab order — so they are painted out with `opacity` and brought back by
41
+ * `:hover`, `:focus-within`, and by having no hover at all.
42
+ */
43
+ export declare function Message({ children, role, author, avatar, time, timeLabel, state, edited, actions, attachments, footer, className, ...rest }: MessageProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Message } from "./Message";
2
+ export type { MessageProps, MessageRole, MessageState } from "./Message";