laif-ds 0.1.44 → 0.1.46

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.
@@ -1,134 +1,212 @@
1
1
  "use client";
2
- import { jsx as l, jsxs as d } from "react/jsx-runtime";
3
- import { useReactTable as _, flexRender as b } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
4
- import j, { useState as i, useEffect as B } from "react";
5
- import { cn as L } from "../../lib/utils.js";
6
- import { Checkbox as p } from "./checkbox.js";
7
- import { Input as E } from "./input.js";
8
- import { ScrollArea as G, ScrollBar as w } from "./scroll-area.js";
9
- import { Table as W, TableHeader as q, TableRow as r, TableHead as J, TableBody as K, TableCell as m } from "./table.js";
10
- import { Skeleton as O } from "./skeleton.js";
11
- import { getFilteredRowModel as Q, getSortedRowModel as U, getPaginationRowModel as X, getCoreRowModel as Y } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
12
- function se({
13
- columns: n,
14
- data: g,
15
- loading: C = !1,
16
- emptyComponent: R,
17
- className: x,
18
- rowSelection: k = {},
19
- onRowSelectionChange: u,
20
- checkable: a = !1,
21
- onCheckedRowsChange: c,
22
- notFoundMessage: M = "Nessun risultato trovato.",
23
- clientFilter: s = null,
24
- clientFilterPlaceholder: N = "Cerca..."
2
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
3
+ import { useReactTable as K, flexRender as k } from "../../node_modules/@tanstack/react-table/build/lib/index.js";
4
+ import q, { useState as b, useEffect as J } from "react";
5
+ import { Checkbox as D } from "./checkbox.js";
6
+ import { cn as Q } from "../../lib/utils.js";
7
+ import { Input as U } from "./input.js";
8
+ import { ScrollArea as A, ScrollBar as x } from "./scroll-area.js";
9
+ import { AppMultipleSelectDropdown as X } from "./app-multiple-select-dropdown.js";
10
+ import { Table as Y, TableHeader as Z, TableRow as w, TableHead as B, TableBody as ee, TableCell as C } from "./table.js";
11
+ import { Skeleton as le } from "./skeleton.js";
12
+ import { getFilteredRowModel as te, getSortedRowModel as oe, getPaginationRowModel as ne, getCoreRowModel as ae } from "../../node_modules/@tanstack/table-core/build/lib/index.js";
13
+ function ce(r, s, n, d) {
14
+ const i = r.getValue(s), u = d == null ? void 0 : d.find((o) => o.column === s), m = (u == null ? void 0 : u.innerFiltersMode) ?? "OR";
15
+ if (Array.isArray(i))
16
+ return m === "AND" ? n.every((o) => i.includes(o)) : n.some((o) => i.includes(o));
17
+ switch (m) {
18
+ case "AND":
19
+ return n.every((o) => String(i) === o);
20
+ case "OR":
21
+ default:
22
+ return n.some((o) => String(i) === o);
23
+ }
24
+ }
25
+ function ie(r) {
26
+ return r.reduce(
27
+ (s, n) => (n.filterFn && (s[n.column] = (d, i, u) => {
28
+ const m = d.getValue(i);
29
+ switch (n.innerFiltersMode ?? "OR") {
30
+ case "AND":
31
+ return u.every(
32
+ (g) => n.filterFn(m, [g])
33
+ );
34
+ case "OR":
35
+ default:
36
+ return u.some(
37
+ (g) => n.filterFn(m, [g])
38
+ );
39
+ }
40
+ }), s),
41
+ {}
42
+ ) || {};
43
+ }
44
+ function we({
45
+ columns: r,
46
+ data: s,
47
+ loading: n = !1,
48
+ emptyComponent: d,
49
+ className: i,
50
+ rowSelection: u = {},
51
+ onRowSelectionChange: m,
52
+ checkable: o = !1,
53
+ onCheckedRowsChange: g,
54
+ notFoundMessage: V = "Nessun risultato trovato.",
55
+ searchBar: f = void 0,
56
+ dropdownFilters: a = void 0
57
+ // outerFiltersMode = EFiltersMode.AND,
25
58
  }) {
26
- var h, S;
27
- const [y, v] = i([]), [T, z] = i([]), [D, F] = i({}), [V, $] = i({}), f = u ? k : V, A = u || $, H = j.useMemo(() => a ? [
59
+ var v;
60
+ const [T, z] = b([]), [$, H] = b([]), [P, j] = b({}), [y, F] = b(""), [L, O] = b({}), N = m ? u : L, _ = m || O, G = q.useMemo(() => o ? [
28
61
  {
29
62
  id: "select",
30
- header: ({ table: t }) => /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l(
31
- p,
63
+ header: ({ table: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
64
+ D,
32
65
  {
33
- checked: t.getIsAllPageRowsSelected(),
34
- onCheckedChange: (e) => t.toggleAllPageRowsSelected(!!e),
66
+ checked: e.getIsAllPageRowsSelected(),
67
+ onCheckedChange: (l) => e.toggleAllPageRowsSelected(!!l),
35
68
  "aria-label": "Seleziona tutti"
36
69
  }
37
70
  ) }),
38
- cell: ({ row: t }) => /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l(
39
- p,
71
+ cell: ({ row: e }) => /* @__PURE__ */ t("div", { className: "text-center", children: /* @__PURE__ */ t(
72
+ D,
40
73
  {
41
- checked: t.getIsSelected(),
42
- onCheckedChange: (e) => t.toggleSelected(!!e),
74
+ checked: e.getIsSelected(),
75
+ onCheckedChange: (l) => e.toggleSelected(!!l),
43
76
  "aria-label": "Seleziona riga"
44
77
  }
45
78
  ) }),
46
79
  enableSorting: !1,
47
80
  enableHiding: !1
48
81
  },
49
- ...n
50
- ] : n, [n, a]), o = _({
51
- data: g,
52
- columns: H,
53
- getCoreRowModel: Y(),
54
- getPaginationRowModel: X(),
55
- onSortingChange: v,
56
- getSortedRowModel: U(),
57
- onColumnFiltersChange: z,
58
- getFilteredRowModel: Q(),
59
- onColumnVisibilityChange: F,
60
- onRowSelectionChange: A,
82
+ ...r
83
+ ] : r, [r, o]).map((e) => {
84
+ const l = a == null ? void 0 : a.find(
85
+ (c) => c.column === (e == null ? void 0 : e.accessorKey)
86
+ );
87
+ return {
88
+ ...e,
89
+ filterFn: l != null && l.filterFn ? l.column : "multiValue"
90
+ };
91
+ }), I = {
92
+ data: s,
93
+ columns: G,
94
+ getCoreRowModel: ae(),
95
+ getPaginationRowModel: ne(),
96
+ onSortingChange: z,
97
+ getSortedRowModel: oe(),
98
+ onColumnVisibilityChange: j,
99
+ onRowSelectionChange: _,
100
+ getFilteredRowModel: te(),
101
+ globalFilterFn: (e, l, c) => c ? (f == null ? void 0 : f.columns.some((S) => {
102
+ const R = e.getValue(S);
103
+ return String(R).toLowerCase().includes(c.toLowerCase());
104
+ })) ?? !1 : !0,
105
+ filterFns: {
106
+ multiValue: (e, l, c) => ce(e, l, c, a),
107
+ ...ie(a ?? [])
108
+ },
61
109
  state: {
62
- sorting: y,
63
- columnFilters: T,
64
- columnVisibility: D,
65
- rowSelection: f
110
+ sorting: T,
111
+ columnFilters: $,
112
+ columnVisibility: P,
113
+ rowSelection: N,
114
+ globalFilter: y
66
115
  }
67
- });
68
- return B(() => {
69
- if (c && a) {
70
- const t = o.getFilteredSelectedRowModel().rows.map((e) => e.original);
71
- c(t);
116
+ }, h = K(I);
117
+ return J(() => {
118
+ if (g && o) {
119
+ const e = h.getFilteredSelectedRowModel().rows.map((l) => l.original);
120
+ g(e);
72
121
  }
73
- }, [o, c, a, f]), /* @__PURE__ */ d("div", { className: L("flex h-full w-full flex-col gap-2", x), children: [
74
- s && /* @__PURE__ */ l("div", { className: "flex items-center", children: /* @__PURE__ */ l(
75
- E,
76
- {
77
- iconLeft: "Search",
78
- placeholder: N ?? "Cerca...",
79
- value: (h = o.getColumn(s)) == null ? void 0 : h.getFilterValue(),
80
- onChange: (t) => {
81
- var e;
82
- return (e = o.getColumn(s)) == null ? void 0 : e.setFilterValue(t.target.value);
83
- },
84
- className: "max-w-sm"
85
- }
86
- ) }),
87
- /* @__PURE__ */ d(G, { className: "h-full w-full rounded-md border", children: [
88
- /* @__PURE__ */ l(w, { orientation: "horizontal" }),
89
- /* @__PURE__ */ l(w, { orientation: "vertical" }),
90
- /* @__PURE__ */ d(W, { children: [
91
- /* @__PURE__ */ l(q, { children: o.getHeaderGroups().map((t) => /* @__PURE__ */ l(r, { children: t.headers.map((e) => /* @__PURE__ */ l(
92
- J,
122
+ }, [h, g, o, N]), /* @__PURE__ */ p("div", { className: Q("flex h-full w-full flex-col gap-2", i), children: [
123
+ (f || (a == null ? void 0 : a.length)) && /* @__PURE__ */ p("div", { className: "flex flex-row items-end justify-between gap-2", children: [
124
+ f && /* @__PURE__ */ t(
125
+ U,
126
+ {
127
+ iconLeft: "Search",
128
+ placeholder: f.placeholder ?? "Cerca...",
129
+ value: y,
130
+ onChange: (e) => {
131
+ F(e.target.value || "");
132
+ },
133
+ className: "max-w-sm min-w-64"
134
+ }
135
+ ),
136
+ /* @__PURE__ */ t("div", { className: "flex h-full min-w-0 flex-1 items-center", children: a && a.length > 0 && /* @__PURE__ */ p(A, { className: "h-full w-full", children: [
137
+ /* @__PURE__ */ t(x, { orientation: "horizontal" }),
138
+ /* @__PURE__ */ t("div", { className: "flex w-full max-w-full min-w-0 items-center justify-end gap-2", children: a.map((e, l) => {
139
+ const [c, S] = b([]);
140
+ return /* @__PURE__ */ t(
141
+ X,
142
+ {
143
+ className: "w-[250px]",
144
+ options: e.items,
145
+ value: c,
146
+ placeholder: e.placeholder,
147
+ label: e.label,
148
+ onChange: (R) => {
149
+ S(R), H((W) => {
150
+ const M = W.filter(
151
+ (E) => E.id !== e.column
152
+ );
153
+ return R.length === 0 ? M : [
154
+ ...M,
155
+ { id: e.column, value: R }
156
+ ];
157
+ });
158
+ }
159
+ },
160
+ l
161
+ );
162
+ }) })
163
+ ] }) })
164
+ ] }),
165
+ /* @__PURE__ */ p(A, { className: "border-d-border h-full min-h-0 w-full rounded-md border", children: [
166
+ /* @__PURE__ */ t(x, { orientation: "horizontal" }),
167
+ /* @__PURE__ */ t(x, { orientation: "vertical" }),
168
+ /* @__PURE__ */ p(Y, { children: [
169
+ /* @__PURE__ */ t(Z, { children: h.getHeaderGroups().map((e) => /* @__PURE__ */ t(w, { children: e.headers.map((l) => /* @__PURE__ */ t(
170
+ B,
93
171
  {
94
- className: `${e.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
95
- children: e.isPlaceholder ? null : b(
96
- e.column.columnDef.header,
97
- e.getContext()
172
+ className: `bg-d-secondary sticky top-0 z-10 ${l.column.columnDef.sticky ? "left-0" : ""}`,
173
+ children: l.isPlaceholder ? null : k(
174
+ l.column.columnDef.header,
175
+ l.getContext()
98
176
  )
99
177
  },
100
- e.id
101
- )) }, t.id)) }),
102
- /* @__PURE__ */ l(K, { children: C ? Array.from({ length: g.length || 8 }).map((t, e) => /* @__PURE__ */ l(r, { children: o.getHeaderGroups()[0].headers.map((P, I) => /* @__PURE__ */ l(
103
- m,
178
+ l.id
179
+ )) }, e.id)) }),
180
+ /* @__PURE__ */ t(ee, { children: n ? Array.from({ length: s.length || 8 }).map((e, l) => /* @__PURE__ */ t(w, { children: h.getHeaderGroups()[0].headers.map((c, S) => /* @__PURE__ */ t(
181
+ C,
104
182
  {
105
- className: `w-full ${P.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
106
- children: /* @__PURE__ */ l(O, { className: "h-6 w-full" })
183
+ className: `w-full ${c.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
184
+ children: /* @__PURE__ */ t(le, { className: "h-6 w-full" })
107
185
  },
108
- `skeleton-cell-${e}-${I}`
109
- )) }, `skeleton-row-${e}`)) : (S = o.getRowModel().rows) != null && S.length ? o.getRowModel().rows.map((t) => /* @__PURE__ */ l(
110
- r,
186
+ `skeleton-cell-${l}-${S}`
187
+ )) }, `skeleton-row-${l}`)) : (v = h.getRowModel().rows) != null && v.length ? h.getRowModel().rows.map((e) => /* @__PURE__ */ t(
188
+ w,
111
189
  {
112
- "data-state": t.getIsSelected() && "selected",
113
- children: t.getVisibleCells().map((e) => /* @__PURE__ */ l(
114
- m,
190
+ "data-state": e.getIsSelected() && "selected",
191
+ children: e.getVisibleCells().map((l) => /* @__PURE__ */ t(
192
+ C,
115
193
  {
116
- className: `${e.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
117
- children: b(
118
- e.column.columnDef.cell,
119
- e.getContext()
194
+ className: `${l.column.columnDef.sticky ? "bg-d-background sticky left-0 z-10" : ""}`,
195
+ children: k(
196
+ l.column.columnDef.cell,
197
+ l.getContext()
120
198
  )
121
199
  },
122
- e.id
200
+ l.id
123
201
  ))
124
202
  },
125
- t.id
126
- )) : /* @__PURE__ */ l(r, { children: /* @__PURE__ */ l(
127
- m,
203
+ e.id
204
+ )) : /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(
205
+ C,
128
206
  {
129
- colSpan: n.length,
130
- className: "h-24 text-center",
131
- children: R || M
207
+ colSpan: r.length,
208
+ className: "pt-4 text-center",
209
+ children: d || V
132
210
  }
133
211
  ) }) })
134
212
  ] })
@@ -136,5 +214,5 @@ function se({
136
214
  ] });
137
215
  }
138
216
  export {
139
- se as DataTable
217
+ we as DataTable
140
218
  };
@@ -1,111 +1,111 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
3
  import { cn as o } from "../../lib/utils.js";
4
- function n({ className: t, ...e }) {
4
+ function d({ className: e, ...t }) {
5
5
  return /* @__PURE__ */ a(
6
6
  "table",
7
7
  {
8
8
  "data-slot": "table-container",
9
9
  className: o(
10
10
  "relative w-full caption-bottom overflow-x-auto text-sm",
11
- t
11
+ e
12
12
  ),
13
- ...e
13
+ ...t
14
14
  }
15
15
  );
16
16
  }
17
- function s({ className: t, ...e }) {
17
+ function n({ className: e, ...t }) {
18
18
  return /* @__PURE__ */ a(
19
19
  "thead",
20
20
  {
21
21
  "data-slot": "table-header",
22
- className: o("[&_tr]:border-b", t),
23
- ...e
22
+ className: o("[&_tr]:border-b", e),
23
+ ...t
24
24
  }
25
25
  );
26
26
  }
27
- function d({ className: t, ...e }) {
27
+ function s({ className: e, ...t }) {
28
28
  return /* @__PURE__ */ a(
29
29
  "tbody",
30
30
  {
31
31
  "data-slot": "table-body",
32
- className: o("[&_tr:last-child]:border-0", t),
33
- ...e
32
+ className: o("[&_tr:last-child]:border-0", e),
33
+ ...t
34
34
  }
35
35
  );
36
36
  }
37
- function c({ className: t, ...e }) {
37
+ function c({ className: e, ...t }) {
38
38
  return /* @__PURE__ */ a(
39
39
  "tfoot",
40
40
  {
41
41
  "data-slot": "table-footer",
42
42
  className: o(
43
43
  "bg-d-secondary/50 border-t font-medium [&>tr]:last:border-b-0",
44
- t
44
+ e
45
45
  ),
46
- ...e
46
+ ...t
47
47
  }
48
48
  );
49
49
  }
50
- function b({ className: t, ...e }) {
50
+ function b({ className: e, ...t }) {
51
51
  return /* @__PURE__ */ a(
52
52
  "tr",
53
53
  {
54
54
  "data-slot": "table-row",
55
55
  className: o(
56
- "hover:bg-d-secondary/50 data-[state=selected]:bg-d-secondary border-b transition-colors",
57
- t
56
+ "hover:bg-d-secondary/50 data-[state=selected]:bg-d-secondary border-d-border border-b transition-colors",
57
+ e
58
58
  ),
59
- ...e
59
+ ...t
60
60
  }
61
61
  );
62
62
  }
63
- function i({ className: t, ...e }) {
63
+ function i({ className: e, ...t }) {
64
64
  return /* @__PURE__ */ a(
65
65
  "th",
66
66
  {
67
67
  "data-slot": "table-head",
68
68
  className: o(
69
- "text-d-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
70
- t
69
+ "text-d-foreground border-d-border h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
70
+ e
71
71
  ),
72
- ...e
72
+ ...t
73
73
  }
74
74
  );
75
75
  }
76
- function u({ className: t, ...e }) {
76
+ function u({ className: e, ...t }) {
77
77
  return /* @__PURE__ */ a(
78
78
  "td",
79
79
  {
80
80
  "data-slot": "table-cell",
81
81
  className: o(
82
82
  "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
83
- t
83
+ e
84
84
  ),
85
- ...e
85
+ ...t
86
86
  }
87
87
  );
88
88
  }
89
89
  function m({
90
- className: t,
91
- ...e
90
+ className: e,
91
+ ...t
92
92
  }) {
93
93
  return /* @__PURE__ */ a(
94
94
  "caption",
95
95
  {
96
96
  "data-slot": "table-caption",
97
- className: o("text-d-secondary-foreground mt-4 text-sm", t),
98
- ...e
97
+ className: o("text-d-secondary-foreground mt-4 text-sm", e),
98
+ ...t
99
99
  }
100
100
  );
101
101
  }
102
102
  export {
103
- n as Table,
104
- d as TableBody,
103
+ d as Table,
104
+ s as TableBody,
105
105
  m as TableCaption,
106
106
  u as TableCell,
107
107
  c as TableFooter,
108
108
  i as TableHead,
109
- s as TableHeader,
109
+ n as TableHeader,
110
110
  b as TableRow
111
111
  };
package/dist/index.d.ts CHANGED
@@ -668,7 +668,7 @@ export declare enum DataRepeatTypes {
668
668
  MONTH = "MONTH"
669
669
  }
670
670
 
671
- export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, clientFilter, clientFilterPlaceholder, }: DataTableProps<TData, TValue>): JSX.Element;
671
+ export declare function DataTable<TData, TValue>({ columns, data, loading, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, searchBar, dropdownFilters, }: DataTableProps<TData, TValue>): JSX.Element;
672
672
 
673
673
  declare interface DataTableProps<TData, TValue> {
674
674
  columns: ColumnDef<TData, TValue>[];
@@ -681,8 +681,8 @@ declare interface DataTableProps<TData, TValue> {
681
681
  checkable?: boolean;
682
682
  onCheckedRowsChange?: (checkedRows: TData[]) => void;
683
683
  notFoundMessage?: string;
684
- clientFilter?: string | null;
685
- clientFilterPlaceholder?: string;
684
+ searchBar?: SearchBarProps;
685
+ dropdownFilters?: DropdownFilterProp[];
686
686
  }
687
687
 
688
688
  export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, }: DatePickerProps): JSX.Element;
@@ -738,6 +738,20 @@ export declare function DrawerTitle({ className, ...props }: React_2.ComponentPr
738
738
 
739
739
  export declare function DrawerTrigger({ ...props }: React_2.ComponentProps<typeof Drawer_2.Trigger>): JSX.Element;
740
740
 
741
+ declare interface DropdownFilterItem {
742
+ label: string;
743
+ value: string;
744
+ }
745
+
746
+ declare interface DropdownFilterProp {
747
+ column: string;
748
+ placeholder: string;
749
+ label?: string;
750
+ innerFiltersMode?: ELogicalFilterOperator;
751
+ items: DropdownFilterItem[];
752
+ filterFn?: (rowValue: unknown, filterValue: string[]) => boolean;
753
+ }
754
+
741
755
  export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
742
756
 
743
757
  export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
@@ -754,6 +768,11 @@ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Om
754
768
 
755
769
  export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
756
770
 
771
+ declare enum ELogicalFilterOperator {
772
+ AND = "AND",
773
+ OR = "OR"
774
+ }
775
+
757
776
  export declare const FilePreview: default_3.ForwardRefExoticComponent<FilePreviewProps & default_3.RefAttributes<HTMLDivElement>>;
758
777
 
759
778
  declare interface FilePreviewProps {
@@ -1297,6 +1316,11 @@ export declare function ScrollArea({ className, children, ...props }: React_2.Co
1297
1316
 
1298
1317
  export declare function ScrollBar({ className, orientation, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): JSX.Element;
1299
1318
 
1319
+ declare interface SearchBarProps {
1320
+ placeholder?: string;
1321
+ columns: string[];
1322
+ }
1323
+
1300
1324
  export declare function Select({ size, label, labelClassName, ...props }: SelectProps): JSX.Element;
1301
1325
 
1302
1326
  export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
@@ -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/index4.js";
6
+ import S from "../../../_virtual/index5.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/index6.js";
2
+ import { __module as e } from "../../_virtual/index4.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/index5.js";
3
+ import y from "../../../_virtual/index6.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";