@councilbox/councilbox-ui 2.0.54 → 2.0.56
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/ScrollbarOld.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/useDynamicStyles.js +25 -24
- package/dist/HOCs/usePopoverPosition.js +2 -0
- package/dist/build-index.js +70 -0
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +25 -2
- package/dist/components/Button/Button.js +15 -0
- package/dist/components/ButtonBasic/ButtonBasic.js +15 -0
- package/dist/components/Checkbox/Checkbox.js +2 -2
- package/dist/components/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +465 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +525 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +530 -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 +541 -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.js +21 -5
- package/dist/components/DropDown/DesignDropDown.stories.js +8 -0
- package/dist/components/DropDown/DropDown.js +14 -4
- package/dist/components/Header/Header.js +134 -25
- package/dist/components/IconButton/IconButton.js +3 -2
- package/dist/components/IconButtonSquare/IconButtonSquare.js +3 -3
- package/dist/components/InputAutocomplete/InputAutocomplete.js +17 -2
- package/dist/components/InputPassword/InputPassword.js +14 -1
- package/dist/components/InputText/InputText.css +10 -5
- package/dist/components/InputText/InputText.js +4 -4
- package/dist/components/InputTextArea/InputTextArea.js +14 -0
- package/dist/components/LoadingSection/LoadingSection.js +16 -4
- package/dist/components/MenuItem/MenuItem.js +78 -61
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +16 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +34 -4
- package/dist/components/Modal/Modal.js +16 -1
- package/dist/components/RadioButton/Radio.js +15 -0
- package/dist/components/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +352 -0
- package/dist/components/RichTextInput/RichTextInput.js +1057 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +17 -0
- package/dist/components/Scrollbar/Scrollbar.css +60 -19
- package/dist/components/Scrollbar/Scrollbar.js +384 -62
- package/dist/components/ScrollbarOld/DesignScrollbarOld.js +24 -0
- package/dist/components/ScrollbarOld/ScrollbarOld.css +38 -0
- package/dist/components/ScrollbarOld/ScrollbarOld.js +104 -0
- package/dist/components/ScrollbarOld/ScrollbarOld.stories.js +37 -0
- package/dist/components/SelectInput/SelectInput.js +112 -86
- package/dist/components/Slider/Slider.js +15 -0
- package/dist/components/Stars/Stars.js +13 -0
- package/dist/components/Stepper/Stepper.js +15 -2
- package/dist/components/Table/TableSortLabel.js +11 -0
- package/dist/components/Tabs/DesignTabs.js +1 -1
- package/dist/components/Tabs/Tabs.js +13 -2
- package/dist/components/Tag/Tag.js +16 -0
- package/dist/components/TextInput/TextInput.js +13 -0
- package/dist/components/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +441 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- package/dist/components/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +178 -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 +138 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.js +20 -14
- package/dist/components/Tooltip/Tooltip.js +24 -2
- package/dist/styles/styleFont.css +1 -1
- package/dist/styles/zIndexConsts.css +2 -0
- package/package.json +63 -3
- 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 -91
- package/dist/components/Avatar/AvatarOld.js +0 -124
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -211
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -96
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -211
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -154
- package/dist/components/Grid/GridItemOld.js +0 -38
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -46
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -122
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -115
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -159
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -314
- package/dist/components/MenuItem/MenuItemOld.js +0 -123
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -213
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -126
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -296
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -133
- package/dist/components/Tabs/TabsOld.js +0 -78
- package/dist/components/Typography/TypographyOld.js +0 -119
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
require("./Modal.css");
|
|
11
|
-
var _material = require("@mui/material");
|
|
12
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
13
|
-
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
14
|
-
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
15
|
-
var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons", "hasScrollbar", "scrollbarHeight"];
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
23
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
24
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
25
|
-
var Modal = function Modal(_ref) {
|
|
26
|
-
var title = _ref.title,
|
|
27
|
-
fullWidth = _ref.fullWidth,
|
|
28
|
-
_ref$id = _ref.id,
|
|
29
|
-
id = _ref$id === void 0 ? 'modal' : _ref$id,
|
|
30
|
-
fullScreen = _ref.fullScreen,
|
|
31
|
-
buttonAccept = _ref.buttonAccept,
|
|
32
|
-
buttonCancel = _ref.buttonCancel,
|
|
33
|
-
open = _ref.open,
|
|
34
|
-
requestClose = _ref.requestClose,
|
|
35
|
-
loadingAction = _ref.loadingAction,
|
|
36
|
-
acceptAction = _ref.acceptAction,
|
|
37
|
-
cancelAction = _ref.cancelAction,
|
|
38
|
-
body = _ref.body,
|
|
39
|
-
bodyText = _ref.bodyText,
|
|
40
|
-
hideAccept = _ref.hideAccept,
|
|
41
|
-
extraActions = _ref.extraActions,
|
|
42
|
-
classNameDialog = _ref.classNameDialog,
|
|
43
|
-
PaperProps = _ref.PaperProps,
|
|
44
|
-
widthModal = _ref.widthModal,
|
|
45
|
-
actions = _ref.actions,
|
|
46
|
-
sx = _ref.sx,
|
|
47
|
-
buttonCancelProps = _ref.buttonCancelProps,
|
|
48
|
-
buttonAcceptProps = _ref.buttonAcceptProps,
|
|
49
|
-
breakpointsButtons = _ref.breakpointsButtons,
|
|
50
|
-
hasScrollbar = _ref.hasScrollbar,
|
|
51
|
-
scrollbarHeight = _ref.scrollbarHeight,
|
|
52
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
-
var _useCouncilboxTheme = (0, _CouncilboxThemeContext.useCouncilboxTheme)(),
|
|
54
|
-
size = _useCouncilboxTheme.size,
|
|
55
|
-
innerWidth = _useCouncilboxTheme.innerWidth;
|
|
56
|
-
var buttons = /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
-
style: {
|
|
58
|
-
display: 'flex',
|
|
59
|
-
gap: innerWidth < breakpointsButtons ? 'var(--spacing12)' : 'var(--spacing8)',
|
|
60
|
-
flexDirection: innerWidth < breakpointsButtons && 'column',
|
|
61
|
-
width: innerWidth < breakpointsButtons && '100%'
|
|
62
|
-
}
|
|
63
|
-
}, !!buttonCancel && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], _extends({
|
|
64
|
-
variant: "secondary",
|
|
65
|
-
text: buttonCancel,
|
|
66
|
-
id: "".concat(id, "-button-cancel"),
|
|
67
|
-
onClick: cancelAction || requestClose,
|
|
68
|
-
fullWidth: true
|
|
69
|
-
}, buttonCancelProps))), extraActions &&
|
|
70
|
-
/*#__PURE__*/
|
|
71
|
-
// extraActions siempre fullWidth
|
|
72
|
-
_react["default"].createElement("div", null, extraActions), !hideAccept && !!buttonAccept && /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_ButtonBasic["default"], _extends({
|
|
73
|
-
text: buttonAccept,
|
|
74
|
-
id: "".concat(id, "-button-accept"),
|
|
75
|
-
loading: loadingAction,
|
|
76
|
-
onClick: acceptAction,
|
|
77
|
-
fullWidth: true
|
|
78
|
-
}, buttonAcceptProps))));
|
|
79
|
-
return /*#__PURE__*/_react["default"].createElement(_material.Dialog, _extends({
|
|
80
|
-
className: classNameDialog,
|
|
81
|
-
fullWidth: size === 'sm' || size === 'xs' || fullWidth,
|
|
82
|
-
fullScreen: fullScreen,
|
|
83
|
-
id: id,
|
|
84
|
-
open: open || false,
|
|
85
|
-
onClose: requestClose,
|
|
86
|
-
PaperProps: {
|
|
87
|
-
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
88
|
-
filter: 'drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25))',
|
|
89
|
-
boxShadow: 'none',
|
|
90
|
-
maxWidth: '37.5rem'
|
|
91
|
-
}, hasScrollbar ? {
|
|
92
|
-
width: size === 'sm' || size === 'xs' ? '' : '100%',
|
|
93
|
-
height: scrollbarHeight || '100%'
|
|
94
|
-
} : {}), widthModal), PaperProps ? PaperProps.style : {}), size === 'sm' || size === 'xs' ? {
|
|
95
|
-
margin: 0
|
|
96
|
-
} : {})
|
|
97
|
-
},
|
|
98
|
-
sx: _objectSpread({
|
|
99
|
-
'& .MuiDialog-paperFullWidth': {
|
|
100
|
-
width: '100%',
|
|
101
|
-
minWidth: '100%'
|
|
102
|
-
},
|
|
103
|
-
'& .MuiDialog-paperFullWidth .MuiDialogContent-root': {
|
|
104
|
-
width: '100%',
|
|
105
|
-
minWidth: '100%'
|
|
106
|
-
}
|
|
107
|
-
}, sx)
|
|
108
|
-
}, props), !!requestClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
109
|
-
style: {
|
|
110
|
-
position: 'absolute',
|
|
111
|
-
right: '26px',
|
|
112
|
-
top: '18px'
|
|
113
|
-
},
|
|
114
|
-
id: "alert-confirm-close",
|
|
115
|
-
onClick: requestClose
|
|
116
|
-
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
117
|
-
className: "ri-close-line",
|
|
118
|
-
style: {
|
|
119
|
-
fontSize: '1.5rem',
|
|
120
|
-
color: 'var(--gray3)',
|
|
121
|
-
cursor: 'pointer'
|
|
122
|
-
}
|
|
123
|
-
})), !!title && /*#__PURE__*/_react["default"].createElement(_material.DialogTitle, {
|
|
124
|
-
component: 'span',
|
|
125
|
-
sx: {
|
|
126
|
-
paddingTop: '1.438rem',
|
|
127
|
-
paddingLeft: '2rem'
|
|
128
|
-
}
|
|
129
|
-
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
130
|
-
variant: "L",
|
|
131
|
-
fontWeight: '700',
|
|
132
|
-
color: 'var(--primary)',
|
|
133
|
-
styles: {
|
|
134
|
-
marginRight: '1.8rem'
|
|
135
|
-
}
|
|
136
|
-
}, title)), /*#__PURE__*/_react["default"].createElement(_material.DialogContent, {
|
|
137
|
-
sx: {
|
|
138
|
-
minWidth: size === 'sm' || size === 'xs' ? '100%' : '25rem',
|
|
139
|
-
maxWidth: size === 'sm' || size === 'xs' ? '100%' : '37.5rem',
|
|
140
|
-
padding: '0 2rem',
|
|
141
|
-
overflow: 'hidden'
|
|
142
|
-
}
|
|
143
|
-
}, body || bodyText), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react["default"].createElement(_material.DialogActions, {
|
|
144
|
-
className: "cbx-modal-contentButtons",
|
|
145
|
-
sx: {
|
|
146
|
-
padding: '1.5rem 2rem',
|
|
147
|
-
margin: '0px',
|
|
148
|
-
minWidth: '1.563rem',
|
|
149
|
-
display: 'flex',
|
|
150
|
-
flexFlow: 'row wrap'
|
|
151
|
-
}
|
|
152
|
-
}, buttons), actions && /*#__PURE__*/_react["default"].createElement(_material.DialogActions, {
|
|
153
|
-
className: "cbx-modal-contentButtons",
|
|
154
|
-
sx: {
|
|
155
|
-
padding: '1.5rem 2rem',
|
|
156
|
-
margin: '0px',
|
|
157
|
-
minWidth: '1.563rem',
|
|
158
|
-
display: 'flex',
|
|
159
|
-
flexFlow: 'row wrap'
|
|
160
|
-
}
|
|
161
|
-
}, actions));
|
|
162
|
-
};
|
|
163
|
-
Modal.displayName = "Modal";
|
|
164
|
-
var _default = Modal;
|
|
165
|
-
exports["default"] = _default;
|
|
166
|
-
Modal.propTypes = {
|
|
167
|
-
title: _propTypes["default"].string,
|
|
168
|
-
fullWidth: _propTypes["default"].bool,
|
|
169
|
-
id: _propTypes["default"].string,
|
|
170
|
-
fullScreen: _propTypes["default"].bool,
|
|
171
|
-
buttonAccept: _propTypes["default"].string,
|
|
172
|
-
buttonCancel: _propTypes["default"].string,
|
|
173
|
-
open: _propTypes["default"].bool,
|
|
174
|
-
requestClose: _propTypes["default"].func,
|
|
175
|
-
loadingAction: _propTypes["default"].bool,
|
|
176
|
-
acceptAction: _propTypes["default"].func,
|
|
177
|
-
cancelAction: _propTypes["default"].func,
|
|
178
|
-
body: _propTypes["default"].node,
|
|
179
|
-
bodyText: _propTypes["default"].node,
|
|
180
|
-
hideAccept: _propTypes["default"].bool,
|
|
181
|
-
extraActions: _propTypes["default"].node,
|
|
182
|
-
classNameDialog: _propTypes["default"].string,
|
|
183
|
-
PaperProps: _propTypes["default"].object,
|
|
184
|
-
widthModal: _propTypes["default"].object,
|
|
185
|
-
actions: _propTypes["default"].node,
|
|
186
|
-
breakpointsButtons: _propTypes["default"].string,
|
|
187
|
-
hasScrollbar: _propTypes["default"].bool,
|
|
188
|
-
scrollbarHeight: _propTypes["default"].string
|
|
189
|
-
};
|
|
190
|
-
Modal.defaultProps = {
|
|
191
|
-
title: '',
|
|
192
|
-
fullWidth: false,
|
|
193
|
-
id: 'modal',
|
|
194
|
-
fullScreen: false,
|
|
195
|
-
buttonAccept: '',
|
|
196
|
-
buttonCancel: '',
|
|
197
|
-
open: false,
|
|
198
|
-
requestClose: undefined,
|
|
199
|
-
loadingAction: false,
|
|
200
|
-
acceptAction: undefined,
|
|
201
|
-
cancelAction: undefined,
|
|
202
|
-
body: '',
|
|
203
|
-
bodyText: '',
|
|
204
|
-
hideAccept: false,
|
|
205
|
-
extraActions: undefined,
|
|
206
|
-
classNameDialog: '',
|
|
207
|
-
PaperProps: {},
|
|
208
|
-
widthModal: {},
|
|
209
|
-
actions: undefined,
|
|
210
|
-
breakpointsButtons: '800',
|
|
211
|
-
hasScrollbar: false,
|
|
212
|
-
scrollbarHeight: '70%'
|
|
213
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.cbx-radio-container {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.cbx-radio-container:hover:before {
|
|
6
|
-
animation: ripple .6s ease;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cbx-radio-container:before {
|
|
10
|
-
content: "";
|
|
11
|
-
position: absolute;
|
|
12
|
-
top: 0;
|
|
13
|
-
left: 0;
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
background-color: var(--accent25);
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
transform: scale(0);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@keyframes ripple {
|
|
22
|
-
from {
|
|
23
|
-
transform: scale(0);
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
to {
|
|
28
|
-
transform: scale(2.1);
|
|
29
|
-
opacity: .6;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _Radio = _interopRequireDefault(require("@mui/material/Radio"));
|
|
10
|
-
require("../../styles/main.css");
|
|
11
|
-
require("./Radio.css");
|
|
12
|
-
var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
|
|
13
|
-
var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
14
|
-
var _excluded = ["id", "className", "disabled", "indeterminate", "label", "onChange"];
|
|
15
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
17
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
18
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
19
|
-
var BpIcon = (0, _styled["default"])('span')(function () {
|
|
20
|
-
return {
|
|
21
|
-
borderRadius: '50%',
|
|
22
|
-
width: 20,
|
|
23
|
-
height: 20,
|
|
24
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
25
|
-
backgroundColor: '#f5f8fa',
|
|
26
|
-
zIndex: '1',
|
|
27
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',
|
|
28
|
-
transition: '0.2s',
|
|
29
|
-
'.Mui-focusVisible &': {
|
|
30
|
-
outline: '0.125rem auto rgba(19,124,189,.6)',
|
|
31
|
-
outlineOffset: 2
|
|
32
|
-
},
|
|
33
|
-
'input:disabled ~ &': {
|
|
34
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)'
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
var BpCheckedIcon = (0, _styled["default"])(BpIcon)({
|
|
39
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--primary)',
|
|
40
|
-
backgroundColor: 'var(--primary)',
|
|
41
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
42
|
-
'&:before': {
|
|
43
|
-
display: 'block',
|
|
44
|
-
width: 20,
|
|
45
|
-
height: 20,
|
|
46
|
-
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
|
47
|
-
content: '""'
|
|
48
|
-
},
|
|
49
|
-
'input:hover ~ &': {
|
|
50
|
-
backgroundColor: 'var(--primary)'
|
|
51
|
-
},
|
|
52
|
-
'input:disabled ~ &': {
|
|
53
|
-
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
54
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
55
|
-
backgroundColor: 'var(--gray3)'
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
var CssFormControlLabel = (0, _styled["default"])(_FormControlLabel["default"])(function () {
|
|
59
|
-
return {
|
|
60
|
-
'& .MuiFormControlLabel-label': {
|
|
61
|
-
marginLeft: 'var(--spacing12)',
|
|
62
|
-
transition: '0.2s'
|
|
63
|
-
},
|
|
64
|
-
'& .MuiRadio-root.Mui-disabled': {
|
|
65
|
-
color: '#acadce'
|
|
66
|
-
},
|
|
67
|
-
'& .MuiRadio-root': {
|
|
68
|
-
transition: 'all .2s'
|
|
69
|
-
},
|
|
70
|
-
'& .MuiRadio-root.Mui-checked + span': {
|
|
71
|
-
color: 'var(--primary)',
|
|
72
|
-
fontWeight: '700'
|
|
73
|
-
},
|
|
74
|
-
'& .MuiRadio-root.Mui-disabled.Mui-checked + span': {
|
|
75
|
-
color: 'var(--gray3)',
|
|
76
|
-
fontWeight: '700'
|
|
77
|
-
},
|
|
78
|
-
'.MuiButtonBase-root.Mui-disabled, .MuiFormControlLabel-label.Mui-disabled': {
|
|
79
|
-
color: 'var(--gray3)',
|
|
80
|
-
fontWeight: '700'
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
var Radio = function Radio(_ref) {
|
|
85
|
-
var id = _ref.id,
|
|
86
|
-
className = _ref.className,
|
|
87
|
-
disabled = _ref.disabled,
|
|
88
|
-
indeterminate = _ref.indeterminate,
|
|
89
|
-
label = _ref.label,
|
|
90
|
-
onChange = _ref.onChange,
|
|
91
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
92
|
-
return /*#__PURE__*/_react["default"].createElement(CssFormControlLabel, _extends({
|
|
93
|
-
id: id,
|
|
94
|
-
className: className,
|
|
95
|
-
style: {
|
|
96
|
-
margin: '0px'
|
|
97
|
-
},
|
|
98
|
-
onChange: onChange,
|
|
99
|
-
control: /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
100
|
-
className: 'cbx-radio-container',
|
|
101
|
-
indeterminate: indeterminate,
|
|
102
|
-
style: {
|
|
103
|
-
padding: '0px'
|
|
104
|
-
},
|
|
105
|
-
checkedIcon: /*#__PURE__*/_react["default"].createElement(BpCheckedIcon, null),
|
|
106
|
-
icon: /*#__PURE__*/_react["default"].createElement(BpIcon, null)
|
|
107
|
-
}),
|
|
108
|
-
disabled: disabled,
|
|
109
|
-
label: label
|
|
110
|
-
}, props));
|
|
111
|
-
};
|
|
112
|
-
Radio.displayName = "Radio";
|
|
113
|
-
Radio.propTypes = {
|
|
114
|
-
onChange: _propTypes["default"].func,
|
|
115
|
-
disabled: _propTypes["default"].bool,
|
|
116
|
-
indeterminate: _propTypes["default"].bool,
|
|
117
|
-
label: _propTypes["default"].string
|
|
118
|
-
};
|
|
119
|
-
Radio.defaultProps = {
|
|
120
|
-
onChange: undefined,
|
|
121
|
-
disabled: false,
|
|
122
|
-
indeterminate: false,
|
|
123
|
-
label: ''
|
|
124
|
-
};
|
|
125
|
-
var _default = Radio;
|
|
126
|
-
exports["default"] = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.cbx-selectInput-items-center {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.cbx-selectInput-infoBtn {
|
|
7
|
-
margin-right: var(--spacing4);
|
|
8
|
-
height: 0.875rem;
|
|
9
|
-
line-height: 1.1;
|
|
10
|
-
font-size: 0.875rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.cbx-selectInput-fullwidth ul li {
|
|
14
|
-
width: 100%!important;
|
|
15
|
-
min-width: 100%!important;
|
|
16
|
-
max-width: 100%!important;
|
|
17
|
-
}
|
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
var _Select = _interopRequireDefault(require("@mui/material/Select"));
|
|
11
|
-
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
12
|
-
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
13
|
-
var _material = require("@mui/material");
|
|
14
|
-
require("../../styles/main.css");
|
|
15
|
-
require("./SelectInputOld.css");
|
|
16
|
-
var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
17
|
-
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
18
|
-
var _excluded = ["id", "className", "onChange", "label", "disabled", "width", "fullWidth", "children", "error", "helperText", "helper", "variant", "endAdornment", "success", "sx", "sxFormControl", "propsFormControl"];
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
20
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
21
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
27
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
28
|
-
var CssSelect = (0, _styled["default"])(_Select["default"])(function () {
|
|
29
|
-
return {
|
|
30
|
-
'& .MuiInput-underline:after': {
|
|
31
|
-
borderBottomColor: 'var(--gray5)',
|
|
32
|
-
borderWidth: '2px'
|
|
33
|
-
},
|
|
34
|
-
'& .MuiSelect-nativeInput': {
|
|
35
|
-
height: '3rem',
|
|
36
|
-
lineHeight: 'var(--spacing12)',
|
|
37
|
-
padding: 'var(--spacing12)',
|
|
38
|
-
paddingRight: 'var(--spacing8)'
|
|
39
|
-
},
|
|
40
|
-
'&.MuiInputBase-root.Mui-error': {
|
|
41
|
-
color: 'var(--error)'
|
|
42
|
-
},
|
|
43
|
-
'&.MuiInputBase-root.Mui-error input, &.MuiInputBase-root.Mui-error div, .MuiOutlinedInput-input.Mui-disabled': {
|
|
44
|
-
color: 'var(--gray5)',
|
|
45
|
-
WebkitTextFillColor: 'unset'
|
|
46
|
-
},
|
|
47
|
-
'&.Mui-disabled svg': {
|
|
48
|
-
display: 'none'
|
|
49
|
-
},
|
|
50
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
51
|
-
color: 'var(--gray5)',
|
|
52
|
-
paddingRight: 'var(--spacing8)',
|
|
53
|
-
'& fieldset': {
|
|
54
|
-
borderColor: 'var(--gray3)',
|
|
55
|
-
borderWidth: '1px',
|
|
56
|
-
'& legend': {
|
|
57
|
-
'& span': {
|
|
58
|
-
paddingLeft: 'var(--spacing4)',
|
|
59
|
-
paddingRight: 'var(--spacing4)'
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
'&:hover fieldset': {
|
|
64
|
-
borderColor: 'var(--gray3)',
|
|
65
|
-
borderWidth: '2px'
|
|
66
|
-
},
|
|
67
|
-
'&:active fieldset': {
|
|
68
|
-
borderColor: 'var(--gray3)',
|
|
69
|
-
borderWidth: '2px'
|
|
70
|
-
},
|
|
71
|
-
'&.Mui-focused fieldset': {
|
|
72
|
-
borderColor: 'var(--primary)',
|
|
73
|
-
borderWidth: '2px'
|
|
74
|
-
},
|
|
75
|
-
'&:focus-visible': {
|
|
76
|
-
outline: 'none',
|
|
77
|
-
'& fieldset': {
|
|
78
|
-
outline: 'none',
|
|
79
|
-
boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)',
|
|
80
|
-
border: '2px solid var(--gray4)'
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
'&.MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
85
|
-
border: '1px dashed var(--gray2)'
|
|
86
|
-
},
|
|
87
|
-
'&.MuiInputLabel-root.Mui-disabled': {
|
|
88
|
-
color: 'var(--gray3)'
|
|
89
|
-
},
|
|
90
|
-
'&.MuiFormHelperText-root.Mui-focused div h6': {
|
|
91
|
-
color: 'var(--primary)'
|
|
92
|
-
},
|
|
93
|
-
'&.MuiInputBase-root.MuiOutlinedInput-root': {
|
|
94
|
-
color: 'var(--gray5)'
|
|
95
|
-
},
|
|
96
|
-
'&.MuiFilledInput-root .MuiSelect-nativeInput': {
|
|
97
|
-
height: '3rem',
|
|
98
|
-
lineHeight: 'var(--spacing12)',
|
|
99
|
-
padding: 'var(--spacing12)',
|
|
100
|
-
paddingRight: 'var(--spacing8)'
|
|
101
|
-
},
|
|
102
|
-
'& .MuiSelect-filled.MuiFilledInput-input': {
|
|
103
|
-
paddingTop: 'var(--spacing12)',
|
|
104
|
-
padding: 'var(--spacing12) var(--spacing12) var(--spacing12) 0!important'
|
|
105
|
-
},
|
|
106
|
-
'& .MuiSelect-select.MuiSelect-standard': {
|
|
107
|
-
paddingBottom: 'var(--spacing12)',
|
|
108
|
-
padding: 'var(--spacing12) var(--spacing12) var(--spacing12) 0!important',
|
|
109
|
-
paddingRight: 'var(--spacing8)!important'
|
|
110
|
-
},
|
|
111
|
-
'&.MuiInputBase-root': {
|
|
112
|
-
marginTop: '0'
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
var SelectInputOld = function SelectInputOld(_ref) {
|
|
117
|
-
var id = _ref.id,
|
|
118
|
-
className = _ref.className,
|
|
119
|
-
onChange = _ref.onChange,
|
|
120
|
-
label = _ref.label,
|
|
121
|
-
disabled = _ref.disabled,
|
|
122
|
-
width = _ref.width,
|
|
123
|
-
fullWidth = _ref.fullWidth,
|
|
124
|
-
children = _ref.children,
|
|
125
|
-
error = _ref.error,
|
|
126
|
-
helperText = _ref.helperText,
|
|
127
|
-
helper = _ref.helper,
|
|
128
|
-
variant = _ref.variant,
|
|
129
|
-
endAdornment = _ref.endAdornment,
|
|
130
|
-
success = _ref.success,
|
|
131
|
-
sx = _ref.sx,
|
|
132
|
-
sxFormControl = _ref.sxFormControl,
|
|
133
|
-
propsFormControl = _ref.propsFormControl,
|
|
134
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
135
|
-
var getIcon = function getIcon() {
|
|
136
|
-
var icon = /*#__PURE__*/_react["default"].createElement("i", {
|
|
137
|
-
className: "cbx-inputText-endAdornment ".concat(endAdornment)
|
|
138
|
-
});
|
|
139
|
-
if (success) {
|
|
140
|
-
icon = /*#__PURE__*/_react["default"].createElement("i", {
|
|
141
|
-
className: "cbx-inputText-endAdornment ri-check-line",
|
|
142
|
-
style: {
|
|
143
|
-
color: 'var(--success)'
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
if (error) {
|
|
148
|
-
icon = /*#__PURE__*/_react["default"].createElement("i", {
|
|
149
|
-
className: 'cbx-inputText-endAdornment ri-information-line',
|
|
150
|
-
style: {
|
|
151
|
-
color: 'var(--error)'
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
if (helper) {
|
|
156
|
-
icon = /*#__PURE__*/_react["default"].createElement("i", {
|
|
157
|
-
className: 'cbx-inputText-endAdornment ri-information-line'
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
return icon;
|
|
161
|
-
};
|
|
162
|
-
var getVariant = function getVariant() {
|
|
163
|
-
var variantInput = 'outlined';
|
|
164
|
-
if (variant === 'outlined') {
|
|
165
|
-
variantInput = variant;
|
|
166
|
-
}
|
|
167
|
-
if (variant === 'filled') {
|
|
168
|
-
variantInput = variant;
|
|
169
|
-
}
|
|
170
|
-
if (variant === 'standard') {
|
|
171
|
-
variantInput = variant;
|
|
172
|
-
}
|
|
173
|
-
return variantInput;
|
|
174
|
-
};
|
|
175
|
-
return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], _extends({
|
|
176
|
-
fullWidth: fullWidth,
|
|
177
|
-
sx: _objectSpread(_objectSpread({
|
|
178
|
-
minWidth: width || '15rem'
|
|
179
|
-
}, width ? {
|
|
180
|
-
width: width || ''
|
|
181
|
-
} : {}), {}, {
|
|
182
|
-
minHeight: '3rem'
|
|
183
|
-
}, sxFormControl)
|
|
184
|
-
}, propsFormControl), label && /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], {
|
|
185
|
-
variant: getVariant(),
|
|
186
|
-
disabled: disabled,
|
|
187
|
-
error: error,
|
|
188
|
-
sx: {
|
|
189
|
-
'&.MuiInputLabel-root': {
|
|
190
|
-
color: 'var(--gray5)'
|
|
191
|
-
},
|
|
192
|
-
'&.MuiInputLabel-root.Mui-focused': {
|
|
193
|
-
top: '0',
|
|
194
|
-
color: 'var(--primary)'
|
|
195
|
-
},
|
|
196
|
-
'&.MuiInputLabel-root.Mui-error': {
|
|
197
|
-
color: 'var(--error)'
|
|
198
|
-
},
|
|
199
|
-
'&.MuiInputLabel-root.Mui-disabled': {
|
|
200
|
-
color: 'var(--gray3)'
|
|
201
|
-
},
|
|
202
|
-
'&.MuiInputLabel-filled.MuiInputLabel-shrink': {
|
|
203
|
-
transform: 'translate(0 ,-0.625rem) scale(0.75)!important'
|
|
204
|
-
},
|
|
205
|
-
'&.MuiInputLabel-outlined.MuiFormLabel-root:not(.MuiInputLabel-shrink)': {
|
|
206
|
-
transform: 'translate(0.875rem ,0.75rem) scale(1)!important'
|
|
207
|
-
},
|
|
208
|
-
'&.MuiInputLabel-outlined.MuiFormLabel-root.MuiInputLabel-shrink': {
|
|
209
|
-
transform: 'translate(0.875rem ,-0.625rem) scale(0.75)!important'
|
|
210
|
-
},
|
|
211
|
-
'&.MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl.MuiInputLabel-animated.MuiInputLabel-filled:not(.MuiInputLabel-shrink)': {
|
|
212
|
-
transform: 'translate(0 ,0.75rem) scale(1)!important'
|
|
213
|
-
},
|
|
214
|
-
'&.MuiFormLabel-root.MuiInputLabel-root.MuiInputLabel-formControl.MuiInputLabel-animated.MuiInputLabel-standard:not(.MuiInputLabel-shrink)': {
|
|
215
|
-
transform: 'translate(0 ,0.75rem) scale(1)!important'
|
|
216
|
-
},
|
|
217
|
-
'&.MuiInputLabel-shrink': {
|
|
218
|
-
transform: 'translate(0 ,-0.625rem) scale(0.75)!important',
|
|
219
|
-
zIndex: '1'
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}, label), /*#__PURE__*/_react["default"].createElement(CssSelect, _extends({
|
|
223
|
-
id: id,
|
|
224
|
-
className: className,
|
|
225
|
-
sx: _objectSpread(_objectSpread({
|
|
226
|
-
minWidth: width || '15rem'
|
|
227
|
-
}, width ? {
|
|
228
|
-
width: width || ''
|
|
229
|
-
} : {}), {}, {
|
|
230
|
-
maxHeight: '3rem',
|
|
231
|
-
height: '3rem',
|
|
232
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
233
|
-
'& legend': {
|
|
234
|
-
width: label ? 'auto' : '0px'
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}, sx),
|
|
238
|
-
variant: getVariant(),
|
|
239
|
-
label: label,
|
|
240
|
-
fullWidth: fullWidth,
|
|
241
|
-
onChange: onChange,
|
|
242
|
-
disabled: disabled,
|
|
243
|
-
error: error,
|
|
244
|
-
MenuProps: {
|
|
245
|
-
PaperProps: {
|
|
246
|
-
className: fullWidth ? 'cbx-selectInput-fullwidth' : ''
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}, props, {
|
|
250
|
-
InputProps: {
|
|
251
|
-
endAdornment: getIcon()
|
|
252
|
-
}
|
|
253
|
-
}), children), /*#__PURE__*/_react["default"].createElement(_material.FormHelperText, {
|
|
254
|
-
sx: {
|
|
255
|
-
marginLeft: '0',
|
|
256
|
-
marginRight: '0px'
|
|
257
|
-
}
|
|
258
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, helperText, error ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
259
|
-
className: "cbx-selectInput-items-center"
|
|
260
|
-
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
261
|
-
variant: "XS",
|
|
262
|
-
color: 'var(--error)'
|
|
263
|
-
}, error)) : helper && /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
|
-
className: "cbx-inputText-items-center"
|
|
265
|
-
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
266
|
-
color: !disabled ? 'var(--gray4)' : 'var(--gray3)',
|
|
267
|
-
variant: "XS"
|
|
268
|
-
}, helper)))));
|
|
269
|
-
};
|
|
270
|
-
SelectInputOld.displayName = "SelectInputOld";
|
|
271
|
-
SelectInputOld.propTypes = {
|
|
272
|
-
label: _propTypes["default"].string,
|
|
273
|
-
width: _propTypes["default"].string,
|
|
274
|
-
id: _propTypes["default"].string,
|
|
275
|
-
className: _propTypes["default"].string,
|
|
276
|
-
onChange: _propTypes["default"].func,
|
|
277
|
-
disabled: _propTypes["default"].bool,
|
|
278
|
-
children: _propTypes["default"].node,
|
|
279
|
-
helperText: _propTypes["default"].node,
|
|
280
|
-
error: _propTypes["default"].node,
|
|
281
|
-
helper: _propTypes["default"].node
|
|
282
|
-
};
|
|
283
|
-
SelectInputOld.defaultProps = {
|
|
284
|
-
label: '',
|
|
285
|
-
width: '',
|
|
286
|
-
id: '',
|
|
287
|
-
className: '',
|
|
288
|
-
onChange: undefined,
|
|
289
|
-
disabled: false,
|
|
290
|
-
children: [],
|
|
291
|
-
helperText: '',
|
|
292
|
-
error: '',
|
|
293
|
-
helper: ''
|
|
294
|
-
};
|
|
295
|
-
var _default = SelectInputOld;
|
|
296
|
-
exports["default"] = _default;
|