@splunk/react-ui 4.37.0 → 4.39.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 +131 -153
- package/Anchor.js +50 -58
- package/Animation.js +64 -59
- package/AnimationToggle.js +59 -61
- package/Box.js +59 -67
- package/Breadcrumbs.js +113 -127
- package/Button.js +208 -219
- package/ButtonGroup.js +41 -49
- package/ButtonSimple.js +264 -295
- package/CHANGELOG.md +50 -1
- package/Calendar.js +353 -414
- package/Card.js +183 -243
- package/CardLayout.js +86 -83
- package/Chip.js +104 -122
- package/Clickable.js +180 -198
- package/CloseButton.js +52 -60
- package/Code.js +24 -31
- package/CollapsiblePanel.js +172 -202
- package/Color.js +1107 -980
- package/ColumnLayout.js +72 -96
- package/ComboBox.js +267 -305
- package/Concertina.js +406 -454
- package/ControlGroup.js +165 -194
- package/Date.js +116 -131
- package/DefinitionList.js +125 -149
- package/Divider.js +81 -79
- package/Dropdown.js +226 -237
- package/DualListbox.js +150 -186
- package/EventListener.js +4 -1
- package/File.js +1032 -955
- package/FormRows.js +281 -334
- package/Heading.js +27 -35
- package/Image.js +101 -116
- package/JSONTree.js +301 -344
- package/Layer.js +118 -126
- package/Link.js +141 -159
- package/List.js +61 -77
- package/MIGRATION.mdx +92 -38
- package/Markdown.js +288 -347
- package/Menu.js +512 -530
- package/Message.js +173 -196
- package/MessageBar.js +58 -66
- package/Modal.js +241 -290
- package/ModalLayer.js +130 -148
- package/Monogram.js +138 -138
- package/Multiselect.js +1600 -1923
- package/Number.js +159 -178
- package/Paginator.js +296 -335
- package/Paragraph.js +24 -32
- package/Popover.js +448 -441
- package/Progress.js +65 -75
- package/RadioBar.js +301 -303
- package/RadioList.js +77 -119
- package/Resize.js +105 -127
- package/ResultsMenu.js +373 -385
- package/ScreenReaderContent.js +130 -94
- package/Scroll.js +209 -244
- package/Search.js +375 -384
- package/Select.js +1076 -1354
- package/SidePanel.js +122 -142
- package/Slider.js +192 -222
- package/SlidingPanels.js +238 -270
- package/SplitButton.js +222 -245
- package/StaticContent.js +68 -76
- package/StepBar.js +206 -205
- package/Switch.js +211 -236
- package/TabBar.js +222 -258
- package/TabLayout.js +114 -139
- package/Table.js +2017 -2180
- package/Text.js +401 -512
- package/TextArea.js +411 -441
- package/Tooltip.js +116 -132
- package/TransitionOpen.js +160 -178
- package/Tree.js +268 -287
- package/Typography.js +48 -52
- package/WaitSpinner.js +60 -68
- package/cypress/support/commands.ts +9 -0
- package/cypress/support/index.d.ts +6 -0
- package/cypress/tsconfig.cypress.json +1 -0
- package/docker-compose.yml +0 -1
- package/package.json +17 -17
- package/types/src/Button/Button.d.ts +20 -6
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
- package/types/src/Color/Color.d.ts +5 -2
- package/types/src/Color/Palette.d.ts +6 -2
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
- package/types/src/Date/Date.d.ts +2 -3
- package/types/src/File/File.d.ts +2 -3
- package/types/src/File/Retry.d.ts +1 -2
- package/types/src/Link/Link.d.ts +3 -4
- package/types/src/Menu/Item.d.ts +24 -8
- package/types/src/Menu/Menu.d.ts +3 -3
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +2 -0
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +3 -4
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
- package/types/src/Search/Option.d.ts +16 -3
- package/types/src/Select/Option.d.ts +3 -1
- package/types/src/Select/OptionBase.d.ts +7 -5
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectAllOption.d.ts +4 -4
- package/types/src/Select/SelectBase.d.ts +0 -1
- package/types/src/SidePanel/SidePanel.d.ts +1 -1
- package/types/src/Slider/Slider.d.ts +2 -3
- package/types/src/Slider/docs/examples/Error.d.ts +2 -0
- package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
- package/types/src/StepBar/Step.d.ts +1 -2
- package/types/src/TabBar/Tab.d.ts +1 -1
- package/types/src/TabBar/TabBar.d.ts +3 -1
- package/types/src/TabLayout/TabLayout.d.ts +2 -0
- package/types/src/Table/HeadDropdownCell.d.ts +2 -0
- package/types/src/Table/Table.d.ts +0 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
- package/types/src/Text/IconOutlinedHide.d.ts +1 -2
- package/types/src/Text/IconOutlinedView.d.ts +1 -2
- package/types/src/Text/Text.d.ts +6 -4
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Tooltip/Tooltip.d.ts +4 -4
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
- package/useForceUpdate.js +30 -32
- package/useKeyPress.js +1 -1
- package/types/src/Button/docs/examples/Selected.d.ts +0 -2
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
- package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
- package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
- /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
- /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
- /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/Accordion.js
CHANGED
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(n, {
|
|
64
|
-
Panel: () => /* reexport */
|
|
65
|
-
default: () => /* reexport */
|
|
64
|
+
Panel: () => /* reexport */ w,
|
|
65
|
+
default: () => /* reexport */ Q
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const t = require("react");
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
const u = require("lodash/keys");
|
|
78
78
|
var c = e.n(u);
|
|
79
79
|
// CONCATENATED MODULE: external "lodash/omit"
|
|
80
|
-
const
|
|
81
|
-
var
|
|
80
|
+
const s = require("lodash/omit");
|
|
81
|
+
var p = e.n(s);
|
|
82
82
|
// CONCATENATED MODULE: external "@splunk/react-ui/CollapsiblePanel"
|
|
83
|
-
const
|
|
84
|
-
var d = e.n(
|
|
83
|
+
const f = require("@splunk/react-ui/CollapsiblePanel");
|
|
84
|
+
var d = e.n(f);
|
|
85
85
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
86
86
|
const y = require("@splunk/themes");
|
|
87
87
|
// CONCATENATED MODULE: ./src/Accordion/AccordionContext.tsx
|
|
@@ -89,55 +89,47 @@
|
|
|
89
89
|
v.displayName = "Accordion";
|
|
90
90
|
/* harmony default export */ const b = v;
|
|
91
91
|
// CONCATENATED MODULE: ./src/Accordion/Panel.tsx
|
|
92
|
-
function
|
|
93
|
-
|
|
92
|
+
function m() {
|
|
93
|
+
return m = Object.assign ? Object.assign.bind() : function(e) {
|
|
94
94
|
for (var n = 1; n < arguments.length; n++) {
|
|
95
95
|
var t = arguments[n];
|
|
96
96
|
for (var r in t) {
|
|
97
|
-
|
|
98
|
-
e[r] = t[r];
|
|
99
|
-
}
|
|
97
|
+
({}).hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
100
98
|
}
|
|
101
99
|
}
|
|
102
100
|
return e;
|
|
103
|
-
};
|
|
104
|
-
return h.apply(this, arguments);
|
|
101
|
+
}, m.apply(null, arguments);
|
|
105
102
|
}
|
|
106
|
-
function
|
|
107
|
-
if (
|
|
108
|
-
var t = g(e, n);
|
|
109
|
-
var r, o;
|
|
103
|
+
function h(e, n) {
|
|
104
|
+
if (null == e) return {};
|
|
105
|
+
var t, r, o = g(e, n);
|
|
110
106
|
if (Object.getOwnPropertySymbols) {
|
|
111
107
|
var a = Object.getOwnPropertySymbols(e);
|
|
112
|
-
for (
|
|
113
|
-
|
|
114
|
-
if (n.indexOf(r) >= 0) continue;
|
|
115
|
-
if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
|
|
116
|
-
t[r] = e[r];
|
|
108
|
+
for (r = 0; r < a.length; r++) {
|
|
109
|
+
t = a[r], n.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
117
110
|
}
|
|
118
111
|
}
|
|
119
|
-
return
|
|
112
|
+
return o;
|
|
120
113
|
}
|
|
121
114
|
function g(e, n) {
|
|
122
|
-
if (
|
|
115
|
+
if (null == e) return {};
|
|
123
116
|
var t = {};
|
|
124
|
-
var r
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
t[o] = e[o];
|
|
117
|
+
for (var r in e) {
|
|
118
|
+
if ({}.hasOwnProperty.call(e, r)) {
|
|
119
|
+
if (n.includes(r)) continue;
|
|
120
|
+
t[r] = e[r];
|
|
121
|
+
}
|
|
130
122
|
}
|
|
131
123
|
return t;
|
|
132
124
|
}
|
|
133
|
-
var
|
|
125
|
+
var P = {
|
|
134
126
|
description: a().string,
|
|
135
127
|
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
136
128
|
inset: a().bool,
|
|
137
129
|
panelId: a().any.isRequired,
|
|
138
130
|
title: a().node.isRequired
|
|
139
131
|
};
|
|
140
|
-
var
|
|
132
|
+
var O = function e(n, t) {
|
|
141
133
|
var r = {
|
|
142
134
|
enterprise: {
|
|
143
135
|
compact: "8px",
|
|
@@ -150,29 +142,29 @@
|
|
|
150
142
|
};
|
|
151
143
|
return r[n][t];
|
|
152
144
|
};
|
|
153
|
-
var
|
|
145
|
+
var j = {
|
|
154
146
|
flexShrink: 1
|
|
155
147
|
};
|
|
156
148
|
/**
|
|
157
149
|
* `Accordion.Panel` operates as a container component for content in an `Accordion`.
|
|
158
|
-
*/ function
|
|
159
|
-
var n = e.panelId, o = e.inset, a =
|
|
150
|
+
*/ function C(e) {
|
|
151
|
+
var n = e.panelId, o = e.inset, a = h(e, [ "panelId", "inset" ]);
|
|
160
152
|
// @docs-props-type AccordionPanelPropsBase
|
|
161
153
|
var i = (0, y.useSplunkTheme)(), l = i.family, u = i.density;
|
|
162
|
-
var c = (0, t.useContext)(v),
|
|
163
|
-
var b =
|
|
164
|
-
var g = o !== undefined ? o :
|
|
165
|
-
|
|
154
|
+
var c = (0, t.useContext)(v), s = c.onChange, p = c.openPanelId, f = c.inset;
|
|
155
|
+
var b = p === n;
|
|
156
|
+
var g = o !== undefined ? o : f;
|
|
157
|
+
// Props are different based on controlled/uncontrolled
|
|
166
158
|
// For controlled, onChange required prop for controlled cases and must be defined.
|
|
167
|
-
var
|
|
168
|
-
onChange:
|
|
159
|
+
var P = s ? {
|
|
160
|
+
onChange: s,
|
|
169
161
|
open: b
|
|
170
162
|
} : {
|
|
171
163
|
onChange: undefined
|
|
172
164
|
};
|
|
173
|
-
var
|
|
165
|
+
var C = function e() {
|
|
174
166
|
if (g) {
|
|
175
|
-
var n =
|
|
167
|
+
var n = O(l, u);
|
|
176
168
|
return {
|
|
177
169
|
padding: n
|
|
178
170
|
};
|
|
@@ -180,153 +172,138 @@
|
|
|
180
172
|
return undefined;
|
|
181
173
|
};
|
|
182
174
|
|
|
183
|
-
return r().createElement(d(),
|
|
175
|
+
return r().createElement(d(), m({
|
|
184
176
|
panelId: n,
|
|
185
177
|
"data-test": "panel",
|
|
186
|
-
innerBodyStyles:
|
|
178
|
+
innerBodyStyles: C(),
|
|
187
179
|
"data-test-panel-id": n,
|
|
188
|
-
style:
|
|
189
|
-
}, a,
|
|
180
|
+
style: j
|
|
181
|
+
}, a, P));
|
|
190
182
|
}
|
|
191
|
-
|
|
192
|
-
/* harmony default export */ const
|
|
183
|
+
C.propTypes = P;
|
|
184
|
+
/* harmony default export */ const w = C;
|
|
193
185
|
// CONCATENATED MODULE: external "styled-components"
|
|
194
|
-
const
|
|
195
|
-
var
|
|
186
|
+
const S = require("styled-components");
|
|
187
|
+
var I = e.n(S);
|
|
196
188
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
197
|
-
const
|
|
198
|
-
var
|
|
189
|
+
const x = require("@splunk/react-ui/Box");
|
|
190
|
+
var _ = e.n(x);
|
|
199
191
|
// CONCATENATED MODULE: ./src/Accordion/AccordionStyles.ts
|
|
200
|
-
var
|
|
192
|
+
var k = I()(_()).withConfig({
|
|
201
193
|
displayName: "AccordionStyles__StyledBox",
|
|
202
194
|
componentId: "m39hyh-0"
|
|
203
195
|
})([ "", ";flex-direction:column;margin-bottom:0;", "" ], y.mixins.reset("flex"), (0,
|
|
204
196
|
y.pick)({
|
|
205
|
-
enterprise: (0,
|
|
197
|
+
enterprise: (0, S.css)([ "background:", ";" ], y.variables.backgroundColor)
|
|
206
198
|
}));
|
|
207
199
|
// CONCATENATED MODULE: ./src/Accordion/Accordion.tsx
|
|
208
|
-
function
|
|
200
|
+
function E(e) {
|
|
209
201
|
"@babel/helpers - typeof";
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
R = function e(n) {
|
|
216
|
-
return n && typeof Symbol === "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
return R(e);
|
|
202
|
+
return E = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
203
|
+
return typeof e;
|
|
204
|
+
} : function(e) {
|
|
205
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
206
|
+
}, E(e);
|
|
220
207
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
208
|
+
function T() {
|
|
209
|
+
return T = Object.assign ? Object.assign.bind() : function(e) {
|
|
223
210
|
for (var n = 1; n < arguments.length; n++) {
|
|
224
211
|
var t = arguments[n];
|
|
225
212
|
for (var r in t) {
|
|
226
|
-
|
|
227
|
-
e[r] = t[r];
|
|
228
|
-
}
|
|
213
|
+
({}).hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
229
214
|
}
|
|
230
215
|
}
|
|
231
216
|
return e;
|
|
232
|
-
};
|
|
233
|
-
return q.apply(this, arguments);
|
|
217
|
+
}, T.apply(null, arguments);
|
|
234
218
|
}
|
|
235
|
-
function
|
|
236
|
-
if (!(e instanceof n))
|
|
237
|
-
throw new TypeError("Cannot call a class as a function");
|
|
238
|
-
}
|
|
219
|
+
function q(e, n) {
|
|
220
|
+
if (!(e instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
239
221
|
}
|
|
240
|
-
function
|
|
222
|
+
function R(e, n) {
|
|
241
223
|
for (var t = 0; t < n.length; t++) {
|
|
242
224
|
var r = n[t];
|
|
243
|
-
r.enumerable = r.enumerable ||
|
|
244
|
-
r.
|
|
245
|
-
if ("value" in r) r.writable = true;
|
|
246
|
-
Object.defineProperty(e, r.key, r);
|
|
225
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
226
|
+
Object.defineProperty(e, G(r.key), r);
|
|
247
227
|
}
|
|
248
228
|
}
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
229
|
+
function B(e, n, t) {
|
|
230
|
+
return n && R(e.prototype, n), t && R(e, t), Object.defineProperty(e, "prototype", {
|
|
231
|
+
writable: !1
|
|
232
|
+
}), e;
|
|
253
233
|
}
|
|
254
|
-
function
|
|
255
|
-
if (typeof n !== "
|
|
256
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
257
|
-
}
|
|
234
|
+
function A(e, n) {
|
|
235
|
+
if ("function" != typeof n && null !== n) throw new TypeError("Super expression must either be null or a function");
|
|
258
236
|
e.prototype = Object.create(n && n.prototype, {
|
|
259
237
|
constructor: {
|
|
260
238
|
value: e,
|
|
261
|
-
writable:
|
|
262
|
-
configurable:
|
|
239
|
+
writable: !0,
|
|
240
|
+
configurable: !0
|
|
263
241
|
}
|
|
264
|
-
})
|
|
265
|
-
|
|
242
|
+
}), Object.defineProperty(e, "prototype", {
|
|
243
|
+
writable: !1
|
|
244
|
+
}), n && M(e, n);
|
|
266
245
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
};
|
|
272
|
-
return D(e, n);
|
|
246
|
+
function M(e, n) {
|
|
247
|
+
return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, n) {
|
|
248
|
+
return e.__proto__ = n, e;
|
|
249
|
+
}, M(e, n);
|
|
273
250
|
}
|
|
274
|
-
function
|
|
251
|
+
function N(e) {
|
|
275
252
|
var n = V();
|
|
276
|
-
return function
|
|
277
|
-
var r = z(e)
|
|
253
|
+
return function() {
|
|
254
|
+
var t, r = z(e);
|
|
278
255
|
if (n) {
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
} else
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
return N(this, o);
|
|
256
|
+
var o = z(this).constructor;
|
|
257
|
+
t = Reflect.construct(r, arguments, o);
|
|
258
|
+
} else t = r.apply(this, arguments);
|
|
259
|
+
return D(this, t);
|
|
285
260
|
};
|
|
286
261
|
}
|
|
287
|
-
function
|
|
288
|
-
if (n && (
|
|
289
|
-
|
|
290
|
-
}
|
|
262
|
+
function D(e, n) {
|
|
263
|
+
if (n && ("object" == E(n) || "function" == typeof n)) return n;
|
|
264
|
+
if (void 0 !== n) throw new TypeError("Derived constructors may only return object or undefined");
|
|
291
265
|
return U(e);
|
|
292
266
|
}
|
|
293
267
|
function U(e) {
|
|
294
|
-
if (
|
|
295
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
296
|
-
}
|
|
268
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
297
269
|
return e;
|
|
298
270
|
}
|
|
299
271
|
function V() {
|
|
300
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
301
|
-
if (Reflect.construct.sham) return false;
|
|
302
|
-
if (typeof Proxy === "function") return true;
|
|
303
272
|
try {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return
|
|
308
|
-
}
|
|
273
|
+
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
274
|
+
} catch (e) {}
|
|
275
|
+
return (V = function n() {
|
|
276
|
+
return !!e;
|
|
277
|
+
})();
|
|
309
278
|
}
|
|
310
279
|
function z(e) {
|
|
311
|
-
z = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
312
|
-
return
|
|
313
|
-
};
|
|
314
|
-
return z(e);
|
|
280
|
+
return z = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
281
|
+
return e.__proto__ || Object.getPrototypeOf(e);
|
|
282
|
+
}, z(e);
|
|
315
283
|
}
|
|
316
284
|
function F(e, n, t) {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
285
|
+
return (n = G(n)) in e ? Object.defineProperty(e, n, {
|
|
286
|
+
value: t,
|
|
287
|
+
enumerable: !0,
|
|
288
|
+
configurable: !0,
|
|
289
|
+
writable: !0
|
|
290
|
+
}) : e[n] = t, e;
|
|
291
|
+
}
|
|
292
|
+
function G(e) {
|
|
293
|
+
var n = H(e, "string");
|
|
294
|
+
return "symbol" == E(n) ? n : n + "";
|
|
295
|
+
}
|
|
296
|
+
function H(e, n) {
|
|
297
|
+
if ("object" != E(e) || !e) return e;
|
|
298
|
+
var t = e[Symbol.toPrimitive];
|
|
299
|
+
if (void 0 !== t) {
|
|
300
|
+
var r = t.call(e, n || "default");
|
|
301
|
+
if ("object" != E(r)) return r;
|
|
302
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
326
303
|
}
|
|
327
|
-
return e;
|
|
304
|
+
return ("string" === n ? String : Number)(e);
|
|
328
305
|
}
|
|
329
|
-
/** @public */ var
|
|
306
|
+
/** @public */ var J = {
|
|
330
307
|
children: a().node,
|
|
331
308
|
defaultOpenPanelId: a().any,
|
|
332
309
|
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
@@ -334,16 +311,16 @@
|
|
|
334
311
|
onChange: a().func,
|
|
335
312
|
openPanelId: a().any
|
|
336
313
|
};
|
|
337
|
-
var
|
|
314
|
+
var K = {
|
|
338
315
|
inset: false
|
|
339
316
|
};
|
|
340
|
-
var
|
|
341
|
-
|
|
342
|
-
var n =
|
|
317
|
+
var L = function(e) {
|
|
318
|
+
A(o, e);
|
|
319
|
+
var n = N(o);
|
|
343
320
|
// @docs-props-type AccordionPropsBase
|
|
344
321
|
function o(e) {
|
|
345
322
|
var t;
|
|
346
|
-
|
|
323
|
+
q(this, o);
|
|
347
324
|
t = n.call(this, e);
|
|
348
325
|
F(U(t), "controlledExternally", void 0);
|
|
349
326
|
F(U(t), "getCurrentOpenPanel", (function() {
|
|
@@ -375,7 +352,7 @@
|
|
|
375
352
|
if (false) {}
|
|
376
353
|
return t;
|
|
377
354
|
}
|
|
378
|
-
|
|
355
|
+
B(o, [ {
|
|
379
356
|
key: "componentDidUpdate",
|
|
380
357
|
value: function e(n) {
|
|
381
358
|
if (false) {}
|
|
@@ -391,28 +368,29 @@
|
|
|
391
368
|
value: function e() {
|
|
392
369
|
var n = this.props, a = n.children, i = n.elementRef, l = n.inset;
|
|
393
370
|
var u = this.isControlled() ? this.props.openPanelId : this.state.openPanelId;
|
|
394
|
-
var
|
|
371
|
+
var s = t.Children.toArray(a).filter(t.isValidElement);
|
|
395
372
|
// remove false, null, 0, etc
|
|
396
373
|
|
|
397
|
-
return r().createElement(
|
|
374
|
+
return r().createElement(k, T({
|
|
398
375
|
"data-test": "accordion",
|
|
399
376
|
"data-test-open-panel-id": u,
|
|
400
377
|
elementRef: i
|
|
401
|
-
},
|
|
378
|
+
}, p()(this.props, c()(o.propTypes))), r().createElement(b.Provider, {
|
|
379
|
+
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
402
380
|
value: {
|
|
403
381
|
onChange: this.handleChange,
|
|
404
382
|
openPanelId: u,
|
|
405
383
|
inset: l
|
|
406
384
|
}
|
|
407
|
-
},
|
|
385
|
+
}, s));
|
|
408
386
|
}
|
|
409
387
|
} ]);
|
|
410
388
|
return o;
|
|
411
389
|
}(t.Component);
|
|
412
|
-
F(
|
|
413
|
-
F(
|
|
414
|
-
F(
|
|
415
|
-
/* harmony default export */ const
|
|
390
|
+
F(L, "propTypes", J);
|
|
391
|
+
F(L, "defaultProps", K);
|
|
392
|
+
F(L, "Panel", w);
|
|
393
|
+
/* harmony default export */ const Q = L;
|
|
416
394
|
// CONCATENATED MODULE: ./src/Accordion/index.ts
|
|
417
395
|
module.exports = n;
|
|
418
396
|
/******/})();
|
package/Anchor.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/ e.n =
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
11
|
+
/******/ e.n = r => {
|
|
12
|
+
/******/ var t = r && r.__esModule ?
|
|
13
|
+
/******/ () => r["default"]
|
|
14
|
+
/******/ : () => r
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(t, {
|
|
17
|
+
a: t
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return t;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (
|
|
27
|
-
/******/ for (var n in
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
26
|
+
/******/ e.d = (r, t) => {
|
|
27
|
+
/******/ for (var n in t) {
|
|
28
|
+
/******/ if (e.o(t, n) && !e.o(r, n)) {
|
|
29
|
+
/******/ Object.defineProperty(r, n, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: t[n]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/******/
|
|
38
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
39
|
/******/ (() => {
|
|
40
|
-
/******/ e.o = (e,
|
|
40
|
+
/******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,16 +56,16 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var r = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
64
|
-
default: () => /* reexport */
|
|
63
|
+
e.d(r, {
|
|
64
|
+
default: () => /* reexport */ y
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var n = e.n(
|
|
67
|
+
const t = require("react");
|
|
68
|
+
var n = e.n(t);
|
|
69
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
70
|
const o = require("prop-types");
|
|
71
71
|
var i = e.n(o);
|
|
@@ -76,73 +76,65 @@
|
|
|
76
76
|
const l = require("@splunk/themes");
|
|
77
77
|
// CONCATENATED MODULE: ./src/Anchor/AnchorStyles.ts
|
|
78
78
|
// TODO: name is deprecated, it's only defined here to satisfy ts - remove/replace
|
|
79
|
-
var
|
|
79
|
+
var s = c().a.withConfig({
|
|
80
80
|
displayName: "AnchorStyles__StyledAnchor",
|
|
81
81
|
componentId: "sc-1m9yzet-0"
|
|
82
82
|
})([ "", ";color:inherit;font-size:inherit;font-family:inherit;font-weight:inherit;line-height:inherit;text-decoration:inherit;text-rendering:inherit;text-transform:inherit;cursor:pointer;margin:1px;&:hover::after{content:' #';opacity:0.5;}&:focus,&:active{box-shadow:", ";&::after{content:' #';opacity:0.5;}}" ], l.mixins.reset("inline"), l.variables.focusShadow);
|
|
83
83
|
// CONCATENATED MODULE: ./src/Anchor/Anchor.tsx
|
|
84
84
|
function u() {
|
|
85
|
-
u = Object.assign
|
|
86
|
-
for (var
|
|
87
|
-
var
|
|
88
|
-
for (var n in
|
|
89
|
-
|
|
90
|
-
e[n] = r[n];
|
|
91
|
-
}
|
|
85
|
+
return u = Object.assign ? Object.assign.bind() : function(e) {
|
|
86
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
87
|
+
var t = arguments[r];
|
|
88
|
+
for (var n in t) {
|
|
89
|
+
({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
92
90
|
}
|
|
93
91
|
}
|
|
94
92
|
return e;
|
|
95
|
-
};
|
|
96
|
-
return u.apply(this, arguments);
|
|
93
|
+
}, u.apply(null, arguments);
|
|
97
94
|
}
|
|
98
|
-
function
|
|
99
|
-
if (
|
|
100
|
-
var
|
|
101
|
-
var n, o;
|
|
95
|
+
function f(e, r) {
|
|
96
|
+
if (null == e) return {};
|
|
97
|
+
var t, n, o = d(e, r);
|
|
102
98
|
if (Object.getOwnPropertySymbols) {
|
|
103
99
|
var i = Object.getOwnPropertySymbols(e);
|
|
104
|
-
for (
|
|
105
|
-
|
|
106
|
-
if (t.indexOf(n) >= 0) continue;
|
|
107
|
-
if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
|
|
108
|
-
r[n] = e[n];
|
|
100
|
+
for (n = 0; n < i.length; n++) {
|
|
101
|
+
t = i[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
109
102
|
}
|
|
110
103
|
}
|
|
111
|
-
return
|
|
104
|
+
return o;
|
|
112
105
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
115
|
-
var
|
|
116
|
-
var n
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
r[o] = e[o];
|
|
106
|
+
function d(e, r) {
|
|
107
|
+
if (null == e) return {};
|
|
108
|
+
var t = {};
|
|
109
|
+
for (var n in e) {
|
|
110
|
+
if ({}.hasOwnProperty.call(e, n)) {
|
|
111
|
+
if (r.includes(n)) continue;
|
|
112
|
+
t[n] = e[n];
|
|
113
|
+
}
|
|
122
114
|
}
|
|
123
|
-
return
|
|
115
|
+
return t;
|
|
124
116
|
}
|
|
125
|
-
var
|
|
117
|
+
var p = {
|
|
126
118
|
children: i().node,
|
|
127
119
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
128
120
|
name: i().string.isRequired
|
|
129
121
|
};
|
|
130
122
|
/**
|
|
131
123
|
* `Anchor` is a utility component used to add a fragment link to an element.
|
|
132
|
-
*/ function
|
|
133
|
-
var
|
|
124
|
+
*/ function h(e) {
|
|
125
|
+
var r = e.children, t = e.elementRef, o = e.name, i = f(e, [ "children", "elementRef", "name" ]);
|
|
134
126
|
// @docs-props-type AnchorPropsBase
|
|
135
127
|
|
|
136
|
-
return n().createElement(
|
|
128
|
+
return n().createElement(s, u({
|
|
137
129
|
"data-test": "anchor",
|
|
138
|
-
ref:
|
|
130
|
+
ref: t
|
|
139
131
|
}, i, {
|
|
140
132
|
name: o,
|
|
141
133
|
href: "#".concat(o)
|
|
142
|
-
}),
|
|
134
|
+
}), r);
|
|
143
135
|
}
|
|
144
|
-
|
|
145
|
-
/* harmony default export */ const
|
|
136
|
+
h.propTypes = p;
|
|
137
|
+
/* harmony default export */ const y = h;
|
|
146
138
|
// CONCATENATED MODULE: ./src/Anchor/index.ts
|
|
147
|
-
module.exports =
|
|
139
|
+
module.exports = r;
|
|
148
140
|
/******/})();
|