@splunk/react-ui 4.13.0 → 4.15.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/.dockerignore +2 -0
- package/Accordion.js +41 -16
- package/Anchor.js +9 -9
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +9 -9
- package/Button.js +47 -46
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +14 -14
- package/CHANGELOG.md +46 -1
- package/Calendar.js +460 -147
- package/Card.js +85 -83
- package/CardLayout.js +9 -9
- package/Chip.js +23 -23
- package/Clickable.js +39 -15
- package/CloseButton.js +23 -23
- package/Code.js +484 -436
- package/CollapsiblePanel.js +64 -35
- package/Color.js +298 -188
- package/ColumnLayout.js +18 -17
- package/ComboBox.js +81 -32
- package/Concertina.js +89 -28
- package/ControlGroup.js +85 -27
- package/Date.js +134 -58
- package/DefinitionList.js +14 -8
- package/Divider.d.ts +2 -0
- package/Divider.js +194 -0
- package/Dockerfile.enterprise.storybook +7 -0
- package/Dockerfile.prisma.storybook +7 -0
- package/Dockerfile.visual +10 -0
- package/Dropdown.js +79 -19
- package/EventListener.js +17 -17
- package/File.js +96 -43
- package/FormRows.js +40 -39
- package/Heading.js +83 -55
- package/Image.js +67 -42
- package/JSONTree.js +106 -21
- package/Layer.js +130 -28
- package/Link.js +17 -17
- package/List.js +3 -3
- package/Markdown.js +71 -65
- package/Menu.js +155 -121
- package/Message.js +135 -135
- package/MessageBar.js +136 -136
- package/Modal.js +99 -48
- package/ModalLayer.js +15 -15
- package/Monogram.js +18 -17
- package/Multiselect.js +2788 -2310
- package/Number.js +76 -37
- package/Paginator.js +99 -86
- package/Paragraph.js +10 -10
- package/Popover.js +343 -48
- package/Progress.js +23 -22
- package/RadioBar.js +32 -14
- package/RadioList.js +17 -11
- package/Resize.js +34 -21
- package/ResultsMenu.js +44 -31
- package/ScreenReaderContent.js +9 -9
- package/Scroll.js +52 -27
- package/ScrollContainerContext.js +157 -6
- package/Search.js +71 -34
- package/Select.js +347 -69
- package/SidePanel.js +37 -24
- package/Slider.js +50 -20
- package/SlidingPanels.js +56 -18
- package/SplitButton.js +27 -26
- package/StaticContent.js +9 -9
- package/StepBar.js +22 -22
- package/Switch.js +18 -13
- package/TabBar.js +28 -28
- package/TabLayout.js +43 -18
- package/Table.js +549 -158
- package/Text.js +93 -50
- package/TextArea.d.ts +2 -0
- package/TextArea.js +134 -56
- package/Tooltip.js +246 -63
- package/TransitionOpen.js +63 -26
- package/Typography.d.ts +2 -0
- package/Typography.js +17 -16
- package/WaitSpinner.js +15 -81
- package/docker-compose.yml +42 -0
- package/package.json +20 -20
- package/test-runner-jest.config.js +23 -5
- package/types/src/Accordion/AccordionContext.d.ts +1 -0
- package/types/src/Button/docs/examples/Selected.d.ts +2 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +1 -0
- package/types/src/Calendar/Calendar.d.ts +17 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CardLayout/CardLayoutContext.d.ts +1 -0
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Concertina/ConcertinaContext.d.ts +1 -0
- package/types/src/ControlGroup/ControlGroup.d.ts +15 -8
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -0
- package/types/src/Date/Date.d.ts +17 -8
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
- package/types/src/Divider/Divider.d.ts +20 -0
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
- package/types/src/Divider/index.d.ts +1 -0
- package/types/src/File/File.d.ts +4 -2
- package/types/src/File/FileContext.d.ts +1 -0
- package/types/src/FormRows/FormRowsContext.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +1 -1
- package/types/src/Menu/MenuContext.d.ts +1 -0
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Multiselect/Compact.d.ts +10 -1
- package/types/src/Multiselect/Multiselect.d.ts +12 -1
- package/types/src/Multiselect/Normal.d.ts +2 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/Popover/Popover.d.ts +25 -5
- package/types/src/Popover/PopoverContext.d.ts +1 -0
- package/types/src/RadioBar/RadioBar.d.ts +5 -3
- package/types/src/RadioBar/RadioBarContext.d.ts +1 -0
- package/types/src/RadioList/RadioList.d.ts +5 -1
- package/types/src/RadioList/RadioListContext.d.ts +1 -0
- package/types/src/Select/SelectBase.d.ts +2 -0
- package/types/src/Slider/Slider.d.ts +5 -3
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -1
- package/types/src/StepBar/StepBarContext.d.ts +1 -0
- package/types/src/Switch/Switch.d.ts +2 -0
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/Table/Head.d.ts +2 -0
- package/types/src/Table/TableContext.d.ts +1 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Text/Text.d.ts +5 -3
- package/types/src/TextArea/TextArea.d.ts +5 -3
- package/types/src/Tooltip/Tooltip.d.ts +26 -9
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useForceUpdate/useForceUpdate.d.ts +1 -0
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +9 -9
- package/{useIsSsr.js → useKeyPress.js} +56 -49
- package/usePrevious.js +9 -9
- package/types/src/useIsSsr/index.d.ts +0 -2
- package/types/src/useIsSsr/useIsSsr.d.ts +0 -8
package/.dockerignore
ADDED
package/Accordion.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 = 182);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,28 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("lodash/keys");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 11:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("lodash/has");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 121:
|
|
119
|
+
/***/ (function(module, exports) {
|
|
120
|
+
|
|
121
|
+
module.exports = require("@splunk/react-ui/CollapsiblePanel");
|
|
122
|
+
|
|
123
|
+
/***/ }),
|
|
124
|
+
|
|
125
|
+
/***/ 182:
|
|
105
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
127
|
|
|
107
128
|
"use strict";
|
|
@@ -120,11 +141,20 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
120
141
|
var external_prop_types_ = __webpack_require__(1);
|
|
121
142
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
122
143
|
|
|
123
|
-
// EXTERNAL MODULE: external "lodash"
|
|
124
|
-
var
|
|
144
|
+
// EXTERNAL MODULE: external "lodash/has"
|
|
145
|
+
var has_ = __webpack_require__(11);
|
|
146
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
147
|
+
|
|
148
|
+
// EXTERNAL MODULE: external "lodash/keys"
|
|
149
|
+
var keys_ = __webpack_require__(10);
|
|
150
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
151
|
+
|
|
152
|
+
// EXTERNAL MODULE: external "lodash/omit"
|
|
153
|
+
var omit_ = __webpack_require__(5);
|
|
154
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
125
155
|
|
|
126
156
|
// EXTERNAL MODULE: external "@splunk/react-ui/CollapsiblePanel"
|
|
127
|
-
var CollapsiblePanel_ = __webpack_require__(
|
|
157
|
+
var CollapsiblePanel_ = __webpack_require__(121);
|
|
128
158
|
var CollapsiblePanel_default = /*#__PURE__*/__webpack_require__.n(CollapsiblePanel_);
|
|
129
159
|
|
|
130
160
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -265,6 +295,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
265
295
|
|
|
266
296
|
|
|
267
297
|
|
|
298
|
+
|
|
299
|
+
|
|
268
300
|
/** @public */
|
|
269
301
|
|
|
270
302
|
var Accordion_propTypes = {
|
|
@@ -320,7 +352,7 @@ var Accordion_Accordion = /*#__PURE__*/function (_Component) {
|
|
|
320
352
|
}));
|
|
321
353
|
});
|
|
322
354
|
|
|
323
|
-
_this.controlledExternally =
|
|
355
|
+
_this.controlledExternally = has_default()(props, 'openPanelId');
|
|
324
356
|
|
|
325
357
|
if (!_this.isControlled()) {
|
|
326
358
|
_this.state = {
|
|
@@ -359,7 +391,7 @@ var Accordion_Accordion = /*#__PURE__*/function (_Component) {
|
|
|
359
391
|
"data-test": "accordion",
|
|
360
392
|
"data-test-open-panel-id": openPanelId,
|
|
361
393
|
elementRef: elementRef
|
|
362
|
-
},
|
|
394
|
+
}, omit_default()(this.props, keys_default()(Accordion.propTypes))), /*#__PURE__*/external_react_default.a.createElement(Accordion_AccordionContext.Provider, {
|
|
363
395
|
value: {
|
|
364
396
|
onRequestOpen: this.handleRequestOpen,
|
|
365
397
|
onRequestClose: this.handleRequestClose,
|
|
@@ -401,10 +433,10 @@ module.exports = require("styled-components");
|
|
|
401
433
|
|
|
402
434
|
/***/ }),
|
|
403
435
|
|
|
404
|
-
/***/
|
|
436
|
+
/***/ 5:
|
|
405
437
|
/***/ (function(module, exports) {
|
|
406
438
|
|
|
407
|
-
module.exports = require("lodash");
|
|
439
|
+
module.exports = require("lodash/omit");
|
|
408
440
|
|
|
409
441
|
/***/ }),
|
|
410
442
|
|
|
@@ -413,13 +445,6 @@ module.exports = require("lodash");
|
|
|
413
445
|
|
|
414
446
|
module.exports = require("@splunk/react-ui/Box");
|
|
415
447
|
|
|
416
|
-
/***/ }),
|
|
417
|
-
|
|
418
|
-
/***/ 84:
|
|
419
|
-
/***/ (function(module, exports) {
|
|
420
|
-
|
|
421
|
-
module.exports = require("@splunk/react-ui/CollapsiblePanel");
|
|
422
|
-
|
|
423
448
|
/***/ })
|
|
424
449
|
|
|
425
450
|
/******/ });
|
package/Anchor.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 = 202);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 2:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 202:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -175,13 +182,6 @@ Anchor.propTypes = propTypes;
|
|
|
175
182
|
// CONCATENATED MODULE: ./src/Anchor/index.ts
|
|
176
183
|
|
|
177
184
|
|
|
178
|
-
/***/ }),
|
|
179
|
-
|
|
180
|
-
/***/ 2:
|
|
181
|
-
/***/ (function(module, exports) {
|
|
182
|
-
|
|
183
|
-
module.exports = require("react");
|
|
184
|
-
|
|
185
185
|
/***/ }),
|
|
186
186
|
|
|
187
187
|
/***/ 3:
|
package/Animation.js
CHANGED
|
@@ -82,12 +82,12 @@ 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 = 231);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 231:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -99,10 +99,10 @@ __webpack_require__.d(__webpack_exports__, "Spring", function() { return /* reex
|
|
|
99
99
|
__webpack_require__.d(__webpack_exports__, "Transition", function() { return /* reexport */ Transition; });
|
|
100
100
|
|
|
101
101
|
// EXTERNAL MODULE: external "react-spring"
|
|
102
|
-
var external_react_spring_ = __webpack_require__(
|
|
102
|
+
var external_react_spring_ = __webpack_require__(26);
|
|
103
103
|
|
|
104
104
|
// EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
105
|
-
var AnimationToggle_ = __webpack_require__(
|
|
105
|
+
var AnimationToggle_ = __webpack_require__(47);
|
|
106
106
|
|
|
107
107
|
// CONCATENATED MODULE: ./src/Animation/Animation.tsx
|
|
108
108
|
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; }
|
|
@@ -151,14 +151,14 @@ function Transition(_ref2) {
|
|
|
151
151
|
|
|
152
152
|
/***/ }),
|
|
153
153
|
|
|
154
|
-
/***/
|
|
154
|
+
/***/ 26:
|
|
155
155
|
/***/ (function(module, exports) {
|
|
156
156
|
|
|
157
157
|
module.exports = require("react-spring");
|
|
158
158
|
|
|
159
159
|
/***/ }),
|
|
160
160
|
|
|
161
|
-
/***/
|
|
161
|
+
/***/ 47:
|
|
162
162
|
/***/ (function(module, exports) {
|
|
163
163
|
|
|
164
164
|
module.exports = require("@splunk/react-ui/AnimationToggle");
|
package/AnimationToggle.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 = 183);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -94,7 +94,7 @@ module.exports = require("prop-types");
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/
|
|
97
|
+
/***/ 183:
|
|
98
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
99
|
|
|
100
100
|
"use strict";
|
package/Box.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 = 203);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 2:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 203:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -176,13 +183,6 @@ Box.propTypes = propTypes;
|
|
|
176
183
|
// CONCATENATED MODULE: ./src/Box/index.ts
|
|
177
184
|
|
|
178
185
|
|
|
179
|
-
/***/ }),
|
|
180
|
-
|
|
181
|
-
/***/ 2:
|
|
182
|
-
/***/ (function(module, exports) {
|
|
183
|
-
|
|
184
|
-
module.exports = require("react");
|
|
185
|
-
|
|
186
186
|
/***/ }),
|
|
187
187
|
|
|
188
188
|
/***/ 3:
|
package/Button.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 = 189);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 189:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -119,23 +119,24 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
119
119
|
var external_prop_types_ = __webpack_require__(1);
|
|
120
120
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
121
121
|
|
|
122
|
-
// EXTERNAL MODULE: external "lodash"
|
|
123
|
-
var
|
|
122
|
+
// EXTERNAL MODULE: external "lodash/isString"
|
|
123
|
+
var isString_ = __webpack_require__(25);
|
|
124
|
+
var isString_default = /*#__PURE__*/__webpack_require__.n(isString_);
|
|
124
125
|
|
|
125
126
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
126
|
-
var i18n_ = __webpack_require__(
|
|
127
|
+
var i18n_ = __webpack_require__(4);
|
|
127
128
|
|
|
128
129
|
// EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
|
|
129
|
-
var Dropdown_ = __webpack_require__(
|
|
130
|
+
var Dropdown_ = __webpack_require__(24);
|
|
130
131
|
|
|
131
132
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
|
-
var style_ = __webpack_require__(
|
|
133
|
+
var style_ = __webpack_require__(40);
|
|
133
134
|
|
|
134
135
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
135
|
-
var CaretDown = __webpack_require__(
|
|
136
|
+
var CaretDown = __webpack_require__(50);
|
|
136
137
|
|
|
137
138
|
// EXTERNAL MODULE: external "@splunk/react-icons/External"
|
|
138
|
-
var External_ = __webpack_require__(
|
|
139
|
+
var External_ = __webpack_require__(60);
|
|
139
140
|
var External_default = /*#__PURE__*/__webpack_require__.n(External_);
|
|
140
141
|
|
|
141
142
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -174,7 +175,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
174
175
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
175
176
|
|
|
176
177
|
// EXTERNAL MODULE: external "@splunk/react-ui/ButtonSimple"
|
|
177
|
-
var ButtonSimple_ = __webpack_require__(
|
|
178
|
+
var ButtonSimple_ = __webpack_require__(61);
|
|
178
179
|
var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
|
|
179
180
|
|
|
180
181
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -444,7 +445,7 @@ var Button_Button = /*#__PURE__*/function (_Component) {
|
|
|
444
445
|
children = _this$props3.children,
|
|
445
446
|
label = _this$props3.label;
|
|
446
447
|
|
|
447
|
-
if (!label &&
|
|
448
|
+
if (!label && isString_default()(children)) {
|
|
448
449
|
label = children;
|
|
449
450
|
children = null;
|
|
450
451
|
}
|
|
@@ -515,17 +516,24 @@ _defineProperty(Button_Button, Dropdown_["legacyRefMode"], true);
|
|
|
515
516
|
|
|
516
517
|
/***/ }),
|
|
517
518
|
|
|
518
|
-
/***/
|
|
519
|
+
/***/ 2:
|
|
520
|
+
/***/ (function(module, exports) {
|
|
521
|
+
|
|
522
|
+
module.exports = require("react");
|
|
523
|
+
|
|
524
|
+
/***/ }),
|
|
525
|
+
|
|
526
|
+
/***/ 24:
|
|
519
527
|
/***/ (function(module, exports) {
|
|
520
528
|
|
|
521
529
|
module.exports = require("@splunk/react-ui/Dropdown");
|
|
522
530
|
|
|
523
531
|
/***/ }),
|
|
524
532
|
|
|
525
|
-
/***/
|
|
533
|
+
/***/ 25:
|
|
526
534
|
/***/ (function(module, exports) {
|
|
527
535
|
|
|
528
|
-
module.exports = require("
|
|
536
|
+
module.exports = require("lodash/isString");
|
|
529
537
|
|
|
530
538
|
/***/ }),
|
|
531
539
|
|
|
@@ -536,21 +544,28 @@ module.exports = require("styled-components");
|
|
|
536
544
|
|
|
537
545
|
/***/ }),
|
|
538
546
|
|
|
539
|
-
/***/
|
|
547
|
+
/***/ 4:
|
|
548
|
+
/***/ (function(module, exports) {
|
|
549
|
+
|
|
550
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
551
|
+
|
|
552
|
+
/***/ }),
|
|
553
|
+
|
|
554
|
+
/***/ 40:
|
|
540
555
|
/***/ (function(module, exports) {
|
|
541
556
|
|
|
542
557
|
module.exports = require("@splunk/ui-utils/style");
|
|
543
558
|
|
|
544
559
|
/***/ }),
|
|
545
560
|
|
|
546
|
-
/***/
|
|
561
|
+
/***/ 50:
|
|
547
562
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
548
563
|
|
|
549
564
|
"use strict";
|
|
550
565
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CaretDown; });
|
|
551
566
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
552
567
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
553
|
-
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
568
|
+
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51);
|
|
554
569
|
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__);
|
|
555
570
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
556
571
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -581,41 +596,13 @@ function CaretDown(props) {
|
|
|
581
596
|
|
|
582
597
|
/***/ }),
|
|
583
598
|
|
|
584
|
-
/***/
|
|
599
|
+
/***/ 51:
|
|
585
600
|
/***/ (function(module, exports) {
|
|
586
601
|
|
|
587
602
|
module.exports = require("@splunk/react-icons/Caret");
|
|
588
603
|
|
|
589
604
|
/***/ }),
|
|
590
605
|
|
|
591
|
-
/***/ 4:
|
|
592
|
-
/***/ (function(module, exports) {
|
|
593
|
-
|
|
594
|
-
module.exports = require("lodash");
|
|
595
|
-
|
|
596
|
-
/***/ }),
|
|
597
|
-
|
|
598
|
-
/***/ 46:
|
|
599
|
-
/***/ (function(module, exports) {
|
|
600
|
-
|
|
601
|
-
module.exports = require("@splunk/react-ui/ButtonSimple");
|
|
602
|
-
|
|
603
|
-
/***/ }),
|
|
604
|
-
|
|
605
|
-
/***/ 5:
|
|
606
|
-
/***/ (function(module, exports) {
|
|
607
|
-
|
|
608
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
609
|
-
|
|
610
|
-
/***/ }),
|
|
611
|
-
|
|
612
|
-
/***/ 59:
|
|
613
|
-
/***/ (function(module, exports) {
|
|
614
|
-
|
|
615
|
-
module.exports = require("@splunk/react-icons/External");
|
|
616
|
-
|
|
617
|
-
/***/ }),
|
|
618
|
-
|
|
619
606
|
/***/ 6:
|
|
620
607
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
621
608
|
|
|
@@ -641,6 +628,20 @@ function SVG(props) {
|
|
|
641
628
|
|
|
642
629
|
/***/ }),
|
|
643
630
|
|
|
631
|
+
/***/ 60:
|
|
632
|
+
/***/ (function(module, exports) {
|
|
633
|
+
|
|
634
|
+
module.exports = require("@splunk/react-icons/External");
|
|
635
|
+
|
|
636
|
+
/***/ }),
|
|
637
|
+
|
|
638
|
+
/***/ 61:
|
|
639
|
+
/***/ (function(module, exports) {
|
|
640
|
+
|
|
641
|
+
module.exports = require("@splunk/react-ui/ButtonSimple");
|
|
642
|
+
|
|
643
|
+
/***/ }),
|
|
644
|
+
|
|
644
645
|
/***/ 7:
|
|
645
646
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
646
647
|
|
package/ButtonGroup.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 = 204);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 2:
|
|
105
|
+
/***/ (function(module, exports) {
|
|
106
|
+
|
|
107
|
+
module.exports = require("react");
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
111
|
+
/***/ 204:
|
|
105
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
113
|
|
|
107
114
|
"use strict";
|
|
@@ -187,13 +194,6 @@ ButtonGroup.propTypes = propTypes;
|
|
|
187
194
|
// CONCATENATED MODULE: ./src/ButtonGroup/index.ts
|
|
188
195
|
|
|
189
196
|
|
|
190
|
-
/***/ }),
|
|
191
|
-
|
|
192
|
-
/***/ 2:
|
|
193
|
-
/***/ (function(module, exports) {
|
|
194
|
-
|
|
195
|
-
module.exports = require("react");
|
|
196
|
-
|
|
197
197
|
/***/ }),
|
|
198
198
|
|
|
199
199
|
/***/ 3:
|
package/ButtonSimple.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 = 184);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,21 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 14:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 16:
|
|
112
|
+
/***/ (function(module, exports) {
|
|
113
|
+
|
|
114
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
115
|
+
|
|
116
|
+
/***/ }),
|
|
117
|
+
|
|
118
|
+
/***/ 184:
|
|
112
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
120
|
|
|
114
121
|
"use strict";
|
|
@@ -127,13 +134,13 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
127
134
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
135
|
|
|
129
136
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
130
|
-
var i18n_ = __webpack_require__(
|
|
137
|
+
var i18n_ = __webpack_require__(4);
|
|
131
138
|
|
|
132
139
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
133
140
|
var themes_ = __webpack_require__(0);
|
|
134
141
|
|
|
135
142
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
136
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
143
|
+
var ScreenReaderContent_ = __webpack_require__(16);
|
|
137
144
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
138
145
|
|
|
139
146
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -141,7 +148,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
141
148
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
142
149
|
|
|
143
150
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
144
|
-
var Clickable_ = __webpack_require__(
|
|
151
|
+
var Clickable_ = __webpack_require__(14);
|
|
145
152
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
146
153
|
|
|
147
154
|
// CONCATENATED MODULE: ./src/ButtonSimple/prismaStyles.ts
|
|
@@ -528,13 +535,6 @@ ButtonSimpleWithTheme.propTypes = ButtonSimple_ButtonSimple.propTypes;
|
|
|
528
535
|
|
|
529
536
|
|
|
530
537
|
|
|
531
|
-
/***/ }),
|
|
532
|
-
|
|
533
|
-
/***/ 14:
|
|
534
|
-
/***/ (function(module, exports) {
|
|
535
|
-
|
|
536
|
-
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
537
|
-
|
|
538
538
|
/***/ }),
|
|
539
539
|
|
|
540
540
|
/***/ 2:
|
|
@@ -551,7 +551,7 @@ module.exports = require("styled-components");
|
|
|
551
551
|
|
|
552
552
|
/***/ }),
|
|
553
553
|
|
|
554
|
-
/***/
|
|
554
|
+
/***/ 4:
|
|
555
555
|
/***/ (function(module, exports) {
|
|
556
556
|
|
|
557
557
|
module.exports = require("@splunk/ui-utils/i18n");
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
Change Log
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
4.15.0 - December 6, 2022
|
|
5
|
+
----------
|
|
6
|
+
New Features:
|
|
7
|
+
* Added a `required` prop to `ControlGroup` to support inputs being required (SUI-5108).
|
|
8
|
+
* Added support for a `filter` prop to `Multiselect` in `compact` mode (SUI-5201).
|
|
9
|
+
* This property supports `true`, `false`, and `"controlled"` as values, similar to `Select`.
|
|
10
|
+
* If this is set, the `controlledFilter` prop is ignored because `filter="controlled"` has identical functionality.
|
|
11
|
+
|
|
12
|
+
Bug Fixes:
|
|
13
|
+
* Added missing type definition files for `TextArea` and `Divider` (SUI-5154).
|
|
14
|
+
* Fixes missing `data-test="fixed-head"` test hook in `Table` (SUI-5157).
|
|
15
|
+
* Added SSR support for `Select`
|
|
16
|
+
* Optimizes bundle sizes of consumers by reducing footprint of "lodash" (SUI-5090).
|
|
17
|
+
* Added a missing icon for `openInNewContext` in `Menu.Item` (SUI-5165).
|
|
18
|
+
* `Menu.Heading` no longer has an extra padding in Prisma themes (SUI-4114).
|
|
19
|
+
* `Color` will render a console warning when an invalid Hex value is supplied (SUI-5081).
|
|
20
|
+
* Pins `react-spring` to v9.2.4 (SUI-5170).
|
|
21
|
+
* Upgrades `moment` to v2.29.4 and `minimist` to v1.2.6 (SUI-5176).
|
|
22
|
+
* `Popover` and all elements derived from it no longer accept mouse input during their disappear animation (SUI-3543).
|
|
23
|
+
* `Tooltip` is no longer interactible during its disappear animation (SUI-5116).
|
|
24
|
+
* The default `closeDelay` has been increased from `0` to `300`.
|
|
25
|
+
* The disappear animation duration has been correspondingly reduced.
|
|
26
|
+
* This allows for a grace period when the user can leave and return to the `Tooltip`.
|
|
27
|
+
* This is similar to the old disappear behavior, but without the issue where a mostly-invisible tooltip accepts mouse interaction.
|
|
28
|
+
* `onRequestOpen` and `onRequestClose` callbacks will no longer trigger when the mouse moves between the `Tooltip` `anchor` and `Popover`.
|
|
29
|
+
|
|
30
|
+
4.14.0 - November 1, 2022
|
|
31
|
+
----------
|
|
32
|
+
New Features:
|
|
33
|
+
* New `Divider` component for separating components with horizontal or vertical rules (SUI-4080).
|
|
34
|
+
* Added `inputOnly` prop to `Date` (SUI-3809).
|
|
35
|
+
* Added a `renderChildrenWhenCollapsed` prop to `CollapsiblePanel` and `TransitionOpen` which defaults to `false` (SUI-4321).
|
|
36
|
+
* Added a `divider` prop to `Modal` to show dividers between header, body and footer. The value defaults to `both` (SUI-3443).
|
|
37
|
+
* `ControlGroup`'s `error` prop now takes `boolean` or `string` (SUI-5086).
|
|
38
|
+
* `error` with `string` will display error text below the control.
|
|
39
|
+
* `help` and `error` text can be displayed at the same time.
|
|
40
|
+
|
|
41
|
+
Bug Fixes:
|
|
42
|
+
* `Date`'s dropdown menu is now keyboard accessible (SUI-3809).
|
|
43
|
+
* `Text` now allows the `role` to be set externally.
|
|
44
|
+
* `ControlGroup` will no longer hide its `Tooltip` on toggle click (SUI-5116).
|
|
45
|
+
* Server side rendering support is now added for `ScrollContainerContext` and `Table` (SUI-5115).
|
|
46
|
+
* `Card`'s `title` and `subtitle` now wrap/truncate correctly when `actionPrimary` or `actionsSecondary` are present (SUI-5096).
|
|
47
|
+
* `Modal` shows dividers by default for the Prisma theme to match the Splunk Design System (SUI-3443).
|
|
48
|
+
|
|
4
49
|
4.13.0 - October 5, 2022
|
|
5
50
|
----------
|
|
6
51
|
New Features:
|
|
@@ -14,7 +59,7 @@ Bug Fixes:
|
|
|
14
59
|
* `Multiselect` with `compact` will no longer affect disabled items with "Select All" and "Clear All" (SUI-5060).
|
|
15
60
|
|
|
16
61
|
Deprecations:
|
|
17
|
-
* The `placeholder` prop in the `Text`
|
|
62
|
+
* The `placeholder` prop in the `Text`, `TextArea`, and `Number` components has been deprecated and will be removed in the next major release (SUI-5055, SUI-5095).
|
|
18
63
|
* `placeholder` text presents a number of visual and cognitive issues and best to avoid using it.
|
|
19
64
|
* The HTML `placeholder` attribute is still supported.
|
|
20
65
|
* The `placeholder` attribute should not replace a label.
|