@splunk/react-ui 4.43.0 → 4.44.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.
package/Number.js CHANGED
@@ -8,27 +8,27 @@
8
8
  /******/ /* webpack/runtime/compat get default export */
9
9
  /******/ (() => {
10
10
  /******/ // getDefaultExport function for compatibility with non-harmony modules
11
- /******/ e.n = r => {
12
- /******/ var t = r && r.__esModule ?
13
- /******/ () => r["default"]
14
- /******/ : () => r
11
+ /******/ e.n = t => {
12
+ /******/ var r = t && t.__esModule ?
13
+ /******/ () => t["default"]
14
+ /******/ : () => t
15
15
  /******/;
16
- e.d(t, {
17
- a: t
16
+ e.d(r, {
17
+ a: r
18
18
  });
19
- /******/ return t;
19
+ /******/ return r;
20
20
  /******/ };
21
21
  /******/ })();
22
22
  /******/
23
23
  /******/ /* webpack/runtime/define property getters */
24
24
  /******/ (() => {
25
25
  /******/ // define getter functions for harmony exports
26
- /******/ e.d = (r, t) => {
27
- /******/ for (var n in t) {
28
- /******/ if (e.o(t, n) && !e.o(r, n)) {
29
- /******/ Object.defineProperty(r, n, {
26
+ /******/ e.d = (t, r) => {
27
+ /******/ for (var n in r) {
28
+ /******/ if (e.o(r, n) && !e.o(t, n)) {
29
+ /******/ Object.defineProperty(t, n, {
30
30
  enumerable: true,
31
- get: t[n]
31
+ get: r[n]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -37,7 +37,7 @@
37
37
  /******/
38
38
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
39
  /******/ (() => {
40
- /******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
40
+ /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
41
  /******/;
42
42
  })();
43
43
  /******/
@@ -56,16 +56,16 @@
56
56
  /******/ };
57
57
  /******/ })();
58
58
  /******/
59
- /************************************************************************/ var r = {};
59
+ /************************************************************************/ var t = {};
60
60
  // ESM COMPAT FLAG
61
- e.r(r);
61
+ e.r(t);
62
62
  // EXPORTS
63
- e.d(r, {
63
+ e.d(t, {
64
64
  default: () => /* reexport */ pe
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
- const t = require("react");
68
- var n = e.n(t);
67
+ const r = require("react");
68
+ var n = e.n(r);
69
69
  // CONCATENATED MODULE: external "prop-types"
70
70
  const o = require("prop-types");
71
71
  var a = e.n(o);
@@ -90,10 +90,10 @@
90
90
  // CONCATENATED MODULE: ./src/Number/IncrementIcon.tsx
91
91
  function h() {
92
92
  return h = Object.assign ? Object.assign.bind() : function(e) {
93
- for (var r = 1; r < arguments.length; r++) {
94
- var t = arguments[r];
95
- for (var n in t) {
96
- ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
93
+ for (var t = 1; t < arguments.length; t++) {
94
+ var r = arguments[t];
95
+ for (var n in r) {
96
+ ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
97
97
  }
98
98
  }
99
99
  return e;
@@ -148,8 +148,8 @@
148
148
  enterprise: (0, g.css)([ "transform:translateY(-1px);" ]),
149
149
  prisma: (0, g.css)([ "transform:translateX(1px);" ])
150
150
  }), (function(e) {
151
- var r = e.$isAppend;
152
- return r ? (0, g.css)([ "margin-right:8px;", "" ], (0, d.pick)({
151
+ var t = e.$isAppend;
152
+ return t ? (0, g.css)([ "margin-right:8px;", "" ], (0, d.pick)({
153
153
  prisma: (0, g.css)([ "transform:translateX(-1px);" ])
154
154
  })) : (0, g.css)([ "margin-left:8px;" ]);
155
155
  }));
@@ -162,8 +162,8 @@
162
162
  displayName: "NumberStyles__StyledPlusButton",
163
163
  componentId: "sc-2ekj9s-2"
164
164
  })([ "", ";top:0;border-bottom-left-radius:0;border-bottom-right-radius:0;", " &:not([disabled]){&,&:hover{", ";}}" ], E, (function(e) {
165
- var r = e.append;
166
- return r && (0, d.pick)({
165
+ var t = e.append;
166
+ return t && (0, d.pick)({
167
167
  enterprise: {
168
168
  light: (0, g.css)([ "border-right:1px solid ", ";" ], d.variables.gray60),
169
169
  dark: (0, g.css)([ "border-right:", ";" ], d.variables.border)
@@ -178,8 +178,8 @@
178
178
  displayName: "NumberStyles__StyledMinusButton",
179
179
  componentId: "sc-2ekj9s-3"
180
180
  })([ "", ";bottom:1px;border-top-left-radius:0;border-top-right-radius:0;", " &:not([disabled]){&,&:hover{", ";}}" ], E, (function(e) {
181
- var r = e.append;
182
- return r && (0, d.pick)({
181
+ var t = e.append;
182
+ return t && (0, d.pick)({
183
183
  enterprise: {
184
184
  light: (0, g.css)([ "border-right:1px solid ", ";" ], d.variables.gray60),
185
185
  dark: (0, g.css)([ "border-right:", ";" ], d.variables.border)
@@ -190,7 +190,7 @@
190
190
  dark: (0, g.css)([ "border-color:", ";" ], d.variables.gray20)
191
191
  }
192
192
  }));
193
- var D = x()(S()).withConfig({
193
+ var B = x()(S()).withConfig({
194
194
  displayName: "NumberStyles__prismaButton",
195
195
  componentId: "sc-2ekj9s-4"
196
196
  })([ "", ";display:flex;align-items:center;justify-content:center;", " &:hover:not([disabled]){", "}&:active:not([disabled]){", "}" ], E, (0,
@@ -201,11 +201,11 @@
201
201
  }), (0, d.pick)({
202
202
  prisma: (0, g.css)([ "background-color:", ";color:", ";" ], d.variables.interactiveColorOverlayActive, d.variables.contentColorActive)
203
203
  }));
204
- var B = x()(D).withConfig({
204
+ var D = x()(B).withConfig({
205
205
  displayName: "NumberStyles__StyledPrismaPlusButton",
206
206
  componentId: "sc-2ekj9s-5"
207
207
  })([ "border-top-right-radius:4px;" ]);
208
- var N = x()(D).withConfig({
208
+ var N = x()(B).withConfig({
209
209
  displayName: "NumberStyles__StyledPrismaMinusButton",
210
210
  componentId: "sc-2ekj9s-6"
211
211
  })([ "border-bottom-right-radius:4px;padding-bottom:5px;" ]);
@@ -213,15 +213,15 @@
213
213
  const I = require("lodash/isString");
214
214
  var q = e.n(I);
215
215
  // CONCATENATED MODULE: ./src/Number/utils.ts
216
- var K = function e(r) {
216
+ var K = function e(t) {
217
217
  // A more robust and expandable solution would be to use formatToParts() once IE requirements are dropped.
218
- var t = new Intl.NumberFormat(r.replace("_", "-")).format(1.2);
219
- return t.indexOf(",") > -1 ? "," : ".";
218
+ var r = new Intl.NumberFormat(t.replace("_", "-")).format(1.2);
219
+ return r.indexOf(",") > -1 ? "," : ".";
220
220
  };
221
- var A = function e(r) {
222
- var t = r.val, n = r.min, o = r.max, a = r.roundTo;
223
- var i = t;
224
- if (!u()(t)) {
221
+ var A = function e(t) {
222
+ var r = t.val, n = t.min, o = t.max, a = t.roundTo;
223
+ var i = r;
224
+ if (!u()(r)) {
225
225
  return i;
226
226
  }
227
227
  if (n !== undefined && u()(n)) {
@@ -233,9 +233,9 @@
233
233
  var l = Math.pow(10, a);
234
234
  return Math.round(i * l) / l;
235
235
  };
236
- var M = function e(r) {
237
- var t = r.str, n = r.locale, o = r.min, a = r.max, i = r.roundTo;
238
- var l = t;
236
+ var M = function e(t) {
237
+ var r = t.str, n = t.locale, o = t.min, a = t.max, i = t.roundTo;
238
+ var l = r;
239
239
  if (!q()(l) || l === "") {
240
240
  return undefined;
241
241
  }
@@ -257,25 +257,25 @@
257
257
  }
258
258
  return undefined;
259
259
  };
260
- var R = function e(r, t) {
261
- if (r === undefined || !u()(r)) {
260
+ var R = function e(t, r) {
261
+ if (t === undefined || !u()(t)) {
262
262
  return "";
263
263
  }
264
- if (K(t) === ".") {
265
- return r.toString();
264
+ if (K(r) === ".") {
265
+ return t.toString();
266
266
  }
267
267
  // comma separated case
268
- return r.toString().replace(".", ",");
268
+ return t.toString().replace(".", ",");
269
269
  };
270
- var U = function e(r) {
271
- var t = r.value, n = r.max;
272
- return t !== undefined && u()(t) && n !== undefined && u()(n) && t >= n;
270
+ var U = function e(t) {
271
+ var r = t.value, n = t.max;
272
+ return r !== undefined && u()(r) && n !== undefined && u()(n) && r >= n;
273
273
  };
274
- var F = function e(r) {
275
- var t = r.value, n = r.min;
276
- return t !== undefined && u()(t) && n !== undefined && u()(n) && t <= n;
274
+ var F = function e(t) {
275
+ var r = t.value, n = t.min;
276
+ return r !== undefined && u()(r) && n !== undefined && u()(n) && r <= n;
277
277
  };
278
- var z = function e(r, t) {
278
+ var z = function e(t, r) {
279
279
  if (false) {}
280
280
  };
281
281
  // CONCATENATED MODULE: ./src/Number/Number.tsx
@@ -289,54 +289,54 @@
289
289
  }
290
290
  function $() {
291
291
  return $ = Object.assign ? Object.assign.bind() : function(e) {
292
- for (var r = 1; r < arguments.length; r++) {
293
- var t = arguments[r];
294
- for (var n in t) {
295
- ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
292
+ for (var t = 1; t < arguments.length; t++) {
293
+ var r = arguments[t];
294
+ for (var n in r) {
295
+ ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
296
296
  }
297
297
  }
298
298
  return e;
299
299
  }, $.apply(null, arguments);
300
300
  }
301
- function L(e, r) {
302
- var t = Object.keys(e);
301
+ function L(e, t) {
302
+ var r = Object.keys(e);
303
303
  if (Object.getOwnPropertySymbols) {
304
304
  var n = Object.getOwnPropertySymbols(e);
305
- r && (n = n.filter((function(r) {
306
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
307
- }))), t.push.apply(t, n);
305
+ t && (n = n.filter((function(t) {
306
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
307
+ }))), r.push.apply(r, n);
308
308
  }
309
- return t;
309
+ return r;
310
310
  }
311
311
  function G(e) {
312
- for (var r = 1; r < arguments.length; r++) {
313
- var t = null != arguments[r] ? arguments[r] : {};
314
- r % 2 ? L(Object(t), !0).forEach((function(r) {
315
- oe(e, r, t[r]);
316
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : L(Object(t)).forEach((function(r) {
317
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
312
+ for (var t = 1; t < arguments.length; t++) {
313
+ var r = null != arguments[t] ? arguments[t] : {};
314
+ t % 2 ? L(Object(r), !0).forEach((function(t) {
315
+ oe(e, t, r[t]);
316
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : L(Object(r)).forEach((function(t) {
317
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
318
318
  }));
319
319
  }
320
320
  return e;
321
321
  }
322
- function H(e, r) {
323
- if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function");
322
+ function H(e, t) {
323
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
324
324
  }
325
- function Y(e, r) {
326
- for (var t = 0; t < r.length; t++) {
327
- var n = r[t];
325
+ function Y(e, t) {
326
+ for (var r = 0; r < t.length; r++) {
327
+ var n = t[r];
328
328
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
329
329
  Object.defineProperty(e, ae(n.key), n);
330
330
  }
331
331
  }
332
- function J(e, r, t) {
333
- return r && Y(e.prototype, r), t && Y(e, t), Object.defineProperty(e, "prototype", {
332
+ function J(e, t, r) {
333
+ return t && Y(e.prototype, t), r && Y(e, r), Object.defineProperty(e, "prototype", {
334
334
  writable: !1
335
335
  }), e;
336
336
  }
337
- function Q(e, r) {
338
- if ("function" != typeof r && null !== r) throw new TypeError("Super expression must either be null or a function");
339
- e.prototype = Object.create(r && r.prototype, {
337
+ function Q(e, t) {
338
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
339
+ e.prototype = Object.create(t && t.prototype, {
340
340
  constructor: {
341
341
  value: e,
342
342
  writable: !0,
@@ -344,38 +344,38 @@
344
344
  }
345
345
  }), Object.defineProperty(e, "prototype", {
346
346
  writable: !1
347
- }), r && W(e, r);
347
+ }), t && W(e, t);
348
348
  }
349
- function W(e, r) {
350
- return W = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
351
- return e.__proto__ = r, e;
352
- }, W(e, r);
349
+ function W(e, t) {
350
+ return W = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
351
+ return e.__proto__ = t, e;
352
+ }, W(e, t);
353
353
  }
354
354
  function Z(e) {
355
- var r = te();
355
+ var t = re();
356
356
  return function() {
357
- var t, n = ne(e);
358
- if (r) {
357
+ var r, n = ne(e);
358
+ if (t) {
359
359
  var o = ne(this).constructor;
360
- t = Reflect.construct(n, arguments, o);
361
- } else t = n.apply(this, arguments);
362
- return ee(this, t);
360
+ r = Reflect.construct(n, arguments, o);
361
+ } else r = n.apply(this, arguments);
362
+ return ee(this, r);
363
363
  };
364
364
  }
365
- function ee(e, r) {
366
- if (r && ("object" == X(r) || "function" == typeof r)) return r;
367
- if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
368
- return re(e);
365
+ function ee(e, t) {
366
+ if (t && ("object" == X(t) || "function" == typeof t)) return t;
367
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
368
+ return te(e);
369
369
  }
370
- function re(e) {
370
+ function te(e) {
371
371
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
372
372
  return e;
373
373
  }
374
- function te() {
374
+ function re() {
375
375
  try {
376
376
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
377
377
  } catch (e) {}
378
- return (te = function r() {
378
+ return (re = function t() {
379
379
  return !!e;
380
380
  })();
381
381
  }
@@ -384,27 +384,27 @@
384
384
  return e.__proto__ || Object.getPrototypeOf(e);
385
385
  }, ne(e);
386
386
  }
387
- function oe(e, r, t) {
388
- return (r = ae(r)) in e ? Object.defineProperty(e, r, {
389
- value: t,
387
+ function oe(e, t, r) {
388
+ return (t = ae(t)) in e ? Object.defineProperty(e, t, {
389
+ value: r,
390
390
  enumerable: !0,
391
391
  configurable: !0,
392
392
  writable: !0
393
- }) : e[r] = t, e;
393
+ }) : e[t] = r, e;
394
394
  }
395
395
  function ae(e) {
396
- var r = ie(e, "string");
397
- return "symbol" == X(r) ? r : r + "";
396
+ var t = ie(e, "string");
397
+ return "symbol" == X(t) ? t : t + "";
398
398
  }
399
- function ie(e, r) {
399
+ function ie(e, t) {
400
400
  if ("object" != X(e) || !e) return e;
401
- var t = e[Symbol.toPrimitive];
402
- if (void 0 !== t) {
403
- var n = t.call(e, r || "default");
401
+ var r = e[Symbol.toPrimitive];
402
+ if (void 0 !== r) {
403
+ var n = r.call(e, t || "default");
404
404
  if ("object" != X(n)) return n;
405
405
  throw new TypeError("@@toPrimitive must return a primitive value.");
406
406
  }
407
- return ("string" === r ? String : Number)(e);
407
+ return ("string" === t ? String : Number)(e);
408
408
  }
409
409
  /** @public */
410
410
  /** @public */
@@ -455,15 +455,15 @@
455
455
  step: 1
456
456
  };
457
457
  var ue = function(e) {
458
- Q(t, e);
459
- var r = Z(t);
460
- J(t, null, [ {
458
+ Q(r, e);
459
+ var t = Z(r);
460
+ J(r, null, [ {
461
461
  key: "getDerivedStateFromProps",
462
462
  // @docs-props-type NumberPropsBase
463
- value: function e(r, t) {
464
- if (l()(r, "value") && r.value !== t.prevValueProp) {
465
- var n = r.locale, o = r.min, a = r.max, i = r.roundTo;
466
- var s = t.stringValue;
463
+ value: function e(t, r) {
464
+ if (l()(t, "value") && t.value !== r.prevValueProp) {
465
+ var n = t.locale, o = t.min, a = t.max, i = t.roundTo;
466
+ var s = r.stringValue;
467
467
  var u = M({
468
468
  str: s,
469
469
  locale: n,
@@ -471,32 +471,32 @@
471
471
  max: a,
472
472
  roundTo: i
473
473
  });
474
- return r.value !== u ? {
475
- prevValueProp: r.value,
476
- stringValue: R(r.value, r.locale)
474
+ return t.value !== u ? {
475
+ prevValueProp: t.value,
476
+ stringValue: R(t.value, t.locale)
477
477
  } : {
478
- prevValueProp: r.value
478
+ prevValueProp: t.value
479
479
  };
480
480
  }
481
481
  return null;
482
482
  }
483
483
  } ]);
484
- function t(e) {
484
+ function r(e) {
485
485
  var n;
486
- H(this, t);
487
- n = r.call(this, e);
488
- oe(re(n), "controlledExternally", void 0);
489
- oe(re(n), "text", null);
490
- oe(re(n), "handleInputBlur", (function(e, r) {
491
- var t, o;
486
+ H(this, r);
487
+ n = t.call(this, e);
488
+ oe(te(n), "controlledExternally", void 0);
489
+ oe(te(n), "text", null);
490
+ oe(te(n), "handleInputBlur", (function(e, t) {
491
+ var r, o;
492
492
  n.updateString();
493
- (t = (o = n.props).onBlur) === null || t === void 0 ? void 0 : t.call(o, e, r);
493
+ (r = (o = n.props).onBlur) === null || r === void 0 ? void 0 : r.call(o, e, t);
494
494
  }));
495
- oe(re(n), "handleInputChange", (function(e, r) {
496
- var t = r.value;
495
+ oe(te(n), "handleInputChange", (function(e, t) {
496
+ var r = t.value;
497
497
  var o = n.props, a = o.locale, i = o.min, l = o.max, s = o.roundTo, u = o.name, c = o.onChange;
498
498
  var p = M({
499
- str: t,
499
+ str: r,
500
500
  locale: a,
501
501
  min: i,
502
502
  max: l,
@@ -504,18 +504,19 @@
504
504
  });
505
505
  n.setState({
506
506
  value: n.isControlled() ? undefined : p,
507
- stringValue: t
507
+ stringValue: r
508
508
  }, (function() {
509
509
  if (n.getValue() !== p || !n.isControlled()) {
510
510
  c === null || c === void 0 ? void 0 : c(e, {
511
511
  value: p,
512
- name: u
512
+ name: u,
513
+ reason: "input"
513
514
  });
514
515
  }
515
516
  }));
516
517
  }));
517
- oe(re(n), "handleKeyDown", (function(e) {
518
- var r, t;
518
+ oe(te(n), "handleKeyDown", (function(e) {
519
+ var t, r;
519
520
  if (!e.metaKey && !e.ctrlKey && !e.altKey && (0, v.addsCharacter)(e.nativeEvent) !== false) {
520
521
  // only allow numbers, negative and decimals
521
522
  if (!(0, v.isNumeric)(e.nativeEvent, {
@@ -543,19 +544,19 @@
543
544
  n.increment(e, -n.props.step);
544
545
  e.preventDefault();
545
546
  }
546
- (r = (t = n.props).onKeyDown) === null || r === void 0 ? void 0 : r.call(t, e);
547
+ (t = (r = n.props).onKeyDown) === null || t === void 0 ? void 0 : t.call(r, e);
547
548
  }));
548
- oe(re(n), "handleKeyUp", (function(e) {
549
- var r, t;
549
+ oe(te(n), "handleKeyUp", (function(e) {
550
+ var t, r;
550
551
  if ((0, v.keycode)(e.nativeEvent) === "enter") {
551
552
  n.updateString();
552
553
  }
553
- (r = (t = n.props).onKeyUp) === null || r === void 0 ? void 0 : r.call(t, e);
554
+ (t = (r = n.props).onKeyUp) === null || t === void 0 ? void 0 : t.call(r, e);
554
555
  }));
555
- oe(re(n), "handleIncrement", (function(e) {
556
+ oe(te(n), "handleIncrement", (function(e) {
556
557
  n.increment(e, n.props.step);
557
558
  }));
558
- oe(re(n), "handleDecrement", (function(e) {
559
+ oe(te(n), "handleDecrement", (function(e) {
559
560
  n.increment(e, -n.props.step);
560
561
  }));
561
562
  n.controlledExternally = l()(e, "value");
@@ -578,9 +579,9 @@
578
579
  z(n.props.append, n.props.prepend);
579
580
  return n;
580
581
  }
581
- J(t, [ {
582
+ J(r, [ {
582
583
  key: "componentDidUpdate",
583
- value: function e(r) {
584
+ value: function e(t) {
584
585
  if (false) {}
585
586
  if (false) {}
586
587
  z(this.props.append, this.props.prepend);
@@ -592,17 +593,18 @@
592
593
  }
593
594
  }, {
594
595
  key: "setValue",
595
- value: function e(r, t) {
596
+ value: function e(t, r) {
596
597
  var n = this;
597
598
  var o = this.props, a = o.locale, i = o.onChange, l = o.name;
598
599
  this.setState({
599
- value: this.isControlled() ? undefined : t,
600
- stringValue: R(t, a)
600
+ value: this.isControlled() ? undefined : r,
601
+ stringValue: R(r, a)
601
602
  }, (function() {
602
- if (n.getValue() !== t || !n.isControlled()) {
603
- i === null || i === void 0 ? void 0 : i(r, {
604
- value: t,
605
- name: l
603
+ if (n.getValue() !== r || !n.isControlled()) {
604
+ i === null || i === void 0 ? void 0 : i(t, {
605
+ value: r,
606
+ name: l,
607
+ reason: "stepButton"
606
608
  });
607
609
  }
608
610
  }));
@@ -613,9 +615,9 @@
613
615
  * Place focus on the input.
614
616
  */
615
617
  // eslint-disable-next-line react/no-unused-class-component-methods
616
- value: function e(r) {
618
+ value: function e(t) {
617
619
  if (this.text) {
618
- this.text.focus(r);
620
+ this.text.focus(t);
619
621
  }
620
622
  }
621
623
  }, {
@@ -626,14 +628,14 @@
626
628
  }, {
627
629
  key: "updateString",
628
630
  value: function e() {
629
- var r = this.getValue();
631
+ var t = this.getValue();
630
632
  this.setState({
631
- stringValue: R(r, this.props.locale)
633
+ stringValue: R(t, this.props.locale)
632
634
  });
633
635
  }
634
636
  }, {
635
637
  key: "increment",
636
- value: function e(r, t) {
638
+ value: function e(t, r) {
637
639
  var n = this.props, o = n.locale, a = n.min, i = n.max, l = n.roundTo, s = n.defaultValue, c = n.step;
638
640
  var p = this.state.stringValue;
639
641
  var d = M({
@@ -647,11 +649,11 @@
647
649
  // increment appropriate number
648
650
  if (d !== undefined && u()(d)) {
649
651
  // increment the entered value
650
- f = d + t;
652
+ f = d + r;
651
653
  } else if (s !== undefined && u()(s)) {
652
654
  // increment the defaultValue
653
- f = s + t;
654
- } else if (t > 0) {
655
+ f = s + r;
656
+ } else if (r > 0) {
655
657
  // increment up to max or step value
656
658
  f = i || c;
657
659
  } else {
@@ -659,7 +661,7 @@
659
661
  f = a || 0;
660
662
  // set to min or 0
661
663
  }
662
- this.setValue(r, A({
664
+ this.setValue(t, A({
663
665
  val: f,
664
666
  min: a,
665
667
  max: i,
@@ -669,8 +671,8 @@
669
671
  }, {
670
672
  key: "render",
671
673
  value: function e() {
672
- var r = this;
673
- var t = this.props, o = t.append, a = t.describedBy, i = t.disabled, l = t.elementRef, s = t.error, u = t.hideStepButtons, c = t.inline, d = t.value, v = d === void 0 ? this.state.value : d, m = t.max, b = t.min, h = t.prepend, g = t.splunkTheme, x = t.endAdornment, k = t.startAdornment;
674
+ var t = this;
675
+ var r = this.props, o = r.append, a = r.describedBy, i = r.disabled, l = r.elementRef, s = r.error, u = r.hideStepButtons, c = r.inline, d = r.value, v = d === void 0 ? this.state.value : d, m = r.max, b = r.min, h = r.prepend, g = r.splunkTheme, x = r.endAdornment, k = r.startAdornment;
674
676
  var w = p()(this.props, [ "defaultValue", "hideStepButtons", "max", "min", "roundTo", "spellCheck", "step" ]);
675
677
  var O = g.isPrisma;
676
678
  var S = O ? {} : {
@@ -692,13 +694,13 @@
692
694
  height: "4px",
693
695
  screenReaderText: (0, f._)("Increment")
694
696
  });
695
- var D = G({
697
+ var B = G({
696
698
  "data-test": "increment",
697
699
  disabled: i || j,
698
700
  onClick: this.handleIncrement,
699
701
  tabIndex: -1
700
702
  }, S);
701
- var I = O ? n().createElement(B, D, E) : n().createElement(_, D, E);
703
+ var I = O ? n().createElement(D, B, E) : n().createElement(_, B, E);
702
704
  var q = n().createElement(y, {
703
705
  width: "6px",
704
706
  height: "4px",
@@ -729,8 +731,8 @@
729
731
  spellCheck: false,
730
732
  "data-test": "number",
731
733
  elementRef: l,
732
- ref: function e(t) {
733
- r.text = t;
734
+ ref: function e(r) {
735
+ t.text = r;
734
736
  }
735
737
  }, w, {
736
738
  inline: c,
@@ -752,8 +754,8 @@
752
754
  }));
753
755
  }
754
756
  } ]);
755
- return t;
756
- }(t.Component);
757
+ return r;
758
+ }(r.Component);
757
759
  oe(ue, "propTypes", le);
758
760
  oe(ue, "defaultProps", se);
759
761
  oe(ue, "displayName", "Number");
@@ -762,5 +764,5 @@
762
764
  /* harmony default export */ const pe = ce;
763
765
  // only for styled components using Number
764
766
  // CONCATENATED MODULE: ./src/Number/index.ts
765
- module.exports = r;
767
+ module.exports = t;
766
768
  /******/})();