@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.
- package/dist/build-index.js +8 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/InputPassword/InputPassword.js +1 -1
- package/dist/components/InputText/InputText.js +29 -30
- package/dist/components/MenuLateralRight/MenuLateralRight.css +0 -0
- package/dist/components/MenuLateralRight/MenuLateralRight.js +30 -0
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +34 -0
- package/dist/components/TextInput/TextInput.js +13 -15
- package/dist/components/ThemeProvider/Colors.js +1 -1
- package/dist/styles/main.css +1 -1
- package/package.json +1 -1
package/dist/build-index.js
CHANGED
|
@@ -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(--
|
|
100
|
+
background = 'var(--warning)';
|
|
101
101
|
buttonColor = 'var(--gray1)';
|
|
102
102
|
} else if (variant === 'success') {
|
|
103
103
|
buttonVariant = 'contained';
|
|
@@ -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 (
|
|
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:
|
|
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:
|
|
59
|
+
color: 'var(--error)'
|
|
61
60
|
},
|
|
62
61
|
'& .MuiInputLabel-shrink': {
|
|
63
62
|
top: '1px'
|
|
64
63
|
},
|
|
65
64
|
'& .MuiOutlinedInput-root': {
|
|
66
|
-
color:
|
|
65
|
+
color: 'var(--gray5)',
|
|
67
66
|
paddingRight: 'var(--spacing8)',
|
|
68
67
|
'& fieldset': {
|
|
69
|
-
borderColor:
|
|
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:
|
|
78
|
+
borderColor: 'var(--gray3)',
|
|
80
79
|
borderWidth: '2px'
|
|
81
80
|
},
|
|
82
81
|
'&:active fieldset': {
|
|
83
|
-
borderColor:
|
|
82
|
+
borderColor: 'var(--gray3)',
|
|
84
83
|
borderWidth: '2px'
|
|
85
84
|
},
|
|
86
85
|
'&.Mui-focused fieldset': {
|
|
87
|
-
borderColor:
|
|
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:
|
|
95
|
-
border:
|
|
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:
|
|
100
|
+
borderColor: 'var(--error)'
|
|
102
101
|
},
|
|
103
102
|
'&:hover fieldset': {
|
|
104
|
-
borderColor:
|
|
103
|
+
borderColor: 'var(--error)',
|
|
105
104
|
borderWidth: '2px'
|
|
106
105
|
},
|
|
107
106
|
'&:active fieldset': {
|
|
108
|
-
borderColor:
|
|
107
|
+
borderColor: 'var(--error)',
|
|
109
108
|
borderWidth: '2px'
|
|
110
109
|
},
|
|
111
110
|
'&.Mui-focused fieldset': {
|
|
112
|
-
borderColor:
|
|
111
|
+
borderColor: 'var(--error)',
|
|
113
112
|
borderWidth: '2px'
|
|
114
113
|
},
|
|
115
114
|
'&:focus-visible': {
|
|
116
115
|
// falta revisar esto
|
|
117
|
-
borderColor:
|
|
116
|
+
borderColor: 'var(--gray4)',
|
|
118
117
|
borderWidth: '2px',
|
|
119
|
-
boxShadow:
|
|
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(
|
|
144
|
-
var id =
|
|
145
|
-
className =
|
|
146
|
-
onChange =
|
|
147
|
-
label =
|
|
148
|
-
disabled =
|
|
149
|
-
error =
|
|
150
|
-
helper =
|
|
151
|
-
success =
|
|
152
|
-
width =
|
|
153
|
-
helperText =
|
|
154
|
-
fullWidth =
|
|
155
|
-
props = _objectWithoutProperties(
|
|
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,
|
|
File without changes
|
|
@@ -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:
|
|
64
|
+
color: 'var(--gray4)',
|
|
66
65
|
paddingRight: 'var(--spacing8)',
|
|
67
66
|
'& fieldset': {
|
|
68
|
-
borderColor:
|
|
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:
|
|
77
|
+
borderColor: 'var(--gray3)',
|
|
79
78
|
borderWidth: '2px'
|
|
80
79
|
},
|
|
81
80
|
'&:active fieldset': {
|
|
82
|
-
borderColor:
|
|
81
|
+
borderColor: 'var(--gray4)',
|
|
83
82
|
borderWidth: '2px'
|
|
84
83
|
},
|
|
85
84
|
'&.Mui-focused fieldset': {
|
|
86
|
-
borderColor:
|
|
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:
|
|
94
|
-
border:
|
|
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:
|
|
99
|
+
borderColor: 'var(--error)'
|
|
101
100
|
},
|
|
102
101
|
'&:hover fieldset': {
|
|
103
|
-
borderColor:
|
|
102
|
+
borderColor: 'var(--error)',
|
|
104
103
|
borderWidth: '2px'
|
|
105
104
|
},
|
|
106
105
|
'&:active fieldset': {
|
|
107
|
-
borderColor:
|
|
106
|
+
borderColor: 'var(--error)',
|
|
108
107
|
borderWidth: '2px'
|
|
109
108
|
},
|
|
110
109
|
'&.Mui-focused fieldset': {
|
|
111
|
-
borderColor:
|
|
110
|
+
borderColor: 'var(--error)',
|
|
112
111
|
borderWidth: '2px'
|
|
113
112
|
},
|
|
114
113
|
'&:focus-visible': {
|
|
115
|
-
|
|
116
|
-
borderColor: theme.palette.primary700,
|
|
114
|
+
borderColor: 'var(--gray4)',
|
|
117
115
|
borderWidth: '2px',
|
|
118
|
-
boxShadow:
|
|
116
|
+
boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)'
|
|
119
117
|
}
|
|
120
118
|
},
|
|
121
119
|
'& .MuiOutlinedInput-root.Mui-disabled': {
|
package/dist/styles/main.css
CHANGED