@iamfiro/design 0.0.0-stage → 0.3.0

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 (416) hide show
  1. package/AGENTS.md +82 -0
  2. package/README.md +15 -2
  3. package/agents/INDEX.md +157 -0
  4. package/agents/accordion/AGENTS.md +279 -0
  5. package/agents/action-bar/AGENTS.md +90 -0
  6. package/agents/alert/AGENTS.md +212 -0
  7. package/agents/alert-dialog/AGENTS.md +193 -0
  8. package/agents/app-shell/AGENTS.md +409 -0
  9. package/agents/area-chart/AGENTS.md +183 -0
  10. package/agents/aspect-ratio/AGENTS.md +143 -0
  11. package/agents/avatar/AGENTS.md +130 -0
  12. package/agents/badge/AGENTS.md +217 -0
  13. package/agents/bar-chart/AGENTS.md +386 -0
  14. package/agents/bar-list/AGENTS.md +223 -0
  15. package/agents/brand-icon/AGENTS.md +82 -0
  16. package/agents/breadcrumb/AGENTS.md +133 -0
  17. package/agents/button/AGENTS.md +195 -0
  18. package/agents/card/AGENTS.md +141 -0
  19. package/agents/card-frame/AGENTS.md +227 -0
  20. package/agents/chat-bubble/AGENTS.md +266 -0
  21. package/agents/chat-composer/AGENTS.md +251 -0
  22. package/agents/checkbox/AGENTS.md +113 -0
  23. package/agents/code-block/AGENTS.md +144 -0
  24. package/agents/color-dot/AGENTS.md +120 -0
  25. package/agents/color-picker/AGENTS.md +224 -0
  26. package/agents/colors/AGENTS.md +168 -0
  27. package/agents/combobox/AGENTS.md +218 -0
  28. package/agents/command-menu/AGENTS.md +169 -0
  29. package/agents/comment/AGENTS.md +206 -0
  30. package/agents/context-menu/AGENTS.md +303 -0
  31. package/agents/copy-button/AGENTS.md +84 -0
  32. package/agents/count-badge/AGENTS.md +115 -0
  33. package/agents/countdown/AGENTS.md +101 -0
  34. package/agents/data-grid/AGENTS.md +460 -0
  35. package/agents/date-picker/AGENTS.md +197 -0
  36. package/agents/delta/AGENTS.md +114 -0
  37. package/agents/description-list/AGENTS.md +251 -0
  38. package/agents/dialog/AGENTS.md +391 -0
  39. package/agents/drawer/AGENTS.md +471 -0
  40. package/agents/dropdown-menu/AGENTS.md +322 -0
  41. package/agents/dropzone/AGENTS.md +116 -0
  42. package/agents/elapsed/AGENTS.md +160 -0
  43. package/agents/empty-state/AGENTS.md +203 -0
  44. package/agents/file-chip/AGENTS.md +79 -0
  45. package/agents/file-icon/AGENTS.md +66 -0
  46. package/agents/file-upload/AGENTS.md +168 -0
  47. package/agents/filter-chips/AGENTS.md +167 -0
  48. package/agents/flag/AGENTS.md +67 -0
  49. package/agents/funnel-chart/AGENTS.md +131 -0
  50. package/agents/highlight/AGENTS.md +119 -0
  51. package/agents/hover-card/AGENTS.md +271 -0
  52. package/agents/icon-stack/AGENTS.md +120 -0
  53. package/agents/icon-tile/AGENTS.md +94 -0
  54. package/agents/inline-diff/AGENTS.md +211 -0
  55. package/agents/input/AGENTS.md +261 -0
  56. package/agents/kanban/AGENTS.md +352 -0
  57. package/agents/kbd/AGENTS.md +160 -0
  58. package/agents/layout/AGENTS.md +351 -0
  59. package/agents/line-chart/AGENTS.md +393 -0
  60. package/agents/link/AGENTS.md +53 -0
  61. package/agents/list/AGENTS.md +392 -0
  62. package/agents/marker/AGENTS.md +142 -0
  63. package/agents/masked-text/AGENTS.md +127 -0
  64. package/agents/menubar/AGENTS.md +276 -0
  65. package/agents/multi-select/AGENTS.md +159 -0
  66. package/agents/navigation-menu/AGENTS.md +315 -0
  67. package/agents/notice-stack/AGENTS.md +101 -0
  68. package/agents/number-stepper/AGENTS.md +96 -0
  69. package/agents/otp-input/AGENTS.md +162 -0
  70. package/agents/pagination/AGENTS.md +189 -0
  71. package/agents/phone-input/AGENTS.md +131 -0
  72. package/agents/pie-chart/AGENTS.md +243 -0
  73. package/agents/popover/AGENTS.md +190 -0
  74. package/agents/progress/AGENTS.md +273 -0
  75. package/agents/progress-tracker/AGENTS.md +305 -0
  76. package/agents/rating/AGENTS.md +165 -0
  77. package/agents/relative-time/AGENTS.md +103 -0
  78. package/agents/resizable/AGENTS.md +390 -0
  79. package/agents/scaled-preview/AGENTS.md +111 -0
  80. package/agents/scatter-chart/AGENTS.md +160 -0
  81. package/agents/scroll-area/AGENTS.md +271 -0
  82. package/agents/search-input/AGENTS.md +105 -0
  83. package/agents/segmented-control/AGENTS.md +153 -0
  84. package/agents/select/AGENTS.md +159 -0
  85. package/agents/selector-button/AGENTS.md +122 -0
  86. package/agents/sidebar/AGENTS.md +201 -0
  87. package/agents/skeleton/AGENTS.md +166 -0
  88. package/agents/slider/AGENTS.md +181 -0
  89. package/agents/social-login-button/AGENTS.md +156 -0
  90. package/agents/spark-chart/AGENTS.md +257 -0
  91. package/agents/sparkbar/AGENTS.md +92 -0
  92. package/agents/spinner/AGENTS.md +123 -0
  93. package/agents/split-view/AGENTS.md +290 -0
  94. package/agents/stat/AGENTS.md +138 -0
  95. package/agents/status-icon/AGENTS.md +243 -0
  96. package/agents/step-list/AGENTS.md +313 -0
  97. package/agents/table/AGENTS.md +286 -0
  98. package/agents/tabs/AGENTS.md +305 -0
  99. package/agents/tag-input/AGENTS.md +246 -0
  100. package/agents/time-picker/AGENTS.md +228 -0
  101. package/agents/timeline/AGENTS.md +1018 -0
  102. package/agents/toast/AGENTS.md +266 -0
  103. package/agents/toggle-group/AGENTS.md +216 -0
  104. package/agents/toolbar/AGENTS.md +277 -0
  105. package/agents/tooltip/AGENTS.md +154 -0
  106. package/agents/tracker/AGENTS.md +158 -0
  107. package/agents/tree-diagram/AGENTS.md +260 -0
  108. package/agents/tree-view/AGENTS.md +329 -0
  109. package/agents/typography/AGENTS.md +396 -0
  110. package/lib/components/Accordion/Accordion2.js +135 -0
  111. package/lib/components/ActionBar/ActionBar2.js +65 -0
  112. package/lib/components/Alert/Alert2.js +131 -0
  113. package/lib/components/AppShell/AppShell2.js +94 -0
  114. package/lib/components/AreaChart/AreaChart.js +59 -0
  115. package/lib/components/BarChart/BarChart2.js +243 -0
  116. package/lib/components/BarList/BarList2.js +172 -0
  117. package/lib/components/Breadcrumb/Breadcrumb2.js +87 -0
  118. package/lib/components/Calendar/Calendar2.js +309 -0
  119. package/lib/components/Calendar/DatePicker2.js +229 -0
  120. package/lib/components/Calendar/date.js +121 -0
  121. package/lib/components/Card/Card2.js +104 -0
  122. package/lib/components/CardFrame/CardFrame2.js +72 -0
  123. package/lib/components/Chart/ChartParts.js +150 -0
  124. package/lib/components/Chart/chart2.js +96 -0
  125. package/lib/components/Chart/useChartInteraction.js +94 -0
  126. package/lib/components/ChatBubble/ChatBubble2.js +174 -0
  127. package/lib/components/ChatBubble/formatChatTime.js +53 -0
  128. package/lib/components/ChatComposer/ChatComposer2.js +153 -0
  129. package/lib/components/CodeBlock/CodeBlock2.js +93 -0
  130. package/lib/components/CodeBlock/highlight.js +114 -0
  131. package/lib/components/ColorPicker/ColorPicker2.js +610 -0
  132. package/lib/components/ColorPicker/color.js +180 -0
  133. package/lib/components/ColorPicker/presets.js +75 -0
  134. package/lib/components/Combobox/Combobox2.js +229 -0
  135. package/lib/components/CommandMenu/CommandMenu.js +267 -0
  136. package/lib/components/Comment/Comment2.js +134 -0
  137. package/lib/components/ContextMenu/ContextMenu2.js +168 -0
  138. package/lib/components/DataGrid/DataGrid2.js +1996 -0
  139. package/lib/components/DataGrid/GridPopover.js +154 -0
  140. package/lib/components/DataGrid/anchor.js +50 -0
  141. package/lib/components/DataGrid/model.js +558 -0
  142. package/lib/components/DataGrid/panels.js +703 -0
  143. package/lib/components/DataGrid/typeMeta.js +76 -0
  144. package/lib/components/DataGrid/types.js +54 -0
  145. package/lib/components/DescriptionList/DescriptionList2.js +180 -0
  146. package/lib/components/Dialog/AlertDialog.js +118 -0
  147. package/lib/components/Dialog/Dialog2.js +109 -0
  148. package/lib/components/Dialog/modal.js +92 -0
  149. package/lib/components/Drawer/Drawer2.js +244 -0
  150. package/lib/components/DropdownMenu/DropdownMenu2.js +394 -0
  151. package/lib/components/DropdownMenu/menuCore.js +63 -0
  152. package/lib/components/Dropzone/Dropzone2.js +144 -0
  153. package/lib/components/EmptyState/EmptyState2.js +72 -0
  154. package/lib/components/FileChip/FileChip2.js +118 -0
  155. package/lib/components/FileUpload/FileUpload.js +258 -0
  156. package/lib/components/FilterChips/FilterChips2.js +101 -0
  157. package/lib/components/FunnelChart/FunnelChart2.js +283 -0
  158. package/lib/components/FunnelChart/funnel.js +69 -0
  159. package/lib/components/Highlight/Highlight2.js +100 -0
  160. package/lib/components/HoverCard/HoverCard.js +134 -0
  161. package/lib/components/InlineDiff/InlineDiff2.js +215 -0
  162. package/lib/components/InlineDiff/diff.js +126 -0
  163. package/lib/components/InlineDiff/useDiffReview.js +109 -0
  164. package/lib/components/Kanban/Kanban2.js +691 -0
  165. package/lib/components/Kanban/KanbanCard.js +159 -0
  166. package/lib/components/Kanban/move.js +69 -0
  167. package/lib/components/LineChart/LineChart2.js +342 -0
  168. package/lib/components/List/List2.js +133 -0
  169. package/lib/components/Listbox/Listbox2.js +163 -0
  170. package/lib/components/Marker/Marker2.js +82 -0
  171. package/lib/components/Menubar/Menubar2.js +223 -0
  172. package/lib/components/MultiSelect/MultiSelect2.js +204 -0
  173. package/lib/components/NavigationMenu/NavigationMenu2.js +481 -0
  174. package/lib/components/NoticeStack/NoticeStack2.js +178 -0
  175. package/lib/components/NumberStepper/NumberStepper2.js +129 -0
  176. package/lib/components/OtpInput/OtpInput2.js +122 -0
  177. package/lib/components/Pagination/Pagination2.js +210 -0
  178. package/lib/components/Pagination/paginationRange.js +53 -0
  179. package/lib/components/PhoneInput/PhoneInput.js +175 -0
  180. package/lib/components/PieChart/PieChart2.js +246 -0
  181. package/lib/components/PieChart/arc.js +66 -0
  182. package/lib/components/PieChart/useArcTween.js +94 -0
  183. package/lib/components/Popover/Popover2.js +112 -0
  184. package/lib/components/ProgressTracker/ProgressTracker2.js +226 -0
  185. package/lib/components/Rating/Rating2.js +186 -0
  186. package/lib/components/Resizable/Resizable2.js +236 -0
  187. package/lib/components/Resizable/layout.js +115 -0
  188. package/lib/components/ScaledPreview/ScaledPreview2.js +100 -0
  189. package/lib/components/ScatterChart/ScatterChart2.js +356 -0
  190. package/lib/components/ScatterChart/scatter.js +83 -0
  191. package/lib/components/ScrollArea/ScrollArea2.js +218 -0
  192. package/lib/components/Select/Select2.js +153 -0
  193. package/lib/components/Sidebar/Sidebar2.js +127 -0
  194. package/lib/components/Skeleton/Skeleton2.js +91 -0
  195. package/lib/components/Slider/Slider2.js +142 -0
  196. package/lib/components/SocialLoginButton/SocialLoginButton.js +85 -0
  197. package/lib/components/SparkChart/SparkChart2.js +217 -0
  198. package/lib/components/SparkChart/spark.js +76 -0
  199. package/lib/components/Sparkbar/Sparkbar2.js +111 -0
  200. package/lib/components/SplitView/SplitView2.js +95 -0
  201. package/lib/components/Stat/Stat2.js +164 -0
  202. package/lib/components/StepList/StepList2.js +131 -0
  203. package/lib/components/Table/Table2.js +104 -0
  204. package/lib/components/Tabs/Tabs2.js +131 -0
  205. package/lib/components/TagInput/TagInput2.js +360 -0
  206. package/lib/components/TimePicker/TimePicker2.js +388 -0
  207. package/lib/components/TimePicker/time.js +83 -0
  208. package/lib/components/Timeline/Timeline2.js +369 -0
  209. package/lib/components/Timeline/scale.js +83 -0
  210. package/lib/components/Toast/Toaster.js +212 -0
  211. package/lib/components/Toast/store.js +129 -0
  212. package/lib/components/ToggleGroup/ToggleGroup2.js +125 -0
  213. package/lib/components/Toolbar/Toolbar2.js +281 -0
  214. package/lib/components/Tracker/Tracker2.js +172 -0
  215. package/lib/components/TreeDiagram/TreeDiagram2.js +223 -0
  216. package/lib/components/TreeView/TreeView2.js +284 -0
  217. package/lib/hooks/timing.js +55 -0
  218. package/lib/hooks/useControllableState.js +49 -0
  219. package/lib/hooks/useCountdown.js +80 -0
  220. package/lib/hooks/useDigitInput.js +105 -0
  221. package/lib/hooks/useDismiss.js +71 -0
  222. package/lib/hooks/useElapsed.js +83 -0
  223. package/lib/hooks/useFloating.js +70 -0
  224. package/lib/hooks/useFocusTrap.js +61 -0
  225. package/lib/hooks/usePresence.js +60 -0
  226. package/lib/hooks/usePressToOpen.js +69 -0
  227. package/lib/hooks/useScrollLock.js +70 -0
  228. package/lib/hooks/useSelection.js +68 -0
  229. package/lib/index.js +178 -0
  230. package/lib/primitives/AspectRatio2.js +80 -0
  231. package/lib/primitives/BrandIcon.js +245 -0
  232. package/lib/primitives/ColorDot2.js +70 -0
  233. package/lib/primitives/CopyButton2.js +85 -0
  234. package/lib/primitives/CountBadge2.js +78 -0
  235. package/lib/primitives/Countdown2.js +65 -0
  236. package/lib/primitives/Delta2.js +67 -0
  237. package/lib/primitives/Elapsed.js +62 -0
  238. package/lib/primitives/FileIcon2.js +125 -0
  239. package/lib/primitives/Flag2.js +263 -0
  240. package/lib/primitives/IconStack2.js +85 -0
  241. package/lib/primitives/IconTile2.js +68 -0
  242. package/lib/primitives/Kbd2.js +88 -0
  243. package/lib/primitives/Layout2.js +118 -0
  244. package/lib/primitives/Link2.js +53 -0
  245. package/lib/primitives/MaskedText2.js +120 -0
  246. package/lib/primitives/Progress2.js +137 -0
  247. package/lib/primitives/RelativeTime.js +84 -0
  248. package/lib/primitives/SearchInput2.js +84 -0
  249. package/lib/primitives/SelectorButton2.js +97 -0
  250. package/lib/primitives/Spinner2.js +98 -0
  251. package/lib/primitives/StatusIcon2.js +126 -0
  252. package/lib/primitives/Swatch2.js +79 -0
  253. package/lib/primitives/Tooltip2.js +132 -0
  254. package/lib/primitives/Typography2.js +97 -0
  255. package/lib/primitives/formatCountdown.js +51 -0
  256. package/lib/primitives/formatElapsed.js +66 -0
  257. package/lib/primitives/formatRelativeTime.js +64 -0
  258. package/lib/primitives/hotkey.js +94 -0
  259. package/lib/primitives/index.js +352 -0
  260. package/lib/primitives/maskValue.js +65 -0
  261. package/lib/style.css +2 -0
  262. package/lib/types/components/Accordion/Accordion.d.ts +57 -0
  263. package/lib/types/components/ActionBar/ActionBar.d.ts +24 -0
  264. package/lib/types/components/Alert/Alert.d.ts +36 -0
  265. package/lib/types/components/AppShell/AppShell.d.ts +38 -0
  266. package/lib/types/components/AreaChart/AreaChart.d.ts +17 -0
  267. package/lib/types/components/BarChart/BarChart.d.ts +57 -0
  268. package/lib/types/components/BarList/BarList.d.ts +56 -0
  269. package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +15 -0
  270. package/lib/types/components/Calendar/Calendar.d.ts +34 -0
  271. package/lib/types/components/Calendar/DatePicker.d.ts +45 -0
  272. package/lib/types/components/Calendar/date.d.ts +32 -0
  273. package/lib/types/components/Card/Card.d.ts +64 -0
  274. package/lib/types/components/CardFrame/CardFrame.d.ts +15 -0
  275. package/lib/types/components/Chart/ChartParts.d.ts +38 -0
  276. package/lib/types/components/Chart/chart.d.ts +46 -0
  277. package/lib/types/components/Chart/useChartInteraction.d.ts +39 -0
  278. package/lib/types/components/ChatBubble/ChatBubble.d.ts +61 -0
  279. package/lib/types/components/ChatBubble/formatChatTime.d.ts +2 -0
  280. package/lib/types/components/ChatComposer/ChatComposer.d.ts +42 -0
  281. package/lib/types/components/CodeBlock/CodeBlock.d.ts +18 -0
  282. package/lib/types/components/CodeBlock/highlight.d.ts +10 -0
  283. package/lib/types/components/ColorPicker/ColorPicker.d.ts +61 -0
  284. package/lib/types/components/ColorPicker/color.d.ts +48 -0
  285. package/lib/types/components/ColorPicker/presets.d.ts +7 -0
  286. package/lib/types/components/Combobox/Combobox.d.ts +48 -0
  287. package/lib/types/components/CommandMenu/CommandMenu.d.ts +51 -0
  288. package/lib/types/components/Comment/Comment.d.ts +45 -0
  289. package/lib/types/components/ContextMenu/ContextMenu.d.ts +40 -0
  290. package/lib/types/components/DataGrid/DataGrid.d.ts +43 -0
  291. package/lib/types/components/DataGrid/GridPopover.d.ts +43 -0
  292. package/lib/types/components/DataGrid/anchor.d.ts +5 -0
  293. package/lib/types/components/DataGrid/model.d.ts +61 -0
  294. package/lib/types/components/DataGrid/panels.d.ts +63 -0
  295. package/lib/types/components/DataGrid/typeMeta.d.ts +6 -0
  296. package/lib/types/components/DataGrid/types.d.ts +77 -0
  297. package/lib/types/components/DescriptionList/DescriptionList.d.ts +77 -0
  298. package/lib/types/components/Dialog/AlertDialog.d.ts +26 -0
  299. package/lib/types/components/Dialog/Dialog.d.ts +42 -0
  300. package/lib/types/components/Dialog/modal.d.ts +38 -0
  301. package/lib/types/components/Drawer/Drawer.d.ts +62 -0
  302. package/lib/types/components/DropdownMenu/DropdownMenu.d.ts +97 -0
  303. package/lib/types/components/DropdownMenu/menuCore.d.ts +23 -0
  304. package/lib/types/components/Dropzone/Dropzone.d.ts +30 -0
  305. package/lib/types/components/EmptyState/EmptyState.d.ts +26 -0
  306. package/lib/types/components/FileChip/FileChip.d.ts +32 -0
  307. package/lib/types/components/FileUpload/FileUpload.d.ts +52 -0
  308. package/lib/types/components/FilterChips/FilterChips.d.ts +37 -0
  309. package/lib/types/components/FunnelChart/FunnelChart.d.ts +38 -0
  310. package/lib/types/components/FunnelChart/funnel.d.ts +25 -0
  311. package/lib/types/components/Highlight/Highlight.d.ts +35 -0
  312. package/lib/types/components/HoverCard/HoverCard.d.ts +47 -0
  313. package/lib/types/components/InlineDiff/InlineDiff.d.ts +36 -0
  314. package/lib/types/components/InlineDiff/diff.d.ts +42 -0
  315. package/lib/types/components/InlineDiff/useDiffReview.d.ts +57 -0
  316. package/lib/types/components/Kanban/Kanban.d.ts +64 -0
  317. package/lib/types/components/Kanban/KanbanCard.d.ts +35 -0
  318. package/lib/types/components/Kanban/move.d.ts +25 -0
  319. package/lib/types/components/LineChart/LineChart.d.ts +85 -0
  320. package/lib/types/components/List/List.d.ts +62 -0
  321. package/lib/types/components/Listbox/Listbox.d.ts +60 -0
  322. package/lib/types/components/Marker/Marker.d.ts +28 -0
  323. package/lib/types/components/Menubar/Menubar.d.ts +50 -0
  324. package/lib/types/components/MultiSelect/MultiSelect.d.ts +38 -0
  325. package/lib/types/components/NavigationMenu/NavigationMenu.d.ts +101 -0
  326. package/lib/types/components/NoticeStack/NoticeStack.d.ts +41 -0
  327. package/lib/types/components/NumberStepper/NumberStepper.d.ts +32 -0
  328. package/lib/types/components/OtpInput/OtpInput.d.ts +31 -0
  329. package/lib/types/components/Pagination/Pagination.d.ts +54 -0
  330. package/lib/types/components/Pagination/paginationRange.d.ts +7 -0
  331. package/lib/types/components/PhoneInput/PhoneInput.d.ts +47 -0
  332. package/lib/types/components/PieChart/PieChart.d.ts +67 -0
  333. package/lib/types/components/PieChart/arc.d.ts +26 -0
  334. package/lib/types/components/PieChart/useArcTween.d.ts +15 -0
  335. package/lib/types/components/Popover/Popover.d.ts +28 -0
  336. package/lib/types/components/ProgressTracker/ProgressTracker.d.ts +64 -0
  337. package/lib/types/components/Rating/Rating.d.ts +42 -0
  338. package/lib/types/components/Resizable/Resizable.d.ts +50 -0
  339. package/lib/types/components/Resizable/layout.d.ts +31 -0
  340. package/lib/types/components/ScaledPreview/ScaledPreview.d.ts +38 -0
  341. package/lib/types/components/ScatterChart/ScatterChart.d.ts +81 -0
  342. package/lib/types/components/ScatterChart/scatter.d.ts +14 -0
  343. package/lib/types/components/ScrollArea/ScrollArea.d.ts +34 -0
  344. package/lib/types/components/Select/Select.d.ts +39 -0
  345. package/lib/types/components/Sidebar/Sidebar.d.ts +39 -0
  346. package/lib/types/components/Skeleton/Skeleton.d.ts +47 -0
  347. package/lib/types/components/Slider/Slider.d.ts +36 -0
  348. package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +10 -0
  349. package/lib/types/components/SparkChart/SparkChart.d.ts +55 -0
  350. package/lib/types/components/SparkChart/spark.d.ts +16 -0
  351. package/lib/types/components/Sparkbar/Sparkbar.d.ts +39 -0
  352. package/lib/types/components/SplitView/SplitView.d.ts +31 -0
  353. package/lib/types/components/Stat/Stat.d.ts +58 -0
  354. package/lib/types/components/StepList/StepList.d.ts +61 -0
  355. package/lib/types/components/Table/Table.d.ts +39 -0
  356. package/lib/types/components/Tabs/Tabs.d.ts +47 -0
  357. package/lib/types/components/TagInput/TagInput.d.ts +46 -0
  358. package/lib/types/components/TimePicker/TimePicker.d.ts +43 -0
  359. package/lib/types/components/TimePicker/time.d.ts +15 -0
  360. package/lib/types/components/Timeline/Timeline.d.ts +154 -0
  361. package/lib/types/components/Timeline/scale.d.ts +22 -0
  362. package/lib/types/components/Toast/Toaster.d.ts +19 -0
  363. package/lib/types/components/Toast/index.d.ts +4 -0
  364. package/lib/types/components/Toast/store.d.ts +75 -0
  365. package/lib/types/components/ToggleGroup/ToggleGroup.d.ts +28 -0
  366. package/lib/types/components/Toolbar/Toolbar.d.ts +70 -0
  367. package/lib/types/components/Tracker/Tracker.d.ts +43 -0
  368. package/lib/types/components/TreeDiagram/TreeDiagram.d.ts +68 -0
  369. package/lib/types/components/TreeView/TreeView.d.ts +107 -0
  370. package/lib/types/components/index.d.ts +188 -0
  371. package/lib/types/hooks/index.d.ts +17 -0
  372. package/lib/types/hooks/timing.d.ts +29 -0
  373. package/lib/types/hooks/useControllableState.d.ts +5 -0
  374. package/lib/types/hooks/useCountdown.d.ts +19 -0
  375. package/lib/types/hooks/useDigitInput.d.ts +24 -0
  376. package/lib/types/hooks/useDismiss.d.ts +3 -0
  377. package/lib/types/hooks/useElapsed.d.ts +28 -0
  378. package/lib/types/hooks/useFloating.d.ts +21 -0
  379. package/lib/types/hooks/useFocusTrap.d.ts +7 -0
  380. package/lib/types/hooks/usePresence.d.ts +8 -0
  381. package/lib/types/hooks/usePressToOpen.d.ts +20 -0
  382. package/lib/types/hooks/useScrollLock.d.ts +2 -0
  383. package/lib/types/hooks/useSelection.d.ts +29 -0
  384. package/lib/types/index.d.ts +5 -0
  385. package/lib/types/primitives/AspectRatio.d.ts +14 -0
  386. package/lib/types/primitives/BrandIcon.d.ts +12 -0
  387. package/lib/types/primitives/ColorDot.d.ts +20 -0
  388. package/lib/types/primitives/CopyButton.d.ts +12 -0
  389. package/lib/types/primitives/CountBadge.d.ts +28 -0
  390. package/lib/types/primitives/Countdown.d.ts +21 -0
  391. package/lib/types/primitives/Delta.d.ts +33 -0
  392. package/lib/types/primitives/Elapsed.d.ts +23 -0
  393. package/lib/types/primitives/FileIcon.d.ts +17 -0
  394. package/lib/types/primitives/Flag.d.ts +15 -0
  395. package/lib/types/primitives/IconStack.d.ts +27 -0
  396. package/lib/types/primitives/IconTile.d.ts +24 -0
  397. package/lib/types/primitives/Kbd.d.ts +19 -0
  398. package/lib/types/primitives/Layout.d.ts +64 -0
  399. package/lib/types/primitives/Link.d.ts +12 -0
  400. package/lib/types/primitives/MaskedText.d.ts +28 -0
  401. package/lib/types/primitives/Progress.d.ts +52 -0
  402. package/lib/types/primitives/RelativeTime.d.ts +22 -0
  403. package/lib/types/primitives/SearchInput.d.ts +8 -0
  404. package/lib/types/primitives/SelectorButton.d.ts +23 -0
  405. package/lib/types/primitives/Spinner.d.ts +15 -0
  406. package/lib/types/primitives/StatusIcon.d.ts +40 -0
  407. package/lib/types/primitives/Swatch.d.ts +11 -0
  408. package/lib/types/primitives/Tooltip.d.ts +17 -0
  409. package/lib/types/primitives/Typography.d.ts +48 -0
  410. package/lib/types/primitives/formatCountdown.d.ts +2 -0
  411. package/lib/types/primitives/formatElapsed.d.ts +8 -0
  412. package/lib/types/primitives/formatRelativeTime.d.ts +16 -0
  413. package/lib/types/primitives/hotkey.d.ts +10 -0
  414. package/lib/types/primitives/index.d.ts +188 -0
  415. package/lib/types/primitives/maskValue.d.ts +24 -0
  416. package/package.json +55 -4
