@wix/site-ui 1.281.0 → 1.283.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/3699.js +5 -0
- package/dist/Dialog/index.d.ts +3 -2
- package/dist/Dialog/index.js +7 -2
- package/dist/Toast/index.js +2 -5
- package/dist/index.d.ts +5 -3
- package/package.json +2 -2
package/dist/3699.js
ADDED
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { AlertDialogBackdropProps } from '@base-ui/react';
|
|
|
2
2
|
import { AlertDialogCloseProps } from '@base-ui/react';
|
|
3
3
|
import { AlertDialogDescriptionProps } from '@base-ui/react';
|
|
4
4
|
import { AlertDialogPopupProps } from '@base-ui/react';
|
|
5
|
-
import { AlertDialogPortalProps } from '@base-ui/react';
|
|
6
5
|
import { AlertDialogTitleProps } from '@base-ui/react';
|
|
7
6
|
import { AlertDialogViewportProps } from '@base-ui/react';
|
|
8
7
|
import { FloatingRootContext as FloatingRootContext_2 } from '../../floating-ui-react/index.js';
|
|
@@ -142,7 +141,7 @@ export declare const Dialog: {
|
|
|
142
141
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
143
142
|
Root: typeof Dialog_2.Root;
|
|
144
143
|
Trigger: typeof Trigger;
|
|
145
|
-
Portal:
|
|
144
|
+
Portal: ({ container, ...props }: PortalProps) => JSX_2.Element;
|
|
146
145
|
Handle: typeof Dialog_2.Handle;
|
|
147
146
|
createHandle: typeof Dialog_2.createHandle;
|
|
148
147
|
};
|
|
@@ -862,6 +861,8 @@ declare class PopupTriggerMap {
|
|
|
862
861
|
get size(): number;
|
|
863
862
|
}
|
|
864
863
|
|
|
864
|
+
declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Dialog_2.Portal>;
|
|
865
|
+
|
|
865
866
|
declare namespace REASONS {
|
|
866
867
|
export {
|
|
867
868
|
none,
|
package/dist/Dialog/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { DialogPopup_DialogPopup, DialogBackdrop_DialogBackdrop } from "../9352.js";
|
|
4
3
|
import { DialogClose_DialogClose, DialogTrigger_DialogTrigger, DialogDescription_DialogDescription, DialogTitle_DialogTitle, DialogHandle, createDialogHandle, DialogViewport_DialogViewport, DialogPortal_DialogPortal } from "../6270.js";
|
|
4
|
+
import { getThemedContainer } from "../3699.js";
|
|
5
|
+
import { DialogPopup_DialogPopup, DialogBackdrop_DialogBackdrop } from "../9352.js";
|
|
5
6
|
import { DialogRoot } from "../3020.js";
|
|
6
7
|
import * as __rspack_external_react from "react";
|
|
7
8
|
const Dialog_module = {
|
|
@@ -12,6 +13,10 @@ const Dialog_module = {
|
|
|
12
13
|
title: "title-U8Hyut",
|
|
13
14
|
description: "description-ZV1a4j"
|
|
14
15
|
};
|
|
16
|
+
const Portal = ({ container, ...props })=>/*#__PURE__*/ jsx(DialogPortal_DialogPortal, {
|
|
17
|
+
container: container ?? getThemedContainer(),
|
|
18
|
+
...props
|
|
19
|
+
});
|
|
15
20
|
const Backdrop = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(DialogBackdrop_DialogBackdrop, {
|
|
16
21
|
ref: ref,
|
|
17
22
|
className: clsx(Dialog_module.backdrop, className),
|
|
@@ -57,7 +62,7 @@ const Dialog = {
|
|
|
57
62
|
Viewport: Viewport,
|
|
58
63
|
Root: DialogRoot,
|
|
59
64
|
Trigger: Trigger,
|
|
60
|
-
Portal:
|
|
65
|
+
Portal: Portal,
|
|
61
66
|
Handle: DialogHandle,
|
|
62
67
|
createHandle: createDialogHandle
|
|
63
68
|
};
|
package/dist/Toast/index.js
CHANGED
|
@@ -20,6 +20,7 @@ import { useId } from "../2205.js";
|
|
|
20
20
|
import { useButton } from "../9189.js";
|
|
21
21
|
import { ReactStore, createSelector } from "../2445.js";
|
|
22
22
|
import { useOnMount } from "../2861.js";
|
|
23
|
+
import { getThemedContainer } from "../3699.js";
|
|
23
24
|
import * as __rspack_external_react from "react";
|
|
24
25
|
import * as __rspack_external_react_dom_7136dc57 from "react-dom";
|
|
25
26
|
const ToastPortal = FloatingPortalLite_FloatingPortalLite;
|
|
@@ -1164,10 +1165,6 @@ const Close = ({ size, ...props })=>/*#__PURE__*/ jsx("svg", {
|
|
|
1164
1165
|
d: "M19.2928932,3.99989322 L20,4.707 L12.7068932,11.9998932 L20,19.2928932 L19.2928932,20 L11.9998932,12.7068932 L4.707,20 L3.99989322,19.2928932 L11.2928932,11.9998932 L3.99989322,4.707 L4.707,3.99989322 L11.9998932,11.2928932 L19.2928932,3.99989322 Z"
|
|
1165
1166
|
})
|
|
1166
1167
|
});
|
|
1167
|
-
const getDefaultContainer = ()=>{
|
|
1168
|
-
if ("u" < typeof document) return;
|
|
1169
|
-
return document.querySelector('#SITE_PAGES > .theme-vars') ?? document.body;
|
|
1170
|
-
};
|
|
1171
1168
|
function getSkinClassName(skin) {
|
|
1172
1169
|
switch(skin){
|
|
1173
1170
|
case 'success':
|
|
@@ -1182,7 +1179,7 @@ function getSkinClassName(skin) {
|
|
|
1182
1179
|
}
|
|
1183
1180
|
}
|
|
1184
1181
|
const Portal = ({ container, ...props })=>/*#__PURE__*/ jsx(ToastPortal, {
|
|
1185
|
-
container: container ??
|
|
1182
|
+
container: container ?? getThemedContainer(),
|
|
1186
1183
|
...props
|
|
1187
1184
|
});
|
|
1188
1185
|
const Viewport = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(ToastViewport_ToastViewport, {
|
package/dist/index.d.ts
CHANGED
|
@@ -3159,7 +3159,7 @@ export declare const Dialog: {
|
|
|
3159
3159
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
3160
3160
|
Root: typeof Dialog_2.Root;
|
|
3161
3161
|
Trigger: typeof Trigger_3;
|
|
3162
|
-
Portal:
|
|
3162
|
+
Portal: ({ container, ...props }: PortalProps) => JSX_2.Element;
|
|
3163
3163
|
Handle: typeof Dialog_2.Handle;
|
|
3164
3164
|
createHandle: typeof Dialog_2.createHandle;
|
|
3165
3165
|
};
|
|
@@ -7796,9 +7796,11 @@ declare class PopupTriggerMap {
|
|
|
7796
7796
|
get size(): number;
|
|
7797
7797
|
}
|
|
7798
7798
|
|
|
7799
|
-
declare const Portal: ({ container, ...props }:
|
|
7799
|
+
declare const Portal: ({ container, ...props }: PortalProps_2) => JSX_2.Element;
|
|
7800
|
+
|
|
7801
|
+
declare type PortalProps = React_2.ComponentPropsWithoutRef<typeof Dialog_2.Portal>;
|
|
7800
7802
|
|
|
7801
|
-
declare type
|
|
7803
|
+
declare type PortalProps_2 = React_2.ComponentPropsWithoutRef<typeof Toast_2.Portal>;
|
|
7802
7804
|
|
|
7803
7805
|
export declare const PreviewCard: {
|
|
7804
7806
|
Positioner: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<PreviewCardPositionerProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.283.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"registry": "https://registry.npmjs.org/",
|
|
95
95
|
"access": "public"
|
|
96
96
|
},
|
|
97
|
-
"falconPackageHash": "
|
|
97
|
+
"falconPackageHash": "2ec1d05aedf56f79ccdcc5d4b84818c5c8f1782f1838e3e9f9c44db3"
|
|
98
98
|
}
|