@targetprocess/tabs 12.20.1-alpha.2 → 12.20.2-alpha.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 +45 -45
- package/README.md +15 -15
- package/ShowMore.jsx +152 -152
- package/TabInner.jsx +90 -90
- package/TabPanel.jsx +27 -27
- package/Tabs.jsx +499 -499
- package/TabsPrint.jsx +95 -95
- package/__tests__/Tabs.tests.jsx +263 -263
- package/dist/tabs.es.js +36 -22
- package/dist/tabs.js +36 -22
- package/index.js +4 -1
- package/package.json +5 -5
- package/shared-proptype.js +10 -7
- package/style/index.css +145 -142
package/dist/tabs.js
CHANGED
|
@@ -196,10 +196,14 @@ function styleInject(css, ref) {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
var css = ".tabs__header__tabs__12-20-
|
|
200
|
-
var styles = {"tabs__header":"tabs__header__tabs__12-20-
|
|
199
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-20-2-alpha-0 {\n font-size: var(--FontSizeDefault, 13px);\n line-height: 1.23;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n.tabs__header__title__tabs__12-20-2-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__container__tabs__12-20-2-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-20-2-alpha-0 {\n height: 1px;\n position: relative;\n background-color: var(--ControlBorderColorDefault, rgba(64, 66, 73, 0.2));\n }\n.tabs__header__line__slider__tabs__12-20-2-alpha-0 {\n height: 1px;\n position: absolute;\n background-color: var(--DrBlack, #000000);\n -webkit-transition: left 0.3s, width 0.3s, right 0.3s, width 0.3s;\n transition: left 0.3s, width 0.3s, right 0.3s, width 0.3s;\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-weight: var(--FontWeightSemibold, 600);\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: pointer;\n outline: none;\n white-space: nowrap;\n padding: var(--SpaceS, 8px);\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0:hover,\n .tabs__header__tab-item--active__tabs__12-20-2-alpha-0 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-20-2-alpha-0:focus {\n outline: 0;\n border-radius: 1px;\n -webkit-box-shadow: var(--ControlBoxShadowFocusDefault, 0 0 0 3px rgba(0, 126, 255, 0.2));\n box-shadow: var(--ControlBoxShadowFocusDefault, 0 0 0 3px rgba(0, 126, 255, 0.2));\n }\n.tabs__header__tab-item--disabled__tabs__12-20-2-alpha-0 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-20-2-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n height: 100%;\n }\n.tabs__header__tabs__showmore__tabs__12-20-2-alpha-0 {\n padding: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n outline: none;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n width: var(--ControlHeightLarge, 28px);\n }\n.tabs__header__tabs__showmore__label__tabs__12-20-2-alpha-0 {\n border-radius: var(--BorderRadiusDefault, 3px);\n width: var(--ControlHeightLarge, 28px);\n height: var(--ControlHeightLarge, 28px);\n z-index: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 0 auto;\n flex: 1 0 auto;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n.tabs__header__tabs__showmore__label__tabs__12-20-2-alpha-0:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-20-2-alpha-0 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-20-2-alpha-0 {\n outline: none;\n -webkit-box-shadow: var(--BoxShadowL, 0 4px 16px 0 rgba(0, 0, 0, 0.12));\n box-shadow: var(--BoxShadowL, 0 4px 16px 0 rgba(0, 0, 0, 0.12));\n border-radius: var(--BorderRadiusL, 4px);\n position: absolute;\n right: 0;\n padding: var(--SpaceXS, 4px) 0;\n left: auto;\n top: calc(100% + var(--SpaceXS, 4px)/2);\n bottom: auto;\n z-index: 11;\n background: var(--MrWhite, #FFFFFF);\n display: none;\n }\n.tabs__header__tabs__showmore-menu--opened__tabs__12-20-2-alpha-0 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-20-2-alpha-0 .tabs__header__tab-item__tabs__12-20-2-alpha-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-20-2-alpha-0 .tabs__header__tab-item__tabs__12-20-2-alpha-0:hover:not(.tabs__header__tab-item--active__tabs__12-20-2-alpha-0) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-20-2-alpha-0 .tabs__header__tab-item--active__tabs__12-20-2-alpha-0 {\n background: var(--Active300, #F7E292);\n }\n";
|
|
200
|
+
var styles = {"tabs__header":"tabs__header__tabs__12-20-2-alpha-0","tabs__header__title":"tabs__header__title__tabs__12-20-2-alpha-0","tabs__header__container":"tabs__header__container__tabs__12-20-2-alpha-0","tabs__header__line":"tabs__header__line__tabs__12-20-2-alpha-0","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-20-2-alpha-0","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-20-2-alpha-0","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-20-2-alpha-0","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-20-2-alpha-0","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-20-2-alpha-0"};
|
|
201
201
|
styleInject(css);
|
|
202
202
|
|
|
203
|
+
/*********************************************************************
|
|
204
|
+
* © Copyright IBM Corp. 2024
|
|
205
|
+
*********************************************************************/
|
|
206
|
+
|
|
203
207
|
/* should be the same for Popover, all props are cut after build, so we needed to copy them */
|
|
204
208
|
var showMorePopoverProps = PropTypes.shape({
|
|
205
209
|
trackScroll: PropTypes.bool,
|
|
@@ -450,6 +454,9 @@ _defineProperty(TabInner, "defaultProps", {
|
|
|
450
454
|
disabled: false
|
|
451
455
|
});
|
|
452
456
|
|
|
457
|
+
/*********************************************************************
|
|
458
|
+
* © Copyright IBM Corp. 2024
|
|
459
|
+
*********************************************************************/
|
|
453
460
|
var debounce = function debounce(callback, time) {
|
|
454
461
|
var interval = null;
|
|
455
462
|
return function () {
|
|
@@ -558,6 +565,9 @@ var TabsPrint = function TabsPrint(props) {
|
|
|
558
565
|
}));
|
|
559
566
|
};
|
|
560
567
|
|
|
568
|
+
/*********************************************************************
|
|
569
|
+
* © Copyright IBM Corp. 2024
|
|
570
|
+
*********************************************************************/
|
|
561
571
|
var generateId = function generateId(prefix) {
|
|
562
572
|
return "".concat(prefix).concat(Math.random().toString(36).substring(7));
|
|
563
573
|
};
|
|
@@ -578,26 +588,26 @@ Tab.propTypes = {
|
|
|
578
588
|
disabled: PropTypes.bool
|
|
579
589
|
};
|
|
580
590
|
|
|
581
|
-
/**
|
|
582
|
-
* Tabs component is an aggregate root for several content panes
|
|
583
|
-
* (via Tabs.Tab component), each with its own children, and a header
|
|
584
|
-
* to switch between them.
|
|
585
|
-
*
|
|
586
|
-
* Each `<Tab />` must have a `header` (that can be arbitary react element but
|
|
587
|
-
* is most commonly just a string), `id` and regular children.
|
|
588
|
-
*
|
|
589
|
-
* Top-level `<Tabs />` can work in either controlled or uncontrolled mode.
|
|
590
|
-
* In controlled mode, it uses `initialActiveTabId` to determine which
|
|
591
|
-
* tab is open by default, and then manually manageschanging tabs
|
|
592
|
-
* on appropriate header clicks.
|
|
593
|
-
* In uncontrolled mode, it uses `activeTabId` prop to determine which tab
|
|
594
|
-
* is open and exposes `onActiveTabChanged` callback that is invoked each time
|
|
595
|
-
* a user clicks on a tab.
|
|
596
|
-
*
|
|
597
|
-
* By default, `<Tabs />` will shrink its tab headers to fit the parent element. Tab
|
|
598
|
-
* headers which don't fit into the parent are rendered inside Show More popover.
|
|
599
|
-
* In order to disable this behavior and allow `<Tabs/>` to occupy as much space as it needs
|
|
600
|
-
* to render all tab headers, set `shrinkToParent` prop to `false`
|
|
591
|
+
/**
|
|
592
|
+
* Tabs component is an aggregate root for several content panes
|
|
593
|
+
* (via Tabs.Tab component), each with its own children, and a header
|
|
594
|
+
* to switch between them.
|
|
595
|
+
*
|
|
596
|
+
* Each `<Tab />` must have a `header` (that can be arbitary react element but
|
|
597
|
+
* is most commonly just a string), `id` and regular children.
|
|
598
|
+
*
|
|
599
|
+
* Top-level `<Tabs />` can work in either controlled or uncontrolled mode.
|
|
600
|
+
* In controlled mode, it uses `initialActiveTabId` to determine which
|
|
601
|
+
* tab is open by default, and then manually manageschanging tabs
|
|
602
|
+
* on appropriate header clicks.
|
|
603
|
+
* In uncontrolled mode, it uses `activeTabId` prop to determine which tab
|
|
604
|
+
* is open and exposes `onActiveTabChanged` callback that is invoked each time
|
|
605
|
+
* a user clicks on a tab.
|
|
606
|
+
*
|
|
607
|
+
* By default, `<Tabs />` will shrink its tab headers to fit the parent element. Tab
|
|
608
|
+
* headers which don't fit into the parent are rendered inside Show More popover.
|
|
609
|
+
* In order to disable this behavior and allow `<Tabs/>` to occupy as much space as it needs
|
|
610
|
+
* to render all tab headers, set `shrinkToParent` prop to `false`
|
|
601
611
|
**/
|
|
602
612
|
|
|
603
613
|
var Tabs = /*#__PURE__*/function (_React$Component) {
|
|
@@ -1030,4 +1040,8 @@ _defineProperty(Tabs, "defaultProps", {
|
|
|
1030
1040
|
});
|
|
1031
1041
|
Tabs.Tab = Tab;
|
|
1032
1042
|
|
|
1043
|
+
/*********************************************************************
|
|
1044
|
+
* © Copyright IBM Corp. 2024
|
|
1045
|
+
*********************************************************************/
|
|
1046
|
+
|
|
1033
1047
|
exports.Tabs = Tabs;
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/tabs",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.2-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/tabs.js",
|
|
6
6
|
"module": "dist/tabs.es.js",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"prepack": "node -r ../../.ts-node.js ../../config/rollup.config.js ."
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@targetprocess/button": "^12.20.
|
|
14
|
-
"@targetprocess/icons": "^12.20.
|
|
15
|
-
"@targetprocess/popover": "^12.20.
|
|
13
|
+
"@targetprocess/button": "^12.20.2-alpha.0",
|
|
14
|
+
"@targetprocess/icons": "^12.20.2-alpha.0",
|
|
15
|
+
"@targetprocess/popover": "^12.20.2-alpha.0",
|
|
16
16
|
"classnames": "^2.2.5",
|
|
17
17
|
"prop-types": "^15.6.0",
|
|
18
18
|
"react": "^16.8.0",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "58801cfa426dcee4f34922ebc0e9cfa8fbd52735"
|
|
27
27
|
}
|
package/shared-proptype.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2024
|
|
3
|
+
*********************************************************************/
|
|
4
|
+
import PropTypes from 'prop-types'
|
|
5
|
+
|
|
6
|
+
/* should be the same for Popover, all props are cut after build, so we needed to copy them */
|
|
7
|
+
export const showMorePopoverProps = PropTypes.shape({
|
|
8
|
+
trackScroll: PropTypes.bool,
|
|
9
|
+
getContainerElement: PropTypes.func
|
|
10
|
+
})
|
package/style/index.css
CHANGED
|
@@ -1,142 +1,145 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
1
|
+
/*********************************************************************
|
|
2
|
+
* © Copyright IBM Corp. 2024
|
|
3
|
+
*********************************************************************/
|
|
4
|
+
.tabs {
|
|
5
|
+
|
|
6
|
+
&__header {
|
|
7
|
+
font-size: $gFontSizeDefault;
|
|
8
|
+
line-height: 1.23;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&__title {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
padding-right: $gSpaceSM;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__container {
|
|
19
|
+
display: flex;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__line {
|
|
24
|
+
height: 1px;
|
|
25
|
+
position: relative;
|
|
26
|
+
background-color: $gControlBorderColorDefault;
|
|
27
|
+
|
|
28
|
+
&__slider {
|
|
29
|
+
height: 1px;
|
|
30
|
+
position: absolute;
|
|
31
|
+
background-color: $gDrBlack;
|
|
32
|
+
transition: left 0.3s, width 0.3s, right 0.3s, width 0.3s;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__tab-item {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
font-weight: $gFontWeightSemibold;
|
|
40
|
+
color: $gFontColorLightGray;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
outline: none;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
padding: $gSpaceS;
|
|
45
|
+
|
|
46
|
+
&:first-child {
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:not(:first-child) {
|
|
51
|
+
padding-left: $gSpaceSM;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:not(:last-child) {
|
|
55
|
+
padding-right: $gSpaceSM;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:hover,
|
|
59
|
+
&--active {
|
|
60
|
+
color: $gDrBlack;
|
|
61
|
+
}
|
|
62
|
+
&:focus {
|
|
63
|
+
outline: 0;
|
|
64
|
+
border-radius: 1px;
|
|
65
|
+
box-shadow: $gControlBoxShadowFocusDefault;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--disabled {
|
|
69
|
+
color: $gFontColorLightGray;
|
|
70
|
+
cursor: default;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__tabs__showmore__wrapper {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&__tabs__showmore {
|
|
82
|
+
padding: 0;
|
|
83
|
+
display: flex;
|
|
84
|
+
outline: none;
|
|
85
|
+
align-items: center;
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
white-space: nowrap;
|
|
88
|
+
position: relative;
|
|
89
|
+
width: $gControlHeightLarge;
|
|
90
|
+
|
|
91
|
+
&__label {
|
|
92
|
+
border-radius: $gBorderRadiusDefault;
|
|
93
|
+
width: $gControlHeightLarge;
|
|
94
|
+
height: $gControlHeightLarge;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
display: flex;
|
|
97
|
+
flex: 1 0 auto;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: $gButtonBackgroundHover;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&--selected {
|
|
107
|
+
svg * {
|
|
108
|
+
fill: $gDrBlack;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&-menu {
|
|
114
|
+
outline: none;
|
|
115
|
+
box-shadow: $gBoxShadowL;
|
|
116
|
+
border-radius: $gBorderRadiusL;
|
|
117
|
+
position: absolute;
|
|
118
|
+
right: 0;
|
|
119
|
+
padding: $gSpaceXS 0;
|
|
120
|
+
left: auto;
|
|
121
|
+
top: calc(100% + $gSpaceXS / 2);
|
|
122
|
+
bottom: auto;
|
|
123
|
+
z-index: 11;
|
|
124
|
+
background: $gMrWhite;
|
|
125
|
+
display: none;
|
|
126
|
+
|
|
127
|
+
&--opened {
|
|
128
|
+
display: block;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tabs__header__tab-item {
|
|
132
|
+
padding: $gSpaceS $gSpaceSM;
|
|
133
|
+
|
|
134
|
+
&:hover:not(.tabs__header__tab-item--active) {
|
|
135
|
+
background: $gActive100;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&--active {
|
|
139
|
+
background: $gActive300;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|