@splunk/react-ui 5.0.0 → 5.1.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 (94) hide show
  1. package/Accordion.js +59 -59
  2. package/Avatar.js +20 -20
  3. package/Breadcrumbs.js +46 -46
  4. package/Button.js +24 -24
  5. package/CHANGELOG.md +21 -2
  6. package/Calendar.js +69 -69
  7. package/Card.js +68 -68
  8. package/Chip.js +16 -16
  9. package/Clickable.js +29 -29
  10. package/Code.js +654 -519
  11. package/CollapsiblePanel.js +112 -112
  12. package/Color.js +107 -107
  13. package/ColumnLayout.js +35 -35
  14. package/ComboBox.js +190 -206
  15. package/ControlGroup.js +128 -120
  16. package/Date.js +148 -146
  17. package/DefinitionList.js +26 -26
  18. package/DualListbox.js +701 -717
  19. package/File.js +403 -403
  20. package/FormRows.js +66 -63
  21. package/Image.js +15 -15
  22. package/JSONTree.js +458 -357
  23. package/Layer.js +60 -72
  24. package/Markdown.js +66 -66
  25. package/Menu.js +44 -44
  26. package/Modal.js +49 -49
  27. package/ModalLayer.js +6 -6
  28. package/Monogram.js +16 -16
  29. package/Multiselect.js +622 -624
  30. package/Number.js +100 -100
  31. package/Paginator.js +7 -7
  32. package/Popover.js +453 -407
  33. package/Progress.js +12 -12
  34. package/Prose.js +6 -6
  35. package/RadioBar.js +180 -166
  36. package/RadioList.js +80 -79
  37. package/ResultsMenu.js +15 -15
  38. package/Scroll.js +50 -50
  39. package/Search.js +148 -164
  40. package/Select.js +668 -670
  41. package/Slider.js +30 -30
  42. package/SlidingPanels.js +24 -24
  43. package/SplitButton.js +50 -50
  44. package/StepBar.js +100 -100
  45. package/Switch.js +45 -45
  46. package/TabBar.js +196 -196
  47. package/TabLayout.js +16 -16
  48. package/Table.js +1207 -1193
  49. package/Text.js +65 -65
  50. package/TextArea.js +108 -93
  51. package/Tooltip.js +203 -197
  52. package/Tree.js +464 -366
  53. package/package.json +6 -6
  54. package/stubs-dependencies.d.ts +0 -70
  55. package/stubs-splunkui.d.ts +4 -0
  56. package/types/src/Code/Code.d.ts +17 -1
  57. package/types/src/Code/LineHighlights.d.ts +11 -0
  58. package/types/src/Code/LineNumbers.d.ts +6 -0
  59. package/types/src/Code/docs/examples/LineHighlights.d.ts +3 -0
  60. package/types/src/Code/docs/examples/LineNumbers.d.ts +3 -0
  61. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +3 -0
  62. package/types/src/Date/Date.d.ts +6 -1
  63. package/types/src/DefinitionList/DefinitionList.d.ts +6 -6
  64. package/types/src/FormRows/FormRows.d.ts +1 -1
  65. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  66. package/types/src/Markdown/Markdown.d.ts +1 -1
  67. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  68. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  69. package/types/src/Markdown/renderers/index.d.ts +1 -1
  70. package/types/src/Popover/Popover.d.ts +1 -1
  71. package/types/src/RadioBar/Option.d.ts +1 -1
  72. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  73. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  74. package/types/src/RadioList/RadioList.d.ts +2 -1
  75. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +3 -0
  76. package/types/src/Scroll/Inner.d.ts +1 -1
  77. package/types/src/Select/Option.d.ts +1 -1
  78. package/types/src/Select/Select.d.ts +1 -1
  79. package/types/src/Slider/docs/examples/Controlled.d.ts +1 -1
  80. package/types/src/TabLayout/Panel.d.ts +0 -1
  81. package/types/src/Table/Head.d.ts +1 -0
  82. package/types/src/Table/HeadCell.d.ts +2 -3
  83. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  84. package/types/src/Table/HeadInner.d.ts +4 -4
  85. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  86. package/types/src/Table/RowDragCell.d.ts +1 -1
  87. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  88. package/types/src/Tree/Item.d.ts +63 -0
  89. package/types/src/Tree/Tree.d.ts +13 -6
  90. package/types/src/Tree/TreeContext.d.ts +1 -1
  91. package/types/src/Tree/index.d.ts +1 -1
  92. package/types/src/useControlled/useControlled.d.ts +3 -1
  93. package/useControlled.js +29 -13
  94. package/types/src/Tree/TreeItem.d.ts +0 -44
package/Text.js CHANGED
@@ -66,23 +66,23 @@
66
66
  // CONCATENATED MODULE: external "react"
67
67
  const t = require("react");
68
68
  var n = e.n(t);
69
- // CONCATENATED MODULE: external "prop-types"
70
- const o = require("prop-types");
71
- var a = e.n(o);
72
69
  // CONCATENATED MODULE: external "lodash/keys"
