@wirecore/wirelayer-react 0.12.1 → 0.13.0

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.
Files changed (54) hide show
  1. package/dist/{Button-Cd7lufvJ.js → Button-D_ctSYR-.js} +1 -1
  2. package/dist/{Checkbox-BMRax6m4.js → Checkbox-DXiff9X7.js} +1 -1
  3. package/dist/{ContextMenu-Bz723GfL.js → ContextMenu-Z23QyLFn.js} +408 -370
  4. package/dist/{CopyButton-C_LAuCkR.js → CopyButton-Dr_QrMYf.js} +2 -2
  5. package/dist/{Field-DkYxlVar.js → Field-DFh-zcjr.js} +3 -3
  6. package/dist/{Highlight-43-H9459.js → Highlight-CpYN310r.js} +1 -1
  7. package/dist/{Input-CtYSQznO.js → Input-D8lXkJcv.js} +4 -4
  8. package/dist/PasswordInput-DQIzdTGq.js +452 -0
  9. package/dist/{RecipesProvider-0idafuGm.js → RecipesProvider-COODXvxz.js} +8 -1
  10. package/dist/{Select-CGyqfOm3.js → Select-E_geb3hU.js} +5 -5
  11. package/dist/{Slider-Bfm_jjYE.js → Slider-BFGCHR5_.js} +3 -3
  12. package/dist/{Tree-DLHbcH3-.js → Tree-BDYg4j6i.js} +128 -128
  13. package/dist/chart.js +2 -2
  14. package/dist/code.js +14 -14
  15. package/dist/components/Confirm/ConfirmDialog.d.ts.map +1 -1
  16. package/dist/components/Confirm/confirm.d.ts +5 -0
  17. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  18. package/dist/components/Dialog/Dialog.d.ts +12 -3
  19. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  20. package/dist/components/DialogService/DialogHost.d.ts.map +1 -1
  21. package/dist/components/DialogService/dialogs.d.ts +5 -0
  22. package/dist/components/DialogService/dialogs.d.ts.map +1 -1
  23. package/dist/components/Drawer/Drawer.d.ts +10 -2
  24. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  25. package/dist/components/NotificationCenter/NotificationCenter.d.ts +8 -2
  26. package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -1
  27. package/dist/components/RecipesProvider/RecipesProvider.d.ts +6 -0
  28. package/dist/components/RecipesProvider/RecipesProvider.d.ts.map +1 -1
  29. package/dist/data-table/DataTable.d.ts +26 -7
  30. package/dist/data-table/DataTable.d.ts.map +1 -1
  31. package/dist/data-table/FilterMenu.d.ts.map +1 -1
  32. package/dist/data-table/ValueInput.d.ts +5 -1
  33. package/dist/data-table/ValueInput.d.ts.map +1 -1
  34. package/dist/data-table/features.d.ts +10 -0
  35. package/dist/data-table/features.d.ts.map +1 -1
  36. package/dist/data-table/index.d.ts +1 -1
  37. package/dist/data-table/index.d.ts.map +1 -1
  38. package/dist/data-table/inputs.d.ts +5 -0
  39. package/dist/data-table/inputs.d.ts.map +1 -1
  40. package/dist/data-table/types.d.ts +3 -0
  41. package/dist/data-table/types.d.ts.map +1 -1
  42. package/dist/data-table.js +1150 -1083
  43. package/dist/editor.js +4 -4
  44. package/dist/form.js +10 -10
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2088 -2111
  48. package/dist/pdf.js +7 -7
  49. package/dist/sources/dateRangeInput.css +3 -0
  50. package/dist/virtual.js +7 -7
  51. package/llms-full.txt +127 -26
  52. package/llms.txt +1 -0
  53. package/package.json +3 -3
  54. package/dist/PasswordInput-CxZXGV2m.js +0 -449
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { a as e, i as t, n } from "./RecipesProvider-0idafuGm.js";
3
- import { t as r } from "./Button-Cd7lufvJ.js";
4
- import { t as i } from "./Highlight-43-H9459.js";
2
+ import { a as e, n as t, o as n } from "./RecipesProvider-COODXvxz.js";
3
+ import { t as r } from "./Button-D_ctSYR-.js";
4
+ import { t as i } from "./Highlight-CpYN310r.js";
5
5
  import { ChildrenLoader as a, controlIds as o, filterTree as s, isLazyNode as c, locateTreeNode as l, moveTreeNode as u, pluralText as d, pruneTree as f, toggleTreeChecked as ee, tree as p, treeBranchIds as m, treeCheckStates as h, treeCheckedValue as te, treeDropMove as g, treeInsertPosition as _, treeKeyboardMove as v, treeMoveAnchor as y, treeRetryId as b, treeRetryParent as x, walkTree as S, withLoadedChildren as C } from "@wirecore/wirelayer-recipes";
6
6
  import { Check as w, ChevronRight as T, LoaderCircle as E, Minus as D, RotateCw as ne } from "lucide-react";
7
7
  import { createContext as O, useContext as k, useEffect as A, useImperativeHandle as j, useMemo as M, useRef as N, useState as P, useSyncExternalStore as re } from "react";
@@ -56,12 +56,12 @@ var V = (e, t) => l(e, t)?.node, ce = (e) => {
56
56
  children: {},
57
57
  errors: {}
58
58
  };
