@arch-cadre/ui 0.0.44 → 0.0.47

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 (262) hide show
  1. package/dist/components/accordion.js +18 -0
  2. package/dist/components/alert-dialog.js +39 -0
  3. package/dist/components/alert.js +24 -0
  4. package/dist/components/aspect-ratio.js +7 -0
  5. package/dist/components/avatar.js +14 -0
  6. package/dist/components/badge.js +22 -0
  7. package/dist/components/breadcrumb.js +30 -0
  8. package/dist/components/button-group.js +28 -0
  9. package/dist/components/button.js +33 -0
  10. package/dist/components/calendar.js +76 -0
  11. package/dist/components/card.js +24 -0
  12. package/dist/components/checkbox.js +9 -0
  13. package/dist/components/collapsible.js +13 -0
  14. package/dist/components/command.js +34 -0
  15. package/dist/components/context-menu.js +51 -0
  16. package/dist/components/dialog.js +36 -0
  17. package/dist/components/drawer.js +35 -0
  18. package/dist/components/dropdown-menu.js +51 -0
  19. package/dist/components/empty.js +33 -0
  20. package/dist/components/field.js +78 -0
  21. package/dist/components/form.js +59 -0
  22. package/dist/components/hover-card.js +14 -0
  23. package/dist/components/input-group.js +63 -0
  24. package/dist/components/input-otp.js +21 -0
  25. package/dist/components/input.js +6 -0
  26. package/dist/components/item.js +66 -0
  27. package/dist/components/kbd.js +9 -0
  28. package/dist/components/label.js +8 -0
  29. package/dist/components/language-switcher.js +20 -0
  30. package/dist/components/menubar.js +54 -0
  31. package/dist/components/navigation-menu.js +31 -0
  32. package/dist/components/pagination.js +31 -0
  33. package/dist/components/popover.js +17 -0
  34. package/dist/components/progress.js +8 -0
  35. package/dist/components/radio-group.js +12 -0
  36. package/dist/components/scroll-area.js +13 -0
  37. package/dist/components/select.js +38 -0
  38. package/dist/components/separator.js +8 -0
  39. package/dist/components/sheet.js +40 -0
  40. package/dist/components/sidebar.js +213 -0
  41. package/dist/components/skeleton.js +6 -0
  42. package/dist/components/slider.js +14 -0
  43. package/dist/components/sonner.js +21 -0
  44. package/dist/components/spinner.js +7 -0
  45. package/dist/components/switch.js +8 -0
  46. package/dist/components/table.js +28 -0
  47. package/dist/components/tabs.js +17 -0
  48. package/dist/components/textarea.js +6 -0
  49. package/dist/components/toggle-group.js +22 -0
  50. package/dist/components/toggle.js +26 -0
  51. package/dist/components/tooltip.js +17 -0
  52. package/dist/hooks/use-mobile.js +15 -0
  53. package/dist/hooks/use-user.js +25 -0
  54. package/dist/lib/{utils.mjs → utils.js} +1 -1
  55. package/dist/logo.js +28 -0
  56. package/dist/postcss.config.mjs +1 -2
  57. package/dist/providers/auth-provider.js +27 -0
  58. package/dist/providers/index.js +23 -0
  59. package/dist/shared/access-denied.js +6 -0
  60. package/dist/shared/loader.js +41 -0
  61. package/dist/shared/page-loader.js +6 -0
  62. package/dist/shared/scroll-fade-effect.js +5 -0
  63. package/package.json +17 -20
  64. package/build.config.ts +0 -23
  65. package/components.json +0 -20
  66. package/dist/components/.gitkeep +0 -0
  67. package/dist/components/accordion.d.ts +0 -7
  68. package/dist/components/accordion.mjs +0 -58
  69. package/dist/components/alert-dialog.d.ts +0 -14
  70. package/dist/components/alert-dialog.mjs +0 -144
  71. package/dist/components/alert.d.ts +0 -9
  72. package/dist/components/alert.mjs +0 -62
  73. package/dist/components/aspect-ratio.d.ts +0 -4
  74. package/dist/components/aspect-ratio.mjs +0 -9
  75. package/dist/components/avatar.d.ts +0 -6
  76. package/dist/components/avatar.mjs +0 -50
  77. package/dist/components/badge.d.ts +0 -9
  78. package/dist/components/badge.mjs +0 -37
  79. package/dist/components/breadcrumb.d.ts +0 -11
  80. package/dist/components/breadcrumb.mjs +0 -105
  81. package/dist/components/button-group.d.ts +0 -13
  82. package/dist/components/button-group.mjs +0 -76
  83. package/dist/components/button.d.ts +0 -10
  84. package/dist/components/button.mjs +0 -51
  85. package/dist/components/calendar.d.ts +0 -8
  86. package/dist/components/calendar.mjs +0 -191
  87. package/dist/components/card.d.ts +0 -9
  88. package/dist/components/card.mjs +0 -90
  89. package/dist/components/checkbox.d.ts +0 -4
  90. package/dist/components/checkbox.mjs +0 -30
  91. package/dist/components/collapsible.d.ts +0 -6
  92. package/dist/components/collapsible.mjs +0 -31
  93. package/dist/components/command.d.ts +0 -18
  94. package/dist/components/command.mjs +0 -169
  95. package/dist/components/context-menu.d.ts +0 -25
  96. package/dist/components/context-menu.mjs +0 -218
  97. package/dist/components/dialog.d.ts +0 -15
  98. package/dist/components/dialog.mjs +0 -130
  99. package/dist/components/drawer.d.ts +0 -13
  100. package/dist/components/drawer.mjs +0 -124
  101. package/dist/components/dropdown-menu.d.ts +0 -25
  102. package/dist/components/dropdown-menu.mjs +0 -226
  103. package/dist/components/empty.d.ts +0 -12
  104. package/dist/components/empty.mjs +0 -102
  105. package/dist/components/field.d.ts +0 -25
  106. package/dist/components/field.mjs +0 -228
  107. package/dist/components/form.d.ts +0 -23
  108. package/dist/components/form.mjs +0 -123
  109. package/dist/components/hover-card.d.ts +0 -6
  110. package/dist/components/hover-card.mjs +0 -35
  111. package/dist/components/input-group.d.ts +0 -16
  112. package/dist/components/input-group.mjs +0 -155
  113. package/dist/components/input-otp.d.ts +0 -11
  114. package/dist/components/input-otp.mjs +0 -59
  115. package/dist/components/input.d.ts +0 -3
  116. package/dist/components/input.mjs +0 -19
  117. package/dist/components/item.d.ts +0 -23
  118. package/dist/components/item.mjs +0 -187
  119. package/dist/components/kbd.d.ts +0 -4
  120. package/dist/components/kbd.mjs +0 -28
  121. package/dist/components/label.d.ts +0 -4
  122. package/dist/components/label.mjs +0 -21
  123. package/dist/components/language-switcher.d.ts +0 -2
  124. package/dist/components/language-switcher.mjs +0 -30
  125. package/dist/components/menubar.d.ts +0 -26
  126. package/dist/components/menubar.mjs +0 -246
  127. package/dist/components/navigation-menu.d.ts +0 -14
  128. package/dist/components/navigation-menu.mjs +0 -166
  129. package/dist/components/pagination.d.ts +0 -15
  130. package/dist/components/pagination.mjs +0 -116
  131. package/dist/components/popover.d.ts +0 -7
  132. package/dist/components/popover.mjs +0 -40
  133. package/dist/components/progress.d.ts +0 -4
  134. package/dist/components/progress.mjs +0 -30
  135. package/dist/components/radio-group.d.ts +0 -5
  136. package/dist/components/radio-group.mjs +0 -43
  137. package/dist/components/scroll-area.d.ts +0 -7
  138. package/dist/components/scroll-area.mjs +0 -59
  139. package/dist/components/select.d.ts +0 -15
  140. package/dist/components/select.mjs +0 -173
  141. package/dist/components/separator.d.ts +0 -4
  142. package/dist/components/separator.mjs +0 -25
  143. package/dist/components/sheet.d.ts +0 -13
  144. package/dist/components/sheet.mjs +0 -119
  145. package/dist/components/sidebar.d.ts +0 -69
  146. package/dist/components/sidebar.mjs +0 -635
  147. package/dist/components/skeleton.d.ts +0 -3
  148. package/dist/components/skeleton.mjs +0 -13
  149. package/dist/components/slider.d.ts +0 -4
  150. package/dist/components/slider.mjs +0 -59
  151. package/dist/components/sonner.d.ts +0 -4
  152. package/dist/components/sonner.mjs +0 -36
  153. package/dist/components/spinner.d.ts +0 -3
  154. package/dist/components/spinner.mjs +0 -15
  155. package/dist/components/switch.d.ts +0 -4
  156. package/dist/components/switch.mjs +0 -30
  157. package/dist/components/table.d.ts +0 -10
  158. package/dist/components/table.mjs +0 -115
  159. package/dist/components/tabs.d.ts +0 -7
  160. package/dist/components/tabs.mjs +0 -63
  161. package/dist/components/textarea.d.ts +0 -3
  162. package/dist/components/textarea.mjs +0 -16
  163. package/dist/components/toggle-group.d.ts +0 -9
  164. package/dist/components/toggle-group.mjs +0 -65
  165. package/dist/components/toggle.d.ts +0 -9
  166. package/dist/components/toggle.mjs +0 -41
  167. package/dist/components/tooltip.d.ts +0 -7
  168. package/dist/components/tooltip.mjs +0 -49
  169. package/dist/hooks/.gitkeep +0 -0
  170. package/dist/hooks/use-mobile.d.ts +0 -1
  171. package/dist/hooks/use-mobile.mjs +0 -17
  172. package/dist/hooks/use-user.d.ts +0 -12
  173. package/dist/hooks/use-user.mjs +0 -12
  174. package/dist/index.mjs +0 -15
  175. package/dist/lib/utils.d.ts +0 -2
  176. package/dist/logo.d.ts +0 -15
  177. package/dist/logo.mjs +0 -32
  178. package/dist/postcss.config.d.mts +0 -3
  179. package/dist/providers/auth-provider.d.ts +0 -15
  180. package/dist/providers/auth-provider.mjs +0 -37
  181. package/dist/providers/index.d.ts +0 -7
  182. package/dist/providers/index.mjs +0 -33
  183. package/dist/shared/access-denied.d.ts +0 -2
  184. package/dist/shared/access-denied.mjs +0 -12
  185. package/dist/shared/loader.d.ts +0 -11
  186. package/dist/shared/loader.mjs +0 -98
  187. package/dist/shared/page-loader.d.ts +0 -7
  188. package/dist/shared/page-loader.mjs +0 -6
  189. package/dist/shared/scroll-fade-effect.d.ts +0 -4
  190. package/dist/shared/scroll-fade-effect.mjs +0 -20
  191. package/dist/styles/globals.css +0 -1
  192. package/postcss.config.mjs +0 -6
  193. package/scripts/switchToDist.js +0 -55
  194. package/scripts/switchToSrc.js +0 -52
  195. package/src/components/.gitkeep +0 -0
  196. package/src/components/accordion.tsx +0 -66
  197. package/src/components/alert-dialog.tsx +0 -157
  198. package/src/components/alert.tsx +0 -66
  199. package/src/components/aspect-ratio.tsx +0 -12
  200. package/src/components/avatar.tsx +0 -53
  201. package/src/components/badge.tsx +0 -46
  202. package/src/components/breadcrumb.tsx +0 -111
  203. package/src/components/button-group.tsx +0 -86
  204. package/src/components/button.tsx +0 -62
  205. package/src/components/calendar.tsx +0 -220
  206. package/src/components/card.tsx +0 -92
  207. package/src/components/checkbox.tsx +0 -32
  208. package/src/components/collapsible.tsx +0 -34
  209. package/src/components/command.tsx +0 -184
  210. package/src/components/context-menu.tsx +0 -252
  211. package/src/components/dialog.tsx +0 -143
  212. package/src/components/drawer.tsx +0 -135
  213. package/src/components/dropdown-menu.tsx +0 -257
  214. package/src/components/empty.tsx +0 -105
  215. package/src/components/field.tsx +0 -251
  216. package/src/components/form.tsx +0 -170
  217. package/src/components/hover-card.tsx +0 -44
  218. package/src/components/input-group.tsx +0 -170
  219. package/src/components/input-otp.tsx +0 -77
  220. package/src/components/input.tsx +0 -21
  221. package/src/components/item.tsx +0 -193
  222. package/src/components/kbd.tsx +0 -29
  223. package/src/components/label.tsx +0 -24
  224. package/src/components/language-switcher.tsx +0 -49
  225. package/src/components/menubar.tsx +0 -276
  226. package/src/components/navigation-menu.tsx +0 -168
  227. package/src/components/pagination.tsx +0 -130
  228. package/src/components/popover.tsx +0 -48
  229. package/src/components/progress.tsx +0 -31
  230. package/src/components/radio-group.tsx +0 -45
  231. package/src/components/scroll-area.tsx +0 -67
  232. package/src/components/select.tsx +0 -190
  233. package/src/components/separator.tsx +0 -28
  234. package/src/components/sheet.tsx +0 -139
  235. package/src/components/sidebar.tsx +0 -726
  236. package/src/components/skeleton.tsx +0 -14
  237. package/src/components/slider.tsx +0 -63
  238. package/src/components/sonner.tsx +0 -41
  239. package/src/components/spinner.tsx +0 -17
  240. package/src/components/switch.tsx +0 -31
  241. package/src/components/table.tsx +0 -116
  242. package/src/components/tabs.tsx +0 -66
  243. package/src/components/textarea.tsx +0 -18
  244. package/src/components/toggle-group.tsx +0 -83
  245. package/src/components/toggle.tsx +0 -47
  246. package/src/components/tooltip.tsx +0 -61
  247. package/src/hooks/.gitkeep +0 -0
  248. package/src/hooks/use-mobile.ts +0 -21
  249. package/src/hooks/use-user.ts +0 -27
  250. package/src/index.ts +0 -15
  251. package/src/lib/utils.ts +0 -6
  252. package/src/logo.tsx +0 -49
  253. package/src/postcss.config.mjs +0 -6
  254. package/src/providers/auth-provider.tsx +0 -66
  255. package/src/providers/index.tsx +0 -50
  256. package/src/shared/access-denied.tsx +0 -31
  257. package/src/shared/loader.tsx +0 -109
  258. package/src/shared/page-loader.tsx +0 -24
  259. package/src/shared/scroll-fade-effect.tsx +0 -23
  260. package/src/styles/globals.css +0 -314
  261. package/tsconfig.json +0 -24
  262. /package/dist/{index.d.ts → index.js} +0 -0
