@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,43 +0,0 @@
|
|
|
1
|
-
.cbx-iconButtonSquare-red-dot {
|
|
2
|
-
position: absolute;
|
|
3
|
-
width: var(--spacing8);
|
|
4
|
-
height: var(--spacing8);
|
|
5
|
-
right: var(--spacing4);
|
|
6
|
-
top: 0.125rem;
|
|
7
|
-
border-radius: 50rem;
|
|
8
|
-
background: var(--error);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.cbx-iconButtonSquare-container.menuMobile .cbx-iconButtonSquare-red-dot {
|
|
12
|
-
right: -.625rem;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.cbx-iconButtonSquare-red-dot-noText {
|
|
16
|
-
right: -0.813rem;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.cbx-iconButtonSquare-containerIcon {
|
|
20
|
-
font-size: 1.5rem;
|
|
21
|
-
position: relative;
|
|
22
|
-
color: var(--gray3);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.cbx-iconButtonSquare-containerIcon-active {
|
|
26
|
-
color: var(--primary)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.cbx-iconButtonSquare-container.menuMobile{
|
|
30
|
-
text-align: center;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
width: 100%;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.cbx-iconButtonSquare-container.menuMobile .cbx-iconButtonSquare-containerIcon {
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
width: 1.5rem;
|
|
42
|
-
height: 1.5rem;
|
|
43
|
-
}
|
|
@@ -1,133 +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
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
require("./IconButtonSquare.css");
|
|
17
|
-
|
|
18
|
-
var _TouchRipple = _interopRequireDefault(require("@mui/material/ButtonBase/TouchRipple"));
|
|
19
|
-
|
|
20
|
-
var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
21
|
-
|
|
22
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
23
|
-
|
|
24
|
-
var _excluded = ["text", "icon", "active", "badge", "onClick", "styles", "tooltip", "placementTooltip", "variant", "fontWeight", "textVisibleMenuMobile", "className", "stylesText", "stylesBadge", "disabled"];
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
|
-
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); }
|
|
29
|
-
|
|
30
|
-
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; }
|
|
31
|
-
|
|
32
|
-
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; }
|
|
33
|
-
|
|
34
|
-
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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
var IconButtonSquare = function IconButtonSquare(_ref) {
|
|
41
|
-
var text = _ref.text,
|
|
42
|
-
icon = _ref.icon,
|
|
43
|
-
active = _ref.active,
|
|
44
|
-
badge = _ref.badge,
|
|
45
|
-
onClick = _ref.onClick,
|
|
46
|
-
styles = _ref.styles,
|
|
47
|
-
tooltip = _ref.tooltip,
|
|
48
|
-
placementTooltip = _ref.placementTooltip,
|
|
49
|
-
variant = _ref.variant,
|
|
50
|
-
fontWeight = _ref.fontWeight,
|
|
51
|
-
textVisibleMenuMobile = _ref.textVisibleMenuMobile,
|
|
52
|
-
className = _ref.className,
|
|
53
|
-
stylesText = _ref.stylesText,
|
|
54
|
-
stylesBadge = _ref.stylesBadge,
|
|
55
|
-
disabled = _ref.disabled,
|
|
56
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
57
|
-
|
|
58
|
-
var rippleRef = _react.default.useRef(null);
|
|
59
|
-
|
|
60
|
-
var onRippleStart = function onRippleStart(e) {
|
|
61
|
-
rippleRef.current.start(e);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
var onRippleStop = function onRippleStop(e) {
|
|
65
|
-
rippleRef.current.stop(e);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
69
|
-
onMouseDown: onRippleStart,
|
|
70
|
-
onMouseUp: onRippleStop,
|
|
71
|
-
disableRipple: true,
|
|
72
|
-
className: className,
|
|
73
|
-
disabled: disabled,
|
|
74
|
-
sx: _objectSpread({
|
|
75
|
-
width: '4.75rem',
|
|
76
|
-
height: '4.75rem',
|
|
77
|
-
background: active ? 'white' : 'transparent',
|
|
78
|
-
borderRadius: '0',
|
|
79
|
-
'&:focus': {
|
|
80
|
-
outline: 'none!important'
|
|
81
|
-
},
|
|
82
|
-
padding: textVisibleMenuMobile && '8px 20px'
|
|
83
|
-
}, styles),
|
|
84
|
-
onClick: onClick
|
|
85
|
-
}, props), /*#__PURE__*/_react.default.createElement(_TouchRipple.default, {
|
|
86
|
-
ref: rippleRef,
|
|
87
|
-
center: false
|
|
88
|
-
}), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
89
|
-
title: tooltip || '',
|
|
90
|
-
placement: placementTooltip
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
92
|
-
className: "cbx-iconButtonSquare-container ".concat(textVisibleMenuMobile ? 'menuMobile' : '')
|
|
93
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
-
className: "cbx-iconButtonSquare-containerIcon ".concat(active ? 'cbx-iconButtonSquare-containerIcon-active' : '')
|
|
95
|
-
}, badge && /*#__PURE__*/_react.default.createElement("div", {
|
|
96
|
-
style: _objectSpread({}, stylesBadge),
|
|
97
|
-
className: "cbx-iconButtonSquare-red-dot ".concat(text ? '' : 'cbx-iconButtonSquare-red-dot-noText')
|
|
98
|
-
}), icon), text && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
99
|
-
variant: variant || 'XS',
|
|
100
|
-
color: active ? 'var(--primary)' : 'var(--gray3)',
|
|
101
|
-
fontWeight: fontWeight,
|
|
102
|
-
styles: _objectSpread({
|
|
103
|
-
overflow: 'hidden',
|
|
104
|
-
whiteSpace: 'nowrap',
|
|
105
|
-
textOverflow: 'ellipsis',
|
|
106
|
-
maxWidth: textVisibleMenuMobile ? '4.5rem' : '3.25rem'
|
|
107
|
-
}, stylesText)
|
|
108
|
-
}, text)))));
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
IconButtonSquare.displayName = "IconButtonSquare";
|
|
112
|
-
IconButtonSquare.propTypes = {
|
|
113
|
-
text: _propTypes.default.any,
|
|
114
|
-
icon: _propTypes.default.node,
|
|
115
|
-
active: _propTypes.default.bool,
|
|
116
|
-
badge: _propTypes.default.bool,
|
|
117
|
-
onClick: _propTypes.default.func,
|
|
118
|
-
styles: _propTypes.default.object,
|
|
119
|
-
tooltip: _propTypes.default.string,
|
|
120
|
-
placementTooltip: _propTypes.default.string
|
|
121
|
-
};
|
|
122
|
-
IconButtonSquare.defaultProps = {
|
|
123
|
-
text: '',
|
|
124
|
-
icon: undefined,
|
|
125
|
-
active: false,
|
|
126
|
-
badge: false,
|
|
127
|
-
onClick: Function.prototype,
|
|
128
|
-
styles: {},
|
|
129
|
-
tooltip: '',
|
|
130
|
-
placementTooltip: 'bottom'
|
|
131
|
-
};
|
|
132
|
-
var _default = IconButtonSquare;
|
|
133
|
-
exports.default = _default;
|
|
@@ -1,178 +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 _reactDom = require("react-dom");
|
|
11
|
-
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
|
|
16
|
-
var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete"));
|
|
17
|
-
|
|
18
|
-
var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
|
|
19
|
-
|
|
20
|
-
require("./InputAutocomplete.css");
|
|
21
|
-
|
|
22
|
-
var _InputTextOld = _interopRequireDefault(require("../InputText/InputTextOld"));
|
|
23
|
-
|
|
24
|
-
var _MenuItem = _interopRequireDefault(require("../MenuItem/MenuItem"));
|
|
25
|
-
|
|
26
|
-
var _InputText = _interopRequireDefault(require("../InputText/InputText"));
|
|
27
|
-
|
|
28
|
-
var _excluded = ["width", "id", "className", "onChange", "label", "disabled", "error", "helper", "success", "helperText", "fullWidth", "sx", "endAdornment", "variant", "required"];
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: 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 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; }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
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; }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
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; }
|
|
43
|
-
|
|
44
|
-
var top100Films = [{
|
|
45
|
-
label: 'The Shawshank Redemption The Shawshank Redemption',
|
|
46
|
-
year: 1994
|
|
47
|
-
}, {
|
|
48
|
-
label: 'The Godfather',
|
|
49
|
-
year: 1972
|
|
50
|
-
}, {
|
|
51
|
-
label: 'The Godfather: Part II',
|
|
52
|
-
year: 1974
|
|
53
|
-
}, {
|
|
54
|
-
label: 'The Dark Knight',
|
|
55
|
-
year: 2008
|
|
56
|
-
}, {
|
|
57
|
-
label: '12 Angry Men',
|
|
58
|
-
year: 1957
|
|
59
|
-
}, {
|
|
60
|
-
label: "Schindler's List",
|
|
61
|
-
year: 1993
|
|
62
|
-
}, {
|
|
63
|
-
label: 'Pulp Fiction',
|
|
64
|
-
year: 1994
|
|
65
|
-
}];
|
|
66
|
-
|
|
67
|
-
var InputAutocomplete = function InputAutocomplete(_ref) {
|
|
68
|
-
var width = _ref.width,
|
|
69
|
-
id = _ref.id,
|
|
70
|
-
className = _ref.className,
|
|
71
|
-
onChange = _ref.onChange,
|
|
72
|
-
label = _ref.label,
|
|
73
|
-
disabled = _ref.disabled,
|
|
74
|
-
error = _ref.error,
|
|
75
|
-
helper = _ref.helper,
|
|
76
|
-
success = _ref.success,
|
|
77
|
-
helperText = _ref.helperText,
|
|
78
|
-
fullWidth = _ref.fullWidth,
|
|
79
|
-
sx = _ref.sx,
|
|
80
|
-
endAdornment = _ref.endAdornment,
|
|
81
|
-
variant = _ref.variant,
|
|
82
|
-
required = _ref.required,
|
|
83
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
84
|
-
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
style: {
|
|
87
|
-
display: 'flex'
|
|
88
|
-
}
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Autocomplete.default, _extends({
|
|
90
|
-
id: id,
|
|
91
|
-
className: className,
|
|
92
|
-
onChange: onChange,
|
|
93
|
-
disabled: disabled,
|
|
94
|
-
sx: _objectSpread({
|
|
95
|
-
minWidth: width || '15rem',
|
|
96
|
-
'&.MuiAutocomplete-root .MuiOutlinedInput-root': {
|
|
97
|
-
padding: '0'
|
|
98
|
-
},
|
|
99
|
-
'&.MuiAutocomplete-root .MuiFilledInput-root': {
|
|
100
|
-
paddingTop: '0',
|
|
101
|
-
paddingLeft: '0'
|
|
102
|
-
},
|
|
103
|
-
'&.MuiAutocomplete-root .MuiInput-root': {
|
|
104
|
-
paddingBottom: '0!important'
|
|
105
|
-
}
|
|
106
|
-
}, sx),
|
|
107
|
-
disablePortal: false,
|
|
108
|
-
freeSolo: true,
|
|
109
|
-
options: top100Films,
|
|
110
|
-
renderInput: function renderInput(params) {
|
|
111
|
-
return /*#__PURE__*/_react.default.createElement(_InputTextOld.default, _extends({}, params, {
|
|
112
|
-
error: error,
|
|
113
|
-
label: label,
|
|
114
|
-
helper: helper,
|
|
115
|
-
success: success,
|
|
116
|
-
helperText: helperText,
|
|
117
|
-
endAdornment: endAdornment,
|
|
118
|
-
variant: variant,
|
|
119
|
-
fullWidth: fullWidth,
|
|
120
|
-
required: required,
|
|
121
|
-
width: width
|
|
122
|
-
}));
|
|
123
|
-
},
|
|
124
|
-
renderOption: function renderOption(propsOption) {
|
|
125
|
-
return /*#__PURE__*/_react.default.createElement(_MenuItem.default, propsOption, propsOption.key);
|
|
126
|
-
},
|
|
127
|
-
PopperComponent: function PopperComponent(propsPopper) {
|
|
128
|
-
return /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react.default.createElement(_Popper.default, _extends({
|
|
129
|
-
className: fullWidth ? 'cbx-inputAutocomplete-fullwidth' : '',
|
|
130
|
-
sx: {
|
|
131
|
-
'&.MuiPopper-root': {
|
|
132
|
-
minWidth: fullWidth ? 'auto' : '13.75rem!important',
|
|
133
|
-
maxWidth: fullWidth ? 'auto' : '17.5rem!important',
|
|
134
|
-
width: fullWidth ? 'auto' : 'auto!important'
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}, propsPopper)), document.body);
|
|
138
|
-
}
|
|
139
|
-
}, props))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_InputText.default, {
|
|
140
|
-
error: error,
|
|
141
|
-
label: label,
|
|
142
|
-
helper: helper,
|
|
143
|
-
success: success,
|
|
144
|
-
helperText: helperText,
|
|
145
|
-
endAdornment: endAdornment,
|
|
146
|
-
variant: variant,
|
|
147
|
-
fullWidth: fullWidth,
|
|
148
|
-
required: required,
|
|
149
|
-
width: width
|
|
150
|
-
})));
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
InputAutocomplete.displayName = "InputAutocomplete";
|
|
154
|
-
InputAutocomplete.propTypes = {
|
|
155
|
-
label: _propTypes.default.string,
|
|
156
|
-
helper: _propTypes.default.string,
|
|
157
|
-
width: _propTypes.default.string,
|
|
158
|
-
id: _propTypes.default.string,
|
|
159
|
-
className: _propTypes.default.string,
|
|
160
|
-
onChange: _propTypes.default.func,
|
|
161
|
-
disabled: _propTypes.default.bool,
|
|
162
|
-
error: _propTypes.default.node,
|
|
163
|
-
success: _propTypes.default.bool,
|
|
164
|
-
fullWidth: _propTypes.default.bool
|
|
165
|
-
};
|
|
166
|
-
InputAutocomplete.defaultProps = {
|
|
167
|
-
label: '',
|
|
168
|
-
helper: '',
|
|
169
|
-
width: '',
|
|
170
|
-
id: '',
|
|
171
|
-
className: '',
|
|
172
|
-
onChange: undefined,
|
|
173
|
-
disabled: false,
|
|
174
|
-
error: undefined,
|
|
175
|
-
fullWidth: false
|
|
176
|
-
};
|
|
177
|
-
var _default = InputAutocomplete;
|
|
178
|
-
exports.default = _default;
|