@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 +24 -6
- package/dist/card/index.js +17 -15
- package/dist/index.js +502 -216
- package/dist/table/index.js +1139 -0
- package/esm/card/card.js +15 -13
- package/esm/index.js +1 -0
- package/esm/table/index.js +2 -0
- package/esm/table/stories.js +269 -0
- package/esm/table/table-body.js +54 -0
- package/esm/table/table-cell.js +28 -0
- package/esm/table/table-column.js +41 -0
- package/esm/table/table-context.js +9 -0
- package/esm/table/table-head.js +58 -0
- package/esm/table/table-types.js +1 -0
- package/esm/table/table.js +115 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -517,11 +517,11 @@ var useTheme$1 = function useTheme() {
|
|
|
517
517
|
|
|
518
518
|
var useTheme = useTheme$1;
|
|
519
519
|
|
|
520
|
-
var _excluded$
|
|
520
|
+
var _excluded$1k = ["opacity"];
|
|
521
521
|
var AvatarSkeleton = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
522
522
|
var _ref$opacity = _ref.opacity,
|
|
523
523
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
524
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
524
|
+
props = _objectWithoutProperties(_ref, _excluded$1k);
|
|
525
525
|
|
|
526
526
|
var theme = useTheme();
|
|
527
527
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
@@ -540,7 +540,7 @@ var defaultDynamicLayoutPipe = function defaultDynamicLayoutPipe(scale1x) {
|
|
|
540
540
|
return "".concat(scale1x);
|
|
541
541
|
};
|
|
542
542
|
|
|
543
|
-
var defaultContext$
|
|
543
|
+
var defaultContext$c = {
|
|
544
544
|
getScaleProps: function getScaleProps() {
|
|
545
545
|
return undefined;
|
|
546
546
|
},
|
|
@@ -566,7 +566,7 @@ var defaultContext$b = {
|
|
|
566
566
|
},
|
|
567
567
|
unit: '16px'
|
|
568
568
|
};
|
|
569
|
-
var ScaleContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
569
|
+
var ScaleContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$c);
|
|
570
570
|
var useScale$1 = function useScale() {
|
|
571
571
|
return React__default["default"].useContext(ScaleContext);
|
|
572
572
|
};
|
|
@@ -738,7 +738,7 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
|
|
|
738
738
|
return getAllScaleProps;
|
|
739
739
|
};
|
|
740
740
|
|
|
741
|
-
var _excluded$
|
|
741
|
+
var _excluded$1j = ["children"],
|
|
742
742
|
_excluded2 = ["paddingLeft", "pl", "paddingRight", "pr", "paddingTop", "pt", "paddingBottom", "pb", "marginTop", "mt", "marginRight", "mr", "marginBottom", "mb", "marginLeft", "ml", "px", "py", "mx", "my", "width", "height", "font", "w", "h", "margin", "padding", "unit", "scale"];
|
|
743
743
|
|
|
744
744
|
var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
@@ -753,7 +753,7 @@ var withScale = function withScale(Render) {
|
|
|
753
753
|
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32, _ref33;
|
|
754
754
|
|
|
755
755
|
var children = _ref.children,
|
|
756
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
756
|
+
props = _objectWithoutProperties(_ref, _excluded$1j);
|
|
757
757
|
|
|
758
758
|
var _useTheme = useTheme(),
|
|
759
759
|
layout = _useTheme.layout;
|
|
@@ -898,7 +898,7 @@ var transformDataSource$1 = function transformDataSource(src) {
|
|
|
898
898
|
return src;
|
|
899
899
|
};
|
|
900
900
|
|
|
901
|
-
var _excluded$
|
|
901
|
+
var _excluded$1i = ["src", "stacked", "text", "isSquare", "className"];
|
|
902
902
|
|
|
903
903
|
var safeText = function safeText(text) {
|
|
904
904
|
if (text.length <= 4) return text;
|
|
@@ -915,7 +915,7 @@ function AvatarComponent(_ref) {
|
|
|
915
915
|
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
916
916
|
_ref$className = _ref.className,
|
|
917
917
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
918
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
918
|
+
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
919
919
|
|
|
920
920
|
var theme = useTheme();
|
|
921
921
|
|
|
@@ -1022,7 +1022,7 @@ var AvatarGroup$1 = AvatarGroup;
|
|
|
1022
1022
|
|
|
1023
1023
|
Avatar$1.Group = AvatarGroup$1;
|
|
1024
1024
|
|
|
1025
|
-
var _excluded$
|
|
1025
|
+
var _excluded$1h = ["type", "className", "children", "dot"];
|
|
1026
1026
|
|
|
1027
1027
|
var getBgColor = function getBgColor(type, palette) {
|
|
1028
1028
|
var colors = {
|
|
@@ -1045,7 +1045,7 @@ function BadgeComponent(_ref) {
|
|
|
1045
1045
|
children = _ref.children,
|
|
1046
1046
|
_ref$dot = _ref.dot,
|
|
1047
1047
|
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
1048
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1048
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
1049
1049
|
|
|
1050
1050
|
var theme = useTheme();
|
|
1051
1051
|
|
|
@@ -1316,8 +1316,8 @@ var usePortal = function usePortal() {
|
|
|
1316
1316
|
|
|
1317
1317
|
var usePortal$1 = usePortal;
|
|
1318
1318
|
|
|
1319
|
-
var _excluded$
|
|
1320
|
-
var defaultProps$
|
|
1319
|
+
var _excluded$1g = ["children", "className", "visible", "enterTime", "leaveTime", "clearTime", "name"];
|
|
1320
|
+
var defaultProps$f = {
|
|
1321
1321
|
visible: false,
|
|
1322
1322
|
enterTime: 60,
|
|
1323
1323
|
leaveTime: 60,
|
|
@@ -1334,7 +1334,7 @@ function CssTransition(_ref) {
|
|
|
1334
1334
|
leaveTime = _ref.leaveTime,
|
|
1335
1335
|
clearTime = _ref.clearTime,
|
|
1336
1336
|
name = _ref.name,
|
|
1337
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1337
|
+
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
1338
1338
|
|
|
1339
1339
|
var _useState = React.useState(''),
|
|
1340
1340
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1380,10 +1380,10 @@ function CssTransition(_ref) {
|
|
|
1380
1380
|
}));
|
|
1381
1381
|
}
|
|
1382
1382
|
|
|
1383
|
-
CssTransition.defaultProps = defaultProps$
|
|
1383
|
+
CssTransition.defaultProps = defaultProps$f;
|
|
1384
1384
|
CssTransition.displayName = 'BolioUICssTransition';
|
|
1385
1385
|
|
|
1386
|
-
var defaultProps$
|
|
1386
|
+
var defaultProps$e = {
|
|
1387
1387
|
x: 0,
|
|
1388
1388
|
y: 0
|
|
1389
1389
|
};
|
|
@@ -1435,11 +1435,11 @@ 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$
|
|
1438
|
+
ButtonDrip.defaultProps = defaultProps$e;
|
|
1439
1439
|
ButtonDrip.displayName = 'BolioUItButtonDrip';
|
|
1440
1440
|
var ButtonDrip$1 = ButtonDrip;
|
|
1441
1441
|
|
|
1442
|
-
var _excluded$
|
|
1442
|
+
var _excluded$1f = ["children", "type", "color", "className", "spaceRatio"];
|
|
1443
1443
|
|
|
1444
1444
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
1445
1445
|
var colors = {
|
|
@@ -1463,7 +1463,7 @@ function LoadingComponent(_ref) {
|
|
|
1463
1463
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1464
1464
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
1465
1465
|
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
1466
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1466
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
1467
1467
|
|
|
1468
1468
|
var theme = useTheme();
|
|
1469
1469
|
|
|
@@ -1509,7 +1509,7 @@ function ButtonLoading(_ref) {
|
|
|
1509
1509
|
|
|
1510
1510
|
ButtonLoading.displayName = 'BolioUIButtonLoading';
|
|
1511
1511
|
|
|
1512
|
-
var _excluded$
|
|
1512
|
+
var _excluded$1e = ["isRight", "isSingle", "children", "className"];
|
|
1513
1513
|
|
|
1514
1514
|
function ButtonIcon(_ref) {
|
|
1515
1515
|
var _ref$isRight = _ref.isRight,
|
|
@@ -1518,7 +1518,7 @@ function ButtonIcon(_ref) {
|
|
|
1518
1518
|
children = _ref.children,
|
|
1519
1519
|
_ref$className = _ref.className,
|
|
1520
1520
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1521
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1521
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
1522
1522
|
|
|
1523
1523
|
var classes = useClasses$1('icon', {
|
|
1524
1524
|
right: isRight,
|
|
@@ -1575,11 +1575,11 @@ var filterPropsWithGroup = function filterPropsWithGroup(props, config) {
|
|
|
1575
1575
|
});
|
|
1576
1576
|
};
|
|
1577
1577
|
|
|
1578
|
-
var defaultContext$
|
|
1578
|
+
var defaultContext$b = {
|
|
1579
1579
|
isButtonGroup: false,
|
|
1580
1580
|
disabled: false
|
|
1581
1581
|
};
|
|
1582
|
-
var ButtonGroupContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
1582
|
+
var ButtonGroupContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$b);
|
|
1583
1583
|
var useButtonGroupContext = function useButtonGroupContext() {
|
|
1584
1584
|
return React__default["default"].useContext(ButtonGroupContext);
|
|
1585
1585
|
};
|
|
@@ -1857,8 +1857,8 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
|
|
|
1857
1857
|
return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
|
|
1858
1858
|
};
|
|
1859
1859
|
|
|
1860
|
-
var _excluded$
|
|
1861
|
-
var defaultProps$
|
|
1860
|
+
var _excluded$1d = ["children", "disabled", "type", "loading", "shadow", "ghost", "rounded", "effect", "onClick", "auto", "icon", "htmlType", "iconRight", "className"];
|
|
1861
|
+
var defaultProps$d = {
|
|
1862
1862
|
type: 'default',
|
|
1863
1863
|
htmlType: 'button',
|
|
1864
1864
|
ghost: false,
|
|
@@ -1914,7 +1914,7 @@ var ButtonComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1914
1914
|
htmlType = filteredProps.htmlType,
|
|
1915
1915
|
iconRight = filteredProps.iconRight,
|
|
1916
1916
|
className = filteredProps.className,
|
|
1917
|
-
props = _objectWithoutProperties(filteredProps, _excluded$
|
|
1917
|
+
props = _objectWithoutProperties(filteredProps, _excluded$1d);
|
|
1918
1918
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
1919
1919
|
|
|
1920
1920
|
|
|
@@ -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$
|
|
1989
|
+
ButtonComponent.defaultProps = defaultProps$d;
|
|
1990
1990
|
ButtonComponent.displayName = 'BolioUIButton';
|
|
1991
1991
|
var Button = withScale$1(ButtonComponent);
|
|
1992
1992
|
var Button$1 = Button;
|
|
@@ -2367,7 +2367,7 @@ LinkIconComponent.displayName = 'BolioUILinkIcon';
|
|
|
2367
2367
|
var LinkIcon = /*#__PURE__*/React__default["default"].memo(LinkIconComponent);
|
|
2368
2368
|
var LinkIcon$1 = LinkIcon;
|
|
2369
2369
|
|
|
2370
|
-
var _excluded$
|
|
2370
|
+
var _excluded$1c = ["href", "color", "underline", "children", "className", "block", "icon"];
|
|
2371
2371
|
var LinkComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
2372
2372
|
var _ref$href = _ref.href,
|
|
2373
2373
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -2382,7 +2382,7 @@ var LinkComponent = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
|
2382
2382
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
2383
2383
|
_ref$icon = _ref.icon,
|
|
2384
2384
|
icon = _ref$icon === void 0 ? false : _ref$icon,
|
|
2385
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2385
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
2386
2386
|
|
|
2387
2387
|
var theme = useTheme();
|
|
2388
2388
|
|
|
@@ -2409,7 +2409,7 @@ LinkComponent.displayName = 'BolioUILink';
|
|
|
2409
2409
|
var Link = withScale$1(LinkComponent);
|
|
2410
2410
|
var Link$1 = Link;
|
|
2411
2411
|
|
|
2412
|
-
var _excluded$
|
|
2412
|
+
var _excluded$1b = ["href", "nextLink", "onClick", "children", "className"];
|
|
2413
2413
|
var BreadcrumbsItem = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
2414
2414
|
var href = _ref.href,
|
|
2415
2415
|
_ref$nextLink = _ref.nextLink,
|
|
@@ -2418,7 +2418,7 @@ var BreadcrumbsItem = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
2418
2418
|
children = _ref.children,
|
|
2419
2419
|
_ref$className = _ref.className,
|
|
2420
2420
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2421
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2421
|
+
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
2422
2422
|
|
|
2423
2423
|
var isLink = React.useMemo(function () {
|
|
2424
2424
|
return href !== undefined || nextLink;
|
|
@@ -2562,18 +2562,18 @@ function ButtonDropdownIcon(_ref) {
|
|
|
2562
2562
|
|
|
2563
2563
|
ButtonDropdownIcon.displayName = 'BolioUIButtonDropdownIcon';
|
|
2564
2564
|
|
|
2565
|
-
var defaultContext$
|
|
2565
|
+
var defaultContext$a = {
|
|
2566
2566
|
type: 'default',
|
|
2567
2567
|
auto: false,
|
|
2568
2568
|
disabled: false,
|
|
2569
2569
|
loading: false
|
|
2570
2570
|
};
|
|
2571
|
-
var ButtonDropdownContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
2571
|
+
var ButtonDropdownContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$a);
|
|
2572
2572
|
var useButtonDropdown = function useButtonDropdown() {
|
|
2573
2573
|
return React__default["default"].useContext(ButtonDropdownContext);
|
|
2574
2574
|
};
|
|
2575
2575
|
|
|
2576
|
-
var _excluded$
|
|
2576
|
+
var _excluded$1a = ["children", "onClick", "className", "main", "type"];
|
|
2577
2577
|
|
|
2578
2578
|
function ButtonDropdownItem(_ref) {
|
|
2579
2579
|
var children = _ref.children,
|
|
@@ -2584,7 +2584,7 @@ function ButtonDropdownItem(_ref) {
|
|
|
2584
2584
|
main = _ref$main === void 0 ? false : _ref$main,
|
|
2585
2585
|
_ref$type = _ref.type,
|
|
2586
2586
|
selfType = _ref$type === void 0 ? 'default' : _ref$type,
|
|
2587
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2587
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
2588
2588
|
|
|
2589
2589
|
var theme = useTheme();
|
|
2590
2590
|
|
|
@@ -2617,7 +2617,7 @@ function ButtonDropdownItem(_ref) {
|
|
|
2617
2617
|
|
|
2618
2618
|
ButtonDropdownItem.displayName = 'BolioUIButtonDropdownItem';
|
|
2619
2619
|
|
|
2620
|
-
var _excluded$
|
|
2620
|
+
var _excluded$19 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
|
|
2621
2621
|
|
|
2622
2622
|
var stopPropagation = function stopPropagation(event) {
|
|
2623
2623
|
event.stopPropagation();
|
|
@@ -2637,7 +2637,7 @@ function ButtonDropdownComponent(_ref) {
|
|
|
2637
2637
|
_ref$loading = _ref.loading,
|
|
2638
2638
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
2639
2639
|
icon = _ref.icon,
|
|
2640
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2640
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
2641
2641
|
|
|
2642
2642
|
var _useScale = useScale(),
|
|
2643
2643
|
SCALES = _useScale.SCALES;
|
|
@@ -2717,8 +2717,8 @@ var ButtonDropdown$1 = ButtonDropdown;
|
|
|
2717
2717
|
|
|
2718
2718
|
ButtonDropdown$1.Item = ButtonDropdownItem;
|
|
2719
2719
|
|
|
2720
|
-
var _excluded$
|
|
2721
|
-
var defaultProps$
|
|
2720
|
+
var _excluded$18 = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
2721
|
+
var defaultProps$c = {
|
|
2722
2722
|
disabled: false,
|
|
2723
2723
|
vertical: false,
|
|
2724
2724
|
ghost: false,
|
|
@@ -2753,7 +2753,7 @@ function ButtonGroupComponent(groupProps) {
|
|
|
2753
2753
|
vertical = groupProps.vertical,
|
|
2754
2754
|
children = groupProps.children,
|
|
2755
2755
|
className = groupProps.className,
|
|
2756
|
-
props = _objectWithoutProperties(groupProps, _excluded$
|
|
2756
|
+
props = _objectWithoutProperties(groupProps, _excluded$18);
|
|
2757
2757
|
|
|
2758
2758
|
var initialValue = React.useMemo(function () {
|
|
2759
2759
|
return {
|
|
@@ -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$
|
|
2783
|
+
ButtonGroupComponent.defaultProps = defaultProps$c;
|
|
2784
2784
|
ButtonGroupComponent.displayName = 'BolioUIButtonGroup';
|
|
2785
2785
|
var ButtonGroup = withScale$1(ButtonGroupComponent);
|
|
2786
2786
|
var ButtonGroup$1 = ButtonGroup;
|
|
@@ -2812,7 +2812,7 @@ var useProportions = function useProportions(value, max) {
|
|
|
2812
2812
|
}, [value, max, maxFixed]);
|
|
2813
2813
|
};
|
|
2814
2814
|
|
|
2815
|
-
var _excluded$
|
|
2815
|
+
var _excluded$17 = ["value", "limit", "color", "className"];
|
|
2816
2816
|
|
|
2817
2817
|
var getColor$3 = function getColor(val, palette) {
|
|
2818
2818
|
if (val < 33) return palette.info;
|
|
@@ -2828,7 +2828,7 @@ function CapacityComponent(_ref) {
|
|
|
2828
2828
|
userColor = _ref.color,
|
|
2829
2829
|
_ref$className = _ref.className,
|
|
2830
2830
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2831
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2831
|
+
props = _objectWithoutProperties(_ref, _excluded$17);
|
|
2832
2832
|
|
|
2833
2833
|
var theme = useTheme();
|
|
2834
2834
|
|
|
@@ -2902,7 +2902,7 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
|
|
|
2902
2902
|
});
|
|
2903
2903
|
};
|
|
2904
2904
|
|
|
2905
|
-
var _excluded$
|
|
2905
|
+
var _excluded$16 = ["children", "className", "disableAutoMargin"];
|
|
2906
2906
|
|
|
2907
2907
|
function CardFooterComponent(_ref) {
|
|
2908
2908
|
var children = _ref.children,
|
|
@@ -2910,7 +2910,7 @@ function CardFooterComponent(_ref) {
|
|
|
2910
2910
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2911
2911
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
2912
2912
|
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
2913
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2913
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
2914
2914
|
|
|
2915
2915
|
var theme = useTheme();
|
|
2916
2916
|
|
|
@@ -2932,13 +2932,13 @@ CardFooterComponent.displayName = 'BolioUICardFooter';
|
|
|
2932
2932
|
var CardFooter = withScale$1(CardFooterComponent);
|
|
2933
2933
|
var CardFooter$1 = CardFooter;
|
|
2934
2934
|
|
|
2935
|
-
var _excluded$
|
|
2935
|
+
var _excluded$15 = ["className", "children"];
|
|
2936
2936
|
|
|
2937
2937
|
function CardContentComponent(_ref) {
|
|
2938
2938
|
var _ref$className = _ref.className,
|
|
2939
2939
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2940
2940
|
children = _ref.children,
|
|
2941
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2941
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
2942
2942
|
|
|
2943
2943
|
var _useScale = useScale(),
|
|
2944
2944
|
SCALES = _useScale.SCALES;
|
|
@@ -2955,11 +2955,11 @@ CardContentComponent.displayName = 'BolioUICardContent';
|
|
|
2955
2955
|
var CardContent = withScale$1(CardContentComponent);
|
|
2956
2956
|
var CardContent$1 = CardContent;
|
|
2957
2957
|
|
|
2958
|
-
var _excluded$
|
|
2958
|
+
var _excluded$14 = ["opacity"];
|
|
2959
2959
|
var ImageSkeleton = /*#__PURE__*/React__default["default"].memo(function (_ref) {
|
|
2960
2960
|
var _ref$opacity = _ref.opacity,
|
|
2961
2961
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
2962
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2962
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
2963
2963
|
|
|
2964
2964
|
var theme = useTheme();
|
|
2965
2965
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
@@ -2989,7 +2989,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
|
|
|
2989
2989
|
}
|
|
2990
2990
|
};
|
|
2991
2991
|
|
|
2992
|
-
var _excluded$
|
|
2992
|
+
var _excluded$13 = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
2993
2993
|
|
|
2994
2994
|
function ImageComponent(_ref) {
|
|
2995
2995
|
var src = _ref.src,
|
|
@@ -2999,7 +2999,7 @@ function ImageComponent(_ref) {
|
|
|
2999
2999
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3000
3000
|
_ref$maxDelay = _ref.maxDelay,
|
|
3001
3001
|
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
3002
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3002
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
3003
3003
|
|
|
3004
3004
|
var _useScale = useScale(),
|
|
3005
3005
|
SCALES = _useScale.SCALES,
|
|
@@ -3108,7 +3108,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
3108
3108
|
};
|
|
3109
3109
|
};
|
|
3110
3110
|
|
|
3111
|
-
var _excluded$
|
|
3111
|
+
var _excluded$12 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
3112
3112
|
|
|
3113
3113
|
var getTitle = function getTitle(title, colors) {
|
|
3114
3114
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -3146,7 +3146,7 @@ var ImageBrowserComponent = /*#__PURE__*/React__default["default"].forwardRef(fu
|
|
|
3146
3146
|
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
3147
3147
|
_ref$className = _ref.className,
|
|
3148
3148
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3149
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3149
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
3150
3150
|
|
|
3151
3151
|
var theme = useTheme();
|
|
3152
3152
|
|
|
@@ -3186,21 +3186,24 @@ var ImageBrowser$1 = ImageBrowser;
|
|
|
3186
3186
|
|
|
3187
3187
|
Image$1.Browser = ImageBrowser$1;
|
|
3188
3188
|
|
|
3189
|
-
var _excluded$
|
|
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
|
-
|
|
3194
|
-
|
|
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
|
-
|
|
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
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3206
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
3204
3207
|
|
|
3205
3208
|
var theme = useTheme();
|
|
3206
3209
|
|
|
@@ -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([["
|
|
3235
|
-
}), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React__default["default"].createElement(CardContent$1, {
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
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;
|
|
@@ -3249,12 +3251,12 @@ Card$1.Actions = CardFooter$1;
|
|
|
3249
3251
|
Card$1.Content = CardContent$1;
|
|
3250
3252
|
Card$1.Body = CardContent$1;
|
|
3251
3253
|
|
|
3252
|
-
var defaultContext$
|
|
3254
|
+
var defaultContext$9 = {
|
|
3253
3255
|
disabledAll: false,
|
|
3254
3256
|
inGroup: false,
|
|
3255
3257
|
values: []
|
|
3256
3258
|
};
|
|
3257
|
-
var CheckboxContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
3259
|
+
var CheckboxContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$9);
|
|
3258
3260
|
var useCheckbox = function useCheckbox() {
|
|
3259
3261
|
return React__default["default"].useContext(CheckboxContext);
|
|
3260
3262
|
};
|
|
@@ -3359,7 +3361,7 @@ var getColors$7 = function getColors(palette, status) {
|
|
|
3359
3361
|
return colors[status];
|
|
3360
3362
|
};
|
|
3361
3363
|
|
|
3362
|
-
var _excluded
|
|
3364
|
+
var _excluded$10 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value"];
|
|
3363
3365
|
|
|
3364
3366
|
function CheckboxComponent(_ref) {
|
|
3365
3367
|
var checked = _ref.checked,
|
|
@@ -3375,7 +3377,7 @@ function CheckboxComponent(_ref) {
|
|
|
3375
3377
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
3376
3378
|
_ref$value = _ref.value,
|
|
3377
3379
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
3378
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3380
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
3379
3381
|
|
|
3380
3382
|
var theme = useTheme();
|
|
3381
3383
|
|
|
@@ -3462,7 +3464,7 @@ CheckboxComponent.displayName = 'BolioUICheckbox';
|
|
|
3462
3464
|
var Checkbox = withScale$1(CheckboxComponent);
|
|
3463
3465
|
var Checkbox$1 = Checkbox;
|
|
3464
3466
|
|
|
3465
|
-
var _excluded
|
|
3467
|
+
var _excluded$$ = ["disabled", "onChange", "value", "children", "className"];
|
|
3466
3468
|
|
|
3467
3469
|
function CheckboxGroupComponent(_ref) {
|
|
3468
3470
|
var _ref$disabled = _ref.disabled,
|
|
@@ -3472,7 +3474,7 @@ function CheckboxGroupComponent(_ref) {
|
|
|
3472
3474
|
children = _ref.children,
|
|
3473
3475
|
_ref$className = _ref.className,
|
|
3474
3476
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3475
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3477
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
3476
3478
|
|
|
3477
3479
|
var _useScale = useScale(),
|
|
3478
3480
|
SCALES = _useScale.SCALES;
|
|
@@ -3525,7 +3527,7 @@ var CheckboxGroup$1 = CheckboxGroup;
|
|
|
3525
3527
|
|
|
3526
3528
|
Checkbox$1.Group = CheckboxGroup$1;
|
|
3527
3529
|
|
|
3528
|
-
var _excluded$
|
|
3530
|
+
var _excluded$_ = ["children", "block", "className", "name", "classic"];
|
|
3529
3531
|
|
|
3530
3532
|
function CodeComponent(_ref) {
|
|
3531
3533
|
var children = _ref.children,
|
|
@@ -3537,7 +3539,7 @@ function CodeComponent(_ref) {
|
|
|
3537
3539
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
3538
3540
|
_ref$classic = _ref.classic,
|
|
3539
3541
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
3540
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3542
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
3541
3543
|
|
|
3542
3544
|
var _useScale = useScale(),
|
|
3543
3545
|
SCALES = _useScale.SCALES;
|
|
@@ -3576,7 +3578,7 @@ CodeComponent.displayName = 'BolioUICode';
|
|
|
3576
3578
|
var Code = withScale$1(CodeComponent);
|
|
3577
3579
|
var Code$1 = Code;
|
|
3578
3580
|
|
|
3579
|
-
var _excluded$
|
|
3581
|
+
var _excluded$Z = ["component", "children", "span", "offset", "className"];
|
|
3580
3582
|
|
|
3581
3583
|
function Col(_ref) {
|
|
3582
3584
|
var _ref$component = _ref.component,
|
|
@@ -3588,7 +3590,7 @@ function Col(_ref) {
|
|
|
3588
3590
|
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
3589
3591
|
_ref$className = _ref.className,
|
|
3590
3592
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3591
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3593
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
3592
3594
|
|
|
3593
3595
|
var Component = component;
|
|
3594
3596
|
return /*#__PURE__*/React__default["default"].createElement(Component, _extends({}, props, {
|
|
@@ -3679,7 +3681,7 @@ var useRealShape = function useRealShape(ref) {
|
|
|
3679
3681
|
|
|
3680
3682
|
var useRealShape$1 = useRealShape;
|
|
3681
3683
|
|
|
3682
|
-
var defaultProps$
|
|
3684
|
+
var defaultProps$a = {
|
|
3683
3685
|
isExpanded: false,
|
|
3684
3686
|
delay: 200
|
|
3685
3687
|
};
|
|
@@ -3766,18 +3768,18 @@ function Expand(_ref) {
|
|
|
3766
3768
|
}, ".container.__jsx-style-dynamic-selector{padding:0;margin:0;height:0;overflow:hidden;visibility:".concat(visible ? 'visible' : 'hidden', ";-webkit-transition:height ").concat(delay, "ms ease;transition:height ").concat(delay, "ms ease;}.expanded.__jsx-style-dynamic-selector{height:").concat(height, ";visibility:visible;}")));
|
|
3767
3769
|
}
|
|
3768
3770
|
|
|
3769
|
-
Expand.defaultProps = defaultProps$
|
|
3771
|
+
Expand.defaultProps = defaultProps$a;
|
|
3770
3772
|
Expand.displayName = 'BolioUIExpand';
|
|
3771
3773
|
|
|
3772
|
-
var defaultContext$
|
|
3774
|
+
var defaultContext$8 = {
|
|
3773
3775
|
values: []
|
|
3774
3776
|
};
|
|
3775
|
-
var CollapseContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
3777
|
+
var CollapseContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$8);
|
|
3776
3778
|
var useCollapseContext = function useCollapseContext() {
|
|
3777
3779
|
return React__default["default"].useContext(CollapseContext);
|
|
3778
3780
|
};
|
|
3779
3781
|
|
|
3780
|
-
var _excluded$
|
|
3782
|
+
var _excluded$Y = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
3781
3783
|
|
|
3782
3784
|
function CollapseComponent(_ref) {
|
|
3783
3785
|
var children = _ref.children,
|
|
@@ -3790,7 +3792,7 @@ function CollapseComponent(_ref) {
|
|
|
3790
3792
|
_ref$className = _ref.className,
|
|
3791
3793
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3792
3794
|
index = _ref.index,
|
|
3793
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3795
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
3794
3796
|
|
|
3795
3797
|
var theme = useTheme();
|
|
3796
3798
|
|
|
@@ -3858,7 +3860,7 @@ CollapseComponent.displayName = 'BolioUICollapse';
|
|
|
3858
3860
|
var Collapse = withScale$1(CollapseComponent);
|
|
3859
3861
|
var Collapse$1 = Collapse;
|
|
3860
3862
|
|
|
3861
|
-
var _excluded$
|
|
3863
|
+
var _excluded$X = ["children", "accordion", "className"];
|
|
3862
3864
|
|
|
3863
3865
|
function CollapseGroupComponent(_ref) {
|
|
3864
3866
|
var children = _ref.children,
|
|
@@ -3866,7 +3868,7 @@ function CollapseGroupComponent(_ref) {
|
|
|
3866
3868
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
3867
3869
|
_ref$className = _ref.className,
|
|
3868
3870
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3869
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3871
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
3870
3872
|
|
|
3871
3873
|
var _useScale = useScale(),
|
|
3872
3874
|
SCALES = _useScale.SCALES;
|
|
@@ -3924,8 +3926,8 @@ var CollapseGroup$1 = CollapseGroup;
|
|
|
3924
3926
|
|
|
3925
3927
|
Collapse$1.Group = CollapseGroup$1;
|
|
3926
3928
|
|
|
3927
|
-
var _excluded$
|
|
3928
|
-
var defaultProps$
|
|
3929
|
+
var _excluded$W = ["children", "component", "justify", "align", "fluid", "className"];
|
|
3930
|
+
var defaultProps$9 = {
|
|
3929
3931
|
gap: 0,
|
|
3930
3932
|
justify: 'start',
|
|
3931
3933
|
align: 'top',
|
|
@@ -3958,7 +3960,7 @@ function Container(_ref) {
|
|
|
3958
3960
|
align = _ref.align,
|
|
3959
3961
|
fluid = _ref.fluid,
|
|
3960
3962
|
className = _ref.className,
|
|
3961
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3963
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
3962
3964
|
|
|
3963
3965
|
var Component = component;
|
|
3964
3966
|
var theme = useTheme();
|
|
@@ -3978,10 +3980,10 @@ function Container(_ref) {
|
|
|
3978
3980
|
}, ".container.__jsx-style-dynamic-selector{".concat(fluidWidth, ";padding-left:15px;padding-right:15px;margin-right:auto;margin-left:auto;-webkit-box-pack:").concat(justifyValue, ";-webkit-justify-content:").concat(justifyValue, ";-ms-flex-pack:").concat(justifyValue, ";justify-content:").concat(justifyValue, ";-webkit-align-items:").concat(alignValue, ";-webkit-box-align:").concat(alignValue, ";-ms-flex-align:").concat(alignValue, ";align-items:").concat(alignValue, ";}")));
|
|
3979
3981
|
}
|
|
3980
3982
|
|
|
3981
|
-
Container.defaultProps = defaultProps$
|
|
3983
|
+
Container.defaultProps = defaultProps$9;
|
|
3982
3984
|
Container.displayName = 'BolioUIContainer';
|
|
3983
3985
|
|
|
3984
|
-
var _excluded$
|
|
3986
|
+
var _excluded$V = ["title", "content", "className"];
|
|
3985
3987
|
|
|
3986
3988
|
function DescriptionComponent(_ref) {
|
|
3987
3989
|
var _ref$title = _ref.title,
|
|
@@ -3990,7 +3992,7 @@ function DescriptionComponent(_ref) {
|
|
|
3990
3992
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
3991
3993
|
_ref$className = _ref.className,
|
|
3992
3994
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3995
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
3994
3996
|
|
|
3995
3997
|
var theme = useTheme();
|
|
3996
3998
|
|
|
@@ -4014,7 +4016,7 @@ DescriptionComponent.displayName = 'BolioUIDescription';
|
|
|
4014
4016
|
var Description = withScale$1(DescriptionComponent);
|
|
4015
4017
|
var Description$1 = Description;
|
|
4016
4018
|
|
|
4017
|
-
var _excluded$
|
|
4019
|
+
var _excluded$U = ["children", "caption", "shadow", "className"];
|
|
4018
4020
|
|
|
4019
4021
|
function DisplayComponent(_ref) {
|
|
4020
4022
|
var children = _ref.children,
|
|
@@ -4024,7 +4026,7 @@ function DisplayComponent(_ref) {
|
|
|
4024
4026
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
4025
4027
|
_ref$className = _ref.className,
|
|
4026
4028
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4027
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4029
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
4028
4030
|
|
|
4029
4031
|
var theme = useTheme();
|
|
4030
4032
|
|
|
@@ -4051,7 +4053,7 @@ DisplayComponent.displayName = 'BolioUIDisplay';
|
|
|
4051
4053
|
var Display = withScale$1(DisplayComponent);
|
|
4052
4054
|
var Display$1 = Display;
|
|
4053
4055
|
|
|
4054
|
-
var _excluded$
|
|
4056
|
+
var _excluded$T = ["type", "align", "children", "className"];
|
|
4055
4057
|
|
|
4056
4058
|
var getColor$2 = function getColor(type, palette) {
|
|
4057
4059
|
var colors = {
|
|
@@ -4076,7 +4078,7 @@ function DividerComponent(_ref) {
|
|
|
4076
4078
|
children = _ref.children,
|
|
4077
4079
|
_ref$className = _ref.className,
|
|
4078
4080
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4079
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4081
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
4080
4082
|
|
|
4081
4083
|
var theme = useTheme();
|
|
4082
4084
|
|
|
@@ -4110,7 +4112,7 @@ DividerComponent.displayName = 'BolioUIDivider';
|
|
|
4110
4112
|
var Divider = withScale$1(DividerComponent);
|
|
4111
4113
|
var Divider$1 = Divider;
|
|
4112
4114
|
|
|
4113
|
-
var _excluded$
|
|
4115
|
+
var _excluded$S = ["type", "children", "className"];
|
|
4114
4116
|
|
|
4115
4117
|
var getColor$1 = function getColor(type, theme) {
|
|
4116
4118
|
var colors = {
|
|
@@ -4131,7 +4133,7 @@ function DotComponent(_ref) {
|
|
|
4131
4133
|
children = _ref.children,
|
|
4132
4134
|
_ref$className = _ref.className,
|
|
4133
4135
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4134
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4136
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
4135
4137
|
|
|
4136
4138
|
var theme = useTheme();
|
|
4137
4139
|
|
|
@@ -4422,8 +4424,8 @@ var useKeyboard = function useKeyboard(handler, keyBindings) {
|
|
|
4422
4424
|
|
|
4423
4425
|
var useKeyboard$1 = useKeyboard;
|
|
4424
4426
|
|
|
4425
|
-
var _excluded$
|
|
4426
|
-
var defaultProps$
|
|
4427
|
+
var _excluded$R = ["children", "onClick", "visible", "width", "onContentClick", "backdropClassName", "positionClassName", "layerClassName"];
|
|
4428
|
+
var defaultProps$8 = {
|
|
4427
4429
|
onClick: function onClick() {},
|
|
4428
4430
|
visible: false,
|
|
4429
4431
|
// onContentClick: () => {},
|
|
@@ -4441,7 +4443,7 @@ function BackdropComponent(_ref) {
|
|
|
4441
4443
|
backdropClassName = _ref.backdropClassName,
|
|
4442
4444
|
positionClassName = _ref.positionClassName,
|
|
4443
4445
|
layerClassName = _ref.layerClassName,
|
|
4444
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4446
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
4445
4447
|
|
|
4446
4448
|
var theme = useTheme();
|
|
4447
4449
|
|
|
@@ -4486,7 +4488,7 @@ function BackdropComponent(_ref) {
|
|
|
4486
4488
|
}, ".backdrop.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;right:0;bottom:0;overflow:auto;z-index:1000;-webkit-overflow-scrolling:touch;box-sizing:border-box;text-align:center;}.position.__jsx-style-dynamic-selector{position:relative;z-index:1001;outline:none;max-width:90%;width:".concat(width, ";margin:20px auto;vertical-align:middle;display:inline-block;}.backdrop.__jsx-style-dynamic-selector:before{display:inline-block;width:0;height:100%;vertical-align:middle;content:'';}.layer.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;opacity:").concat(theme.expressiveness.portalOpacity, ";background-color:black;-webkit-transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1);transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1);pointer-events:none;z-index:1000;}.backdrop-wrapper-enter.__jsx-style-dynamic-selector .layer.__jsx-style-dynamic-selector{opacity:0;}.backdrop-wrapper-enter-active.__jsx-style-dynamic-selector .layer.__jsx-style-dynamic-selector{opacity:").concat(theme.expressiveness.portalOpacity, ";}.backdrop-wrapper-leave.__jsx-style-dynamic-selector .layer.__jsx-style-dynamic-selector{opacity:").concat(theme.expressiveness.portalOpacity, ";}.backdrop-wrapper-leave-active.__jsx-style-dynamic-selector .layer.__jsx-style-dynamic-selector{opacity:0;}"))));
|
|
4487
4489
|
}
|
|
4488
4490
|
|
|
4489
|
-
BackdropComponent.defaultProps = defaultProps$
|
|
4491
|
+
BackdropComponent.defaultProps = defaultProps$8;
|
|
4490
4492
|
BackdropComponent.displayName = 'BolioUIBackdrop';
|
|
4491
4493
|
var Backdrop = /*#__PURE__*/React__default["default"].memo(BackdropComponent);
|
|
4492
4494
|
var Backdrop$1 = Backdrop;
|
|
@@ -4518,7 +4520,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
4518
4520
|
return translates[placement];
|
|
4519
4521
|
};
|
|
4520
4522
|
|
|
4521
|
-
var _excluded$
|
|
4523
|
+
var _excluded$Q = ["className", "children", "visible", "placement"];
|
|
4522
4524
|
|
|
4523
4525
|
function DrawerWrapper(_ref) {
|
|
4524
4526
|
var _ref$className = _ref.className,
|
|
@@ -4527,7 +4529,7 @@ function DrawerWrapper(_ref) {
|
|
|
4527
4529
|
_ref$visible = _ref.visible,
|
|
4528
4530
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
4529
4531
|
placement = _ref.placement,
|
|
4530
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4532
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
4531
4533
|
|
|
4532
4534
|
var theme = useTheme();
|
|
4533
4535
|
|
|
@@ -4594,7 +4596,7 @@ function DrawerWrapper(_ref) {
|
|
|
4594
4596
|
|
|
4595
4597
|
DrawerWrapper.displayName = 'BolioUIDrawerWrapper';
|
|
4596
4598
|
|
|
4597
|
-
var _excluded$
|
|
4599
|
+
var _excluded$P = ["visible", "keyboard", "disableBackdropClick", "wrapClassName", "children", "placement", "onClose", "onContentClick"];
|
|
4598
4600
|
|
|
4599
4601
|
function DrawerComponent(_ref) {
|
|
4600
4602
|
var customVisible = _ref.visible,
|
|
@@ -4605,7 +4607,7 @@ function DrawerComponent(_ref) {
|
|
|
4605
4607
|
placement = _ref.placement,
|
|
4606
4608
|
onClose = _ref.onClose,
|
|
4607
4609
|
onContentClick = _ref.onContentClick,
|
|
4608
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4610
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
4609
4611
|
|
|
4610
4612
|
var portal = usePortal$1('drawer');
|
|
4611
4613
|
|
|
@@ -4661,13 +4663,13 @@ DrawerComponent.displayName = 'BolioUIDrawer';
|
|
|
4661
4663
|
var Drawer = withScale$1(DrawerComponent);
|
|
4662
4664
|
var Drawer$1 = Drawer;
|
|
4663
4665
|
|
|
4664
|
-
var _excluded$
|
|
4666
|
+
var _excluded$O = ["className", "children"];
|
|
4665
4667
|
|
|
4666
4668
|
function ModalTitleComponent(_ref) {
|
|
4667
4669
|
var _ref$className = _ref.className,
|
|
4668
4670
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4669
4671
|
children = _ref.children,
|
|
4670
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4672
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4671
4673
|
|
|
4672
4674
|
var theme = useTheme();
|
|
4673
4675
|
|
|
@@ -4686,13 +4688,13 @@ ModalTitleComponent.displayName = 'BolioUIModalTitle';
|
|
|
4686
4688
|
var ModalTitle = withScale$1(ModalTitleComponent);
|
|
4687
4689
|
var ModalTitle$1 = ModalTitle;
|
|
4688
4690
|
|
|
4689
|
-
var _excluded$
|
|
4691
|
+
var _excluded$N = ["className", "children"];
|
|
4690
4692
|
|
|
4691
4693
|
function ModalSubtitleComponent(_ref) {
|
|
4692
4694
|
var _ref$className = _ref.className,
|
|
4693
4695
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4694
4696
|
children = _ref.children,
|
|
4695
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4697
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
4696
4698
|
|
|
4697
4699
|
var theme = useTheme();
|
|
4698
4700
|
|
|
@@ -4711,13 +4713,13 @@ ModalSubtitleComponent.displayName = 'BolioUIModalSubtitle';
|
|
|
4711
4713
|
var ModalSubtitle = withScale$1(ModalSubtitleComponent);
|
|
4712
4714
|
var ModalSubtitle$1 = ModalSubtitle;
|
|
4713
4715
|
|
|
4714
|
-
var _excluded$
|
|
4716
|
+
var _excluded$M = ["className", "children"];
|
|
4715
4717
|
|
|
4716
4718
|
function ModalContentComponent(_ref) {
|
|
4717
4719
|
var _ref$className = _ref.className,
|
|
4718
4720
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4719
4721
|
children = _ref.children,
|
|
4720
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4722
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
4721
4723
|
|
|
4722
4724
|
var _useScale = useScale(),
|
|
4723
4725
|
SCALES = _useScale.SCALES;
|
|
@@ -4738,13 +4740,13 @@ Drawer$1.Title = ModalTitle$1;
|
|
|
4738
4740
|
Drawer$1.Subtitle = ModalSubtitle$1;
|
|
4739
4741
|
Drawer$1.Content = ModalContent$1;
|
|
4740
4742
|
|
|
4741
|
-
var _excluded$
|
|
4743
|
+
var _excluded$L = ["className", "children"];
|
|
4742
4744
|
|
|
4743
4745
|
function FieldsetTitle(_ref) {
|
|
4744
4746
|
var _ref$className = _ref.className,
|
|
4745
4747
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4746
4748
|
children = _ref.children,
|
|
4747
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4749
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4748
4750
|
|
|
4749
4751
|
var classes = useClasses$1('title', className);
|
|
4750
4752
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
@@ -4756,13 +4758,13 @@ function FieldsetTitle(_ref) {
|
|
|
4756
4758
|
|
|
4757
4759
|
FieldsetTitle.displayName = 'BolioUIFieldsetTitle';
|
|
4758
4760
|
|
|
4759
|
-
var _excluded$
|
|
4761
|
+
var _excluded$K = ["className", "children"];
|
|
4760
4762
|
|
|
4761
4763
|
function FieldsetSubtitle(_ref) {
|
|
4762
4764
|
var _ref$className = _ref.className,
|
|
4763
4765
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4764
4766
|
children = _ref.children,
|
|
4765
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4767
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4766
4768
|
|
|
4767
4769
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
4768
4770
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || "")
|
|
@@ -4773,13 +4775,13 @@ function FieldsetSubtitle(_ref) {
|
|
|
4773
4775
|
|
|
4774
4776
|
FieldsetSubtitle.displayName = 'BolioUIFieldsetSubtitle';
|
|
4775
4777
|
|
|
4776
|
-
var _excluded$
|
|
4778
|
+
var _excluded$J = ["className", "children"];
|
|
4777
4779
|
|
|
4778
4780
|
function FieldsetFooterComponent(_ref) {
|
|
4779
4781
|
var _ref$className = _ref.className,
|
|
4780
4782
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4781
4783
|
children = _ref.children,
|
|
4782
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4784
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4783
4785
|
|
|
4784
4786
|
var theme = useTheme();
|
|
4785
4787
|
|
|
@@ -4798,13 +4800,13 @@ FieldsetFooterComponent.displayName = 'BolioUIFieldsetFooter';
|
|
|
4798
4800
|
var FieldsetFooter = withScale$1(FieldsetFooterComponent);
|
|
4799
4801
|
var FieldsetFooter$1 = FieldsetFooter;
|
|
4800
4802
|
|
|
4801
|
-
var _excluded$
|
|
4803
|
+
var _excluded$I = ["className", "children"];
|
|
4802
4804
|
|
|
4803
4805
|
function FieldsetContentComponent(_ref) {
|
|
4804
4806
|
var _ref$className = _ref.className,
|
|
4805
4807
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4806
4808
|
children = _ref.children,
|
|
4807
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4809
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4808
4810
|
|
|
4809
4811
|
var _useScale = useScale(),
|
|
4810
4812
|
SCALES = _useScale.SCALES;
|
|
@@ -4822,16 +4824,16 @@ FieldsetContentComponent.displayName = 'BolioUIFieldsetContent';
|
|
|
4822
4824
|
var FieldsetContent = withScale$1(FieldsetContentComponent);
|
|
4823
4825
|
var FieldsetContent$1 = FieldsetContent;
|
|
4824
4826
|
|
|
4825
|
-
var defaultContext$
|
|
4827
|
+
var defaultContext$7 = {
|
|
4826
4828
|
inGroup: false,
|
|
4827
4829
|
currentValue: ''
|
|
4828
4830
|
};
|
|
4829
|
-
var FieldsetContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
4831
|
+
var FieldsetContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$7);
|
|
4830
4832
|
var useFieldset = function useFieldset() {
|
|
4831
4833
|
return React__default["default"].useContext(FieldsetContext);
|
|
4832
4834
|
};
|
|
4833
4835
|
|
|
4834
|
-
var _excluded$
|
|
4836
|
+
var _excluded$H = ["className", "title", "subtitle", "children", "value", "label"];
|
|
4835
4837
|
|
|
4836
4838
|
function FieldsetComponent(_ref) {
|
|
4837
4839
|
var _ref$className = _ref.className,
|
|
@@ -4845,7 +4847,7 @@ function FieldsetComponent(_ref) {
|
|
|
4845
4847
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
4846
4848
|
_ref$label = _ref.label,
|
|
4847
4849
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
4848
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4850
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4849
4851
|
|
|
4850
4852
|
var theme = useTheme();
|
|
4851
4853
|
|
|
@@ -4913,7 +4915,7 @@ FieldsetComponent.displayName = 'BolioUIFieldset';
|
|
|
4913
4915
|
var Fieldset = withScale$1(FieldsetComponent);
|
|
4914
4916
|
var Fieldset$1 = Fieldset;
|
|
4915
4917
|
|
|
4916
|
-
var _excluded$
|
|
4918
|
+
var _excluded$G = ["className", "children", "value", "onChange"];
|
|
4917
4919
|
|
|
4918
4920
|
function FieldsetGroupComponent(_ref) {
|
|
4919
4921
|
var _ref$className = _ref.className,
|
|
@@ -4921,7 +4923,7 @@ function FieldsetGroupComponent(_ref) {
|
|
|
4921
4923
|
children = _ref.children,
|
|
4922
4924
|
value = _ref.value,
|
|
4923
4925
|
onChange = _ref.onChange,
|
|
4924
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4926
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4925
4927
|
|
|
4926
4928
|
var theme = useTheme();
|
|
4927
4929
|
|
|
@@ -4997,8 +4999,8 @@ Fieldset$1.Group = FieldsetGroup$1;
|
|
|
4997
4999
|
Fieldset$1.Content = FieldsetContent$1;
|
|
4998
5000
|
Fieldset$1.Body = FieldsetContent$1;
|
|
4999
5001
|
|
|
5000
|
-
var _excluded$
|
|
5001
|
-
var defaultProps$
|
|
5002
|
+
var _excluded$F = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
5003
|
+
var defaultProps$7 = {
|
|
5002
5004
|
xs: false,
|
|
5003
5005
|
sm: false,
|
|
5004
5006
|
md: false,
|
|
@@ -5041,7 +5043,7 @@ function GridBasicItem(_ref) {
|
|
|
5041
5043
|
alignContent = _ref.alignContent,
|
|
5042
5044
|
children = _ref.children,
|
|
5043
5045
|
className = _ref.className,
|
|
5044
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5046
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5045
5047
|
|
|
5046
5048
|
var theme = useTheme();
|
|
5047
5049
|
|
|
@@ -5083,16 +5085,16 @@ function GridBasicItem(_ref) {
|
|
|
5083
5085
|
}, ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")));
|
|
5084
5086
|
}
|
|
5085
5087
|
|
|
5086
|
-
GridBasicItem.defaultProps = defaultProps$
|
|
5088
|
+
GridBasicItem.defaultProps = defaultProps$7;
|
|
5087
5089
|
GridBasicItem.displayName = 'BolioUIGridBasicItem';
|
|
5088
5090
|
|
|
5089
|
-
var _excluded$
|
|
5091
|
+
var _excluded$E = ["children", "className"];
|
|
5090
5092
|
|
|
5091
5093
|
function GridComponent(_ref) {
|
|
5092
5094
|
var children = _ref.children,
|
|
5093
5095
|
_ref$className = _ref.className,
|
|
5094
5096
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5095
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5097
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5096
5098
|
|
|
5097
5099
|
var _useScale = useScale(),
|
|
5098
5100
|
SCALES = _useScale.SCALES;
|
|
@@ -5117,7 +5119,7 @@ GridComponent.displayName = 'BolioUIGrid';
|
|
|
5117
5119
|
var Grid = withScale$1(GridComponent);
|
|
5118
5120
|
var Grid$1 = Grid;
|
|
5119
5121
|
|
|
5120
|
-
var _excluded$
|
|
5122
|
+
var _excluded$D = ["gap", "wrap", "children", "className"];
|
|
5121
5123
|
|
|
5122
5124
|
function GridContainerComponent(_ref) {
|
|
5123
5125
|
var _ref$gap = _ref.gap,
|
|
@@ -5127,7 +5129,7 @@ function GridContainerComponent(_ref) {
|
|
|
5127
5129
|
children = _ref.children,
|
|
5128
5130
|
_ref$className = _ref.className,
|
|
5129
5131
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5130
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5132
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
5131
5133
|
|
|
5132
5134
|
var _useScale = useScale(),
|
|
5133
5135
|
unit = _useScale.unit,
|
|
@@ -5291,7 +5293,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
5291
5293
|
return colors[status];
|
|
5292
5294
|
};
|
|
5293
5295
|
|
|
5294
|
-
var defaultProps$
|
|
5296
|
+
var defaultProps$6 = {
|
|
5295
5297
|
disabled: false,
|
|
5296
5298
|
readOnly: false,
|
|
5297
5299
|
clearable: false,
|
|
@@ -5304,7 +5306,7 @@ var defaultProps$2 = {
|
|
|
5304
5306
|
initialValue: ''
|
|
5305
5307
|
};
|
|
5306
5308
|
|
|
5307
|
-
var _excluded$
|
|
5309
|
+
var _excluded$C = ["label", "labelRight", "type", "htmlType", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled", "rounded", "backgroundColor"];
|
|
5308
5310
|
|
|
5309
5311
|
var simulateChangeEvent = function simulateChangeEvent(el, event) {
|
|
5310
5312
|
return _objectSpread2(_objectSpread2({}, event), {}, {
|
|
@@ -5337,7 +5339,7 @@ var InputComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5337
5339
|
disabled = _ref.disabled,
|
|
5338
5340
|
rounded = _ref.rounded,
|
|
5339
5341
|
backgroundColor = _ref.backgroundColor,
|
|
5340
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5342
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5341
5343
|
|
|
5342
5344
|
var theme = useTheme();
|
|
5343
5345
|
|
|
@@ -5466,12 +5468,12 @@ var InputComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5466
5468
|
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, 'initial'), rounded ? '25px' : theme.layout.radius, backgroundColor ? backgroundColor : theme.palette.accents_2, theme.palette.accents_4, hoverBorder, SCALES.font(0.875), color, theme.palette.accents_3, theme.palette.background, color]
|
|
5467
5469
|
}, ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'initial'), ";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), ";}.input-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:").concat(SCALES.width(1, 'initial'), ";height:var(--input-height);}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;background:").concat(backgroundColor ? backgroundColor : theme.palette.accents_2, ";}.input-wrapper.left-label.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;}.input-wrapper.right-label.__jsx-style-dynamic-selector{border-top-right-radius:0;border-bottom-right-radius:0;}.input-wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme.palette.accents_4, ";cursor:not-allowed;}input.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;}.input-wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}input.__jsx-style-dynamic-selector{margin:0.25em 0.625em;padding:0 4px;box-shadow:none;font-size:").concat(SCALES.font(0.875), ";background-color:transparent;border:none;color:").concat(color, ";outline:none;border-radius:0;width:100%;min-width:0;-webkit-appearance:none;}input.left-icon.__jsx-style-dynamic-selector{margin-left:0;}input.right-icon.__jsx-style-dynamic-selector{margin-right:0;}.__jsx-style-dynamic-selector::-webkit-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme.palette.accents_3, ";}.__jsx-style-dynamic-selector::-ms-reveal{display:none !important;}input.__jsx-style-dynamic-selector:-webkit-autofill,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:hover,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:active,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:focus{-webkit-box-shadow:0 0 0 30px ").concat(theme.palette.background, " inset !important;-webkit-text-fill-color:").concat(color, " !important;}")));
|
|
5468
5470
|
});
|
|
5469
|
-
InputComponent.defaultProps = defaultProps$
|
|
5471
|
+
InputComponent.defaultProps = defaultProps$6;
|
|
5470
5472
|
InputComponent.displayName = 'BolioUIInput';
|
|
5471
5473
|
var Input = withScale$1(InputComponent);
|
|
5472
5474
|
var Input$1 = Input;
|
|
5473
5475
|
|
|
5474
|
-
var _excluded$
|
|
5476
|
+
var _excluded$B = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
|
|
5475
5477
|
tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
|
|
5476
5478
|
var TextareaComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5477
5479
|
var _ref$type = _ref.type,
|
|
@@ -5491,7 +5493,7 @@ var TextareaComponent = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
|
5491
5493
|
placeholder = _ref.placeholder,
|
|
5492
5494
|
_ref$resize = _ref.resize,
|
|
5493
5495
|
resize = _ref$resize === void 0 ? 'none' : _ref$resize,
|
|
5494
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5496
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5495
5497
|
|
|
5496
5498
|
var theme = useTheme();
|
|
5497
5499
|
|
|
@@ -5607,16 +5609,16 @@ function PasswordIcon(_ref) {
|
|
|
5607
5609
|
var MemoPasswordIcon = /*#__PURE__*/React__default["default"].memo(PasswordIcon);
|
|
5608
5610
|
var PasswordIcon$1 = MemoPasswordIcon;
|
|
5609
5611
|
|
|
5610
|
-
var _excluded$
|
|
5612
|
+
var _excluded$A = ["hideToggle", "children"];
|
|
5611
5613
|
|
|
5612
|
-
var passwordDefaultProps = _objectSpread2(_objectSpread2({}, defaultProps$
|
|
5614
|
+
var passwordDefaultProps = _objectSpread2(_objectSpread2({}, defaultProps$6), {}, {
|
|
5613
5615
|
hideToggle: false
|
|
5614
5616
|
});
|
|
5615
5617
|
|
|
5616
5618
|
var InputPasswordComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5617
5619
|
var hideToggle = _ref.hideToggle,
|
|
5618
5620
|
children = _ref.children,
|
|
5619
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5621
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5620
5622
|
|
|
5621
5623
|
var _useScale = useScale$1(),
|
|
5622
5624
|
getAllScaleProps = _useScale.getAllScaleProps;
|
|
@@ -5669,7 +5671,7 @@ var InputPassword$1 = InputPassword;
|
|
|
5669
5671
|
Input$1.Textarea = Textarea$1;
|
|
5670
5672
|
Input$1.Password = InputPassword$1;
|
|
5671
5673
|
|
|
5672
|
-
var _excluded$
|
|
5674
|
+
var _excluded$z = ["command", "shift", "option", "ctrl", "children", "className"];
|
|
5673
5675
|
|
|
5674
5676
|
function KeyboardComponent(_ref) {
|
|
5675
5677
|
var _ref$command = _ref.command,
|
|
@@ -5683,7 +5685,7 @@ function KeyboardComponent(_ref) {
|
|
|
5683
5685
|
children = _ref.children,
|
|
5684
5686
|
_ref$className = _ref.className,
|
|
5685
5687
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5686
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5688
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5687
5689
|
|
|
5688
5690
|
var theme = useTheme();
|
|
5689
5691
|
|
|
@@ -5712,7 +5714,7 @@ KeyboardComponent.displayName = 'BolioUIKeyboard';
|
|
|
5712
5714
|
var Keyboard = withScale$1(KeyboardComponent);
|
|
5713
5715
|
var Keyboard$1 = Keyboard;
|
|
5714
5716
|
|
|
5715
|
-
var _excluded$
|
|
5717
|
+
var _excluded$y = ["className", "children", "visible"];
|
|
5716
5718
|
|
|
5717
5719
|
function ModalWrapper(_ref) {
|
|
5718
5720
|
var _ref$className = _ref.className,
|
|
@@ -5720,7 +5722,7 @@ function ModalWrapper(_ref) {
|
|
|
5720
5722
|
children = _ref.children,
|
|
5721
5723
|
_ref$visible = _ref.visible,
|
|
5722
5724
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
5723
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5725
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5724
5726
|
|
|
5725
5727
|
var theme = useTheme();
|
|
5726
5728
|
|
|
@@ -5783,13 +5785,13 @@ function ModalWrapper(_ref) {
|
|
|
5783
5785
|
|
|
5784
5786
|
ModalWrapper.displayName = 'BolioUIModalWrapper';
|
|
5785
5787
|
|
|
5786
|
-
var defaultContext$
|
|
5787
|
-
var ModalContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
5788
|
+
var defaultContext$6 = {};
|
|
5789
|
+
var ModalContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$6);
|
|
5788
5790
|
var useModalContext = function useModalContext() {
|
|
5789
5791
|
return React__default["default"].useContext(ModalContext);
|
|
5790
5792
|
};
|
|
5791
5793
|
|
|
5792
|
-
var _excluded$
|
|
5794
|
+
var _excluded$x = ["className", "children", "onClick", "passive", "disabled"];
|
|
5793
5795
|
var ModalActionComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5794
5796
|
var _ref$className = _ref.className,
|
|
5795
5797
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -5799,7 +5801,7 @@ var ModalActionComponent = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
|
5799
5801
|
passive = _ref$passive === void 0 ? false : _ref$passive,
|
|
5800
5802
|
_ref$disabled = _ref.disabled,
|
|
5801
5803
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
5802
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5804
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5803
5805
|
|
|
5804
5806
|
var theme = useTheme();
|
|
5805
5807
|
|
|
@@ -5857,11 +5859,11 @@ ModalActionComponent.displayName = 'BolioUIModalAction';
|
|
|
5857
5859
|
var ModalAction = withScale$1(ModalActionComponent);
|
|
5858
5860
|
var ModalAction$1 = ModalAction;
|
|
5859
5861
|
|
|
5860
|
-
var _excluded$
|
|
5862
|
+
var _excluded$w = ["children"];
|
|
5861
5863
|
|
|
5862
5864
|
var ModalActionsComponent = function ModalActionsComponent(_ref) {
|
|
5863
5865
|
var children = _ref.children,
|
|
5864
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5866
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5865
5867
|
|
|
5866
5868
|
var theme = useTheme();
|
|
5867
5869
|
var ref = React.useRef(null);
|
|
@@ -5986,7 +5988,7 @@ Modal$1.Subtitle = ModalSubtitle$1;
|
|
|
5986
5988
|
Modal$1.Content = ModalContent$1;
|
|
5987
5989
|
Modal$1.Action = ModalAction$1;
|
|
5988
5990
|
|
|
5989
|
-
var _excluded$
|
|
5991
|
+
var _excluded$v = ["children", "type", "label", "filled", "className"];
|
|
5990
5992
|
|
|
5991
5993
|
var getStatusColor = function getStatusColor(type, filled, theme) {
|
|
5992
5994
|
var colors = {
|
|
@@ -6022,7 +6024,7 @@ function NoteComponent(_ref) {
|
|
|
6022
6024
|
filled = _ref$filled === void 0 ? false : _ref$filled,
|
|
6023
6025
|
_ref$className = _ref.className,
|
|
6024
6026
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6025
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6027
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6026
6028
|
|
|
6027
6029
|
var theme = useTheme();
|
|
6028
6030
|
|
|
@@ -6051,12 +6053,12 @@ NoteComponent.displayName = 'BolioUINote';
|
|
|
6051
6053
|
var Note = withScale$1(NoteComponent);
|
|
6052
6054
|
var Note$1 = Note;
|
|
6053
6055
|
|
|
6054
|
-
var _excluded$
|
|
6056
|
+
var _excluded$u = ["className", "children"];
|
|
6055
6057
|
|
|
6056
6058
|
function PageContentComponent(_ref) {
|
|
6057
6059
|
var className = _ref.className,
|
|
6058
6060
|
children = _ref.children,
|
|
6059
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6061
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6060
6062
|
|
|
6061
6063
|
var _useScale = useScale(),
|
|
6062
6064
|
SCALES = _useScale.SCALES;
|
|
@@ -6073,7 +6075,7 @@ PageContentComponent.displayName = 'BolioUIPageContent';
|
|
|
6073
6075
|
var PageContent = withScale$1(PageContentComponent);
|
|
6074
6076
|
var PageContent$1 = PageContent;
|
|
6075
6077
|
|
|
6076
|
-
var _excluded$
|
|
6078
|
+
var _excluded$t = ["children", "render", "dotBackdrop", "className", "dotSize", "dotSpace"];
|
|
6077
6079
|
tuple('default', 'effect', 'effect-seo');
|
|
6078
6080
|
|
|
6079
6081
|
var DotStyles = function DotStyles(_ref) {
|
|
@@ -6104,7 +6106,7 @@ function PageComponent(_ref2) {
|
|
|
6104
6106
|
dotSize = _ref2$dotSize === void 0 ? '1px' : _ref2$dotSize,
|
|
6105
6107
|
_ref2$dotSpace = _ref2.dotSpace,
|
|
6106
6108
|
dotSpace = _ref2$dotSpace === void 0 ? 1 : _ref2$dotSpace,
|
|
6107
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6109
|
+
props = _objectWithoutProperties(_ref2, _excluded$t);
|
|
6108
6110
|
|
|
6109
6111
|
var theme = useTheme();
|
|
6110
6112
|
|
|
@@ -6152,7 +6154,7 @@ PageComponent.displayName = 'BolioUIPage';
|
|
|
6152
6154
|
var Page = withScale$1(PageComponent);
|
|
6153
6155
|
var Page$1 = Page;
|
|
6154
6156
|
|
|
6155
|
-
var _excluded$
|
|
6157
|
+
var _excluded$s = ["children", "center", "className"];
|
|
6156
6158
|
|
|
6157
6159
|
function PageHeaderComponent(_ref) {
|
|
6158
6160
|
var children = _ref.children,
|
|
@@ -6160,7 +6162,7 @@ function PageHeaderComponent(_ref) {
|
|
|
6160
6162
|
center = _ref$center === void 0 ? false : _ref$center,
|
|
6161
6163
|
_ref$className = _ref.className,
|
|
6162
6164
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6163
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6165
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6164
6166
|
|
|
6165
6167
|
var _useScale = useScale(),
|
|
6166
6168
|
SCALES = _useScale.SCALES;
|
|
@@ -6180,11 +6182,11 @@ PageHeaderComponent.displayName = 'BolioUIPageHeader';
|
|
|
6180
6182
|
var PageHeader = withScale$1(PageHeaderComponent);
|
|
6181
6183
|
var PageHeader$1 = PageHeader;
|
|
6182
6184
|
|
|
6183
|
-
var _excluded$
|
|
6185
|
+
var _excluded$r = ["children"];
|
|
6184
6186
|
|
|
6185
6187
|
function PageFooterComponent(_ref) {
|
|
6186
6188
|
var children = _ref.children,
|
|
6187
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6189
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6188
6190
|
|
|
6189
6191
|
var _useScale = useScale(),
|
|
6190
6192
|
SCALES = _useScale.SCALES;
|
|
@@ -6206,14 +6208,14 @@ Page$1.Content = PageContent$1;
|
|
|
6206
6208
|
Page$1.Body = PageContent$1;
|
|
6207
6209
|
Page$1.Footer = PageFooter$1;
|
|
6208
6210
|
|
|
6209
|
-
var _excluded$
|
|
6211
|
+
var _excluded$q = ["active", "children", "disabled", "onClick"];
|
|
6210
6212
|
|
|
6211
6213
|
function PaginationItem(_ref) {
|
|
6212
6214
|
var active = _ref.active,
|
|
6213
6215
|
children = _ref.children,
|
|
6214
6216
|
disabled = _ref.disabled,
|
|
6215
6217
|
onClick = _ref.onClick,
|
|
6216
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6218
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
6217
6219
|
|
|
6218
6220
|
var theme = useTheme();
|
|
6219
6221
|
|
|
@@ -6249,17 +6251,17 @@ function PaginationItem(_ref) {
|
|
|
6249
6251
|
PaginationItem.displayName = 'BolioUIPaginationItem';
|
|
6250
6252
|
|
|
6251
6253
|
tuple('prev', 'next', 'click');
|
|
6252
|
-
var defaultContext$
|
|
6253
|
-
var PaginationContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
6254
|
+
var defaultContext$5 = {};
|
|
6255
|
+
var PaginationContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$5);
|
|
6254
6256
|
var usePaginationContext = function usePaginationContext() {
|
|
6255
6257
|
return React__default["default"].useContext(PaginationContext);
|
|
6256
6258
|
};
|
|
6257
6259
|
|
|
6258
|
-
var _excluded$
|
|
6260
|
+
var _excluded$p = ["children"];
|
|
6259
6261
|
|
|
6260
6262
|
function PaginationPrevious(_ref) {
|
|
6261
6263
|
var children = _ref.children,
|
|
6262
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6264
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
6263
6265
|
|
|
6264
6266
|
var _usePaginationContext = usePaginationContext(),
|
|
6265
6267
|
update = _usePaginationContext.update,
|
|
@@ -6275,11 +6277,11 @@ function PaginationPrevious(_ref) {
|
|
|
6275
6277
|
|
|
6276
6278
|
PaginationPrevious.displayName = 'BolioUIPaginationPrevious';
|
|
6277
6279
|
|
|
6278
|
-
var _excluded$
|
|
6280
|
+
var _excluded$o = ["children"];
|
|
6279
6281
|
|
|
6280
6282
|
function PaginationNext(_ref) {
|
|
6281
6283
|
var children = _ref.children,
|
|
6282
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6284
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6283
6285
|
|
|
6284
6286
|
var _usePaginationContext = usePaginationContext(),
|
|
6285
6287
|
update = _usePaginationContext.update,
|
|
@@ -6447,7 +6449,7 @@ function PaginationPages(_ref) {
|
|
|
6447
6449
|
|
|
6448
6450
|
PaginationPages.displayName = 'BolioUIPaginationPages';
|
|
6449
6451
|
|
|
6450
|
-
var _excluded$
|
|
6452
|
+
var _excluded$n = ["page", "initialPage", "count", "limit", "children", "onChange", "className"];
|
|
6451
6453
|
|
|
6452
6454
|
function PaginationComponent(_ref) {
|
|
6453
6455
|
var customPage = _ref.page,
|
|
@@ -6461,7 +6463,7 @@ function PaginationComponent(_ref) {
|
|
|
6461
6463
|
onChange = _ref.onChange,
|
|
6462
6464
|
_ref$className = _ref.className,
|
|
6463
6465
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6464
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6466
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6465
6467
|
|
|
6466
6468
|
var _useScale = useScale(),
|
|
6467
6469
|
SCALES = _useScale.SCALES;
|
|
@@ -6876,7 +6878,7 @@ var TooltipContent = function TooltipContent(_ref) {
|
|
|
6876
6878
|
|
|
6877
6879
|
var TooltipContent$1 = TooltipContent;
|
|
6878
6880
|
|
|
6879
|
-
var _excluded$
|
|
6881
|
+
var _excluded$m = ["children", "initialVisible", "text", "offset", "placement", "portalClassName", "enterDelay", "leaveDelay", "trigger", "type", "className", "onVisibleChange", "hideArrow", "visible"];
|
|
6880
6882
|
|
|
6881
6883
|
function TooltipComponent(_ref) {
|
|
6882
6884
|
var children = _ref.children,
|
|
@@ -6905,7 +6907,7 @@ function TooltipComponent(_ref) {
|
|
|
6905
6907
|
_ref$hideArrow = _ref.hideArrow,
|
|
6906
6908
|
hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
|
|
6907
6909
|
customVisible = _ref.visible,
|
|
6908
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6910
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
6909
6911
|
|
|
6910
6912
|
var timer = React.useRef();
|
|
6911
6913
|
var ref = React.useRef(null);
|
|
@@ -6999,16 +7001,16 @@ TooltipComponent.displayName = 'BolioUITooltip';
|
|
|
6999
7001
|
var Tooltip = withScale$1(TooltipComponent);
|
|
7000
7002
|
var Tooltip$1 = Tooltip;
|
|
7001
7003
|
|
|
7002
|
-
var defaultContext$
|
|
7004
|
+
var defaultContext$4 = {
|
|
7003
7005
|
disableItemsAutoClose: false,
|
|
7004
7006
|
onItemClick: function onItemClick() {}
|
|
7005
7007
|
};
|
|
7006
|
-
var PopoverContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7008
|
+
var PopoverContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$4);
|
|
7007
7009
|
var usePopoverContext = function usePopoverContext() {
|
|
7008
7010
|
return React.useContext(PopoverContext);
|
|
7009
7011
|
};
|
|
7010
7012
|
|
|
7011
|
-
var _excluded$
|
|
7013
|
+
var _excluded$l = ["content", "children", "disableItemsAutoClose", "trigger", "placement", "portalClassName", "type", "visible", "onVisibleChange"];
|
|
7012
7014
|
|
|
7013
7015
|
function PopoverComponent(_ref) {
|
|
7014
7016
|
var content = _ref.content,
|
|
@@ -7026,7 +7028,7 @@ function PopoverComponent(_ref) {
|
|
|
7026
7028
|
customVisible = _ref.visible,
|
|
7027
7029
|
_ref$onVisibleChange = _ref.onVisibleChange,
|
|
7028
7030
|
onVisibleChange = _ref$onVisibleChange === void 0 ? function () {} : _ref$onVisibleChange,
|
|
7029
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7031
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7030
7032
|
|
|
7031
7033
|
var _useScale = useScale(),
|
|
7032
7034
|
SCALES = _useScale.SCALES;
|
|
@@ -7082,7 +7084,7 @@ PopoverComponent.displayName = 'BolioUIPopover';
|
|
|
7082
7084
|
var Popover = withScale$1(PopoverComponent);
|
|
7083
7085
|
var Popover$1 = Popover;
|
|
7084
7086
|
|
|
7085
|
-
var _excluded$
|
|
7087
|
+
var _excluded$k = ["children", "line", "title", "className", "onClick", "disableAutoClose"];
|
|
7086
7088
|
|
|
7087
7089
|
function PopoverItemComponent(_ref) {
|
|
7088
7090
|
var children = _ref.children,
|
|
@@ -7095,7 +7097,7 @@ function PopoverItemComponent(_ref) {
|
|
|
7095
7097
|
onClick = _ref.onClick,
|
|
7096
7098
|
_ref$disableAutoClose = _ref.disableAutoClose,
|
|
7097
7099
|
disableAutoClose = _ref$disableAutoClose === void 0 ? false : _ref$disableAutoClose,
|
|
7098
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7100
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7099
7101
|
|
|
7100
7102
|
var theme = useTheme();
|
|
7101
7103
|
|
|
@@ -7143,7 +7145,7 @@ var PopoverItem$1 = PopoverItem;
|
|
|
7143
7145
|
Popover$1.Item = PopoverItem$1;
|
|
7144
7146
|
Popover$1.Option = PopoverItem$1;
|
|
7145
7147
|
|
|
7146
|
-
var _excluded$
|
|
7148
|
+
var _excluded$j = ["value", "max", "className", "type", "colors", "fixedTop", "fixedBottom"];
|
|
7147
7149
|
|
|
7148
7150
|
var getCurrentColor = function getCurrentColor(ratio, palette, type) {
|
|
7149
7151
|
var colors = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -7179,7 +7181,7 @@ function ProgressComponent(_ref) {
|
|
|
7179
7181
|
fixedTop = _ref$fixedTop === void 0 ? false : _ref$fixedTop,
|
|
7180
7182
|
_ref$fixedBottom = _ref.fixedBottom,
|
|
7181
7183
|
fixedBottom = _ref$fixedBottom === void 0 ? false : _ref$fixedBottom,
|
|
7182
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7184
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7183
7185
|
|
|
7184
7186
|
var theme = useTheme();
|
|
7185
7187
|
|
|
@@ -7212,22 +7214,22 @@ ProgressComponent.displayName = 'BolioUIProgress';
|
|
|
7212
7214
|
var Progress = withScale$1(ProgressComponent);
|
|
7213
7215
|
var Progress$1 = Progress;
|
|
7214
7216
|
|
|
7215
|
-
var defaultContext$
|
|
7217
|
+
var defaultContext$3 = {
|
|
7216
7218
|
disabledAll: false,
|
|
7217
7219
|
inGroup: false
|
|
7218
7220
|
};
|
|
7219
|
-
var RadioContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7221
|
+
var RadioContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$3);
|
|
7220
7222
|
var useRadioContext = function useRadioContext() {
|
|
7221
7223
|
return React__default["default"].useContext(RadioContext);
|
|
7222
7224
|
};
|
|
7223
7225
|
|
|
7224
|
-
var _excluded$
|
|
7226
|
+
var _excluded$i = ["className", "children"];
|
|
7225
7227
|
|
|
7226
7228
|
function RadioDescriptionComponent(_ref) {
|
|
7227
7229
|
var _ref$className = _ref.className,
|
|
7228
7230
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7229
7231
|
children = _ref.children,
|
|
7230
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7232
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7231
7233
|
|
|
7232
7234
|
var theme = useTheme();
|
|
7233
7235
|
|
|
@@ -7288,7 +7290,7 @@ var getColors$4 = function getColors(palette, status) {
|
|
|
7288
7290
|
return colors[status];
|
|
7289
7291
|
};
|
|
7290
7292
|
|
|
7291
|
-
var _excluded$
|
|
7293
|
+
var _excluded$h = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
|
|
7292
7294
|
|
|
7293
7295
|
function RadioComponent(_ref) {
|
|
7294
7296
|
var _ref$className = _ref.className,
|
|
@@ -7301,7 +7303,7 @@ function RadioComponent(_ref) {
|
|
|
7301
7303
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
7302
7304
|
radioValue = _ref.value,
|
|
7303
7305
|
children = _ref.children,
|
|
7304
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7306
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7305
7307
|
|
|
7306
7308
|
var theme = useTheme();
|
|
7307
7309
|
|
|
@@ -7399,7 +7401,7 @@ RadioComponent.displayName = 'BolioUIRadio';
|
|
|
7399
7401
|
var Radio = withScale$1(RadioComponent);
|
|
7400
7402
|
var Radio$1 = Radio;
|
|
7401
7403
|
|
|
7402
|
-
var _excluded$
|
|
7404
|
+
var _excluded$g = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
|
|
7403
7405
|
|
|
7404
7406
|
function RadioGroupComponent(_ref) {
|
|
7405
7407
|
var _ref$disabled = _ref.disabled,
|
|
@@ -7412,7 +7414,7 @@ function RadioGroupComponent(_ref) {
|
|
|
7412
7414
|
initialValue = _ref.initialValue,
|
|
7413
7415
|
_ref$useRow = _ref.useRow,
|
|
7414
7416
|
useRow = _ref$useRow === void 0 ? false : _ref$useRow,
|
|
7415
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7417
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
7416
7418
|
|
|
7417
7419
|
var _useScale = useScale(),
|
|
7418
7420
|
SCALES = _useScale.SCALES;
|
|
@@ -7475,7 +7477,7 @@ function RatingIcon() {
|
|
|
7475
7477
|
|
|
7476
7478
|
RatingIcon.displayName = 'BolioUIRatingIcon';
|
|
7477
7479
|
|
|
7478
|
-
var _excluded$
|
|
7480
|
+
var _excluded$f = ["type", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
|
|
7479
7481
|
tupleNumber(2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
7480
7482
|
tupleNumber(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
7481
7483
|
|
|
@@ -7508,7 +7510,7 @@ function RatingComponent(_ref) {
|
|
|
7508
7510
|
_ref$locked = _ref.locked,
|
|
7509
7511
|
locked = _ref$locked === void 0 ? false : _ref$locked,
|
|
7510
7512
|
onLockedChange = _ref.onLockedChange,
|
|
7511
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7513
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
7512
7514
|
|
|
7513
7515
|
var theme = useTheme();
|
|
7514
7516
|
|
|
@@ -7580,8 +7582,8 @@ RatingComponent.displayName = 'BolioUIRating';
|
|
|
7580
7582
|
var Rating = withScale$1(RatingComponent);
|
|
7581
7583
|
var Rating$1 = Rating;
|
|
7582
7584
|
|
|
7583
|
-
var _excluded$
|
|
7584
|
-
var defaultProps$
|
|
7585
|
+
var _excluded$e = ["children", "component", "gap", "justify", "align", "className"];
|
|
7586
|
+
var defaultProps$5 = {
|
|
7585
7587
|
gap: 0,
|
|
7586
7588
|
justify: 'start',
|
|
7587
7589
|
align: 'top',
|
|
@@ -7613,7 +7615,7 @@ function Row(_ref) {
|
|
|
7613
7615
|
justify = _ref.justify,
|
|
7614
7616
|
align = _ref.align,
|
|
7615
7617
|
className = _ref.className,
|
|
7616
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7618
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
7617
7619
|
|
|
7618
7620
|
var Component = component;
|
|
7619
7621
|
var theme = useTheme();
|
|
@@ -7632,10 +7634,10 @@ function Row(_ref) {
|
|
|
7632
7634
|
}, ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;position:relative;box-sizing:border-box;margin-left:calc(".concat(gap, " * ").concat(theme.layout.gap, " / 2);margin-right:calc(").concat(gap, " * ").concat(theme.layout.gap, " / 2);--row-gap:calc(").concat(gap, " * ").concat(theme.layout.gap, ");-webkit-box-pack:").concat(justifyValue, ";-webkit-justify-content:").concat(justifyValue, ";-ms-flex-pack:").concat(justifyValue, ";justify-content:").concat(justifyValue, ";-webkit-align-items:").concat(alignValue, ";-webkit-box-align:").concat(alignValue, ";-ms-flex-align:").concat(alignValue, ";align-items:").concat(alignValue, ";}")));
|
|
7633
7635
|
}
|
|
7634
7636
|
|
|
7635
|
-
Row.defaultProps = defaultProps$
|
|
7637
|
+
Row.defaultProps = defaultProps$5;
|
|
7636
7638
|
Row.displayName = 'BolioUIRow';
|
|
7637
7639
|
|
|
7638
|
-
var _excluded$
|
|
7640
|
+
var _excluded$d = ["children", "bg", "className"];
|
|
7639
7641
|
|
|
7640
7642
|
function SectionComponent(_ref) {
|
|
7641
7643
|
var children = _ref.children,
|
|
@@ -7643,7 +7645,7 @@ function SectionComponent(_ref) {
|
|
|
7643
7645
|
bg = _ref$bg === void 0 ? 'transparent' : _ref$bg,
|
|
7644
7646
|
_ref$className = _ref.className,
|
|
7645
7647
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7646
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7648
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
7647
7649
|
|
|
7648
7650
|
var _useScale = useScale(),
|
|
7649
7651
|
SCALES = _useScale.SCALES;
|
|
@@ -7681,11 +7683,11 @@ SelectIconComponent.displayName = 'BolioUISelectIcon';
|
|
|
7681
7683
|
var SelectIcon = /*#__PURE__*/React__default["default"].memo(SelectIconComponent);
|
|
7682
7684
|
var SelectIcon$1 = SelectIcon;
|
|
7683
7685
|
|
|
7684
|
-
var defaultContext$
|
|
7686
|
+
var defaultContext$2 = {
|
|
7685
7687
|
visible: false,
|
|
7686
7688
|
disableAll: false
|
|
7687
7689
|
};
|
|
7688
|
-
var SelectContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7690
|
+
var SelectContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$2);
|
|
7689
7691
|
var useSelectContext = function useSelectContext() {
|
|
7690
7692
|
return React__default["default"].useContext(SelectContext);
|
|
7691
7693
|
};
|
|
@@ -8081,8 +8083,8 @@ var SelectInput = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
|
8081
8083
|
SelectInput.displayName = 'BolioUISelectInput';
|
|
8082
8084
|
var SelectInput$1 = SelectInput;
|
|
8083
8085
|
|
|
8084
|
-
var _excluded$
|
|
8085
|
-
var defaultProps = {
|
|
8086
|
+
var _excluded$c = ["children", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
|
|
8087
|
+
var defaultProps$4 = {
|
|
8086
8088
|
disabled: false,
|
|
8087
8089
|
type: 'default',
|
|
8088
8090
|
icon: SelectIcon$1,
|
|
@@ -8120,7 +8122,7 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
8120
8122
|
getPopupContainer = _ref.getPopupContainer,
|
|
8121
8123
|
_ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
|
|
8122
8124
|
onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
|
|
8123
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8125
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8124
8126
|
|
|
8125
8127
|
var theme = useTheme();
|
|
8126
8128
|
|
|
@@ -8302,12 +8304,12 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
8302
8304
|
dynamic: [disabled ? 'not-allowed' : 'pointer', border, theme.layout.radius, disabled ? theme.palette.accents_1 : theme.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme.palette.border : borderActive, disabled ? theme.palette.accents_5 : borderActive, disabled ? theme.palette.accents_4 : theme.palette.foreground, placeholderColor, theme.layout.gapQuarter, visible ? '180' : '0', iconBorder]
|
|
8303
8305
|
}, ".select.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;position:relative;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";max-width:90vw;overflow:hidden;-webkit-transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;border:1px solid ").concat(border, ";border-radius:").concat(theme.layout.radius, ";background-color:").concat(disabled ? theme.palette.accents_1 : theme.palette.background, ";--select-font-size:").concat(SCALES.font(0.875), ";--select-height:").concat(SCALES.height(2.25), ";min-width:11.5em;width:").concat(SCALES.width(1, 'initial'), ";height:var(--select-height);padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.multiple.__jsx-style-dynamic-selector{height:auto;min-height:var(--select-height);padding:").concat(SCALES.pt(0.334), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0.334), " ").concat(SCALES.pl(0.667), ";}.select.active.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover{border-color:").concat(disabled ? theme.palette.border : borderActive, ";}.select.active.icon.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover .icon.__jsx-style-dynamic-selector{color:").concat(disabled ? theme.palette.accents_5 : borderActive, ";}.value.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0;margin-right:1.25em;font-size:var(--select-font-size);color:").concat(disabled ? theme.palette.accents_4 : theme.palette.foreground, ";width:calc(100% - 1.25em);}.value.__jsx-style-dynamic-selector>div,.value.__jsx-style-dynamic-selector>div:hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}.placeholder.__jsx-style-dynamic-selector{color:").concat(placeholderColor, ";}.icon.__jsx-style-dynamic-selector{position:absolute;right:").concat(theme.layout.gapQuarter, ";font-size:var(--select-font-size);top:50%;bottom:0;-webkit-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);-ms-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);pointer-events:none;-webkit-transition:-webkit-transform 200ms ease;-webkit-transition:transform 200ms ease;transition:transform 200ms ease;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(iconBorder, ";}"))));
|
|
8304
8306
|
});
|
|
8305
|
-
SelectComponent.defaultProps = defaultProps;
|
|
8307
|
+
SelectComponent.defaultProps = defaultProps$4;
|
|
8306
8308
|
SelectComponent.displayName = 'BolioUISelect';
|
|
8307
8309
|
var Select = withScale$1(SelectComponent);
|
|
8308
8310
|
var Select$1 = Select;
|
|
8309
8311
|
|
|
8310
|
-
var _excluded$
|
|
8312
|
+
var _excluded$b = ["value", "className", "children", "disabled", "divider", "label", "preventAllEvents"];
|
|
8311
8313
|
|
|
8312
8314
|
function SelectOptionComponent(_ref) {
|
|
8313
8315
|
var _ref$value = _ref.value,
|
|
@@ -8323,7 +8325,7 @@ function SelectOptionComponent(_ref) {
|
|
|
8323
8325
|
label = _ref$label === void 0 ? false : _ref$label,
|
|
8324
8326
|
_ref$preventAllEvents = _ref.preventAllEvents,
|
|
8325
8327
|
preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
|
|
8326
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8328
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
8327
8329
|
|
|
8328
8330
|
var theme = useTheme();
|
|
8329
8331
|
|
|
@@ -8556,7 +8558,7 @@ var getColors$2 = function getColors(palette, status) {
|
|
|
8556
8558
|
return colors[status];
|
|
8557
8559
|
};
|
|
8558
8560
|
|
|
8559
|
-
var _excluded$
|
|
8561
|
+
var _excluded$a = ["hideValue", "disabled", "type", "step", "max", "min", "initialValue", "value", "onChange", "className", "showMarkers"];
|
|
8560
8562
|
|
|
8561
8563
|
var getRefWidth = function getRefWidth(elementRef) {
|
|
8562
8564
|
if (!elementRef || !elementRef.current) return 0;
|
|
@@ -8594,7 +8596,7 @@ function SliderComponent(_ref) {
|
|
|
8594
8596
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8595
8597
|
_ref$showMarkers = _ref.showMarkers,
|
|
8596
8598
|
showMarkers = _ref$showMarkers === void 0 ? false : _ref$showMarkers,
|
|
8597
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8599
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
8598
8600
|
|
|
8599
8601
|
var theme = useTheme();
|
|
8600
8602
|
|
|
@@ -8954,7 +8956,7 @@ var useToasts = function useToasts(layout) {
|
|
|
8954
8956
|
|
|
8955
8957
|
var useToasts$1 = useToasts;
|
|
8956
8958
|
|
|
8957
|
-
var _excluded$
|
|
8959
|
+
var _excluded$9 = ["type", "filled", "rounded", "children", "symbol", "toastText", "toastType", "text", "copy", "className"];
|
|
8958
8960
|
|
|
8959
8961
|
var textArrayToString = function textArrayToString(text) {
|
|
8960
8962
|
return text.reduce(function (pre, current) {
|
|
@@ -8981,7 +8983,7 @@ function SnippetComponent(_ref) {
|
|
|
8981
8983
|
copyType = _ref.copy,
|
|
8982
8984
|
_ref$className = _ref.className,
|
|
8983
8985
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8984
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8986
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
8985
8987
|
|
|
8986
8988
|
var theme = useTheme();
|
|
8987
8989
|
|
|
@@ -9046,14 +9048,14 @@ SnippetComponent.displayName = 'BolioUISnippet';
|
|
|
9046
9048
|
var Snippet = withScale$1(SnippetComponent);
|
|
9047
9049
|
var Snippet$1 = Snippet;
|
|
9048
9050
|
|
|
9049
|
-
var _excluded$
|
|
9051
|
+
var _excluded$8 = ["inline", "className"];
|
|
9050
9052
|
|
|
9051
9053
|
var SpacerComponent = function SpacerComponent(_ref) {
|
|
9052
9054
|
var _ref$inline = _ref.inline,
|
|
9053
9055
|
inline = _ref$inline === void 0 ? false : _ref$inline,
|
|
9054
9056
|
_ref$className = _ref.className,
|
|
9055
9057
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
9056
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9058
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
9057
9059
|
|
|
9058
9060
|
var _useScale = useScale(),
|
|
9059
9061
|
SCALES = _useScale.SCALES;
|
|
@@ -9070,7 +9072,7 @@ SpacerComponent.displayName = 'BolioUISpacer';
|
|
|
9070
9072
|
var Spacer = withScale$1(SpacerComponent);
|
|
9071
9073
|
var Spacer$1 = Spacer;
|
|
9072
9074
|
|
|
9073
|
-
var _excluded$
|
|
9075
|
+
var _excluded$7 = ["className"];
|
|
9074
9076
|
|
|
9075
9077
|
var getSpans = function getSpans(theme) {
|
|
9076
9078
|
return _toConsumableArray(new Array(12)).map(function (_, index) {
|
|
@@ -9087,7 +9089,7 @@ var getSpans = function getSpans(theme) {
|
|
|
9087
9089
|
function SpinnerComponent(_ref) {
|
|
9088
9090
|
var _ref$className = _ref.className,
|
|
9089
9091
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
9090
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9092
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
9091
9093
|
|
|
9092
9094
|
var theme = useTheme();
|
|
9093
9095
|
|
|
@@ -9109,6 +9111,289 @@ SpinnerComponent.displayName = 'BolioUISpinner';
|
|
|
9109
9111
|
var Spinner = withScale$1(SpinnerComponent);
|
|
9110
9112
|
var Spinner$1 = Spinner;
|
|
9111
9113
|
|
|
9114
|
+
var defaultProps$3 = {
|
|
9115
|
+
className: ''
|
|
9116
|
+
};
|
|
9117
|
+
|
|
9118
|
+
var makeColgroup = function makeColgroup(width, columns) {
|
|
9119
|
+
var unsetWidthCount = columns.filter(function (c) {
|
|
9120
|
+
return !c.width;
|
|
9121
|
+
}).length;
|
|
9122
|
+
var customWidthTotal = columns.reduce(function (pre, current) {
|
|
9123
|
+
return current.width ? pre + current.width : pre;
|
|
9124
|
+
}, 0);
|
|
9125
|
+
var averageWidth = (width - customWidthTotal) / unsetWidthCount;
|
|
9126
|
+
if (averageWidth <= 0) return /*#__PURE__*/React__default["default"].createElement("colgroup", null);
|
|
9127
|
+
return /*#__PURE__*/React__default["default"].createElement("colgroup", null, columns.map(function (column, index) {
|
|
9128
|
+
return /*#__PURE__*/React__default["default"].createElement("col", {
|
|
9129
|
+
key: "colgroup-".concat(index),
|
|
9130
|
+
width: column.width || averageWidth
|
|
9131
|
+
});
|
|
9132
|
+
}));
|
|
9133
|
+
};
|
|
9134
|
+
|
|
9135
|
+
var TableHead = function TableHead(props) {
|
|
9136
|
+
var theme = useTheme();
|
|
9137
|
+
var _ref = props,
|
|
9138
|
+
columns = _ref.columns,
|
|
9139
|
+
width = _ref.width;
|
|
9140
|
+
var isScalableWidth = React.useMemo(function () {
|
|
9141
|
+
return columns.find(function (item) {
|
|
9142
|
+
return !!item.width;
|
|
9143
|
+
});
|
|
9144
|
+
}, [columns]);
|
|
9145
|
+
var colgroup = React.useMemo(function () {
|
|
9146
|
+
if (!isScalableWidth) return /*#__PURE__*/React__default["default"].createElement("colgroup", null);
|
|
9147
|
+
return makeColgroup(width, columns);
|
|
9148
|
+
}, [isScalableWidth, width]);
|
|
9149
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, colgroup, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
9150
|
+
className: styledJsx_cjs.style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
9151
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
9152
|
+
className: styledJsx_cjs.style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
9153
|
+
}, columns.map(function (column, index) {
|
|
9154
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
9155
|
+
key: "table-th-".concat(column.prop, "-").concat(index),
|
|
9156
|
+
className: styledJsx_cjs.style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + (column.className || "")
|
|
9157
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9158
|
+
className: styledJsx_cjs.style.dynamic([["134865897", [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + "thead-box"
|
|
9159
|
+
}, column.label));
|
|
9160
|
+
}))), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9161
|
+
id: "134865897",
|
|
9162
|
+
dynamic: [theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
|
|
9163
|
+
}, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;font-size:inherit;}th.__jsx-style-dynamic-selector{padding:0 0.5em;font-size:calc(0.75 * var(--table-font-size));font-weight:normal;text-align:left;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;vertical-align:middle;min-height:calc(2.5 * var(--table-font-size));color:".concat(theme.palette.accents_5, ";background:").concat(theme.palette.accents_1, ";border-bottom:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-radius:0;}th.__jsx-style-dynamic-selector:nth-child(1){border-bottom:1px solid ").concat(theme.palette.border, ";border-left:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}th.__jsx-style-dynamic-selector:last-child{border-bottom:1px solid ").concat(theme.palette.border, ";border-right:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.thead-box.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-align:center;min-height:calc(2.5 * var(--table-font-size));text-transform:uppercase;}")));
|
|
9164
|
+
};
|
|
9165
|
+
|
|
9166
|
+
TableHead.defaultProps = defaultProps$3;
|
|
9167
|
+
TableHead.displayName = 'BolioUITableHead';
|
|
9168
|
+
var TableHead$1 = TableHead;
|
|
9169
|
+
|
|
9170
|
+
var TableCell = function TableCell(_ref) {
|
|
9171
|
+
var columns = _ref.columns,
|
|
9172
|
+
row = _ref.row,
|
|
9173
|
+
rowIndex = _ref.rowIndex,
|
|
9174
|
+
emptyText = _ref.emptyText,
|
|
9175
|
+
onCellClick = _ref.onCellClick;
|
|
9176
|
+
|
|
9177
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
9178
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, columns.map(function (column, index) {
|
|
9179
|
+
var currentRowValue = row[column.prop];
|
|
9180
|
+
var cellValue = currentRowValue || emptyText;
|
|
9181
|
+
var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
|
|
9182
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
9183
|
+
key: "row-td-".concat(index, "-").concat(column.prop),
|
|
9184
|
+
onClick: function onClick() {
|
|
9185
|
+
return onCellClick && onCellClick(currentRowValue, rowIndex, index);
|
|
9186
|
+
},
|
|
9187
|
+
className: column.className
|
|
9188
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9189
|
+
className: "cell"
|
|
9190
|
+
}, shouldBeRenderElement ? shouldBeRenderElement : cellValue));
|
|
9191
|
+
}));
|
|
9192
|
+
/* eslint-enable */
|
|
9193
|
+
};
|
|
9194
|
+
|
|
9195
|
+
var TableCell$1 = TableCell;
|
|
9196
|
+
|
|
9197
|
+
var defaultContext$1 = {
|
|
9198
|
+
columns: [],
|
|
9199
|
+
updateColumn: function updateColumn() {}
|
|
9200
|
+
};
|
|
9201
|
+
var TableContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$1);
|
|
9202
|
+
var useTableContext = function useTableContext() {
|
|
9203
|
+
return React__default["default"].useContext(TableContext);
|
|
9204
|
+
};
|
|
9205
|
+
|
|
9206
|
+
var defaultProps$2 = {
|
|
9207
|
+
className: ''
|
|
9208
|
+
};
|
|
9209
|
+
|
|
9210
|
+
var TableBody = function TableBody(_ref) {
|
|
9211
|
+
var data = _ref.data,
|
|
9212
|
+
hover = _ref.hover,
|
|
9213
|
+
emptyText = _ref.emptyText,
|
|
9214
|
+
onRow = _ref.onRow,
|
|
9215
|
+
onCell = _ref.onCell,
|
|
9216
|
+
rowClassName = _ref.rowClassName;
|
|
9217
|
+
var theme = useTheme();
|
|
9218
|
+
|
|
9219
|
+
var _useTableContext = useTableContext(),
|
|
9220
|
+
columns = _useTableContext.columns;
|
|
9221
|
+
|
|
9222
|
+
var rowClickHandler = function rowClickHandler(row, index) {
|
|
9223
|
+
onRow && onRow(row, index);
|
|
9224
|
+
};
|
|
9225
|
+
|
|
9226
|
+
return /*#__PURE__*/React__default["default"].createElement("tbody", {
|
|
9227
|
+
className: styledJsx_cjs.style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
9228
|
+
}, data.map(function (row, index) {
|
|
9229
|
+
var className = rowClassName(row, index);
|
|
9230
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
9231
|
+
key: "tbody-row-".concat(index),
|
|
9232
|
+
onClick: function onClick() {
|
|
9233
|
+
return rowClickHandler(row, index);
|
|
9234
|
+
},
|
|
9235
|
+
className: styledJsx_cjs.style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]]) + " " + (useClasses$1({
|
|
9236
|
+
hover: hover
|
|
9237
|
+
}, className) || "")
|
|
9238
|
+
}, /*#__PURE__*/React__default["default"].createElement(TableCell$1, {
|
|
9239
|
+
columns: columns,
|
|
9240
|
+
row: row,
|
|
9241
|
+
rowIndex: index,
|
|
9242
|
+
emptyText: emptyText,
|
|
9243
|
+
onCellClick: onCell
|
|
9244
|
+
}));
|
|
9245
|
+
}), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9246
|
+
id: "3433300570",
|
|
9247
|
+
dynamic: [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]
|
|
9248
|
+
}, "tr.__jsx-style-dynamic-selector{-webkit-transition:background-color 0.25s ease;transition:background-color 0.25s ease;font-size:inherit;}tr.hover.__jsx-style-dynamic-selector:hover{background-color:".concat(theme.palette.accents_1, ";}tr.__jsx-style-dynamic-selector td{padding:0 0.5em;border-bottom:1px solid ").concat(theme.palette.border, ";color:").concat(theme.palette.accents_6, ";font-size:calc(0.875 * var(--table-font-size));text-align:left;}tr.__jsx-style-dynamic-selector .cell{min-height:calc(3.125 * var(--table-font-size));display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;}")));
|
|
9249
|
+
};
|
|
9250
|
+
|
|
9251
|
+
TableBody.defaultProps = defaultProps$2;
|
|
9252
|
+
TableBody.displayName = 'BolioUITableBody';
|
|
9253
|
+
var TableBody$1 = TableBody;
|
|
9254
|
+
|
|
9255
|
+
var defaultProps$1 = {
|
|
9256
|
+
className: '',
|
|
9257
|
+
render: function render() {}
|
|
9258
|
+
};
|
|
9259
|
+
|
|
9260
|
+
var TableColumn = function TableColumn(columnProps) {
|
|
9261
|
+
var _ref = columnProps,
|
|
9262
|
+
children = _ref.children,
|
|
9263
|
+
prop = _ref.prop,
|
|
9264
|
+
label = _ref.label,
|
|
9265
|
+
width = _ref.width,
|
|
9266
|
+
className = _ref.className,
|
|
9267
|
+
renderHandler = _ref.render;
|
|
9268
|
+
|
|
9269
|
+
var _useTableContext = useTableContext(),
|
|
9270
|
+
updateColumn = _useTableContext.updateColumn;
|
|
9271
|
+
|
|
9272
|
+
var safeProp = "".concat(prop).trim();
|
|
9273
|
+
|
|
9274
|
+
if (!safeProp) {
|
|
9275
|
+
useWarning$1('The props "prop" is required.', 'Table.Column');
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
React.useEffect(function () {
|
|
9279
|
+
updateColumn({
|
|
9280
|
+
label: children || label,
|
|
9281
|
+
prop: safeProp,
|
|
9282
|
+
width: width,
|
|
9283
|
+
className: className,
|
|
9284
|
+
renderHandler: renderHandler
|
|
9285
|
+
});
|
|
9286
|
+
}, [children, label, prop, width, className, renderHandler]);
|
|
9287
|
+
return null;
|
|
9288
|
+
};
|
|
9289
|
+
|
|
9290
|
+
TableColumn.defaultProps = defaultProps$1;
|
|
9291
|
+
TableColumn.displayName = 'BolioUITableColumn';
|
|
9292
|
+
var TableColumn$1 = TableColumn;
|
|
9293
|
+
|
|
9294
|
+
var _excluded$6 = ["children", "data", "initialData", "hover", "emptyText", "onRow", "onCell", "onChange", "className", "rowClassName"];
|
|
9295
|
+
var defaultProps = {
|
|
9296
|
+
hover: true,
|
|
9297
|
+
initialData: [],
|
|
9298
|
+
emptyText: '',
|
|
9299
|
+
className: '',
|
|
9300
|
+
rowClassName: function rowClassName() {
|
|
9301
|
+
return '';
|
|
9302
|
+
}
|
|
9303
|
+
};
|
|
9304
|
+
|
|
9305
|
+
function TableComponent(tableProps) {
|
|
9306
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
9307
|
+
var _ref = tableProps,
|
|
9308
|
+
children = _ref.children,
|
|
9309
|
+
customData = _ref.data,
|
|
9310
|
+
initialData = _ref.initialData,
|
|
9311
|
+
hover = _ref.hover,
|
|
9312
|
+
emptyText = _ref.emptyText,
|
|
9313
|
+
onRow = _ref.onRow,
|
|
9314
|
+
onCell = _ref.onCell;
|
|
9315
|
+
_ref.onChange;
|
|
9316
|
+
var className = _ref.className,
|
|
9317
|
+
rowClassName = _ref.rowClassName,
|
|
9318
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
9319
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
9320
|
+
|
|
9321
|
+
|
|
9322
|
+
var _useScale = useScale(),
|
|
9323
|
+
SCALES = _useScale.SCALES;
|
|
9324
|
+
|
|
9325
|
+
var ref = React.useRef(null);
|
|
9326
|
+
|
|
9327
|
+
var _useRealShape = useRealShape$1(ref),
|
|
9328
|
+
_useRealShape2 = _slicedToArray(_useRealShape, 2),
|
|
9329
|
+
width = _useRealShape2[0].width,
|
|
9330
|
+
updateShape = _useRealShape2[1];
|
|
9331
|
+
|
|
9332
|
+
var _useState = React.useState([]),
|
|
9333
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9334
|
+
columns = _useState2[0],
|
|
9335
|
+
setColumns = _useState2[1];
|
|
9336
|
+
|
|
9337
|
+
var _useState3 = React.useState(initialData),
|
|
9338
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
9339
|
+
data = _useState4[0],
|
|
9340
|
+
setData = _useState4[1];
|
|
9341
|
+
|
|
9342
|
+
var updateColumn = function updateColumn(column) {
|
|
9343
|
+
setColumns(function (last) {
|
|
9344
|
+
var hasColumn = last.find(function (item) {
|
|
9345
|
+
return item.prop === column.prop;
|
|
9346
|
+
});
|
|
9347
|
+
if (!hasColumn) return [].concat(_toConsumableArray(last), [column]);
|
|
9348
|
+
return last.map(function (item) {
|
|
9349
|
+
if (item.prop !== column.prop) return item;
|
|
9350
|
+
return column;
|
|
9351
|
+
});
|
|
9352
|
+
});
|
|
9353
|
+
};
|
|
9354
|
+
|
|
9355
|
+
var contextValue = React.useMemo(function () {
|
|
9356
|
+
return {
|
|
9357
|
+
columns: columns,
|
|
9358
|
+
updateColumn: updateColumn
|
|
9359
|
+
};
|
|
9360
|
+
}, [columns]);
|
|
9361
|
+
React.useEffect(function () {
|
|
9362
|
+
if (typeof customData === 'undefined') return;
|
|
9363
|
+
setData(customData);
|
|
9364
|
+
}, [customData]);
|
|
9365
|
+
useResize$1(function () {
|
|
9366
|
+
return updateShape();
|
|
9367
|
+
});
|
|
9368
|
+
return /*#__PURE__*/React__default["default"].createElement(TableContext.Provider, {
|
|
9369
|
+
value: contextValue
|
|
9370
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", _extends({
|
|
9371
|
+
ref: ref
|
|
9372
|
+
}, props, {
|
|
9373
|
+
className: styledJsx_cjs.style.dynamic([["2991182230", [SCALES.font(1), SCALES.width(1, '100%'), 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)]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
9374
|
+
}), /*#__PURE__*/React__default["default"].createElement(TableHead$1, {
|
|
9375
|
+
columns: columns,
|
|
9376
|
+
width: width
|
|
9377
|
+
}), /*#__PURE__*/React__default["default"].createElement(TableBody$1, {
|
|
9378
|
+
data: data,
|
|
9379
|
+
hover: hover,
|
|
9380
|
+
emptyText: emptyText,
|
|
9381
|
+
onRow: onRow,
|
|
9382
|
+
onCell: onCell,
|
|
9383
|
+
rowClassName: rowClassName
|
|
9384
|
+
}), children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9385
|
+
id: "2991182230",
|
|
9386
|
+
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), 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)]
|
|
9387
|
+
}, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";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), ";}"))));
|
|
9388
|
+
}
|
|
9389
|
+
|
|
9390
|
+
TableComponent.defaultProps = defaultProps;
|
|
9391
|
+
TableComponent.displayName = 'BolioUITable';
|
|
9392
|
+
TableComponent.Column = TableColumn$1;
|
|
9393
|
+
var Table = withScale$1(TableComponent);
|
|
9394
|
+
Table.Column = TableColumn$1;
|
|
9395
|
+
var Table$1 = Table;
|
|
9396
|
+
|
|
9112
9397
|
var defaultContext = {
|
|
9113
9398
|
inGroup: false
|
|
9114
9399
|
};
|
|
@@ -9950,6 +10235,7 @@ exports.Slider = Slider$1;
|
|
|
9950
10235
|
exports.Snippet = Snippet$1;
|
|
9951
10236
|
exports.Spacer = Spacer$1;
|
|
9952
10237
|
exports.Spinner = Spinner$1;
|
|
10238
|
+
exports.Table = Table$1;
|
|
9953
10239
|
exports.Tabs = Tabs$1;
|
|
9954
10240
|
exports.Tag = Tag$1;
|
|
9955
10241
|
exports.Text = Text$1;
|