@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.
Files changed (43) hide show
  1. package/dist/build-index.js +8 -0
  2. package/dist/components/Avatar/Avatar.css +5 -0
  3. package/dist/components/Avatar/Avatar.js +13 -17
  4. package/dist/components/AvatarGroup/AvatarGroup.css +3 -3
  5. package/dist/components/Button/Button.js +10 -9
  6. package/dist/components/Button/button.css +1 -1
  7. package/dist/components/ButtonBasic/ButtonBasic.js +19 -14
  8. package/dist/components/DrawerPanel/{DrawerPanelPrueba.js → DesignDrawerPanel.js} +17 -4
  9. package/dist/components/DrawerPanel/DrawerPanel.css +19 -0
  10. package/dist/components/DrawerPanel/DrawerPanel.js +59 -12
  11. package/dist/components/DrawerPanel/DrawerPanel.stories.js +9 -8
  12. package/dist/components/DropDown/DesignDropDown.stories.js +0 -15
  13. package/dist/components/DropDown/DropDown.css +3 -0
  14. package/dist/components/DropDown/DropDown.js +10 -8
  15. package/dist/components/DropDown/DropDown.stories.js +1 -10
  16. package/dist/components/Grid/DesignGrid.stories.js +46 -0
  17. package/dist/components/Grid/Grid.js +35 -5
  18. package/dist/components/Grid/Grid.stories.js +7 -12
  19. package/dist/components/Grid/GridItem.js +13 -15
  20. package/dist/components/Header/Header.js +44 -34
  21. package/dist/components/Header/Header.stories.js +1 -0
  22. package/dist/components/Header/header.css +7 -5
  23. package/dist/components/IconButton/DesignIconButton.stories.js +27 -0
  24. package/dist/components/IconButton/IconButton.js +42 -7
  25. package/dist/components/IconButton/IconButton.stories.js +11 -7
  26. package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +27 -0
  27. package/dist/components/IconButtonSquare/IconButtonSquare.css +23 -0
  28. package/dist/components/IconButtonSquare/IconButtonSquare.js +103 -0
  29. package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +31 -0
  30. package/dist/components/InputPassword/InputPassword.css +2 -2
  31. package/dist/components/InputPassword/InputPassword.js +2 -2
  32. package/dist/components/InputText/InputText.css +3 -3
  33. package/dist/components/InputText/InputText.js +6 -6
  34. package/dist/components/MenuLateralRight/MenuLateralRight.css +80 -0
  35. package/dist/components/MenuLateralRight/MenuLateralRight.js +159 -4
  36. package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +2 -6
  37. package/dist/components/Modal/Modal.js +11 -17
  38. package/dist/components/TextInput/TextInput.css +2 -2
  39. package/dist/components/TextInput/TextInput.js +12 -10
  40. package/dist/components/Typography/Typography.js +21 -21
  41. package/dist/styles/stylesheet.js +2 -2
  42. package/package.json +1 -1
  43. 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: '24px',
50
+ height: '1.5rem',
51
51
  lineHeight: 'var(--spacing12)',
52
52
  paddingRight: 'var(--spacing8)'
53
53
  },
54
54
  '& .MuiFormLabel-root': {
55
- top: '-4px'
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 || '240px',
160
- height: '48px'
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("div", {
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
- }, error)) : helper && /*#__PURE__*/_react.default.createElement("div", {
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.string,
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: '48px',
47
- lineHeight: '64px'
46
+ fontSize: '3rem',
47
+ lineHeight: '4rem'
48
48
  },
49
49
  '4XL': {
50
- fontSize: '40px',
51
- lineHeight: '56px'
50
+ fontSize: '2.5rem',
51
+ lineHeight: '3.5rem'
52
52
  },
53
53
  '3XL': {
54
- fontSize: '32px',
55
- lineHeight: '48px'
54
+ fontSize: '2rem',
55
+ lineHeight: '3rem'
56
56
  },
57
57
  '2XL': {
58
- fontSize: '28px',
59
- lineHeight: '40px'
58
+ fontSize: '1.75rem',
59
+ lineHeight: '2.5rem'
60
60
  },
61
61
  XL: {
62
- fontSize: '24px',
63
- lineHeight: '32px'
62
+ fontSize: '1.5rem',
63
+ lineHeight: '2rem'
64
64
  },
65
65
  L: {
66
- fontSize: '20px',
67
- lineHeight: '28px'
66
+ fontSize: '1.25rem',
67
+ lineHeight: '1.75rem'
68
68
  },
69
69
  M: {
70
- fontSize: '16px',
71
- lineHeight: '24px'
70
+ fontSize: '1rem',
71
+ lineHeight: '1.5rem'
72
72
  },
73
73
  S: {
74
- fontSize: '14px',
75
- lineHeight: '20px'
74
+ fontSize: '0.875rem',
75
+ lineHeight: '1.25rem'
76
76
  },
77
77
  XS: {
78
- fontSize: '12px',
79
- lineHeight: '16px'
78
+ fontSize: '0.75rem',
79
+ lineHeight: '1rem'
80
80
  },
81
81
  '2XS': {
82
- fontSize: '10px',
83
- lineHeight: '12px'
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.string,
115
+ children: _propTypes.default.node,
116
116
  fontWeight: _propTypes.default.string,
117
117
  textAlign: _propTypes.default.string,
118
118
  component: _propTypes.default.string,
@@ -56,8 +56,8 @@ var theme = function theme() {
56
56
  fontSize: 16,
57
57
  body1: {
58
58
  color: '#616161',
59
- fontSize: '16px',
60
- lineHeight: '24px'
59
+ fontSize: '1rem',
60
+ lineHeight: '1.5rem'
61
61
  }
62
62
  },
63
63
  spacing: [0, 4, 8, 16, 32, 64],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.5",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",
@@ -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;