@elementor/editor-ui 3.33.0-142 → 3.33.0-144
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -2
- package/dist/index.mjs +12 -2
- package/package.json +2 -2
- package/src/components/warning-infotip.tsx +11 -2
package/dist/index.d.mts
CHANGED
|
@@ -55,6 +55,7 @@ interface WarningInfotipProps extends PropsWithChildren {
|
|
|
55
55
|
placement: InfotipProps['placement'];
|
|
56
56
|
width?: string | number;
|
|
57
57
|
offset?: number[];
|
|
58
|
+
hasError?: boolean;
|
|
58
59
|
}
|
|
59
60
|
declare const WarningInfotip: React$1.ForwardRefExoticComponent<WarningInfotipProps & React$1.RefAttributes<unknown>>;
|
|
60
61
|
|
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ interface WarningInfotipProps extends PropsWithChildren {
|
|
|
55
55
|
placement: InfotipProps['placement'];
|
|
56
56
|
width?: string | number;
|
|
57
57
|
offset?: number[];
|
|
58
|
+
hasError?: boolean;
|
|
58
59
|
}
|
|
59
60
|
declare const WarningInfotip: React$1.ForwardRefExoticComponent<WarningInfotipProps & React$1.RefAttributes<unknown>>;
|
|
60
61
|
|
package/dist/index.js
CHANGED
|
@@ -274,7 +274,7 @@ var import_react6 = require("react");
|
|
|
274
274
|
var React8 = __toESM(require("react"));
|
|
275
275
|
var import_ui8 = require("@elementor/ui");
|
|
276
276
|
var WarningInfotip = (0, import_react6.forwardRef)(
|
|
277
|
-
({ children, open, title, text, placement, width, offset }, ref) => {
|
|
277
|
+
({ children, open, title, text, placement, width, offset, hasError = true }, ref) => {
|
|
278
278
|
return /* @__PURE__ */ React8.createElement(
|
|
279
279
|
import_ui8.Infotip,
|
|
280
280
|
{
|
|
@@ -289,7 +289,17 @@ var WarningInfotip = (0, import_react6.forwardRef)(
|
|
|
289
289
|
modifiers: offset ? [{ name: "offset", options: { offset } }] : []
|
|
290
290
|
},
|
|
291
291
|
arrow: false,
|
|
292
|
-
content: /* @__PURE__ */ React8.createElement(
|
|
292
|
+
content: /* @__PURE__ */ React8.createElement(
|
|
293
|
+
import_ui8.Alert,
|
|
294
|
+
{
|
|
295
|
+
color: hasError ? "error" : "secondary",
|
|
296
|
+
severity: "warning",
|
|
297
|
+
variant: "standard",
|
|
298
|
+
size: "small"
|
|
299
|
+
},
|
|
300
|
+
title ? /* @__PURE__ */ React8.createElement(import_ui8.AlertTitle, null, title) : null,
|
|
301
|
+
text
|
|
302
|
+
)
|
|
293
303
|
},
|
|
294
304
|
children
|
|
295
305
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -232,7 +232,7 @@ import { forwardRef as forwardRef5 } from "react";
|
|
|
232
232
|
import * as React8 from "react";
|
|
233
233
|
import { Alert as Alert2, AlertTitle, Infotip as Infotip2 } from "@elementor/ui";
|
|
234
234
|
var WarningInfotip = forwardRef5(
|
|
235
|
-
({ children, open, title, text, placement, width, offset }, ref) => {
|
|
235
|
+
({ children, open, title, text, placement, width, offset, hasError = true }, ref) => {
|
|
236
236
|
return /* @__PURE__ */ React8.createElement(
|
|
237
237
|
Infotip2,
|
|
238
238
|
{
|
|
@@ -247,7 +247,17 @@ var WarningInfotip = forwardRef5(
|
|
|
247
247
|
modifiers: offset ? [{ name: "offset", options: { offset } }] : []
|
|
248
248
|
},
|
|
249
249
|
arrow: false,
|
|
250
|
-
content: /* @__PURE__ */ React8.createElement(
|
|
250
|
+
content: /* @__PURE__ */ React8.createElement(
|
|
251
|
+
Alert2,
|
|
252
|
+
{
|
|
253
|
+
color: hasError ? "error" : "secondary",
|
|
254
|
+
severity: "warning",
|
|
255
|
+
variant: "standard",
|
|
256
|
+
size: "small"
|
|
257
|
+
},
|
|
258
|
+
title ? /* @__PURE__ */ React8.createElement(AlertTitle, null, title) : null,
|
|
259
|
+
text
|
|
260
|
+
)
|
|
251
261
|
},
|
|
252
262
|
children
|
|
253
263
|
);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-ui",
|
|
3
3
|
"description": "Elementor Editor UI",
|
|
4
|
-
"version": "3.33.0-
|
|
4
|
+
"version": "3.33.0-144",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor-v1-adapters": "3.33.0-
|
|
40
|
+
"@elementor/editor-v1-adapters": "3.33.0-144",
|
|
41
41
|
"@elementor/icons": "1.46.0",
|
|
42
42
|
"@elementor/ui": "1.36.12",
|
|
43
43
|
"@tanstack/react-virtual": "^3.13.3",
|
|
@@ -9,10 +9,14 @@ interface WarningInfotipProps extends PropsWithChildren {
|
|
|
9
9
|
placement: InfotipProps[ 'placement' ];
|
|
10
10
|
width?: string | number;
|
|
11
11
|
offset?: number[];
|
|
12
|
+
hasError?: boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export const WarningInfotip = forwardRef(
|
|
15
|
-
(
|
|
16
|
+
(
|
|
17
|
+
{ children, open, title, text, placement, width, offset, hasError = true }: WarningInfotipProps,
|
|
18
|
+
ref: unknown
|
|
19
|
+
) => {
|
|
16
20
|
return (
|
|
17
21
|
<Infotip
|
|
18
22
|
ref={ ref }
|
|
@@ -27,7 +31,12 @@ export const WarningInfotip = forwardRef(
|
|
|
27
31
|
} }
|
|
28
32
|
arrow={ false }
|
|
29
33
|
content={
|
|
30
|
-
<Alert
|
|
34
|
+
<Alert
|
|
35
|
+
color={ hasError ? 'error' : 'secondary' }
|
|
36
|
+
severity="warning"
|
|
37
|
+
variant="standard"
|
|
38
|
+
size="small"
|
|
39
|
+
>
|
|
31
40
|
{ title ? <AlertTitle>{ title }</AlertTitle> : null }
|
|
32
41
|
{ text }
|
|
33
42
|
</Alert>
|