@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.
- package/Accordion.js +425 -325
- package/Anchor.js +147 -117
- package/Animation.js +142 -94
- package/AnimationToggle.js +197 -193
- package/Box.js +145 -118
- package/Breadcrumbs.js +288 -206
- package/Button.js +488 -465
- package/ButtonGroup.js +160 -128
- package/ButtonSimple.js +543 -462
- package/CHANGELOG.md +24 -3
- package/Calendar.js +1111 -1001
- package/Card.js +771 -598
- package/CardLayout.js +205 -147
- package/Chip.js +509 -488
- package/Clickable.js +414 -352
- package/CloseButton.js +165 -142
- package/Code.js +1807 -2084
- package/CollapsiblePanel.js +586 -519
- package/Color.js +1068 -1068
- package/ColumnLayout.js +402 -363
- package/ComboBox.js +903 -794
- package/Concertina.js +997 -802
- package/ControlGroup.js +687 -594
- package/Date.js +567 -547
- package/DefinitionList.js +308 -234
- package/Divider.js +149 -118
- package/Dropdown.js +459 -416
- package/DualListbox.js +1479 -1541
- package/EventListener.js +94 -97
- package/File.js +1051 -969
- package/FormRows.js +883 -696
- package/Heading.js +216 -193
- package/Image.js +446 -402
- package/JSONTree.js +690 -551
- package/Layer.js +437 -410
- package/Link.js +336 -255
- package/List.js +213 -161
- package/Markdown.js +509 -487
- package/Menu.js +1104 -1056
- package/Message.js +475 -441
- package/MessageBar.js +387 -373
- package/Modal.js +810 -634
- package/ModalLayer.js +326 -243
- package/Monogram.js +308 -276
- package/Multiselect.js +3564 -3364
- package/Number.js +729 -687
- package/Paginator.js +510 -449
- package/Paragraph.js +145 -112
- package/Popover.js +1459 -1432
- package/Progress.js +301 -246
- package/RadioBar.js +634 -527
- package/RadioList.js +483 -444
- package/Resize.js +530 -489
- package/ResultsMenu.js +479 -455
- package/ScreenReaderContent.js +142 -111
- package/Scroll.js +595 -456
- package/ScrollContainerContext.js +197 -206
- package/Search.js +756 -650
- package/Select.js +2446 -2345
- package/SidePanel.js +390 -284
- package/Slider.js +680 -676
- package/SlidingPanels.js +639 -503
- package/SplitButton.js +464 -367
- package/StaticContent.js +161 -133
- package/StepBar.js +386 -358
- package/Switch.js +710 -640
- package/TabBar.js +741 -680
- package/TabLayout.js +406 -322
- package/Table.js +4974 -4616
- package/Text.js +1170 -1138
- package/TextArea.js +1102 -1090
- package/Tooltip.js +624 -581
- package/TransitionOpen.js +489 -422
- package/Typography.js +176 -153
- package/WaitSpinner.js +230 -206
- package/package.json +7 -7
- package/types/src/Color/Color.d.ts +0 -1
- package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
- package/types/src/JSONTree/TreeNode.d.ts +5 -0
- package/types/src/RadioBar/RadioBar.d.ts +1 -0
- package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
- package/types/src/Select/docs/examples/Icons.d.ts +1 -9
- package/types/src/Slider/Slider.d.ts +1 -0
- package/types/src/TabBar/Tab.d.ts +10 -1
- package/types/src/TabBar/TabBar.d.ts +4 -2
- package/types/src/Table/Head.d.ts +7 -3
- package/types/src/Table/Table.d.ts +3 -2
- package/types/src/Table/TableContext.d.ts +2 -0
- package/useForceUpdate.js +112 -82
- package/useKeyPress.js +74 -71
- package/usePrevious.js +65 -65
- package/useRovingFocus.js +122 -138
package/TabBar.js
CHANGED
|
@@ -1,698 +1,759 @@
|
|
|
1
|
-
/******/ (() => {
|
|
2
|
-
|
|
3
|
-
/******/
|
|
4
|
-
/******/
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/******/
|
|
9
|
-
/******/
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/
|
|
26
|
-
/******/
|
|
27
|
-
/******/
|
|
28
|
-
/******/
|
|
29
|
-
/******/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/******/
|
|
34
|
-
/******/
|
|
35
|
-
/******/
|
|
36
|
-
/******/
|
|
37
|
-
/******/
|
|
38
|
-
/******/
|
|
39
|
-
/******/
|
|
40
|
-
/******/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/******/
|
|
44
|
-
/******/
|
|
45
|
-
/******/
|
|
46
|
-
/******/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}), (0,
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
}));
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
})(["position:absolute;", " ", ";[aria-selected='true'] > &&{background-color:", ";", ";}", ":hover:not([disabled]) > &&{", ";}"], (0,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}))
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
})
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
614
|
-
|
|
615
|
-
|
|
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
|
-
|
|
621
|
-
|
|
622
|
-
|
|
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
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
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
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
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
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
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
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
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
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
TabBar.
|
|
690
|
-
|
|
691
|
-
|
|
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
|
+
/******/})();
|