73
- const i = require("lodash/keys");
74
- var l = e.n(i);
70
+ const o = require("lodash/keys");
71
+ var a = e.n(o);
75
72
  // CONCATENATED MODULE: external "lodash/omit"
76
- const u = require("lodash/omit");
77
- var s = e.n(u);
73
+ const i = require("lodash/omit");
74
+ var l = e.n(i);
78
75
  // CONCATENATED MODULE: external "lodash/pickBy"
79
- const c = require("lodash/pickBy");
76
+ const u = require("lodash/pickBy");
77
+ var s = e.n(u);
78
+ // CONCATENATED MODULE: external "prop-types"
79
+ const c = require("prop-types");
80
80
  var d = e.n(c);
81
- // CONCATENATED MODULE: external "@splunk/react-ui/Button"
82
- const v = require("@splunk/react-ui/Button");
83
- var p = e.n(v);
84
81
  // CONCATENATED MODULE: external "@splunk/react-icons/Cross"
85
- const b = require("@splunk/react-icons/Cross");
82
+ const v = require("@splunk/react-icons/Cross");
83
+ var p = e.n(v);
84
+ // CONCATENATED MODULE: external "@splunk/react-ui/Button"
85
+ const b = require("@splunk/react-ui/Button");
86
86
  var f = e.n(b);
87
87
  // CONCATENATED MODULE: external "@splunk/react-ui/ControlGroup"
88
88
  const m = require("@splunk/react-ui/ControlGroup");
@@ -128,18 +128,18 @@
128
128
  // CONCATENATED MODULE: external "styled-components"
129
129
  const T = require("styled-components");
130
130
  var B = e.n(T);
131
- // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
132
- const I = require("@splunk/react-ui/ButtonSimple");
133
131
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
134
- const P = require("@splunk/react-ui/Box");
135
- var q = e.n(P);
132
+ const I = require("@splunk/react-ui/Box");
133
+ var P = e.n(I);
134
+ // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
135
+ const q = require("@splunk/react-ui/ButtonSimple");
136
136
  // CONCATENATED MODULE: ./src/Text/TextStyles.ts
137
137
  var $ = "230px";
