@televet/kibble-ui 5.0.3 → 5.0.4-beta.2

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 (92) hide show
  1. package/dist/chunks/{avatarGroup.component-x7ySfpyA.js → avatarGroup.component-BdhUT7n5.js} +2 -2
  2. package/dist/chunks/{avatarGroup.component-x7ySfpyA.js.map → avatarGroup.component-BdhUT7n5.js.map} +1 -1
  3. package/dist/chunks/{avatarGroup.component-CLteMZ56.js → avatarGroup.component-BwrjkSJn.js} +2 -2
  4. package/dist/chunks/{avatarGroup.component-CLteMZ56.js.map → avatarGroup.component-BwrjkSJn.js.map} +1 -1
  5. package/dist/chunks/{buttonGroup.component-Ce82BQGv.js → buttonGroup.component--dqWO06l.js} +2 -2
  6. package/dist/chunks/{buttonGroup.component-Ce82BQGv.js.map → buttonGroup.component--dqWO06l.js.map} +1 -1
  7. package/dist/chunks/{buttonGroup.component-CSEIrylL.js → buttonGroup.component-D1h4aH2G.js} +2 -2
  8. package/dist/chunks/{buttonGroup.component-CSEIrylL.js.map → buttonGroup.component-D1h4aH2G.js.map} +1 -1
  9. package/dist/chunks/{calendar.component-2i6L0Fpk.js → calendar.component-BI8rM2b7.js} +2 -2
  10. package/dist/chunks/{calendar.component-2i6L0Fpk.js.map → calendar.component-BI8rM2b7.js.map} +1 -1
  11. package/dist/chunks/{calendar.component-BbM30a06.js → calendar.component-CsOKKu1B.js} +2 -2
  12. package/dist/chunks/{calendar.component-BbM30a06.js.map → calendar.component-CsOKKu1B.js.map} +1 -1
  13. package/dist/chunks/{conversationCard.component-BpaFgj0T.js → conversationCard.component-8-HSmE3v.js} +2 -2
  14. package/dist/chunks/{conversationCard.component-BpaFgj0T.js.map → conversationCard.component-8-HSmE3v.js.map} +1 -1
  15. package/dist/chunks/{conversationCard.component-CAein2kE.js → conversationCard.component-FMq9PY8T.js} +2 -2
  16. package/dist/chunks/{conversationCard.component-CAein2kE.js.map → conversationCard.component-FMq9PY8T.js.map} +1 -1
  17. package/dist/chunks/{datePicker.component--eXoTVQV.js → datePicker.component-CcSzO2cP.js} +3 -3
  18. package/dist/chunks/{datePicker.component--eXoTVQV.js.map → datePicker.component-CcSzO2cP.js.map} +1 -1
  19. package/dist/chunks/{datePicker.component-B61MFSsZ.js → datePicker.component-DwOyIbZk.js} +2 -2
  20. package/dist/chunks/{datePicker.component-B61MFSsZ.js.map → datePicker.component-DwOyIbZk.js.map} +1 -1
  21. package/dist/chunks/{datePicker.provider-BGWL6djq.js → datePicker.provider-B3423SaO.js} +370 -370
  22. package/dist/chunks/{datePicker.provider-BGWL6djq.js.map → datePicker.provider-B3423SaO.js.map} +1 -1
  23. package/dist/chunks/datePicker.provider-Bi_9Q7nm.js +15 -0
  24. package/dist/chunks/{datePicker.provider-DvHAC4KM.js.map → datePicker.provider-Bi_9Q7nm.js.map} +1 -1
  25. package/dist/chunks/{dateTimePicker.component-decmNMjJ.js → dateTimePicker.component-COryQU_H.js} +4 -4
  26. package/dist/chunks/{dateTimePicker.component-decmNMjJ.js.map → dateTimePicker.component-COryQU_H.js.map} +1 -1
  27. package/dist/chunks/{dateTimePicker.component-B8tYT6Qh.js → dateTimePicker.component-CTx_6MBi.js} +2 -2
  28. package/dist/chunks/{dateTimePicker.component-B8tYT6Qh.js.map → dateTimePicker.component-CTx_6MBi.js.map} +1 -1
  29. package/dist/chunks/{menu.component-TeC2F3rT.js → menu.component-BuTY_3mt.js} +198 -194
  30. package/dist/chunks/menu.component-BuTY_3mt.js.map +1 -0
  31. package/dist/chunks/menu.component-D79Ce44I.js +2 -0
  32. package/dist/chunks/menu.component-D79Ce44I.js.map +1 -0
  33. package/dist/chunks/{popover.component-DbyavgPM.js → popover.component-BsiKfJR7.js} +2 -2
  34. package/dist/chunks/{popover.component-DbyavgPM.js.map → popover.component-BsiKfJR7.js.map} +1 -1
  35. package/dist/chunks/{popover.component-9PBdCDiB.js → popover.component-C0nG3J1J.js} +2 -2
  36. package/dist/chunks/{popover.component-9PBdCDiB.js.map → popover.component-C0nG3J1J.js.map} +1 -1
  37. package/dist/chunks/{popover.recipe-B9bkpDfc.js → popover.recipe-BAl0q_IZ.js} +8 -8
  38. package/dist/chunks/popover.recipe-BAl0q_IZ.js.map +1 -0
  39. package/dist/chunks/popover.recipe-NDvOfG9X.js +2 -0
  40. package/dist/chunks/popover.recipe-NDvOfG9X.js.map +1 -0
  41. package/dist/chunks/{radioGroup.types-CUg3XVch.js → radioGroup.types-C-JQsOXh.js} +2 -2
  42. package/dist/chunks/{radioGroup.types-CUg3XVch.js.map → radioGroup.types-C-JQsOXh.js.map} +1 -1
  43. package/dist/chunks/{radioGroup.types-BsKe5gz6.js → radioGroup.types-sigpU7JZ.js} +2 -2
  44. package/dist/chunks/{radioGroup.types-BsKe5gz6.js.map → radioGroup.types-sigpU7JZ.js.map} +1 -1
  45. package/dist/chunks/{tagBlock.component-BwhOg7ga.js → tagBlock.component-CUti4nJM.js} +2 -2
  46. package/dist/chunks/{tagBlock.component-BwhOg7ga.js.map → tagBlock.component-CUti4nJM.js.map} +1 -1
  47. package/dist/chunks/{tagBlock.component-D43MMwFp.js → tagBlock.component-DExd13J1.js} +2 -2
  48. package/dist/chunks/{tagBlock.component-D43MMwFp.js.map → tagBlock.component-DExd13J1.js.map} +1 -1
  49. package/dist/chunks/{timePicker.component-DKIP9ht3.js → timePicker.component-B750WQHA.js} +2 -2
  50. package/dist/chunks/{timePicker.component-DKIP9ht3.js.map → timePicker.component-B750WQHA.js.map} +1 -1
  51. package/dist/chunks/{timePicker.component-C_9VZDgk.js → timePicker.component-BOvQHyHv.js} +2 -2
  52. package/dist/chunks/{timePicker.component-C_9VZDgk.js.map → timePicker.component-BOvQHyHv.js.map} +1 -1
  53. package/dist/chunks/{timeRange.component-Bh1gGOkO.js → timeRange.component-C0f7pM9p.js} +2 -2
  54. package/dist/chunks/{timeRange.component-Bh1gGOkO.js.map → timeRange.component-C0f7pM9p.js.map} +1 -1
  55. package/dist/chunks/{timeRange.component-4CWzFhIU.js → timeRange.component-CdHkxVXb.js} +2 -2
  56. package/dist/chunks/{timeRange.component-4CWzFhIU.js.map → timeRange.component-CdHkxVXb.js.map} +1 -1
  57. package/dist/cjs/components/AvatarGroup/index.cjs +1 -1
  58. package/dist/cjs/components/ButtonGroup/index.cjs +1 -1
  59. package/dist/cjs/components/Calendar/index.cjs +1 -1
  60. package/dist/cjs/components/ConversationCard/index.cjs +1 -1
  61. package/dist/cjs/components/DatePicker/index.cjs +1 -1
  62. package/dist/cjs/components/DateTimePicker/index.cjs +1 -1
  63. package/dist/cjs/components/Menu/index.cjs +1 -1
  64. package/dist/cjs/components/Popover/index.cjs +1 -1
  65. package/dist/cjs/components/RadioGroup/index.cjs +1 -1
  66. package/dist/cjs/components/TagBlock/index.cjs +1 -1
  67. package/dist/cjs/components/TimePicker/index.cjs +1 -1
  68. package/dist/cjs/components/TimeRange/index.cjs +1 -1
  69. package/dist/cjs/components/index.cjs +1 -1
  70. package/dist/cjs/index.cjs +1 -1
  71. package/dist/esm/components/AvatarGroup/index.js +1 -1
  72. package/dist/esm/components/ButtonGroup/index.js +1 -1
  73. package/dist/esm/components/Calendar/index.js +1 -1
  74. package/dist/esm/components/ConversationCard/index.js +1 -1
  75. package/dist/esm/components/DatePicker/index.js +2 -2
  76. package/dist/esm/components/DateTimePicker/index.js +1 -1
  77. package/dist/esm/components/Menu/index.js +1 -1
  78. package/dist/esm/components/Popover/index.js +1 -1
  79. package/dist/esm/components/RadioGroup/index.js +1 -1
  80. package/dist/esm/components/TagBlock/index.js +1 -1
  81. package/dist/esm/components/TimePicker/index.js +1 -1
  82. package/dist/esm/components/TimeRange/index.js +1 -1
  83. package/dist/esm/components/index.js +13 -13
  84. package/dist/esm/index.js +13 -13
  85. package/package.json +1 -1
  86. package/dist/chunks/datePicker.provider-DvHAC4KM.js +0 -15
  87. package/dist/chunks/menu.component-DFkV2_Lb.js +0 -2
  88. package/dist/chunks/menu.component-DFkV2_Lb.js.map +0 -1
  89. package/dist/chunks/menu.component-TeC2F3rT.js.map +0 -1
  90. package/dist/chunks/popover.recipe-B9bkpDfc.js.map +0 -1
  91. package/dist/chunks/popover.recipe-Czy8Aeft.js +0 -2
  92. package/dist/chunks/popover.recipe-Czy8Aeft.js.map +0 -1
