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.
Files changed (82) hide show
  1. package/dist/hooks/use-mobile.js +2 -38
  2. package/dist/ikoncomponents/action-menu/index.js +15 -18
  3. package/dist/ikoncomponents/action-menu/type.js +1 -2
  4. package/dist/ikoncomponents/alert-dialog/index.js +6 -10
  5. package/dist/ikoncomponents/buttons/index.js +32 -23
  6. package/dist/ikoncomponents/combobox-input/index.js +14 -16
  7. package/dist/ikoncomponents/combobox-input/type.js +1 -2
  8. package/dist/ikoncomponents/data-table/datatable-column-filter/index.js +13 -16
  9. package/dist/ikoncomponents/data-table/datatable-faceted-filter/index.js +22 -58
  10. package/dist/ikoncomponents/data-table/datatable-filter-menu/index.js +18 -21
  11. package/dist/ikoncomponents/data-table/datatable-pagination/index.js +10 -13
  12. package/dist/ikoncomponents/data-table/datatable-toolbar/index.js +17 -19
  13. package/dist/ikoncomponents/data-table/function.js +4 -7
  14. package/dist/ikoncomponents/data-table/index.js +81 -116
  15. package/dist/ikoncomponents/data-table/type.js +1 -2
  16. package/dist/ikoncomponents/e-chart/index.js +32 -37
  17. package/dist/ikoncomponents/file-input/index.js +20 -11
  18. package/dist/ikoncomponents/glowing-effect/index.js +16 -18
  19. package/dist/ikoncomponents/icon/index.js +16 -40
  20. package/dist/ikoncomponents/loading-spinner/index.js +16 -8
  21. package/dist/ikoncomponents/multi-combobox/index.js +31 -30
  22. package/dist/ikoncomponents/no-data/index.js +4 -7
  23. package/dist/ikoncomponents/page-wrapper/index.js +5 -8
  24. package/dist/ikoncomponents/password-strength-meter/index.js +6 -13
  25. package/dist/ikoncomponents/phone-input/index.js +30 -54
  26. package/dist/ikoncomponents/resource-spreadsheet/index.js +11 -48
  27. package/dist/ikoncomponents/search-input/index.js +18 -9
  28. package/dist/ikoncomponents/sheet/index.js +5 -8
  29. package/dist/ikoncomponents/simple-widget/index.js +8 -11
  30. package/dist/ikoncomponents/tabs/index.js +20 -22
  31. package/dist/ikoncomponents/tabs/type.js +1 -2
  32. package/dist/ikoncomponents/theme-toggle-btn/index.js +8 -11
  33. package/dist/ikoncomponents/title-progress/index.js +4 -7
  34. package/dist/ikoncomponents/tooltip/index.js +4 -7
  35. package/dist/ikoncomponents/twolevel-dropdown/index.js +20 -53
  36. package/dist/ikoncomponents/widgets/index.js +10 -13
  37. package/dist/ikoncomponents/widgets/type.js +1 -2
  38. package/dist/index.d.ts +3 -3
  39. package/dist/index.js +70 -123
  40. package/dist/shadcn/accordion.js +28 -51
  41. package/dist/shadcn/alert-dialog.js +60 -70
  42. package/dist/shadcn/alert.d.ts +1 -1
  43. package/dist/shadcn/alert.js +25 -15
  44. package/dist/shadcn/avatar.js +24 -47
  45. package/dist/shadcn/badge.d.ts +1 -1
  46. package/dist/shadcn/badge.js +21 -13
  47. package/dist/shadcn/button.d.ts +1 -1
  48. package/dist/shadcn/button.js +21 -13
  49. package/dist/shadcn/calendar.js +42 -97
  50. package/dist/shadcn/card.js +35 -25
  51. package/dist/shadcn/checkbox.js +19 -42
  52. package/dist/shadcn/command.js +53 -43
  53. package/dist/shadcn/date-input.js +25 -60
  54. package/dist/shadcn/date-range-picker.js +14 -18
  55. package/dist/shadcn/dialog.js +56 -79
  56. package/dist/shadcn/dropdown-menu.js +61 -84
  57. package/dist/shadcn/hover-card.js +24 -47
  58. package/dist/shadcn/input.js +17 -7
  59. package/dist/shadcn/label.js +18 -41
  60. package/dist/shadcn/navigation-menu.d.ts +1 -1
  61. package/dist/shadcn/navigation-menu.js +43 -68
  62. package/dist/shadcn/popover.js +27 -50
  63. package/dist/shadcn/progress.js +19 -42
  64. package/dist/shadcn/radio-group.js +23 -45
  65. package/dist/shadcn/scroll-area.js +22 -45
  66. package/dist/shadcn/select.js +58 -81
  67. package/dist/shadcn/separator.js +18 -41
  68. package/dist/shadcn/sheet.js +52 -73
  69. package/dist/shadcn/sidebar.d.ts +1 -1
  70. package/dist/shadcn/sidebar.js +113 -141
  71. package/dist/shadcn/skeleton.js +17 -7
  72. package/dist/shadcn/slider.js +19 -42
  73. package/dist/shadcn/sonner.js +20 -11
  74. package/dist/shadcn/switch.js +18 -41
  75. package/dist/shadcn/table.js +46 -36
  76. package/dist/shadcn/tabs.js +27 -50
  77. package/dist/shadcn/textarea.js +17 -7
  78. package/dist/shadcn/tooltip.js +27 -50
  79. package/dist/shadcn/workflow.js +8 -8
  80. package/dist/utils/cn.js +4 -7
  81. package/dist/utils/theme-provider/index.js +16 -7
  82. package/package.json +2 -1
