@elastic/eui 95.1.0 → 95.2.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/dist/eui_theme_dark.css +0 -240
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -240
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/combo_box/combo_box_input/combo_box_input.js +2 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/form/file_picker/file_picker.js +49 -35
- package/es/components/form/file_picker/file_picker.styles.js +98 -0
- package/es/components/icon/assets/app_cases.js +9 -7
- package/es/components/icon/assets/logo_elastic_stack.js +6 -12
- package/es/components/steps/step.js +5 -3
- package/es/components/steps/step.styles.js +13 -5
- package/es/components/steps/step_horizontal.js +8 -3
- package/es/components/steps/step_horizontal.styles.js +1 -0
- package/es/components/steps/step_number.js +48 -24
- package/es/components/steps/step_number.styles.js +4 -2
- package/es/components/steps/steps.js +3 -1
- package/es/components/steps/steps_horizontal.js +1 -1
- package/es/services/theme/warning.js +7 -2
- package/eui.d.ts +72 -20
- package/i18ntokens.json +16 -16
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +2 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/form/file_picker/file_picker.js +51 -37
- package/lib/components/form/file_picker/file_picker.styles.js +102 -0
- package/lib/components/icon/assets/app_cases.js +9 -7
- package/lib/components/icon/assets/logo_elastic_stack.js +6 -12
- package/lib/components/icon/svgs/app_cases.svg +6 -5
- package/lib/components/icon/svgs/logo_elastic_stack.svg +4 -7
- package/lib/components/steps/step.js +5 -3
- package/lib/components/steps/step.styles.js +13 -5
- package/lib/components/steps/step_horizontal.js +8 -3
- package/lib/components/steps/step_horizontal.styles.js +1 -0
- package/lib/components/steps/step_number.js +48 -24
- package/lib/components/steps/step_number.styles.js +3 -1
- package/lib/components/steps/steps.js +3 -1
- package/lib/components/steps/steps_horizontal.js +1 -1
- package/lib/services/theme/warning.js +7 -2
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +2 -1
- package/optimize/es/components/form/file_picker/file_picker.js +40 -34
- package/optimize/es/components/form/file_picker/file_picker.styles.js +98 -0
- package/optimize/es/components/icon/assets/app_cases.js +9 -7
- package/optimize/es/components/icon/assets/logo_elastic_stack.js +6 -12
- package/optimize/es/components/steps/step.js +2 -2
- package/optimize/es/components/steps/step.styles.js +13 -5
- package/optimize/es/components/steps/step_horizontal.js +8 -3
- package/optimize/es/components/steps/step_horizontal.styles.js +1 -0
- package/optimize/es/components/steps/step_number.js +44 -22
- package/optimize/es/components/steps/step_number.styles.js +4 -2
- package/optimize/es/components/steps/steps_horizontal.js +1 -1
- package/optimize/es/services/theme/warning.js +7 -2
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +2 -1
- package/optimize/lib/components/form/file_picker/file_picker.js +42 -36
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +102 -0
- package/optimize/lib/components/icon/assets/app_cases.js +9 -7
- package/optimize/lib/components/icon/assets/logo_elastic_stack.js +6 -12
- package/optimize/lib/components/icon/svgs/app_cases.svg +6 -5
- package/optimize/lib/components/icon/svgs/logo_elastic_stack.svg +4 -7
- package/optimize/lib/components/steps/step.js +2 -2
- package/optimize/lib/components/steps/step.styles.js +13 -5
- package/optimize/lib/components/steps/step_horizontal.js +8 -3
- package/optimize/lib/components/steps/step_horizontal.styles.js +1 -0
- package/optimize/lib/components/steps/step_number.js +44 -22
- package/optimize/lib/components/steps/step_number.styles.js +3 -1
- package/optimize/lib/components/steps/steps_horizontal.js +1 -1
- package/optimize/lib/services/theme/warning.js +7 -2
- package/package.json +1 -1
- package/src/components/form/_index.scss +0 -1
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +2 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/form/file_picker/file_picker.js +46 -37
- package/test-env/components/form/file_picker/file_picker.styles.js +102 -0
- package/test-env/components/icon/assets/app_cases.js +9 -7
- package/test-env/components/icon/assets/logo_elastic_stack.js +6 -12
- package/test-env/components/steps/step.js +5 -3
- package/test-env/components/steps/step.styles.js +13 -5
- package/test-env/components/steps/step_horizontal.js +8 -3
- package/test-env/components/steps/step_horizontal.styles.js +1 -0
- package/test-env/components/steps/step_number.js +48 -24
- package/test-env/components/steps/step_number.styles.js +3 -1
- package/test-env/components/steps/steps.js +3 -1
- package/test-env/components/steps/steps_horizontal.js +1 -1
- package/test-env/services/theme/warning.js +7 -2
- package/src/components/form/file_picker/_file_picker.scss +0 -212
- package/src/components/form/file_picker/_index.scss +0 -2
- package/src/components/form/file_picker/_variables.scss +0 -1
|
@@ -12,9 +12,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _accessibility = require("../accessibility");
|
|
14
14
|
var _icon = require("../icon");
|
|
15
|
-
var _step_strings = require("./step_strings");
|
|
16
15
|
var _loading = require("../loading");
|
|
17
16
|
var _services = require("../../services");
|
|
17
|
+
var _step_strings = require("./step_strings");
|
|
18
18
|
var _step_number = require("./step_number.styles");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
20
20
|
var _excluded = ["className", "status", "number", "titleSize"];
|
|
@@ -69,37 +69,59 @@ var EuiStepNumber = exports.EuiStepNumber = function EuiStepNumber(_ref) {
|
|
|
69
69
|
switch (status) {
|
|
70
70
|
// Loading spinner
|
|
71
71
|
case 'loading':
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
{
|
|
73
|
+
var iconSizeMap = {
|
|
74
|
+
none: 'm',
|
|
75
|
+
xs: 'l',
|
|
76
|
+
s: 'xl',
|
|
77
|
+
m: 'xl'
|
|
78
|
+
};
|
|
79
|
+
screenReaderText = ariaLabelsMap.loading;
|
|
80
|
+
content = (0, _react2.jsx)(_loading.EuiLoadingSpinner, {
|
|
81
|
+
className: "euiStepNumber__loader",
|
|
82
|
+
size: iconSizeMap[titleSize]
|
|
83
|
+
});
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
78
86
|
// Statuses with icons
|
|
79
87
|
case 'danger':
|
|
80
88
|
case 'warning':
|
|
81
89
|
case 'complete':
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
{
|
|
91
|
+
var cssIconStyles = [contentStyles.euiStepNumber__icon, contentStyles[status],
|
|
92
|
+
// EuiIcon does not support a xxs size so far,
|
|
93
|
+
// we use custom sizing here instead
|
|
94
|
+
titleSize === 'none' && contentStyles[titleSize]];
|
|
95
|
+
var iconTypeMap = {
|
|
96
|
+
danger: 'cross',
|
|
97
|
+
warning: 'warning',
|
|
98
|
+
complete: 'check'
|
|
99
|
+
};
|
|
100
|
+
var _iconSizeMap = {
|
|
101
|
+
xxs: 's',
|
|
102
|
+
xs: 's',
|
|
103
|
+
s: 'm',
|
|
104
|
+
m: 'm'
|
|
105
|
+
};
|
|
106
|
+
content = (0, _react2.jsx)(_icon.EuiIcon, {
|
|
107
|
+
type: iconTypeMap[status],
|
|
108
|
+
"aria-label": ariaLabelsMap[status],
|
|
109
|
+
size: _iconSizeMap[titleSize],
|
|
110
|
+
className: "euiStepNumber__icon",
|
|
111
|
+
css: cssIconStyles
|
|
112
|
+
});
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
96
115
|
// Statuses with numbers
|
|
97
116
|
case 'incomplete':
|
|
98
117
|
case 'current':
|
|
99
118
|
case 'disabled':
|
|
100
119
|
default:
|
|
101
|
-
var cssNumberStyles = [contentStyles.euiStepNumber__number, status && contentStyles[status]];
|
|
102
120
|
screenReaderText = ariaLabelsMap[status || 'step'];
|
|
121
|
+
if (titleSize === 'none') {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
var cssNumberStyles = [contentStyles.euiStepNumber__number, status && contentStyles[status]];
|
|
103
125
|
content = (0, _react2.jsx)("span", {
|
|
104
126
|
"aria-hidden": "true",
|
|
105
127
|
className: "euiStepNumber__number",
|
|
@@ -119,9 +141,11 @@ EuiStepNumber.propTypes = {
|
|
|
119
141
|
status: _propTypes.default.any,
|
|
120
142
|
number: _propTypes.default.number,
|
|
121
143
|
/**
|
|
122
|
-
* Title sizing equivalent to EuiTitle, but only `m`, `s
|
|
144
|
+
* Title sizing equivalent to EuiTitle, but only `m`, `s`, `xs`.
|
|
145
|
+
* `none` indicates no step number should be rendered.
|
|
146
|
+
* @default s
|
|
123
147
|
*/
|
|
124
|
-
titleSize: _propTypes.default.any,
|
|
148
|
+
titleSize: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["none"])]),
|
|
125
149
|
className: _propTypes.default.string,
|
|
126
150
|
"aria-label": _propTypes.default.string,
|
|
127
151
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -43,6 +43,7 @@ var euiStepNumberStyles = exports.euiStepNumberStyles = function euiStepNumberSt
|
|
|
43
43
|
m: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberSize, (0, _global_styling.euiFontSizeFromScale)('s', euiTheme)), ";;label:m;"),
|
|
44
44
|
s: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberSize, (0, _global_styling.euiFontSizeFromScale)('s', euiTheme)), ";;label:s;"),
|
|
45
45
|
xs: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberXSSize, (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme)), ";;label:xs;"),
|
|
46
|
+
none: /*#__PURE__*/(0, _react.css)(createStepsNumber(euiStep.numberXXSSize, (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme)), ";;label:none;"),
|
|
46
47
|
// status
|
|
47
48
|
incomplete: /*#__PURE__*/(0, _react.css)("background-color:transparent;color:", euiTheme.colors.text, ";border:", euiTheme.border.thick, ";;label:incomplete;"),
|
|
48
49
|
disabled: /*#__PURE__*/(0, _react.css)((0, _mixins.euiButtonFillColor)(euiThemeContext, 'disabled'), ";;label:disabled;"),
|
|
@@ -70,6 +71,7 @@ var euiStepNumberContentStyles = exports.euiStepNumberContentStyles = function e
|
|
|
70
71
|
incomplete: /*#__PURE__*/(0, _react.css)("display:unset;position:relative;inset-block-start:-", euiTheme.border.width.thick, ";;label:incomplete;"),
|
|
71
72
|
loading: /*#__PURE__*/(0, _react.css)(";label:loading;"),
|
|
72
73
|
disabled: /*#__PURE__*/(0, _react.css)(";label:disabled;"),
|
|
73
|
-
current: /*#__PURE__*/(0, _react.css)("display:inline-block;transform:translateY(-", euiTheme.border.width.thick, ");;label:current;")
|
|
74
|
+
current: /*#__PURE__*/(0, _react.css)("display:inline-block;transform:translateY(-", euiTheme.border.width.thick, ");;label:current;"),
|
|
75
|
+
none: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)(euiTheme.size.s), ";label:none;")
|
|
74
76
|
};
|
|
75
77
|
};
|
|
@@ -67,7 +67,9 @@ EuiSteps.propTypes = {
|
|
|
67
67
|
*/
|
|
68
68
|
headingElement: _propTypes.default.string,
|
|
69
69
|
/**
|
|
70
|
-
* Title sizing equivalent to EuiTitle
|
|
70
|
+
* Title sizing equivalent to **EuiTitle**, but only `m`, `s`, `xs` font sizes.
|
|
71
|
+
* The `xxs` size reduces the size of the accompanying step indicator, but not the title itself.
|
|
72
|
+
* @default s
|
|
71
73
|
*/
|
|
72
74
|
titleSize: _propTypes.default.any,
|
|
73
75
|
className: _propTypes.default.string,
|
|
@@ -21,7 +21,7 @@ var _excluded = ["className", "steps", "size"];
|
|
|
21
21
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
22
22
|
* Side Public License, v 1.
|
|
23
23
|
*/
|
|
24
|
-
var SIZES = exports.SIZES = ['s', 'm'];
|
|
24
|
+
var SIZES = exports.SIZES = ['xs', 's', 'm'];
|
|
25
25
|
var EuiStepsHorizontal = exports.EuiStepsHorizontal = function EuiStepsHorizontal(_ref) {
|
|
26
26
|
var className = _ref.className,
|
|
27
27
|
steps = _ref.steps,
|
|
@@ -13,8 +13,8 @@ exports.setEuiDevProviderWarning = exports.getEuiDevProviderWarning = exports.em
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
var providerWarning = undefined;
|
|
16
|
-
var setEuiDevProviderWarning = exports.setEuiDevProviderWarning = function setEuiDevProviderWarning(
|
|
17
|
-
return providerWarning =
|
|
16
|
+
var setEuiDevProviderWarning = exports.setEuiDevProviderWarning = function setEuiDevProviderWarning(warningType) {
|
|
17
|
+
return providerWarning = warningType;
|
|
18
18
|
};
|
|
19
19
|
var getEuiDevProviderWarning = exports.getEuiDevProviderWarning = function getEuiDevProviderWarning() {
|
|
20
20
|
return providerWarning;
|
|
@@ -22,6 +22,11 @@ var getEuiDevProviderWarning = exports.getEuiDevProviderWarning = function getEu
|
|
|
22
22
|
|
|
23
23
|
// Not a public top-level EUI export, currently for internal use
|
|
24
24
|
var emitEuiProviderWarning = exports.emitEuiProviderWarning = function emitEuiProviderWarning(providerMessage) {
|
|
25
|
+
// Handle callback types
|
|
26
|
+
if (typeof providerWarning === 'function') {
|
|
27
|
+
return providerWarning(providerMessage);
|
|
28
|
+
}
|
|
29
|
+
// Handle level types
|
|
25
30
|
switch (providerWarning) {
|
|
26
31
|
case 'log':
|
|
27
32
|
console.log(providerMessage);
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* REMEMBER: --large modifiers must come last to override --compressed
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
.euiFilePicker {
|
|
6
|
-
@include euiFormControlSize($includeAlternates: true);
|
|
7
|
-
position: relative;
|
|
8
|
-
|
|
9
|
-
&.euiFilePicker--large {
|
|
10
|
-
border-radius: $euiFormControlBorderRadius;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
height: auto;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&.euiFilePicker--large.euiFilePicker--compressed {
|
|
16
|
-
border-radius: $euiFormControlCompressedBorderRadius;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// The input is an invisible dropzone / button
|
|
21
|
-
.euiFilePicker__input {
|
|
22
|
-
position: absolute;
|
|
23
|
-
left: 0;
|
|
24
|
-
top: 0;
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%;
|
|
27
|
-
opacity: 0;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:hover:disabled {
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&:disabled {
|
|
39
|
-
opacity: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&:disabled ~ .euiFilePicker__prompt {
|
|
43
|
-
color: $euiColorMediumShade;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.euiFilePicker__icon {
|
|
48
|
-
position: absolute;
|
|
49
|
-
left: $euiSizeM;
|
|
50
|
-
top: $euiSizeM;
|
|
51
|
-
transition: transform $euiAnimSpeedFast $euiAnimSlightResistance;
|
|
52
|
-
|
|
53
|
-
.euiFilePicker--compressed & {
|
|
54
|
-
top: $euiSizeS;
|
|
55
|
-
left: $euiSizeS;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.euiFilePicker--large & {
|
|
59
|
-
position: static;
|
|
60
|
-
margin-bottom: $euiSize;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 1. Don't block the user from dropping files onto the filepicker.
|
|
66
|
-
* 2. Ensure space for import icon, loading spinner, and clear button (only if it has files)
|
|
67
|
-
* 4. Static height so that it doesn't shift its surrounding contents around
|
|
68
|
-
*/
|
|
69
|
-
.euiFilePicker__prompt {
|
|
70
|
-
@include euiFormControlWithIcon; /* 2 */
|
|
71
|
-
height: $euiFormControlHeight;
|
|
72
|
-
padding-top: $euiFormControlPadding;
|
|
73
|
-
padding-right: $euiFormControlPadding;
|
|
74
|
-
padding-bottom: $euiFormControlPadding;
|
|
75
|
-
pointer-events: none; /* 1 */
|
|
76
|
-
border: $euiBorderWidthThick dashed $euiColorLightShade;
|
|
77
|
-
border-radius: $euiFormControlBorderRadius;
|
|
78
|
-
|
|
79
|
-
transition:
|
|
80
|
-
border-color $euiAnimSpeedFast ease-in,
|
|
81
|
-
background-color $euiAnimSpeedFast ease-in;
|
|
82
|
-
|
|
83
|
-
.euiFilePicker--compressed & {
|
|
84
|
-
@include euiFormControlStyleCompressed($includeStates: false);
|
|
85
|
-
@include euiFormControlWithIcon($compressed: true); /* 2 */
|
|
86
|
-
height: $euiFormControlCompressedHeight;
|
|
87
|
-
border-radius: $euiFormControlCompressedBorderRadius;
|
|
88
|
-
box-shadow: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.euiFilePicker--large & {
|
|
92
|
-
height: $euiFilePickerTallHeight; /* 4 */
|
|
93
|
-
padding: 0 $euiSizeL;
|
|
94
|
-
display: flex;
|
|
95
|
-
flex-direction: column;
|
|
96
|
-
align-items: center;
|
|
97
|
-
justify-content: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.euiFilePicker--large.euiFilePicker--compressed & {
|
|
101
|
-
height: $euiFilePickerTallHeight - $euiSizeL; /* 4 */
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// To match other EUI form controls, do not color the border red if focused or disabled
|
|
105
|
-
.euiFilePicker-isInvalid:not(.euiFilePicker__showDrop) .euiFilePicker__input:not(:disabled):not(:focus) + & {
|
|
106
|
-
border-color: $euiColorDanger;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.euiFilePicker__promptText {
|
|
111
|
-
@include euiFontSizeS;
|
|
112
|
-
@include euiTextTruncate;
|
|
113
|
-
line-height: $euiSize;
|
|
114
|
-
|
|
115
|
-
// Make normal sized prompt stand out a bit more - on the large size we don't need this as it's already identifiable
|
|
116
|
-
.euiFilePicker:not(.euiFilePicker--large):not(.euiFilePicker-hasFiles) & {
|
|
117
|
-
color: $euiColorPrimaryText;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Offset/center prompt text for non-large file-pickers
|
|
121
|
-
.euiFilePicker:not(.euiFilePicker--large) & {
|
|
122
|
-
margin-top: $euiSizeXS / -2;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.euiFilePicker__clearButton,
|
|
127
|
-
.euiFilePicker__loadingSpinner {
|
|
128
|
-
position: absolute;
|
|
129
|
-
right: $euiSizeM;
|
|
130
|
-
top: $euiSizeM;
|
|
131
|
-
|
|
132
|
-
.euiFilePicker--compressed & {
|
|
133
|
-
top: $euiSizeS;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* 1. Undo the pointer-events: none applied to the enclosing prompt.
|
|
139
|
-
*/
|
|
140
|
-
.euiFilePicker__clearButton {
|
|
141
|
-
pointer-events: auto; /* 1 */
|
|
142
|
-
|
|
143
|
-
.euiFilePicker:not(.euiFilePicker--large) & {
|
|
144
|
-
@include euiFormControlLayoutClearIcon('.euiFilePicker__clearIcon');
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.euiFilePicker--large & {
|
|
148
|
-
position: relative;
|
|
149
|
-
top: 0;
|
|
150
|
-
right: 0;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// Focus
|
|
155
|
-
.euiFilePicker__showDrop .euiFilePicker__prompt,
|
|
156
|
-
.euiFilePicker__input:focus + .euiFilePicker__prompt {
|
|
157
|
-
border-color: $euiColorPrimary;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// Disabled
|
|
161
|
-
.euiFilePicker__input:disabled + .euiFilePicker__prompt {
|
|
162
|
-
@include euiFormControlDisabledStyle;
|
|
163
|
-
box-shadow: none;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// Make space for the icons on the right
|
|
167
|
-
.euiFilePicker:not(.euiFilePicker--large) {
|
|
168
|
-
&.euiFilePicker-isLoading .euiFilePicker__prompt,
|
|
169
|
-
&.euiFilePicker-hasFiles .euiFilePicker__prompt {
|
|
170
|
-
@include euiFormControlWithIcon(false, 'right'); /* 2 */
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// When the filepicker has files in it
|
|
175
|
-
.euiFilePicker-hasFiles .euiFilePicker__promptText {
|
|
176
|
-
color: $euiTextColor;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Large styles only
|
|
180
|
-
.euiFilePicker--large {
|
|
181
|
-
// stylelint-disable max-nesting-depth
|
|
182
|
-
// Hover and focus
|
|
183
|
-
.euiFilePicker__input:hover:not(:disabled),
|
|
184
|
-
.euiFilePicker__input:focus {
|
|
185
|
-
+ .euiFilePicker__prompt {
|
|
186
|
-
.euiFilePicker__promptText {
|
|
187
|
-
// Adding the underline to the prompt text ensures the underline
|
|
188
|
-
// color is the same as the current text color
|
|
189
|
-
text-decoration: underline;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.euiFilePicker__icon {
|
|
193
|
-
transform: scale(1.1);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
// While dragging files over the dropzone
|
|
199
|
-
&.euiFilePicker__showDrop .euiFilePicker__prompt {
|
|
200
|
-
.euiFilePicker__promptText {
|
|
201
|
-
text-decoration: underline;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.euiFilePicker__icon {
|
|
205
|
-
transform: scale(1.1);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&.euiFilePicker-hasFiles .euiFilePicker__promptText {
|
|
210
|
-
font-weight: $euiFontWeightBold;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$euiFilePickerTallHeight: $euiSize * 8;
|