@councilbox/councilbox-ui 0.4.17 → 0.4.18

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.
@@ -16,7 +16,7 @@ a.noStyles:hover{
16
16
  `}</style>
17
17
 
18
18
 
19
- # Librería de componentes ui-councilbox v0.4.17
19
+ # Librería de componentes ui-councilbox v0.4.18
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -21,13 +21,14 @@ a.noStyles:hover{
21
21
 
22
22
  # Changelog ui-councilbox
23
23
  <div class="hide">
24
- <h2>v0.4.17</h2>
25
- <div>Fix margin title del componente Modal</div>
26
- <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-83'>DS-83</a></div>
27
- <div>Añadida prop en DrawerPanel</div>
24
+ <h2>v0.4.18</h2>
25
+ <div>Fix tamaños del modal con el Scrollbar</div>
28
26
 
29
27
  descargar las fuentes y probarlas, no usar @import, meterlas en css descargadas
30
28
  </div>
29
+ <h2>v0.4.18</h2>
30
+ <div>Fix tamaños del modal con el Scrollbar</div>
31
+
31
32
  <h2>v0.4.17</h2>
32
33
  <div>Fix margin title del componente Modal</div>
33
34
  <div><a target="_blank" href='https://councilbox.atlassian.net/browse/DS-83'>DS-83</a></div>
@@ -19,7 +19,7 @@ var _ButtonBasic = _interopRequireDefault(require("../ButtonBasic/ButtonBasic"))
19
19
 
20
20
  var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
21
21
 
22
- var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons"];
22
+ var _excluded = ["title", "fullWidth", "id", "fullScreen", "buttonAccept", "buttonCancel", "open", "requestClose", "loadingAction", "acceptAction", "cancelAction", "body", "bodyText", "hideAccept", "extraActions", "classNameDialog", "PaperProps", "widthModal", "actions", "sx", "buttonCancelProps", "buttonAcceptProps", "breakpointsButtons", "hasScrollbar", "scrollbarHeight"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
25
 
@@ -60,6 +60,8 @@ var Modal = function Modal(_ref) {
60
60
  buttonCancelProps = _ref.buttonCancelProps,
61
61
  buttonAcceptProps = _ref.buttonAcceptProps,
62
62
  breakpointsButtons = _ref.breakpointsButtons,
63
+ hasScrollbar = _ref.hasScrollbar,
64
+ scrollbarHeight = _ref.scrollbarHeight,
63
65
  props = _objectWithoutProperties(_ref, _excluded);
64
66
 
65
67
  var _useCouncilboxTheme = (0, _CouncilboxThemeContext.useCouncilboxTheme)(),
@@ -92,18 +94,20 @@ var Modal = function Modal(_ref) {
92
94
 
93
95
  return /*#__PURE__*/_react.default.createElement(_material.Dialog, _extends({
94
96
  className: classNameDialog,
95
- fullWidth: size === 'sm' || fullWidth,
97
+ fullWidth: size === 'sm' || size === 'xs' || fullWidth,
96
98
  fullScreen: fullScreen,
97
- maxWidth: false,
98
99
  id: id,
99
100
  open: open || false,
100
101
  onClose: requestClose,
101
102
  PaperProps: {
102
- style: _objectSpread(_objectSpread(_objectSpread({
103
+ style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({
103
104
  filter: 'drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25))',
104
105
  boxShadow: 'none',
105
106
  maxWidth: '37.5rem'
106
- }, widthModal), PaperProps ? PaperProps.style : {}), size === 'sm' ? {
107
+ }, hasScrollbar ? {
108
+ width: '100%',
109
+ height: scrollbarHeight || '100%'
110
+ } : {}), widthModal), PaperProps ? PaperProps.style : {}), size === 'sm' || size === 'xs' ? {
107
111
  margin: 0
108
112
  } : {})
109
113
  },
@@ -138,7 +142,8 @@ var Modal = function Modal(_ref) {
138
142
  }
139
143
  }, title)), /*#__PURE__*/_react.default.createElement(_material.DialogContent, {
140
144
  sx: {
141
- maxWidth: size === 'sm' ? '100%' : '37.5rem',
145
+ minWidth: size === 'sm' || size === 'xs' ? '100%' : '25rem',
146
+ maxWidth: size === 'sm' || size === 'xs' ? '100%' : '37.5rem',
142
147
  padding: '0 2rem',
143
148
  overflow: 'hidden'
144
149
  }
@@ -54,6 +54,10 @@ exports.Default = Default;
54
54
  Default.args = {
55
55
  title: 'Titulo',
56
56
  body: /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.")),
57
+ // fullScreen: true,
58
+ // hasScrollbar: true,
59
+ // scrollbarHeight: '300px',
60
+ fullWidth: true,
57
61
  open: true,
58
62
  buttonCancel: 'Cancelar',
59
63
  requestClose: function requestClose() {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",