@bolio-ui/core 1.0.3 → 1.0.4

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.
@@ -1212,17 +1212,20 @@ var ImageBrowser$1 = ImageBrowser;
1212
1212
  Image$1.Browser = ImageBrowser$1;
1213
1213
 
1214
1214
  var _excluded = ["children", "hoverable", "rounded", "className", "shadow", "type"];
1215
+ var defaultProps = {
1216
+ type: 'default',
1217
+ hoverable: false,
1218
+ shadow: false,
1219
+ className: ''
1220
+ };
1215
1221
 
1216
1222
  function CardComponent(_ref) {
1217
1223
  var children = _ref.children,
1218
- _ref$hoverable = _ref.hoverable,
1219
- hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
1220
- _ref$rounded = _ref.rounded,
1221
- rounded = _ref$rounded === void 0 ? false : _ref$rounded,
1224
+ hoverable = _ref.hoverable,
1225
+ rounded = _ref.rounded,
1222
1226
  _ref$className = _ref.className,
1223
1227
  className = _ref$className === void 0 ? '' : _ref$className,
1224
- _ref$shadow = _ref.shadow,
1225
- shadow = _ref$shadow === void 0 ? false : _ref$shadow,
1228
+ shadow = _ref.shadow,
1226
1229
  _ref$type = _ref.type,
1227
1230
  type = _ref$type === void 0 ? 'default' : _ref$type,
1228
1231
  props = _objectWithoutProperties(_ref, _excluded);
@@ -1241,8 +1244,8 @@ function CardComponent(_ref) {
1241
1244
  return getStyles(type, theme.palette, shadow);
1242
1245
  }, [type, theme.palette, shadow]),
1243
1246
  color = _useMemo.color,
1244
- bgColor = _useMemo.bgColor;
1245
- _useMemo.borderColor;
1247
+ bgColor = _useMemo.bgColor,
1248
+ borderColor = _useMemo.borderColor;
1246
1249
 
1247
1250
  var _pickChild = pickChild(children, CardFooter$1),
1248
1251
  _pickChild2 = _slicedToArray(_pickChild, 2),
@@ -1256,15 +1259,14 @@ function CardComponent(_ref) {
1256
1259
 
1257
1260
  var hasContent = hasChild(withoutImageChildren, CardContent$1);
1258
1261
  return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
1259
- className: styledJsx_cjs.style.dynamic([["470877697", [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses$1('card', className) || "")
1260
- }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, {
1261
- className: "card"
1262
- }, withoutImageChildren), footerChildren, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1263
- id: "470877697",
1264
- dynamic: [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
1265
- }, ".card.__jsx-style-dynamic-selector{-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:".concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
1262
+ className: styledJsx_cjs.style.dynamic([["1209748169", [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses$1('card', className) || "")
1263
+ }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, null, withoutImageChildren), footerChildren, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
1264
+ id: "1209748169",
1265
+ dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
1266
+ }, ".card.__jsx-style-dynamic-selector{background:".concat(theme.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:none;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
1266
1267
  }
1267
1268
 
1269
+ CardComponent.defaultProps = defaultProps;
1268
1270
  CardComponent.displayName = 'BolioUICard';
1269
1271
  var Card = withScale$1(CardComponent);
1270
1272
  var Card$1 = Card;
package/dist/index.js CHANGED
@@ -1317,7 +1317,7 @@ var usePortal = function usePortal() {
1317
1317
  var usePortal$1 = usePortal;
1318
1318
 
1319
1319
  var _excluded$1g = ["children", "className", "visible", "enterTime", "leaveTime", "clearTime", "name"];
1320
- var defaultProps$e = {
1320
+ var defaultProps$f = {
1321
1321
  visible: false,
1322
1322
  enterTime: 60,
1323
1323
  leaveTime: 60,
@@ -1380,10 +1380,10 @@ function CssTransition(_ref) {
1380
1380
  }));
1381
1381
  }
1382
1382
 
1383
- CssTransition.defaultProps = defaultProps$e;
1383
+ CssTransition.defaultProps = defaultProps$f;
1384
1384
  CssTransition.displayName = 'BolioUICssTransition';
1385
1385
 
1386
- var defaultProps$d = {
1386
+ var defaultProps$e = {
1387
1387
  x: 0,
1388
1388
  y: 0
1389
1389
  };
@@ -1435,7 +1435,7 @@ var ButtonDrip = function ButtonDrip(_ref) {
1435
1435
  }, ".drip.jsx-3424889537{position:absolute;left:0;right:0;top:0;bottom:0;}svg.jsx-3424889537{position:absolute;-webkit-animation:350ms ease-in expand-jsx-3424889537;animation:350ms ease-in expand-jsx-3424889537;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;width:1rem;height:1rem;}@-webkit-keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}@keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}"));
1436
1436
  };
1437
1437
 
1438
- ButtonDrip.defaultProps = defaultProps$d;
1438
+ ButtonDrip.defaultProps = defaultProps$e;
1439
1439
  ButtonDrip.displayName = 'BolioUItButtonDrip';
