@wix/site-ui 1.347.0 → 1.349.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,45 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { utils_formatErrorMessage } from "../5473.js";
|
|
3
3
|
import { isElement } from "../3829.js";
|
|
4
|
-
import { POPUP_COLLISION_AVOIDANCE } from "../
|
|
5
|
-
import { useFloatingNodeId, FloatingNode, FloatingTree } from "../
|
|
6
|
-
import { usePositioner,
|
|
7
|
-
import { useIsoLayoutEffect } from "../
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { imperativeAction,
|
|
21
|
-
import { createChangeEventDetails } from "../
|
|
22
|
-
import { FloatingPortalLite_FloatingPortalLite } from "../
|
|
4
|
+
import { POPUP_COLLISION_AVOIDANCE } from "../3398.js";
|
|
5
|
+
import { useFloatingNodeId, FloatingNode, FloatingTree } from "../4472.js";
|
|
6
|
+
import { usePositioner, useAnchorPositioning, getDisabledMountTransitionStyles } from "../497.js";
|
|
7
|
+
import { useIsoLayoutEffect } from "../3357.js";
|
|
8
|
+
import { useOpenChangeComplete } from "../6620.js";
|
|
9
|
+
import { useHoverFloatingInteraction } from "../1607.js";
|
|
10
|
+
import { useRenderElement } from "../9591.js";
|
|
11
|
+
import { useTriggerDataForwarding, applyPopupOpenChange, PopupTriggerMap, usePopupInteractionProps, PopupHandleAttachment, useImplicitActiveTrigger, useOpenStateTransitions, usePopupRootStore, FOCUSABLE_POPUP_PROPS, useDismiss } from "../4346.js";
|
|
12
|
+
import { popupTransitionStateMapping, popupStateMapping, triggerOpenStateMapping } from "../6904.js";
|
|
13
|
+
import { usePopupViewport, popupViewportStateMapping } from "../5298.js";
|
|
14
|
+
import { fastComponent, fastComponentRef, ReactStore } from "../226.js";
|
|
15
|
+
import { usePopupHandleStore, BasePopupHandle } from "../6040.js";
|
|
16
|
+
import { useBaseUiId } from "../5969.js";
|
|
17
|
+
import { safePolygon, useHoverReferenceInteraction } from "../3910.js";
|
|
18
|
+
import { useFocus } from "../6487.js";
|
|
19
|
+
import { NullStore, popupStoreSelectors, createInitialPopupStoreState } from "../1669.js";
|
|
20
|
+
import { imperativeAction, triggerHover } from "../9837.js";
|
|
21
|
+
import { createChangeEventDetails } from "../8495.js";
|
|
22
|
+
import { FloatingPortalLite_FloatingPortalLite } from "../6191.js";
|
|
23
23
|
import * as __rspack_external_react from "react";
|
|
24
|
-
import * as __rspack_external_react_dom_7136dc57 from "react-dom";
|
|
25
24
|
const PreviewCardRootContext = /*#__PURE__*/ __rspack_external_react.createContext(void 0);
|
|
26
25
|
if ("production" !== process.env.NODE_ENV) PreviewCardRootContext.displayName = "PreviewCardRootContext";
|
|
27
26
|
function usePreviewCardRootContext(optional) {
|
|
28
27
|
const context = __rspack_external_react.useContext(PreviewCardRootContext);
|
|
29
|
-
if (void 0 === context && !optional) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>.' :
|
|
28
|
+
if (void 0 === context && !optional) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: PreviewCardRootContext is missing. PreviewCard parts must be placed within <PreviewCard.Root>.' : utils_formatErrorMessage(50));
|
|
30
29
|
return context;
|
|
31
30
|
}
|
|
32
31
|
const PreviewCardPositionerContext = /*#__PURE__*/ __rspack_external_react.createContext(void 0);
|
|
33
32
|
if ("production" !== process.env.NODE_ENV) PreviewCardPositionerContext.displayName = "PreviewCardPositionerContext";
|
|
34
33
|
function usePreviewCardPositionerContext() {
|
|
35
34
|
const context = __rspack_external_react.useContext(PreviewCardPositionerContext);
|
|
36
|
-
if (void 0 === context) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI:
|
|
35
|
+
if (void 0 === context) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: PreviewCardPositionerContext is missing. PreviewCardPositioner parts must be placed within <PreviewCard.Positioner>.' : utils_formatErrorMessage(49));
|
|
37
36
|
return context;
|
|
38
37
|
}
|
|
39
38
|
const PreviewCardPortalContext = /*#__PURE__*/ __rspack_external_react.createContext(void 0);
|
|
40
39
|
if ("production" !== process.env.NODE_ENV) PreviewCardPortalContext.displayName = "PreviewCardPortalContext";
|
|
41
40
|
function usePreviewCardPortalContext() {
|
|
42
41
|
const value = __rspack_external_react.useContext(PreviewCardPortalContext);
|
|
43
|
-
if (void 0 === value) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: <PreviewCard.Portal> is missing.' :
|
|
42
|
+
if (void 0 === value) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: <PreviewCard.Portal> is missing.' : utils_formatErrorMessage(48));
|
|
44
43
|
return value;
|
|
45
44
|
}
|
|
46
45
|
function createRect(left, top, right, bottom) {
|
|
@@ -154,15 +153,15 @@ function getInlineRectTriggerProps(coordsRef, isOpen) {
|
|
|
154
153
|
function updateCoords(event) {
|
|
155
154
|
updateInlineRectCoords(coordsRef, event.currentTarget, event.clientX, event.clientY);
|
|
156
155
|
}
|
|
157
|
-
function
|
|
156
|
+
function updateCoordsIfClosed(event) {
|
|
158
157
|
if (!isOpen) updateCoords(event);
|
|
159
158
|
}
|
|
160
159
|
return {
|
|
161
160
|
onFocus () {
|
|
162
161
|
coordsRef.current = void 0;
|
|
163
162
|
},
|
|
164
|
-
onMouseEnter:
|
|
165
|
-
onMouseMove:
|
|
163
|
+
onMouseEnter: updateCoordsIfClosed,
|
|
164
|
+
onMouseMove: updateCoordsIfClosed
|
|
166
165
|
};
|
|
167
166
|
}
|
|
168
167
|
function updateInlineRectCoords(coordsRef, element, clientX, clientY) {
|
|
@@ -210,7 +209,7 @@ const PreviewCardPositioner_PreviewCardPositioner = /*#__PURE__*/ __rspack_exter
|
|
|
210
209
|
const floatingRootContext = store.useState('floatingRootContext');
|
|
211
210
|
const instantType = store.useState('instantType');
|
|
212
211
|
const transitionStatus = store.useState('transitionStatus');
|
|
213
|
-
const
|
|
212
|
+
const adaptiveOrigin = store.useState('adaptiveOrigin');
|
|
214
213
|
const inlineRectCoordsRef = store.context.inlineRectCoordsRef;
|
|
215
214
|
const positioning = useAnchorPositioning({
|
|
216
215
|
anchor,
|
|
@@ -229,7 +228,7 @@ const PreviewCardPositioner_PreviewCardPositioner = /*#__PURE__*/ __rspack_exter
|
|
|
229
228
|
keepMounted,
|
|
230
229
|
nodeId,
|
|
231
230
|
collisionAvoidance,
|
|
232
|
-
adaptiveOrigin
|
|
231
|
+
adaptiveOrigin,
|
|
233
232
|
inline: createInlineMiddleware(inlineRectCoordsRef)
|
|
234
233
|
});
|
|
235
234
|
const updatePosition = positioning.update;
|
|
@@ -267,10 +266,6 @@ const PreviewCardPositioner_PreviewCardPositioner = /*#__PURE__*/ __rspack_exter
|
|
|
267
266
|
});
|
|
268
267
|
});
|
|
269
268
|
if ("production" !== process.env.NODE_ENV) PreviewCardPositioner_PreviewCardPositioner.displayName = "PreviewCardPositioner";
|
|
270
|
-
const stateAttributesMapping = {
|
|
271
|
-
...popupStateMapping,
|
|
272
|
-
...transitionStatusMapping
|
|
273
|
-
};
|
|
274
269
|
const PreviewCardPopup_PreviewCardPopup = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
275
270
|
const { className, render, style, ...elementProps } = componentProps;
|
|
276
271
|
const store = usePreviewCardRootContext();
|
|
@@ -280,6 +275,7 @@ const PreviewCardPopup_PreviewCardPopup = /*#__PURE__*/ __rspack_external_react.
|
|
|
280
275
|
const transitionStatus = store.useState('transitionStatus');
|
|
281
276
|
const popupProps = store.useState('popupProps');
|
|
282
277
|
const floatingContext = store.useState('floatingRootContext');
|
|
278
|
+
const closeDelay = store.useState('closeDelay');
|
|
283
279
|
useOpenChangeComplete({
|
|
284
280
|
open,
|
|
285
281
|
ref: store.context.popupRef,
|
|
@@ -287,9 +283,8 @@ const PreviewCardPopup_PreviewCardPopup = /*#__PURE__*/ __rspack_external_react.
|
|
|
287
283
|
if (open) store.context.onOpenChangeComplete?.(true);
|
|
288
284
|
}
|
|
289
285
|
});
|
|
290
|
-
const getCloseDelay = useStableCallback(()=>store.context.closeDelayRef.current);
|
|
291
286
|
useHoverFloatingInteraction(floatingContext, {
|
|
292
|
-
closeDelay
|
|
287
|
+
closeDelay
|
|
293
288
|
});
|
|
294
289
|
const state = {
|
|
295
290
|
open,
|
|
@@ -306,11 +301,12 @@ const PreviewCardPopup_PreviewCardPopup = /*#__PURE__*/ __rspack_external_react.
|
|
|
306
301
|
store.useStateSetter('popupElement')
|
|
307
302
|
],
|
|
308
303
|
props: [
|
|
304
|
+
FOCUSABLE_POPUP_PROPS,
|
|
309
305
|
popupProps,
|
|
310
306
|
getDisabledMountTransitionStyles(transitionStatus),
|
|
311
307
|
elementProps
|
|
312
308
|
],
|
|
313
|
-
stateAttributesMapping:
|
|
309
|
+
stateAttributesMapping: popupTransitionStateMapping
|
|
314
310
|
});
|
|
315
311
|
return element;
|
|
316
312
|
});
|
|
@@ -344,10 +340,6 @@ const PreviewCardArrow_PreviewCardArrow = /*#__PURE__*/ __rspack_external_react.
|
|
|
344
340
|
return element;
|
|
345
341
|
});
|
|
346
342
|
if ("production" !== process.env.NODE_ENV) PreviewCardArrow_PreviewCardArrow.displayName = "PreviewCardArrow";
|
|
347
|
-
const PreviewCardBackdrop_stateAttributesMapping = {
|
|
348
|
-
...popupStateMapping,
|
|
349
|
-
...transitionStatusMapping
|
|
350
|
-
};
|
|
351
343
|
const PreviewCardBackdrop_PreviewCardBackdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
352
344
|
const { render, className, style, ...elementProps } = componentProps;
|
|
353
345
|
const store = usePreviewCardRootContext();
|
|
@@ -375,21 +367,11 @@ const PreviewCardBackdrop_PreviewCardBackdrop = /*#__PURE__*/ __rspack_external_
|
|
|
375
367
|
},
|
|
376
368
|
elementProps
|
|
377
369
|
],
|
|
378
|
-
stateAttributesMapping:
|
|
370
|
+
stateAttributesMapping: popupTransitionStateMapping
|
|
379
371
|
});
|
|
380
372
|
return element;
|
|
381
373
|
});
|
|
382
374
|
if ("production" !== process.env.NODE_ENV) PreviewCardBackdrop_PreviewCardBackdrop.displayName = "PreviewCardBackdrop";
|
|
383
|
-
let PreviewCardViewportCssVars_PreviewCardViewportCssVars = /*#__PURE__*/ function(PreviewCardViewportCssVars) {
|
|
384
|
-
PreviewCardViewportCssVars["popupWidth"] = "--popup-width";
|
|
385
|
-
PreviewCardViewportCssVars["popupHeight"] = "--popup-height";
|
|
386
|
-
return PreviewCardViewportCssVars;
|
|
387
|
-
}({});
|
|
388
|
-
const PreviewCardViewport_stateAttributesMapping = {
|
|
389
|
-
activationDirection: (value)=>value ? {
|
|
390
|
-
'data-activation-direction': value
|
|
391
|
-
} : null
|
|
392
|
-
};
|
|
393
375
|
const PreviewCardViewport_PreviewCardViewport = /*#__PURE__*/ __rspack_external_react.forwardRef(function(componentProps, forwardedRef) {
|
|
394
376
|
const { render, className, style, children, ...elementProps } = componentProps;
|
|
395
377
|
const store = usePreviewCardRootContext();
|
|
@@ -398,7 +380,6 @@ const PreviewCardViewport_PreviewCardViewport = /*#__PURE__*/ __rspack_external_
|
|
|
398
380
|
const { children: childrenToRender, state: viewportState } = usePopupViewport({
|
|
399
381
|
store,
|
|
400
382
|
side: positioner.side,
|
|
401
|
-
cssVars: PreviewCardViewportCssVars_PreviewCardViewportCssVars,
|
|
402
383
|
children
|
|
403
384
|
});
|
|
404
385
|
const state = {
|
|
@@ -415,15 +396,16 @@ const PreviewCardViewport_PreviewCardViewport = /*#__PURE__*/ __rspack_external_
|
|
|
415
396
|
children: childrenToRender
|
|
416
397
|
}
|
|
417
398
|
],
|
|
418
|
-
stateAttributesMapping:
|
|
399
|
+
stateAttributesMapping: popupViewportStateMapping
|
|
419
400
|
});
|
|
420
401
|
});
|
|
421
402
|
if ("production" !== process.env.NODE_ENV) PreviewCardViewport_PreviewCardViewport.displayName = "PreviewCardViewport";
|
|
422
403
|
const PreviewCardTrigger_PreviewCardTrigger = fastComponentRef(function(componentProps, forwardedRef) {
|
|
423
404
|
const { render, className, delay, closeDelay, id: idProp, payload, handle, style, ...elementProps } = componentProps;
|
|
424
405
|
const rootContext = usePreviewCardRootContext(true);
|
|
425
|
-
const
|
|
426
|
-
|
|
406
|
+
const handleStore = usePopupHandleStore(handle);
|
|
407
|
+
const store = handleStore ?? rootContext;
|
|
408
|
+
if (!store) throw new Error("production" !== process.env.NODE_ENV ? 'Base UI: <PreviewCard.Trigger> must be either used within a <PreviewCard.Root> component or provided with a handle.' : utils_formatErrorMessage(89));
|
|
427
409
|
const thisTriggerId = useBaseUiId(idProp);
|
|
428
410
|
const isTriggerActive = store.useState('isTriggerActive', thisTriggerId);
|
|
429
411
|
const isOpenedByThisTrigger = store.useState('isOpenedByTrigger', thisTriggerId);
|
|
@@ -433,15 +415,9 @@ const PreviewCardTrigger_PreviewCardTrigger = fastComponentRef(function(componen
|
|
|
433
415
|
const delayWithDefault = delay ?? 600;
|
|
434
416
|
const closeDelayWithDefault = closeDelay ?? 300;
|
|
435
417
|
const { registerTrigger, isMountedByThisTrigger } = useTriggerDataForwarding(thisTriggerId, triggerElementRef, store, {
|
|
436
|
-
payload
|
|
418
|
+
payload,
|
|
419
|
+
closeDelay: closeDelayWithDefault
|
|
437
420
|
});
|
|
438
|
-
useIsoLayoutEffect(()=>{
|
|
439
|
-
if (isMountedByThisTrigger) store.context.closeDelayRef.current = closeDelayWithDefault;
|
|
440
|
-
}, [
|
|
441
|
-
store,
|
|
442
|
-
isMountedByThisTrigger,
|
|
443
|
-
closeDelayWithDefault
|
|
444
|
-
]);
|
|
445
421
|
const hoverProps = useHoverReferenceInteraction(floatingRootContext, {
|
|
446
422
|
mouseOnly: true,
|
|
447
423
|
move: false,
|
|
@@ -486,82 +462,58 @@ const PreviewCardTrigger_PreviewCardTrigger = fastComponentRef(function(componen
|
|
|
486
462
|
if ("production" !== process.env.NODE_ENV) PreviewCardTrigger_PreviewCardTrigger.displayName = "PreviewCardTrigger";
|
|
487
463
|
const selectors = {
|
|
488
464
|
...popupStoreSelectors,
|
|
489
|
-
instantType:
|
|
490
|
-
|
|
465
|
+
instantType: (state)=>state.instantType,
|
|
466
|
+
adaptiveOrigin: (state)=>state.adaptiveOrigin,
|
|
467
|
+
closeDelay: (state)=>state.closeDelay
|
|
491
468
|
};
|
|
492
469
|
class PreviewCardStore extends ReactStore {
|
|
493
|
-
constructor(initialState, floatingId, nested
|
|
470
|
+
constructor(initialState, floatingId, nested){
|
|
494
471
|
const triggerElements = new PopupTriggerMap();
|
|
495
|
-
|
|
496
|
-
...createInitialState(),
|
|
497
|
-
...initialState
|
|
498
|
-
};
|
|
499
|
-
state.floatingRootContext = createPopupFloatingRootContext(triggerElements, floatingId, nested);
|
|
500
|
-
super(state, {
|
|
501
|
-
popupRef: /*#__PURE__*/ __rspack_external_react.createRef(),
|
|
502
|
-
onOpenChange: void 0,
|
|
503
|
-
onOpenChangeComplete: void 0,
|
|
504
|
-
triggerElements,
|
|
505
|
-
closeDelayRef: {
|
|
506
|
-
current: 300
|
|
507
|
-
},
|
|
508
|
-
inlineRectCoordsRef: {
|
|
509
|
-
current: void 0
|
|
510
|
-
}
|
|
511
|
-
}, selectors);
|
|
472
|
+
super(createInitialState(initialState, triggerElements, floatingId, nested), createInitialContext(triggerElements), selectors);
|
|
512
473
|
}
|
|
513
474
|
setOpen = (nextOpen, eventDetails)=>{
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
};
|
|
521
|
-
this.context.onOpenChange?.(nextOpen, eventDetails);
|
|
522
|
-
if (eventDetails.isCanceled) return;
|
|
523
|
-
const event = eventDetails.event;
|
|
524
|
-
if (nextOpen && isHover && eventDetails.trigger && 'clientX' in event && 'clientY' in event && this.context.inlineRectCoordsRef.current?.element !== eventDetails.trigger) updateInlineRectCoords(this.context.inlineRectCoordsRef, eventDetails.trigger, event.clientX, event.clientY);
|
|
525
|
-
this.state.floatingRootContext.dispatchOpenChange(nextOpen, eventDetails);
|
|
526
|
-
const changeState = ()=>{
|
|
527
|
-
const updatedState = {
|
|
528
|
-
open: nextOpen
|
|
529
|
-
};
|
|
530
|
-
if (isFocusOpen) updatedState.instantType = 'focus';
|
|
531
|
-
else if (isDismissClose) updatedState.instantType = 'dismiss';
|
|
532
|
-
else if (reason === triggerHover) updatedState.instantType = void 0;
|
|
533
|
-
setOpenTriggerState(updatedState, nextOpen, eventDetails.trigger);
|
|
534
|
-
this.update(updatedState);
|
|
535
|
-
};
|
|
536
|
-
if (isHover) __rspack_external_react_dom_7136dc57.flushSync(changeState);
|
|
537
|
-
else changeState();
|
|
475
|
+
const { inlineRectCoordsRef } = this.context;
|
|
476
|
+
applyPopupOpenChange(this, nextOpen, eventDetails, {
|
|
477
|
+
onBeforeDispatch () {
|
|
478
|
+
const event = eventDetails.event;
|
|
479
|
+
if (nextOpen && eventDetails.reason === triggerHover && eventDetails.trigger && 'clientX' in event && 'clientY' in event && inlineRectCoordsRef.current?.element !== eventDetails.trigger) updateInlineRectCoords(inlineRectCoordsRef, eventDetails.trigger, event.clientX, event.clientY);
|
|
480
|
+
}
|
|
481
|
+
});
|
|
538
482
|
};
|
|
539
|
-
static useStore(externalStore, initialState) {
|
|
540
|
-
const store = usePopupStore(externalStore, (floatingId, nested)=>new PreviewCardStore(initialState, floatingId, nested)).store;
|
|
541
|
-
return store;
|
|
542
|
-
}
|
|
543
483
|
}
|
|
544
|
-
function
|
|
545
|
-
|
|
546
|
-
|
|
484
|
+
function createNullPreviewCardStore() {
|
|
485
|
+
const triggerElements = new PopupTriggerMap();
|
|
486
|
+
return new NullStore(Object.freeze(createInitialState(void 0, triggerElements)), Object.freeze(createInitialContext(triggerElements)), selectors);
|
|
487
|
+
}
|
|
488
|
+
function createInitialState(initialState, triggerElements, floatingId, nested = false) {
|
|
489
|
+
const state = {
|
|
490
|
+
...createInitialPopupStoreState(triggerElements, floatingId, nested),
|
|
547
491
|
instantType: void 0,
|
|
548
|
-
|
|
492
|
+
adaptiveOrigin: void 0,
|
|
493
|
+
closeDelay: 300,
|
|
494
|
+
...initialState
|
|
495
|
+
};
|
|
496
|
+
return state;
|
|
497
|
+
}
|
|
498
|
+
function createInitialContext(triggerElements) {
|
|
499
|
+
return {
|
|
500
|
+
popupRef: /*#__PURE__*/ __rspack_external_react.createRef(),
|
|
501
|
+
onOpenChange: void 0,
|
|
502
|
+
onOpenChangeComplete: void 0,
|
|
503
|
+
triggerElements,
|
|
504
|
+
inlineRectCoordsRef: {
|
|
505
|
+
current: void 0
|
|
506
|
+
}
|
|
549
507
|
};
|
|
550
508
|
}
|
|
551
509
|
function PreviewCardRootComponent(props) {
|
|
552
510
|
const { open: openProp, defaultOpen = false, onOpenChange, onOpenChangeComplete, actionsRef, handle, triggerId: triggerIdProp, defaultTriggerId: defaultTriggerIdProp = null, children } = props;
|
|
553
|
-
const store =
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
useOnFirstRender(()=>{
|
|
560
|
-
if (void 0 === openProp && false === store.state.open && true === defaultOpen) store.update({
|
|
561
|
-
open: true,
|
|
562
|
-
activeTriggerId: defaultTriggerIdProp
|
|
563
|
-
});
|
|
564
|
-
});
|
|
511
|
+
const store = usePopupRootStore((floatingId, nested)=>new PreviewCardStore({
|
|
512
|
+
open: defaultOpen,
|
|
513
|
+
openProp,
|
|
514
|
+
activeTriggerId: defaultTriggerIdProp,
|
|
515
|
+
triggerIdProp
|
|
516
|
+
}, floatingId, nested));
|
|
565
517
|
store.useControlledProp('openProp', openProp);
|
|
566
518
|
store.useControlledProp('triggerIdProp', triggerIdProp);
|
|
567
519
|
store.useContextCallback('onOpenChange', onOpenChange);
|
|
@@ -570,7 +522,9 @@ function PreviewCardRootComponent(props) {
|
|
|
570
522
|
const activeTriggerId = store.useState('activeTriggerId');
|
|
571
523
|
const mounted = store.useState('mounted');
|
|
572
524
|
const payload = store.useState('payload');
|
|
573
|
-
useImplicitActiveTrigger(store
|
|
525
|
+
useImplicitActiveTrigger(store, {
|
|
526
|
+
closeOnActiveTriggerUnmount: true
|
|
527
|
+
});
|
|
574
528
|
const { forceUnmount } = useOpenStateTransitions(open, store, ()=>{
|
|
575
529
|
store.context.inlineRectCoordsRef.current = void 0;
|
|
576
530
|
});
|
|
@@ -583,22 +537,21 @@ function PreviewCardRootComponent(props) {
|
|
|
583
537
|
activeTriggerId,
|
|
584
538
|
open
|
|
585
539
|
]);
|
|
586
|
-
const handleImperativeClose = __rspack_external_react.useCallback(()=>{
|
|
587
|
-
store.setOpen(false, createChangeEventDetails(imperativeAction));
|
|
588
|
-
}, [
|
|
589
|
-
store
|
|
590
|
-
]);
|
|
591
540
|
__rspack_external_react.useImperativeHandle(actionsRef, ()=>({
|
|
592
541
|
unmount: forceUnmount,
|
|
593
|
-
close:
|
|
542
|
+
close: ()=>store.setOpen(false, createChangeEventDetails(imperativeAction))
|
|
594
543
|
}), [
|
|
595
544
|
forceUnmount,
|
|
596
|
-
|
|
545
|
+
store
|
|
597
546
|
]);
|
|
598
|
-
const shouldRenderInteractions = open || mounted;
|
|
547
|
+
const shouldRenderInteractions = open || mounted || null != handle;
|
|
599
548
|
return /*#__PURE__*/ jsxs(PreviewCardRootContext.Provider, {
|
|
600
549
|
value: store,
|
|
601
550
|
children: [
|
|
551
|
+
handle && /*#__PURE__*/ jsx(PopupHandleAttachment, {
|
|
552
|
+
handle: handle,
|
|
553
|
+
store: store
|
|
554
|
+
}),
|
|
602
555
|
shouldRenderInteractions && /*#__PURE__*/ jsx(PreviewCardInteractions, {
|
|
603
556
|
store: store
|
|
604
557
|
}),
|
|
@@ -611,15 +564,10 @@ function PreviewCardRootComponent(props) {
|
|
|
611
564
|
function PreviewCardInteractions({ store }) {
|
|
612
565
|
const floatingRootContext = store.useState('floatingRootContext');
|
|
613
566
|
const dismiss = useDismiss(floatingRootContext);
|
|
614
|
-
const activeTriggerProps = dismiss.reference ?? EMPTY_OBJECT;
|
|
615
|
-
const inactiveTriggerProps = dismiss.trigger ?? EMPTY_OBJECT;
|
|
616
|
-
const popupProps = __rspack_external_react.useMemo(()=>mergeProps(FOCUSABLE_POPUP_PROPS, dismiss.floating), [
|
|
617
|
-
dismiss.floating
|
|
618
|
-
]);
|
|
619
567
|
usePopupInteractionProps(store, {
|
|
620
|
-
activeTriggerProps,
|
|
621
|
-
inactiveTriggerProps,
|
|
622
|
-
popupProps
|
|
568
|
+
activeTriggerProps: dismiss.reference,
|
|
569
|
+
inactiveTriggerProps: dismiss.trigger,
|
|
570
|
+
popupProps: dismiss.floating
|
|
623
571
|
});
|
|
624
572
|
return null;
|
|
625
573
|
}
|
|
@@ -649,20 +597,18 @@ const PreviewCardPortal_PreviewCardPortal = /*#__PURE__*/ __rspack_external_reac
|
|
|
649
597
|
});
|
|
650
598
|
});
|
|
651
599
|
if ("production" !== process.env.NODE_ENV) PreviewCardPortal_PreviewCardPortal.displayName = "PreviewCardPortal";
|
|
652
|
-
class PreviewCardHandle {
|
|
600
|
+
class PreviewCardHandle extends BasePopupHandle {
|
|
653
601
|
constructor(){
|
|
654
|
-
|
|
602
|
+
super(createNullPreviewCardStore(), 'PreviewCard');
|
|
655
603
|
}
|
|
656
604
|
open(triggerId) {
|
|
657
|
-
|
|
658
|
-
if (triggerId && !triggerElement) throw new Error("production" !== process.env.NODE_ENV ? `Base UI: PreviewCardHandle.open: No trigger found with id "${triggerId}".` : esm_formatErrorMessage(88, triggerId));
|
|
659
|
-
this.store.setOpen(true, createChangeEventDetails(imperativeAction, void 0, triggerElement));
|
|
605
|
+
this.openByTrigger(triggerId);
|
|
660
606
|
}
|
|
661
607
|
close() {
|
|
662
|
-
this.
|
|
608
|
+
this.closePopup();
|
|
663
609
|
}
|
|
664
610
|
get isOpen() {
|
|
665
|
-
return this.
|
|
611
|
+
return this.attachedStore?.select('open') ?? false;
|
|
666
612
|
}
|
|
667
613
|
}
|
|
668
614
|
function createPreviewCardHandle() {
|
package/dist/Progress/index.d.ts
CHANGED
|
@@ -34,6 +34,31 @@ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E &
|
|
|
34
34
|
readonly baseUIHandlerPrevented?: boolean | undefined;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Present when the progress has completed.
|
|
39
|
+
*/
|
|
40
|
+
declare const complete = "data-complete";
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Present when the progress has completed.
|
|
44
|
+
*/
|
|
45
|
+
declare const complete_2 = "data-complete";
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Present when the progress has completed.
|
|
49
|
+
*/
|
|
50
|
+
declare const complete_3 = "data-complete";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Present when the progress has completed.
|
|
54
|
+
*/
|
|
55
|
+
declare const complete_4 = "data-complete";
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Present when the progress has completed.
|
|
59
|
+
*/
|
|
60
|
+
declare const complete_5 = "data-complete";
|
|
61
|
+
|
|
37
62
|
/**
|
|
38
63
|
* Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
|
|
39
64
|
*
|
|
@@ -46,6 +71,31 @@ declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
|
|
|
46
71
|
ref?: React_2.Ref<T> | undefined;
|
|
47
72
|
};
|
|
48
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Present when the progress is in indeterminate state.
|
|
76
|
+
*/
|
|
77
|
+
declare const indeterminate = "data-indeterminate";
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Present when the progress is in indeterminate state.
|
|
81
|
+
*/
|
|
82
|
+
declare const indeterminate_2 = "data-indeterminate";
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Present when the progress is in indeterminate state.
|
|
86
|
+
*/
|
|
87
|
+
declare const indeterminate_3 = "data-indeterminate";
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Present when the progress is in indeterminate state.
|
|
91
|
+
*/
|
|
92
|
+
declare const indeterminate_4 = "data-indeterminate";
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Present when the progress is in indeterminate state.
|
|
96
|
+
*/
|
|
97
|
+
declare const indeterminate_5 = "data-indeterminate";
|
|
98
|
+
|
|
49
99
|
export declare const Progress: {
|
|
50
100
|
Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<ProgressRootProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
|
51
101
|
className?: string;
|
|
@@ -79,10 +129,43 @@ export declare namespace ProgressIndicator {
|
|
|
79
129
|
export type Props = ProgressIndicatorProps;
|
|
80
130
|
}
|
|
81
131
|
|
|
132
|
+
export declare namespace ProgressIndicatorDataAttributes {
|
|
133
|
+
export {
|
|
134
|
+
complete_3 as complete,
|
|
135
|
+
indeterminate_3 as indeterminate,
|
|
136
|
+
progressing_3 as progressing
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
82
140
|
export declare interface ProgressIndicatorProps extends BaseUIComponentProps<'div', ProgressIndicatorState> {}
|
|
83
141
|
|
|
84
142
|
export declare interface ProgressIndicatorState extends ProgressRootState {}
|
|
85
143
|
|
|
144
|
+
/**
|
|
145
|
+
* Present while the progress is progressing.
|
|
146
|
+
*/
|
|
147
|
+
declare const progressing = "data-progressing";
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Present while the progress is progressing.
|
|
151
|
+
*/
|
|
152
|
+
declare const progressing_2 = "data-progressing";
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Present while the progress is progressing.
|
|
156
|
+
*/
|
|
157
|
+
declare const progressing_3 = "data-progressing";
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Present while the progress is progressing.
|
|
161
|
+
*/
|
|
162
|
+
declare const progressing_4 = "data-progressing";
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Present while the progress is progressing.
|
|
166
|
+
*/
|
|
167
|
+
declare const progressing_5 = "data-progressing";
|
|
168
|
+
|
|
86
169
|
/**
|
|
87
170
|
* An accessible label for the progress bar.
|
|
88
171
|
* Renders a `<span>` element.
|
|
@@ -96,6 +179,14 @@ export declare namespace ProgressLabel {
|
|
|
96
179
|
export type Props = ProgressLabelProps;
|
|
97
180
|
}
|
|
98
181
|
|
|
182
|
+
export declare namespace ProgressLabelDataAttributes {
|
|
183
|
+
export {
|
|
184
|
+
complete_5 as complete,
|
|
185
|
+
indeterminate_5 as indeterminate,
|
|
186
|
+
progressing_5 as progressing
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
99
190
|
export declare interface ProgressLabelProps extends BaseUIComponentProps<'span', ProgressLabelState> {}
|
|
100
191
|
|
|
101
192
|
export declare interface ProgressLabelState extends ProgressRootState {}
|
|
@@ -113,6 +204,14 @@ export declare namespace ProgressRoot {
|
|
|
113
204
|
export type Props = ProgressRootProps;
|
|
114
205
|
}
|
|
115
206
|
|
|
207
|
+
export declare namespace ProgressRootDataAttributes {
|
|
208
|
+
export {
|
|
209
|
+
complete,
|
|
210
|
+
indeterminate,
|
|
211
|
+
progressing
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
116
215
|
export declare interface ProgressRootProps extends BaseUIComponentProps<'div', ProgressRootState> {
|
|
117
216
|
/**
|
|
118
217
|
* A string value that provides a user-friendly name for `aria-valuenow`, the current value of the progress bar.
|
|
@@ -125,7 +224,7 @@ export declare interface ProgressRootProps extends BaseUIComponentProps<'div', P
|
|
|
125
224
|
/**
|
|
126
225
|
* Accepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar.
|
|
127
226
|
*/
|
|
128
|
-
getAriaValueText?: ((formattedValue: string
|
|
227
|
+
getAriaValueText?: ((formattedValue: string, value: number | null) => string) | undefined;
|
|
129
228
|
/**
|
|
130
229
|
* The locale used by `Intl.NumberFormat` when formatting the value.
|
|
131
230
|
* Defaults to the user's runtime locale.
|
|
@@ -143,7 +242,6 @@ export declare interface ProgressRootProps extends BaseUIComponentProps<'div', P
|
|
|
143
242
|
min?: number | undefined;
|
|
144
243
|
/**
|
|
145
244
|
* The current value. The component is indeterminate when value is `null`.
|
|
146
|
-
* @default null
|
|
147
245
|
*/
|
|
148
246
|
value: number | null;
|
|
149
247
|
}
|
|
@@ -177,12 +275,20 @@ export declare namespace ProgressTrack {
|
|
|
177
275
|
export type Props = ProgressTrackProps;
|
|
178
276
|
}
|
|
179
277
|
|
|
278
|
+
export declare namespace ProgressTrackDataAttributes {
|
|
279
|
+
export {
|
|
280
|
+
complete_2 as complete,
|
|
281
|
+
indeterminate_2 as indeterminate,
|
|
282
|
+
progressing_2 as progressing
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
180
286
|
export declare interface ProgressTrackProps extends BaseUIComponentProps<'div', ProgressTrackState> {}
|
|
181
287
|
|
|
182
288
|
export declare interface ProgressTrackState extends ProgressRootState {}
|
|
183
289
|
|
|
184
290
|
/**
|
|
185
|
-
* A text
|
|
291
|
+
* A text element displaying the current value.
|
|
186
292
|
* Renders a `<span>` element.
|
|
187
293
|
*
|
|
188
294
|
* Documentation: [Base UI Progress](https://base-ui.com/react/components/progress)
|
|
@@ -194,6 +300,14 @@ export declare namespace ProgressValue {
|
|
|
194
300
|
export type Props = ProgressValueProps;
|
|
195
301
|
}
|
|
196
302
|
|
|
303
|
+
export declare namespace ProgressValueDataAttributes {
|
|
304
|
+
export {
|
|
305
|
+
complete_4 as complete,
|
|
306
|
+
indeterminate_4 as indeterminate,
|
|
307
|
+
progressing_4 as progressing
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
197
311
|
export declare interface ProgressValueProps extends Omit<BaseUIComponentProps<'span', ProgressValueState>, 'children'> {
|
|
198
312
|
children?: null | ((formattedValue: string | null, value: number | null) => React_2.ReactNode) | undefined;
|
|
199
313
|
}
|