@humain/ui 2.4.1 → 2.4.3

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 (157) hide show
  1. package/dist/index150.js +1 -1
  2. package/dist/index150.js.map +1 -1
  3. package/dist/index194.js +6 -8
  4. package/dist/index194.js.map +1 -1
  5. package/dist/index24.js +1 -1
  6. package/dist/index24.js.map +1 -1
  7. package/dist/styles.css +1 -1
  8. package/dist/wc/AIClarificationCard.js +1 -1
  9. package/dist/wc/AIContainer.js +1 -1
  10. package/dist/wc/AIForm.js +17 -17
  11. package/dist/wc/AIInput.js +32 -32
  12. package/dist/wc/AIInput.js.map +1 -1
  13. package/dist/wc/AIMermaidDiagram.js +1 -1
  14. package/dist/wc/AIMessage.js +1 -1
  15. package/dist/wc/AIScrollButton.js +4 -4
  16. package/dist/wc/AIToolCall.js +5 -5
  17. package/dist/wc/AppSidebar.constants.js +1 -1
  18. package/dist/wc/AvatarFallback.js +5 -5
  19. package/dist/wc/CheckboxIndicator.js +7 -7
  20. package/dist/wc/CollapsiblePanel.js +1 -1
  21. package/dist/wc/DialogTrigger.js +9 -9
  22. package/dist/wc/DropdownMenu.js +16 -16
  23. package/dist/wc/MenuSubmenuTrigger.js +31 -31
  24. package/dist/wc/PopoverDescription.js +30 -30
  25. package/dist/wc/PrehydrationScript.js +1 -1
  26. package/dist/wc/Select.js +18 -18
  27. package/dist/wc/SelectSeparator.js +72 -72
  28. package/dist/wc/SelectSeparator.js.map +1 -1
  29. package/dist/wc/Tabs.js +18 -18
  30. package/dist/wc/TooltipProvider.js +9 -9
  31. package/dist/wc/chart.js +1 -1
  32. package/dist/wc/chunk-75Z2AOVW.js +39 -39
  33. package/dist/wc/chunk-OSK3NFVY.js +32 -32
  34. package/dist/wc/command.js +4 -4
  35. package/dist/wc/form-field.js +1 -1
  36. package/dist/wc/form-fieldset.js +5 -5
  37. package/dist/wc/hf-accordion-card.js +4 -4
  38. package/dist/wc/hf-accordion.js +6 -6
  39. package/dist/wc/hf-ai-feedback-bar.js +5 -5
  40. package/dist/wc/hf-ai-reasoning-block.js +6 -6
  41. package/dist/wc/hf-ai-system-message.js +1 -1
  42. package/dist/wc/hf-ai-tool-run.js +1 -1
  43. package/dist/wc/hf-area-chart.js +15 -15
  44. package/dist/wc/hf-autocomplete.js +36 -36
  45. package/dist/wc/hf-bar-chart.js +4 -4
  46. package/dist/wc/hf-calendar.js +4 -4
  47. package/dist/wc/hf-carousel.js +1 -1
  48. package/dist/wc/hf-context-menu.js +8 -8
  49. package/dist/wc/hf-donut-chart.js +10 -10
  50. package/dist/wc/hf-empty-state.js +87 -88
  51. package/dist/wc/hf-empty-state.js.map +1 -1
  52. package/dist/wc/hf-history.js +4 -4
  53. package/dist/wc/hf-horizontal-bar-chart.js +7 -7
  54. package/dist/wc/hf-hover-card.js +6 -6
  55. package/dist/wc/hf-line-chart.js +4 -4
  56. package/dist/wc/hf-metric-card.js +5 -5
  57. package/dist/wc/hf-metric-item.js +8 -8
  58. package/dist/wc/hf-metric-item.js.map +1 -1
  59. package/dist/wc/hf-nav-account-menu.js +4 -4
  60. package/dist/wc/hf-notification-panel.js +2 -2
  61. package/dist/wc/hf-pie-chart.js +17 -17
  62. package/dist/wc/hf-radar-chart.js +16 -16
  63. package/dist/wc/hf-section-header.js +6 -6
  64. package/dist/wc/hf-sheet.js +1 -1
  65. package/dist/wc/hf-sparkline-chart.js +5 -5
  66. package/dist/wc/hf-steps.js +6 -6
  67. package/dist/wc/journeyDiagram-3NMN7TZE.js +10 -10
  68. package/dist/wc/pieDiagram-E7YTZNPT.js +16 -16
  69. package/dist/wc/popupStateMapping.js +53 -53
  70. package/dist/wc/popupStateMapping.js.map +1 -1
  71. package/dist/wc/selection-group.js +1 -1
  72. package/dist/wc/selection-group.js.map +1 -1
  73. package/dist/wc/{useOpenChangeComplete.js → stateAttributesMapping.js} +21 -21
  74. package/dist/wc/stateAttributesMapping.js.map +1 -0
  75. package/dist/wc/stateDiagram-D77RDMKH.js +3 -3
  76. package/dist/wc/timeline-definition-24CTP7MA.js +19 -19
  77. package/dist/wc/useCollapsiblePanel.js +3 -3
  78. package/dist/wc/usePopupHandleStore.js +4 -4
  79. package/dist/wc/useScrollLock.js +1 -1
  80. package/dist/wc/vendor/recharts.js +525 -524
  81. package/dist/wc/vendor/recharts.js.map +1 -1
  82. package/dist/wc/xychartDiagram-S5SC5T6Z.js +6 -6
  83. package/dist/wc-react/AIClarificationCard.js +1 -1
  84. package/dist/wc-react/AIContainer.js +1 -1
  85. package/dist/wc-react/AIForm.js +17 -17
  86. package/dist/wc-react/AIInput.js +2 -2
  87. package/dist/wc-react/AIInput.js.map +1 -1
  88. package/dist/wc-react/AIMermaidDiagram.js +1 -1
  89. package/dist/wc-react/AIMessage.js +1 -1
  90. package/dist/wc-react/AIScrollButton.js +4 -4
  91. package/dist/wc-react/AIToolCall.js +5 -5
  92. package/dist/wc-react/AppSidebar.constants.js +1 -1
  93. package/dist/wc-react/AvatarFallback.js +5 -5
  94. package/dist/wc-react/CheckboxIndicator.js +7 -7
  95. package/dist/wc-react/CollapsiblePanel.js +1 -1
  96. package/dist/wc-react/DialogTrigger.js +9 -9
  97. package/dist/wc-react/DropdownMenu.js +16 -16
  98. package/dist/wc-react/FloatingPortalLite.js +3 -3
  99. package/dist/wc-react/MenuSubmenuTrigger.js +31 -31
  100. package/dist/wc-react/PopoverDescription.js +31 -31
  101. package/dist/wc-react/PrehydrationScript.js +1 -1
  102. package/dist/wc-react/Select.js +18 -18
  103. package/dist/wc-react/SelectSeparator.js +71 -70
  104. package/dist/wc-react/SelectSeparator.js.map +1 -1
  105. package/dist/wc-react/Tabs.js +18 -18
  106. package/dist/wc-react/TooltipProvider.js +9 -9
  107. package/dist/wc-react/chart.js +1 -1
  108. package/dist/wc-react/chunk-75Z2AOVW.js +39 -39
  109. package/dist/wc-react/chunk-OSK3NFVY.js +32 -32
  110. package/dist/wc-react/command.js +4 -4
  111. package/dist/wc-react/form-field.js +1 -1
  112. package/dist/wc-react/form-fieldset.js +77 -77
  113. package/dist/wc-react/hf-accordion-card.js +4 -4
  114. package/dist/wc-react/hf-accordion.js +6 -6
  115. package/dist/wc-react/hf-ai-feedback-bar.js +5 -5
  116. package/dist/wc-react/hf-ai-reasoning-block.js +6 -6
  117. package/dist/wc-react/hf-ai-system-message.js +1 -1
  118. package/dist/wc-react/hf-ai-tool-run.js +1 -1
  119. package/dist/wc-react/hf-autocomplete.js +37 -37
  120. package/dist/wc-react/hf-calendar.js +4 -4
  121. package/dist/wc-react/hf-carousel.js +1 -1
  122. package/dist/wc-react/hf-context-menu.js +8 -8
  123. package/dist/wc-react/hf-data-table.js +1 -1
  124. package/dist/wc-react/hf-empty-state.js +87 -88
  125. package/dist/wc-react/hf-empty-state.js.map +1 -1
  126. package/dist/wc-react/hf-history.js +4 -4
  127. package/dist/wc-react/hf-hover-card.js +6 -6
  128. package/dist/wc-react/hf-metric-item.js +6 -6
  129. package/dist/wc-react/hf-metric-item.js.map +1 -1
  130. package/dist/wc-react/hf-nav-account-menu.js +4 -4
  131. package/dist/wc-react/hf-notification-panel.js +2 -2
  132. package/dist/wc-react/hf-section-header.js +6 -6
  133. package/dist/wc-react/hf-sheet.js +1 -1
  134. package/dist/wc-react/hf-steps.js +5 -5
  135. package/dist/wc-react/journeyDiagram-3NMN7TZE.js +10 -10
  136. package/dist/wc-react/pieDiagram-E7YTZNPT.js +16 -16
  137. package/dist/wc-react/popupStateMapping.js +54 -54
  138. package/dist/wc-react/popupStateMapping.js.map +1 -1
  139. package/dist/wc-react/selection-group.js +1 -1
  140. package/dist/wc-react/selection-group.js.map +1 -1
  141. package/dist/wc-react/{useOpenChangeComplete.js → stateAttributesMapping.js} +19 -19
  142. package/dist/wc-react/stateAttributesMapping.js.map +1 -0
  143. package/dist/wc-react/stateDiagram-D77RDMKH.js +3 -3
  144. package/dist/wc-react/timeline-definition-24CTP7MA.js +19 -19
  145. package/dist/wc-react/useCollapsiblePanel.js +3 -3
  146. package/dist/wc-react/usePopupHandleStore.js +3 -3
  147. package/dist/wc-react/useScrollLock.js +1 -1
  148. package/dist/wc-react/vendor/recharts.js +525 -524
  149. package/dist/wc-react/vendor/recharts.js.map +1 -1
  150. package/dist/wc-react/xychartDiagram-S5SC5T6Z.js +6 -6
  151. package/package.json +1 -1
  152. package/skills/humain-ui/SKILL.md +1 -1
  153. package/skills/humain-ui-wc/SKILL.md +1 -1
  154. package/skills/humain-ui-wc.skill +0 -0
  155. package/skills/humain-ui.skill +0 -0
  156. package/dist/wc/useOpenChangeComplete.js.map +0 -1
  157. package/dist/wc-react/useOpenChangeComplete.js.map +0 -1
