@splunk/react-ui 4.16.3 → 4.17.1

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 (177) hide show
  1. package/Accordion.js +13 -13
  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 +101 -247
  7. package/ButtonGroup.js +4 -4
  8. package/ButtonSimple.js +6 -6
  9. package/CHANGELOG.md +60 -2
  10. package/Calendar.js +76 -275
  11. package/Card.js +75 -227
  12. package/CardLayout.js +2 -2
  13. package/Chip.js +40 -211
  14. package/Clickable.js +10 -10
  15. package/CloseButton.js +38 -206
  16. package/Code.js +28 -20
  17. package/CollapsiblePanel.js +74 -228
  18. package/Color.js +62 -319
  19. package/ColumnLayout.js +6 -6
  20. package/ComboBox.js +34 -32
  21. package/Concertina.js +40 -40
  22. package/ControlGroup.js +20 -20
  23. package/Date.js +22 -22
  24. package/DefinitionList.js +2 -2
  25. package/Divider.js +2 -2
  26. package/Dropdown.js +32 -32
  27. package/DualListbox.d.ts +2 -0
  28. package/DualListbox.js +1780 -0
  29. package/EventListener.js +4 -4
  30. package/File.js +85 -250
  31. package/FormRows.js +60 -215
  32. package/Heading.js +39 -27
  33. package/Image.js +73 -227
  34. package/JSONTree.js +18 -18
  35. package/Layer.js +30 -30
  36. package/Link.js +60 -28
  37. package/List.js +9 -9
  38. package/MIGRATION.md +28 -0
  39. package/Markdown.js +21 -21
  40. package/Menu.js +180 -371
  41. package/Message.js +141 -411
  42. package/MessageBar.js +170 -400
  43. package/Modal.js +31 -31
  44. package/ModalLayer.js +6 -6
  45. package/Monogram.js +4 -4
  46. package/Multiselect.js +2299 -2517
  47. package/Number.js +32 -32
  48. package/Paginator.js +94 -323
  49. package/Paragraph.js +2 -2
  50. package/Popover.js +125 -125
  51. package/Progress.js +15 -15
  52. package/RadioBar.js +23 -19
  53. package/RadioList.js +13 -12
  54. package/Resize.js +18 -18
  55. package/ResultsMenu.js +21 -21
  56. package/ScreenReaderContent.js +2 -2
  57. package/Scroll.js +33 -33
  58. package/ScrollContainerContext.js +13 -13
  59. package/Search.js +34 -32
  60. package/Select.js +226 -372
  61. package/SidePanel.js +12 -12
  62. package/Slider.js +28 -28
  63. package/SlidingPanels.js +29 -29
  64. package/SplitButton.js +59 -62
  65. package/StaticContent.js +4 -4
  66. package/StepBar.js +36 -239
  67. package/Switch.js +23 -23
  68. package/TabBar.js +47 -47
  69. package/TabLayout.js +30 -28
  70. package/Table.js +295 -589
  71. package/Text.js +111 -324
  72. package/TextArea.js +164 -368
  73. package/Tooltip.js +23 -23
  74. package/TransitionOpen.js +21 -21
  75. package/Typography.js +32 -28
  76. package/WaitSpinner.js +2 -2
  77. package/docker-compose.yml +19 -7
  78. package/package.json +12 -13
  79. package/stubs-splunkui.d.ts +4 -25
  80. package/types/src/Button/icons/CaretSmallDown.d.ts +2 -0
  81. package/types/src/Button/icons/External.d.ts +2 -0
  82. package/types/src/Code/Code.d.ts +6 -1
  83. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +0 -1
  84. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +11 -0
  85. package/types/src/Date/Icon.d.ts +1 -1
  86. package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -0
  87. package/types/src/DualListbox/DualListbox.d.ts +87 -0
  88. package/types/src/DualListbox/DualListboxContext.d.ts +27 -0
  89. package/types/src/DualListbox/Label.d.ts +37 -0
  90. package/types/src/DualListbox/Listbox.d.ts +54 -0
  91. package/types/src/DualListbox/ListboxContext.d.ts +32 -0
  92. package/types/src/DualListbox/Option.d.ts +35 -0
  93. package/types/src/DualListbox/ScreenReaderWrapper.d.ts +4 -0
  94. package/types/src/DualListbox/ToolbarButton.d.ts +38 -0
  95. package/types/src/DualListbox/ToolbarContext.d.ts +21 -0
  96. package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -0
  97. package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -0
  98. package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -0
  99. package/types/src/DualListbox/index.d.ts +2 -0
  100. package/types/src/DualListbox/listboxUtils.d.ts +4 -0
  101. package/types/src/File/Icon.d.ts +1 -1
  102. package/types/src/File/IconCloud.d.ts +1 -1
  103. package/types/src/File/PaperClip.d.ts +1 -1
  104. package/types/src/File/Retry.d.ts +1 -1
  105. package/types/src/File/Trash.d.ts +1 -1
  106. package/types/src/File/docs/examples/Progress.d.ts +1 -15
  107. package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -0
  108. package/types/src/Heading/Heading.d.ts +12 -4
  109. package/types/src/Heading/docs/examples/Variant.d.ts +2 -0
  110. package/types/src/Image/Image.d.ts +1 -1
  111. package/types/src/Image/icons/Cross.d.ts +2 -0
  112. package/types/src/Link/icons/External.d.ts +2 -0
  113. package/types/src/Menu/Divider.d.ts +1 -0
  114. package/types/src/Menu/Heading.d.ts +1 -0
  115. package/types/src/Menu/Item.d.ts +5 -2
  116. package/types/src/Menu/Menu.d.ts +3 -1
  117. package/types/src/Menu/icons/External.d.ts +2 -0
  118. package/types/src/Multiselect/Normal.d.ts +1 -1
  119. package/types/src/Number/IncrementIcon.d.ts +1 -1
  120. package/types/src/RadioBar/RadioBar.d.ts +1 -1
  121. package/types/src/Search/Option.d.ts +9 -0
  122. package/types/src/Select/OptionBase.d.ts +9 -0
  123. package/types/src/Select/icons/CaretSmallDown.d.ts +2 -0
  124. package/types/src/Select/icons/Search.d.ts +2 -0
  125. package/types/src/SplitButton/SplitButton.d.ts +8 -3
  126. package/types/src/SplitButton/docs/examples/Block.d.ts +1 -0
  127. package/types/src/TabBar/Tab.d.ts +3 -1
  128. package/types/src/TabLayout/TabLayout.d.ts +0 -1
  129. package/types/src/Table/HeadInner.d.ts +2 -2
  130. package/types/src/Table/icons/ExpansionRow.d.ts +6 -0
  131. package/types/src/Table/icons/HeadExpandRows.d.ts +1 -0
  132. package/types/src/Text/IconOutlinedHide.d.ts +1 -1
  133. package/types/src/Text/IconOutlinedView.d.ts +1 -1
  134. package/types/src/TextArea/TextArea.d.ts +11 -4
  135. package/types/src/TextArea/docs/examples/ClearContent.d.ts +2 -0
  136. package/types/src/Tooltip/InfoIcon.d.ts +1 -1
  137. package/types/src/Typography/Typography.d.ts +4 -7
  138. package/types/src/useRovingFocus/index.d.ts +2 -0
  139. package/types/src/useRovingFocus/useRovingFocus.d.ts +27 -0
  140. package/useForceUpdate.js +2 -2
  141. package/useKeyPress.js +2 -2
  142. package/usePrevious.js +2 -2
  143. package/useRovingFocus.d.ts +2 -0
  144. package/useRovingFocus.js +237 -0
  145. package/Dockerfile.enterprise.storybook +0 -7
  146. package/Dockerfile.prisma.storybook +0 -7
  147. package/Dockerfile.visual +0 -10
  148. package/types/src/File/docs/examples/CustomChildren.d.ts +0 -12
  149. package/types/src/File/docs/examples/prisma/Progress.d.ts +0 -1
  150. package/types/src/Select/matchUtils.d.ts +0 -12
  151. package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +0 -1
  152. package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +0 -1
  153. package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
  154. package/types/src/icons/Alert.d.ts +0 -2
  155. package/types/src/icons/AlertFilled.d.ts +0 -2
  156. package/types/src/icons/CaretDown.d.ts +0 -2
  157. package/types/src/icons/CaretRight.d.ts +0 -2
  158. package/types/src/icons/Check.d.ts +0 -2
  159. package/types/src/icons/ChevronDown.d.ts +0 -2
  160. package/types/src/icons/ChevronLeft.d.ts +0 -2
  161. package/types/src/icons/ChevronRight.d.ts +0 -2
  162. package/types/src/icons/CrossMark.d.ts +0 -2
  163. package/types/src/icons/External.d.ts +0 -2
  164. package/types/src/icons/InfoFilled.d.ts +0 -2
  165. package/types/src/icons/More.d.ts +0 -2
  166. package/types/src/icons/MoreVertical.d.ts +0 -2
  167. package/types/src/icons/Plus.d.ts +0 -2
  168. package/types/src/icons/SVG.d.ts +0 -4
  169. package/types/src/icons/Search.d.ts +0 -2
  170. package/types/src/icons/Sort.d.ts +0 -2
  171. package/types/src/icons/SortedDown.d.ts +0 -2
  172. package/types/src/icons/SortedUp.d.ts +0 -2
  173. package/types/src/icons/Success.d.ts +0 -2
  174. package/types/src/icons/SuccessFilled.d.ts +0 -2
  175. package/types/src/icons/ThemedIcon.d.ts +0 -29
  176. package/types/src/icons/WarningFilled.d.ts +0 -2
  177. package/types/src/icons/types.d.ts +0 -11
