@councilbox/councilbox-ui 0.1.0 → 0.1.3
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/HOCs/useWindowSize.js +8 -5
- package/dist/build-index.js +56 -0
- package/dist/components/Avatar/Avatar.js +1 -6
- package/dist/components/Button/Button.js +85 -21
- package/dist/components/Button/Button.stories.js +2 -1
- package/dist/components/Button/button.css +34 -6
- package/dist/components/ButtonBasic/ButtonBasic.css +3 -0
- package/dist/components/ButtonBasic/ButtonBasic.js +117 -0
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +72 -0
- package/dist/components/DrawerPanel/DrawerPanel.css +33 -0
- package/dist/components/DrawerPanel/DrawerPanel.js +165 -0
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +38 -0
- package/dist/components/DrawerPanel/DrawerPanelPrueba.js +52 -0
- package/dist/components/DropDown/DesignDropDown.stories.js +82 -0
- package/dist/components/DropDown/DropDown.css +0 -0
- package/dist/components/DropDown/DropDown.js +162 -0
- package/dist/components/DropDown/DropDown.stories.js +43 -0
- package/dist/components/Header/Header.js +246 -43
- package/dist/components/Header/Header.stories.js +31 -10
- package/dist/components/Header/header.css +121 -19
- package/dist/components/IconButton/IconButton.css +0 -0
- package/dist/components/IconButton/IconButton.js +72 -0
- package/dist/components/IconButton/IconButton.stories.js +27 -0
- package/dist/components/InputPassword/InputPassword.css +28 -0
- package/dist/components/InputPassword/InputPassword.js +38 -163
- package/dist/components/InputPassword/InputPassword.stories.js +33 -2
- package/dist/components/InputText/InputText.css +18 -0
- package/dist/components/InputText/InputText.js +84 -74
- package/dist/components/InputText/InputText.stories.js +26 -2
- 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/Modal/Modal.css +0 -0
- package/dist/components/Modal/Modal.js +166 -0
- package/dist/components/Modal/Modal.stories.js +49 -0
- package/dist/components/Spacing/Spacing.js +1 -1
- package/dist/components/TextInput/TextInput.css +12 -0
- package/dist/components/TextInput/TextInput.js +214 -0
- package/dist/components/TextInput/TextInput.stories.js +52 -0
- package/dist/components/ThemeProvider/Colors.js +24 -95
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/Typography/Typography.js +7 -8
- package/dist/styles/main.css +21 -71
- package/dist/styles/stylesheet.js +6 -39
- package/package.json +1 -1
|
@@ -9,61 +9,264 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
13
|
+
|
|
14
|
+
var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"));
|
|
15
|
+
|
|
16
|
+
var _useWindowSize2 = _interopRequireDefault(require("../../HOCs/useWindowSize"));
|
|
13
17
|
|
|
14
18
|
require("./header.css");
|
|
15
19
|
|
|
20
|
+
var _DropDown = _interopRequireDefault(require("../DropDown/DropDown"));
|
|
21
|
+
|
|
22
|
+
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
23
|
+
|
|
16
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
25
|
|
|
18
26
|
var Header = function Header(_ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
27
|
+
var back = _ref.back,
|
|
28
|
+
logoLeft = _ref.logoLeft,
|
|
29
|
+
logoLeftXS = _ref.logoLeftXS,
|
|
30
|
+
title = _ref.title,
|
|
31
|
+
lock = _ref.lock,
|
|
32
|
+
itemsDropDownMore = _ref.itemsDropDownMore,
|
|
33
|
+
logoRight = _ref.logoRight,
|
|
34
|
+
logoRightXS = _ref.logoRightXS,
|
|
35
|
+
finish = _ref.finish,
|
|
36
|
+
translate = _ref.translate,
|
|
37
|
+
textFinishButton = _ref.textFinishButton,
|
|
38
|
+
companyName = _ref.companyName,
|
|
39
|
+
moreIcon = _ref.moreIcon,
|
|
40
|
+
iconButtonRight = _ref.iconButtonRight,
|
|
41
|
+
sectionCenter = _ref.sectionCenter,
|
|
42
|
+
itemsDropDownUser = _ref.itemsDropDownUser,
|
|
43
|
+
lockIcon = _ref.lockIcon,
|
|
44
|
+
logoAndDropdownSeparate = _ref.logoAndDropdownSeparate,
|
|
45
|
+
backgroundIconButtonRight = _ref.backgroundIconButtonRight;
|
|
46
|
+
|
|
47
|
+
var _useWindowSize = (0, _useWindowSize2.default)(),
|
|
48
|
+
innerWidth = _useWindowSize.innerWidth,
|
|
49
|
+
breakpoints = _useWindowSize.breakpoints;
|
|
50
|
+
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement("header", {
|
|
52
|
+
id: 'cbx-header-app-header',
|
|
53
|
+
className: "App-header"
|
|
54
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
55
|
+
className: "cbx-header-first-block",
|
|
56
|
+
style: {
|
|
57
|
+
minWidth: innerWidth > breakpoints.md ? '185px' : !logoLeft ? '145px' : '95px',
|
|
58
|
+
marginRight: innerWidth < breakpoints.md ? 'var(--spacing8)' : 'var(--spacing24)'
|
|
59
|
+
}
|
|
60
|
+
}, back && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
61
|
+
"aria-label": "",
|
|
62
|
+
id: 'cbx-header-first-button-left',
|
|
63
|
+
className: "cbx-header-first-button-left cbx-header-button",
|
|
64
|
+
onClick: back,
|
|
65
|
+
icon: /*#__PURE__*/_react.default.createElement("i", {
|
|
66
|
+
className: "ri-arrow-left-line"
|
|
67
|
+
})
|
|
68
|
+
})), logoLeft ? /*#__PURE__*/_react.default.createElement("div", {
|
|
69
|
+
className: "cbx-header-first-container-app-logo"
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
71
|
+
id: 'cbx-header-first-app-logo',
|
|
72
|
+
src: innerWidth < breakpoints.md ? logoLeftXS : logoLeft || logoLeft,
|
|
73
|
+
className: "App-logo",
|
|
74
|
+
alt: "logo"
|
|
75
|
+
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
className: "cbx-header-first-container-app-logo-empty"
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
78
|
+
id: 'cbx-header-first-app-logo',
|
|
79
|
+
src: 'https://ovac.pre.councilbox.com/static/media/organization_demo.38f17776.svg',
|
|
80
|
+
className: "App-logo cbx-header-first-app-logo-empty",
|
|
81
|
+
alt: "logo"
|
|
82
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
+
className: "cbx-header-first-container-app-logo-text-empty"
|
|
84
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
85
|
+
color: 'var(--primary)',
|
|
86
|
+
fontWeight: '700',
|
|
87
|
+
component: 'span',
|
|
88
|
+
styles: {
|
|
89
|
+
fontSize: '16px',
|
|
90
|
+
lineHeight: '24px',
|
|
91
|
+
minWidth: '55px'
|
|
92
|
+
}
|
|
93
|
+
}, companyName)))), sectionCenter && /*#__PURE__*/_react.default.createElement("div", {
|
|
94
|
+
className: "cbx-header-second-block"
|
|
95
|
+
}, lock && /*#__PURE__*/_react.default.createElement("div", {
|
|
96
|
+
className: "cbx-header-second-container-lock"
|
|
97
|
+
}, lockIcon || /*#__PURE__*/_react.default.createElement("i", {
|
|
98
|
+
className: "ri-lock-line"
|
|
99
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
+
className: "cbx-header-second-container-text",
|
|
101
|
+
style: {
|
|
102
|
+
minWidth: innerWidth < breakpoints.md ? '80px' : '120px'
|
|
103
|
+
}
|
|
104
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
105
|
+
color: 'var(--gray5)',
|
|
106
|
+
fontWeight: '700',
|
|
107
|
+
component: 'span',
|
|
108
|
+
styles: {
|
|
109
|
+
fontSize: '18px',
|
|
110
|
+
lineHeight: '22px'
|
|
111
|
+
}
|
|
112
|
+
}, title)), itemsDropDownMore && /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
+
className: "cbx-header-second-container-more",
|
|
114
|
+
style: {
|
|
115
|
+
margin: innerWidth > breakpoints.md && '0 16px'
|
|
116
|
+
}
|
|
117
|
+
}, /*#__PURE__*/_react.default.createElement(_DropDown.default, {
|
|
118
|
+
color: "transparent",
|
|
119
|
+
Component: function Component() {
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
121
|
+
"aria-label": "",
|
|
122
|
+
id: 'cbx-header-button-more',
|
|
123
|
+
className: "cbx-header-second-button-more cbx-header-button",
|
|
124
|
+
icon: moreIcon || /*#__PURE__*/_react.default.createElement("i", {
|
|
125
|
+
className: "ri-more-2-line"
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
items: itemsDropDownMore
|
|
130
|
+
})), finish && /*#__PURE__*/_react.default.createElement("div", {
|
|
131
|
+
className: "cbx-header-second-container-finish"
|
|
132
|
+
}, innerWidth < breakpoints.md ? /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
133
|
+
"aria-label": "",
|
|
134
|
+
id: 'cbx-header-button-logout',
|
|
135
|
+
className: "cbx-header-second-button-icon-logout cbx-header-button",
|
|
136
|
+
onClick: finish,
|
|
137
|
+
icon: /*#__PURE__*/_react.default.createElement("i", {
|
|
138
|
+
className: "ri-logout-circle-r-line"
|
|
139
|
+
})
|
|
140
|
+
}) : /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
141
|
+
id: 'cbx-header-button-logout',
|
|
142
|
+
variant: 'secondary',
|
|
143
|
+
style: {
|
|
144
|
+
whiteSpace: 'nowrap'
|
|
145
|
+
},
|
|
146
|
+
text: (translate === null || translate === void 0 ? void 0 : translate.finish_and_aprove_act) || textFinishButton,
|
|
147
|
+
onClick: finish
|
|
148
|
+
}))), /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
+
className: "cbx-header-third-block",
|
|
150
|
+
style: {
|
|
151
|
+
minWidth: innerWidth > breakpoints.md ? !logoRight ? '40px' : '185px' : !logoRight ? '40px' : '85px',
|
|
152
|
+
marginLeft: innerWidth < breakpoints.md ? 'var(--spacing8)' : 'var(--spacing24)'
|
|
153
|
+
}
|
|
154
|
+
}, logoAndDropdownSeparate ? /*#__PURE__*/_react.default.createElement("div", {
|
|
155
|
+
className: "cbx-header-third-container"
|
|
156
|
+
}, logoRight && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
157
|
+
id: 'cbx-header-third-logo-right',
|
|
158
|
+
className: "cbx-header-third-logo-right",
|
|
159
|
+
src: innerWidth < breakpoints.md ? logoRight : logoRightXS || logoRight,
|
|
160
|
+
alt: "logo"
|
|
161
|
+
})), iconButtonRight && /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
162
|
+
"aria-label": "",
|
|
163
|
+
id: 'cbx-header-third-button-user',
|
|
164
|
+
className: "cbx-header-third-button-user cbx-header-button",
|
|
165
|
+
icon: iconButtonRight,
|
|
166
|
+
sx: {
|
|
167
|
+
background: backgroundIconButtonRight
|
|
168
|
+
}
|
|
169
|
+
}), itemsDropDownUser && /*#__PURE__*/_react.default.createElement("div", {
|
|
170
|
+
style: {
|
|
171
|
+
marginLeft: 'var(--spacing4)'
|
|
172
|
+
}
|
|
173
|
+
}, /*#__PURE__*/_react.default.createElement(_DropDown.default, {
|
|
174
|
+
color: "transparent",
|
|
175
|
+
anchorOrigin: {
|
|
176
|
+
vertical: 'bottom',
|
|
177
|
+
horizontal: 'right'
|
|
178
|
+
},
|
|
179
|
+
transformOrigin: {
|
|
180
|
+
vertical: 'top',
|
|
181
|
+
horizontal: 'right'
|
|
182
|
+
},
|
|
183
|
+
Component: function Component() {
|
|
184
|
+
return /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
185
|
+
"aria-label": "",
|
|
186
|
+
id: 'cbx-header-third-button-user',
|
|
187
|
+
className: "cbx-header-third-button-user cbx-header-button",
|
|
188
|
+
icon: iconButtonRight || /*#__PURE__*/_react.default.createElement("i", {
|
|
189
|
+
className: "ri-user-3-line"
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
},
|
|
193
|
+
items: itemsDropDownUser
|
|
194
|
+
}))) : /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_DropDown.default, {
|
|
195
|
+
color: "transparent",
|
|
196
|
+
anchorOrigin: {
|
|
197
|
+
vertical: 'bottom',
|
|
198
|
+
horizontal: 'right'
|
|
199
|
+
},
|
|
200
|
+
transformOrigin: {
|
|
201
|
+
vertical: 'top',
|
|
202
|
+
horizontal: 'right'
|
|
203
|
+
},
|
|
204
|
+
Component: function Component() {
|
|
205
|
+
return /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
206
|
+
id: 'cbx-header-third-dropdown-user',
|
|
207
|
+
variant: 'tertiary',
|
|
208
|
+
style: {
|
|
209
|
+
paddingRight: '2px'
|
|
210
|
+
},
|
|
211
|
+
text: /*#__PURE__*/_react.default.createElement("div", {
|
|
212
|
+
className: "cbx-header-third-button-container"
|
|
213
|
+
}, logoRight && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("img", {
|
|
214
|
+
id: 'cbx-header-third-logo-right',
|
|
215
|
+
className: "cbx-header-third-logo-right",
|
|
216
|
+
src: innerWidth < breakpoints.md ? logoRight : logoRightXS || logoRight,
|
|
217
|
+
alt: "logo"
|
|
218
|
+
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
219
|
+
className: "cbx-header-third-button-user-logo "
|
|
220
|
+
}, iconButtonRight || /*#__PURE__*/_react.default.createElement("i", {
|
|
221
|
+
className: "ri-user-3-line"
|
|
222
|
+
}))),
|
|
223
|
+
onClick: finish
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
items: itemsDropDownUser
|
|
227
|
+
}))));
|
|
56
228
|
};
|
|
57
229
|
|
|
58
230
|
Header.displayName = "Header";
|
|
59
231
|
Header.propTypes = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
232
|
+
back: _propTypes.default.func,
|
|
233
|
+
logoLeft: _propTypes.default.string,
|
|
234
|
+
logoLeftXS: _propTypes.default.string,
|
|
235
|
+
title: _propTypes.default.string,
|
|
236
|
+
lock: _propTypes.default.bool,
|
|
237
|
+
more: _propTypes.default.bool,
|
|
238
|
+
logoAndDropdownSeparate: _propTypes.default.bool,
|
|
239
|
+
sectionCenter: _propTypes.default.bool,
|
|
240
|
+
logoRight: _propTypes.default.string,
|
|
241
|
+
logoRightXS: _propTypes.default.string,
|
|
242
|
+
finish: _propTypes.default.func,
|
|
243
|
+
textFinishButton: _propTypes.default.string,
|
|
244
|
+
companyName: _propTypes.default.string,
|
|
245
|
+
iconButtonRight: _propTypes.default.string,
|
|
246
|
+
lockIcon: _propTypes.default.string,
|
|
247
|
+
backgroundIconButtonRight: _propTypes.default.string,
|
|
248
|
+
itemsDropDownUser: _propTypes.default.node,
|
|
249
|
+
itemsDropDownMore: _propTypes.default.node
|
|
64
250
|
};
|
|
65
251
|
Header.defaultProps = {
|
|
66
|
-
|
|
252
|
+
back: undefined,
|
|
253
|
+
logoLeft: '',
|
|
254
|
+
logoLeftXS: '',
|
|
255
|
+
title: 'Lorem ipsum dolor sit amet. Leverage agile frameworks to provide',
|
|
256
|
+
lock: true,
|
|
257
|
+
more: true,
|
|
258
|
+
logoAndDropdownSeparate: true,
|
|
259
|
+
sectionCenter: true,
|
|
260
|
+
logoRight: '',
|
|
261
|
+
logoRightXS: '',
|
|
262
|
+
finish: Function.prototype,
|
|
263
|
+
textFinishButton: 'Finalizar Cita',
|
|
264
|
+
companyName: 'Entity 1 Entity 1 Entity 1',
|
|
265
|
+
iconButtonRight: '',
|
|
266
|
+
lockIcon: '',
|
|
267
|
+
backgroundIconButtonRight: '',
|
|
268
|
+
itemsDropDownUser: '',
|
|
269
|
+
itemsDropDownMore: ''
|
|
67
270
|
};
|
|
68
271
|
var _default = Header;
|
|
69
272
|
exports.default = _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.
|
|
6
|
+
exports.default = exports.HeaderAllButtons = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,9 +11,32 @@ var _Header = _interopRequireDefault(require("./Header"));
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
+
var IMGS = {
|
|
15
|
+
cbx: 'https://api.councilbox.com/static/img/logo-xs.png',
|
|
16
|
+
empty: ''
|
|
17
|
+
};
|
|
18
|
+
var IMGS2 = {
|
|
19
|
+
ovac: 'https://ovac.pre.councilbox.com/static/media/logo.1752d54e.svg',
|
|
20
|
+
abanca: 'https://api.councilbox.com/subdomains/logo/abanca_logo.png',
|
|
21
|
+
empty: ''
|
|
22
|
+
};
|
|
14
23
|
var _default = {
|
|
15
24
|
title: 'Example/Header',
|
|
16
|
-
component: _Header.default
|
|
25
|
+
component: _Header.default,
|
|
26
|
+
argTypes: {
|
|
27
|
+
logoLeft: {
|
|
28
|
+
control: {
|
|
29
|
+
type: 'select'
|
|
30
|
+
},
|
|
31
|
+
options: IMGS
|
|
32
|
+
},
|
|
33
|
+
logoRight: {
|
|
34
|
+
control: {
|
|
35
|
+
type: 'select'
|
|
36
|
+
},
|
|
37
|
+
options: IMGS2
|
|
38
|
+
}
|
|
39
|
+
}
|
|
17
40
|
};
|
|
18
41
|
exports.default = _default;
|
|
19
42
|
|
|
@@ -22,11 +45,9 @@ var Template = function Template(args) {
|
|
|
22
45
|
};
|
|
23
46
|
|
|
24
47
|
Template.displayName = "Template";
|
|
25
|
-
var
|
|
26
|
-
exports.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
exports.LoggedOut = LoggedOut;
|
|
32
|
-
LoggedOut.args = {};
|
|
48
|
+
var HeaderAllButtons = Template.bind({});
|
|
49
|
+
exports.HeaderAllButtons = HeaderAllButtons;
|
|
50
|
+
_Header.default.args = {
|
|
51
|
+
logoLeft: '',
|
|
52
|
+
logoRight: ''
|
|
53
|
+
};
|
|
@@ -1,26 +1,128 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
.App-header {
|
|
2
|
+
justify-content: space-between;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
height: 4rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
border-bottom: 1px solid gainsboro;
|
|
7
|
+
background: white;
|
|
8
|
+
box-shadow: 0px 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
|
|
9
|
+
padding: 0 var(--spacing16)
|
|
8
10
|
}
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
vertical-align: top;
|
|
12
|
+
.cbx-header-first-block {
|
|
13
|
+
max-width: 13.75rem;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
.cbx-header-first-block,
|
|
17
|
+
.App-header,
|
|
18
|
+
.cbx-header-second-block,
|
|
19
|
+
.cbx-header-third-block,
|
|
20
|
+
.cbx-header-first-container-app-logo-empty,
|
|
21
|
+
.cbx-header-third-button-user-logo,
|
|
22
|
+
.cbx-header-third-container,
|
|
23
|
+
.cbx-header-third-button-container {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
22
26
|
}
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
28
|
+
.cbx-header-first-container-app-logo-empty span,
|
|
29
|
+
.cbx-header-first-container-app-logo {
|
|
30
|
+
margin-left: var(--spacing12);
|
|
26
31
|
}
|
|
32
|
+
|
|
33
|
+
.cbx-header-first-button-left i {
|
|
34
|
+
color: var(--gray3);
|
|
35
|
+
font-size: 1.125rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cbx-header-third-logo-right, .App-logo {
|
|
39
|
+
display: block;
|
|
40
|
+
/* rem aqui */
|
|
41
|
+
max-width: 7.813rem;
|
|
42
|
+
max-height: 2.5rem;
|
|
43
|
+
width: auto;
|
|
44
|
+
height: auto;
|
|
45
|
+
user-select: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.cbx-header-second-block,
|
|
49
|
+
.cbx-header-first-block {
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cbx-header-second-block,
|
|
54
|
+
.cbx-header-second-container-text,
|
|
55
|
+
.cbx-header-first-block,
|
|
56
|
+
.cbx-header-first-container-app-logo-text-empty,
|
|
57
|
+
.cbx-header-first-container-app-logo-empty {
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
text-overflow: ellipsis;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cbx-header-second-container-lock {
|
|
63
|
+
color: var(--gray3);
|
|
64
|
+
margin-right: var(--spacing24);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cbx-header-second-container-lock i {
|
|
68
|
+
font-size: 1.25rem
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.cbx-header-second-container-text {
|
|
72
|
+
margin-right: var(--spacing4);
|
|
73
|
+
text-align: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cbx-header-second-container-more,
|
|
77
|
+
.cbx-header-third-button-user-logo,
|
|
78
|
+
.cbx-header-third-button-user i {
|
|
79
|
+
color: var(--gray3)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cbx-header-second-button-more i,
|
|
83
|
+
.cbx-header-third-button-user-logo,
|
|
84
|
+
.cbx-header-second-button-icon-logout i,
|
|
85
|
+
.cbx-header-third-button-user i {
|
|
86
|
+
font-size: 1.313rem
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cbx-header-second-container-finish,
|
|
90
|
+
.cbx-header-third-button-user-logo {
|
|
91
|
+
margin-left: var(--spacing4)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.cbx-header-second-button-icon-logout i {
|
|
95
|
+
color: var(--primary);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.cbx-header-third-block {
|
|
99
|
+
justify-content: flex-end
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.cbx-header-third-button-user,
|
|
103
|
+
.cbx-header-third-button-user-logo {
|
|
104
|
+
background: var(--gray1) !important
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.cbx-header-button,
|
|
108
|
+
.cbx-header-first-app-logo-empty,
|
|
109
|
+
.cbx-header-third-button-user-logo {
|
|
110
|
+
width: var(--spacing40);
|
|
111
|
+
height: var(--spacing40);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cbx-header-button {
|
|
115
|
+
border: none !important;
|
|
116
|
+
outline: none !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.cbx-header-button:focus {
|
|
120
|
+
border: none !important;
|
|
121
|
+
outline: none !important;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cbx-header-third-button-user-logo {
|
|
125
|
+
border-radius: 50%;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
13
|
+
|
|
14
|
+
require("../../styles/main.css");
|
|
15
|
+
|
|
16
|
+
require("./IconButton.css");
|
|
17
|
+
|
|
18
|
+
var _excluded = ["id", "className", "onClick", "icon", "backgroundColor", "styles"];
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
+
|
|
24
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
|
+
|
|
26
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
27
|
+
|
|
28
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
34
|
+
var IconButton = function IconButton(_ref) {
|
|
35
|
+
var id = _ref.id,
|
|
36
|
+
className = _ref.className,
|
|
37
|
+
onClick = _ref.onClick,
|
|
38
|
+
icon = _ref.icon,
|
|
39
|
+
backgroundColor = _ref.backgroundColor,
|
|
40
|
+
styles = _ref.styles,
|
|
41
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
+
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_IconButton.default, _extends({
|
|
44
|
+
id: id,
|
|
45
|
+
className: className,
|
|
46
|
+
onClick: onClick,
|
|
47
|
+
sx: _objectSpread({
|
|
48
|
+
width: 'var(--spacing40)',
|
|
49
|
+
height: 'var(--spacing40)',
|
|
50
|
+
fontSize: '21px',
|
|
51
|
+
background: backgroundColor
|
|
52
|
+
}, styles)
|
|
53
|
+
}, props), icon);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
IconButton.displayName = "IconButton";
|
|
57
|
+
IconButton.propTypes = {
|
|
58
|
+
id: _propTypes.default.string,
|
|
59
|
+
className: _propTypes.default.string,
|
|
60
|
+
onClick: _propTypes.default.func,
|
|
61
|
+
icon: _propTypes.default.node,
|
|
62
|
+
backgroundColor: _propTypes.default.string
|
|
63
|
+
};
|
|
64
|
+
IconButton.defaultProps = {
|
|
65
|
+
id: '',
|
|
66
|
+
className: '',
|
|
67
|
+
onClick: Function.prototype,
|
|
68
|
+
icon: undefined,
|
|
69
|
+
backgroundColor: ''
|
|
70
|
+
};
|
|
71
|
+
var _default = IconButton;
|
|
72
|
+
exports.default = _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.Default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'Example/IconButton',
|
|
16
|
+
component: _IconButton.default
|
|
17
|
+
};
|
|
18
|
+
exports.default = _default;
|
|
19
|
+
|
|
20
|
+
var Template = function Template(args) {
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_IconButton.default, args);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
Template.displayName = "Template";
|
|
25
|
+
var Default = Template.bind({});
|
|
26
|
+
exports.Default = Default;
|
|
27
|
+
Default.args = {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.cbx-inputPassword-validation {
|
|
2
|
+
width: 100%;
|
|
3
|
+
background: #DBDBDB;
|
|
4
|
+
height: var(--spacing8);
|
|
5
|
+
border-radius: 20px;
|
|
6
|
+
margin-top: var(--spacing4);
|
|
7
|
+
margin-bottom: var(--spacing4);
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.cbx-inputPassword-validation > div {
|
|
12
|
+
height: var(--spacing8);
|
|
13
|
+
border-radius: 20px;
|
|
14
|
+
transition: all .5s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cbx-inputPassword-icon-button, .cbx-inputPassword-icon-size {
|
|
18
|
+
width: var(--spacing24);
|
|
19
|
+
height: var(--spacing24);
|
|
20
|
+
border: none!important;
|
|
21
|
+
outline: none!important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cbx-inputPassword-icon-button:focus, .cbx-inputPassword-icon-size:focus {
|
|
25
|
+
border: none!important;
|
|
26
|
+
outline: none!important;
|
|
27
|
+
}
|
|
28
|
+
|