ikoncomponents 1.1.6 → 1.1.8

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,62 +1,32 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.navigationMenuTriggerStyle = void 0;
37
- exports.NavigationMenu = NavigationMenu;
38
- exports.NavigationMenuList = NavigationMenuList;
39
- exports.NavigationMenuItem = NavigationMenuItem;
40
- exports.NavigationMenuContent = NavigationMenuContent;
41
- exports.NavigationMenuTrigger = NavigationMenuTrigger;
42
- exports.NavigationMenuLink = NavigationMenuLink;
43
- exports.NavigationMenuIndicator = NavigationMenuIndicator;
44
- exports.NavigationMenuViewport = NavigationMenuViewport;
45
- const jsx_runtime_1 = require("react/jsx-runtime");
46
- const NavigationMenuPrimitive = __importStar(require("@radix-ui/react-navigation-menu"));
47
- const class_variance_authority_1 = require("class-variance-authority");
48
- const lucide_react_1 = require("lucide-react");
49
- const cn_1 = require("../utils/cn");
50
- function NavigationMenu({ className, children, viewport = true, ...props }) {
51
- return ((0, jsx_runtime_1.jsxs)(NavigationMenuPrimitive.Root, { "data-slot": "navigation-menu", "data-viewport": viewport, className: (0, cn_1.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className), ...props, children: [children, viewport && (0, jsx_runtime_1.jsx)(NavigationMenuViewport, {})] }));
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, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
14
+ import { cva } from "class-variance-authority";
15
+ import { ChevronDownIcon } from "lucide-react";
16
+ import { cn } from "../utils/cn";
17
+ function NavigationMenu(_a) {
18
+ var { className, children, viewport = true } = _a, props = __rest(_a, ["className", "children", "viewport"]);
19
+ return (_jsxs(NavigationMenuPrimitive.Root, Object.assign({ "data-slot": "navigation-menu", "data-viewport": viewport, className: cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", className) }, props, { children: [children, viewport && _jsx(NavigationMenuViewport, {})] })));
52
20
  }
53
- function NavigationMenuList({ className, ...props }) {
54
- return ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.List, { "data-slot": "navigation-menu-list", className: (0, cn_1.cn)("group flex flex-1 list-none items-center justify-center gap-1", className), ...props }));
21
+ function NavigationMenuList(_a) {
22
+ var { className } = _a, props = __rest(_a, ["className"]);
23
+ return (_jsx(NavigationMenuPrimitive.List, Object.assign({ "data-slot": "navigation-menu-list", className: cn("group flex flex-1 list-none items-center justify-center gap-1", className) }, props)));
55
24
  }
56
- function NavigationMenuItem({ className, ...props }) {
57
- return ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Item, { "data-slot": "navigation-menu-item", className: (0, cn_1.cn)("relative", className), ...props }));
25
+ function NavigationMenuItem(_a) {
26
+ var { className } = _a, props = __rest(_a, ["className"]);
27
+ return (_jsx(NavigationMenuPrimitive.Item, Object.assign({ "data-slot": "navigation-menu-item", className: cn("relative", className) }, props)));
58
28
  }
59
- const navigationMenuTriggerStyle = (0, class_variance_authority_1.cva)("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50", {
29
+ const navigationMenuTriggerStyle = cva("group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50", {
60
30
  variants: {
61
31
  variant: {
62
32
  default: [
@@ -75,25 +45,30 @@ const navigationMenuTriggerStyle = (0, class_variance_authority_1.cva)("group in
75
45
  variant: "default",
76
46
  },
77
47
  });
78
- exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
79
- function NavigationMenuTrigger({ className, children, ...props }) {
80
- return ((0, jsx_runtime_1.jsxs)(NavigationMenuPrimitive.Trigger, { "data-slot": "navigation-menu-trigger", className: (0, cn_1.cn)(navigationMenuTriggerStyle(), "group", className), ...props, children: [children, " ", (0, jsx_runtime_1.jsx)(lucide_react_1.ChevronDownIcon, { className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })] }));
48
+ function NavigationMenuTrigger(_a) {
49
+ var { className, children } = _a, props = __rest(_a, ["className", "children"]);
50
+ return (_jsxs(NavigationMenuPrimitive.Trigger, Object.assign({ "data-slot": "navigation-menu-trigger", className: cn(navigationMenuTriggerStyle(), "group", className) }, props, { children: [children, " ", _jsx(ChevronDownIcon, { className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })] })));
81
51
  }
82
- function NavigationMenuContent({ className, ...props }) {
83
- return ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Content, { "data-slot": "navigation-menu-content", className: (0, cn_1.cn)("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", className), ...props }));
52
+ function NavigationMenuContent(_a) {
53
+ var { className } = _a, props = __rest(_a, ["className"]);
54
+ return (_jsx(NavigationMenuPrimitive.Content, Object.assign({ "data-slot": "navigation-menu-content", className: cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", className) }, props)));
84
55
  }
85
- function NavigationMenuViewport({ className, ...props }) {
86
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("absolute top-full left-0 isolate z-50 flex justify-center"), children: (0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Viewport, { "data-slot": "navigation-menu-viewport", className: (0, cn_1.cn)("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", className), ...props }) }));
56
+ function NavigationMenuViewport(_a) {
57
+ var { className } = _a, props = __rest(_a, ["className"]);
58
+ return (_jsx("div", { className: cn("absolute top-full left-0 isolate z-50 flex justify-center"), children: _jsx(NavigationMenuPrimitive.Viewport, Object.assign({ "data-slot": "navigation-menu-viewport", className: cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", className) }, props)) }));
87
59
  }
88
- function NavigationMenuLink({ className, ...props }) {
89
- return ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Link, { "data-slot": "navigation-menu-link", className: (0, cn_1.cn)("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
60
+ function NavigationMenuLink(_a) {
61
+ var { className } = _a, props = __rest(_a, ["className"]);
62
+ return (_jsx(NavigationMenuPrimitive.Link, Object.assign({ "data-slot": "navigation-menu-link", className: cn("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
90
63
  // Hover → chart-1 + white
91
64
  "hover:bg-[var(--chart-1)] hover:text-white",
92
65
  // Focus → chart-1 + white
93
66
  "focus:bg-[var(--chart-1)] focus:text-white",
94
67
  // Active → chart-1 + white
95
- "data-[active=true]:bg-[var(--chart-1)] data-[active=true]:text-white", className), ...props }));
68
+ "data-[active=true]:bg-[var(--chart-1)] data-[active=true]:text-white", className) }, props)));
96
69
  }
97
- function NavigationMenuIndicator({ className, ...props }) {
98
- return ((0, jsx_runtime_1.jsx)(NavigationMenuPrimitive.Indicator, { "data-slot": "navigation-menu-indicator", className: (0, cn_1.cn)("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className), ...props, children: (0, jsx_runtime_1.jsx)("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }) }));
70
+ function NavigationMenuIndicator(_a) {
71
+ var { className } = _a, props = __rest(_a, ["className"]);
72
+ return (_jsx(NavigationMenuPrimitive.Indicator, Object.assign({ "data-slot": "navigation-menu-indicator", className: cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", className) }, props, { children: _jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }) })));
99
73
  }
74
+ export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, };
@@ -1,55 +1,32 @@
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.Popover = Popover;
38
- exports.PopoverTrigger = PopoverTrigger;
39
- exports.PopoverContent = PopoverContent;
40
- exports.PopoverAnchor = PopoverAnchor;
41
- const jsx_runtime_1 = require("react/jsx-runtime");
42
- const PopoverPrimitive = __importStar(require("@radix-ui/react-popover"));
43
- const cn_1 = require("../utils/cn");
44
- function Popover({ ...props }) {
45
- return (0, jsx_runtime_1.jsx)(PopoverPrimitive.Root, { "data-slot": "popover", ...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 PopoverPrimitive from "@radix-ui/react-popover";
15
+ import { cn } from "../utils/cn";
16
+ function Popover(_a) {
17
+ var props = __rest(_a, []);
18
+ return _jsx(PopoverPrimitive.Root, Object.assign({ "data-slot": "popover" }, props));
46
19
  }
47
- function PopoverTrigger({ ...props }) {
48
- return (0, jsx_runtime_1.jsx)(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
20
+ function PopoverTrigger(_a) {
21
+ var props = __rest(_a, []);
22
+ return _jsx(PopoverPrimitive.Trigger, Object.assign({ "data-slot": "popover-trigger" }, props));
49
23
  }
50
- function PopoverContent({ className, align = "center", sideOffset = 4, ...props }) {
51
- return ((0, jsx_runtime_1.jsx)(PopoverPrimitive.Portal, { children: (0, jsx_runtime_1.jsx)(PopoverPrimitive.Content, { "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: (0, cn_1.cn)("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className), ...props }) }));
24
+ function PopoverContent(_a) {
25
+ var { className, align = "center", sideOffset = 4 } = _a, props = __rest(_a, ["className", "align", "sideOffset"]);
26
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, Object.assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("bg-popover text-popover-foreground 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 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className) }, props)) }));
52
27
  }
53
- function PopoverAnchor({ ...props }) {
54
- return (0, jsx_runtime_1.jsx)(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
28
+ function PopoverAnchor(_a) {
29
+ var props = __rest(_a, []);
30
+ return _jsx(PopoverPrimitive.Anchor, Object.assign({ "data-slot": "popover-anchor" }, props));
55
31
  }
32
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,46 +1,23 @@
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.Progress = Progress;
38
- const jsx_runtime_1 = require("react/jsx-runtime");
39
- const ProgressPrimitive = __importStar(require("@radix-ui/react-progress"));
40
- const cn_1 = require("../utils/cn");
41
- function Progress({ className, value = 0, indicatorColor = "var(--progress-foreground)", ...props }) {
42
- return ((0, jsx_runtime_1.jsx)(ProgressPrimitive.Root, { "data-slot": "progress", className: (0, cn_1.cn)("bg-[var(--progress-background)] relative h-2 w-full overflow-hidden rounded-full", className), ...props, children: (0, jsx_runtime_1.jsx)(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "h-full w-full flex-1 transition-all", style: {
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 ProgressPrimitive from "@radix-ui/react-progress";
15
+ import { cn } from "../utils/cn";
16
+ function Progress(_a) {
17
+ var { className, value = 0, indicatorColor = "var(--progress-foreground)" } = _a, props = __rest(_a, ["className", "value", "indicatorColor"]);
18
+ return (_jsx(ProgressPrimitive.Root, Object.assign({ "data-slot": "progress", className: cn("bg-[var(--progress-background)] relative h-2 w-full overflow-hidden rounded-full", className) }, props, { children: _jsx(ProgressPrimitive.Indicator, { "data-slot": "progress-indicator", className: "h-full w-full flex-1 transition-all", style: {
43
19
  transform: `translateX(-${100 - value}%)`,
44
20
  backgroundColor: indicatorColor,
45
- } }) }));
21
+ } }) })));
46
22
  }
23
+ export { Progress };
@@ -1,49 +1,27 @@
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.RadioGroup = RadioGroup;
38
- exports.RadioGroupItem = RadioGroupItem;
39
- const jsx_runtime_1 = require("react/jsx-runtime");
40
- const RadioGroupPrimitive = __importStar(require("@radix-ui/react-radio-group"));
41
- const lucide_react_1 = require("lucide-react");
42
- const cn_1 = require("../utils/cn");
43
- function RadioGroup({ className, ...props }) {
44
- return ((0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Root, { "data-slot": "radio-group", className: (0, cn_1.cn)("grid gap-3 ", 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 RadioGroupPrimitive from "@radix-ui/react-radio-group";
15
+ import { CircleIcon } from "lucide-react";
16
+ import { cn } from "../utils/cn";
17
+ function RadioGroup(_a) {
18
+ var { className } = _a, props = __rest(_a, ["className"]);
19
+ return (_jsx(RadioGroupPrimitive.Root, Object.assign({ "data-slot": "radio-group", className: cn("grid gap-3 ", className) }, props)));
45
20
  }
46
21
  // ... (imports)
47
- function RadioGroupItem({ className, ...props }) {
48
- return ((0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Item, { "data-slot": "radio-group-item", className: (0, cn_1.cn)("bg-white text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className), ...props, children: (0, jsx_runtime_1.jsx)(RadioGroupPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: (0, jsx_runtime_1.jsx)(lucide_react_1.CircleIcon, { className: "fill-black absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2" }) }) }));
22
+ function RadioGroupItem(_a) {
23
+ var { className } = _a, props = __rest(_a, ["className"]);
24
+ return (_jsx(RadioGroupPrimitive.Item, Object.assign({ "data-slot": "radio-group-item", className: cn("bg-white text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className) }, props, { children: _jsx(RadioGroupPrimitive.Indicator, { "data-slot": "radio-group-indicator", className: "relative flex items-center justify-center", children: _jsx(CircleIcon, { className: "fill-black absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2" }) }) })));
49
25
  }
26
+ // ... (exports)
27
+ export { RadioGroup, RadioGroupItem };
@@ -1,49 +1,26 @@
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.ScrollArea = ScrollArea;
38
- exports.ScrollBar = ScrollBar;
39
- const jsx_runtime_1 = require("react/jsx-runtime");
40
- const ScrollAreaPrimitive = __importStar(require("@radix-ui/react-scroll-area"));
41
- const cn_1 = require("../utils/cn");
42
- function ScrollArea({ className, children, ...props }) {
43
- return ((0, jsx_runtime_1.jsxs)(ScrollAreaPrimitive.Root, { "data-slot": "scroll-area", className: (0, cn_1.cn)("relative", className), ...props, children: [(0, jsx_runtime_1.jsx)(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", children: children }), (0, jsx_runtime_1.jsx)(ScrollBar, {}), (0, jsx_runtime_1.jsx)(ScrollAreaPrimitive.Corner, {})] }));
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 ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
15
+ import { cn } from "../utils/cn";
16
+ function ScrollArea(_a) {
17
+ var { className, children } = _a, props = __rest(_a, ["className", "children"]);
18
+ return (_jsxs(ScrollAreaPrimitive.Root, Object.assign({ "data-slot": "scroll-area", className: cn("relative", className) }, props, { children: [_jsx(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] })));
44
19
  }
45
- function ScrollBar({ className, orientation = "vertical", ...props }) {
46
- return ((0, jsx_runtime_1.jsx)(ScrollAreaPrimitive.ScrollAreaScrollbar, { "data-slot": "scroll-area-scrollbar", orientation: orientation, className: (0, cn_1.cn)("flex touch-none p-px transition-colors select-none", orientation === "vertical" &&
20
+ function ScrollBar(_a) {
21
+ var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
22
+ return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, Object.assign({ "data-slot": "scroll-area-scrollbar", orientation: orientation, className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" &&
47
23
  "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" &&
48
- "h-2.5 flex-col border-t border-t-transparent", className), ...props, children: (0, jsx_runtime_1.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "bg-[var(--border)] relative flex-1 rounded-full" }) }));
24
+ "h-2.5 flex-col border-t border-t-transparent", className) }, props, { children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "bg-[var(--border)] relative flex-1 rounded-full" }) })));
49
25
  }
26
+ export { ScrollArea, ScrollBar };