@splunk/react-ui 4.20.0 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +114 -230
- package/Anchor.js +74 -150
- package/Animation.js +52 -124
- package/AnimationToggle.js +86 -146
- package/Box.js +77 -153
- package/Breadcrumbs.js +105 -197
- package/Button.js +168 -316
- package/ButtonGroup.js +84 -168
- package/ButtonSimple.js +224 -324
- package/CHANGELOG.md +21 -0
- package/Calendar.js +264 -462
- package/Card.js +223 -371
- package/CardLayout.js +87 -163
- package/Chip.js +199 -323
- package/Clickable.js +128 -246
- package/CloseButton.js +92 -200
- package/Code.js +162 -250
- package/CollapsiblePanel.js +214 -370
- package/Color.js +267 -495
- package/ColumnLayout.js +152 -254
- package/ComboBox.js +197 -371
- package/Concertina.js +214 -374
- package/ControlGroup.js +164 -288
- package/Date.js +154 -304
- package/DefinitionList.js +104 -180
- package/Divider.js +80 -156
- package/Dropdown.js +121 -263
- package/DualListbox.js +408 -601
- package/EventListener.js +70 -138
- package/File.js +343 -547
- package/FormRows.js +232 -414
- package/Heading.js +94 -164
- package/Image.js +167 -323
- package/JSONTree.js +166 -314
- package/Layer.js +221 -388
- package/Link.js +133 -239
- package/List.js +85 -161
- package/Markdown.js +230 -354
- package/Menu.js +489 -760
- package/Message.js +248 -437
- package/MessageBar.js +220 -408
- package/Modal.js +201 -365
- package/ModalLayer.js +96 -196
- package/Monogram.js +112 -204
- package/Multiselect.js +1135 -1761
- package/Number.js +178 -334
- package/Paginator.js +170 -336
- package/Paragraph.js +77 -153
- package/Popover.js +370 -620
- package/Progress.js +139 -255
- package/RadioBar.js +156 -280
- package/RadioList.js +182 -282
- package/Resize.js +173 -307
- package/ResultsMenu.js +161 -303
- package/ScreenReaderContent.js +75 -151
- package/Scroll.js +125 -267
- package/ScrollContainerContext.js +129 -201
- package/Search.js +188 -354
- package/Select.js +1028 -1430
- package/SidePanel.js +106 -214
- package/Slider.js +198 -348
- package/SlidingPanels.js +138 -280
- package/SplitButton.js +141 -273
- package/StaticContent.js +84 -168
- package/StepBar.js +138 -246
- package/Switch.js +261 -385
- package/TabBar.js +261 -398
- package/TabLayout.js +122 -238
- package/Table.js +943 -1448
- package/Text.js +335 -549
- package/TextArea.js +315 -537
- package/Tooltip.js +152 -292
- package/TransitionOpen.js +118 -242
- package/Typography.js +81 -157
- package/WaitSpinner.js +117 -209
- package/package.json +14 -15
- package/stubs-splunkui.d.ts +4 -1
- package/types/src/ComboBox/Option.d.ts +1 -1
- package/types/src/Concertina/Concertina.d.ts +4 -0
- package/types/src/Link/Link.d.ts +7 -3
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -0
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/OptionBase.d.ts +1 -1
- package/types/src/fixtures/FetchOptions.d.ts +2 -8
- package/useForceUpdate.js +46 -110
- package/useKeyPress.js +50 -107
- package/usePrevious.js +47 -111
- package/useRovingFocus.js +53 -133
- package/types/src/Link/docs/examples/NewTab.d.ts +0 -2
- /package/types/src/Table/docs/examples/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
- /package/types/src/Table/docs/examples/prisma/{DockedHeader.d.ts → DockedHeaderScrollbar.d.ts} +0 -0
package/TextArea.js
CHANGED
|
@@ -1,444 +1,297 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/ var
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
44
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 211);
|
|
86
|
-
/******/ })
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
87
47
|
/************************************************************************/
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/***/ 0:
|
|
91
|
-
/***/ (function(module, exports) {
|
|
92
|
-
|
|
93
|
-
module.exports = require("@splunk/themes");
|
|
94
|
-
|
|
95
|
-
/***/ }),
|
|
96
|
-
|
|
97
|
-
/***/ 1:
|
|
98
|
-
/***/ (function(module, exports) {
|
|
99
|
-
|
|
100
|
-
module.exports = require("prop-types");
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
|
-
/***/ 10:
|
|
105
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
|
-
|
|
107
|
-
"use strict";
|
|
108
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return updateReactRef; });
|
|
109
|
-
/**
|
|
110
|
-
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
111
|
-
*
|
|
112
|
-
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
113
|
-
* @param current - The new value of the ref.
|
|
114
|
-
*/
|
|
115
|
-
function updateReactRef(ref, current) {
|
|
116
|
-
if (ref) {
|
|
117
|
-
if (typeof ref === 'function') {
|
|
118
|
-
ref(current);
|
|
119
|
-
} else {
|
|
120
|
-
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
121
|
-
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
122
|
-
ref.current = current; // eslint-disable-line no-param-reassign
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/***/ }),
|
|
130
|
-
|
|
131
|
-
/***/ 107:
|
|
132
|
-
/***/ (function(module, exports) {
|
|
133
|
-
|
|
134
|
-
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
135
|
-
|
|
136
|
-
/***/ }),
|
|
137
|
-
|
|
138
|
-
/***/ 11:
|
|
139
|
-
/***/ (function(module, exports) {
|
|
140
|
-
|
|
141
|
-
module.exports = require("lodash/has");
|
|
142
|
-
|
|
143
|
-
/***/ }),
|
|
144
|
-
|
|
145
|
-
/***/ 16:
|
|
146
|
-
/***/ (function(module, exports) {
|
|
147
|
-
|
|
148
|
-
module.exports = require("@splunk/react-ui/EventListener");
|
|
149
|
-
|
|
150
|
-
/***/ }),
|
|
151
|
-
|
|
152
|
-
/***/ 167:
|
|
153
|
-
/***/ (function(module, exports) {
|
|
154
|
-
|
|
155
|
-
module.exports = require("lodash/noop");
|
|
156
|
-
|
|
157
|
-
/***/ }),
|
|
158
|
-
|
|
159
|
-
/***/ 17:
|
|
160
|
-
/***/ (function(module, exports) {
|
|
161
|
-
|
|
162
|
-
module.exports = require("@splunk/react-ui/Button");
|
|
163
|
-
|
|
164
|
-
/***/ }),
|
|
165
|
-
|
|
166
|
-
/***/ 2:
|
|
167
|
-
/***/ (function(module, exports) {
|
|
168
|
-
|
|
169
|
-
module.exports = require("react");
|
|
170
|
-
|
|
171
|
-
/***/ }),
|
|
172
|
-
|
|
173
|
-
/***/ 211:
|
|
174
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
175
|
-
|
|
176
|
-
"use strict";
|
|
48
|
+
var __webpack_exports__ = {};
|
|
177
49
|
// ESM COMPAT FLAG
|
|
178
50
|
__webpack_require__.r(__webpack_exports__);
|
|
179
51
|
|
|
180
52
|
// EXPORTS
|
|
181
|
-
__webpack_require__.d(__webpack_exports__,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var external_react_ = __webpack_require__(2);
|
|
185
|
-
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
186
|
-
|
|
187
|
-
// EXTERNAL MODULE: external "prop-types"
|
|
188
|
-
var external_prop_types_ = __webpack_require__(1);
|
|
189
|
-
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
190
|
-
|
|
191
|
-
// EXTERNAL MODULE: external "lodash/defer"
|
|
192
|
-
var defer_ = __webpack_require__(58);
|
|
193
|
-
var defer_default = /*#__PURE__*/__webpack_require__.n(defer_);
|
|
194
|
-
|
|
195
|
-
// EXTERNAL MODULE: external "lodash/has"
|
|
196
|
-
var has_ = __webpack_require__(11);
|
|
197
|
-
var has_default = /*#__PURE__*/__webpack_require__.n(has_);
|
|
198
|
-
|
|
199
|
-
// EXTERNAL MODULE: external "lodash/keys"
|
|
200
|
-
var keys_ = __webpack_require__(9);
|
|
201
|
-
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
202
|
-
|
|
203
|
-
// EXTERNAL MODULE: external "lodash/noop"
|
|
204
|
-
var noop_ = __webpack_require__(167);
|
|
205
|
-
var noop_default = /*#__PURE__*/__webpack_require__.n(noop_);
|
|
206
|
-
|
|
207
|
-
// EXTERNAL MODULE: external "lodash/omit"
|
|
208
|
-
var omit_ = __webpack_require__(5);
|
|
209
|
-
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_);
|
|
210
|
-
|
|
211
|
-
// EXTERNAL MODULE: external "lodash/pickBy"
|
|
212
|
-
var pickBy_ = __webpack_require__(63);
|
|
213
|
-
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_);
|
|
214
|
-
|
|
215
|
-
// EXTERNAL MODULE: external "lodash/throttle"
|
|
216
|
-
var throttle_ = __webpack_require__(33);
|
|
217
|
-
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
|
218
|
-
|
|
219
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
220
|
-
var ControlGroup_ = __webpack_require__(107);
|
|
221
|
-
|
|
222
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Cross"
|
|
223
|
-
var Cross_ = __webpack_require__(26);
|
|
224
|
-
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_);
|
|
225
|
-
|
|
226
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
227
|
-
var Close_ = __webpack_require__(27);
|
|
228
|
-
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
|
|
229
|
-
|
|
230
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Search"
|
|
231
|
-
var Search_ = __webpack_require__(54);
|
|
232
|
-
var Search_default = /*#__PURE__*/__webpack_require__.n(Search_);
|
|
233
|
-
|
|
234
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/EventListener"
|
|
235
|
-
var EventListener_ = __webpack_require__(16);
|
|
236
|
-
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
237
|
-
|
|
238
|
-
// EXTERNAL MODULE: external "@splunk/react-icons/Magnifier"
|
|
239
|
-
var Magnifier_ = __webpack_require__(49);
|
|
240
|
-
var Magnifier_default = /*#__PURE__*/__webpack_require__.n(Magnifier_);
|
|
241
|
-
|
|
242
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
243
|
-
var style_ = __webpack_require__(41);
|
|
244
|
-
|
|
245
|
-
// EXTERNAL MODULE: external "@splunk/themes"
|
|
246
|
-
var themes_ = __webpack_require__(0);
|
|
247
|
-
|
|
248
|
-
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
249
|
-
var i18n_ = __webpack_require__(4);
|
|
250
|
-
|
|
251
|
-
// EXTERNAL MODULE: external "styled-components"
|
|
252
|
-
var external_styled_components_ = __webpack_require__(3);
|
|
253
|
-
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
254
|
-
|
|
255
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Box"
|
|
256
|
-
var Box_ = __webpack_require__(6);
|
|
257
|
-
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
|
|
258
|
-
|
|
259
|
-
// EXTERNAL MODULE: external "@splunk/react-ui/Button"
|
|
260
|
-
var Button_ = __webpack_require__(17);
|
|
261
|
-
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
262
|
-
|
|
263
|
-
// CONCATENATED MODULE: ./src/TextArea/TextAreaStyles.ts
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"default": () => (/* reexport */ TextArea_TextArea)
|
|
55
|
+
});
|
|
267
56
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
57
|
+
;// CONCATENATED MODULE: external "react"
|
|
58
|
+
const external_react_namespaceObject = require("react");
|
|
59
|
+
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
60
|
+
;// CONCATENATED MODULE: external "prop-types"
|
|
61
|
+
const external_prop_types_namespaceObject = require("prop-types");
|
|
62
|
+
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_namespaceObject);
|
|
63
|
+
;// CONCATENATED MODULE: external "lodash/defer"
|
|
64
|
+
const defer_namespaceObject = require("lodash/defer");
|
|
65
|
+
var defer_default = /*#__PURE__*/__webpack_require__.n(defer_namespaceObject);
|
|
66
|
+
;// CONCATENATED MODULE: external "lodash/has"
|
|
67
|
+
const has_namespaceObject = require("lodash/has");
|
|
68
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has_namespaceObject);
|
|
69
|
+
;// CONCATENATED MODULE: external "lodash/keys"
|
|
70
|
+
const keys_namespaceObject = require("lodash/keys");
|
|
71
|
+
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_namespaceObject);
|
|
72
|
+
;// CONCATENATED MODULE: external "lodash/noop"
|
|
73
|
+
const noop_namespaceObject = require("lodash/noop");
|
|
74
|
+
var noop_default = /*#__PURE__*/__webpack_require__.n(noop_namespaceObject);
|
|
75
|
+
;// CONCATENATED MODULE: external "lodash/omit"
|
|
76
|
+
const omit_namespaceObject = require("lodash/omit");
|
|
77
|
+
var omit_default = /*#__PURE__*/__webpack_require__.n(omit_namespaceObject);
|
|
78
|
+
;// CONCATENATED MODULE: external "lodash/pickBy"
|
|
79
|
+
const pickBy_namespaceObject = require("lodash/pickBy");
|
|
80
|
+
var pickBy_default = /*#__PURE__*/__webpack_require__.n(pickBy_namespaceObject);
|
|
81
|
+
;// CONCATENATED MODULE: external "lodash/throttle"
|
|
82
|
+
const throttle_namespaceObject = require("lodash/throttle");
|
|
83
|
+
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_namespaceObject);
|
|
84
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/ControlGroup"
|
|
85
|
+
const ControlGroup_namespaceObject = require("@splunk/react-ui/ControlGroup");
|
|
86
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/Cross"
|
|
87
|
+
const Cross_namespaceObject = require("@splunk/react-icons/Cross");
|
|
88
|
+
var Cross_default = /*#__PURE__*/__webpack_require__.n(Cross_namespaceObject);
|
|
89
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Close"
|
|
90
|
+
const Close_namespaceObject = require("@splunk/react-icons/enterprise/Close");
|
|
91
|
+
var Close_default = /*#__PURE__*/__webpack_require__.n(Close_namespaceObject);
|
|
92
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/Search"
|
|
93
|
+
const Search_namespaceObject = require("@splunk/react-icons/enterprise/Search");
|
|
94
|
+
var Search_default = /*#__PURE__*/__webpack_require__.n(Search_namespaceObject);
|
|
95
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
96
|
+
const EventListener_namespaceObject = require("@splunk/react-ui/EventListener");
|
|
97
|
+
var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_namespaceObject);
|
|
98
|
+
;// CONCATENATED MODULE: external "@splunk/react-icons/Magnifier"
|
|
99
|
+
const Magnifier_namespaceObject = require("@splunk/react-icons/Magnifier");
|
|
100
|
+
var Magnifier_default = /*#__PURE__*/__webpack_require__.n(Magnifier_namespaceObject);
|
|
101
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/style"
|
|
102
|
+
const style_namespaceObject = require("@splunk/ui-utils/style");
|
|
103
|
+
;// CONCATENATED MODULE: external "@splunk/themes"
|
|
104
|
+
const themes_namespaceObject = require("@splunk/themes");
|
|
105
|
+
;// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
106
|
+
const i18n_namespaceObject = require("@splunk/ui-utils/i18n");
|
|
107
|
+
;// CONCATENATED MODULE: external "styled-components"
|
|
108
|
+
const external_styled_components_namespaceObject = require("styled-components");
|
|
109
|
+
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_namespaceObject);
|
|
110
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
111
|
+
const Box_namespaceObject = require("@splunk/react-ui/Box");
|
|
112
|
+
var Box_default = /*#__PURE__*/__webpack_require__.n(Box_namespaceObject);
|
|
113
|
+
;// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
114
|
+
const Button_namespaceObject = require("@splunk/react-ui/Button");
|
|
115
|
+
var Button_default = /*#__PURE__*/__webpack_require__.n(Button_namespaceObject);
|
|
116
|
+
;// CONCATENATED MODULE: ./src/TextArea/TextAreaStyles.ts
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
var disabledStyles = (0,external_styled_components_namespaceObject.css)(["cursor:not-allowed;color:", ";&::placeholder{color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
122
|
+
enterprise: themes_namespaceObject.variables.textDisabledColor,
|
|
123
|
+
prisma: themes_namespaceObject.variables.contentColorDisabled
|
|
124
|
+
}), (0,themes_namespaceObject.pick)({
|
|
125
|
+
enterprise: themes_namespaceObject.variables.textDisabledColor,
|
|
126
|
+
prisma: themes_namespaceObject.variables.contentColorDisabled
|
|
274
127
|
}));
|
|
275
|
-
var buttonStyles =
|
|
276
|
-
enterprise:
|
|
128
|
+
var buttonStyles = (0,external_styled_components_namespaceObject.css)(["border-radius:", ";cursor:pointer;font-size:0.83333em;flex-grow:0;", ";&:not([disabled]){color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
129
|
+
enterprise: themes_namespaceObject.variables.borderRadius,
|
|
277
130
|
prisma: '50%'
|
|
278
|
-
}),
|
|
279
|
-
enterprise:
|
|
131
|
+
}), (0,themes_namespaceObject.pick)({
|
|
132
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["width:", ";height:", ";"], themes_namespaceObject.variables.inputHeight, themes_namespaceObject.variables.inputHeight),
|
|
280
133
|
prisma: {
|
|
281
|
-
comfortable:
|
|
282
|
-
compact:
|
|
134
|
+
comfortable: (0,external_styled_components_namespaceObject.css)(["width:26px;min-width:26px;min-height:26px;margin:8px;padding:0;"]),
|
|
135
|
+
compact: (0,external_styled_components_namespaceObject.css)(["width:22px;min-width:22px;min-height:22px;margin:8px;padding:0;"])
|
|
283
136
|
}
|
|
284
|
-
}),
|
|
137
|
+
}), (0,themes_namespaceObject.pick)({
|
|
285
138
|
enterprise: {
|
|
286
|
-
light:
|
|
287
|
-
dark:
|
|
139
|
+
light: themes_namespaceObject.variables.gray60,
|
|
140
|
+
dark: themes_namespaceObject.variables.white
|
|
288
141
|
},
|
|
289
|
-
prisma:
|
|
142
|
+
prisma: themes_namespaceObject.variables.contentColorMuted
|
|
290
143
|
}));
|
|
291
|
-
var StyledClearButton = external_styled_components_default()(Button_default
|
|
144
|
+
var StyledClearButton = external_styled_components_default()((Button_default())).withConfig({
|
|
292
145
|
displayName: "TextAreaStyles__StyledClearButton",
|
|
293
146
|
componentId: "gfy8yp-0"
|
|
294
147
|
})(["display:none;visibility:hidden;", ""], buttonStyles);
|
|
295
|
-
var StyledSearchIconWrapper = external_styled_components_default.
|
|
148
|
+
var StyledSearchIconWrapper = external_styled_components_default().span.withConfig({
|
|
296
149
|
displayName: "TextAreaStyles__StyledSearchIconWrapper",
|
|
297
150
|
componentId: "gfy8yp-1"
|
|
298
|
-
})(["", ";color:", ";pointer-events:none;padding:", ";", ""],
|
|
151
|
+
})(["", ";color:", ";pointer-events:none;padding:", ";", ""], themes_namespaceObject.mixins.reset('inline-block'), (0,themes_namespaceObject.pick)({
|
|
299
152
|
enterprise: {
|
|
300
|
-
light:
|
|
301
|
-
dark:
|
|
153
|
+
light: themes_namespaceObject.variables.gray60,
|
|
154
|
+
dark: themes_namespaceObject.variables.white
|
|
302
155
|
},
|
|
303
|
-
prisma:
|
|
304
|
-
}),
|
|
156
|
+
prisma: themes_namespaceObject.variables.contentColorMuted
|
|
157
|
+
}), (0,themes_namespaceObject.pick)({
|
|
305
158
|
comfortable: '0 8px',
|
|
306
159
|
compact: '0 6px'
|
|
307
160
|
}), function (_ref) {
|
|
308
161
|
var $disabled = _ref.$disabled;
|
|
309
|
-
return $disabled &&
|
|
310
|
-
enterprise:
|
|
311
|
-
prisma:
|
|
162
|
+
return $disabled && (0,external_styled_components_namespaceObject.css)(["", ""], (0,themes_namespaceObject.pick)({
|
|
163
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.textDisabledColor),
|
|
164
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["color:", ";"], themes_namespaceObject.variables.contentColorDisabled)
|
|
312
165
|
}));
|
|
313
166
|
});
|
|
314
|
-
var StyledBox = external_styled_components_default()(Box_default
|
|
167
|
+
var StyledBox = external_styled_components_default()((Box_default())).withConfig({
|
|
315
168
|
displayName: "TextAreaStyles__StyledBox",
|
|
316
169
|
componentId: "gfy8yp-2"
|
|
317
|
-
})(["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;}}"],
|
|
318
|
-
enterprise:
|
|
319
|
-
prisma:
|
|
170
|
+
})(["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;}}"], (0,themes_namespaceObject.pick)({
|
|
171
|
+
enterprise: themes_namespaceObject.variables.spacingHalf,
|
|
172
|
+
prisma: themes_namespaceObject.variables.spacingSmall
|
|
320
173
|
}),
|
|
321
174
|
/* sc-sel */
|
|
322
|
-
StyledSearchIconWrapper,
|
|
323
|
-
enterprise:
|
|
175
|
+
StyledSearchIconWrapper, (0,themes_namespaceObject.pick)({
|
|
176
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["display:none;"])
|
|
324
177
|
}),
|
|
325
178
|
/* sc-sel */
|
|
326
179
|
StyledClearButton);
|
|
327
|
-
var StyledTextAreaWrapper = external_styled_components_default.
|
|
180
|
+
var StyledTextAreaWrapper = external_styled_components_default().span.withConfig({
|
|
328
181
|
displayName: "TextAreaStyles__StyledTextAreaWrapper",
|
|
329
182
|
componentId: "gfy8yp-3"
|
|
330
|
-
})(["", " 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:", ";", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){", "}", " ", " ", " ", ""],
|
|
183
|
+
})(["", " 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:", ";", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){", "}", " ", " ", " ", ""], themes_namespaceObject.mixins.reset('inline-flex'), themes_namespaceObject.variables.inputHeight, (0,themes_namespaceObject.pick)({
|
|
331
184
|
enterprise: {
|
|
332
|
-
light:
|
|
333
|
-
dark:
|
|
185
|
+
light: themes_namespaceObject.variables.gray60,
|
|
186
|
+
dark: themes_namespaceObject.variables.gray20
|
|
334
187
|
},
|
|
335
|
-
prisma:
|
|
336
|
-
}),
|
|
188
|
+
prisma: themes_namespaceObject.variables.interactiveColorBorder
|
|
189
|
+
}), themes_namespaceObject.variables.borderRadius, (0,themes_namespaceObject.pick)({
|
|
337
190
|
enterprise: {
|
|
338
|
-
light:
|
|
339
|
-
dark:
|
|
191
|
+
light: themes_namespaceObject.variables.white,
|
|
192
|
+
dark: themes_namespaceObject.variables.gray22
|
|
340
193
|
},
|
|
341
|
-
prisma:
|
|
342
|
-
}),
|
|
194
|
+
prisma: themes_namespaceObject.variables.transparent
|
|
195
|
+
}), (0,themes_namespaceObject.pick)({
|
|
343
196
|
enterprise: '0px 0px 0px 10px',
|
|
344
197
|
prisma: '0px 12px'
|
|
345
198
|
}), function (_ref2) {
|
|
346
199
|
var $hasEndAdornment = _ref2.$hasEndAdornment;
|
|
347
|
-
return $hasEndAdornment &&
|
|
200
|
+
return $hasEndAdornment && (0,external_styled_components_namespaceObject.css)(["padding-right:0;"]);
|
|
348
201
|
}, function (_ref3) {
|
|
349
202
|
var $hasStartAdornment = _ref3.$hasStartAdornment;
|
|
350
|
-
return $hasStartAdornment &&
|
|
351
|
-
},
|
|
203
|
+
return $hasStartAdornment && (0,external_styled_components_namespaceObject.css)(["padding-left:0;"]);
|
|
204
|
+
}, (0,themes_namespaceObject.pick)({
|
|
352
205
|
enterprise: {
|
|
353
|
-
light:
|
|
354
|
-
dark:
|
|
206
|
+
light: themes_namespaceObject.variables.gray60,
|
|
207
|
+
dark: themes_namespaceObject.variables.gray20
|
|
355
208
|
},
|
|
356
|
-
prisma:
|
|
357
|
-
}),
|
|
358
|
-
enterprise:
|
|
359
|
-
prisma:
|
|
209
|
+
prisma: themes_namespaceObject.variables.interactiveColorBorderHover
|
|
210
|
+
}), (0,themes_namespaceObject.pick)({
|
|
211
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["box-shadow:", ";color:", ";"], themes_namespaceObject.variables.focusShadow, themes_namespaceObject.variables.textColor),
|
|
212
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["border-color:", ";color:", ";"], themes_namespaceObject.variables.interactiveColorPrimary, themes_namespaceObject.variables.contentColorActive)
|
|
360
213
|
}), function (_ref4) {
|
|
361
214
|
var $error = _ref4.$error;
|
|
362
|
-
return $error &&
|
|
363
|
-
enterprise:
|
|
364
|
-
prisma:
|
|
365
|
-
}),
|
|
366
|
-
enterprise:
|
|
367
|
-
prisma:
|
|
215
|
+
return $error && (0,external_styled_components_namespaceObject.css)(["&,&:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){", "}"], (0,themes_namespaceObject.pick)({
|
|
216
|
+
enterprise: themes_namespaceObject.variables.errorColor,
|
|
217
|
+
prisma: themes_namespaceObject.variables.accentColorNegative
|
|
218
|
+
}), (0,themes_namespaceObject.pick)({
|
|
219
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["box-shadow:", ";color:", ";"], themes_namespaceObject.variables.focusShadow, themes_namespaceObject.variables.textColor),
|
|
220
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["border-color:", ";color:", ";"], themes_namespaceObject.variables.interactiveColorPrimary, themes_namespaceObject.variables.contentColorActive)
|
|
368
221
|
}));
|
|
369
222
|
}, function (_ref5) {
|
|
370
223
|
var $append = _ref5.$append;
|
|
371
|
-
return $append &&
|
|
224
|
+
return $append && (0,external_styled_components_namespaceObject.css)(["margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;"]);
|
|
372
225
|
}, function (_ref6) {
|
|
373
226
|
var $prepend = _ref6.$prepend;
|
|
374
|
-
return $prepend &&
|
|
227
|
+
return $prepend && (0,external_styled_components_namespaceObject.css)(["border-top-left-radius:0;border-bottom-left-radius:0;"]);
|
|
375
228
|
}, function (_ref7) {
|
|
376
229
|
var disabled = _ref7.disabled;
|
|
377
|
-
return disabled &&
|
|
230
|
+
return disabled && (0,external_styled_components_namespaceObject.css)(["", " box-shadow:inset 0 1px 2px rgba(0,0,0,0.025);"], (0,themes_namespaceObject.pick)({
|
|
378
231
|
enterprise: {
|
|
379
|
-
light:
|
|
380
|
-
dark:
|
|
232
|
+
light: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border-color:", ";"], themes_namespaceObject.variables.gray96, themes_namespaceObject.variables.gray92),
|
|
233
|
+
dark: (0,external_styled_components_namespaceObject.css)(["background-color:", ";border-color:", ";"], themes_namespaceObject.variables.gray22, themes_namespaceObject.variables.gray30)
|
|
381
234
|
},
|
|
382
|
-
prisma:
|
|
235
|
+
prisma: (0,external_styled_components_namespaceObject.css)(["border-color:", ";"], themes_namespaceObject.variables.interactiveColorBorderDisabled)
|
|
383
236
|
}));
|
|
384
237
|
});
|
|
385
|
-
var StyledTextArea = external_styled_components_default.
|
|
238
|
+
var StyledTextArea = external_styled_components_default().textarea.withConfig({
|
|
386
239
|
displayName: "TextAreaStyles__StyledTextArea",
|
|
387
240
|
componentId: "gfy8yp-4"
|
|
388
|
-
})(["", ";outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;padding-top:", ";padding-bottom:", ";padding-right:", ";position:relative;resize:none;overflow:auto;white-space:pre-wrap;&::placeholder{color:", ";opacity:1;}", " ", ""],
|
|
389
|
-
enterprise:
|
|
390
|
-
prisma:
|
|
391
|
-
}),
|
|
241
|
+
})(["", ";outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;padding-top:", ";padding-bottom:", ";padding-right:", ";position:relative;resize:none;overflow:auto;white-space:pre-wrap;&::placeholder{color:", ";opacity:1;}", " ", ""], themes_namespaceObject.mixins.reset('inline-flex'), (0,themes_namespaceObject.pick)({
|
|
242
|
+
enterprise: themes_namespaceObject.variables.textColor,
|
|
243
|
+
prisma: themes_namespaceObject.variables.contentColorActive
|
|
244
|
+
}), themes_namespaceObject.variables.sansFontFamily, (0,themes_namespaceObject.pick)({
|
|
392
245
|
enterprise: {
|
|
393
|
-
comfortable:
|
|
246
|
+
comfortable: themes_namespaceObject.variables.spacingQuarter,
|
|
394
247
|
compact: '3px'
|
|
395
248
|
},
|
|
396
249
|
prisma: {
|
|
397
|
-
comfortable:
|
|
250
|
+
comfortable: themes_namespaceObject.variables.spacingSmall,
|
|
398
251
|
compact: '5px'
|
|
399
252
|
}
|
|
400
|
-
}),
|
|
253
|
+
}), (0,themes_namespaceObject.pick)({
|
|
401
254
|
enterprise: {
|
|
402
|
-
comfortable:
|
|
255
|
+
comfortable: themes_namespaceObject.variables.spacingQuarter,
|
|
403
256
|
compact: '3px'
|
|
404
257
|
},
|
|
405
258
|
prisma: {
|
|
406
|
-
comfortable:
|
|
259
|
+
comfortable: themes_namespaceObject.variables.spacingSmall,
|
|
407
260
|
compact: '5px'
|
|
408
261
|
}
|
|
409
|
-
}),
|
|
262
|
+
}), (0,themes_namespaceObject.pick)({
|
|
410
263
|
enterprise: '10px',
|
|
411
264
|
prisma: '14px'
|
|
412
|
-
}),
|
|
265
|
+
}), themes_namespaceObject.variables.contentColorMuted, function (_ref8) {
|
|
413
266
|
var $error = _ref8.$error;
|
|
414
|
-
return $error &&
|
|
267
|
+
return $error && (0,external_styled_components_namespaceObject.css)(["&,&:hover{color:", ";}"], (0,themes_namespaceObject.pick)({
|
|
415
268
|
enterprise: {
|
|
416
|
-
light:
|
|
417
|
-
dark:
|
|
269
|
+
light: themes_namespaceObject.variables.errorColorD10,
|
|
270
|
+
dark: themes_namespaceObject.variables.errorColorL20
|
|
418
271
|
},
|
|
419
|
-
prisma:
|
|
272
|
+
prisma: themes_namespaceObject.variables.contentColorActive
|
|
420
273
|
}));
|
|
421
274
|
}, function (_ref9) {
|
|
422
275
|
var disabled = _ref9.disabled;
|
|
423
276
|
return disabled && disabledStyles;
|
|
424
277
|
});
|
|
425
|
-
var StyledVisibilityToggle = external_styled_components_default()(Button_default
|
|
278
|
+
var StyledVisibilityToggle = external_styled_components_default()((Button_default())).withConfig({
|
|
426
279
|
displayName: "TextAreaStyles__StyledVisibilityToggle",
|
|
427
280
|
componentId: "gfy8yp-5"
|
|
428
281
|
})(["", ""], buttonStyles);
|
|
429
|
-
var StyledPlaceholder = external_styled_components_default.
|
|
282
|
+
var StyledPlaceholder = external_styled_components_default().span.withConfig({
|
|
430
283
|
displayName: "TextAreaStyles__StyledPlaceholder",
|
|
431
284
|
componentId: "gfy8yp-6"
|
|
432
|
-
})(["pointer-events:none;color:", ";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:", ";margin-right:", ";", ";", ";", ""],
|
|
433
|
-
enterprise:
|
|
434
|
-
prisma:
|
|
435
|
-
}),
|
|
285
|
+
})(["pointer-events:none;color:", ";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:", ";margin-right:", ";", ";", ";", ""], (0,themes_namespaceObject.pick)({
|
|
286
|
+
enterprise: themes_namespaceObject.variables.textGray,
|
|
287
|
+
prisma: themes_namespaceObject.variables.contentColorMuted
|
|
288
|
+
}), themes_namespaceObject.variables.lineHeight, (0,themes_namespaceObject.pick)({
|
|
436
289
|
enterprise: '10px',
|
|
437
290
|
prisma: '14px'
|
|
438
291
|
}), function (_ref10) {
|
|
439
292
|
var $hasStartAdornment = _ref10.$hasStartAdornment,
|
|
440
293
|
$startAdornmentWidth = _ref10.$startAdornmentWidth;
|
|
441
|
-
return $hasStartAdornment && ($startAdornmentWidth ?
|
|
294
|
+
return $hasStartAdornment && ($startAdornmentWidth ? (0,external_styled_components_namespaceObject.css)(["margin-left:", "px;"], $startAdornmentWidth) : (0,external_styled_components_namespaceObject.css)(["margin-left:", ";"], (0,themes_namespaceObject.pick)({
|
|
442
295
|
enterprise: {
|
|
443
296
|
comfortable: '30px',
|
|
444
297
|
compact: '26px'
|
|
@@ -452,13 +305,13 @@ var StyledPlaceholder = external_styled_components_default.a.span.withConfig({
|
|
|
452
305
|
var $hasEndAdornment = _ref11.$hasEndAdornment,
|
|
453
306
|
$endAdornmentWidth = _ref11.$endAdornmentWidth;
|
|
454
307
|
return $hasEndAdornment && ($endAdornmentWidth // calc(100% - padding - adorment width)
|
|
455
|
-
?
|
|
308
|
+
? (0,external_styled_components_namespaceObject.css)(["max-width:calc( 100% - ", " - ", "px );"], (0,themes_namespaceObject.pick)({
|
|
456
309
|
enterprise: '10px',
|
|
457
310
|
prisma: '14px'
|
|
458
|
-
}), $endAdornmentWidth) :
|
|
311
|
+
}), $endAdornmentWidth) : (0,external_styled_components_namespaceObject.css)(["max-width:calc( 100% - ", " - ", " );"], (0,themes_namespaceObject.pick)({
|
|
459
312
|
enterprise: '10px',
|
|
460
313
|
prisma: '14px'
|
|
461
|
-
}),
|
|
314
|
+
}), (0,themes_namespaceObject.pick)({
|
|
462
315
|
enterprise: {
|
|
463
316
|
comfortable: '30px',
|
|
464
317
|
compact: '26px'
|
|
@@ -472,9 +325,9 @@ var StyledPlaceholder = external_styled_components_default.a.span.withConfig({
|
|
|
472
325
|
var $hasBothAdornment = _ref12.$hasBothAdornment,
|
|
473
326
|
$endAdornmentWidth = _ref12.$endAdornmentWidth,
|
|
474
327
|
$startAdornmentWidth = _ref12.$startAdornmentWidth;
|
|
475
|
-
return $hasBothAdornment &&
|
|
328
|
+
return $hasBothAdornment && (0,external_styled_components_namespaceObject.css)(["max-width:calc(100% - ", "px - ", "px);"], $startAdornmentWidth, $endAdornmentWidth);
|
|
476
329
|
});
|
|
477
|
-
var adornmentHolder =
|
|
330
|
+
var adornmentHolder = (0,external_styled_components_namespaceObject.css)(["display:inline-flex;align-items:center;justify-content:center;height:", ";pointer-events:none;"], (0,themes_namespaceObject.pick)({
|
|
478
331
|
enterprise: {
|
|
479
332
|
comfortable: '30px',
|
|
480
333
|
compact: '26px'
|
|
@@ -484,12 +337,12 @@ var adornmentHolder = Object(external_styled_components_["css"])(["display:inlin
|
|
|
484
337
|
compact: '30px'
|
|
485
338
|
}
|
|
486
339
|
}));
|
|
487
|
-
var StyledStartAdornmentHolder = external_styled_components_default.
|
|
340
|
+
var StyledStartAdornmentHolder = external_styled_components_default().div.withConfig({
|
|
488
341
|
displayName: "TextAreaStyles__StyledStartAdornmentHolder",
|
|
489
342
|
componentId: "gfy8yp-7"
|
|
490
343
|
})(["", " ", ";"], adornmentHolder, function (_ref13) {
|
|
491
344
|
var $width = _ref13.$width;
|
|
492
|
-
return $width ?
|
|
345
|
+
return $width ? (0,external_styled_components_namespaceObject.css)(["min-width:", "px;"], $width) : (0,external_styled_components_namespaceObject.css)(["min-width:", ";"], (0,themes_namespaceObject.pick)({
|
|
493
346
|
enterprise: {
|
|
494
347
|
comfortable: '30px',
|
|
495
348
|
compact: '26px'
|
|
@@ -500,12 +353,12 @@ var StyledStartAdornmentHolder = external_styled_components_default.a.div.withCo
|
|
|
500
353
|
}
|
|
501
354
|
}));
|
|
502
355
|
});
|
|
503
|
-
var StyledEndAdornmentHolder = external_styled_components_default.
|
|
356
|
+
var StyledEndAdornmentHolder = external_styled_components_default().div.withConfig({
|
|
504
357
|
displayName: "TextAreaStyles__StyledEndAdornmentHolder",
|
|
505
358
|
componentId: "gfy8yp-8"
|
|
506
359
|
})(["", " ", ";"], adornmentHolder, function (_ref14) {
|
|
507
360
|
var $width = _ref14.$width;
|
|
508
|
-
return $width ?
|
|
361
|
+
return $width ? (0,external_styled_components_namespaceObject.css)(["min-width:", "px;"], $width) : (0,external_styled_components_namespaceObject.css)(["min-width:", ";"], (0,themes_namespaceObject.pick)({
|
|
509
362
|
enterprise: {
|
|
510
363
|
comfortable: '30px',
|
|
511
364
|
compact: '26px'
|
|
@@ -516,10 +369,10 @@ var StyledEndAdornmentHolder = external_styled_components_default.a.div.withConf
|
|
|
516
369
|
}
|
|
517
370
|
}));
|
|
518
371
|
});
|
|
519
|
-
var StyledAdornment = external_styled_components_default.
|
|
372
|
+
var StyledAdornment = external_styled_components_default().div.withConfig({
|
|
520
373
|
displayName: "TextAreaStyles__StyledAdornment",
|
|
521
374
|
componentId: "gfy8yp-9"
|
|
522
|
-
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", ""],
|
|
375
|
+
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", ""], (0,themes_namespaceObject.pick)({
|
|
523
376
|
enterprise: {
|
|
524
377
|
comfortable: '30px',
|
|
525
378
|
compact: '26px'
|
|
@@ -528,23 +381,23 @@ var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
|
528
381
|
comfortable: '38px',
|
|
529
382
|
compact: '30px'
|
|
530
383
|
}
|
|
531
|
-
}),
|
|
384
|
+
}), (0,themes_namespaceObject.pick)({
|
|
532
385
|
enterprise: {
|
|
533
|
-
light:
|
|
534
|
-
dark:
|
|
386
|
+
light: themes_namespaceObject.variables.gray60,
|
|
387
|
+
dark: themes_namespaceObject.variables.white
|
|
535
388
|
},
|
|
536
|
-
prisma:
|
|
389
|
+
prisma: themes_namespaceObject.variables.contentColorMuted
|
|
537
390
|
}), function (_ref15) {
|
|
538
391
|
var $position = _ref15.$position;
|
|
539
|
-
return $position === 'start' ?
|
|
392
|
+
return $position === 'start' ? (0,external_styled_components_namespaceObject.css)(["top:1px;left:1px;"]) : (0,external_styled_components_namespaceObject.css)(["top:1px;right:1px;"]);
|
|
540
393
|
}, function (_ref16) {
|
|
541
394
|
var disabled = _ref16.disabled;
|
|
542
395
|
return disabled && disabledStyles;
|
|
543
|
-
},
|
|
544
|
-
enterprise:
|
|
396
|
+
}, (0,themes_namespaceObject.pick)({
|
|
397
|
+
enterprise: (0,external_styled_components_namespaceObject.css)(["margin-left:-1px;margin-right:-1px;"])
|
|
545
398
|
}));
|
|
546
399
|
|
|
547
|
-
|
|
400
|
+
;// CONCATENATED MODULE: ./src/TextArea/syncHeightWithShadow.ts
|
|
548
401
|
// This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
|
|
549
402
|
// which is MIT-licensed:
|
|
550
403
|
//
|
|
@@ -618,10 +471,27 @@ function syncHeightWithShadow(_ref) {
|
|
|
618
471
|
|
|
619
472
|
return false;
|
|
620
473
|
}
|
|
621
|
-
|
|
622
|
-
|
|
474
|
+
;// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
475
|
+
/**
|
|
476
|
+
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
477
|
+
*
|
|
478
|
+
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
479
|
+
* @param current - The new value of the ref.
|
|
480
|
+
*/
|
|
481
|
+
function updateReactRef(ref, current) {
|
|
482
|
+
if (ref) {
|
|
483
|
+
if (typeof ref === 'function') {
|
|
484
|
+
ref(current);
|
|
485
|
+
} else {
|
|
486
|
+
// the public signature of this util uses React.Ref<T> to mirror the way React types refs.
|
|
487
|
+
// the intention here is to signal "we will take care of setting 'current', not you".
|
|
488
|
+
ref.current = current; // eslint-disable-line no-param-reassign
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
623
492
|
|
|
624
|
-
|
|
493
|
+
|
|
494
|
+
;// CONCATENATED MODULE: ./src/TextArea/TextArea.tsx
|
|
625
495
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
626
496
|
|
|
627
497
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
@@ -692,52 +562,52 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
692
562
|
/** @public */
|
|
693
563
|
|
|
694
564
|
var propTypes = {
|
|
695
|
-
appearance: external_prop_types_default.
|
|
696
|
-
append: external_prop_types_default.
|
|
697
|
-
autoCapitalize: external_prop_types_default.
|
|
698
|
-
autoComplete: external_prop_types_default.
|
|
699
|
-
autoCorrect: external_prop_types_default.
|
|
700
|
-
autoFocus: external_prop_types_default.
|
|
701
|
-
canClear: external_prop_types_default.
|
|
702
|
-
children: external_prop_types_default.
|
|
565
|
+
appearance: external_prop_types_default().oneOf(['default', 'search']),
|
|
566
|
+
append: (external_prop_types_default()).bool,
|
|
567
|
+
autoCapitalize: (external_prop_types_default()).string,
|
|
568
|
+
autoComplete: (external_prop_types_default()).string,
|
|
569
|
+
autoCorrect: (external_prop_types_default()).string,
|
|
570
|
+
autoFocus: (external_prop_types_default()).bool,
|
|
571
|
+
canClear: (external_prop_types_default()).bool,
|
|
572
|
+
children: (external_prop_types_default()).node,
|
|
703
573
|
|
|
704
574
|
/** @private. */
|
|
705
|
-
classNamePrivate: external_prop_types_default.
|
|
706
|
-
defaultValue: external_prop_types_default.
|
|
707
|
-
describedBy: external_prop_types_default.
|
|
708
|
-
disabled: external_prop_types_default.
|
|
709
|
-
elementRef: external_prop_types_default.
|
|
710
|
-
endAdornment: external_prop_types_default.
|
|
711
|
-
error: external_prop_types_default.
|
|
712
|
-
inline: external_prop_types_default.
|
|
575
|
+
classNamePrivate: (external_prop_types_default()).string,
|
|
576
|
+
defaultValue: (external_prop_types_default()).string,
|
|
577
|
+
describedBy: (external_prop_types_default()).string,
|
|
578
|
+
disabled: (external_prop_types_default()).bool,
|
|
579
|
+
elementRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
580
|
+
endAdornment: (external_prop_types_default()).node,
|
|
581
|
+
error: (external_prop_types_default()).bool,
|
|
582
|
+
inline: (external_prop_types_default()).bool,
|
|
713
583
|
|
|
714
584
|
/** @private. */
|
|
715
|
-
inputClassName: external_prop_types_default.
|
|
716
|
-
inputId: external_prop_types_default.
|
|
717
|
-
inputRef: external_prop_types_default.
|
|
718
|
-
labelledBy: external_prop_types_default.
|
|
719
|
-
maxLength: external_prop_types_default.
|
|
720
|
-
name: external_prop_types_default.
|
|
721
|
-
onBlur: external_prop_types_default.
|
|
722
|
-
onChange: external_prop_types_default.
|
|
723
|
-
onFocus: external_prop_types_default.
|
|
724
|
-
onKeyDown: external_prop_types_default.
|
|
725
|
-
onSelect: external_prop_types_default.
|
|
726
|
-
onInputClick: external_prop_types_default.
|
|
727
|
-
placeholder: external_prop_types_default.
|
|
728
|
-
prepend: external_prop_types_default.
|
|
585
|
+
inputClassName: (external_prop_types_default()).string,
|
|
586
|
+
inputId: (external_prop_types_default()).string,
|
|
587
|
+
inputRef: external_prop_types_default().oneOfType([(external_prop_types_default()).func, (external_prop_types_default()).object]),
|
|
588
|
+
labelledBy: (external_prop_types_default()).string,
|
|
589
|
+
maxLength: (external_prop_types_default()).number,
|
|
590
|
+
name: (external_prop_types_default()).string,
|
|
591
|
+
onBlur: (external_prop_types_default()).func,
|
|
592
|
+
onChange: (external_prop_types_default()).func,
|
|
593
|
+
onFocus: (external_prop_types_default()).func,
|
|
594
|
+
onKeyDown: (external_prop_types_default()).func,
|
|
595
|
+
onSelect: (external_prop_types_default()).func,
|
|
596
|
+
onInputClick: (external_prop_types_default()).func,
|
|
597
|
+
placeholder: (external_prop_types_default()).string,
|
|
598
|
+
prepend: (external_prop_types_default()).bool,
|
|
729
599
|
|
|
730
600
|
/** @private. */
|
|
731
|
-
required: external_prop_types_default.
|
|
732
|
-
rowsMax: external_prop_types_default.
|
|
733
|
-
rowsMin: external_prop_types_default.
|
|
734
|
-
spellCheck: external_prop_types_default.
|
|
735
|
-
tabIndex: external_prop_types_default.
|
|
736
|
-
startAdornment: external_prop_types_default.
|
|
601
|
+
required: (external_prop_types_default()).bool,
|
|
602
|
+
rowsMax: (external_prop_types_default()).number,
|
|
603
|
+
rowsMin: (external_prop_types_default()).number,
|
|
604
|
+
spellCheck: (external_prop_types_default()).bool,
|
|
605
|
+
tabIndex: (external_prop_types_default()).number,
|
|
606
|
+
startAdornment: (external_prop_types_default()).node,
|
|
737
607
|
|
|
738
608
|
/** @private */
|
|
739
|
-
splunkTheme: external_prop_types_default.
|
|
740
|
-
value: external_prop_types_default.
|
|
609
|
+
splunkTheme: (external_prop_types_default()).object,
|
|
610
|
+
value: (external_prop_types_default()).string
|
|
741
611
|
};
|
|
742
612
|
var defaultProps = {
|
|
743
613
|
appearance: 'default',
|
|
@@ -755,7 +625,7 @@ var defaultProps = {
|
|
|
755
625
|
};
|
|
756
626
|
|
|
757
627
|
/** Note: TextArea places role and aria props onto the input. All other props are placed on the wrapper. */
|
|
758
|
-
var
|
|
628
|
+
var TextArea = /*#__PURE__*/function (_Component) {
|
|
759
629
|
_inherits(TextArea, _Component);
|
|
760
630
|
|
|
761
631
|
var _super = _createSuper(TextArea);
|
|
@@ -814,7 +684,7 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
814
684
|
|
|
815
685
|
_defineProperty(_assertThisInitialized(_this), "handleInputMount", function (el) {
|
|
816
686
|
_this.input = el;
|
|
817
|
-
|
|
687
|
+
updateReactRef(_this.props.inputRef, el);
|
|
818
688
|
});
|
|
819
689
|
|
|
820
690
|
_defineProperty(_assertThisInitialized(_this), "handleInputChange", function (e) {
|
|
@@ -923,31 +793,31 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
923
793
|
};
|
|
924
794
|
|
|
925
795
|
if (endAdornment) {
|
|
926
|
-
return /*#__PURE__*/external_react_default.
|
|
796
|
+
return /*#__PURE__*/external_react_default().createElement(StyledAdornment, adornmentProps, endAdornment);
|
|
927
797
|
}
|
|
928
798
|
|
|
929
799
|
var controlGroupContext = _this.context;
|
|
930
800
|
var controlGroupLabel = (_controlGroupContext$ = controlGroupContext.labelAttrs) === null || _controlGroupContext$ === void 0 ? void 0 : _controlGroupContext$.text;
|
|
931
|
-
var clearButtonText = controlGroupLabel ?
|
|
801
|
+
var clearButtonText = controlGroupLabel ? (0,i18n_namespaceObject._)("Clear ".concat(controlGroupLabel, " text field")) : (0,i18n_namespaceObject._)('Clear text field');
|
|
932
802
|
|
|
933
803
|
if (!isPrisma && appearance === 'search') {
|
|
934
|
-
return /*#__PURE__*/external_react_default.
|
|
804
|
+
return /*#__PURE__*/external_react_default().createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default().createElement(StyledClearButton, {
|
|
935
805
|
appearance: "pill",
|
|
936
806
|
"data-test": "clear",
|
|
937
807
|
inline: false,
|
|
938
|
-
icon: /*#__PURE__*/external_react_default.
|
|
808
|
+
icon: /*#__PURE__*/external_react_default().createElement((Close_default()), {
|
|
939
809
|
size: 1,
|
|
940
810
|
screenReaderText: clearButtonText
|
|
941
811
|
}),
|
|
942
812
|
onClick: _this.handleClear
|
|
943
|
-
}), /*#__PURE__*/external_react_default.
|
|
813
|
+
}), /*#__PURE__*/external_react_default().createElement(StyledSearchIconWrapper, {
|
|
944
814
|
$disabled: disabled
|
|
945
|
-
}, isEnterprise ? /*#__PURE__*/external_react_default.
|
|
815
|
+
}, isEnterprise ? /*#__PURE__*/external_react_default().createElement((Search_default()), {
|
|
946
816
|
hideDefaultTooltip: true,
|
|
947
817
|
inline: false,
|
|
948
818
|
screenReaderText: null,
|
|
949
819
|
size: "16px"
|
|
950
|
-
}) : /*#__PURE__*/external_react_default.
|
|
820
|
+
}) : /*#__PURE__*/external_react_default().createElement((Magnifier_default()), {
|
|
951
821
|
height: prismaSize,
|
|
952
822
|
width: prismaSize
|
|
953
823
|
})));
|
|
@@ -956,11 +826,11 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
956
826
|
var displayValue = _this.getDisplayValue();
|
|
957
827
|
|
|
958
828
|
if (!!displayValue && (isPrisma && appearance === 'search' || canClear)) {
|
|
959
|
-
return /*#__PURE__*/external_react_default.
|
|
829
|
+
return /*#__PURE__*/external_react_default().createElement(StyledAdornment, adornmentProps, !disabled && /*#__PURE__*/external_react_default().createElement(StyledClearButton, {
|
|
960
830
|
"data-test": "clear",
|
|
961
831
|
appearance: "secondary",
|
|
962
832
|
onClick: _this.handleClear,
|
|
963
|
-
icon: /*#__PURE__*/external_react_default.
|
|
833
|
+
icon: /*#__PURE__*/external_react_default().createElement((Cross_default()), {
|
|
964
834
|
"aria-label": clearButtonText,
|
|
965
835
|
inline: false,
|
|
966
836
|
width: prismaSize,
|
|
@@ -990,13 +860,13 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
990
860
|
};
|
|
991
861
|
|
|
992
862
|
if (startAdornment) {
|
|
993
|
-
return /*#__PURE__*/external_react_default.
|
|
863
|
+
return /*#__PURE__*/external_react_default().createElement(StyledAdornment, adornmentProps, startAdornment);
|
|
994
864
|
}
|
|
995
865
|
|
|
996
866
|
if (isPrisma && appearance === 'search') {
|
|
997
|
-
return /*#__PURE__*/external_react_default.
|
|
867
|
+
return /*#__PURE__*/external_react_default().createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default().createElement(StyledSearchIconWrapper, {
|
|
998
868
|
$disabled: disabled
|
|
999
|
-
}, /*#__PURE__*/external_react_default.
|
|
869
|
+
}, /*#__PURE__*/external_react_default().createElement((Magnifier_default()), {
|
|
1000
870
|
"aria-label": "Search",
|
|
1001
871
|
height: prismaSize,
|
|
1002
872
|
width: prismaSize
|
|
@@ -1119,7 +989,7 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
1119
989
|
var boxProps = omit_default()(otherProps, ['inputRef', 'onBlur', 'onChange', 'onFocus', 'onKeyDown', 'onSelect', 'onInputClick', 'rowsMax', 'rowsMin'].concat(_toConsumableArray(keys_default()(ariaProps))));
|
|
1120
990
|
var displayValue = this.getDisplayValue();
|
|
1121
991
|
var displayProps = {
|
|
1122
|
-
className:
|
|
992
|
+
className: (0,style_namespaceObject.toClassName)(className, inputClassName),
|
|
1123
993
|
$append: append || undefined,
|
|
1124
994
|
$error: error,
|
|
1125
995
|
$prepend: prepend || undefined
|
|
@@ -1156,23 +1026,23 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
1156
1026
|
|
|
1157
1027
|
var hasEndAdornment = !!this.renderEndAdornment();
|
|
1158
1028
|
var hasStartAdornment = !!this.renderStartAdornment();
|
|
1159
|
-
return /*#__PURE__*/external_react_default.
|
|
1029
|
+
return /*#__PURE__*/external_react_default().createElement(StyledBox, _extends({
|
|
1160
1030
|
tabIndex: -1,
|
|
1161
|
-
className:
|
|
1031
|
+
className: (0,style_namespaceObject.toClassName)(className, classNamePrivate),
|
|
1162
1032
|
"data-test": "text",
|
|
1163
1033
|
"data-test-value": displayValue,
|
|
1164
1034
|
elementRef: elementRef,
|
|
1165
1035
|
flex: true,
|
|
1166
1036
|
inline: inline
|
|
1167
|
-
}, boxProps), this.renderStartAdornment(), /*#__PURE__*/external_react_default.
|
|
1037
|
+
}, boxProps), this.renderStartAdornment(), /*#__PURE__*/external_react_default().createElement(StyledTextAreaWrapper, _extends({
|
|
1168
1038
|
$hasEndAdornment: hasEndAdornment,
|
|
1169
1039
|
$hasStartAdornment: hasStartAdornment,
|
|
1170
1040
|
disabled: disabled
|
|
1171
|
-
}, displayProps), hasStartAdornment && /*#__PURE__*/external_react_default.
|
|
1041
|
+
}, displayProps), hasStartAdornment && /*#__PURE__*/external_react_default().createElement(StyledStartAdornmentHolder, {
|
|
1172
1042
|
$width: this.state.startAdornmentWidth
|
|
1173
|
-
}), /*#__PURE__*/external_react_default.
|
|
1043
|
+
}), /*#__PURE__*/external_react_default().createElement(StyledTextArea, {
|
|
1174
1044
|
"aria-hidden": "true",
|
|
1175
|
-
onChange: noop_default
|
|
1045
|
+
onChange: (noop_default()),
|
|
1176
1046
|
onClick: this.handleInputClick,
|
|
1177
1047
|
style: {
|
|
1178
1048
|
width: '100%',
|
|
@@ -1186,9 +1056,9 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
1186
1056
|
_this2.shadow = el;
|
|
1187
1057
|
},
|
|
1188
1058
|
value: displayValue
|
|
1189
|
-
}), disabled ? /*#__PURE__*/external_react_default.
|
|
1059
|
+
}), disabled ? /*#__PURE__*/external_react_default().createElement(StyledTextArea, _extends({
|
|
1190
1060
|
as: "textarea",
|
|
1191
|
-
className:
|
|
1061
|
+
className: (0,style_namespaceObject.toClassName)(className, classNamePrivate),
|
|
1192
1062
|
"data-multiline": "true",
|
|
1193
1063
|
"data-test": "text",
|
|
1194
1064
|
disabled: true,
|
|
@@ -1201,131 +1071,39 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
1201
1071
|
ref: function ref(el) {
|
|
1202
1072
|
_this2.shadow = el;
|
|
1203
1073
|
}
|
|
1204
|
-
}, ariaProps)) : /*#__PURE__*/external_react_default.
|
|
1074
|
+
}, ariaProps)) : /*#__PURE__*/external_react_default().createElement(StyledTextArea, _extends({
|
|
1205
1075
|
as: "textarea"
|
|
1206
1076
|
}, inputProps, {
|
|
1207
1077
|
onClick: this.handleInputClick
|
|
1208
|
-
})), /*#__PURE__*/external_react_default.
|
|
1078
|
+
})), /*#__PURE__*/external_react_default().createElement((EventListener_default()), {
|
|
1209
1079
|
target: window,
|
|
1210
1080
|
eventType: "resize",
|
|
1211
1081
|
listener: this.handleResize
|
|
1212
|
-
}), children, hasEndAdornment && /*#__PURE__*/external_react_default.
|
|
1082
|
+
}), children, hasEndAdornment && /*#__PURE__*/external_react_default().createElement(StyledEndAdornmentHolder, {
|
|
1213
1083
|
$width: this.state.endAdornmentWidth
|
|
1214
1084
|
})), this.renderEndAdornment());
|
|
1215
1085
|
}
|
|
1216
1086
|
}]);
|
|
1217
1087
|
|
|
1218
1088
|
return TextArea;
|
|
1219
|
-
}(
|
|
1089
|
+
}(external_react_namespaceObject.Component);
|
|
1220
1090
|
|
|
1221
|
-
_defineProperty(
|
|
1091
|
+
_defineProperty(TextArea, "propTypes", propTypes);
|
|
1222
1092
|
|
|
1223
|
-
_defineProperty(
|
|
1093
|
+
_defineProperty(TextArea, "defaultProps", defaultProps);
|
|
1224
1094
|
|
|
1225
|
-
_defineProperty(
|
|
1095
|
+
_defineProperty(TextArea, "componentType", 'TextArea');
|
|
1226
1096
|
|
|
1227
|
-
_defineProperty(
|
|
1097
|
+
_defineProperty(TextArea, "contextType", ControlGroup_namespaceObject.ControlGroupContext);
|
|
1228
1098
|
|
|
1229
|
-
var TextAreaWithThemeBase =
|
|
1099
|
+
var TextAreaWithThemeBase = (0,themes_namespaceObject.withSplunkTheme)(TextArea);
|
|
1230
1100
|
var TextAreaWithTheme = TextAreaWithThemeBase;
|
|
1231
|
-
TextAreaWithTheme.propTypes =
|
|
1232
|
-
TextAreaWithTheme.componentType =
|
|
1233
|
-
/* harmony default export */
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
/***/ }),
|
|
1239
|
-
|
|
1240
|
-
/***/ 26:
|
|
1241
|
-
/***/ (function(module, exports) {
|
|
1242
|
-
|
|
1243
|
-
module.exports = require("@splunk/react-icons/Cross");
|
|
1244
|
-
|
|
1245
|
-
/***/ }),
|
|
1246
|
-
|
|
1247
|
-
/***/ 27:
|
|
1248
|
-
/***/ (function(module, exports) {
|
|
1249
|
-
|
|
1250
|
-
module.exports = require("@splunk/react-icons/enterprise/Close");
|
|
1251
|
-
|
|
1252
|
-
/***/ }),
|
|
1253
|
-
|
|
1254
|
-
/***/ 3:
|
|
1255
|
-
/***/ (function(module, exports) {
|
|
1256
|
-
|
|
1257
|
-
module.exports = require("styled-components");
|
|
1258
|
-
|
|
1259
|
-
/***/ }),
|
|
1260
|
-
|
|
1261
|
-
/***/ 33:
|
|
1262
|
-
/***/ (function(module, exports) {
|
|
1263
|
-
|
|
1264
|
-
module.exports = require("lodash/throttle");
|
|
1265
|
-
|
|
1266
|
-
/***/ }),
|
|
1267
|
-
|
|
1268
|
-
/***/ 4:
|
|
1269
|
-
/***/ (function(module, exports) {
|
|
1270
|
-
|
|
1271
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
1272
|
-
|
|
1273
|
-
/***/ }),
|
|
1274
|
-
|
|
1275
|
-
/***/ 41:
|
|
1276
|
-
/***/ (function(module, exports) {
|
|
1277
|
-
|
|
1278
|
-
module.exports = require("@splunk/ui-utils/style");
|
|
1279
|
-
|
|
1280
|
-
/***/ }),
|
|
1281
|
-
|
|
1282
|
-
/***/ 49:
|
|
1283
|
-
/***/ (function(module, exports) {
|
|
1284
|
-
|
|
1285
|
-
module.exports = require("@splunk/react-icons/Magnifier");
|
|
1286
|
-
|
|
1287
|
-
/***/ }),
|
|
1288
|
-
|
|
1289
|
-
/***/ 5:
|
|
1290
|
-
/***/ (function(module, exports) {
|
|
1291
|
-
|
|
1292
|
-
module.exports = require("lodash/omit");
|
|
1293
|
-
|
|
1294
|
-
/***/ }),
|
|
1295
|
-
|
|
1296
|
-
/***/ 54:
|
|
1297
|
-
/***/ (function(module, exports) {
|
|
1298
|
-
|
|
1299
|
-
module.exports = require("@splunk/react-icons/enterprise/Search");
|
|
1300
|
-
|
|
1301
|
-
/***/ }),
|
|
1302
|
-
|
|
1303
|
-
/***/ 58:
|
|
1304
|
-
/***/ (function(module, exports) {
|
|
1305
|
-
|
|
1306
|
-
module.exports = require("lodash/defer");
|
|
1307
|
-
|
|
1308
|
-
/***/ }),
|
|
1309
|
-
|
|
1310
|
-
/***/ 6:
|
|
1311
|
-
/***/ (function(module, exports) {
|
|
1312
|
-
|
|
1313
|
-
module.exports = require("@splunk/react-ui/Box");
|
|
1314
|
-
|
|
1315
|
-
/***/ }),
|
|
1316
|
-
|
|
1317
|
-
/***/ 63:
|
|
1318
|
-
/***/ (function(module, exports) {
|
|
1319
|
-
|
|
1320
|
-
module.exports = require("lodash/pickBy");
|
|
1321
|
-
|
|
1322
|
-
/***/ }),
|
|
1323
|
-
|
|
1324
|
-
/***/ 9:
|
|
1325
|
-
/***/ (function(module, exports) {
|
|
1326
|
-
|
|
1327
|
-
module.exports = require("lodash/keys");
|
|
1101
|
+
TextAreaWithTheme.propTypes = TextArea.propTypes;
|
|
1102
|
+
TextAreaWithTheme.componentType = TextArea.componentType;
|
|
1103
|
+
/* harmony default export */ const TextArea_TextArea = (TextAreaWithTheme);
|
|
1104
|
+
;// CONCATENATED MODULE: ./src/TextArea/index.ts
|
|
1328
1105
|
|
|
1329
|
-
/***/ })
|
|
1330
1106
|
|
|
1331
|
-
|
|
1107
|
+
module.exports = __webpack_exports__;
|
|
1108
|
+
/******/ })()
|
|
1109
|
+
;
|