@splunk/react-ui 4.37.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 (142) 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 +208 -219
  8. package/ButtonGroup.js +41 -49
  9. package/ButtonSimple.js +264 -295
  10. package/CHANGELOG.md +50 -1
  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 +1107 -980
  20. package/ColumnLayout.js +72 -96
  21. package/ComboBox.js +267 -305
  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 +512 -530
  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 +1600 -1923
  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 +130 -94
  57. package/Scroll.js +209 -244
  58. package/Search.js +375 -384
  59. package/Select.js +1076 -1354
  60. package/SidePanel.js +122 -142
  61. package/Slider.js +192 -222
  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 +211 -236
  67. package/TabBar.js +222 -258
  68. package/TabLayout.js +114 -139
  69. package/Table.js +2017 -2180
  70. package/Text.js +401 -512
  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 +17 -17
  82. package/types/src/Button/Button.d.ts +20 -6
  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 +5 -2
  86. package/types/src/Color/Palette.d.ts +6 -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 -3
  90. package/types/src/File/File.d.ts +2 -3
  91. package/types/src/File/Retry.d.ts +1 -2
  92. package/types/src/Link/Link.d.ts +3 -4
  93. package/types/src/Menu/Item.d.ts +24 -8
  94. package/types/src/Menu/Menu.d.ts +3 -3
  95. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -0
  96. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -0
  97. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  98. package/types/src/Multiselect/Option.d.ts +2 -0
  99. package/types/src/Number/Number.d.ts +3 -3
  100. package/types/src/Popover/Popover.d.ts +3 -4
  101. package/types/src/RadioBar/RadioBar.d.ts +2 -2
  102. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  103. package/types/src/ScrollContainerContext/ScrollContainerContext.d.ts +2 -2
  104. package/types/src/Search/Option.d.ts +16 -3
  105. package/types/src/Select/Option.d.ts +3 -1
  106. package/types/src/Select/OptionBase.d.ts +7 -5
  107. package/types/src/Select/Select.d.ts +2 -2
  108. package/types/src/Select/SelectAllOption.d.ts +4 -4
  109. package/types/src/Select/SelectBase.d.ts +0 -1
  110. package/types/src/SidePanel/SidePanel.d.ts +1 -1
  111. package/types/src/Slider/Slider.d.ts +2 -3
  112. package/types/src/Slider/docs/examples/Error.d.ts +2 -0
  113. package/types/src/SlidingPanels/SlidingPanels.d.ts +1 -1
  114. package/types/src/StepBar/Step.d.ts +1 -2
  115. package/types/src/TabBar/Tab.d.ts +1 -1
  116. package/types/src/TabBar/TabBar.d.ts +3 -1
  117. package/types/src/TabLayout/TabLayout.d.ts +2 -0
  118. package/types/src/Table/HeadDropdownCell.d.ts +2 -0
  119. package/types/src/Table/Table.d.ts +0 -1
  120. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -0
  121. package/types/src/Text/IconOutlinedHide.d.ts +1 -2
  122. package/types/src/Text/IconOutlinedView.d.ts +1 -2
  123. package/types/src/Text/Text.d.ts +6 -4
  124. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -0
  125. package/types/src/TextArea/TextArea.d.ts +2 -2
  126. package/types/src/Tooltip/Tooltip.d.ts +4 -4
  127. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -1
  128. package/useForceUpdate.js +30 -32
  129. package/useKeyPress.js +1 -1
  130. package/types/src/Button/docs/examples/Selected.d.ts +0 -2
  131. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +0 -1
  132. package/types/src/File/docs/examples/prisma/Error.d.ts +0 -1
  133. package/types/src/Menu/docs/examples/Icons.d.ts +0 -2
  134. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +0 -2
  135. package/types/src/Slider/docs/examples/prisma/Error.d.ts +0 -2
  136. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +0 -2
  137. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +0 -2
  138. package/types/src/Table/docs/examples/prisma/Basic.d.ts +0 -2
  139. /package/types/src/Date/docs/examples/{prisma/WithoutCalendar.d.ts → WithoutCalendar.d.ts} +0 -0
  140. /package/types/src/Message/docs/examples/{prisma/Title.d.ts → Title.d.ts} +0 -0
  141. /package/types/src/StepBar/docs/examples/{prisma/Error.d.ts → Error.d.ts} +0 -0
  142. /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");
@@ -80,310 +80,217 @@
80
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 M() {
115
- M = 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 M.apply(this, arguments);
127
- }
128
- function R(e) {
129
- var t = (0, A.useSplunkTheme)(), r = t.family, i = t.density;
130
- if (r === "enterprise") {
131
-
132
- return n().createElement(j(), M({
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;
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 B = P;
141
+ /* harmony default export */ const q = N;
231
142
  // CONCATENATED MODULE: external "styled-components"
232
- const D = require("styled-components");
233
- var N = e.n(D);
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, D.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
159
+ }));
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)
248
163
  }));
