@splunk/react-ui 4.9.0 → 4.12.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.
Files changed (143) hide show
  1. package/Accordion.js +4 -4
  2. package/Anchor.js +2 -2
  3. package/Animation.js +4 -4
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +24 -48
  7. package/ButtonGroup.js +6 -27
  8. package/ButtonSimple.js +4 -4
  9. package/CHANGELOG.md +63 -6
  10. package/Calendar.js +39 -39
  11. package/Card.js +54 -68
  12. package/CardLayout.js +14 -35
  13. package/Chip.js +19 -19
  14. package/Clickable.js +28 -13
  15. package/CloseButton.js +15 -15
  16. package/Code.js +8 -5
  17. package/CollapsiblePanel.js +6 -6
  18. package/Color.js +21 -21
  19. package/ColumnLayout.js +7 -7
  20. package/ComboBox.js +19 -14
  21. package/Concertina.js +13 -13
  22. package/ControlGroup.js +28 -18
  23. package/Date.js +10 -10
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +6 -6
  26. package/EventListener.js +4 -4
  27. package/File.js +31 -31
  28. package/FormRows.js +11 -11
  29. package/Heading.js +2 -2
  30. package/Image.js +21 -21
  31. package/JSONTree.js +40 -22
  32. package/Layer.js +72 -22
  33. package/Link.js +9 -9
  34. package/List.js +2 -2
  35. package/Markdown.js +26 -29
  36. package/Menu.js +53 -53
  37. package/Message.js +33 -33
  38. package/MessageBar.js +46 -39
  39. package/Modal.js +8 -8
  40. package/ModalLayer.js +16 -7
  41. package/Monogram.js +27 -15
  42. package/Multiselect.js +101 -97
  43. package/Number.js +6 -6
  44. package/Paginator.js +46 -49
  45. package/Paragraph.js +2 -2
  46. package/Popover.js +18 -13
  47. package/Progress.js +8 -8
  48. package/RadioBar.js +145 -41
  49. package/RadioList.js +2 -2
  50. package/Resize.js +4 -4
  51. package/ResultsMenu.js +62 -41
  52. package/ScreenReaderContent.js +2 -2
  53. package/Scroll.js +6 -6
  54. package/ScrollContainerContext.js +2 -2
  55. package/Search.js +19 -18
  56. package/Select.js +81 -79
  57. package/SidePanel.js +4 -4
  58. package/Slider.js +8 -8
  59. package/SlidingPanels.js +16 -7
  60. package/StaticContent.js +2 -2
  61. package/StepBar.js +8 -8
  62. package/Switch.js +8 -8
  63. package/TabBar.js +15 -15
  64. package/TabLayout.js +4 -4
  65. package/Table.js +119 -92
  66. package/Text.js +121 -241
  67. package/TextArea.js +1444 -0
  68. package/Tooltip.js +17 -6
  69. package/TransitionOpen.js +20 -10
  70. package/Typography.js +225 -0
  71. package/WaitSpinner.js +4 -4
  72. package/cypress.json +1 -0
  73. package/package.json +21 -8
  74. package/stubs-splunkui.d.ts +13 -0
  75. package/test-runner-jest.config.js +38 -0
  76. package/types/src/Accordion/AccordionContext.d.ts +0 -1
  77. package/types/src/Button/Button.d.ts +0 -2
  78. package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
  79. package/types/src/Card/Body.d.ts +6 -1
  80. package/types/src/Card/Card.d.ts +0 -2
  81. package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
  82. package/types/src/Clickable/Clickable.d.ts +5 -0
  83. package/types/src/ComboBox/ComboBox.d.ts +15 -5
  84. package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
  85. package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
  86. package/types/src/Date/Date.d.ts +3 -3
  87. package/types/src/File/FileContext.d.ts +0 -1
  88. package/types/src/FormRows/FormRows.d.ts +1 -1
  89. package/types/src/FormRows/FormRowsContext.d.ts +0 -1
  90. package/types/src/FormRows/Row.d.ts +1 -1
  91. package/types/src/JSONTree/JSONTree.d.ts +2 -2
  92. package/types/src/JSONTree/TreeNode.d.ts +1 -1
  93. package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
  94. package/types/src/Layer/LayerStack.d.ts +8 -2
  95. package/types/src/Markdown/Markdown.d.ts +2 -3
  96. package/types/src/Menu/MenuContext.d.ts +0 -1
  97. package/types/src/Modal/ModalContext.d.ts +0 -1
  98. package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
  99. package/types/src/Monogram/Monogram.d.ts +2 -2
  100. package/types/src/Multiselect/Compact.d.ts +11 -4
  101. package/types/src/Multiselect/Multiselect.d.ts +14 -5
  102. package/types/src/Multiselect/Normal.d.ts +11 -4
  103. package/types/src/Number/Number.d.ts +3 -3
  104. package/types/src/Popover/Popover.d.ts +1 -0
  105. package/types/src/Popover/PopoverContext.d.ts +0 -1
  106. package/types/src/RadioBar/Option.d.ts +10 -2
  107. package/types/src/RadioBar/RadioBar.d.ts +4 -1
  108. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  109. package/types/src/RadioList/RadioListContext.d.ts +0 -1
  110. package/types/src/ResultsMenu/ResultsMenu.d.ts +8 -2
  111. package/types/src/Search/Search.d.ts +4 -0
  112. package/types/src/Select/Select.d.ts +13 -4
  113. package/types/src/Select/SelectBase.d.ts +12 -4
  114. package/types/src/SidePanel/SidePanel.d.ts +2 -1
  115. package/types/src/Slider/Slider.d.ts +3 -3
  116. package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
  117. package/types/src/StepBar/StepBarContext.d.ts +0 -1
  118. package/types/src/TabBar/TabBarContext.d.ts +0 -1
  119. package/types/src/Table/HeadCell.d.ts +7 -3
  120. package/types/src/Table/Table.d.ts +2 -3
  121. package/types/src/Table/TableContext.d.ts +5 -0
  122. package/types/src/Text/Text.d.ts +22 -12
  123. package/types/src/TextArea/TextArea.d.ts +190 -0
  124. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
  125. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
  126. package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
  127. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
  128. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
  129. package/types/src/TextArea/index.d.ts +2 -0
  130. package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
  131. package/types/src/Tooltip/Tooltip.d.ts +8 -5
  132. package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
  133. package/types/src/TransitionOpen/index.d.ts +1 -0
  134. package/types/src/Typography/Typography.d.ts +78 -0
  135. package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
  136. package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
  137. package/types/src/Typography/index.d.ts +2 -0
  138. package/types/src/Typography/test/Typography.unit.d.ts +1 -0
  139. package/types/src/fixtures/FetchOptions.d.ts +82 -2
  140. package/usePrevious.js +2 -2
  141. package/FetchOptions.js +0 -359
  142. package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
  143. package/types/src/FetchOptions/index.d.ts +0 -2
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 = 133);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 128);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 133:
104
+ /***/ 128:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -124,7 +124,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
124
124
  var external_lodash_ = __webpack_require__(4);
