@semcore/tab-line 2.8.7 → 2.9.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 +10 -4
- package/lib/cjs/TabLine.js +15 -15
- package/lib/cjs/style/tab-line.shadow.css +12 -0
- package/lib/es6/TabLine.js +15 -15
- package/lib/es6/style/tab-line.shadow.css +12 -0
- package/package.json +1 -1
- package/src/style/tab-line.shadow.css +12 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [2.9.0] - 2021-03-04
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Disabled animation if reduce motion is preferred.
|
|
10
|
+
|
|
5
11
|
## [2.8.7] - 2022-02-24
|
|
6
12
|
|
|
7
13
|
### Added
|
|
@@ -224,15 +230,15 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
224
230
|
|
|
225
231
|
## [1.0.0] - 2019-05-20
|
|
226
232
|
|
|
227
|
-
### Added
|
|
228
|
-
|
|
229
|
-
- Добавлено свойство `underlined`
|
|
230
|
-
|
|
231
233
|
### BREAK
|
|
232
234
|
|
|
233
235
|
- Удалено свойство `theme`
|
|
234
236
|
- Изменены размеры в соответствии с типографикой
|
|
235
237
|
|
|
238
|
+
### Added
|
|
239
|
+
|
|
240
|
+
- Добавлено свойство `underlined`
|
|
241
|
+
|
|
236
242
|
## [1.0.0-1] - 2019-02-13
|
|
237
243
|
|
|
238
244
|
### Added
|
package/lib/cjs/TabLine.js
CHANGED
|
@@ -56,24 +56,24 @@ var style = (
|
|
|
56
56
|
/*__reshadow_css_start__*/
|
|
57
57
|
_core.sstyled.insert(
|
|
58
58
|
/*__inner_css_start__*/
|
|
59
|
-
".
|
|
59
|
+
".___STabLine_kyktg_gg_{position:relative;display:flex;width:100%;max-width:100%}.___STabLine_kyktg_gg_.__underlined_kyktg_gg_{border-bottom:1px solid #cccccc}.___STabLineItem_kyktg_gg_{display:inline-flex;align-items:center;justify-content:center;line-height:1.1;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline: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:none;background:transparent}.___STabLineItem_kyktg_gg_::-moz-focus-inner{border:none;padding:0}.___STabLineItem_kyktg_gg_:active,.___STabLineItem_kyktg_gg_:focus,.___STabLineItem_kyktg_gg_:hover{outline:0;text-decoration:none}.___STabLineItem_kyktg_gg_:after{content:\"\";left:0;width:100%;background-color:transparent;transition:background-color .2s}.___STabLineItem_kyktg_gg_:hover:after{background-color:#a6b0b3}.___SIndicator_kyktg_gg_,.___STabLineItem_kyktg_gg_:after{position:absolute;display:block;bottom:-1px;height:2px}.___SIndicator_kyktg_gg_{transition:transform .5s ease;background-color:#2b94e1;will-change:transform}.___STabLineItem_kyktg_gg_.__selected_kyktg_gg_{flex-shrink:0}.___STabLineItem_kyktg_gg_.__disabled_kyktg_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STabLineItem_kyktg_gg_.__keyboardFocused_kyktg_gg_{box-shadow:0 0 0 3px rgba(43, 148, 225, 0.3)}.___SText_kyktg_gg_{display:inline-block;color:#333333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_kyktg_gg_{color:#757575;display:inline-flex;align-items:center;justify-content:center}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_{height:28px;margin-right:16px;min-width:18px;font-size:12px}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_{height:34px;margin-right:16px;min-width:26px;font-size:14px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_{height:42px;margin-right:24px;min-width:32px;font-size:16px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:12px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:12px}.___STabLineItem_kyktg_gg_._neighborLocation_left_kyktg_gg_{margin-right:0}@media (prefers-reduced-motion){.___STabLineItem_kyktg_gg_:after{transition:none}.___SIndicator_kyktg_gg_{transition:none}}"
|
|
60
60
|
/*__inner_css_end__*/
|
|
61
|
-
, "
|
|
61
|
+
, "qjptdj_gg_")
|
|
62
62
|
/*__reshadow_css_end__*/
|
|
63
63
|
, {
|
|
64
|
-
"__STabLine": "
|
|
65
|
-
"_underlined": "
|
|
66
|
-
"__STabLineItem": "
|
|
67
|
-
"__SIndicator": "
|
|
68
|
-
"_selected": "
|
|
69
|
-
"_disabled": "
|
|
70
|
-
"_keyboardFocused": "
|
|
71
|
-
"__SText": "
|
|
72
|
-
"__SAddon": "
|
|
73
|
-
"_size_m": "
|
|
74
|
-
"_size_l": "
|
|
75
|
-
"_size_xl": "
|
|
76
|
-
"_neighborLocation_left": "
|
|
64
|
+
"__STabLine": "___STabLine_kyktg_gg_",
|
|
65
|
+
"_underlined": "__underlined_kyktg_gg_",
|
|
66
|
+
"__STabLineItem": "___STabLineItem_kyktg_gg_",
|
|
67
|
+
"__SIndicator": "___SIndicator_kyktg_gg_",
|
|
68
|
+
"_selected": "__selected_kyktg_gg_",
|
|
69
|
+
"_disabled": "__disabled_kyktg_gg_",
|
|
70
|
+
"_keyboardFocused": "__keyboardFocused_kyktg_gg_",
|
|
71
|
+
"__SText": "___SText_kyktg_gg_",
|
|
72
|
+
"__SAddon": "___SAddon_kyktg_gg_",
|
|
73
|
+
"_size_m": "_size_m_kyktg_gg_",
|
|
74
|
+
"_size_l": "_size_l_kyktg_gg_",
|
|
75
|
+
"_size_xl": "_size_xl_kyktg_gg_",
|
|
76
|
+
"_neighborLocation_left": "_neighborLocation_left_kyktg_gg_"
|
|
77
77
|
});
|
|
78
78
|
var optionsA11yEnhance = {
|
|
79
79
|
onNeighborChange: function onNeighborChange(neighborElement) {
|
|
@@ -158,3 +158,15 @@ STabLineItem[size='xl'] {
|
|
|
158
158
|
STabLineItem[neighborLocation='left'] {
|
|
159
159
|
margin-right: 0;
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion) {
|
|
163
|
+
STabLineItem {
|
|
164
|
+
&::after {
|
|
165
|
+
transition: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
SIndicator {
|
|
170
|
+
transition: none;
|
|
171
|
+
}
|
|
172
|
+
}
|
package/lib/es6/TabLine.js
CHANGED
|
@@ -33,24 +33,24 @@ var style = (
|
|
|
33
33
|
/*__reshadow_css_start__*/
|
|
34
34
|
_sstyled.insert(
|
|
35
35
|
/*__inner_css_start__*/
|
|
36
|
-
".
|
|
36
|
+
".___STabLine_kyktg_gg_{position:relative;display:flex;width:100%;max-width:100%}.___STabLine_kyktg_gg_.__underlined_kyktg_gg_{border-bottom:1px solid #cccccc}.___STabLineItem_kyktg_gg_{display:inline-flex;align-items:center;justify-content:center;line-height:1.1;position:relative;touch-action:manipulation;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0;box-shadow:none;outline: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:none;background:transparent}.___STabLineItem_kyktg_gg_::-moz-focus-inner{border:none;padding:0}.___STabLineItem_kyktg_gg_:active,.___STabLineItem_kyktg_gg_:focus,.___STabLineItem_kyktg_gg_:hover{outline:0;text-decoration:none}.___STabLineItem_kyktg_gg_:after{content:\"\";left:0;width:100%;background-color:transparent;transition:background-color .2s}.___STabLineItem_kyktg_gg_:hover:after{background-color:#a6b0b3}.___SIndicator_kyktg_gg_,.___STabLineItem_kyktg_gg_:after{position:absolute;display:block;bottom:-1px;height:2px}.___SIndicator_kyktg_gg_{transition:transform .5s ease;background-color:#2b94e1;will-change:transform}.___STabLineItem_kyktg_gg_.__selected_kyktg_gg_{flex-shrink:0}.___STabLineItem_kyktg_gg_.__disabled_kyktg_gg_{opacity:0.3;cursor:default;pointer-events:none}.___STabLineItem_kyktg_gg_.__keyboardFocused_kyktg_gg_{box-shadow:0 0 0 3px rgba(43, 148, 225, 0.3)}.___SText_kyktg_gg_{display:inline-block;color:#333333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SAddon_kyktg_gg_{color:#757575;display:inline-flex;align-items:center;justify-content:center}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_{height:28px;margin-right:16px;min-width:18px;font-size:12px}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_m_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_{height:34px;margin-right:16px;min-width:26px;font-size:14px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_l_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:8px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_{height:42px;margin-right:24px;min-width:32px;font-size:16px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_ .___SText_kyktg_gg_:not(:last-child){margin-right:12px}.___STabLineItem_kyktg_gg_._size_xl_kyktg_gg_ .___SAddon_kyktg_gg_:not(:last-child){margin-right:12px}.___STabLineItem_kyktg_gg_._neighborLocation_left_kyktg_gg_{margin-right:0}@media (prefers-reduced-motion){.___STabLineItem_kyktg_gg_:after{transition:none}.___SIndicator_kyktg_gg_{transition:none}}"
|
|
37
37
|
/*__inner_css_end__*/
|
|
38
|
-
, "
|
|
38
|
+
, "qjptdj_gg_")
|
|
39
39
|
/*__reshadow_css_end__*/
|
|
40
40
|
, {
|
|
41
|
-
"__STabLine": "
|
|
42
|
-
"_underlined": "
|
|
43
|
-
"__STabLineItem": "
|
|
44
|
-
"__SIndicator": "
|
|
45
|
-
"_selected": "
|
|
46
|
-
"_disabled": "
|
|
47
|
-
"_keyboardFocused": "
|
|
48
|
-
"__SText": "
|
|
49
|
-
"__SAddon": "
|
|
50
|
-
"_size_m": "
|
|
51
|
-
"_size_l": "
|
|
52
|
-
"_size_xl": "
|
|
53
|
-
"_neighborLocation_left": "
|
|
41
|
+
"__STabLine": "___STabLine_kyktg_gg_",
|
|
42
|
+
"_underlined": "__underlined_kyktg_gg_",
|
|
43
|
+
"__STabLineItem": "___STabLineItem_kyktg_gg_",
|
|
44
|
+
"__SIndicator": "___SIndicator_kyktg_gg_",
|
|
45
|
+
"_selected": "__selected_kyktg_gg_",
|
|
46
|
+
"_disabled": "__disabled_kyktg_gg_",
|
|
47
|
+
"_keyboardFocused": "__keyboardFocused_kyktg_gg_",
|
|
48
|
+
"__SText": "___SText_kyktg_gg_",
|
|
49
|
+
"__SAddon": "___SAddon_kyktg_gg_",
|
|
50
|
+
"_size_m": "_size_m_kyktg_gg_",
|
|
51
|
+
"_size_l": "_size_l_kyktg_gg_",
|
|
52
|
+
"_size_xl": "_size_xl_kyktg_gg_",
|
|
53
|
+
"_neighborLocation_left": "_neighborLocation_left_kyktg_gg_"
|
|
54
54
|
});
|
|
55
55
|
var optionsA11yEnhance = {
|
|
56
56
|
onNeighborChange: function onNeighborChange(neighborElement) {
|
|
@@ -158,3 +158,15 @@ STabLineItem[size='xl'] {
|
|
|
158
158
|
STabLineItem[neighborLocation='left'] {
|
|
159
159
|
margin-right: 0;
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion) {
|
|
163
|
+
STabLineItem {
|
|
164
|
+
&::after {
|
|
165
|
+
transition: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
SIndicator {
|
|
170
|
+
transition: none;
|
|
171
|
+
}
|
|
172
|
+
}
|
package/package.json
CHANGED
|
@@ -158,3 +158,15 @@ STabLineItem[size='xl'] {
|
|
|
158
158
|
STabLineItem[neighborLocation='left'] {
|
|
159
159
|
margin-right: 0;
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
@media (prefers-reduced-motion) {
|
|
163
|
+
STabLineItem {
|
|
164
|
+
&::after {
|
|
165
|
+
transition: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
SIndicator {
|
|
170
|
+
transition: none;
|
|
171
|
+
}
|
|
172
|
+
}
|