@splunk/react-ui 4.38.0 → 4.39.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 (136) 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 +28 -0
  11. package/Calendar.js +353 -414
  12. package/Card.js +183 -243
  13. package/CardLayout.js +86 -83
  14. package/Chip.js +104 -122
  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 +165 -194
  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 +92 -38
  39. package/Markdown.js +288 -347
  40. package/Menu.js +506 -532
  41. package/Message.js +173 -196
  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 +1589 -1902
  47. package/Number.js +159 -178
  48. package/Paginator.js +296 -335
  49. package/Paragraph.js +24 -32
  50. package/Popover.js +448 -441
  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 +1077 -1345
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +132 -145
  62. package/SlidingPanels.js +238 -270
  63. package/SplitButton.js +222 -245
  64. package/StaticContent.js +68 -76
  65. package/StepBar.js +206 -205
  66. package/Switch.js +176 -205
  67. package/TabBar.js +222 -258
  68. package/TabLayout.js +114 -139
  69. package/Table.js +2017 -2180
  70. package/Text.js +379 -493
  71. package/TextArea.js +411 -441
  72. package/Tooltip.js +116 -132
  73. package/TransitionOpen.js +160 -178
  74. package/Tree.js +268 -287
  75. package/Typography.js +48 -52
  76. package/WaitSpinner.js +60 -68
  77. package/cypress/support/commands.ts +9 -0
  78. package/cypress/support/index.d.ts +6 -0
  79. package/cypress/tsconfig.cypress.json +1 -0
  80. package/docker-compose.yml +0 -1
  81. package/package.json +14 -14
  82. package/types/src/Button/Button.d.ts +5 -1
  83. package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -2
  84. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -1
  85. package/types/src/Color/Color.d.ts +2 -2
  86. package/types/src/Color/Palette.d.ts +4 -2
  87. package/types/src/ComboBox/Option.d.ts +1 -1
  88. package/types/src/ControlGroup/ControlGroup.d.ts +1 -2
  89. package/types/src/Date/Date.d.ts +2 -2
  90. package/types/src/File/File.d.ts +2 -3
  91. package/types/src/File/Retry.d.ts +1 -2
  92. package/types/src/Menu/Item.d.ts +18 -5
  93. package/types/src/Menu/Menu.d.ts +3 -3
  94. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  95. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  96. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  97. package/types/src/Multiselect/Option.d.ts +2 -0
  98. package/types/src/Number/Number.d.ts +3 -3
  99. package/types/src/Popover/Popover.d.ts +3 -4
  100. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  101. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  102. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  103. package/types/src/Search/Option.d.ts +9 -3
  104. package/types/src/Select/Option.d.ts +3 -1
  105. package/types/src/Select/OptionBase.d.ts +7 -5
  106. package/types/src/Select/Select.d.ts +1 -1
  107. package/types/src/Select/SelectAllOption.d.ts +4 -4
  108. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  109. package/types/src/Slider/Slider.d.ts +2 -2
  110. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  111. package/types/src/StepBar/Step.d.ts +1 -2
  112. package/types/src/Switch/Switch.d.ts +0 -1
  113. package/types/src/TabBar/Tab.d.ts +1 -1
  114. package/types/src/TabBar/TabBar.d.ts +3 -1
  115. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  116. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  117. package/types/src/Table/Table.d.ts +0 -1
  118. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  119. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  120. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  121. package/types/src/Text/Text.d.ts +2 -2
  122. package/types/src/TextArea/TextArea.d.ts +2 -2
  123. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  124. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  125. package/useForceUpdate.js +30 -32
  126. package/useKeyPress.js +1 -1
  127. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  128. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  129. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  130. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  131. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  132. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  133. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  134. /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
  135. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  136. /package/types/src/TabBar/docs/examples/{prisma/Disabled.d.ts → Disabled.d.ts} +0 -0
package/Text.js CHANGED
@@ -61,7 +61,7 @@
61
61
  e.r(t);
62
62
  // EXPORTS
63
63
  e.d(t, {
64
- default: () => /* reexport */ Me
64
+ default: () => /* reexport */ Be
65
65
  });
66
66
  // CONCATENATED MODULE: external "react"
67
67
  const r = require("react");
@@ -76,315 +76,221 @@
76
76
  const s = require("lodash/keys");
77
77
  var c = e.n(s);
78
78
  // CONCATENATED MODULE: external "lodash/omit"
79
- const d = require("lodash/omit");
80
- var p = e.n(d);
79
+ const p = require("lodash/omit");
80
+ var d = e.n(p);
81
81
  // CONCATENATED MODULE: external "lodash/pickBy"
82
82
  const u = require("lodash/pickBy");
83
- var f = e.n(u);
83
+ var m = e.n(u);
84
84
  // CONCATENATED MODULE: external "@splunk/react-ui/ControlGroup"
85
- const m = require("@splunk/react-ui/ControlGroup");
85
+ const f = require("@splunk/react-ui/ControlGroup");
86
86
  // CONCATENATED MODULE: external "@splunk/react-icons/Cross"
87
- const h = require("@splunk/react-icons/Cross");
88
- var v = e.n(h);
87
+ const v = require("@splunk/react-icons/Cross");
88
+ var h = e.n(v);
89
89
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
90
90
  const b = require("@splunk/react-icons/enterprise/Close");
91
- var C = e.n(b);
91
+ var y = e.n(b);
92
92
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Search"
93
- const y = require("@splunk/react-icons/enterprise/Search");
94
- var g = e.n(y);
93
+ const g = require("@splunk/react-icons/enterprise/Search");
94
+ var x = e.n(g);
95
95
  // CONCATENATED MODULE: external "@splunk/react-icons/Magnifier"
96
- const x = require("@splunk/react-icons/Magnifier");
97
- var w = e.n(x);
96
+ const w = require("@splunk/react-icons/Magnifier");
97
+ var C = e.n(w);
98
98
  // CONCATENATED MODULE: external "@splunk/react-ui/ScreenReaderContent"
99
99
  const k = require("@splunk/react-ui/ScreenReaderContent");
100
- var L = e.n(k);
100
+ var S = e.n(k);
101
101
  // CONCATENATED MODULE: external "@splunk/react-ui/TextArea"
102
- const S = require("@splunk/react-ui/TextArea");
103
- var E = e.n(S);
102
+ const A = require("@splunk/react-ui/TextArea");
103
+ var E = e.n(A);
104
104
  // CONCATENATED MODULE: external "@splunk/themes"
105
- const A = require("@splunk/themes");
105
+ const O = require("@splunk/themes");
106
106
  // CONCATENATED MODULE: external "@splunk/ui-utils/style"
107
- const O = require("@splunk/ui-utils/style");
107
+ const T = require("@splunk/ui-utils/style");
108
108
  // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
109
- const T = require("@splunk/ui-utils/i18n");
110
- // CONCATENATED MODULE: external "@splunk/react-icons/SVGEnterprise"
111
- const I = require("@splunk/react-icons/SVGEnterprise");
112
- var j = e.n(I);
109
+ const I = require("@splunk/ui-utils/i18n");
110
+ // CONCATENATED MODULE: external "@splunk/react-icons/EyeSlashed"
111
+ const $ = require("@splunk/react-icons/EyeSlashed");
112
+ var j = e.n($);
113
113
  // CONCATENATED MODULE: ./src/Text/IconOutlinedHide.tsx
