@splunk/react-ui 4.38.0 → 4.40.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 (172) hide show
  1. package/Accordion.js +131 -153
  2. package/Anchor.js +50 -58
  3. package/Animation.js +64 -59
  4. package/AnimationToggle.js +59 -61
  5. package/Box.js +59 -67
  6. package/Breadcrumbs.js +113 -127
  7. package/Button.js +151 -169
  8. package/ButtonGroup.js +41 -49
  9. package/ButtonSimple.js +264 -295
  10. package/CHANGELOG.md +49 -0
  11. package/Calendar.js +353 -414
  12. package/Card.js +186 -244
  13. package/CardLayout.js +86 -83
  14. package/Chip.js +136 -146
  15. package/Clickable.js +180 -198
  16. package/CloseButton.js +52 -60
  17. package/Code.js +24 -31
  18. package/CollapsiblePanel.js +172 -202
  19. package/Color.js +371 -412
  20. package/ColumnLayout.js +72 -96
  21. package/ComboBox.js +266 -303
  22. package/Concertina.js +406 -454
  23. package/ControlGroup.js +178 -210
  24. package/Date.js +116 -131
  25. package/DefinitionList.js +125 -149
  26. package/Divider.js +81 -79
  27. package/Dropdown.js +226 -237
  28. package/DualListbox.js +150 -186
  29. package/EventListener.js +4 -1
  30. package/File.js +1032 -955
  31. package/FormRows.js +281 -334
  32. package/Heading.js +27 -35
  33. package/Image.js +101 -116
  34. package/JSONTree.js +301 -344
  35. package/Layer.js +118 -126
  36. package/Link.js +141 -159
  37. package/List.js +61 -77
  38. package/MIGRATION.mdx +123 -38
  39. package/Markdown.js +288 -347
  40. package/Menu.js +506 -532
  41. package/Message.js +197 -207
  42. package/MessageBar.js +58 -66
  43. package/Modal.js +241 -290
  44. package/ModalLayer.js +130 -148
  45. package/Monogram.js +138 -138
  46. package/Multiselect.js +3137 -3433
  47. package/Number.js +164 -178
  48. package/Paginator.js +296 -335
  49. package/Paragraph.js +24 -32
  50. package/Popover.js +450 -442
  51. package/Progress.js +65 -75
  52. package/RadioBar.js +301 -303
  53. package/RadioList.js +77 -119
  54. package/Resize.js +105 -127
  55. package/ResultsMenu.js +373 -385
  56. package/ScreenReaderContent.js +50 -58
  57. package/Scroll.js +209 -244
  58. package/Search.js +379 -391
  59. package/Select.js +2085 -2345
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +132 -145
  62. package/SlidingPanels.js +238 -270
  63. package/SplitButton.d.ts +2 -0
  64. package/SplitButton.js +222 -245
  65. package/StaticContent.js +68 -76
  66. package/StepBar.js +206 -205
  67. package/Switch.js +176 -205
  68. package/TabBar.js +235 -268
  69. package/TabLayout.js +122 -141
  70. package/Table.js +2103 -2261
  71. package/Text.js +379 -493
  72. package/TextArea.js +411 -441
  73. package/Tooltip.js +116 -132
  74. package/TransitionOpen.js +160 -178
  75. package/Tree.js +268 -287
  76. package/Typography.js +48 -52
  77. package/WaitSpinner.js +61 -69
  78. package/cypress/support/commands.ts +9 -0
  79. package/cypress/support/index.d.ts +6 -0
  80. package/cypress/tsconfig.cypress.json +1 -0
  81. package/docker-compose.yml +0 -1
  82. package/package.json +15 -15
  83. package/types/src/Button/Button.d.ts +5 -1
  84. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
  85. package/types/src/Card/Card.d.ts +1 -0
  86. package/types/src/Card/Footer.d.ts +1 -0
  87. package/types/src/Chip/Chip.d.ts +3 -6
  88. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
  89. package/types/src/Color/Color.d.ts +2 -2
  90. package/types/src/Color/Palette.d.ts +4 -2
  91. package/types/src/ComboBox/ComboBox.d.ts +1 -1
  92. package/types/src/ComboBox/Option.d.ts +1 -1
  93. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  94. package/types/src/Date/Date.d.ts +2 -2
  95. package/types/src/File/File.d.ts +2 -3
  96. package/types/src/File/Retry.d.ts +1 -2
  97. package/types/src/Menu/Item.d.ts +18 -5
  98. package/types/src/Menu/Menu.d.ts +3 -3
  99. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  100. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  101. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  102. package/types/src/Multiselect/Compact.d.ts +1 -1
  103. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  104. package/types/src/Multiselect/Normal.d.ts +1 -1
  105. package/types/src/Multiselect/Option.d.ts +2 -0
  106. package/types/src/Number/Number.d.ts +3 -3
  107. package/types/src/Popover/Popover.d.ts +3 -4
  108. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  109. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  110. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  111. package/types/src/Search/Option.d.ts +9 -3
  112. package/types/src/Select/Option.d.ts +3 -1
  113. package/types/src/Select/OptionBase.d.ts +7 -5
  114. package/types/src/Select/Select.d.ts +4 -2
  115. package/types/src/Select/SelectAllOption.d.ts +4 -4
  116. package/types/src/Select/SelectBase.d.ts +104 -66
  117. package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
  118. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  119. package/types/src/Slider/Slider.d.ts +2 -2
  120. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  121. package/types/src/StepBar/Step.d.ts +1 -2
  122. package/types/src/Switch/Switch.d.ts +0 -1
  123. package/types/src/TabBar/Tab.d.ts +1 -1
  124. package/types/src/TabBar/TabBar.d.ts +3 -1
  125. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  126. package/types/src/Table/Cell.d.ts +0 -2
  127. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  128. package/types/src/Table/HeadInner.d.ts +5 -1
  129. package/types/src/Table/Table.d.ts +0 -1
  130. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  131. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  132. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  133. package/types/src/Text/Text.d.ts +2 -2
  134. package/types/src/TextArea/TextArea.d.ts +2 -2
  135. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  136. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  137. package/types/src/WaitSpinner/WaitSpinner.d.ts +0 -1
  138. package/types/src/useControlled/index.d.ts +2 -0
  139. package/types/src/useControlled/useControlled.d.ts +21 -0
  140. package/types/src/useResizeObserver/index.d.ts +2 -0
  141. package/types/src/useResizeObserver/useResizeObserver.d.ts +12 -0
  142. package/useControlled.js +112 -0
  143. package/useForceUpdate.js +30 -32
  144. package/useKeyPress.d.ts +2 -0
  145. package/useKeyPress.js +1 -1
  146. package/useResizeObserver.d.ts +2 -0
  147. package/useResizeObserver.js +137 -0
  148. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  149. package/types/src/Chip/docs/examples/Basic.d.ts +0 -2
  150. package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +0 -2
  151. package/types/src/Color/docs/examples/prisma/Controlled.d.ts +0 -2
  152. package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +0 -1
  153. package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +0 -2
  154. package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +0 -2
  155. package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +0 -2
  156. package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +0 -2
  157. package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +0 -2
  158. package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +0 -2
  159. package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +0 -2
  160. package/types/src/File/docs/examples/prisma/Disabled.d.ts +0 -12
  161. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  162. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  163. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  164. package/types/src/Message/docs/examples/prisma/Title.d.ts +0 -2
  165. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  166. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  167. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  168. package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +0 -2
  169. /package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts} +0 -0
  170. /package/types/src/Color/docs/examples/{prisma/HideInput.d.ts → HideInput.d.ts} +0 -0
  171. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  172. /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/Date.js CHANGED
