@targetprocess/tabs 12.23.4-alpha.0 → 12.24.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 +122 -90
- package/dist/tabs.js +122 -90
- package/package.json +5 -5
package/dist/tabs.es.js
CHANGED
|
@@ -6,66 +6,6 @@ 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
|
-
}
|
|
69
9
|
function _iterableToArrayLimit(r, l) {
|
|
70
10
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
71
11
|
if (null != t) {
|
|
@@ -93,42 +33,134 @@ function _iterableToArrayLimit(r, l) {
|
|
|
93
33
|
return a;
|
|
94
34
|
}
|
|
95
35
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
36
|
+
function _classCallCheck(instance, Constructor) {
|
|
37
|
+
if (!(instance instanceof Constructor)) {
|
|
38
|
+
throw new TypeError("Cannot call a class as a function");
|
|
39
|
+
}
|
|
98
40
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
+
}
|
|
103
49
|
}
|
|
104
|
-
function
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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;
|
|
108
57
|
}
|
|
109
|
-
function
|
|
110
|
-
|
|
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;
|
|
111
71
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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);
|
|
85
|
+
}
|
|
86
|
+
function _inherits(subClass, superClass) {
|
|
87
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
88
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
119
89
|
}
|
|
120
|
-
|
|
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);
|
|
101
|
+
}
|
|
102
|
+
function _getPrototypeOf(o) {
|
|
103
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
104
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
105
|
+
};
|
|
106
|
+
return _getPrototypeOf(o);
|
|
121
107
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
124
|
-
|
|
108
|
+
function _setPrototypeOf(o, p) {
|
|
109
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
110
|
+
o.__proto__ = p;
|
|
111
|
+
return o;
|
|
112
|
+
};
|
|
113
|
+
return _setPrototypeOf(o, p);
|
|
125
114
|
}
|
|
126
|
-
function
|
|
127
|
-
if (
|
|
128
|
-
|
|
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;
|
|
115
|
+
function _assertThisInitialized(self) {
|
|
116
|
+
if (self === void 0) {
|
|
117
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
131
118
|
}
|
|
119
|
+
return self;
|
|
120
|
+
}
|
|
121
|
+
function _possibleConstructorReturn(self, call) {
|
|
122
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
123
|
+
return call;
|
|
124
|
+
} else if (call !== void 0) {
|
|
125
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
126
|
+
}
|
|
127
|
+
return _assertThisInitialized(self);
|
|
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;
|
|
134
|
+
}
|
|
135
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
136
|
+
if (!o) return;
|
|
137
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
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);
|
|
142
|
+
}
|
|
143
|
+
function _arrayLikeToArray(arr, len) {
|
|
144
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
145
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
146
|
+
return arr2;
|
|
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.");
|
|
158
|
+
}
|
|
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);
|
|
132
164
|
}
|
|
133
165
|
|
|
134
166
|
function styleInject(css, ref) {
|
|
@@ -158,8 +190,8 @@ function styleInject(css, ref) {
|
|
|
158
190
|
}
|
|
159
191
|
}
|
|
160
192
|
|
|
161
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-
|
|
162
|
-
var styles = {"tabs__header":"tabs__header__tabs__12-
|
|
193
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-24-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-24-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-24-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-24-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-24-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-24-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-24-0:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-24-0:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-24-0:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-24-0:hover,\n .tabs__header__tab-item--active__tabs__12-24-0 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-24-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-24-0 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-24-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-24-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-24-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-24-0:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-24-0 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-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-24-0 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item__tabs__12-24-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item__tabs__12-24-0:hover:not(.tabs__header__tab-item--active__tabs__12-24-0) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item--active__tabs__12-24-0 {\n background: var(--Active300, #F7E292);\n }\n";
|
|
194
|
+
var styles = {"tabs__header":"tabs__header__tabs__12-24-0","tabs__header__title":"tabs__header__title__tabs__12-24-0","tabs__header__container":"tabs__header__container__tabs__12-24-0","tabs__header__line":"tabs__header__line__tabs__12-24-0","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-24-0","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-24-0","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-24-0","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-24-0","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-24-0","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-24-0","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-24-0","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-24-0","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-24-0","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-24-0"};
|
|
163
195
|
styleInject(css);
|
|
164
196
|
|
|
165
197
|
/*********************************************************************
|
package/dist/tabs.js
CHANGED
|
@@ -12,66 +12,6 @@ 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
|
-
}
|
|
75
15
|
function _iterableToArrayLimit(r, l) {
|
|
76
16
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
77
17
|
if (null != t) {
|
|
@@ -99,42 +39,134 @@ function _iterableToArrayLimit(r, l) {
|
|
|
99
39
|
return a;
|
|
100
40
|
}
|
|
101
41
|
}
|
|
102
|
-
function
|
|
103
|
-
|
|
42
|
+
function _classCallCheck(instance, Constructor) {
|
|
43
|
+
if (!(instance instanceof Constructor)) {
|
|
44
|
+
throw new TypeError("Cannot call a class as a function");
|
|
45
|
+
}
|
|
104
46
|
}
|
|
105
|
-
function
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
+
}
|
|
109
55
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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;
|
|
114
63
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
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;
|
|
117
77
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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);
|
|
91
|
+
}
|
|
92
|
+
function _inherits(subClass, superClass) {
|
|
93
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
94
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
125
95
|
}
|
|
126
|
-
|
|
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);
|
|
107
|
+
}
|
|
108
|
+
function _getPrototypeOf(o) {
|
|
109
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
110
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
111
|
+
};
|
|
112
|
+
return _getPrototypeOf(o);
|
|
127
113
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
130
|
-
|
|
114
|
+
function _setPrototypeOf(o, p) {
|
|
115
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
116
|
+
o.__proto__ = p;
|
|
117
|
+
return o;
|
|
118
|
+
};
|
|
119
|
+
return _setPrototypeOf(o, p);
|
|
131
120
|
}
|
|
132
|
-
function
|
|
133
|
-
if (
|
|
134
|
-
|
|
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;
|
|
121
|
+
function _assertThisInitialized(self) {
|
|
122
|
+
if (self === void 0) {
|
|
123
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
137
124
|
}
|
|
125
|
+
return self;
|
|
126
|
+
}
|
|
127
|
+
function _possibleConstructorReturn(self, call) {
|
|
128
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
129
|
+
return call;
|
|
130
|
+
} else if (call !== void 0) {
|
|
131
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
132
|
+
}
|
|
133
|
+
return _assertThisInitialized(self);
|
|
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;
|
|
140
|
+
}
|
|
141
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
142
|
+
if (!o) return;
|
|
143
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
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);
|
|
148
|
+
}
|
|
149
|
+
function _arrayLikeToArray(arr, len) {
|
|
150
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
151
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
152
|
+
return arr2;
|
|
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.");
|
|
164
|
+
}
|
|
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);
|
|
138
170
|
}
|
|
139
171
|
|
|
140
172
|
function styleInject(css, ref) {
|
|
@@ -164,8 +196,8 @@ function styleInject(css, ref) {
|
|
|
164
196
|
}
|
|
165
197
|
}
|
|
166
198
|
|
|
167
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-
|
|
168
|
-
var styles = {"tabs__header":"tabs__header__tabs__12-
|
|
199
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-24-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-24-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-24-0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-24-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-24-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-24-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-24-0:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-24-0:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-24-0:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-24-0:hover,\n .tabs__header__tab-item--active__tabs__12-24-0 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-24-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-24-0 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-24-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-24-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-24-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-24-0:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-24-0 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-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-24-0 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item__tabs__12-24-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item__tabs__12-24-0:hover:not(.tabs__header__tab-item--active__tabs__12-24-0) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-24-0 .tabs__header__tab-item--active__tabs__12-24-0 {\n background: var(--Active300, #F7E292);\n }\n";
|
|
200
|
+
var styles = {"tabs__header":"tabs__header__tabs__12-24-0","tabs__header__title":"tabs__header__title__tabs__12-24-0","tabs__header__container":"tabs__header__container__tabs__12-24-0","tabs__header__line":"tabs__header__line__tabs__12-24-0","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-24-0","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-24-0","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-24-0","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-24-0","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-24-0","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-24-0","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-24-0","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-24-0","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-24-0","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-24-0"};
|
|
169
201
|
styleInject(css);
|
|
170
202
|
|
|
171
203
|
/*********************************************************************
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/tabs",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.24.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.
|
|
14
|
-
"@targetprocess/icons": "^12.
|
|
15
|
-
"@targetprocess/popover": "^12.
|
|
13
|
+
"@targetprocess/button": "^12.24.0",
|
|
14
|
+
"@targetprocess/icons": "^12.24.0",
|
|
15
|
+
"@targetprocess/popover": "^12.24.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": "c079d436e88f2ce5f20f29ac1681a38ce7d1ef4a"
|
|
27
27
|
}
|