@@ -1,59 +0,0 @@
1
- "use client";
2
- import { Slider as SliderPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { cn } from "../lib/utils.mjs";
5
- function Slider({
6
- className,
7
- defaultValue,
8
- value,
9
- min = 0,
10
- max = 100,
11
- ...props
12
- }) {
13
- const _values = React.useMemo(
14
- () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min, max],
15
- [value, defaultValue, min, max]
16
- );
17
- return /* @__PURE__ */ React.createElement(
18
- SliderPrimitive.Root,
19
- {
20
- "data-slot": "slider",
21
- defaultValue,
22
- value,
23
- min,
24
- max,
25
- className: cn(
26
- "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
27
- className
28
- ),
29
- ...props
30
- },
31
- /* @__PURE__ */ React.createElement(
32
- SliderPrimitive.Track,
33
- {
34
- "data-slot": "slider-track",
35
- className: cn(
36
- "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"
37
- )
38
- },
39
- /* @__PURE__ */ React.createElement(
40
- SliderPrimitive.Range,
41
- {
42
- "data-slot": "slider-range",
43
- className: cn(
44
- "bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
45
- )
46
- }
47
- )
48
- ),
49
- Array.from({ length: _values.length }, (_, index) => /* @__PURE__ */ React.createElement(
50
- SliderPrimitive.Thumb,
51
- {
52
- "data-slot": "slider-thumb",
53
- key: index,
54
- className: "border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
55
- }
56
- ))
57
- );
58
- }
59
- export { Slider };
@@ -1,4 +0,0 @@
1
- import * as React from "react";
2
- import { type ToasterProps } from "sonner";
3
- declare const Toaster: ({ ...props }: ToasterProps) => React.JSX.Element;
4
- export { Toaster };
@@ -1,36 +0,0 @@
1
- "use client";
2
- import {
3
- CircleCheckIcon,
4
- InfoIcon,
5
- Loader2Icon,
6
- OctagonXIcon,
7
- TriangleAlertIcon
8
- } from "lucide-react";
9
- import { useTheme } from "next-themes";
10
- import * as React from "react";
11
- import { Toaster as Sonner } from "sonner";
12
- const Toaster = ({ ...props }) => {
13
- const { theme = "system" } = useTheme();
14
- return /* @__PURE__ */ React.createElement(
15
- Sonner,
16
- {
17
- theme,
18
- className: "toaster group",
19
- icons: {
20
- success: /* @__PURE__ */ React.createElement(CircleCheckIcon, { className: "size-4" }),
21
- info: /* @__PURE__ */ React.createElement(InfoIcon, { className: "size-4" }),
22
- warning: /* @__PURE__ */ React.createElement(TriangleAlertIcon, { className: "size-4" }),
23
- error: /* @__PURE__ */ React.createElement(OctagonXIcon, { className: "size-4" }),
24
- loading: /* @__PURE__ */ React.createElement(Loader2Icon, { className: "size-4 animate-spin" })
25
- },
26
- style: {
27
- "--normal-bg": "var(--popover)",
28
- "--normal-text": "var(--popover-foreground)",
29
- "--normal-border": "var(--border)",
30
- "--border-radius": "var(--radius)"
31
- },
32
- ...props
33
- }
34
- );
35
- };
36
- export { Toaster };
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): React.JSX.Element;
3
- export { Spinner };
@@ -1,15 +0,0 @@
1
- import { Loader2Icon } from "lucide-react";
2
- import * as React from "react";
3
- import { cn } from "../lib/utils.mjs";
4
- function Spinner({ className, ...props }) {
5
- return /* @__PURE__ */ React.createElement(
6
- Loader2Icon,
7
- {
8
- role: "status",
9
- "aria-label": "Loading",
10
- className: cn("size-4 animate-spin", className),
11
- ...props
12
- }
13
- );
14
- }
15
- export { Spinner };
@@ -1,4 +0,0 @@
1
- import { Switch as SwitchPrimitive } from "radix-ui";
2
- import * as React from "react";
3
- declare function Switch({ className, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root>): React.JSX.Element;
4
- export { Switch };
@@ -1,30 +0,0 @@
1
- "use client";
2
- import { Switch as SwitchPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { cn } from "../lib/utils.mjs";
5
- function Switch({
6
- className,
7
- ...props
8
- }) {
9
- return /* @__PURE__ */ React.createElement(
10
- SwitchPrimitive.Root,
11
- {
12
- "data-slot": "switch",
13
- className: cn(
14
- "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
15
- className
16
- ),
17
- ...props
18
- },
19
- /* @__PURE__ */ React.createElement(
20
- SwitchPrimitive.Thumb,
21
- {
22
- "data-slot": "switch-thumb",
23
- className: cn(
24
- "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
25
- )
26
- }
27
- )
28
- );
29
- }
30
- export { Switch };
@@ -1,10 +0,0 @@
1
- import * as React from "react";
2
- declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
3
- declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
4
- declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
5
- declare function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">): React.JSX.Element;
6
- declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
7
- declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
8
- declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
9
- declare function TableCaption({ className, ...props }: React.ComponentProps<"caption">): React.JSX.Element;
10
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -1,115 +0,0 @@
1
- "use client";
2
- import * as React from "react";
3
- import { cn } from "../lib/utils.mjs";
4
- function Table({ className, ...props }) {
5
- return /* @__PURE__ */ React.createElement(
6
- "div",
7
- {
8
- "data-slot": "table-container",
9
- className: "relative w-full overflow-x-auto"
10
- },
11
- /* @__PURE__ */ React.createElement(
12
- "table",
13
- {
14
- "data-slot": "table",
15
- className: cn("w-full caption-bottom text-sm", className),
16
- ...props
17
- }
18
- )
19
- );
20
- }
21
- function TableHeader({ className, ...props }) {
22
- return /* @__PURE__ */ React.createElement(
23
- "thead",
24
- {
25
- "data-slot": "table-header",
26
- className: cn("[&_tr]:border-b", className),
27
- ...props
28
- }
29
- );
30
- }
31
- function TableBody({ className, ...props }) {
32
- return /* @__PURE__ */ React.createElement(
33
- "tbody",
34
- {
35
- "data-slot": "table-body",
36
- className: cn("[&_tr:last-child]:border-0", className),
37
- ...props
38
- }
39
- );
40
- }
41
- function TableFooter({ className, ...props }) {
42
- return /* @__PURE__ */ React.createElement(
43
- "tfoot",
44
- {
45
- "data-slot": "table-footer",
46
- className: cn(
47
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
48
- className
49
- ),
50
- ...props
51
- }
52
- );
53
- }
54
- function TableRow({ className, ...props }) {
55
- return /* @__PURE__ */ React.createElement(
56
- "tr",
57
- {
58
- "data-slot": "table-row",
59
- className: cn(
60
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
61
- className
62
- ),
63
- ...props
64
- }
65
- );
66
- }
67
- function TableHead({ className, ...props }) {
68
- return /* @__PURE__ */ React.createElement(
69
- "th",
70
- {
71
- "data-slot": "table-head",
72
- className: cn(
73
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
74
- className
75
- ),
76
- ...props
77
- }
78
- );
79
- }
80
- function TableCell({ className, ...props }) {
81
- return /* @__PURE__ */ React.createElement(
82
- "td",
83
- {
84
- "data-slot": "table-cell",
85
- className: cn(
86
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
87
- className
88
- ),
89
- ...props
90
- }
91
- );
92
- }
93
- function TableCaption({
94
- className,
95
- ...props
96
- }) {
97
- return /* @__PURE__ */ React.createElement(
98
- "caption",
99
- {
100
- "data-slot": "table-caption",
101
- className: cn("text-muted-foreground mt-4 text-sm", className),
102
- ...props
103
- }
104
- );
105
- }
106
- export {
107
- Table,
108
- TableHeader,
109
- TableBody,
110
- TableFooter,
111
- TableHead,
112
- TableRow,
113
- TableCell,
114
- TableCaption
115
- };
@@ -1,7 +0,0 @@
1
- import { Tabs as TabsPrimitive } from "radix-ui";
2
- import * as React from "react";
3
- declare function Tabs({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
4
- declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): React.JSX.Element;
5
- declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
6
- declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
7
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,63 +0,0 @@
1
- "use client";
2
- import { Tabs as TabsPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { cn } from "../lib/utils.mjs";
5
- function Tabs({
6
- className,
7
- ...props
8
- }) {
9
- return /* @__PURE__ */ React.createElement(
10
- TabsPrimitive.Root,
11
- {
12
- "data-slot": "tabs",
13
- className: cn("flex flex-col gap-2", className),
14
- ...props
15
- }
16
- );
17
- }
18
- function TabsList({
19
- className,
20
- ...props
21
- }) {
22
- return /* @__PURE__ */ React.createElement(
23
- TabsPrimitive.List,
24
- {
25
- "data-slot": "tabs-list",
26
- className: cn(
27
- "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",
28
- className
29
- ),
30
- ...props
31
- }
32
- );
33
- }
34
- function TabsTrigger({
35
- className,
36
- ...props
37
- }) {
38
- return /* @__PURE__ */ React.createElement(
39
- TabsPrimitive.Trigger,
40
- {
41
- "data-slot": "tabs-trigger",
42
- className: cn(
43
- "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
44
- className
45
- ),
46
- ...props
47
- }
48
- );
49
- }
50
- function TabsContent({
51
- className,
52
- ...props
53
- }) {
54
- return /* @__PURE__ */ React.createElement(
55
- TabsPrimitive.Content,
56
- {
57
- "data-slot": "tabs-content",
58
- className: cn("flex-1 outline-none", className),
59
- ...props
60
- }
61
- );
62
- }
63
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
3
- export { Textarea };
@@ -1,16 +0,0 @@
1
- import * as React from "react";
2
- import { cn } from "../lib/utils.mjs";
3
- function Textarea({ className, ...props }) {
4
- return /* @__PURE__ */ React.createElement(
5
- "textarea",
6
- {
7
- "data-slot": "textarea",
8
- className: cn(
9
- "border-input placeholder:text-muted-foreground 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 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
10
- className
11
- ),
12
- ...props
13
- }
14
- );
15
- }
16
- export { Textarea };
@@ -1,9 +0,0 @@
1
- import type { VariantProps } from "class-variance-authority";
2
- import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { toggleVariants } from "./toggle";
5
- declare function ToggleGroup({ className, variant, size, spacing, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
6
- spacing?: number;
7
- }): React.JSX.Element;
8
- declare function ToggleGroupItem({ className, children, variant, size, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): React.JSX.Element;
9
- export { ToggleGroup, ToggleGroupItem };
@@ -1,65 +0,0 @@
1
- "use client";
2
- import { ToggleGroup as ToggleGroupPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { cn } from "../lib/utils.mjs";
5
- import { toggleVariants } from "./toggle.mjs";
6
- const ToggleGroupContext = React.createContext({
7
- size: "default",
8
- variant: "default",
9
- spacing: 0
10
- });
11
- function ToggleGroup({
12
- className,
13
- variant,
14
- size,
15
- spacing = 0,
16
- children,
17
- ...props
18
- }) {
19
- return /* @__PURE__ */ React.createElement(
20
- ToggleGroupPrimitive.Root,
21
- {
22
- "data-slot": "toggle-group",
23
- "data-variant": variant,
24
- "data-size": size,
25
- "data-spacing": spacing,
26
- style: { "--gap": spacing },
27
- className: cn(
28
- "group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
29
- className
30
- ),
31
- ...props
32
- },
33
- /* @__PURE__ */ React.createElement(ToggleGroupContext.Provider, { value: { variant, size, spacing } }, children)
34
- );
35
- }
36
- function ToggleGroupItem({
37
- className,
38
- children,
39
- variant,
40
- size,
41
- ...props
42
- }) {
43
- const context = React.useContext(ToggleGroupContext);
44
- return /* @__PURE__ */ React.createElement(
45
- ToggleGroupPrimitive.Item,
46
- {
47
- "data-slot": "toggle-group-item",
48
- "data-variant": context.variant || variant,
49
- "data-size": context.size || size,
50
- "data-spacing": context.spacing,
51
- className: cn(
52
- toggleVariants({
53
- variant: context.variant || variant,
54
- size: context.size || size
55
- }),
56
- "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
57
- "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
58
- className
59
- ),
60
- ...props
61
- },
62
- children
63
- );
64
- }
65
- export { ToggleGroup, ToggleGroupItem };
@@ -1,9 +0,0 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import { Toggle as TogglePrimitive } from "radix-ui";
3
- import * as React from "react";
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | null | undefined;
6
- size?: "default" | "sm" | "lg" | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
- declare function Toggle({ className, variant, size, ...props }: React.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): React.JSX.Element;
9
- export { Toggle, toggleVariants };
@@ -1,41 +0,0 @@
1
- "use client";
2
- import { cva } from "class-variance-authority";
3
- import { Toggle as TogglePrimitive } from "radix-ui";
4
- import * as React from "react";
5
- import { cn } from "../lib/utils.mjs";
6
- const toggleVariants = cva(
7
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
8
- {
9
- variants: {
10
- variant: {
11
- default: "bg-transparent",
12
- outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
13
- },
14
- size: {
15
- default: "h-9 px-2 min-w-9",
16
- sm: "h-8 px-1.5 min-w-8",
17
- lg: "h-10 px-2.5 min-w-10"
18
- }
19
- },
20
- defaultVariants: {
21
- variant: "default",
22
- size: "default"
23
- }
24
- }
25
- );
26
- function Toggle({
27
- className,
28
- variant,
29
- size,
30
- ...props
31
- }) {
32
- return /* @__PURE__ */ React.createElement(
33
- TogglePrimitive.Root,
34
- {
35
- "data-slot": "toggle",
36
- className: cn(toggleVariants({ variant, size, className })),
37
- ...props
38
- }
39
- );
40
- }
41
- export { Toggle, toggleVariants };
@@ -1,7 +0,0 @@
1
- import { Tooltip as TooltipPrimitive } from "radix-ui";
2
- import * as React from "react";
3
- declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
4
- declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
5
- declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): React.JSX.Element;
6
- declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): React.JSX.Element;
7
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
@@ -1,49 +0,0 @@
1
- "use client";
2
- import { Tooltip as TooltipPrimitive } from "radix-ui";
3
- import * as React from "react";
4
- import { cn } from "../lib/utils.mjs";
5
- function TooltipProvider({
6
- delayDuration = 0,
7
- ...props
8
- }) {
9
- return /* @__PURE__ */ React.createElement(
10
- TooltipPrimitive.Provider,
11
- {
12
- "data-slot": "tooltip-provider",
13
- delayDuration,
14
- ...props
15
- }
16
- );
17
- }
18
- function Tooltip({
19
- ...props
20
- }) {
21
- return /* @__PURE__ */ React.createElement(TooltipProvider, null, /* @__PURE__ */ React.createElement(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }));
22
- }
23
- function TooltipTrigger({
24
- ...props
25
- }) {
26
- return /* @__PURE__ */ React.createElement(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
27
- }
28
- function TooltipContent({
29
- className,
30
- sideOffset = 0,
31
- children,
32
- ...props
33
- }) {
34
- return /* @__PURE__ */ React.createElement(TooltipPrimitive.Portal, null, /* @__PURE__ */ React.createElement(
35
- TooltipPrimitive.Content,
36
- {
37
- "data-slot": "tooltip-content",
38
- sideOffset,
39
- className: cn(
40
- "bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
41
- className
42
- ),
43
- ...props
44
- },
45
- children,
46
- /* @__PURE__ */ React.createElement(TooltipPrimitive.Arrow, { className: "bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
47
- ));
48
- }
49
- export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
File without changes
@@ -1 +0,0 @@
1
- export declare function useIsMobile(): boolean;
@@ -1,17 +0,0 @@
1
- import * as React from "react";
2
- const MOBILE_BREAKPOINT = 768;
3
- export function useIsMobile() {
4
- const [isMobile, setIsMobile] = React.useState(
5
- void 0
6
- );
7
- React.useEffect(() => {
8
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
9
- const onChange = () => {
10
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
11
- };
12
- mql.addEventListener("change", onChange);
13
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
14
- return () => mql.removeEventListener("change", onChange);
15
- }, []);
16
- return !!isMobile;
17
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * Hook for user management.
3
- * @returns Returns an object with user data and functions for managing it.
4
- */
5
- export declare const useUser: () => {
6
- signOut: () => Promise<void>;
7
- user: import("@arch-cadre/core").AuthSession["user"] | null | undefined;
8
- session: import("@arch-cadre/core").AuthSession["session"] | null | undefined;
9
- kryoPrefix: string;
10
- isLoading: boolean;
11
- refetchUser: () => Promise<void>;
12
- };
@@ -1,12 +0,0 @@
1
- "use client";
2
- import { useContext } from "react";
3
- import { AuthContext } from "../providers/auth-provider.mjs";
4
- export const useUser = () => {
5
- const context = useContext(AuthContext);
6
- if (!context) {
7
- throw new Error("useUser must be used within AuthProvider");
8
- }
9
- const signOut = async () => {
10
- };
11
- return { ...context, signOut };
12
- };
package/dist/index.mjs DELETED
@@ -1,15 +0,0 @@
1
- export { Icon } from "@iconify/react";
2
- export { toast } from "sonner";
3
- export * from "./components/avatar.mjs";
4
- export * from "./components/badge.mjs";
5
- export * from "./components/button.mjs";
6
- export * from "./components/card.mjs";
7
- export * from "./components/checkbox.mjs";
8
- export * from "./components/dropdown-menu.mjs";
9
- export * from "./components/input.mjs";
10
- export * from "./components/label.mjs";
11
- export * from "./components/language-switcher.mjs";
12
- export * from "./components/skeleton.mjs";
13
- export * from "./components/table.mjs";
14
- export * from "./components/textarea.mjs";
15
- export * from "./lib/utils.mjs";
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
package/dist/logo.d.ts DELETED
@@ -1,15 +0,0 @@
1
- import type { VariantProps } from "class-variance-authority";
2
- import * as React from "react";
3
- declare const variants: (props?: ({
4
- variant?: "default" | "primary" | null | undefined;
5
- size?: "default" | "sm" | "md" | null | undefined;
6
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
- export interface LogoProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof variants> {
8
- asChild?: boolean;
9
- mode?: "full" | "short";
10
- }
11
- declare function Logo({ className, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof variants> & LogoProps): React.JSX.Element;
12
- declare namespace Logo {
13
- var displayName: string;
14
- }
15
- export { Logo, variants };