@pstdio/ui 0.19.0 → 0.20.1

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 (120) hide show
  1. package/dist/{MermaidComponent-BPiVFNYK.js → MermaidComponent-BVMyKttu.js} +3 -3
  2. package/dist/{MermaidComponent-BPiVFNYK.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
  3. package/dist/browser-storage-DPtOQJx0.js +127 -0
  4. package/dist/browser-storage-DPtOQJx0.js.map +1 -0
  5. package/dist/chat-ui.js +19 -20
  6. package/dist/chat-ui.js.map +1 -1
  7. package/dist/components/data-table/data-table-header.d.ts +3 -1
  8. package/dist/components/data-table/edit-mode-data-table-body.d.ts +29 -0
  9. package/dist/components/data-table/edit-mode-data-table-cell.d.ts +15 -0
  10. package/dist/components/data-table/edit-mode-data-table-editors.d.ts +19 -0
  11. package/dist/components/data-table/edit-mode-data-table-header.d.ts +23 -0
  12. package/dist/components/data-table/edit-mode-data-table-selection.d.ts +12 -0
  13. package/dist/components/data-table/edit-mode-data-table.d.ts +2 -0
  14. package/dist/components/data-table/edit-mode-story.d.ts +5 -0
  15. package/dist/components/data-table/index.d.ts +1 -1
  16. package/dist/components/data-table/pagination-footer.d.ts +8 -5
  17. package/dist/components/data-table/types.d.ts +24 -0
  18. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  19. package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
  20. package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
  21. package/dist/components/diff-viewer/index.d.ts +1 -0
  22. package/dist/components/param-editor/param-editor.types.d.ts +2 -0
  23. package/dist/components/rich-text/index.d.ts +2 -0
  24. package/dist/components/rich-text/markdown-editor/markdown-editor.d.ts +7 -0
  25. package/dist/components/rich-text/markdown-editor/markdown-table.story-fixture.d.ts +3 -0
  26. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSectionNavigationPlugin.d.ts +8 -0
  27. package/dist/components/rich-text/markdown-editor/plugins/MarkdownSlashCommandPlugin.d.ts +1 -0
  28. package/dist/components/rich-text/markdown-editor/plugins/markdown-history-plugin.d.ts +1 -0
  29. package/dist/components/rich-text/markdown-editor/plugins/markdown-section-navigation.d.ts +20 -0
  30. package/dist/components/rich-text/rich-message/rich-message.d.ts +2 -0
  31. package/dist/components/rich-text/shared/markdown-ast.d.ts +6 -0
  32. package/dist/components/rich-text/shared/markdown-codec.d.ts +3 -0
  33. package/dist/components/rich-text/shared/markdown-export.d.ts +2 -0
  34. package/dist/components/rich-text/shared/markdown-import.d.ts +2 -0
  35. package/dist/components/rich-text/shared/markdown-inline.d.ts +5 -0
  36. package/dist/components/rich-text/shared/markdown-table.d.ts +41 -0
  37. package/dist/components/rich-text/shared/markdown-url-context.d.ts +9 -0
  38. package/dist/components/rich-text/shared/markdown-url.d.ts +3 -0
  39. package/dist/components/rich-text/shared/nodes/DataTableNode.d.ts +13 -11
  40. package/dist/components/rich-text/shared/nodes/MarkdownImageNode.d.ts +35 -0
  41. package/dist/components/rich-text/shared/nodes/MarkdownLinkNode.d.ts +18 -0
  42. package/dist/components/rich-text/shared/nodes/RawHtmlNode.d.ts +31 -0
  43. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/floating-toolbar-buttons.d.ts +4 -2
  44. package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/resolve-block-type.d.ts +1 -1
  45. package/dist/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +1 -1
  46. package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +1 -0
  47. package/dist/components/rich-text/shared/transformers/markdown-transformers.d.ts +2 -3
  48. package/dist/components/tree-list/tree-list-background.d.ts +8 -0
  49. package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
  50. package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
  51. package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
  52. package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
  53. package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
  54. package/dist/components/tree-list/tree-list.d.ts +2 -0
  55. package/dist/components/tree-list/tree-list.types.d.ts +13 -0
  56. package/dist/data-table.js +723 -923
  57. package/dist/data-table.js.map +1 -1
  58. package/dist/diff.js +796 -815
  59. package/dist/diff.js.map +1 -1
  60. package/dist/edit-mode-data-table-D6NeiDJx.js +775 -0
  61. package/dist/edit-mode-data-table-D6NeiDJx.js.map +1 -0
  62. package/dist/editor-config-D9OksZ93.js +2416 -0
  63. package/dist/editor-config-D9OksZ93.js.map +1 -0
  64. package/dist/index.d.ts +1 -1
  65. package/dist/index.js +326 -353
  66. package/dist/index.js.map +1 -1
  67. package/dist/{kanban-renderer-toolbar-Bcj_N1qr.js → kanban-renderer-toolbar-CpegGbwq.js} +359 -361
  68. package/dist/kanban-renderer-toolbar-CpegGbwq.js.map +1 -0
  69. package/dist/kanban-renderer.js +28 -27
  70. package/dist/kanban-renderer.js.map +1 -1
  71. package/dist/{lazy-markdown-editor-DwhqQ-NN.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
  72. package/dist/{lazy-markdown-editor-DwhqQ-NN.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
  73. package/dist/{list-row-BtoVJpFs.js → list-row-9oxy-F0v.js} +229 -254
  74. package/dist/list-row-9oxy-F0v.js.map +1 -0
  75. package/dist/{mermaid-renderer-DZo3qj6D.js → mermaid-renderer-H3IhLqnQ.js} +3 -3
  76. package/dist/{mermaid-renderer-DZo3qj6D.js.map → mermaid-renderer-H3IhLqnQ.js.map} +1 -1
  77. package/dist/mermaid.js +1 -1
  78. package/dist/number-input-WUfejtNx.js +343 -0
  79. package/dist/number-input-WUfejtNx.js.map +1 -0
  80. package/dist/{param-editor-XRjSu6MT.js → param-editor-B8Ff9Nm8.js} +2 -2
  81. package/dist/{param-editor-XRjSu6MT.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
  82. package/dist/param-editor-field-Cu4pto_a.js +2845 -0
  83. package/dist/param-editor-field-Cu4pto_a.js.map +1 -0
  84. package/dist/rich-message-DdFYRzTo.js +658 -0
  85. package/dist/rich-message-DdFYRzTo.js.map +1 -0
  86. package/dist/rich-text.js +182 -110
  87. package/dist/rich-text.js.map +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/theme/recipes/button.d.ts +11 -0
  90. package/dist/theme/recipes/input.d.ts +32 -0
  91. package/dist/{theme-7PDdD9OD.js → theme-BH4fSst9.js} +44 -1
  92. package/dist/theme-BH4fSst9.js.map +1 -0
  93. package/dist/{theme-preference-DOzHx64J.js → theme-preference-DyymrYpR.js} +2 -2
  94. package/dist/{theme-preference-DOzHx64J.js.map → theme-preference-DyymrYpR.js.map} +1 -1
  95. package/dist/theme.js +1 -1
  96. package/dist/tree-list-uV4UFj0x.js +1116 -0
  97. package/dist/tree-list-uV4UFj0x.js.map +1 -0
  98. package/package.json +9 -1
  99. package/dist/browser-storage-BinyFNJX.js +0 -40
  100. package/dist/browser-storage-BinyFNJX.js.map +0 -1
  101. package/dist/checkbox-B2zYVemL.js +0 -70
  102. package/dist/checkbox-B2zYVemL.js.map +0 -1
  103. package/dist/components/data-table/editable-cells-story.d.ts +0 -9
  104. package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +0 -1
  105. package/dist/list-row-BtoVJpFs.js.map +0 -1
  106. package/dist/markdown-DDd2ESoH.js +0 -743
  107. package/dist/markdown-DDd2ESoH.js.map +0 -1
  108. package/dist/markdown-editor-CYVkzt8t.js +0 -741
  109. package/dist/markdown-editor-CYVkzt8t.js.map +0 -1
  110. package/dist/param-editor-field-B9lEPq8c.js +0 -3028
  111. package/dist/param-editor-field-B9lEPq8c.js.map +0 -1
  112. package/dist/resource-badge-CuItchgL.js +0 -98
  113. package/dist/resource-badge-CuItchgL.js.map +0 -1
  114. package/dist/rich-message--eRzjWYK.js +0 -730
  115. package/dist/rich-message--eRzjWYK.js.map +0 -1
  116. package/dist/scroll-area-BMbg1WcD.js +0 -91
  117. package/dist/scroll-area-BMbg1WcD.js.map +0 -1
  118. package/dist/theme-7PDdD9OD.js.map +0 -1
  119. package/dist/tree-list-B2L0cTj2.js +0 -1033
  120. package/dist/tree-list-B2L0cTj2.js.map +0 -1
@@ -1,29 +1,29 @@
1
- import { jsx as r, jsxs as P, Fragment as et } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as P, Fragment as et } from "react/jsx-runtime";
2
2
  import { c as O } from "react/compiler-runtime";
3
- import { Menu as C, Portal as Ne, HStack as he, Stack as tt, Text as je, Box as z, Icon as Pe, InputGroup as st, Input as at, IconButton as qe, chakra as ze } from "@chakra-ui/react";
4
- import * as ct from "react";
3
+ import { Menu as C, Portal as Ne, HStack as he, Stack as tt, Text as je, Box as _, Icon as Pe, InputGroup as st, Input as ct, IconButton as qe, chakra as _e } from "@chakra-ui/react";
4
+ import * as at from "react";
5
5
  import { Fragment as Ke, useState as Ve, useRef as Ue, useEffect as Ye, forwardRef as dt } from "react";
6
6
  import { Search as ut, ChevronDown as nt, ChevronRight as ht } from "lucide-react";
7
- import { T as Qe, S as ft } from "./scroll-area-BMbg1WcD.js";
7
+ import { T as Qe, S as ft } from "./browser-storage-DPtOQJx0.js";
8
8
  const ot = (n) => {
9
9
  const e = O(6), {
10
10
  actions: t,
11
11
  contentBackground: o,
12
- contentMinWidth: i
12
+ contentMinWidth: r
13
13
  } = n;
14
14
  let s;
15
15
  e[0] !== t ? (s = t.map(mt), e[0] = t, e[1] = s) : s = e[1];
16
16
  let l;
17
- return e[2] !== o || e[3] !== i || e[4] !== s ? (l = /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(C.Positioner, { children: /* @__PURE__ */ r(C.Content, { minW: i, bg: o, children: s }) }) }), e[2] = o, e[3] = i, e[4] = s, e[5] = l) : l = e[5], l;
18
- }, on = (n) => {
17
+ return e[2] !== o || e[3] !== r || e[4] !== s ? (l = /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: r, bg: o, children: s }) }) }), e[2] = o, e[3] = r, e[4] = s, e[5] = l) : l = e[5], l;
18
+ }, nn = (n) => {
19
19
  const e = O(13), {
20
20
  actions: t,
21
21
  children: o,
22
- contentMinWidth: i,
22
+ contentMinWidth: r,
23
23
  contentBackground: s,
24
24
  positioning: l,
25
- closeOnSelect: a
26
- } = n, d = i === void 0 ? "17.5rem" : i, c = s === void 0 ? "bg" : s;
25
+ closeOnSelect: c
26
+ } = n, d = r === void 0 ? "17.5rem" : r, a = s === void 0 ? "bg" : s;
27
27
  let h;
