@resq-sw/ui 0.2.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 (344) hide show
  1. package/LICENSE.md +20 -0
  2. package/README.md +61 -0
  3. package/lib/components/accordion/accordion.d.ts +27 -0
  4. package/lib/components/accordion/accordion.d.ts.map +1 -0
  5. package/lib/components/accordion/accordion.js +71 -0
  6. package/lib/components/accordion/accordion.js.map +1 -0
  7. package/lib/components/accordion/index.d.ts +2 -0
  8. package/lib/components/accordion/index.js +2 -0
  9. package/lib/components/alert/alert.d.ts +30 -0
  10. package/lib/components/alert/alert.d.ts.map +1 -0
  11. package/lib/components/alert/alert.js +59 -0
  12. package/lib/components/alert/alert.js.map +1 -0
  13. package/lib/components/alert/index.d.ts +2 -0
  14. package/lib/components/alert/index.js +2 -0
  15. package/lib/components/alert-dialog/alert-dialog.d.ts +61 -0
  16. package/lib/components/alert-dialog/alert-dialog.d.ts.map +1 -0
  17. package/lib/components/alert-dialog/alert-dialog.js +102 -0
  18. package/lib/components/alert-dialog/alert-dialog.js.map +1 -0
  19. package/lib/components/alert-dialog/index.d.ts +2 -0
  20. package/lib/components/alert-dialog/index.js +2 -0
  21. package/lib/components/aspect-ratio/aspect-ratio.d.ts +11 -0
  22. package/lib/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
  23. package/lib/components/aspect-ratio/aspect-ratio.js +29 -0
  24. package/lib/components/aspect-ratio/aspect-ratio.js.map +1 -0
  25. package/lib/components/aspect-ratio/index.d.ts +2 -0
  26. package/lib/components/aspect-ratio/index.js +2 -0
  27. package/lib/components/avatar/avatar.d.ts +36 -0
  28. package/lib/components/avatar/avatar.d.ts.map +1 -0
  29. package/lib/components/avatar/avatar.js +67 -0
  30. package/lib/components/avatar/avatar.js.map +1 -0
  31. package/lib/components/avatar/index.d.ts +2 -0
  32. package/lib/components/avatar/index.js +2 -0
  33. package/lib/components/badge/badge.d.ts +21 -0
  34. package/lib/components/badge/badge.d.ts.map +1 -0
  35. package/lib/components/badge/badge.js +43 -0
  36. package/lib/components/badge/badge.js.map +1 -0
  37. package/lib/components/badge/index.d.ts +2 -0
  38. package/lib/components/badge/index.js +2 -0
  39. package/lib/components/breadcrumb/breadcrumb.d.ts +40 -0
  40. package/lib/components/breadcrumb/breadcrumb.d.ts.map +1 -0
  41. package/lib/components/breadcrumb/breadcrumb.js +86 -0
  42. package/lib/components/breadcrumb/breadcrumb.js.map +1 -0
  43. package/lib/components/breadcrumb/index.d.ts +2 -0
  44. package/lib/components/breadcrumb/index.js +2 -0
  45. package/lib/components/button/button.d.ts +23 -0
  46. package/lib/components/button/button.d.ts.map +1 -0
  47. package/lib/components/button/button.js +63 -0
  48. package/lib/components/button/button.js.map +1 -0
  49. package/lib/components/button/index.d.ts +2 -0
  50. package/lib/components/button/index.js +2 -0
  51. package/lib/components/button-group/button-group.d.ts +30 -0
  52. package/lib/components/button-group/button-group.d.ts.map +1 -0
  53. package/lib/components/button-group/button-group.js +55 -0
  54. package/lib/components/button-group/button-group.js.map +1 -0
  55. package/lib/components/button-group/index.d.ts +2 -0
  56. package/lib/components/button-group/index.js +2 -0
  57. package/lib/components/calendar/calendar.d.ts +32 -0
  58. package/lib/components/calendar/calendar.d.ts.map +1 -0
  59. package/lib/components/calendar/calendar.js +126 -0
  60. package/lib/components/calendar/calendar.js.map +1 -0
  61. package/lib/components/calendar/index.d.ts +2 -0
  62. package/lib/components/calendar/index.js +2 -0
  63. package/lib/components/card/card.d.ts +39 -0
  64. package/lib/components/card/card.d.ts.map +1 -0
  65. package/lib/components/card/card.js +57 -0
  66. package/lib/components/card/card.js.map +1 -0
  67. package/lib/components/card/index.d.ts +2 -0
  68. package/lib/components/card/index.js +2 -0
  69. package/lib/components/carousel/carousel.d.ts +58 -0
  70. package/lib/components/carousel/carousel.d.ts.map +1 -0
  71. package/lib/components/carousel/carousel.js +150 -0
  72. package/lib/components/carousel/carousel.js.map +1 -0
  73. package/lib/components/carousel/index.d.ts +2 -0
  74. package/lib/components/carousel/index.js +2 -0
  75. package/lib/components/chart/chart.d.ts +70 -0
  76. package/lib/components/chart/chart.d.ts.map +1 -0
  77. package/lib/components/chart/chart.js +164 -0
  78. package/lib/components/chart/chart.js.map +1 -0
  79. package/lib/components/chart/index.d.ts +2 -0
  80. package/lib/components/chart/index.js +2 -0
  81. package/lib/components/checkbox/checkbox.d.ts +13 -0
  82. package/lib/components/checkbox/checkbox.d.ts.map +1 -0
  83. package/lib/components/checkbox/checkbox.js +37 -0
  84. package/lib/components/checkbox/checkbox.js.map +1 -0
  85. package/lib/components/checkbox/index.d.ts +2 -0
  86. package/lib/components/checkbox/index.js +2 -0
  87. package/lib/components/collapsible/collapsible.d.ts +17 -0
  88. package/lib/components/collapsible/collapsible.d.ts.map +1 -0
  89. package/lib/components/collapsible/collapsible.js +41 -0
  90. package/lib/components/collapsible/collapsible.js.map +1 -0
  91. package/lib/components/collapsible/index.d.ts +2 -0
  92. package/lib/components/collapsible/index.js +2 -0
  93. package/lib/components/combobox/combobox.d.ts +83 -0
  94. package/lib/components/combobox/combobox.d.ts.map +1 -0
  95. package/lib/components/combobox/combobox.js +180 -0
  96. package/lib/components/combobox/combobox.js.map +1 -0
  97. package/lib/components/combobox/index.d.ts +2 -0
  98. package/lib/components/combobox/index.js +2 -0
  99. package/lib/components/command/command.d.ts +56 -0
  100. package/lib/components/command/command.d.ts.map +1 -0
  101. package/lib/components/command/command.js +104 -0
  102. package/lib/components/command/command.js.map +1 -0
  103. package/lib/components/command/index.d.ts +2 -0
  104. package/lib/components/command/index.js +2 -0
  105. package/lib/components/context-menu/context-menu.d.ts +81 -0
  106. package/lib/components/context-menu/context-menu.d.ts.map +1 -0
  107. package/lib/components/context-menu/context-menu.js +139 -0
  108. package/lib/components/context-menu/context-menu.js.map +1 -0
  109. package/lib/components/context-menu/index.d.ts +2 -0
  110. package/lib/components/context-menu/index.js +2 -0
  111. package/lib/components/dialog/dialog.d.ts +52 -0
  112. package/lib/components/dialog/dialog.d.ts.map +1 -0
  113. package/lib/components/dialog/dialog.js +97 -0
  114. package/lib/components/dialog/dialog.js.map +1 -0
  115. package/lib/components/dialog/index.d.ts +2 -0
  116. package/lib/components/dialog/index.js +2 -0
  117. package/lib/components/direction/direction.d.ts +17 -0
  118. package/lib/components/direction/direction.d.ts.map +1 -0
  119. package/lib/components/direction/direction.js +30 -0
  120. package/lib/components/direction/direction.js.map +1 -0
  121. package/lib/components/direction/index.d.ts +2 -0
  122. package/lib/components/direction/index.js +2 -0
  123. package/lib/components/drawer/drawer.d.ts +46 -0
  124. package/lib/components/drawer/drawer.d.ts.map +1 -0
  125. package/lib/components/drawer/drawer.js +94 -0
  126. package/lib/components/drawer/drawer.js.map +1 -0
  127. package/lib/components/drawer/index.d.ts +2 -0
  128. package/lib/components/drawer/index.js +2 -0
  129. package/lib/components/dropdown-menu/dropdown-menu.d.ts +80 -0
  130. package/lib/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
  131. package/lib/components/dropdown-menu/dropdown-menu.js +142 -0
  132. package/lib/components/dropdown-menu/dropdown-menu.js.map +1 -0
  133. package/lib/components/dropdown-menu/index.d.ts +2 -0
  134. package/lib/components/dropdown-menu/index.js +2 -0
  135. package/lib/components/empty/empty.d.ts +37 -0
  136. package/lib/components/empty/empty.d.ts.map +1 -0
  137. package/lib/components/empty/empty.js +76 -0
  138. package/lib/components/empty/empty.js.map +1 -0
  139. package/lib/components/empty/index.d.ts +2 -0
  140. package/lib/components/empty/index.js +2 -0
  141. package/lib/components/field/field.d.ts +66 -0
  142. package/lib/components/field/field.d.ts.map +1 -0
  143. package/lib/components/field/field.js +127 -0
  144. package/lib/components/field/field.js.map +1 -0
  145. package/lib/components/field/index.d.ts +2 -0
  146. package/lib/components/field/index.js +2 -0
  147. package/lib/components/hover-card/hover-card.d.ts +21 -0
  148. package/lib/components/hover-card/hover-card.d.ts.map +1 -0
  149. package/lib/components/hover-card/hover-card.js +48 -0
  150. package/lib/components/hover-card/hover-card.js.map +1 -0
  151. package/lib/components/hover-card/index.d.ts +2 -0
  152. package/lib/components/hover-card/index.js +2 -0
  153. package/lib/components/input/index.d.ts +2 -0
  154. package/lib/components/input/index.js +2 -0
  155. package/lib/components/input/input.d.ts +13 -0
  156. package/lib/components/input/input.d.ts.map +1 -0
  157. package/lib/components/input/input.js +15 -0
  158. package/lib/components/input/input.js.map +1 -0
  159. package/lib/components/input-group/index.d.ts +2 -0
  160. package/lib/components/input-group/index.js +2 -0
  161. package/lib/components/input-group/input-group.d.ts +45 -0
  162. package/lib/components/input-group/input-group.d.ts.map +1 -0
  163. package/lib/components/input-group/input-group.js +95 -0
  164. package/lib/components/input-group/input-group.js.map +1 -0
  165. package/lib/components/input-otp/index.d.ts +2 -0
  166. package/lib/components/input-otp/index.js +2 -0
  167. package/lib/components/input-otp/input-otp.d.ts +30 -0
  168. package/lib/components/input-otp/input-otp.d.ts.map +1 -0
  169. package/lib/components/input-otp/input-otp.js +64 -0
  170. package/lib/components/input-otp/input-otp.js.map +1 -0
  171. package/lib/components/item/index.d.ts +2 -0
  172. package/lib/components/item/index.js +2 -0
  173. package/lib/components/item/item.d.ts +64 -0
  174. package/lib/components/item/item.d.ts.map +1 -0
  175. package/lib/components/item/item.js +133 -0
  176. package/lib/components/item/item.js.map +1 -0
  177. package/lib/components/kbd/index.d.ts +2 -0
  178. package/lib/components/kbd/index.js +2 -0
  179. package/lib/components/kbd/kbd.d.ts +30 -0
  180. package/lib/components/kbd/kbd.d.ts.map +1 -0
  181. package/lib/components/kbd/kbd.js +36 -0
  182. package/lib/components/kbd/kbd.js.map +1 -0
  183. package/lib/components/label/index.d.ts +2 -0
  184. package/lib/components/label/index.js +2 -0
  185. package/lib/components/label/label.d.ts +13 -0
  186. package/lib/components/label/label.d.ts.map +1 -0
  187. package/lib/components/label/label.js +31 -0
  188. package/lib/components/label/label.js.map +1 -0
  189. package/lib/components/menubar/index.d.ts +2 -0
  190. package/lib/components/menubar/index.js +2 -0
  191. package/lib/components/menubar/menubar.d.ts +86 -0
  192. package/lib/components/menubar/menubar.d.ts.map +1 -0
  193. package/lib/components/menubar/menubar.js +149 -0
  194. package/lib/components/menubar/menubar.js.map +1 -0
  195. package/lib/components/native-select/index.d.ts +2 -0
  196. package/lib/components/native-select/index.js +2 -0
  197. package/lib/components/native-select/native-select.d.ts +23 -0
  198. package/lib/components/native-select/native-select.d.ts.map +1 -0
  199. package/lib/components/native-select/native-select.js +53 -0
  200. package/lib/components/native-select/native-select.js.map +1 -0
  201. package/lib/components/navigation-menu/index.d.ts +2 -0
  202. package/lib/components/navigation-menu/index.js +2 -0
  203. package/lib/components/navigation-menu/navigation-menu.d.ts +48 -0
  204. package/lib/components/navigation-menu/navigation-menu.d.ts.map +1 -0
  205. package/lib/components/navigation-menu/navigation-menu.js +96 -0
  206. package/lib/components/navigation-menu/navigation-menu.js.map +1 -0
  207. package/lib/components/pagination/index.d.ts +2 -0
  208. package/lib/components/pagination/index.js +2 -0
  209. package/lib/components/pagination/pagination.d.ts +47 -0
  210. package/lib/components/pagination/pagination.d.ts.map +1 -0
  211. package/lib/components/pagination/pagination.js +95 -0
  212. package/lib/components/pagination/pagination.js.map +1 -0
  213. package/lib/components/popover/index.d.ts +2 -0
  214. package/lib/components/popover/index.js +2 -0
  215. package/lib/components/popover/popover.d.ts +36 -0
  216. package/lib/components/popover/popover.d.ts.map +1 -0
  217. package/lib/components/popover/popover.js +72 -0
  218. package/lib/components/popover/popover.js.map +1 -0
  219. package/lib/components/progress/index.d.ts +2 -0
  220. package/lib/components/progress/index.js +2 -0
  221. package/lib/components/progress/progress.d.ts +14 -0
  222. package/lib/components/progress/progress.d.ts.map +1 -0
  223. package/lib/components/progress/progress.js +36 -0
  224. package/lib/components/progress/progress.js.map +1 -0
  225. package/lib/components/radio-group/index.d.ts +2 -0
  226. package/lib/components/radio-group/index.js +2 -0
  227. package/lib/components/radio-group/radio-group.d.ts +17 -0
  228. package/lib/components/radio-group/radio-group.d.ts.map +1 -0
  229. package/lib/components/radio-group/radio-group.js +44 -0
  230. package/lib/components/radio-group/radio-group.js.map +1 -0
  231. package/lib/components/resizable/index.d.ts +2 -0
  232. package/lib/components/resizable/index.js +2 -0
  233. package/lib/components/resizable/resizable.d.ts +23 -0
  234. package/lib/components/resizable/resizable.d.ts.map +1 -0
  235. package/lib/components/resizable/resizable.js +45 -0
  236. package/lib/components/resizable/resizable.js.map +1 -0
  237. package/lib/components/scroll-area/index.d.ts +2 -0
  238. package/lib/components/scroll-area/index.js +2 -0
  239. package/lib/components/scroll-area/scroll-area.d.ts +19 -0
  240. package/lib/components/scroll-area/scroll-area.d.ts.map +1 -0
  241. package/lib/components/scroll-area/scroll-area.js +53 -0
  242. package/lib/components/scroll-area/scroll-area.js.map +1 -0
  243. package/lib/components/select/index.d.ts +2 -0
  244. package/lib/components/select/index.js +2 -0
  245. package/lib/components/select/select.d.ts +55 -0
  246. package/lib/components/select/select.d.ts.map +1 -0
  247. package/lib/components/select/select.js +116 -0
  248. package/lib/components/select/select.js.map +1 -0
  249. package/lib/components/separator/index.d.ts +2 -0
  250. package/lib/components/separator/index.js +2 -0
  251. package/lib/components/separator/separator.d.ts +15 -0
  252. package/lib/components/separator/separator.d.ts.map +1 -0
  253. package/lib/components/separator/separator.js +33 -0
  254. package/lib/components/separator/separator.js.map +1 -0
  255. package/lib/components/sheet/index.d.ts +2 -0
  256. package/lib/components/sheet/index.js +2 -0
  257. package/lib/components/sheet/sheet.d.ts +44 -0
  258. package/lib/components/sheet/sheet.d.ts.map +1 -0
  259. package/lib/components/sheet/sheet.js +106 -0
  260. package/lib/components/sheet/sheet.js.map +1 -0
  261. package/lib/components/sidebar/index.d.ts +2 -0
  262. package/lib/components/sidebar/index.js +2 -0
  263. package/lib/components/sidebar/sidebar.d.ts +169 -0
  264. package/lib/components/sidebar/sidebar.d.ts.map +1 -0
  265. package/lib/components/sidebar/sidebar.js +388 -0
  266. package/lib/components/sidebar/sidebar.js.map +1 -0
  267. package/lib/components/skeleton/index.d.ts +2 -0
  268. package/lib/components/skeleton/index.js +2 -0
  269. package/lib/components/skeleton/skeleton.d.ts +26 -0
  270. package/lib/components/skeleton/skeleton.d.ts.map +1 -0
  271. package/lib/components/skeleton/skeleton.js +29 -0
  272. package/lib/components/skeleton/skeleton.js.map +1 -0
  273. package/lib/components/slider/index.d.ts +2 -0
  274. package/lib/components/slider/index.js +2 -0
  275. package/lib/components/slider/slider.d.ts +17 -0
  276. package/lib/components/slider/slider.d.ts.map +1 -0
  277. package/lib/components/slider/slider.js +53 -0
  278. package/lib/components/slider/slider.js.map +1 -0
  279. package/lib/components/sonner/index.d.ts +2 -0
  280. package/lib/components/sonner/index.js +2 -0
  281. package/lib/components/sonner/sonner.d.ts +11 -0
  282. package/lib/components/sonner/sonner.d.ts.map +1 -0
  283. package/lib/components/sonner/sonner.js +47 -0
  284. package/lib/components/sonner/sonner.js.map +1 -0
  285. package/lib/components/spinner/index.d.ts +2 -0
  286. package/lib/components/spinner/index.js +2 -0
  287. package/lib/components/spinner/spinner.d.ts +26 -0
  288. package/lib/components/spinner/spinner.d.ts.map +1 -0
  289. package/lib/components/spinner/spinner.js +31 -0
  290. package/lib/components/spinner/spinner.js.map +1 -0
  291. package/lib/components/switch/index.d.ts +2 -0
  292. package/lib/components/switch/index.js +2 -0
  293. package/lib/components/switch/switch.d.ts +16 -0
  294. package/lib/components/switch/switch.d.ts.map +1 -0
  295. package/lib/components/switch/switch.js +36 -0
  296. package/lib/components/switch/switch.js.map +1 -0
  297. package/lib/components/table/index.d.ts +2 -0
  298. package/lib/components/table/index.js +2 -0
  299. package/lib/components/table/table.d.ts +40 -0
  300. package/lib/components/table/table.d.ts.map +1 -0
  301. package/lib/components/table/table.js +83 -0
  302. package/lib/components/table/table.js.map +1 -0
  303. package/lib/components/tabs/index.d.ts +2 -0
  304. package/lib/components/tabs/index.js +2 -0
  305. package/lib/components/tabs/tabs.d.ts +32 -0
  306. package/lib/components/tabs/tabs.d.ts.map +1 -0
  307. package/lib/components/tabs/tabs.js +62 -0
  308. package/lib/components/tabs/tabs.js.map +1 -0
  309. package/lib/components/textarea/index.d.ts +2 -0
  310. package/lib/components/textarea/index.js +2 -0
  311. package/lib/components/textarea/textarea.d.ts +12 -0
  312. package/lib/components/textarea/textarea.d.ts.map +1 -0
  313. package/lib/components/textarea/textarea.js +14 -0
  314. package/lib/components/textarea/textarea.js.map +1 -0
  315. package/lib/components/toggle/index.d.ts +2 -0
  316. package/lib/components/toggle/index.js +2 -0
  317. package/lib/components/toggle/toggle.d.ts +21 -0
  318. package/lib/components/toggle/toggle.d.ts.map +1 -0
  319. package/lib/components/toggle/toggle.js +53 -0
  320. package/lib/components/toggle/toggle.js.map +1 -0
  321. package/lib/components/toggle-group/index.d.ts +2 -0
  322. package/lib/components/toggle-group/index.js +2 -0
  323. package/lib/components/toggle-group/toggle-group.d.ts +30 -0
  324. package/lib/components/toggle-group/toggle-group.d.ts.map +1 -0
  325. package/lib/components/toggle-group/toggle-group.js +68 -0
  326. package/lib/components/toggle-group/toggle-group.js.map +1 -0
  327. package/lib/components/tooltip/index.d.ts +2 -0
  328. package/lib/components/tooltip/index.js +2 -0
  329. package/lib/components/tooltip/tooltip.d.ts +25 -0
  330. package/lib/components/tooltip/tooltip.d.ts.map +1 -0
  331. package/lib/components/tooltip/tooltip.js +52 -0
  332. package/lib/components/tooltip/tooltip.js.map +1 -0
  333. package/lib/hooks/use-mobile.d.ts +20 -0
  334. package/lib/hooks/use-mobile.d.ts.map +1 -0
  335. package/lib/hooks/use-mobile.js +37 -0
  336. package/lib/hooks/use-mobile.js.map +1 -0
  337. package/lib/index.d.ts +58 -0
  338. package/lib/index.js +113 -0
  339. package/lib/lib/utils.d.ts +7 -0
  340. package/lib/lib/utils.d.ts.map +1 -0
  341. package/lib/lib/utils.js +10 -0
  342. package/lib/lib/utils.js.map +1 -0
  343. package/package.json +395 -0
  344. package/src/styles/globals.css +140 -0
