@leonardaustin/ui 0.24.0 → 0.26.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 (500) hide show
  1. package/README.md +183 -2
  2. package/dist/components/app-shell/AppShell.d.ts +3 -4
  3. package/dist/components/app-shell/AppShell.js +82 -0
  4. package/dist/components/app-shell/AuthLayout.d.ts +3 -4
  5. package/dist/components/app-shell/AuthLayout.js +16 -0
  6. package/dist/components/app-shell/BackLink.d.ts +3 -4
  7. package/dist/components/app-shell/BackLink.js +19 -0
  8. package/dist/components/app-shell/BottomNav.d.ts +3 -3
  9. package/dist/components/app-shell/BottomNav.js +37 -0
  10. package/dist/components/app-shell/Breadcrumbs.d.ts +3 -3
  11. package/dist/components/app-shell/Breadcrumbs.js +46 -0
  12. package/dist/components/app-shell/CommandPalette.d.ts +3 -3
  13. package/dist/components/app-shell/CommandPalette.js +119 -0
  14. package/dist/components/app-shell/MobileDrawer.d.ts +3 -4
  15. package/dist/components/app-shell/MobileDrawer.js +128 -0
  16. package/dist/components/app-shell/Sidebar.d.ts +3 -4
  17. package/dist/components/app-shell/Sidebar.js +355 -0
  18. package/dist/components/app-shell/ThemeMenu.d.ts +3 -3
  19. package/dist/components/app-shell/ThemeMenu.js +273 -0
  20. package/dist/components/app-shell/TopBar.d.ts +3 -4
  21. package/dist/components/app-shell/TopBar.js +129 -0
  22. package/dist/components/app-shell/commandPaletteEvents.d.ts +0 -1
  23. package/dist/components/app-shell/commandPaletteEvents.js +16 -0
  24. package/dist/components/app-shell/navigation.d.ts +0 -1
  25. package/dist/components/app-shell/navigation.js +21 -0
  26. package/dist/components/app-shell/themeMenuEvents.d.ts +0 -1
  27. package/dist/components/app-shell/themeMenuEvents.js +7 -0
  28. package/dist/components/app-shell/types.d.ts +0 -1
  29. package/dist/components/charts/AreaChart.d.ts +4 -4
  30. package/dist/components/charts/AreaChart.js +217 -0
  31. package/dist/components/charts/BarChart.d.ts +4 -4
  32. package/dist/components/charts/BarChart.js +91 -0
  33. package/dist/components/charts/DonutChart.d.ts +4 -4
  34. package/dist/components/charts/DonutChart.js +172 -0
  35. package/dist/components/charts/RadarChart.d.ts +4 -4
  36. package/dist/components/charts/RadarChart.js +142 -0
  37. package/dist/components/charts/RadialBarChart.d.ts +4 -4
  38. package/dist/components/charts/RadialBarChart.js +219 -0
  39. package/dist/components/charts/SparkLine.d.ts +4 -4
  40. package/dist/components/charts/SparkLine.js +39 -0
  41. package/dist/components/charts/StackedBarChart.d.ts +4 -4
  42. package/dist/components/charts/StackedBarChart.js +249 -0
  43. package/dist/components/charts/VerticalBarChart.d.ts +4 -4
  44. package/dist/components/charts/VerticalBarChart.js +143 -0
  45. package/dist/components/charts/chartUtils.d.ts +0 -1
  46. package/dist/components/charts/chartUtils.js +68 -0
  47. package/dist/components/tables/ColumnPicker.d.ts +3 -4
  48. package/dist/components/tables/ColumnPicker.js +59 -0
  49. package/dist/components/tables/Pagination.d.ts +3 -5
  50. package/dist/components/tables/Pagination.js +56 -0
  51. package/dist/components/tables/ResourceTable.d.ts +3 -4
  52. package/dist/components/tables/ResourceTable.js +88 -0
  53. package/dist/components/tables/Table.d.ts +0 -1
  54. package/dist/components/tables/Table.js +95 -0
  55. package/dist/components/tables/sortRows.d.ts +0 -1
  56. package/dist/components/tables/sortRows.js +11 -0
  57. package/dist/components/ui/Accordion.d.ts +9 -2
  58. package/dist/components/ui/Accordion.js +35 -0
  59. package/dist/components/ui/Alert.d.ts +8 -6
  60. package/dist/components/ui/Alert.js +51 -0
  61. package/dist/components/ui/AttachmentList.d.ts +5 -6
  62. package/dist/components/ui/AttachmentList.js +90 -0
  63. package/dist/components/ui/AudioPlayer.d.ts +7 -4
  64. package/dist/components/ui/AudioPlayer.js +447 -0
  65. package/dist/components/ui/AuthCard.d.ts +3 -4
  66. package/dist/components/ui/AuthCard.js +39 -0
  67. package/dist/components/ui/AuthorByline.d.ts +5 -6
  68. package/dist/components/ui/AuthorByline.js +23 -0
  69. package/dist/components/ui/Avatar.d.ts +5 -4
  70. package/dist/components/ui/Avatar.js +36 -0
  71. package/dist/components/ui/Badge.d.ts +3 -3
  72. package/dist/components/ui/Badge.js +47 -0
  73. package/dist/components/ui/Button.d.ts +9 -9
  74. package/dist/components/ui/Button.js +83 -0
  75. package/dist/components/ui/Calendar.d.ts +3 -4
  76. package/dist/components/ui/Calendar.js +344 -0
  77. package/dist/components/ui/CalendarGrid.d.ts +3 -4
  78. package/dist/components/ui/CalendarGrid.js +136 -0
  79. package/dist/components/ui/Card.d.ts +6 -6
  80. package/dist/components/ui/Card.js +53 -0
  81. package/dist/components/ui/CharacterCount.d.ts +3 -4
  82. package/dist/components/ui/CharacterCount.js +27 -0
  83. package/dist/components/ui/Checkbox.d.ts +10 -9
  84. package/dist/components/ui/Checkbox.js +52 -0
  85. package/dist/components/ui/CodeInput.d.ts +7 -5
  86. package/dist/components/ui/CodeInput.js +96 -0
  87. package/dist/components/ui/Combobox.d.ts +8 -7
  88. package/dist/components/ui/Combobox.js +213 -0
  89. package/dist/components/ui/CopyButton.d.ts +6 -2
  90. package/dist/components/ui/CopyButton.js +57 -0
  91. package/dist/components/ui/DangerZone.d.ts +3 -5
  92. package/dist/components/ui/DangerZone.js +23 -0
  93. package/dist/components/ui/DatePartsInput.d.ts +6 -5
  94. package/dist/components/ui/DatePartsInput.js +138 -0
  95. package/dist/components/ui/DatePicker.d.ts +9 -5
  96. package/dist/components/ui/DatePicker.js +84 -0
  97. package/dist/components/ui/DateRangePicker.d.ts +7 -6
  98. package/dist/components/ui/DateRangePicker.js +143 -0
  99. package/dist/components/ui/DateTimePicker.d.ts +7 -5
  100. package/dist/components/ui/DateTimePicker.js +267 -0
  101. package/dist/components/ui/DetailPanel.d.ts +3 -4
  102. package/dist/components/ui/DetailPanel.js +183 -0
  103. package/dist/components/ui/Dialog.d.ts +3 -4
  104. package/dist/components/ui/Dialog.js +411 -0
  105. package/dist/components/ui/DialogActions.d.ts +3 -4
  106. package/dist/components/ui/DialogActions.js +35 -0
  107. package/dist/components/ui/Disclosure.d.ts +7 -4
  108. package/dist/components/ui/Disclosure.js +45 -0
  109. package/dist/components/ui/DividerLabel.d.ts +3 -4
  110. package/dist/components/ui/DividerLabel.js +20 -0
  111. package/dist/components/ui/DropdownMenu.d.ts +4 -5
  112. package/dist/components/ui/DropdownMenu.js +229 -0
  113. package/dist/components/ui/EmptyState.d.ts +3 -5
  114. package/dist/components/ui/EmptyState.js +31 -0
  115. package/dist/components/ui/ErrorBoundary.d.ts +3 -3
  116. package/dist/components/ui/ErrorBoundary.js +46 -0
  117. package/dist/components/ui/FieldContext.d.ts +0 -1
  118. package/dist/components/ui/FieldContext.js +8 -0
  119. package/dist/components/ui/Fieldset.d.ts +2 -3
  120. package/dist/components/ui/Fieldset.js +39 -0
  121. package/dist/components/ui/FilterButton.d.ts +4 -9
  122. package/dist/components/ui/FilterButton.js +17 -0
  123. package/dist/components/ui/FilterDropdown.d.ts +4 -6
  124. package/dist/components/ui/FilterDropdown.js +18 -0
  125. package/dist/components/ui/FormField.d.ts +4 -5
  126. package/dist/components/ui/FormField.js +68 -0
  127. package/dist/components/ui/Grid.d.ts +1 -2
  128. package/dist/components/ui/Grid.js +19 -0
  129. package/dist/components/ui/GridItem.d.ts +1 -2
  130. package/dist/components/ui/GridItem.js +16 -0
  131. package/dist/components/ui/Inline.d.ts +1 -2
  132. package/dist/components/ui/Inline.js +24 -0
  133. package/dist/components/ui/Kbd.d.ts +3 -4
  134. package/dist/components/ui/Kbd.js +13 -0
  135. package/dist/components/ui/ListItemLink.d.ts +3 -4
  136. package/dist/components/ui/ListItemLink.js +44 -0
  137. package/dist/components/ui/LoadingSpinner.d.ts +5 -5
  138. package/dist/components/ui/LoadingSpinner.js +19 -0
  139. package/dist/components/ui/MessageBubble.d.ts +5 -3
  140. package/dist/components/ui/MessageBubble.js +41 -0
  141. package/dist/components/ui/MetadataGrid.d.ts +5 -4
  142. package/dist/components/ui/MetadataGrid.js +76 -0
  143. package/dist/components/ui/MetricCard.d.ts +3 -4
  144. package/dist/components/ui/MetricCard.js +51 -0
  145. package/dist/components/ui/NavTabs.d.ts +2 -3
  146. package/dist/components/ui/NavTabs.js +29 -0
  147. package/dist/components/ui/OAuthButton.d.ts +2 -3
  148. package/dist/components/ui/OAuthButton.js +55 -0
  149. package/dist/components/ui/OverlineLabel.d.ts +3 -4
  150. package/dist/components/ui/OverlineLabel.js +13 -0
  151. package/dist/components/ui/PageHeader.d.ts +3 -4
  152. package/dist/components/ui/PageHeader.js +33 -0
  153. package/dist/components/ui/PageSection.d.ts +3 -4
  154. package/dist/components/ui/PageSection.js +31 -0
  155. package/dist/components/ui/PaginationBar.d.ts +3 -4
  156. package/dist/components/ui/PaginationBar.js +62 -0
  157. package/dist/components/ui/PasswordInput.d.ts +3 -5
  158. package/dist/components/ui/PasswordInput.js +62 -0
  159. package/dist/components/ui/PasswordRequirements.d.ts +3 -3
  160. package/dist/components/ui/PasswordRequirements.js +34 -0
  161. package/dist/components/ui/Popover.d.ts +5 -4
  162. package/dist/components/ui/Popover.js +53 -0
  163. package/dist/components/ui/ProfileHeader.d.ts +3 -4
  164. package/dist/components/ui/ProfileHeader.js +54 -0
  165. package/dist/components/ui/ProgressBar.d.ts +3 -4
  166. package/dist/components/ui/ProgressBar.js +42 -0
  167. package/dist/components/ui/ProseContent.d.ts +3 -4
  168. package/dist/components/ui/ProseContent.js +13 -0
  169. package/dist/components/ui/QrCode.d.ts +3 -4
  170. package/dist/components/ui/QrCode.js +47 -0
  171. package/dist/components/ui/Radio.d.ts +9 -7
  172. package/dist/components/ui/Radio.js +58 -0
  173. package/dist/components/ui/RadioPill.d.ts +10 -8
  174. package/dist/components/ui/RadioPill.js +53 -0
  175. package/dist/components/ui/ReorderList.d.ts +3 -4
  176. package/dist/components/ui/ReorderList.js +123 -0
  177. package/dist/components/ui/SearchInput.d.ts +7 -6
  178. package/dist/components/ui/SearchInput.js +49 -0
  179. package/dist/components/ui/SectionHeader.d.ts +3 -5
  180. package/dist/components/ui/SectionHeader.js +13 -0
  181. package/dist/components/ui/Select.d.ts +4 -6
  182. package/dist/components/ui/Select.js +117 -0
  183. package/dist/components/ui/SelectDropdown.d.ts +10 -6
  184. package/dist/components/ui/SelectDropdown.js +206 -0
  185. package/dist/components/ui/SettingRow.d.ts +5 -7
  186. package/dist/components/ui/SettingRow.js +25 -0
  187. package/dist/components/ui/SideSheet.d.ts +3 -4
  188. package/dist/components/ui/SideSheet.js +164 -0
  189. package/dist/components/ui/Skeleton.d.ts +3 -4
  190. package/dist/components/ui/Skeleton.js +18 -0
  191. package/dist/components/ui/Slider.d.ts +11 -7
  192. package/dist/components/ui/Slider.js +58 -0
  193. package/dist/components/ui/SplitPaneLayout.d.ts +6 -6
  194. package/dist/components/ui/SplitPaneLayout.js +22 -0
  195. package/dist/components/ui/Stack.d.ts +1 -2
  196. package/dist/components/ui/Stack.js +18 -0
  197. package/dist/components/ui/StatusDot.d.ts +3 -3
  198. package/dist/components/ui/StatusDot.js +24 -0
  199. package/dist/components/ui/StepProgress.d.ts +3 -3
  200. package/dist/components/ui/StepProgress.js +33 -0
  201. package/dist/components/ui/Tabs.d.ts +5 -6
  202. package/dist/components/ui/Tabs.js +63 -0
  203. package/dist/components/ui/TextInput.d.ts +3 -5
  204. package/dist/components/ui/TextInput.js +57 -0
  205. package/dist/components/ui/Textarea.d.ts +3 -5
  206. package/dist/components/ui/Textarea.js +59 -0
  207. package/dist/components/ui/ThemePreview.d.ts +3 -4
  208. package/dist/components/ui/ThemePreview.js +28 -0
  209. package/dist/components/ui/TimeInput.d.ts +7 -7
  210. package/dist/components/ui/TimeInput.js +22 -0
  211. package/dist/components/ui/Timeline.d.ts +3 -3
  212. package/dist/components/ui/Timeline.js +29 -0
  213. package/dist/components/ui/Toast.d.ts +0 -1
  214. package/dist/components/ui/Toast.js +121 -0
  215. package/dist/components/ui/Toggle.d.ts +10 -5
  216. package/dist/components/ui/Toggle.js +34 -0
  217. package/dist/components/ui/Toolbar.d.ts +3 -4
  218. package/dist/components/ui/Toolbar.js +70 -0
  219. package/dist/components/ui/Tooltip.d.ts +0 -1
  220. package/dist/components/ui/Tooltip.js +91 -0
  221. package/dist/components/ui/TranscriptLine.d.ts +5 -4
  222. package/dist/components/ui/TranscriptLine.js +40 -0
  223. package/dist/components/ui/UploadDropzone.d.ts +3 -6
  224. package/dist/components/ui/UploadDropzone.js +55 -0
  225. package/dist/components/ui/badgeColors.d.ts +0 -1
  226. package/dist/components/ui/badgeColors.js +5 -0
  227. package/dist/components/ui/calendar/AgendaView.d.ts +0 -1
  228. package/dist/components/ui/calendar/AgendaView.js +140 -0
  229. package/dist/components/ui/calendar/MonthView.d.ts +0 -1
  230. package/dist/components/ui/calendar/MonthView.js +321 -0
  231. package/dist/components/ui/calendar/TimeGrid.d.ts +0 -1
  232. package/dist/components/ui/calendar/TimeGrid.js +501 -0
  233. package/dist/components/ui/calendar/TimelineView.d.ts +0 -1
  234. package/dist/components/ui/calendar/TimelineView.js +311 -0
  235. package/dist/components/ui/calendar/context.d.ts +0 -1
  236. package/dist/components/ui/calendar/context.js +10 -0
  237. package/dist/components/ui/calendar/items.d.ts +0 -1
  238. package/dist/components/ui/calendar/items.js +152 -0
  239. package/dist/components/ui/calendar/types.d.ts +0 -1
  240. package/dist/components/ui/calendar/types.js +38 -0
  241. package/dist/components/ui/calendar/useGridInteraction.d.ts +0 -1
  242. package/dist/components/ui/calendar/useGridInteraction.js +393 -0
  243. package/dist/components/ui/useFieldControl.d.ts +1 -2
  244. package/dist/components/ui/useFieldControl.js +17 -0
  245. package/dist/config/theme.d.ts +0 -1
  246. package/dist/config/theme.js +219 -0
  247. package/dist/core.css +2933 -0
  248. package/dist/hooks/useAnchoredPopup.d.ts +0 -1
  249. package/dist/hooks/useAnchoredPopup.js +162 -0
  250. package/dist/hooks/useApplyTheme.d.ts +0 -1
  251. package/dist/hooks/useApplyTheme.js +16 -0
  252. package/dist/hooks/useControllableState.d.ts +14 -0
  253. package/dist/hooks/useControllableState.js +10 -0
  254. package/dist/hooks/useDismiss.d.ts +0 -1
  255. package/dist/hooks/useDismiss.js +24 -0
  256. package/dist/hooks/useFocusTrap.d.ts +0 -1
  257. package/dist/hooks/useFocusTrap.js +42 -0
  258. package/dist/hooks/useOverlayStack.d.ts +0 -1
  259. package/dist/hooks/useOverlayStack.js +23 -0
  260. package/dist/hooks/usePopover.d.ts +0 -1
  261. package/dist/hooks/usePopover.js +47 -0
  262. package/dist/hooks/usePortalContainer.d.ts +0 -1
  263. package/dist/hooks/usePortalContainer.js +14 -0
  264. package/dist/hooks/useSettings.d.ts +0 -1
  265. package/dist/hooks/useSettings.js +8 -0
  266. package/dist/hooks/useTheme.d.ts +0 -1
  267. package/dist/hooks/useTheme.js +8 -0
  268. package/dist/hooks/useTypeahead.d.ts +0 -1
  269. package/dist/hooks/useTypeahead.js +19 -0
  270. package/dist/index.d.ts +0 -1
  271. package/dist/index.js +133 -12866
  272. package/dist/lib/anchorPlacement.d.ts +0 -1
  273. package/dist/lib/anchorPlacement.js +75 -0
  274. package/dist/lib/calendar.d.ts +0 -1
  275. package/dist/lib/calendar.js +666 -0
  276. package/dist/lib/cn.d.ts +0 -1
  277. package/dist/lib/cn.js +228 -0
  278. package/dist/lib/codeInput.d.ts +0 -1
  279. package/dist/lib/codeInput.js +51 -0
  280. package/dist/lib/dateParts.d.ts +0 -1
  281. package/dist/lib/dateParts.js +31 -0
  282. package/dist/lib/dialogDrag.d.ts +0 -1
  283. package/dist/lib/dialogDrag.js +45 -0
  284. package/dist/lib/dialogResize.d.ts +0 -1
  285. package/dist/lib/dialogResize.js +47 -0
  286. package/dist/lib/formatDate.d.ts +0 -1
  287. package/dist/lib/formatDate.js +29 -0
  288. package/dist/lib/formatMediaTime.d.ts +0 -1
  289. package/dist/lib/formatMediaTime.js +7 -0
  290. package/dist/lib/keyboardStep.d.ts +0 -1
  291. package/dist/lib/layout.d.ts +0 -1
  292. package/dist/lib/layout.js +29 -0
  293. package/dist/lib/math.d.ts +0 -1
  294. package/dist/lib/math.js +6 -0
  295. package/dist/lib/mergeRefs.d.ts +6 -0
  296. package/dist/lib/mergeRefs.js +17 -0
  297. package/dist/lib/months.d.ts +0 -1
  298. package/dist/lib/months.js +30 -0
  299. package/dist/lib/overlayStack.d.ts +0 -1
  300. package/dist/lib/overlayStack.js +47 -0
  301. package/dist/lib/panelResize.d.ts +0 -1
  302. package/dist/lib/panelResize.js +8 -0
  303. package/dist/lib/passwordRequirements.d.ts +0 -1
  304. package/dist/lib/passwordRequirements.js +23 -0
  305. package/dist/lib/qrCode.d.ts +0 -1
  306. package/dist/lib/qrCode.js +570 -0
  307. package/dist/lib/rect.d.ts +0 -1
  308. package/dist/lib/tones.d.ts +0 -1
  309. package/dist/lib/tones.js +104 -0
  310. package/dist/lib/typeahead.d.ts +0 -1
  311. package/dist/lib/typeahead.js +31 -0
  312. package/dist/providers/ControlSizeContext.d.ts +0 -1
  313. package/dist/providers/ControlSizeContext.js +9 -0
  314. package/dist/providers/ControlSizeProvider.d.ts +0 -1
  315. package/dist/providers/ControlSizeProvider.js +11 -0
  316. package/dist/providers/SettingsContext.d.ts +0 -1
  317. package/dist/providers/SettingsContext.js +53 -0
  318. package/dist/providers/SettingsProvider.d.ts +0 -1
  319. package/dist/providers/SettingsProvider.js +249 -0
  320. package/dist/providers/ThemeContext.d.ts +0 -1
  321. package/dist/providers/ThemeContext.js +5 -0
  322. package/dist/providers/ThemeProvider.d.ts +0 -1
  323. package/dist/providers/ThemeProvider.js +17 -0
  324. package/dist/providers/accentColors.d.ts +0 -1
  325. package/dist/providers/accentColors.js +75 -0
  326. package/dist/providers/themeClasses.d.ts +1 -1
  327. package/dist/providers/themeClasses.js +20 -0
  328. package/dist/styles.css +263 -176
  329. package/dist/themes/cyber-brutal-dark.css +53 -0
  330. package/dist/themes/cyber-brutal-light.css +75 -0
  331. package/dist/themes/glass-dark.css +217 -0
  332. package/dist/themes/glass-light.css +215 -0
  333. package/dist/themes/hashi.css +66 -0
  334. package/dist/themes/light-inverted.css +32 -0
  335. package/dist/themes/light.css +1 -0
  336. package/dist/themes/monokai.css +51 -0
  337. package/dist/themes/solarized.css +55 -0
  338. package/package.json +3 -1
  339. package/dist/components/app-shell/AppShell.d.ts.map +0 -1
  340. package/dist/components/app-shell/AuthLayout.d.ts.map +0 -1
  341. package/dist/components/app-shell/BackLink.d.ts.map +0 -1
  342. package/dist/components/app-shell/BottomNav.d.ts.map +0 -1
  343. package/dist/components/app-shell/Breadcrumbs.d.ts.map +0 -1
  344. package/dist/components/app-shell/CommandPalette.d.ts.map +0 -1
  345. package/dist/components/app-shell/MobileDrawer.d.ts.map +0 -1
  346. package/dist/components/app-shell/Sidebar.d.ts.map +0 -1
  347. package/dist/components/app-shell/ThemeMenu.d.ts.map +0 -1
  348. package/dist/components/app-shell/TopBar.d.ts.map +0 -1
  349. package/dist/components/app-shell/commandPaletteEvents.d.ts.map +0 -1
  350. package/dist/components/app-shell/navigation.d.ts.map +0 -1
  351. package/dist/components/app-shell/themeMenuEvents.d.ts.map +0 -1
  352. package/dist/components/app-shell/types.d.ts.map +0 -1
  353. package/dist/components/charts/AreaChart.d.ts.map +0 -1
  354. package/dist/components/charts/BarChart.d.ts.map +0 -1
  355. package/dist/components/charts/DonutChart.d.ts.map +0 -1
  356. package/dist/components/charts/RadarChart.d.ts.map +0 -1
  357. package/dist/components/charts/RadialBarChart.d.ts.map +0 -1
  358. package/dist/components/charts/SparkLine.d.ts.map +0 -1
  359. package/dist/components/charts/StackedBarChart.d.ts.map +0 -1
  360. package/dist/components/charts/VerticalBarChart.d.ts.map +0 -1
  361. package/dist/components/charts/chartUtils.d.ts.map +0 -1
  362. package/dist/components/tables/ColumnPicker.d.ts.map +0 -1
  363. package/dist/components/tables/Pagination.d.ts.map +0 -1
  364. package/dist/components/tables/ResourceTable.d.ts.map +0 -1
  365. package/dist/components/tables/Table.d.ts.map +0 -1
  366. package/dist/components/tables/sortRows.d.ts.map +0 -1
  367. package/dist/components/ui/Accordion.d.ts.map +0 -1
  368. package/dist/components/ui/Alert.d.ts.map +0 -1
  369. package/dist/components/ui/AttachmentList.d.ts.map +0 -1
  370. package/dist/components/ui/AudioPlayer.d.ts.map +0 -1
  371. package/dist/components/ui/AuthCard.d.ts.map +0 -1
  372. package/dist/components/ui/AuthorByline.d.ts.map +0 -1
  373. package/dist/components/ui/Avatar.d.ts.map +0 -1
  374. package/dist/components/ui/Badge.d.ts.map +0 -1
  375. package/dist/components/ui/Button.d.ts.map +0 -1
  376. package/dist/components/ui/Calendar.d.ts.map +0 -1
  377. package/dist/components/ui/CalendarGrid.d.ts.map +0 -1
  378. package/dist/components/ui/Card.d.ts.map +0 -1
  379. package/dist/components/ui/CharacterCount.d.ts.map +0 -1
  380. package/dist/components/ui/Checkbox.d.ts.map +0 -1
  381. package/dist/components/ui/CodeInput.d.ts.map +0 -1
  382. package/dist/components/ui/Combobox.d.ts.map +0 -1
  383. package/dist/components/ui/CopyButton.d.ts.map +0 -1
  384. package/dist/components/ui/DangerZone.d.ts.map +0 -1
  385. package/dist/components/ui/DatePartsInput.d.ts.map +0 -1
  386. package/dist/components/ui/DatePicker.d.ts.map +0 -1
  387. package/dist/components/ui/DateRangePicker.d.ts.map +0 -1
  388. package/dist/components/ui/DateTimePicker.d.ts.map +0 -1
  389. package/dist/components/ui/DetailPanel.d.ts.map +0 -1
  390. package/dist/components/ui/Dialog.d.ts.map +0 -1
  391. package/dist/components/ui/DialogActions.d.ts.map +0 -1
  392. package/dist/components/ui/Disclosure.d.ts.map +0 -1
  393. package/dist/components/ui/DividerLabel.d.ts.map +0 -1
  394. package/dist/components/ui/DropdownMenu.d.ts.map +0 -1
  395. package/dist/components/ui/EmptyState.d.ts.map +0 -1
  396. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  397. package/dist/components/ui/FieldContext.d.ts.map +0 -1
  398. package/dist/components/ui/Fieldset.d.ts.map +0 -1
  399. package/dist/components/ui/FilterButton.d.ts.map +0 -1
  400. package/dist/components/ui/FilterDropdown.d.ts.map +0 -1
  401. package/dist/components/ui/FormField.d.ts.map +0 -1
  402. package/dist/components/ui/Grid.d.ts.map +0 -1
  403. package/dist/components/ui/GridItem.d.ts.map +0 -1
  404. package/dist/components/ui/Inline.d.ts.map +0 -1
  405. package/dist/components/ui/Kbd.d.ts.map +0 -1
  406. package/dist/components/ui/ListItemLink.d.ts.map +0 -1
  407. package/dist/components/ui/LoadingSpinner.d.ts.map +0 -1
  408. package/dist/components/ui/MessageBubble.d.ts.map +0 -1
  409. package/dist/components/ui/MetadataGrid.d.ts.map +0 -1
  410. package/dist/components/ui/MetricCard.d.ts.map +0 -1
  411. package/dist/components/ui/NavTabs.d.ts.map +0 -1
  412. package/dist/components/ui/OAuthButton.d.ts.map +0 -1
  413. package/dist/components/ui/OverlineLabel.d.ts.map +0 -1
  414. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  415. package/dist/components/ui/PageSection.d.ts.map +0 -1
  416. package/dist/components/ui/PaginationBar.d.ts.map +0 -1
  417. package/dist/components/ui/PasswordInput.d.ts.map +0 -1
  418. package/dist/components/ui/PasswordRequirements.d.ts.map +0 -1
  419. package/dist/components/ui/Popover.d.ts.map +0 -1
  420. package/dist/components/ui/ProfileHeader.d.ts.map +0 -1
  421. package/dist/components/ui/ProgressBar.d.ts.map +0 -1
  422. package/dist/components/ui/ProseContent.d.ts.map +0 -1
  423. package/dist/components/ui/QrCode.d.ts.map +0 -1
  424. package/dist/components/ui/Radio.d.ts.map +0 -1
  425. package/dist/components/ui/RadioPill.d.ts.map +0 -1
  426. package/dist/components/ui/ReorderList.d.ts.map +0 -1
  427. package/dist/components/ui/SearchInput.d.ts.map +0 -1
  428. package/dist/components/ui/SectionHeader.d.ts.map +0 -1
  429. package/dist/components/ui/Select.d.ts.map +0 -1
  430. package/dist/components/ui/SelectDropdown.d.ts.map +0 -1
  431. package/dist/components/ui/SettingRow.d.ts.map +0 -1
  432. package/dist/components/ui/SideSheet.d.ts.map +0 -1
  433. package/dist/components/ui/Skeleton.d.ts.map +0 -1
  434. package/dist/components/ui/Slider.d.ts.map +0 -1
  435. package/dist/components/ui/SplitPaneLayout.d.ts.map +0 -1
  436. package/dist/components/ui/Stack.d.ts.map +0 -1
  437. package/dist/components/ui/StatusDot.d.ts.map +0 -1
  438. package/dist/components/ui/StepProgress.d.ts.map +0 -1
  439. package/dist/components/ui/Tabs.d.ts.map +0 -1
  440. package/dist/components/ui/TextInput.d.ts.map +0 -1
  441. package/dist/components/ui/Textarea.d.ts.map +0 -1
  442. package/dist/components/ui/ThemePreview.d.ts.map +0 -1
  443. package/dist/components/ui/TimeInput.d.ts.map +0 -1
  444. package/dist/components/ui/Timeline.d.ts.map +0 -1
  445. package/dist/components/ui/Toast.d.ts.map +0 -1
  446. package/dist/components/ui/Toggle.d.ts.map +0 -1
  447. package/dist/components/ui/Toolbar.d.ts.map +0 -1
  448. package/dist/components/ui/Tooltip.d.ts.map +0 -1
  449. package/dist/components/ui/TranscriptLine.d.ts.map +0 -1
  450. package/dist/components/ui/UploadDropzone.d.ts.map +0 -1
  451. package/dist/components/ui/badgeColors.d.ts.map +0 -1
  452. package/dist/components/ui/calendar/AgendaView.d.ts.map +0 -1
  453. package/dist/components/ui/calendar/MonthView.d.ts.map +0 -1
  454. package/dist/components/ui/calendar/TimeGrid.d.ts.map +0 -1
  455. package/dist/components/ui/calendar/TimelineView.d.ts.map +0 -1
  456. package/dist/components/ui/calendar/context.d.ts.map +0 -1
  457. package/dist/components/ui/calendar/items.d.ts.map +0 -1
  458. package/dist/components/ui/calendar/types.d.ts.map +0 -1
  459. package/dist/components/ui/calendar/useGridInteraction.d.ts.map +0 -1
  460. package/dist/components/ui/useFieldControl.d.ts.map +0 -1
  461. package/dist/config/theme.d.ts.map +0 -1
  462. package/dist/hooks/useAnchoredPopup.d.ts.map +0 -1
  463. package/dist/hooks/useApplyTheme.d.ts.map +0 -1
  464. package/dist/hooks/useDismiss.d.ts.map +0 -1
  465. package/dist/hooks/useFocusTrap.d.ts.map +0 -1
  466. package/dist/hooks/useOverlayStack.d.ts.map +0 -1
  467. package/dist/hooks/usePopover.d.ts.map +0 -1
  468. package/dist/hooks/usePortalContainer.d.ts.map +0 -1
  469. package/dist/hooks/useSettings.d.ts.map +0 -1
  470. package/dist/hooks/useTheme.d.ts.map +0 -1
  471. package/dist/hooks/useTypeahead.d.ts.map +0 -1
  472. package/dist/index.d.ts.map +0 -1
  473. package/dist/lib/anchorPlacement.d.ts.map +0 -1
  474. package/dist/lib/calendar.d.ts.map +0 -1
  475. package/dist/lib/cn.d.ts.map +0 -1
  476. package/dist/lib/codeInput.d.ts.map +0 -1
  477. package/dist/lib/dateParts.d.ts.map +0 -1
  478. package/dist/lib/dialogDrag.d.ts.map +0 -1
  479. package/dist/lib/dialogResize.d.ts.map +0 -1
  480. package/dist/lib/formatDate.d.ts.map +0 -1
  481. package/dist/lib/formatMediaTime.d.ts.map +0 -1
  482. package/dist/lib/keyboardStep.d.ts.map +0 -1
  483. package/dist/lib/layout.d.ts.map +0 -1
  484. package/dist/lib/math.d.ts.map +0 -1
  485. package/dist/lib/months.d.ts.map +0 -1
  486. package/dist/lib/overlayStack.d.ts.map +0 -1
  487. package/dist/lib/panelResize.d.ts.map +0 -1
  488. package/dist/lib/passwordRequirements.d.ts.map +0 -1
  489. package/dist/lib/qrCode.d.ts.map +0 -1
  490. package/dist/lib/rect.d.ts.map +0 -1
  491. package/dist/lib/tones.d.ts.map +0 -1
  492. package/dist/lib/typeahead.d.ts.map +0 -1
  493. package/dist/providers/ControlSizeContext.d.ts.map +0 -1
  494. package/dist/providers/ControlSizeProvider.d.ts.map +0 -1
  495. package/dist/providers/SettingsContext.d.ts.map +0 -1
  496. package/dist/providers/SettingsProvider.d.ts.map +0 -1
  497. package/dist/providers/ThemeContext.d.ts.map +0 -1
  498. package/dist/providers/ThemeProvider.d.ts.map +0 -1
  499. package/dist/providers/accentColors.d.ts.map +0 -1
  500. package/dist/providers/themeClasses.d.ts.map +0 -1
