@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.
- package/build.config.ts +7 -7
- package/package.json +3 -3
- package/dist/components/accordion.cjs +0 -62
- package/dist/components/alert-dialog.cjs +0 -127
- package/dist/components/alert.cjs +0 -58
- package/dist/components/aspect-ratio.cjs +0 -19
- package/dist/components/avatar.cjs +0 -44
- package/dist/components/badge.cjs +0 -41
- package/dist/components/breadcrumb.cjs +0 -106
- package/dist/components/button-group.cjs +0 -65
- package/dist/components/button.cjs +0 -57
- package/dist/components/calendar.cjs +0 -143
- package/dist/components/card.cjs +0 -86
- package/dist/components/checkbox.cjs +0 -28
- package/dist/components/collapsible.cjs +0 -37
- package/dist/components/command.cjs +0 -125
- package/dist/components/context-menu.cjs +0 -188
- package/dist/components/dialog.cjs +0 -123
- package/dist/components/drawer.cjs +0 -118
- package/dist/components/dropdown-menu.cjs +0 -190
- package/dist/components/empty.cjs +0 -92
- package/dist/components/field.cjs +0 -173
- package/dist/components/form.cjs +0 -143
- package/dist/components/hover-card.cjs +0 -46
- package/dist/components/input-group.cjs +0 -130
- package/dist/components/input-otp.cjs +0 -69
- package/dist/components/input.cjs +0 -22
- package/dist/components/item.cjs +0 -168
- package/dist/components/kbd.cjs +0 -31
- package/dist/components/label.cjs +0 -22
- package/dist/components/language-switcher.cjs +0 -43
- package/dist/components/menubar.cjs +0 -207
- package/dist/components/navigation-menu.cjs +0 -113
- package/dist/components/pagination.cjs +0 -106
- package/dist/components/popover.cjs +0 -53
- package/dist/components/progress.cjs +0 -29
- package/dist/components/radio-group.cjs +0 -39
- package/dist/components/scroll-area.cjs +0 -45
- package/dist/components/select.cjs +0 -140
- package/dist/components/separator.cjs +0 -26
- package/dist/components/sheet.cjs +0 -120
- package/dist/components/sidebar.cjs +0 -508
- package/dist/components/skeleton.cjs +0 -20
- package/dist/components/slider.cjs +0 -43
- package/dist/components/sonner.cjs +0 -49
- package/dist/components/spinner.cjs +0 -22
- package/dist/components/switch.cjs +0 -25
- package/dist/components/table.cjs +0 -101
- package/dist/components/tabs.cjs +0 -55
- package/dist/components/textarea.cjs +0 -20
- package/dist/components/toggle-group.cjs +0 -65
- package/dist/components/toggle.cjs +0 -47
- package/dist/components/tooltip.cjs +0 -56
- package/dist/hooks/use-mobile.cjs +0 -23
- package/dist/hooks/use-user.cjs +0 -21
- package/dist/index.cjs +0 -179
- package/dist/lib/utils.cjs +0 -11
- package/dist/logo.cjs +0 -49
- package/dist/postcss.config.cjs +0 -13
- package/dist/providers/auth-provider.cjs +0 -44
- package/dist/providers/index.cjs +0 -47
- package/dist/shared/access-denied.cjs +0 -38
- package/dist/shared/loader.cjs +0 -95
- package/dist/shared/page-loader.cjs +0 -23
- package/dist/shared/scroll-fade-effect.cjs +0 -21
package/build.config.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { defineBuildConfig } from "unbuild";
|
|
|
2
2
|
|
|
3
3
|
export default defineBuildConfig({
|
|
4
4
|
entries: [
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
5
|
+
// {
|
|
6
|
+
// builder: "mkdist",
|
|
7
|
+
// input: "./src",
|
|
8
|
+
// outDir: "./dist",
|
|
9
|
+
// format: "cjs",
|
|
10
|
+
// ext: "cjs",
|
|
11
|
+
// },
|
|
12
12
|
{
|
|
13
13
|
builder: "mkdist",
|
|
14
14
|
input: "./src",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arch-cadre/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"dev": "unbuild --stub"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@arch-cadre/core": "^0.0.
|
|
57
|
-
"@arch-cadre/intl": "^0.0.
|
|
56
|
+
"@arch-cadre/core": "^0.0.34",
|
|
57
|
+
"@arch-cadre/intl": "^0.0.34",
|
|
58
58
|
"@hookform/resolvers": "^5.2.2",
|
|
59
59
|
"@iconify-json/solar": "^1.2.2",
|
|
60
60
|
"@iconify/react": "^6.0.0",
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Accordion = Accordion;
|
|
8
|
-
exports.AccordionContent = AccordionContent;
|
|
9
|
-
exports.AccordionItem = AccordionItem;
|
|
10
|
-
exports.AccordionTrigger = AccordionTrigger;
|
|
11
|
-
var _lucideReact = require("lucide-react");
|
|
12
|
-
var _radixUi = require("radix-ui");
|
|
13
|
-
var React = _interopRequireWildcard(require("react"));
|
|
14
|
-
var _utils = require("../lib/utils.cjs");
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
function Accordion({
|
|
18
|
-
...props
|
|
19
|
-
}) {
|
|
20
|
-
return /* @__PURE__ */React.createElement(_radixUi.Accordion.Root, {
|
|
21
|
-
"data-slot": "accordion",
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function AccordionItem({
|
|
26
|
-
className,
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */React.createElement(_radixUi.Accordion.Item, {
|
|
30
|
-
"data-slot": "accordion-item",
|
|
31
|
-
className: (0, _utils.cn)("border-b last:border-b-0", className),
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function AccordionTrigger({
|
|
36
|
-
className,
|
|
37
|
-
children,
|
|
38
|
-
...props
|
|
39
|
-
}) {
|
|
40
|
-
return /* @__PURE__ */React.createElement(_radixUi.Accordion.Header, {
|
|
41
|
-
className: "flex"
|
|
42
|
-
}, /* @__PURE__ */React.createElement(_radixUi.Accordion.Trigger, {
|
|
43
|
-
"data-slot": "accordion-trigger",
|
|
44
|
-
className: (0, _utils.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className),
|
|
45
|
-
...props
|
|
46
|
-
}, children, /* @__PURE__ */React.createElement(_lucideReact.ChevronDownIcon, {
|
|
47
|
-
className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
|
|
48
|
-
})));
|
|
49
|
-
}
|
|
50
|
-
function AccordionContent({
|
|
51
|
-
className,
|
|
52
|
-
children,
|
|
53
|
-
...props
|
|
54
|
-
}) {
|
|
55
|
-
return /* @__PURE__ */React.createElement(_radixUi.Accordion.Content, {
|
|
56
|
-
"data-slot": "accordion-content",
|
|
57
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
58
|
-
...props
|
|
59
|
-
}, /* @__PURE__ */React.createElement("div", {
|
|
60
|
-
className: (0, _utils.cn)("pt-0 pb-4", className)
|
|
61
|
-
}, children));
|
|
62
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.AlertDialog = AlertDialog;
|
|
8
|
-
exports.AlertDialogAction = AlertDialogAction;
|
|
9
|
-
exports.AlertDialogCancel = AlertDialogCancel;
|
|
10
|
-
exports.AlertDialogContent = AlertDialogContent;
|
|
11
|
-
exports.AlertDialogDescription = AlertDialogDescription;
|
|
12
|
-
exports.AlertDialogFooter = AlertDialogFooter;
|
|
13
|
-
exports.AlertDialogHeader = AlertDialogHeader;
|
|
14
|
-
exports.AlertDialogOverlay = AlertDialogOverlay;
|
|
15
|
-
exports.AlertDialogPortal = AlertDialogPortal;
|
|
16
|
-
exports.AlertDialogTitle = AlertDialogTitle;
|
|
17
|
-
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
18
|
-
var _radixUi = require("radix-ui");
|
|
19
|
-
var React = _interopRequireWildcard(require("react"));
|
|
20
|
-
var _utils = require("../lib/utils.cjs");
|
|
21
|
-
var _button = require("./button.cjs");
|
|
22
|
-
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); }
|
|
23
|
-
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; }
|
|
24
|
-
function AlertDialog({
|
|
25
|
-
...props
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Root, {
|
|
28
|
-
"data-slot": "alert-dialog",
|
|
29
|
-
...props
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function AlertDialogTrigger({
|
|
33
|
-
...props
|
|
34
|
-
}) {
|
|
35
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Trigger, {
|
|
36
|
-
"data-slot": "alert-dialog-trigger",
|
|
37
|
-
...props
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function AlertDialogPortal({
|
|
41
|
-
...props
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Portal, {
|
|
44
|
-
"data-slot": "alert-dialog-portal",
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function AlertDialogOverlay({
|
|
49
|
-
className,
|
|
50
|
-
...props
|
|
51
|
-
}) {
|
|
52
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Overlay, {
|
|
53
|
-
"data-slot": "alert-dialog-overlay",
|
|
54
|
-
className: (0, _utils.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className),
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function AlertDialogContent({
|
|
59
|
-
className,
|
|
60
|
-
...props
|
|
61
|
-
}) {
|
|
62
|
-
return /* @__PURE__ */React.createElement(AlertDialogPortal, null, /* @__PURE__ */React.createElement(AlertDialogOverlay, null), /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Content, {
|
|
63
|
-
"data-slot": "alert-dialog-content",
|
|
64
|
-
className: (0, _utils.cn)("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className),
|
|
65
|
-
...props
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
|
-
function AlertDialogHeader({
|
|
69
|
-
className,
|
|
70
|
-
...props
|
|
71
|
-
}) {
|
|
72
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
73
|
-
"data-slot": "alert-dialog-header",
|
|
74
|
-
className: (0, _utils.cn)("flex flex-col gap-2 text-center sm:text-left", className),
|
|
75
|
-
...props
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
function AlertDialogFooter({
|
|
79
|
-
className,
|
|
80
|
-
...props
|
|
81
|
-
}) {
|
|
82
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
83
|
-
"data-slot": "alert-dialog-footer",
|
|
84
|
-
className: (0, _utils.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
85
|
-
...props
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
function AlertDialogTitle({
|
|
89
|
-
className,
|
|
90
|
-
...props
|
|
91
|
-
}) {
|
|
92
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Title, {
|
|
93
|
-
"data-slot": "alert-dialog-title",
|
|
94
|
-
className: (0, _utils.cn)("text-lg font-semibold", className),
|
|
95
|
-
...props
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
function AlertDialogDescription({
|
|
99
|
-
className,
|
|
100
|
-
...props
|
|
101
|
-
}) {
|
|
102
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Description, {
|
|
103
|
-
"data-slot": "alert-dialog-description",
|
|
104
|
-
className: (0, _utils.cn)("text-muted-foreground text-sm", className),
|
|
105
|
-
...props
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
function AlertDialogAction({
|
|
109
|
-
className,
|
|
110
|
-
...props
|
|
111
|
-
}) {
|
|
112
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Action, {
|
|
113
|
-
className: (0, _utils.cn)((0, _button.buttonVariants)(), className),
|
|
114
|
-
...props
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function AlertDialogCancel({
|
|
118
|
-
className,
|
|
119
|
-
...props
|
|
120
|
-
}) {
|
|
121
|
-
return /* @__PURE__ */React.createElement(_radixUi.AlertDialog.Cancel, {
|
|
122
|
-
className: (0, _utils.cn)((0, _button.buttonVariants)({
|
|
123
|
-
variant: "outline"
|
|
124
|
-
}), className),
|
|
125
|
-
...props
|
|
126
|
-
});
|
|
127
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Alert = Alert;
|
|
7
|
-
exports.AlertDescription = AlertDescription;
|
|
8
|
-
exports.AlertTitle = AlertTitle;
|
|
9
|
-
var _classVarianceAuthority = require("class-variance-authority");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _utils = require("../lib/utils.cjs");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
const alertVariants = (0, _classVarianceAuthority.cva)("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", {
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
default: "bg-card text-card-foreground",
|
|
18
|
-
destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
variant: "default"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
function Alert({
|
|
26
|
-
className,
|
|
27
|
-
variant,
|
|
28
|
-
...props
|
|
29
|
-
}) {
|
|
30
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
31
|
-
"data-slot": "alert",
|
|
32
|
-
role: "alert",
|
|
33
|
-
className: (0, _utils.cn)(alertVariants({
|
|
34
|
-
variant
|
|
35
|
-
}), className),
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function AlertTitle({
|
|
40
|
-
className,
|
|
41
|
-
...props
|
|
42
|
-
}) {
|
|
43
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
44
|
-
"data-slot": "alert-title",
|
|
45
|
-
className: (0, _utils.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
|
|
46
|
-
...props
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function AlertDescription({
|
|
50
|
-
className,
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
54
|
-
"data-slot": "alert-description",
|
|
55
|
-
className: (0, _utils.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className),
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.AspectRatio = AspectRatio;
|
|
8
|
-
var _radixUi = require("radix-ui");
|
|
9
|
-
var React = _interopRequireWildcard(require("react"));
|
|
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 AspectRatio({
|
|
13
|
-
...props
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */React.createElement(_radixUi.AspectRatio.Root, {
|
|
16
|
-
"data-slot": "aspect-ratio",
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Avatar = Avatar;
|
|
8
|
-
exports.AvatarFallback = AvatarFallback;
|
|
9
|
-
exports.AvatarImage = AvatarImage;
|
|
10
|
-
var _radixUi = require("radix-ui");
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _utils = require("../lib/utils.cjs");
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
-
function Avatar({
|
|
16
|
-
className,
|
|
17
|
-
...props
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */React.createElement(_radixUi.Avatar.Root, {
|
|
20
|
-
"data-slot": "avatar",
|
|
21
|
-
className: (0, _utils.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function AvatarImage({
|
|
26
|
-
className,
|
|
27
|
-
...props
|
|
28
|
-
}) {
|
|
29
|
-
return /* @__PURE__ */React.createElement(_radixUi.Avatar.Image, {
|
|
30
|
-
"data-slot": "avatar-image",
|
|
31
|
-
className: (0, _utils.cn)("aspect-square size-full", className),
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function AvatarFallback({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}) {
|
|
39
|
-
return /* @__PURE__ */React.createElement(_radixUi.Avatar.Fallback, {
|
|
40
|
-
"data-slot": "avatar-fallback",
|
|
41
|
-
className: (0, _utils.cn)("bg-muted flex size-full items-center justify-center rounded-full", className),
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Badge = Badge;
|
|
7
|
-
exports.badgeVariants = void 0;
|
|
8
|
-
var _classVarianceAuthority = require("class-variance-authority");
|
|
9
|
-
var _radixUi = require("radix-ui");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _utils = require("../lib/utils.cjs");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
const badgeVariants = exports.badgeVariants = (0, _classVarianceAuthority.cva)("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", {
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
18
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
19
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
20
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
defaultVariants: {
|
|
24
|
-
variant: "default"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
function Badge({
|
|
28
|
-
className,
|
|
29
|
-
variant,
|
|
30
|
-
asChild = false,
|
|
31
|
-
...props
|
|
32
|
-
}) {
|
|
33
|
-
const Comp = asChild ? _radixUi.Slot.Slot : "span";
|
|
34
|
-
return /* @__PURE__ */React.createElement(Comp, {
|
|
35
|
-
"data-slot": "badge",
|
|
36
|
-
className: (0, _utils.cn)(badgeVariants({
|
|
37
|
-
variant
|
|
38
|
-
}), className),
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Breadcrumb = Breadcrumb;
|
|
7
|
-
exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
|
|
8
|
-
exports.BreadcrumbItem = BreadcrumbItem;
|
|
9
|
-
exports.BreadcrumbLink = BreadcrumbLink;
|
|
10
|
-
exports.BreadcrumbList = BreadcrumbList;
|
|
11
|
-
exports.BreadcrumbPage = BreadcrumbPage;
|
|
12
|
-
exports.BreadcrumbSeparator = BreadcrumbSeparator;
|
|
13
|
-
var _lucideReact = require("lucide-react");
|
|
14
|
-
var _radixUi = require("radix-ui");
|
|
15
|
-
var React = _interopRequireWildcard(require("react"));
|
|
16
|
-
var _utils = require("../lib/utils.cjs");
|
|
17
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
function Breadcrumb({
|
|
20
|
-
...props
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */React.createElement("nav", {
|
|
23
|
-
"aria-label": "breadcrumb",
|
|
24
|
-
"data-slot": "breadcrumb",
|
|
25
|
-
...props
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function BreadcrumbList({
|
|
29
|
-
className,
|
|
30
|
-
...props
|
|
31
|
-
}) {
|
|
32
|
-
return /* @__PURE__ */React.createElement("ol", {
|
|
33
|
-
"data-slot": "breadcrumb-list",
|
|
34
|
-
className: (0, _utils.cn)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className),
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function BreadcrumbItem({
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}) {
|
|
42
|
-
return /* @__PURE__ */React.createElement("li", {
|
|
43
|
-
"data-slot": "breadcrumb-item",
|
|
44
|
-
className: (0, _utils.cn)("inline-flex items-center gap-1.5", className),
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function BreadcrumbLink({
|
|
49
|
-
asChild,
|
|
50
|
-
className,
|
|
51
|
-
...props
|
|
52
|
-
}) {
|
|
53
|
-
const Comp = asChild ? _radixUi.Slot.Slot : "a";
|
|
54
|
-
return /* @__PURE__ */React.createElement(Comp, {
|
|
55
|
-
"data-slot": "breadcrumb-link",
|
|
56
|
-
className: (0, _utils.cn)("hover:text-foreground transition-colors", className),
|
|
57
|
-
...props
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function BreadcrumbPage({
|
|
61
|
-
className,
|
|
62
|
-
...props
|
|
63
|
-
}) {
|
|
64
|
-
return (
|
|
65
|
-
// biome-ignore lint/a11y/useSemanticElements: <explanation>
|
|
66
|
-
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
React.createElement("span", {
|
|
69
|
-
"data-slot": "breadcrumb-page",
|
|
70
|
-
role: "link",
|
|
71
|
-
"aria-disabled": "true",
|
|
72
|
-
"aria-current": "page",
|
|
73
|
-
className: (0, _utils.cn)("text-foreground font-normal", className),
|
|
74
|
-
...props
|
|
75
|
-
})
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
function BreadcrumbSeparator({
|
|
79
|
-
children,
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}) {
|
|
83
|
-
return /* @__PURE__ */React.createElement("li", {
|
|
84
|
-
"data-slot": "breadcrumb-separator",
|
|
85
|
-
role: "presentation",
|
|
86
|
-
"aria-hidden": "true",
|
|
87
|
-
className: (0, _utils.cn)("[&>svg]:size-3.5", className),
|
|
88
|
-
...props
|
|
89
|
-
}, children ?? /* @__PURE__ */React.createElement(_lucideReact.ChevronRight, null));
|
|
90
|
-
}
|
|
91
|
-
function BreadcrumbEllipsis({
|
|
92
|
-
className,
|
|
93
|
-
...props
|
|
94
|
-
}) {
|
|
95
|
-
return /* @__PURE__ */React.createElement("span", {
|
|
96
|
-
"data-slot": "breadcrumb-ellipsis",
|
|
97
|
-
role: "presentation",
|
|
98
|
-
"aria-hidden": "true",
|
|
99
|
-
className: (0, _utils.cn)("flex size-9 items-center justify-center", className),
|
|
100
|
-
...props
|
|
101
|
-
}, /* @__PURE__ */React.createElement(_lucideReact.MoreHorizontal, {
|
|
102
|
-
className: "size-4"
|
|
103
|
-
}), /* @__PURE__ */React.createElement("span", {
|
|
104
|
-
className: "sr-only"
|
|
105
|
-
}, "More"));
|
|
106
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ButtonGroup = ButtonGroup;
|
|
7
|
-
exports.ButtonGroupSeparator = ButtonGroupSeparator;
|
|
8
|
-
exports.ButtonGroupText = ButtonGroupText;
|
|
9
|
-
exports.buttonGroupVariants = void 0;
|
|
10
|
-
var _classVarianceAuthority = require("class-variance-authority");
|
|
11
|
-
var _radixUi = require("radix-ui");
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _utils = require("../lib/utils.cjs");
|
|
14
|
-
var _separator = require("./separator.cjs");
|
|
15
|
-
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); }
|
|
16
|
-
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; }
|
|
17
|
-
const buttonGroupVariants = exports.buttonGroupVariants = (0, _classVarianceAuthority.cva)("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", {
|
|
18
|
-
variants: {
|
|
19
|
-
orientation: {
|
|
20
|
-
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
21
|
-
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
orientation: "horizontal"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
function ButtonGroup({
|
|
29
|
-
className,
|
|
30
|
-
orientation,
|
|
31
|
-
...props
|
|
32
|
-
}) {
|
|
33
|
-
return /* @__PURE__ */React.createElement("div", {
|
|
34
|
-
role: "group",
|
|
35
|
-
"data-slot": "button-group",
|
|
36
|
-
"data-orientation": orientation,
|
|
37
|
-
className: (0, _utils.cn)(buttonGroupVariants({
|
|
38
|
-
orientation
|
|
39
|
-
}), className),
|
|
40
|
-
...props
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function ButtonGroupText({
|
|
44
|
-
className,
|
|
45
|
-
asChild = false,
|
|
46
|
-
...props
|
|
47
|
-
}) {
|
|
48
|
-
const Comp = asChild ? _radixUi.Slot.Slot : "div";
|
|
49
|
-
return /* @__PURE__ */React.createElement(Comp, {
|
|
50
|
-
className: (0, _utils.cn)("bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
|
|
51
|
-
...props
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function ButtonGroupSeparator({
|
|
55
|
-
className,
|
|
56
|
-
orientation = "vertical",
|
|
57
|
-
...props
|
|
58
|
-
}) {
|
|
59
|
-
return /* @__PURE__ */React.createElement(_separator.Separator, {
|
|
60
|
-
"data-slot": "button-group-separator",
|
|
61
|
-
orientation,
|
|
62
|
-
className: (0, _utils.cn)("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", className),
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Button = Button;
|
|
7
|
-
exports.buttonVariants = void 0;
|
|
8
|
-
var _classVarianceAuthority = require("class-variance-authority");
|
|
9
|
-
var _radixUi = require("radix-ui");
|
|
10
|
-
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _utils = require("../lib/utils.cjs");
|
|
12
|
-
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); }
|
|
13
|
-
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; }
|
|
14
|
-
const buttonVariants = exports.buttonVariants = (0, _classVarianceAuthority.cva)("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", {
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
18
|
-
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
19
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
20
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
21
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
22
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
23
|
-
},
|
|
24
|
-
size: {
|
|
25
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
26
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
27
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
28
|
-
icon: "size-9",
|
|
29
|
-
"icon-sm": "size-8",
|
|
30
|
-
"icon-lg": "size-10"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
defaultVariants: {
|
|
34
|
-
variant: "default",
|
|
35
|
-
size: "default"
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
function Button({
|
|
39
|
-
className,
|
|
40
|
-
variant = "default",
|
|
41
|
-
size = "default",
|
|
42
|
-
asChild = false,
|
|
43
|
-
...props
|
|
44
|
-
}) {
|
|
45
|
-
const Comp = asChild ? _radixUi.Slot.Slot : "button";
|
|
46
|
-
return /* @__PURE__ */React.createElement(Comp, {
|
|
47
|
-
"data-slot": "button",
|
|
48
|
-
"data-variant": variant,
|
|
49
|
-
"data-size": size,
|
|
50
|
-
className: (0, _utils.cn)(buttonVariants({
|
|
51
|
-
variant,
|
|
52
|
-
size,
|
|
53
|
-
className
|
|
54
|
-
})),
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}
|