@splunk/react-ui 4.20.0 → 4.21.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 (98) hide show
  1. package/Accordion.js +114 -230
  2. package/Anchor.js +74 -150
  3. package/Animation.js +52 -124
  4. package/AnimationToggle.js +86 -146
  5. package/Box.js +77 -153
  6. package/Breadcrumbs.js +105 -197
  7. package/Button.js +168 -316
  8. package/ButtonGroup.js +84 -168
  9. package/ButtonSimple.js +224 -324
  10. package/CHANGELOG.md +21 -0
  11. package/Calendar.js +264 -462
  12. package/Card.js +223 -371
  13. package/CardLayout.js +87 -163
  14. package/Chip.js +199 -323
  15. package/Clickable.js +128 -246
  16. package/CloseButton.js +92 -200
  17. package/Code.js +162 -250
  18. package/CollapsiblePanel.js +214 -370
  19. package/Color.js +267 -495
  20. package/ColumnLayout.js +152 -254
  21. package/ComboBox.js +197 -371
  22. package/Concertina.js +214 -374
  23. package/ControlGroup.js +164 -288
  24. package/Date.js +154 -304
  25. package/DefinitionList.js +104 -180
  26. package/Divider.js +80 -156
  27. package/Dropdown.js +121 -263
  28. package/DualListbox.js +408 -601
  29. package/EventListener.js +70 -138
  30. package/File.js +343 -547
  31. package/FormRows.js +232 -414
  32. package/Heading.js +94 -164
  33. package/Image.js +167 -323
  34. package/JSONTree.js +166 -314
  35. package/Layer.js +221 -388
  36. package/Link.js +133 -239
  37. package/List.js +85 -161
  38. package/Markdown.js +230 -354
  39. package/Menu.js +489 -760
  40. package/Message.js +248 -437
  41. package/MessageBar.js +220 -408
  42. package/Modal.js +201 -365
  43. package/ModalLayer.js +96 -196
  44. package/Monogram.js +112 -204
  45. package/Multiselect.js +1135 -1761
  46. package/Number.js +178 -334
  47. package/Paginator.js +170 -336
  48. package/Paragraph.js +77 -153
  49. package/Popover.js +370 -620
  50. package/Progress.js +139 -255
  51. package/RadioBar.js +156 -280
  52. package/RadioList.js +182 -282
  53. package/Resize.js +173 -307
  54. package/ResultsMenu.js +161 -303
  55. package/ScreenReaderContent.js +75 -151
  56. package/Scroll.js +125 -267
  57. package/ScrollContainerContext.js +129 -201
  58. package/Search.js +188 -354
  59. package/Select.js +1028 -1430
  60. package/SidePanel.js +106 -214
  61. package/Slider.js +198 -348
  62. package/SlidingPanels.js +138 -280
  63. package/SplitButton.js +141 -273
  64. package/StaticContent.js +84 -168
  65. package/StepBar.js +138 -246
  66. package/Switch.js +261 -385
  67. package/TabBar.js +261 -398
  68. package/TabLayout.js +122 -238
  69. package/Table.js +943 -1448
  70. package/Text.js +335 -549
  71. package/TextArea.js +315 -537
  72. package/Tooltip.js +152 -292
  73. package/TransitionOpen.js +118 -242
  74. package/Typography.js +81 -157
  75. package/WaitSpinner.js +117 -209
  76. package/package.json +14 -15
  77. package/stubs-splunkui.d.ts +4 -1
  78. package/types/src/ComboBox/Option.d.ts +1 -1
  79. package/types/src/Concertina/Concertina.d.ts +4 -0
  80. package/types/src/Link/Link.d.ts +7 -3
  81. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
  82. package/types/src/Markdown/Markdown.d.ts +1 -1
  83. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
  84. package/types/src/Menu/Item.d.ts +1 -1
  85. package/types/src/Menu/Menu.d.ts +1 -0
  86. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
  87. package/types/src/Multiselect/Option.d.ts +1 -1
  88. package/types/src/Search/Option.d.ts +1 -1
  89. package/types/src/Select/Option.d.ts +1 -1
  90. package/types/src/Select/OptionBase.d.ts +1 -1
  91. package/types/src/fixtures/FetchOptions.d.ts +2 -8
  92. package/useForceUpdate.js +46 -110
  93. package/useKeyPress.js +50 -107
  94. package/usePrevious.js +47 -111
  95. package/useRovingFocus.js +53 -133
  96. package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
  97. /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
  98. /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/ColumnLayout.js CHANGED
