@councilbox/councilbox-ui 0.1.2 → 0.1.5
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/build-index.js +8 -0
- package/dist/components/Avatar/Avatar.css +5 -0
- package/dist/components/Avatar/Avatar.js +13 -17
- package/dist/components/AvatarGroup/AvatarGroup.css +3 -3
- package/dist/components/Button/Button.js +10 -9
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +19 -14
- package/dist/components/DrawerPanel/{DrawerPanelPrueba.js → DesignDrawerPanel.js} +17 -4
- package/dist/components/DrawerPanel/DrawerPanel.css +19 -0
- package/dist/components/DrawerPanel/DrawerPanel.js +59 -12
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +9 -8
- package/dist/components/DropDown/DesignDropDown.stories.js +0 -15
- package/dist/components/DropDown/DropDown.css +3 -0
- package/dist/components/DropDown/DropDown.js +10 -8
- package/dist/components/DropDown/DropDown.stories.js +1 -10
- package/dist/components/Grid/DesignGrid.stories.js +46 -0
- package/dist/components/Grid/Grid.js +35 -5
- package/dist/components/Grid/Grid.stories.js +7 -12
- package/dist/components/Grid/GridItem.js +13 -15
- package/dist/components/Header/Header.js +44 -34
- package/dist/components/Header/Header.stories.js +1 -0
- package/dist/components/Header/header.css +7 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +27 -0
- package/dist/components/IconButton/IconButton.js +42 -7
- package/dist/components/IconButton/IconButton.stories.js +11 -7
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +27 -0
- package/dist/components/IconButtonSquare/IconButtonSquare.css +23 -0
- package/dist/components/IconButtonSquare/IconButtonSquare.js +103 -0
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +31 -0
- package/dist/components/InputPassword/InputPassword.css +2 -2
- package/dist/components/InputPassword/InputPassword.js +2 -2
- package/dist/components/InputText/InputText.css +3 -3
- package/dist/components/InputText/InputText.js +6 -6
- package/dist/components/MenuLateralRight/MenuLateralRight.css +80 -0
- package/dist/components/MenuLateralRight/MenuLateralRight.js +159 -4
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +2 -6
- package/dist/components/Modal/Modal.js +11 -17
- package/dist/components/TextInput/TextInput.css +2 -2
- package/dist/components/TextInput/TextInput.js +12 -10
- package/dist/components/Typography/Typography.js +21 -21
- package/dist/styles/stylesheet.js +2 -2
- package/package.json +1 -1
- package/dist/components/Grid/DesignGrid.js +0 -21
|
@@ -47,12 +47,12 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
|
|
|
47
47
|
marginRight: '0px'
|
|
48
48
|
},
|
|
49
49
|
'& .MuiInputBase-input': {
|
|
50
|
-
height: '
|
|
50
|
+
height: '1.5rem',
|
|
51
51
|
lineHeight: 'var(--spacing12)',
|
|
52
52
|
paddingRight: 'var(--spacing8)'
|
|
53
53
|
},
|
|
54
54
|
'& .MuiFormLabel-root': {
|
|
55
|
-
top: '-
|
|
55
|
+
top: '-0.25rem'
|
|
56
56
|
},
|
|
57
57
|
'& .Mui-error': {
|
|
58
58
|
color: theme.palette.error
|
|
@@ -156,29 +156,31 @@ var TextInput = function TextInput(_ref2) {
|
|
|
156
156
|
id: id,
|
|
157
157
|
className: className,
|
|
158
158
|
sx: {
|
|
159
|
-
minWidth: width || '
|
|
160
|
-
height: '
|
|
159
|
+
minWidth: width || '15rem',
|
|
160
|
+
height: '3rem'
|
|
161
161
|
},
|
|
162
162
|
label: label,
|
|
163
163
|
fullWidth: fullWidth,
|
|
164
164
|
onChange: onChange,
|
|
165
165
|
disabled: disabled,
|
|
166
166
|
error: error,
|
|
167
|
-
helperText: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, helperText, error ? /*#__PURE__*/_react.default.createElement("
|
|
167
|
+
helperText: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, helperText, error ? /*#__PURE__*/_react.default.createElement("span", {
|
|
168
168
|
className: "cbx-TextInput-items-center"
|
|
169
169
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
170
170
|
className: 'cbx-TextInput-infoBtn ri-information-line',
|
|
171
171
|
color: 'var(--error)'
|
|
172
172
|
}), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
173
173
|
variant: "XS",
|
|
174
|
-
color: 'var(--error)'
|
|
175
|
-
|
|
174
|
+
color: 'var(--error)',
|
|
175
|
+
component: 'span'
|
|
176
|
+
}, error)) : helper && /*#__PURE__*/_react.default.createElement("span", {
|
|
176
177
|
className: "cbx-TextInput-items-center"
|
|
177
178
|
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
178
179
|
className: 'cbx-TextInput-infoBtn ri-information-line'
|
|
179
180
|
}), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
180
181
|
color: !disabled ? 'var(--gray4)' : 'var(--gray3)',
|
|
181
|
-
variant: "XS"
|
|
182
|
+
variant: "XS",
|
|
183
|
+
component: 'span'
|
|
182
184
|
}, helper))),
|
|
183
185
|
InputProps: {
|
|
184
186
|
endAdornment: success && /*#__PURE__*/_react.default.createElement("i", {
|
|
@@ -197,7 +199,7 @@ TextInput.propTypes = {
|
|
|
197
199
|
className: _propTypes.default.string,
|
|
198
200
|
onChange: _propTypes.default.func,
|
|
199
201
|
disabled: _propTypes.default.bool,
|
|
200
|
-
error: _propTypes.default.
|
|
202
|
+
error: _propTypes.default.node,
|
|
201
203
|
success: _propTypes.default.bool
|
|
202
204
|
};
|
|
203
205
|
TextInput.defaultProps = {
|
|
@@ -208,7 +210,7 @@ TextInput.defaultProps = {
|
|
|
208
210
|
className: '',
|
|
209
211
|
onChange: undefined,
|
|
210
212
|
disabled: false,
|
|
211
|
-
error:
|
|
213
|
+
error: undefined
|
|
212
214
|
};
|
|
213
215
|
var _default = TextInput;
|
|
214
216
|
exports.default = _default;
|
|
@@ -43,44 +43,44 @@ var nameVariant = {
|
|
|
43
43
|
};
|
|
44
44
|
var stylesVariants = {
|
|
45
45
|
'5XL': {
|
|
46
|
-
fontSize: '
|
|
47
|
-
lineHeight: '
|
|
46
|
+
fontSize: '3rem',
|
|
47
|
+
lineHeight: '4rem'
|
|
48
48
|
},
|
|
49
49
|
'4XL': {
|
|
50
|
-
fontSize: '
|
|
51
|
-
lineHeight: '
|
|
50
|
+
fontSize: '2.5rem',
|
|
51
|
+
lineHeight: '3.5rem'
|
|
52
52
|
},
|
|
53
53
|
'3XL': {
|
|
54
|
-
fontSize: '
|
|
55
|
-
lineHeight: '
|
|
54
|
+
fontSize: '2rem',
|
|
55
|
+
lineHeight: '3rem'
|
|
56
56
|
},
|
|
57
57
|
'2XL': {
|
|
58
|
-
fontSize: '
|
|
59
|
-
lineHeight: '
|
|
58
|
+
fontSize: '1.75rem',
|
|
59
|
+
lineHeight: '2.5rem'
|
|
60
60
|
},
|
|
61
61
|
XL: {
|
|
62
|
-
fontSize: '
|
|
63
|
-
lineHeight: '
|
|
62
|
+
fontSize: '1.5rem',
|
|
63
|
+
lineHeight: '2rem'
|
|
64
64
|
},
|
|
65
65
|
L: {
|
|
66
|
-
fontSize: '
|
|
67
|
-
lineHeight: '
|
|
66
|
+
fontSize: '1.25rem',
|
|
67
|
+
lineHeight: '1.75rem'
|
|
68
68
|
},
|
|
69
69
|
M: {
|
|
70
|
-
fontSize: '
|
|
71
|
-
lineHeight: '
|
|
70
|
+
fontSize: '1rem',
|
|
71
|
+
lineHeight: '1.5rem'
|
|
72
72
|
},
|
|
73
73
|
S: {
|
|
74
|
-
fontSize: '
|
|
75
|
-
lineHeight: '
|
|
74
|
+
fontSize: '0.875rem',
|
|
75
|
+
lineHeight: '1.25rem'
|
|
76
76
|
},
|
|
77
77
|
XS: {
|
|
78
|
-
fontSize: '
|
|
79
|
-
lineHeight: '
|
|
78
|
+
fontSize: '0.75rem',
|
|
79
|
+
lineHeight: '1rem'
|
|
80
80
|
},
|
|
81
81
|
'2XS': {
|
|
82
|
-
fontSize: '
|
|
83
|
-
lineHeight: '
|
|
82
|
+
fontSize: '0.625rem',
|
|
83
|
+
lineHeight: '0.75rem'
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
@@ -112,7 +112,7 @@ Typography.propTypes = {
|
|
|
112
112
|
variant: _propTypes.default.string,
|
|
113
113
|
color: _propTypes.default.string,
|
|
114
114
|
styles: _propTypes.default.object,
|
|
115
|
-
children: _propTypes.default.
|
|
115
|
+
children: _propTypes.default.node,
|
|
116
116
|
fontWeight: _propTypes.default.string,
|
|
117
117
|
textAlign: _propTypes.default.string,
|
|
118
118
|
component: _propTypes.default.string,
|
package/package.json
CHANGED
|
@@ -1,21 +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
|
-
require("../../styles/main.css");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
// import PropTypes from 'prop-types';
|
|
15
|
-
var DesignGrid = function DesignGrid() {
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement("div", null, " Grid design ");
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
DesignGrid.displayName = "DesignGrid";
|
|
20
|
-
var _default = DesignGrid;
|
|
21
|
-
exports.default = _default;
|