@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,230 +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
|
-
require("./Modal.css");
|
|
13
|
-
|
|
14
|
-
var _material = require("@mui/material");
|
|
15
|
-
|
|
16
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
17
|
-
|
|
18
|
-
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
19
|
-
|
|
20
|
-
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
21
|
-
|
|
22
|
-
var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons", "hasScrollbar", "scrollbarHeight"];
|
|
23
|
-
|
|
24
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
|
-
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; }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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); }
|
|
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 Modal = function Modal(_ref) {
|
|
39
|
-
var title = _ref.title,
|
|
40
|
-
fullWidth = _ref.fullWidth,
|
|
41
|
-
_ref$id = _ref.id,
|
|
42
|
-
id = _ref$id === void 0 ? 'modal' : _ref$id,
|
|
43
|
-
fullScreen = _ref.fullScreen,
|
|
44
|
-
buttonAccept = _ref.buttonAccept,
|
|
45
|
-
buttonCancel = _ref.buttonCancel,
|
|
46
|
-
open = _ref.open,
|
|
47
|
-
requestClose = _ref.requestClose,
|
|
48
|
-
loadingAction = _ref.loadingAction,
|
|
49
|
-
acceptAction = _ref.acceptAction,
|
|
50
|
-
cancelAction = _ref.cancelAction,
|
|
51
|
-
body = _ref.body,
|
|
52
|
-
bodyText = _ref.bodyText,
|
|
53
|
-
hideAccept = _ref.hideAccept,
|
|
54
|
-
extraActions = _ref.extraActions,
|
|
55
|
-
classNameDialog = _ref.classNameDialog,
|
|
56
|
-
PaperProps = _ref.PaperProps,
|
|
57
|
-
widthModal = _ref.widthModal,
|
|
58
|
-
actions = _ref.actions,
|
|
59
|
-
sx = _ref.sx,
|
|
60
|
-
buttonCancelProps = _ref.buttonCancelProps,
|
|
61
|
-
buttonAcceptProps = _ref.buttonAcceptProps,
|
|
62
|
-
breakpointsButtons = _ref.breakpointsButtons,
|
|
63
|
-
hasScrollbar = _ref.hasScrollbar,
|
|
64
|
-
scrollbarHeight = _ref.scrollbarHeight,
|
|
65
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
66
|
-
|
|
67
|
-
var _useCouncilboxTheme = (0, _CouncilboxThemeContext.useCouncilboxTheme)(),
|
|
68
|
-
size = _useCouncilboxTheme.size,
|
|
69
|
-
innerWidth = _useCouncilboxTheme.innerWidth;
|
|
70
|
-
|
|
71
|
-
var buttons = /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
-
style: {
|
|
73
|
-
display: 'flex',
|
|
74
|
-
gap: innerWidth < breakpointsButtons ? 'var(--spacing12)' : 'var(--spacing8)',
|
|
75
|
-
flexDirection: innerWidth < breakpointsButtons && 'column',
|
|
76
|
-
width: innerWidth < breakpointsButtons && '100%'
|
|
77
|
-
}
|
|
78
|
-
}, !!buttonCancel && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
79
|
-
variant: "secondary",
|
|
80
|
-
text: buttonCancel,
|
|
81
|
-
id: "".concat(id, "-button-cancel"),
|
|
82
|
-
onClick: cancelAction || requestClose,
|
|
83
|
-
fullWidth: true
|
|
84
|
-
}, buttonCancelProps))), extraActions &&
|
|
85
|
-
/*#__PURE__*/
|
|
86
|
-
// extraActions siempre fullWidth
|
|
87
|
-
_react.default.createElement("div", null, extraActions), !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
88
|
-
text: buttonAccept,
|
|
89
|
-
id: "".concat(id, "-button-accept"),
|
|
90
|
-
loading: loadingAction,
|
|
91
|
-
onClick: acceptAction,
|
|
92
|
-
fullWidth: true
|
|
93
|
-
}, buttonAcceptProps))));
|
|
94
|
-
|
|
95
|
-
return /*#__PURE__*/_react.default.createElement(_material.Dialog, _extends({
|
|
96
|
-
className: classNameDialog,
|
|
97
|
-
fullWidth: size === 'sm' || size === 'xs' || fullWidth,
|
|
98
|
-
fullScreen: fullScreen,
|
|
99
|
-
id: id,
|
|
100
|
-
open: open || false,
|
|
101
|
-
onClose: requestClose,
|
|
102
|
-
PaperProps: {
|
|
103
|
-
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
104
|
-
filter: 'drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25))',
|
|
105
|
-
boxShadow: 'none',
|
|
106
|
-
maxWidth: '37.5rem'
|
|
107
|
-
}, hasScrollbar ? {
|
|
108
|
-
width: size === 'sm' || size === 'xs' ? '' : '100%',
|
|
109
|
-
height: scrollbarHeight || '100%'
|
|
110
|
-
} : {}), widthModal), PaperProps ? PaperProps.style : {}), size === 'sm' || size === 'xs' ? {
|
|
111
|
-
margin: 0
|
|
112
|
-
} : {})
|
|
113
|
-
},
|
|
114
|
-
sx: _objectSpread({
|
|
115
|
-
'& .MuiDialog-paperFullWidth': {
|
|
116
|
-
width: '100%',
|
|
117
|
-
minWidth: '100%'
|
|
118
|
-
},
|
|
119
|
-
'& .MuiDialog-paperFullWidth .MuiDialogContent-root': {
|
|
120
|
-
width: '100%',
|
|
121
|
-
minWidth: '100%'
|
|
122
|
-
}
|
|
123
|
-
}, sx)
|
|
124
|
-
}, props), !!requestClose && /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
style: {
|
|
126
|
-
position: 'absolute',
|
|
127
|
-
right: '26px',
|
|
128
|
-
top: '18px'
|
|
129
|
-
},
|
|
130
|
-
id: "alert-confirm-close",
|
|
131
|
-
onClick: requestClose
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
133
|
-
className: "ri-close-line",
|
|
134
|
-
style: {
|
|
135
|
-
fontSize: '1.5rem',
|
|
136
|
-
color: 'var(--gray3)',
|
|
137
|
-
cursor: 'pointer'
|
|
138
|
-
}
|
|
139
|
-
})), !!title && /*#__PURE__*/_react.default.createElement(_material.DialogTitle, {
|
|
140
|
-
component: 'span',
|
|
141
|
-
sx: {
|
|
142
|
-
paddingTop: '1.438rem',
|
|
143
|
-
paddingLeft: '2rem'
|
|
144
|
-
}
|
|
145
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
146
|
-
variant: "L",
|
|
147
|
-
fontWeight: '700',
|
|
148
|
-
color: 'var(--primary)',
|
|
149
|
-
styles: {
|
|
150
|
-
marginRight: '1.8rem'
|
|
151
|
-
}
|
|
152
|
-
}, title)), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
153
|
-
sx: {
|
|
154
|
-
minWidth: size === 'sm' || size === 'xs' ? '100%' : '25rem',
|
|
155
|
-
maxWidth: size === 'sm' || size === 'xs' ? '100%' : '37.5rem',
|
|
156
|
-
padding: '0 2rem',
|
|
157
|
-
overflow: 'hidden'
|
|
158
|
-
}
|
|
159
|
-
}, body || bodyText), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
160
|
-
className: "cbx-modal-contentButtons",
|
|
161
|
-
sx: {
|
|
162
|
-
padding: '1.5rem 2rem',
|
|
163
|
-
margin: '0px',
|
|
164
|
-
minWidth: '1.563rem',
|
|
165
|
-
display: 'flex',
|
|
166
|
-
flexFlow: 'row wrap'
|
|
167
|
-
}
|
|
168
|
-
}, buttons), actions && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
169
|
-
className: "cbx-modal-contentButtons",
|
|
170
|
-
sx: {
|
|
171
|
-
padding: '1.5rem 2rem',
|
|
172
|
-
margin: '0px',
|
|
173
|
-
minWidth: '1.563rem',
|
|
174
|
-
display: 'flex',
|
|
175
|
-
flexFlow: 'row wrap'
|
|
176
|
-
}
|
|
177
|
-
}, actions));
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
Modal.displayName = "Modal";
|
|
181
|
-
var _default = Modal;
|
|
182
|
-
exports.default = _default;
|
|
183
|
-
Modal.propTypes = {
|
|
184
|
-
title: _propTypes.default.string,
|
|
185
|
-
fullWidth: _propTypes.default.bool,
|
|
186
|
-
id: _propTypes.default.string,
|
|
187
|
-
fullScreen: _propTypes.default.bool,
|
|
188
|
-
buttonAccept: _propTypes.default.string,
|
|
189
|
-
buttonCancel: _propTypes.default.string,
|
|
190
|
-
open: _propTypes.default.bool,
|
|
191
|
-
requestClose: _propTypes.default.func,
|
|
192
|
-
loadingAction: _propTypes.default.bool,
|
|
193
|
-
acceptAction: _propTypes.default.func,
|
|
194
|
-
cancelAction: _propTypes.default.func,
|
|
195
|
-
body: _propTypes.default.node,
|
|
196
|
-
bodyText: _propTypes.default.node,
|
|
197
|
-
hideAccept: _propTypes.default.bool,
|
|
198
|
-
extraActions: _propTypes.default.node,
|
|
199
|
-
classNameDialog: _propTypes.default.string,
|
|
200
|
-
PaperProps: _propTypes.default.object,
|
|
201
|
-
widthModal: _propTypes.default.object,
|
|
202
|
-
actions: _propTypes.default.node,
|
|
203
|
-
breakpointsButtons: _propTypes.default.string,
|
|
204
|
-
hasScrollbar: _propTypes.default.bool,
|
|
205
|
-
scrollbarHeight: _propTypes.default.string
|
|
206
|
-
};
|
|
207
|
-
Modal.defaultProps = {
|
|
208
|
-
title: '',
|
|
209
|
-
fullWidth: false,
|
|
210
|
-
id: 'modal',
|
|
211
|
-
fullScreen: false,
|
|
212
|
-
buttonAccept: '',
|
|
213
|
-
buttonCancel: '',
|
|
214
|
-
open: false,
|
|
215
|
-
requestClose: undefined,
|
|
216
|
-
loadingAction: false,
|
|
217
|
-
acceptAction: undefined,
|
|
218
|
-
cancelAction: undefined,
|
|
219
|
-
body: '',
|
|
220
|
-
bodyText: '',
|
|
221
|
-
hideAccept: false,
|
|
222
|
-
extraActions: undefined,
|
|
223
|
-
classNameDialog: '',
|
|
224
|
-
PaperProps: {},
|
|
225
|
-
widthModal: {},
|
|
226
|
-
actions: undefined,
|
|
227
|
-
breakpointsButtons: '800',
|
|
228
|
-
hasScrollbar: false,
|
|
229
|
-
scrollbarHeight: '70%'
|
|
230
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.cbx-radio-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.cbx-radio-container:hover:before {
|
|
6
|
-
animation: ripple .6s ease;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cbx-radio-container:before {
|
|
10
|
-
content: "";
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
background-color: var(--accent25);
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
transform: scale(0);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@keyframes ripple {
|
|
22
|
-
from {
|
|
23
|
-
transform: scale(0);
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
to {
|
|
28
|
-
transform: scale(2.1);
|
|
29
|
-
opacity: .6;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,142 +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 _Radio = _interopRequireDefault(require("@mui/material/Radio"));
|
|
13
|
-
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
require("./Radio.css");
|
|
17
|
-
|
|
18
|
-
var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
|
|
19
|
-
|
|
20
|
-
var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
21
|
-
|
|
22
|
-
var _excluded = ["id", "className", "disabled", "indeterminate", "label", "onChange"];
|
|
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 _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; }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
var BpIcon = (0, _styled.default)('span')(function () {
|
|
33
|
-
return {
|
|
34
|
-
borderRadius: '50%',
|
|
35
|
-
width: 20,
|
|
36
|
-
height: 20,
|
|
37
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
38
|
-
backgroundColor: '#f5f8fa',
|
|
39
|
-
zIndex: '1',
|
|
40
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',
|
|
41
|
-
transition: '0.2s',
|
|
42
|
-
'.Mui-focusVisible &': {
|
|
43
|
-
outline: '0.125rem auto rgba(19,124,189,.6)',
|
|
44
|
-
outlineOffset: 2
|
|
45
|
-
},
|
|
46
|
-
'input:disabled ~ &': {
|
|
47
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
var BpCheckedIcon = (0, _styled.default)(BpIcon)({
|
|
52
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--primary)',
|
|
53
|
-
backgroundColor: 'var(--primary)',
|
|
54
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
55
|
-
'&:before': {
|
|
56
|
-
display: 'block',
|
|
57
|
-
width: 20,
|
|
58
|
-
height: 20,
|
|
59
|
-
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
|
60
|
-
content: '""'
|
|
61
|
-
},
|
|
62
|
-
'input:hover ~ &': {
|
|
63
|
-
backgroundColor: 'var(--primary)'
|
|
64
|
-
},
|
|
65
|
-
'input:disabled ~ &': {
|
|
66
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
67
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
68
|
-
backgroundColor: 'var(--gray3)'
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
var CssFormControlLabel = (0, _styled.default)(_FormControlLabel.default)(function () {
|
|
72
|
-
return {
|
|
73
|
-
'& .MuiFormControlLabel-label': {
|
|
74
|
-
marginLeft: 'var(--spacing12)',
|
|
75
|
-
transition: '0.2s'
|
|
76
|
-
},
|
|
77
|
-
'& .MuiRadio-root.Mui-disabled': {
|
|
78
|
-
color: '#acadce'
|
|
79
|
-
},
|
|
80
|
-
'& .MuiRadio-root': {
|
|
81
|
-
transition: 'all .2s'
|
|
82
|
-
},
|
|
83
|
-
'& .MuiRadio-root.Mui-checked + span': {
|
|
84
|
-
color: 'var(--primary)',
|
|
85
|
-
fontWeight: '700'
|
|
86
|
-
},
|
|
87
|
-
'& .MuiRadio-root.Mui-disabled.Mui-checked + span': {
|
|
88
|
-
color: 'var(--gray3)',
|
|
89
|
-
fontWeight: '700'
|
|
90
|
-
},
|
|
91
|
-
'.MuiButtonBase-root.Mui-disabled, .MuiFormControlLabel-label.Mui-disabled': {
|
|
92
|
-
color: 'var(--gray3)',
|
|
93
|
-
fontWeight: '700'
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
var Radio = function Radio(_ref) {
|
|
99
|
-
var id = _ref.id,
|
|
100
|
-
className = _ref.className,
|
|
101
|
-
disabled = _ref.disabled,
|
|
102
|
-
indeterminate = _ref.indeterminate,
|
|
103
|
-
label = _ref.label,
|
|
104
|
-
onChange = _ref.onChange,
|
|
105
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
106
|
-
|
|
107
|
-
return /*#__PURE__*/_react.default.createElement(CssFormControlLabel, _extends({
|
|
108
|
-
id: id,
|
|
109
|
-
className: className,
|
|
110
|
-
style: {
|
|
111
|
-
margin: '0px'
|
|
112
|
-
},
|
|
113
|
-
onChange: onChange,
|
|
114
|
-
control: /*#__PURE__*/_react.default.createElement(_Radio.default, {
|
|
115
|
-
className: 'cbx-radio-container',
|
|
116
|
-
indeterminate: indeterminate,
|
|
117
|
-
style: {
|
|
118
|
-
padding: '0px'
|
|
119
|
-
},
|
|
120
|
-
checkedIcon: /*#__PURE__*/_react.default.createElement(BpCheckedIcon, null),
|
|
121
|
-
icon: /*#__PURE__*/_react.default.createElement(BpIcon, null)
|
|
122
|
-
}),
|
|
123
|
-
disabled: disabled,
|
|
124
|
-
label: label
|
|
125
|
-
}, props));
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
Radio.displayName = "Radio";
|
|
129
|
-
Radio.propTypes = {
|
|
130
|
-
onChange: _propTypes.default.func,
|
|
131
|
-
disabled: _propTypes.default.bool,
|
|
132
|
-
indeterminate: _propTypes.default.bool,
|
|
133
|
-
label: _propTypes.default.string
|
|
134
|
-
};
|
|
135
|
-
Radio.defaultProps = {
|
|
136
|
-
onChange: undefined,
|
|
137
|
-
disabled: false,
|
|
138
|
-
indeterminate: false,
|
|
139
|
-
label: ''
|
|
140
|
-
};
|
|
141
|
-
var _default = Radio;
|
|
142
|
-
exports.default = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.cbx-selectInput-items-center {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.cbx-selectInput-infoBtn {
|
|
7
|
-
margin-right: var(--spacing4);
|
|
8
|
-
height: 0.875rem;
|
|
9
|
-
line-height: 1.1;
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cbx-selectInput-fullwidth ul li {
|
|
14
|
-
width: 100%!important;
|
|
15
|
-
min-width: 100%!important;
|
|
16
|
-
max-width: 100%!important;
|
|
17
|
-
}
|