@arch-cadre/ui 0.0.10 → 0.0.15

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 (256) hide show
  1. package/build.config.ts +23 -0
  2. package/dist/components/.gitkeep +0 -0
  3. package/dist/components/accordion.cjs +62 -0
  4. package/dist/components/accordion.d.ts +7 -0
  5. package/dist/components/accordion.mjs +58 -0
  6. package/dist/components/alert-dialog.cjs +127 -0
  7. package/dist/components/alert-dialog.d.ts +14 -0
  8. package/dist/components/alert-dialog.mjs +144 -0
  9. package/dist/components/alert.cjs +58 -0
  10. package/dist/components/alert.d.ts +9 -0
  11. package/dist/components/alert.mjs +62 -0
  12. package/dist/components/aspect-ratio.cjs +19 -0
  13. package/dist/components/aspect-ratio.d.ts +4 -0
  14. package/dist/components/aspect-ratio.mjs +9 -0
  15. package/dist/components/avatar.cjs +44 -0
  16. package/dist/components/avatar.d.ts +6 -0
  17. package/dist/components/avatar.mjs +50 -0
  18. package/dist/components/badge.cjs +41 -0
  19. package/dist/components/badge.d.ts +9 -0
  20. package/dist/components/badge.mjs +37 -0
  21. package/dist/components/breadcrumb.cjs +106 -0
  22. package/dist/components/breadcrumb.d.ts +11 -0
  23. package/dist/components/breadcrumb.mjs +105 -0
  24. package/dist/components/button-group.cjs +65 -0
  25. package/dist/components/button-group.d.ts +12 -0
  26. package/dist/components/button-group.mjs +76 -0
  27. package/dist/components/button.cjs +57 -0
  28. package/dist/components/button.d.ts +10 -0
  29. package/dist/components/button.mjs +51 -0
  30. package/dist/components/calendar.cjs +143 -0
  31. package/dist/components/calendar.d.ts +8 -0
  32. package/dist/components/calendar.mjs +191 -0
  33. package/dist/components/card.cjs +86 -0
  34. package/dist/components/card.d.ts +9 -0
  35. package/dist/components/card.mjs +90 -0
  36. package/dist/components/checkbox.cjs +28 -0
  37. package/dist/components/checkbox.d.ts +4 -0
  38. package/dist/components/checkbox.mjs +30 -0
  39. package/dist/components/collapsible.cjs +37 -0
  40. package/dist/components/collapsible.d.ts +6 -0
  41. package/dist/components/collapsible.mjs +31 -0
  42. package/dist/components/command.cjs +125 -0
  43. package/dist/components/command.d.ts +18 -0
  44. package/dist/components/command.mjs +169 -0
  45. package/dist/components/context-menu.cjs +188 -0
  46. package/dist/components/context-menu.d.ts +25 -0
  47. package/dist/components/context-menu.mjs +218 -0
  48. package/dist/components/dialog.cjs +123 -0
  49. package/dist/components/dialog.d.ts +15 -0
  50. package/dist/components/dialog.mjs +130 -0
  51. package/dist/components/drawer.cjs +118 -0
  52. package/dist/components/drawer.d.ts +13 -0
  53. package/dist/components/drawer.mjs +124 -0
  54. package/dist/components/dropdown-menu.cjs +190 -0
  55. package/dist/components/dropdown-menu.d.ts +25 -0
  56. package/dist/components/dropdown-menu.mjs +226 -0
  57. package/dist/components/empty.cjs +92 -0
  58. package/dist/components/empty.d.ts +12 -0
  59. package/dist/components/empty.mjs +102 -0
  60. package/dist/components/field.cjs +173 -0
  61. package/dist/components/field.d.ts +25 -0
  62. package/dist/components/field.mjs +228 -0
  63. package/dist/components/form.cjs +143 -0
  64. package/dist/components/form.d.ts +23 -0
  65. package/dist/components/form.mjs +123 -0
  66. package/dist/components/hover-card.cjs +46 -0
  67. package/dist/components/hover-card.d.ts +6 -0
  68. package/dist/components/hover-card.mjs +35 -0
  69. package/dist/components/input-group.cjs +130 -0
  70. package/dist/components/input-group.d.ts +16 -0
  71. package/dist/components/input-group.mjs +155 -0
  72. package/dist/components/input-otp.cjs +69 -0
  73. package/dist/components/input-otp.d.ts +11 -0
  74. package/dist/components/input-otp.mjs +59 -0
  75. package/dist/components/input.cjs +22 -0
  76. package/dist/components/input.d.ts +3 -0
  77. package/dist/components/input.mjs +19 -0
  78. package/dist/components/item.cjs +168 -0
  79. package/dist/components/item.d.ts +23 -0
  80. package/dist/components/item.mjs +187 -0
  81. package/dist/components/kbd.cjs +31 -0
  82. package/dist/components/kbd.d.ts +4 -0
  83. package/dist/components/kbd.mjs +28 -0
  84. package/dist/components/label.cjs +22 -0
  85. package/dist/components/label.d.ts +4 -0
  86. package/dist/components/label.mjs +21 -0
  87. package/dist/components/language-switcher.cjs +43 -0
  88. package/dist/components/language-switcher.d.ts +2 -0
  89. package/dist/components/language-switcher.mjs +30 -0
  90. package/dist/components/menubar.cjs +207 -0
  91. package/dist/components/menubar.d.ts +26 -0
  92. package/dist/components/menubar.mjs +246 -0
  93. package/dist/components/navigation-menu.cjs +113 -0
  94. package/dist/components/navigation-menu.d.ts +14 -0
  95. package/dist/components/navigation-menu.mjs +166 -0
  96. package/dist/components/pagination.cjs +106 -0
  97. package/dist/components/pagination.d.ts +15 -0
  98. package/dist/components/pagination.mjs +116 -0
  99. package/dist/components/popover.cjs +53 -0
  100. package/dist/components/popover.d.ts +7 -0
  101. package/dist/components/popover.mjs +40 -0
  102. package/dist/components/progress.cjs +29 -0
  103. package/dist/components/progress.d.ts +4 -0
  104. package/dist/components/progress.mjs +30 -0
  105. package/dist/components/radio-group.cjs +39 -0
  106. package/dist/components/radio-group.d.ts +5 -0
  107. package/dist/components/radio-group.mjs +43 -0
  108. package/dist/components/scroll-area.cjs +45 -0
  109. package/dist/components/scroll-area.d.ts +7 -0
  110. package/dist/components/scroll-area.mjs +59 -0
  111. package/dist/components/select.cjs +140 -0
  112. package/dist/components/select.d.ts +15 -0
  113. package/dist/components/select.mjs +173 -0
  114. package/dist/components/separator.cjs +26 -0
  115. package/dist/components/separator.d.ts +4 -0
  116. package/dist/components/separator.mjs +25 -0
  117. package/dist/components/sheet.cjs +120 -0
  118. package/dist/components/sheet.d.ts +13 -0
  119. package/dist/components/sheet.mjs +119 -0
  120. package/dist/components/sidebar.cjs +508 -0
  121. package/dist/components/sidebar.d.ts +69 -0
  122. package/dist/components/sidebar.mjs +635 -0
  123. package/dist/components/skeleton.cjs +20 -0
  124. package/dist/components/skeleton.d.ts +3 -0
  125. package/dist/components/skeleton.mjs +13 -0
  126. package/dist/components/slider.cjs +43 -0
  127. package/dist/components/slider.d.ts +4 -0
  128. package/dist/components/slider.mjs +59 -0
  129. package/dist/components/sonner.cjs +49 -0
  130. package/dist/components/sonner.d.ts +4 -0
  131. package/dist/components/sonner.mjs +36 -0
  132. package/dist/components/spinner.cjs +22 -0
  133. package/dist/components/spinner.d.ts +3 -0
  134. package/dist/components/spinner.mjs +15 -0
  135. package/dist/components/switch.cjs +25 -0
  136. package/dist/components/switch.d.ts +4 -0
  137. package/dist/components/switch.mjs +30 -0
  138. package/dist/components/table.cjs +101 -0
  139. package/dist/components/table.d.ts +10 -0
  140. package/dist/components/table.mjs +115 -0
  141. package/dist/components/tabs.cjs +55 -0
  142. package/dist/components/tabs.d.ts +7 -0
  143. package/dist/components/tabs.mjs +63 -0
  144. package/dist/components/textarea.cjs +20 -0
  145. package/dist/components/textarea.d.ts +3 -0
  146. package/dist/components/textarea.mjs +16 -0
  147. package/dist/components/toggle-group.cjs +65 -0
  148. package/dist/components/toggle-group.d.ts +9 -0
  149. package/dist/components/toggle-group.mjs +65 -0
  150. package/dist/components/toggle.cjs +47 -0
  151. package/dist/components/toggle.d.ts +9 -0
  152. package/dist/components/toggle.mjs +41 -0
  153. package/dist/components/tooltip.cjs +56 -0
  154. package/dist/components/tooltip.d.ts +7 -0
  155. package/dist/components/tooltip.mjs +49 -0
  156. package/dist/hooks/.gitkeep +0 -0
  157. package/dist/hooks/use-mobile.cjs +23 -0
  158. package/dist/hooks/use-mobile.d.ts +1 -0
  159. package/dist/hooks/use-mobile.mjs +17 -0
  160. package/dist/hooks/use-user.cjs +21 -0
  161. package/dist/hooks/use-user.d.ts +12 -0
  162. package/dist/hooks/use-user.mjs +12 -0
  163. package/dist/index.cjs +155 -0
  164. package/dist/index.d.ts +13 -0
  165. package/dist/index.mjs +13 -0
  166. package/dist/lib/utils.cjs +11 -0
  167. package/dist/lib/utils.d.ts +2 -0
  168. package/dist/lib/utils.mjs +5 -0
  169. package/dist/logo.cjs +49 -0
  170. package/dist/logo.d.ts +15 -0
  171. package/dist/logo.mjs +32 -0
  172. package/dist/postcss.config.cjs +13 -0
  173. package/dist/postcss.config.d.mts +3 -0
  174. package/dist/postcss.config.mjs +6 -0
  175. package/dist/providers/auth-provider.cjs +44 -0
  176. package/dist/providers/auth-provider.d.ts +15 -0
  177. package/dist/providers/auth-provider.mjs +37 -0
  178. package/dist/providers/index.cjs +47 -0
  179. package/dist/providers/index.d.ts +7 -0
  180. package/dist/providers/index.mjs +33 -0
  181. package/dist/shared/access-denied.cjs +38 -0
  182. package/dist/shared/access-denied.d.ts +2 -0
  183. package/dist/shared/access-denied.mjs +12 -0
  184. package/dist/shared/loader.cjs +95 -0
  185. package/dist/shared/loader.d.ts +11 -0
  186. package/dist/shared/loader.mjs +98 -0
  187. package/dist/shared/page-loader.cjs +23 -0
  188. package/dist/shared/page-loader.d.ts +7 -0
  189. package/dist/shared/page-loader.mjs +6 -0
  190. package/dist/shared/scroll-fade-effect.cjs +21 -0
  191. package/dist/shared/scroll-fade-effect.d.ts +4 -0
  192. package/dist/shared/scroll-fade-effect.mjs +20 -0
  193. package/dist/styles/globals.css +1 -0
  194. package/package.json +58 -49
  195. package/scripts/switchToDist.js +55 -0
  196. package/scripts/switchToSrc.js +52 -0
  197. package/src/components/accordion.tsx +2 -2
  198. package/src/components/alert-dialog.tsx +1 -1
  199. package/src/components/alert.tsx +1 -1
  200. package/src/components/aspect-ratio.tsx +2 -1
  201. package/src/components/avatar.tsx +1 -1
  202. package/src/components/badge.tsx +3 -3
  203. package/src/components/breadcrumb.tsx +5 -3
  204. package/src/components/button-group.tsx +4 -2
  205. package/src/components/button.tsx +3 -3
  206. package/src/components/calendar.tsx +2 -2
  207. package/src/components/checkbox.tsx +2 -2
  208. package/src/components/collapsible.tsx +2 -1
  209. package/src/components/command.tsx +1 -1
  210. package/src/components/context-menu.tsx +2 -2
  211. package/src/components/dialog.tsx +2 -2
  212. package/src/components/dropdown-menu.tsx +2 -2
  213. package/src/components/empty.tsx +1 -0
  214. package/src/components/field.tsx +5 -2
  215. package/src/components/form.tsx +9 -7
  216. package/src/components/hover-card.tsx +1 -1
  217. package/src/components/input-group.tsx +1 -1
  218. package/src/components/input-otp.tsx +1 -1
  219. package/src/components/item.tsx +3 -3
  220. package/src/components/kbd.tsx +1 -0
  221. package/src/components/label.tsx +1 -1
  222. package/src/components/language-switcher.tsx +16 -17
  223. package/src/components/menubar.tsx +2 -2
  224. package/src/components/navigation-menu.tsx +2 -2
  225. package/src/components/pagination.tsx +5 -2
  226. package/src/components/popover.tsx +1 -1
  227. package/src/components/progress.tsx +1 -1
  228. package/src/components/radio-group.tsx +2 -2
  229. package/src/components/scroll-area.tsx +1 -1
  230. package/src/components/select.tsx +2 -2
  231. package/src/components/separator.tsx +1 -1
  232. package/src/components/sheet.tsx +2 -2
  233. package/src/components/sidebar.tsx +6 -6
  234. package/src/components/skeleton.tsx +1 -0
  235. package/src/components/slider.tsx +1 -1
  236. package/src/components/sonner.tsx +1 -0
  237. package/src/components/spinner.tsx +1 -0
  238. package/src/components/switch.tsx +1 -1
  239. package/src/components/tabs.tsx +1 -1
  240. package/src/components/toggle-group.tsx +2 -2
  241. package/src/components/toggle.tsx +2 -2
  242. package/src/components/tooltip.tsx +1 -1
  243. package/src/hooks/use-user.ts +2 -2
  244. package/src/index.ts +8 -5
  245. package/src/logo.tsx +1 -0
  246. package/src/providers/auth-provider.tsx +7 -6
  247. package/src/providers/index.tsx +1 -0
  248. package/src/shared/access-denied.tsx +1 -0
  249. package/src/shared/loader.tsx +2 -1
  250. package/src/shared/page-loader.tsx +1 -0
  251. package/src/shared/scroll-fade-effect.tsx +1 -1
  252. package/src/styles/globals.css +258 -244
  253. package/biome.json +0 -38
  254. package/src/components/carousel.tsx +0 -241
  255. package/src/components/chart.tsx +0 -357
  256. package/tsconfig.build.json +0 -16
