zudoku 0.13.6 → 0.13.7

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 (255) hide show
  1. package/dist/app/main.js +1 -1
  2. package/dist/app/main.js.map +1 -1
  3. package/dist/lib/plugins/api-keys/CreateApiKey.js +1 -1
  4. package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
  5. package/dist/lib/plugins/openapi/Sidecar.js +2 -2
  6. package/dist/lib/plugins/openapi/playground/Playground.js +1 -1
  7. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  8. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  9. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  10. package/dist/lib/ui/Accordion.d.ts +7 -0
  11. package/dist/lib/ui/Accordion.js +14 -0
  12. package/dist/lib/ui/Accordion.js.map +1 -0
  13. package/dist/lib/ui/Alert.d.ts +8 -0
  14. package/dist/lib/ui/Alert.js +23 -0
  15. package/dist/lib/ui/Alert.js.map +1 -0
  16. package/dist/lib/ui/AlertDialog.d.ts +20 -0
  17. package/dist/lib/ui/AlertDialog.js +27 -0
  18. package/dist/lib/ui/AlertDialog.js.map +1 -0
  19. package/dist/lib/ui/AspectRatio.d.ts +3 -0
  20. package/dist/lib/ui/AspectRatio.js +4 -0
  21. package/dist/lib/ui/AspectRatio.js.map +1 -0
  22. package/dist/lib/ui/Badge.d.ts +9 -0
  23. package/dist/lib/ui/Badge.js +21 -0
  24. package/dist/lib/ui/Badge.js.map +1 -0
  25. package/dist/lib/ui/Breadcrumb.d.ts +19 -0
  26. package/dist/lib/ui/Breadcrumb.js +24 -0
  27. package/dist/lib/ui/Breadcrumb.js.map +1 -0
  28. package/dist/lib/ui/Button.d.ts +1 -2
  29. package/dist/lib/ui/Button.js +1 -1
  30. package/dist/lib/ui/Button.js.map +1 -1
  31. package/dist/lib/ui/Carousel.d.ts +18 -0
  32. package/dist/lib/ui/Carousel.js +99 -0
  33. package/dist/lib/ui/Carousel.js.map +1 -0
  34. package/dist/lib/ui/Checkbox.d.ts +4 -0
  35. package/dist/lib/ui/Checkbox.js +9 -0
  36. package/dist/lib/ui/Checkbox.js.map +1 -0
  37. package/dist/lib/ui/Collapsible.d.ts +5 -0
  38. package/dist/lib/ui/Collapsible.js +6 -0
  39. package/dist/lib/ui/Collapsible.js.map +1 -0
  40. package/dist/lib/{components → ui}/Dialog.js +2 -2
  41. package/dist/lib/ui/Dialog.js.map +1 -0
  42. package/dist/lib/ui/Form.d.ts +23 -0
  43. package/dist/lib/ui/Form.js +63 -0
  44. package/dist/lib/ui/Form.js.map +1 -0
  45. package/dist/lib/ui/HoverCard.d.ts +6 -0
  46. package/dist/lib/ui/HoverCard.js +10 -0
  47. package/dist/lib/ui/HoverCard.js.map +1 -0
  48. package/dist/lib/ui/Label.d.ts +5 -0
  49. package/dist/lib/ui/Label.js +10 -0
  50. package/dist/lib/ui/Label.js.map +1 -0
  51. package/dist/lib/ui/Pagination.d.ts +28 -0
  52. package/dist/lib/ui/Pagination.js +24 -0
  53. package/dist/lib/ui/Pagination.js.map +1 -0
  54. package/dist/lib/ui/Popover.d.ts +6 -0
  55. package/dist/lib/ui/Popover.js +10 -0
  56. package/dist/lib/ui/Popover.js.map +1 -0
  57. package/dist/lib/ui/Progress.d.ts +4 -0
  58. package/dist/lib/ui/Progress.js +8 -0
  59. package/dist/lib/ui/Progress.js.map +1 -0
  60. package/dist/lib/ui/RadioGroup.d.ts +5 -0
  61. package/dist/lib/ui/RadioGroup.js +15 -0
  62. package/dist/lib/ui/RadioGroup.js.map +1 -0
  63. package/dist/lib/ui/ScrollArea.d.ts +5 -0
  64. package/dist/lib/ui/ScrollArea.js +12 -0
  65. package/dist/lib/ui/ScrollArea.js.map +1 -0
  66. package/dist/lib/ui/Select.js.map +1 -0
  67. package/dist/lib/ui/Skeleton.d.ts +2 -0
  68. package/dist/lib/ui/Skeleton.js +7 -0
  69. package/dist/lib/ui/Skeleton.js.map +1 -0
  70. package/dist/lib/ui/Slider.d.ts +4 -0
  71. package/dist/lib/ui/Slider.js +8 -0
  72. package/dist/lib/ui/Slider.js.map +1 -0
  73. package/dist/lib/ui/Switch.d.ts +4 -0
  74. package/dist/lib/ui/Switch.js +8 -0
  75. package/dist/lib/ui/Switch.js.map +1 -0
  76. package/dist/lib/ui/Textarea.d.ts +4 -0
  77. package/dist/lib/ui/Textarea.js +9 -0
  78. package/dist/lib/ui/Textarea.js.map +1 -0
  79. package/dist/lib/ui/Toggle.d.ts +12 -0
  80. package/dist/lib/ui/Toggle.js +26 -0
  81. package/dist/lib/ui/Toggle.js.map +1 -0
  82. package/dist/lib/ui/ToggleGroup.d.ts +12 -0
  83. package/dist/lib/ui/ToggleGroup.js +21 -0
  84. package/dist/lib/ui/ToggleGroup.js.map +1 -0
  85. package/dist/lib/ui/Tooltip.d.ts +7 -0
  86. package/dist/lib/ui/Tooltip.js +11 -0
  87. package/dist/lib/ui/Tooltip.js.map +1 -0
  88. package/dist/vite/plugin-component.js +17 -7
  89. package/dist/vite/plugin-component.js.map +1 -1
  90. package/lib/{AuthenticationPlugin-tBvLKsFg.js → AuthenticationPlugin-Bpdes0cJ.js} +2 -2
  91. package/lib/{AuthenticationPlugin-tBvLKsFg.js.map → AuthenticationPlugin-Bpdes0cJ.js.map} +1 -1
  92. package/lib/{CategoryHeading-D2WS6sRI.js → CategoryHeading-Bb9dqxD3.js} +4 -4
  93. package/lib/{CategoryHeading-D2WS6sRI.js.map → CategoryHeading-Bb9dqxD3.js.map} +1 -1
  94. package/lib/{DeveloperHint-CRiZjqd2.js → DeveloperHint-DHdLXGHA.js} +2 -2
  95. package/lib/{DeveloperHint-CRiZjqd2.js.map → DeveloperHint-DHdLXGHA.js.map} +1 -1
  96. package/lib/{Markdown-DM4zv3MA.js → Markdown-1BO9EA_X.js} +4265 -6650
  97. package/lib/Markdown-1BO9EA_X.js.map +1 -0
  98. package/lib/{MdxPage-tWI_P8wP.js → MdxPage-BEOcOICU.js} +26 -25
  99. package/lib/{MdxPage-tWI_P8wP.js.map → MdxPage-BEOcOICU.js.map} +1 -1
  100. package/lib/{OperationList-Cd3lue0b.js → OperationList-Cea2Yt8e.js} +131 -127
  101. package/lib/{OperationList-Cd3lue0b.js.map → OperationList-Cea2Yt8e.js.map} +1 -1
  102. package/lib/{Route-DI0Y0pIV.js → Route-BHT-onwf.js} +2 -2
  103. package/lib/{Route-DI0Y0pIV.js.map → Route-BHT-onwf.js.map} +1 -1
  104. package/lib/Select-m1aXZGAP.js +223 -0
  105. package/lib/Select-m1aXZGAP.js.map +1 -0
  106. package/lib/{SlotletProvider-CBqY8mp6.js → SlotletProvider-CPfsBw39.js} +4 -4
  107. package/lib/{SlotletProvider-CBqY8mp6.js.map → SlotletProvider-CPfsBw39.js.map} +1 -1
  108. package/lib/Spinner-C6zroowC.js +40 -0
  109. package/lib/Spinner-C6zroowC.js.map +1 -0
  110. package/lib/StaggeredRender-DDHSzQKE.js +17 -0
  111. package/lib/StaggeredRender-DDHSzQKE.js.map +1 -0
  112. package/lib/{ZudokuContext-DEoP3GGJ.js → ZudokuContext-D1D8Anlj.js} +19 -19
  113. package/lib/{ZudokuContext-DEoP3GGJ.js.map → ZudokuContext-D1D8Anlj.js.map} +1 -1
  114. package/lib/cn-BmFQLtkS.js +2279 -0
  115. package/lib/cn-BmFQLtkS.js.map +1 -0
  116. package/lib/hook-JSRuxV1P.js +229 -0
  117. package/lib/hook-JSRuxV1P.js.map +1 -0
  118. package/lib/index-BuAyrJe3.js +46 -0
  119. package/lib/index-BuAyrJe3.js.map +1 -0
  120. package/lib/{index-Bs9roz8y.js → index-Cj-F-4ME.js} +1203 -1428
  121. package/lib/index-Cj-F-4ME.js.map +1 -0
  122. package/lib/index.esm-C5mr_sKO.js +1193 -0
  123. package/lib/index.esm-C5mr_sKO.js.map +1 -0
  124. package/lib/ui/Accordion.js +47 -0
  125. package/lib/ui/Accordion.js.map +1 -0
  126. package/lib/ui/Alert.js +51 -0
  127. package/lib/ui/Alert.js.map +1 -0
  128. package/lib/ui/AlertDialog.js +114 -0
  129. package/lib/ui/AlertDialog.js.map +1 -0
  130. package/lib/ui/AspectRatio.js +6 -0
  131. package/lib/ui/AspectRatio.js.map +1 -0
  132. package/lib/ui/Badge.js +27 -0
  133. package/lib/ui/Badge.js.map +1 -0
  134. package/lib/ui/Breadcrumb.js +94 -0
  135. package/lib/ui/Breadcrumb.js.map +1 -0
  136. package/lib/ui/Button.js +49 -0
  137. package/lib/ui/Button.js.map +1 -0
  138. package/lib/ui/Callout.js +77 -0
  139. package/lib/ui/Callout.js.map +1 -0
  140. package/lib/ui/Card.js +62 -0
  141. package/lib/ui/Card.js.map +1 -0
  142. package/lib/ui/Carousel.js +1410 -0
  143. package/lib/ui/Carousel.js.map +1 -0
  144. package/lib/ui/Checkbox.js +28 -0
  145. package/lib/ui/Checkbox.js.map +1 -0
  146. package/lib/ui/Collapsible.js +8 -0
  147. package/lib/ui/Collapsible.js.map +1 -0
  148. package/lib/ui/Dialog.js +101 -0
  149. package/lib/ui/Dialog.js.map +1 -0
  150. package/lib/ui/Drawer.js +1153 -0
  151. package/lib/ui/Drawer.js.map +1 -0
  152. package/lib/ui/DropdownMenu.js +145 -0
  153. package/lib/ui/DropdownMenu.js.map +1 -0
  154. package/lib/ui/Form.js +95 -0
  155. package/lib/ui/Form.js.map +1 -0
  156. package/lib/ui/HoverCard.js +24 -0
  157. package/lib/ui/HoverCard.js.map +1 -0
  158. package/lib/ui/Input.js +22 -0
  159. package/lib/ui/Input.js.map +1 -0
  160. package/lib/ui/Label.js +20 -0
  161. package/lib/ui/Label.js.map +1 -0
  162. package/lib/ui/Note.js +51 -0
  163. package/lib/ui/Note.js.map +1 -0
  164. package/lib/ui/Pagination.js +106 -0
  165. package/lib/ui/Pagination.js.map +1 -0
  166. package/lib/ui/Popover.js +24 -0
  167. package/lib/ui/Popover.js.map +1 -0
  168. package/lib/ui/Progress.js +27 -0
  169. package/lib/ui/Progress.js.map +1 -0
  170. package/lib/ui/RadioGroup.js +32 -0
  171. package/lib/ui/RadioGroup.js.map +1 -0
  172. package/lib/ui/ScrollArea.js +39 -0
  173. package/lib/ui/ScrollArea.js.map +1 -0
  174. package/lib/ui/Select.js +122 -0
  175. package/lib/ui/Select.js.map +1 -0
  176. package/lib/ui/Skeleton.js +18 -0
  177. package/lib/ui/Skeleton.js.map +1 -0
  178. package/lib/ui/Slider.js +24 -0
  179. package/lib/ui/Slider.js.map +1 -0
  180. package/lib/ui/Switch.js +28 -0
  181. package/lib/ui/Switch.js.map +1 -0
  182. package/lib/ui/Tabs.js +47 -0
  183. package/lib/ui/Tabs.js.map +1 -0
  184. package/lib/ui/Textarea.js +21 -0
  185. package/lib/ui/Textarea.js.map +1 -0
  186. package/lib/ui/Toggle.js +38 -0
  187. package/lib/ui/Toggle.js.map +1 -0
  188. package/lib/ui/ToggleGroup.js +42 -0
  189. package/lib/ui/ToggleGroup.js.map +1 -0
  190. package/lib/ui/Tooltip.js +24 -0
  191. package/lib/ui/Tooltip.js.map +1 -0
  192. package/lib/{utils-G5XSiZc9.js → utils-B2yoT99j.js} +61 -61
  193. package/lib/{utils-G5XSiZc9.js.map → utils-B2yoT99j.js.map} +1 -1
  194. package/lib/zudoku.auth-clerk.js +1 -1
  195. package/lib/zudoku.auth-openid.js +2 -2
  196. package/lib/zudoku.components.js +847 -2844
  197. package/lib/zudoku.components.js.map +1 -1
  198. package/lib/zudoku.plugin-api-keys.js +22 -19
  199. package/lib/zudoku.plugin-api-keys.js.map +1 -1
  200. package/lib/zudoku.plugin-custom-pages.js +14 -13
  201. package/lib/zudoku.plugin-custom-pages.js.map +1 -1
  202. package/lib/zudoku.plugin-markdown.js +1 -1
  203. package/lib/zudoku.plugin-openapi.js +6 -5
  204. package/lib/zudoku.plugin-openapi.js.map +1 -1
  205. package/package.json +28 -6
  206. package/src/app/main.tsx +1 -1
  207. package/src/lib/plugins/api-keys/CreateApiKey.tsx +2 -2
  208. package/src/lib/plugins/openapi/Sidecar.tsx +2 -2
  209. package/src/lib/plugins/openapi/playground/Playground.tsx +3 -3
  210. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +1 -1
  211. package/src/lib/ui/Accordion.tsx +56 -0
  212. package/src/lib/ui/Alert.tsx +59 -0
  213. package/src/lib/ui/AlertDialog.tsx +139 -0
  214. package/src/lib/ui/AspectRatio.tsx +5 -0
  215. package/src/lib/ui/Badge.tsx +36 -0
  216. package/src/lib/ui/Breadcrumb.tsx +115 -0
  217. package/src/lib/ui/Button.tsx +1 -1
  218. package/src/lib/ui/Carousel.tsx +260 -0
  219. package/src/lib/ui/Checkbox.tsx +28 -0
  220. package/src/lib/ui/Collapsible.tsx +9 -0
  221. package/src/lib/{components → ui}/Dialog.tsx +4 -3
  222. package/src/lib/ui/Form.tsx +177 -0
  223. package/src/lib/ui/HoverCard.tsx +27 -0
  224. package/src/lib/ui/Label.tsx +24 -0
  225. package/src/lib/ui/Pagination.tsx +117 -0
  226. package/src/lib/ui/Popover.tsx +29 -0
  227. package/src/lib/ui/Progress.tsx +26 -0
  228. package/src/lib/ui/RadioGroup.tsx +42 -0
  229. package/src/lib/ui/ScrollArea.tsx +46 -0
  230. package/src/lib/ui/Skeleton.tsx +15 -0
  231. package/src/lib/ui/Slider.tsx +26 -0
  232. package/src/lib/ui/Switch.tsx +27 -0
  233. package/src/lib/ui/Textarea.tsx +23 -0
  234. package/src/lib/ui/Toggle.tsx +43 -0
  235. package/src/lib/ui/ToggleGroup.tsx +59 -0
  236. package/src/lib/ui/Tooltip.tsx +28 -0
  237. package/dist/internal.d.ts +0 -1
  238. package/dist/internal.js +0 -2
  239. package/dist/internal.js.map +0 -1
  240. package/dist/lib/components/Dialog.js.map +0 -1
  241. package/dist/lib/components/Select.js.map +0 -1
  242. package/lib/Input-CO-1DOZa.js +0 -2229
  243. package/lib/Input-CO-1DOZa.js.map +0 -1
  244. package/lib/Markdown-DM4zv3MA.js.map +0 -1
  245. package/lib/Spinner-DFQhPMBl.js +0 -505
  246. package/lib/Spinner-DFQhPMBl.js.map +0 -1
  247. package/lib/index-Bs9roz8y.js.map +0 -1
  248. package/lib/index-CBr6BM_4.js +0 -2867
  249. package/lib/index-CBr6BM_4.js.map +0 -1
  250. package/lib/index-UUT9q9f9.js +0 -124
  251. package/lib/index-UUT9q9f9.js.map +0 -1
  252. /package/dist/lib/{components → ui}/Dialog.d.ts +0 -0
  253. /package/dist/lib/{components → ui}/Select.d.ts +0 -0
  254. /package/dist/lib/{components → ui}/Select.js +0 -0
  255. /package/src/lib/{components → ui}/Select.tsx +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HoverCard.js","sources":["../../src/lib/ui/HoverCard.tsx"],"sourcesContent":["import * as HoverCardPrimitive from \"@radix-ui/react-hover-card\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst HoverCard = HoverCardPrimitive.Root;\n\nconst HoverCardTrigger = HoverCardPrimitive.Trigger;\n\nconst HoverCardContent = React.forwardRef<\n React.ElementRef<typeof HoverCardPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof HoverCardPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n));\nHoverCardContent.displayName = HoverCardPrimitive.Content.displayName;\n\nexport { HoverCard, HoverCardContent, HoverCardTrigger };\n"],"names":["HoverCard","HoverCardPrimitive","HoverCardTrigger","HoverCardContent","React","className","align","sideOffset","props","ref","jsx","cn"],"mappings":";;;;AAKA,MAAMA,IAAYC,EAAmB,MAE/BC,IAAmBD,EAAmB,SAEtCE,IAAmBC,EAAM,WAG7B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,KAASC,MAC5DC,gBAAAA,EAAA;AAAA,EAACT,EAAmB;AAAA,EAAnB;AAAA,IACC,KAAAQ;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGG;AAAA,EAAA;AACN,CACD;AACDL,EAAiB,cAAcF,EAAmB,QAAQ;"}
