@m4l/components 9.54.1 → 9.54.2-beta-m4lcom-764-device-picker.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 (152) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/CheckableList/CheckableList.d.ts.map +1 -1
  3. package/components/CheckableList/CheckableList.js +163 -143
  4. package/components/CheckableList/CheckableList.styles.d.ts.map +1 -1
  5. package/components/CheckableList/CheckableList.styles.js +20 -8
  6. package/components/CheckableList/constants.d.ts +1 -1
  7. package/components/CheckableList/constants.d.ts.map +1 -1
  8. package/components/CheckableList/hooks/useCheckableListRender.d.ts +6 -1
  9. package/components/CheckableList/hooks/useCheckableListRender.d.ts.map +1 -1
  10. package/components/CheckableList/hooks/useCheckableListRender.js +126 -113
  11. package/components/CheckableList/slots/slots.d.ts +1 -0
  12. package/components/CheckableList/slots/slots.d.ts.map +1 -1
  13. package/components/CheckableList/slots/slots.js +1 -1
  14. package/components/CheckableList/slots/styled.d.ts +3 -0
  15. package/components/CheckableList/slots/styled.d.ts.map +1 -1
  16. package/components/CheckableList/slots/styled.js +56 -51
  17. package/components/CheckableList/types.d.ts +20 -0
  18. package/components/CheckableList/types.d.ts.map +1 -1
  19. package/components/ColorPicker/ColorPicker.js +2 -2
  20. package/components/DateTimeRangePicker/DateTimeRangePicker.js +1 -1
  21. package/components/DevicesPicker/DevicesPicker.d.ts +14 -0
  22. package/components/DevicesPicker/DevicesPicker.d.ts.map +1 -0
  23. package/components/DevicesPicker/DevicesPicker.js +343 -0
  24. package/components/DevicesPicker/DevicesPicker.styles.d.ts +3 -0
  25. package/components/DevicesPicker/DevicesPicker.styles.d.ts.map +1 -0
  26. package/components/DevicesPicker/DevicesPicker.styles.js +495 -0
  27. package/components/DevicesPicker/constants.d.ts +74 -0
  28. package/components/DevicesPicker/constants.d.ts.map +1 -0
  29. package/components/DevicesPicker/constants.js +39 -0
  30. package/components/DevicesPicker/dictionary.d.ts +19 -0
  31. package/components/DevicesPicker/dictionary.d.ts.map +1 -0
  32. package/components/DevicesPicker/dictionary.js +20 -0
  33. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts +11 -0
  34. package/components/DevicesPicker/helpers/resolveDeviceGroup.d.ts.map +1 -0
  35. package/components/DevicesPicker/helpers/resolveDeviceGroup.js +14 -0
  36. package/components/DevicesPicker/helpers/toDeviceArray.d.ts +7 -0
  37. package/components/DevicesPicker/helpers/toDeviceArray.d.ts.map +1 -0
  38. package/components/DevicesPicker/helpers/toDeviceArray.js +6 -0
  39. package/components/DevicesPicker/hooks/types.d.ts +176 -0
  40. package/components/DevicesPicker/hooks/types.d.ts.map +1 -0
  41. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts +13 -0
  42. package/components/DevicesPicker/hooks/useDeviceGroups.d.ts.map +1 -0
  43. package/components/DevicesPicker/hooks/useDeviceGroups.js +51 -0
  44. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts +13 -0
  45. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.d.ts.map +1 -0
  46. package/components/DevicesPicker/hooks/useDevicesAsyncOptions.js +71 -0
  47. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts +12 -0
  48. package/components/DevicesPicker/hooks/useDevicesSelection.d.ts.map +1 -0
  49. package/components/DevicesPicker/hooks/useDevicesSelection.js +26 -0
  50. package/components/DevicesPicker/hooks/usePanelColumns.d.ts +12 -0
  51. package/components/DevicesPicker/hooks/usePanelColumns.d.ts.map +1 -0
  52. package/components/DevicesPicker/hooks/usePanelColumns.js +30 -0
  53. package/components/DevicesPicker/index.d.ts +11 -0
  54. package/components/DevicesPicker/index.d.ts.map +1 -0
  55. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts +77 -0
  56. package/components/DevicesPicker/slots/DevicesPickerEnum.d.ts.map +1 -0
  57. package/components/DevicesPicker/slots/DevicesPickerEnum.js +4 -0
  58. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts +112 -0
  59. package/components/DevicesPicker/slots/DevicesPickerSlots.d.ts.map +1 -0
  60. package/components/DevicesPicker/slots/DevicesPickerSlots.js +163 -0
  61. package/components/DevicesPicker/slots/index.d.ts +3 -0
  62. package/components/DevicesPicker/slots/index.d.ts.map +1 -0
  63. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts +8 -0
  64. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.d.ts.map +1 -0
  65. package/components/DevicesPicker/subcomponents/DeviceCard/DeviceCard.js +77 -0
  66. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts +3 -0
  67. package/components/DevicesPicker/subcomponents/DeviceCard/index.d.ts.map +1 -0
  68. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts +42 -0
  69. package/components/DevicesPicker/subcomponents/DeviceCard/types.d.ts.map +1 -0
  70. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts +11 -0
  71. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.d.ts.map +1 -0
  72. package/components/DevicesPicker/subcomponents/DevicesPanel/DevicesPanel.js +133 -0
  73. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts +3 -0
  74. package/components/DevicesPicker/subcomponents/DevicesPanel/index.d.ts.map +1 -0
  75. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts +68 -0
  76. package/components/DevicesPicker/subcomponents/DevicesPanel/types.d.ts.map +1 -0
  77. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts +10 -0
  78. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.d.ts.map +1 -0
  79. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/DevicesPickerSkeleton.js +35 -0
  80. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts +3 -0
  81. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/index.d.ts.map +1 -0
  82. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts +11 -0
  83. package/components/DevicesPicker/subcomponents/DevicesPickerSkeleton/types.d.ts.map +1 -0
  84. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts +11 -0
  85. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.d.ts.map +1 -0
  86. package/components/DevicesPicker/subcomponents/SelectedDevicesList/SelectedDevicesList.js +61 -0
  87. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts +3 -0
  88. package/components/DevicesPicker/subcomponents/SelectedDevicesList/index.d.ts.map +1 -0
  89. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts +32 -0
  90. package/components/DevicesPicker/subcomponents/SelectedDevicesList/types.d.ts.map +1 -0
  91. package/components/DevicesPicker/types.d.ts +171 -0
  92. package/components/DevicesPicker/types.d.ts.map +1 -0
  93. package/components/DynamicFilter/DynamicFilter.styles.d.ts.map +1 -1
  94. package/components/DynamicFilter/DynamicFilter.styles.js +41 -33
  95. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.d.ts +1 -1
  96. package/components/DynamicFilter/subcomponents/AppliedFilters/useAppliedFilters.js +1 -1
  97. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.d.ts.map +1 -1
  98. package/components/DynamicFilter/subcomponents/FieldTypes/SelectAsyncFilter/index.js +24 -24
  99. package/components/DynamicFilter/types.d.ts +9 -1
  100. package/components/DynamicFilter/types.d.ts.map +1 -1
  101. package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.d.ts +1 -1
  102. package/components/DynamicSort/subcomponents/AppliedSorts/useAppliedSorts.js +1 -1
  103. package/components/extended/mui/CheckBox/CheckBox.js +7 -7
  104. package/components/extended/mui/Select/Select.js +6 -6
  105. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts +21 -0
  106. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.d.ts.map +1 -0
  107. package/components/hook-form/RHFDevicesPicker/RHFDevicesPicker.js +6 -0
  108. package/components/hook-form/RHFDevicesPicker/index.d.ts +3 -0
  109. package/components/hook-form/RHFDevicesPicker/index.d.ts.map +1 -0
  110. package/components/hook-form/RHFDevicesPicker/types.d.ts +8 -0
  111. package/components/hook-form/RHFDevicesPicker/types.d.ts.map +1 -0
  112. package/components/hook-form/index.d.ts +3 -0
  113. package/components/hook-form/index.d.ts.map +1 -1
  114. package/components/hook-form/renderAsRegistry.d.ts +33 -0
  115. package/components/hook-form/renderAsRegistry.d.ts.map +1 -0
  116. package/components/hook-form/renderAsRegistry.js +7 -0
  117. package/components/index.d.ts +1 -0
  118. package/components/index.d.ts.map +1 -1
  119. package/helpers/resolveDeviceIconSrc/constants.d.ts +14 -0
  120. package/helpers/resolveDeviceIconSrc/constants.d.ts.map +1 -0
  121. package/helpers/resolveDeviceIconSrc/constants.js +6 -0
  122. package/helpers/resolveDeviceIconSrc/index.d.ts +3 -0
  123. package/helpers/resolveDeviceIconSrc/index.d.ts.map +1 -0
  124. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts +14 -0
  125. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.d.ts.map +1 -0
  126. package/helpers/resolveDeviceIconSrc/resolveDeviceIconSrc.js +8 -0
  127. package/helpers/resolveDeviceLabels/index.d.ts +3 -0
  128. package/helpers/resolveDeviceLabels/index.d.ts.map +1 -0
  129. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts +22 -0
  130. package/helpers/resolveDeviceLabels/resolveDeviceLabels.d.ts.map +1 -0
  131. package/helpers/resolveDeviceLabels/resolveDeviceLabels.js +10 -0
  132. package/helpers/resolveDeviceLabels/types.d.ts +19 -0
  133. package/helpers/resolveDeviceLabels/types.d.ts.map +1 -0
  134. package/hooks/useChipsOverflow/helpers/calculateVisibleChipsCount.d.ts.map +1 -0
  135. package/hooks/useChipsOverflow/helpers/index.d.ts +2 -0
  136. package/hooks/useChipsOverflow/helpers/index.d.ts.map +1 -0
  137. package/hooks/useChipsOverflow/index.d.ts +3 -0
  138. package/hooks/useChipsOverflow/index.d.ts.map +1 -0
  139. package/hooks/useChipsOverflow/types.d.ts +24 -0
  140. package/hooks/useChipsOverflow/types.d.ts.map +1 -0
  141. package/{components/DynamicFilter/hooks → hooks/useChipsOverflow}/useChipsOverflow.d.ts +6 -5
  142. package/hooks/useChipsOverflow/useChipsOverflow.d.ts.map +1 -0
  143. package/hooks/useChipsOverflow/useChipsOverflow.js +108 -0
  144. package/index.d.ts +2 -0
  145. package/index.d.ts.map +1 -1
  146. package/index.js +804 -760
  147. package/package.json +9 -9
  148. package/components/DynamicFilter/helpers/calculateVisibleChipsCount.d.ts.map +0 -1
  149. package/components/DynamicFilter/hooks/useChipsOverflow.d.ts.map +0 -1
  150. package/components/DynamicFilter/hooks/useChipsOverflow.js +0 -83
  151. /package/{components/DynamicFilter → hooks/useChipsOverflow}/helpers/calculateVisibleChipsCount.d.ts +0 -0
  152. /package/{components/DynamicFilter → hooks/useChipsOverflow}/helpers/calculateVisibleChipsCount.js +0 -0
