@councilbox/councilbox-ui 0.1.4 → 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 +2 -2
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +18 -11
- package/dist/components/DrawerPanel/DrawerPanel.css +5 -1
- package/dist/components/DrawerPanel/DrawerPanel.js +25 -11
- package/dist/components/DropDown/DesignDropDown.stories.js +0 -15
- package/dist/components/DropDown/DropDown.js +6 -1
- 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 +15 -16
- package/dist/components/Header/header.css +7 -4
- package/dist/components/IconButton/DesignIconButton.stories.js +3 -1
- package/dist/components/IconButton/IconButton.js +41 -6
- package/dist/components/IconButton/IconButton.stories.js +1 -4
- 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/InputText/InputText.css +3 -3
- package/dist/components/InputText/InputText.js +4 -4
- 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 +9 -14
- package/dist/components/TextInput/TextInput.css +2 -2
- package/dist/components/TextInput/TextInput.js +4 -4
- package/dist/components/Typography/Typography.js +20 -20
- package/dist/styles/stylesheet.js +2 -2
- package/package.json +1 -1
- package/dist/components/Grid/DesignGrid.js +0 -21
|
@@ -17,7 +17,7 @@ var _material = require("@mui/material");
|
|
|
17
17
|
|
|
18
18
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
21
21
|
|
|
22
22
|
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
23
23
|
|
|
@@ -57,20 +57,15 @@ var Modal = function Modal(_ref) {
|
|
|
57
57
|
var _useCouncilboxTheme = (0, _CouncilboxThemeContext.useCouncilboxTheme)(),
|
|
58
58
|
size = _useCouncilboxTheme.size;
|
|
59
59
|
|
|
60
|
-
var buttons = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, !!buttonCancel && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(
|
|
61
|
-
|
|
62
|
-
border: '1px solid var(--neutral50)'
|
|
63
|
-
},
|
|
64
|
-
variant: "tertiary",
|
|
60
|
+
var buttons = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, !!buttonCancel && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
61
|
+
variant: "secondary",
|
|
65
62
|
text: buttonCancel,
|
|
66
63
|
id: "".concat(id, "-button-cancel"),
|
|
67
64
|
onClick: cancelAction || requestClose
|
|
68
|
-
})), extraActions && /*#__PURE__*/_react.default.createElement("div", null, extraActions), !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(
|
|
65
|
+
})), extraActions && /*#__PURE__*/_react.default.createElement("div", null, extraActions), !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
69
66
|
text: buttonAccept,
|
|
70
67
|
id: "".concat(id, "-button-accept"),
|
|
71
|
-
loading: loadingAction
|
|
72
|
-
,
|
|
73
|
-
color: "primary",
|
|
68
|
+
loading: loadingAction,
|
|
74
69
|
onClick: acceptAction
|
|
75
70
|
})));
|
|
76
71
|
|
|
@@ -105,15 +100,15 @@ var Modal = function Modal(_ref) {
|
|
|
105
100
|
}
|
|
106
101
|
}, body), (!!buttonCancel || !!buttonAccept) && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
107
102
|
sx: {
|
|
108
|
-
padding: '
|
|
103
|
+
padding: '1rem',
|
|
109
104
|
margin: '0px',
|
|
110
|
-
minWidth: '
|
|
105
|
+
minWidth: '1.563rem'
|
|
111
106
|
}
|
|
112
107
|
}, buttons), actions && /*#__PURE__*/_react.default.createElement(_material.DialogActions, {
|
|
113
108
|
sx: {
|
|
114
|
-
padding: '
|
|
109
|
+
padding: '1rem',
|
|
115
110
|
margin: '0px',
|
|
116
|
-
minWidth: '
|
|
111
|
+
minWidth: '1.563rem'
|
|
117
112
|
}
|
|
118
113
|
}, actions));
|
|
119
114
|
};
|
|
@@ -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,8 +156,8 @@ 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,
|
|
@@ -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
|
|
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;
|