@appcorp/shadcn 1.0.38 → 1.1.1
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/components/audio.js +3 -3
- package/components/dashboard.js +2 -2
- package/components/enhanced-checkbox.d.ts +9 -0
- package/components/{checkbox.js → enhanced-checkbox.js} +10 -11
- package/components/{combobox.d.ts → enhanced-combobox.d.ts} +2 -2
- package/components/{combobox.js → enhanced-combobox.js} +11 -11
- package/components/enhanced-dropzone.js +2 -2
- package/components/enhanced-input.d.ts +8 -0
- package/components/{input.js → enhanced-input.js} +8 -7
- package/components/enhanced-label.d.ts +7 -0
- package/components/{label.js → enhanced-label.js} +4 -4
- package/components/enhanced-select.d.ts +25 -0
- package/components/enhanced-select.js +81 -0
- package/components/enhanced-switch.d.ts +10 -0
- package/components/{switch.js → enhanced-switch.js} +9 -11
- package/components/enhanced-table-footer-action.js +1 -1
- package/components/enhanced-table-footer-pagination.js +1 -1
- package/components/enhanced-table-header-action.js +2 -2
- package/components/enhanced-table-header-search.js +1 -1
- package/components/enhanced-table.js +6 -5
- package/components/enhanced-textarea.d.ts +8 -0
- package/components/{textarea.js → enhanced-textarea.js} +10 -7
- package/components/field.d.ts +1 -1
- package/components/field.js +2 -2
- package/components/nav-main.js +1 -1
- package/components/nav-projects.js +1 -1
- package/components/nav-user.js +2 -2
- package/components/shadcn-example/coming-soon/index.js +2 -2
- package/components/shadcn-io/color-picker/index.d.ts +2 -2
- package/components/shadcn-io/color-picker/index.js +5 -5
- package/components/shadcn-io/dropzone/index.js +1 -1
- package/components/shadcn-io/gantt/index.js +2 -2
- package/components/shadcn-io/table/index.js +3 -3
- package/components/sidebar.d.ts +3 -3
- package/components/sidebar.js +5 -5
- package/components/team-switcher.js +2 -2
- package/components/{accordion.js → ui/accordion.js} +1 -1
- package/components/ui/alert-dialog.d.ts +20 -0
- package/components/ui/alert-dialog.js +120 -0
- package/components/ui/alert.d.ts +8 -0
- package/components/ui/alert.js +90 -0
- package/components/ui/aspect-ratio.d.ts +3 -0
- package/components/ui/aspect-ratio.js +40 -0
- package/components/ui/avatar.d.ts +6 -0
- package/components/{avatar.js → ui/avatar.js} +17 -17
- package/components/{badge.d.ts → ui/badge.d.ts} +3 -3
- package/components/{badge.js → ui/badge.js} +8 -10
- package/components/ui/breadcrumb.d.ts +19 -0
- package/components/{breadcrumb.js → ui/breadcrumb.js} +39 -31
- package/components/{button.d.ts → ui/button.d.ts} +3 -2
- package/components/{button.js → ui/button.js} +17 -16
- package/components/ui/calendar.d.ts +8 -0
- package/components/ui/calendar.js +109 -0
- package/components/ui/card.d.ts +8 -0
- package/components/{card.js → ui/card.js} +32 -30
- package/components/ui/carousel.d.ts +18 -0
- package/components/{carousel.js → ui/carousel.js} +42 -39
- package/components/ui/checkbox.d.ts +4 -0
- package/components/ui/checkbox.js +71 -0
- package/components/ui/collapsible.d.ts +5 -0
- package/components/ui/collapsible.js +44 -0
- package/components/ui/combobox.d.ts +2 -0
- package/components/ui/combobox.js +88 -0
- package/components/ui/command.d.ts +80 -0
- package/components/{command.js → ui/command.js} +50 -47
- package/components/ui/context-menu.d.ts +27 -0
- package/components/ui/context-menu.js +141 -0
- package/components/ui/dialog.d.ts +19 -0
- package/components/{dialog.js → ui/dialog.js} +46 -51
- package/components/ui/drawer.d.ts +22 -0
- package/components/{drawer.js → ui/drawer.js} +45 -46
- package/components/ui/dropdown-menu.d.ts +27 -0
- package/components/ui/dropdown-menu.js +143 -0
- package/components/{form.d.ts → ui/form.d.ts} +5 -6
- package/components/{form.js → ui/form.js} +37 -30
- package/components/ui/hover-card.d.ts +6 -0
- package/components/ui/hover-card.js +72 -0
- package/components/ui/input-otp.d.ts +34 -0
- package/components/ui/input-otp.js +93 -0
- package/components/ui/input.d.ts +3 -0
- package/components/ui/input.js +66 -0
- package/components/ui/label.d.ts +5 -0
- package/components/{collapsible.js → ui/label.js} +12 -20
- package/components/ui/menubar.d.ts +28 -0
- package/components/ui/menubar.js +165 -0
- package/components/ui/navigation-menu.d.ts +12 -0
- package/components/ui/navigation-menu.js +114 -0
- package/components/ui/pagination.d.ts +28 -0
- package/components/ui/pagination.js +113 -0
- package/components/ui/popover.d.ts +7 -0
- package/components/{popover.js → ui/popover.js} +12 -19
- package/components/ui/progress.d.ts +4 -0
- package/components/ui/progress.js +69 -0
- package/components/ui/radio-group.d.ts +5 -0
- package/components/ui/radio-group.js +77 -0
- package/components/ui/resizable.d.ts +24 -0
- package/components/ui/resizable.js +79 -0
- package/components/ui/scroll-area.d.ts +5 -0
- package/components/ui/scroll-area.js +80 -0
- package/components/ui/select.d.ts +13 -0
- package/components/{select.js → ui/select.js} +53 -53
- package/components/ui/separator.d.ts +4 -0
- package/components/{separator.js → ui/separator.js} +7 -5
- package/components/ui/sheet.d.ts +25 -0
- package/components/ui/sheet.js +127 -0
- package/components/ui/skeleton.d.ts +3 -0
- package/components/{skeleton.js → ui/skeleton.js} +2 -2
- package/components/ui/slider.d.ts +4 -0
- package/components/ui/slider.js +71 -0
- package/components/{sonner.d.ts → ui/sonner.d.ts} +2 -1
- package/components/{sonner.js → ui/sonner.js} +5 -14
- package/components/ui/switch.d.ts +4 -0
- package/components/ui/switch.js +69 -0
- package/components/ui/table.d.ts +10 -0
- package/components/{table.js → ui/table.js} +43 -35
- package/components/ui/tabs.d.ts +7 -0
- package/components/ui/tabs.js +82 -0
- package/components/ui/textarea.d.ts +3 -0
- package/components/ui/textarea.js +66 -0
- package/components/ui/toggle.d.ts +12 -0
- package/components/ui/toggle.js +87 -0
- package/package.json +26 -7
- package/components/avatar.d.ts +0 -6
- package/components/breadcrumb.d.ts +0 -11
- package/components/card.d.ts +0 -9
- package/components/carousel.d.ts +0 -19
- package/components/checkbox.d.ts +0 -9
- package/components/collapsible.d.ts +0 -6
- package/components/command.d.ts +0 -18
- package/components/context-menu.d.ts +0 -25
- package/components/context-menu.js +0 -148
- package/components/dialog.d.ts +0 -15
- package/components/drawer.d.ts +0 -13
- package/components/dropdown-menu.d.ts +0 -25
- package/components/dropdown-menu.js +0 -148
- package/components/input.d.ts +0 -8
- package/components/label.d.ts +0 -7
- package/components/popover.d.ts +0 -7
- package/components/select.d.ts +0 -15
- package/components/separator.d.ts +0 -4
- package/components/sheet.d.ts +0 -13
- package/components/sheet.js +0 -120
- package/components/skeleton.d.ts +0 -3
- package/components/switch.d.ts +0 -10
- package/components/table.d.ts +0 -10
- package/components/textarea.d.ts +0 -8
- /package/components/{accordion.d.ts → ui/accordion.d.ts} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
47
|
+
var t = {};
|
|
48
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
+
t[p] = s[p];
|
|
50
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
+
t[p[i]] = s[p[i]];
|
|
54
|
+
}
|
|
55
|
+
return t;
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.NavigationMenuViewport = exports.NavigationMenuIndicator = exports.NavigationMenuLink = exports.NavigationMenuTrigger = exports.NavigationMenuContent = exports.NavigationMenuItem = exports.NavigationMenuList = exports.NavigationMenu = exports.navigationMenuTriggerStyle = void 0;
|
|
59
|
+
var React = __importStar(require("react"));
|
|
60
|
+
var NavigationMenuPrimitive = __importStar(require("@radix-ui/react-navigation-menu"));
|
|
61
|
+
var class_variance_authority_1 = require("class-variance-authority");
|
|
62
|
+
var utils_1 = require("../../lib/utils");
|
|
63
|
+
var react_icons_1 = require("@radix-ui/react-icons");
|
|
64
|
+
var NavigationMenu = React.forwardRef(function (_a, ref) {
|
|
65
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
66
|
+
return (React.createElement(NavigationMenuPrimitive.Root, __assign({ ref: ref, className: (0, utils_1.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center", className) }, props),
|
|
67
|
+
children,
|
|
68
|
+
React.createElement(NavigationMenuViewport, null)));
|
|
69
|
+
});
|
|
70
|
+
exports.NavigationMenu = NavigationMenu;
|
|
71
|
+
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
72
|
+
var NavigationMenuList = React.forwardRef(function (_a, ref) {
|
|
73
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
74
|
+
return (React.createElement(NavigationMenuPrimitive.List, __assign({ ref: ref, className: (0, utils_1.cn)("group flex flex-1 list-none items-center justify-center space-x-1", className) }, props)));
|
|
75
|
+
});
|
|
76
|
+
exports.NavigationMenuList = NavigationMenuList;
|
|
77
|
+
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
78
|
+
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
79
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
80
|
+
var navigationMenuTriggerStyle = (0, class_variance_authority_1.cva)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent");
|
|
81
|
+
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
82
|
+
var NavigationMenuTrigger = React.forwardRef(function (_a, ref) {
|
|
83
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
|
84
|
+
return (React.createElement(NavigationMenuPrimitive.Trigger, __assign({ ref: ref, className: (0, utils_1.cn)(navigationMenuTriggerStyle(), "group", className) }, props),
|
|
85
|
+
children,
|
|
86
|
+
" ",
|
|
87
|
+
React.createElement(react_icons_1.ChevronDownIcon, { className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })));
|
|
88
|
+
});
|
|
89
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
90
|
+
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
91
|
+
var NavigationMenuContent = React.forwardRef(function (_a, ref) {
|
|
92
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
93
|
+
return (React.createElement(NavigationMenuPrimitive.Content, __assign({ ref: ref, className: (0, utils_1.cn)("left-0 top-0 w-full 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 md:absolute md:w-auto ", className) }, props)));
|
|
94
|
+
});
|
|
95
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
96
|
+
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
97
|
+
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
98
|
+
exports.NavigationMenuLink = NavigationMenuLink;
|
|
99
|
+
var NavigationMenuViewport = React.forwardRef(function (_a, ref) {
|
|
100
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
101
|
+
return (React.createElement("div", { className: (0, utils_1.cn)("absolute left-0 top-full flex justify-center") },
|
|
102
|
+
React.createElement(NavigationMenuPrimitive.Viewport, __assign({ className: (0, utils_1.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className), ref: ref }, props))));
|
|
103
|
+
});
|
|
104
|
+
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
105
|
+
NavigationMenuViewport.displayName =
|
|
106
|
+
NavigationMenuPrimitive.Viewport.displayName;
|
|
107
|
+
var NavigationMenuIndicator = React.forwardRef(function (_a, ref) {
|
|
108
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
109
|
+
return (React.createElement(NavigationMenuPrimitive.Indicator, __assign({ ref: ref, className: (0, utils_1.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className) }, props),
|
|
110
|
+
React.createElement("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })));
|
|
111
|
+
});
|
|
112
|
+
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
113
|
+
NavigationMenuIndicator.displayName =
|
|
114
|
+
NavigationMenuPrimitive.Indicator.displayName;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ButtonProps } from "../ui/button";
|
|
3
|
+
declare const Pagination: {
|
|
4
|
+
({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
8
|
+
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
9
|
+
type PaginationLinkProps = {
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
} & Pick<ButtonProps, "size"> & React.ComponentProps<"a">;
|
|
12
|
+
declare const PaginationLink: {
|
|
13
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const PaginationPrevious: {
|
|
17
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const PaginationNext: {
|
|
21
|
+
({ className, ...props }: React.ComponentProps<typeof PaginationLink>): React.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
declare const PaginationEllipsis: {
|
|
25
|
+
({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
47
|
+
var t = {};
|
|
48
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
49
|
+
t[p] = s[p];
|
|
50
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
51
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
52
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
53
|
+
t[p[i]] = s[p[i]];
|
|
54
|
+
}
|
|
55
|
+
return t;
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.PaginationEllipsis = exports.PaginationNext = exports.PaginationPrevious = exports.PaginationItem = exports.PaginationLink = exports.PaginationContent = exports.Pagination = void 0;
|
|
59
|
+
var React = __importStar(require("react"));
|
|
60
|
+
var utils_1 = require("../../lib/utils");
|
|
61
|
+
var button_1 = require("../ui/button");
|
|
62
|
+
var react_icons_1 = require("@radix-ui/react-icons");
|
|
63
|
+
var Pagination = function (_a) {
|
|
64
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
65
|
+
return (React.createElement("nav", __assign({ role: "navigation", "aria-label": "pagination", className: (0, utils_1.cn)("mx-auto flex w-full justify-center", className) }, props)));
|
|
66
|
+
};
|
|
67
|
+
exports.Pagination = Pagination;
|
|
68
|
+
Pagination.displayName = "Pagination";
|
|
69
|
+
var PaginationContent = React.forwardRef(function (_a, ref) {
|
|
70
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
71
|
+
return (React.createElement("ul", __assign({ ref: ref, className: (0, utils_1.cn)("flex flex-row items-center gap-1", className) }, props)));
|
|
72
|
+
});
|
|
73
|
+
exports.PaginationContent = PaginationContent;
|
|
74
|
+
PaginationContent.displayName = "PaginationContent";
|
|
75
|
+
var PaginationItem = React.forwardRef(function (_a, ref) {
|
|
76
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
77
|
+
return (React.createElement("li", __assign({ ref: ref, className: (0, utils_1.cn)("", className) }, props)));
|
|
78
|
+
});
|
|
79
|
+
exports.PaginationItem = PaginationItem;
|
|
80
|
+
PaginationItem.displayName = "PaginationItem";
|
|
81
|
+
var PaginationLink = function (_a) {
|
|
82
|
+
var className = _a.className, isActive = _a.isActive, _b = _a.size, size = _b === void 0 ? "icon" : _b, props = __rest(_a, ["className", "isActive", "size"]);
|
|
83
|
+
return (React.createElement("a", __assign({ "aria-current": isActive ? "page" : undefined, className: (0, utils_1.cn)((0, button_1.buttonVariants)({
|
|
84
|
+
variant: isActive ? "outline" : "ghost",
|
|
85
|
+
size: size,
|
|
86
|
+
}), className) }, props)));
|
|
87
|
+
};
|
|
88
|
+
exports.PaginationLink = PaginationLink;
|
|
89
|
+
PaginationLink.displayName = "PaginationLink";
|
|
90
|
+
var PaginationPrevious = function (_a) {
|
|
91
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
92
|
+
return (React.createElement(PaginationLink, __assign({ "aria-label": "Go to previous page", size: "default", className: (0, utils_1.cn)("gap-1 pl-2.5", className) }, props),
|
|
93
|
+
React.createElement(react_icons_1.ChevronLeftIcon, { className: "h-4 w-4" }),
|
|
94
|
+
React.createElement("span", null, "Previous")));
|
|
95
|
+
};
|
|
96
|
+
exports.PaginationPrevious = PaginationPrevious;
|
|
97
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
98
|
+
var PaginationNext = function (_a) {
|
|
99
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
100
|
+
return (React.createElement(PaginationLink, __assign({ "aria-label": "Go to next page", size: "default", className: (0, utils_1.cn)("gap-1 pr-2.5", className) }, props),
|
|
101
|
+
React.createElement("span", null, "Next"),
|
|
102
|
+
React.createElement(react_icons_1.ChevronRightIcon, { className: "h-4 w-4" })));
|
|
103
|
+
};
|
|
104
|
+
exports.PaginationNext = PaginationNext;
|
|
105
|
+
PaginationNext.displayName = "PaginationNext";
|
|
106
|
+
var PaginationEllipsis = function (_a) {
|
|
107
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
108
|
+
return (React.createElement("span", __assign({ "aria-hidden": true, className: (0, utils_1.cn)("flex h-9 w-9 items-center justify-center", className) }, props),
|
|
109
|
+
React.createElement(react_icons_1.DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
110
|
+
React.createElement("span", { className: "sr-only" }, "More pages")));
|
|
111
|
+
};
|
|
112
|
+
exports.PaginationEllipsis = PaginationEllipsis;
|
|
113
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -56,27 +56,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
56
56
|
return t;
|
|
57
57
|
};
|
|
58
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
+
exports.PopoverAnchor = exports.PopoverContent = exports.PopoverTrigger = exports.Popover = void 0;
|
|
60
|
+
var React = __importStar(require("react"));
|
|
61
|
+
var PopoverPrimitive = __importStar(require("@radix-ui/react-popover"));
|
|
62
|
+
var utils_1 = require("../../lib/utils");
|
|
63
|
+
var Popover = PopoverPrimitive.Root;
|
|
59
64
|
exports.Popover = Popover;
|
|
65
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
60
66
|
exports.PopoverTrigger = PopoverTrigger;
|
|
61
|
-
|
|
67
|
+
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
62
68
|
exports.PopoverAnchor = PopoverAnchor;
|
|
63
|
-
var
|
|
64
|
-
var PopoverPrimitive = __importStar(require("@radix-ui/react-popover"));
|
|
65
|
-
var utils_1 = require("../lib/utils");
|
|
66
|
-
function Popover(_a) {
|
|
67
|
-
var props = __rest(_a, []);
|
|
68
|
-
return React.createElement(PopoverPrimitive.Root, __assign({ "data-slot": "popover" }, props));
|
|
69
|
-
}
|
|
70
|
-
function PopoverTrigger(_a) {
|
|
71
|
-
var props = __rest(_a, []);
|
|
72
|
-
return React.createElement(PopoverPrimitive.Trigger, __assign({ "data-slot": "popover-trigger" }, props));
|
|
73
|
-
}
|
|
74
|
-
function PopoverContent(_a) {
|
|
69
|
+
var PopoverContent = React.forwardRef(function (_a, ref) {
|
|
75
70
|
var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
76
71
|
return (React.createElement(PopoverPrimitive.Portal, null,
|
|
77
|
-
React.createElement(PopoverPrimitive.Content, __assign({
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return React.createElement(PopoverPrimitive.Anchor, __assign({ "data-slot": "popover-anchor" }, props));
|
|
82
|
-
}
|
|
72
|
+
React.createElement(PopoverPrimitive.Content, __assign({ ref: ref, align: align, sideOffset: sideOffset, className: (0, utils_1.cn)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]", className) }, props))));
|
|
73
|
+
});
|
|
74
|
+
exports.PopoverContent = PopoverContent;
|
|
75
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Progress };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
+
}) : function(o, v) {
|
|
28
|
+
o["default"] = v;
|
|
29
|
+
});
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
+
exports.Progress = void 0;
|
|
60
|
+
var React = __importStar(require("react"));
|
|
61
|
+
var ProgressPrimitive = __importStar(require("@radix-ui/react-progress"));
|
|
62
|
+
var utils_1 = require("../../lib/utils");
|
|
63
|
+
var Progress = React.forwardRef(function (_a, ref) {
|
|
64
|
+
var className = _a.className, value = _a.value, props = __rest(_a, ["className", "value"]);
|
|
65
|
+
return (React.createElement(ProgressPrimitive.Root, __assign({ ref: ref, className: (0, utils_1.cn)("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className) }, props),
|
|
66
|
+
React.createElement(ProgressPrimitive.Indicator, { className: "h-full w-full flex-1 bg-primary transition-all", style: { transform: "translateX(-".concat(100 - (value || 0), "%)") } })));
|
|
67
|
+
});
|
|
68
|
+
exports.Progress = Progress;
|
|
69
|
+
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
+
}) : function(o, v) {
|
|
28
|
+
o["default"] = v;
|
|
29
|
+
});
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
+
exports.RadioGroupItem = exports.RadioGroup = void 0;
|
|
60
|
+
var React = __importStar(require("react"));
|
|
61
|
+
var RadioGroupPrimitive = __importStar(require("@radix-ui/react-radio-group"));
|
|
62
|
+
var utils_1 = require("../../lib/utils");
|
|
63
|
+
var react_icons_1 = require("@radix-ui/react-icons");
|
|
64
|
+
var RadioGroup = React.forwardRef(function (_a, ref) {
|
|
65
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
66
|
+
return (React.createElement(RadioGroupPrimitive.Root, __assign({ className: (0, utils_1.cn)("grid gap-2", className) }, props, { ref: ref })));
|
|
67
|
+
});
|
|
68
|
+
exports.RadioGroup = RadioGroup;
|
|
69
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
70
|
+
var RadioGroupItem = React.forwardRef(function (_a, ref) {
|
|
71
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
72
|
+
return (React.createElement(RadioGroupPrimitive.Item, __assign({ ref: ref, className: (0, utils_1.cn)("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50", className) }, props),
|
|
73
|
+
React.createElement(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center" },
|
|
74
|
+
React.createElement(react_icons_1.DotFilledIcon, { className: "h-3.5 w-3.5 fill-primary" }))));
|
|
75
|
+
});
|
|
76
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
77
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement | HTMLButtonElement | HTMLDivElement | HTMLInputElement | HTMLObjectElement | HTMLStyleElement | HTMLTitleElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLSpanElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
|
+
className?: string;
|
|
6
|
+
collapsedSize?: number | undefined;
|
|
7
|
+
collapsible?: boolean | undefined;
|
|
8
|
+
defaultSize?: number | undefined;
|
|
9
|
+
id?: string;
|
|
10
|
+
maxSize?: number | undefined;
|
|
11
|
+
minSize?: number | undefined;
|
|
12
|
+
onCollapse?: ResizablePrimitive.PanelOnCollapse;
|
|
13
|
+
onExpand?: ResizablePrimitive.PanelOnExpand;
|
|
14
|
+
onResize?: ResizablePrimitive.PanelOnResize;
|
|
15
|
+
order?: number;
|
|
16
|
+
style?: object;
|
|
17
|
+
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
children?: import("react").ReactNode | undefined;
|
|
20
|
+
} & React.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
21
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
22
|
+
withHandle?: boolean;
|
|
23
|
+
}) => React.JSX.Element;
|
|
24
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
+
}) : function(o, v) {
|
|
28
|
+
o["default"] = v;
|
|
29
|
+
});
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
+
var t = {};
|
|
49
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
+
t[p] = s[p];
|
|
51
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
+
t[p[i]] = s[p[i]];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.ResizableHandle = exports.ResizablePanel = exports.ResizablePanelGroup = void 0;
|
|
63
|
+
var react_1 = __importDefault(require("react"));
|
|
64
|
+
var ResizablePrimitive = __importStar(require("react-resizable-panels"));
|
|
65
|
+
var utils_1 = require("../../lib/utils");
|
|
66
|
+
var react_icons_1 = require("@radix-ui/react-icons");
|
|
67
|
+
var ResizablePanelGroup = function (_a) {
|
|
68
|
+
var className = _a.className, props = __rest(_a, ["className"]);
|
|
69
|
+
return (react_1.default.createElement(ResizablePrimitive.PanelGroup, __assign({ className: (0, utils_1.cn)("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className) }, props)));
|
|
70
|
+
};
|
|
71
|
+
exports.ResizablePanelGroup = ResizablePanelGroup;
|
|
72
|
+
var ResizablePanel = ResizablePrimitive.Panel;
|
|
73
|
+
exports.ResizablePanel = ResizablePanel;
|
|
74
|
+
var ResizableHandle = function (_a) {
|
|
75
|
+
var withHandle = _a.withHandle, className = _a.className, props = __rest(_a, ["withHandle", "className"]);
|
|
76
|
+
return (react_1.default.createElement(ResizablePrimitive.PanelResizeHandle, __assign({ className: (0, utils_1.cn)("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", className) }, props), withHandle && (react_1.default.createElement("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border" },
|
|
77
|
+
react_1.default.createElement(react_icons_1.DragHandleDots2Icon, { className: "h-2.5 w-2.5" })))));
|
|
78
|
+
};
|
|
79
|
+
exports.ResizableHandle = ResizableHandle;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3
|
+
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|