@@ -2,8 +2,8 @@ import { t as M } from "./dist.js";
2
2
  import { t as k } from "./createLucideIcon.js";
3
3
  import { t as E } from "./chevron-right.js";
4
4
  import { t as T } from "./Switch.js";
5
- import { t as z } from "./create-safe-context.js";
6
- import { c as O, f as s, s as x } from "./_shared.js";
5
+ import { c as z, f as s, s as x } from "./_shared.js";
6
+ import { t as O } from "./create-safe-context.js";
7
7
  import { t as P } from "./use-controllable-state.js";
8
8
  import { t as S } from "./Kbd.js";
9
9
  import { a as j, i as V, s as b } from "./Popover2.js";
@@ -24,7 +24,7 @@ var D = [
24
24
  d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",
25
25
  key: "1uf3rs"
26
26
  }]
27
- ], H = k("log-out", D), [I, y] = z("NavAccountMenu");
27
+ ], H = k("log-out", D), [I, y] = O("NavAccountMenu");
28
28
  function C({ type: e = "card", open: t, defaultOpen: n = !1, onOpenChange: r, children: a }) {
29
29
  const [l, i] = P({
30
30
  value: t,
@@ -322,7 +322,7 @@ var p = {
322
322
  }
323
323
  _setProp(e, t) {
324
324
  const n = p[e] || "string";
325
- this._props[e] = O(t, n), this._render();
325
+ this._props[e] = z(t, n), this._render();
326
326
  }
327
327
  _getProp(e) {
328
328
  if (e in this._props) return this._props[e];
@@ -6,10 +6,10 @@ import { t as D } from "./settings.js";
6
6
  import { t as O } from "./Avatar.js";
7
7
  import { t as R } from "./x.js";
8
8
  import { c as T, f as d, s as _ } from "./_shared.js";
9
- import { t as C } from "./react.js";
10
- import { t as E } from "./use-reduced-motion2.js";
11
9
  import { t as h } from "./button.js";
12
10
  import { t as L } from "./scroll-area.js";
11
+ import { t as C } from "./react.js";
12
+ import { t as E } from "./use-reduced-motion2.js";
13
13
  import g, { useMemo as I } from "react";
14
14
  import { createRoot as B } from "react-dom/client";
15
15
  import { jsx as a, jsxs as r } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import { t as A } from "./search.js";
2
2
  import { c as k, f as l, s as g } from "./_shared.js";
3
- import { n as z, r as I } from "./Toggle2.js";
4
- import { t as L } from "./button.js";
5
- import { t as P } from "./Input2.js";
6
3
  import { t as h } from "./Tabs.js";
4
+ import { t as z } from "./button.js";
5
+ import { n as I, r as L } from "./Toggle2.js";
6
+ import { t as P } from "./Input2.js";
7
7
  import { t as V } from "./Separator3.js";
8
8
  import * as m from "react";
9
9
  import x from "react";
@@ -24,7 +24,7 @@ function D(e, t, r = "section-header-action") {
24
24
  }
25
25
  function R({ action: e, className: t }) {
26
26
  const { label: r, className: s, ...a } = e;
27
- return /* @__PURE__ */ n(L, {
27
+ return /* @__PURE__ */ n(z, {
28
28
  appearance: "solid",
29
29
  size: "default",
30
30
  shape: "rounded",
@@ -34,14 +34,14 @@ function R({ action: e, className: t }) {
34
34
  });
35
35
  }
36
36
  function G({ items: e, className: t, ...r }) {
37
- return /* @__PURE__ */ n(z, {
37
+ return /* @__PURE__ */ n(I, {
38
38
  variant: "outline",
39
39
  shape: "rounded",
40
40
  className: l("overflow-hidden rounded-xl", t),
41
41
  ...r,
42
42
  children: e.map((s) => {
43
43
  const { label: a, className: o, ...i } = s;
44
- return /* @__PURE__ */ n(I, {
44
+ return /* @__PURE__ */ n(L, {
45
45
  className: l("px-3 text-xs font-medium", o),
46
46
  ...i,
47
47
  children: a
@@ -1,8 +1,8 @@
1
1
  import { t as K } from "./dist.js";
2
2
  import { t as M } from "./x.js";
3
3
  import { a as X, f as i, i as $, l as p, o as q, t as G, u as I } from "./_shared.js";
4
- import { t as J } from "./use-controllable-state.js";
5
4
  import { t as b } from "./button.js";
5
+ import { t as J } from "./use-controllable-state.js";
6
6
  import { a as Q, c as U, i as Y, l as _, n as Z, t as L, u as ee } from "./DialogTrigger.js";
7
7
  import { t as te } from "./DialogRoot.js";
8
8
  import { t as ae } from "./DialogViewport.js";
@@ -1,7 +1,7 @@
1
1
  import { t as _ } from "./dist.js";
2
2
  import { t as D } from "./check.js";
3
- import { t as O } from "./create-safe-context.js";
4
- import { c as L, f as p, p as M, s as T } from "./_shared.js";
3
+ import { c as O, f as p, p as L, s as T } from "./_shared.js";
4
+ import { t as M } from "./create-safe-context.js";
5
5
  import * as u from "react";
6
6
  import C from "react";
7
7
  import { createRoot as H } from "react-dom/client";
@@ -44,7 +44,7 @@ var R = _("flex items-center justify-center shrink-0 size-[38px] font-medium tex
44
44
  incomplete: "text-secondary-foreground"
45
45
  } },
46
46
  defaultVariants: { status: "incomplete" }
47
- }), F = _("text-sm leading-5 text-secondary-foreground"), [X, q] = O("Steps"), w = u.createContext(0);
47
+ }), F = _("text-sm leading-5 text-secondary-foreground"), [X, q] = M("Steps"), w = u.createContext(0);
48
48
  function B({ index: e, status: t, shape: r, bulletType: o, showIncompleteDot: i = !0 }) {
49
49
  return o === "icon" ? t === "complete" ? /* @__PURE__ */ n(D, { className: "size-[22px] delight-check-draw" }) : t === "active" ? /* @__PURE__ */ n("div", { className: p("size-5 bg-primary", r === "rounded" ? "rounded-sm" : "rounded-full") }) : i ? /* @__PURE__ */ n("div", { className: "size-1.5 rounded-full bg-current" }) : null : e + 1;
50
50
  }
@@ -119,7 +119,7 @@ function E({ status: e, onClick: t, showIncompleteDot: r, children: o, className
119
119
  className: "flex items-center",
120
120
  children: [k, z]
121
121
  })]
122
- }), N = u.useMemo(() => M(h), [h]), P = d === "complete" ? ", completed" : d === "active" ? ", current" : "";
122
+ }), N = u.useMemo(() => L(h), [h]), P = d === "complete" ? ", completed" : d === "active" ? ", current" : "";
123
123
  return /* @__PURE__ */ n("li", {
124
124
  "data-slot": "steps-item",
125
125
  "aria-current": d === "active" ? "step" : void 0,
@@ -231,7 +231,7 @@ var x = {
231
231
  }
232
232
  _setProp(e, t) {
233
233
  const r = x[e] || "string";
234
- this._props[e] = L(t, r), this._render();
234
+ this._props[e] = O(t, r), this._render();
235
235
  }
236
236
  _getProp(e) {
237
237
  if (e in this._props) return this._props[e];
@@ -1,4 +1,4 @@
1
- import { Ot as rt, u as U } from "./vendor/recharts.js";
1
+ import { Et as rt, u as U } from "./vendor/recharts.js";
2
2
  import { n as s } from "./chunk-Y2CYZVJY.js";
3
3
  import { H as mt, K as xt, U as kt, a as _t, c as bt, v as vt, w as wt, x as V, y as Tt } from "./chunk-DU6HZSFF.js";
4
4
  import { t as St } from "./chunk-5VM5RSS4.js";
@@ -165,7 +165,7 @@ var K = (function() {
165
165
  }, "parseError"),
166
166
  parse: /* @__PURE__ */ s(function(i) {
167
167
  var a = this, o = [0], f = [], p = [null], u = [], _ = this.table, x = "", C = 0, A = 0, D = 0, dt = 2, tt = 1, ft = u.slice.call(arguments, 1), k = Object.create(this.lexer), P = { yy: {} };
168
- for (var W in this.yy) Object.prototype.hasOwnProperty.call(this.yy, W) && (P.yy[W] = this.yy[W]);
168
+ for (var O in this.yy) Object.prototype.hasOwnProperty.call(this.yy, O) && (P.yy[O] = this.yy[O]);
169
169
  k.setInput(i, P.yy), P.yy.lexer = k, P.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
170
170
  var Y = k.yylloc;
171
171
  u.push(Y);
@@ -705,7 +705,7 @@ var Ct = K, R = "", J = [], L = [], B = [], Pt = /* @__PURE__ */ s(function() {
705
705
  }, "drawLabel"), zt = /* @__PURE__ */ s(function(e, t, l) {
706
706
  const d = e.append("g"), r = ot();
707
707
  r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = l.width * t.taskCount + l.diagramMarginX * (t.taskCount - 1), r.height = l.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Q(d, r), ut(l)(t.text, d, r.x, r.y, r.width, r.height, { class: "journey-section section-type-" + t.num }, l, t.colour);
708
- }, "drawSection"), Z = -1, Ot = /* @__PURE__ */ s(function(e, t, l, d) {
708
+ }, "drawSection"), Z = -1, Wt = /* @__PURE__ */ s(function(e, t, l, d) {
709
709
  const r = t.x + l.width / 2, c = e.append("g");
710
710
  Z++, c.append("line").attr("id", d + "-task" + Z).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), jt(c, {
711
711
  cx: r,
@@ -727,7 +727,7 @@ var Ct = K, R = "", J = [], L = [], B = [], Pt = /* @__PURE__ */ s(function() {
727
727
  };
728
728
  ct(c, n), y += 10;
729
729
  }), ut(l)(t.task, c, h.x, h.y, h.width, h.height, { class: "task" }, l, t.colour);
730
- }, "drawTask"), Wt = /* @__PURE__ */ s(function(e, t) {
730
+ }, "drawTask"), Ot = /* @__PURE__ */ s(function(e, t) {
731
731
  Mt(e, t);
732
732
  }, "drawBackgroundRect"), ut = /* @__PURE__ */ (function() {
733
733
  function e(r, c, h, y, g, m, n, i) {
@@ -759,8 +759,8 @@ var Ct = K, R = "", J = [], L = [], B = [], Pt = /* @__PURE__ */ s(function() {
759
759
  drawSection: zt,
760
760
  drawText: ht,
761
761
  drawLabel: Nt,
762
- drawTask: Ot,
763
- drawBackgroundRect: Wt,
762
+ drawTask: Wt,
763
+ drawBackgroundRect: Ot,
764
764
  initGraphics: /* @__PURE__ */ s(function(e, t) {
765
765
  Z = -1, e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
766
766
  }, "initGraphics")
@@ -768,10 +768,10 @@ var Ct = K, R = "", J = [], L = [], B = [], Pt = /* @__PURE__ */ s(function() {
768
768
  Object.keys(e).forEach(function(t) {
769
769
  S[t] = e[t];
770
770
  });
771
- }, "setConf"), M = {}, O = 0;
771
+ }, "setConf"), M = {}, W = 0;
772
772
  function yt(e) {
773
773
  const t = V().journey, l = t.maxLabelWidth;
774
- O = 0;
774
+ W = 0;
775
775
  let d = 60;
776
776
  Object.keys(M).forEach((r) => {
777
777
  const c = M[r].color, h = {
@@ -811,7 +811,7 @@ function yt(e) {
811
811
  text: n,
812
812
  textMargin: t.boxTextMargin ?? 5
813
813
  }, o = j.drawText(e, a).node().getBoundingClientRect().width;
814
- o > O && o > t.leftMargin - o && (O = o);
814
+ o > W && o > t.leftMargin - o && (W = o);
815
815
  }), d += Math.max(20, m.length * 20);
816
816
  });
817
817
  }
@@ -832,7 +832,7 @@ var S = V().journey, E = 0, qt = /* @__PURE__ */ s(function(e, t, l, d) {
832
832
  color: S.actorColours[p % S.actorColours.length],
833
833
  position: p
834
834
  }, p++;
835
- }), yt(i), E = S.leftMargin + O, T.insert(0, 0, E, Object.keys(M).length * 50), Xt(i, a, 0, t);
835
+ }), yt(i), E = S.leftMargin + W, T.insert(0, 0, E, Object.keys(M).length * 50), Xt(i, a, 0, t);
836
836
  const u = T.getBounds();
837
837
  o && i.append("text").text(o).attr("x", E).attr("font-size", h).attr("font-weight", "bold").attr("y", 25).attr("fill", c).attr("font-family", y);
838
838
  const _ = u.stopy - u.starty + 2 * S.diagramMarginY, x = E + u.stopx + 2 * S.diagramMarginX;
@@ -1,4 +1,4 @@
1
- import { $ as et, Ot as N, Tt as at } from "./vendor/recharts.js";
1
+ import { $ as et, Ct as at, Et as N } from "./vendor/recharts.js";
2
2
  import { n as rt } from "./mermaid-parser.core.js";
3
3
  import { n } from "./chunk-Y2CYZVJY.js";
4
4
  import { t as z } from "./chunk-X3CZISLH.js";
@@ -35,7 +35,7 @@ var I = ct.pie, H = {
35
35
  }, "populateDb"), wt = { parse: /* @__PURE__ */ n(async (t) => {
36
36
  const a = await rt("pie", t);
37
37
  z.debug(a), xt(a, B);
38
- }, "parse") }, $t = /* @__PURE__ */ n((t) => `
38
+ }, "parse") }, Ct = /* @__PURE__ */ n((t) => `
39
39
  .pieCircle{
40
40
  stroke: ${t.pieStrokeColor};
41
41
  stroke-width : ${t.pieStrokeWidth};
@@ -72,7 +72,7 @@ var I = ct.pie, H = {
72
72
  font-family: ${t.fontFamily};
73
73
  font-size: ${t.pieLegendTextSize};
74
74
  }
75
- `, "getStyles"), Ct = /* @__PURE__ */ n((t) => {
75
+ `, "getStyles"), $t = /* @__PURE__ */ n((t) => {
76
76
  const a = [...t.values()].reduce((s, l) => s + l, 0), L = [...t.entries()].map(([s, l]) => ({
77
77
  label: s,
78
78
  value: l
@@ -84,14 +84,14 @@ var I = ct.pie, H = {
84
84
  renderer: { draw: /* @__PURE__ */ n((t, a, L, s) => {
85
85
  z.debug(`rendering pie chart
86
86
  ` + t);
87
- const l = s.db, O = gt(), c = ut(l.getConfig(), O.pie), U = 40, w = 18, K = 4, $ = 450, C = $, D = St(a), m = D.append("g");
87
+ const l = s.db, W = gt(), c = ut(l.getConfig(), W.pie), U = 40, w = 18, K = 4, C = 450, $ = C, D = St(a), m = D.append("g");
88
88
  m.attr("transform", "translate(225,225)");
89
- const { themeVariables: i } = O;
90
- let [W] = mt(i.pieOuterStrokeWidth);
91
- W ??= 2;
92
- const V = c.legendPosition, F = c.textPosition, X = c.donutHole > 0 && c.donutHole <= 0.9 ? c.donutHole : 0, g = Math.min(C, $) / 2 - U, Z = N().innerRadius(X * g).outerRadius(g), j = N().innerRadius(g * F).outerRadius(g * F), f = m.append("g");
93
- f.append("circle").attr("cx", 0).attr("cy", 0).attr("r", g + W / 2).attr("class", "pieOuterCircle");
94
- const S = l.getSections(), q = Ct(S), J = [
89
+ const { themeVariables: i } = W;
90
+ let [F] = mt(i.pieOuterStrokeWidth);
91
+ F ??= 2;
92
+ const V = c.legendPosition, M = c.textPosition, X = c.donutHole > 0 && c.donutHole <= 0.9 ? c.donutHole : 0, g = Math.min($, C) / 2 - U, Z = N().innerRadius(X * g).outerRadius(g), j = N().innerRadius(g * M).outerRadius(g * M), f = m.append("g");
93
+ f.append("circle").attr("cx", 0).attr("cy", 0).attr("r", g + F / 2).attr("class", "pieOuterCircle");
94
+ const S = l.getSections(), q = $t(S), J = [
95
95
  i.pie1,
96
96
  i.pie2,
97
97
  i.pie3,
@@ -109,18 +109,18 @@ var I = ct.pie, H = {
109
109
  S.forEach((e) => {
110
110
  y += e;
111
111
  });
112
- const M = q.filter((e) => (e.data.value / y * 100).toFixed(0) !== "0"), T = et(J).domain([...S.keys()]);
113
- f.selectAll("mySlices").data(M).enter().append("path").attr("d", Z).attr("fill", (e) => T(e.data.label)).attr("class", (e) => {
112
+ const O = q.filter((e) => (e.data.value / y * 100).toFixed(0) !== "0"), T = et(J).domain([...S.keys()]);
113
+ f.selectAll("mySlices").data(O).enter().append("path").attr("d", Z).attr("fill", (e) => T(e.data.label)).attr("class", (e) => {
114
114
  let r = "pieCircle";
115
115
  return c.highlightSlice === "hover" ? r += " highlightedOnHover" : c.highlightSlice === e.data.label && (r += " highlighted"), r;
116
- }), f.selectAll("mySlices").data(M).enter().append("text").text((e) => (e.data.value / y * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + j.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice");
116
+ }), f.selectAll("mySlices").data(O).enter().append("text").text((e) => (e.data.value / y * 100).toFixed(0) + "%").attr("transform", (e) => "translate(" + j.centroid(e) + ")").style("text-anchor", "middle").attr("class", "slice");
117
117
  const Q = m.append("text").text(l.getDiagramTitle()).attr("x", 0).attr("y", -200).attr("class", "pieTitleText"), u = [...S.entries()].map(([e, r]) => ({
118
118
  label: e,
119
119
  value: r
120
120
  })), d = m.selectAll(".legend").data(u).enter().append("g").attr("class", "legend");
121
121
  d.append("rect").attr("width", w).attr("height", w).style("fill", (e) => T(e.label)).style("stroke", (e) => T(e.label)), d.append("text").attr("x", 22).attr("y", 14).text((e) => l.getShowData() ? `${e.label} [${e.value}]` : e.label);
122
122
  const h = Math.max(...d.selectAll("text").nodes().map((e) => e?.getBoundingClientRect().width ?? 0));
123
- let v = $, A = 490;
123
+ let v = C, A = 490;
124
124
  const o = 22, b = u.length * o;
125
125
  switch (V) {
126
126
  case "center":
@@ -153,10 +153,10 @@ var I = ct.pie, H = {
153
153
  return "translate(216," + (r * o - p) + ")";
154
154
  });
155
155
  }
156
- const P = Q.node()?.getBoundingClientRect().width ?? 0, Y = C / 2 - P / 2, tt = C / 2 + P / 2, R = Math.min(0, Y), G = Math.max(A, tt) - R;
156
+ const P = Q.node()?.getBoundingClientRect().width ?? 0, Y = $ / 2 - P / 2, tt = $ / 2 + P / 2, R = Math.min(0, Y), G = Math.max(A, tt) - R;
157
157
  D.attr("viewBox", `${R} 0 ${G} ${v}`), lt(D, v, G, c.useMaxWidth);
158
158
  }, "draw") },
159
- styles: $t
159
+ styles: Ct
160
160
  };
161
161
  export {
162
162
  zt as diagram
@@ -1,4 +1,4 @@
1
- import { at as vt, it as yt } from "./vendor/recharts.js";
1
+ import { Dt as vt, Ot as yt } from "./vendor/recharts.js";
2
2
  import { a as B, c as Rt, d as z, f as Q, g as Le, m as Ct, p as de, t as Ue } from "./floating-ui.utils.dom.js";
3
3
  import { t as j } from "./owner.js";
4
4
  import { n as C, t as v } from "./useIsoLayoutEffect.js";
@@ -12,12 +12,12 @@ import { n as W, r as pe, t as Bt } from "./shadowDom.js";
12
12
  import { i as Lt, n as ge } from "./element.js";
13
13
  import { t as T } from "./addEventListener.js";
14
14
  import { t as Ut } from "./visuallyHidden.js";
15
- import { a as Vt, i as ke, o as Kt, t as Wt } from "./useOpenChangeComplete.js";
16
- import { n as Ae, t as Fe } from "./useTimeout.js";
15
+ import { n as ke, t as Ae } from "./useTimeout.js";
16
+ import { a as Vt, n as Kt, r as Wt, t as Fe } from "./stateAttributesMapping.js";
17
17
  import * as c from "react";
18
- import * as Re from "react-dom";
19
18
  import { jsx as G, jsxs as De } from "react/jsx-runtime";
20
- var Gt = At, Ke = vt(), jt = yt();
19
+ import * as Re from "react-dom";
20
+ var Gt = At;
21
21
  function Ee(e, t, n = !0) {
22
22
  return e.filter((r) => r.parentId === t).flatMap((r) => [...!n || r.context?.open ? [r] : [], ...Ee(e, r.id, n)]);
23
23
  }
@@ -29,8 +29,8 @@ function Qn(e, t) {
29
29
  }
30
30
  return n;
31
31
  }
32
- var Yt = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
33
- function Xt(e) {
32
+ var jt = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
33
+ function Yt(e) {
34
34
  const t = e.assignedSlot;
35
35
  if (t) return t;
36
36
  if (e.parentElement) return e.parentElement;
@@ -41,27 +41,27 @@ function be(e) {
41
41
  for (const t of Array.from(e.children)) if (B(t) === "summary") return t;
42
42
  return null;
43
43
  }
44
- function $t(e, t) {
44
+ function Xt(e, t) {
45
45
  const n = be(t);
46
46
  return !!n && (e === n || W(n, e));
47
47
  }
48
- function We(e) {
48
+ function Ke(e) {
49
49
  const t = e ? B(e) : "";
50
- return e != null && e.matches(Yt) && (t !== "summary" || e.parentElement != null && B(e.parentElement) === "details" && be(e.parentElement) === e) && (t !== "details" || be(e) == null) && (t !== "input" || e.type !== "hidden");
50
+ return e != null && e.matches(jt) && (t !== "summary" || e.parentElement != null && B(e.parentElement) === "details" && be(e.parentElement) === e) && (t !== "details" || be(e) == null) && (t !== "input" || e.type !== "hidden");
51
51
  }
52
- function Ge(e) {
53
- if (!We(e) || !e.isConnected || e.matches(":disabled")) return !1;
54
- for (let t = e; t; t = Xt(t)) {
52
+ function We(e) {
53
+ if (!Ke(e) || !e.isConnected || e.matches(":disabled")) return !1;
54
+ for (let t = e; t; t = Yt(t)) {
55
55
  const n = t !== e, r = B(t) === "slot";
56
- if (t.hasAttribute("inert") || n && B(t) === "details" && !t.open && !$t(e, t) || t.hasAttribute("hidden") || !r && !qt(t, n)) return !1;
56
+ if (t.hasAttribute("inert") || n && B(t) === "details" && !t.open && !Xt(e, t) || t.hasAttribute("hidden") || !r && !$t(t, n)) return !1;
57
57
  }
58
58
  return !0;
59
59
  }
60
- function qt(e, t) {
60
+ function $t(e, t) {
61
61
  const n = Ue(e);
62
62
  return t ? n.display !== "none" : Ft(e, n);
63
63
  }
64
- function je(e) {
64
+ function Ge(e) {
65
65
  const t = e.tabIndex;
66
66
  if (t < 0) {
67
67
  const n = B(e);
@@ -74,7 +74,7 @@ function he(e) {
74
74
  const t = e;
75
75
  return t.type === "radio" && t.name !== "" ? t : null;
76
76
  }
77
- function zt(e, t) {
77
+ function qt(e, t) {
78
78
  const n = he(e);
79
79
  if (!n) return !0;
80
80
  const r = t.find((s) => {
@@ -86,47 +86,47 @@ function zt(e, t) {
86
86
  return i?.name === n.name && i.form === n.form;
87
87
  }) === n;
88
88
  }
89
- function Ye(e) {
89
+ function je(e) {
90
90
  if (Q(e) && B(e) === "slot") {
91
91
  const t = e.assignedElements({ flatten: !0 });
92
92
  if (t.length > 0) return t;
93
93
  }
94
94
  return Q(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
95
95
  }
96
- function Xe(e, t) {
97
- Ye(e).forEach((n) => {
98
- We(n) && t.push(n), Xe(n, t);
96
+ function Ye(e, t) {
97
+ je(e).forEach((n) => {
98
+ Ke(n) && t.push(n), Ye(n, t);
99
99
  });
100
100
  }
101
- function $e(e, t, n) {
102
- Ye(e).forEach((r) => {
103
- Q(r) && r.matches(t) && n.push(r), $e(r, t, n);
101
+ function Xe(e, t, n) {
102
+ je(e).forEach((r) => {
103
+ Q(r) && r.matches(t) && n.push(r), Xe(r, t, n);
104
104
  });
105
105
  }
106
106
  function Zn(e) {
107
- return Ge(e) && je(e) >= 0;
107
+ return We(e) && Ge(e) >= 0;
108
108
  }
109
- function Jt(e) {
109
+ function zt(e) {
110
110
  const t = [];
111
- return Xe(e, t), t.filter(Ge);
111
+ return Ye(e, t), t.filter(We);
112
112
  }
113
113
  function Ce(e) {
114
- const t = Jt(e);
115
- return t.filter((n) => je(n) >= 0 && zt(n, t));
114
+ const t = zt(e);
115
+ return t.filter((n) => Ge(n) >= 0 && qt(n, t));
116
116
  }
117
- function qe(e, t) {
117
+ function $e(e, t) {
118
118
  const n = Ce(e), r = n.length;
119
119
  if (r === 0) return;
120
120
  const s = Bt(j(e)), i = n.indexOf(s);
121
121
  return n[i === -1 ? t === 1 ? 0 : r - 1 : i + t];
122
122
  }
123
- function Qt(e) {
124
- return qe(j(e).body, 1) || e;
123
+ function Jt(e) {
124
+ return $e(j(e).body, 1) || e;
125
125
  }
126
- function Zt(e) {
127
- return qe(j(e).body, -1) || e;
126
+ function Qt(e) {
127
+ return $e(j(e).body, -1) || e;
128
128
  }
129
- function ze(e, t) {
129
+ function qe(e, t) {
130
130
  if (!e) return null;
131
131
  const n = Ce(j(e).body), r = n.length;
132
132
  if (r === 0) return null;
@@ -134,28 +134,28 @@ function ze(e, t) {
134
134
  return s === -1 ? null : n[(s + t + r) % r];
135
135
  }
136
136
  function er(e) {
137
- return ze(e, 1);
137
+ return qe(e, 1);
138
138
  }
139
139
  function tr(e) {
140
- return ze(e, -1);
140
+ return qe(e, -1);
141
141
  }
142
142
  function me(e, t) {
143
143
  const n = t || e.currentTarget, r = e.relatedTarget;
144
144
  return !r || !W(n, r);
145
145
  }
146
- function en(e) {
146
+ function Zt(e) {
147
147
  Ce(e).forEach((t) => {
148
148
  t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
149
149
  });
150
150
  }
151
151
  function He(e) {
152
152
  const t = [];
153
- $e(e, "[data-tabindex]", t), t.forEach((n) => {
153
+ Xe(e, "[data-tabindex]", t), t.forEach((n) => {
154
154
  const r = n.dataset.tabindex;
155
155
  delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
156
156
  });
157
157
  }
158
- var Se = [], Te = void 0;
158
+ var ze = yt(), en = vt(), Se = [], Te = void 0;
159
159
  function tn() {
160
160
  return Te;
161
161
  }
@@ -197,7 +197,7 @@ function an(e, t, n, r, s) {
197
197
  r,
198
198
  s
199
199
  ]);
200
- return (0, Ke.useSyncExternalStore)(e.subscribe, i, i);
200
+ return (0, ze.useSyncExternalStore)(e.subscribe, i, i);
201
201
  }
202
202
  nn({
203
203
  before(e) {
@@ -219,7 +219,7 @@ nn({
219
219
  return () => {
220
220
  for (const s of r) s();
221
221
  };
222
- }), (0, Ke.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
222
+ }), (0, ze.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
223
223
  }
224
224
  });
225
225
  function un(e, t, n, r, s) {
@@ -238,7 +238,7 @@ function un(e, t, n, r, s) {
238
238
  }, i.syncHooks.push(l)), l.value;
239
239
  }
240
240
  function cn(e, t, n, r, s) {
241
- return (0, jt.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (i) => t(i, n, r, s));
241
+ return (0, en.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (i) => t(i, n, r, s));
242
242
  }
243
243
  var ln = class {
244
244
  constructor(e) {
@@ -428,7 +428,7 @@ var cr = /* @__PURE__ */ c.forwardRef(function(t, n) {
428
428
  c.useEffect(() => {
429
429
  if (!o || Y) return;
430
430
  function x(N) {
431
- o && N.relatedTarget && me(N) && (N.type === "focusin" ? _.current && (He(o), _.current = !1) : (en(o), _.current = !0));
431
+ o && N.relatedTarget && me(N) && (N.type === "focusin" ? _.current && (He(o), _.current = !1) : (Zt(o), _.current = !0));
432
432
  }
433
433
  return re(T(o, "focusin", x, !0), T(o, "focusout", x, !0));
434
434
  }, [o, Y]), v(() => {
@@ -452,7 +452,7 @@ var cr = /* @__PURE__ */ c.forwardRef(function(t, n) {
452
452
  if (me(x, o)) S.current?.focus();
453
453
  else {
454
454
  const N = y ? y.domReference : null;
455
- Zt(N)?.focus();
455
+ Qt(N)?.focus();
456
456
  }
457
457
  }
458
458
  }),
@@ -468,7 +468,7 @@ var cr = /* @__PURE__ */ c.forwardRef(function(t, n) {
468
468
  if (me(x, o)) E.current?.focus();
469
469
  else {
470
470
  const N = y ? y.domReference : null;
471
- Qt(N)?.focus(), y?.closeOnFocusOut && y?.onOpenChange(!1, J("focus-out", x.nativeEvent));
471
+ Jt(N)?.focus(), y?.closeOnFocusOut && y?.onOpenChange(!1, J("focus-out", x.nativeEvent));
472
472
  }
473
473
  }
474
474
  })
@@ -547,7 +547,7 @@ function Tn(e) {
547
547
  };
548
548
  }
549
549
  function pr(e, t = {}) {
550
- const { enabled: n = !0, escapeKey: r = !0, outsidePress: s = !0, outsidePressEvent: i = "sloppy", referencePress: p = Sn, bubbles: l, externalTree: f } = t, o = "rootStore" in e ? e.rootStore : e, g = o.useState("open"), b = o.useState("floatingElement"), { dataRef: d } = o.context, h = rt(f), S = C(typeof s == "function" ? s : () => !1), E = typeof s == "function" ? S : s, y = E !== !1, Z = C(() => i), { escapeKey: _, outsidePress: Y } = Tn(l), A = c.useRef(!1), F = c.useRef(!1), k = c.useRef(!1), x = c.useRef(!1), N = c.useRef(""), R = c.useRef(null), X = Ae(), Oe = Ae(), D = C(() => {
550
+ const { enabled: n = !0, escapeKey: r = !0, outsidePress: s = !0, outsidePressEvent: i = "sloppy", referencePress: p = Sn, bubbles: l, externalTree: f } = t, o = "rootStore" in e ? e.rootStore : e, g = o.useState("open"), b = o.useState("floatingElement"), { dataRef: d } = o.context, h = rt(f), S = C(typeof s == "function" ? s : () => !1), E = typeof s == "function" ? S : s, y = E !== !1, Z = C(() => i), { escapeKey: _, outsidePress: Y } = Tn(l), A = c.useRef(!1), F = c.useRef(!1), k = c.useRef(!1), x = c.useRef(!1), N = c.useRef(""), R = c.useRef(null), X = ke(), Oe = ke(), D = C(() => {
551
551
  Oe.clear(), d.current.insideReactTree = !1;
552
552
  }), se = C((m) => {
553
553
  const M = d.current.floatingContext?.nodeId;
@@ -570,7 +570,7 @@ function pr(e, t = {}) {
570
570
  c.useEffect(() => {
571
571
  if (!g || !n) return D;
572
572
  d.current.__escapeKeyBubbles = _, d.current.__outsidePressBubbles = Y;
573
- const m = new Fe(), M = new Fe();
573
+ const m = new Ae(), M = new Ae();
574
574
  function H() {
575
575
  m.clear(), x.current = !0;
576
576
  }
@@ -967,7 +967,7 @@ function Tr(e, t = {}) {
967
967
  ]);
968
968
  }
969
969
  function vr(e, t, n) {
970
- const { mounted: r, setMounted: s, transitionStatus: i } = Kt(e), p = t.useState("preventUnmountingOnClose"), l = e ? !1 : p;
970
+ const { mounted: r, setMounted: s, transitionStatus: i } = Vt(e), p = t.useState("preventUnmountingOnClose"), l = e ? !1 : p;
971
971
  t.useSyncedValues({
972
972
  mounted: r,
973
973
  transitionStatus: i,
@@ -1040,7 +1040,7 @@ var Cr = class {
1040
1040
  return this.idMap.size;
1041
1041
  }
1042
1042
  }, Ir = (function(e) {
1043
- return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = ke.startingStyle] = "startingStyle", e[e.endingStyle = ke.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
1043
+ return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = Fe.startingStyle] = "startingStyle", e[e.endingStyle = Fe.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
1044
1044
  })({}), Pn = { "data-popup-open": "" }, xn = {
1045
1045
  "data-popup-open": "",
1046
1046
  "data-pressed": ""
@@ -1057,7 +1057,7 @@ var Cr = class {
1057
1057
  }
1058
1058
  }, xr = {
1059
1059
  ...wn,
1060
- ...Vt
1060
+ ...Kt
1061
1061
  };
1062
1062
  export {
1063
1063
  Gt as $,
@@ -1067,7 +1067,7 @@ export {
1067
1067
  bn as D,
1068
1068
  rt as E,
1069
1069
  Qe as F,
1070
- Zt as G,
1070
+ Qt as G,
1071
1071
  nr as H,
1072
1072
  Be as I,
1073
1073
  me as J,
@@ -1081,9 +1081,9 @@ export {
1081
1081
  fn as R,
1082
1082
  fr as S,
1083
1083
  Ie as T,
1084
- Jt as U,
1084
+ zt as U,
1085
1085
  rn as V,
1086
- Qt as W,
1086
+ Jt as W,
1087
1087
  Ce as X,
1088
1088
  Zn as Y,
1089
1089
  Qn as Z,