@councilbox/councilbox-ui 0.6.30 → 0.6.31
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.
|
@@ -122,7 +122,7 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
122
122
|
backgroundColor: 'var(--primary)'
|
|
123
123
|
},
|
|
124
124
|
elevation: 0
|
|
125
|
-
}, !!requestClose && /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
125
|
+
}, direction !== 'left' && !!requestClose && /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
126
126
|
className: "cbx-DrawerPanel-toolbar"
|
|
127
127
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
128
128
|
edge: "end",
|
|
@@ -134,7 +134,7 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
134
134
|
}))), !!title && /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
135
135
|
variant: "M",
|
|
136
136
|
color: 'white',
|
|
137
|
-
className: 'cbx-DrawerPanel-typography',
|
|
137
|
+
className: "cbx-DrawerPanel-typography ".concat(direction === 'left' ? 'cbx-DrawerPanel-typography-left' : ''),
|
|
138
138
|
fontWeight: 'bold',
|
|
139
139
|
styles: _objectSpread({
|
|
140
140
|
fontSize: '1.125rem'
|
|
@@ -157,7 +157,16 @@ var DrawerPanel = function DrawerPanel(_ref) {
|
|
|
157
157
|
onClick: acceptAction,
|
|
158
158
|
variant: 'secondaryDark',
|
|
159
159
|
endIcon: endIcon
|
|
160
|
-
}, propsButton)))
|
|
160
|
+
}, propsButton))), direction === 'left' && !!requestClose && /*#__PURE__*/_react.default.createElement(_Toolbar.default, {
|
|
161
|
+
className: "cbx-DrawerPanel-toolbar"
|
|
162
|
+
}, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
|
|
163
|
+
edge: "end",
|
|
164
|
+
id: "".concat(id, "-close"),
|
|
165
|
+
className: "cbx-DrawerPanel-iconButton",
|
|
166
|
+
onClick: requestClose
|
|
167
|
+
}, /*#__PURE__*/_react.default.createElement(_Icon.default, {
|
|
168
|
+
className: 'cbx-DrawerPanel-icon ri-close-line'
|
|
169
|
+
})))), /*#__PURE__*/_react.default.createElement(_AppBar.default, {
|
|
161
170
|
sx: {
|
|
162
171
|
position: 'relative',
|
|
163
172
|
flexDirection: 'row',
|