@televet/kibble-ui 5.0.2-beta.menu.5 → 5.0.2-beta.menu.7

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 (66) hide show
  1. package/dist/chunks/{avatarGroup.component-CTzKVekY.js → avatarGroup.component-DyozTOj5.js} +2 -2
  2. package/dist/chunks/{avatarGroup.component-CTzKVekY.js.map → avatarGroup.component-DyozTOj5.js.map} +1 -1
  3. package/dist/chunks/{avatarGroup.component-DkKPpSjz.js → avatarGroup.component-FTLP0Jal.js} +2 -2
  4. package/dist/chunks/{avatarGroup.component-DkKPpSjz.js.map → avatarGroup.component-FTLP0Jal.js.map} +1 -1
  5. package/dist/chunks/{buttonGroup.component-D5exJNjD.js → buttonGroup.component-B_9-EN21.js} +2 -2
  6. package/dist/chunks/{buttonGroup.component-D5exJNjD.js.map → buttonGroup.component-B_9-EN21.js.map} +1 -1
  7. package/dist/chunks/{buttonGroup.component-C7qKrojm.js → buttonGroup.component-DKGtj8kw.js} +2 -2
  8. package/dist/chunks/{buttonGroup.component-C7qKrojm.js.map → buttonGroup.component-DKGtj8kw.js.map} +1 -1
  9. package/dist/chunks/{calendar.component-CiZaNBUk.js → calendar.component-CJ8NMtYi.js} +2 -2
  10. package/dist/chunks/{calendar.component-CiZaNBUk.js.map → calendar.component-CJ8NMtYi.js.map} +1 -1
  11. package/dist/chunks/{calendar.component-D4YWcalj.js → calendar.component-CTOkkJ8O.js} +2 -2
  12. package/dist/chunks/{calendar.component-D4YWcalj.js.map → calendar.component-CTOkkJ8O.js.map} +1 -1
  13. package/dist/chunks/{conversationCard.component-C7XCNUme.js → conversationCard.component-BLR9RgKh.js} +2 -2
  14. package/dist/chunks/{conversationCard.component-C7XCNUme.js.map → conversationCard.component-BLR9RgKh.js.map} +1 -1
  15. package/dist/chunks/{conversationCard.component-Bey5HuaR.js → conversationCard.component-CSh8fs-M.js} +2 -2
  16. package/dist/chunks/{conversationCard.component-Bey5HuaR.js.map → conversationCard.component-CSh8fs-M.js.map} +1 -1
  17. package/dist/chunks/{datePicker.component-D1sEVtWA.js → datePicker.component-CXt7RSQT.js} +2 -2
  18. package/dist/chunks/{datePicker.component-D1sEVtWA.js.map → datePicker.component-CXt7RSQT.js.map} +1 -1
  19. package/dist/chunks/{datePicker.component-BVolIuLC.js → datePicker.component-Ii07ufVf.js} +2 -2
  20. package/dist/chunks/{datePicker.component-BVolIuLC.js.map → datePicker.component-Ii07ufVf.js.map} +1 -1
  21. package/dist/chunks/{datePicker.provider-D0UTCm7x.js → datePicker.provider-6pNpL-zo.js} +2 -2
  22. package/dist/chunks/{datePicker.provider-D0UTCm7x.js.map → datePicker.provider-6pNpL-zo.js.map} +1 -1
  23. package/dist/chunks/{datePicker.provider-CrxEuFVx.js → datePicker.provider-DaF-w-4X.js} +2 -2
  24. package/dist/chunks/{datePicker.provider-CrxEuFVx.js.map → datePicker.provider-DaF-w-4X.js.map} +1 -1
  25. package/dist/chunks/{dateTimePicker.component-D34ZBE5S.js → dateTimePicker.component-Beqo7en9.js} +2 -2
  26. package/dist/chunks/{dateTimePicker.component-D34ZBE5S.js.map → dateTimePicker.component-Beqo7en9.js.map} +1 -1
  27. package/dist/chunks/{dateTimePicker.component-C7yN5puI.js → dateTimePicker.component-m104dT6Q.js} +2 -2
  28. package/dist/chunks/{dateTimePicker.component-C7yN5puI.js.map → dateTimePicker.component-m104dT6Q.js.map} +1 -1
  29. package/dist/chunks/{menu.component-Di6p2OQm.js → menu.component-B5NMBVf4.js} +136 -140
  30. package/dist/chunks/menu.component-B5NMBVf4.js.map +1 -0
  31. package/dist/chunks/menu.component-B9eZzXdR.js +2 -0
  32. package/dist/chunks/menu.component-B9eZzXdR.js.map +1 -0
  33. package/dist/chunks/{radioGroup.types-C9sQfIhO.js → radioGroup.types-B7lXEvLu.js} +2 -2
  34. package/dist/chunks/{radioGroup.types-C9sQfIhO.js.map → radioGroup.types-B7lXEvLu.js.map} +1 -1
  35. package/dist/chunks/{radioGroup.types-31031yF0.js → radioGroup.types-BGUjKomB.js} +2 -2
  36. package/dist/chunks/{radioGroup.types-31031yF0.js.map → radioGroup.types-BGUjKomB.js.map} +1 -1
  37. package/dist/chunks/{tagBlock.component-6EiDFKRU.js → tagBlock.component-BdBKHAbN.js} +2 -2
  38. package/dist/chunks/{tagBlock.component-6EiDFKRU.js.map → tagBlock.component-BdBKHAbN.js.map} +1 -1
  39. package/dist/chunks/{tagBlock.component-Ctiv0q_l.js → tagBlock.component-DtA4K6zn.js} +2 -2
  40. package/dist/chunks/{tagBlock.component-Ctiv0q_l.js.map → tagBlock.component-DtA4K6zn.js.map} +1 -1
  41. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  42. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  43. package/dist/cjs/components/Calendar/index.cjs +1 -1
  44. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  45. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  46. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  47. package/dist/cjs/components/Menu/index.cjs +1 -1
  48. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  49. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  50. package/dist/cjs/components/index.cjs +1 -1
  51. package/dist/cjs/index.cjs +1 -1
  52. package/dist/esm/components/AvatarGroup/index.js +1 -1
  53. package/dist/esm/components/ButtonGroup/index.js +1 -1
  54. package/dist/esm/components/Calendar/index.js +1 -1
  55. package/dist/esm/components/ConversationCard/index.js +1 -1
  56. package/dist/esm/components/DatePicker/index.js +2 -2
  57. package/dist/esm/components/DateTimePicker/index.js +1 -1
  58. package/dist/esm/components/Menu/index.js +1 -1
  59. package/dist/esm/components/RadioGroup/index.js +1 -1
  60. package/dist/esm/components/TagBlock/index.js +1 -1
  61. package/dist/esm/components/index.js +10 -10
  62. package/dist/esm/index.js +10 -10
  63. package/package.json +1 -1
  64. package/dist/chunks/menu.component-CUkHLGzY.js +0 -2
  65. package/dist/chunks/menu.component-CUkHLGzY.js.map +0 -1
  66. package/dist/chunks/menu.component-Di6p2OQm.js.map +0 -1
