@splunk/react-ui 5.0.0-beta.2 → 5.0.0-beta.4
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 +185 -243
- package/Animation.js +2 -2
- package/Button.js +4 -4
- package/ButtonGroup.js +10 -11
- package/ButtonSimple.js +48 -42
- package/CHANGELOG.md +26 -0
- package/CHANGELOG.v5.mdx +81 -0
- package/Calendar.js +352 -469
- package/Card.js +178 -321
- package/Chip.js +154 -296
- package/Clickable.js +30 -30
- package/Code.js +64 -49
- package/Color.js +546 -462
- package/ComboBox.js +575 -767
- package/Date.js +144 -136
- package/Divider.js +29 -26
- package/DualListbox.js +441 -444
- package/File.js +707 -981
- package/FormRows.js +260 -286
- package/Image.js +124 -251
- package/JSONTree.js +129 -129
- package/Layout.d.ts +2 -0
- package/Link.js +12 -12
- package/MIGRATION.mdx +22 -1
- package/MIGRATION.v5.mdx +12 -1
- package/Menu.js +76 -76
- package/Message.js +77 -100
- package/MessageBar.js +141 -251
- package/Modal.js +42 -40
- package/ModalLayer.js +12 -12
- package/Multiselect.js +1989 -2362
- package/NonInteractiveCheckbox.js +30 -118
- package/Number.js +75 -73
- package/Popover.js +348 -350
- package/Progress.js +1 -1
- package/RadioBar.js +136 -136
- package/Resize.js +62 -65
- package/Scroll.js +2 -2
- package/Select.js +281 -283
- package/SidePanel.js +53 -55
- package/Slider.js +370 -364
- package/SlidingPanels.js +100 -102
- package/SplitButton.js +170 -343
- package/StaticContent.js +15 -13
- package/StepBar.js +61 -60
- package/Switch.js +150 -164
- package/TabBar.js +544 -417
- package/Table.js +1711 -1540
- package/Text.js +28 -26
- package/TextArea.js +26 -26
- package/Tooltip.js +416 -562
- package/TransitionOpen.js +179 -158
- package/Tree.d.ts +2 -0
- package/WaitSpinner.js +1 -1
- package/package.json +7 -9
- package/types/src/Accordion/Accordion.d.ts +14 -21
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Animation/Animation.d.ts +2 -3
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/useAnimationToggle.d.ts +1 -1
- package/types/src/Button/Button.d.ts +2 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -3
- package/types/src/ButtonSimple/mixin.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/{DateTable.d.ts → DateGrid.d.ts} +9 -9
- package/types/src/Calendar/Day.d.ts +8 -4
- package/types/src/Card/Card.d.ts +27 -14
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Clickable/Clickable.d.ts +1 -1
- package/types/src/CollapsiblePanel/SingleOpenPanelGroupContext.d.ts +0 -1
- package/types/src/Color/Color.d.ts +3 -3
- package/types/src/Color/ColorInput.d.ts +27 -0
- package/types/src/Color/Palette.d.ts +11 -18
- package/types/src/Color/Swatch.d.ts +3 -1
- package/types/src/ComboBox/ComboBox.d.ts +46 -50
- package/types/src/ComboBox/Option.d.ts +34 -18
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/Date/Date.d.ts +3 -2
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/DefinitionList/DefinitionListContext.d.ts +0 -1
- package/types/src/Divider/Divider.d.ts +14 -6
- package/types/src/Divider/docs/examples/Appearance.d.ts +3 -0
- package/types/src/DualListbox/DualListbox.d.ts +5 -1
- package/types/src/File/File.d.ts +6 -6
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/File/Item.d.ts +11 -3
- package/types/src/File/ItemIcon.d.ts +7 -0
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +8 -8
- package/types/src/FormRows/FormRowsContext.d.ts +1 -2
- package/types/src/FormRows/Row.d.ts +2 -2
- package/types/src/FormRows/RowInternal.d.ts +1 -1
- package/types/src/FormRows/SortableRow.d.ts +3 -3
- package/types/src/FormRows/docs/examples/Basic.d.ts +2 -2
- package/types/src/FormRows/docs/examples/Header.d.ts +2 -2
- package/types/src/FormRows/docs/examples/Menu.d.ts +2 -2
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +2 -2
- package/types/src/Image/Image.d.ts +1 -4
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/Layout/Layout.d.ts +1 -0
- package/types/src/Link/icons/External.d.ts +1 -2
- package/types/src/Menu/Divider.d.ts +1 -1
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/MessageBar/MessageBar.d.ts +5 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/Multiselect/Compact.d.ts +49 -21
- package/types/src/Multiselect/Multiselect.d.ts +73 -30
- package/types/src/Multiselect/Normal.d.ts +46 -57
- package/types/src/Multiselect/Option.d.ts +42 -18
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +9 -8
- package/types/src/Number/Number.d.ts +1 -0
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Popover/Popover.d.ts +1 -1
- package/types/src/Popover/PopoverMenuContext.d.ts +0 -1
- package/types/src/RadioBar/RadioBar.d.ts +1 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Search/Search.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +2 -2
- package/types/src/SidePanel/SidePanel.d.ts +8 -3
- package/types/src/Slider/Slider.d.ts +1 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/getStepMarksBackground.d.ts +8 -0
- package/types/src/SlidingPanels/Panel.d.ts +2 -2
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SplitButton/Item.d.ts +34 -20
- package/types/src/SplitButton/SplitButton.d.ts +4 -1
- package/types/src/StaticContent/StaticContent.d.ts +3 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +1 -1
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/Switch/Switch.d.ts +1 -9
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/TabBar/Tab.d.ts +12 -5
- package/types/src/TabBar/TabBar.d.ts +4 -3
- package/types/src/TabBar/TabBarContext.d.ts +7 -2
- package/types/src/Table/Head.d.ts +4 -15
- package/types/src/Table/HeadCell.d.ts +23 -25
- package/types/src/Table/HeadDropdownCell.d.ts +23 -26
- package/types/src/Table/HeadInner.d.ts +4 -10
- package/types/src/Table/Row.d.ts +6 -6
- package/types/src/Table/Table.d.ts +3 -8
- package/types/src/Table/TableContext.d.ts +0 -1
- package/types/src/Table/Toggle.d.ts +1 -1
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/Tooltip/Tooltip.d.ts +26 -58
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/TransitionOpen/TransitionOpen.d.ts +6 -1
- package/types/src/Tree/TreeContext.d.ts +0 -1
- package/types/src/useForceUpdate/useForceUpdate.d.ts +0 -1
- package/types/src/useResizeObserver/useResizeObserver.d.ts +2 -1
- package/types/src/utils/types.d.ts +2 -3
- package/useResizeObserver.js +26 -19
- package/types/src/File/Icon.d.ts +0 -3
- package/types/src/File/IconCloud.d.ts +0 -3
- package/types/src/File/PaperClip.d.ts +0 -3
- package/types/src/File/Retry.d.ts +0 -2
- package/types/src/File/Trash.d.ts +0 -3
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +0 -3
- package/types/src/Image/icons/Cross.d.ts +0 -3
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +0 -3
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +0 -3
- package/types/src/Tooltip/InfoIcon.d.ts +0 -4
package/Modal.js
CHANGED
|
@@ -97,16 +97,16 @@
|
|
|
97
97
|
const h = require("@splunk/react-ui/Box");
|
|
98
98
|
var O = e.n(h);
|
|
99
99
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
100
|
-
const
|
|
100
|
+
const w = require("@splunk/themes");
|
|
101
101
|
// CONCATENATED MODULE: ./src/Modal/BodyStyles.ts
|
|
102
|
-
var
|
|
102
|
+
var S = g()(O()).withConfig({
|
|
103
103
|
displayName: "BodyStyles__StyledBox",
|
|
104
104
|
componentId: "lv54z7-0"
|
|
105
105
|
})([ "background-color:", ";padding:", " ", ";flex:0 1 auto;overflow:auto;" ], (0,
|
|
106
|
-
|
|
107
|
-
enterprise:
|
|
108
|
-
prisma:
|
|
109
|
-
}),
|
|
106
|
+
w.pick)({
|
|
107
|
+
enterprise: w.variables.backgroundColor,
|
|
108
|
+
prisma: w.variables.backgroundColorDialog
|
|
109
|
+
}), w.variables.spacingMedium, w.variables.spacingXLarge);
|
|
110
110
|
// CONCATENATED MODULE: ./src/Modal/Body.tsx
|
|
111
111
|
function j() {
|
|
112
112
|
return j = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
u(e);
|
|
200
200
|
}), []);
|
|
201
201
|
|
|
202
|
-
return n().createElement(
|
|
202
|
+
return n().createElement(S, j({
|
|
203
203
|
"data-test": "body"
|
|
204
204
|
}, o, {
|
|
205
205
|
elementRef: c
|
|
@@ -216,9 +216,9 @@
|
|
|
216
216
|
var B = g().div.withConfig({
|
|
217
217
|
displayName: "FooterStyles__StyledDiv",
|
|
218
218
|
componentId: "yszcmv-0"
|
|
219
|
-
})([ "flex:0 0 auto;padding:", " ", ";background-color:", ";& > button{min-width:80px;}", "" ],
|
|
220
|
-
|
|
221
|
-
auto: (0, m.css)([ "display:flex;align-items:center;justify-content:flex-end;gap:", ";& > *:is(button,*){flex:0 0 auto;}& >:not(button){margin-right:auto;}&:has(button + button + button) > button:first-of-type{margin-right:auto;}" ],
|
|
219
|
+
})([ "flex:0 0 auto;padding:", " ", ";background-color:", ";& > button{min-width:80px;}", "" ], w.variables.spacingLarge, w.variables.spacingXLarge, w.variables.backgroundColorDialog, (0,
|
|
220
|
+
w.pickVariant)("$layout", {
|
|
221
|
+
auto: (0, m.css)([ "display:flex;align-items:center;justify-content:flex-end;gap:", ";& > *:is(button,*){flex:0 0 auto;}& >:not(button){margin-right:auto;}&:has(button + button + button) > button:first-of-type{margin-right:auto;}" ], w.variables.spacingSmall),
|
|
222
222
|
none: (0, m.css)([ "text-align:right;" ])
|
|
223
223
|
}));
|
|
224
224
|
// CONCATENATED MODULE: ./src/Modal/ModalContext.tsx
|
|
@@ -271,7 +271,8 @@
|
|
|
271
271
|
var c = u === "both" || u === "footer";
|
|
272
272
|
|
|
273
273
|
return n().createElement(n().Fragment, null, c && n().createElement(R(), {
|
|
274
|
-
"
|
|
274
|
+
appearance: "weak",
|
|
275
|
+
decorative: true
|
|
275
276
|
}), n().createElement(B, L({
|
|
276
277
|
"data-test": "footer",
|
|
277
278
|
$layout: i
|
|
@@ -291,29 +292,29 @@
|
|
|
291
292
|
var Q = g()(O()).withConfig({
|
|
292
293
|
displayName: "HeaderStyles__Styled",
|
|
293
294
|
componentId: "sc-1y722ut-0"
|
|
294
|
-
})([ "", ";flex:0 0 auto;position:relative;min-height:", ";background-color:", ";padding:", " ", ";gap:", ";" ],
|
|
295
|
-
|
|
295
|
+
})([ "", ";flex:0 0 auto;position:relative;min-height:", ";background-color:", ";padding:", " ", ";gap:", ";" ], w.mixins.reset("flex"), (0,
|
|
296
|
+
w.pick)({
|
|
296
297
|
enterprise: "30px",
|
|
297
298
|
prisma: {
|
|
298
299
|
comfortable: "60px",
|
|
299
300
|
compact: "52px"
|
|
300
301
|
}
|
|
301
|
-
}), (0,
|
|
302
|
-
enterprise:
|
|
303
|
-
prisma:
|
|
304
|
-
}),
|
|
302
|
+
}), (0, w.pick)({
|
|
303
|
+
enterprise: w.variables.backgroundColor,
|
|
304
|
+
prisma: w.variables.backgroundColorDialog
|
|
305
|
+
}), w.variables.spacingLarge, w.variables.spacingXLarge, w.variables.spacingSmall);
|
|
305
306
|
var Y = g().div.withConfig({
|
|
306
307
|
displayName: "HeaderStyles__StyledTitleWrapper",
|
|
307
308
|
componentId: "sc-1y722ut-1"
|
|
308
|
-
})([ "", ";flex-direction:column;align-self:center;margin-right:auto;" ],
|
|
309
|
+
})([ "", ";flex-direction:column;align-self:center;margin-right:auto;" ], w.mixins.reset("flex"));
|
|
309
310
|
var Z = g().h2.withConfig({
|
|
310
311
|
displayName: "HeaderStyles__StyledTitle",
|
|
311
312
|
componentId: "sc-1y722ut-2"
|
|
312
|
-
})([ "", ";", " margin:0;overflow-wrap:break-word;" ],
|
|
313
|
+
})([ "", ";", " margin:0;overflow-wrap:break-word;" ], w.mixins.reset("block"), w.mixins.typography("title3"));
|
|
313
314
|
var ee = g().p.withConfig({
|
|
314
315
|
displayName: "HeaderStyles__StyledSubtitle",
|
|
315
316
|
componentId: "sc-1y722ut-3"
|
|
316
|
-
})([ "", ";overflow-wrap:break-word;" ],
|
|
317
|
+
})([ "", ";overflow-wrap:break-word;" ], w.mixins.reset("block"));
|
|
317
318
|
var re = g()(J()).withConfig({
|
|
318
319
|
displayName: "HeaderStyles__StyledButton",
|
|
319
320
|
componentId: "sc-1y722ut-4"
|
|
@@ -396,18 +397,19 @@
|
|
|
396
397
|
icon: ae,
|
|
397
398
|
onClick: m
|
|
398
399
|
})), y && n().createElement(R(), {
|
|
399
|
-
"
|
|
400
|
+
appearance: "weak",
|
|
401
|
+
decorative: true
|
|
400
402
|
}));
|
|
401
403
|
}
|
|
402
404
|
le.propTypes = ie;
|
|
403
405
|
/* harmony default export */ const ue = le;
|
|
404
|
-
// CONCATENATED MODULE: external "react-spring"
|
|
405
|
-
const ce = require("react-spring");
|
|
406
|
+
// CONCATENATED MODULE: external "@react-spring/web"
|
|
407
|
+
const ce = require("@react-spring/web");
|
|
406
408
|
// CONCATENATED MODULE: ./src/Modal/ModalStyles.ts
|
|
407
409
|
var se = g()(ce.animated.div).withConfig({
|
|
408
410
|
displayName: "ModalStyles__Styled",
|
|
409
411
|
componentId: "sc-5fn8ds-0"
|
|
410
|
-
})([ "", ";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:", ";box-shadow:", ";max-height:calc(100vh - ", " * 4);max-width:calc(100vw - ", " * 4);border-radius:", ";overflow:hidden;" ],
|
|
412
|
+
})([ "", ";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:", ";box-shadow:", ";max-height:calc(100vh - ", " * 4);max-width:calc(100vw - ", " * 4);border-radius:", ";overflow:hidden;" ], w.mixins.reset("flex"), w.variables.zindexModal, w.variables.modalShadow, w.variables.spacingXLarge, w.variables.spacingXLarge, w.variables.borderRadius);
|
|
411
413
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
412
414
|
/**
|
|
413
415
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -491,19 +493,19 @@
|
|
|
491
493
|
}, ge(e);
|
|
492
494
|
}
|
|
493
495
|
function he(e, r) {
|
|
494
|
-
return Ce(e) || je(e, r) ||
|
|
496
|
+
return Ce(e) || je(e, r) || we(e, r) || Oe();
|
|
495
497
|
}
|
|
496
498
|
function Oe() {
|
|
497
499
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
498
500
|
}
|
|
499
|
-
function
|
|
501
|
+
function we(e, r) {
|
|
500
502
|
if (e) {
|
|
501
|
-
if ("string" == typeof e) return
|
|
503
|
+
if ("string" == typeof e) return Se(e, r);
|
|
502
504
|
var t = {}.toString.call(e).slice(8, -1);
|
|
503
|
-
return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
505
|
+
return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Se(e, r) : void 0;
|
|
504
506
|
}
|
|
505
507
|
}
|
|
506
|
-
function
|
|
508
|
+
function Se(e, r) {
|
|
507
509
|
(null == r || r > e.length) && (r = e.length);
|
|
508
510
|
for (var t = 0, n = Array(r); t < r; t++) {
|
|
509
511
|
n[t] = e[t];
|
|
@@ -568,9 +570,9 @@
|
|
|
568
570
|
returnFocus: i().oneOfType([ i().func, i().object ]).isRequired
|
|
569
571
|
};
|
|
570
572
|
function Ee(e) {
|
|
571
|
-
var r = e.children, o = e.closeOnClickAway, i = e.elementRef, a = e.divider, u = a === void 0 ? "both" : a, s = e.initialFocus, v = s === void 0 ? "first" : s, b = e.onRequestClose, m = e.open, g = m === void 0 ? false : m, h = e.returnFocus, O = e.style,
|
|
573
|
+
var r = e.children, o = e.closeOnClickAway, i = e.elementRef, a = e.divider, u = a === void 0 ? "both" : a, s = e.initialFocus, v = s === void 0 ? "first" : s, b = e.onRequestClose, m = e.open, g = m === void 0 ? false : m, h = e.returnFocus, O = e.style, w = xe(e, [ "children", "closeOnClickAway", "elementRef", "divider", "initialFocus", "onRequestClose", "open", "returnFocus", "style" ]);
|
|
572
574
|
// @docs-props-type ModalPropsBase
|
|
573
|
-
var
|
|
575
|
+
var S = (0, t.useRef)(null);
|
|
574
576
|
// this timeout ensures that the Modal is finished rendering before setting the focus
|
|
575
577
|
var j;
|
|
576
578
|
var C = (0, t.useRef)(undefined);
|
|
@@ -606,13 +608,13 @@
|
|
|
606
608
|
// and it has a nested defer() call, which we want to avoid
|
|
607
609
|
if (x.current !== v) {
|
|
608
610
|
if (v === "first") {
|
|
609
|
-
if (
|
|
611
|
+
if (S.current) {
|
|
610
612
|
/* eslint-disable prefer-destructuring */
|
|
611
613
|
/* prefer-desturucting leads to harder-to-read syntax in this case */
|
|
612
|
-
e = (0, d.getSortedTabbableElements)(
|
|
614
|
+
e = (0, d.getSortedTabbableElements)(S.current)[0];
|
|
613
615
|
/* eslint-enable prefer-destructuring */ }
|
|
614
616
|
} else if (v === "container") {
|
|
615
|
-
e =
|
|
617
|
+
e = S.current;
|
|
616
618
|
} else if (ge(v) === "object") {
|
|
617
619
|
e = v;
|
|
618
620
|
}
|
|
@@ -653,12 +655,12 @@
|
|
|
653
655
|
D(_);
|
|
654
656
|
}), [ D, v, g, j, _ ]);
|
|
655
657
|
var M = (0, t.useCallback)((function(e) {
|
|
656
|
-
|
|
658
|
+
S.current = e;
|
|
657
659
|
fe(i, e);
|
|
658
|
-
}), [ i,
|
|
660
|
+
}), [ i, S ]);
|
|
659
661
|
var R = function e(r) {
|
|
660
|
-
if (
|
|
661
|
-
(0, d.handleTab)(
|
|
662
|
+
if (S.current !== null) {
|
|
663
|
+
(0, d.handleTab)(S.current, r.nativeEvent);
|
|
662
664
|
}
|
|
663
665
|
};
|
|
664
666
|
var B = (0, t.useCallback)((function(e) {
|
|
@@ -697,10 +699,10 @@
|
|
|
697
699
|
role: "dialog",
|
|
698
700
|
"aria-labelledby": I,
|
|
699
701
|
"aria-describedby": q
|
|
700
|
-
},
|
|
702
|
+
}, w), n().createElement(N.Provider, {
|
|
701
703
|
value: F
|
|
702
704
|
}, a));
|
|
703
|
-
}), [ r, L, M, I, q,
|
|
705
|
+
}), [ r, L, M, I, q, w, O, F ]);
|
|
704
706
|
var X = o ? "interactive" : "visible";
|
|
705
707
|
|
|
706
708
|
return n().createElement(f(), {
|
package/ModalLayer.js
CHANGED
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
// CONCATENATED MODULE: external "styled-components"
|
|
78
78
|
const u = require("styled-components");
|
|
79
79
|
var p = e.n(u);
|
|
80
|
-
// CONCATENATED MODULE: external "react-spring"
|
|
81
|
-
const s = require("react-spring");
|
|
80
|
+
// CONCATENATED MODULE: external "@react-spring/web"
|
|
81
|
+
const s = require("@react-spring/web");
|
|
82
82
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
83
83
|
const f = require("@splunk/themes");
|
|
84
84
|
// CONCATENATED MODULE: ./src/ModalLayer/ModalLayerStyles.ts
|
|
@@ -88,15 +88,15 @@
|
|
|
88
88
|
componentId: "sc-1sa3n1j-0"
|
|
89
89
|
})([ "", ";background-color:", ";z-index:", ";" ], y, f.variables.backgroundColorScrim, f.variables.zindexModalBackdrop);
|
|
90
90
|
// CONCATENATED MODULE: ./src/ModalLayer/ModalLayer.tsx
|
|
91
|
-
function
|
|
91
|
+
function b(e) {
|
|
92
92
|
"@babel/helpers - typeof";
|
|
93
|
-
return
|
|
93
|
+
return b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
94
94
|
return typeof e;
|
|
95
95
|
} : function(e) {
|
|
96
96
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
97
|
-
},
|
|
97
|
+
}, b(e);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function v(e, t) {
|
|
100
100
|
var r = Object.keys(e);
|
|
101
101
|
if (Object.getOwnPropertySymbols) {
|
|
102
102
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
function m(e) {
|
|
110
110
|
for (var t = 1; t < arguments.length; t++) {
|
|
111
111
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
112
|
-
t % 2 ?
|
|
112
|
+
t % 2 ? v(Object(r), !0).forEach((function(t) {
|
|
113
113
|
E(e, t, r[t]);
|
|
114
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
114
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : v(Object(r)).forEach((function(t) {
|
|
115
115
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
116
116
|
}));
|
|
117
117
|
}
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
function S(e, t) {
|
|
164
|
-
if (t && ("object" ==
|
|
164
|
+
if (t && ("object" == b(t) || "function" == typeof t)) return t;
|
|
165
165
|
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
166
166
|
return k(e);
|
|
167
167
|
}
|
|
@@ -192,14 +192,14 @@
|
|
|
192
192
|
}
|
|
193
193
|
function q(e) {
|
|
194
194
|
var t = M(e, "string");
|
|
195
|
-
return "symbol" ==
|
|
195
|
+
return "symbol" == b(t) ? t : t + "";
|
|
196
196
|
}
|
|
197
197
|
function M(e, t) {
|
|
198
|
-
if ("object" !=
|
|
198
|
+
if ("object" != b(e) || !e) return e;
|
|
199
199
|
var r = e[Symbol.toPrimitive];
|
|
200
200
|
if (void 0 !== r) {
|
|
201
201
|
var n = r.call(e, t || "default");
|
|
202
|
-
if ("object" !=
|
|
202
|
+
if ("object" != b(n)) return n;
|
|
203
203
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
204
204
|
}
|
|
205
205
|
return ("string" === t ? String : Number)(e);
|