package/TextArea.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 = 200);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 208);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -104,11 +104,11 @@ module.exports = require("prop-types");
104
104
  /***/ 10:
105
105
  /***/ (function(module, exports) {
106
106
 
107
- module.exports = require("lodash/keys");
107
+ module.exports = require("lodash/has");
108
108
 
109
109
  /***/ }),
110
110
 
111
- /***/ 106:
111
+ /***/ 105:
112
112
  /***/ (function(module, exports) {
113
113
 
114
114
  module.exports = require("@splunk/react-ui/ControlGroup");
@@ -116,13 +116,6 @@ module.exports = require("@splunk/react-ui/ControlGroup");
116
116
  /***/ }),
117
117
 
118
118
  /***/ 11:
119
- /***/ (function(module, exports) {
120
-
121
- module.exports = require("lodash/has");
122
-
123
- /***/ }),
124
-
125
- /***/ 12:
126
119
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
127
120
 
128
121
  "use strict";
@@ -149,21 +142,21 @@ function updateReactRef(ref, current) {
149
142
 
150
143
  /***/ }),
151
144
 
152
- /***/ 161:
145
+ /***/ 15:
153
146
  /***/ (function(module, exports) {
154
147
 
155
- module.exports = require("lodash/noop");
148
+ module.exports = require("@splunk/react-ui/EventListener");
156
149
 
157
150
  /***/ }),
