@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,318 @@
1
+ import { s as e, t } from "./VisuallyHidden-DcE0EFpo.js";
2
+ import { r as n } from "./Tooltip-BJSUlXS2.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
+ import { Children as a, isValidElement as o, useEffect as s, useId as c, useMemo as l, useRef as u, useState as d } from "react";
5
+ import { Check as f, ChevronDown as p } from "lucide-react";
6
+ import * as m from "@radix-ui/react-popover";
7
+ //#region src/components/common/Badge/Badge.tsx
8
+ function h({ children: t, variant: n = "soft", tone: a = "neutral", size: o = "md", shape: s = "pill", dot: c, icon: l, className: u, ...d }) {
9
+ return /* @__PURE__ */ i("span", {
10
+ ...d,
11
+ className: `badge ${u ?? ""}`.trim(),
12
+ "data-variant": n,
13
+ "data-tone": a,
14
+ "data-size": o,
15
+ "data-shape": s,
16
+ children: [
17
+ c ? /* @__PURE__ */ r("span", {
18
+ className: "badge__dot",
19
+ "aria-hidden": "true"
20
+ }) : null,
21
+ l ? /* @__PURE__ */ r(e, {
22
+ icon: l,
23
+ size: o === "sm" ? "xs" : "sm"
24
+ }) : null,
25
+ /* @__PURE__ */ r("span", {
26
+ className: "badge__label",
27
+ children: t
28
+ })
29
+ ]
30
+ });
31
+ }
32
+ //#endregion
33
+ //#region src/components/common/Progress/Progress.tsx
34
+ function g({ value: e, max: t = 100, size: n = "md", tone: i = "accent", label: a, className: o, ...s }) {
35
+ return /* @__PURE__ */ r("progress", {
36
+ ...s,
37
+ className: `progress ${o ?? ""}`.trim(),
38
+ "data-size": n,
39
+ "data-tone": i,
40
+ value: e,
41
+ max: t,
42
+ "aria-label": a
43
+ });
44
+ }
45
+ //#endregion
46
+ //#region src/components/common/Radio/Radio.tsx
47
+ function _({ children: e, size: t = "md", disabled: n, invalid: a, className: o, ...s }) {
48
+ return /* @__PURE__ */ i("label", {
49
+ className: `radio ${o ?? ""}`.trim(),
50
+ "data-size": t,
51
+ "data-disabled": n ? "" : void 0,
52
+ "data-invalid": a ? "" : void 0,
53
+ children: [
54
+ /* @__PURE__ */ r("input", {
55
+ ...s,
56
+ type: "radio",
57
+ className: "radio__input",
58
+ disabled: n,
59
+ "aria-invalid": a || void 0
60
+ }),
61
+ /* @__PURE__ */ r("span", {
62
+ className: "radio__dot",
63
+ "aria-hidden": "true"
64
+ }),
65
+ e ? /* @__PURE__ */ r("span", {
66
+ className: "radio__label",
67
+ children: e
68
+ }) : null
69
+ ]
70
+ });
71
+ }
72
+ //#endregion
73
+ //#region src/components/common/Select/Select.tsx
74
+ function v(e) {
75
+ return a.toArray(e).filter((e) => o(e) && e.type === "option").map((e) => ({
76
+ value: String(e.props.value ?? ""),
77
+ label: a.toArray(e.props.children).join(""),
78
+ disabled: e.props.disabled
79
+ }));
80
+ }
81
+ function y({ children: t, value: a, defaultValue: o, onChange: h, size: g = "md", invalid: _, disabled: y, required: b, autoComplete: x, name: S, id: C, className: w, ...T }) {
82
+ let E = l(() => v(t), [t]), D = u(null), O = c(), k = (e) => `${O}-${e}`, [A, j] = d(a ?? o ?? E[0]?.value ?? "");
83
+ s(() => {
84
+ a !== void 0 && j(a);
85
+ }, [a]);
86
+ let [M, N] = d(!1), P = u({
87
+ text: "",
88
+ at: 0
89
+ }), F = n({
90
+ rows: E,
91
+ locked: (e) => !!e.disabled,
92
+ id: (e, t) => k(t),
93
+ loop: !1
94
+ }), { active: I, setActive: L } = F, R = E.findIndex((e) => e.value === A), z = R >= 0 ? E[R].label : "", B = (e) => {
95
+ let t = D.current;
96
+ if (!t || e === A) return V();
97
+ (Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, "value")?.set)?.call(t, e), t.dispatchEvent(new Event("change", { bubbles: !0 })), j(e), V();
98
+ }, V = () => {
99
+ N(!1), P.current = {
100
+ text: "",
101
+ at: 0
102
+ };
103
+ }, H = (e, t) => {
104
+ for (let n = 1; n <= E.length; n += 1) {
105
+ let r = (t + n) % E.length, i = E[r];
106
+ if (!i.disabled && i.label.toLowerCase().startsWith(e)) return r;
107
+ }
108
+ return -1;
109
+ }, U = (e) => {
110
+ if (y || E.filter((e) => !e.disabled).length === 0) return;
111
+ let t = (e, t) => {
112
+ for (let n = e; n >= 0 && n < E.length; n += t) if (!E[n].disabled) return B(E[n].value);
113
+ };
114
+ switch (e.key) {
115
+ case "ArrowDown": return e.preventDefault(), M ? F.move(1) : N(!0);
116
+ case "ArrowUp": return e.preventDefault(), M ? F.move(-1) : N(!0);
117
+ case "Home": return e.preventDefault(), M ? F.first() : t(0, 1);
118
+ case "End": return e.preventDefault(), M ? F.last() : t(E.length - 1, -1);
119
+ case "Enter":
120
+ case " ": {
121
+ if (e.preventDefault(), !M) return N(!0);
122
+ let t = F.activeRow;
123
+ return !t || t.disabled ? void 0 : B(t.value);
124
+ }
125
+ case "Escape":
126
+ M && (e.preventDefault(), V());
127
+ return;
128
+ case "Tab":
129
+ M && V();
130
+ return;
131
+ }
132
+ if (e.key.length !== 1 || e.metaKey || e.ctrlKey || e.altKey) return;
133
+ let n = Date.now(), r = n - P.current.at > 1e3, i = e.key.toLowerCase(), a = r || P.current.text === i ? i : P.current.text + i;
134
+ P.current = {
135
+ text: a,
136
+ at: n
137
+ };
138
+ let o = P.current.text === i && !r ? M ? I : R : (M ? I : R) - 1, s = H(a, o);
139
+ s < 0 || (e.preventDefault(), M ? L(s) : B(E[s].value));
140
+ };
141
+ return /* @__PURE__ */ r(m.Root, {
142
+ open: M && !y,
143
+ onOpenChange: (e) => (e ? L(Math.max(0, R)) : V(), N(e)),
144
+ children: /* @__PURE__ */ i("span", {
145
+ className: `select ${w ?? ""}`.trim(),
146
+ "data-size": g,
147
+ "data-invalid": _ ? "" : void 0,
148
+ "data-disabled": y ? "" : void 0,
149
+ "data-open": M ? "" : void 0,
150
+ children: [
151
+ /* @__PURE__ */ r("select", {
152
+ ref: D,
153
+ className: "select__field",
154
+ name: S,
155
+ required: b,
156
+ autoComplete: x,
157
+ disabled: y,
158
+ value: a,
159
+ defaultValue: a === void 0 ? o : void 0,
160
+ onChange: (e) => {
161
+ j(e.target.value), h?.(e);
162
+ },
163
+ tabIndex: -1,
164
+ "aria-hidden": "true",
165
+ children: t
166
+ }),
167
+ /* @__PURE__ */ r(m.Anchor, {
168
+ asChild: !0,
169
+ children: /* @__PURE__ */ i("button", {
170
+ "data-part": "control",
171
+ ...T,
172
+ type: "button",
173
+ id: C,
174
+ className: "select__control",
175
+ role: "combobox",
176
+ "aria-controls": O,
177
+ "aria-expanded": M,
178
+ "aria-activedescendant": M ? F.activeId : void 0,
179
+ "aria-invalid": _ || void 0,
180
+ "aria-required": b || void 0,
181
+ "aria-disabled": y || void 0,
182
+ onClick: () => !y && N((e) => !e),
183
+ onKeyDown: U,
184
+ children: [/* @__PURE__ */ r("span", {
185
+ className: "select__value",
186
+ children: z
187
+ }), /* @__PURE__ */ r(e, {
188
+ icon: p,
189
+ size: g === "lg" ? "md" : "sm",
190
+ className: "select__chevron",
191
+ "aria-hidden": "true"
192
+ })]
193
+ })
194
+ }),
195
+ /* @__PURE__ */ r(m.Portal, { children: /* @__PURE__ */ r(m.Content, {
196
+ className: "select__panel",
197
+ side: "bottom",
198
+ align: "start",
199
+ sideOffset: 4,
200
+ collisionPadding: 12,
201
+ onOpenAutoFocus: (e) => e.preventDefault(),
202
+ onCloseAutoFocus: (e) => e.preventDefault(),
203
+ children: /* @__PURE__ */ r("ul", {
204
+ className: "select__list",
205
+ id: O,
206
+ role: "listbox",
207
+ "aria-label": z,
208
+ children: E.map((t, n) => /* @__PURE__ */ i("li", {
209
+ id: k(n),
210
+ className: "select__option",
211
+ role: "option",
212
+ "aria-selected": t.value === A,
213
+ "aria-disabled": t.disabled || void 0,
214
+ "data-active": n === I ? "" : void 0,
215
+ "data-part": `option-${t.value}`,
216
+ onMouseDown: (e) => {
217
+ e.preventDefault(), t.disabled || B(t.value);
218
+ },
219
+ onMouseEnter: () => L(n),
220
+ children: [/* @__PURE__ */ r("span", {
221
+ className: "select__mark",
222
+ "aria-hidden": "true",
223
+ children: t.value === A ? /* @__PURE__ */ r(e, {
224
+ icon: f,
225
+ size: "xs"
226
+ }) : null
227
+ }), t.label]
228
+ }, t.value))
229
+ })
230
+ }) })
231
+ ]
232
+ })
233
+ });
234
+ }
235
+ //#endregion
236
+ //#region src/components/common/Textarea/Textarea.tsx
237
+ function b({ size: e = "md", resize: t = "vertical", invalid: n, disabled: i, readOnly: a, rows: o = 4, className: s, ...c }) {
238
+ return /* @__PURE__ */ r("span", {
239
+ className: `textarea ${s ?? ""}`.trim(),
240
+ "data-size": e,
241
+ "data-resize": t,
242
+ "data-invalid": n ? "" : void 0,
243
+ "data-disabled": i ? "" : void 0,
244
+ "data-readonly": a ? "" : void 0,
245
+ children: /* @__PURE__ */ r("textarea", {
246
+ "aria-invalid": n || void 0,
247
+ ...c,
248
+ className: "textarea__control",
249
+ rows: o,
250
+ disabled: i,
251
+ readOnly: a
252
+ })
253
+ });
254
+ }
255
+ //#endregion
256
+ //#region src/components/common/Waveform/Waveform.tsx
257
+ var x = 5, S = {
258
+ idle: "대기 중",
259
+ listening: "듣는 중",
260
+ thinking: "생각하는 중",
261
+ speaking: "말하는 중"
262
+ };
263
+ function C({ state: e, levels: n, label: a, elapsed: o, variant: s = "bar", size: c = "md", className: l, ...u }) {
264
+ let d = (e === "listening" || e === "speaking") && n?.length ? n.map((e) => Math.min(1, Math.max(0, e))) : Array.from({ length: x }, () => .25), f = 100 / d.length;
265
+ return /* @__PURE__ */ i("div", {
266
+ ...u,
267
+ className: `waveform ${l ?? ""}`.trim(),
268
+ "data-state": e,
269
+ "data-variant": s,
270
+ "data-size": c,
271
+ children: [s === "line" ? /* @__PURE__ */ r("svg", {
272
+ className: "waveform__draw",
273
+ viewBox: "0 0 100 100",
274
+ preserveAspectRatio: "none",
275
+ "aria-hidden": "true",
276
+ "data-part": "draw",
277
+ children: /* @__PURE__ */ r("polyline", {
278
+ className: "waveform__line",
279
+ points: d.map((e, t) => {
280
+ let n = e * 45 * (t % 2 == 0 ? -1 : 1);
281
+ return `${t * f + f / 2},${50 + n}`;
282
+ }).join(" "),
283
+ "data-part": "line"
284
+ })
285
+ }) : /* @__PURE__ */ r("div", {
286
+ className: "waveform__draw",
287
+ "aria-hidden": "true",
288
+ "data-part": "draw",
289
+ style: { "--waveform-count": d.length },
290
+ children: d.map((e, t) => /* @__PURE__ */ r("span", {
291
+ className: "waveform__bar",
292
+ style: {
293
+ "--waveform-level": e,
294
+ "--waveform-index": t
295
+ },
296
+ "data-part": "bar"
297
+ }, t))
298
+ }), /* @__PURE__ */ i("p", {
299
+ className: "waveform__said",
300
+ "data-part": "said",
301
+ children: [
302
+ /* @__PURE__ */ r("span", {
303
+ className: "waveform__word",
304
+ children: S[e]
305
+ }),
306
+ o ? /* @__PURE__ */ r("span", {
307
+ className: "waveform__elapsed",
308
+ children: o
309
+ }) : null,
310
+ /* @__PURE__ */ r(t, { children: ` — ${a}` })
311
+ ]
312
+ })]
313
+ });
314
+ }
315
+ //#endregion
316
+ export { g as a, _ as i, b as n, h as o, y as r, C as t };
317
+
318
+ //# sourceMappingURL=Waveform-BIE2Ztc8.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Waveform-BIE2Ztc8.js","names":[],"sources":["../../src/components/common/Badge/Badge.tsx","../../src/components/common/Progress/Progress.tsx","../../src/components/common/Radio/Radio.tsx","../../src/components/common/Select/Select.tsx","../../src/components/common/Textarea/Textarea.tsx","../../src/components/common/Waveform/Waveform.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { Icon } from \"../Icon\";\nimport \"./Badge.css\";\n\nexport type BadgeVariant = \"solid\" | \"soft\" | \"outline\";\nexport type BadgeTone = \"neutral\" | \"accent\" | \"success\" | \"warning\" | \"danger\";\nexport type BadgeSize = \"sm\" | \"md\";\nexport type BadgeShape = \"rounded\" | \"pill\";\n\nexport type BadgeProps = {\n children: ReactNode;\n variant?: BadgeVariant;\n tone?: BadgeTone;\n size?: BadgeSize;\n /**\n * 기본은 pill입니다.\n *\n * 배지는 글자 한둘짜리 작은 상자라 모서리 4px이 거의 안 보입니다. 그래서 그 자리에 무엇이\n * 있는지가 「글자 옆의 색깔」로만 읽혔습니다. 알약 모양은 상자의 경계를 스스로 말합니다.\n * 참조 구현(Mantine)도 같은 이유로 pill입니다.\n *\n * `rounded`(4px)는 배지가 표의 칸이나 카드 모서리에 붙어 그 각을 따라야 할 때 씁니다.\n */\n shape?: BadgeShape;\n /** A dot before the label, for a state that a reader scans for rather than reads. */\n dot?: boolean;\n icon?: LucideIcon;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * A small piece of state, said in a word.\n *\n * The tone is never the only carrier: the label says the state, and the colour agrees with\n * it. A badge that means \"failed\" because it is red and says nothing is a badge that means\n * nothing to a reader who cannot separate red from green — about one man in twelve.\n */\nexport function Badge({\n children,\n variant = \"soft\",\n tone = \"neutral\",\n size = \"md\",\n shape = \"pill\",\n dot,\n icon,\n className,\n ...rest\n}: BadgeProps) {\n return (\n <span\n {...rest}\n className={`badge ${className ?? \"\"}`.trim()}\n data-variant={variant}\n data-tone={tone}\n data-size={size}\n data-shape={shape}\n >\n {dot ? <span className=\"badge__dot\" aria-hidden=\"true\" /> : null}\n {icon ? <Icon icon={icon} size={size === \"sm\" ? \"xs\" : \"sm\"} /> : null}\n <span className=\"badge__label\">{children}</span>\n </span>\n );\n}\n","import \"./Progress.css\";\n\nexport type ProgressSize = \"sm\" | \"md\";\nexport type ProgressTone = \"accent\" | \"success\" | \"warning\" | \"danger\";\n\nexport type ProgressProps = {\n /**\n * How far along, 0 to `max`. Omitted means the work has no measurable end, which is a\n * different statement and gets a different bar.\n */\n value?: number;\n max?: number;\n size?: ProgressSize;\n tone?: ProgressTone;\n /** What is progressing. A bar with no name is a bar nobody can ask about. */\n label: string;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * How far along something is, or that it is going at all.\n *\n * A native `<progress>`, and that is the whole design. The fill's width is data — the one\n * value a component genuinely cannot put in a stylesheet — and every way of expressing it in\n * CSS goes through a `style` attribute, which outranks the adopter, the theme and the\n * stylesheet. `<progress value=\"40\">` puts it in an attribute where it belongs, and brings\n * `role=\"progressbar\"` and the value announcement with it.\n *\n * Omitting `value` makes it indeterminate, in the element's own vocabulary, and `:indeterminate`\n * is what the stylesheet keys the travelling stripe off.\n */\nexport function Progress({\n value,\n max = 100,\n size = \"md\",\n tone = \"accent\",\n label,\n className,\n ...rest\n}: ProgressProps) {\n return (\n <progress\n {...rest}\n className={`progress ${className ?? \"\"}`.trim()}\n data-size={size}\n data-tone={tone}\n value={value}\n max={max}\n aria-label={label}\n />\n );\n}\n","import type { ChangeEvent, ReactNode } from \"react\";\nimport \"./Radio.css\";\n\nexport type RadioSize = \"sm\" | \"md\";\n\nexport type RadioProps = {\n children?: ReactNode;\n /**\n * The group this choice belongs to.\n *\n * Required, and required for a reason: radios with no shared name are not a group. They\n * look like one, they behave like a row of checkboxes, and a screen reader announces each\n * as \"1 of 1\". The browser builds the group from the name.\n */\n name: string;\n value: string;\n checked?: boolean;\n defaultChecked?: boolean;\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n size?: RadioSize;\n disabled?: boolean;\n invalid?: boolean;\n id?: string;\n /**\n * Where Tab enters the group, for the group that has to overrule the browser.\n *\n * The browser gives a radio group one tab stop and puts it on the checked radio. The\n * earlier note here said that a *disabled* checked radio leaves the group with no stop at\n * all — measured, and Chromium does not do that: it moves the stop to the first enabled\n * radio on its own, so the group is still reachable. Both of this repository's test\n * projects are Chromium, and nothing in it sets this prop.\n *\n * It stays as the escape hatch for an adopter on an engine that does strand the group.\n * Nothing else has any business setting it.\n */\n tabIndex?: number;\n className?: string;\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n};\n\n/**\n * One of several, and only one.\n *\n * A real `<input type=\"radio\">`, so arrow keys move within the group and skip past it on Tab\n * — which is the behaviour a reader expects and the behaviour that is hardest to rebuild.\n */\nexport function Radio({\n children,\n size = \"md\",\n disabled,\n invalid,\n className,\n ...rest\n}: RadioProps) {\n return (\n <label\n className={`radio ${className ?? \"\"}`.trim()}\n data-size={size}\n data-disabled={disabled ? \"\" : undefined}\n data-invalid={invalid ? \"\" : undefined}\n >\n <input\n {...rest}\n type=\"radio\"\n className=\"radio__input\"\n disabled={disabled}\n aria-invalid={invalid || undefined}\n />\n <span className=\"radio__dot\" aria-hidden=\"true\" />\n {children ? <span className=\"radio__label\">{children}</span> : null}\n </label>\n );\n}\n","import { Children, isValidElement, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport type { ChangeEvent, KeyboardEvent, ReactElement, ReactNode } from \"react\";\nimport * as RadixPopover from \"@radix-ui/react-popover\";\nimport { Check, ChevronDown } from \"lucide-react\";\nimport { Icon } from \"../Icon\";\nimport { useListbox } from \"./listbox\";\nimport \"./Select.css\";\n\nexport type SelectSize = \"sm\" | \"md\" | \"lg\";\n\nexport type SelectProps = {\n /** `<option>` elements, the same as a native select takes. See the note on why. */\n children: ReactNode;\n value?: string;\n defaultValue?: string;\n onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;\n size?: SelectSize;\n invalid?: boolean;\n disabled?: boolean;\n required?: boolean;\n /**\n * The token a browser fills this from — `country`, `cc-exp-month`, `address-level1`.\n *\n * Asked for by `AddressForm`. A select is as fillable as a text field and is left out of\n * autofill more often than any other control, which is how a form that fills five fields in\n * one press leaves the sixth blank.\n */\n autoComplete?: string;\n name?: string;\n id?: string;\n className?: string;\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n};\n\ntype Choice = { value: string; label: string; disabled?: boolean };\n\n/** The `<option>` children, read as data. Anything that is not an option is skipped. */\nfunction choices(children: ReactNode): Choice[] {\n return Children.toArray(children)\n .filter((child): child is ReactElement<{ value?: string; disabled?: boolean; children?: ReactNode }> =>\n isValidElement(child) && child.type === \"option\")\n .map((option) => ({\n value: String(option.props.value ?? \"\"),\n label: Children.toArray(option.props.children).join(\"\"),\n disabled: option.props.disabled,\n }));\n}\n\n/**\n * A closed list, drawn here rather than by the operating system.\n *\n * **It used to be a bare native `<select>`, and the list it opened was the platform's.** That\n * is defensible on its own — the wheel on iOS is genuinely good, and the system's keyboard\n * search comes free. It is not defensible next to `Combobox`, which draws its own list from\n * the same tokens: the same product then had two dropdowns that looked nothing alike, and one\n * of them looked different again on every operating system it ran on. Consistency is the\n * thing a design system is for.\n *\n * **The native element is still here, and it is still the form's field.** It is hidden and\n * out of the tab order, but it holds the value, carries `name`, `required` and\n * `autoComplete`, submits with the form and takes the browser's autofill. Choosing an option\n * writes to it through the prototype's own setter and dispatches a real `change`, so `onChange`\n * fires exactly as it did before — which is why every call site and every spec kept working\n * when this was rewritten.\n *\n * **What replaced it is the `Combobox` pattern with the typing taken out.** A button that\n * reports `combobox`, a listbox in a popover, `aria-activedescendant` walking the options, and\n * type-ahead — because losing the system's keyboard search is the one real cost of drawing\n * the list, and a closed list of forty is unusable without it.\n */\nexport function Select({\n children,\n value,\n defaultValue,\n onChange,\n size = \"md\",\n invalid,\n disabled,\n required,\n autoComplete,\n name,\n id,\n className,\n ...rest\n}: SelectProps) {\n const options = useMemo(() => choices(children), [children]);\n const field = useRef<HTMLSelectElement>(null);\n const listId = useId();\n const optionId = (index: number) => `${listId}-${index}`;\n\n /*\n * The native element is the value's home whether or not the caller controls it, so this\n * mirror exists only so the trigger can render a label. It follows the element rather than\n * leading it — every path that changes the value goes through the element first.\n */\n const [shown, setShown] = useState(value ?? defaultValue ?? options[0]?.value ?? \"\");\n useEffect(() => {\n if (value !== undefined) setShown(value);\n }, [value]);\n\n const [open, setOpen] = useState(false);\n const search = useRef({ text: \"\", at: 0 });\n\n /* No wrap: this stands in for a native select, and a native select does not wrap. */\n const rows = useListbox({\n rows: options,\n locked: (option) => Boolean(option.disabled),\n id: (_option, index) => optionId(index),\n loop: false,\n });\n const { active, setActive } = rows;\n\n const current = options.findIndex((one) => one.value === shown);\n const label = current >= 0 ? options[current].label : \"\";\n\n /*\n * Written through the prototype's setter, then a real `change` event.\n *\n * React installs its own `value` setter on the instance, and assigning to it directly\n * updates the DOM without React noticing — the next render puts the old value back. Going\n * through the prototype and dispatching is the path React's own change handling listens on,\n * so a controlled caller gets its `onChange` and an uncontrolled one keeps the element's\n * state. It is the same trick a test harness uses to type into a controlled input.\n */\n const commit = (next: string) => {\n const node = field.current;\n if (!node || next === shown) return close();\n const setter = Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, \"value\")?.set;\n setter?.call(node, next);\n node.dispatchEvent(new Event(\"change\", { bubbles: true }));\n setShown(next);\n close();\n };\n\n const close = () => {\n setOpen(false);\n search.current = { text: \"\", at: 0 };\n };\n\n /** The first choosable option after `from` whose label starts with `text`, wrapping once. */\n const seek = (text: string, from: number) => {\n for (let step = 1; step <= options.length; step += 1) {\n const index = (from + step) % options.length;\n const option = options[index];\n if (!option.disabled && option.label.toLowerCase().startsWith(text)) return index;\n }\n return -1;\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLButtonElement>) => {\n if (disabled) return;\n const usable = options.filter((one) => !one.disabled);\n if (usable.length === 0) return;\n\n /*\n * Open, the keys walk the list. Closed, Home and End take a value outright, which is what\n * a native select does and what the form's field still is.\n *\n * The walk itself is `useListbox`. It skips what the pointer cannot reach: a click handler\n * that refuses a disabled option and an arrow key that lands on one anyway is a control\n * saying no to the mouse and yes to the keyboard.\n */\n /** Closed only: the first choosable option from `to`, travelling in `delta`, taken. */\n const jump = (to: number, delta: number) => {\n for (let index = to; index >= 0 && index < options.length; index += delta) {\n if (!options[index].disabled) return commit(options[index].value);\n }\n };\n\n switch (event.key) {\n case \"ArrowDown\":\n event.preventDefault();\n if (!open) return setOpen(true);\n return rows.move(1);\n case \"ArrowUp\":\n event.preventDefault();\n if (!open) return setOpen(true);\n return rows.move(-1);\n case \"Home\":\n event.preventDefault();\n return open ? rows.first() : jump(0, 1);\n case \"End\":\n event.preventDefault();\n return open ? rows.last() : jump(options.length - 1, -1);\n case \"Enter\":\n case \" \": {\n event.preventDefault();\n if (!open) return setOpen(true);\n const option = rows.activeRow;\n if (!option || option.disabled) return;\n return commit(option.value);\n }\n case \"Escape\":\n if (open) {\n event.preventDefault();\n close();\n }\n return;\n case \"Tab\":\n if (open) close();\n return;\n default:\n break;\n }\n\n /*\n * Type-ahead, which is the one thing the platform's list gave away for free. A closed\n * list of forty countries that can only be walked one arrow at a time is a list nobody\n * walks. Repeating the same letter steps through the options that start with it; anything\n * else within a second extends the search.\n */\n if (event.key.length !== 1 || event.metaKey || event.ctrlKey || event.altKey) return;\n const now = Date.now();\n const stale = now - search.current.at > 1000;\n const typed = event.key.toLowerCase();\n const text = stale || search.current.text === typed ? typed : search.current.text + typed;\n search.current = { text, at: now };\n const from = search.current.text === typed && !stale ? (open ? active : current) : (open ? active : current) - 1;\n const found = seek(text, from);\n if (found < 0) return;\n event.preventDefault();\n if (open) setActive(found);\n else commit(options[found].value);\n };\n\n return (\n <RadixPopover.Root\n open={open && !disabled}\n onOpenChange={(next) => (next ? setActive(Math.max(0, current)) : close(), setOpen(next))}\n >\n <span\n className={`select ${className ?? \"\"}`.trim()}\n data-size={size}\n data-invalid={invalid ? \"\" : undefined}\n data-disabled={disabled ? \"\" : undefined}\n data-open={open ? \"\" : undefined}\n >\n {/*\n * The form's field. Hidden from sight and from the tab order, present for everything\n * else: the submitted value, `required`, `autoComplete`, and the browser's autofill.\n */}\n <select\n ref={field}\n className=\"select__field\"\n name={name}\n required={required}\n autoComplete={autoComplete}\n disabled={disabled}\n value={value}\n defaultValue={value === undefined ? defaultValue : undefined}\n onChange={(event) => {\n setShown(event.target.value);\n onChange?.(event);\n }}\n tabIndex={-1}\n aria-hidden=\"true\"\n >\n {children}\n </select>\n\n <RadixPopover.Anchor asChild>\n <button\n /* Before the spread, not after: a caller that names this part — `AddressForm`\n * labels its country and region selects — has to win, and writing it afterwards\n * silently replaced their name with this one. */\n data-part=\"control\"\n {...rest}\n type=\"button\"\n id={id}\n className=\"select__control\"\n role=\"combobox\"\n aria-controls={listId}\n aria-expanded={open}\n aria-activedescendant={open ? rows.activeId : undefined}\n aria-invalid={invalid || undefined}\n aria-required={required || undefined}\n /* `aria-disabled`, not `disabled`: the rule `Button` set. A control that leaves\n * the tab order takes the reader standing on it with it. */\n aria-disabled={disabled || undefined}\n onClick={() => !disabled && setOpen((was) => !was)}\n onKeyDown={onKeyDown}\n >\n <span className=\"select__value\">{label}</span>\n <Icon\n icon={ChevronDown}\n size={size === \"lg\" ? \"md\" : \"sm\"}\n className=\"select__chevron\"\n aria-hidden=\"true\"\n />\n </button>\n </RadixPopover.Anchor>\n\n <RadixPopover.Portal>\n <RadixPopover.Content\n className=\"select__panel\"\n side=\"bottom\"\n align=\"start\"\n sideOffset={4}\n collisionPadding={12}\n /* The focus stays on the trigger, because the trigger is what type-ahead is\n * listening on. `aria-activedescendant` is what walks the list. */\n onOpenAutoFocus={(event) => event.preventDefault()}\n onCloseAutoFocus={(event) => event.preventDefault()}\n >\n <ul className=\"select__list\" id={listId} role=\"listbox\" aria-label={label}>\n {options.map((option, index) => (\n <li\n key={option.value}\n id={optionId(index)}\n className=\"select__option\"\n role=\"option\"\n aria-selected={option.value === shown}\n aria-disabled={option.disabled || undefined}\n data-active={index === active ? \"\" : undefined}\n data-part={`option-${option.value}`}\n onMouseDown={(event) => {\n event.preventDefault();\n if (!option.disabled) commit(option.value);\n }}\n onMouseEnter={() => setActive(index)}\n >\n <span className=\"select__mark\" aria-hidden=\"true\">\n {option.value === shown ? <Icon icon={Check} size=\"xs\" /> : null}\n </span>\n {option.label}\n </li>\n ))}\n </ul>\n </RadixPopover.Content>\n </RadixPopover.Portal>\n </span>\n </RadixPopover.Root>\n );\n}\n","import type { ChangeEvent } from \"react\";\nimport \"./Textarea.css\";\n\nexport type TextareaSize = \"sm\" | \"md\" | \"lg\";\nexport type TextareaResize = \"none\" | \"vertical\";\n\nexport type TextareaProps = {\n value?: string;\n defaultValue?: string;\n onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;\n placeholder?: string;\n rows?: number;\n size?: TextareaSize;\n /**\n * `vertical` by default, and never `horizontal` or `both`.\n *\n * A field that can be dragged wider than its column pushes the layout around it, and the\n * reader who did it cannot always see what they broke. Taller is safe; wider is not.\n */\n resize?: TextareaResize;\n invalid?: boolean;\n disabled?: boolean;\n readOnly?: boolean;\n required?: boolean;\n name?: string;\n id?: string;\n className?: string;\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n};\n\nexport function Textarea({\n size = \"md\",\n resize = \"vertical\",\n invalid,\n disabled,\n readOnly,\n rows = 4,\n className,\n ...rest\n}: TextareaProps) {\n return (\n <span\n className={`textarea ${className ?? \"\"}`.trim()}\n data-size={size}\n data-resize={resize}\n data-invalid={invalid ? \"\" : undefined}\n data-disabled={disabled ? \"\" : undefined}\n data-readonly={readOnly ? \"\" : undefined}\n >\n <textarea\n /*\n * Before the spread, so a caller's own `aria-invalid` wins.\n *\n * Written after it, this line replaced whatever the caller passed with `undefined`\n * — and `CouponField`, which marks its field from its own error state, silently had\n * no `aria-invalid` at all while its `aria-describedby` pointed at the message. It is\n * the rule `Stack`, `Select` and `Slider` already state: the component's own\n * attributes go before the spread, because a caller who names one has to win.\n */\n aria-invalid={invalid || undefined}\n {...rest}\n className=\"textarea__control\"\n rows={rows}\n disabled={disabled}\n readOnly={readOnly}\n />\n </span>\n );\n}\n","import type { CSSProperties } from \"react\";\nimport { VisuallyHidden } from \"../VisuallyHidden\";\nimport \"./Waveform.css\";\n\nexport type WaveformState = \"idle\" | \"listening\" | \"thinking\" | \"speaking\";\n/**\n * The geometry, and only the geometry.\n *\n * `docs/음성-특화-컴포넌트.md` names five — bar, grid, radial, wave, aura — and the previous\n * line of work built all five as one component sharing one array of values, with the shape\n * differing in CSS alone. That is right, and it is why this is a `variant` rather than five\n * exports: five files whose helpers are byte-identical copies is a permutation, not a library.\n *\n * `aura` is the one not here. A glow that swells says the level and nothing else — no\n * sequence, no detail, no count — and the plan's rule for this kind of thing is that an effect\n * carries a fact or it does not exist. Behind an orb it is the host's background, not a meter.\n */\nexport type WaveformVariant = \"bar\" | \"line\" | \"grid\" | \"radial\";\nexport type WaveformSize = \"sm\" | \"md\" | \"lg\";\n\nexport type WaveformProps = {\n state: WaveformState;\n /**\n * Amplitudes, 0 to 1, oldest first.\n *\n * Read in `listening` and `speaking` and ignored everywhere else — see the note. Anything\n * outside 0..1 is clamped rather than trusted: an analyser that returns 1.4 for one frame\n * would otherwise draw a bar out of the box.\n */\n levels?: number[];\n /** What this is a picture of. \"마이크 입력\", \"에이전트 음성\". */\n label: string;\n /**\n * How long the current state has lasted. \"0:04\", \"1분 12초\".\n *\n * The second of `thinking`'s three channels, and the one that survives a screenshot. Two\n * seconds and sixty seconds look identical in any loop, so a loop on its own postpones the\n * moment of doubt rather than removing it.\n */\n elapsed?: string;\n variant?: WaveformVariant;\n size?: WaveformSize;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/** How many bars are drawn when there is nothing to draw from. */\nconst RESTING = 5;\nconst SAID: Record<WaveformState, string> = {\n idle: \"대기 중\",\n listening: \"듣는 중\",\n thinking: \"생각하는 중\",\n speaking: \"말하는 중\",\n};\n\n/**\n * What the microphone is hearing, or what the agent is doing instead.\n *\n * **Amplitude is read in two states and invented in none.** `listening` and `speaking` have a\n * signal; `idle` and `thinking` do not, and a component that animated them from a random walk\n * would be drawing sound that is not there — which is the one thing a level meter must never\n * do. The two silent states have shapes of their own instead.\n *\n * **`thinking` carries three channels and only one of them moves.** The sweep is the\n * animation; the elapsed time and the state word are text. That matters because the moment\n * this component exists for — the silence while a model reasons — is exactly when a reader\n * starts wondering whether the thing has crashed, and the two of the three channels that\n * survive a screenshot, `prefers-reduced-motion`, and a screen reader are the ones that answer\n * them.\n *\n * **It does not own the stream.** No `getUserMedia`, no `AudioContext`, no analyser. Levels\n * arrive as numbers and the state arrives as a word — inferring one from the other is how a\n * meter starts calling a cough \"speaking\".\n *\n * **The shape is drawn in element attributes.** `Progress` settled this for one value: the\n * geometry that comes from data goes where a stylesheet cannot be outranked by it. Here it is\n * `height`, `y` and `points` on SVG children, so the size stays CSS's and only the shape is\n * the data's.\n */\nexport function Waveform({\n state,\n levels,\n label,\n elapsed,\n variant = \"bar\",\n size = \"md\",\n className,\n ...rest\n}: WaveformProps) {\n /*\n * The resting shape, and it is not silence drawn as zero.\n *\n * A meter flat against the floor reads as \"broken\" rather than as \"nothing to hear\", so the\n * two states with no signal draw a short, even row — the same thing a hardware meter does\n * when it is on and idle.\n */\n const heard = state === \"listening\" || state === \"speaking\";\n const values = heard && levels?.length\n ? levels.map((level) => Math.min(1, Math.max(0, level)))\n : Array.from({ length: RESTING }, () => 0.25);\n\n const step = 100 / values.length;\n\n return (\n <div\n {...rest}\n className={`waveform ${className ?? \"\"}`.trim()}\n data-state={state}\n data-variant={variant}\n data-size={size}\n >\n {/*\n * `aria-hidden` on the drawing and the words beside it, rather than a label on the SVG.\n * A live region that re-read a moving meter would say nothing a reader can use and\n * would never stop saying it.\n */}\n {variant === \"line\" ? (\n /*\n * A line is a continuous trace and SVG is the only thing that draws one, so here the\n * geometry is an element attribute — the answer `Progress` settled for a value that\n * comes from data. Stretching the box stretches the trace, which is what a trace does.\n */\n <svg\n className=\"waveform__draw\"\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"none\"\n aria-hidden=\"true\"\n data-part=\"draw\"\n >\n {/*\n * The line crosses the middle between samples, which is what a waveform is: the sign\n * alternates and the amplitude is the distance from the centre. Drawing only the\n * upper half would be an envelope, and an envelope of a voice looks like a mountain\n * range rather than a sound.\n */}\n <polyline\n className=\"waveform__line\"\n points={values\n .map((level, index) => {\n const away = level * 45 * (index % 2 === 0 ? -1 : 1);\n return `${index * step + step / 2},${50 + away}`;\n })\n .join(\" \")}\n data-part=\"line\"\n />\n </svg>\n ) : (\n /*\n * Bars are boxes, and boxes are CSS's.\n *\n * The first version drew them in the same stretched `viewBox` as the line, and that is\n * wrong for a bar in a way a screenshot at one width hides: `preserveAspectRatio: none`\n * scales x and y by different amounts, so a bar's *thickness* and the radius of its\n * ends change with how wide the box happens to be. A meter's bars are the same three\n * pixels across in a phone composer and in a full-screen call; only how many fit\n * changes. Two millimetres of rounded end is not a thing that should depend on a\n * container query nobody wrote.\n *\n * So the height is the datum and everything else is a token. One custom property, the\n * same name on every bar, declared once in this component's stylesheet — which is the\n * third place a value may go and what the contract guard checks for.\n */\n <div\n className=\"waveform__draw\"\n aria-hidden=\"true\"\n data-part=\"draw\"\n /*\n * `--waveform-count` is only for `radial`, which needs to know how many bars there\n * are to space them around a circle. The other shapes lay themselves out and never\n * read it.\n */\n style={{ \"--waveform-count\": values.length } as CSSProperties}\n >\n {values.map((level, index) => (\n <span\n className=\"waveform__bar\"\n key={index}\n style={{ \"--waveform-level\": level, \"--waveform-index\": index } as CSSProperties}\n data-part=\"bar\"\n />\n ))}\n </div>\n )}\n\n {/*\n * The state in words, and the elapsed time next to it. Two of `thinking`'s three\n * channels, and the two that are still there when nothing is moving.\n */}\n <p className=\"waveform__said\" data-part=\"said\">\n <span className=\"waveform__word\">{SAID[state]}</span>\n {elapsed ? <span className=\"waveform__elapsed\">{elapsed}</span> : null}\n <VisuallyHidden>{` — ${label}`}</VisuallyHidden>\n </p>\n </div>\n );\n}\n"],"mappings":";;;;;;;AAuCA,SAAgB,EAAM,EACpB,aACA,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MV,OAAO,EAAE,oBAAoB,EAAO,OAAO;GAE1C,UAAA,EAAO,KAAK,GAAO,MAClB,kBAAC,QAAD;IACE,WAAU;IAEV,OAAO;KAAE,oBAAoB;KAAO,oBAAoB;IAAM;IAC9D,aAAU;GACX,GAHM,CAGN,CACF;EACE,CAAA,GAOP,kBAAC,KAAD;GAAG,WAAU;GAAiB,aAAU;GAAxC,UAAA;IACE,kBAAC,QAAD;KAAM,WAAU;KAAkB,UAAA,EAAK;IAAa,CAAA;IACnD,IAAU,kBAAC,QAAD;KAAM,WAAU;KAAqB,UAAA;IAAc,CAAA,IAAI;IAClE,kBAAC,GAAD,EAAA,UAAiB,MAAM,IAAwB,CAAA;GAC9C;EACA,CAAA,CAAA;;AAET"}
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from "react";
2
+ import "./AspectRatio.css";
3
+ /**
4
+ * Named, not numeric.
5
+ *
6
+ * A `ratio={16 / 9}` would have to be written into a style attribute, which outranks every
7
+ * selector and is the one place this library will not put a value. Five names cover what a
8
+ * product surface actually uses, and a sixth is a line in a stylesheet rather than a number
9
+ * in a call site.
10
+ */
11
+ export type AspectRatioName = "square" | "video" | "photo" | "wide" | "portrait";
12
+ export type AspectRatioProps = {
13
+ /** One child. It is stretched to fill the box. */
14
+ children: ReactNode;
15
+ ratio?: AspectRatioName;
16
+ className?: string;
17
+ [key: `data-${string}`]: unknown;
18
+ };
19
+ /**
20
+ * A box whose height comes from its width.
21
+ *
22
+ * `aspect-ratio` in CSS, so the box is the right shape before anything inside it has loaded.
23
+ * That is the point of it: a grid of images that reserves nothing shifts every row down as
24
+ * each file arrives, and the reader loses the thing they were about to click.
25
+ */
26
+ export declare function AspectRatio({ children, ratio, className, ...rest }: AspectRatioProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { AspectRatio } from "./AspectRatio";
2
+ export type { AspectRatioProps, AspectRatioName } from "./AspectRatio";
@@ -0,0 +1,58 @@
1
+ import type { LucideIcon } from "lucide-react";
2
+ import "./Avatar.css";
3
+ export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
4
+ export type AvatarShape = "circle" | "rounded";
5
+ export type AvatarStatus = "online" | "away" | "busy" | "offline";
6
+ /** One of the seven categorical colours, or `"auto"` to take one from the name. */
7
+ export type AvatarTint = 1 | 2 | 3 | 4 | 5 | 6 | 7 | "auto";
8
+ export type AvatarProps = {
9
+ /** The person or thing. Used for the initials, and as the image's alternative text. */
10
+ name: string;
11
+ src?: string;
12
+ size?: AvatarSize;
13
+ shape?: AvatarShape;
14
+ status?: AvatarStatus;
15
+ /** What to draw when there is no image and no name worth reducing to letters. */
16
+ fallbackIcon?: LucideIcon;
17
+ /**
18
+ * A ground colour, so a row of initials is a row of people rather than a row of grey boxes.
19
+ *
20
+ * `"auto"` derives it from the name, which is the point: the same person is the same colour
21
+ * on every screen they appear on, without anyone storing a colour. It is decorative in the
22
+ * strict sense — the initials and the name carry the identity, and two people can share a
23
+ * colour without anything being lost.
24
+ */
25
+ tint?: AvatarTint;
26
+ /**
27
+ * The name is already said by whatever holds this avatar.
28
+ *
29
+ * Asked for by `AvatarGroup`, which puts each person's name in the list item itself so
30
+ * that one element owns it. Without this the image's `alt` would say the name a second
31
+ * time and a reader would hear "김민수 김민수"; with it the whole avatar leaves the
32
+ * accessibility tree and the group's own text is the only version.
33
+ */
34
+ decorative?: boolean;
35
+ className?: string;
36
+ [key: `data-${string}`]: unknown;
37
+ };
38
+ /**
39
+ * Initials from a name, in a way that survives Korean.
40
+ *
41
+ * A Latin name reduces to the first letter of the first and last words — "Alex Smith" is AS.
42
+ * A Korean name does not: 김민수 is one word, and its first letter is the family name 김,
43
+ * which is what a Korean reader expects to see. Splitting it further would give ㄱ, which is
44
+ * a jamo and not a letter anyone writes.
45
+ *
46
+ * The rule is therefore: if the name contains Hangul, take its first syllable. Otherwise take
47
+ * the first letter of the first two words.
48
+ */
49
+ export declare function initialsOf(name: string): string;
50
+ /**
51
+ * A number from 1 to 7 for a name, the same one every time.
52
+ *
53
+ * FNV-1a over code points rather than over UTF-16 units: a Hangul syllable is one code point
54
+ * and two units, and hashing the units would spread names by how they happen to be encoded.
55
+ * Seven is not a power of two, so the modulo does not throw away the mixing the hash did.
56
+ */
57
+ export declare function tintOf(name: string): 1 | 2 | 3 | 4 | 5 | 6 | 7;
58
+ export declare function Avatar({ name, src, size, shape, status, fallbackIcon, tint, decorative, className, ...rest }: AvatarProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Avatar, initialsOf } from "./Avatar";
2
+ export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus } from "./Avatar";
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./Badge.css";
4
+ export type BadgeVariant = "solid" | "soft" | "outline";
5
+ export type BadgeTone = "neutral" | "accent" | "success" | "warning" | "danger";
6
+ export type BadgeSize = "sm" | "md";
7
+ export type BadgeShape = "rounded" | "pill";
8
+ export type BadgeProps = {
9
+ children: ReactNode;
10
+ variant?: BadgeVariant;
11
+ tone?: BadgeTone;
12
+ size?: BadgeSize;
13
+ /**
14
+ * 기본은 pill입니다.
15
+ *
16
+ * 배지는 글자 한둘짜리 작은 상자라 모서리 4px이 거의 안 보입니다. 그래서 그 자리에 무엇이
17
+ * 있는지가 「글자 옆의 색깔」로만 읽혔습니다. 알약 모양은 상자의 경계를 스스로 말합니다.
18
+ * 참조 구현(Mantine)도 같은 이유로 pill입니다.
19
+ *
20
+ * `rounded`(4px)는 배지가 표의 칸이나 카드 모서리에 붙어 그 각을 따라야 할 때 씁니다.
21
+ */
22
+ shape?: BadgeShape;
23
+ /** A dot before the label, for a state that a reader scans for rather than reads. */
24
+ dot?: boolean;
25
+ icon?: LucideIcon;
26
+ className?: string;
27
+ [key: `data-${string}`]: unknown;
28
+ };
29
+ /**
30
+ * A small piece of state, said in a word.
31
+ *
32
+ * The tone is never the only carrier: the label says the state, and the colour agrees with
33
+ * it. A badge that means "failed" because it is red and says nothing is a badge that means
34
+ * nothing to a reader who cannot separate red from green — about one man in twelve.
35
+ */
36
+ export declare function Badge({ children, variant, tone, size, shape, dot, icon, className, ...rest }: BadgeProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Badge } from "./Badge";
2
+ export type { BadgeProps, BadgeVariant, BadgeTone, BadgeSize, BadgeShape } from "./Badge";
@@ -0,0 +1,40 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./Blockquote.css";
4
+ export type BlockquoteProps = {
5
+ children: ReactNode;
6
+ /**
7
+ * The visible attribution — a person, a document, a date. Rendered in a `<figcaption>`
8
+ * *outside* the quotation, which is where the HTML specification puts it: an attribution
9
+ * inside `<blockquote>` is being quoted, and the source did not say its own name.
10
+ */
11
+ cite?: ReactNode;
12
+ /**
13
+ * The URL of the document quoted from, which becomes the `cite` **attribute**. A different
14
+ * thing from the prop above, doing the opposite job: no browser and no screen reader
15
+ * surfaces it, so it is machine-readable provenance and never the attribution a reader
16
+ * sees. Giving only this one produces a quotation with no visible source.
17
+ */
18
+ sourceUrl?: string;
19
+ /** An optional mark before the quotation — a quote glyph, a logo, a status. */
20
+ icon?: LucideIcon;
21
+ className?: string;
22
+ [key: `data-${string}`]: unknown;
23
+ [key: `aria-${string}`]: unknown;
24
+ id?: string;
25
+ };
26
+ /**
27
+ * A quotation, and the source it came from.
28
+ *
29
+ * Which element: `<blockquote>` alone when there is nothing to attribute, `<figure>` around a
30
+ * `<blockquote>` and a `<figcaption>` when there is. That is not a preference — the HTML
31
+ * specification says outright that the attribution must not go inside `<blockquote>`, and
32
+ * names the `figure`/`figcaption` pair as the way to give one. A `<cite>` element dropped in
33
+ * after the closing tag would leave two siblings with nothing tying them together and nothing
34
+ * an assistive technology could use to say that this caption belongs to that quote; `figure`
35
+ * is exactly that tie.
36
+ *
37
+ * The structure therefore follows the content, and the reason it can is that a `figure` with
38
+ * no caption is a grouping that groups one thing.
39
+ */
40
+ export declare function Blockquote({ children, cite, sourceUrl, icon, className, ...rest }: BlockquoteProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Blockquote } from "./Blockquote";
2
+ export type { BlockquoteProps } from "./Blockquote";
@@ -0,0 +1,38 @@
1
+ import { type MouseEvent, type ReactNode, type Ref } from "react";
2
+ import type { LucideIcon } from "lucide-react";
3
+ import "./Button.css";
4
+ export type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "plain";
5
+ export type ButtonTone = "accent" | "neutral" | "success" | "warning" | "danger";
6
+ export type ButtonSize = "sm" | "md" | "lg";
7
+ export type ButtonShape = "rounded" | "pill";
8
+ export type ButtonProps = {
9
+ children: ReactNode;
10
+ variant?: ButtonVariant;
11
+ tone?: ButtonTone;
12
+ size?: ButtonSize;
13
+ shape?: ButtonShape;
14
+ iconStart?: LucideIcon;
15
+ iconEnd?: LucideIcon;
16
+ /**
17
+ * Work is in flight.
18
+ *
19
+ * Not the `disabled` attribute. A disabled button leaves the tab order, so a reader who was
20
+ * standing on it is dropped somewhere else the moment it starts working, and hears nothing
21
+ * about why. `aria-disabled` keeps it where it was and `aria-busy` says what changed; the
22
+ * click is refused in the handler instead.
23
+ */
24
+ loading?: boolean;
25
+ disabled?: boolean;
26
+ fullWidth?: boolean;
27
+ type?: "button" | "submit" | "reset";
28
+ /** Renders an anchor instead. A link that looks like a button is still a link. */
29
+ href?: string;
30
+ onClick?: (event: MouseEvent<HTMLElement>) => void;
31
+ className?: string;
32
+ /** Declared because Radix hands one to an `asChild` trigger, and the lens needs the same
33
+ * node. Both get it; see `useComposedRef`. */
34
+ ref?: Ref<HTMLElement>;
35
+ [key: `data-${string}`]: unknown;
36
+ [key: `aria-${string}`]: unknown;
37
+ };
38
+ export declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,2 @@
1
+ export { Button } from "./Button";
2
+ export type { ButtonProps, ButtonVariant, ButtonTone, ButtonSize, ButtonShape } from "./Button";