@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
|
@@ -43,7 +43,7 @@ const debounceAnnouncement = debounce((announcement) => {
|
|
|
43
43
|
announce(announcement);
|
|
44
44
|
}, 250);
|
|
45
45
|
function AutocompleteMenu(props) {
|
|
46
|
-
const $ = c(
|
|
46
|
+
const $ = c(83);
|
|
47
47
|
const autocompleteContext = useContext(AutocompleteContext);
|
|
48
48
|
const deferredInputContext = useContext(AutocompleteDeferredInputContext);
|
|
49
49
|
if (autocompleteContext === null || deferredInputContext === null) throw new Error("AutocompleteContext returned null values");
|
|
@@ -112,12 +112,19 @@ function AutocompleteMenu(props) {
|
|
|
112
112
|
let t6;
|
|
113
113
|
if ($[15] !== deferredInputValue || $[16] !== filterFn || $[17] !== itemSortOrderData || $[18] !== selectableItems) {
|
|
114
114
|
let t7;
|
|
115
|
-
if ($[20] !==
|
|
116
|
-
t7 =
|
|
117
|
-
$[20] =
|
|
118
|
-
$[21] =
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
if ($[20] !== deferredInputValue || $[21] !== filterFn) {
|
|
116
|
+
t7 = filterFn ? filterFn : getDefaultItemFilter(deferredInputValue);
|
|
117
|
+
$[20] = deferredInputValue;
|
|
118
|
+
$[21] = filterFn;
|
|
119
|
+
$[22] = t7;
|
|
120
|
+
} else t7 = $[22];
|
|
121
|
+
let t8;
|
|
122
|
+
if ($[23] !== itemSortOrderData) {
|
|
123
|
+
t8 = (a, b) => itemSortOrderData[a.id] - itemSortOrderData[b.id];
|
|
124
|
+
$[23] = itemSortOrderData;
|
|
125
|
+
$[24] = t8;
|
|
126
|
+
} else t8 = $[24];
|
|
127
|
+
t6 = selectableItems.filter(t7).sort(t8);
|
|
121
128
|
$[15] = deferredInputValue;
|
|
122
129
|
$[16] = filterFn;
|
|
123
130
|
$[17] = itemSortOrderData;
|
|
@@ -126,7 +133,7 @@ function AutocompleteMenu(props) {
|
|
|
126
133
|
} else t6 = $[19];
|
|
127
134
|
const sortedAndFilteredItemsToRender = t6;
|
|
128
135
|
let t7;
|
|
129
|
-
if ($[
|
|
136
|
+
if ($[25] !== addNewItem || $[26] !== generatedUniqueId || $[27] !== (highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id) || $[28] !== selectedItemIds || $[29] !== selectionVariant || $[30] !== setAutocompleteSuggestion || $[31] !== setInputValue) {
|
|
130
137
|
t7 = addNewItem ? [{
|
|
131
138
|
...addNewItem,
|
|
132
139
|
role: "option",
|
|
@@ -146,51 +153,51 @@ function AutocompleteMenu(props) {
|
|
|
146
153
|
}
|
|
147
154
|
}
|
|
148
155
|
}] : [];
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
} else t7 = $[
|
|
156
|
+
$[25] = addNewItem;
|
|
157
|
+
$[26] = generatedUniqueId;
|
|
158
|
+
$[27] = highlightedItem === null || highlightedItem === void 0 ? void 0 : highlightedItem.id;
|
|
159
|
+
$[28] = selectedItemIds;
|
|
160
|
+
$[29] = selectionVariant;
|
|
161
|
+
$[30] = setAutocompleteSuggestion;
|
|
162
|
+
$[31] = setInputValue;
|
|
163
|
+
$[32] = t7;
|
|
164
|
+
} else t7 = $[32];
|
|
158
165
|
let t8;
|
|
159
|
-
if ($[
|
|
166
|
+
if ($[33] !== sortedAndFilteredItemsToRender || $[34] !== t7) {
|
|
160
167
|
t8 = [...sortedAndFilteredItemsToRender, ...t7];
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
} else t8 = $[
|
|
168
|
+
$[33] = sortedAndFilteredItemsToRender;
|
|
169
|
+
$[34] = t7;
|
|
170
|
+
$[35] = t8;
|
|
171
|
+
} else t8 = $[35];
|
|
165
172
|
const allItemsToRender = t8;
|
|
166
173
|
let t9;
|
|
167
|
-
if ($[
|
|
174
|
+
if ($[36] !== allItemsToRender) {
|
|
168
175
|
t9 = () => {
|
|
169
176
|
allItemsToRenderRef.current = allItemsToRender;
|
|
170
177
|
};
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
} else t9 = $[
|
|
178
|
+
$[36] = allItemsToRender;
|
|
179
|
+
$[37] = t9;
|
|
180
|
+
} else t9 = $[37];
|
|
174
181
|
React.useEffect(t9);
|
|
175
182
|
let t10;
|
|
176
183
|
let t11;
|
|
177
|
-
if ($[
|
|
184
|
+
if ($[38] !== allItemsToRender || $[39] !== emptyStateText) {
|
|
178
185
|
t10 = () => {
|
|
179
186
|
if (allItemsToRender.length === 0) debounceAnnouncement(emptyStateText);
|
|
180
187
|
};
|
|
181
188
|
t11 = [allItemsToRender, emptyStateText];
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
189
|
+
$[38] = allItemsToRender;
|
|
190
|
+
$[39] = emptyStateText;
|
|
191
|
+
$[40] = t10;
|
|
192
|
+
$[41] = t11;
|
|
186
193
|
} else {
|
|
187
|
-
t10 = $[
|
|
188
|
-
t11 = $[
|
|
194
|
+
t10 = $[40];
|
|
195
|
+
t11 = $[41];
|
|
189
196
|
}
|
|
190
197
|
React.useEffect(t10, t11);
|
|
191
198
|
const t12 = !showMenu;
|
|
192
199
|
let t13;
|
|
193
|
-
if ($[
|
|
200
|
+
if ($[42] !== activeDescendantRef || $[43] !== customScrollContainerRef || $[44] !== scrollContainerRef || $[45] !== setIsMenuDirectlyActivated) {
|
|
194
201
|
t13 = (current, _previous, directlyActivated) => {
|
|
195
202
|
activeDescendantRef.current = current || null;
|
|
196
203
|
if (current) {
|
|
@@ -204,14 +211,14 @@ function AutocompleteMenu(props) {
|
|
|
204
211
|
if (current && customScrollContainerRef && customScrollContainerRef.current && directlyActivated) scrollIntoView(current, customScrollContainerRef.current, menuScrollMargins);
|
|
205
212
|
else if (current && scrollContainerRef.current && directlyActivated) scrollIntoView(current, scrollContainerRef.current, menuScrollMargins);
|
|
206
213
|
};
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
} else t13 = $[
|
|
214
|
+
$[42] = activeDescendantRef;
|
|
215
|
+
$[43] = customScrollContainerRef;
|
|
216
|
+
$[44] = scrollContainerRef;
|
|
217
|
+
$[45] = setIsMenuDirectlyActivated;
|
|
218
|
+
$[46] = t13;
|
|
219
|
+
} else t13 = $[46];
|
|
213
220
|
let t14;
|
|
214
|
-
if ($[
|
|
221
|
+
if ($[47] !== inputRef || $[48] !== t12 || $[49] !== t13) {
|
|
215
222
|
t14 = {
|
|
216
223
|
containerRef: listContainerRef,
|
|
217
224
|
disabled: t12,
|
|
@@ -220,21 +227,21 @@ function AutocompleteMenu(props) {
|
|
|
220
227
|
activeDescendantFocus: inputRef,
|
|
221
228
|
onActiveDescendantChanged: t13
|
|
222
229
|
};
|
|
223
|
-
$[
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else t14 = $[
|
|
230
|
+
$[47] = inputRef;
|
|
231
|
+
$[48] = t12;
|
|
232
|
+
$[49] = t13;
|
|
233
|
+
$[50] = t14;
|
|
234
|
+
} else t14 = $[50];
|
|
228
235
|
let t15;
|
|
229
|
-
if ($[
|
|
236
|
+
if ($[51] !== loading) {
|
|
230
237
|
t15 = [loading];
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
} else t15 = $[
|
|
238
|
+
$[51] = loading;
|
|
239
|
+
$[52] = t15;
|
|
240
|
+
} else t15 = $[52];
|
|
234
241
|
useFocusZone(t14, t15);
|
|
235
242
|
let t16;
|
|
236
243
|
let t17;
|
|
237
|
-
if ($[
|
|
244
|
+
if ($[53] !== deferredInputValue || $[54] !== highlightedItem || $[55] !== selectedItemIds || $[56] !== setAutocompleteSuggestion) {
|
|
238
245
|
t16 = () => {
|
|
239
246
|
var _highlightedItem$text;
|
|
240
247
|
if (highlightedItem !== null && highlightedItem !== void 0 && (_highlightedItem$text = highlightedItem.text) !== null && _highlightedItem$text !== void 0 && _highlightedItem$text.startsWith(deferredInputValue) && !selectedItemIds.includes(highlightedItem.id)) setAutocompleteSuggestion(highlightedItem.text);
|
|
@@ -246,20 +253,20 @@ function AutocompleteMenu(props) {
|
|
|
246
253
|
selectedItemIds,
|
|
247
254
|
setAutocompleteSuggestion
|
|
248
255
|
];
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
256
|
+
$[53] = deferredInputValue;
|
|
257
|
+
$[54] = highlightedItem;
|
|
258
|
+
$[55] = selectedItemIds;
|
|
259
|
+
$[56] = setAutocompleteSuggestion;
|
|
260
|
+
$[57] = t16;
|
|
261
|
+
$[58] = t17;
|
|
255
262
|
} else {
|
|
256
|
-
t16 = $[
|
|
257
|
-
t17 = $[
|
|
263
|
+
t16 = $[57];
|
|
264
|
+
t17 = $[58];
|
|
258
265
|
}
|
|
259
266
|
useEffect(t16, t17);
|
|
260
267
|
let t18;
|
|
261
268
|
let t19;
|
|
262
|
-
if ($[
|
|
269
|
+
if ($[59] !== onOpenChange || $[60] !== selectedItemIds || $[61] !== showMenu || $[62] !== sortOnCloseFn || $[63] !== sortedItemIds) {
|
|
263
270
|
t18 = () => {
|
|
264
271
|
const itemIdSortResult = [...sortedItemIds].sort(sortOnCloseFn ? sortOnCloseFn : getDefaultSortFn((itemId_0) => isItemSelected(itemId_0, selectedItemIds)));
|
|
265
272
|
const sortResultMatchesState = itemIdSortResult.length === sortedItemIds.length && itemIdSortResult.every((element_0, index) => element_0 === sortedItemIds[index]);
|
|
@@ -273,101 +280,99 @@ function AutocompleteMenu(props) {
|
|
|
273
280
|
sortOnCloseFn,
|
|
274
281
|
sortedItemIds
|
|
275
282
|
];
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
+
$[59] = onOpenChange;
|
|
284
|
+
$[60] = selectedItemIds;
|
|
285
|
+
$[61] = showMenu;
|
|
286
|
+
$[62] = sortOnCloseFn;
|
|
287
|
+
$[63] = sortedItemIds;
|
|
288
|
+
$[64] = t18;
|
|
289
|
+
$[65] = t19;
|
|
283
290
|
} else {
|
|
284
|
-
t18 = $[
|
|
285
|
-
t19 = $[
|
|
291
|
+
t18 = $[64];
|
|
292
|
+
t19 = $[65];
|
|
286
293
|
}
|
|
287
294
|
useEffect(t18, t19);
|
|
288
295
|
let t20;
|
|
289
|
-
if ($[
|
|
296
|
+
if ($[66] !== selectedItemIds.length || $[67] !== setSelectedItemLength) {
|
|
290
297
|
t20 = () => {
|
|
291
298
|
if (selectedItemIds.length) setSelectedItemLength(selectedItemIds.length);
|
|
292
299
|
};
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
} else t20 = $[
|
|
300
|
+
$[66] = selectedItemIds.length;
|
|
301
|
+
$[67] = setSelectedItemLength;
|
|
302
|
+
$[68] = t20;
|
|
303
|
+
} else t20 = $[68];
|
|
297
304
|
let t21;
|
|
298
|
-
if ($[
|
|
305
|
+
if ($[69] !== selectedItemIds || $[70] !== setSelectedItemLength) {
|
|
299
306
|
t21 = [selectedItemIds, setSelectedItemLength];
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
} else t21 = $[
|
|
307
|
+
$[69] = selectedItemIds;
|
|
308
|
+
$[70] = setSelectedItemLength;
|
|
309
|
+
$[71] = t21;
|
|
310
|
+
} else t21 = $[71];
|
|
304
311
|
useEffect(t20, t21);
|
|
305
312
|
if (selectionVariant === "single" && selectedItemIds.length > 1) throw new Error("Autocomplete: selectionVariant \"single\" cannot be used with multiple selected items");
|
|
306
313
|
const t22 = !showMenu;
|
|
307
314
|
let t23;
|
|
308
|
-
if ($[
|
|
309
|
-
t23 = loading ?
|
|
315
|
+
if ($[72] !== allItemsToRender || $[73] !== ariaLabelledBy || $[74] !== emptyStateText || $[75] !== id || $[76] !== loading || $[77] !== selectionVariant) {
|
|
316
|
+
t23 = loading ? /* @__PURE__ */ jsx("div", {
|
|
310
317
|
className: AutocompleteMenu_module_css_default.SpinnerWrapper,
|
|
311
|
-
children:
|
|
312
|
-
}) :
|
|
318
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
319
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
313
320
|
ref: listContainerRef,
|
|
314
|
-
children: allItemsToRender.length ?
|
|
321
|
+
children: allItemsToRender.length ? /* @__PURE__ */ jsx(ActionList, {
|
|
315
322
|
"data-component": "Autocomplete.Menu",
|
|
316
323
|
selectionVariant,
|
|
317
324
|
role: "listbox",
|
|
318
325
|
id: `${id}-listbox`,
|
|
319
326
|
"aria-labelledby": ariaLabelledBy,
|
|
320
327
|
children: allItemsToRender.map(_temp5)
|
|
321
|
-
}) : emptyStateText !== false && emptyStateText !== null ?
|
|
328
|
+
}) : emptyStateText !== false && emptyStateText !== null ? /* @__PURE__ */ jsx("div", {
|
|
322
329
|
className: AutocompleteMenu_module_css_default.EmptyStateWrapper,
|
|
323
330
|
children: emptyStateText
|
|
324
331
|
}) : null
|
|
325
332
|
});
|
|
326
|
-
$[
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
} else t23 = $[
|
|
333
|
+
$[72] = allItemsToRender;
|
|
334
|
+
$[73] = ariaLabelledBy;
|
|
335
|
+
$[74] = emptyStateText;
|
|
336
|
+
$[75] = id;
|
|
337
|
+
$[76] = loading;
|
|
338
|
+
$[77] = selectionVariant;
|
|
339
|
+
$[78] = t23;
|
|
340
|
+
} else t23 = $[78];
|
|
334
341
|
let t24;
|
|
335
|
-
if ($[
|
|
336
|
-
t24 =
|
|
342
|
+
if ($[79] !== showMenu || $[80] !== t22 || $[81] !== t23) {
|
|
343
|
+
t24 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
337
344
|
isVisible: showMenu,
|
|
338
345
|
hidden: t22,
|
|
339
346
|
children: t23
|
|
340
347
|
});
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
} else t24 = $[
|
|
348
|
+
$[79] = showMenu;
|
|
349
|
+
$[80] = t22;
|
|
350
|
+
$[81] = t23;
|
|
351
|
+
$[82] = t24;
|
|
352
|
+
} else t24 = $[82];
|
|
346
353
|
return t24;
|
|
347
354
|
}
|
|
348
355
|
function _temp5(item_2) {
|
|
349
356
|
const { id: id_0, onAction, children, text, leadingVisual: LeadingVisual, trailingVisual: TrailingVisual, key, role, ...itemProps } = item_2;
|
|
350
|
-
return
|
|
357
|
+
return /* @__PURE__ */ jsxs(ActionList.Item, {
|
|
351
358
|
onSelect: () => onAction(item_2),
|
|
352
359
|
...itemProps,
|
|
353
360
|
id: id_0,
|
|
354
361
|
"data-id": id_0,
|
|
355
362
|
role,
|
|
356
363
|
children: [
|
|
357
|
-
LeadingVisual &&
|
|
364
|
+
LeadingVisual && /* @__PURE__ */ jsx(ActionList.LeadingVisual, { children: isElement(LeadingVisual) ? LeadingVisual : /* @__PURE__ */ jsx(LeadingVisual, {}) }),
|
|
358
365
|
children !== null && children !== void 0 ? children : text,
|
|
359
|
-
TrailingVisual &&
|
|
366
|
+
TrailingVisual && /* @__PURE__ */ jsx(ActionList.TrailingVisual, { children: isElement(TrailingVisual) ? TrailingVisual : /* @__PURE__ */ jsx(TrailingVisual, {}) })
|
|
360
367
|
]
|
|
361
368
|
}, key !== null && key !== void 0 ? key : id_0);
|
|
362
369
|
}
|
|
363
|
-
_temp5.displayName = "_temp5";
|
|
364
370
|
function _temp4(element) {
|
|
365
371
|
return !(element instanceof HTMLInputElement);
|
|
366
372
|
}
|
|
367
373
|
function _temp3() {
|
|
368
|
-
return
|
|
374
|
+
return /* @__PURE__ */ jsx(PlusIcon, {});
|
|
369
375
|
}
|
|
370
|
-
_temp3.displayName = "_temp3";
|
|
371
376
|
function _temp2(acc, curr, i) {
|
|
372
377
|
acc[curr] = i;
|
|
373
378
|
return acc;
|
|
@@ -97,7 +97,7 @@ function AutocompleteOverlay(t0) {
|
|
|
97
97
|
if (typeof window === "undefined") return null;
|
|
98
98
|
let t8;
|
|
99
99
|
if ($[19] !== children || $[20] !== className || $[21] !== closeOptionList || $[22] !== inputRef || $[23] !== mergedScrollContainerRef || $[24] !== overlayProps || $[25] !== (position === null || position === void 0 ? void 0 : position.left) || $[26] !== (position === null || position === void 0 ? void 0 : position.top) || $[27] !== showMenu) {
|
|
100
|
-
t8 = showMenu ?
|
|
100
|
+
t8 = showMenu ? /* @__PURE__ */ jsx(Overlay, {
|
|
101
101
|
returnFocusRef: inputRef,
|
|
102
102
|
preventFocusOnOpen: true,
|
|
103
103
|
onClickOutside: closeOptionList,
|
|
@@ -109,7 +109,7 @@ function AutocompleteOverlay(t0) {
|
|
|
109
109
|
...overlayProps,
|
|
110
110
|
"data-component": "Autocomplete.Overlay",
|
|
111
111
|
children
|
|
112
|
-
}) :
|
|
112
|
+
}) : /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
113
113
|
"aria-hidden": "true",
|
|
114
114
|
children
|
|
115
115
|
});
|
package/dist/Avatar/Avatar.js
CHANGED
|
@@ -77,7 +77,7 @@ const Avatar = /*#__PURE__*/ React.forwardRef(function Avatar(t0, ref) {
|
|
|
77
77
|
} else t10 = $[18];
|
|
78
78
|
let t11;
|
|
79
79
|
if ($[19] !== alt || $[20] !== ref || $[21] !== rest || $[22] !== t10 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7 || $[26] !== t8 || $[27] !== t9) {
|
|
80
|
-
t11 =
|
|
80
|
+
t11 = /* @__PURE__ */ jsx("img", {
|
|
81
81
|
"data-component": "Avatar",
|
|
82
82
|
className: t5,
|
|
83
83
|
ref,
|
|
@@ -29,7 +29,7 @@ const AvatarStackBody = (t0) => {
|
|
|
29
29
|
const t3 = !hasInteractiveChildren && !disableExpand ? 0 : void 0;
|
|
30
30
|
let t4;
|
|
31
31
|
if ($[2] !== children || $[3] !== stackContainer || $[4] !== t1 || $[5] !== t2 || $[6] !== t3) {
|
|
32
|
-
t4 =
|
|
32
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
33
33
|
"data-component": "AvatarStack.Body",
|
|
34
34
|
"data-disable-expand": t1,
|
|
35
35
|
className: t2,
|
|
@@ -175,7 +175,7 @@ const AvatarStack = (t0) => {
|
|
|
175
175
|
} else t16 = $[22];
|
|
176
176
|
let t17;
|
|
177
177
|
if ($[23] !== disableExpand || $[24] !== hasInteractiveChildren || $[25] !== t16) {
|
|
178
|
-
t17 =
|
|
178
|
+
t17 = /* @__PURE__ */ jsxs(AvatarStackBody, {
|
|
179
179
|
disableExpand,
|
|
180
180
|
hasInteractiveChildren,
|
|
181
181
|
stackContainer,
|
|
@@ -188,7 +188,7 @@ const AvatarStack = (t0) => {
|
|
|
188
188
|
} else t17 = $[26];
|
|
189
189
|
let t18;
|
|
190
190
|
if ($[27] !== shape || $[28] !== t13 || $[29] !== t15 || $[30] !== t17 || $[31] !== t7 || $[32] !== t8 || $[33] !== t9 || $[34] !== variant) {
|
|
191
|
-
t18 =
|
|
191
|
+
t18 = /* @__PURE__ */ jsx("span", {
|
|
192
192
|
"data-component": "AvatarStack",
|
|
193
193
|
"data-variant": variant,
|
|
194
194
|
"data-shape": shape,
|
package/dist/Banner/Banner.js
CHANGED
|
@@ -13,11 +13,11 @@ import { AlertIcon, CheckCircleIcon, InfoIcon, StopIcon, XIcon } from "@primer/o
|
|
|
13
13
|
//#region src/Banner/Banner.tsx
|
|
14
14
|
const BannerContext = /*#__PURE__*/ React.createContext(void 0);
|
|
15
15
|
const iconForVariant = {
|
|
16
|
-
critical:
|
|
17
|
-
info:
|
|
18
|
-
success:
|
|
19
|
-
upsell:
|
|
20
|
-
warning:
|
|
16
|
+
critical: /* @__PURE__ */ jsx(StopIcon, {}),
|
|
17
|
+
info: /* @__PURE__ */ jsx(InfoIcon, {}),
|
|
18
|
+
success: /* @__PURE__ */ jsx(CheckCircleIcon, {}),
|
|
19
|
+
upsell: /* @__PURE__ */ jsx(InfoIcon, {}),
|
|
20
|
+
warning: /* @__PURE__ */ jsx(AlertIcon, {})
|
|
21
21
|
};
|
|
22
22
|
const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
23
23
|
var _leadingVisual, _labelledBy;
|
|
@@ -125,7 +125,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
125
125
|
const t15 = visual && supportsCustomIcon ? visual : iconForVariant[variant];
|
|
126
126
|
let t16;
|
|
127
127
|
if ($[24] !== t15) {
|
|
128
|
-
t16 =
|
|
128
|
+
t16 = /* @__PURE__ */ jsx("div", {
|
|
129
129
|
"data-component": "Banner.Icon",
|
|
130
130
|
className: Banner_module_css_default.BannerIcon,
|
|
131
131
|
children: t15
|
|
@@ -135,20 +135,20 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
135
135
|
} else t16 = $[25];
|
|
136
136
|
let t17;
|
|
137
137
|
if ($[26] !== hideTitle || $[27] !== title) {
|
|
138
|
-
t17 = title ? hideTitle ?
|
|
138
|
+
t17 = title ? hideTitle ? /* @__PURE__ */ jsx(VisuallyHidden, { children: /* @__PURE__ */ jsx(BannerTitle, { children: title }) }) : /* @__PURE__ */ jsx(BannerTitle, { children: title }) : null;
|
|
139
139
|
$[26] = hideTitle;
|
|
140
140
|
$[27] = title;
|
|
141
141
|
$[28] = t17;
|
|
142
142
|
} else t17 = $[28];
|
|
143
143
|
let t18;
|
|
144
144
|
if ($[29] !== description) {
|
|
145
|
-
t18 = description ?
|
|
145
|
+
t18 = description ? /* @__PURE__ */ jsx(BannerDescription, { children: description }) : null;
|
|
146
146
|
$[29] = description;
|
|
147
147
|
$[30] = t18;
|
|
148
148
|
} else t18 = $[30];
|
|
149
149
|
let t19;
|
|
150
150
|
if ($[31] !== children || $[32] !== t17 || $[33] !== t18) {
|
|
151
|
-
t19 =
|
|
151
|
+
t19 = /* @__PURE__ */ jsxs("div", {
|
|
152
152
|
"data-component": "Banner.Content",
|
|
153
153
|
className: Banner_module_css_default.BannerContent,
|
|
154
154
|
children: [
|
|
@@ -164,7 +164,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
164
164
|
} else t19 = $[34];
|
|
165
165
|
let t20;
|
|
166
166
|
if ($[35] !== hasActions || $[36] !== primaryAction || $[37] !== secondaryAction) {
|
|
167
|
-
t20 = hasActions ?
|
|
167
|
+
t20 = hasActions ? /* @__PURE__ */ jsx(BannerActions, {
|
|
168
168
|
primaryAction,
|
|
169
169
|
secondaryAction
|
|
170
170
|
}) : null;
|
|
@@ -175,7 +175,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
175
175
|
} else t20 = $[38];
|
|
176
176
|
let t21;
|
|
177
177
|
if ($[39] !== t19 || $[40] !== t20) {
|
|
178
|
-
t21 =
|
|
178
|
+
t21 = /* @__PURE__ */ jsxs("div", {
|
|
179
179
|
className: Banner_module_css_default.BannerContainer,
|
|
180
180
|
children: [t19, t20]
|
|
181
181
|
});
|
|
@@ -185,7 +185,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
185
185
|
} else t21 = $[41];
|
|
186
186
|
let t22;
|
|
187
187
|
if ($[42] !== dismissible || $[43] !== onDismiss) {
|
|
188
|
-
t22 = dismissible ?
|
|
188
|
+
t22 = dismissible ? /* @__PURE__ */ jsx(IconButton, {
|
|
189
189
|
"aria-label": "Dismiss banner",
|
|
190
190
|
onClick: onDismiss,
|
|
191
191
|
className: Banner_module_css_default.BannerDismiss,
|
|
@@ -198,7 +198,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
198
198
|
} else t22 = $[44];
|
|
199
199
|
let t23;
|
|
200
200
|
if ($[45] !== actionsLayout || $[46] !== ref || $[47] !== rest || $[48] !== t10 || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 || $[52] !== t14 || $[53] !== t16 || $[54] !== t21 || $[55] !== t22 || $[56] !== t7 || $[57] !== t8 || $[58] !== t9 || $[59] !== variant) {
|
|
201
|
-
t23 =
|
|
201
|
+
t23 = /* @__PURE__ */ jsxs("section", {
|
|
202
202
|
"data-component": "Banner",
|
|
203
203
|
...rest,
|
|
204
204
|
"aria-labelledby": t7,
|
|
@@ -238,7 +238,7 @@ const Banner = /*#__PURE__*/ React.forwardRef(function Banner(t0, forwardRef) {
|
|
|
238
238
|
} else t23 = $[60];
|
|
239
239
|
let t24;
|
|
240
240
|
if ($[61] !== t23 || $[62] !== t6) {
|
|
241
|
-
t24 =
|
|
241
|
+
t24 = /* @__PURE__ */ jsx(BannerContext.Provider, {
|
|
242
242
|
value: t6,
|
|
243
243
|
children: t23
|
|
244
244
|
});
|
|
@@ -282,7 +282,7 @@ function BannerTitle(props) {
|
|
|
282
282
|
} else t1 = $[7];
|
|
283
283
|
let t2;
|
|
284
284
|
if ($[8] !== Heading || $[9] !== children || $[10] !== rest || $[11] !== t1 || $[12] !== titleId) {
|
|
285
|
-
t2 =
|
|
285
|
+
t2 = /* @__PURE__ */ jsx(Heading, {
|
|
286
286
|
...rest,
|
|
287
287
|
id: titleId,
|
|
288
288
|
className: t1,
|
|
@@ -323,7 +323,7 @@ function BannerDescription(t0) {
|
|
|
323
323
|
} else t1 = $[5];
|
|
324
324
|
let t2;
|
|
325
325
|
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
326
|
-
t2 =
|
|
326
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
327
327
|
...rest,
|
|
328
328
|
className: t1,
|
|
329
329
|
"data-component": "Banner.Description",
|
|
@@ -343,7 +343,7 @@ function BannerActions(t0) {
|
|
|
343
343
|
const t2 = primaryAction !== null && primaryAction !== void 0 ? primaryAction : null;
|
|
344
344
|
let t3;
|
|
345
345
|
if ($[0] !== t1 || $[1] !== t2) {
|
|
346
|
-
t3 =
|
|
346
|
+
t3 = /* @__PURE__ */ jsxs("div", {
|
|
347
347
|
className: Banner_module_css_default.BannerActionsContainer,
|
|
348
348
|
"data-primary-action": "trailing",
|
|
349
349
|
children: [t1, t2]
|
|
@@ -356,7 +356,7 @@ function BannerActions(t0) {
|
|
|
356
356
|
const t5 = secondaryAction !== null && secondaryAction !== void 0 ? secondaryAction : null;
|
|
357
357
|
let t6;
|
|
358
358
|
if ($[3] !== t4 || $[4] !== t5) {
|
|
359
|
-
t6 =
|
|
359
|
+
t6 = /* @__PURE__ */ jsxs("div", {
|
|
360
360
|
className: Banner_module_css_default.BannerActionsContainer,
|
|
361
361
|
"data-primary-action": "leading",
|
|
362
362
|
children: [t4, t5]
|
|
@@ -367,7 +367,7 @@ function BannerActions(t0) {
|
|
|
367
367
|
} else t6 = $[5];
|
|
368
368
|
let t7;
|
|
369
369
|
if ($[6] !== t3 || $[7] !== t6) {
|
|
370
|
-
t7 =
|
|
370
|
+
t7 = /* @__PURE__ */ jsxs("div", {
|
|
371
371
|
className: Banner_module_css_default.BannerActions,
|
|
372
372
|
"data-component": "Banner.Actions",
|
|
373
373
|
children: [t3, t6]
|
|
@@ -402,7 +402,7 @@ const BannerPrimaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
402
402
|
} else t1 = $[5];
|
|
403
403
|
let t2;
|
|
404
404
|
if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
|
|
405
|
-
t2 =
|
|
405
|
+
t2 = /* @__PURE__ */ jsx(ButtonComponent, {
|
|
406
406
|
"data-component": "Banner.PrimaryAction",
|
|
407
407
|
ref: forwardedRef,
|
|
408
408
|
className: t1,
|
|
@@ -443,7 +443,7 @@ const BannerSecondaryAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
443
443
|
} else t1 = $[5];
|
|
444
444
|
let t2;
|
|
445
445
|
if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
|
|
446
|
-
t2 =
|
|
446
|
+
t2 = /* @__PURE__ */ jsx(ButtonComponent, {
|
|
447
447
|
"data-component": "Banner.SecondaryAction",
|
|
448
448
|
ref: forwardedRef,
|
|
449
449
|
className: t1,
|
package/dist/BaseStyles.js
CHANGED
|
@@ -56,7 +56,7 @@ function BaseStyles(t0) {
|
|
|
56
56
|
} else t4 = $[13];
|
|
57
57
|
let t5;
|
|
58
58
|
if ($[14] !== Component || $[15] !== children || $[16] !== newClassName || $[17] !== rest || $[18] !== t4) {
|
|
59
|
-
t5 =
|
|
59
|
+
t5 = /* @__PURE__ */ jsx(Component, {
|
|
60
60
|
"data-component": "BaseStyles",
|
|
61
61
|
className: newClassName,
|
|
62
62
|
"data-portal-root": true,
|
|
@@ -3,7 +3,6 @@ import { ButtonComponent } from "../Button/Button.js";
|
|
|
3
3
|
import Link from "../Link/Link.js";
|
|
4
4
|
import { Provider, useBlankslate } from "./BlankslateContext.js";
|
|
5
5
|
import Blankslate_module_css_default from "./Blankslate.module.css.js";
|
|
6
|
-
import "react";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { clsx } from "clsx";
|
|
9
8
|
//#region src/Blankslate/Blankslate.tsx
|
|
@@ -54,7 +53,7 @@ function Blankslate(t0) {
|
|
|
54
53
|
const t6 = spacious ? "" : void 0;
|
|
55
54
|
let t7;
|
|
56
55
|
if ($[12] !== children || $[13] !== size || $[14] !== t3 || $[15] !== t4 || $[16] !== t5 || $[17] !== t6) {
|
|
57
|
-
t7 =
|
|
56
|
+
t7 = /* @__PURE__ */ jsx("div", {
|
|
58
57
|
className: t3,
|
|
59
58
|
"data-component": "Blankslate",
|
|
60
59
|
"data-border": t4,
|
|
@@ -73,7 +72,7 @@ function Blankslate(t0) {
|
|
|
73
72
|
} else t7 = $[18];
|
|
74
73
|
let t8;
|
|
75
74
|
if ($[19] !== rest || $[20] !== t7) {
|
|
76
|
-
t8 =
|
|
75
|
+
t8 = /* @__PURE__ */ jsx("div", {
|
|
77
76
|
...rest,
|
|
78
77
|
className: Blankslate_module_css_default.Container,
|
|
79
78
|
children: t7
|
|
@@ -84,7 +83,7 @@ function Blankslate(t0) {
|
|
|
84
83
|
} else t8 = $[21];
|
|
85
84
|
let t9;
|
|
86
85
|
if ($[22] !== t8 || $[23] !== value) {
|
|
87
|
-
t9 =
|
|
86
|
+
t9 = /* @__PURE__ */ jsx(Provider, {
|
|
88
87
|
value,
|
|
89
88
|
children: t8
|
|
90
89
|
});
|
|
@@ -118,7 +117,7 @@ function Visual(t0) {
|
|
|
118
117
|
} else t1 = $[5];
|
|
119
118
|
let t2;
|
|
120
119
|
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
121
|
-
t2 =
|
|
120
|
+
t2 = /* @__PURE__ */ jsx("span", {
|
|
122
121
|
...rest,
|
|
123
122
|
className: t1,
|
|
124
123
|
"data-component": "Blankslate.Visual",
|
|
@@ -159,7 +158,7 @@ function Heading(t0) {
|
|
|
159
158
|
} else t2 = $[6];
|
|
160
159
|
let t3;
|
|
161
160
|
if ($[7] !== Component || $[8] !== children || $[9] !== rest || $[10] !== t2) {
|
|
162
|
-
t3 =
|
|
161
|
+
t3 = /* @__PURE__ */ jsx(Component, {
|
|
163
162
|
...rest,
|
|
164
163
|
className: t2,
|
|
165
164
|
"data-component": "Blankslate.Heading",
|
|
@@ -197,7 +196,7 @@ function Description(t0) {
|
|
|
197
196
|
} else t1 = $[5];
|
|
198
197
|
let t2;
|
|
199
198
|
if ($[6] !== children || $[7] !== rest || $[8] !== t1) {
|
|
200
|
-
t2 =
|
|
199
|
+
t2 = /* @__PURE__ */ jsx("p", {
|
|
201
200
|
...rest,
|
|
202
201
|
className: t1,
|
|
203
202
|
"data-component": "Blankslate.Description",
|
|
@@ -236,10 +235,10 @@ function PrimaryAction(t0) {
|
|
|
236
235
|
const t3 = size === "small" ? "small" : void 0;
|
|
237
236
|
let t4;
|
|
238
237
|
if ($[5] !== children || $[6] !== href || $[7] !== props || $[8] !== t2 || $[9] !== t3) {
|
|
239
|
-
t4 =
|
|
238
|
+
t4 = /* @__PURE__ */ jsx("div", {
|
|
240
239
|
className: t1,
|
|
241
240
|
"data-component": "Blankslate.PrimaryAction",
|
|
242
|
-
children:
|
|
241
|
+
children: /* @__PURE__ */ jsx(ButtonComponent, {
|
|
243
242
|
...props,
|
|
244
243
|
as: t2,
|
|
245
244
|
href,
|
|
@@ -267,10 +266,10 @@ function SecondaryAction(t0) {
|
|
|
267
266
|
} else t1 = $[0];
|
|
268
267
|
let t2;
|
|
269
268
|
if ($[1] !== children || $[2] !== href) {
|
|
270
|
-
t2 =
|
|
269
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
271
270
|
className: t1,
|
|
272
271
|
"data-component": "Blankslate.SecondaryAction",
|
|
273
|
-
children:
|
|
272
|
+
children: /* @__PURE__ */ jsx(Link, {
|
|
274
273
|
href,
|
|
275
274
|
children
|
|
276
275
|
})
|
|
@@ -32,7 +32,7 @@ function BranchName(props, ref) {
|
|
|
32
32
|
} else t1 = $[6];
|
|
33
33
|
let t2;
|
|
34
34
|
if ($[7] !== Component || $[8] !== children || $[9] !== ref || $[10] !== rest || $[11] !== t1) {
|
|
35
|
-
t2 =
|
|
35
|
+
t2 = /* @__PURE__ */ jsx(Component, {
|
|
36
36
|
...rest,
|
|
37
37
|
ref,
|
|
38
38
|
className: t1,
|