@primer/react 38.32.0-rc.57a990042 → 38.32.0-rc.68e0ffa22

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 (37) hide show
  1. package/CHANGELOG.md +0 -10
  2. package/dist/ActionBar/ActionBar.js +424 -130
  3. package/dist/ActionList/{ActionList-1ff5220c.css → ActionList-65f7daac.css} +2 -2
  4. package/dist/ActionList/ActionList-65f7daac.css.map +1 -0
  5. package/dist/ActionList/ActionList.module.css.js +1 -1
  6. package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css → Breadcrumbs-54395fc6.css} +2 -2
  7. package/dist/Breadcrumbs/{Breadcrumbs-16d81430.css.map → Breadcrumbs-54395fc6.css.map} +1 -1
  8. package/dist/Breadcrumbs/Breadcrumbs.js +0 -1
  9. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -2
  10. package/dist/FilteredActionList/FilteredActionList.js +155 -66
  11. package/dist/FilteredActionList/useAnnouncements.js +138 -66
  12. package/dist/LabelGroup/LabelGroup.js +110 -76
  13. package/dist/Overlay/Overlay.js +169 -45
  14. package/dist/PageHeader/PageHeader-5e969745.css +2 -0
  15. package/dist/PageHeader/PageHeader-5e969745.css.map +1 -0
  16. package/dist/PageHeader/PageHeader.js +23 -64
  17. package/dist/PageHeader/PageHeader.module.css.js +1 -1
  18. package/dist/SegmentedControl/SegmentedControl-622e61a4.css +2 -0
  19. package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +1 -0
  20. package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
  21. package/dist/TextInput/TextInput.js +7 -7
  22. package/dist/ToggleSwitch/ToggleSwitch.js +186 -167
  23. package/dist/TreeView/TreeView.js +814 -309
  24. package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css +2 -0
  25. package/dist/experimental/SelectPanel2/{SelectPanel-917fdaef.css.map → SelectPanel-608e207e.css.map} +1 -1
  26. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  27. package/dist/experimental/UnderlinePanels/UnderlinePanels.js +95 -38
  28. package/dist/hooks/useControllableState.js +3 -3
  29. package/dist/hooks/useMedia.js +43 -44
  30. package/dist/internal/components/ValidationAnimationContainer.js +34 -40
  31. package/package.json +1 -3
  32. package/dist/ActionList/ActionList-1ff5220c.css.map +0 -1
  33. package/dist/PageHeader/PageHeader-b12247c8.css +0 -2
  34. package/dist/PageHeader/PageHeader-b12247c8.css.map +0 -1
  35. package/dist/SegmentedControl/SegmentedControl-a004561f.css +0 -2
  36. package/dist/SegmentedControl/SegmentedControl-a004561f.css.map +0 -1
  37. package/dist/experimental/SelectPanel2/SelectPanel-917fdaef.css +0 -2
@@ -1,4 +1,5 @@
1
- import { useCallback, useEffect, useRef } from "react";
1
+ import { c } from "react-compiler-runtime";
2
+ import { useEffect, useRef } from "react";
2
3
  import { announce } from "@primer/live-region-element";
3
4
  //#region src/FilteredActionList/useAnnouncements.tsx
4
5
  const delayMs = 500;
@@ -22,84 +23,155 @@ const getItemWithActiveDescendant = (listRef, items) => {
22
23
  selected: activeItem === null || activeItem === void 0 ? void 0 : activeItem.selected
23
24
  };
24
25
  };
