@splunk/react-ui 4.12.0 → 4.13.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 +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +11 -11
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +7 -7
- package/CHANGELOG.md +25 -0
- package/Calendar.js +33 -33
- package/Card.js +13 -13
- package/CardLayout.js +2 -2
- package/Chip.js +11 -11
- package/Clickable.js +7 -7
- package/CloseButton.js +11 -11
- package/Code.js +4 -4
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +4 -4
- package/Concertina.js +2 -2
- package/ControlGroup.js +4 -4
- package/Date.js +4 -4
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -2
- package/EventListener.js +4 -4
- package/File.js +15 -15
- package/FormRows.js +4 -4
- package/Heading.js +3 -3
- package/Image.js +15 -15
- package/JSONTree.js +2 -2
- package/Layer.js +4 -4
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +21 -21
- package/Menu.js +32 -33
- package/Message.js +22 -22
- package/MessageBar.js +15 -15
- package/Modal.js +4 -4
- package/ModalLayer.js +8 -8
- package/Monogram.js +2 -2
- package/Multiselect.js +112 -103
- package/Number.js +2 -2
- package/Paginator.js +41 -41
- package/Paragraph.js +2 -2
- package/Popover.js +18 -9
- package/Progress.js +4 -4
- package/RadioBar.js +2 -2
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/ResultsMenu.js +12 -12
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +13 -13
- package/Select.js +109 -100
- package/SidePanel.js +4 -4
- package/Slider.js +4 -4
- package/SlidingPanels.js +6 -6
- package/SplitButton.js +511 -0
- package/StaticContent.js +2 -2
- package/StepBar.js +6 -6
- package/Switch.js +2 -2
- package/TabBar.js +2 -2
- package/TabLayout.js +4 -4
- package/Table.js +60 -43
- package/Text.js +105 -101
- package/TextArea.js +83 -72
- package/Tooltip.js +2 -2
- package/TransitionOpen.js +8 -8
- package/Typography.js +4 -4
- package/WaitSpinner.js +68 -2
- package/package.json +4 -3
- package/types/src/Button/Button.d.ts +1 -1
- package/types/src/Dropdown/Dropdown.d.ts +11 -3
- 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/Text/Text.d.ts +5 -1
- package/types/src/TextArea/TextArea.d.ts +5 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +1 -1
- package/types/src/useForceUpdate/index.d.ts +2 -0
- package/types/src/useForceUpdate/useForceUpdate.d.ts +9 -0
- package/types/src/useIsSsr/index.d.ts +2 -0
- package/types/src/useIsSsr/useIsSsr.d.ts +8 -0
- package/useForceUpdate.js +151 -0
- package/useIsSsr.js +153 -0
- package/usePrevious.js +2 -2
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +0 -10
- package/types/src/Text/docs/examples/prisma/Search.d.ts +0 -10
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 = 136);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,13 +101,6 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/ 108:
|
|
105
|
-
/***/ (function(module, exports) {
|
|
106
|
-
|
|
107
|
-
module.exports = require("@splunk/react-ui/TextArea");
|
|
108
|
-
|
|
109
|
-
/***/ }),
|
|
110
|
-
|
|
111
104
|
/***/ 11:
|
|
112
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
113
106
|
|
|
@@ -135,7 +128,14 @@ function updateReactRef(ref, current) {
|
|
|
135
128
|
|
|
136
129
|
/***/ }),
|
|
137
130
|
|
|
138
|
-
/***/
|
|
131
|
+
/***/ 110:
|
|
132
|
+
/***/ (function(module, exports) {
|
|
133
|
+
|
|
134
|
+
module.exports = require("@splunk/react-ui/TextArea");
|
|
135
|
+
|
|
136
|
+
/***/ }),
|
|
137
|
+
|
|
138
|
+
/***/ 136:
|
|
139
139
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
140
140
|
|
|
141
141
|
"use strict";
|
|
@@ -157,7 +157,7 @@ var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_pr
|
|
|
157
157
|
var external_lodash_ = __webpack_require__(4);
|
|
158
158
|
|
|
159
159
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
160
|
-
var style_ = __webpack_require__(
|
|
160
|
+
var style_ = __webpack_require__(32);
|
|
161
161
|
|
|
162
162
|
// EXTERNAL MODULE: external "@splunk/react-ui/ScreenReaderContent"
|
|
163
163
|
var ScreenReaderContent_ = __webpack_require__(14);
|
|
@@ -170,17 +170,17 @@ var themes_ = __webpack_require__(0);
|
|
|
170
170
|
var ControlGroup_ = __webpack_require__(78);
|
|
171
171
|
|
|
172
172
|
// EXTERNAL MODULE: external "@splunk/react-ui/TextArea"
|
|
173
|
-
var TextArea_ = __webpack_require__(
|
|
173
|
+
var TextArea_ = __webpack_require__(110);
|
|
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__(29);
|
|
181
181
|
|
|
182
182
|
// EXTERNAL MODULE: ./src/icons/CrossMark.tsx
|
|
183
|
-
var CrossMark = __webpack_require__(
|
|
183
|
+
var CrossMark = __webpack_require__(20);
|
|
184
184
|
|
|
185
185
|
// EXTERNAL MODULE: ./src/utils/updateReactRef.ts
|
|
186
186
|
var updateReactRef = __webpack_require__(11);
|
|
@@ -316,6 +316,7 @@ var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
|
|
|
316
316
|
|
|
317
317
|
|
|
318
318
|
|
|
319
|
+
|
|
319
320
|
var disabledStyles = Object(external_styled_components_["css"])(["&,&[type]{cursor:not-allowed;color:", ";&::placeholder{color:", ";}}"], Object(themes_["pick"])({
|
|
320
321
|
enterprise: themes_["variables"].textDisabledColor,
|
|
321
322
|
prisma: themes_["variables"].contentColorDisabled
|
|
@@ -337,7 +338,7 @@ var buttonStyles = Object(external_styled_components_["css"])(["border-radius:",
|
|
|
337
338
|
light: themes_["variables"].gray60,
|
|
338
339
|
dark: themes_["variables"].white
|
|
339
340
|
},
|
|
340
|
-
prisma: themes_["variables"].
|
|
341
|
+
prisma: themes_["variables"].contentColorMuted
|
|
341
342
|
}));
|
|
342
343
|
var StyledClearButton = external_styled_components_default()(Button_default.a).withConfig({
|
|
343
344
|
displayName: "TextStyles__StyledClearButton",
|
|
@@ -362,9 +363,22 @@ var StyledSearchIconWrapper = external_styled_components_default.a.span.withConf
|
|
|
362
363
|
prisma: Object(external_styled_components_["css"])(["color:", ";"], themes_["variables"].contentColorDisabled)
|
|
363
364
|
}));
|
|
364
365
|
});
|
|
366
|
+
var StyledSearchIcon = external_styled_components_default()(Search["a" /* default */]).withConfig({
|
|
367
|
+
displayName: "TextStyles__StyledSearchIcon",
|
|
368
|
+
componentId: "eg7n6t-2"
|
|
369
|
+
})(["", ";color:", ";pointer-events:none;padding:", ";", ""], themes_["mixins"].reset('inline-block'), Object(themes_["pick"])({
|
|
370
|
+
enterprise: {
|
|
371
|
+
light: themes_["variables"].gray60,
|
|
372
|
+
dark: themes_["variables"].white
|
|
373
|
+
},
|
|
374
|
+
prisma: themes_["variables"].contentColorMuted
|
|
375
|
+
}), Object(themes_["pick"])({
|
|
376
|
+
comfortable: '0 8px',
|
|
377
|
+
compact: '0 6px'
|
|
378
|
+
}), buttonStyles);
|
|
365
379
|
var StyledBox = external_styled_components_default()(Box_default.a).withConfig({
|
|
366
380
|
displayName: "TextStyles__StyledBox",
|
|
367
|
-
componentId: "eg7n6t-
|
|
381
|
+
componentId: "eg7n6t-3"
|
|
368
382
|
})(["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;}}", ""], Object(themes_["pick"])({
|
|
369
383
|
enterprise: themes_["variables"].spacingHalf,
|
|
370
384
|
prisma: themes_["variables"].spacingSmall
|
|
@@ -382,8 +396,8 @@ StyledClearButton, function (_ref2) {
|
|
|
382
396
|
});
|
|
383
397
|
var StyledInputWrapper = external_styled_components_default.a.span.withConfig({
|
|
384
398
|
displayName: "TextStyles__StyledInputWrapper",
|
|
385
|
-
componentId: "eg7n6t-
|
|
386
|
-
})(["", ";flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){", "}", " ", " ", " ", "
|
|
399
|
+
componentId: "eg7n6t-4"
|
|
400
|
+
})(["", ";flex-grow:1;min-height:", ";position:relative;overflow:hidden;border:1px solid ", ";border-radius:", ";box-sizing:border-box;background-color:", ";box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);padding:", ";align-items:center;", " ", " &:hover:not([disabled]){border-color:", ";}&:focus-within:not([disabled]){", "}", " ", " ", " ", ""], themes_["mixins"].reset('inline-flex'), themes_["variables"].inputHeight, Object(themes_["pick"])({
|
|
387
401
|
enterprise: {
|
|
388
402
|
light: themes_["variables"].gray60,
|
|
389
403
|
dark: themes_["variables"].gray20
|
|
@@ -437,18 +451,13 @@ var StyledInputWrapper = external_styled_components_default.a.span.withConfig({
|
|
|
437
451
|
},
|
|
438
452
|
prisma: Object(external_styled_components_["css"])(["border-color:", ";"], themes_["variables"].interactiveColorBorderDisabled)
|
|
439
453
|
}));
|
|
440
|
-
}, function (_ref9) {
|
|
441
|
-
var $multiline = _ref9.$multiline;
|
|
442
|
-
return $multiline && Object(themes_["pick"])({
|
|
443
|
-
enterprise: Object(external_styled_components_["css"])(["padding-right:0;"])
|
|
444
|
-
});
|
|
445
454
|
});
|
|
446
455
|
/* Some of these need greater specificity than input[type=text] */
|
|
447
456
|
|
|
448
457
|
var StyledInput = external_styled_components_default.a.input.withConfig({
|
|
449
458
|
displayName: "TextStyles__StyledInput",
|
|
450
|
-
componentId: "eg7n6t-
|
|
451
|
-
})(["", ";&,&[type]{outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;&[type='time']{&::-webkit-calendar-picker-indicator{display:none;}height:", ";@media screen and (min--moz-device-pixel-ratio:0){padding-right:", ";}}position:relative;&::placeholder{color:", ";opacity:1;}", " ", "}
|
|
459
|
+
componentId: "eg7n6t-5"
|
|
460
|
+
})(["", ";&,&[type]{outline-style:none;border:0;background:transparent;color:", ";flex-grow:1;font-family:", ";font-size:inherit;line-height:inherit;&[type='time']{&::-webkit-calendar-picker-indicator{display:none;}height:", ";@media screen and (min--moz-device-pixel-ratio:0){padding-right:", ";}}position:relative;&::placeholder{color:", ";opacity:1;}", " ", "}"], themes_["mixins"].reset('inline-flex'), Object(themes_["pick"])({
|
|
452
461
|
enterprise: themes_["variables"].textColor,
|
|
453
462
|
prisma: themes_["variables"].contentColorActive
|
|
454
463
|
}), themes_["variables"].sansFontFamily, Object(themes_["pick"])({
|
|
@@ -460,8 +469,8 @@ var StyledInput = external_styled_components_default.a.input.withConfig({
|
|
|
460
469
|
}), Object(themes_["pick"])({
|
|
461
470
|
enterprise: themes_["variables"].spacingHalf,
|
|
462
471
|
prisma: '14px'
|
|
463
|
-
}), themes_["variables"].contentColorMuted, function (
|
|
464
|
-
var $error =
|
|
472
|
+
}), themes_["variables"].contentColorMuted, function (_ref9) {
|
|
473
|
+
var $error = _ref9.$error;
|
|
465
474
|
return $error && Object(external_styled_components_["css"])(["&,&:hover{color:", ";}"], Object(themes_["pick"])({
|
|
466
475
|
enterprise: {
|
|
467
476
|
light: themes_["variables"].errorColorD10,
|
|
@@ -469,47 +478,26 @@ var StyledInput = external_styled_components_default.a.input.withConfig({
|
|
|
469
478
|
},
|
|
470
479
|
prisma: themes_["variables"].contentColorActive
|
|
471
480
|
}));
|
|
472
|
-
}, function (
|
|
473
|
-
var disabled =
|
|
481
|
+
}, function (_ref10) {
|
|
482
|
+
var disabled = _ref10.disabled;
|
|
474
483
|
return disabled && disabledStyles;
|
|
475
|
-
}
|
|
476
|
-
enterprise: {
|
|
477
|
-
comfortable: themes_["variables"].spacingQuarter,
|
|
478
|
-
compact: '3px'
|
|
479
|
-
},
|
|
480
|
-
prisma: {
|
|
481
|
-
comfortable: themes_["variables"].spacingSmall,
|
|
482
|
-
compact: '5px'
|
|
483
|
-
}
|
|
484
|
-
}), Object(themes_["pick"])({
|
|
485
|
-
enterprise: {
|
|
486
|
-
comfortable: themes_["variables"].spacingQuarter,
|
|
487
|
-
compact: '3px'
|
|
488
|
-
},
|
|
489
|
-
prisma: {
|
|
490
|
-
comfortable: themes_["variables"].spacingSmall,
|
|
491
|
-
compact: '5px'
|
|
492
|
-
}
|
|
493
|
-
}), Object(themes_["pick"])({
|
|
494
|
-
enterprise: '10px',
|
|
495
|
-
prisma: '14px'
|
|
496
|
-
}));
|
|
484
|
+
});
|
|
497
485
|
var StyledVisibilityToggle = external_styled_components_default()(Button_default.a).withConfig({
|
|
498
486
|
displayName: "TextStyles__StyledVisibilityToggle",
|
|
499
|
-
componentId: "eg7n6t-
|
|
487
|
+
componentId: "eg7n6t-6"
|
|
500
488
|
})(["", ""], buttonStyles);
|
|
501
489
|
var StyledPlaceholder = external_styled_components_default.a.span.withConfig({
|
|
502
490
|
displayName: "TextStyles__StyledPlaceholder",
|
|
503
|
-
componentId: "eg7n6t-
|
|
491
|
+
componentId: "eg7n6t-7"
|
|
504
492
|
})(["pointer-events:none;color:", ";position:absolute;overflow:hidden;font-size:inherit;line-height:inherit;height:", ";margin-right:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
505
493
|
enterprise: themes_["variables"].textGray,
|
|
506
494
|
prisma: themes_["variables"].contentColorMuted
|
|
507
495
|
}), themes_["variables"].lineHeight, Object(themes_["pick"])({
|
|
508
496
|
enterprise: '10px',
|
|
509
497
|
prisma: '14px'
|
|
510
|
-
}), function (
|
|
511
|
-
var $hasStartAdornment =
|
|
512
|
-
$startAdornmentWidth =
|
|
498
|
+
}), function (_ref11) {
|
|
499
|
+
var $hasStartAdornment = _ref11.$hasStartAdornment,
|
|
500
|
+
$startAdornmentWidth = _ref11.$startAdornmentWidth;
|
|
513
501
|
return $hasStartAdornment && ($startAdornmentWidth ? Object(external_styled_components_["css"])(["margin-left:", "px;"], $startAdornmentWidth) : Object(external_styled_components_["css"])(["margin-left:", ";"], Object(themes_["pick"])({
|
|
514
502
|
enterprise: {
|
|
515
503
|
comfortable: '30px',
|
|
@@ -520,9 +508,9 @@ var StyledPlaceholder = external_styled_components_default.a.span.withConfig({
|
|
|
520
508
|
compact: '30px'
|
|
521
509
|
}
|
|
522
510
|
})));
|
|
523
|
-
}, function (
|
|
524
|
-
var $hasEndAdornment =
|
|
525
|
-
$endAdornmentWidth =
|
|
511
|
+
}, function (_ref12) {
|
|
512
|
+
var $hasEndAdornment = _ref12.$hasEndAdornment,
|
|
513
|
+
$endAdornmentWidth = _ref12.$endAdornmentWidth;
|
|
526
514
|
return $hasEndAdornment && ($endAdornmentWidth // calc(100% - padding - adorment width)
|
|
527
515
|
? Object(external_styled_components_["css"])(["max-width:calc( 100% - ", " - ", "px );"], Object(themes_["pick"])({
|
|
528
516
|
enterprise: '10px',
|
|
@@ -540,10 +528,10 @@ var StyledPlaceholder = external_styled_components_default.a.span.withConfig({
|
|
|
540
528
|
compact: '30px'
|
|
541
529
|
}
|
|
542
530
|
})));
|
|
543
|
-
}, function (
|
|
544
|
-
var $hasBothAdornment =
|
|
545
|
-
$endAdornmentWidth =
|
|
546
|
-
$startAdornmentWidth =
|
|
531
|
+
}, function (_ref13) {
|
|
532
|
+
var $hasBothAdornment = _ref13.$hasBothAdornment,
|
|
533
|
+
$endAdornmentWidth = _ref13.$endAdornmentWidth,
|
|
534
|
+
$startAdornmentWidth = _ref13.$startAdornmentWidth;
|
|
547
535
|
return $hasBothAdornment && Object(external_styled_components_["css"])(["max-width:calc(100% - ", "px - ", "px);"], $startAdornmentWidth, $endAdornmentWidth);
|
|
548
536
|
});
|
|
549
537
|
var adornmentHolder = Object(external_styled_components_["css"])(["display:inline-flex;align-items:center;justify-content:center;height:", ";pointer-events:none;"], Object(themes_["pick"])({
|
|
@@ -558,9 +546,9 @@ var adornmentHolder = Object(external_styled_components_["css"])(["display:inlin
|
|
|
558
546
|
}));
|
|
559
547
|
var StyledStartAdornmentHolder = external_styled_components_default.a.div.withConfig({
|
|
560
548
|
displayName: "TextStyles__StyledStartAdornmentHolder",
|
|
561
|
-
componentId: "eg7n6t-
|
|
562
|
-
})(["", " ", ";"], adornmentHolder, function (
|
|
563
|
-
var $width =
|
|
549
|
+
componentId: "eg7n6t-8"
|
|
550
|
+
})(["", " ", ";"], adornmentHolder, function (_ref14) {
|
|
551
|
+
var $width = _ref14.$width;
|
|
564
552
|
return $width ? Object(external_styled_components_["css"])(["min-width:", "px;"], $width) : Object(external_styled_components_["css"])(["min-width:", ";"], Object(themes_["pick"])({
|
|
565
553
|
enterprise: {
|
|
566
554
|
comfortable: '30px',
|
|
@@ -574,9 +562,9 @@ var StyledStartAdornmentHolder = external_styled_components_default.a.div.withCo
|
|
|
574
562
|
});
|
|
575
563
|
var StyledEndAdornmentHolder = external_styled_components_default.a.div.withConfig({
|
|
576
564
|
displayName: "TextStyles__StyledEndAdornmentHolder",
|
|
577
|
-
componentId: "eg7n6t-
|
|
578
|
-
})(["", " ", ";"], adornmentHolder, function (
|
|
579
|
-
var $width =
|
|
565
|
+
componentId: "eg7n6t-9"
|
|
566
|
+
})(["", " ", ";"], adornmentHolder, function (_ref15) {
|
|
567
|
+
var $width = _ref15.$width;
|
|
580
568
|
return $width ? Object(external_styled_components_["css"])(["min-width:", "px;"], $width) : Object(external_styled_components_["css"])(["min-width:", ";"], Object(themes_["pick"])({
|
|
581
569
|
enterprise: {
|
|
582
570
|
comfortable: '30px',
|
|
@@ -590,8 +578,8 @@ var StyledEndAdornmentHolder = external_styled_components_default.a.div.withConf
|
|
|
590
578
|
});
|
|
591
579
|
var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
592
580
|
displayName: "TextStyles__StyledAdornment",
|
|
593
|
-
componentId: "eg7n6t-
|
|
594
|
-
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
581
|
+
componentId: "eg7n6t-10"
|
|
582
|
+
})(["display:inline-flex;align-items:center;justify-content:center;position:absolute;pointer-events:none;z-index:1;height:", ";color:", ";", ";", ";", ""], Object(themes_["pick"])({
|
|
595
583
|
enterprise: {
|
|
596
584
|
comfortable: '30px',
|
|
597
585
|
compact: '26px'
|
|
@@ -600,11 +588,17 @@ var StyledAdornment = external_styled_components_default.a.div.withConfig({
|
|
|
600
588
|
comfortable: '38px',
|
|
601
589
|
compact: '30px'
|
|
602
590
|
}
|
|
603
|
-
}),
|
|
604
|
-
|
|
591
|
+
}), Object(themes_["pick"])({
|
|
592
|
+
enterprise: {
|
|
593
|
+
light: themes_["variables"].gray60,
|
|
594
|
+
dark: themes_["variables"].white
|
|
595
|
+
},
|
|
596
|
+
prisma: themes_["variables"].contentColorMuted
|
|
597
|
+
}), function (_ref16) {
|
|
598
|
+
var $position = _ref16.$position;
|
|
605
599
|
return $position === 'start' ? Object(external_styled_components_["css"])(["top:1px;left:1px;"]) : Object(external_styled_components_["css"])(["top:1px;right:1px;"]);
|
|
606
|
-
}, function (
|
|
607
|
-
var disabled =
|
|
600
|
+
}, function (_ref17) {
|
|
601
|
+
var disabled = _ref17.disabled;
|
|
608
602
|
return disabled && disabledStyles;
|
|
609
603
|
}, Object(themes_["pick"])({
|
|
610
604
|
enterprise: Object(external_styled_components_["css"])(["margin-left:-1px;margin-right:-1px;"])
|
|
@@ -912,7 +906,18 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
912
906
|
var controlGroupLabel = (_controlGroupContext$ = controlGroupContext.labelAttrs) === null || _controlGroupContext$ === void 0 ? void 0 : _controlGroupContext$.text;
|
|
913
907
|
var clearButtonText = controlGroupLabel ? Object(i18n_["_"])("Clear ".concat(controlGroupLabel, " text field")) : Object(i18n_["_"])('Clear text field');
|
|
914
908
|
|
|
909
|
+
var displayValue = _this.getDisplayValue();
|
|
910
|
+
|
|
915
911
|
if (!isPrisma && appearance === 'search') {
|
|
912
|
+
if (!displayValue) {
|
|
913
|
+
return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, /*#__PURE__*/external_react_default.a.createElement(StyledSearchIconWrapper, {
|
|
914
|
+
$disabled: disabled
|
|
915
|
+
}, /*#__PURE__*/external_react_default.a.createElement(Search["a" /* default */], {
|
|
916
|
+
enterpriseSize: "16px",
|
|
917
|
+
inline: false
|
|
918
|
+
})));
|
|
919
|
+
}
|
|
920
|
+
|
|
916
921
|
return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, !disabled && /*#__PURE__*/external_react_default.a.createElement(StyledClearButton, {
|
|
917
922
|
appearance: isPrisma ? 'secondary' : 'pill',
|
|
918
923
|
"data-test": "clear",
|
|
@@ -930,8 +935,6 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
930
935
|
})));
|
|
931
936
|
}
|
|
932
937
|
|
|
933
|
-
var displayValue = _this.getDisplayValue();
|
|
934
|
-
|
|
935
938
|
if (!!displayValue && (isPrisma && appearance === 'search' || canClear)) {
|
|
936
939
|
return /*#__PURE__*/external_react_default.a.createElement(StyledAdornment, adornmentProps, !disabled && /*#__PURE__*/external_react_default.a.createElement(StyledClearButton, {
|
|
937
940
|
"data-test": "clear",
|
|
@@ -1002,6 +1005,8 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1002
1005
|
|
|
1003
1006
|
if (false) {}
|
|
1004
1007
|
|
|
1008
|
+
if (false) {}
|
|
1009
|
+
|
|
1005
1010
|
Text.validateRows(props);
|
|
1006
1011
|
return _this;
|
|
1007
1012
|
}
|
|
@@ -1082,8 +1087,7 @@ var Text_Text = /*#__PURE__*/function (_Component) {
|
|
|
1082
1087
|
title = _this$props10.title,
|
|
1083
1088
|
type = _this$props10.type,
|
|
1084
1089
|
useSyntheticPlaceholder = _this$props10.useSyntheticPlaceholder,
|
|
1085
|
-
|
|
1086
|
-
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", "value"]);
|
|
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"]);
|
|
1087
1091
|
|
|
1088
1092
|
var ariaProps = _objectSpread(_objectSpread({}, Object(external_lodash_["pickBy"])(otherProps, function (val, key) {
|
|
1089
1093
|
return key === 'role' || key.indexOf('aria-') === 0;
|
|
@@ -1221,7 +1225,14 @@ module.exports = require("@splunk/react-ui/Button");
|
|
|
1221
1225
|
|
|
1222
1226
|
/***/ }),
|
|
1223
1227
|
|
|
1224
|
-
/***/
|
|
1228
|
+
/***/ 2:
|
|
1229
|
+
/***/ (function(module, exports) {
|
|
1230
|
+
|
|
1231
|
+
module.exports = require("react");
|
|
1232
|
+
|
|
1233
|
+
/***/ }),
|
|
1234
|
+
|
|
1235
|
+
/***/ 20:
|
|
1225
1236
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1226
1237
|
|
|
1227
1238
|
"use strict";
|
|
@@ -1271,13 +1282,6 @@ function CrossMark(props) {
|
|
|
1271
1282
|
|
|
1272
1283
|
/***/ }),
|
|
1273
1284
|
|
|
1274
|
-
/***/ 2:
|
|
1275
|
-
/***/ (function(module, exports) {
|
|
1276
|
-
|
|
1277
|
-
module.exports = require("react");
|
|
1278
|
-
|
|
1279
|
-
/***/ }),
|
|
1280
|
-
|
|
1281
1285
|
/***/ 21:
|
|
1282
1286
|
/***/ (function(module, exports) {
|
|
1283
1287
|
|
|
@@ -1292,21 +1296,7 @@ module.exports = require("@splunk/react-icons/SVG");
|
|
|
1292
1296
|
|
|
1293
1297
|
/***/ }),
|
|
1294
1298
|
|
|
1295
|
-
/***/
|
|
1296
|
-
/***/ (function(module, exports) {
|
|
1297
|
-
|
|
1298
|
-
module.exports = require("styled-components");
|
|
1299
|
-
|
|
1300
|
-
/***/ }),
|
|
1301
|
-
|
|
1302
|
-
/***/ 31:
|
|
1303
|
-
/***/ (function(module, exports) {
|
|
1304
|
-
|
|
1305
|
-
module.exports = require("@splunk/ui-utils/style");
|
|
1306
|
-
|
|
1307
|
-
/***/ }),
|
|
1308
|
-
|
|
1309
|
-
/***/ 34:
|
|
1299
|
+
/***/ 29:
|
|
1310
1300
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1311
1301
|
|
|
1312
1302
|
"use strict";
|
|
@@ -1356,6 +1346,20 @@ function Search(props) {
|
|
|
1356
1346
|
|
|
1357
1347
|
/***/ }),
|
|
1358
1348
|
|
|
1349
|
+
/***/ 3:
|
|
1350
|
+
/***/ (function(module, exports) {
|
|
1351
|
+
|
|
1352
|
+
module.exports = require("styled-components");
|
|
1353
|
+
|
|
1354
|
+
/***/ }),
|
|
1355
|
+
|
|
1356
|
+
/***/ 32:
|
|
1357
|
+
/***/ (function(module, exports) {
|
|
1358
|
+
|
|
1359
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
1360
|
+
|
|
1361
|
+
/***/ }),
|
|
1362
|
+
|
|
1359
1363
|
/***/ 4:
|
|
1360
1364
|
/***/ (function(module, exports) {
|
|
1361
1365
|
|