249
- var F = (0, D.css)([ "border-radius:", ";cursor:pointer;font-size:0.83333em;flex-grow:0;", ";&:not([disabled]){color:", ";}" ], (0,
250
- A.pick)({
251
- 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,
252
167
  prisma: "50%"
253
- }), (0, A.pick)({
254
- enterprise: (0, D.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),
255
170
  prisma: {
256
- comfortable: (0, D.css)([ "width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;" ]),
257
- compact: (0, D.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;" ])
258
173
  }
259
- }), (0, A.pick)({
174
+ }), (0, O.pick)({
260
175
  enterprise: {
261
- light: A.variables.gray60,
262
- dark: A.variables.white
176
+ light: O.variables.gray60,
177
+ dark: O.variables.white
263
178
  },
264
- prisma: A.variables.contentColorMuted
179
+ prisma: O.variables.contentColorMuted
265
180
  }));
266
- var H = N()(z()).withConfig({
181
+ var G = R()(F()).withConfig({
267
182
  displayName: "TextStyles__StyledClearButton",
268
183
  componentId: "eg7n6t-0"
269
- })([ "display:none;visibility:hidden;", "" ], F);
270
- var K = N().span.withConfig({
184
+ })([ "display:none;visibility:hidden;", "" ], L);
185
+ var U = R().span.withConfig({
271
186
  displayName: "TextStyles__StyledSearchIconWrapper",
272
187
  componentId: "eg7n6t-1"
273
- })([ "", ";color:", ";pointer-events:none;padding:", ";", "" ], A.mixins.reset("inline-block"), (0,
274
- A.pick)({
188
+ })([ "", ";color:", ";pointer-events:none;padding:", ";", "" ], O.mixins.reset("inline-block"), (0,
189
+ O.pick)({
275
190
  enterprise: {
276
- light: A.variables.gray60,
277
- dark: A.variables.white
191
+ light: O.variables.gray60,
192
+ dark: O.variables.white
278
193
  },
279
- prisma: A.variables.contentColorMuted
280
- }), (0, A.pick)({
194
+ prisma: O.variables.contentColorMuted
195
+ }), (0, O.pick)({
281
196
  comfortable: "0 8px",
282
197
  compact: "0 6px"
283
198
  }), (function(e) {
284
199
  var t = e.$disabled;
285
- return t && (0, D.css)([ "", "" ], (0, A.pick)({
286
- enterprise: (0, D.css)([ "color:", ";" ], A.variables.textDisabledColor),
287
- prisma: (0, D.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)
288
203
  }));
289
204
  }));
290
- var G = N()(V()).withConfig({
205
+ var J = R()(V()).withConfig({
291
206
  displayName: "TextStyles__StyledBox",
292
207
  componentId: "eg7n6t-2"
293
- })([ "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,
294
- /* sc-sel */
295
- K, (0, A.pick)({
296
- enterprise: (0, D.css)([ "display:none;" ])
297
- }),
298
- /* sc-sel */
299
- H, (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) {
300
212
  var t = e.$isTimeInput;
301
- return t && (0, D.css)([ "@media screen and (min--moz-device-pixel-ratio:0){", "{display:none;}}" ],
302
- /* sc-sel */
303
- H);
213
+ return t && (0, M.css)([ "@media screen and (min--moz-device-pixel-ratio:0){", "{display:none;}}" ], /* sc-sel */ G);
304
214
  }));
305
- var U = N().span.withConfig({
215
+ var Q = R().span.withConfig({
306
216
  displayName: "TextStyles__StyledInputWrapper",
307
217
  componentId: "eg7n6t-3"
308
- })([ "", ";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;", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){box-shadow:", ";color:", ";}", " ", " ", " ", "" ], A.mixins.reset("inline-flex"), A.variables.inputHeight, A.variables.interactiveColorBorder, A.variables.borderRadius, (0,
309
- 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)({
310
220
  enterprise: {
311
- light: A.variables.white,
312
- dark: A.variables.gray22
221
+ light: O.variables.white,
222
+ dark: O.variables.gray22
313
223
  },
314
- prisma: A.variables.transparent
315
- }), (0, A.pick)({
224
+ prisma: O.variables.transparent
225
+ }), (0, O.pick)({
316
226
  enterprise: "0 10px",
317
227
  prisma: "0 12px"
318
228
  }), (function(e) {
319
229
  var t = e.$hasEndAdornment;
320
- return t && (0, D.css)([ "padding-right:0;" ]);
230
+ return t && (0, M.css)([ "padding-right:0;" ]);
321
231
  }), (function(e) {
322
232
  var t = e.$hasStartAdornment;
323
- return t && (0, D.css)([ "padding-left:0;" ]);
324
- }), A.variables.interactiveColorBorderHover, A.variables.focusShadow, A.variables.contentColorActive, (function(e) {
233
+ return t && (0, M.css)([ "padding-left:0;" ]);
234
+ }), (function(e) {
235
+ var t = e.$isDisabled;
236
+ return !t && (0, M.css)([ "&:focus-within{box-shadow:", ";color:", ";}" ], O.variables.focusShadow, O.variables.contentColorActive);
237
+ }), (function(e) {
238
+ var t = e.$isDisabled, r = e.$isDimmed;
239
+ return t || r ? K : (0, M.css)([ "&:hover{border-color:", ";}" ], O.variables.interactiveColorBorderHover);
240
+ }), (function(e) {
325
241
  var t = e.$error;
326
- return t && (0, D.css)([ "&,&:hover:not([disabled]){border-color:", ";}" ], A.variables.accentColorNegative);
242
+ return t && (0, M.css)([ "&,&:hover{border-color:", ";}" ], O.variables.accentColorNegative);
327
243
  }), (function(e) {
328
244
  var t = e.$append;
329
- return t && (0, D.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;" ]);
330
246
  }), (function(e) {
331
247
  var t = e.$prepend;
332
- return t && (0, D.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
333
- }), (function(e) {
334
- var t = e.disabled;
335
- return t && (0, D.css)([ "border-color:", ";box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);", "" ], A.variables.interactiveColorBorderDisabled, (0,
336
- A.pick)({
337
- enterprise: (0, D.css)([ "background-color:", ";" ], A.variables.interactiveColorBackgroundDisabled)
338
- }));
248
+ return t && (0, M.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
339
249
  }));
340
- /* Some of these need greater specificity than input[type=text] */ var J = N().input.withConfig({
250
+ /* Some of these need greater specificity than input[type=text] */ var X = R().input.withConfig({
341
251
  displayName: "TextStyles__StyledInput",
342
252
  componentId: "eg7n6t-4"
343
- })([ "", ";&,&[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;}", " ", "}" ], A.mixins.reset("inline-flex"), (0,
344
- A.pick)({
345
- enterprise: A.variables.textColor,
346
- prisma: A.variables.contentColorActive
347
- }), 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)({
348
258
  enterprise: "20px",
349
259
  prisma: {
350
260
  comfortable: "24px",
351
261
  compact: "20px"
352
262
  }
353
- }), (0, A.pick)({
354
- enterprise: A.variables.spacingSmall,
263
+ }), (0, O.pick)({
264
+ enterprise: O.variables.spacingSmall,
355
265
  prisma: "14px"
356
- }), A.variables.contentColorMuted, (function(e) {
266
+ }), O.variables.contentColorMuted, (function(e) {
357
267
  var t = e.$error;
358
- return t && (0, D.css)([ "&,&:hover{color:", ";}" ], (0, A.pick)({
268
+ return t && (0, M.css)([ "&,&:hover{color:", ";}" ], (0, O.pick)({
359
269
  enterprise: {
360
- light: A.variables.errorColorD10,
361
- dark: A.variables.errorColorL20
270
+ light: O.variables.errorColorD10,
271
+ dark: O.variables.errorColorL20
362
272
  },
363
- prisma: A.variables.contentColorActive
273
+ prisma: O.variables.contentColorActive
364
274
  }));
365
- }), (function(e) {
366
- var t = e.disabled;
367
- return t && Z;
368
- }));
369
- var Q = N()(z()).withConfig({
275
+ }), H);
276
+ var Y = R()(F()).withConfig({
370
277
  displayName: "TextStyles__StyledVisibilityToggle",
371
278
  componentId: "eg7n6t-5"
372
- })([ "", "" ], F);
373
- var X = N().span.withConfig({
279
+ })([ "", "" ], L);
280
+ var Z = R().span.withConfig({
374
281
  displayName: "TextStyles__StyledPlaceholder",
375
282
  componentId: "eg7n6t-6"
376
283
  })([ "pointer-events:none;color:", ";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:", ";margin-right:", ";", ";", ";", "" ], (0,
377
- A.pick)({
378
- enterprise: A.variables.textGray,
379
- prisma: A.variables.contentColorMuted
380
- }), 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)({
381
288
  enterprise: "10px",
382
289
  prisma: "14px"
383
290
  }), (function(e) {
384
291
  var t = e.$hasStartAdornment, r = e.$startAdornmentWidth;
385
- return t && (r ? (0, D.css)([ "margin-left:", "px;" ], r) : (0, D.css)([ "margin-left:", ";" ], (0,
386
- A.pick)({
292
+ return t && (r ? (0, M.css)([ "margin-left:", "px;" ], r) : (0, M.css)([ "margin-left:", ";" ], (0,
293
+ O.pick)({
387
294
  enterprise: {
388
295
  comfortable: "30px",
389
296
  compact: "26px"
@@ -395,13 +302,13 @@
395
302
  })));
396
303
  }), (function(e) {
397
304
  var t = e.$hasEndAdornment, r = e.$endAdornmentWidth;
398
- return t && (r ? (0, D.css)([ "max-width:calc( 100% - ", " - ", "px );" ], (0, A.pick)({
305
+ return t && (r ? (0, M.css)([ "max-width:calc( 100% - ", " - ", "px );" ], (0, O.pick)({
399
306
  enterprise: "10px",
400
307
  prisma: "14px"
401
- }), r) : (0, D.css)([ "max-width:calc( 100% - ", " - ", " );" ], (0, A.pick)({
308
+ }), r) : (0, M.css)([ "max-width:calc( 100% - ", " - ", " );" ], (0, O.pick)({
402
309
  enterprise: "10px",
403
310
  prisma: "14px"
404
- }), (0, A.pick)({
311
+ }), (0, O.pick)({
405
312
  enterprise: {
406
313
  comfortable: "30px",
407
314
  compact: "26px"
@@ -413,10 +320,10 @@
413
320
  })));
414
321
  }), (function(e) {
415
322
  var t = e.$hasBothAdornment, r = e.$endAdornmentWidth, n = e.$startAdornmentWidth;
416
- return t && (0, D.css)([ "max-width:calc(100% - ", "px - ", "px);" ], n, r);
323
+ return t && (0, M.css)([ "max-width:calc(100% - ", "px - ", "px);" ], n, r);
417
324
  }));
418
- var Y = (0, D.css)([ "display:inline-flex;align-items:center;justify-content:center;height:", ";pointer-events:none;" ], (0,
419
- 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)({
420
327
  enterprise: {
421
328
  comfortable: "30px",
422
329
  compact: "26px"
@@ -426,13 +333,13 @@
426
333
  compact: "30px"
427
334
  }
428
335
  }));
429
- var ee = N().div.withConfig({
336
+ var te = R().div.withConfig({
430
337
  displayName: "TextStyles__StyledStartAdornmentHolder",
431
338
  componentId: "eg7n6t-7"
432
- })([ "", " ", ";" ], Y, (function(e) {
339
+ })([ "", " ", ";" ], ee, (function(e) {
433
340
  var t = e.$width;
434
- return t ? (0, D.css)([ "min-width:", "px;" ], t) : (0, D.css)([ "min-width:", ";" ], (0,
435
- A.pick)({
341
+ return t ? (0, M.css)([ "min-width:", "px;" ], t) : (0, M.css)([ "min-width:", ";" ], (0,
342
+ O.pick)({
436
343
  enterprise: {
437
344
  comfortable: "30px",
438
345
  compact: "26px"
@@ -443,13 +350,13 @@
443
350
  }
444
351
  }));
445
352
  }));
446
- var te = N().div.withConfig({
353
+ var re = R().div.withConfig({
447
354
  displayName: "TextStyles__StyledEndAdornmentHolder",
448
355
  componentId: "eg7n6t-8"
449
- })([ "", " ", ";" ], Y, (function(e) {
356
+ })([ "", " ", ";" ], ee, (function(e) {
450
357
  var t = e.$width;
451
- return t ? (0, D.css)([ "min-width:", "px;" ], t) : (0, D.css)([ "min-width:", ";" ], (0,
452
- A.pick)({
358
+ return t ? (0, M.css)([ "min-width:", "px;" ], t) : (0, M.css)([ "min-width:", ";" ], (0,
359
+ O.pick)({
453
360
  enterprise: {
454
361
  comfortable: "30px",
455
362
  compact: "26px"
@@ -460,11 +367,11 @@
460
367
  }
461
368
  }));
462
369
  }));
463
- var re = N().div.withConfig({
370
+ var ne = R().div.withConfig({
464
371
  displayName: "TextStyles__StyledAdornment",
465
372
  componentId: "eg7n6t-9"
466
373
  })([ "display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", "" ], (0,
467
- A.pick)({
374
+ O.pick)({
468
375
  enterprise: {
469
376
  comfortable: "30px",
470
377
  compact: "26px"
@@ -473,20 +380,20 @@
473
380
  comfortable: "38px",
474
381
  compact: "30px"
475
382
  }
476
- }), (0, A.pick)({
383
+ }), (0, O.pick)({
477
384
  enterprise: {
478
- light: A.variables.gray60,
479
- dark: A.variables.white
385
+ light: O.variables.gray60,
386
+ dark: O.variables.white
480
387
  },
481
- prisma: A.variables.contentColorMuted
388
+ prisma: O.variables.contentColorMuted
482
389
  }), (function(e) {
483
390
  var t = e.$position;
484
- return t === "start" ? (0, D.css)([ "top:1px;left:1px;" ]) : (0, D.css)([ "top:1px;right:1px;" ]);
391
+ return t === "start" ? (0, M.css)([ "top:1px;left:1px;" ]) : (0, M.css)([ "top:1px;right:1px;" ]);
485
392
  }), (function(e) {
486
393
  var t = e.disabled;
487
- return t && Z;
488
- }), (0, A.pick)({
489
- enterprise: (0, D.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;" ])
490
397
  }));
491
398
  // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
492
399
  /**
@@ -495,7 +402,7 @@
495
402
  * @param ref - The React callback or object ref. Can be `null` or `undefined`.
496
403
  * @param current - The new value of the ref.
497
404
  */
498
- function ne(e, t) {
405
+ function ie(e, t) {
499
406
  if (e) {
500
407
  if (typeof e === "function") {
501
408
  e(t);
@@ -508,210 +415,184 @@
508
415
  }
509
416
  }
510
417
  // CONCATENATED MODULE: ./src/Text/Text.tsx
511
- function ie(e) {
418
+ function ae(e) {
512
419
  "@babel/helpers - typeof";
513
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
514
- ie = function e(t) {
515
- return typeof t;
516
- };
517
- } else {
518
- ie = function e(t) {
519
- return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
520
- };
521
- }
522
- return ie(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);
523
425
  }
524
- function ae(e) {
525
- return ce(e) || se(e) || le(e) || oe();
426
+ function oe(e) {
427
+ return pe(e) || ce(e) || se(e) || le();
526
428
  }
527
- function oe() {
429
+ function le() {
528
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.");
529
431
  }
530
- function le(e, t) {
531
- if (!e) return;
532
- if (typeof e === "string") return pe(e, t);
533
- var r = Object.prototype.toString.call(e).slice(8, -1);
534
- if (r === "Object" && e.constructor) r = e.constructor.name;
535
- if (r === "Map" || r === "Set") return Array.from(e);
536
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return pe(e, t);
537
- }
538
- function se(e) {
539
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(e)) return Array.from(e);
432
+ function se(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
+ }
540
438
  }
541
439
  function ce(e) {
542
- if (Array.isArray(e)) return pe(e);
440
+ if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
441
+ }
442
+ function pe(e) {
443
+ if (Array.isArray(e)) return de(e);
543
444
  }
544
- function pe(e, t) {
545
- if (t == null || t > e.length) t = e.length;
546
- 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++) {
547
448
  n[r] = e[r];
548
449
  }
549
450
  return n;
550
451
  }
551
- function de(e, t) {
452
+ function ue(e, t) {
552
453
  var r = Object.keys(e);
553
454
  if (Object.getOwnPropertySymbols) {
554
455
  var n = Object.getOwnPropertySymbols(e);
555
- if (t) n = n.filter((function(t) {
456
+ t && (n = n.filter((function(t) {
556
457
  return Object.getOwnPropertyDescriptor(e, t).enumerable;
557
- }));
558
- r.push.apply(r, n);
458
+ }))), r.push.apply(r, n);
559
459
  }
560
460
  return r;
561
461
  }
562
- function ue(e) {
462
+ function me(e) {
563
463
  for (var t = 1; t < arguments.length; t++) {
564
- var r = arguments[t] != null ? arguments[t] : {};
565
- if (t % 2) {
566
- de(Object(r), true).forEach((function(t) {
567
- Ee(e, t, r[t]);
568
- }));
569
- } else if (Object.getOwnPropertyDescriptors) {
570
- Object.defineProperties(e, Object.getOwnPropertyDescriptors(r));
571
- } else {
572
- de(Object(r)).forEach((function(t) {
573
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
574
- }));
575
- }
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
+ }));
576
470
  }
577
471
  return e;
578
472
  }
579
473
  function fe(e, t) {
580
- if (e == null) return {};
581
- var r = me(e, t);
582
- var n, i;
474
+ if (null == e) return {};
475
+ var r, n, i = ve(e, t);
583
476
  if (Object.getOwnPropertySymbols) {
584
477
  var a = Object.getOwnPropertySymbols(e);
585
- for (i = 0; i < a.length; i++) {
586
- n = a[i];
587
- if (t.indexOf(n) >= 0) continue;
588
- if (!Object.prototype.propertyIsEnumerable.call(e, n)) continue;
589
- 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]);
590
480
  }
591
481
  }
592
- return r;
482
+ return i;
593
483
  }
594
- function me(e, t) {
595
- if (e == null) return {};
484
+ function ve(e, t) {
485
+ if (null == e) return {};
596
486
  var r = {};
597
- var n = Object.keys(e);
598
- var i, a;
599
- for (a = 0; a < n.length; a++) {
600
- i = n[a];
601
- if (t.indexOf(i) >= 0) continue;
602
- 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
+ }
603
492
  }
604
493
  return r;
605
494
  }
606
495
  function he() {
607
- he = Object.assign || function(e) {
496
+ return he = Object.assign ? Object.assign.bind() : function(e) {
608
497
  for (var t = 1; t < arguments.length; t++) {
609
498
  var r = arguments[t];
610
499
  for (var n in r) {
611
- if (Object.prototype.hasOwnProperty.call(r, n)) {
612
- e[n] = r[n];
613
- }
500
+ ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
614
501
  }
615
502
  }
616
503
  return e;
617
- };
618
- return he.apply(this, arguments);
619
- }
620
- function ve(e, t) {
621
- if (!(e instanceof t)) {
622
- throw new TypeError("Cannot call a class as a function");
623
- }
504
+ }, he.apply(null, arguments);
624
505
  }
625
506
  function be(e, t) {
507
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
508
+ }
509
+ function ye(e, t) {
626
510
  for (var r = 0; r < t.length; r++) {
627
511
  var n = t[r];
628
- n.enumerable = n.enumerable || false;
629
- n.configurable = true;
630
- if ("value" in n) n.writable = true;
631
- 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);
632
514
  }
633
515
  }
634
- function Ce(e, t, r) {
635
- if (t) be(e.prototype, t);
636
- if (r) be(e, r);
637
- 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;
638
520
  }
639
- function ye(e, t) {
640
- if (typeof t !== "function" && t !== null) {
641
- throw new TypeError("Super expression must either be null or a function");
642
- }
521
+ function xe(e, t) {
522
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
643
523
  e.prototype = Object.create(t && t.prototype, {
644
524
  constructor: {
645
525
  value: e,
646
- writable: true,
647
- configurable: true
526
+ writable: !0,
527
+ configurable: !0
648
528
  }
649
- });
650
- if (t) ge(e, t);
529
+ }), Object.defineProperty(e, "prototype", {
530
+ writable: !1
531
+ }), t && we(e, t);
651
532
  }
652
- function ge(e, t) {
653
- ge = Object.setPrototypeOf || function e(t, r) {
654
- t.__proto__ = r;
655
- return t;
656
- };
657
- return ge(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);
658
537
  }
659
- function xe(e) {
660
- var t = Le();
661
- return function r() {
662
- var n = Se(e), i;
538
+ function Ce(e) {
539
+ var t = Ae();
540
+ return function() {
541
+ var r, n = Ee(e);
663
542
  if (t) {
664
- var a = Se(this).constructor;
665
- i = Reflect.construct(n, arguments, a);
666
- } else {
667
- i = n.apply(this, arguments);
668
- }
669
- return we(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);
670
547
  };
671
548
  }
672
- function we(e, t) {
673
- if (t && (ie(t) === "object" || typeof t === "function")) {
674
- return t;
675
- }
676
- return ke(e);
549
+ function ke(e, t) {
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);
677
553
  }
678
- function ke(e) {
679
- if (e === void 0) {
680
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
681
- }
554
+ function Se(e) {
555
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
682
556
  return e;
683
557
  }
684
- function Le() {
685
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
686
- if (Reflect.construct.sham) return false;
687
- if (typeof Proxy === "function") return true;
558
+ function Ae() {
688
559
  try {
689
- Date.prototype.toString.call(Reflect.construct(Date, [], (function() {})));
690
- return true;
691
- } catch (e) {
692
- return false;
693
- }
560
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
561
+ } catch (e) {}
562
+ return (Ae = function t() {
563
+ return !!e;
564
+ })();
694
565
  }
695
- function Se(e) {
696
- Se = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
697
- return t.__proto__ || Object.getPrototypeOf(t);
698
- };
699
- return Se(e);
566
+ function Ee(e) {
567
+ return Ee = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
568
+ return e.__proto__ || Object.getPrototypeOf(e);
569
+ }, Ee(e);
700
570
  }
701
- function Ee(e, t, r) {
702
- if (t in e) {
703
- Object.defineProperty(e, t, {
704
- value: r,
705
- enumerable: true,
706
- configurable: true,
707
- writable: true
708
- });
709
- } else {
710
- 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.");
711
590
  }
712
- return e;
591
+ return ("string" === t ? String : Number)(e);
713
592
  }
714
- /** @public */ var Ae = {
593
+ /** @public */
594
+ /** @public */
595
+ /** @public */ var $e = {
715
596
  appearance: a().oneOf([ "default", "search" ]),
716
597
  append: a().bool,
717
598
  autoCapitalize: a().string,
@@ -724,7 +605,7 @@
724
605
  classNamePrivate: a().string,
725
606
  defaultValue: a().string,
726
607
  describedBy: a().string,
727
- disabled: a().bool,
608
+ disabled: a().oneOfType([ a().bool, a().oneOf([ "dimmed" ]) ]),
728
609
  elementRef: a().oneOfType([ a().func, a().object ]),
729
610
  endAdornment: a().node,
730
611
  error: a().bool,
@@ -759,7 +640,7 @@
759
640
  useSyntheticPlaceholder: a().bool,
760
641
  value: a().string
761
642
  };
762
- var Oe = {
643
+ var je = {
763
644
  appearance: "default",
764
645
  append: false,
765
646
  autoFocus: false,
@@ -776,10 +657,10 @@
776
657
  type: "text",
777
658
  passwordVisibilityToggle: false
778
659
  };
779
- /** Note: Text places role and aria props onto the input. All other props are placed on the wrapper. */ var Te = function(e) {
780
- ye(r, e);
781
- var t = xe(r);
782
- Ce(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, [ {
783
664
  key: "validateRows",
784
665
  // @docs-props-type TextPropsBase
785
666
  value: function e(t) {
@@ -789,13 +670,13 @@
789
670
  } ]);
790
671
  function r(e) {
791
672
  var i;
792
- ve(this, r);
673
+ be(this, r);
793
674
  i = t.call(this, e);
794
- Ee(ke(i), "controlledExternally", void 0);
795
- Ee(ke(i), "input", null);
796
- Ee(ke(i), "startAdornment", null);
797
- Ee(ke(i), "endAdornment", null);
798
- Ee(ke(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() {
799
680
  var e = i.startAdornment ? i.startAdornment.getBoundingClientRect() : undefined;
800
681
  var t = e && Math.round(e.width);
801
682
  if (i.state.startAdornmentWidth !== t) {
@@ -811,11 +692,11 @@
811
692
  });
812
693
  }
813
694
  }));
814
- Ee(ke(i), "handleInputMount", (function(e) {
695
+ Oe(Se(i), "handleInputMount", (function(e) {
815
696
  i.input = e;
816
- ne(i.props.inputRef, e);
697
+ ie(i.props.inputRef, e);
817
698
  }));
818
- Ee(ke(i), "handleInputChange", (function(e) {
699
+ Oe(Se(i), "handleInputChange", (function(e) {
819
700
  var t, r;
820
701
  var n = e.target.value;
821
702
  var a = i.props.name;
@@ -829,19 +710,19 @@
829
710
  name: a
830
711
  });
831
712
  }));
832
- Ee(ke(i), "handleInputKeyDown", (function(e) {
713
+ Oe(Se(i), "handleInputKeyDown", (function(e) {
833
714
  var t, r;
834
715
  (t = (r = i.props).onKeyDown) === null || t === void 0 ? void 0 : t.call(r, e);
835
716
  }));
836
- Ee(ke(i), "handleInputSelect", (function(e) {
717
+ Oe(Se(i), "handleInputSelect", (function(e) {
837
718
  var t, r;
838
719
  (t = (r = i.props).onSelect) === null || t === void 0 ? void 0 : t.call(r, e);
839
720
  }));
840
- Ee(ke(i), "handleInputClick", (function(e) {
721
+ Oe(Se(i), "handleInputClick", (function(e) {
841
722
  var t, r;
842
723
  (t = (r = i.props).onInputClick) === null || t === void 0 ? void 0 : t.call(r, e);
843
724
  }));
844
- Ee(ke(i), "handleBoxClick", (function(e) {
725
+ Oe(Se(i), "handleBoxClick", (function(e) {
845
726
  var t, r;
846
727
  if (document.activeElement !== i.input) {
847
728
  var n;
@@ -849,10 +730,10 @@
849
730
  }
850
731
  (t = (r = i.props).onClick) === null || t === void 0 ? void 0 : t.call(r, e);
851
732
  }));
852
- Ee(ke(i), "handleAdornmentClick", (function(e) {
733
+ Oe(Se(i), "handleAdornmentClick", (function(e) {
853
734
  e.stopPropagation();
854
735
  }));
855
- Ee(ke(i), "handleInputFocus", (function(e) {
736
+ Oe(Se(i), "handleInputFocus", (function(e) {
856
737
  var t, r;
857
738
  var n = e.target.value;
858
739
  var a = i.props.name;
@@ -861,7 +742,7 @@
861
742
  name: a
862
743
  });
863
744
  }));
864
- Ee(ke(i), "handleInputBlur", (function(e) {
745
+ Oe(Se(i), "handleInputBlur", (function(e) {
865
746
  var t, r;
866
747
  var n = e.target.value;
867
748
  var a = i.props.name;
@@ -870,7 +751,7 @@
870
751
  name: a
871
752
  });
872
753
  }));
873
- Ee(ke(i), "handleClear", (function(e) {
754
+ Oe(Se(i), "handleClear", (function(e) {
874
755
  var t, r;
875
756
  e.preventDefault();
876
757
  var n = "";
@@ -886,57 +767,60 @@
886
767
  name: a
887
768
  });
888
769
  }));
889
- Ee(ke(i), "handleVisibilityToggle", (function() {
770
+ Oe(Se(i), "handleVisibilityToggle", (function() {
890
771
  i.setState((function(e) {
891
772
  return {
892
773
  hideVisibility: !e.hideVisibility
893
774
  };
894
775
  }));
895
776
  }));
896
- Ee(ke(i), "renderEndAdornment", (function() {
777
+ Oe(Se(i), "renderEndAdornment", (function() {
897
778
  var e;
898
779
  var t = i.props, r = t.appearance, a = t.endAdornment, o = t.passwordVisibilityToggle, l = t.disabled, s = t.canClear, c = t.splunkTheme;
899
- var p = c.isPrisma, d = c.isCompact, u = c.isEnterprise;
900
- var f = d ? "20px" : "24px";
901
- 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 = {
902
784
  ref: function e(t) {
903
785
  i.endAdornment = t;
904
786
  },
905
- disabled: l,
787
+ disabled: !!l,
906
788
  $position: "end"
907
789
  };
908
790
  if (a) {
909
791
 
910
- return n().createElement(re, he({
792
+ return n().createElement(ne, he({
911
793
  "data-test": "end-adornment",
912
794
  onClick: i.handleAdornmentClick
913
- }, m), a);
795
+ }, v), a);
914
796
  }
915
797
  if (o && !l) {
916
- var h = i.state.hideVisibility ? n().createElement(B, null) : n().createElement($, null);
798
+ var b = p ? n().createElement(q, null) : n().createElement(_, null);
799
+ var g = p ? (0, I._)("Show password") : (0, I._)("Hide password");
917
800
 
918
- return n().createElement(re, he({
801
+ return n().createElement(ne, he({
919
802
  onClick: i.handleAdornmentClick
920
- }, m), n().createElement(Q, {
803
+ }, v), n().createElement(Y, {
921
804
  appearance: "subtle",
922
805
  "data-test": "password-toggle",
923
806
  inline: false,
924
807
  onClick: i.handleVisibilityToggle,
925
808
  type: "button",
926
- icon: h
809
+ icon: b,
810
+ "aria-label": g
927
811
  }));
928
812
  }
929
- var b = i.context;
930
- var y = (e = b.labelAttrs) === null || e === void 0 ? void 0 : e.text;
931
- var x = y ? (0, T._)("Clear ".concat(y, " text field")) : (0, T._)("Clear text field");
932
- var w = i.getDisplayValue();
933
- if (u && r === "search") {
934
- 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) {
935
819
 
936
- return n().createElement(re, m, n().createElement(K, {
937
- $disabled: l,
820
+ return n().createElement(ne, v, n().createElement(U, {
821
+ $disabled: !!l,
938
822
  "data-test": "search-icon"
939
- }, n().createElement(g(), {
823
+ }, n().createElement(x(), {
940
824
  screenReaderText: null,
941
825
  hideDefaultTooltip: true,
942
826
  size: "16px",
@@ -944,37 +828,37 @@
944
828
  })));
945
829
  }
946
830
 
947
- return n().createElement(re, m, !l && n().createElement(H, {
831
+ return n().createElement(ne, v, !l && n().createElement(G, {
948
832
  appearance: "subtle",
949
833
  "data-test": "clear",
950
834
  inline: false,
951
- "aria-label": x,
952
- icon: n().createElement(C(), {
835
+ "aria-label": k,
836
+ icon: n().createElement(y(), {
953
837
  size: 1,
954
838
  screenReaderText: null
955
839
  }),
956
840
  onClick: i.handleClear
957
- }), n().createElement(K, {
841
+ }), n().createElement(U, {
958
842
  "data-test": "search-icon",
959
- $disabled: l
960
- }, n().createElement(g(), {
843
+ $disabled: !!l
844
+ }, n().createElement(x(), {
961
845
  screenReaderText: null,
962
846
  hideDefaultTooltip: true,
963
847
  size: "16px",
964
848
  inline: false
965
849
  })));
966
850
  }
967
- if (!!w && (p && r === "search" || s)) {
851
+ if (!!S && (d && r === "search" || s)) {
968
852
 
969
- return n().createElement(re, m, !l && n().createElement(H, {
853
+ return n().createElement(ne, v, !l && n().createElement(G, {
970
854
  "data-test": "clear",
971
855
  appearance: "subtle",
972
- "aria-label": x,
856
+ "aria-label": k,
973
857
  onClick: i.handleClear,
974
- icon: u ? n().createElement(C(), {
858
+ icon: m ? n().createElement(y(), {
975
859
  inline: false,
976
860
  screenReaderText: null
977
- }) : n().createElement(v(), {
861
+ }) : n().createElement(h(), {
978
862
  height: f,
979
863
  inline: false,
980
864
  width: f
@@ -983,7 +867,7 @@
983
867
  }
984
868
  return undefined;
985
869
  }));
986
- Ee(ke(i), "renderStartAdornment", (function() {
870
+ Oe(Se(i), "renderStartAdornment", (function() {
987
871
  var e = i.props, t = e.appearance, r = e.startAdornment, a = e.splunkTheme, o = e.disabled;
988
872
  var l = a.isPrisma, s = a.isCompact;
989
873
  var c = s ? "20px" : "24px";
@@ -991,29 +875,29 @@
991
875
  ref: function e(t) {
992
876
  i.startAdornment = t;
993
877
  },
994
- disabled: o,
878
+ disabled: !!o,
995
879
  $position: "start"
996
880
  };
997
881
  if (r) {
998
882
 
999
- return n().createElement(re, he({
883
+ return n().createElement(ne, he({
1000
884
  "data-test": "start-adornment",
1001
885
  onClick: i.handleAdornmentClick
1002
886
  }, p), r);
1003
887
  }
1004
888
  if (l && t === "search") {
1005
889
 
1006
- return n().createElement(re, p, n().createElement(K, {
890
+ return n().createElement(ne, p, n().createElement(U, {
1007
891
  "data-test": "search-icon",
1008
- $disabled: o
1009
- }, n().createElement(w(), {
892
+ $disabled: !!o
893
+ }, n().createElement(C(), {
1010
894
  height: c,
1011
895
  width: c
1012
896
  })));
1013
897
  }
1014
898
  return undefined;
1015
899
  }));
1016
- Ee(ke(i), "getDisplayValue", (function() {
900
+ Oe(Se(i), "getDisplayValue", (function() {
1017
901
  var e = i.isControlled() ? i.props.value : i.state.value;
1018
902
  return e;
1019
903
  }));
@@ -1034,7 +918,7 @@
1034
918
  r.validateRows(e);
1035
919
  return i;
1036
920
  }
1037
- Ce(r, [ {
921
+ ge(r, [ {
1038
922
  key: "componentDidMount",
1039
923
  value: function e() {
1040
924
  this.getAdornmentWidth();
@@ -1054,6 +938,7 @@
1054
938
  }
1055
939
  }, {
1056
940
  key: "blur",
941
+ // eslint-disable-next-line react/no-unused-class-component-methods
1057
942
  value: function e() {
1058
943
  var t;
1059
944
  (t = this.input) === null || t === void 0 ? void 0 : t.blur();
@@ -1066,7 +951,8 @@
1066
951
  var r;
1067
952
  (r = this.input) === null || r === void 0 ? void 0 : r.focus(t);
1068
953
  }
1069
- }, {
954
+ // eslint-disable-next-line react/no-unused-class-component-methods
955
+ }, {
1070
956
  key: "select",
1071
957
  value: function e() {
1072
958
  var t;
@@ -1075,36 +961,37 @@
1075
961
  }, {
1076
962
  key: "render",
1077
963
  value: function e() {
1078
- 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, 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, M = t.spellCheck, R = t.tabIndex, $ = t.title, _ = t.type, P = t.useSyntheticPlaceholder, B = 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" ]);
1079
- var D = ue(ue({
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({
1080
966
  role: "textbox"
1081
- }, f()(B, (function(e, t) {
967
+ }, m()(q, (function(e, t) {
1082
968
  return t === "role" || t.indexOf("aria-") === 0;
1083
969
  }))), {}, {
1084
- "aria-describedby": h,
1085
- "aria-labelledby": x,
1086
- "aria-invalid": b || undefined
970
+ "aria-describedby": v,
971
+ "aria-labelledby": w,
972
+ "aria-invalid": b || undefined,
973
+ "aria-disabled": f === "dimmed"
1087
974
  });
1088
- var N = d()(B, [ "inputRef", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onSelect", "onInputClick", "rowsMax", "rowsMin" ].concat(ae(c()(D))));
1089
- 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();
1090
977
  var V = {
1091
- className: (0, O.toClassName)(p, y),
978
+ className: (0, T.toClassName)(p, g),
1092
979
  $append: r || undefined,
1093
980
  $error: b,
1094
- $prepend: I || undefined
981
+ $prepend: $ || undefined
1095
982
  };
1096
- var W = this.state.hideVisibility ? "password" : "text";
1097
- var z = A ? W : _;
1098
- var Z = ue(ue({}, D), {}, {
983
+ var z = this.state.hideVisibility ? "password" : "text";
984
+ var F = O ? z : B;
985
+ var H = me(me({}, M), {}, {
1099
986
  "data-test": "textbox",
1100
987
  autoCapitalize: i,
1101
988
  autoComplete: a,
1102
989
  autoCorrect: o,
1103
990
  autoFocus: l,
1104
- id: g,
991
+ id: x,
1105
992
  maxLength: k,
1106
- placeholder: T && !P ? T : undefined,
1107
- name: S,
993
+ placeholder: I && !N ? I : undefined,
994
+ name: A,
1108
995
  onChange: this.handleInputChange,
1109
996
  onKeyDown: this.handleInputKeyDown,
1110
997
  onSelect: this.handleInputSelect,
@@ -1113,80 +1000,82 @@
1113
1000
  onBlur: this.handleInputBlur,
1114
1001
  ref: this.handleInputMount,
1115
1002
  required: j,
1116
- spellCheck: M,
1003
+ spellCheck: P,
1117
1004
  style: {
1118
1005
  height: this.state.height
1119
1006
  },
1120
- title: $,
1121
- tabIndex: R,
1122
- type: z,
1123
- value: q,
1007
+ title: D,
1008
+ tabIndex: _,
1009
+ type: F,
1010
+ value: W,
1124
1011
  $error: b
1125
1012
  });
1126
- var F = P && T && !q;
1127
- // Do not render value in DOM when type is password, or passwordVisibilityToggle is enabled
1128
- var H = _ === "password" || A ? undefined : q;
1129
- // Firefox hack (SUI-2716). Remove when fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=1427173
1130
- var K = _ === "time";
1131
- var Q = this.renderStartAdornment();
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();
1132
1019
  var Y = this.renderEndAdornment();
1133
- var re = !!Q;
1020
+ var ee = !!U;
1134
1021
  var ne = !!Y;
1135
- if (w) {
1022
+ if (C) {
1136
1023
 
1137
1024
  return n().createElement(E(), this.props);
1138
1025
  }
1139
1026
 
1140
- return n().createElement(G, he({
1027
+ return n().createElement(J, he({
1141
1028
  tabIndex: -1,
1142
- $isTimeInput: K,
1143
- className: (0, O.toClassName)(p, u),
1029
+ $isTimeInput: G,
1030
+ className: (0, T.toClassName)(p, u),
1144
1031
  "data-test": "text",
1145
- "data-test-value": H,
1146
- elementRef: v,
1032
+ "data-test-value": L,
1033
+ elementRef: h,
1147
1034
  flex: true,
1148
- inline: C,
1035
+ inline: y,
1149
1036
  onClick: this.handleBoxClick
1150
- }, N), Q, n().createElement(U, he({
1037
+ }, R), U, n().createElement(Q, he({
1151
1038
  $hasEndAdornment: ne,
1152
- $hasStartAdornment: re,
1153
- disabled: m
1154
- }, V), re && n().createElement(ee, {
1039
+ $hasStartAdornment: ee,
1040
+ $isDisabled: f === true,
1041
+ $isDimmed: f === "dimmed"
1042
+ }, V), ee && n().createElement(te, {
1155
1043
  $width: this.state.startAdornmentWidth
1156
- }), m ? n().createElement(J, he({
1157
- className: (0, O.toClassName)(p, u),
1044
+ }), f ? n().createElement(X, he({
1045
+ className: (0, T.toClassName)(p, u),
1158
1046
  "data-test": "textbox",
1159
- disabled: true,
1047
+ disabled: f === true,
1160
1048
  readOnly: true,
1161
- type: z,
1162
- value: q,
1163
- placeholder: T && !P ? T : undefined
1164
- }, D)) : n().createElement(J, he({}, Z, {
1049
+ type: F,
1050
+ value: W,
1051
+ placeholder: I && !N ? I : undefined
1052
+ }, M)) : n().createElement(X, he({}, H, {
1165
1053
  onClick: this.handleInputClick
1166
- })), F && n().createElement(L(), null, T), F && n().createElement(X, {
1054
+ })), K && n().createElement(S(), null, I), K && n().createElement(Z, {
1167
1055
  $endAdornmentWidth: this.state.endAdornmentWidth,
1168
- $hasBothAdornment: re && ne,
1056
+ $hasBothAdornment: ee && ne,
1169
1057
  $hasEndAdornment: ne,
1170
- $hasStartAdornment: re,
1058
+ $hasStartAdornment: ee,
1171
1059
  $startAdornmentWidth: this.state.startAdornmentWidth,
1172
1060
  "aria-hidden": true,
1173
1061
  "data-role": "placeholder"
1174
- }, T), s, ne && n().createElement(te, {
1062
+ }, I), s, ne && n().createElement(re, {
1175
1063
  $width: this.state.endAdornmentWidth
1176
1064
  })), Y);
1177
1065
  }
1178
1066
  } ]);
1179
1067
  return r;
1180
1068
  }(r.Component);
1181
- Ee(Te, "propTypes", Ae);
1182
- Ee(Te, "defaultProps", Oe);
1183
- Ee(Te, "componentType", "Text");
1184
- Ee(Te, "contextType", m.ControlGroupContext);
1185
- var Ie = (0, A.withSplunkTheme)(Te);
1186
- var je = Ie;
1187
- je.propTypes = Te.propTypes;
1188
- je.componentType = Te.componentType;
1189
- /* harmony default export */ const Me = je;
1190
- // 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
1191
1080
  module.exports = t;
1192
1081
  /******/})();