@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,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
|
-
require("../../styles/main.css");
|
|
13
|
-
|
|
14
|
-
var _Avatar = _interopRequireDefault(require("@mui/material/Avatar"));
|
|
15
|
-
|
|
16
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
17
|
-
|
|
18
|
-
require("./Avatar.css");
|
|
19
|
-
|
|
20
|
-
var _excluded = ["backgroundColor", "text", "src", "label", "colorText", "variantText", "fontWeightText", "textAlignText", "variantLabel", "colorLabel", "fontWeightLabel", "textAlignLabel", "sizeAvatar", "sizeText"];
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
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); }
|
|
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 _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; }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
var stylesAvatar = {
|
|
37
|
-
SM: {
|
|
38
|
-
width: 'var(--spacing32)',
|
|
39
|
-
height: 'var(--spacing32)'
|
|
40
|
-
},
|
|
41
|
-
XS: {
|
|
42
|
-
width: 'var(--spacing24)',
|
|
43
|
-
height: 'var(--spacing24)'
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var stylesAvatarLabel = {
|
|
47
|
-
SM: {
|
|
48
|
-
width: 'var(--spacing24)',
|
|
49
|
-
height: 'var(--spacing24)'
|
|
50
|
-
},
|
|
51
|
-
XS: {
|
|
52
|
-
width: 'var(--spacing24)',
|
|
53
|
-
height: 'var(--spacing24)'
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
var Avatar = function Avatar(_ref) {
|
|
58
|
-
var backgroundColor = _ref.backgroundColor,
|
|
59
|
-
text = _ref.text,
|
|
60
|
-
src = _ref.src,
|
|
61
|
-
label = _ref.label,
|
|
62
|
-
colorText = _ref.colorText,
|
|
63
|
-
variantText = _ref.variantText,
|
|
64
|
-
fontWeightText = _ref.fontWeightText,
|
|
65
|
-
textAlignText = _ref.textAlignText,
|
|
66
|
-
variantLabel = _ref.variantLabel,
|
|
67
|
-
colorLabel = _ref.colorLabel,
|
|
68
|
-
fontWeightLabel = _ref.fontWeightLabel,
|
|
69
|
-
textAlignLabel = _ref.textAlignLabel,
|
|
70
|
-
sizeAvatar = _ref.sizeAvatar,
|
|
71
|
-
sizeText = _ref.sizeText,
|
|
72
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
73
|
-
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
className: 'cbx-avatar-block'
|
|
76
|
-
}, /*#__PURE__*/_react.default.createElement(_Avatar.default, _extends({
|
|
77
|
-
src: src,
|
|
78
|
-
sx: _objectSpread({
|
|
79
|
-
bgcolor: backgroundColor
|
|
80
|
-
}, label ? _objectSpread({
|
|
81
|
-
width: 'var(--spacing32)',
|
|
82
|
-
height: 'var(--spacing32)'
|
|
83
|
-
}, stylesAvatarLabel[sizeAvatar]) : _objectSpread({
|
|
84
|
-
width: 'var(--spacing40)',
|
|
85
|
-
height: 'var(--spacing40)'
|
|
86
|
-
}, stylesAvatar[sizeAvatar]))
|
|
87
|
-
}, props), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
88
|
-
variant: variantText || (!variantText && !!label ? 'XS' : 'M'),
|
|
89
|
-
color: colorText || 'var(--gray4)',
|
|
90
|
-
fontWeight: fontWeightText,
|
|
91
|
-
textAlign: textAlignText
|
|
92
|
-
}, text)), label && /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
-
style: {
|
|
94
|
-
marginLeft: sizeAvatar === 'XS' ? 'var(--spacing4)' : 'var(--spacing8)'
|
|
95
|
-
}
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
97
|
-
variant: variantLabel || 'M',
|
|
98
|
-
color: colorLabel,
|
|
99
|
-
fontWeight: fontWeightLabel,
|
|
100
|
-
textAlign: textAlignLabel
|
|
101
|
-
}, label)));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
Avatar.displayName = "Avatar";
|
|
105
|
-
Avatar.propTypes = {
|
|
106
|
-
backgroundColor: _propTypes.default.string,
|
|
107
|
-
text: _propTypes.default.string,
|
|
108
|
-
src: _propTypes.default.string,
|
|
109
|
-
label: _propTypes.default.string,
|
|
110
|
-
colorText: _propTypes.default.string,
|
|
111
|
-
variantText: _propTypes.default.string,
|
|
112
|
-
fontWeightText: _propTypes.default.string,
|
|
113
|
-
textAlignText: _propTypes.default.string,
|
|
114
|
-
variantLabel: _propTypes.default.string,
|
|
115
|
-
colorLabel: _propTypes.default.string,
|
|
116
|
-
fontWeightLabel: _propTypes.default.string,
|
|
117
|
-
textAlignLabel: _propTypes.default.string,
|
|
118
|
-
sizeAvatar: _propTypes.default.string,
|
|
119
|
-
sizeText: _propTypes.default.string
|
|
120
|
-
};
|
|
121
|
-
Avatar.defaultProps = {
|
|
122
|
-
backgroundColor: '',
|
|
123
|
-
text: 'MW',
|
|
124
|
-
src: null,
|
|
125
|
-
label: '',
|
|
126
|
-
colorText: '',
|
|
127
|
-
variantText: '',
|
|
128
|
-
fontWeightText: '700',
|
|
129
|
-
textAlignText: 'center',
|
|
130
|
-
variantLabel: '',
|
|
131
|
-
colorLabel: '',
|
|
132
|
-
fontWeightLabel: '',
|
|
133
|
-
textAlignLabel: '',
|
|
134
|
-
sizeAvatar: '',
|
|
135
|
-
sizeText: ''
|
|
136
|
-
};
|
|
137
|
-
var _default = Avatar;
|
|
138
|
-
exports.default = _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.cbx-buttonBasic-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.cbx-buttonBasic-container-start-icon,
|
|
9
|
-
.cbx-buttonBasic-container-loading,
|
|
10
|
-
.cbx-buttonBasic-container-end-icon {
|
|
11
|
-
width: 1.5rem;
|
|
12
|
-
height: 1.5rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.cbx-buttonBasic-container-start-icon {
|
|
16
|
-
margin-right: 0.75rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.cbx-buttonBasic-container-loading,
|
|
20
|
-
.cbx-buttonBasic-container-end-icon {
|
|
21
|
-
font-size: 1.5rem;
|
|
22
|
-
margin-left: 0.75rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.cbx-buttonBasic-container-start-icon i,
|
|
26
|
-
.cbx-buttonBasic-container-end-icon i {
|
|
27
|
-
font-size: 1.5rem !important;
|
|
28
|
-
margin: 0 !important;
|
|
29
|
-
padding: 0 !important;
|
|
30
|
-
vertical-align: unset !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.cbx-buttonBasic-badge {
|
|
34
|
-
position: absolute;
|
|
35
|
-
width: var(--spacing8);
|
|
36
|
-
height: var(--spacing8);
|
|
37
|
-
top: -0.125rem;
|
|
38
|
-
left: -0.75rem;
|
|
39
|
-
border-radius: 50rem;
|
|
40
|
-
background: var(--error);
|
|
41
|
-
}
|
|
@@ -1,231 +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 _Button = _interopRequireDefault(require("@mui/material/Button"));
|
|
13
|
-
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
require("./ButtonBasicOld.css");
|
|
17
|
-
|
|
18
|
-
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
19
|
-
|
|
20
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
21
|
-
|
|
22
|
-
var _excluded = ["id", "text", "onClick", "disabled", "loading", "variant", "fullWidth", "icon", "variantText", "stylesButton", "sx", "badge", "resetDelay", "reset", "error", "success", "startIcon", "endIcon", "className"];
|
|
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 ButtonBasicOld = function ButtonBasicOld(_ref) {
|
|
39
|
-
var id = _ref.id,
|
|
40
|
-
text = _ref.text,
|
|
41
|
-
onClick = _ref.onClick,
|
|
42
|
-
disabled = _ref.disabled,
|
|
43
|
-
loading = _ref.loading,
|
|
44
|
-
variant = _ref.variant,
|
|
45
|
-
fullWidth = _ref.fullWidth,
|
|
46
|
-
icon = _ref.icon,
|
|
47
|
-
variantText = _ref.variantText,
|
|
48
|
-
stylesButton = _ref.stylesButton,
|
|
49
|
-
sx = _ref.sx,
|
|
50
|
-
badge = _ref.badge,
|
|
51
|
-
_ref$resetDelay = _ref.resetDelay,
|
|
52
|
-
resetDelay = _ref$resetDelay === void 0 ? 2700 : _ref$resetDelay,
|
|
53
|
-
reset = _ref.reset,
|
|
54
|
-
error = _ref.error,
|
|
55
|
-
success = _ref.success,
|
|
56
|
-
_ref$startIcon = _ref.startIcon,
|
|
57
|
-
startIcon = _ref$startIcon === void 0 ? icon : _ref$startIcon,
|
|
58
|
-
endIcon = _ref.endIcon,
|
|
59
|
-
className = _ref.className,
|
|
60
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
61
|
-
|
|
62
|
-
var buttonVariant;
|
|
63
|
-
var buttonColor;
|
|
64
|
-
|
|
65
|
-
if (variant === 'primary') {
|
|
66
|
-
buttonVariant = 'contained';
|
|
67
|
-
buttonColor = 'var(--white)';
|
|
68
|
-
} else if (variant === 'secondary') {
|
|
69
|
-
buttonVariant = 'outlined';
|
|
70
|
-
buttonColor = 'var(--primary)';
|
|
71
|
-
} else if (variant === 'secondaryDark') {
|
|
72
|
-
buttonVariant = 'outlined';
|
|
73
|
-
buttonColor = 'var(--white)';
|
|
74
|
-
} else {
|
|
75
|
-
buttonVariant = 'text';
|
|
76
|
-
buttonColor = 'var(--primary)';
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
_react.default.useEffect(function () {
|
|
80
|
-
var timeout;
|
|
81
|
-
|
|
82
|
-
if ((error || success) && !!reset) {
|
|
83
|
-
timeout = setTimeout(reset, resetDelay);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return function () {
|
|
87
|
-
clearTimeout(timeout);
|
|
88
|
-
};
|
|
89
|
-
}, [error, success, reset, resetDelay]);
|
|
90
|
-
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_Button.default, _extends({
|
|
92
|
-
id: id,
|
|
93
|
-
className: "".concat(className || '', " ").concat(variant === 'secondaryDark' ? 'secondaryDark' : ''),
|
|
94
|
-
sx: _objectSpread(_objectSpread({}, sx), {}, {
|
|
95
|
-
height: '3rem',
|
|
96
|
-
'&:focus': {
|
|
97
|
-
outline: 'none!important'
|
|
98
|
-
},
|
|
99
|
-
'&.MuiButton-contained': {
|
|
100
|
-
backgroundColor: success || error ? success ? 'var(--success)' : error && 'var(--error)' : 'var(--primary)'
|
|
101
|
-
},
|
|
102
|
-
'&.MuiButton-contained:hover': {
|
|
103
|
-
boxShadow: 'none',
|
|
104
|
-
backgroundColor: success || error ? success ? 'var(--success)' : error && 'var(--error)' : 'var(--primary)'
|
|
105
|
-
},
|
|
106
|
-
'&.MuiButton-contained div span, &.MuiButton-contained div div ': {
|
|
107
|
-
transition: 'background .3s, width .3s, color .3s'
|
|
108
|
-
},
|
|
109
|
-
'&.MuiButton-contained:hover div span, &.MuiButton-contained:hover div div': {
|
|
110
|
-
color: success || error ? 'white' : 'var(--accent)'
|
|
111
|
-
},
|
|
112
|
-
'&.MuiButton-contained.Mui-disabled': {
|
|
113
|
-
backgroundColor: 'var(--primary25)'
|
|
114
|
-
},
|
|
115
|
-
'&.MuiButton-contained.Mui-disabled div span, &.MuiButton-contained.Mui-disabled div div': {
|
|
116
|
-
color: 'var(--primary50)'
|
|
117
|
-
},
|
|
118
|
-
'&.MuiButton-outlined': {
|
|
119
|
-
border: '0.063rem solid var(--primary)',
|
|
120
|
-
borderColor: success ? 'var(--success)' : error && 'var(--error)'
|
|
121
|
-
},
|
|
122
|
-
'&.MuiButton-outlined.secondaryDark': {
|
|
123
|
-
border: "0.063rem solid ".concat(buttonColor),
|
|
124
|
-
background: success ? 'var(--success)' : error && 'var(--error)'
|
|
125
|
-
},
|
|
126
|
-
'&.MuiButton-outlined div span, &.MuiButton-outlined div div ': {
|
|
127
|
-
color: success ? 'var(--success)' : error && 'var(--error)'
|
|
128
|
-
},
|
|
129
|
-
'&.MuiButton-outlined.secondaryDark div span, &.MuiButton-outlined.secondaryDark div div ': {
|
|
130
|
-
color: buttonColor
|
|
131
|
-
},
|
|
132
|
-
'&.MuiButton-outlined.Mui-disabled': {
|
|
133
|
-
border: '0.063rem solid var(--primary25)'
|
|
134
|
-
},
|
|
135
|
-
'&.MuiButton-outlined.Mui-disabled div span, &.MuiButton-outlined.Mui-disabled div div': {
|
|
136
|
-
color: 'var(--primary50)'
|
|
137
|
-
},
|
|
138
|
-
'&.MuiButton-text.Mui-disabled div span, &.MuiButton-text.Mui-disabled div div': {
|
|
139
|
-
color: 'var(--primary50)'
|
|
140
|
-
},
|
|
141
|
-
'&.MuiButton-text div span, &.MuiButton-text div div': {
|
|
142
|
-
color: success ? 'var(--success)' : error && 'var(--error)'
|
|
143
|
-
},
|
|
144
|
-
'&.MuiButton-root': {
|
|
145
|
-
transition: 'background .3s, width .3s, color .3s'
|
|
146
|
-
},
|
|
147
|
-
'&.MuiButton-outlined:hover': {
|
|
148
|
-
border: '0.063rem solid var(--primary)',
|
|
149
|
-
backgroundColor: success || error ? 'transparent' : 'var(--accent25)',
|
|
150
|
-
borderColor: success ? 'var(--success)' : error && 'var(--error)'
|
|
151
|
-
},
|
|
152
|
-
'&.MuiButton-outlined.secondaryDark:hover': {
|
|
153
|
-
border: "0.063rem solid ".concat(buttonColor),
|
|
154
|
-
backgroundColor: success || error ? success ? 'var(--success)' : error && 'var(--error)' : 'var(--primary75)'
|
|
155
|
-
},
|
|
156
|
-
'&.MuiButton-root.MuiButton-text:hover': {
|
|
157
|
-
backgroundColor: success || error ? 'transparent' : 'var(--accent25)'
|
|
158
|
-
},
|
|
159
|
-
paddingTop: '0.75rem',
|
|
160
|
-
paddingBottom: '0.75rem',
|
|
161
|
-
paddingLeft: startIcon && endIcon ? 'var(--spacing16)' : startIcon ? 'var(--spacing16)' : 'var(--spacing24)',
|
|
162
|
-
paddingRight: startIcon && endIcon ? 'var(--spacing16)' : endIcon || loading ? 'var(--spacing16)' : 'var(--spacing24)',
|
|
163
|
-
boxShadow: 'none',
|
|
164
|
-
lineHeight: '1.5rem'
|
|
165
|
-
}),
|
|
166
|
-
disabled: loading || disabled,
|
|
167
|
-
variant: buttonVariant,
|
|
168
|
-
disableFocusRipple: true,
|
|
169
|
-
fullWidth: fullWidth,
|
|
170
|
-
onClick: onClick
|
|
171
|
-
}, props), /*#__PURE__*/_react.default.createElement("div", {
|
|
172
|
-
className: 'cbx-buttonBasic-container'
|
|
173
|
-
}, badge && /*#__PURE__*/_react.default.createElement("div", {
|
|
174
|
-
className: "cbx-buttonBasic-badge"
|
|
175
|
-
}), startIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
176
|
-
className: 'cbx-buttonBasic-container-start-icon'
|
|
177
|
-
}, startIcon), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
178
|
-
color: buttonColor,
|
|
179
|
-
variant: variantText || 'M',
|
|
180
|
-
component: 'span',
|
|
181
|
-
fontWeight: '700',
|
|
182
|
-
styles: _objectSpread({}, stylesButton)
|
|
183
|
-
}, text), loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
184
|
-
className: 'cbx-buttonBasic-container-loading'
|
|
185
|
-
}, /*#__PURE__*/_react.default.createElement(_CircularProgress.default, {
|
|
186
|
-
style: {
|
|
187
|
-
width: 'var(--spacing24)',
|
|
188
|
-
height: '1.5rem'
|
|
189
|
-
}
|
|
190
|
-
})) : success || error ? /*#__PURE__*/_react.default.createElement("div", {
|
|
191
|
-
className: 'cbx-buttonBasic-container-end-icon'
|
|
192
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
193
|
-
className: error ? 'ri-close-line' : 'ri-check-line'
|
|
194
|
-
})) : endIcon && /*#__PURE__*/_react.default.createElement("div", {
|
|
195
|
-
className: 'cbx-buttonBasic-container-end-icon'
|
|
196
|
-
}, endIcon)));
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
ButtonBasicOld.displayName = "ButtonBasicOld";
|
|
200
|
-
ButtonBasicOld.propTypes = {
|
|
201
|
-
text: _propTypes.default.node,
|
|
202
|
-
onClick: _propTypes.default.func,
|
|
203
|
-
disabled: _propTypes.default.bool,
|
|
204
|
-
loading: _propTypes.default.bool,
|
|
205
|
-
variant: _propTypes.default.string,
|
|
206
|
-
fullWidth: _propTypes.default.bool,
|
|
207
|
-
startIcon: _propTypes.default.node,
|
|
208
|
-
endIcon: _propTypes.default.node,
|
|
209
|
-
variantText: _propTypes.default.string,
|
|
210
|
-
stylesButton: _propTypes.default.object,
|
|
211
|
-
badge: _propTypes.default.any,
|
|
212
|
-
success: _propTypes.default.bool,
|
|
213
|
-
error: _propTypes.default.bool
|
|
214
|
-
};
|
|
215
|
-
ButtonBasicOld.defaultProps = {
|
|
216
|
-
text: null,
|
|
217
|
-
onClick: undefined,
|
|
218
|
-
disabled: false,
|
|
219
|
-
loading: false,
|
|
220
|
-
variant: 'primary',
|
|
221
|
-
fullWidth: false,
|
|
222
|
-
startIcon: undefined,
|
|
223
|
-
endIcon: undefined,
|
|
224
|
-
variantText: '',
|
|
225
|
-
stylesButton: undefined,
|
|
226
|
-
badge: false,
|
|
227
|
-
success: false,
|
|
228
|
-
error: false
|
|
229
|
-
};
|
|
230
|
-
var _default = ButtonBasicOld;
|
|
231
|
-
exports.default = _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.cbx-checkbox-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.cbx-checkbox-container:hover:before {
|
|
6
|
-
animation: ripple .6s ease;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cbx-checkbox-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,112 +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 _Checkbox = _interopRequireDefault(require("@mui/material/Checkbox"));
|
|
13
|
-
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
require("./Checkbox.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 CssFormControlLabel = (0, _styled.default)(_FormControlLabel.default)(function () {
|
|
33
|
-
return {
|
|
34
|
-
'& .MuiFormControlLabel-label': {
|
|
35
|
-
marginLeft: 'var(--spacing12)',
|
|
36
|
-
transition: '0.2s'
|
|
37
|
-
},
|
|
38
|
-
'& .MuiCheckbox-root.Mui-disabled': {
|
|
39
|
-
color: '#acadce'
|
|
40
|
-
},
|
|
41
|
-
'& .MuiCheckbox-root': {
|
|
42
|
-
transition: 'all .2s',
|
|
43
|
-
width: '1.188rem',
|
|
44
|
-
height: '1.125rem'
|
|
45
|
-
},
|
|
46
|
-
'.MuiButtonBase-root.Mui-disabled, .MuiFormControlLabel-label.Mui-disabled': {
|
|
47
|
-
color: 'var(--gray3)',
|
|
48
|
-
fontWeight: '700'
|
|
49
|
-
},
|
|
50
|
-
'& .MuiButtonBase-root.Mui-checked + span': {
|
|
51
|
-
color: 'var(--primary)',
|
|
52
|
-
fontWeight: '700'
|
|
53
|
-
},
|
|
54
|
-
'& .MuiCheckbox-root.Mui-disabled.Mui-checked + span': {
|
|
55
|
-
color: 'var(--gray3)',
|
|
56
|
-
fontWeight: '700'
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
var CheckboxOld = function CheckboxOld(_ref) {
|
|
62
|
-
var id = _ref.id,
|
|
63
|
-
className = _ref.className,
|
|
64
|
-
disabled = _ref.disabled,
|
|
65
|
-
indeterminate = _ref.indeterminate,
|
|
66
|
-
label = _ref.label,
|
|
67
|
-
onChange = _ref.onChange,
|
|
68
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
69
|
-
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement(CssFormControlLabel, _extends({
|
|
71
|
-
id: id,
|
|
72
|
-
className: className,
|
|
73
|
-
style: {
|
|
74
|
-
margin: '0px'
|
|
75
|
-
},
|
|
76
|
-
onChange: onChange,
|
|
77
|
-
control: /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
78
|
-
className: 'cbx-checkbox-container',
|
|
79
|
-
indeterminate: indeterminate,
|
|
80
|
-
style: {
|
|
81
|
-
padding: '0px'
|
|
82
|
-
},
|
|
83
|
-
sx: {
|
|
84
|
-
'& .MuiSvgIcon-root': {
|
|
85
|
-
fontSize: '1.5rem',
|
|
86
|
-
zIndex: '1'
|
|
87
|
-
},
|
|
88
|
-
'.MuiTouchRipple-child': {
|
|
89
|
-
backgroundColor: 'var(--accent25)'
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}),
|
|
93
|
-
disabled: disabled,
|
|
94
|
-
label: label
|
|
95
|
-
}, props));
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
CheckboxOld.displayName = "CheckboxOld";
|
|
99
|
-
CheckboxOld.propTypes = {
|
|
100
|
-
onChange: _propTypes.default.func,
|
|
101
|
-
disabled: _propTypes.default.bool,
|
|
102
|
-
indeterminate: _propTypes.default.bool,
|
|
103
|
-
label: _propTypes.default.string
|
|
104
|
-
};
|
|
105
|
-
CheckboxOld.defaultProps = {
|
|
106
|
-
onChange: undefined,
|
|
107
|
-
disabled: false,
|
|
108
|
-
indeterminate: false,
|
|
109
|
-
label: ''
|
|
110
|
-
};
|
|
111
|
-
var _default = CheckboxOld;
|
|
112
|
-
exports.default = _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
.cbx-DrawerPanel-dialog {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: flex-end;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.cbx-DrawerPanel-toolbar {
|
|
8
|
-
padding: 0 1rem
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.cbx-DrawerPanel-iconButton {
|
|
12
|
-
outline: none!important;
|
|
13
|
-
height: 1.5em;
|
|
14
|
-
padding: 0!important;
|
|
15
|
-
margin: 0!important;
|
|
16
|
-
width: 1.5em;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.cbx-DrawerPanel-icon {
|
|
20
|
-
color: #fff;
|
|
21
|
-
height: auto!important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.cbx-DrawerPanel-typography {
|
|
25
|
-
color:#fff;
|
|
26
|
-
flex: 1!important;
|
|
27
|
-
padding: 1.125rem!important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.cbx-DrawerPanel-typography span{
|
|
31
|
-
padding-left: 1.5rem!important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.cbx-DrawerPanel-container-tabs {
|
|
35
|
-
width: 100%;
|
|
36
|
-
margin-right: 4.25rem;
|
|
37
|
-
margin-left: 4.25rem;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cbx-DrawerPanel-tabs {
|
|
42
|
-
color: var(--white)!important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.cbx-DrawerPanel-tabs:focus {
|
|
46
|
-
outline: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.cbx-DrawerPanel-tabs-opacity {
|
|
50
|
-
opacity: 50%!important
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.cbx-DrawerPanel-dialogContent {
|
|
54
|
-
min-width: 40vw;
|
|
55
|
-
max-width: 95vw;
|
|
56
|
-
}
|