@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,172 @@
1
+ "use client";
2
+ const e = n;
3
+ (function(e, t) {
4
+ let r = n, i = e();
5
+ for (;;) try {
6
+ if (-parseInt(r(506)) / 1 + parseInt(r(540)) / 2 + -parseInt(r(524)) / 3 * (parseInt(r(493)) / 4) + parseInt(r(504)) / 5 + -parseInt(r(544)) / 6 * (-parseInt(r(489)) / 7) + parseInt(r(531)) / 8 * (parseInt(r(532)) / 9) + -parseInt(r(536)) / 10 == t) break;
7
+ i.push(i.shift());
8
+ } catch {
9
+ i.push(i.shift());
10
+ }
11
+ })(s, 646246);
12
+ import { Text as t } from "../../primitives/Typography2.js";
13
+ function n(e, t) {
14
+ e -= 480;
15
+ let r = s(), i = r[e];
16
+ n.jRRIxs === void 0 && (n.ryzrmM = function(e) {
17
+ let t = "", n = "";
18
+ 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);
19
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
20
+ return decodeURIComponent(n);
21
+ }, n.kxXydl = {}, n.jRRIxs = !0);
22
+ let a = r[0];
23
+ n.syFheB !== a && (n.kxXydl = {}, n.syFheB = a);
24
+ let o = n.kxXydl[e];
25
+ return o === void 0 ? (i = n.ryzrmM(i), n.kxXydl[e] = i) : i = o, i;
26
+ }
27
+ import { useControllableState as r } from "../../hooks/useControllableState.js";
28
+ import { Button as i, cx as a } from "../../primitives/index.js";
29
+ import { formatNumber as o } from "../Chart/chart2.js";
30
+ /* empty css */
31
+ function s() {
32
+ let e = /* @__PURE__ */ "ywn0AxzLrwXLBwvUDa.lMrZlwjHCI1SAxn0x19YB3C.zhmTyMfYlwXPC3rFx3jVD3m.Aw5KzxG.mZi1mtu2meTjvNHTEq.ouH2AK1jCa.z2v0.A2v5.BM9Uzq.mZCWmte0mgzgC1zQta.AM9PBG.z2HVC3q.DgvYDgLHCNK.mZy1otCYAfPRB2TV.y3vYCMvUDa.zhmTyMfYlwXPC3rFx2zVB3rLCG.DhjHBNnMB3jT.mZyXnZC1nhzjzKrgsG.DhjHBNnSyxrLwsG.CxvLCNLtzwXLy3rVCKfSBa.zgf0yxnLDa.AwnVBG.Dg9W.BgfIzwWTC20.BwLU.lw1VCMu.zhmTyMfYlwXPC3rFx2LJB24.ChGP.zhmTyMfYlwXPC3rFx2zVBgqTAw5Uzxi.BgLZDa.w2rHDgeTCM93lwTLEv0.Aw5KzxHpzG.ide2jsWGDMfYkc0TC3vYzMfJzsKP.w2LUzxj0xq.BgvUz3rO.rw5K.mtrfwfr3svm.B2zMC2v0sgvPz2H0.BwfW.C3rHCNrZv2L0Aa.ndC2nZGWEw95tK5m.zM9JDxm.z2v0qM91BMrPBMDdBgLLBNrszwn0.DhjHBNnPDgLVBG.ywnJzw50.qxjYB3DvCa.zhmTyMfYlwXPC3rFx3zHBhvL.C3bHBG.Bwf4.B3zLCMXPBMu.zhmTyMfYlwXPC3rFx2zVBgq.mZa5nJq5nvbVAvrXwa.zhmTyMfYlwXPC3q.odaYmZeZCgPXBevc.zhmTyMfYlwXPC3rFx3jVDW.zgL2.BMfTzq.y3vYCMvUDfrHCMDLDa.642uioUZToQ4ScaO.C3r5Bgu.C2v0.y2XVC2vZDa.zhmTyMfYlwXPC3rFx2L0zw0.CM93s2v5.zhmTyMfYlwXPC3rFx2jHCG.DMfSDwu.zgvZy2vUzgLUzW.yNv0Dg9U.ChjLC2vUDgf0Aw9U.AhjLzG.zhmTyMfYlwXPC3rFx2HLywrLCG.mtvtug9LDu4.zhmTyMfYlwXPC3rFx2XHyMvS.C2XPy2u".split(".");
33
+ return s = function() {
34
+ return e;
35
+ }, s();
36
+ }
37
+ import { useId as c, useLayoutEffect as l, useMemo as u, useRef as d } from "react";
38
+ import { ChevronDown as f, ChevronUp as p } from "lucide-react";
39
+ import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
40
+ var _ = (t) => "color-mix(in srgb, " + (t[e(492)]("--") ? "var(" + t + ")" : t) + e(485);
41
+ function v({ data: s, sortOrder: v = e(519), tone: y = e(497), color: b, formatValue: x = o, onValueChange: S, showAnimation: C = !0, max: w, limit: T, expanded: E, defaultExpanded: D = !1, onExpandedChange: O, moreLabel: k = (t) => e(511) + t + ")", lessLabel: A = "접기", nameLabel: j, valueLabel: M, size: N = "md", "aria-label": P, className: F, style: I }) {
42
+ let L = e, [R, z] = r(E, D, O), B = c(), V = d(null), H = d(/* @__PURE__ */ new Map()), U = u(() => {
43
+ let e = n, t = s[e(491)]((t, n) => ({
44
+ item: t,
45
+ index: n,
46
+ key: t[e(534)] ?? t.name
47
+ }));
48
+ if (v === e(535)) return t;
49
+ let r = v === "descending" ? -1 : 1;
50
+ return [...t].sort((t, n) => (t.item[e(518)] - n.item.value) * r || t[e(530)] - n[e(530)]);
51
+ }, [s, v]), W = w ?? Math[L(501)](0, ...s.map((e) => e[L(518)])), G = (e) => W > 0 ? Math[L(501)](0, Math[L(551)](100, e / W * 100)) : 0, K = S !== void 0, q = T !== void 0 && T >= 0 && U[L(487)] > T, J = q ? U[L(526)](0, T) : U, Y = q ? U[L(526)](T) : [], X = U[L(491)]((e) => e[L(534)])[L(537)]("\n");
52
+ l(() => {
53
+ let e = L, t = V[e(541)];
54
+ if (!t) return;
55
+ let n = Array.from(t[e(546)](e(483))), r = t[e(495)]()[e(549)], i = /* @__PURE__ */ new Map();
56
+ for (let t of n) i[e(513)](t[e(547)].rowKey ?? "", t.getBoundingClientRect().top - r);
57
+ if (C) for (let t of n) {
58
+ let n = H[e(541)][e(533)](t[e(547)][e(516)] ?? ""), r = i[e(533)](t[e(547)][e(516)] ?? "");
59
+ n !== void 0 && r !== void 0 && n !== r && (t[e(512)][e(496)] = "none", t.style[e(543)] = e(545) + (n - r) + e(480), t[e(490)], t[e(512)][e(496)] = "", t[e(512)].transform = "");
60
+ }
61
+ H.current = i;
62
+ }, [X, C]);
63
+ let Z = (e) => {
64
+ let t = L;
65
+ if (!K) return;
66
+ let n = Array.from(e[t(510)][t(546)](t(528))).filter((e) => !e[t(514)](t(486))), r = n[t(484)](document[t(527)]);
67
+ if (r < 0) return;
68
+ let i = e[t(534)] === "ArrowDown" ? r + 1 : e[t(534)] === t(498) ? r - 1 : e[t(534)] === "Home" ? 0 : e[t(534)] === t(488) ? n[t(487)] - 1 : void 0;
69
+ i !== void 0 && (e.preventDefault(), n[Math[t(501)](0, Math[t(551)](n[t(487)] - 1, i))]?.[t(494)]());
70
+ }, Q = ({ item: e, index: n, key: r }) => {
71
+ let i = L, a = x(e[i(518)], e), o = e.color ?? b, s = g(i(500), {
72
+ className: i(525),
73
+ children: [e[i(548)] && h(i(500), {
74
+ className: i(553),
75
+ children: e[i(548)]
76
+ }), h(t, {
77
+ as: "span",
78
+ variant: "body-sm",
79
+ truncate: !0,
80
+ className: "ds-bar-list__name",
81
+ children: e[i(509)]
82
+ })]
83
+ }), c = g(m, { children: [g("span", {
84
+ className: "ds-bar-list__track",
85
+ children: [h(i(500), {
86
+ className: i(517),
87
+ style: {
88
+ width: G(e[i(518)]) + "%",
89
+ ...o && { "--_bar": _(o) }
90
+ }
91
+ }), !K && e[i(522)] ? h("a", {
92
+ className: "ds-bar-list__link",
93
+ href: e[i(522)],
94
+ children: s
95
+ }) : s]
96
+ }), h(t, {
97
+ variant: i(550),
98
+ numeric: !0,
99
+ className: i(499),
100
+ children: a
101
+ })] });
102
+ return h("div", {
103
+ role: "listitem",
104
+ "data-row-key": r,
105
+ className: i(515),
106
+ children: K ? h(i(520), {
107
+ type: i(520),
108
+ className: i(507),
109
+ onClick: () => S?.(e, n),
110
+ children: c
111
+ }) : h(i(508), {
112
+ className: i(507),
113
+ children: c
114
+ })
115
+ }, r);
116
+ };
117
+ return g(L(508), {
118
+ className: a(L(505), F),
119
+ "data-size": N,
120
+ "data-tone": y,
121
+ "data-animate": C || void 0,
122
+ "data-clickable": K || void 0,
123
+ style: I,
124
+ children: [
125
+ (j != null || M != null) && g(L(508), {
126
+ className: L(523),
127
+ "aria-hidden": !0,
128
+ children: [h(t, {
129
+ variant: L(502),
130
+ tone: L(539),
131
+ children: j
132
+ }), h(t, {
133
+ variant: L(502),
134
+ tone: L(539),
135
+ children: M
136
+ })]
137
+ }),
138
+ g(L(508), {
139
+ ref: V,
140
+ role: L(482),
141
+ "aria-label": P,
142
+ className: L(529),
143
+ onKeyDown: Z,
144
+ children: [J[L(491)](Q), q && h(L(508), {
145
+ id: B + L(552),
146
+ role: L(521),
147
+ className: L(503),
148
+ "data-open": R || void 0,
149
+ inert: !R || void 0,
150
+ children: h(L(508), {
151
+ role: L(521),
152
+ className: L(481),
153
+ children: Y[L(491)](Q)
154
+ })
155
+ })]
156
+ }),
157
+ q && h(L(508), {
158
+ className: L(542),
159
+ children: h(i, {
160
+ variant: L(538),
161
+ size: "sm",
162
+ iconRight: h(R ? p : f, { size: 14 }),
163
+ "aria-expanded": R,
164
+ "aria-controls": B + L(552),
165
+ onClick: () => z(!R),
166
+ children: R ? A : k(Y.length)
167
+ })
168
+ })
169
+ ]
170
+ });
171
+ }
172
+ export { v as BarList };
@@ -0,0 +1,87 @@
1
+ "use client";
2
+ (function(e, n) {
3
+ let r = t, i = e();
4
+ for (;;) try {
5
+ if (parseInt(r(458)) / 1 * (parseInt(r(460)) / 2) + parseInt(r(475)) / 3 + parseInt(r(457)) / 4 * (parseInt(r(463)) / 5) + -parseInt(r(461)) / 6 * (parseInt(r(472)) / 7) + parseInt(r(473)) / 8 + -parseInt(r(477)) / 9 * (-parseInt(r(468)) / 10) + -parseInt(r(476)) / 11 == n) break;
6
+ i.push(i.shift());
7
+ } catch {
8
+ i.push(i.shift());
9
+ }
10
+ })(n, 811361);
11
+ import { cx as e } from "../../primitives/index.js";
12
+ function t(e, r) {
13
+ e -= 456;
14
+ let i = n(), a = i[e];
15
+ t.BLwFsP === void 0 && (t.iBvRSJ = function(e) {
16
+ let t = "", n = "";
17
+ 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);
18
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
19
+ return decodeURIComponent(n);
20
+ }, t.KlaGpb = {}, t.BLwFsP = !0);
21
+ let o = i[0];
22
+ t.euYoOs !== o && (t.KlaGpb = {}, t.euYoOs = o);
23
+ let s = t.KlaGpb[e];
24
+ return s === void 0 ? (a = t.iBvRSJ(a), t.KlaGpb[e] = a) : a = s, a;
25
+ }
26
+ function n() {
27
+ let e = [
28
+ "mtq5mtq5nLrkq010Bq",
29
+ "mvLrBLbLra",
30
+ "BwfW",
31
+ "mJC0mZa0ng1xteT1tq",
32
+ "nZjmrKjvwgy",
33
+ "7zIe7j6SioYCHoY5Ma",
34
+ "mtv1EMruq3y",
35
+ "CgfNzq",
36
+ "BgvUz3rO",
37
+ "C3bHBG",
38
+ "B25dBgLJAW",
39
+ "nZe4nJbMEfflCM0",
40
+ "zhmTyNjLywrJCNvTyL9FBgLUAW",
41
+ "zhmTyNjLywrJCNvTyL9Fy3vYCMvUDa",
42
+ "zhmTyNjLywrJCNvTyL9FC2vW",
43
+ "oda2mde1wfbdtMPQ",
44
+ "mtiZndi4ofb2Cw1msW",
45
+ "BgfIzwW",
46
+ "mZK1nZi2ngHYAe1XDG",
47
+ "mtK1ntm2mZnHwwPAAhK",
48
+ "owfKv0LYvW",
49
+ "AhjLzG"
50
+ ];
51
+ return n = function() {
52
+ return e;
53
+ }, n();
54
+ }
55
+ /* empty css */
56
+ import { ChevronRight as r } from "lucide-react";
57
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
58
+ function o({ items: n, separator: o = i(r, {}), className: s }) {
59
+ let c = t;
60
+ return i("nav", {
61
+ "aria-label": c(462),
62
+ className: e("ds-breadcrumb", s),
63
+ children: i("ol", { children: n[c(459)]((e, t) => {
64
+ let r = c, s = t === n[r(465)] - 1;
65
+ return a("li", { children: [s ? i(r(466), {
66
+ "aria-current": r(464),
67
+ className: r(470),
68
+ children: e[r(474)]
69
+ }) : e[r(456)] || e[r(467)] ? i("a", {
70
+ href: e[r(456)] ?? "#",
71
+ className: r(469),
72
+ onClick: (t) => {
73
+ e[r(467)] && (t.preventDefault(), e.onClick());
74
+ },
75
+ children: e.label
76
+ }) : i(r(466), {
77
+ className: r(469),
78
+ children: e[r(474)]
79
+ }), !s && i(r(466), {
80
+ className: r(471),
81
+ "aria-hidden": !0,
82
+ children: o
83
+ })] }, t);
84
+ }) })
85
+ });
86
+ }
87
+ export { o as Breadcrumb };
@@ -0,0 +1,309 @@
1
+ "use client";
2
+ function e() {
3
+ let t = /* @__PURE__ */ "CM91BMq.zNjVBq.64kG7kEC66gCioUpJoYvHoQWGoQ4Sa.zhmTy2fSzw5KyxjFx2rHEq.z2v0rNvSBfLLyxi.zhmTy2fSzw5KyxjFx2zVB3q.mJC1nJqXnMnky2zgAG.zgf5CW.BgvUz3rO.B2zMC2v0vg9W.ChjLDMvUDerLzMf1Bhq.zhmTy2fSzw5Kyxi.nJK2odC1Bun2yNvc.CMfUz2u.zhmTy2fSzw5KyxjFx3LLyxi.zhmTy2fSzw5KyxjFx3zPzxCGzhmTy2fSzw5KyxjFx3LT.DgvYDgLHCNK.z2v0vgLTzq.zhmTy2fSzw5KyxjFx2HLywq.B3b0Aw9U.zMLUzeLUzgv4.BwLU.yNv0Dg9U.mtm2mJeYBKzszhfj.odqXndy1zwHREgPJ.mtmWodbtueD6s1u.y2fWDgLVBG.zgL2.lcdSL7dRJ4tcT+YBLcdSHkdTG50G7jE06RIW.B25wywX1zunOyw5Nzq.nefIAKnVvq.Cg9SAxrL.sg9Tzq.64we7j2yioYBLa.ywnJzw50.C2nYB2XSvg8.C2vSzwn0zwq.zhmTy2fSzw5KyxjFx3bPy2S.z2HVC3q.zM9JDxm.z2v0rgf5.yMv0D2vLBG.mti3otCZn1z1vvPzqG.zhmTy2fSzw5KyxjFx3LLyxjZ.Bwf4.7j28ioYeOo2dNEUqQa.A2v5.7kkf66om7j287j2eioQZOoULToYeUoYALa.mte1odK3nMHYr21qva.B3v0.zgLZywjSzwq.BwfW.C21VB3rO.B2zMC2v0sgvPz2H0.CgLJAW.7j207kceioUlRa.BgfIzwW.rxnJyxbL.w3rHyMLUzgv4psiWiL0.z2v0rgf0zq.C2HPzNrlzxK.zhmTy2fSzw5KyxjFx3zPzxC.C3bHBG.rw5K.mtG5tvvIvKf4.BgLZDgjVEa.z2v0tw9UDgG.w2fYAweTC2vSzwn0zwq9iNrYDwuIxq.DMfSDwu.nZG5m1nWt3fivW.zhmTy2fSzw5KyxjFx3bPy2TZ.y3vYCMvUDa.y2XPzw50sgvPz2H0.CxvLCNLtzwXLy3rVCG.Bw9Kzq".split(".");
4
+ return e = function() {
5
+ return t;
6
+ }, e();
7
+ }
8
+ (function(e, t) {
9
+ let n = w, r = e();
10
+ for (;;) try {
11
+ if (-parseInt(n(499)) / 1 + parseInt(n(505)) / 2 * (-parseInt(n(517)) / 3) + parseInt(n(481)) / 4 + -parseInt(n(487)) / 5 + -parseInt(n(498)) / 6 * (-parseInt(n(539)) / 7) + -parseInt(n(523)) / 8 + parseInt(n(469)) / 9 * (parseInt(n(500)) / 10) == t) break;
12
+ r.push(r.shift());
13
+ } catch {
14
+ r.push(r.shift());
15
+ }
16
+ })(e, 470304);
17
+ import { Text as t } from "../../primitives/Typography2.js";
18
+ import { Inline as n } from "../../primitives/Layout2.js";
19
+ import { Button as r, cx as i } from "../../primitives/index.js";
20
+ import { addDays as a, addMonths as o, between as s, compareDay as c, formatFullDate as ee, formatMonth as l, monthGrid as u, sameDay as d, sameMonth as f, startOfDay as p, startOfMonth as m, weekdayLabels as h } from "./date.js";
21
+ /* empty css */
22
+ import { useEffect as g, useLayoutEffect as _, useRef as v, useState as y } from "react";
23
+ import { ChevronDown as b, ChevronLeft as te, ChevronRight as ne } from "lucide-react";
24
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
25
+ function C(e) {
26
+ let _ = w, { min: C, max: T, isDateDisabled: ae, weekStartsOn: E = 0, defaultMonth: oe, autoFocus: D, showFooter: se = !0, className: O } = e, k = e[_(474)] === _(488) ? e[_(468)] : void 0, A = e[_(474)] === _(488) ? void 0 : e[_(468)], j = A ?? k?.[_(476)] ?? null, [M, N] = y(() => m(oe ?? j ?? /* @__PURE__ */ new Date())), [P, F] = y(() => p(j ?? /* @__PURE__ */ new Date())), [ce, I] = y(0), [L, R] = y(_(482)), [z, le] = y(null), [B, V] = y(null), H = v(null), [U] = y(() => p(/* @__PURE__ */ new Date())), W = (e) => C && c(e, C) < 0 || T && c(e, T) > 0 || !!ae?.(e), G = (e) => {
27
+ I(e > 0 ? 1 : -1), N((t) => o(t, e)), F((t) => o(t, e));
28
+ }, K = (e) => {
29
+ le(e === "pick" ? _(524) : "in"), I(0), R(e);
30
+ }, q = v(!1);
31
+ g(() => {
32
+ let e = _;
33
+ q[e(471)] ? H[e(471)]?.[e(473)]("[tabindex=\"0\"]")?.[e(514)]({ preventScroll: !0 }) : q[e(471)] = !0;
34
+ }, [L]);
35
+ let ue = (e, t) => !!T && c(new Date(e, t, 1), T) > 0 || !!C && c(new Date(e, t + 1, 0), C) < 0, J = M[_(479)](), de = C?.[_(479)]() ?? U[_(479)]() - 100, fe = T?.[_(479)]() ?? U[_(479)]() + 20, Y = (t) => {
36
+ let n = _;
37
+ if (!W(t)) {
38
+ if (F(t), !f(t, M) && (I(c(t, M) > 0 ? 1 : -1), N(m(t))), e[n(474)] === n(488)) {
39
+ let r = e[n(468)] ?? {
40
+ from: null,
41
+ to: null
42
+ };
43
+ !r.from || r.to ? e[n(504)]?.({
44
+ from: t,
45
+ to: null
46
+ }) : c(t, r.from) < 0 ? e[n(504)]?.({
47
+ from: t,
48
+ to: r[n(476)]
49
+ }) : e.onValueChange?.({
50
+ from: r[n(476)],
51
+ to: t
52
+ });
53
+ } else e[n(504)]?.(t);
54
+ }
55
+ };
56
+ g(() => {
57
+ let e = _;
58
+ if (!D) return;
59
+ let t = requestAnimationFrame(() => H.current?.[e(473)](e(533))?.[e(514)]({ preventScroll: !0 }));
60
+ return () => cancelAnimationFrame(t);
61
+ }, [D]);
62
+ let pe = (e) => {
63
+ let t = _, n = {
64
+ ArrowLeft: () => a(P, -1),
65
+ ArrowRight: () => a(P, 1),
66
+ ArrowUp: () => a(P, -7),
67
+ ArrowDown: () => a(P, 7),
68
+ PageUp: () => o(P, e[t(535)] ? -12 : -1),
69
+ PageDown: () => o(P, e[t(535)] ? 12 : 1),
70
+ Home: () => a(P, -((P.getDay() - E + 7) % 7)),
71
+ End: () => a(P, 6 - (P[t(515)]() - E + 7) % 7)
72
+ };
73
+ if (n[e[t(521)]]) {
74
+ e[t(485)]();
75
+ let r = n[e[t(521)]]();
76
+ F(r), !f(r, M) && (I(c(r, M) > 0 ? 1 : -1), N(m(r))), requestAnimationFrame(() => H[t(471)]?.[t(473)](t(533))?.focus({ preventScroll: !0 }));
77
+ }
78
+ }, me = u(M, E), X = k?.[_(476)] && !k.to && B ? B : null, he = (e) => {
79
+ let t = _;
80
+ e.key === t(532) && L !== t(482) && (e[t(485)](), e.stopPropagation(), K("days"));
81
+ }, ge = () => {
82
+ let t = _;
83
+ e[t(474)] === t(488) ? (!f(U, M) && (I(c(U, M) > 0 ? 1 : -1), N(m(U))), F(U)) : Y(U), L !== t(482) && K(t(482));
84
+ }, _e = k?.[_(476)] && k.to ? Math[_(475)]((p(k.to).getTime() - p(k[_(476)])[_(492)]()) / 864e5) + 1 : 0, Z = e[_(474)] === _(488) ? k?.from ? k.to ? _e + _(520) : _(522) : "시작일을 고르세요" : null, Q = se && S(n, {
85
+ justify: _(516),
86
+ wrap: !1,
87
+ className: _(480),
88
+ children: [x(t, {
89
+ variant: _(501),
90
+ tone: Z && k?.[_(476)] && !k.to ? _(509) : _(491),
91
+ "aria-live": _(506),
92
+ children: Z
93
+ }), x(r, {
94
+ variant: _(513),
95
+ size: "sm",
96
+ onClick: ge,
97
+ disabled: W(U),
98
+ children: "오늘"
99
+ })]
100
+ }), $ = S(n, {
101
+ justify: _(516),
102
+ wrap: !1,
103
+ className: _(493),
104
+ children: [x(r, {
105
+ variant: _(513),
106
+ size: "sm",
107
+ iconRight: x(b, {}),
108
+ className: "ds-calendar__title",
109
+ "data-open": L === _(529) || void 0,
110
+ "aria-expanded": L === "pick",
111
+ "aria-label": L === _(482) ? l(M) + _(503) : _(477),
112
+ "aria-live": "polite",
113
+ onClick: () => K(_(L === "days" ? 529 : 482)),
114
+ children: l(M)
115
+ }), L === _(482) && S(n, {
116
+ gap: 1,
117
+ wrap: !1,
118
+ children: [x(r, {
119
+ iconOnly: !0,
120
+ variant: _(513),
121
+ size: "sm",
122
+ icon: x(te, {}),
123
+ "aria-label": _(530),
124
+ onClick: () => G(-1)
125
+ }), x(r, {
126
+ iconOnly: !0,
127
+ variant: "ghost",
128
+ size: "sm",
129
+ icon: x(ne, {}),
130
+ "aria-label": "다음 달",
131
+ onClick: () => G(1)
132
+ })]
133
+ })]
134
+ });
135
+ if (L === "pick") {
136
+ let e = (e) => {
137
+ let t = _;
138
+ N(new Date(e, M.getMonth(), 1)), F((n) => new Date(e, n[t(466)](), Math.min(n[t(534)](), new Date(e, n[t(466)]() + 1, 0)[t(534)]())));
139
+ }, t = Array.from({ length: 12 }, (e, t) => ({
140
+ key: t,
141
+ label: t + 1 + "월",
142
+ selected: t === M[_(466)](),
143
+ current: J === U[_(479)]() && t === U[_(466)](),
144
+ disabled: ue(J, t),
145
+ pick: () => {
146
+ let e = _;
147
+ N(new Date(J, t, 1)), F((n) => new Date(J, t, Math[e(496)](n.getDate(), new Date(J, t + 1, 0)[e(534)]()))), K("days");
148
+ }
149
+ }));
150
+ return S(_(502), {
151
+ className: i(_(486), O),
152
+ onKeyDown: he,
153
+ children: [
154
+ $,
155
+ S("div", {
156
+ className: _(490),
157
+ "data-zoom": z,
158
+ children: [x(re, {
159
+ first: de,
160
+ last: fe,
161
+ selected: J,
162
+ current: U[_(479)](),
163
+ onPick: e
164
+ }), x(ie, {
165
+ gridRef: H,
166
+ cells: t,
167
+ label: J + _(508)
168
+ })]
169
+ }, "pick"),
170
+ Q
171
+ ]
172
+ });
173
+ }
174
+ return S(_(502), {
175
+ className: i(_(486), O),
176
+ children: [
177
+ $,
178
+ S(_(502), {
179
+ className: _(536),
180
+ "data-zoom": z,
181
+ children: [x("div", {
182
+ className: "ds-calendar__weekdays",
183
+ "aria-hidden": !0,
184
+ children: h(E).map((e, t) => x(_(537), {
185
+ "data-weekday": (t + E) % 7,
186
+ children: e
187
+ }, e))
188
+ }), x(_(502), {
189
+ ref: H,
190
+ role: "grid",
191
+ "aria-label": l(M),
192
+ className: "ds-calendar__grid",
193
+ "data-dir": ce,
194
+ onKeyDown: pe,
195
+ onPointerLeave: () => V(null),
196
+ children: me[_(526)]((t) => {
197
+ let n = _, r = !f(t, M), i = W(t), a = X ?? k?.to ?? null, o = k?.[n(476)] && a ? c(k.from, a) <= 0 ? k[n(476)] : a : null, l = k?.from && a ? c(k[n(476)], a) <= 0 ? a : k[n(476)] : null, u = !!(o && l && s(t, o, l)), p = !!(o && d(t, o)) || !!k?.[n(476)] && !a && d(t, k[n(476)]), m = !!(l && d(t, l)), h = d(t, A) || p || m;
198
+ return x(n(497), {
199
+ type: n(497),
200
+ role: "gridcell",
201
+ tabIndex: d(t, P) ? 0 : -1,
202
+ "aria-selected": h,
203
+ "aria-disabled": i || void 0,
204
+ "aria-label": ee(t),
205
+ "aria-current": d(t, U) ? "date" : void 0,
206
+ className: n(478),
207
+ "data-outside": r || void 0,
208
+ "data-weekday": t[n(515)](),
209
+ "data-today": d(t, U) || void 0,
210
+ "data-selected": h || void 0,
211
+ "data-in-range": u && !h || void 0,
212
+ "data-range-start": p && !!a && !d(o, l) || void 0,
213
+ "data-range-end": m && !d(o, l) || void 0,
214
+ "data-preview": !!X || void 0,
215
+ onClick: () => Y(t),
216
+ onPointerEnter: () => e[n(474)] === n(488) && !i && V(t),
217
+ children: x(n(537), { children: t[n(534)]() })
218
+ }, t[n(492)]());
219
+ })
220
+ }, M[_(492)]())]
221
+ }, "days-" + z),
222
+ Q
223
+ ]
224
+ });
225
+ }
226
+ function re({ first: e, last: t, selected: n, current: r, onPick: i }) {
227
+ let a = w, o = v(null), s = v(!1);
228
+ _(() => {
229
+ let e = w, t = o[e(471)], n = t?.[e(473)](e(467));
230
+ if (!t || !n) return;
231
+ let r = n[e(484)] - t[e(472)] / 2 + n[e(528)] / 2;
232
+ t[e(510)]({
233
+ top: r,
234
+ behavior: s[e(471)] ? e(527) : "auto"
235
+ }), s[e(471)] = !0;
236
+ }, [n]);
237
+ let c = Array[a(476)]({ length: Math[a(519)](0, t - e + 1) }, (t, n) => e + n);
238
+ return x(a(502), {
239
+ ref: o,
240
+ role: a(540),
241
+ "aria-label": "연도",
242
+ className: a(518),
243
+ onKeyDown: (r) => {
244
+ let s = a, c = {
245
+ ArrowUp: -1,
246
+ ArrowDown: 1,
247
+ PageUp: -10,
248
+ PageDown: 10
249
+ };
250
+ r[s(521)] in c && (r.preventDefault(), i(Math[s(496)](t, Math[s(519)](e, n + c[r.key]))), requestAnimationFrame(() => o[s(471)]?.[s(473)]("[aria-selected=\"true\"]")?.focus({ preventScroll: !0 })));
251
+ },
252
+ children: c[a(526)]((e) => x(a(497), {
253
+ type: "button",
254
+ role: a(494),
255
+ "aria-selected": e === n,
256
+ tabIndex: e === n ? 0 : -1,
257
+ className: a(489),
258
+ "data-today": e === r || void 0,
259
+ onClick: () => i(e),
260
+ children: e
261
+ }, e))
262
+ });
263
+ }
264
+ function w(t, n) {
265
+ t -= 466;
266
+ let r = e(), i = r[t];
267
+ w.PAYBYa === void 0 && (w.DuNogD = function(e) {
268
+ let t = "", n = "";
269
+ 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);
270
+ for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
271
+ return decodeURIComponent(n);
272
+ }, w.LgnSNA = {}, w.PAYBYa = !0);
273
+ let a = r[0];
274
+ w.kPVdKx !== a && (w.LgnSNA = {}, w.kPVdKx = a);
275
+ let o = w.LgnSNA[t];
276
+ return o === void 0 ? (i = w.DuNogD(i), w.LgnSNA[t] = i) : i = o, i;
277
+ }
278
+ function ie({ cells: e, label: t, gridRef: n }) {
279
+ let r = w, i = Math[r(519)](0, e[r(495)]((e) => e[r(511)])), [a, o] = y(i);
280
+ return x(r(502), {
281
+ ref: n,
282
+ role: "grid",
283
+ "aria-label": t,
284
+ className: r(470),
285
+ onKeyDown: (t) => {
286
+ let i = r, s = {
287
+ ArrowLeft: -1,
288
+ ArrowRight: 1,
289
+ ArrowUp: -3,
290
+ ArrowDown: 3
291
+ }, c;
292
+ t.key in s ? c = a + s[t[i(521)]] : t[i(521)] === i(507) ? c = 0 : t[i(521)] === i(538) && (c = e[i(483)] - 1), !(c === void 0 || c < 0 || c >= e[i(483)]) && (t.preventDefault(), o(c), requestAnimationFrame(() => n[i(471)]?.[i(473)](i(533))?.[i(514)]({ preventScroll: !0 })));
293
+ },
294
+ children: e[r(526)]((e, t) => x("button", {
295
+ type: r(497),
296
+ role: "gridcell",
297
+ tabIndex: t === a ? 0 : -1,
298
+ "aria-selected": e[r(511)],
299
+ "aria-disabled": e[r(525)] || void 0,
300
+ "aria-current": e.current ? "date" : void 0,
301
+ className: r(512),
302
+ "data-selected": e.selected || void 0,
303
+ "data-today": e[r(471)] || void 0,
304
+ onClick: () => !e[r(525)] && e.pick(),
305
+ children: x(r(537), { children: e[r(531)] })
306
+ }, e[r(521)]))
307
+ });
308
+ }
309
+ export { C as Calendar };