@splunk/react-ui 4.12.0 → 4.13.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 +11 -11
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +25 -0
- package/Calendar.js +33 -33
- package/Card.js +13 -13
- package/CardLayout.js +2 -2
- package/Chip.js +11 -11
- package/Clickable.js +7 -7
- package/CloseButton.js +11 -11
- package/Code.js +4 -4
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +4 -4
- package/Concertina.js +2 -2
- package/ControlGroup.js +4 -4
- package/Date.js +4 -4
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -2
- package/EventListener.js +4 -4
- package/File.js +15 -15
- package/FormRows.js +4 -4
- package/Heading.js +3 -3
- package/Image.js +15 -15
- package/JSONTree.js +2 -2
- package/Layer.js +4 -4
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +21 -21
- package/Menu.js +32 -33
- package/Message.js +22 -22
- package/MessageBar.js +15 -15
- package/Modal.js +4 -4
- package/ModalLayer.js +8 -8
- package/Monogram.js +2 -2
- package/Multiselect.js +112 -103
- package/Number.js +2 -2
- package/Paginator.js +41 -41
- package/Paragraph.js +2 -2
- package/Popover.js +18 -9
- package/Progress.js +4 -4
- package/RadioBar.js +2 -2
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/ResultsMenu.js +12 -12
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +13 -13
- package/Select.js +109 -100
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +6 -6
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +6 -6
- package/Switch.js +2 -2
- package/TabBar.js +2 -2
- package/TabLayout.js +4 -4
- package/Table.js +60 -43
- package/Text.js +105 -101
- package/TextArea.js +83 -72
- package/Tooltip.js +2 -2
- package/TransitionOpen.js +8 -8
- package/Typography.js +4 -4
- package/WaitSpinner.js +68 -2
- package/package.json +4 -3
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- package/types/src/Popover/Popover.d.ts +5 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/SplitButton/Item.d.ts +45 -0
- package/types/src/SplitButton/SplitButton.d.ts +41 -0
- package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
- package/types/src/SplitButton/index.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +4 -1
- package/types/src/Table/HeadDropdownCell.d.ts +10 -3
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useIsSsr/index.d.ts +2 -0
- package/types/src/useIsSsr/useIsSsr.d.ts +8 -0
- package/useForceUpdate.js +151 -0
- package/useIsSsr.js +153 -0
- package/usePrevious.js +2 -2
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +0 -10
- package/types/src/Text/docs/examples/prisma/Search.d.ts +0 -10
package/Heading.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 = 159);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 159:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -129,7 +129,7 @@ var themes_ = __webpack_require__(0);
|
|
|
129
129
|
// CONCATENATED MODULE: ./src/Heading/HeadingStyles.ts
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
var section = Object(external_styled_components_["css"])(["margin:0.707em 0 0.2em;
|
|
132
|
+
var section = Object(external_styled_components_["css"])(["margin:0.707em 0 0.2em;"]);
|
|
133
133
|
var StyledH1 = external_styled_components_default.a.h1.withConfig({
|
|
134
134
|
displayName: "HeadingStyles__StyledH1",
|
|
135
135
|
componentId: "sc-15s3yx3-0"
|
package/Image.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
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ module.exports = require("@splunk/react-ui/Clickable");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 160:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -136,11 +136,11 @@ var format_ = __webpack_require__(43);
|
|
|
136
136
|
var i18n_ = __webpack_require__(5);
|
|
137
137
|
|
|
138
138
|
// EXTERNAL MODULE: external "@splunk/react-ui/File"
|
|
139
|
-
var File_ = __webpack_require__(
|
|
139
|
+
var File_ = __webpack_require__(90);
|
|
140
140
|
var File_default = /*#__PURE__*/__webpack_require__.n(File_);
|
|
141
141
|
|
|
142
142
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
143
|
-
var CrossMark = __webpack_require__(
|
|
143
|
+
var CrossMark = __webpack_require__(20);
|
|
144
144
|
|
|
145
145
|
// EXTERNAL MODULE: external "styled-components"
|
|
146
146
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -151,7 +151,7 @@ var Clickable_ = __webpack_require__(12);
|
|
|
151
151
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
152
152
|
|
|
153
153
|
// EXTERNAL MODULE: external "@splunk/react-ui/Message"
|
|
154
|
-
var Message_ = __webpack_require__(
|
|
154
|
+
var Message_ = __webpack_require__(91);
|
|
155
155
|
var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
|
|
156
156
|
|
|
157
157
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -440,7 +440,14 @@ _defineProperty(Image_Image, "defaultProps", defaultProps);
|
|
|
440
440
|
|
|
441
441
|
/***/ }),
|
|
442
442
|
|
|
443
|
-
/***/
|
|
443
|
+
/***/ 2:
|
|
444
|
+
/***/ (function(module, exports) {
|
|
445
|
+
|
|
446
|
+
module.exports = require("react");
|
|
447
|
+
|
|
448
|
+
/***/ }),
|
|
449
|
+
|
|
450
|
+
/***/ 20:
|
|
444
451
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
445
452
|
|
|
446
453
|
"use strict";
|
|
@@ -490,13 +497,6 @@ function CrossMark(props) {
|
|
|
490
497
|
|
|
491
498
|
/***/ }),
|
|
492
499
|
|
|
493
|
-
/***/ 2:
|
|
494
|
-
/***/ (function(module, exports) {
|
|
495
|
-
|
|
496
|
-
module.exports = require("react");
|
|
497
|
-
|
|
498
|
-
/***/ }),
|
|
499
|
-
|
|
500
500
|
/***/ 21:
|
|
501
501
|
/***/ (function(module, exports) {
|
|
502
502
|
|
|
@@ -675,14 +675,14 @@ Icon.defaultProps = defaultProps;
|
|
|
675
675
|
|
|
676
676
|
/***/ }),
|
|
677
677
|
|
|
678
|
-
/***/
|
|
678
|
+
/***/ 90:
|
|
679
679
|
/***/ (function(module, exports) {
|
|
680
680
|
|
|
681
681
|
module.exports = require("@splunk/react-ui/File");
|
|
682
682
|
|
|
683
683
|
/***/ }),
|
|
684
684
|
|
|
685
|
-
/***/
|
|
685
|
+
/***/ 91:
|
|
686
686
|
/***/ (function(module, exports) {
|
|
687
687
|
|
|
688
688
|
module.exports = require("@splunk/react-ui/Message");
|
package/JSONTree.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 = 134);
|
|
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
|
+
/***/ 134:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
package/Layer.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
|
+
/***/ 111:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
var g;
|
|
@@ -135,7 +135,7 @@ module.exports = require("@splunk/react-ui/EventListener");
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 161:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -477,7 +477,7 @@ function LayerStackGlobalProvider(_ref) {
|
|
|
477
477
|
|
|
478
478
|
LayerStackGlobalProvider.propTypes = propTypes;
|
|
479
479
|
|
|
480
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(
|
|
480
|
+
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(111)))
|
|
481
481
|
|
|
482
482
|
/***/ }),
|
|
483
483
|
|
package/Link.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
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ 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";
|
|
@@ -127,7 +127,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
127
127
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
130
|
-
var Dropdown_ = __webpack_require__(
|
|
130
|
+
var Dropdown_ = __webpack_require__(18);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
133
133
|
var i18n_ = __webpack_require__(5);
|
|
@@ -137,7 +137,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
137
137
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/react-icons/External"
|
|
140
|
-
var External_ = __webpack_require__(
|
|
140
|
+
var External_ = __webpack_require__(59);
|
|
141
141
|
var External_default = /*#__PURE__*/__webpack_require__.n(External_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
@@ -295,17 +295,17 @@ _defineProperty(Link_Link, Dropdown_["legacyRefMode"], true);
|
|
|
295
295
|
|
|
296
296
|
/***/ }),
|
|
297
297
|
|
|
298
|
-
/***/
|
|
298
|
+
/***/ 18:
|
|
299
299
|
/***/ (function(module, exports) {
|
|
300
300
|
|
|
301
|
-
module.exports = require("react");
|
|
301
|
+
module.exports = require("@splunk/react-ui/Dropdown");
|
|
302
302
|
|
|
303
303
|
/***/ }),
|
|
304
304
|
|
|
305
|
-
/***/
|
|
305
|
+
/***/ 2:
|
|
306
306
|
/***/ (function(module, exports) {
|
|
307
307
|
|
|
308
|
-
module.exports = require("
|
|
308
|
+
module.exports = require("react");
|
|
309
309
|
|
|
310
310
|
/***/ }),
|
|
311
311
|
|
|
@@ -323,7 +323,7 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
323
323
|
|
|
324
324
|
/***/ }),
|
|
325
325
|
|
|
326
|
-
/***/
|
|
326
|
+
/***/ 59:
|
|
327
327
|
/***/ (function(module, exports) {
|
|
328
328
|
|
|
329
329
|
module.exports = require("@splunk/react-icons/External");
|
package/List.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 = 141);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 141:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
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 = 113);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 113:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -130,11 +130,11 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
130
130
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "commonmark-react-renderer"
|
|
133
|
-
var external_commonmark_react_renderer_ = __webpack_require__(
|
|
133
|
+
var external_commonmark_react_renderer_ = __webpack_require__(92);
|
|
134
134
|
var external_commonmark_react_renderer_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_react_renderer_);
|
|
135
135
|
|
|
136
136
|
// EXTERNAL MODULE: external "commonmark"
|
|
137
|
-
var external_commonmark_ = __webpack_require__(
|
|
137
|
+
var external_commonmark_ = __webpack_require__(93);
|
|
138
138
|
var external_commonmark_default = /*#__PURE__*/__webpack_require__.n(external_commonmark_);
|
|
139
139
|
|
|
140
140
|
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
@@ -223,7 +223,7 @@ function MarkdownCode(_ref) {
|
|
|
223
223
|
MarkdownCode.propTypes = MarkdownCode_propTypes;
|
|
224
224
|
/* harmony default export */ var renderers_MarkdownCode = (MarkdownCode);
|
|
225
225
|
// EXTERNAL MODULE: external "@splunk/react-ui/Code"
|
|
226
|
-
var Code_ = __webpack_require__(
|
|
226
|
+
var Code_ = __webpack_require__(94);
|
|
227
227
|
var Code_default = /*#__PURE__*/__webpack_require__.n(Code_);
|
|
228
228
|
|
|
229
229
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
@@ -257,7 +257,7 @@ function MarkdownCodeBlock(_ref) {
|
|
|
257
257
|
MarkdownCodeBlock.propTypes = MarkdownCodeBlock_propTypes;
|
|
258
258
|
/* harmony default export */ var renderers_MarkdownCodeBlock = (MarkdownCodeBlock);
|
|
259
259
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
260
|
-
var Heading_ = __webpack_require__(
|
|
260
|
+
var Heading_ = __webpack_require__(56);
|
|
261
261
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
262
262
|
|
|
263
263
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownHeading.tsx
|
|
@@ -279,7 +279,7 @@ function MarkdownHeading(_ref) {
|
|
|
279
279
|
MarkdownHeading.propTypes = MarkdownHeading_propTypes;
|
|
280
280
|
/* harmony default export */ var renderers_MarkdownHeading = (MarkdownHeading);
|
|
281
281
|
// EXTERNAL MODULE: external "@splunk/react-ui/Anchor"
|
|
282
|
-
var Anchor_ = __webpack_require__(
|
|
282
|
+
var Anchor_ = __webpack_require__(62);
|
|
283
283
|
var Anchor_default = /*#__PURE__*/__webpack_require__.n(Anchor_);
|
|
284
284
|
|
|
285
285
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownAnchorHeading.tsx
|
|
@@ -328,7 +328,7 @@ function MarkdownImage(_ref) {
|
|
|
328
328
|
MarkdownImage.propTypes = MarkdownImage_propTypes;
|
|
329
329
|
/* harmony default export */ var renderers_MarkdownImage = (MarkdownImage);
|
|
330
330
|
// EXTERNAL MODULE: external "@splunk/react-ui/Link"
|
|
331
|
-
var Link_ = __webpack_require__(
|
|
331
|
+
var Link_ = __webpack_require__(30);
|
|
332
332
|
var Link_default = /*#__PURE__*/__webpack_require__.n(Link_);
|
|
333
333
|
|
|
334
334
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownLink.tsx
|
|
@@ -354,7 +354,7 @@ function MarkdownLink(_ref) {
|
|
|
354
354
|
MarkdownLink.propTypes = MarkdownLink_propTypes;
|
|
355
355
|
/* harmony default export */ var renderers_MarkdownLink = (MarkdownLink);
|
|
356
356
|
// EXTERNAL MODULE: external "@splunk/react-ui/List"
|
|
357
|
-
var List_ = __webpack_require__(
|
|
357
|
+
var List_ = __webpack_require__(81);
|
|
358
358
|
var List_default = /*#__PURE__*/__webpack_require__.n(List_);
|
|
359
359
|
|
|
360
360
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownList.tsx
|
|
@@ -392,7 +392,7 @@ function MarkdownItem(_ref) {
|
|
|
392
392
|
MarkdownItem.propTypes = MarkdownItem_propTypes;
|
|
393
393
|
/* harmony default export */ var renderers_MarkdownItem = (MarkdownItem);
|
|
394
394
|
// EXTERNAL MODULE: external "@splunk/react-ui/Paragraph"
|
|
395
|
-
var Paragraph_ = __webpack_require__(
|
|
395
|
+
var Paragraph_ = __webpack_require__(95);
|
|
396
396
|
var Paragraph_default = /*#__PURE__*/__webpack_require__.n(Paragraph_);
|
|
397
397
|
|
|
398
398
|
// CONCATENATED MODULE: ./src/Markdown/renderers/MarkdownParagraph.tsx
|
|
@@ -527,17 +527,17 @@ module.exports = require("react");
|
|
|
527
527
|
|
|
528
528
|
/***/ }),
|
|
529
529
|
|
|
530
|
-
/***/
|
|
530
|
+
/***/ 3:
|
|
531
531
|
/***/ (function(module, exports) {
|
|
532
532
|
|
|
533
|
-
module.exports = require("
|
|
533
|
+
module.exports = require("styled-components");
|
|
534
534
|
|
|
535
535
|
/***/ }),
|
|
536
536
|
|
|
537
|
-
/***/
|
|
537
|
+
/***/ 30:
|
|
538
538
|
/***/ (function(module, exports) {
|
|
539
539
|
|
|
540
|
-
module.exports = require("
|
|
540
|
+
module.exports = require("@splunk/react-ui/Link");
|
|
541
541
|
|
|
542
542
|
/***/ }),
|
|
543
543
|
|
|
@@ -548,14 +548,14 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
548
548
|
|
|
549
549
|
/***/ }),
|
|
550
550
|
|
|
551
|
-
/***/
|
|
551
|
+
/***/ 56:
|
|
552
552
|
/***/ (function(module, exports) {
|
|
553
553
|
|
|
554
554
|
module.exports = require("@splunk/react-ui/Heading");
|
|
555
555
|
|
|
556
556
|
/***/ }),
|
|
557
557
|
|
|
558
|
-
/***/
|
|
558
|
+
/***/ 62:
|
|
559
559
|
/***/ (function(module, exports) {
|
|
560
560
|
|
|
561
561
|
module.exports = require("@splunk/react-ui/Anchor");
|
|
@@ -569,35 +569,35 @@ module.exports = require("@splunk/react-ui/Box");
|
|
|
569
569
|
|
|
570
570
|
/***/ }),
|
|
571
571
|
|
|
572
|
-
/***/
|
|
572
|
+
/***/ 81:
|
|
573
573
|
/***/ (function(module, exports) {
|
|
574
574
|
|
|
575
575
|
module.exports = require("@splunk/react-ui/List");
|
|
576
576
|
|
|
577
577
|
/***/ }),
|
|
578
578
|
|
|
579
|
-
/***/
|
|
579
|
+
/***/ 92:
|
|
580
580
|
/***/ (function(module, exports) {
|
|
581
581
|
|
|
582
582
|
module.exports = require("commonmark-react-renderer");
|
|
583
583
|
|
|
584
584
|
/***/ }),
|
|
585
585
|
|
|
586
|
-
/***/
|
|
586
|
+
/***/ 93:
|
|
587
587
|
/***/ (function(module, exports) {
|
|
588
588
|
|
|
589
589
|
module.exports = require("commonmark");
|
|
590
590
|
|
|
591
591
|
/***/ }),
|
|
592
592
|
|
|
593
|
-
/***/
|
|
593
|
+
/***/ 94:
|
|
594
594
|
/***/ (function(module, exports) {
|
|
595
595
|
|
|
596
596
|
module.exports = require("@splunk/react-ui/Code");
|
|
597
597
|
|
|
598
598
|
/***/ }),
|
|
599
599
|
|
|
600
|
-
/***/
|
|
600
|
+
/***/ 95:
|
|
601
601
|
/***/ (function(module, exports) {
|
|
602
602
|
|
|
603
603
|
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 = 114);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -128,7 +128,7 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 114:
|
|
132
132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
133
|
|
|
134
134
|
"use strict";
|
|
@@ -163,6 +163,10 @@ var focus_ = __webpack_require__(26);
|
|
|
163
163
|
// EXTERNAL MODULE: external "@splunk/ui-utils/keyboard"
|
|
164
164
|
var keyboard_ = __webpack_require__(9);
|
|
165
165
|
|
|
166
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/useForceUpdate"
|
|
167
|
+
var useForceUpdate_ = __webpack_require__(96);
|
|
168
|
+
var useForceUpdate_default = /*#__PURE__*/__webpack_require__.n(useForceUpdate_);
|
|
169
|
+
|
|
166
170
|
// EXTERNAL MODULE: external "styled-components"
|
|
167
171
|
var external_styled_components_ = __webpack_require__(3);
|
|
168
172
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
@@ -233,7 +237,7 @@ Divider.filterConsecutive = true;
|
|
|
233
237
|
Divider.filterLast = true;
|
|
234
238
|
/* harmony default export */ var Menu_Divider = (Divider);
|
|
235
239
|
// EXTERNAL MODULE: external "@splunk/react-ui/Heading"
|
|
236
|
-
var Heading_ = __webpack_require__(
|
|
240
|
+
var Heading_ = __webpack_require__(56);
|
|
237
241
|
var Heading_default = /*#__PURE__*/__webpack_require__.n(Heading_);
|
|
238
242
|
|
|
239
243
|
// EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
|
|
@@ -262,7 +266,7 @@ var HeadingStyles_Styled = external_styled_components_default.a.div.withConfig({
|
|
|
262
266
|
var PrismaSectionTitle = external_styled_components_default.a.h5.withConfig({
|
|
263
267
|
displayName: "HeadingStyles__PrismaSectionTitle",
|
|
264
268
|
componentId: "mcd2ws-1"
|
|
265
|
-
})(["", " font-size:", ";line-height:", ";font-weight:", ";letter-spacing:0.02em;
|
|
269
|
+
})(["", " font-size:", ";line-height:", ";font-weight:", ";letter-spacing:0.02em;"], themes_["mixins"].reset('block'), themes_["variables"].fontSizeSmall, themes_["variables"].lineHeight, themes_["variables"].fontWeightBold);
|
|
266
270
|
|
|
267
271
|
// CONCATENATED MODULE: ./src/Menu/Heading.tsx
|
|
268
272
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -337,10 +341,10 @@ Heading.filterLast = true;
|
|
|
337
341
|
var external_lodash_ = __webpack_require__(4);
|
|
338
342
|
|
|
339
343
|
// EXTERNAL MODULE: ./src/icons/Check.tsx
|
|
340
|
-
var Check = __webpack_require__(
|
|
344
|
+
var Check = __webpack_require__(54);
|
|
341
345
|
|
|
342
346
|
// EXTERNAL MODULE: external "@splunk/react-icons/TriangleRightSmall"
|
|
343
|
-
var TriangleRightSmall_ = __webpack_require__(
|
|
347
|
+
var TriangleRightSmall_ = __webpack_require__(97);
|
|
344
348
|
var TriangleRightSmall_default = /*#__PURE__*/__webpack_require__.n(TriangleRightSmall_);
|
|
345
349
|
|
|
346
350
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -892,18 +896,6 @@ var navigateList = __webpack_require__(42);
|
|
|
892
896
|
// CONCATENATED MODULE: ./src/Menu/Menu.tsx
|
|
893
897
|
function Menu_extends() { Menu_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 Menu_extends.apply(this, arguments); }
|
|
894
898
|
|
|
895
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
896
|
-
|
|
897
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
898
|
-
|
|
899
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
900
|
-
|
|
901
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
902
|
-
|
|
903
|
-
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
904
|
-
|
|
905
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
906
|
-
|
|
907
899
|
function Menu_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Menu_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
908
900
|
|
|
909
901
|
function Menu_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -921,6 +913,7 @@ function Menu_objectWithoutPropertiesLoose(source, excluded) { if (source == nul
|
|
|
921
913
|
|
|
922
914
|
|
|
923
915
|
|
|
916
|
+
|
|
924
917
|
var Menu_propTypes = {
|
|
925
918
|
children: external_prop_types_default.a.node,
|
|
926
919
|
|
|
@@ -950,6 +943,7 @@ function Menu(_ref) {
|
|
|
950
943
|
var _useContext2 = Object(external_react_["useContext"])(Popover_["PopoverContext"]),
|
|
951
944
|
retainFocusFromContext = _useContext2.retainFocus;
|
|
952
945
|
|
|
946
|
+
var forceUpdate = useForceUpdate_default()();
|
|
953
947
|
var retainFocus = true;
|
|
954
948
|
|
|
955
949
|
if (retainFocusProp != null) {
|
|
@@ -958,11 +952,7 @@ function Menu(_ref) {
|
|
|
958
952
|
retainFocus = retainFocusFromContext;
|
|
959
953
|
}
|
|
960
954
|
|
|
961
|
-
var
|
|
962
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
963
|
-
focusedItemKey = _useState2[0],
|
|
964
|
-
setFocusedItemKey = _useState2[1];
|
|
965
|
-
|
|
955
|
+
var focusedItemKeyRef = external_react_default.a.useRef(0);
|
|
966
956
|
var itemRefs = [];
|
|
967
957
|
var itemKeyCounter = 0;
|
|
968
958
|
var firstEnabledItemKey;
|
|
@@ -976,6 +966,7 @@ function Menu(_ref) {
|
|
|
976
966
|
// can still set focus on the Menu items and this avoids the
|
|
977
967
|
// whole page scrolling when that happens
|
|
978
968
|
var key = Object(keyboard_["keycode"])(e.nativeEvent);
|
|
969
|
+
var focusedItemKey = focusedItemKeyRef.current;
|
|
979
970
|
var itemToFocusRef; // the "retainFocus" checks here mimic the prior tab key functionality
|
|
980
971
|
|
|
981
972
|
if (key === 'down' || retainFocus && Object(focus_["isTabKey"])(e)) {
|
|
@@ -1030,7 +1021,7 @@ function Menu(_ref) {
|
|
|
1030
1021
|
var itemKey = data.itemKey;
|
|
1031
1022
|
|
|
1032
1023
|
if (itemKey != null) {
|
|
1033
|
-
|
|
1024
|
+
focusedItemKeyRef.current = itemKey;
|
|
1034
1025
|
}
|
|
1035
1026
|
};
|
|
1036
1027
|
|
|
@@ -1038,7 +1029,7 @@ function Menu(_ref) {
|
|
|
1038
1029
|
firstEnabledItemKey = itemKeyCounter;
|
|
1039
1030
|
}
|
|
1040
1031
|
|
|
1041
|
-
if (
|
|
1032
|
+
if (focusedItemKeyRef.current === itemKeyCounter && 'disabled' in item.props && item.props.disabled) {
|
|
1042
1033
|
focusedItemKeyIsDisabled = true;
|
|
1043
1034
|
}
|
|
1044
1035
|
|
|
@@ -1050,7 +1041,7 @@ function Menu(_ref) {
|
|
|
1050
1041
|
}
|
|
1051
1042
|
}
|
|
1052
1043
|
|
|
1053
|
-
var tabIndex = !controlledExternally &&
|
|
1044
|
+
var tabIndex = !controlledExternally && focusedItemKeyRef.current === itemKeyCounter ? undefined : -1;
|
|
1054
1045
|
acc.push( /*#__PURE__*/external_react_default.a.cloneElement(item, {
|
|
1055
1046
|
itemKey: itemKeyCounter,
|
|
1056
1047
|
onFocus: itemOnFocus,
|
|
@@ -1069,8 +1060,9 @@ function Menu(_ref) {
|
|
|
1069
1060
|
return acc;
|
|
1070
1061
|
}, []);
|
|
1071
1062
|
|
|
1072
|
-
if (firstEnabledItemKey !==
|
|
1073
|
-
|
|
1063
|
+
if (firstEnabledItemKey !== focusedItemKeyRef.current && (!hasSelectedItems || hasSelectedEnabledItems) && focusedItemKeyIsDisabled && firstEnabledItemKey != null) {
|
|
1064
|
+
focusedItemKeyRef.current = firstEnabledItemKey;
|
|
1065
|
+
forceUpdate();
|
|
1074
1066
|
}
|
|
1075
1067
|
|
|
1076
1068
|
var sharedProps = {
|
|
@@ -1136,7 +1128,7 @@ module.exports = require("@splunk/ui-utils/focus");
|
|
|
1136
1128
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronRight; });
|
|
1137
1129
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1138
1130
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1139
|
-
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1131
|
+
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33);
|
|
1140
1132
|
/* harmony import */ var _splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronRight__WEBPACK_IMPORTED_MODULE_1__);
|
|
1141
1133
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1142
1134
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1186,7 +1178,7 @@ module.exports = require("styled-components");
|
|
|
1186
1178
|
|
|
1187
1179
|
/***/ }),
|
|
1188
1180
|
|
|
1189
|
-
/***/
|
|
1181
|
+
/***/ 33:
|
|
1190
1182
|
/***/ (function(module, exports) {
|
|
1191
1183
|
|
|
1192
1184
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
@@ -1260,7 +1252,7 @@ module.exports = require("@splunk/react-icons/Check");
|
|
|
1260
1252
|
|
|
1261
1253
|
/***/ }),
|
|
1262
1254
|
|
|
1263
|
-
/***/
|
|
1255
|
+
/***/ 54:
|
|
1264
1256
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1265
1257
|
|
|
1266
1258
|
"use strict";
|
|
@@ -1310,7 +1302,7 @@ function Check(props) {
|
|
|
1310
1302
|
|
|
1311
1303
|
/***/ }),
|
|
1312
1304
|
|
|
1313
|
-
/***/
|
|
1305
|
+
/***/ 56:
|
|
1314
1306
|
/***/ (function(module, exports) {
|
|
1315
1307
|
|
|
1316
1308
|
module.exports = require("@splunk/react-ui/Heading");
|
|
@@ -1481,7 +1473,14 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
1481
1473
|
|
|
1482
1474
|
/***/ }),
|
|
1483
1475
|
|
|
1484
|
-
/***/
|
|
1476
|
+
/***/ 96:
|
|
1477
|
+
/***/ (function(module, exports) {
|
|
1478
|
+
|
|
1479
|
+
module.exports = require("@splunk/react-ui/useForceUpdate");
|
|
1480
|
+
|
|
1481
|
+
/***/ }),
|
|
1482
|
+
|
|
1483
|
+
/***/ 97:
|
|
1485
1484
|
/***/ (function(module, exports) {
|
|
1486
1485
|
|
|
1487
1486
|
module.exports = require("@splunk/react-icons/TriangleRightSmall");
|