25
- const useAnnouncements = (items, listContainerRef, inputRef, enabled = true, loading = false, message, focusManagement) => {
26
+ const useAnnouncements = (items, listContainerRef, inputRef, t0, t1, message, focusManagement) => {
27
+ const $ = c(33);
28
+ const enabled = t0 === void 0 ? true : t0;
29
+ const loading = t1 === void 0 ? false : t1;
26
30
  const usingRovingTabindex = focusManagement === "roving-tabindex";
27
- const liveRegion = document.querySelector("live-region");
28
- const selectedItems = items.filter((item) => item.selected).length;
29
- const announce$1 = useCallback((...args) => {
30
- if (enabled) return announce(...args);
31
- }, [enabled]);
32
- useEffect(function announceInitialFocus() {
33
- const focusHandler = () => {
31
+ let t2;
32
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
33
+ t2 = document.querySelector("live-region");
34
+ $[0] = t2;
35
+ } else t2 = $[0];
36
+ const liveRegion = t2;
37
+ let t3;
38
+ if ($[1] !== items) {
39
+ t3 = items.filter(_temp);
40
+ $[1] = items;
41
+ $[2] = t3;
42
+ } else t3 = $[2];
43
+ const selectedItems = t3.length;
44
+ let t4;
45
+ if ($[3] !== enabled) {
46
+ t4 = (...t5) => {
47
+ const args = t5;
48
+ if (enabled) return announce(...args);
49
+ };
50
+ $[3] = enabled;
51
+ $[4] = t4;
52
+ } else t4 = $[4];
53
+ const announce$1 = t4;
54
+ let t5;
55
+ let t6;
56
+ if ($[5] !== announce$1 || $[6] !== inputRef || $[7] !== items || $[8] !== listContainerRef || $[9] !== selectedItems || $[10] !== usingRovingTabindex) {
57
+ t5 = function announceInitialFocus() {
58
+ const focusHandler = () => {
59
+ if (usingRovingTabindex) announce$1(`${items.length} item${items.length > 1 ? "s" : ""} available, ${selectedItems} selected.`, {
60
+ delayMs,
61
+ from: liveRegion ? liveRegion : void 0
62
+ });
63
+ else window.requestAnimationFrame(() => {
64
+ const activeItem = getItemWithActiveDescendant(listContainerRef, items);
65
+ if (!activeItem) return;
66
+ const { index, text, selected } = activeItem;
67
+ announce$1([
68
+ "Focus on filter text box and list of items",
69
+ `Focused item: ${text}`,
70
+ `${selected ? "selected" : "not selected"}`,
71
+ `${index + 1} of ${items.length}`
72
+ ].join(", "), {
73
+ delayMs,
74
+ from: liveRegion ? liveRegion : void 0
75
+ });
76
+ });
77
+ };
78
+ const inputElement = inputRef.current;
79
+ inputElement === null || inputElement === void 0 || inputElement.addEventListener("focus", focusHandler);
80
+ return () => inputElement === null || inputElement === void 0 ? void 0 : inputElement.removeEventListener("focus", focusHandler);
81
+ };
82
+ t6 = [
83
+ listContainerRef,
84
+ inputRef,
85
+ items,
86
+ liveRegion,
87
+ announce$1,
88
+ usingRovingTabindex,
89
+ selectedItems
90
+ ];
91
+ $[5] = announce$1;
92
+ $[6] = inputRef;
93
+ $[7] = items;
94
+ $[8] = listContainerRef;
95
+ $[9] = selectedItems;
96
+ $[10] = usingRovingTabindex;
97
+ $[11] = t5;
98
+ $[12] = t6;
99
+ } else {
100
+ t5 = $[11];
101
+ t6 = $[12];
102
+ }
103
+ useEffect(t5, t6);
104
+ const isFirstRender = useFirstRender();
105
+ let t7;
106
+ if ($[13] !== announce$1 || $[14] !== isFirstRender || $[15] !== items || $[16] !== listContainerRef || $[17] !== loading || $[18] !== (message === null || message === void 0 ? void 0 : message.description) || $[19] !== (message === null || message === void 0 ? void 0 : message.title) || $[20] !== selectedItems || $[21] !== usingRovingTabindex) {
107
+ t7 = function announceListUpdates() {
108
+ if (isFirstRender) return;
109
+ liveRegion === null || liveRegion === void 0 || liveRegion.clear();
110
+ if (items.length === 0 && !loading) {
111
+ announce$1(`${message === null || message === void 0 ? void 0 : message.title}. ${message === null || message === void 0 ? void 0 : message.description}`, { delayMs });
112
+ return;
113
+ }
34
114
  if (usingRovingTabindex) announce$1(`${items.length} item${items.length > 1 ? "s" : ""} available, ${selectedItems} selected.`, {
35
115
  delayMs,
36
116
  from: liveRegion ? liveRegion : void 0
37
117
  });
38
118
  else window.requestAnimationFrame(() => {
39
- const activeItem = getItemWithActiveDescendant(listContainerRef, items);
40
- if (!activeItem) return;
41
- const { index, text, selected } = activeItem;
119
+ const activeItem_0 = getItemWithActiveDescendant(listContainerRef, items);
120
+ if (!activeItem_0) return;
121
+ const { index: index_0, text: text_0, selected: selected_0 } = activeItem_0;
42
122
  announce$1([
43
- `Focus on filter text box and list of items`,
44
- `Focused item: ${text}`,
45
- `${selected ? "selected" : "not selected"}`,
46
- `${index + 1} of ${items.length}`
123
+ "List updated",
124
+ `Focused item: ${text_0}`,
125
+ `${selected_0 ? "selected" : "not selected"}`,
126
+ `${index_0 + 1} of ${items.length}`
47
127
  ].join(", "), {
48
128
  delayMs,
49
129
  from: liveRegion ? liveRegion : void 0
50
130
  });
51
131
  });
52
132
  };
53
- const inputElement = inputRef.current;
54
- inputElement === null || inputElement === void 0 || inputElement.addEventListener("focus", focusHandler);
55
- return () => inputElement === null || inputElement === void 0 ? void 0 : inputElement.removeEventListener("focus", focusHandler);
56
- }, [
57
- listContainerRef,
58
- inputRef,
59
- items,
60
- liveRegion,
61
- announce$1,
62
- usingRovingTabindex,
63
- selectedItems
64
- ]);
65
- const isFirstRender = useFirstRender();
66
- useEffect(function announceListUpdates() {
67
- if (isFirstRender) return;
68
- liveRegion === null || liveRegion === void 0 || liveRegion.clear();
69
- if (items.length === 0 && !loading) {
70
- announce$1(`${message === null || message === void 0 ? void 0 : message.title}. ${message === null || message === void 0 ? void 0 : message.description}`, { delayMs });
71
- return;
72
- }
73
- if (usingRovingTabindex) announce$1(`${items.length} item${items.length > 1 ? "s" : ""} available, ${selectedItems} selected.`, {
74
- delayMs,
75
- from: liveRegion ? liveRegion : void 0
76
- });
77
- else window.requestAnimationFrame(() => {
78
- const activeItem = getItemWithActiveDescendant(listContainerRef, items);
79
- if (!activeItem) return;
80
- const { index, text, selected } = activeItem;
81
- announce$1([
82
- `List updated`,
83
- `Focused item: ${text}`,
84
- `${selected ? "selected" : "not selected"}`,
85
- `${index + 1} of ${items.length}`
86
- ].join(", "), {
87
- delayMs,
88
- from: liveRegion ? liveRegion : void 0
89
- });
90
- });
91
- }, [
92
- announce$1,
93
- isFirstRender,
94
- items,
95
- listContainerRef,
96
- liveRegion,
97
- usingRovingTabindex,
98
- message === null || message === void 0 ? void 0 : message.title,
99
- message === null || message === void 0 ? void 0 : message.description,
100
- loading,
101
- selectedItems
102
- ]);
133
+ $[13] = announce$1;
134
+ $[14] = isFirstRender;
135
+ $[15] = items;
136
+ $[16] = listContainerRef;
137
+ $[17] = loading;
138
+ $[18] = message === null || message === void 0 ? void 0 : message.description;
139
+ $[19] = message === null || message === void 0 ? void 0 : message.title;
140
+ $[20] = selectedItems;
141
+ $[21] = usingRovingTabindex;
142
+ $[22] = t7;
143
+ } else t7 = $[22];
144
+ const t8 = message === null || message === void 0 ? void 0 : message.title;
145
+ const t9 = message === null || message === void 0 ? void 0 : message.description;
146
+ let t10;
147
+ if ($[23] !== announce$1 || $[24] !== isFirstRender || $[25] !== items || $[26] !== listContainerRef || $[27] !== loading || $[28] !== selectedItems || $[29] !== t8 || $[30] !== t9 || $[31] !== usingRovingTabindex) {
148
+ t10 = [
149
+ announce$1,
150
+ isFirstRender,
151
+ items,
152
+ listContainerRef,
153
+ liveRegion,
154
+ usingRovingTabindex,
155
+ t8,
156
+ t9,
157
+ loading,
158
+ selectedItems
159
+ ];
160
+ $[23] = announce$1;
161
+ $[24] = isFirstRender;
162
+ $[25] = items;
163
+ $[26] = listContainerRef;
164
+ $[27] = loading;
165
+ $[28] = selectedItems;
166
+ $[29] = t8;
167
+ $[30] = t9;
168
+ $[31] = usingRovingTabindex;
169
+ $[32] = t10;
170
+ } else t10 = $[32];
171
+ useEffect(t7, t10);
103
172
  };
173
+ function _temp(item) {
174
+ return item.selected;
175
+ }
104
176
  //#endregion
105
177
  export { useAnnouncements };
@@ -3,6 +3,7 @@ import { IconButton } from "../Button/IconButton.js";
3
3
  import { ButtonComponent } from "../Button/Button.js";
4
4
  import { AnchoredOverlay } from "../AnchoredOverlay/AnchoredOverlay.js";
5
5
  import LabelGroup_module_css_default from "./LabelGroup.module.css.js";
6
+ import { c } from "react-compiler-runtime";
6
7
  import { clsx } from "clsx";
7
8
  import { jsx, jsxs } from "react/jsx-runtime";
8
9
  import React from "react";
@@ -13,75 +14,108 @@ const getOverlayWidth = (buttonClientRect, containerRef, overlayPaddingPx) => {
13
14
  var _containerRef$current;
14
15
  return overlayPaddingPx + buttonClientRect.right - (((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().left) || 0);
15
16
  };
16
- const InlineToggle = ({ collapseButtonRef, collapseInlineExpandedChildren, expandButtonRef, hiddenItemIds, isOverflowShown, showAllTokensInline }) => isOverflowShown ? /*#__PURE__*/ jsx(ButtonComponent, {
17
- ref: collapseButtonRef,
18
- onClick: collapseInlineExpandedChildren,
19
- size: "small",
20
- variant: "invisible",
21
- children: "Show less"
22
- }) : hiddenItemIds.length ? /*#__PURE__*/ jsxs(ButtonComponent, {
23
- ref: expandButtonRef,
24
- variant: "invisible",
25
- size: "small",
26
- onClick: showAllTokensInline,
27
- children: [/*#__PURE__*/ jsxs(VisuallyHidden, { children: [
28
- "Show +",
29
- hiddenItemIds.length,
30
- " more"
31
- ] }), /*#__PURE__*/ jsxs("span", {
32
- "aria-hidden": "true",
33
- children: ["+", hiddenItemIds.length]
34
- })]
35
- }) : null;
36
- const OverlayToggle = ({ children, closeOverflowOverlay, expandButtonRef, hiddenItemIds, isOverflowShown, openOverflowOverlay, overlayPaddingPx, overlayWidth, totalLength }) => hiddenItemIds.length ? /*#__PURE__*/ jsx(AnchoredOverlay, {
37
- open: isOverflowShown,
38
- onOpen: openOverflowOverlay,
39
- onClose: closeOverflowOverlay,
40
- width: "auto",
41
- height: "auto",
42
- align: "start",
43
- side: "inside-right",
44
- anchorRef: expandButtonRef,
45
- anchorOffset: overlayPaddingPx * -1,
46
- alignmentOffset: overlayPaddingPx * -1,
47
- renderAnchor: (props) => /*#__PURE__*/ jsxs(ButtonComponent, {
48
- variant: "invisible",
49
- size: "small",
50
- ...props,
51
- ref: expandButtonRef,
52
- children: [/*#__PURE__*/ jsxs(VisuallyHidden, { children: [
53
- "Show +",
54
- hiddenItemIds.length,
55
- " more"
56
- ] }), /*#__PURE__*/ jsxs("span", {
57
- "aria-hidden": "true",
58
- children: ["+", hiddenItemIds.length]
59
- })]
60
- }),
61
- focusZoneSettings: { disabled: true },
62
- overlayProps: {
63
- role: "dialog",
64
- "aria-label": `All ${totalLength} labels`,
65
- "aria-modal": true
66
- },
67
- children: /*#__PURE__*/ jsxs("div", {
68
- className: LabelGroup_module_css_default.OverlayContainer,
69
- style: {
70
- width: overlayWidth,
71
- padding: `${overlayPaddingPx}px`
72
- },
73
- children: [/*#__PURE__*/ jsx("div", {
74
- className: LabelGroup_module_css_default.OverlayInner,
75
- children
76
- }), /*#__PURE__*/ jsx(IconButton, {
77
- onClick: closeOverflowOverlay,
78
- icon: XIcon,
79
- "aria-label": "Close",
17
+ const InlineToggle = (t0) => {
18
+ const $ = c(7);
19
+ const { collapseButtonRef, collapseInlineExpandedChildren, expandButtonRef, hiddenItemIds, isOverflowShown, showAllTokensInline } = t0;
20
+ let t1;
21
+ if ($[0] !== collapseButtonRef || $[1] !== collapseInlineExpandedChildren || $[2] !== expandButtonRef || $[3] !== hiddenItemIds || $[4] !== isOverflowShown || $[5] !== showAllTokensInline) {
22
+ t1 = isOverflowShown ? /*#__PURE__*/ jsx(ButtonComponent, {
23
+ ref: collapseButtonRef,
24
+ onClick: collapseInlineExpandedChildren,
25
+ size: "small",
80
26
  variant: "invisible",
81
- className: LabelGroup_module_css_default.CloseButton
82
- })]
83
- })
84
- }) : null;
27
+ children: "Show less"
28
+ }) : hiddenItemIds.length ? /*#__PURE__*/ jsxs(ButtonComponent, {
29
+ ref: expandButtonRef,
30
+ variant: "invisible",
31
+ size: "small",
32
+ onClick: showAllTokensInline,
33
+ children: [/*#__PURE__*/ jsxs(VisuallyHidden, { children: [
34
+ "Show +",
35
+ hiddenItemIds.length,
36
+ " more"
37
+ ] }), /*#__PURE__*/ jsxs("span", {
38
+ "aria-hidden": "true",
39
+ children: ["+", hiddenItemIds.length]
40
+ })]
41
+ }) : null;
42
+ $[0] = collapseButtonRef;
43
+ $[1] = collapseInlineExpandedChildren;
44
+ $[2] = expandButtonRef;
45
+ $[3] = hiddenItemIds;
46
+ $[4] = isOverflowShown;
47
+ $[5] = showAllTokensInline;
48
+ $[6] = t1;
49
+ } else t1 = $[6];
50
+ return t1;
51
+ };
52
+ const OverlayToggle = (t0) => {
53
+ const $ = c(10);
54
+ const { children, closeOverflowOverlay, expandButtonRef, hiddenItemIds, isOverflowShown, openOverflowOverlay, overlayPaddingPx, overlayWidth, totalLength } = t0;
55
+ let t1;
56
+ if ($[0] !== children || $[1] !== closeOverflowOverlay || $[2] !== expandButtonRef || $[3] !== hiddenItemIds.length || $[4] !== isOverflowShown || $[5] !== openOverflowOverlay || $[6] !== overlayPaddingPx || $[7] !== overlayWidth || $[8] !== totalLength) {
57
+ t1 = hiddenItemIds.length ? /*#__PURE__*/ jsx(AnchoredOverlay, {
58
+ open: isOverflowShown,
59
+ onOpen: openOverflowOverlay,
60
+ onClose: closeOverflowOverlay,
61
+ width: "auto",
62
+ height: "auto",
63
+ align: "start",
64
+ side: "inside-right",
65
+ anchorRef: expandButtonRef,
66
+ anchorOffset: overlayPaddingPx * -1,
67
+ alignmentOffset: overlayPaddingPx * -1,
68
+ renderAnchor: (props) => /*#__PURE__*/ jsxs(ButtonComponent, {
69
+ variant: "invisible",
70
+ size: "small",
71
+ ...props,
72
+ ref: expandButtonRef,
73
+ children: [/*#__PURE__*/ jsxs(VisuallyHidden, { children: [
74
+ "Show +",
75
+ hiddenItemIds.length,
76
+ " more"
77
+ ] }), /*#__PURE__*/ jsxs("span", {
78
+ "aria-hidden": "true",
79
+ children: ["+", hiddenItemIds.length]
80
+ })]
81
+ }),
82
+ focusZoneSettings: { disabled: true },
83
+ overlayProps: {
84
+ role: "dialog",
85
+ "aria-label": `All ${totalLength} labels`,
86
+ "aria-modal": true
87
+ },
88
+ children: /*#__PURE__*/ jsxs("div", {
89
+ className: LabelGroup_module_css_default.OverlayContainer,
90
+ style: {
91
+ width: overlayWidth,
92
+ padding: `${overlayPaddingPx}px`
93
+ },
94
+ children: [/*#__PURE__*/ jsx("div", {
95
+ className: LabelGroup_module_css_default.OverlayInner,
96
+ children
97
+ }), /*#__PURE__*/ jsx(IconButton, {
98
+ onClick: closeOverflowOverlay,
99
+ icon: XIcon,
100
+ "aria-label": "Close",
101
+ variant: "invisible",
102
+ className: LabelGroup_module_css_default.CloseButton
103
+ })]
104
+ })
105
+ }) : null;
106
+ $[0] = children;
107
+ $[1] = closeOverflowOverlay;
108
+ $[2] = expandButtonRef;
109
+ $[3] = hiddenItemIds.length;
110
+ $[4] = isOverflowShown;
111
+ $[5] = openOverflowOverlay;
112
+ $[6] = overlayPaddingPx;
113
+ $[7] = overlayWidth;
114
+ $[8] = totalLength;
115
+ $[9] = t1;
116
+ } else t1 = $[9];
117
+ return t1;
118
+ };
85
119
  const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as: Component = "ul", className }) => {
86
120
  const containerRef = React.useRef(null);
87
121
  const collapseButtonRef = React.useRef(null);
@@ -143,14 +177,14 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
143
177
  if (!visibleChildCount || isOverflowShown) return;
144
178
  if (visibleChildCount === "auto") {
145
179
  const observer = new IntersectionObserver((entries) => {
146
- const updatedEntries = {};
180
+ const updatedEntries_0 = {};
147
181
  for (const entry of entries) {
148
- const targetId = entry.target.getAttribute("data-index");
149
- if (targetId) updatedEntries[targetId] = entry.isIntersecting;
182
+ const targetId_0 = entry.target.getAttribute("data-index");
183
+ if (targetId_0) updatedEntries_0[targetId_0] = entry.isIntersecting;
150
184
  }
151
185
  setVisibilityMap((prev) => ({
152
186
  ...prev,
153
- ...updatedEntries
187
+ ...updatedEntries_0
154
188
  }));
155
189
  }, {
156
190
  root: containerRef.current,
@@ -196,10 +230,10 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
196
230
  "data-list": isList || void 0,
197
231
  className: clsx(className, LabelGroup_module_css_default.Container),
198
232
  "data-component": "LabelGroup",
199
- children: [React.Children.map(children, (child, index) => /*#__PURE__*/ jsx(ItemWrapperComponent, {
233
+ children: [React.Children.map(children, (child_0, index) => /*#__PURE__*/ jsx(ItemWrapperComponent, {
200
234
  "data-index": index,
201
235
  className: clsx(LabelGroup_module_css_default.ItemWrapper, { [LabelGroup_module_css_default["ItemWrapper--hidden"]]: hiddenItemIds.includes(index.toString()) }),
202
- children: child
236
+ children: child_0
203
237
  }, index)), /*#__PURE__*/ jsx(ToggleWrapper, {
204
238
  "data-component": "LabelGroup.Toggle",
205
239
  children: overflowStyle === "inline" ? /*#__PURE__*/ jsx(InlineToggle, {
@@ -227,8 +261,8 @@ const LabelGroup = ({ children, visibleChildCount, overflowStyle = "overlay", as
227
261
  "data-list": isList || void 0,
228
262
  className: clsx(className, LabelGroup_module_css_default.Container),
229
263
  "data-component": "LabelGroup",
230
- children: isList ? React.Children.map(children, (child, index) => {
231
- return /*#__PURE__*/ jsx("li", { children: child }, index);
264
+ children: isList ? React.Children.map(children, (child_1, index_0) => {
265
+ return /*#__PURE__*/ jsx("li", { children: child_1 }, index_0);
232
266
  }) : children
233
267
  });
234
268
  };