@nexub/react 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-24CZFBTG.js +83 -0
- package/dist/chunk-2MKB5FQI.js +122 -0
- package/dist/chunk-2RLSIOGB.js +173 -0
- package/dist/chunk-2VDP2ML4.js +105 -0
- package/dist/chunk-3CSKW56L.js +44 -0
- package/dist/chunk-3U54QLYB.js +87 -0
- package/dist/chunk-46CFSBEO.js +48 -0
- package/dist/chunk-4BTP4464.js +92 -0
- package/dist/chunk-4NGB7XIM.js +88 -0
- package/dist/chunk-4OCXGNP3.js +85 -0
- package/dist/chunk-52KTX5A7.js +119 -0
- package/dist/chunk-6AZP6VBM.js +62 -0
- package/dist/chunk-6Y734SXN.js +51 -0
- package/dist/chunk-7B4FS7VQ.js +150 -0
- package/dist/chunk-7W2YDJ5W.js +128 -0
- package/dist/chunk-A7L75YXY.js +61 -0
- package/dist/chunk-ADO2DB6Q.js +1 -0
- package/dist/chunk-AHZQQ7OT.js +83 -0
- package/dist/chunk-AT6RPKU3.js +12 -0
- package/dist/chunk-BBVOB4EC.js +36 -0
- package/dist/chunk-BGY23Y5O.js +104 -0
- package/dist/chunk-BJKW3G2L.js +99 -0
- package/dist/chunk-BMVAZIAJ.js +187 -0
- package/dist/chunk-BTZW34TX.js +76 -0
- package/dist/chunk-BUBYXAJK.js +20 -0
- package/dist/chunk-BV3U3ATL.js +1 -0
- package/dist/chunk-BYCTJHXY.js +75 -0
- package/dist/chunk-BYF223HT.js +92 -0
- package/dist/chunk-CPV367VS.js +106 -0
- package/dist/chunk-CVBAWKNG.js +124 -0
- package/dist/chunk-CZUNTABW.js +25 -0
- package/dist/chunk-DAXDAFNG.js +92 -0
- package/dist/chunk-DD6XCW6R.js +53 -0
- package/dist/chunk-DEH2Z27F.js +50 -0
- package/dist/chunk-DOHXBNOP.js +119 -0
- package/dist/chunk-DR2Y3PIT.js +91 -0
- package/dist/chunk-ELC2NBGH.js +89 -0
- package/dist/chunk-EV43I5J6.js +1 -0
- package/dist/chunk-FS4XKWFA.js +308 -0
- package/dist/chunk-FUJOSPNQ.js +38 -0
- package/dist/chunk-GTQIA62H.js +60 -0
- package/dist/chunk-H4MXRAXP.js +37 -0
- package/dist/chunk-HW3I7I3R.js +29 -0
- package/dist/chunk-HY3JWSG4.js +1 -0
- package/dist/chunk-I5Z3A7N3.js +40 -0
- package/dist/chunk-IBCYG6HR.js +55 -0
- package/dist/chunk-IHW2L532.js +175 -0
- package/dist/chunk-IU76LV3W.js +101 -0
- package/dist/chunk-IZ6ZPEZ2.js +1 -0
- package/dist/chunk-JCUVWDUC.js +57 -0
- package/dist/chunk-JKTZMWWC.js +63 -0
- package/dist/chunk-JQDLCN5D.js +66 -0
- package/dist/chunk-K7CUCLLI.js +43 -0
- package/dist/chunk-KBB7M6WO.js +65 -0
- package/dist/chunk-KLTQJZOX.js +1 -0
- package/dist/chunk-KWWV3CM3.js +62 -0
- package/dist/chunk-KZW37FQZ.js +40 -0
- package/dist/chunk-L6GBZ2HB.js +145 -0
- package/dist/chunk-LAWZQ6R6.js +76 -0
- package/dist/chunk-LOP63AVE.js +49 -0
- package/dist/chunk-MY6XUJ5P.js +216 -0
- package/dist/chunk-N2GIMMTF.js +98 -0
- package/dist/chunk-NAIZ7R2L.js +59 -0
- package/dist/chunk-NHUQLIHL.js +9 -0
- package/dist/chunk-NZ7UK3G6.js +1 -0
- package/dist/chunk-OUBBOOZE.js +34 -0
- package/dist/chunk-OZPPL76D.js +82 -0
- package/dist/chunk-P6BZNFVU.js +38 -0
- package/dist/chunk-PANDAMD2.js +54 -0
- package/dist/chunk-PBLEGOLM.js +71 -0
- package/dist/chunk-PER3O4FD.js +33 -0
- package/dist/chunk-PICMOOAZ.js +1 -0
- package/dist/chunk-POBSY7EZ.js +155 -0
- package/dist/chunk-POFKKYHY.js +37 -0
- package/dist/chunk-QF7GUDOE.js +67 -0
- package/dist/chunk-QHJ43Q2T.js +70 -0
- package/dist/chunk-QURKXXNS.js +46 -0
- package/dist/chunk-ROZVVWPV.js +8 -0
- package/dist/chunk-S344IRK4.js +63 -0
- package/dist/chunk-SZKUSLHI.js +176 -0
- package/dist/chunk-T4IVMVMQ.js +32 -0
- package/dist/chunk-TCTFQYLH.js +115 -0
- package/dist/chunk-U3AEA4BZ.js +56 -0
- package/dist/chunk-U3EGB3JL.js +43 -0
- package/dist/chunk-UALYS4XI.js +67 -0
- package/dist/chunk-UTBUIBEP.js +153 -0
- package/dist/chunk-UWWL5FPC.js +80 -0
- package/dist/chunk-V3FZHIEB.js +52 -0
- package/dist/chunk-V6GZZFTV.js +106 -0
- package/dist/chunk-VPZCQFVY.js +33 -0
- package/dist/chunk-VT7RKY46.js +49 -0
- package/dist/chunk-W4IEXUD4.js +127 -0
- package/dist/chunk-WPPNDU2E.js +36 -0
- package/dist/chunk-XNDCVVNE.js +45 -0
- package/dist/chunk-Y45JAJKW.js +44 -0
- package/dist/chunk-YAGVMERC.js +81 -0
- package/dist/chunk-YGOR3KT7.js +46 -0
- package/dist/chunk-YJD66LTV.js +54 -0
- package/dist/chunk-YJU4ZRQZ.js +1 -0
- package/dist/chunk-YUFCNHZF.js +27 -0
- package/dist/chunk-YUNWZAAD.js +57 -0
- package/dist/chunk-ZFVBFCYV.js +84 -0
- package/dist/chunk-ZXLACKEB.js +8 -0
- package/dist/components/Accordion/index.js +8 -0
- package/dist/components/Alert/index.js +10 -0
- package/dist/components/AlertDialog/index.js +8 -0
- package/dist/components/AppShell/index.js +8 -0
- package/dist/components/AspectRatio/index.js +8 -0
- package/dist/components/Autocomplete/index.js +9 -0
- package/dist/components/Avatar/index.js +11 -0
- package/dist/components/AvatarGroup/index.js +11 -0
- package/dist/components/Badge/index.js +10 -0
- package/dist/components/Banner/index.js +10 -0
- package/dist/components/Box/index.js +8 -0
- package/dist/components/Breadcrumb/index.js +8 -0
- package/dist/components/Button/index.js +10 -0
- package/dist/components/ButtonGroup/index.js +8 -0
- package/dist/components/Callout/index.js +10 -0
- package/dist/components/Card/index.js +11 -0
- package/dist/components/CheckList/index.js +10 -0
- package/dist/components/Checkbox/index.js +8 -0
- package/dist/components/Chip/index.js +10 -0
- package/dist/components/Code/index.js +8 -0
- package/dist/components/Collapsible/index.js +8 -0
- package/dist/components/Combobox/index.js +9 -0
- package/dist/components/CommandPalette/index.js +8 -0
- package/dist/components/Container/index.js +10 -0
- package/dist/components/ContextMenu/index.js +8 -0
- package/dist/components/CountryBadge/index.js +9 -0
- package/dist/components/DataTable/index.js +8 -0
- package/dist/components/DatePicker/index.js +8 -0
- package/dist/components/DateRangePicker/index.js +8 -0
- package/dist/components/Dialog/index.js +9 -0
- package/dist/components/Drawer/index.js +11 -0
- package/dist/components/DropdownMenu/index.js +8 -0
- package/dist/components/EmptyState/index.js +8 -0
- package/dist/components/ErrorState/index.js +8 -0
- package/dist/components/EyebrowChip/index.js +8 -0
- package/dist/components/FileUpload/index.js +8 -0
- package/dist/components/FilterChip/index.js +8 -0
- package/dist/components/Flag/index.js +9 -0
- package/dist/components/Flex/index.js +8 -0
- package/dist/components/FormError/index.js +9 -0
- package/dist/components/FormField/index.js +11 -0
- package/dist/components/GradientDivider/index.js +8 -0
- package/dist/components/Grid/index.js +8 -0
- package/dist/components/Heading/index.js +10 -0
- package/dist/components/HelperText/index.js +9 -0
- package/dist/components/HoverCard/index.js +8 -0
- package/dist/components/IconButton/index.js +10 -0
- package/dist/components/Input/index.js +15 -0
- package/dist/components/Kbd/index.js +9 -0
- package/dist/components/KeyboardShortcut/index.js +9 -0
- package/dist/components/Label/index.js +11 -0
- package/dist/components/Link/index.js +10 -0
- package/dist/components/Logo/index.js +10 -0
- package/dist/components/Menubar/index.js +8 -0
- package/dist/components/Motion/index.js +13 -0
- package/dist/components/NavigationMenu/index.js +8 -0
- package/dist/components/NumberInput/index.js +9 -0
- package/dist/components/PageHeader/index.js +8 -0
- package/dist/components/Pagination/index.js +8 -0
- package/dist/components/PasswordInput/index.js +9 -0
- package/dist/components/Popover/index.js +9 -0
- package/dist/components/Progress/index.js +12 -0
- package/dist/components/RadioGroup/index.js +8 -0
- package/dist/components/Rating/index.js +11 -0
- package/dist/components/ScrollArea/index.js +8 -0
- package/dist/components/SearchInput/index.js +9 -0
- package/dist/components/Section/index.js +10 -0
- package/dist/components/SegmentedControl/index.js +8 -0
- package/dist/components/Select/index.js +8 -0
- package/dist/components/Separator/index.js +10 -0
- package/dist/components/Sidebar/index.js +8 -0
- package/dist/components/Skeleton/index.js +10 -0
- package/dist/components/Slider/index.js +8 -0
- package/dist/components/Spinner/index.js +10 -0
- package/dist/components/Stack/index.js +8 -0
- package/dist/components/StatusPill/index.js +10 -0
- package/dist/components/Switch/index.js +8 -0
- package/dist/components/Table/index.js +8 -0
- package/dist/components/Tabs/index.js +8 -0
- package/dist/components/Tag/index.js +10 -0
- package/dist/components/Text/index.js +10 -0
- package/dist/components/TextGradient/index.js +8 -0
- package/dist/components/Textarea/index.js +10 -0
- package/dist/components/ThemeProvider/index.js +10 -0
- package/dist/components/Toast/index.js +14 -0
- package/dist/components/Toggle/index.js +11 -0
- package/dist/components/ToggleGroup/index.js +9 -0
- package/dist/components/Toolbar/index.js +8 -0
- package/dist/components/Tooltip/index.js +16 -0
- package/dist/components/TopNav/index.js +9 -0
- package/dist/components/VisuallyHidden/index.js +7 -0
- package/dist/index.d.ts +28 -11
- package/dist/index.js +479 -5896
- package/package.json +12 -12
- package/dist/index.cjs +0 -6112
- package/dist/index.d.cts +0 -1245
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Alert/Alert.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var alertVariants = cva(
|
|
11
|
+
[
|
|
12
|
+
"relative flex gap-3 rounded-lg border-l-4 p-4",
|
|
13
|
+
"w-full"
|
|
14
|
+
],
|
|
15
|
+
{
|
|
16
|
+
variants: {
|
|
17
|
+
tone: {
|
|
18
|
+
neutral: "bg-[var(--color-bg-subtle)] border-l-[var(--color-neutral-500)] text-[var(--color-text-primary)]",
|
|
19
|
+
info: "bg-[var(--color-semantic-info-default)]/8 border-l-[var(--color-semantic-info-default)] text-[var(--color-semantic-info-default)]",
|
|
20
|
+
success: "bg-[var(--color-semantic-success-default)]/8 border-l-[var(--color-semantic-success-default)] text-[var(--color-semantic-success-default)]",
|
|
21
|
+
warning: "bg-[var(--color-semantic-warning-default)]/8 border-l-[var(--color-semantic-warning-default)] text-[var(--color-semantic-warning-default)]",
|
|
22
|
+
danger: "bg-[var(--color-semantic-error-default)]/8 border-l-[var(--color-semantic-error-default)] text-[var(--color-semantic-error-default)]",
|
|
23
|
+
leap: "bg-[var(--color-leap-500)]/8 border-l-[var(--color-leap-500)] text-[var(--color-leap-700)]",
|
|
24
|
+
bookub: "bg-[var(--color-bookub-500)]/8 border-l-[var(--color-bookub-500)] text-[var(--color-bookub-700)]",
|
|
25
|
+
payub: "bg-[var(--color-payub-500)]/8 border-l-[var(--color-payub-500)] text-[var(--color-payub-700)]",
|
|
26
|
+
founderub: "bg-[var(--color-founderub-500)]/8 border-l-[var(--color-founderub-500)] text-[var(--color-founderub-700)]"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
tone: "neutral"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
var Alert = React.forwardRef(
|
|
35
|
+
({
|
|
36
|
+
className,
|
|
37
|
+
tone = "neutral",
|
|
38
|
+
title,
|
|
39
|
+
icon,
|
|
40
|
+
action,
|
|
41
|
+
onClose,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
}, ref) => {
|
|
45
|
+
return /* @__PURE__ */ jsxs(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref,
|
|
49
|
+
role: "alert",
|
|
50
|
+
className: cn(alertVariants({ tone }), className),
|
|
51
|
+
"data-tone": tone,
|
|
52
|
+
...props,
|
|
53
|
+
children: [
|
|
54
|
+
icon && /* @__PURE__ */ jsx("span", { className: "shrink-0 mt-0.5 inline-flex items-start", "aria-hidden": "true", children: icon }),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
56
|
+
title && /* @__PURE__ */ jsx("p", { className: "font-semibold text-sm mb-0.5", children: title }),
|
|
57
|
+
children && /* @__PURE__ */ jsx("div", { className: "text-sm opacity-90", children }),
|
|
58
|
+
action && /* @__PURE__ */ jsx("div", { className: "mt-2", children: action })
|
|
59
|
+
] }),
|
|
60
|
+
onClose && /* @__PURE__ */ jsx(
|
|
61
|
+
"button",
|
|
62
|
+
{
|
|
63
|
+
type: "button",
|
|
64
|
+
"aria-label": "Dismiss alert",
|
|
65
|
+
onClick: onClose,
|
|
66
|
+
className: cn(
|
|
67
|
+
"shrink-0 inline-flex items-center justify-center rounded-md w-6 h-6 opacity-60 hover:opacity-100 transition-opacity",
|
|
68
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]"
|
|
69
|
+
),
|
|
70
|
+
children: /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M10 2L2 10M2 2l8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) })
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
Alert.displayName = "Alert";
|
|
79
|
+
|
|
80
|
+
export {
|
|
81
|
+
alertVariants,
|
|
82
|
+
Alert
|
|
83
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
glassSurfaceClass
|
|
4
|
+
} from "./chunk-ROZVVWPV.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-AT6RPKU3.js";
|
|
8
|
+
|
|
9
|
+
// src/components/Dialog/Dialog.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var Root2 = RadixDialog.Root;
|
|
14
|
+
var Trigger2 = RadixDialog.Trigger;
|
|
15
|
+
var Portal2 = RadixDialog.Portal;
|
|
16
|
+
var Close2 = RadixDialog.Close;
|
|
17
|
+
var Overlay2 = React.forwardRef(
|
|
18
|
+
function DialogOverlay({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
RadixDialog.Overlay,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: cn(
|
|
24
|
+
"fixed inset-0 z-[var(--z-modal)] bg-black/50 backdrop-blur-sm",
|
|
25
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
26
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
27
|
+
className
|
|
28
|
+
),
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
Overlay2.displayName = "Dialog.Overlay";
|
|
35
|
+
var Content2 = React.forwardRef(
|
|
36
|
+
function DialogContent({ className, size = "md", surface = "solid", children, ...props }, ref) {
|
|
37
|
+
const sizeMap = {
|
|
38
|
+
sm: "max-w-sm",
|
|
39
|
+
md: "max-w-lg",
|
|
40
|
+
lg: "max-w-2xl",
|
|
41
|
+
xl: "max-w-4xl",
|
|
42
|
+
full: "max-w-[calc(100vw-2rem)]"
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
RadixDialog.Content,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
className: cn(
|
|
49
|
+
"fixed left-1/2 top-1/2 z-[var(--z-modal)] w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
|
|
50
|
+
"rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-default)] shadow-xl",
|
|
51
|
+
"max-h-[90vh] overflow-y-auto p-6 focus:outline-none",
|
|
52
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
53
|
+
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
54
|
+
"data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
55
|
+
"data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
56
|
+
"data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]",
|
|
57
|
+
sizeMap[size],
|
|
58
|
+
surface === "glass" && glassSurfaceClass,
|
|
59
|
+
className
|
|
60
|
+
),
|
|
61
|
+
"data-material": surface === "glass" ? "glass" : void 0,
|
|
62
|
+
...props,
|
|
63
|
+
children
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
Content2.displayName = "Dialog.Content";
|
|
69
|
+
var Title2 = React.forwardRef(
|
|
70
|
+
function DialogTitle({ className, ...props }, ref) {
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
RadixDialog.Title,
|
|
73
|
+
{
|
|
74
|
+
ref,
|
|
75
|
+
className: cn("text-lg font-semibold text-[var(--color-text-primary)]", className),
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
Title2.displayName = "Dialog.Title";
|
|
82
|
+
var Description2 = React.forwardRef(
|
|
83
|
+
function DialogDescription({ className, ...props }, ref) {
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
85
|
+
RadixDialog.Description,
|
|
86
|
+
{
|
|
87
|
+
ref,
|
|
88
|
+
className: cn("mt-1 text-sm text-[var(--color-text-muted)]", className),
|
|
89
|
+
...props
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
Description2.displayName = "Dialog.Description";
|
|
95
|
+
var Header = React.forwardRef(
|
|
96
|
+
function DialogHeader({ className, ...props }, ref) {
|
|
97
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("mb-4 flex flex-col gap-1", className), ...props });
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
Header.displayName = "Dialog.Header";
|
|
101
|
+
var Footer = React.forwardRef(
|
|
102
|
+
function DialogFooter({ className, ...props }, ref) {
|
|
103
|
+
return /* @__PURE__ */ jsx("div", { ref, className: cn("mt-6 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
Footer.displayName = "Dialog.Footer";
|
|
107
|
+
var Dialog = {
|
|
108
|
+
Root: Root2,
|
|
109
|
+
Trigger: Trigger2,
|
|
110
|
+
Portal: Portal2,
|
|
111
|
+
Overlay: Overlay2,
|
|
112
|
+
Content: Content2,
|
|
113
|
+
Close: Close2,
|
|
114
|
+
Title: Title2,
|
|
115
|
+
Description: Description2,
|
|
116
|
+
Header,
|
|
117
|
+
Footer
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export {
|
|
121
|
+
Dialog
|
|
122
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/ContextMenu/ContextMenu.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixContextMenu from "@radix-ui/react-context-menu";
|
|
9
|
+
import { Check, ChevronRight } from "@nexub/icons";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
var Root2 = RadixContextMenu.Root;
|
|
12
|
+
var Trigger2 = RadixContextMenu.Trigger;
|
|
13
|
+
var Portal2 = RadixContextMenu.Portal;
|
|
14
|
+
var Group2 = RadixContextMenu.Group;
|
|
15
|
+
var RadioGroup2 = RadixContextMenu.RadioGroup;
|
|
16
|
+
var Sub2 = RadixContextMenu.Sub;
|
|
17
|
+
var Content2 = React.forwardRef(
|
|
18
|
+
function ContextMenuContent({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
RadixContextMenu.Content,
|
|
21
|
+
{
|
|
22
|
+
ref,
|
|
23
|
+
className: cn(
|
|
24
|
+
"z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
|
|
25
|
+
"bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
|
|
26
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
27
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
28
|
+
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
29
|
+
className
|
|
30
|
+
),
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
Content2.displayName = "ContextMenu.Content";
|
|
37
|
+
var itemBaseClasses = cn(
|
|
38
|
+
"relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none",
|
|
39
|
+
"transition-colors hover:bg-[var(--color-bg-subtle)] focus:bg-[var(--color-bg-subtle)]",
|
|
40
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50"
|
|
41
|
+
);
|
|
42
|
+
var Item2 = React.forwardRef(
|
|
43
|
+
function ContextMenuItem({ className, ...props }, ref) {
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
RadixContextMenu.Item,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
className: cn(itemBaseClasses, className),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
Item2.displayName = "ContextMenu.Item";
|
|
55
|
+
var Label2 = React.forwardRef(
|
|
56
|
+
function ContextMenuLabel({ className, ...props }, ref) {
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
RadixContextMenu.Label,
|
|
59
|
+
{
|
|
60
|
+
ref,
|
|
61
|
+
className: cn(
|
|
62
|
+
"px-2 py-1 text-xs font-semibold text-[var(--color-text-muted)]",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
Label2.displayName = "ContextMenu.Label";
|
|
71
|
+
var Separator2 = React.forwardRef(
|
|
72
|
+
function ContextMenuSeparator({ className, ...props }, ref) {
|
|
73
|
+
return /* @__PURE__ */ jsx(
|
|
74
|
+
RadixContextMenu.Separator,
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
|
|
78
|
+
...props
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
Separator2.displayName = "ContextMenu.Separator";
|
|
84
|
+
var CheckboxItem2 = React.forwardRef(function ContextMenuCheckboxItem({ className, children, checked, ...props }, ref) {
|
|
85
|
+
return /* @__PURE__ */ jsxs(
|
|
86
|
+
RadixContextMenu.CheckboxItem,
|
|
87
|
+
{
|
|
88
|
+
ref,
|
|
89
|
+
className: cn(itemBaseClasses, "pl-8", className),
|
|
90
|
+
checked,
|
|
91
|
+
...props,
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixContextMenu.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
94
|
+
children
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
CheckboxItem2.displayName = "ContextMenu.CheckboxItem";
|
|
100
|
+
var RadioItem2 = React.forwardRef(function ContextMenuRadioItem({ className, children, ...props }, ref) {
|
|
101
|
+
return /* @__PURE__ */ jsxs(
|
|
102
|
+
RadixContextMenu.RadioItem,
|
|
103
|
+
{
|
|
104
|
+
ref,
|
|
105
|
+
className: cn(itemBaseClasses, "pl-8", className),
|
|
106
|
+
...props,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-4 w-4 items-center justify-center", children: /* @__PURE__ */ jsx(RadixContextMenu.ItemIndicator, { children: /* @__PURE__ */ jsx("svg", { className: "h-2 w-2 fill-current", viewBox: "0 0 8 8", "aria-hidden": "true", children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" }) }) }) }),
|
|
109
|
+
children
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
});
|
|
114
|
+
RadioItem2.displayName = "ContextMenu.RadioItem";
|
|
115
|
+
var SubTrigger2 = React.forwardRef(function ContextMenuSubTrigger({ className, children, ...props }, ref) {
|
|
116
|
+
return /* @__PURE__ */ jsxs(
|
|
117
|
+
RadixContextMenu.SubTrigger,
|
|
118
|
+
{
|
|
119
|
+
ref,
|
|
120
|
+
className: cn(
|
|
121
|
+
itemBaseClasses,
|
|
122
|
+
"data-[state=open]:bg-[var(--color-bg-subtle)]",
|
|
123
|
+
className
|
|
124
|
+
),
|
|
125
|
+
...props,
|
|
126
|
+
children: [
|
|
127
|
+
children,
|
|
128
|
+
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto h-4 w-4" })
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
});
|
|
133
|
+
SubTrigger2.displayName = "ContextMenu.SubTrigger";
|
|
134
|
+
var SubContent2 = React.forwardRef(function ContextMenuSubContent({ className, ...props }, ref) {
|
|
135
|
+
return /* @__PURE__ */ jsx(
|
|
136
|
+
RadixContextMenu.SubContent,
|
|
137
|
+
{
|
|
138
|
+
ref,
|
|
139
|
+
className: cn(
|
|
140
|
+
"z-[var(--z-popover)] min-w-48 rounded-lg border border-[var(--color-border-default)]",
|
|
141
|
+
"bg-[var(--color-bg-default)] p-1 shadow-md outline-none",
|
|
142
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
143
|
+
"data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
144
|
+
"data-[state=open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
145
|
+
"data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",
|
|
146
|
+
"data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2",
|
|
147
|
+
className
|
|
148
|
+
),
|
|
149
|
+
...props
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
});
|
|
153
|
+
SubContent2.displayName = "ContextMenu.SubContent";
|
|
154
|
+
var ContextMenu = {
|
|
155
|
+
Root: Root2,
|
|
156
|
+
Trigger: Trigger2,
|
|
157
|
+
Portal: Portal2,
|
|
158
|
+
Content: Content2,
|
|
159
|
+
Item: Item2,
|
|
160
|
+
Group: Group2,
|
|
161
|
+
Label: Label2,
|
|
162
|
+
Separator: Separator2,
|
|
163
|
+
CheckboxItem: CheckboxItem2,
|
|
164
|
+
RadioGroup: RadioGroup2,
|
|
165
|
+
RadioItem: RadioItem2,
|
|
166
|
+
Sub: Sub2,
|
|
167
|
+
SubTrigger: SubTrigger2,
|
|
168
|
+
SubContent: SubContent2
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export {
|
|
172
|
+
ContextMenu
|
|
173
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Combobox/Combobox.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Command } from "cmdk";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var Root = React.forwardRef(
|
|
11
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12
|
+
Command,
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
className: cn(
|
|
16
|
+
"flex h-full w-full flex-col overflow-hidden rounded-lg bg-[var(--color-bg-default)] text-[var(--color-text-primary)]",
|
|
17
|
+
className
|
|
18
|
+
),
|
|
19
|
+
...props
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
Root.displayName = "Combobox.Root";
|
|
24
|
+
var Input = React.forwardRef(
|
|
25
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { className: "flex items-center border-b border-[var(--color-border-default)] px-3", children: /* @__PURE__ */ jsx(
|
|
26
|
+
Command.Input,
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
className: cn(
|
|
30
|
+
"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-[var(--color-text-muted)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
31
|
+
className
|
|
32
|
+
),
|
|
33
|
+
...props
|
|
34
|
+
}
|
|
35
|
+
) })
|
|
36
|
+
);
|
|
37
|
+
Input.displayName = "Combobox.Input";
|
|
38
|
+
var List = React.forwardRef(
|
|
39
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
40
|
+
Command.List,
|
|
41
|
+
{
|
|
42
|
+
ref,
|
|
43
|
+
className: cn("max-h-64 overflow-y-auto overflow-x-hidden p-1", className),
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
);
|
|
48
|
+
List.displayName = "Combobox.List";
|
|
49
|
+
var Empty = React.forwardRef(
|
|
50
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
51
|
+
Command.Empty,
|
|
52
|
+
{
|
|
53
|
+
ref,
|
|
54
|
+
className: cn("py-6 text-center text-sm text-[var(--color-text-muted)]", className),
|
|
55
|
+
...props
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
Empty.displayName = "Combobox.Empty";
|
|
60
|
+
var Group = React.forwardRef(
|
|
61
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
62
|
+
Command.Group,
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
className: cn(
|
|
66
|
+
"overflow-hidden p-1 text-[var(--color-text-primary)] [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)]",
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
Group.displayName = "Combobox.Group";
|
|
74
|
+
var Item = React.forwardRef(
|
|
75
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
76
|
+
Command.Item,
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
className: cn(
|
|
80
|
+
"relative flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none",
|
|
81
|
+
"aria-selected:bg-[var(--color-bg-subtle)] aria-selected:text-[var(--color-text-primary)]",
|
|
82
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
83
|
+
className
|
|
84
|
+
),
|
|
85
|
+
...props
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
);
|
|
89
|
+
Item.displayName = "Combobox.Item";
|
|
90
|
+
var Separator = React.forwardRef(
|
|
91
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
92
|
+
Command.Separator,
|
|
93
|
+
{
|
|
94
|
+
ref,
|
|
95
|
+
className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
);
|
|
100
|
+
Separator.displayName = "Combobox.Separator";
|
|
101
|
+
var Combobox = { Root, Input, List, Empty, Group, Item, Separator };
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
Combobox
|
|
105
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Switch/Switch.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
9
|
+
import { cva } from "class-variance-authority";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var switchVariants = cva(
|
|
12
|
+
"peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--color-brand-primary-500)] data-[state=unchecked]:bg-[var(--color-border-default)]",
|
|
13
|
+
{
|
|
14
|
+
variants: {
|
|
15
|
+
size: {
|
|
16
|
+
sm: "h-4 w-7",
|
|
17
|
+
md: "h-5 w-9",
|
|
18
|
+
lg: "h-6 w-11"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { size: "md" }
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
var thumbVariants = cva(
|
|
25
|
+
"pointer-events-none block rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=unchecked]:translate-x-0",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
size: {
|
|
29
|
+
sm: "h-3 w-3 data-[state=checked]:translate-x-3",
|
|
30
|
+
md: "h-4 w-4 data-[state=checked]:translate-x-4",
|
|
31
|
+
lg: "h-5 w-5 data-[state=checked]:translate-x-5"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: { size: "md" }
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
var Switch = React.forwardRef(
|
|
38
|
+
({ className, size, ...props }, ref) => /* @__PURE__ */ jsx(RadixSwitch.Root, { ref, className: cn(switchVariants({ size }), className), ...props, children: /* @__PURE__ */ jsx(RadixSwitch.Thumb, { className: cn(thumbVariants({ size })) }) })
|
|
39
|
+
);
|
|
40
|
+
Switch.displayName = "Switch";
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
Switch
|
|
44
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Breadcrumb/Breadcrumb.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { ChevronRight, MoreHorizontal } from "@nexub/icons";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Root = React.forwardRef(
|
|
11
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", className: cn("", className), ...props })
|
|
12
|
+
);
|
|
13
|
+
Root.displayName = "Breadcrumb.Root";
|
|
14
|
+
var List = React.forwardRef(
|
|
15
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
"ol",
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: cn(
|
|
20
|
+
"flex flex-wrap items-center gap-1.5 text-sm text-[var(--color-text-muted)] sm:gap-2.5",
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
...props
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
);
|
|
27
|
+
List.displayName = "Breadcrumb.List";
|
|
28
|
+
var Item = React.forwardRef(
|
|
29
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", { ref, className: cn("inline-flex items-center gap-1.5", className), ...props })
|
|
30
|
+
);
|
|
31
|
+
Item.displayName = "Breadcrumb.Item";
|
|
32
|
+
var Link = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
33
|
+
"a",
|
|
34
|
+
{
|
|
35
|
+
ref,
|
|
36
|
+
className: cn("transition-colors hover:text-[var(--color-text-primary)]", className),
|
|
37
|
+
...props,
|
|
38
|
+
children
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
Link.displayName = "Breadcrumb.Link";
|
|
42
|
+
var Page = React.forwardRef(
|
|
43
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
ref,
|
|
47
|
+
role: "link",
|
|
48
|
+
"aria-current": "page",
|
|
49
|
+
"aria-disabled": "true",
|
|
50
|
+
className: cn("font-normal text-[var(--color-text-primary)]", className),
|
|
51
|
+
...props
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
);
|
|
55
|
+
Page.displayName = "Breadcrumb.Page";
|
|
56
|
+
var Separator = ({
|
|
57
|
+
children,
|
|
58
|
+
className
|
|
59
|
+
}) => /* @__PURE__ */ jsx(
|
|
60
|
+
"li",
|
|
61
|
+
{
|
|
62
|
+
role: "presentation",
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
|
|
65
|
+
children: children ?? /* @__PURE__ */ jsx(ChevronRight, { "aria-hidden": "true" })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
Separator.displayName = "Breadcrumb.Separator";
|
|
69
|
+
var Ellipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs(
|
|
70
|
+
"span",
|
|
71
|
+
{
|
|
72
|
+
role: "presentation",
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
75
|
+
...props,
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ jsx(MoreHorizontal, { size: "sm", "aria-hidden": "true" }),
|
|
78
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
Ellipsis.displayName = "Breadcrumb.Ellipsis";
|
|
83
|
+
var Breadcrumb = { Root, List, Item, Link, Page, Separator, Ellipsis };
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
Breadcrumb
|
|
87
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Tooltip/Tooltip.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var Provider2 = RadixTooltip.Provider;
|
|
11
|
+
var Root2 = RadixTooltip.Root;
|
|
12
|
+
var Trigger2 = RadixTooltip.Trigger;
|
|
13
|
+
var Content2 = React.forwardRef(
|
|
14
|
+
function TooltipContent({ className, sideOffset = 4, ...props }, ref) {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
RadixTooltip.Content,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
sideOffset,
|
|
20
|
+
className: cn(
|
|
21
|
+
"z-[1500] rounded bg-[var(--color-neutral-900)] px-2 py-1 text-xs text-white",
|
|
22
|
+
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out",
|
|
23
|
+
"data-[state=delayed-open]:fade-in-0 data-[state=closed]:fade-out-0",
|
|
24
|
+
"data-[state=delayed-open]:zoom-in-95 data-[state=closed]:zoom-out-95",
|
|
25
|
+
"data-[side=bottom]:slide-in-from-top-1 data-[side=top]:slide-in-from-bottom-1",
|
|
26
|
+
"data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1",
|
|
27
|
+
className
|
|
28
|
+
),
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
Content2.displayName = "Tooltip.Content";
|
|
35
|
+
function Tooltip({ label, side = "top", delayDuration = 400, children }) {
|
|
36
|
+
return /* @__PURE__ */ jsxs(Root2, { delayDuration, children: [
|
|
37
|
+
/* @__PURE__ */ jsx(Trigger2, { asChild: true, children }),
|
|
38
|
+
/* @__PURE__ */ jsx(RadixTooltip.Portal, { children: /* @__PURE__ */ jsx(Content2, { side, children: label }) })
|
|
39
|
+
] });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
Provider2 as Provider,
|
|
44
|
+
Root2 as Root,
|
|
45
|
+
Trigger2 as Trigger,
|
|
46
|
+
Content2 as Content,
|
|
47
|
+
Tooltip
|
|
48
|
+
};
|