@@ -1,160 +1,104 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
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 });
18
44
  /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 180);
86
- /******/ })
45
+ /******/ })();
46
+ /******/
87
47
  /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("@splunk/themes");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
- /***/ (function(module, exports) {
99
-
100
- module.exports = require("prop-types");
101
-
102
- /***/ }),
103
-
104
- /***/ 112:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("lodash/defaults");
108
-
109
- /***/ }),
110
-
111
- /***/ 180:
112
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
113
-
114
- "use strict";
48
+ var __webpack_exports__ = {};
115
49
  // ESM COMPAT FLAG
116
50
  __webpack_require__.r(__webpack_exports__);
117
51
 
118
52
  // EXPORTS
119
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ ColumnLayout_ColumnLayout; });
120
- __webpack_require__.d(__webpack_exports__, "Column", function() { return /* reexport */ ColumnLayout_Column; });
121
- __webpack_require__.d(__webpack_exports__, "Row", function() { return /* reexport */ ColumnLayout_Row; });
122
-
123
- // EXTERNAL MODULE: external "react"
124
- var external_react_ = __webpack_require__(2);
125
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
126
-
127
- // EXTERNAL MODULE: external "prop-types"
128
- var external_prop_types_ = __webpack_require__(1);
129
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
130
-
131
- // EXTERNAL MODULE: external "@splunk/themes/useSplunkTheme"
132
- var useSplunkTheme_ = __webpack_require__(70);
133
- var useSplunkTheme_default = /*#__PURE__*/__webpack_require__.n(useSplunkTheme_);
134
-
135
- // EXTERNAL MODULE: external "lodash/defaults"
136
- var defaults_ = __webpack_require__(112);
137
- var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults_);
138
-
139
- // EXTERNAL MODULE: external "styled-components"
140
- var external_styled_components_ = __webpack_require__(3);
141
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
142
-
143
- // EXTERNAL MODULE: external "@splunk/themes"
144
- var themes_ = __webpack_require__(0);
145
-
146
- // CONCATENATED MODULE: ./src/ColumnLayout/ColumnStyles.ts
147
-
148
-
149
- var Styled = external_styled_components_default.a.div.withConfig({
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ Column: () => (/* reexport */ ColumnLayout_Column),
55
+ Row: () => (/* reexport */ ColumnLayout_Row),
56
+ "default": () => (/* reexport */ ColumnLayout_ColumnLayout)
57
+ });
58
+
59
+ ;// CONCATENATED MODULE: external "react"
60
+ const external_react_namespaceObject = require("react");
61
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
62
+ ;// CONCATENATED MODULE: external "prop-types"
63
+ const external_prop_types_namespaceObject = require("prop-types");
64
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
65
+ ;// CONCATENATED MODULE: external "@splunk/themes/useSplunkTheme"
66
+ const useSplunkTheme_namespaceObject = require("@splunk/themes/useSplunkTheme");
67
+ var useSplunkTheme_default = /*#__PURE__*/__webpack_require__.n(useSplunkTheme_namespaceObject);
68
+ ;// CONCATENATED MODULE: external "lodash/defaults"
69
+ const defaults_namespaceObject = require("lodash/defaults");
70
+ var defaults_default = /*#__PURE__*/__webpack_require__.n(defaults_namespaceObject);
71
+ ;// CONCATENATED MODULE: external "styled-components"
72
+ const external_styled_components_namespaceObject = require("styled-components");
73
+ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
74
+ ;// CONCATENATED MODULE: external "@splunk/themes"
75
+ const themes_namespaceObject = require("@splunk/themes");
76
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/ColumnStyles.ts
77
+
78
+
79
+ var Styled = external_styled_components_default().div.withConfig({
150
80
  displayName: "ColumnStyles__Styled",
151
81
  componentId: "sc-1pchz98-0"
152
- })(["", ";"], themes_["mixins"].reset('block'));
82
+ })(["", ";"], themes_namespaceObject.mixins.reset('block'));
83
+
84
+ ;// CONCATENATED MODULE: ./src/utils/types.ts
85
+ // see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
86
+ // regarding the css prop. certain (versions of) libraries included in the compilation
87
+ // - such as storybook->emotion - introduce the css prop using a global augmentation,
88
+ // which causes the prop to end up in our declaration files (via JSX.IntrinsicElements).
89
+ // it's difficult to control all nested dependencies and their types, which is why the
90
+ // css prop is omitted in the two prop helpers above - this ensures the css prop isn't
91
+ // erroneously included in react-ui's public api.
92
+ // see https://github.com/microsoft/TypeScript/pull/12253
93
+ // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
94
+ function assertDefined(val, msg) {
95
+ if (val === undefined || val === null) {
96
+ throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected undefined or null');
97
+ }
98
+ }
153
99
 
