lizaui 9.0.43 → 9.0.44
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/autocomplete/index.cjs.js +1 -1
- package/dist/autocomplete/index.cjs.js.map +1 -1
- package/dist/autocomplete/index.es.js +1 -1
- package/dist/autocomplete/index.es.js.map +1 -1
- package/dist/chunks/createLucideIcon-Bxsl-Fn_.js.map +1 -1
- package/dist/chunks/createLucideIcon-C5oU6LEj.js.map +1 -1
- package/dist/chunks/index--Lp5VMoT.js.map +1 -1
- package/dist/chunks/index-xVewW5kR.js.map +1 -1
- package/dist/chunks/{scroll-area-900lTq0n.js → scroll-area-A7wLpIdN.js} +2 -2
- package/dist/chunks/{scroll-area-900lTq0n.js.map → scroll-area-A7wLpIdN.js.map} +1 -1
- package/dist/chunks/{scroll-area-CkUIBEWa.js → scroll-area-BU8EXoIt.js} +2 -2
- package/dist/chunks/{scroll-area-CkUIBEWa.js.map → scroll-area-BU8EXoIt.js.map} +1 -1
- package/dist/chunks/{select-D2PXkPgy.js → select-D12sBtA8.js} +2 -2
- package/dist/chunks/{select-D2PXkPgy.js.map → select-D12sBtA8.js.map} +1 -1
- package/dist/chunks/{select-DDslAsD-.js → select-dQq0NQ64.js} +2 -2
- package/dist/chunks/{select-DDslAsD-.js.map → select-dQq0NQ64.js.map} +1 -1
- package/dist/chunks/{textarea-CKJbotBw.js → textarea-CE8ScH_j.js} +9 -9
- package/dist/chunks/{textarea-Cy--AF3d.js.map → textarea-CE8ScH_j.js.map} +1 -1
- package/dist/chunks/{textarea-Cy--AF3d.js → textarea-DatQsnr3.js} +3 -3
- package/dist/chunks/{textarea-CKJbotBw.js.map → textarea-DatQsnr3.js.map} +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/input-group.d.ts +18 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/pagination/index.cjs.js +2 -2
- package/dist/pagination/index.es.js +2 -2
- package/dist/phone-input/index.cjs.js +2 -2
- package/dist/phone-input/index.es.js +2 -2
- package/dist/time-input/index.cjs.js +1 -1
- package/dist/time-input/index.es.js +1 -1
- package/dist/travel-calendar/index.cjs.js +1 -1
- package/dist/travel-calendar/index.es.js +1 -1
- package/dist/ui/index.cjs.js +281 -3
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js +305 -27
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +9 -9
package/dist/ui/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Primitive, c as createContextScope, f as useId, b as composeEventHandlers, e as useControllableState, u as useCallbackRef, a as Presence, g as Portal$3, h as hideOthers, j as dispatchDiscreteCustomEvent, i as useFocusGuards, R as ReactRemoveScroll, F as FocusScope, D as DismissableLayer, k as PanelGroup, l as Panel, m as PanelResizeHandle, d as useLayoutEffect2, n as Root$5, o as Portal$4, O as Overlay, C as Content$4, p as Dialog, q as DialogTitle, r as DialogDescription, s as DialogHeader, t as DialogContent, L as Lt, v as jt, T as Trigger$7, w as Close, x as Title, y as Description, z as createDialogScope, W as WarningProvider } from "../chunks/textarea-
|
|
2
|
-
import { B,
|
|
1
|
+
import { P as Primitive, c as createContextScope, f as useId, b as composeEventHandlers, e as useControllableState, u as useCallbackRef, a as Presence, g as Portal$3, h as hideOthers, j as dispatchDiscreteCustomEvent, i as useFocusGuards, R as ReactRemoveScroll, F as FocusScope, D as DismissableLayer, k as PanelGroup, l as Panel, m as PanelResizeHandle, d as useLayoutEffect2, n as Root$5, o as Portal$4, O as Overlay, C as Content$4, p as Dialog, q as DialogTitle, r as DialogDescription, s as DialogHeader, t as DialogContent, L as Lt, v as jt, T as Trigger$7, w as Close, x as Title, y as Description, z as createDialogScope, W as WarningProvider, I as Input, A as Textarea } from "../chunks/textarea-CE8ScH_j.js";
|
|
2
|
+
import { B, E, G, H, J, K, S } from "../chunks/textarea-CE8ScH_j.js";
|
|
3
3
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import * as React from "react";
|
|
@@ -7,13 +7,13 @@ import React__default from "react";
|
|
|
7
7
|
import { c as cn } from "../chunks/utils-H80jjgLf.js";
|
|
8
8
|
import { L } from "../chunks/label-error-1e6fNdg-.js";
|
|
9
9
|
import { u as useComposedRefs, a as composeRefs, c as createSlot, b as createSlottable } from "../chunks/index-B4RTH1-D.js";
|
|
10
|
-
import { g as createCollection, h as createPopperScope, R as Root2$8, A as Anchor, C as Content$3, i as Arrow, j as Root$6, u as usePrevious, k as useSize } from "../chunks/select-
|
|
11
|
-
import { S as S2, c as c2, d, f, e, l, m, n, a, b } from "../chunks/select-
|
|
10
|
+
import { g as createCollection, h as createPopperScope, R as Root2$8, A as Anchor, C as Content$3, i as Arrow, j as Root$6, u as usePrevious, k as useSize } from "../chunks/select-D12sBtA8.js";
|
|
11
|
+
import { S as S2, c as c2, d, f, e, l, m, n, a, b } from "../chunks/select-D12sBtA8.js";
|
|
12
12
|
import { u as useDirection, C as Check, a as ChevronDown } from "../chunks/index-xVewW5kR.js";
|
|
13
13
|
import { c as createLucideIcon } from "../chunks/createLucideIcon-C5oU6LEj.js";
|
|
14
14
|
import { c as cva } from "../chunks/index-CEKmKomA.js";
|
|
15
|
-
import { S as Search } from "../chunks/scroll-area-
|
|
16
|
-
import { a as a2, b as b2 } from "../chunks/scroll-area-
|
|
15
|
+
import { S as Search } from "../chunks/scroll-area-A7wLpIdN.js";
|
|
16
|
+
import { a as a2, b as b2 } from "../chunks/scroll-area-A7wLpIdN.js";
|
|
17
17
|
import ReactDOM__default from "react-dom";
|
|
18
18
|
import { B as Button, b as button } from "../chunks/button-Dzqe0Scp.js";
|
|
19
19
|
var NAME$1 = "Label";
|
|
@@ -3125,11 +3125,11 @@ function PopoverAnchor(t0) {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
var U = 1, Y$1 = 0.9, H2 = 0.8, J2 = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
|
|
3127
3127
|
var k$1 = 0.99, m2 = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
|
|
3128
|
-
function G2(_, C, h, P2,
|
|
3129
|
-
if (f2 === C.length) return
|
|
3130
|
-
var T2 = `${
|
|
3128
|
+
function G2(_, C, h, P2, A, f2, O) {
|
|
3129
|
+
if (f2 === C.length) return A === _.length ? U : k$1;
|
|
3130
|
+
var T2 = `${A},${f2}`;
|
|
3131
3131
|
if (O[T2] !== void 0) return O[T2];
|
|
3132
|
-
for (var L3 = P2.charAt(f2), c3 = h.indexOf(L3,
|
|
3132
|
+
for (var L3 = P2.charAt(f2), c3 = h.indexOf(L3, A), S3 = 0, E2, N2, R, M; c3 >= 0; ) E2 = G2(_, C, h, P2, c3 + 1, f2 + 1, O), E2 > S3 && (c3 === A ? E2 *= U : m2.test(_.charAt(c3 - 1)) ? (E2 *= H2, R = _.slice(A, c3 - 1).match(B$1), R && A > 0 && (E2 *= Math.pow(u, R.length))) : K$1.test(_.charAt(c3 - 1)) ? (E2 *= Y$1, M = _.slice(A, c3 - 1).match(X), M && A > 0 && (E2 *= Math.pow(u, M.length))) : (E2 *= J2, A > 0 && (E2 *= Math.pow(u, c3 - A))), _.charAt(c3) !== C.charAt(f2) && (E2 *= $)), (E2 < p && h.charAt(c3 - 1) === P2.charAt(f2 + 1) || P2.charAt(f2 + 1) === P2.charAt(f2) && h.charAt(c3 - 1) !== P2.charAt(f2)) && (N2 = G2(_, C, h, P2, c3 + 1, f2 + 2, O), N2 * p > E2 && (E2 = N2 * p)), E2 > S3 && (S3 = E2), c3 = h.indexOf(L3, c3 + 1);
|
|
3133
3133
|
return O[T2] = S3, S3;
|
|
3134
3134
|
}
|
|
3135
3135
|
function D(_) {
|
|
@@ -3142,7 +3142,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3142
3142
|
let n2 = L2(() => {
|
|
3143
3143
|
var e2, a3;
|
|
3144
3144
|
return { search: "", value: (a3 = (e2 = r.value) != null ? e2 : r.defaultValue) != null ? a3 : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
3145
|
-
}), u2 = L2(() => /* @__PURE__ */ new Set()), c3 = L2(() => /* @__PURE__ */ new Map()), d2 = L2(() => /* @__PURE__ */ new Map()), f2 = L2(() => /* @__PURE__ */ new Set()), p2 = pe(r), { label: b3, children: m3, value: R, onValueChange: x, filter: C, shouldFilter: S3, loop:
|
|
3145
|
+
}), u2 = L2(() => /* @__PURE__ */ new Set()), c3 = L2(() => /* @__PURE__ */ new Map()), d2 = L2(() => /* @__PURE__ */ new Map()), f2 = L2(() => /* @__PURE__ */ new Set()), p2 = pe(r), { label: b3, children: m3, value: R, onValueChange: x, filter: C, shouldFilter: S3, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r, $2 = useId(), q = useId(), _ = useId(), I = React.useRef(null), v = ke();
|
|
3146
3146
|
k(() => {
|
|
3147
3147
|
if (R !== void 0) {
|
|
3148
3148
|
let e2 = R.trim();
|
|
@@ -3188,7 +3188,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3188
3188
|
});
|
|
3189
3189
|
}), group: (e2) => (c3.current.has(e2) || c3.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
3190
3190
|
d2.current.delete(e2), c3.current.delete(e2);
|
|
3191
|
-
}), filter: () => p2.current.shouldFilter, label: b3 || r["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: $2, inputId: _, labelId: q, listInnerRef:
|
|
3191
|
+
}), filter: () => p2.current.shouldFilter, label: b3 || r["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: $2, inputId: _, labelId: q, listInnerRef: I }), []);
|
|
3192
3192
|
function te(e2, a3) {
|
|
3193
3193
|
var i, l2;
|
|
3194
3194
|
let s = (l2 = (i = p2.current) == null ? void 0 : i.filter) != null ? l2 : Re;
|
|
@@ -3204,7 +3204,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3204
3204
|
g = Math.max(h, g);
|
|
3205
3205
|
}), a3.push([i, g]);
|
|
3206
3206
|
});
|
|
3207
|
-
let s =
|
|
3207
|
+
let s = I.current;
|
|
3208
3208
|
V().sort((i, l2) => {
|
|
3209
3209
|
var h, F;
|
|
3210
3210
|
let g = i.getAttribute("id"), y = l2.getAttribute("id");
|
|
@@ -3214,7 +3214,7 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3214
3214
|
l2 ? l2.appendChild(i.parentElement === l2 ? i : i.closest(`${Y} > *`)) : s.appendChild(i.parentElement === s ? i : i.closest(`${Y} > *`));
|
|
3215
3215
|
}), a3.sort((i, l2) => l2[1] - i[1]).forEach((i) => {
|
|
3216
3216
|
var g;
|
|
3217
|
-
let l2 = (g =
|
|
3217
|
+
let l2 = (g = I.current) == null ? void 0 : g.querySelector(`${N}[${T}="${encodeURIComponent(i[0])}"]`);
|
|
3218
3218
|
l2 == null || l2.parentElement.appendChild(l2);
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
@@ -3247,11 +3247,11 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3247
3247
|
}
|
|
3248
3248
|
function M() {
|
|
3249
3249
|
var e2;
|
|
3250
|
-
return (e2 =
|
|
3250
|
+
return (e2 = I.current) == null ? void 0 : e2.querySelector(`${le}[aria-selected="true"]`);
|
|
3251
3251
|
}
|
|
3252
3252
|
function V() {
|
|
3253
3253
|
var e2;
|
|
3254
|
-
return Array.from(((e2 =
|
|
3254
|
+
return Array.from(((e2 = I.current) == null ? void 0 : e2.querySelectorAll(ce)) || []);
|
|
3255
3255
|
}
|
|
3256
3256
|
function X2(e2) {
|
|
3257
3257
|
let s = V()[e2];
|
|
@@ -3314,8 +3314,8 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3314
3314
|
}
|
|
3315
3315
|
} }, React.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b3), B2(r, (e2) => React.createElement(de.Provider, { value: E2 }, React.createElement(ue.Provider, { value: U2 }, e2))));
|
|
3316
3316
|
}), he = React.forwardRef((r, o) => {
|
|
3317
|
-
var _,
|
|
3318
|
-
let n2 = useId(), u2 = React.useRef(null), c3 = React.useContext(fe), d2 = K2(), f2 = pe(r), p2 = (
|
|
3317
|
+
var _, I;
|
|
3318
|
+
let n2 = useId(), u2 = React.useRef(null), c3 = React.useContext(fe), d2 = K2(), f2 = pe(r), p2 = (I = (_ = f2.current) == null ? void 0 : _.forceMount) != null ? I : c3 == null ? void 0 : c3.forceMount;
|
|
3319
3319
|
k(() => {
|
|
3320
3320
|
if (!p2) return d2.item(n2, c3 == null ? void 0 : c3.id);
|
|
3321
3321
|
}, [p2]);
|
|
@@ -3332,8 +3332,8 @@ var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-headin
|
|
|
3332
3332
|
m3.setState("value", b3.current, true);
|
|
3333
3333
|
}
|
|
3334
3334
|
if (!x) return null;
|
|
3335
|
-
let { disabled:
|
|
3336
|
-
return React.createElement(Primitive.div, { ref: composeRefs(u2, o), ...q, id: n2, "cmdk-item": "", role: "option", "aria-disabled": !!
|
|
3335
|
+
let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r;
|
|
3336
|
+
return React.createElement(Primitive.div, { ref: composeRefs(u2, o), ...q, id: n2, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d2.getDisablePointerSelection() ? void 0 : S3, onClick: A ? void 0 : C }, r.children);
|
|
3337
3337
|
}), Ee = React.forwardRef((r, o) => {
|
|
3338
3338
|
let { heading: n2, children: u2, forceMount: c3, ...d2 } = r, f2 = useId(), p2 = React.useRef(null), b3 = React.useRef(null), m3 = useId(), R = K2(), x = P((S3) => c3 || R.filter() === false ? true : S3.search ? S3.filtered.groups.has(f2) : true);
|
|
3339
3339
|
k(() => R.group(f2), []), ve(f2, p2, [r.value, r.heading, b3]);
|
|
@@ -8646,6 +8646,278 @@ function HoverCardContent(t0) {
|
|
|
8646
8646
|
}
|
|
8647
8647
|
return t4;
|
|
8648
8648
|
}
|
|
8649
|
+
function InputGroup(t0) {
|
|
8650
|
+
const $2 = c(8);
|
|
8651
|
+
let className;
|
|
8652
|
+
let props;
|
|
8653
|
+
if ($2[0] !== t0) {
|
|
8654
|
+
({
|
|
8655
|
+
className,
|
|
8656
|
+
...props
|
|
8657
|
+
} = t0);
|
|
8658
|
+
$2[0] = t0;
|
|
8659
|
+
$2[1] = className;
|
|
8660
|
+
$2[2] = props;
|
|
8661
|
+
} else {
|
|
8662
|
+
className = $2[1];
|
|
8663
|
+
props = $2[2];
|
|
8664
|
+
}
|
|
8665
|
+
let t1;
|
|
8666
|
+
if ($2[3] !== className) {
|
|
8667
|
+
t1 = cn("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none", "h-9 min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]", "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", className);
|
|
8668
|
+
$2[3] = className;
|
|
8669
|
+
$2[4] = t1;
|
|
8670
|
+
} else {
|
|
8671
|
+
t1 = $2[4];
|
|
8672
|
+
}
|
|
8673
|
+
let t2;
|
|
8674
|
+
if ($2[5] !== props || $2[6] !== t1) {
|
|
8675
|
+
t2 = /* @__PURE__ */ jsx("div", { "data-slot": "input-group", role: "group", className: t1, ...props });
|
|
8676
|
+
$2[5] = props;
|
|
8677
|
+
$2[6] = t1;
|
|
8678
|
+
$2[7] = t2;
|
|
8679
|
+
} else {
|
|
8680
|
+
t2 = $2[7];
|
|
8681
|
+
}
|
|
8682
|
+
return t2;
|
|
8683
|
+
}
|
|
8684
|
+
const inputGroupAddonVariants = cva("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50", {
|
|
8685
|
+
variants: {
|
|
8686
|
+
align: {
|
|
8687
|
+
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
8688
|
+
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
|
|
8689
|
+
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
|
|
8690
|
+
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
|
|
8691
|
+
}
|
|
8692
|
+
},
|
|
8693
|
+
defaultVariants: {
|
|
8694
|
+
align: "inline-start"
|
|
8695
|
+
}
|
|
8696
|
+
});
|
|
8697
|
+
function InputGroupAddon(t0) {
|
|
8698
|
+
const $2 = c(11);
|
|
8699
|
+
let className;
|
|
8700
|
+
let props;
|
|
8701
|
+
let t1;
|
|
8702
|
+
if ($2[0] !== t0) {
|
|
8703
|
+
({
|
|
8704
|
+
className,
|
|
8705
|
+
align: t1,
|
|
8706
|
+
...props
|
|
8707
|
+
} = t0);
|
|
8708
|
+
$2[0] = t0;
|
|
8709
|
+
$2[1] = className;
|
|
8710
|
+
$2[2] = props;
|
|
8711
|
+
$2[3] = t1;
|
|
8712
|
+
} else {
|
|
8713
|
+
className = $2[1];
|
|
8714
|
+
props = $2[2];
|
|
8715
|
+
t1 = $2[3];
|
|
8716
|
+
}
|
|
8717
|
+
const align = t1 === void 0 ? "inline-start" : t1;
|
|
8718
|
+
let t2;
|
|
8719
|
+
if ($2[4] !== align || $2[5] !== className) {
|
|
8720
|
+
t2 = cn(inputGroupAddonVariants({
|
|
8721
|
+
align
|
|
8722
|
+
}), className);
|
|
8723
|
+
$2[4] = align;
|
|
8724
|
+
$2[5] = className;
|
|
8725
|
+
$2[6] = t2;
|
|
8726
|
+
} else {
|
|
8727
|
+
t2 = $2[6];
|
|
8728
|
+
}
|
|
8729
|
+
let t3;
|
|
8730
|
+
if ($2[7] !== align || $2[8] !== props || $2[9] !== t2) {
|
|
8731
|
+
t3 = /* @__PURE__ */ jsx("div", { role: "group", "data-slot": "input-group-addon", "data-align": align, className: t2, onClick: _temp, ...props });
|
|
8732
|
+
$2[7] = align;
|
|
8733
|
+
$2[8] = props;
|
|
8734
|
+
$2[9] = t2;
|
|
8735
|
+
$2[10] = t3;
|
|
8736
|
+
} else {
|
|
8737
|
+
t3 = $2[10];
|
|
8738
|
+
}
|
|
8739
|
+
return t3;
|
|
8740
|
+
}
|
|
8741
|
+
function _temp(e2) {
|
|
8742
|
+
if (e2.target.closest("button")) {
|
|
8743
|
+
return;
|
|
8744
|
+
}
|
|
8745
|
+
e2.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
8746
|
+
}
|
|
8747
|
+
const inputGroupButtonVariants = cva("text-sm shadow-none flex gap-2 items-center", {
|
|
8748
|
+
variants: {
|
|
8749
|
+
size: {
|
|
8750
|
+
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
8751
|
+
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
8752
|
+
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
8753
|
+
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
8754
|
+
}
|
|
8755
|
+
},
|
|
8756
|
+
defaultVariants: {
|
|
8757
|
+
size: "xs"
|
|
8758
|
+
}
|
|
8759
|
+
});
|
|
8760
|
+
function InputGroupButton(t0) {
|
|
8761
|
+
const $2 = c(15);
|
|
8762
|
+
let className;
|
|
8763
|
+
let props;
|
|
8764
|
+
let t1;
|
|
8765
|
+
let t2;
|
|
8766
|
+
let t3;
|
|
8767
|
+
if ($2[0] !== t0) {
|
|
8768
|
+
({
|
|
8769
|
+
className,
|
|
8770
|
+
type: t1,
|
|
8771
|
+
variant: t2,
|
|
8772
|
+
size: t3,
|
|
8773
|
+
...props
|
|
8774
|
+
} = t0);
|
|
8775
|
+
$2[0] = t0;
|
|
8776
|
+
$2[1] = className;
|
|
8777
|
+
$2[2] = props;
|
|
8778
|
+
$2[3] = t1;
|
|
8779
|
+
$2[4] = t2;
|
|
8780
|
+
$2[5] = t3;
|
|
8781
|
+
} else {
|
|
8782
|
+
className = $2[1];
|
|
8783
|
+
props = $2[2];
|
|
8784
|
+
t1 = $2[3];
|
|
8785
|
+
t2 = $2[4];
|
|
8786
|
+
t3 = $2[5];
|
|
8787
|
+
}
|
|
8788
|
+
const type = t1 === void 0 ? "button" : t1;
|
|
8789
|
+
const variant = t2 === void 0 ? "ghost" : t2;
|
|
8790
|
+
const size = t3 === void 0 ? "xs" : t3;
|
|
8791
|
+
let t4;
|
|
8792
|
+
if ($2[6] !== className || $2[7] !== size) {
|
|
8793
|
+
t4 = cn(inputGroupButtonVariants({
|
|
8794
|
+
size
|
|
8795
|
+
}), className);
|
|
8796
|
+
$2[6] = className;
|
|
8797
|
+
$2[7] = size;
|
|
8798
|
+
$2[8] = t4;
|
|
8799
|
+
} else {
|
|
8800
|
+
t4 = $2[8];
|
|
8801
|
+
}
|
|
8802
|
+
let t5;
|
|
8803
|
+
if ($2[9] !== props || $2[10] !== size || $2[11] !== t4 || $2[12] !== type || $2[13] !== variant) {
|
|
8804
|
+
t5 = /* @__PURE__ */ jsx(Button, { type, "data-size": size, variant, className: t4, ...props });
|
|
8805
|
+
$2[9] = props;
|
|
8806
|
+
$2[10] = size;
|
|
8807
|
+
$2[11] = t4;
|
|
8808
|
+
$2[12] = type;
|
|
8809
|
+
$2[13] = variant;
|
|
8810
|
+
$2[14] = t5;
|
|
8811
|
+
} else {
|
|
8812
|
+
t5 = $2[14];
|
|
8813
|
+
}
|
|
8814
|
+
return t5;
|
|
8815
|
+
}
|
|
8816
|
+
function InputGroupText(t0) {
|
|
8817
|
+
const $2 = c(8);
|
|
8818
|
+
let className;
|
|
8819
|
+
let props;
|
|
8820
|
+
if ($2[0] !== t0) {
|
|
8821
|
+
({
|
|
8822
|
+
className,
|
|
8823
|
+
...props
|
|
8824
|
+
} = t0);
|
|
8825
|
+
$2[0] = t0;
|
|
8826
|
+
$2[1] = className;
|
|
8827
|
+
$2[2] = props;
|
|
8828
|
+
} else {
|
|
8829
|
+
className = $2[1];
|
|
8830
|
+
props = $2[2];
|
|
8831
|
+
}
|
|
8832
|
+
let t1;
|
|
8833
|
+
if ($2[3] !== className) {
|
|
8834
|
+
t1 = cn("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className);
|
|
8835
|
+
$2[3] = className;
|
|
8836
|
+
$2[4] = t1;
|
|
8837
|
+
} else {
|
|
8838
|
+
t1 = $2[4];
|
|
8839
|
+
}
|
|
8840
|
+
let t2;
|
|
8841
|
+
if ($2[5] !== props || $2[6] !== t1) {
|
|
8842
|
+
t2 = /* @__PURE__ */ jsx("span", { className: t1, ...props });
|
|
8843
|
+
$2[5] = props;
|
|
8844
|
+
$2[6] = t1;
|
|
8845
|
+
$2[7] = t2;
|
|
8846
|
+
} else {
|
|
8847
|
+
t2 = $2[7];
|
|
8848
|
+
}
|
|
8849
|
+
return t2;
|
|
8850
|
+
}
|
|
8851
|
+
function InputGroupInput(t0) {
|
|
8852
|
+
const $2 = c(8);
|
|
8853
|
+
let className;
|
|
8854
|
+
let props;
|
|
8855
|
+
if ($2[0] !== t0) {
|
|
8856
|
+
({
|
|
8857
|
+
className,
|
|
8858
|
+
...props
|
|
8859
|
+
} = t0);
|
|
8860
|
+
$2[0] = t0;
|
|
8861
|
+
$2[1] = className;
|
|
8862
|
+
$2[2] = props;
|
|
8863
|
+
} else {
|
|
8864
|
+
className = $2[1];
|
|
8865
|
+
props = $2[2];
|
|
8866
|
+
}
|
|
8867
|
+
let t1;
|
|
8868
|
+
if ($2[3] !== className) {
|
|
8869
|
+
t1 = cn("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent", className);
|
|
8870
|
+
$2[3] = className;
|
|
8871
|
+
$2[4] = t1;
|
|
8872
|
+
} else {
|
|
8873
|
+
t1 = $2[4];
|
|
8874
|
+
}
|
|
8875
|
+
let t2;
|
|
8876
|
+
if ($2[5] !== props || $2[6] !== t1) {
|
|
8877
|
+
t2 = /* @__PURE__ */ jsx(Input, { "data-slot": "input-group-control", className: t1, ...props });
|
|
8878
|
+
$2[5] = props;
|
|
8879
|
+
$2[6] = t1;
|
|
8880
|
+
$2[7] = t2;
|
|
8881
|
+
} else {
|
|
8882
|
+
t2 = $2[7];
|
|
8883
|
+
}
|
|
8884
|
+
return t2;
|
|
8885
|
+
}
|
|
8886
|
+
function InputGroupTextarea(t0) {
|
|
8887
|
+
const $2 = c(8);
|
|
8888
|
+
let className;
|
|
8889
|
+
let props;
|
|
8890
|
+
if ($2[0] !== t0) {
|
|
8891
|
+
({
|
|
8892
|
+
className,
|
|
8893
|
+
...props
|
|
8894
|
+
} = t0);
|
|
8895
|
+
$2[0] = t0;
|
|
8896
|
+
$2[1] = className;
|
|
8897
|
+
$2[2] = props;
|
|
8898
|
+
} else {
|
|
8899
|
+
className = $2[1];
|
|
8900
|
+
props = $2[2];
|
|
8901
|
+
}
|
|
8902
|
+
let t1;
|
|
8903
|
+
if ($2[3] !== className) {
|
|
8904
|
+
t1 = cn("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent", className);
|
|
8905
|
+
$2[3] = className;
|
|
8906
|
+
$2[4] = t1;
|
|
8907
|
+
} else {
|
|
8908
|
+
t1 = $2[4];
|
|
8909
|
+
}
|
|
8910
|
+
let t2;
|
|
8911
|
+
if ($2[5] !== props || $2[6] !== t1) {
|
|
8912
|
+
t2 = /* @__PURE__ */ jsx(Textarea, { "data-slot": "input-group-control", className: t1, ...props });
|
|
8913
|
+
$2[5] = props;
|
|
8914
|
+
$2[6] = t1;
|
|
8915
|
+
$2[7] = t2;
|
|
8916
|
+
} else {
|
|
8917
|
+
t2 = $2[7];
|
|
8918
|
+
}
|
|
8919
|
+
return t2;
|
|
8920
|
+
}
|
|
8649
8921
|
export {
|
|
8650
8922
|
Accordion,
|
|
8651
8923
|
AccordionContent,
|
|
@@ -8685,15 +8957,15 @@ export {
|
|
|
8685
8957
|
CommandSeparator,
|
|
8686
8958
|
CommandShortcut,
|
|
8687
8959
|
Dialog,
|
|
8688
|
-
|
|
8960
|
+
E as DialogClose,
|
|
8689
8961
|
DialogContent,
|
|
8690
8962
|
DialogDescription,
|
|
8691
|
-
|
|
8963
|
+
G as DialogFooter,
|
|
8692
8964
|
DialogHeader,
|
|
8693
|
-
|
|
8694
|
-
|
|
8965
|
+
H as DialogOverlay,
|
|
8966
|
+
J as DialogPortal,
|
|
8695
8967
|
DialogTitle,
|
|
8696
|
-
|
|
8968
|
+
K as DialogTrigger,
|
|
8697
8969
|
DropdownMenu,
|
|
8698
8970
|
DropdownMenuCheckboxItem,
|
|
8699
8971
|
DropdownMenuContent,
|
|
@@ -8712,7 +8984,13 @@ export {
|
|
|
8712
8984
|
HoverCard,
|
|
8713
8985
|
HoverCardContent,
|
|
8714
8986
|
HoverCardTrigger,
|
|
8715
|
-
|
|
8987
|
+
Input,
|
|
8988
|
+
InputGroup,
|
|
8989
|
+
InputGroupAddon,
|
|
8990
|
+
InputGroupButton,
|
|
8991
|
+
InputGroupInput,
|
|
8992
|
+
InputGroupText,
|
|
8993
|
+
InputGroupTextarea,
|
|
8716
8994
|
InputOTP,
|
|
8717
8995
|
InputOTPGroup,
|
|
8718
8996
|
InputOTPSeparator,
|
|
@@ -8778,7 +9056,7 @@ export {
|
|
|
8778
9056
|
TabsContent,
|
|
8779
9057
|
TabsList,
|
|
8780
9058
|
TabsTrigger,
|
|
8781
|
-
|
|
9059
|
+
Textarea,
|
|
8782
9060
|
navigationMenuTriggerStyle
|
|
8783
9061
|
};
|
|
8784
9062
|
//# sourceMappingURL=index.es.js.map
|