@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,233 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
require("./DrawerPanel.css");
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var _AppBar = _interopRequireDefault(require("@mui/material/AppBar"));
|
|
15
|
-
|
|
16
|
-
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
17
|
-
|
|
18
|
-
var _DialogContent = _interopRequireDefault(require("@mui/material/DialogContent"));
|
|
19
|
-
|
|
20
|
-
var _Icon = _interopRequireDefault(require("@mui/material/Icon"));
|
|
21
|
-
|
|
22
|
-
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
23
|
-
|
|
24
|
-
var _Slide = _interopRequireDefault(require("@mui/material/Slide"));
|
|
25
|
-
|
|
26
|
-
var _Toolbar = _interopRequireDefault(require("@mui/material/Toolbar"));
|
|
27
|
-
|
|
28
|
-
var _material = require("@mui/material");
|
|
29
|
-
|
|
30
|
-
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
31
|
-
|
|
32
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
33
|
-
|
|
34
|
-
var _excluded = ["title", "id", "fullScreen", "sizeContainer", "buttonAccept", "successAction", "open", "requestClose", "loadingAction", "acceptAction", "bodyText", "bodyStyle", "hideAccept", "classNameDialog", "PaperProps", "widthModal", "isMobile", "tabs", "onChange", "titleStyles", "subTitle", "subTitleStyles", "endIcon", "propsButton"];
|
|
35
|
-
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
-
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39
|
-
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
49
|
-
|
|
50
|
-
var Transition = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(_Slide.default, _extends({
|
|
52
|
-
direction: "left",
|
|
53
|
-
ref: ref
|
|
54
|
-
}, props));
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
var DrawerPanel = function DrawerPanel(_ref) {
|
|
58
|
-
var title = _ref.title,
|
|
59
|
-
_ref$id = _ref.id,
|
|
60
|
-
id = _ref$id === void 0 ? 'panel-confirm' : _ref$id,
|
|
61
|
-
fullScreen = _ref.fullScreen,
|
|
62
|
-
sizeContainer = _ref.sizeContainer,
|
|
63
|
-
buttonAccept = _ref.buttonAccept,
|
|
64
|
-
_ref$successAction = _ref.successAction,
|
|
65
|
-
successAction = _ref$successAction === void 0 ? false : _ref$successAction,
|
|
66
|
-
open = _ref.open,
|
|
67
|
-
requestClose = _ref.requestClose,
|
|
68
|
-
loadingAction = _ref.loadingAction,
|
|
69
|
-
acceptAction = _ref.acceptAction,
|
|
70
|
-
bodyText = _ref.bodyText,
|
|
71
|
-
_ref$bodyStyle = _ref.bodyStyle,
|
|
72
|
-
bodyStyle = _ref$bodyStyle === void 0 ? {} : _ref$bodyStyle,
|
|
73
|
-
hideAccept = _ref.hideAccept,
|
|
74
|
-
classNameDialog = _ref.classNameDialog,
|
|
75
|
-
PaperProps = _ref.PaperProps,
|
|
76
|
-
widthModal = _ref.widthModal,
|
|
77
|
-
isMobile = _ref.isMobile,
|
|
78
|
-
tabs = _ref.tabs,
|
|
79
|
-
onChange = _ref.onChange,
|
|
80
|
-
titleStyles = _ref.titleStyles,
|
|
81
|
-
subTitle = _ref.subTitle,
|
|
82
|
-
subTitleStyles = _ref.subTitleStyles,
|
|
83
|
-
endIcon = _ref.endIcon,
|
|
84
|
-
propsButton = _ref.propsButton,
|
|
85
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
86
|
-
|
|
87
|
-
return /*#__PURE__*/_react.default.createElement(_Dialog.default, _extends({
|
|
88
|
-
TransitionComponent: Transition,
|
|
89
|
-
className: "".concat(classNameDialog, " cbx-DrawerPanel-dialog"),
|
|
90
|
-
fullScreen: true,
|
|
91
|
-
maxWidth: false,
|
|
92
|
-
id: id,
|
|
93
|
-
open: open || false,
|
|
94
|
-
onClose: requestClose,
|
|
95
|
-
sx: {
|
|
96
|
-
'& .MuiDialog-container': {
|
|
97
|
-
width: isMobile || fullScreen ? '100%' : sizeContainer === 'SM' ? '40%' : '80%',
|
|
98
|
-
maxWidth: '75rem',
|
|
99
|
-
justifyContent: 'flex-end'
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
PaperProps: {
|
|
103
|
-
style: _objectSpread(_objectSpread(_objectSpread({
|
|
104
|
-
maxWidth: !isMobile && !fullScreen && '1600px'
|
|
105
|
-
}, widthModal), PaperProps ? PaperProps.style : {}), isMobile ? {
|
|
106
|
-
margin: 0
|
|
107
|
-
} : {})
|
|
108
|
-
}
|
|
109
|
-
}, props), /*#__PURE__*/_react.default.createElement(_AppBar.default, {
|
|
110
|
-
sx: {
|
|
111
|
-
position: 'relative',
|
|
112
|
-
flexDirection: 'row',
|
|
113
|
-
alignItems: 'center',
|
|
114
|
-
backgroundColor: 'var(--primary)'
|
|
115
|
-
},
|
|
116
|
-
elevation: 0
|
|
117
|
-
}, !!requestClose && /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
118
|
-
className: "cbx-DrawerPanel-toolbar"
|
|
119
|
-
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
120
|
-
edge: "end",
|
|
121
|
-
id: "".concat(id, "-close"),
|
|
122
|
-
className: "cbx-DrawerPanel-iconButton",
|
|
123
|
-
onClick: requestClose
|
|
124
|
-
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
125
|
-
className: 'cbx-DrawerPanel-icon ri-close-line'
|
|
126
|
-
}))), !!title && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
127
|
-
variant: "M",
|
|
128
|
-
color: 'white',
|
|
129
|
-
className: 'cbx-DrawerPanel-typography',
|
|
130
|
-
fontWeight: 'bold',
|
|
131
|
-
styles: _objectSpread({
|
|
132
|
-
fontSize: '1.125rem'
|
|
133
|
-
}, titleStyles)
|
|
134
|
-
}, title, !!subTitle && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
135
|
-
variant: "M",
|
|
136
|
-
color: 'white',
|
|
137
|
-
styles: _objectSpread({
|
|
138
|
-
fontSize: '1.125rem',
|
|
139
|
-
paddingLeft: '24px'
|
|
140
|
-
}, subTitleStyles),
|
|
141
|
-
component: 'span'
|
|
142
|
-
}, subTitle)), /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
143
|
-
className: 'cbx-DrawerPanel-toolbar'
|
|
144
|
-
}, !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
145
|
-
text: buttonAccept,
|
|
146
|
-
id: "".concat(id, "-button-accept"),
|
|
147
|
-
loading: loadingAction,
|
|
148
|
-
success: successAction,
|
|
149
|
-
onClick: acceptAction,
|
|
150
|
-
variant: 'secondaryDark',
|
|
151
|
-
endIcon: endIcon
|
|
152
|
-
}, propsButton)))), /*#__PURE__*/_react.default.createElement(_AppBar.default, {
|
|
153
|
-
sx: {
|
|
154
|
-
position: 'relative',
|
|
155
|
-
flexDirection: 'row',
|
|
156
|
-
backgroundColor: 'var(--primary)'
|
|
157
|
-
},
|
|
158
|
-
elevation: 0
|
|
159
|
-
}, tabs.length > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
160
|
-
className: 'cbx-DrawerPanel-container-tabs'
|
|
161
|
-
}, /*#__PURE__*/_react.default.createElement(_material.Tabs, {
|
|
162
|
-
indicatorColor: "secondary",
|
|
163
|
-
textColor: "secondary",
|
|
164
|
-
onChange: onChange,
|
|
165
|
-
value: tabs.findIndex(function (tab) {
|
|
166
|
-
return tab.active;
|
|
167
|
-
}),
|
|
168
|
-
variant: "scrollable",
|
|
169
|
-
scrollButtons: "auto"
|
|
170
|
-
}, tabs.map(function (tab, index) {
|
|
171
|
-
return /*#__PURE__*/_react.default.createElement(_material.Tab, {
|
|
172
|
-
label: tab.label,
|
|
173
|
-
key: index,
|
|
174
|
-
className: "cbx-DrawerPanel-tabs ".concat(!tab.active ? 'cbx-DrawerPanel-tabs-opacity' : ''),
|
|
175
|
-
sx: _objectSpread({}, !tab.active ? {
|
|
176
|
-
opacity: '50% !important'
|
|
177
|
-
} : {})
|
|
178
|
-
});
|
|
179
|
-
})))), /*#__PURE__*/_react.default.createElement(_DialogContent.default, {
|
|
180
|
-
className: 'cbx-DrawerPanel-dialogContent',
|
|
181
|
-
style: _objectSpread({}, bodyStyle)
|
|
182
|
-
}, bodyText));
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
DrawerPanel.displayName = "DrawerPanel";
|
|
186
|
-
DrawerPanel.propTypes = {
|
|
187
|
-
open: _propTypes.default.bool,
|
|
188
|
-
title: _propTypes.default.string,
|
|
189
|
-
id: _propTypes.default.string,
|
|
190
|
-
fullScreen: _propTypes.default.bool,
|
|
191
|
-
sizeContainer: _propTypes.default.string,
|
|
192
|
-
buttonAccept: _propTypes.default.string,
|
|
193
|
-
successAction: _propTypes.default.bool,
|
|
194
|
-
requestClose: _propTypes.default.func,
|
|
195
|
-
loadingAction: _propTypes.default.bool,
|
|
196
|
-
acceptAction: _propTypes.default.func,
|
|
197
|
-
bodyText: _propTypes.default.any,
|
|
198
|
-
bodyStyle: _propTypes.default.object,
|
|
199
|
-
hideAccept: _propTypes.default.bool,
|
|
200
|
-
classNameDialog: _propTypes.default.string,
|
|
201
|
-
PaperProps: _propTypes.default.object,
|
|
202
|
-
widthModal: _propTypes.default.object,
|
|
203
|
-
isMobile: _propTypes.default.bool,
|
|
204
|
-
loadingColor: _propTypes.default.string,
|
|
205
|
-
tabs: _propTypes.default.array,
|
|
206
|
-
onChange: _propTypes.default.func,
|
|
207
|
-
titleStyles: _propTypes.default.object
|
|
208
|
-
};
|
|
209
|
-
DrawerPanel.defaultProps = {
|
|
210
|
-
open: true,
|
|
211
|
-
title: 'title',
|
|
212
|
-
id: '',
|
|
213
|
-
fullScreen: false,
|
|
214
|
-
sizeContainer: '',
|
|
215
|
-
buttonAccept: '',
|
|
216
|
-
successAction: false,
|
|
217
|
-
requestClose: undefined,
|
|
218
|
-
loadingAction: false,
|
|
219
|
-
acceptAction: undefined,
|
|
220
|
-
bodyText: undefined,
|
|
221
|
-
bodyStyle: undefined,
|
|
222
|
-
hideAccept: false,
|
|
223
|
-
classNameDialog: '',
|
|
224
|
-
PaperProps: undefined,
|
|
225
|
-
widthModal: undefined,
|
|
226
|
-
isMobile: false,
|
|
227
|
-
loadingColor: 'white',
|
|
228
|
-
tabs: [],
|
|
229
|
-
onChange: undefined,
|
|
230
|
-
titleStyles: undefined
|
|
231
|
-
};
|
|
232
|
-
var _default = DrawerPanel;
|
|
233
|
-
exports.default = _default;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
var _Popover = _interopRequireDefault(require("@mui/material/Popover"));
|
|
15
|
-
|
|
16
|
-
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
17
|
-
|
|
18
|
-
require("../../styles/main.css");
|
|
19
|
-
|
|
20
|
-
require("./DropDown.css");
|
|
21
|
-
|
|
22
|
-
var _excluded = ["text", "Component", "items", "id", "type", "open", "icon", "requestClose", "anchorOrigin", "paperPropsStyles", "transformOrigin", "styleComponent", "variantButton", "stylesButtonText", "sxButton", "forceClose"];
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
-
|
|
32
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
-
|
|
34
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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
|
-
|
|
40
|
-
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 _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
43
|
-
|
|
44
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
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
|
-
|
|
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
|
-
|
|
54
|
-
var DropDown = function DropDown(_ref) {
|
|
55
|
-
var text = _ref.text,
|
|
56
|
-
Component = _ref.Component,
|
|
57
|
-
items = _ref.items,
|
|
58
|
-
id = _ref.id,
|
|
59
|
-
type = _ref.type,
|
|
60
|
-
open = _ref.open,
|
|
61
|
-
icon = _ref.icon,
|
|
62
|
-
requestClose = _ref.requestClose,
|
|
63
|
-
anchorOrigin = _ref.anchorOrigin,
|
|
64
|
-
paperPropsStyles = _ref.paperPropsStyles,
|
|
65
|
-
transformOrigin = _ref.transformOrigin,
|
|
66
|
-
styleComponent = _ref.styleComponent,
|
|
67
|
-
variantButton = _ref.variantButton,
|
|
68
|
-
stylesButtonText = _ref.stylesButtonText,
|
|
69
|
-
sxButton = _ref.sxButton,
|
|
70
|
-
forceClose = _ref.forceClose,
|
|
71
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
72
|
-
|
|
73
|
-
var _React$useState = _react.default.useState(null),
|
|
74
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
75
|
-
anchorEl = _React$useState2[0],
|
|
76
|
-
setAnchorEl = _React$useState2[1];
|
|
77
|
-
|
|
78
|
-
_react.default.useEffect(function () {
|
|
79
|
-
if (open) {
|
|
80
|
-
setAnchorEl(open);
|
|
81
|
-
} else {
|
|
82
|
-
setAnchorEl(null);
|
|
83
|
-
}
|
|
84
|
-
}, [open]);
|
|
85
|
-
|
|
86
|
-
var handleClick = function handleClick(event) {
|
|
87
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
88
|
-
setAnchorEl(event === null || event === void 0 ? void 0 : event.currentTarget);
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
var handleClose = function handleClose(event) {
|
|
92
|
-
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
93
|
-
|
|
94
|
-
if (requestClose) {
|
|
95
|
-
requestClose();
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
setAnchorEl(null);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
_react.default.useEffect(function () {
|
|
102
|
-
setAnchorEl(null);
|
|
103
|
-
}, [forceClose]);
|
|
104
|
-
|
|
105
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, Component ? /*#__PURE__*/_react.default.createElement("div", {
|
|
106
|
-
onClick: function onClick(e) {
|
|
107
|
-
return handleClick(e);
|
|
108
|
-
},
|
|
109
|
-
id: id,
|
|
110
|
-
className: "cbx-dropdown-component-container",
|
|
111
|
-
style: _objectSpread({}, styleComponent)
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(Component, null)) : /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
113
|
-
variant: variantButton,
|
|
114
|
-
type: type,
|
|
115
|
-
id: id,
|
|
116
|
-
onClick: function onClick(e) {
|
|
117
|
-
return handleClick(e);
|
|
118
|
-
},
|
|
119
|
-
icon: icon,
|
|
120
|
-
text: text,
|
|
121
|
-
stylesButton: _objectSpread({}, stylesButtonText),
|
|
122
|
-
sx: _objectSpread({}, sxButton)
|
|
123
|
-
}), /*#__PURE__*/_react.default.createElement(_Popover.default, _extends({
|
|
124
|
-
type: type,
|
|
125
|
-
PaperProps: {
|
|
126
|
-
style: _objectSpread({}, paperPropsStyles)
|
|
127
|
-
},
|
|
128
|
-
id: id,
|
|
129
|
-
open: Boolean(anchorEl),
|
|
130
|
-
anchorEl: anchorEl,
|
|
131
|
-
onClose: function onClose(e) {
|
|
132
|
-
return handleClose(e);
|
|
133
|
-
},
|
|
134
|
-
anchorOrigin: _objectSpread({
|
|
135
|
-
vertical: 'bottom',
|
|
136
|
-
horizontal: 'left'
|
|
137
|
-
}, anchorOrigin),
|
|
138
|
-
transformOrigin: transformOrigin,
|
|
139
|
-
sx: {
|
|
140
|
-
'& .MuiPopover-root .MuiButtonBase-root-MuiMenuItem-root:hover': {
|
|
141
|
-
background: 'var(--gray1)'
|
|
142
|
-
},
|
|
143
|
-
'& .MuiPopover-paper': {
|
|
144
|
-
boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)'
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}, props), /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
-
onClick: function onClick(e) {
|
|
149
|
-
return props.persistent ? function () {} : handleClose(e);
|
|
150
|
-
}
|
|
151
|
-
}, items)));
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
DropDown.displayName = "DropDown";
|
|
155
|
-
DropDown.propTypes = {
|
|
156
|
-
id: _propTypes.default.string,
|
|
157
|
-
text: _propTypes.default.node,
|
|
158
|
-
items: _propTypes.default.node,
|
|
159
|
-
type: _propTypes.default.string,
|
|
160
|
-
open: _propTypes.default.bool,
|
|
161
|
-
icon: _propTypes.default.node,
|
|
162
|
-
requestClose: _propTypes.default.func,
|
|
163
|
-
anchorOrigin: _propTypes.default.object,
|
|
164
|
-
paperPropsStyles: _propTypes.default.object,
|
|
165
|
-
transformOrigin: _propTypes.default.object,
|
|
166
|
-
styleComponent: _propTypes.default.object,
|
|
167
|
-
sxButton: _propTypes.default.object,
|
|
168
|
-
variantButton: _propTypes.default.string
|
|
169
|
-
};
|
|
170
|
-
DropDown.defaultProps = {
|
|
171
|
-
id: '',
|
|
172
|
-
text: null,
|
|
173
|
-
items: null,
|
|
174
|
-
type: '',
|
|
175
|
-
open: null,
|
|
176
|
-
icon: null,
|
|
177
|
-
requestClose: undefined,
|
|
178
|
-
anchorOrigin: undefined,
|
|
179
|
-
paperPropsStyles: undefined,
|
|
180
|
-
transformOrigin: undefined,
|
|
181
|
-
styleComponent: undefined,
|
|
182
|
-
sxButton: undefined,
|
|
183
|
-
variantButton: ''
|
|
184
|
-
};
|
|
185
|
-
var _default = DropDown;
|
|
186
|
-
exports.default = _default;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
require("../../styles/main.css");
|
|
11
|
-
|
|
12
|
-
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
// import PropTypes from 'prop-types';
|
|
17
|
-
var GridItem = function GridItem(_ref) {
|
|
18
|
-
var children = _ref.children,
|
|
19
|
-
lg = _ref.lg,
|
|
20
|
-
md = _ref.md,
|
|
21
|
-
xs = _ref.xs,
|
|
22
|
-
style = _ref.style,
|
|
23
|
-
onClick = _ref.onClick,
|
|
24
|
-
_ref$className = _ref.className,
|
|
25
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
26
|
-
alignContent = _ref.alignContent;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
28
|
-
item: true,
|
|
29
|
-
xs: xs,
|
|
30
|
-
md: md,
|
|
31
|
-
lg: lg,
|
|
32
|
-
style: style,
|
|
33
|
-
onClick: onClick,
|
|
34
|
-
className: className,
|
|
35
|
-
alignContent: alignContent
|
|
36
|
-
}, children);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
GridItem.displayName = "GridItem";
|
|
40
|
-
GridItem.propTypes = {};
|
|
41
|
-
GridItem.defaultProps = {};
|
|
42
|
-
var _default = GridItem;
|
|
43
|
-
exports.default = _default;
|
|
File without changes
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _Grid = _interopRequireDefault(require("@mui/material/Grid"));
|
|
13
|
-
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
|
-
var Grid = function Grid(_ref) {
|
|
19
|
-
var children = _ref.children,
|
|
20
|
-
alignItems = _ref.alignItems,
|
|
21
|
-
alignContent = _ref.alignContent,
|
|
22
|
-
style = _ref.style,
|
|
23
|
-
spacing = _ref.spacing,
|
|
24
|
-
className = _ref.className,
|
|
25
|
-
onClick = _ref.onClick,
|
|
26
|
-
justify = _ref.justify,
|
|
27
|
-
id = _ref.id,
|
|
28
|
-
onKeyUp = _ref.onKeyUp;
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_Grid.default, {
|
|
30
|
-
id: id,
|
|
31
|
-
classes: {
|
|
32
|
-
container: className
|
|
33
|
-
},
|
|
34
|
-
container: true,
|
|
35
|
-
justify: justify,
|
|
36
|
-
alignItems: alignItems,
|
|
37
|
-
alignContent: alignContent,
|
|
38
|
-
onKeyUp: onKeyUp,
|
|
39
|
-
onClick: onClick,
|
|
40
|
-
style: style,
|
|
41
|
-
spacing: spacing
|
|
42
|
-
}, children);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
Grid.displayName = "Grid";
|
|
46
|
-
Grid.propTypes = {
|
|
47
|
-
spacing: _propTypes.default.number
|
|
48
|
-
};
|
|
49
|
-
Grid.defaultProps = {
|
|
50
|
-
spacing: 2
|
|
51
|
-
};
|
|
52
|
-
var _default = Grid;
|
|
53
|
-
exports.default = _default;
|
|
File without changes
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
13
|
-
|
|
14
|
-
var _Badge = _interopRequireDefault(require("@mui/material/Badge"));
|
|
15
|
-
|
|
16
|
-
require("../../styles/main.css");
|
|
17
|
-
|
|
18
|
-
require("./IconButtonOld.css");
|
|
19
|
-
|
|
20
|
-
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
21
|
-
|
|
22
|
-
var _excluded = ["id", "className", "onClick", "icon", "backgroundColor", "styles", "badge", "classNameBadge", "rounded", "tooltip", "placementTooltip", "disabled", "hoverColor", "type", "inModal"];
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
-
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
|
-
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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
|
-
|
|
38
|
-
var IconButton = function IconButton(_ref) {
|
|
39
|
-
var id = _ref.id,
|
|
40
|
-
className = _ref.className,
|
|
41
|
-
onClick = _ref.onClick,
|
|
42
|
-
icon = _ref.icon,
|
|
43
|
-
backgroundColor = _ref.backgroundColor,
|
|
44
|
-
styles = _ref.styles,
|
|
45
|
-
badge = _ref.badge,
|
|
46
|
-
classNameBadge = _ref.classNameBadge,
|
|
47
|
-
rounded = _ref.rounded,
|
|
48
|
-
tooltip = _ref.tooltip,
|
|
49
|
-
placementTooltip = _ref.placementTooltip,
|
|
50
|
-
disabled = _ref.disabled,
|
|
51
|
-
hoverColor = _ref.hoverColor,
|
|
52
|
-
type = _ref.type,
|
|
53
|
-
inModal = _ref.inModal,
|
|
54
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
55
|
-
|
|
56
|
-
var getIcon = function getIcon() {
|
|
57
|
-
return /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
58
|
-
title: tooltip || '',
|
|
59
|
-
placement: placementTooltip
|
|
60
|
-
}, icon);
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
return /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
64
|
-
id: id,
|
|
65
|
-
className: "".concat(className || '', " ").concat(type === 'fab' ? 'cbx-fabButton' : ''),
|
|
66
|
-
onClick: onClick,
|
|
67
|
-
disabled: disabled,
|
|
68
|
-
sx: _objectSpread(_objectSpread({
|
|
69
|
-
width: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' ? 'var(--spacing56)' : 'var(--spacing40)',
|
|
70
|
-
height: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' ? 'var(--spacing56)' : 'var(--spacing40)',
|
|
71
|
-
boxShadow: (type === null || type === void 0 ? void 0 : type.toLowerCase()) === 'fab' && '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
72
|
-
fontSize: 'var(--spacing24)',
|
|
73
|
-
color: 'var(--gray3)',
|
|
74
|
-
background: backgroundColor
|
|
75
|
-
}, rounded ? {
|
|
76
|
-
border: disabled ? '2px solid rgba(0,0,0,0.26)' : '2px solid var(--primary)',
|
|
77
|
-
color: 'var(--primary)'
|
|
78
|
-
} : {}), {}, {
|
|
79
|
-
'&:focus': {
|
|
80
|
-
outline: 'none!important'
|
|
81
|
-
},
|
|
82
|
-
'&&:hover': {
|
|
83
|
-
backgroundColor: hoverColor
|
|
84
|
-
},
|
|
85
|
-
zIndex: inModal && '1120',
|
|
86
|
-
'&.MuiButtonBase-root.cbx-fabButton i': {
|
|
87
|
-
color: 'white'
|
|
88
|
-
},
|
|
89
|
-
'&.MuiButtonBase-root.MuiIconButton-root.Mui-disabled.cbx-fabButton': {
|
|
90
|
-
background: type === 'fab' && 'var(--gray3)'
|
|
91
|
-
}
|
|
92
|
-
}, styles)
|
|
93
|
-
}, props), badge ? /*#__PURE__*/_react.default.createElement(_Badge.default, {
|
|
94
|
-
badgeContent: Number.parseInt(badge, 10) || ' ',
|
|
95
|
-
variant: !Number.parseInt(badge, 10) && 'dot',
|
|
96
|
-
className: classNameBadge,
|
|
97
|
-
sx: {
|
|
98
|
-
'& .MuiBadge-dot': {
|
|
99
|
-
background: !Number.parseInt(badge, 10) && 'var(--error)!important',
|
|
100
|
-
right: '-0.5rem',
|
|
101
|
-
top: '-0.25rem'
|
|
102
|
-
},
|
|
103
|
-
'& .MuiBadge-badge ': {
|
|
104
|
-
background: 'var(--secondary)'
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}, getIcon()) : getIcon());
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
IconButton.displayName = "IconButton";
|
|
111
|
-
IconButton.propTypes = {
|
|
112
|
-
id: _propTypes.default.string,
|
|
113
|
-
className: _propTypes.default.string,
|
|
114
|
-
onClick: _propTypes.default.func,
|
|
115
|
-
icon: _propTypes.default.node,
|
|
116
|
-
backgroundColor: _propTypes.default.string,
|
|
117
|
-
badge: _propTypes.default.any,
|
|
118
|
-
tooltip: _propTypes.default.string,
|
|
119
|
-
placementTooltip: _propTypes.default.string,
|
|
120
|
-
type: _propTypes.default.string,
|
|
121
|
-
hoverColor: _propTypes.default.string,
|
|
122
|
-
disabled: _propTypes.default.bool
|
|
123
|
-
};
|
|
124
|
-
IconButton.defaultProps = {
|
|
125
|
-
id: '',
|
|
126
|
-
className: '',
|
|
127
|
-
onClick: Function.prototype,
|
|
128
|
-
icon: undefined,
|
|
129
|
-
backgroundColor: '',
|
|
130
|
-
badge: false,
|
|
131
|
-
tooltip: '',
|
|
132
|
-
placementTooltip: 'bottom',
|
|
133
|
-
type: '',
|
|
134
|
-
hoverColor: '',
|
|
135
|
-
disabled: false
|
|
136
|
-
};
|
|
137
|
-
var _default = IconButton;
|
|
138
|
-
exports.default = _default;
|