125
125
 
126
126
  // EXTERNAL MODULE: external "@splunk/react-ui/CollapsiblePanel"
127
- var CollapsiblePanel_ = __webpack_require__(84);
127
+ var CollapsiblePanel_ = __webpack_require__(83);
128
128
  var CollapsiblePanel_default = /*#__PURE__*/__webpack_require__.n(CollapsiblePanel_);
129
129
 
130
130
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -415,7 +415,7 @@ module.exports = require("@splunk/react-ui/Box");
415
415
 
416
416
  /***/ }),
417
417
 
418
- /***/ 84:
418
+ /***/ 83:
419
419
  /***/ (function(module, exports) {
420
420
 
421
421
  module.exports = require("@splunk/react-ui/CollapsiblePanel");
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 = 150);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 147);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 150:
104
+ /***/ 147:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
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 = 177);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 175);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 177:
90
+ /***/ 175:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -102,7 +102,7 @@ __webpack_require__.d(__webpack_exports__, "Transition", function() { return /*
102
102
  var external_react_spring_ = __webpack_require__(18);
103
103
 
104
104
  // EXTERNAL MODULE: external "@splunk/react-ui/AnimationToggle"
105
- var AnimationToggle_ = __webpack_require__(34);
105
+ var AnimationToggle_ = __webpack_require__(36);
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; }
@@ -158,7 +158,7 @@ module.exports = require("react-spring");
158
158
 
159
159
  /***/ }),
160
160
 
161
- /***/ 34:
161
+ /***/ 36:
162
162
  /***/ (function(module, exports) {
163
163
 
164
164
  module.exports = require("@splunk/react-ui/AnimationToggle");
@@ -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 = 134);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 129);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -94,7 +94,7 @@ module.exports = require("prop-types");
94
94
 
