@semcore/dropdown-menu 4.48.0 → 4.48.1

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/esm/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { default as o } from "./DropdownMenu.mjs";
1
+ import { default as default2 } from "./DropdownMenu.mjs";
2
2
  export {
3
- o as default
3
+ default2 as default
4
4
  };
@@ -0,0 +1,146 @@
1
+ SDropdownMenuList {
2
+ max-height: 240px;
3
+ padding: var(--intergalactic-spacing-1x, 4px) 0;
4
+ position: relative;
5
+ min-height: 26px;
6
+ min-width: 32px;
7
+ box-sizing: content-box;
8
+ z-index: 0;
9
+ color: var(--intergalactic-text-primary, #191b23);
10
+
11
+ SShadowHorizontal {
12
+ &:before,
13
+ &:after {
14
+ width: 16px;
15
+ height: 100%;
16
+ border-radius: var(--intergalactic-control-rounded, 6px);
17
+ }
18
+ }
19
+
20
+ SShadowHorizontal[position='median'] {
21
+ &:before {
22
+ background: var(
23
+ --intergalactic-scroll-area-dropdown-menu-left,
24
+ linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
25
+ );
26
+ }
27
+
28
+ &:after {
29
+ background: var(
30
+ --intergalactic-scroll-area-dropdown-menu-right,
31
+ linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
32
+ );
33
+ }
34
+ }
35
+
36
+ SShadowHorizontal[position='start'] {
37
+ &:before {
38
+ background: var(
39
+ --intergalactic-scroll-area-dropdown-menu-left,
40
+ linear-gradient(to right, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
41
+ );
42
+ }
43
+ }
44
+
45
+ SShadowHorizontal[position='end'] {
46
+ &:after {
47
+ background: var(
48
+ --intergalactic-scroll-area-dropdown-menu-right,
49
+ linear-gradient(to left, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
50
+ );
51
+ }
52
+ }
53
+
54
+ SShadowVertical {
55
+ &:before,
56
+ &:after {
57
+ width: 100%;
58
+ height: 16px;
59
+ border-radius: var(--intergalactic-control-rounded, 6px);
60
+ }
61
+ }
62
+
63
+ SShadowVertical[position='median'] {
64
+ &:before {
65
+ background: var(
66
+ --intergalactic-scroll-area-dropdown-menu-top,
67
+ linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
68
+ );
69
+ }
70
+
71
+ &:after {
72
+ background: var(
73
+ --intergalactic-scroll-area-dropdown-menu-bottom,
74
+ linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
75
+ );
76
+ }
77
+ }
78
+
79
+ SShadowVertical[position='start'] {
80
+ &:before {
81
+ background: var(
82
+ --intergalactic-scroll-area-dropdown-menu-top,
83
+ linear-gradient(to bottom, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
84
+ );
85
+ }
86
+ }
87
+
88
+ SShadowVertical[position='end'] {
89
+ &:after {
90
+ background: var(
91
+ --intergalactic-scroll-area-dropdown-menu-bottom,
92
+ linear-gradient(to top, rgba(255, 255, 255, 1) 34.38%, rgba(255, 255, 255, 0) 100%)
93
+ );
94
+ }
95
+ }
96
+ }
97
+
98
+ SDropdownMenuItemContainer[nesting-trigger] {
99
+ justify-content: space-between;
100
+ }
101
+
102
+ SDropdownMenuItemAddon, SItemContentText {
103
+ display: inline-flex;
104
+ margin-left: var(--intergalactic-spacing-1x, 4px);
105
+ margin-right: var(--intergalactic-spacing-1x, 4px);
106
+
107
+ &:first-child {
108
+ margin-left: 0;
109
+ }
110
+
111
+ &:last-child {
112
+ margin-right: 0;
113
+ }
114
+ }
115
+
116
+ SDropdownMenuNesting,
117
+ SDropdownMenuNesting[size='l'],
118
+ SDropdownMenuNesting[size='m'] {
119
+ padding: 0;
120
+ }
121
+
122
+ SDropdownMenuNesting[highlighted] {
123
+ z-index: 1;
124
+ box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5)) inset;
125
+ }
126
+
127
+ SDropdownNestingItem[size='l'],
128
+ SDropdownNestingItem[size='m'] {
129
+ padding-right: 0;
130
+ }
131
+
132
+ SDropdownNestingItem SDropdownMenuItemContainer {
133
+ width: auto;
134
+ padding-top: 0;
135
+ padding-bottom: 0;
136
+ padding-left: 0;
137
+ min-height: auto;
138
+ }
139
+
140
+ SItemContent:focus {
141
+ outline: none;
142
+ }
143
+
144
+ SItemHint {
145
+ color: var(--intergalactic-text-secondary, #6c6e79);
146
+ }
@@ -1,33 +1,33 @@
1
- import r from "./de.json.mjs";
2
- import o from "./en.json.mjs";
3
- import m from "./es.json.mjs";
4
- import t from "./fr.json.mjs";
5
- import i from "./it.json.mjs";
6
- import p from "./ja.json.mjs";
7
- import f from "./ko.json.mjs";
8
- import e from "./nl.json.mjs";
9
- import s from "./pt.json.mjs";
10
- import a from "./tr.json.mjs";
11
- import l from "./vi.json.mjs";
12
- import v from "./zh.json.mjs";
13
- import d from "./pl.json.mjs";
14
- import n from "./sv.json.mjs";
15
- var B = {
16
- de: r,
17
- en: o,
18
- es: m,
19
- fr: t,
20
- it: i,
21
- ja: p,
22
- ko: f,
23
- nl: e,
24
- pt: s,
25
- tr: a,
26
- vi: l,
27
- zh: v,
28
- pl: d,
29
- sv: n
1
+ import de from "./de.json.mjs";
2
+ import en from "./en.json.mjs";
3
+ import es from "./es.json.mjs";
4
+ import fr from "./fr.json.mjs";
5
+ import it from "./it.json.mjs";
6
+ import ja from "./ja.json.mjs";
7
+ import ko from "./ko.json.mjs";
8
+ import nl from "./nl.json.mjs";
9
+ import pt from "./pt.json.mjs";
10
+ import tr from "./tr.json.mjs";
11
+ import vi from "./vi.json.mjs";
12
+ import zh from "./zh.json.mjs";
13
+ import pl from "./pl.json.mjs";
14
+ import sv from "./sv.json.mjs";
15
+ var localizedMessages = {
16
+ de,
17
+ en,
18
+ es,
19
+ fr,
20
+ it,
21
+ ja,
22
+ ko,
23
+ nl,
24
+ pt,
25
+ tr,
26
+ vi,
27
+ zh,
28
+ pl,
29
+ sv
30
30
  };
31
31
  export {
32
- B as localizedMessages
32
+ localizedMessages
33
33
  };
@@ -1,7 +1,8 @@
1
- const e = "Drücken Sie Tab, um zum Popover zu gehen", t = {
2
- triggerHint: e
1
+ const triggerHint = "Drücken Sie Tab, um zum Popover zu gehen";
2
+ const de = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- t as default,
6
- e as triggerHint
6
+ de as default,
7
+ triggerHint
7
8
  };
@@ -1,4 +1,4 @@
1
- const e = {};
1
+ const en = {};
2
2
  export {
3
- e as default
3
+ en as default
4
4
  };
@@ -1,7 +1,8 @@
1
- const r = "Presiona Tab para ir a Popover", t = {
2
- triggerHint: r
1
+ const triggerHint = "Presiona Tab para ir a Popover";
2
+ const es = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- t as default,
6
- r as triggerHint
6
+ es as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const r = "Appuyez sur la touche Tab pour accéder au popover", t = {
2
- triggerHint: r
1
+ const triggerHint = "Appuyez sur la touche Tab pour accéder au popover";
2
+ const fr = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- t as default,
6
- r as triggerHint
6
+ fr as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const r = "Premi Tab per andare a Popover", t = {
2
- triggerHint: r
1
+ const triggerHint = "Premi Tab per andare a Popover";
2
+ const it = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- t as default,
6
- r as triggerHint
6
+ it as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Tabキーを押してポップオーバーに移動", r = {
2
- triggerHint: t
1
+ const triggerHint = "Tabキーを押してポップオーバーに移動";
2
+ const ja = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- r as default,
6
- t as triggerHint
6
+ ja as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "팝업창으로 이동하려면 Tab 키를 누르세요", r = {
2
- triggerHint: t
1
+ const triggerHint = "팝업창으로 이동하려면 Tab 키를 누르세요";
2
+ const ko = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- r as default,
6
- t as triggerHint
6
+ ko as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Druk op Tab om naar de popover te gaan", r = {
2
- triggerHint: t
1
+ const triggerHint = "Druk op Tab om naar de popover te gaan";
2
+ const nl = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- r as default,
6
- t as triggerHint
6
+ nl as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Naciśnij Tab, aby przejść do okienka popover", e = {
2
- triggerHint: t
1
+ const triggerHint = "Naciśnij Tab, aby przejść do okienka popover";
2
+ const pl = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- e as default,
6
- t as triggerHint
6
+ pl as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const r = "Pressione Tab para acessar o pop-over", t = {
2
- triggerHint: r
1
+ const triggerHint = "Pressione Tab para acessar o pop-over";
2
+ const pt = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- t as default,
6
- r as triggerHint
6
+ pt as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Tryck på Tab för att gå till popover", r = {
2
- triggerHint: t
1
+ const triggerHint = "Tryck på Tab för att gå till popover";
2
+ const sv = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- r as default,
6
- t as triggerHint
6
+ sv as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Popover'a gitmek için Tab tuşuna basın", i = {
2
- triggerHint: t
1
+ const triggerHint = "Popover'a gitmek için Tab tuşuna basın";
2
+ const tr = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- i as default,
6
- t as triggerHint
6
+ tr as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "Nhấn Tab để chuyển đến cửa sổ bật lên", n = {
2
- triggerHint: t
1
+ const triggerHint = "Nhấn Tab để chuyển đến cửa sổ bật lên";
2
+ const vi = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- n as default,
6
- t as triggerHint
6
+ vi as default,
7
+ triggerHint
7
8
  };
@@ -1,7 +1,8 @@
1
- const t = "按 T​​ab 转到弹出框", r = {
2
- triggerHint: t
1
+ const triggerHint = "按 T​​ab 转到弹出框";
2
+ const zh = {
3
+ triggerHint
3
4
  };
4
5
  export {
5
- r as default,
6
- t as triggerHint
6
+ zh as default,
7
+ triggerHint
7
8
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/dropdown-menu",
3
3
  "description": "Semrush DropdownMenu Component",
4
- "version": "4.48.0",
4
+ "version": "4.48.1",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "5.43.1",
18
- "@semcore/dropdown": "4.43.2",
19
- "@semcore/flex-box": "5.41.2",
20
- "@semcore/scroll-area": "5.45.2",
21
- "@semcore/utils": "4.48.2",
22
- "@semcore/icon": "4.61.0",
23
- "@semcore/typography": "5.53.0",
24
- "@semcore/popper": "5.46.2",
17
+ "@semcore/button": "5.43.2",
18
+ "@semcore/dropdown": "4.43.3",
19
+ "@semcore/flex-box": "5.41.3",
20
+ "@semcore/scroll-area": "5.45.3",
21
+ "@semcore/utils": "4.48.4",
22
+ "@semcore/icon": "4.62.0",
23
+ "@semcore/typography": "5.53.1",
24
+ "@semcore/popper": "5.46.3",
25
25
  "classnames": "2.2.6"
26
26
  },
27
27
  "peerDependencies": {
@@ -39,8 +39,8 @@
39
39
  "@types/classnames": "2.2.6",
40
40
  "@semcore/testing-utils": "1.0.0",
41
41
  "@semcore/base-trigger": "4.26.1",
42
- "@semcore/button": "5.43.1",
43
- "@semcore/icon": "4.61.0"
42
+ "@semcore/button": "5.43.2",
43
+ "@semcore/icon": "4.62.0"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "pnpm semcore-builder --source=js && pnpm vite build"