@elastic/eui 70.2.1 → 70.2.3
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/dist/eui_theme_dark.css +10 -12
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +10 -12
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/button/button.js +1 -0
- package/es/components/button/button_display/_button_display.js +3 -3
- package/es/components/button/button_display/_button_display.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -4
- package/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +1 -1
- package/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/es/components/facet/facet_button.js +55 -1
- package/es/global_styling/mixins/_helpers.js +1 -1
- package/eui.d.ts +4 -3
- package/lib/components/button/button.js +1 -0
- package/lib/components/button/button_display/_button_display.js +3 -3
- package/lib/components/button/button_display/_button_display.styles.js +2 -1
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -5
- package/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +1 -1
- package/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/lib/components/facet/facet_button.js +56 -2
- package/lib/global_styling/mixins/_helpers.js +1 -1
- package/optimize/es/components/button/button.js +1 -0
- package/optimize/es/components/button/button_display/_button_display.js +2 -2
- package/optimize/es/components/button/button_display/_button_display.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -4
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +1 -1
- package/optimize/lib/components/button/button.js +1 -0
- package/optimize/lib/components/button/button_display/_button_display.js +2 -2
- package/optimize/lib/components/button/button_display/_button_display.styles.js +2 -1
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -5
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +1 -1
- package/package.json +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +6 -10
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +5 -3
- package/test-env/components/button/button.js +1 -0
- package/test-env/components/button/button_display/_button_display.js +3 -3
- package/test-env/components/button/button_display/_button_display.styles.js +2 -1
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +1 -5
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js +1 -1
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +1 -1
- package/test-env/components/facet/facet_button.js +56 -2
- package/test-env/global_styling/mixins/_helpers.js +1 -1
|
@@ -66,7 +66,7 @@ var euiOverflowShadowStyles = function euiOverflowShadowStyles(_ref3) {
|
|
|
66
66
|
|
|
67
67
|
var direction = _direction || 'y';
|
|
68
68
|
var side = _side || 'both';
|
|
69
|
-
var hideHeight =
|
|
69
|
+
var hideHeight = size.s;
|
|
70
70
|
var gradientStart = "\n ".concat((0, _color.transparentize)('red', 0.1), " 0%,\n ").concat((0, _color.transparentize)('red', 1), " ").concat(hideHeight, "\n ");
|
|
71
71
|
var gradientEnd = "\n ".concat((0, _color.transparentize)('red', 1), " calc(100% - ").concat(hideHeight, "),\n ").concat((0, _color.transparentize)('red', 0.1), " 100%\n ");
|
|
72
72
|
var gradient = '';
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
// sass-lint:disable-block function-name-format
|
|
2
2
|
|
|
3
3
|
.euiSuperDatePicker__flexWrapper {
|
|
4
|
-
|
|
5
|
-
max-width: calc(100% + #{$euiSizeS});
|
|
4
|
+
max-width: 100%;
|
|
6
5
|
// Set a sensible min-width for when width is auto
|
|
7
6
|
min-width: MIN(($euiFormMaxWidth / 2) + $euiSuperDatePickerButtonWidth + $euiSizeS, 100%);
|
|
8
7
|
width: $euiSuperDatePickerWidth + $euiSuperDatePickerButtonWidth + $euiSizeS;
|
|
9
8
|
|
|
9
|
+
@include euiBreakpoint('xs', 's') {
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
10
13
|
&.euiSuperDatePicker__flexWrapper--fullWidth {
|
|
11
|
-
|
|
12
|
-
width: calc(100% + #{$euiSizeS});
|
|
14
|
+
width: 100%;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
&.euiSuperDatePicker__flexWrapper--isQuickSelectOnly {
|
|
@@ -76,9 +78,3 @@
|
|
|
76
78
|
cursor: not-allowed;
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
|
-
|
|
80
|
-
@include euiBreakpoint('xs', 's') {
|
|
81
|
-
.euiSuperDatePicker__flexWrapper {
|
|
82
|
-
width: calc(100% + #{$euiSizeS});
|
|
83
|
-
}
|
|
84
|
-
}
|
package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
max-height: $euiSizeM * 11;
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
overflow-y: auto;
|
|
11
|
-
|
|
11
|
+
margin: $euiSizeS 0 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
// sass-lint:disable no-important
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
font-size: $euiFontSizeS;
|
|
26
26
|
line-height: $euiFontSizeS;
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
&--recentlyUsed {
|
|
29
|
+
&:not(:last-of-type) {
|
|
30
|
+
margin-bottom: $euiSizeS;
|
|
31
|
+
}
|
|
30
32
|
}
|
|
31
33
|
}
|
|
@@ -218,6 +218,7 @@ var EuiButtonDisplayDeprecated = /*#__PURE__*/(0, _react.forwardRef)(function (_
|
|
|
218
218
|
|
|
219
219
|
if (minWidth !== undefined || minWidth !== null) {
|
|
220
220
|
calculatedStyle = _objectSpread(_objectSpread({}, calculatedStyle), {}, {
|
|
221
|
+
// @ts-ignore - deprecated component
|
|
221
222
|
minWidth: minWidth
|
|
222
223
|
});
|
|
223
224
|
}
|
|
@@ -88,7 +88,7 @@ var EuiButtonDisplay = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref)
|
|
|
88
88
|
var theme = (0, _services.useEuiTheme)();
|
|
89
89
|
var styles = (0, _button_display.euiButtonDisplayStyles)(theme);
|
|
90
90
|
var buttonRadiusStyle = (0, _mixins.useEuiButtonRadiusCSS)()[size];
|
|
91
|
-
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, buttonIsDisabled && styles.isDisabled, buttonRadiusStyle];
|
|
91
|
+
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && styles.defaultMinWidth, buttonIsDisabled && styles.isDisabled, buttonRadiusStyle];
|
|
92
92
|
var innerNode = (0, _react2.jsx)(_button_display_content.EuiButtonDisplayContent, (0, _extends2.default)({
|
|
93
93
|
isLoading: isLoading,
|
|
94
94
|
isDisabled: buttonIsDisabled,
|
|
@@ -123,7 +123,7 @@ var EuiButtonDisplay = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref)
|
|
|
123
123
|
|
|
124
124
|
return (0, _react2.createElement)(element, _objectSpread(_objectSpread(_objectSpread({
|
|
125
125
|
css: cssStyles,
|
|
126
|
-
style: minWidth
|
|
126
|
+
style: minWidth ? _objectSpread(_objectSpread({}, style), {}, {
|
|
127
127
|
minInlineSize: minWidth
|
|
128
128
|
}) : style,
|
|
129
129
|
ref: ref
|
|
@@ -163,7 +163,7 @@ EuiButtonDisplay.propTypes = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Override the default minimum width
|
|
165
165
|
*/
|
|
166
|
-
minWidth: _propTypes.default.any,
|
|
166
|
+
minWidth: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([false])]),
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
169
|
* Force disables the button and changes the icon to a loading spinner
|
|
@@ -36,10 +36,11 @@ var euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
|
|
|
36
36
|
var euiTheme = euiThemeContext.euiTheme;
|
|
37
37
|
return {
|
|
38
38
|
// Base
|
|
39
|
-
euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), ";
|
|
39
|
+
euiButtonDisplay: /*#__PURE__*/(0, _react.css)(euiButtonBaseCSS(), ";font-weight:", euiTheme.font.weight.medium, ";padding:0 ", euiTheme.size.m, ";&:hover:not(:disabled),&:focus{text-decoration:underline;};label:euiButtonDisplay;"),
|
|
40
40
|
// States
|
|
41
41
|
isDisabled: _ref,
|
|
42
42
|
fullWidth: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
|
|
43
|
+
defaultMinWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', "".concat(euiTheme.base * 7, "px")), ";;label:defaultMinWidth;"),
|
|
43
44
|
// Sizes
|
|
44
45
|
xs: /*#__PURE__*/(0, _react.css)(_buttonSize(euiTheme.size.l), (0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";label:xs;"),
|
|
45
46
|
s: /*#__PURE__*/(0, _react.css)(_buttonSize(euiTheme.size.xl), (0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";label:s;"),
|
|
@@ -35,8 +35,6 @@ var _popover = require("../../../popover");
|
|
|
35
35
|
|
|
36
36
|
var _title = require("../../../title");
|
|
37
37
|
|
|
38
|
-
var _spacer = require("../../../spacer");
|
|
39
|
-
|
|
40
38
|
var _horizontal_rule = require("../../../horizontal_rule");
|
|
41
39
|
|
|
42
40
|
var _text = require("../../../text");
|
|
@@ -156,9 +154,7 @@ var EuiQuickSelectPopover = /*#__PURE__*/function (_Component) {
|
|
|
156
154
|
margin: "s"
|
|
157
155
|
}), (0, _react2.jsx)(_title.EuiTitle, {
|
|
158
156
|
size: "xxxs"
|
|
159
|
-
}, (0, _react2.jsx)("span", null, title)), (0, _react2.jsx)(
|
|
160
|
-
size: "xs"
|
|
161
|
-
}), (0, _react2.jsx)(_text.EuiText, {
|
|
157
|
+
}, (0, _react2.jsx)("span", null, title)), (0, _react2.jsx)(_text.EuiText, {
|
|
162
158
|
size: "s",
|
|
163
159
|
className: "euiQuickSelectPopover__section"
|
|
164
160
|
}, /*#__PURE__*/_react.default.cloneElement(content, {
|
package/test-env/components/date_picker/super_date_picker/quick_select_popover/recently_used.js
CHANGED
|
@@ -54,7 +54,7 @@ var EuiRecentlyUsed = function EuiRecentlyUsed(_ref) {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
return (0, _react2.jsx)("li", {
|
|
57
|
-
className: "euiQuickSelectPopover__sectionItem",
|
|
57
|
+
className: "euiQuickSelectPopover__sectionItem euiQuickSelectPopover__sectionItem--recentlyUsed",
|
|
58
58
|
key: "".concat(start, "-").concat(end)
|
|
59
59
|
}, (0, _react2.jsx)(_link.EuiLink, {
|
|
60
60
|
onClick: applyRecentlyUsed
|
|
@@ -180,7 +180,7 @@ var EuiSuperUpdateButton = /*#__PURE__*/function (_Component) {
|
|
|
180
180
|
sizes: responsive || 'none'
|
|
181
181
|
}, (0, _react2.jsx)(_button.EuiButton, (0, _extends2.default)({
|
|
182
182
|
className: classes,
|
|
183
|
-
minWidth:
|
|
183
|
+
minWidth: false
|
|
184
184
|
}, sharedButtonProps, {
|
|
185
185
|
fill: fill,
|
|
186
186
|
textProps: _objectSpread(_objectSpread({}, restTextProps), {}, {
|
|
@@ -117,19 +117,28 @@ EuiFacetButton.propTypes = {
|
|
|
117
117
|
/**
|
|
118
118
|
* ReactNode to render as this component's content
|
|
119
119
|
*/
|
|
120
|
-
children: _propTypes.default.node.isRequired,
|
|
120
|
+
children: _propTypes.default.oneOfType([_propTypes.default.node.isRequired, _propTypes.default.node]),
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Any node, but preferably a `EuiIcon` or `EuiAvatar`
|
|
124
124
|
*/
|
|
125
125
|
icon: _propTypes.default.node,
|
|
126
|
-
isDisabled: _propTypes.default.bool,
|
|
126
|
+
isDisabled: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.bool]),
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Force disables the button and changes the icon to a loading spinner
|
|
130
|
+
*/
|
|
127
131
|
|
|
128
132
|
/**
|
|
129
133
|
* Adds/swaps for loading spinner & disables
|
|
130
134
|
*/
|
|
131
135
|
isLoading: _propTypes.default.bool,
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Applies the boolean state as the `aria-pressed` property to create a toggle button.
|
|
139
|
+
* *Only use when the readable text does not change between states.*
|
|
140
|
+
*/
|
|
141
|
+
|
|
133
142
|
/**
|
|
134
143
|
* Changes visual of button to indicate it's currently selected
|
|
135
144
|
*/
|
|
@@ -139,6 +148,51 @@ EuiFacetButton.propTypes = {
|
|
|
139
148
|
* Adds a notification indicator for displaying the quantity provided
|
|
140
149
|
*/
|
|
141
150
|
quantity: _propTypes.default.number,
|
|
151
|
+
size: _propTypes.default.any,
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Extends the button to 100% width
|
|
155
|
+
*/
|
|
156
|
+
fullWidth: _propTypes.default.bool,
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Override the default minimum width
|
|
160
|
+
*/
|
|
161
|
+
minWidth: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([false])]),
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
165
|
+
*/
|
|
166
|
+
contentProps: _propTypes.default.shape({
|
|
167
|
+
className: _propTypes.default.string,
|
|
168
|
+
"aria-label": _propTypes.default.string,
|
|
169
|
+
"data-test-subj": _propTypes.default.string,
|
|
170
|
+
css: _propTypes.default.any
|
|
171
|
+
}),
|
|
172
|
+
style: _propTypes.default.any,
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Any `type` accepted by EuiIcon
|
|
176
|
+
*/
|
|
177
|
+
iconType: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "mobile", "monitoringApp", "moon", "namespace", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelionApp", "timeRefresh", "timeslider", "training", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDenseVector", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Can only be one side `left` or `right`
|
|
181
|
+
*/
|
|
182
|
+
iconSide: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf([undefined])]),
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Object of props passed to the <span/> wrapping the content's text/children only (not icon)
|
|
186
|
+
*/
|
|
187
|
+
textProps: _propTypes.default.shape({
|
|
188
|
+
className: _propTypes.default.string,
|
|
189
|
+
"aria-label": _propTypes.default.string,
|
|
190
|
+
"data-test-subj": _propTypes.default.string,
|
|
191
|
+
css: _propTypes.default.any,
|
|
192
|
+
ref: _propTypes.default.any,
|
|
193
|
+
"data-text": _propTypes.default.string
|
|
194
|
+
}),
|
|
195
|
+
iconSize: _propTypes.default.any,
|
|
142
196
|
className: _propTypes.default.string,
|
|
143
197
|
"aria-label": _propTypes.default.string,
|
|
144
198
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -66,7 +66,7 @@ var euiOverflowShadowStyles = function euiOverflowShadowStyles(_ref3) {
|
|
|
66
66
|
|
|
67
67
|
var direction = _direction || 'y';
|
|
68
68
|
var side = _side || 'both';
|
|
69
|
-
var hideHeight =
|
|
69
|
+
var hideHeight = size.s;
|
|
70
70
|
var gradientStart = "\n ".concat((0, _color.transparentize)('red', 0.1), " 0%,\n ").concat((0, _color.transparentize)('red', 1), " ").concat(hideHeight, "\n ");
|
|
71
71
|
var gradientEnd = "\n ".concat((0, _color.transparentize)('red', 1), " calc(100% - ").concat(hideHeight, "),\n ").concat((0, _color.transparentize)('red', 0.1), " 100%\n ");
|
|
72
72
|
var gradient = '';
|