@splunk/react-ui 4.21.0 → 4.22.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.
Files changed (92) hide show
  1. package/Accordion.js +425 -325
  2. package/Anchor.js +147 -117
  3. package/Animation.js +142 -94
  4. package/AnimationToggle.js +197 -193
  5. package/Box.js +145 -118
  6. package/Breadcrumbs.js +288 -206
  7. package/Button.js +488 -465
  8. package/ButtonGroup.js +160 -128
  9. package/ButtonSimple.js +543 -462
  10. package/CHANGELOG.md +24 -3
  11. package/Calendar.js +1111 -1001
  12. package/Card.js +771 -598
  13. package/CardLayout.js +205 -147
  14. package/Chip.js +509 -488
  15. package/Clickable.js +414 -352
  16. package/CloseButton.js +165 -142
  17. package/Code.js +1807 -2084
  18. package/CollapsiblePanel.js +586 -519
  19. package/Color.js +1068 -1068
  20. package/ColumnLayout.js +402 -363
  21. package/ComboBox.js +903 -794
  22. package/Concertina.js +997 -802
  23. package/ControlGroup.js +687 -594
  24. package/Date.js +567 -547
  25. package/DefinitionList.js +308 -234
  26. package/Divider.js +149 -118
  27. package/Dropdown.js +459 -416
  28. package/DualListbox.js +1479 -1541
  29. package/EventListener.js +94 -97
  30. package/File.js +1051 -969
  31. package/FormRows.js +883 -696
  32. package/Heading.js +216 -193
  33. package/Image.js +446 -402
  34. package/JSONTree.js +690 -551
  35. package/Layer.js +437 -410
  36. package/Link.js +336 -255
  37. package/List.js +213 -161
  38. package/Markdown.js +509 -487
  39. package/Menu.js +1104 -1056
  40. package/Message.js +475 -441
  41. package/MessageBar.js +387 -373
  42. package/Modal.js +810 -634
  43. package/ModalLayer.js +326 -243
  44. package/Monogram.js +308 -276
  45. package/Multiselect.js +3564 -3364
  46. package/Number.js +729 -687
  47. package/Paginator.js +510 -449
  48. package/Paragraph.js +145 -112
  49. package/Popover.js +1459 -1432
  50. package/Progress.js +301 -246
  51. package/RadioBar.js +634 -527
  52. package/RadioList.js +483 -444
  53. package/Resize.js +530 -489
  54. package/ResultsMenu.js +479 -455
  55. package/ScreenReaderContent.js +142 -111
  56. package/Scroll.js +595 -456
  57. package/ScrollContainerContext.js +197 -206
  58. package/Search.js +756 -650
  59. package/Select.js +2446 -2345
  60. package/SidePanel.js +390 -284
  61. package/Slider.js +680 -676
  62. package/SlidingPanels.js +639 -503
  63. package/SplitButton.js +464 -367
  64. package/StaticContent.js +161 -133
  65. package/StepBar.js +386 -358
  66. package/Switch.js +710 -640
  67. package/TabBar.js +741 -680
  68. package/TabLayout.js +406 -322
  69. package/Table.js +4974 -4616
  70. package/Text.js +1170 -1138
  71. package/TextArea.js +1102 -1090
  72. package/Tooltip.js +624 -581
  73. package/TransitionOpen.js +489 -422
  74. package/Typography.js +176 -153
  75. package/WaitSpinner.js +230 -206
  76. package/package.json +7 -7
  77. package/types/src/Color/Color.d.ts +0 -1
  78. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  79. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  80. package/types/src/RadioBar/RadioBar.d.ts +1 -0
  81. package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
  82. package/types/src/Select/docs/examples/Icons.d.ts +1 -9
  83. package/types/src/Slider/Slider.d.ts +1 -0
  84. package/types/src/TabBar/Tab.d.ts +10 -1
  85. package/types/src/TabBar/TabBar.d.ts +4 -2
  86. package/types/src/Table/Head.d.ts +7 -3
  87. package/types/src/Table/Table.d.ts +3 -2
  88. package/types/src/Table/TableContext.d.ts +2 -0
  89. package/useForceUpdate.js +112 -82
  90. package/useKeyPress.js +74 -71
  91. package/usePrevious.js +65 -65
  92. package/useRovingFocus.js +122 -138
