haze-ui 1.30.0 → 1.32.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 (330) hide show
  1. package/README.md +67 -1
  2. package/dist/components/ActivityRail/ActivityRail.js +76 -0
  3. package/dist/components/ActivityRail/index.js +3 -0
  4. package/dist/components/BottomSheet/BottomSheet.js +12 -26
  5. package/dist/components/Button/Button.js +33 -15
  6. package/dist/components/Button/ButtonLink.js +12 -21
  7. package/dist/components/Button/styles.js +2 -2
  8. package/dist/components/Cascader/Cascader.js +11 -11
  9. package/dist/components/ColorPicker/ColorPicker.js +4 -4
  10. package/dist/components/Combobox/Combobox.js +128 -119
  11. package/dist/components/Command/Command.js +9 -9
  12. package/dist/components/ConfigProvider/ConfigContext.js +16 -0
  13. package/dist/components/ConfirmDialog/confirm.js +41 -0
  14. package/dist/components/ConfirmDialog/index.js +2 -1
  15. package/dist/components/ConversationList/ConversationList.js +16 -7
  16. package/dist/components/DataTable/DataTable.js +24 -24
  17. package/dist/components/DateTimePicker/DateTimePicker.js +25 -0
  18. package/dist/components/DateTimePicker/index.js +3 -0
  19. package/dist/components/Datepicker/Datepicker.js +8 -7
  20. package/dist/components/Datepicker/DatepickerCore.js +60 -59
  21. package/dist/components/Drawer/Drawer.js +45 -40
  22. package/dist/components/Fieldset/Fieldset.js +25 -0
  23. package/dist/components/Fieldset/index.js +2 -0
  24. package/dist/components/Highlight/Highlight.js +19 -0
  25. package/dist/components/Highlight/index.js +2 -0
  26. package/dist/components/Indicator/Indicator.js +37 -0
  27. package/dist/components/Indicator/index.js +2 -0
  28. package/dist/components/InlineCompletion/InlineCompletion.js +4 -4
  29. package/dist/components/Input/Input.js +9 -7
  30. package/dist/components/Input/InputCore.js +32 -13
  31. package/dist/components/List/List.js +14 -10
  32. package/dist/components/LoadingOverlay/LoadingOverlay.js +30 -0
  33. package/dist/components/LoadingOverlay/index.js +3 -0
  34. package/dist/components/LocaleProvider/ar-sa.js +11 -0
  35. package/dist/components/LocaleProvider/de-de.js +11 -0
  36. package/dist/components/LocaleProvider/es-es.js +11 -0
  37. package/dist/components/LocaleProvider/fr-fr.js +11 -0
  38. package/dist/components/LocaleProvider/it-it.js +11 -0
  39. package/dist/components/LocaleProvider/ja-jp.js +11 -0
  40. package/dist/components/LocaleProvider/ko-kr.js +11 -0
  41. package/dist/components/LocaleProvider/locale.js +11 -0
  42. package/dist/components/LocaleProvider/pt-br.js +11 -0
  43. package/dist/components/LocaleProvider/ru-ru.js +11 -0
  44. package/dist/components/LocaleProvider/zh-cn.js +11 -0
  45. package/dist/components/LogViewer/LogViewer.js +45 -38
  46. package/dist/components/Mark/Mark.js +20 -0
  47. package/dist/components/Mark/index.js +2 -0
  48. package/dist/components/Mentions/MentionsCore.js +3 -3
  49. package/dist/components/Menu/MenuItem.js +6 -4
  50. package/dist/components/NumberFormatter/NumberFormatter.js +16 -0
  51. package/dist/components/NumberFormatter/index.js +2 -0
  52. package/dist/components/OTPInput/OTPInputCore.js +7 -6
  53. package/dist/components/PasswordInput/PasswordInputCore.js +27 -26
  54. package/dist/components/Rating/RatingCore.js +18 -18
  55. package/dist/components/Resizable/Resizable.js +266 -36
  56. package/dist/components/Select/Select.js +28 -23
  57. package/dist/components/Select/SelectCore.js +26 -23
  58. package/dist/components/Select/SelectFloating.js +157 -153
  59. package/dist/components/Sparkline/Sparkline.js +45 -0
  60. package/dist/components/Sparkline/index.js +3 -0
  61. package/dist/components/Sparkline/sparkline-styles.js +18 -0
  62. package/dist/components/Spoiler/Spoiler.js +36 -0
  63. package/dist/components/Spoiler/index.js +3 -0
  64. package/dist/components/StatusBar/StatusBar.js +47 -0
  65. package/dist/components/StatusBar/index.js +3 -0
  66. package/dist/components/TabBar/TabBar.js +60 -0
  67. package/dist/components/TabBar/index.js +3 -0
  68. package/dist/components/Tabs/SortableTabList.js +116 -0
  69. package/dist/components/Tabs/Tab.js +83 -16
  70. package/dist/components/Tabs/TabList.js +94 -38
  71. package/dist/components/Tabs/edge-scroll.js +6 -0
  72. package/dist/components/Tabs/index.js +4 -3
  73. package/dist/components/Tabs/tab-metas.js +24 -0
  74. package/dist/components/TagGroup/SortableTagGroup.js +32 -20
  75. package/dist/components/TagGroup/TagGroup.js +23 -9
  76. package/dist/components/TagGroup/TagGroupItem.js +21 -15
  77. package/dist/components/TagInput/SortableTagInputCore.js +11 -11
  78. package/dist/components/TagInput/TagInputCore.js +10 -10
  79. package/dist/components/TimePicker/TimePickerPanel.js +3 -3
  80. package/dist/components/Toast/ToastContainer.js +5 -5
  81. package/dist/components/Toast/index.js +1 -1
  82. package/dist/components/Toast/{toast2.js → toast-channel.js} +1 -1
  83. package/dist/components/Toast/useToast.js +1 -1
  84. package/dist/components/Tree/SortableTree.js +39 -39
  85. package/dist/components/TreeSelect/TreeSelect.js +6 -6
  86. package/dist/components/VirtualList/VirtualList.js +133 -121
  87. package/dist/components/VisuallyHidden/VisuallyHidden.js +15 -0
  88. package/dist/components/VisuallyHidden/index.js +2 -0
  89. package/dist/components/Workbench/Workbench.js +144 -0
  90. package/dist/components/Workbench/index.js +3 -0
  91. package/dist/css/accordion.css +2 -0
  92. package/dist/css/activity-rail.css +4 -0
  93. package/dist/css/affix.css +2 -0
  94. package/dist/css/alert.css +2 -0
  95. package/dist/css/anchor.css +2 -0
  96. package/dist/css/app-shell.css +3 -1
  97. package/dist/css/approval-card.css +2 -0
  98. package/dist/css/aspect-ratio.css +2 -0
  99. package/dist/css/async-section.css +2 -0
  100. package/dist/css/avatar-group.css +2 -0
  101. package/dist/css/avatar.css +2 -0
  102. package/dist/css/back-to-top.css +2 -0
  103. package/dist/css/badge.css +2 -0
  104. package/dist/css/banner.css +2 -0
  105. package/dist/css/bottom-sheet.css +2 -0
  106. package/dist/css/breadcrumb.css +3 -1
  107. package/dist/css/button.css +3 -2
  108. package/dist/css/calendar.css +2 -0
  109. package/dist/css/card.css +2 -0
  110. package/dist/css/carousel.css +2 -0
  111. package/dist/css/cascader.css +2 -0
  112. package/dist/css/chart.css +2 -0
  113. package/dist/css/chat-container.css +2 -0
  114. package/dist/css/chat-input.css +2 -0
  115. package/dist/css/chat-message.css +2 -0
  116. package/dist/css/checkbox.css +3 -1
  117. package/dist/css/chip.css +2 -0
  118. package/dist/css/code-block.css +2 -0
  119. package/dist/css/collapsible.css +2 -0
  120. package/dist/css/color-picker.css +2 -0
  121. package/dist/css/combobox.css +2 -0
  122. package/dist/css/command.css +3 -1
  123. package/dist/css/confirm-dialog.css +2 -0
  124. package/dist/css/container.css +2 -0
  125. package/dist/css/context-menu.css +3 -1
  126. package/dist/css/conversation-list.css +2 -0
  127. package/dist/css/count-up.css +2 -0
  128. package/dist/css/data-table.css +2 -0
  129. package/dist/css/date-range-picker.css +3 -1
  130. package/dist/css/datepicker.css +2 -0
  131. package/dist/css/descriptions.css +2 -0
  132. package/dist/css/dialog.css +2 -0
  133. package/dist/css/diff-viewer.css +2 -0
  134. package/dist/css/disclosure.css +2 -0
  135. package/dist/css/divider.css +2 -0
  136. package/dist/css/drawer.css +3 -1
  137. package/dist/css/dropdown-menu.css +4 -2
  138. package/dist/css/ellipsis.css +2 -0
  139. package/dist/css/empty.css +2 -0
  140. package/dist/css/fieldset.css +4 -0
  141. package/dist/css/file-input.css +2 -0
  142. package/dist/css/file-preview.css +2 -0
  143. package/dist/css/flex.css +2 -0
  144. package/dist/css/float-button.css +2 -0
  145. package/dist/css/form.css +2 -0
  146. package/dist/css/grid.css +2 -0
  147. package/dist/css/hover-card.css +3 -1
  148. package/dist/css/icon.css +2 -0
  149. package/dist/css/image.css +2 -0
  150. package/dist/css/indicator.css +4 -0
  151. package/dist/css/inline-completion.css +2 -0
  152. package/dist/css/inline-edit.css +2 -0
  153. package/dist/css/input.css +3 -1
  154. package/dist/css/json-view.css +2 -0
  155. package/dist/css/kbd.css +2 -0
  156. package/dist/css/list.css +3 -1
  157. package/dist/css/loading-overlay.css +4 -0
  158. package/dist/css/log-viewer.css +2 -0
  159. package/dist/css/mark.css +4 -0
  160. package/dist/css/markdown-renderer.css +2 -0
  161. package/dist/css/masonry.css +2 -0
  162. package/dist/css/mentions.css +2 -0
  163. package/dist/css/menu.css +5 -3
  164. package/dist/css/model-picker.css +2 -0
  165. package/dist/css/navigation-bar.css +2 -0
  166. package/dist/css/number-input.css +2 -0
  167. package/dist/css/otp-input.css +2 -0
  168. package/dist/css/pagination.css +2 -0
  169. package/dist/css/password-input.css +3 -1
  170. package/dist/css/popover.css +3 -1
  171. package/dist/css/progress.css +2 -0
  172. package/dist/css/prompt-input.css +2 -0
  173. package/dist/css/qr-code.css +2 -0
  174. package/dist/css/radio.css +3 -1
  175. package/dist/css/rating.css +2 -0
  176. package/dist/css/resizable.css +3 -1
  177. package/dist/css/result.css +2 -0
  178. package/dist/css/scroll-area.css +2 -0
  179. package/dist/css/segmented.css +3 -1
  180. package/dist/css/select.css +2 -0
  181. package/dist/css/sidebar.css +3 -1
  182. package/dist/css/signature.css +2 -0
  183. package/dist/css/skeleton.css +2 -0
  184. package/dist/css/slider.css +3 -1
  185. package/dist/css/sources.css +2 -0
  186. package/dist/css/sparkline.css +4 -0
  187. package/dist/css/spinner.css +2 -0
  188. package/dist/css/spoiler.css +4 -0
  189. package/dist/css/stat.css +2 -0
  190. package/dist/css/status-bar.css +4 -0
  191. package/dist/css/step-timeline.css +2 -0
  192. package/dist/css/stepper.css +2 -0
  193. package/dist/css/streaming-text.css +2 -0
  194. package/dist/css/swipe-action.css +2 -0
  195. package/dist/css/switch.css +3 -1
  196. package/dist/css/tab-bar.css +4 -0
  197. package/dist/css/table.css +2 -0
  198. package/dist/css/tabs.css +5 -2
  199. package/dist/css/tag-group.css +2 -0
  200. package/dist/css/tag-input.css +2 -0
  201. package/dist/css/tag.css +3 -1
  202. package/dist/css/textarea.css +2 -0
  203. package/dist/css/thinking-indicator.css +2 -0
  204. package/dist/css/time-picker.css +2 -0
  205. package/dist/css/timeline.css +2 -0
  206. package/dist/css/toast.css +2 -0
  207. package/dist/css/toggle.css +2 -0
  208. package/dist/css/token-counter.css +2 -0
  209. package/dist/css/tokens.css +2 -0
  210. package/dist/css/tool-call-card.css +2 -0
  211. package/dist/css/toolbar.css +2 -0
  212. package/dist/css/tooltip.css +2 -0
  213. package/dist/css/tour.css +2 -0
  214. package/dist/css/transfer.css +2 -0
  215. package/dist/css/tree-select.css +2 -0
  216. package/dist/css/tree.css +3 -1
  217. package/dist/css/typography.css +2 -0
  218. package/dist/css/upload.css +2 -0
  219. package/dist/css/virtual-list.css +2 -0
  220. package/dist/css/visually-hidden.css +4 -0
  221. package/dist/css/watermark.css +2 -0
  222. package/dist/css/workbench.css +4 -0
  223. package/dist/css-manifest.json +202 -1
  224. package/dist/dates/adapter.js +9 -1
  225. package/dist/dates/buddhist.js +43 -0
  226. package/dist/dates/ethiopic.js +67 -0
  227. package/dist/dates/hebrew.js +95 -0
  228. package/dist/dates/japanese.js +41 -0
  229. package/dist/dates/persian.js +121 -0
  230. package/dist/dates/registry.js +14 -4
  231. package/dist/haze-ui.css +435 -29
  232. package/dist/headless/index.js +18 -17
  233. package/dist/hooks/useBusyPressable.js +10 -0
  234. package/dist/index.js +263 -241
  235. package/dist/mcp-docs.json +1073 -33
  236. package/dist/registry.json +256 -14
  237. package/dist/types/components/ActivityRail/ActivityRail.d.ts +30 -0
  238. package/dist/types/components/ActivityRail/index.d.ts +4 -0
  239. package/dist/types/components/Button/Button.d.ts +50 -5
  240. package/dist/types/components/Button/ButtonLink.d.ts +27 -15
  241. package/dist/types/components/Button/styles.d.ts +34 -0
  242. package/dist/types/components/Combobox/Combobox.d.ts +20 -2
  243. package/dist/types/components/Combobox/index.d.ts +1 -1
  244. package/dist/types/components/ConfigProvider/ConfigContext.d.ts +20 -0
  245. package/dist/types/components/ConfirmDialog/ConfirmDialog.d.ts +1 -1
  246. package/dist/types/components/ConfirmDialog/confirm.d.ts +33 -0
  247. package/dist/types/components/ConfirmDialog/index.d.ts +2 -0
  248. package/dist/types/components/ConversationList/ConversationList.d.ts +10 -1
  249. package/dist/types/components/DateTimePicker/DateTimePicker.d.ts +36 -0
  250. package/dist/types/components/DateTimePicker/index.d.ts +2 -0
  251. package/dist/types/components/Datepicker/Datepicker.d.ts +3 -3
  252. package/dist/types/components/Datepicker/DatepickerCore.d.ts +3 -3
  253. package/dist/types/components/Drawer/Drawer.d.ts +15 -2
  254. package/dist/types/components/Drawer/index.d.ts +1 -1
  255. package/dist/types/components/Fieldset/Fieldset.d.ts +16 -0
  256. package/dist/types/components/Fieldset/index.d.ts +2 -0
  257. package/dist/types/components/Highlight/Highlight.d.ts +27 -0
  258. package/dist/types/components/Highlight/index.d.ts +2 -0
  259. package/dist/types/components/Indicator/Indicator.d.ts +24 -0
  260. package/dist/types/components/Indicator/index.d.ts +2 -0
  261. package/dist/types/components/Input/Input.d.ts +8 -2
  262. package/dist/types/components/Input/InputCore.d.ts +11 -2
  263. package/dist/types/components/List/List.d.ts +10 -1
  264. package/dist/types/components/LoadingOverlay/LoadingOverlay.d.ts +25 -0
  265. package/dist/types/components/LoadingOverlay/index.d.ts +2 -0
  266. package/dist/types/components/LocaleProvider/locale.d.ts +11 -0
  267. package/dist/types/components/LogViewer/LogViewer.d.ts +10 -1
  268. package/dist/types/components/Mark/Mark.d.ts +12 -0
  269. package/dist/types/components/Mark/index.d.ts +2 -0
  270. package/dist/types/components/Menu/MenuItem.d.ts +15 -4
  271. package/dist/types/components/NumberFormatter/NumberFormatter.d.ts +23 -0
  272. package/dist/types/components/NumberFormatter/index.d.ts +2 -0
  273. package/dist/types/components/Resizable/Resizable.d.ts +24 -7
  274. package/dist/types/components/Resizable/index.d.ts +1 -1
  275. package/dist/types/components/Select/Select.d.ts +23 -2
  276. package/dist/types/components/Select/SelectCore.d.ts +4 -1
  277. package/dist/types/components/Select/SelectFloating.d.ts +6 -1
  278. package/dist/types/components/Select/index.d.ts +1 -1
  279. package/dist/types/components/Sparkline/Sparkline.d.ts +31 -0
  280. package/dist/types/components/Sparkline/index.d.ts +3 -0
  281. package/dist/types/components/Sparkline/sparkline-styles.d.ts +26 -0
  282. package/dist/types/components/Spoiler/Spoiler.d.ts +20 -0
  283. package/dist/types/components/Spoiler/index.d.ts +2 -0
  284. package/dist/types/components/StatusBar/StatusBar.d.ts +18 -0
  285. package/dist/types/components/StatusBar/index.d.ts +3 -0
  286. package/dist/types/components/TabBar/TabBar.d.ts +23 -0
  287. package/dist/types/components/TabBar/index.d.ts +4 -0
  288. package/dist/types/components/Tabs/SortableTabList.d.ts +46 -0
  289. package/dist/types/components/Tabs/Tab.d.ts +54 -3
  290. package/dist/types/components/Tabs/TabList.d.ts +26 -2
  291. package/dist/types/components/Tabs/edge-scroll.d.ts +17 -0
  292. package/dist/types/components/Tabs/index.d.ts +3 -1
  293. package/dist/types/components/Tabs/tab-metas.d.ts +20 -0
  294. package/dist/types/components/TagGroup/SortableTagGroup.d.ts +5 -1
  295. package/dist/types/components/TagGroup/TagGroup.d.ts +24 -2
  296. package/dist/types/components/TagGroup/index.d.ts +1 -1
  297. package/dist/types/components/Toast/index.d.ts +2 -2
  298. package/dist/types/components/Toast/useToast.d.ts +1 -1
  299. package/dist/types/components/VirtualList/VirtualList.d.ts +20 -1
  300. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +4 -0
  301. package/dist/types/components/VisuallyHidden/index.d.ts +2 -0
  302. package/dist/types/components/Workbench/Workbench.d.ts +50 -0
  303. package/dist/types/components/Workbench/index.d.ts +2 -0
  304. package/dist/types/dates/adapter.d.ts +33 -6
  305. package/dist/types/dates/buddhist.d.ts +14 -0
  306. package/dist/types/dates/ethiopic.d.ts +15 -0
  307. package/dist/types/dates/hebrew.d.ts +19 -0
  308. package/dist/types/dates/index.d.ts +5 -0
  309. package/dist/types/dates/japanese.d.ts +16 -0
  310. package/dist/types/dates/persian.d.ts +18 -0
  311. package/dist/types/dates/registry.d.ts +1 -1
  312. package/dist/types/headless/index.d.ts +9 -0
  313. package/dist/types/hooks/index.d.ts +13 -0
  314. package/dist/types/hooks/useBusyPressable.d.ts +33 -0
  315. package/dist/types/hooks/useElementSize.d.ts +38 -0
  316. package/dist/types/hooks/useIdle.d.ts +45 -0
  317. package/dist/types/hooks/useMutationObserver.d.ts +35 -0
  318. package/dist/types/hooks/useNetwork.d.ts +31 -0
  319. package/dist/types/hooks/useOrientation.d.ts +23 -0
  320. package/dist/types/hooks/useResizeObserver.d.ts +48 -0
  321. package/dist/types/index.d.ts +37 -9
  322. package/dist/types/utils/sortable.d.ts +8 -1
  323. package/dist/types/utils/use-end-reached.d.ts +56 -0
  324. package/dist/types/utils/viewport.d.ts +12 -0
  325. package/dist/utils/sortable-shared.js +3 -3
  326. package/dist/utils/sortable.js +15 -14
  327. package/dist/utils/use-end-reached.js +46 -0
  328. package/dist/utils/viewport.js +20 -0
  329. package/package.json +13 -5
  330. /package/dist/types/components/Toast/{toast.d.ts → toast-channel.d.ts} +0 -0
