@splunk/react-ui 4.22.1 → 4.23.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/DualListbox.js CHANGED
@@ -574,7 +574,7 @@
574
574
  }, n().createElement(m(), {
575
575
  "aria-hidden": true,
576
576
  id: f.current
577
- }, (0, d.sprintf)((0, l._)("Select All %(listName)s Options"), {
577
+ }, (0, d.sprintf)((0, l._)("Select all %(listName)s Options"), {
578
578
  listName: c
579
579
  })), n().createElement(U(), {
580
580
  appearance: "checkbox",
@@ -589,7 +589,7 @@
589
589
  htmlFor: i
590
590
  }, c), n().createElement("span", {
591
591
  "aria-hidden": true
592
- }, "".concat(C, "/").concat(x, " Selected"))));
592
+ }, "".concat(C, "/").concat(x, " selected"))));
593
593
  }
594
594
  ce.propTypes = ue;
595
595
  /* harmony default export */ const se = ce;
package/File.js CHANGED
@@ -101,8 +101,8 @@
101
101
  const w = require("@splunk/react-icons/enterprise/Close");
102
102
  var L = e.n(w);
103
103
  // CONCATENATED MODULE: external "@splunk/react-ui/Progress"
104
- const S = require("@splunk/react-ui/Progress");
105
- var O = e.n(S);
104
+ const O = require("@splunk/react-ui/Progress");
105
+ var S = e.n(O);
106
106
  // CONCATENATED MODULE: external "@splunk/ui-utils/format"
107
107
  const I = require("@splunk/ui-utils/format");
108
108
  // CONCATENATED MODULE: ./src/File/FileContext.tsx
@@ -426,7 +426,7 @@
426
426
  index: c
427
427
  });
428
428
  }
429
- var S = (0, t.useContext)(_), E = S.onRequestRetry;
429
+ var O = (0, t.useContext)(_), E = O.onRequestRetry;
430
430
  function R(e) {
431
431
  e.preventDefault();
432
432
  E === null || E === void 0 ? void 0 : E({
@@ -502,7 +502,7 @@
502
502
  "aria-valuenow": p,
503
503
  "aria-valuemin": 0,
504
504
  "aria-valuemax": 100
505
- }) : a().createElement(O(), {
505
+ }) : a().createElement(S(), {
506
506
  style: {
507
507
  position: "absolute",
508
508
  left: 0,
@@ -756,12 +756,12 @@
756
756
  Object.defineProperty(e, a.key, a);
757
757
  }
758
758
  }
759
- function Se(e, r, t) {
759
+ function Oe(e, r, t) {
760
760
  if (r) Le(e.prototype, r);
761
761
  if (t) Le(e, t);
762
762
  return e;
763
763
  }
764
- function Oe(e, r) {
764
+ function Se(e, r) {
765
765
  if (typeof r !== "function" && r !== null) {
766
766
  throw new TypeError("Super expression must either be null or a function");
767
767
  }
@@ -867,7 +867,7 @@
867
867
  * file readers, only a reference to the file. This can be used to post binary content, or
868
868
  * upload using an array buffer.
869
869
  */ var $e = function(e) {
870
- Oe(n, e);
870
+ Se(n, e);
871
871
  var r = _e(n);
872
872
  // @docs-props-type FilePropsBase
873
873
  function n(e) {
@@ -919,7 +919,7 @@
919
919
  t.handleDragLeave = l()(t.handleDragLeave, 300);
920
920
  return t;
921
921
  }
922
- Se(n, [ {
922
+ Oe(n, [ {
923
923
  key: "addFiles",
924
924
  value: function e(r) {
925
925
  var t = this.props.name;
@@ -943,7 +943,7 @@
943
943
  var r = this.props, n = r.accept, i = r.allowMultiple, o = r.children, l = r.disabled, s = r.dropAnywhere, p = r.error, u = r.fullscreen, f = r.help, b = r.name, y = r.onRequestRemove, g = r.onRequestRetry, C = r.required, x = r.splunkTheme, k = xe(r, [ "accept", "allowMultiple", "children", "disabled", "dropAnywhere", "error", "fullscreen", "help", "name", "onRequestRemove", "onRequestRetry", "required", "splunkTheme" ]);
944
944
  var w = x.isPrisma;
945
945
  var L = 0;
946
- var S = t.Children.toArray(o).filter(t.isValidElement).map((function(e, r) {
946
+ var O = t.Children.toArray(o).filter(t.isValidElement).map((function(e, r) {
947
947
  L += 1;
948
948
 
949
949
  return (0, t.cloneElement)(e, {
@@ -951,9 +951,9 @@
951
951
  key: e.key || e.props.itemId || "item-".concat(r)
952
952
  });
953
953
  }));
954
- var O = u || s;
955
- var I = O || l;
956
- var _ = O && !l;
954
+ var S = u || s;
955
+ var I = S || l;
956
+ var _ = S && !l;
957
957
  var R = u ? ye : he;
958
958
  var D = u ? ve : ue;
959
959
  var q = u ? pe : ce;
@@ -1010,8 +1010,8 @@
1010
1010
  $error: p
1011
1011
  }), " ", a().createElement("span", {
1012
1012
  "data-test": "file-label"
1013
- }, !O && !l && (0, h._)("Drop your file here or"), _ && (0, h._)("Drop your file anywhere or"), " ", L === 0 && l && (0,
1014
- h._)("No Files Selected"), a().createElement(de, {
1013
+ }, !S && !l && (0, h._)("Drop your file here or"), _ && (0, h._)("Drop your file anywhere or"), " ", L === 0 && l && (0,
1014
+ h._)("No files selected"), a().createElement(de, {
1015
1015
  htmlFor: this.inputId,
1016
1016
  "data-test": "file-link",
1017
1017
  "data-focused": this.state.focusedInput || null
@@ -1046,7 +1046,7 @@
1046
1046
  onRequestRemove: y ? $ : undefined,
1047
1047
  onRequestRetry: g ? T : undefined
1048
1048
  }
1049
- }, S));
1049
+ }, O));
1050
1050
  }
1051
1051
  } ]);
1052
1052
  return n;