@hh.ru/magritte-ui-tabs 7.2.72 → 7.2.74
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/Tab-BZ8G5_w6.js +140 -0
- package/{Tab-Ct18WzzZ.js.map → Tab-BZ8G5_w6.js.map} +1 -1
- package/Tab.d.ts +1 -1
- package/Tab.js +1 -1
- package/Tabs.d.ts +1 -1
- package/Tabs.js +40 -21
- package/Tabs.js.map +1 -1
- package/index.css +133 -133
- package/index.d.ts +3 -3
- package/index.js +1 -1
- package/index.mock.d.ts +1 -1
- package/index.mock.js +4 -4
- package/index.mock.js.map +1 -1
- package/offsets.d.ts +1 -1
- package/offsets.js +7 -7
- package/offsets.js.map +1 -1
- package/package.json +8 -8
- package/useTabs.d.ts +1 -1
- package/useTabs.js +149 -139
- package/useTabs.js.map +1 -1
- package/Tab-Ct18WzzZ.js +0 -85
package/index.css
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-tabs-stroke-state-focused-accessible-
|
|
3
|
-
--magritte-color-component-tabs-background-selected-
|
|
4
|
-
--magritte-color-component-tabs-background-unselected-
|
|
5
|
-
--magritte-color-component-tabs-background-state-unselected-pressed-
|
|
6
|
-
--magritte-color-component-tabs-background-state-unselected-focused-
|
|
7
|
-
--magritte-color-component-tabs-background-state-selected-focused-
|
|
8
|
-
--magritte-color-component-tabs-background-state-unselected-hovered-
|
|
9
|
-
--magritte-color-component-tabs-text-selected-
|
|
10
|
-
--magritte-color-component-tabs-text-unselected-
|
|
11
|
-
--magritte-color-component-tabs-postfix-text-selected-
|
|
12
|
-
--magritte-color-component-tabs-postfix-text-unselected-
|
|
13
|
-
--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-
|
|
14
|
-
--magritte-color-component-secondary-tabs-text-selected-
|
|
15
|
-
--magritte-color-component-secondary-tabs-text-unselected-
|
|
16
|
-
--magritte-color-component-secondary-tabs-indicator-selected-
|
|
17
|
-
--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
18
|
-
--magritte-color-component-secondary-tabs-text-state-unselected-pressed-
|
|
19
|
-
--magritte-color-component-secondary-tabs-postfix-text-selected-
|
|
20
|
-
--magritte-color-component-secondary-tabs-postfix-text-unselected-
|
|
2
|
+
--magritte-color-component-tabs-stroke-state-focused-accessible-v26-0-1:#0070ff7a;
|
|
3
|
+
--magritte-color-component-tabs-background-selected-v26-0-1:#000000;
|
|
4
|
+
--magritte-color-component-tabs-background-unselected-v26-0-1:#F1F4F9;
|
|
5
|
+
--magritte-color-component-tabs-background-state-unselected-pressed-v26-0-1:#F1F4F9;
|
|
6
|
+
--magritte-color-component-tabs-background-state-unselected-focused-v26-0-1:#F1F4F9;
|
|
7
|
+
--magritte-color-component-tabs-background-state-selected-focused-v26-0-1:#000000;
|
|
8
|
+
--magritte-color-component-tabs-background-state-unselected-hovered-v26-0-1:#DCE3EB;
|
|
9
|
+
--magritte-color-component-tabs-text-selected-v26-0-1:#ffffff;
|
|
10
|
+
--magritte-color-component-tabs-text-unselected-v26-0-1:#6a7885;
|
|
11
|
+
--magritte-color-component-tabs-postfix-text-selected-v26-0-1:#BBC8D4;
|
|
12
|
+
--magritte-color-component-tabs-postfix-text-unselected-v26-0-1:#AABBCA;
|
|
13
|
+
--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-v26-0-1:#0070ff7a;
|
|
14
|
+
--magritte-color-component-secondary-tabs-text-selected-v26-0-1:#000000;
|
|
15
|
+
--magritte-color-component-secondary-tabs-text-unselected-v26-0-1:#768694;
|
|
16
|
+
--magritte-color-component-secondary-tabs-indicator-selected-v26-0-1:#000000;
|
|
17
|
+
--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1:#000000;
|
|
18
|
+
--magritte-color-component-secondary-tabs-text-state-unselected-pressed-v26-0-1:#000000;
|
|
19
|
+
--magritte-color-component-secondary-tabs-postfix-text-selected-v26-0-1:#AABBCA;
|
|
20
|
+
--magritte-color-component-secondary-tabs-postfix-text-unselected-v26-0-1:#AABBCA;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
:root{
|
|
24
|
-
--magritte-semantic-animation-ease-in-out-tiger-100-timing-function-
|
|
25
|
-
--magritte-semantic-animation-ease-in-out-tiger-100-duration-
|
|
26
|
-
--magritte-semantic-animation-ease-in-out-tiger-200-timing-function-
|
|
27
|
-
--magritte-semantic-animation-ease-in-out-tiger-200-duration-
|
|
24
|
+
--magritte-semantic-animation-ease-in-out-tiger-100-timing-function-v26-0-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
25
|
+
--magritte-semantic-animation-ease-in-out-tiger-100-duration-v26-0-1:100ms;
|
|
26
|
+
--magritte-semantic-animation-ease-in-out-tiger-200-timing-function-v26-0-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
27
|
+
--magritte-semantic-animation-ease-in-out-tiger-200-duration-v26-0-1:200ms;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.magritte-night-theme{
|
|
31
|
-
--magritte-color-component-tabs-background-selected-
|
|
32
|
-
--magritte-color-component-tabs-background-unselected-
|
|
33
|
-
--magritte-color-component-tabs-background-state-unselected-pressed-
|
|
34
|
-
--magritte-color-component-tabs-background-state-unselected-focused-
|
|
35
|
-
--magritte-color-component-tabs-background-state-selected-focused-
|
|
36
|
-
--magritte-color-component-tabs-background-state-unselected-hovered-
|
|
37
|
-
--magritte-color-component-tabs-text-selected-
|
|
38
|
-
--magritte-color-component-tabs-text-unselected-
|
|
39
|
-
--magritte-color-component-tabs-postfix-text-selected-
|
|
40
|
-
--magritte-color-component-tabs-postfix-text-unselected-
|
|
41
|
-
--magritte-color-component-secondary-tabs-text-selected-
|
|
42
|
-
--magritte-color-component-secondary-tabs-text-unselected-
|
|
43
|
-
--magritte-color-component-secondary-tabs-indicator-selected-
|
|
44
|
-
--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
45
|
-
--magritte-color-component-secondary-tabs-text-state-unselected-pressed-
|
|
46
|
-
--magritte-color-component-secondary-tabs-postfix-text-selected-
|
|
47
|
-
--magritte-color-component-secondary-tabs-postfix-text-unselected-
|
|
48
|
-
}
|
|
49
|
-
.magritte-tabs___VcV8C_7-2-
|
|
31
|
+
--magritte-color-component-tabs-background-selected-v26-0-1:#ffffff;
|
|
32
|
+
--magritte-color-component-tabs-background-unselected-v26-0-1:#303030;
|
|
33
|
+
--magritte-color-component-tabs-background-state-unselected-pressed-v26-0-1:#303030;
|
|
34
|
+
--magritte-color-component-tabs-background-state-unselected-focused-v26-0-1:#303030;
|
|
35
|
+
--magritte-color-component-tabs-background-state-selected-focused-v26-0-1:#ffffff;
|
|
36
|
+
--magritte-color-component-tabs-background-state-unselected-hovered-v26-0-1:#3B3B3B;
|
|
37
|
+
--magritte-color-component-tabs-text-selected-v26-0-1:#000000;
|
|
38
|
+
--magritte-color-component-tabs-text-unselected-v26-0-1:#B9B9B9;
|
|
39
|
+
--magritte-color-component-tabs-postfix-text-selected-v26-0-1:#919191;
|
|
40
|
+
--magritte-color-component-tabs-postfix-text-unselected-v26-0-1:#919191;
|
|
41
|
+
--magritte-color-component-secondary-tabs-text-selected-v26-0-1:#ffffff;
|
|
42
|
+
--magritte-color-component-secondary-tabs-text-unselected-v26-0-1:#ABABAB;
|
|
43
|
+
--magritte-color-component-secondary-tabs-indicator-selected-v26-0-1:#ffffff;
|
|
44
|
+
--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1:#ABABAB;
|
|
45
|
+
--magritte-color-component-secondary-tabs-text-state-unselected-pressed-v26-0-1:#ABABAB;
|
|
46
|
+
--magritte-color-component-secondary-tabs-postfix-text-selected-v26-0-1:#919191;
|
|
47
|
+
--magritte-color-component-secondary-tabs-postfix-text-unselected-v26-0-1:#919191;
|
|
48
|
+
}
|
|
49
|
+
.magritte-tabs___VcV8C_7-2-74{
|
|
50
50
|
display:flex;
|
|
51
51
|
align-items:center;
|
|
52
52
|
outline:none;
|
|
53
53
|
}
|
|
54
|
-
.magritte-tab-wrapper___9j9qk_7-2-
|
|
54
|
+
.magritte-tab-wrapper___9j9qk_7-2-74:last-of-type{
|
|
55
55
|
margin-right:0px;
|
|
56
56
|
}
|
|
57
|
-
.magritte-tab___B0BeU_7-2-
|
|
57
|
+
.magritte-tab___B0BeU_7-2-74{
|
|
58
58
|
box-sizing:border-box;
|
|
59
59
|
flex-shrink:0;
|
|
60
60
|
display:block;
|
|
@@ -62,168 +62,168 @@
|
|
|
62
62
|
border:0;
|
|
63
63
|
outline:none;
|
|
64
64
|
min-height:40px;
|
|
65
|
-
transition:transform var(--magritte-semantic-animation-ease-in-out-tiger-100-duration-
|
|
65
|
+
transition:transform var(--magritte-semantic-animation-ease-in-out-tiger-100-duration-v26-0-1) var(--magritte-semantic-animation-ease-in-out-tiger-100-timing-function-v26-0-1);
|
|
66
66
|
}
|
|
67
|
-
.magritte-tab___B0BeU_7-2-
|
|
67
|
+
.magritte-tab___B0BeU_7-2-74:active{
|
|
68
68
|
transform:scale(0.96);
|
|
69
|
-
transition:transform var(--magritte-semantic-animation-ease-in-out-tiger-200-duration-
|
|
69
|
+
transition:transform var(--magritte-semantic-animation-ease-in-out-tiger-200-duration-v26-0-1) var(--magritte-semantic-animation-ease-in-out-tiger-200-timing-function-v26-0-1);
|
|
70
70
|
}
|
|
71
|
-
.magritte-tab___B0BeU_7-2-
|
|
71
|
+
.magritte-tab___B0BeU_7-2-74.magritte-tab_selected___w9PT2_7-2-74{
|
|
72
72
|
cursor:default;
|
|
73
73
|
}
|
|
74
|
-
.magritte-tab___B0BeU_7-2-
|
|
74
|
+
.magritte-tab___B0BeU_7-2-74.magritte-tab_selected___w9PT2_7-2-74:active{
|
|
75
75
|
transform:none;
|
|
76
76
|
}
|
|
77
|
-
.magritte-tab-wrapper_primary___yt3sT_7-2-
|
|
77
|
+
.magritte-tab-wrapper_primary___yt3sT_7-2-74{
|
|
78
78
|
margin-right:12px;
|
|
79
79
|
}
|
|
80
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
80
|
+
.magritte-tab_primary___3Of2H_7-2-74{
|
|
81
81
|
border-radius:100px;
|
|
82
|
-
background-color:var(--magritte-color-component-tabs-background-unselected-
|
|
83
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-tabs-text-unselected-
|
|
82
|
+
background-color:var(--magritte-color-component-tabs-background-unselected-v26-0-1);
|
|
83
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-tabs-text-unselected-v26-0-1);
|
|
84
84
|
}
|
|
85
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
86
|
-
background-color:var(--magritte-color-component-tabs-background-state-unselected-pressed-
|
|
85
|
+
.magritte-tab_primary___3Of2H_7-2-74:active{
|
|
86
|
+
background-color:var(--magritte-color-component-tabs-background-state-unselected-pressed-v26-0-1);
|
|
87
87
|
}
|
|
88
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
89
|
-
background-color:var(--magritte-color-component-tabs-background-state-unselected-focused-
|
|
90
|
-
outline:4px solid var(--magritte-color-component-tabs-stroke-state-focused-accessible-
|
|
88
|
+
.magritte-tab_primary___3Of2H_7-2-74.focus-visible{
|
|
89
|
+
background-color:var(--magritte-color-component-tabs-background-state-unselected-focused-v26-0-1);
|
|
90
|
+
outline:4px solid var(--magritte-color-component-tabs-stroke-state-focused-accessible-v26-0-1);
|
|
91
91
|
}
|
|
92
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
93
|
-
background-color:var(--magritte-color-component-tabs-background-selected-
|
|
94
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-tabs-text-selected-
|
|
92
|
+
.magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74{
|
|
93
|
+
background-color:var(--magritte-color-component-tabs-background-selected-v26-0-1);
|
|
94
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-tabs-text-selected-v26-0-1);
|
|
95
95
|
}
|
|
96
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
97
|
-
color:var(--magritte-color-component-tabs-text-selected-
|
|
96
|
+
.magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74 .magritte-tab-label___nFmge_7-2-74{
|
|
97
|
+
color:var(--magritte-color-component-tabs-text-selected-v26-0-1);
|
|
98
98
|
}
|
|
99
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
100
|
-
color:var(--magritte-color-component-tabs-postfix-text-selected-
|
|
99
|
+
.magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74 .magritte-postfix___30ZxD_7-2-74{
|
|
100
|
+
color:var(--magritte-color-component-tabs-postfix-text-selected-v26-0-1);
|
|
101
101
|
}
|
|
102
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
103
|
-
background-color:var(--magritte-color-component-tabs-background-selected-
|
|
102
|
+
.magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74:active{
|
|
103
|
+
background-color:var(--magritte-color-component-tabs-background-selected-v26-0-1);
|
|
104
104
|
}
|
|
105
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
106
|
-
background-color:var(--magritte-color-component-tabs-background-state-selected-focused-
|
|
107
|
-
outline:4px solid var(--magritte-color-component-tabs-stroke-state-focused-accessible-
|
|
105
|
+
.magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74.focus-visible{
|
|
106
|
+
background-color:var(--magritte-color-component-tabs-background-state-selected-focused-v26-0-1);
|
|
107
|
+
outline:4px solid var(--magritte-color-component-tabs-stroke-state-focused-accessible-v26-0-1);
|
|
108
108
|
}
|
|
109
109
|
@media (min-width: 1020px){
|
|
110
|
-
body.magritte-old-layout .magritte-tab_primary___3Of2H_7-2-
|
|
111
|
-
background-color:var(--magritte-color-component-tabs-background-selected-
|
|
110
|
+
body.magritte-old-layout .magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active){
|
|
111
|
+
background-color:var(--magritte-color-component-tabs-background-selected-v26-0-1);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
@media (min-width: 1024px){
|
|
115
|
-
body:not(.magritte-old-layout) .magritte-tab_primary___3Of2H_7-2-
|
|
116
|
-
background-color:var(--magritte-color-component-tabs-background-selected-
|
|
115
|
+
body:not(.magritte-old-layout) .magritte-tab_primary___3Of2H_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active){
|
|
116
|
+
background-color:var(--magritte-color-component-tabs-background-selected-v26-0-1);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
119
|
+
.magritte-tab_primary___3Of2H_7-2-74 .magritte-tab-content___onvTJ_7-2-74{
|
|
120
120
|
padding:8px 16px;
|
|
121
121
|
}
|
|
122
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
123
|
-
color:var(--magritte-color-component-tabs-text-unselected-
|
|
122
|
+
.magritte-tab_primary___3Of2H_7-2-74 .magritte-tab-label___nFmge_7-2-74{
|
|
123
|
+
color:var(--magritte-color-component-tabs-text-unselected-v26-0-1);
|
|
124
124
|
}
|
|
125
|
-
.magritte-tab_primary___3Of2H_7-2-
|
|
126
|
-
color:var(--magritte-color-component-tabs-postfix-text-unselected-
|
|
125
|
+
.magritte-tab_primary___3Of2H_7-2-74 .magritte-postfix___30ZxD_7-2-74{
|
|
126
|
+
color:var(--magritte-color-component-tabs-postfix-text-unselected-v26-0-1);
|
|
127
127
|
}
|
|
128
128
|
@media (min-width: 1020px){
|
|
129
|
-
body.magritte-old-layout .magritte-tab_primary___3Of2H_7-2-
|
|
130
|
-
background-color:var(--magritte-color-component-tabs-background-state-unselected-hovered-
|
|
129
|
+
body.magritte-old-layout .magritte-tab_primary___3Of2H_7-2-74:hover:not(:active){
|
|
130
|
+
background-color:var(--magritte-color-component-tabs-background-state-unselected-hovered-v26-0-1);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
@media (min-width: 1024px){
|
|
134
|
-
body:not(.magritte-old-layout) .magritte-tab_primary___3Of2H_7-2-
|
|
135
|
-
background-color:var(--magritte-color-component-tabs-background-state-unselected-hovered-
|
|
134
|
+
body:not(.magritte-old-layout) .magritte-tab_primary___3Of2H_7-2-74:hover:not(:active){
|
|
135
|
+
background-color:var(--magritte-color-component-tabs-background-state-unselected-hovered-v26-0-1);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
.magritte-tab-wrapper_secondary___avLln_7-2-
|
|
138
|
+
.magritte-tab-wrapper_secondary___avLln_7-2-74{
|
|
139
139
|
margin-right:24px;
|
|
140
140
|
}
|
|
141
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
141
|
+
.magritte-tab_secondary___-00LL_7-2-74{
|
|
142
142
|
border-radius:12px;
|
|
143
143
|
max-width:288px;
|
|
144
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-unselected-
|
|
144
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-unselected-v26-0-1);
|
|
145
145
|
}
|
|
146
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
147
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-pressed-
|
|
146
|
+
.magritte-tab_secondary___-00LL_7-2-74:active{
|
|
147
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-pressed-v26-0-1);
|
|
148
148
|
}
|
|
149
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
150
|
-
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-pressed-
|
|
149
|
+
.magritte-tab_secondary___-00LL_7-2-74:active .magritte-tab-label___nFmge_7-2-74{
|
|
150
|
+
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-pressed-v26-0-1);
|
|
151
151
|
}
|
|
152
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
153
|
-
outline:4px solid var(--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-
|
|
152
|
+
.magritte-tab_secondary___-00LL_7-2-74.focus-visible{
|
|
153
|
+
outline:4px solid var(--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-v26-0-1);
|
|
154
154
|
}
|
|
155
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
156
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
155
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74{
|
|
156
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
157
157
|
}
|
|
158
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
159
|
-
color:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
158
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74 .magritte-tab-label___nFmge_7-2-74{
|
|
159
|
+
color:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
160
160
|
}
|
|
161
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
162
|
-
color:var(--magritte-color-component-secondary-tabs-postfix-text-selected-
|
|
161
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74 .magritte-postfix___30ZxD_7-2-74{
|
|
162
|
+
color:var(--magritte-color-component-secondary-tabs-postfix-text-selected-v26-0-1);
|
|
163
163
|
}
|
|
164
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
165
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
164
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:active{
|
|
165
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
166
166
|
}
|
|
167
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
168
|
-
color:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
167
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:active .magritte-tab-label___nFmge_7-2-74{
|
|
168
|
+
color:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
169
169
|
}
|
|
170
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
171
|
-
outline:4px solid var(--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-
|
|
170
|
+
.magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74.focus-visible{
|
|
171
|
+
outline:4px solid var(--magritte-color-component-secondary-tabs-stroke-state-focused-accessible-v26-0-1);
|
|
172
172
|
}
|
|
173
173
|
@media (min-width: 1020px){
|
|
174
|
-
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-
|
|
175
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
174
|
+
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active){
|
|
175
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
176
176
|
}
|
|
177
|
-
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-
|
|
178
|
-
color:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
177
|
+
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active) .magritte-tab-label___nFmge_7-2-74{
|
|
178
|
+
color:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
@media (min-width: 1024px){
|
|
182
|
-
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-
|
|
183
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
182
|
+
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active){
|
|
183
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
184
184
|
}
|
|
185
|
-
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-
|
|
186
|
-
color:var(--magritte-color-component-secondary-tabs-text-selected-
|
|
185
|
+
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-74.magritte-tab_selected___w9PT2_7-2-74:hover:not(:active) .magritte-tab-label___nFmge_7-2-74{
|
|
186
|
+
color:var(--magritte-color-component-secondary-tabs-text-selected-v26-0-1);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
189
|
+
.magritte-tab_secondary___-00LL_7-2-74 .magritte-tab-content___onvTJ_7-2-74{
|
|
190
190
|
padding:16px 0;
|
|
191
191
|
}
|
|
192
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
193
|
-
color:var(--magritte-color-component-secondary-tabs-text-unselected-
|
|
192
|
+
.magritte-tab_secondary___-00LL_7-2-74 .magritte-tab-label___nFmge_7-2-74{
|
|
193
|
+
color:var(--magritte-color-component-secondary-tabs-text-unselected-v26-0-1);
|
|
194
194
|
}
|
|
195
|
-
.magritte-tab_secondary___-00LL_7-2-
|
|
196
|
-
color:var(--magritte-color-component-secondary-tabs-postfix-text-unselected-
|
|
195
|
+
.magritte-tab_secondary___-00LL_7-2-74 .magritte-postfix___30ZxD_7-2-74{
|
|
196
|
+
color:var(--magritte-color-component-secondary-tabs-postfix-text-unselected-v26-0-1);
|
|
197
197
|
}
|
|
198
198
|
@media (min-width: 1020px){
|
|
199
|
-
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-
|
|
200
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
199
|
+
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-74:hover:not(:active){
|
|
200
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1);
|
|
201
201
|
}
|
|
202
|
-
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-
|
|
203
|
-
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
202
|
+
body.magritte-old-layout .magritte-tab_secondary___-00LL_7-2-74:hover:not(:active) .magritte-tab-label___nFmge_7-2-74{
|
|
203
|
+
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
@media (min-width: 1024px){
|
|
207
|
-
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-
|
|
208
|
-
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
207
|
+
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-74:hover:not(:active){
|
|
208
|
+
--magritte-ui-text-color-override:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1);
|
|
209
209
|
}
|
|
210
|
-
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-
|
|
211
|
-
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-
|
|
210
|
+
body:not(.magritte-old-layout) .magritte-tab_secondary___-00LL_7-2-74:hover:not(:active) .magritte-tab-label___nFmge_7-2-74{
|
|
211
|
+
color:var(--magritte-color-component-secondary-tabs-text-state-unselected-hovered-v26-0-1);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
.magritte-tab-content___onvTJ_7-2-
|
|
214
|
+
.magritte-tab-content___onvTJ_7-2-74{
|
|
215
215
|
display:flex;
|
|
216
216
|
align-items:center;
|
|
217
217
|
height:24px;
|
|
218
218
|
}
|
|
219
|
-
.magritte-tab-label___nFmge_7-2-
|
|
219
|
+
.magritte-tab-label___nFmge_7-2-74{
|
|
220
220
|
flex:0 1 auto;
|
|
221
221
|
min-width:0;
|
|
222
222
|
overflow:hidden;
|
|
223
223
|
text-overflow:ellipsis;
|
|
224
224
|
white-space:pre;
|
|
225
225
|
}
|
|
226
|
-
.magritte-postfix-wrapper___1dORq_7-2-
|
|
226
|
+
.magritte-postfix-wrapper___1dORq_7-2-74{
|
|
227
227
|
flex:0 0 auto;
|
|
228
228
|
min-width:0;
|
|
229
229
|
max-width:100%;
|
|
@@ -232,16 +232,16 @@
|
|
|
232
232
|
text-overflow:ellipsis;
|
|
233
233
|
white-space:pre;
|
|
234
234
|
}
|
|
235
|
-
.magritte-indicator-wrapper___Q68i7_7-2-
|
|
235
|
+
.magritte-indicator-wrapper___Q68i7_7-2-74{
|
|
236
236
|
margin-top:-4px;
|
|
237
237
|
}
|
|
238
|
-
.magritte-indicator___irp4W_7-2-
|
|
238
|
+
.magritte-indicator___irp4W_7-2-74{
|
|
239
239
|
position:relative;
|
|
240
|
-
background-color:var(--magritte-color-component-secondary-tabs-indicator-selected-
|
|
240
|
+
background-color:var(--magritte-color-component-secondary-tabs-indicator-selected-v26-0-1);
|
|
241
241
|
border-radius:4px 4px 0 0;
|
|
242
242
|
height:4px;
|
|
243
243
|
width:0;
|
|
244
244
|
}
|
|
245
|
-
.magritte-animate___5GxTP_7-2-
|
|
246
|
-
transition:all var(--magritte-semantic-animation-ease-in-out-tiger-200-duration-
|
|
245
|
+
.magritte-animate___5GxTP_7-2-74{
|
|
246
|
+
transition:all var(--magritte-semantic-animation-ease-in-out-tiger-200-duration-v26-0-1) var(--magritte-semantic-animation-ease-in-out-tiger-200-timing-function-v26-0-1);
|
|
247
247
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export { type TabProps, type TabsProps, type TabId } from '
|
|
1
|
+
export * from './Tabs';
|
|
2
|
+
export * from './Tab';
|
|
3
|
+
export { type TabProps, type TabsProps, type TabId } from './types';
|
package/index.js
CHANGED
package/index.mock.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
export { type TabProps, type TabsProps, type TabId } from '
|
|
2
|
+
export { type TabProps, type TabsProps, type TabId } from './types';
|
|
3
3
|
export declare const Tabs: FC<Record<string, unknown>>;
|
|
4
4
|
export declare const Tab: FC<Record<string, unknown>>;
|
package/index.mock.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
|
|
3
3
|
|
|
4
|
-
const Tabs = mockComponent(
|
|
5
|
-
|
|
4
|
+
const Tabs = mockComponent("Tabs", void 0, {
|
|
5
|
+
withChildren: true
|
|
6
6
|
});
|
|
7
|
-
const Tab = mockComponent(
|
|
8
|
-
|
|
7
|
+
const Tab = mockComponent("Tab", void 0, {
|
|
8
|
+
withChildren: false
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export { Tab, Tabs };
|
package/index.mock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { FC } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type TabProps, type TabsProps, type TabId } from '@hh.ru/magritte-ui-tabs/types';\n\nexport const Tabs: FC<Record<string, unknown>> = mockComponent('Tabs', undefined, {\n withChildren: true,\n});\n\nexport const Tab: FC<Record<string, unknown>> = mockComponent('Tab', undefined, {\n withChildren: false,\n});\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { FC } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport { type TabProps, type TabsProps, type TabId } from '@hh.ru/magritte-ui-tabs/types';\n\nexport const Tabs: FC<Record<string, unknown>> = mockComponent('Tabs', undefined, {\n withChildren: true,\n});\n\nexport const Tab: FC<Record<string, unknown>> = mockComponent('Tab', undefined, {\n withChildren: false,\n});\n"],"names":[],"mappings":";;AAMa,MAAA,IAAA,GAAoC,aAAc,CAAA,MAAA,EAAQ,KAAW,CAAA,EAAA;AAAA,EAC9E,YAAc,EAAA,IAAA;AAClB,CAAC,EAAA;AAEY,MAAA,GAAA,GAAmC,aAAc,CAAA,KAAA,EAAO,KAAW,CAAA,EAAA;AAAA,EAC5E,YAAc,EAAA,KAAA;AAClB,CAAC;;;;"}
|
package/offsets.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ComponentWithBadgeProps } from '@hh.ru/magritte-ui-badge/src/types';
|
|
2
|
-
import { TabMode } from '
|
|
2
|
+
import { TabMode } from './types';
|
|
3
3
|
export declare const OFFSETS_BY_MODE: Record<TabMode, Pick<ComponentWithBadgeProps, 'offset' | 'offsetRight' | 'offsetTop'>>;
|
package/offsets.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
const OFFSETS_BY_MODE = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
primary: {
|
|
4
|
+
offset: 2
|
|
5
|
+
},
|
|
6
|
+
secondary: {
|
|
7
|
+
offsetTop: 14,
|
|
8
|
+
offsetRight: -10
|
|
9
|
+
}
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export { OFFSETS_BY_MODE };
|
package/offsets.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offsets.js","sources":["src/offsets.ts"],"sourcesContent":["import type { ComponentWithBadgeProps } from '@hh.ru/magritte-ui-badge/src/types';\nimport { TabMode } from '@hh.ru/magritte-ui-tabs/types';\n\nexport const OFFSETS_BY_MODE: Record<TabMode, Pick<ComponentWithBadgeProps, 'offset' | 'offsetRight' | 'offsetTop'>> = {\n primary: {\n offset: 2,\n },\n secondary: {\n offsetTop: 14,\n offsetRight: -10,\n },\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offsets.js","sources":["src/offsets.ts"],"sourcesContent":["import type { ComponentWithBadgeProps } from '@hh.ru/magritte-ui-badge/src/types';\nimport { TabMode } from '@hh.ru/magritte-ui-tabs/types';\n\nexport const OFFSETS_BY_MODE: Record<TabMode, Pick<ComponentWithBadgeProps, 'offset' | 'offsetRight' | 'offsetTop'>> = {\n primary: {\n offset: 2,\n },\n secondary: {\n offsetTop: 14,\n offsetRight: -10,\n },\n};\n"],"names":[],"mappings":"AAGO,MAAM,eAA0G,GAAA;AAAA,EACnH,OAAS,EAAA;AAAA,IACL,MAAQ,EAAA,CAAA;AAAA,GACZ;AAAA,EACA,SAAW,EAAA;AAAA,IACP,SAAW,EAAA,EAAA;AAAA,IACX,WAAa,EAAA,CAAA,EAAA;AAAA,GACjB;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-tabs",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.74",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"@hh.ru/magritte-common-focus-visible": "0.1.11",
|
|
27
27
|
"@hh.ru/magritte-common-keyboard": "4.3.6",
|
|
28
28
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.12",
|
|
29
|
-
"@hh.ru/magritte-design-tokens": "
|
|
29
|
+
"@hh.ru/magritte-design-tokens": "26.0.1",
|
|
30
30
|
"@hh.ru/magritte-types": "5.0.8",
|
|
31
|
-
"@hh.ru/magritte-ui-badge": "4.0.
|
|
31
|
+
"@hh.ru/magritte-ui-badge": "4.0.23",
|
|
32
32
|
"@hh.ru/magritte-ui-breakpoint": "6.1.2",
|
|
33
|
-
"@hh.ru/magritte-ui-button": "7.3.
|
|
33
|
+
"@hh.ru/magritte-ui-button": "7.3.7",
|
|
34
34
|
"@hh.ru/magritte-ui-mock-component": "1.1.8",
|
|
35
|
-
"@hh.ru/magritte-ui-scrollable-container": "6.5.
|
|
36
|
-
"@hh.ru/magritte-ui-tooltip": "11.0.
|
|
37
|
-
"@hh.ru/magritte-ui-typography": "5.3.
|
|
35
|
+
"@hh.ru/magritte-ui-scrollable-container": "6.5.3",
|
|
36
|
+
"@hh.ru/magritte-ui-tooltip": "11.0.51",
|
|
37
|
+
"@hh.ru/magritte-ui-typography": "5.3.16"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"classnames": ">=2.3.2",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
|
|
47
47
|
}
|
package/useTabs.d.ts
CHANGED