package/TabBar.js CHANGED
@@ -1,698 +1,759 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/compat get default export */
8
- /******/ (() => {
9
- /******/ // getDefaultExport function for compatibility with non-harmony modules
10
- /******/ __webpack_require__.n = (module) => {
11
- /******/ var getter = module && module.__esModule ?
12
- /******/ () => (module['default']) :
13
- /******/ () => (module);
14
- /******/ __webpack_require__.d(getter, { a: getter });
15
- /******/ return getter;
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/define property getters */
20
- /******/ (() => {
21
- /******/ // define getter functions for harmony exports
22
- /******/ __webpack_require__.d = (exports, definition) => {
23
- /******/ for(var key in definition) {
24
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
- /******/ }
27
- /******/ }
28
- /******/ };
29
- /******/ })();
30
- /******/
31
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
- /******/ (() => {
33
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
- /******/ })();
35
- /******/
36
- /******/ /* webpack/runtime/make namespace object */
37
- /******/ (() => {
38
- /******/ // define __esModule on exports
39
- /******/ __webpack_require__.r = (exports) => {
40
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
- /******/ }
43
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
- /******/ };
45
- /******/ })();
46
- /******/
47
- /************************************************************************/
48
- var __webpack_exports__ = {};
49
- // ESM COMPAT FLAG
50
- __webpack_require__.r(__webpack_exports__);
51
-
52
- // EXPORTS
53
- __webpack_require__.d(__webpack_exports__, {
54
- Tab: () => (/* reexport */ TabBar_Tab),
55
- "default": () => (/* reexport */ TabBar_TabBar)
56
- });
57
-
58
- ;// CONCATENATED MODULE: external "react"
59
- const external_react_namespaceObject = require("react");
60
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
61
- ;// CONCATENATED MODULE: external "prop-types"
62
- const external_prop_types_namespaceObject = require("prop-types");
63
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
64
- ;// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
65
- const keyboard_namespaceObject = require("@splunk/ui-utils/keyboard");
66
- ;// CONCATENATED MODULE: external "styled-components"
67
- const external_styled_components_namespaceObject = require("styled-components");
68
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
69
- ;// CONCATENATED MODULE: external "@splunk/themes"
70
- const themes_namespaceObject = require("@splunk/themes");
71
- ;// CONCATENATED MODULE: ./src/TabBar/TabBarStyles.ts
72
-
73
-
74
- var Styled = external_styled_components_default().div.withConfig({
75
- displayName: "TabBarStyles__Styled",
76
- componentId: "sc-1t85fen-0"
77
- })(["", " position:relative;&::before{content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;border:0 solid ", ";}", ";"], themes_namespaceObject.mixins.reset('flex'), (0,themes_namespaceObject.pick)({
78
- enterprise: themes_namespaceObject.variables.borderLightColor,
79
- prisma: themes_namespaceObject.variables.neutral200
80
- }), (0,themes_namespaceObject.pickVariant)('$layout', {
81
- horizontal: {
82
- prisma: (0,themes_namespaceObject.pickVariant)('$withUnderline', {
83
- /* context appearance is only supported for Prisma */
84
- "true": (0,external_styled_components_namespaceObject.css)(["&::before{border-bottom-width:1px;}"])
85
- }),
86
- enterprise: (0,external_styled_components_namespaceObject.css)(["&::before{border-bottom-width:1px;}"])
87
- },
88
- vertical: {
89
- enterprise: (0,external_styled_components_namespaceObject.css)(["display:inline-block;&::before{border-right-width:1px;}"]),
90
- prisma: (0,external_styled_components_namespaceObject.css)(["display:inline-block;&::before{border-right-width:1px;}"])
91
- }
92
- }));
93
-
94
- ;// CONCATENATED MODULE: external "@splunk/react-ui/Popover"
95
- const Popover_namespaceObject = require("@splunk/react-ui/Popover");
96
- var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_namespaceObject);
97
- ;// CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
98
- const ScreenReaderContent_namespaceObject = require("@splunk/react-ui/ScreenReaderContent");
99
- var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_namespaceObject);
100
- ;// CONCATENATED MODULE: external "@splunk/ui-utils/id"
101
- const id_namespaceObject = require("@splunk/ui-utils/id");
102
- ;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
103
- const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
104
- var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
105
- ;// CONCATENATED MODULE: ./src/TabBar/TabStyles.ts
106
-
107
-
108
-
109
- var StyledClickable = external_styled_components_default()((Clickable_default())).withConfig({
110
- displayName: "TabStyles__StyledClickable",
111
- componentId: "sc-1ry8mzj-0"
112
- })(["flex:0 1 auto;display:block;position:relative;line-height:", ";text-align:center;white-space:nowrap;color:", ";", ";&[aria-selected='true']{cursor:default;", "}&[aria-selected='false']{box-shadow:none;font-weight:", ";", " &:hover:not([disabled]){", "}}&:focus{box-shadow:", ";", "}"], (0,themes_namespaceObject.pick)({
113
- enterprise: '24px',
114
- prisma: '20px'
115
- }), themes_namespaceObject.variables.contentColorDefault, (0,themes_namespaceObject.pickVariant)('$layout', {
116
- horizontal: (0,external_styled_components_namespaceObject.css)(["padding:", ";margin-bottom:1px;"], (0,themes_namespaceObject.pick)({
117
- enterprise: '3px 20px',
118
- prisma: {
119
- comfortable: '0 20px',
120
- compact: '0 16px'
121
- }
122
- })),
123
- vertical: {
124
- enterprise: (0,external_styled_components_namespaceObject.css)(["width:100%;text-align:left;right:1px;padding:10px 20px;", ""], function (_ref) {
125
- var $icon = _ref.$icon;
126
- return $icon && (0,external_styled_components_namespaceObject.css)(["text-align:center;"]);
127
- }),
128
- prisma: (0,external_styled_components_namespaceObject.css)(["width:100%;right:1px;padding:", ";"], (0,themes_namespaceObject.pick)({
129
- comfortable: '0 20px',
130
- compact: '0 16px'
131
- }))
132
- }
133
- }), (0,themes_namespaceObject.pick)({
134
- enterprise: (0,external_styled_components_namespaceObject.css)(["font-weight:", ";"], themes_namespaceObject.variables.fontWeightBold),
135
- prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";font-weight:", ";"], themes_namespaceObject.variables.contentColorActive, themes_namespaceObject.variables.fontWeightBold)
136
- }), (0,themes_namespaceObject.pick)({
137
- enterprise: 'normal',
138
- prisma: themes_namespaceObject.variables.fontWeightSemiBold
139
- }), (0,themes_namespaceObject.pick)({
140
- prisma: (0,external_styled_components_namespaceObject.css)(["&::after{display:block;content:attr(title);font-weight:", ";height:0;color:transparent;overflow:hidden;visibility:hidden;}"], themes_namespaceObject.variables.fontWeightBold)
141
- }), (0,themes_namespaceObject.pick)({
142
- prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorActive)
143
- }), themes_namespaceObject.variables.focusShadowInset, (0,themes_namespaceObject.pick)({
144
- prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorActive)
145
- }));
146
- var StyledUnderline = external_styled_components_default().div.withConfig({
147
- displayName: "TabStyles__StyledUnderline",
148
- componentId: "sc-1ry8mzj-1"
149
- })(["position:absolute;", " ", ";[aria-selected='true'] > &&{background-color:", ";", ";}", ":hover:not([disabled]) > &&{", ";}"], (0,themes_namespaceObject.pick)({
150
- enterprise: (0,external_styled_components_namespaceObject.css)(["background:", ";"], themes_namespaceObject.variables.borderLightColor)
151
- }), (0,themes_namespaceObject.pickVariant)('$layout', {
152
- horizontal: (0,external_styled_components_namespaceObject.css)(["height:0;box-sizing:border-box;width:", ";", " transition:height 0.2s;"], (0,themes_namespaceObject.pick)({
153
- enterprise: (0,external_styled_components_namespaceObject.css)(["calc(100% - 20px * 2)"]),
154
- prisma: {
155
- comfortable: (0,external_styled_components_namespaceObject.css)(["calc(100% - 20px * 2)"]),
156
- compact: (0,external_styled_components_namespaceObject.css)(["calc(100% - 16px * 2)"])
157
- }
158
- }), (0,themes_namespaceObject.pick)({
159
- enterprise: (0,external_styled_components_namespaceObject.css)(["bottom:-1px;"])
160
- })),
161
- vertical: {
162
- enterprise: (0,external_styled_components_namespaceObject.css)(["width:0;height:calc(100% - 10px * 2);top:10px;right:-1px;transition:width 0.2s;"]),
163
- prisma: (0,external_styled_components_namespaceObject.css)(["width:1px;height:calc(100% - 10px * 2);top:10px;right:-1px;transition:width 0.2s;box-sizing:border-box;"])
164
- }
165
- }), (0,themes_namespaceObject.pick)({
166
- enterprise: themes_namespaceObject.variables.accentColor,
167
- prisma: themes_namespaceObject.variables.contentColorActive
168
- }), (0,themes_namespaceObject.pickVariant)('$layout', {
169
- horizontal: {
170
- enterprise: (0,external_styled_components_namespaceObject.css)(["height:3px;"]),
171
- prisma: (0,themes_namespaceObject.pickVariant)('$withUnderline', {
172
- // context appearance is only supported for Prisma
173
- "true": (0,external_styled_components_namespaceObject.css)(["height:1px;"])
174
- })
175
- },
176
- vertical: {
177
- enterprise: (0,external_styled_components_namespaceObject.css)(["width:3px;"]),
178
- prisma: (0,external_styled_components_namespaceObject.css)(["width:1px;"])
179
- }
180
- }), StyledClickable, (0,themes_namespaceObject.pickVariant)('$layout', {
181
- horizontal: {
182
- enterprise: (0,external_styled_components_namespaceObject.css)(["height:3px;"])
183
- },
184
- vertical: {
185
- enterprise: (0,external_styled_components_namespaceObject.css)(["width:3px;"])
186
- }
187
- }));
188
- var StyledIcon = external_styled_components_default().span.withConfig({
189
- displayName: "TabStyles__StyledIcon",
190
- componentId: "sc-1ry8mzj-2"
191
- })(["", ";"], (0,themes_namespaceObject.pickVariant)('$iconSize', {
192
- inline: (0,external_styled_components_namespaceObject.css)(["", " text-align:left;padding-right:", ";> svg{transform:translateY(-1px);}"], (0,themes_namespaceObject.pick)({
193
- prisma: (0,external_styled_components_namespaceObject.css)(["display:inline-block;width:16px;height:16px;"])
194
- }), (0,themes_namespaceObject.pick)({
195
- enterprise: '0.4em',
196
- prisma: '8px'
197
- })),
198
- small: (0,external_styled_components_namespaceObject.css)(["font-size:24px;height:24px;text-align:center;display:block;padding:4px 0;"]),
199
- large: (0,external_styled_components_namespaceObject.css)(["font-size:48px;height:48px;text-align:center;display:block;padding:8px 0 0;"])
200
- }));
201
- var StyledLabel = external_styled_components_default().div.withConfig({
202
- displayName: "TabStyles__StyledLabel",
203
- componentId: "sc-1ry8mzj-3"
204
- })(["overflow:hidden;text-overflow:ellipsis;min-width:10px;margin:", ";"], (0,themes_namespaceObject.pick)({
205
- enterprise: '0',
206
- prisma: {
207
- comfortable: '16px 0',
208
- compact: '10px 0'
209
- }
210
- }));
211
- var StyledCount = external_styled_components_default().div.withConfig({
212
- displayName: "TabStyles__StyledCount",
213
- componentId: "sc-1ry8mzj-4"
214
- })(["", " display:inline-block;border-radius:18px;color:", ";font-size:", ";line-height:10px;padding:4px 6px;margin-left:", ";", " &[disabled]{background:", ";color:", ";}"], themes_namespaceObject.mixins.reset('inlne-block'), themes_namespaceObject.variables.contentColorDefault, (0,themes_namespaceObject.pick)({
215
- enterprise: 'inherit',
216
- prisma: '10px'
217
- }), (0,themes_namespaceObject.pick)({
218
- enterprise: '0',
219
- prisma: '8px'
220
- }), (0,themes_namespaceObject.pick)({
221
- enterprise: (0,external_styled_components_namespaceObject.css)(["&::before{content:'(';}&::after{content:')';}"]),
222
- prisma: (0,external_styled_components_namespaceObject.css)(["background:", ";"], themes_namespaceObject.variables.neutral100)
223
- }), themes_namespaceObject.variables.interactiveColorBackgroundDisabled, themes_namespaceObject.variables.contentColorDisabled);
224
- var StyledTooltipContent = external_styled_components_default().div.withConfig({
225
- displayName: "TabStyles__StyledTooltipContent",
226
- componentId: "sc-1ry8mzj-5"
227
- })(["padding:8px;font-size:", ";"], themes_namespaceObject.variables.fontSizeSmall);
228
-
229
- ;// CONCATENATED MODULE: ./src/TabBar/TabBarContext.tsx
230
-
231
- var TabBarContext = /*#__PURE__*/(0,external_react_namespaceObject.createContext)({});
232
- TabBarContext.displayName = 'TabBar';
233
- /* harmony default export */ const TabBar_TabBarContext = (TabBarContext);
234
- ;// CONCATENATED MODULE: ./src/utils/getCountValue.ts
235
- // A utility for max count
236
- var maxCountValue = function maxCountValue(count, maxCount) {
237
- if (count > maxCount) {
238
- return "".concat(maxCount, "+");
239
- }
240
-
241
- return count;
242
- };
243
- ;// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
244
- /**
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = t => {
12
+ /******/ var r = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
+ /******/;
16
+ e.d(r, {
17
+ a: r
18
+ });
19
+ /******/ return r;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (t, r) => {
27
+ /******/ for (var n in r) {
28
+ /******/ if (e.o(r, n) && !e.o(t, n)) {
29
+ /******/ Object.defineProperty(t, n, {
30
+ enumerable: true,
31
+ get: r[n]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var t = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(t);
62
+ // EXPORTS
63
+ e.d(t, {
64
+ Tab: () => /* reexport */ Y,
65
+ default: () => /* reexport */ re
66
+ });
67
+ // CONCATENATED MODULE: external "react"
68
+ const r = require("react");
69
+ var n = e.n(r);
70
+ // CONCATENATED MODULE: external "prop-types"
71
+ const i = require("prop-types");
72
+ var o = e.n(i);
73
+ // CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
74
+ const a = require("@splunk/ui-utils/keyboard");
75
+ // CONCATENATED MODULE: external "styled-components"
76
+ const l = require("styled-components");
77
+ var c = e.n(l);
78
+ // CONCATENATED MODULE: external "@splunk/themes"
79
+ const s = require("@splunk/themes");
80
+ // CONCATENATED MODULE: ./src/TabBar/TabBarStyles.ts
81
+ var p = c().div.withConfig({
82
+ displayName: "TabBarStyles__Styled",
83
+ componentId: "sc-1t85fen-0"
84
+ })([ "", " position:relative;&::before{content:'';display:block;position:absolute;left:0;top:0;right:0;bottom:0;border:0 solid ", ";}", ";" ], s.mixins.reset("flex"), (0,
85
+ s.pick)({
86
+ enterprise: s.variables.borderLightColor,
87
+ prisma: s.variables.neutral200
88
+ }), (0, s.pickVariant)("$layout", {
89
+ horizontal: {
90
+ prisma: (0, s.pickVariant)("$withUnderline", {
91
+ /* context appearance is only supported for Prisma */
92
+ true: (0, l.css)([ "&::before{border-bottom-width:1px;}" ])
93
+ }),
94
+ enterprise: (0, l.css)([ "&::before{border-bottom-width:1px;}" ])
95
+ },
96
+ vertical: (0, l.css)([ "display:inline-block;&::before{border-right-width:1px;}" ])
97
+ }));
98
+ // CONCATENATED MODULE: external "@splunk/react-ui/Popover"
99
+ const u = require("@splunk/react-ui/Popover");
100
+ var d = e.n(u);
101
+ // CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
102
+ const f = require("@splunk/react-ui/ScreenReaderContent");
103
+ var v = e.n(f);
104
+ // CONCATENATED MODULE: external "@splunk/ui-utils/id"
105
+ const b = require("@splunk/ui-utils/id");
106
+ // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
107
+ const h = require("@splunk/react-ui/Clickable");
108
+ var y = e.n(h);
109
+ // CONCATENATED MODULE: ./src/TabBar/TabStyles.ts
110
+ var m = c()(y()).withConfig({
111
+ displayName: "TabStyles__StyledClickable",
112
+ componentId: "sc-1ry8mzj-0"
113
+ })([ "flex:0 1 auto;display:block;position:relative;line-height:", ";text-align:center;white-space:nowrap;color:", ";&::after{display:block;content:attr(title);font-weight:", ";height:0;color:transparent;overflow:hidden;visibility:hidden;}", ";&[aria-selected='true']{cursor:default;", "}&[aria-selected='false']{box-shadow:none;font-weight:", ";&:hover:not([disabled]){", "}}&:focus{box-shadow:", ";", "}" ], (0,
114
+ s.pick)({
115
+ enterprise: "24px",
116
+ prisma: "20px"
117
+ }), s.variables.contentColorDefault, s.variables.fontWeightBold, (0, s.pickVariant)("$layout", {
118
+ horizontal: (0, l.css)([ "padding:", ";margin-bottom:1px;" ], (0, s.pick)({
119
+ enterprise: "3px 20px",
120
+ prisma: {
121
+ comfortable: "0 20px",
122
+ compact: "0 16px"
123
+ }
124
+ })),
125
+ vertical: {
126
+ enterprise: (0, l.css)([ "width:100%;text-align:left;right:1px;padding:10px 20px;", "" ], (function(e) {
127
+ var t = e.$icon;
128
+ return t && (0, l.css)([ "text-align:center;" ]);
129
+ })),
130
+ prisma: (0, l.css)([ "width:100%;right:1px;padding:", ";" ], (0, s.pick)({
131
+ comfortable: "0 20px",
132
+ compact: "0 16px"
133
+ }))
134
+ }
135
+ }), (0, s.pick)({
136
+ enterprise: (0, l.css)([ "font-weight:", ";" ], s.variables.fontWeightBold),
137
+ prisma: (0, l.css)([ "color:", ";font-weight:", ";" ], s.variables.contentColorActive, s.variables.fontWeightBold)
138
+ }), (0, s.pick)({
139
+ enterprise: "normal",
140
+ prisma: s.variables.fontWeightSemiBold
141
+ }), (0, s.pick)({
142
+ prisma: (0, l.css)([ "color:", ";" ], s.variables.contentColorActive)
143
+ }), s.variables.focusShadowInset, (0, s.pick)({
144
+ prisma: (0, l.css)([ "color:", ";" ], s.variables.contentColorActive)
145
+ }));
146
+ var g = c().div.withConfig({
147
+ displayName: "TabStyles__StyledUnderline",
148
+ componentId: "sc-1ry8mzj-1"
149
+ })([ "position:absolute;", " ", ";[aria-selected='true'] > &&{background-color:", ";", ";}", ":hover:not([disabled]) > &&{", ";}" ], (0,
150
+ s.pick)({
151
+ enterprise: (0, l.css)([ "background:", ";" ], s.variables.borderLightColor)
152
+ }), (0, s.pickVariant)("$layout", {
153
+ horizontal: (0, l.css)([ "height:0;box-sizing:border-box;width:", ";", " transition:height 0.2s;" ], (0,
154
+ s.pick)({
155
+ enterprise: (0, l.css)([ "calc(100% - 20px * 2)" ]),
156
+ prisma: {
157
+ comfortable: (0, l.css)([ "calc(100% - 20px * 2)" ]),
158
+ compact: (0, l.css)([ "calc(100% - 16px * 2)" ])
159
+ }
160
+ }), (0, s.pick)({
161
+ enterprise: (0, l.css)([ "bottom:-1px;" ])
162
+ })),
163
+ vertical: {
164
+ enterprise: (0, l.css)([ "width:0;height:calc(100% - 10px * 2);top:10px;right:-1px;transition:width 0.2s;" ]),
165
+ prisma: (0, l.css)([ "width:1px;height:calc(100% - 10px * 2);top:10px;right:-1px;transition:width 0.2s;box-sizing:border-box;" ])
166
+ }
167
+ }), (0, s.pick)({
168
+ enterprise: s.variables.accentColor,
169
+ prisma: s.variables.contentColorActive
170
+ }), (0, s.pickVariant)("$layout", {
171
+ horizontal: {
172
+ enterprise: (0, l.css)([ "height:3px;" ]),
173
+ prisma: (0, s.pickVariant)("$withUnderline", {
174
+ // context appearance is only supported for Prisma
175
+ true: (0, l.css)([ "height:1px;" ])
176
+ })
177
+ },
178
+ vertical: {
179
+ enterprise: (0, l.css)([ "width:3px;" ]),
180
+ prisma: (0, l.css)([ "width:1px;" ])
181
+ }
182
+ }), m, (0, s.pickVariant)("$layout", {
183
+ horizontal: {
184
+ enterprise: (0, l.css)([ "height:3px;" ])
185
+ },
186
+ vertical: {
187
+ enterprise: (0, l.css)([ "width:3px;" ])
188
+ }
189
+ }));
190
+ var x = c().span.withConfig({
191
+ displayName: "TabStyles__StyledIcon",
192
+ componentId: "sc-1ry8mzj-2"
193
+ })([ "", ";" ], (0, s.pickVariant)("$iconSize", {
194
+ inline: (0, l.css)([ "", " text-align:left;padding-right:", ";> svg{transform:translateY(-1px);}" ], (0,
195
+ s.pick)({
196
+ prisma: (0, l.css)([ "display:inline-block;width:16px;height:16px;" ])
197
+ }), (0, s.pick)({
198
+ enterprise: "0.4em",
199
+ prisma: "8px"
200
+ })),
201
+ small: (0, l.css)([ "font-size:24px;height:24px;text-align:center;display:block;padding:4px 0;" ]),
202
+ large: (0, l.css)([ "font-size:48px;height:48px;text-align:center;display:block;padding:8px 0 0;" ])
203
+ }));
204
+ var k = c().div.withConfig({
205
+ displayName: "TabStyles__StyledLabel",
206
+ componentId: "sc-1ry8mzj-3"
207
+ })([ "overflow:hidden;text-overflow:ellipsis;min-width:10px;margin:", ";" ], (0,
208
+ s.pick)({
209
+ enterprise: "0",
210
+ prisma: {
211
+ comfortable: "16px 0",
212
+ compact: "10px 0"
213
+ }
214
+ }));
215
+ var w = c().span.withConfig({
216
+ displayName: "TabStyles__StyledCount",
217
+ componentId: "sc-1ry8mzj-4"
218
+ })([ "display:inline-block;border-radius:18px;color:", ";font-size:", ";line-height:10px;padding:", ";margin-inline-start:", ";", " &[disabled]{background:", ";color:", ";}" ], s.variables.contentColorDefault, (0,
219
+ s.pick)({
220
+ enterprise: "inherit",
221
+ prisma: "10px"
222
+ }), (0, s.pick)({
223
+ enterprise: "0.4em 0.3em",
224
+ prisma: "0.4em 0.6em"
225
+ }), (0, s.pick)({
226
+ enterprise: "0",
227
+ prisma: "0.3em"
228
+ }), (0, s.pick)({
229
+ enterprise: (0, l.css)([ "&::before{content:'(';}&::after{content:')';}" ]),
230
+ prisma: (0, l.css)([ "background:", ";" ], s.variables.neutral100)
231
+ }), s.variables.interactiveColorBackgroundDisabled, s.variables.contentColorDisabled);
232
+ var O = c().div.withConfig({
233
+ displayName: "TabStyles__StyledTooltipContent",
234
+ componentId: "sc-1ry8mzj-5"
235
+ })([ "padding:8px;font-size:", ";" ], s.variables.fontSizeSmall);
236
+ // CONCATENATED MODULE: ./src/TabBar/TabBarContext.tsx
237
+ var S = (0, r.createContext)({});
238
+ S.displayName = "TabBar";
239
+ /* harmony default export */ const C = S;
240
+ // CONCATENATED MODULE: ./src/utils/getCountValue.ts
241
+ // A utility for max count
242
+ var T = function e(t, r) {
243
+ if (t > r) {
244
+ return "".concat(r, "+");
245
+ }
246
+ return t;
247
+ };
248
+ // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
249
+ /**
245
250
  * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
246
251
  *
247
252
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
248
253
  * @param current - The new value of the ref.
249
254
  */
250
- function updateReactRef(ref, current) {
251
- if (ref) {
252
- if (typeof ref === 'function') {
253
- ref(current);
254
- } else {
255
- // the public signature of this util uses React.Ref<T> to mirror the way React types refs.
256
- // the intention here is to signal "we will take care of setting 'current', not you".
257
- ref.current = current; // eslint-disable-line no-param-reassign
255
+ function I(e, t) {
256
+ if (e) {
257
+ if (typeof e === "function") {
258
+ e(t);
259
+ } else {
260
+ // the public signature of this util uses React.Ref<T> to mirror the way React types refs.
261
+ // the intention here is to signal "we will take care of setting 'current', not you".
262
+ e.current = t;
263
+ // eslint-disable-line no-param-reassign
264
+ }
265
+ }
258
266
  }
259
- }
260
- }
261
-
262
-
263
- ;// CONCATENATED MODULE: ./src/TabBar/Tab.tsx
264
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
265
-
266
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
267
-
268
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
269
-
270
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
271
-
272
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
273
-
274
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
275
-
276
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
277
-
278
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
279
-
280
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
281
-
282
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
283
-
284
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
285
-
286
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
287
-
288
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
289
-
290
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
291
-
292
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
- var propTypes = {
304
- /** @private. Is the tab active. */
305
- active: (external_prop_types_default()).bool,
306
- ariaControls: (external_prop_types_default()).string,
307
- count: (external_prop_types_default()).number,
308
- disabled: (external_prop_types_default()).bool,
309
- elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
310
- icon: (external_prop_types_default()).node,
311
- id: (external_prop_types_default()).string,
312
- label: external_prop_types_default().oneOfType([(external_prop_types_default()).string, (external_prop_types_default()).element]),
313
-
314
- /** @private Maximum count number in tab label */
315
- maxCount: (external_prop_types_default()).number,
316
- tabId: (external_prop_types_default()).string,
317
-
318
- /** @private. The internal key of the tab */
319
- tabKey: (external_prop_types_default()).number,
320
- to: (external_prop_types_default()).string,
321
- tooltip: (external_prop_types_default()).node
322
- };
323
- var defaultProps = {
324
- active: false
325
- };
326
-
327
- var Tab = /*#__PURE__*/function (_Component) {
328
- _inherits(Tab, _Component);
329
-
330
- var _super = _createSuper(Tab);
331
-
332
- // @docs-props-type TabPropsBase
333
- function Tab(props) {
334
- var _this;
335
-
336
- _classCallCheck(this, Tab);
337
-
338
- _this = _super.call(this, props);
339
-
340
- _defineProperty(_assertThisInitialized(_this), "popoverId", void 0);
341
-
342
- _defineProperty(_assertThisInitialized(_this), "ariaId", void 0);
343
-
344
- _defineProperty(_assertThisInitialized(_this), "handleMount", function (el) {
345
- _this.setState({
346
- anchor: el
347
- });
348
-
349
- updateReactRef(_this.props.elementRef, el);
350
- });
351
-
352
- _defineProperty(_assertThisInitialized(_this), "handleTooltipOpen", function () {
353
- _this.setState({
354
- open: true
355
- });
356
- });
357
-
358
- _defineProperty(_assertThisInitialized(_this), "handleTooltipClose", function () {
359
- _this.setState({
360
- open: false
361
- });
362
- });
363
-
364
- _defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
365
- var _this$props = _this.props,
366
- active = _this$props.active,
367
- tabId = _this$props.tabId,
368
- tabKey = _this$props.tabKey,
369
- to = _this$props.to;
370
- var onClick = _this.context.onClick; // preserve the previous behaviour from 2ad8e7eaf47 to avoid firing unnecessary onChange events
371
- // while preventing the "to" prop from incorrectly triggering <Clickable>'s providedOnClick on the active tab
372
-
373
- if (!active) {
374
- onClick === null || onClick === void 0 ? void 0 : onClick(e, {
375
- tabId: tabId,
376
- tabKey: tabKey
267
+ // CONCATENATED MODULE: ./src/TabBar/Tab.tsx
268
+ function j(e) {
269
+ "@babel/helpers - typeof";
270
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
271
+ j = function e(t) {
272
+ return typeof t;
273
+ };
274
+ } else {
275
+ j = function e(t) {
276
+ return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
277
+ };
278
+ }
279
+ return j(e);
280
+ }
281
+ function z() {
282
+ z = Object.assign || function(e) {
283
+ for (var t = 1; t < arguments.length; t++) {
284
+ var r = arguments[t];
285
+ for (var n in r) {
286
+ if (Object.prototype.hasOwnProperty.call(r, n)) {
287
+ e[n] = r[n];
288
+ }
289
+ }
290
+ }
291
+ return e;
292
+ };
293
+ return z.apply(this, arguments);
294
+ }
295
+ function _(e, t) {
296
+ if (e == null) return {};
297
+ var r = E(e, t);
298
+ var n, i;
299
+ if (Object.getOwnPropertySymbols) {
300
+ var o = Object.getOwnPropertySymbols(e);
301
+ for (i = 0; i < o.length; i++) {
302
+ n = o[i];
303
+ if (t.indexOf(n) >= 0) continue;
304
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
305
+ r[n] = e[n];
306
+ }
307
+ }
308
+ return r;
309
+ }
310
+ function E(e, t) {
311
+ if (e == null) return {};
312
+ var r = {};
313
+ var n = Object.keys(e);
314
+ var i, o;
315
+ for (o = 0; o < n.length; o++) {
316
+ i = n[o];
317
+ if (t.indexOf(i) >= 0) continue;
318
+ r[i] = e[i];
319
+ }
320
+ return r;
321
+ }
322
+ function P(e, t) {
323
+ if (!(e instanceof t)) {
324
+ throw new TypeError("Cannot call a class as a function");
325
+ }
326
+ }
327
+ function $(e, t) {
328
+ for (var r = 0; r < t.length; r++) {
329
+ var n = t[r];
330
+ n.enumerable = n.enumerable || false;
331
+ n.configurable = true;
332
+ if ("value" in n) n.writable = true;
333
+ Object.defineProperty(e, n.key, n);
334
+ }
335
+ }
336
+ function R(e, t, r) {
337
+ if (t) $(e.prototype, t);
338
+ if (r) $(e, r);
339
+ return e;
340
+ }
341
+ function D(e, t) {
342
+ if (typeof t !== "function" && t !== null) {
343
+ throw new TypeError("Super expression must either be null or a function");
344
+ }
345
+ e.prototype = Object.create(t && t.prototype, {
346
+ constructor: {
347
+ value: e,
348
+ writable: true,
349
+ configurable: true
350
+ }
377
351
  });
378
- }
379
-
380
- if (to == null || to != null && active) {
381
- e.preventDefault();
382
- }
383
- });
384
-
385
- _defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
386
- _this.handleTooltipOpen();
387
-
388
- var _this$props2 = _this.props,
389
- tabId = _this$props2.tabId,
390
- tabKey = _this$props2.tabKey;
391
- var onFocus = _this.context.onFocus;
392
- onFocus === null || onFocus === void 0 ? void 0 : onFocus(e, {
393
- tabId: tabId,
394
- tabKey: tabKey
395
- });
396
- });
397
-
398
- _this.popoverId = (0,id_namespaceObject.createDOMID)('popover');
399
- _this.ariaId = (0,id_namespaceObject.createDOMID)('aria-id');
400
- _this.state = {
401
- open: false,
402
- anchor: null
403
- };
404
- return _this;
405
- }
406
-
407
- _createClass(Tab, [{
408
- key: "focus",
409
- value: function focus() {
410
- var _this$state$anchor;
411
-
412
- (_this$state$anchor = this.state.anchor) === null || _this$state$anchor === void 0 ? void 0 : _this$state$anchor.focus();
352
+ if (t) M(e, t);
413
353
  }
414
- }, {
415
- key: "render",
416
- value: function render() {
417
- var _this$props3 = this.props,
418
- active = _this$props3.active,
419
- ariaControls = _this$props3.ariaControls,
420
- count = _this$props3.count,
421
- disabled = _this$props3.disabled,
422
- icon = _this$props3.icon,
423
- label = _this$props3.label,
424
- tabId = _this$props3.tabId,
425
- maxCount = _this$props3.maxCount,
426
- to = _this$props3.to,
427
- tooltip = _this$props3.tooltip,
428
- otherProps = _objectWithoutProperties(_this$props3, ["active", "ariaControls", "count", "disabled", "icon", "label", "tabId", "maxCount", "to", "tooltip"]);
429
-
430
- var _this$state = this.state,
431
- anchor = _this$state.anchor,
432
- open = _this$state.open;
433
- var _this$context = this.context,
434
- appearance = _this$context.appearance,
435
- disabledContext = _this$context.disabled,
436
- iconSize = _this$context.iconSize,
437
- layout = _this$context.layout,
438
- widthContext = _this$context.width;
439
- var style = otherProps.style;
440
- var disabledValue = disabledContext || disabled || false;
441
- var iconSizeValue = iconSize || 'inline';
442
- var layoutValue = layout || 'horizontal';
443
- var styleValue = widthContext ? {
444
- width: widthContext
445
- } : style;
446
- return (
447
- /*#__PURE__*/
448
- // TODO: Fix the ts error: https://splunk.atlassian.net/browse/SUI-5569
449
- // eslint-disable-next-line
450
- // @ts-ignore-next-line
451
- external_react_default().createElement(StyledClickable, _extends({
452
- "aria-controls": ariaControls,
453
- "aria-selected": active,
454
- "aria-labelledby": this.ariaId,
455
- "data-test": "tab",
456
- "data-test-tab-id": tabId,
457
- "data-test-popover-id": tooltip ? this.popoverId : undefined,
458
- $layout: layoutValue,
459
- $icon: icon && iconSizeValue !== 'inline' ? true : undefined,
460
- disabled: disabledValue,
461
- elementRef: this.handleMount,
462
- style: styleValue
463
- }, otherProps, {
464
- onClick: this.handleClick,
465
- onFocus: this.handleFocus,
466
- onMouseEnter: this.handleTooltipOpen,
467
- onBlur: this.handleTooltipClose,
468
- onMouseLeave: this.handleTooltipClose,
469
- role: "tab",
470
- tabIndex: active ? undefined : -1,
471
- to: to
472
- }), /*#__PURE__*/external_react_default().createElement(StyledLabel, {
473
- "data-test": "label",
474
- $withUnderline: appearance === 'navigation'
475
- }, icon && /*#__PURE__*/external_react_default().createElement(StyledIcon, {
476
- $iconSize: iconSizeValue
477
- }, icon), label, (count === 0 || count) && /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement((ScreenReaderContent_default()), null, "\xA0"), /*#__PURE__*/external_react_default().createElement(StyledCount, {
478
- "data-test": "count",
479
- disabled: disabledValue
480
- }, maxCount ? maxCountValue(count, maxCount) : count))), /*#__PURE__*/external_react_default().createElement(StyledUnderline, {
481
- $layout: layoutValue,
482
- $withUnderline: appearance === 'navigation'
483
- }), !disabled && tooltip && /*#__PURE__*/external_react_default().createElement((Popover_default()), {
484
- role: "tooltip",
485
- anchor: anchor // override Popover's default animation to make it faster
486
- // this keeps the overall amount of time the Tooltip is on-screen the same
487
- // even with the increased default closeDelay to address SUI-5116
488
- ,
489
- animationConfig: {
490
- tension: 400
491
- },
492
- appearance: "inverted",
493
- closeReasons: ['offScreen', 'escapeKey'],
494
- defaultPlacement: layoutValue === 'vertical' ? 'right' : 'above',
495
- id: this.popoverId,
496
- open: !!anchor && open,
497
- align: "center"
498
- }, /*#__PURE__*/external_react_default().createElement(StyledTooltipContent, null, tooltip)), tooltip && /*#__PURE__*/external_react_default().createElement((ScreenReaderContent_default()), {
499
- "aria-hidden": "true",
500
- id: this.ariaId
501
- }, tooltip))
502
- );
354
+ function M(e, t) {
355
+ M = Object.setPrototypeOf || function e(t, r) {
356
+ t.__proto__ = r;
357
+ return t;
358
+ };
359
+ return M(e, t);
503
360
  }
504
- }]);
505
-
506
- return Tab;
507
- }(external_react_namespaceObject.Component);
508
-
509
- _defineProperty(Tab, "propTypes", propTypes);
510
-
511
- _defineProperty(Tab, "defaultProps", defaultProps);
512
-
513
- _defineProperty(Tab, "contextType", TabBar_TabBarContext);
514
-
515
- /* harmony default export */ const TabBar_Tab = (Tab);
516
- ;// CONCATENATED MODULE: ./src/utils/navigateList.ts
517
- // A utility for keyboard navigation of lists
518
- function getNextListItem(refs, currentIndex, nextIndex) {
519
- for (var i = 0; i < refs.length; i += 1) {
520
- var _refs$pointer$current;
521
-
522
- var pointer = (i + nextIndex) % refs.length;
523
-
524
- if (((_refs$pointer$current = refs[pointer].current) === null || _refs$pointer$current === void 0 ? void 0 : _refs$pointer$current.props.disabled) !== true) {
525
- return refs[pointer];
361
+ function q(e) {
362
+ var t = A();
363
+ return function r() {
364
+ var n = B(e), i;
365
+ if (t) {
366
+ var o = B(this).constructor;
367
+ i = Reflect.construct(n, arguments, o);
368
+ } else {
369
+ i = n.apply(this, arguments);
370
+ }
371
+ return K(this, i);
372
+ };
526
373
  }
527
- }
528
-
529
- return refs[currentIndex];
530
- }
531
-
532
- function getPrevListItem(refs, currentIndex, prevIndex) {
533
- for (var i = refs.length; i > 0; i -= 1) {
534
- var _refs$pointer$current2;
535
-
536
- var pointer = (i + prevIndex) % refs.length;
537
-
538
- if (((_refs$pointer$current2 = refs[pointer].current) === null || _refs$pointer$current2 === void 0 ? void 0 : _refs$pointer$current2.props.disabled) !== true) {
539
- return refs[pointer];
374
+ function K(e, t) {
375
+ if (t && (j(t) === "object" || typeof t === "function")) {
376
+ return t;
377
+ }
378
+ return V(e);
540
379
  }
541
- }
542
-
543
- return refs[currentIndex];
544
- }
545
-
546
-
547
- ;// CONCATENATED MODULE: ./src/TabBar/TabBar.tsx
548
- function TabBar_extends() { TabBar_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return TabBar_extends.apply(this, arguments); }
549
-
550
- function TabBar_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = TabBar_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
551
-
552
- function TabBar_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
- var minTabWidth = 50;
562
- /** @public */
563
-
564
- var TabBar_propTypes = {
565
- autoActivate: (external_prop_types_default()).bool,
566
- activeTabId: (external_prop_types_default()).string,
567
- appearance: external_prop_types_default().oneOf(['navigation', 'context']),
568
- children: (external_prop_types_default()).node,
569
-
570
- /** @private */
571
- disabled: (external_prop_types_default()).bool,
572
- elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
573
- iconSize: external_prop_types_default().oneOf(['inline', 'small', 'large']),
574
- layout: external_prop_types_default().oneOf(['horizontal', 'vertical']),
575
- onChange: (external_prop_types_default()).func,
576
- tabWidth: (external_prop_types_default()).number
577
- };
578
-
579
- function TabBar(_ref) {
580
- var activeTabId = _ref.activeTabId,
581
- autoActivate = _ref.autoActivate,
582
- _ref$appearance = _ref.appearance,
583
- appearance = _ref$appearance === void 0 ? 'navigation' : _ref$appearance,
584
- children = _ref.children,
585
- _ref$disabled = _ref.disabled,
586
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
587
- elementRef = _ref.elementRef,
588
- _ref$iconSize = _ref.iconSize,
589
- iconSize = _ref$iconSize === void 0 ? 'inline' : _ref$iconSize,
590
- _ref$layout = _ref.layout,
591
- layout = _ref$layout === void 0 ? 'horizontal' : _ref$layout,
592
- onChange = _ref.onChange,
593
- tabWidth = _ref.tabWidth,
594
- otherProps = TabBar_objectWithoutProperties(_ref, ["activeTabId", "autoActivate", "appearance", "children", "disabled", "elementRef", "iconSize", "layout", "onChange", "tabWidth"]);
595
-
596
- // @docs-props-type TabBarPropsBase
597
- var focusedTabIndex = (0,external_react_namespaceObject.useRef)(0);
598
- var tabRefs = [];
599
- var nextTabKey = (0,external_react_namespaceObject.useMemo)(function () {
600
- return layout === 'vertical' ? 'down' : 'right';
601
- }, [layout]);
602
- var previousTabKey = (0,external_react_namespaceObject.useMemo)(function () {
603
- return layout === 'vertical' ? 'up' : 'left';
604
- }, [layout]);
605
-
606
- var tabOnFocus = function tabOnFocus(e, data) {
607
- var tabKey = data.tabKey;
608
-
609
- if (tabKey != null) {
610
- focusedTabIndex.current = tabKey;
380
+ function V(e) {
381
+ if (e === void 0) {
382
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
383
+ }
384
+ return e;
611
385
  }
612
-
613
- if (autoActivate) {
614
- onChange === null || onChange === void 0 ? void 0 : onChange(e, {
615
- selectedTabId: data.tabId
616
- });
386
+ function A() {
387
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
388
+ if (Reflect.construct.sham) return false;
389
+ if (typeof Proxy === "function") return true;
390
+ try {
391
+ Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
392
+ return true;
393
+ } catch (e) {
394
+ return false;
395
+ }
617
396
  }
618
- };
619
-
620
- var tabOnClick = function tabOnClick(e, data) {
621
- onChange === null || onChange === void 0 ? void 0 : onChange(e, {
622
- selectedTabId: data.tabId
623
- });
624
- };
625
-
626
- var tabKeyCounter = 0;
627
- var clonedChildren = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(function (child) {
628
- // <TabBar> allows non-<Tab> children, pass them through without any modification
629
- if (typeof child.type === 'string' || child.type.name !== TabBar_Tab.name) {
630
- return child;
397
+ function B(e) {
398
+ B = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
399
+ return t.__proto__ || Object.getPrototypeOf(t);
400
+ };
401
+ return B(e);
631
402
  }
632
-
633
- var ref = /*#__PURE__*/external_react_default().createRef();
634
- tabRefs.push(ref);
635
- var childProps = {
636
- active: activeTabId === child.props.tabId,
637
- tabKey: tabKeyCounter,
638
- ref: ref
403
+ function N(e, t, r) {
404
+ if (t in e) {
405
+ Object.defineProperty(e, t, {
406
+ value: r,
407
+ enumerable: true,
408
+ configurable: true,
409
+ writable: true
410
+ });
411
+ } else {
412
+ e[t] = r;
413
+ }
414
+ return e;
415
+ }
416
+ var W = {
417
+ /** @private. Is the tab active. */
418
+ active: o().bool,
419
+ ariaControls: o().string,
420
+ count: o().number,
421
+ disabled: o().bool,
422
+ elementRef: o().oneOfType([ o().func, o().object ]),
423
+ icon: o().node,
424
+ id: o().string,
425
+ label: o().oneOfType([ o().string, o().element ]),
426
+ /** @private Maximum count number in tab label */
427
+ maxCount: o().number,
428
+ /** @private */
429
+ splunkTheme: o().object,
430
+ tabId: o().string,
431
+ /** @private. The internal key of the tab */
432
+ tabKey: o().number,
433
+ to: o().string,
434
+ tooltip: o().node
435
+ };
436
+ var F = {
437
+ active: false
639
438
  };
640
- tabKeyCounter += 1;
641
- return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(child, childProps);
642
- });
643
- var widthContext = tabWidth && tabWidth > minTabWidth ? tabWidth : null;
644
-
645
- var handleOnKeyDown = function handleOnKeyDown(e) {
646
- var key = (0,keyboard_namespaceObject.keycode)(e.nativeEvent);
647
- var tabToFocusRef;
648
-
649
- if (key === nextTabKey) {
650
- tabToFocusRef = getNextListItem(tabRefs, focusedTabIndex.current, focusedTabIndex.current + 1);
651
- } else if (key === previousTabKey) {
652
- tabToFocusRef = getPrevListItem(tabRefs, focusedTabIndex.current, focusedTabIndex.current - 1);
653
- } else if (key === 'home') {
654
- tabToFocusRef = getNextListItem(tabRefs, focusedTabIndex.current, 0);
655
- } else if (key === 'end') {
656
- tabToFocusRef = getPrevListItem(tabRefs, focusedTabIndex.current, tabRefs.length - 1);
439
+ var U = function(e) {
440
+ D(r, e);
441
+ var t = q(r);
442
+ // @docs-props-type TabPropsBase
443
+ function r(e) {
444
+ var n;
445
+ P(this, r);
446
+ n = t.call(this, e);
447
+ N(V(n), "popoverId", void 0);
448
+ N(V(n), "ariaId", void 0);
449
+ N(V(n), "handleMount", (function(e) {
450
+ n.setState({
451
+ anchor: e
452
+ });
453
+ I(n.props.elementRef, e);
454
+ }));
455
+ N(V(n), "handleTooltipOpen", (function() {
456
+ n.setState({
457
+ open: true
458
+ });
459
+ }));
460
+ N(V(n), "handleTooltipClose", (function() {
461
+ n.setState({
462
+ open: false
463
+ });
464
+ }));
465
+ N(V(n), "handleClick", (function(e) {
466
+ var t = n.props, r = t.active, i = t.tabId, o = t.tabKey, a = t.to;
467
+ var l = n.context.onClick;
468
+ // preserve the previous behaviour from 2ad8e7eaf47 to avoid firing unnecessary onChange events
469
+ // while preventing the "to" prop from incorrectly triggering <Clickable>'s providedOnClick on the active tab
470
+ if (!r) {
471
+ l === null || l === void 0 ? void 0 : l(e, {
472
+ tabId: i,
473
+ tabKey: o
474
+ });
475
+ }
476
+ if (a == null || a != null && r) {
477
+ e.preventDefault();
478
+ }
479
+ }));
480
+ N(V(n), "handleFocus", (function(e) {
481
+ n.handleTooltipOpen();
482
+ var t = n.props, r = t.tabId, i = t.tabKey;
483
+ var o = n.context.onFocus;
484
+ o === null || o === void 0 ? void 0 : o(e, {
485
+ tabId: r,
486
+ tabKey: i
487
+ });
488
+ }));
489
+ n.popoverId = (0, b.createDOMID)("popover");
490
+ n.ariaId = (0, b.createDOMID)("aria-id");
491
+ n.state = {
492
+ open: false,
493
+ anchor: null
494
+ };
495
+ return n;
496
+ }
497
+ R(r, [ {
498
+ key: "focus",
499
+ value: function e() {
500
+ var t;
501
+ (t = this.state.anchor) === null || t === void 0 ? void 0 : t.focus();
502
+ }
503
+ }, {
504
+ key: "render",
505
+ value: function e() {
506
+ var t = this.props, r = t.active, i = t.ariaControls, o = t.count, a = t.disabled, l = t.icon, c = t.label, s = t.tabId, p = t.maxCount, u = t.splunkTheme, f = t.to, b = t.tooltip, h = _(t, [ "active", "ariaControls", "count", "disabled", "icon", "label", "tabId", "maxCount", "splunkTheme", "to", "tooltip" ]);
507
+ var y = this.state, S = y.anchor, C = y.open;
508
+ var I = this.context, j = I.appearance, E = I.disabled, P = I.iconSize, $ = I.layout, R = I.width;
509
+ var D = h.style;
510
+ var M = E || a || false;
511
+ var q = P || "inline";
512
+ var K = $ || "horizontal";
513
+ var V = R ? {
514
+ width: R
515
+ } : D;
516
+ var A = u.isEnterprise;
517
+ var B = c ? c.toString() : "";
518
+ var N = o === 0 || o ? "".concat(o === null || o === void 0 ? void 0 : o.toString()) : "";
519
+ // title is used for CSS styling in TabStyles. labelValue and countValue needs to be included in the title.
520
+ var W;
521
+ if (A) {
522
+ // countValue needs unicode space for width to not change after it's clicked.
523
+ var F = N ? "(".concat(N, ")  ") : "";
524
+ W = "".concat(B, " ").concat(F);
525
+ } else {
526
+ W = "".concat(B, "    ").concat(N);
527
+ }
528
+
529
+ // TODO: Fix the ts error: https://splunk.atlassian.net/browse/SUI-5569
530
+ // eslint-disable-next-line
531
+ // @ts-ignore-next-line
532
+ return n().createElement(m, z({
533
+ "aria-controls": i,
534
+ "aria-selected": r,
535
+ "aria-labelledby": this.ariaId,
536
+ "data-test": "tab",
537
+ "data-test-tab-id": s,
538
+ "data-test-popover-id": b ? this.popoverId : undefined,
539
+ $layout: K,
540
+ $icon: l && q !== "inline" ? true : undefined,
541
+ disabled: M,
542
+ elementRef: this.handleMount,
543
+ style: V
544
+ }, h, {
545
+ onClick: this.handleClick,
546
+ onFocus: this.handleFocus,
547
+ onMouseEnter: this.handleTooltipOpen,
548
+ onBlur: this.handleTooltipClose,
549
+ onMouseLeave: this.handleTooltipClose,
550
+ role: "tab",
551
+ tabIndex: r ? undefined : -1,
552
+ title: W,
553
+ to: f
554
+ }), n().createElement(k, {
555
+ "data-test": "label",
556
+ $withUnderline: j === "navigation"
557
+ }, l && n().createElement(x, {
558
+ $iconSize: q
559
+ }, l), c, (o === 0 || o) && n().createElement(n().Fragment, null, n().createElement(v(), null, " "), n().createElement(w, {
560
+ "data-test": "count",
561
+ disabled: M
562
+ }, p ? T(o, p) : o))), n().createElement(g, {
563
+ $layout: K,
564
+ $withUnderline: j === "navigation"
565
+ }), !a && b && n().createElement(d(), {
566
+ role: "tooltip",
567
+ anchor: S,
568
+ animationConfig: {
569
+ tension: 400
570
+ },
571
+ appearance: "inverted",
572
+ closeReasons: [ "offScreen", "escapeKey" ],
573
+ defaultPlacement: K === "vertical" ? "right" : "above",
574
+ id: this.popoverId,
575
+ open: !!S && C,
576
+ align: "center"
577
+ }, n().createElement(O, null, b)), b && n().createElement(v(), {
578
+ "aria-hidden": "true",
579
+ id: this.ariaId
580
+ }, b));
581
+ }
582
+ } ]);
583
+ return r;
584
+ }(r.Component);
585
+ N(U, "propTypes", W);
586
+ N(U, "defaultProps", F);
587
+ N(U, "contextType", C);
588
+ var L = (0, s.withSplunkTheme)(U);
589
+ L.propTypes = U.propTypes;
590
+ /* harmony default export */ const Y = L;
591
+ // CONCATENATED MODULE: ./src/utils/navigateList.ts
592
+ // A utility for keyboard navigation of lists
593
+ function G(e, t, r) {
594
+ for (var n = 0; n < e.length; n += 1) {
595
+ var i;
596
+ var o = (n + r) % e.length;
597
+ if (((i = e[o].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
598
+ return e[o];
599
+ }
600
+ }
601
+ return e[t];
602
+ }
603
+ function H(e, t, r) {
604
+ for (var n = e.length; n > 0; n -= 1) {
605
+ var i;
606
+ var o = (n + r) % e.length;
607
+ if (((i = e[o].current) === null || i === void 0 ? void 0 : i.props.disabled) !== true) {
608
+ return e[o];
609
+ }
610
+ }
611
+ return e[t];
657
612
  }
658
-
659
- if (tabToFocusRef != null) {
660
- var _tabToFocusRef$curren;
661
-
662
- (_tabToFocusRef$curren = tabToFocusRef.current) === null || _tabToFocusRef$curren === void 0 ? void 0 : _tabToFocusRef$curren.focus();
663
- e.preventDefault();
613
+ // CONCATENATED MODULE: ./src/TabBar/TabBar.tsx
614
+ function J() {
615
+ J = Object.assign || function(e) {
616
+ for (var t = 1; t < arguments.length; t++) {
617
+ var r = arguments[t];
618
+ for (var n in r) {
619
+ if (Object.prototype.hasOwnProperty.call(r, n)) {
620
+ e[n] = r[n];
621
+ }
622
+ }
623
+ }
624
+ return e;
625
+ };
626
+ return J.apply(this, arguments);
664
627
  }
665
- };
666
-
667
- return /*#__PURE__*/external_react_default().createElement(Styled, TabBar_extends({
668
- "data-tab-layout": layout,
669
- "data-test-active-tab-id": activeTabId,
670
- "data-test": "tab-bar",
671
- role: "tablist",
672
- ref: elementRef,
673
- $layout: layout,
674
- $withUnderline: appearance === 'navigation',
675
- onKeyDown: handleOnKeyDown
676
- }, otherProps), /*#__PURE__*/external_react_default().createElement(TabBar_TabBarContext.Provider, {
677
- value: {
678
- appearance: appearance,
679
- disabled: disabled,
680
- iconSize: iconSize,
681
- layout: layout,
682
- onClick: tabOnClick,
683
- onFocus: tabOnFocus,
684
- width: widthContext
628
+ function Q(e, t) {
629
+ if (e == null) return {};
630
+ var r = X(e, t);
631
+ var n, i;
632
+ if (Object.getOwnPropertySymbols) {
633
+ var o = Object.getOwnPropertySymbols(e);
634
+ for (i = 0; i < o.length; i++) {
635
+ n = o[i];
636
+ if (t.indexOf(n) >= 0) continue;
637
+ if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
638
+ r[n] = e[n];
639
+ }
640
+ }
641
+ return r;
642
+ }
643
+ function X(e, t) {
644
+ if (e == null) return {};
645
+ var r = {};
646
+ var n = Object.keys(e);
647
+ var i, o;
648
+ for (o = 0; o < n.length; o++) {
649
+ i = n[o];
650
+ if (t.indexOf(i) >= 0) continue;
651
+ r[i] = e[i];
652
+ }
653
+ return r;
654
+ }
655
+ var Z = 50;
656
+ /** @public */ var ee = {
657
+ autoActivate: o().bool,
658
+ activeTabId: o().string,
659
+ appearance: o().oneOf([ "navigation", "context" ]),
660
+ children: o().node,
661
+ /** @private */
662
+ disabled: o().bool,
663
+ elementRef: o().oneOfType([ o().func, o().object ]),
664
+ iconSize: o().oneOf([ "inline", "small", "large" ]),
665
+ layout: o().oneOf([ "horizontal", "vertical" ]),
666
+ onChange: o().func,
667
+ tabWidth: o().number
668
+ };
669
+ function te(e) {
670
+ var t = e.activeTabId, i = e.autoActivate, o = e.appearance, l = o === void 0 ? "navigation" : o, c = e.children, s = e.disabled, u = s === void 0 ? false : s, d = e.elementRef, f = e.iconSize, v = f === void 0 ? "inline" : f, b = e.layout, h = b === void 0 ? "horizontal" : b, y = e.onChange, m = e.tabWidth, g = Q(e, [ "activeTabId", "autoActivate", "appearance", "children", "disabled", "elementRef", "iconSize", "layout", "onChange", "tabWidth" ]);
671
+ // @docs-props-type TabBarPropsBase
672
+ var x = (0, r.useRef)(0);
673
+ var k = [];
674
+ var w = (0, r.useMemo)((function() {
675
+ return h === "vertical" ? "down" : "right";
676
+ }), [ h ]);
677
+ var O = (0, r.useMemo)((function() {
678
+ return h === "vertical" ? "up" : "left";
679
+ }), [ h ]);
680
+ var S = function e(t, r) {
681
+ var n = r.tabKey;
682
+ if (n != null) {
683
+ x.current = n;
684
+ }
685
+ if (i) {
686
+ y === null || y === void 0 ? void 0 : y(t, {
687
+ selectedTabId: r.tabId
688
+ });
689
+ }
690
+ };
691
+ var T = function e(t, r) {
692
+ y === null || y === void 0 ? void 0 : y(t, {
693
+ selectedTabId: r.tabId
694
+ });
695
+ };
696
+ var I = 0;
697
+ var j = r.Children.toArray(c).filter(r.isValidElement).map((function(e) {
698
+ // <TabBar> allows non-<Tab> children, pass them through without any modification
699
+ if (typeof e.type === "string" || e.type.name !== Y.name) {
700
+ return e;
701
+ }
702
+ var i = n().createRef();
703
+ k.push(i);
704
+ var o = {
705
+ active: t === e.props.tabId,
706
+ tabKey: I,
707
+ ref: i
708
+ };
709
+ I += 1;
710
+
711
+ return (0, r.cloneElement)(e, o);
712
+ }));
713
+ var z = m && m > Z ? m : null;
714
+ var _ = function e(t) {
715
+ var r = (0, a.keycode)(t.nativeEvent);
716
+ var n;
717
+ if (r === w) {
718
+ n = G(k, x.current, x.current + 1);
719
+ } else if (r === O) {
720
+ n = H(k, x.current, x.current - 1);
721
+ } else if (r === "home") {
722
+ n = G(k, x.current, 0);
723
+ } else if (r === "end") {
724
+ n = H(k, x.current, k.length - 1);
725
+ }
726
+ if (n != null) {
727
+ var i;
728
+ (i = n.current) === null || i === void 0 ? void 0 : i.focus();
729
+ t.preventDefault();
730
+ }
731
+ };
732
+
733
+ return n().createElement(p, J({
734
+ "data-tab-layout": h,
735
+ "data-test-active-tab-id": t,
736
+ "data-test": "tab-bar",
737
+ role: "tablist",
738
+ ref: d,
739
+ $layout: h,
740
+ $withUnderline: l === "navigation",
741
+ onKeyDown: _
742
+ }, g), n().createElement(C.Provider, {
743
+ value: {
744
+ appearance: l,
745
+ disabled: u,
746
+ iconSize: v,
747
+ layout: h,
748
+ onClick: T,
749
+ onFocus: S,
750
+ width: z
751
+ }
752
+ }, j));
685
753
  }
686
- }, clonedChildren));
687
- }
688
-
689
- TabBar.propTypes = TabBar_propTypes;
690
- TabBar.Tab = TabBar_Tab;
691
- /* harmony default export */ const TabBar_TabBar = (TabBar);
692
-
693
- ;// CONCATENATED MODULE: ./src/TabBar/index.ts
694
-
695
-
696
- module.exports = __webpack_exports__;
697
- /******/ })()
698
- ;
754
+ te.propTypes = ee;
755
+ te.Tab = Y;
756
+ /* harmony default export */ const re = te;
757
+ // CONCATENATED MODULE: ./src/TabBar/index.ts
758
+ module.exports = t;
759
+ /******/})();