158
151
 
159
- /***/ 17:
152
+ /***/ 165:
160
153
  /***/ (function(module, exports) {
161
154
 
162
- module.exports = require("@splunk/react-ui/EventListener");
155
+ module.exports = require("lodash/noop");
163
156
 
164
157
  /***/ }),
165
158
 
166
- /***/ 19:
159
+ /***/ 17:
167
160
  /***/ (function(module, exports) {
168
161
 
169
162
  module.exports = require("@splunk/react-ui/Button");
@@ -177,7 +170,7 @@ module.exports = require("react");
177
170
 
178
171
  /***/ }),
179
172
 
180
- /***/ 200:
173
+ /***/ 208:
181
174
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
182
175
 
183
176
  "use strict";
@@ -200,15 +193,15 @@ var defer_ = __webpack_require__(55);
200
193
  var defer_default = /*#__PURE__*/__webpack_require__.n(defer_);
201
194
 
202
195
  // EXTERNAL MODULE: external "lodash/has"
203
- var has_ = __webpack_require__(11);
196
+ var has_ = __webpack_require__(10);
204
197
  var has_default = /*#__PURE__*/__webpack_require__.n(has_);
205
198
 
206
199
  // EXTERNAL MODULE: external "lodash/keys"
207
- var keys_ = __webpack_require__(10);
200
+ var keys_ = __webpack_require__(9);
208
201
  var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
209
202
 
210
203
  // EXTERNAL MODULE: external "lodash/noop"
211
- var noop_ = __webpack_require__(161);
204
+ var noop_ = __webpack_require__(165);
212
205
  var noop_default = /*#__PURE__*/__webpack_require__.n(noop_);
213
206
 
214
207
  // EXTERNAL MODULE: external "lodash/omit"
@@ -216,122 +209,55 @@ var omit_ = __webpack_require__(5);
216
209
  var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
217
210
 
218
211
  // EXTERNAL MODULE: external "lodash/pickBy"
219
- var pickBy_ = __webpack_require__(71);
212
+ var pickBy_ = __webpack_require__(61);
220
213
  var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_);
221
214
 
222
215
  // EXTERNAL MODULE: external "lodash/throttle"
223
216
  var throttle_ = __webpack_require__(31);
224
217
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
225
218
 
226
- // EXTERNAL MODULE: external "@splunk/ui-utils/style"
227
- var style_ = __webpack_require__(40);
228
-
229
- // EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
230
- var EventListener_ = __webpack_require__(17);
231
- var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
232
-
233
- // EXTERNAL MODULE: external "@splunk/themes"
234
- var themes_ = __webpack_require__(0);
235
-
236
219
  // EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
237
- var ControlGroup_ = __webpack_require__(106);
238
-
239
- // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
240
- var i18n_ = __webpack_require__(4);
241
-
242
- // EXTERNAL MODULE: ./src/icons/Search.tsx
243
- var Search = __webpack_require__(39);
244
-
245
- // EXTERNAL MODULE: ./src/icons/CrossMark.tsx
246
- var CrossMark = __webpack_require__(27);
220
+ var ControlGroup_ = __webpack_require__(105);
247
221
 
248
- // CONCATENATED MODULE: ./src/TextArea/syncHeightWithShadow.ts
249
- // This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
250
- // which is MIT-licensed:
251
- //
252
- // The MIT License (MIT)
253
- //
254
- // Copyright (c) 2014 Call-Em-All
255
- //
256
- // Permission is hereby granted, free of charge, to any person obtaining a copy
257
- // of this software and associated documentation files (the "Software"), to deal
258
- // in the Software without restriction, including without limitation the rights
259
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
260
- // copies of the Software, and to permit persons to whom the Software is
261
- // furnished to do so, subject to the following conditions:
262
- //
263
- // The above copyright notice and this permission notice shall be included in all
264
- // copies or substantial portions of the Software.
265
- //
266
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
267
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
268
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
269
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
270
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
271
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
272
- // SOFTWARE.
273
- //
274
- // End of MIT license text.
275
- function syncHeightWithShadow(_ref) {
276
- var height = _ref.height,
277
- rowsMax = _ref.rowsMax,
278
- rowsMin = _ref.rowsMin,
279
- shadow = _ref.shadow;
222
+ // EXTERNAL MODULE: external "@splunk/react-icons/Cross"
223
+ var Cross_ = __webpack_require__(25);
224
+ var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_);
280
225
 