28
28
  e[0] !== l ? (h = l === void 0 ? {
29
29
  placement: "bottom-start"
@@ -32,24 +32,24 @@ const ot = (n) => {
32
32
  if (t.length === 0)
33
33
  return o;
34
34
  let m;
35
- e[2] !== o ? (m = /* @__PURE__ */ r(C.Trigger, { asChild: !0, children: o }), e[2] = o, e[3] = m) : m = e[3];
35
+ e[2] !== o ? (m = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: o }), e[2] = o, e[3] = m) : m = e[3];
36
36
  let u;
37
- e[4] !== t || e[5] !== c || e[6] !== d ? (u = /* @__PURE__ */ r(ot, { actions: t, contentMinWidth: d, contentBackground: c }), e[4] = t, e[5] = c, e[6] = d, e[7] = u) : u = e[7];
37
+ e[4] !== t || e[5] !== a || e[6] !== d ? (u = /* @__PURE__ */ i(ot, { actions: t, contentMinWidth: d, contentBackground: a }), e[4] = t, e[5] = a, e[6] = d, e[7] = u) : u = e[7];
38
38
  let f;
39
- return e[8] !== a || e[9] !== p || e[10] !== m || e[11] !== u ? (f = /* @__PURE__ */ P(C.Root, { positioning: p, closeOnSelect: a, children: [
39
+ return e[8] !== c || e[9] !== p || e[10] !== m || e[11] !== u ? (f = /* @__PURE__ */ P(C.Root, { positioning: p, closeOnSelect: c, children: [
40
40
  m,
41
41
  u
42
- ] }), e[8] = a, e[9] = p, e[10] = m, e[11] = u, e[12] = f) : f = e[12], f;
42
+ ] }), e[8] = c, e[9] = p, e[10] = m, e[11] = u, e[12] = f) : f = e[12], f;
43
43
  }, pt = (n) => {
44
44
  const e = O(15), {
45
45
  actions: t,
46
46
  children: o,
47
- contentMinWidth: i,
47
+ contentMinWidth: r,
48
48
  contentBackground: s,
49
49
  positioning: l,
50
- closeOnSelect: a,
50
+ closeOnSelect: c,
51
51
  keepMountedWhenEmpty: d
52
- } = n, c = i === void 0 ? "17.5rem" : i, h = s === void 0 ? "bg" : s;
52
+ } = n, a = r === void 0 ? "17.5rem" : r, h = s === void 0 ? "bg" : s;
53
53
  let p;
54
54
  e[0] !== l ? (p = l === void 0 ? {
55
55
  placement: "bottom-start"
@@ -57,22 +57,22 @@ const ot = (n) => {
57
57
  const m = p, u = d === void 0 ? !1 : d;
58
58
  if (t.length === 0 && !u) {
59
59
  let g;
60
- return e[2] !== o ? (g = /* @__PURE__ */ r(et, { children: o }), e[2] = o, e[3] = g) : g = e[3], g;
60
+ return e[2] !== o ? (g = /* @__PURE__ */ i(et, { children: o }), e[2] = o, e[3] = g) : g = e[3], g;
61
61
  }
62
62
  let f;
63
- e[4] !== o ? (f = /* @__PURE__ */ r(C.ContextTrigger, { asChild: !0, children: o }), e[4] = o, e[5] = f) : f = e[5];
63
+ e[4] !== o ? (f = /* @__PURE__ */ i(C.ContextTrigger, { asChild: !0, children: o }), e[4] = o, e[5] = f) : f = e[5];
64
64
  let b;
65
- e[6] !== t || e[7] !== h || e[8] !== c ? (b = t.length > 0 ? /* @__PURE__ */ r(ot, { actions: t, contentMinWidth: c, contentBackground: h }) : null, e[6] = t, e[7] = h, e[8] = c, e[9] = b) : b = e[9];
65
+ e[6] !== t || e[7] !== h || e[8] !== a ? (b = t.length > 0 ? /* @__PURE__ */ i(ot, { actions: t, contentMinWidth: a, contentBackground: h }) : null, e[6] = t, e[7] = h, e[8] = a, e[9] = b) : b = e[9];
66
66
  let S;
67
- return e[10] !== a || e[11] !== m || e[12] !== f || e[13] !== b ? (S = /* @__PURE__ */ P(C.Root, { positioning: m, closeOnSelect: a, children: [
67
+ return e[10] !== c || e[11] !== m || e[12] !== f || e[13] !== b ? (S = /* @__PURE__ */ P(C.Root, { positioning: m, closeOnSelect: c, children: [
68
68
  f,
69
69
  b
70
- ] }), e[10] = a, e[11] = m, e[12] = f, e[13] = b, e[14] = S) : S = e[14], S;
70
+ ] }), e[10] = c, e[11] = m, e[12] = f, e[13] = b, e[14] = S) : S = e[14], S;
71
71
  };
72
72
  function mt(n) {
73
73
  return /* @__PURE__ */ P(Ke, { children: [
74
- n.separatorBefore ? /* @__PURE__ */ r(C.Separator, {}) : null,
75
- /* @__PURE__ */ r(C.Item, { value: n.key, disabled: n.isDisabled, asChild: !0, children: /* @__PURE__ */ r(Fe, { asChild: !0, variant: "full-width", label: n.label, icon: n.icon, endContent: n.endContent, disabled: n.isDisabled, onActivate: n.onClick }) })
74
+ n.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
75
+ /* @__PURE__ */ i(C.Item, { value: n.key, disabled: n.isDisabled, asChild: !0, children: /* @__PURE__ */ i(Fe, { asChild: !0, variant: "full-width", label: n.label, icon: n.icon, endContent: n.endContent, disabled: n.isDisabled, onActivate: n.onClick }) })
76
76
  ] }, n.key);
77
77
  }
78
78
  const gt = (n) => {
@@ -82,56 +82,56 @@ const gt = (n) => {
82
82
  if (!t.icon)
83
83
  return null;
84
84
  let o;
85
- e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */ r(Pe, { as: t.icon, boxSize: "14px" }) : t.icon, e[0] = t.icon, e[1] = o) : o = e[1];
86
- let i;
87
- return e[2] !== o ? (i = /* @__PURE__ */ r(z, { color: "fg.muted", flexShrink: 0, display: "inline-flex", children: o }), e[2] = o, e[3] = i) : i = e[3], i;
85
+ e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */ i(Pe, { as: t.icon, boxSize: "14px" }) : t.icon, e[0] = t.icon, e[1] = o) : o = e[1];
86
+ let r;
87
+ return e[2] !== o ? (r = /* @__PURE__ */ i(_, { color: "fg.muted", flexShrink: 0, display: "inline-flex", children: o }), e[2] = o, e[3] = r) : r = e[3], r;
88
88
  }, bt = (n) => {
89
89
  const e = O(20), {
90
90
  children: t,
91
91
  items: o,
92
- onOpenChange: i,
92
+ onOpenChange: r,
93
93
  onSelect: s,
94
94
  open: l,
95
- placement: a
96
- } = n, d = a === void 0 ? "right-start" : a;
97
- let c;
98
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
95
+ placement: c
96
+ } = n, d = c === void 0 ? "right-start" : c;
97
+ let a;
98
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
99
99
  mainAxis: 4
100
- }, e[0] = c) : c = e[0];
100
+ }, e[0] = a) : a = e[0];
101
101
  let h;
102
102
  e[1] !== d ? (h = {
103
103
  placement: d,
104
- offset: c
104
+ offset: a
105
105
  }, e[1] = d, e[2] = h) : h = e[2];
106
106
  let p;
107
- e[3] !== i ? (p = (S) => i(S.open), e[3] = i, e[4] = p) : p = e[4];
107
+ e[3] !== r ? (p = (S) => r(S.open), e[3] = r, e[4] = p) : p = e[4];
108
108
  let m;
109
- e[5] !== t ? (m = /* @__PURE__ */ r(C.Trigger, { asChild: !0, children: t }), e[5] = t, e[6] = m) : m = e[6];
109
+ e[5] !== t ? (m = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: t }), e[5] = t, e[6] = m) : m = e[6];
110
110
  let u;
111
111
  if (e[7] !== o || e[8] !== s) {
112
112
  let S;
113
113
  e[10] !== s ? (S = (g) => /* @__PURE__ */ P(Ke, { children: [
114
- g.separatorBefore ? /* @__PURE__ */ r(C.Separator, {}) : null,
115
- /* @__PURE__ */ r(C.Item, { value: g.id, disabled: g.disabled || g.readOnly, _disabled: g.readOnly ? {
114
+ g.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
115
+ /* @__PURE__ */ i(C.Item, { value: g.id, disabled: g.disabled || g.readOnly, _disabled: g.readOnly ? {
116
116
  opacity: 1,
117
117
  cursor: "default"
118
118
  } : void 0, onClick: () => {
119
119
  g.readOnly || s(g);
120
120
  }, children: /* @__PURE__ */ P(he, { gap: "2", minW: "0", w: "full", justify: "space-between", alignItems: "center", children: [
121
121
  /* @__PURE__ */ P(he, { gap: "2", minW: "0", flex: "1", alignItems: g.description ? "flex-start" : "center", children: [
122
- /* @__PURE__ */ r(gt, { item: g }),
122
+ /* @__PURE__ */ i(gt, { item: g }),
123
123
  /* @__PURE__ */ P(tt, { gap: "0", minW: "0", children: [
124
- /* @__PURE__ */ r(je, { textStyle: "label/S/regular", truncate: !0, children: g.label }),
125
- g.description ? /* @__PURE__ */ r(je, { textStyle: "label/XS", color: "fg.menu-item.secondary", truncate: !0, children: g.description }) : null
124
+ /* @__PURE__ */ i(je, { textStyle: "label/S/regular", truncate: !0, children: g.label }),
125
+ g.description ? /* @__PURE__ */ i(je, { textStyle: "label/XS", color: "fg.menu-item.secondary", truncate: !0, children: g.description }) : null
126
126
  ] })
127
127
  ] }),
128
- g.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, children: g.endContent }) : null
128
+ g.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, children: g.endContent }) : null
129
129
  ] }) })
130
130
  ] }, g.id), e[10] = s, e[11] = S) : S = e[11], u = o.map(S), e[7] = o, e[8] = s, e[9] = u;