@@ -1,46 +1,46 @@
1
1
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
- import st, { forwardRef as h, useEffect as _, useId as Y, useRef as de, useCallback as j, useState as B, useMemo as D } from "react";
2
+ import st, { forwardRef as h, useEffect as B, useId as Y, useRef as le, useCallback as j, useState as L, useMemo as D } from "react";
3
3
  import { B as T } from "./index-9BerxEcw.js";
4
4
  import { B as Z } from "./button.component-BO6oee_V.js";
5
- import { I as ge } from "./icon.component-PV_nHBId.js";
5
+ import { I as he } from "./icon.component-PV_nHBId.js";
6
6
  import { W as ee } from "./text.component-CdTyTFds.js";
7
- import { T as fe } from "./tooltip.component-C_NS-AoH.js";
7
+ import { T as ge } from "./tooltip.component-C_NS-AoH.js";
8
8
  import { F as z } from "./flex-CX-8gE9T.js";
9
9
  import { W as ct } from "./textInput.component-BC0Hi8R_.js";
10
10
  import { S as at } from "./spinner.component-B3dkvoO9.js";
11
11
  import { u as it } from "./usePortalContentRef-DO_jc4W9.js";
12
- import { u as te, s as Me, c as Pe, d as ve, P as ut } from "./index-C9UYIjEB.js";
12
+ import { u as te, s as fe, c as Me, d as Pe, P as ut } from "./index-C9UYIjEB.js";
13
13
  import { c as lt } from "./create-slot-recipe-context-D_FXDJGp.js";
14
14
  import { d as dt } from "./icons-CoSqruIn.js";
15
- import { a as O, d as g, b as $, e as pt, u as mt, f as xt, g as ht, n as gt } from "./use-locale-context-Bw4Gg9Z0.js";
15
+ import { a as _, d as g, b as O, e as pt, u as mt, f as xt, g as ht, n as gt } from "./use-locale-context-Bw4Gg9Z0.js";
16
16
  import { m as ft, c as Mt } from "./index-CbVKVxMW.js";
17
17
  import { a6 as p } from "./index-fHSGm2nC.js";
18
18
  import { W as Pt } from "./checkbox.component-DE35wBj-.js";