@@ -61,8 +61,8 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- DateWithoutTheme: () => /* reexport */ Y,
65
- default: () => /* reexport */ N
64
+ DateWithoutTheme: () => /* reexport */ N,
65
+ default: () => /* reexport */ z
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
68
  const n = require("react");
@@ -114,7 +114,7 @@
114
114
  },
115
115
  prisma: "150px"
116
116
  }));
117
- var I = C().div.withConfig({
117
+ var w = C().div.withConfig({
118
118
  displayName: "DateStyles__IconContainer",
119
119
  componentId: "kacgdc-1"
120
120
  })([ "align-items:center;color:", ";display:flex;padding:", ";pointer-events:none;" ], (0,
@@ -127,20 +127,17 @@
127
127
  }));
128
128
  // CONCATENATED MODULE: ./src/Date/Icon.tsx
129
129
  function T() {
130
- T = Object.assign || function(e) {
130
+ return T = Object.assign ? Object.assign.bind() : function(e) {
131
131
  for (var t = 1; t < arguments.length; t++) {
132
132
  var n = arguments[t];
133
133
  for (var a in n) {
134
- if (Object.prototype.hasOwnProperty.call(n, a)) {
135
- e[a] = n[a];
136
- }
134
+ ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
137
135
  }
138
136
  }
139
137
  return e;
140
- };
141
- return T.apply(this, arguments);
138
+ }, T.apply(null, arguments);
142
139
  }
143
- function D(e) {
140
+ function I(e) {
144
141
  var t = (0, b.useSplunkTheme)(), n = t.density;
145
142
  var o = n === "compact" ? "20px" : "24px";
146
143
 
@@ -174,128 +171,115 @@
174
171
  }
175
172
  }
176
173
  // CONCATENATED MODULE: ./src/Date/Date.tsx
177
- function w(e) {
174
+ function D(e) {
178
175
  "@babel/helpers - typeof";
179
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
180
- w = function e(t) {
181
- return typeof t;
182
- };
183
- } else {
184
- w = function e(t) {
185
- return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
186
- };
187
- }
188
- return w(e);
176
+ return D = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
177
+ return typeof e;
178
+ } : function(e) {
179
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
180
+ }, D(e);
189
181
  }
