@splunk/react-ui 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +4 -4
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +21 -5
- package/Calendar.js +12 -12
- package/Card.js +35 -23
- package/CardLayout.js +2 -2
- package/Chip.js +4 -4
- package/Clickable.js +23 -8
- package/CloseButton.js +2 -2
- package/Code.js +4 -4
- package/CollapsiblePanel.js +4 -4
- package/Color.js +10 -10
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +9 -5
- package/Concertina.js +13 -13
- package/ControlGroup.js +19 -9
- package/Date.js +6 -6
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/File.js +14 -14
- package/FormRows.js +6 -6
- package/Heading.js +2 -2
- package/Image.js +8 -8
- package/JSONTree.js +4 -4
- package/Layer.js +72 -22
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +14 -14
- package/Menu.js +32 -32
- package/Message.js +6 -6
- package/MessageBar.js +16 -9
- package/Modal.js +4 -4
- package/ModalLayer.js +2 -2
- package/Monogram.js +27 -15
- package/Multiselect.js +6 -6
- package/Number.js +4 -4
- package/Paginator.js +14 -14
- package/Paragraph.js +2 -2
- package/Popover.js +6 -6
- package/Progress.js +2 -2
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +4 -4
- package/ScrollContainerContext.js +2 -2
- package/Search.js +6 -6
- package/Select.js +2 -2
- package/SidePanel.js +2 -2
- package/Slider.js +4 -4
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +4 -4
- package/TabBar.js +11 -11
- package/TabLayout.js +4 -4
- package/Table.js +27 -30
- package/Text.js +17 -10
- package/Tooltip.js +15 -4
- package/TransitionOpen.js +2 -2
- package/WaitSpinner.js +2 -2
- package/package.json +9 -6
- package/stubs-splunkui.d.ts +13 -0
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/Text/Text.d.ts +4 -3
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
package/Table.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 = 109);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ([
|
|
@@ -276,8 +276,7 @@ module.exports = require("@splunk/ui-utils/keyboard");
|
|
|
276
276
|
module.exports = require("@splunk/ui-utils/id");
|
|
277
277
|
|
|
278
278
|
/***/ }),
|
|
279
|
-
/* 11
|
|
280
|
-
/* 12 */
|
|
279
|
+
/* 11 */
|
|
281
280
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
282
281
|
|
|
283
282
|
"use strict";
|
|
@@ -303,6 +302,7 @@ function updateReactRef(ref, current) {
|
|
|
303
302
|
|
|
304
303
|
|
|
305
304
|
/***/ }),
|
|
305
|
+
/* 12 */,
|
|
306
306
|
/* 13 */,
|
|
307
307
|
/* 14 */
|
|
308
308
|
/***/ (function(module, exports) {
|
|
@@ -502,15 +502,14 @@ function assertDefined(val, msg) {
|
|
|
502
502
|
/* 58 */,
|
|
503
503
|
/* 59 */,
|
|
504
504
|
/* 60 */,
|
|
505
|
-
/* 61
|
|
506
|
-
/* 62 */
|
|
505
|
+
/* 61 */
|
|
507
506
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
508
507
|
|
|
509
508
|
"use strict";
|
|
510
509
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MoreVertical; });
|
|
511
510
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
512
511
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
513
|
-
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
512
|
+
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62);
|
|
514
513
|
/* harmony import */ var _splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_MoreVertical__WEBPACK_IMPORTED_MODULE_1__);
|
|
515
514
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
516
515
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -540,20 +539,20 @@ function MoreVertical(props) {
|
|
|
540
539
|
}
|
|
541
540
|
|
|
542
541
|
/***/ }),
|
|
543
|
-
/*
|
|
542
|
+
/* 62 */
|
|
544
543
|
/***/ (function(module, exports) {
|
|
545
544
|
|
|
546
545
|
module.exports = require("@splunk/react-icons/MoreVertical");
|
|
547
546
|
|
|
548
547
|
/***/ }),
|
|
549
|
-
/*
|
|
548
|
+
/* 63 */
|
|
550
549
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
551
550
|
|
|
552
551
|
"use strict";
|
|
553
552
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ChevronDown; });
|
|
554
553
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
555
554
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
556
|
-
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
555
|
+
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64);
|
|
557
556
|
/* harmony import */ var _splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_ChevronDown__WEBPACK_IMPORTED_MODULE_1__);
|
|
558
557
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
559
558
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -595,12 +594,13 @@ function ChevronDown(props) {
|
|
|
595
594
|
}
|
|
596
595
|
|
|
597
596
|
/***/ }),
|
|
598
|
-
/*
|
|
597
|
+
/* 64 */
|
|
599
598
|
/***/ (function(module, exports) {
|
|
600
599
|
|
|
601
600
|
module.exports = require("@splunk/react-icons/ChevronDown");
|
|
602
601
|
|
|
603
602
|
/***/ }),
|
|
603
|
+
/* 65 */,
|
|
604
604
|
/* 66 */,
|
|
605
605
|
/* 67 */,
|
|
606
606
|
/* 68 */,
|
|
@@ -642,42 +642,39 @@ module.exports = require("@splunk/react-ui/Switch");
|
|
|
642
642
|
/* 99 */,
|
|
643
643
|
/* 100 */,
|
|
644
644
|
/* 101 */,
|
|
645
|
-
/* 102
|
|
646
|
-
/* 103 */,
|
|
647
|
-
/* 104 */
|
|
645
|
+
/* 102 */
|
|
648
646
|
/***/ (function(module, exports) {
|
|
649
647
|
|
|
650
648
|
module.exports = require("react-resize-detector");
|
|
651
649
|
|
|
652
650
|
/***/ }),
|
|
653
|
-
/*
|
|
651
|
+
/* 103 */
|
|
654
652
|
/***/ (function(module, exports) {
|
|
655
653
|
|
|
656
654
|
module.exports = require("@splunk/react-icons/SortedDown");
|
|
657
655
|
|
|
658
656
|
/***/ }),
|
|
659
|
-
/*
|
|
657
|
+
/* 104 */
|
|
660
658
|
/***/ (function(module, exports) {
|
|
661
659
|
|
|
662
660
|
module.exports = require("@splunk/react-icons/SortedUp");
|
|
663
661
|
|
|
664
662
|
/***/ }),
|
|
665
|
-
/*
|
|
663
|
+
/* 105 */
|
|
666
664
|
/***/ (function(module, exports) {
|
|
667
665
|
|
|
668
666
|
module.exports = require("@splunk/react-icons/Sort");
|
|
669
667
|
|
|
670
668
|
/***/ }),
|
|
671
|
-
/*
|
|
669
|
+
/* 106 */
|
|
672
670
|
/***/ (function(module, exports) {
|
|
673
671
|
|
|
674
672
|
module.exports = require("@splunk/react-icons/Info");
|
|
675
673
|
|
|
676
674
|
/***/ }),
|
|
677
|
-
/*
|
|
678
|
-
/*
|
|
679
|
-
/*
|
|
680
|
-
/* 112 */
|
|
675
|
+
/* 107 */,
|
|
676
|
+
/* 108 */,
|
|
677
|
+
/* 109 */
|
|
681
678
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
682
679
|
|
|
683
680
|
"use strict";
|
|
@@ -706,7 +703,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
706
703
|
var external_lodash_ = __webpack_require__(4);
|
|
707
704
|
|
|
708
705
|
// EXTERNAL MODULE: external "react-resize-detector"
|
|
709
|
-
var external_react_resize_detector_ = __webpack_require__(
|
|
706
|
+
var external_react_resize_detector_ = __webpack_require__(102);
|
|
710
707
|
var external_react_resize_detector_default = /*#__PURE__*/__webpack_require__.n(external_react_resize_detector_);
|
|
711
708
|
|
|
712
709
|
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
@@ -735,7 +732,7 @@ var Styled = external_styled_components_default.a.tbody.withConfig({
|
|
|
735
732
|
})(["", ""], themes_["mixins"].reset('table-row-group'));
|
|
736
733
|
|
|
737
734
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
738
|
-
var updateReactRef = __webpack_require__(
|
|
735
|
+
var updateReactRef = __webpack_require__(11);
|
|
739
736
|
|
|
740
737
|
// CONCATENATED MODULE: ./src/Table/Body.tsx
|
|
741
738
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
@@ -1410,7 +1407,7 @@ Cell_defineProperty(Cell_Cell, "defaultProps", Cell_defaultProps);
|
|
|
1410
1407
|
var i18n_ = __webpack_require__(5);
|
|
1411
1408
|
|
|
1412
1409
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedDown"
|
|
1413
|
-
var SortedDown_ = __webpack_require__(
|
|
1410
|
+
var SortedDown_ = __webpack_require__(103);
|
|
1414
1411
|
var SortedDown_default = /*#__PURE__*/__webpack_require__.n(SortedDown_);
|
|
1415
1412
|
|
|
1416
1413
|
// EXTERNAL MODULE: ./src/icons/ThemedIcon.tsx
|
|
@@ -1457,7 +1454,7 @@ function SortedDown(props) {
|
|
|
1457
1454
|
}, props));
|
|
1458
1455
|
}
|
|
1459
1456
|
// EXTERNAL MODULE: external "@splunk/react-icons/SortedUp"
|
|
1460
|
-
var SortedUp_ = __webpack_require__(
|
|
1457
|
+
var SortedUp_ = __webpack_require__(104);
|
|
1461
1458
|
var SortedUp_default = /*#__PURE__*/__webpack_require__.n(SortedUp_);
|
|
1462
1459
|
|
|
1463
1460
|
// CONCATENATED MODULE: ./src/icons/SortedUp.tsx
|
|
@@ -1498,7 +1495,7 @@ function SortedUp(props) {
|
|
|
1498
1495
|
}, props));
|
|
1499
1496
|
}
|
|
1500
1497
|
// EXTERNAL MODULE: external "@splunk/react-icons/Sort"
|
|
1501
|
-
var Sort_ = __webpack_require__(
|
|
1498
|
+
var Sort_ = __webpack_require__(105);
|
|
1502
1499
|
var Sort_default = /*#__PURE__*/__webpack_require__.n(Sort_);
|
|
1503
1500
|
|
|
1504
1501
|
// CONCATENATED MODULE: ./src/icons/Sort.tsx
|
|
@@ -1687,7 +1684,7 @@ var HeadCellStyles_Styled = external_styled_components_default.a.th.withConfig({
|
|
|
1687
1684
|
prisma: themes_["variables"].backgroundColorPage
|
|
1688
1685
|
}), function (_ref2) {
|
|
1689
1686
|
var $clickable = _ref2.$clickable;
|
|
1690
|
-
return $clickable && Object(external_styled_components_["css"])(["
|
|
1687
|
+
return $clickable && Object(external_styled_components_["css"])(["cursor:pointer;&:focus{box-shadow:", ";outline:none;& > ", "{color:", ";background-color:", ";}}&:hover{outline:none;& > ", "{color:", ";background-color:", ";}}&:active{& > ", "{background-color:", ";}}"], themes_["variables"].focusShadowInset,
|
|
1691
1688
|
/* sc-sel */
|
|
1692
1689
|
HeadInnerStyles_Styled, Object(themes_["pick"])({
|
|
1693
1690
|
enterprise: {
|
|
@@ -2450,7 +2447,7 @@ HeadCell_defineProperty(HeadCell_HeadCell, "defaultProps", HeadCell_defaultProps
|
|
|
2450
2447
|
|
|
2451
2448
|
/* harmony default export */ var Table_HeadCell = (HeadCell_HeadCell);
|
|
2452
2449
|
// EXTERNAL MODULE: external "@splunk/react-icons/Info"
|
|
2453
|
-
var Info_ = __webpack_require__(
|
|
2450
|
+
var Info_ = __webpack_require__(106);
|
|
2454
2451
|
var Info_default = /*#__PURE__*/__webpack_require__.n(Info_);
|
|
2455
2452
|
|
|
2456
2453
|
// EXTERNAL MODULE: ./src/icons/ChevronRight.tsx
|
|
@@ -2490,10 +2487,10 @@ var Tooltip_ = __webpack_require__(48);
|
|
|
2490
2487
|
var Tooltip_default = /*#__PURE__*/__webpack_require__.n(Tooltip_);
|
|
2491
2488
|
|
|
2492
2489
|
// EXTERNAL MODULE: ./src/icons/ChevronDown.tsx
|
|
2493
|
-
var ChevronDown = __webpack_require__(
|
|
2490
|
+
var ChevronDown = __webpack_require__(63);
|
|
2494
2491
|
|
|
2495
2492
|
// EXTERNAL MODULE: ./src/icons/MoreVertical.tsx
|
|
2496
|
-
var MoreVertical = __webpack_require__(
|
|
2493
|
+
var MoreVertical = __webpack_require__(61);
|
|
2497
2494
|
|
|
2498
2495
|
// CONCATENATED MODULE: ./src/Table/RowDragCell.tsx
|
|
2499
2496
|
function RowDragCell_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { RowDragCell_typeof = function _typeof(obj) { return typeof obj; }; } else { RowDragCell_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return RowDragCell_typeof(obj); }
|
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 = 127);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 107:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
108
108
|
|
|
109
109
|
/***/ }),
|
|
110
110
|
|
|
111
|
-
/***/
|
|
111
|
+
/***/ 11:
|
|
112
112
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
113
|
|
|
114
114
|
"use strict";
|
|
@@ -135,7 +135,7 @@ function updateReactRef(ref, current) {
|
|
|
135
135
|
|
|
136
136
|
/***/ }),
|
|
137
137
|
|
|
138
|
-
/***/
|
|
138
|
+
/***/ 127:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -171,7 +171,7 @@ var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReade
|
|
|
171
171
|
var themes_ = __webpack_require__(0);
|
|
172
172
|
|
|
173
173
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
174
|
-
var ControlGroup_ = __webpack_require__(
|
|
174
|
+
var ControlGroup_ = __webpack_require__(107);
|
|
175
175
|
|
|
176
176
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
177
177
|
var i18n_ = __webpack_require__(5);
|
|
@@ -258,7 +258,7 @@ function syncHeightWithShadow(_ref) {
|
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
260
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
261
|
-
var updateReactRef = __webpack_require__(
|
|
261
|
+
var updateReactRef = __webpack_require__(11);
|
|
262
262
|
|
|
263
263
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
264
264
|
var SVG_ = __webpack_require__(24);
|
|
@@ -468,7 +468,7 @@ var StyledInputWrapper = external_styled_components_default.a.span.withConfig({
|
|
|
468
468
|
prisma: themes_["variables"].transparent
|
|
469
469
|
}), Object(themes_["pick"])({
|
|
470
470
|
enterprise: '0px 10px',
|
|
471
|
-
prisma: '0px
|
|
471
|
+
prisma: '0px 12px'
|
|
472
472
|
}), function (_ref2) {
|
|
473
473
|
var $hasEndAdornment = _ref2.$hasEndAdornment;
|
|
474
474
|
return $hasEndAdornment && Object(external_styled_components_["css"])(["padding-right:0;"]);
|
|
@@ -486,7 +486,7 @@ var StyledInputWrapper = external_styled_components_default.a.span.withConfig({
|
|
|
486
486
|
prisma: Object(external_styled_components_["css"])(["border-color:", ";color:", ";"], themes_["variables"].interactiveColorPrimary, themes_["variables"].contentColorActive)
|
|
487
487
|
}), function (_ref4) {
|
|
488
488
|
var $error = _ref4.$error;
|
|
489
|
-
return $error && Object(external_styled_components_["css"])(["&,&:hover{border-color:", ";}"], Object(themes_["pick"])({
|
|
489
|
+
return $error && Object(external_styled_components_["css"])(["&,&:hover:not([disabled]){border-color:", ";}"], Object(themes_["pick"])({
|
|
490
490
|
enterprise: themes_["variables"].errorColor,
|
|
491
491
|
prisma: themes_["variables"].accentColorNegative
|
|
492
492
|
}));
|
|
@@ -1021,7 +1021,9 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1021
1021
|
})));
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
|
-
|
|
1024
|
+
var displayValue = _this.getDisplayValue();
|
|
1025
|
+
|
|
1026
|
+
if (!!displayValue && (isPrisma && appearance === 'search' || canClear)) {
|
|
1025
1027
|
return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default.a.createElement(StyledClearButton, {
|
|
1026
1028
|
"data-test": "clear",
|
|
1027
1029
|
appearance: isPrisma ? 'secondary' : 'pill',
|
|
@@ -1069,6 +1071,11 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1069
1071
|
return undefined;
|
|
1070
1072
|
});
|
|
1071
1073
|
|
|
1074
|
+
_defineProperty(_assertThisInitialized(_this), "getDisplayValue", function () {
|
|
1075
|
+
var displayValue = _this.isControlled() ? _this.props.value : _this.state.value;
|
|
1076
|
+
return displayValue;
|
|
1077
|
+
});
|
|
1078
|
+
|
|
1072
1079
|
_this.controlledExternally = Object(external_lodash_["has"])(props, 'value');
|
|
1073
1080
|
_this.state = {
|
|
1074
1081
|
value: props.defaultValue || '',
|
|
@@ -1186,7 +1193,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1186
1193
|
});
|
|
1187
1194
|
|
|
1188
1195
|
var boxProps = Object(external_lodash_["omit"])(otherProps, ['inputRef', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onSelect', 'onInputClick', 'rowsMax', 'rowsMin'].concat(_toConsumableArray(Object(external_lodash_["keys"])(ariaProps))));
|
|
1189
|
-
var displayValue = this.
|
|
1196
|
+
var displayValue = this.getDisplayValue();
|
|
1190
1197
|
var displayProps = {
|
|
1191
1198
|
className: Object(style_["toClassName"])(className, inputClassName),
|
|
1192
1199
|
$append: append || undefined,
|
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 = 144);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -108,7 +108,7 @@ 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");
|
|
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 144:
|
|
126
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -209,7 +209,7 @@ var external_styled_components_ = __webpack_require__(3);
|
|
|
209
209
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
210
210
|
|
|
211
211
|
// EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
|
|
212
|
-
var Clickable_ = __webpack_require__(
|
|
212
|
+
var Clickable_ = __webpack_require__(12);
|
|
213
213
|
var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
|
|
214
214
|
|
|
215
215
|
// CONCATENATED MODULE: ./src/Tooltip/TooltipStyles.ts
|
|
@@ -417,6 +417,12 @@ var Tooltip_Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
417
417
|
});
|
|
418
418
|
});
|
|
419
419
|
|
|
420
|
+
_defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
|
|
421
|
+
_this.handleRequestClose(e, {
|
|
422
|
+
reason: 'toggleClick'
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
|
|
420
426
|
_defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
|
|
421
427
|
_this.handleRequestOpen(e, {
|
|
422
428
|
reason: 'focusToggle'
|
|
@@ -449,6 +455,10 @@ var Tooltip_Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
449
455
|
});
|
|
450
456
|
}
|
|
451
457
|
|
|
458
|
+
_this.setState({
|
|
459
|
+
lastCloseReason: data.reason
|
|
460
|
+
});
|
|
461
|
+
|
|
452
462
|
(_this$props$onRequest = (_this$props = _this.props).onRequestClose) === null || _this$props$onRequest === void 0 ? void 0 : _this$props$onRequest.call(_this$props, e, data);
|
|
453
463
|
}, closeDelay);
|
|
454
464
|
});
|
|
@@ -549,6 +559,7 @@ var Tooltip_Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
549
559
|
"data-test-popover-id": this.popoverId,
|
|
550
560
|
ref: elementRef
|
|
551
561
|
}, otherProps), /*#__PURE__*/external_react_default.a.createElement(StyledToggleComp, {
|
|
562
|
+
onClick: this.handleClick,
|
|
552
563
|
onFocus: this.handleFocus,
|
|
553
564
|
onBlur: this.handleBlur,
|
|
554
565
|
ref: this.handleMount,
|
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 = 171);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 171:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
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 = 172);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 172:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.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.",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "cross-env NODE_ENV=production webpack && yarn types:build && yarn build-storybook",
|
|
9
9
|
"docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
|
|
10
|
+
"docs:publish": "cicd-publish-docs docs --force",
|
|
10
11
|
"docs:start": "webpack serve --config docs.gen.webpack.config.js",
|
|
11
12
|
"eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
|
|
12
13
|
"eslint:fix": "yarn run eslint --fix",
|
|
@@ -37,7 +38,7 @@
|
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@splunk/react-icons": "^3.2.0",
|
|
40
|
-
"@splunk/themes": "^0.
|
|
41
|
+
"@splunk/themes": "^0.12.0",
|
|
41
42
|
"@splunk/ui-utils": "^1.5.0",
|
|
42
43
|
"@types/commonmark": "^0.27.0",
|
|
43
44
|
"@types/lodash": "^4.14.156",
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
"@cypress/react": "^5.12.4",
|
|
64
65
|
"@cypress/webpack-dev-server": "^1.8.2",
|
|
65
66
|
"@splunk/babel-preset": "^3.0.0",
|
|
67
|
+
"@splunk/cicd-tools": "^0.4.0",
|
|
66
68
|
"@splunk/docs-gen": "^0.11.2",
|
|
67
69
|
"@splunk/eslint-config": "^4.0.0",
|
|
68
70
|
"@splunk/react-docs": "^0.11.0",
|
|
@@ -70,11 +72,12 @@
|
|
|
70
72
|
"@splunk/test-runner-utils": "^0.4.0",
|
|
71
73
|
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
72
74
|
"@splunk/webpack-configs": "^5.0.0",
|
|
73
|
-
"@storybook/addon-a11y": "^6.
|
|
74
|
-
"@storybook/addon-essentials": "^6.
|
|
75
|
+
"@storybook/addon-a11y": "^6.5.9",
|
|
76
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
77
|
+
"@storybook/addon-interactions": "^6.5.9",
|
|
75
78
|
"@storybook/csf": "^0.0.1",
|
|
76
|
-
"@storybook/react": "^6.
|
|
77
|
-
"@storybook/testing-react": "^1.
|
|
79
|
+
"@storybook/react": "^6.5.9",
|
|
80
|
+
"@storybook/testing-react": "^1.3.0",
|
|
78
81
|
"@testing-library/cypress": "^8.0.2",
|
|
79
82
|
"@testing-library/jest-dom": "^5.16.1",
|
|
80
83
|
"@testing-library/react": "^12.1.2",
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -98,3 +98,16 @@ declare module '@splunk/wdio-functional-test-runner/testUtils' {
|
|
|
98
98
|
options?: { click?: boolean }
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
|
+
|
|
102
|
+
declare module '@splunk/react-docs/DocExample' {
|
|
103
|
+
function getDependencyVersions(
|
|
104
|
+
packageJSON: Record<string, unknown>,
|
|
105
|
+
additionalDependencies?: string[],
|
|
106
|
+
packageVersion?: string
|
|
107
|
+
): Record<string, unknown>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare module '!!raw-loader!*' {
|
|
111
|
+
const contents: string;
|
|
112
|
+
export = contents;
|
|
113
|
+
}
|
package/types/src/Card/Body.d.ts
CHANGED
|
@@ -7,16 +7,21 @@ interface BodyPropsBase {
|
|
|
7
7
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
8
8
|
*/
|
|
9
9
|
elementRef?: React.Ref<HTMLDivElement>;
|
|
10
|
+
/**
|
|
11
|
+
* When true renders the `Card.Body` with padding. When false renders the `Card.Body` without padding. Default to true.
|
|
12
|
+
*/
|
|
13
|
+
inset?: boolean;
|
|
10
14
|
}
|
|
11
15
|
declare type BodyProps = ComponentProps<BodyPropsBase, 'div'>;
|
|
12
16
|
/**
|
|
13
17
|
* A styled container for `Card` body content.
|
|
14
18
|
*/
|
|
15
|
-
declare function Body({ children, ...otherProps }: BodyProps): JSX.Element;
|
|
19
|
+
declare function Body({ children, inset, ...otherProps }: BodyProps): JSX.Element;
|
|
16
20
|
declare namespace Body {
|
|
17
21
|
var propTypes: {
|
|
18
22
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
23
|
elementRef: PropTypes.Requireable<object>;
|
|
24
|
+
inset: PropTypes.Requireable<boolean>;
|
|
20
25
|
};
|
|
21
26
|
}
|
|
22
27
|
export default Body;
|
|
@@ -4,6 +4,11 @@ import { NavigationProviderClickHandler } from './NavigationProvider';
|
|
|
4
4
|
import { ClassComponentProps } from '../utils/types';
|
|
5
5
|
export declare const isInternalLink: (to: string | undefined) => boolean;
|
|
6
6
|
interface ClickablePropsBase {
|
|
7
|
+
/**
|
|
8
|
+
* Links may need to be rendered as "disabled": e.g. last link in a breadcrumb. Disabled links, must have the `to` (ideally to '') and `disabled` props set.
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
allowDisabledLink?: boolean;
|
|
7
12
|
children?: React.ReactNode;
|
|
8
13
|
/**
|
|
9
14
|
* Add a disabled attribute and prevent clicking.
|
|
@@ -106,7 +106,7 @@ interface ComboBoxPropsBaseUncontrolled extends ComboBoxPropsBase {
|
|
|
106
106
|
declare type ComboBoxProps = ClassComponentProps<ComboBoxPropsBaseControlled | ComboBoxPropsBaseUncontrolled, typeof defaultProps, 'div'>;
|
|
107
107
|
interface ComboBoxState {
|
|
108
108
|
activeIndex: number;
|
|
109
|
-
anchor:
|
|
109
|
+
anchor: HTMLDivElement | null;
|
|
110
110
|
open: boolean;
|
|
111
111
|
typedValue: string | undefined;
|
|
112
112
|
value: string;
|
|
@@ -136,6 +136,7 @@ declare class ComboBox extends Component<ComboBoxProps, ComboBoxState> {
|
|
|
136
136
|
private getValue;
|
|
137
137
|
private getDisplayValue;
|
|
138
138
|
private handleInputMount;
|
|
139
|
+
private handleAnchorMount;
|
|
139
140
|
private handleActiveOptionMount;
|
|
140
141
|
private handleInputFocus;
|
|
141
142
|
private handleChange;
|