@splunk/react-ui 4.9.0 → 4.12.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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +24 -48
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +63 -6
- package/Calendar.js +39 -39
- package/Card.js +54 -68
- package/CardLayout.js +14 -35
- package/Chip.js +19 -19
- package/Clickable.js +28 -13
- package/CloseButton.js +15 -15
- package/Code.js +8 -5
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +7 -7
- package/ComboBox.js +19 -14
- package/Concertina.js +13 -13
- package/ControlGroup.js +28 -18
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/EventListener.js +4 -4
- package/File.js +31 -31
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +21 -21
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +26 -29
- package/Menu.js +53 -53
- package/Message.js +33 -33
- package/MessageBar.js +46 -39
- package/Modal.js +8 -8
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +101 -97
- package/Number.js +6 -6
- package/Paginator.js +46 -49
- package/Paragraph.js +2 -2
- package/Popover.js +18 -13
- package/Progress.js +8 -8
- package/RadioBar.js +145 -41
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +62 -41
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +19 -18
- package/Select.js +81 -79
- package/SidePanel.js +4 -4
- package/Slider.js +8 -8
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +4 -4
- package/Table.js +119 -92
- package/Text.js +121 -241
- package/TextArea.js +1444 -0
- package/Tooltip.js +17 -6
- package/TransitionOpen.js +20 -10
- package/Typography.js +225 -0
- package/WaitSpinner.js +4 -4
- package/cypress.json +1 -0
- package/package.json +21 -8
- package/stubs-splunkui.d.ts +13 -0
- package/test-runner-jest.config.js +38 -0
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Button/Button.d.ts +0 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +15 -5
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/JSONTree/JSONTree.d.ts +2 -2
- package/types/src/JSONTree/TreeNode.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Markdown/Markdown.d.ts +2 -3
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Multiselect/Compact.d.ts +11 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -5
- package/types/src/Multiselect/Normal.d.ts +11 -4
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +1 -0
- package/types/src/Popover/PopoverContext.d.ts +0 -1
- package/types/src/RadioBar/Option.d.ts +10 -2
- package/types/src/RadioBar/RadioBar.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +8 -2
- package/types/src/Search/Search.d.ts +4 -0
- package/types/src/Select/Select.d.ts +13 -4
- package/types/src/Select/SelectBase.d.ts +12 -4
- package/types/src/SidePanel/SidePanel.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/TabBar/TabBarContext.d.ts +0 -1
- package/types/src/Table/HeadCell.d.ts +7 -3
- package/types/src/Table/Table.d.ts +2 -3
- package/types/src/Table/TableContext.d.ts +5 -0
- package/types/src/Text/Text.d.ts +22 -12
- package/types/src/TextArea/TextArea.d.ts +190 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TextArea/index.d.ts +2 -0
- package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
- package/types/src/TransitionOpen/index.d.ts +1 -0
- package/types/src/Typography/Typography.d.ts +78 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
- package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
- package/types/src/Typography/index.d.ts +2 -0
- package/types/src/Typography/test/Typography.unit.d.ts +1 -0
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
package/MessageBar.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 = 160);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
@@ -115,7 +115,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 160:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -141,19 +141,19 @@ var ScreenReaderContent_ = __webpack_require__(14);
|
|
|
141
141
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: ./src/icons/AlertFilled.tsx
|
|
144
|
-
var AlertFilled = __webpack_require__(
|
|
144
|
+
var AlertFilled = __webpack_require__(71);
|
|
145
145
|
|
|
146
146
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
147
|
-
var CrossMark = __webpack_require__(
|
|
147
|
+
var CrossMark = __webpack_require__(19);
|
|
148
148
|
|
|
149
149
|
// EXTERNAL MODULE: ./src/icons/InfoFilled.tsx
|
|
150
|
-
var InfoFilled = __webpack_require__(
|
|
150
|
+
var InfoFilled = __webpack_require__(72);
|
|
151
151
|
|
|
152
152
|
// EXTERNAL MODULE: ./src/icons/SuccessFilled.tsx
|
|
153
|
-
var SuccessFilled = __webpack_require__(
|
|
153
|
+
var SuccessFilled = __webpack_require__(74);
|
|
154
154
|
|
|
155
155
|
// EXTERNAL MODULE: ./src/icons/WarningFilled.tsx
|
|
156
|
-
var WarningFilled = __webpack_require__(
|
|
156
|
+
var WarningFilled = __webpack_require__(75);
|
|
157
157
|
|
|
158
158
|
// EXTERNAL MODULE: external "styled-components"
|
|
159
159
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -164,7 +164,7 @@ var Box_ = __webpack_require__(8);
|
|
|
164
164
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
165
165
|
|
|
166
166
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
167
|
-
var Clickable_ = __webpack_require__(
|
|
167
|
+
var Clickable_ = __webpack_require__(12);
|
|
168
168
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
169
169
|
|
|
170
170
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -240,10 +240,16 @@ var MessageBarIconWrapper = external_styled_components_default.a.div.withConfig(
|
|
|
240
240
|
var MessageBarWrapper = external_styled_components_default()(Box_default.a).withConfig({
|
|
241
241
|
displayName: "MessageBarStyles__MessageBarWrapper",
|
|
242
242
|
componentId: "sc-1uyhzza-3"
|
|
243
|
-
})(["", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
})(["", ";display:flex;align-items:center;justify-content:center;min-height:40px;margin-bottom:", ";", ";word-wrap:break-word;color:", ";", ";"], themes_["mixins"].reset('block'), themes_["variables"].spacingSmall, function (_ref) {
|
|
244
|
+
var $hasCloseButton = _ref.$hasCloseButton;
|
|
245
|
+
return $hasCloseButton ? Object(external_styled_components_["css"])(["", ""], Object(themes_["pick"])({
|
|
246
|
+
prisma: Object(external_styled_components_["css"])(["padding:0 8px 0 32px;"]),
|
|
247
|
+
enterprise: Object(external_styled_components_["css"])(["padding:0 8px 0 38px;"])
|
|
248
|
+
})) : Object(external_styled_components_["css"])(["", ""], Object(themes_["pick"])({
|
|
249
|
+
prisma: Object(external_styled_components_["css"])(["padding:0 33px 0 32px;"]),
|
|
250
|
+
enterprise: Object(external_styled_components_["css"])(["padding:0 26px 0 32px;"])
|
|
251
|
+
}));
|
|
252
|
+
}, Object(themes_["pick"])({
|
|
247
253
|
prisma: Object(themes_["pickVariant"])('$type', {
|
|
248
254
|
info: {
|
|
249
255
|
light: themes_["variables"].contentColorActive,
|
|
@@ -342,7 +348,8 @@ function MessageBar(_ref) {
|
|
|
342
348
|
"data-test": "message-bar",
|
|
343
349
|
"data-test-type": type
|
|
344
350
|
}, otherProps, {
|
|
345
|
-
role: "region"
|
|
351
|
+
role: "region",
|
|
352
|
+
$hasCloseButton: Boolean(onRequestClose)
|
|
346
353
|
}), /*#__PURE__*/external_react_default.a.createElement(MessageBarIconWrapper, {
|
|
347
354
|
$type: type
|
|
348
355
|
}, /*#__PURE__*/external_react_default.a.createElement(Icon, {
|
|
@@ -370,21 +377,14 @@ MessageBar.propTypes = propTypes;
|
|
|
370
377
|
|
|
371
378
|
/***/ }),
|
|
372
379
|
|
|
373
|
-
/***/
|
|
374
|
-
/***/ (function(module, exports) {
|
|
375
|
-
|
|
376
|
-
module.exports = require("react");
|
|
377
|
-
|
|
378
|
-
/***/ }),
|
|
379
|
-
|
|
380
|
-
/***/ 20:
|
|
380
|
+
/***/ 19:
|
|
381
381
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
382
382
|
|
|
383
383
|
"use strict";
|
|
384
384
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
385
385
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
386
386
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
387
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
387
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
|
388
388
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
389
389
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
390
390
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -427,24 +427,24 @@ function CrossMark(props) {
|
|
|
427
427
|
|
|
428
428
|
/***/ }),
|
|
429
429
|
|
|
430
|
-
/***/
|
|
430
|
+
/***/ 2:
|
|
431
431
|
/***/ (function(module, exports) {
|
|
432
432
|
|
|
433
|
-
module.exports = require("
|
|
433
|
+
module.exports = require("react");
|
|
434
434
|
|
|
435
435
|
/***/ }),
|
|
436
436
|
|
|
437
|
-
/***/
|
|
437
|
+
/***/ 21:
|
|
438
438
|
/***/ (function(module, exports) {
|
|
439
439
|
|
|
440
|
-
module.exports = require("
|
|
440
|
+
module.exports = require("@splunk/react-icons/Close");
|
|
441
441
|
|
|
442
442
|
/***/ }),
|
|
443
443
|
|
|
444
|
-
/***/
|
|
444
|
+
/***/ 3:
|
|
445
445
|
/***/ (function(module, exports) {
|
|
446
446
|
|
|
447
|
-
module.exports = require("
|
|
447
|
+
module.exports = require("styled-components");
|
|
448
448
|
|
|
449
449
|
/***/ }),
|
|
450
450
|
|
|
@@ -458,6 +458,13 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
458
458
|
/***/ 50:
|
|
459
459
|
/***/ (function(module, exports) {
|
|
460
460
|
|
|
461
|
+
module.exports = require("@splunk/react-icons/Error");
|
|
462
|
+
|
|
463
|
+
/***/ }),
|
|
464
|
+
|
|
465
|
+
/***/ 51:
|
|
466
|
+
/***/ (function(module, exports) {
|
|
467
|
+
|
|
461
468
|
module.exports = require("@splunk/react-icons/Success");
|
|
462
469
|
|
|
463
470
|
/***/ }),
|
|
@@ -605,14 +612,14 @@ Icon.defaultProps = defaultProps;
|
|
|
605
612
|
|
|
606
613
|
/***/ }),
|
|
607
614
|
|
|
608
|
-
/***/
|
|
615
|
+
/***/ 71:
|
|
609
616
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
610
617
|
|
|
611
618
|
"use strict";
|
|
612
619
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AlertFilled; });
|
|
613
620
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
614
621
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
615
|
-
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
622
|
+
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50);
|
|
616
623
|
/* harmony import */ var _splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Error__WEBPACK_IMPORTED_MODULE_1__);
|
|
617
624
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
618
625
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -645,14 +652,14 @@ function AlertFilled(props) {
|
|
|
645
652
|
|
|
646
653
|
/***/ }),
|
|
647
654
|
|
|
648
|
-
/***/
|
|
655
|
+
/***/ 72:
|
|
649
656
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
650
657
|
|
|
651
658
|
"use strict";
|
|
652
659
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return InfoFilled; });
|
|
653
660
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
654
661
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
655
|
-
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
662
|
+
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(73);
|
|
656
663
|
/* harmony import */ var _splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_InfoCircle__WEBPACK_IMPORTED_MODULE_1__);
|
|
657
664
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
658
665
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -685,21 +692,21 @@ function InfoFilled(props) {
|
|
|
685
692
|
|
|
686
693
|
/***/ }),
|
|
687
694
|
|
|
688
|
-
/***/
|
|
695
|
+
/***/ 73:
|
|
689
696
|
/***/ (function(module, exports) {
|
|
690
697
|
|
|
691
698
|
module.exports = require("@splunk/react-icons/InfoCircle");
|
|
692
699
|
|
|
693
700
|
/***/ }),
|
|
694
701
|
|
|
695
|
-
/***/
|
|
702
|
+
/***/ 74:
|
|
696
703
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
697
704
|
|
|
698
705
|
"use strict";
|
|
699
706
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SuccessFilled; });
|
|
700
707
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
701
708
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
702
|
-
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
709
|
+
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51);
|
|
703
710
|
/* harmony import */ var _splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Success__WEBPACK_IMPORTED_MODULE_1__);
|
|
704
711
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
705
712
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -732,14 +739,14 @@ function SuccessFilled(props) {
|
|
|
732
739
|
|
|
733
740
|
/***/ }),
|
|
734
741
|
|
|
735
|
-
/***/
|
|
742
|
+
/***/ 75:
|
|
736
743
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
737
744
|
|
|
738
745
|
"use strict";
|
|
739
746
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WarningFilled; });
|
|
740
747
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
741
748
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
742
|
-
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
749
|
+
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76);
|
|
743
750
|
/* harmony import */ var _splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Warning__WEBPACK_IMPORTED_MODULE_1__);
|
|
744
751
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
745
752
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -772,7 +779,7 @@ function WarningFilled(props) {
|
|
|
772
779
|
|
|
773
780
|
/***/ }),
|
|
774
781
|
|
|
775
|
-
/***/
|
|
782
|
+
/***/ 76:
|
|
776
783
|
/***/ (function(module, exports) {
|
|
777
784
|
|
|
778
785
|
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 = 114);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 114:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -133,7 +133,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
133
133
|
var external_lodash_ = __webpack_require__(4);
|
|
134
134
|
|
|
135
135
|
// EXTERNAL MODULE: external "@splunk/react-ui/ModalLayer"
|
|
136
|
-
var ModalLayer_ = __webpack_require__(
|
|
136
|
+
var ModalLayer_ = __webpack_require__(77);
|
|
137
137
|
var ModalLayer_default = /*#__PURE__*/__webpack_require__.n(ModalLayer_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
@@ -143,7 +143,7 @@ var focus_ = __webpack_require__(26);
|
|
|
143
143
|
var id_ = __webpack_require__(10);
|
|
144
144
|
|
|
145
145
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
146
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
146
|
+
var ScrollContainerContext_ = __webpack_require__(37);
|
|
147
147
|
|
|
148
148
|
// EXTERNAL MODULE: external "styled-components"
|
|
149
149
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -279,7 +279,7 @@ function Footer(_ref) {
|
|
|
279
279
|
Footer.propTypes = Footer_propTypes;
|
|
280
280
|
/* harmony default export */ var Modal_Footer = (Footer);
|
|
281
281
|
// EXTERNAL MODULE: external "@splunk/react-ui/CloseButton"
|
|
282
|
-
var CloseButton_ = __webpack_require__(
|
|
282
|
+
var CloseButton_ = __webpack_require__(67);
|
|
283
283
|
var CloseButton_default = /*#__PURE__*/__webpack_require__.n(CloseButton_);
|
|
284
284
|
|
|
285
285
|
// CONCATENATED MODULE: ./src/Modal/HeaderStyles.ts
|
|
@@ -716,7 +716,7 @@ module.exports = require("styled-components");
|
|
|
716
716
|
|
|
717
717
|
/***/ }),
|
|
718
718
|
|
|
719
|
-
/***/
|
|
719
|
+
/***/ 37:
|
|
720
720
|
/***/ (function(module, exports) {
|
|
721
721
|
|
|
722
722
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
@@ -730,14 +730,14 @@ module.exports = require("lodash");
|
|
|
730
730
|
|
|
731
731
|
/***/ }),
|
|
732
732
|
|
|
733
|
-
/***/
|
|
733
|
+
/***/ 67:
|
|
734
734
|
/***/ (function(module, exports) {
|
|
735
735
|
|
|
736
736
|
module.exports = require("@splunk/react-ui/CloseButton");
|
|
737
737
|
|
|
738
738
|
/***/ }),
|
|
739
739
|
|
|
740
|
-
/***/
|
|
740
|
+
/***/ 77:
|
|
741
741
|
/***/ (function(module, exports) {
|
|
742
742
|
|
|
743
743
|
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 = 161);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 161:
|
|
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__(57);
|
|
127
127
|
var Layer_default = /*#__PURE__*/__webpack_require__.n(Layer_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -207,6 +207,8 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
207
207
|
|
|
208
208
|
_this = _super.call(this, props);
|
|
209
209
|
|
|
210
|
+
_defineProperty(_assertThisInitialized(_this), "allowAnimationUpdates", true);
|
|
211
|
+
|
|
210
212
|
_defineProperty(_assertThisInitialized(_this), "handleClickAway", function (event) {
|
|
211
213
|
var _this$props$onRequest, _this$props;
|
|
212
214
|
|
|
@@ -217,9 +219,11 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
217
219
|
});
|
|
218
220
|
|
|
219
221
|
_defineProperty(_assertThisInitialized(_this), "handleAnimationEnd", function () {
|
|
220
|
-
_this.
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
if (_this.allowAnimationUpdates) {
|
|
223
|
+
_this.setState({
|
|
224
|
+
animating: false
|
|
225
|
+
});
|
|
226
|
+
}
|
|
223
227
|
});
|
|
224
228
|
|
|
225
229
|
_defineProperty(_assertThisInitialized(_this), "renderLayer", function () {
|
|
@@ -263,6 +267,11 @@ var ModalLayer_ModalLayer = /*#__PURE__*/function (_Component) {
|
|
|
263
267
|
}
|
|
264
268
|
|
|
265
269
|
_createClass(ModalLayer, [{
|
|
270
|
+
key: "componentWillUnmount",
|
|
271
|
+
value: function componentWillUnmount() {
|
|
272
|
+
this.allowAnimationUpdates = false;
|
|
273
|
+
}
|
|
274
|
+
}, {
|
|
266
275
|
key: "render",
|
|
267
276
|
|
|
268
277
|
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
|
@@ -329,7 +338,7 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
329
338
|
|
|
330
339
|
/***/ }),
|
|
331
340
|
|
|
332
|
-
/***/
|
|
341
|
+
/***/ 57:
|
|
333
342
|
/***/ (function(module, exports) {
|
|
334
343
|
|
|
335
344
|
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 = 162);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 12:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 162:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -135,7 +135,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
135
135
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
136
136
|
|
|
137
137
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
138
|
-
var Clickable_ = __webpack_require__(
|
|
138
|
+
var Clickable_ = __webpack_require__(12);
|
|
139
139
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
140
140
|
|
|
141
141
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -160,7 +160,7 @@ var backgroundColors = ['#006d9c', '#ec9960', '#af575a', '#62b3b2', '#4fa484', '
|
|
|
160
160
|
var Styled = external_styled_components_default.a.div.withConfig({
|
|
161
161
|
displayName: "MonogramStyles__Styled",
|
|
162
162
|
componentId: "r5ud6k-0"
|
|
163
|
-
})(["", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", "
|
|
163
|
+
})(["", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", ";& + &{margin-left:4px;}"], themes_["mixins"].reset('inline-flex'), Object(themes_["pick"])({
|
|
164
164
|
prisma: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].contentColorActive)
|
|
165
165
|
}), function (_ref) {
|
|
166
166
|
var $backgroundColor = _ref.$backgroundColor,
|
|
@@ -181,15 +181,27 @@ var Styled = external_styled_components_default.a.div.withConfig({
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
return $backgroundColor;
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
184
|
+
}, function (_ref2) {
|
|
185
|
+
var $size = _ref2.$size;
|
|
186
|
+
|
|
187
|
+
if (typeof $size === 'number') {
|
|
188
|
+
return Object(external_styled_components_["css"])(["height:", "px;width:", "px;"], $size, $size);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (typeof $size === 'string') {
|
|
192
|
+
return Object(themes_["pickVariant"])('$size', {
|
|
193
|
+
small: Object(external_styled_components_["css"])(["font-size:", ";", ""], themes_["variables"].fontSize, Object(themes_["pick"])({
|
|
194
|
+
enterprise: Object(external_styled_components_["css"])(["height:32px;width:32px;"]),
|
|
195
|
+
prisma: Object(external_styled_components_["css"])(["height:24px;width:24px;"])
|
|
196
|
+
})),
|
|
197
|
+
medium: Object(external_styled_components_["css"])(["height:48px;width:48px;font-size:", ";"], themes_["variables"].fontSize),
|
|
198
|
+
large: Object(external_styled_components_["css"])(["height:80px;width:80px;font-size:", ";"], themes_["variables"].fontSizeXXLarge),
|
|
199
|
+
xlarge: "\n width: 144px;\n height: 144px;\n font-size: 36px;\n font-weight: 700;\n "
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return Object(external_styled_components_["css"])(["height:48px;width:48px;font-size:", ";"], themes_["variables"].fontSize);
|
|
204
|
+
});
|
|
193
205
|
var StyledClickableComponent = Styled.withComponent(Clickable_default.a);
|
|
194
206
|
var StyledClickable = external_styled_components_default()(StyledClickableComponent).withConfig({
|
|
195
207
|
displayName: "MonogramStyles__StyledClickable",
|
|
@@ -238,7 +250,7 @@ var propTypes = {
|
|
|
238
250
|
initials: external_prop_types_default.a.string.isRequired,
|
|
239
251
|
name: external_prop_types_default.a.string,
|
|
240
252
|
onClick: external_prop_types_default.a.func,
|
|
241
|
-
size: external_prop_types_default.a.oneOf(['small', 'medium', 'large', 'xlarge'])
|
|
253
|
+
size: external_prop_types_default.a.oneOfType([external_prop_types_default.a.oneOf(['small', 'medium', 'large', 'xlarge']), external_prop_types_default.a.number])
|
|
242
254
|
};
|
|
243
255
|
var defaultProps = {
|
|
244
256
|
backgroundColor: 'theme',
|