114
- function $() {
115
- $ = Object.assign || function(e) {
116
- for (var t = 1; t < arguments.length; t++) {
117
- var r = arguments[t];
118
- for (var n in r) {
119
- if (Object.prototype.hasOwnProperty.call(r, n)) {
120
- e[n] = r[n];
121
- }
122
- }
123
- }
124
- return e;
125
- };
126
- return $.apply(this, arguments);
127
- }
128
- function M(e) {
129
- var t = (0, A.useSplunkTheme)(), r = t.family, i = t.density;
130
- if (r === "enterprise") {
131
-
132
- return n().createElement(j(), $({
133
- viewBox: "0 0 24 24",
134
- size: 1.2,
135
- screenReaderText: (0, T._)("Hide password")
136
- }, e), n().createElement("path", {
137
- fillRule: "evenodd",
138
- clipRule: "evenodd",
139
- d: "M4.00691 3.89287C3.61638 3.50234 2.98322 3.50235 2.5927 3.89287C2.20217 4.2834 2.20217 4.91656 2.5927 5.30708L4.35908 7.07346C3.63043 7.75302 2.99174 8.52671 2.46085 9.37612L1.18794 11.4128C0.963393 11.7721 0.963395 12.2279 1.18794 12.5872L2.46085 14.6239C3.3213 16.0006 4.46494 17.1784 5.81576 18.0789L5.94933 18.1679C7.74121 19.3625 9.8466 20 12.0002 20C13.5116 20 14.9993 19.686 16.3715 19.0858L18.5982 21.3125C18.9887 21.703 19.6218 21.703 20.0124 21.3125C20.4029 20.922 20.4029 20.2888 20.0124 19.8983L4.00691 3.89287ZM14.8257 17.54L13.0353 15.7496C12.7056 15.8405 12.3583 15.889 11.9997 15.889C9.85196 15.889 8.11084 14.1479 8.11084 12.0001C8.11084 11.6415 8.15937 11.2943 8.25022 10.9646L5.77433 8.48871C5.15179 9.06078 4.60729 9.71541 4.15685 10.4361L3.17943 12L4.15685 13.5639C4.86685 14.6999 5.81053 15.6717 6.92516 16.4148L7.05873 16.5038C8.52208 17.4794 10.2415 18 12.0002 18C12.9658 18 13.9196 17.8431 14.8257 17.54Z",
140
- fill: "currentColor"
141
- }), n().createElement("path", {
142
- d: "M10.9657 8.25019L15.7496 13.0342C15.8402 12.7049 15.8886 12.3581 15.8886 12.0001C15.8886 9.85232 14.1475 8.11121 11.9997 8.11121C11.6417 8.11121 11.2949 8.15959 10.9657 8.25019Z",
143
- fill: "currentColor"
144
- }), n().createElement("path", {
145
- d: "M19.8435 13.5639C19.3932 14.2844 18.8488 14.939 18.2264 15.5109L19.6417 16.9262C20.3702 16.2467 21.0087 15.4731 21.5395 14.6239L22.8124 12.5872C23.037 12.2279 23.037 11.7721 22.8124 11.4128L21.5395 9.37612C20.6791 7.99942 19.5354 6.82164 18.1846 5.9211L18.051 5.83205C16.2591 4.63746 14.1538 4 12.0002 4C10.489 4 9.00149 4.31389 7.62941 4.91392L9.17525 6.45977C10.0811 6.15687 11.0347 6 12.0002 6C13.7589 6 15.4783 6.52059 16.9416 7.49615L17.0752 7.5852C18.1898 8.32829 19.1335 9.30013 19.8435 10.4361L20.8209 12L19.8435 13.5639Z",
146
- fill: "currentColor"
147
- }));
148
- }
149
- var a = i === "compact" ? "20" : "24";
114
+ function P() {
115
+ var e = (0, O.useSplunkTheme)(), t = e.family, r = e.density;
116
+ var i = r === "compact" ? "20" : "24";
117
+ var a = "1.2em";
118
+ var o = t === "prisma" ? i : a;
150
119
 
151
- return n().createElement("svg", {
152
- width: a,
153
- height: a,
154
- viewBox: "0 0 24 24",
155
- xmlns: "http://www.w3.org/2000/svg",
156
- style: {
157
- display: "block"
158
- }
159
- }, n().createElement("title", null, (0, T._)("Hide password")), n().createElement("path", {
160
- fillRule: "evenodd",
161
- clipRule: "evenodd",
162
- d: "M4.00691 3.89287C3.61638 3.50234 2.98322 3.50235 2.5927 3.89287C2.20217 4.2834 2.20217 4.91656 2.5927 5.30708L4.35908 7.07346C3.63043 7.75302 2.99174 8.52671 2.46085 9.37612L1.18794 11.4128C0.963393 11.7721 0.963395 12.2279 1.18794 12.5872L2.46085 14.6239C3.3213 16.0006 4.46494 17.1784 5.81576 18.0789L5.94933 18.1679C7.74121 19.3625 9.8466 20 12.0002 20C13.5116 20 14.9993 19.686 16.3715 19.0858L18.5982 21.3125C18.9887 21.703 19.6218 21.703 20.0124 21.3125C20.4029 20.922 20.4029 20.2888 20.0124 19.8983L4.00691 3.89287ZM14.8257 17.54L13.0353 15.7496C12.7056 15.8405 12.3583 15.889 11.9997 15.889C9.85196 15.889 8.11084 14.1479 8.11084 12.0001C8.11084 11.6415 8.15937 11.2943 8.25022 10.9646L5.77433 8.48871C5.15179 9.06078 4.60729 9.71541 4.15685 10.4361L3.17943 12L4.15685 13.5639C4.86685 14.6999 5.81053 15.6717 6.92516 16.4148L7.05873 16.5038C8.52208 17.4794 10.2415 18 12.0002 18C12.9658 18 13.9196 17.8431 14.8257 17.54Z",
163
- fill: "currentColor"
164
- }), n().createElement("path", {
165
- d: "M10.9657 8.25019L15.7496 13.0342C15.8402 12.7049 15.8886 12.3581 15.8886 12.0001C15.8886 9.85232 14.1475 8.11121 11.9997 8.11121C11.6417 8.11121 11.2949 8.15959 10.9657 8.25019Z",
166
- fill: "currentColor"
167
- }), n().createElement("path", {
168
- d: "M19.8435 13.5639C19.3932 14.2844 18.8488 14.939 18.2264 15.5109L19.6417 16.9262C20.3702 16.2467 21.0087 15.4731 21.5395 14.6239L22.8124 12.5872C23.037 12.2279 23.037 11.7721 22.8124 11.4128L21.5395 9.37612C20.6791 7.99942 19.5354 6.82164 18.1846 5.9211L18.051 5.83205C16.2591 4.63746 14.1538 4 12.0002 4C10.489 4 9.00149 4.31389 7.62941 4.91392L9.17525 6.45977C10.0811 6.15687 11.0347 6 12.0002 6C13.7589 6 15.4783 6.52059 16.9416 7.49615L17.0752 7.5852C18.1898 8.32829 19.1335 9.30013 19.8435 10.4361L20.8209 12L19.8435 13.5639Z",
169
- fill: "currentColor"
170
- }));
120
+ return n().createElement(j(), {
121
+ width: o,
122
+ height: o
123
+ });
171
124
  }
172
- /* harmony default export */ const R = M;
125
+ /* harmony default export */ const _ = P;
126
+ // CONCATENATED MODULE: external "@splunk/react-icons/Eye"
127
+ const D = require("@splunk/react-icons/Eye");
128
+ var B = e.n(D);
173
129
  // CONCATENATED MODULE: ./src/Text/IconOutlinedView.tsx
174
- function _() {
175
- _ = Object.assign || function(e) {
176
- for (var t = 1; t < arguments.length; t++) {
177
- var r = arguments[t];
178
- for (var n in r) {
179
- if (Object.prototype.hasOwnProperty.call(r, n)) {
180
- e[n] = r[n];
181
- }
182
- }
183
- }
184
- return e;
185
- };
186
- return _.apply(this, arguments);
187
- }
188
- function P(e) {
189
- var t = (0, A.useSplunkTheme)(), r = t.family, i = t.density;
190
- if (r === "enterprise") {
191
-
192
- return n().createElement(j(), _({
193
- viewBox: "0 0 24 24",
194
- size: 1.2,
195
- screenReaderText: (0, T._)("View password")
196
- }, e), n().createElement("path", {
197
- fillRule: "evenodd",
198
- clipRule: "evenodd",
199
- d: "M15.7745 11.8654C15.7745 14.0132 14.0334 15.7543 11.8857 15.7543C9.73788 15.7543 7.99677 14.0132 7.99677 11.8654C7.99677 9.71762 9.73788 7.9765 11.8857 7.9765C14.0334 7.9765 15.7745 9.71762 15.7745 11.8654ZM13.7745 11.8654C13.7745 12.9086 12.9289 13.7543 11.8857 13.7543C10.8424 13.7543 9.99677 12.9086 9.99677 11.8654C9.99677 10.8222 10.8424 9.9765 11.8857 9.9765C12.9289 9.9765 13.7745 10.8222 13.7745 11.8654Z",
200
- fill: "currentColor"
201
- }), n().createElement("path", {
202
- fillRule: "evenodd",
203
- clipRule: "evenodd",
204
- d: "M11.8859 3.86536C9.73235 3.86536 7.62695 4.50282 5.83507 5.69741L5.7015 5.78646C4.35068 6.687 3.20704 7.86477 2.3466 9.24148L1.07369 11.2781C0.849136 11.6374 0.849137 12.0933 1.07369 12.4526L2.3466 14.4892C3.20704 15.8659 4.35068 17.0437 5.7015 17.9443L5.83507 18.0333C7.62695 19.2279 9.73235 19.8654 11.8859 19.8654C14.0395 19.8654 16.1449 19.2279 17.9368 18.0333L18.0703 17.9443C19.4212 17.0437 20.5648 15.8659 21.4252 14.4892L22.6982 12.4526C22.9227 12.0933 22.9227 11.6374 22.6982 11.2781L21.4252 9.24148C20.5648 7.86477 19.4212 6.687 18.0703 5.78645L17.9368 5.69741C16.1449 4.50282 14.0395 3.86536 11.8859 3.86536ZM6.94447 7.36151C8.40782 6.38594 10.1272 5.86536 11.8859 5.86536C13.6446 5.86536 15.364 6.38594 16.8274 7.36151L16.9609 7.45056C18.0756 8.19364 19.0193 9.16549 19.7293 10.3015L20.7067 11.8654L19.7293 13.4292C19.0193 14.5652 18.0756 15.5371 16.9609 16.2802L16.8274 16.3692C15.364 17.3448 13.6446 17.8654 11.8859 17.8654C10.1272 17.8654 8.40782 17.3448 6.94447 16.3692L6.8109 16.2802C5.69627 15.5371 4.75259 14.5652 4.04259 13.4292L3.06517 11.8654L4.04259 10.3015C4.75259 9.16549 5.69627 8.19364 6.8109 7.45056L6.94447 7.36151Z",
205
- fill: "currentColor"
206
- }));
207
- }
208
- var a = i === "compact" ? "20" : "24";
130
+ function N() {
131
+ var e = (0, O.useSplunkTheme)(), t = e.family, r = e.density;
132
+ var i = r === "compact" ? "20" : "24";
133
+ var a = "1.2em";
134
+ var o = t === "prisma" ? i : a;
209
135
 
210
- return n().createElement("svg", {
211
- width: a,
212
- height: a,
213
- viewBox: "0 0 24 24",
214
- xmlns: "http://www.w3.org/2000/svg",
215
- style: {
216
- display: "block"
217
- }
218
- }, n().createElement("title", null, (0, T._)("View password")), n().createElement("path", {
219
- fillRule: "evenodd",
220
- clipRule: "evenodd",
221
- d: "M15.7745 11.8654C15.7745 14.0132 14.0334 15.7543 11.8857 15.7543C9.73788 15.7543 7.99677 14.0132 7.99677 11.8654C7.99677 9.71762 9.73788 7.9765 11.8857 7.9765C14.0334 7.9765 15.7745 9.71762 15.7745 11.8654ZM13.7745 11.8654C13.7745 12.9086 12.9289 13.7543 11.8857 13.7543C10.8424 13.7543 9.99677 12.9086 9.99677 11.8654C9.99677 10.8222 10.8424 9.9765 11.8857 9.9765C12.9289 9.9765 13.7745 10.8222 13.7745 11.8654Z",
222
- fill: "currentColor"
223
- }), n().createElement("path", {
224
- fillRule: "evenodd",
225
- clipRule: "evenodd",
226
- d: "M11.8859 3.86536C9.73235 3.86536 7.62695 4.50282 5.83507 5.69741L5.7015 5.78646C4.35068 6.687 3.20704 7.86477 2.3466 9.24148L1.07369 11.2781C0.849136 11.6374 0.849137 12.0933 1.07369 12.4526L2.3466 14.4892C3.20704 15.8659 4.35068 17.0437 5.7015 17.9443L5.83507 18.0333C7.62695 19.2279 9.73235 19.8654 11.8859 19.8654C14.0395 19.8654 16.1449 19.2279 17.9368 18.0333L18.0703 17.9443C19.4212 17.0437 20.5648 15.8659 21.4252 14.4892L22.6982 12.4526C22.9227 12.0933 22.9227 11.6374 22.6982 11.2781L21.4252 9.24148C20.5648 7.86477 19.4212 6.687 18.0703 5.78645L17.9368 5.69741C16.1449 4.50282 14.0395 3.86536 11.8859 3.86536ZM6.94447 7.36151C8.40782 6.38594 10.1272 5.86536 11.8859 5.86536C13.6446 5.86536 15.364 6.38594 16.8274 7.36151L16.9609 7.45056C18.0756 8.19364 19.0193 9.16549 19.7293 10.3015L20.7067 11.8654L19.7293 13.4292C19.0193 14.5652 18.0756 15.5371 16.9609 16.2802L16.8274 16.3692C15.364 17.3448 13.6446 17.8654 11.8859 17.8654C10.1272 17.8654 8.40782 17.3448 6.94447 16.3692L6.8109 16.2802C5.69627 15.5371 4.75259 14.5652 4.04259 13.4292L3.06517 11.8654L4.04259 10.3015C4.75259 9.16549 5.69627 8.19364 6.8109 7.45056L6.94447 7.36151Z",
227
- fill: "currentColor"
228
- }));
136
+ return n().createElement(B(), {
137
+ width: o,
138
+ height: o
139
+ });
229
140
  }
230
- /* harmony default export */ const D = P;
141
+ /* harmony default export */ const q = N;
231
142
  // CONCATENATED MODULE: external "styled-components"
232
- const B = require("styled-components");
233
- var N = e.n(B);
143
+ const M = require("styled-components");
144
+ var R = e.n(M);
234
145
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
235
- const q = require("@splunk/react-ui/Box");
236
- var V = e.n(q);
146
+ const W = require("@splunk/react-ui/Box");
147
+ var V = e.n(W);
237
148
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
238
- const W = require("@splunk/react-ui/Button");
239
- var z = e.n(W);
149
+ const z = require("@splunk/react-ui/Button");
150
+ var F = e.n(z);
240
151
  // CONCATENATED MODULE: ./src/Text/TextStyles.ts
241
- var Z = (0, B.css)([ "&,&[type]{cursor:not-allowed;color:", ";&::placeholder{color:", ";}}" ], (0,
242
- A.pick)({
243
- enterprise: A.variables.textDisabledColor,
244
- prisma: A.variables.contentColorDisabled
245
- }), (0, A.pick)({
246
- enterprise: A.variables.textDisabledColor,
247
- prisma: A.variables.contentColorDisabled
152
+ var H = (0, M.css)([ "&,&[type]{cursor:not-allowed;color:", ";&::placeholder{color:", ";}}" ], (0,
153
+ O.pick)({
154
+ enterprise: O.variables.textDisabledColor,
155
+ prisma: O.variables.contentColorDisabled
156
+ }), (0, O.pick)({
157
+ enterprise: O.variables.textDisabledColor,
158
+ prisma: O.variables.contentColorDisabled
248
159
  }));
249
- var F = (0, B.css)([ "border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);", "" ], A.variables.interactiveColorBorderDisabled, (0,
250
- A.pick)({
251
- enterprise: (0, B.css)([ "background-color:", ";" ], A.variables.interactiveColorBackgroundDisabled)
160
+ var K = (0, M.css)([ "border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);", "" ], O.variables.interactiveColorBorderDisabled, (0,
161
+ O.pick)({
162
+ enterprise: (0, M.css)([ "background-color:", ";" ], O.variables.interactiveColorBackgroundDisabled)
252
163
  }));
253
- var H = (0, B.css)([ "border-radius:", ";cursor:pointer;font-size:0.83333em;flex-grow:0;", ";&:not([disabled]){color:", ";}" ], (0,
254
- A.pick)({
255
- enterprise: A.variables.borderRadius,
164
+ var L = (0, M.css)([ "border-radius:", ";cursor:pointer;font-size:0.83333em;flex-grow:0;", ";&:not([disabled]){color:", ";}" ], (0,
165
+ O.pick)({
166
+ enterprise: O.variables.borderRadius,
256
167
  prisma: "50%"
257
- }), (0, A.pick)({
258
- enterprise: (0, B.css)([ "width:", ";height:", ";" ], A.variables.inputHeight, A.variables.inputHeight),
168
+ }), (0, O.pick)({
169
+ enterprise: (0, M.css)([ "width:", ";height:", ";" ], O.variables.inputHeight, O.variables.inputHeight),
259
170
  prisma: {
260
- comfortable: (0, B.css)([ "width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;" ]),
261
- compact: (0, B.css)([ "width:22px;min-width:22px;min-height:22px;margin:8px;padding:0;" ])
171
+ comfortable: (0, M.css)([ "width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;" ]),
172
+ compact: (0, M.css)([ "width:22px;min-width:22px;min-height:22px;margin:8px;padding:0;" ])
262
173
  }
263
- }), (0, A.pick)({
174
+ }), (0, O.pick)({
264
175
  enterprise: {
265
- light: A.variables.gray60,
266
- dark: A.variables.white
176
+ light: O.variables.gray60,
177
+ dark: O.variables.white
267
178
  },
268
- prisma: A.variables.contentColorMuted
179
+ prisma: O.variables.contentColorMuted
269
180
  }));
270
- var K = N()(z()).withConfig({
181
+ var G = R()(F()).withConfig({
271
182
  displayName: "TextStyles__StyledClearButton",
272
183
  componentId: "eg7n6t-0"
273
- })([ "display:none;visibility:hidden;", "" ], H);
274
- var G = N().span.withConfig({
184
+ })([ "display:none;visibility:hidden;", "" ], L);
185
+ var U = R().span.withConfig({
275
186
  displayName: "TextStyles__StyledSearchIconWrapper",
276
187
  componentId: "eg7n6t-1"
277
- })([ "", ";color:", ";pointer-events:none;padding:", ";", "" ], A.mixins.reset("inline-block"), (0,
278
- A.pick)({
188
+ })([ "", ";color:", ";pointer-events:none;padding:", ";", "" ], O.mixins.reset("inline-block"), (0,
189
+ O.pick)({
279
190
  enterprise: {
280
- light: A.variables.gray60,
281
- dark: A.variables.white
191
+ light: O.variables.gray60,
192
+ dark: O.variables.white
282
193
  },
283
- prisma: A.variables.contentColorMuted
284
- }), (0, A.pick)({
194
+ prisma: O.variables.contentColorMuted
195
+ }), (0, O.pick)({
285
196
  comfortable: "0 8px",
286
197
  compact: "0 6px"
287
198
  }), (function(e) {
288
199
  var t = e.$disabled;
289
- return t && (0, B.css)([ "", "" ], (0, A.pick)({
290
- enterprise: (0, B.css)([ "color:", ";" ], A.variables.textDisabledColor),
291
- prisma: (0, B.css)([ "color:", ";" ], A.variables.contentColorDisabled)
200
+ return t && (0, M.css)([ "", "" ], (0, O.pick)({
201
+ enterprise: (0, M.css)([ "color:", ";" ], O.variables.textDisabledColor),
202
+ prisma: (0, M.css)([ "color:", ";" ], O.variables.contentColorDisabled)
292
203
  }));
293
204
  }));
294
- var U = N()(V()).withConfig({
205
+ var J = R()(V()).withConfig({
295
206
  displayName: "TextStyles__StyledBox",
296
207
  componentId: "eg7n6t-2"
297
- })([ "display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:", ";}}&:focus-within:not([disabled]){", "{", "}", "{visibility:visible;display:block;}}", "" ], A.variables.spacingSmall,
298
- /* sc-sel */
299
- G, (0, A.pick)({
300
- enterprise: (0, B.css)([ "display:none;" ])
301
- }),
302
- /* sc-sel */
303
- K, (function(e) {
208
+ })([ "display:flex;justify-content:space-between;flex-grow:1;flex-shrink:1;position:relative;&[data-inline]{width:230px;flex-basis:230px;[data-inline] + &{margin-left:", ";}}&:focus-within:not([disabled]){", "{", "}", "{visibility:visible;display:block;}}", "" ], O.variables.spacingSmall, /* sc-sel */ U, (0,
209
+ O.pick)({
210
+ enterprise: (0, M.css)([ "display:none;" ])
211
+ }), /* sc-sel */ G, (function(e) {
304
212
  var t = e.$isTimeInput;
305
- return t && (0, B.css)([ "@media screen and (min--moz-device-pixel-ratio:0){", "{display:none;}}" ],
306
- /* sc-sel */
307
- K);
213
+ return t && (0, M.css)([ "@media screen and (min--moz-device-pixel-ratio:0){", "{display:none;}}" ], /* sc-sel */ G);
308
214
  }));
309
- var J = N().span.withConfig({
215
+ var Q = R().span.withConfig({
310
216
  displayName: "TextStyles__StyledInputWrapper",
311
217
  componentId: "eg7n6t-3"
312
- })([ "", ";cursor:text;flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " ", " ", " ", " ", " ", "" ], A.mixins.reset("inline-flex"), A.variables.inputHeight, A.variables.interactiveColorBorder, A.variables.borderRadius, (0,
313
- A.pick)({
218
+ })([ "", ";cursor:text;flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " ", " ", " ", " ", " ", "" ], O.mixins.reset("inline-flex"), O.variables.inputHeight, O.variables.interactiveColorBorder, O.variables.borderRadius, (0,
219
+ O.pick)({
314
220
  enterprise: {
315
- light: A.variables.white,
316
- dark: A.variables.gray22
221
+ light: O.variables.white,
222
+ dark: O.variables.gray22
317
223
  },
318
- prisma: A.variables.transparent
319
- }), (0, A.pick)({
224
+ prisma: O.variables.transparent
225
+ }), (0, O.pick)({
320
226
  enterprise: "0 10px",
321
227
  prisma: "0 12px"
322
228
  }), (function(e) {
323
229
  var t = e.$hasEndAdornment;
324
- return t && (0, B.css)([ "padding-right:0;" ]);
230
+ return t && (0, M.css)([ "padding-right:0;" ]);
325
231
  }), (function(e) {
326
232
  var t = e.$hasStartAdornment;
327
- return t && (0, B.css)([ "padding-left:0;" ]);
233
+ return t && (0, M.css)([ "padding-left:0;" ]);
328
234
  }), (function(e) {
329
235
  var t = e.$isDisabled;
330
- return !t && (0, B.css)([ "&:focus-within{box-shadow:", ";color:", ";}" ], A.variables.focusShadow, A.variables.contentColorActive);
236
+ return !t && (0, M.css)([ "&:focus-within{box-shadow:", ";color:", ";}" ], O.variables.focusShadow, O.variables.contentColorActive);
331
237
  }), (function(e) {
332
238
  var t = e.$isDisabled, r = e.$isDimmed;
333
- return t || r ? F : (0, B.css)([ "&:hover{border-color:", ";}" ], A.variables.interactiveColorBorderHover);
239
+ return t || r ? K : (0, M.css)([ "&:hover{border-color:", ";}" ], O.variables.interactiveColorBorderHover);
334
240
  }), (function(e) {
335
241
  var t = e.$error;
336
- return t && (0, B.css)([ "&,&:hover{border-color:", ";}" ], A.variables.accentColorNegative);
242
+ return t && (0, M.css)([ "&,&:hover{border-color:", ";}" ], O.variables.accentColorNegative);
337
243
  }), (function(e) {
338
244
  var t = e.$append;
339
- return t && (0, B.css)([ "margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
245
+ return t && (0, M.css)([ "margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
340
246
  }), (function(e) {
341
247
  var t = e.$prepend;
342
- return t && (0, B.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
248
+ return t && (0, M.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
343
249
  }));
344
- /* Some of these need greater specificity than input[type=text] */ var Q = N().input.withConfig({
250
+ /* Some of these need greater specificity than input[type=text] */ var X = R().input.withConfig({
345
251
  displayName: "TextStyles__StyledInput",
346
252
  componentId: "eg7n6t-4"
347
- })([ "", ";&,&[type]{outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;&[type='time']{&::-webkit-calendar-picker-indicator{display:none;}height:", ";@media screen and (min--moz-device-pixel-ratio:0){padding-right:", ";}}position:relative;&::placeholder{color:", ";opacity:1;}", " &[disabled],&[aria-disabled='true']{", "}}" ], A.mixins.reset("inline-flex"), (0,
348
- A.pick)({
349
- enterprise: A.variables.textColor,
350
- prisma: A.variables.contentColorActive
351
- }), A.variables.sansFontFamily, (0, A.pick)({
253
+ })([ "", ";&,&[type]{outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;&[type='time']{&::-webkit-calendar-picker-indicator{display:none;}height:", ";@media screen and (min--moz-device-pixel-ratio:0){padding-right:", ";}}position:relative;&::placeholder{color:", ";opacity:1;}", " &[disabled],&[aria-disabled='true']{", "}}" ], O.mixins.reset("inline-flex"), (0,
254
+ O.pick)({
255
+ enterprise: O.variables.textColor,
256
+ prisma: O.variables.contentColorActive
257
+ }), O.variables.sansFontFamily, (0, O.pick)({
352
258
  enterprise: "20px",
353
259
  prisma: {
354
260
  comfortable: "24px",
355
261
  compact: "20px"
356
262
  }
357
- }), (0, A.pick)({
358
- enterprise: A.variables.spacingSmall,
263
+ }), (0, O.pick)({
264
+ enterprise: O.variables.spacingSmall,
359
265
  prisma: "14px"
360
- }), A.variables.contentColorMuted, (function(e) {
266
+ }), O.variables.contentColorMuted, (function(e) {
361
267
  var t = e.$error;
362
- return t && (0, B.css)([ "&,&:hover{color:", ";}" ], (0, A.pick)({
268
+ return t && (0, M.css)([ "&,&:hover{color:", ";}" ], (0, O.pick)({
363
269
  enterprise: {
364
- light: A.variables.errorColorD10,
365
- dark: A.variables.errorColorL20
270
+ light: O.variables.errorColorD10,
271
+ dark: O.variables.errorColorL20
366
272
  },
367
- prisma: A.variables.contentColorActive
273
+ prisma: O.variables.contentColorActive
368
274
  }));
369
- }), Z);
370
- var X = N()(z()).withConfig({
275
+ }), H);
276
+ var Y = R()(F()).withConfig({
371
277
  displayName: "TextStyles__StyledVisibilityToggle",
372
278
  componentId: "eg7n6t-5"
373
- })([ "", "" ], H);
374
- var Y = N().span.withConfig({
279
+ })([ "", "" ], L);
280
+ var Z = R().span.withConfig({
375
281
  displayName: "TextStyles__StyledPlaceholder",
376
282
  componentId: "eg7n6t-6"
377
283
  })([ "pointer-events:none;color:", ";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:", ";margin-right:", ";", ";", ";", "" ], (0,
378
- A.pick)({
379
- enterprise: A.variables.textGray,
380
- prisma: A.variables.contentColorMuted
381
- }), A.variables.lineHeight, (0, A.pick)({
284
+ O.pick)({
285
+ enterprise: O.variables.textGray,
286
+ prisma: O.variables.contentColorMuted
287
+ }), O.variables.lineHeight, (0, O.pick)({
382
288
  enterprise: "10px",
383
289
  prisma: "14px"
384
290
  }), (function(e) {
385
291
  var t = e.$hasStartAdornment, r = e.$startAdornmentWidth;
386
- return t && (r ? (0, B.css)([ "margin-left:", "px;" ], r) : (0, B.css)([ "margin-left:", ";" ], (0,
387
- A.pick)({
292
+ return t && (r ? (0, M.css)([ "margin-left:", "px;" ], r) : (0, M.css)([ "margin-left:", ";" ], (0,
293
+ O.pick)({
388
294
  enterprise: {
389
295
  comfortable: "30px",
390
296
  compact: "26px"
@@ -396,13 +302,13 @@
396
302
  })));
397
303
  }), (function(e) {
398
304
  var t = e.$hasEndAdornment, r = e.$endAdornmentWidth;
399
- return t && (r ? (0, B.css)([ "max-width:calc( 100% - ", " - ", "px );" ], (0, A.pick)({
305
+ return t && (r ? (0, M.css)([ "max-width:calc( 100% - ", " - ", "px );" ], (0, O.pick)({
400
306
  enterprise: "10px",
401
307
  prisma: "14px"
402
- }), r) : (0, B.css)([ "max-width:calc( 100% - ", " - ", " );" ], (0, A.pick)({
308
+ }), r) : (0, M.css)([ "max-width:calc( 100% - ", " - ", " );" ], (0, O.pick)({
403
309
  enterprise: "10px",
404
310
  prisma: "14px"
405
- }), (0, A.pick)({
311
+ }), (0, O.pick)({
406
312
  enterprise: {
407
313
  comfortable: "30px",
408
314
  compact: "26px"
@@ -414,10 +320,10 @@
414
320
  })));
415
321
  }), (function(e) {
416
322
  var t = e.$hasBothAdornment, r = e.$endAdornmentWidth, n = e.$startAdornmentWidth;
417
- return t && (0, B.css)([ "max-width:calc(100% - ", "px - ", "px);" ], n, r);
323
+ return t && (0, M.css)([ "max-width:calc(100% - ", "px - ", "px);" ], n, r);
418
324
  }));
419
- var ee = (0, B.css)([ "display:inline-flex;align-items:center;justify-content:center;height:", ";pointer-events:none;" ], (0,
420
- A.pick)({
325
+ var ee = (0, M.css)([ "display:inline-flex;align-items:center;justify-content:center;height:", ";pointer-events:none;" ], (0,
326
+ O.pick)({
421
327
  enterprise: {
422
328
  comfortable: "30px",
423
329
  compact: "26px"
@@ -427,13 +333,13 @@
427
333
  compact: "30px"
428
334
  }
429
335
  }));
430
- var te = N().div.withConfig({
336
+ var te = R().div.withConfig({
431
337
  displayName: "TextStyles__StyledStartAdornmentHolder",
432
338
  componentId: "eg7n6t-7"
433
339
  })([ "", " ", ";" ], ee, (function(e) {
434
340
  var t = e.$width;
435
- return t ? (0, B.css)([ "min-width:", "px;" ], t) : (0, B.css)([ "min-width:", ";" ], (0,
436
- A.pick)({
341
+ return t ? (0, M.css)([ "min-width:", "px;" ], t) : (0, M.css)([ "min-width:", ";" ], (0,
342
+ O.pick)({
437
343
  enterprise: {
438
344
  comfortable: "30px",
439
345
  compact: "26px"
@@ -444,13 +350,13 @@
444
350
  }
445
351
  }));
446
352
  }));
447
- var re = N().div.withConfig({
353
+ var re = R().div.withConfig({
448
354
  displayName: "TextStyles__StyledEndAdornmentHolder",
449
355
  componentId: "eg7n6t-8"
450
356
  })([ "", " ", ";" ], ee, (function(e) {
451
357
  var t = e.$width;
452
- return t ? (0, B.css)([ "min-width:", "px;" ], t) : (0, B.css)([ "min-width:", ";" ], (0,
453
- A.pick)({
358
+ return t ? (0, M.css)([ "min-width:", "px;" ], t) : (0, M.css)([ "min-width:", ";" ], (0,
359
+ O.pick)({
454
360
  enterprise: {
455
361
  comfortable: "30px",
456
362
  compact: "26px"
@@ -461,11 +367,11 @@
461
367
  }
462
368
  }));
463
369
  }));
464
- var ne = N().div.withConfig({
370
+ var ne = R().div.withConfig({
465
371
  displayName: "TextStyles__StyledAdornment",
466
372
  componentId: "eg7n6t-9"
467
373
  })([ "display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", "" ], (0,
468
- A.pick)({
374
+ O.pick)({
469
375
  enterprise: {
470
376
  comfortable: "30px",
471
377
  compact: "26px"
@@ -474,20 +380,20 @@
474
380
  comfortable: "38px",
475
381
  compact: "30px"
476
382
  }
477
- }), (0, A.pick)({
383
+ }), (0, O.pick)({
478
384
  enterprise: {
479
- light: A.variables.gray60,
480
- dark: A.variables.white
385
+ light: O.variables.gray60,
386
+ dark: O.variables.white
481
387
  },
482
- prisma: A.variables.contentColorMuted
388
+ prisma: O.variables.contentColorMuted
483
389
  }), (function(e) {
484
390
  var t = e.$position;
485
- return t === "start" ? (0, B.css)([ "top:1px;left:1px;" ]) : (0, B.css)([ "top:1px;right:1px;" ]);
391
+ return t === "start" ? (0, M.css)([ "top:1px;left:1px;" ]) : (0, M.css)([ "top:1px;right:1px;" ]);
486
392
  }), (function(e) {
487
393
  var t = e.disabled;
488
- return t && Z;
489
- }), (0, A.pick)({
490
- enterprise: (0, B.css)([ "margin-left:-1px;margin-right:-1px;" ])
394
+ return t && H;
395
+ }), (0, O.pick)({
396
+ enterprise: (0, M.css)([ "margin-left:-1px;margin-right:-1px;" ])
491
397
  }));
492
398
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
493
399
  /**
@@ -511,40 +417,34 @@
511
417
  // CONCATENATED MODULE: ./src/Text/Text.tsx
512
418
  function ae(e) {
513
419
  "@babel/helpers - typeof";
514
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
515
- ae = function e(t) {
516
- return typeof t;
517
- };
518
- } else {
519
- ae = function e(t) {
520
- return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
521
- };
522
- }
523
- return ae(e);
420
+ return ae = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
421
+ return typeof e;
422
+ } : function(e) {
423
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
424
+ }, ae(e);
524
425
  }
525
426
  function oe(e) {
526
- return de(e) || ce(e) || se(e) || le();
427
+ return pe(e) || ce(e) || se(e) || le();
527
428
  }
528
429
  function le() {
529
430
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
530
431
  }
531
432
  function se(e, t) {
532
- if (!e) return;
533
- if (typeof e === "string") return pe(e, t);
534
- var r = Object.prototype.toString.call(e).slice(8, -1);
535
- if (r === "Object" && e.constructor) r = e.constructor.name;
536
- if (r === "Map" || r === "Set") return Array.from(e);
537
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pe(e, t);
433
+ if (e) {
434
+ if ("string" == typeof e) return de(e, t);
435
+ var r = {}.toString.call(e).slice(8, -1);
436
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? de(e, t) : void 0;
437
+ }
538
438
  }
539
439
  function ce(e) {
540
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
440
+ if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
541
441
  }
542
- function de(e) {
543
- if (Array.isArray(e)) return pe(e);
442
+ function pe(e) {
443
+ if (Array.isArray(e)) return de(e);
544
444
  }
545
- function pe(e, t) {
546
- if (t == null || t > e.length) t = e.length;
547
- for (var r = 0, n = new Array(t); r < t; r++) {
445
+ function de(e, t) {
446
+ (null == t || t > e.length) && (t = e.length);
447
+ for (var r = 0, n = Array(t); r < t; r++) {
548
448
  n[r] = e[r];
549
449
  }
550
450
  return n;
@@ -553,166 +453,146 @@
553
453
  var r = Object.keys(e);
554
454
  if (Object.getOwnPropertySymbols) {
555
455
  var n = Object.getOwnPropertySymbols(e);
556
- if (t) n = n.filter((function(t) {
456
+ t && (n = n.filter((function(t) {
557
457
  return Object.getOwnPropertyDescriptor(e, t).enumerable;
558
- }));
559
- r.push.apply(r, n);
458
+ }))), r.push.apply(r, n);
560
459
  }
561
460
  return r;
562
461
  }
563
- function fe(e) {
462
+ function me(e) {
564
463
  for (var t = 1; t < arguments.length; t++) {
565
- var r = arguments[t] != null ? arguments[t] : {};
566
- if (t % 2) {
567
- ue(Object(r), true).forEach((function(t) {
568
- Ae(e, t, r[t]);
569
- }));
570
- } else if (Object.getOwnPropertyDescriptors) {
571
- Object.defineProperties(e, Object.getOwnPropertyDescriptors(r));
572
- } else {
573
- ue(Object(r)).forEach((function(t) {
574
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
575
- }));
576
- }
464
+ var r = null != arguments[t] ? arguments[t] : {};
465
+ t % 2 ? ue(Object(r), !0).forEach((function(t) {
466
+ Oe(e, t, r[t]);
467
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ue(Object(r)).forEach((function(t) {
468
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
469
+ }));
577
470
  }
578
471
  return e;
579
472
  }
580
- function me(e, t) {
581
- if (e == null) return {};
582
- var r = he(e, t);
583
- var n, i;
473
+ function fe(e, t) {
474
+ if (null == e) return {};
475
+ var r, n, i = ve(e, t);
584
476
  if (Object.getOwnPropertySymbols) {
585
477
  var a = Object.getOwnPropertySymbols(e);
586
- for (i = 0; i < a.length; i++) {
587
- n = a[i];
588
- if (t.indexOf(n) >= 0) continue;
589
- if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
590
- r[n] = e[n];
478
+ for (n = 0; n < a.length; n++) {
479
+ r = a[n], t.includes(r) || {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
591
480
  }
592
481
  }
593
- return r;
482
+ return i;
594
483
  }
595
- function he(e, t) {
596
- if (e == null) return {};
484
+ function ve(e, t) {
485
+ if (null == e) return {};
597
486
  var r = {};
598
- var n = Object.keys(e);
599
- var i, a;
600
- for (a = 0; a < n.length; a++) {
601
- i = n[a];
602
- if (t.indexOf(i) >= 0) continue;
603
- r[i] = e[i];
487
+ for (var n in e) {
488
+ if ({}.hasOwnProperty.call(e, n)) {
489
+ if (t.includes(n)) continue;
490
+ r[n] = e[n];
491
+ }
604
492
  }
605
493
  return r;
606
494
  }
607
- function ve() {
608
- ve = Object.assign || function(e) {
495
+ function he() {
496
+ return he = Object.assign ? Object.assign.bind() : function(e) {
609
497
  for (var t = 1; t < arguments.length; t++) {
610
498
  var r = arguments[t];
611
499
  for (var n in r) {
612
- if (Object.prototype.hasOwnProperty.call(r, n)) {
613
- e[n] = r[n];
614
- }
500
+ ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
615
501
  }
616
502
  }
617
503
  return e;
618
- };
619
- return ve.apply(this, arguments);
504
+ }, he.apply(null, arguments);
620
505
  }
621
506
  function be(e, t) {
622
- if (!(e instanceof t)) {
623
- throw new TypeError("Cannot call a class as a function");
624
- }
507
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
625
508
  }
626
- function Ce(e, t) {
509
+ function ye(e, t) {
627
510
  for (var r = 0; r < t.length; r++) {
628
511
  var n = t[r];
629
- n.enumerable = n.enumerable || false;
630
- n.configurable = true;
631
- if ("value" in n) n.writable = true;
632
- Object.defineProperty(e, n.key, n);
512
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
513
+ Object.defineProperty(e, Te(n.key), n);
633
514
  }
634
515
  }
635
- function ye(e, t, r) {
636
- if (t) Ce(e.prototype, t);
637
- if (r) Ce(e, r);
638
- return e;
516
+ function ge(e, t, r) {
517
+ return t && ye(e.prototype, t), r && ye(e, r), Object.defineProperty(e, "prototype", {
518
+ writable: !1
519
+ }), e;
639
520
  }
640
- function ge(e, t) {
641
- if (typeof t !== "function" && t !== null) {
642
- throw new TypeError("Super expression must either be null or a function");
643
- }
521
+ function xe(e, t) {
522
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
644
523
  e.prototype = Object.create(t && t.prototype, {
645
524
  constructor: {
646
525
  value: e,
647
- writable: true,
648
- configurable: true
526
+ writable: !0,
527
+ configurable: !0
649
528
  }
650
- });
651
- if (t) xe(e, t);
529
+ }), Object.defineProperty(e, "prototype", {
530
+ writable: !1
531
+ }), t && we(e, t);
652
532
  }
653
- function xe(e, t) {
654
- xe = Object.setPrototypeOf || function e(t, r) {
655
- t.__proto__ = r;
656
- return t;
657
- };
658
- return xe(e, t);
533
+ function we(e, t) {
534
+ return we = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
535
+ return e.__proto__ = t, e;
536
+ }, we(e, t);
659
537
  }
660
- function we(e) {
661
- var t = Se();
662
- return function r() {
663
- var n = Ee(e), i;
538
+ function Ce(e) {
539
+ var t = Ae();
540
+ return function() {
541
+ var r, n = Ee(e);
664
542
  if (t) {
665
- var a = Ee(this).constructor;
666
- i = Reflect.construct(n, arguments, a);
667
- } else {
668
- i = n.apply(this, arguments);
669
- }
670
- return ke(this, i);
543
+ var i = Ee(this).constructor;
544
+ r = Reflect.construct(n, arguments, i);
545
+ } else r = n.apply(this, arguments);
546
+ return ke(this, r);
671
547
  };
672
548
  }
673
549
  function ke(e, t) {
674
- if (t && (ae(t) === "object" || typeof t === "function")) {
675
- return t;
676
- }
677
- return Le(e);
550
+ if (t && ("object" == ae(t) || "function" == typeof t)) return t;
551
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
552
+ return Se(e);
678
553
  }
679
- function Le(e) {
680
- if (e === void 0) {
681
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
682
- }
554
+ function Se(e) {
555
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
683
556
  return e;
684
557
  }
685
- function Se() {
686
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
687
- if (Reflect.construct.sham) return false;
688
- if (typeof Proxy === "function") return true;
558
+ function Ae() {
689
559
  try {
690
- Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
691
- return true;
692
- } catch (e) {
693
- return false;
694
- }
560
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
561
+ } catch (e) {}
562
+ return (Ae = function t() {
563
+ return !!e;
564
+ })();
695
565
  }
696
566
  function Ee(e) {
697
- Ee = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
698
- return t.__proto__ || Object.getPrototypeOf(t);
699
- };
700
- return Ee(e);
567
+ return Ee = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
568
+ return e.__proto__ || Object.getPrototypeOf(e);
569
+ }, Ee(e);
701
570
  }
702
- function Ae(e, t, r) {
703
- if (t in e) {
704
- Object.defineProperty(e, t, {
705
- value: r,
706
- enumerable: true,
707
- configurable: true,
708
- writable: true
709
- });
710
- } else {
711
- e[t] = r;
571
+ function Oe(e, t, r) {
572
+ return (t = Te(t)) in e ? Object.defineProperty(e, t, {
573
+ value: r,
574
+ enumerable: !0,
575
+ configurable: !0,
576
+ writable: !0
577
+ }) : e[t] = r, e;
578
+ }
579
+ function Te(e) {
580
+ var t = Ie(e, "string");
581
+ return "symbol" == ae(t) ? t : t + "";
582
+ }
583
+ function Ie(e, t) {
584
+ if ("object" != ae(e) || !e) return e;
585
+ var r = e[Symbol.toPrimitive];
586
+ if (void 0 !== r) {
587
+ var n = r.call(e, t || "default");
588
+ if ("object" != ae(n)) return n;
589
+ throw new TypeError("@@toPrimitive must return a primitive value.");
712
590
  }
713
- return e;
591
+ return ("string" === t ? String : Number)(e);
714
592
  }
715
- /** @public */ var Oe = {
593
+ /** @public */
594
+ /** @public */
595
+ /** @public */ var $e = {
716
596
  appearance: a().oneOf([ "default", "search" ]),
717
597
  append: a().bool,
718
598
  autoCapitalize: a().string,
@@ -760,7 +640,7 @@
760
640
  useSyntheticPlaceholder: a().bool,
761
641
  value: a().string
762
642
  };
763
- var Te = {
643
+ var je = {
764
644
  appearance: "default",
765
645
  append: false,
766
646
  autoFocus: false,
@@ -777,10 +657,10 @@
777
657
  type: "text",
778
658
  passwordVisibilityToggle: false
779
659
  };
780
- /** Note: Text places role and aria props onto the input. All other props are placed on the wrapper. */ var Ie = function(e) {
781
- ge(r, e);
782
- var t = we(r);
783
- ye(r, null, [ {
660
+ /** Note: Text places role and aria props onto the input. All other props are placed on the wrapper. */ var Pe = function(e) {
661
+ xe(r, e);
662
+ var t = Ce(r);
663
+ ge(r, null, [ {
784
664
  key: "validateRows",
785
665
  // @docs-props-type TextPropsBase
786
666
  value: function e(t) {
@@ -792,11 +672,11 @@
792
672
  var i;
793
673
  be(this, r);
794
674
  i = t.call(this, e);
795
- Ae(Le(i), "controlledExternally", void 0);
796
- Ae(Le(i), "input", null);
797
- Ae(Le(i), "startAdornment", null);
798
- Ae(Le(i), "endAdornment", null);
799
- Ae(Le(i), "getAdornmentWidth", (function() {
675
+ Oe(Se(i), "controlledExternally", void 0);
676
+ Oe(Se(i), "input", null);
677
+ Oe(Se(i), "startAdornment", null);
678
+ Oe(Se(i), "endAdornment", null);
679
+ Oe(Se(i), "getAdornmentWidth", (function() {
800
680
  var e = i.startAdornment ? i.startAdornment.getBoundingClientRect() : undefined;
801
681
  var t = e && Math.round(e.width);
802
682
  if (i.state.startAdornmentWidth !== t) {
@@ -812,11 +692,11 @@
812
692
  });
813
693
  }
814
694
  }));
815
- Ae(Le(i), "handleInputMount", (function(e) {
695
+ Oe(Se(i), "handleInputMount", (function(e) {
816
696
  i.input = e;
817
697
  ie(i.props.inputRef, e);
818
698
  }));
819
- Ae(Le(i), "handleInputChange", (function(e) {
699
+ Oe(Se(i), "handleInputChange", (function(e) {
820
700
  var t, r;
821
701
  var n = e.target.value;
822
702
  var a = i.props.name;
@@ -830,19 +710,19 @@
830
710
  name: a
831
711
  });
832
712
  }));
833
- Ae(Le(i), "handleInputKeyDown", (function(e) {
713
+ Oe(Se(i), "handleInputKeyDown", (function(e) {
834
714
  var t, r;
835
715
  (t = (r = i.props).onKeyDown) === null || t === void 0 ? void 0 : t.call(r, e);
836
716
  }));
837
- Ae(Le(i), "handleInputSelect", (function(e) {
717
+ Oe(Se(i), "handleInputSelect", (function(e) {
838
718
  var t, r;
839
719
  (t = (r = i.props).onSelect) === null || t === void 0 ? void 0 : t.call(r, e);
840
720
  }));
841
- Ae(Le(i), "handleInputClick", (function(e) {
721
+ Oe(Se(i), "handleInputClick", (function(e) {
842
722
  var t, r;
843
723
  (t = (r = i.props).onInputClick) === null || t === void 0 ? void 0 : t.call(r, e);
844
724
  }));
845
- Ae(Le(i), "handleBoxClick", (function(e) {
725
+ Oe(Se(i), "handleBoxClick", (function(e) {
846
726
  var t, r;
847
727
  if (document.activeElement !== i.input) {
848
728
  var n;
@@ -850,10 +730,10 @@
850
730
  }
851
731
  (t = (r = i.props).onClick) === null || t === void 0 ? void 0 : t.call(r, e);
852
732
  }));
853
- Ae(Le(i), "handleAdornmentClick", (function(e) {
733
+ Oe(Se(i), "handleAdornmentClick", (function(e) {
854
734
  e.stopPropagation();
855
735
  }));
856
- Ae(Le(i), "handleInputFocus", (function(e) {
736
+ Oe(Se(i), "handleInputFocus", (function(e) {
857
737
  var t, r;
858
738
  var n = e.target.value;
859
739
  var a = i.props.name;
@@ -862,7 +742,7 @@
862
742
  name: a
863
743
  });
864
744
  }));
865
- Ae(Le(i), "handleInputBlur", (function(e) {
745
+ Oe(Se(i), "handleInputBlur", (function(e) {
866
746
  var t, r;
867
747
  var n = e.target.value;
868
748
  var a = i.props.name;
@@ -871,7 +751,7 @@
871
751
  name: a
872
752
  });
873
753
  }));
874
- Ae(Le(i), "handleClear", (function(e) {
754
+ Oe(Se(i), "handleClear", (function(e) {
875
755
  var t, r;
876
756
  e.preventDefault();
877
757
  var n = "";
@@ -887,19 +767,20 @@
887
767
  name: a
888
768
  });
889
769
  }));
890
- Ae(Le(i), "handleVisibilityToggle", (function() {
770
+ Oe(Se(i), "handleVisibilityToggle", (function() {
891
771
  i.setState((function(e) {
892
772
  return {
893
773
  hideVisibility: !e.hideVisibility
894
774
  };
895
775
  }));
896
776
  }));
897
- Ae(Le(i), "renderEndAdornment", (function() {
777
+ Oe(Se(i), "renderEndAdornment", (function() {
898
778
  var e;
899
779
  var t = i.props, r = t.appearance, a = t.endAdornment, o = t.passwordVisibilityToggle, l = t.disabled, s = t.canClear, c = t.splunkTheme;
900
- var d = c.isPrisma, p = c.isCompact, u = c.isEnterprise;
901
- var f = p ? "20px" : "24px";
902
- var m = {
780
+ var p = i.state.hideVisibility;
781
+ var d = c.isPrisma, u = c.isCompact, m = c.isEnterprise;
782
+ var f = u ? "20px" : "24px";
783
+ var v = {
903
784
  ref: function e(t) {
904
785
  i.endAdornment = t;
905
786
  },
@@ -908,36 +789,38 @@
908
789
  };
909
790
  if (a) {
910
791
 
911
- return n().createElement(ne, ve({
792
+ return n().createElement(ne, he({
912
793
  "data-test": "end-adornment",
913
794
  onClick: i.handleAdornmentClick
914
- }, m), a);
795
+ }, v), a);
915
796
  }
916
797
  if (o && !l) {
917
- var h = i.state.hideVisibility ? n().createElement(D, null) : n().createElement(R, null);
798
+ var b = p ? n().createElement(q, null) : n().createElement(_, null);
799
+ var g = p ? (0, I._)("Show password") : (0, I._)("Hide password");
918
800
 
919
- return n().createElement(ne, ve({
801
+ return n().createElement(ne, he({
920
802
  onClick: i.handleAdornmentClick
921
- }, m), n().createElement(X, {
803
+ }, v), n().createElement(Y, {
922
804
  appearance: "subtle",
923
805
  "data-test": "password-toggle",
924
806
  inline: false,
925
807
  onClick: i.handleVisibilityToggle,
926
808
  type: "button",
927
- icon: h
809
+ icon: b,
810
+ "aria-label": g
928
811
  }));
929
812
  }
930
- var b = i.context;
931
- var y = (e = b.labelAttrs) === null || e === void 0 ? void 0 : e.text;
932
- var x = y ? (0, T._)("Clear ".concat(y, " text field")) : (0, T._)("Clear text field");
933
- var w = i.getDisplayValue();
934
- if (u && r === "search") {
935
- if (!w) {
813
+ var w = i.context;
814
+ var C = (e = w.labelAttrs) === null || e === void 0 ? void 0 : e.text;
815
+ var k = C ? (0, I._)("Clear ".concat(C, " text field")) : (0, I._)("Clear text field");
816
+ var S = i.getDisplayValue();
817
+ if (m && r === "search") {
818
+ if (!S) {
936
819
 
937
- return n().createElement(ne, m, n().createElement(G, {
820
+ return n().createElement(ne, v, n().createElement(U, {
938
821
  $disabled: !!l,
939
822
  "data-test": "search-icon"
940
- }, n().createElement(g(), {
823
+ }, n().createElement(x(), {
941
824
  screenReaderText: null,
942
825
  hideDefaultTooltip: true,
943
826
  size: "16px",
@@ -945,37 +828,37 @@
945
828
  })));
946
829
  }
947
830
 
948
- return n().createElement(ne, m, !l && n().createElement(K, {
831
+ return n().createElement(ne, v, !l && n().createElement(G, {
949
832
  appearance: "subtle",
950
833
  "data-test": "clear",
951
834
  inline: false,
952
- "aria-label": x,
953
- icon: n().createElement(C(), {
835
+ "aria-label": k,
836
+ icon: n().createElement(y(), {
954
837
  size: 1,
955
838
  screenReaderText: null
956
839
  }),
957
840
  onClick: i.handleClear
958
- }), n().createElement(G, {
841
+ }), n().createElement(U, {
959
842
  "data-test": "search-icon",
960
843
  $disabled: !!l
961
- }, n().createElement(g(), {
844
+ }, n().createElement(x(), {
962
845
  screenReaderText: null,
963
846
  hideDefaultTooltip: true,
964
847
  size: "16px",
965
848
  inline: false
966
849
  })));
967
850
  }
968
- if (!!w && (d && r === "search" || s)) {
851
+ if (!!S && (d && r === "search" || s)) {
969
852
 
970
- return n().createElement(ne, m, !l && n().createElement(K, {
853
+ return n().createElement(ne, v, !l && n().createElement(G, {
971
854
  "data-test": "clear",
972
855
  appearance: "subtle",
973
- "aria-label": x,
856
+ "aria-label": k,
974
857
  onClick: i.handleClear,
975
- icon: u ? n().createElement(C(), {
858
+ icon: m ? n().createElement(y(), {
976
859
  inline: false,
977
860
  screenReaderText: null
978
- }) : n().createElement(v(), {
861
+ }) : n().createElement(h(), {
979
862
  height: f,
980
863
  inline: false,
981
864
  width: f
@@ -984,11 +867,11 @@
984
867
  }
985
868
  return undefined;
986
869
  }));
987
- Ae(Le(i), "renderStartAdornment", (function() {
870
+ Oe(Se(i), "renderStartAdornment", (function() {
988
871
  var e = i.props, t = e.appearance, r = e.startAdornment, a = e.splunkTheme, o = e.disabled;
989
872
  var l = a.isPrisma, s = a.isCompact;
990
873
  var c = s ? "20px" : "24px";
991
- var d = {
874
+ var p = {
992
875
  ref: function e(t) {
993
876
  i.startAdornment = t;
994
877
  },
@@ -997,24 +880,24 @@
997
880
  };
998
881
  if (r) {
999
882
 
1000
- return n().createElement(ne, ve({
883
+ return n().createElement(ne, he({
1001
884
  "data-test": "start-adornment",
1002
885
  onClick: i.handleAdornmentClick
1003
- }, d), r);
886
+ }, p), r);
1004
887
  }
1005
888
  if (l && t === "search") {
1006
889
 
1007
- return n().createElement(ne, d, n().createElement(G, {
890
+ return n().createElement(ne, p, n().createElement(U, {
1008
891
  "data-test": "search-icon",
1009
892
  $disabled: !!o
1010
- }, n().createElement(w(), {
893
+ }, n().createElement(C(), {
1011
894
  height: c,
1012
895
  width: c
1013
896
  })));
1014
897
  }
1015
898
  return undefined;
1016
899
  }));
1017
- Ae(Le(i), "getDisplayValue", (function() {
900
+ Oe(Se(i), "getDisplayValue", (function() {
1018
901
  var e = i.isControlled() ? i.props.value : i.state.value;
1019
902
  return e;
1020
903
  }));
@@ -1035,7 +918,7 @@
1035
918
  r.validateRows(e);
1036
919
  return i;
1037
920
  }
1038
- ye(r, [ {
921
+ ge(r, [ {
1039
922
  key: "componentDidMount",
1040
923
  value: function e() {
1041
924
  this.getAdornmentWidth();
@@ -1055,6 +938,7 @@
1055
938
  }
1056
939
  }, {
1057
940
  key: "blur",
941
+ // eslint-disable-next-line react/no-unused-class-component-methods
1058
942
  value: function e() {
1059
943
  var t;
1060
944
  (t = this.input) === null || t === void 0 ? void 0 : t.blur();
@@ -1067,7 +951,8 @@
1067
951
  var r;
1068
952
  (r = this.input) === null || r === void 0 ? void 0 : r.focus(t);
1069
953
  }
1070
- }, {
954
+ // eslint-disable-next-line react/no-unused-class-component-methods
955
+ }, {
1071
956
  key: "select",
1072
957
  value: function e() {
1073
958
  var t;
@@ -1076,37 +961,37 @@
1076
961
  }, {
1077
962
  key: "render",
1078
963
  value: function e() {
1079
- var t = this.props, r = t.append, i = t.autoCapitalize, a = t.autoComplete, o = t.autoCorrect, l = t.autoFocus, s = t.children, d = t.className, u = t.classNamePrivate, m = t.disabled, h = t.describedBy, v = t.elementRef, b = t.error, C = t.inline, y = t.inputClassName, g = t.inputId, x = t.labelledBy, w = t.multiline, k = t.maxLength, S = t.name, A = t.passwordVisibilityToggle, T = t.placeholder, I = t.prepend, j = t.required, $ = t.spellCheck, M = t.tabIndex, R = t.title, _ = t.type, P = t.useSyntheticPlaceholder, D = me(t, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "children", "className", "classNamePrivate", "disabled", "describedBy", "elementRef", "error", "inline", "inputClassName", "inputId", "labelledBy", "multiline", "maxLength", "name", "passwordVisibilityToggle", "placeholder", "prepend", "required", "spellCheck", "tabIndex", "title", "type", "useSyntheticPlaceholder" ]);
1080
- var B = fe(fe({
964
+ var t = this.props, r = t.append, i = t.autoCapitalize, a = t.autoComplete, o = t.autoCorrect, l = t.autoFocus, s = t.children, p = t.className, u = t.classNamePrivate, f = t.disabled, v = t.describedBy, h = t.elementRef, b = t.error, y = t.inline, g = t.inputClassName, x = t.inputId, w = t.labelledBy, C = t.multiline, k = t.maxLength, A = t.name, O = t.passwordVisibilityToggle, I = t.placeholder, $ = t.prepend, j = t.required, P = t.spellCheck, _ = t.tabIndex, D = t.title, B = t.type, N = t.useSyntheticPlaceholder, q = fe(t, [ "append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "children", "className", "classNamePrivate", "disabled", "describedBy", "elementRef", "error", "inline", "inputClassName", "inputId", "labelledBy", "multiline", "maxLength", "name", "passwordVisibilityToggle", "placeholder", "prepend", "required", "spellCheck", "tabIndex", "title", "type", "useSyntheticPlaceholder" ]);
965
+ var M = me(me({
1081
966
  role: "textbox"
1082
- }, f()(D, (function(e, t) {
967
+ }, m()(q, (function(e, t) {
1083
968
  return t === "role" || t.indexOf("aria-") === 0;
1084
969
  }))), {}, {
1085
- "aria-describedby": h,
1086
- "aria-labelledby": x,
970
+ "aria-describedby": v,
971
+ "aria-labelledby": w,
1087
972
  "aria-invalid": b || undefined,
1088
- "aria-disabled": m === "dimmed"
973
+ "aria-disabled": f === "dimmed"
1089
974
  });
1090
- var N = p()(D, [ "inputRef", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onSelect", "onInputClick", "rowsMax", "rowsMin" ].concat(oe(c()(B))));
1091
- var q = this.getDisplayValue();
975
+ var R = d()(q, [ "inputRef", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onSelect", "onInputClick", "rowsMax", "rowsMin" ].concat(oe(c()(M))));
976
+ var W = this.getDisplayValue();
1092
977
  var V = {
1093
- className: (0, O.toClassName)(d, y),
978
+ className: (0, T.toClassName)(p, g),
1094
979
  $append: r || undefined,
1095
980
  $error: b,
1096
- $prepend: I || undefined
981
+ $prepend: $ || undefined
1097
982
  };
1098
- var W = this.state.hideVisibility ? "password" : "text";
1099
- var z = A ? W : _;
1100
- var Z = fe(fe({}, B), {}, {
983
+ var z = this.state.hideVisibility ? "password" : "text";
984
+ var F = O ? z : B;
985
+ var H = me(me({}, M), {}, {
1101
986
  "data-test": "textbox",
1102
987
  autoCapitalize: i,
1103
988
  autoComplete: a,
1104
989
  autoCorrect: o,
1105
990
  autoFocus: l,
1106
- id: g,
991
+ id: x,
1107
992
  maxLength: k,
1108
- placeholder: T && !P ? T : undefined,
1109
- name: S,
993
+ placeholder: I && !N ? I : undefined,
994
+ name: A,
1110
995
  onChange: this.handleInputChange,
1111
996
  onKeyDown: this.handleInputKeyDown,
1112
997
  onSelect: this.handleInputSelect,
@@ -1115,58 +1000,58 @@
1115
1000
  onBlur: this.handleInputBlur,
1116
1001
  ref: this.handleInputMount,
1117
1002
  required: j,
1118
- spellCheck: $,
1003
+ spellCheck: P,
1119
1004
  style: {
1120
1005
  height: this.state.height
1121
1006
  },
1122
- title: R,
1123
- tabIndex: M,
1124
- type: z,
1125
- value: q,
1007
+ title: D,
1008
+ tabIndex: _,
1009
+ type: F,
1010
+ value: W,
1126
1011
  $error: b
1127
1012
  });
1128
- var F = P && T && !q;
1129
- // Do not render value in DOM when type is password, or passwordVisibilityToggle is enabled
1130
- var H = _ === "password" || A ? undefined : q;
1131
- // Firefox hack (SUI-2716). Remove when fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1427173
1132
- var K = _ === "time";
1133
- var G = this.renderStartAdornment();
1134
- var X = this.renderEndAdornment();
1135
- var ee = !!G;
1136
- var ne = !!X;
1137
- if (w) {
1013
+ var K = N && I && !W;
1014
+ // Do not render value in DOM when type is password, or passwordVisibilityToggle is enabled
1015
+ var L = B === "password" || O ? undefined : W;
1016
+ // Firefox hack (SUI-2716). Remove when fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1427173
1017
+ var G = B === "time";
1018
+ var U = this.renderStartAdornment();
1019
+ var Y = this.renderEndAdornment();
1020
+ var ee = !!U;
1021
+ var ne = !!Y;
1022
+ if (C) {
1138
1023
 
1139
1024
  return n().createElement(E(), this.props);
1140
1025
  }
1141
1026
 
1142
- return n().createElement(U, ve({
1027
+ return n().createElement(J, he({
1143
1028
  tabIndex: -1,
1144
- $isTimeInput: K,
1145
- className: (0, O.toClassName)(d, u),
1029
+ $isTimeInput: G,
1030
+ className: (0, T.toClassName)(p, u),
1146
1031
  "data-test": "text",
1147
- "data-test-value": H,
1148
- elementRef: v,
1032
+ "data-test-value": L,
1033
+ elementRef: h,
1149
1034
  flex: true,
1150
- inline: C,
1035
+ inline: y,
1151
1036
  onClick: this.handleBoxClick
1152
- }, N), G, n().createElement(J, ve({
1037
+ }, R), U, n().createElement(Q, he({
1153
1038
  $hasEndAdornment: ne,
1154
1039
  $hasStartAdornment: ee,
1155
- $isDisabled: m === true,
1156
- $isDimmed: m === "dimmed"
1040
+ $isDisabled: f === true,
1041
+ $isDimmed: f === "dimmed"
1157
1042
  }, V), ee && n().createElement(te, {
1158
1043
  $width: this.state.startAdornmentWidth
1159
- }), m ? n().createElement(Q, ve({
1160
- className: (0, O.toClassName)(d, u),
1044
+ }), f ? n().createElement(X, he({
1045
+ className: (0, T.toClassName)(p, u),
1161
1046
  "data-test": "textbox",
1162
- disabled: m === true,
1047
+ disabled: f === true,
1163
1048
  readOnly: true,
1164
- type: z,
1165
- value: q,
1166
- placeholder: T && !P ? T : undefined
1167
- }, B)) : n().createElement(Q, ve({}, Z, {
1049
+ type: F,
1050
+ value: W,
1051
+ placeholder: I && !N ? I : undefined
1052
+ }, M)) : n().createElement(X, he({}, H, {
1168
1053
  onClick: this.handleInputClick
1169
- })), F && n().createElement(L(), null, T), F && n().createElement(Y, {
1054
+ })), K && n().createElement(S(), null, I), K && n().createElement(Z, {
1170
1055
  $endAdornmentWidth: this.state.endAdornmentWidth,
1171
1056
  $hasBothAdornment: ee && ne,
1172
1057
  $hasEndAdornment: ne,
@@ -1174,22 +1059,23 @@
1174
1059
  $startAdornmentWidth: this.state.startAdornmentWidth,
1175
1060
  "aria-hidden": true,
1176
1061
  "data-role": "placeholder"
1177
- }, T), s, ne && n().createElement(re, {
1062
+ }, I), s, ne && n().createElement(re, {
1178
1063
  $width: this.state.endAdornmentWidth
1179
- })), X);
1064
+ })), Y);
1180
1065
  }
1181
1066
  } ]);
1182
1067
  return r;
1183
1068
  }(r.Component);
1184
- Ae(Ie, "propTypes", Oe);
1185
- Ae(Ie, "defaultProps", Te);
1186
- Ae(Ie, "componentType", "Text");
1187
- Ae(Ie, "contextType", m.ControlGroupContext);
1188
- var je = (0, A.withSplunkTheme)(Ie);
1189
- var $e = je;
1190
- $e.propTypes = Ie.propTypes;
1191
- $e.componentType = Ie.componentType;
1192
- /* harmony default export */ const Me = $e;
1193
- // CONCATENATED MODULE: ./src/Text/index.ts
1069
+ Oe(Pe, "propTypes", $e);
1070
+ Oe(Pe, "defaultProps", je);
1071
+ Oe(Pe, "componentType", "Text");
1072
+ Oe(Pe, "contextType", f.ControlGroupContext);
1073
+ var _e = (0, O.withSplunkTheme)(Pe);
1074
+ var De = _e;
1075
+ De.propTypes = Pe.propTypes;
1076
+ De.componentType = Pe.componentType;
1077
+ /* harmony default export */ const Be = De;
1078
+ // only for styled components using Text
1079
+ // CONCATENATED MODULE: ./src/Text/index.ts
1194
1080
  module.exports = t;
1195
1081
  /******/})();