@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,3088 @@
1
+ import { a as e, n as t, o as n, r, s as i, t as a } from "./VisuallyHidden-DcE0EFpo.js";
2
+ import { i as o, n as s, r as c, t as l } from "./Tooltip-BJSUlXS2.js";
3
+ import { t as u } from "./Text-D7hoYpuZ.js";
4
+ import { t as d } from "./Tag-Z8PjnJFt.js";
5
+ import { f } from "./Menu-B3G64GV4.js";
6
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
7
+ import { Children as g, createContext as _, forwardRef as v, useCallback as y, useContext as b, useEffect as x, useId as S, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
8
+ import { AlertTriangle as D, ArrowDown as O, ArrowUp as k, CalendarDays as A, CalendarRange as j, Check as M, CheckCircle2 as N, ChevronDown as P, ChevronLeft as F, ChevronRight as I, ChevronsUpDown as L, Info as R, Menu as z, Plus as B, Search as V, X as H, XCircle as U } from "lucide-react";
9
+ import * as W from "@radix-ui/react-popover";
10
+ import * as G from "@radix-ui/react-dialog";
11
+ //#region src/components/composed/AppShell/AppShell.tsx
12
+ function K({ rail: e, railLabel: t = "둘러보기", railId: n, railOpen: r, onRailOpenChange: i, railSize: a = "md", header: o, children: s, dock: c, dockLabel: l = "사이드 패널", dockOpen: u = !0, fit: d = "viewport", className: f, ...p }) {
13
+ let g = S(), _ = !!c && u, [v, b] = E(!0), C = r !== void 0, w = C ? r : v, D = y((e) => {
14
+ C || b(e), i?.(e);
15
+ }, [C, i]), O = T(null);
16
+ return x(() => {
17
+ if (!e) return;
18
+ let t = getComputedStyle(document.documentElement).getPropertyValue("--bp-lg").trim();
19
+ if (!t) return;
20
+ let n = window.matchMedia(`(max-width: ${t})`), r = () => {
21
+ let e = n.matches, t = O.current === !1 && e;
22
+ O.current = e, t && w && D(!1);
23
+ };
24
+ return O.current === null && (O.current = n.matches), n.addEventListener("change", r), () => n.removeEventListener("change", r);
25
+ }, [
26
+ e,
27
+ w,
28
+ D
29
+ ]), /* @__PURE__ */ h("div", {
30
+ className: `app-shell ${f ?? ""}`.trim(),
31
+ "data-rail": e ? w ? "open" : "collapsed" : "none",
32
+ "data-rail-size": a,
33
+ "data-dock": _ ? "open" : "closed",
34
+ "data-fit": d,
35
+ ...p,
36
+ children: [
37
+ e ? /* @__PURE__ */ m("div", {
38
+ className: "app-shell__rail",
39
+ id: n ?? `${g}-rail`,
40
+ children: e
41
+ }) : null,
42
+ e && w ? /* @__PURE__ */ m("button", {
43
+ type: "button",
44
+ className: "app-shell__scrim",
45
+ "aria-label": `${t} 닫기`,
46
+ onClick: () => D(!1)
47
+ }) : null,
48
+ /* @__PURE__ */ h("main", {
49
+ className: "app-shell__work",
50
+ children: [o ? /* @__PURE__ */ m("div", {
51
+ className: "app-shell__header",
52
+ children: o
53
+ }) : null, /* @__PURE__ */ m("div", {
54
+ className: "app-shell__content",
55
+ children: s
56
+ })]
57
+ }),
58
+ _ ? /* @__PURE__ */ m("aside", {
59
+ className: "app-shell__dock",
60
+ "aria-label": l,
61
+ children: c
62
+ }) : null
63
+ ]
64
+ });
65
+ }
66
+ //#endregion
67
+ //#region src/components/composed/Breadcrumb/Breadcrumb.tsx
68
+ function q({ items: e, max: t = 4, label: n = "현재 위치", size: r = "md", className: a, ...o }) {
69
+ let s = Math.max(t, 2), c = e.length > s, l;
70
+ if (!c) l = e.map((e, t) => ({
71
+ kind: "item",
72
+ item: e,
73
+ at: t
74
+ }));
75
+ else if (s >= 3) {
76
+ let t = s - 2;
77
+ l = [
78
+ {
79
+ kind: "item",
80
+ item: e[0],
81
+ at: 0
82
+ },
83
+ { kind: "gap" },
84
+ ...e.slice(-t).map((n, r) => ({
85
+ kind: "item",
86
+ item: n,
87
+ at: e.length - t + r
88
+ }))
89
+ ];
90
+ } else l = [{ kind: "gap" }, {
91
+ kind: "item",
92
+ item: e[e.length - 1],
93
+ at: e.length - 1
94
+ }];
95
+ let u = e.length - l.filter((e) => e.kind === "item").length;
96
+ return /* @__PURE__ */ m("nav", {
97
+ ...o,
98
+ className: `breadcrumb ${a ?? ""}`.trim(),
99
+ "aria-label": n,
100
+ "data-size": r,
101
+ children: /* @__PURE__ */ m("ol", {
102
+ className: "breadcrumb__list",
103
+ children: l.map((e, t) => {
104
+ let n = t === l.length - 1, r = e.kind === "gap" ? "gap" : `item-${e.at}`;
105
+ return /* @__PURE__ */ h("li", {
106
+ className: "breadcrumb__item",
107
+ children: [e.kind === "gap" ? /* @__PURE__ */ h("span", {
108
+ className: "breadcrumb__gap",
109
+ "data-part": "gap",
110
+ children: ["…", /* @__PURE__ */ m("span", {
111
+ className: "visually-hidden",
112
+ children: `가운데 ${u}단계 생략`
113
+ })]
114
+ }) : n ? /* @__PURE__ */ m("span", {
115
+ className: "breadcrumb__current",
116
+ "aria-current": "page",
117
+ "data-part": "current",
118
+ children: e.item.label
119
+ }) : e.item.href === void 0 ? e.item.onClick ? /* @__PURE__ */ m("button", {
120
+ type: "button",
121
+ className: "breadcrumb__link",
122
+ onClick: e.item.onClick,
123
+ "data-part": "link",
124
+ children: e.item.label
125
+ }) : /* @__PURE__ */ m("span", {
126
+ className: "breadcrumb__label",
127
+ "data-part": "label",
128
+ children: e.item.label
129
+ }) : /* @__PURE__ */ m("a", {
130
+ className: "breadcrumb__link",
131
+ href: e.item.href,
132
+ onClick: e.item.onClick,
133
+ "data-part": "link",
134
+ children: e.item.label
135
+ }), n ? null : /* @__PURE__ */ m(i, {
136
+ icon: I,
137
+ size: "xs",
138
+ className: "breadcrumb__separator"
139
+ })]
140
+ }, r);
141
+ })
142
+ })
143
+ });
144
+ }
145
+ //#endregion
146
+ //#region src/components/composed/BulkActionBar/BulkActionBar.tsx
147
+ function J({ count: e, noun: n, children: i, onClear: a, outside: o = 0, total: s, onSelectAll: c, clearLabel: l, className: u, ...d }) {
148
+ let f = e === 0, p = T(null), g = T(null);
149
+ return x(() => {
150
+ if (!f) {
151
+ let e = document.activeElement;
152
+ e && e !== document.body && !p.current?.contains(e) && (g.current = e);
153
+ return;
154
+ }
155
+ let e = document.activeElement;
156
+ if (e && e !== document.body && !p.current?.contains(e)) return;
157
+ let t = g.current;
158
+ g.current = null, !(!t || !t.isConnected || t.closest("[inert]")) && t.focus();
159
+ }, [f, e]), /* @__PURE__ */ h("div", {
160
+ ...d,
161
+ ref: p,
162
+ className: `bulk-action-bar ${u ?? ""}`.trim(),
163
+ role: "region",
164
+ "aria-label": `선택한 ${n}에 적용할 작업`,
165
+ "data-empty": f ? "" : void 0,
166
+ "aria-hidden": f || void 0,
167
+ inert: f || void 0,
168
+ children: [
169
+ /* @__PURE__ */ h("p", {
170
+ className: "bulk-action-bar__count",
171
+ "aria-live": "polite",
172
+ children: [f ? "" : `${e.toLocaleString("ko-KR")}개 ${n} 선택됨`, !f && o > 0 ? /* @__PURE__ */ m("span", {
173
+ className: "bulk-action-bar__outside",
174
+ "data-part": "outside",
175
+ children: `그중 ${o.toLocaleString("ko-KR")}개는 목록 밖에 있습니다`
176
+ }) : null]
177
+ }),
178
+ c && s !== void 0 && e < s ? /* @__PURE__ */ m(r, {
179
+ variant: "plain",
180
+ size: "sm",
181
+ onClick: c,
182
+ "data-part": "select-all",
183
+ children: `전체 ${s.toLocaleString("ko-KR")}개 고르기`
184
+ }) : null,
185
+ /* @__PURE__ */ m("div", {
186
+ className: "bulk-action-bar__actions",
187
+ children: i
188
+ }),
189
+ /* @__PURE__ */ m(t, {
190
+ icon: H,
191
+ label: l ?? `${n} 선택 해제`,
192
+ variant: "ghost",
193
+ tone: "neutral",
194
+ size: "sm",
195
+ onClick: a,
196
+ "data-part": "clear"
197
+ })
198
+ ]
199
+ });
200
+ }
201
+ //#endregion
202
+ //#region src/components/composed/Callout/Callout.tsx
203
+ var ee = {
204
+ neutral: R,
205
+ accent: R,
206
+ success: N,
207
+ warning: D,
208
+ danger: U
209
+ };
210
+ function te({ children: e, title: n, tone: r = "neutral", variant: a = "subtle", icon: o, actions: s, onDismiss: c, dismissLabel: l, as: u = "div", live: d, className: p, ...g }) {
211
+ let _ = T(null), v = () => {
212
+ let e = f(_.current);
213
+ c?.(), e();
214
+ };
215
+ return /* @__PURE__ */ h(u, {
216
+ ...g,
217
+ ref: _,
218
+ className: `callout ${p ?? ""}`.trim(),
219
+ "data-tone": r,
220
+ "data-variant": a,
221
+ role: d === "assertive" ? "alert" : d === "polite" ? "status" : void 0,
222
+ "aria-live": d,
223
+ children: [
224
+ /* @__PURE__ */ m(i, {
225
+ icon: o ?? ee[r],
226
+ size: "sm",
227
+ className: "callout__glyph"
228
+ }),
229
+ /* @__PURE__ */ h("div", {
230
+ className: "callout__body",
231
+ children: [
232
+ n ? /* @__PURE__ */ m("p", {
233
+ className: "callout__title",
234
+ children: n
235
+ }) : null,
236
+ e ? /* @__PURE__ */ m("div", {
237
+ className: "callout__text",
238
+ children: e
239
+ }) : null,
240
+ s ? /* @__PURE__ */ m("div", {
241
+ className: "callout__actions",
242
+ children: s
243
+ }) : null
244
+ ]
245
+ }),
246
+ c ? /* @__PURE__ */ m(t, {
247
+ icon: H,
248
+ label: l ?? (typeof n == "string" ? `${n} 닫기` : "알림 닫기"),
249
+ size: "sm",
250
+ variant: "ghost",
251
+ tone: "neutral",
252
+ onClick: v,
253
+ "data-part": "dismiss"
254
+ }) : null
255
+ ]
256
+ });
257
+ }
258
+ //#endregion
259
+ //#region src/components/composed/Card/Card.tsx
260
+ var ne = v(function({ children: t, variant: r = "outlined", padding: i = "md", as: a = "div", interactive: o, selected: c, loading: l, className: u, ...d }, f) {
261
+ let p = T(null), g = n(p), _ = e(p, f);
262
+ return /* @__PURE__ */ m(a, {
263
+ ref: _,
264
+ ...d,
265
+ className: `card ${u ?? ""}`.trim(),
266
+ style: g ? { "--glass-refraction": g } : void 0,
267
+ "data-variant": r,
268
+ "data-padding": i,
269
+ "data-interactive": o && !l ? "" : void 0,
270
+ "data-selected": c ? "" : void 0,
271
+ "data-loading": l ? "" : void 0,
272
+ "aria-busy": l || void 0,
273
+ children: l ? /* @__PURE__ */ h("div", {
274
+ className: "card__waiting",
275
+ "data-part": "waiting",
276
+ children: [/* @__PURE__ */ m(s, {
277
+ shape: "text",
278
+ lines: 1
279
+ }), /* @__PURE__ */ m(s, {
280
+ shape: "text",
281
+ lines: 3
282
+ })]
283
+ }) : t
284
+ });
285
+ });
286
+ function re({ children: e, href: t, onClick: n, className: r, ...i }) {
287
+ let a = {
288
+ ...i,
289
+ className: `card__link ${r ?? ""}`.trim(),
290
+ onClick: n
291
+ };
292
+ return t === void 0 ? /* @__PURE__ */ m("button", {
293
+ ...a,
294
+ type: "button",
295
+ children: e
296
+ }) : /* @__PURE__ */ m("a", {
297
+ ...a,
298
+ href: t,
299
+ children: e
300
+ });
301
+ }
302
+ function ie({ title: e, description: t, media: n, aside: r, as: i = "h3", className: a, ...o }) {
303
+ return /* @__PURE__ */ h("div", {
304
+ ...o,
305
+ className: `card__header ${a ?? ""}`.trim(),
306
+ children: [
307
+ n ? /* @__PURE__ */ m("div", {
308
+ className: "card__media",
309
+ children: n
310
+ }) : null,
311
+ /* @__PURE__ */ h("div", {
312
+ className: "card__heading",
313
+ children: [/* @__PURE__ */ m(i, {
314
+ className: "card__title",
315
+ children: e
316
+ }), t ? /* @__PURE__ */ m("p", {
317
+ className: "card__description",
318
+ children: t
319
+ }) : null]
320
+ }),
321
+ r ? /* @__PURE__ */ m("div", {
322
+ className: "card__aside",
323
+ children: r
324
+ }) : null
325
+ ]
326
+ });
327
+ }
328
+ function ae({ children: e, className: t, ...n }) {
329
+ return /* @__PURE__ */ m("div", {
330
+ ...n,
331
+ className: `card__body ${t ?? ""}`.trim(),
332
+ children: e
333
+ });
334
+ }
335
+ function oe({ children: e, className: t, ...n }) {
336
+ return /* @__PURE__ */ m("div", {
337
+ ...n,
338
+ className: `card__footer ${t ?? ""}`.trim(),
339
+ children: e
340
+ });
341
+ }
342
+ //#endregion
343
+ //#region src/components/composed/Carousel/Carousel.tsx
344
+ function se({ label: e, children: n, peek: r = "sm", indicator: i = "dots", controls: o = "bar", className: s, ...c }) {
345
+ let l = T(null), u = g.toArray(n), [d, f] = E(0), [p, _] = E(""), v = T(0);
346
+ x(() => {
347
+ let e = l.current;
348
+ if (!e) return;
349
+ let t = /* @__PURE__ */ new Map(), n = new IntersectionObserver((e) => {
350
+ for (let n of e) t.set(Number(n.target.dataset.index), n.intersectionRatio);
351
+ let n = -1, r = 0;
352
+ for (let [e, i] of t) i > r && (r = i, n = e);
353
+ n >= 0 && f(n);
354
+ }, {
355
+ root: e,
356
+ threshold: [
357
+ 0,
358
+ .25,
359
+ .5,
360
+ .75,
361
+ 1
362
+ ]
363
+ });
364
+ for (let t of e.querySelectorAll(".carousel__item")) n.observe(t);
365
+ return () => n.disconnect();
366
+ }, [u.length]), x(() => {
367
+ v.current !== d && (v.current = d, _(`${u.length}개 중 ${d + 1}번째`));
368
+ }, [d, u.length]);
369
+ let y = (e) => {
370
+ let t = l.current;
371
+ t && t.querySelector(`[data-index="${e}"]`)?.scrollIntoView({
372
+ behavior: "auto",
373
+ block: "nearest",
374
+ inline: "start"
375
+ });
376
+ }, b = u.length - 1;
377
+ return /* @__PURE__ */ h("div", {
378
+ ...c,
379
+ className: `carousel ${s ?? ""}`.trim(),
380
+ "data-peek": r,
381
+ "data-controls": o,
382
+ children: [
383
+ /* @__PURE__ */ m(a, { children: /* @__PURE__ */ m("span", {
384
+ role: "status",
385
+ "aria-live": "polite",
386
+ "data-part": "live",
387
+ children: p
388
+ }) }),
389
+ /* @__PURE__ */ m("ul", {
390
+ className: "carousel__track",
391
+ role: "list",
392
+ ref: l,
393
+ tabIndex: 0,
394
+ "aria-label": e,
395
+ children: u.map((e, t) => /* @__PURE__ */ m("li", {
396
+ className: "carousel__item",
397
+ "data-index": t,
398
+ "data-part": "item",
399
+ "data-current": t === d ? "" : void 0,
400
+ children: e
401
+ }, t))
402
+ }),
403
+ u.length < 2 ? null : /* @__PURE__ */ h("div", {
404
+ className: "carousel__bar",
405
+ children: [
406
+ /* @__PURE__ */ m(t, {
407
+ icon: F,
408
+ label: `${e} 이전`,
409
+ variant: "outline",
410
+ size: "sm",
411
+ disabled: d === 0,
412
+ onClick: () => y(d - 1),
413
+ "data-part": "previous"
414
+ }),
415
+ i === "dots" ? /* @__PURE__ */ h("p", {
416
+ className: "carousel__dots",
417
+ "data-part": "dots",
418
+ children: [/* @__PURE__ */ m("span", {
419
+ className: "carousel__dots-marks",
420
+ "aria-hidden": "true",
421
+ children: u.map((e, t) => /* @__PURE__ */ m("span", {
422
+ className: "carousel__dot",
423
+ "data-on": t === d ? "" : void 0
424
+ }, t))
425
+ }), /* @__PURE__ */ m(a, { children: `${u.length}개 중 ${d + 1}번째` })]
426
+ }) : i === "count" ? /* @__PURE__ */ h("p", {
427
+ className: "carousel__count",
428
+ "data-part": "count",
429
+ children: [/* @__PURE__ */ m("span", {
430
+ "aria-hidden": "true",
431
+ children: `${d + 1} / ${u.length}`
432
+ }), /* @__PURE__ */ m(a, { children: `${u.length}개 중 ${d + 1}번째` })]
433
+ }) : null,
434
+ /* @__PURE__ */ m(t, {
435
+ icon: I,
436
+ label: `${e} 다음`,
437
+ variant: "outline",
438
+ size: "sm",
439
+ disabled: d === b,
440
+ onClick: () => y(d + 1),
441
+ "data-part": "next"
442
+ })
443
+ ]
444
+ })
445
+ ]
446
+ });
447
+ }
448
+ //#endregion
449
+ //#region src/components/composed/Combobox/Combobox.tsx
450
+ var ce = (e, t) => e.label.toLowerCase().includes(t.toLowerCase()) || (e.description ?? "").toLowerCase().includes(t.toLowerCase());
451
+ function le({ options: e, value: n, onValueChange: r, label: o, placeholder: s, emptyMessage: l = "맞는 것이 없습니다", onQueryChange: u, size: d = "md", disabled: f, invalid: p, id: g, "aria-describedby": _, "aria-labelledby": v, required: y, className: b, ...x }) {
452
+ let C = S(), w = g ?? `${C}-input`, D = `${C}-list`, O = T(null), [k, A] = E(!1), [j, N] = E(""), F = e.find((e) => e.value === n) ?? null, I = k ? j : F?.label ?? "", L = e.filter((e) => k && j ? ce(e, j) : !0), R = (e) => `${C}-option-${e.value}`, z = c({
453
+ rows: L,
454
+ locked: (e) => !!e.disabled,
455
+ id: R
456
+ }), { active: B, setActive: V } = z, U = (e) => {
457
+ N(e), u?.(e), V(0), A(!0);
458
+ }, G = (e) => {
459
+ e.disabled || (r(e.value), A(!1), N(""), u?.(""), O.current?.focus());
460
+ }, K = (e) => {
461
+ if (!f && !e.nativeEvent.isComposing) {
462
+ if (e.key === "ArrowDown" || e.key === "ArrowUp") {
463
+ if (e.preventDefault(), !k) return U("");
464
+ z.move(e.key === "ArrowDown" ? 1 : -1);
465
+ return;
466
+ }
467
+ if (k) {
468
+ if (e.key === "Enter") {
469
+ let t = z.activeRow;
470
+ t && (e.preventDefault(), G(t));
471
+ return;
472
+ }
473
+ (e.key === "Home" || e.key === "End") && (e.preventDefault(), e.key === "Home" ? z.first() : z.last());
474
+ }
475
+ }
476
+ };
477
+ return /* @__PURE__ */ m(W.Root, {
478
+ open: k && !f,
479
+ onOpenChange: A,
480
+ children: /* @__PURE__ */ h("div", {
481
+ ...x,
482
+ className: `combobox ${b ?? ""}`.trim(),
483
+ "data-size": d,
484
+ "data-invalid": p ? "" : void 0,
485
+ "data-disabled": f ? "" : void 0,
486
+ children: [
487
+ /* @__PURE__ */ m(W.Anchor, {
488
+ asChild: !0,
489
+ children: /* @__PURE__ */ h("div", {
490
+ className: "combobox__field",
491
+ children: [
492
+ /* @__PURE__ */ m("input", {
493
+ ref: O,
494
+ id: w,
495
+ className: "combobox__input",
496
+ type: "text",
497
+ role: "combobox",
498
+ "aria-expanded": k,
499
+ "aria-controls": D,
500
+ "aria-autocomplete": "list",
501
+ "aria-activedescendant": k ? z.activeId : void 0,
502
+ "aria-label": v ? void 0 : o,
503
+ "aria-labelledby": v,
504
+ "aria-describedby": _,
505
+ required: y,
506
+ "aria-invalid": p || void 0,
507
+ autoComplete: "off",
508
+ value: I,
509
+ placeholder: s,
510
+ disabled: f,
511
+ onChange: (e) => U(e.target.value),
512
+ onKeyDown: K,
513
+ onClick: () => A(!0),
514
+ onFocus: (e) => {
515
+ N(""), e.target.select();
516
+ },
517
+ onBlur: () => A(!1),
518
+ "data-part": "input"
519
+ }),
520
+ F && !f ? /* @__PURE__ */ m(t, {
521
+ icon: H,
522
+ label: `${o} 선택 해제`,
523
+ size: "sm",
524
+ variant: "ghost",
525
+ tone: "neutral",
526
+ shape: "circle",
527
+ onClick: () => {
528
+ r(null), N(""), O.current?.focus();
529
+ },
530
+ "data-part": "clear"
531
+ }) : null,
532
+ /* @__PURE__ */ m("button", {
533
+ type: "button",
534
+ className: "combobox__toggle",
535
+ tabIndex: -1,
536
+ "aria-label": k ? `${o} 목록 닫기` : `${o} 목록 열기`,
537
+ disabled: f,
538
+ onPointerDown: (e) => {
539
+ e.preventDefault(), A((e) => !e), O.current?.focus();
540
+ },
541
+ "data-part": "toggle",
542
+ children: /* @__PURE__ */ m(i, {
543
+ icon: P,
544
+ size: "sm"
545
+ })
546
+ })
547
+ ]
548
+ })
549
+ }),
550
+ /* @__PURE__ */ m(a, { children: /* @__PURE__ */ m("span", {
551
+ role: "status",
552
+ "aria-live": "polite",
553
+ "data-part": "count",
554
+ children: k ? L.length > 0 ? `${L.length}개 결과` : l : ""
555
+ }) }),
556
+ /* @__PURE__ */ m(W.Portal, { children: /* @__PURE__ */ m(W.Content, {
557
+ className: "combobox__panel",
558
+ side: "bottom",
559
+ align: "start",
560
+ sideOffset: 4,
561
+ collisionPadding: 12,
562
+ onOpenAutoFocus: (e) => e.preventDefault(),
563
+ onCloseAutoFocus: (e) => e.preventDefault(),
564
+ children: /* @__PURE__ */ h("ul", {
565
+ className: "combobox__list",
566
+ id: D,
567
+ role: "listbox",
568
+ "aria-label": o,
569
+ children: [L.map((e, t) => /* @__PURE__ */ h("li", {
570
+ id: R(e),
571
+ className: "combobox__option",
572
+ role: "option",
573
+ "aria-selected": e.value === n,
574
+ "aria-disabled": e.disabled || void 0,
575
+ "data-active": t === B ? "" : void 0,
576
+ "data-part": `option-${e.value}`,
577
+ onMouseDown: (t) => {
578
+ t.preventDefault(), G(e);
579
+ },
580
+ onMouseEnter: () => {
581
+ e.disabled || V(t);
582
+ },
583
+ children: [/* @__PURE__ */ m("span", {
584
+ className: "combobox__mark",
585
+ "aria-hidden": "true",
586
+ children: e.value === n ? /* @__PURE__ */ m(i, {
587
+ icon: M,
588
+ size: "xs"
589
+ }) : null
590
+ }), /* @__PURE__ */ h("span", {
591
+ className: "combobox__text",
592
+ children: [/* @__PURE__ */ m("span", {
593
+ className: "combobox__label",
594
+ children: e.label
595
+ }), e.description ? /* @__PURE__ */ m("span", {
596
+ className: "combobox__description",
597
+ children: e.description
598
+ }) : null]
599
+ })]
600
+ }, e.value)), L.length === 0 ? /* @__PURE__ */ m("li", {
601
+ className: "combobox__empty",
602
+ role: "presentation",
603
+ "data-part": "empty",
604
+ children: l
605
+ }) : null]
606
+ })
607
+ }) })
608
+ ]
609
+ })
610
+ });
611
+ }
612
+ //#endregion
613
+ //#region src/components/composed/CommandPalette/CommandPalette.tsx
614
+ var ue = (e, t) => {
615
+ let n = t.trim().toLowerCase();
616
+ return !n || `${e.label} ${e.hint ?? ""} ${e.group ?? ""}`.toLowerCase().includes(n);
617
+ };
618
+ function de({ open: e, onOpenChange: t, commands: n, label: r = "명령 팔레트", placeholder: o = "명령 검색", emptyMessage: s = "맞는 명령이 없습니다", hotkey: l = !0, className: u, ...d }) {
619
+ let f = S(), p = `${f}-list`, g = T(null), _ = T(null), v = T(null), [y, b] = E(""), C = w(() => n.filter((e) => ue(e, y)), [n, y]), D = w(() => {
620
+ let e = [], t = /* @__PURE__ */ new Map();
621
+ for (let n of C) {
622
+ let r = n.group ?? null, i = t.get(r);
623
+ if (i) i.push(n);
624
+ else {
625
+ let i = [n];
626
+ t.set(r, i), e.push({
627
+ name: r,
628
+ items: i
629
+ });
630
+ }
631
+ }
632
+ return e;
633
+ }, [C]), O = w(() => D.flatMap((e) => e.items), [D]), k = (e) => `${f}-${e.id}`, A = c({
634
+ rows: O,
635
+ locked: (e) => !!e.disabled,
636
+ id: k
637
+ }), { active: j, setActive: M } = A;
638
+ x(() => {
639
+ e && (b(""), M(0));
640
+ }, [e]), x(() => {
641
+ if (!l) return;
642
+ let n = (n) => {
643
+ (n.key === "k" || n.key === "K") && (!n.metaKey && !n.ctrlKey || n.defaultPrevented || n.isComposing || (n.preventDefault(), t(!e)));
644
+ };
645
+ return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
646
+ }, [
647
+ l,
648
+ e,
649
+ t
650
+ ]), x(() => {
651
+ if (!e) return;
652
+ let t = A.activeRow;
653
+ t && v.current?.querySelector(`#${CSS.escape(k(t))}`)?.scrollIntoView({ block: "nearest" });
654
+ }, [
655
+ j,
656
+ O,
657
+ e
658
+ ]);
659
+ let N = (e) => {
660
+ e.disabled || (t(!1), e.run());
661
+ }, P = (e) => {
662
+ if (!e.nativeEvent.isComposing && !A.took(e) && e.key === "Enter") {
663
+ let t = A.activeRow;
664
+ t && (e.preventDefault(), N(t));
665
+ }
666
+ };
667
+ return /* @__PURE__ */ m(G.Root, {
668
+ open: e,
669
+ onOpenChange: t,
670
+ children: /* @__PURE__ */ h(G.Portal, { children: [/* @__PURE__ */ m(G.Overlay, { className: "command-palette__scrim" }), /* @__PURE__ */ h(G.Content, {
671
+ className: `command-palette ${u ?? ""}`.trim(),
672
+ "aria-label": r,
673
+ onOpenAutoFocus: (e) => {
674
+ _.current = document.activeElement, e.preventDefault(), g.current?.focus();
675
+ },
676
+ onCloseAutoFocus: (e) => {
677
+ let t = _.current;
678
+ !t || t === document.body || !t.isConnected || (e.preventDefault(), t.focus());
679
+ },
680
+ ...d,
681
+ children: [
682
+ /* @__PURE__ */ m(G.Title, {
683
+ asChild: !0,
684
+ children: /* @__PURE__ */ m(a, { children: r })
685
+ }),
686
+ /* @__PURE__ */ h("div", {
687
+ className: "command-palette__search",
688
+ children: [/* @__PURE__ */ m(i, {
689
+ icon: V,
690
+ size: "sm",
691
+ tone: "muted"
692
+ }), /* @__PURE__ */ m("input", {
693
+ ref: g,
694
+ className: "command-palette__input",
695
+ type: "text",
696
+ role: "combobox",
697
+ "aria-expanded": !0,
698
+ "aria-controls": p,
699
+ "aria-activedescendant": A.activeId,
700
+ "aria-label": o,
701
+ autoComplete: "off",
702
+ placeholder: o,
703
+ value: y,
704
+ onChange: (e) => {
705
+ b(e.target.value), M(0);
706
+ },
707
+ onKeyDown: P,
708
+ "data-part": "input"
709
+ })]
710
+ }),
711
+ /* @__PURE__ */ m("p", {
712
+ className: "command-palette__empty",
713
+ role: "status",
714
+ "data-part": "empty",
715
+ children: O.length === 0 ? s : ""
716
+ }),
717
+ /* @__PURE__ */ m("div", {
718
+ className: "command-palette__list",
719
+ id: p,
720
+ role: "listbox",
721
+ "aria-label": r,
722
+ ref: v,
723
+ children: D.map((e) => /* @__PURE__ */ h("div", {
724
+ className: "command-palette__group",
725
+ role: "group",
726
+ "aria-label": e.name ?? void 0,
727
+ children: [e.name ? /* @__PURE__ */ m("p", {
728
+ className: "command-palette__group-name",
729
+ children: e.name
730
+ }) : null, e.items.map((e) => /* @__PURE__ */ h("div", {
731
+ id: k(e),
732
+ className: "command-palette__item",
733
+ role: "option",
734
+ "aria-selected": A.activeRow?.id === e.id,
735
+ "aria-disabled": e.disabled || void 0,
736
+ "data-active": A.activeRow?.id === e.id ? "" : void 0,
737
+ onMouseDown: (t) => {
738
+ t.preventDefault(), N(e);
739
+ },
740
+ onMouseMove: () => {
741
+ let t = O.findIndex((t) => t.id === e.id);
742
+ t >= 0 && M(t);
743
+ },
744
+ children: [
745
+ e.icon ? /* @__PURE__ */ m(i, {
746
+ icon: e.icon,
747
+ size: "sm",
748
+ tone: "muted"
749
+ }) : null,
750
+ /* @__PURE__ */ m("span", {
751
+ className: "command-palette__label",
752
+ children: e.label
753
+ }),
754
+ e.hint ? /* @__PURE__ */ m("span", {
755
+ className: "command-palette__hint",
756
+ children: e.hint
757
+ }) : null
758
+ ]
759
+ }, e.id))]
760
+ }, e.name ?? "_"))
761
+ })
762
+ ]
763
+ })] })
764
+ });
765
+ }
766
+ //#endregion
767
+ //#region src/components/composed/DatePicker/dates.ts
768
+ var Y = (e, t, n) => `${String(e).padStart(4, "0")}-${String(t + 1).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
769
+ function X(e) {
770
+ if (!e) return null;
771
+ let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());
772
+ if (!t) return null;
773
+ let n = Number(t[1]), r = Number(t[2]) - 1, i = Number(t[3]);
774
+ return r < 0 || r > 11 || i < 1 || i > fe(n, r) ? null : {
775
+ year: n,
776
+ month: r,
777
+ day: i
778
+ };
779
+ }
780
+ var fe = (e, t) => new Date(e, t + 1, 0).getDate(), pe = (e, t) => new Date(e, t, 1).getDay();
781
+ function Z(e, t) {
782
+ let n = X(e);
783
+ if (!n) return e;
784
+ let r = new Date(n.year, n.month, n.day + t);
785
+ return Y(r.getFullYear(), r.getMonth(), r.getDate());
786
+ }
787
+ function Q(e, t) {
788
+ let n = X(e);
789
+ if (!n) return e;
790
+ let r = n.month + t, i = n.year + Math.floor(r / 12), a = (r % 12 + 12) % 12;
791
+ return Y(i, a, Math.min(n.day, fe(i, a)));
792
+ }
793
+ function me() {
794
+ let e = /* @__PURE__ */ new Date();
795
+ return Y(e.getFullYear(), e.getMonth(), e.getDate());
796
+ }
797
+ var he = new Intl.DateTimeFormat("ko-KR", { dateStyle: "full" }), ge = new Intl.DateTimeFormat("ko-KR", {
798
+ year: "numeric",
799
+ month: "long",
800
+ day: "numeric"
801
+ }), _e = new Intl.DateTimeFormat("ko-KR", {
802
+ year: "numeric",
803
+ month: "long"
804
+ }), ve = (e) => {
805
+ let t = X(e);
806
+ return t ? new Date(t.year, t.month, t.day) : null;
807
+ }, ye = (e) => {
808
+ let t = ve(e);
809
+ return t ? he.format(t) : e;
810
+ }, $ = (e) => {
811
+ let t = ve(e);
812
+ return t ? ge.format(t) : e;
813
+ }, be = (e, t) => _e.format(new Date(e, t, 1));
814
+ function xe(e) {
815
+ let t = e.replace(/\D/g, "");
816
+ if (t.length === 8) {
817
+ let e = `${t.slice(0, 4)}-${t.slice(4, 6)}-${t.slice(6, 8)}`;
818
+ return X(e) ? e : null;
819
+ }
820
+ let n = e.split(/\D+/).filter(Boolean).map(Number);
821
+ if (n.length === 3 && n[0] > 999) {
822
+ let e = Y(n[0], n[1] - 1, n[2]);
823
+ return X(e) ? e : null;
824
+ }
825
+ return null;
826
+ }
827
+ var Se = (e) => {
828
+ let t = X(e);
829
+ return t ? new Date(t.year, t.month, t.day).getDay() : 0;
830
+ };
831
+ function Ce(e, t) {
832
+ let n = X(e), r = X(t);
833
+ if (!n || !r) return 0;
834
+ let i = new Date(n.year, n.month, n.day).getTime(), a = new Date(r.year, r.month, r.day).getTime();
835
+ return Math.round((a - i) / 864e5) + 1;
836
+ }
837
+ function we(e) {
838
+ let t = X(e);
839
+ return t ? Y(t.year, t.month, 1) : e;
840
+ }
841
+ function Te(e) {
842
+ let t = X(e);
843
+ return t ? Y(t.year, t.month, fe(t.year, t.month)) : e;
844
+ }
845
+ //#endregion
846
+ //#region src/components/composed/DatePicker/Calendar.tsx
847
+ var Ee = [
848
+ {
849
+ short: "일",
850
+ long: "일요일"
851
+ },
852
+ {
853
+ short: "월",
854
+ long: "월요일"
855
+ },
856
+ {
857
+ short: "화",
858
+ long: "화요일"
859
+ },
860
+ {
861
+ short: "수",
862
+ long: "수요일"
863
+ },
864
+ {
865
+ short: "목",
866
+ long: "목요일"
867
+ },
868
+ {
869
+ short: "금",
870
+ long: "금요일"
871
+ },
872
+ {
873
+ short: "토",
874
+ long: "토요일"
875
+ }
876
+ ];
877
+ function De({ cursor: e, onCursorChange: n, onChoose: r, today: i, captionId: o, gridRef: s, blocked: c, mark: l, describe: u, onDayEnter: d, onGridLeave: f }) {
878
+ let p = X(e) ?? X(i), g = (e) => !!c?.(e), _ = (t) => {
879
+ let r = {
880
+ ArrowRight: () => Z(e, 1),
881
+ ArrowLeft: () => Z(e, -1),
882
+ ArrowDown: () => Z(e, 7),
883
+ ArrowUp: () => Z(e, -7),
884
+ PageDown: () => Q(e, 1),
885
+ PageUp: () => Q(e, -1),
886
+ Home: () => Z(e, -Se(e)),
887
+ End: () => Z(e, 6 - Se(e))
888
+ }[t.key];
889
+ r && (t.preventDefault(), n(r(), "key"));
890
+ }, v = pe(p.year, p.month), y = Array.from({ length: 42 }, (e, t) => Z(Y(p.year, p.month, 1), t - v)), b = Array.from({ length: 6 }, (e, t) => y.slice(t * 7, t * 7 + 7));
891
+ return /* @__PURE__ */ h("div", {
892
+ className: "calendar",
893
+ onPointerLeave: f,
894
+ children: [/* @__PURE__ */ h("div", {
895
+ className: "calendar__head",
896
+ children: [
897
+ /* @__PURE__ */ m(t, {
898
+ icon: F,
899
+ label: "이전 달",
900
+ size: "sm",
901
+ variant: "ghost",
902
+ tone: "neutral",
903
+ onClick: () => n(Q(e, -1), "page"),
904
+ "data-part": "previous"
905
+ }),
906
+ /* @__PURE__ */ m("p", {
907
+ className: "calendar__caption",
908
+ id: o,
909
+ "aria-live": "polite",
910
+ "data-part": "caption",
911
+ children: be(p.year, p.month)
912
+ }),
913
+ /* @__PURE__ */ m(t, {
914
+ icon: I,
915
+ label: "다음 달",
916
+ size: "sm",
917
+ variant: "ghost",
918
+ tone: "neutral",
919
+ onClick: () => n(Q(e, 1), "page"),
920
+ "data-part": "next"
921
+ })
922
+ ]
923
+ }), /* @__PURE__ */ h("table", {
924
+ ref: s,
925
+ className: "calendar__grid",
926
+ role: "grid",
927
+ "aria-labelledby": o,
928
+ onKeyDown: _,
929
+ children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: Ee.map((e) => /* @__PURE__ */ h("th", {
930
+ scope: "col",
931
+ className: "calendar__weekday",
932
+ children: [/* @__PURE__ */ m("span", {
933
+ "aria-hidden": "true",
934
+ children: e.short
935
+ }), /* @__PURE__ */ m(a, { children: e.long })]
936
+ }, e.short)) }) }), /* @__PURE__ */ m("tbody", { children: b.map((t) => /* @__PURE__ */ m("tr", { children: t.map((t) => {
937
+ let a = X(t), o = a.month !== p.month, s = l?.(t) ?? {}, c = u?.(t);
938
+ return /* @__PURE__ */ m("td", {
939
+ role: "gridcell",
940
+ className: "calendar__cell",
941
+ "aria-selected": s.chosen || s.inRange || void 0,
942
+ "data-in-range": s.inRange ? "" : void 0,
943
+ "data-preview": s.preview ? "" : void 0,
944
+ "data-edge": s.edge,
945
+ children: /* @__PURE__ */ m("button", {
946
+ type: "button",
947
+ className: "calendar__day",
948
+ tabIndex: t === e ? 0 : -1,
949
+ "data-focusable": t === e ? "true" : void 0,
950
+ "data-outside": o ? "" : void 0,
951
+ "data-today": t === i ? "" : void 0,
952
+ "data-chosen": s.chosen ? "" : void 0,
953
+ "data-edge": s.edge,
954
+ "aria-current": t === i ? "date" : void 0,
955
+ "aria-label": c ? `${ye(t)}, ${c}` : ye(t),
956
+ disabled: g(t),
957
+ onClick: () => {
958
+ g(t) || r(t);
959
+ },
960
+ onFocus: () => n(t, "focus"),
961
+ onPointerEnter: () => d?.(t),
962
+ "data-part": `day-${t}`,
963
+ children: /* @__PURE__ */ m("span", {
964
+ "aria-hidden": "true",
965
+ children: a.day
966
+ })
967
+ })
968
+ }, t);
969
+ }) }, t[0])) })]
970
+ })]
971
+ });
972
+ }
973
+ //#endregion
974
+ //#region src/components/composed/DatePicker/DatePicker.tsx
975
+ function Oe({ value: e, onValueChange: n, label: r, min: i, max: o, size: s = "md", disabled: c, invalid: l, id: u, "aria-describedby": d, "aria-labelledby": f, required: p, className: g, ..._ }) {
976
+ let v = S(), y = u ?? `${v}-input`, b = `${v}-caption`, C = me(), [w, D] = E(!1), [O, k] = E(null), [j, M] = E(e ?? C), N = T(null), P = T(!1);
977
+ x(() => {
978
+ if (!w || !P.current) return;
979
+ let e = N.current?.querySelector("[data-focusable=\"true\"]");
980
+ e && (P.current = !1, e.focus());
981
+ });
982
+ let F = O ?? (e ? $(e) : ""), I = (e) => i !== void 0 && e < i || o !== void 0 && e > o, L = (e) => {
983
+ I(e) || (n(e), k(null), M(e), D(!1));
984
+ }, R = (e) => {
985
+ let t = xe(e);
986
+ if (e.trim() === "") {
987
+ n(null), k(null);
988
+ return;
989
+ }
990
+ if (t && !I(t)) {
991
+ n(t), M(t), k(null);
992
+ return;
993
+ }
994
+ k(e);
995
+ };
996
+ return /* @__PURE__ */ m(W.Root, {
997
+ open: w && !c,
998
+ onOpenChange: D,
999
+ children: /* @__PURE__ */ h("div", {
1000
+ ..._,
1001
+ className: `date-picker ${g ?? ""}`.trim(),
1002
+ "data-size": s,
1003
+ "data-invalid": l ? "" : void 0,
1004
+ "data-disabled": c ? "" : void 0,
1005
+ children: [/* @__PURE__ */ m(W.Anchor, {
1006
+ asChild: !0,
1007
+ children: /* @__PURE__ */ h("div", {
1008
+ className: "date-picker__field",
1009
+ children: [
1010
+ /* @__PURE__ */ m("input", {
1011
+ id: y,
1012
+ className: "date-picker__input",
1013
+ type: "text",
1014
+ inputMode: "numeric",
1015
+ autoComplete: "off",
1016
+ "aria-label": f ? void 0 : r,
1017
+ "aria-labelledby": f,
1018
+ "aria-describedby": [d, `${v}-format`].filter(Boolean).join(" "),
1019
+ required: p,
1020
+ "aria-invalid": l || void 0,
1021
+ placeholder: "2026년 8월 25일",
1022
+ value: F,
1023
+ disabled: c,
1024
+ onChange: (e) => k(e.target.value),
1025
+ onBlur: (e) => R(e.target.value),
1026
+ onKeyDown: (e) => {
1027
+ e.key === "Enter" && (e.preventDefault(), R(e.currentTarget.value));
1028
+ },
1029
+ "data-part": "input"
1030
+ }),
1031
+ /* @__PURE__ */ m(a, { children: /* @__PURE__ */ m("span", {
1032
+ id: `${v}-format`,
1033
+ children: "연월일 순으로 적습니다. 2026-08-25, 2026.8.25, 20260825 모두 됩니다."
1034
+ }) }),
1035
+ /* @__PURE__ */ m(W.Trigger, {
1036
+ asChild: !0,
1037
+ children: /* @__PURE__ */ m(t, {
1038
+ icon: A,
1039
+ label: `${r} 달력 열기`,
1040
+ size: "sm",
1041
+ variant: "ghost",
1042
+ tone: "neutral",
1043
+ disabled: c,
1044
+ onClick: () => {
1045
+ M(e ?? C), P.current = !0;
1046
+ },
1047
+ "data-part": "open"
1048
+ })
1049
+ })
1050
+ ]
1051
+ })
1052
+ }), /* @__PURE__ */ m(W.Portal, { children: /* @__PURE__ */ h(W.Content, {
1053
+ className: "date-picker__panel",
1054
+ side: "bottom",
1055
+ align: "start",
1056
+ sideOffset: 6,
1057
+ collisionPadding: 12,
1058
+ "aria-label": `${r} 달력`,
1059
+ onOpenAutoFocus: (e) => {
1060
+ e.preventDefault(), P.current = !1, N.current?.querySelector("[data-focusable=\"true\"]")?.focus();
1061
+ },
1062
+ children: [/* @__PURE__ */ m(De, {
1063
+ cursor: j,
1064
+ onCursorChange: (e, t) => {
1065
+ M(e), t === "key" && (P.current = !0);
1066
+ },
1067
+ onChoose: L,
1068
+ today: C,
1069
+ captionId: b,
1070
+ gridRef: N,
1071
+ blocked: I,
1072
+ mark: (t) => ({ chosen: t === e })
1073
+ }), /* @__PURE__ */ h("div", {
1074
+ className: "date-picker__foot",
1075
+ children: [/* @__PURE__ */ m("button", {
1076
+ type: "button",
1077
+ className: "date-picker__shortcut",
1078
+ onClick: () => L(C),
1079
+ disabled: I(C),
1080
+ "data-part": "today",
1081
+ children: "오늘"
1082
+ }), /* @__PURE__ */ m("button", {
1083
+ type: "button",
1084
+ className: "date-picker__shortcut",
1085
+ onClick: () => {
1086
+ n(null), k(null), D(!1);
1087
+ },
1088
+ "data-part": "clear",
1089
+ children: "지우기"
1090
+ })]
1091
+ })]
1092
+ }) })]
1093
+ })
1094
+ });
1095
+ }
1096
+ //#endregion
1097
+ //#region src/components/composed/DateRangePicker/DateRangePicker.tsx
1098
+ var ke = (e, t) => e <= t ? {
1099
+ start: e,
1100
+ end: t
1101
+ } : {
1102
+ start: t,
1103
+ end: e
1104
+ }, Ae = (e, t, n) => e >= t && e <= n;
1105
+ function je({ value: e, onValueChange: n, label: r, min: i, max: o, size: s = "md", disabled: c, invalid: l, id: u, "aria-describedby": d, "aria-labelledby": f, required: p, className: g, ..._ }) {
1106
+ let v = S(), y = u ?? `${v}-start`, b = `${v}-end`, C = `${v}-caption`, w = `${v}-label`, D = `${v}-start-word`, O = `${v}-end-word`, k = `${v}-format`, A = me(), [M, N] = E(!1), [P, F] = E({}), [I, L] = E(e.start ?? A), [R, z] = E(null), B = T(null), V = T(!1);
1107
+ x(() => {
1108
+ if (!M || !V.current) return;
1109
+ let e = B.current?.querySelector("[data-focusable=\"true\"]");
1110
+ e && (V.current = !1, e.focus());
1111
+ });
1112
+ let H = (e) => i !== void 0 && e < i || o !== void 0 && e > o, U = e.start !== null && e.end === null, G = U ? R ?? I : null, K = G && e.start ? ke(e.start, G) : null, q = (t) => {
1113
+ if (!H(t)) {
1114
+ if (F({}), L(t), !U || !e.start) {
1115
+ n({
1116
+ start: t,
1117
+ end: null
1118
+ });
1119
+ return;
1120
+ }
1121
+ n(ke(e.start, t)), z(null), N(!1);
1122
+ }
1123
+ }, J = (t, r) => {
1124
+ let i = t === "start" ? e.end : e.start;
1125
+ if (r.trim() === "") {
1126
+ n(t === "start" ? {
1127
+ start: null,
1128
+ end: e.end
1129
+ } : {
1130
+ start: e.start,
1131
+ end: null
1132
+ }), F((e) => ({
1133
+ ...e,
1134
+ [t]: void 0
1135
+ }));
1136
+ return;
1137
+ }
1138
+ let a = xe(r);
1139
+ if (a && !H(a)) {
1140
+ n(i ? ke(a, i) : t === "start" ? {
1141
+ start: a,
1142
+ end: null
1143
+ } : {
1144
+ start: null,
1145
+ end: a
1146
+ }), L(a), F((e) => ({
1147
+ ...e,
1148
+ [t]: void 0
1149
+ }));
1150
+ return;
1151
+ }
1152
+ F((e) => ({
1153
+ ...e,
1154
+ [t]: r
1155
+ }));
1156
+ }, ee = (e) => {
1157
+ e.start && H(e.start) || e.end && H(e.end) || (n(e), F({}), z(null), e.start && L(e.start), N(!1));
1158
+ }, te = [
1159
+ {
1160
+ id: "today",
1161
+ text: "오늘",
1162
+ range: {
1163
+ start: A,
1164
+ end: A
1165
+ }
1166
+ },
1167
+ {
1168
+ id: "last-7",
1169
+ text: "지난 7일",
1170
+ range: {
1171
+ start: Z(A, -6),
1172
+ end: A
1173
+ }
1174
+ },
1175
+ {
1176
+ id: "this-month",
1177
+ text: "이번 달",
1178
+ range: {
1179
+ start: we(A),
1180
+ end: Te(A)
1181
+ }
1182
+ }
1183
+ ], ne = (t) => {
1184
+ let n = t === e.start, r = t === e.end, i = e.start && e.end ? Ae(t, e.start, e.end) : !1, a = K ? Ae(t, K.start, K.end) : !1;
1185
+ return {
1186
+ chosen: n || r,
1187
+ edge: n ? "start" : r ? "end" : void 0,
1188
+ inRange: i && !n && !r,
1189
+ preview: a && !n && !r
1190
+ };
1191
+ }, re = (t) => {
1192
+ if (t === e.start && t === e.end) return "기간의 시작이자 끝";
1193
+ if (t === e.start) return "기간 시작";
1194
+ if (t === e.end) return "기간 끝";
1195
+ if (e.start && e.end && Ae(t, e.start, e.end)) return "기간 안";
1196
+ if (K && t === G) return "여기까지 고르면 기간 끝";
1197
+ if (K && Ae(t, K.start, K.end)) return "고르면 기간 안";
1198
+ }, ie = e.start && e.end ? `${$(e.start)}부터 ${$(e.end)}까지 ${Ce(e.start, e.end)}일` : e.start && K?.end ? e.start === K.end ? `${$(e.start)}부터 종료일을 고르세요` : `${$(K.start)}부터 ${$(K.end)}까지 고르면 ${Ce(K.start, K.end)}일입니다` : e.start ? `${$(e.start)}부터 종료일을 고르세요` : "시작일을 고르세요", ae = (t) => {
1199
+ let n = t === "start" ? e.start : e.end, r = P[t];
1200
+ return {
1201
+ id: t === "start" ? y : b,
1202
+ value: r ?? (n ? $(n) : ""),
1203
+ "aria-labelledby": `${f ?? w} ${t === "start" ? D : O}`,
1204
+ "aria-describedby": [d, k].filter(Boolean).join(" ")
1205
+ };
1206
+ };
1207
+ return /* @__PURE__ */ m(W.Root, {
1208
+ open: M && !c,
1209
+ onOpenChange: N,
1210
+ children: /* @__PURE__ */ h("div", {
1211
+ ..._,
1212
+ className: `date-range-picker ${g ?? ""}`.trim(),
1213
+ "data-size": s,
1214
+ "data-invalid": l ? "" : void 0,
1215
+ "data-disabled": c ? "" : void 0,
1216
+ children: [
1217
+ /* @__PURE__ */ h(a, { children: [
1218
+ /* @__PURE__ */ m("span", {
1219
+ id: w,
1220
+ children: r
1221
+ }),
1222
+ /* @__PURE__ */ m("span", {
1223
+ id: D,
1224
+ children: "시작일"
1225
+ }),
1226
+ /* @__PURE__ */ m("span", {
1227
+ id: O,
1228
+ children: "종료일"
1229
+ }),
1230
+ /* @__PURE__ */ m("span", {
1231
+ id: k,
1232
+ children: "연월일 순으로 적습니다. 2026-08-25, 2026.8.25, 20260825 모두 됩니다. 끝이 시작보다 앞서면 두 날짜를 서로 바꿉니다."
1233
+ })
1234
+ ] }),
1235
+ /* @__PURE__ */ m(W.Anchor, {
1236
+ asChild: !0,
1237
+ children: /* @__PURE__ */ h("div", {
1238
+ className: "date-range-picker__field",
1239
+ "data-part": "field",
1240
+ children: [
1241
+ /* @__PURE__ */ m("input", {
1242
+ ...ae("start"),
1243
+ className: "date-range-picker__input",
1244
+ type: "text",
1245
+ inputMode: "numeric",
1246
+ autoComplete: "off",
1247
+ required: p,
1248
+ "aria-invalid": l || void 0,
1249
+ placeholder: "시작일",
1250
+ disabled: c,
1251
+ onChange: (e) => F((t) => ({
1252
+ ...t,
1253
+ start: e.target.value
1254
+ })),
1255
+ onBlur: (e) => J("start", e.target.value),
1256
+ onKeyDown: (e) => {
1257
+ e.key === "Enter" && (e.preventDefault(), J("start", e.currentTarget.value));
1258
+ },
1259
+ "data-part": "start"
1260
+ }),
1261
+ /* @__PURE__ */ m("span", {
1262
+ className: "date-range-picker__tilde",
1263
+ "aria-hidden": "true",
1264
+ children: "~"
1265
+ }),
1266
+ /* @__PURE__ */ m("input", {
1267
+ ...ae("end"),
1268
+ className: "date-range-picker__input",
1269
+ type: "text",
1270
+ inputMode: "numeric",
1271
+ autoComplete: "off",
1272
+ required: p,
1273
+ "aria-invalid": l || void 0,
1274
+ placeholder: "종료일",
1275
+ disabled: c,
1276
+ onChange: (e) => F((t) => ({
1277
+ ...t,
1278
+ end: e.target.value
1279
+ })),
1280
+ onBlur: (e) => J("end", e.target.value),
1281
+ onKeyDown: (e) => {
1282
+ e.key === "Enter" && (e.preventDefault(), J("end", e.currentTarget.value));
1283
+ },
1284
+ "data-part": "end"
1285
+ }),
1286
+ /* @__PURE__ */ m(W.Trigger, {
1287
+ asChild: !0,
1288
+ children: /* @__PURE__ */ m(t, {
1289
+ icon: j,
1290
+ label: `${r} 달력 열기`,
1291
+ size: "sm",
1292
+ variant: "ghost",
1293
+ tone: "neutral",
1294
+ disabled: c,
1295
+ onClick: () => {
1296
+ L(e.start ?? A), z(null), V.current = !0;
1297
+ },
1298
+ "data-part": "open"
1299
+ })
1300
+ })
1301
+ ]
1302
+ })
1303
+ }),
1304
+ /* @__PURE__ */ m(W.Portal, { children: /* @__PURE__ */ h(W.Content, {
1305
+ className: "date-range-picker__panel",
1306
+ side: "bottom",
1307
+ align: "start",
1308
+ sideOffset: 6,
1309
+ collisionPadding: 12,
1310
+ "aria-label": `${r} 달력`,
1311
+ onOpenAutoFocus: (e) => {
1312
+ e.preventDefault(), V.current = !1, B.current?.querySelector("[data-focusable=\"true\"]")?.focus();
1313
+ },
1314
+ children: [
1315
+ /* @__PURE__ */ m(De, {
1316
+ cursor: I,
1317
+ onCursorChange: (e, t) => {
1318
+ L(e), t !== "page" && z(null), t === "key" && (V.current = !0);
1319
+ },
1320
+ onChoose: q,
1321
+ today: A,
1322
+ captionId: C,
1323
+ gridRef: B,
1324
+ blocked: H,
1325
+ mark: ne,
1326
+ describe: re,
1327
+ onDayEnter: (e) => z(e),
1328
+ onGridLeave: () => z(null)
1329
+ }),
1330
+ /* @__PURE__ */ m("p", {
1331
+ className: "date-range-picker__summary",
1332
+ "aria-live": "polite",
1333
+ "data-part": "summary",
1334
+ children: ie
1335
+ }),
1336
+ /* @__PURE__ */ h("div", {
1337
+ className: "date-range-picker__foot",
1338
+ children: [te.map((e) => {
1339
+ let t = H(e.range.start) || H(e.range.end);
1340
+ return /* @__PURE__ */ m("button", {
1341
+ type: "button",
1342
+ className: "date-range-picker__shortcut",
1343
+ "aria-disabled": t || void 0,
1344
+ onClick: () => {
1345
+ t || ee(e.range);
1346
+ },
1347
+ "data-part": e.id,
1348
+ children: e.text
1349
+ }, e.id);
1350
+ }), /* @__PURE__ */ m("button", {
1351
+ type: "button",
1352
+ className: "date-range-picker__shortcut",
1353
+ onClick: () => ee({
1354
+ start: null,
1355
+ end: null
1356
+ }),
1357
+ "data-part": "clear",
1358
+ children: "지우기"
1359
+ })]
1360
+ })
1361
+ ]
1362
+ }) })
1363
+ ]
1364
+ })
1365
+ });
1366
+ }
1367
+ //#endregion
1368
+ //#region src/components/composed/Drawer/Drawer.tsx
1369
+ function Me({ open: e, onOpenChange: n, trigger: r, title: i, description: a, children: o, footer: s, side: c = "end", size: l = "md", dismissOnOutside: u = !0, className: d, ...f }) {
1370
+ let p = S(), g = T(null), _ = T(null);
1371
+ return /* @__PURE__ */ h(G.Root, {
1372
+ open: e,
1373
+ onOpenChange: n,
1374
+ children: [r ? /* @__PURE__ */ m(G.Trigger, {
1375
+ asChild: !0,
1376
+ children: r
1377
+ }) : null, /* @__PURE__ */ h(G.Portal, { children: [/* @__PURE__ */ m(G.Overlay, { className: "drawer__scrim" }), /* @__PURE__ */ h(G.Content, {
1378
+ ...f,
1379
+ ref: g,
1380
+ className: `drawer ${d ?? ""}`.trim(),
1381
+ onOpenAutoFocus: (e) => {
1382
+ _.current = document.activeElement, e.preventDefault(), g.current?.focus();
1383
+ },
1384
+ onCloseAutoFocus: (e) => {
1385
+ let t = _.current;
1386
+ !t || t === document.body || !t.isConnected || (e.preventDefault(), t.focus());
1387
+ },
1388
+ "data-side": c,
1389
+ "data-size": l,
1390
+ "aria-labelledby": `${p}-title`,
1391
+ "aria-describedby": a ? `${p}-description` : void 0,
1392
+ onInteractOutside: (e) => {
1393
+ u || e.preventDefault();
1394
+ },
1395
+ children: [
1396
+ /* @__PURE__ */ h("header", {
1397
+ className: "drawer__head",
1398
+ children: [/* @__PURE__ */ h("div", {
1399
+ className: "drawer__heading",
1400
+ children: [/* @__PURE__ */ m(G.Title, {
1401
+ className: "drawer__title",
1402
+ id: `${p}-title`,
1403
+ children: i
1404
+ }), a ? /* @__PURE__ */ m(G.Description, {
1405
+ className: "drawer__description",
1406
+ id: `${p}-description`,
1407
+ children: a
1408
+ }) : null]
1409
+ }), /* @__PURE__ */ m(G.Close, {
1410
+ asChild: !0,
1411
+ children: /* @__PURE__ */ m(t, {
1412
+ icon: H,
1413
+ label: `${i} 닫기`,
1414
+ variant: "ghost",
1415
+ tone: "neutral",
1416
+ "data-part": "close"
1417
+ })
1418
+ })]
1419
+ }),
1420
+ /* @__PURE__ */ m("div", {
1421
+ className: "drawer__body",
1422
+ children: o
1423
+ }),
1424
+ s ? /* @__PURE__ */ m("footer", {
1425
+ className: "drawer__foot",
1426
+ children: s
1427
+ }) : null
1428
+ ]
1429
+ })] })]
1430
+ });
1431
+ }
1432
+ //#endregion
1433
+ //#region src/components/composed/EmptyState/EmptyState.tsx
1434
+ function Ne({ title: e, description: t, icon: n, media: r, actions: a, as: o = "h3", size: s = "md", tone: c = "neutral", announce: l, className: u, ...d }) {
1435
+ return /* @__PURE__ */ h("div", {
1436
+ ...d,
1437
+ className: `empty-state ${u ?? ""}`.trim(),
1438
+ "data-size": s,
1439
+ "data-tone": c,
1440
+ role: l ? c === "danger" ? "alert" : "status" : void 0,
1441
+ "aria-live": l ? c === "danger" ? "assertive" : "polite" : void 0,
1442
+ children: [
1443
+ r ? /* @__PURE__ */ m("div", {
1444
+ className: "empty-state__media",
1445
+ "aria-hidden": "true",
1446
+ inert: !0,
1447
+ children: r
1448
+ }) : n ? /* @__PURE__ */ m("div", {
1449
+ className: "empty-state__glyph",
1450
+ "aria-hidden": "true",
1451
+ children: /* @__PURE__ */ m(i, {
1452
+ icon: n,
1453
+ size: s === "sm" ? "md" : "lg"
1454
+ })
1455
+ }) : null,
1456
+ /* @__PURE__ */ m(o, {
1457
+ className: "empty-state__title",
1458
+ children: e
1459
+ }),
1460
+ t ? /* @__PURE__ */ m("p", {
1461
+ className: "empty-state__description",
1462
+ children: t
1463
+ }) : null,
1464
+ a ? /* @__PURE__ */ m("div", {
1465
+ className: "empty-state__actions",
1466
+ children: a
1467
+ }) : null
1468
+ ]
1469
+ });
1470
+ }
1471
+ //#endregion
1472
+ //#region src/components/composed/FilterBar/FilterBar.tsx
1473
+ function Pe({ filters: e, onRemove: t, onClear: n, label: i, add: o, count: s, className: c, ...l }) {
1474
+ let u = T(null), f = T(!1);
1475
+ return x(() => {
1476
+ f.current && (f.current = !1, document.activeElement === document.body && (u.current?.querySelector("[data-part=\"clear\"], .filter-bar__add button, .filter-bar__add [tabindex], button") ?? u.current)?.focus());
1477
+ }, [e]), /* @__PURE__ */ h("div", {
1478
+ ...l,
1479
+ ref: u,
1480
+ tabIndex: -1,
1481
+ className: `filter-bar ${c ?? ""}`.trim(),
1482
+ role: "group",
1483
+ "aria-label": i,
1484
+ children: [
1485
+ /* @__PURE__ */ m("ul", {
1486
+ className: "filter-bar__list",
1487
+ children: e.map((e) => /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h(d, {
1488
+ shape: "pill",
1489
+ size: "md",
1490
+ onRemove: () => {
1491
+ f.current = !0, t(e.id);
1492
+ },
1493
+ removeLabel: `${e.field} 조건 ${e.value} 지우기`,
1494
+ "data-part": `chip-${e.id}`,
1495
+ children: [/* @__PURE__ */ m("span", {
1496
+ className: "filter-bar__field",
1497
+ children: e.field
1498
+ }), e.value]
1499
+ }) }, e.id))
1500
+ }),
1501
+ o ? /* @__PURE__ */ m("div", {
1502
+ className: "filter-bar__add",
1503
+ children: o
1504
+ }) : null,
1505
+ e.length > 0 ? /* @__PURE__ */ m(r, {
1506
+ variant: "plain",
1507
+ tone: "neutral",
1508
+ size: "sm",
1509
+ shape: "pill",
1510
+ onClick: () => {
1511
+ f.current = !0, n();
1512
+ },
1513
+ "data-part": "clear",
1514
+ children: "모두 지우기"
1515
+ }) : null,
1516
+ s ? /* @__PURE__ */ h("p", {
1517
+ className: "filter-bar__count",
1518
+ "aria-live": "polite",
1519
+ "data-part": "count",
1520
+ children: [`${s.value.toLocaleString("ko-KR")}개 ${s.noun}`, /* @__PURE__ */ m(a, { children: e.length > 0 ? ` · 조건 ${e.length}개 적용됨` : " · 조건 없음" })]
1521
+ }) : null
1522
+ ]
1523
+ });
1524
+ }
1525
+ function Fe({ children: e = "조건 추가", onClick: t, className: n, ...i }) {
1526
+ return /* @__PURE__ */ m(r, {
1527
+ ...i,
1528
+ variant: "plain",
1529
+ tone: "neutral",
1530
+ size: "sm",
1531
+ shape: "pill",
1532
+ iconStart: B,
1533
+ onClick: t,
1534
+ className: n,
1535
+ children: e
1536
+ });
1537
+ }
1538
+ //#endregion
1539
+ //#region src/components/composed/FormSection/FormSection.tsx
1540
+ function Ie({ title: e, children: t, description: n, as: r = "h3", aside: i, divided: a, columns: o = 1, className: s, ...c }) {
1541
+ let l = S(), u = `${l}-title`, d = `${l}-description`;
1542
+ return /* @__PURE__ */ h("div", {
1543
+ ...c,
1544
+ className: `form-section ${s ?? ""}`.trim(),
1545
+ role: "group",
1546
+ "aria-labelledby": u,
1547
+ "aria-describedby": n ? d : void 0,
1548
+ "data-divided": a ? "" : void 0,
1549
+ "data-columns": o,
1550
+ children: [
1551
+ /* @__PURE__ */ h("div", {
1552
+ className: "form-section__head",
1553
+ children: [/* @__PURE__ */ m(r, {
1554
+ className: "form-section__title",
1555
+ id: u,
1556
+ children: e
1557
+ }), i ? /* @__PURE__ */ m("div", {
1558
+ className: "form-section__aside",
1559
+ children: i
1560
+ }) : null]
1561
+ }),
1562
+ n ? /* @__PURE__ */ m("p", {
1563
+ className: "form-section__description",
1564
+ id: d,
1565
+ children: n
1566
+ }) : null,
1567
+ /* @__PURE__ */ m("div", {
1568
+ className: "form-section__body",
1569
+ children: t
1570
+ })
1571
+ ]
1572
+ });
1573
+ }
1574
+ //#endregion
1575
+ //#region src/components/composed/ListRow/ListRow.tsx
1576
+ var Le = 8;
1577
+ function Re({ title: e, description: t, media: n, meta: r, actions: a, as: o = "div", interactive: c, selected: l, disabled: u, density: d = "comfortable", loading: f, clamp: g, swipeActions: _, className: v, ...y }) {
1578
+ let b = !!_?.length && !f && !u, x = T(null), S = T(null), [C, w] = E(0), [D, O] = E(!1), k = () => x.current?.offsetWidth ?? 0, A = (e) => {
1579
+ if (!b || e.pointerType === "mouse" && e.button !== 0) return;
1580
+ let t = Number.parseFloat(getComputedStyle(e.currentTarget).getPropertyValue("--drag-resist"));
1581
+ S.current = {
1582
+ x: e.clientX,
1583
+ y: e.clientY,
1584
+ axis: "",
1585
+ from: C,
1586
+ resist: t || .5
1587
+ };
1588
+ }, j = (e) => {
1589
+ let t = S.current;
1590
+ if (!t) return;
1591
+ let n = e.clientX - t.x, r = e.clientY - t.y;
1592
+ if (!t.axis) {
1593
+ if (Math.abs(n) < Le && Math.abs(r) < Le) return;
1594
+ if (Math.abs(r) >= Math.abs(n)) {
1595
+ S.current = null;
1596
+ return;
1597
+ }
1598
+ t.axis = "x", e.currentTarget.setPointerCapture(e.pointerId), O(!0);
1599
+ }
1600
+ let i = k(), a = t.from + n;
1601
+ a > 0 ? a *= t.resist : a < -i && (a = -i + (a + i) * t.resist), w(a);
1602
+ }, M = () => {
1603
+ let e = S.current;
1604
+ if (S.current = null, O(!1), !e || e.axis !== "x") return;
1605
+ let t = k();
1606
+ w((e) => e <= -t / 2 ? -t : 0);
1607
+ }, N = () => w(0);
1608
+ return /* @__PURE__ */ m(o, {
1609
+ ...y,
1610
+ className: `list-row ${v ?? ""}`.trim(),
1611
+ "data-swipeable": b ? "" : void 0,
1612
+ "data-swiping": D ? "" : void 0,
1613
+ "data-pulled": b && C !== 0 ? "" : void 0,
1614
+ style: b ? { "--row-pull": `${C}px` } : void 0,
1615
+ onPointerDown: b ? A : void 0,
1616
+ onPointerMove: b ? j : void 0,
1617
+ onPointerUp: b ? M : void 0,
1618
+ onPointerCancel: b ? M : void 0,
1619
+ "data-row-density": d,
1620
+ "data-interactive": c ? "" : void 0,
1621
+ "data-selected": l ? "" : void 0,
1622
+ "data-disabled": u ? "" : void 0,
1623
+ "data-clamp": g ? "" : void 0,
1624
+ "data-loading": f ? "" : void 0,
1625
+ "aria-busy": f || void 0,
1626
+ children: (() => {
1627
+ let o = /* @__PURE__ */ h(p, { children: [
1628
+ n ? /* @__PURE__ */ m("div", {
1629
+ className: "list-row__media",
1630
+ children: f ? /* @__PURE__ */ m(s, {
1631
+ shape: "circle",
1632
+ size: "md"
1633
+ }) : n
1634
+ }) : null,
1635
+ /* @__PURE__ */ h("div", {
1636
+ className: "list-row__text",
1637
+ children: [/* @__PURE__ */ m("span", {
1638
+ className: "list-row__title",
1639
+ children: f ? /* @__PURE__ */ m(s, {
1640
+ shape: "text",
1641
+ lines: 1
1642
+ }) : e
1643
+ }), t ? /* @__PURE__ */ m("span", {
1644
+ className: "list-row__description",
1645
+ children: f ? /* @__PURE__ */ m(s, {
1646
+ shape: "text",
1647
+ lines: 1
1648
+ }) : t
1649
+ }) : null]
1650
+ }),
1651
+ r ? /* @__PURE__ */ m("div", {
1652
+ className: "list-row__meta",
1653
+ children: f ? /* @__PURE__ */ m(s, {
1654
+ shape: "text",
1655
+ lines: 1
1656
+ }) : r
1657
+ }) : null,
1658
+ a && !f ? /* @__PURE__ */ m("div", {
1659
+ className: "list-row__actions",
1660
+ children: a
1661
+ }) : null
1662
+ ] });
1663
+ return b ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
1664
+ className: "list-row__pane",
1665
+ onClickCapture: C === 0 ? void 0 : (e) => {
1666
+ e.preventDefault(), e.stopPropagation(), N();
1667
+ },
1668
+ children: o
1669
+ }), /* @__PURE__ */ m("div", {
1670
+ className: "list-row__shelf",
1671
+ ref: x,
1672
+ "data-part": "shelf",
1673
+ onFocus: () => w(-k()),
1674
+ onBlur: (e) => {
1675
+ e.currentTarget.contains(e.relatedTarget) || N();
1676
+ },
1677
+ children: _.slice(0, 3).map((e) => /* @__PURE__ */ h("button", {
1678
+ type: "button",
1679
+ className: "list-row__shelf-action",
1680
+ "data-tone": e.tone ?? "neutral",
1681
+ "data-part": e.id,
1682
+ onClick: () => {
1683
+ N(), e.onAction();
1684
+ },
1685
+ children: [e.icon ? /* @__PURE__ */ m(i, {
1686
+ icon: e.icon,
1687
+ size: "sm",
1688
+ "aria-hidden": "true"
1689
+ }) : null, e.label]
1690
+ }, e.id))
1691
+ })] }) : o;
1692
+ })()
1693
+ });
1694
+ }
1695
+ function ze({ children: e, href: t, onClick: n, className: r, ...i }) {
1696
+ let a = {
1697
+ ...i,
1698
+ className: `list-row__link ${r ?? ""}`.trim(),
1699
+ onClick: n
1700
+ };
1701
+ return t === void 0 ? /* @__PURE__ */ m("button", {
1702
+ ...a,
1703
+ type: "button",
1704
+ children: e
1705
+ }) : /* @__PURE__ */ m("a", {
1706
+ ...a,
1707
+ href: t,
1708
+ children: e
1709
+ });
1710
+ }
1711
+ //#endregion
1712
+ //#region src/components/composed/Modal/Modal.tsx
1713
+ function Be({ open: e, onOpenChange: n, trigger: r, title: i, description: a, children: o, footer: s, size: c = "md", narrow: l = "centred", urgent: u, dismissOnOutside: d = !0, className: f, ...p }) {
1714
+ let g = S(), _ = T(null), v = T(null);
1715
+ return /* @__PURE__ */ h(G.Root, {
1716
+ open: e,
1717
+ onOpenChange: n,
1718
+ children: [r ? /* @__PURE__ */ m(G.Trigger, {
1719
+ asChild: !0,
1720
+ children: r
1721
+ }) : null, /* @__PURE__ */ h(G.Portal, { children: [/* @__PURE__ */ m(G.Overlay, { className: "modal__scrim" }), /* @__PURE__ */ h(G.Content, {
1722
+ ...p,
1723
+ ref: _,
1724
+ className: `modal ${f ?? ""}`.trim(),
1725
+ "data-narrow": l,
1726
+ onOpenAutoFocus: (e) => {
1727
+ v.current = document.activeElement, e.preventDefault(), _.current?.focus();
1728
+ },
1729
+ onCloseAutoFocus: (e) => {
1730
+ let t = v.current;
1731
+ !t || t === document.body || !t.isConnected || (e.preventDefault(), t.focus());
1732
+ },
1733
+ "data-size": c,
1734
+ ...u ? { role: "alertdialog" } : {},
1735
+ "aria-labelledby": `${g}-title`,
1736
+ "aria-describedby": a ? `${g}-description` : void 0,
1737
+ onInteractOutside: (e) => {
1738
+ (u || !d) && e.preventDefault();
1739
+ },
1740
+ children: [
1741
+ /* @__PURE__ */ h("header", {
1742
+ className: "modal__head",
1743
+ children: [/* @__PURE__ */ h("div", {
1744
+ className: "modal__heading",
1745
+ children: [/* @__PURE__ */ m(G.Title, {
1746
+ className: "modal__title",
1747
+ id: `${g}-title`,
1748
+ children: i
1749
+ }), a ? /* @__PURE__ */ m(G.Description, {
1750
+ className: "modal__description",
1751
+ id: `${g}-description`,
1752
+ children: a
1753
+ }) : null]
1754
+ }), /* @__PURE__ */ m(G.Close, {
1755
+ asChild: !0,
1756
+ children: /* @__PURE__ */ m(t, {
1757
+ icon: H,
1758
+ label: `${i} 닫기`,
1759
+ variant: "ghost",
1760
+ tone: "neutral",
1761
+ "data-part": "close"
1762
+ })
1763
+ })]
1764
+ }),
1765
+ /* @__PURE__ */ m("div", {
1766
+ className: "modal__body",
1767
+ children: o
1768
+ }),
1769
+ s ? /* @__PURE__ */ m("footer", {
1770
+ className: "modal__foot",
1771
+ children: s
1772
+ }) : null
1773
+ ]
1774
+ })] })]
1775
+ });
1776
+ }
1777
+ //#endregion
1778
+ //#region src/components/composed/PageHeader/PageHeader.tsx
1779
+ function Ve({ title: e, breadcrumb: n, description: r, status: i, actions: a, onRailToggle: o, railOpen: s, railId: c, railLabel: l = "둘러보기", className: d, ...f }) {
1780
+ return /* @__PURE__ */ h("header", {
1781
+ className: `page-header ${d ?? ""}`.trim(),
1782
+ ...f,
1783
+ children: [n ? /* @__PURE__ */ m("div", {
1784
+ className: "page-header__crumbs",
1785
+ children: n
1786
+ }) : null, /* @__PURE__ */ h("div", {
1787
+ className: "page-header__bar",
1788
+ children: [
1789
+ o ? /* @__PURE__ */ m(t, {
1790
+ icon: z,
1791
+ label: `${l} ${s ? "닫기" : "열기"}`,
1792
+ variant: "ghost",
1793
+ tone: "neutral",
1794
+ onClick: o,
1795
+ "aria-expanded": s,
1796
+ "aria-controls": c,
1797
+ "data-part": "rail-toggle"
1798
+ }) : null,
1799
+ /* @__PURE__ */ h("div", {
1800
+ className: "page-header__heading",
1801
+ children: [/* @__PURE__ */ h("div", {
1802
+ className: "page-header__titles",
1803
+ children: [/* @__PURE__ */ m(u, {
1804
+ as: "h1",
1805
+ size: "xl",
1806
+ weight: "bold",
1807
+ className: "page-header__title",
1808
+ children: e
1809
+ }), i ? /* @__PURE__ */ m("div", {
1810
+ className: "page-header__status",
1811
+ children: i
1812
+ }) : null]
1813
+ }), r ? /* @__PURE__ */ m(u, {
1814
+ size: "sm",
1815
+ tone: "muted",
1816
+ className: "page-header__description",
1817
+ children: r
1818
+ }) : null]
1819
+ }),
1820
+ a ? /* @__PURE__ */ m("div", {
1821
+ className: "page-header__actions",
1822
+ children: a
1823
+ }) : null
1824
+ ]
1825
+ })]
1826
+ });
1827
+ }
1828
+ //#endregion
1829
+ //#region src/components/composed/Pagination/Pagination.tsx
1830
+ var He = (e, t) => Array.from({ length: Math.max(0, t - e + 1) }, (t, n) => e + n);
1831
+ function Ue(e, t, n = 1) {
1832
+ let r = n * 2 + 5;
1833
+ if (t <= r) return He(1, t);
1834
+ let i = t, a = e - n > 2, o = e + n < i - 1, s = r - 2 - !!a - !!o;
1835
+ return a ? o ? [
1836
+ 1,
1837
+ "gap",
1838
+ ...He(e - n, e + n),
1839
+ "gap",
1840
+ i
1841
+ ] : [
1842
+ 1,
1843
+ "gap",
1844
+ ...He(i - s, i)
1845
+ ] : [
1846
+ ...He(1, 1 + s),
1847
+ "gap",
1848
+ i
1849
+ ];
1850
+ }
1851
+ function We({ page: e, pageCount: t, onPageChange: n, label: r, siblings: o = 1, summary: s, size: c = "md", className: l, ...u }) {
1852
+ let d = Ue(e, t, o), f = e <= 1 || t <= 0, p = e >= t || t <= 0;
1853
+ return /* @__PURE__ */ h("nav", {
1854
+ ...u,
1855
+ className: `pagination ${l ?? ""}`.trim(),
1856
+ "aria-label": r,
1857
+ "data-size": c,
1858
+ children: [s ? /* @__PURE__ */ h("p", {
1859
+ className: "pagination__summary",
1860
+ children: [
1861
+ /* @__PURE__ */ h("span", {
1862
+ className: "pagination__figures",
1863
+ children: [
1864
+ s.from.toLocaleString("ko-KR"),
1865
+ "–",
1866
+ s.to.toLocaleString("ko-KR")
1867
+ ]
1868
+ }),
1869
+ " / ",
1870
+ /* @__PURE__ */ m("span", {
1871
+ className: "pagination__figures",
1872
+ children: s.total.toLocaleString("ko-KR")
1873
+ })
1874
+ ]
1875
+ }) : null, /* @__PURE__ */ h("ul", {
1876
+ className: "pagination__list",
1877
+ children: [
1878
+ /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("button", {
1879
+ type: "button",
1880
+ className: "pagination__step",
1881
+ onClick: () => {
1882
+ f || n(e - 1);
1883
+ },
1884
+ "aria-disabled": f || void 0,
1885
+ "data-part": "previous",
1886
+ children: [/* @__PURE__ */ m(i, {
1887
+ icon: F,
1888
+ size: "sm"
1889
+ }), /* @__PURE__ */ m(a, { children: "이전 페이지" })]
1890
+ }) }),
1891
+ d.map((r, i) => r === "gap" ? /* @__PURE__ */ m("li", {
1892
+ className: "pagination__gap",
1893
+ "aria-hidden": "true",
1894
+ children: "…"
1895
+ }, `gap-${i}`) : /* @__PURE__ */ m("li", { children: r === e ? /* @__PURE__ */ h("button", {
1896
+ type: "button",
1897
+ className: "pagination__page",
1898
+ "aria-current": "page",
1899
+ onClick: () => void 0,
1900
+ "data-part": "current",
1901
+ children: [/* @__PURE__ */ m(a, { children: `${t}페이지 중 ` }), r]
1902
+ }) : /* @__PURE__ */ h("button", {
1903
+ type: "button",
1904
+ className: "pagination__page",
1905
+ onClick: () => n(r),
1906
+ "data-part": `page-${r}`,
1907
+ children: [/* @__PURE__ */ m(a, { children: `${r}페이지로` }), /* @__PURE__ */ m("span", {
1908
+ "aria-hidden": "true",
1909
+ children: r
1910
+ })]
1911
+ }) }, r)),
1912
+ /* @__PURE__ */ m("li", { children: /* @__PURE__ */ h("button", {
1913
+ type: "button",
1914
+ className: "pagination__step",
1915
+ onClick: () => {
1916
+ p || n(e + 1);
1917
+ },
1918
+ "aria-disabled": p || void 0,
1919
+ "data-part": "next",
1920
+ children: [/* @__PURE__ */ m(i, {
1921
+ icon: I,
1922
+ size: "sm"
1923
+ }), /* @__PURE__ */ m(a, { children: "다음 페이지" })]
1924
+ }) })
1925
+ ]
1926
+ })]
1927
+ });
1928
+ }
1929
+ //#endregion
1930
+ //#region src/components/composed/Popover/Popover.tsx
1931
+ function Ge({ children: e, content: n, title: r, titleHidden: i, description: a, side: o = "bottom", align: s = "center", width: c = "md", arrow: l = !0, dismissible: u, open: d, defaultOpen: f, onOpenChange: p, className: g, ..._ }) {
1932
+ let v = S();
1933
+ return /* @__PURE__ */ h(W.Root, {
1934
+ open: d,
1935
+ defaultOpen: f,
1936
+ onOpenChange: p,
1937
+ children: [/* @__PURE__ */ m(W.Trigger, {
1938
+ asChild: !0,
1939
+ children: e
1940
+ }), /* @__PURE__ */ m(W.Portal, { children: /* @__PURE__ */ h(W.Content, {
1941
+ ..._,
1942
+ className: `popover ${g ?? ""}`.trim(),
1943
+ side: o,
1944
+ align: s,
1945
+ sideOffset: 8,
1946
+ collisionPadding: 12,
1947
+ "data-width": c,
1948
+ "aria-labelledby": `${v}-title`,
1949
+ "aria-describedby": a ? `${v}-description` : void 0,
1950
+ children: [
1951
+ /* @__PURE__ */ h("div", {
1952
+ className: "popover__head",
1953
+ "data-empty": i && !u ? "" : void 0,
1954
+ children: [/* @__PURE__ */ m("h2", {
1955
+ className: "popover__title",
1956
+ id: `${v}-title`,
1957
+ "data-hidden": i ? "" : void 0,
1958
+ children: r
1959
+ }), u ? /* @__PURE__ */ m(W.Close, {
1960
+ asChild: !0,
1961
+ children: /* @__PURE__ */ m(t, {
1962
+ icon: H,
1963
+ label: `${r} 닫기`,
1964
+ size: "sm",
1965
+ variant: "ghost",
1966
+ tone: "neutral",
1967
+ "data-part": "close"
1968
+ })
1969
+ }) : null]
1970
+ }),
1971
+ a ? /* @__PURE__ */ m("p", {
1972
+ className: "popover__description",
1973
+ id: `${v}-description`,
1974
+ children: a
1975
+ }) : null,
1976
+ /* @__PURE__ */ m("div", {
1977
+ className: "popover__body",
1978
+ children: n
1979
+ }),
1980
+ l ? /* @__PURE__ */ m(W.Arrow, {
1981
+ className: "popover__arrow",
1982
+ width: 12,
1983
+ height: 6
1984
+ }) : null
1985
+ ]
1986
+ }) })]
1987
+ });
1988
+ }
1989
+ //#endregion
1990
+ //#region src/components/composed/PreferenceRow/PreferenceRow.tsx
1991
+ function Ke({ title: e, control: t, description: n, children: r, icon: i, lead: a, stacked: o, disabled: s, className: c, ...l }) {
1992
+ let u = S(), d = `${u}-title`, f = `${u}-description`;
1993
+ return /* @__PURE__ */ h("div", {
1994
+ ...l,
1995
+ className: `preference-row ${c ?? ""}`.trim(),
1996
+ "data-lead": i || a ? "" : void 0,
1997
+ "data-stacked": o ? "" : void 0,
1998
+ "data-disabled": s ? "" : void 0,
1999
+ children: [
2000
+ i ? /* @__PURE__ */ m("span", {
2001
+ className: "preference-row__icon",
2002
+ "aria-hidden": "true",
2003
+ children: i
2004
+ }) : null,
2005
+ /* @__PURE__ */ h("div", {
2006
+ className: "preference-row__body",
2007
+ children: [/* @__PURE__ */ m("span", {
2008
+ className: "preference-row__title",
2009
+ id: d,
2010
+ children: e
2011
+ }), n ? /* @__PURE__ */ m("span", {
2012
+ className: "preference-row__description",
2013
+ id: f,
2014
+ children: n
2015
+ }) : null]
2016
+ }),
2017
+ /* @__PURE__ */ m("div", {
2018
+ className: "preference-row__control",
2019
+ children: t({
2020
+ "aria-labelledby": d,
2021
+ "aria-describedby": n ? f : void 0,
2022
+ id: `${u}-control`
2023
+ })
2024
+ }),
2025
+ r ? /* @__PURE__ */ m("div", {
2026
+ className: "preference-row__extra",
2027
+ children: r
2028
+ }) : null
2029
+ ]
2030
+ });
2031
+ }
2032
+ //#endregion
2033
+ //#region src/components/composed/SidePanel/SidePanel.tsx
2034
+ function qe({ title: e, meta: n, children: r, footer: i, onClose: a, className: o, ...s }) {
2035
+ return /* @__PURE__ */ h("section", {
2036
+ className: `side-panel ${o ?? ""}`.trim(),
2037
+ "aria-label": e,
2038
+ ...s,
2039
+ children: [
2040
+ /* @__PURE__ */ h("header", {
2041
+ className: "side-panel__head",
2042
+ children: [/* @__PURE__ */ h("div", {
2043
+ className: "side-panel__heading",
2044
+ children: [/* @__PURE__ */ m(u, {
2045
+ as: "h2",
2046
+ size: "sm",
2047
+ weight: "semibold",
2048
+ className: "side-panel__title",
2049
+ children: e
2050
+ }), n ? /* @__PURE__ */ m("div", {
2051
+ className: "side-panel__meta",
2052
+ children: n
2053
+ }) : null]
2054
+ }), a ? /* @__PURE__ */ m(t, {
2055
+ icon: H,
2056
+ label: `${e} 닫기`,
2057
+ variant: "ghost",
2058
+ tone: "neutral",
2059
+ size: "sm",
2060
+ onClick: a,
2061
+ "data-part": "close"
2062
+ }) : null]
2063
+ }),
2064
+ /* @__PURE__ */ m("div", {
2065
+ className: "side-panel__body",
2066
+ children: r
2067
+ }),
2068
+ i ? /* @__PURE__ */ m("footer", {
2069
+ className: "side-panel__foot",
2070
+ children: i
2071
+ }) : null
2072
+ ]
2073
+ });
2074
+ }
2075
+ //#endregion
2076
+ //#region src/components/composed/SidebarNav/SidebarNav.tsx
2077
+ function Je(e) {
2078
+ return `${e.title ?? ""}::${e.items.map((e) => e.value).join("|")}`;
2079
+ }
2080
+ function Ye({ groups: e, value: t, label: n, collapsed: r, emphasis: o = "soft", icons: s = "bare", variant: c = "plain", className: u, ...d }) {
2081
+ let f = S(), [g, _] = E({});
2082
+ return /* @__PURE__ */ m("nav", {
2083
+ ...d,
2084
+ className: `sidebar-nav ${u ?? ""}`.trim(),
2085
+ "aria-label": n,
2086
+ "data-collapsed": r ? "" : void 0,
2087
+ "data-emphasis": o,
2088
+ "data-icons": s,
2089
+ "data-variant": c,
2090
+ children: e.map((e, n) => {
2091
+ let o = Je(e), s = g[o] ?? (e.collapsible ? e.defaultOpen === !1 : !1), c = `${f}-group-${n}`;
2092
+ return /* @__PURE__ */ h("div", {
2093
+ className: "sidebar-nav__group",
2094
+ "data-collapsible": e.collapsible && !r ? "" : void 0,
2095
+ children: [
2096
+ e.title && e.collapsible ? /* @__PURE__ */ h("button", {
2097
+ type: "button",
2098
+ className: "sidebar-nav__heading",
2099
+ "aria-expanded": !s,
2100
+ "aria-controls": c,
2101
+ onClick: () => _((e) => ({
2102
+ ...e,
2103
+ [o]: !s
2104
+ })),
2105
+ "data-part": `group-${n}`,
2106
+ children: [/* @__PURE__ */ m(i, {
2107
+ icon: P,
2108
+ size: "xs",
2109
+ className: "sidebar-nav__chevron"
2110
+ }), r ? /* @__PURE__ */ m(a, { children: e.title }) : e.title]
2111
+ }) : null,
2112
+ e.title && !e.collapsible && !r ? /* @__PURE__ */ h("div", {
2113
+ className: "sidebar-nav__heading",
2114
+ "data-static": "",
2115
+ children: [/* @__PURE__ */ m("h3", {
2116
+ className: "sidebar-nav__heading-text",
2117
+ children: e.title
2118
+ }), e.action ? /* @__PURE__ */ m("span", {
2119
+ className: "sidebar-nav__heading-action",
2120
+ children: e.action
2121
+ }) : null]
2122
+ }) : null,
2123
+ e.title && r && n > 0 ? /* @__PURE__ */ m("span", {
2124
+ className: "sidebar-nav__divider",
2125
+ "aria-hidden": "true"
2126
+ }) : null,
2127
+ /* @__PURE__ */ m("ul", {
2128
+ className: "sidebar-nav__list",
2129
+ id: c,
2130
+ hidden: s,
2131
+ children: e.items.map((e) => {
2132
+ let n = e.value === t, o = (t) => {
2133
+ if (e.disabled) {
2134
+ t.preventDefault();
2135
+ return;
2136
+ }
2137
+ e.onClick?.(t);
2138
+ }, s = /* @__PURE__ */ h(p, { children: [
2139
+ e.icon ? /* @__PURE__ */ m("span", {
2140
+ className: "sidebar-nav__glyph",
2141
+ children: /* @__PURE__ */ m(i, {
2142
+ icon: e.icon,
2143
+ size: "sm",
2144
+ className: "sidebar-nav__icon"
2145
+ })
2146
+ }) : null,
2147
+ r ? /* @__PURE__ */ m(a, { children: e.label }) : /* @__PURE__ */ m("span", {
2148
+ className: "sidebar-nav__label",
2149
+ children: e.label
2150
+ }),
2151
+ e.badge === void 0 ? null : /* @__PURE__ */ m("span", {
2152
+ className: "sidebar-nav__badge",
2153
+ children: e.badge
2154
+ })
2155
+ ] }), c = e.href === void 0 ? /* @__PURE__ */ m("button", {
2156
+ type: "button",
2157
+ className: "sidebar-nav__item",
2158
+ "aria-current": n ? "page" : void 0,
2159
+ "aria-disabled": e.disabled || void 0,
2160
+ "data-part": `item-${e.value}`,
2161
+ onClick: o,
2162
+ children: s
2163
+ }) : /* @__PURE__ */ m("a", {
2164
+ className: "sidebar-nav__item",
2165
+ href: e.href,
2166
+ "aria-current": n ? "page" : void 0,
2167
+ "aria-disabled": e.disabled || void 0,
2168
+ "data-part": `item-${e.value}`,
2169
+ onClick: o,
2170
+ children: s
2171
+ });
2172
+ return /* @__PURE__ */ m("li", { children: r ? /* @__PURE__ */ m(l, {
2173
+ content: e.label,
2174
+ side: "right",
2175
+ children: c
2176
+ }) : c }, e.value);
2177
+ })
2178
+ })
2179
+ ]
2180
+ }, o);
2181
+ })
2182
+ });
2183
+ }
2184
+ //#endregion
2185
+ //#region src/components/composed/Sheet/Sheet.tsx
2186
+ var Xe = 6, Ze = .5;
2187
+ function Qe({ title: e, children: t, detents: n = ["peek", "full"], detent: r, onDetentChange: i, fit: a = "viewport", footer: o, className: s, ...c }) {
2188
+ let l = T(null), u = T(null), [d, f] = E(0), [p, g] = E(!1), _ = T(!1), v = n.length ? n : ["peek", "full"], y = Math.max(0, v.indexOf(r)), b = v[(y + 1) % v.length], x = (e) => {
2189
+ let t = v[Math.min(v.length - 1, Math.max(0, y + e))];
2190
+ t !== r && i(t);
2191
+ }, S = (e) => {
2192
+ if (e.pointerType === "mouse" && e.button !== 0) return;
2193
+ e.currentTarget.setPointerCapture(e.pointerId);
2194
+ let t = Number.parseFloat(getComputedStyle(e.currentTarget).getPropertyValue("--drag-resist"));
2195
+ u.current = {
2196
+ y: e.clientY,
2197
+ at: e.clientY,
2198
+ last: e.clientY,
2199
+ time: e.timeStamp,
2200
+ before: e.timeStamp,
2201
+ axis: !1,
2202
+ resist: t || .5
2203
+ };
2204
+ }, C = (e) => {
2205
+ let t = u.current;
2206
+ if (!t) return;
2207
+ let n = e.clientY - t.y;
2208
+ if (!t.axis) {
2209
+ if (Math.abs(n) < Xe) return;
2210
+ t.axis = !0, g(!0);
2211
+ }
2212
+ t.last = t.at, t.at = e.clientY, t.before = t.time, t.time = e.timeStamp;
2213
+ let r = l.current?.offsetHeight ?? 0, i = n;
2214
+ y === 0 && i > 0 && (i *= t.resist), y === v.length - 1 && i < 0 && (i *= t.resist), f(Math.max(-r, Math.min(r, i)));
2215
+ }, w = (e) => {
2216
+ let t = u.current;
2217
+ if (u.current = null, g(!1), f(0), !t || !t.axis) return;
2218
+ e.type === "pointerup" && (_.current = !0);
2219
+ let n = e.clientY - t.y, r = l.current?.offsetHeight ?? 0, i = Math.max(1, t.time - t.before), a = (t.at - t.last) / i, o = Math.abs(n) > r / 4, s = Math.abs(a) > Ze;
2220
+ !o && !s || x((s ? a : n) > 0 ? -1 : 1);
2221
+ };
2222
+ return /* @__PURE__ */ h("section", {
2223
+ ...c,
2224
+ ref: l,
2225
+ className: `sheet ${s ?? ""}`.trim(),
2226
+ "data-detent": r,
2227
+ "data-fit": a,
2228
+ "data-dragging": p ? "" : void 0,
2229
+ style: { "--sheet-pull": `${d}px` },
2230
+ "aria-label": e,
2231
+ children: [
2232
+ /* @__PURE__ */ h("button", {
2233
+ type: "button",
2234
+ className: "sheet__handle",
2235
+ "data-part": "handle",
2236
+ onPointerDown: S,
2237
+ onPointerMove: C,
2238
+ onPointerUp: w,
2239
+ onPointerCancel: w,
2240
+ onClick: () => {
2241
+ if (_.current) {
2242
+ _.current = !1;
2243
+ return;
2244
+ }
2245
+ i(b);
2246
+ },
2247
+ children: [/* @__PURE__ */ m("span", {
2248
+ className: "sheet__grip",
2249
+ "aria-hidden": "true"
2250
+ }), /* @__PURE__ */ m("span", {
2251
+ className: "sheet__handle-label",
2252
+ children: `${e} — ${$e[b]}`
2253
+ })]
2254
+ }),
2255
+ /* @__PURE__ */ m("div", {
2256
+ className: "sheet__head",
2257
+ children: /* @__PURE__ */ m("h2", {
2258
+ className: "sheet__title",
2259
+ children: e
2260
+ })
2261
+ }),
2262
+ /* @__PURE__ */ m("div", {
2263
+ className: "sheet__body",
2264
+ "data-part": "body",
2265
+ children: t
2266
+ }),
2267
+ o ? /* @__PURE__ */ m("div", {
2268
+ className: "sheet__foot",
2269
+ children: o
2270
+ }) : null
2271
+ ]
2272
+ });
2273
+ }
2274
+ var $e = {
2275
+ peek: "살짝 열기",
2276
+ half: "반쯤 열기",
2277
+ full: "끝까지 열기"
2278
+ }, et = "a[href], button, input, select, textarea, [tabindex]:not([tabindex=\"-1\"])";
2279
+ function tt({ steps: e, step: t, onStepChange: n, label: i, finishLabel: a = "완료", className: o, ...s }) {
2280
+ let c = t === null ? null : e[t], [l, u] = E(null), [d, f] = E(0), p = T(null), g = T(null), _ = t !== null, v = y(() => {
2281
+ if (!c) return;
2282
+ let e = document.querySelector(`[data-spotlight="${CSS.escape(c.target)}"]`);
2283
+ if (!e) {
2284
+ u(null);
2285
+ return;
2286
+ }
2287
+ let t = e.getBoundingClientRect();
2288
+ u({
2289
+ x: t.x,
2290
+ y: t.y,
2291
+ width: t.width,
2292
+ height: t.height
2293
+ });
2294
+ }, [c]);
2295
+ if (C(() => {
2296
+ if (!c) {
2297
+ u(null);
2298
+ return;
2299
+ }
2300
+ let e = document.querySelector(`[data-spotlight="${CSS.escape(c.target)}"]`);
2301
+ e?.scrollIntoView({
2302
+ block: "nearest",
2303
+ behavior: "auto"
2304
+ }), v(), window.addEventListener("resize", v), window.addEventListener("scroll", v, !0);
2305
+ let t = new ResizeObserver(v);
2306
+ return e && t.observe(e, { box: "border-box" }), () => {
2307
+ window.removeEventListener("resize", v), window.removeEventListener("scroll", v, !0), t.disconnect();
2308
+ };
2309
+ }, [c, v]), C(() => {
2310
+ let e = p.current;
2311
+ if (!e) return;
2312
+ let t = () => f(e.getBoundingClientRect().height);
2313
+ t();
2314
+ let n = new ResizeObserver(t);
2315
+ return n.observe(e, { box: "border-box" }), () => n.disconnect();
2316
+ }, [c]), x(() => {
2317
+ if (_) return g.current = document.activeElement, () => {
2318
+ let e = g.current;
2319
+ g.current = null, e?.isConnected && e.focus();
2320
+ };
2321
+ }, [_]), x(() => {
2322
+ t !== null && p.current?.focus();
2323
+ }, [t]), x(() => {
2324
+ if (t === null) return;
2325
+ let e = (e) => {
2326
+ if (e.key === "Escape") {
2327
+ n(null);
2328
+ return;
2329
+ }
2330
+ if (e.key !== "Tab") return;
2331
+ let t = p.current;
2332
+ if (!t) return;
2333
+ let r = Array.from(t.querySelectorAll(et)).filter((e) => !e.hasAttribute("disabled") && e.getAttribute("aria-disabled") !== "true");
2334
+ if (r.length === 0) {
2335
+ e.preventDefault(), t.focus();
2336
+ return;
2337
+ }
2338
+ let i = r[0], a = r[r.length - 1], o = document.activeElement, s = t.contains(o);
2339
+ (e.shiftKey ? o === i || !s || o === t : o === a || !s) && (e.preventDefault(), (e.shiftKey ? a : i).focus());
2340
+ };
2341
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2342
+ }, [t, n]), t === null || !c) return null;
2343
+ let b = t === e.length - 1, S = c.side ?? "bottom";
2344
+ return /* @__PURE__ */ h("div", {
2345
+ ...s,
2346
+ className: `spotlight ${o ?? ""}`.trim(),
2347
+ "data-anchored": l ? "" : void 0,
2348
+ "data-side": S,
2349
+ "data-step": c.id,
2350
+ style: l ? {
2351
+ "--spot-x": `${l.x}px`,
2352
+ "--spot-y": `${l.y}px`,
2353
+ "--spot-w": `${l.width}px`,
2354
+ "--spot-h": `${l.height}px`,
2355
+ "--spot-bubble-h": `${d}px`
2356
+ } : void 0,
2357
+ children: [/* @__PURE__ */ m("div", {
2358
+ className: "spotlight__scrim",
2359
+ "data-part": "scrim"
2360
+ }), /* @__PURE__ */ h("div", {
2361
+ ref: p,
2362
+ className: "spotlight__bubble",
2363
+ role: "dialog",
2364
+ "aria-modal": "true",
2365
+ "aria-label": i,
2366
+ tabIndex: -1,
2367
+ "data-part": "bubble",
2368
+ children: [
2369
+ /* @__PURE__ */ m("p", {
2370
+ className: "spotlight__title",
2371
+ children: c.title
2372
+ }),
2373
+ c.body ? /* @__PURE__ */ m("p", {
2374
+ className: "spotlight__body",
2375
+ children: c.body
2376
+ }) : null,
2377
+ /* @__PURE__ */ h("div", {
2378
+ className: "spotlight__foot",
2379
+ children: [
2380
+ /* @__PURE__ */ m("p", {
2381
+ className: "spotlight__count",
2382
+ "data-part": "count",
2383
+ children: `${t + 1} / ${e.length}`
2384
+ }),
2385
+ /* @__PURE__ */ m(r, {
2386
+ variant: "plain",
2387
+ size: "sm",
2388
+ tone: "neutral",
2389
+ onClick: () => n(null),
2390
+ "data-part": "skip",
2391
+ children: "건너뛰기"
2392
+ }),
2393
+ t > 0 ? /* @__PURE__ */ m(r, {
2394
+ variant: "outline",
2395
+ size: "sm",
2396
+ onClick: () => n(t - 1),
2397
+ "data-part": "back",
2398
+ children: "이전"
2399
+ }) : null,
2400
+ /* @__PURE__ */ m(r, {
2401
+ variant: "solid",
2402
+ size: "sm",
2403
+ onClick: () => n(b ? null : t + 1),
2404
+ "data-part": "next",
2405
+ children: b ? a : "다음"
2406
+ })
2407
+ ]
2408
+ })
2409
+ ]
2410
+ }, c.id)]
2411
+ });
2412
+ }
2413
+ //#endregion
2414
+ //#region src/components/composed/Stepper/Stepper.tsx
2415
+ function nt({ steps: e, current: t, errors: n = [], label: r, orientation: o = "horizontal", size: s = "md", className: c, ...l }) {
2416
+ let u = e.findIndex((e) => e.value === t), d = (e, t) => n.includes(e.value) ? "error" : t < u ? "done" : t === u ? "current" : "upcoming", f = {
2417
+ done: "완료",
2418
+ current: "진행 중",
2419
+ upcoming: "남음",
2420
+ error: "확인 필요"
2421
+ };
2422
+ return /* @__PURE__ */ m("ol", {
2423
+ ...l,
2424
+ role: "list",
2425
+ className: `stepper ${c ?? ""}`.trim(),
2426
+ "aria-label": r,
2427
+ "data-orientation": o,
2428
+ "data-size": s,
2429
+ children: e.map((t, n) => {
2430
+ let r = d(t, n), o = !!t.onClick && n < u, s = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
2431
+ className: "stepper__marker",
2432
+ "aria-hidden": "true",
2433
+ children: r === "done" ? /* @__PURE__ */ m(i, {
2434
+ icon: M,
2435
+ size: "xs"
2436
+ }) : n + 1
2437
+ }), /* @__PURE__ */ h("span", {
2438
+ className: "stepper__text",
2439
+ children: [/* @__PURE__ */ h("span", {
2440
+ className: "stepper__label",
2441
+ children: [t.label, /* @__PURE__ */ m(a, { children: ` — ${f[r]}` })]
2442
+ }), t.description ? /* @__PURE__ */ m("span", {
2443
+ className: "stepper__description",
2444
+ children: t.description
2445
+ }) : null]
2446
+ })] });
2447
+ return /* @__PURE__ */ h("li", {
2448
+ className: "stepper__step",
2449
+ "data-status": r,
2450
+ "aria-current": r === "current" ? "step" : void 0,
2451
+ "data-part": `step-${t.value}`,
2452
+ children: [o ? /* @__PURE__ */ m("button", {
2453
+ type: "button",
2454
+ className: "stepper__back",
2455
+ onClick: t.onClick,
2456
+ children: s
2457
+ }) : /* @__PURE__ */ m("span", {
2458
+ className: "stepper__still",
2459
+ children: s
2460
+ }), n < e.length - 1 ? /* @__PURE__ */ m("span", {
2461
+ className: "stepper__line",
2462
+ "aria-hidden": "true"
2463
+ }) : null]
2464
+ }, t.value);
2465
+ })
2466
+ });
2467
+ }
2468
+ //#endregion
2469
+ //#region src/components/composed/Table/Table.tsx
2470
+ function rt({ columns: e, rows: t, rowKey: n, caption: r, captionHidden: c, sort: l, onSortChange: u, selectedKeys: d, onSelectionChange: f, rowLabel: p, stickyHeader: g, rowProps: _, density: v = "comfortable", changed: y, empty: b, loading: x, loadingRows: S = 3, error: C, className: w, ...T }) {
2471
+ let D = !!f, A = new Set(d ?? []), j = t.map(n), M = j.length > 0 && j.every((e) => A.has(e)), N = j.some((e) => A.has(e)), P = !!C, F = P && t.length === 0 ? "error" : x ? "loading" : t.length === 0 ? "empty" : "rows", [I, R] = E(!1), z = P && F === "rows", B = () => {
2472
+ let e = new Set(A);
2473
+ for (let t of j) M ? e.delete(t) : e.add(t);
2474
+ f?.([...e]);
2475
+ }, V = (e) => {
2476
+ let t = new Set(A);
2477
+ t.has(e) ? t.delete(e) : t.add(e), f?.([...t]);
2478
+ }, H = (e) => !!(e.sortable && u), U = (e) => l?.key === e && l.direction === "ascending" ? "descending" : "ascending";
2479
+ return /* @__PURE__ */ h("div", {
2480
+ ...T,
2481
+ className: `table ${w ?? ""}`.trim(),
2482
+ "data-row-density": v,
2483
+ "data-sticky": g ? "" : void 0,
2484
+ children: [
2485
+ z ? /* @__PURE__ */ m("div", {
2486
+ className: "table__state",
2487
+ "data-part": "error",
2488
+ "data-place": "above",
2489
+ role: "alert",
2490
+ children: C
2491
+ }) : null,
2492
+ /* @__PURE__ */ m("div", {
2493
+ className: "table__scroll",
2494
+ tabIndex: 0,
2495
+ "data-scrolled": I ? "" : void 0,
2496
+ onScroll: (e) => {
2497
+ let t = e.currentTarget.scrollTop > 0;
2498
+ t !== I && R(t);
2499
+ },
2500
+ role: "group",
2501
+ "aria-label": `${typeof r == "string" ? r : "표"} — ${g ? "가로·세로로 스크롤" : "가로로 스크롤"}`,
2502
+ children: /* @__PURE__ */ h("table", {
2503
+ className: "table__grid",
2504
+ children: [
2505
+ /* @__PURE__ */ m("caption", {
2506
+ className: "table__caption",
2507
+ children: c ? /* @__PURE__ */ m(a, { children: r }) : r
2508
+ }),
2509
+ /* @__PURE__ */ m("thead", {
2510
+ className: "table__head",
2511
+ children: /* @__PURE__ */ h("tr", { children: [D ? /* @__PURE__ */ m("th", {
2512
+ scope: "col",
2513
+ className: "table__cell",
2514
+ "data-width": "hug",
2515
+ children: /* @__PURE__ */ m(o, {
2516
+ checked: M,
2517
+ indeterminate: N && !M,
2518
+ onChange: B,
2519
+ "aria-label": "모두 고르기",
2520
+ "data-part": "select-all"
2521
+ })
2522
+ }) : null, e.map((e) => {
2523
+ let t = l?.key === e.key;
2524
+ return /* @__PURE__ */ m("th", {
2525
+ scope: "col",
2526
+ className: "table__cell",
2527
+ "data-align": e.align ?? (e.numeric ? "end" : "start"),
2528
+ "data-width": e.width ?? "auto",
2529
+ "data-numeric": e.numeric ? "" : void 0,
2530
+ "aria-sort": H(e) ? t ? l.direction : "none" : void 0,
2531
+ children: H(e) ? /* @__PURE__ */ h("button", {
2532
+ type: "button",
2533
+ className: "table__sort",
2534
+ onClick: () => u({
2535
+ key: e.key,
2536
+ direction: U(e.key)
2537
+ }),
2538
+ "data-part": `sort-${e.key}`,
2539
+ children: [/* @__PURE__ */ m("span", {
2540
+ className: "table__sort-label",
2541
+ children: e.header
2542
+ }), /* @__PURE__ */ m(i, {
2543
+ icon: t ? l.direction === "ascending" ? k : O : L,
2544
+ size: "xs",
2545
+ className: "table__sort-mark"
2546
+ })]
2547
+ }) : e.header
2548
+ }, e.key);
2549
+ })] })
2550
+ }),
2551
+ /* @__PURE__ */ h("tbody", {
2552
+ className: "table__body",
2553
+ "aria-busy": F === "loading" || void 0,
2554
+ children: [F === "loading" ? Array.from({ length: S }, (t, n) => /* @__PURE__ */ h("tr", {
2555
+ className: "table__row",
2556
+ "data-part": "waiting-row",
2557
+ children: [D ? /* @__PURE__ */ m("td", {
2558
+ className: "table__cell",
2559
+ "data-width": "hug",
2560
+ children: /* @__PURE__ */ m(s, {
2561
+ shape: "rect",
2562
+ size: "sm"
2563
+ })
2564
+ }) : null, e.map((e) => /* @__PURE__ */ m("td", {
2565
+ className: "table__cell",
2566
+ "data-align": e.align ?? (e.numeric ? "end" : "start"),
2567
+ "data-width": e.width ?? "auto",
2568
+ children: /* @__PURE__ */ m(s, {
2569
+ shape: "text",
2570
+ lines: 1
2571
+ })
2572
+ }, e.key))]
2573
+ }, `waiting-${n}`)) : null, F === "loading" || F === "error" ? null : t.map((t) => {
2574
+ let r = n(t);
2575
+ return /* @__PURE__ */ h("tr", {
2576
+ ..._?.(t),
2577
+ className: "table__row",
2578
+ "data-selected": A.has(r) ? "" : void 0,
2579
+ children: [D ? /* @__PURE__ */ m("td", {
2580
+ className: "table__cell",
2581
+ "data-width": "hug",
2582
+ children: /* @__PURE__ */ m(o, {
2583
+ checked: A.has(r),
2584
+ onChange: () => V(r),
2585
+ "aria-label": p ? `${p(t)} 고르기` : "이 줄 고르기",
2586
+ "data-part": "select-row"
2587
+ })
2588
+ }) : null, e.map((e) => /* @__PURE__ */ h("td", {
2589
+ className: "table__cell",
2590
+ "data-align": e.align ?? (e.numeric ? "end" : "start"),
2591
+ "data-width": e.width ?? "auto",
2592
+ "data-numeric": e.numeric ? "" : void 0,
2593
+ children: [(() => {
2594
+ let n = y?.(t, e);
2595
+ return n === void 0 ? null : /* @__PURE__ */ m("span", {
2596
+ className: "table__flash",
2597
+ "data-part": "flash",
2598
+ "aria-hidden": "true"
2599
+ }, n);
2600
+ })(), e.cell(t)]
2601
+ }, e.key))]
2602
+ }, r);
2603
+ })]
2604
+ })
2605
+ ]
2606
+ })
2607
+ }),
2608
+ F === "error" ? /* @__PURE__ */ m("div", {
2609
+ className: "table__state",
2610
+ role: "alert",
2611
+ "data-part": "error",
2612
+ children: C
2613
+ }) : F === "empty" && b ? /* @__PURE__ */ m("div", {
2614
+ className: "table__state",
2615
+ "data-part": "empty",
2616
+ children: b
2617
+ }) : null
2618
+ ]
2619
+ });
2620
+ }
2621
+ //#endregion
2622
+ //#region src/components/composed/Tabs/Tabs.tsx
2623
+ function it({ tabs: e, value: t, onValueChange: n, label: r, children: a, activation: o = "automatic", variant: s = "underline", size: c = "md", level: l = 1, fitted: u, className: d, ...f }) {
2624
+ let p = S(), g = T(null), [_, v] = E(null), [y, b] = E(!1);
2625
+ C(() => {
2626
+ if (s !== "underline") return;
2627
+ let e = g.current;
2628
+ if (!e) return;
2629
+ let n = () => {
2630
+ let n = e.querySelector(`[data-value="${CSS.escape(t)}"]`);
2631
+ n && v({
2632
+ start: n.offsetLeft,
2633
+ size: n.offsetWidth
2634
+ });
2635
+ };
2636
+ n();
2637
+ let r = new ResizeObserver(n);
2638
+ r.observe(e);
2639
+ for (let t of e.querySelectorAll(".tabs__tab")) r.observe(t);
2640
+ return () => r.disconnect();
2641
+ }, [
2642
+ t,
2643
+ e,
2644
+ s,
2645
+ c,
2646
+ l,
2647
+ u
2648
+ ]), x(() => {
2649
+ _ && !y && b(!0);
2650
+ }, [_, y]);
2651
+ let w = e.filter((e) => !e.disabled), D = (e, t) => {
2652
+ if (w.length === 0) return;
2653
+ let r = w.findIndex((t) => t.value === e), i = w[(r + t + w.length) % w.length];
2654
+ g.current?.querySelector(`[data-value="${CSS.escape(i.value)}"]`)?.focus(), o === "automatic" && n(i.value);
2655
+ }, O = (e) => {
2656
+ let t = e.target.dataset.value;
2657
+ if (!t) return;
2658
+ let n = {
2659
+ ArrowRight: () => D(t, 1),
2660
+ ArrowLeft: () => D(t, -1),
2661
+ Home: () => D(w[0]?.value ?? t, 0),
2662
+ End: () => D(w.at(-1)?.value ?? t, 0)
2663
+ }[e.key];
2664
+ n && (e.preventDefault(), n());
2665
+ };
2666
+ return /* @__PURE__ */ h("div", {
2667
+ ...f,
2668
+ className: `tabs ${d ?? ""}`.trim(),
2669
+ "data-variant": s,
2670
+ "data-size": c,
2671
+ "data-level": l,
2672
+ "data-fitted": u ? "" : void 0,
2673
+ children: [/* @__PURE__ */ h("div", {
2674
+ ref: g,
2675
+ className: "tabs__list",
2676
+ role: "tablist",
2677
+ "aria-label": r,
2678
+ onKeyDown: O,
2679
+ "data-armed": y ? "" : void 0,
2680
+ style: _ ? {
2681
+ "--tabs-indicator-start": `${_.start}px`,
2682
+ "--tabs-indicator-size": `${_.size}px`
2683
+ } : void 0,
2684
+ children: [e.map((e) => {
2685
+ let r = e.value === t;
2686
+ return /* @__PURE__ */ h("button", {
2687
+ type: "button",
2688
+ role: "tab",
2689
+ className: "tabs__tab",
2690
+ id: `${p}-${e.value}`,
2691
+ "data-value": e.value,
2692
+ "aria-selected": r,
2693
+ "aria-controls": `${p}-panel`,
2694
+ tabIndex: r ? 0 : -1,
2695
+ disabled: e.disabled,
2696
+ onClick: () => n(e.value),
2697
+ children: [
2698
+ e.icon ? /* @__PURE__ */ m(i, {
2699
+ icon: e.icon,
2700
+ size: c === "sm" || l > 1 ? "xs" : "sm"
2701
+ }) : null,
2702
+ /* @__PURE__ */ m("span", {
2703
+ className: "tabs__label",
2704
+ children: e.label
2705
+ }),
2706
+ e.badge === void 0 ? null : /* @__PURE__ */ m("span", {
2707
+ className: "tabs__badge",
2708
+ children: e.badge
2709
+ })
2710
+ ]
2711
+ }, e.value);
2712
+ }), s === "underline" ? /* @__PURE__ */ m("span", {
2713
+ className: "tabs__indicator",
2714
+ "aria-hidden": "true"
2715
+ }) : null]
2716
+ }), /* @__PURE__ */ m("div", {
2717
+ className: "tabs__panel",
2718
+ role: "tabpanel",
2719
+ id: `${p}-panel`,
2720
+ "aria-labelledby": `${p}-${t}`,
2721
+ tabIndex: 0,
2722
+ children: a
2723
+ })]
2724
+ });
2725
+ }
2726
+ //#endregion
2727
+ //#region src/components/composed/TimeInput/times.ts
2728
+ var at = 1440;
2729
+ function ot(e) {
2730
+ let t = (Math.round(e) % at + at) % at;
2731
+ return `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}`;
2732
+ }
2733
+ function st(e) {
2734
+ if (!e) return null;
2735
+ let t = /^(\d{2}):(\d{2})$/.exec(e.trim());
2736
+ if (!t) return null;
2737
+ let n = Number(t[1]), r = Number(t[2]);
2738
+ return n > 23 || r > 59 ? null : n * 60 + r;
2739
+ }
2740
+ function ct(e, t) {
2741
+ return [st(e) ?? 0, st(t) ?? 1439];
2742
+ }
2743
+ var lt = (e, t, n) => Math.min(Math.max(e, t), n);
2744
+ function ut(e, t, n) {
2745
+ if (t <= 1) return Math.round(e);
2746
+ let r = e - n, i = Math.floor(r / t) * t, a = i + t;
2747
+ return n + (r - i <= a - r ? i : a);
2748
+ }
2749
+ function dt(e, t, n, r) {
2750
+ let i = Math.max(1, Math.round(t)), a = e - n;
2751
+ return n + (r === 1 ? Math.floor(a / i) * i + i : Math.ceil(a / i) * i - i);
2752
+ }
2753
+ var ft = (e, t, n) => t <= 1 || ((e - n) % t + t) % t === 0;
2754
+ function pt(e) {
2755
+ let t = Math.floor(e / 60);
2756
+ return `${t < 12 ? "오전" : "오후"} ${t % 12 == 0 ? 12 : t % 12}:${String(e % 60).padStart(2, "0")}`;
2757
+ }
2758
+ function mt(e) {
2759
+ let t = Math.floor(e / 60), n = t < 12 ? "오전" : "오후", r = t % 12 == 0 ? 12 : t % 12;
2760
+ return `${t}시 ${e % 60}분, ${n} ${r}시 ${e % 60}분`;
2761
+ }
2762
+ //#endregion
2763
+ //#region src/components/composed/TimeInput/TimeInput.tsx
2764
+ var ht = {
2765
+ hour: 23,
2766
+ minute: 59
2767
+ }, gt = (e) => String(e).padStart(2, "0");
2768
+ function _t({ value: e, onValueChange: t, label: n, min: r, max: i, step: o = 1, size: s = "md", disabled: c, invalid: l, id: u, name: d, "aria-describedby": f, "aria-labelledby": p, required: g, className: _, ...v }) {
2769
+ let y = S(), b = u ?? `${y}-hour`, x = `${y}-minute`, C = `${y}-label`, w = `${y}-note`, D = {
2770
+ hour: `${y}-hour-word`,
2771
+ minute: `${y}-minute-word`
2772
+ }, O = Math.max(1, Math.round(o)), [k, A] = ct(r, i), j = k, M = st(e), [N, P] = E(null), [F, I] = E("hour"), L = T({
2773
+ hour: null,
2774
+ minute: null
2775
+ }), R = N ?? {
2776
+ hour: M === null ? null : Math.floor(M / 60),
2777
+ minute: M === null ? null : M % 60
2778
+ }, z = (n) => {
2779
+ let r = ot(n);
2780
+ r !== e && t(r);
2781
+ }, B = (n, r) => {
2782
+ let i = n === "hour" ? r : R.hour, a = n === "minute" ? r : R.minute;
2783
+ if (i === null && a === null) {
2784
+ P(null), e !== null && t(null);
2785
+ return;
2786
+ }
2787
+ if (i === null || a === null) {
2788
+ P({
2789
+ hour: i,
2790
+ minute: a
2791
+ });
2792
+ return;
2793
+ }
2794
+ P(null), z(i * 60 + a);
2795
+ }, V = () => R.hour !== null && R.minute !== null ? R.hour * 60 + R.minute : ut(lt(M ?? k, k, A), O, j), H = () => {
2796
+ let e = ut(A, O, j);
2797
+ return e > A ? e - O : e;
2798
+ }, U = (e) => {
2799
+ let t = lt(e, k, A);
2800
+ P(null), z(t);
2801
+ }, W = (e) => (t) => {
2802
+ let n = V(), r = {
2803
+ ArrowUp: () => U(e === "hour" ? n + 60 : dt(n, O, j, 1)),
2804
+ ArrowDown: () => U(e === "hour" ? n - 60 : dt(n, O, j, -1)),
2805
+ Home: () => U(k),
2806
+ End: () => U(H()),
2807
+ ArrowRight: () => L.current.minute?.focus(),
2808
+ ArrowLeft: () => L.current.hour?.focus(),
2809
+ Backspace: () => B(e, null),
2810
+ Delete: () => B(e, null)
2811
+ }[t.key];
2812
+ r && (t.preventDefault(), r());
2813
+ }, G = (e) => (t) => {
2814
+ let n = t.target.value.replace(/\D/g, "");
2815
+ if (n === "") {
2816
+ B(e, null);
2817
+ return;
2818
+ }
2819
+ let r = Number(n.slice(-2)), i = Number(n.slice(-1)), a = r <= ht[e] && n.length > 1 ? r : i;
2820
+ B(e, a), e === "hour" && (a > 2 || n.length > 1) && L.current.minute?.focus();
2821
+ }, K = (e) => {
2822
+ if (e.currentTarget.contains(e.relatedTarget)) return;
2823
+ if (R.hour === null || R.minute === null) {
2824
+ P(null);
2825
+ return;
2826
+ }
2827
+ let t = lt(ut(lt(R.hour * 60 + R.minute, k, A), O, j), k, A);
2828
+ P(null), z(t);
2829
+ }, q = (e) => {
2830
+ let t = R[e], n = R.hour !== null && R.minute !== null, r = t === null ? "비어 있음" : e === "hour" && n ? mt(R.hour * 60 + R.minute) : e === "hour" ? `${t}시` : `${t}분`;
2831
+ return {
2832
+ id: e === "hour" ? b : x,
2833
+ ref: (t) => {
2834
+ L.current[e] = t;
2835
+ },
2836
+ className: "time-input__segment",
2837
+ type: "text",
2838
+ role: "spinbutton",
2839
+ inputMode: "numeric",
2840
+ autoComplete: "off",
2841
+ tabIndex: F === e ? 0 : -1,
2842
+ "aria-labelledby": `${p ?? C} ${D[e]}`,
2843
+ "aria-describedby": [f, w].filter(Boolean).join(" "),
2844
+ "aria-valuenow": t ?? void 0,
2845
+ "aria-valuemin": 0,
2846
+ "aria-valuemax": ht[e],
2847
+ "aria-valuetext": r,
2848
+ "aria-invalid": l || void 0,
2849
+ required: g,
2850
+ disabled: c,
2851
+ placeholder: "--",
2852
+ value: t === null ? "" : gt(t),
2853
+ onChange: G(e),
2854
+ onKeyDown: W(e),
2855
+ onFocus: (t) => {
2856
+ I(e), t.target.select();
2857
+ },
2858
+ "data-part": e
2859
+ };
2860
+ }, J = R.hour !== null && R.minute !== null ? R.hour * 60 + R.minute : null;
2861
+ return /* @__PURE__ */ h("div", {
2862
+ ...v,
2863
+ className: `time-input ${_ ?? ""}`.trim(),
2864
+ "data-size": s,
2865
+ "data-invalid": l ? "" : void 0,
2866
+ "data-disabled": c ? "" : void 0,
2867
+ children: [
2868
+ /* @__PURE__ */ h(a, { children: [
2869
+ /* @__PURE__ */ m("span", {
2870
+ id: C,
2871
+ children: n
2872
+ }),
2873
+ /* @__PURE__ */ m("span", {
2874
+ id: D.hour,
2875
+ children: "시"
2876
+ }),
2877
+ /* @__PURE__ */ m("span", {
2878
+ id: D.minute,
2879
+ children: "분"
2880
+ }),
2881
+ /* @__PURE__ */ h("span", {
2882
+ id: w,
2883
+ children: [
2884
+ "24시간 표기입니다. 14는 오후 2시입니다. 위아래 화살표로",
2885
+ " ",
2886
+ O === 1 ? "1분씩" : `${O}분씩`,
2887
+ " 옮깁니다."
2888
+ ]
2889
+ })
2890
+ ] }),
2891
+ /* @__PURE__ */ h("div", {
2892
+ className: "time-input__field",
2893
+ onBlur: K,
2894
+ "data-part": "field",
2895
+ children: [
2896
+ /* @__PURE__ */ m("input", { ...q("hour") }),
2897
+ /* @__PURE__ */ m("span", {
2898
+ className: "time-input__colon",
2899
+ "aria-hidden": "true",
2900
+ children: ":"
2901
+ }),
2902
+ /* @__PURE__ */ m("input", { ...q("minute") }),
2903
+ /* @__PURE__ */ m("span", {
2904
+ className: "time-input__meridiem",
2905
+ "aria-hidden": "true",
2906
+ "data-part": "meridiem",
2907
+ children: J === null ? "" : pt(J)
2908
+ })
2909
+ ]
2910
+ }),
2911
+ d ? /* @__PURE__ */ m("input", {
2912
+ type: "hidden",
2913
+ name: d,
2914
+ value: e ?? ""
2915
+ }) : null,
2916
+ /* @__PURE__ */ m(a, { children: /* @__PURE__ */ m("span", {
2917
+ "aria-live": "polite",
2918
+ "data-part": "off-grid",
2919
+ children: J !== null && !ft(J, O, j) ? `${O}분 간격이 아닙니다` : ""
2920
+ }) })
2921
+ ]
2922
+ });
2923
+ }
2924
+ //#endregion
2925
+ //#region src/components/composed/Toast/Toast.tsx
2926
+ var vt = {
2927
+ neutral: R,
2928
+ success: N,
2929
+ warning: D,
2930
+ danger: U
2931
+ };
2932
+ function yt({ toasts: e, onDismiss: t, label: n = "알림", placement: r = "bottom", className: i, ...a }) {
2933
+ let [o, s] = E(!1);
2934
+ return /* @__PURE__ */ m("div", {
2935
+ ...a,
2936
+ className: `toast-viewport ${i ?? ""}`.trim(),
2937
+ "data-placement": r,
2938
+ role: "region",
2939
+ "aria-label": n,
2940
+ onPointerEnter: () => s(!0),
2941
+ onPointerLeave: () => s(!1),
2942
+ onFocusCapture: () => s(!0),
2943
+ onBlurCapture: (e) => {
2944
+ e.currentTarget.contains(e.relatedTarget) || s(!1);
2945
+ },
2946
+ "data-held": o ? "" : void 0,
2947
+ children: e.map((e) => /* @__PURE__ */ m(bt, {
2948
+ toast: e,
2949
+ held: o,
2950
+ onDismiss: t
2951
+ }, e.id))
2952
+ });
2953
+ }
2954
+ function bt({ toast: e, held: n, onDismiss: r }) {
2955
+ let a = e.tone ?? "neutral", o = e.duration === void 0 ? 6e3 : e.duration, s = T(o ?? 0), c = T(null), l = T(o);
2956
+ return x(() => {
2957
+ if (l.current !== o && (l.current = o, s.current = o ?? 0, c.current = null), o === null || n) {
2958
+ c.current !== null && (s.current -= performance.now() - c.current, c.current = null);
2959
+ return;
2960
+ }
2961
+ c.current = performance.now();
2962
+ let t = window.setTimeout(() => r(e.id), Math.max(0, s.current));
2963
+ return () => {
2964
+ window.clearTimeout(t), c.current !== null && (s.current -= performance.now() - c.current, c.current = null);
2965
+ };
2966
+ }, [
2967
+ o,
2968
+ n,
2969
+ r,
2970
+ e.id
2971
+ ]), /* @__PURE__ */ h("div", {
2972
+ className: "toast",
2973
+ "data-tone": a,
2974
+ role: a === "danger" ? "alert" : "status",
2975
+ "aria-live": a === "danger" ? "assertive" : "polite",
2976
+ "data-part": `toast-${e.id}`,
2977
+ style: o === null ? void 0 : { "--toast-life": `${o}ms` },
2978
+ children: [
2979
+ o === null ? null : /* @__PURE__ */ m("span", {
2980
+ className: "toast__rail",
2981
+ "data-part": "rail",
2982
+ "aria-hidden": "true"
2983
+ }, o),
2984
+ /* @__PURE__ */ m(i, {
2985
+ icon: vt[a],
2986
+ size: "sm",
2987
+ className: "toast__glyph"
2988
+ }),
2989
+ /* @__PURE__ */ h("div", {
2990
+ className: "toast__text",
2991
+ children: [/* @__PURE__ */ m("p", {
2992
+ className: "toast__title",
2993
+ children: e.title
2994
+ }), e.description ? /* @__PURE__ */ m("p", {
2995
+ className: "toast__description",
2996
+ children: e.description
2997
+ }) : null]
2998
+ }),
2999
+ e.action ? /* @__PURE__ */ m("div", {
3000
+ className: "toast__action",
3001
+ children: e.action
3002
+ }) : null,
3003
+ /* @__PURE__ */ m(t, {
3004
+ icon: H,
3005
+ label: "알림 닫기",
3006
+ size: "sm",
3007
+ variant: "ghost",
3008
+ tone: "neutral",
3009
+ onClick: () => r(e.id),
3010
+ "data-part": "dismiss"
3011
+ })
3012
+ ]
3013
+ });
3014
+ }
3015
+ //#endregion
3016
+ //#region src/components/composed/Toolbar/Toolbar.tsx
3017
+ var xt = "button, [href], input, select, textarea, [tabindex]", St = [
3018
+ "input",
3019
+ "textarea",
3020
+ "select",
3021
+ "[role=\"combobox\"]",
3022
+ "[role=\"listbox\"]",
3023
+ "[role=\"searchbox\"]",
3024
+ "[role=\"spinbutton\"]",
3025
+ "[role=\"textbox\"]"
3026
+ ].join(", "), Ct = _("horizontal");
3027
+ function wt({ children: e, label: t, orientation: n = "horizontal", className: r, ...i }) {
3028
+ let a = T(null), [o, s] = E(0), c = T(/* @__PURE__ */ new WeakSet()), l = y(() => Array.from(a.current?.querySelectorAll(xt) ?? []).filter((e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.closest("[aria-hidden=\"true\"]") ? !1 : e.getAttribute("tabindex") !== "-1" || c.current.has(e)), []);
3029
+ x(() => {
3030
+ let e = l();
3031
+ if (e.length === 0) return;
3032
+ let t = Math.min(o, e.length - 1);
3033
+ e.forEach((e, n) => {
3034
+ c.current.add(e), e.tabIndex = n === t ? 0 : -1;
3035
+ });
3036
+ });
3037
+ let u = (e) => {
3038
+ let t = l();
3039
+ if (t.length === 0) return;
3040
+ let n = t.findIndex((e) => e === document.activeElement), r = ((n === -1 ? e > 0 ? -1 : 0 : n) + e + t.length) % t.length;
3041
+ s(r), t[r].focus();
3042
+ }, d = (e) => {
3043
+ let t = l();
3044
+ if (t.length === 0) return;
3045
+ let n = e === "first" ? 0 : t.length - 1;
3046
+ s(n), t[n].focus();
3047
+ }, f = n === "horizontal" ? "ArrowRight" : "ArrowDown", p = n === "horizontal" ? "ArrowLeft" : "ArrowUp", h = (e) => {
3048
+ if (e.target.matches(St)) return;
3049
+ let t = {
3050
+ [f]: () => u(1),
3051
+ [p]: () => u(-1),
3052
+ Home: () => d("first"),
3053
+ End: () => d("last")
3054
+ }[e.key];
3055
+ t && (e.preventDefault(), t());
3056
+ };
3057
+ return /* @__PURE__ */ m(Ct.Provider, {
3058
+ value: n,
3059
+ children: /* @__PURE__ */ m("div", {
3060
+ ...i,
3061
+ ref: a,
3062
+ className: `toolbar ${r ?? ""}`.trim(),
3063
+ role: "toolbar",
3064
+ "aria-label": t,
3065
+ "aria-orientation": n,
3066
+ "data-orientation": n,
3067
+ onKeyDown: h,
3068
+ onFocus: (e) => {
3069
+ let t = l().findIndex((t) => t === e.target);
3070
+ t >= 0 && s(t);
3071
+ },
3072
+ children: e
3073
+ })
3074
+ });
3075
+ }
3076
+ function Tt({ className: e, ...t }) {
3077
+ let n = b(Ct);
3078
+ return /* @__PURE__ */ m("span", {
3079
+ ...t,
3080
+ className: `toolbar__separator ${e ?? ""}`.trim(),
3081
+ role: "separator",
3082
+ "aria-orientation": n === "horizontal" ? "vertical" : "horizontal"
3083
+ });
3084
+ }
3085
+ //#endregion
3086
+ export { me as A, J as B, Ne as C, ye as D, Oe as E, ae as F, K as H, oe as I, ie as L, le as M, se as N, $ as O, ne as P, re as R, Fe as S, je as T, q as V, Be as _, it as a, Ie as b, tt as c, qe as d, Ke as f, Ve as g, Ue as h, _t as i, de as j, xe as k, Qe as l, We as m, Tt as n, rt as o, Ge as p, yt as r, nt as s, wt as t, Ye as u, Re as v, Me as w, Pe as x, ze as y, te as z };
3087
+
3088
+ //# sourceMappingURL=Toolbar-DiP1iR_t.js.map