@rescui/dropdown-menu 0.11.12 → 0.11.14
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/lib/dropdown-menu.d.ts
CHANGED
|
@@ -3,6 +3,12 @@ import { DropdownProps } from '@rescui/dropdown';
|
|
|
3
3
|
import { MenuItemIconPlacement } from '@rescui/menu';
|
|
4
4
|
declare type DropdownMenuSize = 's' | 'm' | 'l';
|
|
5
5
|
export interface DropdownMenuProps extends Omit<DropdownProps, 'maxWidth' | 'minWidth' | 'maxHeight' | 'leastMaxHeight' | 'className'> {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of visible items in the dropdown list.
|
|
8
|
+
* For large lists, n + 0.5 items will be visible at a time.
|
|
9
|
+
* If the maximum number of items in a list is exactly n + 1, all
|
|
10
|
+
* items will be shown still (to avoid creating a scroll for half an item only).
|
|
11
|
+
*/
|
|
6
12
|
maxVisibleItems?: number;
|
|
7
13
|
iconPlacement?: MenuItemIconPlacement;
|
|
8
14
|
itemTag?: React.ElementType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"sizeS": "
|
|
3
|
-
"sizeM": "
|
|
4
|
-
"sizeL": "
|
|
5
|
-
"dropdownMenu": "
|
|
6
|
-
"menu": "
|
|
2
|
+
"sizeS": "_sizeS_y0xdvz_8",
|
|
3
|
+
"sizeM": "_sizeM_y0xdvz_11",
|
|
4
|
+
"sizeL": "_sizeL_y0xdvz_14",
|
|
5
|
+
"dropdownMenu": "_dropdownMenu_y0xdvz_18",
|
|
6
|
+
"menu": "_menu_y0xdvz_23"
|
|
7
7
|
};
|
|
8
8
|
export { styles as default };
|
package/lib/index.css
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sizeS_y0xdvz_8{
|
|
2
2
|
--_rs-dropdown-menu-min-width:316px;
|
|
3
3
|
--_rs-dropdown-menu-max-width:389px;
|
|
4
4
|
}
|
|
5
|
-
.
|
|
5
|
+
._sizeS_y0xdvz_8 [data-rs-internal='dropdown-menu__menu-wrapper']{
|
|
6
6
|
--_rs-dropdown-menu-item-height:32px;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
._sizeM_y0xdvz_11{
|
|
9
9
|
--_rs-dropdown-menu-min-width:316px;
|
|
10
10
|
--_rs-dropdown-menu-max-width:494px;
|
|
11
11
|
}
|
|
12
|
-
.
|
|
12
|
+
._sizeM_y0xdvz_11 [data-rs-internal='dropdown-menu__menu-wrapper']{
|
|
13
13
|
--_rs-dropdown-menu-item-height:40px;
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
._sizeL_y0xdvz_14{
|
|
16
16
|
--_rs-dropdown-menu-min-width:316px;
|
|
17
17
|
--_rs-dropdown-menu-max-width:494px;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._sizeL_y0xdvz_14 [data-rs-internal='dropdown-menu__menu-wrapper']{
|
|
20
20
|
--_rs-dropdown-menu-item-height:52px;
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
._dropdownMenu_y0xdvz_18{
|
|
23
23
|
min-width:var(--_rs-dropdown-menu-min-width);
|
|
24
24
|
max-width:var(--_rs-dropdown-menu-max-width);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
26
|
+
._menu_y0xdvz_23{
|
|
27
27
|
margin:0;
|
|
28
28
|
padding:0;
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/dropdown-menu",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime-corejs3": "^7.26.0",
|
|
19
|
-
"@rescui/dropdown": "^0.
|
|
20
|
-
"@rescui/menu": "^0.13.
|
|
19
|
+
"@rescui/dropdown": "^0.10.0",
|
|
20
|
+
"@rescui/menu": "^0.13.5",
|
|
21
21
|
"@rescui/use-resize-observer": "^0.3.0",
|
|
22
22
|
"classnames": "^2.2.6"
|
|
23
23
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@rescui/colors": "^0.3.0",
|
|
31
|
-
"@rescui/icons": "^1.7.
|
|
31
|
+
"@rescui/icons": "^1.7.6",
|
|
32
32
|
"@rescui/scripts": "^0.5.1",
|
|
33
|
-
"@rescui/typography": "^0.
|
|
33
|
+
"@rescui/typography": "^0.27.0",
|
|
34
34
|
"@rescui/visual-regression": "^0.1.4"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
|
|
39
39
|
},
|
|
40
40
|
"nx": {},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "e9aedd97a4cc372540ec8d75dda4f122baacca10"
|
|
42
42
|
}
|