@arch-cadre/ui 0.0.33 → 0.0.34

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 (65) hide show
  1. package/build.config.ts +7 -7
  2. package/package.json +3 -3
  3. package/dist/components/accordion.cjs +0 -62
  4. package/dist/components/alert-dialog.cjs +0 -127
  5. package/dist/components/alert.cjs +0 -58
  6. package/dist/components/aspect-ratio.cjs +0 -19
  7. package/dist/components/avatar.cjs +0 -44
  8. package/dist/components/badge.cjs +0 -41
  9. package/dist/components/breadcrumb.cjs +0 -106
  10. package/dist/components/button-group.cjs +0 -65
  11. package/dist/components/button.cjs +0 -57
  12. package/dist/components/calendar.cjs +0 -143
  13. package/dist/components/card.cjs +0 -86
  14. package/dist/components/checkbox.cjs +0 -28
  15. package/dist/components/collapsible.cjs +0 -37
  16. package/dist/components/command.cjs +0 -125
  17. package/dist/components/context-menu.cjs +0 -188
  18. package/dist/components/dialog.cjs +0 -123
  19. package/dist/components/drawer.cjs +0 -118
  20. package/dist/components/dropdown-menu.cjs +0 -190
  21. package/dist/components/empty.cjs +0 -92
  22. package/dist/components/field.cjs +0 -173
  23. package/dist/components/form.cjs +0 -143
  24. package/dist/components/hover-card.cjs +0 -46
  25. package/dist/components/input-group.cjs +0 -130
  26. package/dist/components/input-otp.cjs +0 -69
  27. package/dist/components/input.cjs +0 -22
  28. package/dist/components/item.cjs +0 -168
  29. package/dist/components/kbd.cjs +0 -31
  30. package/dist/components/label.cjs +0 -22
  31. package/dist/components/language-switcher.cjs +0 -43
  32. package/dist/components/menubar.cjs +0 -207
  33. package/dist/components/navigation-menu.cjs +0 -113
  34. package/dist/components/pagination.cjs +0 -106
  35. package/dist/components/popover.cjs +0 -53
  36. package/dist/components/progress.cjs +0 -29
  37. package/dist/components/radio-group.cjs +0 -39
  38. package/dist/components/scroll-area.cjs +0 -45
  39. package/dist/components/select.cjs +0 -140
  40. package/dist/components/separator.cjs +0 -26
  41. package/dist/components/sheet.cjs +0 -120
  42. package/dist/components/sidebar.cjs +0 -508
  43. package/dist/components/skeleton.cjs +0 -20
  44. package/dist/components/slider.cjs +0 -43
  45. package/dist/components/sonner.cjs +0 -49
  46. package/dist/components/spinner.cjs +0 -22
  47. package/dist/components/switch.cjs +0 -25
  48. package/dist/components/table.cjs +0 -101
  49. package/dist/components/tabs.cjs +0 -55
  50. package/dist/components/textarea.cjs +0 -20
  51. package/dist/components/toggle-group.cjs +0 -65
  52. package/dist/components/toggle.cjs +0 -47
  53. package/dist/components/tooltip.cjs +0 -56
  54. package/dist/hooks/use-mobile.cjs +0 -23
  55. package/dist/hooks/use-user.cjs +0 -21
  56. package/dist/index.cjs +0 -179
  57. package/dist/lib/utils.cjs +0 -11
  58. package/dist/logo.cjs +0 -49
  59. package/dist/postcss.config.cjs +0 -13
  60. package/dist/providers/auth-provider.cjs +0 -44
  61. package/dist/providers/index.cjs +0 -47
  62. package/dist/shared/access-denied.cjs +0 -38
  63. package/dist/shared/loader.cjs +0 -95
  64. package/dist/shared/page-loader.cjs +0 -23
  65. package/dist/shared/scroll-fade-effect.cjs +0 -21
