@splunk/react-ui 4.21.0 → 4.22.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 (92) hide show
  1. package/Accordion.js +425 -325
  2. package/Anchor.js +147 -117
  3. package/Animation.js +142 -94
  4. package/AnimationToggle.js +197 -193
  5. package/Box.js +145 -118
  6. package/Breadcrumbs.js +288 -206
  7. package/Button.js +488 -465
  8. package/ButtonGroup.js +160 -128
  9. package/ButtonSimple.js +543 -462
  10. package/CHANGELOG.md +24 -3
  11. package/Calendar.js +1111 -1001
  12. package/Card.js +771 -598
  13. package/CardLayout.js +205 -147
  14. package/Chip.js +509 -488
  15. package/Clickable.js +414 -352
  16. package/CloseButton.js +165 -142
  17. package/Code.js +1807 -2084
  18. package/CollapsiblePanel.js +586 -519
  19. package/Color.js +1068 -1068
  20. package/ColumnLayout.js +402 -363
  21. package/ComboBox.js +903 -794
  22. package/Concertina.js +997 -802
  23. package/ControlGroup.js +687 -594
  24. package/Date.js +567 -547
  25. package/DefinitionList.js +308 -234
  26. package/Divider.js +149 -118
  27. package/Dropdown.js +459 -416
  28. package/DualListbox.js +1479 -1541
  29. package/EventListener.js +94 -97
  30. package/File.js +1051 -969
  31. package/FormRows.js +883 -696
  32. package/Heading.js +216 -193
  33. package/Image.js +446 -402
  34. package/JSONTree.js +690 -551
  35. package/Layer.js +437 -410
  36. package/Link.js +336 -255
  37. package/List.js +213 -161
  38. package/Markdown.js +509 -487
  39. package/Menu.js +1104 -1056
  40. package/Message.js +475 -441
  41. package/MessageBar.js +387 -373
  42. package/Modal.js +810 -634
  43. package/ModalLayer.js +326 -243
  44. package/Monogram.js +308 -276
  45. package/Multiselect.js +3564 -3364
  46. package/Number.js +729 -687
  47. package/Paginator.js +510 -449
  48. package/Paragraph.js +145 -112
  49. package/Popover.js +1459 -1432
  50. package/Progress.js +301 -246
  51. package/RadioBar.js +634 -527
  52. package/RadioList.js +483 -444
  53. package/Resize.js +530 -489
  54. package/ResultsMenu.js +479 -455
  55. package/ScreenReaderContent.js +142 -111
  56. package/Scroll.js +595 -456
  57. package/ScrollContainerContext.js +197 -206
  58. package/Search.js +756 -650
  59. package/Select.js +2446 -2345
  60. package/SidePanel.js +390 -284
  61. package/Slider.js +680 -676
  62. package/SlidingPanels.js +639 -503
  63. package/SplitButton.js +464 -367
  64. package/StaticContent.js +161 -133
  65. package/StepBar.js +386 -358
  66. package/Switch.js +710 -640
  67. package/TabBar.js +741 -680
  68. package/TabLayout.js +406 -322
  69. package/Table.js +4974 -4616
  70. package/Text.js +1170 -1138
  71. package/TextArea.js +1102 -1090
  72. package/Tooltip.js +624 -581
  73. package/TransitionOpen.js +489 -422
  74. package/Typography.js +176 -153
  75. package/WaitSpinner.js +230 -206
  76. package/package.json +7 -7
  77. package/types/src/Color/Color.d.ts +0 -1
  78. package/types/src/JSONTree/JSONTreeContext.d.ts +7 -0
  79. package/types/src/JSONTree/TreeNode.d.ts +5 -0
  80. package/types/src/RadioBar/RadioBar.d.ts +1 -0
  81. package/types/src/ResultsMenu/ResultsMenu.d.ts +0 -2
  82. package/types/src/Select/docs/examples/Icons.d.ts +1 -9
  83. package/types/src/Slider/Slider.d.ts +1 -0
  84. package/types/src/TabBar/Tab.d.ts +10 -1
  85. package/types/src/TabBar/TabBar.d.ts +4 -2
  86. package/types/src/Table/Head.d.ts +7 -3
  87. package/types/src/Table/Table.d.ts +3 -2
  88. package/types/src/Table/TableContext.d.ts +2 -0
  89. package/useForceUpdate.js +112 -82
  90. package/useKeyPress.js +74 -71
  91. package/usePrevious.js +65 -65
  92. package/useRovingFocus.js +122 -138
