@splunk/react-ui 4.12.1 → 4.14.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/.storybook-visual/config/snapshotResolver.js +29 -0
- package/.storybook-visual/main.js +22 -0
- package/.storybook-visual/preview.jsx +31 -0
- package/.storybook-visual/scripts/test.sh +108 -0
- package/.storybook-visual/test-runner.js +108 -0
- package/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +6 -6
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +23 -23
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +33 -0
- package/Calendar.js +390 -95
- package/Card.js +25 -23
- package/CardLayout.js +2 -2
- package/Chip.js +17 -17
- package/Clickable.js +4 -4
- package/CloseButton.js +15 -15
- package/Code.js +4 -4
- package/CollapsiblePanel.js +15 -11
- package/Color.js +26 -26
- package/ColumnLayout.js +6 -6
- package/ComboBox.js +19 -19
- package/Concertina.js +6 -6
- package/ControlGroup.js +14 -13
- package/Date.js +118 -55
- package/DefinitionList.js +2 -2
- package/Divider.js +194 -0
- package/Dropdown.js +17 -13
- package/EventListener.js +4 -4
- package/File.js +23 -23
- package/FormRows.js +14 -14
- package/Heading.js +2 -2
- package/Image.js +19 -19
- package/JSONTree.js +2 -2
- package/Layer.js +85 -8
- package/Link.js +4 -4
- package/List.js +2 -2
- package/Markdown.js +18 -18
- package/Menu.js +51 -52
- package/Message.js +39 -39
- package/MessageBar.js +29 -29
- package/Modal.js +63 -37
- package/ModalLayer.js +11 -11
- package/Monogram.js +2 -2
- package/Multiselect.js +134 -125
- package/Number.js +8 -6
- package/Paginator.js +48 -48
- package/Paragraph.js +2 -2
- package/Popover.js +186 -19
- package/Progress.js +8 -8
- package/RadioBar.js +2 -2
- package/RadioList.js +4 -4
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +13 -13
- package/ScrollContainerContext.js +154 -3
- package/Search.js +25 -25
- package/Select.js +114 -105
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +11 -11
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +10 -10
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +6 -6
- package/Table.js +275 -76
- package/Text.js +51 -42
- package/TextArea.js +41 -33
- package/Tooltip.js +17 -11
- package/TransitionOpen.js +39 -15
- package/Typography.js +4 -4
- package/WaitSpinner.js +4 -4
- package/package.json +12 -14
- package/test-runner-jest.config.js +18 -5
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +15 -2
- package/types/src/Calendar/DateTable.d.ts +7 -3
- package/types/src/Calendar/Day.d.ts +14 -5
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +7 -3
- package/types/src/Date/Date.d.ts +17 -8
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -2
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Date/docs/examples/prisma/WithoutCalendar.d.ts +2 -0
- package/types/src/Divider/Divider.d.ts +20 -0
- package/types/src/Divider/docs/examples/AriaHidden.d.ts +2 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -0
- package/types/src/Divider/index.d.ts +1 -0
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- package/types/src/Modal/Modal.d.ts +7 -3
- package/types/src/Modal/ModalContext.d.ts +1 -0
- package/types/src/Number/Number.d.ts +5 -1
- package/types/src/Popover/Popover.d.ts +5 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/SplitButton/Item.d.ts +45 -0
- package/types/src/SplitButton/SplitButton.d.ts +41 -0
- package/types/src/SplitButton/docs/examples/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/SplitButton/docs/examples/prisma/Disabled.d.ts +1 -0
- package/types/src/SplitButton/index.d.ts +2 -0
- package/types/src/Table/HeadCell.d.ts +4 -1
- package/types/src/Table/HeadDropdownCell.d.ts +10 -3
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +14 -0
- package/types/src/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +7 -3
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useKeyPress/index.d.ts +37 -0
- package/useForceUpdate.js +151 -0
- package/useKeyPress.js +160 -0
- package/usePrevious.js +2 -2
package/Text.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 139);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,14 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/TextArea");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
|
-
/***/ 11:
|
|
104
|
+
/***/ 10:
|
|
112
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
106
|
|
|
114
107
|
"use strict";
|
|
@@ -135,7 +128,14 @@ function updateReactRef(ref, current) {
|
|
|
135
128
|
|
|
136
129
|
/***/ }),
|
|
137
130
|
|
|
138
|
-
/***/
|
|
131
|
+
/***/ 112:
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@splunk/react-ui/TextArea");
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
|
+
/***/ 139:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -167,26 +167,26 @@ var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReade
|
|
|
167
167
|
var themes_ = __webpack_require__(0);
|
|
168
168
|
|
|
169
169
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
170
|
-
var ControlGroup_ = __webpack_require__(
|
|
170
|
+
var ControlGroup_ = __webpack_require__(80);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: external "@splunk/react-ui/TextArea"
|
|
173
|
-
var TextArea_ = __webpack_require__(
|
|
173
|
+
var TextArea_ = __webpack_require__(112);
|
|
174
174
|
var TextArea_default = /*#__PURE__*/__webpack_require__.n(TextArea_);
|
|
175
175
|
|
|
176
176
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
177
177
|
var i18n_ = __webpack_require__(5);
|
|
178
178
|
|
|
179
179
|
// EXTERNAL MODULE: ./src/icons/Search.tsx
|
|
180
|
-
var Search = __webpack_require__(
|
|
180
|
+
var Search = __webpack_require__(31);
|
|
181
181
|
|
|
182
182
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
183
|
-
var CrossMark = __webpack_require__(
|
|
183
|
+
var CrossMark = __webpack_require__(22);
|
|
184
184
|
|
|
185
185
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
186
|
-
var updateReactRef = __webpack_require__(
|
|
186
|
+
var updateReactRef = __webpack_require__(10);
|
|
187
187
|
|
|
188
188
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
189
|
-
var SVG_ = __webpack_require__(
|
|
189
|
+
var SVG_ = __webpack_require__(25);
|
|
190
190
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
191
191
|
|
|
192
192
|
// CONCATENATED MODULE: ./src/Text/IconOutlinedHide.tsx
|
|
@@ -338,7 +338,7 @@ var buttonStyles = Object(external_styled_components_["css"])(["border-radius:",
|
|
|
338
338
|
light: themes_["variables"].gray60,
|
|
339
339
|
dark: themes_["variables"].white
|
|
340
340
|
},
|
|
341
|
-
prisma: themes_["variables"].
|
|
341
|
+
prisma: themes_["variables"].contentColorMuted
|
|
342
342
|
}));
|
|
343
343
|
var StyledClearButton = external_styled_components_default()(Button_default.a).withConfig({
|
|
344
344
|
displayName: "TextStyles__StyledClearButton",
|
|
@@ -579,7 +579,7 @@ var StyledEndAdornmentHolder = external_styled_components_default.a.div.withConf
|
|
|
579
579
|
var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
580
580
|
displayName: "TextStyles__StyledAdornment",
|
|
581
581
|
componentId: "eg7n6t-10"
|
|
582
|
-
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
582
|
+
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
583
583
|
enterprise: {
|
|
584
584
|
comfortable: '30px',
|
|
585
585
|
compact: '26px'
|
|
@@ -588,6 +588,12 @@ var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
|
588
588
|
comfortable: '38px',
|
|
589
589
|
compact: '30px'
|
|
590
590
|
}
|
|
591
|
+
}), Object(themes_["pick"])({
|
|
592
|
+
enterprise: {
|
|
593
|
+
light: themes_["variables"].gray60,
|
|
594
|
+
dark: themes_["variables"].white
|
|
595
|
+
},
|
|
596
|
+
prisma: themes_["variables"].contentColorMuted
|
|
591
597
|
}), function (_ref16) {
|
|
592
598
|
var $position = _ref16.$position;
|
|
593
599
|
return $position === 'start' ? Object(external_styled_components_["css"])(["top:1px;left:1px;"]) : Object(external_styled_components_["css"])(["top:1px;right:1px;"]);
|
|
@@ -999,6 +1005,8 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
999
1005
|
|
|
1000
1006
|
if (false) {}
|
|
1001
1007
|
|
|
1008
|
+
if (false) {}
|
|
1009
|
+
|
|
1002
1010
|
Text.validateRows(props);
|
|
1003
1011
|
return _this;
|
|
1004
1012
|
}
|
|
@@ -1081,7 +1089,9 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1081
1089
|
useSyntheticPlaceholder = _this$props10.useSyntheticPlaceholder,
|
|
1082
1090
|
otherProps = _objectWithoutProperties(_this$props10, ["append", "autoCapitalize", "autoComplete", "autoCorrect", "autoFocus", "children", "className", "classNamePrivate", "disabled", "describedBy", "elementRef", "error", "inline", "inputClassName", "inputId", "labelledBy", "multiline", "maxLength", "name", "passwordVisibilityToggle", "placeholder", "prepend", "spellCheck", "tabIndex", "title", "type", "useSyntheticPlaceholder"]);
|
|
1083
1091
|
|
|
1084
|
-
var ariaProps = _objectSpread(_objectSpread({
|
|
1092
|
+
var ariaProps = _objectSpread(_objectSpread({
|
|
1093
|
+
role: 'textbox'
|
|
1094
|
+
}, Object(external_lodash_["pickBy"])(otherProps, function (val, key) {
|
|
1085
1095
|
return key === 'role' || key.indexOf('aria-') === 0;
|
|
1086
1096
|
})), {}, {
|
|
1087
1097
|
'aria-describedby': describedBy,
|
|
@@ -1117,7 +1127,6 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1117
1127
|
onFocus: this.handleInputFocus,
|
|
1118
1128
|
onBlur: this.handleInputBlur,
|
|
1119
1129
|
ref: this.handleInputMount,
|
|
1120
|
-
role: 'textbox',
|
|
1121
1130
|
spellCheck: spellCheck,
|
|
1122
1131
|
style: {
|
|
1123
1132
|
height: this.state.height
|
|
@@ -1217,14 +1226,21 @@ module.exports = require("@splunk/react-ui/Button");
|
|
|
1217
1226
|
|
|
1218
1227
|
/***/ }),
|
|
1219
1228
|
|
|
1220
|
-
/***/
|
|
1229
|
+
/***/ 2:
|
|
1230
|
+
/***/ (function(module, exports) {
|
|
1231
|
+
|
|
1232
|
+
module.exports = require("react");
|
|
1233
|
+
|
|
1234
|
+
/***/ }),
|
|
1235
|
+
|
|
1236
|
+
/***/ 22:
|
|
1221
1237
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1222
1238
|
|
|
1223
1239
|
"use strict";
|
|
1224
1240
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
1225
1241
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1226
1242
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1227
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1243
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
|
|
1228
1244
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
1229
1245
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1230
1246
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1267,35 +1283,35 @@ function CrossMark(props) {
|
|
|
1267
1283
|
|
|
1268
1284
|
/***/ }),
|
|
1269
1285
|
|
|
1270
|
-
/***/
|
|
1286
|
+
/***/ 23:
|
|
1271
1287
|
/***/ (function(module, exports) {
|
|
1272
1288
|
|
|
1273
|
-
module.exports = require("react");
|
|
1289
|
+
module.exports = require("@splunk/react-icons/Close");
|
|
1274
1290
|
|
|
1275
1291
|
/***/ }),
|
|
1276
1292
|
|
|
1277
|
-
/***/
|
|
1293
|
+
/***/ 25:
|
|
1278
1294
|
/***/ (function(module, exports) {
|
|
1279
1295
|
|
|
1280
|
-
module.exports = require("@splunk/react-icons/
|
|
1296
|
+
module.exports = require("@splunk/react-icons/SVG");
|
|
1281
1297
|
|
|
1282
1298
|
/***/ }),
|
|
1283
1299
|
|
|
1284
|
-
/***/
|
|
1300
|
+
/***/ 3:
|
|
1285
1301
|
/***/ (function(module, exports) {
|
|
1286
1302
|
|
|
1287
|
-
module.exports = require("
|
|
1303
|
+
module.exports = require("styled-components");
|
|
1288
1304
|
|
|
1289
1305
|
/***/ }),
|
|
1290
1306
|
|
|
1291
|
-
/***/
|
|
1307
|
+
/***/ 31:
|
|
1292
1308
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1293
1309
|
|
|
1294
1310
|
"use strict";
|
|
1295
1311
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
|
|
1296
1312
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1297
1313
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1298
|
-
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1314
|
+
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
|
|
1299
1315
|
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
|
|
1300
1316
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1301
1317
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1338,13 +1354,6 @@ function Search(props) {
|
|
|
1338
1354
|
|
|
1339
1355
|
/***/ }),
|
|
1340
1356
|
|
|
1341
|
-
/***/ 3:
|
|
1342
|
-
/***/ (function(module, exports) {
|
|
1343
|
-
|
|
1344
|
-
module.exports = require("styled-components");
|
|
1345
|
-
|
|
1346
|
-
/***/ }),
|
|
1347
|
-
|
|
1348
1357
|
/***/ 32:
|
|
1349
1358
|
/***/ (function(module, exports) {
|
|
1350
1359
|
|
|
@@ -1359,7 +1368,7 @@ module.exports = require("lodash");
|
|
|
1359
1368
|
|
|
1360
1369
|
/***/ }),
|
|
1361
1370
|
|
|
1362
|
-
/***/
|
|
1371
|
+
/***/ 43:
|
|
1363
1372
|
/***/ (function(module, exports) {
|
|
1364
1373
|
|
|
1365
1374
|
module.exports = require("@splunk/react-icons/Search");
|
|
@@ -1516,17 +1525,17 @@ Icon.defaultProps = defaultProps;
|
|
|
1516
1525
|
|
|
1517
1526
|
/***/ }),
|
|
1518
1527
|
|
|
1519
|
-
/***/
|
|
1528
|
+
/***/ 8:
|
|
1520
1529
|
/***/ (function(module, exports) {
|
|
1521
1530
|
|
|
1522
|
-
module.exports = require("@splunk/react-ui/
|
|
1531
|
+
module.exports = require("@splunk/react-ui/Box");
|
|
1523
1532
|
|
|
1524
1533
|
/***/ }),
|
|
1525
1534
|
|
|
1526
|
-
/***/
|
|
1535
|
+
/***/ 80:
|
|
1527
1536
|
/***/ (function(module, exports) {
|
|
1528
1537
|
|
|
1529
|
-
module.exports = require("@splunk/react-ui/
|
|
1538
|
+
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
1530
1539
|
|
|
1531
1540
|
/***/ })
|
|
1532
1541
|
|
package/TextArea.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 151);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 10:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -128,7 +128,14 @@ function updateReactRef(ref, current) {
|
|
|
128
128
|
|
|
129
129
|
/***/ }),
|
|
130
130
|
|
|
131
|
-
/***/
|
|
131
|
+
/***/ 15:
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@splunk/react-ui/EventListener");
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
|
+
/***/ 151:
|
|
132
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
133
140
|
|
|
134
141
|
"use strict";
|
|
@@ -160,16 +167,16 @@ var EventListener_default = /*#__PURE__*/__webpack_require__.n(EventListener_);
|
|
|
160
167
|
var themes_ = __webpack_require__(0);
|
|
161
168
|
|
|
162
169
|
// EXTERNAL MODULE: external "@splunk/react-ui/ControlGroup"
|
|
163
|
-
var ControlGroup_ = __webpack_require__(
|
|
170
|
+
var ControlGroup_ = __webpack_require__(80);
|
|
164
171
|
|
|
165
172
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
166
173
|
var i18n_ = __webpack_require__(5);
|
|
167
174
|
|
|
168
175
|
// EXTERNAL MODULE: ./src/icons/Search.tsx
|
|
169
|
-
var Search = __webpack_require__(
|
|
176
|
+
var Search = __webpack_require__(31);
|
|
170
177
|
|
|
171
178
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
172
|
-
var CrossMark = __webpack_require__(
|
|
179
|
+
var CrossMark = __webpack_require__(22);
|
|
173
180
|
|
|
174
181
|
// CONCATENATED MODULE: ./src/TextArea/syncHeightWithShadow.ts
|
|
175
182
|
// This file was adapted from [Call-Em-All's material-ui](https://github.com/mui-org/material-ui),
|
|
@@ -246,7 +253,7 @@ function syncHeightWithShadow(_ref) {
|
|
|
246
253
|
return false;
|
|
247
254
|
}
|
|
248
255
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
249
|
-
var updateReactRef = __webpack_require__(
|
|
256
|
+
var updateReactRef = __webpack_require__(10);
|
|
250
257
|
|
|
251
258
|
// EXTERNAL MODULE: external "styled-components"
|
|
252
259
|
var external_styled_components_ = __webpack_require__(3);
|
|
@@ -286,7 +293,7 @@ var buttonStyles = Object(external_styled_components_["css"])(["border-radius:",
|
|
|
286
293
|
light: themes_["variables"].gray60,
|
|
287
294
|
dark: themes_["variables"].white
|
|
288
295
|
},
|
|
289
|
-
prisma: themes_["variables"].
|
|
296
|
+
prisma: themes_["variables"].contentColorMuted
|
|
290
297
|
}));
|
|
291
298
|
var StyledClearButton = external_styled_components_default()(Button_default.a).withConfig({
|
|
292
299
|
displayName: "TextAreaStyles__StyledClearButton",
|
|
@@ -519,7 +526,7 @@ var StyledEndAdornmentHolder = external_styled_components_default.a.div.withConf
|
|
|
519
526
|
var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
520
527
|
displayName: "TextAreaStyles__StyledAdornment",
|
|
521
528
|
componentId: "gfy8yp-9"
|
|
522
|
-
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
529
|
+
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
523
530
|
enterprise: {
|
|
524
531
|
comfortable: '30px',
|
|
525
532
|
compact: '26px'
|
|
@@ -528,6 +535,12 @@ var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
|
528
535
|
comfortable: '38px',
|
|
529
536
|
compact: '30px'
|
|
530
537
|
}
|
|
538
|
+
}), Object(themes_["pick"])({
|
|
539
|
+
enterprise: {
|
|
540
|
+
light: themes_["variables"].gray60,
|
|
541
|
+
dark: themes_["variables"].white
|
|
542
|
+
},
|
|
543
|
+
prisma: themes_["variables"].contentColorMuted
|
|
531
544
|
}), function (_ref15) {
|
|
532
545
|
var $position = _ref15.$position;
|
|
533
546
|
return $position === 'start' ? Object(external_styled_components_["css"])(["top:1px;left:1px;"]) : Object(external_styled_components_["css"])(["top:1px;right:1px;"]);
|
|
@@ -911,6 +924,8 @@ var TextArea_TextArea = /*#__PURE__*/function (_Component) {
|
|
|
911
924
|
|
|
912
925
|
if (false) {}
|
|
913
926
|
|
|
927
|
+
if (false) {}
|
|
928
|
+
|
|
914
929
|
TextArea.validateRows(props);
|
|
915
930
|
_this.handleResize = Object(external_lodash_["throttle"])(_this.handleResize, 100);
|
|
916
931
|
return _this;
|
|
@@ -1124,28 +1139,28 @@ TextAreaWithTheme.componentType = TextArea_TextArea.componentType;
|
|
|
1124
1139
|
|
|
1125
1140
|
/***/ }),
|
|
1126
1141
|
|
|
1127
|
-
/***/
|
|
1142
|
+
/***/ 16:
|
|
1128
1143
|
/***/ (function(module, exports) {
|
|
1129
1144
|
|
|
1130
|
-
module.exports = require("@splunk/react-ui/
|
|
1145
|
+
module.exports = require("@splunk/react-ui/Button");
|
|
1131
1146
|
|
|
1132
1147
|
/***/ }),
|
|
1133
1148
|
|
|
1134
|
-
/***/
|
|
1149
|
+
/***/ 2:
|
|
1135
1150
|
/***/ (function(module, exports) {
|
|
1136
1151
|
|
|
1137
|
-
module.exports = require("
|
|
1152
|
+
module.exports = require("react");
|
|
1138
1153
|
|
|
1139
1154
|
/***/ }),
|
|
1140
1155
|
|
|
1141
|
-
/***/
|
|
1156
|
+
/***/ 22:
|
|
1142
1157
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1143
1158
|
|
|
1144
1159
|
"use strict";
|
|
1145
1160
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CrossMark; });
|
|
1146
1161
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1147
1162
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1148
|
-
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1163
|
+
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23);
|
|
1149
1164
|
/* harmony import */ var _splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Close__WEBPACK_IMPORTED_MODULE_1__);
|
|
1150
1165
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1151
1166
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1188,28 +1203,28 @@ function CrossMark(props) {
|
|
|
1188
1203
|
|
|
1189
1204
|
/***/ }),
|
|
1190
1205
|
|
|
1191
|
-
/***/
|
|
1206
|
+
/***/ 23:
|
|
1192
1207
|
/***/ (function(module, exports) {
|
|
1193
1208
|
|
|
1194
|
-
module.exports = require("react");
|
|
1209
|
+
module.exports = require("@splunk/react-icons/Close");
|
|
1195
1210
|
|
|
1196
1211
|
/***/ }),
|
|
1197
1212
|
|
|
1198
|
-
/***/
|
|
1213
|
+
/***/ 3:
|
|
1199
1214
|
/***/ (function(module, exports) {
|
|
1200
1215
|
|
|
1201
|
-
module.exports = require("
|
|
1216
|
+
module.exports = require("styled-components");
|
|
1202
1217
|
|
|
1203
1218
|
/***/ }),
|
|
1204
1219
|
|
|
1205
|
-
/***/
|
|
1220
|
+
/***/ 31:
|
|
1206
1221
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1207
1222
|
|
|
1208
1223
|
"use strict";
|
|
1209
1224
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Search; });
|
|
1210
1225
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1211
1226
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1212
|
-
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1227
|
+
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(43);
|
|
1213
1228
|
/* harmony import */ var _splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_react_icons_Search__WEBPACK_IMPORTED_MODULE_1__);
|
|
1214
1229
|
/* harmony import */ var _ThemedIcon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
|
|
1215
1230
|
/* harmony import */ var _SVG__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6);
|
|
@@ -1252,13 +1267,6 @@ function Search(props) {
|
|
|
1252
1267
|
|
|
1253
1268
|
/***/ }),
|
|
1254
1269
|
|
|
1255
|
-
/***/ 3:
|
|
1256
|
-
/***/ (function(module, exports) {
|
|
1257
|
-
|
|
1258
|
-
module.exports = require("styled-components");
|
|
1259
|
-
|
|
1260
|
-
/***/ }),
|
|
1261
|
-
|
|
1262
1270
|
/***/ 32:
|
|
1263
1271
|
/***/ (function(module, exports) {
|
|
1264
1272
|
|
|
@@ -1273,7 +1281,7 @@ module.exports = require("lodash");
|
|
|
1273
1281
|
|
|
1274
1282
|
/***/ }),
|
|
1275
1283
|
|
|
1276
|
-
/***/
|
|
1284
|
+
/***/ 43:
|
|
1277
1285
|
/***/ (function(module, exports) {
|
|
1278
1286
|
|
|
1279
1287
|
module.exports = require("@splunk/react-icons/Search");
|
|
@@ -1430,17 +1438,17 @@ Icon.defaultProps = defaultProps;
|
|
|
1430
1438
|
|
|
1431
1439
|
/***/ }),
|
|
1432
1440
|
|
|
1433
|
-
/***/
|
|
1441
|
+
/***/ 8:
|
|
1434
1442
|
/***/ (function(module, exports) {
|
|
1435
1443
|
|
|
1436
|
-
module.exports = require("@splunk/react-ui/
|
|
1444
|
+
module.exports = require("@splunk/react-ui/Box");
|
|
1437
1445
|
|
|
1438
1446
|
/***/ }),
|
|
1439
1447
|
|
|
1440
|
-
/***/
|
|
1448
|
+
/***/ 80:
|
|
1441
1449
|
/***/ (function(module, exports) {
|
|
1442
1450
|
|
|
1443
|
-
module.exports = require("@splunk/react-ui/
|
|
1451
|
+
module.exports = require("@splunk/react-ui/ControlGroup");
|
|
1444
1452
|
|
|
1445
1453
|
/***/ })
|
|
1446
1454
|
|
package/Tooltip.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 152);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 11:
|
|
105
105
|
/***/ (function(module, exports) {
|
|
106
106
|
|
|
107
107
|
module.exports = require("@splunk/ui-utils/id");
|
|
@@ -122,7 +122,7 @@ module.exports = require("@splunk/react-ui/ScreenReaderContent");
|
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
125
|
-
/***/
|
|
125
|
+
/***/ 152:
|
|
126
126
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
@@ -144,7 +144,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
144
144
|
var external_lodash_ = __webpack_require__(4);
|
|
145
145
|
|
|
146
146
|
// EXTERNAL MODULE: external "@splunk/react-ui/Popover"
|
|
147
|
-
var Popover_ = __webpack_require__(
|
|
147
|
+
var Popover_ = __webpack_require__(18);
|
|
148
148
|
var Popover_default = /*#__PURE__*/__webpack_require__.n(Popover_);
|
|
149
149
|
|
|
150
150
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
@@ -155,13 +155,13 @@ var ScreenReaderContent_default = /*#__PURE__*/__webpack_require__.n(ScreenReade
|
|
|
155
155
|
var themes_ = __webpack_require__(0);
|
|
156
156
|
|
|
157
157
|
// EXTERNAL MODULE: external "@splunk/ui-utils/id"
|
|
158
|
-
var id_ = __webpack_require__(
|
|
158
|
+
var id_ = __webpack_require__(11);
|
|
159
159
|
|
|
160
160
|
// EXTERNAL MODULE: external "@splunk/ui-utils/i18n"
|
|
161
161
|
var i18n_ = __webpack_require__(5);
|
|
162
162
|
|
|
163
163
|
// EXTERNAL MODULE: external "@splunk/react-icons/SVG"
|
|
164
|
-
var SVG_ = __webpack_require__(
|
|
164
|
+
var SVG_ = __webpack_require__(25);
|
|
165
165
|
var SVG_default = /*#__PURE__*/__webpack_require__.n(SVG_);
|
|
166
166
|
|
|
167
167
|
// CONCATENATED MODULE: ./src/Tooltip/InfoIcon.tsx
|
|
@@ -311,6 +311,9 @@ var propTypes = {
|
|
|
311
311
|
appearance: external_prop_types_default.a.string,
|
|
312
312
|
children: external_prop_types_default.a.node,
|
|
313
313
|
closeDelay: external_prop_types_default.a.number,
|
|
314
|
+
|
|
315
|
+
/** @private */
|
|
316
|
+
closeWhen: external_prop_types_default.a.oneOf(['default', 'notOnClick']),
|
|
314
317
|
content: external_prop_types_default.a.node,
|
|
315
318
|
contentRelationship: external_prop_types_default.a.oneOf(['label', 'description']),
|
|
316
319
|
defaultPlacement: external_prop_types_default.a.oneOf(['above', 'below', 'left', 'right', 'theme']),
|
|
@@ -327,6 +330,7 @@ var propTypes = {
|
|
|
327
330
|
var defaultProps = {
|
|
328
331
|
appearance: 'inverted',
|
|
329
332
|
closeDelay: 0,
|
|
333
|
+
closeWhen: 'default',
|
|
330
334
|
contentRelationship: 'description',
|
|
331
335
|
defaultPlacement: 'theme',
|
|
332
336
|
inline: true,
|
|
@@ -418,9 +422,11 @@ var Tooltip_Tooltip = /*#__PURE__*/function (_Component) {
|
|
|
418
422
|
});
|
|
419
423
|
|
|
420
424
|
_defineProperty(_assertThisInitialized(_this), "handleClick", function (e) {
|
|
421
|
-
_this.
|
|
422
|
-
|
|
423
|
-
|
|
425
|
+
if (_this.props.closeWhen !== 'notOnClick') {
|
|
426
|
+
_this.handleRequestClose(e, {
|
|
427
|
+
reason: 'toggleClick'
|
|
428
|
+
});
|
|
429
|
+
}
|
|
424
430
|
});
|
|
425
431
|
|
|
426
432
|
_defineProperty(_assertThisInitialized(_this), "handleFocus", function (e) {
|
|
@@ -610,7 +616,7 @@ TooltipWithTheme.propTypes = Tooltip_Tooltip.propTypes;
|
|
|
610
616
|
|
|
611
617
|
/***/ }),
|
|
612
618
|
|
|
613
|
-
/***/
|
|
619
|
+
/***/ 18:
|
|
614
620
|
/***/ (function(module, exports) {
|
|
615
621
|
|
|
616
622
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -624,7 +630,7 @@ module.exports = require("react");
|
|
|
624
630
|
|
|
625
631
|
/***/ }),
|
|
626
632
|
|
|
627
|
-
/***/
|
|
633
|
+
/***/ 25:
|
|
628
634
|
/***/ (function(module, exports) {
|
|
629
635
|
|
|
630
636
|
module.exports = require("@splunk/react-icons/SVG");
|