@councilbox/councilbox-ui 0.6.14 → 0.6.16
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/components/1.Introduction.stories.mdx +1 -1
- package/dist/components/2.Changelog.stories.mdx +10 -0
- package/dist/components/Block/DesignBlock.stories.js +5 -0
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +1 -0
- package/dist/components/DrawerPanel/DrawerPanel.css +4 -0
- package/dist/components/DrawerPanel/DrawerPanel.js +19 -5
- package/dist/components/IconButtonSquare/IconButtonSquare.css +21 -1
- package/dist/components/IconButtonSquare/IconButtonSquare.js +12 -5
- package/dist/components/MenuLateralRight/MenuLateralRight.js +23 -6
- package/package.json +1 -1
|
@@ -24,6 +24,16 @@ a.noStyles:hover{
|
|
|
24
24
|
<h2>v0.5.4</h2>
|
|
25
25
|
<div>Fix zIndex label InputText y SelectInput</div>
|
|
26
26
|
</div>
|
|
27
|
+
<h2>v0.6.16</h2>
|
|
28
|
+
<div>Cambios padding en block</div>
|
|
29
|
+
<div>Texto en el MenuLateralRight en formato mobile</div>
|
|
30
|
+
<div>Cambio de tamaño de botones MenuLateralRight en formato mobile</div>
|
|
31
|
+
<div>Nueva prop en iconButtonSquare</div>
|
|
32
|
+
|
|
33
|
+
<h2>v0.6.15</h2>
|
|
34
|
+
<div>Cambios padding en block</div>
|
|
35
|
+
<div>Cambios Button en DrawerPanel</div>
|
|
36
|
+
|
|
27
37
|
<h2>v0.6.14</h2>
|
|
28
38
|
<div>fix error en Autocomplete</div>
|
|
29
39
|
|
|
@@ -25,6 +25,11 @@ var DesignBlock = function DesignBlock() {
|
|
|
25
25
|
background: '#c1a9e7'
|
|
26
26
|
}
|
|
27
27
|
}, "secondary"), /*#__PURE__*/_react.default.createElement(_Block.default, {
|
|
28
|
+
variant: 'tertiary',
|
|
29
|
+
style: {
|
|
30
|
+
background: '#e7e3a9'
|
|
31
|
+
}
|
|
32
|
+
}, "tertiary"), /*#__PURE__*/_react.default.createElement(_Block.default, {
|
|
28
33
|
variant: 'default',
|
|
29
34
|
style: {
|
|
30
35
|
background: '#a9e7ce'
|
|
@@ -59,6 +59,7 @@ var DesignDrawerPanel = function DesignDrawerPanel(_ref) {
|
|
|
59
59
|
}
|
|
60
60
|
})), /*#__PURE__*/_react.default.createElement(_DrawerPanel.default, {
|
|
61
61
|
title: 'titulo',
|
|
62
|
+
subTitle: 'subtitulo',
|
|
62
63
|
open: open,
|
|
63
64
|
requestClose: function requestClose() {
|
|
64
65
|
return _requestClose(false);
|
|
@@ -31,7 +31,7 @@ var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"))
|
|
|
31
31
|
|
|
32
32
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
33
33
|
|
|
34
|
-
var _excluded = ["title", "id", "fullScreen", "sizeContainer", "buttonAccept", "successAction", "open", "requestClose", "loadingAction", "acceptAction", "bodyText", "bodyStyle", "hideAccept", "classNameDialog", "PaperProps", "widthModal", "isMobile", "tabs", "onChange", "titleStyles"];
|
|
34
|
+
var _excluded = ["title", "id", "fullScreen", "sizeContainer", "buttonAccept", "successAction", "open", "requestClose", "loadingAction", "acceptAction", "bodyText", "bodyStyle", "hideAccept", "classNameDialog", "PaperProps", "widthModal", "isMobile", "tabs", "onChange", "titleStyles", "subTitle", "subTitleStyles", "endIcon", "propsButton"];
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
@@ -78,6 +78,10 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
78
78
|
tabs = _ref.tabs,
|
|
79
79
|
onChange = _ref.onChange,
|
|
80
80
|
titleStyles = _ref.titleStyles,
|
|
81
|
+
subTitle = _ref.subTitle,
|
|
82
|
+
subTitleStyles = _ref.subTitleStyles,
|
|
83
|
+
endIcon = _ref.endIcon,
|
|
84
|
+
propsButton = _ref.propsButton,
|
|
81
85
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
82
86
|
|
|
83
87
|
return /*#__PURE__*/_react.default.createElement(_Dialog.default, _extends({
|
|
@@ -127,15 +131,25 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
127
131
|
styles: _objectSpread({
|
|
128
132
|
fontSize: '1.125rem'
|
|
129
133
|
}, titleStyles)
|
|
130
|
-
}, title
|
|
134
|
+
}, title, !!subTitle && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
135
|
+
variant: "M",
|
|
136
|
+
color: 'white',
|
|
137
|
+
styles: _objectSpread({
|
|
138
|
+
fontSize: '1.125rem',
|
|
139
|
+
paddingLeft: '24px'
|
|
140
|
+
}, subTitleStyles),
|
|
141
|
+
component: 'span'
|
|
142
|
+
}, subTitle)), /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
131
143
|
className: 'cbx-DrawerPanel-toolbar'
|
|
132
|
-
}, !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, {
|
|
144
|
+
}, !hideAccept && !!buttonAccept && /*#__PURE__*/_react.default.createElement(_ButtonBasic.default, _extends({
|
|
133
145
|
text: buttonAccept,
|
|
134
146
|
id: "".concat(id, "-button-accept"),
|
|
135
147
|
loading: loadingAction,
|
|
136
148
|
success: successAction,
|
|
137
|
-
onClick: acceptAction
|
|
138
|
-
|
|
149
|
+
onClick: acceptAction,
|
|
150
|
+
variant: 'secondaryDark',
|
|
151
|
+
endIcon: endIcon
|
|
152
|
+
}, propsButton)))), /*#__PURE__*/_react.default.createElement(_AppBar.default, {
|
|
139
153
|
sx: {
|
|
140
154
|
position: 'relative',
|
|
141
155
|
flexDirection: 'row',
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
background: var(--error);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.cbx-iconButtonSquare-container.menuMobile .cbx-iconButtonSquare-red-dot {
|
|
12
|
+
right: -.625rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
.cbx-iconButtonSquare-red-dot-noText {
|
|
12
16
|
right: -0.813rem;
|
|
13
17
|
}
|
|
@@ -15,9 +19,25 @@
|
|
|
15
19
|
.cbx-iconButtonSquare-containerIcon {
|
|
16
20
|
font-size: 1.5rem;
|
|
17
21
|
position: relative;
|
|
18
|
-
color: var(--gray3)
|
|
22
|
+
color: var(--gray3);
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
.cbx-iconButtonSquare-containerIcon-active {
|
|
22
26
|
color: var(--primary)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cbx-iconButtonSquare-container.menuMobile{
|
|
30
|
+
text-align: center;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cbx-iconButtonSquare-container.menuMobile .cbx-iconButtonSquare-containerIcon {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
width: 1.5rem;
|
|
42
|
+
height: 1.5rem;
|
|
23
43
|
}
|
|
@@ -37,7 +37,10 @@ var IconButtonSquare = function IconButtonSquare(_ref) {
|
|
|
37
37
|
onClick = _ref.onClick,
|
|
38
38
|
styles = _ref.styles,
|
|
39
39
|
tooltip = _ref.tooltip,
|
|
40
|
-
placementTooltip = _ref.placementTooltip
|
|
40
|
+
placementTooltip = _ref.placementTooltip,
|
|
41
|
+
variant = _ref.variant,
|
|
42
|
+
fontWeight = _ref.fontWeight,
|
|
43
|
+
textVisibleMenuMobile = _ref.textVisibleMenuMobile;
|
|
41
44
|
|
|
42
45
|
var rippleRef = _react.default.useRef(null);
|
|
43
46
|
|
|
@@ -60,7 +63,8 @@ var IconButtonSquare = function IconButtonSquare(_ref) {
|
|
|
60
63
|
borderRadius: '0',
|
|
61
64
|
'&:focus': {
|
|
62
65
|
outline: 'none!important'
|
|
63
|
-
}
|
|
66
|
+
},
|
|
67
|
+
padding: textVisibleMenuMobile && '8px 20px'
|
|
64
68
|
}, styles),
|
|
65
69
|
onClick: onClick
|
|
66
70
|
}, /*#__PURE__*/_react.default.createElement(_TouchRipple.default, {
|
|
@@ -69,18 +73,21 @@ var IconButtonSquare = function IconButtonSquare(_ref) {
|
|
|
69
73
|
}), /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
70
74
|
title: tooltip || '',
|
|
71
75
|
placement: placementTooltip
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement("div",
|
|
76
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
77
|
+
className: "cbx-iconButtonSquare-container ".concat(textVisibleMenuMobile ? 'menuMobile' : '')
|
|
78
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
73
79
|
className: "cbx-iconButtonSquare-containerIcon ".concat(active ? 'cbx-iconButtonSquare-containerIcon-active' : '')
|
|
74
80
|
}, badge && /*#__PURE__*/_react.default.createElement("div", {
|
|
75
81
|
className: "cbx-iconButtonSquare-red-dot ".concat(text ? '' : 'cbx-iconButtonSquare-red-dot-noText')
|
|
76
82
|
}), icon), text && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
77
|
-
variant: 'XS',
|
|
83
|
+
variant: variant || 'XS',
|
|
78
84
|
color: active ? 'var(--primary)' : 'var(--gray3)',
|
|
85
|
+
fontWeight: fontWeight,
|
|
79
86
|
styles: {
|
|
80
87
|
overflow: 'hidden',
|
|
81
88
|
whiteSpace: 'nowrap',
|
|
82
89
|
textOverflow: 'ellipsis',
|
|
83
|
-
maxWidth: '3.25rem'
|
|
90
|
+
maxWidth: textVisibleMenuMobile ? '4.5rem' : '3.25rem'
|
|
84
91
|
}
|
|
85
92
|
}, text)))));
|
|
86
93
|
};
|
|
@@ -39,7 +39,8 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
|
|
|
39
39
|
underSection = _ref.underSection,
|
|
40
40
|
mobile = _ref.mobile,
|
|
41
41
|
buttonVideo = _ref.buttonVideo,
|
|
42
|
-
noCollapseUpperSection = _ref.noCollapseUpperSection
|
|
42
|
+
noCollapseUpperSection = _ref.noCollapseUpperSection,
|
|
43
|
+
textVisibleMenuMobile = _ref.textVisibleMenuMobile;
|
|
43
44
|
|
|
44
45
|
var _useWindowSize = (0, _useWindowSize2.default)(),
|
|
45
46
|
innerWidth = _useWindowSize.innerWidth,
|
|
@@ -77,8 +78,12 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
|
|
|
77
78
|
active: buttonVideo.active,
|
|
78
79
|
onClick: buttonVideo.action,
|
|
79
80
|
badge: buttonVideo.badge,
|
|
81
|
+
text: mobile && textVisibleMenuMobile && buttonVideo.text,
|
|
82
|
+
variant: mobile && textVisibleMenuMobile && 'M',
|
|
83
|
+
fontWeight: mobile && textVisibleMenuMobile && '700',
|
|
84
|
+
textVisibleMenuMobile: mobile && textVisibleMenuMobile,
|
|
80
85
|
styles: _objectSpread({}, resize() ? {
|
|
81
|
-
width: 'var(--spacing64)',
|
|
86
|
+
width: mobile && textVisibleMenuMobile ? 'var(--spacing112)' : 'var(--spacing64)',
|
|
82
87
|
height: 'var(--spacing64)'
|
|
83
88
|
} : {})
|
|
84
89
|
}), noCollapseUpperSection ? upperSection === null || upperSection === void 0 ? void 0 : upperSection.map(function (item, index) {
|
|
@@ -88,8 +93,12 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
|
|
|
88
93
|
active: buttonVideo.active ? false : item.active,
|
|
89
94
|
onClick: item.action,
|
|
90
95
|
badge: item.badge,
|
|
96
|
+
text: mobile && textVisibleMenuMobile && item.text,
|
|
97
|
+
variant: mobile && textVisibleMenuMobile && 'M',
|
|
98
|
+
fontWeight: mobile && textVisibleMenuMobile && '700',
|
|
99
|
+
textVisibleMenuMobile: mobile && textVisibleMenuMobile,
|
|
91
100
|
styles: _objectSpread({}, resize() ? {
|
|
92
|
-
width: 'var(--spacing64)',
|
|
101
|
+
width: mobile && textVisibleMenuMobile ? 'var(--spacing112)' : 'var(--spacing64)',
|
|
93
102
|
height: 'var(--spacing64)'
|
|
94
103
|
} : {})
|
|
95
104
|
});
|
|
@@ -98,8 +107,12 @@ var MenuLateralRight = function MenuLateralRight(_ref) {
|
|
|
98
107
|
active: buttonVideo.active ? false : iconSelectDropDown().active,
|
|
99
108
|
onClick: iconSelectDropDown().action,
|
|
100
109
|
badge: iconSelectDropDown().badge,
|
|
110
|
+
text: mobile && textVisibleMenuMobile && iconSelectDropDown().text,
|
|
111
|
+
variant: mobile && textVisibleMenuMobile && 'M',
|
|
112
|
+
fontWeight: mobile && textVisibleMenuMobile && '700',
|
|
113
|
+
textVisibleMenuMobile: mobile && textVisibleMenuMobile,
|
|
101
114
|
styles: _objectSpread({}, resize() ? {
|
|
102
|
-
width: 'var(--spacing64)',
|
|
115
|
+
width: mobile && textVisibleMenuMobile ? 'var(--spacing112)' : 'var(--spacing64)',
|
|
103
116
|
height: 'var(--spacing64)'
|
|
104
117
|
} : {})
|
|
105
118
|
}), !noCollapseUpperSection && /*#__PURE__*/_react.default.createElement(_DropDown.default, {
|
|
@@ -198,14 +211,18 @@ MenuLateralRight.propTypes = {
|
|
|
198
211
|
mobile: _propTypes.default.bool,
|
|
199
212
|
upperSection: _propTypes.default.array,
|
|
200
213
|
underSection: _propTypes.default.array,
|
|
201
|
-
buttonVideo: _propTypes.default.object
|
|
214
|
+
buttonVideo: _propTypes.default.object,
|
|
215
|
+
noCollapseUpperSection: _propTypes.default.bool,
|
|
216
|
+
textVisibleMenuMobile: _propTypes.default.bool
|
|
202
217
|
};
|
|
203
218
|
MenuLateralRight.defaultProps = {
|
|
204
219
|
id: '',
|
|
205
220
|
mobile: false,
|
|
206
221
|
upperSection: [],
|
|
207
222
|
underSection: [],
|
|
208
|
-
buttonVideo: {}
|
|
223
|
+
buttonVideo: {},
|
|
224
|
+
noCollapseUpperSection: false,
|
|
225
|
+
textVisibleMenuMobile: false
|
|
209
226
|
};
|
|
210
227
|
var _default = MenuLateralRight;
|
|
211
228
|
exports.default = _default;
|