1440
1440
  var ButtonDrip$1 = ButtonDrip;
1441
1441
 
@@ -1858,7 +1858,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
1858
1858
  };
1859
1859
 
1860
1860
  var _excluded$1d = ["children", "disabled", "type", "loading", "shadow", "ghost", "rounded", "effect", "onClick", "auto", "icon", "htmlType", "iconRight", "className"];
1861
- var defaultProps$c = {
1861
+ var defaultProps$d = {
1862
1862
  type: 'default',
1863
1863
  htmlType: 'button',
1864
1864
  ghost: false,
@@ -1986,7 +1986,7 @@ var ButtonComponent = /*#__PURE__*/React__default["default"].forwardRef(function
1986
1986
  dynamic: [rounded ? '25px' : theme.layout.radius, SCALES.font(0.875), color, bg, border, cursor, events, shadow ? '0 4px 10px 0' + bg : 'none', SCALES.pl(0.75), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events]
1987
1987
  }, ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:inline-block;border-radius:".concat(rounded ? '25px' : theme.layout.radius, ";font-weight:500;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? '0 4px 10px 0' + bg : 'none', ";--bolio-ui-button-icon-padding:").concat(SCALES.pl(0.75), ";--bolio-ui-button-height:").concat(SCALES.height(2.5), ";--bolio-ui-button-color:").concat(color, ";--bolio-ui-button-bg:").concat(bg, ";min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";width:").concat(auto ? 'auto' : 'initial', ";height:").concat(SCALES.height(2.5), ";padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.btn.__jsx-style-dynamic-selector:hover,.btn.__jsx-style-dynamic-selector:focus{color:").concat(hover.color, ";--bolio-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";}.btn.__jsx-style-dynamic-selector:active{-webkit-transform:scale(0.98,0.98);-ms-transform:scale(0.98,0.98);transform:scale(0.98,0.98);}.btn.__jsx-style-dynamic-selector .text{position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;line-height:inherit;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}")));
1988
1988
  });
1989
- ButtonComponent.defaultProps = defaultProps$c;
1989
+ ButtonComponent.defaultProps = defaultProps$d;
1990
1990
  ButtonComponent.displayName = 'BolioUIButton';
1991
1991
  var Button = withScale$1(ButtonComponent);
1992
1992
  var Button$1 = Button;
@@ -2718,7 +2718,7 @@ var ButtonDropdown$1 = ButtonDropdown;
2718
2718
  ButtonDropdown$1.Item = ButtonDropdownItem;
2719
2719
 
2720
2720
  var _excluded$18 = ["disabled", "type", "ghost", "vertical", "children", "className"];
2721
- var defaultProps$b = {
2721
+ var defaultProps$c = {
2722
2722
  disabled: false,
2723
2723
  vertical: false,
2724
2724
  ghost: false,
@@ -2780,7 +2780,7 @@ function ButtonGroupComponent(groupProps) {
2780
2780
  }, ".btn-group.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;border-radius:".concat(theme.layout.radius, ";border:1px solid ").concat(border, ";background-color:transparent;overflow:hidden;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'min-content'), ";margin:").concat(SCALES.mt(0.313), " ").concat(SCALES.mr(0.313), " ").concat(SCALES.mb(0.313), " ").concat(SCALES.ml(0.313), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.vertical.__jsx-style-dynamic-selector{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.btn-group.__jsx-style-dynamic-selector .btn{border:none;}.btn-group.__jsx-style-dynamic-selector .btn .text{top:0;}.horizontal.__jsx-style-dynamic-selector .btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid ").concat(border, ";}.horizontal.__jsx-style-dynamic-selector .btn:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0;}.vertical.__jsx-style-dynamic-selector .btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid ").concat(border, ";}.vertical.__jsx-style-dynamic-selector .btn:not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0;}"))));
2781
2781
  }
2782
2782
 
2783
- ButtonGroupComponent.defaultProps = defaultProps$b;
2783
+ ButtonGroupComponent.defaultProps = defaultProps$c;
2784
2784
  ButtonGroupComponent.displayName = 'BolioUIButtonGroup';
2785
2785
  var ButtonGroup = withScale$1(ButtonGroupComponent);
2786
2786
  var ButtonGroup$1 = ButtonGroup;
@@ -3187,17 +3187,20 @@ var ImageBrowser$1 = ImageBrowser;
3187
3187
  Image$1.Browser = ImageBrowser$1;
3188
3188
 
3189
3189
  var _excluded$11 = ["children", "hoverable", "rounded", "className", "shadow", "type"];
3190
+ var defaultProps$b = {
3191
+ type: 'default',
3192
+ hoverable: false,
3193
+ shadow: false,
3194
+ className: ''
3195
+ };
3190
3196
 
