@vuer-ai/vuer-uikit 0.0.3 → 0.0.4
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-KVDEBKWR.mjs → chunk-25GQKTNF.mjs} +0 -1
- package/dist/{chunk-JOBQTBEM.mjs → chunk-5GPQ7U5B.mjs} +3 -2
- package/dist/{chunk-KAPV3EZO.mjs → chunk-66JQXJEV.mjs} +2 -1
- package/dist/{chunk-WI2J7NIV.mjs → chunk-6ILSFDR5.mjs} +1 -1
- package/dist/{chunk-FYEZTS4S.mjs → chunk-6L4KPPOD.mjs} +1 -1
- package/dist/chunk-7A7VNE3J.mjs +31 -0
- package/dist/{chunk-SUU4Z6E5.mjs → chunk-7SXCVFSA.mjs} +1 -1
- package/dist/{chunk-3HXPIWL3.js → chunk-7V4ELMOH.js} +3 -2
- package/dist/{chunk-5JP4AZ4C.js → chunk-7WUQTWQX.js} +2 -1
- package/dist/{chunk-LBFO3QAA.js → chunk-A2Z57NAA.js} +1 -1
- package/dist/{chunk-5U4NWZMT.mjs → chunk-ATEHWT2R.mjs} +3 -3
- package/dist/{chunk-JIXJTLEO.js → chunk-B5EMQBVL.js} +1 -1
- package/dist/{chunk-CFXL2XYO.mjs → chunk-COFRS37Z.mjs} +7 -9
- package/dist/chunk-ECWCQWV5.js +148 -0
- package/dist/{chunk-ZYBSCTBR.js → chunk-ENZI5WM7.js} +0 -1
- package/dist/chunk-FVT46HEE.js +21 -0
- package/dist/chunk-FYS6YECN.js +33 -0
- package/dist/{chunk-DQGTWUID.js → chunk-G7XNQVPB.js} +4 -3
- package/dist/{chunk-7IYL2AR4.js → chunk-GSXXTAQ3.js} +7 -9
- package/dist/{chunk-263CMARJ.mjs → chunk-IPKCIMU4.mjs} +4 -3
- package/dist/{chunk-QNTUEKYQ.mjs → chunk-J7PTSP4Q.mjs} +1 -1
- package/dist/{chunk-RPXWKB6F.js → chunk-KQHNQQUZ.js} +3 -3
- package/dist/{chunk-SDN2OTHS.js → chunk-LD7Y34QT.js} +1 -0
- package/dist/chunk-LVSI4HYF.mjs +409 -0
- package/dist/{chunk-ZKYQYCKN.mjs → chunk-M3KBBKQR.mjs} +4 -4
- package/dist/chunk-NN7R5DNL.mjs +119 -0
- package/dist/{chunk-I6VKLSAJ.js → chunk-OTDY2E2A.js} +3 -3
- package/dist/{chunk-GA2JCN3F.mjs → chunk-QOUX33X5.mjs} +5 -5
- package/dist/{chunk-SZU2TX5H.js → chunk-QZASHJNJ.js} +1 -1
- package/dist/chunk-R6XNT4PN.js +431 -0
- package/dist/{chunk-JZ7V43ZL.js → chunk-RACVRWME.js} +7 -7
- package/dist/{chunk-CN6ISLZA.js → chunk-SI56IQWH.js} +2 -2
- package/dist/{chunk-SKWTWHB7.mjs → chunk-X2QENXCS.mjs} +1 -0
- package/dist/{chunk-J4RFFBDJ.mjs → chunk-XPNUQSKQ.mjs} +2 -2
- package/dist/highlight-cursor/cursor-provider.js +2 -2
- package/dist/highlight-cursor/cursor-provider.mjs +1 -1
- package/dist/highlight-cursor/enhanced-components.js +11 -11
- package/dist/highlight-cursor/enhanced-components.mjs +6 -6
- package/dist/highlight-cursor/index.js +17 -17
- package/dist/highlight-cursor/index.mjs +7 -7
- package/dist/highlight-cursor/tabs-cursor-context.js +3 -3
- package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -1
- package/dist/index.css +34 -14
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +144 -101
- package/dist/index.mjs +19 -16
- package/dist/styles/theme.css +6 -0
- package/dist/styles/toast.css +28 -14
- package/dist/styles/variables.css +4 -0
- package/dist/ui/card.js +8 -8
- package/dist/ui/card.mjs +1 -1
- package/dist/ui/dropdown.js +16 -16
- package/dist/ui/dropdown.mjs +1 -1
- package/dist/ui/index.d.mts +5 -2
- package/dist/ui/index.d.ts +5 -2
- package/dist/ui/index.js +131 -88
- package/dist/ui/index.mjs +16 -13
- package/dist/ui/input-numbers.js +3 -3
- package/dist/ui/input-numbers.mjs +2 -2
- package/dist/ui/input.js +3 -3
- package/dist/ui/input.mjs +1 -1
- package/dist/ui/layout.d.mts +12 -0
- package/dist/ui/layout.d.ts +12 -0
- package/dist/ui/layout.js +12 -0
- package/dist/ui/layout.mjs +3 -0
- package/dist/ui/modal.js +11 -11
- package/dist/ui/modal.mjs +1 -1
- package/dist/ui/popover.js +5 -5
- package/dist/ui/popover.mjs +1 -1
- package/dist/ui/select.js +11 -11
- package/dist/ui/select.mjs +1 -1
- package/dist/ui/sheet.d.mts +16 -0
- package/dist/ui/sheet.d.ts +16 -0
- package/dist/ui/sheet.js +39 -0
- package/dist/ui/sheet.mjs +2 -0
- package/dist/ui/tabs.js +6 -6
- package/dist/ui/tabs.mjs +2 -2
- package/dist/ui/textarea.js +2 -2
- package/dist/ui/textarea.mjs +1 -1
- package/dist/ui/toast.js +3 -3
- package/dist/ui/toast.mjs +1 -1
- package/dist/ui/tooltip.js +5 -5
- package/dist/ui/tooltip.mjs +1 -1
- package/dist/ui/tree-view.d.mts +27 -0
- package/dist/ui/tree-view.d.ts +27 -0
- package/dist/ui/tree-view.js +11 -0
- package/dist/ui/tree-view.mjs +2 -0
- package/package.json +2 -1
- package/dist/chunk-NA7TVYOP.js +0 -21
- /package/dist/{chunk-WK3M4X72.js → chunk-HUQZOPYD.js} +0 -0
- /package/dist/{chunk-ZCYBA6YN.mjs → chunk-S2F2GRDB.mjs} +0 -0
|
@@ -41,7 +41,6 @@ var InputRoot = forwardRef(function InputRoot2({ style, className, side, childre
|
|
|
41
41
|
"data-input": true,
|
|
42
42
|
className: cn(inputRootVariants({ size, state: disabled ? "disabled" : state }), className),
|
|
43
43
|
onClick: (event) => {
|
|
44
|
-
console.log("onPointerDown", event);
|
|
45
44
|
const target = event.target;
|
|
46
45
|
if (target.closest("input, button, a")) return;
|
|
47
46
|
const input = inputRef.current;
|
|
@@ -6,6 +6,7 @@ var textareaVariants = cva(
|
|
|
6
6
|
[
|
|
7
7
|
"bg-bg-secondary",
|
|
8
8
|
"disabled:bg-bg-tertiary",
|
|
9
|
+
"disabled:text-text-tertiary",
|
|
9
10
|
"disabled:cursor-not-allowed",
|
|
10
11
|
"outline",
|
|
11
12
|
"outline-transparent",
|
|
@@ -20,8 +21,8 @@ var textareaVariants = cva(
|
|
|
20
21
|
{
|
|
21
22
|
variants: {
|
|
22
23
|
state: {
|
|
23
|
-
default: ["hover:
|
|
24
|
-
error: ["
|
|
24
|
+
default: ["hover:bg-bg-tertiary", "focus:bg-bg-quaternary"],
|
|
25
|
+
error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
|
|
25
26
|
},
|
|
26
27
|
size: {
|
|
27
28
|
sm: ["text-sm", "rounded-uk-sm"],
|
|
@@ -118,7 +118,8 @@ function SelectContent({
|
|
|
118
118
|
"overflow-y-auto",
|
|
119
119
|
"rounded-uk-md",
|
|
120
120
|
"shadow-md",
|
|
121
|
-
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]"
|
|
121
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
122
|
+
"liquid:liquid-bg"
|
|
122
123
|
],
|
|
123
124
|
{
|
|
124
125
|
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1": position === "popper"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputRoot, InputSlot } from './chunk-
|
|
1
|
+
import { InputRoot, InputSlot } from './chunk-25GQKTNF.mjs';
|
|
2
2
|
import { cn } from './chunk-HW6SLBO3.mjs';
|
|
3
3
|
import { useGesture } from '@use-gesture/react';
|
|
4
4
|
import { forwardRef, useRef, useCallback } from 'react';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cn } from './chunk-HW6SLBO3.mjs';
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Layout({
|
|
6
|
+
asChild,
|
|
7
|
+
className,
|
|
8
|
+
children,
|
|
9
|
+
align = "start",
|
|
10
|
+
orientation = "horizontal"
|
|
11
|
+
}) {
|
|
12
|
+
const Com = asChild ? Slot : "div";
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
Com,
|
|
15
|
+
{
|
|
16
|
+
className: cn(
|
|
17
|
+
{
|
|
18
|
+
"gap-xs flex flex-col": orientation === "horizontal",
|
|
19
|
+
"gap-xs grid grid-cols-[1fr_2fr] text-center": orientation === "vertical",
|
|
20
|
+
"items-baseline": align === "start",
|
|
21
|
+
"items-center": align === "center",
|
|
22
|
+
"items-end": align === "end"
|
|
23
|
+
},
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
children
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Layout };
|
|
@@ -174,7 +174,7 @@ var CursorProvider = ({
|
|
|
174
174
|
className: `pointer-events-none fixed ${styleClass} ${hoveredElementId ? "" : cursorClassName || ""}`,
|
|
175
175
|
style: {
|
|
176
176
|
...cursorStyleObject,
|
|
177
|
-
backgroundColor: "var(--shadow-
|
|
177
|
+
backgroundColor: "var(--shadow-tertiary)"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
);
|
|
@@ -8,6 +8,7 @@ var textareaVariants = classVarianceAuthority.cva(
|
|
|
8
8
|
[
|
|
9
9
|
"bg-bg-secondary",
|
|
10
10
|
"disabled:bg-bg-tertiary",
|
|
11
|
+
"disabled:text-text-tertiary",
|
|
11
12
|
"disabled:cursor-not-allowed",
|
|
12
13
|
"outline",
|
|
13
14
|
"outline-transparent",
|
|
@@ -22,8 +23,8 @@ var textareaVariants = classVarianceAuthority.cva(
|
|
|
22
23
|
{
|
|
23
24
|
variants: {
|
|
24
25
|
state: {
|
|
25
|
-
default: ["hover:
|
|
26
|
-
error: ["
|
|
26
|
+
default: ["hover:bg-bg-tertiary", "focus:bg-bg-quaternary"],
|
|
27
|
+
error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"]
|
|
27
28
|
},
|
|
28
29
|
size: {
|
|
29
30
|
sm: ["text-sm", "rounded-uk-sm"],
|
|
@@ -140,7 +140,8 @@ function SelectContent({
|
|
|
140
140
|
"overflow-y-auto",
|
|
141
141
|
"rounded-uk-md",
|
|
142
142
|
"shadow-md",
|
|
143
|
-
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]"
|
|
143
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
144
|
+
"liquid:liquid-bg"
|
|
144
145
|
],
|
|
145
146
|
{
|
|
146
147
|
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1": position === "popper"
|
|
@@ -176,7 +176,7 @@ var CursorProvider = ({
|
|
|
176
176
|
className: `pointer-events-none fixed ${styleClass} ${hoveredElementId ? "" : cursorClassName || ""}`,
|
|
177
177
|
style: {
|
|
178
178
|
...cursorStyleObject,
|
|
179
|
-
backgroundColor: "var(--shadow-
|
|
179
|
+
backgroundColor: "var(--shadow-tertiary)"
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
);
|
|
@@ -54,6 +54,7 @@ function TooltipContent({
|
|
|
54
54
|
"w-fit",
|
|
55
55
|
"origin-(--radix-tooltip-content-transform-origin)",
|
|
56
56
|
"text-balance",
|
|
57
|
+
"liquid:liquid-bg",
|
|
57
58
|
className
|
|
58
59
|
),
|
|
59
60
|
...props,
|
|
@@ -62,11 +63,10 @@ function TooltipContent({
|
|
|
62
63
|
/* @__PURE__ */ jsx(
|
|
63
64
|
TooltipPrimitive.Arrow,
|
|
64
65
|
{
|
|
65
|
-
className: "fill-bg-secondary z-50 h-[
|
|
66
|
+
className: "fill-bg-secondary z-50 h-[9px] w-[20px] border-none liquid:liquid-bg",
|
|
66
67
|
style: {
|
|
67
68
|
clipPath: "polygon(50% 100%, 0% 0%, 100% 0%)",
|
|
68
|
-
borderRadius: "1px 1px 0 0"
|
|
69
|
-
transform: "translateY(-5px)"
|
|
69
|
+
borderRadius: "1px 1px 0 0"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
)
|
|
@@ -52,7 +52,8 @@ function DropdownMenuContent({
|
|
|
52
52
|
"overflow-y-auto",
|
|
53
53
|
"rounded-uk-md",
|
|
54
54
|
"shadow-md",
|
|
55
|
-
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]"
|
|
55
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
56
|
+
"liquid:liquid-bg"
|
|
56
57
|
],
|
|
57
58
|
className
|
|
58
59
|
),
|
|
@@ -104,8 +105,7 @@ function DropdownMenuItem({
|
|
|
104
105
|
"select-none",
|
|
105
106
|
"hover:bg-bg-tertiary",
|
|
106
107
|
"data-[disabled]:pointer-events-none",
|
|
107
|
-
"data-[disabled]:text-
|
|
108
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
108
|
+
"data-[disabled]:text-bg-quaternary",
|
|
109
109
|
"[&_svg]:pointer-events-none",
|
|
110
110
|
"[&_svg]:shrink-0",
|
|
111
111
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -146,8 +146,7 @@ function DropdownMenuCheckboxItem({
|
|
|
146
146
|
"select-none",
|
|
147
147
|
"hover:bg-bg-tertiary",
|
|
148
148
|
"data-[disabled]:pointer-events-none",
|
|
149
|
-
"data-[disabled]:text-
|
|
150
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
149
|
+
"data-[disabled]:text-bg-quaternary",
|
|
151
150
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
152
151
|
"[&_svg]:pointer-events-none",
|
|
153
152
|
"[&_svg]:shrink-0"
|
|
@@ -196,8 +195,7 @@ function DropdownMenuRadioItem({
|
|
|
196
195
|
"last:mb-0",
|
|
197
196
|
"text-xs",
|
|
198
197
|
"data-[disabled]:pointer-events-none",
|
|
199
|
-
"data-[disabled]:text-
|
|
200
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
198
|
+
"data-[disabled]:text-bg-quaternary",
|
|
201
199
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
202
200
|
"[&_svg]:pointer-events-none",
|
|
203
201
|
"[&_svg]:shrink-0"
|
|
@@ -282,8 +280,7 @@ function DropdownMenuSubTrigger({
|
|
|
282
280
|
"hover:bg-bg-tertiary",
|
|
283
281
|
"data-[state=open]:bg-bg-tertiary",
|
|
284
282
|
"data-[disabled]:pointer-events-none",
|
|
285
|
-
"data-[disabled]:text-
|
|
286
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
283
|
+
"data-[disabled]:text-bg-quaternary",
|
|
287
284
|
"[&_svg]:pointer-events-none",
|
|
288
285
|
"[&_svg]:shrink-0",
|
|
289
286
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -329,6 +326,7 @@ function DropdownMenuSubContent({
|
|
|
329
326
|
"rounded-uk-md",
|
|
330
327
|
"shadow-md",
|
|
331
328
|
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
329
|
+
"liquid:liquid-bg",
|
|
332
330
|
className
|
|
333
331
|
),
|
|
334
332
|
...props
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var SheetPrimitive = require('@radix-ui/react-dialog');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var SheetPrimitive__namespace = /*#__PURE__*/_interopNamespace(SheetPrimitive);
|
|
27
|
+
|
|
28
|
+
function Sheet({ ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Root, { "data-slot": "sheet", ...props });
|
|
30
|
+
}
|
|
31
|
+
function SheetTrigger({
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
35
|
+
}
|
|
36
|
+
function SheetClose({
|
|
37
|
+
...props
|
|
38
|
+
}) {
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Close, { "data-slot": "sheet-close", className: chunkUWO6RBCE_js.cn("focus:outline-none focus:ring-0"), ...props });
|
|
40
|
+
}
|
|
41
|
+
function SheetPortal({
|
|
42
|
+
...props
|
|
43
|
+
}) {
|
|
44
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SheetPrimitive__namespace.Portal, { "data-slot": "sheet-portal", ...props });
|
|
45
|
+
}
|
|
46
|
+
function SheetOverlay({
|
|
47
|
+
className,
|
|
48
|
+
...props
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
51
|
+
SheetPrimitive__namespace.Overlay,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "sheet-overlay",
|
|
54
|
+
className: chunkUWO6RBCE_js.cn(
|
|
55
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-bg-primary/50",
|
|
56
|
+
className
|
|
57
|
+
),
|
|
58
|
+
...props
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
function SheetContent({
|
|
63
|
+
className,
|
|
64
|
+
children,
|
|
65
|
+
side = "right",
|
|
66
|
+
...props
|
|
67
|
+
}) {
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
|
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
|
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
71
|
+
SheetPrimitive__namespace.Content,
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "sheet-content",
|
|
74
|
+
className: chunkUWO6RBCE_js.cn(
|
|
75
|
+
"liquid:liquid-bg bg-bg-primary data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 p-xl",
|
|
76
|
+
side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-[340px]",
|
|
77
|
+
side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-[340px]",
|
|
78
|
+
side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",
|
|
79
|
+
side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",
|
|
80
|
+
className
|
|
81
|
+
),
|
|
82
|
+
...props,
|
|
83
|
+
children: [
|
|
84
|
+
children,
|
|
85
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SheetPrimitive__namespace.Close, { className: "text-icon-primary hover:text-icon-highlight absolute top-4 right-4 disabled:pointer-events-none", children: [
|
|
86
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { className: "size-4" }),
|
|
87
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
|
|
88
|
+
] })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] });
|
|
93
|
+
}
|
|
94
|
+
function SheetHeader({ className, ...props }) {
|
|
95
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
"data-slot": "sheet-header",
|
|
99
|
+
className: chunkUWO6RBCE_js.cn("flex flex-col gap-md pb-xl", className),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function SheetFooter({ className, ...props }) {
|
|
105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "sheet-footer",
|
|
109
|
+
className: chunkUWO6RBCE_js.cn("mt-auto flex flex-col gap-lg pt-xl", className),
|
|
110
|
+
...props
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
function SheetTitle({
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
}) {
|
|
118
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
SheetPrimitive__namespace.Title,
|
|
120
|
+
{
|
|
121
|
+
"data-slot": "sheet-title",
|
|
122
|
+
className: chunkUWO6RBCE_js.cn("text-[14px] text-text-highlight font-medium", className),
|
|
123
|
+
...props
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
function SheetDescription({
|
|
128
|
+
className,
|
|
129
|
+
...props
|
|
130
|
+
}) {
|
|
131
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
SheetPrimitive__namespace.Description,
|
|
133
|
+
{
|
|
134
|
+
"data-slot": "sheet-description",
|
|
135
|
+
className: chunkUWO6RBCE_js.cn("text-[12px] text-text-secondary", className),
|
|
136
|
+
...props
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
exports.Sheet = Sheet;
|
|
142
|
+
exports.SheetClose = SheetClose;
|
|
143
|
+
exports.SheetContent = SheetContent;
|
|
144
|
+
exports.SheetDescription = SheetDescription;
|
|
145
|
+
exports.SheetFooter = SheetFooter;
|
|
146
|
+
exports.SheetHeader = SheetHeader;
|
|
147
|
+
exports.SheetTitle = SheetTitle;
|
|
148
|
+
exports.SheetTrigger = SheetTrigger;
|
|
@@ -43,7 +43,6 @@ var InputRoot = react.forwardRef(function InputRoot2({ style, className, side, c
|
|
|
43
43
|
"data-input": true,
|
|
44
44
|
className: chunkUWO6RBCE_js.cn(inputRootVariants({ size, state: disabled ? "disabled" : state }), className),
|
|
45
45
|
onClick: (event) => {
|
|
46
|
-
console.log("onPointerDown", event);
|
|
47
46
|
const target = event.target;
|
|
48
47
|
if (target.closest("input, button, a")) return;
|
|
49
48
|
const input = inputRef.current;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRACVRWME_js = require('./chunk-RACVRWME.js');
|
|
4
|
+
var chunk7V4ELMOH_js = require('./chunk-7V4ELMOH.js');
|
|
5
|
+
var chunk7WUQTWQX_js = require('./chunk-7WUQTWQX.js');
|
|
6
|
+
var chunk5BIQ3IN7_js = require('./chunk-5BIQ3IN7.js');
|
|
7
|
+
var chunkENZI5WM7_js = require('./chunk-ENZI5WM7.js');
|
|
8
|
+
var chunkZJXBC33M_js = require('./chunk-ZJXBC33M.js');
|
|
9
|
+
|
|
10
|
+
// src/highlight-cursor/enhanced-components.tsx
|
|
11
|
+
var CursorButton = chunkZJXBC33M_js.withCursor(chunk5BIQ3IN7_js.Button);
|
|
12
|
+
var CursorTabs = chunkZJXBC33M_js.withCursor(chunkRACVRWME_js.Tabs);
|
|
13
|
+
var CursorInputRoot = chunkZJXBC33M_js.withCursor(chunkENZI5WM7_js.InputRoot);
|
|
14
|
+
var CursorSelectTrigger = chunkZJXBC33M_js.withCursor(chunk7WUQTWQX_js.SelectTrigger);
|
|
15
|
+
var CursorTextarea = chunkZJXBC33M_js.withCursor(chunk7V4ELMOH_js.Textarea);
|
|
16
|
+
|
|
17
|
+
exports.CursorButton = CursorButton;
|
|
18
|
+
exports.CursorInputRoot = CursorInputRoot;
|
|
19
|
+
exports.CursorSelectTrigger = CursorSelectTrigger;
|
|
20
|
+
exports.CursorTabs = CursorTabs;
|
|
21
|
+
exports.CursorTextarea = CursorTextarea;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUWO6RBCE_js = require('./chunk-UWO6RBCE.js');
|
|
4
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function Layout({
|
|
8
|
+
asChild,
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
align = "start",
|
|
12
|
+
orientation = "horizontal"
|
|
13
|
+
}) {
|
|
14
|
+
const Com = asChild ? reactSlot.Slot : "div";
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
Com,
|
|
17
|
+
{
|
|
18
|
+
className: chunkUWO6RBCE_js.cn(
|
|
19
|
+
{
|
|
20
|
+
"gap-xs flex flex-col": orientation === "horizontal",
|
|
21
|
+
"gap-xs grid grid-cols-[1fr_2fr] text-center": orientation === "vertical",
|
|
22
|
+
"items-baseline": align === "start",
|
|
23
|
+
"items-center": align === "center",
|
|
24
|
+
"items-end": align === "end"
|
|
25
|
+
},
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.Layout = Layout;
|
|
@@ -77,7 +77,8 @@ var modalContentVariants = classVarianceAuthority.cva([
|
|
|
77
77
|
"data-[state=closed]:fade-out-0",
|
|
78
78
|
"data-[state=open]:fade-in-0",
|
|
79
79
|
"data-[state=closed]:zoom-out-95",
|
|
80
|
-
"data-[state=open]:zoom-in-95"
|
|
80
|
+
"data-[state=open]:zoom-in-95",
|
|
81
|
+
"liquid:liquid-bg"
|
|
81
82
|
]);
|
|
82
83
|
function ModalContent({
|
|
83
84
|
className,
|
|
@@ -107,8 +108,8 @@ function ModalContent({
|
|
|
107
108
|
"h-[16px]",
|
|
108
109
|
"rounded-sm",
|
|
109
110
|
"cursor-pointer",
|
|
110
|
-
"hover:
|
|
111
|
-
"text-
|
|
111
|
+
"hover:text-icon-highlight",
|
|
112
|
+
"text-icon-primary",
|
|
112
113
|
"flex",
|
|
113
114
|
"items-center",
|
|
114
115
|
"justify-center"
|
|
@@ -74,7 +74,8 @@ function DropdownMenuContent({
|
|
|
74
74
|
"overflow-y-auto",
|
|
75
75
|
"rounded-uk-md",
|
|
76
76
|
"shadow-md",
|
|
77
|
-
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]"
|
|
77
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
78
|
+
"liquid:liquid-bg"
|
|
78
79
|
],
|
|
79
80
|
className
|
|
80
81
|
),
|
|
@@ -126,8 +127,7 @@ function DropdownMenuItem({
|
|
|
126
127
|
"select-none",
|
|
127
128
|
"hover:bg-bg-tertiary",
|
|
128
129
|
"data-[disabled]:pointer-events-none",
|
|
129
|
-
"data-[disabled]:text-
|
|
130
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
130
|
+
"data-[disabled]:text-bg-quaternary",
|
|
131
131
|
"[&_svg]:pointer-events-none",
|
|
132
132
|
"[&_svg]:shrink-0",
|
|
133
133
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -168,8 +168,7 @@ function DropdownMenuCheckboxItem({
|
|
|
168
168
|
"select-none",
|
|
169
169
|
"hover:bg-bg-tertiary",
|
|
170
170
|
"data-[disabled]:pointer-events-none",
|
|
171
|
-
"data-[disabled]:text-
|
|
172
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
171
|
+
"data-[disabled]:text-bg-quaternary",
|
|
173
172
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
174
173
|
"[&_svg]:pointer-events-none",
|
|
175
174
|
"[&_svg]:shrink-0"
|
|
@@ -218,8 +217,7 @@ function DropdownMenuRadioItem({
|
|
|
218
217
|
"last:mb-0",
|
|
219
218
|
"text-xs",
|
|
220
219
|
"data-[disabled]:pointer-events-none",
|
|
221
|
-
"data-[disabled]:text-
|
|
222
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
220
|
+
"data-[disabled]:text-bg-quaternary",
|
|
223
221
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
224
222
|
"[&_svg]:pointer-events-none",
|
|
225
223
|
"[&_svg]:shrink-0"
|
|
@@ -304,8 +302,7 @@ function DropdownMenuSubTrigger({
|
|
|
304
302
|
"hover:bg-bg-tertiary",
|
|
305
303
|
"data-[state=open]:bg-bg-tertiary",
|
|
306
304
|
"data-[disabled]:pointer-events-none",
|
|
307
|
-
"data-[disabled]:text-
|
|
308
|
-
"data-[disabled]:bg-bg-tertiary",
|
|
305
|
+
"data-[disabled]:text-bg-quaternary",
|
|
309
306
|
"[&_svg]:pointer-events-none",
|
|
310
307
|
"[&_svg]:shrink-0",
|
|
311
308
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -351,6 +348,7 @@ function DropdownMenuSubContent({
|
|
|
351
348
|
"rounded-uk-md",
|
|
352
349
|
"shadow-md",
|
|
353
350
|
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
351
|
+
"liquid:liquid-bg",
|
|
354
352
|
className
|
|
355
353
|
),
|
|
356
354
|
...props
|
|
@@ -55,7 +55,8 @@ var modalContentVariants = cva([
|
|
|
55
55
|
"data-[state=closed]:fade-out-0",
|
|
56
56
|
"data-[state=open]:fade-in-0",
|
|
57
57
|
"data-[state=closed]:zoom-out-95",
|
|
58
|
-
"data-[state=open]:zoom-in-95"
|
|
58
|
+
"data-[state=open]:zoom-in-95",
|
|
59
|
+
"liquid:liquid-bg"
|
|
59
60
|
]);
|
|
60
61
|
function ModalContent({
|
|
61
62
|
className,
|
|
@@ -85,8 +86,8 @@ function ModalContent({
|
|
|
85
86
|
"h-[16px]",
|
|
86
87
|
"rounded-sm",
|
|
87
88
|
"cursor-pointer",
|
|
88
|
-
"hover:
|
|
89
|
-
"text-
|
|
89
|
+
"hover:text-icon-highlight",
|
|
90
|
+
"text-icon-primary",
|
|
90
91
|
"flex",
|
|
91
92
|
"items-center",
|
|
92
93
|
"justify-center"
|
|
@@ -76,6 +76,7 @@ function TooltipContent({
|
|
|
76
76
|
"w-fit",
|
|
77
77
|
"origin-(--radix-tooltip-content-transform-origin)",
|
|
78
78
|
"text-balance",
|
|
79
|
+
"liquid:liquid-bg",
|
|
79
80
|
className
|
|
80
81
|
),
|
|
81
82
|
...props,
|
|
@@ -84,11 +85,10 @@ function TooltipContent({
|
|
|
84
85
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
85
86
|
TooltipPrimitive__namespace.Arrow,
|
|
86
87
|
{
|
|
87
|
-
className: "fill-bg-secondary z-50 h-[
|
|
88
|
+
className: "fill-bg-secondary z-50 h-[9px] w-[20px] border-none liquid:liquid-bg",
|
|
88
89
|
style: {
|
|
89
90
|
clipPath: "polygon(50% 100%, 0% 0%, 100% 0%)",
|
|
90
|
-
borderRadius: "1px 1px 0 0"
|
|
91
|
-
transform: "translateY(-5px)"
|
|
91
|
+
borderRadius: "1px 1px 0 0"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
)
|