@rescui/dropdown-menu 0.14.0 → 0.15.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.
@@ -17,17 +17,18 @@ export interface DropdownMenuProps extends Omit<DropdownProps, 'maxWidth' | 'min
17
17
  wrapItemsWithLi?: boolean;
18
18
  activateFirstItemOnOpen?: boolean;
19
19
  /**
20
- * See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width).
20
+ * See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width).
21
21
  * `trigger` is a special value that substitutes with trigger's width calculated on every dropdown position update
22
22
  * @type 'trigger' | MinWidthProperty<string | number>;
23
- * @default 316px
23
+ * @default "180px"(s); "286px"(m); "392px"(l)
24
+ * @rawDefaultValue
24
25
  * */
25
26
  minWidth?: DropdownProps['minWidth'];
26
27
  /**
27
- * See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width).
28
+ * See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width).
28
29
  * `trigger` is a special value that substitutes with trigger's width calculated on every dropdown position update
29
30
  * @type 'trigger' | MaxWidthProperty<string | number>;
30
- * @default "389px"(s); "494px"(m,l)
31
+ * @default "392px"(s); "498px"(m); "604px"(l)
31
32
  * @rawDefaultValue
32
33
  * */
33
34
  maxWidth?: DropdownProps['maxWidth'];
@@ -1,3 +1,3 @@
1
- var styles = {"sizeS":"_sizeS_17dmjsn_8","sizeM":"_sizeM_17dmjsn_11","sizeL":"_sizeL_17dmjsn_14","dropdownMenu":"_dropdownMenu_17dmjsn_18","menu":"_menu_17dmjsn_23"};
1
+ var styles = {"sizeS":"_sizeS_1vpgcd0_8","sizeM":"_sizeM_1vpgcd0_11","sizeL":"_sizeL_1vpgcd0_14","dropdownMenu":"_dropdownMenu_1vpgcd0_18","menu":"_menu_1vpgcd0_23"};
2
2
 
3
3
  export { styles as default };