@@ -2,6 +2,8 @@
2
2
  "families": {
3
3
  "Accordion": "accordion",
4
4
  "AccordionItem": "accordion",
5
+ "ActivityRail": "activity-rail",
6
+ "ActivityRailItem": "activity-rail",
5
7
  "Affix": "affix",
6
8
  "Alert": "alert",
7
9
  "Anchor": "anchor",
@@ -81,6 +83,7 @@
81
83
  "DropdownMenuTrigger": "dropdown-menu",
82
84
  "Ellipsis": "ellipsis",
83
85
  "Empty": "empty",
86
+ "Fieldset": "fieldset",
84
87
  "FileInput": "file-input",
85
88
  "FilePreview": "file-preview",
86
89
  "Flex": "flex",
@@ -94,6 +97,7 @@
94
97
  "HoverCard": "hover-card",
95
98
  "Icon": "icon",
96
99
  "Image": "image",
100
+ "Indicator": "indicator",
97
101
  "InlineCompletion": "inline-completion",
98
102
  "InlineEdit": "inline-edit",
99
103
  "Input": "input",
@@ -102,7 +106,9 @@
102
106
  "Kbd": "kbd",
103
107
  "List": "list",
104
108
  "ListItem": "list",
109
+ "LoadingOverlay": "loading-overlay",
105
110
  "LogViewer": "log-viewer",
111
+ "Mark": "mark",
106
112
  "MarkdownRenderer": "markdown-renderer",
107
113
  "Masonry": "masonry",
108
114
  "Mentions": "mentions",
@@ -157,17 +163,22 @@
157
163
  "Skeleton": "skeleton",
158
164
  "Slider": "slider",
159
165
  "SliderCore": "slider",
166
+ "SortableTabList": "tabs",
160
167
  "SortableTagGroup": "tag-group",
161
168
  "SortableTagInput": "tag-input",
162
169
  "SortableTagInputCore": "tag-input",
163
170
  "SortableTree": "tree",
164
171
  "Sources": "sources",
172
+ "Sparkline": "sparkline",
165
173
  "Spinner": "spinner",
166
174
  "SplitterGroup": "resizable",
167
175
  "SplitterHandle": "resizable",
168
176
  "SplitterPanel": "resizable",
177
+ "Spoiler": "spoiler",
169
178
  "Stat": "stat",
170
179
  "StatGroup": "stat",
180
+ "StatusBar": "status-bar",
181
+ "StatusItem": "status-bar",
171
182
  "Step": "stepper",
172
183
  "StepTimeline": "step-timeline",
173
184
  "StepTimelineItem": "step-timeline",
@@ -177,6 +188,8 @@
177
188
  "Switch": "switch",
178
189
  "SwitchCore": "switch",
179
190
  "Tab": "tabs",
191
+ "TabBar": "tab-bar",
192
+ "TabBarItem": "tab-bar",
180
193
  "TabList": "tabs",
181
194
  "TabPanel": "tabs",
182
195
  "Table": "table",
@@ -218,12 +231,15 @@
218
231
  "Upload": "upload",
219
232
  "UploadCore": "upload",
220
233
  "VirtualList": "virtual-list",
234
+ "VisuallyHidden": "visually-hidden",
221
235
  "Watermark": "watermark",
236
+ "Workbench": "workbench",
222
237
  "badgeSizes": "badge",
223
238
  "badgeVariants": "badge",
224
239
  "buttonSizes": "button",
225
240
  "buttonVariants": "button",
226
241
  "compact": "tokens",
242
+ "confirm": "confirm-dialog",
227
243
  "cyanTheme": "tokens",
228
244
  "darkTheme": "tokens",
229
245
  "dataTableAvg": "data-table",
@@ -243,6 +259,8 @@
243
259
  "setServerErrors": "form",
244
260
  "setValue": "form",
245
261
  "spacing": "tokens",
262
+ "sparklineToneFills": "sparkline",
263
+ "sparklineToneStrokes": "sparkline",
246
264
  "standardSchemaFormValidator": "form",
247
265
  "standardSchemaResolver": "form",
248
266
  "tealTheme": "tokens",
@@ -262,10 +280,14 @@
262
280
  "BRAND_SEEDS",
263
281
  "COMPONENT_TOKENS",
264
282
  "ConfigProvider",
283
+ "DateTimePicker",
265
284
  "Fullscreen",
285
+ "Highlight",
266
286
  "LocaleProvider",
287
+ "NumberFormatter",
267
288
  "TOKEN_REGISTRY",
268
289
  "arSA",
290
+ "buddhistAdapter",
269
291
  "buildBrandTheme",
270
292
  "createBrandTheme",
271
293
  "createStrings",
@@ -273,18 +295,22 @@
273
295
  "defaultStrings",
274
296
  "enUS",
275
297
  "esES",
298
+ "ethiopicAdapter",
276
299
  "formatInTimeZone",
277
300
  "frFR",
278
301
  "getAdapter",
279
302
  "getDirection",
280
303
  "getZonedParts",
281
304
  "gregoryAdapter",
305
+ "hebrewAdapter",
282
306
  "hotkey",
283
307
  "islamicUmalquraAdapter",
284
308
  "itIT",
285
309
  "jaJP",
310
+ "japaneseAdapter",
286
311
  "koKR",
287
312
  "localeDirection",
313
+ "persianAdapter",
288
314
  "ptBR",
289
315
  "ruRU",
290
316
  "useClickOutside",
@@ -306,5 +332,180 @@
306
332
  "useStrings",
307
333
  "useTitle",
308
334
  "zhCN"
309
- ]
335
+ ],
336
+ "dependencies": {
337
+ "ActivityRail": [
338
+ "badge",
339
+ "tooltip"
340
+ ],
341
+ "ActivityRailItem": [
342
+ "badge",
343
+ "tooltip"
344
+ ],
345
+ "Button": [
346
+ "spinner"
347
+ ],
348
+ "ButtonLink": [
349
+ "spinner"
350
+ ],
351
+ "Cascader": [
352
+ "spinner",
353
+ "virtual-list"
354
+ ],
355
+ "Combobox": [
356
+ "chip",
357
+ "spinner",
358
+ "virtual-list"
359
+ ],
360
+ "Command": [
361
+ "kbd"
362
+ ],
363
+ "CommandDialog": [
364
+ "dialog",
365
+ "kbd"
366
+ ],
367
+ "CommandGroup": [
368
+ "kbd"
369
+ ],
370
+ "CommandInput": [
371
+ "kbd"
372
+ ],
373
+ "CommandItem": [
374
+ "kbd"
375
+ ],
376
+ "CommandList": [
377
+ "kbd"
378
+ ],
379
+ "DataTable": [
380
+ "checkbox",
381
+ "dropdown-menu",
382
+ "empty",
383
+ "input",
384
+ "pagination",
385
+ "skeleton",
386
+ "table",
387
+ "virtual-list"
388
+ ],
389
+ "DateRangePicker": [
390
+ "calendar"
391
+ ],
392
+ "DateRangePickerCore": [
393
+ "calendar"
394
+ ],
395
+ "DateTimePicker": [
396
+ "calendar",
397
+ "datepicker"
398
+ ],
399
+ "Datepicker": [
400
+ "calendar"
401
+ ],
402
+ "DatepickerCore": [
403
+ "calendar"
404
+ ],
405
+ "Ellipsis": [
406
+ "tooltip"
407
+ ],
408
+ "FilePreview": [
409
+ "progress"
410
+ ],
411
+ "Highlight": [
412
+ "mark"
413
+ ],
414
+ "LoadingOverlay": [
415
+ "spinner"
416
+ ],
417
+ "PasswordInput": [
418
+ "input"
419
+ ],
420
+ "PasswordInputCore": [
421
+ "input"
422
+ ],
423
+ "Select": [
424
+ "chip",
425
+ "spinner",
426
+ "virtual-list"
427
+ ],
428
+ "SelectCore": [
429
+ "chip",
430
+ "spinner",
431
+ "virtual-list"
432
+ ],
433
+ "Sidebar": [
434
+ "tooltip"
435
+ ],
436
+ "SidebarFooter": [
437
+ "tooltip"
438
+ ],
439
+ "SidebarGroup": [
440
+ "tooltip"
441
+ ],
442
+ "SidebarItem": [
443
+ "tooltip"
444
+ ],
445
+ "SidebarToggle": [
446
+ "tooltip"
447
+ ],
448
+ "SortableTabList": [
449
+ "menu"
450
+ ],
451
+ "SortableTree": [
452
+ "virtual-list"
453
+ ],
454
+ "TabBar": [
455
+ "badge"
456
+ ],
457
+ "TabBarItem": [
458
+ "badge"
459
+ ],
460
+ "TabList": [
461
+ "menu"
462
+ ],
463
+ "Toggle": [
464
+ "button"
465
+ ],
466
+ "ToggleCore": [
467
+ "button"
468
+ ],
469
+ "ToolbarButton": [
470
+ "button"
471
+ ],
472
+ "ToolbarToggle": [
473
+ "button"
474
+ ],
475
+ "Tree": [
476
+ "virtual-list"
477
+ ],
478
+ "TreeSelect": [
479
+ "chip",
480
+ "tree",
481
+ "virtual-list"
482
+ ],
483
+ "Upload": [
484
+ "progress"
485
+ ],
486
+ "UploadCore": [
487
+ "progress"
488
+ ],
489
+ "Workbench": [
490
+ "resizable"
491
+ ],
492
+ "buddhistAdapter": [
493
+ "calendar"
494
+ ],
495
+ "getAdapter": [
496
+ "calendar"
497
+ ],
498
+ "gregoryAdapter": [
499
+ "calendar"
500
+ ],
501
+ "islamicUmalquraAdapter": [
502
+ "calendar"
503
+ ],
504
+ "japaneseAdapter": [
505
+ "calendar"
506
+ ],
507
+ "persianAdapter": [
508
+ "calendar"
509
+ ]
510
+ }
310
511
  }
