@admin-layout/tailwind-ui 10.1.1-alpha.9 → 11.2.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/README.md +20 -0
  2. package/lib/components/Button/Button.d.ts +13 -0
  3. package/lib/components/Button/Button.d.ts.map +1 -0
  4. package/lib/components/Button/Button.js +49 -0
  5. package/lib/components/Button/Button.js.map +1 -0
  6. package/lib/components/DatePicker/DatePicker.d.ts +5 -0
  7. package/lib/components/DatePicker/DatePicker.d.ts.map +1 -0
  8. package/lib/components/DatePicker/DatePicker.js +200 -0
  9. package/lib/components/DatePicker/DatePicker.js.map +1 -0
  10. package/lib/components/DatePicker/index.d.ts +3 -0
  11. package/lib/components/DatePicker/index.d.ts.map +1 -0
  12. package/lib/components/DatePicker/machine.d.ts +3 -0
  13. package/lib/components/DatePicker/machine.d.ts.map +1 -0
  14. package/lib/components/DatePicker/machine.js +95 -0
  15. package/lib/components/DatePicker/machine.js.map +1 -0
  16. package/lib/components/DatePicker/types.d.ts +34 -0
  17. package/lib/components/DatePicker/types.d.ts.map +1 -0
  18. package/lib/components/DatePicker/utils.d.ts +25 -0
  19. package/lib/components/DatePicker/utils.d.ts.map +1 -0
  20. package/lib/components/DatePicker/utils.js +28 -0
  21. package/lib/components/DatePicker/utils.js.map +1 -0
  22. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
  23. package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
  24. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +6 -10
  25. package/lib/components/ErrorHandlers/ApplicationErrorHandler.js.map +1 -1
  26. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
  27. package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
  28. package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
  29. package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
  30. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
  31. package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
  32. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
  33. package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
  34. package/lib/components/ErrorPages/403.d.ts +2 -1
  35. package/lib/components/ErrorPages/403.d.ts.map +1 -1
  36. package/lib/components/ErrorPages/403.js +18 -26
  37. package/lib/components/ErrorPages/403.js.map +1 -1
  38. package/lib/components/ErrorPages/404.d.ts +2 -1
  39. package/lib/components/ErrorPages/404.d.ts.map +1 -1
  40. package/lib/components/ErrorPages/404.js +18 -26
  41. package/lib/components/ErrorPages/404.js.map +1 -1
  42. package/lib/components/ErrorPages/500.d.ts +2 -1
  43. package/lib/components/ErrorPages/500.d.ts.map +1 -1
  44. package/lib/components/ErrorPages/500.js +18 -26
  45. package/lib/components/ErrorPages/500.js.map +1 -1
  46. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +6 -0
  47. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -0
  48. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +56 -0
  49. package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -0
  50. package/lib/components/LanguageMenuDropdown/index.d.ts +2 -0
  51. package/lib/components/LanguageMenuDropdown/index.d.ts.map +1 -0
  52. package/lib/components/OTP/OTPInput.js +30 -32
  53. package/lib/components/OTP/OTPInput.js.map +1 -1
  54. package/lib/components/OTP/OTPVerification.js +55 -75
  55. package/lib/components/OTP/OTPVerification.js.map +1 -1
  56. package/lib/components/OTP/SingleInput.js +2 -2
  57. package/lib/components/OTP/SingleInput.js.map +1 -1
  58. package/lib/components/OTP/utils.js.map +1 -1
  59. package/lib/components/PageContainer/PageContainer.d.ts.map +1 -1
  60. package/lib/components/PageContainer/PageContainer.js +27 -28
  61. package/lib/components/PageContainer/PageContainer.js.map +1 -1
  62. package/lib/components/PageLoading/index.js +7 -8
  63. package/lib/components/PageLoading/index.js.map +1 -1
  64. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +12 -0
  65. package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -0
  66. package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts +8 -0
  67. package/lib/components/RJSFPreview/PreviewCheckboxWidget.d.ts.map +1 -0
  68. package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts +4 -0
  69. package/lib/components/RJSFPreview/PreviewCustomFieldTemplate.d.ts.map +1 -0
  70. package/lib/components/RJSFPreview/PreviewDateWidget.d.ts +8 -0
  71. package/lib/components/RJSFPreview/PreviewDateWidget.d.ts.map +1 -0
  72. package/lib/components/RJSFPreview/PreviewDialog.d.ts +9 -0
  73. package/lib/components/RJSFPreview/PreviewDialog.d.ts.map +1 -0
  74. package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts +8 -0
  75. package/lib/components/RJSFPreview/PreviewDropdownWidget.d.ts.map +1 -0
  76. package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts +4 -0
  77. package/lib/components/RJSFPreview/PreviewFieldTemplate.d.ts.map +1 -0
  78. package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts +4 -0
  79. package/lib/components/RJSFPreview/PreviewFileUploadWidget.d.ts.map +1 -0
  80. package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts +16 -0
  81. package/lib/components/RJSFPreview/PreviewFormRenderer.d.ts.map +1 -0
  82. package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts +4 -0
  83. package/lib/components/RJSFPreview/PreviewImageUploadWidget.d.ts.map +1 -0
  84. package/lib/components/RJSFPreview/PreviewInputWidget.d.ts +4 -0
  85. package/lib/components/RJSFPreview/PreviewInputWidget.d.ts.map +1 -0
  86. package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts +4 -0
  87. package/lib/components/RJSFPreview/PreviewObjectFieldTemplate.d.ts.map +1 -0
  88. package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts +8 -0
  89. package/lib/components/RJSFPreview/PreviewRadioWidget.d.ts.map +1 -0
  90. package/lib/components/RJSFPreview/PreviewStepper.d.ts +9 -0
  91. package/lib/components/RJSFPreview/PreviewStepper.d.ts.map +1 -0
  92. package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts +9 -0
  93. package/lib/components/RJSFPreview/PreviewSwitchWidget.d.ts.map +1 -0
  94. package/lib/components/RJSFPreview/PreviewTab.d.ts +17 -0
  95. package/lib/components/RJSFPreview/PreviewTab.d.ts.map +1 -0
  96. package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts +8 -0
  97. package/lib/components/RJSFPreview/PreviewTextareaWidget.d.ts.map +1 -0
  98. package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts +9 -0
  99. package/lib/components/RJSFPreview/generateSchemaWithInputs.d.ts.map +1 -0
  100. package/lib/components/RJSFPreview/index.d.ts +2 -0
  101. package/lib/components/RJSFPreview/index.d.ts.map +1 -0
  102. package/lib/components/ReactTable/Table.d.ts +2 -1
  103. package/lib/components/ReactTable/Table.d.ts.map +1 -1
  104. package/lib/components/ReactTable/Table.js +71 -92
  105. package/lib/components/ReactTable/Table.js.map +1 -1
  106. package/lib/components/ReactTable/TableFilters.d.ts +3 -2
  107. package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
  108. package/lib/components/ReactTable/TableFilters.js +34 -40
  109. package/lib/components/ReactTable/TableFilters.js.map +1 -1
  110. package/lib/components/Search/SearchInput.d.ts +12 -0
  111. package/lib/components/Search/SearchInput.d.ts.map +1 -0
  112. package/lib/components/Search/SearchInput.js +32 -0
  113. package/lib/components/Search/SearchInput.js.map +1 -0
  114. package/lib/components/Search/index.d.ts +2 -0
  115. package/lib/components/Search/index.d.ts.map +1 -0
  116. package/lib/components/Select/Select.d.ts +35 -0
  117. package/lib/components/Select/Select.d.ts.map +1 -0
  118. package/lib/components/Select/Select.js +242 -0
  119. package/lib/components/Select/Select.js.map +1 -0
  120. package/lib/components/Select/index.d.ts +2 -0
  121. package/lib/components/Select/index.d.ts.map +1 -0
  122. package/lib/components/Spin/index.js +11 -14
  123. package/lib/components/Spin/index.js.map +1 -1
  124. package/lib/components/ThemeProvider/ThemeProvider.d.ts +16 -0
  125. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/ThemeProvider.js +124 -0
  127. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
  128. package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
  129. package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/ThemeToggle.js +47 -0
  131. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  132. package/lib/components/ThemeProvider/index.d.ts +4 -0
  133. package/lib/components/ThemeProvider/index.d.ts.map +1 -0
  134. package/lib/components/ThemeProvider/types.d.ts +27 -0
  135. package/lib/components/ThemeProvider/types.d.ts.map +1 -0
  136. package/lib/components/index.d.ts +6 -0
  137. package/lib/components/index.d.ts.map +1 -1
  138. package/lib/hooks/index.d.ts +5 -0
  139. package/lib/hooks/index.d.ts.map +1 -0
  140. package/lib/hooks/useMediaQuery.d.ts +14 -0
  141. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  142. package/lib/hooks/useMediaQuery.js +48 -0
  143. package/lib/hooks/useMediaQuery.js.map +1 -0
  144. package/lib/hooks/useTheme.d.ts +2 -0
  145. package/lib/hooks/useTheme.d.ts.map +1 -0
  146. package/lib/hooks/useTheme.js +7 -0
  147. package/lib/hooks/useTheme.js.map +1 -0
  148. package/lib/hooks/useToast.d.ts +1 -1
  149. package/lib/hooks/useToast.d.ts.map +1 -1
  150. package/lib/hooks/useToast.js +37 -46
  151. package/lib/hooks/useToast.js.map +1 -1
  152. package/lib/hooks/useWindowSize.d.ts +5 -0
  153. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  154. package/lib/hooks/useWindowSize.js +20 -0
  155. package/lib/hooks/useWindowSize.js.map +1 -0
  156. package/lib/index.d.ts +2 -1
  157. package/lib/index.d.ts.map +1 -1
  158. package/lib/index.js +1 -1
  159. package/lib/shardui/accordion.d.ts +8 -0
  160. package/lib/shardui/accordion.d.ts.map +1 -0
  161. package/lib/shardui/accordion.js +36 -0
  162. package/lib/shardui/accordion.js.map +1 -0
  163. package/lib/shardui/alert-dialog.d.ts +21 -0
  164. package/lib/shardui/alert-dialog.d.ts.map +1 -0
  165. package/lib/shardui/alert-dialog.js +75 -0
  166. package/lib/shardui/alert-dialog.js.map +1 -0
  167. package/lib/shardui/alert.d.ts +9 -0
  168. package/lib/shardui/alert.d.ts.map +1 -0
  169. package/lib/shardui/alert.js +42 -0
  170. package/lib/shardui/alert.js.map +1 -0
  171. package/lib/shardui/aspect-ratio.d.ts +4 -0
  172. package/lib/shardui/aspect-ratio.d.ts.map +1 -0
  173. package/lib/shardui/aspect-ratio.js +1 -0
  174. package/lib/shardui/aspect-ratio.js.map +1 -0
  175. package/lib/shardui/avatar.d.ts +7 -0
  176. package/lib/shardui/avatar.d.ts.map +1 -0
  177. package/lib/shardui/avatar.js +27 -0
  178. package/lib/shardui/avatar.js.map +1 -0
  179. package/lib/shardui/badge.d.ts +10 -0
  180. package/lib/shardui/badge.d.ts.map +1 -0
  181. package/lib/shardui/badge.js +25 -0
  182. package/lib/shardui/badge.js.map +1 -0
  183. package/lib/shardui/breadcrumb.d.ts +20 -0
  184. package/lib/shardui/breadcrumb.d.ts.map +1 -0
  185. package/lib/shardui/breadcrumb.js +76 -0
  186. package/lib/shardui/breadcrumb.js.map +1 -0
  187. package/lib/shardui/button.d.ts +12 -0
  188. package/lib/shardui/button.d.ts.map +1 -0
  189. package/lib/shardui/button.js +41 -0
  190. package/lib/shardui/button.js.map +1 -0
  191. package/lib/shardui/calendar.d.ts +9 -0
  192. package/lib/shardui/calendar.d.ts.map +1 -0
  193. package/lib/shardui/calendar.js +53 -0
  194. package/lib/shardui/calendar.js.map +1 -0
  195. package/lib/shardui/card.d.ts +9 -0
  196. package/lib/shardui/card.d.ts.map +1 -0
  197. package/lib/shardui/card.js +54 -0
  198. package/lib/shardui/card.js.map +1 -0
  199. package/lib/shardui/carousel.d.ts +19 -0
  200. package/lib/shardui/carousel.d.ts.map +1 -0
  201. package/lib/shardui/carousel.js +169 -0
  202. package/lib/shardui/carousel.js.map +1 -0
  203. package/lib/shardui/chart.d.ts +63 -0
  204. package/lib/shardui/chart.d.ts.map +1 -0
  205. package/lib/shardui/chart.js +182 -0
  206. package/lib/shardui/chart.js.map +1 -0
  207. package/lib/shardui/checkbox.d.ts +5 -0
  208. package/lib/shardui/checkbox.d.ts.map +1 -0
  209. package/lib/shardui/checkbox.js +13 -0
  210. package/lib/shardui/checkbox.js.map +1 -0
  211. package/lib/shardui/collapsible.d.ts +6 -0
  212. package/lib/shardui/collapsible.d.ts.map +1 -0
  213. package/lib/shardui/collapsible.js +3 -0
  214. package/lib/shardui/collapsible.js.map +1 -0
  215. package/lib/shardui/command.d.ts +83 -0
  216. package/lib/shardui/command.d.ts.map +1 -0
  217. package/lib/shardui/command.js +87 -0
  218. package/lib/shardui/command.js.map +1 -0
  219. package/lib/shardui/context-menu.d.ts +28 -0
  220. package/lib/shardui/context-menu.d.ts.map +1 -0
  221. package/lib/shardui/context-menu.js +106 -0
  222. package/lib/shardui/context-menu.js.map +1 -0
  223. package/lib/shardui/dialog.d.ts +20 -0
  224. package/lib/shardui/dialog.d.ts.map +1 -0
  225. package/lib/shardui/dialog.js +62 -0
  226. package/lib/shardui/dialog.js.map +1 -0
  227. package/lib/shardui/drawer.d.ts +23 -0
  228. package/lib/shardui/drawer.d.ts.map +1 -0
  229. package/lib/shardui/drawer.js +66 -0
  230. package/lib/shardui/drawer.js.map +1 -0
  231. package/lib/shardui/dropdown-menu.d.ts +28 -0
  232. package/lib/shardui/dropdown-menu.d.ts.map +1 -0
  233. package/lib/shardui/dropdown-menu.js +108 -0
  234. package/lib/shardui/dropdown-menu.js.map +1 -0
  235. package/lib/shardui/form.d.ts +24 -0
  236. package/lib/shardui/form.d.ts.map +1 -0
  237. package/lib/shardui/form.js +123 -0
  238. package/lib/shardui/form.js.map +1 -0
  239. package/lib/shardui/hover-card.d.ts +7 -0
  240. package/lib/shardui/hover-card.d.ts.map +1 -0
  241. package/lib/shardui/hover-card.js +15 -0
  242. package/lib/shardui/hover-card.js.map +1 -0
  243. package/lib/shardui/index.d.ts +50 -0
  244. package/lib/shardui/index.d.ts.map +1 -0
  245. package/lib/shardui/index.js +1 -0
  246. package/lib/shardui/index.js.map +1 -0
  247. package/lib/shardui/input-otp.d.ts +35 -0
  248. package/lib/shardui/input-otp.d.ts.map +1 -0
  249. package/lib/shardui/input-otp.js +50 -0
  250. package/lib/shardui/input-otp.js.map +1 -0
  251. package/lib/shardui/input.d.ts +4 -0
  252. package/lib/shardui/input.d.ts.map +1 -0
  253. package/lib/shardui/input.js +13 -0
  254. package/lib/shardui/input.js.map +1 -0
  255. package/lib/shardui/label.d.ts +6 -0
  256. package/lib/shardui/label.d.ts.map +1 -0
  257. package/lib/shardui/label.js +10 -0
  258. package/lib/shardui/label.js.map +1 -0
  259. package/lib/shardui/menubar.d.ts +34 -0
  260. package/lib/shardui/menubar.d.ts.map +1 -0
  261. package/lib/shardui/menubar.js +129 -0
  262. package/lib/shardui/menubar.js.map +1 -0
  263. package/lib/shardui/navigation-menu.d.ts +13 -0
  264. package/lib/shardui/navigation-menu.d.ts.map +1 -0
  265. package/lib/shardui/navigation-menu.js +66 -0
  266. package/lib/shardui/navigation-menu.js.map +1 -0
  267. package/lib/shardui/pagination.d.ts +29 -0
  268. package/lib/shardui/pagination.d.ts.map +1 -0
  269. package/lib/shardui/pagination.js +79 -0
  270. package/lib/shardui/pagination.js.map +1 -0
  271. package/lib/shardui/popover.d.ts +7 -0
  272. package/lib/shardui/popover.d.ts.map +1 -0
  273. package/lib/shardui/popover.js +15 -0
  274. package/lib/shardui/popover.js.map +1 -0
  275. package/lib/shardui/progress.d.ts +5 -0
  276. package/lib/shardui/progress.d.ts.map +1 -0
  277. package/lib/shardui/progress.js +15 -0
  278. package/lib/shardui/progress.js.map +1 -0
  279. package/lib/shardui/radio-group.d.ts +6 -0
  280. package/lib/shardui/radio-group.d.ts.map +1 -0
  281. package/lib/shardui/radio-group.js +26 -0
  282. package/lib/shardui/radio-group.js.map +1 -0
  283. package/lib/shardui/resizable.d.ts +25 -0
  284. package/lib/shardui/resizable.d.ts.map +1 -0
  285. package/lib/shardui/resizable.js +20 -0
  286. package/lib/shardui/resizable.js.map +1 -0
  287. package/lib/shardui/scroll-area.d.ts +6 -0
  288. package/lib/shardui/scroll-area.d.ts.map +1 -0
  289. package/lib/shardui/scroll-area.js +25 -0
  290. package/lib/shardui/scroll-area.js.map +1 -0
  291. package/lib/shardui/select.d.ts +14 -0
  292. package/lib/shardui/select.d.ts.map +1 -0
  293. package/lib/shardui/select.js +85 -0
  294. package/lib/shardui/select.js.map +1 -0
  295. package/lib/shardui/separator.d.ts +5 -0
  296. package/lib/shardui/separator.d.ts.map +1 -0
  297. package/lib/shardui/separator.js +13 -0
  298. package/lib/shardui/separator.js.map +1 -0
  299. package/lib/shardui/sheet.d.ts +26 -0
  300. package/lib/shardui/sheet.d.ts.map +1 -0
  301. package/lib/shardui/sheet.js +79 -0
  302. package/lib/shardui/sheet.js.map +1 -0
  303. package/lib/shardui/sidebar.d.ts +67 -0
  304. package/lib/shardui/sidebar.d.ts.map +1 -0
  305. package/lib/shardui/sidebar.js +474 -0
  306. package/lib/shardui/sidebar.js.map +1 -0
  307. package/lib/shardui/skeleton.d.ts +4 -0
  308. package/lib/shardui/skeleton.d.ts.map +1 -0
  309. package/lib/shardui/skeleton.js +9 -0
  310. package/lib/shardui/skeleton.js.map +1 -0
  311. package/lib/shardui/slider.d.ts +5 -0
  312. package/lib/shardui/slider.d.ts.map +1 -0
  313. package/lib/shardui/slider.js +15 -0
  314. package/lib/shardui/slider.js.map +1 -0
  315. package/lib/shardui/sonner.d.ts +6 -0
  316. package/lib/shardui/sonner.d.ts.map +1 -0
  317. package/lib/shardui/sonner.js +20 -0
  318. package/lib/shardui/sonner.js.map +1 -0
  319. package/lib/shardui/switch.d.ts +5 -0
  320. package/lib/shardui/switch.d.ts.map +1 -0
  321. package/lib/shardui/switch.js +11 -0
  322. package/lib/shardui/switch.js.map +1 -0
  323. package/lib/shardui/table.d.ts +11 -0
  324. package/lib/shardui/table.d.ts.map +1 -0
  325. package/lib/shardui/table.js +74 -0
  326. package/lib/shardui/table.js.map +1 -0
  327. package/lib/shardui/tabs.d.ts +8 -0
  328. package/lib/shardui/tabs.d.ts.map +1 -0
  329. package/lib/shardui/tabs.js +28 -0
  330. package/lib/shardui/tabs.js.map +1 -0
  331. package/lib/shardui/textarea.d.ts +6 -0
  332. package/lib/shardui/textarea.d.ts.map +1 -0
  333. package/lib/shardui/textarea.js +11 -0
  334. package/lib/shardui/textarea.js.map +1 -0
  335. package/lib/shardui/toast.d.ts +16 -0
  336. package/lib/shardui/toast.d.ts.map +1 -0
  337. package/lib/shardui/toast.js +74 -0
  338. package/lib/shardui/toast.js.map +1 -0
  339. package/lib/shardui/toaster.d.ts +3 -0
  340. package/lib/shardui/toaster.d.ts.map +1 -0
  341. package/lib/shardui/toaster.js +19 -0
  342. package/lib/shardui/toaster.js.map +1 -0
  343. package/lib/shardui/toggle-group.d.ts +13 -0
  344. package/lib/shardui/toggle-group.d.ts.map +1 -0
  345. package/lib/shardui/toggle-group.js +39 -0
  346. package/lib/shardui/toggle-group.js.map +1 -0
  347. package/lib/shardui/toggle.d.ts +13 -0
  348. package/lib/shardui/toggle.d.ts.map +1 -0
  349. package/lib/shardui/toggle.js +32 -0
  350. package/lib/shardui/toggle.js.map +1 -0
  351. package/lib/shardui/tooltip.d.ts +8 -0
  352. package/lib/shardui/tooltip.d.ts.map +1 -0
  353. package/lib/shardui/tooltip.js +14 -0
  354. package/lib/shardui/tooltip.js.map +1 -0
  355. package/lib/shardui/use-toast.d.ts +3 -0
  356. package/lib/shardui/use-toast.d.ts.map +1 -0
  357. package/lib/utils/hooks/use-mobile.d.ts +2 -0
  358. package/lib/utils/hooks/use-mobile.d.ts.map +1 -0
  359. package/lib/utils/hooks/use-mobile.js +14 -0
  360. package/lib/utils/hooks/use-mobile.js.map +1 -0
  361. package/lib/utils/hooks/use-toast.d.ts +45 -0
  362. package/lib/utils/hooks/use-toast.d.ts.map +1 -0
  363. package/lib/utils/hooks/use-toast.js +133 -0
  364. package/lib/utils/hooks/use-toast.js.map +1 -0
  365. package/lib/utils/index.d.ts +7 -1
  366. package/lib/utils/index.d.ts.map +1 -1
  367. package/lib/utils/isBrowser/index.js +1 -0
  368. package/lib/utils/isBrowser/index.js.map +1 -0
  369. package/lib/utils/util.d.ts +3 -0
  370. package/lib/utils/util.d.ts.map +1 -0
  371. package/lib/utils/util.js +3 -0
  372. package/lib/utils/util.js.map +1 -0
  373. package/package.json +58 -3
