@splunk/react-ui 4.6.0 → 4.7.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 -7
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +13 -13
- package/ButtonGroup.js +4 -4
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +23 -3
- package/Calendar.js +16 -16
- package/Card.js +46 -46
- package/CardLayout.js +4 -4
- package/Chip.js +10 -10
- package/Clickable.js +4 -4
- package/CloseButton.js +8 -8
- package/Code.js +4 -4
- package/CollapsiblePanel.js +9 -9
- package/Color.js +20 -20
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +8 -8
- package/Concertina.js +15 -15
- package/ControlGroup.js +12 -12
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/FetchOptions.js +8 -8
- package/File.js +26 -26
- package/FormRows.js +13 -13
- package/Heading.js +2 -2
- package/Image.js +14 -14
- package/JSONTree.js +4 -4
- package/Layer.js +10 -10
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +17 -17
- package/Menu.js +134 -69
- package/Message.js +246 -305
- package/MessageBar.d.ts +2 -0
- package/MessageBar.js +789 -0
- package/Modal.js +58 -53
- package/ModalLayer.js +5 -4
- package/Monogram.js +4 -4
- package/Multiselect.js +50 -41
- package/Number.js +8 -8
- package/Paginator.js +24 -24
- package/Paragraph.js +2 -2
- package/Popover.js +12 -12
- package/Progress.js +6 -6
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +8 -8
- package/ResultsMenu.js +25 -23
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +14 -14
- package/Select.js +44 -35
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +18 -18
- package/Switch.js +17 -31
- package/TabBar.js +60 -46
- package/TabLayout.js +4 -4
- package/Table.js +55 -48
- package/Text.js +30 -30
- package/Tooltip.js +14 -14
- package/TransitionOpen.js +9 -9
- package/WaitSpinner.js +2 -2
- package/cypress/support/index.ts +1 -0
- package/package.json +7 -3
- package/types/src/Animation/Animation.d.ts +0 -1
- package/types/src/Calendar/DateTable.d.ts +0 -1
- package/types/src/Date/Icon.d.ts +0 -1
- package/types/src/File/Icon.d.ts +0 -1
- package/types/src/File/IconCloud.d.ts +0 -1
- package/types/src/File/PaperClip.d.ts +0 -1
- package/types/src/File/Retry.d.ts +0 -1
- package/types/src/File/Trash.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +0 -1
- package/types/src/Menu/Divider.d.ts +0 -1
- package/types/src/Message/Link.d.ts +2 -0
- package/types/src/Message/Message.d.ts +6 -1
- package/types/src/MessageBar/MessageBar.d.ts +28 -0
- package/types/src/MessageBar/index.d.ts +2 -0
- package/types/src/Modal/Modal.d.ts +1 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Number/IncrementIcon.d.ts +0 -1
- package/types/src/Paginator/PageSeparator.d.ts +0 -1
- package/types/src/Popover/Popover.d.ts +1 -2
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Switch/Switch.d.ts +7 -7
- package/types/src/Table/DragHandle.d.ts +0 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
- package/types/src/Table/Toggle.d.ts +0 -1
- package/types/src/Text/IconOutlinedHide.d.ts +0 -1
- package/types/src/Text/IconOutlinedView.d.ts +0 -1
- package/types/src/Tooltip/InfoIcon.d.ts +0 -1
- package/types/src/icons/Alert.d.ts +0 -1
- package/types/src/icons/AlertFilled.d.ts +0 -1
- package/types/src/icons/CaretDown.d.ts +0 -1
- package/types/src/icons/CaretRight.d.ts +0 -1
- package/types/src/icons/Check.d.ts +0 -1
- package/types/src/icons/ChevronDown.d.ts +0 -1
- package/types/src/icons/ChevronLeft.d.ts +0 -1
- package/types/src/icons/ChevronRight.d.ts +0 -1
- package/types/src/icons/CrossMark.d.ts +0 -1
- package/types/src/icons/External.d.ts +0 -1
- package/types/src/icons/InfoFilled.d.ts +0 -1
- package/types/src/icons/More.d.ts +0 -1
- package/types/src/icons/MoreVertical.d.ts +0 -1
- package/types/src/icons/Plus.d.ts +0 -1
- package/types/src/icons/SVG.d.ts +0 -1
- package/types/src/icons/Search.d.ts +0 -1
- package/types/src/icons/Sort.d.ts +0 -1
- package/types/src/icons/SortedDown.d.ts +0 -1
- package/types/src/icons/SortedUp.d.ts +0 -1
- package/types/src/icons/Success.d.ts +0 -1
- package/types/src/icons/SuccessFilled.d.ts +0 -1
- package/types/src/icons/WarningFilled.d.ts +0 -1
- package/types/src/utils/types.d.ts +0 -1
- package/unit-test-setup-testing-library.ts +9 -0
- package/usePrevious.js +2 -2
- package/types/src/Message/Banner.d.ts +0 -8
package/Text.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 = 132);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 111:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 12:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -135,7 +135,7 @@ function updateReactRef(ref, current) {
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 132:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -157,30 +157,30 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
157
157
|
var external_lodash_ = __webpack_require__(4);
|
|
158
158
|
|
|
159
159
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
160
|
-
var style_ = __webpack_require__(
|
|
160
|
+
var style_ = __webpack_require__(40);
|
|
161
161
|
|
|
162
162
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
163
|
-
var EventListener_ = __webpack_require__(
|
|
163
|
+
var EventListener_ = __webpack_require__(15);
|
|
164
164
|
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
165
165
|
|
|
166
166
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
167
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
167
|
+
var ScreenReaderContent_ = __webpack_require__(14);
|
|
168
168
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
169
169
|
|
|
170
170
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
171
171
|
var themes_ = __webpack_require__(0);
|
|
172
172
|
|
|
173
173
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
174
|
-
var ControlGroup_ = __webpack_require__(
|
|
174
|
+
var ControlGroup_ = __webpack_require__(111);
|
|
175
175
|
|
|
176
176
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
177
177
|
var i18n_ = __webpack_require__(5);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: ./src/icons/Search.tsx
|
|
180
|
-
var Search = __webpack_require__(
|
|
180
|
+
var Search = __webpack_require__(44);
|
|
181
181
|
|
|
182
182
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
183
|
-
var CrossMark = __webpack_require__(
|
|
183
|
+
var CrossMark = __webpack_require__(20);
|
|
184
184
|
|
|
185
185
|
// CONCATENATED MODULE: ./src/Text/syncHeightWithShadow.ts
|
|
186
186
|
// This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
|
|
@@ -258,10 +258,10 @@ function syncHeightWithShadow(_ref) {
|
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
260
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
261
|
-
var updateReactRef = __webpack_require__(
|
|
261
|
+
var updateReactRef = __webpack_require__(12);
|
|
262
262
|
|
|
263
263
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
264
|
-
var SVG_ = __webpack_require__(
|
|
264
|
+
var SVG_ = __webpack_require__(24);
|
|
265
265
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
266
266
|
|
|
267
267
|
// CONCATENATED MODULE: ./src/Text/IconOutlinedHide.tsx
|
|
@@ -1329,14 +1329,14 @@ TextWithTheme.componentType = Text_Text.componentType;
|
|
|
1329
1329
|
/***/ 14:
|
|
1330
1330
|
/***/ (function(module, exports) {
|
|
1331
1331
|
|
|
1332
|
-
module.exports = require("@splunk/react-ui/
|
|
1332
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
1333
1333
|
|
|
1334
1334
|
/***/ }),
|
|
1335
1335
|
|
|
1336
1336
|
/***/ 15:
|
|
1337
1337
|
/***/ (function(module, exports) {
|
|
1338
1338
|
|
|
1339
|
-
module.exports = require("@splunk/react-ui/
|
|
1339
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
1340
1340
|
|
|
1341
1341
|
/***/ }),
|
|
1342
1342
|
|
|
@@ -1354,14 +1354,14 @@ module.exports = require("react");
|
|
|
1354
1354
|
|
|
1355
1355
|
/***/ }),
|
|
1356
1356
|
|
|
1357
|
-
/***/
|
|
1357
|
+
/***/ 20:
|
|
1358
1358
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1359
1359
|
|
|
1360
1360
|
"use strict";
|
|
1361
1361
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
1362
1362
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1363
1363
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1364
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1364
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
1365
1365
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
1366
1366
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1367
1367
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1404,17 +1404,17 @@ function CrossMark(props) {
|
|
|
1404
1404
|
|
|
1405
1405
|
/***/ }),
|
|
1406
1406
|
|
|
1407
|
-
/***/
|
|
1407
|
+
/***/ 22:
|
|
1408
1408
|
/***/ (function(module, exports) {
|
|
1409
1409
|
|
|
1410
|
-
module.exports = require("@splunk/react-icons/
|
|
1410
|
+
module.exports = require("@splunk/react-icons/Close");
|
|
1411
1411
|
|
|
1412
1412
|
/***/ }),
|
|
1413
1413
|
|
|
1414
|
-
/***/
|
|
1414
|
+
/***/ 24:
|
|
1415
1415
|
/***/ (function(module, exports) {
|
|
1416
1416
|
|
|
1417
|
-
module.exports = require("@splunk/react-icons/
|
|
1417
|
+
module.exports = require("@splunk/react-icons/SVG");
|
|
1418
1418
|
|
|
1419
1419
|
/***/ }),
|
|
1420
1420
|
|
|
@@ -1425,28 +1425,28 @@ module.exports = require("styled-components");
|
|
|
1425
1425
|
|
|
1426
1426
|
/***/ }),
|
|
1427
1427
|
|
|
1428
|
-
/***/
|
|
1428
|
+
/***/ 4:
|
|
1429
1429
|
/***/ (function(module, exports) {
|
|
1430
1430
|
|
|
1431
|
-
module.exports = require("
|
|
1431
|
+
module.exports = require("lodash");
|
|
1432
1432
|
|
|
1433
1433
|
/***/ }),
|
|
1434
1434
|
|
|
1435
|
-
/***/
|
|
1435
|
+
/***/ 40:
|
|
1436
1436
|
/***/ (function(module, exports) {
|
|
1437
1437
|
|
|
1438
|
-
module.exports = require("
|
|
1438
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
1439
1439
|
|
|
1440
1440
|
/***/ }),
|
|
1441
1441
|
|
|
1442
|
-
/***/
|
|
1442
|
+
/***/ 44:
|
|
1443
1443
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1444
1444
|
|
|
1445
1445
|
"use strict";
|
|
1446
1446
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
|
|
1447
1447
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1448
1448
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1449
|
-
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1449
|
+
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51);
|
|
1450
1450
|
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
|
|
1451
1451
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1452
1452
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1489,17 +1489,17 @@ function Search(props) {
|
|
|
1489
1489
|
|
|
1490
1490
|
/***/ }),
|
|
1491
1491
|
|
|
1492
|
-
/***/
|
|
1492
|
+
/***/ 5:
|
|
1493
1493
|
/***/ (function(module, exports) {
|
|
1494
1494
|
|
|
1495
|
-
module.exports = require("@splunk/
|
|
1495
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1496
1496
|
|
|
1497
1497
|
/***/ }),
|
|
1498
1498
|
|
|
1499
|
-
/***/
|
|
1499
|
+
/***/ 51:
|
|
1500
1500
|
/***/ (function(module, exports) {
|
|
1501
1501
|
|
|
1502
|
-
module.exports = require("@splunk/
|
|
1502
|
+
module.exports = require("@splunk/react-icons/Search");
|
|
1503
1503
|
|
|
1504
1504
|
/***/ }),
|
|
1505
1505
|
|
package/Tooltip.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 = 149);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,14 +108,21 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 11:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 14:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 149:
|
|
119
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
127
|
|
|
121
128
|
"use strict";
|
|
@@ -141,7 +148,7 @@ var Popover_ = __webpack_require__(16);
|
|
|
141
148
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
142
149
|
|
|
143
150
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
144
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
151
|
+
var ScreenReaderContent_ = __webpack_require__(14);
|
|
145
152
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
146
153
|
|
|
147
154
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -154,7 +161,7 @@ var id_ = __webpack_require__(10);
|
|
|
154
161
|
var i18n_ = __webpack_require__(5);
|
|
155
162
|
|
|
156
163
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
157
|
-
var SVG_ = __webpack_require__(
|
|
164
|
+
var SVG_ = __webpack_require__(24);
|
|
158
165
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
159
166
|
|
|
160
167
|
// CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
|
|
@@ -202,7 +209,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
202
209
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
203
210
|
|
|
204
211
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
205
|
-
var Clickable_ = __webpack_require__(
|
|
212
|
+
var Clickable_ = __webpack_require__(11);
|
|
206
213
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
207
214
|
|
|
208
215
|
// CONCATENATED MODULE: ./src/Tooltip/TooltipStyles.ts
|
|
@@ -586,13 +593,6 @@ TooltipWithTheme.propTypes = Tooltip_Tooltip.propTypes;
|
|
|
586
593
|
|
|
587
594
|
|
|
588
595
|
|
|
589
|
-
/***/ }),
|
|
590
|
-
|
|
591
|
-
/***/ 15:
|
|
592
|
-
/***/ (function(module, exports) {
|
|
593
|
-
|
|
594
|
-
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
595
|
-
|
|
596
596
|
/***/ }),
|
|
597
597
|
|
|
598
598
|
/***/ 16:
|
|
@@ -609,7 +609,7 @@ module.exports = require("react");
|
|
|
609
609
|
|
|
610
610
|
/***/ }),
|
|
611
611
|
|
|
612
|
-
/***/
|
|
612
|
+
/***/ 24:
|
|
613
613
|
/***/ (function(module, exports) {
|
|
614
614
|
|
|
615
615
|
module.exports = require("@splunk/react-icons/SVG");
|
package/TransitionOpen.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 = 175);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 175:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -126,10 +126,10 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
126
126
|
var Animation_ = __webpack_require__(30);
|
|
127
127
|
|
|
128
128
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
129
|
-
var focus_ = __webpack_require__(
|
|
129
|
+
var focus_ = __webpack_require__(26);
|
|
130
130
|
|
|
131
131
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
|
-
var style_ = __webpack_require__(
|
|
132
|
+
var style_ = __webpack_require__(40);
|
|
133
133
|
|
|
134
134
|
// EXTERNAL MODULE: external "react-spring"
|
|
135
135
|
var external_react_spring_ = __webpack_require__(18);
|
|
@@ -470,7 +470,7 @@ module.exports = require("react");
|
|
|
470
470
|
|
|
471
471
|
/***/ }),
|
|
472
472
|
|
|
473
|
-
/***/
|
|
473
|
+
/***/ 26:
|
|
474
474
|
/***/ (function(module, exports) {
|
|
475
475
|
|
|
476
476
|
module.exports = require("@splunk/ui-utils/focus");
|
|
@@ -491,17 +491,17 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
491
491
|
|
|
492
492
|
/***/ }),
|
|
493
493
|
|
|
494
|
-
/***/
|
|
494
|
+
/***/ 4:
|
|
495
495
|
/***/ (function(module, exports) {
|
|
496
496
|
|
|
497
|
-
module.exports = require("
|
|
497
|
+
module.exports = require("lodash");
|
|
498
498
|
|
|
499
499
|
/***/ }),
|
|
500
500
|
|
|
501
|
-
/***/
|
|
501
|
+
/***/ 40:
|
|
502
502
|
/***/ (function(module, exports) {
|
|
503
503
|
|
|
504
|
-
module.exports = require("
|
|
504
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
505
505
|
|
|
506
506
|
/***/ })
|
|
507
507
|
|
package/WaitSpinner.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 = 176);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 176:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/cypress/support/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@splunk/react-icons": "^3.2.0",
|
|
38
|
-
"@splunk/themes": "^0.
|
|
38
|
+
"@splunk/themes": "^0.11.0",
|
|
39
39
|
"@splunk/ui-utils": "^1.4.0",
|
|
40
40
|
"@types/commonmark": "^0.27.0",
|
|
41
41
|
"@types/lodash": "^4.14.156",
|
|
@@ -72,6 +72,9 @@
|
|
|
72
72
|
"@storybook/react": "^6.3.0",
|
|
73
73
|
"@storybook/testing-react": "^1.2.3",
|
|
74
74
|
"@testing-library/cypress": "^8.0.2",
|
|
75
|
+
"@testing-library/jest-dom": "^5.16.1",
|
|
76
|
+
"@testing-library/react": "^12.1.2",
|
|
77
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
75
78
|
"@types/chai": "^3.5.2",
|
|
76
79
|
"@types/enzyme": "^3.10.5",
|
|
77
80
|
"@types/jest": "^25.2.1",
|
|
@@ -90,6 +93,7 @@
|
|
|
90
93
|
"core-js": "^3.6.4",
|
|
91
94
|
"cross-env": "^6.0.3",
|
|
92
95
|
"cypress": "^9.5.1",
|
|
96
|
+
"cypress-real-events": "^1.7.0",
|
|
93
97
|
"enzyme": "^3.11.0",
|
|
94
98
|
"enzyme-adapter-react-16": "^1.15.2",
|
|
95
99
|
"eslint": "^7.14.0",
|
|
@@ -113,7 +117,7 @@
|
|
|
113
117
|
"raw-loader": "^0.5.1",
|
|
114
118
|
"react": "^16.12.0",
|
|
115
119
|
"react-dom": "^16.12.0",
|
|
116
|
-
"react-test-renderer": "^16.
|
|
120
|
+
"react-test-renderer": "^16.13.1",
|
|
117
121
|
"sinon": "^2.1.0",
|
|
118
122
|
"styled-components": "5.1.1",
|
|
119
123
|
"stylelint": "^13.0.0",
|
package/types/src/Date/Icon.d.ts
CHANGED
package/types/src/File/Icon.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ declare type LinkLinkProps = ComponentProps<LinkPropsBase, 'a', 'href'>;
|
|
|
21
21
|
declare type LinkButtonProps = ComponentProps<LinkPropsBase, 'button'>;
|
|
22
22
|
declare type LinkProps = LinkLinkProps | LinkButtonProps;
|
|
23
23
|
/**
|
|
24
|
+
* @deprecated `Message.Link` is deprecated and will be removed in a future major version. Use `Link` instead.
|
|
25
|
+
*
|
|
24
26
|
* A `Link` styled to work with `Message`'s `banner` appearance.
|
|
25
27
|
*/
|
|
26
28
|
declare function Link({ children, ...otherProps }: LinkProps): JSX.Element;
|
|
@@ -4,7 +4,12 @@ import Link from './Link';
|
|
|
4
4
|
import { ComponentProps } from '../utils/types';
|
|
5
5
|
interface MessagePropsBase {
|
|
6
6
|
/**
|
|
7
|
+
*
|
|
7
8
|
* Changes the style of the Message.
|
|
9
|
+
*
|
|
10
|
+
* @deprecatedValue 'banner'
|
|
11
|
+
* The `banner` value is deprecated and will be removed in a future major version. Use `MessageBar` instead.
|
|
12
|
+
*
|
|
8
13
|
*/
|
|
9
14
|
appearance?: 'default' | 'fill' | 'banner';
|
|
10
15
|
children?: React.ReactNode;
|
|
@@ -18,7 +23,7 @@ interface MessagePropsBase {
|
|
|
18
23
|
*/
|
|
19
24
|
onRequestRemove?: React.MouseEventHandler<HTMLButtonElement>;
|
|
20
25
|
/** Sets the severity or type of this `Message`. */
|
|
21
|
-
type?: 'info' | '
|
|
26
|
+
type?: 'info' | 'warning' | 'error' | 'success';
|
|
22
27
|
}
|
|
23
28
|
declare type MessageProps = ComponentProps<MessagePropsBase, 'div'>;
|
|
24
29
|
declare function Message({ appearance, children, type, onRequestRemove, ...otherProps }: MessageProps): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ComponentProps } from '../utils/types';
|
|
4
|
+
interface MessageBarPropsBase {
|
|
5
|
+
/**
|
|
6
|
+
* Text is required and should be concise.
|
|
7
|
+
*/
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Includes a close button. Always consider including a close button.
|
|
11
|
+
*/
|
|
12
|
+
onRequestClose?: React.MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the severity of this `MessageBar`.
|
|
15
|
+
* */
|
|
16
|
+
type: 'info' | 'warning' | 'error' | 'success';
|
|
17
|
+
}
|
|
18
|
+
declare type MessageBarProps = ComponentProps<MessageBarPropsBase, 'div'>;
|
|
19
|
+
declare function MessageBar({ children, type, onRequestClose, ...otherProps }: MessageBarProps): JSX.Element;
|
|
20
|
+
declare namespace MessageBar {
|
|
21
|
+
var propTypes: {
|
|
22
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
23
|
+
onRequestClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
type: PropTypes.Validator<string>;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export default MessageBar;
|
|
28
|
+
export type { MessageBarPropsBase };
|
|
@@ -51,6 +51,7 @@ declare class Modal extends Component<ModalProps> {
|
|
|
51
51
|
static Body: typeof Body;
|
|
52
52
|
static Footer: typeof Footer;
|
|
53
53
|
constructor(props: Readonly<ModalProps>);
|
|
54
|
+
componentDidMount(): void;
|
|
54
55
|
componentDidUpdate(prevProps: ModalProps): void;
|
|
55
56
|
private getDefaultMotionStyle;
|
|
56
57
|
private getMotionStyle;
|
|
@@ -24,9 +24,9 @@ interface MonogramPropsBase {
|
|
|
24
24
|
/** Enables interactive mode. */
|
|
25
25
|
onClick?: MonogramClickHandler;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* @deprecated The `xlarge` option has been marked for deprecation and will be removed in a future major version.
|
|
28
28
|
*
|
|
29
|
-
*
|
|
29
|
+
* Adjusts the size of the `Monogram`.
|
|
30
30
|
*/
|
|
31
31
|
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
32
32
|
}
|
|
@@ -55,8 +55,7 @@ interface PopoverPropsBase {
|
|
|
55
55
|
/**
|
|
56
56
|
* `'normal'` is the default appearance. `'inverted'` is used in Enterprise themes for Tooltips.
|
|
57
57
|
* `'none'` is a transparent box.
|
|
58
|
-
* @themeNotes 'inverted': only supported by Enterprise themes. In Prisma themes, `inverted`
|
|
59
|
-
* will be display as `normal`.
|
|
58
|
+
* @themeNotes 'inverted': only supported by Enterprise themes. In Prisma themes, `inverted` will display as `normal`.
|
|
60
59
|
*/
|
|
61
60
|
appearance?: 'normal' | 'inverted' | 'none';
|
|
62
61
|
/**
|
|
@@ -189,7 +189,7 @@ declare class SelectBase extends Component<SelectBaseProps, SelectBaseState> {
|
|
|
189
189
|
private controlledExternally;
|
|
190
190
|
private displayedValues;
|
|
191
191
|
private dropdown;
|
|
192
|
-
private
|
|
192
|
+
private firstSelectedEnabledOption;
|
|
193
193
|
private firstSelectedOptionIndex?;
|
|
194
194
|
private menuId;
|
|
195
195
|
private previousActiveIndex;
|