281
- if (shadow) {
282
- var style = window.getComputedStyle(shadow);
283
- var lineHeightValue = style.getPropertyValue('line-height'); // jsdom does not properly inherit/re-calculate the line-height property so we skip in these cases SUI-1943, SUI-2428
226
+ // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Close"
227
+ var Close_ = __webpack_require__(26);
228
+ var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
284
229
 
285
- if (lineHeightValue === 'inherit' || lineHeightValue === 'normal') {
286
- return false;
287
- }
230
+ // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Search"
231
+ var Search_ = __webpack_require__(51);
232
+ var Search_default = /*#__PURE__*/__webpack_require__.n(Search_);
288
233
 
289
- var lineHeight = parseInt(lineHeightValue, 10);
290
- var paddingTop = parseInt(style.getPropertyValue('padding-top'), 10);
291
- var paddingBottom = parseInt(style.getPropertyValue('padding-bottom'), 10);
292
- var borderTop = parseInt(style.getPropertyValue('border-top-width'), 10);
293
- var borderBottom = parseInt(style.getPropertyValue('border-bottom-width'), 10);
294
- var newHeight = shadow.scrollHeight + borderTop + borderBottom;
295
- /* eslint-disable no-restricted-globals */
296
- // Leverage the global `isNaN` here for IE support, rather than Number.isNaN.
297
- // We know newHeight is numeric because we parseInt() above, so `isNaN` should be reliable.
298
-
299
- if (newHeight === undefined || isNaN(newHeight)) {
300
- return false;
301
- }
302
- /* eslint-enable no-restricted-globals */
303
-
304
-
305
- if (rowsMax >= rowsMin) {
306
- var maxHeight = rowsMax * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom + 1; // need one extra.
234
+ // EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
235
+ var EventListener_ = __webpack_require__(15);
236
+ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
307
237
 
308
- newHeight = Math.min(maxHeight, newHeight);
309
- }
238
+ // EXTERNAL MODULE: external "@splunk/react-icons/Magnifier"
239
+ var Magnifier_ = __webpack_require__(46);
240
+ var Magnifier_default = /*#__PURE__*/__webpack_require__.n(Magnifier_);
310
241
 
311
- var minHeight = rowsMin * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom + 1; // need one extra.
312
-
313
- newHeight = Math.max(minHeight, newHeight);
242
+ // EXTERNAL MODULE: external "@splunk/ui-utils/style"
243
+ var style_ = __webpack_require__(37);
314
244
 
315
- if (height !== newHeight) {
316
- return newHeight;
317
- }
318
- }
245
+ // EXTERNAL MODULE: external "@splunk/themes"
246
+ var themes_ = __webpack_require__(0);
319
247
 
320
- return false;
321
- }
322
- // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
323
- var updateReactRef = __webpack_require__(12);
248
+ // EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
249
+ var i18n_ = __webpack_require__(4);
324
250
 
325
251
  // EXTERNAL MODULE: external "styled-components"
326
252
  var external_styled_components_ = __webpack_require__(3);
327
253
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
328
254
 
329
255
  // EXTERNAL MODULE: external "@splunk/react-ui/Box"
330
- var Box_ = __webpack_require__(8);
256
+ var Box_ = __webpack_require__(6);
331
257
  var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
332
258
 
333
259
  // EXTERNAL MODULE: external "@splunk/react-ui/Button"
334
- var Button_ = __webpack_require__(19);
260
+ var Button_ = __webpack_require__(17);
335
261
  var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
336
262
 
337
263
  // CONCATENATED MODULE: ./src/TextArea/TextAreaStyles.ts
@@ -618,6 +544,83 @@ var StyledAdornment = external_styled_components_default.a.div.withConfig({
618
544
  enterprise: Object(external_styled_components_["css"])(["margin-left:-1px;margin-right:-1px;"])
619
545
  }));
620
546
 
