@semcore/tab-line 4.8.2-prerelease.0 → 4.9.0-prerelease.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.
- package/CHANGELOG.md +7 -1
- package/lib/cjs/TabLine.js +13 -13
- package/lib/cjs/style/tab-line.shadow.css +11 -2
- package/lib/es6/TabLine.js +13 -13
- package/lib/es6/style/tab-line.shadow.css +11 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.
|
|
5
|
+
## [4.9.0-prerelease.0] - 2023-10-27
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version preminor update due to children dependencies update (`@semcore/flex-box` [5.8.2 ~> 5.9.0], `@semcore/neighbor-location` [4.7.7 ~> 4.8.0], `@semcore/utils` [4.8.4 ~> 4.9.0], `@semcore/core` [2.7.7 ~> 2.8.0]).
|
|
10
|
+
|
|
11
|
+
## [4.8.2] - 2023-10-24
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
package/lib/cjs/TabLine.js
CHANGED
|
@@ -21,19 +21,19 @@ var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/e
|
|
|
21
21
|
var _a11yEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/a11yEnhance"));
|
|
22
22
|
var _neighborLocation = _interopRequireDefault(require("@semcore/neighbor-location"));
|
|
23
23
|
/*__reshadow-styles__:"./style/tab-line.shadow.css"*/
|
|
24
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__STabLine": "
|
|
26
|
-
"_underlined": "
|
|
27
|
-
"__STabLineItem": "
|
|
28
|
-
"_selected": "
|
|
29
|
-
"__SText": "
|
|
30
|
-
"__SAddon": "
|
|
31
|
-
"__SCaret": "
|
|
32
|
-
"_disabled": "
|
|
33
|
-
"_keyboardFocused": "
|
|
34
|
-
"_size_m": "
|
|
35
|
-
"_size_l": "
|
|
36
|
-
"_neighborLocation_left": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___STabLine_1h9o3_gg_{position:relative;display:flex;width:100%;max-width:100%}.___STabLine_1h9o3_gg_.__underlined_1h9o3_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___STabLineItem_1h9o3_gg_{display:inline-flex;align-items:center;justify-content:center;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;border:0;background:0 0;color:var(--intergalactic-text-primary, #191b23);margin-right:var(--intergalactic-spacing-4x, 16px);font-weight:var(--intergalactic-medium, 500)}.___STabLineItem_1h9o3_gg_::-moz-focus-inner{border:0;padding:0}.___STabLineItem_1h9o3_gg_:active,.___STabLineItem_1h9o3_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___STabLineItem_1h9o3_gg_:hover{outline:0;text-decoration:none}}.___STabLineItem_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::before{content:\"\";position:absolute;left:0;bottom:-1px;height:3px;width:100%;background-color:transparent}.___STabLineItem_1h9o3_gg_::before{transition:background-color calc(var(--intergalactic-duration-control, 200)*1ms) ease-in-out}@media (hover:hover){.___STabLineItem_1h9o3_gg_:hover::before{background-color:var(--intergalactic-border-primary, #c4c7cf)}}.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_::after{transition-delay:calc(var(--intergalactic-duration-control, 200)*1ms);background-color:var(--intergalactic-border-info-active, #006dca)}.___STabLineItem_1h9o3_gg_ .___SAddon_1h9o3_gg_:not(:last-child),.___STabLineItem_1h9o3_gg_ .___SText_1h9o3_gg_:not(:last-child){margin-right:var(--intergalactic-spacing-2x, 8px)}.___SCaret_1h9o3_gg_{position:absolute;bottom:-1px;height:3px;background-color:var(--intergalactic-border-info-active, #006dca);transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_{flex-shrink:0}.___STabLineItem_1h9o3_gg_.__disabled_1h9o3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STabLineItem_1h9o3_gg_.__keyboardFocused_1h9o3_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SText_1h9o3_gg_{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_1h9o3_gg_{display:inline-flex;align-items:center;justify-content:center}.___STabLineItem_1h9o3_gg_._size_m_1h9o3_gg_{height:28px;min-width:18px}.___STabLineItem_1h9o3_gg_._size_m_1h9o3_gg_ .___SText_1h9o3_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STabLineItem_1h9o3_gg_._size_l_1h9o3_gg_{height:40px;min-width:26px}.___STabLineItem_1h9o3_gg_._size_l_1h9o3_gg_ .___SText_1h9o3_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STabLineItem_1h9o3_gg_._neighborLocation_left_1h9o3_gg_{margin-right:0}@media (prefers-reduced-motion){.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::before{transition:none}.___SCaret_1h9o3_gg_{display:none}}" /*__inner_css_end__*/, "1h9o3_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__STabLine": "___STabLine_1h9o3_gg_",
|
|
26
|
+
"_underlined": "__underlined_1h9o3_gg_",
|
|
27
|
+
"__STabLineItem": "___STabLineItem_1h9o3_gg_",
|
|
28
|
+
"_selected": "__selected_1h9o3_gg_",
|
|
29
|
+
"__SText": "___SText_1h9o3_gg_",
|
|
30
|
+
"__SAddon": "___SAddon_1h9o3_gg_",
|
|
31
|
+
"__SCaret": "___SCaret_1h9o3_gg_",
|
|
32
|
+
"_disabled": "__disabled_1h9o3_gg_",
|
|
33
|
+
"_keyboardFocused": "__keyboardFocused_1h9o3_gg_",
|
|
34
|
+
"_size_m": "_size_m_1h9o3_gg_",
|
|
35
|
+
"_size_l": "_size_l_1h9o3_gg_",
|
|
36
|
+
"_neighborLocation_left": "_neighborLocation_left_1h9o3_gg_"
|
|
37
37
|
});
|
|
38
38
|
var optionsA11yEnhance = {
|
|
39
39
|
onNeighborChange: function onNeighborChange(neighborElement) {
|
|
@@ -57,12 +57,15 @@ STabLineItem {
|
|
|
57
57
|
width: 100%;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
}
|
|
60
|
+
|
|
60
61
|
&::before {
|
|
61
62
|
transition: background-color calc(var(--intergalactic-duration-control, 200) * 1ms) ease-in-out;
|
|
62
63
|
}
|
|
64
|
+
|
|
63
65
|
&:hover::before {
|
|
64
66
|
background-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
65
67
|
}
|
|
68
|
+
|
|
66
69
|
&[selected]::after {
|
|
67
70
|
transition-delay: calc(var(--intergalactic-duration-control, 200) * 1ms);
|
|
68
71
|
background-color: var(--intergalactic-border-info-active, #006dca);
|
|
@@ -76,6 +79,7 @@ STabLineItem {
|
|
|
76
79
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
77
80
|
}
|
|
78
81
|
}
|
|
82
|
+
|
|
79
83
|
SCaret {
|
|
80
84
|
position: absolute;
|
|
81
85
|
bottom: -1px;
|
|
@@ -91,7 +95,8 @@ STabLineItem[selected] {
|
|
|
91
95
|
STabLineItem[disabled] {
|
|
92
96
|
opacity: var(--intergalactic-disabled-opacity, 0.3);
|
|
93
97
|
cursor: default;
|
|
94
|
-
|
|
98
|
+
/* Disable link interactions */
|
|
99
|
+
pointer-events: none;
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
STabLineItem[keyboardFocused] {
|
|
@@ -114,6 +119,7 @@ SAddon {
|
|
|
114
119
|
STabLineItem[size='m'] {
|
|
115
120
|
height: 28px;
|
|
116
121
|
min-width: 18px;
|
|
122
|
+
|
|
117
123
|
& SText {
|
|
118
124
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
119
125
|
line-height: var(--intergalactic-lh-200, 142%);
|
|
@@ -123,6 +129,7 @@ STabLineItem[size='m'] {
|
|
|
123
129
|
STabLineItem[size='l'] {
|
|
124
130
|
height: 40px;
|
|
125
131
|
min-width: 26px;
|
|
132
|
+
|
|
126
133
|
& SText {
|
|
127
134
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
128
135
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
@@ -135,10 +142,12 @@ STabLineItem[neighborLocation='left'] {
|
|
|
135
142
|
|
|
136
143
|
@media (prefers-reduced-motion) {
|
|
137
144
|
STabLineItem {
|
|
145
|
+
|
|
138
146
|
&::before,
|
|
139
147
|
&::after {
|
|
140
148
|
transition: none;
|
|
141
149
|
}
|
|
150
|
+
|
|
142
151
|
&[selected]::after {
|
|
143
152
|
transition: none;
|
|
144
153
|
}
|
|
@@ -147,4 +156,4 @@ STabLineItem[neighborLocation='left'] {
|
|
|
147
156
|
SCaret {
|
|
148
157
|
display: none;
|
|
149
158
|
}
|
|
150
|
-
}
|
|
159
|
+
}
|
package/lib/es6/TabLine.js
CHANGED
|
@@ -18,19 +18,19 @@ import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhan
|
|
|
18
18
|
import a11yEnhance from '@semcore/utils/lib/enhances/a11yEnhance';
|
|
19
19
|
import NeighborLocation from '@semcore/neighbor-location';
|
|
20
20
|
/*__reshadow-styles__:"./style/tab-line.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__STabLine": "
|
|
23
|
-
"_underlined": "
|
|
24
|
-
"__STabLineItem": "
|
|
25
|
-
"_selected": "
|
|
26
|
-
"__SText": "
|
|
27
|
-
"__SAddon": "
|
|
28
|
-
"__SCaret": "
|
|
29
|
-
"_disabled": "
|
|
30
|
-
"_keyboardFocused": "
|
|
31
|
-
"_size_m": "
|
|
32
|
-
"_size_l": "
|
|
33
|
-
"_neighborLocation_left": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STabLine_1h9o3_gg_{position:relative;display:flex;width:100%;max-width:100%}.___STabLine_1h9o3_gg_.__underlined_1h9o3_gg_{border-bottom:1px solid var(--intergalactic-border-primary, #c4c7cf)}.___STabLineItem_1h9o3_gg_{display:inline-flex;align-items:center;justify-content:center;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;text-decoration:none;-webkit-tap-highlight-color:transparent;overflow:visible;outline:0;text-align:center;vertical-align:middle;font-family:inherit;cursor:pointer;border:0;background:0 0;color:var(--intergalactic-text-primary, #191b23);margin-right:var(--intergalactic-spacing-4x, 16px);font-weight:var(--intergalactic-medium, 500)}.___STabLineItem_1h9o3_gg_::-moz-focus-inner{border:0;padding:0}.___STabLineItem_1h9o3_gg_:active,.___STabLineItem_1h9o3_gg_:focus{outline:0;text-decoration:none}@media (hover:hover){.___STabLineItem_1h9o3_gg_:hover{outline:0;text-decoration:none}}.___STabLineItem_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::before{content:\"\";position:absolute;left:0;bottom:-1px;height:3px;width:100%;background-color:transparent}.___STabLineItem_1h9o3_gg_::before{transition:background-color calc(var(--intergalactic-duration-control, 200)*1ms) ease-in-out}@media (hover:hover){.___STabLineItem_1h9o3_gg_:hover::before{background-color:var(--intergalactic-border-primary, #c4c7cf)}}.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_::after{transition-delay:calc(var(--intergalactic-duration-control, 200)*1ms);background-color:var(--intergalactic-border-info-active, #006dca)}.___STabLineItem_1h9o3_gg_ .___SAddon_1h9o3_gg_:not(:last-child),.___STabLineItem_1h9o3_gg_ .___SText_1h9o3_gg_:not(:last-child){margin-right:var(--intergalactic-spacing-2x, 8px)}.___SCaret_1h9o3_gg_{position:absolute;bottom:-1px;height:3px;background-color:var(--intergalactic-border-info-active, #006dca);transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_{flex-shrink:0}.___STabLineItem_1h9o3_gg_.__disabled_1h9o3_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___STabLineItem_1h9o3_gg_.__keyboardFocused_1h9o3_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SText_1h9o3_gg_{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_1h9o3_gg_{display:inline-flex;align-items:center;justify-content:center}.___STabLineItem_1h9o3_gg_._size_m_1h9o3_gg_{height:28px;min-width:18px}.___STabLineItem_1h9o3_gg_._size_m_1h9o3_gg_ .___SText_1h9o3_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___STabLineItem_1h9o3_gg_._size_l_1h9o3_gg_{height:40px;min-width:26px}.___STabLineItem_1h9o3_gg_._size_l_1h9o3_gg_ .___SText_1h9o3_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___STabLineItem_1h9o3_gg_._neighborLocation_left_1h9o3_gg_{margin-right:0}@media (prefers-reduced-motion){.___STabLineItem_1h9o3_gg_.__selected_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::after,.___STabLineItem_1h9o3_gg_::before{transition:none}.___SCaret_1h9o3_gg_{display:none}}" /*__inner_css_end__*/, "1h9o3_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__STabLine": "___STabLine_1h9o3_gg_",
|
|
23
|
+
"_underlined": "__underlined_1h9o3_gg_",
|
|
24
|
+
"__STabLineItem": "___STabLineItem_1h9o3_gg_",
|
|
25
|
+
"_selected": "__selected_1h9o3_gg_",
|
|
26
|
+
"__SText": "___SText_1h9o3_gg_",
|
|
27
|
+
"__SAddon": "___SAddon_1h9o3_gg_",
|
|
28
|
+
"__SCaret": "___SCaret_1h9o3_gg_",
|
|
29
|
+
"_disabled": "__disabled_1h9o3_gg_",
|
|
30
|
+
"_keyboardFocused": "__keyboardFocused_1h9o3_gg_",
|
|
31
|
+
"_size_m": "_size_m_1h9o3_gg_",
|
|
32
|
+
"_size_l": "_size_l_1h9o3_gg_",
|
|
33
|
+
"_neighborLocation_left": "_neighborLocation_left_1h9o3_gg_"
|
|
34
34
|
});
|
|
35
35
|
var optionsA11yEnhance = {
|
|
36
36
|
onNeighborChange: function onNeighborChange(neighborElement) {
|
|
@@ -57,12 +57,15 @@ STabLineItem {
|
|
|
57
57
|
width: 100%;
|
|
58
58
|
background-color: transparent;
|
|
59
59
|
}
|
|
60
|
+
|
|
60
61
|
&::before {
|
|
61
62
|
transition: background-color calc(var(--intergalactic-duration-control, 200) * 1ms) ease-in-out;
|
|
62
63
|
}
|
|
64
|
+
|
|
63
65
|
&:hover::before {
|
|
64
66
|
background-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
65
67
|
}
|
|
68
|
+
|
|
66
69
|
&[selected]::after {
|
|
67
70
|
transition-delay: calc(var(--intergalactic-duration-control, 200) * 1ms);
|
|
68
71
|
background-color: var(--intergalactic-border-info-active, #006dca);
|
|
@@ -76,6 +79,7 @@ STabLineItem {
|
|
|
76
79
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
77
80
|
}
|
|
78
81
|
}
|
|
82
|
+
|
|
79
83
|
SCaret {
|
|
80
84
|
position: absolute;
|
|
81
85
|
bottom: -1px;
|
|
@@ -91,7 +95,8 @@ STabLineItem[selected] {
|
|
|
91
95
|
STabLineItem[disabled] {
|
|
92
96
|
opacity: var(--intergalactic-disabled-opacity, 0.3);
|
|
93
97
|
cursor: default;
|
|
94
|
-
|
|
98
|
+
/* Disable link interactions */
|
|
99
|
+
pointer-events: none;
|
|
95
100
|
}
|
|
96
101
|
|
|
97
102
|
STabLineItem[keyboardFocused] {
|
|
@@ -114,6 +119,7 @@ SAddon {
|
|
|
114
119
|
STabLineItem[size='m'] {
|
|
115
120
|
height: 28px;
|
|
116
121
|
min-width: 18px;
|
|
122
|
+
|
|
117
123
|
& SText {
|
|
118
124
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
119
125
|
line-height: var(--intergalactic-lh-200, 142%);
|
|
@@ -123,6 +129,7 @@ STabLineItem[size='m'] {
|
|
|
123
129
|
STabLineItem[size='l'] {
|
|
124
130
|
height: 40px;
|
|
125
131
|
min-width: 26px;
|
|
132
|
+
|
|
126
133
|
& SText {
|
|
127
134
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
128
135
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
@@ -135,10 +142,12 @@ STabLineItem[neighborLocation='left'] {
|
|
|
135
142
|
|
|
136
143
|
@media (prefers-reduced-motion) {
|
|
137
144
|
STabLineItem {
|
|
145
|
+
|
|
138
146
|
&::before,
|
|
139
147
|
&::after {
|
|
140
148
|
transition: none;
|
|
141
149
|
}
|
|
150
|
+
|
|
142
151
|
&[selected]::after {
|
|
143
152
|
transition: none;
|
|
144
153
|
}
|
|
@@ -147,4 +156,4 @@ STabLineItem[neighborLocation='left'] {
|
|
|
147
156
|
SCaret {
|
|
148
157
|
display: none;
|
|
149
158
|
}
|
|
150
|
-
}
|
|
159
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/tab-line",
|
|
3
3
|
"description": "Semrush TabLine Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.
|
|
13
|
-
"@semcore/neighbor-location": "4.
|
|
14
|
-
"@semcore/utils": "4.
|
|
12
|
+
"@semcore/flex-box": "5.9.0-prerelease.0",
|
|
13
|
+
"@semcore/neighbor-location": "4.8.0-prerelease.0",
|
|
14
|
+
"@semcore/utils": "4.9.0-prerelease.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.
|
|
17
|
+
"@semcore/core": "^2.8.0-prerelease.0",
|
|
18
18
|
"react": "16.8 - 18",
|
|
19
19
|
"react-dom": "16.8 - 18"
|
|
20
20
|
},
|