131
131
  } else
132
132
  u = e[9];
133
133
  let f;
134
- e[12] !== u ? (f = /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(C.Positioner, { children: /* @__PURE__ */ r(C.Content, { minW: "200px", bg: "bg", children: u }) }) }), e[12] = u, e[13] = f) : f = e[13];
134
+ e[12] !== u ? (f = /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: "200px", bg: "bg", children: u }) }) }), e[12] = u, e[13] = f) : f = e[13];
135
135
  let b;
136
136
  return e[14] !== l || e[15] !== h || e[16] !== p || e[17] !== m || e[18] !== f ? (b = /* @__PURE__ */ P(C.Root, { open: l, positioning: h, onOpenChange: p, children: [
137
137
  m,
@@ -140,7 +140,7 @@ const gt = (n) => {
140
140
  }, vt = (n) => n.map((e) => ({
141
141
  key: e.id,
142
142
  label: e.label,
143
- icon: typeof e.icon == "function" ? /* @__PURE__ */ r(Pe, { as: e.icon, boxSize: "16px" }) : e.icon,
143
+ icon: typeof e.icon == "function" ? /* @__PURE__ */ i(Pe, { as: e.icon, boxSize: "16px" }) : e.icon,
144
144
  endContent: e.endContent,
145
145
  isDisabled: e.disabled,
146
146
  separatorBefore: e.separatorBefore,
@@ -149,23 +149,23 @@ const gt = (n) => {
149
149
  const e = O(15), {
150
150
  children: t,
151
151
  item: o,
152
- menuOpen: i,
152
+ menuOpen: r,
153
153
  onMenuOpenChange: s,
154
154
  onMenuSelect: l
155
155
  } = n;
156
156
  if (o.menuItems && o.menuItems.length > 0) {
157
157
  let p;
158
- return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !== i || e[4] !== s || e[5] !== l ? (p = /* @__PURE__ */ r(bt, { items: o.menuItems, open: i, placement: o.menuPlacement, onOpenChange: s, onSelect: l, children: t }), e[0] = t, e[1] = o.menuItems, e[2] = o.menuPlacement, e[3] = i, e[4] = s, e[5] = l, e[6] = p) : p = e[6], p;
158
+ return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !== r || e[4] !== s || e[5] !== l ? (p = /* @__PURE__ */ i(bt, { items: o.menuItems, open: r, placement: o.menuPlacement, onOpenChange: s, onSelect: l, children: t }), e[0] = t, e[1] = o.menuItems, e[2] = o.menuPlacement, e[3] = r, e[4] = s, e[5] = l, e[6] = p) : p = e[6], p;
159
159
  }
160
- let a;
161
- e[7] !== t || e[8] !== o.tooltip ? (a = o.tooltip ? /* @__PURE__ */ r(Qe, { content: o.tooltip, children: t }) : t, e[7] = t, e[8] = o.tooltip, e[9] = a) : a = e[9];
162
- const d = a;
160
+ let c;
161
+ e[7] !== t || e[8] !== o.tooltip ? (c = o.tooltip ? /* @__PURE__ */ i(Qe, { content: o.tooltip, children: t }) : t, e[7] = t, e[8] = o.tooltip, e[9] = c) : c = e[9];
162
+ const d = c;
163
163
  if (!o.contextMenuItems || o.contextMenuItems.length === 0)
164
164
  return d;
165
- let c;
166
- e[10] !== o.contextMenuItems ? (c = vt(o.contextMenuItems), e[10] = o.contextMenuItems, e[11] = c) : c = e[11];
165
+ let a;
166
+ e[10] !== o.contextMenuItems ? (a = vt(o.contextMenuItems), e[10] = o.contextMenuItems, e[11] = a) : a = e[11];
167
167
  let h;
168
- return e[12] !== d || e[13] !== c ? (h = /* @__PURE__ */ r(pt, { actions: c, children: d }), e[12] = d, e[13] = c, e[14] = h) : h = e[14], h;
168
+ return e[12] !== d || e[13] !== a ? (h = /* @__PURE__ */ i(pt, { actions: a, children: d }), e[12] = d, e[13] = a, e[14] = h) : h = e[14], h;
169
169
  }, St = {
170
170
  main: {
171
171
  h: "2.5rem",
@@ -179,63 +179,38 @@ const gt = (n) => {
179
179
  h: "3rem",
180
180
  px: "0"
181
181
  }
182
- }, lt = ct.forwardRef(function(e, t) {
182
+ }, lt = at.forwardRef(function(e, t) {
183
183
  const o = O(9);
184
- let i, s, l;
184
+ let r, s, l;
185
185
  o[0] !== e ? ({
186
186
  variant: l,
187
- children: i,
187
+ children: r,
188
188
  ...s
189
- } = e, o[0] = e, o[1] = i, o[2] = s, o[3] = l) : (i = o[1], s = o[2], l = o[3]);
189
+ } = e, o[0] = e, o[1] = r, o[2] = s, o[3] = l) : (r = o[1], s = o[2], l = o[3]);
190
190
  const d = St[l === void 0 ? "main" : l];
191
- let c;
192
- return o[4] !== i || o[5] !== t || o[6] !== s || o[7] !== d ? (c = /* @__PURE__ */ r(he, { ref: t, as: "header", alignItems: "center", borderWidth: "0", ...d, ...s, children: i }), o[4] = i, o[5] = t, o[6] = s, o[7] = d, o[8] = c) : c = o[8], c;
193
- }), Ct = {
194
- bg: "transparent",
195
- border: "0",
196
- borderColor: "transparent",
197
- borderRadius: "0",
198
- boxShadow: "none",
199
- transition: "none",
200
- _hover: {
201
- bg: "transparent",
202
- borderColor: "transparent"
203
- },
204
- _active: {
205
- bg: "transparent",
206
- borderColor: "transparent"
207
- },
208
- _focus: {
209
- borderColor: "transparent",
210
- outline: "none",
211
- boxShadow: "none"
212
- },
213
- _focusVisible: {
214
- borderColor: "transparent",
215
- outline: "none",
216
- boxShadow: "none"
217
- }
218
- }, wt = (n) => {
191
+ let a;
192
+ return o[4] !== r || o[5] !== t || o[6] !== s || o[7] !== d ? (a = /* @__PURE__ */ i(he, { ref: t, as: "header", alignItems: "center", borderWidth: "0", ...d, ...s, children: r }), o[4] = r, o[5] = t, o[6] = s, o[7] = d, o[8] = a) : a = o[8], a;
193
+ }), Ct = (n) => {
219
194
  const e = O(8), {
220
195
  inputRef: t,
221
196
  value: o,
222
- placeholder: i,
197
+ placeholder: r,
223
198
  onValueChange: s
224
199
  } = n;
225
200
  let l;
226
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ r(ut, { size: 14 }), e[0] = l) : l = e[0];
227
- let a;
228
- e[1] !== s ? (a = (c) => s(c.target.value), e[1] = s, e[2] = a) : a = e[2];
201
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ i(ut, { size: 14 }), e[0] = l) : l = e[0];
202
+ let c;
203
+ e[1] !== s ? (c = (a) => s(a.target.value), e[1] = s, e[2] = c) : c = e[2];
229
204
  let d;
230
- return e[3] !== t || e[4] !== i || e[5] !== a || e[6] !== o ? (d = /* @__PURE__ */ r(lt, { variant: "input", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, children: /* @__PURE__ */ r(st, { startElement: l, width: "full", children: /* @__PURE__ */ r(at, { ref: t, mx: "xs", value: o, placeholder: i, "aria-label": i, autoComplete: "off", ...Ct, onChange: a, onKeyDown: It }) }) }), e[3] = t, e[4] = i, e[5] = a, e[6] = o, e[7] = d) : d = e[7], d;
205
+ return e[3] !== t || e[4] !== r || e[5] !== c || e[6] !== o ? (d = /* @__PURE__ */ i(lt, { variant: "input", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, children: /* @__PURE__ */ i(st, { startElement: l, width: "full", children: /* @__PURE__ */ i(ct, { ref: t, mx: "xs", variant: "borderless", value: o, placeholder: r, "aria-label": r, autoComplete: "off", onChange: c, onKeyDown: wt }) }) }), e[3] = t, e[4] = r, e[5] = c, e[6] = o, e[7] = d) : d = e[7], d;
231
206
  };
232
- function It(n) {
207
+ function wt(n) {
233
208
  return n.stopPropagation();
234
209
  }
235
- const yt = (n, e) => {
210
+ const It = (n, e) => {
236
211
  const t = e.trim().toLowerCase();
237
212
  return t ? n.filter((o) => [o.label, o.searchText].filter(Boolean).join(" ").toLowerCase().includes(t)) : n;
238
- }, Mt = (n, e) => !n || !e ? !1 : n !== e, Pt = (n, e, t) => !n || !e ? t : {
213
+ }, yt = (n, e) => !n || !e ? !1 : n !== e, Mt = (n, e, t) => !n || !e ? t : {
239
214
  items: e.items,
240
215
  filterItems: e.filterItems ?? t.filterItems,
241
216
  showSearch: e.showSearch ?? t.showSearch,
@@ -244,16 +219,16 @@ const yt = (n, e) => {
244
219
  contentTestId: e.contentTestId ?? t.contentTestId,
245
220
  closeOnSelect: !1,
246
221
  listId: "parent"
247
- }, Rt = (n) => {
222
+ }, Pt = (n) => {
248
223
  const e = O(47), {
249
224
  trigger: t,
250
225
  items: o,
251
- searchPlaceholder: i,
226
+ searchPlaceholder: r,
252
227
  emptyState: s,
253
228
  filterItems: l,
254
- listId: a,
229
+ listId: c,
255
230
  header: d,
256
- width: c,
231
+ width: a,
257
232
  maxListHeight: h,
258
233
  showSearch: p,
259
234
  closeOnSelect: m,
@@ -265,22 +240,22 @@ const yt = (n, e) => {
265
240
  contentTestId: Y,
266
241
  portalled: L,
267
242
  parentList: v
268
- } = n, k = l === void 0 ? yt : l, $ = c === void 0 ? "260px" : c, H = h === void 0 ? "18rem" : h, V = p === void 0 ? !0 : p, j = m === void 0 ? !0 : m, F = u === void 0 ? !1 : u, Be = L === void 0 ? !0 : L, Z = !!v, [Te, We] = Ve(!1), [Re, ke] = Ve(""), [Ge, fe] = Ve("child"), D = Ue(null), q = f ?? Te, ne = Z && Ge === "parent", I = Pt(ne, v, {
243
+ } = n, R = l === void 0 ? It : l, $ = a === void 0 ? "260px" : a, H = h === void 0 ? "18rem" : h, V = p === void 0 ? !0 : p, j = m === void 0 ? !0 : m, F = u === void 0 ? !1 : u, Be = L === void 0 ? !0 : L, Z = !!v, [Te, We] = Ve(!1), [ke, Re] = Ve(""), [Ge, fe] = Ve("child"), D = Ue(null), q = f ?? Te, ne = Z && Ge === "parent", I = Mt(ne, v, {
269
244
  items: o,
270
- filterItems: k,
245
+ filterItems: R,
271
246
  showSearch: V,
272
- searchPlaceholder: i,
247
+ searchPlaceholder: r,
273
248
  emptyState: s,
274
249
  contentTestId: Y,
275
250
  closeOnSelect: j,
276
- listId: Z ? "child" : a ?? ""
277
- }), xe = I.filterItems(I.items, Re), J = Ue(I.listId);
251
+ listId: Z ? "child" : c ?? ""
252
+ }), xe = I.filterItems(I.items, ke), J = Ue(I.listId);
278
253
  Ye(() => {
279
254
  if (!q) {
280
255
  J.current = I.listId;
281
256
  return;
282
257
  }
283
- Mt(J.current, I.listId) && ke(""), J.current = I.listId;
258
+ yt(J.current, I.listId) && Re(""), J.current = I.listId;
284
259
  }, [q, I.listId]);
285
260
  let oe;
286
261
  e[0] !== I.showSearch || e[1] !== q ? (oe = [q, I.showSearch], e[0] = I.showSearch, e[1] = q, e[2] = oe) : oe = e[2], Ye(() => {
@@ -291,7 +266,7 @@ const yt = (n, e) => {
291
266
  }, oe);
292
267
  let pe;
293
268
  e[3] !== Z || e[4] !== S || e[5] !== f ? (pe = (w) => {
294
- f === void 0 && We(w.open), ke(""), w.open && Z && fe("child"), S?.(w);
269
+ f === void 0 && We(w.open), Re(""), w.open && Z && fe("child"), S?.(w);
295
270
  }, e[3] = Z, e[4] = S, e[5] = f, e[6] = pe) : pe = e[6];
296
271
  const Oe = pe;
297
272
  let Se;
@@ -311,43 +286,43 @@ const yt = (n, e) => {
311
286
  disabled: w.isDisabled,
312
287
  tooltip: w.tooltipLabel
313
288
  }), e[10] = le) : le = e[10];
314
- const re = le;
289
+ const ie = le;
315
290
  let ee;
316
- e[11] !== v ? (ee = v ? /* @__PURE__ */ r(lt, { as: "div", role: "menuitem", "aria-label": v.ariaLabel, "aria-disabled": v.disabled || void 0, tabIndex: v.disabled ? -1 : 0, variant: "narrow", px: "0", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, onPointerDownCapture: Ot, onClickCapture: (w) => {
317
- w.stopPropagation(), !v.disabled && fe(Dt);
318
- }, children: /* @__PURE__ */ r(Fe, { asChild: !0, role: "presentation", variant: "full-width", id: "__parent-toggle", label: v.selectedLabel, icon: $e(v.selectedIcon), disabled: v.disabled, endContent: v.disabled ? void 0 : /* @__PURE__ */ r(Pe, { as: nt, boxSize: "14px" }) }) }) : null, e[11] = v, e[12] = ee) : ee = e[12];
319
- const we = v ? ee : d, De = !!we && !I.showSearch, me = I.showSearch ? /* @__PURE__ */ r(wt, { inputRef: D, value: Re, placeholder: I.searchPlaceholder, onValueChange: ke }) : null, T = C, ie = C, M = "bg", Ie = "0", W = "0";
291
+ e[11] !== v ? (ee = v ? /* @__PURE__ */ i(lt, { as: "div", role: "menuitem", "aria-label": v.ariaLabel, "aria-disabled": v.disabled || void 0, tabIndex: v.disabled ? -1 : 0, variant: "narrow", px: "0", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, onPointerDownCapture: Rt, onClickCapture: (w) => {
292
+ w.stopPropagation(), !v.disabled && fe(Ot);
293
+ }, children: /* @__PURE__ */ i(Fe, { asChild: !0, role: "presentation", variant: "full-width", id: "__parent-toggle", label: v.selectedLabel, icon: $e(v.selectedIcon), disabled: v.disabled, endContent: v.disabled ? void 0 : /* @__PURE__ */ i(Pe, { as: nt, boxSize: "14px" }) }) }) : null, e[11] = v, e[12] = ee) : ee = e[12];
294
+ const we = v ? ee : d, De = !!we && !I.showSearch, me = I.showSearch ? /* @__PURE__ */ i(Ct, { inputRef: D, value: ke, placeholder: I.searchPlaceholder, onValueChange: Re }) : null, T = C, re = C, M = "bg", Ie = "0", W = "0";
320
295
  let se;
321
- e[13] !== De ? (se = De ? /* @__PURE__ */ r(C.Separator, { margin: "0" }) : null, e[13] = De, e[14] = se) : se = e[14];
296
+ e[13] !== De ? (se = De ? /* @__PURE__ */ i(C.Separator, { margin: "0" }) : null, e[13] = De, e[14] = se) : se = e[14];
322
297
  const B = ft;
323
- let ae;
324
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ae = {
298
+ let ce;
299
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = {
325
300
  overscrollBehavior: "contain"
326
- }, e[15] = ae) : ae = e[15];
327
- const U = "0", y = "0", ce = xe.length > 0 ? xe.map((w) => /* @__PURE__ */ r(C.Item, { value: w.id, disabled: w.isDisabled, onClick: w.onSelect, asChild: !0, children: /* @__PURE__ */ r(z, { bg: "transparent", h: "auto", p: "0", _hover: {
301
+ }, e[15] = ce) : ce = e[15];
302
+ const U = "0", y = "0", ae = xe.length > 0 ? xe.map((w) => /* @__PURE__ */ i(C.Item, { value: w.id, disabled: w.isDisabled, onClick: w.onSelect, asChild: !0, children: /* @__PURE__ */ i(_, { bg: "transparent", h: "auto", p: "0", _hover: {
328
303
  bg: "transparent"
329
304
  }, _focus: {
330
305
  bg: "transparent"
331
306
  }, _active: {
332
307
  bg: "transparent"
333
- }, children: /* @__PURE__ */ r(Fe, { asChild: !0, ...re(w), role: "presentation", variant: w.variant ?? "full-width", isSelected: w.isSelected }) }) }, w.id)) : I.emptyState;
308
+ }, children: /* @__PURE__ */ i(Fe, { asChild: !0, ...ie(w), role: "presentation", variant: w.variant ?? "full-width", isSelected: w.isSelected }) }) }, w.id)) : I.emptyState;
334
309
  let A;
335
- e[16] !== B || e[17] !== I.contentTestId || e[18] !== H || e[19] !== ae || e[20] !== ce ? (A = /* @__PURE__ */ r(B, { maxH: H, "data-testid": I.contentTestId, viewportProps: ae, p: U, gap: y, children: ce }), e[16] = B, e[17] = I.contentTestId, e[18] = H, e[19] = ae, e[20] = ce, e[21] = A) : A = e[21];
310
+ e[16] !== B || e[17] !== I.contentTestId || e[18] !== H || e[19] !== ce || e[20] !== ae ? (A = /* @__PURE__ */ i(B, { maxH: H, "data-testid": I.contentTestId, viewportProps: ce, p: U, gap: y, children: ae }), e[16] = B, e[17] = I.contentTestId, e[18] = H, e[19] = ce, e[20] = ae, e[21] = A) : A = e[21];
336
311
  let N;
337
- e[22] !== we || e[23] !== me || e[24] !== ie.Content || e[25] !== se || e[26] !== A || e[27] !== $ ? (N = /* @__PURE__ */ P(ie.Content, { w: $, bg: M, gap: Ie, p: W, children: [
312
+ e[22] !== we || e[23] !== me || e[24] !== re.Content || e[25] !== se || e[26] !== A || e[27] !== $ ? (N = /* @__PURE__ */ P(re.Content, { w: $, bg: M, gap: Ie, p: W, children: [
338
313
  we,
339
314
  me,
340
315
  se,
341
316
  A
342
- ] }), e[22] = we, e[23] = me, e[24] = ie.Content, e[25] = se, e[26] = A, e[27] = $, e[28] = N) : N = e[28];
317
+ ] }), e[22] = we, e[23] = me, e[24] = re.Content, e[25] = se, e[26] = A, e[27] = $, e[28] = N) : N = e[28];
343
318
  let K;
344
- e[29] !== T.Positioner || e[30] !== N ? (K = /* @__PURE__ */ r(T.Positioner, { children: N }), e[29] = T.Positioner, e[30] = N, e[31] = K) : K = e[31];
319
+ e[29] !== T.Positioner || e[30] !== N ? (K = /* @__PURE__ */ i(T.Positioner, { children: N }), e[29] = T.Positioner, e[30] = N, e[31] = K) : K = e[31];
345
320
  const de = K, ge = Z ? Ce : void 0;
346
321
  let Q;
347
- e[32] !== t ? (Q = /* @__PURE__ */ r(C.Trigger, { asChild: !0, children: t }), e[32] = t, e[33] = Q) : Q = e[33];
322
+ e[32] !== t ? (Q = /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: t }), e[32] = t, e[33] = Q) : Q = e[33];
348
323
  const be = !Be;
349
324
  let te;
350
- e[34] !== de || e[35] !== be ? (te = /* @__PURE__ */ r(Ne, { disabled: be, children: de }), e[34] = de, e[35] = be, e[36] = te) : te = e[36];
325
+ e[34] !== de || e[35] !== be ? (te = /* @__PURE__ */ i(Ne, { disabled: be, children: de }), e[34] = de, e[35] = be, e[36] = te) : te = e[36];
351
326
  let ye;
352
327
  return e[37] !== I.closeOnSelect || e[38] !== Oe || e[39] !== F || e[40] !== g || e[41] !== f || e[42] !== b || e[43] !== ge || e[44] !== Q || e[45] !== te ? (ye = /* @__PURE__ */ P(C.Root, { lazyMount: F, closeOnSelect: I.closeOnSelect, open: f, positioning: b, onOpenChange: Oe, onFocusOutside: g, onSelect: ge, children: [
353
328
  Q,
@@ -355,32 +330,32 @@ const yt = (n, e) => {
355
330
  ] }), e[37] = I.closeOnSelect, e[38] = Oe, e[39] = F, e[40] = g, e[41] = f, e[42] = b, e[43] = ge, e[44] = Q, e[45] = te, e[46] = ye) : ye = e[46], ye;
356
331
  };
357
332
  function kt(n) {
358
- return n ? /* @__PURE__ */ r(Pe, { as: n, boxSize: "14px" }) : void 0;
333
+ return n ? /* @__PURE__ */ i(Pe, { as: n, boxSize: "14px" }) : void 0;
359
334
  }
360
- function Ot(n) {
335
+ function Rt(n) {
361
336
  return n.stopPropagation();
362
337
  }
363
- function Dt(n) {
338
+ function Ot(n) {
364
339
  return n === "child" ? "parent" : "child";
365
340
  }
366
- const Bt = (n) => {
341
+ const Dt = (n) => {
367
342
  const e = O(14), {
368
343
  action: t
369
344
  } = n;
370
345
  let o;
371
346
  e[0] !== t.menuItems ? (o = t.menuItems ?? [], e[0] = t.menuItems, e[1] = o) : o = e[1];
372
- let i;
373
- e[2] !== o ? (i = o.map(Tt), e[2] = o, e[3] = i) : i = e[3];
374
- const s = i;
347
+ let r;
348
+ e[2] !== o ? (r = o.map(Bt), e[2] = o, e[3] = r) : r = e[3];
349
+ const s = r;
375
350
  let l;
376
- e[4] !== t.icon || e[5] !== t.label ? (l = /* @__PURE__ */ r(qe, { variant: "ghost", size: "2xs", "aria-label": t.label, children: t.icon }), e[4] = t.icon, e[5] = t.label, e[6] = l) : l = e[6];
377
- const a = t.searchPlaceholder ?? "Search...", d = t.emptyMenuLabel ?? "No results found";
378
- let c;
379
- e[7] !== d ? (c = /* @__PURE__ */ r(C.Item, { value: "empty", asChild: !0, children: /* @__PURE__ */ r(Fe, { asChild: !0, variant: "full-width", label: d, disabled: !0 }) }), e[7] = d, e[8] = c) : c = e[8];
351
+ e[4] !== t.icon || e[5] !== t.label ? (l = /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": t.label, children: t.icon }), e[4] = t.icon, e[5] = t.label, e[6] = l) : l = e[6];
352
+ const c = t.searchPlaceholder ?? "Search...", d = t.emptyMenuLabel ?? "No results found";
353
+ let a;
354
+ e[7] !== d ? (a = /* @__PURE__ */ i(C.Item, { value: "empty", asChild: !0, children: /* @__PURE__ */ i(Fe, { asChild: !0, variant: "full-width", label: d, disabled: !0 }) }), e[7] = d, e[8] = a) : a = e[8];
380
355
  let h;
381
- return e[9] !== s || e[10] !== l || e[11] !== a || e[12] !== c ? (h = /* @__PURE__ */ r(Rt, { trigger: l, items: s, searchPlaceholder: a, emptyState: c, onFocusOutside: Wt }), e[9] = s, e[10] = l, e[11] = a, e[12] = c, e[13] = h) : h = e[13], h;
356
+ return e[9] !== s || e[10] !== l || e[11] !== c || e[12] !== a ? (h = /* @__PURE__ */ i(Pt, { trigger: l, items: s, searchPlaceholder: c, emptyState: a, onFocusOutside: Tt }), e[9] = s, e[10] = l, e[11] = c, e[12] = a, e[13] = h) : h = e[13], h;
382
357
  };
383
- function Tt(n) {
358
+ function Bt(n) {
384
359
  return {
385
360
  id: n.id,
386
361
  label: n.label,
@@ -390,58 +365,58 @@ function Tt(n) {
390
365
  onSelect: () => n.onAction?.()
391
366
  };
392
367
  }
393
- function Wt(n) {
368
+ function Tt(n) {
394
369
  return n.preventDefault();
395
370
  }
396
- const Ze = (n, e) => n.tooltip ? /* @__PURE__ */ r(Qe, { content: n.tooltip, openDelay: 300, children: e }, n.id) : /* @__PURE__ */ r(Ke, { children: e }, n.id), Lt = (n) => {
371
+ const Ze = (n, e) => n.tooltip ? /* @__PURE__ */ i(Qe, { content: n.tooltip, openDelay: 300, children: e }, n.id) : /* @__PURE__ */ i(Ke, { children: e }, n.id), Wt = (n) => {
397
372
  const e = O(11), {
398
373
  actions: t,
399
374
  alwaysVisible: o,
400
- context: i
375
+ context: r
401
376
  } = n, s = o === void 0 ? !1 : o;
402
377
  if (t.length === 0)
403
378
  return null;
404
- const l = s ? "1" : "0", a = s ? "auto" : "none";
405
- let d, c;
379
+ const l = s ? "1" : "0", c = s ? "auto" : "none";
380
+ let d, a;
406
381
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
407
382
  opacity: "1",
408
383
  pointerEvents: "auto"
409
- }, c = {
384
+ }, a = {
410
385
  opacity: "1",
411
386
  pointerEvents: "auto"
412
- }, e[0] = d, e[1] = c) : (d = e[0], c = e[1]);
387
+ }, e[0] = d, e[1] = a) : (d = e[0], a = e[1]);
413
388
  let h;
414
- if (e[2] !== t || e[3] !== i) {
389
+ if (e[2] !== t || e[3] !== r) {
415
390
  let m;
416
- e[5] !== i ? (m = (u) => u.menuItems && u.menuItems.length >= 8 ? /* @__PURE__ */ r(Bt, { action: u }, u.id) : u.menuItems && u.menuItems.length > 0 ? Ze(u, /* @__PURE__ */ P(C.Root, { children: [
417
- /* @__PURE__ */ r(C.Trigger, { asChild: !0, children: /* @__PURE__ */ r(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, children: u.icon }) }),
418
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(C.Positioner, { children: /* @__PURE__ */ r(C.Content, { minW: "160px", bg: "bg", children: u.menuItems.map(Ht) }) }) })
419
- ] })) : Ze(u, /* @__PURE__ */ r(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, onClick: (f) => {
420
- f.stopPropagation(), u.onAction?.(i);
421
- }, children: u.icon })), e[5] = i, e[6] = m) : m = e[6], h = t.map(m), e[2] = t, e[3] = i, e[4] = h;
391
+ e[5] !== r ? (m = (u) => u.menuItems && u.menuItems.length >= 8 ? /* @__PURE__ */ i(Dt, { action: u }, u.id) : u.menuItems && u.menuItems.length > 0 ? Ze(u, /* @__PURE__ */ P(C.Root, { children: [
392
+ /* @__PURE__ */ i(C.Trigger, { asChild: !0, children: /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, children: u.icon }) }),
393
+ /* @__PURE__ */ i(Ne, { children: /* @__PURE__ */ i(C.Positioner, { children: /* @__PURE__ */ i(C.Content, { minW: "160px", bg: "bg", children: u.menuItems.map($t) }) }) })
394
+ ] })) : Ze(u, /* @__PURE__ */ i(qe, { variant: "ghost", size: "2xs", "aria-label": u.label, onClick: (f) => {
395
+ f.stopPropagation(), u.onAction?.(r);
396
+ }, children: u.icon })), e[5] = r, e[6] = m) : m = e[6], h = t.map(m), e[2] = t, e[3] = r, e[4] = h;
422
397
  } else
423
398
  h = e[4];
424
399
  let p;
425
- return e[7] !== l || e[8] !== a || e[9] !== h ? (p = /* @__PURE__ */ r(he, { gap: "0", opacity: l, pointerEvents: a, _groupHover: d, _groupFocusWithin: c, transition: "opacity 120ms ease", onClick: $t, children: h }), e[7] = l, e[8] = a, e[9] = h, e[10] = p) : p = e[10], p;
400
+ return e[7] !== l || e[8] !== c || e[9] !== h ? (p = /* @__PURE__ */ i(he, { gap: "0", opacity: l, pointerEvents: c, _groupHover: d, _groupFocusWithin: a, transition: "opacity 120ms ease", onClick: Lt, children: h }), e[7] = l, e[8] = c, e[9] = h, e[10] = p) : p = e[10], p;
426
401
  };
427
- function $t(n) {
402
+ function Lt(n) {
428
403
  return n.stopPropagation();
429
404
  }
430
- function Ht(n) {
405
+ function $t(n) {
431
406
  return /* @__PURE__ */ P(Ke, { children: [
432
- n.separatorBefore ? /* @__PURE__ */ r(C.Separator, {}) : null,
433
- /* @__PURE__ */ r(Qe, { content: n.description, disabled: !n.description, openDelay: 300, children: /* @__PURE__ */ r(C.Item, { value: n.id, disabled: n.disabled || n.readOnly, onClick: () => {
407
+ n.separatorBefore ? /* @__PURE__ */ i(C.Separator, {}) : null,
408
+ /* @__PURE__ */ i(Qe, { content: n.description, disabled: !n.description, openDelay: 300, children: /* @__PURE__ */ i(C.Item, { value: n.id, disabled: n.disabled || n.readOnly, onClick: () => {
434
409
  n.readOnly || n.onAction?.();
435
410
  }, children: /* @__PURE__ */ P(he, { gap: "2", minW: "0", w: "full", justify: "space-between", children: [
436
411
  /* @__PURE__ */ P(he, { gap: "2", minW: "0", children: [
437
- n.icon ? /* @__PURE__ */ r(z, { children: n.icon }) : null,
438
- /* @__PURE__ */ r(z, { minW: "0", children: n.label })
412
+ n.icon ? /* @__PURE__ */ i(_, { children: n.icon }) : null,
413
+ /* @__PURE__ */ i(_, { minW: "0", children: n.label })
439
414
  ] }),
440
- n.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, children: n.endContent }) : null
415
+ n.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, children: n.endContent }) : null
441
416
  ] }) }) })
442
417
  ] }, n.id);
443
418
  }
444
- const At = (n, e = !0) => {
419
+ const Ht = (n, e = !0) => {
445
420
  const t = n.contextMenuItems ?? [];
446
421
  if (t.length === 0 || !e) return n.actions ?? [];
447
422
  const o = n.actions?.flatMap((l) => l.menuItems?.length ? l.menuItems : [{
@@ -451,80 +426,80 @@ const At = (n, e = !0) => {
451
426
  onAction: () => l.onAction?.({
452
427
  nodeId: n.id
453
428
  })
454
- }]) ?? [], i = new Set(o.map((l) => l.id)), s = t.filter((l) => !i.has(l.id)).map((l, a) => ({
429
+ }]) ?? [], r = new Set(o.map((l) => l.id)), s = t.filter((l) => !r.has(l.id)).map((l, c) => ({
455
430
  ...l,
456
- separatorBefore: l.separatorBefore || a === 0 && o.length > 0
431
+ separatorBefore: l.separatorBefore || c === 0 && o.length > 0
457
432
  }));
458
433
  return [{
459
434
  id: "resource-actions",
460
435
  label: "Resource actions",
461
- icon: /* @__PURE__ */ r(Pe, { as: nt, boxSize: "14px" }),
436
+ icon: /* @__PURE__ */ i(Pe, { as: nt, boxSize: "14px" }),
462
437
  menuItems: [...o, ...s]
463
438
  }];
464
- }, Et = (n) => n.isEmptyStateVariant ? "fg.menu-item.secondary" : n.isDisabled ? "fg.muted" : n.tone === "danger" ? "red.500" : "fg", _t = (n) => {
439
+ }, At = (n) => n.isEmptyStateVariant ? "fg.menu-item.secondary" : n.isDisabled ? "fg.muted" : n.tone === "danger" ? "red.500" : "fg", Et = (n) => {
465
440
  const e = O(7), {
466
441
  label: t,
467
442
  textStyle: o,
468
- color: i
443
+ color: r
469
444
  } = n;
470
445
  if (typeof t == "string") {
471
446
  let l;
472
- return e[0] !== i || e[1] !== t || e[2] !== o ? (l = /* @__PURE__ */ r(je, { textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = o, e[3] = l) : l = e[3], l;
447
+ return e[0] !== r || e[1] !== t || e[2] !== o ? (l = /* @__PURE__ */ i(je, { textStyle: o, color: r, truncate: !0, children: t }), e[0] = r, e[1] = t, e[2] = o, e[3] = l) : l = e[3], l;
473
448
  }
474
449
  let s;
475
- return e[4] !== i || e[5] !== t ? (s = /* @__PURE__ */ r(z, { minW: "0", maxW: "full", overflow: "hidden", color: i, children: t }), e[4] = i, e[5] = t, e[6] = s) : s = e[6], s;
450
+ return e[4] !== r || e[5] !== t ? (s = /* @__PURE__ */ i(_, { minW: "0", maxW: "full", overflow: "hidden", color: r, children: t }), e[4] = r, e[5] = t, e[6] = s) : s = e[6], s;
476
451
  }, zt = (n) => {
477
452
  const e = O(8), {
478
453
  description: t,
479
454
  textStyle: o,
480
- color: i,
455
+ color: r,
481
456
  marginLeft: s
482
457
  } = n;
483
458
  if (!t)
484
459
  return null;
485
460
  if (typeof t == "string") {
486
- let a;
487
- return e[0] !== i || e[1] !== t || e[2] !== s || e[3] !== o ? (a = /* @__PURE__ */ r(je, { ml: s, textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = s, e[3] = o, e[4] = a) : a = e[4], a;
461
+ let c;
462
+ return e[0] !== r || e[1] !== t || e[2] !== s || e[3] !== o ? (c = /* @__PURE__ */ i(je, { ml: s, textStyle: o, color: r, truncate: !0, children: t }), e[0] = r, e[1] = t, e[2] = s, e[3] = o, e[4] = c) : c = e[4], c;
488
463
  }
489
464
  let l;
490
- return e[5] !== t || e[6] !== s ? (l = /* @__PURE__ */ r(z, { ml: s, minW: "0", maxW: "full", overflow: "hidden", children: t }), e[5] = t, e[6] = s, e[7] = l) : l = e[7], l;
491
- }, Vt = (n) => {
465
+ return e[5] !== t || e[6] !== s ? (l = /* @__PURE__ */ i(_, { ml: s, minW: "0", maxW: "full", overflow: "hidden", children: t }), e[5] = t, e[6] = s, e[7] = l) : l = e[7], l;
466
+ }, _t = (n) => {
492
467
  const e = O(33), {
493
468
  item: t,
494
469
  isExpanded: o,
495
- showChevron: i,
470
+ showChevron: r,
496
471
  isDisabled: s,
497
472
  variant: l,
498
- tone: a
499
- } = n, d = l === "empty-state", c = l === "compact" || l === "collection" || l === "full-width" || l === "tree" || d, h = c ? "label/S/regular" : "label/M/regular", p = c ? "label/XS" : "label/S/regular", m = c ? "0" : "2px", u = l === "tree" || l === "collection" ? "16px" : "14px", f = l === "collection" ? "compact" : l === "tree" ? "1" : "2";
473
+ tone: c
474
+ } = n, d = l === "empty-state", a = l === "compact" || l === "collection" || l === "full-width" || l === "tree" || d, h = a ? "label/S/regular" : "label/M/regular", p = a ? "label/XS" : "label/S/regular", m = a ? "0" : "2px", u = l === "tree" || l === "collection" ? "16px" : "14px", f = l === "collection" ? "compact" : l === "tree" ? "1" : "2";
500
475
  let b;
501
- e[0] !== s || e[1] !== d || e[2] !== a ? (b = Et({
476
+ e[0] !== s || e[1] !== d || e[2] !== c ? (b = At({
502
477
  isEmptyStateVariant: d,
503
478
  isDisabled: s,
504
- tone: a
505
- }), e[0] = s, e[1] = d, e[2] = a, e[3] = b) : b = e[3];
506
- const S = b, g = t.iconColor ?? (a === "danger" ? "red.500" : "fg.muted"), Y = a === "danger" ? "red.400" : "fg.menu-item.secondary";
479
+ tone: c
480
+ }), e[0] = s, e[1] = d, e[2] = c, e[3] = b) : b = e[3];
481
+ const S = b, g = t.iconColor ?? (c === "danger" ? "red.500" : "fg.muted"), Y = c === "danger" ? "red.400" : "fg.menu-item.secondary";
507
482
  let L;
508
- e[4] !== o || e[5] !== i ? (L = i ? /* @__PURE__ */ r(z, { color: "fg.muted", flexShrink: 0, display: "flex", alignItems: "center", children: /* @__PURE__ */ r(Pe, { as: ht, boxSize: "12px", transform: o ? "rotate(90deg)" : "rotate(0deg)", transition: "transform 120ms ease" }) }) : null, e[4] = o, e[5] = i, e[6] = L) : L = e[6];
483
+ e[4] !== o || e[5] !== r ? (L = r ? /* @__PURE__ */ i(_, { color: "fg.muted", flexShrink: 0, display: "flex", alignItems: "center", children: /* @__PURE__ */ i(Pe, { as: ht, boxSize: "12px", transform: o ? "rotate(90deg)" : "rotate(0deg)", transition: "transform 120ms ease" }) }) : null, e[4] = o, e[5] = r, e[6] = L) : L = e[6];
509
484
  let v;
510
- e[7] !== g || e[8] !== u || e[9] !== t.icon ? (v = t.icon ? /* @__PURE__ */ r(z, { color: g, flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: u, fontSize: u, lineHeight: "1", css: {
485
+ e[7] !== g || e[8] !== u || e[9] !== t.icon ? (v = t.icon ? /* @__PURE__ */ i(_, { color: g, flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: u, fontSize: u, lineHeight: "1", css: {
511
486
  "& > svg": {
512
487
  width: u,
513
488
  height: u
514
489
  }
515
490
  }, children: t.icon }) : null, e[7] = g, e[8] = u, e[9] = t.icon, e[10] = v) : v = e[10];
516
- let k;
517
- e[11] !== t.indicator ? (k = t.indicator ? /* @__PURE__ */ r(Qe, { content: t.indicator.tooltip, disabled: !t.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ r(z, { color: t.indicator.color ?? "fg.muted", flexShrink: 0, children: t.indicator.icon }) }) : null, e[11] = t.indicator, e[12] = k) : k = e[12];
491
+ let R;
492
+ e[11] !== t.indicator ? (R = t.indicator ? /* @__PURE__ */ i(Qe, { content: t.indicator.tooltip, disabled: !t.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ i(_, { color: t.indicator.color ?? "fg.muted", flexShrink: 0, children: t.indicator.icon }) }) : null, e[11] = t.indicator, e[12] = R) : R = e[12];
518
493
  let $;
519
- e[13] !== t.label || e[14] !== S || e[15] !== h ? ($ = /* @__PURE__ */ r(_t, { label: t.label, textStyle: h, color: S }), e[13] = t.label, e[14] = S, e[15] = h, e[16] = $) : $ = e[16];
494
+ e[13] !== t.label || e[14] !== S || e[15] !== h ? ($ = /* @__PURE__ */ i(Et, { label: t.label, textStyle: h, color: S }), e[13] = t.label, e[14] = S, e[15] = h, e[16] = $) : $ = e[16];
520
495
  let H;
521
- e[17] !== f || e[18] !== v || e[19] !== k || e[20] !== $ ? (H = /* @__PURE__ */ P(he, { gap: f, minW: "0", alignItems: "center", children: [
496
+ e[17] !== f || e[18] !== v || e[19] !== R || e[20] !== $ ? (H = /* @__PURE__ */ P(he, { gap: f, minW: "0", alignItems: "center", children: [
522
497
  v,
523
- k,
498
+ R,
524
499
  $
525
- ] }), e[17] = f, e[18] = v, e[19] = k, e[20] = $, e[21] = H) : H = e[21];
500
+ ] }), e[17] = f, e[18] = v, e[19] = R, e[20] = $, e[21] = H) : H = e[21];
526
501
  let V;
527
- e[22] !== Y || e[23] !== m || e[24] !== p || e[25] !== t.description ? (V = /* @__PURE__ */ r(zt, { description: t.description, textStyle: p, color: Y, marginLeft: m }), e[22] = Y, e[23] = m, e[24] = p, e[25] = t.description, e[26] = V) : V = e[26];
502
+ e[22] !== Y || e[23] !== m || e[24] !== p || e[25] !== t.description ? (V = /* @__PURE__ */ i(zt, { description: t.description, textStyle: p, color: Y, marginLeft: m }), e[22] = Y, e[23] = m, e[24] = p, e[25] = t.description, e[26] = V) : V = e[26];
528
503
  let j;
529
504
  e[27] !== H || e[28] !== V ? (j = /* @__PURE__ */ P(tt, { gap: "0", minW: "0", flex: "1", children: [
530
505
  H,
@@ -535,25 +510,25 @@ const At = (n, e = !0) => {
535
510
  L,
536
511
  j
537
512
  ] }), e[30] = L, e[31] = j, e[32] = F) : F = e[32], F;
538
- }, jt = (n) => {
513
+ }, Vt = (n) => {
539
514
  const e = O(21), {
540
515
  item: t,
541
516
  isDisabled: o,
542
- isExpanded: i,
517
+ isExpanded: r,
543
518
  showChevron: s,
544
519
  tone: l,
545
- variant: a,
520
+ variant: c,
546
521
  showContextMenuTrigger: d
547
- } = n, c = l === void 0 ? "default" : l, h = a === void 0 ? "default" : a;
522
+ } = n, a = l === void 0 ? "default" : l, h = c === void 0 ? "default" : c;
548
523
  let p;
549
- e[0] !== t || e[1] !== d ? (p = At(t, d), e[0] = t, e[1] = d, e[2] = p) : p = e[2];
524
+ e[0] !== t || e[1] !== d ? (p = Ht(t, d), e[0] = t, e[1] = d, e[2] = p) : p = e[2];
550
525
  const m = p;
551
526
  let u;
552
- e[3] !== o || e[4] !== i || e[5] !== t || e[6] !== s || e[7] !== c || e[8] !== h ? (u = /* @__PURE__ */ r(Vt, { item: t, isExpanded: i, showChevron: s, isDisabled: o, tone: c, variant: h }), e[3] = o, e[4] = i, e[5] = t, e[6] = s, e[7] = c, e[8] = h, e[9] = u) : u = e[9];
527
+ e[3] !== o || e[4] !== r || e[5] !== t || e[6] !== s || e[7] !== a || e[8] !== h ? (u = /* @__PURE__ */ i(_t, { item: t, isExpanded: r, showChevron: s, isDisabled: o, tone: a, variant: h }), e[3] = o, e[4] = r, e[5] = t, e[6] = s, e[7] = a, e[8] = h, e[9] = u) : u = e[9];
553
528
  let f;
554
- e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, color: "fg.muted", display: "flex", alignItems: "center", children: t.endContent }) : null, e[10] = t.endContent, e[11] = f) : f = e[11];
529
+ e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */ i(_, { flexShrink: 0, color: "fg.muted", display: "flex", alignItems: "center", children: t.endContent }) : null, e[10] = t.endContent, e[11] = f) : f = e[11];
555
530
  let b;
556
- e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== d ? (b = m.length > 0 ? /* @__PURE__ */ r(Lt, { actions: m, context: {
531
+ e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== d ? (b = m.length > 0 ? /* @__PURE__ */ i(Wt, { actions: m, context: {
557
532
  nodeId: t.id
558
533
  }, alwaysVisible: d && (t.contextMenuItems?.length ?? 0) > 0 }) : null, e[12] = m, e[13] = t.contextMenuItems?.length, e[14] = t.id, e[15] = d, e[16] = b) : b = e[16];
559
534
  let S;
@@ -562,19 +537,19 @@ const At = (n, e = !0) => {
562
537
  f,
563
538
  b
564
539
  ] }), e[17] = u, e[18] = f, e[19] = b, e[20] = S) : S = e[20], S;
565
- }, Ft = (n) => {
540
+ }, jt = (n) => {
566
541
  if (!(n <= 0))
567
542
  return `calc(var(--chakra-spacing-1) + ${n} * 12px)`;
568
- }, Nt = (n) => n === "compact" || n === "full-width" || n === "empty-state", Kt = (n, e) => n === "collection" && !e ? {
543
+ }, Ft = (n) => n === "compact" || n === "full-width" || n === "empty-state", Nt = (n, e) => n === "collection" && !e ? {
569
544
  rowHeight: "collection-row",
570
545
  minHeight: void 0
571
- } : Nt(n) && !e ? {
546
+ } : Ft(n) && !e ? {
572
547
  rowHeight: "1.75rem",
573
548
  minHeight: void 0
574
549
  } : {
575
550
  rowHeight: "auto",
576
551
  minHeight: n === "default" ? "2.25rem" : "1.75rem"
577
- }, Qt = (n) => ({
552
+ }, Kt = (n) => ({
578
553
  bg: n.isSelected ? n.selectedBg : "transparent",
579
554
  _hover: n.variant === "empty-state" ? {
580
555
  bg: "transparent"
@@ -592,7 +567,7 @@ const At = (n, e = !0) => {
592
567
  } : {
593
568
  bg: n.selectedBg
594
569
  }
595
- }), Gt = (n) => ({
570
+ }), Qt = (n) => ({
596
571
  ...n.rootProps,
597
572
  role: n.rowRole,
598
573
  "aria-selected": n.rootProps["aria-selected"] ?? (n.rowRole === "option" ? n.isSelected : void 0),
@@ -611,7 +586,7 @@ const At = (n, e = !0) => {
611
586
  py: n.verticalPadding,
612
587
  pl: n.paddingLeft,
613
588
  borderRadius: n.variant === "full-width" || n.variant === "collection" ? "0" : "xs",
614
- ...Qt({
589
+ ...Kt({
615
590
  ...n
616
591
  }),
617
592
  cursor: n.variant === "empty-state" ? "default" : n.isDisabled ? "not-allowed" : "pointer",
@@ -622,12 +597,12 @@ const At = (n, e = !0) => {
622
597
  }), Fe = dt((n, e) => {
623
598
  const t = O(108), {
624
599
  id: o,
625
- label: i,
600
+ label: r,
626
601
  description: s,
627
602
  icon: l,
628
- iconColor: a,
603
+ iconColor: c,
629
604
  indicator: d,
630
- endContent: c,
605
+ endContent: a,
631
606
  tooltip: h,
632
607
  disabled: p,
633
608
  isContainer: m,
@@ -639,7 +614,7 @@ const At = (n, e = !0) => {
639
614
  contextMenuItems: Y,
640
615
  actions: L,
641
616
  children: v,
642
- onActivate: k,
617
+ onActivate: R,
643
618
  depth: $,
644
619
  isSelected: H,
645
620
  isExpanded: V,
@@ -649,8 +624,8 @@ const At = (n, e = !0) => {
649
624
  tone: Z,
650
625
  selectedBg: Te,
651
626
  hoverBg: We,
652
- asChild: Re,
653
- className: ke,
627
+ asChild: ke,
628
+ className: Re,
654
629
  role: Ge,
655
630
  onToggleExpand: fe,
656
631
  onPointerMove: D,
@@ -662,16 +637,16 @@ const At = (n, e = !0) => {
662
637
  onClick: J,
663
638
  onKeyDown: oe,
664
639
  ...pe
665
- } = n, Oe = $ === void 0 ? 0 : $, Se = H === void 0 ? !1 : H, Ce = V === void 0 ? !1 : V, $e = j === void 0 ? !1 : j, le = F === void 0 ? !0 : F, re = Be === void 0 ? "default" : Be, ee = Z === void 0 ? "default" : Z, Je = Te === void 0 ? "bg.active" : Te, we = We === void 0 ? "bg.hover" : We, De = Re === void 0 ? !1 : Re, [me, T] = Ve(!1);
666
- let ie;
667
- t[0] !== L || t[1] !== v || t[2] !== Y || t[3] !== s || t[4] !== p || t[5] !== c || t[6] !== f || t[7] !== l || t[8] !== a || t[9] !== o || t[10] !== d || t[11] !== m || t[12] !== u || t[13] !== i || t[14] !== S || t[15] !== g || t[16] !== b || t[17] !== k || t[18] !== h ? (ie = {
640
+ } = n, Oe = $ === void 0 ? 0 : $, Se = H === void 0 ? !1 : H, Ce = V === void 0 ? !1 : V, $e = j === void 0 ? !1 : j, le = F === void 0 ? !0 : F, ie = Be === void 0 ? "default" : Be, ee = Z === void 0 ? "default" : Z, Je = Te === void 0 ? "bg.active" : Te, we = We === void 0 ? "bg.hover" : We, De = ke === void 0 ? !1 : ke, [me, T] = Ve(!1);
641
+ let re;
642
+ t[0] !== L || t[1] !== v || t[2] !== Y || t[3] !== s || t[4] !== p || t[5] !== a || t[6] !== f || t[7] !== l || t[8] !== c || t[9] !== o || t[10] !== d || t[11] !== m || t[12] !== u || t[13] !== r || t[14] !== S || t[15] !== g || t[16] !== b || t[17] !== R || t[18] !== h ? (re = {
668
643
  id: o,
669
- label: i,
644
+ label: r,
670
645
  description: s,
671
646
  icon: l,
672
- iconColor: a,
647
+ iconColor: c,
673
648
  indicator: d,
674
- endContent: c,
649
+ endContent: a,
675
650
  tooltip: h,
676
651
  disabled: p,
677
652
  isContainer: m,
@@ -683,9 +658,9 @@ const At = (n, e = !0) => {
683
658
  contextMenuItems: Y,
684
659
  actions: L,
685
660
  children: v,
686
- onActivate: k
687
- }, t[0] = L, t[1] = v, t[2] = Y, t[3] = s, t[4] = p, t[5] = c, t[6] = f, t[7] = l, t[8] = a, t[9] = o, t[10] = d, t[11] = m, t[12] = u, t[13] = i, t[14] = S, t[15] = g, t[16] = b, t[17] = k, t[18] = h, t[19] = ie) : ie = t[19];
688
- const M = ie;
661
+ onActivate: R
662
+ }, t[0] = L, t[1] = v, t[2] = Y, t[3] = s, t[4] = p, t[5] = a, t[6] = f, t[7] = l, t[8] = c, t[9] = o, t[10] = d, t[11] = m, t[12] = u, t[13] = r, t[14] = S, t[15] = g, t[16] = b, t[17] = R, t[18] = h, t[19] = re) : re = t[19];
663
+ const M = re;
689
664
  let Ie;
690
665
  t[20] !== q || t[21] !== I || t[22] !== Le || t[23] !== ne || t[24] !== xe ? (Ie = {
691
666
  draggable: q,
@@ -694,22 +669,22 @@ const At = (n, e = !0) => {
694
669
  onDragEnd: I,
695
670
  onDrop: xe
696
671
  }, t[20] = q, t[21] = I, t[22] = Le, t[23] = ne, t[24] = xe, t[25] = Ie) : Ie = t[25];
697
- const W = Ie, se = (M.children?.length ?? 0) > 0 || M.isContainer === !0, B = (M.menuItems?.length ?? 0) > 0, ae = (M.actions?.length ?? 0) > 0 || (M.contextMenuItems?.length ?? 0) > 0, U = $e && se, y = M.disabled === !0;
698
- let ce;
699
- t[26] !== B || t[27] !== y || t[28] !== M || t[29] !== k || t[30] !== fe || t[31] !== U ? (ce = () => {
672
+ const W = Ie, se = (M.children?.length ?? 0) > 0 || M.isContainer === !0, B = (M.menuItems?.length ?? 0) > 0, ce = (M.actions?.length ?? 0) > 0 || (M.contextMenuItems?.length ?? 0) > 0, U = $e && se, y = M.disabled === !0;
673
+ let ae;
674
+ t[26] !== B || t[27] !== y || t[28] !== M || t[29] !== R || t[30] !== fe || t[31] !== U ? (ae = () => {
700
675
  if (!y && !B) {
701
676
  if (U) {
702
677
  fe?.();
703
678
  return;
704
679
  }
705
- if (k) {
706
- k();
680
+ if (R) {
681
+ R();
707
682
  return;
708
683
  }
709
684
  M.onActivate?.();
710
685
  }
711
- }, t[26] = B, t[27] = y, t[28] = M, t[29] = k, t[30] = fe, t[31] = U, t[32] = ce) : ce = t[32];
712
- const A = ce;
686
+ }, t[26] = B, t[27] = y, t[28] = M, t[29] = R, t[30] = fe, t[31] = U, t[32] = ae) : ae = t[32];
687
+ const A = ae;
713
688
  let N;
714
689
  t[33] !== A || t[34] !== y || t[35] !== J ? (N = (x) => {
715
690
  if (J?.(x), !x.defaultPrevented) {
@@ -728,7 +703,7 @@ const At = (n, e = !0) => {
728
703
  x.preventDefault();
729
704
  return;
730
705
  }
731
- T(Xt);
706
+ T(Gt);
732
707
  }
733
708
  }, t[37] = y, t[38] = J, t[39] = T, t[40] = de) : de = t[40];
734
709
  const ge = de;
@@ -736,13 +711,13 @@ const At = (n, e = !0) => {
736
711
  t[41] !== A || t[42] !== B || t[43] !== y || t[44] !== oe || t[45] !== T ? (Q = (x) => {
737
712
  if (oe?.(x), !x.defaultPrevented && !(x.key !== "Enter" && x.key !== " ") && (x.preventDefault(), !y)) {
738
713
  if (B) {
739
- T(qt);
714
+ T(Xt);
740
715
  return;
741
716
  }
742
717
  A();
743
718
  }
744
719
  }, t[41] = A, t[42] = B, t[43] = y, t[44] = oe, t[45] = T, t[46] = Q) : Q = t[46];
745
- const be = Q, te = M.description !== void 0, ye = Ft(Oe), w = re === "default" || te ? "xs" : "2xs";
720
+ const be = Q, te = M.description !== void 0, ye = jt(Oe), w = ie === "default" || te ? "xs" : "2xs";
746
721
  let ve;
747
722
  t[47] !== K || t[48] !== ge || t[49] !== B ? (ve = B ? {
748
723
  onClick: ge
@@ -750,72 +725,72 @@ const At = (n, e = !0) => {
750
725
  onClick: K
751
726
  }, t[47] = K, t[48] = ge, t[49] = B, t[50] = ve) : ve = t[50];
752
727
  const G = ve, {
753
- rowHeight: rt,
754
- minHeight: it
755
- } = Kt(re, te), ue = Gt({
728
+ rowHeight: it,
729
+ minHeight: rt
730
+ } = Nt(ie, te), ue = Qt({
756
731
  rootProps: pe,
757
732
  rowRole: Ge ?? (B ? "button" : "option"),
758
- className: ke,
733
+ className: Re,
759
734
  isSelected: Se,
760
735
  isExpanded: Ce,
761
736
  showChevron: U,
762
- rowHeight: rt,
763
- minHeight: it,
737
+ rowHeight: it,
738
+ minHeight: rt,
764
739
  verticalPadding: w,
765
740
  paddingLeft: ye,
766
741
  selectedBg: Je,
767
742
  hoverBg: we,
768
743
  tone: ee,
769
744
  isDisabled: y,
770
- variant: re
745
+ variant: ie
771
746
  });
772
747
  let He;
773
- t[51] !== y || t[52] !== Ce || t[53] !== M || t[54] !== U || t[55] !== le || t[56] !== ee || t[57] !== re ? (He = /* @__PURE__ */ r(jt, { item: M, isExpanded: Ce, showChevron: U, isDisabled: y, tone: ee, variant: re, showContextMenuTrigger: le }), t[51] = y, t[52] = Ce, t[53] = M, t[54] = U, t[55] = le, t[56] = ee, t[57] = re, t[58] = He) : He = t[58];
748
+ t[51] !== y || t[52] !== Ce || t[53] !== M || t[54] !== U || t[55] !== le || t[56] !== ee || t[57] !== ie ? (He = /* @__PURE__ */ i(Vt, { item: M, isExpanded: Ce, showChevron: U, isDisabled: y, tone: ee, variant: ie, showContextMenuTrigger: le }), t[51] = y, t[52] = Ce, t[53] = M, t[54] = U, t[55] = le, t[56] = ee, t[57] = ie, t[58] = He) : He = t[58];
774
749
  const E = He;
775
750
  let Ae;
776
- t[59] !== M || t[60] !== me || t[61] !== T ? (Ae = (x) => /* @__PURE__ */ r(xt, { item: M, menuOpen: me, onMenuOpenChange: T, onMenuSelect: (R) => {
777
- T(!1), R.onAction?.();
751
+ t[59] !== M || t[60] !== me || t[61] !== T ? (Ae = (x) => /* @__PURE__ */ i(xt, { item: M, menuOpen: me, onMenuOpenChange: T, onMenuSelect: (k) => {
752
+ T(!1), k.onAction?.();
778
753
  }, children: x }), t[59] = M, t[60] = me, t[61] = T, t[62] = Ae) : Ae = t[62];
779
- const _ = Ae;
754
+ const z = Ae;
780
755
  if (De) {
781
756
  let x;
782
- t[63] !== G || t[64] !== E || t[65] !== W || t[66] !== D || t[67] !== e || t[68] !== ue ? (x = /* @__PURE__ */ r(ze.div, { ref: e, ...ue, ...W, ...G, onPointerMove: D, children: E }), t[63] = G, t[64] = E, t[65] = W, t[66] = D, t[67] = e, t[68] = ue, t[69] = x) : x = t[69];
783
- let R;
784
- return t[70] !== x || t[71] !== _ ? (R = _(x), t[70] = x, t[71] = _, t[72] = R) : R = t[72], R;
757
+ t[63] !== G || t[64] !== E || t[65] !== W || t[66] !== D || t[67] !== e || t[68] !== ue ? (x = /* @__PURE__ */ i(_e.div, { ref: e, ...ue, ...W, ...G, onPointerMove: D, children: E }), t[63] = G, t[64] = E, t[65] = W, t[66] = D, t[67] = e, t[68] = ue, t[69] = x) : x = t[69];
758
+ let k;
759
+ return t[70] !== x || t[71] !== z ? (k = z(x), t[70] = x, t[71] = z, t[72] = k) : k = t[72], k;
785
760
  }
786
761
  if (M.href && !U && !y && !B) {
787
762
  const x = ue;
788
- let R;
789
- t[73] !== E || t[74] !== W || t[75] !== K || t[76] !== M.href || t[77] !== D || t[78] !== e || t[79] !== x ? (R = /* @__PURE__ */ r(ze.a, { ref: e, href: M.href, ...x, ...W, onClick: K, onPointerMove: D, children: E }), t[73] = E, t[74] = W, t[75] = K, t[76] = M.href, t[77] = D, t[78] = e, t[79] = x, t[80] = R) : R = t[80];
763
+ let k;
764
+ t[73] !== E || t[74] !== W || t[75] !== K || t[76] !== M.href || t[77] !== D || t[78] !== e || t[79] !== x ? (k = /* @__PURE__ */ i(_e.a, { ref: e, href: M.href, ...x, ...W, onClick: K, onPointerMove: D, children: E }), t[73] = E, t[74] = W, t[75] = K, t[76] = M.href, t[77] = D, t[78] = e, t[79] = x, t[80] = k) : k = t[80];
790
765
  let X;
791
- return t[81] !== R || t[82] !== _ ? (X = _(R), t[81] = R, t[82] = _, t[83] = X) : X = t[83], X;
766
+ return t[81] !== k || t[82] !== z ? (X = z(k), t[81] = k, t[82] = z, t[83] = X) : X = t[83], X;
792
767
  }
793
- if (ae) {
794
- const x = y || void 0, R = pe.tabIndex ?? 0;
768
+ if (ce) {
769
+ const x = y || void 0, k = pe.tabIndex ?? 0;
795
770
  let X;
796
- t[84] !== G || t[85] !== E || t[86] !== W || t[87] !== be || t[88] !== D || t[89] !== e || t[90] !== ue || t[91] !== x || t[92] !== R ? (X = /* @__PURE__ */ r(ze.div, { ref: e, "aria-disabled": x, ...ue, ...W, ...G, tabIndex: R, onKeyDown: be, onPointerMove: D, children: E }), t[84] = G, t[85] = E, t[86] = W, t[87] = be, t[88] = D, t[89] = e, t[90] = ue, t[91] = x, t[92] = R, t[93] = X) : X = t[93];
797
- let _e;
798
- return t[94] !== X || t[95] !== _ ? (_e = _(X), t[94] = X, t[95] = _, t[96] = _e) : _e = t[96], _e;
771
+ t[84] !== G || t[85] !== E || t[86] !== W || t[87] !== be || t[88] !== D || t[89] !== e || t[90] !== ue || t[91] !== x || t[92] !== k ? (X = /* @__PURE__ */ i(_e.div, { ref: e, "aria-disabled": x, ...ue, ...W, ...G, tabIndex: k, onKeyDown: be, onPointerMove: D, children: E }), t[84] = G, t[85] = E, t[86] = W, t[87] = be, t[88] = D, t[89] = e, t[90] = ue, t[91] = x, t[92] = k, t[93] = X) : X = t[93];
772
+ let ze;
773
+ return t[94] !== X || t[95] !== z ? (ze = z(X), t[94] = X, t[95] = z, t[96] = ze) : ze = t[96], ze;
799
774
  }
800
775
  const Xe = ue;
801
776
  let Me;
802
- t[97] !== G || t[98] !== E || t[99] !== W || t[100] !== y || t[101] !== D || t[102] !== e || t[103] !== Xe ? (Me = /* @__PURE__ */ r(ze.button, { ref: e, type: "button", disabled: y, ...Xe, ...W, ...G, onPointerMove: D, children: E }), t[97] = G, t[98] = E, t[99] = W, t[100] = y, t[101] = D, t[102] = e, t[103] = Xe, t[104] = Me) : Me = t[104];
777
+ t[97] !== G || t[98] !== E || t[99] !== W || t[100] !== y || t[101] !== D || t[102] !== e || t[103] !== Xe ? (Me = /* @__PURE__ */ i(_e.button, { ref: e, type: "button", disabled: y, ...Xe, ...W, ...G, onPointerMove: D, children: E }), t[97] = G, t[98] = E, t[99] = W, t[100] = y, t[101] = D, t[102] = e, t[103] = Xe, t[104] = Me) : Me = t[104];
803
778
  let Ee;
804
- return t[105] !== Me || t[106] !== _ ? (Ee = _(Me), t[105] = Me, t[106] = _, t[107] = Ee) : Ee = t[107], Ee;
779
+ return t[105] !== Me || t[106] !== z ? (Ee = z(Me), t[105] = Me, t[106] = z, t[107] = Ee) : Ee = t[107], Ee;
805
780
  });
806
- function Xt(n) {
781
+ function Gt(n) {
807
782
  return !n;
808
783
  }
809
- function qt(n) {
784
+ function Xt(n) {
810
785
  return !n;
811
786
  }
812
787
  export {
813
788
  lt as H,
814
789
  Fe as L,
815
790
  pt as R,
816
- Bt as S,
817
- wt as a,
818
- Rt as b,
819
- on as c
791
+ Ct as S,
792
+ Dt as a,
793
+ Pt as b,
794
+ nn as c
820
795
  };
821
- //# sourceMappingURL=list-row-BtoVJpFs.js.map
796
+ //# sourceMappingURL=list-row-9oxy-F0v.js.map