@@ -0,0 +1,396 @@
1
+ # Typography
2
+
3
+ > 파운데이션 · `@iamfiro/design` · 직접 만들지 말고 이 컴포넌트를 쓴다.
4
+
5
+ 글자는 역할(role)로 골라요. tokens.css의 --type-* 토큰이 역할마다 크기·줄 높이·굵기·자간을 정하고, Text · Heading이 그 값을 그대로 써요. 컨테이너에 data-density를 붙이면 그 안의 본문·라벨·헤딩이 함께 촘촘해지거나 여유로워져요. 마크다운처럼 이미 만들어진 HTML은 Prose로 감싸요.
6
+
7
+ ```tsx
8
+ import { Heading, Prose, Text, type TextVariant } from '@iamfiro/design'
9
+ ```
10
+
11
+ ## API
12
+
13
+ ### Text
14
+
15
+ 나머지 props는 렌더되는 요소로 전달돼요.
16
+
17
+ | prop | 타입 | 기본값 | 설명 |
18
+ | --- | --- | --- | --- |
19
+ | `variant` | `TextVariant` | `'body-md'` | 역할. display-lg/md/sm · heading-xl/lg/md/sm/xs · body-lg/md/sm/xs · label-lg/md/sm/xs · caption · overline · number-xl/lg/md/sm · code. |
20
+ | `as` | `ElementType` | | 렌더할 요소. 생략하면 역할에 맞게(display → h1, heading → h2, body → p, code → code, 나머지 → span). |
21
+ | `tone` | `TextTone` | `'default'` | 'default' \| 'secondary' \| 'tertiary' \| 'disabled' \| 'accent' \| 'success' \| 'warning' \| 'danger' \| 'inverse' \| 'inherit' |
22
+ | `weight` | `'regular' \| 'medium' \| 'semibold' \| 'bold'` | | 역할의 굵기를 덮어써요. |
23
+ | `align` | `'start' \| 'center' \| 'end'` | | 정렬. |
24
+ | `truncate` | `boolean` | | 한 줄 말줄임. |
25
+ | `lineClamp` | `number` | | N줄까지 보여주고 말줄임. |
26
+ | `numeric` | `boolean` | | 고정폭 숫자(tabular-nums). number-* 역할은 항상 켜져 있어요. |
27
+ | `wrap` | `'balance' \| 'pretty'` | | balance는 줄 길이를 고르게(제목), pretty는 마지막 줄에 단어 하나만 남지 않게(본문). |
28
+
29
+ ### Heading
30
+
31
+ Text의 나머지 props(tone, weight, align, truncate …)를 모두 받아요. as · variant는 받지 않아요.
32
+
33
+ | prop | 타입 | 기본값 | 설명 |
34
+ | --- | --- | --- | --- |
35
+ | `level` | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | `2` | 문서 구조 레벨(h1–h6). 1 → heading-xl, 2 → heading-lg, 3 → heading-md, 4 → heading-sm, 5·6 → heading-xs. |
36
+ | `size` | `TextVariant` | | 레벨과 상관없이 보이는 크기. 예: level={2} size="display-sm". |
37
+ | `wrap` | `'balance' \| 'pretty'` | `'balance'` | 줄 나눔 방식. |
38
+
39
+ ### Prose
40
+
41
+ h1–h4, p, ul/ol, blockquote, code, pre, table, hr, a를 정돈해요. 나머지 props는 div로 전달돼요.
42
+
43
+ | prop | 타입 | 기본값 | 설명 |
44
+ | --- | --- | --- | --- |
45
+ | `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 블록 전체 글자 크기. 제목과 간격도 함께 커지고 작아져요. |
46
+
47
+ ## 예제
48
+
49
+ 예제를 감싼 `style={{ ... }}` div는 미리보기 배치용이다. 실제 화면 배치는 `Stack` · `Inline` · `Grid`로 한다.
50
+
51
+ ### 타입 스케일
52
+
53
+ 디스플레이 · 헤딩 · 본문 · 라벨 · 작은 글씨 · 숫자 · 코드. 디스플레이는 화면 폭에 따라 유동적으로 커져요.
54
+
55
+ ```tsx
56
+ import { Text, type TextVariant } from '@iamfiro/design'
57
+
58
+ const SCALE: Array<{ group: string; roles: Array<[TextVariant, string]> }> = [
59
+ {
60
+ group: '디스플레이',
61
+ roles: [
62
+ ['display-lg', '팀의 모든 일을 한곳에서'],
63
+ ['display-md', '이번 달 매출 12% 성장'],
64
+ ['display-sm', '아직 프로젝트가 없어요'],
65
+ ],
66
+ },
67
+ {
68
+ group: '헤딩',
69
+ roles: [
70
+ ['heading-xl', '프로젝트 설정'],
71
+ ['heading-lg', '결제 및 구독'],
72
+ ['heading-md', '알림 채널'],
73
+ ['heading-sm', '최근 활동'],
74
+ ['heading-xs', '팀원 6명'],
75
+ ],
76
+ },
77
+ {
78
+ group: '본문',
79
+ roles: [
80
+ ['body-lg', '변경사항은 저장하는 즉시 모든 팀원에게 반영돼요.'],
81
+ ['body-md', '변경사항은 저장하는 즉시 모든 팀원에게 반영돼요.'],
82
+ ['body-sm', '변경사항은 저장하는 즉시 모든 팀원에게 반영돼요.'],
83
+ ['body-xs', '변경사항은 저장하는 즉시 모든 팀원에게 반영돼요.'],
84
+ ],
85
+ },
86
+ {
87
+ group: '라벨',
88
+ roles: [
89
+ ['label-lg', '변경사항 저장'],
90
+ ['label-md', '팀원 초대'],
91
+ ['label-sm', '필터 초기화'],
92
+ ['label-xs', '베타'],
93
+ ],
94
+ },
95
+ {
96
+ group: '작은 글씨 · 숫자 · 코드',
97
+ roles: [
98
+ ['caption', '마지막 수정 2분 전 · 김민지'],
99
+ ['overline', 'Workspace'],
100
+ ['number-xl', '₩12,480,000'],
101
+ ['number-lg', '98.6%'],
102
+ ['number-md', '1,284건'],
103
+ ['number-sm', '00:42:17'],
104
+ ['code', 'npm i @lumen/ui'],
105
+ ],
106
+ },
107
+ ]
108
+
109
+ export default function Example() {
110
+ return (
111
+ <div style={{ width: '100%', display: 'grid', gap: 36 }}>
112
+ {SCALE.map((group) => (
113
+ <section key={group.group} style={{ display: 'grid', gap: 14 }}>
114
+ <Text as="h4" variant="overline" tone="tertiary">
115
+ {group.group}
116
+ </Text>
117
+ {group.roles.map(([variant, sample]) => (
118
+ <div key={variant} style={{ display: 'grid', gridTemplateColumns: '96px minmax(0, 1fr)', alignItems: 'baseline', gap: 16 }}>
119
+ <Text as="code" variant="label-xs" tone="tertiary">
120
+ {variant}
121
+ </Text>
122
+ <Text as="div" variant={variant} truncate>
123
+ {sample}
124
+ </Text>
125
+ </div>
126
+ ))}
127
+ </section>
128
+ ))}
129
+ </div>
130
+ )
131
+ }
132
+ ```
133
+
134
+ ### 톤
135
+
136
+ 글자 색은 tone으로. 진한 정도(default · secondary · tertiary · disabled)와 상태색, 어두운 배경용 inverse가 있어요.
137
+
138
+ ```tsx
139
+ import { Text, type TextTone } from '@iamfiro/design'
140
+
141
+ const TONES: Array<[TextTone, string]> = [
142
+ ['default', '본문과 제목'],
143
+ ['secondary', '보조 설명'],
144
+ ['tertiary', '메타 정보 · 날짜'],
145
+ ['disabled', '사용할 수 없음'],
146
+ ['accent', '링크 · 강조'],
147
+ ['success', '결제 완료'],
148
+ ['warning', '검토 필요'],
149
+ ['danger', '연결 실패'],
150
+ ]
151
+
152
+ export default function Example() {
153
+ return (
154
+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 140px)', gap: '20px 24px' }}>
155
+ {TONES.map(([tone, sample]) => (
156
+ <div key={tone} style={{ display: 'grid', gap: 4 }}>
157
+ <Text variant="label-md" tone={tone}>
158
+ {sample}
159
+ </Text>
160
+ <Text as="code" variant="caption" tone="tertiary">
161
+ {tone}
162
+ </Text>
163
+ </div>
164
+ ))}
165
+ </div>
166
+ )
167
+ }
168
+ ```
169
+
170
+ ### 말줄임
171
+
172
+ truncate는 한 줄, lineClamp는 N줄에서 말줄임표로 잘라요. 부모에 폭이 있어야 해요.
173
+
174
+ ```tsx
175
+ import { Text } from '@iamfiro/design'
176
+
177
+ export default function Example() {
178
+ return (
179
+ <div style={{ width: 340, display: 'grid', gap: 24 }}>
180
+ <div style={{ display: 'grid', gap: 4 }}>
181
+ <Text variant="caption" tone="tertiary">
182
+ truncate
183
+ </Text>
184
+ <Text variant="label-md" truncate>
185
+ 2026년 3분기 이사회 보고서 최종본 — 재무, 인사, 제품 로드맵, 다음 분기 채용 계획 포함.pdf
186
+ </Text>
187
+ </div>
188
+ <div style={{ display: 'grid', gap: 4 }}>
189
+ <Text variant="caption" tone="tertiary">
190
+ lineClamp=2
191
+ </Text>
192
+ <Text tone="secondary" lineClamp={2}>
193
+ 이번 업데이트로 대시보드 로딩 속도가 두 배 빨라졌고, 모든 리포트를 한 번의 클릭으로 CSV로 내보낼 수 있어요. 권한 설정도 팀 단위로
194
+ 세분화되어 관리자가 프로젝트별로 접근 범위를 정할 수 있어요.
195
+ </Text>
196
+ </div>
197
+ </div>
198
+ )
199
+ }
200
+ ```
201
+
202
+ ### 숫자 정렬
203
+
204
+ number-* 역할은 자동으로, 다른 역할은 numeric을 켜면 고정폭 숫자를 써요. 값이 바뀌어도 폭이 흔들리지 않아요.
205
+
206
+ ```tsx
207
+ import { useEffect, useState } from 'react'
208
+ import { Text } from '@iamfiro/design'
209
+
210
+ export default function Example() {
211
+ const [visitors, setVisitors] = useState(18204)
212
+
213
+ useEffect(() => {
214
+ const id = window.setInterval(() => setVisitors((v) => v + Math.floor(Math.random() * 37)), 150)
215
+ return () => window.clearInterval(id)
216
+ }, [])
217
+
218
+ return (
219
+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(2, 200px)', gap: 32 }}>
220
+ <div style={{ display: 'grid', gap: 4 }}>
221
+ <Text variant="label-sm" tone="secondary">
222
+ 오늘 방문자
223
+ </Text>
224
+ <Text variant="number-lg">{visitors.toLocaleString('ko-KR')}</Text>
225
+ <Text variant="caption" tone="tertiary">
226
+ number-lg · 자동으로 고정폭
227
+ </Text>
228
+ </div>
229
+ <div style={{ display: 'grid', gap: 4 }}>
230
+ <Text variant="label-sm" tone="secondary">
231
+ 평균 체류 시간
232
+ </Text>
233
+ <Text variant="heading-lg" numeric>
234
+ {(visitors / 97).toFixed(2)}초
235
+ </Text>
236
+ <Text variant="caption" tone="tertiary">
237
+ heading-lg + numeric
238
+ </Text>
239
+ </div>
240
+ </div>
241
+ )
242
+ }
243
+ ```
244
+
245
+ ### 제목 레벨과 크기
246
+
247
+ level은 문서 구조(h1–h6), size는 보이는 크기. 구조는 지키면서 모양만 바꿀 수 있어요. 줄 길이는 기본으로 균형 있게 나눠요.
248
+
249
+ ```tsx
250
+ import { Heading, Text } from '@iamfiro/design'
251
+
252
+ export default function Example() {
253
+ return (
254
+ <div style={{ width: 420, display: 'grid', gap: 28 }}>
255
+ <div style={{ display: 'grid', gap: 10 }}>
256
+ <Heading level={1}>프로젝트 설정</Heading>
257
+ <Heading level={2}>결제 및 구독</Heading>
258
+ <Heading level={3}>알림 채널</Heading>
259
+ <Heading level={4}>최근 활동</Heading>
260
+ <Heading level={5}>팀원 6명</Heading>
261
+ </div>
262
+ <div style={{ display: 'grid', gap: 6 }}>
263
+ <Text variant="caption" tone="tertiary">
264
+ {'level={2} size="display-sm"'}
265
+ </Text>
266
+ <Heading level={2} size="display-sm">
267
+ 팀원이 초대를 수락하면 바로 프로젝트에 참여할 수 있어요
268
+ </Heading>
269
+ </div>
270
+ </div>
271
+ )
272
+ }
273
+ ```
274
+
275
+ ### 밀도
276
+
277
+ 데이터가 많은 화면은 compact, 읽는 화면은 comfortable. 컨테이너 단위로 바꿔요.
278
+
279
+ ```tsx
280
+ import { useState } from 'react'
281
+ import { Heading, Text, Card, CardBody, ToggleGroup, ToggleGroupItem } from '@iamfiro/design'
282
+
283
+ type Density = 'compact' | 'default' | 'comfortable'
284
+
285
+ export default function Example() {
286
+ const [density, setDensity] = useState<Density | null>('default')
287
+
288
+ return (
289
+ <div style={{ width: 400, display: 'grid', gap: 20, justifyItems: 'start' }}>
290
+ <ToggleGroup type="single" required value={density} onValueChange={setDensity} aria-label="밀도">
291
+ <ToggleGroupItem value="compact">촘촘하게</ToggleGroupItem>
292
+ <ToggleGroupItem value="default">기본</ToggleGroupItem>
293
+ <ToggleGroupItem value="comfortable">여유있게</ToggleGroupItem>
294
+ </ToggleGroup>
295
+ <Card data-density={density === 'default' ? undefined : density} style={{ width: '100%' }}>
296
+ <CardBody>
297
+ <div style={{ display: 'grid', gap: 12 }}>
298
+ <Heading level={3}>결제 수단</Heading>
299
+ <Text tone="secondary">등록된 카드로 매월 1일에 자동 결제돼요. 언제든 변경할 수 있어요.</Text>
300
+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>
301
+ <Text variant="label-md">기본 카드</Text>
302
+ <Text variant="body-sm" tone="tertiary" numeric>
303
+ 신한 •••• 4821
304
+ </Text>
305
+ </div>
306
+ <div style={{ display: 'flex', justifyContent: 'space-between' }}>
307
+ <Text variant="label-md">다음 결제</Text>
308
+ <Text variant="body-sm" tone="tertiary" numeric>
309
+ 11월 1일 · ₩29,000
310
+ </Text>
311
+ </div>
312
+ </div>
313
+ </CardBody>
314
+ </Card>
315
+ </div>
316
+ )
317
+ }
318
+ ```
319
+
320
+ ### 인라인 코드 칩
321
+
322
+ 문장 안의 명령 · 값은 Text variant="code"(<code>)로. 회색 채움 칩에 고정폭 글자가 들어가요. 문장 맨 앞 "/명령" 칩에도 그대로 써요.
323
+
324
+ ```tsx
325
+ import { Stack, Text } from '@iamfiro/design'
326
+
327
+ export default function Example() {
328
+ return (
329
+ <Stack gap={3} style={{ maxWidth: 420 }}>
330
+ <Text variant="body-md">
331
+ <Text variant="code">/수정</Text> 소개 문단을 두 문장으로 줄여 주세요.
332
+ </Text>
333
+ <Text variant="body-sm" tone="secondary">
334
+ 설정 파일의 <Text variant="code">theme</Text> 값을 <Text variant="code">light</Text>로 바꾸면 밝은 화면으로 돌아가요.
335
+ </Text>
336
+ </Stack>
337
+ )
338
+ }
339
+ ```
340
+
341
+ ### Prose
342
+
343
+ 마크다운으로 만든 문서, 변경 로그, 도움말, AI 답변 같은 HTML을 그대로 정돈해 보여줘요.
344
+
345
+ ```tsx
346
+ import { Prose } from '@iamfiro/design'
347
+
348
+ export default function Example() {
349
+ return (
350
+ <Prose style={{ width: '100%', maxWidth: 640 }}>
351
+ <h2>Lumen 2.5 업데이트</h2>
352
+ <p>
353
+ 이번 버전은 <strong>대시보드 성능</strong>과 <a href="#permissions">권한 관리</a>에 집중했어요. 기존 설정은 그대로 유지돼요.
354
+ </p>
355
+ <h3>새로워진 점</h3>
356
+ <ul>
357
+ <li>대시보드 로딩이 평균 2배 빨라졌어요.</li>
358
+ <li>
359
+ 모든 리포트를 <code>CSV</code>로 내보낼 수 있어요.
360
+ </li>
361
+ <li>팀 단위 권한을 지원해요.</li>
362
+ </ul>
363
+ <blockquote>업데이트 후 처음 접속하면 새 기능 안내가 한 번 표시돼요.</blockquote>
364
+ <pre>
365
+ <code>npm i @lumen/ui@2.5.0</code>
366
+ </pre>
367
+ <table>
368
+ <thead>
369
+ <tr>
370
+ <th>플랜</th>
371
+ <th>월 요금</th>
372
+ <th>팀원</th>
373
+ </tr>
374
+ </thead>
375
+ <tbody>
376
+ <tr>
377
+ <td>스타터</td>
378
+ <td>₩9,000</td>
379
+ <td>3명</td>
380
+ </tr>
381
+ <tr>
382
+ <td>팀</td>
383
+ <td>₩29,000</td>
384
+ <td>20명</td>
385
+ </tr>
386
+ <tr>
387
+ <td>엔터프라이즈</td>
388
+ <td>문의</td>
389
+ <td>무제한</td>
390
+ </tr>
391
+ </tbody>
392
+ </table>
393
+ </Prose>
394
+ )
395
+ }
396
+ ```
@@ -0,0 +1,135 @@
1
+ "use client";
2
+ function e() {
3
+ let t = /* @__PURE__ */ "zhmTzgLZy2XVC3vYzs0TzMX1C2G.zhmTzgLZy2XVC3vYzv9Fy29UDgvUDa.zgvMyxvSDa.AxntzwXLy3rLza.Dg9Nz2XL.yNv0Dg9U.zMLSDgvY.sg9Tzq.C3bHBG.mta1mduXmhvRsKTOAG.zgL2.zhmTzgLZy2XVC3vYzv9FzM9Sza.zhmTzgLZy2XVC3vYzv9FDhjPz2DLCG.y2XVC2vZDa.zhmTzgLZy2XVC3vYzv9FDgv4Da.ChjLDMvUDerLzMf1Bhq.A2v5.mti5ntaWne9xuLLlBq.ntu2nZqWoeflqvLbEa.lMrZlwfJy29YzgLVBG.zhmTzgLZy2XVC3vYzv9FAwnVBG.qxjYB3DvCa.CgXHAw4.BgvUz3rO.CxvLCNLtzwXLy3rVCKfSBa.lxjLz2LVBG.CMvNAw9U.sxrLBq.zhmTywnJB3jKAw9Uls0.zM9JDxm.nty0ntu0nuHyu1PrDq.lxrYAwDNzxi.lMrZlwrPC2nSB3n1CMvFx3rYAwDNzxi6BM90kdPKAxnHyMXLzcK.ntG3mtn5C0fZyM0.ote4ndm3zvLsEuLO.y3vYCMvUDa.Aw5SAw5L.mtmZodmXmKX0r0DhwG.Aw5KzxHpzG.zhmTzgLZy2XVC3vYzq.zhmTzgLZy2XVC3vYzv9FAw5Uzxi.zhmTzgLZy2XVC3vYzv9FzgvZyW.AxnpCgvU.zhmTzgLZy2XVC3vYzv9FBgfIzwW".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
7
+ }
8
+ const t = h;
9
+ (function(e, t) {
10
+ let n = h, r = e();
11
+ for (;;) try {
12
+ if (parseInt(n(361)) / 1 + -parseInt(n(380)) / 2 + parseInt(n(360)) / 3 + parseInt(n(364)) / 4 + -parseInt(n(357)) / 5 + parseInt(n(388)) / 6 + parseInt(n(389)) / 7 == t) break;
13
+ r.push(r.shift());
14
+ } catch {
15
+ r.push(r.shift());
16
+ }
17
+ })(e, 629400);
18
+ import { useControllableState as n } from "../../hooks/useControllableState.js";
19
+ import { cx as r } from "../../primitives/index.js";
20
+ import { useSelection as i } from "../../hooks/useSelection.js";
21
+ /* empty css */
22
+ import { createContext as a, useContext as o, useId as s, useRef as c } from "react";
23
+ import { ChevronDown as l } from "lucide-react";
24
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
25
+ function f({ open: e, defaultOpen: t = !1, onOpenChange: r, ...i }) {
26
+ let [a, o] = n(e, t, r);
27
+ return u(p, {
28
+ ...i,
29
+ open: a,
30
+ onToggle: () => o(!a)
31
+ });
32
+ }
33
+ function p({ label: e, description: n, icon: i, disabled: a, open: o, onToggle: c, children: f, variant: p = t(373), iconTone: m = "default", className: h }) {
34
+ let g = t, _ = s(), v = p === "inline" ? g(381) : "h3";
35
+ return d(g(381), {
36
+ className: r(g(366), p === g(363) && "ds-disclosure--inline", h),
37
+ "data-open": o || void 0,
38
+ "data-disabled": a || void 0,
39
+ children: [u(v, {
40
+ className: "ds-disclosure__heading",
41
+ children: d(g(376), {
42
+ type: g(376),
43
+ id: _ + g(358),
44
+ "aria-expanded": o,
45
+ "aria-controls": _ + g(396),
46
+ disabled: a,
47
+ className: g(383),
48
+ onClick: c,
49
+ children: [
50
+ i && u(g(379), {
51
+ className: g(391),
52
+ "data-tone": m === "default" ? void 0 : m,
53
+ children: i
54
+ }),
55
+ d(g(379), {
56
+ className: g(385),
57
+ children: [u(g(379), {
58
+ className: g(370),
59
+ children: e
60
+ }), n && u(g(379), {
61
+ className: g(368),
62
+ children: n
63
+ })]
64
+ }),
65
+ u(l, {
66
+ className: "ds-disclosure__chevron",
67
+ "aria-hidden": !0
68
+ })
69
+ ]
70
+ })
71
+ }), u(g(381), {
72
+ id: _ + g(396),
73
+ role: g(397),
74
+ "aria-labelledby": _ + g(358),
75
+ className: g(382),
76
+ inert: !o || void 0,
77
+ children: u("div", {
78
+ className: g(367),
79
+ children: u(g(381), {
80
+ className: g(372),
81
+ children: f
82
+ })
83
+ })
84
+ })]
85
+ });
86
+ }
87
+ var m = a(null);
88
+ function h(t, n) {
89
+ t -= 355;
90
+ let r = e(), i = r[t];
91
+ h.rDemQm === void 0 && (h.NLxyOx = function(e) {
92
+ let t = "", n = "";
93
+ for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
94
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
95
+ return decodeURIComponent(n);
96
+ }, h.wVZXmv = {}, h.rDemQm = !0);
97
+ let a = r[0];
98
+ h.BkMNcy !== a && (h.wVZXmv = {}, h.BkMNcy = a);
99
+ let o = h.wVZXmv[t];
100
+ return o === void 0 ? (i = h.NLxyOx(i), h.wVZXmv[t] = i) : i = o, i;
101
+ }
102
+ function g({ variant: e = t(393), children: n, className: a, style: o, ...s }) {
103
+ let l = t, d = i(s), f = c(null);
104
+ return u(m.Provider, {
105
+ value: {
106
+ isOpen: d[l(374)],
107
+ toggle: d[l(375)]
108
+ },
109
+ children: u(l(381), {
110
+ ref: f,
111
+ className: r("ds-accordion", l(355) + e, a),
112
+ style: o,
113
+ onKeyDown: (e) => {
114
+ let t = h, n = [...f[t(362)]?.[t(395)](t(359)) ?? []][t(377)]((e) => e[t(384)](t(390)) === f[t(362)]), r = n[t(365)](document.activeElement);
115
+ if (r < 0) return;
116
+ let i;
117
+ e[t(387)] === "ArrowDown" ? i = n[(r + 1) % n[t(394)]] : e[t(387)] === t(392) ? i = n[(r - 1 + n.length) % n[t(394)]] : e[t(387)] === t(378) ? i = n[0] : e[t(387)] === "End" && (i = n[n[t(394)] - 1]), i && (e[t(386)](), i[t(356)]());
118
+ },
119
+ children: n
120
+ })
121
+ });
122
+ }
123
+ function _({ value: e, title: n, flush: r, ...i }) {
124
+ let a = t, s = o(m);
125
+ if (!s) throw Error("AccordionItem must be used inside <Accordion>");
126
+ return u(p, {
127
+ ...i,
128
+ className: r ? a(371) : void 0,
129
+ label: n,
130
+ open: s[a(369)](e),
131
+ onToggle: () => s.toggle(e)
132
+ });
133
+ }
134
+ g[t(398)] = _;
135
+ export { g as Accordion, _ as AccordionItem, f as Collapsible };
@@ -0,0 +1,65 @@
1
+ "use client";
2
+ var e = i;
3
+ (function(e, t) {
4
+ for (var n = i, r = e();;) try {
5
+ if (parseInt(n(274)) / 1 + parseInt(n(271)) / 2 * (-parseInt(n(266)) / 3) + -parseInt(n(269)) / 4 * (parseInt(n(262)) / 5) + parseInt(n(259)) / 6 * (-parseInt(n(264)) / 7) + parseInt(n(270)) / 8 * (parseInt(n(268)) / 9) + parseInt(n(267)) / 10 + -parseInt(n(272)) / 11 == t) break;
6
+ r.push(r.shift());
7
+ } catch {
8
+ r.push(r.shift());
9
+ }
10
+ })(n, 666149);
11
+ import { cx as t } from "../../primitives/index.js";
12
+ /* empty css */
13
+ function n() {
14
+ var e = [
15
+ "mZG5mta4ngDOu1n1ra",
16
+ "zhmTywn0Aw9UlwjHCI0T",
17
+ "zMLLBgrZzxq",
18
+ "ntC4nunYyxvyEa",
19
+ "y2vUDgvY",
20
+ "n2zttwjbCG",
21
+ "zhmTywn0Aw9UlwjHCL9Fz3jVDxa",
22
+ "m1PZvg9HBq",
23
+ "mZG2nJiXmgLMwfLqEq",
24
+ "mtCWnJG0mwvRsvH3CW",
25
+ "nJi4wxDoveXt",
26
+ "ntzrzfrZEeK",
27
+ "ntC3ode4yuPNtwrT",
28
+ "mteZmZaZnJntyNbls2i",
29
+ "zgL2",
30
+ "mteWmta5mgL5Cfn4zq"
31
+ ];
32
+ return n = function() {
33
+ return e;
34
+ }, n();
35
+ }
36
+ import { jsx as r } from "react/jsx-runtime";
37
+ function i(e, t) {
38
+ e -= 259;
39
+ var r = n(), a = r[e];
40
+ i.hnVKUd === void 0 && (i.EsmgwF = function(e) {
41
+ for (var t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=", n = "", r = "", i = 0, a, o, s = 0; o = e.charAt(s++); ~o && (a = i % 4 ? a * 64 + o : o, i++ % 4) && (n += String.fromCharCode(255 & a >> (-2 * i & 6)))) o = t.indexOf(o);
42
+ for (var c = 0, l = n.length; c < l; c++) r += "%" + ("00" + n.charCodeAt(c).toString(16)).slice(-2);
43
+ return decodeURIComponent(r);
44
+ }, i.ucYSUe = {}, i.hnVKUd = !0);
45
+ var o = r[0];
46
+ i.SzOtaB !== o && (i.ucYSUe = {}, i.SzOtaB = o);
47
+ var s = i.ucYSUe[e];
48
+ return s === void 0 ? (a = i.EsmgwF(a), i.ucYSUe[e] = a) : a = s, a;
49
+ }
50
+ function a({ children: n, align: i = e(263), sticky: a = !0, pending: o, "aria-label": s, className: c, style: l }) {
51
+ var u = e;
52
+ return r(u(273), {
53
+ className: t("ds-action-bar", u(260) + i, a && "ds-action-bar--sticky", c),
54
+ "data-pending": o || void 0,
55
+ style: l,
56
+ children: r(u(261), {
57
+ className: u(265),
58
+ disabled: o,
59
+ "aria-label": s,
60
+ "aria-busy": o || void 0,
61
+ children: n
62
+ })
63
+ });
64
+ }
65
+ export { a as ActionBar };