95
95
  /***/ }),
96
96
 
97
- /***/ 134:
97
+ /***/ 129:
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 = 151);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 148);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 151:
104
+ /***/ 148:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
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 = 139);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 135);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 139:
104
+ /***/ 135:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -126,13 +126,13 @@ var external_lodash_ = __webpack_require__(4);
126
126
  var i18n_ = __webpack_require__(5);
127
127
 
128
128
  // EXTERNAL MODULE: external "@splunk/react-ui/Dropdown"
129
- var Dropdown_ = __webpack_require__(19);
129
+ var Dropdown_ = __webpack_require__(20);
130
130
 
131
131
  // EXTERNAL MODULE: external "@splunk/ui-utils/style"
132
- var style_ = __webpack_require__(40);
132
+ var style_ = __webpack_require__(31);
133
133
 
134
134
  // EXTERNAL MODULE: ./src/icons/CaretDown.tsx
135
- var CaretDown = __webpack_require__(36);
135
+ var CaretDown = __webpack_require__(38);
136
136
 
137
137
  // EXTERNAL MODULE: external "@splunk/react-icons/External"
138
138
  var External_ = __webpack_require__(58);
@@ -169,15 +169,12 @@ function External(props) {
169
169
  Prisma24: Prisma24
170
170
  }, props));
171
171
  }
172
- // EXTERNAL MODULE: ./src/ButtonGroup/ButtonGroupContext.tsx
173
- var ButtonGroupContext = __webpack_require__(59);
174
-
175
172
  // EXTERNAL MODULE: external "styled-components"
176
173
  var external_styled_components_ = __webpack_require__(3);
177
174
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
178
175
 
179
176
  // EXTERNAL MODULE: external "@splunk/react-ui/ButtonSimple"
180
- var ButtonSimple_ = __webpack_require__(45);
177
+ var ButtonSimple_ = __webpack_require__(46);
181
178
  var ButtonSimple_default = /*#__PURE__*/__webpack_require__.n(ButtonSimple_);
182
179
 
183
180
  // EXTERNAL MODULE: external "@splunk/themes"
@@ -339,7 +336,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
339
336
 
340
337
 
341
338
 
342
-
343
339
  var propTypes = {
344
340
  action: external_prop_types_default.a.string,
345
341
  appearance: external_prop_types_default.a.oneOf(['default', 'secondary', 'primary', 'destructive', 'pill', 'toggle', 'flat']),
@@ -444,9 +440,6 @@ var Button_Button = /*#__PURE__*/function (_Component) {
444
440
  prepend = _this$props2.prepend,
445
441
  to = _this$props2.to,
446
442
  value = _this$props2.value;
447
- var _this$context = this.context,
448
- inlineContext = _this$context.inline,
449
- roleContext = _this$context.role;
450
443
  var _this$props3 = this.props,
451
444
  children = _this$props3.children,
452
445
  label = _this$props3.label;
@@ -461,16 +454,15 @@ var Button_Button = /*#__PURE__*/function (_Component) {
461
454
  return /*#__PURE__*/external_react_default.a.createElement(StyledButtonSimple, Button_extends({
462
455
  "aria-haspopup": isMenu || undefined,
463
456
  "aria-invalid": error || undefined,
464
- "data-test": "button",
465
- role: roleContext || undefined
457
+ "data-test": "button"
466
458
  }, this.props, {
467
459
  className: Object(style_["toClassName"])(className, classNamePrivate),
468
460
  "data-action": action,
469
- "data-inline": inlineContext || inline || null,
461
+ "data-inline": inline || null,
470
462
  disabled: disabled,
471
463
  append: append,
472
464
  prepend: prepend,
473
- $inline: inlineContext || inline,
465
+ $inline: inline,
474
466
  $hasPrismaIcon: hasPrismaIcon,
475
467
  $isIconOnly: isIconOnly,
476
468
  $isMenu: isMenu,
@@ -514,8 +506,6 @@ _defineProperty(Button_Button, "propTypes", propTypes);
514
506
 
515
507
  _defineProperty(Button_Button, "defaultProps", defaultProps);
516
508
 
517
- _defineProperty(Button_Button, "contextType", ButtonGroupContext["a" /* ButtonGroupContext */]);
518
-
519
509
  _defineProperty(Button_Button, Dropdown_["legacyRefMode"], true);
520
510
 
521
511
  /* harmony default export */ var src_Button_Button = (Button_Button);
@@ -525,17 +515,17 @@ _defineProperty(Button_Button, Dropdown_["legacyRefMode"], true);
525
515
 
526
516
  /***/ }),
527
517
 
528
- /***/ 19:
518
+ /***/ 2:
529
519
  /***/ (function(module, exports) {
530
520
 
531
- module.exports = require("@splunk/react-ui/Dropdown");
521
+ module.exports = require("react");
532
522
 
533
523
  /***/ }),
534
524
 
535
- /***/ 2:
525
+ /***/ 20:
536
526
  /***/ (function(module, exports) {
537
527
 
538
- module.exports = require("react");
528
+ module.exports = require("@splunk/react-ui/Dropdown");
539
529
 
540
530
  /***/ }),
541
531
 
@@ -546,14 +536,21 @@ module.exports = require("styled-components");
546
536
 
547
537
  /***/ }),
548
538
 
549
- /***/ 36:
539
+ /***/ 31:
540
+ /***/ (function(module, exports) {
541
+
542
+ module.exports = require("@splunk/ui-utils/style");
543
+
544
+ /***/ }),
545
+
546
+ /***/ 38:
550
547
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
551
548
 
552
549
  "use strict";
553
550
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CaretDown; });
554
551
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
555
552
  /* 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_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37);
553
+ /* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39);
557
554
  /* harmony import */ var _splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Caret__WEBPACK_IMPORTED_MODULE_1__);
