@councilbox/councilbox-ui 0.1.1 → 0.1.2

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.
@@ -81,6 +81,12 @@ Object.defineProperty(exports, "InputText", {
81
81
  return _InputText.default;
82
82
  }
83
83
  });
84
+ Object.defineProperty(exports, "MenuLateralRight", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _MenuLateralRight.default;
88
+ }
89
+ });
84
90
  Object.defineProperty(exports, "Modal", {
85
91
  enumerable: true,
86
92
  get: function get() {
@@ -160,6 +166,8 @@ var _IconButton = _interopRequireDefault(require("./components/IconButton/IconBu
160
166
 
161
167
  var _DropDown = _interopRequireDefault(require("./components/DropDown/DropDown"));
162
168
 
169
+ var _MenuLateralRight = _interopRequireDefault(require("./components/MenuLateralRight/MenuLateralRight"));
170
+
163
171
  var _ThemeProvider = _interopRequireDefault(require("./components/ThemeProvider/ThemeProvider"));
164
172
 
165
173
  var _CouncilboxThemeContext = require("./components/ThemeProvider/CouncilboxThemeContext");
@@ -97,7 +97,7 @@ var Button = function Button(_ref) {
97
97
  buttonColor = 'var(--gray1)';
98
98
  } else if (variant === 'warning') {
99
99
  buttonVariant = 'contained';
100
- background = 'var(--warnig)';
100
+ background = 'var(--warning)';
101
101
  buttonColor = 'var(--gray1)';
102
102
  } else if (variant === 'success') {
103
103
  buttonVariant = 'contained';
@@ -72,7 +72,7 @@ var InputPassword = function InputPassword(_ref) {
72
72
  var color = themeData.theme.colors.error;
73
73
 
74
74
  if (percent > 30 && percent < 90) {
75
- color = themeData.theme.colors.warnig600;
75
+ color = 'var(--warning)';
76
76
  }
77
77
 
78
78
  if (percent >= 90) {
@@ -29,8 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
29
29
 
30
30
  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; }
31
31
 
32
- var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
33
- var theme = _ref.theme;
32
+ var CssTextField = (0, _styled.default)(_TextField.default)(function () {
34
33
  return {
35
34
  '& label.Mui-focused': {
36
35
  color: 'primary',
@@ -39,7 +38,7 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
39
38
  top: '1px'
40
39
  },
41
40
  '& .MuiInput-underline:after': {
42
- borderBottomColor: theme.palette.primary700,
41
+ borderBottomColor: 'var(--gray5)',
43
42
  borderWidth: '2px'
44
43
  },
45
44
  '& .MuiFormHelperText-root': {
@@ -57,16 +56,16 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
57
56
  top: '-4px'
58
57
  },
59
58
  '& .Mui-error': {
60
- color: theme.palette.error
59
+ color: 'var(--error)'
61
60
  },
62
61
  '& .MuiInputLabel-shrink': {
63
62
  top: '1px'
64
63
  },
65
64
  '& .MuiOutlinedInput-root': {
66
- color: theme.palette.gray5,
65
+ color: 'var(--gray5)',
67
66
  paddingRight: 'var(--spacing8)',
68
67
  '& fieldset': {
69
- borderColor: theme.palette.gray3,
68
+ borderColor: 'var(--gray3)',
70
69
  borderWidth: '1px',
71
70
  '& legend': {
72
71
  '& span': {
@@ -76,47 +75,47 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
76
75
  }
77
76
  },
78
77
  '&:hover fieldset': {
79
- borderColor: theme.palette.gray3,
78
+ borderColor: 'var(--gray3)',
80
79
  borderWidth: '2px'
81
80
  },
82
81
  '&:active fieldset': {
83
- borderColor: theme.palette.gray4,
82
+ borderColor: 'var(--gray3)',
84
83
  borderWidth: '2px'
85
84
  },
86
85
  '&.Mui-focused fieldset': {
87
- borderColor: theme.palette.gray4,
86
+ borderColor: 'var(--primary)',
88
87
  borderWidth: '2px'
89
88
  },
90
89
  '&:focus-visible': {
91
90
  outline: 'none',
92
91
  '& fieldset': {
93
92
  outline: 'none',
94
- boxShadow: "0 0 0 3px white, 0 0 7px 4px ".concat(theme.palette.primary.main),
95
- border: "2px solid ".concat(theme.palette.gray4)
93
+ boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)',
94
+ border: '2px solid var(--gray4)'
96
95
  }
97
96
  }
98
97
  },
99
98
  '& .MuiOutlinedInput-root.Mui-error': {
100
99
  '& fieldset': {
101
- borderColor: theme.palette.error
100
+ borderColor: 'var(--error)'
102
101
  },
103
102
  '&:hover fieldset': {
104
- borderColor: theme.palette.error,
103
+ borderColor: 'var(--error)',
105
104
  borderWidth: '2px'
106
105
  },
107
106
  '&:active fieldset': {
108
- borderColor: theme.palette.error,
107
+ borderColor: 'var(--error)',
109
108
  borderWidth: '2px'
110
109
  },
111
110
  '&.Mui-focused fieldset': {
112
- borderColor: theme.palette.error,
111
+ borderColor: 'var(--error)',
113
112
  borderWidth: '2px'
114
113
  },
115
114
  '&:focus-visible': {
116
115
  // falta revisar esto
117
- borderColor: theme.palette.gray4,
116
+ borderColor: 'var(--gray4)',
118
117
  borderWidth: '2px',
119
- boxShadow: "0 0 0 3px white, 0 0 7px 4px ".concat(theme.palette.primary.main)
118
+ boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)'
120
119
  }
121
120
  },
122
121
  '& .MuiOutlinedInput-root.Mui-disabled': {
@@ -140,19 +139,19 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
140
139
  };
141
140
  });
142
141
 
143
- var InputText = function InputText(_ref2) {
144
- var id = _ref2.id,
145
- className = _ref2.className,
146
- onChange = _ref2.onChange,
147
- label = _ref2.label,
148
- disabled = _ref2.disabled,
149
- error = _ref2.error,
150
- helper = _ref2.helper,
151
- success = _ref2.success,
152
- width = _ref2.width,
153
- helperText = _ref2.helperText,
154
- fullWidth = _ref2.fullWidth,
155
- props = _objectWithoutProperties(_ref2, _excluded);
142
+ var InputText = function InputText(_ref) {
143
+ var id = _ref.id,
144
+ className = _ref.className,
145
+ onChange = _ref.onChange,
146
+ label = _ref.label,
147
+ disabled = _ref.disabled,
148
+ error = _ref.error,
149
+ helper = _ref.helper,
150
+ success = _ref.success,
151
+ width = _ref.width,
152
+ helperText = _ref.helperText,
153
+ fullWidth = _ref.fullWidth,
154
+ props = _objectWithoutProperties(_ref, _excluded);
156
155
 
157
156
  return /*#__PURE__*/_react.default.createElement(CssTextField, _extends({
158
157
  id: id,
@@ -0,0 +1,30 @@
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("../../styles/main.css");
13
+
14
+ require("./MenuLateralRight.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ var MenuLateralRight = function MenuLateralRight() {
19
+ return /*#__PURE__*/_react.default.createElement("div", null);
20
+ };
21
+
22
+ MenuLateralRight.displayName = "MenuLateralRight";
23
+ MenuLateralRight.propTypes = {
24
+ id: _propTypes.default.string
25
+ };
26
+ MenuLateralRight.defaultProps = {
27
+ id: ''
28
+ };
29
+ var _default = MenuLateralRight;
30
+ exports.default = _default;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.DesignMenuLateralRightTemplate = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _MenuLateralRight = _interopRequireDefault(require("./MenuLateralRight"));
11
+
12
+ var _MenuLateralRight2 = _interopRequireDefault(require("./MenuLateralRight.stories"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ var _default = {
17
+ title: 'Example/DropDown',
18
+ component: _MenuLateralRight.default
19
+ };
20
+ exports.default = _default;
21
+
22
+ var TemplateMenuLateralRight = function TemplateMenuLateralRight(args) {
23
+ return /*#__PURE__*/_react.default.createElement(_MenuLateralRight2.default, args);
24
+ };
25
+
26
+ TemplateMenuLateralRight.displayName = "TemplateMenuLateralRight";
27
+ var DesignMenuLateralRightTemplate = TemplateMenuLateralRight.bind({});
28
+ exports.DesignMenuLateralRightTemplate = DesignMenuLateralRightTemplate;
29
+ DesignMenuLateralRightTemplate.parameters = {
30
+ controls: {
31
+ disable: true
32
+ }
33
+ };
34
+ DesignMenuLateralRightTemplate.args = {};
@@ -39,7 +39,6 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
39
39
  top: '1px'
40
40
  },
41
41
  '& .MuiInput-underline:after': {
42
- borderBottomColor: theme.palette.primary700,
43
42
  borderWidth: '2px'
44
43
  },
45
44
  '& .MuiFormHelperText-root': {
@@ -62,10 +61,10 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
62
61
  top: '1px'
63
62
  },
64
63
  '& .MuiOutlinedInput-root': {
65
- color: theme.palette.gray5,
64
+ color: 'var(--gray4)',
66
65
  paddingRight: 'var(--spacing8)',
67
66
  '& fieldset': {
68
- borderColor: theme.palette.gray3,
67
+ borderColor: 'var(--gray3)',
69
68
  borderWidth: '1px',
70
69
  '& legend': {
71
70
  '& span': {
@@ -75,47 +74,46 @@ var CssTextField = (0, _styled.default)(_TextField.default)(function (_ref) {
75
74
  }
76
75
  },
77
76
  '&:hover fieldset': {
78
- borderColor: theme.palette.gray3,
77
+ borderColor: 'var(--gray3)',
79
78
  borderWidth: '2px'
80
79
  },
81
80
  '&:active fieldset': {
82
- borderColor: theme.palette.gray4,
81
+ borderColor: 'var(--gray4)',
83
82
  borderWidth: '2px'
84
83
  },
85
84
  '&.Mui-focused fieldset': {
86
- borderColor: theme.palette.gray4,
85
+ borderColor: 'var(--gray4)',
87
86
  borderWidth: '2px'
88
87
  },
89
88
  '&:focus-visible': {
90
89
  outline: 'none',
91
90
  '& fieldset': {
92
91
  outline: 'none',
93
- boxShadow: "0 0 0 3px white, 0 0 7px 4px ".concat(theme.palette.primary.main),
94
- border: "2px solid ".concat(theme.palette.gray4)
92
+ boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)',
93
+ border: '2px solid var(--gray4)'
95
94
  }
96
95
  }
97
96
  },
98
97
  '& .MuiOutlinedInput-root.Mui-error': {
99
98
  '& fieldset': {
100
- borderColor: theme.palette.error
99
+ borderColor: 'var(--error)'
101
100
  },
102
101
  '&:hover fieldset': {
103
- borderColor: theme.palette.error,
102
+ borderColor: 'var(--error)',
104
103
  borderWidth: '2px'
105
104
  },
106
105
  '&:active fieldset': {
107
- borderColor: theme.palette.error,
106
+ borderColor: 'var(--error)',
108
107
  borderWidth: '2px'
109
108
  },
110
109
  '&.Mui-focused fieldset': {
111
- borderColor: theme.palette.error,
110
+ borderColor: 'var(--error)',
112
111
  borderWidth: '2px'
113
112
  },
114
113
  '&:focus-visible': {
115
- // falta revisar esto
116
- borderColor: theme.palette.primary700,
114
+ borderColor: 'var(--gray4)',
117
115
  borderWidth: '2px',
118
- boxShadow: "0 0 0 3px white, 0 0 7px 4px ".concat(theme.palette.primary.main)
116
+ boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)'
119
117
  }
120
118
  },
121
119
  '& .MuiOutlinedInput-root.Mui-disabled': {
@@ -11,7 +11,7 @@ var colorsThemeBrand = {
11
11
  success: '#128851',
12
12
  error: '#D14642',
13
13
  info: '#3B70D8',
14
- warnig: '#EA7405',
14
+ warning: '#EA7405',
15
15
  primary75: '#6A6BA9',
16
16
  primary50: '#9B9BC5',
17
17
  primary25: '#CDCDE2',
@@ -9,7 +9,7 @@
9
9
  --success: #128851;
10
10
  --error: #D14642;
11
11
  --info: #3B70D8;
12
- --warnig: #EA7405;
12
+ --warning: #EA7405;
13
13
  --primary75: #6A6BA9;
14
14
  --primary50: #9B9BC5;
15
15
  --primary25: #CDCDE2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",