@splunk/react-ui 4.15.0 → 4.16.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/Animation.js +2 -2
- package/Button.js +23 -21
- package/ButtonSimple.js +54 -50
- package/CHANGELOG.md +17 -1
- package/Card.js +2 -2
- package/Chip.js +2 -2
- package/Color.js +2 -2
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +4 -4
- package/ControlGroup.js +2 -2
- package/Date.js +10 -5
- package/File.js +17 -8
- package/Image.js +5 -5
- package/MIGRATION.md +21 -0
- package/Menu.js +4 -4
- package/Modal.js +7 -7
- package/Multiselect.js +186 -167
- package/Paginator.js +5 -5
- package/Popover.js +7 -7
- package/Progress.js +2 -2
- package/Scroll.js +5 -5
- package/Search.js +4 -4
- package/Select.js +176 -157
- package/StepBar.js +2 -2
- package/Switch.js +2 -2
- package/TabBar.js +2 -2
- package/TabLayout.js +3 -0
- package/Table.js +68 -19
- package/Text.js +2 -2
- package/TextArea.js +4 -4
- package/Typography.js +1 -1
- package/WaitSpinner.js +2 -2
- package/package.json +5 -6
- package/types/src/Button/Button.d.ts +5 -2
- package/types/src/Button/docs/examples/Basic.d.ts +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +10 -11
- package/types/src/Multiselect/Compact.d.ts +4 -0
- package/types/src/Multiselect/Multiselect.d.ts +3 -0
- package/types/src/Select/Select.d.ts +3 -1
- package/types/src/Select/SelectBase.d.ts +12 -0
- package/types/src/TabLayout/Panel.d.ts +3 -0
- package/types/src/TabLayout/TabLayout.d.ts +2 -0
- package/types/src/Table/Body.d.ts +2 -0
- package/types/src/Table/Row.d.ts +11 -3
- package/types/src/Table/Table.d.ts +5 -3
- package/types/src/Typography/Typography.d.ts +1 -1
package/Table.js
CHANGED
|
@@ -586,29 +586,36 @@ function ChevronRight(props) {
|
|
|
586
586
|
module.exports = require("@splunk/react-icons/ChevronRight");
|
|
587
587
|
|
|
588
588
|
/***/ }),
|
|
589
|
-
/* 45
|
|
589
|
+
/* 45 */
|
|
590
|
+
/***/ (function(module, exports) {
|
|
591
|
+
|
|
592
|
+
module.exports = require("@splunk/ui-utils/format");
|
|
593
|
+
|
|
594
|
+
/***/ }),
|
|
590
595
|
/* 46 */,
|
|
591
596
|
/* 47 */,
|
|
592
|
-
/* 48
|
|
597
|
+
/* 48 */,
|
|
598
|
+
/* 49 */
|
|
593
599
|
/***/ (function(module, exports) {
|
|
594
600
|
|
|
595
601
|
module.exports = require("lodash/extend");
|
|
596
602
|
|
|
597
603
|
/***/ }),
|
|
598
|
-
/*
|
|
604
|
+
/* 50 */
|
|
599
605
|
/***/ (function(module, exports) {
|
|
600
606
|
|
|
601
607
|
module.exports = require("@splunk/react-ui/ScrollContainerContext");
|
|
602
608
|
|
|
603
609
|
/***/ }),
|
|
604
|
-
/*
|
|
610
|
+
/* 51 */,
|
|
611
|
+
/* 52 */
|
|
605
612
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
606
613
|
|
|
607
614
|
"use strict";
|
|
608
615
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CaretDown; });
|
|
609
616
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
610
617
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
611
|
-
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
618
|
+
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
|
|
612
619
|
/* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__);
|
|
613
620
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
614
621
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -638,24 +645,22 @@ function CaretDown(props) {
|
|
|
638
645
|
}
|
|
639
646
|
|
|
640
647
|
/***/ }),
|
|
641
|
-
/*
|
|
648
|
+
/* 53 */
|
|
642
649
|
/***/ (function(module, exports) {
|
|
643
650
|
|
|
644
651
|
module.exports = require("@splunk/react-icons/Caret");
|
|
645
652
|
|
|
646
653
|
/***/ }),
|
|
647
|
-
/* 52 */,
|
|
648
|
-
/* 53 */,
|
|
649
654
|
/* 54 */,
|
|
650
655
|
/* 55 */,
|
|
651
|
-
/* 56
|
|
656
|
+
/* 56 */,
|
|
657
|
+
/* 57 */,
|
|
658
|
+
/* 58 */
|
|
652
659
|
/***/ (function(module, exports) {
|
|
653
660
|
|
|
654
661
|
module.exports = require("lodash/without");
|
|
655
662
|
|
|
656
663
|
/***/ }),
|
|
657
|
-
/* 57 */,
|
|
658
|
-
/* 58 */,
|
|
659
664
|
/* 59 */,
|
|
660
665
|
/* 60 */,
|
|
661
666
|
/* 61 */,
|
|
@@ -1011,7 +1016,7 @@ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
|
1011
1016
|
var keyboard_ = __webpack_require__(9);
|
|
1012
1017
|
|
|
1013
1018
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
1014
|
-
var ScrollContainerContext_ = __webpack_require__(
|
|
1019
|
+
var ScrollContainerContext_ = __webpack_require__(50);
|
|
1015
1020
|
|
|
1016
1021
|
// EXTERNAL MODULE: external "lodash/findIndex"
|
|
1017
1022
|
var findIndex_ = __webpack_require__(111);
|
|
@@ -1022,7 +1027,7 @@ var includes_ = __webpack_require__(18);
|
|
|
1022
1027
|
var includes_default = /*#__PURE__*/__webpack_require__.n(includes_);
|
|
1023
1028
|
|
|
1024
1029
|
// EXTERNAL MODULE: external "lodash/without"
|
|
1025
|
-
var without_ = __webpack_require__(
|
|
1030
|
+
var without_ = __webpack_require__(58);
|
|
1026
1031
|
var without_default = /*#__PURE__*/__webpack_require__.n(without_);
|
|
1027
1032
|
|
|
1028
1033
|
// EXTERNAL MODULE: external "styled-components"
|
|
@@ -1102,6 +1107,9 @@ var propTypes = {
|
|
|
1102
1107
|
/** @private. Generally passed by Table rather than added directly. */
|
|
1103
1108
|
onRequestMoveRow: external_prop_types_default.a.func,
|
|
1104
1109
|
|
|
1110
|
+
/** @private. Generally passed by Table rather than added directly. */
|
|
1111
|
+
primaryColumnIndex: external_prop_types_default.a.number,
|
|
1112
|
+
|
|
1105
1113
|
/** @private. Generally passed by Table rather than added directly. */
|
|
1106
1114
|
stripeRows: external_prop_types_default.a.bool
|
|
1107
1115
|
};
|
|
@@ -1347,8 +1355,9 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1347
1355
|
movableColumns = _this$props3.movableColumns,
|
|
1348
1356
|
onRequestMoveRow = _this$props3.onRequestMoveRow,
|
|
1349
1357
|
rowExpansion = _this$props3.rowExpansion,
|
|
1358
|
+
primaryColumnIndex = _this$props3.primaryColumnIndex,
|
|
1350
1359
|
stripeRows = _this$props3.stripeRows,
|
|
1351
|
-
otherProps = _objectWithoutProperties(_this$props3, ["actions", "children", "movableColumns", "onRequestMoveRow", "rowExpansion", "stripeRows"]);
|
|
1360
|
+
otherProps = _objectWithoutProperties(_this$props3, ["actions", "children", "movableColumns", "onRequestMoveRow", "rowExpansion", "primaryColumnIndex", "stripeRows"]);
|
|
1352
1361
|
|
|
1353
1362
|
var rows = [];
|
|
1354
1363
|
var guidelineRowIndex = this.calculateGuideIndex();
|
|
@@ -1384,6 +1393,7 @@ var Body_Body = /*#__PURE__*/function (_Component) {
|
|
|
1384
1393
|
expandable: rowExpansion !== 'none',
|
|
1385
1394
|
draggable: !!onRequestMoveRow,
|
|
1386
1395
|
movableColumns: movableColumns,
|
|
1396
|
+
primaryColumnIndex: primaryColumnIndex,
|
|
1387
1397
|
onExpansion: onExpansion,
|
|
1388
1398
|
onRequestMoveRow: onRequestMoveRow ? _this2.onRequestMoveRow : undefined,
|
|
1389
1399
|
onDragStart: onRequestMoveRow ? _this2.handleDragStart : undefined,
|
|
@@ -1867,7 +1877,7 @@ function CaretDown(props) {
|
|
|
1867
1877
|
}, props));
|
|
1868
1878
|
}
|
|
1869
1879
|
// EXTERNAL MODULE: ./src/icons/CaretDown.tsx
|
|
1870
|
-
var icons_CaretDown = __webpack_require__(
|
|
1880
|
+
var icons_CaretDown = __webpack_require__(52);
|
|
1871
1881
|
|
|
1872
1882
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
1873
1883
|
var ScreenReaderContent_ = __webpack_require__(16);
|
|
@@ -2852,6 +2862,9 @@ var Dropdown_default = /*#__PURE__*/__webpack_require__.n(Dropdown_);
|
|
|
2852
2862
|
var Tooltip_ = __webpack_require__(67);
|
|
2853
2863
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2854
2864
|
|
|
2865
|
+
// EXTERNAL MODULE: external "@splunk/ui-utils/format"
|
|
2866
|
+
var format_ = __webpack_require__(45);
|
|
2867
|
+
|
|
2855
2868
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2856
2869
|
var ChevronDown = __webpack_require__(89);
|
|
2857
2870
|
|
|
@@ -3255,6 +3268,7 @@ function Row_extends() { Row_extends = Object.assign || function (target) { for
|
|
|
3255
3268
|
|
|
3256
3269
|
|
|
3257
3270
|
|
|
3271
|
+
|
|
3258
3272
|
var StyledStripeComponents = {
|
|
3259
3273
|
odd: StyledStripeOdd,
|
|
3260
3274
|
even: StyledStripeEven,
|
|
@@ -3303,6 +3317,10 @@ var Row_propTypes = {
|
|
|
3303
3317
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3304
3318
|
onRequestMoveRow: external_prop_types_default.a.func,
|
|
3305
3319
|
onRequestToggle: external_prop_types_default.a.func,
|
|
3320
|
+
|
|
3321
|
+
/** @private. Generally passed by `Table` rather than added directly. */
|
|
3322
|
+
primaryColumnIndex: external_prop_types_default.a.number,
|
|
3323
|
+
rowScreenReaderText: external_prop_types_default.a.string,
|
|
3306
3324
|
selected: external_prop_types_default.a.bool,
|
|
3307
3325
|
|
|
3308
3326
|
/** @private. Generally passed by `Table` rather than added directly. */
|
|
@@ -3312,7 +3330,8 @@ var Row_propTypes = {
|
|
|
3312
3330
|
stripe: external_prop_types_default.a.oneOf(['odd', 'even', 'none'])
|
|
3313
3331
|
};
|
|
3314
3332
|
var Row_defaultProps = {
|
|
3315
|
-
stripe: 'none'
|
|
3333
|
+
stripe: 'none',
|
|
3334
|
+
primaryColumnIndex: 0
|
|
3316
3335
|
};
|
|
3317
3336
|
var ActionsSecondaryToggle = /*#__PURE__*/external_react_default.a.forwardRef(function (props, ref) {
|
|
3318
3337
|
return /*#__PURE__*/external_react_default.a.createElement(Tooltip_default.a, Row_extends({
|
|
@@ -3456,6 +3475,8 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3456
3475
|
Row_createClass(Row, [{
|
|
3457
3476
|
key: "render",
|
|
3458
3477
|
value: function render() {
|
|
3478
|
+
var _childrenCloned$prima;
|
|
3479
|
+
|
|
3459
3480
|
var _this$props5 = this.props,
|
|
3460
3481
|
actions = _this$props5.actions,
|
|
3461
3482
|
actionPrimary = _this$props5.actionPrimary,
|
|
@@ -3476,10 +3497,12 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3476
3497
|
onExpansion = _this$props5.onExpansion,
|
|
3477
3498
|
onRequestMoveRow = _this$props5.onRequestMoveRow,
|
|
3478
3499
|
onRequestToggle = _this$props5.onRequestToggle,
|
|
3500
|
+
primaryColumnIndex = _this$props5.primaryColumnIndex,
|
|
3501
|
+
rowScreenReaderText = _this$props5.rowScreenReaderText,
|
|
3479
3502
|
selected = _this$props5.selected,
|
|
3480
3503
|
showRowGuideline = _this$props5.showRowGuideline,
|
|
3481
3504
|
stripe = _this$props5.stripe,
|
|
3482
|
-
otherProps = Row_objectWithoutProperties(_this$props5, ["actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "selected", "showRowGuideline", "stripe"]);
|
|
3505
|
+
otherProps = Row_objectWithoutProperties(_this$props5, ["actions", "actionPrimary", "actionsSecondary", "activeElementId", "children", "dataId", "disabled", "draggable", "elementRef", "expandable", "expanded", "expansionRow", "index", "movableColumns", "onClick", "onDragStart", "onExpansion", "onRequestMoveRow", "onRequestToggle", "primaryColumnIndex", "rowScreenReaderText", "selected", "showRowGuideline", "stripe"]);
|
|
3483
3506
|
|
|
3484
3507
|
var childrenCloned = !onClick ? external_react_["Children"].toArray(children).map(function (child) {
|
|
3485
3508
|
return /*#__PURE__*/Object(external_react_["cloneElement"])(child, {
|
|
@@ -3492,6 +3515,25 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3492
3515
|
disabled: disabled
|
|
3493
3516
|
});
|
|
3494
3517
|
});
|
|
3518
|
+
var rowLabelValue;
|
|
3519
|
+
|
|
3520
|
+
if (rowScreenReaderText) {
|
|
3521
|
+
rowLabelValue = rowScreenReaderText;
|
|
3522
|
+
} else if ((_childrenCloned$prima = childrenCloned[primaryColumnIndex]) === null || _childrenCloned$prima === void 0 ? void 0 : _childrenCloned$prima.props.children) {
|
|
3523
|
+
var _childrenCloned$prima2;
|
|
3524
|
+
|
|
3525
|
+
rowLabelValue = "".concat((_childrenCloned$prima2 = childrenCloned[primaryColumnIndex]) === null || _childrenCloned$prima2 === void 0 ? void 0 : _childrenCloned$prima2.props.children);
|
|
3526
|
+
} else {
|
|
3527
|
+
var _childrenCloned$;
|
|
3528
|
+
|
|
3529
|
+
rowLabelValue = "".concat((_childrenCloned$ = childrenCloned[0]) === null || _childrenCloned$ === void 0 ? void 0 : _childrenCloned$.props.children);
|
|
3530
|
+
|
|
3531
|
+
if (false) {}
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
var selectedString = Object(format_["sprintf"])(Object(i18n_["_"])('%(selected)s'), {
|
|
3535
|
+
selected: selected ? 'selected' : 'unselected'
|
|
3536
|
+
});
|
|
3495
3537
|
var StyledStripe = StyledStripeComponents[stripe];
|
|
3496
3538
|
var StyledCellToggle = disabled ? StyledCellSelectionDisabled : Table_Cell;
|
|
3497
3539
|
var rowSpan = expanded ? external_react_["Children"].count(expansionRow) + 1 : undefined;
|
|
@@ -3520,6 +3562,10 @@ var Row_Row = /*#__PURE__*/function (_Component) {
|
|
|
3520
3562
|
rowSpan: rowSpan,
|
|
3521
3563
|
showRowGuideline: showRowGuideline
|
|
3522
3564
|
}), onRequestToggle && /*#__PURE__*/external_react_default.a.createElement(StyledCellToggle, {
|
|
3565
|
+
"aria-label": Object(format_["sprintf"])(Object(i18n_["_"])('%(rowLabelValue)s %(selectedString)s'), {
|
|
3566
|
+
rowLabelValue: rowLabelValue,
|
|
3567
|
+
selectedString: selectedString
|
|
3568
|
+
}),
|
|
3523
3569
|
appearance: onClick ? 'rowLink' : 'data',
|
|
3524
3570
|
"data-test": "toggle",
|
|
3525
3571
|
variant: "toggle",
|
|
@@ -4456,7 +4502,7 @@ HeadDropdownCell_defineProperty(HeadDropdownCell_HeadDropdownCell, "contextType"
|
|
|
4456
4502
|
|
|
4457
4503
|
/* harmony default export */ var Table_HeadDropdownCell = (HeadDropdownCell_HeadDropdownCell);
|
|
4458
4504
|
// EXTERNAL MODULE: external "lodash/extend"
|
|
4459
|
-
var extend_ = __webpack_require__(
|
|
4505
|
+
var extend_ = __webpack_require__(49);
|
|
4460
4506
|
var extend_default = /*#__PURE__*/__webpack_require__.n(extend_);
|
|
4461
4507
|
|
|
4462
4508
|
// CONCATENATED MODULE: ./src/Table/HeadTableStyles.ts
|
|
@@ -4728,6 +4774,7 @@ var Table_propTypes = {
|
|
|
4728
4774
|
onRequestToggleAllRows: external_prop_types_default.a.func,
|
|
4729
4775
|
onScroll: external_prop_types_default.a.func,
|
|
4730
4776
|
outerStyle: external_prop_types_default.a.object,
|
|
4777
|
+
primaryColumnIndex: external_prop_types_default.a.number,
|
|
4731
4778
|
rowExpansion: external_prop_types_default.a.oneOf(['single', 'multi', 'controlled', 'none']),
|
|
4732
4779
|
rowSelection: external_prop_types_default.a.oneOf(['all', 'some', 'none']),
|
|
4733
4780
|
stripeRows: external_prop_types_default.a.bool,
|
|
@@ -4742,7 +4789,8 @@ var Table_defaultProps = {
|
|
|
4742
4789
|
headType: 'inline',
|
|
4743
4790
|
rowExpansion: 'none',
|
|
4744
4791
|
rowSelection: 'none',
|
|
4745
|
-
resizableFillLayout: false
|
|
4792
|
+
resizableFillLayout: false,
|
|
4793
|
+
primaryColumnIndex: 0
|
|
4746
4794
|
};
|
|
4747
4795
|
|
|
4748
4796
|
var Table_Table = /*#__PURE__*/function (_Component) {
|
|
@@ -5137,6 +5185,7 @@ var Table_Table = /*#__PURE__*/function (_Component) {
|
|
|
5137
5185
|
actions: validActions.length > 0,
|
|
5138
5186
|
movableColumns: !!this.props.onRequestMoveColumn,
|
|
5139
5187
|
onRequestMoveRow: this.props.onRequestMoveRow,
|
|
5188
|
+
primaryColumnIndex: this.props.primaryColumnIndex,
|
|
5140
5189
|
rowExpansion: this.props.rowExpansion,
|
|
5141
5190
|
stripeRows: this.props.stripeRows
|
|
5142
5191
|
});
|
package/Text.js
CHANGED
|
@@ -1353,7 +1353,7 @@ module.exports = require("@splunk/react-icons/SVG");
|
|
|
1353
1353
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
|
|
1354
1354
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1355
1355
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1356
|
-
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1356
|
+
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56);
|
|
1357
1357
|
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
|
|
1358
1358
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1359
1359
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1417,7 +1417,7 @@ module.exports = require("lodash/omit");
|
|
|
1417
1417
|
|
|
1418
1418
|
/***/ }),
|
|
1419
1419
|
|
|
1420
|
-
/***/
|
|
1420
|
+
/***/ 56:
|
|
1421
1421
|
/***/ (function(module, exports) {
|
|
1422
1422
|
|
|
1423
1423
|
module.exports = require("@splunk/react-icons/Search");
|
package/TextArea.js
CHANGED
|
@@ -196,7 +196,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
196
196
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
197
197
|
|
|
198
198
|
// EXTERNAL MODULE: external "lodash/defer"
|
|
199
|
-
var defer_ = __webpack_require__(
|
|
199
|
+
var defer_ = __webpack_require__(55);
|
|
200
200
|
var defer_default = /*#__PURE__*/__webpack_require__.n(defer_);
|
|
201
201
|
|
|
202
202
|
// EXTERNAL MODULE: external "lodash/has"
|
|
@@ -1295,7 +1295,7 @@ module.exports = require("lodash/throttle");
|
|
|
1295
1295
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
|
|
1296
1296
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1297
1297
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1298
|
-
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1298
|
+
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56);
|
|
1299
1299
|
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
|
|
1300
1300
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1301
1301
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1359,14 +1359,14 @@ module.exports = require("lodash/omit");
|
|
|
1359
1359
|
|
|
1360
1360
|
/***/ }),
|
|
1361
1361
|
|
|
1362
|
-
/***/
|
|
1362
|
+
/***/ 55:
|
|
1363
1363
|
/***/ (function(module, exports) {
|
|
1364
1364
|
|
|
1365
1365
|
module.exports = require("lodash/defer");
|
|
1366
1366
|
|
|
1367
1367
|
/***/ }),
|
|
1368
1368
|
|
|
1369
|
-
/***/
|
|
1369
|
+
/***/ 56:
|
|
1370
1370
|
/***/ (function(module, exports) {
|
|
1371
1371
|
|
|
1372
1372
|
module.exports = require("@splunk/react-icons/Search");
|
package/Typography.js
CHANGED
|
@@ -152,7 +152,7 @@ var propTypes = {
|
|
|
152
152
|
variant: external_prop_types_default.a.oneOf(mixins_["typographyVariants"]),
|
|
153
153
|
size: external_prop_types_default.a.number,
|
|
154
154
|
lineHeight: external_prop_types_default.a.number,
|
|
155
|
-
color: external_prop_types_default.a.oneOf(['active', 'default', 'disabled', 'inverted', 'muted']),
|
|
155
|
+
color: external_prop_types_default.a.oneOf(['active', 'default', 'disabled', 'inverted', 'muted', 'inherit']),
|
|
156
156
|
weight: external_prop_types_default.a.oneOf([300, 400, 500, 600, 700, 800, 900, 'light', 'normal', 'semiBold', 'bold', 'extraBold', 'heavy']),
|
|
157
157
|
withReset: external_prop_types_default.a.bool
|
|
158
158
|
};
|
package/WaitSpinner.js
CHANGED
|
@@ -127,7 +127,7 @@ var external_prop_types_ = __webpack_require__(1);
|
|
|
127
127
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
128
128
|
|
|
129
129
|
// EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
130
|
-
var AnimationToggle_ = __webpack_require__(
|
|
130
|
+
var AnimationToggle_ = __webpack_require__(48);
|
|
131
131
|
|
|
132
132
|
// EXTERNAL MODULE: external "@splunk/themes"
|
|
133
133
|
var themes_ = __webpack_require__(0);
|
|
@@ -288,7 +288,7 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
288
288
|
|
|
289
289
|
/***/ }),
|
|
290
290
|
|
|
291
|
-
/***/
|
|
291
|
+
/***/ 48:
|
|
292
292
|
/***/ (function(module, exports) {
|
|
293
293
|
|
|
294
294
|
module.exports = require("@splunk/react-ui/AnimationToggle");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.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.",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@splunk/react-icons": "^3.3.1",
|
|
42
|
-
"@splunk/themes": "^0.
|
|
42
|
+
"@splunk/themes": "^0.14.0",
|
|
43
43
|
"@splunk/ui-utils": "^1.5.2",
|
|
44
44
|
"@types/commonmark": "^0.27.0",
|
|
45
45
|
"@types/lodash": "^4.14.156",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"@cypress/webpack-dev-server": "^1.8.2",
|
|
69
69
|
"@splunk/babel-preset": "^3.0.0",
|
|
70
70
|
"@splunk/cicd-tools": "^0.5.0",
|
|
71
|
-
"@splunk/docs-gen": "1.0.0-beta.
|
|
71
|
+
"@splunk/docs-gen": "1.0.0-beta.2",
|
|
72
72
|
"@splunk/eslint-config": "^4.0.0",
|
|
73
|
-
"@splunk/react-docs": "1.0.0-beta.
|
|
73
|
+
"@splunk/react-docs": "1.0.0-beta.2",
|
|
74
74
|
"@splunk/stylelint-config": "^4.0.0",
|
|
75
|
-
"@splunk/test-runner-utils": "^0.4.
|
|
75
|
+
"@splunk/test-runner-utils": "^0.4.1",
|
|
76
76
|
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
77
77
|
"@splunk/webpack-configs": "^6.0.0",
|
|
78
78
|
"@storybook/addon-a11y": "^6.5.9",
|
|
@@ -143,7 +143,6 @@
|
|
|
143
143
|
"stylelint": "^13.0.0",
|
|
144
144
|
"ts-loader": "^6.2.1",
|
|
145
145
|
"typescript": "^4.0.5",
|
|
146
|
-
"wdio-image-comparison-service": "^1.9.0",
|
|
147
146
|
"webpack": "^4.16.2",
|
|
148
147
|
"webpack-cli": "^4.9.2",
|
|
149
148
|
"webpack-dev-server": "^4.7.4",
|
|
@@ -12,7 +12,7 @@ interface ButtonPropsBase {
|
|
|
12
12
|
/** Returns a value on click. Use when composing or testing. */
|
|
13
13
|
action?: string;
|
|
14
14
|
/** Changes the style of the button.
|
|
15
|
-
* @themeNotes Enterprise themes support the following appearances:`default`, `primary`, `secondary`, and `pill`. Prisma themes support the `default`, `primary`, `secondary`, `destructive`, `toggle` and `flat` appearances.
|
|
15
|
+
* @themeNotes Enterprise themes support the following appearances:`default`, `primary`, `secondary`, `destructive` and `pill`. Prisma themes support the `default`, `primary`, `secondary`, `destructive`, `toggle` and `flat` appearances.
|
|
16
16
|
*/
|
|
17
17
|
appearance?: 'default' | 'secondary' | 'primary' | 'destructive' | 'pill' | 'toggle' | 'flat';
|
|
18
18
|
/** Removes the right border and border-radius of the button so you can
|
|
@@ -29,7 +29,9 @@ interface ButtonPropsBase {
|
|
|
29
29
|
elementRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>;
|
|
30
30
|
/** Turns the button red. If you use this prop, apply other error
|
|
31
31
|
* indicators, such as an error message, to meet accessibility
|
|
32
|
-
* requirements.
|
|
32
|
+
* requirements.
|
|
33
|
+
* @deprecated
|
|
34
|
+
* */
|
|
33
35
|
error?: boolean;
|
|
34
36
|
/** Applies the text that displays on the button. */
|
|
35
37
|
label?: React.ReactNode;
|
|
@@ -68,6 +70,7 @@ declare class Button extends Component<ButtonProps> {
|
|
|
68
70
|
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">>;
|
|
69
71
|
static defaultProps: Required<Pick<ButtonPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "openInNewContext" | "append" | "prepend" | "isMenu">>;
|
|
70
72
|
static [legacyRefMode]: boolean;
|
|
73
|
+
constructor(props: Readonly<ButtonProps>);
|
|
71
74
|
private handleClick;
|
|
72
75
|
private handleMount;
|
|
73
76
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
export default
|
|
1
|
+
declare function Basic(): JSX.Element;
|
|
2
|
+
export default Basic;
|