@councilbox/councilbox-ui 2.0.53 → 2.0.55
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/Accordion.js +3 -0
- package/Alert.js +3 -0
- package/Avatar.js +3 -0
- package/AvatarGroup.js +3 -0
- package/Block.js +3 -0
- package/Button.js +3 -0
- package/ButtonBasic.js +3 -0
- package/Checkbox.js +3 -0
- package/DatePicker.js +3 -0
- package/DateRangePicker.js +3 -0
- package/DateTimePicker.js +3 -0
- package/DragDrop.js +3 -0
- package/DrawerPanel.js +3 -0
- package/DropDown.js +3 -0
- package/EnhancedTable.js +3 -0
- package/FabButton.js +3 -0
- package/Grid.js +3 -0
- package/Header.js +3 -0
- package/IconButton.js +3 -0
- package/IconButtonSquare.js +3 -0
- package/IconFont.js +3 -0
- package/InputAutocomplete.js +3 -0
- package/InputPassword.js +3 -0
- package/InputText.js +3 -0
- package/InputTextArea.js +3 -0
- package/LoadingSection.js +3 -0
- package/MenuItem.js +3 -0
- package/MenuLateralLeft.js +3 -0
- package/MenuLateralRight.js +3 -0
- package/Modal.js +3 -0
- package/Radio.js +3 -0
- package/RichTextInput.js +3 -0
- package/Scrollbar.js +3 -0
- package/ScrollbarNew.js +3 -0
- package/SelectInput.js +3 -0
- package/Slider.js +3 -0
- package/Spacing.js +3 -0
- package/Stars.js +3 -0
- package/Stepper.js +3 -0
- package/Table.js +3 -0
- package/TableBody.js +3 -0
- package/TableCell.js +3 -0
- package/TableContainer.js +3 -0
- package/TableHead.js +3 -0
- package/TableRow.js +3 -0
- package/TableSortLabel.js +3 -0
- package/Tabs.js +3 -0
- package/Tag.js +3 -0
- package/TextInput.js +3 -0
- package/ThemeProvider.js +3 -0
- package/TimePicker.js +3 -0
- package/Timeline.js +3 -0
- package/ToastProvider.js +3 -0
- package/Toggle.js +3 -0
- package/Tooltip.js +3 -0
- package/Typography.js +3 -0
- package/dist/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +41 -60
- 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 +119 -99
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +54 -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/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/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/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/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +384 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +478 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
- package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
- package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
- package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
- package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
- package/dist/components/DateTimePicker/TimeColumns.css +46 -0
- package/dist/components/DateTimePicker/TimeColumns.js +175 -0
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +83 -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/DropDown/DesignDropDown.stories.js +87 -97
- package/dist/components/DropDown/DropDown.js +179 -343
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- 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/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +227 -246
- 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 +135 -140
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +14 -28
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- 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/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 +96 -83
- package/dist/components/InputText/InputText.js +211 -215
- package/dist/components/InputText/InputText.stories.js +11 -11
- 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 +131 -140
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- 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 +91 -79
- 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 +156 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- 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/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +309 -0
- package/dist/components/RichTextInput/RichTextInput.js +851 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +42 -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/ScrollbarNew/DesignScrollbarNew.js +24 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +171 -218
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- 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/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 -138
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- 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/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +359 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- 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/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +165 -0
- package/dist/components/Toast/Toast.stories.js +33 -0
- package/dist/components/Toast/ToastProvider.js +33 -0
- package/dist/components/Toast/ToastRoot.js +89 -0
- package/dist/components/Toast/toastStore.js +127 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +123 -100
- 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 +195 -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/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/styleFont.css +1 -1
- package/dist/styles/stylesheet.js +10 -22
- package/dist/styles/zIndexConsts.css +2 -0
- 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 +67 -4
- package/toast.js +7 -0
- package/useCouncilboxTheme.js +7 -0
- package/useToast.js +7 -0
- package/dist/components/Accordion/AccordionOld.css +0 -16
- package/dist/components/Accordion/AccordionOld.js +0 -115
- package/dist/components/Avatar/AvatarOld.js +0 -138
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -231
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -112
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -233
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -186
- package/dist/components/Grid/GridItemOld.js +0 -43
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -53
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -138
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -133
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -178
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -340
- package/dist/components/MenuItem/MenuItemOld.js +0 -139
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -230
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -142
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -325
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -165
- package/dist/components/Tabs/TabsOld.js +0 -92
- package/dist/components/Typography/TypographyOld.js +0 -132
|
@@ -1,140 +1,115 @@
|
|
|
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
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
15
|
-
|
|
16
12
|
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
17
|
-
|
|
18
13
|
var _useWindowSize2 = _interopRequireDefault(require("../../HOCs/useWindowSize"));
|
|
19
|
-
|
|
20
14
|
require("./header.css");
|
|
21
|
-
|
|
22
15
|
var _DropDown = _interopRequireDefault(require("../DropDown/DropDown"));
|
|
23
|
-
|
|
24
16
|
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
25
|
-
|
|
26
17
|
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
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 _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
47
|
-
|
|
48
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
49
|
-
|
|
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; }
|
|
50
31
|
var Header = function Header(_ref) {
|
|
51
32
|
var back = _ref.back,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
33
|
+
dropdownLeft = _ref.dropdownLeft,
|
|
34
|
+
logoLeft = _ref.logoLeft,
|
|
35
|
+
logoLeftXS = _ref.logoLeftXS,
|
|
36
|
+
title = _ref.title,
|
|
37
|
+
lock = _ref.lock,
|
|
38
|
+
itemsDropDownMore = _ref.itemsDropDownMore,
|
|
39
|
+
logoRight = _ref.logoRight,
|
|
40
|
+
logoRightXS = _ref.logoRightXS,
|
|
41
|
+
finish = _ref.finish,
|
|
42
|
+
textFinishButton = _ref.textFinishButton,
|
|
43
|
+
companyName = _ref.companyName,
|
|
44
|
+
moreIcon = _ref.moreIcon,
|
|
45
|
+
iconButtonRight = _ref.iconButtonRight,
|
|
46
|
+
sectionCenter = _ref.sectionCenter,
|
|
47
|
+
itemsDropDownUser = _ref.itemsDropDownUser,
|
|
48
|
+
lockIcon = _ref.lockIcon,
|
|
49
|
+
logoAndDropdownSeparate = _ref.logoAndDropdownSeparate,
|
|
50
|
+
backgroundIconButtonRight = _ref.backgroundIconButtonRight,
|
|
51
|
+
onClickIconButtonRight = _ref.onClickIconButtonRight,
|
|
52
|
+
colorNoLogo = _ref.colorNoLogo,
|
|
53
|
+
actionLogoLeft = _ref.actionLogoLeft,
|
|
54
|
+
backIcon = _ref.backIcon,
|
|
55
|
+
dropdownLeftIcon = _ref.dropdownLeftIcon,
|
|
56
|
+
finishButtonVariant = _ref.finishButtonVariant,
|
|
57
|
+
finishButtonIcon = _ref.finishButtonIcon,
|
|
58
|
+
iconButtonBackProps = _ref.iconButtonBackProps,
|
|
59
|
+
iconButtonDropdownLeftProps = _ref.iconButtonDropdownLeftProps,
|
|
60
|
+
dropdownLeftProps = _ref.dropdownLeftProps,
|
|
61
|
+
typographyLogoLeftProps = _ref.typographyLogoLeftProps,
|
|
62
|
+
typographySectionCenterProps = _ref.typographySectionCenterProps,
|
|
63
|
+
itemsDropDownMoreIconButtonProps = _ref.itemsDropDownMoreIconButtonProps,
|
|
64
|
+
itemsDropDownMoreProps = _ref.itemsDropDownMoreProps,
|
|
65
|
+
finishIconButtonProps = _ref.finishIconButtonProps,
|
|
66
|
+
finishButtonBasicProps = _ref.finishButtonBasicProps,
|
|
67
|
+
iconButtonRightProps = _ref.iconButtonRightProps,
|
|
68
|
+
itemsDropDownUserProps = _ref.itemsDropDownUserProps,
|
|
69
|
+
demoMode = _ref.demoMode,
|
|
70
|
+
onClickButtonNotification = _ref.onClickButtonNotification,
|
|
71
|
+
buttonNotificationIcon = _ref.buttonNotificationIcon,
|
|
72
|
+
buttonNotificationProps = _ref.buttonNotificationProps,
|
|
73
|
+
buttonNotificationBadge = _ref.buttonNotificationBadge,
|
|
74
|
+
styleIconButtonRightContainer = _ref.styleIconButtonRightContainer,
|
|
75
|
+
styleIconButtonRight = _ref.styleIconButtonRight,
|
|
76
|
+
placementTooltipThirdDropdownUser = _ref.placementTooltipThirdDropdownUser,
|
|
77
|
+
tooltipThirdDropdownUser = _ref.tooltipThirdDropdownUser,
|
|
78
|
+
onClickButtonFileManager = _ref.onClickButtonFileManager,
|
|
79
|
+
buttonFileManagerIcon = _ref.buttonFileManagerIcon,
|
|
80
|
+
buttonFileManagerProgressAutoDownload = _ref.buttonFileManagerProgressAutoDownload,
|
|
81
|
+
buttonFileManagerProgressDownload = _ref.buttonFileManagerProgressDownload,
|
|
82
|
+
buttonFileManagerBadge = _ref.buttonFileManagerBadge,
|
|
83
|
+
buttonFileManagerItems = _ref.buttonFileManagerItems,
|
|
84
|
+
buttonFileManagerProps = _ref.buttonFileManagerProps,
|
|
85
|
+
buttonFileManagerDropDownProps = _ref.buttonFileManagerDropDownProps,
|
|
86
|
+
sx = _ref.sx,
|
|
87
|
+
propPrefixClass = _ref.prefixClass,
|
|
88
|
+
showTypographyLogoLeft = _ref.showTypographyLogoLeft,
|
|
89
|
+
buttonNotificationIconItems = _ref.buttonNotificationIconItems,
|
|
90
|
+
buttonNotificationIconDropDownProps = _ref.buttonNotificationIconDropDownProps,
|
|
91
|
+
thirdBlockActions = _ref.thirdBlockActions,
|
|
92
|
+
altLogoLeft = _ref.altLogoLeft,
|
|
93
|
+
altLogoRight = _ref.altLogoRight;
|
|
94
|
+
var _useDynamicStyles = (0, _useDynamicStyles2["default"])(sx),
|
|
95
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
96
|
+
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
116
97
|
var prefixClass = propPrefixClass || dynamicPrefixClass;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
isEllipsisActive = _React$useState2[0],
|
|
127
|
-
setIsEllipsisActive = _React$useState2[1];
|
|
128
|
-
|
|
129
|
-
_react.default.useEffect(function () {
|
|
98
|
+
var _useWindowSize = (0, _useWindowSize2["default"])(),
|
|
99
|
+
innerWidth = _useWindowSize.innerWidth,
|
|
100
|
+
breakpoints = _useWindowSize.breakpoints;
|
|
101
|
+
var companyNameRef = _react["default"].useRef(null);
|
|
102
|
+
var _React$useState = _react["default"].useState(false),
|
|
103
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
104
|
+
isEllipsisActive = _React$useState2[0],
|
|
105
|
+
setIsEllipsisActive = _React$useState2[1];
|
|
106
|
+
_react["default"].useEffect(function () {
|
|
130
107
|
if (!companyNameRef.current) return;
|
|
131
108
|
var element = companyNameRef.current;
|
|
132
|
-
|
|
133
109
|
var checkEllipsis = function checkEllipsis() {
|
|
134
110
|
var hasEllipsis = element.scrollWidth > element.clientWidth;
|
|
135
111
|
setIsEllipsisActive(hasEllipsis);
|
|
136
112
|
};
|
|
137
|
-
|
|
138
113
|
requestAnimationFrame(checkEllipsis);
|
|
139
114
|
var resizeObserver = new ResizeObserver(checkEllipsis);
|
|
140
115
|
resizeObserver.observe(element);
|
|
@@ -142,36 +117,27 @@ var Header = function Header(_ref) {
|
|
|
142
117
|
return resizeObserver.disconnect();
|
|
143
118
|
};
|
|
144
119
|
}, [companyName]);
|
|
145
|
-
|
|
146
120
|
var getWidthBlockFirst = function getWidthBlockFirst() {
|
|
147
121
|
var width = '11.563rem';
|
|
148
|
-
|
|
149
122
|
if (innerWidth < breakpoints.md) {
|
|
150
123
|
width = '5.8rem';
|
|
151
|
-
|
|
152
124
|
if ((logoLeft || logoLeftXS || logoLeft === '') && !back && !dropdownLeft) {
|
|
153
125
|
width = '3rem';
|
|
154
126
|
}
|
|
155
127
|
}
|
|
156
|
-
|
|
157
128
|
if (logoLeft === 'noLogo') {
|
|
158
129
|
width = 'var(--spacing40)';
|
|
159
130
|
}
|
|
160
|
-
|
|
161
131
|
return width;
|
|
162
132
|
};
|
|
163
|
-
|
|
164
133
|
var getWidthBlockThird = function getWidthBlockThird() {
|
|
165
134
|
var width = '11.563rem';
|
|
166
|
-
|
|
167
135
|
if (innerWidth < breakpoints.md) {
|
|
168
136
|
width = '5.7rem';
|
|
169
|
-
|
|
170
137
|
if (logoRight && logoRightXS && logoAndDropdownSeparate && !iconButtonRight && !itemsDropDownUser) {
|
|
171
138
|
width = '3rem';
|
|
172
139
|
}
|
|
173
140
|
}
|
|
174
|
-
|
|
175
141
|
if (!logoRight && !logoRightXS) {
|
|
176
142
|
if (onClickButtonFileManager || onClickButtonNotification) {
|
|
177
143
|
width = '9.375rem';
|
|
@@ -179,15 +145,13 @@ var Header = function Header(_ref) {
|
|
|
179
145
|
width = '2.5rem';
|
|
180
146
|
}
|
|
181
147
|
}
|
|
182
|
-
|
|
183
148
|
return width;
|
|
184
149
|
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
150
|
+
var renderlogoAndDropdownUnited = _react["default"].useMemo(function () {
|
|
151
|
+
return /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
188
152
|
title: tooltipThirdDropdownUser || '',
|
|
189
153
|
placement: placementTooltipThirdDropdownUser
|
|
190
|
-
}, /*#__PURE__*/_react
|
|
154
|
+
}, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], _extends({
|
|
191
155
|
id: 'cbx-header-third-dropdown-user',
|
|
192
156
|
variant: 'tertiary',
|
|
193
157
|
"aria-label": 'Actions Button',
|
|
@@ -195,54 +159,52 @@ var Header = function Header(_ref) {
|
|
|
195
159
|
paddingRight: '0.125rem'
|
|
196
160
|
},
|
|
197
161
|
prefixClass: prefixClass,
|
|
198
|
-
text: /*#__PURE__*/_react
|
|
162
|
+
text: /*#__PURE__*/_react["default"].createElement("div", {
|
|
199
163
|
className: prefixClass('cbx-header-third-button-container')
|
|
200
|
-
}, logoRight && /*#__PURE__*/_react
|
|
164
|
+
}, logoRight && /*#__PURE__*/_react["default"].createElement("div", {
|
|
201
165
|
className: prefixClass('cbx-header-third-container-logo-right')
|
|
202
|
-
}, /*#__PURE__*/_react
|
|
166
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
203
167
|
id: 'cbx-header-third-logo-right',
|
|
204
168
|
className: prefixClass('cbx-header-third-logo-right'),
|
|
205
169
|
src: innerWidth < breakpoints.md ? logoRightXS || logoRight : logoRight,
|
|
206
|
-
alt:
|
|
207
|
-
})), /*#__PURE__*/_react
|
|
170
|
+
alt: altLogoRight
|
|
171
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
208
172
|
className: prefixClass('cbx-header-third-button-user-logo'),
|
|
209
173
|
style: _objectSpread({}, styleIconButtonRightContainer)
|
|
210
|
-
}, iconButtonRight || /*#__PURE__*/_react
|
|
174
|
+
}, iconButtonRight || /*#__PURE__*/_react["default"].createElement("i", {
|
|
211
175
|
className: "ri-user-3-line",
|
|
212
176
|
style: _objectSpread({}, styleIconButtonRight)
|
|
213
177
|
})))
|
|
214
178
|
}, iconButtonRightProps))));
|
|
215
|
-
}, [tooltipThirdDropdownUser, placementTooltipThirdDropdownUser, logoRightXS, logoRight, breakpoints, innerWidth, styleIconButtonRightContainer, styleIconButtonRight, iconButtonRightProps]);
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, iconButtonRight && /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
179
|
+
}, [tooltipThirdDropdownUser, placementTooltipThirdDropdownUser, logoRightXS, logoRight, breakpoints, innerWidth, styleIconButtonRightContainer, styleIconButtonRight, iconButtonRightProps, altLogoRight]);
|
|
180
|
+
var renderlogoAndDropdownSeparated = _react["default"].useMemo(function () {
|
|
181
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, iconButtonRight && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
219
182
|
prefixClass: prefixClass,
|
|
220
183
|
"aria-label": "Button user",
|
|
221
184
|
id: 'cbx-header-third-button-user',
|
|
222
185
|
className: prefixClass('cbx-header-third-button-user cbx-header-button'),
|
|
223
186
|
styles: _objectSpread({}, styleIconButtonRightContainer),
|
|
224
|
-
icon: iconButtonRight || /*#__PURE__*/_react
|
|
187
|
+
icon: iconButtonRight || /*#__PURE__*/_react["default"].createElement("i", {
|
|
225
188
|
className: "ri-user-3-line",
|
|
226
189
|
style: _objectSpread({}, styleIconButtonRight)
|
|
227
190
|
})
|
|
228
|
-
}, iconButtonRightProps)), (logoRight || logoRightXS) && !iconButtonRight && /*#__PURE__*/_react
|
|
191
|
+
}, iconButtonRightProps)), (logoRight || logoRightXS) && !iconButtonRight && /*#__PURE__*/_react["default"].createElement("img", {
|
|
229
192
|
style: {
|
|
230
193
|
cursor: 'pointer'
|
|
231
194
|
},
|
|
232
195
|
id: 'cbx-header-third-logo-right',
|
|
233
196
|
className: prefixClass('cbx-header-third-logo-right'),
|
|
234
197
|
src: innerWidth < breakpoints.md ? logoRightXS || logoRight : logoRight,
|
|
235
|
-
alt:
|
|
198
|
+
alt: altLogoRight
|
|
236
199
|
}));
|
|
237
|
-
}, [styleIconButtonRightContainer, styleIconButtonRight, iconButtonRightProps, logoRight, logoRightXS, innerWidth, breakpoints]);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
200
|
+
}, [styleIconButtonRightContainer, styleIconButtonRight, iconButtonRightProps, logoRight, logoRightXS, innerWidth, breakpoints, altLogoRight]);
|
|
201
|
+
var getCompanyName = _react["default"].useCallback(function () {
|
|
202
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
241
203
|
className: prefixClass('cbx-header-first-container-app-logo-text-empty')
|
|
242
|
-
}, /*#__PURE__*/_react
|
|
204
|
+
}, /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
243
205
|
title: isEllipsisActive ? companyName : '',
|
|
244
206
|
placement: "bottom"
|
|
245
|
-
}, /*#__PURE__*/_react
|
|
207
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], _extends({
|
|
246
208
|
prefixClass: prefixClass,
|
|
247
209
|
ref: companyNameRef,
|
|
248
210
|
color: logoLeft ? 'var(--gray4)' : 'var(--primary)',
|
|
@@ -260,124 +222,140 @@ var Header = function Header(_ref) {
|
|
|
260
222
|
}
|
|
261
223
|
}), companyName)));
|
|
262
224
|
}, [companyName, prefixClass, typographyLogoLeftProps, isEllipsisActive]);
|
|
263
|
-
|
|
264
|
-
return /*#__PURE__*/_react.default.createElement("header", {
|
|
225
|
+
return /*#__PURE__*/_react["default"].createElement("header", {
|
|
265
226
|
id: 'cbx-header-app-header',
|
|
266
227
|
className: prefixClass('App-header'),
|
|
267
228
|
style: _objectSpread({}, stylesInLine)
|
|
268
|
-
}, /*#__PURE__*/_react
|
|
229
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
269
230
|
className: prefixClass('cbx-header-first-block'),
|
|
270
231
|
style: {
|
|
271
232
|
minWidth: getWidthBlockFirst(),
|
|
272
233
|
marginRight: innerWidth < breakpoints.md ? 'var(--spacing8)' : 'var(--spacing24)'
|
|
273
234
|
}
|
|
274
|
-
}, back && /*#__PURE__*/_react
|
|
235
|
+
}, back && /*#__PURE__*/_react["default"].createElement("div", {
|
|
275
236
|
className: prefixClass('cbx-header-first-container-button-dropdown-left')
|
|
276
|
-
}, /*#__PURE__*/_react
|
|
237
|
+
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
277
238
|
prefixClass: prefixClass,
|
|
278
239
|
"aria-label": "Button Left",
|
|
279
240
|
id: 'cbx-header-first-button-left',
|
|
280
241
|
className: prefixClass('cbx-header-first-button-left cbx-header-button'),
|
|
281
242
|
onClick: back,
|
|
282
|
-
icon: backIcon || /*#__PURE__*/_react
|
|
243
|
+
icon: backIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
283
244
|
className: "ri-arrow-left-line"
|
|
284
245
|
})
|
|
285
|
-
}, iconButtonBackProps))), dropdownLeft && /*#__PURE__*/_react
|
|
246
|
+
}, iconButtonBackProps))), dropdownLeft && /*#__PURE__*/_react["default"].createElement("div", {
|
|
286
247
|
className: prefixClass('cbx-header-first-container-button-dropdown-left')
|
|
287
|
-
}, /*#__PURE__*/_react
|
|
248
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
288
249
|
prefixClass: prefixClass,
|
|
289
250
|
color: "transparent",
|
|
290
251
|
Component: function Component() {
|
|
291
|
-
return /*#__PURE__*/_react
|
|
252
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
292
253
|
prefixClass: prefixClass,
|
|
293
254
|
"aria-label": "Drop Down Button Left",
|
|
294
255
|
id: 'cbx-header-button-more',
|
|
295
256
|
className: prefixClass('cbx-header-first-button-left cbx-header-button'),
|
|
296
|
-
icon: dropdownLeftIcon || /*#__PURE__*/_react
|
|
257
|
+
icon: dropdownLeftIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
297
258
|
className: "ri-arrow-down-s-line"
|
|
298
259
|
})
|
|
299
260
|
}, iconButtonDropdownLeftProps));
|
|
300
261
|
},
|
|
301
262
|
items: dropdownLeft,
|
|
302
263
|
closeOnOptionClick: true
|
|
303
|
-
}, dropdownLeftProps))), logoLeft ? logoLeft !== 'noLogo' && /*#__PURE__*/_react
|
|
264
|
+
}, dropdownLeftProps))), logoLeft ? logoLeft !== 'noLogo' && /*#__PURE__*/_react["default"].createElement("div", {
|
|
304
265
|
className: prefixClass("cbx-header-first-container-app-logo".concat(showTypographyLogoLeft ? '-empty' : '')),
|
|
305
266
|
onClick: actionLogoLeft,
|
|
267
|
+
onKeyDown: actionLogoLeft ? function (event) {
|
|
268
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
269
|
+
event.preventDefault();
|
|
270
|
+
actionLogoLeft(event);
|
|
271
|
+
}
|
|
272
|
+
} : undefined,
|
|
273
|
+
role: actionLogoLeft ? 'button' : undefined,
|
|
274
|
+
tabIndex: actionLogoLeft ? 0 : undefined,
|
|
306
275
|
style: {
|
|
307
276
|
cursor: actionLogoLeft ? 'pointer' : 'auto'
|
|
308
277
|
}
|
|
309
|
-
}, /*#__PURE__*/_react
|
|
278
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
310
279
|
id: 'cbx-header-first-app-logo',
|
|
311
280
|
src: innerWidth < breakpoints.md ? logoLeftXS || logoLeft : logoLeft,
|
|
312
281
|
className: prefixClass('App-logo-header-ui'),
|
|
313
|
-
alt:
|
|
314
|
-
}), showTypographyLogoLeft && getCompanyName()) : /*#__PURE__*/_react
|
|
282
|
+
alt: altLogoLeft
|
|
283
|
+
}), showTypographyLogoLeft && getCompanyName()) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
315
284
|
className: prefixClass('cbx-header-first-container-app-logo-empty'),
|
|
316
285
|
onClick: actionLogoLeft,
|
|
286
|
+
onKeyDown: actionLogoLeft ? function (event) {
|
|
287
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
288
|
+
event.preventDefault();
|
|
289
|
+
actionLogoLeft(event);
|
|
290
|
+
}
|
|
291
|
+
} : undefined,
|
|
292
|
+
role: actionLogoLeft ? 'button' : undefined,
|
|
293
|
+
tabIndex: actionLogoLeft ? 0 : undefined,
|
|
317
294
|
style: {
|
|
318
295
|
cursor: actionLogoLeft ? 'pointer' : 'auto'
|
|
319
296
|
}
|
|
320
|
-
}, /*#__PURE__*/_react
|
|
297
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
321
298
|
style: _objectSpread({}, colorNoLogo),
|
|
322
|
-
alt:
|
|
299
|
+
alt: altLogoLeft,
|
|
323
300
|
id: 'cbx-header-first-app-logo',
|
|
324
301
|
className: prefixClass('cbx-header-first-app-logo-empty')
|
|
325
|
-
}, /*#__PURE__*/_react
|
|
302
|
+
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
326
303
|
className: "ri-building-2-line"
|
|
327
|
-
})), (showTypographyLogoLeft || innerWidth > breakpoints.md) && getCompanyName())), sectionCenter === true && /*#__PURE__*/_react
|
|
304
|
+
})), (showTypographyLogoLeft || innerWidth > breakpoints.md) && getCompanyName())), sectionCenter === true && /*#__PURE__*/_react["default"].createElement("div", {
|
|
328
305
|
className: prefixClass('cbx-header-second-block')
|
|
329
|
-
}, lock && /*#__PURE__*/_react
|
|
306
|
+
}, lock && /*#__PURE__*/_react["default"].createElement("div", {
|
|
330
307
|
className: prefixClass('cbx-header-second-container-lock')
|
|
331
|
-
}, lockIcon || /*#__PURE__*/_react
|
|
308
|
+
}, lockIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
332
309
|
className: "ri-lock-line"
|
|
333
|
-
})), /*#__PURE__*/_react
|
|
310
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
334
311
|
className: prefixClass('cbx-header-second-container-text'),
|
|
335
312
|
style: {
|
|
336
313
|
minWidth: innerWidth < breakpoints.md ? '5rem' : '7.5rem'
|
|
337
314
|
}
|
|
338
|
-
}, /*#__PURE__*/_react
|
|
315
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], _extends({
|
|
339
316
|
prefixClass: prefixClass,
|
|
340
317
|
color: 'var(--gray5)',
|
|
341
318
|
fontWeight: '700',
|
|
342
|
-
component: 'span'
|
|
319
|
+
component: 'span',
|
|
320
|
+
componet: 'h1'
|
|
343
321
|
}, typographySectionCenterProps, {
|
|
344
322
|
styles: {
|
|
345
323
|
fontSize: '1.125rem',
|
|
346
324
|
lineHeight: '1.375rem'
|
|
347
325
|
}
|
|
348
|
-
}), title)), itemsDropDownMore && /*#__PURE__*/_react
|
|
326
|
+
}), title)), itemsDropDownMore && /*#__PURE__*/_react["default"].createElement("div", {
|
|
349
327
|
className: prefixClass('cbx-header-second-container-more'),
|
|
350
328
|
style: {
|
|
351
329
|
margin: innerWidth > breakpoints.md && '0 1rem'
|
|
352
330
|
}
|
|
353
|
-
}, /*#__PURE__*/_react
|
|
331
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
354
332
|
prefixClass: prefixClass,
|
|
355
333
|
color: "transparent",
|
|
356
334
|
Component: function Component() {
|
|
357
|
-
return /*#__PURE__*/_react
|
|
335
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
358
336
|
prefixClass: prefixClass,
|
|
359
337
|
"aria-label": "Drop Down Button More",
|
|
360
338
|
id: 'cbx-header-button-more',
|
|
361
339
|
className: prefixClass('cbx-header-second-button-more cbx-header-button'),
|
|
362
|
-
icon: moreIcon || /*#__PURE__*/_react
|
|
340
|
+
icon: moreIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
363
341
|
className: "ri-more-2-fill"
|
|
364
342
|
})
|
|
365
343
|
}, itemsDropDownMoreIconButtonProps));
|
|
366
344
|
},
|
|
367
345
|
items: itemsDropDownMore,
|
|
368
346
|
closeOnOptionClick: true
|
|
369
|
-
}, itemsDropDownMoreProps))), !!finish && /*#__PURE__*/_react
|
|
347
|
+
}, itemsDropDownMoreProps))), !!finish && /*#__PURE__*/_react["default"].createElement("div", {
|
|
370
348
|
className: prefixClass('cbx-header-second-container-finish')
|
|
371
|
-
}, innerWidth < breakpoints.md ? /*#__PURE__*/_react
|
|
349
|
+
}, innerWidth < breakpoints.md ? /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
372
350
|
prefixClass: prefixClass,
|
|
373
|
-
"aria-label":
|
|
351
|
+
"aria-label": textFinishButton || 'Cerrar sesión',
|
|
374
352
|
id: 'cbx-header-button-logout',
|
|
375
353
|
className: prefixClass('cbx-header-second-button-icon-logout cbx-header-button'),
|
|
376
354
|
onClick: finish,
|
|
377
|
-
icon: finishButtonIcon || /*#__PURE__*/_react
|
|
355
|
+
icon: finishButtonIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
378
356
|
className: "ri-logout-circle-r-line"
|
|
379
357
|
})
|
|
380
|
-
}, finishIconButtonProps)) : /*#__PURE__*/_react
|
|
358
|
+
}, finishIconButtonProps)) : /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], _extends({
|
|
381
359
|
prefixClass: prefixClass,
|
|
382
360
|
id: 'cbx-header-button-logout',
|
|
383
361
|
variant: finishButtonVariant || 'secondary',
|
|
@@ -388,13 +366,13 @@ var Header = function Header(_ref) {
|
|
|
388
366
|
text: textFinishButton,
|
|
389
367
|
onClick: finish,
|
|
390
368
|
"aria-label": 'Actions Button'
|
|
391
|
-
}, finishButtonBasicProps)))), /*#__PURE__*/_react
|
|
369
|
+
}, finishButtonBasicProps)))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
392
370
|
className: prefixClass('cbx-header-third-block'),
|
|
393
371
|
style: {
|
|
394
372
|
minWidth: getWidthBlockThird(),
|
|
395
373
|
marginLeft: innerWidth < breakpoints.md ? 'var(--spacing8)' : 'var(--spacing24)'
|
|
396
374
|
}
|
|
397
|
-
}, demoMode && /*#__PURE__*/_react
|
|
375
|
+
}, demoMode && /*#__PURE__*/_react["default"].createElement("div", {
|
|
398
376
|
style: {
|
|
399
377
|
alignSelf: 'top',
|
|
400
378
|
textAlign: 'center',
|
|
@@ -406,21 +384,21 @@ var Header = function Header(_ref) {
|
|
|
406
384
|
bottom: '22px',
|
|
407
385
|
width: '3.93rem'
|
|
408
386
|
}
|
|
409
|
-
}, "DEMO"), logoAndDropdownSeparate ? /*#__PURE__*/_react
|
|
387
|
+
}, "DEMO"), logoAndDropdownSeparate ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
410
388
|
className: prefixClass('cbx-header-third-container')
|
|
411
|
-
}, thirdBlockActions, !!onClickButtonFileManager && /*#__PURE__*/_react
|
|
389
|
+
}, thirdBlockActions, !!onClickButtonFileManager && /*#__PURE__*/_react["default"].createElement("div", {
|
|
412
390
|
className: prefixClass('cbx-header-third-button-notification-container-noSeparate')
|
|
413
|
-
}, /*#__PURE__*/_react
|
|
391
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
414
392
|
prefixClass: prefixClass,
|
|
415
393
|
color: "transparent",
|
|
416
394
|
Component: function Component() {
|
|
417
|
-
return /*#__PURE__*/_react
|
|
395
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
418
396
|
prefixClass: prefixClass,
|
|
419
|
-
"aria-label": "",
|
|
397
|
+
"aria-label": "Gestor de archivos",
|
|
420
398
|
id: 'cbx-header-third-button-buttonFileManager',
|
|
421
399
|
className: prefixClass('cbx-header-third-button-buttonFileManager'),
|
|
422
400
|
onClick: onClickButtonFileManager,
|
|
423
|
-
icon: buttonFileManagerIcon || /*#__PURE__*/_react
|
|
401
|
+
icon: buttonFileManagerIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
424
402
|
className: "ri-swap-line"
|
|
425
403
|
}),
|
|
426
404
|
progressAuto: buttonFileManagerProgressAutoDownload,
|
|
@@ -429,19 +407,19 @@ var Header = function Header(_ref) {
|
|
|
429
407
|
}, buttonFileManagerProps));
|
|
430
408
|
},
|
|
431
409
|
items: buttonFileManagerItems
|
|
432
|
-
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react
|
|
410
|
+
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
433
411
|
className: prefixClass('cbx-header-third-button-notification-container')
|
|
434
|
-
}, /*#__PURE__*/_react
|
|
412
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
435
413
|
prefixClass: prefixClass,
|
|
436
414
|
color: "transparent",
|
|
437
415
|
Component: function Component() {
|
|
438
|
-
return /*#__PURE__*/_react
|
|
416
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
439
417
|
prefixClass: prefixClass,
|
|
440
|
-
"aria-label": "",
|
|
418
|
+
"aria-label": "Notificaciones",
|
|
441
419
|
id: 'cbx-header-third-button-notification',
|
|
442
420
|
className: prefixClass('cbx-header-third-button-notification'),
|
|
443
421
|
onClick: onClickButtonNotification,
|
|
444
|
-
icon: buttonNotificationIcon || /*#__PURE__*/_react
|
|
422
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
445
423
|
className: "ri-notification-3-line"
|
|
446
424
|
}),
|
|
447
425
|
badge: buttonNotificationBadge
|
|
@@ -449,22 +427,22 @@ var Header = function Header(_ref) {
|
|
|
449
427
|
},
|
|
450
428
|
items: buttonNotificationIconItems,
|
|
451
429
|
closeOnOptionClick: true
|
|
452
|
-
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react
|
|
430
|
+
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
453
431
|
prefixClass: prefixClass,
|
|
454
432
|
"aria-label": "",
|
|
455
433
|
id: 'cbx-header-third-button-notification',
|
|
456
434
|
className: prefixClass('cbx-header-third-button-notification'),
|
|
457
435
|
onClick: onClickButtonNotification,
|
|
458
|
-
icon: buttonNotificationIcon || /*#__PURE__*/_react
|
|
436
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
459
437
|
className: "ri-notification-3-line"
|
|
460
438
|
}),
|
|
461
439
|
badge: buttonNotificationBadge
|
|
462
|
-
}, buttonNotificationProps)), (logoRight || logoRightXS) && (!itemsDropDownUser || iconButtonRight) && /*#__PURE__*/_react
|
|
440
|
+
}, buttonNotificationProps)), (logoRight || logoRightXS) && (!itemsDropDownUser || iconButtonRight) && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
463
441
|
id: 'cbx-header-third-logo-right',
|
|
464
442
|
className: prefixClass('cbx-header-third-logo-right'),
|
|
465
443
|
src: innerWidth < breakpoints.md ? logoRightXS || logoRight : logoRight,
|
|
466
|
-
alt:
|
|
467
|
-
})), !!iconButtonRight && !itemsDropDownUser && /*#__PURE__*/_react
|
|
444
|
+
alt: altLogoRight
|
|
445
|
+
})), !!iconButtonRight && !itemsDropDownUser && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
468
446
|
prefixClass: prefixClass,
|
|
469
447
|
"aria-label": "Button user",
|
|
470
448
|
id: 'cbx-header-third-button-user',
|
|
@@ -477,11 +455,11 @@ var Header = function Header(_ref) {
|
|
|
477
455
|
background: backgroundIconButtonRight
|
|
478
456
|
},
|
|
479
457
|
onClick: onClickIconButtonRight
|
|
480
|
-
}, iconButtonRightProps)), itemsDropDownUser && /*#__PURE__*/_react
|
|
458
|
+
}, iconButtonRightProps)), itemsDropDownUser && /*#__PURE__*/_react["default"].createElement("div", {
|
|
481
459
|
style: {
|
|
482
460
|
marginLeft: 'var(--spacing4)'
|
|
483
461
|
}
|
|
484
|
-
}, /*#__PURE__*/_react
|
|
462
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
485
463
|
prefixClass: prefixClass,
|
|
486
464
|
color: "transparent",
|
|
487
465
|
anchorOrigin: {
|
|
@@ -495,21 +473,21 @@ var Header = function Header(_ref) {
|
|
|
495
473
|
Component: renderlogoAndDropdownSeparated,
|
|
496
474
|
items: itemsDropDownUser,
|
|
497
475
|
closeOnOptionClick: true
|
|
498
|
-
}, itemsDropDownUserProps)))) : /*#__PURE__*/_react
|
|
476
|
+
}, itemsDropDownUserProps)))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
499
477
|
className: prefixClass('cbx-header-third-container')
|
|
500
|
-
}, thirdBlockActions, !!onClickButtonFileManager && /*#__PURE__*/_react
|
|
478
|
+
}, thirdBlockActions, !!onClickButtonFileManager && /*#__PURE__*/_react["default"].createElement("div", {
|
|
501
479
|
className: prefixClass('cbx-header-third-button-notification-container-noSeparate')
|
|
502
|
-
}, /*#__PURE__*/_react
|
|
480
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
503
481
|
prefixClass: prefixClass,
|
|
504
482
|
color: "transparent",
|
|
505
483
|
Component: function Component() {
|
|
506
|
-
return /*#__PURE__*/_react
|
|
484
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
507
485
|
prefixClass: prefixClass,
|
|
508
486
|
"aria-label": "",
|
|
509
487
|
id: 'cbx-header-third-button-buttonFileManager',
|
|
510
488
|
className: prefixClass('cbx-header-third-button-buttonFileManager'),
|
|
511
489
|
onClick: onClickButtonFileManager,
|
|
512
|
-
icon: buttonFileManagerIcon || /*#__PURE__*/_react
|
|
490
|
+
icon: buttonFileManagerIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
513
491
|
className: "ri-swap-line"
|
|
514
492
|
}),
|
|
515
493
|
progressAuto: buttonFileManagerProgressAutoDownload,
|
|
@@ -518,19 +496,19 @@ var Header = function Header(_ref) {
|
|
|
518
496
|
}, buttonFileManagerProps));
|
|
519
497
|
},
|
|
520
498
|
items: buttonFileManagerItems
|
|
521
|
-
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react
|
|
499
|
+
}, buttonFileManagerDropDownProps))), buttonNotificationIconItems ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
522
500
|
className: prefixClass('cbx-header-third-button-notification-container-noSeparate')
|
|
523
|
-
}, /*#__PURE__*/_react
|
|
501
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
524
502
|
prefixClass: prefixClass,
|
|
525
503
|
color: "transparent",
|
|
526
504
|
Component: function Component() {
|
|
527
|
-
return /*#__PURE__*/_react
|
|
505
|
+
return /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
528
506
|
prefixClass: prefixClass,
|
|
529
507
|
"aria-label": "",
|
|
530
508
|
id: 'cbx-header-third-button-notification',
|
|
531
509
|
className: prefixClass('cbx-header-third-button-notification'),
|
|
532
510
|
onClick: onClickButtonNotification,
|
|
533
|
-
icon: buttonNotificationIcon || /*#__PURE__*/_react
|
|
511
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
534
512
|
className: "ri-notification-3-line",
|
|
535
513
|
style: {
|
|
536
514
|
fontSize: '1.5rem'
|
|
@@ -541,20 +519,20 @@ var Header = function Header(_ref) {
|
|
|
541
519
|
},
|
|
542
520
|
items: buttonNotificationIconItems,
|
|
543
521
|
closeOnOptionClick: true
|
|
544
|
-
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react
|
|
522
|
+
}, buttonNotificationIconDropDownProps))) : onClickButtonNotification && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], _extends({
|
|
545
523
|
prefixClass: prefixClass,
|
|
546
524
|
"aria-label": "",
|
|
547
525
|
id: 'cbx-header-third-button-notification',
|
|
548
526
|
className: prefixClass('cbx-header-third-button-notification'),
|
|
549
527
|
onClick: onClickButtonNotification,
|
|
550
|
-
icon: buttonNotificationIcon || /*#__PURE__*/_react
|
|
528
|
+
icon: buttonNotificationIcon || /*#__PURE__*/_react["default"].createElement("i", {
|
|
551
529
|
className: "ri-notification-3-line",
|
|
552
530
|
style: {
|
|
553
531
|
fontSize: '1.5rem'
|
|
554
532
|
}
|
|
555
533
|
}),
|
|
556
534
|
badge: buttonNotificationBadge
|
|
557
|
-
}, buttonNotificationProps)), /*#__PURE__*/_react
|
|
535
|
+
}, buttonNotificationProps)), /*#__PURE__*/_react["default"].createElement(_DropDown["default"], _extends({
|
|
558
536
|
prefixClass: prefixClass,
|
|
559
537
|
color: "transparent",
|
|
560
538
|
anchorOrigin: {
|
|
@@ -570,43 +548,44 @@ var Header = function Header(_ref) {
|
|
|
570
548
|
closeOnOptionClick: true
|
|
571
549
|
}, itemsDropDownUserProps)))));
|
|
572
550
|
};
|
|
573
|
-
|
|
574
551
|
Header.displayName = "Header";
|
|
575
552
|
Header.propTypes = {
|
|
576
|
-
back: _propTypes
|
|
577
|
-
onClickIconButtonRight: _propTypes
|
|
578
|
-
dropdownLeft: _propTypes
|
|
579
|
-
logoLeft: _propTypes
|
|
580
|
-
logoLeftXS: _propTypes
|
|
581
|
-
title: _propTypes
|
|
582
|
-
lock: _propTypes
|
|
583
|
-
more: _propTypes
|
|
584
|
-
logoAndDropdownSeparate: _propTypes
|
|
585
|
-
sectionCenter: _propTypes
|
|
586
|
-
logoRight: _propTypes
|
|
587
|
-
logoRightXS: _propTypes
|
|
588
|
-
finish: _propTypes
|
|
589
|
-
onChangeSearch: _propTypes
|
|
590
|
-
textFinishButton: _propTypes
|
|
591
|
-
companyName: _propTypes
|
|
592
|
-
iconButtonRight: _propTypes
|
|
593
|
-
lockIcon: _propTypes
|
|
594
|
-
titleDropdownSearch: _propTypes
|
|
595
|
-
backgroundIconButtonRight: _propTypes
|
|
596
|
-
itemsDropDownUser: _propTypes
|
|
597
|
-
itemsDropDownSearch: _propTypes
|
|
598
|
-
itemsDropDownMore: _propTypes
|
|
599
|
-
dropdownLeftIcon: _propTypes
|
|
600
|
-
finishButtonVariant: _propTypes
|
|
601
|
-
finishButtonIcon: _propTypes
|
|
602
|
-
actionLogoLeft: _propTypes
|
|
603
|
-
demoMode: _propTypes
|
|
604
|
-
buttonNotificationIcon: _propTypes
|
|
605
|
-
buttonNotificationProps: _propTypes
|
|
606
|
-
buttonNotificationBadge: _propTypes
|
|
607
|
-
tooltipThirdDropdownUser: _propTypes
|
|
608
|
-
placementTooltipThirdDropdownUser: _propTypes
|
|
609
|
-
showTypographyLogoLeft: _propTypes
|
|
553
|
+
back: _propTypes["default"].any,
|
|
554
|
+
onClickIconButtonRight: _propTypes["default"].any,
|
|
555
|
+
dropdownLeft: _propTypes["default"].node,
|
|
556
|
+
logoLeft: _propTypes["default"].string,
|
|
557
|
+
logoLeftXS: _propTypes["default"].string,
|
|
558
|
+
title: _propTypes["default"].string,
|
|
559
|
+
lock: _propTypes["default"].bool,
|
|
560
|
+
more: _propTypes["default"].bool,
|
|
561
|
+
logoAndDropdownSeparate: _propTypes["default"].bool,
|
|
562
|
+
sectionCenter: _propTypes["default"].any,
|
|
563
|
+
logoRight: _propTypes["default"].string,
|
|
564
|
+
logoRightXS: _propTypes["default"].string,
|
|
565
|
+
finish: _propTypes["default"].any,
|
|
566
|
+
onChangeSearch: _propTypes["default"].func,
|
|
567
|
+
textFinishButton: _propTypes["default"].string,
|
|
568
|
+
companyName: _propTypes["default"].string,
|
|
569
|
+
iconButtonRight: _propTypes["default"].any,
|
|
570
|
+
lockIcon: _propTypes["default"].string,
|
|
571
|
+
titleDropdownSearch: _propTypes["default"].string,
|
|
572
|
+
backgroundIconButtonRight: _propTypes["default"].string,
|
|
573
|
+
itemsDropDownUser: _propTypes["default"].node,
|
|
574
|
+
itemsDropDownSearch: _propTypes["default"].node,
|
|
575
|
+
itemsDropDownMore: _propTypes["default"].node,
|
|
576
|
+
dropdownLeftIcon: _propTypes["default"].node,
|
|
577
|
+
finishButtonVariant: _propTypes["default"].node,
|
|
578
|
+
finishButtonIcon: _propTypes["default"].node,
|
|
579
|
+
actionLogoLeft: _propTypes["default"].func,
|
|
580
|
+
demoMode: _propTypes["default"].bool,
|
|
581
|
+
buttonNotificationIcon: _propTypes["default"].any,
|
|
582
|
+
buttonNotificationProps: _propTypes["default"].any,
|
|
583
|
+
buttonNotificationBadge: _propTypes["default"].bool,
|
|
584
|
+
tooltipThirdDropdownUser: _propTypes["default"].string,
|
|
585
|
+
placementTooltipThirdDropdownUser: _propTypes["default"].string,
|
|
586
|
+
showTypographyLogoLeft: _propTypes["default"].bool,
|
|
587
|
+
altLogoLeft: _propTypes["default"].string,
|
|
588
|
+
altLogoRight: _propTypes["default"].string
|
|
610
589
|
};
|
|
611
590
|
Header.defaultProps = {
|
|
612
591
|
back: '',
|
|
@@ -642,7 +621,9 @@ Header.defaultProps = {
|
|
|
642
621
|
buttonNotificationBadge: false,
|
|
643
622
|
tooltipThirdDropdownUser: '',
|
|
644
623
|
placementTooltipThirdDropdownUser: 'bottom',
|
|
645
|
-
showTypographyLogoLeft: false
|
|
624
|
+
showTypographyLogoLeft: false,
|
|
625
|
+
altLogoLeft: 'Main logo',
|
|
626
|
+
altLogoRight: 'Secondary logo'
|
|
646
627
|
};
|
|
647
628
|
var _default = Header;
|
|
648
|
-
exports
|
|
629
|
+
exports["default"] = _default;
|