@@ -0,0 +1,95 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { Button } from "../button/button.js";
3
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/pagination/pagination.tsx
6
+ /**
7
+ * Copyright 2026 ResQ
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ function Pagination({ className, ...props }) {
22
+ return /* @__PURE__ */ jsx("nav", {
23
+ "aria-label": "pagination",
24
+ className: cn("mx-auto flex w-full justify-center", className),
25
+ "data-slot": "pagination",
26
+ ...props
27
+ });
28
+ }
29
+ function PaginationContent({ className, ...props }) {
30
+ return /* @__PURE__ */ jsx("ul", {
31
+ className: cn("gap-0.5 flex items-center", className),
32
+ "data-slot": "pagination-content",
33
+ ...props
34
+ });
35
+ }
36
+ function PaginationEllipsis({ className, ...props }) {
37
+ return /* @__PURE__ */ jsxs("span", {
38
+ "aria-hidden": true,
39
+ className: cn("size-8 flex items-center justify-center [&_svg:not([class*='size-'])]:size-4", className),
40
+ "data-slot": "pagination-ellipsis",
41
+ ...props,
42
+ children: [/* @__PURE__ */ jsx(MoreHorizontalIcon, {}), /* @__PURE__ */ jsx("span", {
43
+ className: "sr-only",
44
+ children: "More pages"
45
+ })]
46
+ });
47
+ }
48
+ function PaginationItem({ ...props }) {
49
+ return /* @__PURE__ */ jsx("li", {
50
+ "data-slot": "pagination-item",
51
+ ...props
52
+ });
53
+ }
54
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
55
+ return /* @__PURE__ */ jsx(Button, {
56
+ asChild: true,
57
+ className: cn(className),
58
+ size,
59
+ variant: isActive ? "outline" : "ghost",
60
+ children: /* @__PURE__ */ jsx("a", {
61
+ "aria-current": isActive ? "page" : void 0,
62
+ "data-active": isActive,
63
+ "data-slot": "pagination-link",
64
+ ...props
65
+ })
66
+ });
67
+ }
68
+ function PaginationNext({ className, text = "Next", ...props }) {
69
+ return /* @__PURE__ */ jsxs(PaginationLink, {
70
+ "aria-label": "Go to next page",
71
+ className: cn("pr-1.5!", className),
72
+ size: "default",
73
+ ...props,
74
+ children: [/* @__PURE__ */ jsx("span", {
75
+ className: "hidden sm:block",
76
+ children: text
77
+ }), /* @__PURE__ */ jsx(ChevronRightIcon, { "data-icon": "inline-end" })]
78
+ });
79
+ }
80
+ function PaginationPrevious({ className, text = "Previous", ...props }) {
81
+ return /* @__PURE__ */ jsxs(PaginationLink, {
82
+ "aria-label": "Go to previous page",
83
+ className: cn("pl-1.5!", className),
84
+ size: "default",
85
+ ...props,
86
+ children: [/* @__PURE__ */ jsx(ChevronLeftIcon, { "data-icon": "inline-start" }), /* @__PURE__ */ jsx("span", {
87
+ className: "hidden sm:block",
88
+ children: text
89
+ })]
90
+ });
91
+ }
92
+ //#endregion
93
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
94
+
95
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.js","names":[],"sources":["../../../src/components/pagination/pagination.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from \"lucide-react\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\nimport { Button } from \"../button/button.js\";\n\ntype PaginationLinkProps = Pick<React.ComponentProps<typeof Button>, \"size\"> &\n\tReact.ComponentProps<\"a\"> & {\n\t\tisActive?: boolean;\n\t};\n\nfunction Pagination({ className, ...props }: React.ComponentProps<\"nav\">) {\n\treturn (\n\t\t<nav\n\t\t\taria-label=\"pagination\"\n\t\t\tclassName={cn(\"mx-auto flex w-full justify-center\", className)}\n\t\t\tdata-slot=\"pagination\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<\"ul\">) {\n\treturn (\n\t\t<ul\n\t\t\tclassName={cn(\"gap-0.5 flex items-center\", className)}\n\t\t\tdata-slot=\"pagination-content\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<\"span\">) {\n\treturn (\n\t\t<span\n\t\t\taria-hidden\n\t\t\tclassName={cn(\n\t\t\t\t\"size-8 flex items-center justify-center [&_svg:not([class*='size-'])]:size-4\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"pagination-ellipsis\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<MoreHorizontalIcon />\n\t\t\t<span className=\"sr-only\">More pages</span>\n\t\t</span>\n\t);\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<\"li\">) {\n\treturn <li data-slot=\"pagination-item\" {...props} />;\n}\n\nfunction PaginationLink({ className, isActive, size = \"icon\", ...props }: PaginationLinkProps) {\n\treturn (\n\t\t<Button asChild className={cn(className)} size={size} variant={isActive ? \"outline\" : \"ghost\"}>\n\t\t\t<a\n\t\t\t\taria-current={isActive ? \"page\" : undefined}\n\t\t\t\tdata-active={isActive}\n\t\t\t\tdata-slot=\"pagination-link\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</Button>\n\t);\n}\n\nfunction PaginationNext({\n\tclassName,\n\ttext = \"Next\",\n\t...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n\treturn (\n\t\t<PaginationLink\n\t\t\taria-label=\"Go to next page\"\n\t\t\tclassName={cn(\"pr-1.5!\", className)}\n\t\t\tsize=\"default\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className=\"hidden sm:block\">{text}</span>\n\t\t\t<ChevronRightIcon data-icon=\"inline-end\" />\n\t\t</PaginationLink>\n\t);\n}\n\nfunction PaginationPrevious({\n\tclassName,\n\ttext = \"Previous\",\n\t...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n\treturn (\n\t\t<PaginationLink\n\t\t\taria-label=\"Go to previous page\"\n\t\t\tclassName={cn(\"pl-1.5!\", className)}\n\t\t\tsize=\"default\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<ChevronLeftIcon data-icon=\"inline-start\" />\n\t\t\t<span className=\"hidden sm:block\">{text}</span>\n\t\t</PaginationLink>\n\t);\n}\n\nexport {\n\tPagination,\n\tPaginationContent,\n\tPaginationEllipsis,\n\tPaginationItem,\n\tPaginationLink,\n\tPaginationNext,\n\tPaginationPrevious,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA2BA,SAAS,WAAW,EAAE,WAAW,GAAG,SAAsC;AACzE,QACC,oBAAC,OAAD;EACC,cAAW;EACX,WAAW,GAAG,sCAAsC,UAAU;EAC9D,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,kBAAkB,EAAE,WAAW,GAAG,SAAqC;AAC/E,QACC,oBAAC,MAAD;EACC,WAAW,GAAG,6BAA6B,UAAU;EACrD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAuC;AAClF,QACC,qBAAC,QAAD;EACC,eAAA;EACA,WAAW,GACV,gFACA,UACA;EACD,aAAU;EACV,GAAI;YAPL,CASC,oBAAC,oBAAD,EAAsB,CAAA,EACtB,oBAAC,QAAD;GAAM,WAAU;aAAU;GAAiB,CAAA,CACrC;;;AAIT,SAAS,eAAe,EAAE,GAAG,SAAqC;AACjE,QAAO,oBAAC,MAAD;EAAI,aAAU;EAAkB,GAAI;EAAS,CAAA;;AAGrD,SAAS,eAAe,EAAE,WAAW,UAAU,OAAO,QAAQ,GAAG,SAA8B;AAC9F,QACC,oBAAC,QAAD;EAAQ,SAAA;EAAQ,WAAW,GAAG,UAAU;EAAQ;EAAM,SAAS,WAAW,YAAY;YACrF,oBAAC,KAAD;GACC,gBAAc,WAAW,SAAS,KAAA;GAClC,eAAa;GACb,aAAU;GACV,GAAI;GACH,CAAA;EACM,CAAA;;AAIX,SAAS,eAAe,EACvB,WACA,OAAO,QACP,GAAG,SACgE;AACnE,QACC,qBAAC,gBAAD;EACC,cAAW;EACX,WAAW,GAAG,WAAW,UAAU;EACnC,MAAK;EACL,GAAI;YAJL,CAMC,oBAAC,QAAD;GAAM,WAAU;aAAmB;GAAY,CAAA,EAC/C,oBAAC,kBAAD,EAAkB,aAAU,cAAe,CAAA,CAC3B;;;AAInB,SAAS,mBAAmB,EAC3B,WACA,OAAO,YACP,GAAG,SACgE;AACnE,QACC,qBAAC,gBAAD;EACC,cAAW;EACX,WAAW,GAAG,WAAW,UAAU;EACnC,MAAK;EACL,GAAI;YAJL,CAMC,oBAAC,iBAAD,EAAiB,aAAU,gBAAiB,CAAA,EAC5C,oBAAC,QAAD;GAAM,WAAU;aAAmB;GAAY,CAAA,CAC/B"}
@@ -0,0 +1,2 @@
1
+ import { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from "./popover.js";
2
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -0,0 +1,2 @@
1
+ import { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from "./popover.js";
2
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
@@ -0,0 +1,36 @@
1
+ import { Popover as Popover$1 } from "radix-ui";
2
+ import * as react_jsx_runtime201 from "react/jsx-runtime";
3
+ import * as React from "react";
4
+
5
+ //#region src/components/popover/popover.d.ts
6
+
7
+ declare function Popover({
8
+ ...props
9
+ }: React.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime201.JSX.Element;
10
+ declare function PopoverAnchor({
11
+ ...props
12
+ }: React.ComponentProps<typeof Popover$1.Anchor>): react_jsx_runtime201.JSX.Element;
13
+ declare function PopoverContent({
14
+ align,
15
+ className,
16
+ sideOffset,
17
+ ...props
18
+ }: React.ComponentProps<typeof Popover$1.Content>): react_jsx_runtime201.JSX.Element;
19
+ declare function PopoverDescription({
20
+ className,
21
+ ...props
22
+ }: React.ComponentProps<"p">): react_jsx_runtime201.JSX.Element;
23
+ declare function PopoverHeader({
24
+ className,
25
+ ...props
26
+ }: React.ComponentProps<"div">): react_jsx_runtime201.JSX.Element;
27
+ declare function PopoverTitle({
28
+ className,
29
+ ...props
30
+ }: React.ComponentProps<"h2">): react_jsx_runtime201.JSX.Element;
31
+ declare function PopoverTrigger({
32
+ ...props
33
+ }: React.ComponentProps<typeof Popover$1.Trigger>): react_jsx_runtime201.JSX.Element;
34
+ //#endregion
35
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
36
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","names":[],"sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAuBS,OAAA,CAUR;EAAA,GAAA;AAAA,CAAA,EAV8B,KAAA,CAAM,cAUpC,CAAA,OAV0D,SAAA,CAAiB,IAU3E,CAAA,CAAA,EAVgF,oBAAA,CAAA,GAAA,CAAA,OAUhF;iBANQ,aAAA,CAOR;EAAA,GAAA;AAAA,CAAA,EAPoC,KAAA,CAAM,cAO1C,CAAA,OAPgE,SAAA,CAAiB,MAOjF,CAAA,CAAA,EAPwF,oBAAA,CAAA,GAAA,CAAA,OAOxF;iBAHQ,cAAA,CAKuC;EAAA,KAAA;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAA7C,KAAA,CAAM,cAAuC,CAAA,OAAjB,SAAA,CAAiB,OAAA,CAAA,CAAA,EAAQ,oBAAA,CAAA,GAAA,CAAA,OAAR;iBAiBvC,kBAAA,CAjBA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiB4C,KAAA,CAAM,cAjBlD,CAAA,GAAA,CAAA,CAAA,EAiBqE,oBAAA,CAAA,GAAA,CAAA,OAjBrE;iBA2BA,aAAA,CA3B+C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2BR,KAAA,CAAM,cA3BE,CAAA,KAAA,CAAA,CAAA,EA2BmB,oBAAA,CAAA,GAAA,CAAA,OA3BnB;iBAqC/C,YAAA,CArC+C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqCT,KAAA,CAAM,cArCG,CAAA,IAAA,CAAA,CAAA,EAqCiB,oBAAA,CAAA,GAAA,CAAA,OArCjB;AAAA,iBAyC/C,cAAA,CAxBkB;EAAA,GAAA;AAAA,CAAA,EAwBW,KAAA,CAAM,cAxBjB,CAAA,OAwBuC,SAAA,CAAiB,OAxBxD,CAAA,CAAA,EAwBgE,oBAAA,CAAA,GAAA,CAAA,OAxBhE"}
@@ -0,0 +1,72 @@
1
+ "use client";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { Popover as Popover$1 } from "radix-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/popover/popover.tsx
6
+ /**
7
+ * Copyright 2026 ResQ
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ function Popover({ ...props }) {
22
+ return /* @__PURE__ */ jsx(Popover$1.Root, {
23
+ "data-slot": "popover",
24
+ ...props
25
+ });
26
+ }
27
+ function PopoverAnchor({ ...props }) {
28
+ return /* @__PURE__ */ jsx(Popover$1.Anchor, {
29
+ "data-slot": "popover-anchor",
30
+ ...props
31
+ });
32
+ }
33
+ function PopoverContent({ align = "center", className, sideOffset = 4, ...props }) {
34
+ return /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(Popover$1.Content, {
35
+ align,
36
+ className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden", className),
37
+ "data-slot": "popover-content",
38
+ sideOffset,
39
+ ...props
40
+ }) });
41
+ }
42
+ function PopoverDescription({ className, ...props }) {
43
+ return /* @__PURE__ */ jsx("p", {
44
+ className: cn("text-muted-foreground", className),
45
+ "data-slot": "popover-description",
46
+ ...props
47
+ });
48
+ }
49
+ function PopoverHeader({ className, ...props }) {
50
+ return /* @__PURE__ */ jsx("div", {
51
+ className: cn("flex flex-col gap-0.5 text-sm", className),
52
+ "data-slot": "popover-header",
53
+ ...props
54
+ });
55
+ }
56
+ function PopoverTitle({ className, ...props }) {
57
+ return /* @__PURE__ */ jsx("div", {
58
+ className: cn("font-medium", className),
59
+ "data-slot": "popover-title",
60
+ ...props
61
+ });
62
+ }
63
+ function PopoverTrigger({ ...props }) {
64
+ return /* @__PURE__ */ jsx(Popover$1.Trigger, {
65
+ "data-slot": "popover-trigger",
66
+ ...props
67
+ });
68
+ }
69
+ //#endregion
70
+ export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };
71
+
72
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.js","names":["PopoverPrimitive"],"sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { Popover as PopoverPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n\treturn <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n\treturn <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverContent({\n\talign = \"center\",\n\tclassName,\n\tsideOffset = 4,\n\t...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n\treturn (\n\t\t<PopoverPrimitive.Portal>\n\t\t\t<PopoverPrimitive.Content\n\t\t\t\talign={align}\n\t\t\t\tclassName={cn(\n\t\t\t\t\t\"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 flex flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tdata-slot=\"popover-content\"\n\t\t\t\tsideOffset={sideOffset}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</PopoverPrimitive.Portal>\n\t);\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n\treturn (\n\t\t<p\n\t\t\tclassName={cn(\"text-muted-foreground\", className)}\n\t\t\tdata-slot=\"popover-description\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n\treturn (\n\t\t<div\n\t\t\tclassName={cn(\"flex flex-col gap-0.5 text-sm\", className)}\n\t\t\tdata-slot=\"popover-header\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<\"h2\">) {\n\treturn <div className={cn(\"font-medium\", className)} data-slot=\"popover-title\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n\treturn <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nexport {\n\tPopover,\n\tPopoverAnchor,\n\tPopoverContent,\n\tPopoverDescription,\n\tPopoverHeader,\n\tPopoverTitle,\n\tPopoverTrigger,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,QAAQ,EAAE,GAAG,SAA6D;AAClF,QAAO,oBAACA,UAAiB,MAAlB;EAAuB,aAAU;EAAU,GAAI;EAAS,CAAA;;AAGhE,SAAS,cAAc,EAAE,GAAG,SAA+D;AAC1F,QAAO,oBAACA,UAAiB,QAAlB;EAAyB,aAAU;EAAiB,GAAI;EAAS,CAAA;;AAGzE,SAAS,eAAe,EACvB,QAAQ,UACR,WACA,aAAa,GACb,GAAG,SACsD;AACzD,QACC,oBAACA,UAAiB,QAAlB,EAAA,UACC,oBAACA,UAAiB,SAAlB;EACQ;EACP,WAAW,GACV,kfACA,UACA;EACD,aAAU;EACE;EACZ,GAAI;EACH,CAAA,EACuB,CAAA;;AAI5B,SAAS,mBAAmB,EAAE,WAAW,GAAG,SAAoC;AAC/E,QACC,oBAAC,KAAD;EACC,WAAW,GAAG,yBAAyB,UAAU;EACjD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,cAAc,EAAE,WAAW,GAAG,SAAsC;AAC5E,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,iCAAiC,UAAU;EACzD,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,aAAa,EAAE,WAAW,GAAG,SAAqC;AAC1E,QAAO,oBAAC,OAAD;EAAK,WAAW,GAAG,eAAe,UAAU;EAAE,aAAU;EAAgB,GAAI;EAAS,CAAA;;AAG7F,SAAS,eAAe,EAAE,GAAG,SAAgE;AAC5F,QAAO,oBAACA,UAAiB,SAAlB;EAA0B,aAAU;EAAkB,GAAI;EAAS,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { Progress } from "./progress.js";
2
+ export { Progress };
@@ -0,0 +1,2 @@
1
+ import { Progress } from "./progress.js";
2
+ export { Progress };
@@ -0,0 +1,14 @@
1
+ import { Progress as Progress$1 } from "radix-ui";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
+ import * as React from "react";
4
+
5
+ //#region src/components/progress/progress.d.ts
6
+
7
+ declare function Progress({
8
+ className,
9
+ value,
10
+ ...props
11
+ }: React.ComponentProps<typeof Progress$1.Root>): react_jsx_runtime19.JSX.Element;
12
+ //#endregion
13
+ export { Progress };
14
+ //# sourceMappingURL=progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.d.ts","names":[],"sources":["../../../src/components/progress/progress.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAuBS,QAAA;;;;GAIN,KAAA,CAAM,sBAAsB,UAAA,CAAkB,QAAK,mBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { Progress as Progress$1 } from "radix-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/progress/progress.tsx
6
+ /**
7
+ * Copyright 2026 ResQ
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ function Progress({ className, value, ...props }) {
22
+ return /* @__PURE__ */ jsx(Progress$1.Root, {
23
+ className: cn("bg-muted h-1 rounded-full relative flex w-full items-center overflow-x-hidden", className),
24
+ "data-slot": "progress",
25
+ ...props,
26
+ children: /* @__PURE__ */ jsx(Progress$1.Indicator, {
27
+ className: "bg-primary size-full flex-1 transition-all",
28
+ "data-slot": "progress-indicator",
29
+ style: { transform: `translateX(-${String(100 - (value ?? 0))}%)` }
30
+ })
31
+ });
32
+ }
33
+ //#endregion
34
+ export { Progress };
35
+
36
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress.js","names":["ProgressPrimitive"],"sources":["../../../src/components/progress/progress.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { Progress as ProgressPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction Progress({\n\tclassName,\n\tvalue,\n\t...props\n}: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n\treturn (\n\t\t<ProgressPrimitive.Root\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-muted h-1 rounded-full relative flex w-full items-center overflow-x-hidden\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"progress\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<ProgressPrimitive.Indicator\n\t\t\t\tclassName=\"bg-primary size-full flex-1 transition-all\"\n\t\t\t\tdata-slot=\"progress-indicator\"\n\t\t\t\tstyle={{ transform: `translateX(-${String(100 - (value ?? 0))}%)` }}\n\t\t\t/>\n\t\t</ProgressPrimitive.Root>\n\t);\n}\n\nexport { Progress };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,SAAS,EACjB,WACA,OACA,GAAG,SACoD;AACvD,QACC,oBAACA,WAAkB,MAAnB;EACC,WAAW,GACV,iFACA,UACA;EACD,aAAU;EACV,GAAI;YAEJ,oBAACA,WAAkB,WAAnB;GACC,WAAU;GACV,aAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAO,OAAO,SAAS,GAAG,CAAC,KAAK;GAClE,CAAA;EACsB,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { RadioGroup, RadioGroupItem } from "./radio-group.js";
2
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,2 @@
1
+ import { RadioGroup, RadioGroupItem } from "./radio-group.js";
2
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,17 @@
1
+ import { RadioGroup as RadioGroup$1 } from "radix-ui";
2
+ import * as react_jsx_runtime217 from "react/jsx-runtime";
3
+ import * as React from "react";
4
+
5
+ //#region src/components/radio-group/radio-group.d.ts
6
+
7
+ declare function RadioGroup({
8
+ className,
9
+ ...props
10
+ }: React.ComponentProps<typeof RadioGroup$1.Root>): react_jsx_runtime217.JSX.Element;
11
+ declare function RadioGroupItem({
12
+ className,
13
+ ...props
14
+ }: React.ComponentProps<typeof RadioGroup$1.Item>): react_jsx_runtime217.JSX.Element;
15
+ //#endregion
16
+ export { RadioGroup, RadioGroupItem };
17
+ //# sourceMappingURL=radio-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.d.ts","names":[],"sources":["../../../src/components/radio-group/radio-group.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAwBS,UAAA;;;GAGN,KAAA,CAAM,sBAAsB,YAAA,CAAoB,QAAK,oBAAA,CAAA,GAAA,CAAA;iBAU/C,cAAA;;;GAGN,KAAA,CAAM,sBAAsB,YAAA,CAAoB,QAAK,oBAAA,CAAA,GAAA,CAAA"}
@@ -0,0 +1,44 @@
1
+ "use client";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { CircleIcon } from "lucide-react";
4
+ import { RadioGroup as RadioGroup$1 } from "radix-ui";
5
+ import { jsx } from "react/jsx-runtime";
6
+ //#region src/components/radio-group/radio-group.tsx
7
+ /**
8
+ * Copyright 2026 ResQ
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+ function RadioGroup({ className, ...props }) {
23
+ return /* @__PURE__ */ jsx(RadioGroup$1.Root, {
24
+ className: cn("grid gap-2 w-full", className),
25
+ "data-slot": "radio-group",
26
+ ...props
27
+ });
28
+ }
29
+ function RadioGroupItem({ className, ...props }) {
30
+ return /* @__PURE__ */ jsx(RadioGroup$1.Item, {
31
+ className: cn("border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-[3px] aria-invalid:ring-[3px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50", className),
32
+ "data-slot": "radio-group-item",
33
+ ...props,
34
+ children: /* @__PURE__ */ jsx(RadioGroup$1.Indicator, {
35
+ className: "group-aria-invalid/radio-group-item:text-destructive text-primary flex size-4 items-center justify-center",
36
+ "data-slot": "radio-group-indicator",
37
+ children: /* @__PURE__ */ jsx(CircleIcon, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-current" })
38
+ })
39
+ });
40
+ }
41
+ //#endregion
42
+ export { RadioGroup, RadioGroupItem };
43
+
44
+ //# sourceMappingURL=radio-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.js","names":["RadioGroupPrimitive"],"sources":["../../../src/components/radio-group/radio-group.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { CircleIcon } from \"lucide-react\";\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction RadioGroup({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {\n\treturn (\n\t\t<RadioGroupPrimitive.Root\n\t\t\tclassName={cn(\"grid gap-2 w-full\", className)}\n\t\t\tdata-slot=\"radio-group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction RadioGroupItem({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n\treturn (\n\t\t<RadioGroupPrimitive.Item\n\t\t\tclassName={cn(\n\t\t\t\t\"border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex size-4 rounded-full focus-visible:ring-[3px] aria-invalid:ring-[3px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"radio-group-item\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<RadioGroupPrimitive.Indicator\n\t\t\t\tclassName=\"group-aria-invalid/radio-group-item:text-destructive text-primary flex size-4 items-center justify-center\"\n\t\t\t\tdata-slot=\"radio-group-indicator\"\n\t\t\t>\n\t\t\t\t<CircleIcon className=\"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-current\" />\n\t\t\t</RadioGroupPrimitive.Indicator>\n\t\t</RadioGroupPrimitive.Item>\n\t);\n}\n\nexport { RadioGroup, RadioGroupItem };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,SAAS,WAAW,EACnB,WACA,GAAG,SACsD;AACzD,QACC,oBAACA,aAAoB,MAArB;EACC,WAAW,GAAG,qBAAqB,UAAU;EAC7C,aAAU;EACV,GAAI;EACH,CAAA;;AAIJ,SAAS,eAAe,EACvB,WACA,GAAG,SACsD;AACzD,QACC,oBAACA,aAAoB,MAArB;EACC,WAAW,GACV,6eACA,UACA;EACD,aAAU;EACV,GAAI;YAEJ,oBAACA,aAAoB,WAArB;GACC,WAAU;GACV,aAAU;aAEV,oBAAC,YAAD,EAAY,WAAU,mFAAoF,CAAA;GAC3E,CAAA;EACN,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./resizable.js";
2
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,2 @@
1
+ import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./resizable.js";
2
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,23 @@
1
+ import * as react_jsx_runtime219 from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Group, Panel, Separator } from "react-resizable-panels";
4
+
5
+ //#region src/components/resizable/resizable.d.ts
6
+
7
+ declare function ResizableHandle({
8
+ className,
9
+ withHandle,
10
+ ...props
11
+ }: React.ComponentProps<typeof Separator> & {
12
+ withHandle?: boolean;
13
+ }): react_jsx_runtime219.JSX.Element;
14
+ declare function ResizablePanel({
15
+ ...props
16
+ }: React.ComponentProps<typeof Panel>): react_jsx_runtime219.JSX.Element;
17
+ declare function ResizablePanelGroup({
18
+ className,
19
+ ...props
20
+ }: React.ComponentProps<typeof Group>): react_jsx_runtime219.JSX.Element;
21
+ //#endregion
22
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
23
+ //# sourceMappingURL=resizable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.d.ts","names":[],"sources":["../../../src/components/resizable/resizable.tsx"],"sourcesContent":[],"mappings":";;;;;;AA4CwE,iBArB/D,eAAA,CAyBmB;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EArBzB,KAAA,CAAM,cAqBmB,CAAA,OArBG,SAqBH,CAAA,GAAA;EAAG,UAAA,CAAA,EAAA,OAAA;CAAmD,CAAA,EAnBjF,oBAAA,CAAA,GAAA,CAAA,OAmBiF;iBAJzE,cAAA,CAImD;EAAA,GAAA;AAAA,CAAA,EAJtB,KAAA,CAAM,cAIgB,CAAA,OAJM,KAIN,CAAA,CAAA,EAJY,oBAAA,CAAA,GAAA,CAAA,OAIZ;iBAAnD,mBAAA,CAA+E;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAAlC,KAAA,CAAM,cAA4B,CAAA,OAAN,KAAM,CAAA,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Group, Panel, Separator } from "react-resizable-panels";
5
+ //#region src/components/resizable/resizable.tsx
6
+ /**
7
+ * Copyright 2026 ResQ
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ function ResizableHandle({ className, withHandle, ...props }) {
22
+ return /* @__PURE__ */ jsx(Separator, {
23
+ className: cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", className),
24
+ "data-slot": "resizable-handle",
25
+ ...props,
26
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border h-6 w-1 rounded-lg z-10 flex shrink-0" })
27
+ });
28
+ }
29
+ function ResizablePanel({ ...props }) {
30
+ return /* @__PURE__ */ jsx(Panel, {
31
+ "data-slot": "resizable-panel",
32
+ ...props
33
+ });
34
+ }
35
+ function ResizablePanelGroup({ className, ...props }) {
36
+ return /* @__PURE__ */ jsx(Group, {
37
+ className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className),
38
+ "data-slot": "resizable-panel-group",
39
+ ...props
40
+ });
41
+ }
42
+ //#endregion
43
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
44
+
45
+ //# sourceMappingURL=resizable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable.js","names":[],"sources":["../../../src/components/resizable/resizable.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport type * as React from \"react\";\nimport { Group, Panel, Separator } from \"react-resizable-panels\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction ResizableHandle({\n\tclassName,\n\twithHandle,\n\t...props\n}: React.ComponentProps<typeof Separator> & {\n\twithHandle?: boolean;\n}) {\n\treturn (\n\t\t<Separator\n\t\t\tclassName={cn(\n\t\t\t\t\"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-slot=\"resizable-handle\"\n\t\t\t{...props}\n\t\t>\n\t\t\t{withHandle && <div className=\"bg-border h-6 w-1 rounded-lg z-10 flex shrink-0\" />}\n\t\t</Separator>\n\t);\n}\n\nfunction ResizablePanel({ ...props }: React.ComponentProps<typeof Panel>) {\n\treturn <Panel data-slot=\"resizable-panel\" {...props} />;\n}\n\nfunction ResizablePanelGroup({ className, ...props }: React.ComponentProps<typeof Group>) {\n\treturn (\n\t\t<Group\n\t\t\tclassName={cn(\"flex h-full w-full data-[panel-group-direction=vertical]:flex-col\", className)}\n\t\t\tdata-slot=\"resizable-panel-group\"\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,gBAAgB,EACxB,WACA,YACA,GAAG,SAGD;AACF,QACC,oBAAC,WAAD;EACC,WAAW,GACV,6oBACA,UACA;EACD,aAAU;EACV,GAAI;YAEH,cAAc,oBAAC,OAAD,EAAK,WAAU,mDAAoD,CAAA;EACvE,CAAA;;AAId,SAAS,eAAe,EAAE,GAAG,SAA6C;AACzE,QAAO,oBAAC,OAAD;EAAO,aAAU;EAAkB,GAAI;EAAS,CAAA;;AAGxD,SAAS,oBAAoB,EAAE,WAAW,GAAG,SAA6C;AACzF,QACC,oBAAC,OAAD;EACC,WAAW,GAAG,qEAAqE,UAAU;EAC7F,aAAU;EACV,GAAI;EACH,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { ScrollArea, ScrollBar } from "./scroll-area.js";
2
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,2 @@
1
+ import { ScrollArea, ScrollBar } from "./scroll-area.js";
2
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,19 @@
1
+ import { ScrollArea as ScrollArea$1 } from "radix-ui";
2
+ import * as react_jsx_runtime230 from "react/jsx-runtime";
3
+ import * as React from "react";
4
+
5
+ //#region src/components/scroll-area/scroll-area.d.ts
6
+
7
+ declare function ScrollArea({
8
+ children,
9
+ className,
10
+ ...props
11
+ }: React.ComponentProps<typeof ScrollArea$1.Root>): react_jsx_runtime230.JSX.Element;
12
+ declare function ScrollBar({
13
+ className,
14
+ orientation,
15
+ ...props
16
+ }: React.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime230.JSX.Element;
17
+ //#endregion
18
+ export { ScrollArea, ScrollBar };
19
+ //# sourceMappingURL=scroll-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.d.ts","names":[],"sources":["../../../src/components/scroll-area/scroll-area.tsx"],"sourcesContent":[],"mappings":";;;;;;iBAuBS,UAAA,CA2B8D;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAvBpE,KAAA,CAAM,cAuB8D,CAAA,OAvBxC,YAAA,CAAoB,IAuBoB,CAAA,CAAA,EAvBf,oBAAA,CAAA,GAAA,CAAA,OAuBe;iBAJ9D,SAAA,CAI8D;EAAA,SAAA;EAAA,WAAA;EAAA,GAAA;AAAA,CAAA,EAApE,KAAA,CAAM,cAA8D,CAAA,OAAxC,YAAA,CAAoB,mBAAoB,CAAA,CAAA,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { ScrollArea as ScrollArea$1 } from "radix-ui";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ //#region src/components/scroll-area/scroll-area.tsx
6
+ /**
7
+ * Copyright 2026 ResQ
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing, software
16
+ * distributed under the License is distributed on an "AS IS" BASIS,
17
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ * See the License for the specific language governing permissions and
19
+ * limitations under the License.
20
+ */
21
+ function ScrollArea({ children, className, ...props }) {
22
+ return /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
23
+ className: cn("relative", className),
24
+ "data-slot": "scroll-area",
25
+ ...props,
26
+ children: [
27
+ /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
28
+ className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
29
+ "data-slot": "scroll-area-viewport",
30
+ children
31
+ }),
32
+ /* @__PURE__ */ jsx(ScrollBar, {}),
33
+ /* @__PURE__ */ jsx(ScrollArea$1.Corner, {})
34
+ ]
35
+ });
36
+ }
37
+ function ScrollBar({ className, orientation = "vertical", ...props }) {
38
+ return /* @__PURE__ */ jsx(ScrollArea$1.ScrollAreaScrollbar, {
39
+ className: cn("data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none", className),
40
+ "data-orientation": orientation,
41
+ "data-slot": "scroll-area-scrollbar",
42
+ orientation,
43
+ ...props,
44
+ children: /* @__PURE__ */ jsx(ScrollArea$1.ScrollAreaThumb, {
45
+ className: "rounded-full bg-border relative flex-1",
46
+ "data-slot": "scroll-area-thumb"
47
+ })
48
+ });
49
+ }
50
+ //#endregion
51
+ export { ScrollArea, ScrollBar };
52
+
53
+ //# sourceMappingURL=scroll-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.js","names":["ScrollAreaPrimitive"],"sources":["../../../src/components/scroll-area/scroll-area.tsx"],"sourcesContent":["/**\n * Copyright 2026 ResQ\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n\"use client\";\n\nimport { ScrollArea as ScrollAreaPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../../lib/utils.js\";\n\nfunction ScrollArea({\n\tchildren,\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {\n\treturn (\n\t\t<ScrollAreaPrimitive.Root\n\t\t\tclassName={cn(\"relative\", className)}\n\t\t\tdata-slot=\"scroll-area\"\n\t\t\t{...props}\n\t\t>\n\t\t\t<ScrollAreaPrimitive.Viewport\n\t\t\t\tclassName=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\"\n\t\t\t\tdata-slot=\"scroll-area-viewport\"\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</ScrollAreaPrimitive.Viewport>\n\t\t\t<ScrollBar />\n\t\t\t<ScrollAreaPrimitive.Corner />\n\t\t</ScrollAreaPrimitive.Root>\n\t);\n}\n\nfunction ScrollBar({\n\tclassName,\n\torientation = \"vertical\",\n\t...props\n}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {\n\treturn (\n\t\t<ScrollAreaPrimitive.ScrollAreaScrollbar\n\t\t\tclassName={cn(\n\t\t\t\t\"data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent flex touch-none p-px transition-colors select-none\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tdata-orientation={orientation}\n\t\t\tdata-slot=\"scroll-area-scrollbar\"\n\t\t\torientation={orientation}\n\t\t\t{...props}\n\t\t>\n\t\t\t<ScrollAreaPrimitive.ScrollAreaThumb\n\t\t\t\tclassName=\"rounded-full bg-border relative flex-1\"\n\t\t\t\tdata-slot=\"scroll-area-thumb\"\n\t\t\t/>\n\t\t</ScrollAreaPrimitive.ScrollAreaScrollbar>\n\t);\n}\n\nexport { ScrollArea, ScrollBar };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,SAAS,WAAW,EACnB,UACA,WACA,GAAG,SACsD;AACzD,QACC,qBAACA,aAAoB,MAArB;EACC,WAAW,GAAG,YAAY,UAAU;EACpC,aAAU;EACV,GAAI;YAHL;GAKC,oBAACA,aAAoB,UAArB;IACC,WAAU;IACV,aAAU;IAET;IAC6B,CAAA;GAC/B,oBAAC,WAAD,EAAa,CAAA;GACb,oBAACA,aAAoB,QAArB,EAA8B,CAAA;GACJ;;;AAI7B,SAAS,UAAU,EAClB,WACA,cAAc,YACd,GAAG,SACqE;AACxE,QACC,oBAACA,aAAoB,qBAArB;EACC,WAAW,GACV,sQACA,UACA;EACD,oBAAkB;EAClB,aAAU;EACG;EACb,GAAI;YAEJ,oBAACA,aAAoB,iBAArB;GACC,WAAU;GACV,aAAU;GACT,CAAA;EACuC,CAAA"}
@@ -0,0 +1,2 @@
1
+ import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./select.js";
2
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,2 @@
1
+ import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./select.js";
2
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };