@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/Monogram.js CHANGED
@@ -1,155 +1,78 @@
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
+ /******/ }
18
28
  /******/ };
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 = 226);
86
- /******/ })
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
+ /******/
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
- /***/ 12:
105
- /***/ (function(module, exports) {
106
-
107
- module.exports = require("@splunk/react-ui/Clickable");
108
-
109
- /***/ }),
110
-
111
- /***/ 2:
112
- /***/ (function(module, exports) {
113
-
114
- module.exports = require("react");
115
-
116
- /***/ }),
117
-
118
- /***/ 226:
119
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
-
121
- "use strict";
48
+ var __webpack_exports__ = {};
122
49
  // ESM COMPAT FLAG
123
50
  __webpack_require__.r(__webpack_exports__);
124
51
 
125
52
  // EXPORTS
126
- __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ Monogram_Monogram; });
127
- __webpack_require__.d(__webpack_exports__, "getInitials", function() { return /* reexport */ getInitials; });
128
-
129
- // EXTERNAL MODULE: external "react"
130
- var external_react_ = __webpack_require__(2);
131
- var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
132
-
133
- // EXTERNAL MODULE: external "prop-types"
134
- var external_prop_types_ = __webpack_require__(1);
135
- var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
136
-
137
- // EXTERNAL MODULE: external "lodash/omit"
138
- var omit_ = __webpack_require__(5);
139
- var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
140
-
141
- // EXTERNAL MODULE: external "styled-components"
142
- var external_styled_components_ = __webpack_require__(3);
143
- var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
144
-
145
- // EXTERNAL MODULE: external "@splunk/react-ui/Clickable"
146
- var Clickable_ = __webpack_require__(12);
147
- var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_);
148
-
149
- // EXTERNAL MODULE: external "@splunk/themes"
150
- var themes_ = __webpack_require__(0);
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* reexport */ Monogram_Monogram),
55
+ getInitials: () => (/* reexport */ getInitials)
56
+ });
151
57
 
152
- // CONCATENATED MODULE: ./src/Monogram/MonogramStyles.ts
58
+ ;// CONCATENATED MODULE: external "react"
59
+ const external_react_namespaceObject = require("react");
60
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
61
+ ;// CONCATENATED MODULE: external "prop-types"
62
+ const external_prop_types_namespaceObject = require("prop-types");
63
+ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
64
+ ;// CONCATENATED MODULE: external "lodash/omit"
65
+ const omit_namespaceObject = require("lodash/omit");
66
+ var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
67
+ ;// CONCATENATED MODULE: external "styled-components"
68
+ const external_styled_components_namespaceObject = require("styled-components");
69
+ var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
70
+ ;// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
71
+ const Clickable_namespaceObject = require("@splunk/react-ui/Clickable");
72
+ var Clickable_default = /*#__PURE__*/__webpack_require__.n(Clickable_namespaceObject);
73
+ ;// CONCATENATED MODULE: external "@splunk/themes"
74
+ const themes_namespaceObject = require("@splunk/themes");
75
+ ;// CONCATENATED MODULE: ./src/Monogram/MonogramStyles.ts
153
76
 
154
77
 
155
78
  // Thanks: https://gist.github.com/hyamamoto/fd435505d29ebfa3d9716fd2be8d42f0
@@ -165,22 +88,22 @@ var hashCode = function hashCode(input) {
165
88
  };
166
89
 
167
90
  var backgroundColors = ['#006d9c', '#ec9960', '#af575a', '#62b3b2', '#4fa484', '#f8be34', '#5a4575', '#708794', '#294e70', '#b6c75a', '#5cc05c', '#007abd', '#dc4e41', '#f1813f', '#f8be34', '#53a051', '#006d9c', '#77d6d8', '#f589ad', '#6a2c5d'];
