@primer/react 38.40.2-rc.fdfbe71e5 → 38.41.0-rc.61d283273
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.
- package/CHANGELOG.md +11 -1
- package/dist/ActionBar/ActionBar.js +30 -33
- package/dist/ActionList/{ActionList-1ff5220c.css → ActionList-64885d7a.css} +2 -2
- package/dist/ActionList/ActionList-64885d7a.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/ActionList/Description.js +2 -2
- package/dist/ActionList/Divider.js +1 -1
- package/dist/ActionList/Group.js +12 -12
- package/dist/ActionList/GroupHeadingTrailingAction.js +1 -10
- package/dist/ActionList/Heading.js +1 -1
- package/dist/ActionList/Item.js +19 -19
- package/dist/ActionList/LinkItem.js +4 -4
- package/dist/ActionList/List.js +2 -2
- package/dist/ActionList/Selection.js +6 -6
- package/dist/ActionList/TrailingAction.js +3 -3
- package/dist/ActionList/Visuals.js +9 -9
- package/dist/ActionList/index.d.ts +1 -1
- package/dist/ActionList/shared.d.ts +1 -1
- package/dist/ActionMenu/ActionMenu.js +8 -11
- package/dist/AnchoredOverlay/AnchoredOverlay.js +4 -4
- package/dist/Autocomplete/Autocomplete.js +3 -3
- package/dist/Autocomplete/AutocompleteInput.js +1 -1
- package/dist/Autocomplete/AutocompleteMenu.js +111 -106
- package/dist/Autocomplete/AutocompleteOverlay.js +2 -2
- package/dist/Avatar/Avatar.js +1 -1
- package/dist/AvatarStack/AvatarStack.js +3 -3
- package/dist/Banner/Banner.js +21 -21
- package/dist/BaseStyles.js +1 -1
- package/dist/Blankslate/Blankslate.js +10 -11
- package/dist/BranchName/BranchName.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +20 -29
- package/dist/Button/Button.js +1 -1
- package/dist/Button/ButtonBase-c8dab214.css +2 -0
- package/dist/Button/ButtonBase-c8dab214.css.map +1 -0
- package/dist/Button/ButtonBase.js +12 -9
- package/dist/Button/ButtonBase.module.css.js +1 -1
- package/dist/Button/IconButton.js +3 -3
- package/dist/Button/LinkButton.js +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +2 -3
- package/dist/Card/Card.js +16 -16
- package/dist/Checkbox/Checkbox.js +1 -1
- package/dist/CheckboxGroup/CheckboxGroup.js +2 -2
- package/dist/CircleBadge/CircleBadge.js +2 -2
- package/dist/ConfirmationDialog/ConfirmationDialog.js +1 -5
- package/dist/CounterLabel/CounterLabel.js +2 -2
- package/dist/DataTable/DataTable.js +7 -8
- package/dist/DataTable/ErrorDialog.js +1 -1
- package/dist/DataTable/Pagination.js +23 -23
- package/dist/DataTable/Table.js +25 -27
- package/dist/DataTable/TableGroup.js +10 -10
- package/dist/Details/Details.js +2 -2
- package/dist/Dialog/Dialog.js +20 -23
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/FeatureFlags/FeatureFlags.js +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +18 -19
- package/dist/FilteredActionList/FilteredActionListInput.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders.js +10 -11
- package/dist/Flash/Flash.js +1 -4
- package/dist/FormControl/FormControl.js +8 -8
- package/dist/FormControl/FormControlCaption.js +1 -1
- package/dist/FormControl/FormControlLabel.js +1 -1
- package/dist/FormControl/FormControlLeadingVisual.js +1 -1
- package/dist/FormControl/_FormControlValidation.js +1 -1
- package/dist/Header/Header.js +3 -3
- package/dist/Heading/Heading.js +1 -1
- package/dist/Hidden/Hidden.js +1 -1
- package/dist/InlineMessage/InlineMessage.js +11 -11
- package/dist/KeybindingHint/KeybindingHint.js +3 -3
- package/dist/KeybindingHint/components/Chord.js +3 -3
- package/dist/KeybindingHint/components/Key.js +3 -3
- package/dist/KeybindingHint/components/Sequence.js +1 -1
- package/dist/KeybindingHint/platform.js +0 -8
- package/dist/Label/Label.js +1 -1
- package/dist/LabelGroup/LabelGroup.js +18 -18
- package/dist/Link/Link.js +1 -1
- package/dist/NavList/NavList.js +24 -24
- package/dist/Octicon/Octicon.js +1 -4
- package/dist/Overlay/Overlay.js +3 -3
- package/dist/PageHeader/PageHeader.js +21 -21
- package/dist/PageLayout/DragHandle.js +1 -1
- package/dist/PageLayout/PageLayout.js +26 -26
- package/dist/PageLayout/usePaneWidth.js +0 -5
- package/dist/Pagehead/Pagehead.js +1 -1
- package/dist/Pagination/Pagination.js +9 -10
- package/dist/Popover/Popover.js +3 -3
- package/dist/ProgressBar/ProgressBar.js +3 -3
- package/dist/Radio/Radio.js +1 -1
- package/dist/RadioGroup/RadioGroup.js +2 -2
- package/dist/RelativeTime/RelativeTime.js +1 -1
- package/dist/ScrollableRegion/ScrollableRegion.js +1 -1
- package/dist/SegmentedControl/SegmentedControl.js +13 -13
- package/dist/SegmentedControl/SegmentedControlAction.js +6 -6
- package/dist/SegmentedControl/SegmentedControlButton.js +8 -8
- package/dist/SegmentedControl/SegmentedControlDivider.js +1 -1
- package/dist/SegmentedControl/SegmentedControlIconButton.js +5 -5
- package/dist/Select/Select.js +9 -9
- package/dist/SelectPanel/SelectPanel.js +24 -27
- package/dist/SelectPanel/SelectPanelMessage.js +5 -5
- package/dist/SideNav.js +2 -2
- package/dist/Skeleton/SkeletonBox.js +1 -1
- package/dist/SkeletonAvatar/SkeletonAvatar.js +1 -1
- package/dist/SkeletonText/SkeletonText.js +3 -3
- package/dist/Spinner/Spinner.js +5 -5
- package/dist/SplitPageLayout/SplitPageLayout.js +6 -6
- package/dist/Stack/Stack.js +2 -2
- package/dist/StateLabel/StateLabel.js +2 -2
- package/dist/SubNav/SubNav.js +5 -5
- package/dist/TabNav/TabNav.js +4 -10
- package/dist/Text/Text.js +1 -1
- package/dist/TextInput/TextInput.js +13 -13
- package/dist/TextInputWithTokens/TextInputWithTokens.js +12 -15
- package/dist/Textarea/Textarea.js +7 -7
- package/dist/ThemeProvider.js +1 -2
- package/dist/Timeline/Timeline.js +11 -14
- package/dist/ToggleSwitch/ToggleSwitch.js +18 -18
- package/dist/Token/IssueLabelToken.js +3 -3
- package/dist/Token/Token.js +7 -7
- package/dist/Token/TokenBase.js +1 -1
- package/dist/Token/_RemoveTokenButton.js +4 -5
- package/dist/Token/_TokenTextContainer.js +1 -1
- package/dist/Tooltip/Tooltip.js +2 -5
- package/dist/TooltipV2/Tooltip.js +7 -7
- package/dist/TopicTag/TopicTag.js +1 -1
- package/dist/TopicTag/TopicTagGroup.js +1 -1
- package/dist/TreeView/TreeView.js +52 -59
- package/dist/TreeView/useRovingTabIndex.js +1 -0
- package/dist/TreeView/useTypeahead.js +3 -3
- package/dist/Truncate/Truncate.js +1 -2
- package/dist/UnderlineNav/UnderlineNav.js +18 -18
- package/dist/UnderlineNav/UnderlineNavItem.js +2 -2
- package/dist/VisuallyHidden/VisuallyHidden.js +1 -1
- package/dist/_VisuallyHidden.js +1 -1
- package/dist/deprecated/ActionList/Divider.js +1 -1
- package/dist/deprecated/ActionList/Group.js +2 -5
- package/dist/deprecated/ActionList/Header.js +2 -5
- package/dist/deprecated/ActionList/Item.js +17 -20
- package/dist/deprecated/ActionList/List.js +4 -13
- package/dist/deprecated/ActionMenu.js +4 -6
- package/dist/deprecated/DialogV1/Dialog.js +5 -5
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +1 -1
- package/dist/deprecated/UnderlineNav/UnderlineNav.js +4 -4
- package/dist/experimental/IssueLabel/IssueLabel.js +4 -4
- package/dist/experimental/SelectPanel2/SelectPanel.js +42 -49
- package/dist/experimental/Tabs/Tabs.js +1 -1
- package/dist/experimental/UnderlinePanels/UnderlinePanels.js +6 -9
- package/dist/experimental/index.js +1 -1
- package/dist/hooks/useMergedRefs.js +0 -12
- package/dist/hooks/useResponsiveValue.js +0 -5
- package/dist/hooks/useSlots.js +0 -48
- package/dist/internal/components/ButtonReset.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +9 -9
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupCaption.js +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel.js +4 -4
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation.js +1 -1
- package/dist/internal/components/ConditionalWrapper.js +2 -2
- package/dist/internal/components/InputLabel.js +3 -3
- package/dist/internal/components/InputValidation.js +4 -4
- package/dist/internal/components/OverflowObserverProvider.js +1 -1
- package/dist/internal/components/TextInputInnerAction.js +6 -6
- package/dist/internal/components/TextInputInnerVisualSlot.js +5 -5
- package/dist/internal/components/TextInputWrapper.js +2 -2
- package/dist/internal/components/ThemeProviderBase.js +3 -3
- package/dist/internal/components/UnderlineTabbedInterface.js +11 -11
- package/dist/internal/components/UnstyledTextInput.js +1 -1
- package/dist/internal/components/ValidationAnimationContainer.js +2 -2
- package/dist/internal/hooks/useOverflowObserver.js +1 -2
- package/dist/live-region/Announce.js +1 -1
- package/dist/live-region/AriaAlert.js +1 -1
- package/dist/live-region/AriaStatus.js +1 -1
- package/dist/next/ThemeProvider.js +1 -1
- package/dist/utils/descendant-registry.js +1 -7
- package/dist/utils/modern-polymorphic.js +0 -10
- package/generated/components.json +13 -3
- package/generated/hooks.json +1 -1
- package/package.json +3 -3
- package/dist/ActionList/ActionList-1ff5220c.css.map +0 -1
- package/dist/Button/ButtonBase-014fae23.css +0 -2
- package/dist/Button/ButtonBase-014fae23.css.map +0 -1
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -43,36 +43,34 @@ const DefaultHeader = ({ dialogLabelId, title, subtitle, dialogDescriptionId, on
|
|
|
43
43
|
onClose("escape");
|
|
44
44
|
}
|
|
45
45
|
}, [onClose]);
|
|
46
|
-
return
|
|
46
|
+
return /* @__PURE__ */ jsx(Dialog.Header, { children: /* @__PURE__ */ jsxs("div", {
|
|
47
47
|
className: Dialog_module_css_default.HeaderInner,
|
|
48
|
-
children: [
|
|
48
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
49
49
|
className: Dialog_module_css_default.HeaderContent,
|
|
50
|
-
children: [
|
|
50
|
+
children: [/* @__PURE__ */ jsx(Dialog.Title, {
|
|
51
51
|
id: dialogLabelId,
|
|
52
52
|
children: title !== null && title !== void 0 ? title : "Dialog"
|
|
53
|
-
}), subtitle &&
|
|
53
|
+
}), subtitle && /* @__PURE__ */ jsx(Dialog.Subtitle, {
|
|
54
54
|
id: dialogDescriptionId,
|
|
55
55
|
children: subtitle
|
|
56
56
|
})]
|
|
57
|
-
}),
|
|
57
|
+
}), /* @__PURE__ */ jsx(Dialog.CloseButton, {
|
|
58
58
|
onClose: onCloseClick,
|
|
59
59
|
onKeyDown: onCloseKeyDown
|
|
60
60
|
})]
|
|
61
61
|
}) });
|
|
62
62
|
};
|
|
63
|
-
DefaultHeader.displayName = "DefaultHeader";
|
|
64
63
|
const DefaultBody = ({ children }) => {
|
|
65
|
-
return
|
|
64
|
+
return /* @__PURE__ */ jsx(Dialog.Body, { children });
|
|
66
65
|
};
|
|
67
|
-
DefaultBody.displayName = "DefaultBody";
|
|
68
66
|
const DefaultFooter = ({ footerButtons }) => {
|
|
69
67
|
const { containerRef: footerRef } = useFocusZone({
|
|
70
68
|
bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.Tab,
|
|
71
69
|
focusInStrategy: "closest"
|
|
72
70
|
});
|
|
73
|
-
return footerButtons ?
|
|
71
|
+
return footerButtons ? /* @__PURE__ */ jsx(Dialog.Footer, {
|
|
74
72
|
ref: footerRef,
|
|
75
|
-
children:
|
|
73
|
+
children: /* @__PURE__ */ jsx(Dialog.Buttons, { buttons: footerButtons })
|
|
76
74
|
}) : null;
|
|
77
75
|
};
|
|
78
76
|
const defaultPosition = {
|
|
@@ -156,9 +154,9 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
156
154
|
return [`data-position-${key}`, value];
|
|
157
155
|
}));
|
|
158
156
|
const dataComponent = dataComponentProp !== null && dataComponentProp !== void 0 ? dataComponentProp : "Dialog";
|
|
159
|
-
return
|
|
157
|
+
return /* @__PURE__ */ jsx(DialogContext.Provider, {
|
|
160
158
|
value: DIALOG_CONTEXT_VALUE,
|
|
161
|
-
children:
|
|
159
|
+
children: /* @__PURE__ */ jsx(Portal_default, { children: /* @__PURE__ */ jsx("div", {
|
|
162
160
|
ref: backdropRef,
|
|
163
161
|
className: Dialog_module_css_default.Backdrop,
|
|
164
162
|
...positionDataAttributes,
|
|
@@ -167,7 +165,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
167
165
|
onMouseDown: (e) => {
|
|
168
166
|
setLastMouseDownIsBackdrop(e.target === e.currentTarget);
|
|
169
167
|
},
|
|
170
|
-
children:
|
|
168
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
171
169
|
ref: mergedDialogRef,
|
|
172
170
|
role,
|
|
173
171
|
"aria-labelledby": dialogLabelId,
|
|
@@ -187,7 +185,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
187
185
|
"data-component": dataComponent,
|
|
188
186
|
children: [
|
|
189
187
|
header,
|
|
190
|
-
|
|
188
|
+
/* @__PURE__ */ jsx(ScrollableRegion, {
|
|
191
189
|
"aria-labelledby": dialogLabelId,
|
|
192
190
|
className: Dialog_module_css_default.DialogOverflowWrapper,
|
|
193
191
|
children: body
|
|
@@ -200,7 +198,7 @@ const _Dialog = /*#__PURE__*/ React.forwardRef((props, forwardedRef) => {
|
|
|
200
198
|
});
|
|
201
199
|
_Dialog.displayName = "Dialog";
|
|
202
200
|
const Header = /*#__PURE__*/ React.forwardRef(function Header({ className, ...rest }, forwardRef) {
|
|
203
|
-
return
|
|
201
|
+
return /* @__PURE__ */ jsx("div", {
|
|
204
202
|
ref: forwardRef,
|
|
205
203
|
className: clsx(className, Dialog_module_css_default.Header),
|
|
206
204
|
...rest,
|
|
@@ -209,7 +207,7 @@ const Header = /*#__PURE__*/ React.forwardRef(function Header({ className, ...re
|
|
|
209
207
|
});
|
|
210
208
|
Header.displayName = "Dialog.Header";
|
|
211
209
|
const Title = /*#__PURE__*/ React.forwardRef(function Title({ className, ...rest }, forwardRef) {
|
|
212
|
-
return
|
|
210
|
+
return /* @__PURE__ */ jsx("h1", {
|
|
213
211
|
ref: forwardRef,
|
|
214
212
|
className: clsx(className, Dialog_module_css_default.Title),
|
|
215
213
|
...rest,
|
|
@@ -218,7 +216,7 @@ const Title = /*#__PURE__*/ React.forwardRef(function Title({ className, ...rest
|
|
|
218
216
|
});
|
|
219
217
|
Title.displayName = "Dialog.Title";
|
|
220
218
|
const Subtitle = /*#__PURE__*/ React.forwardRef(function Subtitle({ className, ...rest }, forwardRef) {
|
|
221
|
-
return
|
|
219
|
+
return /* @__PURE__ */ jsx("h2", {
|
|
222
220
|
ref: forwardRef,
|
|
223
221
|
className: clsx(className, Dialog_module_css_default.Subtitle),
|
|
224
222
|
...rest,
|
|
@@ -227,7 +225,7 @@ const Subtitle = /*#__PURE__*/ React.forwardRef(function Subtitle({ className, .
|
|
|
227
225
|
});
|
|
228
226
|
Subtitle.displayName = "Dialog.Subtitle";
|
|
229
227
|
const Body = /*#__PURE__*/ React.forwardRef(function Body({ className, ...rest }, forwardRef) {
|
|
230
|
-
return
|
|
228
|
+
return /* @__PURE__ */ jsx("div", {
|
|
231
229
|
ref: forwardRef,
|
|
232
230
|
className: clsx(className, Dialog_module_css_default.Body),
|
|
233
231
|
...rest,
|
|
@@ -236,7 +234,7 @@ const Body = /*#__PURE__*/ React.forwardRef(function Body({ className, ...rest }
|
|
|
236
234
|
});
|
|
237
235
|
Body.displayName = "Dialog.Body";
|
|
238
236
|
const Footer = /*#__PURE__*/ React.forwardRef(function Footer({ className, ...rest }, forwardRef) {
|
|
239
|
-
return
|
|
237
|
+
return /* @__PURE__ */ jsx("div", {
|
|
240
238
|
ref: forwardRef,
|
|
241
239
|
className: clsx(className, Dialog_module_css_default.Footer),
|
|
242
240
|
...rest,
|
|
@@ -261,9 +259,9 @@ const Buttons = ({ buttons }) => {
|
|
|
261
259
|
(_readRef$current = readRef.current) === null || _readRef$current === void 0 || _readRef$current.focus();
|
|
262
260
|
} else setHasRendered(hasRendered + 1);
|
|
263
261
|
}, [readRef, hasRendered]);
|
|
264
|
-
return
|
|
262
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: buttons.map((dialogButtonProps, index) => {
|
|
265
263
|
const { content, buttonType = "default", autoFocus = false, ...buttonProps } = dialogButtonProps;
|
|
266
|
-
return
|
|
264
|
+
return /* @__PURE__ */ jsx(ButtonComponent, {
|
|
267
265
|
"data-component": "Dialog.FooterButton",
|
|
268
266
|
...buttonProps,
|
|
269
267
|
variant: buttonType === "normal" ? "default" : buttonType,
|
|
@@ -273,7 +271,7 @@ const Buttons = ({ buttons }) => {
|
|
|
273
271
|
}) });
|
|
274
272
|
};
|
|
275
273
|
const CloseButton = ({ onClose, onKeyDown }) => {
|
|
276
|
-
return
|
|
274
|
+
return /* @__PURE__ */ jsx(IconButton, {
|
|
277
275
|
icon: XIcon,
|
|
278
276
|
"aria-label": "Close",
|
|
279
277
|
onClick: onClose,
|
|
@@ -282,7 +280,6 @@ const CloseButton = ({ onClose, onKeyDown }) => {
|
|
|
282
280
|
"data-component": "Dialog.CloseButton"
|
|
283
281
|
});
|
|
284
282
|
};
|
|
285
|
-
CloseButton.displayName = "CloseButton";
|
|
286
283
|
/**
|
|
287
284
|
* A dialog is a type of overlay that can be used for confirming actions, asking
|
|
288
285
|
* for disambiguation, and presenting small forms. They generally allow the user
|
|
@@ -8,7 +8,8 @@ const DefaultFeatureFlags = FeatureFlagScope.create({
|
|
|
8
8
|
primer_react_action_list_group_heading_trailing_action: false,
|
|
9
9
|
primer_react_action_list_item_gap: false,
|
|
10
10
|
primer_react_timeline_list_semantics: false,
|
|
11
|
-
primer_react_merged_forwarded_refs: false
|
|
11
|
+
primer_react_merged_forwarded_refs: false,
|
|
12
|
+
primer_react_button_loading_disabled_styles: false
|
|
12
13
|
});
|
|
13
14
|
//#endregion
|
|
14
15
|
export { DefaultFeatureFlags };
|
|
@@ -208,7 +208,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
208
208
|
if (onSelectAllChange) onSelectAllChange(e.target.checked);
|
|
209
209
|
}, [onSelectAllChange]);
|
|
210
210
|
function getBodyContent() {
|
|
211
|
-
if (loading && readScrollContainerRef.current && loadingType.appearsInBody) return
|
|
211
|
+
if (loading && readScrollContainerRef.current && loadingType.appearsInBody) return /* @__PURE__ */ jsx(FilteredActionListBodyLoader, {
|
|
212
212
|
loadingType,
|
|
213
213
|
height: readScrollContainerRef.current.clientHeight
|
|
214
214
|
});
|
|
@@ -218,13 +218,13 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
218
218
|
if (groupMetadata !== null && groupMetadata !== void 0 && groupMetadata.length) return groupMetadata.map((group, index) => {
|
|
219
219
|
var _group$header, _group$header2;
|
|
220
220
|
if (index === firstGroupIndex && getItemListForEachGroup(group.groupId).length === 0) firstGroupIndex++;
|
|
221
|
-
return
|
|
221
|
+
return /* @__PURE__ */ jsxs(ActionList.Group, { children: [/* @__PURE__ */ jsx(ActionList.GroupHeading, {
|
|
222
222
|
variant: (_group$header = group.header) !== null && _group$header !== void 0 && _group$header.variant ? group.header.variant : void 0,
|
|
223
223
|
children: (_group$header2 = group.header) !== null && _group$header2 !== void 0 && _group$header2.title ? group.header.title : `Group ${group.groupId}`
|
|
224
224
|
}), getItemListForEachGroup(group.groupId).map(({ key: itemKey, ...item }, itemIndex) => {
|
|
225
225
|
var _ref2, _item$id2;
|
|
226
226
|
const key = (_ref2 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id2 = item.id) === null || _item$id2 === void 0 ? void 0 : _item$id2.toString()) !== null && _ref2 !== void 0 ? _ref2 : itemIndex.toString();
|
|
227
|
-
return
|
|
227
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
228
228
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
229
229
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
230
230
|
"data-first-child": index === firstGroupIndex && itemIndex === 0 ? "" : void 0,
|
|
@@ -236,7 +236,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
236
236
|
if (isVirtualized && virtualizedItemEntries) return virtualizedItemEntries.map(({ virtualItem, item: { key: itemKey, ...item }, index }) => {
|
|
237
237
|
var _ref3, _item$id3;
|
|
238
238
|
const key = (_ref3 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id3 = item.id) === null || _item$id3 === void 0 ? void 0 : _item$id3.toString()) !== null && _ref3 !== void 0 ? _ref3 : index.toString();
|
|
239
|
-
return
|
|
239
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
240
240
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
241
241
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
242
242
|
"data-first-child": index === 0 ? "" : void 0,
|
|
@@ -258,7 +258,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
258
258
|
return items.map(({ key: itemKey, ...item }, index) => {
|
|
259
259
|
var _ref4, _item$id4;
|
|
260
260
|
const key = (_ref4 = itemKey !== null && itemKey !== void 0 ? itemKey : (_item$id4 = item.id) === null || _item$id4 === void 0 ? void 0 : _item$id4.toString()) !== null && _ref4 !== void 0 ? _ref4 : index.toString();
|
|
261
|
-
return
|
|
261
|
+
return /* @__PURE__ */ jsx(MappedActionListItem, {
|
|
262
262
|
className: clsx(FilteredActionList_module_css_default.ActionListItem, "className" in item ? item.className : void 0),
|
|
263
263
|
"data-input-focused": isInputFocused ? "" : void 0,
|
|
264
264
|
"data-first-child": index === 0 ? "" : void 0,
|
|
@@ -267,7 +267,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
267
267
|
}, key);
|
|
268
268
|
});
|
|
269
269
|
};
|
|
270
|
-
const actionListContent =
|
|
270
|
+
const actionListContent = /* @__PURE__ */ jsx(ActionList, {
|
|
271
271
|
ref: usingRovingTabindex ? listRef : listContainerRefCallback,
|
|
272
272
|
showDividers: showItemDividers,
|
|
273
273
|
selectionVariant,
|
|
@@ -283,7 +283,7 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
283
283
|
} : actionListProps === null || actionListProps === void 0 ? void 0 : actionListProps.style,
|
|
284
284
|
children: renderListItems()
|
|
285
285
|
});
|
|
286
|
-
if (usingRovingTabindex) return
|
|
286
|
+
if (usingRovingTabindex) return /* @__PURE__ */ jsx(ActionListContainerContext.Provider, {
|
|
287
287
|
value: {
|
|
288
288
|
container: "FilteredActionList",
|
|
289
289
|
listRole: "listbox",
|
|
@@ -295,13 +295,13 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
295
295
|
});
|
|
296
296
|
else return actionListContent;
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
299
299
|
ref: inputAndListContainerRef,
|
|
300
300
|
className: clsx(className, FilteredActionList_module_css_default.Root),
|
|
301
301
|
"data-testid": "filtered-action-list",
|
|
302
302
|
"data-component": "FilteredActionList",
|
|
303
303
|
children: [
|
|
304
|
-
|
|
304
|
+
/* @__PURE__ */ jsx(FilteredActionListInput, {
|
|
305
305
|
inputRef: appliedInputRef,
|
|
306
306
|
onInputFocus,
|
|
307
307
|
value: filterValue,
|
|
@@ -315,28 +315,28 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
315
315
|
fullScreenOnNarrow,
|
|
316
316
|
...textInputProps
|
|
317
317
|
}),
|
|
318
|
-
|
|
318
|
+
/* @__PURE__ */ jsx(VisuallyHidden, {
|
|
319
319
|
id: inputDescriptionTextId,
|
|
320
320
|
children: "Items will be filtered as you type"
|
|
321
321
|
}),
|
|
322
|
-
onSelectAllChange !== void 0 &&
|
|
322
|
+
onSelectAllChange !== void 0 && /* @__PURE__ */ jsxs("div", {
|
|
323
323
|
className: FilteredActionList_module_css_default.SelectAllContainer,
|
|
324
324
|
"data-component": "FilteredActionList.SelectAll",
|
|
325
|
-
children: [
|
|
325
|
+
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
326
326
|
id: "select-all-checkbox",
|
|
327
327
|
className: FilteredActionList_module_css_default.SelectAllCheckbox,
|
|
328
328
|
checked: selectAllChecked,
|
|
329
329
|
indeterminate: selectAllIndeterminate,
|
|
330
330
|
onChange: handleSelectAllChange,
|
|
331
331
|
"data-component": "FilteredActionList.SelectAllCheckbox"
|
|
332
|
-
}),
|
|
332
|
+
}), /* @__PURE__ */ jsx("label", {
|
|
333
333
|
className: FilteredActionList_module_css_default.SelectAllLabel,
|
|
334
334
|
htmlFor: "select-all-checkbox",
|
|
335
335
|
"data-component": "FilteredActionList.SelectAllLabel",
|
|
336
336
|
children: selectAllLabelText
|
|
337
337
|
})]
|
|
338
338
|
}),
|
|
339
|
-
|
|
339
|
+
/* @__PURE__ */ jsx("div", {
|
|
340
340
|
ref: appliedScrollContainerRef,
|
|
341
341
|
className: FilteredActionList_module_css_default.Container,
|
|
342
342
|
children: getBodyContent()
|
|
@@ -344,11 +344,10 @@ function FilteredActionList({ loading = false, placeholderText, filterValue: ext
|
|
|
344
344
|
]
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
FilteredActionList.displayName = "FilteredActionList";
|
|
348
347
|
const MappedActionListItem = /*#__PURE__*/ forwardRef((item, ref) => {
|
|
349
348
|
if (typeof item.renderItem === "function") return item.renderItem(item);
|
|
350
349
|
const { id, description, descriptionVariant, text, trailingVisual: TrailingVisual, leadingVisual: LeadingVisual, trailingText, trailingIcon: TrailingIcon, onAction, children, ...rest } = item;
|
|
351
|
-
return
|
|
350
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
352
351
|
role: "option",
|
|
353
352
|
onSelect: (e) => {
|
|
354
353
|
if (typeof onAction === "function") onAction(item, e);
|
|
@@ -357,14 +356,14 @@ const MappedActionListItem = /*#__PURE__*/ forwardRef((item, ref) => {
|
|
|
357
356
|
ref,
|
|
358
357
|
...rest,
|
|
359
358
|
children: [
|
|
360
|
-
LeadingVisual ?
|
|
359
|
+
LeadingVisual ? /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: /* @__PURE__ */ jsx(LeadingVisual, {}) }) : null,
|
|
361
360
|
children,
|
|
362
361
|
text,
|
|
363
|
-
description ?
|
|
362
|
+
description ? /* @__PURE__ */ jsx(ActionList.Description, {
|
|
364
363
|
variant: descriptionVariant,
|
|
365
364
|
children: description
|
|
366
365
|
}) : null,
|
|
367
|
-
TrailingVisual ?
|
|
366
|
+
TrailingVisual ? /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: typeof TrailingVisual !== "string" && isValidElementType(TrailingVisual) ? /* @__PURE__ */ jsx(TrailingVisual, {}) : TrailingVisual }) : TrailingIcon || trailingText ? /* @__PURE__ */ jsxs(ActionList.TrailingVisual, { children: [trailingText, TrailingIcon && /* @__PURE__ */ jsx(TrailingIcon, {})] }) : null
|
|
368
367
|
]
|
|
369
368
|
});
|
|
370
369
|
});
|
|
@@ -73,10 +73,10 @@ function FilteredActionListInput(t0) {
|
|
|
73
73
|
} else t2 = $[20];
|
|
74
74
|
let t3;
|
|
75
75
|
if ($[21] !== inputDescriptionTextId || $[22] !== inputRef || $[23] !== listId || $[24] !== loading || $[25] !== onInputChange || $[26] !== onInputKeyDown || $[27] !== onInputKeyPress || $[28] !== placeholderText || $[29] !== restTextInputProps || $[30] !== t1 || $[31] !== t2 || $[32] !== value) {
|
|
76
|
-
t3 =
|
|
76
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
77
77
|
className: FilteredActionList_module_css_default.Header,
|
|
78
78
|
"data-component": "FilteredActionList.Header",
|
|
79
|
-
children:
|
|
79
|
+
children: /* @__PURE__ */ jsx(TextInput_default, {
|
|
80
80
|
ref: inputRef,
|
|
81
81
|
block: true,
|
|
82
82
|
width: "auto",
|
|
@@ -15,7 +15,7 @@ function FilteredActionListBodyLoader(t0) {
|
|
|
15
15
|
case FilteredActionListLoadingTypes.bodySpinner: {
|
|
16
16
|
let t1;
|
|
17
17
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
18
|
-
t1 =
|
|
18
|
+
t1 = /* @__PURE__ */ jsx(LoadingSpinner, { "data-testid": "filtered-action-list-spinner" });
|
|
19
19
|
$[0] = t1;
|
|
20
20
|
} else t1 = $[0];
|
|
21
21
|
return t1;
|
|
@@ -24,7 +24,7 @@ function FilteredActionListBodyLoader(t0) {
|
|
|
24
24
|
const rows = height < SKELETON_ROW_HEIGHT ? SKELETON_MIN_ROWS : height / SKELETON_ROW_HEIGHT;
|
|
25
25
|
let t1;
|
|
26
26
|
if ($[1] !== rows) {
|
|
27
|
-
t1 =
|
|
27
|
+
t1 = /* @__PURE__ */ jsx(LoadingSkeleton, {
|
|
28
28
|
"data-testid": "filtered-action-list-skeleton",
|
|
29
29
|
rows
|
|
30
30
|
});
|
|
@@ -36,7 +36,7 @@ function FilteredActionListBodyLoader(t0) {
|
|
|
36
36
|
default: {
|
|
37
37
|
let t1;
|
|
38
38
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
39
|
-
t1 =
|
|
39
|
+
t1 = /* @__PURE__ */ jsx(Fragment, {});
|
|
40
40
|
$[3] = t1;
|
|
41
41
|
} else t1 = $[3];
|
|
42
42
|
return t1;
|
|
@@ -53,10 +53,10 @@ function LoadingSpinner(t0) {
|
|
|
53
53
|
} else props = $[1];
|
|
54
54
|
let t1;
|
|
55
55
|
if ($[2] !== props) {
|
|
56
|
-
t1 =
|
|
56
|
+
t1 = /* @__PURE__ */ jsx("div", {
|
|
57
57
|
className: FilteredActionListLoaders_module_css_default.LoadingSpinner,
|
|
58
58
|
"data-component": "FilteredActionList.Spinner",
|
|
59
|
-
children:
|
|
59
|
+
children: /* @__PURE__ */ jsx(Spinner, { ...props })
|
|
60
60
|
});
|
|
61
61
|
$[2] = props;
|
|
62
62
|
$[3] = t1;
|
|
@@ -85,10 +85,10 @@ function LoadingSkeleton(t0) {
|
|
|
85
85
|
} else t2 = $[4];
|
|
86
86
|
let t3;
|
|
87
87
|
if ($[5] !== props || $[6] !== t2) {
|
|
88
|
-
t3 =
|
|
88
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
89
89
|
className: FilteredActionListLoaders_module_css_default.LoadingSkeletonContainer,
|
|
90
90
|
"data-component": "FilteredActionList.Skeleton",
|
|
91
|
-
children:
|
|
91
|
+
children: /* @__PURE__ */ jsx(Stack, {
|
|
92
92
|
direction: "vertical",
|
|
93
93
|
justify: "center",
|
|
94
94
|
gap: "condensed",
|
|
@@ -103,20 +103,19 @@ function LoadingSkeleton(t0) {
|
|
|
103
103
|
return t3;
|
|
104
104
|
}
|
|
105
105
|
function _temp(_, i) {
|
|
106
|
-
return
|
|
106
|
+
return /* @__PURE__ */ jsxs(Stack, {
|
|
107
107
|
direction: "horizontal",
|
|
108
108
|
gap: "condensed",
|
|
109
109
|
align: "center",
|
|
110
110
|
className: FilteredActionListLoaders_module_css_default.LoadingSkeletonRow,
|
|
111
|
-
children: [
|
|
111
|
+
children: [/* @__PURE__ */ jsx(SkeletonBox, {
|
|
112
112
|
width: "16px",
|
|
113
113
|
height: "16px"
|
|
114
|
-
}),
|
|
114
|
+
}), /* @__PURE__ */ jsx(SkeletonBox, {
|
|
115
115
|
height: "10px",
|
|
116
116
|
className: FilteredActionListLoaders_module_css_default.LoadingSkeleton
|
|
117
117
|
})]
|
|
118
118
|
}, i);
|
|
119
119
|
}
|
|
120
|
-
_temp.displayName = "_temp";
|
|
121
120
|
//#endregion
|
|
122
121
|
export { FilteredActionListBodyLoader, FilteredActionListLoadingTypes };
|
package/dist/Flash/Flash.js
CHANGED
|
@@ -7,9 +7,6 @@ import { clsx } from "clsx";
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
9
9
|
*/
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `Banner` instead. If migration is not yet possible, import `Flash` from `@primer/react/deprecated`.
|
|
12
|
-
*/
|
|
13
10
|
const Flash = /*#__PURE__*/ React.forwardRef(function Flash(t0, ref) {
|
|
14
11
|
const $ = c(15);
|
|
15
12
|
let className;
|
|
@@ -43,7 +40,7 @@ const Flash = /*#__PURE__*/ React.forwardRef(function Flash(t0, ref) {
|
|
|
43
40
|
const t4 = full ? "" : void 0;
|
|
44
41
|
let t5;
|
|
45
42
|
if ($[8] !== BaseComponent || $[9] !== ref || $[10] !== rest || $[11] !== t3 || $[12] !== t4 || $[13] !== variant) {
|
|
46
|
-
t5 =
|
|
43
|
+
t5 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
47
44
|
...rest,
|
|
48
45
|
ref,
|
|
49
46
|
className: t3,
|
|
@@ -92,7 +92,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
92
92
|
} else t5 = $[5];
|
|
93
93
|
let t6;
|
|
94
94
|
if ($[6] !== t4 || $[7] !== t5) {
|
|
95
|
-
t6 =
|
|
95
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
96
96
|
className: FormControl_module_css_default.ControlChoiceInputs,
|
|
97
97
|
children: [t4, t5]
|
|
98
98
|
});
|
|
@@ -102,7 +102,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
102
102
|
} else t6 = $[8];
|
|
103
103
|
let t7;
|
|
104
104
|
if ($[9] !== disabled || $[10] !== slots.caption || $[11] !== slots.leadingVisual) {
|
|
105
|
-
t7 = slots.leadingVisual ?
|
|
105
|
+
t7 = slots.leadingVisual ? /* @__PURE__ */ jsx("div", {
|
|
106
106
|
className: FormControl_module_css_default.LeadingVisual,
|
|
107
107
|
"data-disabled": disabled ? "" : void 0,
|
|
108
108
|
"data-has-caption": slots.caption ? "" : void 0,
|
|
@@ -115,7 +115,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
115
115
|
} else t7 = $[12];
|
|
116
116
|
let t8;
|
|
117
117
|
if ($[13] !== slots.caption || $[14] !== slots.label) {
|
|
118
|
-
t8 =
|
|
118
|
+
t8 = /* @__PURE__ */ jsxs("div", {
|
|
119
119
|
className: FormControl_module_css_default.LabelContainer,
|
|
120
120
|
children: [slots.label, slots.caption]
|
|
121
121
|
});
|
|
@@ -125,7 +125,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
125
125
|
} else t8 = $[15];
|
|
126
126
|
let t9;
|
|
127
127
|
if ($[16] !== t6 || $[17] !== t7 || $[18] !== t8) {
|
|
128
|
-
t9 =
|
|
128
|
+
t9 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
129
129
|
t6,
|
|
130
130
|
t7,
|
|
131
131
|
t8
|
|
@@ -158,14 +158,14 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
158
158
|
$[26] = validationMessageId;
|
|
159
159
|
$[27] = t11;
|
|
160
160
|
} else t11 = $[27];
|
|
161
|
-
const t12 = isChoiceInput || layout === "horizontal" ?
|
|
161
|
+
const t12 = isChoiceInput || layout === "horizontal" ? /* @__PURE__ */ jsx("div", {
|
|
162
162
|
ref,
|
|
163
163
|
"data-has-leading-visual": slots.leadingVisual ? "" : void 0,
|
|
164
164
|
className: clsx(className, FormControl_module_css_default.ControlHorizontalLayout),
|
|
165
165
|
style,
|
|
166
166
|
"data-component": "FormControl",
|
|
167
167
|
children: InputChildren
|
|
168
|
-
}) :
|
|
168
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
169
169
|
ref,
|
|
170
170
|
"data-has-label": !isLabelHidden ? "" : void 0,
|
|
171
171
|
className: clsx(className, FormControl_module_css_default.ControlVerticalLayout),
|
|
@@ -181,7 +181,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
181
181
|
"aria-describedby": [validationMessageId, captionId].filter(Boolean).join(" ")
|
|
182
182
|
}, InputComponent.props)),
|
|
183
183
|
childrenWithoutSlots.filter((child_2) => /*#__PURE__*/ React.isValidElement(child_2) && !expectedInputComponents.some((inputComponent_1) => child_2.type === inputComponent_1 || isSlot(child_2, inputComponent_1))),
|
|
184
|
-
slots.validation ?
|
|
184
|
+
slots.validation ? /* @__PURE__ */ jsx(ValidationAnimationContainer, {
|
|
185
185
|
show: true,
|
|
186
186
|
children: slots.validation
|
|
187
187
|
}) : null,
|
|
@@ -190,7 +190,7 @@ var FormControl_default = Object.assign(/* @__PURE__ */ React.forwardRef((t0, re
|
|
|
190
190
|
});
|
|
191
191
|
let t13;
|
|
192
192
|
if ($[28] !== T0 || $[29] !== t11 || $[30] !== t12) {
|
|
193
|
-
t13 =
|
|
193
|
+
t13 = /* @__PURE__ */ jsx(T0, {
|
|
194
194
|
value: t11,
|
|
195
195
|
children: t12
|
|
196
196
|
});
|
|
@@ -19,7 +19,7 @@ function FormControlCaption(t0) {
|
|
|
19
19
|
const t3 = disabled ? "" : void 0;
|
|
20
20
|
let t4;
|
|
21
21
|
if ($[2] !== children || $[3] !== style || $[4] !== t1 || $[5] !== t2 || $[6] !== t3) {
|
|
22
|
-
t4 =
|
|
22
|
+
t4 = /* @__PURE__ */ jsx(Text_default, {
|
|
23
23
|
id: t1,
|
|
24
24
|
className: t2,
|
|
25
25
|
"data-control-disabled": t3,
|
|
@@ -82,7 +82,7 @@ const FormControlLabel = (t0) => {
|
|
|
82
82
|
const labelProps = t2;
|
|
83
83
|
let t3;
|
|
84
84
|
if ($[23] !== children || $[24] !== labelProps) {
|
|
85
|
-
t3 =
|
|
85
|
+
t3 = /* @__PURE__ */ jsx(InputLabel, {
|
|
86
86
|
...labelProps,
|
|
87
87
|
"data-component": "FormControl.Label",
|
|
88
88
|
children
|
|
@@ -11,7 +11,7 @@ const FormControlLeadingVisual = (t0) => {
|
|
|
11
11
|
const t2 = captionId ? "" : void 0;
|
|
12
12
|
let t3;
|
|
13
13
|
if ($[0] !== children || $[1] !== style || $[2] !== t1 || $[3] !== t2) {
|
|
14
|
-
t3 =
|
|
14
|
+
t3 = /* @__PURE__ */ jsx("div", {
|
|
15
15
|
className: FormControlLeadingVisual_module_css_default.LeadingVisual,
|
|
16
16
|
"data-control-disabled": t1,
|
|
17
17
|
style,
|
|
@@ -10,7 +10,7 @@ const FormControlValidation = (t0) => {
|
|
|
10
10
|
const t1 = id || validationMessageId || "";
|
|
11
11
|
let t2;
|
|
12
12
|
if ($[0] !== children || $[1] !== className || $[2] !== style || $[3] !== t1 || $[4] !== variant) {
|
|
13
|
-
t2 =
|
|
13
|
+
t2 = /* @__PURE__ */ jsx(InputValidation, {
|
|
14
14
|
className,
|
|
15
15
|
validationStatus: variant,
|
|
16
16
|
id: t1,
|
package/dist/Header/Header.js
CHANGED
|
@@ -32,7 +32,7 @@ const Header = /*#__PURE__*/ React.forwardRef(function Header(t0, forwardRef) {
|
|
|
32
32
|
} else t2 = $[6];
|
|
33
33
|
let t3;
|
|
34
34
|
if ($[7] !== BaseComponent || $[8] !== children || $[9] !== forwardRef || $[10] !== rest || $[11] !== t2) {
|
|
35
|
-
t3 =
|
|
35
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
36
36
|
ref: forwardRef,
|
|
37
37
|
className: t2,
|
|
38
38
|
...rest,
|
|
@@ -76,7 +76,7 @@ const HeaderItem = /*#__PURE__*/ React.forwardRef(function HeaderItem(t0, forwar
|
|
|
76
76
|
} else t1 = $[6];
|
|
77
77
|
let t2;
|
|
78
78
|
if ($[7] !== children || $[8] !== forwardRef || $[9] !== full || $[10] !== rest || $[11] !== t1) {
|
|
79
|
-
t2 =
|
|
79
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
80
80
|
ref: forwardRef,
|
|
81
81
|
className: t1,
|
|
82
82
|
"data-full": full,
|
|
@@ -122,7 +122,7 @@ const HeaderLink = /*#__PURE__*/ React.forwardRef(function HeaderLink(t0, forwar
|
|
|
122
122
|
} else t2 = $[6];
|
|
123
123
|
let t3;
|
|
124
124
|
if ($[7] !== BaseComponent || $[8] !== children || $[9] !== forwardRef || $[10] !== rest || $[11] !== t2) {
|
|
125
|
-
t3 =
|
|
125
|
+
t3 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
126
126
|
ref: forwardRef,
|
|
127
127
|
className: t2,
|
|
128
128
|
...rest,
|
package/dist/Heading/Heading.js
CHANGED
|
@@ -50,7 +50,7 @@ const Heading = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
50
50
|
} else t4 = $[8];
|
|
51
51
|
let t5;
|
|
52
52
|
if ($[9] !== Component || $[10] !== mergedRef || $[11] !== props || $[12] !== t4 || $[13] !== variant) {
|
|
53
|
-
t5 =
|
|
53
|
+
t5 = /* @__PURE__ */ jsx(Component, {
|
|
54
54
|
className: t4,
|
|
55
55
|
"data-variant": variant,
|
|
56
56
|
"data-component": "Heading",
|
package/dist/Hidden/Hidden.js
CHANGED
|
@@ -6,25 +6,25 @@ import { isValidElementType } from "react-is";
|
|
|
6
6
|
import { AlertFillIcon, AlertIcon, CheckCircleFillIcon, CheckCircleIcon, InfoIcon } from "@primer/octicons-react";
|
|
7
7
|
//#region src/InlineMessage/InlineMessage.tsx
|
|
8
8
|
const icons = {
|
|
9
|
-
warning:
|
|
10
|
-
critical:
|
|
11
|
-
success:
|
|
12
|
-
unavailable:
|
|
9
|
+
warning: /* @__PURE__ */ jsx(AlertIcon, { className: InlineMessage_module_css_default.InlineMessageIcon }),
|
|
10
|
+
critical: /* @__PURE__ */ jsx(AlertIcon, { className: InlineMessage_module_css_default.InlineMessageIcon }),
|
|
11
|
+
success: /* @__PURE__ */ jsx(CheckCircleIcon, { className: InlineMessage_module_css_default.InlineMessageIcon }),
|
|
12
|
+
unavailable: /* @__PURE__ */ jsx(AlertIcon, { className: InlineMessage_module_css_default.InlineMessageIcon })
|
|
13
13
|
};
|
|
14
14
|
const smallIcons = {
|
|
15
|
-
warning:
|
|
15
|
+
warning: /* @__PURE__ */ jsx(AlertFillIcon, {
|
|
16
16
|
className: InlineMessage_module_css_default.InlineMessageIcon,
|
|
17
17
|
size: 12
|
|
18
18
|
}),
|
|
19
|
-
critical:
|
|
19
|
+
critical: /* @__PURE__ */ jsx(AlertFillIcon, {
|
|
20
20
|
className: InlineMessage_module_css_default.InlineMessageIcon,
|
|
21
21
|
size: 12
|
|
22
22
|
}),
|
|
23
|
-
success:
|
|
23
|
+
success: /* @__PURE__ */ jsx(CheckCircleFillIcon, {
|
|
24
24
|
className: InlineMessage_module_css_default.InlineMessageIcon,
|
|
25
25
|
size: 12
|
|
26
26
|
}),
|
|
27
|
-
unavailable:
|
|
27
|
+
unavailable: /* @__PURE__ */ jsx(AlertFillIcon, {
|
|
28
28
|
className: InlineMessage_module_css_default.InlineMessageIcon,
|
|
29
29
|
size: 12
|
|
30
30
|
})
|
|
@@ -61,7 +61,7 @@ function InlineMessage(t0) {
|
|
|
61
61
|
if (typeof LeadingVisual !== "string" && isValidElementType(LeadingVisual)) {
|
|
62
62
|
let t2;
|
|
63
63
|
if ($[7] !== LeadingVisual) {
|
|
64
|
-
t2 =
|
|
64
|
+
t2 = /* @__PURE__ */ jsx(LeadingVisual, { className: InlineMessage_module_css_default.InlineMessageIcon });
|
|
65
65
|
$[7] = LeadingVisual;
|
|
66
66
|
$[8] = t2;
|
|
67
67
|
} else t2 = $[8];
|
|
@@ -71,7 +71,7 @@ function InlineMessage(t0) {
|
|
|
71
71
|
else {
|
|
72
72
|
let t2;
|
|
73
73
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
74
|
-
t2 =
|
|
74
|
+
t2 = /* @__PURE__ */ jsx(InfoIcon, { className: InlineMessage_module_css_default.InlineMessageIcon });
|
|
75
75
|
$[9] = t2;
|
|
76
76
|
} else t2 = $[9];
|
|
77
77
|
icon = t2;
|
|
@@ -85,7 +85,7 @@ function InlineMessage(t0) {
|
|
|
85
85
|
const t3 = (_variant = variant) !== null && _variant !== void 0 ? _variant : void 0;
|
|
86
86
|
let t4;
|
|
87
87
|
if ($[12] !== children || $[13] !== icon || $[14] !== rest || $[15] !== size || $[16] !== t2 || $[17] !== t3) {
|
|
88
|
-
t4 =
|
|
88
|
+
t4 = /* @__PURE__ */ jsxs("div", {
|
|
89
89
|
...rest,
|
|
90
90
|
className: t2,
|
|
91
91
|
"data-size": size,
|