@arch-cadre/ui 0.0.23 → 0.0.24

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 (190) hide show
  1. package/dist/components/accordion.cjs +2 -2
  2. package/dist/components/accordion.mjs +2 -2
  3. package/dist/components/alert-dialog.cjs +2 -2
  4. package/dist/components/alert-dialog.mjs +2 -2
  5. package/dist/components/alert.cjs +1 -1
  6. package/dist/components/alert.d.ts +1 -1
  7. package/dist/components/alert.mjs +1 -1
  8. package/dist/components/avatar.cjs +1 -1
  9. package/dist/components/avatar.mjs +1 -1
  10. package/dist/components/badge.cjs +2 -2
  11. package/dist/components/badge.d.ts +1 -1
  12. package/dist/components/badge.mjs +2 -2
  13. package/dist/components/breadcrumb.cjs +2 -2
  14. package/dist/components/breadcrumb.mjs +2 -2
  15. package/dist/components/button-group.cjs +3 -3
  16. package/dist/components/button-group.d.ts +3 -2
  17. package/dist/components/button-group.mjs +3 -3
  18. package/dist/components/button.cjs +2 -2
  19. package/dist/components/button.d.ts +1 -1
  20. package/dist/components/button.mjs +2 -2
  21. package/dist/components/calendar.cjs +2 -2
  22. package/dist/components/calendar.d.ts +1 -1
  23. package/dist/components/calendar.mjs +2 -2
  24. package/dist/components/card.cjs +1 -1
  25. package/dist/components/card.mjs +1 -1
  26. package/dist/components/checkbox.cjs +2 -2
  27. package/dist/components/checkbox.mjs +2 -2
  28. package/dist/components/command.cjs +2 -2
  29. package/dist/components/command.d.ts +1 -1
  30. package/dist/components/command.mjs +2 -2
  31. package/dist/components/context-menu.cjs +2 -2
  32. package/dist/components/context-menu.mjs +2 -2
  33. package/dist/components/dialog.cjs +2 -2
  34. package/dist/components/dialog.mjs +2 -2
  35. package/dist/components/drawer.cjs +1 -1
  36. package/dist/components/drawer.mjs +1 -1
  37. package/dist/components/dropdown-menu.cjs +2 -2
  38. package/dist/components/dropdown-menu.mjs +2 -2
  39. package/dist/components/empty.cjs +1 -1
  40. package/dist/components/empty.d.ts +1 -1
  41. package/dist/components/empty.mjs +1 -1
  42. package/dist/components/field.cjs +3 -3
  43. package/dist/components/field.d.ts +2 -2
  44. package/dist/components/field.mjs +3 -3
  45. package/dist/components/form.cjs +2 -2
  46. package/dist/components/form.mjs +2 -2
  47. package/dist/components/hover-card.cjs +1 -1
  48. package/dist/components/hover-card.mjs +1 -1
  49. package/dist/components/input-group.cjs +4 -4
  50. package/dist/components/input-group.d.ts +3 -3
  51. package/dist/components/input-group.mjs +4 -4
  52. package/dist/components/input-otp.cjs +1 -1
  53. package/dist/components/input-otp.mjs +1 -1
  54. package/dist/components/input.cjs +1 -1
  55. package/dist/components/input.mjs +1 -1
  56. package/dist/components/item.cjs +3 -3
  57. package/dist/components/item.d.ts +3 -3
  58. package/dist/components/item.mjs +3 -3
  59. package/dist/components/kbd.cjs +1 -1
  60. package/dist/components/kbd.mjs +1 -1
  61. package/dist/components/label.cjs +1 -1
  62. package/dist/components/label.mjs +1 -1
  63. package/dist/components/language-switcher.cjs +2 -2
  64. package/dist/components/language-switcher.mjs +2 -2
  65. package/dist/components/menubar.cjs +2 -2
  66. package/dist/components/menubar.mjs +2 -2
  67. package/dist/components/navigation-menu.cjs +2 -2
  68. package/dist/components/navigation-menu.d.ts +1 -1
  69. package/dist/components/navigation-menu.mjs +2 -2
  70. package/dist/components/pagination.cjs +2 -2
  71. package/dist/components/pagination.d.ts +1 -1
  72. package/dist/components/pagination.mjs +2 -2
  73. package/dist/components/popover.cjs +1 -1
  74. package/dist/components/popover.mjs +1 -1
  75. package/dist/components/progress.cjs +1 -1
  76. package/dist/components/progress.mjs +1 -1
  77. package/dist/components/radio-group.cjs +2 -2
  78. package/dist/components/radio-group.mjs +2 -2
  79. package/dist/components/scroll-area.cjs +1 -1
  80. package/dist/components/scroll-area.mjs +1 -1
  81. package/dist/components/select.cjs +2 -2
  82. package/dist/components/select.mjs +2 -2
  83. package/dist/components/separator.cjs +1 -1
  84. package/dist/components/separator.mjs +1 -1
  85. package/dist/components/sheet.cjs +2 -2
  86. package/dist/components/sheet.mjs +2 -2
  87. package/dist/components/sidebar.cjs +9 -9
  88. package/dist/components/sidebar.d.ts +5 -5
  89. package/dist/components/sidebar.mjs +9 -9
  90. package/dist/components/skeleton.cjs +1 -1
  91. package/dist/components/skeleton.mjs +1 -1
  92. package/dist/components/slider.cjs +1 -1
  93. package/dist/components/slider.mjs +1 -1
  94. package/dist/components/spinner.cjs +1 -1
  95. package/dist/components/spinner.mjs +1 -1
  96. package/dist/components/switch.cjs +1 -1
  97. package/dist/components/switch.mjs +1 -1
  98. package/dist/components/table.cjs +1 -1
  99. package/dist/components/table.mjs +1 -1
  100. package/dist/components/tabs.cjs +1 -1
  101. package/dist/components/tabs.mjs +1 -1
  102. package/dist/components/textarea.cjs +1 -1
  103. package/dist/components/textarea.mjs +1 -1
  104. package/dist/components/toggle-group.cjs +2 -2
  105. package/dist/components/toggle-group.d.ts +2 -2
  106. package/dist/components/toggle-group.mjs +2 -2
  107. package/dist/components/toggle.cjs +2 -2
  108. package/dist/components/toggle.d.ts +2 -2
  109. package/dist/components/toggle.mjs +2 -2
  110. package/dist/components/tooltip.cjs +1 -1
  111. package/dist/components/tooltip.mjs +1 -1
  112. package/dist/hooks/use-user.cjs +1 -1
  113. package/dist/hooks/use-user.mjs +1 -1
  114. package/dist/index.cjs +33 -33
  115. package/dist/index.d.ts +13 -13
  116. package/dist/index.mjs +13 -13
  117. package/dist/logo.cjs +1 -1
  118. package/dist/logo.d.ts +1 -1
  119. package/dist/logo.mjs +1 -1
  120. package/dist/providers/auth-provider.cjs +1 -1
  121. package/dist/providers/auth-provider.mjs +1 -1
  122. package/dist/providers/index.cjs +4 -4
  123. package/dist/providers/index.mjs +4 -4
  124. package/dist/shared/access-denied.cjs +1 -1
  125. package/dist/shared/access-denied.mjs +1 -1
  126. package/dist/shared/loader.cjs +1 -1
  127. package/dist/shared/loader.d.ts +1 -1
  128. package/dist/shared/loader.mjs +1 -1
  129. package/dist/shared/page-loader.cjs +2 -2
  130. package/dist/shared/page-loader.mjs +2 -2
  131. package/dist/shared/scroll-fade-effect.cjs +1 -1
  132. package/dist/shared/scroll-fade-effect.mjs +1 -1
  133. package/package.json +5 -5
  134. package/src/components/accordion.tsx +2 -2
  135. package/src/components/alert-dialog.tsx +2 -2
  136. package/src/components/alert.tsx +1 -1
  137. package/src/components/avatar.tsx +1 -1
  138. package/src/components/badge.tsx +2 -2
  139. package/src/components/breadcrumb.tsx +2 -2
  140. package/src/components/button-group.tsx +4 -3
  141. package/src/components/button.tsx +2 -2
  142. package/src/components/calendar.tsx +2 -2
  143. package/src/components/card.tsx +1 -1
  144. package/src/components/checkbox.tsx +2 -2
  145. package/src/components/command.tsx +2 -2
  146. package/src/components/context-menu.tsx +2 -2
  147. package/src/components/dialog.tsx +2 -2
  148. package/src/components/drawer.tsx +1 -1
  149. package/src/components/dropdown-menu.tsx +2 -2
  150. package/src/components/empty.tsx +1 -1
  151. package/src/components/field.tsx +3 -3
  152. package/src/components/form.tsx +2 -2
  153. package/src/components/hover-card.tsx +1 -1
  154. package/src/components/input-group.tsx +4 -4
  155. package/src/components/input-otp.tsx +1 -1
  156. package/src/components/input.tsx +1 -1
  157. package/src/components/item.tsx +3 -3
  158. package/src/components/kbd.tsx +1 -1
  159. package/src/components/label.tsx +1 -1
  160. package/src/components/language-switcher.tsx +2 -2
  161. package/src/components/menubar.tsx +2 -2
  162. package/src/components/navigation-menu.tsx +2 -2
  163. package/src/components/pagination.tsx +2 -2
  164. package/src/components/popover.tsx +1 -1
  165. package/src/components/progress.tsx +1 -1
  166. package/src/components/radio-group.tsx +2 -2
  167. package/src/components/scroll-area.tsx +3 -3
  168. package/src/components/select.tsx +4 -4
  169. package/src/components/separator.tsx +1 -1
  170. package/src/components/sheet.tsx +6 -6
  171. package/src/components/sidebar.tsx +10 -10
  172. package/src/components/skeleton.tsx +1 -1
  173. package/src/components/slider.tsx +1 -1
  174. package/src/components/spinner.tsx +1 -1
  175. package/src/components/switch.tsx +1 -1
  176. package/src/components/table.tsx +1 -1
  177. package/src/components/tabs.tsx +1 -1
  178. package/src/components/textarea.tsx +1 -1
  179. package/src/components/toggle-group.tsx +3 -3
  180. package/src/components/toggle.tsx +2 -2
  181. package/src/components/tooltip.tsx +1 -1
  182. package/src/hooks/use-user.ts +1 -1
  183. package/src/index.ts +13 -14
  184. package/src/logo.tsx +2 -2
  185. package/src/providers/auth-provider.tsx +7 -7
  186. package/src/providers/index.tsx +4 -4
  187. package/src/shared/access-denied.tsx +1 -1
  188. package/src/shared/loader.tsx +2 -2
  189. package/src/shared/page-loader.tsx +2 -2
  190. package/src/shared/scroll-fade-effect.tsx +1 -1
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
- import { Logo } from "../logo.mjs";
3
- import { Loader } from "./loader.mjs";
2
+ import { Logo } from "../logo.js";
3
+ import { Loader } from "./loader.js";
4
4
  export function PageLoader({ withLogo = true, text }) {
5
5
  return /* @__PURE__ */ React.createElement("div", { className: "bg-background absolute inset-0 flex flex-col items-center justify-center space-y-6" }, withLogo && /* @__PURE__ */ React.createElement("div", { className: "mb-6" }, /* @__PURE__ */ React.createElement(Logo, null)), /* @__PURE__ */ React.createElement(Loader, null), text && /* @__PURE__ */ React.createElement("div", { className: "text-xs lowercase" }, text));
6
6
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ScrollFadeEffect = ScrollFadeEffect;
7
7
  var React = _interopRequireWildcard(require("react"));
8
- var _utils = require("../lib/utils.cjs");
8
+ var _utils = require("../lib/utils.js");
9
9
  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); }
