@targetprocess/tabs 12.32.2 → 12.32.3-ci.1

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 CHANGED
@@ -6,6 +6,77 @@ 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 _callSuper(t, o, e) {
22
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
23
+ }
24
+ function _classCallCheck(a, n) {
25
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
26
+ }
27
+ function _defineProperties(e, r) {
28
+ for (var t = 0; t < r.length; t++) {
29
+ var o = r[t];
30
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
31
+ }
32
+ }
33
+ function _createClass(e, r, t) {
34
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
35
+ writable: false
36
+ }), e;
37
+ }
38
+ function _defineProperty(e, r, t) {
39
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
40
+ value: t,
41
+ enumerable: true,
42
+ configurable: true,
43
+ writable: true
44
+ }) : e[r] = t, e;
45
+ }
46
+ function _extends() {
47
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
48
+ for (var e = 1; e < arguments.length; e++) {
49
+ var t = arguments[e];
50
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
51
+ }
52
+ return n;
53
+ }, _extends.apply(null, arguments);
54
+ }
55
+ function _getPrototypeOf(t) {
56
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
57
+ return t.__proto__ || Object.getPrototypeOf(t);
58
+ }, _getPrototypeOf(t);
59
+ }
60
+ function _inherits(t, e) {
61
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
62
+ t.prototype = Object.create(e && e.prototype, {
63
+ constructor: {
64
+ value: t,
65
+ writable: true,
66
+ configurable: true
67
+ }
68
+ }), Object.defineProperty(t, "prototype", {
69
+ writable: false
70
+ }), e && _setPrototypeOf(t, e);
71
+ }
72
+ function _isNativeReflectConstruct() {
73
+ try {
74
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
75
+ } catch (t) {}
76
+ return (_isNativeReflectConstruct = function () {
77
+ return !!t;
78
+ })();
79
+ }
9
80
  function _iterableToArrayLimit(r, l) {
10
81
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
11
82
  if (null != t) {
@@ -14,15 +85,15 @@ function _iterableToArrayLimit(r, l) {
14
85
  i,
15
86
  u,
16
87
  a = [],
17
- f = !0,
18
- o = !1;
88
+ f = true,
89
+ o = false;
19
90
  try {
20
91
  if (i = (t = t.call(r)).next, 0 === l) {
21
92
  if (Object(t) !== t) return;
22
93
  f = !1;
23
94
  } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
24
95
  } catch (r) {
25
- o = !0, n = r;
96
+ o = true, n = r;
26
97
  } finally {
27
98
  try {
28
99
  if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
@@ -33,141 +104,49 @@ function _iterableToArrayLimit(r, l) {
33
104
  return a;
34
105
  }
35
106
  }
36
- function _classCallCheck(instance, Constructor) {
37
- if (!(instance instanceof Constructor)) {
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);
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");
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);
107
+ function _nonIterableRest() {
108
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
101
109
  }
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);
110
+ function _possibleConstructorReturn(t, e) {
111
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
112
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
113
+ return _assertThisInitialized(t);
107
114
  }
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);
115
+ function _setPrototypeOf(t, e) {
116
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
117
+ return t.__proto__ = e, t;
118
+ }, _setPrototypeOf(t, e);
114
119
  }
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;
120
+ function _slicedToArray(r, e) {
121
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
120
122
  }
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");
123
+ function _toPrimitive(t, e) {
124
+ if ("object" != typeof t || !t) return t;
125
+ var r;
126
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
127
+ var i = r.call(t, e);
128
+ if ("object" != typeof i) return i;
129
+ throw new TypeError("@@toPrimitive must return a primitive value.");
126
130
  }
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;
131
+ return (String )(t);
134
132
  }
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);
133
+ function _toPropertyKey(t) {
134
+ var i = _toPrimitive(t, "string");
135
+ return "symbol" == typeof i ? i : i + "";
142
136
  }
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.");
137
+ function _unsupportedIterableToArray(r, a) {
138
+ if (r) {
139
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
140
+ var t = {}.toString.call(r).slice(8, -1);
141
+ 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
142
  }
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
143
  }
165
144
 
166
145
  function styleInject(css, ref) {
167
146
  if ( ref === void 0 ) ref = {};
168
147
  var insertAt = ref.insertAt;
169
148
 
170
- if (!css || typeof document === 'undefined') { return; }
149
+ if (typeof document === 'undefined') { return; }
171
150
 
172
151
  var head = document.head || document.getElementsByTagName('head')[0];
173
152
  var style = document.createElement('style');
@@ -190,9 +169,9 @@ function styleInject(css, ref) {
190
169
  }
191
170
  }
192
171
 
