@appcorp/shadcn 2.0.0 → 2.0.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/app-sidebar.js +1 -34
- package/components/audio.js +1 -13
- package/components/dashboard.js +1 -29
- package/components/drawer-generic.js +1 -39
- package/components/enhanced-checkbox.js +1 -39
- package/components/enhanced-combobox.js +1 -271
- package/components/enhanced-drawer-footer.js +1 -30
- package/components/enhanced-drawer-header.js +1 -7
- package/components/enhanced-dropzone-impl.js +1 -218
- package/components/enhanced-dropzone.js +1 -8
- package/components/enhanced-input.js +1 -40
- package/components/enhanced-label.js +1 -22
- package/components/enhanced-radio.js +1 -15
- package/components/enhanced-select.js +1 -33
- package/components/enhanced-slider.js +1 -33
- package/components/enhanced-switch.js +1 -42
- package/components/enhanced-table-footer-action.js +1 -102
- package/components/enhanced-table-footer-page.js +1 -124
- package/components/enhanced-table-footer-pagination.js +1 -108
- package/components/enhanced-table-header-action.js +1 -32
- package/components/enhanced-table-header-search.js +1 -10
- package/components/enhanced-table.js +1 -301
- package/components/enhanced-textarea.js +1 -40
- package/components/field.js +1 -96
- package/components/image-resize-dialog.js +1 -82
- package/components/nav-main.js +1 -40
- package/components/nav-projects.js +1 -39
- package/components/nav-user.js +1 -52
- package/components/show-toast.js +1 -7
- package/components/sidebar.js +1 -257
- package/components/team-switcher.js +1 -42
- package/components/theme-provider.js +1 -112
- package/components/timeline.js +1 -13
- package/components/tooltip.js +1 -36
- package/components/ui/accordion.js +1 -37
- package/components/ui/alert-dialog.js +1 -63
- package/components/ui/alert.js +1 -41
- package/components/ui/area-chart-v1-impl.js +1 -75
- package/components/ui/area-chart-v1.js +1 -5
- package/components/ui/aspect-ratio.js +1 -4
- package/components/ui/avatar.js +1 -31
- package/components/ui/badge.js +1 -32
- package/components/ui/breadcrumb.js +1 -54
- package/components/ui/button.js +1 -44
- package/components/ui/calendar-impl.js +1 -55
- package/components/ui/calendar.js +1 -6
- package/components/ui/card.js +1 -44
- package/components/ui/carousel-impl.js +1 -117
- package/components/ui/carousel.js +1 -9
- package/components/ui/chart-impl.js +6 -161
- package/components/ui/chart.js +1 -10
- package/components/ui/checkbox.js +1 -24
- package/components/ui/collapsible.js +1 -6
- package/components/ui/combobox.js +1 -52
- package/components/ui/command-impl.js +1 -63
- package/components/ui/command.js +1 -13
- package/components/ui/context-menu.js +1 -80
- package/components/ui/dialog.js +1 -57
- package/components/ui/drawer-impl.js +1 -56
- package/components/ui/drawer.js +1 -14
- package/components/ui/dropdown-menu.js +1 -82
- package/components/ui/form.d.ts +1 -1
- package/components/ui/form.js +1 -78
- package/components/ui/hover-card.js +1 -23
- package/components/ui/input-otp-impl.js +1 -43
- package/components/ui/input-otp.js +1 -8
- package/components/ui/input.js +1 -19
- package/components/ui/label.js +1 -23
- package/components/ui/language-selector.js +1 -25
- package/components/ui/menubar.js +1 -103
- package/components/ui/navigation-menu.js +1 -59
- package/components/ui/pagination.js +1 -60
- package/components/ui/popover.js +1 -25
- package/components/ui/progress.js +1 -22
- package/components/ui/radio-group.js +1 -29
- package/components/ui/resizable-impl.js +1 -27
- package/components/ui/resizable.js +1 -7
- package/components/ui/scroll-area.js +1 -32
- package/components/ui/select.js +1 -71
- package/components/ui/separator.js +1 -21
- package/components/ui/sheet.js +1 -71
- package/components/ui/skeleton.js +1 -18
- package/components/ui/slider.js +1 -32
- package/components/ui/sonner.js +1 -28
- package/components/ui/switch.js +1 -22
- package/components/ui/table.js +1 -55
- package/components/ui/tabs.js +1 -32
- package/components/ui/textarea.js +1 -19
- package/components/ui/theme-switcher.js +1 -102
- package/components/ui/toggle.js +1 -39
- package/data/admin-dashboard.js +1 -301
- package/hooks/use-enhanced-combobox.js +1 -73
- package/hooks/use-mobile.js +1 -15
- package/hooks/use-outside-click.js +1 -19
- package/lib/themes.js +1 -147
- package/lib/toast-utils.js +1 -170
- package/lib/utils.js +1 -5
- package/package.json +2 -2
- package/utils/transform-breadcrumbs.js +1 -7
- package/utils/transform-navitems.js +1 -18
package/components/ui/menubar.js
CHANGED
|
@@ -1,103 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
import { CheckIcon, ChevronRightIcon, DotFilledIcon, } from "@radix-ui/react-icons";
|
|
17
|
-
function MenubarMenu(_a) {
|
|
18
|
-
var props = __rest(_a, []);
|
|
19
|
-
return React.createElement(MenubarPrimitive.Menu, Object.assign({}, props));
|
|
20
|
-
}
|
|
21
|
-
function MenubarGroup(_a) {
|
|
22
|
-
var props = __rest(_a, []);
|
|
23
|
-
return React.createElement(MenubarPrimitive.Group, Object.assign({}, props));
|
|
24
|
-
}
|
|
25
|
-
function MenubarPortal(_a) {
|
|
26
|
-
var props = __rest(_a, []);
|
|
27
|
-
return React.createElement(MenubarPrimitive.Portal, Object.assign({}, props));
|
|
28
|
-
}
|
|
29
|
-
function MenubarRadioGroup(_a) {
|
|
30
|
-
var props = __rest(_a, []);
|
|
31
|
-
return React.createElement(MenubarPrimitive.RadioGroup, Object.assign({}, props));
|
|
32
|
-
}
|
|
33
|
-
function MenubarSub(_a) {
|
|
34
|
-
var props = __rest(_a, []);
|
|
35
|
-
return React.createElement(MenubarPrimitive.Sub, Object.assign({ "data-slot": "menubar-sub" }, props));
|
|
36
|
-
}
|
|
37
|
-
const Menubar = React.forwardRef((_a, ref) => {
|
|
38
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
39
|
-
return (React.createElement(MenubarPrimitive.Root, Object.assign({ ref: ref, className: cn("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", className) }, props)));
|
|
40
|
-
});
|
|
41
|
-
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
42
|
-
const MenubarTrigger = React.forwardRef((_a, ref) => {
|
|
43
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
44
|
-
return (React.createElement(MenubarPrimitive.Trigger, Object.assign({ ref: ref, className: cn("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", className) }, props)));
|
|
45
|
-
});
|
|
46
|
-
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
47
|
-
const MenubarSubTrigger = React.forwardRef((_a, ref) => {
|
|
48
|
-
var { className, inset, children } = _a, props = __rest(_a, ["className", "inset", "children"]);
|
|
49
|
-
return (React.createElement(MenubarPrimitive.SubTrigger, Object.assign({ ref: ref, className: cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className) }, props),
|
|
50
|
-
children,
|
|
51
|
-
React.createElement(ChevronRightIcon, { className: "ml-auto h-4 w-4" })));
|
|
52
|
-
});
|
|
53
|
-
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
54
|
-
const MenubarSubContent = React.forwardRef((_a, ref) => {
|
|
55
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
56
|
-
return (React.createElement(MenubarPrimitive.SubContent, Object.assign({ ref: ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-menubar-content-transform-origin]", className) }, props)));
|
|
57
|
-
});
|
|
58
|
-
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
59
|
-
const MenubarContent = React.forwardRef((_a, ref) => {
|
|
60
|
-
var { className, align = "start", alignOffset = -4, sideOffset = 8 } = _a, props = __rest(_a, ["className", "align", "alignOffset", "sideOffset"]);
|
|
61
|
-
return (React.createElement(MenubarPrimitive.Portal, null,
|
|
62
|
-
React.createElement(MenubarPrimitive.Content, Object.assign({ ref: ref, align: align, alignOffset: alignOffset, sideOffset: sideOffset, className: cn("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]", className) }, props))));
|
|
63
|
-
});
|
|
64
|
-
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
65
|
-
const MenubarItem = React.forwardRef((_a, ref) => {
|
|
66
|
-
var { className, inset } = _a, props = __rest(_a, ["className", "inset"]);
|
|
67
|
-
return (React.createElement(MenubarPrimitive.Item, Object.assign({ ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className) }, props)));
|
|
68
|
-
});
|
|
69
|
-
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
70
|
-
const MenubarCheckboxItem = React.forwardRef((_a, ref) => {
|
|
71
|
-
var { className, children, checked } = _a, props = __rest(_a, ["className", "children", "checked"]);
|
|
72
|
-
return (React.createElement(MenubarPrimitive.CheckboxItem, Object.assign({ ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), checked: checked }, props),
|
|
73
|
-
React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" },
|
|
74
|
-
React.createElement(MenubarPrimitive.ItemIndicator, null,
|
|
75
|
-
React.createElement(CheckIcon, { className: "h-4 w-4" }))),
|
|
76
|
-
children));
|
|
77
|
-
});
|
|
78
|
-
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
79
|
-
const MenubarRadioItem = React.forwardRef((_a, ref) => {
|
|
80
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
81
|
-
return (React.createElement(MenubarPrimitive.RadioItem, Object.assign({ ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className) }, props),
|
|
82
|
-
React.createElement("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" },
|
|
83
|
-
React.createElement(MenubarPrimitive.ItemIndicator, null,
|
|
84
|
-
React.createElement(DotFilledIcon, { className: "h-4 w-4 fill-current" }))),
|
|
85
|
-
children));
|
|
86
|
-
});
|
|
87
|
-
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
88
|
-
const MenubarLabel = React.forwardRef((_a, ref) => {
|
|
89
|
-
var { className, inset } = _a, props = __rest(_a, ["className", "inset"]);
|
|
90
|
-
return (React.createElement(MenubarPrimitive.Label, Object.assign({ ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold", inset && "pl-8", className) }, props)));
|
|
91
|
-
});
|
|
92
|
-
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
93
|
-
const MenubarSeparator = React.forwardRef((_a, ref) => {
|
|
94
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
95
|
-
return (React.createElement(MenubarPrimitive.Separator, Object.assign({ ref: ref, className: cn("-mx-1 my-1 h-px bg-muted", className) }, props)));
|
|
96
|
-
});
|
|
97
|
-
MenubarSeparator.displayName = MenubarPrimitive.Separator.displayName;
|
|
98
|
-
const MenubarShortcut = (_a) => {
|
|
99
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
100
|
-
return (React.createElement("span", Object.assign({ className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className) }, props)));
|
|
101
|
-
};
|
|
102
|
-
MenubarShortcut.displayname = "MenubarShortcut";
|
|
103
|
-
export { Menubar, MenubarMenu, MenubarTrigger, MenubarContent, MenubarItem, MenubarSeparator, MenubarLabel, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarPortal, MenubarSubContent, MenubarSubTrigger, MenubarGroup, MenubarSub, MenubarShortcut, };
|
|
1
|
+
"use strict";"use client";var c=function(e,t){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(s[r[o]]=e[r[o]]);return s};import*as a from"react";import*as n from"@radix-ui/react-menubar";import{cn as l}from"../../lib/utils";import{CheckIcon as O,ChevronRightIcon as w,DotFilledIcon as E}from"@radix-ui/react-icons";function j(e){var t=c(e,[]);return a.createElement(n.Menu,Object.assign({},t))}function M(e){var t=c(e,[]);return a.createElement(n.Group,Object.assign({},t))}function R(e){var t=c(e,[]);return a.createElement(n.Portal,Object.assign({},t))}function I(e){var t=c(e,[]);return a.createElement(n.RadioGroup,Object.assign({},t))}function S(e){var t=c(e,[]);return a.createElement(n.Sub,Object.assign({"data-slot":"menubar-sub"},t))}const d=a.forwardRef((e,t)=>{var{className:s}=e,r=c(e,["className"]);return a.createElement(n.Root,Object.assign({ref:t,className:l("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",s)},r))});d.displayName=n.Root.displayName;const m=a.forwardRef((e,t)=>{var{className:s}=e,r=c(e,["className"]);return a.createElement(n.Trigger,Object.assign({ref:t,className:l("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",s)},r))});m.displayName=n.Trigger.displayName;const u=a.forwardRef((e,t)=>{var{className:s,inset:r,children:o}=e,i=c(e,["className","inset","children"]);return a.createElement(n.SubTrigger,Object.assign({ref:t,className:l("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",r&&"pl-8",s)},i),o,a.createElement(w,{className:"ml-auto h-4 w-4"}))});u.displayName=n.SubTrigger.displayName;const p=a.forwardRef((e,t)=>{var{className:s}=e,r=c(e,["className"]);return a.createElement(n.SubContent,Object.assign({ref:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-menubar-content-transform-origin]",s)},r))});p.displayName=n.SubContent.displayName;const f=a.forwardRef((e,t)=>{var{className:s,align:r="start",alignOffset:o=-4,sideOffset:i=8}=e,v=c(e,["className","align","alignOffset","sideOffset"]);return a.createElement(n.Portal,null,a.createElement(n.Content,Object.assign({ref:t,align:r,alignOffset:o,sideOffset:i,className:l("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]",s)},v)))});f.displayName=n.Content.displayName;const b=a.forwardRef((e,t)=>{var{className:s,inset:r}=e,o=c(e,["className","inset"]);return a.createElement(n.Item,Object.assign({ref:t,className:l("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r&&"pl-8",s)},o))});b.displayName=n.Item.displayName;const g=a.forwardRef((e,t)=>{var{className:s,children:r,checked:o}=e,i=c(e,["className","children","checked"]);return a.createElement(n.CheckboxItem,Object.assign({ref:t,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s),checked:o},i),a.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},a.createElement(n.ItemIndicator,null,a.createElement(O,{className:"h-4 w-4"}))),r)});g.displayName=n.CheckboxItem.displayName;const N=a.forwardRef((e,t)=>{var{className:s,children:r}=e,o=c(e,["className","children"]);return a.createElement(n.RadioItem,Object.assign({ref:t,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s)},o),a.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},a.createElement(n.ItemIndicator,null,a.createElement(E,{className:"h-4 w-4 fill-current"}))),r)});N.displayName=n.RadioItem.displayName;const y=a.forwardRef((e,t)=>{var{className:s,inset:r}=e,o=c(e,["className","inset"]);return a.createElement(n.Label,Object.assign({ref:t,className:l("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",s)},o))});y.displayName=n.Label.displayName;const x=a.forwardRef((e,t)=>{var{className:s}=e,r=c(e,["className"]);return a.createElement(n.Separator,Object.assign({ref:t,className:l("-mx-1 my-1 h-px bg-muted",s)},r))});x.displayName=n.Separator.displayName;const h=e=>{var{className:t}=e,s=c(e,["className"]);return a.createElement("span",Object.assign({className:l("ml-auto text-xs tracking-widest text-muted-foreground",t)},s))};h.displayname="MenubarShortcut";export{d as Menubar,j as MenubarMenu,m as MenubarTrigger,f as MenubarContent,b as MenubarItem,x as MenubarSeparator,y as MenubarLabel,g as MenubarCheckboxItem,I as MenubarRadioGroup,N as MenubarRadioItem,R as MenubarPortal,p as MenubarSubContent,u as MenubarSubTrigger,M as MenubarGroup,S as MenubarSub,h as MenubarShortcut};
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
var
|
|
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 * as React from "react";
|
|
13
|
-
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
14
|
-
import { cva } from "class-variance-authority";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
import { ChevronDownIcon } from "@radix-ui/react-icons";
|
|
17
|
-
const NavigationMenu = React.forwardRef((_a, ref) => {
|
|
18
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
19
|
-
return (React.createElement(NavigationMenuPrimitive.Root, Object.assign({ ref: ref, className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className) }, props),
|
|
20
|
-
children,
|
|
21
|
-
React.createElement(NavigationMenuViewport, null)));
|
|
22
|
-
});
|
|
23
|
-
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
24
|
-
const NavigationMenuList = React.forwardRef((_a, ref) => {
|
|
25
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
26
|
-
return (React.createElement(NavigationMenuPrimitive.List, Object.assign({ ref: ref, className: cn("group flex flex-1 list-none items-center justify-center space-x-1", className) }, props)));
|
|
27
|
-
});
|
|
28
|
-
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
29
|
-
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
30
|
-
const navigationMenuTriggerStyle = 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");
|
|
31
|
-
const NavigationMenuTrigger = React.forwardRef((_a, ref) => {
|
|
32
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
33
|
-
return (React.createElement(NavigationMenuPrimitive.Trigger, Object.assign({ ref: ref, className: cn(navigationMenuTriggerStyle(), "group", className) }, props),
|
|
34
|
-
children,
|
|
35
|
-
" ",
|
|
36
|
-
React.createElement(ChevronDownIcon, { className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180", "aria-hidden": "true" })));
|
|
37
|
-
});
|
|
38
|
-
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
39
|
-
const NavigationMenuContent = React.forwardRef((_a, ref) => {
|
|
40
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
41
|
-
return (React.createElement(NavigationMenuPrimitive.Content, Object.assign({ ref: ref, className: 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)));
|
|
42
|
-
});
|
|
43
|
-
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
44
|
-
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
45
|
-
const NavigationMenuViewport = React.forwardRef((_a, ref) => {
|
|
46
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
47
|
-
return (React.createElement("div", { className: cn("absolute left-0 top-full flex justify-center") },
|
|
48
|
-
React.createElement(NavigationMenuPrimitive.Viewport, Object.assign({ className: 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))));
|
|
49
|
-
});
|
|
50
|
-
NavigationMenuViewport.displayName =
|
|
51
|
-
NavigationMenuPrimitive.Viewport.displayName;
|
|
52
|
-
const NavigationMenuIndicator = React.forwardRef((_a, ref) => {
|
|
53
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
54
|
-
return (React.createElement(NavigationMenuPrimitive.Indicator, Object.assign({ ref: ref, className: 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),
|
|
55
|
-
React.createElement("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })));
|
|
56
|
-
});
|
|
57
|
-
NavigationMenuIndicator.displayName =
|
|
58
|
-
NavigationMenuPrimitive.Indicator.displayName;
|
|
59
|
-
export { navigationMenuTriggerStyle, NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, };
|
|
1
|
+
"use strict";var d=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]]);return o};import*as a from"react";import*as r from"@radix-ui/react-navigation-menu";import{cva as v}from"class-variance-authority";import{cn as s}from"../../lib/utils";import{ChevronDownIcon as N}from"@radix-ui/react-icons";const m=a.forwardRef((e,n)=>{var{className:o,children:t}=e,i=d(e,["className","children"]);return a.createElement(r.Root,Object.assign({ref:n,className:s("relative z-10 flex max-w-max flex-1 items-center justify-center",o)},i),t,a.createElement(l,null))});m.displayName=r.Root.displayName;const c=a.forwardRef((e,n)=>{var{className:o}=e,t=d(e,["className"]);return a.createElement(r.List,Object.assign({ref:n,className:s("group flex flex-1 list-none items-center justify-center space-x-1",o)},t))});c.displayName=r.List.displayName;const b=r.Item,f=v("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"),p=a.forwardRef((e,n)=>{var{className:o,children:t}=e,i=d(e,["className","children"]);return a.createElement(r.Trigger,Object.assign({ref:n,className:s(f(),"group",o)},i),t," ",a.createElement(N,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}))});p.displayName=r.Trigger.displayName;const u=a.forwardRef((e,n)=>{var{className:o}=e,t=d(e,["className"]);return a.createElement(r.Content,Object.assign({ref:n,className:s("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 ",o)},t))});u.displayName=r.Content.displayName;const h=r.Link,l=a.forwardRef((e,n)=>{var{className:o}=e,t=d(e,["className"]);return a.createElement("div",{className:s("absolute left-0 top-full flex justify-center")},a.createElement(r.Viewport,Object.assign({className:s("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)]",o),ref:n},t)))});l.displayName=r.Viewport.displayName;const g=a.forwardRef((e,n)=>{var{className:o}=e,t=d(e,["className"]);return a.createElement(r.Indicator,Object.assign({ref:n,className:s("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",o)},t),a.createElement("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}))});g.displayName=r.Indicator.displayName;export{f as navigationMenuTriggerStyle,m as NavigationMenu,c as NavigationMenuList,b as NavigationMenuItem,u as NavigationMenuContent,p as NavigationMenuTrigger,h as NavigationMenuLink,g as NavigationMenuIndicator,l as NavigationMenuViewport};
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
var
|
|
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 * as React from "react";
|
|
13
|
-
import { cn } from "../../lib/utils";
|
|
14
|
-
import { buttonVariants } from "../ui/button";
|
|
15
|
-
import { ChevronLeftIcon, ChevronRightIcon, DotsHorizontalIcon, } from "@radix-ui/react-icons";
|
|
16
|
-
const Pagination = (_a) => {
|
|
17
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
18
|
-
return (React.createElement("nav", Object.assign({ role: "navigation", "aria-label": "pagination", className: cn("mx-auto flex w-full justify-center", className) }, props)));
|
|
19
|
-
};
|
|
20
|
-
Pagination.displayName = "Pagination";
|
|
21
|
-
const PaginationContent = React.forwardRef((_a, ref) => {
|
|
22
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
23
|
-
return (React.createElement("ul", Object.assign({ ref: ref, className: cn("flex flex-row items-center gap-1", className) }, props)));
|
|
24
|
-
});
|
|
25
|
-
PaginationContent.displayName = "PaginationContent";
|
|
26
|
-
const PaginationItem = React.forwardRef((_a, ref) => {
|
|
27
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
28
|
-
return (React.createElement("li", Object.assign({ ref: ref, className: cn("", className) }, props)));
|
|
29
|
-
});
|
|
30
|
-
PaginationItem.displayName = "PaginationItem";
|
|
31
|
-
const PaginationLink = (_a) => {
|
|
32
|
-
var { className, isActive, size = "icon" } = _a, props = __rest(_a, ["className", "isActive", "size"]);
|
|
33
|
-
return (React.createElement("a", Object.assign({ "aria-current": isActive ? "page" : undefined, className: cn(buttonVariants({
|
|
34
|
-
variant: isActive ? "outline" : "ghost",
|
|
35
|
-
size,
|
|
36
|
-
}), className) }, props)));
|
|
37
|
-
};
|
|
38
|
-
PaginationLink.displayName = "PaginationLink";
|
|
39
|
-
const PaginationPrevious = (_a) => {
|
|
40
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
41
|
-
return (React.createElement(PaginationLink, Object.assign({ "aria-label": "Go to previous page", size: "default", className: cn("gap-1 pl-2.5", className) }, props),
|
|
42
|
-
React.createElement(ChevronLeftIcon, { className: "h-4 w-4" }),
|
|
43
|
-
React.createElement("span", null, "Previous")));
|
|
44
|
-
};
|
|
45
|
-
PaginationPrevious.displayName = "PaginationPrevious";
|
|
46
|
-
const PaginationNext = (_a) => {
|
|
47
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
48
|
-
return (React.createElement(PaginationLink, Object.assign({ "aria-label": "Go to next page", size: "default", className: cn("gap-1 pr-2.5", className) }, props),
|
|
49
|
-
React.createElement("span", null, "Next"),
|
|
50
|
-
React.createElement(ChevronRightIcon, { className: "h-4 w-4" })));
|
|
51
|
-
};
|
|
52
|
-
PaginationNext.displayName = "PaginationNext";
|
|
53
|
-
const PaginationEllipsis = (_a) => {
|
|
54
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
55
|
-
return (React.createElement("span", Object.assign({ "aria-hidden": true, className: cn("flex h-9 w-9 items-center justify-center", className) }, props),
|
|
56
|
-
React.createElement(DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
57
|
-
React.createElement("span", { className: "sr-only" }, "More pages")));
|
|
58
|
-
};
|
|
59
|
-
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
60
|
-
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
1
|
+
"use strict";var i=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a};import*as s from"react";import{cn as l}from"../../lib/utils";import{buttonVariants as u}from"../ui/button";import{ChevronLeftIcon as v,ChevronRightIcon as P,DotsHorizontalIcon as y}from"@radix-ui/react-icons";const c=e=>{var{className:t}=e,a=i(e,["className"]);return s.createElement("nav",Object.assign({role:"navigation","aria-label":"pagination",className:l("mx-auto flex w-full justify-center",t)},a))};c.displayName="Pagination";const m=s.forwardRef((e,t)=>{var{className:a}=e,n=i(e,["className"]);return s.createElement("ul",Object.assign({ref:t,className:l("flex flex-row items-center gap-1",a)},n))});m.displayName="PaginationContent";const p=s.forwardRef((e,t)=>{var{className:a}=e,n=i(e,["className"]);return s.createElement("li",Object.assign({ref:t,className:l("",a)},n))});p.displayName="PaginationItem";const o=e=>{var{className:t,isActive:a,size:n="icon"}=e,r=i(e,["className","isActive","size"]);return s.createElement("a",Object.assign({"aria-current":a?"page":void 0,className:l(u({variant:a?"outline":"ghost",size:n}),t)},r))};o.displayName="PaginationLink";const g=e=>{var{className:t}=e,a=i(e,["className"]);return s.createElement(o,Object.assign({"aria-label":"Go to previous page",size:"default",className:l("gap-1 pl-2.5",t)},a),s.createElement(v,{className:"h-4 w-4"}),s.createElement("span",null,"Previous"))};g.displayName="PaginationPrevious";const N=e=>{var{className:t}=e,a=i(e,["className"]);return s.createElement(o,Object.assign({"aria-label":"Go to next page",size:"default",className:l("gap-1 pr-2.5",t)},a),s.createElement("span",null,"Next"),s.createElement(P,{className:"h-4 w-4"}))};N.displayName="PaginationNext";const f=e=>{var{className:t}=e,a=i(e,["className"]);return s.createElement("span",Object.assign({"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",t)},a),s.createElement(y,{className:"h-4 w-4"}),s.createElement("span",{className:"sr-only"},"More pages"))};f.displayName="PaginationEllipsis";export{c as Pagination,m as PaginationContent,o as PaginationLink,p as PaginationItem,g as PaginationPrevious,N as PaginationNext,f as PaginationEllipsis};
|
package/components/ui/popover.js
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
const Popover = PopoverPrimitive.Root;
|
|
17
|
-
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
18
|
-
const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
19
|
-
const PopoverContent = React.forwardRef((_a, ref) => {
|
|
20
|
-
var { className, align = "center", sideOffset = 4 } = _a, props = __rest(_a, ["className", "align", "sideOffset"]);
|
|
21
|
-
return (React.createElement(PopoverPrimitive.Portal, null,
|
|
22
|
-
React.createElement(PopoverPrimitive.Content, Object.assign({ ref: ref, align: align, sideOffset: sideOffset, className: 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))));
|
|
23
|
-
});
|
|
24
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
25
|
-
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
1
|
+
"use strict";"use client";var l=function(t,n){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(a[e]=t[e]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(t);o<e.length;o++)n.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(a[e[o]]=t[e[o]]);return a};import*as i from"react";import*as r from"@radix-ui/react-popover";import{cn as p}from"../../lib/utils";const f=r.Root,m=r.Trigger,c=r.Anchor,s=i.forwardRef((t,n)=>{var{className:a,align:e="center",sideOffset:o=4}=t,d=l(t,["className","align","sideOffset"]);return i.createElement(r.Portal,null,i.createElement(r.Content,Object.assign({ref:n,align:e,sideOffset:o,className:p("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]",a)},d)))});s.displayName=r.Content.displayName;export{f as Popover,m as PopoverTrigger,s as PopoverContent,c as PopoverAnchor};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
const Progress = React.forwardRef((_a, ref) => {
|
|
17
|
-
var { className, value } = _a, props = __rest(_a, ["className", "value"]);
|
|
18
|
-
return (React.createElement(ProgressPrimitive.Root, Object.assign({ ref: ref, className: cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", className) }, props),
|
|
19
|
-
React.createElement(ProgressPrimitive.Indicator, { className: "h-full w-full flex-1 bg-primary transition-all", style: { transform: `translateX(-${100 - (value || 0)}%)` } })));
|
|
20
|
-
});
|
|
21
|
-
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
22
|
-
export { Progress };
|
|
1
|
+
"use strict";"use client";var f=function(r,o){var a={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&o.indexOf(e)<0&&(a[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)o.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(a[e[t]]=r[e[t]]);return a};import*as l from"react";import*as n from"@radix-ui/react-progress";import{cn as i}from"../../lib/utils";const s=l.forwardRef((r,o)=>{var{className:a,value:e}=r,t=f(r,["className","value"]);return l.createElement(n.Root,Object.assign({ref:o,className:i("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",a)},t),l.createElement(n.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}}))});s.displayName=n.Root.displayName;export{s as Progress};
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
import { DotFilledIcon } from "@radix-ui/react-icons";
|
|
17
|
-
const RadioGroup = React.forwardRef((_a, ref) => {
|
|
18
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
19
|
-
return (React.createElement(RadioGroupPrimitive.Root, Object.assign({ className: cn("grid gap-2", className) }, props, { ref: ref })));
|
|
20
|
-
});
|
|
21
|
-
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
22
|
-
const RadioGroupItem = React.forwardRef((_a, ref) => {
|
|
23
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
24
|
-
return (React.createElement(RadioGroupPrimitive.Item, Object.assign({ ref: ref, className: 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),
|
|
25
|
-
React.createElement(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center" },
|
|
26
|
-
React.createElement(DotFilledIcon, { className: "h-3.5 w-3.5 fill-primary" }))));
|
|
27
|
-
});
|
|
28
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
|
29
|
-
export { RadioGroup, RadioGroupItem };
|
|
1
|
+
"use strict";"use client";var l=function(r,a){var t={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&a.indexOf(e)<0&&(t[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(r);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(r,e[o])&&(t[e[o]]=r[e[o]]);return t};import*as s from"react";import*as i from"@radix-ui/react-radio-group";import{cn as n}from"../../lib/utils";import{DotFilledIcon as p}from"@radix-ui/react-icons";const c=s.forwardRef((r,a)=>{var{className:t}=r,e=l(r,["className"]);return s.createElement(i.Root,Object.assign({className:n("grid gap-2",t)},e,{ref:a}))});c.displayName=i.Root.displayName;const m=s.forwardRef((r,a)=>{var{className:t}=r,e=l(r,["className"]);return s.createElement(i.Item,Object.assign({ref:a,className:n("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",t)},e),s.createElement(i.Indicator,{className:"flex items-center justify-center"},s.createElement(p,{className:"h-3.5 w-3.5 fill-primary"})))});m.displayName=i.Item.displayName;export{c as RadioGroup,m as RadioGroupItem};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 React from "react";
|
|
14
|
-
import * as ResizablePrimitive from "react-resizable-panels";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
import { DragHandleDots2Icon } from "@radix-ui/react-icons";
|
|
17
|
-
const ResizablePanelGroup = (_a) => {
|
|
18
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
19
|
-
return (React.createElement(ResizablePrimitive.PanelGroup, Object.assign({ className: cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", className) }, props)));
|
|
20
|
-
};
|
|
21
|
-
const ResizablePanel = ResizablePrimitive.Panel;
|
|
22
|
-
const ResizableHandle = (_a) => {
|
|
23
|
-
var { withHandle, className } = _a, props = __rest(_a, ["withHandle", "className"]);
|
|
24
|
-
return (React.createElement(ResizablePrimitive.PanelResizeHandle, Object.assign({ className: 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.createElement("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border" },
|
|
25
|
-
React.createElement(DragHandleDots2Icon, { className: "h-2.5 w-2.5" })))));
|
|
26
|
-
};
|
|
27
|
-
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
|
1
|
+
"use strict";"use client";var o=function(e,a){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l<t.length;l++)a.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]]);return r};import n from"react";import*as i from"react-resizable-panels";import{cn as c}from"../../lib/utils";import{DragHandleDots2Icon as s}from"@radix-ui/react-icons";const f=e=>{var{className:a}=e,r=o(e,["className"]);return n.createElement(i.PanelGroup,Object.assign({className:c("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a)},r))},p=i.Panel,d=e=>{var{withHandle:a,className:r}=e,t=o(e,["withHandle","className"]);return n.createElement(i.PanelResizeHandle,Object.assign({className:c("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",r)},t),a&&n.createElement("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border"},n.createElement(s,{className:"h-2.5 w-2.5"})))};export{f as ResizablePanelGroup,p as ResizablePanel,d as ResizableHandle};
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import React from "react";
|
|
3
|
-
const module = import("./resizable-impl");
|
|
4
|
-
const lazy = (name) => React.lazy(() => module.then((m) => ({ default: m[name] })));
|
|
5
|
-
export const ResizablePanelGroup = lazy("ResizablePanelGroup");
|
|
6
|
-
export const ResizablePanel = lazy("ResizablePanel");
|
|
7
|
-
export const ResizableHandle = lazy("ResizableHandle");
|
|
1
|
+
"use strict";"use client";import o from"react";const t=import("./resizable-impl"),e=l=>o.lazy(()=>t.then(a=>({default:a[l]})));export const ResizablePanelGroup=e("ResizablePanelGroup"),ResizablePanel=e("ResizablePanel"),ResizableHandle=e("ResizableHandle");
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
const ScrollArea = React.forwardRef((_a, ref) => {
|
|
17
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
18
|
-
return (React.createElement(ScrollAreaPrimitive.Root, Object.assign({ ref: ref, className: cn("relative overflow-hidden", className) }, props),
|
|
19
|
-
children,
|
|
20
|
-
React.createElement(ScrollBar, null),
|
|
21
|
-
React.createElement(ScrollAreaPrimitive.Corner, null)));
|
|
22
|
-
});
|
|
23
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
24
|
-
const ScrollBar = React.forwardRef((_a, ref) => {
|
|
25
|
-
var { className, orientation = "vertical" } = _a, props = __rest(_a, ["className", "orientation"]);
|
|
26
|
-
return (React.createElement(ScrollAreaPrimitive.ScrollAreaScrollbar, Object.assign({ ref: ref, orientation: orientation, className: cn("flex touch-none select-none transition-colors", orientation === "vertical" &&
|
|
27
|
-
"h-full w-2.5 border-l border-l-transparent p-[1px]", orientation === "horizontal" &&
|
|
28
|
-
"h-2.5 flex-col border-t border-t-transparent p-[1px]", className) }, props),
|
|
29
|
-
React.createElement(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })));
|
|
30
|
-
});
|
|
31
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
32
|
-
export { ScrollArea, ScrollBar };
|
|
1
|
+
"use strict";"use client";var s=function(r,a){var l={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&a.indexOf(e)<0&&(l[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,e=Object.getOwnPropertySymbols(r);t<e.length;t++)a.indexOf(e[t])<0&&Object.prototype.propertyIsEnumerable.call(r,e[t])&&(l[e[t]]=r[e[t]]);return l};import*as o from"react";import*as n from"@radix-ui/react-scroll-area";import{cn as i}from"../../lib/utils";const m=o.forwardRef((r,a)=>{var{className:l,children:e}=r,t=s(r,["className","children"]);return o.createElement(n.Root,Object.assign({ref:a,className:i("relative overflow-hidden",l)},t),e,o.createElement(c,null),o.createElement(n.Corner,null))});m.displayName=n.Root.displayName;const c=o.forwardRef((r,a)=>{var{className:l,orientation:e="vertical"}=r,t=s(r,["className","orientation"]);return o.createElement(n.ScrollAreaScrollbar,Object.assign({ref:a,orientation:e,className:i("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",l)},t),o.createElement(n.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"}))});c.displayName=n.ScrollAreaScrollbar.displayName;export{m as ScrollArea,c as ScrollBar};
|
package/components/ui/select.js
CHANGED
|
@@ -1,71 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
import { CheckIcon, ChevronDownIcon, ChevronUpIcon, } from "@radix-ui/react-icons";
|
|
17
|
-
const Select = SelectPrimitive.Root;
|
|
18
|
-
const SelectGroup = SelectPrimitive.Group;
|
|
19
|
-
const SelectValue = SelectPrimitive.Value;
|
|
20
|
-
const SelectTrigger = React.forwardRef((_a, ref) => {
|
|
21
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
22
|
-
return (React.createElement(SelectPrimitive.Trigger, Object.assign({ ref: ref, className: cn("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1", className) }, props),
|
|
23
|
-
children,
|
|
24
|
-
React.createElement(SelectPrimitive.Icon, { asChild: true },
|
|
25
|
-
React.createElement(ChevronDownIcon, { className: "h-4 w-4 opacity-50" }))));
|
|
26
|
-
});
|
|
27
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
28
|
-
const SelectScrollUpButton = React.forwardRef((_a, ref) => {
|
|
29
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
30
|
-
return (React.createElement(SelectPrimitive.ScrollUpButton, Object.assign({ ref: ref, className: cn("flex cursor-default items-center justify-center py-1", className) }, props),
|
|
31
|
-
React.createElement(ChevronUpIcon, { className: "h-4 w-4" })));
|
|
32
|
-
});
|
|
33
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
34
|
-
const SelectScrollDownButton = React.forwardRef((_a, ref) => {
|
|
35
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
36
|
-
return (React.createElement(SelectPrimitive.ScrollDownButton, Object.assign({ ref: ref, className: cn("flex cursor-default items-center justify-center py-1", className) }, props),
|
|
37
|
-
React.createElement(ChevronDownIcon, { className: "h-4 w-4" })));
|
|
38
|
-
});
|
|
39
|
-
SelectScrollDownButton.displayName =
|
|
40
|
-
SelectPrimitive.ScrollDownButton.displayName;
|
|
41
|
-
const SelectContent = React.forwardRef((_a, ref) => {
|
|
42
|
-
var { className, children, position = "popper" } = _a, props = __rest(_a, ["className", "children", "position"]);
|
|
43
|
-
return (React.createElement(SelectPrimitive.Portal, null,
|
|
44
|
-
React.createElement(SelectPrimitive.Content, Object.assign({ ref: ref, className: cn("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]", position === "popper" &&
|
|
45
|
-
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position }, props),
|
|
46
|
-
React.createElement(SelectScrollUpButton, null),
|
|
47
|
-
React.createElement(SelectPrimitive.Viewport, { className: cn("p-1", position === "popper" &&
|
|
48
|
-
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]") }, children),
|
|
49
|
-
React.createElement(SelectScrollDownButton, null))));
|
|
50
|
-
});
|
|
51
|
-
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
52
|
-
const SelectLabel = React.forwardRef((_a, ref) => {
|
|
53
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
54
|
-
return (React.createElement(SelectPrimitive.Label, Object.assign({ ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold", className) }, props)));
|
|
55
|
-
});
|
|
56
|
-
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
57
|
-
const SelectItem = React.forwardRef((_a, ref) => {
|
|
58
|
-
var { className, children } = _a, props = __rest(_a, ["className", "children"]);
|
|
59
|
-
return (React.createElement(SelectPrimitive.Item, Object.assign({ ref: ref, className: cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className) }, props),
|
|
60
|
-
React.createElement("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center" },
|
|
61
|
-
React.createElement(SelectPrimitive.ItemIndicator, null,
|
|
62
|
-
React.createElement(CheckIcon, { className: "h-4 w-4" }))),
|
|
63
|
-
React.createElement(SelectPrimitive.ItemText, null, children)));
|
|
64
|
-
});
|
|
65
|
-
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
66
|
-
const SelectSeparator = React.forwardRef((_a, ref) => {
|
|
67
|
-
var { className } = _a, props = __rest(_a, ["className"]);
|
|
68
|
-
return (React.createElement(SelectPrimitive.Separator, Object.assign({ ref: ref, className: cn("-mx-1 my-1 h-px bg-muted", className) }, props)));
|
|
69
|
-
});
|
|
70
|
-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
71
|
-
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
1
|
+
"use strict";"use client";var c=function(e,o){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(s[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)o.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(s[a[l]]=e[a[l]]);return s};import*as t from"react";import*as r from"@radix-ui/react-select";import{cn as n}from"../../lib/utils";import{CheckIcon as h,ChevronDownIcon as d,ChevronUpIcon as b}from"@radix-ui/react-icons";const w=r.Root,x=r.Group,v=r.Value,p=t.forwardRef((e,o)=>{var{className:s,children:a}=e,l=c(e,["className","children"]);return t.createElement(r.Trigger,Object.assign({ref:o,className:n("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",s)},l),a,t.createElement(r.Icon,{asChild:!0},t.createElement(d,{className:"h-4 w-4 opacity-50"})))});p.displayName=r.Trigger.displayName;const i=t.forwardRef((e,o)=>{var{className:s}=e,a=c(e,["className"]);return t.createElement(r.ScrollUpButton,Object.assign({ref:o,className:n("flex cursor-default items-center justify-center py-1",s)},a),t.createElement(b,{className:"h-4 w-4"}))});i.displayName=r.ScrollUpButton.displayName;const m=t.forwardRef((e,o)=>{var{className:s}=e,a=c(e,["className"]);return t.createElement(r.ScrollDownButton,Object.assign({ref:o,className:n("flex cursor-default items-center justify-center py-1",s)},a),t.createElement(d,{className:"h-4 w-4"}))});m.displayName=r.ScrollDownButton.displayName;const f=t.forwardRef((e,o)=>{var{className:s,children:a,position:l="popper"}=e,y=c(e,["className","children","position"]);return t.createElement(r.Portal,null,t.createElement(r.Content,Object.assign({ref:o,className:n("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",s),position:l},y),t.createElement(i,null),t.createElement(r.Viewport,{className:n("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},a),t.createElement(m,null)))});f.displayName=r.Content.displayName;const u=t.forwardRef((e,o)=>{var{className:s}=e,a=c(e,["className"]);return t.createElement(r.Label,Object.assign({ref:o,className:n("px-2 py-1.5 text-sm font-semibold",s)},a))});u.displayName=r.Label.displayName;const N=t.forwardRef((e,o)=>{var{className:s,children:a}=e,l=c(e,["className","children"]);return t.createElement(r.Item,Object.assign({ref:o,className:n("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s)},l),t.createElement("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center"},t.createElement(r.ItemIndicator,null,t.createElement(h,{className:"h-4 w-4"}))),t.createElement(r.ItemText,null,a))});N.displayName=r.Item.displayName;const g=t.forwardRef((e,o)=>{var{className:s}=e,a=c(e,["className"]);return t.createElement(r.Separator,Object.assign({ref:o,className:n("-mx-1 my-1 h-px bg-muted",s)},a))});g.displayName=r.Separator.displayName;export{w as Select,x as SelectGroup,v as SelectValue,p as SelectTrigger,f as SelectContent,u as SelectLabel,N as SelectItem,g as SelectSeparator,i as SelectScrollUpButton,m as SelectScrollDownButton};
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
"use client";
|
|
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 * as React from "react";
|
|
14
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
15
|
-
import { cn } from "../../lib/utils";
|
|
16
|
-
const Separator = React.forwardRef((_a, ref) => {
|
|
17
|
-
var { className, orientation = "horizontal", decorative = true } = _a, props = __rest(_a, ["className", "orientation", "decorative"]);
|
|
18
|
-
return (React.createElement(SeparatorPrimitive.Root, Object.assign({ ref: ref, decorative: decorative, orientation: orientation, className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className) }, props)));
|
|
19
|
-
});
|
|
20
|
-
Separator.displayName = SeparatorPrimitive.Root.displayName;
|
|
21
|
-
export { Separator };
|
|
1
|
+
"use strict";"use client";var p=function(t,a){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&a.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,r=Object.getOwnPropertySymbols(t);e<r.length;e++)a.indexOf(r[e])<0&&Object.prototype.propertyIsEnumerable.call(t,r[e])&&(o[r[e]]=t[r[e]]);return o};import*as n from"react";import*as i from"@radix-ui/react-separator";import{cn as f}from"../../lib/utils";const l=n.forwardRef((t,a)=>{var{className:o,orientation:r="horizontal",decorative:e=!0}=t,c=p(t,["className","orientation","decorative"]);return n.createElement(i.Root,Object.assign({ref:a,decorative:e,orientation:r,className:f("shrink-0 bg-border",r==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",o)},c))});l.displayName=i.Root.displayName;export{l as Separator};
|