@splunk/react-ui 4.5.1 → 4.6.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 +7 -6
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +8 -8
- package/ButtonGroup.js +4 -4
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +33 -0
- package/Calendar.js +6 -6
- package/Card.js +25 -30
- package/CardLayout.js +4 -4
- package/Chip.js +2 -2
- package/Clickable.js +39 -13
- package/CloseButton.js +4 -4
- package/Code.js +8 -7
- package/CollapsiblePanel.js +6 -9
- package/Color.js +42 -42
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +2 -2
- package/Concertina.js +4 -4
- package/ControlGroup.js +22 -29
- package/Date.js +4 -4
- package/DefinitionList.js +2 -2
- package/Dropdown.js +2 -2
- package/EventListener.js +4 -4
- package/FetchOptions.js +8 -8
- package/File.js +7 -7
- package/FormRows.js +16 -18
- package/Heading.js +2 -2
- package/Image.js +6 -6
- package/JSONTree.js +2 -2
- package/Layer.js +8 -8
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +26 -14
- package/Menu.js +17 -17
- package/Message.js +10 -10
- package/Modal.js +43 -14
- package/ModalLayer.js +4 -4
- package/Monogram.js +2 -2
- package/Multiselect.js +255 -13
- package/Number.js +2 -2
- package/Paginator.js +10 -10
- package/Paragraph.js +2 -2
- package/Popover.js +6 -6
- package/Progress.js +6 -6
- package/Resize.js +2 -2
- package/ResultsMenu.js +6 -6
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +2 -2
- package/ScrollContainerContext.js +2 -2
- package/Search.js +4 -4
- package/Select.js +254 -13
- package/SidePanel.js +6 -6
- package/Slider.js +12 -6
- package/SlidingPanels.js +2 -2
- package/StaticContent.js +2 -2
- package/StepBar.js +6 -6
- package/Switch.js +4 -4
- package/TabLayout.js +4 -4
- package/Table.js +37 -36
- package/Text.js +144 -127
- package/Tooltip.js +2 -2
- package/TransitionOpen.js +62 -37
- package/WaitSpinner.js +2 -2
- package/cypress/plugins/index.ts +15 -0
- package/cypress/support/commands.ts +1 -0
- package/cypress/support/index.ts +9 -0
- package/cypress.json +12 -0
- package/package.json +15 -6
- package/types/src/Clickable/Clickable.d.ts +12 -2
- package/types/src/Clickable/NavigationProvider.d.ts +12 -2
- package/types/src/Color/Color.d.ts +3 -3
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/Modal/Modal.d.ts +2 -0
- package/types/src/Modal/ModalContext.d.ts +6 -0
- package/types/src/Multiselect/Multiselect.d.ts +1 -0
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/RadioBar/RadioBar.d.ts +3 -3
- package/types/src/Select/Select.d.ts +8 -3
- package/types/src/Select/SelectBase.d.ts +16 -4
- package/types/src/Select/matchUtils.d.ts +12 -0
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/Text/Text.d.ts +12 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -0
- package/usePrevious.js +2 -2
package/Markdown.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 109);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 109:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -134,11 +134,11 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
134
134
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "commonmark-react-renderer"
|
|
137
|
-
var external_commonmark_react_renderer_ = __webpack_require__(
|
|
137
|
+
var external_commonmark_react_renderer_ = __webpack_require__(87);
|
|
138
138
|
var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "commonmark"
|
|
141
|
-
var external_commonmark_ = __webpack_require__(
|
|
141
|
+
var external_commonmark_ = __webpack_require__(88);
|
|
142
142
|
var external_commonmark_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_);
|
|
143
143
|
|
|
144
144
|
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
@@ -227,14 +227,18 @@ function MarkdownCode(_ref) {
|
|
|
227
227
|
MarkdownCode.propTypes = MarkdownCode_propTypes;
|
|
228
228
|
/* harmony default export */ var renderers_MarkdownCode = (MarkdownCode);
|
|
229
229
|
// EXTERNAL MODULE: external "@splunk/react-ui/Code"
|
|
230
|
-
var Code_ = __webpack_require__(
|
|
230
|
+
var Code_ = __webpack_require__(89);
|
|
231
231
|
var Code_default = /*#__PURE__*/__webpack_require__.n(Code_);
|
|
232
232
|
|
|
233
|
+
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
234
|
+
var i18n_ = __webpack_require__(5);
|
|
235
|
+
|
|
233
236
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownCodeBlock.tsx
|
|
234
237
|
|
|
235
238
|
|
|
236
239
|
|
|
237
240
|
|
|
241
|
+
|
|
238
242
|
var MarkdownCodeBlock_propTypes = {
|
|
239
243
|
literal: external_prop_types_default.a.string,
|
|
240
244
|
language: external_prop_types_default.a.string
|
|
@@ -245,6 +249,7 @@ function MarkdownCodeBlock(_ref) {
|
|
|
245
249
|
language = _ref.language;
|
|
246
250
|
return /*#__PURE__*/external_react_default.a.createElement(StyledCodeBlock, null, /*#__PURE__*/external_react_default.a.createElement(Code_default.a // TS: let the Markdown component handle unsupported language tags
|
|
247
251
|
, {
|
|
252
|
+
"aria-label": Object(i18n_["_"])("Code Block"),
|
|
248
253
|
language: language,
|
|
249
254
|
value: literal,
|
|
250
255
|
style: {
|
|
@@ -256,7 +261,7 @@ function MarkdownCodeBlock(_ref) {
|
|
|
256
261
|
MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
|
|
257
262
|
/* harmony default export */ var renderers_MarkdownCodeBlock = (MarkdownCodeBlock);
|
|
258
263
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
259
|
-
var Heading_ = __webpack_require__(
|
|
264
|
+
var Heading_ = __webpack_require__(66);
|
|
260
265
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
261
266
|
|
|
262
267
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
|
|
@@ -327,7 +332,7 @@ function MarkdownLink(_ref) {
|
|
|
327
332
|
MarkdownLink.propTypes = MarkdownLink_propTypes;
|
|
328
333
|
/* harmony default export */ var renderers_MarkdownLink = (MarkdownLink);
|
|
329
334
|
// EXTERNAL MODULE: external "@splunk/react-ui/List"
|
|
330
|
-
var List_ = __webpack_require__(
|
|
335
|
+
var List_ = __webpack_require__(73);
|
|
331
336
|
var List_default = /*#__PURE__*/__webpack_require__.n(List_);
|
|
332
337
|
|
|
333
338
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
|
|
@@ -365,7 +370,7 @@ function MarkdownItem(_ref) {
|
|
|
365
370
|
MarkdownItem.propTypes = MarkdownItem_propTypes;
|
|
366
371
|
/* harmony default export */ var renderers_MarkdownItem = (MarkdownItem);
|
|
367
372
|
// EXTERNAL MODULE: external "@splunk/react-ui/Paragraph"
|
|
368
|
-
var Paragraph_ = __webpack_require__(
|
|
373
|
+
var Paragraph_ = __webpack_require__(90);
|
|
369
374
|
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_);
|
|
370
375
|
|
|
371
376
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
|
|
@@ -511,14 +516,21 @@ module.exports = require("styled-components");
|
|
|
511
516
|
|
|
512
517
|
/***/ }),
|
|
513
518
|
|
|
514
|
-
/***/
|
|
519
|
+
/***/ 5:
|
|
520
|
+
/***/ (function(module, exports) {
|
|
521
|
+
|
|
522
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
523
|
+
|
|
524
|
+
/***/ }),
|
|
525
|
+
|
|
526
|
+
/***/ 66:
|
|
515
527
|
/***/ (function(module, exports) {
|
|
516
528
|
|
|
517
529
|
module.exports = require("@splunk/react-ui/Heading");
|
|
518
530
|
|
|
519
531
|
/***/ }),
|
|
520
532
|
|
|
521
|
-
/***/
|
|
533
|
+
/***/ 73:
|
|
522
534
|
/***/ (function(module, exports) {
|
|
523
535
|
|
|
524
536
|
module.exports = require("@splunk/react-ui/List");
|
|
@@ -532,28 +544,28 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
532
544
|
|
|
533
545
|
/***/ }),
|
|
534
546
|
|
|
535
|
-
/***/
|
|
547
|
+
/***/ 87:
|
|
536
548
|
/***/ (function(module, exports) {
|
|
537
549
|
|
|
538
550
|
module.exports = require("commonmark-react-renderer");
|
|
539
551
|
|
|
540
552
|
/***/ }),
|
|
541
553
|
|
|
542
|
-
/***/
|
|
554
|
+
/***/ 88:
|
|
543
555
|
/***/ (function(module, exports) {
|
|
544
556
|
|
|
545
557
|
module.exports = require("commonmark");
|
|
546
558
|
|
|
547
559
|
/***/ }),
|
|
548
560
|
|
|
549
|
-
/***/
|
|
561
|
+
/***/ 89:
|
|
550
562
|
/***/ (function(module, exports) {
|
|
551
563
|
|
|
552
564
|
module.exports = require("@splunk/react-ui/Code");
|
|
553
565
|
|
|
554
566
|
/***/ }),
|
|
555
567
|
|
|
556
|
-
/***/
|
|
568
|
+
/***/ 90:
|
|
557
569
|
/***/ (function(module, exports) {
|
|
558
570
|
|
|
559
571
|
module.exports = require("@splunk/react-ui/Paragraph");
|
package/Menu.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 111);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 111:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -233,7 +233,7 @@ Divider.filterConsecutive = true;
|
|
|
233
233
|
Divider.filterLast = true;
|
|
234
234
|
/* harmony default export */ var Menu_Divider = (Divider);
|
|
235
235
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
236
|
-
var Heading_ = __webpack_require__(
|
|
236
|
+
var Heading_ = __webpack_require__(66);
|
|
237
237
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
238
238
|
|
|
239
239
|
// EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
|
|
@@ -337,10 +337,10 @@ Heading.filterLast = true;
|
|
|
337
337
|
var external_lodash_ = __webpack_require__(4);
|
|
338
338
|
|
|
339
339
|
// EXTERNAL MODULE: ./src/icons/Check.tsx
|
|
340
|
-
var Check = __webpack_require__(
|
|
340
|
+
var Check = __webpack_require__(50);
|
|
341
341
|
|
|
342
342
|
// EXTERNAL MODULE: external "@splunk/react-icons/TriangleRightSmall"
|
|
343
|
-
var TriangleRightSmall_ = __webpack_require__(
|
|
343
|
+
var TriangleRightSmall_ = __webpack_require__(91);
|
|
344
344
|
var TriangleRightSmall_default = /*#__PURE__*/__webpack_require__.n(TriangleRightSmall_);
|
|
345
345
|
|
|
346
346
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -382,7 +382,7 @@ var Clickable_ = __webpack_require__(12);
|
|
|
382
382
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
383
383
|
|
|
384
384
|
// EXTERNAL MODULE: external "@splunk/react-ui/Switch"
|
|
385
|
-
var Switch_ = __webpack_require__(
|
|
385
|
+
var Switch_ = __webpack_require__(67);
|
|
386
386
|
var Switch_default = /*#__PURE__*/__webpack_require__.n(Switch_);
|
|
387
387
|
|
|
388
388
|
// CONCATENATED MODULE: ./src/Menu/ItemStyles.ts
|
|
@@ -859,7 +859,7 @@ var ItemWithTheme = Object(themes_["withSplunkTheme"])(Item_Item);
|
|
|
859
859
|
ItemWithTheme.propTypes = Item_Item.propTypes;
|
|
860
860
|
/* harmony default export */ var Menu_Item = (ItemWithTheme);
|
|
861
861
|
// EXTERNAL MODULE: external "@splunk/react-ui/Scroll"
|
|
862
|
-
var Scroll_ = __webpack_require__(
|
|
862
|
+
var Scroll_ = __webpack_require__(63);
|
|
863
863
|
var Scroll_default = /*#__PURE__*/__webpack_require__.n(Scroll_);
|
|
864
864
|
|
|
865
865
|
// CONCATENATED MODULE: ./src/Menu/MenuStyles.ts
|
|
@@ -1188,21 +1188,21 @@ module.exports = require("lodash/omit");
|
|
|
1188
1188
|
|
|
1189
1189
|
/***/ }),
|
|
1190
1190
|
|
|
1191
|
-
/***/
|
|
1191
|
+
/***/ 46:
|
|
1192
1192
|
/***/ (function(module, exports) {
|
|
1193
1193
|
|
|
1194
1194
|
module.exports = require("@splunk/react-icons/Check");
|
|
1195
1195
|
|
|
1196
1196
|
/***/ }),
|
|
1197
1197
|
|
|
1198
|
-
/***/
|
|
1198
|
+
/***/ 50:
|
|
1199
1199
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1200
1200
|
|
|
1201
1201
|
"use strict";
|
|
1202
1202
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Check; });
|
|
1203
1203
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1204
1204
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1205
|
-
/* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1205
|
+
/* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46);
|
|
1206
1206
|
/* harmony import */ var _splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Check__WEBPACK_IMPORTED_MODULE_1__);
|
|
1207
1207
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1208
1208
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1270,21 +1270,21 @@ function SVG(props) {
|
|
|
1270
1270
|
|
|
1271
1271
|
/***/ }),
|
|
1272
1272
|
|
|
1273
|
-
/***/
|
|
1273
|
+
/***/ 63:
|
|
1274
1274
|
/***/ (function(module, exports) {
|
|
1275
1275
|
|
|
1276
1276
|
module.exports = require("@splunk/react-ui/Scroll");
|
|
1277
1277
|
|
|
1278
1278
|
/***/ }),
|
|
1279
1279
|
|
|
1280
|
-
/***/
|
|
1280
|
+
/***/ 66:
|
|
1281
1281
|
/***/ (function(module, exports) {
|
|
1282
1282
|
|
|
1283
1283
|
module.exports = require("@splunk/react-ui/Heading");
|
|
1284
1284
|
|
|
1285
1285
|
/***/ }),
|
|
1286
1286
|
|
|
1287
|
-
/***/
|
|
1287
|
+
/***/ 67:
|
|
1288
1288
|
/***/ (function(module, exports) {
|
|
1289
1289
|
|
|
1290
1290
|
module.exports = require("@splunk/react-ui/Switch");
|
|
@@ -1409,17 +1409,17 @@ Icon.defaultProps = defaultProps;
|
|
|
1409
1409
|
|
|
1410
1410
|
/***/ }),
|
|
1411
1411
|
|
|
1412
|
-
/***/
|
|
1412
|
+
/***/ 9:
|
|
1413
1413
|
/***/ (function(module, exports) {
|
|
1414
1414
|
|
|
1415
|
-
module.exports = require("@splunk/
|
|
1415
|
+
module.exports = require("@splunk/ui-utils/keyboard");
|
|
1416
1416
|
|
|
1417
1417
|
/***/ }),
|
|
1418
1418
|
|
|
1419
|
-
/***/
|
|
1419
|
+
/***/ 91:
|
|
1420
1420
|
/***/ (function(module, exports) {
|
|
1421
1421
|
|
|
1422
|
-
module.exports = require("@splunk/
|
|
1422
|
+
module.exports = require("@splunk/react-icons/TriangleRightSmall");
|
|
1423
1423
|
|
|
1424
1424
|
/***/ })
|
|
1425
1425
|
|
package/Message.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 110);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 110:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -474,7 +474,7 @@ var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
|
474
474
|
}));
|
|
475
475
|
|
|
476
476
|
// EXTERNAL MODULE: external "@splunk/react-icons/Error"
|
|
477
|
-
var Error_ = __webpack_require__(
|
|
477
|
+
var Error_ = __webpack_require__(68);
|
|
478
478
|
var Error_default = /*#__PURE__*/__webpack_require__.n(Error_);
|
|
479
479
|
|
|
480
480
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -511,7 +511,7 @@ function AlertFilled(props) {
|
|
|
511
511
|
}, props));
|
|
512
512
|
}
|
|
513
513
|
// EXTERNAL MODULE: external "@splunk/react-icons/InfoCircle"
|
|
514
|
-
var InfoCircle_ = __webpack_require__(
|
|
514
|
+
var InfoCircle_ = __webpack_require__(92);
|
|
515
515
|
var InfoCircle_default = /*#__PURE__*/__webpack_require__.n(InfoCircle_);
|
|
516
516
|
|
|
517
517
|
// CONCATENATED MODULE: ./src/icons/InfoFilled.tsx
|
|
@@ -542,7 +542,7 @@ function InfoFilled(props) {
|
|
|
542
542
|
}, props));
|
|
543
543
|
}
|
|
544
544
|
// EXTERNAL MODULE: external "@splunk/react-icons/Success"
|
|
545
|
-
var Success_ = __webpack_require__(
|
|
545
|
+
var Success_ = __webpack_require__(69);
|
|
546
546
|
var Success_default = /*#__PURE__*/__webpack_require__.n(Success_);
|
|
547
547
|
|
|
548
548
|
// CONCATENATED MODULE: ./src/icons/SuccessFilled.tsx
|
|
@@ -573,7 +573,7 @@ function SuccessFilled(props) {
|
|
|
573
573
|
}, props));
|
|
574
574
|
}
|
|
575
575
|
// EXTERNAL MODULE: external "@splunk/react-icons/Warning"
|
|
576
|
-
var Warning_ = __webpack_require__(
|
|
576
|
+
var Warning_ = __webpack_require__(93);
|
|
577
577
|
var Warning_default = /*#__PURE__*/__webpack_require__.n(Warning_);
|
|
578
578
|
|
|
579
579
|
// CONCATENATED MODULE: ./src/icons/WarningFilled.tsx
|
|
@@ -807,14 +807,14 @@ function SVG(props) {
|
|
|
807
807
|
|
|
808
808
|
/***/ }),
|
|
809
809
|
|
|
810
|
-
/***/
|
|
810
|
+
/***/ 68:
|
|
811
811
|
/***/ (function(module, exports) {
|
|
812
812
|
|
|
813
813
|
module.exports = require("@splunk/react-icons/Error");
|
|
814
814
|
|
|
815
815
|
/***/ }),
|
|
816
816
|
|
|
817
|
-
/***/
|
|
817
|
+
/***/ 69:
|
|
818
818
|
/***/ (function(module, exports) {
|
|
819
819
|
|
|
820
820
|
module.exports = require("@splunk/react-icons/Success");
|
|
@@ -946,14 +946,14 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
946
946
|
|
|
947
947
|
/***/ }),
|
|
948
948
|
|
|
949
|
-
/***/
|
|
949
|
+
/***/ 92:
|
|
950
950
|
/***/ (function(module, exports) {
|
|
951
951
|
|
|
952
952
|
module.exports = require("@splunk/react-icons/InfoCircle");
|
|
953
953
|
|
|
954
954
|
/***/ }),
|
|
955
955
|
|
|
956
|
-
/***/
|
|
956
|
+
/***/ 93:
|
|
957
957
|
/***/ (function(module, exports) {
|
|
958
958
|
|
|
959
959
|
module.exports = require("@splunk/react-icons/Warning");
|
package/Modal.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 113);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 113:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -126,12 +133,15 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
126
133
|
var external_lodash_ = __webpack_require__(4);
|
|
127
134
|
|
|
128
135
|
// EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
|
|
129
|
-
var ModalLayer_ = __webpack_require__(
|
|
136
|
+
var ModalLayer_ = __webpack_require__(70);
|
|
130
137
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
131
138
|
|
|
132
139
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
133
140
|
var focus_ = __webpack_require__(25);
|
|
134
141
|
|
|
142
|
+
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
143
|
+
var id_ = __webpack_require__(10);
|
|
144
|
+
|
|
135
145
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
136
146
|
var ScrollContainerContext_ = __webpack_require__(35);
|
|
137
147
|
|
|
@@ -271,7 +281,7 @@ function Footer(_ref) {
|
|
|
271
281
|
Footer.propTypes = Footer_propTypes;
|
|
272
282
|
/* harmony default export */ var Modal_Footer = (Footer);
|
|
273
283
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
274
|
-
var CloseButton_ = __webpack_require__(
|
|
284
|
+
var CloseButton_ = __webpack_require__(64);
|
|
275
285
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
276
286
|
|
|
277
287
|
// CONCATENATED MODULE: ./src/Modal/HeaderStyles.ts
|
|
@@ -364,6 +374,10 @@ var StyledClose = external_styled_components_default.a.div.withConfig({
|
|
|
364
374
|
componentId: "sc-1y722ut-6"
|
|
365
375
|
})(["", ";position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"], themes_["mixins"].reset('block'));
|
|
366
376
|
|
|
377
|
+
// CONCATENATED MODULE: ./src/Modal/ModalContext.tsx
|
|
378
|
+
|
|
379
|
+
var ModalContext = /*#__PURE__*/Object(external_react_["createContext"])({});
|
|
380
|
+
/* harmony default export */ var Modal_ModalContext = (ModalContext);
|
|
367
381
|
// CONCATENATED MODULE: ./src/Modal/Header.tsx
|
|
368
382
|
function Header_extends() { Header_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 Header_extends.apply(this, arguments); }
|
|
369
383
|
|
|
@@ -375,6 +389,7 @@ function Header_objectWithoutPropertiesLoose(source, excluded) { if (source == n
|
|
|
375
389
|
|
|
376
390
|
|
|
377
391
|
|
|
392
|
+
|
|
378
393
|
var Header_propTypes = {
|
|
379
394
|
children: external_prop_types_default.a.node,
|
|
380
395
|
icon: external_prop_types_default.a.node,
|
|
@@ -395,10 +410,14 @@ function Header(_ref) {
|
|
|
395
410
|
otherProps = Header_objectWithoutProperties(_ref, ["children", "icon", "onRequestClose", "subtitle", "title"]);
|
|
396
411
|
|
|
397
412
|
// @docs-props-type StepPropsBase
|
|
413
|
+
var _useContext = Object(external_react_["useContext"])(Modal_ModalContext),
|
|
414
|
+
titleIdContext = _useContext.titleId;
|
|
415
|
+
|
|
398
416
|
return /*#__PURE__*/external_react_default.a.createElement(HeaderStyles_StyledBox, Header_extends({
|
|
399
417
|
$close: !!onRequestClose,
|
|
400
418
|
"data-test": "header"
|
|
401
419
|
}, otherProps), icon && /*#__PURE__*/external_react_default.a.createElement(StyledIcon, null, icon), title ? /*#__PURE__*/external_react_default.a.createElement(StyledTitleWrapper, null, title && /*#__PURE__*/external_react_default.a.createElement(StyledTitle, {
|
|
420
|
+
id: titleIdContext,
|
|
402
421
|
"data-test": "title"
|
|
403
422
|
}, title), subtitle && /*#__PURE__*/external_react_default.a.createElement(StyledSubtitle, {
|
|
404
423
|
"data-test": "subtitle"
|
|
@@ -477,6 +496,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
477
496
|
|
|
478
497
|
|
|
479
498
|
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
/** @public */
|
|
502
|
+
|
|
480
503
|
var Modal_propTypes = {
|
|
481
504
|
children: external_prop_types_default.a.node,
|
|
482
505
|
initialFocus: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.oneOf(['first', 'container'])]),
|
|
@@ -493,16 +516,14 @@ var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
|
493
516
|
|
|
494
517
|
var _super = _createSuper(Modal);
|
|
495
518
|
|
|
496
|
-
|
|
519
|
+
// @docs-props-type ModalPropsBase
|
|
520
|
+
// this timeout ensures that the Modal is finished rendering before setting the focus
|
|
521
|
+
function Modal(props) {
|
|
497
522
|
var _this;
|
|
498
523
|
|
|
499
524
|
_classCallCheck(this, Modal);
|
|
500
525
|
|
|
501
|
-
|
|
502
|
-
args[_key] = arguments[_key];
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
526
|
+
_this = _super.call(this, props);
|
|
506
527
|
|
|
507
528
|
_defineProperty(_assertThisInitialized(_this), "el", null);
|
|
508
529
|
|
|
@@ -510,6 +531,8 @@ var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
|
510
531
|
|
|
511
532
|
_defineProperty(_assertThisInitialized(_this), "initialFocus", null);
|
|
512
533
|
|
|
534
|
+
_defineProperty(_assertThisInitialized(_this), "headerTitleId", void 0);
|
|
535
|
+
|
|
513
536
|
_defineProperty(_assertThisInitialized(_this), "getDefaultMotionStyle", function () {
|
|
514
537
|
return {
|
|
515
538
|
top: 0
|
|
@@ -594,10 +617,16 @@ var Modal_Modal = /*#__PURE__*/function (_Component) {
|
|
|
594
617
|
}),
|
|
595
618
|
tabIndex: -1,
|
|
596
619
|
onKeyDown: _this.handleModalKeyDown,
|
|
597
|
-
role: "dialog"
|
|
598
|
-
|
|
620
|
+
role: "dialog",
|
|
621
|
+
"aria-labelledby": _this.headerTitleId
|
|
622
|
+
}, Object(external_lodash_["omit"])(_this.props, [].concat(_toConsumableArray(Object(external_lodash_["keys"])(Modal.propTypes)), ['style']))), /*#__PURE__*/external_react_default.a.createElement(Modal_ModalContext.Provider, {
|
|
623
|
+
value: {
|
|
624
|
+
titleId: _this.headerTitleId
|
|
625
|
+
}
|
|
626
|
+
}, clonedChildren));
|
|
599
627
|
});
|
|
600
628
|
|
|
629
|
+
_this.headerTitleId = Object(id_["createDOMID"])('titleId');
|
|
601
630
|
return _this;
|
|
602
631
|
}
|
|
603
632
|
|
|
@@ -696,14 +725,14 @@ module.exports = require("lodash");
|
|
|
696
725
|
|
|
697
726
|
/***/ }),
|
|
698
727
|
|
|
699
|
-
/***/
|
|
728
|
+
/***/ 64:
|
|
700
729
|
/***/ (function(module, exports) {
|
|
701
730
|
|
|
702
731
|
module.exports = require("@splunk/react-ui/CloseButton");
|
|
703
732
|
|
|
704
733
|
/***/ }),
|
|
705
734
|
|
|
706
|
-
/***/
|
|
735
|
+
/***/ 70:
|
|
707
736
|
/***/ (function(module, exports) {
|
|
708
737
|
|
|
709
738
|
module.exports = require("@splunk/react-ui/ModalLayer");
|
package/ModalLayer.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 156);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 156:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -123,7 +123,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
123
123
|
var Animation_ = __webpack_require__(30);
|
|
124
124
|
|
|
125
125
|
// EXTERNAL MODULE: external "@splunk/react-ui/Layer"
|
|
126
|
-
var Layer_ = __webpack_require__(
|
|
126
|
+
var Layer_ = __webpack_require__(52);
|
|
127
127
|
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -328,7 +328,7 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
328
328
|
|
|
329
329
|
/***/ }),
|
|
330
330
|
|
|
331
|
-
/***/
|
|
331
|
+
/***/ 52:
|
|
332
332
|
/***/ (function(module, exports) {
|
|
333
333
|
|
|
334
334
|
module.exports = require("@splunk/react-ui/Layer");
|
package/Monogram.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 157);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 157:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|