193
- var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-32-2 {\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--hidden__tabs__12-32-2 {\n display: none;\n }\n.tabs__header__title__tabs__12-32-2 {\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-32-2 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-32-2 {\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-32-2 {\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-32-2 {\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-32-2:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-32-2:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-32-2:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-32-2:hover,\n .tabs__header__tab-item--active__tabs__12-32-2 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-32-2: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-32-2 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-32-2 {\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-32-2 {\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-32-2 {\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-32-2:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-32-2 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-2 {\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-32-2 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-2 .tabs__header__tab-item__tabs__12-32-2 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-2 .tabs__header__tab-item__tabs__12-32-2:hover:not(.tabs__header__tab-item--active__tabs__12-32-2) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-2 .tabs__header__tab-item--active__tabs__12-32-2 {\n background: var(--Active300, #F7E292);\n }\n";
194
- var styles = {"tabs__header":"tabs__header__tabs__12-32-2","tabs__header--hidden":"tabs__header--hidden__tabs__12-32-2","tabs__header__title":"tabs__header__title__tabs__12-32-2","tabs__header__container":"tabs__header__container__tabs__12-32-2","tabs__header__line":"tabs__header__line__tabs__12-32-2","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-32-2","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-32-2","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-32-2","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-32-2","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-32-2","tabs__header__tabs__showmore":"tabs__header__tabs__showmore__tabs__12-32-2","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-32-2","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-32-2","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-32-2","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-32-2"};
195
- styleInject(css);
172
+ var css_248z = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.tabs__header__tabs__12-32-3-ci-1 {\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--hidden__tabs__12-32-3-ci-1 {\n display: none;\n }\n.tabs__header__title__tabs__12-32-3-ci-1 {\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-32-3-ci-1 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n }\n.tabs__header__line__tabs__12-32-3-ci-1 {\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-32-3-ci-1 {\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-32-3-ci-1 {\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-32-3-ci-1:first-child {\n padding-left: 0;\n }\n.tabs__header__tab-item__tabs__12-32-3-ci-1:not(:first-child) {\n padding-left: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-32-3-ci-1:not(:last-child) {\n padding-right: var(--SpaceSM, 12px);\n }\n.tabs__header__tab-item__tabs__12-32-3-ci-1:hover,\n .tabs__header__tab-item--active__tabs__12-32-3-ci-1 {\n color: var(--DrBlack, #000000);\n }\n.tabs__header__tab-item__tabs__12-32-3-ci-1: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-32-3-ci-1 {\n color: var(--FontColorLightGray, rgba(0, 0, 0, 0.45));\n cursor: default;\n }\n.tabs__header__tabs__showmore__wrapper__tabs__12-32-3-ci-1 {\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-32-3-ci-1 {\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-32-3-ci-1 {\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-32-3-ci-1:hover {\n background-color: var(--ButtonBackgroundHover, #ECECED);\n }\n.tabs__header__tabs__showmore__label--selected__tabs__12-32-3-ci-1 svg * {\n fill: var(--DrBlack, #000000);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-3-ci-1 {\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-32-3-ci-1 {\n display: block;\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-3-ci-1 .tabs__header__tab-item__tabs__12-32-3-ci-1 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-3-ci-1 .tabs__header__tab-item__tabs__12-32-3-ci-1:hover:not(.tabs__header__tab-item--active__tabs__12-32-3-ci-1) {\n background: var(--Active100, #FCF5DB);\n }\n.tabs__header__tabs__showmore-menu__tabs__12-32-3-ci-1 .tabs__header__tab-item--active__tabs__12-32-3-ci-1 {\n background: var(--Active300, #F7E292);\n }\n";
173
+ var styles = {"tabs__header":"tabs__header__tabs__12-32-3-ci-1","tabs__header--hidden":"tabs__header--hidden__tabs__12-32-3-ci-1","tabs__header__title":"tabs__header__title__tabs__12-32-3-ci-1","tabs__header__container":"tabs__header__container__tabs__12-32-3-ci-1","tabs__header__line":"tabs__header__line__tabs__12-32-3-ci-1","tabs__header__line__slider":"tabs__header__line__slider__tabs__12-32-3-ci-1","tabs__header__tab-item":"tabs__header__tab-item__tabs__12-32-3-ci-1","tabs__header__tab-item--active":"tabs__header__tab-item--active__tabs__12-32-3-ci-1","tabs__header__tab-item--disabled":"tabs__header__tab-item--disabled__tabs__12-32-3-ci-1","tabs__header__tabs__showmore__wrapper":"tabs__header__tabs__showmore__wrapper__tabs__12-32-3-ci-1","tabs__header__tabs__showmore__label":"tabs__header__tabs__showmore__label__tabs__12-32-3-ci-1","tabs__header__tabs__showmore__label--selected":"tabs__header__tabs__showmore__label--selected__tabs__12-32-3-ci-1","tabs__header__tabs__showmore-menu":"tabs__header__tabs__showmore-menu__tabs__12-32-3-ci-1","tabs__header__tabs__showmore-menu--opened":"tabs__header__tabs__showmore-menu--opened__tabs__12-32-3-ci-1"};
174
+ styleInject(css_248z);
196
175
 
197
176
  /*********************************************************************
198
177
  * © Copyright IBM Corp. 2024
@@ -205,30 +184,28 @@ var showMorePopoverProps = PropTypes.shape({
205
184
  });
206
185
 
207
186
  var ShowMore = /*#__PURE__*/function (_React$Component) {
208
- _inherits(ShowMore, _React$Component);
209
187
  function ShowMore() {
210
- var _getPrototypeOf2;
211
188
  var _this;
212
189
  _classCallCheck(this, ShowMore);
213
190
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
214
191
  args[_key] = arguments[_key];
215
192
  }
216
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ShowMore)).call.apply(_getPrototypeOf2, [this].concat(args)));
217
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
193
+ _this = _callSuper(this, ShowMore, [].concat(args));
194
+ _defineProperty(_this, "state", {
218
195
  isFocused: false,
219
196
  isHidden: true
220
197
  });
221
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocus", function () {
198
+ _defineProperty(_this, "onFocus", function () {
222
199
  return _this.setState({
223
200
  isFocused: true
224
201
  });
225
202
  });
226
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onBlur", function () {
203
+ _defineProperty(_this, "onBlur", function () {
227
204
  return _this.setState({
228
205
  isFocused: false
229
206
  });
230
207
  });
231
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
208
+ _defineProperty(_this, "onKeyDown", function (event) {
232
209
  var _this$state = _this.state,
233
210
  isFocused = _this$state.isFocused,
234
211
  isHidden = _this$state.isHidden;
@@ -244,7 +221,7 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
244
221
  }
245
222
  }
246
223
  });
247
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "close", function () {
224
+ _defineProperty(_this, "close", function () {
248
225
  var isHidden = _this.state.isHidden;
249
226
  if (!isHidden) {
250
227
  _this.setState({
@@ -252,7 +229,7 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
252
229
  });
253
230
  }
254
231
  });
255
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "toggleVisibility", function (event) {
232
+ _defineProperty(_this, "toggleVisibility", function (event) {
256
233
  event.stopPropagation();
257
234
  _this.setState(function (_ref) {
258
235
  var isHidden = _ref.isHidden;
@@ -261,7 +238,7 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
261
238
  };
262
239
  });
263
240
  });
264
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getShowMorePopoverProps", function () {
241
+ _defineProperty(_this, "getShowMorePopoverProps", function () {
265
242
  var popoverProps = _extends({}, _this.props.showMorePopoverProps);
266
243
  if (_this.props.showMorePopoverProps && _this.props.showMorePopoverProps.getContainerElement) {
267
244
  showMorePopoverProps.trackScroll = false;
@@ -270,7 +247,8 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
270
247
  });
271
248
  return _this;
272
249
  }
273
- _createClass(ShowMore, [{
250
+ _inherits(ShowMore, _React$Component);
251
+ return _createClass(ShowMore, [{
274
252
  key: "componentWillMount",
275
253
  value: function componentWillMount() {
276
254
  if (typeof window !== 'undefined') {
@@ -308,22 +286,22 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
308
286
  var isListHidden = isHidden;
309
287
  var listStyles = classNames(styles['tabs__header__tabs__showmore-menu'], !isListHidden && styles['tabs__header__tabs__showmore-menu--opened'], this.props.showMorePopoverClassName);
310
288
  var showMoreLabelStyles = classNames(styles['tabs__header__tabs__showmore__label'], hasChildSelected && styles['tabs__header__tabs__showmore__label--selected'], !isListHidden && styles['tabs__header__tabs__showmore__label--selected']);
311
- return React.createElement(Popover, _extends({}, this.getShowMorePopoverProps(), {
289
+ return /*#__PURE__*/React.createElement(Popover, _extends({}, this.getShowMorePopoverProps(), {
312
290
  className: styles['tabs__header'],
313
291
  getPopoverPosition: "bottomRight",
314
292
  preferPlace: "below",
315
293
  isOpen: !isListHidden,
316
294
  onOuterAction: this.close,
317
- body: React.createElement("div", {
295
+ body: /*#__PURE__*/React.createElement("div", {
318
296
  className: listStyles,
319
297
  "aria-hidden": isListHidden,
320
298
  role: "tablist"
321
299
  }, children)
322
- }), React.createElement("div", {
300
+ }), /*#__PURE__*/React.createElement("div", {
323
301
  className: styles.tabs__header__tabs__showmore__wrapper,
324
302
  role: "tab",
325
303
  "aria-label": "More tabs"
326
- }, React.createElement(Button, {
304
+ }, /*#__PURE__*/React.createElement(Button, {
327
305
  ref: onShowMoreChanged,
328
306
  onFocus: this.onFocus,
329
307
  role: "navigation",
@@ -331,7 +309,7 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
331
309
  onClick: this.toggleVisibility,
332
310
  checked: !isListHidden,
333
311
  className: showMoreLabelStyles,
334
- icon: React.createElement(ChevronIcon, null),
312
+ icon: /*#__PURE__*/React.createElement(ChevronIcon, null),
335
313
  kind: "default",
336
314
  size: "L",
337
315
  "data-title": "More tabs",
@@ -340,7 +318,6 @@ var ShowMore = /*#__PURE__*/function (_React$Component) {
340
318
  })));
341
319
  }
342
320
  }]);
343
- return ShowMore;
344
321
  }(React.Component);
345
322
  _defineProperty(ShowMore, "defaultProps", {
346
323
  children: null,
@@ -356,7 +333,7 @@ var TabPanel = function TabPanel(props) {
356
333
  children = props.children,
357
334
  _props$hidden = props.hidden,
358
335
  hidden = _props$hidden === void 0 ? false : _props$hidden;
359
- return React.createElement("div", {
336
+ return /*#__PURE__*/React.createElement("div", {
360
337
  role: "tabpanel",
361
338
  id: id,
362
339
  "aria-labelledby": tabId,
@@ -373,29 +350,28 @@ function onTabClick(selected, onClick, originalKey) {
373
350
  };
374
351
  }
375
352
  var TabInner = /*#__PURE__*/function (_React$Component) {
376
- _inherits(TabInner, _React$Component);
377
353
  function TabInner() {
378
- var _getPrototypeOf2;
379
354
  var _this;
380
355
  _classCallCheck(this, TabInner);
381
356
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
382
357
  args[_key] = arguments[_key];
383
358
  }
384
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(TabInner)).call.apply(_getPrototypeOf2, [this].concat(args)));
385
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurHandler", function () {
359
+ _this = _callSuper(this, TabInner, [].concat(args));
360
+ _defineProperty(_this, "blurHandler", function () {
386
361
  window.requestAnimationFrame(function () {
387
362
  if (_this.tab) {
388
363
  _this.tab.blur();
389
364
  }
390
365
  });
391
366
  });
392
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderTab", function () {
367
+ _defineProperty(_this, "renderTab", function () {
393
368
  var children = _this.props.children;
394
369
  return children;
395
370
  });
396
371
  return _this;
397
372
  }
398
- _createClass(TabInner, [{
373
+ _inherits(TabInner, _React$Component);
374
+ return _createClass(TabInner, [{
399
375
  key: "shouldComponentUpdate",
400
376
  value: function shouldComponentUpdate(nextProps) {
401
377
  return this.props.children !== nextProps.children || this.props.selected !== nextProps.selected || this.props.classNames !== nextProps.classNames;
@@ -420,14 +396,14 @@ var TabInner = /*#__PURE__*/function (_React$Component) {
420
396
  getOnFocusCallback = _this$props.getOnFocusCallback,
421
397
  onBlur = _this$props.onBlur,
422
398
  originalKey = _this$props.originalKey,
423
- classNames$$1 = _this$props.classNames;
424
- return React.createElement("div", {
399
+ classNames = _this$props.classNames;
400
+ return /*#__PURE__*/React.createElement("div", {
425
401
  ref: function ref(tab) {
426
402
  return _this2.tab = tab;
427
403
  },
428
404
  role: "tab",
429
405
  id: id,
430
- className: classNames$$1,
406
+ className: classNames,
431
407
  "aria-selected": selected,
432
408
  "aria-expanded": selected,
433
409
  "aria-disabled": disabled,
@@ -438,10 +414,9 @@ var TabInner = /*#__PURE__*/function (_React$Component) {
438
414
  onBlur: onBlur,
439
415
  onMouseLeave: this.blurHandler,
440
416
  onMouseUp: this.blurHandler
441
- }, React.createElement("div", null, this.renderTab()));
417
+ }, /*#__PURE__*/React.createElement("div", null, this.renderTab()));
442
418
  }
443
419
  }]);
444
- return TabInner;
445
420
  }(React.Component);
446
421
  _defineProperty(TabInner, "defaultProps", {
447
422
  children: null,
@@ -465,8 +440,8 @@ var debounce = function debounce(callback, time) {
465
440
  };
466
441
  };
467
442
 
468
- var tabPrefix = 'tab-';
469
- var panelPrefix = 'panel-';
443
+ var tabPrefix$1 = 'tab-';
444
+ var panelPrefix$1 = 'panel-';
470
445
  var getTabs = function getTabs(allTabs) {
471
446
  return allTabs.reduce(function (result, item) {
472
447
  var _item$props = item.props,
@@ -514,13 +489,13 @@ var getTabProps = function getTabProps(_ref) {
514
489
  selected: selected,
515
490
  tabIndex: tabIndex,
516
491
  children: renderTabHeader(header),
517
- key: tabPrefix + id,
518
- id: tabPrefix + id,
492
+ key: tabPrefix$1 + id,
493
+ id: tabPrefix$1 + id,
519
494
  originalKey: id,
520
495
  onClick: function onClick() {},
521
496
  getOnFocusCallback: function getOnFocusCallback() {},
522
497
  onBlur: function onBlur() {},
523
- panelId: panelPrefix + id,
498
+ panelId: panelPrefix$1 + id,
524
499
  classNames: classNames(styles['tabs__header__tab-item'], selected && styles['tabs__header__tab-item--active'], disabled && styles['tabs__header__tab-item--disabled'])
525
500
  };
526
501
  };
@@ -529,9 +504,9 @@ var getPanelProps = function getPanelProps(_ref2) {
529
504
  children = _ref2.children;
530
505
  return {
531
506
  children: children,
532
- key: panelPrefix + id,
533
- id: panelPrefix + id,
534
- tabId: tabPrefix + id
507
+ key: panelPrefix$1 + id,
508
+ id: panelPrefix$1 + id,
509
+ tabId: tabPrefix$1 + id
535
510
  };
536
511
  };
537
512
  var TabsPrint = function TabsPrint(props) {
@@ -541,21 +516,21 @@ var TabsPrint = function TabsPrint(props) {
541
516
  var _getTabs = getTabs(allTabs),
542
517
  headers = _getTabs.headers,
543
518
  panels = _getTabs.panels;
544
- return React.createElement("div", {
519
+ return /*#__PURE__*/React.createElement("div", {
545
520
  className: classNames(styles['tabs'], props.className)
546
521
  }, Array.from(panels.values()).map(function (tab) {
547
- return React.createElement("div", {
522
+ return /*#__PURE__*/React.createElement("div", {
548
523
  key: tab.id,
549
524
  className: styles.tab_content_page
550
- }, React.createElement("div", {
525
+ }, /*#__PURE__*/React.createElement("div", {
551
526
  className: styles.tabs__header
552
- }, React.createElement("div", {
527
+ }, /*#__PURE__*/React.createElement("div", {
553
528
  className: styles.tabs__header__container
554
- }, React.createElement(TabInner, getTabProps(headers.find(function (header) {
529
+ }, /*#__PURE__*/React.createElement(TabInner, getTabProps(headers.find(function (header) {
555
530
  return tab.id === header.id;
556
- }))))), React.createElement("div", {
531
+ }))))), /*#__PURE__*/React.createElement("div", {
557
532
  className: styles.tabs__body
558
- }, React.createElement(TabPanel, getPanelProps(tab))));
533
+ }, /*#__PURE__*/React.createElement(TabPanel, getPanelProps(tab))));
559
534
  }));
560
535
  };
561
536
 
@@ -566,8 +541,8 @@ var generateId = function generateId(prefix) {
566
541
  return "".concat(prefix).concat(Math.random().toString(36).substring(7));
567
542
  };
568
543
 
569
- var tabPrefix$1 = 'tab-';
570
- var panelPrefix$1 = 'panel-';
544
+ var tabPrefix = 'tab-';
545
+ var panelPrefix = 'panel-';
571
546
  var tablistPrefix = 'tablist-';
572
547
 
573
548
  // By itself, Tab is just a dummy component that is used for a cleaner Tabs API
@@ -605,20 +580,18 @@ Tab.propTypes = {
605
580
  **/
606
581
 
607
582
  var Tabs = /*#__PURE__*/function (_React$Component) {
608
- _inherits(Tabs, _React$Component);
609
583
  function Tabs() {
610
- var _getPrototypeOf2;
611
584
  var _this;
612
585
  _classCallCheck(this, Tabs);
613
586
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
614
587
  args[_key] = arguments[_key];
615
588
  }
616
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Tabs)).call.apply(_getPrototypeOf2, [this].concat(args)));
617
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tablistId", generateId(tablistPrefix));
618
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tabRefs", new Map());
619
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "activeTabElement", null);
620
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "titleWrapper", null);
621
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
589
+ _this = _callSuper(this, Tabs, [].concat(args));
590
+ _defineProperty(_this, "tablistId", generateId(tablistPrefix));
591
+ _defineProperty(_this, "tabRefs", new Map());
592
+ _defineProperty(_this, "activeTabElement", null);
593
+ _defineProperty(_this, "titleWrapper", null);
594
+ _defineProperty(_this, "state", {
622
595
  activeTabId: _this.props.initialActiveTabId,
623
596
  cachedTabs: new Set(),
624
597
  sliderLeft: 0,
@@ -629,10 +602,10 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
629
602
  showMoreWidth: 40,
630
603
  focusedTabKey: null
631
604
  });
632
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isControlledMode", function () {
605
+ _defineProperty(_this, "isControlledMode", function () {
633
606
  return typeof _this.props.activeTabId !== 'undefined';
634
607
  });
635
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "changeTab", function (tabId) {
608
+ _defineProperty(_this, "changeTab", function (tabId) {
636
609
  var currentActiveTabId = _this.getActiveTabId(_this.getAllTabs());
637
610
  if (_this.props.cacheOpenedTabs) {
638
611
  _this.setState(function (state) {
@@ -652,7 +625,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
652
625
  _this.props.onActiveTabChanged(tabId);
653
626
  }
654
627
  });
655
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setTabsDimensions", function () {
628
+ _defineProperty(_this, "setTabsDimensions", function () {
656
629
  window.requestAnimationFrame(function () {
657
630
  if (!_this.tabsWrapper) {
658
631
  // it shouldn't happens evern. Just paranoic check
@@ -671,7 +644,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
671
644
  value = _ref2[1];
672
645
  if (value) {
673
646
  var width = value.tab.offsetWidth;
674
- tabDimensions.set(key.replace(tabPrefix$1, ''), {
647
+ tabDimensions.set(key.replace(tabPrefix, ''), {
675
648
  width: width,
676
649
  offset: tabsTotalWidth
677
650
  });
@@ -685,7 +658,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
685
658
  });
686
659
  });
687
660
  });
688
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "adjustSlider", function () {
661
+ _defineProperty(_this, "adjustSlider", function () {
689
662
  window.requestAnimationFrame(function () {
690
663
  if (_this.activeTabElement && _this.activeTabElement.tab) {
691
664
  _this.setState({
@@ -700,20 +673,20 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
700
673
  }
701
674
  });
702
675
  });
703
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTitleWidth", function () {
676
+ _defineProperty(_this, "getTitleWidth", function () {
704
677
  return _this.titleWrapper ? _this.titleWrapper.offsetWidth : 0;
705
678
  });
706
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onResizeThrottled", function (width) {
679
+ _defineProperty(_this, "onResizeThrottled", function (width) {
707
680
  _this.setState({
708
681
  blockWidth: width - _this.props.showMoreWidthBuffer - _this.getTitleWidth()
709
682
  });
710
683
  _this.adjustSlider();
711
684
  });
712
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleHeaderResize", debounce(function () {
685
+ _defineProperty(_this, "handleHeaderResize", debounce(function () {
713
686
  _this.setTabsDimensions();
714
687
  _this.adjustSlider();
715
688
  }, 50));
716
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderTabHeader", function (headerProp) {
689
+ _defineProperty(_this, "renderTabHeader", function (headerProp) {
717
690
  var isRenderProp = typeof headerProp === 'function';
718
691
  if (!isRenderProp) {
719
692
  return headerProp;
@@ -722,7 +695,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
722
695
  onResize: _this.handleHeaderResize
723
696
  });
724
697
  });
725
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTabs", function (allTabs, shrinkToParent) {
698
+ _defineProperty(_this, "getTabs", function (allTabs, shrinkToParent) {
726
699
  var _this$state = _this.state,
727
700
  blockWidth = _this$state.blockWidth,
728
701
  tabsTotalWidth = _this$state.tabsTotalWidth,
@@ -781,7 +754,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
781
754
  availableWidth: availableWidth
782
755
  });
783
756
  });
784
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getActiveTabId", function (tabs) {
757
+ _defineProperty(_this, "getActiveTabId", function (tabs) {
785
758
  var _tabs = _slicedToArray(tabs, 1),
786
759
  firstTab = _tabs[0];
787
760
  if (_this.isControlledMode()) {
@@ -802,27 +775,27 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
802
775
  }
803
776
  return activeTabId;
804
777
  });
805
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onFocusTab", function (focusedTabKey) {
778
+ _defineProperty(_this, "onFocusTab", function (focusedTabKey) {
806
779
  return function () {
807
780
  return _this.setState({
808
781
  focusedTabKey: focusedTabKey
809
782
  });
810
783
  };
811
784
  });
812
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onBlurTab", function () {
785
+ _defineProperty(_this, "onBlurTab", function () {
813
786
  return _this.setState({
814
787
  focusedTabKey: null
815
788
  });
816
789
  });
817
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
790
+ _defineProperty(_this, "onKeyDown", function (event) {
818
791
  if (event.key === 'Enter' && _this.state.focusedTabKey !== null) {
819
792
  _this.changeTab(_this.state.focusedTabKey);
820
793
  }
821
794
  });
822
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClick", function (tab) {
795
+ _defineProperty(_this, "onClick", function (tab) {
823
796
  return !tab.disabled && _this.changeTab(tab.id);
824
797
  });
825
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTabProps", function (_ref3) {
798
+ _defineProperty(_this, "getTabProps", function (_ref3) {
826
799
  var header = _ref3.header,
827
800
  id = _ref3.id,
828
801
  selected = _ref3.selected,
@@ -832,13 +805,13 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
832
805
  selected: selected,
833
806
  tabIndex: tabIndex,
834
807
  children: _this.renderTabHeader(header),
835
- key: tabPrefix$1 + id,
836
- id: tabPrefix$1 + id,
808
+ key: tabPrefix + id,
809
+ id: tabPrefix + id,
837
810
  ref: function ref(tab) {
838
811
  if (selected) {
839
812
  _this.activeTabElement = tab;
840
813
  }
841
- _this.tabRefs.set(tabPrefix$1 + id, tab);
814
+ _this.tabRefs.set(tabPrefix + id, tab);
842
815
  },
843
816
  originalKey: id,
844
817
  onClick: function onClick() {
@@ -849,21 +822,21 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
849
822
  },
850
823
  getOnFocusCallback: _this.onFocusTab,
851
824
  onBlur: _this.onBlurTab,
852
- panelId: panelPrefix$1 + id,
825
+ panelId: panelPrefix + id,
853
826
  classNames: classNames(styles['tabs__header__tab-item'], selected && styles['tabs__header__tab-item--active'], disabled && styles['tabs__header__tab-item--disabled'])
854
827
  };
855
828
  });
856
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPanelProps", function (_ref4) {
829
+ _defineProperty(_this, "getPanelProps", function (_ref4) {
857
830
  var id = _ref4.id,
858
831
  children = _ref4.children;
859
832
  return {
860
833
  children: children,
861
- key: panelPrefix$1 + id,
862
- id: panelPrefix$1 + id,
863
- tabId: tabPrefix$1 + id
834
+ key: panelPrefix + id,
835
+ id: panelPrefix + id,
836
+ tabId: tabPrefix + id
864
837
  };
865
838
  });
866
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "showMoreChanged", function (element) {
839
+ _defineProperty(_this, "showMoreChanged", function (element) {
867
840
  if (!element) {
868
841
  return;
869
842
  }
@@ -875,26 +848,27 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
875
848
  showMoreWidth: showMoreWidth
876
849
  });
877
850
  });
878
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getShowMoreProps", function (isSelectedTabHidden) {
851
+ _defineProperty(_this, "getShowMoreProps", function (isSelectedTabHidden) {
879
852
  return {
880
853
  onShowMoreChanged: _this.showMoreChanged,
881
854
  hasChildSelected: isSelectedTabHidden
882
855
  };
883
856
  });
884
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getSliderStyle", function (isSelectedTabHidden) {
857
+ _defineProperty(_this, "getSliderStyle", function (isSelectedTabHidden) {
885
858
  return {
886
859
  left: isSelectedTabHidden ? '100%' : _this.state.sliderLeft,
887
860
  width: isSelectedTabHidden ? '0' : _this.state.sliderWidth
888
861
  };
889
862
  });
890
- _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getAllTabs", function () {
863
+ _defineProperty(_this, "getAllTabs", function () {
891
864
  return React.Children.toArray(_this.props.children).filter(function (child) {
892
865
  return child.type === Tab;
893
866
  });
894
867
  });
895
868
  return _this;
896
869
  }
897
- _createClass(Tabs, [{
870
+ _inherits(Tabs, _React$Component);
871
+ return _createClass(Tabs, [{
898
872
  key: "componentDidMount",
899
873
  value: function componentDidMount() {
900
874
  var _this2 = this;
@@ -939,7 +913,7 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
939
913
  value: function render() {
940
914
  var _this3 = this;
941
915
  if (this.props.printMode) {
942
- return React.createElement(TabsPrint, {
916
+ return /*#__PURE__*/React.createElement(TabsPrint, {
943
917
  className: this.props.className,
944
918
  children: this.props.children
945
919
  });
@@ -952,11 +926,11 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
952
926
  panels = _this$getTabs.panels,
953
927
  isSelectedTabHidden = _this$getTabs.isSelectedTabHidden;
954
928
  var activeTab = panels.get(activeTabId) || allTabs[0];
955
- return React.createElement("div", {
929
+ return /*#__PURE__*/React.createElement("div", {
956
930
  className: classNames(styles['tabs'], this.props.className)
957
- }, React.createElement("div", {
931
+ }, /*#__PURE__*/React.createElement("div", {
958
932
  className: classNames(styles.tabs__header, this.props.hideHeader && styles['tabs__header--hidden'])
959
- }, React.createElement("div", {
933
+ }, /*#__PURE__*/React.createElement("div", {
960
934
  ref: function ref(tabs) {
961
935
  return _this3.tabsWrapper = tabs;
962
936
  },
@@ -964,39 +938,39 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
964
938
  className: styles.tabs__header__container,
965
939
  role: "tablist",
966
940
  "aria-labelledby": this.tablistId
967
- }, this.props.title ? React.createElement("div", {
941
+ }, this.props.title ? /*#__PURE__*/React.createElement("div", {
968
942
  className: styles.tabs__header__title,
969
943
  ref: function ref(titleWrapper) {
970
944
  return _this3.titleWrapper = titleWrapper;
971
945
  },
972
946
  id: this.tablistId
973
947
  }, this.props.title) : null, tabsVisible.map(function (tab) {
974
- return React.createElement(TabInner, _this3.getTabProps(tab));
975
- }), React.createElement(ShowMore, _extends({}, this.getShowMoreProps(isSelectedTabHidden), {
948
+ return /*#__PURE__*/React.createElement(TabInner, _this3.getTabProps(tab));
949
+ }), /*#__PURE__*/React.createElement(ShowMore, _extends({}, this.getShowMoreProps(isSelectedTabHidden), {
976
950
  showMorePopoverClassName: this.props.showMorePopoverClassName,
977
951
  showMorePopoverProps: this.props.showMorePopoverProps
978
952
  }), tabsHidden.map(function (tab, index) {
979
- return React.createElement(TabInner, _extends({
953
+ return /*#__PURE__*/React.createElement(TabInner, _extends({
980
954
  firstElement: index === 0
981
955
  }, _this3.getTabProps(tab)));
982
- }))), React.createElement("div", {
956
+ }))), /*#__PURE__*/React.createElement("div", {
983
957
  className: styles.tabs__header__line
984
- }, React.createElement("div", {
958
+ }, /*#__PURE__*/React.createElement("div", {
985
959
  className: styles.tabs__header__line__slider,
986
960
  style: this.getSliderStyle(isSelectedTabHidden)
987
- }))), React.createElement("div", {
961
+ }))), /*#__PURE__*/React.createElement("div", {
988
962
  className: styles.tabs__body
989
963
  }, this.props.cacheOpenedTabs ? allTabs.map(function (_ref5) {
990
964
  var id = _ref5.props.id;
991
965
  var shouldBeRendered = panels.has(id) && (id === activeTabId || _this3.state.cachedTabs.has(id));
992
966
  var isHidden = id !== activeTabId;
993
967
  if (shouldBeRendered) {
994
- return React.createElement(TabPanel, _extends({}, _this3.getPanelProps(panels.get(id)), {
968
+ return /*#__PURE__*/React.createElement(TabPanel, _extends({}, _this3.getPanelProps(panels.get(id)), {
995
969
  hidden: isHidden
996
970
  }));
997
971
  }
998
972
  return null;
999
- }) : activeTab && React.createElement(TabPanel, this.getPanelProps(activeTab))), React.createElement(ResizeDetector, {
973
+ }) : activeTab && /*#__PURE__*/React.createElement(TabPanel, this.getPanelProps(activeTab))), /*#__PURE__*/React.createElement(ResizeDetector, {
1000
974
  handleWidth: true,
1001
975
  handleHeight: true,
1002
976
  refreshMode: "throttle",
@@ -1022,7 +996,6 @@ var Tabs = /*#__PURE__*/function (_React$Component) {
1022
996
  return null;
1023
997
  }
1024
998
  }]);
1025
- return Tabs;
1026
999
  }(React.Component);
1027
1000
  _defineProperty(Tabs, "defaultProps", {
1028
1001
  resizeThrottle: 100,
@@ -1035,8 +1008,4 @@ _defineProperty(Tabs, "defaultProps", {
1035
1008
  });
1036
1009
  Tabs.Tab = Tab;
1037
1010
 
1038
- /*********************************************************************
1039
- * © Copyright IBM Corp. 2024
1040
- *********************************************************************/
1041
-
1042
1011
  export { Tabs };