154
- // EXTERNAL MODULE: ./src/utils/types.ts
155
- var types = __webpack_require__(79);
156
100
 
157
- // CONCATENATED MODULE: ./src/ColumnLayout/Column.tsx
101
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/Column.tsx
158
102
  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); }
159
103
 
160
104
  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; }
@@ -167,21 +111,21 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
167
111
 
168
112
 
169
113
  var propTypes = {
170
- children: external_prop_types_default.a.node,
171
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
114
+ children: (external_prop_types_default()).node,
115
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
172
116
 
173
117
  /** @private. */
174
- gutter: external_prop_types_default.a.number,
118
+ gutter: (external_prop_types_default()).number,
175
119
 
176
120
  /** @private. */
177
- isFirstChild: external_prop_types_default.a.bool,
121
+ isFirstChild: (external_prop_types_default()).bool,
178
122
 
179
123
  /** @private. */
180
- isLastChild: external_prop_types_default.a.bool,
181
- span: external_prop_types_default.a.number,
124
+ isLastChild: (external_prop_types_default()).bool,
125
+ span: (external_prop_types_default()).number,
182
126
 
183
127
  /** @private. */
184
- style: external_prop_types_default.a.object
128
+ style: (external_prop_types_default()).object
185
129
  };
186
130
 