package/dist/lib/cn.js ADDED
@@ -0,0 +1,228 @@
1
+ //#region src/lib/cn.ts
2
+ function e(t) {
3
+ if (typeof t == "string" || typeof t == "number" || typeof t == "bigint") return String(t);
4
+ if (!t || typeof t != "object") return "";
5
+ let n = "";
6
+ if (Array.isArray(t)) for (let r of t) {
7
+ if (!r) continue;
8
+ let t = e(r);
9
+ t && (n = n ? `${n} ${t}` : t);
10
+ }
11
+ else for (let e in t) t[e] && (n = n ? `${n} ${e}` : e);
12
+ return n;
13
+ }
14
+ var t = new Set([
15
+ "block",
16
+ "contents",
17
+ "flex",
18
+ "grid",
19
+ "hidden",
20
+ "inline",
21
+ "inline-block",
22
+ "inline-flex",
23
+ "table"
24
+ ]), n = new Set([
25
+ "text-2xl",
26
+ "text-2xs",
27
+ "text-2xs-f",
28
+ "text-5xl",
29
+ "text-base",
30
+ "text-body",
31
+ "text-lg",
32
+ "text-sm",
33
+ "text-xl",
34
+ "text-xs"
35
+ ]), r = new Set([
36
+ "text-center",
37
+ "text-left",
38
+ "text-right"
39
+ ]), i = new Set(["lowercase", "uppercase"]), a = new Set([
40
+ "font-bold",
41
+ "font-medium",
42
+ "font-normal",
43
+ "font-semibold"
44
+ ]), o = {
45
+ m: [
46
+ "margin-top",
47
+ "margin-right",
48
+ "margin-bottom",
49
+ "margin-left"
50
+ ],
51
+ mx: ["margin-right", "margin-left"],
52
+ my: ["margin-top", "margin-bottom"],
53
+ mt: ["margin-top"],
54
+ mr: ["margin-right"],
55
+ mb: ["margin-bottom"],
56
+ ml: ["margin-left"],
57
+ p: [
58
+ "padding-top",
59
+ "padding-right",
60
+ "padding-bottom",
61
+ "padding-left"
62
+ ],
63
+ px: ["padding-right", "padding-left"],
64
+ py: ["padding-top", "padding-bottom"],
65
+ pt: ["padding-top"],
66
+ pr: ["padding-right"],
67
+ pb: ["padding-bottom"],
68
+ pl: ["padding-left"]
69
+ }, s = {
70
+ inset: [
71
+ "top",
72
+ "right",
73
+ "bottom",
74
+ "left"
75
+ ],
76
+ "inset-x": ["right", "left"],
77
+ "inset-y": ["top", "bottom"],
78
+ top: ["top"],
79
+ right: ["right"],
80
+ bottom: ["bottom"],
81
+ left: ["left"],
82
+ start: ["inset-inline-start"],
83
+ end: ["inset-inline-end"]
84
+ }, c = {
85
+ border: [
86
+ "border-top-width",
87
+ "border-right-width",
88
+ "border-bottom-width",
89
+ "border-left-width"
90
+ ],
91
+ "border-x": ["border-right-width", "border-left-width"],
92
+ "border-y": ["border-top-width", "border-bottom-width"],
93
+ "border-t": ["border-top-width"],
94
+ "border-r": ["border-right-width"],
95
+ "border-b": ["border-bottom-width"],
96
+ "border-l": ["border-left-width"]
97
+ }, l = {
98
+ border: [
99
+ "border-top-color",
100
+ "border-right-color",
101
+ "border-bottom-color",
102
+ "border-left-color"
103
+ ],
104
+ "border-x": ["border-right-color", "border-left-color"],
105
+ "border-y": ["border-top-color", "border-bottom-color"],
106
+ "border-t": ["border-top-color"],
107
+ "border-r": ["border-right-color"],
108
+ "border-b": ["border-bottom-color"],
109
+ "border-l": ["border-left-color"]
110
+ }, u = new Set([
111
+ "border-dashed",
112
+ "border-dotted",
113
+ "border-double",
114
+ "border-hidden",
115
+ "border-none",
116
+ "border-solid"
117
+ ]);
118
+ function d(...t) {
119
+ return f(e(t));
120
+ }
121
+ function f(e) {
122
+ let t = [], n = /* @__PURE__ */ new Map();
123
+ for (let r of e.split(/\s+/)) {
124
+ if (!r) continue;
125
+ let e = p(r);
126
+ if (e.size === 0) {
127
+ let i = n.get(r);
128
+ i !== void 0 && (t[i] = null), n.set(r, t.length), t.push({
129
+ token: r,
130
+ keys: e
131
+ });
132
+ continue;
133
+ }
134
+ for (let n = t.length - 1; n >= 0; n--) {
135
+ let r = t[n];
136
+ r && r.keys.size > 0 && T(r.keys, e) && (t[n] = null);
137
+ }
138
+ t.push({
139
+ token: r,
140
+ keys: e
141
+ });
142
+ }
143
+ return t.filter((e) => !!e).map((e) => e.token).join(" ");
144
+ }
145
+ function p(e) {
146
+ let t = m(e), n = t.pop() ?? e, r = n.startsWith("!"), i = h(r ? n.slice(1) : n), a = `${t.join(":")}|${r ? "!" : ""}`, o = g(i);
147
+ return new Set(o.map((e) => `${a}${e}`));
148
+ }
149
+ function m(e) {
150
+ let t = [], n = 0, r = 0;
151
+ for (let i = 0; i < e.length; i++) {
152
+ let a = e[i];
153
+ a === "[" && n++, a === "]" && (n = Math.max(0, n - 1)), !(a !== ":" || n > 0) && (t.push(e.slice(r, i)), r = i + 1);
154
+ }
155
+ return t.push(e.slice(r)), t;
156
+ }
157
+ function h(e) {
158
+ return e.startsWith("-") ? e.slice(1) : e;
159
+ }
160
+ function g(e) {
161
+ let d = b(e);
162
+ if (d) return [...o[d]];
163
+ let f = x(e);
164
+ if (f) return [...s[f]];
165
+ let p = S(e);
166
+ if (p) return [...c[p]];
167
+ if (t.has(e)) return ["display"];
168
+ if (e === "absolute" || e === "fixed" || e === "relative" || e === "static" || e === "sticky") return ["position"];
169
+ if (e === "visible" || e === "invisible" || e === "collapse") return ["visibility"];
170
+ if (e === "border-collapse") return ["border-collapse"];
171
+ if (u.has(e)) return ["border-style"];
172
+ let m = C(e);
173
+ return m ? [...l[m]] : v(e) || y(e) || (n.has(e) ? ["font-size"] : r.has(e) ? ["text-align"] : i.has(e) ? ["text-transform"] : e === "text-ellipsis" || e === "text-clip" ? ["text-overflow"] : e === "text-wrap" || e === "text-nowrap" || e === "text-balance" || e === "text-pretty" ? ["text-wrap"] : /^text-\[(?:length:)?-?[\d.]+(?:px|rem|em|%|vw|vh)\]$/.test(e) ? ["font-size"] : e.startsWith("text-") ? ["color"] : e === "font-mono" ? ["font-family"] : a.has(e) ? ["font-weight"] : e.startsWith("leading-") ? ["line-height"] : e.startsWith("tracking-") ? ["letter-spacing"] : e.startsWith("w-") ? ["width"] : e.startsWith("min-w-") ? ["min-width"] : e.startsWith("max-w-") ? ["max-width"] : e.startsWith("h-") ? ["height"] : e.startsWith("min-h-") ? ["min-height"] : e.startsWith("max-h-") ? ["max-height"] : e.startsWith("translate-x-") ? ["translate-x"] : e.startsWith("translate-y-") ? ["translate-y"] : e.startsWith("scale-") ? ["scale"] : e.startsWith("rotate-") ? ["rotate"] : e === "transform" ? ["transform"] : e.startsWith("grid-cols-") ? ["grid-template-columns"] : e.startsWith("col-span-") ? ["grid-column"] : e.startsWith("columns-") ? ["columns"] : e === "flex-col" || e === "flex-row" || e === "flex-col-reverse" || e === "flex-row-reverse" ? ["flex-direction"] : e === "flex-wrap" || e === "flex-nowrap" || e === "flex-wrap-reverse" ? ["flex-wrap"] : e === "flex-shrink" || e.startsWith("flex-shrink-") ? ["flex-shrink"] : e === "flex-grow" || e.startsWith("flex-grow-") ? ["flex-grow"] : e.startsWith("flex-") ? ["flex"] : e === "shrink" || e.startsWith("shrink-") ? ["flex-shrink"] : e === "grow" || e.startsWith("grow-") ? ["flex-grow"] : e.startsWith("items-") ? ["align-items"] : e.startsWith("justify-") ? ["justify-content"] : e.startsWith("gap-x-") ? ["column-gap"] : e.startsWith("gap-y-") ? ["row-gap"] : e.startsWith("gap-") ? ["column-gap", "row-gap"] : e.startsWith("space-y-") ? ["space-y"] : e.startsWith("overflow-y-") ? ["overflow-y"] : e.startsWith("overflow-x-") ? ["overflow-x"] : e.startsWith("overflow-") ? ["overflow-x", "overflow-y"] : e.startsWith("object-") ? ["object-fit"] : e.startsWith("aspect-") ? ["aspect-ratio"] : e.startsWith("cursor-") ? ["cursor"] : e.startsWith("opacity-") ? ["opacity"] : e.startsWith("shadow-") ? ["box-shadow"] : e === "ring" || /^ring-\d/.test(e) ? ["ring-width"] : e.startsWith("ring-offset-bg-") ? ["ring-offset-color"] : e.startsWith("ring-offset-") ? ["ring-offset-width"] : e.startsWith("ring-") ? ["ring-color"] : e.startsWith("outline-offset-") ? ["outline-offset"] : /^outline-\d/.test(e) ? ["outline-width"] : e === "outline" || e === "outline-none" ? ["outline-style"] : e.startsWith("outline-") ? ["outline-color"] : e.startsWith("transition-") || e === "transition" ? ["transition-property"] : e.startsWith("duration-") ? ["transition-duration"] : e.startsWith("ease-") ? ["transition-timing-function"] : e.startsWith("animate-") ? ["animation"] : e.startsWith("z-") ? ["z-index"] : e.startsWith("whitespace-") ? ["white-space"] : e.startsWith("break-inside-") ? ["break-inside"] : e.startsWith("break-") ? ["word-break"] : e.startsWith("line-clamp-") ? ["line-clamp"] : e === "list-inside" || e === "list-outside" ? ["list-style-position"] : e.startsWith("list-") ? ["list-style-type"] : e.startsWith("resize") ? ["resize"] : e.startsWith("select-") ? ["user-select"] : e.startsWith("pointer-events-") ? ["pointer-events"] : e.startsWith("appearance-") ? ["appearance"] : e.startsWith("accent-") ? ["accent-color"] : []);
174
+ }
175
+ var _ = {
176
+ "": [
177
+ "tl",
178
+ "tr",
179
+ "br",
180
+ "bl"
181
+ ],
182
+ t: ["tl", "tr"],
183
+ r: ["tr", "br"],
184
+ b: ["bl", "br"],
185
+ l: ["tl", "bl"],
186
+ tl: ["tl"],
187
+ tr: ["tr"],
188
+ br: ["br"],
189
+ bl: ["bl"],
190
+ s: ["ss", "es"],
191
+ e: ["se", "ee"],
192
+ ss: ["ss"],
193
+ se: ["se"],
194
+ es: ["es"],
195
+ ee: ["ee"]
196
+ };
197
+ function v(e) {
198
+ let t = e.match(/^rounded(?:-(tl|tr|br|bl|ss|se|es|ee|t|r|b|l|s|e))?(?:-|$)/);
199
+ if (t) return _[t[1] ?? ""].map((e) => `radius-${e}`);
200
+ }
201
+ function y(e) {
202
+ if (e.startsWith("bg-")) return /^bg-(?:auto|cover|contain)$/.test(e) ? ["background-size"] : /^bg-(?:no-repeat|repeat)(?:-|$)/.test(e) ? ["background-repeat"] : /^bg-(?:fixed|local|scroll)$/.test(e) ? ["background-attachment"] : /^bg-(?:gradient-|linear-|radial-|conic-|none$)/.test(e) ? ["background-image"] : /^bg-(?:center|top|bottom|left|right)(?:-|$)/.test(e) || /^bg-position-/.test(e) ? ["background-position"] : ["background-color"];
203
+ }
204
+ function b(e) {
205
+ return w(e, o);
206
+ }
207
+ function x(e) {
208
+ return w(e, s);
209
+ }
210
+ function S(e) {
211
+ return e === "border" ? "border" : e.match(/^(border(?:-[xytrbl])?)(?=$|-(?:0|2|4|8|\[))/)?.[1];
212
+ }
213
+ function C(e) {
214
+ let t = e.match(/^(border-[xytrbl])-./);
215
+ return t ? t[1] : e.startsWith("border-") ? "border" : void 0;
216
+ }
217
+ function w(e, t) {
218
+ return Object.keys(t).sort((e, t) => String(t).length - String(e).length).find((t) => {
219
+ let n = String(t);
220
+ return e === n || e.startsWith(`${n}-`);
221
+ });
222
+ }
223
+ function T(e, t) {
224
+ for (let n of e) if (!t.has(n)) return !1;
225
+ return !0;
226
+ }
227
+ //#endregion
228
+ export { d as cn };
@@ -25,4 +25,3 @@ export declare function applyText(slots: readonly string[], index: number, text:
25
25
  export declare function applyInput(slots: readonly string[], index: number, raw: string, caret: number | null): CodeEdit | null;
26
26
  /** Backspace clears the box, or steps back and clears the previous one. */
27
27
  export declare function applyBackspace(slots: readonly string[], index: number): CodeEdit | null;
28
- //# sourceMappingURL=codeInput.d.ts.map
@@ -0,0 +1,51 @@
1
+ //#region src/lib/codeInput.ts
2
+ function e(e, t) {
3
+ let n = e.replace(/\D/g, "").slice(0, t);
4
+ return Array.from({ length: t }, (e, t) => n[t] ?? "");
5
+ }
6
+ function t(e, t, n) {
7
+ if (!t || e.length <= t.length) return e;
8
+ let r = e.length - t.length, i = n ?? e.length;
9
+ return i - r >= 0 ? e.slice(i - r, i) : e.slice(-r);
10
+ }
11
+ function n(e, t, n) {
12
+ let r = e.length, i = n.match(RegExp(`(?<!\\d)\\d{${r}}(?!\\d)`));
13
+ if (i) return {
14
+ slots: i[0].split(""),
15
+ focus: r - 1
16
+ };
17
+ if (!/^[\d\s-]+$/.test(n)) return null;
18
+ let a = n.replace(/\D/g, "");
19
+ if (a.length === 0 || a.length > r) return null;
20
+ if (a.length === r) return {
21
+ slots: a.split(""),
22
+ focus: r - 1
23
+ };
24
+ let o = [...e];
25
+ for (let e = 0; e < a.length && t + e < r; e++) o[t + e] = a[e];
26
+ return {
27
+ slots: o,
28
+ focus: Math.min(t + a.length, r - 1)
29
+ };
30
+ }
31
+ function r(e, r, i, a) {
32
+ if (i === "") {
33
+ let t = [...e];
34
+ return t[r] = "", {
35
+ slots: t,
36
+ focus: r
37
+ };
38
+ }
39
+ return n(e, r, t(i, e[r], a));
40
+ }
41
+ function i(e, t) {
42
+ let n = e[t] ? t : t - 1;
43
+ if (n < 0) return null;
44
+ let r = [...e];
45
+ return r[n] = "", {
46
+ slots: r,
47
+ focus: n
48
+ };
49
+ }
50
+ //#endregion
51
+ export { i as applyBackspace, r as applyInput, n as applyText, e as toSlots };
@@ -8,4 +8,3 @@ export declare function datePartsError(value: {
8
8
  minYear?: number | undefined;
9
9
  maxYear?: number | undefined;
10
10
  }): string | undefined;
11
- //# sourceMappingURL=dateParts.d.ts.map
@@ -0,0 +1,31 @@
1
+ //#region src/lib/dateParts.ts
2
+ function e(e, { required: t = !1, minYear: n = 1900, maxYear: r = 2100 } = {}) {
3
+ let i = [
4
+ e.day,
5
+ e.month,
6
+ e.year
7
+ ];
8
+ if (i.every((e) => e === "") && !t) return;
9
+ if (i.some((e) => e === "")) return "Enter a day, month and year.";
10
+ if (i.some((e) => !/^\d+$/.test(e))) return "Use numbers for the day, month and year.";
11
+ let a = Number(e.day), o = Number(e.month), s = Number(e.year);
12
+ if (s < n || s > r) return `Enter a year between ${n} and ${r}.`;
13
+ if (o < 1 || o > 12) return "Enter a month between 1 and 12.";
14
+ let c = [
15
+ 31,
16
+ s % 4 == 0 && (s % 100 != 0 || s % 400 == 0) ? 29 : 28,
17
+ 31,
18
+ 30,
19
+ 31,
20
+ 30,
21
+ 31,
22
+ 31,
23
+ 30,
24
+ 31,
25
+ 30,
26
+ 31
27
+ ][o - 1];
28
+ if (a < 1 || a > c) return `Enter a valid day for this month (1–${c}).`;
29
+ }
30
+ //#endregion
31
+ export { e as datePartsError };
@@ -37,4 +37,3 @@ export declare const NUDGE_STEP_LARGE = 50;
37
37
  * returns `null` so it keeps its usual meaning.
38
38
  */
39
39
  export declare function nudgeDelta(key: string, large: boolean): DragOffset | null;
40
- //# sourceMappingURL=dialogDrag.d.ts.map
@@ -0,0 +1,45 @@
1
+ import { clamp as e } from "./math.js";
2
+ function t(e, t) {
3
+ let n = /^\s*(\d*\.?\d+)(px|rem)\s*$/.exec(e);
4
+ if (!n) return 8;
5
+ let r = Number(n[1]), i = n[2] === "rem" ? r * t : r;
6
+ return Number.isFinite(i) && i >= 0 ? i * 2 : 8;
7
+ }
8
+ function n(t, n, [r, i], [a, o], [s, c], l) {
9
+ let [u, d] = i - r <= c - s - l * 2 ? [r, i] : [a, o], f = n + (s + l - u), p = n + (c - l - d);
10
+ return p < f && (p = f), f = Math.min(f, 0), p = Math.max(p, 0), e(t, f, p);
11
+ }
12
+ function r(e, t, r, i, a, o) {
13
+ return {
14
+ x: n(e.x, t.x, [r.left, r.right], [i.left, i.right], [a.left, a.right], o),
15
+ y: n(e.y, t.y, [r.top, r.bottom], [i.top, i.bottom], [a.top, a.bottom], o)
16
+ };
17
+ }
18
+ function i({ x: e, y: t }) {
19
+ return e === 0 && t === 0 ? "" : `${e}px ${t}px`;
20
+ }
21
+ var a = 10, o = 50;
22
+ function s(e, t) {
23
+ let n = t ? o : a;
24
+ switch (e) {
25
+ case "ArrowLeft": return {
26
+ x: -n,
27
+ y: 0
28
+ };
29
+ case "ArrowRight": return {
30
+ x: n,
31
+ y: 0
32
+ };
33
+ case "ArrowUp": return {
34
+ x: 0,
35
+ y: -n
36
+ };
37
+ case "ArrowDown": return {
38
+ x: 0,
39
+ y: n
40
+ };
41
+ default: return null;
42
+ }
43
+ }
44
+ //#endregion
45
+ export { r as clampDragOffset, t as dragMarginFromSpacing, i as dragTranslate, s as nudgeDelta };
@@ -41,4 +41,3 @@ export declare function clampDialogSize(proposed: DialogBoxSize, { min, max }: {
41
41
  * `null` so it keeps its usual meaning.
42
42
  */
43
43
  export declare function resizeDelta(key: string, large: boolean): DialogBoxSize | null;
44
- //# sourceMappingURL=dialogResize.d.ts.map
@@ -0,0 +1,47 @@
1
+ import { clamp as e } from "./math.js";
2
+ //#region src/lib/dialogResize.ts
3
+ var t = 10, n = 50;
4
+ function r({ left: e, top: t }, n, r, i, a) {
5
+ let o = {
6
+ width: Math.max(0, Math.min(r.width, n.width)),
7
+ height: Math.max(0, Math.min(r.height, n.height))
8
+ };
9
+ return {
10
+ min: o,
11
+ max: {
12
+ width: Math.max(o.width, i.right - a - e),
13
+ height: Math.max(o.height, i.bottom - a - t)
14
+ }
15
+ };
16
+ }
17
+ function i(t, { min: n, max: r }) {
18
+ let i = (t, n, r) => Math.round(e(t, n, r));
19
+ return {
20
+ width: i(t.width, n.width, r.width),
21
+ height: i(t.height, n.height, r.height)
22
+ };
23
+ }
24
+ function a(e, r) {
25
+ let i = r ? n : t;
26
+ switch (e) {
27
+ case "ArrowLeft": return {
28
+ width: -i,
29
+ height: 0
30
+ };
31
+ case "ArrowRight": return {
32
+ width: i,
33
+ height: 0
34
+ };
35
+ case "ArrowUp": return {
36
+ width: 0,
37
+ height: -i
38
+ };
39
+ case "ArrowDown": return {
40
+ width: 0,
41
+ height: i
42
+ };
43
+ default: return null;
44
+ }
45
+ }
46
+ //#endregion
47
+ export { i as clampDialogSize, a as resizeDelta, r as resizeLimits };
@@ -25,4 +25,3 @@ export declare function formatDateLong(dateStr: string): string;
25
25
  * so callers must pass an explicit `baseDate` when used during render.
26
26
  */
27
27
  export declare function formatRelative(date: Date, baseDate?: Date): string;
28
- //# sourceMappingURL=formatDate.d.ts.map
@@ -0,0 +1,29 @@
1
+ import { MONTHS_SHORT as e } from "./months.js";
2
+ //#region src/lib/formatDate.ts
3
+ function t(e) {
4
+ return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
5
+ month: "short",
6
+ day: "numeric",
7
+ year: "numeric"
8
+ });
9
+ }
10
+ function n(e) {
11
+ return (/* @__PURE__ */ new Date(e + "T00:00:00")).toLocaleDateString("en-US", {
12
+ month: "long",
13
+ day: "numeric",
14
+ year: "numeric"
15
+ });
16
+ }
17
+ function r(t, n = /* @__PURE__ */ new Date()) {
18
+ let r = n.getTime() - t.getTime(), i = Math.floor(r / 1e3);
19
+ if (i < 60) return "just now";
20
+ let a = Math.floor(i / 60);
21
+ if (a < 60) return `${a}m ago`;
22
+ let o = Math.floor(a / 60);
23
+ if (o < 24) return `${o}h ago`;
24
+ if (Math.floor(o / 24) === 1) return "yesterday";
25
+ let s = `${e[t.getMonth()]} ${t.getDate()}`;
26
+ return t.getFullYear() === n.getFullYear() ? s : `${s}, ${t.getFullYear()}`;
27
+ }
28
+ //#endregion
29
+ export { n as formatDateLong, t as formatDateShort, r as formatRelative };
@@ -1,3 +1,2 @@
1
1
  /** Format elapsed media seconds as m:ss or h:mm:ss. */
2
2
  export declare function formatMediaTime(seconds: number): string;
3
- //# sourceMappingURL=formatMediaTime.d.ts.map
@@ -0,0 +1,7 @@
1
+ //#region src/lib/formatMediaTime.ts
2
+ function e(e) {
3
+ let t = Math.max(0, Math.floor(e)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = String(t % 60).padStart(2, "0");
4
+ return n > 0 ? `${n}:${String(r).padStart(2, "0")}:${i}` : `${r}:${i}`;
5
+ }
6
+ //#endregion
7
+ export { e as formatMediaTime };
@@ -2,4 +2,3 @@
2
2
  export declare const KEYBOARD_STEP = 10;
3
3
  /** How far (px) one Shift + arrow-key press moves or resizes a dialog. */
4
4
  export declare const KEYBOARD_STEP_LARGE = 50;
5
- //# sourceMappingURL=keyboardStep.d.ts.map
@@ -16,4 +16,3 @@ export declare function columnTemplate(value: number | string): string;
16
16
  export declare function spacingStyle(gap?: LayoutGap, gapX?: LayoutGap, gapY?: LayoutGap): LayoutStyle;
17
17
  export declare function flexAlign(value: LayoutAlign): string;
18
18
  export declare function flexJustify(value: LayoutJustify): string;
19
- //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1,29 @@
1
+ //#region src/lib/layout.ts
2
+ function e(e, t, n, r) {
3
+ let i = typeof t == "object" ? t : { base: t }, a = { [`--ui-${e}-base`]: n(i.base ?? r) };
4
+ for (let t of [
5
+ "sm",
6
+ "md",
7
+ "lg",
8
+ "xl"
9
+ ]) a[`--ui-${e}-${t}`] = i[t] === void 0 ? "initial" : n(i[t]);
10
+ return a;
11
+ }
12
+ function t(e) {
13
+ return typeof e == "number" ? `repeat(${e}, minmax(0, 1fr))` : e;
14
+ }
15
+ function n(e = 0, t, n) {
16
+ return {
17
+ "--ui-gap": `calc(var(--spacing) * ${e})`,
18
+ "--ui-gap-x": t === void 0 ? "initial" : `calc(var(--spacing) * ${t})`,
19
+ "--ui-gap-y": n === void 0 ? "initial" : `calc(var(--spacing) * ${n})`
20
+ };
21
+ }
22
+ function r(e) {
23
+ return e === "start" || e === "end" ? `flex-${e}` : e;
24
+ }
25
+ function i(e) {
26
+ return e === "between" || e === "around" || e === "evenly" ? `space-${e}` : r(e);
27
+ }
28
+ //#endregion
29
+ export { t as columnTemplate, r as flexAlign, i as flexJustify, e as responsiveStyle, n as spacingStyle };
@@ -1,3 +1,2 @@
1
1
  /** Clamps `value` into [min, max]. When `min > max` the result is `max`. */
2
2
  export declare function clamp(value: number, min: number, max: number): number;
3
- //# sourceMappingURL=math.d.ts.map
@@ -0,0 +1,6 @@
1
+ //#region src/lib/math.ts
2
+ function e(e, t, n) {
3
+ return Math.min(n, Math.max(t, e));
4
+ }
5
+ //#endregion
6
+ export { e as clamp };
@@ -0,0 +1,6 @@
1
+ import type { Ref, RefCallback } from "react";
2
+ /**
3
+ * Combines refs so one element can be attached to all of them. Cleanup
4
+ * functions returned by callback refs (React 19) are kept and run on detach.
5
+ */
6
+ export declare function mergeRefs<T>(...refs: (Ref<T> | undefined)[]): RefCallback<T>;
@@ -0,0 +1,17 @@
1
+ //#region src/lib/mergeRefs.ts
2
+ function e(...e) {
3
+ return (t) => {
4
+ let n = e.map((e) => {
5
+ if (typeof e == "function") {
6
+ let n = e(t);
7
+ return typeof n == "function" ? n : () => e(null);
8
+ }
9
+ if (e) return e.current = t, () => {
10
+ e.current = null;
11
+ };
12
+ });
13
+ return () => n.forEach((e) => e?.());
14
+ };
15
+ }
16
+ //#endregion
17
+ export { e as mergeRefs };
@@ -1,4 +1,3 @@
1
1
  /** English month names, indexed 0 (January) to 11 (December). */
2
2
  export declare const MONTHS_SHORT: readonly ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3
3
  export declare const MONTHS_LONG: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
4
- //# sourceMappingURL=months.d.ts.map
@@ -0,0 +1,30 @@
1
+ //#region src/lib/months.ts
2
+ var e = [
3
+ "Jan",
4
+ "Feb",
5
+ "Mar",
6
+ "Apr",
7
+ "May",
8
+ "Jun",
9
+ "Jul",
10
+ "Aug",
11
+ "Sep",
12
+ "Oct",
13
+ "Nov",
14
+ "Dec"
15
+ ], t = [
16
+ "January",
17
+ "February",
18
+ "March",
19
+ "April",
20
+ "May",
21
+ "June",
22
+ "July",
23
+ "August",
24
+ "September",
25
+ "October",
26
+ "November",
27
+ "December"
28
+ ];
29
+ //#endregion
30
+ export { t as MONTHS_LONG, e as MONTHS_SHORT };
@@ -23,4 +23,3 @@ export declare function pushOverlay(node: OverlayNode, onEscape: OverlayEscapeHa
23
23
  * last lock is released.
24
24
  */
25
25
  export declare function lockBodyScroll(doc?: Document): () => void;
26
- //# sourceMappingURL=overlayStack.d.ts.map
@@ -0,0 +1,47 @@
1
+ //#region src/lib/overlayStack.ts
2
+ function e(e) {
3
+ return { parent: e };
4
+ }
5
+ var t = [];
6
+ function n(e, t) {
7
+ for (let n = t.parent; n; n = n.parent) if (n === e) return !0;
8
+ return !1;
9
+ }
10
+ function r(e) {
11
+ if (e.key !== "Escape" || e.defaultPrevented) return;
12
+ let n = e.currentTarget;
13
+ for (let r = t.length - 1; r >= 0; r--) if (t[r].doc === n) {
14
+ t[r].onEscape(e);
15
+ return;
16
+ }
17
+ }
18
+ function i(e, i, a = document) {
19
+ let o = {
20
+ node: e,
21
+ doc: a,
22
+ onEscape: i
23
+ };
24
+ t.some((e) => e.doc === a) || a.addEventListener("keydown", r);
25
+ let s = t.findIndex((t) => n(e, t.node));
26
+ return s === -1 ? t.push(o) : t.splice(s, 0, o), () => {
27
+ let e = t.indexOf(o);
28
+ e !== -1 && (t.splice(e, 1), t.some((e) => e.doc === a) || a.removeEventListener("keydown", r));
29
+ };
30
+ }
31
+ var a = /* @__PURE__ */ new Map();
32
+ function o(e = document) {
33
+ let t = a.get(e);
34
+ t || (t = {
35
+ count: 0,
36
+ overflow: e.body.style.overflow
37
+ }, a.set(e, t), e.body.style.overflow = "hidden"), t.count++;
38
+ let n = !1;
39
+ return () => {
40
+ if (n) return;
41
+ n = !0;
42
+ let t = a.get(e);
43
+ t && (t.count--, !(t.count > 0) && (a.delete(e), e.body.style.overflow = t.overflow));
44
+ };
45
+ }
46
+ //#endregion
47
+ export { e as createOverlayNode, o as lockBodyScroll, i as pushOverlay };
@@ -1,3 +1,2 @@
1
1
  /** Shared keyboard policy for a vertical panel separator. null resets to default. */
2
2
  export declare function panelResizeKey(key: string, width: number, step: number, side?: "left" | "right"): number | null | undefined;
3
- //# sourceMappingURL=panelResize.d.ts.map
@@ -0,0 +1,8 @@
1
+ //#region src/lib/panelResize.ts
2
+ function e(e, t, n, r = "right") {
3
+ if (e === "Home") return null;
4
+ if (e === "End") return Infinity;
5
+ if (!(e !== "ArrowLeft" && e !== "ArrowRight")) return t + (e === "ArrowLeft" == (r === "right") ? n : -n);
6
+ }
7
+ //#endregion
8
+ export { e as panelResizeKey };