package/lib/index.css CHANGED
@@ -1,31 +1,31 @@
1
- ._sizeS_17dmjsn_8{
2
- --_rs-dropdown-menu-min-width:316px;
3
- --_rs-dropdown-menu-max-width:389px;
1
+ ._sizeS_1vpgcd0_8{
2
+ --_rs-dropdown-menu-min-width:180px;
3
+ --_rs-dropdown-menu-max-width:392px;
4
4
  }
5
- ._sizeS_17dmjsn_8 [data-rs-internal='dropdown-menu__menu-wrapper']{
5
+ ._sizeS_1vpgcd0_8 [data-rs-internal='dropdown-menu__menu-wrapper']{
6
6
  --_rs-dropdown-menu-item-height:32px;
7
7
  }
8
- ._sizeM_17dmjsn_11{
9
- --_rs-dropdown-menu-min-width:316px;
10
- --_rs-dropdown-menu-max-width:494px;
8
+ ._sizeM_1vpgcd0_11{
9
+ --_rs-dropdown-menu-min-width:286px;
10
+ --_rs-dropdown-menu-max-width:498px;
11
11
  }
12
- ._sizeM_17dmjsn_11 [data-rs-internal='dropdown-menu__menu-wrapper']{
12
+ ._sizeM_1vpgcd0_11 [data-rs-internal='dropdown-menu__menu-wrapper']{
13
13
  --_rs-dropdown-menu-item-height:40px;
14
14
  }
15
- ._sizeL_17dmjsn_14{
16
- --_rs-dropdown-menu-min-width:316px;
17
- --_rs-dropdown-menu-max-width:494px;
15
+ ._sizeL_1vpgcd0_14{
16
+ --_rs-dropdown-menu-min-width:392px;
17
+ --_rs-dropdown-menu-max-width:604px;
18
18
  }
19
- ._sizeL_17dmjsn_14 [data-rs-internal='dropdown-menu__menu-wrapper']{
19
+ ._sizeL_1vpgcd0_14 [data-rs-internal='dropdown-menu__menu-wrapper']{
20
20
  --_rs-dropdown-menu-item-height:52px;
21
21
  }
22
22
 
23
- ._dropdownMenu_17dmjsn_18{
23
+ ._dropdownMenu_1vpgcd0_18{
24
24
  min-width:var(--_rs-dropdown-menu-min-width);
25
25
  max-width:var(--_rs-dropdown-menu-max-width);
26
26
  }
27
27
 
28
- ._menu_17dmjsn_23{
28
+ ._menu_1vpgcd0_23{
29
29
  margin:0;
30
30
  padding:0;
31
31
 
@@ -5,8 +5,8 @@
5
5
  }
6
6
  @define-mixin rs-dropdown-menu-size-s{
7
7
  &[class]{
8
- --_rs-dropdown-menu-min-width:316px;
9
- --_rs-dropdown-menu-max-width:389px;
8
+ --_rs-dropdown-menu-min-width:180px;
9
+ --_rs-dropdown-menu-max-width:392px;
10
10
  }
11
11
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
12
12
  --_rs-dropdown-menu-item-height:32px;
@@ -87,8 +87,8 @@
87
87
  }
88
88
  @define-mixin rs-dropdown-menu-size-m{
89
89
  &[class]{
90
- --_rs-dropdown-menu-min-width:316px;
91
- --_rs-dropdown-menu-max-width:494px;
90
+ --_rs-dropdown-menu-min-width:286px;
91
+ --_rs-dropdown-menu-max-width:498px;
92
92
  }
93
93
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
94
94
  --_rs-dropdown-menu-item-height:40px;
@@ -177,8 +177,8 @@
177
177
  }
178
178
  @define-mixin rs-dropdown-menu-size-l{
179
179
  &[class]{
180
- --_rs-dropdown-menu-min-width:316px;
181
- --_rs-dropdown-menu-max-width:494px;
180
+ --_rs-dropdown-menu-min-width:392px;
181
+ --_rs-dropdown-menu-max-width:604px;
182
182
  }
183
183
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
184
184
  --_rs-dropdown-menu-item-height:52px;
@@ -5,8 +5,8 @@
5
5
  }
6
6
  @define-mixin rs-dropdown-menu-size-s{
7
7
  &[class]{
8
- --_rs-dropdown-menu-min-width:316px;
9
- --_rs-dropdown-menu-max-width:389px;
8
+ --_rs-dropdown-menu-min-width:180px;
9
+ --_rs-dropdown-menu-max-width:392px;
10
10
  }
11
11
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
12
12
  --_rs-dropdown-menu-item-height:32px;
@@ -87,8 +87,8 @@
87
87
  }
88
88
  @define-mixin rs-dropdown-menu-size-m{
89
89
  &[class]{
90
- --_rs-dropdown-menu-min-width:316px;
91
- --_rs-dropdown-menu-max-width:494px;
90
+ --_rs-dropdown-menu-min-width:286px;
91
+ --_rs-dropdown-menu-max-width:498px;
92
92
  }
93
93
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
94
94
  --_rs-dropdown-menu-item-height:40px;
@@ -177,8 +177,8 @@
177
177
  }
178
178
  @define-mixin rs-dropdown-menu-size-l{
179
179
  &[class]{
180
- --_rs-dropdown-menu-min-width:316px;
181
- --_rs-dropdown-menu-max-width:494px;
180
+ --_rs-dropdown-menu-min-width:392px;
181
+ --_rs-dropdown-menu-max-width:604px;
182
182
  }
183
183
  &[class] [data-rs-internal='dropdown-menu__menu-wrapper']{
184
184
  --_rs-dropdown-menu-item-height:52px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescui/dropdown-menu",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "JetBrains",
@@ -39,5 +39,5 @@
39
39
  "build-pcss-api": "rescui-scripts build-pcss-api --file public-api.p.css"
40
40
  },
41
41
  "nx": {},
42
- "gitHead": "e3d19214955db8de3ac6dccdea512f9331332d29"
42
+ "gitHead": "9f2c026c722a743fc4aa1f14f7485bd178b2bacf"
43
43
  }