@bolio-ui/core 1.0.2 → 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.
package/README.md CHANGED
@@ -1,16 +1,27 @@
1
1
  <p align="center">
2
2
  <a href="https://github.com/bolio-ui/bolio-ui">
3
- <img src="https://github.com/bolio-ui/bolio-ui/blob/master/public/logo-colored.svg" alt="Bolio UI Logo" width="100" />
3
+ <img src="https://bolio-ui.com/logo-colored.svg" alt="Bolio UI Logo" width="100" />
4
4
  </a>
5
5
  </p>
6
6
 
7
7
  <h1 align="center">Bolio UI 🥷🏼</h1>
8
8
 
9
9
  <p align="center">
10
- <img alt="Bundle Size" src="https://badgen.net/bundlephobia/minzip/@bolio-ui/core"/>
11
- <img alt="MIT License" src="https://img.shields.io/github/license/bolio-ui/bolio-ui"/>
12
- <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@bolio-ui/core.svg?style=flat"/>
13
- <img alt="Github Stars" src="https://badgen.net/github/stars/bolio-ui/bolio-ui" />
10
+ <a href="https://github.com/bolio-ui/bolio-ui/blob/master/LICENSE">
11
+ <img alt="MIT License" src="https://img.shields.io/github/license/bolio-ui/bolio-ui" />
12
+ </a>
13
+ <a href="https://www.npmjs.com/package/@bolio-ui/core">
14
+ <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@bolio-ui/core.svg?style=flat" />
15
+ </a>
16
+ <a href="https://github.com/bolio-ui/bolio-ui/">
17
+ <img alt="Github Stars" src="https://badgen.net/github/stars/bolio-ui/bolio-ui" />
18
+ </a>
19
+ <a href="https://github.com/bolio-ui/bolio-ui/issues">
20
+ <img alt="Issues" src="https://img.shields.io/github/issues/bolio-ui/bolio-ui?color=0088ff" />
21
+ </a>
22
+ <a href="https://github.com/bolio-ui/bolio-ui/pulls">
23
+ <img alt="GitHub pull requests" src="https://img.shields.io/github/issues-pr/bolio-ui/bolio-ui?color=0088ff" />
24
+ </a>
14
25
  </p>
15
26
 
16
27
  <br />
@@ -38,10 +49,11 @@ npm i @bolio-ui/core
38
49
  Go to the root of your application and do this:
39
50
 
40
51
  ```jsx
41
- import { BolioUIProvider } from '@bolio-ui/core'
52
+ import { BolioUIProvider, CssBaseline } from '@bolio-ui/core'
42
53
 
43
54
  const Application = () => (
44
55
  <BolioUIProvider>
56
+ <CssBaseline /> // ---> Normalize styles
45
57
  <AppComponent /> // ---> Your App Component
46
58
  </BolioUIProvider>
47
59
  )
@@ -57,6 +69,12 @@ import { Button } from '@bolio-ui/core'
57
69
  const Component = () => <Button>Click me</Button>
58
70
  ```
59
71
 
72
+ ### Showcases
73
+
74
+ - [Bolio Icons](https://icons.bolio-ui.com/)
75
+ - [Bolio Me](https://me.bolio-ui.com/)
76
+ - [Bolio ChatGPT](https://chatgpt.bolio-ui.com/)
77
+
60
78
  ### Community
61
79
 
62
80
  We're excited to see the community adopt Bolio UI, raise issues, and provide feedback.
@@ -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;