@wix/site-ui 1.185.0 → 1.187.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/1763.js +836 -0
- package/dist/2205.js +26 -0
- package/dist/2445.js +470 -0
- package/dist/285.js +1 -1
- package/dist/3485.js +4 -3
- package/dist/4863.js +61 -0
- package/dist/{4388.js → 487.js} +5 -57
- package/dist/5992.js +5 -471
- package/dist/6046.js +2 -26
- package/dist/6089.js +6 -3
- package/dist/6270.js +5 -3
- package/dist/6535.js +2 -1
- package/dist/6588.js +2 -1
- package/dist/6882.js +8 -4
- package/dist/6917.js +55 -0
- package/dist/7871.js +1 -1
- package/dist/8052.js +2 -1
- package/dist/8106.js +3 -2
- package/dist/8171.js +1 -1
- package/dist/8750.js +3 -2
- package/dist/8960.js +1 -1
- package/dist/904.js +1 -1
- package/dist/9352.js +2 -2
- package/dist/{880.js → 9369.js} +2 -60
- package/dist/Accordion/index.js +1 -1
- package/dist/Avatar/index.js +2 -1
- package/dist/Checkbox/index.js +2 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/Combobox/index.js +3 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/Drawer/index.js +10 -836
- package/dist/Field/index.js +2 -1
- package/dist/Menu/index.js +3 -2
- package/dist/NavigationMenu/index.js +6 -3
- package/dist/Popover/index.js +5 -3
- package/dist/PreviewCard/index.js +5 -3
- package/dist/Radio/index.js +2 -1
- package/dist/Select/index.js +6 -3
- package/dist/Tabs/index.js +2 -1
- package/dist/Toast/index.css +111 -0
- package/dist/Toast/index.d.ts +846 -0
- package/dist/Toast/index.js +1204 -0
- package/dist/Tooltip/index.js +5 -3
- package/dist/index.d.ts +501 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
- /package/dist/{5992.js.LICENSE.txt → 2445.js.LICENSE.txt} +0 -0
package/dist/Field/index.js
CHANGED
|
@@ -11,7 +11,8 @@ import { useIsoLayoutEffect, SafeReact } from "../6499.js";
|
|
|
11
11
|
import { useFieldsetRootContext } from "../353.js";
|
|
12
12
|
import { useLabel } from "../4143.js";
|
|
13
13
|
import { error } from "../4026.js";
|
|
14
|
-
import { transitionStatusMapping, useOpenChangeComplete
|
|
14
|
+
import { transitionStatusMapping, useOpenChangeComplete } from "../9369.js";
|
|
15
|
+
import { useTransitionStatus } from "../4863.js";
|
|
15
16
|
import { useCheckboxGroupContext } from "../8979.js";
|
|
16
17
|
import { FieldItemContext } from "../1457.js";
|
|
17
18
|
import { Input_module, FieldControl_FieldControl } from "../8685.js";
|
package/dist/Menu/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { MenuBackdrop_MenuBackdrop, MenuGroupLabel_MenuGroupLabel, MenuLinkItem_
|
|
|
4
4
|
import { usePopupViewport } from "../8171.js";
|
|
5
5
|
import { EMPTY_OBJECT, mergeProps, useRenderElement, esm_formatErrorMessage } from "../8272.js";
|
|
6
6
|
import { ownerDocument } from "../9829.js";
|
|
7
|
-
import { fastComponentRef } from "../
|
|
7
|
+
import { fastComponentRef } from "../2445.js";
|
|
8
8
|
import { useBaseUiId } from "../6046.js";
|
|
9
9
|
import { useCompositeRootContext } from "../8724.js";
|
|
10
10
|
import { useFloatingParentNodeId, useFloatingTree, useFloatingNodeId, FloatingTreeStore } from "../285.js";
|
|
@@ -19,8 +19,9 @@ import { safePolygon, useHoverReferenceInteraction } from "../3670.js";
|
|
|
19
19
|
import { useClick } from "../5864.js";
|
|
20
20
|
import { useFocus } from "../904.js";
|
|
21
21
|
import { useTriggerFocusGuards } from "../7871.js";
|
|
22
|
-
import {
|
|
22
|
+
import { pressableTriggerOpenStateMapping } from "../6917.js";
|
|
23
23
|
import { CompositeItem } from "../951.js";
|
|
24
|
+
import { FocusGuard_FocusGuard } from "../487.js";
|
|
24
25
|
import { useIsoLayoutEffect } from "../6499.js";
|
|
25
26
|
import { useMenubarContext } from "../7564.js";
|
|
26
27
|
import { createChangeEventDetails } from "../4768.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import {
|
|
4
|
-
import { useAnimationsFinished, stateAttributesMapping_TransitionStatusDataAttributes,
|
|
3
|
+
import { pressableTriggerOpenStateMapping, popupStateMapping, triggerOpenStateMapping } from "../6917.js";
|
|
4
|
+
import { useAnimationsFinished, stateAttributesMapping_TransitionStatusDataAttributes, transitionStatusMapping, useOpenChangeComplete } from "../9369.js";
|
|
5
5
|
import { useNavigationMenuDismissContext, useNavigationMenuRootContext, NavigationMenuPopupCssVars_NavigationMenuPopupCssVars, useNavigationMenuTreeContext, NavigationMenuPositionerCssVars_NavigationMenuPositionerCssVars, NavigationMenuItem_NavigationMenuItem, NavigationMenuList_NavigationMenuList, isOutsideMenuEvent, NavigationMenuLink_NavigationMenuLink, NavigationMenuRoot_NavigationMenuRoot, useNavigationMenuItemContext, NAVIGATION_MENU_TRIGGER_IDENTIFIER } from "../6588.js";
|
|
6
|
+
import { useTransitionStatus } from "../4863.js";
|
|
6
7
|
import { useIsoLayoutEffect } from "../6499.js";
|
|
7
8
|
import { useStableCallback } from "../7541.js";
|
|
8
9
|
import { getTarget, contains } from "../4549.js";
|
|
@@ -26,9 +27,11 @@ import { createChangeEventDetails } from "../4768.js";
|
|
|
26
27
|
import { stopEvent } from "../6330.js";
|
|
27
28
|
import { useButton } from "../9189.js";
|
|
28
29
|
import { CompositeItem } from "../951.js";
|
|
30
|
+
import { FocusGuard_FocusGuard, disableFocusInside, DROPDOWN_COLLISION_AVOIDANCE, FloatingPortal_FloatingPortal, getTabbableAfterElement, enableFocusInside, getPreviousTabbable, isOutsideEvent, getNextTabbable, ownerVisuallyHidden, POPUP_COLLISION_AVOIDANCE } from "../487.js";
|
|
29
31
|
import { getEmptyRootContext } from "../4922.js";
|
|
30
32
|
import { mergeCleanups } from "../4495.js";
|
|
31
|
-
import {
|
|
33
|
+
import { useId } from "../2205.js";
|
|
34
|
+
import { useBaseUiId } from "../6046.js";
|
|
32
35
|
import * as __rspack_external_react from "react";
|
|
33
36
|
import * as __rspack_external_react_dom_7136dc57 from "react-dom";
|
|
34
37
|
const stateAttributesMapping = {
|
package/dist/Popover/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { EMPTY_OBJECT, mergeProps, useRenderElement, esm_formatErrorMessage } from "../8272.js";
|
|
4
|
-
import {
|
|
4
|
+
import { FocusGuard_FocusGuard, CLICK_TRIGGER_IDENTIFIER, FloatingPortal_FloatingPortal, POPUP_COLLISION_AVOIDANCE } from "../487.js";
|
|
5
5
|
import { useFloatingParentNodeId, FloatingNode, FloatingTree, useFloatingNodeId } from "../285.js";
|
|
6
|
-
import { transitionStatusMapping, useAnimationsFinished, useOpenChangeComplete } from "../
|
|
6
|
+
import { transitionStatusMapping, useAnimationsFinished, useOpenChangeComplete } from "../9369.js";
|
|
7
7
|
import { usePositioner, adaptiveOriginMiddleware_adaptiveOrigin, useAnchorPositioning, getDisabledMountTransitionStyles } from "../8750.js";
|
|
8
8
|
import { useIsoLayoutEffect } from "../6499.js";
|
|
9
9
|
import { useAnchoredPopupScrollLock } from "../6247.js";
|
|
@@ -11,6 +11,7 @@ import { imperativeAction, focusOut, closePress, triggerHover, triggerPress, esc
|
|
|
11
11
|
import { useOpenMethodTriggerProps, FloatingFocusManager, InternalBackdrop_InternalBackdrop } from "../3485.js";
|
|
12
12
|
import { inertValue } from "../167.js";
|
|
13
13
|
import { useStableCallback } from "../7541.js";
|
|
14
|
+
import { pressableTriggerOpenStateMapping, popupStateMapping, triggerOpenStateMapping } from "../6917.js";
|
|
14
15
|
import { useToolbarRootContext } from "../6107.js";
|
|
15
16
|
import { useHoverFloatingInteraction } from "../3056.js";
|
|
16
17
|
import { useTriggerDataForwarding, usePopupInteractionProps, usePopupRootSync, setOpenTriggerState, usePopupStore, useImplicitActiveTrigger, useOnFirstRender, useOpenStateTransitions, FOCUSABLE_POPUP_PROPS } from "../8106.js";
|
|
@@ -24,7 +25,8 @@ import { safePolygon, useHoverReferenceInteraction } from "../3670.js";
|
|
|
24
25
|
import { useClick } from "../5864.js";
|
|
25
26
|
import { useTriggerFocusGuards } from "../7871.js";
|
|
26
27
|
import { createPopupFloatingRootContext, createInitialPopupStoreState, popupStoreSelectors } from "../6535.js";
|
|
27
|
-
import {
|
|
28
|
+
import { ReactStore, createSelector } from "../2445.js";
|
|
29
|
+
import { PopupTriggerMap, useDismiss } from "../5992.js";
|
|
28
30
|
import { Timeout } from "../42.js";
|
|
29
31
|
import * as __rspack_external_react from "react";
|
|
30
32
|
import * as __rspack_external_react_dom_7136dc57 from "react-dom";
|
|
@@ -2,20 +2,22 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { EMPTY_OBJECT, mergeProps, useRenderElement, esm_formatErrorMessage } from "../8272.js";
|
|
4
4
|
import { isElement } from "../3829.js";
|
|
5
|
-
import {
|
|
5
|
+
import { POPUP_COLLISION_AVOIDANCE } from "../487.js";
|
|
6
6
|
import { useFloatingNodeId, FloatingNode, FloatingTree } from "../285.js";
|
|
7
7
|
import { usePositioner, adaptiveOriginMiddleware_adaptiveOrigin, useAnchorPositioning, getDisabledMountTransitionStyles } from "../8750.js";
|
|
8
8
|
import { useIsoLayoutEffect } from "../6499.js";
|
|
9
|
-
import {
|
|
9
|
+
import { popupStateMapping, triggerOpenStateMapping } from "../6917.js";
|
|
10
|
+
import { transitionStatusMapping, useOpenChangeComplete } from "../9369.js";
|
|
10
11
|
import { useStableCallback } from "../7541.js";
|
|
11
12
|
import { useHoverFloatingInteraction } from "../3056.js";
|
|
12
13
|
import { usePopupViewport } from "../8171.js";
|
|
13
|
-
import {
|
|
14
|
+
import { createSelector, fastComponent, fastComponentRef, ReactStore } from "../2445.js";
|
|
14
15
|
import { useBaseUiId } from "../6046.js";
|
|
15
16
|
import { useTriggerDataForwarding, usePopupInteractionProps, setOpenTriggerState, usePopupStore, useImplicitActiveTrigger, useOnFirstRender, useOpenStateTransitions, FOCUSABLE_POPUP_PROPS } from "../8106.js";
|
|
16
17
|
import { safePolygon, useHoverReferenceInteraction } from "../3670.js";
|
|
17
18
|
import { useFocus } from "../904.js";
|
|
18
19
|
import { createPopupFloatingRootContext, popupStoreSelectors, createInitialPopupStoreState } from "../6535.js";
|
|
20
|
+
import { PopupTriggerMap, useDismiss } from "../5992.js";
|
|
19
21
|
import { imperativeAction, triggerFocus, triggerHover, triggerPress, escapeKey } from "../2418.js";
|
|
20
22
|
import { createChangeEventDetails } from "../4768.js";
|
|
21
23
|
import { FloatingPortalLite_FloatingPortalLite } from "../8960.js";
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { transitionStatusMapping, useOpenChangeComplete
|
|
3
|
+
import { transitionStatusMapping, useOpenChangeComplete } from "../9369.js";
|
|
4
4
|
import { useLabelableContext, fieldValidityMapping, useFieldRootContext } from "../1477.js";
|
|
5
5
|
import { esm_formatErrorMessage, EMPTY_OBJECT, useMergedRefs, useRenderElement, NOOP } from "../8272.js";
|
|
6
6
|
import { useRadioGroupContext } from "../1279.js";
|
|
@@ -17,6 +17,7 @@ import { visuallyHiddenInput, visuallyHidden } from "../8225.js";
|
|
|
17
17
|
import { serializeValue } from "../5778.js";
|
|
18
18
|
import { createChangeEventDetails } from "../4768.js";
|
|
19
19
|
import { CompositeItem } from "../951.js";
|
|
20
|
+
import { useTransitionStatus } from "../4863.js";
|
|
20
21
|
import * as __rspack_external_react from "react";
|
|
21
22
|
let RadioRootDataAttributes_RadioRootDataAttributes = /*#__PURE__*/ function(RadioRootDataAttributes) {
|
|
22
23
|
RadioRootDataAttributes["checked"] = "data-checked";
|
package/dist/Select/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { EMPTY_ARRAY, useRefWithInit, EMPTY_OBJECT, mergeProps, useMergedRefs, useRenderElement, esm_formatErrorMessage } from "../8272.js";
|
|
4
|
-
import { Store,
|
|
4
|
+
import { Store, useStore, createSelector } from "../2445.js";
|
|
5
5
|
import { defaultItemEquality, removeItem, findItemIndex, stringifyAsLabel, stringifyAsValue, hasNullItemLabel, compareItemEquality, selectedValueIncludes, resolveMultipleLabels, resolveSelectedLabel } from "../7366.js";
|
|
6
6
|
import { useLabelableContext, useFieldRootContext, fieldValidityMapping } from "../1477.js";
|
|
7
7
|
import { getDefaultLabelId, resolveAriaLabelledBy } from "../6825.js";
|
|
8
8
|
import { useLabel } from "../4143.js";
|
|
9
|
-
import {
|
|
9
|
+
import { triggerOpenStateMapping, popupStateMapping, pressableTriggerOpenStateMapping } from "../6917.js";
|
|
10
10
|
import { useLabelableId } from "../9048.js";
|
|
11
11
|
import { useValueAsRef } from "../4707.js";
|
|
12
12
|
import { useButton } from "../9189.js";
|
|
@@ -18,7 +18,8 @@ import { contains } from "../4549.js";
|
|
|
18
18
|
import { ownerDocument } from "../9829.js";
|
|
19
19
|
import { getPseudoElementBounds } from "../7373.js";
|
|
20
20
|
import { itemPress, focusOut, outsidePress, cancelOpen, windowResize } from "../2418.js";
|
|
21
|
-
import { transitionStatusMapping,
|
|
21
|
+
import { transitionStatusMapping, useOpenChangeComplete } from "../9369.js";
|
|
22
|
+
import { FloatingPortal_FloatingPortal, DROPDOWN_COLLISION_AVOIDANCE } from "../487.js";
|
|
22
23
|
import { useIsoLayoutEffect } from "../6499.js";
|
|
23
24
|
import { useAnchoredPopupScrollLock } from "../6247.js";
|
|
24
25
|
import { usePositioner, floating_ui_dom_platform, useAnchorPositioning, getDisabledMountTransitionStyles, useFloatingRootContext } from "../8750.js";
|
|
@@ -38,6 +39,7 @@ import { styleDisableScrollbar, normalizeScrollOffset, getMaxScrollOffset } from
|
|
|
38
39
|
import { rectToClientRect } from "../3319.js";
|
|
39
40
|
import { useCompositeListItem, useCompositeListItem_IndexGuessBehavior } from "../3021.js";
|
|
40
41
|
import { isVirtualClick } from "../6330.js";
|
|
42
|
+
import { useTransitionStatus } from "../4863.js";
|
|
41
43
|
import { useBaseUiId } from "../6046.js";
|
|
42
44
|
import { useFormContext } from "../5085.js";
|
|
43
45
|
import { useControlled } from "../8527.js";
|
|
@@ -45,6 +47,7 @@ import { usePreviousValue } from "../7021.js";
|
|
|
45
47
|
import { useRegisterFieldControl } from "../4281.js";
|
|
46
48
|
import { useValueChanged } from "../2801.js";
|
|
47
49
|
import { useClick } from "../5864.js";
|
|
50
|
+
import { useDismiss } from "../5992.js";
|
|
48
51
|
import { useListNavigation, useTypeahead } from "../5299.js";
|
|
49
52
|
import { FOCUSABLE_POPUP_PROPS, useOnFirstRender } from "../8106.js";
|
|
50
53
|
import { visuallyHiddenInput, visuallyHidden } from "../8225.js";
|
package/dist/Tabs/index.js
CHANGED
|
@@ -17,8 +17,9 @@ import { useCSPContext } from "../6003.js";
|
|
|
17
17
|
import { useIsHydrating } from "../2287.js";
|
|
18
18
|
import { useForcedRerendering } from "../8935.js";
|
|
19
19
|
import { getCssDimensions } from "../7642.js";
|
|
20
|
-
import {
|
|
20
|
+
import { transitionStatusMapping, stateAttributesMapping_TransitionStatusDataAttributes, useOpenChangeComplete } from "../9369.js";
|
|
21
21
|
import { useCompositeListItem } from "../3021.js";
|
|
22
|
+
import { useTransitionStatus } from "../4863.js";
|
|
22
23
|
import { inertValue } from "../167.js";
|
|
23
24
|
import { CompositeRoot } from "../9087.js";
|
|
24
25
|
import * as __rspack_external_react from "react";
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.viewport-Wd6ktK {
|
|
2
|
+
z-index: var(--above-all-z-index);
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
display: flex;
|
|
5
|
+
position: fixed;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.root-TfN4xI {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
color: #fff;
|
|
14
|
+
width: 100%;
|
|
15
|
+
font: var(--wst-paragraph-3-font);
|
|
16
|
+
border: var(--wst-system-line-1-width) solid
|
|
17
|
+
color-mix(in srgb, var(--wst-system-default-light-color) 40%, transparent);
|
|
18
|
+
opacity: 0;
|
|
19
|
+
visibility: hidden;
|
|
20
|
+
border-radius: 2px;
|
|
21
|
+
align-items: center;
|
|
22
|
+
gap: 20px;
|
|
23
|
+
padding-inline: 32px 12px;
|
|
24
|
+
transition: visibility .2s, opacity .2s, transform .4s;
|
|
25
|
+
display: flex;
|
|
26
|
+
transform: translateY(-50%);
|
|
27
|
+
box-shadow: 0 0 4px #0000001a, 0 4px 8px #0000001a;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.root-TfN4xI:not([data-starting-style]):not([data-ending-style]) {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
visibility: visible;
|
|
33
|
+
transform: translateY(0);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.root-TfN4xI:focus-visible {
|
|
37
|
+
outline: 2px solid var(--wst-links-and-actions-color);
|
|
38
|
+
outline-offset: -2px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.status-O_LUHn {
|
|
42
|
+
background-color: var(--wst-system-default-dark-color);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.success-tUs5Op {
|
|
46
|
+
background-color: var(--wst-system-success-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.error-clgmW0 {
|
|
50
|
+
background-color: var(--wst-system-error-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.preview-HUjSkl {
|
|
54
|
+
background-color: color-mix(in srgb,
|
|
55
|
+
var(--wst-system-default-dark-color) 60%,
|
|
56
|
+
transparent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.title-ECAZRW {
|
|
60
|
+
-webkit-line-clamp: 2;
|
|
61
|
+
min-width: 0;
|
|
62
|
+
font: inherit;
|
|
63
|
+
-webkit-box-orient: vertical;
|
|
64
|
+
flex: 1;
|
|
65
|
+
margin-block: 16px;
|
|
66
|
+
display: -webkit-box;
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.close-GX8r1b {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
color: inherit;
|
|
73
|
+
background: none;
|
|
74
|
+
border: none;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
align-items: center;
|
|
77
|
+
padding: 14px 12px;
|
|
78
|
+
display: inline-flex;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.close-GX8r1b:hover {
|
|
82
|
+
background-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.close-GX8r1b:focus-visible {
|
|
86
|
+
outline: 2px solid var(--wst-links-and-actions-color);
|
|
87
|
+
outline-offset: 2px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.close-GX8r1b > svg {
|
|
91
|
+
width: 20px;
|
|
92
|
+
height: 20px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@media (prefers-reduced-motion: reduce) {
|
|
96
|
+
.root-TfN4xI[data-starting-style], .root-TfN4xI[data-ending-style] {
|
|
97
|
+
transition: opacity .12s;
|
|
98
|
+
transform: none;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@media (width <= 750px) {
|
|
103
|
+
.root-TfN4xI {
|
|
104
|
+
padding-inline: 20px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.title-ECAZRW {
|
|
108
|
+
-webkit-line-clamp: 3;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|