@devalok/shilp-sutra 0.1.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 (488) hide show
  1. package/dist/composed/avatar-group.d.ts +17 -0
  2. package/dist/composed/avatar-group.d.ts.map +1 -0
  3. package/dist/composed/avatar-group.js +103 -0
  4. package/dist/composed/command-palette.d.ts +29 -0
  5. package/dist/composed/command-palette.d.ts.map +1 -0
  6. package/dist/composed/command-palette.js +215 -0
  7. package/dist/composed/content-card.d.ts +15 -0
  8. package/dist/composed/content-card.d.ts.map +1 -0
  9. package/dist/composed/content-card.js +108 -0
  10. package/dist/composed/date-picker/calendar-grid.d.ts +21 -0
  11. package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -0
  12. package/dist/composed/date-picker/calendar-grid.js +173 -0
  13. package/dist/composed/date-picker/date-picker.d.ts +14 -0
  14. package/dist/composed/date-picker/date-picker.d.ts.map +1 -0
  15. package/dist/composed/date-picker/date-picker.js +123 -0
  16. package/dist/composed/date-picker/date-range-picker.d.ts +23 -0
  17. package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -0
  18. package/dist/composed/date-picker/date-range-picker.js +166 -0
  19. package/dist/composed/date-picker/date-time-picker.d.ts +24 -0
  20. package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -0
  21. package/dist/composed/date-picker/date-time-picker.js +192 -0
  22. package/dist/composed/date-picker/index.d.ts +18 -0
  23. package/dist/composed/date-picker/index.d.ts.map +1 -0
  24. package/dist/composed/date-picker/month-picker.d.ts +10 -0
  25. package/dist/composed/date-picker/month-picker.d.ts.map +1 -0
  26. package/dist/composed/date-picker/month-picker.js +52 -0
  27. package/dist/composed/date-picker/presets.d.ts +9 -0
  28. package/dist/composed/date-picker/presets.d.ts.map +1 -0
  29. package/dist/composed/date-picker/presets.js +83 -0
  30. package/dist/composed/date-picker/time-picker.d.ts +24 -0
  31. package/dist/composed/date-picker/time-picker.d.ts.map +1 -0
  32. package/dist/composed/date-picker/time-picker.js +180 -0
  33. package/dist/composed/date-picker/use-calendar.d.ts +9 -0
  34. package/dist/composed/date-picker/use-calendar.d.ts.map +1 -0
  35. package/dist/composed/date-picker/use-calendar.js +16 -0
  36. package/dist/composed/date-picker/year-picker.d.ts +10 -0
  37. package/dist/composed/date-picker/year-picker.d.ts.map +1 -0
  38. package/dist/composed/date-picker/year-picker.js +44 -0
  39. package/dist/composed/empty-state.d.ts +12 -0
  40. package/dist/composed/empty-state.d.ts.map +1 -0
  41. package/dist/composed/empty-state.js +74 -0
  42. package/dist/composed/error-boundary.d.ts +8 -0
  43. package/dist/composed/error-boundary.d.ts.map +1 -0
  44. package/dist/composed/error-boundary.js +114 -0
  45. package/dist/composed/global-loading.d.ts +7 -0
  46. package/dist/composed/global-loading.d.ts.map +1 -0
  47. package/dist/composed/global-loading.js +43 -0
  48. package/dist/composed/index.d.ts +28 -0
  49. package/dist/composed/index.d.ts.map +1 -0
  50. package/dist/composed/index.js +54 -0
  51. package/dist/composed/lib/string-utils.d.ts +6 -0
  52. package/dist/composed/lib/string-utils.d.ts.map +1 -0
  53. package/dist/composed/lib/string-utils.js +7 -0
  54. package/dist/composed/loading-skeleton.d.ts +22 -0
  55. package/dist/composed/loading-skeleton.d.ts.map +1 -0
  56. package/dist/composed/loading-skeleton.js +164 -0
  57. package/dist/composed/member-picker.d.ts +17 -0
  58. package/dist/composed/member-picker.d.ts.map +1 -0
  59. package/dist/composed/member-picker.js +81 -0
  60. package/dist/composed/page-header.d.ts +15 -0
  61. package/dist/composed/page-header.d.ts.map +1 -0
  62. package/dist/composed/page-header.js +65 -0
  63. package/dist/composed/page-skeletons.d.ts +6 -0
  64. package/dist/composed/page-skeletons.d.ts.map +1 -0
  65. package/dist/composed/page-skeletons.js +128 -0
  66. package/dist/composed/priority-indicator.d.ts +12 -0
  67. package/dist/composed/priority-indicator.d.ts.map +1 -0
  68. package/dist/composed/priority-indicator.js +86 -0
  69. package/dist/composed/rich-text-editor.d.ts +16 -0
  70. package/dist/composed/rich-text-editor.d.ts.map +1 -0
  71. package/dist/composed/rich-text-editor.js +222 -0
  72. package/dist/composed/status-badge.d.ts +13 -0
  73. package/dist/composed/status-badge.d.ts.map +1 -0
  74. package/dist/composed/status-badge.js +69 -0
  75. package/dist/hooks/index.d.ts +4 -0
  76. package/dist/hooks/index.d.ts.map +1 -0
  77. package/dist/hooks/use-color-mode.d.ts +7 -0
  78. package/dist/hooks/use-color-mode.d.ts.map +1 -0
  79. package/dist/hooks/use-color-mode.js +23 -0
  80. package/dist/hooks/use-mobile.d.ts +2 -0
  81. package/dist/hooks/use-mobile.d.ts.map +1 -0
  82. package/dist/hooks/use-mobile.js +14 -0
  83. package/dist/hooks/use-toast.d.ts +46 -0
  84. package/dist/hooks/use-toast.d.ts.map +1 -0
  85. package/dist/hooks/use-toast.js +97 -0
  86. package/dist/primitives/_internal/number.d.ts +7 -0
  87. package/dist/primitives/_internal/number.d.ts.map +1 -0
  88. package/dist/primitives/_internal/number.js +6 -0
  89. package/dist/primitives/_internal/primitive.d.ts +17 -0
  90. package/dist/primitives/_internal/primitive.d.ts.map +1 -0
  91. package/dist/primitives/_internal/primitive.js +9 -0
  92. package/dist/primitives/_internal/react-arrow.d.ts +14 -0
  93. package/dist/primitives/_internal/react-arrow.d.ts.map +1 -0
  94. package/dist/primitives/_internal/react-arrow.js +24 -0
  95. package/dist/primitives/_internal/react-collection.d.ts +22 -0
  96. package/dist/primitives/_internal/react-collection.d.ts.map +1 -0
  97. package/dist/primitives/_internal/react-collection.js +48 -0
  98. package/dist/primitives/_internal/react-compose-refs.d.ts +10 -0
  99. package/dist/primitives/_internal/react-compose-refs.d.ts.map +1 -0
  100. package/dist/primitives/_internal/react-compose-refs.js +29 -0
  101. package/dist/primitives/_internal/react-context.d.ts +25 -0
  102. package/dist/primitives/_internal/react-context.d.ts.map +1 -0
  103. package/dist/primitives/_internal/react-context.js +74 -0
  104. package/dist/primitives/_internal/react-direction.d.ts +16 -0
  105. package/dist/primitives/_internal/react-direction.d.ts.map +1 -0
  106. package/dist/primitives/_internal/react-direction.js +10 -0
  107. package/dist/primitives/_internal/react-dismissable-layer.d.ts +30 -0
  108. package/dist/primitives/_internal/react-dismissable-layer.d.ts.map +1 -0
  109. package/dist/primitives/_internal/react-dismissable-layer.js +131 -0
  110. package/dist/primitives/_internal/react-focus-guards.d.ts +12 -0
  111. package/dist/primitives/_internal/react-focus-guards.d.ts.map +1 -0
  112. package/dist/primitives/_internal/react-focus-guards.js +17 -0
  113. package/dist/primitives/_internal/react-focus-scope.d.ts +18 -0
  114. package/dist/primitives/_internal/react-focus-scope.d.ts.map +1 -0
  115. package/dist/primitives/_internal/react-focus-scope.js +137 -0
  116. package/dist/primitives/_internal/react-id.d.ts +7 -0
  117. package/dist/primitives/_internal/react-id.d.ts.map +1 -0
  118. package/dist/primitives/_internal/react-id.js +14 -0
  119. package/dist/primitives/_internal/react-popper.d.ts +50 -0
  120. package/dist/primitives/_internal/react-popper.d.ts.map +1 -0
  121. package/dist/primitives/_internal/react-popper.js +199 -0
  122. package/dist/primitives/_internal/react-portal.d.ts +15 -0
  123. package/dist/primitives/_internal/react-portal.d.ts.map +1 -0
  124. package/dist/primitives/_internal/react-portal.js +16 -0
  125. package/dist/primitives/_internal/react-presence.d.ts +16 -0
  126. package/dist/primitives/_internal/react-presence.d.ts.map +1 -0
  127. package/dist/primitives/_internal/react-presence.js +71 -0
  128. package/dist/primitives/_internal/react-primitive.d.ts +20 -0
  129. package/dist/primitives/_internal/react-primitive.d.ts.map +1 -0
  130. package/dist/primitives/_internal/react-primitive.js +36 -0
  131. package/dist/primitives/_internal/react-use-callback-ref.d.ts +7 -0
  132. package/dist/primitives/_internal/react-use-callback-ref.d.ts.map +1 -0
  133. package/dist/primitives/_internal/react-use-callback-ref.js +13 -0
  134. package/dist/primitives/_internal/react-use-controllable-state.d.ts +16 -0
  135. package/dist/primitives/_internal/react-use-controllable-state.d.ts.map +1 -0
  136. package/dist/primitives/_internal/react-use-controllable-state.js +44 -0
  137. package/dist/primitives/_internal/react-use-effect-event.d.ts +8 -0
  138. package/dist/primitives/_internal/react-use-effect-event.d.ts.map +1 -0
  139. package/dist/primitives/_internal/react-use-escape-keydown.d.ts +7 -0
  140. package/dist/primitives/_internal/react-use-escape-keydown.d.ts.map +1 -0
  141. package/dist/primitives/_internal/react-use-escape-keydown.js +14 -0
  142. package/dist/primitives/_internal/react-use-is-hydrated.d.ts +7 -0
  143. package/dist/primitives/_internal/react-use-is-hydrated.d.ts.map +1 -0
  144. package/dist/primitives/_internal/react-use-is-hydrated.js +15 -0
  145. package/dist/primitives/_internal/react-use-layout-effect.d.ts +8 -0
  146. package/dist/primitives/_internal/react-use-layout-effect.d.ts.map +1 -0
  147. package/dist/primitives/_internal/react-use-layout-effect.js +6 -0
  148. package/dist/primitives/_internal/react-use-previous.d.ts +7 -0
  149. package/dist/primitives/_internal/react-use-previous.d.ts.map +1 -0
  150. package/dist/primitives/_internal/react-use-previous.js +8 -0
  151. package/dist/primitives/_internal/react-use-rect.d.ts +4 -0
  152. package/dist/primitives/_internal/react-use-rect.d.ts.map +1 -0
  153. package/dist/primitives/_internal/react-use-size.d.ts +10 -0
  154. package/dist/primitives/_internal/react-use-size.d.ts.map +1 -0
  155. package/dist/primitives/_internal/react-use-size.js +27 -0
  156. package/dist/primitives/_internal/rect.d.ts +12 -0
  157. package/dist/primitives/_internal/rect.d.ts.map +1 -0
  158. package/dist/primitives/react-accordion.js +239 -0
  159. package/dist/primitives/react-alert-dialog.js +127 -0
  160. package/dist/primitives/react-aspect-ratio.js +43 -0
  161. package/dist/primitives/react-avatar.js +75 -0
  162. package/dist/primitives/react-checkbox.js +251 -0
  163. package/dist/primitives/react-collapsible.js +120 -0
  164. package/dist/primitives/react-context-menu.js +240 -0
  165. package/dist/primitives/react-dialog.js +262 -0
  166. package/dist/primitives/react-dropdown-menu.js +227 -0
  167. package/dist/primitives/react-hover-card.js +187 -0
  168. package/dist/primitives/react-label.js +20 -0
  169. package/dist/primitives/react-menu.js +652 -0
  170. package/dist/primitives/react-menubar.js +355 -0
  171. package/dist/primitives/react-navigation-menu.js +607 -0
  172. package/dist/primitives/react-popover.js +243 -0
  173. package/dist/primitives/react-progress.js +84 -0
  174. package/dist/primitives/react-radio-group.js +238 -0
  175. package/dist/primitives/react-roving-focus.js +183 -0
  176. package/dist/primitives/react-select.js +862 -0
  177. package/dist/primitives/react-separator.js +24 -0
  178. package/dist/primitives/react-slider.js +437 -0
  179. package/dist/primitives/react-slot.d.ts +27 -0
  180. package/dist/primitives/react-slot.d.ts.map +1 -0
  181. package/dist/primitives/react-slot.js +70 -0
  182. package/dist/primitives/react-switch.js +132 -0
  183. package/dist/primitives/react-tabs.js +163 -0
  184. package/dist/primitives/react-toast.js +446 -0
  185. package/dist/primitives/react-toggle-group.js +137 -0
  186. package/dist/primitives/react-toggle.js +33 -0
  187. package/dist/primitives/react-tooltip.js +338 -0
  188. package/dist/primitives/react-visually-hidden.js +32 -0
  189. package/dist/shell/app-command-palette.d.ts +35 -0
  190. package/dist/shell/app-command-palette.d.ts.map +1 -0
  191. package/dist/shell/app-command-palette.js +196 -0
  192. package/dist/shell/bottom-navbar.d.ts +35 -0
  193. package/dist/shell/bottom-navbar.d.ts.map +1 -0
  194. package/dist/shell/bottom-navbar.js +160 -0
  195. package/dist/shell/index.d.ts +7 -0
  196. package/dist/shell/index.d.ts.map +1 -0
  197. package/dist/shell/index.js +14 -0
  198. package/dist/shell/notification-center.d.ts +50 -0
  199. package/dist/shell/notification-center.d.ts.map +1 -0
  200. package/dist/shell/notification-center.js +221 -0
  201. package/dist/shell/notification-preferences.d.ts +41 -0
  202. package/dist/shell/notification-preferences.d.ts.map +1 -0
  203. package/dist/shell/notification-preferences.js +183 -0
  204. package/dist/shell/sidebar.d.ts +51 -0
  205. package/dist/shell/sidebar.d.ts.map +1 -0
  206. package/dist/shell/sidebar.js +101 -0
  207. package/dist/shell/top-bar.d.ts +33 -0
  208. package/dist/shell/top-bar.d.ts.map +1 -0
  209. package/dist/shell/top-bar.js +140 -0
  210. package/dist/tailwind/index.d.ts +2 -0
  211. package/dist/tailwind/index.d.ts.map +1 -0
  212. package/dist/tailwind/index.js +4 -0
  213. package/dist/tailwind/preset.d.ts +4 -0
  214. package/dist/tailwind/preset.d.ts.map +1 -0
  215. package/dist/tailwind/preset.js +310 -0
  216. package/dist/tokens/index.css +3 -0
  217. package/dist/tokens/primitives.css +189 -0
  218. package/dist/tokens/semantic.css +426 -0
  219. package/dist/tokens/typography-semantic.css +100 -0
  220. package/dist/tokens/typography.css +393 -0
  221. package/dist/ui/accordion.d.ts +53 -0
  222. package/dist/ui/accordion.d.ts.map +1 -0
  223. package/dist/ui/accordion.js +46 -0
  224. package/dist/ui/alert-dialog.d.ts +21 -0
  225. package/dist/ui/alert-dialog.d.ts.map +1 -0
  226. package/dist/ui/alert-dialog.js +117 -0
  227. package/dist/ui/alert.d.ts +47 -0
  228. package/dist/ui/alert.d.ts.map +1 -0
  229. package/dist/ui/alert.js +52 -0
  230. package/dist/ui/aspect-ratio.d.ts +4 -0
  231. package/dist/ui/aspect-ratio.d.ts.map +1 -0
  232. package/dist/ui/aspect-ratio.js +6 -0
  233. package/dist/ui/autocomplete.d.ts +49 -0
  234. package/dist/ui/autocomplete.d.ts.map +1 -0
  235. package/dist/ui/autocomplete.js +124 -0
  236. package/dist/ui/avatar.d.ts +51 -0
  237. package/dist/ui/avatar.d.ts.map +1 -0
  238. package/dist/ui/avatar.js +91 -0
  239. package/dist/ui/badge.d.ts +43 -0
  240. package/dist/ui/badge.d.ts.map +1 -0
  241. package/dist/ui/badge.js +64 -0
  242. package/dist/ui/banner.d.ts +43 -0
  243. package/dist/ui/banner.d.ts.map +1 -0
  244. package/dist/ui/banner.js +50 -0
  245. package/dist/ui/breadcrumb.d.ts +20 -0
  246. package/dist/ui/breadcrumb.d.ts.map +1 -0
  247. package/dist/ui/breadcrumb.js +83 -0
  248. package/dist/ui/button-group.d.ts +51 -0
  249. package/dist/ui/button-group.d.ts.map +1 -0
  250. package/dist/ui/button-group.js +41 -0
  251. package/dist/ui/button.d.ts +63 -0
  252. package/dist/ui/button.d.ts.map +1 -0
  253. package/dist/ui/button.js +105 -0
  254. package/dist/ui/card.d.ts +64 -0
  255. package/dist/ui/card.d.ts.map +1 -0
  256. package/dist/ui/card.js +79 -0
  257. package/dist/ui/charts/_internal/animation.d.ts +5 -0
  258. package/dist/ui/charts/_internal/animation.d.ts.map +1 -0
  259. package/dist/ui/charts/_internal/animation.js +17 -0
  260. package/dist/ui/charts/_internal/axes.d.ts +17 -0
  261. package/dist/ui/charts/_internal/axes.d.ts.map +1 -0
  262. package/dist/ui/charts/_internal/axes.js +41 -0
  263. package/dist/ui/charts/_internal/colors.d.ts +8 -0
  264. package/dist/ui/charts/_internal/colors.d.ts.map +1 -0
  265. package/dist/ui/charts/_internal/colors.js +20 -0
  266. package/dist/ui/charts/_internal/grid-lines.d.ts +16 -0
  267. package/dist/ui/charts/_internal/grid-lines.d.ts.map +1 -0
  268. package/dist/ui/charts/_internal/grid-lines.js +42 -0
  269. package/dist/ui/charts/_internal/legend.d.ts +15 -0
  270. package/dist/ui/charts/_internal/legend.d.ts.map +1 -0
  271. package/dist/ui/charts/_internal/legend.js +28 -0
  272. package/dist/ui/charts/_internal/scales.d.ts +5 -0
  273. package/dist/ui/charts/_internal/scales.d.ts.map +1 -0
  274. package/dist/ui/charts/_internal/tooltip.d.ts +23 -0
  275. package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -0
  276. package/dist/ui/charts/_internal/tooltip.js +38 -0
  277. package/dist/ui/charts/_internal/types.d.ts +17 -0
  278. package/dist/ui/charts/_internal/types.d.ts.map +1 -0
  279. package/dist/ui/charts/_internal/types.js +9 -0
  280. package/dist/ui/charts/area-chart.d.ts +39 -0
  281. package/dist/ui/charts/area-chart.d.ts.map +1 -0
  282. package/dist/ui/charts/area-chart.js +244 -0
  283. package/dist/ui/charts/bar-chart.d.ts +41 -0
  284. package/dist/ui/charts/bar-chart.d.ts.map +1 -0
  285. package/dist/ui/charts/bar-chart.js +152 -0
  286. package/dist/ui/charts/chart-container.d.ts +20 -0
  287. package/dist/ui/charts/chart-container.d.ts.map +1 -0
  288. package/dist/ui/charts/chart-container.js +26 -0
  289. package/dist/ui/charts/gauge-chart.d.ts +32 -0
  290. package/dist/ui/charts/gauge-chart.d.ts.map +1 -0
  291. package/dist/ui/charts/gauge-chart.js +71 -0
  292. package/dist/ui/charts/index.d.ts +10 -0
  293. package/dist/ui/charts/index.d.ts.map +1 -0
  294. package/dist/ui/charts/line-chart.d.ts +37 -0
  295. package/dist/ui/charts/line-chart.d.ts.map +1 -0
  296. package/dist/ui/charts/line-chart.js +162 -0
  297. package/dist/ui/charts/pie-chart.d.ts +37 -0
  298. package/dist/ui/charts/pie-chart.d.ts.map +1 -0
  299. package/dist/ui/charts/pie-chart.js +131 -0
  300. package/dist/ui/charts/radar-chart.d.ts +34 -0
  301. package/dist/ui/charts/radar-chart.d.ts.map +1 -0
  302. package/dist/ui/charts/radar-chart.js +222 -0
  303. package/dist/ui/charts/sparkline.d.ts +22 -0
  304. package/dist/ui/charts/sparkline.d.ts.map +1 -0
  305. package/dist/ui/charts/sparkline.js +123 -0
  306. package/dist/ui/checkbox.d.ts +36 -0
  307. package/dist/ui/checkbox.d.ts.map +1 -0
  308. package/dist/ui/checkbox.js +33 -0
  309. package/dist/ui/chip.d.ts +66 -0
  310. package/dist/ui/chip.d.ts.map +1 -0
  311. package/dist/ui/chip.js +105 -0
  312. package/dist/ui/code.d.ts +30 -0
  313. package/dist/ui/code.d.ts.map +1 -0
  314. package/dist/ui/code.js +32 -0
  315. package/dist/ui/collapsible.d.ts +7 -0
  316. package/dist/ui/collapsible.d.ts.map +1 -0
  317. package/dist/ui/collapsible.js +21 -0
  318. package/dist/ui/combobox.d.ts +76 -0
  319. package/dist/ui/combobox.d.ts.map +1 -0
  320. package/dist/ui/combobox.js +286 -0
  321. package/dist/ui/container.d.ts +10 -0
  322. package/dist/ui/container.d.ts.map +1 -0
  323. package/dist/ui/container.js +24 -0
  324. package/dist/ui/context-menu.d.ts +28 -0
  325. package/dist/ui/context-menu.d.ts.map +1 -0
  326. package/dist/ui/context-menu.js +145 -0
  327. package/dist/ui/data-table-toolbar.d.ts +16 -0
  328. package/dist/ui/data-table-toolbar.d.ts.map +1 -0
  329. package/dist/ui/data-table-toolbar.js +136 -0
  330. package/dist/ui/data-table.d.ts +111 -0
  331. package/dist/ui/data-table.d.ts.map +1 -0
  332. package/dist/ui/data-table.js +491 -0
  333. package/dist/ui/dialog.d.ts +74 -0
  334. package/dist/ui/dialog.d.ts.map +1 -0
  335. package/dist/ui/dialog.js +110 -0
  336. package/dist/ui/dropdown-menu.d.ts +88 -0
  337. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  338. package/dist/ui/dropdown-menu.js +144 -0
  339. package/dist/ui/file-upload.d.ts +67 -0
  340. package/dist/ui/file-upload.d.ts.map +1 -0
  341. package/dist/ui/file-upload.js +226 -0
  342. package/dist/ui/form.d.ts +56 -0
  343. package/dist/ui/form.d.ts.map +1 -0
  344. package/dist/ui/form.js +46 -0
  345. package/dist/ui/hover-card.d.ts +7 -0
  346. package/dist/ui/hover-card.d.ts.map +1 -0
  347. package/dist/ui/hover-card.js +23 -0
  348. package/dist/ui/icon-button.d.ts +46 -0
  349. package/dist/ui/icon-button.d.ts.map +1 -0
  350. package/dist/ui/icon-button.js +26 -0
  351. package/dist/ui/index.d.ts +68 -0
  352. package/dist/ui/index.d.ts.map +1 -0
  353. package/dist/ui/index.js +344 -0
  354. package/dist/ui/input-otp.d.ts +35 -0
  355. package/dist/ui/input-otp.d.ts.map +1 -0
  356. package/dist/ui/input-otp.js +48 -0
  357. package/dist/ui/input.d.ts +44 -0
  358. package/dist/ui/input.d.ts.map +1 -0
  359. package/dist/ui/input.js +58 -0
  360. package/dist/ui/label.d.ts +8 -0
  361. package/dist/ui/label.d.ts.map +1 -0
  362. package/dist/ui/label.js +23 -0
  363. package/dist/ui/lib/motion.d.ts +10 -0
  364. package/dist/ui/lib/motion.d.ts.map +1 -0
  365. package/dist/ui/lib/motion.js +32 -0
  366. package/dist/ui/lib/slot.d.ts +8 -0
  367. package/dist/ui/lib/slot.d.ts.map +1 -0
  368. package/dist/ui/lib/use-reduced-motion.d.ts +3 -0
  369. package/dist/ui/lib/use-reduced-motion.d.ts.map +1 -0
  370. package/dist/ui/lib/use-reduced-motion.js +14 -0
  371. package/dist/ui/lib/use-ripple.d.ts +13 -0
  372. package/dist/ui/lib/use-ripple.d.ts.map +1 -0
  373. package/dist/ui/lib/use-ripple.js +13 -0
  374. package/dist/ui/lib/utils.d.ts +3 -0
  375. package/dist/ui/lib/utils.d.ts.map +1 -0
  376. package/dist/ui/lib/utils.js +15 -0
  377. package/dist/ui/link.d.ts +8 -0
  378. package/dist/ui/link.d.ts.map +1 -0
  379. package/dist/ui/link.js +24 -0
  380. package/dist/ui/menubar.d.ts +29 -0
  381. package/dist/ui/menubar.d.ts.map +1 -0
  382. package/dist/ui/menubar.js +176 -0
  383. package/dist/ui/navigation-menu.d.ts +12 -0
  384. package/dist/ui/navigation-menu.d.ts.map +1 -0
  385. package/dist/ui/navigation-menu.js +103 -0
  386. package/dist/ui/number-input.d.ts +40 -0
  387. package/dist/ui/number-input.d.ts.map +1 -0
  388. package/dist/ui/number-input.js +80 -0
  389. package/dist/ui/pagination.d.ts +74 -0
  390. package/dist/ui/pagination.d.ts.map +1 -0
  391. package/dist/ui/pagination.js +159 -0
  392. package/dist/ui/popover.d.ts +8 -0
  393. package/dist/ui/popover.d.ts.map +1 -0
  394. package/dist/ui/popover.js +24 -0
  395. package/dist/ui/progress.d.ts +49 -0
  396. package/dist/ui/progress.d.ts.map +1 -0
  397. package/dist/ui/progress.js +75 -0
  398. package/dist/ui/radio.d.ts +6 -0
  399. package/dist/ui/radio.d.ts.map +1 -0
  400. package/dist/ui/radio.js +29 -0
  401. package/dist/ui/search-input.d.ts +44 -0
  402. package/dist/ui/search-input.d.ts.map +1 -0
  403. package/dist/ui/search-input.js +63 -0
  404. package/dist/ui/segmented-control.d.ts +122 -0
  405. package/dist/ui/segmented-control.d.ts.map +1 -0
  406. package/dist/ui/segmented-control.js +270 -0
  407. package/dist/ui/select.d.ts +49 -0
  408. package/dist/ui/select.d.ts.map +1 -0
  409. package/dist/ui/select.js +132 -0
  410. package/dist/ui/separator.d.ts +5 -0
  411. package/dist/ui/separator.d.ts.map +1 -0
  412. package/dist/ui/separator.js +24 -0
  413. package/dist/ui/sheet.d.ts +108 -0
  414. package/dist/ui/sheet.d.ts.map +1 -0
  415. package/dist/ui/sheet.js +110 -0
  416. package/dist/ui/sidebar.d.ts +67 -0
  417. package/dist/ui/sidebar.d.ts.map +1 -0
  418. package/dist/ui/sidebar.js +562 -0
  419. package/dist/ui/skeleton.d.ts +40 -0
  420. package/dist/ui/skeleton.d.ts.map +1 -0
  421. package/dist/ui/skeleton.js +36 -0
  422. package/dist/ui/slider.d.ts +5 -0
  423. package/dist/ui/slider.d.ts.map +1 -0
  424. package/dist/ui/slider.js +29 -0
  425. package/dist/ui/spinner.d.ts +38 -0
  426. package/dist/ui/spinner.d.ts.map +1 -0
  427. package/dist/ui/spinner.js +47 -0
  428. package/dist/ui/stack.d.ts +15 -0
  429. package/dist/ui/stack.d.ts.map +1 -0
  430. package/dist/ui/stack.js +41 -0
  431. package/dist/ui/stat-card.d.ts +54 -0
  432. package/dist/ui/stat-card.d.ts.map +1 -0
  433. package/dist/ui/stat-card.js +52 -0
  434. package/dist/ui/stepper.d.ts +57 -0
  435. package/dist/ui/stepper.d.ts.map +1 -0
  436. package/dist/ui/stepper.js +90 -0
  437. package/dist/ui/switch.d.ts +5 -0
  438. package/dist/ui/switch.d.ts.map +1 -0
  439. package/dist/ui/switch.js +27 -0
  440. package/dist/ui/table.d.ts +11 -0
  441. package/dist/ui/table.d.ts.map +1 -0
  442. package/dist/ui/table.js +91 -0
  443. package/dist/ui/tabs.d.ts +81 -0
  444. package/dist/ui/tabs.d.ts.map +1 -0
  445. package/dist/ui/tabs.js +74 -0
  446. package/dist/ui/text.d.ts +47 -0
  447. package/dist/ui/text.d.ts.map +1 -0
  448. package/dist/ui/text.js +59 -0
  449. package/dist/ui/textarea.d.ts +40 -0
  450. package/dist/ui/textarea.d.ts.map +1 -0
  451. package/dist/ui/textarea.js +47 -0
  452. package/dist/ui/toast.d.ts +32 -0
  453. package/dist/ui/toast.d.ts.map +1 -0
  454. package/dist/ui/toast.js +98 -0
  455. package/dist/ui/toaster.d.ts +42 -0
  456. package/dist/ui/toaster.d.ts.map +1 -0
  457. package/dist/ui/toaster.js +23 -0
  458. package/dist/ui/toggle-group.d.ts +13 -0
  459. package/dist/ui/toggle-group.d.ts.map +1 -0
  460. package/dist/ui/toggle-group.js +40 -0
  461. package/dist/ui/toggle.d.ts +13 -0
  462. package/dist/ui/toggle.d.ts.map +1 -0
  463. package/dist/ui/toggle.js +37 -0
  464. package/dist/ui/tooltip.d.ts +8 -0
  465. package/dist/ui/tooltip.d.ts.map +1 -0
  466. package/dist/ui/tooltip.js +23 -0
  467. package/dist/ui/transitions.d.ts +16 -0
  468. package/dist/ui/transitions.d.ts.map +1 -0
  469. package/dist/ui/transitions.js +100 -0
  470. package/dist/ui/tree-view/index.d.ts +4 -0
  471. package/dist/ui/tree-view/index.d.ts.map +1 -0
  472. package/dist/ui/tree-view/tree-item.d.ts +22 -0
  473. package/dist/ui/tree-view/tree-item.d.ts.map +1 -0
  474. package/dist/ui/tree-view/tree-item.js +136 -0
  475. package/dist/ui/tree-view/tree-view.d.ts +29 -0
  476. package/dist/ui/tree-view/tree-view.d.ts.map +1 -0
  477. package/dist/ui/tree-view/tree-view.js +139 -0
  478. package/dist/ui/tree-view/use-tree.d.ts +26 -0
  479. package/dist/ui/tree-view/use-tree.d.ts.map +1 -0
  480. package/dist/ui/tree-view/use-tree.js +37 -0
  481. package/dist/ui/visually-hidden.d.ts +6 -0
  482. package/dist/ui/visually-hidden.d.ts.map +1 -0
  483. package/dist/ui/visually-hidden.js +10 -0
  484. package/fonts/GoogleSans-Italic-Variable.ttf +0 -0
  485. package/fonts/GoogleSans-Variable.ttf +0 -0
  486. package/fonts/Ranade-Variable.ttf +0 -0
  487. package/fonts/Ranade-VariableItalic.ttf +0 -0
  488. package/package.json +83 -0
