@elementor/editor-ui 3.33.0-157 → 3.33.0-159
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +8 -4
- package/dist/index.mjs +13 -5
- package/package.json +2 -2
- package/src/components/menu-item.tsx +20 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ReactNode, PropsWithChildren, ReactElement } from 'react';
|
|
3
|
-
import { MenuItemProps, AlertProps, InfotipProps, MenuList, DialogProps, DialogContentTextProps } from '@elementor/ui';
|
|
3
|
+
import { MenuItemProps, MenuItemTextProps, TypographyProps, AlertProps, InfotipProps, MenuList, DialogProps, DialogContentTextProps } from '@elementor/ui';
|
|
4
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
|
|
6
6
|
type EllipsisWithTooltipProps<T extends React$1.ElementType> = {
|
|
@@ -23,7 +23,11 @@ declare function ThemeProvider({ children }: {
|
|
|
23
23
|
children: React$1.ReactNode;
|
|
24
24
|
}): React$1.JSX.Element;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
type MenuListItemProps = MenuItemProps & {
|
|
27
|
+
menuItemTextProps?: MenuItemTextProps;
|
|
28
|
+
primaryTypographyProps?: TypographyProps;
|
|
29
|
+
};
|
|
30
|
+
declare const MenuListItem: ({ children, menuItemTextProps, primaryTypographyProps, ...props }: MenuListItemProps) => React$1.JSX.Element;
|
|
27
31
|
declare const MenuItemInfotip: React$1.ForwardRefExoticComponent<{
|
|
28
32
|
showInfoTip?: boolean;
|
|
29
33
|
children: React$1.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { ReactNode, PropsWithChildren, ReactElement } from 'react';
|
|
3
|
-
import { MenuItemProps, AlertProps, InfotipProps, MenuList, DialogProps, DialogContentTextProps } from '@elementor/ui';
|
|
3
|
+
import { MenuItemProps, MenuItemTextProps, TypographyProps, AlertProps, InfotipProps, MenuList, DialogProps, DialogContentTextProps } from '@elementor/ui';
|
|
4
4
|
import * as _emotion_styled from '@emotion/styled';
|
|
5
5
|
|
|
6
6
|
type EllipsisWithTooltipProps<T extends React$1.ElementType> = {
|
|
@@ -23,7 +23,11 @@ declare function ThemeProvider({ children }: {
|
|
|
23
23
|
children: React$1.ReactNode;
|
|
24
24
|
}): React$1.JSX.Element;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
type MenuListItemProps = MenuItemProps & {
|
|
27
|
+
menuItemTextProps?: MenuItemTextProps;
|
|
28
|
+
primaryTypographyProps?: TypographyProps;
|
|
29
|
+
};
|
|
30
|
+
declare const MenuListItem: ({ children, menuItemTextProps, primaryTypographyProps, ...props }: MenuListItemProps) => React$1.JSX.Element;
|
|
27
31
|
declare const MenuItemInfotip: React$1.ForwardRefExoticComponent<{
|
|
28
32
|
showInfoTip?: boolean;
|
|
29
33
|
children: React$1.ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -213,7 +213,12 @@ var InfoAlert = (props) => /* @__PURE__ */ React5.createElement(
|
|
|
213
213
|
);
|
|
214
214
|
|
|
215
215
|
// src/components/menu-item.tsx
|
|
216
|
-
var MenuListItem = ({
|
|
216
|
+
var MenuListItem = ({
|
|
217
|
+
children,
|
|
218
|
+
menuItemTextProps,
|
|
219
|
+
primaryTypographyProps = { variant: "caption" },
|
|
220
|
+
...props
|
|
221
|
+
}) => {
|
|
217
222
|
return /* @__PURE__ */ React6.createElement(
|
|
218
223
|
import_ui6.MenuItem,
|
|
219
224
|
{
|
|
@@ -227,9 +232,8 @@ var MenuListItem = ({ children, ...props }) => {
|
|
|
227
232
|
import_ui6.MenuItemText,
|
|
228
233
|
{
|
|
229
234
|
primary: children,
|
|
230
|
-
primaryTypographyProps
|
|
231
|
-
|
|
232
|
-
}
|
|
235
|
+
primaryTypographyProps,
|
|
236
|
+
...menuItemTextProps
|
|
233
237
|
}
|
|
234
238
|
)
|
|
235
239
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -152,7 +152,11 @@ function ThemeProvider({ children }) {
|
|
|
152
152
|
// src/components/menu-item.tsx
|
|
153
153
|
import * as React6 from "react";
|
|
154
154
|
import { forwardRef as forwardRef4 } from "react";
|
|
155
|
-
import {
|
|
155
|
+
import {
|
|
156
|
+
Infotip,
|
|
157
|
+
MenuItem,
|
|
158
|
+
MenuItemText
|
|
159
|
+
} from "@elementor/ui";
|
|
156
160
|
|
|
157
161
|
// src/components/info-alert.tsx
|
|
158
162
|
import * as React5 from "react";
|
|
@@ -171,7 +175,12 @@ var InfoAlert = (props) => /* @__PURE__ */ React5.createElement(
|
|
|
171
175
|
);
|
|
172
176
|
|
|
173
177
|
// src/components/menu-item.tsx
|
|
174
|
-
var MenuListItem = ({
|
|
178
|
+
var MenuListItem = ({
|
|
179
|
+
children,
|
|
180
|
+
menuItemTextProps,
|
|
181
|
+
primaryTypographyProps = { variant: "caption" },
|
|
182
|
+
...props
|
|
183
|
+
}) => {
|
|
175
184
|
return /* @__PURE__ */ React6.createElement(
|
|
176
185
|
MenuItem,
|
|
177
186
|
{
|
|
@@ -185,9 +194,8 @@ var MenuListItem = ({ children, ...props }) => {
|
|
|
185
194
|
MenuItemText,
|
|
186
195
|
{
|
|
187
196
|
primary: children,
|
|
188
|
-
primaryTypographyProps
|
|
189
|
-
|
|
190
|
-
}
|
|
197
|
+
primaryTypographyProps,
|
|
198
|
+
...menuItemTextProps
|
|
191
199
|
}
|
|
192
200
|
)
|
|
193
201
|
);
|
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-159",
|
|
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-159",
|
|
41
41
|
"@elementor/icons": "1.46.0",
|
|
42
42
|
"@elementor/ui": "1.36.12",
|
|
43
43
|
"@tanstack/react-virtual": "^3.13.3",
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Infotip,
|
|
5
|
+
MenuItem,
|
|
6
|
+
type MenuItemProps,
|
|
7
|
+
MenuItemText,
|
|
8
|
+
type MenuItemTextProps,
|
|
9
|
+
type TypographyProps,
|
|
10
|
+
} from '@elementor/ui';
|
|
4
11
|
|
|
5
12
|
import { InfoAlert } from './info-alert';
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
type MenuListItemProps = MenuItemProps & {
|
|
14
|
+
menuItemTextProps?: MenuItemTextProps;
|
|
15
|
+
primaryTypographyProps?: TypographyProps;
|
|
16
|
+
};
|
|
17
|
+
export const MenuListItem = ( {
|
|
18
|
+
children,
|
|
19
|
+
menuItemTextProps,
|
|
20
|
+
primaryTypographyProps = { variant: 'caption' },
|
|
21
|
+
...props
|
|
22
|
+
}: MenuListItemProps ) => {
|
|
8
23
|
return (
|
|
9
24
|
<MenuItem
|
|
10
25
|
dense
|
|
@@ -15,9 +30,8 @@ export const MenuListItem = ( { children, ...props }: MenuItemProps ) => {
|
|
|
15
30
|
>
|
|
16
31
|
<MenuItemText
|
|
17
32
|
primary={ children }
|
|
18
|
-
primaryTypographyProps={
|
|
19
|
-
|
|
20
|
-
} }
|
|
33
|
+
primaryTypographyProps={ primaryTypographyProps }
|
|
34
|
+
{ ...menuItemTextProps }
|
|
21
35
|
/>
|
|
22
36
|
</MenuItem>
|
|
23
37
|
);
|