@councilbox/councilbox-ui 1.0.0 → 2.0.0
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/dist/HOCs/useDynamicStyles.js +99 -0
- package/dist/HOCs/useRipple.js +91 -0
- package/dist/build-index.js +8 -0
- package/dist/components/1.Introduction.stories.mdx +2 -1
- package/dist/components/2.Changelog.stories.mdx +7 -0
- package/dist/components/3.Guide.stories.mdx +56 -0
- package/dist/components/Accordion/Accordion.css +39 -1
- package/dist/components/Accordion/Accordion.js +84 -45
- package/dist/components/Accordion/Accordion.stories.js +4 -2
- package/dist/components/Accordion/AccordionOld.css +16 -0
- package/dist/components/Accordion/AccordionOld.js +115 -0
- package/dist/components/Accordion/DesignAccordion.stories.js +38 -0
- package/dist/components/Alert/Alert.css +5 -0
- package/dist/components/Alert/Alert.js +17 -6
- package/dist/components/Avatar/Avatar.css +3 -3
- package/dist/components/Avatar/Avatar.js +36 -20
- package/dist/components/Avatar/AvatarOld.js +138 -0
- package/dist/components/Avatar/DesignAvatar.stories.js +1 -1
- package/dist/components/Block/Block.js +17 -2
- package/dist/components/ButtonBasic/ButtonBasic.css +264 -20
- package/dist/components/ButtonBasic/ButtonBasic.js +85 -110
- package/dist/components/ButtonBasic/ButtonBasicOld.css +41 -0
- package/dist/components/ButtonBasic/ButtonBasicOld.js +231 -0
- package/dist/components/Checkbox/Checkbox.css +101 -22
- package/dist/components/Checkbox/Checkbox.js +119 -63
- package/dist/components/Checkbox/CheckboxOld.css +31 -0
- package/dist/components/Checkbox/CheckboxOld.js +112 -0
- package/dist/components/DragDrop/DragDrop.js +24 -9
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +4 -2
- package/dist/components/DrawerPanel/DrawerPanel.css +76 -36
- package/dist/components/DrawerPanel/DrawerPanel.js +137 -115
- package/dist/components/DrawerPanel/DrawerPanelOld.css +56 -0
- package/dist/components/DrawerPanel/DrawerPanelOld.js +233 -0
- package/dist/components/DropDown/DesignDropDown.stories.js +146 -17
- package/dist/components/DropDown/DropDown.css +96 -1
- package/dist/components/DropDown/DropDown.js +363 -82
- package/dist/components/DropDown/DropDown.stories.js +1 -0
- package/dist/components/DropDown/DropDownOld.css +3 -0
- package/dist/components/DropDown/DropDownOld.js +186 -0
- package/dist/components/DropDown/PopoverPlayground.css +22 -0
- package/dist/components/DropDown/PopoverPlayground.js +235 -0
- package/dist/components/EnhancedTable/EnhancedTable.js +5 -6
- package/dist/components/FabButton/DesignFabButton.stories.js +3 -1
- package/dist/components/FabButton/FabButton.js +25 -5
- package/dist/components/Grid/DesignGrid.stories.js +9 -3
- package/dist/components/Grid/Grid.css +325 -0
- package/dist/components/Grid/Grid.js +57 -16
- package/dist/components/Grid/GridItem.js +31 -13
- package/dist/components/Grid/GridItemOld.js +43 -0
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +53 -0
- package/dist/components/Header/Header.js +144 -115
- package/dist/components/IconButton/DesignIconButton.stories.js +37 -2
- package/dist/components/IconButton/IconButton.css +144 -0
- package/dist/components/IconButton/IconButton.js +177 -50
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +138 -0
- package/dist/components/IconButtonSquare/IconButtonSquare.js +20 -90
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +43 -0
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +133 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.css +109 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +316 -77
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +118 -6
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +5 -0
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +178 -0
- package/dist/components/InputPassword/InputPassword.js +10 -20
- package/dist/components/InputText/InputText.css +442 -1
- package/dist/components/InputText/InputText.js +298 -239
- package/dist/components/InputText/InputText.stories.js +12 -3
- package/dist/components/InputText/InputTextOld.css +10 -0
- package/dist/components/InputText/InputTextOld.js +340 -0
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +30 -4
- package/dist/components/InputTextArea/InputTextArea.js +13 -6
- package/dist/components/LoadingSection/LoadingSection.css +44 -2
- package/dist/components/LoadingSection/LoadingSection.js +63 -9
- package/dist/components/MenuItem/DesignMenuItem.stories.js +1 -0
- package/dist/components/MenuItem/MenuItem.css +31 -6
- package/dist/components/MenuItem/MenuItem.js +95 -50
- package/dist/components/MenuItem/MenuItemOld.js +139 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +60 -40
- package/dist/components/MenuLateralRight/MenuLateralRight.js +32 -12
- package/dist/components/Modal/DesignModal.stories.js +54 -0
- package/dist/components/Modal/Modal.css +81 -2
- package/dist/components/Modal/Modal.js +112 -80
- package/dist/components/Modal/Modal.stories.js +13 -2
- package/dist/components/Modal/ModalOld.css +3 -0
- package/dist/components/Modal/ModalOld.js +230 -0
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +9 -1
- package/dist/components/PaginationFooter/PaginationFooter.css +73 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +45 -87
- package/dist/components/RadioButton/Radio.css +115 -16
- package/dist/components/RadioButton/Radio.js +70 -94
- package/dist/components/RadioButton/Radio.stories.js +42 -18
- package/dist/components/RadioButton/RadioOld.css +31 -0
- package/dist/components/RadioButton/RadioOld.js +142 -0
- package/dist/components/Ripple/DesignRipple.js +77 -0
- package/dist/components/Ripple/Ripple.stories.js +45 -0
- package/dist/components/Scrollbar/Scrollbar.js +21 -6
- package/dist/components/SelectInput/DesignSelectInput.js +62 -23
- package/dist/components/SelectInput/SelectInput.css +128 -10
- package/dist/components/SelectInput/SelectInput.js +233 -246
- package/dist/components/SelectInput/SelectInputOld.css +17 -0
- package/dist/components/SelectInput/SelectInputOld.js +325 -0
- package/dist/components/Stars/Stars.css +28 -28
- package/dist/components/Stars/Stars.js +22 -12
- package/dist/components/Stepper/Stepper.css +1 -0
- package/dist/components/Stepper/Stepper.js +81 -24
- package/dist/components/Table/DesignTable.stories.js +1 -0
- package/dist/components/Table/Table.css +56 -53
- package/dist/components/Table/Table.js +55 -75
- package/dist/components/Table/TableOld.css +79 -0
- package/dist/components/Table/TableOld.js +165 -0
- package/dist/components/Tabs/DesignTabs.js +37 -12
- package/dist/components/Tabs/Tabs.css +39 -4
- package/dist/components/Tabs/Tabs.js +194 -30
- package/dist/components/Tabs/Tabs.stories.js +8 -1
- package/dist/components/Tabs/TabsOld.js +92 -0
- package/dist/components/Tag/Tag.js +19 -9
- package/dist/components/Toggle/Toggle.css +122 -3
- package/dist/components/Toggle/Toggle.js +95 -68
- package/dist/components/Tooltip/DesignTooltip.stories.js +48 -0
- package/dist/components/Tooltip/Tooltip.css +75 -0
- package/dist/components/Tooltip/Tooltip.js +126 -0
- package/dist/components/Tooltip/Tooltip.stories.js +40 -0
- package/dist/components/Typography/Typography.css +9 -0
- package/dist/components/Typography/Typography.js +30 -21
- package/dist/components/Typography/TypographyOld.js +132 -0
- package/dist/styles/colorConsts.css +24 -0
- package/dist/styles/main.css +41 -49
- package/dist/styles/scpacingConsts.css +26 -0
- package/dist/styles/zIndexConsts.css +9 -0
- package/package.json +2 -1
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
require("./Modal.css");
|
|
13
|
+
|
|
14
|
+
var _material = require("@mui/material");
|
|
15
|
+
|
|
16
|
+
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
17
|
+
|
|
18
|
+
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
19
|
+
|
|
20
|
+
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
21
|
+
|
|
22
|
+
var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons", "hasScrollbar", "scrollbarHeight"];
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
|
|
32
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
33
|
+
|
|
34
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
35
|
+
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
37
|
+
|
|
38
|
+
var Modal = function Modal(_ref) {
|
|
39
|
+
var title = _ref.title,
|
|
40
|
+
fullWidth = _ref.fullWidth,
|
|
41
|
+
_ref$id = _ref.id,
|
|
42
|
+
id = _ref$id === void 0 ? 'modal' : _ref$id,
|
|
43
|
+
fullScreen = _ref.fullScreen,
|
|
44
|
+
buttonAccept = _ref.buttonAccept,
|
|
45
|
+
buttonCancel = _ref.buttonCancel,
|
|
46
|
+
open = _ref.open,
|
|
47
|
+
requestClose = _ref.requestClose,
|
|
48
|
+
loadingAction = _ref.loadingAction,
|
|
49
|
+
acceptAction = _ref.acceptAction,
|
|
50
|
+
cancelAction = _ref.cancelAction,
|
|
51
|
+
body = _ref.body,
|
|
52
|
+
bodyText = _ref.bodyText,
|
|
53
|
+
hideAccept = _ref.hideAccept,
|
|
54
|
+
extraActions = _ref.extraActions,
|
|
55
|
+
classNameDialog = _ref.classNameDialog,
|
|
56
|
+
PaperProps = _ref.PaperProps,
|
|
57
|
+
widthModal = _ref.widthModal,
|
|
58
|
+
actions = _ref.actions,
|
|
59
|
+
sx = _ref.sx,
|
|
60
|
+
buttonCancelProps = _ref.buttonCancelProps,
|
|
61
|
+
buttonAcceptProps = _ref.buttonAcceptProps,
|
|
62
|
+
breakpointsButtons = _ref.breakpointsButtons,
|
|
63
|
+
hasScrollbar = _ref.hasScrollbar,
|
|
64
|
+
scrollbarHeight = _ref.scrollbarHeight,
|
|
65
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
66
|
+
|
|
67
|
+
var _useCouncilboxTheme = (0, _CouncilboxThemeContext.useCouncilboxTheme)(),
|
|
68
|
+
size = _useCouncilboxTheme.size,
|
|
69
|
+
innerWidth = _useCouncilboxTheme.innerWidth;
|
|
70
|
+
|
|
71
|
+
var buttons = /*#__PURE__*/_react.default.createElement("div", {
|
|
72
|
+
style: {
|
|
73
|
+
display: 'flex',
|
|
74
|
+
gap: innerWidth < breakpointsButtons ? 'var(--spacing12)' : 'var(--spacing8)',
|
|
75
|
+
flexDirection: innerWidth < breakpointsButtons && 'column',
|
|
76
|
+
width: innerWidth < breakpointsButtons && '100%'
|
|
77
|
+
}
|
|
78
|
+
}, !!buttonCancel && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
79
|
+
variant: "secondary",
|
|
80
|
+
text: buttonCancel,
|
|
81
|
+
id: "".concat(id, "-button-cancel"),
|
|
82
|
+
onClick: cancelAction || requestClose,
|
|
83
|
+
fullWidth: true
|
|
84
|
+
}, buttonCancelProps))), extraActions &&
|
|
85
|
+
/*#__PURE__*/
|
|
86
|
+
// extraActions siempre fullWidth
|
|
87
|
+
_react.default.createElement("div", null, extraActions), !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
88
|
+
text: buttonAccept,
|
|
89
|
+
id: "".concat(id, "-button-accept"),
|
|
90
|
+
loading: loadingAction,
|
|
91
|
+
onClick: acceptAction,
|
|
92
|
+
fullWidth: true
|
|
93
|
+
}, buttonAcceptProps))));
|
|
94
|
+
|
|
95
|
+
return /*#__PURE__*/_react.default.createElement(_material.Dialog, _extends({
|
|
96
|
+
className: classNameDialog,
|
|
97
|
+
fullWidth: size === 'sm' || size === 'xs' || fullWidth,
|
|
98
|
+
fullScreen: fullScreen,
|
|
99
|
+
id: id,
|
|
100
|
+
open: open || false,
|
|
101
|
+
onClose: requestClose,
|
|
102
|
+
PaperProps: {
|
|
103
|
+
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({
|
|
104
|
+
filter: 'drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25))',
|
|
105
|
+
boxShadow: 'none',
|
|
106
|
+
maxWidth: '37.5rem'
|
|
107
|
+
}, hasScrollbar ? {
|
|
108
|
+
width: size === 'sm' || size === 'xs' ? '' : '100%',
|
|
109
|
+
height: scrollbarHeight || '100%'
|
|
110
|
+
} : {}), widthModal), PaperProps ? PaperProps.style : {}), size === 'sm' || size === 'xs' ? {
|
|
111
|
+
margin: 0
|
|
112
|
+
} : {})
|
|
113
|
+
},
|
|
114
|
+
sx: _objectSpread({
|
|
115
|
+
'& .MuiDialog-paperFullWidth': {
|
|
116
|
+
width: '100%',
|
|
117
|
+
minWidth: '100%'
|
|
118
|
+
},
|
|
119
|
+
'& .MuiDialog-paperFullWidth .MuiDialogContent-root': {
|
|
120
|
+
width: '100%',
|
|
121
|
+
minWidth: '100%'
|
|
122
|
+
}
|
|
123
|
+
}, sx)
|
|
124
|
+
}, props), !!requestClose && /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
+
style: {
|
|
126
|
+
position: 'absolute',
|
|
127
|
+
right: '26px',
|
|
128
|
+
top: '18px'
|
|
129
|
+
},
|
|
130
|
+
id: "alert-confirm-close",
|
|
131
|
+
onClick: requestClose
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
133
|
+
className: "ri-close-line",
|
|
134
|
+
style: {
|
|
135
|
+
fontSize: '1.5rem',
|
|
136
|
+
color: 'var(--gray3)',
|
|
137
|
+
cursor: 'pointer'
|
|
138
|
+
}
|
|
139
|
+
})), !!title && /*#__PURE__*/_react.default.createElement(_material.DialogTitle, {
|
|
140
|
+
component: 'span',
|
|
141
|
+
sx: {
|
|
142
|
+
paddingTop: '1.438rem',
|
|
143
|
+
paddingLeft: '2rem'
|
|
144
|
+
}
|
|
145
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
146
|
+
variant: "L",
|
|
147
|
+
fontWeight: '700',
|
|
148
|
+
color: 'var(--primary)',
|
|
149
|
+
styles: {
|
|
150
|
+
marginRight: '1.8rem'
|
|
151
|
+
}
|
|
152
|
+
}, title)), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
|
|
153
|
+
sx: {
|
|
154
|
+
minWidth: size === 'sm' || size === 'xs' ? '100%' : '25rem',
|
|
155
|
+
maxWidth: size === 'sm' || size === 'xs' ? '100%' : '37.5rem',
|
|
156
|
+
padding: '0 2rem',
|
|
157
|
+
overflow: 'hidden'
|
|
158
|
+
}
|
|
159
|
+
}, body || bodyText), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
160
|
+
className: "cbx-modal-contentButtons",
|
|
161
|
+
sx: {
|
|
162
|
+
padding: '1.5rem 2rem',
|
|
163
|
+
margin: '0px',
|
|
164
|
+
minWidth: '1.563rem',
|
|
165
|
+
display: 'flex',
|
|
166
|
+
flexFlow: 'row wrap'
|
|
167
|
+
}
|
|
168
|
+
}, buttons), actions && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
169
|
+
className: "cbx-modal-contentButtons",
|
|
170
|
+
sx: {
|
|
171
|
+
padding: '1.5rem 2rem',
|
|
172
|
+
margin: '0px',
|
|
173
|
+
minWidth: '1.563rem',
|
|
174
|
+
display: 'flex',
|
|
175
|
+
flexFlow: 'row wrap'
|
|
176
|
+
}
|
|
177
|
+
}, actions));
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
Modal.displayName = "Modal";
|
|
181
|
+
var _default = Modal;
|
|
182
|
+
exports.default = _default;
|
|
183
|
+
Modal.propTypes = {
|
|
184
|
+
title: _propTypes.default.string,
|
|
185
|
+
fullWidth: _propTypes.default.bool,
|
|
186
|
+
id: _propTypes.default.string,
|
|
187
|
+
fullScreen: _propTypes.default.bool,
|
|
188
|
+
buttonAccept: _propTypes.default.string,
|
|
189
|
+
buttonCancel: _propTypes.default.string,
|
|
190
|
+
open: _propTypes.default.bool,
|
|
191
|
+
requestClose: _propTypes.default.func,
|
|
192
|
+
loadingAction: _propTypes.default.bool,
|
|
193
|
+
acceptAction: _propTypes.default.func,
|
|
194
|
+
cancelAction: _propTypes.default.func,
|
|
195
|
+
body: _propTypes.default.node,
|
|
196
|
+
bodyText: _propTypes.default.node,
|
|
197
|
+
hideAccept: _propTypes.default.bool,
|
|
198
|
+
extraActions: _propTypes.default.node,
|
|
199
|
+
classNameDialog: _propTypes.default.string,
|
|
200
|
+
PaperProps: _propTypes.default.object,
|
|
201
|
+
widthModal: _propTypes.default.object,
|
|
202
|
+
actions: _propTypes.default.node,
|
|
203
|
+
breakpointsButtons: _propTypes.default.string,
|
|
204
|
+
hasScrollbar: _propTypes.default.bool,
|
|
205
|
+
scrollbarHeight: _propTypes.default.string
|
|
206
|
+
};
|
|
207
|
+
Modal.defaultProps = {
|
|
208
|
+
title: '',
|
|
209
|
+
fullWidth: false,
|
|
210
|
+
id: 'modal',
|
|
211
|
+
fullScreen: false,
|
|
212
|
+
buttonAccept: '',
|
|
213
|
+
buttonCancel: '',
|
|
214
|
+
open: false,
|
|
215
|
+
requestClose: undefined,
|
|
216
|
+
loadingAction: false,
|
|
217
|
+
acceptAction: undefined,
|
|
218
|
+
cancelAction: undefined,
|
|
219
|
+
body: '',
|
|
220
|
+
bodyText: '',
|
|
221
|
+
hideAccept: false,
|
|
222
|
+
extraActions: undefined,
|
|
223
|
+
classNameDialog: '',
|
|
224
|
+
PaperProps: {},
|
|
225
|
+
widthModal: {},
|
|
226
|
+
actions: undefined,
|
|
227
|
+
breakpointsButtons: '800',
|
|
228
|
+
hasScrollbar: false,
|
|
229
|
+
scrollbarHeight: '70%'
|
|
230
|
+
};
|
|
@@ -9,10 +9,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
require("../../styles/main.css");
|
|
11
11
|
|
|
12
|
+
var _PaginationFooter = _interopRequireDefault(require("./PaginationFooter"));
|
|
13
|
+
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
14
16
|
var DesignPaginationFooter = function DesignPaginationFooter() {
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement("div", null,
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_PaginationFooter.default, {
|
|
18
|
+
page: 1,
|
|
19
|
+
length: 20,
|
|
20
|
+
total: 30,
|
|
21
|
+
limit: 20,
|
|
22
|
+
changePage: null
|
|
23
|
+
}));
|
|
16
24
|
};
|
|
17
25
|
|
|
18
26
|
DesignPaginationFooter.displayName = "DesignPaginationFooter";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.cbx-PaginationFooter {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.cbx-PaginationFooter-buttonActive,
|
|
6
|
+
.cbx-PaginationFooter-button,
|
|
7
|
+
.cbx-PaginationFooterMobile-buttoPage,
|
|
8
|
+
.cbx-PaginationFooterMobile-buttonMorePage {
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
width: 1.62rem;
|
|
11
|
+
height: 1.62rem;
|
|
12
|
+
text-align: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding-top: 2px;
|
|
15
|
+
font-size: 0.87rem;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cbx-PaginationFooter-buttonActive {
|
|
20
|
+
background-color: var(--disabled);
|
|
21
|
+
color: var(--primary);
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.cbx-PaginationFooterMobile-block,
|
|
26
|
+
.cbx-PaginationFooterMobile-pages,
|
|
27
|
+
.cbx-PaginationFooter-showPages,
|
|
28
|
+
.cbx-PaginationFooter-morePages,
|
|
29
|
+
.cbx-PaginationFooter-block-totalPages,
|
|
30
|
+
.cbx-PaginationFooter-container-totalPages,
|
|
31
|
+
.cbx-PaginationFooter-pages,
|
|
32
|
+
.cbx-PaginationFooter-morePages {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cbx-PaginationFooterMobile-block {
|
|
38
|
+
margin-top: 0.6em;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cbx-PaginationFooter-block {
|
|
43
|
+
font-size: 0.7rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cbx-PaginationFooter-container,
|
|
47
|
+
.cbx-PaginationFooter-container-totalPages {
|
|
48
|
+
width: fit-content;
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cbx-PaginationFooter-block-totalPages {
|
|
55
|
+
justify-content: center;
|
|
56
|
+
margin-bottom: 2rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.cbx-PaginationFooter-pages,
|
|
60
|
+
.cbx-PaginationFooter-showPages,
|
|
61
|
+
.cbx-PaginationFooter-morePages {
|
|
62
|
+
padding-top: 3px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cbx-PaginationFooter-pages span,
|
|
66
|
+
.cbx-PaginationFooter-morePages span {
|
|
67
|
+
font-size: 1.5rem;
|
|
68
|
+
color: var(--primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cbx-PaginationFooter-morePages span {
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
@@ -15,43 +15,33 @@ var _SelectInput = _interopRequireDefault(require("../SelectInput/SelectInput"))
|
|
|
15
15
|
|
|
16
16
|
var _LoadingSection = _interopRequireDefault(require("../LoadingSection/LoadingSection"));
|
|
17
17
|
|
|
18
|
+
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
19
|
+
|
|
20
|
+
require("../../styles/main.css");
|
|
21
|
+
|
|
22
|
+
require("./PaginationFooter.css");
|
|
23
|
+
|
|
24
|
+
var _excluded = ["page", "translate", "length", "total", "limit", "lg", "md", "xs", "changePage", "isChangingPage", "isMobile", "sx", "style"];
|
|
25
|
+
|
|
18
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
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
|
+
|
|
20
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; }
|
|
21
31
|
|
|
22
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; }
|
|
23
33
|
|
|
24
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; }
|
|
25
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
|
+
|
|
26
40
|
var hasMorePages = function hasMorePages(page, total, limit) {
|
|
27
41
|
return page * limit < total;
|
|
28
42
|
};
|
|
29
43
|
|
|
30
|
-
var
|
|
31
|
-
borderRadius: '50%',
|
|
32
|
-
width: '1.62rem',
|
|
33
|
-
height: '1.62rem',
|
|
34
|
-
backgroundColor: 'var(--disabled)',
|
|
35
|
-
textAlign: 'center',
|
|
36
|
-
alignItems: 'center',
|
|
37
|
-
paddingTop: '2px',
|
|
38
|
-
color: 'var(--primary)',
|
|
39
|
-
fontSize: '0.87rem',
|
|
40
|
-
fontWeight: 'bold',
|
|
41
|
-
cursor: 'pointer'
|
|
42
|
-
};
|
|
43
|
-
var paginationButtonStyle = {
|
|
44
|
-
borderRadius: '50%',
|
|
45
|
-
width: '1.62rem',
|
|
46
|
-
height: '1.62rem',
|
|
47
|
-
textAlign: 'center',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
paddingTop: '2px',
|
|
50
|
-
fontSize: '0.87rem',
|
|
51
|
-
cursor: 'pointer'
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
var showPages = function showPages(numPages, active, changePage, isChangingPage) {
|
|
44
|
+
var showPages = function showPages(numPages, active, changePage, isChangingPage, prefixClass) {
|
|
55
45
|
var pages = [];
|
|
56
46
|
|
|
57
47
|
var _loop = function _loop(_i) {
|
|
@@ -61,7 +51,7 @@ var showPages = function showPages(numPages, active, changePage, isChangingPage)
|
|
|
61
51
|
onClick: active !== index ? function () {
|
|
62
52
|
return changePage(index);
|
|
63
53
|
} : function () {},
|
|
64
|
-
|
|
54
|
+
className: prefixClass(active === index ? 'cbx-PaginationFooter-buttonActive' : 'cbx-PaginationFooter-button')
|
|
65
55
|
}, index));
|
|
66
56
|
|
|
67
57
|
if (_i === 3 && numPages > 6) {
|
|
@@ -72,9 +62,7 @@ var showPages = function showPages(numPages, active, changePage, isChangingPage)
|
|
|
72
62
|
}
|
|
73
63
|
|
|
74
64
|
pages.push( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
75
|
-
|
|
76
|
-
width: '2rem'
|
|
77
|
-
}
|
|
65
|
+
className: prefixClass('cbx-PaginationFooter-pagesSelect')
|
|
78
66
|
}, /*#__PURE__*/_react.default.createElement(_SelectInput.default, {
|
|
79
67
|
autoWidth: true,
|
|
80
68
|
disabled: isChangingPage,
|
|
@@ -163,49 +151,47 @@ var PaginationFooter = function PaginationFooter(_ref) {
|
|
|
163
151
|
xs = _ref.xs,
|
|
164
152
|
changePage = _ref.changePage,
|
|
165
153
|
isChangingPage = _ref.isChangingPage,
|
|
166
|
-
isMobile = _ref.isMobile
|
|
154
|
+
isMobile = _ref.isMobile,
|
|
155
|
+
sx = _ref.sx,
|
|
156
|
+
style = _ref.style,
|
|
157
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
158
|
+
|
|
159
|
+
var _useDynamicStyles = (0, _useDynamicStyles2.default)(sx),
|
|
160
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
161
|
+
prefixClass = _useDynamicStyles.prefixClass;
|
|
162
|
+
|
|
167
163
|
var totalPages = Math.ceil(total / limit);
|
|
168
164
|
|
|
169
165
|
if (isMobile) {
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement("div",
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
alignItems: 'center',
|
|
175
|
-
justifyContent: 'center'
|
|
176
|
-
}
|
|
166
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
167
|
+
className: prefixClass('cbx-PaginationFooterMobile')
|
|
168
|
+
}, /*#__PURE__*/_react.default.createElement("div", null, length > 0 ? "".concat(translate === null || translate === void 0 ? void 0 : translate.table_showing_part1, " ").concat((page - 1) * limit + 1, " ").concat(translate === null || translate === void 0 ? void 0 : translate.table_showing_part2, " ").concat((page - 1) * limit + length, " ").concat(translate === null || translate === void 0 ? void 0 : translate.table_showing_part3, " ").concat(total, " ").concat(translate === null || translate === void 0 ? void 0 : translate.table_showing_part4) : translate === null || translate === void 0 ? void 0 : translate.table_no_results), /*#__PURE__*/_react.default.createElement("div", {
|
|
169
|
+
className: prefixClass('cbx-PaginationFooterMobile-block')
|
|
177
170
|
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, page > 1 && /*#__PURE__*/_react.default.createElement("span", {
|
|
178
171
|
onClick: function onClick() {
|
|
179
172
|
return changePage(page - 1);
|
|
180
173
|
},
|
|
181
|
-
|
|
174
|
+
className: prefixClass('cbx-PaginationFooterMobile-buttoPage')
|
|
182
175
|
}, translate === null || translate === void 0 ? void 0 : translate.table_button_previous), hasMorePages(page, total, limit) && /*#__PURE__*/_react.default.createElement("span", {
|
|
183
176
|
onClick: function onClick() {
|
|
184
177
|
changePage(page + 1);
|
|
185
178
|
},
|
|
186
|
-
|
|
179
|
+
className: prefixClass('cbx-PaginationFooterMobile-buttonMorePage')
|
|
187
180
|
}, translate === null || translate === void 0 ? void 0 : translate.table_button_next), /*#__PURE__*/_react.default.createElement("div", {
|
|
188
|
-
|
|
189
|
-
display: 'flex'
|
|
190
|
-
}
|
|
181
|
+
className: prefixClass('cbx-PaginationFooterMobile-pages')
|
|
191
182
|
}, showPagesMobile(totalPages, page, changePage)))));
|
|
192
183
|
}
|
|
193
184
|
|
|
194
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
185
|
+
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
186
|
+
className: prefixClass('cbx-PaginationFooter'),
|
|
187
|
+
style: _objectSpread(_objectSpread({}, style), stylesInLine)
|
|
188
|
+
}, props), /*#__PURE__*/_react.default.createElement(_GridItem.default, {
|
|
195
189
|
xs: window.innerWidth < 480 ? 12 : xs || 12,
|
|
196
190
|
lg: lg || 12,
|
|
197
191
|
md: md || 12,
|
|
198
|
-
|
|
199
|
-
fontSize: '0.7rem'
|
|
200
|
-
}
|
|
192
|
+
className: prefixClass('cbx-PaginationFooter-block')
|
|
201
193
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
202
|
-
className: "flex justify-around"
|
|
203
|
-
style: {
|
|
204
|
-
width: 'fit-content',
|
|
205
|
-
whiteSpace: 'nowrap',
|
|
206
|
-
overflow: 'hidden',
|
|
207
|
-
textOverflow: 'ellipsis'
|
|
208
|
-
}
|
|
194
|
+
className: "".concat(prefixClass('cbx-PaginationFooter-container'), " flex justify-around")
|
|
209
195
|
}, length > 0 ? "".concat((page - 1) * limit + 1, " ", '-', " ").concat((page - 1) * limit + length, " ").concat(translate === null || translate === void 0 ? void 0 : translate.of, " ").concat(total) : translate === null || translate === void 0 ? void 0 : translate.table_no_results, isChangingPage && /*#__PURE__*/_react.default.createElement("div", {
|
|
210
196
|
className: "ml-4"
|
|
211
197
|
}, /*#__PURE__*/_react.default.createElement(_LoadingSection.default, {
|
|
@@ -214,52 +200,24 @@ var PaginationFooter = function PaginationFooter(_ref) {
|
|
|
214
200
|
xs: window.innerWidth < 480 ? 12 : xs || 12,
|
|
215
201
|
lg: lg || 12,
|
|
216
202
|
md: md || 12,
|
|
217
|
-
|
|
218
|
-
display: 'flex',
|
|
219
|
-
justifyContent: 'center',
|
|
220
|
-
marginBottom: '2rem'
|
|
221
|
-
}
|
|
203
|
+
className: prefixClass('cbx-PaginationFooter-block-totalPages')
|
|
222
204
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
223
|
-
|
|
224
|
-
display: 'flex',
|
|
225
|
-
justifyContent: 'center',
|
|
226
|
-
alignItems: 'center'
|
|
227
|
-
}
|
|
205
|
+
className: prefixClass('cbx-PaginationFooter-container-totalPages')
|
|
228
206
|
}, page > 1 && /*#__PURE__*/_react.default.createElement("div", {
|
|
229
|
-
|
|
230
|
-
display: 'flex',
|
|
231
|
-
alignItems: 'center',
|
|
232
|
-
paddingTop: '3px'
|
|
233
|
-
}
|
|
207
|
+
className: prefixClass('cbx-PaginationFooter-pages')
|
|
234
208
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
235
209
|
onClick: function onClick() {
|
|
236
210
|
return changePage(page - 1);
|
|
237
|
-
},
|
|
238
|
-
style: {
|
|
239
|
-
fontSize: '1.5rem',
|
|
240
|
-
color: 'var(--primary)'
|
|
241
211
|
}
|
|
242
212
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
243
213
|
className: "ri-arrow-left-s-line"
|
|
244
214
|
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
}, showPages(totalPages, page, changePage, isChangingPage)), hasMorePages(page, total, limit) && /*#__PURE__*/_react.default.createElement("div", {
|
|
250
|
-
style: {
|
|
251
|
-
display: 'flex',
|
|
252
|
-
alignItems: 'center',
|
|
253
|
-
paddingTop: '3px'
|
|
254
|
-
}
|
|
215
|
+
className: prefixClass('cbx-PaginationFooter-showPages')
|
|
216
|
+
}, showPages(totalPages, page, changePage, isChangingPage, prefixClass)), hasMorePages(page, total, limit) && /*#__PURE__*/_react.default.createElement("div", {
|
|
217
|
+
className: prefixClass('cbx-PaginationFooter-morePages')
|
|
255
218
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
256
219
|
onClick: function onClick() {
|
|
257
220
|
return changePage(page + 1);
|
|
258
|
-
},
|
|
259
|
-
style: {
|
|
260
|
-
fontSize: '1.5rem',
|
|
261
|
-
cursor: 'pointer',
|
|
262
|
-
color: 'var(--primary)'
|
|
263
221
|
}
|
|
264
222
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
265
223
|
className: "ri-arrow-right-s-line"
|
|
@@ -1,31 +1,130 @@
|
|
|
1
1
|
.cbx-radio-container {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
2
4
|
position: relative;
|
|
3
5
|
}
|
|
4
6
|
|
|
5
|
-
.cbx-radio
|
|
6
|
-
|
|
7
|
+
.cbx-radio {
|
|
8
|
+
display: none;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
|
-
.cbx-radio-
|
|
11
|
+
.cbx-radio-containerLabel {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
position: relative;
|
|
16
|
+
margin-bottom: 0px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.cbx-radio:disabled ~ .cbx-radio-containerLabel {
|
|
20
|
+
cursor: default;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cbx-radio:checked ~ .cbx-radio-containerLabel .cbx-radio-icon {
|
|
24
|
+
box-shadow: inset 0 0 0 0.125rem var(--primary);
|
|
25
|
+
background-color: var(--primary);
|
|
26
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.1), hsla(0, 0%, 100%, 0));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cbx-radio:checked.cbx-radio:disabled ~ .cbx-radio-containerLabel .cbx-radio-icon {
|
|
30
|
+
background-color: var(--gray3);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.cbx-radio:checked ~ .cbx-radio-containerLabel .cbx-radio-icon:before {
|
|
34
|
+
display: block;
|
|
35
|
+
width: 1.25rem;
|
|
36
|
+
height: 1.25rem;
|
|
37
|
+
background-image: radial-gradient(#fff, #fff 28%, transparent 32%);
|
|
10
38
|
content: "";
|
|
11
39
|
position: absolute;
|
|
12
40
|
top: 0;
|
|
13
41
|
left: 0;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cbx-radio:disabled ~ .cbx-radio-containerLabel .cbx-radio-icon {
|
|
45
|
+
box-shadow: inset 0 0 0 0.125rem var(--gray3);
|
|
46
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.1), hsla(0, 0%, 100%, 0));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cbx-radio-labelText {
|
|
50
|
+
margin-left: 31px;
|
|
51
|
+
transition: 0.2s;
|
|
52
|
+
color: var(--gray4)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cbx-radio:checked ~ .cbx-radio-containerLabel .cbx-radio-labelText {
|
|
56
|
+
color: var(--primary);
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cbx-radio:disabled ~ .cbx-radio-containerLabel .cbx-radio-labelText {
|
|
61
|
+
color: var(--gray3);
|
|
62
|
+
font-weight: 700;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cbx-radio-span-ripple {
|
|
66
|
+
width: 42px;
|
|
67
|
+
height: 42px;
|
|
17
68
|
border-radius: 50%;
|
|
18
|
-
|
|
69
|
+
transition: .2s;
|
|
70
|
+
left: -11px;
|
|
71
|
+
position: absolute;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
-webkit-tap-highlight-color: transparent;
|
|
74
|
+
background-color: transparent;
|
|
75
|
+
outline: 0px;
|
|
76
|
+
border: 0px;
|
|
77
|
+
margin: 0px;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
-webkit-user-select: none;
|
|
80
|
+
user-select: none;
|
|
81
|
+
vertical-align: middle;
|
|
82
|
+
-webkit-appearance: none;
|
|
83
|
+
appearance: none;
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cbx-radio-span-ripple:hover {
|
|
91
|
+
background-color: rgba(144, 202, 249, 0.08);
|
|
19
92
|
}
|
|
20
93
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
94
|
+
.cbx-radio-span-ripple:hover .cbx-radio-icon {
|
|
95
|
+
background-color: rgba(144, 202, 249, 0.08);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cbx-radio-icon {
|
|
99
|
+
border-radius: 50%;
|
|
100
|
+
width: 1.25rem;
|
|
101
|
+
height: 1.25rem;
|
|
102
|
+
box-shadow: inset 0 0 0 0.125rem var(--gray3);
|
|
103
|
+
background-color: #f5f8fa;
|
|
104
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.8), hsla(0, 0%, 100%, 0));
|
|
105
|
+
transition: 0.2s;
|
|
106
|
+
position: relative;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.cbx-radio:checked ~ .cbx-radio-icon {
|
|
110
|
+
box-shadow: inset 0 0 0 0.125rem var(--primary);
|
|
111
|
+
background-color: var(--primary);
|
|
112
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.1), hsla(0, 0%, 100%, 0));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.cbx-radio:checked ~ .cbx-radio-icon:before {
|
|
116
|
+
display: block;
|
|
117
|
+
width: 1.25rem;
|
|
118
|
+
height: 1.25rem;
|
|
119
|
+
background-image: radial-gradient(#fff, #fff 28%, transparent 32%);
|
|
120
|
+
content: "";
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: 0;
|
|
123
|
+
left: 0;
|
|
124
|
+
}
|
|
26
125
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
126
|
+
.cbx-radio:disabled ~ .cbx-radio-icon {
|
|
127
|
+
box-shadow: inset 0 0 0 0.125rem var(--gray3);
|
|
128
|
+
background-color: #e0e0e0;
|
|
129
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.1), hsla(0, 0%, 100%, 0));
|
|
31
130
|
}
|