@e-infra/design-system 0.0.2
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/LICENSE.md +21 -0
- package/README.md +200 -0
- package/dist/index.cjs.js +298 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.cjs10.js +105 -0
- package/dist/index.cjs10.js.map +1 -0
- package/dist/index.cjs11.js +56 -0
- package/dist/index.cjs11.js.map +1 -0
- package/dist/index.cjs12.js +206 -0
- package/dist/index.cjs12.js.map +1 -0
- package/dist/index.cjs13.js +92 -0
- package/dist/index.cjs13.js.map +1 -0
- package/dist/index.cjs14.js +216 -0
- package/dist/index.cjs14.js.map +1 -0
- package/dist/index.cjs15.js +261 -0
- package/dist/index.cjs15.js.map +1 -0
- package/dist/index.cjs16.js +50 -0
- package/dist/index.cjs16.js.map +1 -0
- package/dist/index.cjs17.js +53 -0
- package/dist/index.cjs17.js.map +1 -0
- package/dist/index.cjs18.js +173 -0
- package/dist/index.cjs18.js.map +1 -0
- package/dist/index.cjs19.js +242 -0
- package/dist/index.cjs19.js.map +1 -0
- package/dist/index.cjs2.js +298 -0
- package/dist/index.cjs2.js.map +1 -0
- package/dist/index.cjs20.js +156 -0
- package/dist/index.cjs20.js.map +1 -0
- package/dist/index.cjs21.js +130 -0
- package/dist/index.cjs21.js.map +1 -0
- package/dist/index.cjs22.js +251 -0
- package/dist/index.cjs22.js.map +1 -0
- package/dist/index.cjs23.js +134 -0
- package/dist/index.cjs23.js.map +1 -0
- package/dist/index.cjs24.js +57 -0
- package/dist/index.cjs24.js.map +1 -0
- package/dist/index.cjs25.js +23 -0
- package/dist/index.cjs25.js.map +1 -0
- package/dist/index.cjs26.js +85 -0
- package/dist/index.cjs26.js.map +1 -0
- package/dist/index.cjs27.js +41 -0
- package/dist/index.cjs27.js.map +1 -0
- package/dist/index.cjs28.js +271 -0
- package/dist/index.cjs28.js.map +1 -0
- package/dist/index.cjs29.js +189 -0
- package/dist/index.cjs29.js.map +1 -0
- package/dist/index.cjs3.js +298 -0
- package/dist/index.cjs3.js.map +1 -0
- package/dist/index.cjs30.js +120 -0
- package/dist/index.cjs30.js.map +1 -0
- package/dist/index.cjs31.js +63 -0
- package/dist/index.cjs31.js.map +1 -0
- package/dist/index.cjs32.js +51 -0
- package/dist/index.cjs32.js.map +1 -0
- package/dist/index.cjs33.js +64 -0
- package/dist/index.cjs33.js.map +1 -0
- package/dist/index.cjs34.js +49 -0
- package/dist/index.cjs34.js.map +1 -0
- package/dist/index.cjs35.js +79 -0
- package/dist/index.cjs35.js.map +1 -0
- package/dist/index.cjs36.js +198 -0
- package/dist/index.cjs36.js.map +1 -0
- package/dist/index.cjs37.js +45 -0
- package/dist/index.cjs37.js.map +1 -0
- package/dist/index.cjs38.js +146 -0
- package/dist/index.cjs38.js.map +1 -0
- package/dist/index.cjs39.js +657 -0
- package/dist/index.cjs39.js.map +1 -0
- package/dist/index.cjs4.js +83 -0
- package/dist/index.cjs4.js.map +1 -0
- package/dist/index.cjs40.js +16 -0
- package/dist/index.cjs40.js.map +1 -0
- package/dist/index.cjs41.js +82 -0
- package/dist/index.cjs41.js.map +1 -0
- package/dist/index.cjs42.js +33 -0
- package/dist/index.cjs42.js.map +1 -0
- package/dist/index.cjs43.js +50 -0
- package/dist/index.cjs43.js.map +1 -0
- package/dist/index.cjs44.js +117 -0
- package/dist/index.cjs44.js.map +1 -0
- package/dist/index.cjs45.js +86 -0
- package/dist/index.cjs45.js.map +1 -0
- package/dist/index.cjs46.js +20 -0
- package/dist/index.cjs46.js.map +1 -0
- package/dist/index.cjs47.js +63 -0
- package/dist/index.cjs47.js.map +1 -0
- package/dist/index.cjs48.js +88 -0
- package/dist/index.cjs48.js.map +1 -0
- package/dist/index.cjs49.js +74 -0
- package/dist/index.cjs49.js.map +1 -0
- package/dist/index.cjs5.js +68 -0
- package/dist/index.cjs5.js.map +1 -0
- package/dist/index.cjs50.js +9 -0
- package/dist/index.cjs50.js.map +1 -0
- package/dist/index.cjs51.js +38 -0
- package/dist/index.cjs51.js.map +1 -0
- package/dist/index.cjs6.js +166 -0
- package/dist/index.cjs6.js.map +1 -0
- package/dist/index.cjs7.js +29 -0
- package/dist/index.cjs7.js.map +1 -0
- package/dist/index.cjs8.js +72 -0
- package/dist/index.cjs8.js.map +1 -0
- package/dist/index.cjs9.js +42 -0
- package/dist/index.cjs9.js.map +1 -0
- package/dist/index.es.js +298 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.es10.js +105 -0
- package/dist/index.es10.js.map +1 -0
- package/dist/index.es11.js +56 -0
- package/dist/index.es11.js.map +1 -0
- package/dist/index.es12.js +189 -0
- package/dist/index.es12.js.map +1 -0
- package/dist/index.es13.js +92 -0
- package/dist/index.es13.js.map +1 -0
- package/dist/index.es14.js +199 -0
- package/dist/index.es14.js.map +1 -0
- package/dist/index.es15.js +243 -0
- package/dist/index.es15.js.map +1 -0
- package/dist/index.es16.js +33 -0
- package/dist/index.es16.js.map +1 -0
- package/dist/index.es17.js +36 -0
- package/dist/index.es17.js.map +1 -0
- package/dist/index.es18.js +173 -0
- package/dist/index.es18.js.map +1 -0
- package/dist/index.es19.js +225 -0
- package/dist/index.es19.js.map +1 -0
- package/dist/index.es2.js +298 -0
- package/dist/index.es2.js.map +1 -0
- package/dist/index.es20.js +139 -0
- package/dist/index.es20.js.map +1 -0
- package/dist/index.es21.js +130 -0
- package/dist/index.es21.js.map +1 -0
- package/dist/index.es22.js +234 -0
- package/dist/index.es22.js.map +1 -0
- package/dist/index.es23.js +117 -0
- package/dist/index.es23.js.map +1 -0
- package/dist/index.es24.js +40 -0
- package/dist/index.es24.js.map +1 -0
- package/dist/index.es25.js +23 -0
- package/dist/index.es25.js.map +1 -0
- package/dist/index.es26.js +68 -0
- package/dist/index.es26.js.map +1 -0
- package/dist/index.es27.js +24 -0
- package/dist/index.es27.js.map +1 -0
- package/dist/index.es28.js +254 -0
- package/dist/index.es28.js.map +1 -0
- package/dist/index.es29.js +172 -0
- package/dist/index.es29.js.map +1 -0
- package/dist/index.es3.js +298 -0
- package/dist/index.es3.js.map +1 -0
- package/dist/index.es30.js +120 -0
- package/dist/index.es30.js.map +1 -0
- package/dist/index.es31.js +46 -0
- package/dist/index.es31.js.map +1 -0
- package/dist/index.es32.js +34 -0
- package/dist/index.es32.js.map +1 -0
- package/dist/index.es33.js +47 -0
- package/dist/index.es33.js.map +1 -0
- package/dist/index.es34.js +49 -0
- package/dist/index.es34.js.map +1 -0
- package/dist/index.es35.js +62 -0
- package/dist/index.es35.js.map +1 -0
- package/dist/index.es36.js +181 -0
- package/dist/index.es36.js.map +1 -0
- package/dist/index.es37.js +28 -0
- package/dist/index.es37.js.map +1 -0
- package/dist/index.es38.js +129 -0
- package/dist/index.es38.js.map +1 -0
- package/dist/index.es39.js +640 -0
- package/dist/index.es39.js.map +1 -0
- package/dist/index.es4.js +66 -0
- package/dist/index.es4.js.map +1 -0
- package/dist/index.es40.js +16 -0
- package/dist/index.es40.js.map +1 -0
- package/dist/index.es41.js +64 -0
- package/dist/index.es41.js.map +1 -0
- package/dist/index.es42.js +33 -0
- package/dist/index.es42.js.map +1 -0
- package/dist/index.es43.js +33 -0
- package/dist/index.es43.js.map +1 -0
- package/dist/index.es44.js +117 -0
- package/dist/index.es44.js.map +1 -0
- package/dist/index.es45.js +69 -0
- package/dist/index.es45.js.map +1 -0
- package/dist/index.es46.js +20 -0
- package/dist/index.es46.js.map +1 -0
- package/dist/index.es47.js +46 -0
- package/dist/index.es47.js.map +1 -0
- package/dist/index.es48.js +70 -0
- package/dist/index.es48.js.map +1 -0
- package/dist/index.es49.js +57 -0
- package/dist/index.es49.js.map +1 -0
- package/dist/index.es5.js +68 -0
- package/dist/index.es5.js.map +1 -0
- package/dist/index.es50.js +9 -0
- package/dist/index.es50.js.map +1 -0
- package/dist/index.es51.js +21 -0
- package/dist/index.es51.js.map +1 -0
- package/dist/index.es6.js +149 -0
- package/dist/index.es6.js.map +1 -0
- package/dist/index.es7.js +12 -0
- package/dist/index.es7.js.map +1 -0
- package/dist/index.es8.js +55 -0
- package/dist/index.es8.js.map +1 -0
- package/dist/index.es9.js +42 -0
- package/dist/index.es9.js.map +1 -0
- package/dist/types/components/index.d.ts +47 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/ui/accordion.d.ts +8 -0
- package/dist/types/components/ui/accordion.d.ts.map +1 -0
- package/dist/types/components/ui/alert-dialog.d.ts +15 -0
- package/dist/types/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/types/components/ui/alert.d.ts +10 -0
- package/dist/types/components/ui/alert.d.ts.map +1 -0
- package/dist/types/components/ui/aspect-ratio.d.ts +4 -0
- package/dist/types/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/types/components/ui/avatar.d.ts +7 -0
- package/dist/types/components/ui/avatar.d.ts.map +1 -0
- package/dist/types/components/ui/badge.d.ts +10 -0
- package/dist/types/components/ui/badge.d.ts.map +1 -0
- package/dist/types/components/ui/breadcrumb.d.ts +12 -0
- package/dist/types/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/types/components/ui/button.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts.map +1 -0
- package/dist/types/components/ui/calendar.d.ts +9 -0
- package/dist/types/components/ui/calendar.d.ts.map +1 -0
- package/dist/types/components/ui/card.d.ts +10 -0
- package/dist/types/components/ui/card.d.ts.map +1 -0
- package/dist/types/components/ui/carousel.d.ts +20 -0
- package/dist/types/components/ui/carousel.d.ts.map +1 -0
- package/dist/types/components/ui/chart.d.ts +41 -0
- package/dist/types/components/ui/chart.d.ts.map +1 -0
- package/dist/types/components/ui/checkbox.d.ts +5 -0
- package/dist/types/components/ui/checkbox.d.ts.map +1 -0
- package/dist/types/components/ui/collapsible.d.ts +6 -0
- package/dist/types/components/ui/collapsible.d.ts.map +1 -0
- package/dist/types/components/ui/command.d.ts +19 -0
- package/dist/types/components/ui/command.d.ts.map +1 -0
- package/dist/types/components/ui/context-menu.d.ts +26 -0
- package/dist/types/components/ui/context-menu.d.ts.map +1 -0
- package/dist/types/components/ui/dialog.d.ts +16 -0
- package/dist/types/components/ui/dialog.d.ts.map +1 -0
- package/dist/types/components/ui/drawer.d.ts +14 -0
- package/dist/types/components/ui/drawer.d.ts.map +1 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/types/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/types/components/ui/form.d.ts +25 -0
- package/dist/types/components/ui/form.d.ts.map +1 -0
- package/dist/types/components/ui/hover-card.d.ts +7 -0
- package/dist/types/components/ui/hover-card.d.ts.map +1 -0
- package/dist/types/components/ui/input-otp.d.ts +12 -0
- package/dist/types/components/ui/input-otp.d.ts.map +1 -0
- package/dist/types/components/ui/input.d.ts +4 -0
- package/dist/types/components/ui/input.d.ts.map +1 -0
- package/dist/types/components/ui/label.d.ts +5 -0
- package/dist/types/components/ui/label.d.ts.map +1 -0
- package/dist/types/components/ui/menubar.d.ts +27 -0
- package/dist/types/components/ui/menubar.d.ts.map +1 -0
- package/dist/types/components/ui/navigation-menu.d.ts +15 -0
- package/dist/types/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/types/components/ui/pagination.d.ts +14 -0
- package/dist/types/components/ui/pagination.d.ts.map +1 -0
- package/dist/types/components/ui/popover.d.ts +8 -0
- package/dist/types/components/ui/popover.d.ts.map +1 -0
- package/dist/types/components/ui/progress.d.ts +5 -0
- package/dist/types/components/ui/progress.d.ts.map +1 -0
- package/dist/types/components/ui/radio-group.d.ts +6 -0
- package/dist/types/components/ui/radio-group.d.ts.map +1 -0
- package/dist/types/components/ui/resizable.d.ts +9 -0
- package/dist/types/components/ui/resizable.d.ts.map +1 -0
- package/dist/types/components/ui/scroll-area.d.ts +6 -0
- package/dist/types/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/types/components/ui/select.d.ts +16 -0
- package/dist/types/components/ui/select.d.ts.map +1 -0
- package/dist/types/components/ui/separator.d.ts +5 -0
- package/dist/types/components/ui/separator.d.ts.map +1 -0
- package/dist/types/components/ui/sheet.d.ts +14 -0
- package/dist/types/components/ui/sheet.d.ts.map +1 -0
- package/dist/types/components/ui/sidebar.d.ts +70 -0
- package/dist/types/components/ui/sidebar.d.ts.map +1 -0
- package/dist/types/components/ui/skeleton.d.ts +3 -0
- package/dist/types/components/ui/skeleton.d.ts.map +1 -0
- package/dist/types/components/ui/slider.d.ts +5 -0
- package/dist/types/components/ui/slider.d.ts.map +1 -0
- package/dist/types/components/ui/sonner.d.ts +4 -0
- package/dist/types/components/ui/sonner.d.ts.map +1 -0
- package/dist/types/components/ui/switch.d.ts +5 -0
- package/dist/types/components/ui/switch.d.ts.map +1 -0
- package/dist/types/components/ui/table.d.ts +11 -0
- package/dist/types/components/ui/table.d.ts.map +1 -0
- package/dist/types/components/ui/tabs.d.ts +8 -0
- package/dist/types/components/ui/tabs.d.ts.map +1 -0
- package/dist/types/components/ui/textarea.d.ts +4 -0
- package/dist/types/components/ui/textarea.d.ts.map +1 -0
- package/dist/types/components/ui/toggle-group.d.ts +10 -0
- package/dist/types/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/types/components/ui/toggle.d.ts +10 -0
- package/dist/types/components/ui/toggle.d.ts.map +1 -0
- package/dist/types/components/ui/tooltip.d.ts +8 -0
- package/dist/types/components/ui/tooltip.d.ts.map +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/use-mobile.d.ts +2 -0
- package/dist/types/hooks/use-mobile.d.ts.map +1 -0
- package/dist/types/hooks.d.ts +2 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/utils.d.ts +3 -0
- package/dist/types/lib/utils.d.ts.map +1 -0
- package/package.json +138 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
require("react");
|
|
5
|
+
const AvatarPrimitive = require("@radix-ui/react-avatar");
|
|
6
|
+
const utils = require("./index.cjs50.js");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const AvatarPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AvatarPrimitive);
|
|
24
|
+
function Avatar({
|
|
25
|
+
className,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
AvatarPrimitive__namespace.Root,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "avatar",
|
|
32
|
+
className: utils.cn(
|
|
33
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
34
|
+
className
|
|
35
|
+
),
|
|
36
|
+
...props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function AvatarImage({
|
|
41
|
+
className,
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
+
AvatarPrimitive__namespace.Image,
|
|
46
|
+
{
|
|
47
|
+
"data-slot": "avatar-image",
|
|
48
|
+
className: utils.cn("aspect-square size-full", className),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function AvatarFallback({
|
|
54
|
+
className,
|
|
55
|
+
...props
|
|
56
|
+
}) {
|
|
57
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
AvatarPrimitive__namespace.Fallback,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "avatar-fallback",
|
|
61
|
+
className: utils.cn(
|
|
62
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
exports.Avatar = Avatar;
|
|
70
|
+
exports.AvatarFallback = AvatarFallback;
|
|
71
|
+
exports.AvatarImage = AvatarImage;
|
|
72
|
+
//# sourceMappingURL=index.cjs8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs8.js","sources":["../lib/components/ui/avatar.tsx"],"sourcesContent":["import * as React from \"react\";\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Avatar({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Root>) {\n return (\n <AvatarPrimitive.Root\n data-slot=\"avatar\"\n className={cn(\n \"relative flex size-8 shrink-0 overflow-hidden rounded-full\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction AvatarImage({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Image>) {\n return (\n <AvatarPrimitive.Image\n data-slot=\"avatar-image\"\n className={cn(\"aspect-square size-full\", className)}\n {...props}\n />\n );\n}\n\nfunction AvatarFallback({\n className,\n ...props\n}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {\n return (\n <AvatarPrimitive.Fallback\n data-slot=\"avatar-fallback\"\n className={cn(\n \"bg-muted flex size-full items-center justify-center rounded-full\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport { Avatar, AvatarImage, AvatarFallback };\n"],"names":["jsx","AvatarPrimitive","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA,SAAS,OAAO;AAAA,EACd;AAAA,EACA,GAAG;AACL,GAAsD;AACpD,SACEA,2BAAAA;AAAAA,IAACC,2BAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,MAAAA;AAAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,YAAY;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GAAuD;AACrD,SACEF,2BAAAA;AAAAA,IAACC,2BAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,MAAAA,GAAG,2BAA2B,SAAS;AAAA,MACjD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA,GAAG;AACL,GAA0D;AACxD,SACEF,2BAAAA;AAAAA,IAACC,2BAAgB;AAAA,IAAhB;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,MAAAA;AAAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;;;;"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
require("react");
|
|
5
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
6
|
+
const classVarianceAuthority = require("class-variance-authority");
|
|
7
|
+
const utils = require("./index.cjs50.js");
|
|
8
|
+
const badgeVariants = classVarianceAuthority.cva(
|
|
9
|
+
"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",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
14
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
15
|
+
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",
|
|
16
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
variant: "default"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
function Badge({
|
|
25
|
+
className,
|
|
26
|
+
variant,
|
|
27
|
+
asChild = false,
|
|
28
|
+
...props
|
|
29
|
+
}) {
|
|
30
|
+
const Comp = asChild ? reactSlot.Slot : "span";
|
|
31
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32
|
+
Comp,
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "badge",
|
|
35
|
+
className: utils.cn(badgeVariants({ variant }), className),
|
|
36
|
+
...props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
exports.Badge = Badge;
|
|
41
|
+
exports.badgeVariants = badgeVariants;
|
|
42
|
+
//# sourceMappingURL=index.cjs9.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs9.js","sources":["../lib/components/ui/badge.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst badgeVariants = cva(\n \"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\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90\",\n destructive:\n \"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\",\n outline:\n \"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n);\n\nfunction Badge({\n className,\n variant,\n asChild = false,\n ...props\n}: React.ComponentProps<\"span\"> &\n VariantProps<typeof badgeVariants> & { asChild?: boolean }) {\n const Comp = asChild ? Slot : \"span\";\n\n return (\n <Comp\n data-slot=\"badge\"\n className={cn(badgeVariants({ variant }), className)}\n {...props}\n />\n );\n}\n\nexport { Badge, badgeVariants };\n"],"names":["cva","Slot","jsx","cn"],"mappings":";;;;;;;AAMA,MAAM,gBAAgBA,uBAAAA;AAAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAEA,SAAS,MAAM;AAAA,EACb;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV,GAAG;AACL,GAC8D;AAC5D,QAAM,OAAO,UAAUC,UAAAA,OAAO;AAE9B,SACEC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAWC,MAAAA,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS;AAAA,MAClD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;;;"}
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./index.es4.js";
|
|
2
|
+
import { Alert, AlertDescription, AlertTitle } from "./index.es5.js";
|
|
3
|
+
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./index.es6.js";
|
|
4
|
+
import { AspectRatio } from "./index.es7.js";
|
|
5
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./index.es8.js";
|
|
6
|
+
import { Badge, badgeVariants } from "./index.es9.js";
|
|
7
|
+
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./index.es10.js";
|
|
8
|
+
import { Button, buttonVariants } from "./index.es11.js";
|
|
9
|
+
import { Calendar, CalendarDayButton } from "./index.es12.js";
|
|
10
|
+
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./index.es13.js";
|
|
11
|
+
import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "./index.es14.js";
|
|
12
|
+
import { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./index.es15.js";
|
|
13
|
+
import { Checkbox } from "./index.es16.js";
|
|
14
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./index.es17.js";
|
|
15
|
+
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./index.es18.js";
|
|
16
|
+
import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from "./index.es19.js";
|
|
17
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./index.es20.js";
|
|
18
|
+
import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger } from "./index.es21.js";
|
|
19
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./index.es22.js";
|
|
20
|
+
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./index.es23.js";
|
|
21
|
+
import { HoverCard, HoverCardContent, HoverCardTrigger } from "./index.es24.js";
|
|
22
|
+
import { Input } from "./index.es25.js";
|
|
23
|
+
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot } from "./index.es26.js";
|
|
24
|
+
import { Label } from "./index.es27.js";
|
|
25
|
+
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger } from "./index.es28.js";
|
|
26
|
+
import { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, navigationMenuTriggerStyle } from "./index.es29.js";
|
|
27
|
+
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./index.es30.js";
|
|
28
|
+
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./index.es31.js";
|
|
29
|
+
import { Progress } from "./index.es32.js";
|
|
30
|
+
import { RadioGroup, RadioGroupItem } from "./index.es33.js";
|
|
31
|
+
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./index.es34.js";
|
|
32
|
+
import { ScrollArea, ScrollBar } from "./index.es35.js";
|
|
33
|
+
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./index.es36.js";
|
|
34
|
+
import { Separator } from "./index.es37.js";
|
|
35
|
+
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./index.es38.js";
|
|
36
|
+
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "./index.es39.js";
|
|
37
|
+
import { Skeleton } from "./index.es40.js";
|
|
38
|
+
import { Slider } from "./index.es41.js";
|
|
39
|
+
import { Toaster } from "./index.es42.js";
|
|
40
|
+
import { Switch } from "./index.es43.js";
|
|
41
|
+
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./index.es44.js";
|
|
42
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./index.es45.js";
|
|
43
|
+
import { Textarea } from "./index.es46.js";
|
|
44
|
+
import { Toggle, toggleVariants } from "./index.es47.js";
|
|
45
|
+
import { ToggleGroup, ToggleGroupItem } from "./index.es48.js";
|
|
46
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./index.es49.js";
|
|
47
|
+
import { cn } from "./index.es50.js";
|
|
48
|
+
import { useIsMobile } from "./index.es51.js";
|
|
49
|
+
export {
|
|
50
|
+
Accordion,
|
|
51
|
+
AccordionContent,
|
|
52
|
+
AccordionItem,
|
|
53
|
+
AccordionTrigger,
|
|
54
|
+
Alert,
|
|
55
|
+
AlertDescription,
|
|
56
|
+
AlertDialog,
|
|
57
|
+
AlertDialogAction,
|
|
58
|
+
AlertDialogCancel,
|
|
59
|
+
AlertDialogContent,
|
|
60
|
+
AlertDialogDescription,
|
|
61
|
+
AlertDialogFooter,
|
|
62
|
+
AlertDialogHeader,
|
|
63
|
+
AlertDialogOverlay,
|
|
64
|
+
AlertDialogPortal,
|
|
65
|
+
AlertDialogTitle,
|
|
66
|
+
AlertDialogTrigger,
|
|
67
|
+
AlertTitle,
|
|
68
|
+
AspectRatio,
|
|
69
|
+
Avatar,
|
|
70
|
+
AvatarFallback,
|
|
71
|
+
AvatarImage,
|
|
72
|
+
Badge,
|
|
73
|
+
Breadcrumb,
|
|
74
|
+
BreadcrumbEllipsis,
|
|
75
|
+
BreadcrumbItem,
|
|
76
|
+
BreadcrumbLink,
|
|
77
|
+
BreadcrumbList,
|
|
78
|
+
BreadcrumbPage,
|
|
79
|
+
BreadcrumbSeparator,
|
|
80
|
+
Button,
|
|
81
|
+
Calendar,
|
|
82
|
+
CalendarDayButton,
|
|
83
|
+
Card,
|
|
84
|
+
CardAction,
|
|
85
|
+
CardContent,
|
|
86
|
+
CardDescription,
|
|
87
|
+
CardFooter,
|
|
88
|
+
CardHeader,
|
|
89
|
+
CardTitle,
|
|
90
|
+
Carousel,
|
|
91
|
+
CarouselContent,
|
|
92
|
+
CarouselItem,
|
|
93
|
+
CarouselNext,
|
|
94
|
+
CarouselPrevious,
|
|
95
|
+
ChartContainer,
|
|
96
|
+
ChartLegend,
|
|
97
|
+
ChartLegendContent,
|
|
98
|
+
ChartStyle,
|
|
99
|
+
ChartTooltip,
|
|
100
|
+
ChartTooltipContent,
|
|
101
|
+
Checkbox,
|
|
102
|
+
Collapsible,
|
|
103
|
+
CollapsibleContent,
|
|
104
|
+
CollapsibleTrigger,
|
|
105
|
+
Command,
|
|
106
|
+
CommandDialog,
|
|
107
|
+
CommandEmpty,
|
|
108
|
+
CommandGroup,
|
|
109
|
+
CommandInput,
|
|
110
|
+
CommandItem,
|
|
111
|
+
CommandList,
|
|
112
|
+
CommandSeparator,
|
|
113
|
+
CommandShortcut,
|
|
114
|
+
ContextMenu,
|
|
115
|
+
ContextMenuCheckboxItem,
|
|
116
|
+
ContextMenuContent,
|
|
117
|
+
ContextMenuGroup,
|
|
118
|
+
ContextMenuItem,
|
|
119
|
+
ContextMenuLabel,
|
|
120
|
+
ContextMenuPortal,
|
|
121
|
+
ContextMenuRadioGroup,
|
|
122
|
+
ContextMenuRadioItem,
|
|
123
|
+
ContextMenuSeparator,
|
|
124
|
+
ContextMenuShortcut,
|
|
125
|
+
ContextMenuSub,
|
|
126
|
+
ContextMenuSubContent,
|
|
127
|
+
ContextMenuSubTrigger,
|
|
128
|
+
ContextMenuTrigger,
|
|
129
|
+
Dialog,
|
|
130
|
+
DialogClose,
|
|
131
|
+
DialogContent,
|
|
132
|
+
DialogDescription,
|
|
133
|
+
DialogFooter,
|
|
134
|
+
DialogHeader,
|
|
135
|
+
DialogOverlay,
|
|
136
|
+
DialogPortal,
|
|
137
|
+
DialogTitle,
|
|
138
|
+
DialogTrigger,
|
|
139
|
+
Drawer,
|
|
140
|
+
DrawerClose,
|
|
141
|
+
DrawerContent,
|
|
142
|
+
DrawerDescription,
|
|
143
|
+
DrawerFooter,
|
|
144
|
+
DrawerHeader,
|
|
145
|
+
DrawerOverlay,
|
|
146
|
+
DrawerPortal,
|
|
147
|
+
DrawerTitle,
|
|
148
|
+
DrawerTrigger,
|
|
149
|
+
DropdownMenu,
|
|
150
|
+
DropdownMenuCheckboxItem,
|
|
151
|
+
DropdownMenuContent,
|
|
152
|
+
DropdownMenuGroup,
|
|
153
|
+
DropdownMenuItem,
|
|
154
|
+
DropdownMenuLabel,
|
|
155
|
+
DropdownMenuPortal,
|
|
156
|
+
DropdownMenuRadioGroup,
|
|
157
|
+
DropdownMenuRadioItem,
|
|
158
|
+
DropdownMenuSeparator,
|
|
159
|
+
DropdownMenuShortcut,
|
|
160
|
+
DropdownMenuSub,
|
|
161
|
+
DropdownMenuSubContent,
|
|
162
|
+
DropdownMenuSubTrigger,
|
|
163
|
+
DropdownMenuTrigger,
|
|
164
|
+
Form,
|
|
165
|
+
FormControl,
|
|
166
|
+
FormDescription,
|
|
167
|
+
FormField,
|
|
168
|
+
FormItem,
|
|
169
|
+
FormLabel,
|
|
170
|
+
FormMessage,
|
|
171
|
+
HoverCard,
|
|
172
|
+
HoverCardContent,
|
|
173
|
+
HoverCardTrigger,
|
|
174
|
+
Input,
|
|
175
|
+
InputOTP,
|
|
176
|
+
InputOTPGroup,
|
|
177
|
+
InputOTPSeparator,
|
|
178
|
+
InputOTPSlot,
|
|
179
|
+
Label,
|
|
180
|
+
Menubar,
|
|
181
|
+
MenubarCheckboxItem,
|
|
182
|
+
MenubarContent,
|
|
183
|
+
MenubarGroup,
|
|
184
|
+
MenubarItem,
|
|
185
|
+
MenubarLabel,
|
|
186
|
+
MenubarMenu,
|
|
187
|
+
MenubarPortal,
|
|
188
|
+
MenubarRadioGroup,
|
|
189
|
+
MenubarRadioItem,
|
|
190
|
+
MenubarSeparator,
|
|
191
|
+
MenubarShortcut,
|
|
192
|
+
MenubarSub,
|
|
193
|
+
MenubarSubContent,
|
|
194
|
+
MenubarSubTrigger,
|
|
195
|
+
MenubarTrigger,
|
|
196
|
+
NavigationMenu,
|
|
197
|
+
NavigationMenuContent,
|
|
198
|
+
NavigationMenuIndicator,
|
|
199
|
+
NavigationMenuItem,
|
|
200
|
+
NavigationMenuLink,
|
|
201
|
+
NavigationMenuList,
|
|
202
|
+
NavigationMenuTrigger,
|
|
203
|
+
NavigationMenuViewport,
|
|
204
|
+
Pagination,
|
|
205
|
+
PaginationContent,
|
|
206
|
+
PaginationEllipsis,
|
|
207
|
+
PaginationItem,
|
|
208
|
+
PaginationLink,
|
|
209
|
+
PaginationNext,
|
|
210
|
+
PaginationPrevious,
|
|
211
|
+
Popover,
|
|
212
|
+
PopoverAnchor,
|
|
213
|
+
PopoverContent,
|
|
214
|
+
PopoverTrigger,
|
|
215
|
+
Progress,
|
|
216
|
+
RadioGroup,
|
|
217
|
+
RadioGroupItem,
|
|
218
|
+
ResizableHandle,
|
|
219
|
+
ResizablePanel,
|
|
220
|
+
ResizablePanelGroup,
|
|
221
|
+
ScrollArea,
|
|
222
|
+
ScrollBar,
|
|
223
|
+
Select,
|
|
224
|
+
SelectContent,
|
|
225
|
+
SelectGroup,
|
|
226
|
+
SelectItem,
|
|
227
|
+
SelectLabel,
|
|
228
|
+
SelectScrollDownButton,
|
|
229
|
+
SelectScrollUpButton,
|
|
230
|
+
SelectSeparator,
|
|
231
|
+
SelectTrigger,
|
|
232
|
+
SelectValue,
|
|
233
|
+
Separator,
|
|
234
|
+
Sheet,
|
|
235
|
+
SheetClose,
|
|
236
|
+
SheetContent,
|
|
237
|
+
SheetDescription,
|
|
238
|
+
SheetFooter,
|
|
239
|
+
SheetHeader,
|
|
240
|
+
SheetTitle,
|
|
241
|
+
SheetTrigger,
|
|
242
|
+
Sidebar,
|
|
243
|
+
SidebarContent,
|
|
244
|
+
SidebarFooter,
|
|
245
|
+
SidebarGroup,
|
|
246
|
+
SidebarGroupAction,
|
|
247
|
+
SidebarGroupContent,
|
|
248
|
+
SidebarGroupLabel,
|
|
249
|
+
SidebarHeader,
|
|
250
|
+
SidebarInput,
|
|
251
|
+
SidebarInset,
|
|
252
|
+
SidebarMenu,
|
|
253
|
+
SidebarMenuAction,
|
|
254
|
+
SidebarMenuBadge,
|
|
255
|
+
SidebarMenuButton,
|
|
256
|
+
SidebarMenuItem,
|
|
257
|
+
SidebarMenuSkeleton,
|
|
258
|
+
SidebarMenuSub,
|
|
259
|
+
SidebarMenuSubButton,
|
|
260
|
+
SidebarMenuSubItem,
|
|
261
|
+
SidebarProvider,
|
|
262
|
+
SidebarRail,
|
|
263
|
+
SidebarSeparator,
|
|
264
|
+
SidebarTrigger,
|
|
265
|
+
Skeleton,
|
|
266
|
+
Slider,
|
|
267
|
+
Switch,
|
|
268
|
+
Table,
|
|
269
|
+
TableBody,
|
|
270
|
+
TableCaption,
|
|
271
|
+
TableCell,
|
|
272
|
+
TableFooter,
|
|
273
|
+
TableHead,
|
|
274
|
+
TableHeader,
|
|
275
|
+
TableRow,
|
|
276
|
+
Tabs,
|
|
277
|
+
TabsContent,
|
|
278
|
+
TabsList,
|
|
279
|
+
TabsTrigger,
|
|
280
|
+
Textarea,
|
|
281
|
+
Toaster,
|
|
282
|
+
Toggle,
|
|
283
|
+
ToggleGroup,
|
|
284
|
+
ToggleGroupItem,
|
|
285
|
+
Tooltip,
|
|
286
|
+
TooltipContent,
|
|
287
|
+
TooltipProvider,
|
|
288
|
+
TooltipTrigger,
|
|
289
|
+
badgeVariants,
|
|
290
|
+
buttonVariants,
|
|
291
|
+
cn,
|
|
292
|
+
navigationMenuTriggerStyle,
|
|
293
|
+
toggleVariants,
|
|
294
|
+
useFormField,
|
|
295
|
+
useIsMobile,
|
|
296
|
+
useSidebar
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
|
+
import { cn } from "./index.es50.js";
|
|
6
|
+
function Breadcrumb({ ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
|
|
8
|
+
}
|
|
9
|
+
function BreadcrumbList({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"ol",
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "breadcrumb-list",
|
|
14
|
+
className: cn(
|
|
15
|
+
"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function BreadcrumbItem({ className, ...props }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
"li",
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "breadcrumb-item",
|
|
27
|
+
className: cn("inline-flex items-center gap-1.5", className),
|
|
28
|
+
...props
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function BreadcrumbLink({
|
|
33
|
+
asChild,
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) {
|
|
37
|
+
const Comp = asChild ? Slot : "a";
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
Comp,
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "breadcrumb-link",
|
|
42
|
+
className: cn("hover:text-foreground transition-colors", className),
|
|
43
|
+
...props
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function BreadcrumbPage({ className, ...props }) {
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "breadcrumb-page",
|
|
52
|
+
role: "link",
|
|
53
|
+
"aria-disabled": "true",
|
|
54
|
+
"aria-current": "page",
|
|
55
|
+
className: cn("text-foreground font-normal", className),
|
|
56
|
+
...props
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function BreadcrumbSeparator({
|
|
61
|
+
children,
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}) {
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
"li",
|
|
67
|
+
{
|
|
68
|
+
"data-slot": "breadcrumb-separator",
|
|
69
|
+
role: "presentation",
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
className: cn("[&>svg]:size-3.5", className),
|
|
72
|
+
...props,
|
|
73
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function BreadcrumbEllipsis({
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ jsxs(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "breadcrumb-ellipsis",
|
|
85
|
+
role: "presentation",
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
className: cn("flex size-9 items-center justify-center", className),
|
|
88
|
+
...props,
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }),
|
|
91
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
export {
|
|
97
|
+
Breadcrumb,
|
|
98
|
+
BreadcrumbEllipsis,
|
|
99
|
+
BreadcrumbItem,
|
|
100
|
+
BreadcrumbLink,
|
|
101
|
+
BreadcrumbList,
|
|
102
|
+
BreadcrumbPage,
|
|
103
|
+
BreadcrumbSeparator
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=index.es10.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es10.js","sources":["../lib/components/ui/breadcrumb.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { ChevronRight, MoreHorizontal } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nfunction Breadcrumb({ ...props }: React.ComponentProps<\"nav\">) {\n return <nav aria-label=\"breadcrumb\" data-slot=\"breadcrumb\" {...props} />;\n}\n\nfunction BreadcrumbList({ className, ...props }: React.ComponentProps<\"ol\">) {\n return (\n <ol\n data-slot=\"breadcrumb-list\"\n className={cn(\n \"text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbItem({ className, ...props }: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-item\"\n className={cn(\"inline-flex items-center gap-1.5\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbLink({\n asChild,\n className,\n ...props\n}: React.ComponentProps<\"a\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot : \"a\";\n\n return (\n <Comp\n data-slot=\"breadcrumb-link\"\n className={cn(\"hover:text-foreground transition-colors\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbPage({ className, ...props }: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-page\"\n role=\"link\"\n aria-disabled=\"true\"\n aria-current=\"page\"\n className={cn(\"text-foreground font-normal\", className)}\n {...props}\n />\n );\n}\n\nfunction BreadcrumbSeparator({\n children,\n className,\n ...props\n}: React.ComponentProps<\"li\">) {\n return (\n <li\n data-slot=\"breadcrumb-separator\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"[&>svg]:size-3.5\", className)}\n {...props}\n >\n {children ?? <ChevronRight />}\n </li>\n );\n}\n\nfunction BreadcrumbEllipsis({\n className,\n ...props\n}: React.ComponentProps<\"span\">) {\n return (\n <span\n data-slot=\"breadcrumb-ellipsis\"\n role=\"presentation\"\n aria-hidden=\"true\"\n className={cn(\"flex size-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"size-4\" />\n <span className=\"sr-only\">More</span>\n </span>\n );\n}\n\nexport {\n Breadcrumb,\n BreadcrumbList,\n BreadcrumbItem,\n BreadcrumbLink,\n BreadcrumbPage,\n BreadcrumbSeparator,\n BreadcrumbEllipsis,\n};\n"],"names":[],"mappings":";;;;;AAMA,SAAS,WAAW,EAAE,GAAG,SAAsC;AAC7D,6BAAQ,OAAA,EAAI,cAAW,cAAa,aAAU,cAAc,GAAG,OAAO;AACxE;AAEA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAqC;AAC3E,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MAAA;AAAA,MAED,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAqC;AAC3E,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,oCAAoC,SAAS;AAAA,MAC1D,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAEG;AACD,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,2CAA2C,SAAS;AAAA,MACjE,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,eAAe,EAAE,WAAW,GAAG,SAAuC;AAC7E,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,iBAAc;AAAA,MACd,gBAAa;AAAA,MACb,WAAW,GAAG,+BAA+B,SAAS;AAAA,MACrD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAAS,oBAAoB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA+B;AAC7B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAW,GAAG,oBAAoB,SAAS;AAAA,MAC1C,GAAG;AAAA,MAEH,UAAA,gCAAa,cAAA,CAAA,CAAa;AAAA,IAAA;AAAA,EAAA;AAGjC;AAEA,SAAS,mBAAmB;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAAiC;AAC/B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,MAAK;AAAA,MACL,eAAY;AAAA,MACZ,WAAW,GAAG,2CAA2C,SAAS;AAAA,MACjE,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAA,oBAAC,gBAAA,EAAe,WAAU,SAAA,CAAS;AAAA,QACnC,oBAAC,QAAA,EAAK,WAAU,WAAU,UAAA,OAAA,CAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpC;"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
import { cn } from "./index.es50.js";
|
|
6
|
+
const buttonVariants = cva(
|
|
7
|
+
"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",
|
|
8
|
+
{
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
12
|
+
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
13
|
+
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",
|
|
14
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
16
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
17
|
+
},
|
|
18
|
+
size: {
|
|
19
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
20
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
21
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
22
|
+
icon: "size-9",
|
|
23
|
+
"icon-sm": "size-8",
|
|
24
|
+
"icon-lg": "size-10"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {
|
|
28
|
+
variant: "default",
|
|
29
|
+
size: "default"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
function Button({
|
|
34
|
+
className,
|
|
35
|
+
variant = "default",
|
|
36
|
+
size = "default",
|
|
37
|
+
asChild = false,
|
|
38
|
+
...props
|
|
39
|
+
}) {
|
|
40
|
+
const Comp = asChild ? Slot : "button";
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
Comp,
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "button",
|
|
45
|
+
"data-variant": variant,
|
|
46
|
+
"data-size": size,
|
|
47
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
48
|
+
...props
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
Button,
|
|
54
|
+
buttonVariants
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=index.es11.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es11.js","sources":["../lib/components/ui/button.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst buttonVariants = cva(\n \"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\",\n {\n variants: {\n variant: {\n default: \"bg-primary text-primary-foreground hover:bg-primary/90\",\n destructive:\n \"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60\",\n outline:\n \"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost:\n \"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-9 px-4 py-2 has-[>svg]:px-3\",\n sm: \"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5\",\n lg: \"h-10 rounded-md px-6 has-[>svg]:px-4\",\n icon: \"size-9\",\n \"icon-sm\": \"size-8\",\n \"icon-lg\": \"size-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n);\n\nfunction Button({\n className,\n variant = \"default\",\n size = \"default\",\n asChild = false,\n ...props\n}: React.ComponentProps<\"button\"> &\n VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n }) {\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n data-slot=\"button\"\n data-variant={variant}\n data-size={size}\n className={cn(buttonVariants({ variant, size, className }))}\n {...props}\n />\n );\n}\n\nexport { Button, buttonVariants };\n"],"names":[],"mappings":";;;;;AAMA,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,QACF,SACE;AAAA,QACF,WACE;AAAA,QACF,OACE;AAAA,QACF,MAAM;AAAA,MAAA;AAAA,MAER,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,WAAW;AAAA,QACX,WAAW;AAAA,MAAA;AAAA,IACb;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ;AAEA,SAAS,OAAO;AAAA,EACd;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,UAAU;AAAA,EACV,GAAG;AACL,GAGK;AACH,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,gBAAc;AAAA,MACd,aAAW;AAAA,MACX,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAA,CAAW,CAAC;AAAA,MACzD,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|