547
+ // CONCATENATED MODULE: ./src/TextArea/syncHeightWithShadow.ts
548
+ // This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
549
+ // which is MIT-licensed:
550
+ //
551
+ // The MIT License (MIT)
552
+ //
553
+ // Copyright (c) 2014 Call-Em-All
554
+ //
555
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
556
+ // of this software and associated documentation files (the "Software"), to deal
557
+ // in the Software without restriction, including without limitation the rights
558
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
559
+ // copies of the Software, and to permit persons to whom the Software is
560
+ // furnished to do so, subject to the following conditions:
561
+ //
562
+ // The above copyright notice and this permission notice shall be included in all
563
+ // copies or substantial portions of the Software.
564
+ //
565
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
566
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
567
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
568
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
569
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
570
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
571
+ // SOFTWARE.
572
+ //
573
+ // End of MIT license text.
574
+ function syncHeightWithShadow(_ref) {
575
+ var height = _ref.height,
576
+ rowsMax = _ref.rowsMax,
577
+ rowsMin = _ref.rowsMin,
578
+ shadow = _ref.shadow;
579
+
580
+ if (shadow) {
581
+ var style = window.getComputedStyle(shadow);
582
+ var lineHeightValue = style.getPropertyValue('line-height'); // jsdom does not properly inherit/re-calculate the line-height property so we skip in these cases SUI-1943, SUI-2428
583
+
584
+ if (lineHeightValue === 'inherit' || lineHeightValue === 'normal') {
585
+ return false;
586
+ }
587
+
588
+ var lineHeight = parseInt(lineHeightValue, 10);
589
+ var paddingTop = parseInt(style.getPropertyValue('padding-top'), 10);
590
+ var paddingBottom = parseInt(style.getPropertyValue('padding-bottom'), 10);
591
+ var borderTop = parseInt(style.getPropertyValue('border-top-width'), 10);
592
+ var borderBottom = parseInt(style.getPropertyValue('border-bottom-width'), 10);
593
+ var newHeight = shadow.scrollHeight + borderTop + borderBottom;
594
+ /* eslint-disable no-restricted-globals */
595
+ // Leverage the global `isNaN` here for IE support, rather than Number.isNaN.
596
+ // We know newHeight is numeric because we parseInt() above, so `isNaN` should be reliable.
597
+
598
+ if (newHeight === undefined || isNaN(newHeight)) {
599
+ return false;
600
+ }
601
+ /* eslint-enable no-restricted-globals */
602
+
603
+
604
+ if (rowsMax >= rowsMin) {
605
+ var maxHeight = rowsMax * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom + 1; // need one extra.
606
+
607
+ newHeight = Math.min(maxHeight, newHeight);
608
+ }
609
+
610
+ var minHeight = rowsMin * lineHeight + paddingTop + paddingBottom + borderTop + borderBottom + 1; // need one extra.
611
+
612
+ newHeight = Math.max(minHeight, newHeight);
613
+
614
+ if (height !== newHeight) {
615
+ return newHeight;
616
+ }
617
+ }
618
+
619
+ return false;
620
+ }
621
+ // EXTERNAL MODULE: ./src/utils/updateReactRef.ts
622
+ var updateReactRef = __webpack_require__(11);
623
+
621
624
  // CONCATENATED MODULE: ./src/TextArea/TextArea.tsx
622
625
  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); }
623
626
 
@@ -682,6 +685,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
682
685
 
683
686
 
684
687
 
688
+
689
+
685
690
 
686
691
 
687
692
  /** @public */
@@ -903,7 +908,10 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
903
908
  disabled = _this$props8.disabled,
904
909
  canClear = _this$props8.canClear,
905
910
  splunkTheme = _this$props8.splunkTheme;
