@splunk/react-ui 4.4.1 → 4.5.2
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 +37 -21
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +36 -12
- package/ButtonGroup.js +27 -6
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +61 -1
- package/Calendar.js +14 -14
- package/Card.js +49 -23
- package/CardLayout.js +31 -10
- package/Chip.js +77 -53
- package/Clickable.js +4 -4
- package/CloseButton.js +6 -6
- package/Code.js +4 -4
- package/CollapsiblePanel.js +6 -6
- package/Color.js +103 -56
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +20 -15
- package/Concertina.js +73 -68
- package/ControlGroup.js +72 -24
- package/Date.js +11 -11
- package/DefinitionList.js +6 -6
- package/Dropdown.js +12 -12
- package/EventListener.js +168 -0
- package/FetchOptions.js +8 -8
- package/File.js +48 -37
- package/FormRows.js +340 -220
- package/Image.js +14 -14
- package/JSONTree.js +5 -5
- package/Layer.js +32 -20
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +250 -88
- package/Menu.js +70 -64
- package/Message.js +18 -18
- package/Modal.js +68 -14
- package/ModalLayer.js +4 -4
- package/Monogram.js +12 -11
- package/Multiselect.js +122 -78
- package/Number.js +19 -16
- package/Paginator.js +10 -10
- package/Paragraph.js +2 -2
- package/Popover.js +52 -38
- package/Progress.js +8 -8
- package/RadioBar.js +56 -69
- package/RadioList.js +2 -2
- package/Resize.js +19 -15
- package/ResultsMenu.js +8 -8
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +16 -14
- package/ScrollContainerContext.js +5 -5
- package/Search.d.ts +2 -0
- package/Search.js +797 -0
- package/Select.js +63 -35
- package/SidePanel.js +6 -6
- package/Slider.js +29 -25
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +56 -52
- package/Switch.js +8 -8
- package/TabBar.js +126 -85
- package/TabLayout.js +4 -5
- package/Table.js +188 -138
- package/Text.js +69 -63
- package/Tooltip.js +11 -11
- package/TransitionOpen.js +9 -9
- package/WaitSpinner.js +3 -4
- package/package.json +6 -7
- package/types/src/Accordion/AccordionContext.d.ts +10 -0
- package/types/src/Accordion/Panel.d.ts +0 -9
- package/types/src/Button/Button.d.ts +4 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +7 -0
- package/types/src/ButtonSimple/ButtonSimple.d.ts +5 -5
- package/types/src/Card/Card.d.ts +2 -0
- package/types/src/CardLayout/CardLayoutContext.d.ts +8 -0
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/ComboBox/ComboBox.d.ts +4 -3
- package/types/src/Concertina/ConcertinaContext.d.ts +8 -0
- package/types/src/Concertina/Panel.d.ts +2 -4
- package/types/src/ControlGroup/ControlGroup.d.ts +6 -1
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/EventListener/EventListener.d.ts +18 -0
- package/types/src/EventListener/index.d.ts +2 -0
- package/types/src/File/File.d.ts +6 -4
- package/types/src/FormRows/FormRows.d.ts +70 -12
- package/types/src/FormRows/FormRowsContext.d.ts +1 -0
- package/types/src/FormRows/Row.d.ts +9 -7
- package/types/src/Markdown/Markdown.d.ts +2 -0
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +16 -0
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +14 -0
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +18 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +26 -0
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +14 -0
- package/types/src/Markdown/renderers/index.d.ts +10 -0
- package/types/src/Modal/Modal.d.ts +15 -3
- package/types/src/Monogram/Monogram.d.ts +5 -1
- package/types/src/Multiselect/Compact.d.ts +12 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -4
- package/types/src/Multiselect/Normal.d.ts +7 -2
- package/types/src/Number/Number.d.ts +11 -7
- package/types/src/Popover/Popover.d.ts +2 -2
- package/types/src/RadioBar/Option.d.ts +4 -14
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/RadioBar/RadioBarContext.d.ts +9 -0
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +4 -4
- package/types/src/Search/Option.d.ts +60 -0
- package/types/src/Search/Search.d.ts +97 -0
- package/types/src/Search/index.d.ts +2 -0
- package/types/src/Select/Select.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +12 -5
- package/types/src/Slider/Slider.d.ts +2 -2
- package/types/src/StepBar/Step.d.ts +1 -13
- package/types/src/StepBar/StepBarContext.d.ts +8 -0
- package/types/src/TabBar/Tab.d.ts +5 -13
- package/types/src/TabBar/TabBarContext.d.ts +14 -0
- package/types/src/Table/Body.d.ts +1 -1
- package/types/src/Table/Head.d.ts +1 -1
- package/types/src/Table/Row.d.ts +10 -3
- package/types/src/Table/Table.d.ts +3 -2
- package/types/src/Text/Text.d.ts +11 -7
- package/types/src/icons/Sort.d.ts +3 -0
- package/types/src/usePrevious/index.d.ts +2 -0
- package/types/src/usePrevious/usePrevious.d.ts +12 -0
- package/usePrevious.js +137 -0
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 = 121);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,21 +101,48 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 103:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 104:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-icons/Search");
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 11:
|
|
119
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
|
+
|
|
121
|
+
"use strict";
|
|
122
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
123
|
+
/**
|
|
124
|
+
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
125
|
+
*
|
|
126
|
+
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
127
|
+
* @param current - The new value of the ref.
|
|
128
|
+
*/
|
|
129
|
+
function updateReactRef(ref, current) {
|
|
130
|
+
if (ref) {
|
|
131
|
+
if (typeof ref === 'function') {
|
|
132
|
+
ref(current);
|
|
133
|
+
} else {
|
|
134
|
+
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
135
|
+
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
136
|
+
ref.current = current; // eslint-disable-line no-param-reassign
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
/***/ }),
|
|
144
|
+
|
|
145
|
+
/***/ 121:
|
|
119
146
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
147
|
|
|
121
148
|
"use strict";
|
|
@@ -133,31 +160,31 @@ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_)
|
|
|
133
160
|
var external_prop_types_ = __webpack_require__(1);
|
|
134
161
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
135
162
|
|
|
136
|
-
// EXTERNAL MODULE: external "react-event-listener"
|
|
137
|
-
var external_react_event_listener_ = __webpack_require__(15);
|
|
138
|
-
var external_react_event_listener_default = /*#__PURE__*/__webpack_require__.n(external_react_event_listener_);
|
|
139
|
-
|
|
140
163
|
// EXTERNAL MODULE: external "lodash"
|
|
141
164
|
var external_lodash_ = __webpack_require__(4);
|
|
142
165
|
|
|
143
166
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
144
|
-
var style_ = __webpack_require__(
|
|
167
|
+
var style_ = __webpack_require__(39);
|
|
168
|
+
|
|
169
|
+
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
170
|
+
var EventListener_ = __webpack_require__(14);
|
|
171
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
145
172
|
|
|
146
173
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
147
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
174
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
148
175
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
149
176
|
|
|
150
177
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
151
178
|
var themes_ = __webpack_require__(0);
|
|
152
179
|
|
|
153
180
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
154
|
-
var ControlGroup_ = __webpack_require__(
|
|
181
|
+
var ControlGroup_ = __webpack_require__(103);
|
|
155
182
|
|
|
156
183
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
157
184
|
var i18n_ = __webpack_require__(5);
|
|
158
185
|
|
|
159
186
|
// EXTERNAL MODULE: external "@splunk/react-icons/Search"
|
|
160
|
-
var Search_ = __webpack_require__(
|
|
187
|
+
var Search_ = __webpack_require__(104);
|
|
161
188
|
var Search_default = /*#__PURE__*/__webpack_require__.n(Search_);
|
|
162
189
|
|
|
163
190
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -204,7 +231,7 @@ function Search(props) {
|
|
|
204
231
|
}, props));
|
|
205
232
|
}
|
|
206
233
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
207
|
-
var CrossMark = __webpack_require__(
|
|
234
|
+
var CrossMark = __webpack_require__(22);
|
|
208
235
|
|
|
209
236
|
// CONCATENATED MODULE: ./src/Text/syncHeightWithShadow.ts
|
|
210
237
|
// This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
|
|
@@ -282,10 +309,10 @@ function syncHeightWithShadow(_ref) {
|
|
|
282
309
|
return false;
|
|
283
310
|
}
|
|
284
311
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
285
|
-
var updateReactRef = __webpack_require__(
|
|
312
|
+
var updateReactRef = __webpack_require__(11);
|
|
286
313
|
|
|
287
314
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
288
|
-
var SVG_ = __webpack_require__(
|
|
315
|
+
var SVG_ = __webpack_require__(23);
|
|
289
316
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
290
317
|
|
|
291
318
|
// CONCATENATED MODULE: ./src/Text/IconOutlinedHide.tsx
|
|
@@ -407,7 +434,7 @@ var Box_ = __webpack_require__(8);
|
|
|
407
434
|
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
408
435
|
|
|
409
436
|
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
410
|
-
var Button_ = __webpack_require__(
|
|
437
|
+
var Button_ = __webpack_require__(17);
|
|
411
438
|
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
412
439
|
|
|
413
440
|
// CONCATENATED MODULE: ./src/Text/TextStyles.ts
|
|
@@ -827,8 +854,7 @@ var defaultProps = {
|
|
|
827
854
|
rowsMin: 2,
|
|
828
855
|
tabIndex: 0,
|
|
829
856
|
type: 'text',
|
|
830
|
-
passwordVisibilityToggle: false
|
|
831
|
-
useSyntheticPlaceholder: false
|
|
857
|
+
passwordVisibilityToggle: false
|
|
832
858
|
};
|
|
833
859
|
|
|
834
860
|
/** Note: Text places role and aria props onto the input. All other props are placed on the wrapper. */
|
|
@@ -992,7 +1018,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
992
1018
|
disabled = _this$props7.disabled,
|
|
993
1019
|
canClear = _this$props7.canClear,
|
|
994
1020
|
splunkTheme = _this$props7.splunkTheme;
|
|
995
|
-
var isPrisma =
|
|
1021
|
+
var isPrisma = splunkTheme.isPrisma;
|
|
996
1022
|
var adornmentProps = {
|
|
997
1023
|
ref: function ref(el) {
|
|
998
1024
|
_this.endAdornment = el;
|
|
@@ -1061,7 +1087,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1061
1087
|
startAdornment = _this$props8.startAdornment,
|
|
1062
1088
|
splunkTheme = _this$props8.splunkTheme,
|
|
1063
1089
|
disabled = _this$props8.disabled;
|
|
1064
|
-
var isPrisma =
|
|
1090
|
+
var isPrisma = splunkTheme.isPrisma;
|
|
1065
1091
|
var adornmentProps = {
|
|
1066
1092
|
ref: function ref(el) {
|
|
1067
1093
|
_this.startAdornment = el;
|
|
@@ -1079,7 +1105,8 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1079
1105
|
$disabled: disabled
|
|
1080
1106
|
}, /*#__PURE__*/external_react_default.a.createElement(Search, {
|
|
1081
1107
|
enterpriseSize: "16px",
|
|
1082
|
-
inline: false
|
|
1108
|
+
inline: false,
|
|
1109
|
+
screenReaderText: "Search"
|
|
1083
1110
|
})));
|
|
1084
1111
|
}
|
|
1085
1112
|
|
|
@@ -1096,6 +1123,11 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1096
1123
|
|
|
1097
1124
|
if (false) {}
|
|
1098
1125
|
|
|
1126
|
+
if (Object(external_lodash_["has"])(props, 'useSyntheticPlaceholder')) {
|
|
1127
|
+
// eslint-disable-next-line no-console
|
|
1128
|
+
console.warn("The 'Text' prop 'useSyntheticPlaceholder' has been marked for deprecation.");
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1099
1131
|
Text.validateRows(props);
|
|
1100
1132
|
_this.handleResize = Object(external_lodash_["throttle"])(_this.handleResize, 100);
|
|
1101
1133
|
return _this;
|
|
@@ -1278,7 +1310,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1278
1310
|
as: multiline ? 'textarea' : undefined,
|
|
1279
1311
|
className: Object(style_["toClassName"])(className, classNamePrivate),
|
|
1280
1312
|
"data-multiline": multiline || null,
|
|
1281
|
-
"data-test": "
|
|
1313
|
+
"data-test": "textbox",
|
|
1282
1314
|
disabled: true,
|
|
1283
1315
|
readOnly: true,
|
|
1284
1316
|
style: multiline ? {
|
|
@@ -1293,9 +1325,10 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1293
1325
|
} : undefined
|
|
1294
1326
|
}, ariaProps)) : /*#__PURE__*/external_react_default.a.createElement(StyledInput, Text_extends({
|
|
1295
1327
|
as: multiline ? 'textarea' : undefined
|
|
1296
|
-
}, inputProps)), !disabled && multiline && /*#__PURE__*/external_react_default.a.createElement(
|
|
1297
|
-
target:
|
|
1298
|
-
|
|
1328
|
+
}, inputProps)), !disabled && multiline && /*#__PURE__*/external_react_default.a.createElement(EventListener_default.a, {
|
|
1329
|
+
target: window,
|
|
1330
|
+
eventType: "resize",
|
|
1331
|
+
listener: this.handleResize
|
|
1299
1332
|
}), haveSyntheticPlaceholder && /*#__PURE__*/external_react_default.a.createElement(ScreenReaderContent_default.a, null, placeholder), haveSyntheticPlaceholder && /*#__PURE__*/external_react_default.a.createElement(StyledPlaceholder, {
|
|
1300
1333
|
$endAdornmentWidth: this.state.endAdornmentWidth,
|
|
1301
1334
|
$hasBothAdornment: hasStartAdornment && hasEndAdornment // used to calculate the max-width
|
|
@@ -1331,50 +1364,23 @@ TextWithTheme.componentType = Text_Text.componentType;
|
|
|
1331
1364
|
|
|
1332
1365
|
|
|
1333
1366
|
|
|
1334
|
-
/***/ }),
|
|
1335
|
-
|
|
1336
|
-
/***/ 12:
|
|
1337
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1338
|
-
|
|
1339
|
-
"use strict";
|
|
1340
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
1341
|
-
/**
|
|
1342
|
-
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
1343
|
-
*
|
|
1344
|
-
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
1345
|
-
* @param current - The new value of the ref.
|
|
1346
|
-
*/
|
|
1347
|
-
function updateReactRef(ref, current) {
|
|
1348
|
-
if (ref) {
|
|
1349
|
-
if (typeof ref === 'function') {
|
|
1350
|
-
ref(current);
|
|
1351
|
-
} else {
|
|
1352
|
-
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
1353
|
-
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
1354
|
-
ref.current = current; // eslint-disable-line no-param-reassign
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
1367
|
/***/ }),
|
|
1362
1368
|
|
|
1363
1369
|
/***/ 14:
|
|
1364
1370
|
/***/ (function(module, exports) {
|
|
1365
1371
|
|
|
1366
|
-
module.exports = require("@splunk/react-ui/
|
|
1372
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
1367
1373
|
|
|
1368
1374
|
/***/ }),
|
|
1369
1375
|
|
|
1370
1376
|
/***/ 15:
|
|
1371
1377
|
/***/ (function(module, exports) {
|
|
1372
1378
|
|
|
1373
|
-
module.exports = require("react-
|
|
1379
|
+
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
1374
1380
|
|
|
1375
1381
|
/***/ }),
|
|
1376
1382
|
|
|
1377
|
-
/***/
|
|
1383
|
+
/***/ 17:
|
|
1378
1384
|
/***/ (function(module, exports) {
|
|
1379
1385
|
|
|
1380
1386
|
module.exports = require("@splunk/react-ui/Button");
|
|
@@ -1388,14 +1394,14 @@ module.exports = require("react");
|
|
|
1388
1394
|
|
|
1389
1395
|
/***/ }),
|
|
1390
1396
|
|
|
1391
|
-
/***/
|
|
1397
|
+
/***/ 22:
|
|
1392
1398
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1393
1399
|
|
|
1394
1400
|
"use strict";
|
|
1395
1401
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
1396
1402
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1397
1403
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1398
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1404
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(26);
|
|
1399
1405
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
1400
1406
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1401
1407
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1438,14 +1444,14 @@ function CrossMark(props) {
|
|
|
1438
1444
|
|
|
1439
1445
|
/***/ }),
|
|
1440
1446
|
|
|
1441
|
-
/***/
|
|
1447
|
+
/***/ 23:
|
|
1442
1448
|
/***/ (function(module, exports) {
|
|
1443
1449
|
|
|
1444
1450
|
module.exports = require("@splunk/react-icons/SVG");
|
|
1445
1451
|
|
|
1446
1452
|
/***/ }),
|
|
1447
1453
|
|
|
1448
|
-
/***/
|
|
1454
|
+
/***/ 26:
|
|
1449
1455
|
/***/ (function(module, exports) {
|
|
1450
1456
|
|
|
1451
1457
|
module.exports = require("@splunk/react-icons/Close");
|
|
@@ -1459,17 +1465,17 @@ module.exports = require("styled-components");
|
|
|
1459
1465
|
|
|
1460
1466
|
/***/ }),
|
|
1461
1467
|
|
|
1462
|
-
/***/
|
|
1468
|
+
/***/ 39:
|
|
1463
1469
|
/***/ (function(module, exports) {
|
|
1464
1470
|
|
|
1465
|
-
module.exports = require("
|
|
1471
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
1466
1472
|
|
|
1467
1473
|
/***/ }),
|
|
1468
1474
|
|
|
1469
|
-
/***/
|
|
1475
|
+
/***/ 4:
|
|
1470
1476
|
/***/ (function(module, exports) {
|
|
1471
1477
|
|
|
1472
|
-
module.exports = require("
|
|
1478
|
+
module.exports = require("lodash");
|
|
1473
1479
|
|
|
1474
1480
|
/***/ }),
|
|
1475
1481
|
|
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 = 142);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,14 +108,14 @@ module.exports = require("@splunk/ui-utils/id");
|
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 12:
|
|
112
112
|
/***/ (function(module, exports) {
|
|
113
113
|
|
|
114
114
|
module.exports = require("@splunk/react-ui/Clickable");
|
|
115
115
|
|
|
116
116
|
/***/ }),
|
|
117
117
|
|
|
118
|
-
/***/
|
|
118
|
+
/***/ 142:
|
|
119
119
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
120
120
|
|
|
121
121
|
"use strict";
|
|
@@ -137,11 +137,11 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
137
137
|
var external_lodash_ = __webpack_require__(4);
|
|
138
138
|
|
|
139
139
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
140
|
-
var Popover_ = __webpack_require__(
|
|
140
|
+
var Popover_ = __webpack_require__(16);
|
|
141
141
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
142
142
|
|
|
143
143
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
144
|
-
var ScreenReaderContent_ = __webpack_require__(
|
|
144
|
+
var ScreenReaderContent_ = __webpack_require__(15);
|
|
145
145
|
var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReaderContent_);
|
|
146
146
|
|
|
147
147
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
@@ -154,7 +154,7 @@ var id_ = __webpack_require__(10);
|
|
|
154
154
|
var i18n_ = __webpack_require__(5);
|
|
155
155
|
|
|
156
156
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
157
|
-
var SVG_ = __webpack_require__(
|
|
157
|
+
var SVG_ = __webpack_require__(23);
|
|
158
158
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
159
159
|
|
|
160
160
|
// CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
|
|
@@ -202,7 +202,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
202
202
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
203
203
|
|
|
204
204
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
205
|
-
var Clickable_ = __webpack_require__(
|
|
205
|
+
var Clickable_ = __webpack_require__(12);
|
|
206
206
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
207
207
|
|
|
208
208
|
// CONCATENATED MODULE: ./src/Tooltip/TooltipStyles.ts
|
|
@@ -515,7 +515,7 @@ var Tooltip_Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
515
515
|
var openRender = !!anchor && this.isControlled() ? open : hasContent && this.state.open;
|
|
516
516
|
var StyledComp = inline ? StyledInline : Styled;
|
|
517
517
|
var StyledToggleComp = inline ? StyledToggleInline : StyledToggle;
|
|
518
|
-
var isPrisma = splunkTheme.
|
|
518
|
+
var isPrisma = splunkTheme.isPrisma;
|
|
519
519
|
var placement = isPrisma ? 'below' : 'above';
|
|
520
520
|
var cloneProps;
|
|
521
521
|
|
|
@@ -588,14 +588,14 @@ TooltipWithTheme.propTypes = Tooltip_Tooltip.propTypes;
|
|
|
588
588
|
|
|
589
589
|
/***/ }),
|
|
590
590
|
|
|
591
|
-
/***/
|
|
591
|
+
/***/ 15:
|
|
592
592
|
/***/ (function(module, exports) {
|
|
593
593
|
|
|
594
594
|
module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
595
595
|
|
|
596
596
|
/***/ }),
|
|
597
597
|
|
|
598
|
-
/***/
|
|
598
|
+
/***/ 16:
|
|
599
599
|
/***/ (function(module, exports) {
|
|
600
600
|
|
|
601
601
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -609,7 +609,7 @@ module.exports = require("react");
|
|
|
609
609
|
|
|
610
610
|
/***/ }),
|
|
611
611
|
|
|
612
|
-
/***/
|
|
612
|
+
/***/ 23:
|
|
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 = 167);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 167:
|
|
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__(25);
|
|
130
130
|
|
|
131
131
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
|
-
var style_ = __webpack_require__(
|
|
132
|
+
var style_ = __webpack_require__(39);
|
|
133
133
|
|
|
134
134
|
// EXTERNAL MODULE: external "react-spring"
|
|
135
135
|
var external_react_spring_ = __webpack_require__(18);
|
|
@@ -445,7 +445,7 @@ module.exports = require("react");
|
|
|
445
445
|
|
|
446
446
|
/***/ }),
|
|
447
447
|
|
|
448
|
-
/***/
|
|
448
|
+
/***/ 25:
|
|
449
449
|
/***/ (function(module, exports) {
|
|
450
450
|
|
|
451
451
|
module.exports = require("@splunk/ui-utils/focus");
|
|
@@ -466,17 +466,17 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
466
466
|
|
|
467
467
|
/***/ }),
|
|
468
468
|
|
|
469
|
-
/***/
|
|
469
|
+
/***/ 39:
|
|
470
470
|
/***/ (function(module, exports) {
|
|
471
471
|
|
|
472
|
-
module.exports = require("
|
|
472
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
473
473
|
|
|
474
474
|
/***/ }),
|
|
475
475
|
|
|
476
|
-
/***/
|
|
476
|
+
/***/ 4:
|
|
477
477
|
/***/ (function(module, exports) {
|
|
478
478
|
|
|
479
|
-
module.exports = require("
|
|
479
|
+
module.exports = require("lodash");
|
|
480
480
|
|
|
481
481
|
/***/ })
|
|
482
482
|
|
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 = 168);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 168:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -229,9 +229,8 @@ function WaitSpinner(_ref) {
|
|
|
229
229
|
var animated = Object(AnimationToggle_["useAnimationToggle"])() === 'on';
|
|
230
230
|
|
|
231
231
|
var _useSplunkTheme = Object(themes_["useSplunkTheme"])(),
|
|
232
|
-
|
|
232
|
+
isPrisma = _useSplunkTheme.isPrisma;
|
|
233
233
|
|
|
234
|
-
var isPrisma = family === 'prisma';
|
|
235
234
|
var viewBox = isPrisma ? '0 0 40 40' : '0 0 19 19';
|
|
236
235
|
return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
|
|
237
236
|
"data-test": "wait-spinner"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"storybook:build": "./.storybook/scripts/build.sh",
|
|
17
17
|
"stylelint": "stylelint \"src/**/*.{ts,tsx,js,jsx}\" --config stylelint.config.js",
|
|
18
18
|
"test": "jest",
|
|
19
|
-
"test:ci": "JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=
|
|
19
|
+
"test:ci": "JEST_JUNIT_OUTPUT_DIR=./test-reports JEST_JUNIT_OUTPUT_NAME=unit-results.xml JEST_JUNIT_CLASSNAME=unit yarn run test --ci --reporters=default jest-junit --coverage --coverageDirectory=coverage_report/coverage_maps_unit --coverageReporters=cobertura",
|
|
20
20
|
"test:watch": "jest --watch",
|
|
21
21
|
"test:functional": "splunk-wdio-functional-test-runner functional.local.conf.js",
|
|
22
22
|
"test:functional:coverage": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.local.conf.js --coverage",
|
|
@@ -33,13 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@splunk/react-icons": "^3.1.0",
|
|
36
|
-
"@splunk/themes": "^0.
|
|
36
|
+
"@splunk/themes": "^0.10.0",
|
|
37
37
|
"@splunk/ui-utils": "^1.4.0",
|
|
38
38
|
"@types/commonmark": "^0.27.0",
|
|
39
39
|
"@types/lodash": "^4.14.156",
|
|
40
40
|
"@types/react": "^16.9.38",
|
|
41
41
|
"@types/react-dom": "^16.9.8",
|
|
42
|
-
"@types/react-event-listener": "^0.4.10",
|
|
43
42
|
"@types/react-resize-detector": "^3.1.1",
|
|
44
43
|
"@types/styled-components": "^5.1.0",
|
|
45
44
|
"@types/tinycolor2": "^1.4.2",
|
|
@@ -49,11 +48,11 @@
|
|
|
49
48
|
"lodash": "^4.17.14",
|
|
50
49
|
"moment": "^2.22.2",
|
|
51
50
|
"prop-types": "^15.6.2",
|
|
52
|
-
"react-event-listener": "^0.6.2",
|
|
53
51
|
"react-resize-detector": "^3.2.1",
|
|
54
52
|
"react-sortable-hoc": "^1.11.0",
|
|
55
53
|
"react-spring": "^9.2.2",
|
|
56
|
-
"tinycolor2": "^1.4.1"
|
|
54
|
+
"tinycolor2": "^1.4.1",
|
|
55
|
+
"use-typed-event-listener": "^3.0.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@babel/core": "^7.2.0",
|
|
@@ -108,7 +107,7 @@
|
|
|
108
107
|
"react-dom": "^16.12.0",
|
|
109
108
|
"react-test-renderer": "^16.12.0",
|
|
110
109
|
"sinon": "^2.1.0",
|
|
111
|
-
"styled-components": "
|
|
110
|
+
"styled-components": "5.1.1",
|
|
112
111
|
"stylelint": "^13.0.0",
|
|
113
112
|
"ts-loader": "^6.2.1",
|
|
114
113
|
"typescript": "^4.0.5",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CollapsiblePanelRequestCloseHandler, CollapsiblePanelRequestOpenHandler } from '@splunk/react-ui/CollapsiblePanel';
|
|
3
|
+
export interface AccordionContext {
|
|
4
|
+
onRequestClose?: CollapsiblePanelRequestCloseHandler;
|
|
5
|
+
onRequestOpen?: CollapsiblePanelRequestOpenHandler;
|
|
6
|
+
openPanelId?: string | number;
|
|
7
|
+
inset?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const AccordionContext: import("react").Context<AccordionContext>;
|
|
10
|
+
export default AccordionContext;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { CollapsiblePanelRequestCloseHandler, CollapsiblePanelRequestOpenHandler } from '@splunk/react-ui/CollapsiblePanel';
|
|
4
3
|
import { ComponentProps } from '../utils/types';
|
|
5
4
|
interface AccordionPanelPropsBase {
|
|
6
5
|
/** Displays right-aligned text in the title bar of the panel. */
|
|
@@ -24,14 +23,6 @@ interface AccordionPanelPropsBase {
|
|
|
24
23
|
* Displays the the name of the panel in its title bar.
|
|
25
24
|
*/
|
|
26
25
|
title: React.ReactNode;
|
|
27
|
-
/** @private */
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/** @private */
|
|
30
|
-
onRequestClose?: CollapsiblePanelRequestCloseHandler;
|
|
31
|
-
/** @private */
|
|
32
|
-
onRequestOpen?: CollapsiblePanelRequestOpenHandler;
|
|
33
|
-
/** @private */
|
|
34
|
-
open?: boolean;
|
|
35
26
|
}
|
|
36
27
|
declare type AccordionPanelProps = ComponentProps<AccordionPanelPropsBase, 'div'>;
|
|
37
28
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { legacyRefMode } from '@splunk/react-ui/Dropdown';
|
|
3
|
+
import { ButtonGroupContext } from '../ButtonGroup/ButtonGroupContext';
|
|
3
4
|
import { ClassComponentProps } from '../utils/types';
|
|
4
5
|
/** @public */
|
|
5
6
|
declare type ButtonClickHandler = (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>, data: {
|
|
@@ -65,8 +66,9 @@ declare type ButtonLinkProps = ClassComponentProps<ButtonPropsBase, typeof defau
|
|
|
65
66
|
declare type ButtonProps = ButtonButtonProps | ButtonLinkProps;
|
|
66
67
|
declare class Button extends Component<ButtonProps> {
|
|
67
68
|
private component;
|
|
68
|
-
static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "
|
|
69
|
-
static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "
|
|
69
|
+
static propTypes: React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ButtonPropsBase, Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>, "a", "href">>;
|
|
70
|
+
static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>;
|
|
71
|
+
static contextType: React.Context<ButtonGroupContext>;
|
|
70
72
|
static [legacyRefMode]: boolean;
|
|
71
73
|
private handleClick;
|
|
72
74
|
private handleMount;
|