@councilbox/councilbox-ui 0.6.13 → 0.6.15
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 +3 -0
- package/dist/components/Block/Block.css +2 -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/InputAutocomplete/InputAutocomplete.js +1 -1
- package/package.json +1 -1
|
@@ -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',
|