laif-ds 0.1.93 → 0.1.95
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +5 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/components/ui/async-select.js +158 -158
- package/dist/components/ui/radio-group.js +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/node_modules/eventemitter3/index.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/recharts/es6/util/Events.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as t } from "../node_modules/eventemitter3/index2.js";
|
|
4
|
+
var r = t();
|
|
5
|
+
const m = /* @__PURE__ */ e(r);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
m as default
|
|
5
8
|
};
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
|
|
4
|
+
var t = e();
|
|
5
|
+
const a = /* @__PURE__ */ r(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getDefaultExportFromCjs as
|
|
3
|
-
import { __require as
|
|
4
|
-
var t =
|
|
5
|
-
const
|
|
2
|
+
import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
|
|
3
|
+
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
+
var t = r();
|
|
5
|
+
const x = /* @__PURE__ */ e(t);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
x as default
|
|
8
8
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import { __require as r } from "../node_modules/extend/index.js";
|
|
4
|
-
var t = r();
|
|
5
|
-
const x = /* @__PURE__ */ e(t);
|
|
2
|
+
var e = { exports: {} };
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as __module
|
|
8
5
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useDebounce as
|
|
6
|
-
import { cva as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { Label as
|
|
9
|
-
import { Popover as
|
|
10
|
-
import { Command as
|
|
11
|
-
import { Icon as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
const
|
|
2
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import { useState as p, useEffect as C, useCallback as O } from "react";
|
|
5
|
+
import { useDebounce as te } from "../../hooks/use-debounce.js";
|
|
6
|
+
import { cva as ne } from "../../node_modules/class-variance-authority/dist/index.js";
|
|
7
|
+
import { cn as v } from "../../lib/utils.js";
|
|
8
|
+
import { Label as re } from "./label.js";
|
|
9
|
+
import { Popover as se, PopoverTrigger as ae, PopoverContent as oe } from "./popover.js";
|
|
10
|
+
import { Command as le, CommandInput as ie, CommandList as ce, CommandEmpty as de, CommandGroup as $, CommandItem as A } from "./command.js";
|
|
11
|
+
import { Icon as K } from "./icon.js";
|
|
12
|
+
import fe from "../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
13
|
+
import me from "../../node_modules/lucide-react/dist/esm/icons/check.js";
|
|
14
|
+
const ue = ne(
|
|
15
15
|
"flex items-center justify-between whitespace-nowrap rounded-md border border-d-input bg-d-input px-3 py-2 data-[placeholder]:text-muted-foreground focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 ",
|
|
16
16
|
{
|
|
17
17
|
variants: {
|
|
@@ -26,141 +26,141 @@ const ge = le(
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
|
-
function
|
|
30
|
-
fetcher:
|
|
31
|
-
preload:
|
|
29
|
+
function _e({
|
|
30
|
+
fetcher: i,
|
|
31
|
+
preload: g,
|
|
32
32
|
filterFn: S,
|
|
33
|
-
renderOption:
|
|
34
|
-
getOptionValue:
|
|
35
|
-
getDisplayValue:
|
|
36
|
-
notFound:
|
|
37
|
-
loadingSkeleton:
|
|
38
|
-
label:
|
|
39
|
-
labelClassName:
|
|
40
|
-
placeholder:
|
|
41
|
-
value:
|
|
42
|
-
onChange:
|
|
43
|
-
disabled:
|
|
44
|
-
width:
|
|
45
|
-
triggerClassName:
|
|
46
|
-
noResultsMessage:
|
|
47
|
-
clearable:
|
|
48
|
-
size:
|
|
33
|
+
renderOption: M,
|
|
34
|
+
getOptionValue: x,
|
|
35
|
+
getDisplayValue: N,
|
|
36
|
+
notFound: B,
|
|
37
|
+
loadingSkeleton: G,
|
|
38
|
+
label: T,
|
|
39
|
+
labelClassName: U,
|
|
40
|
+
placeholder: P = "Select...",
|
|
41
|
+
value: c = "",
|
|
42
|
+
onChange: y,
|
|
43
|
+
disabled: z = !1,
|
|
44
|
+
width: w = "200px",
|
|
45
|
+
triggerClassName: X,
|
|
46
|
+
noResultsMessage: q,
|
|
47
|
+
clearable: R = !0,
|
|
48
|
+
size: H
|
|
49
49
|
}) {
|
|
50
|
-
const [
|
|
50
|
+
const [a, _] = p(!1), d = w === "auto", j = h.useRef(null), L = h.useRef(null), J = h.useRef(null), Q = h.useRef(null), [o, f] = p({ loading: !1, error: null }), [E, Y] = p(""), m = te(E, g ? 0 : 300), [b, k] = p(/* @__PURE__ */ new Map()), [l, u] = p([]), [F, Z] = p(
|
|
51
51
|
void 0
|
|
52
|
-
);
|
|
53
|
-
|
|
52
|
+
), D = h.useMemo(() => !c || l.length === 0 ? null : l.find((e) => x(e) === c) || null, [c, l, x]);
|
|
53
|
+
C(() => ((async () => {
|
|
54
54
|
try {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
C(
|
|
64
|
-
s instanceof Error ? s.message : "Failed to fetch options"
|
|
65
|
-
);
|
|
55
|
+
f({ loading: !0, error: null });
|
|
56
|
+
const r = g ? "__preload__" : "", n = await i("");
|
|
57
|
+
k((I) => new Map(I).set(r, n)), u(n);
|
|
58
|
+
} catch (r) {
|
|
59
|
+
f({
|
|
60
|
+
loading: !1,
|
|
61
|
+
error: r instanceof Error ? r.message : "Failed to fetch options"
|
|
62
|
+
});
|
|
66
63
|
} finally {
|
|
67
|
-
|
|
64
|
+
f((r) => ({ ...r, loading: !1 }));
|
|
68
65
|
}
|
|
69
66
|
})(), () => {
|
|
70
|
-
|
|
71
|
-
}), [
|
|
72
|
-
if (
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
u([]), k(/* @__PURE__ */ new Map());
|
|
68
|
+
}), [i, g]), C(() => {
|
|
69
|
+
if (a)
|
|
70
|
+
if (g) {
|
|
71
|
+
const e = b.get("__preload__") || [];
|
|
72
|
+
if (m) {
|
|
73
|
+
const r = e.filter(
|
|
74
|
+
(n) => S ? S(n, m) : String(N(n)).toLowerCase().includes(m.toLowerCase())
|
|
77
75
|
);
|
|
78
|
-
|
|
76
|
+
u(r);
|
|
79
77
|
} else
|
|
80
|
-
|
|
81
|
-
else
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
78
|
+
u(e);
|
|
79
|
+
} else {
|
|
80
|
+
const e = m || "";
|
|
81
|
+
if (b.has(e)) {
|
|
82
|
+
const r = b.get(e);
|
|
83
|
+
u(r);
|
|
84
|
+
} else
|
|
85
|
+
(async () => {
|
|
86
|
+
try {
|
|
87
|
+
f({ loading: !0, error: null });
|
|
88
|
+
const n = await i(m);
|
|
89
|
+
k((I) => new Map(I).set(e, n)), u(n);
|
|
90
|
+
} catch (n) {
|
|
91
|
+
f({
|
|
92
|
+
loading: !1,
|
|
93
|
+
error: n instanceof Error ? n.message : "Failed to fetch options"
|
|
94
|
+
});
|
|
95
|
+
} finally {
|
|
96
|
+
f((n) => ({ ...n, loading: !1 }));
|
|
97
|
+
}
|
|
98
|
+
})();
|
|
99
|
+
}
|
|
95
100
|
}, [
|
|
96
|
-
|
|
97
|
-
h,
|
|
101
|
+
a,
|
|
98
102
|
m,
|
|
103
|
+
g,
|
|
99
104
|
S,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}, [o]), g(() => {
|
|
110
|
-
if (o && I.current && d) {
|
|
111
|
-
const t = I.current.getBoundingClientRect();
|
|
112
|
-
V(t.width);
|
|
105
|
+
b,
|
|
106
|
+
N,
|
|
107
|
+
i
|
|
108
|
+
]), C(() => {
|
|
109
|
+
a && j.current && j.current.focus();
|
|
110
|
+
}, [a]), C(() => {
|
|
111
|
+
if (a && L.current && d) {
|
|
112
|
+
const e = L.current.getBoundingClientRect();
|
|
113
|
+
Z(e.width);
|
|
113
114
|
}
|
|
114
|
-
}, [
|
|
115
|
-
const
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
R(se), N(s), j(!1);
|
|
115
|
+
}, [a, d]);
|
|
116
|
+
const V = O(
|
|
117
|
+
(e) => {
|
|
118
|
+
y?.(R && e === c ? "" : e), _(!1);
|
|
119
119
|
},
|
|
120
|
-
[
|
|
121
|
-
),
|
|
122
|
-
(
|
|
123
|
-
|
|
120
|
+
[c, y, R]
|
|
121
|
+
), ee = O(
|
|
122
|
+
(e) => {
|
|
123
|
+
e.stopPropagation(), e.preventDefault(), y?.(""), _(!1);
|
|
124
124
|
},
|
|
125
|
-
[
|
|
126
|
-
),
|
|
127
|
-
return /* @__PURE__ */
|
|
125
|
+
[y]
|
|
126
|
+
), W = h.useId();
|
|
127
|
+
return /* @__PURE__ */ s(
|
|
128
128
|
"div",
|
|
129
129
|
{
|
|
130
|
-
className:
|
|
130
|
+
className: v("grid grid-cols-1 space-y-1.5", d && "w-full"),
|
|
131
131
|
children: [
|
|
132
|
-
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
132
|
+
T && /* @__PURE__ */ t(re, { htmlFor: W, className: v(U, "w-fit"), children: T }),
|
|
133
|
+
/* @__PURE__ */ t("div", { ref: J, className: "relative", "data-slot": "async-select", children: /* @__PURE__ */ s(se, { open: a, onOpenChange: _, children: [
|
|
134
|
+
/* @__PURE__ */ t(ae, { asChild: !0, children: /* @__PURE__ */ t(
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
|
-
id:
|
|
138
|
-
ref:
|
|
137
|
+
id: W,
|
|
138
|
+
ref: L,
|
|
139
139
|
type: "button",
|
|
140
|
-
disabled:
|
|
141
|
-
className:
|
|
142
|
-
|
|
140
|
+
disabled: z,
|
|
141
|
+
className: v(
|
|
142
|
+
ue({ size: H }),
|
|
143
143
|
"!border-d-border/50 border !shadow-none",
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
z && "cursor-not-allowed opacity-50",
|
|
145
|
+
X,
|
|
146
146
|
"font-normal",
|
|
147
147
|
d && "w-full",
|
|
148
148
|
"focus-visible:ring-d-ring focus-visible:ring-1",
|
|
149
|
-
|
|
149
|
+
a && "ring-d-ring ring-1"
|
|
150
150
|
),
|
|
151
|
-
style: d ? void 0 : { width:
|
|
152
|
-
children: /* @__PURE__ */
|
|
153
|
-
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
|
|
151
|
+
style: d ? void 0 : { width: w },
|
|
152
|
+
children: /* @__PURE__ */ s("div", { className: "flex w-full flex-1 items-center justify-between overflow-hidden", children: [
|
|
153
|
+
D ? /* @__PURE__ */ t("div", { className: "min-w-0 flex-1 truncate text-left", children: N(D) }) : /* @__PURE__ */ t("span", { className: "text-d-muted-foreground truncate text-left", children: P }),
|
|
154
|
+
/* @__PURE__ */ s("div", { className: "flex flex-shrink-0 items-center justify-end gap-1", children: [
|
|
155
|
+
R && D && /* @__PURE__ */ t(
|
|
156
156
|
"div",
|
|
157
157
|
{
|
|
158
158
|
className: "border-d-input bg-d-accent cursor-pointer rounded-full p-1",
|
|
159
|
-
onClick:
|
|
160
|
-
onMouseDown: (
|
|
159
|
+
onClick: ee,
|
|
160
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
161
161
|
"aria-label": "Clear selection",
|
|
162
|
-
children: /* @__PURE__ */
|
|
163
|
-
|
|
162
|
+
children: /* @__PURE__ */ t(
|
|
163
|
+
K,
|
|
164
164
|
{
|
|
165
165
|
name: "X",
|
|
166
166
|
size: "xs",
|
|
@@ -169,8 +169,8 @@ function Ie({
|
|
|
169
169
|
)
|
|
170
170
|
}
|
|
171
171
|
),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
|
|
172
|
+
/* @__PURE__ */ t(
|
|
173
|
+
K,
|
|
174
174
|
{
|
|
175
175
|
name: "ChevronsUpDown",
|
|
176
176
|
size: "xs",
|
|
@@ -181,59 +181,59 @@ function Ie({
|
|
|
181
181
|
] })
|
|
182
182
|
}
|
|
183
183
|
) }),
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
|
|
184
|
+
/* @__PURE__ */ t(
|
|
185
|
+
oe,
|
|
186
186
|
{
|
|
187
|
-
className:
|
|
187
|
+
className: v("p-0"),
|
|
188
188
|
style: {
|
|
189
|
-
width: d ?
|
|
189
|
+
width: d ? F ? `${F}px` : void 0 : typeof w == "number" ? `${w}px` : w
|
|
190
190
|
},
|
|
191
191
|
align: "start",
|
|
192
192
|
side: "bottom",
|
|
193
193
|
sideOffset: 4,
|
|
194
|
-
onWheel: (
|
|
194
|
+
onWheel: (e) => e.stopPropagation(),
|
|
195
195
|
avoidCollisions: !1,
|
|
196
|
-
children: /* @__PURE__ */
|
|
197
|
-
|
|
196
|
+
children: /* @__PURE__ */ s(
|
|
197
|
+
le,
|
|
198
198
|
{
|
|
199
199
|
shouldFilter: !1,
|
|
200
200
|
className: "w-full border-none shadow-sm",
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
|
|
202
|
+
/* @__PURE__ */ t(
|
|
203
|
+
ie,
|
|
204
204
|
{
|
|
205
|
-
ref:
|
|
206
|
-
placeholder:
|
|
205
|
+
ref: j,
|
|
206
|
+
placeholder: P,
|
|
207
207
|
className: "placeholder:text-d-muted-foreground",
|
|
208
|
-
value:
|
|
209
|
-
onValueChange:
|
|
208
|
+
value: E,
|
|
209
|
+
onValueChange: Y
|
|
210
210
|
}
|
|
211
211
|
),
|
|
212
|
-
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
!
|
|
217
|
-
!
|
|
218
|
-
|
|
212
|
+
o.loading && l.length > 0 && /* @__PURE__ */ t("div", { className: "flex items-center justify-center p-2", children: /* @__PURE__ */ t(fe, { className: "h-4 w-4 animate-spin" }) }),
|
|
213
|
+
/* @__PURE__ */ s(ce, { ref: Q, children: [
|
|
214
|
+
o.error && /* @__PURE__ */ t("div", { className: "text-d-destructive p-3 text-center", children: o.error }),
|
|
215
|
+
o.loading && l.length === 0 && (G || /* @__PURE__ */ t(he, {})),
|
|
216
|
+
!o.loading && !o.error && l.length === 0 && (B || /* @__PURE__ */ t(de, { children: q || "No results found." })),
|
|
217
|
+
!o.loading && !o.error && l.length > 0 && /* @__PURE__ */ t($, { children: l.map((e) => /* @__PURE__ */ t(
|
|
218
|
+
A,
|
|
219
219
|
{
|
|
220
|
-
value:
|
|
221
|
-
onSelect:
|
|
220
|
+
value: x(e),
|
|
221
|
+
onSelect: V,
|
|
222
222
|
className: "cursor-pointer",
|
|
223
|
-
children: /* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
|
|
223
|
+
children: /* @__PURE__ */ s("div", { className: "flex w-full items-center justify-between overflow-hidden", children: [
|
|
224
|
+
/* @__PURE__ */ t("div", { className: "min-w-0 flex-1", children: M ? /* @__PURE__ */ t("div", { className: "truncate", children: M(e) }) : /* @__PURE__ */ t("span", { className: "truncate", children: N(e) }) }),
|
|
225
|
+
/* @__PURE__ */ t(
|
|
226
|
+
me,
|
|
227
227
|
{
|
|
228
|
-
className:
|
|
228
|
+
className: v(
|
|
229
229
|
"ml-2 h-4 w-4 flex-shrink-0",
|
|
230
|
-
|
|
230
|
+
c === x(e) ? "opacity-100" : "opacity-0"
|
|
231
231
|
)
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
] })
|
|
235
235
|
},
|
|
236
|
-
|
|
236
|
+
x(e)
|
|
237
237
|
)) })
|
|
238
238
|
] })
|
|
239
239
|
]
|
|
@@ -246,16 +246,16 @@ function Ie({
|
|
|
246
246
|
}
|
|
247
247
|
);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
249
|
+
function he() {
|
|
250
|
+
return /* @__PURE__ */ t($, { children: [1, 2, 3].map((i) => /* @__PURE__ */ t(A, { disabled: !0, children: /* @__PURE__ */ s("div", { className: "flex w-full items-center gap-2", children: [
|
|
251
|
+
/* @__PURE__ */ t("div", { className: "bg-d-secondary h-6 w-6 animate-pulse rounded-full" }),
|
|
252
|
+
/* @__PURE__ */ s("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
253
|
+
/* @__PURE__ */ t("div", { className: "bg-d-secondary h-4 w-24 animate-pulse rounded" }),
|
|
254
|
+
/* @__PURE__ */ t("div", { className: "bg-d-secondary h-3 w-16 animate-pulse rounded" })
|
|
255
255
|
] })
|
|
256
|
-
] }) },
|
|
256
|
+
] }) }, i)) });
|
|
257
257
|
}
|
|
258
258
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
_e as AsyncSelect,
|
|
260
|
+
ue as selectTriggerVariants
|
|
261
261
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
import { Root as
|
|
4
|
-
import { cn as
|
|
3
|
+
import { Root as a, Item as t, Indicator as d } from "../../node_modules/@radix-ui/react-radio-group/dist/index.js";
|
|
4
|
+
import { cn as o } from "../../lib/utils.js";
|
|
5
5
|
import s from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
|
|
6
6
|
function m({
|
|
7
7
|
className: i,
|
|
8
|
-
...
|
|
8
|
+
...e
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ r(
|
|
11
|
-
|
|
11
|
+
a,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "radio-group",
|
|
14
|
-
className:
|
|
15
|
-
...
|
|
14
|
+
className: o("grid gap-3", i),
|
|
15
|
+
...e
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
19
|
function p({
|
|
20
20
|
className: i,
|
|
21
|
-
...
|
|
21
|
+
...e
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ r(
|
|
24
24
|
t,
|
|
25
25
|
{
|
|
26
26
|
"data-slot": "radio-group-item",
|
|
27
|
-
className:
|
|
28
|
-
"border-d-
|
|
27
|
+
className: o(
|
|
28
|
+
"border-d-border text-d-primary focus-visible:border-d-ring focus-visible:ring-d-ring/50 aria-invalid:ring-d-destructive/20 dark:aria-invalid:ring-d-destructive/40 aria-invalid:border-d-destructive dark:bg-d-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
29
29
|
i
|
|
30
30
|
),
|
|
31
|
-
...
|
|
31
|
+
...e,
|
|
32
32
|
children: /* @__PURE__ */ r(
|
|
33
33
|
d,
|
|
34
34
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ declare interface AsyncSelectProps<T> extends VariantProps<typeof selectTriggerV
|
|
|
201
201
|
notFound?: React_2.ReactNode;
|
|
202
202
|
loadingSkeleton?: React_2.ReactNode;
|
|
203
203
|
value?: string;
|
|
204
|
-
onChange
|
|
204
|
+
onChange?: (value: string) => void;
|
|
205
205
|
label?: string | React_2.ReactNode;
|
|
206
206
|
labelClassName?: string;
|
|
207
207
|
placeholder?: string;
|
|
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
|
|
|
3
3
|
import { ok as u } from "../../devlop/lib/default.js";
|
|
4
4
|
import { svg as m, html as C } from "../../property-information/index.js";
|
|
5
5
|
import { stringify as N } from "../../space-separated-tokens/index.js";
|
|
6
|
-
import S from "../../../_virtual/
|
|
6
|
+
import S from "../../../_virtual/index3.js";
|
|
7
7
|
import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
|
|
8
8
|
import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
|
|
9
9
|
import { VFileMessage as h } from "../../vfile-message/lib/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { bail as P } from "../../bail/index.js";
|
|
3
|
-
import y from "../../../_virtual/
|
|
3
|
+
import y from "../../../_virtual/index4.js";
|
|
4
4
|
import z from "../../is-plain-obj/index.js";
|
|
5
5
|
import { CallableInstance as C } from "./callable-instance.js";
|
|
6
6
|
import { trough as A } from "../../trough/lib/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __module as e } from "../../../_virtual/
|
|
2
|
+
import { __module as e } from "../../../_virtual/index5.js";
|
|
3
3
|
import { __require as i } from "../cjs/use-sync-external-store-shim.production.js";
|
|
4
4
|
import { __require as o } from "../cjs/use-sync-external-store-shim.development.js";
|
|
5
5
|
var r;
|