@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/CHANGELOG.md +6 -0
- package/lib/cjs/DropdownMenu.js +21 -19
- package/lib/cjs/DropdownMenu.js.map +1 -1
- package/lib/es6/DropdownMenu.js +21 -19
- package/lib/es6/DropdownMenu.js.map +1 -1
- package/lib/esm/DropdownMenu.mjs +390 -293
- package/lib/esm/index.mjs +2 -2
- package/lib/esm/style/dropdown-menu.shadow.css +146 -0
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
- package/lib/esm/translations/de.json.mjs +5 -4
- package/lib/esm/translations/en.json.mjs +2 -2
- package/lib/esm/translations/es.json.mjs +5 -4
- package/lib/esm/translations/fr.json.mjs +5 -4
- package/lib/esm/translations/it.json.mjs +5 -4
- package/lib/esm/translations/ja.json.mjs +5 -4
- package/lib/esm/translations/ko.json.mjs +5 -4
- package/lib/esm/translations/nl.json.mjs +5 -4
- package/lib/esm/translations/pl.json.mjs +5 -4
- package/lib/esm/translations/pt.json.mjs +5 -4
- package/lib/esm/translations/sv.json.mjs +5 -4
- package/lib/esm/translations/tr.json.mjs +5 -4
- package/lib/esm/translations/vi.json.mjs +5 -4
- package/lib/esm/translations/zh.json.mjs +5 -4
- package/package.json +11 -11
package/lib/esm/index.mjs
CHANGED
|
@@ -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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
var
|
|
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
|
|
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
|
-
|
|
32
|
+
localizedMessages
|
|
33
33
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const triggerHint = "Drücken Sie Tab, um zum Popover zu gehen";
|
|
2
|
+
const de = {
|
|
3
|
+
triggerHint
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
de as default,
|
|
7
|
+
triggerHint
|
|
7
8
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const triggerHint = "Appuyez sur la touche Tab pour accéder au popover";
|
|
2
|
+
const fr = {
|
|
3
|
+
triggerHint
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
fr as default,
|
|
7
|
+
triggerHint
|
|
7
8
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
1
|
+
const triggerHint = "Naciśnij Tab, aby przejść do okienka popover";
|
|
2
|
+
const pl = {
|
|
3
|
+
triggerHint
|
|
3
4
|
};
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
pl 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.
|
|
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.
|
|
18
|
-
"@semcore/dropdown": "4.43.
|
|
19
|
-
"@semcore/flex-box": "5.41.
|
|
20
|
-
"@semcore/scroll-area": "5.45.
|
|
21
|
-
"@semcore/utils": "4.48.
|
|
22
|
-
"@semcore/icon": "4.
|
|
23
|
-
"@semcore/typography": "5.53.
|
|
24
|
-
"@semcore/popper": "5.46.
|
|
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.
|
|
43
|
-
"@semcore/icon": "4.
|
|
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"
|