package/Divider.js CHANGED
@@ -1,118 +1,149 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ // The require scope
4
- /******/ var __webpack_require__ = {};
5
- /******/
6
- /************************************************************************/
7
- /******/ /* webpack/runtime/compat get default export */
8
- /******/ (() => {
9
- /******/ // getDefaultExport function for compatibility with non-harmony modules
10
- /******/ __webpack_require__.n = (module) => {
11
- /******/ var getter = module && module.__esModule ?
12
- /******/ () => (module['default']) :
13
- /******/ () => (module);
14
- /******/ __webpack_require__.d(getter, { a: getter });
15
- /******/ return getter;
16
- /******/ };
17
- /******/ })();
18
- /******/
19
- /******/ /* webpack/runtime/define property getters */
20
- /******/ (() => {
21
- /******/ // define getter functions for harmony exports
22
- /******/ __webpack_require__.d = (exports, definition) => {
23
- /******/ for(var key in definition) {
24
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
- /******/ }
27
- /******/ }
28
- /******/ };
29
- /******/ })();
30
- /******/
31
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
- /******/ (() => {
33
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
- /******/ })();
35
- /******/
36
- /******/ /* webpack/runtime/make namespace object */
37
- /******/ (() => {
38
- /******/ // define __esModule on exports
39
- /******/ __webpack_require__.r = (exports) => {
40
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
- /******/ }
43
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
- /******/ };
45
- /******/ })();
46
- /******/
47
- /************************************************************************/
48
- var __webpack_exports__ = {};
49
- // ESM COMPAT FLAG
50
- __webpack_require__.r(__webpack_exports__);
51
-
52
- // EXPORTS
53
- __webpack_require__.d(__webpack_exports__, {
54
- "default": () => (/* reexport */ Divider_Divider)
55
- });
56
-
57
- ;// CONCATENATED MODULE: external "react"
58
- const external_react_namespaceObject = require("react");
59
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
- ;// CONCATENATED MODULE: external "prop-types"
61
- const external_prop_types_namespaceObject = require("prop-types");
62
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
63
- ;// CONCATENATED MODULE: external "styled-components"
64
- const external_styled_components_namespaceObject = require("styled-components");
65
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
66
- ;// CONCATENATED MODULE: external "@splunk/themes"
67
- const themes_namespaceObject = require("@splunk/themes");
68
- ;// CONCATENATED MODULE: ./src/Divider/DividerStyles.ts
69
-
70
-
71
- var StyledRule = external_styled_components_default().hr.withConfig({
72
- displayName: "DividerStyles__StyledRule",
73
- componentId: "gl6kyz-0"
74
- })(["", ";", ";border-color:", ";"], themes_namespaceObject.mixins.reset('block'), (0,themes_namespaceObject.pickVariant)('$orientation', {
75
- horizontal: (0,external_styled_components_namespaceObject.css)(["border-top-style:solid;border-width:1px;"]),
76
- vertical: (0,external_styled_components_namespaceObject.css)(["display:inline;border-left-style:solid;border-width:1px;"])
77
- }), (0,themes_namespaceObject.pick)({
78
- enterprise: themes_namespaceObject.variables.borderColor,
79
- prisma: themes_namespaceObject.variables.neutral200
80
- }));
81
-
82
- ;// CONCATENATED MODULE: ./src/Divider/Divider.tsx
83
- 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); }
84
-
85
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
86
-
87
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
88
-
89
-
90
-
91
-
92
- var propTypes = {
93
- elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
94
- orientation: external_prop_types_default().oneOf(['horizontal', 'vertical'])
95
- };
96
-
97
- function Divider(_ref) {
98
- var elementRef = _ref.elementRef,
99
- _ref$orientation = _ref.orientation,
100
- orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation,
101
- otherProps = _objectWithoutProperties(_ref, ["elementRef", "orientation"]);
102
-
103
- // @docs-props-type DividerPropsBase
104
- return /*#__PURE__*/external_react_default().createElement(StyledRule, _extends({
105
- "data-test": "divider",
106
- ref: elementRef,
107
- "aria-orientation": orientation,
108
- $orientation: orientation
109
- }, otherProps));
110
- }
111
-
112
- Divider.propTypes = propTypes;
113
- /* harmony default export */ const Divider_Divider = (Divider);
114
- ;// CONCATENATED MODULE: ./src/Divider/index.ts
115
-
116
- module.exports = __webpack_exports__;
117
- /******/ })()
118
- ;
1
+ /******/ (() => {
2
+ // webpackBootstrap
3
+ /******/ "use strict";
4
+ /******/ // The require scope
5
+ /******/ var e = {};
6
+ /******/
7
+ /************************************************************************/
8
+ /******/ /* webpack/runtime/compat get default export */
9
+ /******/ (() => {
10
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
11
+ /******/ e.n = r => {
12
+ /******/ var t = r && r.__esModule ?
13
+ /******/ () => r["default"]
14
+ /******/ : () => r
15
+ /******/;
16
+ e.d(t, {
17
+ a: t
18
+ });
19
+ /******/ return t;
20
+ /******/ };
21
+ /******/ })();
22
+ /******/
23
+ /******/ /* webpack/runtime/define property getters */
24
+ /******/ (() => {
25
+ /******/ // define getter functions for harmony exports
26
+ /******/ e.d = (r, t) => {
27
+ /******/ for (var o in t) {
28
+ /******/ if (e.o(t, o) && !e.o(r, o)) {
29
+ /******/ Object.defineProperty(r, o, {
30
+ enumerable: true,
31
+ get: t[o]
32
+ });
33
+ /******/ }
34
+ /******/ }
35
+ /******/ };
36
+ /******/ })();
37
+ /******/
38
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
+ /******/ (() => {
40
+ /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
41
+ /******/;
42
+ })();
43
+ /******/
44
+ /******/ /* webpack/runtime/make namespace object */
45
+ /******/ (() => {
46
+ /******/ // define __esModule on exports
47
+ /******/ e.r = e => {
48
+ /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
+ /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
+ value: "Module"
51
+ });
52
+ /******/ }
53
+ /******/ Object.defineProperty(e, "__esModule", {
54
+ value: true
55
+ });
56
+ /******/ };
57
+ /******/ })();
58
+ /******/
59
+ /************************************************************************/ var r = {};
60
+ // ESM COMPAT FLAG
61
+ e.r(r);
62
+ // EXPORTS
63
+ e.d(r, {
64
+ default: () => /* reexport */ v
65
+ });
66
+ // CONCATENATED MODULE: external "react"
67
+ const t = require("react");
68
+ var o = e.n(t);
69
+ // CONCATENATED MODULE: external "prop-types"
70
+ const n = require("prop-types");
71
+ var i = e.n(n);
72
+ // CONCATENATED MODULE: external "styled-components"
73
+ const a = require("styled-components");
74
+ var l = e.n(a);
75
+ // CONCATENATED MODULE: external "@splunk/themes"
76
+ const s = require("@splunk/themes");
77
+ // CONCATENATED MODULE: ./src/Divider/DividerStyles.ts
78
+ var c = l().hr.withConfig({
79
+ displayName: "DividerStyles__StyledRule",
80
+ componentId: "gl6kyz-0"
81
+ })([ "", ";", ";border-color:", ";" ], s.mixins.reset("block"), (0, s.pickVariant)("$orientation", {
82
+ horizontal: (0, a.css)([ "border-top-style:solid;border-width:1px;" ]),
83
+ vertical: (0, a.css)([ "display:inline;border-left-style:solid;border-width:1px;" ])
84
+ }), (0, s.pick)({
85
+ enterprise: s.variables.borderColor,
86
+ prisma: s.variables.neutral200
87
+ }));
88
+ // CONCATENATED MODULE: ./src/Divider/Divider.tsx
89
+ function u() {
90
+ u = Object.assign || function(e) {
91
+ for (var r = 1; r < arguments.length; r++) {
92
+ var t = arguments[r];
93
+ for (var o in t) {
94
+ if (Object.prototype.hasOwnProperty.call(t, o)) {
95
+ e[o] = t[o];
96
+ }
97
+ }
98
+ }
99
+ return e;
100
+ };
101
+ return u.apply(this, arguments);
102
+ }
103
+ function p(e, r) {
104
+ if (e == null) return {};
105
+ var t = f(e, r);
106
+ var o, n;
107
+ if (Object.getOwnPropertySymbols) {
108
+ var i = Object.getOwnPropertySymbols(e);
109
+ for (n = 0; n < i.length; n++) {
110
+ o = i[n];
111
+ if (r.indexOf(o) >= 0) continue;
112
+ if (!Object.prototype.propertyIsEnumerable.call(e, o)) continue;
113
+ t[o] = e[o];
114
+ }
115
+ }
116
+ return t;
117
+ }
118
+ function f(e, r) {
119
+ if (e == null) return {};
120
+ var t = {};
121
+ var o = Object.keys(e);
122
+ var n, i;
123
+ for (i = 0; i < o.length; i++) {
124
+ n = o[i];
125
+ if (r.indexOf(n) >= 0) continue;
126
+ t[n] = e[n];
127
+ }
128
+ return t;
129
+ }
130
+ var d = {
131
+ elementRef: i().oneOfType([ i().func, i().object ]),
132
+ orientation: i().oneOf([ "horizontal", "vertical" ])
133
+ };
134
+ function y(e) {
135
+ var r = e.elementRef, t = e.orientation, n = t === void 0 ? "horizontal" : t, i = p(e, [ "elementRef", "orientation" ]);
136
+ // @docs-props-type DividerPropsBase
137
+
138
+ return o().createElement(c, u({
139
+ "data-test": "divider",
140
+ ref: r,
141
+ "aria-orientation": n,
142
+ $orientation: n
143
+ }, i));
144
+ }
145
+ y.propTypes = d;
146
+ /* harmony default export */ const v = y;
147
+ // CONCATENATED MODULE: ./src/Divider/index.ts
148
+ module.exports = r;
149
+ /******/})();