@elastic/eui 94.3.0 → 94.4.1
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/README.md +3 -0
- package/dist/eui_charts_theme.js +1519 -1519
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +41 -497
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +41 -497
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/es/components/form/form.styles.js +26 -3
- package/es/components/markdown_editor/markdown_editor.js +12 -8
- package/es/components/markdown_editor/markdown_editor.styles.js +29 -0
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +22 -9
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
- package/es/components/markdown_editor/markdown_editor_footer.js +11 -2
- package/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
- package/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
- package/es/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
- package/es/components/markdown_editor/markdown_format.js +9 -6
- package/es/components/markdown_editor/markdown_format.styles.js +25 -10
- package/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
- package/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
- package/es/components/selectable/selectable.js +10 -2
- package/es/components/selectable/selectable_list/selectable_list.js +95 -42
- package/es/components/selectable/selectable_list/selectable_list_item.js +234 -204
- package/es/components/selectable/selectable_option.js +9 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
- package/es/components/text/text_color.js +4 -1
- package/es/components/toast/global_toast_list_item.js +5 -5
- package/eui.d.ts +332 -234
- package/i18ntokens.json +124 -106
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/lib/components/form/form.styles.js +30 -4
- package/lib/components/markdown_editor/markdown_editor.js +12 -8
- package/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +20 -8
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/lib/components/markdown_editor/markdown_editor_footer.js +10 -1
- package/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/lib/components/markdown_editor/markdown_format.js +8 -5
- package/lib/components/markdown_editor/markdown_format.styles.js +25 -10
- package/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/lib/components/selectable/selectable.js +10 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +95 -42
- package/lib/components/selectable/selectable_list/selectable_list_item.js +241 -210
- package/lib/components/selectable/selectable_option.js +12 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
- package/lib/components/text/text_color.js +6 -2
- package/lib/components/toast/global_toast_list_item.js +5 -5
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/optimize/es/components/form/form.styles.js +26 -3
- package/optimize/es/components/markdown_editor/markdown_editor.js +12 -8
- package/optimize/es/components/markdown_editor/markdown_editor.styles.js +29 -0
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.js +19 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +33 -0
- package/optimize/es/components/markdown_editor/markdown_editor_footer.js +11 -2
- package/optimize/es/components/markdown_editor/markdown_editor_footer.styles.js +26 -0
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/optimize/es/components/markdown_editor/markdown_editor_text_area.styles.js +22 -0
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/optimize/es/components/markdown_editor/markdown_editor_toolbar.styles.js +21 -0
- package/optimize/es/components/markdown_editor/markdown_format.js +9 -6
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +25 -10
- package/optimize/es/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -3
- package/optimize/es/components/markdown_editor/plugins/markdown_tooltip/renderer.js +13 -2
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +81 -38
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +217 -198
- package/optimize/es/components/selectable/selectable_option.js +9 -1
- package/optimize/es/components/text/text_color.js +4 -1
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/optimize/lib/components/form/form.styles.js +30 -4
- package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -8
- package/optimize/lib/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.js +24 -16
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.js +10 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/optimize/lib/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/optimize/lib/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/optimize/lib/components/markdown_editor/markdown_format.js +8 -5
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +25 -10
- package/optimize/lib/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/optimize/lib/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +81 -38
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +224 -204
- package/optimize/lib/components/selectable/selectable_option.js +12 -1
- package/optimize/lib/components/text/text_color.js +6 -2
- package/package.json +5 -12
- package/src/components/date_picker/react-datepicker/LICENSE +21 -0
- package/src/components/date_picker/react-datepicker/README.md +168 -0
- package/src/components/date_picker/super_date_picker/date_popover/_absolute_tab.scss +13 -18
- package/src/components/form/checkbox/_checkbox.scss +23 -6
- package/src/components/index.scss +0 -1
- package/src/components/selectable/selectable_list/_selectable_list_item.scss +4 -0
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +5 -1
- package/src/services/theme/README.md +153 -0
- package/src/test/README.md +44 -0
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +5 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +25 -11
- package/test-env/components/form/form.styles.js +30 -4
- package/test-env/components/markdown_editor/markdown_editor.js +12 -8
- package/test-env/components/markdown_editor/markdown_editor.styles.js +37 -0
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +24 -16
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +38 -0
- package/test-env/components/markdown_editor/markdown_editor_footer.js +10 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.styles.js +33 -0
- package/test-env/components/markdown_editor/markdown_editor_text_area.js +6 -1
- package/test-env/components/markdown_editor/markdown_editor_text_area.styles.js +29 -0
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +10 -2
- package/test-env/components/markdown_editor/markdown_editor_toolbar.styles.js +28 -0
- package/test-env/components/markdown_editor/markdown_format.js +8 -5
- package/test-env/components/markdown_editor/markdown_format.styles.js +25 -10
- package/test-env/components/markdown_editor/plugins/markdown_checkbox/renderer.js +9 -4
- package/test-env/components/markdown_editor/plugins/markdown_tooltip/renderer.js +19 -10
- package/test-env/components/selectable/selectable.js +10 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +95 -42
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +233 -205
- package/test-env/components/selectable/selectable_option.js +12 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +10 -2
- package/test-env/components/text/text_color.js +6 -2
- package/test-env/components/toast/global_toast_list_item.js +5 -5
- package/src/components/markdown_editor/_index.scss +0 -9
- package/src/components/markdown_editor/_markdown_editor.scss +0 -22
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +0 -58
- package/src/components/markdown_editor/_markdown_editor_footer.scss +0 -42
- package/src/components/markdown_editor/_markdown_editor_preview.scss +0 -20
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +0 -43
- package/src/components/markdown_editor/_markdown_editor_toolbar.scss +0 -29
- package/src/components/markdown_editor/_markdown_format.scss +0 -78
- package/src/components/markdown_editor/_variables.scss +0 -1
- package/src/components/markdown_editor/plugins/markdown_tooltip.scss +0 -4
- package/src/themes/amsterdam/overrides/_markdown_editor.scss +0 -18
|
@@ -1,16 +1,9 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
1
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
6
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
7
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
8
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
9
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
10
|
-
|
|
4
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
+
var _excluded = ["children", "className", "disabled", "checked", "isFocused", "showIcons", "prepend", "append", "allowExclusions", "onFocusBadge", "paddingSize", "role", "searchable", "textWrap", "toolTipContent", "toolTipProps", "aria-describedby"],
|
|
11
6
|
_excluded2 = ["children", "className"];
|
|
12
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
7
|
/*
|
|
15
8
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
16
9
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,12 +13,13 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
20
13
|
*/
|
|
21
14
|
|
|
22
15
|
import classNames from 'classnames';
|
|
23
|
-
import React, {
|
|
16
|
+
import React, { useState, useEffect, useMemo } from 'react';
|
|
24
17
|
import { keysOf } from '../../common';
|
|
25
18
|
import { EuiI18n } from '../../i18n';
|
|
26
19
|
import { EuiIcon } from '../../icon';
|
|
27
20
|
import { EuiScreenReaderOnly } from '../../accessibility';
|
|
28
21
|
import { EuiBadge } from '../../badge';
|
|
22
|
+
import { EuiToolTip } from '../../tool_tip';
|
|
29
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
30
24
|
function resolveIconAndColor(checked) {
|
|
31
25
|
switch (checked) {
|
|
@@ -56,194 +50,219 @@ var paddingSizeToClassNameMap = {
|
|
|
56
50
|
s: 'euiSelectableListItem--paddingSmall'
|
|
57
51
|
};
|
|
58
52
|
export var PADDING_SIZES = keysOf(paddingSizeToClassNameMap);
|
|
59
|
-
export var EuiSelectableListItem =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
instructions = screenReaderStrings.unchecked.instructions;
|
|
182
|
-
break;
|
|
183
|
-
case 'mixed':
|
|
184
|
-
state = screenReaderStrings.mixed.state;
|
|
185
|
-
instructions = ___EmotionJSX(React.Fragment, null, screenReaderStrings.mixed.instructions, ' ', allowExclusions ? screenReaderStrings.mixed.excludeInstructions : screenReaderStrings.mixed.uncheckInstructions);
|
|
186
|
-
break;
|
|
187
|
-
case undefined:
|
|
188
|
-
default:
|
|
189
|
-
instructions = allowExclusions || searchable ? screenReaderStrings.checked.instructions : undefined;
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
var prependNode;
|
|
193
|
-
if (prepend) {
|
|
194
|
-
prependNode = ___EmotionJSX("span", {
|
|
195
|
-
className: "euiSelectableListItem__prepend"
|
|
196
|
-
}, prepend);
|
|
53
|
+
export var EuiSelectableListItem = function EuiSelectableListItem(_ref) {
|
|
54
|
+
var children = _ref.children,
|
|
55
|
+
className = _ref.className,
|
|
56
|
+
disabled = _ref.disabled,
|
|
57
|
+
checked = _ref.checked,
|
|
58
|
+
isFocused = _ref.isFocused,
|
|
59
|
+
_ref$showIcons = _ref.showIcons,
|
|
60
|
+
showIcons = _ref$showIcons === void 0 ? true : _ref$showIcons,
|
|
61
|
+
prepend = _ref.prepend,
|
|
62
|
+
append = _ref.append,
|
|
63
|
+
allowExclusions = _ref.allowExclusions,
|
|
64
|
+
_ref$onFocusBadge = _ref.onFocusBadge,
|
|
65
|
+
onFocusBadge = _ref$onFocusBadge === void 0 ? true : _ref$onFocusBadge,
|
|
66
|
+
_ref$paddingSize = _ref.paddingSize,
|
|
67
|
+
paddingSize = _ref$paddingSize === void 0 ? 's' : _ref$paddingSize,
|
|
68
|
+
_ref$role = _ref.role,
|
|
69
|
+
role = _ref$role === void 0 ? 'option' : _ref$role,
|
|
70
|
+
searchable = _ref.searchable,
|
|
71
|
+
_ref$textWrap = _ref.textWrap,
|
|
72
|
+
textWrap = _ref$textWrap === void 0 ? 'truncate' : _ref$textWrap,
|
|
73
|
+
toolTipContent = _ref.toolTipContent,
|
|
74
|
+
toolTipProps = _ref.toolTipProps,
|
|
75
|
+
_ariaDescribedBy = _ref['aria-describedby'],
|
|
76
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
77
|
+
var classes = classNames('euiSelectableListItem', {
|
|
78
|
+
'euiSelectableListItem-isFocused': isFocused
|
|
79
|
+
}, paddingSizeToClassNameMap[paddingSize], className);
|
|
80
|
+
var textClasses = classNames('euiSelectableListItem__text', _defineProperty({}, "euiSelectableListItem__text--".concat(textWrap), textWrap));
|
|
81
|
+
var optionIcon = useMemo(function () {
|
|
82
|
+
if (showIcons) {
|
|
83
|
+
var _resolveIconAndColor = resolveIconAndColor(checked),
|
|
84
|
+
icon = _resolveIconAndColor.icon,
|
|
85
|
+
color = _resolveIconAndColor.color;
|
|
86
|
+
return ___EmotionJSX(EuiIcon, {
|
|
87
|
+
className: "euiSelectableListItem__icon",
|
|
88
|
+
color: color,
|
|
89
|
+
type: icon
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}, [showIcons, checked]);
|
|
93
|
+
var prependNode = useMemo(function () {
|
|
94
|
+
if (prepend) {
|
|
95
|
+
return ___EmotionJSX("span", {
|
|
96
|
+
className: "euiSelectableListItem__prepend"
|
|
97
|
+
}, prepend);
|
|
98
|
+
}
|
|
99
|
+
}, [prepend]);
|
|
100
|
+
var onFocusBadgeNode = useMemo(function () {
|
|
101
|
+
var defaultOnFocusBadgeProps = {
|
|
102
|
+
'aria-hidden': true,
|
|
103
|
+
iconType: 'returnKey',
|
|
104
|
+
iconSide: 'left',
|
|
105
|
+
color: 'hollow'
|
|
106
|
+
};
|
|
107
|
+
if (onFocusBadge === true) {
|
|
108
|
+
return ___EmotionJSX(EuiBadge, _extends({
|
|
109
|
+
className: "euiSelectableListItem__onFocusBadge"
|
|
110
|
+
}, defaultOnFocusBadgeProps));
|
|
111
|
+
} else if (typeof onFocusBadge !== 'boolean' && !!onFocusBadge) {
|
|
112
|
+
var _children = onFocusBadge.children,
|
|
113
|
+
_className = onFocusBadge.className,
|
|
114
|
+
restBadgeProps = _objectWithoutProperties(onFocusBadge, _excluded2);
|
|
115
|
+
return ___EmotionJSX(EuiBadge, _extends({
|
|
116
|
+
className: classNames('euiSelectableListItem__onFocusBadge', _className)
|
|
117
|
+
}, defaultOnFocusBadgeProps, restBadgeProps), _children);
|
|
118
|
+
}
|
|
119
|
+
}, [onFocusBadge]);
|
|
120
|
+
var showOnFocusBadge = !!(isFocused && !disabled && onFocusBadgeNode);
|
|
121
|
+
var appendNode = useMemo(function () {
|
|
122
|
+
if (append || showOnFocusBadge) {
|
|
123
|
+
return ___EmotionJSX("span", {
|
|
124
|
+
className: "euiSelectableListItem__append"
|
|
125
|
+
}, append, " ", showOnFocusBadge ? onFocusBadgeNode : null);
|
|
126
|
+
}
|
|
127
|
+
}, [append, showOnFocusBadge, onFocusBadgeNode]);
|
|
128
|
+
var screenReaderText = useMemo(function () {
|
|
129
|
+
var state;
|
|
130
|
+
var instructions;
|
|
131
|
+
var screenReaderStrings = {
|
|
132
|
+
checked: {
|
|
133
|
+
state: ___EmotionJSX(EuiI18n, {
|
|
134
|
+
token: "euiSelectableListItem.checkedOption",
|
|
135
|
+
default: "Checked option."
|
|
136
|
+
}),
|
|
137
|
+
instructions: ___EmotionJSX(EuiI18n, {
|
|
138
|
+
token: "euiSelectableListItem.checkOptionInstructions",
|
|
139
|
+
default: "To check this option, press Enter."
|
|
140
|
+
})
|
|
141
|
+
},
|
|
142
|
+
unchecked: {
|
|
143
|
+
instructions: ___EmotionJSX(EuiI18n, {
|
|
144
|
+
token: "euiSelectableListItem.uncheckOptionInstructions",
|
|
145
|
+
default: "To uncheck this option, press Enter."
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
excluded: {
|
|
149
|
+
state: ___EmotionJSX(EuiI18n, {
|
|
150
|
+
token: "euiSelectableListItem.excludedOption",
|
|
151
|
+
default: "Excluded option."
|
|
152
|
+
}),
|
|
153
|
+
instructions: ___EmotionJSX(EuiI18n, {
|
|
154
|
+
token: "euiSelectableListItem.excludeOptionInstructions",
|
|
155
|
+
default: "To exclude this option, press Enter."
|
|
156
|
+
})
|
|
157
|
+
},
|
|
158
|
+
mixed: {
|
|
159
|
+
state: ___EmotionJSX(EuiI18n, {
|
|
160
|
+
token: "euiSelectableListItem.mixedOption",
|
|
161
|
+
default: "Mixed (indeterminate) option."
|
|
162
|
+
}),
|
|
163
|
+
instructions: ___EmotionJSX(EuiI18n, {
|
|
164
|
+
token: "euiSelectableListItem.mixedOptionInstructions",
|
|
165
|
+
default: "To check this option for all, press Enter once."
|
|
166
|
+
}),
|
|
167
|
+
uncheckInstructions: ___EmotionJSX(EuiI18n, {
|
|
168
|
+
token: "euiSelectableListItem.mixedOptionUncheckInstructions",
|
|
169
|
+
default: "To uncheck this option for all, press Enter twice."
|
|
170
|
+
}),
|
|
171
|
+
excludeInstructions: ___EmotionJSX(EuiI18n, {
|
|
172
|
+
token: "euiSelectableListItem.mixedOptionExcludeInstructions",
|
|
173
|
+
default: "To exclude this option for all, press Enter twice."
|
|
174
|
+
})
|
|
197
175
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
176
|
+
};
|
|
177
|
+
switch (checked) {
|
|
178
|
+
case 'on':
|
|
179
|
+
state = screenReaderStrings.checked.state;
|
|
180
|
+
instructions = allowExclusions ? screenReaderStrings.excluded.instructions : searchable ? screenReaderStrings.unchecked.instructions : undefined;
|
|
181
|
+
break;
|
|
182
|
+
case 'off':
|
|
183
|
+
state = screenReaderStrings.excluded.state;
|
|
184
|
+
instructions = screenReaderStrings.unchecked.instructions;
|
|
185
|
+
break;
|
|
186
|
+
case 'mixed':
|
|
187
|
+
state = screenReaderStrings.mixed.state;
|
|
188
|
+
instructions = ___EmotionJSX(React.Fragment, null, screenReaderStrings.mixed.instructions, ' ', allowExclusions ? screenReaderStrings.mixed.excludeInstructions : screenReaderStrings.mixed.uncheckInstructions);
|
|
189
|
+
break;
|
|
190
|
+
case undefined:
|
|
191
|
+
default:
|
|
192
|
+
instructions = allowExclusions || searchable ? screenReaderStrings.checked.instructions : undefined;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
return state || instructions ? ___EmotionJSX(EuiScreenReaderOnly, null, ___EmotionJSX("div", null, state || instructions ? '. ' : null, state, state && instructions ? ' ' : null, instructions)) : null;
|
|
196
|
+
}, [checked, searchable, allowExclusions]);
|
|
219
197
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
198
|
+
// aria-checked is intended to be used with role="checkbox" but
|
|
199
|
+
// the MDN documentation lists it as a possibility for role="option".
|
|
200
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked
|
|
201
|
+
// and https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/option_role
|
|
202
|
+
var ariaChecked = useMemo(function () {
|
|
203
|
+
var rolesThatCanBeMixed = ['option', 'checkbox', 'menuitemcheckbox'];
|
|
204
|
+
var rolesThatCanBeChecked = [].concat(rolesThatCanBeMixed, ['radio', 'menuitemradio', 'switch']);
|
|
205
|
+
if (!rolesThatCanBeChecked.includes(role)) return undefined;
|
|
206
|
+
switch (checked) {
|
|
207
|
+
case 'on':
|
|
208
|
+
case 'off':
|
|
209
|
+
return true;
|
|
210
|
+
case 'mixed':
|
|
211
|
+
if (rolesThatCanBeMixed.includes(role)) {
|
|
212
|
+
return 'mixed';
|
|
213
|
+
} else {
|
|
214
|
+
return false;
|
|
225
215
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
216
|
+
default:
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}, [role, checked]);
|
|
220
|
+
var hasToolTip = !!toolTipContent && !disabled;
|
|
221
|
+
var _useState = useState(null),
|
|
222
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
223
|
+
tooltipRef = _useState2[0],
|
|
224
|
+
setTooltipRef = _useState2[1]; // Needs to be state and not a ref to trigger useEffect
|
|
225
|
+
var _useState3 = useState(_ariaDescribedBy),
|
|
226
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
227
|
+
ariaDescribedBy = _useState4[0],
|
|
228
|
+
setAriaDescribedBy = _useState4[1];
|
|
229
|
+
|
|
230
|
+
// Manually trigger the tooltip on keyboard focus
|
|
231
|
+
useEffect(function () {
|
|
232
|
+
if (!tooltipRef) return;
|
|
233
|
+
if (isFocused) {
|
|
234
|
+
tooltipRef.showToolTip();
|
|
235
|
+
} else {
|
|
236
|
+
tooltipRef.hideToolTip();
|
|
237
|
+
}
|
|
238
|
+
}, [isFocused, tooltipRef]);
|
|
239
|
+
|
|
240
|
+
// Manually set the `aria-describedby` id on the <li> wrapper
|
|
241
|
+
useEffect(function () {
|
|
242
|
+
if (tooltipRef) {
|
|
243
|
+
var tooltipId = tooltipRef.state.id;
|
|
244
|
+
setAriaDescribedBy(classNames(tooltipId, _ariaDescribedBy));
|
|
241
245
|
}
|
|
242
|
-
}]);
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
}, [tooltipRef, _ariaDescribedBy]);
|
|
247
|
+
var content = ___EmotionJSX("span", {
|
|
248
|
+
className: "euiSelectableListItem__content"
|
|
249
|
+
}, optionIcon, prependNode, ___EmotionJSX("span", {
|
|
250
|
+
className: textClasses
|
|
251
|
+
}, children, screenReaderText), appendNode);
|
|
252
|
+
return ___EmotionJSX("li", _extends({
|
|
253
|
+
role: role,
|
|
254
|
+
"aria-disabled": disabled,
|
|
255
|
+
"aria-checked": ariaChecked // Whether the item is "checked"
|
|
256
|
+
,
|
|
257
|
+
"aria-selected": !disabled && isFocused // Whether the item has keyboard focus per W3 spec
|
|
258
|
+
,
|
|
259
|
+
className: classes
|
|
260
|
+
}, rest, {
|
|
261
|
+
"aria-describedby": ariaDescribedBy
|
|
262
|
+
}), hasToolTip ? ___EmotionJSX(EuiToolTip, _extends({
|
|
263
|
+
ref: setTooltipRef,
|
|
264
|
+
content: toolTipContent,
|
|
265
|
+
anchorClassName: "euiSelectableListItem__tooltipAnchor",
|
|
266
|
+
position: "left"
|
|
267
|
+
}, toolTipProps), content) : content);
|
|
268
|
+
};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
+
* Side Public License, v 1.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export var OPTION_CHECKED_STATES = ['on', 'off', 'mixed', undefined];
|
|
@@ -16,6 +16,9 @@ import { useEuiMemoizedStyles, cloneElementWithCss } from '../../services';
|
|
|
16
16
|
import { euiTextColorStyles } from './text_color.styles';
|
|
17
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
18
|
export var COLORS = ['default', 'subdued', 'success', 'accent', 'danger', 'warning', 'ghost', 'inherit'];
|
|
19
|
+
export var _isNamedColor = function _isNamedColor(color) {
|
|
20
|
+
return COLORS.includes(color);
|
|
21
|
+
};
|
|
19
22
|
export var EuiTextColor = function EuiTextColor(_ref) {
|
|
20
23
|
var children = _ref.children,
|
|
21
24
|
_ref$color = _ref.color,
|
|
@@ -26,7 +29,7 @@ export var EuiTextColor = function EuiTextColor(_ref) {
|
|
|
26
29
|
cloneElement = _ref$cloneElement === void 0 ? false : _ref$cloneElement,
|
|
27
30
|
style = _ref.style,
|
|
28
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
-
var isNamedColor =
|
|
32
|
+
var isNamedColor = _isNamedColor(color);
|
|
30
33
|
var styles = useEuiMemoizedStyles(euiTextColorStyles);
|
|
31
34
|
var cssStyles = [styles.euiTextColor, isNamedColor ? styles[color] : styles.customColor];
|
|
32
35
|
|
|
@@ -15,6 +15,7 @@ var _button_icon = require("../../../button/button_icon");
|
|
|
15
15
|
var _tool_tip = require("../../../tool_tip");
|
|
16
16
|
var _context = require("../../context");
|
|
17
17
|
var _collapsed_nav_button = require("./collapsed_nav_button.styles");
|
|
18
|
+
var _i18n = require("../../../i18n");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
19
20
|
var _excluded = ["href", "title", "icon", "iconProps", "isSelected", "onClick", "hideToolTip", "linkProps", "titleElement"];
|
|
20
21
|
/*
|
|
@@ -44,6 +45,9 @@ var EuiCollapsedNavButton = function EuiCollapsedNavButton(_ref) {
|
|
|
44
45
|
var buttonClassName = (0, _classnames.default)('euiCollapsedNavButton', linkProps === null || linkProps === void 0 ? void 0 : linkProps.className);
|
|
45
46
|
var tooltipStyles = (0, _services.useEuiMemoizedStyles)(_collapsed_nav_button.euiCollapsedNavItemTooltipStyles);
|
|
46
47
|
var tooltipCssStyles = [tooltipStyles.euiCollapsedNavItemTooltip, tooltipStyles[side], hideToolTip && tooltipStyles.hidden];
|
|
48
|
+
var buttonIconAriaLabel = (0, _i18n.useEuiI18n)('euiCollapsedNavButton.ariaLabelButtonIcon', '{title}, quick navigation menu', {
|
|
49
|
+
title: title
|
|
50
|
+
});
|
|
47
51
|
return (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
48
52
|
content: title,
|
|
49
53
|
css: tooltipCssStyles,
|
|
@@ -56,7 +60,7 @@ var EuiCollapsedNavButton = function EuiCollapsedNavButton(_ref) {
|
|
|
56
60
|
color: "text",
|
|
57
61
|
href: href,
|
|
58
62
|
onClick: onClick,
|
|
59
|
-
"aria-label":
|
|
63
|
+
"aria-label": buttonIconAriaLabel
|
|
60
64
|
}, linkProps, {
|
|
61
65
|
// Exclusive union shenanigans
|
|
62
66
|
className: buttonClassName,
|
|
@@ -17,8 +17,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
18
|
var _moment = _interopRequireDefault(require("moment"));
|
|
19
19
|
var _datemath = _interopRequireDefault(require("@elastic/datemath"));
|
|
20
|
-
var _services = require("../../../../services");
|
|
21
20
|
var _form = require("../../../form");
|
|
21
|
+
var _flex = require("../../../flex");
|
|
22
|
+
var _button = require("../../../button");
|
|
22
23
|
var _code = require("../../../code");
|
|
23
24
|
var _i18n = require("../../../i18n");
|
|
24
25
|
var _date_picker = require("../../date_picker");
|
|
@@ -152,20 +153,29 @@ var EuiAbsoluteTab = /*#__PURE__*/function (_Component) {
|
|
|
152
153
|
locale: locale,
|
|
153
154
|
utcOffset: utcOffset
|
|
154
155
|
}), (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
155
|
-
tokens: ['euiAbsoluteTab.
|
|
156
|
-
defaults: ['
|
|
156
|
+
tokens: ['euiAbsoluteTab.dateFormatButtonLabel', 'euiAbsoluteTab.dateFormatError'],
|
|
157
|
+
defaults: ['Parse date', 'Allowed formats: {dateFormat}, ISO 8601, RFC 2822, or Unix timestamp.'],
|
|
157
158
|
values: {
|
|
158
159
|
dateFormat: (0, _react2.jsx)(_code.EuiCode, null, dateFormat)
|
|
159
160
|
}
|
|
160
161
|
}, function (_ref) {
|
|
161
162
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
162
|
-
|
|
163
|
+
dateFormatButtonLabel = _ref2[0],
|
|
163
164
|
dateFormatError = _ref2[1];
|
|
164
|
-
return (0, _react2.jsx)(
|
|
165
|
+
return (0, _react2.jsx)(_flex.EuiFlexGroup, {
|
|
166
|
+
component: "form",
|
|
167
|
+
onSubmit: function onSubmit(e) {
|
|
168
|
+
e.preventDefault(); // Prevents a page refresh/reload
|
|
169
|
+
_this2.parseUserDateInput(textInputValue);
|
|
170
|
+
},
|
|
171
|
+
className: "euiSuperDatePicker__absoluteDateForm",
|
|
172
|
+
gutterSize: "s",
|
|
173
|
+
responsive: false
|
|
174
|
+
}, (0, _react2.jsx)(_form.EuiFormRow, {
|
|
165
175
|
className: "euiSuperDatePicker__absoluteDateFormRow",
|
|
166
176
|
isInvalid: isTextInvalid,
|
|
167
177
|
error: isTextInvalid ? dateFormatError : undefined,
|
|
168
|
-
helpText: hasUnparsedText
|
|
178
|
+
helpText: hasUnparsedText && !isTextInvalid ? dateFormatError : undefined
|
|
169
179
|
}, (0, _react2.jsx)(_form.EuiFieldText, {
|
|
170
180
|
compressed: true,
|
|
171
181
|
isInvalid: isTextInvalid,
|
|
@@ -174,13 +184,17 @@ var EuiAbsoluteTab = /*#__PURE__*/function (_Component) {
|
|
|
174
184
|
onPaste: function onPaste(event) {
|
|
175
185
|
_this2.parseUserDateInput(event.clipboardData.getData('text'));
|
|
176
186
|
},
|
|
177
|
-
onKeyDown: function onKeyDown(event) {
|
|
178
|
-
if (event.key === _services.keys.ENTER) {
|
|
179
|
-
_this2.parseUserDateInput(textInputValue);
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
187
|
"data-test-subj": "superDatePickerAbsoluteDateInput",
|
|
183
188
|
prepend: (0, _react2.jsx)(_form.EuiFormLabel, null, labelPrefix)
|
|
189
|
+
})), hasUnparsedText && (0, _react2.jsx)(_button.EuiButtonIcon, {
|
|
190
|
+
type: "submit",
|
|
191
|
+
className: "euiSuperDatePicker__absoluteDateFormSubmit",
|
|
192
|
+
size: "s",
|
|
193
|
+
display: "base",
|
|
194
|
+
iconType: "check",
|
|
195
|
+
"aria-label": dateFormatButtonLabel,
|
|
196
|
+
title: dateFormatButtonLabel,
|
|
197
|
+
"data-test-subj": "parseAbsoluteDateFormat"
|
|
184
198
|
}));
|
|
185
199
|
}));
|
|
186
200
|
}
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.euiFormVariables = exports.euiFormControlSize = exports.euiCustomControl = void 0;
|
|
7
|
+
exports.euiFormVariables = exports.euiFormControlText = exports.euiFormControlSize = exports.euiFormControlFocusStyles = exports.euiFormControlDefaultShadow = exports.euiCustomControl = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _global_styling = require("../../global_styling");
|
|
@@ -70,7 +70,9 @@ var euiFormVariables = function euiFormVariables(euiThemeContext) {
|
|
|
70
70
|
xxl: euiTheme.size.xxl
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), customControlColors), iconSizes), controlLayout)
|
|
73
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, sizes), colors), customControlColors), iconSizes), controlLayout), {}, {
|
|
74
|
+
animationTiming: "".concat(euiTheme.animation.fast, " ease-in")
|
|
75
|
+
});
|
|
74
76
|
};
|
|
75
77
|
exports.euiFormVariables = euiFormVariables;
|
|
76
78
|
var euiFormControlSize = function euiFormControlSize(euiThemeContext) {
|
|
@@ -106,6 +108,30 @@ var euiCustomControl = function euiCustomControl(euiThemeContext) {
|
|
|
106
108
|
} else if (type === 'square') {
|
|
107
109
|
borderRadiusStyle = "border-radius: ".concat(form.controlCompressedBorderRadius, ";");
|
|
108
110
|
}
|
|
109
|
-
return "\n ".concat(padddingStyle, "\n ").concat(borderRadiusStyle, "\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(form.customControlBorderColor, ";\n background: ").concat(euiTheme.colors.emptyShade, " no-repeat center;\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition: background-color ").concat(
|
|
111
|
+
return "\n ".concat(padddingStyle, "\n ").concat(borderRadiusStyle, "\n border: ").concat(euiTheme.border.width.thin, " solid ").concat(form.customControlBorderColor, ";\n background: ").concat(euiTheme.colors.emptyShade, " no-repeat center;\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition: background-color ").concat(form.animationTiming, ",\n border-color ").concat(form.animationTiming, ";\n }\n ");
|
|
110
112
|
};
|
|
111
|
-
exports.euiCustomControl = euiCustomControl;
|
|
113
|
+
exports.euiCustomControl = euiCustomControl;
|
|
114
|
+
var euiFormControlText = function euiFormControlText(euiThemeContext) {
|
|
115
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
116
|
+
var _euiFontSize = (0, _global_styling.euiFontSize)(euiThemeContext, 's'),
|
|
117
|
+
fontSize = _euiFontSize.fontSize;
|
|
118
|
+
var _euiFormVariables = euiFormVariables(euiThemeContext),
|
|
119
|
+
controlPlaceholderText = _euiFormVariables.controlPlaceholderText;
|
|
120
|
+
return "\n font-family: ".concat(euiTheme.font.family, ";\n font-size: ").concat(fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n\n ").concat(euiPlaceholderPerBrowser("color: ".concat(controlPlaceholderText)), "\n ");
|
|
121
|
+
};
|
|
122
|
+
exports.euiFormControlText = euiFormControlText;
|
|
123
|
+
var euiFormControlDefaultShadow = function euiFormControlDefaultShadow(euiThemeContext) {
|
|
124
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
125
|
+
var form = euiFormVariables(euiThemeContext);
|
|
126
|
+
return "\n box-shadow: inset 0 0 0 1px ".concat(form.borderColor, ";\n background-color: ").concat(form.backgroundColor, ";\n\n background-repeat: no-repeat;\n background-size: 0% 100%;\n background-image: linear-gradient(to top,\n var(--euiFormStateColor),\n var(--euiFormStateColor) ").concat(euiTheme.border.width.thick, ",\n transparent ").concat(euiTheme.border.width.thick, ",\n transparent 100%\n );\n\n ").concat(_global_styling.euiCanAnimate, " {\n transition:\n box-shadow ").concat(form.animationTiming, ",\n background-image ").concat(form.animationTiming, ",\n background-size ").concat(form.animationTiming, ",\n background-color ").concat(form.animationTiming, ";\n }\n ");
|
|
127
|
+
};
|
|
128
|
+
exports.euiFormControlDefaultShadow = euiFormControlDefaultShadow;
|
|
129
|
+
var euiFormControlFocusStyles = function euiFormControlFocusStyles(_ref) {
|
|
130
|
+
var euiTheme = _ref.euiTheme,
|
|
131
|
+
colorMode = _ref.colorMode;
|
|
132
|
+
return "\n --euiFormStateColor: ".concat(euiTheme.colors.primary, ";\n background-color: ").concat(colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.emptyShade, 0.4) : euiTheme.colors.emptyShade, ";\n background-size: 100% 100%;\n outline: none; /* Remove all outlines and rely on our own bottom border gradient */\n");
|
|
133
|
+
};
|
|
134
|
+
exports.euiFormControlFocusStyles = euiFormControlFocusStyles;
|
|
135
|
+
var euiPlaceholderPerBrowser = function euiPlaceholderPerBrowser(content) {
|
|
136
|
+
return "\n &::-webkit-input-placeholder { ".concat(content, "; opacity: 1; }\n &::-moz-placeholder { ").concat(content, "; opacity: 1; }\n &:-ms-input-placeholder { ").concat(content, "; opacity: 1; }\n &:-moz-placeholder { ").concat(content, "; opacity: 1; }\n &::placeholder { ").concat(content, "; opacity: 1; }\n");
|
|
137
|
+
};
|