@bolio-ui/core 1.0.6 → 1.0.8
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/Avatar/index.js +38 -37
- package/dist/Badge/index.js +40 -39
- package/dist/BolioUIProvider/index.js +44 -43
- package/dist/Breadcrumbs/index.js +37 -36
- package/dist/Button/index.js +44 -43
- package/dist/ButtonDropdown/index.js +90 -78
- package/dist/ButtonDropdown/styles.d.ts +1 -0
- package/dist/ButtonGroup/index.js +38 -35
- package/dist/Capacity/index.js +33 -32
- package/dist/Card/Card.d.ts +1 -0
- package/dist/Card/index.js +69 -58
- package/dist/Checkbox/index.js +194 -175
- package/dist/Code/index.js +33 -32
- package/dist/Collapse/index.js +33 -32
- package/dist/Container/index.js +29 -29
- package/dist/CssBaseline/index.js +29 -29
- package/dist/Description/index.js +33 -32
- package/dist/Display/index.js +33 -32
- package/dist/Divider/index.js +33 -32
- package/dist/Dot/Dot.d.ts +1 -0
- package/dist/Dot/index.js +43 -40
- package/dist/Drawer/index.js +33 -32
- package/dist/Fieldset/index.js +33 -32
- package/dist/Grid/index.js +33 -32
- package/dist/Image/index.js +33 -32
- package/dist/Input/InputProps.d.ts +1 -0
- package/dist/Input/index.js +83 -72
- package/dist/Input/styles.d.ts +2 -0
- package/dist/Keyboard/index.js +33 -32
- package/dist/Link/index.js +33 -32
- package/dist/Loading/index.js +33 -32
- package/dist/MdxWidgets/index.js +29 -29
- package/dist/Modal/index.js +44 -43
- package/dist/Note/index.js +33 -32
- package/dist/Page/index.js +33 -32
- package/dist/Pagination/index.js +33 -32
- package/dist/Popover/index.js +33 -32
- package/dist/Progress/index.js +33 -32
- package/dist/Radio/index.js +33 -32
- package/dist/Rating/index.js +33 -32
- package/dist/Row/index.js +29 -29
- package/dist/Section/index.js +33 -32
- package/dist/Select/index.js +99 -96
- package/dist/Select/styles.d.ts +5 -4
- package/dist/Slider/index.js +33 -32
- package/dist/Snippet/index.js +33 -32
- package/dist/Spacer/index.js +33 -32
- package/dist/Spinner/index.js +33 -32
- package/dist/Table/index.js +33 -32
- package/dist/Tabs/index.js +36 -35
- package/dist/Tag/index.js +33 -32
- package/dist/Text/index.js +33 -32
- package/dist/Textarea/index.js +68 -57
- package/dist/Themes/index.js +29 -29
- package/dist/Toggle/index.js +40 -39
- package/dist/Tooltip/index.js +33 -32
- package/dist/index.js +333 -277
- package/dist/use-all-themes/index.js +29 -29
- package/dist/use-media-query/index.js +29 -29
- package/dist/use-scale/index.js +33 -32
- package/dist/use-theme/index.js +29 -29
- package/esm/Avatar/Avatar.js +5 -5
- package/esm/Badge/Badge.js +7 -7
- package/esm/Badge/stories.js +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.js +4 -4
- package/esm/Button/Button.js +3 -3
- package/esm/Button/styles.js +8 -8
- package/esm/ButtonDropdown/ButtonDropdown.js +13 -13
- package/esm/ButtonDropdown/ButtonDropdownItem.js +3 -3
- package/esm/ButtonDropdown/Icon.js +1 -1
- package/esm/ButtonDropdown/styles.d.ts +1 -0
- package/esm/ButtonDropdown/styles.js +40 -29
- package/esm/ButtonGroup/ButtonGroup.js +5 -3
- package/esm/Capacity/stories.js +40 -10
- package/esm/Card/Card.d.ts +1 -0
- package/esm/Card/Card.js +8 -7
- package/esm/Card/stories.js +56 -7
- package/esm/Card/styles.js +28 -19
- package/esm/Checkbox/Checkbox.js +6 -6
- package/esm/Checkbox/CheckboxIcon.js +34 -16
- package/esm/Dot/Dot.d.ts +1 -0
- package/esm/Dot/Dot.js +10 -8
- package/esm/Input/Input.js +15 -15
- package/esm/Input/InputProps.d.ts +1 -0
- package/esm/Input/styles.d.ts +2 -0
- package/esm/Input/styles.js +28 -14
- package/esm/Select/Select.js +10 -15
- package/esm/Select/SelectDropdown.js +4 -4
- package/esm/Select/SelectIconClear.js +7 -7
- package/esm/Select/SelectMultipleValue.js +4 -4
- package/esm/Select/SelectOption.js +6 -6
- package/esm/Select/styles.d.ts +5 -4
- package/esm/Select/styles.js +35 -28
- package/esm/Tabs/TabsItem.js +3 -3
- package/esm/Textarea/Textarea.js +7 -11
- package/esm/Themes/Presets/Dark.js +16 -16
- package/esm/Themes/Presets/Default.js +12 -12
- package/esm/Themes/Presets/Shared.js +1 -1
- package/esm/Toggle/Toggle.js +7 -7
- package/esm/use-scale/utils.js +4 -3
- package/examples/create-redwoodjs/.redwood/README.md +44 -0
- package/package.json +19 -19
package/dist/Card/index.js
CHANGED
|
@@ -268,7 +268,7 @@ var defaultLayout = {
|
|
|
268
268
|
pageWidthWithMargin: '930pt',
|
|
269
269
|
breakpointMobile: defaultBreakpoints.xs.max,
|
|
270
270
|
breakpointTablet: defaultBreakpoints.sm.max,
|
|
271
|
-
radius: '
|
|
271
|
+
radius: '10px',
|
|
272
272
|
unit: '16px'
|
|
273
273
|
};
|
|
274
274
|
|
|
@@ -283,32 +283,32 @@ var palette$1 = {
|
|
|
283
283
|
accents_6: '#444',
|
|
284
284
|
accents_7: '#333',
|
|
285
285
|
accents_8: '#111',
|
|
286
|
-
selection: '
|
|
286
|
+
selection: 'rgba(206,228,254, 0.5)',
|
|
287
287
|
code: '#C25FFF',
|
|
288
|
-
border: '#
|
|
288
|
+
border: '#eaeaea',
|
|
289
289
|
primary: '#0072F6',
|
|
290
|
-
primaryLight: '#
|
|
291
|
-
primaryLighter: '#
|
|
290
|
+
primaryLight: '#CEE4FF',
|
|
291
|
+
primaryLighter: '#96C1F3',
|
|
292
292
|
primaryDark: '#00254E',
|
|
293
293
|
secondary: '#7828C9',
|
|
294
|
-
secondaryLighter: '#D1B1F1',
|
|
295
294
|
secondaryLight: '#EADCF9',
|
|
295
|
+
secondaryLighter: '#D1B1F1',
|
|
296
296
|
secondaryDark: '#290E45',
|
|
297
297
|
error: '#F31261',
|
|
298
|
-
errorLight: '#
|
|
299
|
-
errorLighter: '#
|
|
298
|
+
errorLight: '#FDD8E6',
|
|
299
|
+
errorLighter: '#FAA8C6',
|
|
300
300
|
errorDark: '#4E041F',
|
|
301
301
|
success: '#17C965',
|
|
302
|
-
successLight: '#
|
|
303
|
-
successLighter: '#
|
|
302
|
+
successLight: '#DAFBE9',
|
|
303
|
+
successLighter: '#ADF5CD',
|
|
304
304
|
successDark: '#06371C',
|
|
305
305
|
warning: '#F5A525',
|
|
306
|
-
warningLight: '#
|
|
307
|
-
warningLighter: '#
|
|
306
|
+
warningLight: '#FDEFD9',
|
|
307
|
+
warningLighter: '#FBDBA8',
|
|
308
308
|
warningDark: '#4E3105',
|
|
309
309
|
info: '#06B7DC',
|
|
310
|
-
infoLighter: '#A5EEFE',
|
|
311
310
|
infoLight: '#D7F8FF',
|
|
311
|
+
infoLighter: '#A5EEFE',
|
|
312
312
|
infoDark: '#053B49',
|
|
313
313
|
purple: '#f81ce5',
|
|
314
314
|
alert: '#ff0080',
|
|
@@ -350,37 +350,37 @@ var palette = {
|
|
|
350
350
|
accents_6: '#999',
|
|
351
351
|
accents_7: '#eaeaea',
|
|
352
352
|
accents_8: '#fafafa',
|
|
353
|
-
selection: '
|
|
353
|
+
selection: 'rgba(248,28,229, 0.5)',
|
|
354
354
|
code: '#C25FFF',
|
|
355
|
-
border: '#
|
|
355
|
+
border: '#333',
|
|
356
356
|
primary: '#0072F6',
|
|
357
|
-
primaryLight: '#
|
|
358
|
-
primaryLighter: '#
|
|
357
|
+
primaryLight: '#CEE4FF',
|
|
358
|
+
primaryLighter: '#96C1F3',
|
|
359
359
|
primaryDark: '#00254E',
|
|
360
360
|
secondary: '#7828C9',
|
|
361
|
-
secondaryLighter: '#D1B1F1',
|
|
362
361
|
secondaryLight: '#EADCF9',
|
|
362
|
+
secondaryLighter: '#D1B1F1',
|
|
363
363
|
secondaryDark: '#290E45',
|
|
364
364
|
error: '#F31261',
|
|
365
|
-
errorLight: '#
|
|
366
|
-
errorLighter: '#
|
|
365
|
+
errorLight: '#FDD8E6',
|
|
366
|
+
errorLighter: '#FAA8C6',
|
|
367
367
|
errorDark: '#4E041F',
|
|
368
368
|
success: '#17C965',
|
|
369
|
-
successLight: '#
|
|
370
|
-
successLighter: '#
|
|
369
|
+
successLight: '#DAFBE9',
|
|
370
|
+
successLighter: '#ADF5CD',
|
|
371
371
|
successDark: '#06371C',
|
|
372
372
|
warning: '#F5A525',
|
|
373
|
-
warningLight: '#
|
|
374
|
-
warningLighter: '#
|
|
373
|
+
warningLight: '#FDEFD9',
|
|
374
|
+
warningLighter: '#FBDBA8',
|
|
375
375
|
warningDark: '#4E3105',
|
|
376
376
|
info: '#06B7DC',
|
|
377
|
-
infoLighter: '#A5EEFE',
|
|
378
377
|
infoLight: '#D7F8FF',
|
|
378
|
+
infoLighter: '#A5EEFE',
|
|
379
379
|
infoDark: '#053B49',
|
|
380
380
|
purple: '#f81ce5',
|
|
381
381
|
alert: '#ff0080',
|
|
382
382
|
link: '#3291ff',
|
|
383
|
-
pre: '#
|
|
383
|
+
pre: '#111'
|
|
384
384
|
};
|
|
385
385
|
var expressiveness = {
|
|
386
386
|
linkStyle: 'none',
|
|
@@ -388,9 +388,9 @@ var expressiveness = {
|
|
|
388
388
|
dropdownBoxShadow: '0 0 0 1px #333',
|
|
389
389
|
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
390
390
|
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
391
|
-
shadowSmall: '0
|
|
392
|
-
shadowMedium: '0
|
|
393
|
-
shadowLarge: '0
|
|
391
|
+
shadowSmall: '0 5px 10px rgba(255, 255, 255, 0.12)',
|
|
392
|
+
shadowMedium: '0 8px 30px rgba(255, 255, 255, 0.12)',
|
|
393
|
+
shadowLarge: '0 30px 60px rgba(255, 255, 255, 0.12)',
|
|
394
394
|
portalOpacity: 0.75
|
|
395
395
|
};
|
|
396
396
|
var font = defaultFont;
|
|
@@ -504,39 +504,48 @@ var getStyles = function getStyles(type, palette, isShadow) {
|
|
|
504
504
|
var colors = {
|
|
505
505
|
"default": {
|
|
506
506
|
color: palette.foreground,
|
|
507
|
-
bgColor: palette.
|
|
508
|
-
|
|
509
|
-
dark: {
|
|
510
|
-
color: palette.background,
|
|
511
|
-
bgColor: palette.foreground
|
|
507
|
+
bgColor: palette.accents_1,
|
|
508
|
+
borderColor: palette.accents_2
|
|
512
509
|
},
|
|
513
510
|
primary: {
|
|
514
|
-
color: palette.
|
|
515
|
-
bgColor: palette.
|
|
511
|
+
color: palette.primaryDark,
|
|
512
|
+
bgColor: palette.primaryLighter,
|
|
513
|
+
borderColor: palette.primaryDark
|
|
516
514
|
},
|
|
517
515
|
secondary: {
|
|
518
|
-
color: palette.
|
|
519
|
-
bgColor: palette.
|
|
516
|
+
color: palette.secondaryDark,
|
|
517
|
+
bgColor: palette.secondaryLighter,
|
|
518
|
+
borderColor: palette.secondaryDark
|
|
520
519
|
},
|
|
521
520
|
success: {
|
|
522
|
-
color: palette.
|
|
523
|
-
bgColor: palette.
|
|
521
|
+
color: palette.successDark,
|
|
522
|
+
bgColor: palette.successLighter,
|
|
523
|
+
borderColor: palette.successDark
|
|
524
524
|
},
|
|
525
525
|
warning: {
|
|
526
|
-
color: palette.
|
|
527
|
-
bgColor: palette.
|
|
526
|
+
color: palette.warningDark,
|
|
527
|
+
bgColor: palette.warningLighter,
|
|
528
|
+
borderColor: palette.warningDark
|
|
528
529
|
},
|
|
529
530
|
error: {
|
|
531
|
+
color: palette.errorDark,
|
|
532
|
+
bgColor: palette.errorLighter,
|
|
533
|
+
borderColor: palette.errorDark
|
|
534
|
+
},
|
|
535
|
+
info: {
|
|
536
|
+
color: palette.infoDark,
|
|
537
|
+
bgColor: palette.infoLighter,
|
|
538
|
+
borderColor: palette.infoDark
|
|
539
|
+
},
|
|
540
|
+
dark: {
|
|
530
541
|
color: palette.background,
|
|
531
|
-
bgColor: palette.
|
|
542
|
+
bgColor: palette.foreground,
|
|
543
|
+
borderColor: palette.foreground
|
|
532
544
|
},
|
|
533
545
|
lite: {
|
|
534
546
|
color: palette.foreground,
|
|
535
|
-
bgColor: palette.background
|
|
536
|
-
|
|
537
|
-
info: {
|
|
538
|
-
color: palette.background,
|
|
539
|
-
bgColor: palette.info
|
|
547
|
+
bgColor: palette.background,
|
|
548
|
+
borderColor: palette.foreground
|
|
540
549
|
}
|
|
541
550
|
};
|
|
542
551
|
var showBorder = type === 'default' && !isShadow;
|
|
@@ -647,9 +656,10 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
|
|
|
647
656
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
648
657
|
var key = _step2.value;
|
|
649
658
|
var value = props[key];
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
659
|
+
|
|
660
|
+
if (typeof value !== 'undefined') {
|
|
661
|
+
scaleProps[key] = value;
|
|
662
|
+
}
|
|
653
663
|
}
|
|
654
664
|
} catch (err) {
|
|
655
665
|
_iterator2.e(err);
|
|
@@ -1210,10 +1220,11 @@ var ImageBrowser$1 = ImageBrowser;
|
|
|
1210
1220
|
|
|
1211
1221
|
Image$1.Browser = ImageBrowser$1;
|
|
1212
1222
|
|
|
1213
|
-
var _excluded = ["children", "hoverable", "rounded", "className", "shadow", "type"];
|
|
1223
|
+
var _excluded = ["children", "hoverable", "rounded", "bordered", "className", "shadow", "type"];
|
|
1214
1224
|
var defaultProps = {
|
|
1215
1225
|
type: 'default',
|
|
1216
1226
|
hoverable: false,
|
|
1227
|
+
bordered: false,
|
|
1217
1228
|
shadow: false,
|
|
1218
1229
|
className: ''
|
|
1219
1230
|
};
|
|
@@ -1222,8 +1233,8 @@ function CardComponent(_ref) {
|
|
|
1222
1233
|
var children = _ref.children,
|
|
1223
1234
|
hoverable = _ref.hoverable,
|
|
1224
1235
|
rounded = _ref.rounded,
|
|
1225
|
-
|
|
1226
|
-
className = _ref
|
|
1236
|
+
bordered = _ref.bordered,
|
|
1237
|
+
className = _ref.className,
|
|
1227
1238
|
shadow = _ref.shadow,
|
|
1228
1239
|
_ref$type = _ref.type,
|
|
1229
1240
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
@@ -1258,11 +1269,11 @@ function CardComponent(_ref) {
|
|
|
1258
1269
|
|
|
1259
1270
|
var hasContent = hasChild(withoutImageChildren, CardContent$1);
|
|
1260
1271
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
1261
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1272
|
+
className: styledJsx_cjs.style.dynamic([["3321159247", [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, bordered ? '1px solid' + borderColor : 'none', 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) || "")
|
|
1262
1273
|
}), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, null, withoutImageChildren), footerChildren, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1263
|
-
id: "
|
|
1264
|
-
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]
|
|
1265
|
-
}, ".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;}")));
|
|
1274
|
+
id: "3321159247",
|
|
1275
|
+
dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, bordered ? '1px solid' + borderColor : 'none', 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]
|
|
1276
|
+
}, ".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:").concat(bordered ? '1px solid' + borderColor : '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
1277
|
}
|
|
1267
1278
|
|
|
1268
1279
|
CardComponent.defaultProps = defaultProps;
|