@elastic/eui 76.3.0 → 76.4.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.
@@ -19,6 +19,8 @@ import React from 'react';
19
19
  import PropTypes from "prop-types";
20
20
  import classNames from 'classnames';
21
21
  import { EuiFormLabel } from '../form/form_label/form_label';
22
+ import { useEuiTheme } from '../../services';
23
+ import { euiKeyPadMenuStyles } from './key_pad_menu.styles';
22
24
  import { jsx as ___EmotionJSX } from "@emotion/react";
23
25
  export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
24
26
  var children = _ref.children,
@@ -27,13 +29,20 @@ export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
27
29
  rest = _objectWithoutProperties(_ref, _excluded);
28
30
 
29
31
  var classes = classNames('euiKeyPadMenu', className);
30
- var legend = _typeof(checkable) === 'object' && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({}, checkable.legendProps, {
32
+ var theme = useEuiTheme();
33
+ var styles = euiKeyPadMenuStyles(theme);
34
+ var cssStyles = [styles.euiKeyPadMenu];
35
+ var legend = _typeof(checkable) === 'object' && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({
36
+ css: styles.euiKeyPadMenu__legend
37
+ }, checkable.legendProps, {
31
38
  type: "legend"
32
39
  }), checkable.legend) : undefined;
33
40
  return checkable ? ___EmotionJSX("fieldset", _extends({
41
+ css: cssStyles,
34
42
  className: classes,
35
43
  "aria-label": _typeof(checkable) === 'object' ? checkable.ariaLegend : undefined
36
44
  }, rest), legend, children) : ___EmotionJSX("ul", _extends({
45
+ css: cssStyles,
37
46
  className: classes
38
47
  }, rest), React.Children.map(children, function (child) {
39
48
  return ___EmotionJSX("li", null, child);
@@ -0,0 +1,33 @@
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
+ import { css } from '@emotion/react';
9
+ import { logicalCSS, mathWithUnits } from '../../global_styling';
10
+ export var euiKeyPadMenuVariables = function euiKeyPadMenuVariables(_ref) {
11
+ var euiTheme = _ref.euiTheme;
12
+ return {
13
+ euiKeyPadMenuSize: mathWithUnits(euiTheme.size.base, function (x) {
14
+ return x * 6;
15
+ }),
16
+ euiKeyPadMenuMarginSize: euiTheme.size.xs
17
+ };
18
+ };
19
+ export var euiKeyPadMenuStyles = function euiKeyPadMenuStyles(euiThemeContext) {
20
+ var euiTheme = euiThemeContext.euiTheme;
21
+
22
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
23
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize,
24
+ euiKeyPadMenuMarginSize = _euiKeyPadMenuVariabl.euiKeyPadMenuMarginSize;
25
+
26
+ return {
27
+ euiKeyPadMenu: /*#__PURE__*/css("display:flex;flex-direction:row;flex-wrap:wrap;", logicalCSS('width', mathWithUnits([euiKeyPadMenuSize, euiKeyPadMenuMarginSize], function (x, y) {
28
+ return x * 3 + y * 3;
29
+ })), " ", logicalCSS('max-width', '100%'), " gap:", euiKeyPadMenuMarginSize, ";;label:euiKeyPadMenu;"),
30
+ // Checkable = Fieldset and Legend
31
+ euiKeyPadMenu__legend: /*#__PURE__*/css(logicalCSS('margin-bottom', euiTheme.size.s), ";;label:euiKeyPadMenu__legend;")
32
+ };
33
+ };
package/eui.d.ts CHANGED
@@ -15614,6 +15614,18 @@ declare module '@elastic/eui/src/components/image' {
15614
15614
  export type { EuiImageProps } from '@elastic/eui/src/components/image/image_types';
15615
15615
  export { EuiImage } from '@elastic/eui/src/components/image/image';
15616
15616
 
15617
+ }
15618
+ declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu.styles' {
15619
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15620
+ export const euiKeyPadMenuVariables: ({ euiTheme }: UseEuiTheme) => {
15621
+ euiKeyPadMenuSize: string;
15622
+ euiKeyPadMenuMarginSize: string;
15623
+ };
15624
+ export const euiKeyPadMenuStyles: (euiThemeContext: UseEuiTheme) => {
15625
+ euiKeyPadMenu: import("@emotion/utils").SerializedStyles;
15626
+ euiKeyPadMenu__legend: import("@emotion/utils").SerializedStyles;
15627
+ };
15628
+
15617
15629
  }
15618
15630
  declare module '@elastic/eui/src/components/key_pad_menu/key_pad_menu' {
15619
15631
  import { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
@@ -13,6 +13,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
14
  var _form_label = require("../form/form_label/form_label");
15
15
 
16
+ var _services = require("../../services");
17
+
18
+ var _key_pad_menu = require("./key_pad_menu.styles");
19
+
16
20
  var _react2 = require("@emotion/react");
17
21
 
18
22
  var _excluded = ["children", "className", "checkable"];
@@ -34,13 +38,20 @@ var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
34
38
  rest = _objectWithoutProperties(_ref, _excluded);
35
39
 
36
40
  var classes = (0, _classnames.default)('euiKeyPadMenu', className);
37
- var legend = _typeof(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, _extends({}, checkable.legendProps, {
41
+ var theme = (0, _services.useEuiTheme)();
42
+ var styles = (0, _key_pad_menu.euiKeyPadMenuStyles)(theme);
43
+ var cssStyles = [styles.euiKeyPadMenu];
44
+ var legend = _typeof(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, _extends({
45
+ css: styles.euiKeyPadMenu__legend
46
+ }, checkable.legendProps, {
38
47
  type: "legend"
39
48
  }), checkable.legend) : undefined;
40
49
  return checkable ? (0, _react2.jsx)("fieldset", _extends({
50
+ css: cssStyles,
41
51
  className: classes,
42
52
  "aria-label": _typeof(checkable) === 'object' ? checkable.ariaLegend : undefined
43
53
  }, rest), legend, children) : (0, _react2.jsx)("ul", _extends({
54
+ css: cssStyles,
44
55
  className: classes
45
56
  }, rest), _react.default.Children.map(children, function (child) {
46
57
  return (0, _react2.jsx)("li", null, child);
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiKeyPadMenuVariables = exports.euiKeyPadMenuStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _global_styling = require("../../global_styling");
11
+
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+ var euiKeyPadMenuVariables = function euiKeyPadMenuVariables(_ref) {
20
+ var euiTheme = _ref.euiTheme;
21
+ return {
22
+ euiKeyPadMenuSize: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
23
+ return x * 6;
24
+ }),
25
+ euiKeyPadMenuMarginSize: euiTheme.size.xs
26
+ };
27
+ };
28
+
29
+ exports.euiKeyPadMenuVariables = euiKeyPadMenuVariables;
30
+
31
+ var euiKeyPadMenuStyles = function euiKeyPadMenuStyles(euiThemeContext) {
32
+ var euiTheme = euiThemeContext.euiTheme;
33
+
34
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
35
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize,
36
+ euiKeyPadMenuMarginSize = _euiKeyPadMenuVariabl.euiKeyPadMenuMarginSize;
37
+
38
+ return {
39
+ euiKeyPadMenu: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:row;flex-wrap:wrap;", (0, _global_styling.logicalCSS)('width', (0, _global_styling.mathWithUnits)([euiKeyPadMenuSize, euiKeyPadMenuMarginSize], function (x, y) {
40
+ return x * 3 + y * 3;
41
+ })), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " gap:", euiKeyPadMenuMarginSize, ";;label:euiKeyPadMenu;"),
42
+ // Checkable = Fieldset and Legend
43
+ euiKeyPadMenu__legend: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:euiKeyPadMenu__legend;")
44
+ };
45
+ };
46
+
47
+ exports.euiKeyPadMenuStyles = euiKeyPadMenuStyles;
@@ -13,6 +13,8 @@ var _excluded = ["children", "className", "checkable"];
13
13
  import React from 'react';
14
14
  import classNames from 'classnames';
15
15
  import { EuiFormLabel } from '../form/form_label/form_label';
16
+ import { useEuiTheme } from '../../services';
17
+ import { euiKeyPadMenuStyles } from './key_pad_menu.styles';
16
18
  import { jsx as ___EmotionJSX } from "@emotion/react";
17
19
  export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
18
20
  var children = _ref.children,
@@ -21,13 +23,20 @@ export var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
21
23
  rest = _objectWithoutProperties(_ref, _excluded);
22
24
 
23
25
  var classes = classNames('euiKeyPadMenu', className);
24
- var legend = _typeof(checkable) === 'object' && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({}, checkable.legendProps, {
26
+ var theme = useEuiTheme();
27
+ var styles = euiKeyPadMenuStyles(theme);
28
+ var cssStyles = [styles.euiKeyPadMenu];
29
+ var legend = _typeof(checkable) === 'object' && checkable.legend ? ___EmotionJSX(EuiFormLabel, _extends({
30
+ css: styles.euiKeyPadMenu__legend
31
+ }, checkable.legendProps, {
25
32
  type: "legend"
26
33
  }), checkable.legend) : undefined;
27
34
  return checkable ? ___EmotionJSX("fieldset", _extends({
35
+ css: cssStyles,
28
36
  className: classes,
29
37
  "aria-label": _typeof(checkable) === 'object' ? checkable.ariaLegend : undefined
30
38
  }, rest), legend, children) : ___EmotionJSX("ul", _extends({
39
+ css: cssStyles,
31
40
  className: classes
32
41
  }, rest), React.Children.map(children, function (child) {
33
42
  return ___EmotionJSX("li", null, child);
@@ -0,0 +1,33 @@
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
+ import { css } from '@emotion/react';
9
+ import { logicalCSS, mathWithUnits } from '../../global_styling';
10
+ export var euiKeyPadMenuVariables = function euiKeyPadMenuVariables(_ref) {
11
+ var euiTheme = _ref.euiTheme;
12
+ return {
13
+ euiKeyPadMenuSize: mathWithUnits(euiTheme.size.base, function (x) {
14
+ return x * 6;
15
+ }),
16
+ euiKeyPadMenuMarginSize: euiTheme.size.xs
17
+ };
18
+ };
19
+ export var euiKeyPadMenuStyles = function euiKeyPadMenuStyles(euiThemeContext) {
20
+ var euiTheme = euiThemeContext.euiTheme;
21
+
22
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
23
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize,
24
+ euiKeyPadMenuMarginSize = _euiKeyPadMenuVariabl.euiKeyPadMenuMarginSize;
25
+
26
+ return {
27
+ euiKeyPadMenu: /*#__PURE__*/css("display:flex;flex-direction:row;flex-wrap:wrap;", logicalCSS('width', mathWithUnits([euiKeyPadMenuSize, euiKeyPadMenuMarginSize], function (x, y) {
28
+ return x * 3 + y * 3;
29
+ })), " ", logicalCSS('max-width', '100%'), " gap:", euiKeyPadMenuMarginSize, ";;label:euiKeyPadMenu;"),
30
+ // Checkable = Fieldset and Legend
31
+ euiKeyPadMenu__legend: /*#__PURE__*/css(logicalCSS('margin-bottom', euiTheme.size.s), ";;label:euiKeyPadMenu__legend;")
32
+ };
33
+ };
@@ -19,6 +19,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
19
19
 
20
20
  var _form_label = require("../form/form_label/form_label");
21
21
 
22
+ var _services = require("../../services");
23
+
24
+ var _key_pad_menu = require("./key_pad_menu.styles");
25
+
22
26
  var _react2 = require("@emotion/react");
23
27
 
24
28
  var _excluded = ["children", "className", "checkable"];
@@ -29,13 +33,20 @@ var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
29
33
  checkable = _ref.checkable,
30
34
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
35
  var classes = (0, _classnames.default)('euiKeyPadMenu', className);
32
- var legend = (0, _typeof2.default)(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({}, checkable.legendProps, {
36
+ var theme = (0, _services.useEuiTheme)();
37
+ var styles = (0, _key_pad_menu.euiKeyPadMenuStyles)(theme);
38
+ var cssStyles = [styles.euiKeyPadMenu];
39
+ var legend = (0, _typeof2.default)(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({
40
+ css: styles.euiKeyPadMenu__legend
41
+ }, checkable.legendProps, {
33
42
  type: "legend"
34
43
  }), checkable.legend) : undefined;
35
44
  return checkable ? (0, _react2.jsx)("fieldset", (0, _extends2.default)({
45
+ css: cssStyles,
36
46
  className: classes,
37
47
  "aria-label": (0, _typeof2.default)(checkable) === 'object' ? checkable.ariaLegend : undefined
38
48
  }, rest), legend, children) : (0, _react2.jsx)("ul", (0, _extends2.default)({
49
+ css: cssStyles,
39
50
  className: classes
40
51
  }, rest), _react.default.Children.map(children, function (child) {
41
52
  return (0, _react2.jsx)("li", null, child);
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiKeyPadMenuVariables = exports.euiKeyPadMenuStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _global_styling = require("../../global_styling");
11
+
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+ var euiKeyPadMenuVariables = function euiKeyPadMenuVariables(_ref) {
20
+ var euiTheme = _ref.euiTheme;
21
+ return {
22
+ euiKeyPadMenuSize: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
23
+ return x * 6;
24
+ }),
25
+ euiKeyPadMenuMarginSize: euiTheme.size.xs
26
+ };
27
+ };
28
+
29
+ exports.euiKeyPadMenuVariables = euiKeyPadMenuVariables;
30
+
31
+ var euiKeyPadMenuStyles = function euiKeyPadMenuStyles(euiThemeContext) {
32
+ var euiTheme = euiThemeContext.euiTheme;
33
+
34
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
35
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize,
36
+ euiKeyPadMenuMarginSize = _euiKeyPadMenuVariabl.euiKeyPadMenuMarginSize;
37
+
38
+ return {
39
+ euiKeyPadMenu: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:row;flex-wrap:wrap;", (0, _global_styling.logicalCSS)('width', (0, _global_styling.mathWithUnits)([euiKeyPadMenuSize, euiKeyPadMenuMarginSize], function (x, y) {
40
+ return x * 3 + y * 3;
41
+ })), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " gap:", euiKeyPadMenuMarginSize, ";;label:euiKeyPadMenu;"),
42
+ // Checkable = Fieldset and Legend
43
+ euiKeyPadMenu__legend: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:euiKeyPadMenu__legend;")
44
+ };
45
+ };
46
+
47
+ exports.euiKeyPadMenuStyles = euiKeyPadMenuStyles;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "76.3.0",
4
+ "version": "76.4.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -2,5 +2,4 @@
2
2
 
3
3
  @import 'variables';
4
4
 
5
- @import 'key_pad_menu';
6
5
  @import 'key_pad_menu_item';
@@ -21,6 +21,10 @@ var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
22
  var _form_label = require("../form/form_label/form_label");
23
23
 
24
+ var _services = require("../../services");
25
+
26
+ var _key_pad_menu = require("./key_pad_menu.styles");
27
+
24
28
  var _react2 = require("@emotion/react");
25
29
 
26
30
  var _excluded = ["children", "className", "checkable"];
@@ -31,13 +35,20 @@ var EuiKeyPadMenu = function EuiKeyPadMenu(_ref) {
31
35
  checkable = _ref.checkable,
32
36
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
33
37
  var classes = (0, _classnames.default)('euiKeyPadMenu', className);
34
- var legend = (0, _typeof2.default)(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({}, checkable.legendProps, {
38
+ var theme = (0, _services.useEuiTheme)();
39
+ var styles = (0, _key_pad_menu.euiKeyPadMenuStyles)(theme);
40
+ var cssStyles = [styles.euiKeyPadMenu];
41
+ var legend = (0, _typeof2.default)(checkable) === 'object' && checkable.legend ? (0, _react2.jsx)(_form_label.EuiFormLabel, (0, _extends2.default)({
42
+ css: styles.euiKeyPadMenu__legend
43
+ }, checkable.legendProps, {
35
44
  type: "legend"
36
45
  }), checkable.legend) : undefined;
37
46
  return checkable ? (0, _react2.jsx)("fieldset", (0, _extends2.default)({
47
+ css: cssStyles,
38
48
  className: classes,
39
49
  "aria-label": (0, _typeof2.default)(checkable) === 'object' ? checkable.ariaLegend : undefined
40
50
  }, rest), legend, children) : (0, _react2.jsx)("ul", (0, _extends2.default)({
51
+ css: cssStyles,
41
52
  className: classes
42
53
  }, rest), _react.default.Children.map(children, function (child) {
43
54
  return (0, _react2.jsx)("li", null, child);
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.euiKeyPadMenuVariables = exports.euiKeyPadMenuStyles = void 0;
7
+
8
+ var _react = require("@emotion/react");
9
+
10
+ var _global_styling = require("../../global_styling");
11
+
12
+ /*
13
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
14
+ * or more contributor license agreements. Licensed under the Elastic License
15
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
16
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
17
+ * Side Public License, v 1.
18
+ */
19
+ var euiKeyPadMenuVariables = function euiKeyPadMenuVariables(_ref) {
20
+ var euiTheme = _ref.euiTheme;
21
+ return {
22
+ euiKeyPadMenuSize: (0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
23
+ return x * 6;
24
+ }),
25
+ euiKeyPadMenuMarginSize: euiTheme.size.xs
26
+ };
27
+ };
28
+
29
+ exports.euiKeyPadMenuVariables = euiKeyPadMenuVariables;
30
+
31
+ var euiKeyPadMenuStyles = function euiKeyPadMenuStyles(euiThemeContext) {
32
+ var euiTheme = euiThemeContext.euiTheme;
33
+
34
+ var _euiKeyPadMenuVariabl = euiKeyPadMenuVariables(euiThemeContext),
35
+ euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize,
36
+ euiKeyPadMenuMarginSize = _euiKeyPadMenuVariabl.euiKeyPadMenuMarginSize;
37
+
38
+ return {
39
+ euiKeyPadMenu: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:row;flex-wrap:wrap;", (0, _global_styling.logicalCSS)('width', (0, _global_styling.mathWithUnits)([euiKeyPadMenuSize, euiKeyPadMenuMarginSize], function (x, y) {
40
+ return x * 3 + y * 3;
41
+ })), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " gap:", euiKeyPadMenuMarginSize, ";;label:euiKeyPadMenu;"),
42
+ // Checkable = Fieldset and Legend
43
+ euiKeyPadMenu__legend: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:euiKeyPadMenu__legend;")
44
+ };
45
+ };
46
+
47
+ exports.euiKeyPadMenuStyles = euiKeyPadMenuStyles;
@@ -1,22 +0,0 @@
1
- /**
2
- * 1. Default to grid of 3
3
- */
4
- .euiKeyPadMenu {
5
- display: flex;
6
- flex-direction: row;
7
- flex-wrap: wrap;
8
- width: ($euiKeyPadMenuSize * 3) + ($euiKeyPadMenuMarginSize * 3);
9
- max-width: 100%;
10
- // Using negative margins on the whole menu negates the ones on the (last) items no matter how many exist per row
11
- margin-bottom: -$euiKeyPadMenuMarginSize;
12
- margin-right: -$euiKeyPadMenuMarginSize;
13
-
14
- legend {
15
- margin-bottom: $euiSizeS;
16
- }
17
-
18
- > *:not(legend) {
19
- margin-bottom: $euiKeyPadMenuMarginSize;
20
- margin-right: $euiKeyPadMenuMarginSize;
21
- }
22
- }