@primer/react 38.40.2-rc.fdfbe71e5 → 38.41.0-rc.27afe233f
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 +9 -1
- package/dist/ActionBar/ActionBar.js +30 -33
- 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/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 +1 -1
- package/generated/hooks.json +1 -1
- package/package.json +3 -3
- package/dist/Button/ButtonBase-014fae23.css +0 -2
- package/dist/Button/ButtonBase-014fae23.css.map +0 -1
|
@@ -128,19 +128,19 @@ const UnderlinePanels = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabel
|
|
|
128
128
|
const providedValue = controlledValue !== null && controlledValue !== void 0 ? controlledValue : defaultValue;
|
|
129
129
|
warning(providedValue !== void 0 && tabValues.length > 0 && !tabValues.includes(providedValue), `UnderlinePanels: the selected value "${providedValue}" does not match any tab, so the first tab is selected instead. Provide a \`value\`/\`defaultValue\` that matches a \`UnderlinePanels.Tab\` \`value\`.`);
|
|
130
130
|
}
|
|
131
|
-
return
|
|
131
|
+
return /* @__PURE__ */ jsx(UnderlinePanelsContext.Provider, {
|
|
132
132
|
value: contextValue,
|
|
133
|
-
children:
|
|
133
|
+
children: /* @__PURE__ */ jsxs(Tabs, {
|
|
134
134
|
id: parentId,
|
|
135
135
|
value: effectiveValue,
|
|
136
136
|
activationMode,
|
|
137
137
|
onValueChange: ({ value }) => handleValueChange(value),
|
|
138
|
-
children: [
|
|
138
|
+
children: [/* @__PURE__ */ jsx(UnderlineWrapper, {
|
|
139
139
|
ref: wrapperRef,
|
|
140
140
|
"data-icons-visible": iconsVisible,
|
|
141
141
|
className: clsx(className, UnderlinePanels_module_css_default.StyledUnderlineWrapper),
|
|
142
142
|
...props,
|
|
143
|
-
children:
|
|
143
|
+
children: /* @__PURE__ */ jsx(UnderlineItemList, {
|
|
144
144
|
ref: listRef,
|
|
145
145
|
role: tabListProps.role,
|
|
146
146
|
"aria-label": tabListProps["aria-label"],
|
|
@@ -153,12 +153,11 @@ const UnderlinePanels = ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabel
|
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
UnderlinePanels.displayName = "UnderlinePanels";
|
|
157
156
|
const TabImpl = ({ onSelect, value, ...itemProps }) => {
|
|
158
157
|
const { loadingCounters } = useContext(UnderlinePanelsContext);
|
|
159
158
|
const { tabProps } = useTab({ value: value !== null && value !== void 0 ? value : "" });
|
|
160
159
|
const { onKeyDown: tabOnKeyDown, onMouseDown: tabOnMouseDown, onFocus: tabOnFocus, ...restTabProps } = tabProps;
|
|
161
|
-
return
|
|
160
|
+
return /* @__PURE__ */ jsx(UnderlineItem, {
|
|
162
161
|
as: "button",
|
|
163
162
|
...itemProps,
|
|
164
163
|
...restTabProps,
|
|
@@ -175,19 +174,17 @@ const TabImpl = ({ onSelect, value, ...itemProps }) => {
|
|
|
175
174
|
loadingCounters
|
|
176
175
|
});
|
|
177
176
|
};
|
|
178
|
-
TabImpl.displayName = "TabImpl";
|
|
179
177
|
TabImpl.displayName = "UnderlinePanels.Tab";
|
|
180
178
|
const Tab = /*#__PURE__*/ React.memo(TabImpl);
|
|
181
179
|
Tab.displayName = "UnderlinePanels.Tab";
|
|
182
180
|
const PanelImpl = ({ children, value, ...panelRest }) => {
|
|
183
181
|
const { tabPanelProps } = useTabPanel({ value: value !== null && value !== void 0 ? value : "" });
|
|
184
|
-
return
|
|
182
|
+
return /* @__PURE__ */ jsx("div", {
|
|
185
183
|
...panelRest,
|
|
186
184
|
...tabPanelProps,
|
|
187
185
|
children
|
|
188
186
|
});
|
|
189
187
|
};
|
|
190
|
-
PanelImpl.displayName = "PanelImpl";
|
|
191
188
|
PanelImpl.displayName = "UnderlinePanels.Panel";
|
|
192
189
|
const Panel = PanelImpl;
|
|
193
190
|
Panel.displayName = "UnderlinePanels.Panel";
|
|
@@ -3,10 +3,10 @@ import { Announce } from "../live-region/Announce.js";
|
|
|
3
3
|
import { AriaAlert } from "../live-region/AriaAlert.js";
|
|
4
4
|
import { AriaStatus } from "../live-region/AriaStatus.js";
|
|
5
5
|
import { useSlots } from "../hooks/useSlots.js";
|
|
6
|
-
import { ButtonBase } from "../Button/ButtonBase.js";
|
|
7
6
|
import { DefaultFeatureFlags } from "../FeatureFlags/DefaultFeatureFlags.js";
|
|
8
7
|
import { FeatureFlags } from "../FeatureFlags/FeatureFlags.js";
|
|
9
8
|
import { useFeatureFlag } from "../FeatureFlags/useFeatureFlag.js";
|
|
9
|
+
import { ButtonBase } from "../Button/ButtonBase.js";
|
|
10
10
|
import { KeybindingHint } from "../KeybindingHint/KeybindingHint.js";
|
|
11
11
|
import { getAccessibleKeybindingHintString } from "../KeybindingHint/utils.js";
|
|
12
12
|
import { Tooltip } from "../TooltipV2/Tooltip.js";
|
|
@@ -64,18 +64,6 @@ function useMergedRefs(refA, refB) {
|
|
|
64
64
|
} else t0 = $[2];
|
|
65
65
|
return t0;
|
|
66
66
|
}
|
|
67
|
-
/**
|
|
68
|
-
* React 19 supports callback refs that can return a cleanup function. If a cleanup function is returned, the
|
|
69
|
-
* cleanup is called on unmount **instead** of setting the ref to null.
|
|
70
|
-
*/
|
|
71
|
-
/**
|
|
72
|
-
* Supporting React 18 and 19 while alleviating the need for any hacks or casts in consumers:
|
|
73
|
-
* - `ForwardedRef` from the React 18 `forwardRef` HOC
|
|
74
|
-
* - `React19RefCallback` for callback refs that can return a cleanup function (this is included in `Ref` in React 19
|
|
75
|
-
* but not in 18)
|
|
76
|
-
* - `Ref` for standard refs from `useRef` or passed in as React 19 prop
|
|
77
|
-
* - `undefined` to allow for easy use of optional `ref` props in React 19
|
|
78
|
-
*/
|
|
79
67
|
function setRef(ref, value) {
|
|
80
68
|
if (typeof ref === "function") return ref(value);
|
|
81
69
|
else if (ref) ref.current = value;
|
|
@@ -6,11 +6,6 @@ const viewportRanges = {
|
|
|
6
6
|
wide: "(min-width: 1400px)"
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
* Flattens all possible value types into single union type
|
|
10
|
-
* For example, if `T` is `'none' | 'line' | Responsive<'none' | 'line' | 'filled'>`,
|
|
11
|
-
* `FlattenResponsiveValue<T>` will be `'none' | 'line' | 'filled'`
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
9
|
* Checks if the value is a responsive value.
|
|
15
10
|
* In other words, is it an object with viewport range keys?
|
|
16
11
|
*/
|
package/dist/hooks/useSlots.js
CHANGED
|
@@ -2,54 +2,6 @@ import { warning } from "../utils/warning.js";
|
|
|
2
2
|
import { isSlot } from "../utils/is-slot.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
//#region src/hooks/useSlots.ts
|
|
5
|
-
/**
|
|
6
|
-
* useSlots - Extract slot components from children for SSR-compatible slot APIs.
|
|
7
|
-
*
|
|
8
|
-
* Given a list of children and a config mapping slot names to component types,
|
|
9
|
-
* separates children into two groups: matched slots and the rest.
|
|
10
|
-
*
|
|
11
|
-
* Config: { leadingVisual: LeadingVisual, description: Description }
|
|
12
|
-
*
|
|
13
|
-
* Children: Matching: Output:
|
|
14
|
-
* +----------------+ slots = {
|
|
15
|
-
* | LeadingVisual | -> matches slot 0 --> leadingVisual: <LeadingVisual />
|
|
16
|
-
* | "Project name" | -> no match --> description: <Description />
|
|
17
|
-
* | Description | -> matches slot 1 --> }
|
|
18
|
-
* | TrailingVisual | -> no match --> rest = ["Project name", <TrailingVisual />]
|
|
19
|
-
* +----------------+
|
|
20
|
-
*
|
|
21
|
-
* Performance-sensitive: called per item in lists (e.g. 100-item ActionList
|
|
22
|
-
* calls this 101 times per render).
|
|
23
|
-
*
|
|
24
|
-
* Once all slots are filled, remaining children skip matching entirely in
|
|
25
|
-
* production (single integer comparison). In dev, we still scan for duplicates
|
|
26
|
-
* to emit a warning.
|
|
27
|
-
*
|
|
28
|
-
* Flow per child:
|
|
29
|
-
*
|
|
30
|
-
* child ──> isValidElement? ──no──> rest[]
|
|
31
|
-
* |
|
|
32
|
-
* yes
|
|
33
|
-
* |
|
|
34
|
-
* v
|
|
35
|
-
* all slots filled? ──yes──> rest[] (prod)
|
|
36
|
-
* | |
|
|
37
|
-
* no [dev: check for
|
|
38
|
-
* | duplicate warning]
|
|
39
|
-
* v
|
|
40
|
-
* match against unfilled slots
|
|
41
|
-
* |
|
|
42
|
-
* found match? ──no──> rest[]
|
|
43
|
-
* |
|
|
44
|
-
* yes
|
|
45
|
-
* |
|
|
46
|
-
* v
|
|
47
|
-
* slots[key] = child, slotsFound++
|
|
48
|
-
*
|
|
49
|
-
* Slot config supports two matcher styles:
|
|
50
|
-
* 1. Component reference: { visual: LeadingVisual }
|
|
51
|
-
* 2. Component + test fn: { block: [Description, props => props.variant === 'block'] }
|
|
52
|
-
*/
|
|
53
5
|
/** Check if a child element matches a slot config entry, either by direct type comparison or slot symbol. */
|
|
54
6
|
function childMatchesSlot(child, slotValue) {
|
|
55
7
|
if (Array.isArray(slotValue)) {
|
|
@@ -75,16 +75,16 @@ const CheckboxOrRadioGroup = (t0) => {
|
|
|
75
75
|
} else t8 = $[13];
|
|
76
76
|
let t9;
|
|
77
77
|
if ($[14] !== isLegendVisible || $[15] !== labelChild || $[16] !== required || $[17] !== requiredMessageId || $[18] !== slots.caption || $[19] !== slots.label || $[20] !== slots.validation) {
|
|
78
|
-
t9 = labelChild ?
|
|
78
|
+
t9 = labelChild ? /* @__PURE__ */ jsxs("legend", {
|
|
79
79
|
className: CheckboxOrRadioGroup_module_css_default.GroupLegend,
|
|
80
80
|
"data-legend-visible": isLegendVisible ? "" : void 0,
|
|
81
81
|
children: [
|
|
82
82
|
slots.label,
|
|
83
|
-
required &&
|
|
83
|
+
required && /* @__PURE__ */ jsx(VisuallyHidden, { children: ", required" }),
|
|
84
84
|
slots.caption,
|
|
85
|
-
/*#__PURE__*/ React.isValidElement(slots.validation) && slots.validation.props.children &&
|
|
85
|
+
/*#__PURE__*/ React.isValidElement(slots.validation) && slots.validation.props.children && /* @__PURE__ */ jsx(VisuallyHidden, { children: slots.validation.props.children })
|
|
86
86
|
]
|
|
87
|
-
}) :
|
|
87
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [slots.caption, required && requiredMessageId && /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
88
88
|
id: requiredMessageId,
|
|
89
89
|
children: "Required"
|
|
90
90
|
})] });
|
|
@@ -124,7 +124,7 @@ const CheckboxOrRadioGroup = (t0) => {
|
|
|
124
124
|
} else t11 = $[29];
|
|
125
125
|
let t12;
|
|
126
126
|
if ($[30] !== t10 || $[31] !== t11) {
|
|
127
|
-
t12 =
|
|
127
|
+
t12 = /* @__PURE__ */ jsx("div", {
|
|
128
128
|
className: CheckboxOrRadioGroup_module_css_default.Body,
|
|
129
129
|
...t10,
|
|
130
130
|
children: t11
|
|
@@ -135,7 +135,7 @@ const CheckboxOrRadioGroup = (t0) => {
|
|
|
135
135
|
} else t12 = $[32];
|
|
136
136
|
let t13;
|
|
137
137
|
if ($[33] !== Component || $[34] !== dataComponentProp || $[35] !== t12 || $[36] !== t6 || $[37] !== t7 || $[38] !== t8 || $[39] !== t9) {
|
|
138
|
-
t13 =
|
|
138
|
+
t13 = /* @__PURE__ */ jsxs(Component, {
|
|
139
139
|
"data-component": dataComponentProp,
|
|
140
140
|
className: t6,
|
|
141
141
|
"data-validation": t7,
|
|
@@ -153,7 +153,7 @@ const CheckboxOrRadioGroup = (t0) => {
|
|
|
153
153
|
} else t13 = $[40];
|
|
154
154
|
let t14;
|
|
155
155
|
if ($[41] !== labelChild || $[42] !== slots.validation || $[43] !== validationChild) {
|
|
156
|
-
t14 = validationChild &&
|
|
156
|
+
t14 = validationChild && /* @__PURE__ */ jsx(ValidationAnimationContainer, {
|
|
157
157
|
"aria-hidden": Boolean(labelChild),
|
|
158
158
|
show: true,
|
|
159
159
|
children: slots.validation
|
|
@@ -165,14 +165,14 @@ const CheckboxOrRadioGroup = (t0) => {
|
|
|
165
165
|
} else t14 = $[44];
|
|
166
166
|
let t15;
|
|
167
167
|
if ($[45] !== t13 || $[46] !== t14) {
|
|
168
|
-
t15 =
|
|
168
|
+
t15 = /* @__PURE__ */ jsxs("div", { children: [t13, t14] });
|
|
169
169
|
$[45] = t13;
|
|
170
170
|
$[46] = t14;
|
|
171
171
|
$[47] = t15;
|
|
172
172
|
} else t15 = $[47];
|
|
173
173
|
let t16;
|
|
174
174
|
if ($[48] !== t15 || $[49] !== t5) {
|
|
175
|
-
t16 =
|
|
175
|
+
t16 = /* @__PURE__ */ jsx(CheckboxOrRadioGroupContext.Provider, {
|
|
176
176
|
value: t5,
|
|
177
177
|
children: t15
|
|
178
178
|
});
|
|
@@ -19,7 +19,7 @@ const CheckboxOrRadioGroupCaption = (t0) => {
|
|
|
19
19
|
const t2 = parentName ? `${parentName}.Caption` : void 0;
|
|
20
20
|
let t3;
|
|
21
21
|
if ($[2] !== captionId || $[3] !== children || $[4] !== t1 || $[5] !== t2) {
|
|
22
|
-
t3 =
|
|
22
|
+
t3 = /* @__PURE__ */ jsx(Text_default, {
|
|
23
23
|
className: t1,
|
|
24
24
|
id: captionId,
|
|
25
25
|
"data-component": t2,
|
|
@@ -24,13 +24,13 @@ const CheckboxOrRadioGroupLabel = (t0) => {
|
|
|
24
24
|
const t6 = parentName ? `${parentName}.Label` : void 0;
|
|
25
25
|
let t7;
|
|
26
26
|
if ($[2] !== children || $[3] !== required) {
|
|
27
|
-
t7 = required ?
|
|
27
|
+
t7 = required ? /* @__PURE__ */ jsxs(Stack, {
|
|
28
28
|
direction: "horizontal",
|
|
29
29
|
gap: "none",
|
|
30
|
-
children: [
|
|
30
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
31
31
|
className: CheckboxOrRadioGroup_module_css_default.GroupLabelChildren,
|
|
32
32
|
children
|
|
33
|
-
}),
|
|
33
|
+
}), /* @__PURE__ */ jsx("span", { children: "*" })]
|
|
34
34
|
}) : children;
|
|
35
35
|
$[2] = children;
|
|
36
36
|
$[3] = required;
|
|
@@ -38,7 +38,7 @@ const CheckboxOrRadioGroupLabel = (t0) => {
|
|
|
38
38
|
} else t7 = $[4];
|
|
39
39
|
let t8;
|
|
40
40
|
if ($[5] !== t2 || $[6] !== t3 || $[7] !== t4 || $[8] !== t5 || $[9] !== t6 || $[10] !== t7) {
|
|
41
|
-
t8 =
|
|
41
|
+
t8 = /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
42
42
|
className: t2,
|
|
43
43
|
isVisible: t3,
|
|
44
44
|
title: t4,
|
|
@@ -12,7 +12,7 @@ const CheckboxOrRadioGroupValidation = (t0) => {
|
|
|
12
12
|
const t2 = parentName ? `${parentName}.Validation` : void 0;
|
|
13
13
|
let t3;
|
|
14
14
|
if ($[0] !== children || $[1] !== t2 || $[2] !== validationMessageId || $[3] !== variant) {
|
|
15
|
-
t3 =
|
|
15
|
+
t3 = /* @__PURE__ */ jsx(InputValidation, {
|
|
16
16
|
validationStatus: variant,
|
|
17
17
|
id: validationMessageId,
|
|
18
18
|
"data-component": t2,
|
|
@@ -20,7 +20,7 @@ const ConditionalWrapper = (props) => {
|
|
|
20
20
|
if (condition) {
|
|
21
21
|
let t0;
|
|
22
22
|
if ($[4] !== children || $[5] !== rest) {
|
|
23
|
-
t0 =
|
|
23
|
+
t0 = /* @__PURE__ */ jsx("div", {
|
|
24
24
|
...rest,
|
|
25
25
|
children
|
|
26
26
|
});
|
|
@@ -32,7 +32,7 @@ const ConditionalWrapper = (props) => {
|
|
|
32
32
|
} else {
|
|
33
33
|
let t0;
|
|
34
34
|
if ($[7] !== children) {
|
|
35
|
-
t0 =
|
|
35
|
+
t0 = /* @__PURE__ */ jsx(Fragment, { children });
|
|
36
36
|
$[7] = children;
|
|
37
37
|
$[8] = t0;
|
|
38
38
|
} else t0 = $[8];
|
|
@@ -55,9 +55,9 @@ function InputLabel(t0) {
|
|
|
55
55
|
let t5;
|
|
56
56
|
if ($[14] !== children || $[15] !== required || $[16] !== requiredIndicator || $[17] !== requiredText) {
|
|
57
57
|
var _requiredText;
|
|
58
|
-
t5 = required || requiredText ?
|
|
58
|
+
t5 = required || requiredText ? /* @__PURE__ */ jsxs("span", {
|
|
59
59
|
className: InputLabel_module_css_default.RequiredText,
|
|
60
|
-
children: [
|
|
60
|
+
children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx("span", {
|
|
61
61
|
"aria-hidden": requiredIndicator ? void 0 : true,
|
|
62
62
|
children: (_requiredText = requiredText) !== null && _requiredText !== void 0 ? _requiredText : "*"
|
|
63
63
|
})]
|
|
@@ -70,7 +70,7 @@ function InputLabel(t0) {
|
|
|
70
70
|
} else t5 = $[18];
|
|
71
71
|
let t6;
|
|
72
72
|
if ($[19] !== Component || $[20] !== htmlFor || $[21] !== id || $[22] !== props || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
|
|
73
|
-
t6 =
|
|
73
|
+
t6 = /* @__PURE__ */ jsx(Component, {
|
|
74
74
|
"data-control-disabled": t2,
|
|
75
75
|
"data-visually-hidden": t3,
|
|
76
76
|
htmlFor,
|
|
@@ -46,11 +46,11 @@ const InputValidation = (t0) => {
|
|
|
46
46
|
} else t1 = $[9];
|
|
47
47
|
let t2;
|
|
48
48
|
if ($[10] !== IconComponent) {
|
|
49
|
-
t2 = IconComponent ?
|
|
49
|
+
t2 = IconComponent ? /* @__PURE__ */ jsx("span", {
|
|
50
50
|
"aria-hidden": "true",
|
|
51
51
|
className: InputValidation_module_css_default.ValidationIcon,
|
|
52
52
|
style: { "--inputValidation-iconSize": 16 },
|
|
53
|
-
children:
|
|
53
|
+
children: /* @__PURE__ */ jsx(IconComponent, {
|
|
54
54
|
size: 12,
|
|
55
55
|
fill: "currentColor"
|
|
56
56
|
})
|
|
@@ -65,7 +65,7 @@ const InputValidation = (t0) => {
|
|
|
65
65
|
} else t3 = $[12];
|
|
66
66
|
let t4;
|
|
67
67
|
if ($[13] !== children || $[14] !== id) {
|
|
68
|
-
t4 =
|
|
68
|
+
t4 = /* @__PURE__ */ jsx("span", {
|
|
69
69
|
id,
|
|
70
70
|
className: InputValidation_module_css_default.ValidationText,
|
|
71
71
|
style: t3,
|
|
@@ -77,7 +77,7 @@ const InputValidation = (t0) => {
|
|
|
77
77
|
} else t4 = $[15];
|
|
78
78
|
let t5;
|
|
79
79
|
if ($[16] !== dataComponent || $[17] !== rest || $[18] !== style || $[19] !== t1 || $[20] !== t2 || $[21] !== t4 || $[22] !== validationStatus) {
|
|
80
|
-
t5 =
|
|
80
|
+
t5 = /* @__PURE__ */ jsxs(Text_default, {
|
|
81
81
|
...rest,
|
|
82
82
|
className: t1,
|
|
83
83
|
"data-validation-status": validationStatus,
|
|
@@ -132,7 +132,7 @@ function OverflowObserverProvider(t0) {
|
|
|
132
132
|
useEffect(t7, t8);
|
|
133
133
|
let t9;
|
|
134
134
|
if ($[12] !== children || $[13] !== observe) {
|
|
135
|
-
t9 =
|
|
135
|
+
t9 = /* @__PURE__ */ jsx(OverflowObserverContext.Provider, {
|
|
136
136
|
value: observe,
|
|
137
137
|
children
|
|
138
138
|
});
|
|
@@ -12,7 +12,7 @@ const ConditionalTooltip = (t0) => {
|
|
|
12
12
|
const { "aria-label": ariaLabel, children, tooltipDirection } = t0;
|
|
13
13
|
let t1;
|
|
14
14
|
if ($[0] !== ariaLabel || $[1] !== children || $[2] !== tooltipDirection) {
|
|
15
|
-
t1 = ariaLabel ?
|
|
15
|
+
t1 = ariaLabel ? /* @__PURE__ */ jsx(Tooltip, {
|
|
16
16
|
text: ariaLabel,
|
|
17
17
|
direction: tooltipDirection,
|
|
18
18
|
className: TextInputInnerAction_module_css_default.ConditionalTooltip,
|
|
@@ -25,7 +25,7 @@ const ConditionalTooltip = (t0) => {
|
|
|
25
25
|
} else t1 = $[3];
|
|
26
26
|
let t2;
|
|
27
27
|
if ($[4] !== t1) {
|
|
28
|
-
t2 =
|
|
28
|
+
t2 = /* @__PURE__ */ jsx(Fragment$1, { children: t1 });
|
|
29
29
|
$[4] = t1;
|
|
30
30
|
$[5] = t2;
|
|
31
31
|
} else t2 = $[5];
|
|
@@ -95,10 +95,10 @@ const TextInputAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
95
95
|
let t7;
|
|
96
96
|
if ($[18] !== accessibleLabel || $[19] !== ariaLabel || $[20] !== children || $[21] !== forwardedRef || $[22] !== icon || $[23] !== rest || $[24] !== styleProps || $[25] !== tooltipDirection || $[26] !== variant) {
|
|
97
97
|
var _tooltipDirection;
|
|
98
|
-
t7 =
|
|
98
|
+
t7 = /* @__PURE__ */ jsx("span", {
|
|
99
99
|
className: t6,
|
|
100
100
|
"data-component": "TextInput.Action",
|
|
101
|
-
children: icon && !children && ariaLabel ?
|
|
101
|
+
children: icon && !children && ariaLabel ? /* @__PURE__ */ jsx(IconButton, {
|
|
102
102
|
...accessibleLabel,
|
|
103
103
|
tooltipDirection: (_tooltipDirection = tooltipDirection) !== null && _tooltipDirection !== void 0 ? _tooltipDirection : "s",
|
|
104
104
|
variant,
|
|
@@ -108,9 +108,9 @@ const TextInputAction = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
108
108
|
...styleProps,
|
|
109
109
|
...rest,
|
|
110
110
|
ref: forwardedRef
|
|
111
|
-
}) :
|
|
111
|
+
}) : /* @__PURE__ */ jsx(ConditionalTooltip, {
|
|
112
112
|
"aria-label": ariaLabel,
|
|
113
|
-
children:
|
|
113
|
+
children: /* @__PURE__ */ jsx(ButtonComponent, {
|
|
114
114
|
variant,
|
|
115
115
|
type: "button",
|
|
116
116
|
...styleProps,
|
|
@@ -14,7 +14,7 @@ const TextInputInnerVisualSlot = (t0) => {
|
|
|
14
14
|
const t2 = isLeading ? `${componentPrefix}.LeadingVisual` : `${componentPrefix}.TrailingVisual`;
|
|
15
15
|
let t3;
|
|
16
16
|
if ($[0] !== children || $[1] !== id || $[2] !== t2) {
|
|
17
|
-
t3 =
|
|
17
|
+
t3 = /* @__PURE__ */ jsx("span", {
|
|
18
18
|
className: "TextInput-icon",
|
|
19
19
|
id,
|
|
20
20
|
"aria-hidden": "true",
|
|
@@ -31,7 +31,7 @@ const TextInputInnerVisualSlot = (t0) => {
|
|
|
31
31
|
const t2 = isLeading ? `${componentPrefix}.LeadingVisual` : `${componentPrefix}.TrailingVisual`;
|
|
32
32
|
let t3;
|
|
33
33
|
if ($[4] !== children || $[5] !== showLoadingIndicator) {
|
|
34
|
-
t3 = children &&
|
|
34
|
+
t3 = children && /* @__PURE__ */ jsx("div", {
|
|
35
35
|
className: clsx(showLoadingIndicator ? TextInputInnerVisualSlot_module_css_default.SpinnerHidden : TextInputInnerVisualSlot_module_css_default.SpinnerVisible),
|
|
36
36
|
children
|
|
37
37
|
});
|
|
@@ -53,7 +53,7 @@ const TextInputInnerVisualSlot = (t0) => {
|
|
|
53
53
|
const t8 = children ? void 0 : "small";
|
|
54
54
|
let t9;
|
|
55
55
|
if ($[11] !== t7 || $[12] !== t8) {
|
|
56
|
-
t9 =
|
|
56
|
+
t9 = /* @__PURE__ */ jsx(Spinner, {
|
|
57
57
|
srText: null,
|
|
58
58
|
className: t7,
|
|
59
59
|
size: t8
|
|
@@ -64,7 +64,7 @@ const TextInputInnerVisualSlot = (t0) => {
|
|
|
64
64
|
} else t9 = $[13];
|
|
65
65
|
let t10;
|
|
66
66
|
if ($[14] !== id || $[15] !== t3 || $[16] !== t9) {
|
|
67
|
-
t10 =
|
|
67
|
+
t10 = /* @__PURE__ */ jsxs("div", {
|
|
68
68
|
className: TextInputInnerVisualSlot_module_css_default.Box,
|
|
69
69
|
id,
|
|
70
70
|
children: [t3, t9]
|
|
@@ -76,7 +76,7 @@ const TextInputInnerVisualSlot = (t0) => {
|
|
|
76
76
|
} else t10 = $[17];
|
|
77
77
|
let t11;
|
|
78
78
|
if ($[18] !== t10 || $[19] !== t2) {
|
|
79
|
-
t11 =
|
|
79
|
+
t11 = /* @__PURE__ */ jsx("span", {
|
|
80
80
|
className: "TextInput-icon",
|
|
81
81
|
"data-component": t2,
|
|
82
82
|
children: t10
|
|
@@ -107,7 +107,7 @@ const TextInputBaseWrapper = /*#__PURE__*/ React.forwardRef(function TextInputBa
|
|
|
107
107
|
const t15 = variant || void 0;
|
|
108
108
|
let t16;
|
|
109
109
|
if ($[29] !== forwardRef || $[30] !== memoizedStyle || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t5 || $[39] !== t6 || $[40] !== t7 || $[41] !== t8 || $[42] !== t9) {
|
|
110
|
-
t16 =
|
|
110
|
+
t16 = /* @__PURE__ */ jsx("span", {
|
|
111
111
|
ref: forwardRef,
|
|
112
112
|
className: t5,
|
|
113
113
|
"data-block": t6,
|
|
@@ -174,7 +174,7 @@ const TextInputWrapper = /*#__PURE__*/ React.forwardRef(function TextInputWrappe
|
|
|
174
174
|
const t5 = hasTrailingVisual ? void 0 : true;
|
|
175
175
|
let t6;
|
|
176
176
|
if ($[7] !== forwardRef || $[8] !== restProps || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
|
|
177
|
-
t6 =
|
|
177
|
+
t6 = /* @__PURE__ */ jsx(TextInputBaseWrapper, {
|
|
178
178
|
ref: forwardRef,
|
|
179
179
|
className: t1,
|
|
180
180
|
"data-leading-visual": t2,
|
|
@@ -8,7 +8,7 @@ const ThemeProviderBase = (t0) => {
|
|
|
8
8
|
if (contextOnly) {
|
|
9
9
|
let t1;
|
|
10
10
|
if ($[0] !== children || $[1] !== value) {
|
|
11
|
-
t1 =
|
|
11
|
+
t1 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
12
12
|
value,
|
|
13
13
|
children
|
|
14
14
|
});
|
|
@@ -21,7 +21,7 @@ const ThemeProviderBase = (t0) => {
|
|
|
21
21
|
const t1 = value.colorMode === "auto" ? "auto" : value.colorScheme.includes("dark") ? "dark" : "light";
|
|
22
22
|
let t2;
|
|
23
23
|
if ($[3] !== children || $[4] !== t1 || $[5] !== value.dayScheme || $[6] !== value.nightScheme) {
|
|
24
|
-
t2 =
|
|
24
|
+
t2 = /* @__PURE__ */ jsx("div", {
|
|
25
25
|
"data-component": "ThemeProvider",
|
|
26
26
|
"data-color-mode": t1,
|
|
27
27
|
"data-light-theme": value.dayScheme,
|
|
@@ -36,7 +36,7 @@ const ThemeProviderBase = (t0) => {
|
|
|
36
36
|
} else t2 = $[7];
|
|
37
37
|
let t3;
|
|
38
38
|
if ($[8] !== t2 || $[9] !== value) {
|
|
39
|
-
t3 =
|
|
39
|
+
t3 = /* @__PURE__ */ jsx(ThemeContext.Provider, {
|
|
40
40
|
value,
|
|
41
41
|
children: t2
|
|
42
42
|
});
|
|
@@ -40,7 +40,7 @@ const UnderlineWrapper = /*#__PURE__*/ forwardRef((props, ref) => {
|
|
|
40
40
|
const t2 = ref;
|
|
41
41
|
let t3;
|
|
42
42
|
if ($[7] !== Component || $[8] !== children || $[9] !== rest || $[10] !== t1 || $[11] !== t2) {
|
|
43
|
-
t3 =
|
|
43
|
+
t3 = /* @__PURE__ */ jsx(Component, {
|
|
44
44
|
className: t1,
|
|
45
45
|
ref: t2,
|
|
46
46
|
...rest,
|
|
@@ -79,7 +79,7 @@ const UnderlineItemList = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
|
|
|
79
79
|
} else t1 = $[5];
|
|
80
80
|
let t2;
|
|
81
81
|
if ($[6] !== children || $[7] !== forwardedRef || $[8] !== rest || $[9] !== t1) {
|
|
82
|
-
t2 =
|
|
82
|
+
t2 = /* @__PURE__ */ jsx("ul", {
|
|
83
83
|
className: t1,
|
|
84
84
|
ref: forwardedRef,
|
|
85
85
|
...rest,
|
|
@@ -97,7 +97,7 @@ const LoadingCounter = () => {
|
|
|
97
97
|
const $ = c(1);
|
|
98
98
|
let t0;
|
|
99
99
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
100
|
-
t0 =
|
|
100
|
+
t0 = /* @__PURE__ */ jsx("span", { className: UnderlineTabbedInterface_module_css_default.LoadingCounter });
|
|
101
101
|
$[0] = t0;
|
|
102
102
|
} else t0 = $[0];
|
|
103
103
|
return t0;
|
|
@@ -146,16 +146,16 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
146
146
|
} else t2 = $[11];
|
|
147
147
|
let t3;
|
|
148
148
|
if ($[12] !== Icon) {
|
|
149
|
-
t3 = Icon &&
|
|
149
|
+
t3 = Icon && /* @__PURE__ */ jsx("span", {
|
|
150
150
|
"data-component": "icon",
|
|
151
|
-
children: isElement(Icon) ? Icon :
|
|
151
|
+
children: isElement(Icon) ? Icon : /* @__PURE__ */ jsx(Icon, {})
|
|
152
152
|
});
|
|
153
153
|
$[12] = Icon;
|
|
154
154
|
$[13] = t3;
|
|
155
155
|
} else t3 = $[13];
|
|
156
156
|
let t4;
|
|
157
157
|
if ($[14] !== children || $[15] !== textContent) {
|
|
158
|
-
t4 = children &&
|
|
158
|
+
t4 = children && /* @__PURE__ */ jsx("span", {
|
|
159
159
|
"data-component": "text",
|
|
160
160
|
"data-content": textContent || void 0,
|
|
161
161
|
children
|
|
@@ -166,12 +166,12 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
166
166
|
} else t4 = $[16];
|
|
167
167
|
let t5;
|
|
168
168
|
if ($[17] !== counter || $[18] !== loadingCounters) {
|
|
169
|
-
t5 = counter !== void 0 ? loadingCounters ?
|
|
169
|
+
t5 = counter !== void 0 ? loadingCounters ? /* @__PURE__ */ jsx("span", {
|
|
170
170
|
"data-component": "counter",
|
|
171
|
-
children:
|
|
172
|
-
}) :
|
|
171
|
+
children: /* @__PURE__ */ jsx(LoadingCounter, {})
|
|
172
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
173
173
|
"data-component": "counter",
|
|
174
|
-
children:
|
|
174
|
+
children: /* @__PURE__ */ jsx(CounterLabel, { children: counter })
|
|
175
175
|
}) : null;
|
|
176
176
|
$[17] = counter;
|
|
177
177
|
$[18] = loadingCounters;
|
|
@@ -179,7 +179,7 @@ const UnderlineItem = /*#__PURE__*/ React.forwardRef((props, ref) => {
|
|
|
179
179
|
} else t5 = $[19];
|
|
180
180
|
let t6;
|
|
181
181
|
if ($[20] !== Component || $[21] !== ref || $[22] !== rest || $[23] !== t2 || $[24] !== t3 || $[25] !== t4 || $[26] !== t5) {
|
|
182
|
-
t6 =
|
|
182
|
+
t6 = /* @__PURE__ */ jsxs(Component, {
|
|
183
183
|
...rest,
|
|
184
184
|
ref,
|
|
185
185
|
className: t2,
|
|
@@ -25,7 +25,7 @@ const UnstyledTextInput = /*#__PURE__*/ React.forwardRef(function UnstyledTextIn
|
|
|
25
25
|
} else t1 = $[4];
|
|
26
26
|
let t2;
|
|
27
27
|
if ($[5] !== forwardRef || $[6] !== rest || $[7] !== t1) {
|
|
28
|
-
t2 =
|
|
28
|
+
t2 = /* @__PURE__ */ jsx("input", {
|
|
29
29
|
ref: forwardRef,
|
|
30
30
|
...rest,
|
|
31
31
|
className: t1
|
|
@@ -35,14 +35,14 @@ const ValidationAnimationContainer = (t0) => {
|
|
|
35
35
|
const onAnimationEnd = t1;
|
|
36
36
|
let t2;
|
|
37
37
|
if ($[7] !== children || $[8] !== onAnimationEnd || $[9] !== rest || $[10] !== shouldRender || $[11] !== show || $[12] !== style) {
|
|
38
|
-
t2 = shouldRender ?
|
|
38
|
+
t2 = shouldRender ? /* @__PURE__ */ jsx("div", {
|
|
39
39
|
...rest,
|
|
40
40
|
style: {
|
|
41
41
|
...style,
|
|
42
42
|
height: show ? "auto" : 0,
|
|
43
43
|
overflow: "hidden"
|
|
44
44
|
},
|
|
45
|
-
children:
|
|
45
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
46
46
|
"data-show": show ? "" : void 0,
|
|
47
47
|
onAnimationEnd,
|
|
48
48
|
className: ValidationAnimationContainer_module_css_default.Animation,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { c } from "../../utils/react-compiler-runtime.js";
|
|
2
2
|
import { createContext, useContext, useRef, useSyncExternalStore } from "react";
|
|
3
3
|
//#region src/internal/hooks/useOverflowObserver.ts
|
|
4
|
-
/** Subscribe a single observed element to the shared `IntersectionObserver`. Returns an unsubscribe function. */
|
|
5
4
|
/** Provided by `OverflowObserverProvider`; `null` when no provider is present. Consumed via `useIsClipped`. */
|
|
6
5
|
const OverflowObserverContext = /*#__PURE__*/ createContext(null);
|
|
7
6
|
/**
|
|
@@ -49,9 +48,9 @@ function useIsClipped(ref, options) {
|
|
|
49
48
|
} else t1 = $[5];
|
|
50
49
|
return useSyncExternalStore(subscribe, t1, getOverflowServerSnapshot);
|
|
51
50
|
}
|
|
52
|
-
/** Stable server snapshot for `useIsClipped`: overflow is never measured during SSR. */
|
|
53
51
|
function _temp2() {}
|
|
54
52
|
function _temp() {}
|
|
53
|
+
/** Stable server snapshot for `useIsClipped`: overflow is never measured during SSR. */
|
|
55
54
|
const getOverflowServerSnapshot = () => false;
|
|
56
55
|
//#endregion
|
|
57
56
|
export { OverflowObserverContext, useIsClipped };
|
|
@@ -125,7 +125,7 @@ function Announce(props) {
|
|
|
125
125
|
useEffect(t8, t9);
|
|
126
126
|
let t10;
|
|
127
127
|
if ($[20] !== BaseComponent || $[21] !== children || $[22] !== rest) {
|
|
128
|
-
t10 =
|
|
128
|
+
t10 = /* @__PURE__ */ jsx(BaseComponent, {
|
|
129
129
|
...rest,
|
|
130
130
|
ref,
|
|
131
131
|
children
|
|
@@ -8,7 +8,7 @@ function AriaAlert(props) {
|
|
|
8
8
|
const t0 = (_props$announceOnShow = props.announceOnShow) !== null && _props$announceOnShow !== void 0 ? _props$announceOnShow : true;
|
|
9
9
|
let t1;
|
|
10
10
|
if ($[0] !== props || $[1] !== t0) {
|
|
11
|
-
t1 =
|
|
11
|
+
t1 = /* @__PURE__ */ jsx(Announce, {
|
|
12
12
|
...props,
|
|
13
13
|
announceOnShow: t0,
|
|
14
14
|
politeness: "assertive"
|
|
@@ -8,7 +8,7 @@ function AriaStatus(props) {
|
|
|
8
8
|
const t0 = (_props$announceOnShow = props.announceOnShow) !== null && _props$announceOnShow !== void 0 ? _props$announceOnShow : false;
|
|
9
9
|
let t1;
|
|
10
10
|
if ($[0] !== props || $[1] !== t0) {
|
|
11
|
-
t1 =
|
|
11
|
+
t1 = /* @__PURE__ */ jsx(Announce, {
|
|
12
12
|
...props,
|
|
13
13
|
announceOnShow: t0,
|
|
14
14
|
politeness: "polite"
|