@@ -1,133 +1,146 @@
1
- import { jsxs as s, Fragment as q, jsx as l } from "@emotion/react/jsx-runtime";
2
- import { useCallback as k } from "react";
3
- import { CHECKABLE_LIST_ICON_COMPONENTS as E, ICONS as L } from "../icons.js";
4
- import { LegacyS3NoItemSelectedNoSelectedOutlined as F } from "@m4l/icons";
5
- import { ItemLabelTypografyStyled as J, ItemDescriptionTypografyStyled as Q, ItemWrapperStyled as U, ItemCheckboxStyled as Y, ItemIconStyled as Z, ItemContentWrapperStyled as $, GroupLabelCountWrapperStyled as v, GroupLabelTypografyStyled as z, ChipCountTypografyStyled as ee, GroupWrapperStyled as te, GroupHeaderStyled as oe, GroupCheckboxStyled as ne, GroupIconStyled as le, GroupToggleButtonStyled as de } from "../slots/styled.js";
6
- const pe = ({
7
- isItemSelected: p,
8
- disabled: C = !1,
9
- size: n = "medium",
10
- variant: d = "standard",
11
- checkboxSize: u = "medium",
12
- handleItemToggle: y,
13
- renderItem: g,
1
+ import { jsxs as p, Fragment as F, jsx as n } from "@emotion/react/jsx-runtime";
2
+ import { useCallback as g } from "react";
3
+ import { CHECKABLE_LIST_ICON_COMPONENTS as k, ICONS as E } from "../icons.js";
4
+ import { LegacyS3NoItemSelectedNoSelectedOutlined as J } from "@m4l/icons";
5
+ import { ItemLabelTypografyStyled as Q, ItemDescriptionTypografyStyled as U, ItemWrapperStyled as Y, ItemCheckboxStyled as Z, ItemRadioStyled as $, ItemIconStyled as v, ItemContentWrapperStyled as z, GroupLabelCountWrapperStyled as tt, GroupLabelTypografyStyled as et, ChipCountTypografyStyled as ot, GroupWrapperStyled as nt, GroupHeaderStyled as dt, GroupCheckboxStyled as rt, GroupIconStyled as at, GroupToggleButtonStyled as lt } from "../slots/styled.js";
6
+ const yt = ({
7
+ isItemSelected: C,
8
+ disabled: y = !1,
9
+ size: d = "medium",
10
+ variant: a = "standard",
11
+ checkboxSize: i = "medium",
12
+ multiple: L = !0,
13
+ handleItemToggle: u,
14
+ renderItem: P,
14
15
  expandedGroups: x,
15
- isGroupFullySelected: T,
16
- isGroupPartiallySelected: N,
17
- getGroupItems: P,
18
- indeterminateBehavior: w = "indicate-some",
19
- renderGroup: D,
16
+ isGroupFullySelected: N,
17
+ isGroupPartiallySelected: T,
18
+ getGroupItems: w,
19
+ indeterminateBehavior: D = "indicate-some",
20
+ renderGroup: O,
20
21
  groupable: S = !0,
21
- showCheckboxOnGroup: O = !0,
22
- handleGroupExpandToggle: W,
23
- handleGroupToggle: _
22
+ showCheckboxOnGroup: W = !0,
23
+ handleGroupExpandToggle: _,
24
+ handleGroupToggle: A
24
25
  }) => {
25
- const A = E[L.EXPANDED_LIST], B = E[L.COMPACT_LIST], R = E[L.SEARCH], j = /* @__PURE__ */ l(F, {}), b = k(
26
- (e, i) => {
27
- const o = p(e.id), t = !!(C || e.disabled), f = g?.({
28
- item: e,
26
+ const B = k[E.EXPANDED_LIST], G = k[E.COMPACT_LIST], j = k[E.SEARCH], M = /* @__PURE__ */ n(J, {}), b = g(
27
+ (t, s) => {
28
+ const o = C(t.id), e = !!(y || t.disabled), m = P?.({
29
+ item: t,
29
30
  checked: o,
30
- index: i,
31
- disabled: t,
32
- size: n,
33
- variant: d
34
- }), h = /* @__PURE__ */ s(q, { children: [
35
- /* @__PURE__ */ l(
36
- J,
31
+ index: s,
32
+ disabled: e,
33
+ size: d,
34
+ variant: a
35
+ }), h = /* @__PURE__ */ p(F, { children: [
36
+ /* @__PURE__ */ n(
37
+ Q,
37
38
  {
38
- ownerState: { size: n, variant: d, disabled: t },
39
+ ownerState: { size: d, variant: a, disabled: e },
39
40
  variant: "bodyStandard",
40
41
  color: "text.primary",
41
- disabled: t,
42
- children: e.label
42
+ disabled: e,
43
+ children: t.label
43
44
  }
44
45
  ),
45
- e.description && /* @__PURE__ */ l(
46
- Q,
46
+ t.description && /* @__PURE__ */ n(
47
+ U,
47
48
  {
48
- ownerState: { size: n, variant: d },
49
+ ownerState: { size: d, variant: a },
49
50
  variant: "bodyStandard",
50
51
  color: "text.secondary",
51
- disabled: t,
52
- children: e.description
52
+ disabled: e,
53
+ children: t.description
53
54
  }
54
55
  )
55
56
  ] });
56
- return /* @__PURE__ */ s(
57
- U,
57
+ return /* @__PURE__ */ p(
58
+ Y,
58
59
  {
59
- ownerState: { size: n, variant: d, disabled: t, selected: o },
60
+ ownerState: { size: d, variant: a, disabled: e, selected: o },
60
61
  role: "option",
61
62
  "aria-label": "item",
62
63
  "aria-selected": o,
63
- "aria-disabled": t,
64
- onClick: () => !t && y(e.id),
64
+ "aria-disabled": e,
65
+ onClick: () => !e && u(t.id),
65
66
  children: [
66
- /* @__PURE__ */ l(
67
- Y,
67
+ L ? /* @__PURE__ */ n(
68
+ Z,
69
+ {
70
+ checked: o,
71
+ disabled: e,
72
+ size: i,
73
+ onChange: (r) => {
74
+ r.stopPropagation(), u(t.id);
75
+ },
76
+ onClick: (r) => r.stopPropagation()
77
+ }
78
+ ) : /* @__PURE__ */ n(
79
+ $,
68
80
  {
69
81
  checked: o,
70
- disabled: t,
71
- size: u,
82
+ disabled: e,
83
+ size: i,
72
84
  onChange: (r) => {
73
- r.stopPropagation(), y(e.id);
85
+ r.stopPropagation(), u(t.id);
74
86
  },
75
87
  onClick: (r) => r.stopPropagation()
76
88
  }
77
89
  ),
78
- e.icon && /* @__PURE__ */ l(Z, { children: e.icon }),
79
- /* @__PURE__ */ l($, { children: f ?? h })
90
+ t.icon && /* @__PURE__ */ n(v, { children: t.icon }),
91
+ /* @__PURE__ */ n(z, { children: m ?? h })
80
92
  ]
81
93
  }
82
94
  );
83
95
  },
84
96
  [
85
- p,
86
97
  C,
87
- g,
88
- n,
98
+ y,
99
+ P,
89
100
  d,
90
- u,
91
- y
101
+ a,
102
+ i,
103
+ L,
104
+ u
92
105
  ]
93
- ), m = k(
94
- (e, i) => {
95
- const o = x.has(e.id), t = !!(C || e.disabled), f = T(e), h = N(e), r = P(e);
106
+ ), f = g(
107
+ (t, s) => {
108
+ const o = x.has(t.id), e = !!(y || t.disabled), m = N(t), h = T(t), r = w(t);
96
109
  let c = !1;
97
- f ? c = !0 : h && w === "indicate-some" && (c = "indeterminate");
98
- const I = (a) => {
99
- a.stopPropagation(), !(t || !S) && W(e.id);
100
- }, G = (a) => {
101
- a.stopPropagation(), _(e);
110
+ m ? c = !0 : h && D === "indicate-some" && (c = "indeterminate");
111
+ const I = (l) => {
112
+ l.stopPropagation(), !(e || !S) && _(t.id);
113
+ }, R = (l) => {
114
+ l.stopPropagation(), A(t);
102
115
  }, H = r.filter(
103
- (a) => p(a.id)
104
- ).length, K = D?.({
105
- group: e,
116
+ (l) => C(l.id)
117
+ ).length, V = O?.({
118
+ group: t,
106
119
  items: r,
107
- index: i,
120
+ index: s,
108
121
  expanded: o,
109
- disabled: t,
110
- size: n,
111
- variant: d,
122
+ disabled: e,
123
+ size: d,
124
+ variant: a,
112
125
  checkboxState: c,
113
126
  onToggleExpand: I,
114
- onToggleGroup: G,
127
+ onToggleGroup: R,
115
128
  selectedCount: H,
116
129
  totalCount: r.length
117
- }), V = /* @__PURE__ */ s(v, { children: [
118
- /* @__PURE__ */ l(
119
- z,
130
+ }), X = /* @__PURE__ */ p(tt, { children: [
131
+ /* @__PURE__ */ n(
132
+ et,
120
133
  {
121
- ownerState: { size: n, variant: d, disabled: t },
134
+ ownerState: { size: d, variant: a, disabled: e },
122
135
  ellipsis: !0,
123
136
  variant: "captionDens",
124
- children: e.label
137
+ children: t.label
125
138
  }
126
139
  ),
127
- /* @__PURE__ */ s(
128
- ee,
140
+ /* @__PURE__ */ p(
141
+ ot,
129
142
  {
130
- ownerState: { size: n, variant: d, disabled: t, color: e.color },
143
+ ownerState: { size: d, variant: a, disabled: e, color: t.color },
131
144
  children: [
132
145
  H,
133
146
  "/",
@@ -135,42 +148,42 @@ const pe = ({
135
148
  ]
136
149
  }
137
150
  )
138
- ] }), X = K ?? V;
151
+ ] }), q = V ?? X;
139
152
  return (
140
153
  // eslint-disable-next-line jsx-a11y/role-supports-aria-props
141
- /* @__PURE__ */ l(
142
- te,
154
+ /* @__PURE__ */ n(
155
+ nt,
143
156
  {
144
- ownerState: { size: n, variant: d, grouped: !0, selected: c === !0 },
157
+ ownerState: { size: d, variant: a, grouped: !0, selected: c === !0 },
145
158
  role: "group",
146
- "aria-label": e.label,
159
+ "aria-label": t.label,
147
160
  "aria-expanded": o,
148
- "aria-disabled": t,
149
- children: /* @__PURE__ */ s(
150
- oe,
161
+ "aria-disabled": e,
162
+ children: /* @__PURE__ */ p(
163
+ dt,
151
164
  {
152
- ownerState: { size: n, variant: d, disabled: t },
165
+ ownerState: { size: d, variant: a, disabled: e },
153
166
  onClick: I,
154
167
  children: [
155
- O && /* @__PURE__ */ l(
156
- ne,
168
+ W && /* @__PURE__ */ n(
169
+ rt,
157
170
  {
158
171
  checked: c === !0,
159
172
  indeterminate: c === "indeterminate",
160
- disabled: t,
161
- size: u,
162
- onChange: G,
163
- onClick: (a) => a.stopPropagation()
173
+ disabled: e,
174
+ size: i,
175
+ onChange: R,
176
+ onClick: (l) => l.stopPropagation()
164
177
  }
165
178
  ),
166
- e.icon && /* @__PURE__ */ l(le, { children: e.icon }),
167
- /* @__PURE__ */ l("div", { style: { flex: 1, minWidth: 0 }, children: X }),
168
- S && /* @__PURE__ */ l(
169
- de,
179
+ t.icon && /* @__PURE__ */ n(at, { children: t.icon }),
180
+ /* @__PURE__ */ n("div", { style: { flex: 1, minWidth: 0 }, children: q }),
181
+ S && /* @__PURE__ */ n(
182
+ lt,
170
183
  {
171
- size: n,
184
+ size: d,
172
185
  variant: "text",
173
- icon: o ? B : A,
186
+ icon: o ? G : B,
174
187
  onClick: I,
175
188
  "aria-label": o ? "Colapsar grupo" : "Expandir grupo"
176
189
  }
@@ -182,22 +195,22 @@ const pe = ({
182
195
  )
183
196
  );
184
197
  },
185
- [x, C, T, N, P, w, D, n, d, O, u, S, B, A, W, _, p]
186
- ), M = k(
187
- ({ index: e, virtualizedItems: i }) => {
188
- const o = i[e];
189
- return o ? o.type === "group" ? m(o.data, e) : b(o.data, e) : null;
198
+ [x, y, N, T, w, D, O, d, a, W, i, S, G, B, _, A, C]
199
+ ), K = g(
200
+ ({ index: t, virtualizedItems: s }) => {
201
+ const o = s[t];
202
+ return o ? o.type === "group" ? f(o.data, t) : b(o.data, t) : null;
190
203
  },
191
- [m, b]
204
+ [f, b]
192
205
  );
193
206
  return {
194
207
  renderItemContent: b,
195
- renderGroupContent: m,
196
- renderVirtualizedItem: M,
197
- urlIconSearch: R,
198
- urlIconNoResults: j
208
+ renderGroupContent: f,
209
+ renderVirtualizedItem: K,
210
+ urlIconSearch: j,
211
+ urlIconNoResults: M
199
212
  };
200
213
  };
201
214
  export {
202
- pe as useCheckableListRender
215
+ yt as useCheckableListRender
203
216
  };
@@ -10,6 +10,7 @@ export declare enum CheckableListSlots {
10
10
  virtualRow = "virtualRow",
11
11
  itemWrapper = "itemWrapper",
12
12
  itemCheckbox = "itemCheckbox",
13
+ itemRadio = "itemRadio",
13
14
  itemContentWrapper = "itemContentWrapper",
14
15
  itemLabel = "itemLabel",
15
16
  itemDescription = "itemDescription",
@@ -1 +1 @@
1
- {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/slots.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,kBAAkB,uBAAsB;IACxC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAE/B,sBAAsB,2BAA2B;IACjD,UAAU,eAAe;IACzB,SAAS,cAAY;IAGrB,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;CACtC"}
1
+ {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/slots.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,kBAAkB,uBAAsB;IACxC,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,QAAQ,aAAa;IACrB,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAE/B,sBAAsB,2BAA2B;IACjD,UAAU,eAAe;IACzB,SAAS,cAAY;IAGrB,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;CACtC"}
@@ -1,4 +1,4 @@
1
- var p = /* @__PURE__ */ ((r) => (r.root = "root", r.searchContainer = "searchContainer", r.searchInput = "searchInput", r.selectAllContainer = "selectAllContainer", r.selectAllCheckbox = "selectAllCheckbox", r.listContainer = "listContainer", r.virtualizedList = "virtualizedList", r.virtualContainer = "virtualContainer", r.virtualRow = "virtualRow", r.itemWrapper = "itemWrapper", r.itemCheckbox = "itemCheckbox", r.itemContentWrapper = "itemContentWrapper", r.itemLabel = "itemLabel", r.itemDescription = "itemDescription", r.itemIcon = "itemIcon", r.groupWrapper = "groupWrapper", r.groupHeader = "groupHeader", r.groupCheckbox = "groupCheckbox", r.groupLabelCountWrapper = "groupLabelCountWrapper", r.groupLabel = "groupLabel", r.chipCount = "chipCount", r.groupIcon = "groupIcon", r.groupToggleButton = "groupToggleButton", r.groupItems = "groupItems", r.emptyMessageWrapper = "emptyMessageWrapper", r.loadingContainer = "loadingContainer", r))(p || {});
1
+ var p = /* @__PURE__ */ ((r) => (r.root = "root", r.searchContainer = "searchContainer", r.searchInput = "searchInput", r.selectAllContainer = "selectAllContainer", r.selectAllCheckbox = "selectAllCheckbox", r.listContainer = "listContainer", r.virtualizedList = "virtualizedList", r.virtualContainer = "virtualContainer", r.virtualRow = "virtualRow", r.itemWrapper = "itemWrapper", r.itemCheckbox = "itemCheckbox", r.itemRadio = "itemRadio", r.itemContentWrapper = "itemContentWrapper", r.itemLabel = "itemLabel", r.itemDescription = "itemDescription", r.itemIcon = "itemIcon", r.groupWrapper = "groupWrapper", r.groupHeader = "groupHeader", r.groupCheckbox = "groupCheckbox", r.groupLabelCountWrapper = "groupLabelCountWrapper", r.groupLabel = "groupLabel", r.chipCount = "chipCount", r.groupIcon = "groupIcon", r.groupToggleButton = "groupToggleButton", r.groupItems = "groupItems", r.emptyMessageWrapper = "emptyMessageWrapper", r.loadingContainer = "loadingContainer", r))(p || {});
2
2
  export {
3
3
  p as CheckableListSlots
4
4
  };
@@ -31,6 +31,9 @@ export declare const ItemWrapperStyled: import('@emotion/styled').StyledComponen
31
31
  export declare const ItemCheckboxStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/CheckBox/types').CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "symbol" | "color" | "content" | "translate" | "error" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "indeterminate" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | "skeletonWidth" | "htmlFor" | keyof import('react').RefAttributes<HTMLButtonElement> | "mandatory" | "required" | "readOnly" | "inputProps" | "inputRef" | "helperMessage" | "mandatoryMessage" | "checkedIcon" | "indeterminateIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
32
32
  ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
33
33
  }, {}, {}>;
34
+ export declare const ItemRadioStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../extended/mui/Radio/types').RadioProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "error" | "action" | "classes" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "value" | "icon" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "checked" | keyof import('react').RefAttributes<HTMLButtonElement> | "required" | "readOnly" | "inputProps" | "inputRef" | "checkedIcon" | "inlineText"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
35
+ ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
36
+ }, {}, {}>;
34
37
  export declare const ItemContentWrapperStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
35
38
  ownerState?: (Partial<import('..').CheckableListOwnerState> & Record<string, unknown>) | undefined;
36
39
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/styled.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;6NAGM,CAAC;AAE9B,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,iBAAiB;;UAGM,CAAC;AAErC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;6NAGM,CAAC;AAEvC,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,sBAAsB;;6NAGM,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,kBAAkB;;UAGM,CAAC;AAEtC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,8BAA8B;;UAGH,CAAC;AAEzC,eAAO,MAAM,cAAc;;6NAGM,CAAC;AAElC,eAAO,MAAM,kBAAkB;;6NAGM,CAAC;AAEtC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,mBAAmB;;UAGM,CAAC;AAEvC,eAAO,MAAM,4BAA4B;;6NAGM,CAAC;AAEhD,eAAO,MAAM,yBAAyB;;UAGH,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,eAAe;;6NAGM,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,yBAAyB;;6NAGM,CAAC;AAE7C,eAAO,MAAM,sBAAsB;;6NAGM,CAAC"}
1
+ {"version":3,"file":"styled.d.ts","sourceRoot":"","sources":["../../../../../../../packages/components/src/components/CheckableList/slots/styled.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,UAAU;;6NAGM,CAAC;AAE9B,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,iBAAiB;;UAGM,CAAC;AAErC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;6NAGM,CAAC;AAEvC,eAAO,MAAM,qBAAqB;;6NAGM,CAAC;AAEzC,eAAO,MAAM,sBAAsB;;6NAGM,CAAC;AAE1C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,kBAAkB;;UAGM,CAAC;AAEtC,eAAO,MAAM,eAAe;;UAGM,CAAC;AAEnC,eAAO,MAAM,wBAAwB;;6NAGM,CAAC;AAE5C,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,8BAA8B;;UAGH,CAAC;AAEzC,eAAO,MAAM,cAAc;;6NAGM,CAAC;AAElC,eAAO,MAAM,kBAAkB;;6NAGM,CAAC;AAEtC,eAAO,MAAM,iBAAiB;;6NAGM,CAAC;AAErC,eAAO,MAAM,mBAAmB;;UAGM,CAAC;AAEvC,eAAO,MAAM,4BAA4B;;6NAGM,CAAC;AAEhD,eAAO,MAAM,yBAAyB;;UAGH,CAAC;AAEpC,eAAO,MAAM,wBAAwB;;UAGH,CAAC;AAEnC,eAAO,MAAM,eAAe;;6NAGM,CAAC;AAEnC,eAAO,MAAM,uBAAuB;;UAGM,CAAC;AAE3C,eAAO,MAAM,gBAAgB;;6NAGM,CAAC;AAEpC,eAAO,MAAM,yBAAyB;;6NAGM,CAAC;AAE7C,eAAO,MAAM,sBAAsB;;6NAGM,CAAC"}
@@ -5,74 +5,78 @@ import { CheckableListSlots as o } from "./slots.js";
5
5
  import { checkableListStyles as n } from "../CheckableList.styles.js";
6
6
  import { TextField as a } from "../../extended/mui/TextField/TextField.js";
7
7
  import { CheckBox as l } from "../../extended/mui/CheckBox/CheckBox.js";
8
- import { IconButton as i } from "../../extended/mui/IconButton/IconButton.js";
9
- const g = t("div", {
8
+ import { Radio as i } from "../../extended/mui/Radio/Radio.js";
9
+ import { IconButton as s } from "../../extended/mui/IconButton/IconButton.js";
10
+ const v = t("div", {
10
11
  name: e,
11
12
  slot: o.root
12
- })(n?.root), S = t("div", {
13
+ })(n?.root), h = t("div", {
13
14
  name: e,
14
15
  slot: o.searchContainer
15
- })(n?.searchContainer), v = t(a, {
16
+ })(n?.searchContainer), b = t(a, {
16
17
  name: e,
17
18
  slot: o.searchInput
18
- })(n?.searchInput), h = t("div", {
19
+ })(n?.searchInput), I = t("div", {
19
20
  name: e,
20
21
  slot: o.selectAllContainer
21
- })(n?.selectAllContainer), b = t(l, {
22
+ })(n?.selectAllContainer), L = t(l, {
22
23
  name: e,
23
24
  slot: o.selectAllCheckbox
24
- })(n?.selectAllCheckbox), I = t("div", {
25
+ })(n?.selectAllCheckbox), W = t("div", {
25
26
  name: e,
26
27
  slot: o.listContainer
27
- })(n?.listContainer), L = t("div", {
28
+ })(n?.listContainer), f = t("div", {
28
29
  name: e,
29
30
  slot: o.virtualizedList
30
- })(n?.virtualizedList), W = t("div", {
31
+ })(n?.virtualizedList), k = t("div", {
31
32
  name: e,
32
33
  slot: o.virtualContainer
33
- })(n?.virtualContainer), f = t("div", {
34
+ })(n?.virtualContainer), x = t("div", {
34
35
  name: e,
35
36
  slot: o.virtualRow
36
- })(n?.virtualRow), k = t("div", {
37
+ })(n?.virtualRow), T = t("div", {
37
38
  name: e,
38
39
  slot: o.itemWrapper
39
- })(n?.itemWrapper), x = t(l, {
40
+ })(n?.itemWrapper), R = t(l, {
40
41
  name: e,
41
42
  slot: o.itemCheckbox
42
- })(n?.itemCheckbox), T = t("div", {
43
+ })(n?.itemCheckbox), A = t(i, {
44
+ name: e,
45
+ slot: o.itemRadio
46
+ })(n?.itemRadio), G = t("div", {
43
47
  name: e,
44
48
  slot: o.itemContentWrapper
45
- })(n?.itemContentWrapper), A = t(r, {
49
+ })(n?.itemContentWrapper), B = t(r, {
46
50
  name: e,
47
51
  slot: o.itemLabel
48
- })(n?.itemLabel), G = t(r, {
52
+ })(n?.itemLabel), E = t(r, {
49
53
  name: e,
50
54
  slot: o.itemDescription
51
- })(n?.itemDescription), B = t("div", {
55
+ })(n?.itemDescription), H = t("div", {
52
56
  name: e,
53
57
  slot: o.itemIcon
54
- })(n?.itemIcon), E = t("div", {
58
+ })(n?.itemIcon), M = t("div", {
55
59
  name: e,
56
60
  slot: o.groupWrapper
57
- })(n?.groupWrapper), H = t("div", {
61
+ })(n?.groupWrapper), w = t("div", {
58
62
  name: e,
59
63
  slot: o.groupHeader
60
- })(n?.groupHeader), M = t(l, {
64
+ })(n?.groupHeader), z = t(l, {
61
65
  name: e,
62
66
  slot: o.groupCheckbox
63
- })(n?.groupCheckbox), R = t("div", {
67
+ })(n?.groupCheckbox), D = t("div", {
64
68
  name: e,
65
69
  slot: o.groupLabelCountWrapper
66
- })(n?.groupLabelCountWrapper), w = t(r, {
70
+ })(n?.groupLabelCountWrapper), V = t(r, {
67
71
  name: e,
68
72
  slot: o.groupLabel
69
- })(n?.groupLabel), z = t(r, {
73
+ })(n?.groupLabel), _ = t(r, {
70
74
  name: e,
71
75
  slot: o.chipCount
72
- })(n?.chipCount), D = t("div", {
76
+ })(n?.chipCount), K = t("div", {
73
77
  name: e,
74
78
  slot: o.groupIcon
75
- })(n?.groupIcon), V = t(i, {
79
+ })(n?.groupIcon), N = t(s, {
76
80
  name: e,
77
81
  slot: o.groupToggleButton
78
82
  })(n?.groupToggleButton);
@@ -80,37 +84,38 @@ t("div", {
80
84
  name: e,
81
85
  slot: o.groupItems
82
86
  })(n?.groupItems);
83
- const _ = t("div", {
87
+ const O = t("div", {
84
88
  name: e,
85
89
  slot: o.emptyMessageWrapper
86
- })(n?.emptyMessageWrapper), K = t("div", {
90
+ })(n?.emptyMessageWrapper), F = t("div", {
87
91
  name: e,
88
92
  slot: o.loadingContainer
89
93
  })(n?.loadingContainer);
90
94
  export {
91
- z as ChipCountTypografyStyled,
92
- _ as EmptyMessageWrapperStyled,
93
- M as GroupCheckboxStyled,
94
- H as GroupHeaderStyled,
95
- D as GroupIconStyled,
96
- R as GroupLabelCountWrapperStyled,
97
- w as GroupLabelTypografyStyled,
98
- V as GroupToggleButtonStyled,
99
- E as GroupWrapperStyled,
100
- x as ItemCheckboxStyled,
101
- T as ItemContentWrapperStyled,
102
- G as ItemDescriptionTypografyStyled,
103
- B as ItemIconStyled,
104
- A as ItemLabelTypografyStyled,
105
- k as ItemWrapperStyled,
106
- I as ListContainerStyled,
107
- K as LoadingContainerStyled,
108
- g as RootStyled,
109
- S as SearchContainerStyled,
110
- v as SearchInputStyled,
111
- b as SelectAllCheckboxStyled,
112
- h as SelectAllContainerStyled,
113
- W as VirtualContainerStyled,
114
- f as VirtualRowStyled,
115
- L as VirtualizedListStyled
95
+ _ as ChipCountTypografyStyled,
96
+ O as EmptyMessageWrapperStyled,
97
+ z as GroupCheckboxStyled,
98
+ w as GroupHeaderStyled,
99
+ K as GroupIconStyled,
100
+ D as GroupLabelCountWrapperStyled,
101
+ V as GroupLabelTypografyStyled,
102
+ N as GroupToggleButtonStyled,
103
+ M as GroupWrapperStyled,
104
+ R as ItemCheckboxStyled,
105
+ G as ItemContentWrapperStyled,
106
+ E as ItemDescriptionTypografyStyled,
107
+ H as ItemIconStyled,
108
+ B as ItemLabelTypografyStyled,
109
+ A as ItemRadioStyled,
110
+ T as ItemWrapperStyled,
111
+ W as ListContainerStyled,
112
+ F as LoadingContainerStyled,
113
+ v as RootStyled,
114
+ h as SearchContainerStyled,
115
+ b as SearchInputStyled,
116
+ L as SelectAllCheckboxStyled,
117
+ I as SelectAllContainerStyled,
118
+ k as VirtualContainerStyled,
119
+ x as VirtualRowStyled,
120
+ f as VirtualizedListStyled
116
121
  };
@@ -166,6 +166,16 @@ export interface CheckableListProps {
166
166
  * Mostrar botón "Seleccionar todo" (default: false)
167
167
  */
168
168
  selectAll?: boolean;
169
+ /**
170
+ * Texto de la fila "Seleccionar todo".
171
+ * Por defecto usa la etiqueta del diccionario de CheckableList.
172
+ */
173
+ selectAllLabel?: string;
174
+ /**
175
+ * Número mostrado junto a "Seleccionar todo".
176
+ * Por defecto muestra la cantidad de items seleccionados.
177
+ */
178
+ selectAllCount?: number;
169
179
  /**
170
180
  * Hacer los grupos expandibles/colapsables (default: true)
171
181
  */
@@ -182,6 +192,11 @@ export interface CheckableListProps {
182
192
  * Función personalizada de filtrado
183
193
  */
184
194
  filterFn?: (item: CheckableListItem, query: string) => boolean;
195
+ /**
196
+ * Notifica el texto escrito en el buscador, para que el consumidor pueda
197
+ * lanzar además una búsqueda remota.
198
+ */
199
+ onSearchChange?: (query: string) => void;
185
200
  /**
186
201
  * Tamaño del componente
187
202
  */
@@ -190,6 +205,11 @@ export interface CheckableListProps {
190
205
  * Variante del componente
191
206
  */
192
207
  variant?: 'standard' | 'outlined' | 'compact';
208
+ /**
209
+ * Aplica la primera medida del contenedor sin esperar al throttle de 200ms,
210
+ * evitando el hueco en blanco al montar. Por defecto mantiene la espera.
211
+ */
212
+ measureImmediately?: boolean;
193
213
  /**
194
214
  * Altura estimada de cada item para la virtualización.
195
215
  * La altura final la mide TanStack Virtual sobre el DOM real.