558
555
  /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
559
556
  /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
@@ -584,7 +581,7 @@ function CaretDown(props) {
584
581
 
585
582
  /***/ }),
586
583
 
587
- /***/ 37:
584
+ /***/ 39:
588
585
  /***/ (function(module, exports) {
589
586
 
590
587
  module.exports = require("@splunk/react-icons/Caret");
@@ -598,14 +595,7 @@ module.exports = require("lodash");
598
595
 
599
596
  /***/ }),
600
597
 
601
- /***/ 40:
602
- /***/ (function(module, exports) {
603
-
604
- module.exports = require("@splunk/ui-utils/style");
605
-
606
- /***/ }),
607
-
608
- /***/ 45:
598
+ /***/ 46:
609
599
  /***/ (function(module, exports) {
610
600
 
611
601
  module.exports = require("@splunk/react-ui/ButtonSimple");
@@ -626,20 +616,6 @@ module.exports = require("@splunk/react-icons/External");
626
616
 
627
617
  /***/ }),
628
618
 
629
- /***/ 59:
630
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
631
-
632
- "use strict";
633
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ButtonGroupContext; });
634
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
635
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
636
-
637
- var ButtonGroupContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({});
638
- ButtonGroupContext.displayName = 'ButtonGroup';
639
- /* harmony default export */ __webpack_exports__["b"] = (ButtonGroupContext);
640
-
641
- /***/ }),
642
-
643
619
  /***/ 6:
644
620
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
645
621
 
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 = 152);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 149);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 152:
104
+ /***/ 149:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -142,9 +142,6 @@ var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
142
142
  prisma: themes_["variables"].spacingSmall
143
143
  }));
144
144
 
145
- // EXTERNAL MODULE: ./src/ButtonGroup/ButtonGroupContext.tsx
146
- var ButtonGroupContext = __webpack_require__(59);
147
-
148
145
  // CONCATENATED MODULE: ./src/ButtonGroup/ButtonGroup.tsx
149
146
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
150
147
 
@@ -155,7 +152,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
155
152
 
156
153
 
157
154
 
158
-
159
155
  var propTypes = {
160
156
  children: external_prop_types_default.a.node,
161
157
  elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
@@ -173,7 +169,9 @@ function ButtonGroup(_ref) {
173
169
  var length = _ref2.length;
174
170
  return /*#__PURE__*/Object(external_react_["cloneElement"])(item, {
175
171
  prepend: i > 0,
176
- append: i < length - 1
172
+ append: i < length - 1,
173
+ inline: false,
174
+ role: item.props && item.props.role || 'menuitem'
177
175
  });
178
176
  });
