@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,325 +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 _Select = _interopRequireDefault(require("@mui/material/Select"));
|
|
13
|
-
|
|
14
|
-
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
15
|
-
|
|
16
|
-
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
17
|
-
|
|
18
|
-
var _material = require("@mui/material");
|
|
19
|
-
|
|
20
|
-
require("../../styles/main.css");
|
|
21
|
-
|
|
22
|
-
require("./SelectInputOld.css");
|
|
23
|
-
|
|
24
|
-
var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
25
|
-
|
|
26
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
27
|
-
|
|
28
|
-
var _excluded = ["id", "className", "onChange", "label", "disabled", "width", "fullWidth", "children", "error", "helperText", "helper", "variant", "endAdornment", "success", "sx", "sxFormControl", "propsFormControl"];
|
|
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 CssSelect = (0, _styled.default)(_Select.default)(function () {
|
|
45
|
-
return {
|
|
46
|
-
'& .MuiInput-underline:after': {
|
|
47
|
-
borderBottomColor: 'var(--gray5)',
|
|
48
|
-
borderWidth: '2px'
|
|
49
|
-
},
|
|
50
|
-
'& .MuiSelect-nativeInput': {
|
|
51
|
-
height: '3rem',
|
|
52
|
-
lineHeight: 'var(--spacing12)',
|
|
53
|
-
padding: 'var(--spacing12)',
|
|
54
|
-
paddingRight: 'var(--spacing8)'
|
|
55
|
-
},
|
|
56
|
-
'&.MuiInputBase-root.Mui-error': {
|
|
57
|
-
color: 'var(--error)'
|
|
58
|
-
},
|
|
59
|
-
'&.MuiInputBase-root.Mui-error input, &.MuiInputBase-root.Mui-error div, .MuiOutlinedInput-input.Mui-disabled': {
|
|
60
|
-
color: 'var(--gray5)',
|
|
61
|
-
WebkitTextFillColor: 'unset'
|
|
62
|
-
},
|
|
63
|
-
'&.Mui-disabled svg': {
|
|
64
|
-
display: 'none'
|
|
65
|
-
},
|
|
66
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
67
|
-
color: 'var(--gray5)',
|
|
68
|
-
paddingRight: 'var(--spacing8)',
|
|
69
|
-
'& fieldset': {
|
|
70
|
-
borderColor: 'var(--gray3)',
|
|
71
|
-
borderWidth: '1px',
|
|
72
|
-
'& legend': {
|
|
73
|
-
'& span': {
|
|
74
|
-
paddingLeft: 'var(--spacing4)',
|
|
75
|
-
paddingRight: 'var(--spacing4)'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
'&:hover fieldset': {
|
|
80
|
-
borderColor: 'var(--gray3)',
|
|
81
|
-
borderWidth: '2px'
|
|
82
|
-
},
|
|
83
|
-
'&:active fieldset': {
|
|
84
|
-
borderColor: 'var(--gray3)',
|
|
85
|
-
borderWidth: '2px'
|
|
86
|
-
},
|
|
87
|
-
'&.Mui-focused fieldset': {
|
|
88
|
-
borderColor: 'var(--primary)',
|
|
89
|
-
borderWidth: '2px'
|
|
90
|
-
},
|
|
91
|
-
'&:focus-visible': {
|
|
92
|
-
outline: 'none',
|
|
93
|
-
'& fieldset': {
|
|
94
|
-
outline: 'none',
|
|
95
|
-
boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)',
|
|
96
|
-
border: '2px solid var(--gray4)'
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
'&.MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
101
|
-
border: '1px dashed var(--gray2)'
|
|
102
|
-
},
|
|
103
|
-
'&.MuiInputLabel-root.Mui-disabled': {
|
|
104
|
-
color: 'var(--gray3)'
|
|
105
|
-
},
|
|
106
|
-
'&.MuiFormHelperText-root.Mui-focused div h6': {
|
|
107
|
-
color: 'var(--primary)'
|
|
108
|
-
},
|
|
109
|
-
'&.MuiInputBase-root.MuiOutlinedInput-root': {
|
|
110
|
-
color: 'var(--gray5)'
|
|
111
|
-
},
|
|
112
|
-
'&.MuiFilledInput-root .MuiSelect-nativeInput': {
|
|
113
|
-
height: '3rem',
|
|
114
|
-
lineHeight: 'var(--spacing12)',
|
|
115
|
-
padding: 'var(--spacing12)',
|
|
116
|
-
paddingRight: 'var(--spacing8)'
|
|
117
|
-
},
|
|
118
|
-
'& .MuiSelect-filled.MuiFilledInput-input': {
|
|
119
|
-
paddingTop: 'var(--spacing12)',
|
|
120
|
-
padding: 'var(--spacing12) var(--spacing12) var(--spacing12) 0!important'
|
|
121
|
-
},
|
|
122
|
-
'& .MuiSelect-select.MuiSelect-standard': {
|
|
123
|
-
paddingBottom: 'var(--spacing12)',
|
|
124
|
-
padding: 'var(--spacing12) var(--spacing12) var(--spacing12) 0!important',
|
|
125
|
-
paddingRight: 'var(--spacing8)!important'
|
|
126
|
-
},
|
|
127
|
-
'&.MuiInputBase-root': {
|
|
128
|
-
marginTop: '0'
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
var SelectInputOld = function SelectInputOld(_ref) {
|
|
134
|
-
var id = _ref.id,
|
|
135
|
-
className = _ref.className,
|
|
136
|
-
onChange = _ref.onChange,
|
|
137
|
-
label = _ref.label,
|
|
138
|
-
disabled = _ref.disabled,
|
|
139
|
-
width = _ref.width,
|
|
140
|
-
fullWidth = _ref.fullWidth,
|
|
141
|
-
children = _ref.children,
|
|
142
|
-
error = _ref.error,
|
|
143
|
-
helperText = _ref.helperText,
|
|
144
|
-
helper = _ref.helper,
|
|
145
|
-
variant = _ref.variant,
|
|
146
|
-
endAdornment = _ref.endAdornment,
|
|
147
|
-
success = _ref.success,
|
|
148
|
-
sx = _ref.sx,
|
|
149
|
-
sxFormControl = _ref.sxFormControl,
|
|
150
|
-
propsFormControl = _ref.propsFormControl,
|
|
151
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
152
|
-
|
|
153
|
-
var getIcon = function getIcon() {
|
|
154
|
-
var icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
155
|
-
className: "cbx-inputText-endAdornment ".concat(endAdornment)
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
if (success) {
|
|
159
|
-
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
160
|
-
className: "cbx-inputText-endAdornment ri-check-line",
|
|
161
|
-
style: {
|
|
162
|
-
color: 'var(--success)'
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (error) {
|
|
168
|
-
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
169
|
-
className: 'cbx-inputText-endAdornment ri-information-line',
|
|
170
|
-
style: {
|
|
171
|
-
color: 'var(--error)'
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (helper) {
|
|
177
|
-
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
178
|
-
className: 'cbx-inputText-endAdornment ri-information-line'
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
return icon;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
var getVariant = function getVariant() {
|
|
186
|
-
var variantInput = 'outlined';
|
|
187
|
-
|
|
188
|
-
if (variant === 'outlined') {
|
|
189
|
-
variantInput = variant;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (variant === 'filled') {
|
|
193
|
-
variantInput = variant;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (variant === 'standard') {
|
|
197
|
-
variantInput = variant;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
return variantInput;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
return /*#__PURE__*/_react.default.createElement(_FormControl.default, _extends({
|
|
204
|
-
fullWidth: fullWidth,
|
|
205
|
-
sx: _objectSpread(_objectSpread({
|
|
206
|
-
minWidth: width || '15rem'
|
|
207
|
-
}, width ? {
|
|
208
|
-
width: width || ''
|
|
209
|
-
} : {}), {}, {
|
|
210
|
-
minHeight: '3rem'
|
|
211
|
-
}, sxFormControl)
|
|
212
|
-
}, propsFormControl), label && /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
213
|
-
variant: getVariant(),
|
|
214
|
-
disabled: disabled,
|
|
215
|
-
error: error,
|
|
216
|
-
sx: {
|
|
217
|
-
'&.MuiInputLabel-root': {
|
|
218
|
-
color: 'var(--gray5)'
|
|
219
|
-
},
|
|
220
|
-
'&.MuiInputLabel-root.Mui-focused': {
|
|
221
|
-
top: '0',
|
|
222
|
-
color: 'var(--primary)'
|
|
223
|
-
},
|
|
224
|
-
'&.MuiInputLabel-root.Mui-error': {
|
|
225
|
-
color: 'var(--error)'
|
|
226
|
-
},
|
|
227
|
-
'&.MuiInputLabel-root.Mui-disabled': {
|
|
228
|
-
color: 'var(--gray3)'
|
|
229
|
-
},
|
|
230
|
-
'&.MuiInputLabel-filled.MuiInputLabel-shrink': {
|
|
231
|
-
transform: 'translate(0 ,-0.625rem) scale(0.75)!important'
|
|
232
|
-
},
|
|
233
|
-
'&.MuiInputLabel-outlined.MuiFormLabel-root:not(.MuiInputLabel-shrink)': {
|
|
234
|
-
transform: 'translate(0.875rem ,0.75rem) scale(1)!important'
|
|
235
|
-
},
|
|
236
|
-
'&.MuiInputLabel-outlined.MuiFormLabel-root.MuiInputLabel-shrink': {
|
|
237
|
-
transform: 'translate(0.875rem ,-0.625rem) scale(0.75)!important'
|
|
238
|
-
},
|
|
239
|
-
'&.MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl.MuiInputLabel-animated.MuiInputLabel-filled:not(.MuiInputLabel-shrink)': {
|
|
240
|
-
transform: 'translate(0 ,0.75rem) scale(1)!important'
|
|
241
|
-
},
|
|
242
|
-
'&.MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl.MuiInputLabel-animated.MuiInputLabel-standard:not(.MuiInputLabel-shrink)': {
|
|
243
|
-
transform: 'translate(0 ,0.75rem) scale(1)!important'
|
|
244
|
-
},
|
|
245
|
-
'&.MuiInputLabel-shrink': {
|
|
246
|
-
transform: 'translate(0 ,-0.625rem) scale(0.75)!important',
|
|
247
|
-
zIndex: '1'
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}, label), /*#__PURE__*/_react.default.createElement(CssSelect, _extends({
|
|
251
|
-
id: id,
|
|
252
|
-
className: className,
|
|
253
|
-
sx: _objectSpread(_objectSpread({
|
|
254
|
-
minWidth: width || '15rem'
|
|
255
|
-
}, width ? {
|
|
256
|
-
width: width || ''
|
|
257
|
-
} : {}), {}, {
|
|
258
|
-
maxHeight: '3rem',
|
|
259
|
-
height: '3rem',
|
|
260
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
261
|
-
'& legend': {
|
|
262
|
-
width: label ? 'auto' : '0px'
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}, sx),
|
|
266
|
-
variant: getVariant(),
|
|
267
|
-
label: label,
|
|
268
|
-
fullWidth: fullWidth,
|
|
269
|
-
onChange: onChange,
|
|
270
|
-
disabled: disabled,
|
|
271
|
-
error: error,
|
|
272
|
-
MenuProps: {
|
|
273
|
-
PaperProps: {
|
|
274
|
-
className: fullWidth ? 'cbx-selectInput-fullwidth' : ''
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}, props, {
|
|
278
|
-
InputProps: {
|
|
279
|
-
endAdornment: getIcon()
|
|
280
|
-
}
|
|
281
|
-
}), children), /*#__PURE__*/_react.default.createElement(_material.FormHelperText, {
|
|
282
|
-
sx: {
|
|
283
|
-
marginLeft: '0',
|
|
284
|
-
marginRight: '0px'
|
|
285
|
-
}
|
|
286
|
-
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, helperText, error ? /*#__PURE__*/_react.default.createElement("div", {
|
|
287
|
-
className: "cbx-selectInput-items-center"
|
|
288
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
289
|
-
variant: "XS",
|
|
290
|
-
color: 'var(--error)'
|
|
291
|
-
}, error)) : helper && /*#__PURE__*/_react.default.createElement("div", {
|
|
292
|
-
className: "cbx-inputText-items-center"
|
|
293
|
-
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
294
|
-
color: !disabled ? 'var(--gray4)' : 'var(--gray3)',
|
|
295
|
-
variant: "XS"
|
|
296
|
-
}, helper)))));
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
SelectInputOld.displayName = "SelectInputOld";
|
|
300
|
-
SelectInputOld.propTypes = {
|
|
301
|
-
label: _propTypes.default.string,
|
|
302
|
-
width: _propTypes.default.string,
|
|
303
|
-
id: _propTypes.default.string,
|
|
304
|
-
className: _propTypes.default.string,
|
|
305
|
-
onChange: _propTypes.default.func,
|
|
306
|
-
disabled: _propTypes.default.bool,
|
|
307
|
-
children: _propTypes.default.node,
|
|
308
|
-
helperText: _propTypes.default.node,
|
|
309
|
-
error: _propTypes.default.node,
|
|
310
|
-
helper: _propTypes.default.node
|
|
311
|
-
};
|
|
312
|
-
SelectInputOld.defaultProps = {
|
|
313
|
-
label: '',
|
|
314
|
-
width: '',
|
|
315
|
-
id: '',
|
|
316
|
-
className: '',
|
|
317
|
-
onChange: undefined,
|
|
318
|
-
disabled: false,
|
|
319
|
-
children: [],
|
|
320
|
-
helperText: '',
|
|
321
|
-
error: '',
|
|
322
|
-
helper: ''
|
|
323
|
-
};
|
|
324
|
-
var _default = SelectInputOld;
|
|
325
|
-
exports.default = _default;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
.cbx-table-container {
|
|
2
|
-
width: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.cbx-table-container-loadingSection {
|
|
6
|
-
margin-top: 3rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cbx-table th {
|
|
10
|
-
padding: 0.625rem 0.75rem !important;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cbx-table td {
|
|
14
|
-
padding: var(--spacing12) !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cbx-table thead tr {
|
|
18
|
-
height: var(--spacing52);
|
|
19
|
-
position: relative;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.cbx-table tbody tr {
|
|
23
|
-
height: var(--spacing64);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.lastResponsive th,
|
|
27
|
-
.lastResponsive td {
|
|
28
|
-
padding: 0 !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.lastResponsive tr>td:last-child,
|
|
32
|
-
.lastResponsive tr>th:last-child {
|
|
33
|
-
min-width: 4.438rem;
|
|
34
|
-
width: 4.438rem;
|
|
35
|
-
position: sticky;
|
|
36
|
-
right: 0;
|
|
37
|
-
text-align: center;
|
|
38
|
-
background: white;
|
|
39
|
-
padding: 0;
|
|
40
|
-
margin: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.lastResponsive tr>td:last-child {
|
|
44
|
-
min-height: 3.938rem;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.lastResponsive tr>th:last-child {
|
|
48
|
-
height: var(--spacing52);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.lastResponsive tr>td:last-child {
|
|
52
|
-
display: flex;
|
|
53
|
-
justify-content: flex-end;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.lastResponsive tr>th:last-child div {
|
|
57
|
-
float: right;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.lastResponsive tr>td:last-child div,
|
|
61
|
-
.lastResponsive tr>th:last-child div {
|
|
62
|
-
box-shadow: -4px 0px 4px rgba(0, 0, 0, 0.25);
|
|
63
|
-
width: 4rem;
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.lastResponsive tr>td:last-child div{
|
|
70
|
-
min-height: 3.938rem;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.lastResponsive tr>th:last-child div {
|
|
74
|
-
height: 3.188rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.lastResponsive tr>th:last-child {
|
|
78
|
-
z-index: 20 !important;
|
|
79
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TableSortLabel = exports.TableRow = exports.TableHead = exports.TableContainer = exports.TableCell = exports.TableBody = exports.Table = void 0;
|
|
7
|
-
|
|
8
|
-
var _Table = _interopRequireDefault(require("@mui/material/Table"));
|
|
9
|
-
|
|
10
|
-
var _TableBody = _interopRequireDefault(require("@mui/material/TableBody"));
|
|
11
|
-
|
|
12
|
-
var _TableCell = _interopRequireDefault(require("@mui/material/TableCell"));
|
|
13
|
-
|
|
14
|
-
var _TableContainer = _interopRequireDefault(require("@mui/material/TableContainer"));
|
|
15
|
-
|
|
16
|
-
var _TableHead = _interopRequireDefault(require("@mui/material/TableHead"));
|
|
17
|
-
|
|
18
|
-
var _TableRow = _interopRequireDefault(require("@mui/material/TableRow"));
|
|
19
|
-
|
|
20
|
-
var _TableSortLabel = _interopRequireDefault(require("@mui/material/TableSortLabel"));
|
|
21
|
-
|
|
22
|
-
var _excluded = ["lastResponsive"],
|
|
23
|
-
_excluded2 = ["children", "component", "hover", "selected", "onClick", "className"],
|
|
24
|
-
_excluded3 = ["children", "component"],
|
|
25
|
-
_excluded4 = ["children", "component"],
|
|
26
|
-
_excluded5 = ["children", "active", "direction", "onClick", "hideSortIcon", "IconComponent"],
|
|
27
|
-
_excluded6 = ["children", "component", "padding", "scope", "size", "sortDirection", "variant", "align", "sx"],
|
|
28
|
-
_excluded7 = ["children", "component"];
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
-
|
|
34
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
-
|
|
36
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
-
|
|
38
|
-
function _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); }
|
|
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
|
-
// import './TableOld.css';
|
|
45
|
-
var Table = function Table(_ref) {
|
|
46
|
-
var lastResponsive = _ref.lastResponsive,
|
|
47
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
48
|
-
|
|
49
|
-
return /*#__PURE__*/React.createElement(_Table.default, _extends({
|
|
50
|
-
className: lastResponsive ? 'cbx-table lastResponsive' : 'cbx-table'
|
|
51
|
-
}, props));
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
exports.Table = Table;
|
|
55
|
-
Table.displayName = "Table";
|
|
56
|
-
|
|
57
|
-
var TableRow = function TableRow(_ref2) {
|
|
58
|
-
var children = _ref2.children,
|
|
59
|
-
component = _ref2.component,
|
|
60
|
-
hover = _ref2.hover,
|
|
61
|
-
selected = _ref2.selected,
|
|
62
|
-
onClick = _ref2.onClick,
|
|
63
|
-
className = _ref2.className,
|
|
64
|
-
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
65
|
-
|
|
66
|
-
return /*#__PURE__*/React.createElement(_TableRow.default, _extends({
|
|
67
|
-
className: className,
|
|
68
|
-
component: component,
|
|
69
|
-
hover: hover,
|
|
70
|
-
selected: selected,
|
|
71
|
-
onClick: onClick
|
|
72
|
-
}, props), children);
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
exports.TableRow = TableRow;
|
|
76
|
-
TableRow.displayName = "TableRow";
|
|
77
|
-
|
|
78
|
-
var TableBody = function TableBody(_ref3) {
|
|
79
|
-
var children = _ref3.children,
|
|
80
|
-
component = _ref3.component,
|
|
81
|
-
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
82
|
-
|
|
83
|
-
return /*#__PURE__*/React.createElement(_TableBody.default, _extends({
|
|
84
|
-
component: component
|
|
85
|
-
}, props), children);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
exports.TableBody = TableBody;
|
|
89
|
-
TableBody.displayName = "TableBody";
|
|
90
|
-
|
|
91
|
-
var TableHead = function TableHead(_ref4) {
|
|
92
|
-
var children = _ref4.children,
|
|
93
|
-
component = _ref4.component,
|
|
94
|
-
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
95
|
-
|
|
96
|
-
return /*#__PURE__*/React.createElement(_TableHead.default, _extends({
|
|
97
|
-
component: component
|
|
98
|
-
}, props), children);
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
exports.TableHead = TableHead;
|
|
102
|
-
TableHead.displayName = "TableHead";
|
|
103
|
-
|
|
104
|
-
var TableSortLabel = function TableSortLabel(_ref5) {
|
|
105
|
-
var children = _ref5.children,
|
|
106
|
-
active = _ref5.active,
|
|
107
|
-
direction = _ref5.direction,
|
|
108
|
-
onClick = _ref5.onClick,
|
|
109
|
-
hideSortIcon = _ref5.hideSortIcon,
|
|
110
|
-
IconComponent = _ref5.IconComponent,
|
|
111
|
-
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
112
|
-
|
|
113
|
-
return /*#__PURE__*/React.createElement(_TableSortLabel.default, _extends({
|
|
114
|
-
onClick: onClick,
|
|
115
|
-
active: active,
|
|
116
|
-
direction: direction,
|
|
117
|
-
hideSortIcon: hideSortIcon,
|
|
118
|
-
IconComponent: IconComponent
|
|
119
|
-
}, props), children);
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
exports.TableSortLabel = TableSortLabel;
|
|
123
|
-
TableSortLabel.displayName = "TableSortLabel";
|
|
124
|
-
|
|
125
|
-
var TableCell = function TableCell(_ref6) {
|
|
126
|
-
var children = _ref6.children,
|
|
127
|
-
component = _ref6.component,
|
|
128
|
-
padding = _ref6.padding,
|
|
129
|
-
scope = _ref6.scope,
|
|
130
|
-
size = _ref6.size,
|
|
131
|
-
sortDirection = _ref6.sortDirection,
|
|
132
|
-
variant = _ref6.variant,
|
|
133
|
-
align = _ref6.align,
|
|
134
|
-
sx = _ref6.sx,
|
|
135
|
-
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
136
|
-
|
|
137
|
-
return /*#__PURE__*/React.createElement(_TableCell.default, _extends({
|
|
138
|
-
component: component,
|
|
139
|
-
padding: padding,
|
|
140
|
-
scope: scope,
|
|
141
|
-
size: size,
|
|
142
|
-
sortDirection: sortDirection,
|
|
143
|
-
variant: variant,
|
|
144
|
-
align: align,
|
|
145
|
-
sx: _objectSpread({
|
|
146
|
-
color: 'var(--gray3)'
|
|
147
|
-
}, sx)
|
|
148
|
-
}, props), children);
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
exports.TableCell = TableCell;
|
|
152
|
-
TableCell.displayName = "TableCell";
|
|
153
|
-
|
|
154
|
-
var TableContainer = function TableContainer(_ref7) {
|
|
155
|
-
var children = _ref7.children,
|
|
156
|
-
component = _ref7.component,
|
|
157
|
-
props = _objectWithoutProperties(_ref7, _excluded7);
|
|
158
|
-
|
|
159
|
-
return /*#__PURE__*/React.createElement(_TableContainer.default, _extends({
|
|
160
|
-
component: component
|
|
161
|
-
}, props), children);
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
exports.TableContainer = TableContainer;
|
|
165
|
-
TableContainer.displayName = "TableContainer";
|
|
@@ -1,92 +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 _Tabs = _interopRequireDefault(require("@mui/material/Tabs"));
|
|
13
|
-
|
|
14
|
-
var _Tab = _interopRequireDefault(require("@mui/material/Tab"));
|
|
15
|
-
|
|
16
|
-
require("../../styles/main.css");
|
|
17
|
-
|
|
18
|
-
require("./Tabs.css");
|
|
19
|
-
|
|
20
|
-
var _excluded = ["id", "className", "value", "onChange", "itemsTab", "variant"];
|
|
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 Tabs = function Tabs(_ref) {
|
|
37
|
-
var id = _ref.id,
|
|
38
|
-
className = _ref.className,
|
|
39
|
-
value = _ref.value,
|
|
40
|
-
onChange = _ref.onChange,
|
|
41
|
-
itemsTab = _ref.itemsTab,
|
|
42
|
-
variant = _ref.variant,
|
|
43
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
44
|
-
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(_Tabs.default, _extends({
|
|
46
|
-
id: id,
|
|
47
|
-
className: className,
|
|
48
|
-
value: value,
|
|
49
|
-
onChange: onChange,
|
|
50
|
-
variant: variant === 'scrollable-fullWidth' ? 'scrollable' : variant,
|
|
51
|
-
scrollButtons: "auto"
|
|
52
|
-
}, props), itemsTab === null || itemsTab === void 0 ? void 0 : itemsTab.map(function (item, index) {
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_Tab.default, _extends({
|
|
54
|
-
key: "".concat(item.text, "-").concat(index),
|
|
55
|
-
sx: _objectSpread(_objectSpread({
|
|
56
|
-
borderBottom: '2px solid var(--gray2)',
|
|
57
|
-
'&:focus': {
|
|
58
|
-
outline: 'none'
|
|
59
|
-
}
|
|
60
|
-
}, variant === 'scrollable-fullWidth' ? {
|
|
61
|
-
minWidth: 'fit-content',
|
|
62
|
-
flex: 1
|
|
63
|
-
} : {}), item.sx),
|
|
64
|
-
disabled: item.disabled,
|
|
65
|
-
value: item.value || index,
|
|
66
|
-
label: /*#__PURE__*/_react.default.createElement("div", {
|
|
67
|
-
className: "cbx-Tab-container-label"
|
|
68
|
-
}, item.badge && /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
-
className: 'cbx-Tab-red-dot'
|
|
70
|
-
}), item.text)
|
|
71
|
-
}, item));
|
|
72
|
-
}));
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
Tabs.displayName = "Tabs";
|
|
76
|
-
Tabs.propTypes = {
|
|
77
|
-
value: _propTypes.default.any,
|
|
78
|
-
onChange: _propTypes.default.func,
|
|
79
|
-
itemsTab: _propTypes.default.array,
|
|
80
|
-
variant: _propTypes.default.string
|
|
81
|
-
};
|
|
82
|
-
Tabs.defaultProps = {
|
|
83
|
-
value: 0,
|
|
84
|
-
onChange: undefined,
|
|
85
|
-
itemsTab: [],
|
|
86
|
-
variant: '' // variant: 'fullWidth'
|
|
87
|
-
// variant: 'scrollable-fullWidth'
|
|
88
|
-
// variant: 'scrollable'
|
|
89
|
-
|
|
90
|
-
};
|
|
91
|
-
var _default = Tabs;
|
|
92
|
-
exports.default = _default;
|