906
- var isPrisma = splunkTheme.isPrisma;
911
+ var isPrisma = splunkTheme.isPrisma,
912
+ isEnterprise = splunkTheme.isEnterprise,
913
+ isCompact = splunkTheme.isCompact;
914
+ var prismaSize = isCompact ? '20px' : '24px';
907
915
  var adornmentProps = {
908
916
  ref: function ref(el) {
909
917
  _this.endAdornment = el;
@@ -922,19 +930,24 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
922
930
 
923
931
  if (!isPrisma && appearance === 'search') {
924
932
  return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default.a.createElement(StyledClearButton, {
925
- appearance: isPrisma ? 'secondary' : 'pill',
933
+ appearance: "pill",
926
934
  "data-test": "clear",
927
935
  inline: false,
928
- icon: /*#__PURE__*/external_react_default.a.createElement(CrossMark["a" /* default */], {
929
- enterpriseSize: 1,
936
+ icon: /*#__PURE__*/external_react_default.a.createElement(Close_default.a, {
937
+ size: 1,
930
938
  screenReaderText: clearButtonText
931
939
  }),
932
940
  onClick: _this.handleClear
933
941
  }), /*#__PURE__*/external_react_default.a.createElement(StyledSearchIconWrapper, {
934
942
  $disabled: disabled
935
- }, /*#__PURE__*/external_react_default.a.createElement(Search["a" /* default */], {
936
- enterpriseSize: "16px",
937
- inline: false
943
+ }, isEnterprise ? /*#__PURE__*/external_react_default.a.createElement(Search_default.a, {
944
+ hideDefaultTooltip: true,
945
+ inline: false,
946
+ screenReaderText: null,
947
+ size: "16px"
948
+ }) : /*#__PURE__*/external_react_default.a.createElement(Magnifier_default.a, {
949
+ height: prismaSize,
950
+ width: prismaSize
938
951
  })));
939
952
  }
940
953
 
@@ -943,12 +956,13 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
943
956
  if (!!displayValue && (isPrisma && appearance === 'search' || canClear)) {
944
957
  return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, !disabled && /*#__PURE__*/external_react_default.a.createElement(StyledClearButton, {
945
958
  "data-test": "clear",
946
- appearance: isPrisma ? 'secondary' : 'pill',
959
+ appearance: "secondary",
947
960
  onClick: _this.handleClear,
948
- icon: /*#__PURE__*/external_react_default.a.createElement(CrossMark["a" /* default */], {
961
+ icon: /*#__PURE__*/external_react_default.a.createElement(Cross_default.a, {
962
+ "aria-label": clearButtonText,
949
963
  inline: false,
950
- enterpriseSize: 1,
951
- screenReaderText: clearButtonText
964
+ width: prismaSize,
965
+ height: prismaSize
952
966
  })
953
967
  }));
954
968
  }
@@ -962,7 +976,9 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
962
976
  startAdornment = _this$props9.startAdornment,
963
977
  splunkTheme = _this$props9.splunkTheme,
964
978
  disabled = _this$props9.disabled;
965
- var isPrisma = splunkTheme.isPrisma;
979
+ var isPrisma = splunkTheme.isPrisma,
980
+ isCompact = splunkTheme.isCompact;
981
+ var prismaSize = isCompact ? '20px' : '24px';
966
982
  var adornmentProps = {
967
983
  ref: function ref(el) {
968
984
  _this.startAdornment = el;
@@ -978,10 +994,10 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
978
994
  if (isPrisma && appearance === 'search') {
979
995
  return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default.a.createElement(StyledSearchIconWrapper, {
980
996
  $disabled: disabled
981
- }, /*#__PURE__*/external_react_default.a.createElement(Search["a" /* default */], {
982
- enterpriseSize: "16px",
983
- inline: false,
984
- screenReaderText: "Search"
997
+ }, /*#__PURE__*/external_react_default.a.createElement(Magnifier_default.a, {
998
+ "aria-label": "Search",
999
+ height: prismaSize,
1000
+ width: prismaSize
985
1001
  })));
986
1002
  }
987
1003
 
@@ -1002,6 +1018,8 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
1002
1018
 
1003
1019
  if (false) {}
1004
1020
 
1021
+ if (false) {}
1022
+
1005
1023
  TextArea.validateRows(props);
1006
1024
  _this.handleResize = throttle_default()(_this.handleResize, 100);
1007
1025
  return _this;
@@ -1217,60 +1235,17 @@ TextAreaWithTheme.componentType = TextArea_TextArea.componentType;
1217
1235
 
1218
1236
  /***/ }),
1219
1237
 
1220
- /***/ 27:
1221
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1222
-
1223
- "use strict";
1224
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
1225
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1226
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1227
- /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29);
1228
- /* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
1229
- /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1230
- /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
1231
- 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); }
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
- function Prisma24(_ref) {
1239
- var otherProps = _extends({}, _ref);
1240
-
1241
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], _extends({
1242
- viewBox: "0 0 24 24"
1243
- }, otherProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
1244
- d: "M6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.2929 17.2929C4.90238 17.6834 4.90238 18.3166 5.2929 18.7071C5.68342 19.0976 6.31659 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289Z",
1245
- fill: "currentColor"
1246
- }));
1247
- }
1248
-
1249
- function Prisma16(_ref2) {
1250
- var otherProps = _extends({}, _ref2);
1251
-
1252
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], _extends({
1253
- viewBox: "0 0 16 16"
1254
- }, otherProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
1255
- d: "M12.2024 2.69009C12.5092 2.38325 13.0067 2.38325 13.3136 2.69009C13.6204 2.99693 13.6204 3.49442 13.3136 3.80126L9.11721 7.99762L13.3114 12.1918C13.6206 12.501 13.6206 13.0023 13.3114 13.3114C13.0023 13.6206 12.501 13.6206 12.1918 13.3114L7.99762 9.11721L3.885 13.2298C3.57816 13.5367 3.08067 13.5367 2.77383 13.2298C2.46699 12.923 2.46699 12.4255 2.77383 12.1187L6.88645 8.00604L2.69183 3.81142C2.38267 3.50226 2.38267 3.001 2.69183 2.69183C3.001 2.38267 3.50226 2.38267 3.81142 2.69183L8.00604 6.88646L12.2024 2.69009Z",
1256
- fill: "currentColor"
1257
- }));
1258
- }
1238
+ /***/ 25:
1239
+ /***/ (function(module, exports) {
1259
1240
 
1260
- function CrossMark(props) {
1261
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ThemedIcon__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], _extends({
1262
- Enterprise: _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default.a,
1263
- Prisma16: Prisma16,
1264
- Prisma24: Prisma24
1265
- }, props));
1266
- }
1241
+ module.exports = require("@splunk/react-icons/Cross");
1267
1242
 
1268
1243
  /***/ }),
1269
1244
 
1270
- /***/ 29:
1245
+ /***/ 26:
1271
1246
  /***/ (function(module, exports) {
1272
1247
 
1273
- module.exports = require("@splunk/react-icons/Close");
1248
+ module.exports = require("@splunk/react-icons/enterprise/Close");
1274
1249
 
1275
1250
  /***/ }),
1276
1251
 
@@ -1288,53 +1263,10 @@ module.exports = require("lodash/throttle");
1288
1263
 
1289
1264
  /***/ }),