@@ -1,168 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Item = Item;
7
- exports.ItemActions = ItemActions;
8
- exports.ItemContent = ItemContent;
9
- exports.ItemDescription = ItemDescription;
10
- exports.ItemFooter = ItemFooter;
11
- exports.ItemGroup = ItemGroup;
12
- exports.ItemHeader = ItemHeader;
13
- exports.ItemMedia = ItemMedia;
14
- exports.ItemSeparator = ItemSeparator;
15
- exports.ItemTitle = ItemTitle;
16
- var _classVarianceAuthority = require("class-variance-authority");
17
- var _radixUi = require("radix-ui");
18
- var React = _interopRequireWildcard(require("react"));
19
- var _utils = require("../lib/utils.cjs");
20
- var _separator = require("./separator.cjs");
21
- 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); }
22
- 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; }
23
- function ItemGroup({
24
- className,
25
- ...props
26
- }) {
27
- return /* @__PURE__ */React.createElement("div", {
28
- role: "list",
29
- "data-slot": "item-group",
30
- className: (0, _utils.cn)("group/item-group flex flex-col", className),
31
- ...props
32
- });
33
- }
34
- function ItemSeparator({
35
- className,
36
- ...props
37
- }) {
38
- return /* @__PURE__ */React.createElement(_separator.Separator, {
39
- "data-slot": "item-separator",
40
- orientation: "horizontal",
41
- className: (0, _utils.cn)("my-0", className),
42
- ...props
43
- });
44
- }
45
- const itemVariants = (0, _classVarianceAuthority.cva)("group/item flex items-center border border-transparent text-sm rounded-md transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", {
46
- variants: {
47
- variant: {
48
- default: "bg-transparent",
49
- outline: "border-border",
50
- muted: "bg-muted/50"
51
- },
52
- size: {
53
- default: "p-4 gap-4 ",
54
- sm: "py-3 px-4 gap-2.5"
55
- }
56
- },
57
- defaultVariants: {
58
- variant: "default",
59
- size: "default"
60
- }
61
- });
62
- function Item({
63
- className,
64
- variant = "default",
65
- size = "default",
66
- asChild = false,
67
- ...props
68
- }) {
69
- const Comp = asChild ? _radixUi.Slot.Slot : "div";
70
- return /* @__PURE__ */React.createElement(Comp, {
71
- "data-slot": "item",
72
- "data-variant": variant,
73
- "data-size": size,
74
- className: (0, _utils.cn)(itemVariants({
75
- variant,
76
- size,
77
- className
78
- })),
79
- ...props
80
- });
81
- }
82
- const itemMediaVariants = (0, _classVarianceAuthority.cva)("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5", {
83
- variants: {
84
- variant: {
85
- default: "bg-transparent",
86
- icon: "size-8 border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4",
87
- image: "size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover"
88
- }
89
- },
90
- defaultVariants: {
91
- variant: "default"
92
- }
93
- });
94
- function ItemMedia({
95
- className,
96
- variant = "default",
97
- ...props
98
- }) {
99
- return /* @__PURE__ */React.createElement("div", {
100
- "data-slot": "item-media",
101
- "data-variant": variant,
102
- className: (0, _utils.cn)(itemMediaVariants({
103
- variant,
104
- className
105
- })),
106
- ...props
107
- });
108
- }
109
- function ItemContent({
110
- className,
111
- ...props
112
- }) {
113
- return /* @__PURE__ */React.createElement("div", {
114
- "data-slot": "item-content",
115
- className: (0, _utils.cn)("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className),
116
- ...props
117
- });
118
- }
119
- function ItemTitle({
120
- className,
121
- ...props
122
- }) {
123
- return /* @__PURE__ */React.createElement("div", {
124
- "data-slot": "item-title",
125
- className: (0, _utils.cn)("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
126
- ...props
127
- });
128
- }
129
- function ItemDescription({
130
- className,
131
- ...props
132
- }) {
133
- return /* @__PURE__ */React.createElement("p", {
134
- "data-slot": "item-description",
135
- className: (0, _utils.cn)("text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className),
136
- ...props
137
- });
138
- }
139
- function ItemActions({
140
- className,
141
- ...props
142
- }) {
143
- return /* @__PURE__ */React.createElement("div", {
144
- "data-slot": "item-actions",
145
- className: (0, _utils.cn)("flex items-center gap-2", className),
146
- ...props
147
- });
148
- }
149
- function ItemHeader({
150
- className,
151
- ...props
152
- }) {
153
- return /* @__PURE__ */React.createElement("div", {
154
- "data-slot": "item-header",
155
- className: (0, _utils.cn)("flex basis-full items-center justify-between gap-2", className),
156
- ...props
157
- });
158
- }
159
- function ItemFooter({
160
- className,
161
- ...props
162
- }) {
163
- return /* @__PURE__ */React.createElement("div", {
164
- "data-slot": "item-footer",
165
- className: (0, _utils.cn)("flex basis-full items-center justify-between gap-2", className),
166
- ...props
167
- });
168
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Kbd = Kbd;
7
- exports.KbdGroup = KbdGroup;
8
- var React = _interopRequireWildcard(require("react"));
9
- var _utils = require("../lib/utils.cjs");
10
- 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); }
11
- 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; }
12
- function Kbd({
13
- className,
14
- ...props
15
- }) {
16
- return /* @__PURE__ */React.createElement("kbd", {
17
- "data-slot": "kbd",
18
- className: (0, _utils.cn)("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none", "[&_svg:not([class*='size-'])]:size-3", "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10", className),
19
- ...props
20
- });
21
- }
22
- function KbdGroup({
23
- className,
24
- ...props
25
- }) {
26
- return /* @__PURE__ */React.createElement("kbd", {
27
- "data-slot": "kbd-group",
28
- className: (0, _utils.cn)("inline-flex items-center gap-1", className),
29
- ...props
30
- });
31
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- "use client";
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Label = Label;
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 Label({
14
- className,
15
- ...props
16
- }) {
17
- return /* @__PURE__ */React.createElement(_radixUi.Label.Root, {
18
- "data-slot": "label",
19
- className: (0, _utils.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
20
- ...props
21
- });
22
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- "use client";
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.LanguageSwitcher = LanguageSwitcher;
8
- var _intl = require("@arch-cadre/intl");
9
- var _lucideReact = require("lucide-react");
10
- var _navigation = require("next/navigation");
11
- var React = _interopRequireWildcard(require("react"));
12
- var _button = require("./button.cjs");
13
- var _dropdownMenu = require("./dropdown-menu.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 LanguageSwitcher() {
17
- const locale = (0, _intl.useLocale)();
18
- const router = (0, _navigation.useRouter)();
19
- const {
20
- t
21
- } = (0, _intl.useTranslation)();
22
- const handleLanguageChange = newLocale => {
23
- document.cookie = `NEXT_LOCALE=${newLocale}; path=/; max-age=31536000; SameSite=Lax`;
24
- router.refresh();
25
- };
26
- return /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenu, null, /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuTrigger, {
27
- asChild: true
28
- }, /* @__PURE__ */React.createElement(_button.Button, {
29
- variant: "ghost",
30
- size: "icon",
31
- className: "size-9"
32
- }, /* @__PURE__ */React.createElement(_lucideReact.Languages, {
33
- className: "size-4"
34
- }), /* @__PURE__ */React.createElement("span", {
35
- className: "sr-only"
36
- }, t("Switch language")))), /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuContent, {
37
- align: "end"
38
- }, _intl.LOCALES.map(loc => /* @__PURE__ */React.createElement(_dropdownMenu.DropdownMenuItem, {
39
- key: loc,
40
- onClick: () => handleLanguageChange(loc),
41
- className: locale === loc ? "font-bold" : ""
42
- }, loc))));
43
- }
@@ -1,207 +0,0 @@
1
- "use strict";
2
- "use client";
3
-
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.Menubar = Menubar;
8
- exports.MenubarCheckboxItem = MenubarCheckboxItem;
9
- exports.MenubarContent = MenubarContent;
10
- exports.MenubarGroup = MenubarGroup;
11
- exports.MenubarItem = MenubarItem;
12
- exports.MenubarLabel = MenubarLabel;
13
- exports.MenubarMenu = MenubarMenu;
14
- exports.MenubarPortal = MenubarPortal;
15
- exports.MenubarRadioGroup = MenubarRadioGroup;
16
- exports.MenubarRadioItem = MenubarRadioItem;
17
- exports.MenubarSeparator = MenubarSeparator;
18
- exports.MenubarShortcut = MenubarShortcut;
19
- exports.MenubarSub = MenubarSub;
20
- exports.MenubarSubContent = MenubarSubContent;
21
- exports.MenubarSubTrigger = MenubarSubTrigger;
22
- exports.MenubarTrigger = MenubarTrigger;
23
- var _lucideReact = require("lucide-react");
24
- var _radixUi = require("radix-ui");
25
- var React = _interopRequireWildcard(require("react"));
26
- var _utils = require("../lib/utils.cjs");
27
- 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); }
28
- 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; }
29
- function Menubar({
30
- className,
31
- ...props
32
- }) {
33
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Root, {
34
- "data-slot": "menubar",
35
- className: (0, _utils.cn)("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", className),
36
- ...props
37
- });
38
- }
39
- function MenubarMenu({
40
- ...props
41
- }) {
42
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Menu, {
43
- "data-slot": "menubar-menu",
44
- ...props
45
- });
46
- }
47
- function MenubarGroup({
48
- ...props
49
- }) {
50
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Group, {
51
- "data-slot": "menubar-group",
52
- ...props
53
- });
54
- }
55
- function MenubarPortal({
56
- ...props
57
- }) {
58
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Portal, {
59
- "data-slot": "menubar-portal",
60
- ...props
61
- });
62
- }
63
- function MenubarRadioGroup({
64
- ...props
65
- }) {
66
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.RadioGroup, {
67
- "data-slot": "menubar-radio-group",
68
- ...props
69
- });
70
- }
71
- function MenubarTrigger({
72
- className,
73
- ...props
74
- }) {
75
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Trigger, {
76
- "data-slot": "menubar-trigger",
77
- className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", className),
78
- ...props
79
- });
80
- }
81
- function MenubarContent({
82
- className,
83
- align = "start",
84
- alignOffset = -4,
85
- sideOffset = 8,
86
- ...props
87
- }) {
88
- return /* @__PURE__ */React.createElement(MenubarPortal, null, /* @__PURE__ */React.createElement(_radixUi.Menubar.Content, {
89
- "data-slot": "menubar-content",
90
- align,
91
- alignOffset,
92
- sideOffset,
93
- className: (0, _utils.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in 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 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", className),
94
- ...props
95
- }));
96
- }
97
- function MenubarItem({
98
- className,
99
- inset,
100
- variant = "default",
101
- ...props
102
- }) {
103
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Item, {
104
- "data-slot": "menubar-item",
105
- "data-inset": inset,
106
- "data-variant": variant,
107
- className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
108
- ...props
109
- });
110
- }
111
- function MenubarCheckboxItem({
112
- className,
113
- children,
114
- checked,
115
- ...props
116
- }) {
117
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.CheckboxItem, {
118
- "data-slot": "menubar-checkbox-item",
119
- className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
120
- checked,
121
- ...props
122
- }, /* @__PURE__ */React.createElement("span", {
123
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
124
- }, /* @__PURE__ */React.createElement(_radixUi.Menubar.ItemIndicator, null, /* @__PURE__ */React.createElement(_lucideReact.CheckIcon, {
125
- className: "size-4"
126
- }))), children);
127
- }
128
- function MenubarRadioItem({
129
- className,
130
- children,
131
- ...props
132
- }) {
133
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.RadioItem, {
134
- "data-slot": "menubar-radio-item",
135
- className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
136
- ...props
137
- }, /* @__PURE__ */React.createElement("span", {
138
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
139
- }, /* @__PURE__ */React.createElement(_radixUi.Menubar.ItemIndicator, null, /* @__PURE__ */React.createElement(_lucideReact.CircleIcon, {
140
- className: "size-2 fill-current"
141
- }))), children);
142
- }
143
- function MenubarLabel({
144
- className,
145
- inset,
146
- ...props
147
- }) {
148
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Label, {
149
- "data-slot": "menubar-label",
150
- "data-inset": inset,
151
- className: (0, _utils.cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
152
- ...props
153
- });
154
- }
155
- function MenubarSeparator({
156
- className,
157
- ...props
158
- }) {
159
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Separator, {
160
- "data-slot": "menubar-separator",
161
- className: (0, _utils.cn)("bg-border -mx-1 my-1 h-px", className),
162
- ...props
163
- });
164
- }
165
- function MenubarShortcut({
166
- className,
167
- ...props
168
- }) {
169
- return /* @__PURE__ */React.createElement("span", {
170
- "data-slot": "menubar-shortcut",
171
- className: (0, _utils.cn)("text-muted-foreground ml-auto text-xs tracking-widest", className),
172
- ...props
173
- });
174
- }
175
- function MenubarSub({
176
- ...props
177
- }) {
178
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.Sub, {
179
- "data-slot": "menubar-sub",
180
- ...props
181
- });
182
- }
183
- function MenubarSubTrigger({
184
- className,
185
- inset,
186
- children,
187
- ...props
188
- }) {
189
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.SubTrigger, {
190
- "data-slot": "menubar-sub-trigger",
191
- "data-inset": inset,
192
- className: (0, _utils.cn)("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", className),
193
- ...props
194
- }, children, /* @__PURE__ */React.createElement(_lucideReact.ChevronRightIcon, {
195
- className: "ml-auto h-4 w-4"
196
- }));
197
- }
198
- function MenubarSubContent({
199
- className,
200
- ...props
201
- }) {
202
- return /* @__PURE__ */React.createElement(_radixUi.Menubar.SubContent, {
203
- "data-slot": "menubar-sub-content",
204
- 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 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
205
- ...props
206
- });
207
- }
@@ -1,113 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NavigationMenu = NavigationMenu;
7
- exports.NavigationMenuContent = NavigationMenuContent;
8
- exports.NavigationMenuIndicator = NavigationMenuIndicator;
9
- exports.NavigationMenuItem = NavigationMenuItem;
10
- exports.NavigationMenuLink = NavigationMenuLink;
11
- exports.NavigationMenuList = NavigationMenuList;
12
- exports.NavigationMenuTrigger = NavigationMenuTrigger;
13
- exports.NavigationMenuViewport = NavigationMenuViewport;
14
- exports.navigationMenuTriggerStyle = void 0;
15
- var _classVarianceAuthority = require("class-variance-authority");
16
- var _lucideReact = require("lucide-react");
17
- var _radixUi = require("radix-ui");
18
- var React = _interopRequireWildcard(require("react"));
19
- var _utils = require("../lib/utils.cjs");
20
- 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); }
21
- 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; }
22
- function NavigationMenu({
23
- className,
24
- children,
25
- viewport = true,
26
- ...props
27
- }) {
28
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Root, {
29
- "data-slot": "navigation-menu",
30
- "data-viewport": viewport,
31
- className: (0, _utils.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className),
32
- ...props
33
- }, children, viewport && /* @__PURE__ */React.createElement(NavigationMenuViewport, null));
34
- }
35
- function NavigationMenuList({
36
- className,
37
- ...props
38
- }) {
39
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.List, {
40
- "data-slot": "navigation-menu-list",
41
- className: (0, _utils.cn)("group flex flex-1 list-none items-center justify-center gap-1", className),
42
- ...props
43
- });
44
- }
45
- function NavigationMenuItem({
46
- className,
47
- ...props
48
- }) {
49
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Item, {
50
- "data-slot": "navigation-menu-item",
51
- className: (0, _utils.cn)("relative", className),
52
- ...props
53
- });
54
- }
55
- const navigationMenuTriggerStyle = exports.navigationMenuTriggerStyle = (0, _classVarianceAuthority.cva)("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");
56
- function NavigationMenuTrigger({
57
- className,
58
- children,
59
- ...props
60
- }) {
61
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Trigger, {
62
- "data-slot": "navigation-menu-trigger",
63
- className: (0, _utils.cn)(navigationMenuTriggerStyle(), "group", className),
64
- ...props
65
- }, children, " ", /* @__PURE__ */React.createElement(_lucideReact.ChevronDownIcon, {
66
- className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
67
- "aria-hidden": "true"
68
- }));
69
- }
70
- function NavigationMenuContent({
71
- className,
72
- ...props
73
- }) {
74
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Content, {
75
- "data-slot": "navigation-menu-content",
76
- className: (0, _utils.cn)("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", "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", className),
77
- ...props
78
- });
79
- }
80
- function NavigationMenuViewport({
81
- className,
82
- ...props
83
- }) {
84
- return /* @__PURE__ */React.createElement("div", {
85
- className: (0, _utils.cn)("absolute top-full left-0 isolate z-50 flex justify-center")
86
- }, /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Viewport, {
87
- "data-slot": "navigation-menu-viewport",
88
- className: (0, _utils.cn)("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)]", className),
89
- ...props
90
- }));
91
- }
92
- function NavigationMenuLink({
93
- className,
94
- ...props
95
- }) {
96
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Link, {
97
- "data-slot": "navigation-menu-link",
98
- className: (0, _utils.cn)("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", className),
99
- ...props
100
- });
101
- }
102
- function NavigationMenuIndicator({
103
- className,
104
- ...props
105
- }) {
106
- return /* @__PURE__ */React.createElement(_radixUi.NavigationMenu.Indicator, {
107
- "data-slot": "navigation-menu-indicator",
108
- className: (0, _utils.cn)("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", className),
109
- ...props
110
- }, /* @__PURE__ */React.createElement("div", {
111
- className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"
112
- }));
113
- }