@@ -0,0 +1,166 @@
1
+ import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
2
+ import { cva } from "class-variance-authority";
3
+ import { ChevronDownIcon } from "lucide-react";
4
+ import * as React from "react";
5
+ import { cn } from "../lib/utils.mjs";
6
+ function NavigationMenu({
7
+ className,
8
+ children,
9
+ viewport = true,
10
+ ...props
11
+ }) {
12
+ return /* @__PURE__ */ React.createElement(
13
+ NavigationMenuPrimitive.Root,
14
+ {
15
+ "data-slot": "navigation-menu",
16
+ "data-viewport": viewport,
17
+ className: cn(
18
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
19
+ className
20
+ ),
21
+ ...props
22
+ },
23
+ children,
24
+ viewport && /* @__PURE__ */ React.createElement(NavigationMenuViewport, null)
25
+ );
26
+ }
27
+ function NavigationMenuList({
28
+ className,
29
+ ...props
30
+ }) {
31
+ return /* @__PURE__ */ React.createElement(
32
+ NavigationMenuPrimitive.List,
33
+ {
34
+ "data-slot": "navigation-menu-list",
35
+ className: cn(
36
+ "group flex flex-1 list-none items-center justify-center gap-1",
37
+ className
38
+ ),
39
+ ...props
40
+ }
41
+ );
42
+ }
43
+ function NavigationMenuItem({
44
+ className,
45
+ ...props
46
+ }) {
47
+ return /* @__PURE__ */ React.createElement(
48
+ NavigationMenuPrimitive.Item,
49
+ {
50
+ "data-slot": "navigation-menu-item",
51
+ className: cn("relative", className),
52
+ ...props
53
+ }
54
+ );
55
+ }
56
+ const navigationMenuTriggerStyle = cva(
57
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
58
+ );
59
+ function NavigationMenuTrigger({
60
+ className,
61
+ children,
62
+ ...props
63
+ }) {
64
+ return /* @__PURE__ */ React.createElement(
65
+ NavigationMenuPrimitive.Trigger,
66
+ {
67
+ "data-slot": "navigation-menu-trigger",
68
+ className: cn(navigationMenuTriggerStyle(), "group", className),
69
+ ...props
70
+ },
71
+ children,
72
+ " ",
73
+ /* @__PURE__ */ React.createElement(
74
+ ChevronDownIcon,
75
+ {
76
+ className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
77
+ "aria-hidden": "true"
78
+ }
79
+ )
80
+ );
81
+ }
82
+ function NavigationMenuContent({
83
+ className,
84
+ ...props
85
+ }) {
86
+ return /* @__PURE__ */ React.createElement(
87
+ NavigationMenuPrimitive.Content,
88
+ {
89
+ "data-slot": "navigation-menu-content",
90
+ className: cn(
91
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
92
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
93
+ className
94
+ ),
95
+ ...props
96
+ }
97
+ );
98
+ }
99
+ function NavigationMenuViewport({
100
+ className,
101
+ ...props
102
+ }) {
103
+ return /* @__PURE__ */ React.createElement(
104
+ "div",
105
+ {
106
+ className: cn(
107
+ "absolute top-full left-0 isolate z-50 flex justify-center"
108
+ )
109
+ },
110
+ /* @__PURE__ */ React.createElement(
111
+ NavigationMenuPrimitive.Viewport,
112
+ {
113
+ "data-slot": "navigation-menu-viewport",
114
+ className: cn(
115
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
116
+ className
117
+ ),
118
+ ...props
119
+ }
120
+ )
121
+ );
122
+ }
123
+ function NavigationMenuLink({
124
+ className,
125
+ ...props
126
+ }) {
127
+ return /* @__PURE__ */ React.createElement(
128
+ NavigationMenuPrimitive.Link,
129
+ {
130
+ "data-slot": "navigation-menu-link",
131
+ className: cn(
132
+ "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
133
+ className
134
+ ),
135
+ ...props
136
+ }
137
+ );
138
+ }
139
+ function NavigationMenuIndicator({
140
+ className,
141
+ ...props
142
+ }) {
143
+ return /* @__PURE__ */ React.createElement(
144
+ NavigationMenuPrimitive.Indicator,
145
+ {
146
+ "data-slot": "navigation-menu-indicator",
147
+ className: cn(
148
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
149
+ className
150
+ ),
151
+ ...props
152
+ },
153
+ /* @__PURE__ */ React.createElement("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
154
+ );
155
+ }
156
+ export {
157
+ NavigationMenu,
158
+ NavigationMenuList,
159
+ NavigationMenuItem,
160
+ NavigationMenuContent,
161
+ NavigationMenuTrigger,
162
+ NavigationMenuLink,
163
+ NavigationMenuIndicator,
164
+ NavigationMenuViewport,
165
+ navigationMenuTriggerStyle
166
+ };
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Pagination = Pagination;
7
+ exports.PaginationContent = PaginationContent;
8
+ exports.PaginationEllipsis = PaginationEllipsis;
9
+ exports.PaginationItem = PaginationItem;
10
+ exports.PaginationLink = PaginationLink;
11
+ exports.PaginationNext = PaginationNext;
12
+ exports.PaginationPrevious = PaginationPrevious;
13
+ var _lucideReact = require("lucide-react");
14
+ var React = _interopRequireWildcard(require("react"));
15
+ var _utils = require("../lib/utils.cjs");
16
+ var _button = require("./button.cjs");
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
+ function Pagination({
20
+ className,
21
+ ...props
22
+ }) {
23
+ return /* @__PURE__ */React.createElement("nav", {
24
+ role: "navigation",
25
+ "aria-label": "pagination",
26
+ "data-slot": "pagination",
27
+ className: (0, _utils.cn)("mx-auto flex w-full justify-center", className),
28
+ ...props
29
+ });
30
+ }
31
+ function PaginationContent({
32
+ className,
33
+ ...props
34
+ }) {
35
+ return /* @__PURE__ */React.createElement("ul", {
36
+ "data-slot": "pagination-content",
37
+ className: (0, _utils.cn)("flex flex-row items-center gap-1", className),
38
+ ...props
39
+ });
40
+ }
41
+ function PaginationItem({
42
+ ...props
43
+ }) {
44
+ return /* @__PURE__ */React.createElement("li", {
45
+ "data-slot": "pagination-item",
46
+ ...props
47
+ });
48
+ }
49
+ function PaginationLink({
50
+ className,
51
+ isActive,
52
+ size = "icon",
53
+ ...props
54
+ }) {
55
+ return /* @__PURE__ */React.createElement("a", {
56
+ "aria-current": isActive ? "page" : void 0,
57
+ "data-slot": "pagination-link",
58
+ "data-active": isActive,
59
+ className: (0, _utils.cn)((0, _button.buttonVariants)({
60
+ variant: isActive ? "outline" : "ghost",
61
+ size
62
+ }), className),
63
+ ...props
64
+ });
65
+ }
66
+ function PaginationPrevious({
67
+ className,
68
+ ...props
69
+ }) {
70
+ return /* @__PURE__ */React.createElement(PaginationLink, {
71
+ "aria-label": "Go to previous page",
72
+ size: "default",
73
+ className: (0, _utils.cn)("gap-1 px-2.5 sm:pl-2.5", className),
74
+ ...props
75
+ }, /* @__PURE__ */React.createElement(_lucideReact.ChevronLeftIcon, null), /* @__PURE__ */React.createElement("span", {
76
+ className: "hidden sm:block"
77
+ }, "Previous"));
78
+ }
79
+ function PaginationNext({
80
+ className,
81
+ ...props
82
+ }) {
83
+ return /* @__PURE__ */React.createElement(PaginationLink, {
84
+ "aria-label": "Go to next page",
85
+ size: "default",
86
+ className: (0, _utils.cn)("gap-1 px-2.5 sm:pr-2.5", className),
87
+ ...props
88
+ }, /* @__PURE__ */React.createElement("span", {
89
+ className: "hidden sm:block"
90
+ }, "Next"), /* @__PURE__ */React.createElement(_lucideReact.ChevronRightIcon, null));
91
+ }
92
+ function PaginationEllipsis({
93
+ className,
94
+ ...props
95
+ }) {
96
+ return /* @__PURE__ */React.createElement("span", {
97
+ "aria-hidden": true,
98
+ "data-slot": "pagination-ellipsis",
99
+ className: (0, _utils.cn)("flex size-9 items-center justify-center", className),
100
+ ...props
101
+ }, /* @__PURE__ */React.createElement(_lucideReact.MoreHorizontalIcon, {
102
+ className: "size-4"
103
+ }), /* @__PURE__ */React.createElement("span", {
104
+ className: "sr-only"
105
+ }, "More pages"));
106
+ }
@@ -0,0 +1,15 @@
1
+ /** biome-ignore-all lint/a11y/noRedundantRoles: <explanation> */
2
+ /** biome-ignore-all lint/a11y/useSemanticElements: <explanation> */
3
+ import * as React from "react";
4
+ import { type Button } from "./button";
5
+ declare function Pagination({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
6
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
7
+ declare function PaginationItem({ ...props }: React.ComponentProps<"li">): React.JSX.Element;
8
+ type PaginationLinkProps = {
9
+ isActive?: boolean;
10
+ } & Pick<React.ComponentProps<typeof Button>, "size"> & React.ComponentProps<"a">;
11
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
12
+ declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
13
+ declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
14
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
15
+ export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
@@ -0,0 +1,116 @@
1
+ import {
2
+ ChevronLeftIcon,
3
+ ChevronRightIcon,
4
+ MoreHorizontalIcon
5
+ } from "lucide-react";
6
+ import * as React from "react";
7
+ import { cn } from "../lib/utils.mjs";
8
+ import { buttonVariants } from "./button.mjs";
9
+ function Pagination({ className, ...props }) {
10
+ return /* @__PURE__ */ React.createElement(
11
+ "nav",
12
+ {
13
+ role: "navigation",
14
+ "aria-label": "pagination",
15
+ "data-slot": "pagination",
16
+ className: cn("mx-auto flex w-full justify-center", className),
17
+ ...props
18
+ }
19
+ );
20
+ }
21
+ function PaginationContent({
22
+ className,
23
+ ...props
24
+ }) {
25
+ return /* @__PURE__ */ React.createElement(
26
+ "ul",
27
+ {
28
+ "data-slot": "pagination-content",
29
+ className: cn("flex flex-row items-center gap-1", className),
30
+ ...props
31
+ }
32
+ );
33
+ }
34
+ function PaginationItem({ ...props }) {
35
+ return /* @__PURE__ */ React.createElement("li", { "data-slot": "pagination-item", ...props });
36
+ }
37
+ function PaginationLink({
38
+ className,
39
+ isActive,
40
+ size = "icon",
41
+ ...props
42
+ }) {
43
+ return /* @__PURE__ */ React.createElement(
44
+ "a",
45
+ {
46
+ "aria-current": isActive ? "page" : void 0,
47
+ "data-slot": "pagination-link",
48
+ "data-active": isActive,
49
+ className: cn(
50
+ buttonVariants({
51
+ variant: isActive ? "outline" : "ghost",
52
+ size
53
+ }),
54
+ className
55
+ ),
56
+ ...props
57
+ }
58
+ );
59
+ }
60
+ function PaginationPrevious({
61
+ className,
62
+ ...props
63
+ }) {
64
+ return /* @__PURE__ */ React.createElement(
65
+ PaginationLink,
66
+ {
67
+ "aria-label": "Go to previous page",
68
+ size: "default",
69
+ className: cn("gap-1 px-2.5 sm:pl-2.5", className),
70
+ ...props
71
+ },
72
+ /* @__PURE__ */ React.createElement(ChevronLeftIcon, null),
73
+ /* @__PURE__ */ React.createElement("span", { className: "hidden sm:block" }, "Previous")
74
+ );
75
+ }
76
+ function PaginationNext({
77
+ className,
78
+ ...props
79
+ }) {
80
+ return /* @__PURE__ */ React.createElement(
81
+ PaginationLink,
82
+ {
83
+ "aria-label": "Go to next page",
84
+ size: "default",
85
+ className: cn("gap-1 px-2.5 sm:pr-2.5", className),
86
+ ...props
87
+ },
88
+ /* @__PURE__ */ React.createElement("span", { className: "hidden sm:block" }, "Next"),
89
+ /* @__PURE__ */ React.createElement(ChevronRightIcon, null)
90
+ );
91
+ }
92
+ function PaginationEllipsis({
93
+ className,
94
+ ...props
95
+ }) {
96
+ return /* @__PURE__ */ React.createElement(
97
+ "span",
98
+ {
99
+ "aria-hidden": true,
100
+ "data-slot": "pagination-ellipsis",
101
+ className: cn("flex size-9 items-center justify-center", className),
102
+ ...props
103
+ },
104
+ /* @__PURE__ */ React.createElement(MoreHorizontalIcon, { className: "size-4" }),
105
+ /* @__PURE__ */ React.createElement("span", { className: "sr-only" }, "More pages")
106
+ );
107
+ }
108
+ export {
109
+ Pagination,
110
+ PaginationContent,
111
+ PaginationLink,
112
+ PaginationItem,
113
+ PaginationPrevious,
114
+ PaginationNext,
115
+ PaginationEllipsis
116
+ };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Popover = Popover;
8
+ exports.PopoverAnchor = PopoverAnchor;
9
+ exports.PopoverContent = PopoverContent;
10
+ exports.PopoverTrigger = PopoverTrigger;
11
+ var _radixUi = require("radix-ui");
12
+ var React = _interopRequireWildcard(require("react"));
13
+ var _utils = require("../lib/utils.cjs");
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function Popover({
17
+ ...props
18
+ }) {
19
+ return /* @__PURE__ */React.createElement(_radixUi.Popover.Root, {
20
+ "data-slot": "popover",
21
+ ...props
22
+ });
23
+ }
24
+ function PopoverTrigger({
25
+ ...props
26
+ }) {
27
+ return /* @__PURE__ */React.createElement(_radixUi.Popover.Trigger, {
28
+ "data-slot": "popover-trigger",
29
+ ...props
30
+ });
31
+ }
32
+ function PopoverContent({
33
+ className,
34
+ align = "center",
35
+ sideOffset = 4,
36
+ ...props
37
+ }) {
38
+ return /* @__PURE__ */React.createElement(_radixUi.Popover.Portal, null, /* @__PURE__ */React.createElement(_radixUi.Popover.Content, {
39
+ "data-slot": "popover-content",
40
+ align,
41
+ sideOffset,
42
+ className: (0, _utils.cn)("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
43
+ ...props
44
+ }));
45
+ }
46
+ function PopoverAnchor({
47
+ ...props
48
+ }) {
49
+ return /* @__PURE__ */React.createElement(_radixUi.Popover.Anchor, {
50
+ "data-slot": "popover-anchor",
51
+ ...props
52
+ });
53
+ }
@@ -0,0 +1,7 @@
1
+ import { Popover as PopoverPrimitive } from "radix-ui";
2
+ import * as React from "react";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): React.JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import { Popover as PopoverPrimitive } from "radix-ui";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/utils.mjs";
5
+ function Popover({
6
+ ...props
7
+ }) {
8
+ return /* @__PURE__ */ React.createElement(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
9
+ }
10
+ function PopoverTrigger({
11
+ ...props
12
+ }) {
13
+ return /* @__PURE__ */ React.createElement(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
14
+ }
15
+ function PopoverContent({
16
+ className,
17
+ align = "center",
18
+ sideOffset = 4,
19
+ ...props
20
+ }) {
21
+ return /* @__PURE__ */ React.createElement(PopoverPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
22
+ PopoverPrimitive.Content,
23
+ {
24
+ "data-slot": "popover-content",
25
+ align,
26
+ sideOffset,
27
+ className: cn(
28
+ "bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
29
+ className
30
+ ),
31
+ ...props
32
+ }
33
+ ));
34
+ }
35
+ function PopoverAnchor({
36
+ ...props
37
+ }) {
38
+ return /* @__PURE__ */ React.createElement(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
39
+ }
40
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.Progress = Progress;
8
+ var _radixUi = require("radix-ui");
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _utils = require("../lib/utils.cjs");
11
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ function Progress({
14
+ className,
15
+ value,
16
+ ...props
17
+ }) {
18
+ return /* @__PURE__ */React.createElement(_radixUi.Progress.Root, {
19
+ "data-slot": "progress",
20
+ className: (0, _utils.cn)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", className),
21
+ ...props
22
+ }, /* @__PURE__ */React.createElement(_radixUi.Progress.Indicator, {
23
+ "data-slot": "progress-indicator",
24
+ className: "bg-primary h-full w-full flex-1 transition-all",
25
+ style: {
26
+ transform: `translateX(-${100 - (value || 0)}%)`
27
+ }
28
+ }));
29
+ }
@@ -0,0 +1,4 @@
1
+ import { Progress as ProgressPrimitive } from "radix-ui";
2
+ import * as React from "react";
3
+ declare function Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>): React.JSX.Element;
4
+ export { Progress };
@@ -0,0 +1,30 @@
1
+ "use client";
2
+ import { Progress as ProgressPrimitive } from "radix-ui";
3
+ import * as React from "react";
4
+ import { cn } from "../lib/utils.mjs";
5
+ function Progress({
6
+ className,
7
+ value,
8
+ ...props
9
+ }) {
10
+ return /* @__PURE__ */ React.createElement(
11
+ ProgressPrimitive.Root,
12
+ {
13
+ "data-slot": "progress",
14
+ className: cn(
15
+ "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
16
+ className
17
+ ),
18
+ ...props
19
+ },
20
+ /* @__PURE__ */ React.createElement(
21
+ ProgressPrimitive.Indicator,
22
+ {
23
+ "data-slot": "progress-indicator",
24
+ className: "bg-primary h-full w-full flex-1 transition-all",
25
+ style: { transform: `translateX(-${100 - (value || 0)}%)` }
26
+ }
27
+ )
28
+ );
29
+ }
30
+ export { Progress };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ "use client";
3
+
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.RadioGroup = RadioGroup;
8
+ exports.RadioGroupItem = RadioGroupItem;
9
+ var _radixUi = require("radix-ui");
10
+ var _lucideReact = require("lucide-react");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _utils = require("../lib/utils.cjs");
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ function RadioGroup({
16
+ className,
17
+ ...props
18
+ }) {
19
+ return /* @__PURE__ */React.createElement(_radixUi.RadioGroup.Root, {
20
+ "data-slot": "radio-group",
21
+ className: (0, _utils.cn)("grid gap-3", className),
22
+ ...props
23
+ });
24
+ }
25
+ function RadioGroupItem({
26
+ className,
27
+ ...props
28
+ }) {
29
+ return /* @__PURE__ */React.createElement(_radixUi.RadioGroup.Item, {
30
+ "data-slot": "radio-group-item",
31
+ className: (0, _utils.cn)("border-input text-primary 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:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
32
+ ...props
33
+ }, /* @__PURE__ */React.createElement(_radixUi.RadioGroup.Indicator, {
34
+ "data-slot": "radio-group-indicator",
35
+ className: "relative flex items-center justify-center"
36
+ }, /* @__PURE__ */React.createElement(_lucideReact.CircleIcon, {
37
+ className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"
38
+ })));
39
+ }
@@ -0,0 +1,5 @@
1
+ import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
2
+ import * as React from "react";
3
+ declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): React.JSX.Element;
4
+ declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): React.JSX.Element;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,43 @@
1
+ "use client";
2
+ import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
3
+ import { CircleIcon } from "lucide-react";
4
+ import * as React from "react";
5
+ import { cn } from "../lib/utils.mjs";
6
+ function RadioGroup({
7
+ className,
8
+ ...props
9
+ }) {
10
+ return /* @__PURE__ */ React.createElement(
11
+ RadioGroupPrimitive.Root,
12
+ {
13
+ "data-slot": "radio-group",
14
+ className: cn("grid gap-3", className),
15
+ ...props
16
+ }
17
+ );
18
+ }
19
+ function RadioGroupItem({
20
+ className,
21
+ ...props
22
+ }) {
23
+ return /* @__PURE__ */ React.createElement(
24
+ RadioGroupPrimitive.Item,
25
+ {
26
+ "data-slot": "radio-group-item",
27
+ className: cn(
28
+ "border-input text-primary 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:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
29
+ className
30
+ ),
31
+ ...props
32
+ },
33
+ /* @__PURE__ */ React.createElement(
34
+ RadioGroupPrimitive.Indicator,
35
+ {
36
+ "data-slot": "radio-group-indicator",
37
+ className: "relative flex items-center justify-center"
38
+ },
39
+ /* @__PURE__ */ React.createElement(CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
40
+ )
41
+ );
42
+ }
43
+ export { RadioGroup, RadioGroupItem };