@@ -0,0 +1,22 @@
1
+ import { j as i } from "../jsx-runtime-B6kdoens.js";
2
+ import * as s from "react";
3
+ import { c as n } from "../cn-BmFQLtkS.js";
4
+ const a = s.forwardRef(
5
+ ({ className: e, type: r, ...o }, t) => /* @__PURE__ */ i.jsx(
6
+ "input",
7
+ {
8
+ type: r,
9
+ className: n(
10
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
11
+ e
12
+ ),
13
+ ref: t,
14
+ ...o
15
+ }
16
+ )
17
+ );
18
+ a.displayName = "Input";
19
+ export {
20
+ a as Input
21
+ };
22
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.js","sources":["../../src/lib/ui/Input.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, ...props }, ref) => {\n return (\n <input\n type={type}\n className={cn(\n \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n ref={ref}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n"],"names":["Input","React","className","type","props","ref","jsx","cn"],"mappings":";;;AAMA,MAAMA,IAAQC,EAAM;AAAA,EAClB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5BC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWI;AAAA,QACT;AAAA,QACAL;AAAA,MACF;AAAA,MACA,KAAAG;AAAA,MACC,GAAGD;AAAA,IAAA;AAAA,EAAA;AAIZ;AACAJ,EAAM,cAAc;"}
@@ -0,0 +1,20 @@
1
+ import { j as t } from "../jsx-runtime-B6kdoens.js";
2
+ import * as o from "@radix-ui/react-label";
3
+ import { c as s } from "../index-BuAyrJe3.js";
4
+ import * as m from "react";
5
+ import { c as i } from "../cn-BmFQLtkS.js";
6
+ const l = s(
7
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8
+ ), p = m.forwardRef(({ className: a, ...e }, r) => /* @__PURE__ */ t.jsx(
9
+ o.Root,
10
+ {
11
+ ref: r,
12
+ className: i(l(), a),
13
+ ...e
14
+ }
15
+ ));
16
+ p.displayName = o.Root.displayName;
17
+ export {
18
+ p as Label
19
+ };
20
+ //# sourceMappingURL=Label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Label.js","sources":["../../src/lib/ui/Label.tsx"],"sourcesContent":["import * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst labelVariants = cva(\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nconst Label = React.forwardRef<\n React.ElementRef<typeof LabelPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n <LabelPrimitive.Root\n ref={ref}\n className={cn(labelVariants(), className)}\n {...props}\n />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"],"names":["labelVariants","cva","Label","React","className","props","ref","jsx","LabelPrimitive","cn"],"mappings":";;;;;AAMA,MAAMA,IAAgBC;AAAA,EACpB;AACF,GAEMC,IAAQC,EAAM,WAIlB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACC,EAAe;AAAA,EAAf;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAGT,EAAc,GAAGI,CAAS;AAAA,IACvC,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAM,cAAcM,EAAe,KAAK;"}
package/lib/ui/Note.js ADDED
@@ -0,0 +1,51 @@
1
+ import { j as a } from "../jsx-runtime-B6kdoens.js";
2
+ import { c as d } from "../index-BuAyrJe3.js";
3
+ import * as s from "react";
4
+ import { c as o } from "../cn-BmFQLtkS.js";
5
+ const l = d(
6
+ "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
7
+ {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-background text-foreground",
11
+ destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
12
+ }
13
+ },
14
+ defaultVariants: {
15
+ variant: "default"
16
+ }
17
+ }
18
+ ), n = s.forwardRef(({ className: t, variant: e, ...r }, i) => /* @__PURE__ */ a.jsx(
19
+ "div",
20
+ {
21
+ ref: i,
22
+ role: "alert",
23
+ className: o(l({ variant: e }), t),
24
+ ...r
25
+ }
26
+ ));
27
+ n.displayName = "Alert";
28
+ const c = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a.jsx(
29
+ "h5",
30
+ {
31
+ ref: r,
32
+ className: o("mb-1 font-medium leading-none tracking-tight", t),
33
+ ...e
34
+ }
35
+ ));
36
+ c.displayName = "AlertTitle";
37
+ const v = s.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a.jsx(
38
+ "div",
39
+ {
40
+ ref: r,
41
+ className: o("text-sm [&_p]:leading-relaxed", t),
42
+ ...e
43
+ }
44
+ ));
45
+ v.displayName = "AlertDescription";
46
+ export {
47
+ n as Note,
48
+ v as NoteDescription,
49
+ c as NoteTitle
50
+ };
51
+ //# sourceMappingURL=Note.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Note.js","sources":["../../src/lib/ui/Note.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nconst noteVariants = cva(\n \"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-background text-foreground\",\n destructive:\n \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n },\n);\n\nconst Note = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof noteVariants>\n>(({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(noteVariants({ variant }), className)}\n {...props}\n />\n));\nNote.displayName = \"Alert\";\n\nconst NoteTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n <h5\n ref={ref}\n className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n {...props}\n />\n));\nNoteTitle.displayName = \"AlertTitle\";\n\nconst NoteDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n {...props}\n />\n));\nNoteDescription.displayName = \"AlertDescription\";\n\nexport { Note, NoteDescription, NoteTitle };\n"],"names":["noteVariants","cva","Note","React","className","variant","props","ref","jsx","cn","NoteTitle","NoteDescription"],"mappings":";;;;AAIA,MAAMA,IAAeC;AAAA,EACnB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF,GAEMC,IAAOC,EAAM,WAGjB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,GAAGC,KAASC,MACnCC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,MAAK;AAAA,IACL,WAAWE,EAAGT,EAAa,EAAE,SAAAK,EAAS,CAAA,GAAGD,CAAS;AAAA,IACjD,GAAGE;AAAA,EAAA;AACN,CACD;AACDJ,EAAK,cAAc;AAEb,MAAAQ,IAAYP,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,gDAAgDL,CAAS;AAAA,IACtE,GAAGE;AAAA,EAAA;AACN,CACD;AACDI,EAAU,cAAc;AAElB,MAAAC,IAAkBR,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGE,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,iCAAiCL,CAAS;AAAA,IACvD,GAAGE;AAAA,EAAA;AACN,CACD;AACDK,EAAgB,cAAc;"}
@@ -0,0 +1,106 @@
1
+ import { j as s } from "../jsx-runtime-B6kdoens.js";
2
+ import { ChevronLeft as r, ChevronRight as m, MoreHorizontal as c } from "lucide-react";
3
+ import * as o from "react";
4
+ import { c as e } from "../cn-BmFQLtkS.js";
5
+ import { buttonVariants as p } from "./Button.js";
6
+ const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
7
+ "nav",
8
+ {
9
+ role: "navigation",
10
+ "aria-label": "pagination",
11
+ className: e("mx-auto flex w-full justify-center", i),
12
+ ...a
13
+ }
14
+ );
15
+ g.displayName = "Pagination";
16
+ const x = o.forwardRef(({ className: i, ...a }, n) => /* @__PURE__ */ s.jsx(
17
+ "ul",
18
+ {
19
+ ref: n,
20
+ className: e("flex flex-row items-center gap-1", i),
21
+ ...a
22
+ }
23
+ ));
24
+ x.displayName = "PaginationContent";
25
+ const N = o.forwardRef(({ className: i, ...a }, n) => /* @__PURE__ */ s.jsx("li", { ref: n, className: e("", i), ...a }));
26
+ N.displayName = "PaginationItem";
27
+ const t = ({
28
+ className: i,
29
+ isActive: a,
30
+ size: n = "icon",
31
+ ...l
32
+ }) => /* @__PURE__ */ s.jsx(
33
+ "a",
34
+ {
35
+ "aria-current": a ? "page" : void 0,
36
+ className: e(
37
+ p({
38
+ variant: a ? "outline" : "ghost",
39
+ size: n
40
+ }),
41
+ i
42
+ ),
43
+ ...l
44
+ }
45
+ );
46
+ t.displayName = "PaginationLink";
47
+ const d = ({
48
+ className: i,
49
+ ...a
50
+ }) => /* @__PURE__ */ s.jsxs(
51
+ t,
52
+ {
53
+ "aria-label": "Go to previous page",
54
+ size: "default",
55
+ className: e("gap-1 pl-2.5", i),
56
+ ...a,
57
+ children: [
58
+ /* @__PURE__ */ s.jsx(r, { className: "h-4 w-4" }),
59
+ /* @__PURE__ */ s.jsx("span", { children: "Previous" })
60
+ ]
61
+ }
62
+ );
63
+ d.displayName = "PaginationPrevious";
64
+ const f = ({
65
+ className: i,
66
+ ...a
67
+ }) => /* @__PURE__ */ s.jsxs(
68
+ t,
69
+ {
70
+ "aria-label": "Go to next page",
71
+ size: "default",
72
+ className: e("gap-1 pr-2.5", i),
73
+ ...a,
74
+ children: [
75
+ /* @__PURE__ */ s.jsx("span", { children: "Next" }),
76
+ /* @__PURE__ */ s.jsx(m, { className: "h-4 w-4" })
77
+ ]
78
+ }
79
+ );
80
+ f.displayName = "PaginationNext";
81
+ const j = ({
82
+ className: i,
83
+ ...a
84
+ }) => /* @__PURE__ */ s.jsxs(
85
+ "span",
86
+ {
87
+ "aria-hidden": !0,
88
+ className: e("flex h-9 w-9 items-center justify-center", i),
89
+ ...a,
90
+ children: [
91
+ /* @__PURE__ */ s.jsx(c, { className: "h-4 w-4" }),
92
+ /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "More pages" })
93
+ ]
94
+ }
95
+ );
96
+ j.displayName = "PaginationEllipsis";
97
+ export {
98
+ g as Pagination,
99
+ x as PaginationContent,
100
+ j as PaginationEllipsis,
101
+ N as PaginationItem,
102
+ t as PaginationLink,
103
+ f as PaginationNext,
104
+ d as PaginationPrevious
105
+ };
106
+ //# sourceMappingURL=Pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.js","sources":["../../src/lib/ui/Pagination.tsx"],"sourcesContent":["import { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\nimport { ButtonProps, buttonVariants } from \"./Button.js\";\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n);\nPagination.displayName = \"Pagination\";\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n));\nPaginationContent.displayName = \"PaginationContent\";\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n));\nPaginationItem.displayName = \"PaginationItem\";\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">;\n\nconst PaginationLink = ({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className,\n )}\n {...props}\n />\n);\nPaginationLink.displayName = \"PaginationLink\";\n\nconst PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = \"PaginationPrevious\";\n\nconst PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = \"PaginationNext\";\n\nconst PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n"],"names":["Pagination","className","props","jsx","cn","PaginationContent","React","ref","PaginationItem","PaginationLink","isActive","size","buttonVariants","PaginationPrevious","jsxs","ChevronLeft","PaginationNext","ChevronRight","PaginationEllipsis","MoreHorizontal"],"mappings":";;;;;AAMA,MAAMA,IAAa,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAClC,MAAAC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,IAC5D,GAAGC;AAAA,EAAA;AACN;AAEFF,EAAW,cAAc;AAEnB,MAAAK,IAAoBC,EAAM,WAG9B,CAAC,EAAE,WAAAL,GAAW,GAAGC,EAAM,GAAGK,MAC1BJ,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,KAAAI;AAAA,IACA,WAAWH,EAAG,oCAAoCH,CAAS;AAAA,IAC1D,GAAGC;AAAA,EAAA;AACN,CACD;AACDG,EAAkB,cAAc;AAE1B,MAAAG,IAAiBF,EAAM,WAG3B,CAAC,EAAE,WAAAL,GAAW,GAAGC,KAASK,4BACzB,MAAG,EAAA,KAAAA,GAAU,WAAWH,EAAG,IAAIH,CAAS,GAAI,GAAGC,GAAO,CACxD;AACDM,EAAe,cAAc;AAO7B,MAAMC,IAAiB,CAAC;AAAA,EACtB,WAAAR;AAAA,EACA,UAAAS;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGT;AACL,MACEC,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAcO,IAAW,SAAS;AAAA,IAClC,WAAWN;AAAA,MACTQ,EAAe;AAAA,QACb,SAASF,IAAW,YAAY;AAAA,QAChC,MAAAC;AAAA,MAAA,CACD;AAAA,MACDV;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN;AAEFO,EAAe,cAAc;AAE7B,MAAMI,IAAqB,CAAC;AAAA,EAC1B,WAAAZ;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAA;AAAA,EAACL;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWL,EAAG,gBAAgBH,CAAS;AAAA,IACtC,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAACC,gBAAAA,EAAAA,IAAAY,GAAA,EAAY,WAAU,UAAU,CAAA;AAAA,MACjCZ,gBAAAA,EAAAA,IAAC,UAAK,UAAQ,WAAA,CAAA;AAAA,IAAA;AAAA,EAAA;AAChB;AAEFU,EAAmB,cAAc;AAEjC,MAAMG,IAAiB,CAAC;AAAA,EACtB,WAAAf;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAA;AAAA,EAACL;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWL,EAAG,gBAAgBH,CAAS;AAAA,IACtC,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAAAC,gBAAAA,EAAAA,IAAC,UAAK,UAAI,OAAA,CAAA;AAAA,MACVA,gBAAAA,EAAAA,IAACc,GAAa,EAAA,WAAU,UAAU,CAAA;AAAA,IAAA;AAAA,EAAA;AACpC;AAEFD,EAAe,cAAc;AAE7B,MAAME,IAAqB,CAAC;AAAA,EAC1B,WAAAjB;AAAA,EACA,GAAGC;AACL,MACEY,gBAAAA,EAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAW;AAAA,IACX,WAAWV,EAAG,4CAA4CH,CAAS;AAAA,IAClE,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAACC,gBAAAA,EAAAA,IAAAgB,GAAA,EAAe,WAAU,UAAU,CAAA;AAAA,MACnChB,gBAAAA,EAAA,IAAA,QAAA,EAAK,WAAU,WAAU,UAAU,cAAA;AAAA,IAAA;AAAA,EAAA;AACtC;AAEFe,EAAmB,cAAc;"}
@@ -0,0 +1,24 @@
1
+ import { j as t } from "../jsx-runtime-B6kdoens.js";
2
+ import * as o from "@radix-ui/react-popover";
3
+ import * as s from "react";
4
+ import { c as n } from "../cn-BmFQLtkS.js";
5
+ const l = o.Root, c = o.Trigger, m = s.forwardRef(({ className: e, align: a = "center", sideOffset: r = 4, ...d }, i) => /* @__PURE__ */ t.jsx(o.Portal, { children: /* @__PURE__ */ t.jsx(
6
+ o.Content,
7
+ {
8
+ ref: i,
9
+ align: a,
10
+ sideOffset: r,
11
+ className: n(
12
+ "z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
13
+ e
14
+ ),
15
+ ...d
16
+ }
17
+ ) }));
18
+ m.displayName = o.Content.displayName;
19
+ export {
20
+ l as Popover,
21
+ m as PopoverContent,
22
+ c as PopoverTrigger
23
+ };
24
+ //# sourceMappingURL=Popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popover.js","sources":["../../src/lib/ui/Popover.tsx"],"sourcesContent":["import * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverContent, PopoverTrigger };\n"],"names":["Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","React","className","align","sideOffset","props","ref","jsx","cn"],"mappings":";;;;AAKA,MAAMA,IAAUC,EAAiB,MAE3BC,IAAiBD,EAAiB,SAElCE,IAAiBC,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,OAAAC,IAAQ,UAAU,YAAAC,IAAa,GAAG,GAAGC,EAAM,GAAGC,MAC3DC,gBAAAA,EAAAA,IAAAT,EAAiB,QAAjB,EACC,UAAAS,gBAAAA,EAAA;AAAA,EAACT,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAQ;AAAA,IACA,OAAAH;AAAA,IACA,YAAAC;AAAA,IACA,WAAWI;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGG;AAAA,EAAA;AACN,EAAA,CACF,CACD;AACDL,EAAe,cAAcF,EAAiB,QAAQ;"}
@@ -0,0 +1,27 @@
1
+ import { j as o } from "../jsx-runtime-B6kdoens.js";
2
+ import * as r from "@radix-ui/react-progress";
3
+ import * as t from "react";
4
+ import { c as i } from "../cn-BmFQLtkS.js";
5
+ const m = t.forwardRef(({ className: s, value: a, ...e }, l) => /* @__PURE__ */ o.jsx(
6
+ r.Root,
7
+ {
8
+ ref: l,
9
+ className: i(
10
+ "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
11
+ s
12
+ ),
13
+ ...e,
14
+ children: /* @__PURE__ */ o.jsx(
15
+ r.Indicator,
16
+ {
17
+ className: "h-full w-full flex-1 bg-primary transition-all",
18
+ style: { transform: `translateX(-${100 - (a || 0)}%)` }
19
+ }
20
+ )
21
+ }
22
+ ));
23
+ m.displayName = r.Root.displayName;
24
+ export {
25
+ m as Progress
26
+ };
27
+ //# sourceMappingURL=Progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Progress.js","sources":["../../src/lib/ui/Progress.tsx"],"sourcesContent":["import * as ProgressPrimitive from \"@radix-ui/react-progress\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst Progress = React.forwardRef<\n React.ElementRef<typeof ProgressPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>\n>(({ className, value, ...props }, ref) => (\n <ProgressPrimitive.Root\n ref={ref}\n className={cn(\n \"relative h-4 w-full overflow-hidden rounded-full bg-secondary\",\n className,\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n className=\"h-full w-full flex-1 bg-primary transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n));\nProgress.displayName = ProgressPrimitive.Root.displayName;\n\nexport { Progress };\n"],"names":["Progress","React","className","value","props","ref","jsx","ProgressPrimitive","cn"],"mappings":";;;;AAKM,MAAAA,IAAWC,EAAM,WAGrB,CAAC,EAAE,WAAAC,GAAW,OAAAC,GAAO,GAAGC,KAASC,MACjCC,gBAAAA,EAAA;AAAA,EAACC,EAAkB;AAAA,EAAlB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAN;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAAAE,gBAAAA,EAAA;AAAA,MAACC,EAAkB;AAAA,MAAlB;AAAA,QACC,WAAU;AAAA,QACV,OAAO,EAAE,WAAW,eAAe,OAAOJ,KAAS,EAAE,KAAK;AAAA,MAAA;AAAA,IAC5D;AAAA,EAAA;AACF,CACD;AACDH,EAAS,cAAcO,EAAkB,KAAK;"}
@@ -0,0 +1,32 @@
1
+ import { j as e } from "../jsx-runtime-B6kdoens.js";
2
+ import * as r from "@radix-ui/react-radio-group";
3
+ import { Circle as m } from "lucide-react";
4
+ import * as a from "react";
5
+ import { c as t } from "../cn-BmFQLtkS.js";
6
+ const c = a.forwardRef(({ className: o, ...i }, s) => /* @__PURE__ */ e.jsx(
7
+ r.Root,
8
+ {
9
+ className: t("grid gap-2", o),
10
+ ...i,
11
+ ref: s
12
+ }
13
+ ));
14
+ c.displayName = r.Root.displayName;
15
+ const l = a.forwardRef(({ className: o, ...i }, s) => /* @__PURE__ */ e.jsx(
16
+ r.Item,
17
+ {
18
+ ref: s,
19
+ className: t(
20
+ "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
21
+ o
22
+ ),
23
+ ...i,
24
+ children: /* @__PURE__ */ e.jsx(r.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ e.jsx(m, { className: "h-2.5 w-2.5 fill-current text-current" }) })
25
+ }
26
+ ));
27
+ l.displayName = r.Item.displayName;
28
+ export {
29
+ c as RadioGroup,
30
+ l as RadioGroupItem
31
+ };
32
+ //# sourceMappingURL=RadioGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.js","sources":["../../src/lib/ui/RadioGroup.tsx"],"sourcesContent":["import * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport { Circle } from \"lucide-react\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Root\n className={cn(\"grid gap-2\", className)}\n {...props}\n ref={ref}\n />\n );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n \"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <Circle className=\"h-2.5 w-2.5 fill-current text-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"],"names":["RadioGroup","React","className","props","ref","jsx","RadioGroupPrimitive","cn","RadioGroupItem","Circle"],"mappings":";;;;;AAMM,MAAAA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAExBC,gBAAAA,EAAA;AAAA,EAACC,EAAoB;AAAA,EAApB;AAAA,IACC,WAAWC,EAAG,cAAcL,CAAS;AAAA,IACpC,GAAGC;AAAA,IACJ,KAAAC;AAAA,EAAA;AAAA,CAGL;AACDJ,EAAW,cAAcM,EAAoB,KAAK;AAE5C,MAAAE,IAAiBP,EAAM,WAG3B,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAExBC,gBAAAA,EAAA;AAAA,EAACC,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAAE,gBAAAA,EAAAA,IAACC,EAAoB,WAApB,EAA8B,WAAU,oCACvC,UAACD,gBAAAA,EAAAA,IAAAI,GAAA,EAAO,WAAU,wCAAA,CAAwC,EAC5D,CAAA;AAAA,EAAA;AAAA,CAGL;AACDD,EAAe,cAAcF,EAAoB,KAAK;"}
@@ -0,0 +1,39 @@
1
+ import { j as l } from "../jsx-runtime-B6kdoens.js";
2
+ import * as r from "@radix-ui/react-scroll-area";
3
+ import * as t from "react";
4
+ import { c } from "../cn-BmFQLtkS.js";
5
+ const d = t.forwardRef(({ className: o, children: e, ...a }, s) => /* @__PURE__ */ l.jsxs(
6
+ r.Root,
7
+ {
8
+ ref: s,
9
+ className: c("relative overflow-hidden", o),
10
+ ...a,
11
+ children: [
12
+ /* @__PURE__ */ l.jsx(r.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
13
+ /* @__PURE__ */ l.jsx(i, {}),
14
+ /* @__PURE__ */ l.jsx(r.Corner, {})
15
+ ]
16
+ }
17
+ ));
18
+ d.displayName = r.Root.displayName;
19
+ const i = t.forwardRef(({ className: o, orientation: e = "vertical", ...a }, s) => /* @__PURE__ */ l.jsx(
20
+ r.ScrollAreaScrollbar,
21
+ {
22
+ ref: s,
23
+ orientation: e,
24
+ className: c(
25
+ "flex touch-none select-none transition-colors",
26
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
27
+ e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
28
+ o
29
+ ),
30
+ ...a,
31
+ children: /* @__PURE__ */ l.jsx(r.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
32
+ }
33
+ ));
34
+ i.displayName = r.ScrollAreaScrollbar.displayName;
35
+ export {
36
+ d as ScrollArea,
37
+ i as ScrollBar
38
+ };
39
+ //# sourceMappingURL=ScrollArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScrollArea.js","sources":["../../src/lib/ui/ScrollArea.tsx"],"sourcesContent":["import * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>\n>(({ className, children, ...props }, ref) => (\n <ScrollAreaPrimitive.Root\n ref={ref}\n className={cn(\"relative overflow-hidden\", className)}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport className=\"h-full w-full rounded-[inherit]\">\n {children}\n </ScrollAreaPrimitive.Viewport>\n <ScrollBar />\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n));\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,\n React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n <ScrollAreaPrimitive.ScrollAreaScrollbar\n ref={ref}\n orientation={orientation}\n className={cn(\n \"flex touch-none select-none transition-colors\",\n orientation === \"vertical\" &&\n \"h-full w-2.5 border-l border-l-transparent p-[1px]\",\n orientation === \"horizontal\" &&\n \"h-2.5 flex-col border-t border-t-transparent p-[1px]\",\n className,\n )}\n {...props}\n >\n <ScrollAreaPrimitive.ScrollAreaThumb className=\"relative flex-1 rounded-full bg-border\" />\n </ScrollAreaPrimitive.ScrollAreaScrollbar>\n));\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;\n\nexport { ScrollArea, ScrollBar };\n"],"names":["ScrollArea","React","className","children","props","ref","jsxs","ScrollAreaPrimitive","cn","jsx","ScrollBar","orientation"],"mappings":";;;;AAKM,MAAAA,IAAaC,EAAM,WAGvB,CAAC,EAAE,WAAAC,GAAW,UAAAC,GAAU,GAAGC,KAASC,MACpCC,gBAAAA,EAAA;AAAA,EAACC,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG,EAAG,4BAA4BN,CAAS;AAAA,IAClD,GAAGE;AAAA,IAEJ,UAAA;AAAA,MAAAK,gBAAAA,EAAA,IAACF,EAAoB,UAApB,EAA6B,WAAU,mCACrC,UAAAJ,GACH;AAAA,4BACCO,GAAU,EAAA;AAAA,MACXD,gBAAAA,MAACF,EAAoB,QAApB,EAA2B;AAAA,IAAA;AAAA,EAAA;AAC9B,CACD;AACDP,EAAW,cAAcO,EAAoB,KAAK;AAE5C,MAAAG,IAAYT,EAAM,WAGtB,CAAC,EAAE,WAAAC,GAAW,aAAAS,IAAc,YAAY,GAAGP,KAASC,MACpDI,gBAAAA,EAAA;AAAA,EAACF,EAAoB;AAAA,EAApB;AAAA,IACC,KAAAF;AAAA,IACA,aAAAM;AAAA,IACA,WAAWH;AAAA,MACT;AAAA,MACAG,MAAgB,cACd;AAAA,MACFA,MAAgB,gBACd;AAAA,MACFT;AAAA,IACF;AAAA,IACC,GAAGE;AAAA,IAEJ,UAACK,gBAAAA,EAAA,IAAAF,EAAoB,iBAApB,EAAoC,WAAU,0CAAyC;AAAA,EAAA;AAC1F,CACD;AACDG,EAAU,cAAcH,EAAoB,oBAAoB;"}
@@ -0,0 +1,122 @@
1
+ import { j as t } from "../jsx-runtime-B6kdoens.js";
2
+ import * as e from "@radix-ui/react-select";
3
+ import { ChevronDown as n, ChevronUp as p, Check as f } from "lucide-react";
4
+ import * as l from "react";
5
+ import { c as r } from "../cn-BmFQLtkS.js";
6
+ const b = e.Root, S = e.Group, v = e.Value, u = l.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
7
+ e.Trigger,
8
+ {
9
+ ref: d,
10
+ className: r(
11
+ "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
12
+ s
13
+ ),
14
+ ...a,
15
+ children: [
16
+ /* @__PURE__ */ t.jsx("span", { className: "truncate", children: o }),
17
+ /* @__PURE__ */ t.jsx(e.Icon, { asChild: !0, children: /* @__PURE__ */ t.jsx(n, { className: "flex-shrink-0 h-4 w-4 opacity-50" }) })
18
+ ]
19
+ }
20
+ ));
21
+ u.displayName = e.Trigger.displayName;
22
+ const i = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
23
+ e.ScrollUpButton,
24
+ {
25
+ ref: a,
26
+ className: r(
27
+ "flex cursor-default items-center justify-center py-1",
28
+ s
29
+ ),
30
+ ...o,
31
+ children: /* @__PURE__ */ t.jsx(p, { className: "h-4 w-4" })
32
+ }
33
+ ));
34
+ i.displayName = e.ScrollUpButton.displayName;
35
+ const c = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
36
+ e.ScrollDownButton,
37
+ {
38
+ ref: a,
39
+ className: r(
40
+ "flex cursor-default items-center justify-center py-1",
41
+ s
42
+ ),
43
+ ...o,
44
+ children: /* @__PURE__ */ t.jsx(n, { className: "h-4 w-4" })
45
+ }
46
+ ));
47
+ c.displayName = e.ScrollDownButton.displayName;
48
+ const x = l.forwardRef(({ className: s, children: o, position: a = "popper", ...d }, m) => /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsxs(
49
+ e.Content,
50
+ {
51
+ ref: m,
52
+ className: r(
53
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
54
+ a === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
55
+ s
56
+ ),
57
+ position: a,
58
+ ...d,
59
+ children: [
60
+ /* @__PURE__ */ t.jsx(i, {}),
61
+ /* @__PURE__ */ t.jsx(
62
+ e.Viewport,
63
+ {
64
+ className: r(
65
+ "p-1",
66
+ a === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
67
+ ),
68
+ children: o
69
+ }
70
+ ),
71
+ /* @__PURE__ */ t.jsx(c, {})
72
+ ]
73
+ }
74
+ ) }));
75
+ x.displayName = e.Content.displayName;
76
+ const h = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
77
+ e.Label,
78
+ {
79
+ ref: a,
80
+ className: r("py-1.5 pl-8 pr-2 text-sm font-semibold", s),
81
+ ...o
82
+ }
83
+ ));
84
+ h.displayName = e.Label.displayName;
85
+ const y = l.forwardRef(({ className: s, children: o, ...a }, d) => /* @__PURE__ */ t.jsxs(
86
+ e.Item,
87
+ {
88
+ ref: d,
89
+ className: r(
90
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
91
+ s
92
+ ),
93
+ ...a,
94
+ children: [
95
+ /* @__PURE__ */ t.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(e.ItemIndicator, { children: /* @__PURE__ */ t.jsx(f, { className: "h-4 w-4" }) }) }),
96
+ /* @__PURE__ */ t.jsx(e.ItemText, { children: o })
97
+ ]
98
+ }
99
+ ));
100
+ y.displayName = e.Item.displayName;
101
+ const g = l.forwardRef(({ className: s, ...o }, a) => /* @__PURE__ */ t.jsx(
102
+ e.Separator,
103
+ {
104
+ ref: a,
105
+ className: r("-mx-1 my-1 h-px bg-muted", s),
106
+ ...o
107
+ }
108
+ ));
109
+ g.displayName = e.Separator.displayName;
110
+ export {
111
+ b as Select,
112
+ x as SelectContent,
113
+ S as SelectGroup,
114
+ y as SelectItem,
115
+ h as SelectLabel,
116
+ c as SelectScrollDownButton,
117
+ i as SelectScrollUpButton,
118
+ g as SelectSeparator,
119
+ u as SelectTrigger,
120
+ v as SelectValue
121
+ };
122
+ //# sourceMappingURL=Select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.js","sources":["../../src/lib/ui/Select.tsx"],"sourcesContent":["import * as SelectPrimitive from \"@radix-ui/react-select\";\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\";\nimport * as React from \"react\";\nimport { cn } from \"../util/cn.js\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"truncate\">{children}</span>\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"flex-shrink-0 h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className,\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className,\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n {...props}\n />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className,\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n};\n"],"names":["Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","React","className","children","props","ref","jsxs","cn","jsx","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":"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"}
@@ -0,0 +1,18 @@
1
+ import { j as m } from "../jsx-runtime-B6kdoens.js";
2
+ import { c as o } from "../cn-BmFQLtkS.js";
3
+ function s({
4
+ className: e,
5
+ ...t
6
+ }) {
7
+ return /* @__PURE__ */ m.jsx(
8
+ "div",
9
+ {
10
+ className: o("animate-pulse rounded-md bg-muted", e),
11
+ ...t
12
+ }
13
+ );
14
+ }
15
+ export {
16
+ s as Skeleton
17
+ };
18
+ //# sourceMappingURL=Skeleton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Skeleton.js","sources":["../../src/lib/ui/Skeleton.tsx"],"sourcesContent":["import { cn } from \"../util/cn.js\";\n\nfunction Skeleton({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\"animate-pulse rounded-md bg-muted\", className)}\n {...props}\n />\n );\n}\n\nexport { Skeleton };\n"],"names":["Skeleton","className","props","jsx","cn"],"mappings":";;AAEA,SAASA,EAAS;AAAA,EAChB,WAAAC;AAAA,EACA,GAAGC;AACL,GAAyC;AAErC,SAAAC,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAG,qCAAqCH,CAAS;AAAA,MAC3D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1,24 @@
1
+ import { j as o } from "../jsx-runtime-B6kdoens.js";
2
+ import * as e from "@radix-ui/react-slider";
3
+ import * as l from "react";
4
+ import { c as a } from "../cn-BmFQLtkS.js";
5
+ const n = l.forwardRef(({ className: r, ...s }, i) => /* @__PURE__ */ o.jsxs(
6
+ e.Root,
7
+ {
8
+ ref: i,
9
+ className: a(
10
+ "relative flex w-full touch-none select-none items-center",
11
+ r
12
+ ),
13
+ ...s,
14
+ children: [
15
+ /* @__PURE__ */ o.jsx(e.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ o.jsx(e.Range, { className: "absolute h-full bg-primary" }) }),
16
+ /* @__PURE__ */ o.jsx(e.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
17
+ ]
18
+ }
19
+ ));
20
+ n.displayName = e.Root.displayName;
21
+ export {
22
+ n as Slider
23
+ };
24
+ //# sourceMappingURL=Slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slider.js","sources":["../../src/lib/ui/Slider.tsx"],"sourcesContent":["import * as SliderPrimitive from \"@radix-ui/react-slider\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst Slider = React.forwardRef<\n React.ElementRef<typeof SliderPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <SliderPrimitive.Root\n ref={ref}\n className={cn(\n \"relative flex w-full touch-none select-none items-center\",\n className,\n )}\n {...props}\n >\n <SliderPrimitive.Track className=\"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary\">\n <SliderPrimitive.Range className=\"absolute h-full bg-primary\" />\n </SliderPrimitive.Track>\n <SliderPrimitive.Thumb className=\"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\" />\n </SliderPrimitive.Root>\n));\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n"],"names":["Slider","React","className","props","ref","jsxs","SliderPrimitive","cn","jsx"],"mappings":";;;;AAKM,MAAAA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACC,EAAgB;AAAA,EAAhB;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IAEJ,UAAA;AAAA,MAACK,gBAAAA,EAAAA,IAAAF,EAAgB,OAAhB,EAAsB,WAAU,sEAC/B,UAACE,gBAAAA,MAAAF,EAAgB,OAAhB,EAAsB,WAAU,6BAAA,CAA6B,EAChE,CAAA;AAAA,MACCE,gBAAAA,EAAAA,IAAAF,EAAgB,OAAhB,EAAsB,WAAU,iQAAiQ,CAAA;AAAA,IAAA;AAAA,EAAA;AACpS,CACD;AACDN,EAAO,cAAcM,EAAgB,KAAK;"}
@@ -0,0 +1,28 @@
1
+ import { j as r } from "../jsx-runtime-B6kdoens.js";
2
+ import * as e from "@radix-ui/react-switch";
3
+ import * as a from "react";
4
+ import { c as t } from "../cn-BmFQLtkS.js";
5
+ const n = a.forwardRef(({ className: s, ...o }, i) => /* @__PURE__ */ r.jsx(
6
+ e.Root,
7
+ {
8
+ className: t(
9
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
10
+ s
11
+ ),
12
+ ...o,
13
+ ref: i,
14
+ children: /* @__PURE__ */ r.jsx(
15
+ e.Thumb,
16
+ {
17
+ className: t(
18
+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
19
+ )
20
+ }
21
+ )
22
+ }
23
+ ));
24
+ n.displayName = e.Root.displayName;
25
+ export {
26
+ n as Switch
27
+ };
28
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sources":["../../src/lib/ui/Switch.tsx"],"sourcesContent":["import * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport * as React from \"react\";\n\nimport { cn } from \"../util/cn.js\";\n\nconst Switch = React.forwardRef<\n React.ElementRef<typeof SwitchPrimitives.Root>,\n React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n <SwitchPrimitives.Root\n className={cn(\n \"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n className,\n )}\n {...props}\n ref={ref}\n >\n <SwitchPrimitives.Thumb\n className={cn(\n \"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0\",\n )}\n />\n </SwitchPrimitives.Root>\n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"],"names":["Switch","React","className","props","ref","jsx","SwitchPrimitives","cn"],"mappings":";;;;AAKM,MAAAA,IAASC,EAAM,WAGnB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1BC,gBAAAA,EAAA;AAAA,EAACC,EAAiB;AAAA,EAAjB;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAL;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,IACJ,KAAAC;AAAA,IAEA,UAAAC,gBAAAA,EAAA;AAAA,MAACC,EAAiB;AAAA,MAAjB;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,QACF;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AACF,CACD;AACDP,EAAO,cAAcM,EAAiB,KAAK;"}