138
- var D = B()(p()).withConfig({
138
+ var D = B()(f()).withConfig({
139
139
  displayName: "TextStyles__StyledClearButton",
140
140
  componentId: "eg7n6t-0"
141
141
  })([ "display:none;visibility:hidden;" ]);
142
- var _ = B()(q()).withConfig({
142
+ var _ = B()(P()).withConfig({
143
143
  displayName: "TextStyles__StyledBox",
144
144
  componentId: "eg7n6t-1"
145
145
  })([ "display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;gap:", ";padding-inline:", ";min-height:", ";overflow:hidden;border:", " solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);align-items:center;cursor:text;&:has(> input:focus){box-shadow:", ";}", " ", " ", " &[data-inline]{width:", ";flex-basis:", ";}", "" ], k.variables.spacingXSmall, k.variables.spacingSmall, k.variables.inputHeight, k.variables.inputBorderWidth, k.variables.interactiveColorBorder, k.variables.borderRadius, k.variables.interactiveColorBackground, k.variables.focusShadow, (function(e) {
@@ -172,7 +172,7 @@
172
172
  }), (function(e) {
173
173
  var r = e.$disabled;
174
174
  return r && (0, T.css)([ "color:", ";" ], k.variables.contentColorDisabled);
175
- }), (0, I.buttonMixin)({
175
+ }), (0, q.buttonMixin)({
176
176
  borderColor: k.variables.transparent,
177
177
  borderColorHover: k.variables.transparent,
178
178
  borderColorActive: k.variables.transparent,
@@ -344,53 +344,53 @@
344
344
  /** @public */
345
345
  /** @public */
346
346
  /** @public */ var ae = {
347
- append: a().bool,
348
- autoCapitalize: a().string,
349
- autoComplete: a().string,
350
- autoCorrect: a().string,
351
- autoFocus: a().bool,
352
- canClear: a().bool,
353
- children: a().node,
354
- defaultValue: a().string,
355
- describedBy: a().string,
356
- disabled: a().oneOfType([ a().bool, a().oneOf([ "dimmed" ]) ]),
357
- elementRef: a().oneOfType([ a().func, a().object ]),
358
- endAdornment: a().node,
359
- error: a().bool,
360
- inline: a().bool,
347
+ append: d().bool,
348
+ autoCapitalize: d().string,
349
+ autoComplete: d().string,
350
+ autoCorrect: d().string,
351
+ autoFocus: d().bool,
352
+ canClear: d().bool,
353
+ children: d().node,
354
+ defaultValue: d().string,
355
+ describedBy: d().string,
356
+ disabled: d().oneOfType([ d().bool, d().oneOf([ "dimmed" ]) ]),
357
+ elementRef: d().oneOfType([ d().func, d().object ]),
358
+ endAdornment: d().node,
359
+ error: d().bool,
360
+ inline: d().bool,
361
361
  /** @private. */
362
- inputClassName: a().string,
363
- inputId: a().string,
364
- inputRef: a().oneOfType([ a().func, a().object ]),
365
- labelledBy: a().string,
366
- maxLength: a().number,
367
- name: a().string,
368
- onBlur: a().func,
369
- onChange: a().func,
370
- onFocus: a().func,
371
- onKeyDown: a().func,
372
- onSelect: a().func,
373
- onClick: a().func,
362
+ inputClassName: d().string,
363
+ inputId: d().string,
364
+ inputRef: d().oneOfType([ d().func, d().object ]),
365
+ labelledBy: d().string,
366
+ maxLength: d().number,
367
+ name: d().string,
368
+ onBlur: d().func,
369
+ onChange: d().func,
370
+ onFocus: d().func,
371
+ onKeyDown: d().func,
372
+ onSelect: d().func,
373
+ onClick: d().func,
374
374
  /** @private. */
375
- placeholder: a().string,
376
- prepend: a().bool,
375
+ placeholder: d().string,
376
+ prepend: d().bool,
377
377
  /** @private. */
378
- required: a().bool,
379
- spellCheck: a().bool,
380
- tabIndex: a().number,
381
- startAdornment: a().node,
378
+ required: d().bool,
379
+ spellCheck: d().bool,
380
+ tabIndex: d().number,
381
+ startAdornment: d().node,
382
382
  /** @private */
383
- splunkTheme: a().object,
384
- type: a().string,
385
- passwordVisibilityToggle: a().bool,
386
- value: a().string
383
+ splunkTheme: d().object,
384
+ type: d().string,
385
+ passwordVisibilityToggle: d().bool,
386
+ value: d().string
387
387
  };
388
- var ie = n().createElement(f(), {
388
+ var ie = n().createElement(p(), {
389
389
  inline: false
390
390
  });
391
391
  /** Note: Text places role and aria props onto the input. All other props are placed on the wrapper. */ function le(e) {
392
392
  var r;
393
- var o = e.append, a = o === void 0 ? false : o, i = e.autoCapitalize, u = e.autoComplete, c = e.autoCorrect, v = e.autoFocus, b = v === void 0 ? false : v, f = e.canClear, y = f === void 0 ? false : f, C = e.children, x = e.defaultValue, k = e.disabled, w = k === void 0 ? false : k, O = e.describedBy, j = e.elementRef, E = e.endAdornment, T = e.error, B = T === void 0 ? false : T, I = e.inline, P = I === void 0 ? false : I, q = e.inputClassName, $ = e.inputId, H = e.inputRef, z = e.labelledBy, V = e.maxLength, K = e.name, L = e.onBlur, W = e.onChange, U = e.onClick, X = e.onFocus, Y = e.onKeyDown, Z = e.onSelect, ee = e.passwordVisibilityToggle, re = ee === void 0 ? false : ee, te = e.placeholder, oe = e.prepend, ae = oe === void 0 ? false : oe, le = e.required, ue = e.spellCheck, se = e.startAdornment, ce = e.tabIndex, de = ce === void 0 ? 0 : ce, ve = e.title, pe = e.type, be = pe === void 0 ? "text" : pe, fe = e.value, me = ne(e, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "canClear", "children", "defaultValue", "disabled", "describedBy", "elementRef", "endAdornment", "error", "inline", "inputClassName", "inputId", "inputRef", "labelledBy", "maxLength", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onSelect", "passwordVisibilityToggle", "placeholder", "prepend", "required", "spellCheck", "startAdornment", "tabIndex", "title", "type", "value" ]);
393
+ var o = e.append, i = o === void 0 ? false : o, u = e.autoCapitalize, c = e.autoComplete, d = e.autoCorrect, v = e.autoFocus, p = v === void 0 ? false : v, b = e.canClear, y = b === void 0 ? false : b, C = e.children, x = e.defaultValue, k = e.disabled, w = k === void 0 ? false : k, O = e.describedBy, j = e.elementRef, E = e.endAdornment, T = e.error, B = T === void 0 ? false : T, I = e.inline, P = I === void 0 ? false : I, q = e.inputClassName, $ = e.inputId, H = e.inputRef, z = e.labelledBy, V = e.maxLength, K = e.name, L = e.onBlur, W = e.onChange, U = e.onClick, X = e.onFocus, Y = e.onKeyDown, Z = e.onSelect, ee = e.passwordVisibilityToggle, re = ee === void 0 ? false : ee, te = e.placeholder, oe = e.prepend, ae = oe === void 0 ? false : oe, le = e.required, ue = e.spellCheck, se = e.startAdornment, ce = e.tabIndex, de = ce === void 0 ? 0 : ce, ve = e.title, pe = e.type, be = pe === void 0 ? "text" : pe, fe = e.value, me = ne(e, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "canClear", "children", "defaultValue", "disabled", "describedBy", "elementRef", "endAdornment", "error", "inline", "inputClassName", "inputId", "inputRef", "labelledBy", "maxLength", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onSelect", "passwordVisibilityToggle", "placeholder", "prepend", "required", "spellCheck", "startAdornment", "tabIndex", "title", "type", "value" ]);
394
394
  // @docs-props-type TextPropsBase
395
395
  var ye = (0, t.useContext)(m.ControlGroupContext);
396
396
  var ge = g()({
@@ -485,7 +485,7 @@
485
485
  var t = je ? n().createElement(A, null) : n().createElement(S, null);
486
486
  var o = je ? (0, h._)("Show password") : (0, h._)("Hide password");
487
487
 
488
- return n().createElement(R, r, n().createElement(p(), {
488
+ return n().createElement(R, r, n().createElement(f(), {
489
489
  appearance: "secondary",
490
490
  "data-test": "password-toggle",
491
491
  inline: false,
@@ -529,7 +529,7 @@
529
529
  var ze = (0, t.useMemo)((function() {
530
530
  return G(G({
531
531
  role: "textbox"
532
- }, d()(me, (function(e, r) {
532
+ }, s()(me, (function(e, r) {
533
533
  return r === "role" || r.indexOf("aria-") === 0;
534
534
  }))), {}, {
535
535
  "aria-describedby": O,
@@ -539,18 +539,18 @@
539
539
  });
540
540
  }), [ O, w, B, z, me ]);
541
541
  var Ve = G({
542
- $append: a || undefined,
542
+ $append: i || undefined,
543
543
  $error: B,
544
544
  $prepend: ae || undefined
545
- }, s()(me, [ "inputRef", "onBlur", "onClick", "onChange", "onFocus", "onKeyDown", "onSelect" ].concat(M(l()(ze)))));
545
+ }, l()(me, [ "inputRef", "onBlur", "onClick", "onChange", "onFocus", "onKeyDown", "onSelect" ].concat(M(a()(ze)))));
546
546
  var Ke = je ? "password" : "text";
547
547
  var Le = re ? Ke : be;
548
548
  var Ge = G(G({}, ze), {}, {
549
549
  "data-test": "textbox",
550
- autoCapitalize: i,
551
- autoComplete: u,
552
- autoCorrect: c,
553
- autoFocus: b,
550
+ autoCapitalize: u,
551
+ autoComplete: c,
552
+ autoCorrect: d,
553
+ autoFocus: p,
554
554
  className: q,
555
555
  id: $,
556
556
  maxLength: V,
package/TextArea.js CHANGED
@@ -2,18 +2,33 @@
2
2
  // webpackBootstrap
3
3
  /******/ "use strict";
4
4
  /******/ var e = {
5
- /***/ 2907:
5
+ /***/ 3639:
6
6
  /***/ (e, r, t) => {
7
7
  // EXPORTS
8
8
  t.d(r, {
9
- default: () => /* reexport */ l
9
+ default: () => /* reexport */ s
10
10
  });
11
+ // UNUSED EXPORTS: isAllowedType, isPrimitive
11
12
  // EXTERNAL MODULE: external "react"
12
13
  var n = t(9497);
14
+ // CONCATENATED MODULE: external "lodash/isEqual"
15
+ const o = require("lodash/isEqual");
13
16
  // EXTERNAL MODULE: external "lodash/has"
14
- var o = t(5919);
15
- var a = t.n(o);
17
+ var a = t(5919);
18
+ var i = t.n(a);
16
19
  // CONCATENATED MODULE: ./src/useControlled/useControlled.tsx
20
+ function l(e) {
21
+ return e === null || e === undefined || typeof e === "boolean" || typeof e === "string" || typeof e === "number";
22
+ }
23
+ function u(e) {
24
+ if (l(e)) {
25
+ return true;
26
+ }
27
+ if (Array.isArray(e)) {
28
+ return e.every(l);
29
+ }
30
+ return false;
31
+ }
17
32
  /**
18
33
  * This is a private component not intended for use outside @splunk/react-ui
19
34
  *
@@ -23,10 +38,9 @@
23
38
  * are not happening.
24
39
  *
25
40
  * Return the controlled state of the component.
26
- */
27
- function i(e) {
28
- var r = e.componentProps, t = e.componentName, o = t === void 0 ? "this component" : t, i = e.defaultValuePropName, l = i === void 0 ? "defaultValue" : i, u = e.valuePropName, c = u === void 0 ? "value" : u;
29
- var s = (0, n.useRef)(a()(r, c));
41
+ */ function c(e) {
42
+ var r = e.componentProps, t = e.componentName, o = t === void 0 ? "this component" : t, a = e.defaultValuePropName, l = a === void 0 ? "defaultValue" : a, u = e.valuePropName, c = u === void 0 ? "value" : u;
43
+ var s = (0, n.useRef)(i()(r, c));
30
44
  var d = (0, n.useRef)(r[l]);
31
45
  (0, n.useEffect)((function() {
32
46
  if (false) {}
@@ -34,10 +48,11 @@
34
48
  (0, n.useEffect)((function() {
35
49
  if (false) {}
36
50
  if (false) {}
51
+ if (false) {}
37
52
  }), [ o, r, l, c ]);
38
53
  return s.current;
39
54
  }
40
- /* harmony default export */ const l = i;
55
+ /* harmony default export */ const s = c;
41
56
  } // CONCATENATED MODULE: ./src/useControlled/index.ts
42
57
  /***/ ,
43
58
  /***/ 5919:
@@ -139,20 +154,20 @@
139
154
  // EXTERNAL MODULE: external "react"
140
155
  var e = t(9497);
141
156
  var r = t.n(e);
142
- // CONCATENATED MODULE: external "prop-types"
143
- const o = require("prop-types");
144
- var a = t.n(o);
145
157
  // CONCATENATED MODULE: external "lodash/keys"
146
- const i = require("lodash/keys");
147
- var l = t.n(i);
158
+ const o = require("lodash/keys");
159
+ var a = t.n(o);
148
160
  // CONCATENATED MODULE: external "lodash/omit"
149
- const u = require("lodash/omit");
150
- var c = t.n(u);
161
+ const i = require("lodash/omit");
162
+ var l = t.n(i);
151
163
  // CONCATENATED MODULE: external "lodash/pickBy"
152
- const s = require("lodash/pickBy");
153
- var d = t.n(s);
164
+ const u = require("lodash/pickBy");
165
+ var c = t.n(u);
154
166
  // CONCATENATED MODULE: external "lodash/throttle"
155
- const f = require("lodash/throttle");
167
+ const s = require("lodash/throttle");
168
+ var d = t.n(s);
169
+ // CONCATENATED MODULE: external "prop-types"
170
+ const f = require("prop-types");
156
171
  var p = t.n(f);
157
172
  // CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
158
173
  const v = require("@splunk/react-ui/EventListener");
@@ -214,23 +229,23 @@
214
229
  // CONCATENATED MODULE: external "styled-components"
215
230
  const y = require("styled-components");
216
231
  var h = t.n(y);
217
- // CONCATENATED MODULE: external "@splunk/themes"
218
- const g = require("@splunk/themes");
219
232
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
220
- const x = require("@splunk/react-ui/Box");
221
- var w = t.n(x);
233
+ const g = require("@splunk/react-ui/Box");
234
+ var x = t.n(g);
235
+ // CONCATENATED MODULE: external "@splunk/themes"
236
+ const w = require("@splunk/themes");
222
237
  // CONCATENATED MODULE: ./src/TextArea/TextAreaStyles.ts
223
238
  var C = "230px";
224
- var S = g.variables.spacingSmall;
239
+ var S = w.variables.spacingSmall;
225
240
  // Because the height cannot be set from variables.inputHeight with the syncHeight/auto expanding rows
226
241
  // the value here is set to be custom to ensure the correct total height across row values
227
- var O = "5px";
228
- var A = h()(w()).withConfig({
242
+ var A = "5px";
243
+ var O = h()(x()).withConfig({
229
244
  displayName: "TextAreaStyles__StyledBox",
230
245
  componentId: "gfy8yp-0"
231
- })([ "", " display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;min-height:", ";overflow:hidden;border:", " solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);align-items:center;gap:", ";padding:0 ", ";&:hover:not([disabled]){border-color:", ";}&:not([disabled]):has(textarea:focus){box-shadow:", ";color:", ";}", " ", " ", " ", " &[data-inline]{width:", ";flex-basis:", ";}" ], g.mixins.reset("inline-flex"), g.variables.inputHeight, g.variables.inputBorderWidth, g.variables.interactiveColorBorder, g.variables.borderRadius, g.variables.interactiveColorBackground, g.variables.spacingSmall, S, g.variables.interactiveColorBorderHover, g.variables.focusShadow, g.variables.contentColorActive, (function(e) {
246
+ })([ "", " display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;min-height:", ";overflow:hidden;border:", " solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);align-items:center;gap:", ";padding:0 ", ";&:hover:not([disabled]){border-color:", ";}&:not([disabled]):has(textarea:focus){box-shadow:", ";color:", ";}", " ", " ", " ", " &[data-inline]{width:", ";flex-basis:", ";}" ], w.mixins.reset("inline-flex"), w.variables.inputHeight, w.variables.inputBorderWidth, w.variables.interactiveColorBorder, w.variables.borderRadius, w.variables.interactiveColorBackground, w.variables.spacingSmall, S, w.variables.interactiveColorBorderHover, w.variables.focusShadow, w.variables.contentColorActive, (function(e) {
232
247
  var r = e.$error;
233
- return r && (0, y.css)([ "border-color:", ";&:hover:not([disabled]){border-color:", ";}" ], g.variables.interactiveColorAccentError, g.variables.interactiveColorAccentErrorStrong);
248
+ return r && (0, y.css)([ "border-color:", ";&:hover:not([disabled]){border-color:", ";}" ], w.variables.interactiveColorAccentError, w.variables.interactiveColorAccentErrorStrong);
234
249
  }), (function(e) {
235
250
  var r = e.$append;
236
251
  return r && (0, y.css)([ "margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
@@ -239,7 +254,7 @@
239
254
  return r && (0, y.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
240
255
  }), (function(e) {
241
256
  var r = e.disabled;
242
- return r && (0, y.css)([ "background-color:", ";border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);" ], g.variables.interactiveColorBackgroundDisabled, g.variables.interactiveColorBorderDisabled);
257
+ return r && (0, y.css)([ "background-color:", ";border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);" ], w.variables.interactiveColorBackgroundDisabled, w.variables.interactiveColorBorderDisabled);
243
258
  }), C, C);
244
259
  // This wrapper ensures the textarea and shadow text area are the same width.
245
260
  // The wrapper's size is determined by the parent flex layout: the textarea and shadow
@@ -249,11 +264,11 @@
249
264
  var E = h().div.withConfig({
250
265
  displayName: "TextAreaStyles__StyledTextAreaAndShadowWrapper",
251
266
  componentId: "gfy8yp-1"
252
- })([ "", ";position:relative;overflow:hidden;flex-grow:1;" ], g.mixins.reset("inline-flex"));
267
+ })([ "", ";position:relative;overflow:hidden;flex-grow:1;" ], w.mixins.reset("inline-flex"));
253
268
  var j = h().textarea.withConfig({
254
269
  displayName: "TextAreaStyles__StyledTextArea",
255
270
  componentId: "gfy8yp-2"
256
- })([ "", ";color:", ";position:relative;resize:none;overflow:auto;white-space:pre-wrap;width:100%;line-height:20px;padding-top:", ";padding-bottom:", ";&::placeholder{color:", ";opacity:1;}&[disabled]{cursor:not-allowed;color:", ";&::placeholder{color:", ";}}" ], g.mixins.reset(), g.variables.contentColorActive, O, O, g.variables.contentColorMuted, g.variables.contentColorDisabled, g.variables.contentColorDisabled);
271
+ })([ "", ";color:", ";position:relative;resize:none;overflow:auto;white-space:pre-wrap;width:100%;line-height:20px;padding-top:", ";padding-bottom:", ";&::placeholder{color:", ";opacity:1;}&[disabled]{cursor:not-allowed;color:", ";&::placeholder{color:", ";}}" ], w.mixins.reset(), w.variables.contentColorActive, A, A, w.variables.contentColorMuted, w.variables.contentColorDisabled, w.variables.contentColorDisabled);
257
272
  var I = h()(j).withConfig({
258
273
  displayName: "TextAreaStyles__StyledTextAreaShadow",
259
274
  componentId: "gfy8yp-3"
@@ -261,12 +276,12 @@
261
276
  var k = h().div.withConfig({
262
277
  displayName: "TextAreaStyles__StyledAdornment",
263
278
  componentId: "gfy8yp-4"
264
- })([ "align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;pointer-events:none;color:", ";padding:", " 0;", ";" ], g.variables.contentColorMuted, O, (function(e) {
279
+ })([ "align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;pointer-events:none;color:", ";padding:", " 0;", ";" ], w.variables.contentColorMuted, A, (function(e) {
265
280
  var r = e.$disabled;
266
- return r && (0, y.css)([ "cursor:not-allowed;color:", ";" ], g.variables.contentColorDisabled);
281
+ return r && (0, y.css)([ "cursor:not-allowed;color:", ";" ], w.variables.contentColorDisabled);
267
282
  }));
268
- // EXTERNAL MODULE: ./src/useControlled/index.ts + 1 modules
269
- var P = t(2907);
283
+ // EXTERNAL MODULE: ./src/useControlled/index.ts + 2 modules
284
+ var P = t(3639);
270
285
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
271
286
  /* eslint-disable @typescript-eslint/no-empty-function */
272
287
  var T = {
@@ -328,10 +343,10 @@
328
343
  return e;
329
344
  }
330
345
  var N = B();
331
- /* harmony default export */ const M = /* unused pure expression or super */ null && N;
346
+ /* harmony default export */ const q = /* unused pure expression or super */ null && N;
332
347
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
333
348
  /* eslint-disable @typescript-eslint/no-empty-function */
334
- var q = {
349
+ var M = {
335
350
  document: T,
336
351
  navigator: {
337
352
  userAgent: ""
@@ -387,7 +402,7 @@
387
402
  }
388
403
  };
389
404
  function D() {
390
- var e = typeof window !== "undefined" ? window : q;
405
+ var e = typeof window !== "undefined" ? window : M;
391
406
  return e;
392
407
  }
393
408
  var _ = D();
@@ -556,45 +571,45 @@
556
571
  /** @public */
557
572
  /** @public */
558
573
  /** @public */ var ae = {
559
- append: a().bool,
560
- autoCapitalize: a().string,
561
- autoComplete: a().string,
562
- autoCorrect: a().string,
563
- autoFocus: a().bool,
564
- children: a().node,
565
- defaultValue: a().string,
566
- describedBy: a().string,
567
- disabled: a().bool,
568
- elementRef: a().oneOfType([ a().func, a().object ]),
569
- endAdornment: a().node,
570
- error: a().bool,
571
- inline: a().bool,
574
+ append: p().bool,
575
+ autoCapitalize: p().string,
576
+ autoComplete: p().string,
577
+ autoCorrect: p().string,
578
+ autoFocus: p().bool,
579
+ children: p().node,
580
+ defaultValue: p().string,
581
+ describedBy: p().string,
582
+ disabled: p().bool,
583
+ elementRef: p().oneOfType([ p().func, p().object ]),
584
+ endAdornment: p().node,
585
+ error: p().bool,
586
+ inline: p().bool,
572
587
  /** @private. */
573
- inputClassName: a().string,
574
- inputId: a().string,
575
- inputRef: a().oneOfType([ a().func, a().object ]),
576
- labelledBy: a().string,
577
- maxLength: a().number,
578
- name: a().string,
579
- onBlur: a().func,
580
- onChange: a().func,
581
- onFocus: a().func,
582
- onKeyDown: a().func,
583
- onSelect: a().func,
584
- onInputClick: a().func,
585
- prepend: a().bool,
588
+ inputClassName: p().string,
589
+ inputId: p().string,
590
+ inputRef: p().oneOfType([ p().func, p().object ]),
591
+ labelledBy: p().string,
592
+ maxLength: p().number,
593
+ name: p().string,
594
+ onBlur: p().func,
595
+ onChange: p().func,
596
+ onFocus: p().func,
597
+ onKeyDown: p().func,
598
+ onSelect: p().func,
599
+ onInputClick: p().func,
600
+ prepend: p().bool,
586
601
  /** @private. */
587
- required: a().bool,
588
- rowsMax: a().number,
589
- rowsMin: a().number,
590
- spellCheck: a().bool,
591
- tabIndex: a().number,
592
- startAdornment: a().node,
593
- value: a().string
602
+ required: p().bool,
603
+ rowsMax: p().number,
604
+ rowsMin: p().number,
605
+ spellCheck: p().bool,
606
+ tabIndex: p().number,
607
+ startAdornment: p().node,
608
+ value: p().string
594
609
  };
595
610
  var ie = function e() {};
596
611
  /** Note: TextArea places role and aria props onto the input. All other props are placed on the wrapper. */ function le(t) {
597
- var n = t.append, o = n === void 0 ? false : n, a = t.autoCapitalize, i = t.autoComplete, u = t.autoCorrect, s = t.autoFocus, f = s === void 0 ? false : s, v = t.children, y = t.disabled, h = y === void 0 ? false : y, g = t.describedBy, x = t.defaultValue, w = t.elementRef, C = t.error, S = C === void 0 ? false : C, O = t.endAdornment, T = t.inline, B = T === void 0 ? false : T, N = t.inputClassName, M = t.inputId, q = t.inputRef, D = t.labelledBy, _ = t.maxLength, V = t.name, z = t.onBlur, K = t.onChange, H = t.onFocus, W = t.onInputClick, G = t.onKeyDown, J = t.onSelect, Q = t.placeholder, Y = t.prepend, Z = Y === void 0 ? false : Y, ee = t.required, re = t.rowsMin, te = re === void 0 ? 2 : re, oe = t.rowsMax, ae = oe === void 0 ? 8 : oe, le = t.spellCheck, ue = t.startAdornment, ce = t.tabIndex, se = ce === void 0 ? 0 : ce, de = t.value, fe = ne(t, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "children", "disabled", "describedBy", "defaultValue", "elementRef", "error", "endAdornment", "inline", "inputClassName", "inputId", "inputRef", "labelledBy", "maxLength", "name", "onBlur", "onChange", "onFocus", "onInputClick", "onKeyDown", "onSelect", "placeholder", "prepend", "required", "rowsMin", "rowsMax", "spellCheck", "startAdornment", "tabIndex", "value" ]);
612
+ var n = t.append, o = n === void 0 ? false : n, i = t.autoCapitalize, u = t.autoComplete, s = t.autoCorrect, f = t.autoFocus, p = f === void 0 ? false : f, v = t.children, y = t.disabled, h = y === void 0 ? false : y, g = t.describedBy, x = t.defaultValue, w = t.elementRef, C = t.error, S = C === void 0 ? false : C, A = t.endAdornment, T = t.inline, B = T === void 0 ? false : T, N = t.inputClassName, q = t.inputId, M = t.inputRef, D = t.labelledBy, _ = t.maxLength, V = t.name, z = t.onBlur, K = t.onChange, H = t.onFocus, W = t.onInputClick, G = t.onKeyDown, J = t.onSelect, Q = t.placeholder, Y = t.prepend, Z = Y === void 0 ? false : Y, ee = t.required, re = t.rowsMin, te = re === void 0 ? 2 : re, oe = t.rowsMax, ae = oe === void 0 ? 8 : oe, le = t.spellCheck, ue = t.startAdornment, ce = t.tabIndex, se = ce === void 0 ? 0 : ce, de = t.value, fe = ne(t, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "children", "disabled", "describedBy", "defaultValue", "elementRef", "error", "endAdornment", "inline", "inputClassName", "inputId", "inputRef", "labelledBy", "maxLength", "name", "onBlur", "onChange", "onFocus", "onInputClick", "onKeyDown", "onSelect", "placeholder", "prepend", "required", "rowsMin", "rowsMax", "spellCheck", "startAdornment", "tabIndex", "value" ]);
598
613
  // @docs-props-type TextAreaPropsBase
599
614
  (0, e.useEffect)((function() {
600
615
  if (false) {}
@@ -608,11 +623,11 @@
608
623
  var he = (0, e.useState)(), ge = X(he, 2), xe = ge[0], we = ge[1];
609
624
  var Ce = (0, e.useRef)(null);
610
625
  var Se = (0, e.useRef)(null);
611
- var Oe = pe ? de : me;
612
- var Ae = (0, e.useCallback)((function(e) {
626
+ var Ae = pe ? de : me;
627
+ var Oe = (0, e.useCallback)((function(e) {
613
628
  Ce.current = e;
614
- F(q, e);
615
- }), [ q, Ce ]);
629
+ F(M, e);
630
+ }), [ M, Ce ]);
616
631
  var Ee = (0, e.useCallback)((function(e) {
617
632
  G === null || G === void 0 ? void 0 : G(e);
618
633
  }), [ G ]);
@@ -658,33 +673,33 @@
658
673
  }
659
674
  }), [ we, Se, ae, te, xe ]);
660
675
  var Ne = (0, e.useMemo)((function() {
661
- return p()(Be, 100);
676
+ return d()(Be, 100);
662
677
  }), [ Be ]);
663
678
  (0, e.useLayoutEffect)((function() {
664
679
  Be();
665
680
  }));
666
- var Me = U(U({}, d()(fe, (function(e, r) {
681
+ var qe = U(U({}, c()(fe, (function(e, r) {
667
682
  return r === "role" || r.indexOf("aria-") === 0;
668
683
  }))), {}, {
669
684
  "aria-describedby": g,
670
685
  "aria-labelledby": D,
671
686
  "aria-invalid": S || undefined
672
687
  });
673
- var qe = c()(fe, [ "inputRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onSelect", "onInputClick" ].concat(L(l()(Me))));
688
+ var Me = l()(fe, [ "inputRef", "onBlur", "onChange", "onFocus", "onKeyDown", "onSelect", "onInputClick" ].concat(L(a()(qe))));
674
689
  var De = {
675
690
  $append: o || undefined,
676
691
  $error: S,
677
692
  $prepend: Z || undefined
678
693
  };
679
- var _e = U(U({}, Me), {}, {
694
+ var _e = U(U({}, qe), {}, {
680
695
  "data-test": "textbox",
681
- autoCapitalize: a,
682
- autoComplete: i,
683
- autoCorrect: u,
684
- autoFocus: f,
696
+ autoCapitalize: i,
697
+ autoComplete: u,
698
+ autoCorrect: s,
699
+ autoFocus: p,
685
700
  className: N,
686
701
  disabled: h,
687
- id: M,
702
+ id: q,
688
703
  maxLength: _,
689
704
  name: V,
690
705
  onBlur: Pe,
@@ -695,27 +710,27 @@
695
710
  onClick: Ie,
696
711
  placeholder: Q,
697
712
  // support HTML attribute
698
- ref: Ae,
713
+ ref: Oe,
699
714
  required: ee,
700
715
  spellCheck: le,
701
716
  style: {
702
717
  height: xe
703
718
  },
704
719
  tabIndex: se,
705
- value: Oe,
720
+ value: Ae,
706
721
  $error: S
707
722
  });
708
723
 
709
- return r().createElement(r().Fragment, null, r().createElement(A, $({
724
+ return r().createElement(r().Fragment, null, r().createElement(O, $({
710
725
  tabIndex: -1,
711
726
  "data-test": "text-area",
712
- "data-test-value": Oe,
727
+ "data-test-value": Ae,
713
728
  "data-test-disabled": h ? "disabled" : undefined,
714
729
  elementRef: w,
715
730
  flex: true,
716
731
  inline: B,
717
732
  disabled: h
718
- }, qe, De), ue && r().createElement(k, {
733
+ }, Me, De), ue && r().createElement(k, {
719
734
  $disabled: !!h
720
735
  }, ue), r().createElement(E, null, r().createElement(I, {
721
736
  "aria-hidden": "true",
@@ -723,10 +738,10 @@
723
738
  onChange: ie,
724
739
  rows: te,
725
740
  ref: Se,
726
- value: Q && !Oe ? Q : Oe
727
- }), r().createElement(j, _e)), v, O && r().createElement(k, {
741
+ value: Q && !Ae ? Q : Ae
742
+ }), r().createElement(j, _e)), v, A && r().createElement(k, {
728
743
  $disabled: !!h
729
- }, O)), r().createElement(b(), {
744
+ }, A)), r().createElement(b(), {
730
745
  target: R,
731
746
  eventType: "resize",
732
747
  listener: Ne