@@ -1,46 +1,46 @@
1
1
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
- import st, { forwardRef as x, useEffect as B, useId as X, useRef as ue, useCallback as j, useState as L, 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
- import { B as Y } from "./button.component-BO6oee_V.js";
4
+ import { B as Z } from "./button.component-BO6oee_V.js";
5
5
  import { I as he } from "./icon.component-PV_nHBId.js";
6
- import { W as Z } from "./text.component-IjomJyJY.js";
7
- import { T as xe } from "./tooltip.component-DFsQNG1q.js";
6
+ import { W as ee } from "./text.component-IjomJyJY.js";
7
+ import { T as ge } from "./tooltip.component-DFsQNG1q.js";
8
8
  import { F as z } from "./flex-CX-8gE9T.js";
9
9
  import { W as ct } from "./textInput.component-DAOVnBI-.js";
10
10
  import { S as at } from "./spinner.component-D3s81AJH.js";
11
11
  import { u as it } from "./usePortalContentRef-DO_jc4W9.js";
12
- import { u as ee, s as ge, c as fe, d as Me, 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 G, d as g, b as _, e as pt, u as mt, f as ht, g as xt, 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-Be_DWrS9.js";
19
- const [Pe, m] = G({
19
+ const [ve, m] = _({
20
20
  name: "MenuContext",
21
21
  hookName: "useMenuContext",
22
22
  providerName: "<MenuProvider />",
23
23
  strict: !1
24
- }), ve = x((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
- ve.displayName = "MenuArrow";
29
- const je = x((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
- je.displayName = "MenuArrowTip";
34
- const [te, Zt] = G({
33
+ Ce.displayName = "MenuArrowTip";
34
+ const [ne, Zt] = _({
35
35
  name: "MenuItemContext",
36
36
  hookName: "useMenuItemContext",
37
37
  providerName: "<MenuItemProvider />"
38
- }), [ne, Ce] = G({
38
+ }), [oe, Ie] = _({
39
39
  name: "MenuItemPropsContext",
40
40
  hookName: "useMenuItemPropsContext",
41
41
  providerName: "<MenuItemPropsProvider />"
42
- }), Ie = x((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",
@@ -51,115 +51,115 @@ const [te, Zt] = G({
51
51
  ...t,
52
52
  type: "checkbox"
53
53
  }, u = m(), a = p(u.getOptionItemProps(c), s), i = u.getOptionItemState(c);
54
- return /* @__PURE__ */ e.jsx(ne, { value: c, children: /* @__PURE__ */ e.jsx(te, { value: i, children: /* @__PURE__ */ e.jsx(g.div, { ...a, ref: n }) }) });
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
- Ie.displayName = "MenuCheckboxItem";
57
- const be = x((o, n) => {
58
- const t = m(), s = ee(), c = p(t.getContentProps(), s.getPresenceProps(), o);
56
+ be.displayName = "MenuCheckboxItem";
57
+ const ke = h((o, n) => {
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
- be.displayName = "MenuContent";
62
- const ke = x((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
- ke.displayName = "MenuContextTrigger";
67
- const Se = x((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
- Se.displayName = "MenuIndicator";
72
- const we = x((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 B(() => c.addItemListener({ id: a.id, onSelect: t.onSelect }), [a.id, t.onSelect]), /* @__PURE__ */ e.jsx(ne, { value: t, children: /* @__PURE__ */ e.jsx(te, { 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
- we.displayName = "MenuItem";
83
- const [Ne, ye] = G({
82
+ Ne.displayName = "MenuItem";
83
+ const [ye, Ae] = _({
84
84
  name: "MenuItemGroupContext",
85
85
  hookName: "useMenuItemGroupContext",
86
86
  providerName: "<MenuItemGroupProvider />"
87
- }), Ae = x((o, n) => {
88
- const [t, s] = _()(o, ["id"]), c = m(), a = { id: X(), ...t }, i = p(c.getItemGroupProps(a), s);
89
- return /* @__PURE__ */ e.jsx(Ne, { 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
90
  });
91
- Ae.displayName = "MenuItemGroup";
92
- const Te = x((o, n) => {
93
- const t = m(), s = ye(), c = p(t.getItemGroupLabelProps({ htmlFor: s.id }), o);
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
94
  return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
95
95
  });
96
- Te.displayName = "MenuItemGroupLabel";
97
- const Ge = x((o, n) => {
98
- const t = m(), s = Ce(), c = p(t.getItemIndicatorProps(s), o);
96
+ Ge.displayName = "MenuItemGroupLabel";
97
+ const _e = h((o, n) => {
98
+ const t = m(), s = Ie(), c = p(t.getItemIndicatorProps(s), o);
99
99
  return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
100
100
  });
101
- Ge.displayName = "MenuItemIndicator";
102
- const _e = x((o, n) => {
103
- const t = m(), s = Ce(), c = p(t.getItemTextProps(s), o);
101
+ _e.displayName = "MenuItemIndicator";
102
+ const Oe = h((o, n) => {
103
+ const t = m(), s = Ie(), c = p(t.getItemTextProps(s), o);
104
104
  return /* @__PURE__ */ e.jsx(g.div, { ...c, ref: n });
105
105
  });
106
- _e.displayName = "MenuItemText";
107
- const Oe = x((o, n) => {
106
+ Oe.displayName = "MenuItemText";
107
+ const $e = h((o, n) => {
108
108
  const t = m(), s = p(t.getPositionerProps(), o);
109
- return ee().unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
109
+ return te().unmounted ? null : /* @__PURE__ */ e.jsx(g.div, { ...s, ref: n });
110
110
  });
111
- Oe.displayName = "MenuPositioner";
112
- const $e = x((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 = ye(), a = {
118
+ ]), c = m(), u = Ae(), a = {
119
119
  ...t,
120
120
  checked: u.value === t.value,
121
121
  type: "radio",
122
122
  onCheckedChange: () => u.onValueChange?.({ value: t.value })
123
123
  }, i = p(c.getOptionItemProps(a), s), f = c.getOptionItemState(a);
124
- return /* @__PURE__ */ e.jsx(ne, { value: a, children: /* @__PURE__ */ e.jsx(te, { value: f, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) }) });
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
- $e.displayName = "MenuRadioItem";
127
- const Re = x((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
- ]), c = m(), a = { id: X(), ...t }, i = p(c.getItemGroupProps({ id: a.id }), s);
133
- return /* @__PURE__ */ e.jsx(Ne, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
132
+ ]), c = m(), a = { id: Y(), ...t }, i = p(c.getItemGroupProps({ id: a.id }), s);
133
+ return /* @__PURE__ */ e.jsx(ye, { value: a, children: /* @__PURE__ */ e.jsx(g.div, { ...i, ref: n }) });
134
134
  });
135
- Re.displayName = "MenuRadioItemGroup";
136
- const Le = (o) => {
137
- const n = ue(o), t = ue(!1);
135
+ Le.displayName = "MenuRadioItemGroup";
136
+ const Be = (o) => {
137
+ const n = le(o), t = le(!1);
138
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) => {
144
- const n = X(), { getRootNode: t } = mt(), { dir: s } = ht(), c = {
144
+ const n = Y(), { getRootNode: t } = mt(), { dir: s } = xt(), c = {
145
145
  id: n,
146
146
  dir: s,
147
147
  getRootNode: t,
148
148
  ...o
149
- }, u = xt(ft, c);
149
+ }, u = ht(ft, c);
150
150
  return { api: Mt(u, gt), service: u };
151
- }, [Be, ze] = G({
151
+ }, [ze, Fe] = _({
152
152
  name: "MenuMachineContext",
153
153
  hookName: "useMenuMachineContext",
154
154
  providerName: "<MenuMachineProvider />",
155
155
  strict: !1
156
- }), [Fe, jt] = G({
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] = ge(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,26 +181,26 @@ const Le = (o) => {
181
181
  "open",
182
182
  "positioning",
183
183
  "typeahead"
184
- ]), u = m(), a = ze(), { api: i, service: f } = vt(s), N = fe(p({ present: i.open }, n));
185
- Le(() => {
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(Fe, { value: y, children: /* @__PURE__ */ e.jsx(Be, { value: f, children: /* @__PURE__ */ e.jsx(Pe, { value: i, children: /* @__PURE__ */ e.jsx(Me, { 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 = ze(), [s, { value: c, children: u }] = ge(o), { api: a, service: i } = c, f = fe(p({ present: a.open }, s));
192
- Le(() => {
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(Fe, { value: N, children: /* @__PURE__ */ e.jsx(Be, { value: i, children: /* @__PURE__ */ e.jsx(Pe, { value: a, children: /* @__PURE__ */ e.jsx(Me, { value: f, children: u }) }) }) });
197
- }, We = x((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
- We.displayName = "MenuSeparator";
202
- const Ee = x((o, n) => {
203
- const t = m(), s = ee(), c = p(
201
+ Ee.displayName = "MenuSeparator";
202
+ const De = h((o, n) => {
203
+ const t = m(), s = te(), c = p(
204
204
  {
205
205
  ...t.getTriggerProps(),
206
206
  "aria-controls": s.unmounted ? void 0 : t.getTriggerProps()["aria-controls"]
@@ -209,86 +209,86 @@ const Ee = x((o, n) => {
209
209
  );
210
210
  return /* @__PURE__ */ e.jsx(g.button, { ...c, ref: n });
211
211
  });
212
- Ee.displayName = "MenuTrigger";
213
- const De = x((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
- De.displayName = "MenuTriggerItem";
217
+ Ve.displayName = "MenuTriggerItem";
218
218
  const {
219
- withRootProvider: Ve,
220
- withContext: h
219
+ withRootProvider: He,
220
+ withContext: x
221
221
  } = lt({ key: "menu" });
222
- Ve(
222
+ He(
223
223
  It
224
224
  );
225
- const bt = Ve(Ct, {
225
+ const bt = He(Ct, {
226
226
  defaultProps: { lazyMount: !0, unmountOnExit: !0 }
227
- }), kt = h(
228
- Ee,
227
+ }), kt = x(
228
+ De,
229
229
  "trigger",
230
230
  { forwardAsChild: !0 }
231
231
  );
232
- h(ke, "contextTrigger", { forwardAsChild: !0 });
233
- const St = h(
234
- Oe,
232
+ x(Se, "contextTrigger", { forwardAsChild: !0 });
233
+ const St = x(
234
+ $e,
235
235
  "positioner",
236
236
  { forwardAsChild: !0 }
237
237
  );
238
- h(
239
- We,
238
+ x(
239
+ Ee,
240
240
  "separator",
241
241
  { forwardAsChild: !0 }
242
242
  );
243
- const wt = h(
244
- be,
243
+ const wt = x(
244
+ ke,
245
245
  "content",
246
246
  { forwardAsChild: !0 }
247
- ), Nt = h(
248
- je,
247
+ ), Nt = x(
248
+ Ce,
249
249
  "arrowTip",
250
250
  { forwardAsChild: !0 }
251
251
  );
252
- h(
253
- ve,
252
+ x(
253
+ je,
254
254
  "arrow",
255
255
  { forwardAsChild: !0, defaultProps: { children: /* @__PURE__ */ e.jsx(Nt, {}) } }
256
256
  );
257
- h(
258
- Se,
257
+ x(
258
+ we,
259
259
  "indicator",
260
260
  { forwardAsChild: !0 }
261
261
  );
262
- const yt = h(
263
- Ae,
262
+ const yt = x(
263
+ Te,
264
264
  "itemGroup",
265
265
  { forwardAsChild: !0 }
266
- ), At = h(Te, "itemGroupLabel", { forwardAsChild: !0 }), le = h(
267
- we,
266
+ ), At = x(Ge, "itemGroupLabel", { forwardAsChild: !0 }), de = x(
267
+ Ne,
268
268
  "item",
269
269
  { forwardAsChild: !0 }
270
- ), Tt = h(De, "item", { forwardAsChild: !0 });
271
- h(
272
- _e,
270
+ ), Tt = x(Ve, "item", { forwardAsChild: !0 });
271
+ x(
272
+ Oe,
273
273
  "itemText",
274
274
  { forwardAsChild: !0 }
275
275
  );
276
- h(
276
+ x(
277
277
  "kbd",
278
278
  "itemCommand"
279
279
  );
280
- h(Ge, "itemIndicator", {
280
+ x(_e, "itemIndicator", {
281
281
  forwardAsChild: !0,
282
282
  defaultProps: { children: /* @__PURE__ */ e.jsx(dt, { boxSize: "4" }) }
283
283
  });
284
- h(Ie, "item", { forwardAsChild: !0 });
285
- h(Re, "itemGroup", { forwardAsChild: !0 });
286
- h(
287
- $e,
284
+ x(be, "item", { forwardAsChild: !0 });
285
+ x(Le, "itemGroup", { forwardAsChild: !0 });
286
+ x(
287
+ Re,
288
288
  "item",
289
289
  { forwardAsChild: !0 }
290
290
  );
291
- const He = ({
291
+ const Ke = ({
292
292
  hideCaret: o = !1,
293
293
  size: n = "md",
294
294
  text: t,
@@ -298,7 +298,7 @@ const He = ({
298
298
  ["data-testid"]: a = "kibble-menu-button",
299
299
  ...i
300
300
  }) => /* @__PURE__ */ e.jsxs(
301
- Y,
301
+ Z,
302
302
  {
303
303
  className: "Menu__Button",
304
304
  "data-testid": a,
@@ -311,7 +311,7 @@ const He = ({
311
311
  },
312
312
  children: [
313
313
  t && /* @__PURE__ */ e.jsx(
314
- Z,
314
+ ee,
315
315
  {
316
316
  className: "Menu__ButtonText",
317
317
  "data-testid": `${a}-text`,
@@ -334,7 +334,7 @@ const He = ({
334
334
  }, [n]);
335
335
  return B(() => {
336
336
  n && c(!1);
337
- }, [n]), /* @__PURE__ */ e.jsx(xe, { 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 He = ({
342
342
  },
343
343
  onMouseEnter: u,
344
344
  onMouseLeave: a,
345
- children: /* @__PURE__ */ e.jsx(He, { ...t })
345
+ children: /* @__PURE__ */ e.jsx(Ke, { ...t })
346
346
  }
347
347
  ) });
348
348
  }, _t = ({
@@ -362,16 +362,17 @@ const He = ({
362
362
  const {
363
363
  valueText: S,
364
364
  listProps: C,
365
- portalled: M = !0,
365
+ positionerProps: M,
366
+ portalled: A = !0,
366
367
  open: k,
367
- lazyMount: A = !0,
368
- unmountOnExit: I = !0
368
+ lazyMount: I = !0,
369
+ unmountOnExit: V = !0
369
370
  } = i;
370
371
  return /* @__PURE__ */ e.jsx(
371
372
  Ot,
372
373
  {
373
- lazyMount: A,
374
- unmountOnExit: I,
374
+ lazyMount: I,
375
+ unmountOnExit: V,
375
376
  submenuTrigger: /* @__PURE__ */ e.jsxs(
376
377
  Tt,
377
378
  {
@@ -385,7 +386,7 @@ const He = ({
385
386
  },
386
387
  children: [
387
388
  /* @__PURE__ */ e.jsx(
388
- U,
389
+ X,
389
390
  {
390
391
  label: o,
391
392
  leftElement: n,
@@ -397,16 +398,17 @@ const He = ({
397
398
  ]
398
399
  }
399
400
  ),
400
- portalled: M,
401
+ portalled: A,
401
402
  open: k !== void 0 ? k : f,
402
- listProps: C
403
+ listProps: C,
404
+ positionerProps: M
403
405
  }
404
406
  );
405
407
  }
406
408
  if (c === "checkbox") {
407
- const { checked: S, value: C, disabled: M, tooltipLabel: k, ...A } = i;
409
+ const { checked: S, value: C, disabled: M, tooltipLabel: A, ...k } = i;
408
410
  return /* @__PURE__ */ e.jsxs(
409
- le,
411
+ de,
410
412
  {
411
413
  className: "Menu__Item--Checkbox",
412
414
  "data-testid": `${a}-checkbox`,
@@ -415,17 +417,17 @@ const He = ({
415
417
  onSelect: M ? void 0 : y,
416
418
  gap: 3,
417
419
  disabled: M,
418
- ...A,
420
+ ...k,
419
421
  children: [
420
422
  /* @__PURE__ */ e.jsx(Pt, { checked: !!S, disabled: M, size: "md", fullWidth: !1 }),
421
423
  /* @__PURE__ */ e.jsx(
422
- U,
424
+ X,
423
425
  {
424
426
  label: o,
425
427
  leftElement: n,
426
428
  shouldTruncateText: s,
427
429
  variant: u,
428
- tooltipLabel: k
430
+ tooltipLabel: A
429
431
  }
430
432
  )
431
433
  ]
@@ -433,9 +435,9 @@ const He = ({
433
435
  );
434
436
  }
435
437
  if (c === "default") {
436
- const { selected: S = !1, disabled: C, value: M, tooltipLabel: k, ...A } = i;
438
+ const { selected: S = !1, disabled: C, value: M, tooltipLabel: A, ...k } = i;
437
439
  return /* @__PURE__ */ e.jsx(
438
- le,
440
+ de,
439
441
  {
440
442
  className: "Menu__Item--Default",
441
443
  "data-testid": `${a}-default`,
@@ -443,22 +445,22 @@ const He = ({
443
445
  onSelect: C ? void 0 : y,
444
446
  disabled: C,
445
447
  ...S && { bgColor: "background.secondaryAlpha.hover" },
446
- ...A,
448
+ ...k,
447
449
  children: /* @__PURE__ */ e.jsx(
448
- U,
450
+ X,
449
451
  {
450
452
  label: o,
451
453
  leftElement: n,
452
454
  shouldTruncateText: s,
453
455
  variant: S ? "info" : u,
454
- tooltipLabel: k
456
+ tooltipLabel: A
455
457
  }
456
458
  )
457
459
  }
458
460
  );
459
461
  }
460
462
  return /* @__PURE__ */ e.jsx(e.Fragment, {});
461
- }, U = ({
463
+ }, X = ({
462
464
  label: o,
463
465
  leftElement: n,
464
466
  shouldTruncateText: t,
@@ -467,22 +469,22 @@ const He = ({
467
469
  }) => {
468
470
  const u = /* @__PURE__ */ e.jsxs(z, { className: "Menu__ItemLabel", alignItems: "center", gap: 3, children: [
469
471
  n,
470
- typeof o == "string" ? /* @__PURE__ */ e.jsx(Z, { size: "sm", truncated: t, variant: s, children: o }) : o
472
+ typeof o == "string" ? /* @__PURE__ */ e.jsx(ee, { size: "sm", truncated: t, variant: s, children: o }) : o
471
473
  ] });
472
- return c ? /* @__PURE__ */ e.jsx(xe, { label: c, children: u }) : u;
473
- }, de = ({
474
+ return c ? /* @__PURE__ */ e.jsx(ge, { label: c, children: u }) : u;
475
+ }, pe = ({
474
476
  groupName: o,
475
477
  hasSelectedItems: n = !1,
476
478
  onToggle: t,
477
479
  ["data-testid"]: s = "kibble-menu-toggle-buttons"
478
480
  }) => {
479
481
  const c = !!o;
480
- 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(me, { hasSelectedItems: n, groupName: o, onToggle: t }) : /* @__PURE__ */ e.jsx(pe, { groupName: o, onToggle: t }) }) : /* @__PURE__ */ e.jsxs(z, { justifyContent: "space-between", children: [
481
- /* @__PURE__ */ e.jsx(pe, { groupName: o, onToggle: t }),
482
- /* @__PURE__ */ e.jsx(me, { 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 })
483
485
  ] }) });
484
- }, pe = ({ groupName: o, onToggle: n }) => /* @__PURE__ */ e.jsx(Y, { variant: "ghost", size: "xs", onClick: () => n({ groupName: o, clear: !1 }), children: "Select All" }), me = ({ hasSelectedItems: o, groupName: n, onToggle: t }) => /* @__PURE__ */ e.jsx(
485
- Y,
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
+ Z,
486
488
  {
487
489
  variant: "ghostNeutral",
488
490
  iconName: "arrowCircle",
@@ -507,33 +509,33 @@ const He = ({
507
509
  canSelectGroups: S,
508
510
  emptyState: C = "No results found",
509
511
  groupSortOrder: M,
510
- loading: k,
511
- maxH: A = "480px",
512
+ loading: A,
513
+ maxH: k = "480px",
512
514
  menuItems: I = [],
513
- minW: Ke = "240px",
515
+ minW: V = "240px",
514
516
  onSearch: w,
515
- onSelect: V,
516
- onSelectAll: oe,
517
- searchable: H,
517
+ onSelect: H,
518
+ onSelectAll: re,
519
+ searchable: K,
518
520
  searchPlaceholder: qe = "Search...",
519
521
  shouldTruncateText: Je,
520
- ...re
521
- } = n || {}, [Qe, Ue] = L(!1), [K, q] = L(""), [F, J] = L(I), se = D(() => {
522
+ ...se
523
+ } = n || {}, [Qe, Ue] = L(!1), [q, J] = L(""), [F, Q] = L(I), ce = D(() => {
522
524
  const r = {};
523
525
  return F?.forEach((l) => {
524
526
  const d = l.groupLabel || "default", P = l.type === "checkbox" ? "checkbox" : "default";
525
527
  r[d] || (r[d] = {}), r[d][P] || (r[d][P] = []), r[d][P].push(l);
526
528
  }), r;
527
- }, [F]), ce = D(() => {
528
- const r = Object.entries(se);
529
+ }, [F]), ae = D(() => {
530
+ const r = Object.entries(ce);
529
531
  return !M || M.length === 0 ? r : r.sort(([l], [d]) => {
530
532
  const P = M.indexOf(l), v = M.indexOf(d);
531
533
  return P !== -1 && v !== -1 ? P - v : P !== -1 ? -1 : v !== -1 ? 1 : 0;
532
534
  });
533
- }, [se, M]), O = D(() => I?.filter((r) => r.type === "checkbox") || [], [I]), Q = j(
534
- (r) => O.some((l) => l.value === r && l.checked),
535
- [O]
536
- ), b = D(() => O.filter((r) => r.checked), [O]), ae = 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(
537
539
  ({ groupName: r, clear: l }) => {
538
540
  let d;
539
541
  const P = F.filter((v) => v.type === "checkbox" && !v.disabled);
@@ -545,47 +547,46 @@ const He = ({
545
547
  );
546
548
  } else
547
549
  d = l ? [] : P.map((v) => ({ ...v, checked: !0 }));
548
- console.log("newSelectedItems", d), oe?.({ allSelectedItems: d });
550
+ re?.({ allSelectedItems: d });
549
551
  },
550
- [oe, F, b]
552
+ [re, F, b]
551
553
  ), Xe = j(
552
554
  (r) => {
553
555
  if (r.type === "checkbox") {
554
- const l = Q(r.value) ? b.filter((d) => d.value !== r.value) : [...b, r];
556
+ const l = U(r.value) ? b.filter((d) => d.value !== r.value) : [...b, r];
555
557
  if (r.onSelect) {
556
558
  r.onSelect(r.value);
557
559
  return;
558
560
  }
559
- V?.({ item: r, allSelectedItems: l });
561
+ H?.({ item: r, allSelectedItems: l });
560
562
  return;
561
563
  }
562
564
  if (r.onSelect) {
563
565
  r.onSelect(r.value);
564
566
  return;
565
567
  }
566
- V?.({ item: r, allSelectedItems: [r] });
568
+ H?.({ item: r, allSelectedItems: [r] });
567
569
  },
568
- [V, Q, b]
569
- ), ie = j((r, l) => r === "" || !r ? l : l.filter((d) => !!(typeof d.label == "string" ? d.label : d.valueText)?.toLowerCase().includes(r.toLowerCase())), []), Ye = j(
570
+ [H, U, b]
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(
570
572
  (r) => {
571
- console.log("e.target.value", r.target.value);
572
573
  const l = r.target.value;
573
- console.log("searchInput", l), q(l), w && w(r);
574
+ J(l), w && w(r);
574
575
  },
575
576
  [w]
576
577
  ), Ze = j(() => {
577
- q(""), w && w({
578
+ J(""), w && w({
578
579
  target: { value: "" }
579
580
  });
580
581
  }, [w]), et = j(
581
582
  (r) => {
582
- Ue(r), r || (q(""), J(I)), a && a({ open: r, allSelectedItems: b });
583
+ Ue(r), r || (J(""), Q(I)), a && a({ open: r, allSelectedItems: b });
583
584
  },
584
585
  [I, a, b]
585
586
  );
586
587
  return B(() => {
587
- J(w ? I : ie(K, I));
588
- }, [K, w, ie, I]), /* @__PURE__ */ e.jsxs(
588
+ Q(w ? I : ue(q, I));
589
+ }, [q, w, ue, I]), /* @__PURE__ */ e.jsxs(
589
590
  bt,
590
591
  {
591
592
  lazyMount: u,
@@ -595,21 +596,21 @@ const He = ({
595
596
  },
596
597
  ...f,
597
598
  children: [
598
- 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(He, { ...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 }) }),
599
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(
600
601
  wt,
601
602
  {
602
603
  className: "Menu__Content",
603
604
  "data-testid": `${i}-content`,
604
- maxH: A,
605
- minW: Ke,
606
- ...re,
607
- ...H && { pt: "0" },
605
+ maxH: k,
606
+ minW: V,
607
+ ...se,
608
+ ...K && { pt: "0" },
608
609
  onClick: (r) => {
609
- r.stopPropagation(), re?.onClick?.(r);
610
+ r.stopPropagation(), se?.onClick?.(r);
610
611
  },
611
612
  children: [
612
- H && /* @__PURE__ */ e.jsx(
613
+ K && /* @__PURE__ */ e.jsx(
613
614
  T,
614
615
  {
615
616
  className: "Menu__SearchBarContainer",
@@ -628,7 +629,7 @@ const He = ({
628
629
  placeholder: qe,
629
630
  onChange: Ye,
630
631
  size: "sm",
631
- value: K,
632
+ value: q,
632
633
  clearable: !0,
633
634
  onClear: Ze,
634
635
  onKeyDown: (r) => {
@@ -644,53 +645,56 @@ const He = ({
644
645
  className: "Menu__CheckboxGroupHeader",
645
646
  "data-testid": `${i}-checkbox-group-header`,
646
647
  px: 3,
647
- mt: H ? 1 : 2,
648
- children: y && !!O.length && /* @__PURE__ */ e.jsx(
649
- de,
648
+ mt: K ? 1 : 2,
649
+ children: y && !!$.length && /* @__PURE__ */ e.jsx(
650
+ pe,
650
651
  {
651
- onToggle: ae,
652
+ onToggle: ie,
652
653
  hasSelectedItems: !!b.length
653
654
  }
654
655
  )
655
656
  }
656
657
  ),
657
- k && /* @__PURE__ */ e.jsx(z, { justifyContent: "center", py: 5, children: /* @__PURE__ */ e.jsx(at, { fullScreen: !0 }) }),
658
- /* @__PURE__ */ e.jsx(T, { className: "Menu__List", "data-testid": `${i}-list`, children: ce.length ? /* @__PURE__ */ e.jsx(e.Fragment, { children: ce.map(([r, l]) => {
659
- const d = r === "default", P = Object.keys(l), v = d ? st.Fragment : yt, tt = l.checkbox?.map(($) => $.value)?.some(
660
- ($) => b.some((E) => E.value === $ && E.checked)
658
+ A && /* @__PURE__ */ e.jsx(z, { justifyContent: "center", py: 5, children: /* @__PURE__ */ e.jsx(at, { fullScreen: !0 }) }),
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]) => {
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)
661
662
  );
662
663
  return /* @__PURE__ */ e.jsxs(v, { children: [
663
664
  !d && /* @__PURE__ */ e.jsx(At, { children: /* @__PURE__ */ e.jsxs(z, { alignItems: "center", justifyContent: "space-between", children: [
664
665
  r,
665
666
  S && P.includes("checkbox") && /* @__PURE__ */ e.jsx(
666
- de,
667
+ pe,
667
668
  {
668
669
  groupName: r,
669
- onToggle: ae,
670
+ onToggle: ie,
670
671
  hasSelectedItems: tt
671
672
  }
672
673
  )
673
674
  ] }) }),
674
675
  Object.entries(l).map(
675
- ([$, E]) => E.map((R, nt) => {
676
- const { groupLabel: ot, ...rt } = R;
676
+ ([R, E]) => E.map((G, nt) => {
677
+ const { groupLabel: ot, ...rt } = G;
677
678
  return /* @__PURE__ */ e.jsx(
678
679
  _t,
679
680
  {
680
- ...rt,
681
681
  shouldTruncateText: Je,
682
- ...R.type === "checkbox" && {
683
- checked: Q(R.value)
682
+ ...G.type === "checkbox" && {
683
+ checked: U(G.value)
684
+ },
685
+ onSelect: () => Xe(G),
686
+ ...G.type === "submenu" && {
687
+ positionerProps: t
684
688
  },
685
- "data-testid": `${i}-item-${R.label}`,
686
- onSelect: () => Xe(R)
689
+ ...rt,
690
+ "data-testid": `${i}-item-${G.label}`
687
691
  },
688
- `menu-item-${ot}-${$}-${nt}`
692
+ `menu-item-${ot}-${R}-${nt}`
689
693
  );
690
694
  })
691
695
  )
692
696
  ] }, r);
693
- }) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(T, { p: 3, children: typeof C == "string" ? /* @__PURE__ */ e.jsx(T, { textAlign: "center", children: /* @__PURE__ */ e.jsx(Z, { size: "sm", variant: "subtle", "data-testid": `${i}-empty-state`, children: C }) }) : C }) }) })
697
+ }) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(T, { p: 3, children: typeof C == "string" ? /* @__PURE__ */ e.jsx(T, { textAlign: "center", children: /* @__PURE__ */ e.jsx(ee, { size: "sm", variant: "subtle", "data-testid": `${i}-empty-state`, children: C }) }) : C }) }) })
694
698
  ]
695
699
  }
696
700
  ) }) })
@@ -701,4 +705,4 @@ const He = ({
701
705
  export {
702
706
  Ot as M
703
707
  };
704
- //# sourceMappingURL=menu.component-TeC2F3rT.js.map
708
+ //# sourceMappingURL=menu.component-BuTY_3mt.js.map