1290
1265
 
1291
- /***/ 39:
1292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1293
-
1294
- "use strict";
1295
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
1296
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1297
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1298
- /* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56);
1299
- /* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
1300
- /* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1301
- /* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
1302
- 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); }
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
- function Prisma24(_ref) {
1310
- var otherProps = _extends({}, _ref);
1311
-
1312
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], _extends({
1313
- viewBox: "0 0 24 24"
1314
- }, otherProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
1315
- d: "M10.5,3.0015 C14.6421,3.0015 18,6.3593 18,10.5015 C18,12.2112 17.4279,13.7873 16.4647,15.0489 L20.7077,19.292 C21.0983,19.6825 21.0983,20.3156 20.7077,20.7062 C20.3172,21.0967 19.6841,21.0967 19.2935,20.7062 L15.0509,16.4635 C13.7888,17.4283 12.2113,18.0015 10.5,18.0015 C6.3579,18.0015 3,14.6436 3,10.5015 C3,6.3593 6.3579,3.0015 10.5,3.0015 Z M10.5,5.0015 C7.4624,5.0015 5,7.4639 5,10.5015 C5,13.539 7.4624,16.0015 10.5,16.0015 C13.5376,16.0015 16,13.539 16,10.5015 C16,7.4639 13.5376,5.0015 10.5,5.0015 Z",
1316
- fill: "currentColor"
1317
- }));
1318
- }
1319
-
1320
- function Prisma16(_ref2) {
1321
- var otherProps = _extends({}, _ref2);
1322
-
1323
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"], _extends({
1324
- viewBox: "0 0 16 16"
1325
- }, otherProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
1326
- d: "M6.85277,2.0015 C9.53288,2.0015 11.7055,4.1741 11.7055,6.8542 C11.7055,7.8463 11.4079,8.7688 10.897,9.5373 L10.9245,9.5098 L14.0018,12.5871 L12.5876,14.0014 L9.51025,10.924 L9.53587,10.8984 C8.76733,11.4093 7.84481,11.707 6.85277,11.707 C4.17266,11.707 2,9.5343 2,6.8542 C2,4.1741 4.17266,2.0015 6.85277,2.0015 Z M6.85277,4.0015 C5.27723,4.0015 4,5.2787 4,6.8542 C4,8.4298 5.27723,9.707 6.85277,9.707 C8.42831,9.707 9.70554,8.4298 9.70554,6.8542 C9.70554,5.2787 8.42831,4.0015 6.85277,4.0015 Z",
1327
- fill: "currentColor"
1328
- }));
1329
- }
1266
+ /***/ 37:
1267
+ /***/ (function(module, exports) {
1330
1268
 
1331
- function Search(props) {
1332
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ThemedIcon__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], _extends({
1333
- Enterprise: _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default.a,
1334
- Prisma16: Prisma16,
1335
- Prisma24: Prisma24
1336
- }, props));
1337
- }
1269
+ module.exports = require("@splunk/ui-utils/style");
1338
1270
 
1339
1271
  /***/ }),
1340
1272
 
@@ -1345,10 +1277,10 @@ module.exports = require("@splunk/ui-utils/i18n");
1345
1277
 
1346
1278
  /***/ }),
1347
1279
 
1348
- /***/ 40:
1280
+ /***/ 46:
1349
1281
  /***/ (function(module, exports) {
1350
1282
 
1351
- module.exports = require("@splunk/ui-utils/style");
1283
+ module.exports = require("@splunk/react-icons/Magnifier");
1352
1284
 
1353
1285
  /***/ }),
1354
1286
 
@@ -1359,174 +1291,38 @@ module.exports = require("lodash/omit");
1359
1291
 
1360
1292
  /***/ }),
1361
1293
 
1362
- /***/ 55:
1294
+ /***/ 51:
1363
1295
  /***/ (function(module, exports) {
1364
1296
 
1365
- module.exports = require("lodash/defer");
1297
+ module.exports = require("@splunk/react-icons/enterprise/Search");
1366
1298
 
1367
1299
  /***/ }),
1368
1300
 
1369
- /***/ 56:
1301
+ /***/ 55:
1370
1302
  /***/ (function(module, exports) {
1371
1303
 
1372
- module.exports = require("@splunk/react-icons/Search");
1304
+ module.exports = require("lodash/defer");
1373
1305
 
1374
1306
  /***/ }),
1375
1307
 
1376
1308
  /***/ 6:
1377
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1378
-
1379
- "use strict";
1380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SVG; });
1381
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1382
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1383
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
1384
- /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_1__);
1385
- 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); }
1386
-
1387
-
1388
-
1389
- var Styled = styled_components__WEBPACK_IMPORTED_MODULE_1___default.a.svg.withConfig({
1390
- displayName: "SVG__Styled",
1391
- componentId: "sc-1bz0ryh-0"
1392
- })(["flex:0 0 auto;"]);
1393
- function SVG(props) {
1394
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Styled, _extends({
1395
- xmlns: "http://www.w3.org/2000/svg"
1396
- }, props));
1397
- }
1398
-
1399
- /***/ }),
1400
-
1401
- /***/ 7:
1402
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1403
-
1404
- "use strict";
1405
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Icon; });
1406
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1407
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1408
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
1409
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
1410
- /* harmony import */ var _splunk_themes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
1411
- /* harmony import */ var _splunk_themes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_themes__WEBPACK_IMPORTED_MODULE_2__);
1412
- 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; }
1413
-
1414
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1415
-
1416
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1417
-
1418
- 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); }
1419
-
1420
- 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; }
1421
-
1422
- 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; }
1423
-
1424
-
1425
-
1426
-
1427
- var inlineStyles = {
1428
- display: 'inline-block',
1429
- flex: '0 0 auto',
1430
- overflow: 'visible',
1431
- verticalAlign: 'middle'
1432
- };
1433
- var blockStyles = {
1434
- display: 'block',
1435
- flex: '0 0 auto',
1436
- margin: '0 auto',
1437
- overflow: 'visible'
1438
- };
1439
- var propTypes = {
1440
- Enterprise: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
1441
- enterpriseSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
1442
- enterpriseWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
1443
- enterpriseHeight: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.number, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
1444
- Prisma24: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func.isRequired,
1445
- Prisma20: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
1446
- Prisma16: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.func,
1447
- prismaSize: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['medium', 'small']),
1448
- inline: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
1449
- screenReaderText: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string
1450
- };
1451
- var defaultProps = {
1452
- inline: true,
1453
- prismaSize: 'medium'
1454
- };
1455
- function Icon(_ref) {
1456
- var Enterprise = _ref.Enterprise,
1457
- Prisma24 = _ref.Prisma24,
1458
- Prisma20 = _ref.Prisma20,
1459
- Prisma16 = _ref.Prisma16,
1460
- prismaSize = _ref.prismaSize,
1461
- inline = _ref.inline,
1462
- enterpriseSize = _ref.enterpriseSize,
1463
- enterpriseWidth = _ref.enterpriseWidth,
1464
- enterpriseHeight = _ref.enterpriseHeight,
1465
- screenReaderText = _ref.screenReaderText,
1466
- otherProps = _objectWithoutProperties(_ref, ["Enterprise", "Prisma24", "Prisma20", "Prisma16", "prismaSize", "inline", "enterpriseSize", "enterpriseWidth", "enterpriseHeight", "screenReaderText"]);
1467
-
1468
- var _useSplunkTheme = Object(_splunk_themes__WEBPACK_IMPORTED_MODULE_2__["useSplunkTheme"])(),
1469
- family = _useSplunkTheme.family,
1470
- density = _useSplunkTheme.density; // Enterprise - all variants
1471
-
1472
-
1473
- if (family === 'enterprise') {
1474
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Enterprise, _extends({
1475
- size: enterpriseSize,
1476
- width: enterpriseWidth,
1477
- height: enterpriseHeight,
1478
- screenReaderText: screenReaderText || null,
1479
- hideDefaultTooltip: true,
1480
- inline: inline
1481
- }, otherProps));
1482
- }
1483
-
1484
- var prismaProps = _objectSpread({
1485
- 'aria-label': screenReaderText,
1486
- style: inline ? inlineStyles : blockStyles
1487
- }, otherProps); // Prisma - small+compact, small+comfortable
1488
-
1489
-
1490
- if (prismaSize === 'small') {
1491
- var SVG = Prisma16 || Prisma24;
1492
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SVG, _extends({
1493
- width: "16",
1494
- height: "16"
1495
- }, prismaProps));
1496
- } // Prisma - medium+compact
1497
-
1498
-
1499
- if (density === 'compact') {
1500
- var _SVG = Prisma20 || Prisma24;
1501
-
1502
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_SVG, _extends({
1503
- width: "20",
1504
- height: "20"
1505
- }, prismaProps));
1506
- } // Prisma - medium+comfortable
1507
-
1309
+ /***/ (function(module, exports) {
1508
1310
 
1509
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Prisma24, _extends({
1510
- width: "24",
1511
- height: "24"
1512
- }, prismaProps));
1513
- }
1514
- Icon.propTypes = propTypes;
1515
- Icon.defaultProps = defaultProps;
1311
+ module.exports = require("@splunk/react-ui/Box");
1516
1312
 
1517
1313
  /***/ }),
1518
1314
 
1519
- /***/ 71:
1315
+ /***/ 61:
1520
1316
  /***/ (function(module, exports) {
1521
1317
 
1522
1318
  module.exports = require("lodash/pickBy");
1523
1319
 
1524
1320
  /***/ }),
1525
1321
 
1526
- /***/ 8:
1322
+ /***/ 9:
1527
1323
  /***/ (function(module, exports) {
1528
1324
 
1529
- module.exports = require("@splunk/react-ui/Box");
1325
+ module.exports = require("lodash/keys");
1530
1326
 
1531
1327
  /***/ })
1532
1328