@councilbox/councilbox-ui 2.0.53 → 2.0.54
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/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +18 -38
- package/dist/HOCs/useMenuNavigation.js +110 -0
- package/dist/HOCs/useOverlay.js +87 -0
- package/dist/HOCs/usePopoverPosition.js +228 -0
- package/dist/HOCs/useRipple.js +17 -35
- package/dist/HOCs/useWindowSize.js +24 -42
- package/dist/build-index.js +49 -99
- package/dist/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +42 -0
- package/dist/components/3.Guide.stories.mdx +1 -1
- package/dist/components/Accordion/Accordion.css +7 -0
- package/dist/components/Accordion/Accordion.js +97 -102
- package/dist/components/Accordion/Accordion.stories.js +10 -12
- package/dist/components/Accordion/AccordionOld.js +32 -56
- package/dist/components/Accordion/DesignAccordion.stories.js +10 -21
- package/dist/components/Alert/Alert.js +55 -55
- package/dist/components/Alert/Alert.stories.js +10 -11
- package/dist/components/Avatar/Avatar.js +82 -74
- package/dist/components/Avatar/Avatar.stories.js +19 -23
- package/dist/components/Avatar/AvatarOld.js +46 -60
- package/dist/components/Avatar/DesignAvatar.stories.js +18 -26
- package/dist/components/Avatar/DesignAvatarText.stories.js +31 -40
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -14
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +6 -13
- package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +34 -45
- package/dist/components/Block/Block.css +3 -3
- package/dist/components/Block/Block.js +31 -45
- package/dist/components/Block/Block.stories.js +5 -12
- package/dist/components/Block/DesignBlock.stories.js +7 -13
- package/dist/components/Button/Button.js +44 -66
- package/dist/components/Button/Button.stories.js +8 -14
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.css +6 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +96 -118
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +14 -15
- package/dist/components/ButtonBasic/ButtonBasicOld.js +57 -77
- package/dist/components/Checkbox/Checkbox.css +6 -0
- package/dist/components/Checkbox/Checkbox.js +81 -100
- package/dist/components/Checkbox/Checkbox.stories.js +10 -11
- package/dist/components/Checkbox/CheckboxOld.js +19 -35
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +80 -76
- package/dist/components/DragDrop/DragDrop.stories.js +9 -16
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +35 -53
- package/dist/components/DrawerPanel/DrawerPanel.js +157 -146
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +10 -12
- package/dist/components/DrawerPanel/DrawerPanelOld.js +76 -98
- package/dist/components/DropDown/DesignDropDown.stories.js +79 -97
- package/dist/components/DropDown/DropDown.js +168 -342
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- package/dist/components/DropDown/DropDownOld.js +57 -89
- package/dist/components/DropDown/PopoverPlayground.js +68 -98
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +26 -36
- package/dist/components/EnhancedTable/EnhancedMyTable.js +16 -19
- package/dist/components/EnhancedTable/EnhancedTable.js +77 -136
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +5 -12
- package/dist/components/EnhancedTable/EnhancedTableBody.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableCell.js +25 -34
- package/dist/components/EnhancedTable/EnhancedTableContainer.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableHead.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableRow.js +15 -18
- package/dist/components/EnhancedTable/EnhancedTableSortLabel.js +15 -18
- package/dist/components/FabButton/DesignFabButton.stories.js +9 -16
- package/dist/components/FabButton/FabButton.js +51 -54
- package/dist/components/FabButton/FabButton.stories.js +10 -12
- package/dist/components/Grid/DesignGrid.stories.js +7 -14
- package/dist/components/Grid/Grid.js +38 -46
- package/dist/components/Grid/Grid.stories.js +6 -13
- package/dist/components/Grid/GridItem.js +37 -39
- package/dist/components/Grid/GridItemOld.js +13 -18
- package/dist/components/Grid/GridOld.js +14 -21
- package/dist/components/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +201 -242
- package/dist/components/Header/Header.stories.js +9 -21
- package/dist/components/Header/header.css +10 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +31 -36
- package/dist/components/IconButton/IconButton.css +6 -1
- package/dist/components/IconButton/IconButton.js +132 -138
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButton/IconButtonOld.js +41 -57
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +11 -25
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +44 -62
- package/dist/components/IconFont/IconFont.js +27 -48
- package/dist/components/IconFont/IconFont.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +184 -260
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +43 -62
- package/dist/components/InputPassword/InputPassword.css +0 -6
- package/dist/components/InputPassword/InputPassword.js +58 -73
- package/dist/components/InputPassword/InputPassword.stories.js +5 -11
- package/dist/components/InputText/InputText.css +86 -78
- package/dist/components/InputText/InputText.js +207 -211
- package/dist/components/InputText/InputText.stories.js +11 -11
- package/dist/components/InputText/InputTextOld.js +48 -74
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +38 -51
- package/dist/components/InputTextArea/InputTextArea.js +84 -93
- package/dist/components/InputTextArea/InputTextArea.stories.js +5 -12
- package/dist/components/LoadingSection/LoadingSection.js +44 -51
- package/dist/components/LoadingSection/LoadingSection.stories.js +5 -11
- package/dist/components/MenuItem/DesignMenuItem.stories.js +20 -34
- package/dist/components/MenuItem/MenuItem.css +7 -2
- package/dist/components/MenuItem/MenuItem.js +100 -113
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuItem/MenuItemOld.js +40 -56
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +120 -157
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +73 -77
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +5 -12
- package/dist/components/Modal/DesignModal.stories.js +15 -30
- package/dist/components/Modal/Modal.css +35 -15
- package/dist/components/Modal/Modal.js +154 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- package/dist/components/Modal/ModalOld.js +73 -90
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +4 -10
- package/dist/components/PaginationFooter/PaginationFooter.css +10 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +99 -91
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +5 -12
- package/dist/components/RadioButton/Radio.css +19 -18
- package/dist/components/RadioButton/Radio.js +65 -83
- package/dist/components/RadioButton/Radio.stories.js +27 -36
- package/dist/components/RadioButton/RadioOld.js +23 -39
- package/dist/components/Ripple/DesignRipple.js +25 -41
- package/dist/components/Ripple/Ripple.stories.js +5 -11
- package/dist/components/Scrollbar/DesignScrollbar.js +5 -10
- package/dist/components/Scrollbar/Scrollbar.js +37 -56
- package/dist/components/Scrollbar/Scrollbar.stories.js +5 -12
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +101 -155
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- package/dist/components/SelectInput/SelectInputOld.js +52 -81
- package/dist/components/Slider/DesignSlider.js +8 -14
- package/dist/components/Slider/Slider.css +57 -37
- package/dist/components/Slider/Slider.js +85 -84
- package/dist/components/Slider/Slider.stories.js +5 -12
- package/dist/components/Spacing/Spacing.js +38 -45
- package/dist/components/Spacing/Spacing.stories.js +5 -11
- package/dist/components/Stars/DesignStars.js +17 -30
- package/dist/components/Stars/Stars.css +55 -104
- package/dist/components/Stars/Stars.js +89 -73
- package/dist/components/Stars/Stars.stories.js +5 -12
- package/dist/components/Stepper/DesignStepper.stories.js +16 -30
- package/dist/components/Stepper/Stepper.css +46 -10
- package/dist/components/Stepper/Stepper.js +118 -134
- package/dist/components/Stepper/Stepper.stories.js +5 -12
- package/dist/components/Table/DesignTable.stories.js +200 -211
- package/dist/components/Table/Table.css +33 -2
- package/dist/components/Table/Table.js +30 -38
- package/dist/components/Table/Table.stories.js +5 -12
- package/dist/components/Table/TableBody.js +22 -34
- package/dist/components/Table/TableCell.js +71 -61
- package/dist/components/Table/TableContainer.js +22 -34
- package/dist/components/Table/TableHead.js +22 -34
- package/dist/components/Table/TableOld.js +52 -84
- package/dist/components/Table/TableRow.js +33 -37
- package/dist/components/Table/TableSortLabel.js +42 -52
- package/dist/components/Tabs/DesignTabs.js +14 -28
- package/dist/components/Tabs/Tabs.css +30 -11
- package/dist/components/Tabs/Tabs.js +151 -137
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- package/dist/components/Tabs/TabsOld.js +28 -42
- package/dist/components/Tag/DesignTags.stories.js +24 -39
- package/dist/components/Tag/Tag.css +61 -42
- package/dist/components/Tag/Tag.js +93 -91
- package/dist/components/Tag/Tag.stories.js +5 -12
- package/dist/components/TextInput/TextInput.js +38 -54
- package/dist/components/TextInput/TextInput.stories.js +5 -11
- package/dist/components/ThemeProvider/Colors.js +2 -2
- package/dist/components/ThemeProvider/CouncilboxThemeContext.js +7 -10
- package/dist/components/ThemeProvider/ThemeProvider.js +34 -52
- package/dist/components/Timeline/DesignTimeline.stories.js +4 -10
- package/dist/components/Timeline/Timeline.js +66 -46
- package/dist/components/Timeline/Timeline.stories.js +5 -12
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +115 -98
- package/dist/components/Toggle/Toggle.stories.js +10 -11
- package/dist/components/Tooltip/DesignTooltip.stories.js +10 -16
- package/dist/components/Tooltip/Tooltip.css +17 -1
- package/dist/components/Tooltip/Tooltip.js +190 -366
- package/dist/components/Tooltip/Tooltip.stories.js +5 -12
- package/dist/components/Typography/Typography.css +57 -6
- package/dist/components/Typography/Typography.js +44 -97
- package/dist/components/Typography/Typography.stories.js +5 -11
- package/dist/components/Typography/TypographyOld.js +29 -42
- package/dist/index.js +2 -6
- package/dist/reportWebVitals.js +8 -14
- package/dist/storybook.test.js +2 -4
- package/dist/styles/colorConsts.css +4 -4
- package/dist/styles/main.css +16 -0
- package/dist/styles/stylesheet.js +10 -22
- package/dist/testing/TestAutocomplete.js +74 -97
- package/dist/testing/TestComponents.js +5 -10
- package/dist/testing/TestDropdown.js +33 -41
- package/dist/utils/autoDetectScroll.js +12 -35
- package/dist/utils/index.js +37 -63
- package/dist/utils/useFallbackId.js +19 -0
- package/package.json +5 -2
|
@@ -1,102 +1,75 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
13
|
-
|
|
14
11
|
require("../../styles/main.css");
|
|
15
|
-
|
|
16
12
|
require("./MenuItem.css");
|
|
17
|
-
|
|
18
13
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
19
|
-
|
|
20
14
|
var _DropDown = _interopRequireDefault(require("../DropDown/DropDown"));
|
|
21
|
-
|
|
22
15
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
23
|
-
|
|
24
16
|
var _useRipple3 = _interopRequireDefault(require("../../HOCs/useRipple"));
|
|
25
|
-
|
|
26
17
|
var _excluded = ["id", "children", "icon", "sx", "badge", "menuItems", "setOpen", "onClick", "endIcon", "className", "style", "active", "fullWidth", "value", "disabled", "placementTooltip"];
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
-
|
|
38
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
39
|
-
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
24
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
40
26
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41
|
-
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
50
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
|
|
52
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
|
-
|
|
27
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
28
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
29
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
30
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
31
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
32
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
54
33
|
var MenuItem = function MenuItem(_ref) {
|
|
55
34
|
var id = _ref.id,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
var
|
|
85
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
86
|
-
isEllipsisActive = _React$useState2[0],
|
|
87
|
-
setIsEllipsisActive = _React$useState2[1];
|
|
88
|
-
|
|
35
|
+
children = _ref.children,
|
|
36
|
+
icon = _ref.icon,
|
|
37
|
+
sx = _ref.sx,
|
|
38
|
+
badge = _ref.badge,
|
|
39
|
+
menuItems = _ref.menuItems,
|
|
40
|
+
setOpen = _ref.setOpen,
|
|
41
|
+
onClick = _ref.onClick,
|
|
42
|
+
endIcon = _ref.endIcon,
|
|
43
|
+
className = _ref.className,
|
|
44
|
+
style = _ref.style,
|
|
45
|
+
active = _ref.active,
|
|
46
|
+
fullWidth = _ref.fullWidth,
|
|
47
|
+
value = _ref.value,
|
|
48
|
+
disabled = _ref.disabled,
|
|
49
|
+
placementTooltip = _ref.placementTooltip,
|
|
50
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
51
|
+
var _useDynamicStyles = (0, _useDynamicStyles2["default"])(sx),
|
|
52
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
53
|
+
prefixClass = _useDynamicStyles.prefixClass;
|
|
54
|
+
var _useRipple = (0, _useRipple3["default"])(),
|
|
55
|
+
_useRipple2 = _slicedToArray(_useRipple, 2),
|
|
56
|
+
addRipple = _useRipple2[0],
|
|
57
|
+
ripples = _useRipple2[1];
|
|
58
|
+
var typographyRef = _react["default"].useRef(null);
|
|
59
|
+
var _React$useState = _react["default"].useState(false),
|
|
60
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
61
|
+
isEllipsisActive = _React$useState2[0],
|
|
62
|
+
setIsEllipsisActive = _React$useState2[1];
|
|
63
|
+
var isManagedByParentNavigation = props.role === 'option';
|
|
89
64
|
var handleClick = function handleClick(e) {
|
|
65
|
+
if (disabled) return;
|
|
90
66
|
addRipple(e);
|
|
91
|
-
|
|
92
67
|
if (!menuItems) {
|
|
93
68
|
if (onClick) onClick(e);
|
|
94
69
|
}
|
|
95
|
-
|
|
96
70
|
if (setOpen) setOpen();
|
|
97
71
|
};
|
|
98
|
-
|
|
99
|
-
_react.default.useEffect(function () {
|
|
72
|
+
_react["default"].useEffect(function () {
|
|
100
73
|
var timeout = setTimeout(function () {
|
|
101
74
|
if (typographyRef.current) {
|
|
102
75
|
var isEllipsis = typographyRef.current.scrollWidth > typographyRef.current.clientWidth;
|
|
@@ -107,51 +80,62 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
107
80
|
return clearTimeout(timeout);
|
|
108
81
|
};
|
|
109
82
|
}, [children, fullWidth]);
|
|
110
|
-
|
|
111
83
|
var extractText = function extractText(child) {
|
|
112
|
-
return _react
|
|
84
|
+
return _react["default"].Children.toArray(child).reduce(function (text, item) {
|
|
113
85
|
if (typeof item === 'string') {
|
|
114
86
|
return text + item;
|
|
115
87
|
}
|
|
116
|
-
|
|
117
|
-
if ( /*#__PURE__*/_react.default.isValidElement(item)) {
|
|
88
|
+
if (/*#__PURE__*/_react["default"].isValidElement(item)) {
|
|
118
89
|
return text + extractText(item.props.children);
|
|
119
90
|
}
|
|
120
|
-
|
|
121
91
|
return text;
|
|
122
92
|
}, '');
|
|
123
93
|
};
|
|
124
|
-
|
|
125
94
|
var getContent = function getContent() {
|
|
126
|
-
|
|
95
|
+
var _props$tabIndex;
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement("li", _extends({
|
|
127
97
|
id: id,
|
|
128
98
|
className: prefixClass("cbx-menuItem ".concat(className || '', " cbx-ripple ").concat(active ? 'cbx-menuItem-active' : '', " ").concat(fullWidth ? 'cbx-menuItem-fullWidth' : '', " ").concat(disabled ? 'cbx-menuItem-disabled' : '')),
|
|
129
99
|
onClick: function onClick(e) {
|
|
130
100
|
return handleClick(e);
|
|
131
101
|
},
|
|
132
102
|
onKeyDown: function onKeyDown(e) {
|
|
133
|
-
|
|
103
|
+
if (disabled) return;
|
|
104
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
handleClick(e);
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
tabIndex: (_props$tabIndex = props.tabIndex) !== null && _props$tabIndex !== void 0 ? _props$tabIndex : isManagedByParentNavigation || disabled ? -1 : 0,
|
|
110
|
+
"aria-disabled": disabled || undefined,
|
|
111
|
+
onMouseDown: function onMouseDown(e) {
|
|
112
|
+
return e.preventDefault();
|
|
134
113
|
},
|
|
135
|
-
|
|
114
|
+
role: props.role || 'menuitem',
|
|
115
|
+
"aria-haspopup": menuItems ? 'menu' : undefined,
|
|
136
116
|
style: _objectSpread(_objectSpread({}, style), stylesInLine),
|
|
137
117
|
value: "".concat(value)
|
|
138
|
-
}, props), /*#__PURE__*/_react
|
|
118
|
+
}, props), /*#__PURE__*/_react["default"].createElement("div", {
|
|
139
119
|
className: prefixClass('cbx-menuItem-container')
|
|
140
|
-
}, icon && /*#__PURE__*/_react
|
|
120
|
+
}, icon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
141
121
|
className: prefixClass('cbx-menuItem-container-icon')
|
|
142
|
-
}, badge && /*#__PURE__*/_react
|
|
143
|
-
className: prefixClass('cbx-menuItem-badge-icon')
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
122
|
+
}, badge && /*#__PURE__*/_react["default"].createElement("div", {
|
|
123
|
+
className: prefixClass('cbx-menuItem-badge-icon'),
|
|
124
|
+
role: "status"
|
|
125
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
126
|
+
className: "sr-only"
|
|
127
|
+
}, "Notificaci\xF3n pendiente")), typeof icon === 'string' ? /*#__PURE__*/_react["default"].createElement("i", {
|
|
128
|
+
className: icon,
|
|
129
|
+
"aria-hidden": "true"
|
|
130
|
+
}) : icon), /*#__PURE__*/_react["default"].createElement("div", {
|
|
147
131
|
className: prefixClass('cbx-menuItem-container-typography'),
|
|
148
132
|
style: {
|
|
149
133
|
paddingRight: badge && !icon && '1.188rem'
|
|
150
134
|
}
|
|
151
|
-
}, /*#__PURE__*/_react
|
|
135
|
+
}, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
152
136
|
title: isEllipsisActive ? extractText(children) : '',
|
|
153
137
|
placement: placementTooltip || 'right'
|
|
154
|
-
}, /*#__PURE__*/_react
|
|
138
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
155
139
|
color: 'var(--black)',
|
|
156
140
|
prefixClass: prefixClass,
|
|
157
141
|
ref: typographyRef,
|
|
@@ -160,16 +144,19 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
160
144
|
textOverflow: 'ellipsis',
|
|
161
145
|
overflow: 'hidden'
|
|
162
146
|
}
|
|
163
|
-
}, children)), badge && !icon && /*#__PURE__*/_react
|
|
164
|
-
className: prefixClass('cbx-menuItem-badge-typography')
|
|
165
|
-
|
|
147
|
+
}, children)), badge && !icon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
+
className: prefixClass('cbx-menuItem-badge-typography'),
|
|
149
|
+
role: "status"
|
|
150
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
151
|
+
className: "sr-only"
|
|
152
|
+
}, "Notificaci\xF3n pendiente"))), (menuItems || endIcon) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
166
153
|
className: prefixClass('cbx-menuItem-container-icon-right')
|
|
167
|
-
}, /*#__PURE__*/_react
|
|
168
|
-
className: endIcon || 'ri-arrow-right-s-line'
|
|
154
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
155
|
+
className: endIcon || 'ri-arrow-right-s-line',
|
|
156
|
+
"aria-hidden": "true"
|
|
169
157
|
}))), ripples);
|
|
170
158
|
};
|
|
171
|
-
|
|
172
|
-
return menuItems ? /*#__PURE__*/_react.default.createElement(_DropDown.default, _extends({
|
|
159
|
+
return menuItems ? /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
173
160
|
Component: function Component() {
|
|
174
161
|
return getContent();
|
|
175
162
|
},
|
|
@@ -182,22 +169,22 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
182
169
|
horizontal: 'left'
|
|
183
170
|
},
|
|
184
171
|
items: menuItems,
|
|
185
|
-
className: 'cbx-menuItem-combinedDropdown'
|
|
172
|
+
className: 'cbx-menuItem-combinedDropdown',
|
|
173
|
+
"aria-haspopup": "menu"
|
|
186
174
|
}, props)) : getContent();
|
|
187
175
|
};
|
|
188
|
-
|
|
189
176
|
MenuItem.propTypes = {
|
|
190
|
-
id: _propTypes
|
|
191
|
-
children: _propTypes
|
|
192
|
-
icon: _propTypes
|
|
193
|
-
sx: _propTypes
|
|
194
|
-
badge: _propTypes
|
|
195
|
-
disabled: _propTypes
|
|
196
|
-
menuItems: _propTypes
|
|
197
|
-
setOpen: _propTypes
|
|
198
|
-
onClick: _propTypes
|
|
199
|
-
endIcon: _propTypes
|
|
200
|
-
className: _propTypes
|
|
177
|
+
id: _propTypes["default"].string,
|
|
178
|
+
children: _propTypes["default"].node,
|
|
179
|
+
icon: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].node]),
|
|
180
|
+
sx: _propTypes["default"].object,
|
|
181
|
+
badge: _propTypes["default"].bool,
|
|
182
|
+
disabled: _propTypes["default"].bool,
|
|
183
|
+
menuItems: _propTypes["default"].node,
|
|
184
|
+
setOpen: _propTypes["default"].func,
|
|
185
|
+
onClick: _propTypes["default"].func,
|
|
186
|
+
endIcon: _propTypes["default"].string,
|
|
187
|
+
className: _propTypes["default"].string
|
|
201
188
|
};
|
|
202
189
|
var _default = MenuItem;
|
|
203
|
-
exports
|
|
190
|
+
exports["default"] = _default;
|
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.DesignMenuItemTemplate = exports.Default = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _DesignMenuItem = _interopRequireDefault(require("./DesignMenuItem.stories"));
|
|
11
|
-
|
|
12
9
|
var _MenuItem = _interopRequireDefault(require("./MenuItem"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
11
|
var _default = {
|
|
17
12
|
title: 'Components/MenuItem',
|
|
18
|
-
component: _MenuItem
|
|
13
|
+
component: _MenuItem["default"],
|
|
19
14
|
argTypes: {
|
|
20
15
|
badge: {
|
|
21
16
|
options: [true, false],
|
|
@@ -39,18 +34,14 @@ var _default = {
|
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
};
|
|
42
|
-
exports
|
|
43
|
-
|
|
37
|
+
exports["default"] = _default;
|
|
44
38
|
var Template = function Template(args) {
|
|
45
|
-
return /*#__PURE__*/_react
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], args);
|
|
46
40
|
};
|
|
47
|
-
|
|
48
41
|
Template.displayName = "Template";
|
|
49
|
-
|
|
50
42
|
var TemplateMenuItem = function TemplateMenuItem(args) {
|
|
51
|
-
return /*#__PURE__*/_react
|
|
43
|
+
return /*#__PURE__*/_react["default"].createElement(_DesignMenuItem["default"], args);
|
|
52
44
|
};
|
|
53
|
-
|
|
54
45
|
TemplateMenuItem.displayName = "TemplateMenuItem";
|
|
55
46
|
var Default = Template.bind({});
|
|
56
47
|
exports.Default = Default;
|
|
@@ -1,55 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
7
|
+
exports["default"] = void 0;
|
|
8
8
|
var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
9
|
-
|
|
10
9
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
11
|
require("../../styles/main.css");
|
|
15
|
-
|
|
16
12
|
require("./MenuItem.css");
|
|
17
|
-
|
|
18
13
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
19
|
-
|
|
20
14
|
var _DropDown = _interopRequireDefault(require("../DropDown/DropDown"));
|
|
21
|
-
|
|
22
15
|
var _excluded = ["id", "children", "icon", "sx", "badge", "menuItems", "setOpen", "onClick", "endIcon", "className"];
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
|
-
|
|
34
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
35
|
-
|
|
36
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
|
-
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
38
25
|
var MenuItem = function MenuItem(_ref) {
|
|
39
26
|
var id = _ref.id,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
icon = _ref.icon,
|
|
29
|
+
sx = _ref.sx,
|
|
30
|
+
badge = _ref.badge,
|
|
31
|
+
menuItems = _ref.menuItems,
|
|
32
|
+
setOpen = _ref.setOpen,
|
|
33
|
+
onClick = _ref.onClick,
|
|
34
|
+
endIcon = _ref.endIcon,
|
|
35
|
+
className = _ref.className,
|
|
36
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
51
37
|
var getContent = function getContent() {
|
|
52
|
-
return /*#__PURE__*/_react
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement(_MenuItem["default"], _extends({
|
|
53
39
|
id: id,
|
|
54
40
|
sx: _objectSpread({
|
|
55
41
|
padding: '0.75rem 1.25rem!important',
|
|
@@ -66,36 +52,35 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
66
52
|
}, props, {
|
|
67
53
|
onClick: onClick || setOpen,
|
|
68
54
|
className: "cbx-menuItem ".concat(className)
|
|
69
|
-
}), /*#__PURE__*/_react
|
|
55
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
70
56
|
className: "cbx-menuItem-container"
|
|
71
|
-
}, icon && /*#__PURE__*/_react
|
|
57
|
+
}, icon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
58
|
className: "cbx-menuItem-container-icon"
|
|
73
|
-
}, badge && /*#__PURE__*/_react
|
|
59
|
+
}, badge && /*#__PURE__*/_react["default"].createElement("div", {
|
|
74
60
|
className: "cbx-menuItem-badge-icon"
|
|
75
|
-
}), typeof icon === 'string' ? /*#__PURE__*/_react
|
|
61
|
+
}), typeof icon === 'string' ? /*#__PURE__*/_react["default"].createElement("i", {
|
|
76
62
|
className: icon
|
|
77
|
-
}) : icon), /*#__PURE__*/_react
|
|
63
|
+
}) : icon), /*#__PURE__*/_react["default"].createElement("div", {
|
|
78
64
|
className: "cbx-menuItem-container-typography",
|
|
79
65
|
style: {
|
|
80
66
|
paddingRight: badge && !icon && '1.188rem'
|
|
81
67
|
}
|
|
82
|
-
}, /*#__PURE__*/_react
|
|
68
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
83
69
|
color: 'var(--black)',
|
|
84
70
|
styles: {
|
|
85
71
|
whiteSpace: 'nowrap',
|
|
86
72
|
textOverflow: 'ellipsis',
|
|
87
73
|
overflow: 'hidden'
|
|
88
74
|
}
|
|
89
|
-
}, children), badge && !icon && /*#__PURE__*/_react
|
|
75
|
+
}, children), badge && !icon && /*#__PURE__*/_react["default"].createElement("div", {
|
|
90
76
|
className: "cbx-menuItem-badge-typography"
|
|
91
|
-
})), (menuItems || endIcon) && /*#__PURE__*/_react
|
|
77
|
+
})), (menuItems || endIcon) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
78
|
className: "cbx-menuItem-container-icon-right"
|
|
93
|
-
}, /*#__PURE__*/_react
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
94
80
|
className: endIcon || 'ri-arrow-right-s-line'
|
|
95
81
|
}))));
|
|
96
82
|
};
|
|
97
|
-
|
|
98
|
-
return menuItems ? /*#__PURE__*/_react.default.createElement(_DropDown.default, {
|
|
83
|
+
return menuItems ? /*#__PURE__*/_react["default"].createElement(_DropDown["default"], {
|
|
99
84
|
Component: function Component() {
|
|
100
85
|
return getContent();
|
|
101
86
|
},
|
|
@@ -116,15 +101,14 @@ var MenuItem = function MenuItem(_ref) {
|
|
|
116
101
|
items: menuItems
|
|
117
102
|
}) : getContent();
|
|
118
103
|
};
|
|
119
|
-
|
|
120
104
|
MenuItem.propTypes = {
|
|
121
|
-
badge: _propTypes
|
|
122
|
-
id: _propTypes
|
|
123
|
-
children: _propTypes
|
|
124
|
-
icon: _propTypes
|
|
125
|
-
menuItems: _propTypes
|
|
126
|
-
setOpen: _propTypes
|
|
127
|
-
endIcon: _propTypes
|
|
105
|
+
badge: _propTypes["default"].bool,
|
|
106
|
+
id: _propTypes["default"].string,
|
|
107
|
+
children: _propTypes["default"].string,
|
|
108
|
+
icon: _propTypes["default"].string,
|
|
109
|
+
menuItems: _propTypes["default"].any,
|
|
110
|
+
setOpen: _propTypes["default"].func,
|
|
111
|
+
endIcon: _propTypes["default"].string
|
|
128
112
|
};
|
|
129
113
|
MenuItem.defaultProps = {
|
|
130
114
|
badge: false,
|
|
@@ -136,4 +120,4 @@ MenuItem.defaultProps = {
|
|
|
136
120
|
endIcon: ''
|
|
137
121
|
};
|
|
138
122
|
var _default = MenuItem;
|
|
139
|
-
exports
|
|
123
|
+
exports["default"] = _default;
|
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
height: 1.75rem;
|
|
206
206
|
right: -0.188rem;
|
|
207
207
|
transition: all .1s;
|
|
208
|
+
z-index: 1;
|
|
208
209
|
}
|
|
209
210
|
|
|
210
211
|
.cbx-buttonPrincipalMenu-childrens-arrow {
|
|
@@ -240,4 +241,27 @@
|
|
|
240
241
|
|
|
241
242
|
.cbx-menuLateralLeft-mark-hover {
|
|
242
243
|
background: var(--gray5);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.cbx-buttonPrincipalMenu-container.cbx-buttonPrincipalMenu-container-hover-color {
|
|
247
|
+
border: none;
|
|
248
|
+
background: var(--white);
|
|
249
|
+
padding: 0;
|
|
250
|
+
width: 100%;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.cbx-buttonPrincipalMenu-container-text {
|
|
254
|
+
width: 100%;
|
|
255
|
+
text-align: left;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.cbx-buttonPrincipalMenu-block-childrens {
|
|
259
|
+
border: none;
|
|
260
|
+
width: 100%;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.cbx-menuLateralLeft-container-under.cbx-menuLateralLeft-img {
|
|
264
|
+
border: none;
|
|
265
|
+
background: var(--white);
|
|
266
|
+
padding: 0
|
|
243
267
|
}
|