laif-ds 0.1.50 → 0.1.51
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/index4.js +5 -2
- package/dist/_virtual/index5.js +5 -5
- package/dist/_virtual/index6.js +2 -5
- package/dist/components/ui/async-select.js +9 -10
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +1 -1
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
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);
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
a as default
|
|
5
8
|
};
|
package/dist/_virtual/index5.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/index6.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
|
};
|
|
@@ -7,7 +7,7 @@ import { cva as _ } from "../../node_modules/class-variance-authority/dist/index
|
|
|
7
7
|
import { cn as k } from "../../lib/utils.js";
|
|
8
8
|
import { Button as V } from "./button.js";
|
|
9
9
|
import { Label as ee } from "./label.js";
|
|
10
|
-
import { Command as te, CommandInput as oe, CommandList as se, CommandEmpty as ne, CommandGroup as O, CommandItem as
|
|
10
|
+
import { Command as te, CommandInput as oe, CommandList as se, CommandEmpty as ne, CommandGroup as O, CommandItem as R } from "./command.js";
|
|
11
11
|
import { Popover as re, PopoverTrigger as ae, PopoverContent as ce } from "./popover.js";
|
|
12
12
|
import ie from "../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
13
13
|
import le from "../../node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js";
|
|
@@ -32,10 +32,10 @@ function ke({
|
|
|
32
32
|
fetcher: i,
|
|
33
33
|
preload: m,
|
|
34
34
|
filterFn: x,
|
|
35
|
-
renderOption:
|
|
35
|
+
renderOption: A,
|
|
36
36
|
getOptionValue: a,
|
|
37
37
|
getDisplayValue: w,
|
|
38
|
-
notFound:
|
|
38
|
+
notFound: F,
|
|
39
39
|
loadingSkeleton: $,
|
|
40
40
|
label: l,
|
|
41
41
|
labelClassName: B,
|
|
@@ -75,9 +75,7 @@ function ke({
|
|
|
75
75
|
}), [i, n, m]), j(() => {
|
|
76
76
|
if (u)
|
|
77
77
|
if (m)
|
|
78
|
-
if (
|
|
79
|
-
"[AsyncSelect] Filtraggio locale dei dati con preload attivo"
|
|
80
|
-
), f) {
|
|
78
|
+
if (f) {
|
|
81
79
|
const t = L.filter(
|
|
82
80
|
(o) => x ? x(o, f) : String(w(o)).toLowerCase().includes(f.toLowerCase())
|
|
83
81
|
);
|
|
@@ -130,6 +128,7 @@ function ke({
|
|
|
130
128
|
V,
|
|
131
129
|
{
|
|
132
130
|
id: T,
|
|
131
|
+
type: "button",
|
|
133
132
|
variant: "ghost",
|
|
134
133
|
role: "combobox",
|
|
135
134
|
"aria-expanded": u,
|
|
@@ -181,14 +180,14 @@ function ke({
|
|
|
181
180
|
/* @__PURE__ */ s(se, { children: [
|
|
182
181
|
b && /* @__PURE__ */ e("div", { className: "text-d-destructive p-3 text-center", children: b }),
|
|
183
182
|
C && r.length === 0 && ($ || /* @__PURE__ */ e(pe, {})),
|
|
184
|
-
!C && !b && r.length === 0 && (
|
|
183
|
+
!C && !b && r.length === 0 && (F || /* @__PURE__ */ e(ne, { children: X ?? `No ${typeof l == "string" ? l.toLowerCase() : "options"} found.` })),
|
|
185
184
|
/* @__PURE__ */ e(O, { children: r.map((t) => /* @__PURE__ */ s(
|
|
186
|
-
|
|
185
|
+
R,
|
|
187
186
|
{
|
|
188
187
|
value: a(t),
|
|
189
188
|
onSelect: J,
|
|
190
189
|
children: [
|
|
191
|
-
|
|
190
|
+
A(t),
|
|
192
191
|
/* @__PURE__ */ e(
|
|
193
192
|
me,
|
|
194
193
|
{
|
|
@@ -210,7 +209,7 @@ function ke({
|
|
|
210
209
|
] });
|
|
211
210
|
}
|
|
212
211
|
function pe() {
|
|
213
|
-
return /* @__PURE__ */ e(O, { children: [1, 2, 3].map((i) => /* @__PURE__ */ e(
|
|
212
|
+
return /* @__PURE__ */ e(O, { children: [1, 2, 3].map((i) => /* @__PURE__ */ e(R, { disabled: !0, children: /* @__PURE__ */ s("div", { className: "flex w-full items-center gap-2", children: [
|
|
214
213
|
/* @__PURE__ */ e("div", { className: "bg-d-secondary h-6 w-6 animate-pulse rounded-full" }),
|
|
215
214
|
/* @__PURE__ */ s("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
216
215
|
/* @__PURE__ */ e("div", { className: "bg-d-secondary h-4 w-24 animate-pulse rounded" }),
|
|
@@ -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/index4.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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { __module as e } from "../../_virtual/
|
|
2
|
+
import { __module as e } from "../../_virtual/index6.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.production.min.js";
|
|
4
4
|
import { __require as o } from "./cjs/react-is.development.js";
|
|
5
5
|
var r;
|
|
@@ -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/index5.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";
|