@skybin-tech/nebula-ui 0.0.22 → 0.0.25
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/dist/cjs/components/Accordion/Accordion.cjs +18 -0
- package/dist/cjs/components/Accordion/Accordion.cjs.map +1 -0
- package/dist/cjs/components/Checkbox/Checkbox.cjs +10 -0
- package/dist/cjs/components/Checkbox/Checkbox.cjs.map +1 -0
- package/dist/cjs/components/Pagination/Pagination.cjs +110 -0
- package/dist/cjs/components/Pagination/Pagination.cjs.map +1 -0
- package/dist/cjs/components/Skeleton/Skeleton.cjs +11 -0
- package/dist/cjs/components/Skeleton/Skeleton.cjs.map +1 -0
- package/dist/cjs/components/Tooltip/Tooltip.cjs +16 -0
- package/dist/cjs/components/Tooltip/Tooltip.cjs.map +1 -0
- package/dist/cjs/index.cjs +35 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/primitives/accordion.cjs +67 -0
- package/dist/cjs/primitives/accordion.cjs.map +1 -0
- package/dist/cjs/primitives/badge.cjs +4 -1
- package/dist/cjs/primitives/badge.cjs.map +1 -1
- package/dist/cjs/primitives/select.cjs +2 -0
- package/dist/cjs/primitives/select.cjs.map +1 -1
- package/dist/cjs/primitives/skeleton.cjs +16 -0
- package/dist/cjs/primitives/skeleton.cjs.map +1 -0
- package/dist/cjs/primitives/tooltip.cjs +46 -0
- package/dist/cjs/primitives/tooltip.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +5 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +5 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +10 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +29 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.js +93 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +8 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.js +11 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +3 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +16 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/dist/primitives/accordion.d.ts +8 -0
- package/dist/primitives/accordion.d.ts.map +1 -0
- package/dist/primitives/accordion.js +49 -0
- package/dist/primitives/accordion.js.map +1 -0
- package/dist/primitives/badge.d.ts +1 -1
- package/dist/primitives/badge.d.ts.map +1 -1
- package/dist/primitives/badge.js +4 -1
- package/dist/primitives/badge.js.map +1 -1
- package/dist/primitives/select.js +4 -2
- package/dist/primitives/select.js.map +1 -1
- package/dist/primitives/skeleton.d.ts +3 -0
- package/dist/primitives/skeleton.d.ts.map +1 -0
- package/dist/primitives/skeleton.js +16 -0
- package/dist/primitives/skeleton.js.map +1 -0
- package/dist/primitives/tooltip.d.ts +8 -0
- package/dist/primitives/tooltip.d.ts.map +1 -0
- package/dist/primitives/tooltip.js +28 -0
- package/dist/primitives/tooltip.js.map +1 -0
- package/package.json +70 -1
- package/dist/cjs/components/Form/Select.cjs +0 -156
- package/dist/cjs/components/Form/Select.cjs.map +0 -1
- package/dist/components/Form/Select.js +0 -156
- package/dist/components/Form/Select.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const accordion = require("../../primitives/accordion.cjs");
|
|
7
|
+
const Accordion = accordion.Accordion;
|
|
8
|
+
const AccordionItem = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(accordion.AccordionItem, { ref, ...props }));
|
|
9
|
+
AccordionItem.displayName = "AccordionItem";
|
|
10
|
+
const AccordionTrigger = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(accordion.AccordionTrigger, { ref, ...props }));
|
|
11
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
12
|
+
const AccordionContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(accordion.AccordionContent, { ref, ...props }));
|
|
13
|
+
AccordionContent.displayName = "AccordionContent";
|
|
14
|
+
exports.Accordion = Accordion;
|
|
15
|
+
exports.AccordionContent = AccordionContent;
|
|
16
|
+
exports.AccordionItem = AccordionItem;
|
|
17
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
18
|
+
//# sourceMappingURL=Accordion.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.cjs","sources":["../../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Accordion as AccordionPrimitive,\n AccordionItem as AccordionItemPrimitive,\n AccordionTrigger as AccordionTriggerPrimitive,\n AccordionContent as AccordionContentPrimitive,\n} from \"../../primitives/accordion\"\n\nexport const Accordion = AccordionPrimitive\n\nexport const AccordionItem = forwardRef<\n ElementRef<typeof AccordionItemPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionItemPrimitive>\n>((props, ref) => <AccordionItemPrimitive ref={ref} {...props} />)\nAccordionItem.displayName = \"AccordionItem\"\n\nexport const AccordionTrigger = forwardRef<\n ElementRef<typeof AccordionTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionTriggerPrimitive>\n>((props, ref) => <AccordionTriggerPrimitive ref={ref} {...props} />)\nAccordionTrigger.displayName = \"AccordionTrigger\"\n\nexport const AccordionContent = forwardRef<\n ElementRef<typeof AccordionContentPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionContentPrimitive>\n>((props, ref) => <AccordionContentPrimitive ref={ref} {...props} />)\nAccordionContent.displayName = \"AccordionContent\"\n"],"names":["AccordionPrimitive","forwardRef","AccordionItemPrimitive","AccordionTriggerPrimitive","AccordionContentPrimitive"],"mappings":";;;;;;AASO,MAAM,YAAYA,UAAAA;AAElB,MAAM,gBAAgBC,MAAAA,WAG3B,CAAC,OAAO,uCAASC,UAAAA,eAAA,EAAuB,KAAW,GAAG,OAAO,CAAE;AACjE,cAAc,cAAc;AAErB,MAAM,mBAAmBD,MAAAA,WAG9B,CAAC,OAAO,uCAASE,UAAAA,kBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;AAExB,MAAM,mBAAmBF,MAAAA,WAG9B,CAAC,OAAO,uCAASG,UAAAA,kBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const checkbox = require("../../primitives/checkbox.cjs");
|
|
7
|
+
const Checkbox = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(checkbox.Checkbox, { ref, ...props }));
|
|
8
|
+
Checkbox.displayName = "Checkbox";
|
|
9
|
+
exports.Checkbox = Checkbox;
|
|
10
|
+
//# sourceMappingURL=Checkbox.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.cjs","sources":["../../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["'use client';\n\nimport { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"../../primitives/checkbox\"\n\nexport type CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive>\n\nexport const Checkbox = forwardRef<\n ElementRef<typeof CheckboxPrimitive>,\n CheckboxProps\n>((props, ref) => <CheckboxPrimitive ref={ref} {...props} />)\nCheckbox.displayName = \"Checkbox\"\n"],"names":["forwardRef","CheckboxPrimitive"],"mappings":";;;;;;AAQO,MAAM,WAAWA,MAAAA,WAGtB,CAAC,OAAO,uCAASC,SAAAA,UAAA,EAAkB,KAAW,GAAG,OAAO,CAAE;AAC5D,SAAS,cAAc;;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const lucideReact = require("lucide-react");
|
|
7
|
+
const cn = require("../../utils/cn.cjs");
|
|
8
|
+
const button = require("../../primitives/button.cjs");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
|
+
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
27
|
+
"nav",
|
|
28
|
+
{
|
|
29
|
+
role: "navigation",
|
|
30
|
+
"aria-label": "pagination",
|
|
31
|
+
className: cn.cn("mx-auto flex w-full justify-center", className),
|
|
32
|
+
...props
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
Pagination.displayName = "Pagination";
|
|
36
|
+
const PaginationContent = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
"ul",
|
|
38
|
+
{
|
|
39
|
+
ref,
|
|
40
|
+
className: cn.cn("flex flex-row items-center gap-1", className),
|
|
41
|
+
...props
|
|
42
|
+
}
|
|
43
|
+
));
|
|
44
|
+
PaginationContent.displayName = "PaginationContent";
|
|
45
|
+
const PaginationItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { ref, className: cn.cn("", className), ...props }));
|
|
46
|
+
PaginationItem.displayName = "PaginationItem";
|
|
47
|
+
const PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
48
|
+
"a",
|
|
49
|
+
{
|
|
50
|
+
"aria-current": isActive ? "page" : void 0,
|
|
51
|
+
className: cn.cn(
|
|
52
|
+
button.buttonVariants({
|
|
53
|
+
variant: isActive ? "outline" : "ghost",
|
|
54
|
+
size
|
|
55
|
+
}),
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
PaginationLink.displayName = "PaginationLink";
|
|
62
|
+
const PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
63
|
+
PaginationLink,
|
|
64
|
+
{
|
|
65
|
+
"aria-label": "Go to previous page",
|
|
66
|
+
size: "default",
|
|
67
|
+
className: cn.cn("gap-1 pl-2.5", className),
|
|
68
|
+
...props,
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
|
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Previous" })
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
76
|
+
const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
77
|
+
PaginationLink,
|
|
78
|
+
{
|
|
79
|
+
"aria-label": "Go to next page",
|
|
80
|
+
size: "default",
|
|
81
|
+
className: cn.cn("gap-1 pr-2.5", className),
|
|
82
|
+
...props,
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Next" }),
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
PaginationNext.displayName = "PaginationNext";
|
|
90
|
+
const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
"aria-hidden": true,
|
|
94
|
+
className: cn.cn("flex h-9 w-9 items-center justify-center", className),
|
|
95
|
+
...props,
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }),
|
|
98
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
103
|
+
exports.Pagination = Pagination;
|
|
104
|
+
exports.PaginationContent = PaginationContent;
|
|
105
|
+
exports.PaginationEllipsis = PaginationEllipsis;
|
|
106
|
+
exports.PaginationItem = PaginationItem;
|
|
107
|
+
exports.PaginationLink = PaginationLink;
|
|
108
|
+
exports.PaginationNext = PaginationNext;
|
|
109
|
+
exports.PaginationPrevious = PaginationPrevious;
|
|
110
|
+
//# sourceMappingURL=Pagination.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.cjs","sources":["../../../../src/components/Pagination/Pagination.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\"\nimport { cn } from \"../../utils/cn\"\nimport { ButtonPrimitive, buttonVariants } from \"../../primitives/button\"\n\nconst Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n)\nPagination.displayName = \"Pagination\"\n\nconst PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n))\nPaginationContent.displayName = \"PaginationContent\"\n\nconst PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n))\nPaginationItem.displayName = \"PaginationItem\"\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof ButtonPrimitive>, \"size\"> &\n React.ComponentProps<\"a\">\n\nconst PaginationLink = ({ className, isActive, size = \"icon\", ...props }: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n)\nPaginationLink.displayName = \"PaginationLink\"\n\nconst PaginationPrevious = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"default\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n)\nPaginationPrevious.displayName = \"PaginationPrevious\"\n\nconst PaginationNext = ({ className, ...props }: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"default\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n)\nPaginationNext.displayName = \"PaginationNext\"\n\nconst PaginationEllipsis = ({ className, ...props }: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n)\nPaginationEllipsis.displayName = \"PaginationEllipsis\"\n\nexport {\n Pagination,\n PaginationContent,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n PaginationEllipsis,\n}\n"],"names":["jsx","cn","React","buttonVariants","jsxs","ChevronLeft","ChevronRight","MoreHorizontal"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,aAAa,CAAC,EAAE,WAAW,GAAG,YAClCA,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,MAAK;AAAA,IACL,cAAW;AAAA,IACX,WAAWC,GAAAA,GAAG,sCAAsC,SAAS;AAAA,IAC5D,GAAG;AAAA,EAAA;AACN;AAEF,WAAW,cAAc;AAEzB,MAAM,oBAAoBC,iBAAM,WAG9B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BF,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC;AAAA,IACA,WAAWC,GAAAA,GAAG,oCAAoC,SAAS;AAAA,IAC1D,GAAG;AAAA,EAAA;AACN,CACD;AACD,kBAAkB,cAAc;AAEhC,MAAM,iBAAiBC,iBAAM,WAG3B,CAAC,EAAE,WAAW,GAAG,SAAS,uCACzB,MAAA,EAAG,KAAU,WAAWD,GAAAA,GAAG,IAAI,SAAS,GAAI,GAAG,OAAO,CACxD;AACD,eAAe,cAAc;AAO7B,MAAM,iBAAiB,CAAC,EAAE,WAAW,UAAU,OAAO,QAAQ,GAAG,MAAA,MAC/DD,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,gBAAc,WAAW,SAAS;AAAA,IAClC,WAAWC,GAAAA;AAAAA,MACTE,sBAAe;AAAA,QACb,SAAS,WAAW,YAAY;AAAA,QAChC;AAAA,MAAA,CACD;AAAA,MACD;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN;AAEF,eAAe,cAAc;AAE7B,MAAM,qBAAqB,CAAC,EAAE,WAAW,GAAG,YAC1CC,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWH,GAAAA,GAAG,gBAAgB,SAAS;AAAA,IACtC,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAD,2BAAAA,IAACK,YAAAA,aAAA,EAAY,WAAU,UAAA,CAAU;AAAA,MACjCL,2BAAAA,IAAC,UAAK,UAAA,WAAA,CAAQ;AAAA,IAAA;AAAA,EAAA;AAChB;AAEF,mBAAmB,cAAc;AAEjC,MAAM,iBAAiB,CAAC,EAAE,WAAW,GAAG,YACtCI,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,cAAW;AAAA,IACX,MAAK;AAAA,IACL,WAAWH,GAAAA,GAAG,gBAAgB,SAAS;AAAA,IACtC,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAD,2BAAAA,IAAC,UAAK,UAAA,OAAA,CAAI;AAAA,MACVA,2BAAAA,IAACM,YAAAA,cAAA,EAAa,WAAU,UAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACpC;AAEF,eAAe,cAAc;AAE7B,MAAM,qBAAqB,CAAC,EAAE,WAAW,GAAG,YAC1CF,2BAAAA;AAAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAW;AAAA,IACX,WAAWH,GAAAA,GAAG,4CAA4C,SAAS;AAAA,IAClE,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAD,2BAAAA,IAACO,YAAAA,gBAAA,EAAe,WAAU,UAAA,CAAU;AAAA,MACpCP,2BAAAA,IAAC,QAAA,EAAK,WAAU,WAAU,UAAA,aAAA,CAAU;AAAA,IAAA;AAAA,EAAA;AACtC;AAEF,mBAAmB,cAAc;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const skeleton = require("../../primitives/skeleton.cjs");
|
|
6
|
+
function Skeleton(props) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton.Skeleton, { ...props });
|
|
8
|
+
}
|
|
9
|
+
Skeleton.displayName = "Skeleton";
|
|
10
|
+
exports.Skeleton = Skeleton;
|
|
11
|
+
//# sourceMappingURL=Skeleton.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.cjs","sources":["../../../../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["import { Skeleton as SkeletonPrimitive } from \"../../primitives/skeleton\"\nimport type { ComponentPropsWithoutRef } from \"react\"\n\nexport type SkeletonProps = ComponentPropsWithoutRef<typeof SkeletonPrimitive>\n\nexport function Skeleton(props: SkeletonProps) {\n return <SkeletonPrimitive {...props} />\n}\nSkeleton.displayName = \"Skeleton\"\n"],"names":["jsx","SkeletonPrimitive"],"mappings":";;;;;AAKO,SAAS,SAAS,OAAsB;AAC7C,SAAOA,+BAACC,SAAAA,UAAA,EAAmB,GAAG,MAAA,CAAO;AACvC;AACA,SAAS,cAAc;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const tooltip = require("../../primitives/tooltip.cjs");
|
|
6
|
+
const React = require("react");
|
|
7
|
+
const TooltipProvider = tooltip.TooltipProvider;
|
|
8
|
+
const Tooltip = tooltip.Tooltip;
|
|
9
|
+
const TooltipTrigger = tooltip.TooltipTrigger;
|
|
10
|
+
const TooltipContent = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(tooltip.TooltipContent, { ref, ...props }));
|
|
11
|
+
TooltipContent.displayName = "TooltipContent";
|
|
12
|
+
exports.Tooltip = Tooltip;
|
|
13
|
+
exports.TooltipContent = TooltipContent;
|
|
14
|
+
exports.TooltipProvider = TooltipProvider;
|
|
15
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
16
|
+
//# sourceMappingURL=Tooltip.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.cjs","sources":["../../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import {\n Tooltip as TooltipPrimitive,\n TooltipTrigger as TooltipTriggerPrimitive,\n TooltipContent as TooltipContentPrimitive,\n TooltipProvider as TooltipProviderPrimitive,\n} from \"../../primitives/tooltip\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport { forwardRef } from \"react\"\n\nexport const TooltipProvider = TooltipProviderPrimitive\nexport const Tooltip = TooltipPrimitive\nexport const TooltipTrigger = TooltipTriggerPrimitive\n\nexport const TooltipContent = forwardRef<\n ElementRef<typeof TooltipContentPrimitive>,\n ComponentPropsWithoutRef<typeof TooltipContentPrimitive>\n>((props, ref) => <TooltipContentPrimitive ref={ref} {...props} />)\nTooltipContent.displayName = \"TooltipContent\"\n\nexport type TooltipContentProps = ComponentPropsWithoutRef<typeof TooltipContentPrimitive>\n"],"names":["TooltipProviderPrimitive","TooltipPrimitive","TooltipTriggerPrimitive","forwardRef","TooltipContentPrimitive"],"mappings":";;;;;;AASO,MAAM,kBAAkBA,QAAAA;AACxB,MAAM,UAAUC,QAAAA;AAChB,MAAM,iBAAiBC,QAAAA;AAEvB,MAAM,iBAAiBC,MAAAA,WAG5B,CAAC,OAAO,uCAASC,QAAAA,gBAAA,EAAwB,KAAW,GAAG,OAAO,CAAE;AAClE,eAAe,cAAc;;;;;"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const Checkbox = require("./components/Checkbox/Checkbox.cjs");
|
|
5
|
+
const select = require("./primitives/select.cjs");
|
|
4
6
|
const useToggle = require("./hooks/useToggle.cjs");
|
|
5
7
|
const useDebounce = require("./hooks/useDebounce.cjs");
|
|
6
8
|
const useToast = require("./hooks/useToast.cjs");
|
|
7
9
|
const cn = require("./utils/cn.cjs");
|
|
10
|
+
const Accordion = require("./components/Accordion/Accordion.cjs");
|
|
8
11
|
const Alert = require("./components/Alert/Alert.cjs");
|
|
9
12
|
const Avatar = require("./components/Avatar/Avatar.cjs");
|
|
10
13
|
const Badge = require("./components/Badge/Badge.cjs");
|
|
11
14
|
const Button = require("./components/Button/Button.cjs");
|
|
12
15
|
const calendar = require("./primitives/calendar.cjs");
|
|
13
16
|
const Card = require("./components/Card/Card.cjs");
|
|
14
|
-
const Checkbox = require("./components/Form/Checkbox.cjs");
|
|
15
17
|
const command = require("./primitives/command.cjs");
|
|
16
18
|
const dialog = require("./primitives/dialog.cjs");
|
|
17
19
|
const DropdownMenu = require("./components/DropdownMenu/DropdownMenu.cjs");
|
|
18
20
|
const Form = require("./components/Form/Form.cjs");
|
|
21
|
+
const Checkbox$1 = require("./components/Form/Checkbox.cjs");
|
|
19
22
|
const context = require("./components/Form/context.cjs");
|
|
20
23
|
const Input = require("./components/Input/Input.cjs");
|
|
21
24
|
const Label = require("./components/Label/Label.cjs");
|
|
25
|
+
const Pagination = require("./components/Pagination/Pagination.cjs");
|
|
22
26
|
const popover = require("./primitives/popover.cjs");
|
|
23
27
|
const Radio = require("./components/Form/Radio.cjs");
|
|
24
28
|
const scrollArea = require("./primitives/scroll-area.cjs");
|
|
25
|
-
const Select = require("./components/Form/Select.cjs");
|
|
26
29
|
const Separator = require("./components/Separator/Separator.cjs");
|
|
30
|
+
const Skeleton = require("./components/Skeleton/Skeleton.cjs");
|
|
27
31
|
const Switch = require("./components/Form/Switch.cjs");
|
|
28
32
|
const table = require("./primitives/table.cjs");
|
|
29
33
|
const Tabs = require("./components/Tabs/Tabs.cjs");
|
|
@@ -33,12 +37,28 @@ const Textarea = require("./components/Textarea/Textarea.cjs");
|
|
|
33
37
|
const toast = require("./primitives/toast.cjs");
|
|
34
38
|
const sonner = require("./primitives/sonner.cjs");
|
|
35
39
|
const toggle = require("./primitives/toggle.cjs");
|
|
40
|
+
const Tooltip = require("./components/Tooltip/Tooltip.cjs");
|
|
36
41
|
const hooks = require("./components/Form/hooks.cjs");
|
|
42
|
+
exports.Checkbox = Checkbox.Checkbox;
|
|
43
|
+
exports.Select = select.Select;
|
|
44
|
+
exports.SelectContent = select.SelectContent;
|
|
45
|
+
exports.SelectGroup = select.SelectGroup;
|
|
46
|
+
exports.SelectItem = select.SelectItem;
|
|
47
|
+
exports.SelectLabel = select.SelectLabel;
|
|
48
|
+
exports.SelectScrollDownButton = select.SelectScrollDownButton;
|
|
49
|
+
exports.SelectScrollUpButton = select.SelectScrollUpButton;
|
|
50
|
+
exports.SelectSeparator = select.SelectSeparator;
|
|
51
|
+
exports.SelectTrigger = select.SelectTrigger;
|
|
52
|
+
exports.SelectValue = select.SelectValue;
|
|
37
53
|
exports.useToggle = useToggle.useToggle;
|
|
38
54
|
exports.useDebounce = useDebounce.useDebounce;
|
|
39
55
|
exports.toast = useToast.toast;
|
|
40
56
|
exports.useToast = useToast.useToast;
|
|
41
57
|
exports.cn = cn.cn;
|
|
58
|
+
exports.Accordion = Accordion.Accordion;
|
|
59
|
+
exports.AccordionContent = Accordion.AccordionContent;
|
|
60
|
+
exports.AccordionItem = Accordion.AccordionItem;
|
|
61
|
+
exports.AccordionTrigger = Accordion.AccordionTrigger;
|
|
42
62
|
exports.Alert = Alert.Alert;
|
|
43
63
|
exports.AlertDescription = Alert.AlertDescription;
|
|
44
64
|
exports.AlertTitle = Alert.AlertTitle;
|
|
@@ -56,7 +76,6 @@ exports.CardDescription = Card.CardDescription;
|
|
|
56
76
|
exports.CardFooter = Card.CardFooter;
|
|
57
77
|
exports.CardHeader = Card.CardHeader;
|
|
58
78
|
exports.CardTitle = Card.CardTitle;
|
|
59
|
-
exports.Checkbox = Checkbox.Checkbox;
|
|
60
79
|
exports.Command = command.Command;
|
|
61
80
|
exports.CommandDialog = command.CommandDialog;
|
|
62
81
|
exports.CommandEmpty = command.CommandEmpty;
|
|
@@ -92,12 +111,20 @@ exports.DropdownMenuSubContent = DropdownMenu.DropdownMenuSubContent;
|
|
|
92
111
|
exports.DropdownMenuSubTrigger = DropdownMenu.DropdownMenuSubTrigger;
|
|
93
112
|
exports.DropdownMenuTrigger = DropdownMenu.DropdownMenuTrigger;
|
|
94
113
|
exports.Form = Form.Form;
|
|
114
|
+
exports.FormCheckbox = Checkbox$1.Checkbox;
|
|
95
115
|
exports.FormConfigContext = context.FormConfigContext;
|
|
96
116
|
exports.buildZodSchemaFromRules = context.buildZodSchemaFromRules;
|
|
97
117
|
exports.defaultFormConfig = context.defaultFormConfig;
|
|
98
118
|
exports.useFieldValidationRegistry = context.useFieldValidationRegistry;
|
|
99
119
|
exports.Input = Input.Input;
|
|
100
120
|
exports.Label = Label.Label;
|
|
121
|
+
exports.Pagination = Pagination.Pagination;
|
|
122
|
+
exports.PaginationContent = Pagination.PaginationContent;
|
|
123
|
+
exports.PaginationEllipsis = Pagination.PaginationEllipsis;
|
|
124
|
+
exports.PaginationItem = Pagination.PaginationItem;
|
|
125
|
+
exports.PaginationLink = Pagination.PaginationLink;
|
|
126
|
+
exports.PaginationNext = Pagination.PaginationNext;
|
|
127
|
+
exports.PaginationPrevious = Pagination.PaginationPrevious;
|
|
101
128
|
exports.Popover = popover.Popover;
|
|
102
129
|
exports.PopoverAnchor = popover.PopoverAnchor;
|
|
103
130
|
exports.PopoverContent = popover.PopoverContent;
|
|
@@ -106,8 +133,8 @@ exports.RadioGroup = Radio.RadioGroup;
|
|
|
106
133
|
exports.RadioItem = Radio.RadioItem;
|
|
107
134
|
exports.ScrollArea = scrollArea.ScrollArea;
|
|
108
135
|
exports.ScrollBar = scrollArea.ScrollBar;
|
|
109
|
-
exports.Select = Select.Select;
|
|
110
136
|
exports.Separator = Separator.Separator;
|
|
137
|
+
exports.Skeleton = Skeleton.Skeleton;
|
|
111
138
|
exports.Switch = Switch.Switch;
|
|
112
139
|
exports.Table = table.Table;
|
|
113
140
|
exports.TableBody = table.TableBody;
|
|
@@ -134,6 +161,10 @@ exports.ToastViewport = toast.ToastViewport;
|
|
|
134
161
|
exports.Toaster = sonner.Toaster;
|
|
135
162
|
exports.Toggle = toggle.Toggle;
|
|
136
163
|
exports.toggleVariants = toggle.toggleVariants;
|
|
164
|
+
exports.Tooltip = Tooltip.Tooltip;
|
|
165
|
+
exports.TooltipContent = Tooltip.TooltipContent;
|
|
166
|
+
exports.TooltipProvider = Tooltip.TooltipProvider;
|
|
167
|
+
exports.TooltipTrigger = Tooltip.TooltipTrigger;
|
|
137
168
|
exports.useFieldError = hooks.useFieldError;
|
|
138
169
|
exports.useForm = hooks.useForm;
|
|
139
170
|
exports.useFormConfig = hooks.useFormConfig;
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const AccordionPrimitive = require("@radix-ui/react-accordion");
|
|
7
|
+
const lucideReact = require("lucide-react");
|
|
8
|
+
const cn = require("../utils/cn.cjs");
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
10
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
11
|
+
if (e) {
|
|
12
|
+
for (const k in e) {
|
|
13
|
+
if (k !== "default") {
|
|
14
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: () => e[k]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
|
+
const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
|
|
27
|
+
const Accordion = AccordionPrimitive__namespace.Root;
|
|
28
|
+
const AccordionItem = React__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
AccordionPrimitive__namespace.Item,
|
|
30
|
+
{
|
|
31
|
+
ref,
|
|
32
|
+
className: cn.cn("border-b border-border", className),
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
));
|
|
36
|
+
AccordionItem.displayName = "AccordionItem";
|
|
37
|
+
const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
38
|
+
AccordionPrimitive__namespace.Trigger,
|
|
39
|
+
{
|
|
40
|
+
ref,
|
|
41
|
+
className: cn.cn(
|
|
42
|
+
"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
|
|
43
|
+
className
|
|
44
|
+
),
|
|
45
|
+
...props,
|
|
46
|
+
children: [
|
|
47
|
+
children,
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
) }));
|
|
52
|
+
AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
|
|
53
|
+
const AccordionContent = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
54
|
+
AccordionPrimitive__namespace.Content,
|
|
55
|
+
{
|
|
56
|
+
ref,
|
|
57
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
58
|
+
...props,
|
|
59
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn("pb-4 pt-0", className), children })
|
|
60
|
+
}
|
|
61
|
+
));
|
|
62
|
+
AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
|
|
63
|
+
exports.Accordion = Accordion;
|
|
64
|
+
exports.AccordionContent = AccordionContent;
|
|
65
|
+
exports.AccordionItem = AccordionItem;
|
|
66
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
67
|
+
//# sourceMappingURL=accordion.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.cjs","sources":["../../../src/primitives/accordion.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDown } from \"lucide-react\"\nimport { cn } from \"@/utils/index\"\n\nconst Accordion = AccordionPrimitive.Root\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item\n ref={ref}\n className={cn(\"border-b border-border\", className)}\n {...props}\n />\n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className=\"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\"\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"],"names":["AccordionPrimitive","React","jsx","cn","jsxs","ChevronDown"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,YAAYA,8BAAmB;AAErC,MAAM,gBAAgBC,iBAAM,WAG1B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BC,2BAAAA;AAAAA,EAACF,8BAAmB;AAAA,EAAnB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA,GAAG,0BAA0B,SAAS;AAAA,IAChD,GAAG;AAAA,EAAA;AACN,CACD;AACD,cAAc,cAAc;AAE5B,MAAM,mBAAmBF,iBAAM,WAG7B,CAAC,EAAE,WAAW,UAAU,GAAG,MAAA,GAAS,QACpCC,2BAAAA,IAACF,8BAAmB,QAAnB,EAA0B,WAAU,QACnC,UAAAI,2BAAAA;AAAAA,EAACJ,8BAAmB;AAAA,EAAnB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,IAEH,UAAA;AAAA,MAAA;AAAA,MACDD,2BAAAA,IAACG,YAAAA,aAAA,EAAY,WAAU,2EAAA,CAA2E;AAAA,IAAA;AAAA,EAAA;AACpG,GACF,CACD;AACD,iBAAiB,cAAcL,8BAAmB,QAAQ;AAE1D,MAAM,mBAAmBC,iBAAM,WAG7B,CAAC,EAAE,WAAW,UAAU,GAAG,SAAS,QACpCC,2BAAAA;AAAAA,EAACF,8BAAmB;AAAA,EAAnB;AAAA,IACC;AAAA,IACA,WAAU;AAAA,IACT,GAAG;AAAA,IAEJ,yCAAC,OAAA,EAAI,WAAWG,GAAAA,GAAG,aAAa,SAAS,GAAI,SAAA,CAAS;AAAA,EAAA;AACxD,CACD;AACD,iBAAiB,cAAcH,8BAAmB,QAAQ;;;;;"}
|
|
@@ -13,7 +13,10 @@ const badgeVariants = classVarianceAuthority.cva(
|
|
|
13
13
|
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
|
14
14
|
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
15
15
|
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
16
|
-
outline: "text-foreground"
|
|
16
|
+
outline: "text-foreground",
|
|
17
|
+
success: "border-transparent bg-emerald-100 text-emerald-800 hover:bg-emerald-100/80",
|
|
18
|
+
warning: "border-transparent bg-amber-100 text-amber-800 hover:bg-amber-100/80",
|
|
19
|
+
info: "border-transparent bg-sky-100 text-sky-800 hover:bg-sky-100/80"
|
|
17
20
|
}
|
|
18
21
|
},
|
|
19
22
|
defaultVariants: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.cjs","sources":["../../../src/primitives/badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\n )\n}\n\nexport { Badge, badgeVariants }\n"],"names":["cva","jsx","cn"],"mappings":";;;;;;;AAKA,MAAM,gBAAgBA,uBAAAA;AAAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SAAS;AAAA,MAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"badge.cjs","sources":["../../../src/primitives/badge.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/utils\"\n\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n success:\n \"border-transparent bg-emerald-100 text-emerald-800 hover:bg-emerald-100/80\",\n warning:\n \"border-transparent bg-amber-100 text-amber-800 hover:bg-amber-100/80\",\n info:\n \"border-transparent bg-sky-100 text-sky-800 hover:bg-sky-100/80\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nexport interface BadgeProps\n extends React.HTMLAttributes<HTMLDivElement>,\n VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return (\n <div className={cn(badgeVariants({ variant }), className)} {...props} />\n )\n}\n\nexport { Badge, badgeVariants }\n"],"names":["cva","jsx","cn"],"mappings":";;;;;;;AAKA,MAAM,gBAAgBA,uBAAAA;AAAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SAAS;AAAA,QACT,SACE;AAAA,QACF,SACE;AAAA,QACF,MACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAEJ;AAMA,SAAS,MAAM,EAAE,WAAW,SAAS,GAAG,SAAqB;AAC3D,SACEC,+BAAC,OAAA,EAAI,WAAWC,GAAAA,GAAG,cAAc,EAAE,QAAA,CAAS,GAAG,SAAS,GAAI,GAAG,MAAA,CAAO;AAE1E;;;"}
|
|
@@ -25,6 +25,7 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
26
|
const SelectPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SelectPrimitive);
|
|
27
27
|
const Select = SelectPrimitive__namespace.Root;
|
|
28
|
+
const SelectGroup = SelectPrimitive__namespace.Group;
|
|
28
29
|
const SelectValue = SelectPrimitive__namespace.Value;
|
|
29
30
|
const SelectTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30
31
|
SelectPrimitive__namespace.Trigger,
|
|
@@ -132,6 +133,7 @@ const SelectSeparator = React__namespace.forwardRef(({ className, ...props }, re
|
|
|
132
133
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
133
134
|
exports.Select = Select;
|
|
134
135
|
exports.SelectContent = SelectContent;
|
|
136
|
+
exports.SelectGroup = SelectGroup;
|
|
135
137
|
exports.SelectItem = SelectItem;
|
|
136
138
|
exports.SelectLabel = SelectLabel;
|
|
137
139
|
exports.SelectScrollDownButton = SelectScrollDownButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.cjs","sources":["../../../src/primitives/select.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 origin-[--radix-select-content-transform-origin]\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n"],"names":["SelectPrimitive","React","jsxs","cn","jsx","ChevronDown","ChevronUp","Check"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,SAASA,2BAAgB;
|
|
1
|
+
{"version":3,"file":"select.cjs","sources":["../../../src/primitives/select.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"@/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon asChild>\n <ChevronDown className=\"h-4 w-4 opacity-50\" />\n </SelectPrimitive.Icon>\n </SelectPrimitive.Trigger>\n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollUpButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronUp className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollUpButton>\n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.ScrollDownButton\n ref={ref}\n className={cn(\n \"flex cursor-default items-center justify-center py-1\",\n className\n )}\n {...props}\n >\n <ChevronDown className=\"h-4 w-4\" />\n </SelectPrimitive.ScrollDownButton>\n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Content\n ref={ref}\n className={cn(\n \"relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 origin-[--radix-select-content-transform-origin]\",\n position === \"popper\" &&\n \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n className\n )}\n position={position}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.Viewport\n className={cn(\n \"p-1\",\n position === \"popper\" &&\n \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\"\n )}\n >\n {children}\n </SelectPrimitive.Viewport>\n <SelectScrollDownButton />\n </SelectPrimitive.Content>\n </SelectPrimitive.Portal>\n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Label\n ref={ref}\n className={cn(\"py-1.5 pl-8 pr-2 text-sm font-semibold\", className)}\n {...props}\n />\n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n <SelectPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <SelectPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </SelectPrimitive.ItemIndicator>\n </span>\n\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n </SelectPrimitive.Item>\n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <SelectPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n {...props}\n />\n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n"],"names":["SelectPrimitive","React","jsxs","cn","jsx","ChevronDown","ChevronUp","Check"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,MAAM,SAASA,2BAAgB;AAE/B,MAAM,cAAcA,2BAAgB;AAEpC,MAAM,cAAcA,2BAAgB;AAEpC,MAAM,gBAAgBC,iBAAM,WAG1B,CAAC,EAAE,WAAW,UAAU,GAAG,SAAS,QACpCC,2BAAAA;AAAAA,EAACF,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,IAEH,UAAA;AAAA,MAAA;AAAA,MACDC,2BAAAA,IAACJ,2BAAgB,MAAhB,EAAqB,SAAO,MAC3B,UAAAI,2BAAAA,IAACC,YAAAA,aAAA,EAAY,WAAU,qBAAA,CAAqB,EAAA,CAC9C;AAAA,IAAA;AAAA,EAAA;AACF,CACD;AACD,cAAc,cAAcL,2BAAgB,QAAQ;AAEpD,MAAM,uBAAuBC,iBAAM,WAGjC,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BG,2BAAAA;AAAAA,EAACJ,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,IAEJ,UAAAC,2BAAAA,IAACE,YAAAA,WAAA,EAAU,WAAU,UAAA,CAAU;AAAA,EAAA;AACjC,CACD;AACD,qBAAqB,cAAcN,2BAAgB,eAAe;AAElE,MAAM,yBAAyBC,iBAAM,WAGnC,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BG,2BAAAA;AAAAA,EAACJ,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,IAEJ,UAAAC,2BAAAA,IAACC,YAAAA,aAAA,EAAY,WAAU,UAAA,CAAU;AAAA,EAAA;AACnC,CACD;AACD,uBAAuB,cACrBL,2BAAgB,iBAAiB;AAEnC,MAAM,gBAAgBC,iBAAM,WAG1B,CAAC,EAAE,WAAW,UAAU,WAAW,UAAU,GAAG,SAAS,QACzDG,2BAAAA,IAACJ,2BAAgB,QAAhB,EACC,UAAAE,2BAAAA;AAAAA,EAACF,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA,aAAa,YACX;AAAA,MACF;AAAA,IAAA;AAAA,IAEF;AAAA,IACC,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAC,2BAAAA,IAAC,sBAAA,EAAqB;AAAA,MACtBA,2BAAAA;AAAAA,QAACJ,2BAAgB;AAAA,QAAhB;AAAA,UACC,WAAWG,GAAAA;AAAAA,YACT;AAAA,YACA,aAAa,YACX;AAAA,UAAA;AAAA,UAGH;AAAA,QAAA;AAAA,MAAA;AAAA,qCAEF,wBAAA,CAAA,CAAuB;AAAA,IAAA;AAAA,EAAA;AAC1B,GACF,CACD;AACD,cAAc,cAAcH,2BAAgB,QAAQ;AAEpD,MAAM,cAAcC,iBAAM,WAGxB,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BG,2BAAAA;AAAAA,EAACJ,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA,GAAG,0CAA0C,SAAS;AAAA,IAChE,GAAG;AAAA,EAAA;AACN,CACD;AACD,YAAY,cAAcH,2BAAgB,MAAM;AAEhD,MAAM,aAAaC,iBAAM,WAGvB,CAAC,EAAE,WAAW,UAAU,GAAG,SAAS,QACpCC,2BAAAA;AAAAA,EAACF,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAC,2BAAAA,IAAC,QAAA,EAAK,WAAU,gEACd,UAAAA,2BAAAA,IAACJ,2BAAgB,eAAhB,EACC,UAAAI,2BAAAA,IAACG,mBAAA,EAAM,WAAU,UAAA,CAAU,EAAA,CAC7B,GACF;AAAA,MAEAH,2BAAAA,IAACJ,2BAAgB,UAAhB,EAA0B,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA;AACtC,CACD;AACD,WAAW,cAAcA,2BAAgB,KAAK;AAE9C,MAAM,kBAAkBC,iBAAM,WAG5B,CAAC,EAAE,WAAW,GAAG,MAAA,GAAS,QAC1BG,2BAAAA;AAAAA,EAACJ,2BAAgB;AAAA,EAAhB;AAAA,IACC;AAAA,IACA,WAAWG,GAAAA,GAAG,4BAA4B,SAAS;AAAA,IAClD,GAAG;AAAA,EAAA;AACN,CACD;AACD,gBAAgB,cAAcH,2BAAgB,UAAU;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const cn = require("../utils/cn.cjs");
|
|
6
|
+
function Skeleton({ className, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: cn.cn("animate-pulse rounded-md bg-muted", className),
|
|
11
|
+
...props
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
exports.Skeleton = Skeleton;
|
|
16
|
+
//# sourceMappingURL=skeleton.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.cjs","sources":["../../../src/primitives/skeleton.tsx"],"sourcesContent":["import { cn } from \"@/utils/index\"\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return (\n <div\n className={cn(\"animate-pulse rounded-md bg-muted\", className)}\n {...props}\n />\n )\n}\n\nexport { Skeleton }\n"],"names":["jsx","cn"],"mappings":";;;;;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,SAA+C;AAC/E,SACEA,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,GAAAA,GAAG,qCAAqC,SAAS;AAAA,MAC3D,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const TooltipPrimitive = require("@radix-ui/react-tooltip");
|
|
7
|
+
const cn = require("../utils/cn.cjs");
|
|
8
|
+
function _interopNamespaceDefault(e) {
|
|
9
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
10
|
+
if (e) {
|
|
11
|
+
for (const k in e) {
|
|
12
|
+
if (k !== "default") {
|
|
13
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: () => e[k]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
25
|
+
const TooltipPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TooltipPrimitive);
|
|
26
|
+
const TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
27
|
+
const Tooltip = TooltipPrimitive__namespace.Root;
|
|
28
|
+
const TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
29
|
+
const TooltipContent = React__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30
|
+
TooltipPrimitive__namespace.Content,
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
sideOffset,
|
|
34
|
+
className: cn.cn(
|
|
35
|
+
"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
36
|
+
className
|
|
37
|
+
),
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
) }));
|
|
41
|
+
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
42
|
+
exports.Tooltip = Tooltip;
|
|
43
|
+
exports.TooltipContent = TooltipContent;
|
|
44
|
+
exports.TooltipProvider = TooltipProvider;
|
|
45
|
+
exports.TooltipTrigger = TooltipTrigger;
|
|
46
|
+
//# sourceMappingURL=tooltip.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.cjs","sources":["../../../src/primitives/tooltip.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\nimport { cn } from \"@/utils/index\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\nconst Tooltip = TooltipPrimitive.Root\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef<typeof TooltipPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </TooltipPrimitive.Portal>\n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n"],"names":["TooltipPrimitive","React","jsx","cn"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,kBAAkBA,4BAAiB;AACzC,MAAM,UAAUA,4BAAiB;AACjC,MAAM,iBAAiBA,4BAAiB;AAExC,MAAM,iBAAiBC,iBAAM,WAG3B,CAAC,EAAE,WAAW,aAAa,GAAG,GAAG,SAAS,QAC1CC,2BAAAA,IAACF,4BAAiB,QAAjB,EACC,UAAAE,2BAAAA;AAAAA,EAACF,4BAAiB;AAAA,EAAjB;AAAA,IACC;AAAA,IACA;AAAA,IACA,WAAWG,GAAAA;AAAAA,MACT;AAAA,MACA;AAAA,IAAA;AAAA,IAED,GAAG;AAAA,EAAA;AACN,GACF,CACD;AACD,eAAe,cAAcH,4BAAiB,QAAQ;;;;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<(import('@radix-ui/react-accordion').AccordionSingleProps | import('@radix-ui/react-accordion').AccordionMultipleProps) & import('react').RefAttributes<HTMLDivElement>>;
|
|
2
|
+
export declare const AccordionItem: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-accordion').AccordionItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export declare const AccordionTrigger: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-accordion').AccordionTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export declare const AccordionContent: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-accordion').AccordionContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS,oNAAqB,CAAA;AAE3C,eAAO,MAAM,aAAa,6QAGwC,CAAA;AAGlE,eAAO,MAAM,gBAAgB,yRAGwC,CAAA;AAGrE,eAAO,MAAM,gBAAgB,gRAGwC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { Accordion as Accordion$1, AccordionContent as AccordionContent$1, AccordionItem as AccordionItem$1, AccordionTrigger as AccordionTrigger$1 } from "../../primitives/accordion.js";
|
|
5
|
+
const Accordion = Accordion$1;
|
|
6
|
+
const AccordionItem = forwardRef((props, ref) => /* @__PURE__ */ jsx(AccordionItem$1, { ref, ...props }));
|
|
7
|
+
AccordionItem.displayName = "AccordionItem";
|
|
8
|
+
const AccordionTrigger = forwardRef((props, ref) => /* @__PURE__ */ jsx(AccordionTrigger$1, { ref, ...props }));
|
|
9
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
10
|
+
const AccordionContent = forwardRef((props, ref) => /* @__PURE__ */ jsx(AccordionContent$1, { ref, ...props }));
|
|
11
|
+
AccordionContent.displayName = "AccordionContent";
|
|
12
|
+
export {
|
|
13
|
+
Accordion,
|
|
14
|
+
AccordionContent,
|
|
15
|
+
AccordionItem,
|
|
16
|
+
AccordionTrigger
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sources":["../../../src/components/Accordion/Accordion.tsx"],"sourcesContent":["import { forwardRef } from \"react\"\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\"\nimport {\n Accordion as AccordionPrimitive,\n AccordionItem as AccordionItemPrimitive,\n AccordionTrigger as AccordionTriggerPrimitive,\n AccordionContent as AccordionContentPrimitive,\n} from \"../../primitives/accordion\"\n\nexport const Accordion = AccordionPrimitive\n\nexport const AccordionItem = forwardRef<\n ElementRef<typeof AccordionItemPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionItemPrimitive>\n>((props, ref) => <AccordionItemPrimitive ref={ref} {...props} />)\nAccordionItem.displayName = \"AccordionItem\"\n\nexport const AccordionTrigger = forwardRef<\n ElementRef<typeof AccordionTriggerPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionTriggerPrimitive>\n>((props, ref) => <AccordionTriggerPrimitive ref={ref} {...props} />)\nAccordionTrigger.displayName = \"AccordionTrigger\"\n\nexport const AccordionContent = forwardRef<\n ElementRef<typeof AccordionContentPrimitive>,\n ComponentPropsWithoutRef<typeof AccordionContentPrimitive>\n>((props, ref) => <AccordionContentPrimitive ref={ref} {...props} />)\nAccordionContent.displayName = \"AccordionContent\"\n"],"names":["AccordionPrimitive","AccordionItemPrimitive","AccordionTriggerPrimitive","AccordionContentPrimitive"],"mappings":";;;;AASO,MAAM,YAAYA;AAElB,MAAM,gBAAgB,WAG3B,CAAC,OAAO,4BAASC,iBAAA,EAAuB,KAAW,GAAG,OAAO,CAAE;AACjE,cAAc,cAAc;AAErB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,4BAASC,oBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;AAExB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,4BAASC,oBAAA,EAA0B,KAAW,GAAG,OAAO,CAAE;AACpE,iBAAiB,cAAc;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -5,6 +5,6 @@ export declare namespace Badge {
|
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const badgeVariants: (props?: ({
|
|
8
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
8
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
//# sourceMappingURL=Badge.d.ts.map
|