3191
3197
  function CardComponent(_ref) {
3192
3198
  var children = _ref.children,
3193
- _ref$hoverable = _ref.hoverable,
3194
- hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
3195
- _ref$rounded = _ref.rounded,
3196
- rounded = _ref$rounded === void 0 ? false : _ref$rounded,
3199
+ hoverable = _ref.hoverable,
3200
+ rounded = _ref.rounded,
3197
3201
  _ref$className = _ref.className,
3198
3202
  className = _ref$className === void 0 ? '' : _ref$className,
3199
- _ref$shadow = _ref.shadow,
3200
- shadow = _ref$shadow === void 0 ? false : _ref$shadow,
3203
+ shadow = _ref.shadow,
3201
3204
  _ref$type = _ref.type,
3202
3205
  type = _ref$type === void 0 ? 'default' : _ref$type,
3203
3206
  props = _objectWithoutProperties(_ref, _excluded$11);
@@ -3216,8 +3219,8 @@ function CardComponent(_ref) {
3216
3219
  return getStyles$1(type, theme.palette, shadow);
3217
3220
  }, [type, theme.palette, shadow]),
3218
3221
  color = _useMemo.color,
3219
- bgColor = _useMemo.bgColor;
3220
- _useMemo.borderColor;
3222
+ bgColor = _useMemo.bgColor,
3223
+ borderColor = _useMemo.borderColor;
3221
3224
 
3222
3225
  var _pickChild = pickChild(children, CardFooter$1),
3223
3226
  _pickChild2 = _slicedToArray(_pickChild, 2),
@@ -3231,15 +3234,14 @@ function CardComponent(_ref) {
3231
3234
 
3232
3235
  var hasContent = hasChild(withoutImageChildren, CardContent$1);
3233
3236
  return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
3234
- className: styledJsx_cjs.style.dynamic([["470877697", [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses$1('card', className) || "")
3235
- }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, {
3236
- className: "card"
3237
- }, withoutImageChildren), footerChildren, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
3238
- id: "470877697",
3239
- dynamic: [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
3240
- }, ".card.__jsx-style-dynamic-selector{-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:".concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
3237
+ className: styledJsx_cjs.style.dynamic([["1209748169", [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses$1('card', className) || "")
3238
+ }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, null, withoutImageChildren), footerChildren, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
3239
+ id: "1209748169",
3240
+ dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
3241
+ }, ".card.__jsx-style-dynamic-selector{background:".concat(theme.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:none;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
3241
3242
  }
3242
3243
 
3244
+ CardComponent.defaultProps = defaultProps$b;
3243
3245
  CardComponent.displayName = 'BolioUICard';
3244
3246
  var Card = withScale$1(CardComponent);
3245
3247
  var Card$1 = Card;
package/esm/card/card.js CHANGED
@@ -12,17 +12,20 @@ import Image from '../image';
12
12
  import { hasChild, pickChild } from '../utils/collections';
13
13
  import useScale, { withScale } from '../use-scale';
14
14
  import useClasses from '../use-classes';
15
+ var defaultProps = {
16
+ type: 'default',
17
+ hoverable: false,
18
+ shadow: false,
19
+ className: ''
20
+ };
15
21
 
16
22
  function CardComponent(_ref) {
17
23
  var children = _ref.children,
18
- _ref$hoverable = _ref.hoverable,
19
- hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
20
- _ref$rounded = _ref.rounded,
21
- rounded = _ref$rounded === void 0 ? false : _ref$rounded,
24
+ hoverable = _ref.hoverable,
25
+ rounded = _ref.rounded,
22
26
  _ref$className = _ref.className,
23
27
  className = _ref$className === void 0 ? '' : _ref$className,
24
- _ref$shadow = _ref.shadow,
25
- shadow = _ref$shadow === void 0 ? false : _ref$shadow,
28
+ shadow = _ref.shadow,
26
29
  _ref$type = _ref.type,
27
30
  type = _ref$type === void 0 ? 'default' : _ref$type,
28
31
  props = _objectWithoutProperties(_ref, _excluded);
@@ -56,15 +59,14 @@ function CardComponent(_ref) {
56
59
 
57
60
  var hasContent = hasChild(withoutImageChildren, CardContent);
58
61
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
59
- className: _JSXStyle.dynamic([["470877697", [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses('card', className) || "")
60
- }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React.createElement(CardContent, {
61
- className: "card"
62
- }, withoutImageChildren), footerChildren, /*#__PURE__*/React.createElement(_JSXStyle, {
63
- id: "470877697",
64
- dynamic: [rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
65
- }, ".card.__jsx-style-dynamic-selector{-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:".concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
62
+ className: _JSXStyle.dynamic([["1209748169", [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses('card', className) || "")
63
+ }), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React.createElement(CardContent, null, withoutImageChildren), footerChildren, /*#__PURE__*/React.createElement(_JSXStyle, {
64
+ id: "1209748169",
65
+ dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
66
+ }, ".card.__jsx-style-dynamic-selector{background:".concat(theme.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:none;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
66
67
  }
67
68
 
69
+ CardComponent.defaultProps = defaultProps;
68
70
  CardComponent.displayName = 'BolioUICard';
69
71
  var Card = withScale(CardComponent);
70
72
  export default Card;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bolio-ui/core",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
5
  "description": "Amazing, modern and creative tools for React UI. 🥷🏼",
6
6
  "homepage": "https://bolio-ui.com/",