ikoncomponents 1.1.6 → 1.1.7
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/hooks/use-mobile.js +2 -38
- package/dist/ikoncomponents/action-menu/index.js +15 -18
- package/dist/ikoncomponents/action-menu/type.js +1 -2
- package/dist/ikoncomponents/alert-dialog/index.js +6 -10
- package/dist/ikoncomponents/buttons/index.js +32 -23
- package/dist/ikoncomponents/combobox-input/index.js +14 -16
- package/dist/ikoncomponents/combobox-input/type.js +1 -2
- package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +13 -16
- package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +22 -58
- package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +18 -21
- package/dist/ikoncomponents/data-table/datatable-pagination/index.js +10 -13
- package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +17 -19
- package/dist/ikoncomponents/data-table/function.js +4 -7
- package/dist/ikoncomponents/data-table/index.js +81 -116
- package/dist/ikoncomponents/data-table/type.js +1 -2
- package/dist/ikoncomponents/e-chart/index.js +32 -37
- package/dist/ikoncomponents/file-input/index.js +20 -11
- package/dist/ikoncomponents/glowing-effect/index.js +16 -18
- package/dist/ikoncomponents/icon/index.js +16 -40
- package/dist/ikoncomponents/loading-spinner/index.js +16 -8
- package/dist/ikoncomponents/multi-combobox/index.js +31 -30
- package/dist/ikoncomponents/no-data/index.js +4 -7
- package/dist/ikoncomponents/page-wrapper/index.js +5 -8
- package/dist/ikoncomponents/password-strength-meter/index.js +6 -13
- package/dist/ikoncomponents/phone-input/index.js +30 -54
- package/dist/ikoncomponents/resource-spreadsheet/index.js +11 -48
- package/dist/ikoncomponents/search-input/index.js +18 -9
- package/dist/ikoncomponents/sheet/index.js +5 -8
- package/dist/ikoncomponents/simple-widget/index.js +8 -11
- package/dist/ikoncomponents/tabs/index.js +20 -22
- package/dist/ikoncomponents/tabs/type.js +1 -2
- package/dist/ikoncomponents/theme-toggle-btn/index.js +8 -11
- package/dist/ikoncomponents/title-progress/index.js +4 -7
- package/dist/ikoncomponents/tooltip/index.js +4 -7
- package/dist/ikoncomponents/twolevel-dropdown/index.js +20 -53
- package/dist/ikoncomponents/widgets/index.js +10 -13
- package/dist/ikoncomponents/widgets/type.js +1 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +70 -123
- package/dist/shadcn/accordion.js +28 -51
- package/dist/shadcn/alert-dialog.js +60 -70
- package/dist/shadcn/alert.d.ts +1 -1
- package/dist/shadcn/alert.js +25 -15
- package/dist/shadcn/avatar.js +24 -47
- package/dist/shadcn/badge.d.ts +1 -1
- package/dist/shadcn/badge.js +21 -13
- package/dist/shadcn/button.d.ts +1 -1
- package/dist/shadcn/button.js +21 -13
- package/dist/shadcn/calendar.js +42 -97
- package/dist/shadcn/card.js +35 -25
- package/dist/shadcn/checkbox.js +19 -42
- package/dist/shadcn/command.js +53 -43
- package/dist/shadcn/date-input.js +25 -60
- package/dist/shadcn/date-range-picker.js +14 -18
- package/dist/shadcn/dialog.js +56 -79
- package/dist/shadcn/dropdown-menu.js +61 -84
- package/dist/shadcn/hover-card.js +24 -47
- package/dist/shadcn/input.js +17 -7
- package/dist/shadcn/label.js +18 -41
- package/dist/shadcn/navigation-menu.d.ts +1 -1
- package/dist/shadcn/navigation-menu.js +43 -68
- package/dist/shadcn/popover.js +27 -50
- package/dist/shadcn/progress.js +19 -42
- package/dist/shadcn/radio-group.js +23 -45
- package/dist/shadcn/scroll-area.js +22 -45
- package/dist/shadcn/select.js +58 -81
- package/dist/shadcn/separator.js +18 -41
- package/dist/shadcn/sheet.js +52 -73
- package/dist/shadcn/sidebar.d.ts +1 -1
- package/dist/shadcn/sidebar.js +113 -141
- package/dist/shadcn/skeleton.js +17 -7
- package/dist/shadcn/slider.js +19 -42
- package/dist/shadcn/sonner.js +20 -11
- package/dist/shadcn/switch.js +18 -41
- package/dist/shadcn/table.js +46 -36
- package/dist/shadcn/tabs.js +27 -50
- package/dist/shadcn/textarea.js +17 -7
- package/dist/shadcn/tooltip.js +27 -50
- package/dist/shadcn/workflow.js +8 -8
- package/dist/utils/cn.js +4 -7
- package/dist/utils/theme-provider/index.js +16 -7
- package/package.json +2 -1
package/dist/shadcn/accordion.js
CHANGED
|
@@ -1,56 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.Accordion = Accordion;
|
|
38
|
-
exports.AccordionItem = AccordionItem;
|
|
39
|
-
exports.AccordionTrigger = AccordionTrigger;
|
|
40
|
-
exports.AccordionContent = AccordionContent;
|
|
41
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
42
|
-
const AccordionPrimitive = __importStar(require("@radix-ui/react-accordion"));
|
|
43
|
-
const lucide_react_1 = require("lucide-react");
|
|
44
|
-
const cn_1 = require("../utils/cn");
|
|
45
|
-
function Accordion({ ...props }) {
|
|
46
|
-
return (0, jsx_runtime_1.jsx)(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
15
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
16
|
+
import { cn } from "../utils/cn";
|
|
17
|
+
function Accordion(_a) {
|
|
18
|
+
var props = __rest(_a, []);
|
|
19
|
+
return _jsx(AccordionPrimitive.Root, Object.assign({ "data-slot": "accordion" }, props));
|
|
47
20
|
}
|
|
48
|
-
function AccordionItem(
|
|
49
|
-
|
|
21
|
+
function AccordionItem(_a) {
|
|
22
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
+
return (_jsx(AccordionPrimitive.Item, Object.assign({ "data-slot": "accordion-item", className: cn("border-b last:border-b-0", className) }, props)));
|
|
50
24
|
}
|
|
51
|
-
function AccordionTrigger(
|
|
52
|
-
|
|
25
|
+
function AccordionTrigger(_a) {
|
|
26
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
27
|
+
return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, Object.assign({ "data-slot": "accordion-trigger", className: cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className) }, props, { children: [children, _jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })] })) }));
|
|
53
28
|
}
|
|
54
|
-
function AccordionContent(
|
|
55
|
-
|
|
29
|
+
function AccordionContent(_a) {
|
|
30
|
+
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
31
|
+
return (_jsx(AccordionPrimitive.Content, Object.assign({ "data-slot": "accordion-content", className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" }, props, { children: _jsx("div", { className: cn("pt-0 pb-4", className), children: children }) })));
|
|
56
32
|
}
|
|
33
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,93 +1,83 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogFooter = exports.AlertDialogHeader = exports.AlertDialogContent = exports.AlertDialogOverlay = exports.AlertDialogPortal = exports.AlertDialogTrigger = exports.AlertDialog = void 0;
|
|
38
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
const React = __importStar(require("react"));
|
|
40
|
-
const AlertDialogPrimitive = __importStar(require("@radix-ui/react-alert-dialog"));
|
|
41
|
-
const cn_1 = require("../utils/cn");
|
|
42
|
-
const button_1 = require("./button");
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import * as React from "react";
|
|
15
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
16
|
+
import { cn } from "../utils/cn";
|
|
17
|
+
import { buttonVariants } from "./button";
|
|
43
18
|
// ✅ Root (NO ref here!)
|
|
44
|
-
const AlertDialog = (props) => (
|
|
45
|
-
exports.AlertDialog = AlertDialog;
|
|
19
|
+
const AlertDialog = (props) => _jsx(AlertDialogPrimitive.Root, Object.assign({ "data-slot": "alert-dialog" }, props));
|
|
46
20
|
AlertDialog.displayName = "AlertDialog";
|
|
47
21
|
// ✅ Trigger
|
|
48
|
-
const AlertDialogTrigger = React.forwardRef((props, ref) => ((
|
|
49
|
-
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
22
|
+
const AlertDialogTrigger = React.forwardRef((props, ref) => (_jsx(AlertDialogPrimitive.Trigger, Object.assign({ "data-slot": "alert-dialog-trigger", ref: ref }, props))));
|
|
50
23
|
AlertDialogTrigger.displayName = "AlertDialogTrigger";
|
|
51
24
|
// ✅ Portal (NO ref here!)
|
|
52
|
-
const AlertDialogPortal = (props) => (
|
|
53
|
-
exports.AlertDialogPortal = AlertDialogPortal;
|
|
25
|
+
const AlertDialogPortal = (props) => _jsx(AlertDialogPrimitive.Portal, Object.assign({ "data-slot": "alert-dialog-portal" }, props));
|
|
54
26
|
AlertDialogPortal.displayName = "AlertDialogPortal";
|
|
55
27
|
// ✅ Overlay
|
|
56
|
-
const AlertDialogOverlay = React.forwardRef((
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
28
|
+
const AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
29
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
30
|
+
return (_jsx(AlertDialogPrimitive.Overlay, Object.assign({ ref: ref, "data-slot": "alert-dialog-overlay", className: cn("data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
31
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
32
|
+
"fixed inset-0 z-50 bg-black/50", className) }, props)));
|
|
33
|
+
});
|
|
60
34
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
61
35
|
// ✅ Content
|
|
62
|
-
const AlertDialogContent = React.forwardRef((
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
36
|
+
const AlertDialogContent = React.forwardRef((_a, ref) => {
|
|
37
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
38
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, Object.assign({ ref: ref, "data-slot": "alert-dialog-content", className: cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out " +
|
|
39
|
+
"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
|
|
40
|
+
"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 " +
|
|
41
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] " +
|
|
42
|
+
"translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 " +
|
|
43
|
+
"shadow-lg duration-200 sm:max-w-lg", className) }, props))] }));
|
|
44
|
+
});
|
|
69
45
|
AlertDialogContent.displayName = "AlertDialogContent";
|
|
70
46
|
// ✅ Header
|
|
71
|
-
const AlertDialogHeader = React.forwardRef((
|
|
72
|
-
|
|
47
|
+
const AlertDialogHeader = React.forwardRef((_a, ref) => {
|
|
48
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
49
|
+
return (_jsx("div", Object.assign({ ref: ref, "data-slot": "alert-dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className) }, props)));
|
|
50
|
+
});
|
|
73
51
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
74
52
|
// ✅ Footer
|
|
75
|
-
const AlertDialogFooter = React.forwardRef((
|
|
76
|
-
|
|
53
|
+
const AlertDialogFooter = React.forwardRef((_a, ref) => {
|
|
54
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
55
|
+
return (_jsx("div", Object.assign({ ref: ref, "data-slot": "alert-dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className) }, props)));
|
|
56
|
+
});
|
|
77
57
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
78
58
|
// ✅ Title
|
|
79
|
-
const AlertDialogTitle = React.forwardRef((
|
|
80
|
-
|
|
59
|
+
const AlertDialogTitle = React.forwardRef((_a, ref) => {
|
|
60
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
61
|
+
return (_jsx(AlertDialogPrimitive.Title, Object.assign({ ref: ref, "data-slot": "alert-dialog-title", className: cn("text-lg font-semibold bg-background", className) }, props)));
|
|
62
|
+
});
|
|
81
63
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
82
64
|
// ✅ Description
|
|
83
|
-
const AlertDialogDescription = React.forwardRef((
|
|
84
|
-
|
|
65
|
+
const AlertDialogDescription = React.forwardRef((_a, ref) => {
|
|
66
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
67
|
+
return (_jsx(AlertDialogPrimitive.Description, Object.assign({ ref: ref, "data-slot": "alert-dialog-description", className: cn("text-muted-foreground text-sm bg-background", className) }, props)));
|
|
68
|
+
});
|
|
85
69
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
86
70
|
// ✅ Action
|
|
87
|
-
const AlertDialogAction = React.forwardRef((
|
|
88
|
-
|
|
71
|
+
const AlertDialogAction = React.forwardRef((_a, ref) => {
|
|
72
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
73
|
+
return (_jsx(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: cn(buttonVariants(), className) }, props)));
|
|
74
|
+
});
|
|
89
75
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
90
76
|
// ✅ Cancel
|
|
91
|
-
const AlertDialogCancel = React.forwardRef((
|
|
92
|
-
|
|
77
|
+
const AlertDialogCancel = React.forwardRef((_a, ref) => {
|
|
78
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
79
|
+
return (_jsx(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: cn(buttonVariants({ variant: "outline" }), "bg-background", className) }, props)));
|
|
80
|
+
});
|
|
93
81
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
82
|
+
// ✅ Exports
|
|
83
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/dist/shadcn/alert.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
package/dist/shadcn/alert.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { cva } from "class-variance-authority";
|
|
14
|
+
import { cn } from "../utils/cn";
|
|
15
|
+
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", {
|
|
10
16
|
variants: {
|
|
11
17
|
variant: {
|
|
12
18
|
default: "bg-card dark:bg-background text-card-foreground",
|
|
@@ -17,12 +23,16 @@ const alertVariants = (0, class_variance_authority_1.cva)("relative w-full round
|
|
|
17
23
|
variant: "default",
|
|
18
24
|
},
|
|
19
25
|
});
|
|
20
|
-
function Alert(
|
|
21
|
-
|
|
26
|
+
function Alert(_a) {
|
|
27
|
+
var { className, variant } = _a, props = __rest(_a, ["className", "variant"]);
|
|
28
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert", role: "alert", className: cn(alertVariants({ variant }), className) }, props)));
|
|
22
29
|
}
|
|
23
|
-
function AlertTitle(
|
|
24
|
-
|
|
30
|
+
function AlertTitle(_a) {
|
|
31
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
32
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-title", className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className) }, props)));
|
|
25
33
|
}
|
|
26
|
-
function AlertDescription(
|
|
27
|
-
|
|
34
|
+
function AlertDescription(_a) {
|
|
35
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
+
return (_jsx("div", Object.assign({ "data-slot": "alert-description", className: cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className) }, props)));
|
|
28
37
|
}
|
|
38
|
+
export { Alert, AlertTitle, AlertDescription };
|
package/dist/shadcn/avatar.js
CHANGED
|
@@ -1,51 +1,28 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
"use client";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.Avatar = Avatar;
|
|
38
|
-
exports.AvatarImage = AvatarImage;
|
|
39
|
-
exports.AvatarFallback = AvatarFallback;
|
|
40
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
|
-
const AvatarPrimitive = __importStar(require("@radix-ui/react-avatar"));
|
|
42
|
-
const cn_1 = require("../utils/cn");
|
|
43
|
-
function Avatar({ className, ...props }) {
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Root, { "data-slot": "avatar", className: (0, cn_1.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", className), ...props }));
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
15
|
+
import { cn } from "../utils/cn";
|
|
16
|
+
function Avatar(_a) {
|
|
17
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
+
return (_jsx(AvatarPrimitive.Root, Object.assign({ "data-slot": "avatar", className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className) }, props)));
|
|
45
19
|
}
|
|
46
|
-
function AvatarImage(
|
|
47
|
-
|
|
20
|
+
function AvatarImage(_a) {
|
|
21
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
22
|
+
return (_jsx(AvatarPrimitive.Image, Object.assign({ "data-slot": "avatar-image", className: cn("aspect-square size-full", className) }, props)));
|
|
48
23
|
}
|
|
49
|
-
function AvatarFallback(
|
|
50
|
-
|
|
24
|
+
function AvatarFallback(_a) {
|
|
25
|
+
var { className } = _a, props = __rest(_a, ["className"]);
|
|
26
|
+
return (_jsx(AvatarPrimitive.Fallback, Object.assign({ "data-slot": "avatar-fallback", className: cn("bg-foreground text-background flex size-full items-center justify-center rounded-full", className) }, props)));
|
|
51
27
|
}
|
|
28
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
package/dist/shadcn/badge.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "destructive" | "outline" | "secondary" | "verified" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/shadcn/badge.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
14
|
+
import { cva } from "class-variance-authority";
|
|
15
|
+
import { cn } from "../utils/cn";
|
|
16
|
+
const badgeVariants = cva("inline-flex items-center justify-center rounded-md 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
17
|
variants: {
|
|
11
18
|
variant: {
|
|
12
19
|
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
@@ -20,8 +27,9 @@ const badgeVariants = (0, class_variance_authority_1.cva)("inline-flex items-cen
|
|
|
20
27
|
variant: "default",
|
|
21
28
|
},
|
|
22
29
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const Comp = asChild ?
|
|
26
|
-
return ((
|
|
30
|
+
function Badge(_a) {
|
|
31
|
+
var { className, variant, asChild = false } = _a, props = __rest(_a, ["className", "variant", "asChild"]);
|
|
32
|
+
const Comp = asChild ? Slot : "span";
|
|
33
|
+
return (_jsx(Comp, Object.assign({ "data-slot": "badge", className: cn(badgeVariants({ variant }), className) }, props)));
|
|
27
34
|
}
|
|
35
|
+
export { Badge, badgeVariants };
|
package/dist/shadcn/button.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "dashed" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | "smIcon" | "circular" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/shadcn/button.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
14
|
+
import { cva } from "class-variance-authority";
|
|
15
|
+
import { cn } from "../utils/cn";
|
|
16
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
10
17
|
variants: {
|
|
11
18
|
variant: {
|
|
12
19
|
default: "bg-[var(--calender-foreground)] text-[var(--btn-default)] shadow-xs hover:bg-[var(--calender-foreground)]/60 keross:hover:bg-[#1F3ABA99]",
|
|
@@ -31,8 +38,9 @@ const buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-ce
|
|
|
31
38
|
size: "default",
|
|
32
39
|
},
|
|
33
40
|
});
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const Comp = asChild ?
|
|
37
|
-
return ((
|
|
41
|
+
function Button(_a) {
|
|
42
|
+
var { className, variant, size, asChild = false } = _a, props = __rest(_a, ["className", "variant", "size", "asChild"]);
|
|
43
|
+
const Comp = asChild ? Slot : "button";
|
|
44
|
+
return (_jsx(Comp, Object.assign({ "data-slot": "button", className: cn(buttonVariants({ variant, size, className })) }, props)));
|
|
38
45
|
}
|
|
46
|
+
export { Button, buttonVariants };
|