@targetprocess/tabs 12.23.3-alpha.0 → 12.23.4-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/dist/tabs.es.js +90 -122
- package/dist/tabs.js +90 -122
- package/package.json +3 -3
package/dist/tabs.es.js
CHANGED
|
@@ -6,6 +6,66 @@ import { ChevronIcon } from '@targetprocess/icons';
|
|
|
6
6
|
import { Button } from '@targetprocess/button';
|
|
7
7
|
import Popover from '@targetprocess/popover';
|
|
8
8
|
|
|
9
|
+
function _arrayLikeToArray(r, a) {
|
|
10
|
+
(null == a || a > r.length) && (a = r.length);
|
|
11
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
function _arrayWithHoles(r) {
|
|
15
|
+
if (Array.isArray(r)) return r;
|
|
16
|
+
}
|
|
17
|
+
function _assertThisInitialized(e) {
|
|
18
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function _classCallCheck(a, n) {
|
|
22
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
23
|
+
}
|
|
24
|
+
function _defineProperties(e, r) {
|
|
25
|
+
for (var t = 0; t < r.length; t++) {
|
|
26
|
+
var o = r[t];
|
|
27
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
function _createClass(e, r, t) {
|
|
31
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
32
|
+
writable: !1
|
|
33
|
+
}), e;
|
|
34
|
+
}
|
|
35
|
+
function _defineProperty(e, r, t) {
|
|
36
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
37
|
+
value: t,
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
writable: !0
|
|
41
|
+
}) : e[r] = t, e;
|
|
42
|
+
}
|
|
43
|
+
function _extends() {
|
|
44
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
45
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
46
|
+
var t = arguments[e];
|
|
47
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
48
|
+
}
|
|
49
|
+
return n;
|
|
50
|
+
}, _extends.apply(null, arguments);
|
|
51
|
+
}
|
|
52
|
+
function _getPrototypeOf(t) {
|
|
53
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
54
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
55
|
+
}, _getPrototypeOf(t);
|
|
56
|
+
}
|
|
57
|
+
function _inherits(t, e) {
|
|
58
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
59
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
60
|
+
constructor: {
|
|
61
|
+
value: t,
|
|
62
|
+
writable: !0,
|
|
63
|
+
configurable: !0
|
|
64
|
+
}
|
|
65
|
+
}), Object.defineProperty(t, "prototype", {
|
|
66
|
+
writable: !1
|
|
67
|
+
}), e && _setPrototypeOf(t, e);
|
|
68
|
+
}
|
|
9
69
|
function _iterableToArrayLimit(r, l) {
|
|
10
70
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11
71
|
if (null != t) {
|
|
@@ -33,134 +93,42 @@ function _iterableToArrayLimit(r, l) {
|
|
|
33
93
|
return a;
|
|
34
94
|
}
|
|
35
95
|
}
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
throw new TypeError("Cannot call a class as a function");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function _defineProperties(target, props) {
|
|
42
|
-
for (var i = 0; i < props.length; i++) {
|
|
43
|
-
var descriptor = props[i];
|
|
44
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
45
|
-
descriptor.configurable = true;
|
|
46
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
47
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
51
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
52
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
53
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
54
|
-
writable: false
|
|
55
|
-
});
|
|
56
|
-
return Constructor;
|
|
57
|
-
}
|
|
58
|
-
function _defineProperty(obj, key, value) {
|
|
59
|
-
key = _toPropertyKey(key);
|
|
60
|
-
if (key in obj) {
|
|
61
|
-
Object.defineProperty(obj, key, {
|
|
62
|
-
value: value,
|
|
63
|
-
enumerable: true,
|
|
64
|
-
configurable: true,
|
|
65
|
-
writable: true
|
|
66
|
-
});
|
|
67
|
-
} else {
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
70
|
-
return obj;
|
|
71
|
-
}
|
|
72
|
-
function _extends() {
|
|
73
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
74
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
75
|
-
var source = arguments[i];
|
|
76
|
-
for (var key in source) {
|
|
77
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
78
|
-
target[key] = source[key];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return target;
|
|
83
|
-
};
|
|
84
|
-
return _extends.apply(this, arguments);
|
|
96
|
+
function _nonIterableRest() {
|
|
97
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
85
98
|
}
|
|
86
|
-
function
|
|
87
|
-
if (typeof
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
91
|
-
constructor: {
|
|
92
|
-
value: subClass,
|
|
93
|
-
writable: true,
|
|
94
|
-
configurable: true
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(subClass, "prototype", {
|
|
98
|
-
writable: false
|
|
99
|
-
});
|
|
100
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
99
|
+
function _possibleConstructorReturn(t, e) {
|
|
100
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
101
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
102
|
+
return _assertThisInitialized(t);
|
|
101
103
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
104
|
-
return
|
|
105
|
-
};
|
|
106
|
-
return _getPrototypeOf(o);
|
|
104
|
+
function _setPrototypeOf(t, e) {
|
|
105
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
106
|
+
return t.__proto__ = e, t;
|
|
107
|
+
}, _setPrototypeOf(t, e);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
o.__proto__ = p;
|
|
111
|
-
return o;
|
|
112
|
-
};
|
|
113
|
-
return _setPrototypeOf(o, p);
|
|
114
|
-
}
|
|
115
|
-
function _assertThisInitialized(self) {
|
|
116
|
-
if (self === void 0) {
|
|
117
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
118
|
-
}
|
|
119
|
-
return self;
|
|
109
|
+
function _slicedToArray(r, e) {
|
|
110
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
120
111
|
}
|
|
121
|
-
function
|
|
122
|
-
if (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
112
|
+
function _toPrimitive(t, r) {
|
|
113
|
+
if ("object" != typeof t || !t) return t;
|
|
114
|
+
var e = t[Symbol.toPrimitive];
|
|
115
|
+
if (void 0 !== e) {
|
|
116
|
+
var i = e.call(t, r || "default");
|
|
117
|
+
if ("object" != typeof i) return i;
|
|
118
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
126
119
|
}
|
|
127
|
-
return
|
|
128
|
-
}
|
|
129
|
-
function _slicedToArray(arr, i) {
|
|
130
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
131
|
-
}
|
|
132
|
-
function _arrayWithHoles(arr) {
|
|
133
|
-
if (Array.isArray(arr)) return arr;
|
|
120
|
+
return ("string" === r ? String : Number)(t);
|
|
134
121
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
139
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
140
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
141
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
122
|
+
function _toPropertyKey(t) {
|
|
123
|
+
var i = _toPrimitive(t, "string");
|
|
124
|
+
return "symbol" == typeof i ? i : i + "";
|
|
142
125
|
}
|
|
143
|
-
function
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
function _nonIterableRest() {
|
|
149
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
150
|
-
}
|
|
151
|
-
function _toPrimitive(input, hint) {
|
|
152
|
-
if (typeof input !== "object" || input === null) return input;
|
|
153
|
-
var prim = input[Symbol.toPrimitive];
|
|
154
|
-
if (prim !== undefined) {
|
|
155
|
-
var res = prim.call(input, hint || "default");
|
|
156
|
-
if (typeof res !== "object") return res;
|
|
157
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
126
|
+
function _unsupportedIterableToArray(r, a) {
|
|
127
|
+
if (r) {
|
|
128
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
129
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
130
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
158
131
|
}
|
|
159
|
-
return (hint === "string" ? String : Number)(input);
|
|
160
|
-
}
|
|
161
|
-
function _toPropertyKey(arg) {
|
|
162
|
-
var key = _toPrimitive(arg, "string");
|
|
163
|
-
return typeof key === "symbol" ? key : String(key);
|
|
164
132
|
}
|
|
165
133
|
|
|
166
134
|
function styleInject(css, ref) {
|
|
@@ -190,8 +158,8 @@ function styleInject(css, ref) {
|
|
|
190
158
|
}
|
|
191
159
|
}
|
|
192
160
|
|
|
193
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-23-
|
|
194
|
-
var styles = {"tabs__header":"tabs__header__tabs__12-23-
|
|
161
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-23-4-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-23-4-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-23-4-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-23-4-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-23-4-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-23-4-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-23-4-alpha-0:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:hover,\n .tabs__header__tab-item--active__tabs__12-23-4-alpha-0 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-23-4-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-23-4-alpha-0 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-23-4-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-23-4-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-23-4-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-23-4-alpha-0:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-23-4-alpha-0 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-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-23-4-alpha-0 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item__tabs__12-23-4-alpha-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item__tabs__12-23-4-alpha-0:hover:not(.tabs__header__tab-item--active__tabs__12-23-4-alpha-0) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item--active__tabs__12-23-4-alpha-0 {\n background: var(--Active300, #F7E292);\n }\n";
|
|
162
|
+
var styles = {"tabs__header":"tabs__header__tabs__12-23-4-alpha-0","tabs__header__title":"tabs__header__title__tabs__12-23-4-alpha-0","tabs__header__container":"tabs__header__container__tabs__12-23-4-alpha-0","tabs__header__line":"tabs__header__line__tabs__12-23-4-alpha-0","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-23-4-alpha-0","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-23-4-alpha-0","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-23-4-alpha-0","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-23-4-alpha-0"};
|
|
195
163
|
styleInject(css);
|
|
196
164
|
|
|
197
165
|
/*********************************************************************
|
package/dist/tabs.js
CHANGED
|
@@ -12,6 +12,66 @@ var icons = require('@targetprocess/icons');
|
|
|
12
12
|
var button = require('@targetprocess/button');
|
|
13
13
|
var Popover = _interopDefault(require('@targetprocess/popover'));
|
|
14
14
|
|
|
15
|
+
function _arrayLikeToArray(r, a) {
|
|
16
|
+
(null == a || a > r.length) && (a = r.length);
|
|
17
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
function _arrayWithHoles(r) {
|
|
21
|
+
if (Array.isArray(r)) return r;
|
|
22
|
+
}
|
|
23
|
+
function _assertThisInitialized(e) {
|
|
24
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25
|
+
return e;
|
|
26
|
+
}
|
|
27
|
+
function _classCallCheck(a, n) {
|
|
28
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
29
|
+
}
|
|
30
|
+
function _defineProperties(e, r) {
|
|
31
|
+
for (var t = 0; t < r.length; t++) {
|
|
32
|
+
var o = r[t];
|
|
33
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function _createClass(e, r, t) {
|
|
37
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
38
|
+
writable: !1
|
|
39
|
+
}), e;
|
|
40
|
+
}
|
|
41
|
+
function _defineProperty(e, r, t) {
|
|
42
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
43
|
+
value: t,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
configurable: !0,
|
|
46
|
+
writable: !0
|
|
47
|
+
}) : e[r] = t, e;
|
|
48
|
+
}
|
|
49
|
+
function _extends() {
|
|
50
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
51
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
52
|
+
var t = arguments[e];
|
|
53
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
54
|
+
}
|
|
55
|
+
return n;
|
|
56
|
+
}, _extends.apply(null, arguments);
|
|
57
|
+
}
|
|
58
|
+
function _getPrototypeOf(t) {
|
|
59
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
60
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
61
|
+
}, _getPrototypeOf(t);
|
|
62
|
+
}
|
|
63
|
+
function _inherits(t, e) {
|
|
64
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
65
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
66
|
+
constructor: {
|
|
67
|
+
value: t,
|
|
68
|
+
writable: !0,
|
|
69
|
+
configurable: !0
|
|
70
|
+
}
|
|
71
|
+
}), Object.defineProperty(t, "prototype", {
|
|
72
|
+
writable: !1
|
|
73
|
+
}), e && _setPrototypeOf(t, e);
|
|
74
|
+
}
|
|
15
75
|
function _iterableToArrayLimit(r, l) {
|
|
16
76
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17
77
|
if (null != t) {
|
|
@@ -39,134 +99,42 @@ function _iterableToArrayLimit(r, l) {
|
|
|
39
99
|
return a;
|
|
40
100
|
}
|
|
41
101
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
throw new TypeError("Cannot call a class as a function");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
function _defineProperties(target, props) {
|
|
48
|
-
for (var i = 0; i < props.length; i++) {
|
|
49
|
-
var descriptor = props[i];
|
|
50
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
51
|
-
descriptor.configurable = true;
|
|
52
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
53
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
57
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
58
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
59
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
60
|
-
writable: false
|
|
61
|
-
});
|
|
62
|
-
return Constructor;
|
|
63
|
-
}
|
|
64
|
-
function _defineProperty(obj, key, value) {
|
|
65
|
-
key = _toPropertyKey(key);
|
|
66
|
-
if (key in obj) {
|
|
67
|
-
Object.defineProperty(obj, key, {
|
|
68
|
-
value: value,
|
|
69
|
-
enumerable: true,
|
|
70
|
-
configurable: true,
|
|
71
|
-
writable: true
|
|
72
|
-
});
|
|
73
|
-
} else {
|
|
74
|
-
obj[key] = value;
|
|
75
|
-
}
|
|
76
|
-
return obj;
|
|
77
|
-
}
|
|
78
|
-
function _extends() {
|
|
79
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
80
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
81
|
-
var source = arguments[i];
|
|
82
|
-
for (var key in source) {
|
|
83
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
84
|
-
target[key] = source[key];
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return target;
|
|
89
|
-
};
|
|
90
|
-
return _extends.apply(this, arguments);
|
|
102
|
+
function _nonIterableRest() {
|
|
103
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
91
104
|
}
|
|
92
|
-
function
|
|
93
|
-
if (typeof
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
97
|
-
constructor: {
|
|
98
|
-
value: subClass,
|
|
99
|
-
writable: true,
|
|
100
|
-
configurable: true
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
Object.defineProperty(subClass, "prototype", {
|
|
104
|
-
writable: false
|
|
105
|
-
});
|
|
106
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
105
|
+
function _possibleConstructorReturn(t, e) {
|
|
106
|
+
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
107
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
108
|
+
return _assertThisInitialized(t);
|
|
107
109
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
return
|
|
111
|
-
};
|
|
112
|
-
return _getPrototypeOf(o);
|
|
110
|
+
function _setPrototypeOf(t, e) {
|
|
111
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
112
|
+
return t.__proto__ = e, t;
|
|
113
|
+
}, _setPrototypeOf(t, e);
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
o.__proto__ = p;
|
|
117
|
-
return o;
|
|
118
|
-
};
|
|
119
|
-
return _setPrototypeOf(o, p);
|
|
120
|
-
}
|
|
121
|
-
function _assertThisInitialized(self) {
|
|
122
|
-
if (self === void 0) {
|
|
123
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
124
|
-
}
|
|
125
|
-
return self;
|
|
115
|
+
function _slicedToArray(r, e) {
|
|
116
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
126
117
|
}
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
118
|
+
function _toPrimitive(t, r) {
|
|
119
|
+
if ("object" != typeof t || !t) return t;
|
|
120
|
+
var e = t[Symbol.toPrimitive];
|
|
121
|
+
if (void 0 !== e) {
|
|
122
|
+
var i = e.call(t, r || "default");
|
|
123
|
+
if ("object" != typeof i) return i;
|
|
124
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
132
125
|
}
|
|
133
|
-
return
|
|
134
|
-
}
|
|
135
|
-
function _slicedToArray(arr, i) {
|
|
136
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
137
|
-
}
|
|
138
|
-
function _arrayWithHoles(arr) {
|
|
139
|
-
if (Array.isArray(arr)) return arr;
|
|
126
|
+
return ("string" === r ? String : Number)(t);
|
|
140
127
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
145
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
146
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
147
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
128
|
+
function _toPropertyKey(t) {
|
|
129
|
+
var i = _toPrimitive(t, "string");
|
|
130
|
+
return "symbol" == typeof i ? i : i + "";
|
|
148
131
|
}
|
|
149
|
-
function
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
function _nonIterableRest() {
|
|
155
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
156
|
-
}
|
|
157
|
-
function _toPrimitive(input, hint) {
|
|
158
|
-
if (typeof input !== "object" || input === null) return input;
|
|
159
|
-
var prim = input[Symbol.toPrimitive];
|
|
160
|
-
if (prim !== undefined) {
|
|
161
|
-
var res = prim.call(input, hint || "default");
|
|
162
|
-
if (typeof res !== "object") return res;
|
|
163
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
132
|
+
function _unsupportedIterableToArray(r, a) {
|
|
133
|
+
if (r) {
|
|
134
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
135
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
136
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
164
137
|
}
|
|
165
|
-
return (hint === "string" ? String : Number)(input);
|
|
166
|
-
}
|
|
167
|
-
function _toPropertyKey(arg) {
|
|
168
|
-
var key = _toPrimitive(arg, "string");
|
|
169
|
-
return typeof key === "symbol" ? key : String(key);
|
|
170
138
|
}
|
|
171
139
|
|
|
172
140
|
function styleInject(css, ref) {
|
|
@@ -196,8 +164,8 @@ function styleInject(css, ref) {
|
|
|
196
164
|
}
|
|
197
165
|
}
|
|
198
166
|
|
|
199
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-23-
|
|
200
|
-
var styles = {"tabs__header":"tabs__header__tabs__12-23-
|
|
167
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-23-4-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-23-4-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-23-4-alpha-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-23-4-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-23-4-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-23-4-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-23-4-alpha-0:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-23-4-alpha-0:hover,\n .tabs__header__tab-item--active__tabs__12-23-4-alpha-0 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-23-4-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-23-4-alpha-0 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-23-4-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-23-4-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-23-4-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-23-4-alpha-0:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-23-4-alpha-0 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-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-23-4-alpha-0 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item__tabs__12-23-4-alpha-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item__tabs__12-23-4-alpha-0:hover:not(.tabs__header__tab-item--active__tabs__12-23-4-alpha-0) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0 .tabs__header__tab-item--active__tabs__12-23-4-alpha-0 {\n background: var(--Active300, #F7E292);\n }\n";
|
|
168
|
+
var styles = {"tabs__header":"tabs__header__tabs__12-23-4-alpha-0","tabs__header__title":"tabs__header__title__tabs__12-23-4-alpha-0","tabs__header__container":"tabs__header__container__tabs__12-23-4-alpha-0","tabs__header__line":"tabs__header__line__tabs__12-23-4-alpha-0","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-23-4-alpha-0","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-23-4-alpha-0","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-23-4-alpha-0","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-23-4-alpha-0","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-23-4-alpha-0"};
|
|
201
169
|
styleInject(css);
|
|
202
170
|
|
|
203
171
|
/*********************************************************************
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/tabs",
|
|
3
|
-
"version": "12.23.
|
|
3
|
+
"version": "12.23.4-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/tabs.js",
|
|
6
6
|
"module": "dist/tabs.es.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@targetprocess/button": "^12.23.0",
|
|
14
14
|
"@targetprocess/icons": "^12.23.0",
|
|
15
|
-
"@targetprocess/popover": "^12.23.
|
|
15
|
+
"@targetprocess/popover": "^12.23.4-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": "99534dff51718fc768b54c72fef84f2853e37818"
|
|
27
27
|
}
|