59
- function H(e, n) {
60
- let { translations: r, locale: i, dir: o } = t(), l = r.tree, [p, S] = P(""), [w] = P(() => Symbol("tree")), T = N(e);
59
+ function H(t, n) {
60
+ let { translations: r, locale: i, dir: o } = e(), l = r.tree, [p, S] = P(""), [w] = P(() => Symbol("tree")), T = N(t);
61
61
  A(() => {
62
- T.current = e;
62
+ T.current = t;
63
63
  });
64
- let [E, D] = P(le), ne = N(le), [O, k] = P(() => /* @__PURE__ */ new Set()), j = M(() => C(e.items, E.children), [e.items, E.children]), F = N(j);
64
+ let [E, D] = P(le), ne = N(le), [O, k] = P(() => /* @__PURE__ */ new Set()), j = M(() => C(t.items, E.children), [t.items, E.children]), F = N(j);
65
65
  A(() => {
66
66
  F.current = j;
67
67
  }, [j]);
@@ -77,7 +77,7 @@ function H(e, n) {
77
77
  A(() => () => {
78
78
  L.current?.dispose(), L.current = void 0;
79
79
  }, []);
80
- let z = !!e.loadChildren || !!e.dataSource?.getChildren, ae = (e) => c(e) && (E.status[e.id] === "loading" || !z && O.has(e.id)), [oe, se] = P(!1), H = ce(e.items);
80
+ let z = !!t.loadChildren || !!t.dataSource?.getChildren, ae = (e) => c(e) && (E.status[e.id] === "loading" || !z && O.has(e.id)), [oe, se] = P(!1), H = ce(t.items);
81
81
  H && !oe && se(!0);
82
82
  let U = z || oe || H, W = N(O);
83
83
  A(() => {
@@ -89,11 +89,11 @@ function H(e, n) {
89
89
  e && c(e) && (T.current.loadChildren || T.current.dataSource?.getChildren ? R().load(e) : W.current.has(t) || (W.current = /* @__PURE__ */ new Set([...W.current, t]), k(W.current), S(l.loadingNode(e.label)), T.current.onLoadChildren?.(e)));
90
90
  }
91
91
  }
92
- function de(t) {
93
- let n = V(F.current, t);
94
- n && (ze(t), z ? R().load(n, { force: !0 }) : (W.current = /* @__PURE__ */ new Set([...W.current, t]), k(W.current), e.onLoadChildren?.(n)));
92
+ function de(e) {
93
+ let n = V(F.current, e);
94
+ n && (ze(e), z ? R().load(n, { force: !0 }) : (W.current = /* @__PURE__ */ new Set([...W.current, e]), k(W.current), t.onLoadChildren?.(n)));
95
95
  }
96
- let [fe, pe] = P(e.defaultExpandedValue ?? []), K = e.expandedValue ?? fe, q = (e) => {
96
+ let [fe, pe] = P(t.defaultExpandedValue ?? []), K = t.expandedValue ?? fe, q = (e) => {
97
97
  pe(e), T.current.onExpandedChange?.(e);
98
98
  }, me = N([]);
99
99
  A(() => {
@@ -110,31 +110,31 @@ function H(e, n) {
110
110
  let e = ve.current;
111
111
  ve.current = [], G(e);
112
112
  }, [j]);
113
- let [ye, be] = P(e.defaultSelectedValue ?? []), xe = e.selectedValue ?? ye;
114
- function Se(t) {
115
- let n = t.find((e) => x(e) !== void 0);
113
+ let [ye, be] = P(t.defaultSelectedValue ?? []), xe = t.selectedValue ?? ye;
114
+ function Se(e) {
115
+ let n = e.find((e) => x(e) !== void 0);
116
116
  if (n) return de(x(n));
117
- be(t), e.onSelectionChange?.(t);
117
+ be(e), t.onSelectionChange?.(e);
118
118
  }
119
- let Ce = !!e.checkable && (!!e.checkStrictly || e.checkedStrategy !== void 0 || U), [we, Te] = P(e.defaultCheckedValue ?? []), Ee = e.checkedValue ?? we, De = M(() => Ce ? h(j, Ee, e.checkStrictly) : void 0, [
119
+ let Ce = !!t.checkable && (!!t.checkStrictly || t.checkedStrategy !== void 0 || U), [we, Te] = P(t.defaultCheckedValue ?? []), Ee = t.checkedValue ?? we, De = M(() => Ce ? h(j, Ee, t.checkStrictly) : void 0, [
120
120
  Ce,
121
121
  j,
122
122
  Ee,
123
- e.checkStrictly
123
+ t.checkStrictly
124
124
  ]);
125
- function Oe(t) {
126
- let n = ee(j, Ee, t, e.checkStrictly), r = te(j, n, e.checkedStrategy ?? "all", e.checkStrictly);
127
- Te(r), e.onCheckedChange?.(r);
125
+ function Oe(e) {
126
+ let n = ee(j, Ee, e, t.checkStrictly), r = te(j, n, t.checkedStrategy ?? "all", t.checkStrictly);
127
+ Te(r), t.onCheckedChange?.(r);
128
128
  }
129
- function ke(t) {
130
- Te(t), e.onCheckedChange?.(t);
129
+ function ke(e) {
130
+ Te(e), t.onCheckedChange?.(e);
131
131
  }
132
- let [Ae, je] = P(""), J = e.filterValue ?? Ae, Me = (t) => {
133
- je(t), e.onFilterValueChange?.(t);
134
- }, Y = M(() => s(j, J, (e) => e.label, e.filterMode ?? "filter"), [
132
+ let [Ae, je] = P(""), J = t.filterValue ?? Ae, Me = (e) => {
133
+ je(e), t.onFilterValueChange?.(e);
134
+ }, Y = M(() => s(j, J, (e) => e.label, t.filterMode ?? "filter"), [
135
135
  j,
136
136
  J,
137
- e.filterMode
137
+ t.filterMode
138
138
  ]), Ne = M(() => new Set(Y.matches), [Y]), X = N(null), Pe = N("");
139
139
  A(() => {
140
140
  if (J === Pe.current) return;
@@ -186,81 +186,81 @@ function H(e, n) {
186
186
  let Be = N(null);
187
187
  A(() => {
188
188
  Be.current &&= (ze(Be.current), null);
189
- }, [e.items]);
189
+ }, [t.items]);
190
190
  let Ve = (e, t) => (e ? V(j, e)?.children ?? [] : j).filter((e) => e.id !== t).length + 1;
191
- function He(t) {
192
- if (!t) return;
193
- let n = V(j, t.id);
194
- if (n && e.allowDrop) {
195
- let r = y(j, t);
196
- if (!e.allowDrop(n, r.target, r.position)) return S(l.dropDenied);
191
+ function He(e) {
192
+ if (!e) return;
193
+ let n = V(j, e.id);
194
+ if (n && t.allowDrop) {
195
+ let r = y(j, e);
196
+ if (!t.allowDrop(n, r.target, r.position)) return S(l.dropDenied);
197
197
  }
198
- let r = t.parentId ? I(t.parentId) : null;
199
- S(l.moved(I(t.id), r, t.index + 1, Ve(t.parentId, t.id))), Be.current = t.id, e.onMove?.(Object.keys(E.children).length ? {
200
- ...t,
201
- items: u(j, t)
202
- } : t);
198
+ let r = e.parentId ? I(e.parentId) : null;
199
+ S(l.moved(I(e.id), r, e.index + 1, Ve(e.parentId, e.id))), Be.current = e.id, t.onMove?.(Object.keys(E.children).length ? {
200
+ ...e,
201
+ items: u(j, e)
202
+ } : e);
203
203
  }
204
- function Ue(t, n, r) {
204
+ function Ue(e, n, r) {
205
205
  let i = r.parentId ? I(r.parentId) : null;
206
- S(l.moved(t.label, i, r.index + 1, Ve(r.parentId, t.id))), Be.current = t.id, e.onTransfer?.({
207
- node: t,
206
+ S(l.moved(e.label, i, r.index + 1, Ve(r.parentId, e.id))), Be.current = e.id, t.onTransfer?.({
207
+ node: e,
208
208
  sourceTree: n,
209
- targetTree: e.name,
209
+ targetTree: t.name,
210
210
  ...r
211
211
  });
212
212
  }
213
- let We = re(B.subscribe, B.get, () => null), Z = (t) => {
213
+ let We = re(B.subscribe, B.get, () => null), Z = (e) => {
214
214
  let n = B.get();
215
- return n && n.mode === t && n.tree !== w && e.group !== void 0 && n.group === e.group ? n : null;
215
+ return n && n.mode === e && n.tree !== w && t.group !== void 0 && n.group === t.group ? n : null;
216
216
  }, Ge = We?.mode === "cut" && We.tree === w ? We.node.id : null;
217
- function Ke(t) {
217
+ function Ke(e) {
218
218
  let n = B.get();
219
219
  if (!n || n.mode !== "cut") return !1;
220
- let r = V(j, t);
220
+ let r = V(j, e);
221
221
  if (!r) return !1;
222
222
  let i = r.children ? "inside" : "after";
223
- if (e.allowDrop && !e.allowDrop(n.node, r, i)) return S(l.dropDenied), !0;
223
+ if (t.allowDrop && !t.allowDrop(n.node, r, i)) return S(l.dropDenied), !0;
224
224
  if (n.tree === w) {
225
- if (!e.reorderable) return !1;
226
- let r = g(j, n.node.id, t, i);
225
+ if (!t.reorderable) return !1;
226
+ let r = g(j, n.node.id, e, i);
227
227
  r ? He(r) : S(l.dropDenied);
228
228
  } else {
229
229
  if (!Z("cut")) return !1;
230
- let e = _(j, t, i);
231
- e && Ue(n.node, n.name, e);
230
+ let t = _(j, e, i);
231
+ t && Ue(n.node, n.name, t);
232
232
  }
233
233
  return B.set(null), !0;
234
234
  }
235
- let qe = e.reorderable || e.group !== void 0;
236
- function Je(t) {
237
- e.checkable && ue(t);
238
- let n = t.target.closest("[data-node-id]")?.dataset.nodeId;
235
+ let qe = t.reorderable || t.group !== void 0;
236
+ function Je(e) {
237
+ t.checkable && ue(e);
238
+ let n = e.target.closest("[data-node-id]")?.dataset.nodeId;
239
239
  if (!n || x(n) !== void 0) return;
240
- let r = t.ctrlKey || t.metaKey;
241
- if (qe && r && !t.altKey && (t.key === "x" || t.key === "X")) {
240
+ let r = e.ctrlKey || e.metaKey;
241
+ if (qe && r && !e.altKey && (e.key === "x" || e.key === "X")) {
242
242
  let r = V(j, n);
243
243
  if (!r || r.disabled) return;
244
- t.preventDefault(), B.set({
244
+ e.preventDefault(), B.set({
245
245
  mode: "cut",
246
246
  node: r,
247
247
  tree: w,
248
- group: e.group,
249
- name: e.name
248
+ group: t.group,
249
+ name: t.name
250
250
  }), S(l.cut(r.label));
251
251
  return;
252
252
  }
253
- if (r && !t.altKey && (t.key === "v" || t.key === "V")) {
254
- Ke(n) && t.preventDefault();
253
+ if (r && !e.altKey && (e.key === "v" || e.key === "V")) {
254
+ Ke(n) && e.preventDefault();
255
255
  return;
256
256
  }
257
- if (t.key === "Escape" && Ge) {
258
- t.preventDefault(), t.stopPropagation(), B.set(null), S(l.cutCancelled);
257
+ if (e.key === "Escape" && Ge) {
258
+ e.preventDefault(), e.stopPropagation(), B.set(null), S(l.cutCancelled);
259
259
  return;
260
260
  }
261
- if (!e.reorderable || !t.altKey) return;
262
- let i = o === "rtl", a = t.key === "ArrowUp" ? "up" : t.key === "ArrowDown" ? "down" : t.key === "ArrowRight" ? i ? "out" : "in" : t.key === "ArrowLeft" ? i ? "in" : "out" : void 0;
263
- a && (t.preventDefault(), t.stopPropagation(), He(v(j, n, a)));
261
+ if (!t.reorderable || !e.altKey) return;
262
+ let i = o === "rtl", a = e.key === "ArrowUp" ? "up" : e.key === "ArrowDown" ? "down" : e.key === "ArrowRight" ? i ? "out" : "in" : e.key === "ArrowLeft" ? i ? "in" : "out" : void 0;
263
+ a && (e.preventDefault(), e.stopPropagation(), He(v(j, n, a)));
264
264
  }
265
265
  let [Q, Ye] = P(null), [$, Xe] = P(null), Ze = (e, t) => {
266
266
  let n = e.currentTarget.getBoundingClientRect(), r = (e.clientY - n.top) / n.height;
@@ -269,31 +269,31 @@ function H(e, n) {
269
269
  reorderable: qe,
270
270
  dragging: Q,
271
271
  drop: $,
272
- onDragStart: (t, n) => {
273
- let r = V(j, t);
274
- r && (Ye(t), B.set({
272
+ onDragStart: (e, n) => {
273
+ let r = V(j, e);
274
+ r && (Ye(e), B.set({
275
275
  mode: "drag",
276
276
  node: r,
277
277
  tree: w,
278
- group: e.group,
279
- name: e.name
278
+ group: t.group,
279
+ name: t.name
280
280
  }), n.dataTransfer.setData("text/plain", r.label), n.dataTransfer.effectAllowed = "move");
281
281
  },
282
- onDragOver: (t, n, r) => {
282
+ onDragOver: (e, n, r) => {
283
283
  let i = Z("drag");
284
- if ((!Q || !e.reorderable) && !i || Q === t) return;
285
- let a = V(j, t);
286
- a && c(a) && G([t]);
287
- let o = Ze(r, n), s = i ? i.node : V(j, Q), l = i ? _(j, t, o) : g(j, Q, t, o), u = V(j, t) ?? null;
288
- !l || !s || e.allowDrop && !e.allowDrop(s, u, o) ? Xe(null) : (r.preventDefault(), Xe({
289
- id: t,
284
+ if ((!Q || !t.reorderable) && !i || Q === e) return;
285
+ let a = V(j, e);
286
+ a && c(a) && G([e]);
287
+ let o = Ze(r, n), s = i ? i.node : V(j, Q), l = i ? _(j, e, o) : g(j, Q, e, o), u = V(j, e) ?? null;
288
+ !l || !s || t.allowDrop && !t.allowDrop(s, u, o) ? Xe(null) : (r.preventDefault(), Xe({
289
+ id: e,
290
290
  position: o
291
291
  }));
292
292
  },
293
- onDrop: (t) => {
294
- t.preventDefault();
293
+ onDrop: (e) => {
294
+ e.preventDefault();
295
295
  let n = Z("drag");
296
- if ($ && Q && e.reorderable) He(g(j, Q, $.id, $.position));
296
+ if ($ && Q && t.reorderable) He(g(j, Q, $.id, $.position));
297
297
  else if ($ && n) {
298
298
  let e = _(j, $.id, $.position);
299
299
  e && Ue(n.node, n.name, e);
@@ -304,9 +304,9 @@ function H(e, n) {
304
304
  Ye(null), Xe(null), B.get()?.mode === "drag" && B.set(null);
305
305
  }
306
306
  };
307
- function $e(t) {
307
+ function $e(e) {
308
308
  let n = Z("drag");
309
- !n || e.allowDrop && !e.allowDrop(n.node, null, "inside") || t.preventDefault();
309
+ !n || t.allowDrop && !t.allowDrop(n.node, null, "inside") || e.preventDefault();
310
310
  }
311
311
  function et(e) {
312
312
  let t = Z("drag");
@@ -353,8 +353,8 @@ function ue(e) {
353
353
  //#endregion
354
354
  //#region src/components/Tree/Tree.tsx
355
355
  var U = O(null);
356
- function W({ classes: t, items: r, label: i, "aria-label": a, selectionMode: s = "single", checkable: c = !1, checkStrictly: l = !1, checkedValue: u, defaultCheckedValue: d, reorderable: f = !1, filter: ee = !1, filterMode: m = "filter", expandControls: h = !1, showLines: te = !1, renderNode: g, emptyText: _, empty: v, className: y, style: b, ref: x, ...S }) {
357
- let C = n("tree", p, t)(), w = e(), T = w.tree, E = N(null), D = H({
356
+ function W({ classes: e, items: r, label: i, "aria-label": a, selectionMode: s = "single", checkable: c = !1, checkStrictly: l = !1, checkedValue: u, defaultCheckedValue: d, reorderable: f = !1, filter: ee = !1, filterMode: m = "filter", expandControls: h = !1, showLines: te = !1, renderNode: g, emptyText: _, empty: v, className: y, style: b, ref: x, ...S }) {
357
+ let C = t("tree", p, e)(), w = n(), T = w.tree, E = N(null), D = H({
358
358
  ...S,
359
359
  items: r,
360
360
  checkable: c,
@@ -402,7 +402,7 @@ function W({ classes: t, items: r, label: i, "aria-label": a, selectionMode: s =
402
402
  filter: ee,
403
403
  filterMode: m,
404
404
  expandControls: h,
405
- classes: t
405
+ classes: e
406
406
  }),
407
407
  /* @__PURE__ */ I(U, {
408
408
  value: {
@@ -434,8 +434,8 @@ function W({ classes: t, items: r, label: i, "aria-label": a, selectionMode: s =
434
434
  ]
435
435
  });
436
436
  }
437
- function G({ model: t, filter: i, filterMode: a, expandControls: o, classes: s }) {
438
- let c = n("tree", p, s)(), l = e(), u = l.tree;
437
+ function G({ model: e, filter: i, filterMode: a, expandControls: o, classes: s }) {
438
+ let c = t("tree", p, s)(), l = n(), u = l.tree;
439
439
  return !i && !o ? null : /* @__PURE__ */ L("div", {
440
440
  className: c.toolbar(),
441
441
  children: [i && /* @__PURE__ */ I("input", {
@@ -444,37 +444,37 @@ function G({ model: t, filter: i, filterMode: a, expandControls: o, classes: s }
444
444
  className: c.search(),
445
445
  "aria-label": u.filter,
446
446
  placeholder: l.combobox.search,
447
- value: t.query,
448
- onChange: (e) => t.setQuery(e.target.value),
449
- onKeyDown: (e) => {
450
- e.key === "Enter" && a === "highlight" && (e.preventDefault(), t.jump(e.shiftKey ? -1 : 1));
447
+ value: e.query,
448
+ onChange: (t) => e.setQuery(t.target.value),
449
+ onKeyDown: (t) => {
450
+ t.key === "Enter" && a === "highlight" && (t.preventDefault(), e.jump(t.shiftKey ? -1 : 1));
451
451
  }
452
452
  }), o && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(r, {
453
453
  variant: "text",
454
454
  size: "sm",
455
- onClick: t.expandAll,
455
+ onClick: e.expandAll,
456
456
  children: u.expandAll
457
457
  }), /* @__PURE__ */ I(r, {
458
458
  variant: "text",
459
459
  size: "sm",
460
- onClick: t.collapseAll,
460
+ onClick: e.collapseAll,
461
461
  children: u.collapseAll
462
462
  })] })]
463
463
  });
464
464
  }
465
465
  var de = "Alt+ArrowUp Alt+ArrowDown Alt+ArrowLeft Alt+ArrowRight", fe = (e) => e === "indeterminate" ? "mixed" : e;
466
- function pe({ own: e, checked: t, onToggle: r }) {
467
- let i = n("tree", p)();
466
+ function pe({ own: e, checked: n, onToggle: r }) {
467
+ let i = t("tree", p)();
468
468
  return e ? /* @__PURE__ */ I("span", {
469
469
  "data-part": "node-checkbox",
470
- "data-state": t === "indeterminate" ? "indeterminate" : t ? "checked" : "unchecked",
470
+ "data-state": n === "indeterminate" ? "indeterminate" : n ? "checked" : "unchecked",
471
471
  role: "presentation",
472
472
  "aria-hidden": "true",
473
473
  className: i.checkbox(),
474
474
  onClick: (e) => {
475
475
  e.stopPropagation(), r();
476
476
  },
477
- children: t === "indeterminate" ? /* @__PURE__ */ I(D, { className: i.checkboxIcon() }) : t ? /* @__PURE__ */ I(w, { className: i.checkboxIcon() }) : null
477
+ children: n === "indeterminate" ? /* @__PURE__ */ I(D, { className: i.checkboxIcon() }) : n ? /* @__PURE__ */ I(w, { className: i.checkboxIcon() }) : null
478
478
  }) : /* @__PURE__ */ I(R.NodeCheckbox, {
479
479
  className: i.checkbox(),
480
480
  role: "presentation",
@@ -491,22 +491,22 @@ function pe({ own: e, checked: t, onToggle: r }) {
491
491
  })
492
492
  });
493
493
  }
494
- function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
495
- let l = n("tree", p)(), u = e().tree, { model: d, checkable: f, showLines: ee, renderNode: m } = k(U), h = d.drag, te = t.icon, g = !!t.children || c(t), _ = x(t.id) !== void 0, v = d.loadingOf(t), y = d.matches.has(t.id), b = d.ownChecks, S = d.checkStates?.get(t.id) ?? !1, C = (e) => b ? S : e.checked, w = (e) => h.reorderable ? {
496
- draggable: t.disabled ? void 0 : "true",
497
- "data-drop": h.drop?.id === t.id ? h.drop.position : void 0,
498
- "data-dragging": h.dragging === t.id || void 0,
499
- "data-cut": d.cutId === t.id || void 0,
500
- onDragStart: (e) => h.onDragStart(t.id, e),
501
- onDragOver: (n) => h.onDragOver(t.id, e, n),
494
+ function K({ node: e, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
495
+ let l = t("tree", p)(), u = n().tree, { model: d, checkable: f, showLines: ee, renderNode: m } = k(U), h = d.drag, te = e.icon, g = !!e.children || c(e), _ = x(e.id) !== void 0, v = d.loadingOf(e), y = d.matches.has(e.id), b = d.ownChecks, S = d.checkStates?.get(e.id) ?? !1, C = (e) => b ? S : e.checked, w = (t) => h.reorderable ? {
496
+ draggable: e.disabled ? void 0 : "true",
497
+ "data-drop": h.drop?.id === e.id ? h.drop.position : void 0,
498
+ "data-dragging": h.dragging === e.id || void 0,
499
+ "data-cut": d.cutId === e.id || void 0,
500
+ onDragStart: (t) => h.onDragStart(e.id, t),
501
+ onDragOver: (n) => h.onDragOver(e.id, t, n),
502
502
  onDrop: h.onDrop,
503
503
  onDragEnd: h.onDragEnd
504
- } : {}, D = (e, n) => m ? m(t, {
505
- level: e.depth,
506
- selected: e.selected,
507
- expanded: e.expanded,
504
+ } : {}, D = (t, n) => m ? m(e, {
505
+ level: t.depth,
506
+ selected: t.selected,
507
+ expanded: t.expanded,
508
508
  branch: g,
509
- checked: C(e),
509
+ checked: C(t),
510
510
  loading: v,
511
511
  match: y,
512
512
  query: d.query
@@ -516,18 +516,18 @@ function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
516
516
  }), /* @__PURE__ */ I(n, {
517
517
  className: l.text(),
518
518
  children: y ? /* @__PURE__ */ I(i, {
519
- text: t.label,
519
+ text: e.label,
520
520
  query: d.query,
521
521
  ignoreAccents: !0
522
- }) : t.label
522
+ }) : e.label
523
523
  })] });
524
524
  return /* @__PURE__ */ I(R.NodeProvider, {
525
- node: t,
525
+ node: e,
526
526
  indexPath: r,
527
- children: /* @__PURE__ */ I(R.NodeContext, { children: (e) => g ? /* @__PURE__ */ L(R.Branch, {
528
- "data-node-id": t.id,
527
+ children: /* @__PURE__ */ I(R.NodeContext, { children: (t) => g ? /* @__PURE__ */ L(R.Branch, {
528
+ "data-node-id": e.id,
529
529
  "aria-keyshortcuts": h.reorderable ? de : void 0,
530
- "aria-checked": f ? fe(C(e)) : void 0,
530
+ "aria-checked": f ? fe(C(t)) : void 0,
531
531
  "aria-busy": v || void 0,
532
532
  "aria-posinset": o,
533
533
  "aria-setsize": s,
@@ -546,9 +546,9 @@ function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
546
546
  f && /* @__PURE__ */ I(pe, {
547
547
  own: b,
548
548
  checked: S,
549
- onToggle: () => d.toggleCheck(t.id)
549
+ onToggle: () => d.toggleCheck(e.id)
550
550
  }),
551
- D(e, R.BranchText)
551
+ D(t, R.BranchText)
552
552
  ]
553
553
  }), !a && /* @__PURE__ */ L(R.BranchContent, {
554
554
  ...ee ? { className: l.lines() } : {},
@@ -556,14 +556,14 @@ function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
556
556
  className: l.loadingRow(),
557
557
  "aria-hidden": "true",
558
558
  children: [/* @__PURE__ */ I(E, { className: l.loadingIcon() }), u.loadingRow]
559
- }), (t.children ?? []).map((e, t) => /* @__PURE__ */ I(K, {
559
+ }), (e.children ?? []).map((e, t) => /* @__PURE__ */ I(K, {
560
560
  node: e,
561
561
  indexPath: [...r, t]
562
562
  }, e.id))]
563
563
  })]
564
564
  }) : _ ? /* @__PURE__ */ L(R.Item, {
565
565
  className: l.item({ class: l.retry() }),
566
- "data-node-id": t.id,
566
+ "data-node-id": e.id,
567
567
  "aria-posinset": o,
568
568
  "aria-setsize": s,
569
569
  children: [/* @__PURE__ */ I(ne, {
@@ -571,13 +571,13 @@ function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
571
571
  "aria-hidden": "true"
572
572
  }), /* @__PURE__ */ I(R.ItemText, {
573
573
  className: l.text(),
574
- children: t.label
574
+ children: e.label
575
575
  })]
576
576
  }) : /* @__PURE__ */ L(R.Item, {
577
577
  className: l.item({ class: h.reorderable ? l.dropTarget() : void 0 }),
578
- "data-node-id": t.id,
578
+ "data-node-id": e.id,
579
579
  "aria-keyshortcuts": h.reorderable ? de : void 0,
580
- "aria-checked": f ? fe(C(e)) : void 0,
580
+ "aria-checked": f ? fe(C(t)) : void 0,
581
581
  "aria-posinset": o,
582
582
  "aria-setsize": s,
583
583
  "data-match": y || void 0,
@@ -585,8 +585,8 @@ function K({ node: t, indexPath: r, flat: a = !1, posinset: o, setsize: s }) {
585
585
  children: [f && /* @__PURE__ */ I(pe, {
586
586
  own: b,
587
587
  checked: S,
588
- onToggle: () => d.toggleCheck(t.id)
589
- }), D(e, R.ItemText)]
588
+ onToggle: () => d.toggleCheck(e.id)
589
+ }), D(t, R.ItemText)]
590
590
  }) })
591
591
  });
592
592
  }
package/dist/chart.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { i as e, n as t } from "./RecipesProvider-0idafuGm.js";
3
- import { t as n } from "./Slider-Bfm_jjYE.js";
2
+ import { a as e, n as t } from "./RecipesProvider-COODXvxz.js";
3
+ import { t as n } from "./Slider-BFGCHR5_.js";
4
4
  import { chart as r, chartTable as i, clampRange as a, mergeOptions as o, pieConfig as s, pieLegend as c, readChartTheme as l, referencePlugin as u, referenceSummary as d, seriesChart as f, seriesChartConfig as p, seriesTable as m, sparkline as h, sparklineSummary as g, themeChartData as _, themeChartOptions as v, waterfallBars as y, waterfallConfig as b } from "@wirecore/wirelayer-recipes";
5
5
  import { useEffect as x, useId as S, useRef as C, useState as w } from "react";
6
6
  import { jsx as T, jsxs as E } from "react/jsx-runtime";
package/dist/code.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { a as e, n as t } from "./RecipesProvider-0idafuGm.js";
3
- import { t as n } from "./Button-Cd7lufvJ.js";
4
- import { t as r } from "./CopyButton-C_LAuCkR.js";
2
+ import { n as e, o as t } from "./RecipesProvider-COODXvxz.js";
3
+ import { t as n } from "./Button-D_ctSYR-.js";
4
+ import { t as r } from "./CopyButton-Dr_QrMYf.js";
5
5
  import { codeDiffLine as i, codeFileKind as a, codeHighlight as o, codeLanguages as s, codeTabs as c, diffLines as l, inlineCode as u, languageFromFileName as d, resolveCodeLanguage as f, toolbarIndexForKey as p } from "@wirecore/wirelayer-recipes";
6
6
  import { FileBraces as m, FileCode as h, FileCodeCorner as g, FileImage as _, FileSpreadsheet as v, FileTerminal as y, FileText as b, FileType as x, WrapText as S } from "lucide-react";
7
7
  import { useEffect as C, useId as w, useRef as T, useState as E } from "react";
@@ -86,7 +86,7 @@ var R = (e) => e.split("\n").map((e) => [{ content: e }]), z = (e) => ({
86
86
  fontWeight: e.fontStyle && e.fontStyle & 2 ? "600" : void 0
87
87
  }), B = [];
88
88
  function V({ code: s, language: c, title: u, fileName: f, lineNumbers: p = !1, highlightLines: m, copyable: h = !0, header: g = !0, maxHeight: _, expandable: v, wrap: y, onWrapChange: b, wrapToggle: x, diff: T, addedLines: k, removedLines: j, languages: M = B, classes: N, className: P, ...F }) {
89
- let I = t("codeHighlight", o, N), V = e().codeHighlight, H = w(), U = c ?? (f ? d(f) : "text"), [W, G] = E(!1), K = y ?? W, [q, J] = E(!1), Y = I({
89
+ let I = e("codeHighlight", o, N), V = t().codeHighlight, H = w(), U = c ?? (f ? d(f) : "text"), [W, G] = E(!1), K = y ?? W, [q, J] = E(!1), Y = I({
90
90
  wrap: K,
91
91
  collapsed: !!v && !!_ && !q
92
92
  }), X = u ?? f, Z = f ? A[a(f)] : void 0, [Q, $] = E(null), ee = `${U}\u0000${s}`;
@@ -206,7 +206,7 @@ function V({ code: s, language: c, title: u, fileName: f, lineNumbers: p = !1, h
206
206
  //#endregion
207
207
  //#region src/code/CodeHighlightTabs.tsx
208
208
  function H({ files: n, value: i, defaultValue: o, onValueChange: s, label: l, lineNumbers: u, copyable: d = !0, maxHeight: f, expandable: m, wrap: h, languages: g, classes: _, className: v, ...y }) {
209
- let b = t("codeTabs", c, _), x = e().codeHighlight, S = w(), C = b(), j = T(null), [M, N] = E(o), P = i ?? M ?? n[0]?.name, F = n.find((e) => e.name === P) ?? n[0], I = (e) => `${S}tab${e}`, L = (e) => {
209
+ let b = e("codeTabs", c, _), x = t().codeHighlight, S = w(), C = b(), j = T(null), [M, N] = E(o), P = i ?? M ?? n[0]?.name, F = n.find((e) => e.name === P) ?? n[0], I = (e) => `${S}tab${e}`, L = (e) => {
210
210
  N(e), s?.(e);
211
211
  };
212
212
  return /* @__PURE__ */ O("div", {
@@ -271,24 +271,24 @@ function H({ files: n, value: i, defaultValue: o, onValueChange: s, label: l, li
271
271
  //#endregion
272
272
  //#region src/code/InlineCode.tsx
273
273
  var U = [];
274
- function W({ code: e, language: n = "text", languages: r = U, classes: i, className: a, ...o }) {
275
- let s = t("inlineCode", u, i), [c, l] = E(null), d = `${n}\u0000${e}`;
274
+ function W({ code: t, language: n = "text", languages: r = U, classes: i, className: a, ...o }) {
275
+ let s = e("inlineCode", u, i), [c, l] = E(null), d = `${n}\u0000${t}`;
276
276
  C(() => {
277
- let t = !1;
278
- return L(e, n, r).then((r) => {
279
- t || l({
280
- key: `${n}\u0000${e}`,
277
+ let e = !1;
278
+ return L(t, n, r).then((r) => {
279
+ e || l({
280
+ key: `${n}\u0000${t}`,
281
281
  tokens: r.flat()
282
282
  });
283
283
  }), () => {
284
- t = !0;
284
+ e = !0;
285
285
  };
286
286
  }, [
287
- e,
287
+ t,
288
288
  n,
289
289
  r
290
290
  ]);
291
- let f = c?.key === d ? c.tokens : R(e).flat();
291
+ let f = c?.key === d ? c.tokens : R(t).flat();
292
292
  return /* @__PURE__ */ D("code", {
293
293
  ...o,
294
294
  className: s({ class: a }),
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Confirm/ConfirmDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMzF,OAAO,EAAgB,KAAK,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAI5F,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAED,wGAAwG;AACxG,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,kBAAkB,+BAuHrG"}
1
+ {"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/Confirm/ConfirmDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMzF,OAAO,EAAgB,KAAK,oBAAoB,EAAuB,MAAM,cAAc,CAAC;AAI5F,MAAM,WAAW,kBAAkB;IAC/B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4GAA4G;IAC5G,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAED,wGAAwG;AACxG,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,EAAE,kBAAkB,+BA+HrG"}
@@ -20,6 +20,11 @@ export interface ConfirmOptions {
20
20
  typeToConfirm?: string;
21
21
  /** Where the dialog sits: centred (default), top, bottom, start or end */
22
22
  position?: DialogPosition;
23
+ /**
24
+ * `body` (default): the title below the header row; `header`: in the row of the close button. App-wide default:
25
+ * `titleInHeader` in the `defaultVariants` of the `dialog` recipe
26
+ */
27
+ titlePosition?: 'body' | 'header';
23
28
  /** Look of the confirm button – wins over ConfirmDialog `confirmButton`, e.g. `{ size: 'md' }` */
24
29
  confirmButton?: ConfirmButtonOptions;
25
30
  /** Look of the cancel button – wins over ConfirmDialog `cancelButton` */
@@ -1 +1 @@
1
- {"version":3,"file":"confirm.d.ts","sourceRoot":"","sources":["../../../src/components/Confirm/confirm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,2FAA2F;AAC3F,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;AAE7F,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,kGAAkG;IAClG,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,yEAAyE;IACzE,YAAY,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC;IACxE,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;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ACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAEjE;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAErE"}
@@ -38,11 +38,20 @@ export declare function DialogClose({ children }: {
38
38
  }): import("react").JSX.Element;
39
39
  export interface DialogContentProps extends Omit<ComponentProps<'div'>, 'title'> {
40
40
  title: string;
41
- /** The title only for screen readers – it still names the dialog (e.g. a video in a dialog) */
41
+ /**
42
+ * The title only for screen readers – it still names the dialog (e.g. a video in a dialog). With `header` this is
43
+ * the default; `false` shows the title where `titlePosition` puts it
44
+ */
42
45
  hideTitle?: boolean;
46
+ /**
47
+ * Own content in the header row, after the icon and before the close button – e.g. a logo or a badge; the title
48
+ * then only names the dialog for screen readers (unless `hideTitle` is `false`)
49
+ */
50
+ header?: ReactNode;
43
51
  /**
44
52
  * `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller
45
- * icon, the header separated by a line (as on the Drawer)
53
+ * icon, the header separated by a line (as on the Drawer). App-wide default: `titleInHeader` in the
54
+ * `defaultVariants` of the `dialog` recipe (RecipesProvider/ConfigProvider)
46
55
  */
47
56
  titlePosition?: 'body' | 'header';
48
57
  description?: string;
@@ -86,5 +95,5 @@ export interface DialogContentProps extends Omit<ComponentProps<'div'>, 'title'>
86
95
  classes?: RecipeClasses<typeof dialogRecipe>;
87
96
  }
88
97
  /** The modal window of a Dialog: title, description, focus trap, Escape closes */
89
- export declare function DialogContent({ classes, title, hideTitle, titlePosition, description, icon: Icon, status, size, position, fullscreen, maximizable, maximized, defaultMaximized, onMaximizedChange, draggable, closable, scrollBehavior, responsive, closeLabel, maximizeLabel, restoreLabel, footer, portalTarget, className, style, onKeyDown, children, ref, ...props }: DialogContentProps): import("react").JSX.Element;
98
+ export declare function DialogContent({ classes, title, hideTitle, header, titlePosition: titlePositionProp, description, icon: Icon, status, size, position, fullscreen, maximizable, maximized, defaultMaximized, onMaximizedChange, draggable, closable, scrollBehavior, responsive, closeLabel, maximizeLabel, restoreLabel, footer, portalTarget, className, style, onKeyDown, children, ref, ...props }: DialogContentProps): import("react").JSX.Element;
90
99
  //# sourceMappingURL=Dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,MAAM,IAAI,YAAY,EAGtB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAKH,KAAK,cAAc,EAGnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD;;;GAGG;AACH,eAAO,MAAM,iBAAiB;WAA0B,OAAO;iBAAe,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;EAEzG,CAAC;AAEH,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,8DAA8D;IAC9D,IAAI,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+BAA+B;IAC/B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gHAAgH;IAChH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED,iGAAiG;AACjG,wBAAgB,MAAM,CAAC,EACnB,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,IAAe,EACf,KAAY,EACZ,aAAoB,EACpB,sBAAsB,E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,EAAE,MAAM,CAAC;IACpB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mCAAmC;IACnC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,yGAAyG;IACzG,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAED,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,SAAS,EACT,aAAsB,EACtB,WAAW,EACX,IAAI,EAAE,IAAI,EACV,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,QAAe,EACf,cAAc,EACd,UAAiB,EACjB,UAAU,EACV,aAAa,EACb,YAAY,EACZ,MAAM,EACN,YAAY,EACZ,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACX,EAAE,kBAAkB,+BA4FpB"}
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGH,MAAM,IAAI,YAAY,EAGtB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAKH,KAAK,cAAc,EAGnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIpD;;;GAGG;AACH,eAAO,MAAM,iBAAiB;WAA0B,OAAO;iBAAe,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;EAEzG,CAAC;AAEH,MAAM,WA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EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,EACH,GAAG,KAAK,EACX,EAAE,kBAAkB,+BAuGpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialogHost.d.ts","sourceRoot":"","sources":["../../../src/components/DialogService/DialogHost.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAOzF,MAAM,WAAW,eAAe;IAC5B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAID,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,eAAe,iCAqDlE"}
1
+ {"version":3,"file":"DialogHost.d.ts","sourceRoot":"","sources":["../../../src/components/DialogService/DialogHost.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAOzF,MAAM,WAAW,eAAe;IAC5B,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAID,8EAA8E;AAC9E,wBAAgB,UAAU,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,eAAe,iCA2DlE"}