@@ -1,56 +1,33 @@
1
- "use strict";
2
1
  "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
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.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({ className, ...props }) {
49
- return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Item, { "data-slot": "accordion-item", className: (0, cn_1.cn)("border-b last:border-b-0", className), ...props }));
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({ className, children, ...props }) {
52
- return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Header, { className: "flex", children: (0, jsx_runtime_1.jsxs)(AccordionPrimitive.Trigger, { "data-slot": "accordion-trigger", className: (0, cn_1.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, (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })] }) }));
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({ className, children, ...props }) {
55
- return ((0, jsx_runtime_1.jsx)(AccordionPrimitive.Content, { "data-slot": "accordion-content", className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm", ...props, children: (0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("pt-0 pb-4", className), children: children }) }));
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
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) => (0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Root, { "data-slot": "alert-dialog", ...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) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Trigger, { "data-slot": "alert-dialog-trigger", ref: ref, ...props })));
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) => (0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Portal, { "data-slot": "alert-dialog-portal", ...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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Overlay, { ref: ref, "data-slot": "alert-dialog-overlay", className: (0, cn_1.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out " +
57
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
58
- "fixed inset-0 z-50 bg-black/50", className), ...props })));
59
- exports.AlertDialogOverlay = AlertDialogOverlay;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsxs)(AlertDialogPortal, { children: [(0, jsx_runtime_1.jsx)(AlertDialogOverlay, {}), (0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Content, { ref: ref, "data-slot": "alert-dialog-content", className: (0, cn_1.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out " +
63
- "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 " +
64
- "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 " +
65
- "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] " +
66
- "translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 " +
67
- "shadow-lg duration-200 sm:max-w-lg", className), ...props })] })));
68
- exports.AlertDialogContent = AlertDialogContent;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, "data-slot": "alert-dialog-header", className: (0, cn_1.cn)("flex flex-col gap-2 text-center sm:text-left", className), ...props })));
72
- exports.AlertDialogHeader = AlertDialogHeader;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)("div", { ref: ref, "data-slot": "alert-dialog-footer", className: (0, cn_1.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props })));
76
- exports.AlertDialogFooter = AlertDialogFooter;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Title, { ref: ref, "data-slot": "alert-dialog-title", className: (0, cn_1.cn)("text-lg font-semibold bg-background", className), ...props })));
80
- exports.AlertDialogTitle = AlertDialogTitle;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Description, { ref: ref, "data-slot": "alert-dialog-description", className: (0, cn_1.cn)("text-muted-foreground text-sm bg-background", className), ...props })));
84
- exports.AlertDialogDescription = AlertDialogDescription;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Action, { ref: ref, className: (0, cn_1.cn)((0, button_1.buttonVariants)(), className), ...props })));
88
- exports.AlertDialogAction = AlertDialogAction;
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(({ className, ...props }, ref) => ((0, jsx_runtime_1.jsx)(AlertDialogPrimitive.Cancel, { ref: ref, className: (0, cn_1.cn)((0, button_1.buttonVariants)({ variant: "outline" }), "bg-background", className), ...props })));
92
- exports.AlertDialogCancel = AlertDialogCancel;
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, };
@@ -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/dist/types").ClassProp) | undefined) => string;
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;
@@ -1,12 +1,18 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Alert = Alert;
4
- exports.AlertTitle = AlertTitle;
5
- exports.AlertDescription = AlertDescription;
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const class_variance_authority_1 = require("class-variance-authority");
8
- const cn_1 = require("../utils/cn");
9
- const alertVariants = (0, class_variance_authority_1.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", {
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({ className, variant, ...props }) {
21
- return ((0, jsx_runtime_1.jsx)("div", { "data-slot": "alert", role: "alert", className: (0, cn_1.cn)(alertVariants({ variant }), className), ...props }));
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({ className, ...props }) {
24
- return ((0, jsx_runtime_1.jsx)("div", { "data-slot": "alert-title", className: (0, cn_1.cn)("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className), ...props }));
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({ className, ...props }) {
27
- return ((0, jsx_runtime_1.jsx)("div", { "data-slot": "alert-description", className: (0, cn_1.cn)("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", className), ...props }));
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 };
@@ -1,51 +1,28 @@
1
- "use strict";
2
1
  "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
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.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({ className, ...props }) {
47
- return ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Image, { "data-slot": "avatar-image", className: (0, cn_1.cn)("aspect-square size-full", className), ...props }));
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({ className, ...props }) {
50
- return ((0, jsx_runtime_1.jsx)(AvatarPrimitive.Fallback, { "data-slot": "avatar-fallback", className: (0, cn_1.cn)("bg-foreground text-background flex size-full items-center justify-center rounded-full", className), ...props }));
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 };
@@ -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/dist/types").ClassProp) | undefined) => string;
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;
@@ -1,12 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.badgeVariants = void 0;
4
- exports.Badge = Badge;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_slot_1 = require("@radix-ui/react-slot");
7
- const class_variance_authority_1 = require("class-variance-authority");
8
- const cn_1 = require("../utils/cn");
9
- const badgeVariants = (0, class_variance_authority_1.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", {
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
- exports.badgeVariants = badgeVariants;
24
- function Badge({ className, variant, asChild = false, ...props }) {
25
- const Comp = asChild ? react_slot_1.Slot : "span";
26
- return ((0, jsx_runtime_1.jsx)(Comp, { "data-slot": "badge", className: (0, cn_1.cn)(badgeVariants({ variant }), className), ...props }));
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 };
@@ -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/dist/types").ClassProp) | undefined) => string;
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;
@@ -1,12 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buttonVariants = void 0;
4
- exports.Button = Button;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_slot_1 = require("@radix-ui/react-slot");
7
- const class_variance_authority_1 = require("class-variance-authority");
8
- const cn_1 = require("../utils/cn");
9
- const buttonVariants = (0, class_variance_authority_1.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", {
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
- exports.buttonVariants = buttonVariants;
35
- function Button({ className, variant, size, asChild = false, ...props }) {
36
- const Comp = asChild ? react_slot_1.Slot : "button";
37
- return ((0, jsx_runtime_1.jsx)(Comp, { "data-slot": "button", className: (0, cn_1.cn)(buttonVariants({ variant, size, className })), ...props }));
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 };