@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,562 @@
1
+ import { jsx as r, jsxs as S } from "react/jsx-runtime";
2
+ import { Root as h } from "../primitives/react-slot.js";
3
+ import { cva as E } from "class-variance-authority";
4
+ import { IconLayoutSidebarLeftCollapse as T } from "@tabler/icons-react";
5
+ import { useIsMobile as A } from "../hooks/use-mobile.js";
6
+ import { cn as i } from "./lib/utils.js";
7
+ import { Button as D } from "./button.js";
8
+ import { Input as O } from "./input.js";
9
+ import { Separator as R } from "./separator.js";
10
+ import { Sheet as G, SheetContent as L } from "./sheet.js";
11
+ import { Skeleton as M } from "./skeleton.js";
12
+ import { Tooltip as H, TooltipTrigger as K, TooltipContent as j, TooltipProvider as $ } from "./tooltip.js";
13
+ import { forwardRef as s, useMemo as I, useState as _, useCallback as C, useEffect as P, useContext as V, createContext as W } from "react";
14
+ const q = "sidebar:state", F = 60 * 60 * 24 * 7, U = "16rem", X = "18rem", Y = "3rem", J = "b", k = W(null);
15
+ function w() {
16
+ const a = V(k);
17
+ if (!a)
18
+ throw new Error("useSidebar must be used within a SidebarProvider.");
19
+ return a;
20
+ }
21
+ const Q = s(
22
+ ({
23
+ defaultOpen: a = !0,
24
+ open: e,
25
+ onOpenChange: t,
26
+ className: d,
27
+ style: o,
28
+ children: n,
29
+ ...b
30
+ }, f) => {
31
+ const u = A(), [m, c] = _(!1), [x, z] = _(a), g = e ?? x, v = C(
32
+ (l) => {
33
+ const p = typeof l == "function" ? l(g) : l;
34
+ t ? t(p) : z(p), document.cookie = `${q}=${p}; path=/; max-age=${F}`;
35
+ },
36
+ [t, g]
37
+ ), y = C(() => u ? c((l) => !l) : v((l) => !l), [u, v, c]);
38
+ P(() => {
39
+ const l = (p) => {
40
+ p.key === J && (p.metaKey || p.ctrlKey) && (p.preventDefault(), y());
41
+ };
42
+ return window.addEventListener("keydown", l), () => window.removeEventListener("keydown", l);
43
+ }, [y]);
44
+ const N = g ? "expanded" : "collapsed", B = I(
45
+ () => ({
46
+ state: N,
47
+ open: g,
48
+ setOpen: v,
49
+ isMobile: u,
50
+ openMobile: m,
51
+ setOpenMobile: c,
52
+ toggleSidebar: y
53
+ }),
54
+ [
55
+ N,
56
+ g,
57
+ v,
58
+ u,
59
+ m,
60
+ c,
61
+ y
62
+ ]
63
+ );
64
+ return /* @__PURE__ */ r(k.Provider, { value: B, children: /* @__PURE__ */ r($, { delayDuration: 0, children: /* @__PURE__ */ r(
65
+ "div",
66
+ {
67
+ style: {
68
+ "--sidebar-width": U,
69
+ "--sidebar-width-icon": Y,
70
+ ...o
71
+ },
72
+ className: i(
73
+ "group/sidebar-wrapper flex min-h-svh has-[[data-variant=inset]]:bg-background",
74
+ d
75
+ ),
76
+ ref: f,
77
+ ...b,
78
+ children: n
79
+ }
80
+ ) }) });
81
+ }
82
+ );
83
+ Q.displayName = "SidebarProvider";
84
+ const Z = s(
85
+ ({
86
+ side: a = "left",
87
+ variant: e = "sidebar",
88
+ collapsible: t = "offcanvas",
89
+ className: d,
90
+ children: o,
91
+ ...n
92
+ }, b) => {
93
+ const { isMobile: f, state: u, openMobile: m, setOpenMobile: c } = w();
94
+ return t === "none" ? /* @__PURE__ */ r(
95
+ "div",
96
+ {
97
+ className: i(
98
+ "flex h-full w-[--sidebar-width] flex-col bg-layer-01 text-text-primary",
99
+ d
100
+ ),
101
+ ref: b,
102
+ ...n,
103
+ children: o
104
+ }
105
+ ) : f ? /* @__PURE__ */ r(G, { open: m, onOpenChange: c, ...n, children: /* @__PURE__ */ r(
106
+ L,
107
+ {
108
+ "data-sidebar": "sidebar",
109
+ "data-mobile": "true",
110
+ className: "w-[--sidebar-width] bg-layer-01 p-0 text-text-primary [&>button]:hidden",
111
+ style: {
112
+ "--sidebar-width": X
113
+ },
114
+ side: a,
115
+ children: /* @__PURE__ */ r("div", { className: "flex h-full w-full flex-col", children: o })
116
+ }
117
+ ) }) : /* @__PURE__ */ S(
118
+ "div",
119
+ {
120
+ ref: b,
121
+ className: "group peer hidden text-text-primary md:block",
122
+ "data-state": u,
123
+ "data-collapsible": u === "collapsed" ? t : "",
124
+ "data-variant": e,
125
+ "data-side": a,
126
+ children: [
127
+ /* @__PURE__ */ r(
128
+ "div",
129
+ {
130
+ className: i(
131
+ "relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-moderate-02 ease-linear",
132
+ "group-data-[collapsible=offcanvas]:w-0",
133
+ "group-data-[side=right]:rotate-180",
134
+ e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]"
135
+ )
136
+ }
137
+ ),
138
+ /* @__PURE__ */ r(
139
+ "div",
140
+ {
141
+ className: i(
142
+ "fixed inset-y-0 z-raised hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-moderate-02 ease-linear md:flex",
143
+ a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
144
+ e === "floating" || e === "inset" ? "p-ds-03 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",
145
+ d
146
+ ),
147
+ ...n,
148
+ children: /* @__PURE__ */ r(
149
+ "div",
150
+ {
151
+ "data-sidebar": "sidebar",
152
+ className: "flex h-full w-full flex-col bg-layer-01 group-data-[variant=floating]:rounded-ds-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border-subtle group-data-[variant=floating]:shadow",
153
+ children: o
154
+ }
155
+ )
156
+ }
157
+ )
158
+ ]
159
+ }
160
+ );
161
+ }
162
+ );
163
+ Z.displayName = "Sidebar";
164
+ const ee = s(({ className: a, onClick: e, ...t }, d) => {
165
+ const { toggleSidebar: o } = w();
166
+ return /* @__PURE__ */ S(
167
+ D,
168
+ {
169
+ ref: d,
170
+ "data-sidebar": "trigger",
171
+ variant: "ghost",
172
+ size: "icon-md",
173
+ className: i("h-ds-xs-plus w-ds-xs-plus", a),
174
+ onClick: (n) => {
175
+ e == null || e(n), o();
176
+ },
177
+ ...t,
178
+ children: [
179
+ /* @__PURE__ */ r(T, {}),
180
+ /* @__PURE__ */ r("span", { className: "sr-only", children: "Toggle Sidebar" })
181
+ ]
182
+ }
183
+ );
184
+ });
185
+ ee.displayName = "SidebarTrigger";
186
+ const ae = s(
187
+ ({ className: a, ...e }, t) => {
188
+ const { toggleSidebar: d } = w();
189
+ return /* @__PURE__ */ r(
190
+ "button",
191
+ {
192
+ ref: t,
193
+ "data-sidebar": "rail",
194
+ "aria-label": "Toggle Sidebar",
195
+ tabIndex: -1,
196
+ onClick: d,
197
+ title: "Toggle Sidebar",
198
+ className: i(
199
+ "hover:after:bg-border-strong absolute inset-y-0 z-raised hidden w-4 -translate-x-1/2 transition-colors ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
200
+ "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize",
201
+ "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
202
+ "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-layer-02",
203
+ "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
204
+ "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
205
+ a
206
+ ),
207
+ ...e
208
+ }
209
+ );
210
+ }
211
+ );
212
+ ae.displayName = "SidebarRail";
213
+ const te = s(
214
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
215
+ "main",
216
+ {
217
+ ref: t,
218
+ className: i(
219
+ "relative flex min-h-svh flex-1 flex-col bg-background",
220
+ "peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-ds-03 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-ds-03 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-ds-xl md:peer-data-[variant=inset]:shadow",
221
+ a
222
+ ),
223
+ ...e
224
+ }
225
+ )
226
+ );
227
+ te.displayName = "SidebarInset";
228
+ const re = s(({ className: a, ...e }, t) => /* @__PURE__ */ r(
229
+ O,
230
+ {
231
+ ref: t,
232
+ "data-sidebar": "input",
233
+ className: i(
234
+ "h-ds-sm w-full bg-layer-01 shadow-none focus-visible:ring-2 focus-visible:ring-focus",
235
+ a
236
+ ),
237
+ ...e
238
+ }
239
+ ));
240
+ re.displayName = "SidebarInput";
241
+ const ie = s(
242
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
243
+ "div",
244
+ {
245
+ ref: t,
246
+ "data-sidebar": "header",
247
+ className: i("flex flex-col gap-ds-03 p-ds-03", a),
248
+ ...e
249
+ }
250
+ )
251
+ );
252
+ ie.displayName = "SidebarHeader";
253
+ const se = s(
254
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
255
+ "div",
256
+ {
257
+ ref: t,
258
+ "data-sidebar": "footer",
259
+ className: i("flex flex-col gap-ds-03 p-ds-03", a),
260
+ ...e
261
+ }
262
+ )
263
+ );
264
+ se.displayName = "SidebarFooter";
265
+ const de = s(({ className: a, ...e }, t) => /* @__PURE__ */ r(
266
+ R,
267
+ {
268
+ ref: t,
269
+ "data-sidebar": "separator",
270
+ className: i(
271
+ "bg-border-subtle mx-ds-03 w-auto",
272
+ a
273
+ ),
274
+ ...e
275
+ }
276
+ ));
277
+ de.displayName = "SidebarSeparator";
278
+ const oe = s(
279
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
280
+ "div",
281
+ {
282
+ ref: t,
283
+ "data-sidebar": "content",
284
+ className: i(
285
+ "flex min-h-0 flex-1 flex-col gap-ds-03 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
286
+ a
287
+ ),
288
+ ...e
289
+ }
290
+ )
291
+ );
292
+ oe.displayName = "SidebarContent";
293
+ const ne = s(
294
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
295
+ "div",
296
+ {
297
+ ref: t,
298
+ "data-sidebar": "group",
299
+ className: i("relative flex w-full min-w-0 flex-col p-ds-03", a),
300
+ ...e
301
+ }
302
+ )
303
+ );
304
+ ne.displayName = "SidebarGroup";
305
+ const le = s(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
306
+ e ? h : "div",
307
+ {
308
+ ref: d,
309
+ "data-sidebar": "group-label",
310
+ className: i(
311
+ "flex h-ds-sm shrink-0 items-center rounded-ds-md px-ds-03 text-ds-sm font-medium text-text-secondary outline-none ring-focus transition-[margin,opa] duration-moderate-02 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
312
+ "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
313
+ a
314
+ ),
315
+ ...t
316
+ }
317
+ ));
318
+ le.displayName = "SidebarGroupLabel";
319
+ const ue = s(({ className: a, asChild: e = !1, ...t }, d) => /* @__PURE__ */ r(
320
+ e ? h : "button",
321
+ {
322
+ ref: d,
323
+ "data-sidebar": "group-action",
324
+ className: i(
325
+ "hover:bg-layer-02 absolute right-ds-04 top-ds-04 flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-text-primary outline-none ring-focus transition-transform hover:text-text-primary focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
326
+ "after:absolute after:-inset-2 after:md:hidden",
327
+ "group-data-[collapsible=icon]:hidden",
328
+ a
329
+ ),
330
+ ...t
331
+ }
332
+ ));
333
+ ue.displayName = "SidebarGroupAction";
334
+ const ce = s(
335
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
336
+ "div",
337
+ {
338
+ ref: t,
339
+ "data-sidebar": "group-content",
340
+ className: i("w-full text-ds-md", a),
341
+ ...e
342
+ }
343
+ )
344
+ );
345
+ ce.displayName = "SidebarGroupContent";
346
+ const pe = s(
347
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
348
+ "ul",
349
+ {
350
+ ref: t,
351
+ "data-sidebar": "menu",
352
+ className: i("flex w-full min-w-0 flex-col gap-ds-02", a),
353
+ ...e
354
+ }
355
+ )
356
+ );
357
+ pe.displayName = "SidebarMenu";
358
+ const be = s(
359
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
360
+ "li",
361
+ {
362
+ ref: t,
363
+ "data-sidebar": "menu-item",
364
+ className: i("group/menu-item relative", a),
365
+ ...e
366
+ }
367
+ )
368
+ );
369
+ be.displayName = "SidebarMenuItem";
370
+ const me = E(
371
+ "peer/menu-button hover:bg-layer-02 active:bg-interactive-subtle data-[active=true]:bg-interactive-subtle data-[state=open]:hover:bg-layer-02 flex w-full items-center gap-ds-03 overflow-hidden rounded-ds-md p-ds-03 text-left outline-none ring-focus transition-[width,height,padding] hover:text-text-primary focus-visible:ring-2 active:text-text-primary disabled:pointer-events-none disabled:opacity-[0.38] group-has-[[data-sidebar=menu-action]]/menu-item:pr-ds-07 aria-disabled:pointer-events-none aria-disabled:opacity-[0.38] data-[active=true]:font-medium data-[active=true]:text-text-primary data-[state=open]:hover:text-text-primary group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-ds-03 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
372
+ {
373
+ variants: {
374
+ variant: {
375
+ default: "hover:bg-layer-02 hover:text-text-primary",
376
+ outline: "hover:bg-layer-02 bg-background shadow-[0_0_0_1px_var(--color-border-subtle)] hover:text-text-primary hover:shadow-[0_0_0_1px_var(--color-border-strong)]"
377
+ },
378
+ size: {
379
+ md: "h-ds-sm text-ds-md",
380
+ sm: "h-ds-xs-plus text-ds-sm",
381
+ lg: "h-ds-lg text-ds-md group-data-[collapsible=icon]:!p-0"
382
+ }
383
+ },
384
+ defaultVariants: {
385
+ variant: "default",
386
+ size: "md"
387
+ }
388
+ }
389
+ ), fe = s(
390
+ ({
391
+ asChild: a = !1,
392
+ isActive: e = !1,
393
+ variant: t = "default",
394
+ size: d = "md",
395
+ tooltip: o,
396
+ className: n,
397
+ ...b
398
+ }, f) => {
399
+ const u = a ? h : "button", { isMobile: m, state: c } = w(), x = /* @__PURE__ */ r(
400
+ u,
401
+ {
402
+ ref: f,
403
+ "data-sidebar": "menu-button",
404
+ "data-size": d,
405
+ "data-active": e,
406
+ className: i(me({ variant: t, size: d }), n),
407
+ ...b
408
+ }
409
+ );
410
+ return o ? (typeof o == "string" && (o = {
411
+ children: o
412
+ }), /* @__PURE__ */ S(H, { children: [
413
+ /* @__PURE__ */ r(K, { asChild: !0, children: x }),
414
+ /* @__PURE__ */ r(
415
+ j,
416
+ {
417
+ side: "right",
418
+ align: "center",
419
+ hidden: c !== "collapsed" || m,
420
+ ...o
421
+ }
422
+ )
423
+ ] })) : x;
424
+ }
425
+ );
426
+ fe.displayName = "SidebarMenuButton";
427
+ const ge = s(({ className: a, asChild: e = !1, showOnHover: t = !1, ...d }, o) => /* @__PURE__ */ r(
428
+ e ? h : "button",
429
+ {
430
+ ref: o,
431
+ "data-sidebar": "menu-action",
432
+ className: i(
433
+ "hover:bg-layer-02 absolute right-ds-02 top-ds-02b flex aspect-square w-5 items-center justify-center rounded-ds-md p-0 text-text-primary outline-none ring-focus transition-transform hover:text-text-primary focus-visible:ring-2 peer-hover/menu-button:text-text-primary [&>svg]:size-4 [&>svg]:shrink-0",
434
+ "after:absolute after:-inset-2 after:md:hidden",
435
+ "peer-data-[size=sm]/menu-button:top-1",
436
+ "peer-data-[size=md]/menu-button:top-ds-02b",
437
+ "peer-data-[size=lg]/menu-button:top-ds-03",
438
+ "group-data-[collapsible=icon]:hidden",
439
+ t && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-text-primary md:opacity-0",
440
+ a
441
+ ),
442
+ ...d
443
+ }
444
+ ));
445
+ ge.displayName = "SidebarMenuAction";
446
+ const he = s(
447
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
448
+ "div",
449
+ {
450
+ ref: t,
451
+ "data-sidebar": "menu-badge",
452
+ className: i(
453
+ "pointer-events-none absolute right-ds-02 flex h-5 min-w-5 select-none items-center justify-center rounded-ds-md px-ds-02 text-ds-sm font-medium tabular-nums text-text-primary",
454
+ "peer-hover/menu-button:text-text-primary peer-data-[active=true]/menu-button:text-text-primary",
455
+ "peer-data-[size=sm]/menu-button:top-1",
456
+ "peer-data-[size=md]/menu-button:top-ds-02b",
457
+ "peer-data-[size=lg]/menu-button:top-ds-03",
458
+ "group-data-[collapsible=icon]:hidden",
459
+ a
460
+ ),
461
+ ...e
462
+ }
463
+ )
464
+ );
465
+ he.displayName = "SidebarMenuBadge";
466
+ const xe = s(({ className: a, showIcon: e = !1, ...t }, d) => {
467
+ const o = I(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
468
+ return /* @__PURE__ */ S(
469
+ "div",
470
+ {
471
+ ref: d,
472
+ "data-sidebar": "menu-skeleton",
473
+ className: i("flex h-ds-sm items-center gap-ds-03 rounded-ds-md px-ds-03", a),
474
+ ...t,
475
+ children: [
476
+ e && /* @__PURE__ */ r(
477
+ M,
478
+ {
479
+ className: "size-4 rounded-ds-md",
480
+ "data-sidebar": "menu-skeleton-icon"
481
+ }
482
+ ),
483
+ /* @__PURE__ */ r(
484
+ M,
485
+ {
486
+ className: "h-4 max-w-[--skeleton-width] flex-1",
487
+ "data-sidebar": "menu-skeleton-text",
488
+ style: {
489
+ "--skeleton-width": o
490
+ }
491
+ }
492
+ )
493
+ ]
494
+ }
495
+ );
496
+ });
497
+ xe.displayName = "SidebarMenuSkeleton";
498
+ const ve = s(
499
+ ({ className: a, ...e }, t) => /* @__PURE__ */ r(
500
+ "ul",
501
+ {
502
+ ref: t,
503
+ "data-sidebar": "menu-sub",
504
+ className: i(
505
+ "mx-ds-04 flex min-w-0 translate-x-px flex-col gap-ds-02 border-l border-border-subtle px-ds-03 py-ds-01",
506
+ "group-data-[collapsible=icon]:hidden",
507
+ a
508
+ ),
509
+ ...e
510
+ }
511
+ )
512
+ );
513
+ ve.displayName = "SidebarMenuSub";
514
+ const ye = s(
515
+ ({ ...a }, e) => /* @__PURE__ */ r("li", { ref: e, ...a })
516
+ );
517
+ ye.displayName = "SidebarMenuSubItem";
518
+ const Se = s(({ asChild: a = !1, size: e = "md", isActive: t, className: d, ...o }, n) => /* @__PURE__ */ r(
519
+ a ? h : "a",
520
+ {
521
+ ref: n,
522
+ "data-sidebar": "menu-sub-button",
523
+ "data-size": e,
524
+ "data-active": t,
525
+ className: i(
526
+ "hover:bg-layer-02 active:bg-interactive-subtle flex h-ds-xs-plus min-w-0 -translate-x-px items-center gap-ds-03 overflow-hidden rounded-ds-md px-ds-03 text-text-primary outline-none ring-focus hover:text-text-primary focus-visible:ring-2 active:text-text-primary disabled:pointer-events-none disabled:opacity-[0.38] aria-disabled:pointer-events-none aria-disabled:opacity-[0.38] [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-text-primary",
527
+ "data-[active=true]:bg-interactive-subtle data-[active=true]:text-text-primary",
528
+ e === "sm" && "text-ds-sm",
529
+ e === "md" && "text-ds-md",
530
+ "group-data-[collapsible=icon]:hidden",
531
+ d
532
+ ),
533
+ ...o
534
+ }
535
+ ));
536
+ Se.displayName = "SidebarMenuSubButton";
537
+ export {
538
+ Z as Sidebar,
539
+ oe as SidebarContent,
540
+ se as SidebarFooter,
541
+ ne as SidebarGroup,
542
+ ue as SidebarGroupAction,
543
+ ce as SidebarGroupContent,
544
+ le as SidebarGroupLabel,
545
+ ie as SidebarHeader,
546
+ re as SidebarInput,
547
+ te as SidebarInset,
548
+ pe as SidebarMenu,
549
+ ge as SidebarMenuAction,
550
+ he as SidebarMenuBadge,
551
+ fe as SidebarMenuButton,
552
+ be as SidebarMenuItem,
553
+ xe as SidebarMenuSkeleton,
554
+ ve as SidebarMenuSub,
555
+ Se as SidebarMenuSubButton,
556
+ ye as SidebarMenuSubItem,
557
+ Q as SidebarProvider,
558
+ ae as SidebarRail,
559
+ de as SidebarSeparator,
560
+ ee as SidebarTrigger,
561
+ w as useSidebar
562
+ };
@@ -0,0 +1,40 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const skeletonVariants: (props?: ({
4
+ variant?: "text" | "circle" | "rectangle" | null | undefined;
5
+ animation?: "none" | "pulse" | "shimmer" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ /**
8
+ * Props for Skeleton — a loading placeholder with shape variants and two animation styles.
9
+ *
10
+ * **Shape variants:** `rectangle` (default, rounded corners) | `circle` (aspect-square pill) |
11
+ * `text` (full-width slim bar, for text line placeholders)
12
+ *
13
+ * **Animation:** `pulse` (default, opacity fade) | `shimmer` (left-to-right gradient sweep,
14
+ * respects `prefers-reduced-motion`) | `none` (static, for testing or paused states)
15
+ *
16
+ * @example
17
+ * // Text line placeholder (repeatable for a paragraph skeleton):
18
+ * <Skeleton variant="text" />
19
+ * <Skeleton variant="text" className="w-3/4" />
20
+ *
21
+ * @example
22
+ * // Avatar + name card loading state:
23
+ * <div className="flex items-center gap-ds-04">
24
+ * <Skeleton variant="circle" className="h-ds-md w-ds-md" />
25
+ * <div className="flex flex-col gap-ds-02 flex-1">
26
+ * <Skeleton variant="text" className="w-1/2" />
27
+ * <Skeleton variant="text" className="w-1/3" />
28
+ * </div>
29
+ * </div>
30
+ *
31
+ * @example
32
+ * // Card placeholder with shimmer animation:
33
+ * <Skeleton variant="rectangle" animation="shimmer" className="h-48 w-full" />
34
+ * // These are just a few ways — feel free to combine props creatively!
35
+ */
36
+ export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof skeletonVariants> {
37
+ }
38
+ declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
39
+ export { Skeleton, skeletonVariants };
40
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/ui/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,QAAA,MAAM,gBAAgB;;;8EAkBpB,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE5C,QAAA,MAAM,QAAQ,sFAUb,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import * as s from "react";
3
+ import { cva as i } from "class-variance-authority";
4
+ import { cn as m } from "./lib/utils.js";
5
+ const l = i("bg-skeleton-base", {
6
+ variants: {
7
+ variant: {
8
+ rectangle: "rounded-ds-md",
9
+ circle: "rounded-ds-full aspect-square",
10
+ text: "rounded-ds-sm h-4 w-full"
11
+ },
12
+ animation: {
13
+ pulse: "animate-pulse",
14
+ shimmer: "bg-[length:200%_100%] bg-gradient-to-r from-skeleton-base via-skeleton-shimmer to-skeleton-base animate-skeleton-shimmer motion-reduce:animate-none",
15
+ none: ""
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ variant: "rectangle",
20
+ animation: "pulse"
21
+ }
22
+ }), d = s.forwardRef(
23
+ ({ className: e, variant: a, animation: t, ...n }, o) => /* @__PURE__ */ r(
24
+ "div",
25
+ {
26
+ ref: o,
27
+ className: m(l({ variant: a, animation: t }), e),
28
+ ...n
29
+ }
30
+ )
31
+ );
32
+ d.displayName = "Skeleton";
33
+ export {
34
+ d as Skeleton,
35
+ l as skeletonVariants
36
+ };
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as SliderPrimitive from '@primitives/react-slider';
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ export { Slider };
5
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,0BAA0B,CAAA;AAI3D,QAAA,MAAM,MAAM,yJAoBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import * as n from "react";
3
+ import { Root as o, Track as t, Range as c, Thumb as d } from "../primitives/react-slider.js";
4
+ import { cn as f } from "./lib/utils.js";
5
+ const m = n.forwardRef(({ className: i, "aria-label": l, ...s }, r) => /* @__PURE__ */ a(
6
+ o,
7
+ {
8
+ ref: r,
9
+ className: f(
10
+ "relative flex w-full touch-none select-none items-center",
11
+ i
12
+ ),
13
+ ...s,
14
+ children: [
15
+ /* @__PURE__ */ e(t, { className: "relative h-ds-02b w-full grow overflow-hidden rounded-ds-full bg-field", children: /* @__PURE__ */ e(c, { className: "absolute h-full bg-interactive" }) }),
16
+ /* @__PURE__ */ e(
17
+ d,
18
+ {
19
+ "aria-label": l,
20
+ className: "block h-ico-sm w-ico-sm rounded-ds-full border-2 border-interactive bg-layer-01 shadow-01 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]"
21
+ }
22
+ )
23
+ ]
24
+ }
25
+ ));
26
+ m.displayName = o.displayName;
27
+ export {
28
+ m as Slider
29
+ };