179
177
  return /*#__PURE__*/external_react_default.a.createElement(StyledBox, _extends({
@@ -181,12 +179,7 @@ function ButtonGroup(_ref) {
181
179
  flex: true,
182
180
  "data-test": "button-group",
183
181
  role: "menubar"
184
- }, otherProps), /*#__PURE__*/external_react_default.a.createElement(ButtonGroupContext["b" /* default */].Provider, {
185
- value: {
186
- inline: false,
187
- role: 'menuitem'
188
- }
189
- }, childrenCleaned));
182
+ }, otherProps), childrenCleaned);
190
183
  }
191
184
 
192
185
  ButtonGroup.propTypes = propTypes;
@@ -210,20 +203,6 @@ module.exports = require("styled-components");
210
203
 
211
204
  /***/ }),
212
205
 
213
- /***/ 59:
214
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
215
-
216
- "use strict";
217
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ButtonGroupContext; });
218
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
219
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
220
-
221
- var ButtonGroupContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])({});
222
- ButtonGroupContext.displayName = 'ButtonGroup';
223
- /* harmony default export */ __webpack_exports__["b"] = (ButtonGroupContext);
224
-
225
- /***/ }),
226
-
227
206
  /***/ 8:
228
207
  /***/ (function(module, exports) {
229
208
 
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 = 135);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 130);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,14 +101,14 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 11:
104
+ /***/ 12:
105
105
  /***/ (function(module, exports) {
106
106
 
107
107
  module.exports = require("@splunk/react-ui/Clickable");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 135:
111
+ /***/ 130:
112
112
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
113
 
114
114
  "use strict";
@@ -141,7 +141,7 @@ var external_styled_components_ = __webpack_require__(3);
141
141
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
142
142
 
143
143
  // EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
144
- var Clickable_ = __webpack_require__(11);
144
+ var Clickable_ = __webpack_require__(12);
145
145
  var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
146
146
 
147
147
  // CONCATENATED MODULE: ./src/ButtonSimple/prismaStyles.ts
package/CHANGELOG.md CHANGED
@@ -1,10 +1,67 @@
1
1
  Change Log
2
2
  ============
3
3
 
4
+ 4.12.0 - September 6, 2022
5
+ ----------
6
+ New Features:
7
+ * Added an `onScroll` prop to `ComboBox`, `Multiselect`, `Search`, and `Select` (SUI-4309).
8
+ * Added a new `TextArea` component for multi-line text input (SUI-4075).
9
+
10
+ Bug Fixes:
11
+ * `ComboBox`, `Multiselect`, and `Select` will no longer call `onScrollBottom` twice when the whole menu fits on-screen (SUI-2776).
12
+ * `Text`'s value cannot be cleared when `disabled` (SUI-4276).
13
+ * Allow line breaks when using `Text`'s `multiline` prop (SUI-4013).
14
+ * `Table`'s header has been refactored:
15
+ * Now using `position:sticky` from `headType="fixed"`
16
+ * Scroll bar no longer displays beneath the header when using `headType="fixed"` (SUI-1503).
17
+ * Toggle action no longer receives focus twice when using `headType="fixed"` (SUI-1849).
18
+ * Header cell offsets no out of sync when using `headType="fixed"` and asynchronously loaded images/canvas (SUI-2580).
19
+ * Header no longer disappears when using `headType="fixed"`, `onRequestResizeColumn` and `resizableFillLayout` (SUI-3263).
20
+ * Header cells widths no longer out of sync when using `headType="fixed"`, `onRequestResizeColumn` and `resizableFillLayout` (SUI-3417).
21
+
22
+ Type Changes:
23
+ * `ComboBox`, `Multiselect`, and `Select` now have more accurate typing for `onScrollBottom` (SUI-2776).
24
+
25
+ Deprecation:
26
+ * `Text`s `multiline`, `rowsMax`, and `rowsMin` props are deprecated and will be removed in a future major version. Use the `TextArea` component for free-form text input instead (SUI-4075).
27
+
28
+ 4.11.0 - August 2, 2022
29
+ ----------
30
+ New Features:
31
+ * Added a `separateStackingContexts` prop to `LayerStackGlobalProvider`. This allows multiple "floating" elements (such as a `Popover` and a `Modal`) to stack in the order that they were opened rather than a fixed order (SUI-2809).
32
+ * This prop is currently defaults to `false`, to be backwards compatible, but will default to `true` in the next major version.
33
+ * Added util `prepareSandboxCode` to parse imports for including additional files to CodeSandbox examples.
34
+ * `ControlGroup` now supports customizing the position of the tooltip via the `tooltipDefaultPlacement` prop (SUI-3041).
35
+
36
+ Bug Fixes:
37
+ * `Text` no longer holds space for the clear icon when it is not shown (SUI-3748).
38
+ * Fixed `Text`'s error border color to stay the same when hovered on error (SUI-3672).
39
+ * `Tooltip` will now hide when the toggle is clicked (SUI-3453, SUI-2712).
40
+ * Fixed `MessageBar` content to be centered when persistent (SUI-3561).
41
+
42
+ Type Changes:
43
+ * Fixed `Sidebar` type definition to allow props that are passed to `TransitionOpen` (SUI-4253)
44
+
45
+ 4.10.0 - June 29, 2022
46
+ ----------
47
+ New Features:
48
+ * Changed `Paginator`'s `PageSeparator` to have active color for Enterprise theme (SUI-3237).
49
+ * Added `expandChildren="withShiftModifier"` prop to `JSONTree` (SUI-3627).
50
+
51
+ Bug Fixes:
52
+ * `RadioBar` supports keyboard navigation using the arrow keys (SUI-3745).
53
+ * Fixed line-height for `Code` in Prisma themes (SUI-3637).
54
+ * Fixes `RadioBar.Option` spacing when using adornments in Enterprise themes.
55
+ * `File` descriptive button text now includes an ellipsis.
56
+ * Fixed animation toggle issue with `SlidingPanels` by bumping `react-spring` version (SUI-3474).
57
+ * Fixed life cycle warnings for components leveraging the `onRest` on `react-spring` (SUI-3666).
58
+ * Updated `ComboBox` to fix menu misalignment (SUI-3622).
59
+ * Added support for removing `Card.Body` padding via the `inset` prop (SUI-3704).
60
+
4
61
  4.9.0 - June 7, 2020
5
62
  ----------
6
63
  New Features:
7
- * `MarkdownAnchorHeading` added to Markdown's renderers to allow headings to render as Anchors (SUI-831).
64
+ * `MarkdownAnchorHeading` added to Markdown's renderers to allow headings as Anchors (SUI-831).
8
65
 
9
66
  Bug Fixes:
10
67
  * Clear button for `Text` now clears value on Safari (SUI-3510).
@@ -32,16 +89,16 @@ Bug Fixes:
32
89
  * `Select`'s options should no longer be clickable while it's collapsing (SUI-3337).
33
90
  * `Menu`s should now correctly manage focus if the first item is disabled (SUI-3468).
34
91
  * `Message`'s `appearance="banner"` renders with an icon for improved accessibility (SUI-3526).
35
- * `Modal` will now correctly gain focus when created with `open=true` (SUI-3412).
92
+ * `Modal` will now correctly gain focus when created with `open=true` (SUI-3412).
36
93
 
37
- Deprecations:
94
+ Deprecations:
38
95
  * `Message`'s `appearance="banner"`is deprecated and will be removed in a future major version. Use `MessageBar` instead (SUI-3437).
39
96
  * `Message.Link` is deprecated and will be removed in a future major version. Use `Link` instead (SUI-3322).
40
97
 
41
98
  4.6.0 - April 5, 2022
42
99
  ----------
43
100
  New Features:
44
- * Updated the `File` uploader descriptive button text from `browse...` to `upload file` (SUI-3275).
101
+ * Updated the `File` uploader descriptive button text from `browse...` to `upload file` (SUI-3275).
45
102
  * `Clickable` now supports the `navigationLabel` prop to provide `data.label` to the `onClick` handler (SUI-3123).
46
103
  * Added `onInputClick` prop to `Text` component (SUI-2801).
47
104
 
@@ -53,10 +110,10 @@ Bug Fixes:
53
110
  * `Modal`'s title is now read by screen reader.
54
111
  * `Card` will no longer render with different dimensions depending on the combination of `to` and `onClick` props.
55
112
  * `TableRow`'s `data` prop is no longer incorrectly passed to the DOM element (SUI-3448)
56
-
113
+
57
114
  4.5.3 - March 15, 2022
58
115
  ----------
59
- Bug Fixes:
116
+ Bug Fixes:
60
117
  * Fixed a regression where `Accordion.Panel`s may not open (SUI-3411).
61
118
 
62
119
  4.5.2 - March 8, 2022