19
- const [je, m] = O({
19
+ const [ve, m] = _({
20
20
  name: "MenuContext",
21
21
  hookName: "useMenuContext",
22
22
  providerName: "<MenuProvider />",
23
23
  strict: !1
24
- }), Ce = h((o, n) => {
24
+ }), je = h((o, n) => {
25
25
  const t = m(), s = p(t.getArrowProps(), o);
26
26
  return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
27
27
  });
28
- Ce.displayName = "MenuArrow";
29
- const Ie = h((o, n) => {
28
+ je.displayName = "MenuArrow";
29
+ const Ce = h((o, n) => {
30
30
  const t = m(), s = p(t.getArrowTipProps(), o);
31
31
  return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
32
32
  });
33
- Ie.displayName = "MenuArrowTip";
34
- const [ne, Zt] = O({
33
+ Ce.displayName = "MenuArrowTip";
34
+ const [ne, Zt] = _({
35
35
  name: "MenuItemContext",
36
36
  hookName: "useMenuItemContext",
37
37
  providerName: "<MenuItemProvider />"
38
- }), [oe, be] = O({
38
+ }), [oe, Ie] = _({
39
39
  name: "MenuItemPropsContext",
40
40
  hookName: "useMenuItemPropsContext",
41
41
  providerName: "<MenuItemPropsProvider />"
42
- }), ke = h((o, n) => {
43
- const [t, s] = $()(o, [
42
+ }), be = h((o, n) => {
43
+ const [t, s] = O()(o, [
44
44
  "checked",
45
45
  "closeOnSelect",
46
46
  "disabled",
@@ -53,69 +53,69 @@ const [ne, Zt] = O({
53
53
  }, u = m(), a = p(u.getOptionItemProps(c), s), i = u.getOptionItemState(c);
54
54
  return /* @__PURE__ */ e.jsx(oe, { value: c, children: /* @__PURE__ */ e.jsx(ne, { value: i, children: /* @__PURE__ */ e.jsx(g.div, { ...a, ref: n }) }) });
55
55
  });
56
- ke.displayName = "MenuCheckboxItem";
57
- const Se = h((o, n) => {
56
+ be.displayName = "MenuCheckboxItem";
57
+ const ke = h((o, n) => {
58
58
  const t = m(), s = te(), c = p(t.getContentProps(), s.getPresenceProps(), o);
59
59
  return s.unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...c, ref: pt(s.ref, n) });
60
60
  });
61
- Se.displayName = "MenuContent";
62
- const we = h((o, n) => {
61
+ ke.displayName = "MenuContent";
62
+ const Se = h((o, n) => {
63
63
  const t = m(), s = p(t.getContextTriggerProps(), o);
64
64
  return /* @__PURE__ */ e.jsx(g.button, { ...s, ref: n });
65
65
  });
66
- we.displayName = "MenuContextTrigger";
67
- const Ne = h((o, n) => {
66
+ Se.displayName = "MenuContextTrigger";
67
+ const we = h((o, n) => {
68
68
  const t = m(), s = p(t.getIndicatorProps(), o);
69
69
  return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
70
70
  });
71
- Ne.displayName = "MenuIndicator";
72
- const ye = h((o, n) => {
73
- const [t, s] = $()(o, [
71
+ we.displayName = "MenuIndicator";
72
+ const Ne = h((o, n) => {
73
+ const [t, s] = O()(o, [
74
74
  "closeOnSelect",
75
75
  "disabled",
76
76
  "value",
77
77
  "valueText",
78
78
  "onSelect"
79
79
  ]), c = m(), u = p(c.getItemProps(t), s), a = c.getItemState(t);
80
- return _(() => c.addItemListener({ id: a.id, onSelect: t.onSelect }), [a.id, t.onSelect]), /* @__PURE__ */ e.jsx(oe, { value: t, children: /* @__PURE__ */ e.jsx(ne, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...u, ref: n }) }) });
80
+ return B(() => c.addItemListener({ id: a.id, onSelect: t.onSelect }), [a.id, t.onSelect]), /* @__PURE__ */ e.jsx(oe, { value: t, children: /* @__PURE__ */ e.jsx(ne, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...u, ref: n }) }) });
81
81
  });
82
- ye.displayName = "MenuItem";
83
- const [Ae, Te] = O({
82
+ Ne.displayName = "MenuItem";
83
+ const [ye, Ae] = _({
84
84
  name: "MenuItemGroupContext",
85
85
  hookName: "useMenuItemGroupContext",
86
86
  providerName: "<MenuItemGroupProvider />"
87
- }), Ge = h((o, n) => {
88
- const [t, s] = $()(o, ["id"]), c = m(), a = { id: Y(), ...t }, i = p(c.getItemGroupProps(a), s);
89
- return /* @__PURE__ */ e.jsx(Ae, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
87
+ }), Te = h((o, n) => {
88
+ const [t, s] = O()(o, ["id"]), c = m(), a = { id: Y(), ...t }, i = p(c.getItemGroupProps(a), s);
89
+ return /* @__PURE__ */ e.jsx(ye, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
90
+ });
91
+ Te.displayName = "MenuItemGroup";
92
+ const Ge = h((o, n) => {
93
+ const t = m(), s = Ae(), c = p(t.getItemGroupLabelProps({ htmlFor: s.id }), o);
94
+ return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
90
95
  });
91
- Ge.displayName = "MenuItemGroup";
96
+ Ge.displayName = "MenuItemGroupLabel";
92
97
  const _e = h((o, n) => {
93
- const t = m(), s = Te(), c = p(t.getItemGroupLabelProps({ htmlFor: s.id }), o);
98
+ const t = m(), s = Ie(), c = p(t.getItemIndicatorProps(s), o);
94
99
  return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
95
100
  });
96
- _e.displayName = "MenuItemGroupLabel";
101
+ _e.displayName = "MenuItemIndicator";
97
102
  const Oe = h((o, n) => {
98
- const t = m(), s = be(), c = p(t.getItemIndicatorProps(s), o);
103
+ const t = m(), s = Ie(), c = p(t.getItemTextProps(s), o);
99
104
  return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
100
105
  });
101
- Oe.displayName = "MenuItemIndicator";
106
+ Oe.displayName = "MenuItemText";
102
107
  const $e = h((o, n) => {
103
- const t = m(), s = be(), c = p(t.getItemTextProps(s), o);
104
- return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
105
- });
106
- $e.displayName = "MenuItemText";
107
- const Re = h((o, n) => {
108
108
  const t = m(), s = p(t.getPositionerProps(), o);
109
109
  return te().unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
110
110
  });
111
- Re.displayName = "MenuPositioner";
112
- const Le = h((o, n) => {
113
- const [t, s] = $()(o, [
111
+ $e.displayName = "MenuPositioner";
112
+ const Re = h((o, n) => {
113
+ const [t, s] = O()(o, [
114
114
  "closeOnSelect",
115
115
  "disabled",
116
116
  "value",
117
117
  "valueText"
118
- ]), c = m(), u = Te(), a = {
118
+ ]), c = m(), u = Ae(), a = {
119
119
  ...t,
120
120
  checked: u.value === t.value,
121
121
  type: "radio",
@@ -123,21 +123,21 @@ const Le = h((o, n) => {
123
123
  }, i = p(c.getOptionItemProps(a), s), f = c.getOptionItemState(a);
124
124
  return /* @__PURE__ */ e.jsx(oe, { value: a, children: /* @__PURE__ */ e.jsx(ne, { value: f, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) }) });
125
125
  });
126
- Le.displayName = "MenuRadioItem";
127
- const Be = h((o, n) => {
128
- const [t, s] = $()(o, [
126
+ Re.displayName = "MenuRadioItem";
127
+ const Le = h((o, n) => {
128
+ const [t, s] = O()(o, [
129
129
  "id",
130
130
  "onValueChange",
131
131
  "value"
132
132
  ]), c = m(), a = { id: Y(), ...t }, i = p(c.getItemGroupProps({ id: a.id }), s);
133
- return /* @__PURE__ */ e.jsx(Ae, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
133
+ return /* @__PURE__ */ e.jsx(ye, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
134
134
  });
135
- Be.displayName = "MenuRadioItemGroup";
136
- const ze = (o) => {
137
- const n = de(o), t = de(!1);
138
- _(() => {
135
+ Le.displayName = "MenuRadioItemGroup";
136
+ const Be = (o) => {
137
+ const n = le(o), t = le(!1);
138
+ B(() => {
139
139
  n.current = o;
140
- }), _(() => {
140
+ }), B(() => {
141
141
  t.current !== !0 && (t.current = !0, n.current());
142
142
  }, []);
143
143
  }, vt = (o) => {
@@ -148,18 +148,18 @@ const ze = (o) => {
148
148
  ...o
149
149
  }, u = ht(ft, c);
150
150
  return { api: Mt(u, gt), service: u };
151
- }, [Fe, We] = O({
151
+ }, [ze, Fe] = _({
152
152
  name: "MenuMachineContext",
153
153
  hookName: "useMenuMachineContext",
154
154
  providerName: "<MenuMachineProvider />",
155
155
  strict: !1
156
- }), [Ee, jt] = O({
156
+ }), [We, jt] = _({
157
157
  name: "MenuMachineContext",
158
158
  hookName: "useMenuMachineContext",
159
159
  providerName: "<MenuMachineProvider />",
160
160
  strict: !1
161
161
  }), Ct = (o) => {
162
- const [n, t] = Me(o), [s, c] = $()(t, [
162
+ const [n, t] = fe(o), [s, c] = O()(t, [
163
163
  "anchorPoint",
164
164
  "aria-label",
165
165
  "closeOnSelect",
@@ -181,25 +181,25 @@ const ze = (o) => {
181
181
  "open",
182
182
  "positioning",
183
183
  "typeahead"
184
- ]), u = m(), a = We(), { api: i, service: f } = vt(s), N = Pe(p({ present: i.open }, n));
185
- ze(() => {
184
+ ]), u = m(), a = Fe(), { api: i, service: f } = vt(s), N = Me(p({ present: i.open }, n));
185
+ Be(() => {
186
186
  a && u && (u.setChild(f), i.setParent(a));
187
187
  });
188
188
  const y = j(() => u?.getTriggerItemProps(i), [i, u]);
189
- return /* @__PURE__ */ e.jsx(Ee, { value: y, children: /* @__PURE__ */ e.jsx(Fe, { value: f, children: /* @__PURE__ */ e.jsx(je, { value: i, children: /* @__PURE__ */ e.jsx(ve, { value: N, ...c }) }) }) });
189
+ return /* @__PURE__ */ e.jsx(We, { value: y, children: /* @__PURE__ */ e.jsx(ze, { value: f, children: /* @__PURE__ */ e.jsx(ve, { value: i, children: /* @__PURE__ */ e.jsx(Pe, { value: N, ...c }) }) }) });
190
190
  }, It = (o) => {
191
- const n = m(), t = We(), [s, { value: c, children: u }] = Me(o), { api: a, service: i } = c, f = Pe(p({ present: a.open }, s));
192
- ze(() => {
191
+ const n = m(), t = Fe(), [s, { value: c, children: u }] = fe(o), { api: a, service: i } = c, f = Me(p({ present: a.open }, s));
192
+ Be(() => {
193
193
  t && n && (n.setChild(i), a.setParent(t));
194
194
  });
195
195
  const N = j(() => n?.getTriggerItemProps(a), [a, n]);
196
- return /* @__PURE__ */ e.jsx(Ee, { value: N, children: /* @__PURE__ */ e.jsx(Fe, { value: i, children: /* @__PURE__ */ e.jsx(je, { value: a, children: /* @__PURE__ */ e.jsx(ve, { value: f, children: u }) }) }) });
197
- }, De = h((o, n) => {
196
+ return /* @__PURE__ */ e.jsx(We, { value: N, children: /* @__PURE__ */ e.jsx(ze, { value: i, children: /* @__PURE__ */ e.jsx(ve, { value: a, children: /* @__PURE__ */ e.jsx(Pe, { value: f, children: u }) }) }) });
197
+ }, Ee = h((o, n) => {
198
198
  const t = m(), s = p(t.getSeparatorProps(), o);
199
199
  return /* @__PURE__ */ e.jsx(g.hr, { ...s, ref: n });
200
200
  });
201
- De.displayName = "MenuSeparator";
202
- const Ve = h((o, n) => {
201
+ Ee.displayName = "MenuSeparator";
202
+ const De = h((o, n) => {
203
203
  const t = m(), s = te(), c = p(
204
204
  {
205
205
  ...t.getTriggerProps(),
@@ -209,67 +209,67 @@ const Ve = h((o, n) => {
209
209
  );
210
210
  return /* @__PURE__ */ e.jsx(g.button, { ...c, ref: n });
211
211
  });
212
- Ve.displayName = "MenuTrigger";
213
- const He = h((o, n) => {
212
+ De.displayName = "MenuTrigger";
213
+ const Ve = h((o, n) => {
214
214
  const t = jt(), s = p(t?.() ?? {}, o);
215
215
  return /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
216
216
  });
217
- He.displayName = "MenuTriggerItem";
217
+ Ve.displayName = "MenuTriggerItem";
218
218
  const {
219
- withRootProvider: Ke,
219
+ withRootProvider: He,
220
220
  withContext: x
221
221
  } = lt({ key: "menu" });
222
- Ke(
222
+ He(
223
223
  It
224
224
  );
225
- const bt = Ke(Ct, {
225
+ const bt = He(Ct, {
226
226
  defaultProps: { lazyMount: !0, unmountOnExit: !0 }
227
227
  }), kt = x(
228
- Ve,
228
+ De,
229
229
  "trigger",
230
230
  { forwardAsChild: !0 }
231
231
  );
232
- x(we, "contextTrigger", { forwardAsChild: !0 });
232
+ x(Se, "contextTrigger", { forwardAsChild: !0 });
233
233
  const St = x(
234
- Re,
234
+ $e,
235
235
  "positioner",
236
236
  { forwardAsChild: !0 }
237
237
  );
238
238
  x(
239
- De,
239
+ Ee,
240
240
  "separator",
241
241
  { forwardAsChild: !0 }
242
242
  );
243
243
  const wt = x(
244
- Se,
244
+ ke,
245
245
  "content",
246
246
  { forwardAsChild: !0 }
247
247
  ), Nt = x(
248
- Ie,
248
+ Ce,
249
249
  "arrowTip",
250
250
  { forwardAsChild: !0 }
251
251
  );
252
252
  x(
253
- Ce,
253
+ je,
254
254
  "arrow",
255
255
  { forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ e.jsx(Nt, {}) } }
256
256
  );
257
257
  x(
258
- Ne,
258
+ we,
259
259
  "indicator",
260
260
  { forwardAsChild: !0 }
261
261
  );
262
262
  const yt = x(
263
- Ge,
263
+ Te,
264
264
  "itemGroup",
265
265
  { forwardAsChild: !0 }
266
- ), At = x(_e, "itemGroupLabel", { forwardAsChild: !0 }), pe = x(
267
- ye,
266
+ ), At = x(Ge, "itemGroupLabel", { forwardAsChild: !0 }), de = x(
267
+ Ne,
268
268
  "item",
269
269
  { forwardAsChild: !0 }
270
- ), Tt = x(He, "item", { forwardAsChild: !0 });
270
+ ), Tt = x(Ve, "item", { forwardAsChild: !0 });
271
271
  x(
272
- $e,
272
+ Oe,
273
273
  "itemText",
274
274
  { forwardAsChild: !0 }
275
275
  );
@@ -277,18 +277,18 @@ x(
277
277
  "kbd",
278
278
  "itemCommand"
279
279
  );
280
- x(Oe, "itemIndicator", {
280
+ x(_e, "itemIndicator", {
281
281
  forwardAsChild: !0,
282
282
  defaultProps: { children: /* @__PURE__ */ e.jsx(dt, { boxSize: "4" }) }
283
283
  });
284
- x(ke, "item", { forwardAsChild: !0 });
285
- x(Be, "itemGroup", { forwardAsChild: !0 });
284
+ x(be, "item", { forwardAsChild: !0 });
285
+ x(Le, "itemGroup", { forwardAsChild: !0 });
286
286
  x(
287
- Le,
287
+ Re,
288
288
  "item",
289
289
  { forwardAsChild: !0 }
290
290
  );
291
- const qe = ({
291
+ const Ke = ({
292
292
  hideCaret: o = !1,
293
293
  size: n = "md",
294
294
  text: t,
@@ -323,18 +323,18 @@ const qe = ({
323
323
  children: t
324
324
  }
325
325
  ),
326
- !o && /* @__PURE__ */ e.jsx(z, { className: "Menu__ButtonCaret", "data-testid": `${a}-caret`, children: /* @__PURE__ */ e.jsx(ge, { name: "chevronDown", size: n === "lg" ? "sm" : "xs" }) })
326
+ !o && /* @__PURE__ */ e.jsx(z, { className: "Menu__ButtonCaret", "data-testid": `${a}-caret`, children: /* @__PURE__ */ e.jsx(he, { name: "chevronDown", size: n === "lg" ? "sm" : "xs" }) })
327
327
  ]
328
328
  }
329
329
  ), Gt = ({ tooltipProps: o, isMenuOpen: n, ...t }) => {
330
- const [s, c] = B(!1), u = j(() => {
330
+ const [s, c] = L(!1), u = j(() => {
331
331
  n || c(!0);
332
332
  }, [n]), a = j(() => {
333
333
  n || c(!1);
334
334
  }, [n]);
335
- return _(() => {
335
+ return B(() => {
336
336
  n && c(!1);
337
- }, [n]), /* @__PURE__ */ e.jsx(fe, { label: t.text || "", open: s && !n, ...o, children: /* @__PURE__ */ e.jsx(
337
+ }, [n]), /* @__PURE__ */ e.jsx(ge, { label: t.text || "", open: s && !n, ...o, children: /* @__PURE__ */ e.jsx(
338
338
  T,
339
339
  {
340
340
  onClick: (i) => {
@@ -342,7 +342,7 @@ const qe = ({
342
342
  },
343
343
  onMouseEnter: u,
344
344
  onMouseLeave: a,
345
- children: /* @__PURE__ */ e.jsx(qe, { ...t })
345
+ children: /* @__PURE__ */ e.jsx(Ke, { ...t })
346
346
  }
347
347
  ) });
348
348
  }, _t = ({
@@ -355,7 +355,7 @@ const qe = ({
355
355
  ["data-testid"]: a = "kibble-menu-item",
356
356
  ...i
357
357
  }) => {
358
- const [f, N] = B(!1), y = j(() => {
358
+ const [f, N] = L(!1), y = j(() => {
359
359
  t && t(i.value);
360
360
  }, [t, i.value]);
361
361
  if (c === "submenu") {
@@ -368,7 +368,7 @@ const qe = ({
368
368
  lazyMount: I = !0,
369
369
  unmountOnExit: V = !0
370
370
  } = i;
371
- return console.log("positionerProps inside menu item", M), /* @__PURE__ */ e.jsx(
371
+ return /* @__PURE__ */ e.jsx(
372
372
  Ot,
373
373
  {
374
374
  lazyMount: I,
@@ -394,7 +394,7 @@ const qe = ({
394
394
  variant: u
395
395
  }
396
396
  ),
397
- /* @__PURE__ */ e.jsx(ge, { name: "chevronRight", size: "sm" })
397
+ /* @__PURE__ */ e.jsx(he, { name: "chevronRight", size: "sm" })
398
398
  ]
399
399
  }
400
400
  ),
@@ -408,7 +408,7 @@ const qe = ({
408
408
  if (c === "checkbox") {
409
409
  const { checked: S, value: C, disabled: M, tooltipLabel: A, ...k } = i;
410
410
  return /* @__PURE__ */ e.jsxs(
411
- pe,
411
+ de,
412
412
  {
413
413
  className: "Menu__Item--Checkbox",
414
414
  "data-testid": `${a}-checkbox`,
@@ -437,7 +437,7 @@ const qe = ({
437
437
  if (c === "default") {
438
438
  const { selected: S = !1, disabled: C, value: M, tooltipLabel: A, ...k } = i;
439
439
  return /* @__PURE__ */ e.jsx(
440
- pe,
440
+ de,
441
441
  {
442
442
  className: "Menu__Item--Default",
443
443
  "data-testid": `${a}-default`,
@@ -471,19 +471,19 @@ const qe = ({
471
471
  n,
472
472
  typeof o == "string" ? /* @__PURE__ */ e.jsx(ee, { size: "sm", truncated: t, variant: s, children: o }) : o
473
473
  ] });
474
- return c ? /* @__PURE__ */ e.jsx(fe, { label: c, children: u }) : u;
475
- }, me = ({
474
+ return c ? /* @__PURE__ */ e.jsx(ge, { label: c, children: u }) : u;
475
+ }, pe = ({
476
476
  groupName: o,
477
477
  hasSelectedItems: n = !1,
478
478
  onToggle: t,
479
479
  ["data-testid"]: s = "kibble-menu-toggle-buttons"
480
480
  }) => {
481
481
  const c = !!o;
482
- return /* @__PURE__ */ e.jsx(T, { className: "Menu__ToggleButtons", "data-testid": s, ...c && { textAlign: "right", w: "50%" }, children: c ? /* @__PURE__ */ e.jsx(e.Fragment, { children: n ? /* @__PURE__ */ e.jsx(he, { hasSelectedItems: n, groupName: o, onToggle: t }) : /* @__PURE__ */ e.jsx(xe, { groupName: o, onToggle: t }) }) : /* @__PURE__ */ e.jsxs(z, { justifyContent: "space-between", children: [
483
- /* @__PURE__ */ e.jsx(xe, { groupName: o, onToggle: t }),
484
- /* @__PURE__ */ e.jsx(he, { hasSelectedItems: n, groupName: o, onToggle: t })
482
+ return /* @__PURE__ */ e.jsx(T, { className: "Menu__ToggleButtons", "data-testid": s, ...c && { textAlign: "right", w: "50%" }, children: c ? /* @__PURE__ */ e.jsx(e.Fragment, { children: n ? /* @__PURE__ */ e.jsx(xe, { hasSelectedItems: n, groupName: o, onToggle: t }) : /* @__PURE__ */ e.jsx(me, { groupName: o, onToggle: t }) }) : /* @__PURE__ */ e.jsxs(z, { justifyContent: "space-between", children: [
483
+ /* @__PURE__ */ e.jsx(me, { groupName: o, onToggle: t }),
484
+ /* @__PURE__ */ e.jsx(xe, { hasSelectedItems: n, groupName: o, onToggle: t })
485
485
  ] }) });
486
- }, xe = ({ groupName: o, onToggle: n }) => /* @__PURE__ */ e.jsx(Z, { variant: "ghost", size: "xs", onClick: () => n({ groupName: o, clear: !1 }), children: "Select All" }), he = ({ hasSelectedItems: o, groupName: n, onToggle: t }) => /* @__PURE__ */ e.jsx(
486
+ }, me = ({ groupName: o, onToggle: n }) => /* @__PURE__ */ e.jsx(Z, { variant: "ghost", size: "xs", onClick: () => n({ groupName: o, clear: !1 }), children: "Select All" }), xe = ({ hasSelectedItems: o, groupName: n, onToggle: t }) => /* @__PURE__ */ e.jsx(
487
487
  Z,
488
488
  {
489
489
  variant: "ghostNeutral",
@@ -517,14 +517,10 @@ const qe = ({
517
517
  onSelect: H,
518
518
  onSelectAll: re,
519
519
  searchable: K,
520
- searchPlaceholder: Je = "Search...",
521
- shouldTruncateText: Qe,
520
+ searchPlaceholder: qe = "Search...",
521
+ shouldTruncateText: Je,
522
522
  ...se
523
- } = n || {}, [Ue, Xe] = B(!1), [q, J] = B(""), [F, Q] = B(I);
524
- _(() => {
525
- console.log("positionerProps at root menu level", t);
526
- }, [t]);
527
- const ce = D(() => {
523
+ } = n || {}, [Qe, Ue] = L(!1), [q, J] = L(""), [F, Q] = L(I), ce = D(() => {
528
524
  const r = {};
529
525
  return F?.forEach((l) => {
530
526
  const d = l.groupLabel || "default", P = l.type === "checkbox" ? "checkbox" : "default";
@@ -536,10 +532,10 @@ const qe = ({
536
532
  const P = M.indexOf(l), v = M.indexOf(d);
537
533
  return P !== -1 && v !== -1 ? P - v : P !== -1 ? -1 : v !== -1 ? 1 : 0;
538
534
  });
539
- }, [ce, M]), R = D(() => I?.filter((r) => r.type === "checkbox") || [], [I]), U = j(
540
- (r) => R.some((l) => l.value === r && l.checked),
541
- [R]
542
- ), b = D(() => R.filter((r) => r.checked), [R]), ie = j(
535
+ }, [ce, M]), $ = D(() => I?.filter((r) => r.type === "checkbox") || [], [I]), U = j(
536
+ (r) => $.some((l) => l.value === r && l.checked),
537
+ [$]
538
+ ), b = D(() => $.filter((r) => r.checked), [$]), ie = j(
543
539
  ({ groupName: r, clear: l }) => {
544
540
  let d;
545
541
  const P = F.filter((v) => v.type === "checkbox" && !v.disabled);
@@ -554,7 +550,7 @@ const qe = ({
554
550
  re?.({ allSelectedItems: d });
555
551
  },
556
552
  [re, F, b]
557
- ), Ye = j(
553
+ ), Xe = j(
558
554
  (r) => {
559
555
  if (r.type === "checkbox") {
560
556
  const l = U(r.value) ? b.filter((d) => d.value !== r.value) : [...b, r];
@@ -572,23 +568,23 @@ const qe = ({
572
568
  H?.({ item: r, allSelectedItems: [r] });
573
569
  },
574
570
  [H, U, b]
575
- ), ue = j((r, l) => r === "" || !r ? l : l.filter((d) => !!(typeof d.label == "string" ? d.label : d.valueText)?.toLowerCase().includes(r.toLowerCase())), []), Ze = j(
571
+ ), ue = j((r, l) => r === "" || !r ? l : l.filter((d) => !!(typeof d.label == "string" ? d.label : d.valueText)?.toLowerCase().includes(r.toLowerCase())), []), Ye = j(
576
572
  (r) => {
577
573
  const l = r.target.value;
578
574
  J(l), w && w(r);
579
575
  },
580
576
  [w]
581
- ), et = j(() => {
577
+ ), Ze = j(() => {
582
578
  J(""), w && w({
583
579
  target: { value: "" }
584
580
  });
585
- }, [w]), tt = j(
581
+ }, [w]), et = j(
586
582
  (r) => {
587
- Xe(r), r || (J(""), Q(I)), a && a({ open: r, allSelectedItems: b });
583
+ Ue(r), r || (J(""), Q(I)), a && a({ open: r, allSelectedItems: b });
588
584
  },
589
585
  [I, a, b]
590
586
  );
591
- return _(() => {
587
+ return B(() => {
592
588
  Q(w ? I : ue(q, I));
593
589
  }, [q, w, ue, I]), /* @__PURE__ */ e.jsxs(
594
590
  bt,
@@ -596,11 +592,11 @@ const qe = ({
596
592
  lazyMount: u,
597
593
  unmountOnExit: u,
598
594
  onOpenChange: (r) => {
599
- tt(r.open);
595
+ et(r.open);
600
596
  },
601
597
  ...f,
602
598
  children: [
603
- c || /* @__PURE__ */ e.jsx(kt, { asChild: !0, className: "Menu__Trigger", "data-testid": `${i}-trigger`, children: o?.showTooltip ? /* @__PURE__ */ e.jsx(Gt, { isMenuOpen: Ue, ...o }) : /* @__PURE__ */ e.jsx(qe, { ...o }) }),
599
+ c || /* @__PURE__ */ e.jsx(kt, { asChild: !0, className: "Menu__Trigger", "data-testid": `${i}-trigger`, children: o?.showTooltip ? /* @__PURE__ */ e.jsx(Gt, { isMenuOpen: Qe, ...o }) : /* @__PURE__ */ e.jsx(Ke, { ...o }) }),
604
600
  /* @__PURE__ */ e.jsx(ut, { disabled: !s, container: N || void 0, children: /* @__PURE__ */ e.jsx(St, { className: "Menu", "data-testid": i, ...t, children: /* @__PURE__ */ e.jsxs(
605
601
  wt,
606
602
  {
@@ -630,12 +626,12 @@ const qe = ({
630
626
  {
631
627
  className: "Menu__SearchBar",
632
628
  "data-testid": `${i}-search-bar`,
633
- placeholder: Je,
634
- onChange: Ze,
629
+ placeholder: qe,
630
+ onChange: Ye,
635
631
  size: "sm",
636
632
  value: q,
637
633
  clearable: !0,
638
- onClear: et,
634
+ onClear: Ze,
639
635
  onKeyDown: (r) => {
640
636
  r.code === "Space" && r.stopPropagation();
641
637
  }
@@ -650,8 +646,8 @@ const qe = ({
650
646
  "data-testid": `${i}-checkbox-group-header`,
651
647
  px: 3,
652
648
  mt: K ? 1 : 2,
653
- children: y && !!R.length && /* @__PURE__ */ e.jsx(
654
- me,
649
+ children: y && !!$.length && /* @__PURE__ */ e.jsx(
650
+ pe,
655
651
  {
656
652
  onToggle: ie,
657
653
  hasSelectedItems: !!b.length
@@ -661,39 +657,39 @@ const qe = ({
661
657
  ),
662
658
  A && /* @__PURE__ */ e.jsx(z, { justifyContent: "center", py: 5, children: /* @__PURE__ */ e.jsx(at, { fullScreen: !0 }) }),
663
659
  /* @__PURE__ */ e.jsx(T, { className: "Menu__List", "data-testid": `${i}-list`, children: ae.length ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ae.map(([r, l]) => {
664
- const d = r === "default", P = Object.keys(l), v = d ? st.Fragment : yt, nt = l.checkbox?.map((L) => L.value)?.some(
665
- (L) => b.some((E) => E.value === L && E.checked)
660
+ const d = r === "default", P = Object.keys(l), v = d ? st.Fragment : yt, tt = l.checkbox?.map((R) => R.value)?.some(
661
+ (R) => b.some((E) => E.value === R && E.checked)
666
662
  );
667
663
  return /* @__PURE__ */ e.jsxs(v, { children: [
668
664
  !d && /* @__PURE__ */ e.jsx(At, { children: /* @__PURE__ */ e.jsxs(z, { alignItems: "center", justifyContent: "space-between", children: [
669
665
  r,
670
666
  S && P.includes("checkbox") && /* @__PURE__ */ e.jsx(
671
- me,
667
+ pe,
672
668
  {
673
669
  groupName: r,
674
670
  onToggle: ie,
675
- hasSelectedItems: nt
671
+ hasSelectedItems: tt
676
672
  }
677
673
  )
678
674
  ] }) }),
679
675
  Object.entries(l).map(
680
- ([L, E]) => E.map((G, ot) => {
681
- const { groupLabel: rt, ...le } = G;
682
- return console.log("item props", le), console.log("positionerProps inside menu item", t), /* @__PURE__ */ e.jsx(
676
+ ([R, E]) => E.map((G, nt) => {
677
+ const { groupLabel: ot, ...rt } = G;
678
+ return /* @__PURE__ */ e.jsx(
683
679
  _t,
684
680
  {
685
- ...le,
686
- shouldTruncateText: Qe,
681
+ ...rt,
682
+ shouldTruncateText: Je,
687
683
  ...G.type === "checkbox" && {
688
684
  checked: U(G.value)
689
685
  },
690
686
  "data-testid": `${i}-item-${G.label}`,
691
- onSelect: () => Ye(G),
687
+ onSelect: () => Xe(G),
692
688
  ...G.type === "submenu" && {
693
689
  positionerProps: t
694
690
  }
695
691
  },
696
- `menu-item-${rt}-${L}-${ot}`
692
+ `menu-item-${ot}-${R}-${nt}`
697
693
  );
698
694
  })
699
695
  )
@@ -709,4 +705,4 @@ const qe = ({
709
705
  export {
710
706
  Ot as M
711
707
  };
712
- //# sourceMappingURL=menu.component-Di6p2OQm.js.map
708
+ //# sourceMappingURL=menu.component-B5NMBVf4.js.map