168
- var Styled = external_styled_components_default.a.div.withConfig({
91
+ var Styled = external_styled_components_default().div.withConfig({
169
92
  displayName: "MonogramStyles__Styled",
170
93
  componentId: "r5ud6k-0"
171
- })(["", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", ";& + &{margin-left:4px;}"], themes_["mixins"].reset('inline-flex'), Object(themes_["pick"])({
172
- prisma: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].contentColorActive)
94
+ })(["", ";align-items:center;justify-content:center;border-radius:50%;font-weight:normal;", " background-color:", ";", ";& + &{margin-left:4px;}"], themes_namespaceObject.mixins.reset('inline-flex'), (0,themes_namespaceObject.pick)({
95
+ prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorActive)
173
96
  }), function (_ref) {
174
97
  var $backgroundColor = _ref.$backgroundColor,
175
98
  $initials = _ref.$initials;
176
99
 
177
100
  if ($backgroundColor === 'theme') {
178
- return Object(themes_["pick"])({
101
+ return (0,themes_namespaceObject.pick)({
179
102
  enterprise: {
180
- dark: themes_["variables"].gray45,
181
- light: themes_["variables"].gray92
103
+ dark: themes_namespaceObject.variables.gray45,
104
+ light: themes_namespaceObject.variables.gray92
182
105
  },
183
- prisma: themes_["variables"].neutral100
106
+ prisma: themes_namespaceObject.variables.neutral100
184
107
  });
185
108
  }
186
109
 
@@ -193,43 +116,43 @@ var Styled = external_styled_components_default.a.div.withConfig({
193
116
  var $size = _ref2.$size;
194
117
 
195
118
  if (typeof $size === 'number') {
196
- return Object(external_styled_components_["css"])(["height:", "px;width:", "px;"], $size, $size);
119
+ return (0,external_styled_components_namespaceObject.css)(["height:", "px;width:", "px;"], $size, $size);
197
120
  }
198
121
 
199
122
  if (typeof $size === 'string') {
200
- return Object(themes_["pickVariant"])('$size', {
201
- small: Object(external_styled_components_["css"])(["font-size:", ";", ""], themes_["variables"].fontSize, Object(themes_["pick"])({
202
- enterprise: Object(external_styled_components_["css"])(["height:32px;width:32px;"]),
203
- prisma: Object(external_styled_components_["css"])(["height:24px;width:24px;"])
123
+ return (0,themes_namespaceObject.pickVariant)('$size', {
124
+ small: (0,external_styled_components_namespaceObject.css)(["font-size:", ";", ""], themes_namespaceObject.variables.fontSize, (0,themes_namespaceObject.pick)({
125
+ enterprise: (0,external_styled_components_namespaceObject.css)(["height:32px;width:32px;"]),
126
+ prisma: (0,external_styled_components_namespaceObject.css)(["height:24px;width:24px;"])
204
127
  })),
205
- medium: Object(external_styled_components_["css"])(["height:48px;width:48px;font-size:", ";"], themes_["variables"].fontSize),
206
- large: Object(external_styled_components_["css"])(["height:80px;width:80px;font-size:", ";"], themes_["variables"].fontSizeXXLarge),
207
- xlarge: Object(external_styled_components_["css"])(["width:144px;height:144px;font-size:36px;font-weight:700;"])
128
+ medium: (0,external_styled_components_namespaceObject.css)(["height:48px;width:48px;font-size:", ";"], themes_namespaceObject.variables.fontSize),
129
+ large: (0,external_styled_components_namespaceObject.css)(["height:80px;width:80px;font-size:", ";"], themes_namespaceObject.variables.fontSizeXXLarge),
130
+ xlarge: (0,external_styled_components_namespaceObject.css)(["width:144px;height:144px;font-size:36px;font-weight:700;"])
208
131
  });
209
132
  }
210
133
 
211
- return Object(external_styled_components_["css"])(["height:48px;width:48px;font-size:", ";"], themes_["variables"].fontSize);
134
+ return (0,external_styled_components_namespaceObject.css)(["height:48px;width:48px;font-size:", ";"], themes_namespaceObject.variables.fontSize);
212
135
  });
213
- var StyledClickableComponent = Styled.withComponent(Clickable_default.a);
136
+ var StyledClickableComponent = Styled.withComponent((Clickable_default()));
214
137
  var StyledClickable = external_styled_components_default()(StyledClickableComponent).withConfig({
215
138
  displayName: "MonogramStyles__StyledClickable",
216
139
  componentId: "r5ud6k-1"
217
- })(["cursor:pointer;position:relative;:focus,:hover{", "}:focus{box-shadow:", ";z-index:1;}:active{", "}"], Object(themes_["pick"])({
218
- enterprise: Object(external_styled_components_["css"])(["box-shadow:", ";"], themes_["variables"].focusShadowInset),
219
- prisma: Object(external_styled_components_["css"])(["border:1px solid transparent;background-color:", ";"], themes_["variables"].neutral200)
220
- }), Object(themes_["pick"])({
221
- enterprise: themes_["variables"].focusShadowInset,
222
- prisma: themes_["variables"].focusShadow
223
- }), Object(themes_["pick"])({
224
- enterprise: Object(external_styled_components_["css"])(["opacity:0.85;"]),
225
- prisma: Object(external_styled_components_["css"])(["border:1px solid transparent;background-color:", ";opacity:1;"], themes_["variables"].neutral200)
140
+ })(["cursor:pointer;position:relative;:focus,:hover{", "}:focus{box-shadow:", ";z-index:1;}:active{", "}"], (0,themes_namespaceObject.pick)({
141
+ enterprise: (0,external_styled_components_namespaceObject.css)(["box-shadow:", ";"], themes_namespaceObject.variables.focusShadowInset),
142
+ prisma: (0,external_styled_components_namespaceObject.css)(["border:1px solid transparent;background-color:", ";"], themes_namespaceObject.variables.neutral200)
143
+ }), (0,themes_namespaceObject.pick)({
144
+ enterprise: themes_namespaceObject.variables.focusShadowInset,
145
+ prisma: themes_namespaceObject.variables.focusShadow
146
+ }), (0,themes_namespaceObject.pick)({
147
+ enterprise: (0,external_styled_components_namespaceObject.css)(["opacity:0.85;"]),
148
+ prisma: (0,external_styled_components_namespaceObject.css)(["border:1px solid transparent;background-color:", ";opacity:1;"], themes_namespaceObject.variables.neutral200)
226
149
  }));
227
- var Initials = external_styled_components_default.a.span.withConfig({
150
+ var Initials = external_styled_components_default().span.withConfig({
228
151
  displayName: "MonogramStyles__Initials",
229
152
  componentId: "r5ud6k-2"
230
153
  })(["opacity:0.8;text-transform:capitalize;"]);
231
154
 
232
- // CONCATENATED MODULE: ./src/Monogram/Monogram.tsx
155
+ ;// CONCATENATED MODULE: ./src/Monogram/Monogram.tsx
233
156
  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); }
234
157
 
235
158
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -253,12 +176,12 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
253
176
 
254
177
 
255
178
  var propTypes = {
256
- backgroundColor: external_prop_types_default.a.string,
257
- elementRef: external_prop_types_default.a.oneOfType([external_prop_types_default.a.func, external_prop_types_default.a.object]),
258
- initials: external_prop_types_default.a.string.isRequired,
259
- name: external_prop_types_default.a.string,
260
- onClick: external_prop_types_default.a.func,
261
- size: external_prop_types_default.a.oneOfType([external_prop_types_default.a.oneOf(['small', 'medium', 'large', 'xlarge']), external_prop_types_default.a.number])
179
+ backgroundColor: (external_prop_types_default()).string,
180
+ elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
181
+ initials: (external_prop_types_default()).string.isRequired,
182
+ name: (external_prop_types_default()).string,
183
+ onClick: (external_prop_types_default()).func,
184
+ size: external_prop_types_default().oneOfType([external_prop_types_default().oneOf(['small', 'medium', 'large', 'xlarge']), (external_prop_types_default()).number])
262
185
  };
263
186
  var defaultProps = {
264
187
  backgroundColor: 'theme',
@@ -311,12 +234,12 @@ function MonogramInteractive(props) {
311
234
  onClick = ownProps.onClick,
312
235
  otherProps = _objectWithoutProperties(ownProps, ["children", "elementRef", "name", "onClick"]);
313
236
 
314
- var handleClick = Object(external_react_["useCallback"])(function (e) {
237
+ var handleClick = (0,external_react_namespaceObject.useCallback)(function (e) {
315
238
  onClick(e, {
316
239
  name: name
317
240
  });
318
241
  }, [onClick, name]);
319
- return /*#__PURE__*/external_react_default.a.createElement(StyledClickable, _extends({
242
+ return /*#__PURE__*/external_react_default().createElement(StyledClickable, _extends({
320
243
  elementRef: elementRef,
321
244
  onClick: handleClick
322
245
  }, sharedProps, omit_default()(otherProps, Object.keys(propTypes))), children);
@@ -332,7 +255,7 @@ function MonogramNonInteractive(props) {
332
255
  elementRef = ownProps.elementRef,
333
256
  otherProps = _objectWithoutProperties(ownProps, ["children", "elementRef"]);
334
257
 
335
- return /*#__PURE__*/external_react_default.a.createElement(Styled, _extends({
258
+ return /*#__PURE__*/external_react_default().createElement(Styled, _extends({
336
259
  ref: elementRef
337
260
  }, sharedProps, omit_default()(otherProps, Object.keys(propTypes))), children);
338
261
  }
@@ -341,34 +264,19 @@ function Monogram(props) {
341
264
  // @docs-props-type MonogramPropsBase
342
265
  if (false) {}
343
266
 
344
- var children = /*#__PURE__*/external_react_default.a.createElement(Initials, {
267
+ var children = /*#__PURE__*/external_react_default().createElement(Initials, {
345
268
  "data-test": "initials"
346
269
  }, props.initials);
347
- return isInteractive(props) ? /*#__PURE__*/external_react_default.a.createElement(MonogramInteractive, props, children) : /*#__PURE__*/external_react_default.a.createElement(MonogramNonInteractive, props, children);
270
+ return isInteractive(props) ? /*#__PURE__*/external_react_default().createElement(MonogramInteractive, props, children) : /*#__PURE__*/external_react_default().createElement(MonogramNonInteractive, props, children);
348
271
  }
349
272
 
350
273
  Monogram.propTypes = propTypes;
351
274
  Monogram.defaultProps = defaultProps;
352
- /* harmony default export */ var Monogram_Monogram = (Monogram);
353
-
354
- // CONCATENATED MODULE: ./src/Monogram/index.ts
355
-
356
-
357
-
358
- /***/ }),
359
-
360
- /***/ 3:
361
- /***/ (function(module, exports) {
362
-
363
- module.exports = require("styled-components");
364
-
365
- /***/ }),
366
-
367
- /***/ 5:
368
- /***/ (function(module, exports) {
275
+ /* harmony default export */ const Monogram_Monogram = (Monogram);
369
276
 
370
- module.exports = require("lodash/omit");
277
+ ;// CONCATENATED MODULE: ./src/Monogram/index.ts
371
278
 
372
- /***/ })
373
279
 
374
- /******/ });
280
+ module.exports = __webpack_exports__;
281
+ /******/ })()
282
+ ;