@@ -9,5 +9,13 @@ function e(e, t, n) {
9
9
  for (let e of r) if (e.type === "era") return e.value;
10
10
  return "";
11
11
  }
12
+ function t(e, t, n) {
13
+ let r = /* @__PURE__ */ new Date(0);
14
+ return r.setUTCFullYear(e, t, n), r.getTime();
15
+ }
16
+ function n(e) {
17
+ let t = new Date(e), n = t.getUTCFullYear(), r = t.getUTCMonth(), i = t.getUTCDate(), a = new Date(n, r, i);
18
+ return n >= 0 && n <= 99 && a.setFullYear(n, r, i), a;
19
+ }
12
20
  //#endregion
13
- export { e as eraOfDate };
21
+ export { e as eraOfDate, n as localMidnightOf, t as utcCivilMs };
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { addMonths as e, getDaysInMonth as t } from "../components/Calendar/date.js";
3
+ import { eraOfDate as n, localMidnightOf as r, utcCivilMs as i } from "./adapter.js";
4
+ //#region src/lib/dates/buddhist.ts
5
+ var a = 543, o = {
6
+ identifier: "buddhist",
7
+ fromGregorian(e) {
8
+ return {
9
+ year: e.getFullYear() + a,
10
+ month: e.getMonth(),
11
+ day: e.getDate()
12
+ };
13
+ },
14
+ toGregorian(n) {
15
+ let o = n.year - a, s = e(o, n.month, 0);
16
+ if (n.day < 1 || n.day > t(s.year, s.month)) throw RangeError(`Not a buddhist date: ${n.year}-${n.month + 1}-${n.day}`);
17
+ return r(i(s.year, s.month, n.day));
18
+ },
19
+ getDaysInMonth(e, n) {
20
+ return t(e - a, n);
21
+ },
22
+ addMonths(n, r) {
23
+ let i = e(n.year, n.month, r), o = t(i.year - a, i.month);
24
+ return {
25
+ year: i.year,
26
+ month: i.month,
27
+ day: Math.min(n.day, o)
28
+ };
29
+ },
30
+ monthNames(e = "en", t = "long") {
31
+ let n = new Intl.DateTimeFormat(e, {
32
+ calendar: "buddhist",
33
+ month: t,
34
+ timeZone: "UTC"
35
+ });
36
+ return Array.from({ length: 12 }, (e, t) => n.format(new Date(Date.UTC(2026, t, 15))));
37
+ },
38
+ era(e, t = "en") {
39
+ return n(new Date(i(e - a, 5, 15)), "buddhist", t);
40
+ }
41
+ };
42
+ //#endregion
43
+ export { o as buddhistAdapter };
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { eraOfDate as e, localMidnightOf as t, utcCivilMs as n } from "./adapter.js";
3
+ //#region src/lib/dates/ethiopic.ts
4
+ var r = 864e5, i = -716367, a = 13, o = 12;
5
+ function s(e) {
6
+ return e > 0 && e % 4 == 3;
7
+ }
8
+ function c(e, t) {
9
+ return {
10
+ year: e + Math.floor(t / a),
11
+ month: (t % a + a) % a
12
+ };
13
+ }
14
+ function l(e, t) {
15
+ return t === o ? s(e) ? 6 : 5 : 30;
16
+ }
17
+ function u(e, t, n) {
18
+ return i + 365 * (e - 1) + Math.floor(e / 4) + 30 * t + n - 1;
19
+ }
20
+ function d(e) {
21
+ let t = e - i, n = (e) => 365 * (e - 1) + Math.floor(e / 4), r = Math.floor((4 * t + 1463) / 1461);
22
+ for (; n(r) > t;) --r;
23
+ for (; n(r + 1) <= t;) r += 1;
24
+ let a = t - n(r);
25
+ return {
26
+ year: r,
27
+ month: Math.floor(a / 30),
28
+ day: a % 30 + 1
29
+ };
30
+ }
31
+ var f = 2017, p = {
32
+ identifier: "ethiopic",
33
+ fromGregorian(e) {
34
+ let t = n(e.getFullYear(), e.getMonth(), e.getDate());
35
+ return d(Math.floor(t / r));
36
+ },
37
+ toGregorian(e) {
38
+ let n = c(e.year, e.month);
39
+ if (e.day < 1 || e.day > l(n.year, n.month)) throw RangeError(`Not an ethiopic date: ${e.year}-${e.month + 1}-${e.day}`);
40
+ return t(u(n.year, n.month, e.day) * r);
41
+ },
42
+ getDaysInMonth(e, t) {
43
+ let n = c(e, t);
44
+ return l(n.year, n.month);
45
+ },
46
+ addMonths(e, t) {
47
+ let n = e.year * a + e.month + t, r = Math.floor(n / a), i = (n % a + a) % a;
48
+ return {
49
+ year: r,
50
+ month: i,
51
+ day: Math.min(e.day, l(r, i))
52
+ };
53
+ },
54
+ monthNames(e = "en", t = "long") {
55
+ let n = new Intl.DateTimeFormat(e, {
56
+ calendar: "ethiopic",
57
+ month: t,
58
+ timeZone: "UTC"
59
+ });
60
+ return Array.from({ length: a }, (e, t) => n.format(/* @__PURE__ */ new Date(u(f, t, t === o ? 3 : 15) * r)));
61
+ },
62
+ era(t, n = "en") {
63
+ return e(/* @__PURE__ */ new Date(u(t, 0, 1) * r), "ethiopic", n);
64
+ }
65
+ };
66
+ //#endregion
67
+ export { p as ethiopicAdapter };
@@ -0,0 +1,95 @@
1
+ "use client";
2
+ import { eraOfDate as e, localMidnightOf as t, utcCivilMs as n } from "./adapter.js";
3
+ //#region src/lib/dates/hebrew.ts
4
+ var r = 864e5, i = 765433, a = 57444, o = 19440, s = 9924, c = 16789, l = -2092592;
5
+ function u(e) {
6
+ return (e * 7 + 1) % 19 < 7;
7
+ }
8
+ function d(e) {
9
+ return Math.floor((235 * e - 234) / 19);
10
+ }
11
+ function f(e) {
12
+ let t = a + i * d(e), n = Math.floor(t / 25920), r = t % 25920, l = (n % 7 + 7) % 7, f = n;
13
+ r >= o && (f += 1);
14
+ let p = (f % 7 + 7) % 7;
15
+ return (p === 1 || p === 4 || p === 6) && (f += 1), !u(e) && l === 3 && r >= s && r < o && (f += 2), !u(e) && u(e - 1) && l === 2 && r >= c && r < o && (f += 1), f;
16
+ }
17
+ function p(e) {
18
+ return u(e) ? 13 : 12;
19
+ }
20
+ function m(e, t) {
21
+ if (t === 1 || t === 2) {
22
+ let n = f(e + 1) - f(e);
23
+ return t === 1 ? n === 355 || n === 385 ? 30 : 29 : n === 353 || n === 383 ? 29 : 30;
24
+ }
25
+ return t === 0 ? 30 : t === 3 ? 29 : t === 4 ? 30 : t === 5 ? u(e) ? 30 : 29 : u(e) ? t % 2 == 0 ? 29 : 30 : t % 2 == 0 ? 30 : 29;
26
+ }
27
+ function h(e, t) {
28
+ let n = e, r = t;
29
+ for (; r < 0;) --n, r += p(n);
30
+ for (; r >= p(n);) r -= p(n), n += 1;
31
+ return {
32
+ year: n,
33
+ month: r,
34
+ day: 1
35
+ };
36
+ }
37
+ function g(e, t, n) {
38
+ let r = 0;
39
+ for (let n = 0; n < t; n += 1) r += m(e, n);
40
+ return f(e) + l + r + n - 1;
41
+ }
42
+ function _(e) {
43
+ let t = e - l, n = Math.floor((t - 2) / 365.2468) + 1;
44
+ for (; f(n) > t;) --n;
45
+ for (; f(n + 1) <= t;) n += 1;
46
+ let r = t - f(n), i = 0;
47
+ for (; r >= m(n, i);) r -= m(n, i), i += 1;
48
+ return {
49
+ year: n,
50
+ month: i,
51
+ day: r + 1
52
+ };
53
+ }
54
+ var v = 5785, y = {
55
+ identifier: "hebrew",
56
+ fromGregorian(e) {
57
+ let t = n(e.getFullYear(), e.getMonth(), e.getDate());
58
+ return _(Math.floor(t / r));
59
+ },
60
+ toGregorian(e) {
61
+ let n = h(e.year, e.month);
62
+ if (e.day < 1 || e.day > m(n.year, n.month)) throw RangeError(`Not a hebrew date: ${e.year}-${e.month + 1}-${e.day}`);
63
+ return t(g(n.year, n.month, e.day) * r);
64
+ },
65
+ getDaysInMonth(e, t) {
66
+ let n = h(e, t);
67
+ return m(n.year, n.month);
68
+ },
69
+ addMonths(e, t) {
70
+ let n = h(e.year, e.month), r = n.year, i = n.month, a = t;
71
+ for (; a > 0;) {
72
+ let e = p(r) - i;
73
+ a < e ? (i += a, a = 0) : (a -= e, r += 1, i = 0);
74
+ }
75
+ for (; a < 0;) -a <= i ? (i += a, a = 0) : (a += i + 1, --r, i = p(r) - 1);
76
+ return {
77
+ year: r,
78
+ month: i,
79
+ day: Math.min(e.day, m(r, i))
80
+ };
81
+ },
82
+ monthNames(e = "en", t = "long") {
83
+ let n = new Intl.DateTimeFormat(e, {
84
+ calendar: "hebrew",
85
+ month: t,
86
+ timeZone: "UTC"
87
+ });
88
+ return Array.from({ length: 12 }, (e, t) => n.format(/* @__PURE__ */ new Date(g(v, t, 15) * r)));
89
+ },
90
+ era(t, n = "en") {
91
+ return e(/* @__PURE__ */ new Date(g(t, 0, 1) * r), "hebrew", n);
92
+ }
93
+ };
94
+ //#endregion
95
+ export { y as hebrewAdapter };
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { addMonths as e, getDaysInMonth as t } from "../components/Calendar/date.js";
3
+ import { eraOfDate as n, localMidnightOf as r, utcCivilMs as i } from "./adapter.js";
4
+ //#region src/lib/dates/japanese.ts
5
+ var a = 5, o = 1, s = {
6
+ identifier: "japanese",
7
+ fromGregorian(e) {
8
+ return {
9
+ year: e.getFullYear(),
10
+ month: e.getMonth(),
11
+ day: e.getDate()
12
+ };
13
+ },
14
+ toGregorian(n) {
15
+ let a = e(n.year, n.month, 0);
16
+ if (n.day < 1 || n.day > t(a.year, a.month)) throw RangeError(`Not a japanese date: ${n.year}-${n.month + 1}-${n.day}`);
17
+ return r(i(a.year, a.month, n.day));
18
+ },
19
+ getDaysInMonth: t,
20
+ addMonths(n, r) {
21
+ let i = e(n.year, n.month, r), a = t(i.year, i.month);
22
+ return {
23
+ year: i.year,
24
+ month: i.month,
25
+ day: Math.min(n.day, a)
26
+ };
27
+ },
28
+ monthNames(e = "en", t = "long") {
29
+ let n = new Intl.DateTimeFormat(e, {
30
+ calendar: "japanese",
31
+ month: t,
32
+ timeZone: "UTC"
33
+ });
34
+ return Array.from({ length: 12 }, (e, t) => n.format(new Date(Date.UTC(2026, t, 15))));
35
+ },
36
+ era(e, t = "en") {
37
+ return n(new Date(i(e, a, o)), "japanese", t);
38
+ }
39
+ };
40
+ //#endregion
41
+ export { s as japaneseAdapter };
@@ -0,0 +1,121 @@
1
+ "use client";
2
+ import { addMonths as e } from "../components/Calendar/date.js";
3
+ import { eraOfDate as t, localMidnightOf as n, utcCivilMs as r } from "./adapter.js";
4
+ //#region src/lib/dates/persian.ts
5
+ var i = 864e5, a = 2440588, o = [
6
+ -61,
7
+ 9,
8
+ 38,
9
+ 199,
10
+ 426,
11
+ 686,
12
+ 756,
13
+ 818,
14
+ 1111,
15
+ 1181,
16
+ 1210,
17
+ 1635,
18
+ 2060,
19
+ 2097,
20
+ 2192,
21
+ 2262,
22
+ 2324,
23
+ 2394,
24
+ 2456,
25
+ 3178
26
+ ], s = (e, t) => Math.trunc(e / t), c = (e, t) => e - Math.trunc(e / t) * t;
27
+ function l(e) {
28
+ let t = o[0] ?? -61, n = o[o.length - 1] ?? 3178;
29
+ if (e < t || e >= n) throw RangeError(`Not a persian year: ${e}`);
30
+ let r = e + 621, i = -14, a = t, l = 0;
31
+ for (let n of o) if (n !== t) {
32
+ if (l = n - a, e < n) break;
33
+ i += s(l, 33) * 8 + s(c(l, 33), 4), a = n;
34
+ }
35
+ let u = e - a;
36
+ i += s(u, 33) * 8 + s(c(u, 33) + 3, 4), c(l, 33) === 4 && l - u === 4 && (i += 1);
37
+ let d = s(r, 4) - s((s(r, 100) + 1) * 3, 4) - 150, f = 20 + i - d;
38
+ l - u < 6 && (u = u - l + s(l + 4, 33) * 33);
39
+ let p = c(c(u + 1, 33) - 1, 4);
40
+ return p === -1 && (p = 4), {
41
+ gy: r,
42
+ march: f,
43
+ leap: p
44
+ };
45
+ }
46
+ function u(e, t, n) {
47
+ let r = s((e + s(t - 8, 6) + 100100) * 1461, 4) + s(153 * c(t + 9, 12) + 2, 5) + n - 34840408;
48
+ return r = r - s(s(e + 100100 + s(t - 8, 6), 100) * 3, 4) + 752, r;
49
+ }
50
+ function d(e) {
51
+ let t = 4 * e + 139361631;
52
+ t = t + s(s(4 * e + 183187720, 146097) * 3, 4) * 4 - 3908;
53
+ let n = s(c(t, 1461), 4) * 5 + 308, r = s(c(n, 153), 5) + 1, i = c(s(n, 153), 12) + 1;
54
+ return {
55
+ year: s(t, 1461) - 100100 + s(8 - i, 6),
56
+ month: i,
57
+ day: r
58
+ };
59
+ }
60
+ function f(e, t, n) {
61
+ let { gy: r, march: i } = l(e);
62
+ return u(r, 3, i) + (t - 1) * 31 - s(t, 7) * (t - 7) + n - 1;
63
+ }
64
+ function p(e) {
65
+ let t = d(e).year, n = t - 621, { march: r, leap: i } = l(n), a = e - u(t, 3, r);
66
+ if (a >= 0) {
67
+ if (a <= 185) return {
68
+ year: n,
69
+ month: s(a, 31),
70
+ day: c(a, 31) + 1
71
+ };
72
+ a -= 186;
73
+ } else --n, a += 179, i === 1 && (a += 1);
74
+ return {
75
+ year: n,
76
+ month: 6 + s(a, 30),
77
+ day: c(a, 30) + 1
78
+ };
79
+ }
80
+ function m(e, t) {
81
+ return t < 6 ? 31 : t < 11 ? 30 : f(e + 1, 1, 1) - f(e, 12, 1);
82
+ }
83
+ var h = 1404, g = {
84
+ identifier: "persian",
85
+ fromGregorian(e) {
86
+ let t = r(e.getFullYear(), e.getMonth(), e.getDate());
87
+ return p(Math.floor(t / i) + a);
88
+ },
89
+ toGregorian(t) {
90
+ let i = e(t.year, t.month, 0);
91
+ if (t.day < 1 || t.day > m(i.year, i.month)) throw RangeError(`Not a persian date: ${t.year}-${t.month + 1}-${t.day}`);
92
+ let a = d(f(i.year, i.month + 1, t.day));
93
+ return n(r(a.year, a.month - 1, a.day));
94
+ },
95
+ getDaysInMonth(t, n) {
96
+ let r = e(t, n, 0);
97
+ return m(r.year, r.month);
98
+ },
99
+ addMonths(t, n) {
100
+ let r = e(t.year, t.month, n);
101
+ return {
102
+ year: r.year,
103
+ month: r.month,
104
+ day: Math.min(t.day, m(r.year, r.month))
105
+ };
106
+ },
107
+ monthNames(e = "en", t = "long") {
108
+ let n = new Intl.DateTimeFormat(e, {
109
+ calendar: "persian",
110
+ month: t,
111
+ timeZone: "UTC"
112
+ });
113
+ return Array.from({ length: 12 }, (e, t) => n.format(/* @__PURE__ */ new Date((f(h, t + 1, 15) - a) * i)));
114
+ },
115
+ era(e, n = "en") {
116
+ let r = (f(e, 1, 1) - a) * i;
117
+ return t(new Date(r), "persian", n);
118
+ }
119
+ };
120
+ //#endregion
121
+ export { g as persianAdapter };