10
10
  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; }
11
11
  function ScrollFadeEffect({
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { cn } from "../lib/utils.mjs";
2
+ import { cn } from "../lib/utils.js";
3
3
  export function ScrollFadeEffect({
4
4
  className,
5
5
  orientation = "vertical",
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@arch-cadre/ui",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
+ "main": "./dist/index.mjs",
5
6
  "exports": {
6
7
  "./package.json": "./package.json",
7
8
  "./globals.css": "./dist/styles/globals.css",
@@ -52,8 +53,8 @@
52
53
  "dev": "unbuild --stub"
53
54
  },
54
55
  "dependencies": {
55
- "@arch-cadre/core": "0.0.23",
56
- "@arch-cadre/intl": "0.0.23",
56
+ "@arch-cadre/core": "^0.0.24",
57
+ "@arch-cadre/intl": "^0.0.24",
57
58
  "@hookform/resolvers": "^5.2.2",
58
59
  "@iconify-json/solar": "^1.2.2",
59
60
  "@iconify/react": "^6.0.0",
@@ -87,6 +88,5 @@
87
88
  "tailwindcss": "^4.1.11",
88
89
  "typescript": "^5.9.2",
89
90
  "unbuild": "^3.6.1"
90
- },
91
- "main": "./dist/index.mjs"
91
+ }
92
92
  }
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Accordion as AccordionPrimitive } from "radix-ui";
4
3
  import { ChevronDownIcon } from "lucide-react";
4
+ import { Accordion as AccordionPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Accordion({
10
10
  ...props
@@ -3,8 +3,8 @@
3
3
  import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
7
- import { buttonVariants } from "./button";
6
+ import { cn } from "../lib/utils.js";
7
+ import { buttonVariants } from "./button.js";
8
8
 
9
9
  function AlertDialog({
10
10
  ...props
@@ -1,7 +1,7 @@
1
1
  import { cva, type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
 
4
- import { cn } from "../lib/utils";
4
+ import { cn } from "../lib/utils.js";
5
5
 
6
6
  const alertVariants = cva(
7
7
  "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
@@ -3,7 +3,7 @@
3
3
  import { Avatar as AvatarPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Avatar({
9
9
  className,
@@ -1,8 +1,8 @@
1
- import { Slot as SlotPrimitive } from "radix-ui";
2
1
  import { cva, type VariantProps } from "class-variance-authority";
2
+ import { Slot as SlotPrimitive } from "radix-ui";
3
3
  import * as React from "react";
4
4
 
5
- import { cn } from "../lib/utils";
5
+ import { cn } from "../lib/utils.js";
6
6
 
7
7
  const badgeVariants = cva(
8
8
  "inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
@@ -1,8 +1,8 @@
1
- import { Slot as SlotPrimitive } from "radix-ui";
2
1
  import { ChevronRight, MoreHorizontal } from "lucide-react";
2
+ import { Slot as SlotPrimitive } from "radix-ui";
3
3
  import * as React from "react";
4
4
 
5
- import { cn } from "../lib/utils";
5
+ import { cn } from "../lib/utils.js";
6
6
 
7
7
  function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
8
8
  return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />;
@@ -1,10 +1,11 @@
1
1
  /** biome-ignore-all lint/a11y/useSemanticElements: <explanation> */
2
- import { Slot as SlotPrimitive } from "radix-ui";
2
+
3
3
  import { cva, type VariantProps } from "class-variance-authority";
4
+ import { Slot as SlotPrimitive } from "radix-ui";
4
5
  import * as React from "react";
5
6
 
6
- import { cn } from "../lib/utils";
7
- import { Separator } from "./separator";
7
+ import { cn } from "../lib/utils.js";
8
+ import { Separator } from "./separator.js";
8
9
 
9
10
  const buttonGroupVariants = cva(
10
11
  "flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
@@ -1,8 +1,8 @@
1
- import { Slot as SlotPrimitive } from "radix-ui";
2
1
  import { cva, type VariantProps } from "class-variance-authority";
2
+ import { Slot as SlotPrimitive } from "radix-ui";
3
3
  import * as React from "react";
4
4
 
5
- import { cn } from "../lib/utils";
5
+ import { cn } from "../lib/utils.js";
6
6
 
7
7
  const buttonVariants = cva(
8
8
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
@@ -12,8 +12,8 @@ import {
12
12
  getDefaultClassNames,
13
13
  } from "react-day-picker";
14
14
 
15
- import { cn } from "../lib/utils";
16
- import { Button, buttonVariants } from "./button";
15
+ import { cn } from "../lib/utils.js";
16
+ import { Button, buttonVariants } from "./button.js";
17
17
 
18
18
  function Calendar({
19
19
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- import { cn } from "../lib/utils";
3
+ import { cn } from "../lib/utils.js";
4
4
 
5
5
  function Card({ className, ...props }: React.ComponentProps<"div">) {
6
6
  return (
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Checkbox as CheckboxPrimitive } from "radix-ui";
4
3
  import { CheckIcon } from "lucide-react";
4
+ import { Checkbox as CheckboxPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Checkbox({
10
10
  className,
@@ -4,14 +4,14 @@ import { Command as CommandPrimitive } from "cmdk";
4
4
  import { SearchIcon } from "lucide-react";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
  import {
9
9
  Dialog,
10
10
  DialogContent,
11
11
  DialogDescription,
12
12
  DialogHeader,
13
13
  DialogTitle,
14
- } from "./dialog";
14
+ } from "./dialog.js";
15
15
 
16
16
  function Command({
17
17
  className,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
4
3
  import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4
+ import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function ContextMenu({
10
10
  ...props
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Dialog as DialogPrimitive } from "radix-ui";
4
3
  import { XIcon } from "lucide-react";
4
+ import { Dialog as DialogPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Dialog({
10
10
  ...props
@@ -3,7 +3,7 @@
3
3
  import * as React from "react";
4
4
  import { Drawer as DrawerPrimitive } from "vaul";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Drawer({
9
9
  ...props
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
4
3
  import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4
+ import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function DropdownMenu({
10
10
  ...props
@@ -1,7 +1,7 @@
1
1
  import { cva, type VariantProps } from "class-variance-authority";
2
2
  import * as React from "react";
3
3
 
4
- import { cn } from "../lib/utils";
4
+ import { cn } from "../lib/utils.js";
5
5
 
6
6
  function Empty({ className, ...props }: React.ComponentProps<"div">) {
7
7
  return (
@@ -6,9 +6,9 @@ import { cva, type VariantProps } from "class-variance-authority";
6
6
  import * as React from "react";
7
7
  import { useMemo } from "react";
8
8
 
9
- import { cn } from "../lib/utils";
10
- import { Label } from "./label";
11
- import { Separator } from "./separator";
9
+ import { cn } from "../lib/utils.js";
10
+ import { Label } from "./label.js";
11
+ import { Separator } from "./separator.js";
12
12
 
13
13
  function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">) {
14
14
  return (
@@ -13,8 +13,8 @@ import {
13
13
  useFormState,
14
14
  } from "react-hook-form";
15
15
 
16
- import { cn } from "../lib/utils";
17
- import { Label } from "./label";
16
+ import { cn } from "../lib/utils.js";
17
+ import { Label } from "./label.js";
18
18
 
19
19
  const Form = FormProvider;
20
20
 
@@ -3,7 +3,7 @@
3
3
  import { HoverCard as HoverCardPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function HoverCard({
9
9
  ...props
@@ -3,10 +3,10 @@
3
3
  import { cva, type VariantProps } from "class-variance-authority";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
7
- import { Button } from "./button";
8
- import { Input } from "./input";
9
- import { Textarea } from "./textarea";
6
+ import { cn } from "../lib/utils.js";
7
+ import { Button } from "./button.js";
8
+ import { Input } from "./input.js";
9
+ import { Textarea } from "./textarea.js";
10
10
 
11
11
  function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
12
12
  return (
@@ -4,7 +4,7 @@ import { OTPInput, OTPInputContext } from "input-otp";
4
4
  import { MinusIcon } from "lucide-react";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function InputOTP({
10
10
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
 
3
- import { cn } from "../lib/utils";
3
+ import { cn } from "../lib/utils.js";
4
4
 
5
5
  function Input({ className, type, ...props }: React.ComponentProps<"input">) {
6
6
  return (
@@ -1,9 +1,9 @@
1
- import { Slot as SlotPrimitive } from "radix-ui";
2
1
  import { cva, type VariantProps } from "class-variance-authority";
2
+ import { Slot as SlotPrimitive } from "radix-ui";
3
3
  import * as React from "react";
4
4
 
5
- import { cn } from "../lib/utils";
6
- import { Separator } from "./separator";
5
+ import { cn } from "../lib/utils.js";
6
+ import { Separator } from "./separator.js";
7
7
 
8
8
  function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
9
9
  return (
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { cn } from "../lib/utils";
2
+ import { cn } from "../lib/utils.js";
3
3
 
4
4
  function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
5
5
  return (
@@ -3,7 +3,7 @@
3
3
  import { Label as LabelPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Label({
9
9
  className,
@@ -4,13 +4,13 @@ import { LOCALES, useLocale, useTranslation } from "@arch-cadre/intl";
4
4
  import { Languages } from "lucide-react";
5
5
  import { useRouter } from "next/navigation";
6
6
  import * as React from "react";
7
- import { Button } from "./button";
7
+ import { Button } from "./button.js";
8
8
  import {
9
9
  DropdownMenu,
10
10
  DropdownMenuContent,
11
11
  DropdownMenuItem,
12
12
  DropdownMenuTrigger,
13
- } from "./dropdown-menu";
13
+ } from "./dropdown-menu.js";
14
14
 
15
15
  export function LanguageSwitcher() {
16
16
  const locale = useLocale();
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Menubar as MenubarPrimitive } from "radix-ui";
4
3
  import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4
+ import { Menubar as MenubarPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Menubar({
10
10
  className,
@@ -1,9 +1,9 @@
1
- import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
2
1
  import { cva } from "class-variance-authority";
3
2
  import { ChevronDownIcon } from "lucide-react";
3
+ import { NavigationMenu as NavigationMenuPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function NavigationMenu({
9
9
  className,
@@ -8,8 +8,8 @@ import {
8
8
  } from "lucide-react";
9
9
  import * as React from "react";
10
10
 
11
- import { cn } from "../lib/utils";
12
- import { type Button, buttonVariants } from "./button";
11
+ import { cn } from "../lib/utils.js";
12
+ import { type Button, buttonVariants } from "./button.js";
13
13
 
14
14
  function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
15
15
  return (
@@ -3,7 +3,7 @@
3
3
  import { Popover as PopoverPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Popover({
9
9
  ...props
@@ -3,7 +3,7 @@
3
3
  import { Progress as ProgressPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Progress({
9
9
  className,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
4
3
  import { CircleIcon } from "lucide-react";
4
+ import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function RadioGroup({
10
10
  className,
@@ -3,7 +3,7 @@
3
3
  import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function ScrollArea({
9
9
  className,
@@ -49,9 +49,9 @@ function ScrollBar({
49
49
  className={cn(
50
50
  "flex touch-none p-px transition-colors select-none",
51
51
  orientation === "vertical" &&
52
- "h-full w-2.5 border-l border-l-transparent",
52
+ "h-full w-2.5 border-l border-l-transparent",
53
53
  orientation === "horizontal" &&
54
- "h-2.5 flex-col border-t border-t-transparent",
54
+ "h-2.5 flex-col border-t border-t-transparent",
55
55
  className,
56
56
  )}
57
57
  {...props}
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Select as SelectPrimitive } from "radix-ui";
4
3
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
4
+ import { Select as SelectPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Select({
10
10
  ...props
@@ -64,7 +64,7 @@ function SelectContent({
64
64
  className={cn(
65
65
  "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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
66
66
  position === "popper" &&
67
- "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
67
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
68
68
  className,
69
69
  )}
70
70
  position={position}
@@ -76,7 +76,7 @@ function SelectContent({
76
76
  className={cn(
77
77
  "p-1",
78
78
  position === "popper" &&
79
- "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",
79
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1",
80
80
  )}
81
81
  >
82
82
  {children}
@@ -3,7 +3,7 @@
3
3
  import { Separator as SeparatorPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Separator({
9
9
  className,
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
 
3
- import { Dialog as SheetPrimitive } from "radix-ui";
4
3
  import { XIcon } from "lucide-react";
4
+ import { Dialog as SheetPrimitive } from "radix-ui";
5
5
  import * as React from "react";
6
6
 
7
- import { cn } from "../lib/utils";
7
+ import { cn } from "../lib/utils.js";
8
8
 
9
9
  function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
10
10
  return <SheetPrimitive.Root data-slot="sheet" {...props} />;
@@ -60,13 +60,13 @@ function SheetContent({
60
60
  className={cn(
61
61
  "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
62
62
  side === "right" &&
63
- "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
63
+ "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
64
64
  side === "left" &&
65
- "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
65
+ "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
66
66
  side === "top" &&
67
- "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
67
+ "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
68
68
  side === "bottom" &&
69
- "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
69
+ "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
70
70
  className,
71
71
  )}
72
72
  {...props}
@@ -1,29 +1,29 @@
1
1
  /** biome-ignore-all lint/correctness/useExhaustiveDependencies: <any> */
2
2
  "use client";
3
3
 
4
- import { Slot as SlotPrimitive } from "radix-ui";
5
4
  import { cva, type VariantProps } from "class-variance-authority";
6
5
  import { PanelLeftIcon } from "lucide-react";
6
+ import { Slot as SlotPrimitive } from "radix-ui";
7
7
  import * as React from "react";
8
- import { useIsMobile } from "../hooks/use-mobile";
9
- import { cn } from "../lib/utils";
10
- import { Button } from "./button";
11
- import { Input } from "./input";
12
- import { Separator } from "./separator";
8
+ import { useIsMobile } from "../hooks/use-mobile.js";
9
+ import { cn } from "../lib/utils.js";
10
+ import { Button } from "./button.js";
11
+ import { Input } from "./input.js";
12
+ import { Separator } from "./separator.js";
13
13
  import {
14
14
  Sheet,
15
15
  SheetContent,
16
16
  SheetDescription,
17
17
  SheetHeader,
18
18
  SheetTitle,
19
- } from "./sheet";
20
- import { Skeleton } from "./skeleton";
19
+ } from "./sheet.js";
20
+ import { Skeleton } from "./skeleton.js";
21
21
  import {
22
22
  Tooltip,
23
23
  TooltipContent,
24
24
  TooltipProvider,
25
25
  TooltipTrigger,
26
- } from "./tooltip";
26
+ } from "./tooltip.js";
27
27
 
28
28
  const SIDEBAR_COOKIE_NAME = "sidebar_state";
29
29
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -569,7 +569,7 @@ function SidebarMenuAction({
569
569
  "peer-data-[size=lg]/menu-button:top-3",
570
570
  "group-data-[collapsible=icon]:hidden",
571
571
  showOnHover &&
572
- "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
572
+ "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
573
573
  className,
574
574
  )}
575
575
  {...props}
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { cn } from "../lib/utils";
2
+ import { cn } from "../lib/utils.js";
3
3
 
4
4
  function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
5
5
  return (
@@ -3,7 +3,7 @@
3
3
  import { Slider as SliderPrimitive } from "radix-ui";
4
4
  import * as React from "react";
5
5
 
6
- import { cn } from "../lib/utils";
6
+ import { cn } from "../lib/utils.js";
7
7
 
8
8
  function Slider({
9
9
  className,