187
131
  function Column(_ref) {
@@ -197,7 +141,7 @@ function Column(_ref) {
197
141
 
198
142
  // @docs-props-type ColumnPropsBase
199
143
  var width = gutter ? "calc((100% - ".concat(11 * gutter, "px) * ").concat(span / 12, " + (").concat(gutter, "px * ").concat(span - 1, "))") : "".concat(100 / 12 * span, "%");
200
- Object(types["a" /* assertDefined */])(gutter);
144
+ assertDefined(gutter);
201
145
  var calcStyle = {
202
146
  marginLeft: isFirstChild ? undefined : gutter / 2,
203
147
  marginRight: isLastChild ? undefined : gutter / 2,
@@ -205,7 +149,7 @@ function Column(_ref) {
205
149
  // may accommodate small rounding errors and dividers
206
150
  width: width
207
151
  };
208
- return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
152
+ return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
209
153
  "data-test": "column",
210
154
  ref: elementRef,
211
155
  style: defaults_default()({}, style, calcStyle)
@@ -213,26 +157,26 @@ function Column(_ref) {
213
157
  }
214
158
 
215
159
  Column.propTypes = propTypes;
216
- /* harmony default export */ var ColumnLayout_Column = (Column);
217
- // CONCATENATED MODULE: ./src/ColumnLayout/RowStyles.ts
160
+ /* harmony default export */ const ColumnLayout_Column = (Column);
161
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/RowStyles.ts
218
162
 
219
163
 
220
- var RowStyles_Styled = external_styled_components_default.a.div.withConfig({
164
+ var RowStyles_Styled = external_styled_components_default().div.withConfig({
221
165
  displayName: "RowStyles__Styled",
222
166
  componentId: "sc-121ntds-0"
223
- })(["", ";flex-flow:row nowrap;&[data-align-items='start']{align-items:flex-start;}&[data-align-items='end']{align-items:flex-end;}&[data-align-items='center']{align-items:center;}&[data-align-items='stretch']{align-items:stretch;}"], themes_["mixins"].reset('flex'));
224
- var StyledDivider = external_styled_components_default.a.div.withConfig({
167
+ })(["", ";flex-flow:row nowrap;&[data-align-items='start']{align-items:flex-start;}&[data-align-items='end']{align-items:flex-end;}&[data-align-items='center']{align-items:center;}&[data-align-items='stretch']{align-items:stretch;}"], themes_namespaceObject.mixins.reset('flex'));
168
+ var StyledDivider = external_styled_components_default().div.withConfig({
225
169
  displayName: "RowStyles__StyledDivider",
226
170
  componentId: "sc-121ntds-1"
227
- })(["border-left:1px solid ", ";flex:0 0 1;align-self:stretch;"], Object(themes_["pick"])({
228
- prisma: themes_["variables"].neutral200,
171
+ })(["border-left:1px solid ", ";flex:0 0 1;align-self:stretch;"], (0,themes_namespaceObject.pick)({
172
+ prisma: themes_namespaceObject.variables.neutral200,
229
173
  enterprise: {
230
- light: themes_["variables"].gray92,
231
- dark: themes_["variables"].gray60
174
+ light: themes_namespaceObject.variables.gray92,
175
+ dark: themes_namespaceObject.variables.gray60
232
176
  }
233
177
  }));
234
178
 
235
- // CONCATENATED MODULE: ./src/ColumnLayout/Row.tsx
179
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/Row.tsx
236
180
  function Row_extends() { Row_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 Row_extends.apply(this, arguments); }
237
181
 
238
182
  function Row_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = Row_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; }
@@ -245,24 +189,24 @@ function Row_objectWithoutPropertiesLoose(source, excluded) { if (source == null
245
189
 
246
190
 
247
191
  var Row_propTypes = {
248
- alignItems: external_prop_types_default.a.oneOf(['start', 'end', 'center', 'stretch']),
249
- children: external_prop_types_default.a.node,
192
+ alignItems: external_prop_types_default().oneOf(['start', 'end', 'center', 'stretch']),
193
+ children: (external_prop_types_default()).node,
250
194
 
251
195
  /** @private. */
252
- divider: external_prop_types_default.a.bool,
253
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
196
+ divider: (external_prop_types_default()).bool,
197
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
254
198
 
255
199
  /** @private. */
256
- gutter: external_prop_types_default.a.number,
200
+ gutter: (external_prop_types_default()).number,
257
201
 
258
202
  /** @private. */
259
- isFirstChild: external_prop_types_default.a.bool,
203
+ isFirstChild: (external_prop_types_default()).bool,
260
204
 
261
205
  /** @private. */
262
- isLastChild: external_prop_types_default.a.bool,
206
+ isLastChild: (external_prop_types_default()).bool,
263
207
 
264
208
  /** @private. */
265
- style: external_prop_types_default.a.object
209
+ style: (external_prop_types_default()).object
266
210
  };
267
211
 
268
212
  function Row(_ref) {
@@ -280,31 +224,31 @@ function Row(_ref) {
280
224
  // @docs-props-type RowPropsBase
281
225
  if (false) { var total; }
282
226
 
283
- var cloneColumn = Object(external_react_["useCallback"])(function (column, idx) {
284
- return /*#__PURE__*/Object(external_react_["cloneElement"])(column, {
227
+ var cloneColumn = (0,external_react_namespaceObject.useCallback)(function (column, idx) {
228
+ return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(column, {
285
229
  gutter: gutter,
286
230
  isFirstChild: idx === 0,
287
- isLastChild: idx === external_react_["Children"].count(children) - 1
231
+ isLastChild: idx === external_react_namespaceObject.Children.count(children) - 1
288
232
  });
289
233
  }, [children, gutter]);
290
- var insertDividers = Object(external_react_["useCallback"])(function (acc, row, idx, original) {
234
+ var insertDividers = (0,external_react_namespaceObject.useCallback)(function (acc, row, idx, original) {
291
235
  acc.push(row);
292
236
 
293
237
  if (divider && idx < original.length - 1) {
294
- acc.push( /*#__PURE__*/external_react_default.a.createElement(StyledDivider, {
238
+ acc.push( /*#__PURE__*/external_react_default().createElement(StyledDivider, {
295
239
  key: "".concat(idx, "-divider")
296
240
  }));
297
241
  }
298
242
 
299
243
  return acc;
300
244
  }, [divider]);
301
- Object(types["a" /* assertDefined */])(gutter);
245
+ assertDefined(gutter);
302
246
  var gutterStyle = {
303
247
  marginTop: isFirstChild ? undefined : gutter / 2,
304
248
  marginBottom: isLastChild ? undefined : gutter / 2
305
249
  };
306
- var childrenCloned = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(cloneColumn).reduce(insertDividers, []);
307
- return /*#__PURE__*/external_react_default.a.createElement(RowStyles_Styled, Row_extends({
250
+ var childrenCloned = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(cloneColumn).reduce(insertDividers, []);
251
+ return /*#__PURE__*/external_react_default().createElement(RowStyles_Styled, Row_extends({
308
252
  style: defaults_default()({}, style, gutterStyle),
309
253
  "data-align-items": alignItems,
310
254
  "data-test": "row",
@@ -313,26 +257,26 @@ function Row(_ref) {
313
257
  }
314
258
 
315
259
  Row.propTypes = Row_propTypes;
316
- /* harmony default export */ var ColumnLayout_Row = (Row);
317
- // CONCATENATED MODULE: ./src/ColumnLayout/ColumnLayoutStyles.ts
260
+ /* harmony default export */ const ColumnLayout_Row = (Row);
261
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/ColumnLayoutStyles.ts
318
262
 
319
263
 
320
- var ColumnLayoutStyles_Styled = external_styled_components_default.a.div.withConfig({
264
+ var ColumnLayoutStyles_Styled = external_styled_components_default().div.withConfig({
321
265
  displayName: "ColumnLayoutStyles__Styled",
322
266
  componentId: "sc-3eatxz-0"
323
- })(["", ";flex-direction:column;"], themes_["mixins"].reset('flex'));
324
- var ColumnLayoutStyles_StyledDivider = external_styled_components_default.a.div.withConfig({
267
+ })(["", ";flex-direction:column;"], themes_namespaceObject.mixins.reset('flex'));
268
+ var ColumnLayoutStyles_StyledDivider = external_styled_components_default().div.withConfig({
325
269
  displayName: "ColumnLayoutStyles__StyledDivider",
326
270
  componentId: "sc-3eatxz-1"
327
- })(["border-top:1px solid ", ";height:0;"], Object(themes_["pick"])({
328
- prisma: themes_["variables"].neutral200,
271
+ })(["border-top:1px solid ", ";height:0;"], (0,themes_namespaceObject.pick)({
272
+ prisma: themes_namespaceObject.variables.neutral200,
329
273
  enterprise: {
330
- light: themes_["variables"].gray92,
331
- dark: themes_["variables"].gray60
274
+ light: themes_namespaceObject.variables.gray92,
275
+ dark: themes_namespaceObject.variables.gray60
332
276
  }
333
277
  }));
334
278
 
335
- // CONCATENATED MODULE: ./src/ColumnLayout/ColumnLayout.tsx
279
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/ColumnLayout.tsx
336
280
  function ColumnLayout_extends() { ColumnLayout_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 ColumnLayout_extends.apply(this, arguments); }
337
281
 
338
282
  function ColumnLayout_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = ColumnLayout_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; }
@@ -346,10 +290,10 @@ function ColumnLayout_objectWithoutPropertiesLoose(source, excluded) { if (sourc
346
290
 
347
291
 
348
292
  var ColumnLayout_propTypes = {
349
- children: external_prop_types_default.a.node,
350
- divider: external_prop_types_default.a.oneOf(['none', 'vertical', 'horizontal']),
351
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
352
- gutter: external_prop_types_default.a.number
293
+ children: (external_prop_types_default()).node,
294
+ divider: external_prop_types_default().oneOf(['none', 'vertical', 'horizontal']),
295
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
296
+ gutter: (external_prop_types_default()).number
353
297
  };
354
298
 
355
299
  /**
@@ -369,9 +313,9 @@ function ColumnLayout(_ref) {
369
313
  family = _useSplunkTheme.family,
370
314
  density = _useSplunkTheme.density;
371
315
 
372
- var cloneRow = Object(external_react_["useCallback"])(function (row, idx) {
316
+ var cloneRow = (0,external_react_namespaceObject.useCallback)(function (row, idx) {
373
317
  var isFirstChild = idx === 0;
374
- var isLastChild = idx === external_react_["Children"].count(children) - 1;
318
+ var isLastChild = idx === external_react_namespaceObject.Children.count(children) - 1;
375
319
  var gutter = gutterProp;
376
320
 
377
321
  if (gutter === undefined) {
@@ -386,26 +330,26 @@ function ColumnLayout(_ref) {
386
330
  }
387
331
  }
388
332
 
389
- return /*#__PURE__*/Object(external_react_["cloneElement"])(row, {
333
+ return /*#__PURE__*/(0,external_react_namespaceObject.cloneElement)(row, {
390
334
  gutter: gutter,
391
335
  divider: divider === 'vertical',
392
336
  isFirstChild: isFirstChild,
393
337
  isLastChild: isLastChild
394
338
  });
395
339
  }, [children, density, divider, family, gutterProp]);
396
- var insertDividers = Object(external_react_["useCallback"])(function (acc, row, idx, original) {
340
+ var insertDividers = (0,external_react_namespaceObject.useCallback)(function (acc, row, idx, original) {
397
341
  acc.push(row);
398
342
 
399
343
  if (divider === 'horizontal' && idx < original.length - 1) {
400
- acc.push( /*#__PURE__*/external_react_default.a.createElement(ColumnLayoutStyles_StyledDivider, {
344
+ acc.push( /*#__PURE__*/external_react_default().createElement(ColumnLayoutStyles_StyledDivider, {
401
345
  key: "".concat(idx, "-divider")
402
346
  }));
403
347
  }
404
348
 
405
349
  return acc;
406
350
  }, [divider]);
407
- var childrenCloned = external_react_["Children"].toArray(children).filter(external_react_["isValidElement"]).map(cloneRow).reduce(insertDividers, []);
408
- return /*#__PURE__*/external_react_default.a.createElement(ColumnLayoutStyles_Styled, ColumnLayout_extends({
351
+ var childrenCloned = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement).map(cloneRow).reduce(insertDividers, []);
352
+ return /*#__PURE__*/external_react_default().createElement(ColumnLayoutStyles_Styled, ColumnLayout_extends({
409
353
  "data-test": "column-layout",
410
354
  ref: elementRef
411
355
  }, otherProps), childrenCloned);
@@ -414,57 +358,11 @@ function ColumnLayout(_ref) {
414
358
  ColumnLayout.propTypes = ColumnLayout_propTypes;
415
359
  ColumnLayout.Row = ColumnLayout_Row;
416
360
  ColumnLayout.Column = ColumnLayout_Column;
417
- /* harmony default export */ var ColumnLayout_ColumnLayout = (ColumnLayout);
418
-
419
- // CONCATENATED MODULE: ./src/ColumnLayout/index.ts
420
-
421
-
422
-
423
- /***/ }),
424
-
425
- /***/ 2:
426
- /***/ (function(module, exports) {
427
-
428
- module.exports = require("react");
429
-
430
- /***/ }),
431
-
432
- /***/ 3:
433
- /***/ (function(module, exports) {
434
-
435
- module.exports = require("styled-components");
436
-
437
- /***/ }),
438
-
439
- /***/ 70:
440
- /***/ (function(module, exports) {
441
-
442
- module.exports = require("@splunk/themes/useSplunkTheme");
443
-
444
- /***/ }),
445
-
446
- /***/ 79:
447
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
448
-
449
- "use strict";
450
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return assertDefined; });
451
- // see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/31245 for details
452
- // regarding the css prop. certain (versions of) libraries included in the compilation
453
- // - such as storybook->emotion - introduce the css prop using a global augmentation,
454
- // which causes the prop to end up in our declaration files (via JSX.IntrinsicElements).
455
- // it's difficult to control all nested dependencies and their types, which is why the
456
- // css prop is omitted in the two prop helpers above - this ensures the css prop isn't
457
- // erroneously included in react-ui's public api.
458
- // see https://github.com/microsoft/TypeScript/pull/12253
459
- // see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html
460
- function assertDefined(val, msg) {
461
- if (val === undefined || val === null) {
462
- throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected undefined or null');
463
- }
464
- }
465
-
361
+ /* harmony default export */ const ColumnLayout_ColumnLayout = (ColumnLayout);
466
362
 
363
+ ;// CONCATENATED MODULE: ./src/ColumnLayout/index.ts
467
364
 
468
- /***/ })
469
365
 
470
- /******/ });
366
+ module.exports = __webpack_exports__;
367
+ /******/ })()
368
+ ;