@@ -0,0 +1,103 @@
1
+ import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { Item as v, Link as N, Root as r, Content as m, Indicator as l, List as f, Trigger as u, Viewport as c } from "../primitives/react-navigation-menu.js";
4
+ import { IconChevronDown as g } from "@tabler/icons-react";
5
+ import { cn as i } from "./lib/utils.js";
6
+ const w = n.forwardRef(({ className: e, children: t, ...a }, s) => /* @__PURE__ */ d(
7
+ r,
8
+ {
9
+ ref: s,
10
+ className: i(
11
+ "relative z-raised flex max-w-max flex-1 items-center justify-center",
12
+ e
13
+ ),
14
+ ...a,
15
+ children: [
16
+ t,
17
+ /* @__PURE__ */ o(p, {})
18
+ ]
19
+ }
20
+ ));
21
+ w.displayName = r.displayName;
22
+ const h = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
23
+ f,
24
+ {
25
+ ref: a,
26
+ className: i(
27
+ "group flex flex-1 list-none items-center justify-center space-x-ds-02",
28
+ e
29
+ ),
30
+ ...t
31
+ }
32
+ ));
33
+ h.displayName = f.displayName;
34
+ const z = v, b = n.forwardRef(({ className: e, children: t, ...a }, s) => /* @__PURE__ */ d(
35
+ u,
36
+ {
37
+ ref: s,
38
+ className: i(
39
+ "group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-field focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus disabled:pointer-events-none disabled:opacity-[0.38]",
40
+ e
41
+ ),
42
+ ...a,
43
+ children: [
44
+ t,
45
+ " ",
46
+ /* @__PURE__ */ o(
47
+ g,
48
+ {
49
+ className: "relative top-[1px] ml-ds-02 h-3 w-3 transition-transform duration-moderate-02 group-data-[state=open]:rotate-180",
50
+ "aria-hidden": "true"
51
+ }
52
+ )
53
+ ]
54
+ }
55
+ ));
56
+ b.displayName = u.displayName;
57
+ const y = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
58
+ m,
59
+ {
60
+ ref: a,
61
+ className: i(
62
+ "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",
63
+ e
64
+ ),
65
+ ...t
66
+ }
67
+ ));
68
+ y.displayName = m.displayName;
69
+ const L = N, p = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { className: i("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ o(
70
+ c,
71
+ {
72
+ className: i(
73
+ "origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-ds-lg border border-border bg-layer-01 shadow-03 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
74
+ e
75
+ ),
76
+ ref: a,
77
+ ...t
78
+ }
79
+ ) }));
80
+ p.displayName = c.displayName;
81
+ const x = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
82
+ l,
83
+ {
84
+ ref: a,
85
+ className: i(
86
+ "top-full z-base flex h-ds-02b items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
87
+ e
88
+ ),
89
+ ...t,
90
+ children: /* @__PURE__ */ o("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-02" })
91
+ }
92
+ ));
93
+ x.displayName = l.displayName;
94
+ export {
95
+ w as NavigationMenu,
96
+ y as NavigationMenuContent,
97
+ x as NavigationMenuIndicator,
98
+ z as NavigationMenuItem,
99
+ L as NavigationMenuLink,
100
+ h as NavigationMenuList,
101
+ b as NavigationMenuTrigger,
102
+ p as NavigationMenuViewport
103
+ };
@@ -0,0 +1,40 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * Props for NumberInput — a stepper control with "−" and "+" buttons flanking a numeric input,
4
+ * clamped between `min` and `max`. The decrement/increment buttons are disabled when bounds are reached.
5
+ *
6
+ * **Controlled only:** Pass `value` + `onChange` for controlled usage. Uncontrolled usage is
7
+ * possible but the buttons won't update the displayed value without `onChange`.
8
+ *
9
+ * **Step:** The `step` prop controls how much each button press increments/decrements (default 1).
10
+ * Direct text input is also clamped to `[min, max]` on change.
11
+ *
12
+ * @example
13
+ * // Quantity selector with 1–99 range:
14
+ * <NumberInput value={qty} onChange={setQty} min={1} max={99} />
15
+ *
16
+ * @example
17
+ * // Rating input (1–10, step 1):
18
+ * <NumberInput value={rating} onChange={setRating} min={1} max={10} />
19
+ *
20
+ * @example
21
+ * // Fine-grained opacity control (0–100, step 5):
22
+ * <NumberInput value={opacity} onChange={setOpacity} min={0} max={100} step={5} />
23
+ *
24
+ * @example
25
+ * // Disabled number display (read-only-like):
26
+ * <NumberInput value={autoCalcValue} onChange={() => {}} disabled />
27
+ * // These are just a few ways — feel free to combine props creatively!
28
+ */
29
+ export interface NumberInputProps {
30
+ value?: number;
31
+ onChange?: (value: number) => void;
32
+ min?: number;
33
+ max?: number;
34
+ step?: number;
35
+ disabled?: boolean;
36
+ className?: string;
37
+ }
38
+ declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
39
+ export { NumberInput };
40
+ //# sourceMappingURL=number-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,WAAW,2FA6EhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,80 @@
1
+ import { jsxs as b, jsx as n } from "react/jsx-runtime";
2
+ import * as f from "react";
3
+ import { IconMinus as x, IconPlus as h } from "@tabler/icons-react";
4
+ import { cn as N } from "./lib/utils.js";
5
+ const w = f.forwardRef(
6
+ ({
7
+ value: t = 0,
8
+ onChange: a = (i) => {
9
+ },
10
+ min: s = Number.MIN_SAFE_INTEGER,
11
+ max: o = Number.MAX_SAFE_INTEGER,
12
+ step: c = 1,
13
+ disabled: l = !1,
14
+ className: d
15
+ }, u) => {
16
+ const i = (r) => {
17
+ const e = parseInt(r.target.value) || 0;
18
+ e >= s && e <= o && a(e);
19
+ }, m = (r) => {
20
+ r.preventDefault();
21
+ const e = t + c;
22
+ e <= o && a(e);
23
+ }, p = (r) => {
24
+ r.preventDefault();
25
+ const e = t - c;
26
+ e >= s && a(e);
27
+ };
28
+ return /* @__PURE__ */ b(
29
+ "div",
30
+ {
31
+ className: N(
32
+ "flex items-center justify-between rounded-ds-full border border-border",
33
+ d
34
+ ),
35
+ children: [
36
+ /* @__PURE__ */ n(
37
+ "button",
38
+ {
39
+ type: "button",
40
+ onClick: p,
41
+ disabled: l || t <= s,
42
+ "aria-label": "Decrease value",
43
+ className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
44
+ children: /* @__PURE__ */ n(x, { className: "h-ico-sm w-ico-sm" })
45
+ }
46
+ ),
47
+ /* @__PURE__ */ n(
48
+ "input",
49
+ {
50
+ ref: u,
51
+ type: "number",
52
+ value: t,
53
+ onChange: i,
54
+ min: s,
55
+ max: o,
56
+ step: c,
57
+ disabled: l,
58
+ className: "text-ds-base font-semibold w-ds-sm-plus border-0 text-center text-text-secondary [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
59
+ }
60
+ ),
61
+ /* @__PURE__ */ n(
62
+ "button",
63
+ {
64
+ type: "button",
65
+ onClick: m,
66
+ disabled: l || t >= o,
67
+ "aria-label": "Increase value",
68
+ className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-text-placeholder transition-colors hover:text-text-secondary",
69
+ children: /* @__PURE__ */ n(h, { className: "h-ico-sm w-ico-sm" })
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ );
75
+ }
76
+ );
77
+ w.displayName = "NumberInput";
78
+ export {
79
+ w as NumberInput
80
+ };
@@ -0,0 +1,74 @@
1
+ import * as React from 'react';
2
+ declare const PaginationRoot: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
3
+ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
4
+ declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
5
+ /**
6
+ * Props for PaginationLink — a single page number button in a pagination row.
7
+ * When `isActive` is true, the button gets the brand interactive fill and `aria-current="page"`.
8
+ *
9
+ * @example
10
+ * // Active page button:
11
+ * <PaginationLink isActive onClick={() => goToPage(3)}>3</PaginationLink>
12
+ *
13
+ * @example
14
+ * // Render as a Next.js Link via asChild:
15
+ * <PaginationLink asChild isActive={currentPage === 5}>
16
+ * <Link href="/posts?page=5">5</Link>
17
+ * </PaginationLink>
18
+ */
19
+ export interface PaginationLinkProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
20
+ isActive?: boolean;
21
+ asChild?: boolean;
22
+ }
23
+ declare const PaginationLink: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
24
+ declare const PaginationPrevious: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
25
+ declare const PaginationNext: React.ForwardRefExoticComponent<PaginationLinkProps & React.RefAttributes<HTMLButtonElement>>;
26
+ declare const PaginationEllipsis: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
27
+ type PageItem = number | 'ellipsis';
28
+ /**
29
+ * Pure function that builds an array of page numbers and ellipsis markers.
30
+ * Always shows first and last page, plus `siblingCount` pages around `current`.
31
+ *
32
+ * @example generatePagination(5, 10, 1) → [1, 'ellipsis', 4, 5, 6, 'ellipsis', 10]
33
+ */
34
+ declare function generatePagination(current: number, total: number, siblingCount: number): PageItem[];
35
+ /**
36
+ * Props for PaginationNav — a fully self-contained controlled pagination component that renders
37
+ * Previous / page numbers (with ellipsis) / Next — using `generatePagination` internally.
38
+ *
39
+ * **1-indexed:** `currentPage` starts at 1 (not 0). `onPageChange` also receives 1-indexed values.
40
+ *
41
+ * **`siblingCount`:** Number of page buttons shown on each side of the current page (default 1).
42
+ * A wider `siblingCount` shows more page buttons before switching to ellipsis.
43
+ *
44
+ * @example
45
+ * // Basic controlled pagination:
46
+ * <PaginationNav
47
+ * totalPages={24}
48
+ * currentPage={currentPage}
49
+ * onPageChange={setCurrentPage}
50
+ * />
51
+ *
52
+ * @example
53
+ * // Wider sibling range for a results grid (shows more page context):
54
+ * <PaginationNav
55
+ * totalPages={100}
56
+ * currentPage={currentPage}
57
+ * onPageChange={setCurrentPage}
58
+ * siblingCount={2}
59
+ * />
60
+ * // These are just a few ways — feel free to combine props creatively!
61
+ */
62
+ export interface PaginationNavProps extends React.HTMLAttributes<HTMLElement> {
63
+ /** Total number of pages */
64
+ totalPages: number;
65
+ /** Current active page (1-indexed) */
66
+ currentPage: number;
67
+ /** Called when the user requests a different page */
68
+ onPageChange: (page: number) => void;
69
+ /** Number of sibling page buttons shown on each side of the current page (default: 1) */
70
+ siblingCount?: number;
71
+ }
72
+ declare const PaginationNav: React.ForwardRefExoticComponent<PaginationNavProps & React.RefAttributes<HTMLElement>>;
73
+ export { PaginationRoot, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, PaginationNav, generatePagination, };
74
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/ui/pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,QAAA,MAAM,cAAc,0JAWlB,CAAA;AAGF,QAAA,MAAM,iBAAiB,yKASrB,CAAA;AAGF,QAAA,MAAM,cAAc,kKAKlB,CAAA;AAGF;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,QAAA,MAAM,cAAc,+FAkBnB,CAAA;AAGD,QAAA,MAAM,kBAAkB,+FAatB,CAAA;AAGF,QAAA,MAAM,cAAc,+FAalB,CAAA;AAGF,QAAA,MAAM,kBAAkB,sKAgBtB,CAAA;AAOF,KAAK,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAA;AAEnC;;;;;GAKG;AACH,iBAAS,kBAAkB,CACzB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,GACnB,QAAQ,EAAE,CAoCZ;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzC,4BAA4B;IAC5B,UAAU,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,qDAAqD;IACrD,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,QAAA,MAAM,aAAa,wFAqDlB,CAAA;AAGD,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,kBAAkB,GACnB,CAAA"}
@@ -0,0 +1,159 @@
1
+ import { jsx as a, jsxs as g } from "react/jsx-runtime";
2
+ import * as o from "react";
3
+ import { Root as b } from "../primitives/react-slot.js";
4
+ import { IconDots as j, IconChevronRight as k, IconChevronLeft as C } from "@tabler/icons-react";
5
+ import { cn as r } from "./lib/utils.js";
6
+ const x = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
7
+ "nav",
8
+ {
9
+ ref: s,
10
+ role: "navigation",
11
+ "aria-label": "pagination",
12
+ className: r("mx-auto flex w-full justify-center", e),
13
+ ...i
14
+ }
15
+ ));
16
+ x.displayName = "PaginationRoot";
17
+ const w = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a(
18
+ "ul",
19
+ {
20
+ ref: s,
21
+ className: r("flex flex-row items-center gap-ds-02", e),
22
+ ...i
23
+ }
24
+ ));
25
+ w.displayName = "PaginationContent";
26
+ const f = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ a("li", { ref: s, className: r("", e), ...i }));
27
+ f.displayName = "PaginationItem";
28
+ const u = o.forwardRef(
29
+ ({ className: e, isActive: i = !1, asChild: s = !1, ...c }, t) => /* @__PURE__ */ a(
30
+ s ? b : "button",
31
+ {
32
+ ref: t,
33
+ "aria-current": i ? "page" : void 0,
34
+ className: r(
35
+ "inline-flex items-center justify-center h-ds-sm-plus w-ds-sm-plus rounded-ds-md text-ds-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-[0.38]",
36
+ i ? "bg-interactive text-text-on-color" : "hover:bg-field text-text-primary",
37
+ e
38
+ ),
39
+ ...c
40
+ }
41
+ )
42
+ );
43
+ u.displayName = "PaginationLink";
44
+ const y = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
45
+ u,
46
+ {
47
+ ref: s,
48
+ "aria-label": "Go to previous page",
49
+ className: r("w-auto gap-ds-02 pl-ds-03 pr-ds-04", e),
50
+ ...i,
51
+ children: [
52
+ /* @__PURE__ */ a(C, { className: "h-ico-sm w-ico-sm" }),
53
+ /* @__PURE__ */ a("span", { children: "Previous" })
54
+ ]
55
+ }
56
+ ));
57
+ y.displayName = "PaginationPrevious";
58
+ const v = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
59
+ u,
60
+ {
61
+ ref: s,
62
+ "aria-label": "Go to next page",
63
+ className: r("w-auto gap-ds-02 pl-ds-04 pr-ds-03", e),
64
+ ...i,
65
+ children: [
66
+ /* @__PURE__ */ a("span", { children: "Next" }),
67
+ /* @__PURE__ */ a(k, { className: "h-ico-sm w-ico-sm" })
68
+ ]
69
+ }
70
+ ));
71
+ v.displayName = "PaginationNext";
72
+ const P = o.forwardRef(({ className: e, ...i }, s) => /* @__PURE__ */ g(
73
+ "span",
74
+ {
75
+ ref: s,
76
+ "aria-hidden": "true",
77
+ className: r(
78
+ "flex h-ds-sm-plus w-ds-sm-plus items-center justify-center text-text-secondary",
79
+ e
80
+ ),
81
+ ...i,
82
+ children: [
83
+ /* @__PURE__ */ a(j, { className: "h-ico-sm w-ico-sm" }),
84
+ /* @__PURE__ */ a("span", { className: "sr-only", children: "More pages" })
85
+ ]
86
+ }
87
+ ));
88
+ P.displayName = "PaginationEllipsis";
89
+ function I(e, i, s) {
90
+ const c = s * 2 + 5;
91
+ if (i <= c)
92
+ return Array.from({ length: i }, (n, m) => m + 1);
93
+ const t = Math.max(e - s, 1), d = Math.min(e + s, i), p = t > 2, h = d < i - 1;
94
+ if (!p && h) {
95
+ const n = s * 2 + 3;
96
+ return [...Array.from({ length: n }, (R, N) => N + 1), "ellipsis", i];
97
+ }
98
+ if (p && !h) {
99
+ const n = s * 2 + 3;
100
+ return [1, "ellipsis", ...Array.from(
101
+ { length: n },
102
+ (R, N) => i - n + 1 + N
103
+ )];
104
+ }
105
+ return [1, "ellipsis", ...Array.from(
106
+ { length: d - t + 1 },
107
+ (n, m) => t + m
108
+ ), "ellipsis", i];
109
+ }
110
+ const M = o.forwardRef(
111
+ ({
112
+ totalPages: e,
113
+ currentPage: i,
114
+ onPageChange: s,
115
+ siblingCount: c = 1,
116
+ className: t,
117
+ ...d
118
+ }, p) => {
119
+ const h = I(i, e, c);
120
+ return /* @__PURE__ */ a(x, { ref: p, className: t, ...d, children: /* @__PURE__ */ g(w, { children: [
121
+ /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
122
+ y,
123
+ {
124
+ onClick: () => s(Math.max(1, i - 1)),
125
+ disabled: i <= 1
126
+ }
127
+ ) }),
128
+ h.map(
129
+ (l, n) => l === "ellipsis" ? /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(P, {}) }, `e${n}`) : /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
130
+ u,
131
+ {
132
+ isActive: l === i,
133
+ onClick: () => s(l),
134
+ children: l
135
+ }
136
+ ) }, l)
137
+ ),
138
+ /* @__PURE__ */ a(f, { children: /* @__PURE__ */ a(
139
+ v,
140
+ {
141
+ onClick: () => s(Math.min(e, i + 1)),
142
+ disabled: i >= e
143
+ }
144
+ ) })
145
+ ] }) });
146
+ }
147
+ );
148
+ M.displayName = "PaginationNav";
149
+ export {
150
+ w as PaginationContent,
151
+ P as PaginationEllipsis,
152
+ f as PaginationItem,
153
+ u as PaginationLink,
154
+ M as PaginationNav,
155
+ v as PaginationNext,
156
+ y as PaginationPrevious,
157
+ x as PaginationRoot,
158
+ I as generatePagination
159
+ };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@primitives/react-popover';
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
8
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAI7D,QAAA,MAAM,OAAO,yCAAwB,CAAA;AAErC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAgBlB,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { Root as i, Anchor as m, Trigger as p, Portal as l, Content as t } from "../primitives/react-popover.js";
4
+ import { cn as c } from "./lib/utils.js";
5
+ const u = i, P = p, v = m, f = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, n) => /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(
6
+ t,
7
+ {
8
+ ref: n,
9
+ align: a,
10
+ sideOffset: r,
11
+ className: c(
12
+ "z-dropdown w-72 rounded-ds-lg border border-border bg-layer-01 p-ds-05 text-text-primary shadow-03 outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
+ e
14
+ ),
15
+ ...d
16
+ }
17
+ ) }));
18
+ f.displayName = t.displayName;
19
+ export {
20
+ u as Popover,
21
+ v as PopoverAnchor,
22
+ f as PopoverContent,
23
+ P as PopoverTrigger
24
+ };
@@ -0,0 +1,49 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as ProgressPrimitive from '@primitives/react-progress';
4
+ declare const progressTrackVariants: (props?: ({
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const progressIndicatorVariants: (props?: ({
8
+ color?: "error" | "default" | "warning" | "success" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
+ /**
11
+ * Props for Progress — a horizontal progress bar with size and color variants, an optional
12
+ * percentage label, and an indeterminate animation when `value` is undefined/null.
13
+ *
14
+ * **Track size:** `sm` (4px) | `md` (8px, default) | `lg` (12px)
15
+ *
16
+ * **Indicator color:** `default` (brand interactive) | `success` | `warning` | `error`
17
+ *
18
+ * **Indeterminate:** Omit `value` (or pass `undefined`) to show an animated indeterminate bar.
19
+ * When `value` is provided, it should be a number between 0–100.
20
+ *
21
+ * **`showLabel`:** Renders the percentage value next to the bar (only when `value` is set).
22
+ *
23
+ * @example
24
+ * // Determinate upload progress:
25
+ * <Progress value={uploadPercent} color="default" showLabel />
26
+ *
27
+ * @example
28
+ * // Indeterminate loading bar (while waiting for an async operation):
29
+ * <Progress size="sm" />
30
+ *
31
+ * @example
32
+ * // Success-colored completion bar (e.g. after all tasks done):
33
+ * <Progress value={100} color="success" size="md" />
34
+ *
35
+ * @example
36
+ * // Warning threshold indicator (disk usage at 80%):
37
+ * <Progress value={80} color="warning" showLabel size="lg" />
38
+ * // These are just a few ways — feel free to combine props creatively!
39
+ */
40
+ interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, 'color'>, VariantProps<typeof progressTrackVariants>, VariantProps<typeof progressIndicatorVariants> {
41
+ /** Additional class names for the indicator element */
42
+ indicatorClassName?: string;
43
+ /** Display the percentage label next to the progress bar */
44
+ showLabel?: boolean;
45
+ }
46
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
47
+ export { Progress, progressTrackVariants, progressIndicatorVariants };
48
+ export type { ProgressProps };
49
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,iBAAiB,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAQjE,QAAA,MAAM,qBAAqB;;8EAY1B,CAAA;AAED,QAAA,MAAM,yBAAyB;;8EAa9B,CAAA;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,UAAU,aACR,SAAQ,IAAI,CACR,KAAK,CAAC,wBAAwB,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAC7D,OAAO,CACR,EACD,YAAY,CAAC,OAAO,qBAAqB,CAAC,EAC1C,YAAY,CAAC,OAAO,yBAAyB,CAAC;IAChD,uDAAuD;IACvD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAMD,QAAA,MAAM,QAAQ,sFAiDb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,75 @@
1
+ import { jsxs as t, jsx as n } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import { Root as i, Indicator as u } from "../primitives/react-progress.js";
4
+ import { cva as o } from "class-variance-authority";
5
+ import { cn as s } from "./lib/utils.js";
6
+ const x = o(
7
+ "relative w-full overflow-hidden rounded-ds-full bg-layer-02",
8
+ {
9
+ variants: {
10
+ size: {
11
+ sm: "h-1",
12
+ md: "h-2",
13
+ lg: "h-3"
14
+ }
15
+ },
16
+ defaultVariants: { size: "md" }
17
+ }
18
+ ), h = o(
19
+ "h-full w-full flex-1 transition-all",
20
+ {
21
+ variants: {
22
+ color: {
23
+ default: "bg-interactive",
24
+ success: "bg-success",
25
+ warning: "bg-warning",
26
+ error: "bg-error"
27
+ }
28
+ },
29
+ defaultVariants: { color: "default" }
30
+ }
31
+ ), w = p.forwardRef(
32
+ ({
33
+ className: l,
34
+ value: r,
35
+ size: d,
36
+ color: c,
37
+ indicatorClassName: m,
38
+ showLabel: a,
39
+ ...f
40
+ }, g) => {
41
+ const e = r == null;
42
+ return /* @__PURE__ */ t("div", { className: s("flex items-center gap-ds-03", a && "w-full"), children: [
43
+ /* @__PURE__ */ n(
44
+ i,
45
+ {
46
+ ref: g,
47
+ value: e ? null : r,
48
+ className: s(x({ size: d }), l),
49
+ ...f,
50
+ children: /* @__PURE__ */ n(
51
+ u,
52
+ {
53
+ className: s(
54
+ h({ color: c }),
55
+ e && "w-2/5 animate-progress-indeterminate motion-reduce:animate-none",
56
+ m
57
+ ),
58
+ style: e ? void 0 : { transform: `translateX(-${100 - (r || 0)}%)` }
59
+ }
60
+ )
61
+ }
62
+ ),
63
+ a && !e && /* @__PURE__ */ t("span", { className: "shrink-0 text-ds-xs text-text-secondary", children: [
64
+ r,
65
+ "%"
66
+ ] })
67
+ ] });
68
+ }
69
+ );
70
+ w.displayName = i.displayName;
71
+ export {
72
+ w as Progress,
73
+ h as progressIndicatorVariants,
74
+ x as progressTrackVariants
75
+ };
@@ -0,0 +1,6 @@
1
+ import * as RadioGroupPrimitive from '@primitives/react-radio-group';
2
+ import * as React from 'react';
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
6
+ //# sourceMappingURL=radio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,UAAU,+JAKd,CAAA;AAGF,QAAA,MAAM,cAAc,yKAuBlB,CAAA;AAGF,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Root as s, Item as t, Indicator as c } from "../primitives/react-radio-group.js";
3
+ import { IconCircle as l } from "@tabler/icons-react";
4
+ import * as a from "react";
5
+ import { cn as d } from "./lib/utils.js";
6
+ const n = a.forwardRef(({ className: r, ...o }, i) => /* @__PURE__ */ e(s, { className: d("grid gap-ds-03", r), ...o, ref: i }));
7
+ n.displayName = s.displayName;
8
+ const m = a.forwardRef(({ className: r, ...o }, i) => /* @__PURE__ */ e(
9
+ t,
10
+ {
11
+ ref: i,
12
+ className: d(
13
+ "aspect-square h-ico-md w-ico-md rounded-ds-full",
14
+ "border border-border-strong bg-field",
15
+ "transition-colors duration-fast-01",
16
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2",
17
+ "disabled:cursor-not-allowed disabled:opacity-[0.38]",
18
+ "data-[state=checked]:border-interactive",
19
+ r
20
+ ),
21
+ ...o,
22
+ children: /* @__PURE__ */ e(c, { className: "flex items-center justify-center", children: /* @__PURE__ */ e(l, { className: "h-ds-03 w-ds-03 fill-interactive text-interactive" }) })
23
+ }
24
+ ));
25
+ m.displayName = t.displayName;
26
+ export {
27
+ n as RadioGroup,
28
+ m as RadioGroupItem
29
+ };