190
182
  function V() {
191
- V = Object.assign || function(e) {
183
+ return V = Object.assign ? Object.assign.bind() : function(e) {
192
184
  for (var t = 1; t < arguments.length; t++) {
193
185
  var n = arguments[t];
194
186
  for (var a in n) {
195
- if (Object.prototype.hasOwnProperty.call(n, a)) {
196
- e[a] = n[a];
197
- }
187
+ ({}).hasOwnProperty.call(n, a) && (e[a] = n[a]);
198
188
  }
199
189
  }
200
190
  return e;
201
- };
202
- return V.apply(this, arguments);
191
+ }, V.apply(null, arguments);
203
192
  }
204
193
  function j(e, t) {
205
- if (!(e instanceof t)) {
206
- throw new TypeError("Cannot call a class as a function");
207
- }
194
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
208
195
  }
209
- function F(e, t) {
196
+ function P(e, t) {
210
197
  for (var n = 0; n < t.length; n++) {
211
198
  var a = t[n];
212
- a.enumerable = a.enumerable || false;
213
- a.configurable = true;
214
- if ("value" in a) a.writable = true;
215
- Object.defineProperty(e, a.key, a);
199
+ a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
200
+ Object.defineProperty(e, W(a.key), a);
216
201
  }
217
202
  }
218
- function M(e, t, n) {
219
- if (t) F(e.prototype, t);
220
- if (n) F(e, n);
221
- return e;
203
+ function F(e, t, n) {
204
+ return t && P(e.prototype, t), n && P(e, n), Object.defineProperty(e, "prototype", {
205
+ writable: !1
206
+ }), e;
222
207
  }
223
- function _(e, t) {
224
- if (typeof t !== "function" && t !== null) {
225
- throw new TypeError("Super expression must either be null or a function");
226
- }
208
+ function M(e, t) {
209
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
227
210
  e.prototype = Object.create(t && t.prototype, {
228
211
  constructor: {
229
212
  value: e,
230
- writable: true,
231
- configurable: true
213
+ writable: !0,
214
+ configurable: !0
232
215
  }
233
- });
234
- if (t) P(e, t);
216
+ }), Object.defineProperty(e, "prototype", {
217
+ writable: !1
218
+ }), t && _(e, t);
235
219
  }
236
- function P(e, t) {
237
- P = Object.setPrototypeOf || function e(t, n) {
238
- t.__proto__ = n;
239
- return t;
240
- };
241
- return P(e, t);
220
+ function _(e, t) {
221
+ return _ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
222
+ return e.__proto__ = t, e;
223
+ }, _(e, t);
242
224
  }
243
- function q(e) {
225
+ function E(e) {
244
226
  var t = H();
245
- return function n() {
246
- var a = K(e), o;
227
+ return function() {
228
+ var n, a = K(e);
247
229
  if (t) {
248
- var r = K(this).constructor;
249
- o = Reflect.construct(a, arguments, r);
250
- } else {
251
- o = a.apply(this, arguments);
252
- }
253
- return R(this, o);
230
+ var o = K(this).constructor;
231
+ n = Reflect.construct(a, arguments, o);
232
+ } else n = a.apply(this, arguments);
233
+ return q(this, n);
254
234
  };
255
235
  }
256
- function R(e, t) {
257
- if (t && (w(t) === "object" || typeof t === "function")) {
258
- return t;
259
- }
260
- return E(e);
236
+ function q(e, t) {
237
+ if (t && ("object" == D(t) || "function" == typeof t)) return t;
238
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
239
+ return R(e);
261
240
  }
262
- function E(e) {
263
- if (e === void 0) {
264
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
265
- }
241
+ function R(e) {
242
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
266
243
  return e;
267
244
  }
268
245
  function H() {
269
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
270
- if (Reflect.construct.sham) return false;
271
- if (typeof Proxy === "function") return true;
272
246
  try {
273
- Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
274
- return true;
275
- } catch (e) {
276
- return false;
277
- }
247
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
248
+ } catch (e) {}
249
+ return (H = function t() {
250
+ return !!e;
251
+ })();
278
252
  }
279
253
  function K(e) {
280
- K = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
281
- return t.__proto__ || Object.getPrototypeOf(t);
282
- };
283
- return K(e);
254
+ return K = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
255
+ return e.__proto__ || Object.getPrototypeOf(e);
256
+ }, K(e);
284
257
  }
285
- function W(e, t, n) {
286
- if (t in e) {
287
- Object.defineProperty(e, t, {
288
- value: n,
289
- enumerable: true,
290
- configurable: true,
291
- writable: true
292
- });
293
- } else {
294
- e[t] = n;
258
+ function B(e, t, n) {
259
+ return (t = W(t)) in e ? Object.defineProperty(e, t, {
260
+ value: n,
261
+ enumerable: !0,
262
+ configurable: !0,
263
+ writable: !0
264
+ }) : e[t] = n, e;
265
+ }
266
+ function W(e) {
267
+ var t = A(e, "string");
268
+ return "symbol" == D(t) ? t : t + "";
269
+ }
270
+ function A(e, t) {
271
+ if ("object" != D(e) || !e) return e;
272
+ var n = e[Symbol.toPrimitive];
273
+ if (void 0 !== n) {
274
+ var a = n.call(e, t || "default");
275
+ if ("object" != D(a)) return a;
276
+ throw new TypeError("@@toPrimitive must return a primitive value.");
295
277
  }
296
- return e;
278
+ return ("string" === t ? String : Number)(e);
297
279
  }
298
- var A = {
280
+ /** @public */
281
+ /** @public */
282
+ /** @public */ var Y = {
299
283
  defaultValue: r().string,
300
284
  describedBy: r().string,
301
285
  disabled: r().bool,
@@ -317,7 +301,7 @@
317
301
  splunkTheme: r().object,
318
302
  value: r().string
319
303
  };
320
- var B = {
304
+ var $ = {
321
305
  disabled: false,
322
306
  error: false,
323
307
  highlightToday: false,
@@ -325,9 +309,9 @@
325
309
  inputOnly: false,
326
310
  locale: "en_US"
327
311
  };
328
- var Y = function(e) {
329
- _(n, e);
330
- var t = q(n);
312
+ var N = function(e) {
313
+ M(n, e);
314
+ var t = E(n);
331
315
  // @docs-props-type DatePropsBase
332
316
  /**
333
317
  * This static value can be used to convert a moment date to a compatible string
@@ -343,16 +327,16 @@
343
327
  var a;
344
328
  j(this, n);
345
329
  a = t.call(this, e);
346
- W(E(a), "controlledExternally", void 0);
347
- W(E(a), "focusCalledInternally", false);
348
- W(E(a), "popoverId", void 0);
349
- W(E(a), "calendar", null);
350
- W(E(a), "openWithFocus", false);
351
- W(E(a), "applyTextChange", (function(e) {
330
+ B(R(a), "controlledExternally", void 0);
331
+ B(R(a), "focusCalledInternally", false);
332
+ B(R(a), "popoverId", void 0);
333
+ B(R(a), "calendar", null);
334
+ B(R(a), "openWithFocus", false);
335
+ B(R(a), "applyTextChange", (function(e) {
352
336
  var t = p()(a.state.tempTextInputDate, "l", a.props.locale);
353
337
  if (t.isValid()) {
354
338
  a.handleDateChange(e, {
355
- value: t.format(Y.momentFormat)
339
+ value: t.format(n.momentFormat)
356
340
  }, "textInput");
357
341
  } else {
358
342
  a.setState({
@@ -361,7 +345,7 @@
361
345
  });
362
346
  }
363
347
  }));
364
- W(E(a), "handleDateChange", (function(e, t, n) {
348
+ B(R(a), "handleDateChange", (function(e, t, n) {
365
349
  var o = t.value;
366
350
  if (n !== "textInput") {
367
351
  a.focusCalledInternally = true;
@@ -385,7 +369,7 @@
385
369
  });
386
370
  }
387
371
  }));
388
- W(E(a), "handleFocus", (function(e, t) {
372
+ B(R(a), "handleFocus", (function(e, t) {
389
373
  var n, o;
390
374
  if (a.focusCalledInternally) {
391
375
  a.focusCalledInternally = false;
@@ -396,7 +380,7 @@
396
380
  }
397
381
  (n = (o = a.props).onFocus) === null || n === void 0 ? void 0 : n.call(o, e, t);
398
382
  }));
399
- W(E(a), "handleClick", (function(e) {
383
+ B(R(a), "handleClick", (function(e) {
400
384
  var t, n;
401
385
  if (!a.props.inputOnly && !a.state.calendarOpen) {
402
386
  a.setState({
@@ -405,14 +389,14 @@
405
389
  }
406
390
  (t = (n = a.props).onClick) === null || t === void 0 ? void 0 : t.call(n, e);
407
391
  }));
408
- W(E(a), "handleInputChange", (function(e, t) {
392
+ B(R(a), "handleInputChange", (function(e, t) {
409
393
  var n = t.value;
410
394
  a.setState({
411
395
  tempTextInputDate: n,
412
396
  calendarOpen: !a.props.inputOnly
413
397
  });
414
398
  }));
415
- W(E(a), "handleKeyDown", (function(e) {
399
+ B(R(a), "handleKeyDown", (function(e) {
416
400
  var t, n;
417
401
  var o = (0, d.keycode)(e.nativeEvent);
418
402
  if (o === "enter" || o === "tab") {
@@ -436,21 +420,21 @@
436
420
  }
437
421
  (t = (n = a.props).onKeyDown) === null || t === void 0 ? void 0 : t.call(n, e);
438
422
  }));
439
- W(E(a), "handleMount", (function(e) {
423
+ B(R(a), "handleMount", (function(e) {
440
424
  a.setState({
441
425
  anchor: e
442
426
  });
443
427
  S(a.props.elementRef, e);
444
428
  }));
445
- W(E(a), "handleInputMount", (function(e) {
429
+ B(R(a), "handleInputMount", (function(e) {
446
430
  a.setState({
447
431
  input: e
448
432
  });
449
433
  }));
450
- W(E(a), "handleCalendarMount", (function(e) {
434
+ B(R(a), "handleCalendarMount", (function(e) {
451
435
  a.calendar = e;
452
436
  }));
453
- W(E(a), "handleRequestClose", (function(e) {
437
+ B(R(a), "handleRequestClose", (function(e) {
454
438
  var t = e.event, n = e.reason;
455
439
  if ((n === "clickAway" || n === "escapeKey") && t !== undefined && t.target !== a.state.anchor) {
456
440
  a.applyTextChange(t);
@@ -461,7 +445,7 @@
461
445
  }
462
446
  }));
463
447
  a.controlledExternally = i()(e, "value");
464
- var o = a.isControlled() ? e.value : e.defaultValue || p()().locale(e.locale).format(Y.momentFormat);
448
+ var o = a.isControlled() ? e.value : e.defaultValue || p()().locale(e.locale).format(n.momentFormat);
465
449
  a.state = {
466
450
  anchor: null,
467
451
  calendarOpen: false,
@@ -473,7 +457,7 @@
473
457
  if (false) {}
474
458
  return a;
475
459
  }
476
- M(n, [ {
460
+ F(n, [ {
477
461
  key: "componentDidUpdate",
478
462
  value: function e(t, n) {
479
463
  if (false) {}
@@ -496,7 +480,7 @@
496
480
  }, {
497
481
  key: "getTextInputValue",
498
482
  value: function e() {
499
- return this.state.tempTextInputDate === undefined ? p()(this.getValue(), Y.momentFormat, this.props.locale).format("l") : this.state.tempTextInputDate;
483
+ return this.state.tempTextInputDate === undefined ? p()(this.getValue(), n.momentFormat, this.props.locale).format("l") : this.state.tempTextInputDate;
500
484
  }
501
485
  }, {
502
486
  key: "isControlled",
@@ -517,10 +501,10 @@
517
501
  var t = this.props, n = t.disabled, o = t.highlightToday, r = t.inputOnly, l = t.locale, i = t.splunkTheme;
518
502
  var u = i.isPrisma;
519
503
  var c = this.getValue();
520
- var p = u && !r && a().createElement(I, {
504
+ var p = u && !r && a().createElement(w, {
521
505
  "aria-hidden": true,
522
506
  $disabled: n
523
- }, a().createElement(D, null));
507
+ }, a().createElement(I, null));
524
508
  var f;
525
509
  var d = {};
526
510
  if (!r) {
@@ -564,20 +548,21 @@
564
548
  } ]);
565
549
  return n;
566
550
  }(n.Component);
567
- W(Y, "propTypes", A);
568
- W(Y, "defaultProps", B);
569
- W(Y, "momentFormat", "YYYY-MM-DD");
570
- W(Y, "validateValue", (function(e) {
571
- if (!p()(e, Y.momentFormat).isValid()) {
551
+ B(N, "propTypes", Y);
552
+ B(N, "defaultProps", $);
553
+ B(N, "momentFormat", "YYYY-MM-DD");
554
+ B(N, "validateValue", (function(e) {
555
+ if (!p()(e, N.momentFormat).isValid()) {
572
556
  // eslint-disable-next-line no-console
573
557
  console.error('Invalid date string value "'.concat(e, '" provided to Moment.'));
574
558
  }
575
559
  }));
576
- var $ = (0, b.withSplunkTheme)(Y);
577
- var Z = $;
578
- Z.propTypes = Y.propTypes;
579
- Z.momentFormat = Y.momentFormat;
580
- /* harmony default export */ const N = Z;
581
- // CONCATENATED MODULE: ./src/Date/index.ts
560
+ var Z = (0, b.withSplunkTheme)(N);
561
+ var U = Z;
562
+ U.propTypes = N.propTypes;
563
+ U.momentFormat = N.momentFormat;
564
+ /* harmony default export */ const z = U;
565
+ // only for styled components using Date
566
+ // CONCATENATED MODULE: ./src/Date/index.ts
582
567
  module.exports = t;
583
568
  /******/})();