@broxus/react-uikit 0.5.4 → 0.6.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/dist/cjs/components/Button/index.scss +15 -0
- package/dist/cjs/components/ConfigProvider/index.d.ts +6 -6
- package/dist/cjs/components/Control/Select/index.d.ts +2 -1
- package/dist/cjs/components/Tabs/index.scss +1 -1
- package/dist/cjs/styles/_import.components.scss +1 -2
- package/dist/cjs/styles/_import.scss +0 -1
- package/dist/cjs/styles/mixins.scss +0 -55
- package/dist/cjs/styles/variables.scss +0 -19
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/cjs/types.d.ts +6 -0
- package/dist/esm/components/Button/index.scss +15 -0
- package/dist/esm/components/ConfigProvider/index.d.ts +6 -6
- package/dist/esm/components/Control/Select/index.d.ts +2 -1
- package/dist/esm/components/Tabs/index.scss +1 -1
- package/dist/esm/styles/_import.components.scss +1 -2
- package/dist/esm/styles/_import.scss +0 -1
- package/dist/esm/styles/mixins.scss +0 -55
- package/dist/esm/styles/variables.scss +0 -19
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/types.d.ts +6 -0
- package/package.json +6 -6
- package/dist/cjs/components/Tab/index.d.ts +0 -0
- package/dist/cjs/components/Tab/index.js +0 -1
- package/dist/cjs/components/Tab/index.scss +0 -216
- package/dist/cjs/styles/switcher.scss +0 -51
- package/dist/esm/components/Tab/index.d.ts +0 -0
- package/dist/esm/components/Tab/index.js +0 -1
- package/dist/esm/components/Tab/index.scss +0 -216
- package/dist/esm/styles/switcher.scss +0 -51
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export type BreakpointsConfig<T> = {
|
|
2
|
+
/** Default value. Will be used for all sizes by default */
|
|
2
3
|
default?: T;
|
|
4
|
+
/** Extra small size: Phone portrait: 480px by default */
|
|
3
5
|
xs?: T;
|
|
6
|
+
/** Small size: Phone landscape: 640px by default */
|
|
4
7
|
s?: T;
|
|
8
|
+
/** Medium size: Tablet Landscape: 960px by default */
|
|
5
9
|
m?: T;
|
|
10
|
+
/** Large size: Desktop: 1200px by default */
|
|
6
11
|
l?: T;
|
|
12
|
+
/** Extra large size: Large screens: 1600px by default */
|
|
7
13
|
xl?: T;
|
|
8
14
|
};
|
|
9
15
|
export type HeadingSize = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broxus/react-uikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "React-based UIkit library",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"keywords": ["uikit", "ui", "react", "components"],
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"prepare": "npx yarn cleanup && npx yarn build"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@broxus/js-utils": "^1.
|
|
54
|
+
"@broxus/js-utils": "^1.3.0",
|
|
55
55
|
"classnames": "^2.3.2",
|
|
56
56
|
"rc-collapse": "^3.7.0",
|
|
57
57
|
"rc-dialog": "^9.1.0",
|
|
58
58
|
"rc-drawer": "^6.3.0",
|
|
59
59
|
"rc-dropdown": "^4.1.0",
|
|
60
|
-
"rc-input-number": "^8.0.
|
|
60
|
+
"rc-input-number": "^8.0.3",
|
|
61
61
|
"rc-motion": "^2.7.3",
|
|
62
62
|
"rc-overflow": "^1.3.1",
|
|
63
|
-
"rc-select": "^14.
|
|
63
|
+
"rc-select": "^14.7.1",
|
|
64
64
|
"rc-switch": "^4.1.0",
|
|
65
|
-
"rc-tabs": "^12.
|
|
66
|
-
"rc-textarea": "^1.3.
|
|
65
|
+
"rc-tabs": "^12.10.0",
|
|
66
|
+
"rc-textarea": "^1.3.3",
|
|
67
67
|
"rc-trigger": "^5.3.4",
|
|
68
68
|
"rc-util": "^5.34.1",
|
|
69
69
|
"shallowequal": "^1.1.0",
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
// Name: Tab
|
|
2
|
-
// Description: Component to create a tabbed navigation
|
|
3
|
-
//
|
|
4
|
-
// Component: `uk-tab`
|
|
5
|
-
//
|
|
6
|
-
// Modifiers: `uk-tab-bottom`
|
|
7
|
-
// `uk-tab-left`
|
|
8
|
-
// `uk-tab-right`
|
|
9
|
-
//
|
|
10
|
-
// States: `uk-active`
|
|
11
|
-
// `uk-disabled`
|
|
12
|
-
//
|
|
13
|
-
// ========================================================================
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// Variables
|
|
17
|
-
// ========================================================================
|
|
18
|
-
|
|
19
|
-
@import '../../styles/variables.scss';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/* ========================================================================
|
|
23
|
-
Component: Tab
|
|
24
|
-
========================================================================== */
|
|
25
|
-
|
|
26
|
-
/*
|
|
27
|
-
* 1. Allow items to wrap into the next line
|
|
28
|
-
* 2. Gutter
|
|
29
|
-
* 3. Reset list
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
.uk-tab {
|
|
33
|
-
display: flex;
|
|
34
|
-
|
|
35
|
-
/* 1 */
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
list-style: none;
|
|
38
|
-
|
|
39
|
-
/* 2 */
|
|
40
|
-
margin-left: calc(var(--tab-margin-horizontal) * -1);
|
|
41
|
-
|
|
42
|
-
/* 3 */
|
|
43
|
-
padding: 0;
|
|
44
|
-
@if mixin-exists(hook-tab) {
|
|
45
|
-
@include hook-tab;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
* 1. Space is allocated solely based on content dimensions: 0 0 auto
|
|
51
|
-
* 2. Gutter
|
|
52
|
-
* 3. Create position context for dropdowns
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
.uk-tab > * {
|
|
56
|
-
/* 1 */
|
|
57
|
-
flex: none;
|
|
58
|
-
|
|
59
|
-
/* 2 */
|
|
60
|
-
padding-left: var(--tab-margin-horizontal);
|
|
61
|
-
|
|
62
|
-
/* 3 */
|
|
63
|
-
position: relative;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/* Items
|
|
68
|
-
========================================================================== */
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
* Items must target `a` elements to exclude other elements (e.g. dropdowns)
|
|
72
|
-
* 1. Center content vertically, e.g. an icon
|
|
73
|
-
* 2. Imitate white space gap when using flexbox
|
|
74
|
-
* 3. Center content if a width is set
|
|
75
|
-
* 4. Style
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
.uk-tab > * > a {
|
|
79
|
-
/* 1 */
|
|
80
|
-
align-items: center;
|
|
81
|
-
|
|
82
|
-
/* 4 */
|
|
83
|
-
color: var(--tab-item-color);
|
|
84
|
-
|
|
85
|
-
/* 2 */
|
|
86
|
-
column-gap: 0.25em;
|
|
87
|
-
|
|
88
|
-
/* 4 */
|
|
89
|
-
display: flex;
|
|
90
|
-
|
|
91
|
-
/* 3 */
|
|
92
|
-
justify-content: center;
|
|
93
|
-
|
|
94
|
-
/* 4 */
|
|
95
|
-
padding: var(--tab-item-padding-vertical) var(--tab-item-padding-horizontal);
|
|
96
|
-
@if mixin-exists(hook-tab-item) {
|
|
97
|
-
@include hook-tab-item;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Hover */
|
|
102
|
-
.uk-tab > * > a:hover {
|
|
103
|
-
color: var(--tab-item-hover-color);
|
|
104
|
-
text-decoration: var(--tab-item-hover-text-decoration);
|
|
105
|
-
@if mixin-exists(hook-tab-item-hover) {
|
|
106
|
-
@include hook-tab-item-hover;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* Active */
|
|
111
|
-
.uk-tab > .uk-active > a {
|
|
112
|
-
color: var(--tab-item-active-color);
|
|
113
|
-
@if mixin-exists(hook-tab-item-active) {
|
|
114
|
-
@include hook-tab-item-active;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Disabled */
|
|
119
|
-
.uk-tab > .uk-disabled > a {
|
|
120
|
-
color: var(--tab-item-disabled-color);
|
|
121
|
-
@if mixin-exists(hook-tab-item-disabled) {
|
|
122
|
-
@include hook-tab-item-disabled;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/* Position modifier
|
|
128
|
-
========================================================================== */
|
|
129
|
-
|
|
130
|
-
/*
|
|
131
|
-
* Bottom
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
.uk-tab-bottom {
|
|
135
|
-
@if mixin-exists(hook-tab-bottom) {
|
|
136
|
-
@include hook-tab-bottom;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.uk-tab-bottom > * > a {
|
|
141
|
-
@if mixin-exists(hook-tab-bottom-item) {
|
|
142
|
-
@include hook-tab-bottom-item;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/*
|
|
147
|
-
* Left + Right
|
|
148
|
-
* 1. Reset Gutter
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
.uk-tab-left,
|
|
152
|
-
.uk-tab-right {
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
|
|
155
|
-
/* 1 */
|
|
156
|
-
margin-left: 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* 1 */
|
|
160
|
-
.uk-tab-left > *,
|
|
161
|
-
.uk-tab-right > * { padding-left: 0; }
|
|
162
|
-
|
|
163
|
-
.uk-tab-left {
|
|
164
|
-
@if mixin-exists(hook-tab-left) {
|
|
165
|
-
@include hook-tab-left;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.uk-tab-right {
|
|
170
|
-
@if mixin-exists(hook-tab-right) {
|
|
171
|
-
@include hook-tab-right;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.uk-tab-left > * > a {
|
|
176
|
-
justify-content: left;
|
|
177
|
-
@if mixin-exists(hook-tab-left-item) {
|
|
178
|
-
@include hook-tab-left-item;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.uk-tab-right > * > a {
|
|
183
|
-
justify-content: left;
|
|
184
|
-
@if mixin-exists(hook-tab-right-item) {
|
|
185
|
-
@include hook-tab-right-item;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// Hooks
|
|
191
|
-
// ========================================================================
|
|
192
|
-
|
|
193
|
-
@if mixin-exists(hook-tab-misc) {
|
|
194
|
-
@include hook-tab-misc;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// Vars
|
|
199
|
-
// ========================================================================
|
|
200
|
-
|
|
201
|
-
:root {
|
|
202
|
-
--tab-margin-horizontal: #{$tab-margin-horizontal};
|
|
203
|
-
--tab-item-padding-horizontal: #{$tab-item-padding-horizontal};
|
|
204
|
-
--tab-item-padding-vertical: #{$tab-item-padding-vertical};
|
|
205
|
-
--tab-item-color: var(--global-muted-color);
|
|
206
|
-
--tab-item-hover-color: var(--global-color);
|
|
207
|
-
--tab-item-hover-text-decoration: #{$tab-item-hover-text-decoration};
|
|
208
|
-
--tab-item-active-color: var(--global-primary-background);
|
|
209
|
-
--tab-item-disabled-color: var(--global-muted-color);
|
|
210
|
-
|
|
211
|
-
// Inverse
|
|
212
|
-
--inverse-tab-item-color: var(--inverse-global-muted-color);
|
|
213
|
-
--inverse-tab-item-hover-color: var(--inverse-global-color);
|
|
214
|
-
--inverse-tab-item-active-color: var(--inverse-global-emphasis-color);
|
|
215
|
-
--inverse-tab-item-disabled-color: var(--inverse-global-muted-color);
|
|
216
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Name: Switcher
|
|
2
|
-
// Description: Component to navigate through different content panes
|
|
3
|
-
//
|
|
4
|
-
// Component: `uk-switcher`
|
|
5
|
-
//
|
|
6
|
-
// States: `uk-active`
|
|
7
|
-
//
|
|
8
|
-
// ========================================================================
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* ========================================================================
|
|
12
|
-
Component: Switcher
|
|
13
|
-
========================================================================== */
|
|
14
|
-
|
|
15
|
-
/*
|
|
16
|
-
* Reset list
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
.uk-switcher {
|
|
20
|
-
list-style: none;
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* Items
|
|
27
|
-
========================================================================== */
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* Hide not active items
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
.uk-switcher > :not(.uk-active) {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Remove margin from the last-child
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
.uk-switcher > * > :last-child {
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// Hooks
|
|
47
|
-
// ========================================================================
|
|
48
|
-
|
|
49
|
-
@if mixin-exists(hook-switcher-misc) {
|
|
50
|
-
@include hook-switcher-misc;
|
|
51
|
-
}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
// Name: Tab
|
|
2
|
-
// Description: Component to create a tabbed navigation
|
|
3
|
-
//
|
|
4
|
-
// Component: `uk-tab`
|
|
5
|
-
//
|
|
6
|
-
// Modifiers: `uk-tab-bottom`
|
|
7
|
-
// `uk-tab-left`
|
|
8
|
-
// `uk-tab-right`
|
|
9
|
-
//
|
|
10
|
-
// States: `uk-active`
|
|
11
|
-
// `uk-disabled`
|
|
12
|
-
//
|
|
13
|
-
// ========================================================================
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
// Variables
|
|
17
|
-
// ========================================================================
|
|
18
|
-
|
|
19
|
-
@import '../../styles/variables.scss';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/* ========================================================================
|
|
23
|
-
Component: Tab
|
|
24
|
-
========================================================================== */
|
|
25
|
-
|
|
26
|
-
/*
|
|
27
|
-
* 1. Allow items to wrap into the next line
|
|
28
|
-
* 2. Gutter
|
|
29
|
-
* 3. Reset list
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
.uk-tab {
|
|
33
|
-
display: flex;
|
|
34
|
-
|
|
35
|
-
/* 1 */
|
|
36
|
-
flex-wrap: wrap;
|
|
37
|
-
list-style: none;
|
|
38
|
-
|
|
39
|
-
/* 2 */
|
|
40
|
-
margin-left: calc(var(--tab-margin-horizontal) * -1);
|
|
41
|
-
|
|
42
|
-
/* 3 */
|
|
43
|
-
padding: 0;
|
|
44
|
-
@if mixin-exists(hook-tab) {
|
|
45
|
-
@include hook-tab;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
* 1. Space is allocated solely based on content dimensions: 0 0 auto
|
|
51
|
-
* 2. Gutter
|
|
52
|
-
* 3. Create position context for dropdowns
|
|
53
|
-
*/
|
|
54
|
-
|
|
55
|
-
.uk-tab > * {
|
|
56
|
-
/* 1 */
|
|
57
|
-
flex: none;
|
|
58
|
-
|
|
59
|
-
/* 2 */
|
|
60
|
-
padding-left: var(--tab-margin-horizontal);
|
|
61
|
-
|
|
62
|
-
/* 3 */
|
|
63
|
-
position: relative;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
/* Items
|
|
68
|
-
========================================================================== */
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
* Items must target `a` elements to exclude other elements (e.g. dropdowns)
|
|
72
|
-
* 1. Center content vertically, e.g. an icon
|
|
73
|
-
* 2. Imitate white space gap when using flexbox
|
|
74
|
-
* 3. Center content if a width is set
|
|
75
|
-
* 4. Style
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
.uk-tab > * > a {
|
|
79
|
-
/* 1 */
|
|
80
|
-
align-items: center;
|
|
81
|
-
|
|
82
|
-
/* 4 */
|
|
83
|
-
color: var(--tab-item-color);
|
|
84
|
-
|
|
85
|
-
/* 2 */
|
|
86
|
-
column-gap: 0.25em;
|
|
87
|
-
|
|
88
|
-
/* 4 */
|
|
89
|
-
display: flex;
|
|
90
|
-
|
|
91
|
-
/* 3 */
|
|
92
|
-
justify-content: center;
|
|
93
|
-
|
|
94
|
-
/* 4 */
|
|
95
|
-
padding: var(--tab-item-padding-vertical) var(--tab-item-padding-horizontal);
|
|
96
|
-
@if mixin-exists(hook-tab-item) {
|
|
97
|
-
@include hook-tab-item;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* Hover */
|
|
102
|
-
.uk-tab > * > a:hover {
|
|
103
|
-
color: var(--tab-item-hover-color);
|
|
104
|
-
text-decoration: var(--tab-item-hover-text-decoration);
|
|
105
|
-
@if mixin-exists(hook-tab-item-hover) {
|
|
106
|
-
@include hook-tab-item-hover;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* Active */
|
|
111
|
-
.uk-tab > .uk-active > a {
|
|
112
|
-
color: var(--tab-item-active-color);
|
|
113
|
-
@if mixin-exists(hook-tab-item-active) {
|
|
114
|
-
@include hook-tab-item-active;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Disabled */
|
|
119
|
-
.uk-tab > .uk-disabled > a {
|
|
120
|
-
color: var(--tab-item-disabled-color);
|
|
121
|
-
@if mixin-exists(hook-tab-item-disabled) {
|
|
122
|
-
@include hook-tab-item-disabled;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/* Position modifier
|
|
128
|
-
========================================================================== */
|
|
129
|
-
|
|
130
|
-
/*
|
|
131
|
-
* Bottom
|
|
132
|
-
*/
|
|
133
|
-
|
|
134
|
-
.uk-tab-bottom {
|
|
135
|
-
@if mixin-exists(hook-tab-bottom) {
|
|
136
|
-
@include hook-tab-bottom;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.uk-tab-bottom > * > a {
|
|
141
|
-
@if mixin-exists(hook-tab-bottom-item) {
|
|
142
|
-
@include hook-tab-bottom-item;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/*
|
|
147
|
-
* Left + Right
|
|
148
|
-
* 1. Reset Gutter
|
|
149
|
-
*/
|
|
150
|
-
|
|
151
|
-
.uk-tab-left,
|
|
152
|
-
.uk-tab-right {
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
|
|
155
|
-
/* 1 */
|
|
156
|
-
margin-left: 0;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/* 1 */
|
|
160
|
-
.uk-tab-left > *,
|
|
161
|
-
.uk-tab-right > * { padding-left: 0; }
|
|
162
|
-
|
|
163
|
-
.uk-tab-left {
|
|
164
|
-
@if mixin-exists(hook-tab-left) {
|
|
165
|
-
@include hook-tab-left;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.uk-tab-right {
|
|
170
|
-
@if mixin-exists(hook-tab-right) {
|
|
171
|
-
@include hook-tab-right;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.uk-tab-left > * > a {
|
|
176
|
-
justify-content: left;
|
|
177
|
-
@if mixin-exists(hook-tab-left-item) {
|
|
178
|
-
@include hook-tab-left-item;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.uk-tab-right > * > a {
|
|
183
|
-
justify-content: left;
|
|
184
|
-
@if mixin-exists(hook-tab-right-item) {
|
|
185
|
-
@include hook-tab-right-item;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
// Hooks
|
|
191
|
-
// ========================================================================
|
|
192
|
-
|
|
193
|
-
@if mixin-exists(hook-tab-misc) {
|
|
194
|
-
@include hook-tab-misc;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
// Vars
|
|
199
|
-
// ========================================================================
|
|
200
|
-
|
|
201
|
-
:root {
|
|
202
|
-
--tab-margin-horizontal: #{$tab-margin-horizontal};
|
|
203
|
-
--tab-item-padding-horizontal: #{$tab-item-padding-horizontal};
|
|
204
|
-
--tab-item-padding-vertical: #{$tab-item-padding-vertical};
|
|
205
|
-
--tab-item-color: var(--global-muted-color);
|
|
206
|
-
--tab-item-hover-color: var(--global-color);
|
|
207
|
-
--tab-item-hover-text-decoration: #{$tab-item-hover-text-decoration};
|
|
208
|
-
--tab-item-active-color: var(--global-primary-background);
|
|
209
|
-
--tab-item-disabled-color: var(--global-muted-color);
|
|
210
|
-
|
|
211
|
-
// Inverse
|
|
212
|
-
--inverse-tab-item-color: var(--inverse-global-muted-color);
|
|
213
|
-
--inverse-tab-item-hover-color: var(--inverse-global-color);
|
|
214
|
-
--inverse-tab-item-active-color: var(--inverse-global-emphasis-color);
|
|
215
|
-
--inverse-tab-item-disabled-color: var(--inverse-global-muted-color);
|
|
216
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Name: Switcher
|
|
2
|
-
// Description: Component to navigate through different content panes
|
|
3
|
-
//
|
|
4
|
-
// Component: `uk-switcher`
|
|
5
|
-
//
|
|
6
|
-
// States: `uk-active`
|
|
7
|
-
//
|
|
8
|
-
// ========================================================================
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* ========================================================================
|
|
12
|
-
Component: Switcher
|
|
13
|
-
========================================================================== */
|
|
14
|
-
|
|
15
|
-
/*
|
|
16
|
-
* Reset list
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
.uk-switcher {
|
|
20
|
-
list-style: none;
|
|
21
|
-
margin: 0;
|
|
22
|
-
padding: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* Items
|
|
27
|
-
========================================================================== */
|
|
28
|
-
|
|
29
|
-
/*
|
|
30
|
-
* Hide not active items
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
.uk-switcher > :not(.uk-active) {
|
|
34
|
-
display: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Remove margin from the last-child
|
|
39
|
-
*/
|
|
40
|
-
|
|
41
|
-
.uk-switcher > * > :last-child {
|
|
42
|
-
margin-bottom: 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
// Hooks
|
|
47
|
-
// ========================================================================
|
|
48
|
-
|
|
49
|
-
@if mixin-exists(hook-switcher-misc) {
|
|
50
|
-
@include hook-switcher-misc;
|
|
51
|
-
}
|