@wix/site-ui 1.346.0 → 1.348.0
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/dist/{6706.js → 1093.js} +3 -3
- package/dist/{8724.js → 1219.js} +2 -2
- package/dist/{7373.js → 1288.js} +8 -2
- package/dist/{5299.js → 1381.js} +98 -127
- package/dist/{3056.js → 1607.js} +32 -34
- package/dist/1629.js +2 -0
- package/dist/1669.js +75 -0
- package/dist/1718.js +26 -0
- package/dist/{1477.js → 201.js} +17 -26
- package/dist/2221.js +9 -0
- package/dist/{2445.js → 226.js} +12 -48
- package/dist/2387.js +7 -0
- package/dist/2580.js +6 -0
- package/dist/{1500.js → 2859.js} +10 -34
- package/dist/3014.js +178 -0
- package/dist/{6247.js → 3054.js} +3 -3
- package/dist/{7642.js → 3093.js} +1 -1
- package/dist/3189.js +5 -0
- package/dist/{7564.js → 331.js} +2 -2
- package/dist/3357.js +7 -0
- package/dist/{487.js → 3398.js} +38 -39
- package/dist/3502.js +224 -0
- package/dist/3695.js +50 -0
- package/dist/3829.js +1 -1
- package/dist/{6588.js → 3859.js} +115 -92
- package/dist/{3670.js → 3910.js} +28 -21
- package/dist/392.js +7 -0
- package/dist/{4549.js → 4155.js} +11 -3
- package/dist/4226.js +7 -0
- package/dist/{6329.js → 4229.js} +1 -1
- package/dist/4293.js +3 -0
- package/dist/4346.js +853 -2
- package/dist/{285.js → 4472.js} +3 -3
- package/dist/4605.js +207 -0
- package/dist/{7366.js → 488.js} +60 -7
- package/dist/{8750.js → 497.js} +190 -375
- package/dist/4989.js +35 -0
- package/dist/{6270.js → 510.js} +157 -196
- package/dist/5258.js +26 -0
- package/dist/{5036.js → 5275.js} +0 -3
- package/dist/{8171.js → 5298.js} +90 -102
- package/dist/5473.js +11 -0
- package/dist/{4745.js → 5490.js} +3 -1
- package/dist/{6089.js → 5561.js} +869 -786
- package/dist/{8996.js → 5595.js} +4 -3
- package/dist/5890.js +25 -0
- package/dist/{6046.js → 5969.js} +1 -1
- package/dist/5984.js +38 -0
- package/dist/{8527.js → 6006.js} +3 -3
- package/dist/6040.js +97 -0
- package/dist/{8758.js → 6137.js} +10 -8
- package/dist/{4281.js → 6140.js} +18 -10
- package/dist/{8960.js → 6191.js} +2 -2
- package/dist/6240.js +121 -0
- package/dist/{4490.js → 6373.js} +7 -5
- package/dist/{904.js → 6487.js} +19 -17
- package/dist/{9635.js → 6498.js} +1 -1
- package/dist/6499.js +4 -7
- package/dist/6508.js +7 -0
- package/dist/{8225.js → 6540.js} +1 -0
- package/dist/6551.js +46 -0
- package/dist/{9369.js → 6620.js} +35 -34
- package/dist/{4143.js → 6838.js} +19 -10
- package/dist/6902.js +48 -0
- package/dist/6904.js +51 -0
- package/dist/70.js +24 -0
- package/dist/7024.js +39 -0
- package/dist/{6882.js → 721.js} +737 -362
- package/dist/{951.js → 7270.js} +4 -4
- package/dist/{3485.js → 7323.js} +143 -111
- package/dist/{7541.js → 7488.js} +2 -2
- package/dist/{4863.js → 7542.js} +7 -6
- package/dist/7551.js +28 -0
- package/dist/{7021.js → 7640.js} +1 -1
- package/dist/{353.js → 7692.js} +3 -7
- package/dist/{4707.js → 7930.js} +2 -2
- package/dist/{8052.js → 8.js} +80 -64
- package/dist/{6914.js → 8129.js} +3 -15
- package/dist/{3319.js → 8358.js} +62 -63
- package/dist/{5864.js → 8407.js} +13 -13
- package/dist/8488.js +15 -0
- package/dist/{4768.js → 8495.js} +1 -1
- package/dist/8734.js +171 -0
- package/dist/{1763.js → 9018.js} +205 -331
- package/dist/9053.js +29 -0
- package/dist/9067.js +41 -0
- package/dist/{2861.js → 9120.js} +2 -2
- package/dist/{42.js → 9197.js} +2 -2
- package/dist/{9189.js → 9248.js} +36 -17
- package/dist/{2801.js → 9252.js} +4 -9
- package/dist/9295.js +7 -0
- package/dist/9303.js +8 -0
- package/dist/{167.js → 9374.js} +1 -1
- package/dist/{9352.js → 9540.js} +17 -47
- package/dist/9576.js +51 -0
- package/dist/{8272.js → 9591.js} +36 -46
- package/dist/{6107.js → 9770.js} +2 -2
- package/dist/{5085.js → 9880.js} +6 -3
- package/dist/Accordion/index.d.ts +207 -41
- package/dist/Accordion/index.js +75 -177
- package/dist/AlertDialog/index.d.ts +440 -140
- package/dist/AlertDialog/index.js +3 -13
- package/dist/Autocomplete/index.d.ts +722 -150
- package/dist/Autocomplete/index.js +16 -29
- package/dist/Avatar/index.d.ts +38 -3
- package/dist/Avatar/index.js +82 -28
- package/dist/Breadcrumbs/index.d.ts +63 -91
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/Button/index.d.ts +11 -0
- package/dist/Button/index.js +2 -2
- package/dist/Checkbox/index.d.ts +206 -36
- package/dist/Checkbox/index.js +293 -8
- package/dist/CheckboxField/index.css +1 -1
- package/dist/CheckboxField/index.d.ts +40 -36
- package/dist/CheckboxGroup/index.d.ts +50 -36
- package/dist/CheckboxGroup/index.js +87 -58
- package/dist/CheckboxGroupField/index.css +1 -1
- package/dist/Collapsible/index.d.ts +128 -36
- package/dist/Collapsible/index.js +21 -25
- package/dist/Combobox/index.d.ts +801 -158
- package/dist/Combobox/index.js +70 -114
- package/dist/ContextMenu/index.d.ts +1162 -195
- package/dist/ContextMenu/index.js +46 -36
- package/dist/Dialog/index.d.ts +425 -133
- package/dist/Dialog/index.js +8 -4
- package/dist/Drawer/index.d.ts +589 -144
- package/dist/Drawer/index.js +482 -562
- package/dist/Field/index.css +1 -1
- package/dist/Field/index.d.ts +341 -42
- package/dist/Field/index.js +123 -273
- package/dist/Fieldset/index.d.ts +11 -0
- package/dist/Fieldset/index.js +10 -17
- package/dist/Form/index.d.ts +43 -39
- package/dist/Form/index.js +58 -50
- package/dist/Input/index.css +1 -1
- package/dist/Input/index.d.ts +94 -42
- package/dist/Input/index.js +1 -1
- package/dist/Menu/index.d.ts +1140 -175
- package/dist/Menu/index.js +51 -67
- package/dist/Menubar/index.d.ts +651 -173
- package/dist/Menubar/index.js +12 -16
- package/dist/Meter/index.js +21 -18
- package/dist/NavigationMenu/index.d.ts +370 -86
- package/dist/NavigationMenu/index.js +144 -178
- package/dist/NumberField/index.css +1 -1
- package/dist/NumberField/index.d.ts +507 -47
- package/dist/NumberField/index.js +434 -718
- package/dist/Popover/index.d.ts +561 -142
- package/dist/Popover/index.js +181 -252
- package/dist/PreviewCard/index.d.ts +507 -143
- package/dist/PreviewCard/index.js +97 -151
- package/dist/Progress/index.d.ts +117 -3
- package/dist/Progress/index.js +37 -36
- package/dist/Radio/index.d.ts +177 -7
- package/dist/Radio/index.js +54 -70
- package/dist/RadioField/index.css +1 -1
- package/dist/RadioField/index.d.ts +23 -7
- package/dist/RadioGroup/index.d.ts +51 -37
- package/dist/RadioGroup/index.js +60 -51
- package/dist/RadioGroupField/index.css +1 -1
- package/dist/RadioGroupField/index.d.ts +40 -37
- package/dist/ScrollArea/index.d.ts +295 -1
- package/dist/ScrollArea/index.js +256 -324
- package/dist/Select/index.d.ts +516 -123
- package/dist/Select/index.js +513 -635
- package/dist/SelectField/index.css +1 -1
- package/dist/SelectField/index.d.ts +109 -134
- package/dist/SelectField/index.js +5 -1
- package/dist/Separator/index.d.ts +12 -0
- package/dist/Separator/index.js +1 -1
- package/dist/Slider/index.d.ts +383 -64
- package/dist/Slider/index.js +298 -374
- package/dist/Switch/index.d.ts +184 -37
- package/dist/Switch/index.js +44 -58
- package/dist/Tabs/index.d.ts +220 -35
- package/dist/Tabs/index.js +199 -193
- package/dist/Toast/index.d.ts +280 -64
- package/dist/Toast/index.js +299 -374
- package/dist/Toggle/index.d.ts +55 -35
- package/dist/Toggle/index.js +19 -13
- package/dist/ToggleGroup/index.d.ts +62 -35
- package/dist/ToggleGroup/index.js +13 -31
- package/dist/Toolbar/index.d.ts +117 -2
- package/dist/Toolbar/index.js +31 -43
- package/dist/Tooltip/index.d.ts +507 -150
- package/dist/Tooltip/index.js +163 -213
- package/dist/index.d.ts +12912 -5382
- package/package.json +3 -3
- package/dist/2205.js +0 -26
- package/dist/2274.js +0 -34
- package/dist/2287.js +0 -17
- package/dist/3020.js +0 -7
- package/dist/3021.js +0 -72
- package/dist/3140.js +0 -4
- package/dist/3248.js +0 -307
- package/dist/4026.js +0 -12
- package/dist/4922.js +0 -15
- package/dist/5659.js +0 -4
- package/dist/5992.js +0 -447
- package/dist/6330.js +0 -30
- package/dist/6535.js +0 -72
- package/dist/6917.js +0 -55
- package/dist/7725.js +0 -10
- package/dist/7871.js +0 -38
- package/dist/8106.js +0 -239
- package/dist/8685.js +0 -102
- package/dist/8935.js +0 -8
- package/dist/8971.js +0 -40
- package/dist/8979.js +0 -10
- package/dist/9048.js +0 -52
- package/dist/9087.js +0 -256
- package/dist/9255.js +0 -136
- /package/dist/{1457.js → 1068.js} +0 -0
- /package/dist/{6003.js → 1234.js} +0 -0
- /package/dist/{4723.js → 1282.js} +0 -0
- /package/dist/{6825.js → 1876.js} +0 -0
- /package/dist/{5778.js → 1885.js} +0 -0
- /package/dist/{2445.js.LICENSE.txt → 226.js.LICENSE.txt} +0 -0
- /package/dist/{1279.js → 3278.js} +0 -0
- /package/dist/{3296.js → 5568.js} +0 -0
- /package/dist/{8685.css → 6240.css} +0 -0
- /package/dist/{9829.js → 6488.js} +0 -0
- /package/dist/{9863.js → 6534.js} +0 -0
- /package/dist/{4495.js → 7718.js} +0 -0
- /package/dist/{3395.js → 8866.js} +0 -0
- /package/dist/{2418.js → 9837.js} +0 -0
|
@@ -1,46 +1,32 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { ComboboxArrow_ComboboxArrow, ComboboxPositioner_ComboboxPositioner, ComboboxRow_ComboboxRow, ComboboxInputGroup_ComboboxInputGroup, AriaCombobox, ComboboxCollection, ComboboxBackdrop_ComboboxBackdrop, ComboboxClear_ComboboxClear, ComboboxIcon_ComboboxIcon, ComboboxTrigger_ComboboxTrigger, ComboboxGroup_ComboboxGroup, ComboboxGroupLabel_ComboboxGroupLabel, ComboboxPopup_ComboboxPopup, useCoreFilter, ComboboxStatus_ComboboxStatus, ComboboxInput_ComboboxInput, ComboboxEmpty_ComboboxEmpty, ComboboxPortal_ComboboxPortal, useComboboxInputValueContext, ComboboxItem_ComboboxItem, ComboboxList_ComboboxList } from "../
|
|
3
|
-
import { pointer } from "../
|
|
4
|
-
import { stringifyAsLabel } from "../
|
|
5
|
-
import { Separator } from "../9635.js";
|
|
2
|
+
import { ComboboxArrow_ComboboxArrow, ComboboxPositioner_ComboboxPositioner, ComboboxRow_ComboboxRow, ComboboxInputGroup_ComboboxInputGroup, AriaCombobox, ComboboxCollection, ComboboxBackdrop_ComboboxBackdrop, ComboboxClear_ComboboxClear, ComboboxIcon_ComboboxIcon, ComboboxTrigger_ComboboxTrigger, ComboboxGroup_ComboboxGroup, ComboboxGroupLabel_ComboboxGroupLabel, ComboboxPopup_ComboboxPopup, useCoreFilter, ComboboxStatus_ComboboxStatus, ComboboxInput_ComboboxInput, ComboboxEmpty_ComboboxEmpty, ComboboxPortal_ComboboxPortal, useComboboxInputValueContext, ComboboxItem_ComboboxItem, ComboboxList_ComboboxList } from "../5561.js";
|
|
3
|
+
import { pointer } from "../9837.js";
|
|
4
|
+
import { stringifyAsLabel, ListboxSeparator_ListboxSeparator } from "../488.js";
|
|
6
5
|
import * as __rspack_external_react from "react";
|
|
7
6
|
const AutocompleteInputGroup = ComboboxInputGroup_ComboboxInputGroup;
|
|
8
7
|
const AutocompleteItem = ComboboxItem_ComboboxItem;
|
|
9
8
|
const AutocompleteTrigger = ComboboxTrigger_ComboboxTrigger;
|
|
10
9
|
function AutocompleteRoot(props) {
|
|
11
10
|
const { openOnInputClick = false, value, defaultValue, onValueChange, mode = 'list', itemToStringValue, ...other } = props;
|
|
12
|
-
const enableInline = 'inline' === mode || 'both' === mode;
|
|
11
|
+
const enableInline = ('inline' === mode || 'both' === mode) && !props.readOnly;
|
|
13
12
|
const staticItems = 'inline' === mode || 'none' === mode;
|
|
14
13
|
const isControlled = void 0 !== value;
|
|
15
14
|
const [internalValue, setInternalValue] = __rspack_external_react.useState(defaultValue ?? '');
|
|
16
15
|
const [inlineInputValue, setInlineInputValue] = __rspack_external_react.useState('');
|
|
17
16
|
__rspack_external_react.useEffect(()=>{
|
|
18
|
-
if (isControlled) setInlineInputValue('');
|
|
17
|
+
if (isControlled || !enableInline) setInlineInputValue('');
|
|
19
18
|
}, [
|
|
20
19
|
value,
|
|
21
|
-
isControlled
|
|
20
|
+
isControlled,
|
|
21
|
+
enableInline
|
|
22
22
|
]);
|
|
23
23
|
let resolvedInputValue;
|
|
24
24
|
resolvedInputValue = enableInline && '' !== inlineInputValue ? inlineInputValue : isControlled ? value ?? '' : internalValue;
|
|
25
|
-
const collator = useCoreFilter(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
other.filter,
|
|
31
|
-
collator
|
|
32
|
-
]);
|
|
33
|
-
const resolvedQuery = String(isControlled ? value : internalValue).trim();
|
|
34
|
-
const resolvedFilter = __rspack_external_react.useMemo(()=>{
|
|
35
|
-
if ('both' !== mode) return staticItems ? null : baseFilter;
|
|
36
|
-
if (null === baseFilter) return null;
|
|
37
|
-
return (item, _query, toString)=>baseFilter(item, resolvedQuery, toString);
|
|
38
|
-
}, [
|
|
39
|
-
baseFilter,
|
|
40
|
-
mode,
|
|
41
|
-
resolvedQuery,
|
|
42
|
-
staticItems
|
|
43
|
-
]);
|
|
25
|
+
const collator = useCoreFilter({
|
|
26
|
+
locale: other.locale
|
|
27
|
+
});
|
|
28
|
+
const resolvedQuery = String((isControlled ? value : internalValue) ?? '').trim();
|
|
29
|
+
const resolvedFilter = staticItems || null === other.filter ? null : other.filter ?? collator.contains;
|
|
44
30
|
function handleValueChange(nextValue, eventDetails) {
|
|
45
31
|
setInlineInputValue('');
|
|
46
32
|
if (!isControlled) setInternalValue(nextValue);
|
|
@@ -49,8 +35,7 @@ function AutocompleteRoot(props) {
|
|
|
49
35
|
function handleItemHighlighted(highlightedValue, eventDetails) {
|
|
50
36
|
props.onItemHighlighted?.(highlightedValue, eventDetails);
|
|
51
37
|
if (eventDetails.reason === pointer) return;
|
|
52
|
-
|
|
53
|
-
else setInlineInputValue('');
|
|
38
|
+
setInlineInputValue(enableInline && null != highlightedValue ? stringifyAsLabel(highlightedValue, itemToStringValue) : '');
|
|
54
39
|
}
|
|
55
40
|
return /*#__PURE__*/ jsx(AriaCombobox, {
|
|
56
41
|
...other,
|
|
@@ -59,6 +44,7 @@ function AutocompleteRoot(props) {
|
|
|
59
44
|
selectionMode: "none",
|
|
60
45
|
fillInputOnItemPress: true,
|
|
61
46
|
filter: resolvedFilter,
|
|
47
|
+
filterQuery: 'both' === mode ? resolvedQuery : void 0,
|
|
62
48
|
autoComplete: mode,
|
|
63
49
|
inputValue: resolvedInputValue,
|
|
64
50
|
defaultInputValue: defaultValue,
|
|
@@ -75,6 +61,7 @@ function AutocompleteValue(props) {
|
|
|
75
61
|
children: returnValue
|
|
76
62
|
});
|
|
77
63
|
}
|
|
64
|
+
const AutocompleteSeparator = ListboxSeparator_ListboxSeparator;
|
|
78
65
|
const InputGroup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(AutocompleteInputGroup, {
|
|
79
66
|
ref: ref,
|
|
80
67
|
className: className,
|
|
@@ -177,6 +164,6 @@ const Autocomplete = {
|
|
|
177
164
|
Trigger: Trigger,
|
|
178
165
|
Value: AutocompleteValue,
|
|
179
166
|
Portal: ComboboxPortal_ComboboxPortal,
|
|
180
|
-
Separator:
|
|
167
|
+
Separator: AutocompleteSeparator
|
|
181
168
|
};
|
|
182
169
|
export { Autocomplete };
|
package/dist/Avatar/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export declare namespace AvatarFallback {
|
|
|
33
33
|
export declare interface AvatarFallbackProps extends BaseUIComponentProps<'span', AvatarFallbackState> {
|
|
34
34
|
/**
|
|
35
35
|
* How long to wait before showing the fallback. Specified in milliseconds.
|
|
36
|
+
*
|
|
37
|
+
* @default 0
|
|
36
38
|
*/
|
|
37
39
|
delay?: number | undefined;
|
|
38
40
|
}
|
|
@@ -52,11 +54,26 @@ export declare namespace AvatarImage {
|
|
|
52
54
|
export type Props = AvatarImageProps;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
export declare
|
|
57
|
+
export declare namespace AvatarImageDataAttributes {
|
|
58
|
+
export {
|
|
59
|
+
loading,
|
|
60
|
+
error,
|
|
61
|
+
startingStyle,
|
|
62
|
+
endingStyle
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare interface AvatarImageProps extends BaseUIComponentProps<'img', AvatarImageState, React_2.ComponentPropsWithRef<'img'>> {
|
|
56
67
|
/**
|
|
57
68
|
* Callback fired when the loading status changes.
|
|
58
69
|
*/
|
|
59
|
-
onLoadingStatusChange?: ((status:
|
|
70
|
+
onLoadingStatusChange?: ((status: ImageLoadingStatus) => void) | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the image element stays mounted and loads in place instead of being preloaded.
|
|
73
|
+
* Supports `loading="lazy"` and optimized image components such as `next/image`.
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
keepMounted?: boolean | undefined;
|
|
60
77
|
}
|
|
61
78
|
|
|
62
79
|
export declare interface AvatarImageState extends AvatarRootState {
|
|
@@ -134,13 +151,31 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
|
|
|
134
151
|
*/
|
|
135
152
|
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
136
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Present when the image is animating out.
|
|
156
|
+
*/
|
|
157
|
+
declare const endingStyle = "data-ending-style";
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Present when the image failed to load.
|
|
161
|
+
*/
|
|
162
|
+
declare const error = "data-error";
|
|
163
|
+
|
|
137
164
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
138
165
|
ref?: React_2.Ref<T> | undefined;
|
|
139
166
|
};
|
|
140
167
|
|
|
141
168
|
export declare type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
142
169
|
|
|
143
|
-
|
|
170
|
+
/**
|
|
171
|
+
* Present while the image is loading.
|
|
172
|
+
*/
|
|
173
|
+
declare const loading = "data-loading";
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Present when the image begins animating in.
|
|
177
|
+
*/
|
|
178
|
+
declare const startingStyle = "data-starting-style";
|
|
144
179
|
|
|
145
180
|
declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
146
181
|
|
package/dist/Avatar/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { utils_formatErrorMessage } from "../5473.js";
|
|
3
|
+
import { useRenderElement, NOOP } from "../9591.js";
|
|
4
|
+
import { useIsoLayoutEffect } from "../3357.js";
|
|
5
|
+
import { transitionStatusMapping } from "../8488.js";
|
|
6
|
+
import { useTransitionStatus } from "../7542.js";
|
|
7
|
+
import { useStableCallback } from "../7488.js";
|
|
8
|
+
import { useOpenChangeComplete } from "../6620.js";
|
|
9
|
+
import { useTimeout } from "../9197.js";
|
|
8
10
|
import * as __rspack_external_react from "react";
|
|
9
11
|
const AvatarRootContext = /*#__PURE__*/ __rspack_external_react.createContext(void 0);
|
|
10
12
|
if ("production" !== process.env.NODE_ENV) AvatarRootContext.displayName = "AvatarRootContext";
|
|
11
13
|
function useAvatarRootContext() {
|
|
12
14
|
const context = __rspack_external_react.useContext(AvatarRootContext);
|
|
13
|
-
if (void 0 === context) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.' :
|
|
15
|
+
if (void 0 === context) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>.' : utils_formatErrorMessage(13));
|
|
14
16
|
return context;
|
|
15
17
|
}
|
|
16
18
|
const avatarStateAttributesMapping = {
|
|
@@ -41,10 +43,12 @@ const AvatarRoot_AvatarRoot = /*#__PURE__*/ __rspack_external_react.forwardRef(f
|
|
|
41
43
|
});
|
|
42
44
|
});
|
|
43
45
|
if ("production" !== process.env.NODE_ENV) AvatarRoot_AvatarRoot.displayName = "AvatarRoot";
|
|
44
|
-
function useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {
|
|
45
|
-
const
|
|
46
|
+
function useImageLoadingStatus(src, { referrerPolicy, crossOrigin, sizes, srcSet }, enabled) {
|
|
47
|
+
const state = __rspack_external_react.useState('idle');
|
|
48
|
+
const setLoadingStatus = state[1];
|
|
46
49
|
useIsoLayoutEffect(()=>{
|
|
47
|
-
if (!
|
|
50
|
+
if (!enabled) return NOOP;
|
|
51
|
+
if (!src && !srcSet) {
|
|
48
52
|
setLoadingStatus('error');
|
|
49
53
|
return NOOP;
|
|
50
54
|
}
|
|
@@ -59,35 +63,71 @@ function useImageLoadingStatus(src, { referrerPolicy, crossOrigin }) {
|
|
|
59
63
|
image.onerror = updateStatus('error');
|
|
60
64
|
if (referrerPolicy) image.referrerPolicy = referrerPolicy;
|
|
61
65
|
image.crossOrigin = crossOrigin ?? null;
|
|
62
|
-
image.
|
|
66
|
+
if (sizes) image.sizes = sizes;
|
|
67
|
+
if (srcSet) image.srcset = srcSet;
|
|
68
|
+
if (src) image.src = src;
|
|
63
69
|
if (image.complete) setLoadingStatus(image.naturalWidth > 0 ? 'loaded' : 'error');
|
|
64
70
|
return ()=>{
|
|
65
71
|
isMounted = false;
|
|
66
72
|
};
|
|
67
73
|
}, [
|
|
74
|
+
enabled,
|
|
68
75
|
src,
|
|
76
|
+
srcSet,
|
|
77
|
+
sizes,
|
|
69
78
|
crossOrigin,
|
|
70
|
-
referrerPolicy
|
|
79
|
+
referrerPolicy,
|
|
80
|
+
setLoadingStatus
|
|
71
81
|
]);
|
|
72
|
-
return
|
|
82
|
+
return state;
|
|
73
83
|
}
|
|
74
84
|
const stateAttributesMapping = {
|
|
75
85
|
...avatarStateAttributesMapping,
|
|
76
86
|
...transitionStatusMapping
|
|
77
87
|
};
|
|
78
88
|
const AvatarImage_AvatarImage = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
79
|
-
const { className, render, onLoadingStatusChange: onLoadingStatusChangeProp,
|
|
80
|
-
const
|
|
81
|
-
const imageLoadingStatus = useImageLoadingStatus(
|
|
82
|
-
referrerPolicy,
|
|
83
|
-
crossOrigin
|
|
84
|
-
});
|
|
89
|
+
const { className, render, onLoadingStatusChange: onLoadingStatusChangeProp, keepMounted = false, style, sizes, srcSet, src, ...elementProps } = componentProps;
|
|
90
|
+
const { setImageLoadingStatus: setRootImageLoadingStatus } = useAvatarRootContext();
|
|
91
|
+
const [imageLoadingStatus, setImageLoadingStatus] = useImageLoadingStatus(src, componentProps, !keepMounted);
|
|
85
92
|
const isVisible = 'loaded' === imageLoadingStatus;
|
|
86
93
|
const { mounted, transitionStatus, setMounted } = useTransitionStatus(isVisible);
|
|
87
94
|
const imageRef = __rspack_external_react.useRef(null);
|
|
95
|
+
const initialCommitRef = __rspack_external_react.useRef(true);
|
|
96
|
+
useIsoLayoutEffect(()=>{
|
|
97
|
+
if (!keepMounted) return;
|
|
98
|
+
const isInitialCommit = initialCommitRef.current;
|
|
99
|
+
initialCommitRef.current = false;
|
|
100
|
+
const image = imageRef.current;
|
|
101
|
+
if (!image) return;
|
|
102
|
+
if (!image.complete) return void setImageLoadingStatus('loading');
|
|
103
|
+
const status = image.naturalWidth > 0 ? 'loaded' : 'error';
|
|
104
|
+
setImageLoadingStatus(status);
|
|
105
|
+
if ('loaded' === status && isInitialCommit) setMounted(true);
|
|
106
|
+
}, [
|
|
107
|
+
keepMounted,
|
|
108
|
+
src,
|
|
109
|
+
srcSet,
|
|
110
|
+
sizes,
|
|
111
|
+
elementProps.crossOrigin,
|
|
112
|
+
elementProps.referrerPolicy,
|
|
113
|
+
render,
|
|
114
|
+
setImageLoadingStatus,
|
|
115
|
+
setMounted
|
|
116
|
+
]);
|
|
117
|
+
const renderedStatusProps = keepMounted ? {
|
|
118
|
+
'data-loading': 'loading' === imageLoadingStatus ? '' : void 0,
|
|
119
|
+
'data-error': 'error' === imageLoadingStatus ? '' : void 0,
|
|
120
|
+
'aria-hidden': 'loaded' !== imageLoadingStatus || void 0,
|
|
121
|
+
onLoad () {
|
|
122
|
+
setImageLoadingStatus('loaded');
|
|
123
|
+
},
|
|
124
|
+
onError () {
|
|
125
|
+
setImageLoadingStatus('error');
|
|
126
|
+
}
|
|
127
|
+
} : void 0;
|
|
88
128
|
const handleLoadingStatusChange = useStableCallback((status)=>{
|
|
89
129
|
onLoadingStatusChangeProp?.(status);
|
|
90
|
-
|
|
130
|
+
setRootImageLoadingStatus(status);
|
|
91
131
|
});
|
|
92
132
|
useIsoLayoutEffect(()=>{
|
|
93
133
|
if ('idle' !== imageLoadingStatus) handleLoadingStatusChange(imageLoadingStatus);
|
|
@@ -95,7 +135,11 @@ const AvatarImage_AvatarImage = /*#__PURE__*/ __rspack_external_react.forwardRef
|
|
|
95
135
|
imageLoadingStatus,
|
|
96
136
|
handleLoadingStatusChange
|
|
97
137
|
]);
|
|
138
|
+
useIsoLayoutEffect(()=>()=>setRootImageLoadingStatus('idle'), [
|
|
139
|
+
setRootImageLoadingStatus
|
|
140
|
+
]);
|
|
98
141
|
useOpenChangeComplete({
|
|
142
|
+
enabled: !isVisible,
|
|
99
143
|
open: isVisible,
|
|
100
144
|
ref: imageRef,
|
|
101
145
|
onComplete () {
|
|
@@ -104,29 +148,39 @@ const AvatarImage_AvatarImage = /*#__PURE__*/ __rspack_external_react.forwardRef
|
|
|
104
148
|
});
|
|
105
149
|
const state = {
|
|
106
150
|
imageLoadingStatus,
|
|
107
|
-
transitionStatus
|
|
151
|
+
transitionStatus: keepMounted && 'ending' === transitionStatus ? void 0 : transitionStatus
|
|
108
152
|
};
|
|
153
|
+
const shouldRender = keepMounted || mounted;
|
|
154
|
+
const sourceProps = {};
|
|
155
|
+
if (void 0 !== sizes) sourceProps.sizes = sizes;
|
|
156
|
+
if (void 0 !== srcSet) sourceProps.srcSet = srcSet;
|
|
157
|
+
if (void 0 !== src) sourceProps.src = src;
|
|
109
158
|
const element = useRenderElement('img', componentProps, {
|
|
110
159
|
state,
|
|
111
160
|
ref: [
|
|
112
161
|
forwardedRef,
|
|
113
162
|
imageRef
|
|
114
163
|
],
|
|
115
|
-
props:
|
|
164
|
+
props: [
|
|
165
|
+
renderedStatusProps,
|
|
166
|
+
elementProps,
|
|
167
|
+
sourceProps
|
|
168
|
+
],
|
|
116
169
|
stateAttributesMapping: stateAttributesMapping,
|
|
117
|
-
enabled:
|
|
170
|
+
enabled: shouldRender
|
|
118
171
|
});
|
|
119
|
-
if (!
|
|
172
|
+
if (!shouldRender) return null;
|
|
120
173
|
return element;
|
|
121
174
|
});
|
|
122
175
|
if ("production" !== process.env.NODE_ENV) AvatarImage_AvatarImage.displayName = "AvatarImage";
|
|
123
176
|
const AvatarFallback_AvatarFallback = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
124
|
-
const { className, render, delay, style, ...elementProps } = componentProps;
|
|
177
|
+
const { className, render, delay = 0, style, ...elementProps } = componentProps;
|
|
125
178
|
const { imageLoadingStatus } = useAvatarRootContext();
|
|
126
|
-
const [delayPassed, setDelayPassed] = __rspack_external_react.useState(
|
|
179
|
+
const [delayPassed, setDelayPassed] = __rspack_external_react.useState(0 === delay);
|
|
127
180
|
const timeout = useTimeout();
|
|
128
181
|
__rspack_external_react.useEffect(()=>{
|
|
129
|
-
if (
|
|
182
|
+
if (delay > 0) timeout.start(delay, ()=>setDelayPassed(true));
|
|
183
|
+
else setDelayPassed(true);
|
|
130
184
|
return timeout.clear;
|
|
131
185
|
}, [
|
|
132
186
|
timeout,
|
|
@@ -140,7 +194,7 @@ const AvatarFallback_AvatarFallback = /*#__PURE__*/ __rspack_external_react.forw
|
|
|
140
194
|
ref: forwardedRef,
|
|
141
195
|
props: elementProps,
|
|
142
196
|
stateAttributesMapping: avatarStateAttributesMapping,
|
|
143
|
-
enabled: 'loaded' !== imageLoadingStatus && delayPassed
|
|
197
|
+
enabled: 'loaded' !== imageLoadingStatus && (0 === delay || delayPassed)
|
|
144
198
|
});
|
|
145
199
|
return element;
|
|
146
200
|
});
|
|
@@ -4,7 +4,7 @@ import { NavigationMenuLinkProps as NavigationMenuLinkProps_2 } from '@base-ui/r
|
|
|
4
4
|
import { NavigationMenuListProps as NavigationMenuListProps_2 } from '@base-ui/react';
|
|
5
5
|
import { Padding } from '@floating-ui/react-dom';
|
|
6
6
|
import * as React_2 from 'react';
|
|
7
|
-
import { Rect } from '@floating-ui/utils';
|
|
7
|
+
import type { Rect } from '@floating-ui/utils';
|
|
8
8
|
import { VirtualElement } from '@floating-ui/react-dom';
|
|
9
9
|
|
|
10
10
|
declare type Align = 'start' | 'center' | 'end';
|
|
@@ -92,15 +92,15 @@ export declare const Breadcrumbs: {
|
|
|
92
92
|
} & Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
declare const cancelOpen:
|
|
95
|
+
declare const cancelOpen: 'cancel-open';
|
|
96
96
|
|
|
97
|
-
declare const chipRemovePress:
|
|
97
|
+
declare const chipRemovePress: 'chip-remove-press';
|
|
98
98
|
|
|
99
|
-
declare const clearPress:
|
|
99
|
+
declare const clearPress: 'clear-press';
|
|
100
100
|
|
|
101
|
-
declare const closePress:
|
|
101
|
+
declare const closePress: 'close-press';
|
|
102
102
|
|
|
103
|
-
declare const closeWatcher:
|
|
103
|
+
declare const closeWatcher: 'close-watcher';
|
|
104
104
|
|
|
105
105
|
declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
|
|
106
106
|
|
|
@@ -112,70 +112,45 @@ declare type CollisionAvoidance = SideFlipMode | SideShiftMode;
|
|
|
112
112
|
*/
|
|
113
113
|
declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
|
|
114
114
|
|
|
115
|
-
declare const decrementPress:
|
|
115
|
+
declare const decrementPress: 'decrement-press';
|
|
116
116
|
|
|
117
|
-
declare const disabled:
|
|
117
|
+
declare const disabled: 'disabled';
|
|
118
118
|
|
|
119
|
-
declare const drag:
|
|
119
|
+
declare const drag: 'drag';
|
|
120
120
|
|
|
121
|
-
declare const escapeKey:
|
|
121
|
+
declare const escapeKey: 'escape-key';
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
* Portals the floating element into a given container element — by default,
|
|
125
|
-
* outside of the app root and into the body.
|
|
126
|
-
* This is necessary to ensure the floating element can appear outside any
|
|
127
|
-
* potential parent containers that cause clipping (such as `overflow: hidden`),
|
|
128
|
-
* while retaining its location in the React tree.
|
|
129
|
-
* @see https://floating-ui.com/docs/FloatingPortal
|
|
130
|
-
* @internal
|
|
131
|
-
*/
|
|
132
|
-
declare const FloatingPortal: React_2.ForwardRefExoticComponent<Omit<FloatingPortal.Props<any> & {
|
|
133
|
-
renderGuards?: boolean | undefined;
|
|
134
|
-
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
135
|
-
|
|
136
|
-
declare namespace FloatingPortal {
|
|
137
|
-
type State = FloatingPortalState;
|
|
138
|
-
interface Props<TState> extends BaseUIComponentProps<'div', TState> {
|
|
139
|
-
/**
|
|
140
|
-
* A parent element to render the portal element into.
|
|
141
|
-
*/
|
|
142
|
-
container?: UseFloatingPortalNodeProps['container'] | undefined;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
declare interface FloatingPortalState {}
|
|
147
|
-
|
|
148
|
-
declare const focusOut: "focus-out";
|
|
123
|
+
declare const focusOut: 'focus-out';
|
|
149
124
|
|
|
150
125
|
declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
151
126
|
ref?: React_2.Ref<T> | undefined;
|
|
152
127
|
};
|
|
153
128
|
|
|
154
|
-
declare const imperativeAction:
|
|
129
|
+
declare const imperativeAction: 'imperative-action';
|
|
155
130
|
|
|
156
|
-
declare const incrementPress:
|
|
131
|
+
declare const incrementPress: 'increment-press';
|
|
157
132
|
|
|
158
|
-
declare const initial:
|
|
133
|
+
declare const initial: 'initial';
|
|
159
134
|
|
|
160
|
-
declare const inputBlur:
|
|
135
|
+
declare const inputBlur: 'input-blur';
|
|
161
136
|
|
|
162
|
-
declare const inputChange:
|
|
137
|
+
declare const inputChange: 'input-change';
|
|
163
138
|
|
|
164
|
-
declare const inputClear:
|
|
139
|
+
declare const inputClear: 'input-clear';
|
|
165
140
|
|
|
166
|
-
declare const inputPaste:
|
|
141
|
+
declare const inputPaste: 'input-paste';
|
|
167
142
|
|
|
168
|
-
declare const inputPress:
|
|
143
|
+
declare const inputPress: 'input-press';
|
|
169
144
|
|
|
170
|
-
declare const itemPress:
|
|
145
|
+
declare const itemPress: 'item-press';
|
|
171
146
|
|
|
172
|
-
declare const keyboard:
|
|
147
|
+
declare const keyboard: 'keyboard';
|
|
173
148
|
|
|
174
|
-
declare const linkPress:
|
|
149
|
+
declare const linkPress: 'link-press';
|
|
175
150
|
|
|
176
|
-
declare const listNavigation:
|
|
151
|
+
declare const listNavigation: 'list-navigation';
|
|
177
152
|
|
|
178
|
-
declare const missing:
|
|
153
|
+
declare const missing: 'missing';
|
|
179
154
|
|
|
180
155
|
declare interface NativeButtonProps {
|
|
181
156
|
/**
|
|
@@ -361,7 +336,7 @@ declare namespace NavigationMenuLink {
|
|
|
361
336
|
type Props = NavigationMenuLinkProps;
|
|
362
337
|
}
|
|
363
338
|
|
|
364
|
-
declare interface NavigationMenuLinkProps extends BaseUIComponentProps<'a', NavigationMenuLinkState
|
|
339
|
+
declare interface NavigationMenuLinkProps extends BaseUIComponentProps<'a', NavigationMenuLinkState, React_2.ComponentPropsWithRef<'a'>> {
|
|
365
340
|
/**
|
|
366
341
|
* Whether the link is the currently active page.
|
|
367
342
|
* @default false
|
|
@@ -455,7 +430,7 @@ declare namespace NavigationMenuPortal {
|
|
|
455
430
|
type Props = NavigationMenuPortalProps;
|
|
456
431
|
}
|
|
457
432
|
|
|
458
|
-
declare interface NavigationMenuPortalProps extends
|
|
433
|
+
declare interface NavigationMenuPortalProps extends BaseUIComponentProps<'div', NavigationMenuPortalState> {
|
|
459
434
|
/**
|
|
460
435
|
* Whether to keep the portal mounted in the DOM while the popup is hidden.
|
|
461
436
|
* @default false
|
|
@@ -464,7 +439,7 @@ declare interface NavigationMenuPortalProps extends FloatingPortal.Props<Navigat
|
|
|
464
439
|
/**
|
|
465
440
|
* A parent element to render the portal element into.
|
|
466
441
|
*/
|
|
467
|
-
container?:
|
|
442
|
+
container?: HTMLElement | ShadowRoot | React_2.RefObject<HTMLElement | ShadowRoot | null> | null | undefined;
|
|
468
443
|
}
|
|
469
444
|
|
|
470
445
|
declare interface NavigationMenuPortalState {}
|
|
@@ -528,15 +503,23 @@ declare namespace NavigationMenuRoot {
|
|
|
528
503
|
|
|
529
504
|
declare interface NavigationMenuRootActions {
|
|
530
505
|
unmount: () => void;
|
|
506
|
+
close: () => void;
|
|
531
507
|
}
|
|
532
508
|
|
|
533
|
-
declare type NavigationMenuRootChangeEventDetails = BaseUIChangeEventDetails<NavigationMenuRoot.ChangeEventReason
|
|
509
|
+
declare type NavigationMenuRootChangeEventDetails = BaseUIChangeEventDetails<NavigationMenuRoot.ChangeEventReason> & {
|
|
510
|
+
/** Prevents the popup from unmounting until the `unmount` action is called. */
|
|
511
|
+
preventUnmountOnClose: () => void;
|
|
512
|
+
};
|
|
534
513
|
|
|
535
|
-
declare type NavigationMenuRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.triggerHover | typeof REASONS.outsidePress | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.escapeKey | typeof REASONS.linkPress | typeof REASONS.none;
|
|
514
|
+
declare type NavigationMenuRootChangeEventReason = typeof REASONS.triggerPress | typeof REASONS.triggerHover | typeof REASONS.outsidePress | typeof REASONS.listNavigation | typeof REASONS.focusOut | typeof REASONS.escapeKey | typeof REASONS.linkPress | typeof REASONS.imperativeAction | typeof REASONS.none;
|
|
536
515
|
|
|
537
516
|
declare interface NavigationMenuRootProps<Value = any> extends BaseUIComponentProps<'nav', NavigationMenuRootState> {
|
|
538
517
|
/**
|
|
539
518
|
* A ref to imperative actions.
|
|
519
|
+
* - `unmount`: Ends the closing phase of the navigation menu popup after an externally controlled closing animation finishes.
|
|
520
|
+
* Call `preventUnmountOnClose()` in `onValueChange` first, otherwise the navigation menu popup completes closing on its own.
|
|
521
|
+
* Whether it leaves the DOM is decided by `keepMounted` on the portal.
|
|
522
|
+
* - `close`: Closes the navigation menu imperatively when called.
|
|
540
523
|
*/
|
|
541
524
|
actionsRef?: React_2.RefObject<NavigationMenuRoot.Actions | null> | undefined;
|
|
542
525
|
/**
|
|
@@ -604,13 +587,23 @@ declare namespace NavigationMenuTrigger {
|
|
|
604
587
|
type Props = NavigationMenuTriggerProps;
|
|
605
588
|
}
|
|
606
589
|
|
|
607
|
-
declare interface NavigationMenuTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', NavigationMenuTriggerState> {
|
|
590
|
+
declare interface NavigationMenuTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', NavigationMenuTriggerState> {
|
|
591
|
+
/**
|
|
592
|
+
* Whether the component should ignore user interaction.
|
|
593
|
+
* @default false
|
|
594
|
+
*/
|
|
595
|
+
disabled?: boolean | undefined;
|
|
596
|
+
}
|
|
608
597
|
|
|
609
598
|
declare interface NavigationMenuTriggerState {
|
|
610
599
|
/**
|
|
611
600
|
* If `true`, the popup is open and the item is active.
|
|
612
601
|
*/
|
|
613
602
|
open: boolean;
|
|
603
|
+
/**
|
|
604
|
+
* Whether the component should ignore user interaction.
|
|
605
|
+
*/
|
|
606
|
+
disabled: boolean;
|
|
614
607
|
}
|
|
615
608
|
|
|
616
609
|
/**
|
|
@@ -630,7 +623,7 @@ declare interface NavigationMenuViewportProps extends BaseUIComponentProps<'div'
|
|
|
630
623
|
|
|
631
624
|
declare interface NavigationMenuViewportState {}
|
|
632
625
|
|
|
633
|
-
declare const none:
|
|
626
|
+
declare const none: 'none';
|
|
634
627
|
|
|
635
628
|
declare type OffsetFunction = (data: {
|
|
636
629
|
side: Side;
|
|
@@ -645,9 +638,11 @@ declare type OffsetFunction = (data: {
|
|
|
645
638
|
};
|
|
646
639
|
}) => number;
|
|
647
640
|
|
|
648
|
-
declare const outsidePress:
|
|
641
|
+
declare const outsidePress: 'outside-press';
|
|
649
642
|
|
|
650
|
-
declare const pointer:
|
|
643
|
+
declare const pointer: 'pointer';
|
|
644
|
+
|
|
645
|
+
declare const popupClose: 'popup-close';
|
|
651
646
|
|
|
652
647
|
declare namespace REASONS {
|
|
653
648
|
export {
|
|
@@ -678,6 +673,7 @@ declare namespace REASONS {
|
|
|
678
673
|
drag,
|
|
679
674
|
wheel,
|
|
680
675
|
scrub,
|
|
676
|
+
popupClose,
|
|
681
677
|
cancelOpen,
|
|
682
678
|
siblingOpen,
|
|
683
679
|
disabled,
|
|
@@ -736,9 +732,9 @@ declare function Root<Value = any>({ className, dir, separator, 'aria-label': ar
|
|
|
736
732
|
separator?: React_2.ReactNode;
|
|
737
733
|
}): JSX_2.Element;
|
|
738
734
|
|
|
739
|
-
declare const scrub:
|
|
735
|
+
declare const scrub: 'scrub';
|
|
740
736
|
|
|
741
|
-
declare const siblingOpen:
|
|
737
|
+
declare const siblingOpen: 'sibling-open';
|
|
742
738
|
|
|
743
739
|
declare type Side = 'top' | 'bottom' | 'left' | 'right' | 'inline-end' | 'inline-start';
|
|
744
740
|
|
|
@@ -789,17 +785,17 @@ declare interface SideShiftMode {
|
|
|
789
785
|
fallbackAxisSide?: 'start' | 'end' | 'none' | undefined;
|
|
790
786
|
}
|
|
791
787
|
|
|
792
|
-
declare const swipe:
|
|
788
|
+
declare const swipe: 'swipe';
|
|
793
789
|
|
|
794
|
-
declare const trackPress:
|
|
790
|
+
declare const trackPress: 'track-press';
|
|
795
791
|
|
|
796
792
|
declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
|
|
797
793
|
|
|
798
|
-
declare const triggerFocus:
|
|
794
|
+
declare const triggerFocus: 'trigger-focus';
|
|
799
795
|
|
|
800
|
-
declare const triggerHover:
|
|
796
|
+
declare const triggerHover: 'trigger-hover';
|
|
801
797
|
|
|
802
|
-
declare const triggerPress:
|
|
798
|
+
declare const triggerPress: 'trigger-press';
|
|
803
799
|
|
|
804
800
|
declare interface UseAnchorPositioningSharedParameters {
|
|
805
801
|
/**
|
|
@@ -943,33 +939,9 @@ declare interface UseAnchorPositioningSharedParameters {
|
|
|
943
939
|
collisionAvoidance?: CollisionAvoidance | undefined;
|
|
944
940
|
}
|
|
945
941
|
|
|
946
|
-
declare
|
|
947
|
-
ref?: React_2.Ref<HTMLDivElement> | undefined;
|
|
948
|
-
container?: HTMLElement | ShadowRoot | null | React_2.RefObject<HTMLElement | ShadowRoot | null> | undefined;
|
|
949
|
-
componentProps?: UseRenderElementComponentProps<any> | undefined;
|
|
950
|
-
elementProps?: React_2.HTMLAttributes<HTMLDivElement> | undefined;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
declare interface UseRenderElementComponentProps<State> {
|
|
954
|
-
/**
|
|
955
|
-
* The class name to apply to the rendered element.
|
|
956
|
-
* Can be a string or a function that accepts the state and returns a string.
|
|
957
|
-
*/
|
|
958
|
-
className?: string | ((state: State) => string | undefined) | undefined;
|
|
959
|
-
/**
|
|
960
|
-
* The render prop or React element to override the default element.
|
|
961
|
-
*/
|
|
962
|
-
render?: undefined | React_2.ReactElement | ComponentRenderFn<React_2.HTMLAttributes<any>, State>;
|
|
963
|
-
/**
|
|
964
|
-
* The style to apply to the rendered element.
|
|
965
|
-
* Can be a style object or a function that accepts the state and returns a style object.
|
|
966
|
-
*/
|
|
967
|
-
style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
declare const wheel: "wheel";
|
|
942
|
+
declare const wheel: 'wheel';
|
|
971
943
|
|
|
972
|
-
declare const windowResize:
|
|
944
|
+
declare const windowResize: 'window-resize';
|
|
973
945
|
|
|
974
946
|
/**
|
|
975
947
|
* Adds a `preventBaseUIHandler` method to all event handlers.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronLeft, ChevronRight } from "@wix/wix-ui-icons-common";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { NavigationMenuLink_NavigationMenuLink, NavigationMenuItem_NavigationMenuItem, NavigationMenuList_NavigationMenuList, NavigationMenuRoot_NavigationMenuRoot } from "../
|
|
4
|
+
import { NavigationMenuLink_NavigationMenuLink, NavigationMenuItem_NavigationMenuItem, NavigationMenuList_NavigationMenuList, NavigationMenuRoot_NavigationMenuRoot } from "../3859.js";
|
|
5
5
|
import * as __rspack_external_react from "react";
|
|
6
6
|
const Breadcrumbs_module = {
|
|
7
7
|
root: "root-uwc56U",
|