@vuer-ai/vuer-uikit 0.0.19 → 0.0.21
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-2JCULHBM.js +58 -0
- package/dist/chunk-2TRYGIGT.mjs +76 -0
- package/dist/chunk-2YCL2ET2.js +431 -0
- package/dist/chunk-3FR3WKI4.mjs +24 -0
- package/dist/chunk-44KW6PTD.mjs +111 -0
- package/dist/chunk-5OUTEHVX.js +48 -0
- package/dist/chunk-5SR53QBZ.js +143 -0
- package/dist/chunk-5TVG5JK5.js +93 -0
- package/dist/chunk-5ZZC23M7.mjs +60 -0
- package/dist/chunk-6N5422RT.js +110 -0
- package/dist/chunk-AOUGWGQR.js +609 -0
- package/dist/chunk-B2E7AY66.mjs +86 -0
- package/dist/chunk-BOPZFNFS.mjs +54 -0
- package/dist/chunk-CLTLT5XW.js +27 -0
- package/dist/chunk-DDOX4EEM.mjs +46 -0
- package/dist/chunk-DZ4J7I7I.mjs +114 -0
- package/dist/chunk-E33MW663.js +179 -0
- package/dist/chunk-EAZQH4IX.mjs +27 -0
- package/dist/chunk-EFIRD3FN.js +69 -0
- package/dist/chunk-EOFYA6CS.js +53 -0
- package/dist/chunk-EUY74AXP.mjs +341 -0
- package/dist/chunk-EYIFKSU2.mjs +259 -0
- package/dist/chunk-F56ZKT7B.mjs +1 -0
- package/dist/chunk-F776EMXP.mjs +82 -0
- package/dist/chunk-FORVP7XH.js +164 -0
- package/dist/chunk-FP26SRGL.js +377 -0
- package/dist/chunk-FRT225GK.mjs +34 -0
- package/dist/chunk-G5KMD72J.mjs +162 -0
- package/dist/chunk-G6PRZVSE.mjs +71 -0
- package/dist/chunk-H5P4IX7R.js +67 -0
- package/dist/chunk-HLJ7PQA7.mjs +15 -0
- package/dist/chunk-IGBWUFZL.js +79 -0
- package/dist/chunk-IXHMIR5P.js +131 -0
- package/dist/chunk-JAMJUXBY.mjs +45 -0
- package/dist/chunk-JMPVDU2C.mjs +110 -0
- package/dist/chunk-KJ42IGH6.js +2 -0
- package/dist/chunk-KTNZSZ5Y.mjs +23 -0
- package/dist/chunk-LEPXSM36.mjs +46 -0
- package/dist/chunk-LLXRJYQB.mjs +31 -0
- package/dist/chunk-M4IVLZIH.mjs +1 -0
- package/dist/chunk-MRVMXKZO.mjs +106 -0
- package/dist/chunk-MZ4POL3U.js +301 -0
- package/dist/chunk-N7CINZS2.js +2 -0
- package/dist/chunk-NODFVSVC.mjs +39 -0
- package/dist/chunk-OOI3SJDU.mjs +206 -0
- package/dist/chunk-OQ237S4Z.js +94 -0
- package/dist/chunk-OTPUWWEB.js +98 -0
- package/dist/chunk-PIR7EZC6.js +187 -0
- package/dist/chunk-PVRQNCSJ.js +49 -0
- package/dist/chunk-Q5KEB4UK.mjs +51 -0
- package/dist/chunk-QEY7BWIR.js +208 -0
- package/dist/chunk-QJR6MCTR.js +32 -0
- package/dist/chunk-QVUX6LLD.mjs +270 -0
- package/dist/chunk-QYRRQ65X.mjs +115 -0
- package/dist/chunk-SKO72K64.js +118 -0
- package/dist/chunk-T3VSSE2L.mjs +165 -0
- package/dist/chunk-TMBKCIVQ.mjs +148 -0
- package/dist/chunk-U2ZLDPOE.js +261 -0
- package/dist/chunk-U7SNLMJR.js +110 -0
- package/dist/chunk-UFHMEEGL.js +113 -0
- package/dist/chunk-UKFVRXAR.mjs +409 -0
- package/dist/chunk-UPTTGNMB.js +41 -0
- package/dist/chunk-V4KNORQN.js +21 -0
- package/dist/chunk-VAXIFFOT.js +83 -0
- package/dist/chunk-VGCVIHBR.mjs +1 -0
- package/dist/chunk-VXHM7V6F.mjs +92 -0
- package/dist/chunk-WDUTW7HS.mjs +87 -0
- package/dist/chunk-WJ7T7FAH.js +135 -0
- package/dist/chunk-WO3WHXDP.mjs +66 -0
- package/dist/chunk-X55EAYE2.js +94 -0
- package/dist/chunk-XMG3IVGZ.mjs +95 -0
- package/dist/chunk-XWS4SIB5.js +2 -0
- package/dist/chunk-XXWQ4RVP.js +25 -0
- package/dist/chunk-Y5I2GI4V.js +33 -0
- package/dist/chunk-YXDJPCAF.js +99 -0
- package/dist/chunk-ZVG2UKKC.mjs +603 -0
- package/dist/highlight-cursor/cursor-context.d.mts +7 -0
- package/dist/highlight-cursor/cursor-context.d.ts +7 -0
- package/dist/highlight-cursor/cursor-context.js +14 -0
- package/dist/highlight-cursor/cursor-context.mjs +1 -0
- package/dist/highlight-cursor/cursor-provider.d.mts +7 -0
- package/dist/highlight-cursor/cursor-provider.d.ts +7 -0
- package/dist/highlight-cursor/cursor-provider.js +12 -0
- package/dist/highlight-cursor/cursor-provider.mjs +3 -0
- package/dist/highlight-cursor/enhanced-components.d.mts +20 -0
- package/dist/highlight-cursor/enhanced-components.d.ts +20 -0
- package/dist/highlight-cursor/enhanced-components.js +37 -0
- package/dist/highlight-cursor/enhanced-components.mjs +12 -0
- package/dist/highlight-cursor/index.d.mts +16 -0
- package/dist/highlight-cursor/index.d.ts +16 -0
- package/dist/highlight-cursor/index.js +51 -0
- package/dist/highlight-cursor/index.mjs +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.d.mts +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.d.ts +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.js +14 -0
- package/dist/highlight-cursor/tabs-cursor-context.mjs +1 -0
- package/dist/highlight-cursor/types.d.mts +39 -0
- package/dist/highlight-cursor/types.d.ts +39 -0
- package/dist/highlight-cursor/types.js +2 -0
- package/dist/highlight-cursor/types.mjs +1 -0
- package/dist/highlight-cursor/with-cursor.d.mts +7 -0
- package/dist/highlight-cursor/with-cursor.d.ts +7 -0
- package/dist/highlight-cursor/with-cursor.js +11 -0
- package/dist/highlight-cursor/with-cursor.mjs +2 -0
- package/dist/index.css +318 -0
- package/dist/index.d.mts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +131 -131
- package/dist/index.mjs +38 -0
- package/dist/styles/theme.css +192 -0
- package/dist/styles/theme.d.mts +2 -0
- package/dist/styles/theme.d.ts +2 -0
- package/dist/styles/toast.css +61 -0
- package/dist/styles/toast.d.mts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- package/dist/styles/variables.css +188 -0
- package/dist/styles/variables.d.mts +2 -0
- package/dist/styles/variables.d.ts +2 -0
- package/dist/ui/avatar.d.mts +16 -0
- package/dist/ui/avatar.d.ts +16 -0
- package/dist/ui/avatar.js +25 -0
- package/dist/ui/avatar.mjs +4 -0
- package/dist/ui/badge.d.mts +14 -0
- package/dist/ui/badge.d.ts +14 -0
- package/dist/ui/badge.js +17 -0
- package/dist/ui/badge.mjs +4 -0
- package/dist/ui/button.d.mts +16 -0
- package/dist/ui/button.d.ts +16 -0
- package/dist/ui/button.js +13 -0
- package/dist/ui/button.mjs +4 -0
- package/dist/ui/card.d.mts +12 -0
- package/dist/ui/card.d.ts +12 -0
- package/dist/ui/card.js +37 -0
- package/dist/ui/card.mjs +4 -0
- package/dist/ui/checkbox.d.mts +11 -0
- package/dist/ui/checkbox.d.ts +11 -0
- package/dist/ui/checkbox.js +13 -0
- package/dist/ui/checkbox.mjs +4 -0
- package/dist/ui/collapsible.d.mts +9 -0
- package/dist/ui/collapsible.d.ts +9 -0
- package/dist/ui/collapsible.js +21 -0
- package/dist/ui/collapsible.mjs +4 -0
- package/dist/ui/dropdown.d.mts +28 -0
- package/dist/ui/dropdown.d.ts +28 -0
- package/dist/ui/dropdown.js +69 -0
- package/dist/ui/dropdown.mjs +4 -0
- package/dist/ui/index.d.mts +47 -0
- package/dist/ui/index.d.ts +47 -0
- package/dist/ui/index.js +414 -0
- package/dist/ui/index.mjs +33 -0
- package/dist/ui/input-numbers.d.mts +15 -0
- package/dist/ui/input-numbers.d.ts +15 -0
- package/dist/ui/input-numbers.js +14 -0
- package/dist/ui/input-numbers.mjs +5 -0
- package/dist/ui/input.d.mts +22 -0
- package/dist/ui/input.d.ts +22 -0
- package/dist/ui/input.js +17 -0
- package/dist/ui/input.mjs +4 -0
- package/dist/ui/layout.d.mts +12 -0
- package/dist/ui/layout.d.ts +12 -0
- package/dist/ui/layout.js +13 -0
- package/dist/ui/layout.mjs +4 -0
- package/dist/ui/modal.d.mts +28 -0
- package/dist/ui/modal.d.ts +28 -0
- package/dist/ui/modal.js +49 -0
- package/dist/ui/modal.mjs +4 -0
- package/dist/ui/popover.d.mts +10 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +25 -0
- package/dist/ui/popover.mjs +4 -0
- package/dist/ui/radio-group.d.mts +8 -0
- package/dist/ui/radio-group.d.ts +8 -0
- package/dist/ui/radio-group.js +17 -0
- package/dist/ui/radio-group.mjs +4 -0
- package/dist/ui/select.d.mts +28 -0
- package/dist/ui/select.d.ts +28 -0
- package/dist/ui/select.js +49 -0
- package/dist/ui/select.mjs +4 -0
- 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/slider.d.mts +10 -0
- package/dist/ui/slider.d.ts +10 -0
- package/dist/ui/slider.js +13 -0
- package/dist/ui/slider.mjs +4 -0
- package/dist/ui/switch.d.mts +7 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.js +13 -0
- package/dist/ui/switch.mjs +4 -0
- package/dist/ui/tabs.d.mts +16 -0
- package/dist/ui/tabs.d.ts +16 -0
- package/dist/ui/tabs.js +26 -0
- package/dist/ui/tabs.mjs +5 -0
- package/dist/ui/textarea.d.mts +16 -0
- package/dist/ui/textarea.d.ts +16 -0
- package/dist/ui/textarea.js +13 -0
- package/dist/ui/textarea.mjs +4 -0
- package/dist/ui/theme-context.d.mts +17 -0
- package/dist/ui/theme-context.d.ts +17 -0
- package/dist/ui/theme-context.js +17 -0
- package/dist/ui/theme-context.mjs +4 -0
- package/dist/ui/timeline.d.mts +23 -0
- package/dist/ui/timeline.d.ts +23 -0
- package/dist/ui/timeline.js +15 -0
- package/dist/ui/timeline.mjs +6 -0
- package/dist/ui/toast.d.mts +7 -0
- package/dist/ui/toast.d.ts +7 -0
- package/dist/ui/toast.js +14 -0
- package/dist/ui/toast.mjs +1 -0
- package/dist/ui/toggle-group.d.mts +12 -0
- package/dist/ui/toggle-group.d.ts +12 -0
- package/dist/ui/toggle-group.js +18 -0
- package/dist/ui/toggle-group.mjs +5 -0
- package/dist/ui/toggle.d.mts +13 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.js +17 -0
- package/dist/ui/toggle.mjs +4 -0
- package/dist/ui/tooltip.d.mts +10 -0
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.js +25 -0
- package/dist/ui/tooltip.mjs +4 -0
- package/dist/ui/tree-view-v2.d.mts +25 -0
- package/dist/ui/tree-view-v2.d.ts +25 -0
- package/dist/ui/tree-view-v2.js +14 -0
- package/dist/ui/tree-view-v2.mjs +5 -0
- package/dist/ui/tree-view.d.mts +28 -0
- package/dist/ui/tree-view.d.ts +28 -0
- package/dist/ui/tree-view.js +11 -0
- package/dist/ui/tree-view.mjs +2 -0
- package/dist/ui/version-badge.d.mts +26 -0
- package/dist/ui/version-badge.d.ts +26 -0
- package/dist/ui/version-badge.js +14 -0
- package/dist/ui/version-badge.mjs +5 -0
- package/dist/utils/cn.d.mts +5 -0
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +10 -0
- package/dist/utils/cn.mjs +1 -0
- package/dist/utils/index.d.mts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.mjs +3 -0
- package/dist/utils/use-local-storage.d.mts +3 -0
- package/dist/utils/use-local-storage.d.ts +3 -0
- package/dist/utils/use-local-storage.js +10 -0
- package/dist/utils/use-local-storage.mjs +1 -0
- package/package.json +3 -2
- package/src/ui/version-badge.tsx +5 -2
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSKO72K64_js = require('./chunk-SKO72K64.js');
|
|
4
|
+
var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
|
|
5
|
+
var react$1 = require('@use-gesture/react');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
var getHoverElementAndIndex = (element, inputs) => {
|
|
10
|
+
if (!element) return null;
|
|
11
|
+
const container = element == null ? void 0 : element.closest("[data-input]");
|
|
12
|
+
const currentInput = container == null ? void 0 : container.querySelector("input");
|
|
13
|
+
if (!currentInput) return null;
|
|
14
|
+
return Array.from(inputs.values()).indexOf(currentInput);
|
|
15
|
+
};
|
|
16
|
+
var changeElementsHoverState = (inputs, range, changed) => {
|
|
17
|
+
const [first, last] = range;
|
|
18
|
+
Array.from(inputs.values()).forEach((input, i) => {
|
|
19
|
+
const container = input == null ? void 0 : input.closest("[data-input]");
|
|
20
|
+
if (first === null || last === null) {
|
|
21
|
+
container == null ? void 0 : container.setAttribute("data-hover", "none");
|
|
22
|
+
} else if (i >= Math.min(first, last) && i <= Math.max(first, last)) {
|
|
23
|
+
container == null ? void 0 : container.setAttribute("data-hover", changed !== "none" ? changed : "down");
|
|
24
|
+
} else {
|
|
25
|
+
container == null ? void 0 : container.setAttribute("data-hover", "none");
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var InputNumbers = react.forwardRef(function InputNumbers2({ size, value, onValuesChange, prefix, step = 0.1 }, ref) {
|
|
30
|
+
const inputs = react.useRef(/* @__PURE__ */ new Map());
|
|
31
|
+
const selectRange = react.useRef([null, null]);
|
|
32
|
+
const inputChange = react.useRef(false);
|
|
33
|
+
const stopClick = react.useCallback(() => {
|
|
34
|
+
if (typeof document === "undefined") return;
|
|
35
|
+
const stopClick2 = (e) => {
|
|
36
|
+
e.stopPropagation();
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
document.removeEventListener("click", stopClick2, true);
|
|
39
|
+
};
|
|
40
|
+
document.addEventListener("click", stopClick2, true);
|
|
41
|
+
}, []);
|
|
42
|
+
const bind = react$1.useGesture({
|
|
43
|
+
onDrag: ({ delta: [dx], event, initial, distance: [, oy], xy, memo = 0 }) => {
|
|
44
|
+
event.stopPropagation();
|
|
45
|
+
event.preventDefault();
|
|
46
|
+
if (selectRange.current[0] === null) {
|
|
47
|
+
selectRange.current[0] = getHoverElementAndIndex(
|
|
48
|
+
typeof document !== "undefined" ? document.elementFromPoint(...initial) : null,
|
|
49
|
+
inputs.current
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
let newMX = memo + dx / 2;
|
|
53
|
+
if (Math.abs(newMX) >= (inputChange.current ? 1 : 5)) {
|
|
54
|
+
const multiplyStep = event.shiftKey ? 5 : event.altKey ? 1 / 5 : 1;
|
|
55
|
+
const newValue = value.map((v, i) => {
|
|
56
|
+
const [first, last] = selectRange.current;
|
|
57
|
+
if (first === null || last === null) {
|
|
58
|
+
return v;
|
|
59
|
+
} else if (i <= Math.max(first, last) && i >= Math.min(first, last)) {
|
|
60
|
+
return Number(((v || 0) + Math.floor(newMX) * step * multiplyStep).toPrecision(6));
|
|
61
|
+
} else {
|
|
62
|
+
return v;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
onValuesChange == null ? void 0 : onValuesChange(newValue);
|
|
66
|
+
newMX = 0;
|
|
67
|
+
inputChange.current = true;
|
|
68
|
+
changeElementsHoverState(inputs.current, selectRange.current, "x");
|
|
69
|
+
stopClick();
|
|
70
|
+
}
|
|
71
|
+
if (!inputChange.current) {
|
|
72
|
+
const currentElement = typeof document !== "undefined" ? document.elementFromPoint(...xy) : null;
|
|
73
|
+
const currentIndex = getHoverElementAndIndex(currentElement, inputs.current);
|
|
74
|
+
selectRange.current[1] = currentIndex ?? selectRange.current[1];
|
|
75
|
+
changeElementsHoverState(inputs.current, selectRange.current, oy !== 0 ? "y" : "none");
|
|
76
|
+
stopClick();
|
|
77
|
+
}
|
|
78
|
+
return newMX;
|
|
79
|
+
},
|
|
80
|
+
onDragEnd: () => {
|
|
81
|
+
selectRange.current = [null, null];
|
|
82
|
+
inputChange.current = false;
|
|
83
|
+
changeElementsHoverState(inputs.current, selectRange.current, "none");
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
const valueChangeHandler = react.useCallback(
|
|
87
|
+
(index) => {
|
|
88
|
+
return (e) => {
|
|
89
|
+
const inputValue = e.target.value;
|
|
90
|
+
if (inputValue === "" || !isNaN(Number(inputValue))) {
|
|
91
|
+
const newValue = value.map((v, i) => {
|
|
92
|
+
if (inputValue === "") {
|
|
93
|
+
return "";
|
|
94
|
+
}
|
|
95
|
+
return i === index ? Number(inputValue) : v;
|
|
96
|
+
});
|
|
97
|
+
onValuesChange == null ? void 0 : onValuesChange(newValue);
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
[onValuesChange, value]
|
|
102
|
+
);
|
|
103
|
+
if ((value == null ? void 0 : value.length) === 0) {
|
|
104
|
+
throw new Error("`value` cannot be an empty array");
|
|
105
|
+
}
|
|
106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
ref,
|
|
110
|
+
...bind(),
|
|
111
|
+
className: chunkXXWQ4RVP_js.cn("gap-xs flex cursor-crosshair touch-none flex-col select-none"),
|
|
112
|
+
children: value.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
113
|
+
chunkSKO72K64_js.InputRoot,
|
|
114
|
+
{
|
|
115
|
+
ref: (r) => {
|
|
116
|
+
inputs.current.set(index.toString(), r);
|
|
117
|
+
return () => {
|
|
118
|
+
inputs.current.delete(index.toString());
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
size,
|
|
122
|
+
value: item,
|
|
123
|
+
onClick: () => {
|
|
124
|
+
var _a;
|
|
125
|
+
(_a = inputs.current.get(index.toString())) == null ? void 0 : _a.focus();
|
|
126
|
+
},
|
|
127
|
+
onChange: valueChangeHandler(index),
|
|
128
|
+
"data-hover": "none",
|
|
129
|
+
className: chunkXXWQ4RVP_js.cn([
|
|
130
|
+
"group/number-input",
|
|
131
|
+
"cursor-crosshair",
|
|
132
|
+
"data-[hover=down]:bg-bg-tertiary",
|
|
133
|
+
"data-[hover=x]:bg-bg-tertiary",
|
|
134
|
+
"data-[hover=y]:bg-bg-tertiary",
|
|
135
|
+
"data-[hover=down]:cursor-move",
|
|
136
|
+
"data-[hover=x]:cursor-col-resize",
|
|
137
|
+
"data-[hover=y]:cursor-ns-resize"
|
|
138
|
+
]),
|
|
139
|
+
inputClassName: chunkXXWQ4RVP_js.cn([
|
|
140
|
+
"cursor-crosshair",
|
|
141
|
+
"group-data-[hover=down]/number-input:cursor-move",
|
|
142
|
+
"group-data-[hover=x]/number-input:cursor-col-resize",
|
|
143
|
+
"group-data-[hover=y]/number-input:cursor-ns-resize"
|
|
144
|
+
]),
|
|
145
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
chunkSKO72K64_js.InputSlot,
|
|
147
|
+
{
|
|
148
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
149
|
+
"cursor-crosshair",
|
|
150
|
+
"group-data-[hover=down]/number-input:cursor-move",
|
|
151
|
+
"group-data-[hover=x]/number-input:cursor-col-resize",
|
|
152
|
+
"group-data-[hover=y]/number-input:cursor-ns-resize"
|
|
153
|
+
),
|
|
154
|
+
children: prefix == null ? void 0 : prefix[index]
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
},
|
|
158
|
+
index
|
|
159
|
+
))
|
|
160
|
+
}
|
|
161
|
+
);
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
exports.InputNumbers = InputNumbers;
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXXWQ4RVP_js = require('./chunk-XXWQ4RVP.js');
|
|
4
|
+
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
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 DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
27
|
+
|
|
28
|
+
function DropdownMenu({ ...props }) {
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Root, { "data-slot": "dropdown-menu", ...props });
|
|
30
|
+
}
|
|
31
|
+
function DropdownMenuPortal({ ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
33
|
+
}
|
|
34
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
+
DropdownMenuPrimitive__namespace.Trigger,
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "dropdown-menu-trigger",
|
|
39
|
+
className: "text-text-primary hover:text-text-highlight disabled:text-text-tertiary active:text-text-secondary",
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function DropdownMenuContent({
|
|
45
|
+
className,
|
|
46
|
+
sideOffset = 4,
|
|
47
|
+
...props
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
+
DropdownMenuPrimitive__namespace.Content,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "dropdown-menu-content",
|
|
53
|
+
sideOffset,
|
|
54
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
55
|
+
[
|
|
56
|
+
"bg-bg-primary",
|
|
57
|
+
"p-md",
|
|
58
|
+
"data-[state=open]:animate-in",
|
|
59
|
+
"data-[state=closed]:animate-out",
|
|
60
|
+
"data-[state=closed]:fade-out-0",
|
|
61
|
+
"data-[state=open]:fade-in-0",
|
|
62
|
+
"data-[state=closed]:zoom-out-95",
|
|
63
|
+
"data-[state=open]:zoom-in-95",
|
|
64
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
65
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
66
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
67
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
68
|
+
"relative",
|
|
69
|
+
"z-50",
|
|
70
|
+
"max-h-(--radix-dropdown-menu-content-available-height)",
|
|
71
|
+
"min-w-[8rem]",
|
|
72
|
+
"origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
73
|
+
"overflow-x-hidden",
|
|
74
|
+
"overflow-y-auto",
|
|
75
|
+
"rounded-uk-md",
|
|
76
|
+
"shadow-md",
|
|
77
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
78
|
+
"liquid:liquid-bg"
|
|
79
|
+
],
|
|
80
|
+
className
|
|
81
|
+
),
|
|
82
|
+
...props
|
|
83
|
+
}
|
|
84
|
+
) });
|
|
85
|
+
}
|
|
86
|
+
function DropdownMenuGroup({
|
|
87
|
+
className,
|
|
88
|
+
...props
|
|
89
|
+
}) {
|
|
90
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
DropdownMenuPrimitive__namespace.Group,
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "dropdown-menu-group",
|
|
94
|
+
className: chunkXXWQ4RVP_js.cn("space-y-xs", className),
|
|
95
|
+
...props
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
function DropdownMenuItem({
|
|
100
|
+
className,
|
|
101
|
+
inset,
|
|
102
|
+
variant = "default",
|
|
103
|
+
...props
|
|
104
|
+
}) {
|
|
105
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
DropdownMenuPrimitive__namespace.Item,
|
|
107
|
+
{
|
|
108
|
+
"data-slot": "dropdown-menu-item",
|
|
109
|
+
"data-inset": inset,
|
|
110
|
+
"data-variant": variant,
|
|
111
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
112
|
+
[
|
|
113
|
+
"w-full",
|
|
114
|
+
"flex",
|
|
115
|
+
"gap-md",
|
|
116
|
+
"items-center",
|
|
117
|
+
"pr-md",
|
|
118
|
+
"pl-[calc(var(--spacing-md)*2)]",
|
|
119
|
+
"py-xs",
|
|
120
|
+
"mb-xs",
|
|
121
|
+
"last:mb-0",
|
|
122
|
+
"relative",
|
|
123
|
+
"cursor-default",
|
|
124
|
+
"rounded-uk-xs",
|
|
125
|
+
"text-uk-xs",
|
|
126
|
+
"leading-uk-xs",
|
|
127
|
+
"outline-hidden",
|
|
128
|
+
"select-none",
|
|
129
|
+
"hover:bg-bg-tertiary",
|
|
130
|
+
"data-[disabled]:pointer-events-none",
|
|
131
|
+
"data-[disabled]:text-bg-quaternary",
|
|
132
|
+
"[&_svg]:pointer-events-none",
|
|
133
|
+
"[&_svg]:shrink-0",
|
|
134
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
135
|
+
"[&_svg:not([class*='text-'])]:text-muted-foreground"
|
|
136
|
+
],
|
|
137
|
+
className
|
|
138
|
+
),
|
|
139
|
+
...props
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function DropdownMenuCheckboxItem({
|
|
144
|
+
className,
|
|
145
|
+
children,
|
|
146
|
+
checked,
|
|
147
|
+
...props
|
|
148
|
+
}) {
|
|
149
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
150
|
+
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
151
|
+
{
|
|
152
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
153
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
154
|
+
[
|
|
155
|
+
"w-full",
|
|
156
|
+
"flex",
|
|
157
|
+
"gap-md",
|
|
158
|
+
"items-center",
|
|
159
|
+
"pr-md",
|
|
160
|
+
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
161
|
+
"py-xs",
|
|
162
|
+
"mb-xs",
|
|
163
|
+
"last:mb-0",
|
|
164
|
+
"relative",
|
|
165
|
+
"cursor-default",
|
|
166
|
+
"rounded-uk-xs",
|
|
167
|
+
"text-uk-xs",
|
|
168
|
+
"leading-uk-xs",
|
|
169
|
+
"outline-hidden",
|
|
170
|
+
"select-none",
|
|
171
|
+
"hover:bg-bg-tertiary",
|
|
172
|
+
"data-[disabled]:pointer-events-none",
|
|
173
|
+
"data-[disabled]:text-bg-quaternary",
|
|
174
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
175
|
+
"[&_svg]:pointer-events-none",
|
|
176
|
+
"[&_svg]:shrink-0"
|
|
177
|
+
],
|
|
178
|
+
className
|
|
179
|
+
),
|
|
180
|
+
checked,
|
|
181
|
+
...props,
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CheckIcon, { className: "size-4" }) }) }),
|
|
184
|
+
children
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
function DropdownMenuRadioGroup({
|
|
190
|
+
...props
|
|
191
|
+
}) {
|
|
192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
193
|
+
}
|
|
194
|
+
function DropdownMenuRadioItem({
|
|
195
|
+
className,
|
|
196
|
+
children,
|
|
197
|
+
...props
|
|
198
|
+
}) {
|
|
199
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
200
|
+
DropdownMenuPrimitive__namespace.RadioItem,
|
|
201
|
+
{
|
|
202
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
203
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
204
|
+
[
|
|
205
|
+
"w-full",
|
|
206
|
+
"hover:bg-bg-tertiary",
|
|
207
|
+
"outline-hidden",
|
|
208
|
+
"relative",
|
|
209
|
+
"flex",
|
|
210
|
+
"cursor-default",
|
|
211
|
+
"select-none",
|
|
212
|
+
"items-center",
|
|
213
|
+
"gap-md",
|
|
214
|
+
"rounded-uk-xs",
|
|
215
|
+
"py-xs",
|
|
216
|
+
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
217
|
+
"pr-md",
|
|
218
|
+
"mb-xs",
|
|
219
|
+
"last:mb-0",
|
|
220
|
+
"text-uk-xs",
|
|
221
|
+
"leading-uk-xs",
|
|
222
|
+
"data-[disabled]:pointer-events-none",
|
|
223
|
+
"data-[disabled]:text-bg-quaternary",
|
|
224
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
225
|
+
"[&_svg]:pointer-events-none",
|
|
226
|
+
"[&_svg]:shrink-0"
|
|
227
|
+
],
|
|
228
|
+
className
|
|
229
|
+
),
|
|
230
|
+
...props,
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleIcon, { className: "size-2 fill-current" }) }) }),
|
|
233
|
+
children
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
function DropdownMenuLabel({
|
|
239
|
+
className,
|
|
240
|
+
inset,
|
|
241
|
+
...props
|
|
242
|
+
}) {
|
|
243
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
244
|
+
DropdownMenuPrimitive__namespace.Label,
|
|
245
|
+
{
|
|
246
|
+
"data-slot": "dropdown-menu-label",
|
|
247
|
+
"data-inset": inset,
|
|
248
|
+
className: chunkXXWQ4RVP_js.cn("text-text-secondary text-uk-xs leading-uk-xs px-2 py-1.5", className),
|
|
249
|
+
...props
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
function DropdownMenuSeparator({
|
|
254
|
+
className,
|
|
255
|
+
...props
|
|
256
|
+
}) {
|
|
257
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
+
DropdownMenuPrimitive__namespace.Separator,
|
|
259
|
+
{
|
|
260
|
+
"data-slot": "dropdown-menu-separator",
|
|
261
|
+
className: chunkXXWQ4RVP_js.cn("bg-line-primary my-lg pointer-events-none -mx-1 h-px", className),
|
|
262
|
+
...props
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
function DropdownMenuShortcut({ className, ...props }) {
|
|
267
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
+
"span",
|
|
269
|
+
{
|
|
270
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
271
|
+
className: chunkXXWQ4RVP_js.cn("text-text-tertiary text-uk-xs leading-uk-xs ml-auto", className),
|
|
272
|
+
...props
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
function DropdownMenuSub({ ...props }) {
|
|
277
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
278
|
+
}
|
|
279
|
+
function DropdownMenuSubTrigger({
|
|
280
|
+
className,
|
|
281
|
+
inset,
|
|
282
|
+
children,
|
|
283
|
+
...props
|
|
284
|
+
}) {
|
|
285
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
286
|
+
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
287
|
+
{
|
|
288
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
289
|
+
"data-inset": inset,
|
|
290
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
291
|
+
"w-full",
|
|
292
|
+
"flex",
|
|
293
|
+
"gap-md",
|
|
294
|
+
"items-center",
|
|
295
|
+
"pr-md",
|
|
296
|
+
"pl-[calc(var(--spacing-md)*2)]",
|
|
297
|
+
"py-xs",
|
|
298
|
+
"mb-xs",
|
|
299
|
+
"relative",
|
|
300
|
+
"cursor-default",
|
|
301
|
+
"rounded-uk-xs",
|
|
302
|
+
"text-uk-xs",
|
|
303
|
+
"leading-uk-xs",
|
|
304
|
+
"outline-hidden",
|
|
305
|
+
"select-none",
|
|
306
|
+
"hover:bg-bg-tertiary",
|
|
307
|
+
"data-[state=open]:bg-bg-tertiary",
|
|
308
|
+
"data-[disabled]:pointer-events-none",
|
|
309
|
+
"data-[disabled]:text-bg-quaternary",
|
|
310
|
+
"[&_svg]:pointer-events-none",
|
|
311
|
+
"[&_svg]:shrink-0",
|
|
312
|
+
"[&_svg:not([class*='size-'])]:size-4",
|
|
313
|
+
"[&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
314
|
+
className
|
|
315
|
+
),
|
|
316
|
+
...props,
|
|
317
|
+
children: [
|
|
318
|
+
children,
|
|
319
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRightIcon, { className: "ml-auto size-4" })
|
|
320
|
+
]
|
|
321
|
+
}
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
function DropdownMenuSubContent({
|
|
325
|
+
className,
|
|
326
|
+
...props
|
|
327
|
+
}) {
|
|
328
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
329
|
+
DropdownMenuPrimitive__namespace.SubContent,
|
|
330
|
+
{
|
|
331
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
332
|
+
className: chunkXXWQ4RVP_js.cn(
|
|
333
|
+
"bg-bg-primary",
|
|
334
|
+
"p-md",
|
|
335
|
+
"data-[state=open]:animate-in",
|
|
336
|
+
"data-[state=closed]:animate-out",
|
|
337
|
+
"data-[state=closed]:fade-out-0",
|
|
338
|
+
"data-[state=open]:fade-in-0",
|
|
339
|
+
"data-[state=closed]:zoom-out-95",
|
|
340
|
+
"data-[state=open]:zoom-in-95",
|
|
341
|
+
"data-[side=bottom]:slide-in-from-top-2",
|
|
342
|
+
"data-[side=left]:slide-in-from-right-2",
|
|
343
|
+
"data-[side=right]:slide-in-from-left-2",
|
|
344
|
+
"data-[side=top]:slide-in-from-bottom-2",
|
|
345
|
+
"relative",
|
|
346
|
+
"z-50",
|
|
347
|
+
"max-h-(--radix-dropdown-menu-content-available-height)",
|
|
348
|
+
"min-w-[8rem]",
|
|
349
|
+
"origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
350
|
+
"overflow-x-hidden",
|
|
351
|
+
"overflow-y-auto",
|
|
352
|
+
"rounded-uk-md",
|
|
353
|
+
"shadow-md",
|
|
354
|
+
"shadow-[0_8px_20px_0_rgba(0,0,0,.80)]",
|
|
355
|
+
"liquid:liquid-bg",
|
|
356
|
+
className
|
|
357
|
+
),
|
|
358
|
+
...props
|
|
359
|
+
}
|
|
360
|
+
);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
exports.DropdownMenu = DropdownMenu;
|
|
364
|
+
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
365
|
+
exports.DropdownMenuContent = DropdownMenuContent;
|
|
366
|
+
exports.DropdownMenuGroup = DropdownMenuGroup;
|
|
367
|
+
exports.DropdownMenuItem = DropdownMenuItem;
|
|
368
|
+
exports.DropdownMenuLabel = DropdownMenuLabel;
|
|
369
|
+
exports.DropdownMenuPortal = DropdownMenuPortal;
|
|
370
|
+
exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
|
|
371
|
+
exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
|
|
372
|
+
exports.DropdownMenuSeparator = DropdownMenuSeparator;
|
|
373
|
+
exports.DropdownMenuShortcut = DropdownMenuShortcut;
|
|
374
|
+
exports.DropdownMenuSub = DropdownMenuSub;
|
|
375
|
+
exports.DropdownMenuSubContent = DropdownMenuSubContent;
|
|
376
|
+
exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
|
|
377
|
+
exports.DropdownMenuTrigger = DropdownMenuTrigger;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cn } from './chunk-KTNZSZ5Y.mjs';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function Collapsible({ ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
|
|
7
|
+
}
|
|
8
|
+
function CollapsibleTrigger2({
|
|
9
|
+
...props
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsx(CollapsiblePrimitive.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
|
|
12
|
+
}
|
|
13
|
+
function CollapsibleContent2({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
CollapsiblePrimitive.CollapsibleContent,
|
|
19
|
+
{
|
|
20
|
+
"data-slot": "collapsible-content",
|
|
21
|
+
className: cn(
|
|
22
|
+
[
|
|
23
|
+
"overflow-hidden",
|
|
24
|
+
"data-[state=open]:animate-collapsible-down",
|
|
25
|
+
"data-[state=closed]:animate-collapsible-up"
|
|
26
|
+
],
|
|
27
|
+
className
|
|
28
|
+
),
|
|
29
|
+
...props
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger };
|