@@ -0,0 +1,54 @@
1
+ import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Card = React.forwardRef(({
2
+ className,
3
+ ...props
4
+ }, ref) => React.createElement("div", {
5
+ ref: ref,
6
+ className: cn('rounded-lg border bg-card text-card-foreground shadow-sm', className),
7
+ ...props
8
+ }));
9
+ Card.displayName = 'Card';
10
+ const CardHeader = React.forwardRef(({
11
+ className,
12
+ ...props
13
+ }, ref) => React.createElement("div", {
14
+ ref: ref,
15
+ className: cn('flex flex-col space-y-1.5 p-6', className),
16
+ ...props
17
+ }));
18
+ CardHeader.displayName = 'CardHeader';
19
+ const CardTitle = React.forwardRef(({
20
+ className,
21
+ ...props
22
+ }, ref) => React.createElement("h3", {
23
+ ref: ref,
24
+ className: cn('text-2xl font-semibold leading-none tracking-tight', className),
25
+ ...props
26
+ }));
27
+ CardTitle.displayName = 'CardTitle';
28
+ const CardDescription = React.forwardRef(({
29
+ className,
30
+ ...props
31
+ }, ref) => React.createElement("p", {
32
+ ref: ref,
33
+ className: cn('text-sm text-muted-foreground', className),
34
+ ...props
35
+ }));
36
+ CardDescription.displayName = 'CardDescription';
37
+ const CardContent = React.forwardRef(({
38
+ className,
39
+ ...props
40
+ }, ref) => React.createElement("div", {
41
+ ref: ref,
42
+ className: cn('p-6 pt-0', className),
43
+ ...props
44
+ }));
45
+ CardContent.displayName = 'CardContent';
46
+ const CardFooter = React.forwardRef(({
47
+ className,
48
+ ...props
49
+ }, ref) => React.createElement("div", {
50
+ ref: ref,
51
+ className: cn('flex items-center p-6 pt-0', className),
52
+ ...props
53
+ }));
54
+ CardFooter.displayName = 'CardFooter';export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle};//# sourceMappingURL=card.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.js","sources":["../../src/shardui/card.tsx"],"sourcesContent":[null],"names":[],"mappings":"mIASA,MAAA,IAAA,GAAA,KAAM,CAAA,UAAU,CAAA,CAAA;AAOhB,EAAA,SAAA;AAOA,EAAA,GAAA;AAOA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAW,CAAA,KAAA,EAAA;AAKjB,EAAA,GAAA,EAAA,GAAA;AAOA,EAAA,SAAS,EAAI,EAAE,CAAA,0DAAoD,EAAA,SAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react';
3
+ type CarouselApi = UseEmblaCarouselType[1];
4
+ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
5
+ type CarouselOptions = UseCarouselParameters[0];
6
+ type CarouselPlugin = UseCarouselParameters[1];
7
+ type CarouselProps = {
8
+ opts?: CarouselOptions;
9
+ plugins?: CarouselPlugin;
10
+ orientation?: 'horizontal' | 'vertical';
11
+ setApi?: (api: CarouselApi) => void;
12
+ };
13
+ declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
14
+ declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
15
+ declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
+ declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
17
+ declare const CarouselNext: React.ForwardRefExoticComponent<Omit<import("./button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+ export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext };
19
+ //# sourceMappingURL=carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/shardui/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAMnF,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACjB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACvC,CAAC;AAuBF,QAAA,MAAM,QAAQ,6HA0Fb,CAAC;AAGF,QAAA,MAAM,eAAe,6GAcpB,CAAC;AAGF,QAAA,MAAM,YAAY,6GAkBjB,CAAC;AAGF,QAAA,MAAM,gBAAgB,gKAyBrB,CAAC;AAGF,QAAA,MAAM,YAAY,gKAyBjB,CAAC;AAGF,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,169 @@
1
+ import*as React from'react';import useEmblaCarousel from'embla-carousel-react';import {ArrowLeft,ArrowRight}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {Button}from'./button.js';const CarouselContext = React.createContext(null);
2
+ function useCarousel() {
3
+ const context = React.useContext(CarouselContext);
4
+ if (!context) {
5
+ throw new Error('useCarousel must be used within a <Carousel />');
6
+ }
7
+ return context;
8
+ }
9
+ const Carousel = React.forwardRef(({
10
+ orientation = 'horizontal',
11
+ opts,
12
+ setApi,
13
+ plugins,
14
+ className,
15
+ children,
16
+ ...props
17
+ }, ref) => {
18
+ const [carouselRef, api] = useEmblaCarousel({
19
+ ...opts,
20
+ axis: orientation === 'horizontal' ? 'x' : 'y'
21
+ }, plugins);
22
+ const [canScrollPrev, setCanScrollPrev] = React.useState(false);
23
+ const [canScrollNext, setCanScrollNext] = React.useState(false);
24
+ const onSelect = React.useCallback(api => {
25
+ if (!api) {
26
+ return;
27
+ }
28
+ setCanScrollPrev(api.canScrollPrev());
29
+ setCanScrollNext(api.canScrollNext());
30
+ }, []);
31
+ const scrollPrev = React.useCallback(() => {
32
+ api?.scrollPrev();
33
+ }, [api]);
34
+ const scrollNext = React.useCallback(() => {
35
+ api?.scrollNext();
36
+ }, [api]);
37
+ const handleKeyDown = React.useCallback(event => {
38
+ if (event.key === 'ArrowLeft') {
39
+ event.preventDefault();
40
+ scrollPrev();
41
+ } else if (event.key === 'ArrowRight') {
42
+ event.preventDefault();
43
+ scrollNext();
44
+ }
45
+ }, [scrollPrev, scrollNext]);
46
+ React.useEffect(() => {
47
+ if (!api || !setApi) {
48
+ return;
49
+ }
50
+ setApi(api);
51
+ }, [api, setApi]);
52
+ React.useEffect(() => {
53
+ if (!api) {
54
+ return;
55
+ }
56
+ onSelect(api);
57
+ api.on('reInit', onSelect);
58
+ api.on('select', onSelect);
59
+ return () => {
60
+ api?.off('select', onSelect);
61
+ };
62
+ }, [api, onSelect]);
63
+ return React.createElement(CarouselContext.Provider, {
64
+ value: {
65
+ carouselRef,
66
+ api: api,
67
+ opts,
68
+ orientation: orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),
69
+ scrollPrev,
70
+ scrollNext,
71
+ canScrollPrev,
72
+ canScrollNext
73
+ }
74
+ }, React.createElement("div", {
75
+ ref: ref,
76
+ onKeyDownCapture: handleKeyDown,
77
+ className: cn('relative', className),
78
+ role: "region",
79
+ "aria-roledescription": "carousel",
80
+ ...props
81
+ }, children));
82
+ });
83
+ Carousel.displayName = 'Carousel';
84
+ const CarouselContent = React.forwardRef(({
85
+ className,
86
+ ...props
87
+ }, ref) => {
88
+ const {
89
+ carouselRef,
90
+ orientation
91
+ } = useCarousel();
92
+ return React.createElement("div", {
93
+ ref: carouselRef,
94
+ className: "overflow-hidden"
95
+ }, React.createElement("div", {
96
+ ref: ref,
97
+ className: cn('flex', orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col', className),
98
+ ...props
99
+ }));
100
+ });
101
+ CarouselContent.displayName = 'CarouselContent';
102
+ const CarouselItem = React.forwardRef(({
103
+ className,
104
+ ...props
105
+ }, ref) => {
106
+ const {
107
+ orientation
108
+ } = useCarousel();
109
+ return React.createElement("div", {
110
+ ref: ref,
111
+ role: "group",
112
+ "aria-roledescription": "slide",
113
+ className: cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className),
114
+ ...props
115
+ });
116
+ });
117
+ CarouselItem.displayName = 'CarouselItem';
118
+ const CarouselPrevious = React.forwardRef(({
119
+ className,
120
+ variant = 'outline',
121
+ size = 'icon',
122
+ ...props
123
+ }, ref) => {
124
+ const {
125
+ orientation,
126
+ scrollPrev,
127
+ canScrollPrev
128
+ } = useCarousel();
129
+ return React.createElement(Button, {
130
+ ref: ref,
131
+ variant: variant,
132
+ size: size,
133
+ className: cn('absolute h-8 w-8 rounded-full', orientation === 'horizontal' ? '-left-12 top-1/2 -translate-y-1/2' : '-top-12 left-1/2 -translate-x-1/2 rotate-90', className),
134
+ disabled: !canScrollPrev,
135
+ onClick: scrollPrev,
136
+ ...props
137
+ }, React.createElement(ArrowLeft, {
138
+ className: "h-4 w-4"
139
+ }), React.createElement("span", {
140
+ className: "sr-only"
141
+ }, "Previous slide"));
142
+ });
143
+ CarouselPrevious.displayName = 'CarouselPrevious';
144
+ const CarouselNext = React.forwardRef(({
145
+ className,
146
+ variant = 'outline',
147
+ size = 'icon',
148
+ ...props
149
+ }, ref) => {
150
+ const {
151
+ orientation,
152
+ scrollNext,
153
+ canScrollNext
154
+ } = useCarousel();
155
+ return React.createElement(Button, {
156
+ ref: ref,
157
+ variant: variant,
158
+ size: size,
159
+ className: cn('absolute h-8 w-8 rounded-full', orientation === 'horizontal' ? '-right-12 top-1/2 -translate-y-1/2' : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90', className),
160
+ disabled: !canScrollNext,
161
+ onClick: scrollNext,
162
+ ...props
163
+ }, React.createElement(ArrowRight, {
164
+ className: "h-4 w-4"
165
+ }), React.createElement("span", {
166
+ className: "sr-only"
167
+ }, "Next slide"));
168
+ });
169
+ CarouselNext.displayName = 'CarouselNext';export{Carousel,CarouselContent,CarouselItem,CarouselNext,CarouselPrevious};//# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sources":["../../src/shardui/carousel.tsx"],"sourcesContent":[null],"names":[],"mappings":"uQAUA,qBAAmB,GAAG,KAAA,CAAA,aAAqB,CAAC,IAAG,CAAA;AAE/C,oBAAkB,GAAG;QACb,OAAG,GAAA,KAAA,CAAA,UAAgB,CAAA,eAAA,CAAA;MACvB,CAAA,OAAU,EAAA;AACV,IAAA,MAAA,IAAA,KAAc,CAAA,gDAA0B,CAAA;;EAE1C,OAAA,OAAA;AAuBF;AA6FA,MAAA,QAAM,GAAA,KAAA,CAAA,UAAe,CAAA,CAAA;AAiBrB,EAAA,WAAA,GAAM,YAAY;AAqBlB,EAAA,IAAA;AA4BA,EAAA,MAAA;AA4BA,EAAA,OAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,63 @@
1
+ import * as React from 'react';
2
+ import * as RechartsPrimitive from 'recharts';
3
+ declare const THEMES: {
4
+ readonly light: "";
5
+ readonly dark: ".dark";
6
+ };
7
+ export type ChartConfig = {
8
+ [k in string]: {
9
+ label?: React.ReactNode;
10
+ icon?: React.ComponentType;
11
+ } & ({
12
+ color?: string;
13
+ theme?: never;
14
+ } | {
15
+ color?: never;
16
+ theme: Record<keyof typeof THEMES, string>;
17
+ });
18
+ };
19
+ declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
20
+ config: ChartConfig;
21
+ children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
22
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const ChartStyle: ({ id, config }: {
24
+ id: string;
25
+ config: ChartConfig;
26
+ }) => React.JSX.Element;
27
+ declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
28
+ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<RechartsPrimitive.DefaultTooltipContentProps<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType> & {
29
+ accessibilityLayer?: boolean;
30
+ active?: boolean | undefined;
31
+ includeHidden?: boolean | undefined;
32
+ allowEscapeViewBox?: import("recharts/types/util/types").AllowInDimension;
33
+ animationDuration?: import("recharts/types/util/types").AnimationDuration;
34
+ animationEasing?: import("recharts/types/util/types").AnimationTiming;
35
+ content?: import("recharts/types/component/Tooltip").ContentType<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>;
36
+ coordinate?: Partial<import("recharts/types/util/types").Coordinate>;
37
+ cursor?: boolean | React.ReactElement | React.SVGProps<SVGElement>;
38
+ filterNull?: boolean;
39
+ defaultIndex?: number;
40
+ isAnimationActive?: boolean;
41
+ offset?: number;
42
+ payloadUniqBy?: import("recharts/types/util/payload/getUniqPayload").UniqueOption<import("recharts/types/component/DefaultTooltipContent").Payload<import("recharts/types/component/DefaultTooltipContent").ValueType, import("recharts/types/component/DefaultTooltipContent").NameType>>;
43
+ position?: Partial<import("recharts/types/util/types").Coordinate>;
44
+ reverseDirection?: import("recharts/types/util/types").AllowInDimension;
45
+ shared?: boolean;
46
+ trigger?: "hover" | "click";
47
+ useTranslate3d?: boolean;
48
+ viewBox?: import("recharts/types/util/types").CartesianViewBox;
49
+ wrapperStyle?: React.CSSProperties;
50
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
51
+ hideLabel?: boolean;
52
+ hideIndicator?: boolean;
53
+ indicator?: "line" | "dot" | "dashed";
54
+ nameKey?: string;
55
+ labelKey?: string;
56
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
57
+ declare const ChartLegend: typeof RechartsPrimitive.Legend;
58
+ declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<RechartsPrimitive.LegendProps, "verticalAlign" | "payload"> & {
59
+ hideIcon?: boolean;
60
+ nameKey?: string;
61
+ }, "ref"> & React.RefAttributes<HTMLDivElement>>;
62
+ export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle };
63
+ //# sourceMappingURL=chart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../src/shardui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACrB,CAAC,IAAI,MAAM,GAAG;QACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC9B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CAC1G,CAAC;AAkBF,QAAA,MAAM,cAAc;YAGJ,WAAW;cACT,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC;gDAsB9F,CAAC;AAGH,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,sBA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;gBAID,OAAO;oBACH,OAAO;gBACX,MAAM,GAAG,KAAK,GAAG,QAAQ;cAC3B,MAAM;eACL,MAAM;gDAmI5B,CAAC;AAGF,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,QAAA,MAAM,kBAAkB;eAID,OAAO;cACR,MAAM;gDA6C1B,CAAC;AA6BH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,182 @@
1
+ import*as React from'react';import*as RechartsPrimitive from'recharts';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';// Format: { THEME_NAME: CSS_SELECTOR }
2
+ const THEMES = {
3
+ light: '',
4
+ dark: '.dark'
5
+ };
6
+ const ChartContext = React.createContext(null);
7
+ function useChart() {
8
+ const context = React.useContext(ChartContext);
9
+ if (!context) {
10
+ throw new Error('useChart must be used within a <ChartContainer />');
11
+ }
12
+ return context;
13
+ }
14
+ const ChartContainer = React.forwardRef(({
15
+ id,
16
+ className,
17
+ children,
18
+ config,
19
+ ...props
20
+ }, ref) => {
21
+ const uniqueId = React.useId();
22
+ const chartId = `chart-${id || uniqueId.replace(/:/g, '')}`;
23
+ return React.createElement(ChartContext.Provider, {
24
+ value: {
25
+ config
26
+ }
27
+ }, React.createElement("div", {
28
+ "data-chart": chartId,
29
+ ref: ref,
30
+ className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none", className),
31
+ ...props
32
+ }, React.createElement(ChartStyle, {
33
+ id: chartId,
34
+ config: config
35
+ }), React.createElement(RechartsPrimitive.ResponsiveContainer, null, children)));
36
+ });
37
+ ChartContainer.displayName = 'Chart';
38
+ const ChartStyle = ({
39
+ id,
40
+ config
41
+ }) => {
42
+ const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color);
43
+ if (!colorConfig.length) {
44
+ return null;
45
+ }
46
+ return React.createElement("style", {
47
+ dangerouslySetInnerHTML: {
48
+ __html: Object.entries(THEMES).map(([theme, prefix]) => `
49
+ ${prefix} [data-chart=${id}] {
50
+ ${colorConfig.map(([key, itemConfig]) => {
51
+ const color = itemConfig.theme?.[theme] || itemConfig.color;
52
+ return color ? ` --color-${key}: ${color};` : null;
53
+ }).join('\n')}
54
+ }
55
+ `).join('\n')
56
+ }
57
+ });
58
+ };
59
+ const ChartTooltip = RechartsPrimitive.Tooltip;
60
+ const ChartTooltipContent = React.forwardRef(({
61
+ active,
62
+ payload,
63
+ className,
64
+ indicator = 'dot',
65
+ hideLabel = false,
66
+ hideIndicator = false,
67
+ label,
68
+ labelFormatter,
69
+ labelClassName,
70
+ formatter,
71
+ color,
72
+ nameKey,
73
+ labelKey
74
+ }, ref) => {
75
+ const {
76
+ config
77
+ } = useChart();
78
+ const tooltipLabel = React.useMemo(() => {
79
+ if (hideLabel || !payload?.length) {
80
+ return null;
81
+ }
82
+ const [item] = payload;
83
+ const key = `${labelKey || item.dataKey || item.name || 'value'}`;
84
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
85
+ const value = !labelKey && typeof label === 'string' ? config[label]?.label || label : itemConfig?.label;
86
+ if (labelFormatter) {
87
+ return React.createElement("div", {
88
+ className: cn('font-medium', labelClassName)
89
+ }, labelFormatter(value, payload));
90
+ }
91
+ if (!value) {
92
+ return null;
93
+ }
94
+ return React.createElement("div", {
95
+ className: cn('font-medium', labelClassName)
96
+ }, value);
97
+ }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
98
+ if (!active || !payload?.length) {
99
+ return null;
100
+ }
101
+ const nestLabel = payload.length === 1 && indicator !== 'dot';
102
+ return React.createElement("div", {
103
+ ref: ref,
104
+ className: cn('grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl', className)
105
+ }, !nestLabel ? tooltipLabel : null, React.createElement("div", {
106
+ className: "grid gap-1.5"
107
+ }, payload.map((item, index) => {
108
+ const key = `${nameKey || item.name || item.dataKey || 'value'}`;
109
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
110
+ const indicatorColor = color || item.payload.fill || item.color;
111
+ return React.createElement("div", {
112
+ key: item.dataKey,
113
+ className: cn('flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground', indicator === 'dot' && 'items-center')
114
+ }, formatter && item?.value !== undefined && item.name ? formatter(item.value, item.name, item, index, item.payload) : React.createElement(React.Fragment, null, itemConfig?.icon ? React.createElement(itemConfig.icon, null) : !hideIndicator && React.createElement("div", {
115
+ className: cn('shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]', {
116
+ 'h-2.5 w-2.5': indicator === 'dot',
117
+ 'w-1': indicator === 'line',
118
+ 'w-0 border-[1.5px] border-dashed bg-transparent': indicator === 'dashed',
119
+ 'my-0.5': nestLabel && indicator === 'dashed'
120
+ }),
121
+ style: {
122
+ '--color-bg': indicatorColor,
123
+ '--color-border': indicatorColor
124
+ }
125
+ }), React.createElement("div", {
126
+ className: cn('flex flex-1 justify-between leading-none', nestLabel ? 'items-end' : 'items-center')
127
+ }, React.createElement("div", {
128
+ className: "grid gap-1.5"
129
+ }, nestLabel ? tooltipLabel : null, React.createElement("span", {
130
+ className: "text-muted-foreground"
131
+ }, itemConfig?.label || item.name)), item.value && React.createElement("span", {
132
+ className: "font-mono font-medium tabular-nums text-foreground"
133
+ }, item.value.toLocaleString()))));
134
+ })));
135
+ });
136
+ ChartTooltipContent.displayName = 'ChartTooltip';
137
+ const ChartLegend = RechartsPrimitive.Legend;
138
+ const ChartLegendContent = React.forwardRef(({
139
+ className,
140
+ hideIcon = false,
141
+ payload,
142
+ verticalAlign = 'bottom',
143
+ nameKey
144
+ }, ref) => {
145
+ const {
146
+ config
147
+ } = useChart();
148
+ if (!payload?.length) {
149
+ return null;
150
+ }
151
+ return React.createElement("div", {
152
+ ref: ref,
153
+ className: cn('flex items-center justify-center gap-4', verticalAlign === 'top' ? 'pb-3' : 'pt-3', className)
154
+ }, payload.map(item => {
155
+ const key = `${nameKey || item.dataKey || 'value'}`;
156
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
157
+ return React.createElement("div", {
158
+ key: item.value,
159
+ className: cn('flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground')
160
+ }, itemConfig?.icon && !hideIcon ? React.createElement(itemConfig.icon, null) : React.createElement("div", {
161
+ className: "h-2 w-2 shrink-0 rounded-[2px]",
162
+ style: {
163
+ backgroundColor: item.color
164
+ }
165
+ }), itemConfig?.label);
166
+ }));
167
+ });
168
+ ChartLegendContent.displayName = 'ChartLegend';
169
+ // Helper to extract item config from a payload.
170
+ function getPayloadConfigFromPayload(config, payload, key) {
171
+ if (typeof payload !== 'object' || payload === null) {
172
+ return undefined;
173
+ }
174
+ const payloadPayload = 'payload' in payload && typeof payload.payload === 'object' && payload.payload !== null ? payload.payload : undefined;
175
+ let configLabelKey = key;
176
+ if (key in payload && typeof payload[key] === 'string') {
177
+ configLabelKey = payload[key];
178
+ } else if (payloadPayload && key in payloadPayload && typeof payloadPayload[key] === 'string') {
179
+ configLabelKey = payloadPayload[key];
180
+ }
181
+ return configLabelKey in config ? config[configLabelKey] : config[key];
182
+ }export{ChartContainer,ChartLegend,ChartLegendContent,ChartStyle,ChartTooltip,ChartTooltipContent};//# sourceMappingURL=chart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chart.js","sources":["../../src/shardui/chart.tsx"],"sourcesContent":[null],"names":[],"mappings":";;EAMqD,KAAA,EAAA,EAAA;AAErD,EAAA,IAAM,EAAA;;AAEE,MAAA,YAAQ,GAAK,mBAAW,CAAA,IAAA,CAAA;AACxB,SAAA,QAAO,GAAK;AACf,EAAA,MAAG,OAAC,GAAA,KAAA,CAAA,UAAA,CAAA,YAAA,CAAA;cAAQ,EAAE;UAAQ,IAAM,KAAE,CAAA,mDAAK,CAAA;;SAAO,OAAQ;;AAAmD,MAAC,cAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;EACzG,EAAA;AAkBF,EAAA;;;;AA6BA,CAAA,EAAA,GAAA,KAAA;QAA0C,QAAO,GAAA,KAAA,CAAA,KAAA,EAAA;QAAC,iBAAmB,EAAA,EAAA,IAAA,QAAA,CAAA,OAAA,CAAA,IAAA,EAAA,EAAA,CAAA,CAAA,CAAA;AAAE,EAAA,OAAA,KAAA,CAAA,aA2BrE,CAAA,YAAA,CAAA,QAAA,EAAA;AAEF,IAAA,KAAA,EAAA;AAEA,MAAA;;;;;;;;;;;;;;;;;;;;;;;oBAIwB,CAAA,OAAO,CAAA,MAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,KAAA,EAAA,MAAA,CAAA,KAAA;sBACH,EAAA,EAAA,CAAO;iBACX,CAAA,CAAA,CAAA,GAAM,EAAG,UAAQ,CAAA,KAAQ;cAC3B,KAAA,GAAM,UAAA,CAAA,KAAA,GAAA,KAAA,CAAA,IAAA,UAAA,CAAA,KAAA;eACL,KAAA,GAAM,CAAA,UAAA,EAAA,GAAA,CAAA,EAAA,EAAA,KAAA,CAAA,CAAA,CAAA,GAAA,IAAA;;AAsI7B;AAEA,CAAA,CAAA,CAAA,IAAA,CAAA;;;;AA+EA,MAAA,YAAS,GAAA,iBAA4B,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Checkbox };
5
+ //# sourceMappingURL=checkbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/shardui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAK9D,QAAA,MAAM,QAAQ,iKAgBZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import*as React from'react';import*as CheckboxPrimitive from'@radix-ui/react-checkbox';import {Check}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Checkbox = React.forwardRef(({
2
+ className,
3
+ ...props
4
+ }, ref) => React.createElement(CheckboxPrimitive.Root, {
5
+ ref: ref,
6
+ className: cn('peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground', className),
7
+ ...props
8
+ }, React.createElement(CheckboxPrimitive.Indicator, {
9
+ className: cn('flex items-center justify-center text-current')
10
+ }, React.createElement(Check, {
11
+ className: "h-4 w-4"
12
+ }))));
13
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;export{Checkbox};//# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+ declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
6
+ //# sourceMappingURL=collapsible.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../src/shardui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAC;AAEpE,QAAA,MAAM,WAAW,kIAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB,4IAA0C,CAAC;AAEnE,QAAA,MAAM,kBAAkB,yIAA0C,CAAC;AAEnE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import*as CollapsiblePrimitive from'@radix-ui/react-collapsible';const Collapsible = CollapsiblePrimitive.Root;
2
+ const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
3
+ const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;export{Collapsible,CollapsibleContent,CollapsibleTrigger};//# sourceMappingURL=collapsible.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collapsible.js","sources":["../../src/shardui/collapsible.tsx"],"sourcesContent":[null],"names":[],"mappings":"iEAEA,MAAA,WAAM,GAAA,oBAAW,CAAA;AAEjB,MAAA,kBAAM,GAAA,oBAAkB,CAAA;AAExB,MAAA,kBAAM,GAAA,oBAAkB,CAAA"}
@@ -0,0 +1,83 @@
1
+ import * as React from 'react';
2
+ import { type DialogProps } from '@radix-ui/react-dialog';
3
+ declare const Command: React.ForwardRefExoticComponent<Omit<{
4
+ children?: React.ReactNode;
5
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
+ ref?: React.Ref<HTMLDivElement>;
7
+ } & {
8
+ asChild?: boolean;
9
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
+ interface CommandDialogProps extends DialogProps {
21
+ }
22
+ declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React.JSX.Element;
23
+ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
24
+ ref?: React.Ref<HTMLInputElement>;
25
+ } & {
26
+ asChild?: boolean;
27
+ }, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "value" | "type" | "onChange"> & {
28
+ value?: string;
29
+ onValueChange?: (search: string) => void;
30
+ } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
31
+ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
32
+ children?: React.ReactNode;
33
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
34
+ ref?: React.Ref<HTMLDivElement>;
35
+ } & {
36
+ asChild?: boolean;
37
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
38
+ label?: string;
39
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
40
+ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
41
+ children?: React.ReactNode;
42
+ } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
43
+ ref?: React.Ref<HTMLDivElement>;
44
+ } & {
45
+ asChild?: boolean;
46
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
47
+ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
+ children?: React.ReactNode;
49
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
50
+ ref?: React.Ref<HTMLDivElement>;
51
+ } & {
52
+ asChild?: boolean;
53
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
54
+ heading?: React.ReactNode;
55
+ value?: string;
56
+ forceMount?: boolean;
57
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
58
+ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
59
+ ref?: React.Ref<HTMLDivElement>;
60
+ } & {
61
+ asChild?: boolean;
62
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
63
+ alwaysRender?: boolean;
64
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
65
+ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
+ children?: React.ReactNode;
67
+ } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
68
+ ref?: React.Ref<HTMLDivElement>;
69
+ } & {
70
+ asChild?: boolean;
71
+ }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "disabled" | "onSelect"> & {
72
+ disabled?: boolean;
73
+ onSelect?: (value: string) => void;
74
+ value?: string;
75
+ keywords?: string[];
76
+ forceMount?: boolean;
77
+ } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
78
+ declare const CommandShortcut: {
79
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
80
+ displayName: string;
81
+ };
82
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
83
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/shardui/command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1D,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYX,CAAC;AAGH,UAAU,kBAAmB,SAAQ,WAAW;CAAG;AAEnD,QAAA,MAAM,aAAa,GAAI,wBAAwB,kBAAkB,sBAUhE,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAC;AAIH,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAC;AAIH,QAAA,MAAM,YAAY;;;;;;uJAGqF,CAAC;AAIxG,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAC;AAIH,QAAA,MAAM,gBAAgB;;;;;;sFAKpB,CAAC;AAGH,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAC;AAIH,QAAA,MAAM,eAAe;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAEtF,CAAC;AAGF,OAAO,EACH,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACnB,CAAC"}