@bolio-ui/core 1.0.2 → 1.0.3
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/index.js +485 -201
- package/dist/table/index.js +1139 -0
- 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$e = {
|
|
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$e;
|
|
1384
1384
|
CssTransition.displayName = 'BolioUICssTransition';
|
|
1385
1385
|
|
|
1386
|
-
var defaultProps$
|
|
1386
|
+
var defaultProps$d = {
|
|
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$d;
|
|
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$c = {
|
|
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$c;
|
|
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$b = {
|
|
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$b;
|
|
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,7 +3186,7 @@ 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
3190
|
|
|
3191
3191
|
function CardComponent(_ref) {
|
|
3192
3192
|
var children = _ref.children,
|
|
@@ -3200,7 +3200,7 @@ function CardComponent(_ref) {
|
|
|
3200
3200
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
3201
3201
|
_ref$type = _ref.type,
|
|
3202
3202
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
3203
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3203
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
3204
3204
|
|
|
3205
3205
|
var theme = useTheme();
|
|
3206
3206
|
|
|
@@ -3249,12 +3249,12 @@ Card$1.Actions = CardFooter$1;
|
|
|
3249
3249
|
Card$1.Content = CardContent$1;
|
|
3250
3250
|
Card$1.Body = CardContent$1;
|
|
3251
3251
|
|
|
3252
|
-
var defaultContext$
|
|
3252
|
+
var defaultContext$9 = {
|
|
3253
3253
|
disabledAll: false,
|
|
3254
3254
|
inGroup: false,
|
|
3255
3255
|
values: []
|
|
3256
3256
|
};
|
|
3257
|
-
var CheckboxContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
3257
|
+
var CheckboxContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$9);
|
|
3258
3258
|
var useCheckbox = function useCheckbox() {
|
|
3259
3259
|
return React__default["default"].useContext(CheckboxContext);
|
|
3260
3260
|
};
|
|
@@ -3359,7 +3359,7 @@ var getColors$7 = function getColors(palette, status) {
|
|
|
3359
3359
|
return colors[status];
|
|
3360
3360
|
};
|
|
3361
3361
|
|
|
3362
|
-
var _excluded
|
|
3362
|
+
var _excluded$10 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value"];
|
|
3363
3363
|
|
|
3364
3364
|
function CheckboxComponent(_ref) {
|
|
3365
3365
|
var checked = _ref.checked,
|
|
@@ -3375,7 +3375,7 @@ function CheckboxComponent(_ref) {
|
|
|
3375
3375
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
3376
3376
|
_ref$value = _ref.value,
|
|
3377
3377
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
3378
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3378
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
3379
3379
|
|
|
3380
3380
|
var theme = useTheme();
|
|
3381
3381
|
|
|
@@ -3462,7 +3462,7 @@ CheckboxComponent.displayName = 'BolioUICheckbox';
|
|
|
3462
3462
|
var Checkbox = withScale$1(CheckboxComponent);
|
|
3463
3463
|
var Checkbox$1 = Checkbox;
|
|
3464
3464
|
|
|
3465
|
-
var _excluded
|
|
3465
|
+
var _excluded$$ = ["disabled", "onChange", "value", "children", "className"];
|
|
3466
3466
|
|
|
3467
3467
|
function CheckboxGroupComponent(_ref) {
|
|
3468
3468
|
var _ref$disabled = _ref.disabled,
|
|
@@ -3472,7 +3472,7 @@ function CheckboxGroupComponent(_ref) {
|
|
|
3472
3472
|
children = _ref.children,
|
|
3473
3473
|
_ref$className = _ref.className,
|
|
3474
3474
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3475
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
3475
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
3476
3476
|
|
|
3477
3477
|
var _useScale = useScale(),
|
|
3478
3478
|
SCALES = _useScale.SCALES;
|
|
@@ -3525,7 +3525,7 @@ var CheckboxGroup$1 = CheckboxGroup;
|
|
|
3525
3525
|
|
|
3526
3526
|
Checkbox$1.Group = CheckboxGroup$1;
|
|
3527
3527
|
|
|
3528
|
-
var _excluded$
|
|
3528
|
+
var _excluded$_ = ["children", "block", "className", "name", "classic"];
|
|
3529
3529
|
|
|
3530
3530
|
function CodeComponent(_ref) {
|
|
3531
3531
|
var children = _ref.children,
|
|
@@ -3537,7 +3537,7 @@ function CodeComponent(_ref) {
|
|
|
3537
3537
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
3538
3538
|
_ref$classic = _ref.classic,
|
|
3539
3539
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
3540
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3540
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
3541
3541
|
|
|
3542
3542
|
var _useScale = useScale(),
|
|
3543
3543
|
SCALES = _useScale.SCALES;
|
|
@@ -3576,7 +3576,7 @@ CodeComponent.displayName = 'BolioUICode';
|
|
|
3576
3576
|
var Code = withScale$1(CodeComponent);
|
|
3577
3577
|
var Code$1 = Code;
|
|
3578
3578
|
|
|
3579
|
-
var _excluded$
|
|
3579
|
+
var _excluded$Z = ["component", "children", "span", "offset", "className"];
|
|
3580
3580
|
|
|
3581
3581
|
function Col(_ref) {
|
|
3582
3582
|
var _ref$component = _ref.component,
|
|
@@ -3588,7 +3588,7 @@ function Col(_ref) {
|
|
|
3588
3588
|
offset = _ref$offset === void 0 ? 0 : _ref$offset,
|
|
3589
3589
|
_ref$className = _ref.className,
|
|
3590
3590
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3591
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3591
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
3592
3592
|
|
|
3593
3593
|
var Component = component;
|
|
3594
3594
|
return /*#__PURE__*/React__default["default"].createElement(Component, _extends({}, props, {
|
|
@@ -3679,7 +3679,7 @@ var useRealShape = function useRealShape(ref) {
|
|
|
3679
3679
|
|
|
3680
3680
|
var useRealShape$1 = useRealShape;
|
|
3681
3681
|
|
|
3682
|
-
var defaultProps$
|
|
3682
|
+
var defaultProps$a = {
|
|
3683
3683
|
isExpanded: false,
|
|
3684
3684
|
delay: 200
|
|
3685
3685
|
};
|
|
@@ -3766,18 +3766,18 @@ function Expand(_ref) {
|
|
|
3766
3766
|
}, ".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
3767
|
}
|
|
3768
3768
|
|
|
3769
|
-
Expand.defaultProps = defaultProps$
|
|
3769
|
+
Expand.defaultProps = defaultProps$a;
|
|
3770
3770
|
Expand.displayName = 'BolioUIExpand';
|
|
3771
3771
|
|
|
3772
|
-
var defaultContext$
|
|
3772
|
+
var defaultContext$8 = {
|
|
3773
3773
|
values: []
|
|
3774
3774
|
};
|
|
3775
|
-
var CollapseContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
3775
|
+
var CollapseContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$8);
|
|
3776
3776
|
var useCollapseContext = function useCollapseContext() {
|
|
3777
3777
|
return React__default["default"].useContext(CollapseContext);
|
|
3778
3778
|
};
|
|
3779
3779
|
|
|
3780
|
-
var _excluded$
|
|
3780
|
+
var _excluded$Y = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
3781
3781
|
|
|
3782
3782
|
function CollapseComponent(_ref) {
|
|
3783
3783
|
var children = _ref.children,
|
|
@@ -3790,7 +3790,7 @@ function CollapseComponent(_ref) {
|
|
|
3790
3790
|
_ref$className = _ref.className,
|
|
3791
3791
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3792
3792
|
index = _ref.index,
|
|
3793
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3793
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
3794
3794
|
|
|
3795
3795
|
var theme = useTheme();
|
|
3796
3796
|
|
|
@@ -3858,7 +3858,7 @@ CollapseComponent.displayName = 'BolioUICollapse';
|
|
|
3858
3858
|
var Collapse = withScale$1(CollapseComponent);
|
|
3859
3859
|
var Collapse$1 = Collapse;
|
|
3860
3860
|
|
|
3861
|
-
var _excluded$
|
|
3861
|
+
var _excluded$X = ["children", "accordion", "className"];
|
|
3862
3862
|
|
|
3863
3863
|
function CollapseGroupComponent(_ref) {
|
|
3864
3864
|
var children = _ref.children,
|
|
@@ -3866,7 +3866,7 @@ function CollapseGroupComponent(_ref) {
|
|
|
3866
3866
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
3867
3867
|
_ref$className = _ref.className,
|
|
3868
3868
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3869
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3869
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
3870
3870
|
|
|
3871
3871
|
var _useScale = useScale(),
|
|
3872
3872
|
SCALES = _useScale.SCALES;
|
|
@@ -3924,8 +3924,8 @@ var CollapseGroup$1 = CollapseGroup;
|
|
|
3924
3924
|
|
|
3925
3925
|
Collapse$1.Group = CollapseGroup$1;
|
|
3926
3926
|
|
|
3927
|
-
var _excluded$
|
|
3928
|
-
var defaultProps$
|
|
3927
|
+
var _excluded$W = ["children", "component", "justify", "align", "fluid", "className"];
|
|
3928
|
+
var defaultProps$9 = {
|
|
3929
3929
|
gap: 0,
|
|
3930
3930
|
justify: 'start',
|
|
3931
3931
|
align: 'top',
|
|
@@ -3958,7 +3958,7 @@ function Container(_ref) {
|
|
|
3958
3958
|
align = _ref.align,
|
|
3959
3959
|
fluid = _ref.fluid,
|
|
3960
3960
|
className = _ref.className,
|
|
3961
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3961
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
3962
3962
|
|
|
3963
3963
|
var Component = component;
|
|
3964
3964
|
var theme = useTheme();
|
|
@@ -3978,10 +3978,10 @@ function Container(_ref) {
|
|
|
3978
3978
|
}, ".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
3979
|
}
|
|
3980
3980
|
|
|
3981
|
-
Container.defaultProps = defaultProps$
|
|
3981
|
+
Container.defaultProps = defaultProps$9;
|
|
3982
3982
|
Container.displayName = 'BolioUIContainer';
|
|
3983
3983
|
|
|
3984
|
-
var _excluded$
|
|
3984
|
+
var _excluded$V = ["title", "content", "className"];
|
|
3985
3985
|
|
|
3986
3986
|
function DescriptionComponent(_ref) {
|
|
3987
3987
|
var _ref$title = _ref.title,
|
|
@@ -3990,7 +3990,7 @@ function DescriptionComponent(_ref) {
|
|
|
3990
3990
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
3991
3991
|
_ref$className = _ref.className,
|
|
3992
3992
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3993
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
3994
3994
|
|
|
3995
3995
|
var theme = useTheme();
|
|
3996
3996
|
|
|
@@ -4014,7 +4014,7 @@ DescriptionComponent.displayName = 'BolioUIDescription';
|
|
|
4014
4014
|
var Description = withScale$1(DescriptionComponent);
|
|
4015
4015
|
var Description$1 = Description;
|
|
4016
4016
|
|
|
4017
|
-
var _excluded$
|
|
4017
|
+
var _excluded$U = ["children", "caption", "shadow", "className"];
|
|
4018
4018
|
|
|
4019
4019
|
function DisplayComponent(_ref) {
|
|
4020
4020
|
var children = _ref.children,
|
|
@@ -4024,7 +4024,7 @@ function DisplayComponent(_ref) {
|
|
|
4024
4024
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
4025
4025
|
_ref$className = _ref.className,
|
|
4026
4026
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4027
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4027
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
4028
4028
|
|
|
4029
4029
|
var theme = useTheme();
|
|
4030
4030
|
|
|
@@ -4051,7 +4051,7 @@ DisplayComponent.displayName = 'BolioUIDisplay';
|
|
|
4051
4051
|
var Display = withScale$1(DisplayComponent);
|
|
4052
4052
|
var Display$1 = Display;
|
|
4053
4053
|
|
|
4054
|
-
var _excluded$
|
|
4054
|
+
var _excluded$T = ["type", "align", "children", "className"];
|
|
4055
4055
|
|
|
4056
4056
|
var getColor$2 = function getColor(type, palette) {
|
|
4057
4057
|
var colors = {
|
|
@@ -4076,7 +4076,7 @@ function DividerComponent(_ref) {
|
|
|
4076
4076
|
children = _ref.children,
|
|
4077
4077
|
_ref$className = _ref.className,
|
|
4078
4078
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4079
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4079
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
4080
4080
|
|
|
4081
4081
|
var theme = useTheme();
|
|
4082
4082
|
|
|
@@ -4110,7 +4110,7 @@ DividerComponent.displayName = 'BolioUIDivider';
|
|
|
4110
4110
|
var Divider = withScale$1(DividerComponent);
|
|
4111
4111
|
var Divider$1 = Divider;
|
|
4112
4112
|
|
|
4113
|
-
var _excluded$
|
|
4113
|
+
var _excluded$S = ["type", "children", "className"];
|
|
4114
4114
|
|
|
4115
4115
|
var getColor$1 = function getColor(type, theme) {
|
|
4116
4116
|
var colors = {
|
|
@@ -4131,7 +4131,7 @@ function DotComponent(_ref) {
|
|
|
4131
4131
|
children = _ref.children,
|
|
4132
4132
|
_ref$className = _ref.className,
|
|
4133
4133
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4134
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4134
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
4135
4135
|
|
|
4136
4136
|
var theme = useTheme();
|
|
4137
4137
|
|
|
@@ -4422,8 +4422,8 @@ var useKeyboard = function useKeyboard(handler, keyBindings) {
|
|
|
4422
4422
|
|
|
4423
4423
|
var useKeyboard$1 = useKeyboard;
|
|
4424
4424
|
|
|
4425
|
-
var _excluded$
|
|
4426
|
-
var defaultProps$
|
|
4425
|
+
var _excluded$R = ["children", "onClick", "visible", "width", "onContentClick", "backdropClassName", "positionClassName", "layerClassName"];
|
|
4426
|
+
var defaultProps$8 = {
|
|
4427
4427
|
onClick: function onClick() {},
|
|
4428
4428
|
visible: false,
|
|
4429
4429
|
// onContentClick: () => {},
|
|
@@ -4441,7 +4441,7 @@ function BackdropComponent(_ref) {
|
|
|
4441
4441
|
backdropClassName = _ref.backdropClassName,
|
|
4442
4442
|
positionClassName = _ref.positionClassName,
|
|
4443
4443
|
layerClassName = _ref.layerClassName,
|
|
4444
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4444
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
4445
4445
|
|
|
4446
4446
|
var theme = useTheme();
|
|
4447
4447
|
|
|
@@ -4486,7 +4486,7 @@ function BackdropComponent(_ref) {
|
|
|
4486
4486
|
}, ".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
4487
|
}
|
|
4488
4488
|
|
|
4489
|
-
BackdropComponent.defaultProps = defaultProps$
|
|
4489
|
+
BackdropComponent.defaultProps = defaultProps$8;
|
|
4490
4490
|
BackdropComponent.displayName = 'BolioUIBackdrop';
|
|
4491
4491
|
var Backdrop = /*#__PURE__*/React__default["default"].memo(BackdropComponent);
|
|
4492
4492
|
var Backdrop$1 = Backdrop;
|
|
@@ -4518,7 +4518,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
4518
4518
|
return translates[placement];
|
|
4519
4519
|
};
|
|
4520
4520
|
|
|
4521
|
-
var _excluded$
|
|
4521
|
+
var _excluded$Q = ["className", "children", "visible", "placement"];
|
|
4522
4522
|
|
|
4523
4523
|
function DrawerWrapper(_ref) {
|
|
4524
4524
|
var _ref$className = _ref.className,
|
|
@@ -4527,7 +4527,7 @@ function DrawerWrapper(_ref) {
|
|
|
4527
4527
|
_ref$visible = _ref.visible,
|
|
4528
4528
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
4529
4529
|
placement = _ref.placement,
|
|
4530
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4530
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
4531
4531
|
|
|
4532
4532
|
var theme = useTheme();
|
|
4533
4533
|
|
|
@@ -4594,7 +4594,7 @@ function DrawerWrapper(_ref) {
|
|
|
4594
4594
|
|
|
4595
4595
|
DrawerWrapper.displayName = 'BolioUIDrawerWrapper';
|
|
4596
4596
|
|
|
4597
|
-
var _excluded$
|
|
4597
|
+
var _excluded$P = ["visible", "keyboard", "disableBackdropClick", "wrapClassName", "children", "placement", "onClose", "onContentClick"];
|
|
4598
4598
|
|
|
4599
4599
|
function DrawerComponent(_ref) {
|
|
4600
4600
|
var customVisible = _ref.visible,
|
|
@@ -4605,7 +4605,7 @@ function DrawerComponent(_ref) {
|
|
|
4605
4605
|
placement = _ref.placement,
|
|
4606
4606
|
onClose = _ref.onClose,
|
|
4607
4607
|
onContentClick = _ref.onContentClick,
|
|
4608
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4608
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
4609
4609
|
|
|
4610
4610
|
var portal = usePortal$1('drawer');
|
|
4611
4611
|
|
|
@@ -4661,13 +4661,13 @@ DrawerComponent.displayName = 'BolioUIDrawer';
|
|
|
4661
4661
|
var Drawer = withScale$1(DrawerComponent);
|
|
4662
4662
|
var Drawer$1 = Drawer;
|
|
4663
4663
|
|
|
4664
|
-
var _excluded$
|
|
4664
|
+
var _excluded$O = ["className", "children"];
|
|
4665
4665
|
|
|
4666
4666
|
function ModalTitleComponent(_ref) {
|
|
4667
4667
|
var _ref$className = _ref.className,
|
|
4668
4668
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4669
4669
|
children = _ref.children,
|
|
4670
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4670
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
4671
4671
|
|
|
4672
4672
|
var theme = useTheme();
|
|
4673
4673
|
|
|
@@ -4686,13 +4686,13 @@ ModalTitleComponent.displayName = 'BolioUIModalTitle';
|
|
|
4686
4686
|
var ModalTitle = withScale$1(ModalTitleComponent);
|
|
4687
4687
|
var ModalTitle$1 = ModalTitle;
|
|
4688
4688
|
|
|
4689
|
-
var _excluded$
|
|
4689
|
+
var _excluded$N = ["className", "children"];
|
|
4690
4690
|
|
|
4691
4691
|
function ModalSubtitleComponent(_ref) {
|
|
4692
4692
|
var _ref$className = _ref.className,
|
|
4693
4693
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4694
4694
|
children = _ref.children,
|
|
4695
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4695
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
4696
4696
|
|
|
4697
4697
|
var theme = useTheme();
|
|
4698
4698
|
|
|
@@ -4711,13 +4711,13 @@ ModalSubtitleComponent.displayName = 'BolioUIModalSubtitle';
|
|
|
4711
4711
|
var ModalSubtitle = withScale$1(ModalSubtitleComponent);
|
|
4712
4712
|
var ModalSubtitle$1 = ModalSubtitle;
|
|
4713
4713
|
|
|
4714
|
-
var _excluded$
|
|
4714
|
+
var _excluded$M = ["className", "children"];
|
|
4715
4715
|
|
|
4716
4716
|
function ModalContentComponent(_ref) {
|
|
4717
4717
|
var _ref$className = _ref.className,
|
|
4718
4718
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4719
4719
|
children = _ref.children,
|
|
4720
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4720
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
4721
4721
|
|
|
4722
4722
|
var _useScale = useScale(),
|
|
4723
4723
|
SCALES = _useScale.SCALES;
|
|
@@ -4738,13 +4738,13 @@ Drawer$1.Title = ModalTitle$1;
|
|
|
4738
4738
|
Drawer$1.Subtitle = ModalSubtitle$1;
|
|
4739
4739
|
Drawer$1.Content = ModalContent$1;
|
|
4740
4740
|
|
|
4741
|
-
var _excluded$
|
|
4741
|
+
var _excluded$L = ["className", "children"];
|
|
4742
4742
|
|
|
4743
4743
|
function FieldsetTitle(_ref) {
|
|
4744
4744
|
var _ref$className = _ref.className,
|
|
4745
4745
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4746
4746
|
children = _ref.children,
|
|
4747
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4747
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
4748
4748
|
|
|
4749
4749
|
var classes = useClasses$1('title', className);
|
|
4750
4750
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
@@ -4756,13 +4756,13 @@ function FieldsetTitle(_ref) {
|
|
|
4756
4756
|
|
|
4757
4757
|
FieldsetTitle.displayName = 'BolioUIFieldsetTitle';
|
|
4758
4758
|
|
|
4759
|
-
var _excluded$
|
|
4759
|
+
var _excluded$K = ["className", "children"];
|
|
4760
4760
|
|
|
4761
4761
|
function FieldsetSubtitle(_ref) {
|
|
4762
4762
|
var _ref$className = _ref.className,
|
|
4763
4763
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4764
4764
|
children = _ref.children,
|
|
4765
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4765
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
4766
4766
|
|
|
4767
4767
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
|
|
4768
4768
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || "")
|
|
@@ -4773,13 +4773,13 @@ function FieldsetSubtitle(_ref) {
|
|
|
4773
4773
|
|
|
4774
4774
|
FieldsetSubtitle.displayName = 'BolioUIFieldsetSubtitle';
|
|
4775
4775
|
|
|
4776
|
-
var _excluded$
|
|
4776
|
+
var _excluded$J = ["className", "children"];
|
|
4777
4777
|
|
|
4778
4778
|
function FieldsetFooterComponent(_ref) {
|
|
4779
4779
|
var _ref$className = _ref.className,
|
|
4780
4780
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4781
4781
|
children = _ref.children,
|
|
4782
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4782
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
4783
4783
|
|
|
4784
4784
|
var theme = useTheme();
|
|
4785
4785
|
|
|
@@ -4798,13 +4798,13 @@ FieldsetFooterComponent.displayName = 'BolioUIFieldsetFooter';
|
|
|
4798
4798
|
var FieldsetFooter = withScale$1(FieldsetFooterComponent);
|
|
4799
4799
|
var FieldsetFooter$1 = FieldsetFooter;
|
|
4800
4800
|
|
|
4801
|
-
var _excluded$
|
|
4801
|
+
var _excluded$I = ["className", "children"];
|
|
4802
4802
|
|
|
4803
4803
|
function FieldsetContentComponent(_ref) {
|
|
4804
4804
|
var _ref$className = _ref.className,
|
|
4805
4805
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4806
4806
|
children = _ref.children,
|
|
4807
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4807
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
4808
4808
|
|
|
4809
4809
|
var _useScale = useScale(),
|
|
4810
4810
|
SCALES = _useScale.SCALES;
|
|
@@ -4822,16 +4822,16 @@ FieldsetContentComponent.displayName = 'BolioUIFieldsetContent';
|
|
|
4822
4822
|
var FieldsetContent = withScale$1(FieldsetContentComponent);
|
|
4823
4823
|
var FieldsetContent$1 = FieldsetContent;
|
|
4824
4824
|
|
|
4825
|
-
var defaultContext$
|
|
4825
|
+
var defaultContext$7 = {
|
|
4826
4826
|
inGroup: false,
|
|
4827
4827
|
currentValue: ''
|
|
4828
4828
|
};
|
|
4829
|
-
var FieldsetContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
4829
|
+
var FieldsetContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$7);
|
|
4830
4830
|
var useFieldset = function useFieldset() {
|
|
4831
4831
|
return React__default["default"].useContext(FieldsetContext);
|
|
4832
4832
|
};
|
|
4833
4833
|
|
|
4834
|
-
var _excluded$
|
|
4834
|
+
var _excluded$H = ["className", "title", "subtitle", "children", "value", "label"];
|
|
4835
4835
|
|
|
4836
4836
|
function FieldsetComponent(_ref) {
|
|
4837
4837
|
var _ref$className = _ref.className,
|
|
@@ -4845,7 +4845,7 @@ function FieldsetComponent(_ref) {
|
|
|
4845
4845
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
4846
4846
|
_ref$label = _ref.label,
|
|
4847
4847
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
4848
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4848
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
4849
4849
|
|
|
4850
4850
|
var theme = useTheme();
|
|
4851
4851
|
|
|
@@ -4913,7 +4913,7 @@ FieldsetComponent.displayName = 'BolioUIFieldset';
|
|
|
4913
4913
|
var Fieldset = withScale$1(FieldsetComponent);
|
|
4914
4914
|
var Fieldset$1 = Fieldset;
|
|
4915
4915
|
|
|
4916
|
-
var _excluded$
|
|
4916
|
+
var _excluded$G = ["className", "children", "value", "onChange"];
|
|
4917
4917
|
|
|
4918
4918
|
function FieldsetGroupComponent(_ref) {
|
|
4919
4919
|
var _ref$className = _ref.className,
|
|
@@ -4921,7 +4921,7 @@ function FieldsetGroupComponent(_ref) {
|
|
|
4921
4921
|
children = _ref.children,
|
|
4922
4922
|
value = _ref.value,
|
|
4923
4923
|
onChange = _ref.onChange,
|
|
4924
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4924
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
4925
4925
|
|
|
4926
4926
|
var theme = useTheme();
|
|
4927
4927
|
|
|
@@ -4997,8 +4997,8 @@ Fieldset$1.Group = FieldsetGroup$1;
|
|
|
4997
4997
|
Fieldset$1.Content = FieldsetContent$1;
|
|
4998
4998
|
Fieldset$1.Body = FieldsetContent$1;
|
|
4999
4999
|
|
|
5000
|
-
var _excluded$
|
|
5001
|
-
var defaultProps$
|
|
5000
|
+
var _excluded$F = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
5001
|
+
var defaultProps$7 = {
|
|
5002
5002
|
xs: false,
|
|
5003
5003
|
sm: false,
|
|
5004
5004
|
md: false,
|
|
@@ -5041,7 +5041,7 @@ function GridBasicItem(_ref) {
|
|
|
5041
5041
|
alignContent = _ref.alignContent,
|
|
5042
5042
|
children = _ref.children,
|
|
5043
5043
|
className = _ref.className,
|
|
5044
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5044
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
5045
5045
|
|
|
5046
5046
|
var theme = useTheme();
|
|
5047
5047
|
|
|
@@ -5083,16 +5083,16 @@ function GridBasicItem(_ref) {
|
|
|
5083
5083
|
}, ".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
5084
|
}
|
|
5085
5085
|
|
|
5086
|
-
GridBasicItem.defaultProps = defaultProps$
|
|
5086
|
+
GridBasicItem.defaultProps = defaultProps$7;
|
|
5087
5087
|
GridBasicItem.displayName = 'BolioUIGridBasicItem';
|
|
5088
5088
|
|
|
5089
|
-
var _excluded$
|
|
5089
|
+
var _excluded$E = ["children", "className"];
|
|
5090
5090
|
|
|
5091
5091
|
function GridComponent(_ref) {
|
|
5092
5092
|
var children = _ref.children,
|
|
5093
5093
|
_ref$className = _ref.className,
|
|
5094
5094
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5095
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5095
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
5096
5096
|
|
|
5097
5097
|
var _useScale = useScale(),
|
|
5098
5098
|
SCALES = _useScale.SCALES;
|
|
@@ -5117,7 +5117,7 @@ GridComponent.displayName = 'BolioUIGrid';
|
|
|
5117
5117
|
var Grid = withScale$1(GridComponent);
|
|
5118
5118
|
var Grid$1 = Grid;
|
|
5119
5119
|
|
|
5120
|
-
var _excluded$
|
|
5120
|
+
var _excluded$D = ["gap", "wrap", "children", "className"];
|
|
5121
5121
|
|
|
5122
5122
|
function GridContainerComponent(_ref) {
|
|
5123
5123
|
var _ref$gap = _ref.gap,
|
|
@@ -5127,7 +5127,7 @@ function GridContainerComponent(_ref) {
|
|
|
5127
5127
|
children = _ref.children,
|
|
5128
5128
|
_ref$className = _ref.className,
|
|
5129
5129
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5130
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5130
|
+
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
5131
5131
|
|
|
5132
5132
|
var _useScale = useScale(),
|
|
5133
5133
|
unit = _useScale.unit,
|
|
@@ -5291,7 +5291,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
5291
5291
|
return colors[status];
|
|
5292
5292
|
};
|
|
5293
5293
|
|
|
5294
|
-
var defaultProps$
|
|
5294
|
+
var defaultProps$6 = {
|
|
5295
5295
|
disabled: false,
|
|
5296
5296
|
readOnly: false,
|
|
5297
5297
|
clearable: false,
|
|
@@ -5304,7 +5304,7 @@ var defaultProps$2 = {
|
|
|
5304
5304
|
initialValue: ''
|
|
5305
5305
|
};
|
|
5306
5306
|
|
|
5307
|
-
var _excluded$
|
|
5307
|
+
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
5308
|
|
|
5309
5309
|
var simulateChangeEvent = function simulateChangeEvent(el, event) {
|
|
5310
5310
|
return _objectSpread2(_objectSpread2({}, event), {}, {
|
|
@@ -5337,7 +5337,7 @@ var InputComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5337
5337
|
disabled = _ref.disabled,
|
|
5338
5338
|
rounded = _ref.rounded,
|
|
5339
5339
|
backgroundColor = _ref.backgroundColor,
|
|
5340
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5340
|
+
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
5341
5341
|
|
|
5342
5342
|
var theme = useTheme();
|
|
5343
5343
|
|
|
@@ -5466,12 +5466,12 @@ var InputComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
5466
5466
|
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
5467
|
}, ".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
5468
|
});
|
|
5469
|
-
InputComponent.defaultProps = defaultProps$
|
|
5469
|
+
InputComponent.defaultProps = defaultProps$6;
|
|
5470
5470
|
InputComponent.displayName = 'BolioUIInput';
|
|
5471
5471
|
var Input = withScale$1(InputComponent);
|
|
5472
5472
|
var Input$1 = Input;
|
|
5473
5473
|
|
|
5474
|
-
var _excluded$
|
|
5474
|
+
var _excluded$B = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
|
|
5475
5475
|
tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
|
|
5476
5476
|
var TextareaComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5477
5477
|
var _ref$type = _ref.type,
|
|
@@ -5491,7 +5491,7 @@ var TextareaComponent = /*#__PURE__*/React__default["default"].forwardRef(functi
|
|
|
5491
5491
|
placeholder = _ref.placeholder,
|
|
5492
5492
|
_ref$resize = _ref.resize,
|
|
5493
5493
|
resize = _ref$resize === void 0 ? 'none' : _ref$resize,
|
|
5494
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5494
|
+
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
5495
5495
|
|
|
5496
5496
|
var theme = useTheme();
|
|
5497
5497
|
|
|
@@ -5607,16 +5607,16 @@ function PasswordIcon(_ref) {
|
|
|
5607
5607
|
var MemoPasswordIcon = /*#__PURE__*/React__default["default"].memo(PasswordIcon);
|
|
5608
5608
|
var PasswordIcon$1 = MemoPasswordIcon;
|
|
5609
5609
|
|
|
5610
|
-
var _excluded$
|
|
5610
|
+
var _excluded$A = ["hideToggle", "children"];
|
|
5611
5611
|
|
|
5612
|
-
var passwordDefaultProps = _objectSpread2(_objectSpread2({}, defaultProps$
|
|
5612
|
+
var passwordDefaultProps = _objectSpread2(_objectSpread2({}, defaultProps$6), {}, {
|
|
5613
5613
|
hideToggle: false
|
|
5614
5614
|
});
|
|
5615
5615
|
|
|
5616
5616
|
var InputPasswordComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5617
5617
|
var hideToggle = _ref.hideToggle,
|
|
5618
5618
|
children = _ref.children,
|
|
5619
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5619
|
+
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
5620
5620
|
|
|
5621
5621
|
var _useScale = useScale$1(),
|
|
5622
5622
|
getAllScaleProps = _useScale.getAllScaleProps;
|
|
@@ -5669,7 +5669,7 @@ var InputPassword$1 = InputPassword;
|
|
|
5669
5669
|
Input$1.Textarea = Textarea$1;
|
|
5670
5670
|
Input$1.Password = InputPassword$1;
|
|
5671
5671
|
|
|
5672
|
-
var _excluded$
|
|
5672
|
+
var _excluded$z = ["command", "shift", "option", "ctrl", "children", "className"];
|
|
5673
5673
|
|
|
5674
5674
|
function KeyboardComponent(_ref) {
|
|
5675
5675
|
var _ref$command = _ref.command,
|
|
@@ -5683,7 +5683,7 @@ function KeyboardComponent(_ref) {
|
|
|
5683
5683
|
children = _ref.children,
|
|
5684
5684
|
_ref$className = _ref.className,
|
|
5685
5685
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5686
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5686
|
+
props = _objectWithoutProperties(_ref, _excluded$z);
|
|
5687
5687
|
|
|
5688
5688
|
var theme = useTheme();
|
|
5689
5689
|
|
|
@@ -5712,7 +5712,7 @@ KeyboardComponent.displayName = 'BolioUIKeyboard';
|
|
|
5712
5712
|
var Keyboard = withScale$1(KeyboardComponent);
|
|
5713
5713
|
var Keyboard$1 = Keyboard;
|
|
5714
5714
|
|
|
5715
|
-
var _excluded$
|
|
5715
|
+
var _excluded$y = ["className", "children", "visible"];
|
|
5716
5716
|
|
|
5717
5717
|
function ModalWrapper(_ref) {
|
|
5718
5718
|
var _ref$className = _ref.className,
|
|
@@ -5720,7 +5720,7 @@ function ModalWrapper(_ref) {
|
|
|
5720
5720
|
children = _ref.children,
|
|
5721
5721
|
_ref$visible = _ref.visible,
|
|
5722
5722
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
5723
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5723
|
+
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
5724
5724
|
|
|
5725
5725
|
var theme = useTheme();
|
|
5726
5726
|
|
|
@@ -5783,13 +5783,13 @@ function ModalWrapper(_ref) {
|
|
|
5783
5783
|
|
|
5784
5784
|
ModalWrapper.displayName = 'BolioUIModalWrapper';
|
|
5785
5785
|
|
|
5786
|
-
var defaultContext$
|
|
5787
|
-
var ModalContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
5786
|
+
var defaultContext$6 = {};
|
|
5787
|
+
var ModalContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$6);
|
|
5788
5788
|
var useModalContext = function useModalContext() {
|
|
5789
5789
|
return React__default["default"].useContext(ModalContext);
|
|
5790
5790
|
};
|
|
5791
5791
|
|
|
5792
|
-
var _excluded$
|
|
5792
|
+
var _excluded$x = ["className", "children", "onClick", "passive", "disabled"];
|
|
5793
5793
|
var ModalActionComponent = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
5794
5794
|
var _ref$className = _ref.className,
|
|
5795
5795
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -5799,7 +5799,7 @@ var ModalActionComponent = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
|
5799
5799
|
passive = _ref$passive === void 0 ? false : _ref$passive,
|
|
5800
5800
|
_ref$disabled = _ref.disabled,
|
|
5801
5801
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
5802
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5802
|
+
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
5803
5803
|
|
|
5804
5804
|
var theme = useTheme();
|
|
5805
5805
|
|
|
@@ -5857,11 +5857,11 @@ ModalActionComponent.displayName = 'BolioUIModalAction';
|
|
|
5857
5857
|
var ModalAction = withScale$1(ModalActionComponent);
|
|
5858
5858
|
var ModalAction$1 = ModalAction;
|
|
5859
5859
|
|
|
5860
|
-
var _excluded$
|
|
5860
|
+
var _excluded$w = ["children"];
|
|
5861
5861
|
|
|
5862
5862
|
var ModalActionsComponent = function ModalActionsComponent(_ref) {
|
|
5863
5863
|
var children = _ref.children,
|
|
5864
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5864
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
5865
5865
|
|
|
5866
5866
|
var theme = useTheme();
|
|
5867
5867
|
var ref = React.useRef(null);
|
|
@@ -5986,7 +5986,7 @@ Modal$1.Subtitle = ModalSubtitle$1;
|
|
|
5986
5986
|
Modal$1.Content = ModalContent$1;
|
|
5987
5987
|
Modal$1.Action = ModalAction$1;
|
|
5988
5988
|
|
|
5989
|
-
var _excluded$
|
|
5989
|
+
var _excluded$v = ["children", "type", "label", "filled", "className"];
|
|
5990
5990
|
|
|
5991
5991
|
var getStatusColor = function getStatusColor(type, filled, theme) {
|
|
5992
5992
|
var colors = {
|
|
@@ -6022,7 +6022,7 @@ function NoteComponent(_ref) {
|
|
|
6022
6022
|
filled = _ref$filled === void 0 ? false : _ref$filled,
|
|
6023
6023
|
_ref$className = _ref.className,
|
|
6024
6024
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6025
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6025
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
6026
6026
|
|
|
6027
6027
|
var theme = useTheme();
|
|
6028
6028
|
|
|
@@ -6051,12 +6051,12 @@ NoteComponent.displayName = 'BolioUINote';
|
|
|
6051
6051
|
var Note = withScale$1(NoteComponent);
|
|
6052
6052
|
var Note$1 = Note;
|
|
6053
6053
|
|
|
6054
|
-
var _excluded$
|
|
6054
|
+
var _excluded$u = ["className", "children"];
|
|
6055
6055
|
|
|
6056
6056
|
function PageContentComponent(_ref) {
|
|
6057
6057
|
var className = _ref.className,
|
|
6058
6058
|
children = _ref.children,
|
|
6059
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6059
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
6060
6060
|
|
|
6061
6061
|
var _useScale = useScale(),
|
|
6062
6062
|
SCALES = _useScale.SCALES;
|
|
@@ -6073,7 +6073,7 @@ PageContentComponent.displayName = 'BolioUIPageContent';
|
|
|
6073
6073
|
var PageContent = withScale$1(PageContentComponent);
|
|
6074
6074
|
var PageContent$1 = PageContent;
|
|
6075
6075
|
|
|
6076
|
-
var _excluded$
|
|
6076
|
+
var _excluded$t = ["children", "render", "dotBackdrop", "className", "dotSize", "dotSpace"];
|
|
6077
6077
|
tuple('default', 'effect', 'effect-seo');
|
|
6078
6078
|
|
|
6079
6079
|
var DotStyles = function DotStyles(_ref) {
|
|
@@ -6104,7 +6104,7 @@ function PageComponent(_ref2) {
|
|
|
6104
6104
|
dotSize = _ref2$dotSize === void 0 ? '1px' : _ref2$dotSize,
|
|
6105
6105
|
_ref2$dotSpace = _ref2.dotSpace,
|
|
6106
6106
|
dotSpace = _ref2$dotSpace === void 0 ? 1 : _ref2$dotSpace,
|
|
6107
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6107
|
+
props = _objectWithoutProperties(_ref2, _excluded$t);
|
|
6108
6108
|
|
|
6109
6109
|
var theme = useTheme();
|
|
6110
6110
|
|
|
@@ -6152,7 +6152,7 @@ PageComponent.displayName = 'BolioUIPage';
|
|
|
6152
6152
|
var Page = withScale$1(PageComponent);
|
|
6153
6153
|
var Page$1 = Page;
|
|
6154
6154
|
|
|
6155
|
-
var _excluded$
|
|
6155
|
+
var _excluded$s = ["children", "center", "className"];
|
|
6156
6156
|
|
|
6157
6157
|
function PageHeaderComponent(_ref) {
|
|
6158
6158
|
var children = _ref.children,
|
|
@@ -6160,7 +6160,7 @@ function PageHeaderComponent(_ref) {
|
|
|
6160
6160
|
center = _ref$center === void 0 ? false : _ref$center,
|
|
6161
6161
|
_ref$className = _ref.className,
|
|
6162
6162
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6163
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6163
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
6164
6164
|
|
|
6165
6165
|
var _useScale = useScale(),
|
|
6166
6166
|
SCALES = _useScale.SCALES;
|
|
@@ -6180,11 +6180,11 @@ PageHeaderComponent.displayName = 'BolioUIPageHeader';
|
|
|
6180
6180
|
var PageHeader = withScale$1(PageHeaderComponent);
|
|
6181
6181
|
var PageHeader$1 = PageHeader;
|
|
6182
6182
|
|
|
6183
|
-
var _excluded$
|
|
6183
|
+
var _excluded$r = ["children"];
|
|
6184
6184
|
|
|
6185
6185
|
function PageFooterComponent(_ref) {
|
|
6186
6186
|
var children = _ref.children,
|
|
6187
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6187
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
6188
6188
|
|
|
6189
6189
|
var _useScale = useScale(),
|
|
6190
6190
|
SCALES = _useScale.SCALES;
|
|
@@ -6206,14 +6206,14 @@ Page$1.Content = PageContent$1;
|
|
|
6206
6206
|
Page$1.Body = PageContent$1;
|
|
6207
6207
|
Page$1.Footer = PageFooter$1;
|
|
6208
6208
|
|
|
6209
|
-
var _excluded$
|
|
6209
|
+
var _excluded$q = ["active", "children", "disabled", "onClick"];
|
|
6210
6210
|
|
|
6211
6211
|
function PaginationItem(_ref) {
|
|
6212
6212
|
var active = _ref.active,
|
|
6213
6213
|
children = _ref.children,
|
|
6214
6214
|
disabled = _ref.disabled,
|
|
6215
6215
|
onClick = _ref.onClick,
|
|
6216
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6216
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
6217
6217
|
|
|
6218
6218
|
var theme = useTheme();
|
|
6219
6219
|
|
|
@@ -6249,17 +6249,17 @@ function PaginationItem(_ref) {
|
|
|
6249
6249
|
PaginationItem.displayName = 'BolioUIPaginationItem';
|
|
6250
6250
|
|
|
6251
6251
|
tuple('prev', 'next', 'click');
|
|
6252
|
-
var defaultContext$
|
|
6253
|
-
var PaginationContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
6252
|
+
var defaultContext$5 = {};
|
|
6253
|
+
var PaginationContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$5);
|
|
6254
6254
|
var usePaginationContext = function usePaginationContext() {
|
|
6255
6255
|
return React__default["default"].useContext(PaginationContext);
|
|
6256
6256
|
};
|
|
6257
6257
|
|
|
6258
|
-
var _excluded$
|
|
6258
|
+
var _excluded$p = ["children"];
|
|
6259
6259
|
|
|
6260
6260
|
function PaginationPrevious(_ref) {
|
|
6261
6261
|
var children = _ref.children,
|
|
6262
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6262
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
6263
6263
|
|
|
6264
6264
|
var _usePaginationContext = usePaginationContext(),
|
|
6265
6265
|
update = _usePaginationContext.update,
|
|
@@ -6275,11 +6275,11 @@ function PaginationPrevious(_ref) {
|
|
|
6275
6275
|
|
|
6276
6276
|
PaginationPrevious.displayName = 'BolioUIPaginationPrevious';
|
|
6277
6277
|
|
|
6278
|
-
var _excluded$
|
|
6278
|
+
var _excluded$o = ["children"];
|
|
6279
6279
|
|
|
6280
6280
|
function PaginationNext(_ref) {
|
|
6281
6281
|
var children = _ref.children,
|
|
6282
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6282
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
6283
6283
|
|
|
6284
6284
|
var _usePaginationContext = usePaginationContext(),
|
|
6285
6285
|
update = _usePaginationContext.update,
|
|
@@ -6447,7 +6447,7 @@ function PaginationPages(_ref) {
|
|
|
6447
6447
|
|
|
6448
6448
|
PaginationPages.displayName = 'BolioUIPaginationPages';
|
|
6449
6449
|
|
|
6450
|
-
var _excluded$
|
|
6450
|
+
var _excluded$n = ["page", "initialPage", "count", "limit", "children", "onChange", "className"];
|
|
6451
6451
|
|
|
6452
6452
|
function PaginationComponent(_ref) {
|
|
6453
6453
|
var customPage = _ref.page,
|
|
@@ -6461,7 +6461,7 @@ function PaginationComponent(_ref) {
|
|
|
6461
6461
|
onChange = _ref.onChange,
|
|
6462
6462
|
_ref$className = _ref.className,
|
|
6463
6463
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6464
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6464
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
6465
6465
|
|
|
6466
6466
|
var _useScale = useScale(),
|
|
6467
6467
|
SCALES = _useScale.SCALES;
|
|
@@ -6876,7 +6876,7 @@ var TooltipContent = function TooltipContent(_ref) {
|
|
|
6876
6876
|
|
|
6877
6877
|
var TooltipContent$1 = TooltipContent;
|
|
6878
6878
|
|
|
6879
|
-
var _excluded$
|
|
6879
|
+
var _excluded$m = ["children", "initialVisible", "text", "offset", "placement", "portalClassName", "enterDelay", "leaveDelay", "trigger", "type", "className", "onVisibleChange", "hideArrow", "visible"];
|
|
6880
6880
|
|
|
6881
6881
|
function TooltipComponent(_ref) {
|
|
6882
6882
|
var children = _ref.children,
|
|
@@ -6905,7 +6905,7 @@ function TooltipComponent(_ref) {
|
|
|
6905
6905
|
_ref$hideArrow = _ref.hideArrow,
|
|
6906
6906
|
hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
|
|
6907
6907
|
customVisible = _ref.visible,
|
|
6908
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6908
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
6909
6909
|
|
|
6910
6910
|
var timer = React.useRef();
|
|
6911
6911
|
var ref = React.useRef(null);
|
|
@@ -6999,16 +6999,16 @@ TooltipComponent.displayName = 'BolioUITooltip';
|
|
|
6999
6999
|
var Tooltip = withScale$1(TooltipComponent);
|
|
7000
7000
|
var Tooltip$1 = Tooltip;
|
|
7001
7001
|
|
|
7002
|
-
var defaultContext$
|
|
7002
|
+
var defaultContext$4 = {
|
|
7003
7003
|
disableItemsAutoClose: false,
|
|
7004
7004
|
onItemClick: function onItemClick() {}
|
|
7005
7005
|
};
|
|
7006
|
-
var PopoverContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7006
|
+
var PopoverContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$4);
|
|
7007
7007
|
var usePopoverContext = function usePopoverContext() {
|
|
7008
7008
|
return React.useContext(PopoverContext);
|
|
7009
7009
|
};
|
|
7010
7010
|
|
|
7011
|
-
var _excluded$
|
|
7011
|
+
var _excluded$l = ["content", "children", "disableItemsAutoClose", "trigger", "placement", "portalClassName", "type", "visible", "onVisibleChange"];
|
|
7012
7012
|
|
|
7013
7013
|
function PopoverComponent(_ref) {
|
|
7014
7014
|
var content = _ref.content,
|
|
@@ -7026,7 +7026,7 @@ function PopoverComponent(_ref) {
|
|
|
7026
7026
|
customVisible = _ref.visible,
|
|
7027
7027
|
_ref$onVisibleChange = _ref.onVisibleChange,
|
|
7028
7028
|
onVisibleChange = _ref$onVisibleChange === void 0 ? function () {} : _ref$onVisibleChange,
|
|
7029
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7029
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
7030
7030
|
|
|
7031
7031
|
var _useScale = useScale(),
|
|
7032
7032
|
SCALES = _useScale.SCALES;
|
|
@@ -7082,7 +7082,7 @@ PopoverComponent.displayName = 'BolioUIPopover';
|
|
|
7082
7082
|
var Popover = withScale$1(PopoverComponent);
|
|
7083
7083
|
var Popover$1 = Popover;
|
|
7084
7084
|
|
|
7085
|
-
var _excluded$
|
|
7085
|
+
var _excluded$k = ["children", "line", "title", "className", "onClick", "disableAutoClose"];
|
|
7086
7086
|
|
|
7087
7087
|
function PopoverItemComponent(_ref) {
|
|
7088
7088
|
var children = _ref.children,
|
|
@@ -7095,7 +7095,7 @@ function PopoverItemComponent(_ref) {
|
|
|
7095
7095
|
onClick = _ref.onClick,
|
|
7096
7096
|
_ref$disableAutoClose = _ref.disableAutoClose,
|
|
7097
7097
|
disableAutoClose = _ref$disableAutoClose === void 0 ? false : _ref$disableAutoClose,
|
|
7098
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7098
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
7099
7099
|
|
|
7100
7100
|
var theme = useTheme();
|
|
7101
7101
|
|
|
@@ -7143,7 +7143,7 @@ var PopoverItem$1 = PopoverItem;
|
|
|
7143
7143
|
Popover$1.Item = PopoverItem$1;
|
|
7144
7144
|
Popover$1.Option = PopoverItem$1;
|
|
7145
7145
|
|
|
7146
|
-
var _excluded$
|
|
7146
|
+
var _excluded$j = ["value", "max", "className", "type", "colors", "fixedTop", "fixedBottom"];
|
|
7147
7147
|
|
|
7148
7148
|
var getCurrentColor = function getCurrentColor(ratio, palette, type) {
|
|
7149
7149
|
var colors = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -7179,7 +7179,7 @@ function ProgressComponent(_ref) {
|
|
|
7179
7179
|
fixedTop = _ref$fixedTop === void 0 ? false : _ref$fixedTop,
|
|
7180
7180
|
_ref$fixedBottom = _ref.fixedBottom,
|
|
7181
7181
|
fixedBottom = _ref$fixedBottom === void 0 ? false : _ref$fixedBottom,
|
|
7182
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7182
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
7183
7183
|
|
|
7184
7184
|
var theme = useTheme();
|
|
7185
7185
|
|
|
@@ -7212,22 +7212,22 @@ ProgressComponent.displayName = 'BolioUIProgress';
|
|
|
7212
7212
|
var Progress = withScale$1(ProgressComponent);
|
|
7213
7213
|
var Progress$1 = Progress;
|
|
7214
7214
|
|
|
7215
|
-
var defaultContext$
|
|
7215
|
+
var defaultContext$3 = {
|
|
7216
7216
|
disabledAll: false,
|
|
7217
7217
|
inGroup: false
|
|
7218
7218
|
};
|
|
7219
|
-
var RadioContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7219
|
+
var RadioContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$3);
|
|
7220
7220
|
var useRadioContext = function useRadioContext() {
|
|
7221
7221
|
return React__default["default"].useContext(RadioContext);
|
|
7222
7222
|
};
|
|
7223
7223
|
|
|
7224
|
-
var _excluded$
|
|
7224
|
+
var _excluded$i = ["className", "children"];
|
|
7225
7225
|
|
|
7226
7226
|
function RadioDescriptionComponent(_ref) {
|
|
7227
7227
|
var _ref$className = _ref.className,
|
|
7228
7228
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7229
7229
|
children = _ref.children,
|
|
7230
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7230
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
7231
7231
|
|
|
7232
7232
|
var theme = useTheme();
|
|
7233
7233
|
|
|
@@ -7288,7 +7288,7 @@ var getColors$4 = function getColors(palette, status) {
|
|
|
7288
7288
|
return colors[status];
|
|
7289
7289
|
};
|
|
7290
7290
|
|
|
7291
|
-
var _excluded$
|
|
7291
|
+
var _excluded$h = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
|
|
7292
7292
|
|
|
7293
7293
|
function RadioComponent(_ref) {
|
|
7294
7294
|
var _ref$className = _ref.className,
|
|
@@ -7301,7 +7301,7 @@ function RadioComponent(_ref) {
|
|
|
7301
7301
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
7302
7302
|
radioValue = _ref.value,
|
|
7303
7303
|
children = _ref.children,
|
|
7304
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7304
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
7305
7305
|
|
|
7306
7306
|
var theme = useTheme();
|
|
7307
7307
|
|
|
@@ -7399,7 +7399,7 @@ RadioComponent.displayName = 'BolioUIRadio';
|
|
|
7399
7399
|
var Radio = withScale$1(RadioComponent);
|
|
7400
7400
|
var Radio$1 = Radio;
|
|
7401
7401
|
|
|
7402
|
-
var _excluded$
|
|
7402
|
+
var _excluded$g = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
|
|
7403
7403
|
|
|
7404
7404
|
function RadioGroupComponent(_ref) {
|
|
7405
7405
|
var _ref$disabled = _ref.disabled,
|
|
@@ -7412,7 +7412,7 @@ function RadioGroupComponent(_ref) {
|
|
|
7412
7412
|
initialValue = _ref.initialValue,
|
|
7413
7413
|
_ref$useRow = _ref.useRow,
|
|
7414
7414
|
useRow = _ref$useRow === void 0 ? false : _ref$useRow,
|
|
7415
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7415
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
7416
7416
|
|
|
7417
7417
|
var _useScale = useScale(),
|
|
7418
7418
|
SCALES = _useScale.SCALES;
|
|
@@ -7475,7 +7475,7 @@ function RatingIcon() {
|
|
|
7475
7475
|
|
|
7476
7476
|
RatingIcon.displayName = 'BolioUIRatingIcon';
|
|
7477
7477
|
|
|
7478
|
-
var _excluded$
|
|
7478
|
+
var _excluded$f = ["type", "className", "icon", "count", "value", "initialValue", "onValueChange", "locked", "onLockedChange"];
|
|
7479
7479
|
tupleNumber(2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
7480
7480
|
tupleNumber(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
|
|
7481
7481
|
|
|
@@ -7508,7 +7508,7 @@ function RatingComponent(_ref) {
|
|
|
7508
7508
|
_ref$locked = _ref.locked,
|
|
7509
7509
|
locked = _ref$locked === void 0 ? false : _ref$locked,
|
|
7510
7510
|
onLockedChange = _ref.onLockedChange,
|
|
7511
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7511
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
7512
7512
|
|
|
7513
7513
|
var theme = useTheme();
|
|
7514
7514
|
|
|
@@ -7580,8 +7580,8 @@ RatingComponent.displayName = 'BolioUIRating';
|
|
|
7580
7580
|
var Rating = withScale$1(RatingComponent);
|
|
7581
7581
|
var Rating$1 = Rating;
|
|
7582
7582
|
|
|
7583
|
-
var _excluded$
|
|
7584
|
-
var defaultProps$
|
|
7583
|
+
var _excluded$e = ["children", "component", "gap", "justify", "align", "className"];
|
|
7584
|
+
var defaultProps$5 = {
|
|
7585
7585
|
gap: 0,
|
|
7586
7586
|
justify: 'start',
|
|
7587
7587
|
align: 'top',
|
|
@@ -7613,7 +7613,7 @@ function Row(_ref) {
|
|
|
7613
7613
|
justify = _ref.justify,
|
|
7614
7614
|
align = _ref.align,
|
|
7615
7615
|
className = _ref.className,
|
|
7616
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7616
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
7617
7617
|
|
|
7618
7618
|
var Component = component;
|
|
7619
7619
|
var theme = useTheme();
|
|
@@ -7632,10 +7632,10 @@ function Row(_ref) {
|
|
|
7632
7632
|
}, ".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
7633
|
}
|
|
7634
7634
|
|
|
7635
|
-
Row.defaultProps = defaultProps$
|
|
7635
|
+
Row.defaultProps = defaultProps$5;
|
|
7636
7636
|
Row.displayName = 'BolioUIRow';
|
|
7637
7637
|
|
|
7638
|
-
var _excluded$
|
|
7638
|
+
var _excluded$d = ["children", "bg", "className"];
|
|
7639
7639
|
|
|
7640
7640
|
function SectionComponent(_ref) {
|
|
7641
7641
|
var children = _ref.children,
|
|
@@ -7643,7 +7643,7 @@ function SectionComponent(_ref) {
|
|
|
7643
7643
|
bg = _ref$bg === void 0 ? 'transparent' : _ref$bg,
|
|
7644
7644
|
_ref$className = _ref.className,
|
|
7645
7645
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7646
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7646
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
7647
7647
|
|
|
7648
7648
|
var _useScale = useScale(),
|
|
7649
7649
|
SCALES = _useScale.SCALES;
|
|
@@ -7681,11 +7681,11 @@ SelectIconComponent.displayName = 'BolioUISelectIcon';
|
|
|
7681
7681
|
var SelectIcon = /*#__PURE__*/React__default["default"].memo(SelectIconComponent);
|
|
7682
7682
|
var SelectIcon$1 = SelectIcon;
|
|
7683
7683
|
|
|
7684
|
-
var defaultContext$
|
|
7684
|
+
var defaultContext$2 = {
|
|
7685
7685
|
visible: false,
|
|
7686
7686
|
disableAll: false
|
|
7687
7687
|
};
|
|
7688
|
-
var SelectContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$
|
|
7688
|
+
var SelectContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$2);
|
|
7689
7689
|
var useSelectContext = function useSelectContext() {
|
|
7690
7690
|
return React__default["default"].useContext(SelectContext);
|
|
7691
7691
|
};
|
|
@@ -8081,8 +8081,8 @@ var SelectInput = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
|
8081
8081
|
SelectInput.displayName = 'BolioUISelectInput';
|
|
8082
8082
|
var SelectInput$1 = SelectInput;
|
|
8083
8083
|
|
|
8084
|
-
var _excluded$
|
|
8085
|
-
var defaultProps = {
|
|
8084
|
+
var _excluded$c = ["children", "type", "disabled", "initialValue", "value", "icon", "onChange", "pure", "multiple", "clearable", "placeholder", "className", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "getPopupContainer", "onDropdownVisibleChange"];
|
|
8085
|
+
var defaultProps$4 = {
|
|
8086
8086
|
disabled: false,
|
|
8087
8087
|
type: 'default',
|
|
8088
8088
|
icon: SelectIcon$1,
|
|
@@ -8120,7 +8120,7 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
8120
8120
|
getPopupContainer = _ref.getPopupContainer,
|
|
8121
8121
|
_ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
|
|
8122
8122
|
onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
|
|
8123
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8123
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
8124
8124
|
|
|
8125
8125
|
var theme = useTheme();
|
|
8126
8126
|
|
|
@@ -8302,12 +8302,12 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
8302
8302
|
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
8303
|
}, ".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
8304
|
});
|
|
8305
|
-
SelectComponent.defaultProps = defaultProps;
|
|
8305
|
+
SelectComponent.defaultProps = defaultProps$4;
|
|
8306
8306
|
SelectComponent.displayName = 'BolioUISelect';
|
|
8307
8307
|
var Select = withScale$1(SelectComponent);
|
|
8308
8308
|
var Select$1 = Select;
|
|
8309
8309
|
|
|
8310
|
-
var _excluded$
|
|
8310
|
+
var _excluded$b = ["value", "className", "children", "disabled", "divider", "label", "preventAllEvents"];
|
|
8311
8311
|
|
|
8312
8312
|
function SelectOptionComponent(_ref) {
|
|
8313
8313
|
var _ref$value = _ref.value,
|
|
@@ -8323,7 +8323,7 @@ function SelectOptionComponent(_ref) {
|
|
|
8323
8323
|
label = _ref$label === void 0 ? false : _ref$label,
|
|
8324
8324
|
_ref$preventAllEvents = _ref.preventAllEvents,
|
|
8325
8325
|
preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
|
|
8326
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8326
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
8327
8327
|
|
|
8328
8328
|
var theme = useTheme();
|
|
8329
8329
|
|
|
@@ -8556,7 +8556,7 @@ var getColors$2 = function getColors(palette, status) {
|
|
|
8556
8556
|
return colors[status];
|
|
8557
8557
|
};
|
|
8558
8558
|
|
|
8559
|
-
var _excluded$
|
|
8559
|
+
var _excluded$a = ["hideValue", "disabled", "type", "step", "max", "min", "initialValue", "value", "onChange", "className", "showMarkers"];
|
|
8560
8560
|
|
|
8561
8561
|
var getRefWidth = function getRefWidth(elementRef) {
|
|
8562
8562
|
if (!elementRef || !elementRef.current) return 0;
|
|
@@ -8594,7 +8594,7 @@ function SliderComponent(_ref) {
|
|
|
8594
8594
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8595
8595
|
_ref$showMarkers = _ref.showMarkers,
|
|
8596
8596
|
showMarkers = _ref$showMarkers === void 0 ? false : _ref$showMarkers,
|
|
8597
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8597
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
8598
8598
|
|
|
8599
8599
|
var theme = useTheme();
|
|
8600
8600
|
|
|
@@ -8954,7 +8954,7 @@ var useToasts = function useToasts(layout) {
|
|
|
8954
8954
|
|
|
8955
8955
|
var useToasts$1 = useToasts;
|
|
8956
8956
|
|
|
8957
|
-
var _excluded$
|
|
8957
|
+
var _excluded$9 = ["type", "filled", "rounded", "children", "symbol", "toastText", "toastType", "text", "copy", "className"];
|
|
8958
8958
|
|
|
8959
8959
|
var textArrayToString = function textArrayToString(text) {
|
|
8960
8960
|
return text.reduce(function (pre, current) {
|
|
@@ -8981,7 +8981,7 @@ function SnippetComponent(_ref) {
|
|
|
8981
8981
|
copyType = _ref.copy,
|
|
8982
8982
|
_ref$className = _ref.className,
|
|
8983
8983
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
8984
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8984
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
8985
8985
|
|
|
8986
8986
|
var theme = useTheme();
|
|
8987
8987
|
|
|
@@ -9046,14 +9046,14 @@ SnippetComponent.displayName = 'BolioUISnippet';
|
|
|
9046
9046
|
var Snippet = withScale$1(SnippetComponent);
|
|
9047
9047
|
var Snippet$1 = Snippet;
|
|
9048
9048
|
|
|
9049
|
-
var _excluded$
|
|
9049
|
+
var _excluded$8 = ["inline", "className"];
|
|
9050
9050
|
|
|
9051
9051
|
var SpacerComponent = function SpacerComponent(_ref) {
|
|
9052
9052
|
var _ref$inline = _ref.inline,
|
|
9053
9053
|
inline = _ref$inline === void 0 ? false : _ref$inline,
|
|
9054
9054
|
_ref$className = _ref.className,
|
|
9055
9055
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
9056
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9056
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
9057
9057
|
|
|
9058
9058
|
var _useScale = useScale(),
|
|
9059
9059
|
SCALES = _useScale.SCALES;
|
|
@@ -9070,7 +9070,7 @@ SpacerComponent.displayName = 'BolioUISpacer';
|
|
|
9070
9070
|
var Spacer = withScale$1(SpacerComponent);
|
|
9071
9071
|
var Spacer$1 = Spacer;
|
|
9072
9072
|
|
|
9073
|
-
var _excluded$
|
|
9073
|
+
var _excluded$7 = ["className"];
|
|
9074
9074
|
|
|
9075
9075
|
var getSpans = function getSpans(theme) {
|
|
9076
9076
|
return _toConsumableArray(new Array(12)).map(function (_, index) {
|
|
@@ -9087,7 +9087,7 @@ var getSpans = function getSpans(theme) {
|
|
|
9087
9087
|
function SpinnerComponent(_ref) {
|
|
9088
9088
|
var _ref$className = _ref.className,
|
|
9089
9089
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
9090
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9090
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
9091
9091
|
|
|
9092
9092
|
var theme = useTheme();
|
|
9093
9093
|
|
|
@@ -9109,6 +9109,289 @@ SpinnerComponent.displayName = 'BolioUISpinner';
|
|
|
9109
9109
|
var Spinner = withScale$1(SpinnerComponent);
|
|
9110
9110
|
var Spinner$1 = Spinner;
|
|
9111
9111
|
|
|
9112
|
+
var defaultProps$3 = {
|
|
9113
|
+
className: ''
|
|
9114
|
+
};
|
|
9115
|
+
|
|
9116
|
+
var makeColgroup = function makeColgroup(width, columns) {
|
|
9117
|
+
var unsetWidthCount = columns.filter(function (c) {
|
|
9118
|
+
return !c.width;
|
|
9119
|
+
}).length;
|
|
9120
|
+
var customWidthTotal = columns.reduce(function (pre, current) {
|
|
9121
|
+
return current.width ? pre + current.width : pre;
|
|
9122
|
+
}, 0);
|
|
9123
|
+
var averageWidth = (width - customWidthTotal) / unsetWidthCount;
|
|
9124
|
+
if (averageWidth <= 0) return /*#__PURE__*/React__default["default"].createElement("colgroup", null);
|
|
9125
|
+
return /*#__PURE__*/React__default["default"].createElement("colgroup", null, columns.map(function (column, index) {
|
|
9126
|
+
return /*#__PURE__*/React__default["default"].createElement("col", {
|
|
9127
|
+
key: "colgroup-".concat(index),
|
|
9128
|
+
width: column.width || averageWidth
|
|
9129
|
+
});
|
|
9130
|
+
}));
|
|
9131
|
+
};
|
|
9132
|
+
|
|
9133
|
+
var TableHead = function TableHead(props) {
|
|
9134
|
+
var theme = useTheme();
|
|
9135
|
+
var _ref = props,
|
|
9136
|
+
columns = _ref.columns,
|
|
9137
|
+
width = _ref.width;
|
|
9138
|
+
var isScalableWidth = React.useMemo(function () {
|
|
9139
|
+
return columns.find(function (item) {
|
|
9140
|
+
return !!item.width;
|
|
9141
|
+
});
|
|
9142
|
+
}, [columns]);
|
|
9143
|
+
var colgroup = React.useMemo(function () {
|
|
9144
|
+
if (!isScalableWidth) return /*#__PURE__*/React__default["default"].createElement("colgroup", null);
|
|
9145
|
+
return makeColgroup(width, columns);
|
|
9146
|
+
}, [isScalableWidth, width]);
|
|
9147
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, colgroup, /*#__PURE__*/React__default["default"].createElement("thead", {
|
|
9148
|
+
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]]])
|
|
9149
|
+
}, /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
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
|
+
}, columns.map(function (column, index) {
|
|
9152
|
+
return /*#__PURE__*/React__default["default"].createElement("th", {
|
|
9153
|
+
key: "table-th-".concat(column.prop, "-").concat(index),
|
|
9154
|
+
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 || "")
|
|
9155
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
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]]]) + " " + "thead-box"
|
|
9157
|
+
}, column.label));
|
|
9158
|
+
}))), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9159
|
+
id: "134865897",
|
|
9160
|
+
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]
|
|
9161
|
+
}, "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;}")));
|
|
9162
|
+
};
|
|
9163
|
+
|
|
9164
|
+
TableHead.defaultProps = defaultProps$3;
|
|
9165
|
+
TableHead.displayName = 'BolioUITableHead';
|
|
9166
|
+
var TableHead$1 = TableHead;
|
|
9167
|
+
|
|
9168
|
+
var TableCell = function TableCell(_ref) {
|
|
9169
|
+
var columns = _ref.columns,
|
|
9170
|
+
row = _ref.row,
|
|
9171
|
+
rowIndex = _ref.rowIndex,
|
|
9172
|
+
emptyText = _ref.emptyText,
|
|
9173
|
+
onCellClick = _ref.onCellClick;
|
|
9174
|
+
|
|
9175
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
9176
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, columns.map(function (column, index) {
|
|
9177
|
+
var currentRowValue = row[column.prop];
|
|
9178
|
+
var cellValue = currentRowValue || emptyText;
|
|
9179
|
+
var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
|
|
9180
|
+
return /*#__PURE__*/React__default["default"].createElement("td", {
|
|
9181
|
+
key: "row-td-".concat(index, "-").concat(column.prop),
|
|
9182
|
+
onClick: function onClick() {
|
|
9183
|
+
return onCellClick && onCellClick(currentRowValue, rowIndex, index);
|
|
9184
|
+
},
|
|
9185
|
+
className: column.className
|
|
9186
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9187
|
+
className: "cell"
|
|
9188
|
+
}, shouldBeRenderElement ? shouldBeRenderElement : cellValue));
|
|
9189
|
+
}));
|
|
9190
|
+
/* eslint-enable */
|
|
9191
|
+
};
|
|
9192
|
+
|
|
9193
|
+
var TableCell$1 = TableCell;
|
|
9194
|
+
|
|
9195
|
+
var defaultContext$1 = {
|
|
9196
|
+
columns: [],
|
|
9197
|
+
updateColumn: function updateColumn() {}
|
|
9198
|
+
};
|
|
9199
|
+
var TableContext = /*#__PURE__*/React__default["default"].createContext(defaultContext$1);
|
|
9200
|
+
var useTableContext = function useTableContext() {
|
|
9201
|
+
return React__default["default"].useContext(TableContext);
|
|
9202
|
+
};
|
|
9203
|
+
|
|
9204
|
+
var defaultProps$2 = {
|
|
9205
|
+
className: ''
|
|
9206
|
+
};
|
|
9207
|
+
|
|
9208
|
+
var TableBody = function TableBody(_ref) {
|
|
9209
|
+
var data = _ref.data,
|
|
9210
|
+
hover = _ref.hover,
|
|
9211
|
+
emptyText = _ref.emptyText,
|
|
9212
|
+
onRow = _ref.onRow,
|
|
9213
|
+
onCell = _ref.onCell,
|
|
9214
|
+
rowClassName = _ref.rowClassName;
|
|
9215
|
+
var theme = useTheme();
|
|
9216
|
+
|
|
9217
|
+
var _useTableContext = useTableContext(),
|
|
9218
|
+
columns = _useTableContext.columns;
|
|
9219
|
+
|
|
9220
|
+
var rowClickHandler = function rowClickHandler(row, index) {
|
|
9221
|
+
onRow && onRow(row, index);
|
|
9222
|
+
};
|
|
9223
|
+
|
|
9224
|
+
return /*#__PURE__*/React__default["default"].createElement("tbody", {
|
|
9225
|
+
className: styledJsx_cjs.style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
9226
|
+
}, data.map(function (row, index) {
|
|
9227
|
+
var className = rowClassName(row, index);
|
|
9228
|
+
return /*#__PURE__*/React__default["default"].createElement("tr", {
|
|
9229
|
+
key: "tbody-row-".concat(index),
|
|
9230
|
+
onClick: function onClick() {
|
|
9231
|
+
return rowClickHandler(row, index);
|
|
9232
|
+
},
|
|
9233
|
+
className: styledJsx_cjs.style.dynamic([["3433300570", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]]) + " " + (useClasses$1({
|
|
9234
|
+
hover: hover
|
|
9235
|
+
}, className) || "")
|
|
9236
|
+
}, /*#__PURE__*/React__default["default"].createElement(TableCell$1, {
|
|
9237
|
+
columns: columns,
|
|
9238
|
+
row: row,
|
|
9239
|
+
rowIndex: index,
|
|
9240
|
+
emptyText: emptyText,
|
|
9241
|
+
onCellClick: onCell
|
|
9242
|
+
}));
|
|
9243
|
+
}), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9244
|
+
id: "3433300570",
|
|
9245
|
+
dynamic: [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]
|
|
9246
|
+
}, "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;}")));
|
|
9247
|
+
};
|
|
9248
|
+
|
|
9249
|
+
TableBody.defaultProps = defaultProps$2;
|
|
9250
|
+
TableBody.displayName = 'BolioUITableBody';
|
|
9251
|
+
var TableBody$1 = TableBody;
|
|
9252
|
+
|
|
9253
|
+
var defaultProps$1 = {
|
|
9254
|
+
className: '',
|
|
9255
|
+
render: function render() {}
|
|
9256
|
+
};
|
|
9257
|
+
|
|
9258
|
+
var TableColumn = function TableColumn(columnProps) {
|
|
9259
|
+
var _ref = columnProps,
|
|
9260
|
+
children = _ref.children,
|
|
9261
|
+
prop = _ref.prop,
|
|
9262
|
+
label = _ref.label,
|
|
9263
|
+
width = _ref.width,
|
|
9264
|
+
className = _ref.className,
|
|
9265
|
+
renderHandler = _ref.render;
|
|
9266
|
+
|
|
9267
|
+
var _useTableContext = useTableContext(),
|
|
9268
|
+
updateColumn = _useTableContext.updateColumn;
|
|
9269
|
+
|
|
9270
|
+
var safeProp = "".concat(prop).trim();
|
|
9271
|
+
|
|
9272
|
+
if (!safeProp) {
|
|
9273
|
+
useWarning$1('The props "prop" is required.', 'Table.Column');
|
|
9274
|
+
}
|
|
9275
|
+
|
|
9276
|
+
React.useEffect(function () {
|
|
9277
|
+
updateColumn({
|
|
9278
|
+
label: children || label,
|
|
9279
|
+
prop: safeProp,
|
|
9280
|
+
width: width,
|
|
9281
|
+
className: className,
|
|
9282
|
+
renderHandler: renderHandler
|
|
9283
|
+
});
|
|
9284
|
+
}, [children, label, prop, width, className, renderHandler]);
|
|
9285
|
+
return null;
|
|
9286
|
+
};
|
|
9287
|
+
|
|
9288
|
+
TableColumn.defaultProps = defaultProps$1;
|
|
9289
|
+
TableColumn.displayName = 'BolioUITableColumn';
|
|
9290
|
+
var TableColumn$1 = TableColumn;
|
|
9291
|
+
|
|
9292
|
+
var _excluded$6 = ["children", "data", "initialData", "hover", "emptyText", "onRow", "onCell", "onChange", "className", "rowClassName"];
|
|
9293
|
+
var defaultProps = {
|
|
9294
|
+
hover: true,
|
|
9295
|
+
initialData: [],
|
|
9296
|
+
emptyText: '',
|
|
9297
|
+
className: '',
|
|
9298
|
+
rowClassName: function rowClassName() {
|
|
9299
|
+
return '';
|
|
9300
|
+
}
|
|
9301
|
+
};
|
|
9302
|
+
|
|
9303
|
+
function TableComponent(tableProps) {
|
|
9304
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
9305
|
+
var _ref = tableProps,
|
|
9306
|
+
children = _ref.children,
|
|
9307
|
+
customData = _ref.data,
|
|
9308
|
+
initialData = _ref.initialData,
|
|
9309
|
+
hover = _ref.hover,
|
|
9310
|
+
emptyText = _ref.emptyText,
|
|
9311
|
+
onRow = _ref.onRow,
|
|
9312
|
+
onCell = _ref.onCell;
|
|
9313
|
+
_ref.onChange;
|
|
9314
|
+
var className = _ref.className,
|
|
9315
|
+
rowClassName = _ref.rowClassName,
|
|
9316
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
9317
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
9318
|
+
|
|
9319
|
+
|
|
9320
|
+
var _useScale = useScale(),
|
|
9321
|
+
SCALES = _useScale.SCALES;
|
|
9322
|
+
|
|
9323
|
+
var ref = React.useRef(null);
|
|
9324
|
+
|
|
9325
|
+
var _useRealShape = useRealShape$1(ref),
|
|
9326
|
+
_useRealShape2 = _slicedToArray(_useRealShape, 2),
|
|
9327
|
+
width = _useRealShape2[0].width,
|
|
9328
|
+
updateShape = _useRealShape2[1];
|
|
9329
|
+
|
|
9330
|
+
var _useState = React.useState([]),
|
|
9331
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
9332
|
+
columns = _useState2[0],
|
|
9333
|
+
setColumns = _useState2[1];
|
|
9334
|
+
|
|
9335
|
+
var _useState3 = React.useState(initialData),
|
|
9336
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
9337
|
+
data = _useState4[0],
|
|
9338
|
+
setData = _useState4[1];
|
|
9339
|
+
|
|
9340
|
+
var updateColumn = function updateColumn(column) {
|
|
9341
|
+
setColumns(function (last) {
|
|
9342
|
+
var hasColumn = last.find(function (item) {
|
|
9343
|
+
return item.prop === column.prop;
|
|
9344
|
+
});
|
|
9345
|
+
if (!hasColumn) return [].concat(_toConsumableArray(last), [column]);
|
|
9346
|
+
return last.map(function (item) {
|
|
9347
|
+
if (item.prop !== column.prop) return item;
|
|
9348
|
+
return column;
|
|
9349
|
+
});
|
|
9350
|
+
});
|
|
9351
|
+
};
|
|
9352
|
+
|
|
9353
|
+
var contextValue = React.useMemo(function () {
|
|
9354
|
+
return {
|
|
9355
|
+
columns: columns,
|
|
9356
|
+
updateColumn: updateColumn
|
|
9357
|
+
};
|
|
9358
|
+
}, [columns]);
|
|
9359
|
+
React.useEffect(function () {
|
|
9360
|
+
if (typeof customData === 'undefined') return;
|
|
9361
|
+
setData(customData);
|
|
9362
|
+
}, [customData]);
|
|
9363
|
+
useResize$1(function () {
|
|
9364
|
+
return updateShape();
|
|
9365
|
+
});
|
|
9366
|
+
return /*#__PURE__*/React__default["default"].createElement(TableContext.Provider, {
|
|
9367
|
+
value: contextValue
|
|
9368
|
+
}, /*#__PURE__*/React__default["default"].createElement("table", _extends({
|
|
9369
|
+
ref: ref
|
|
9370
|
+
}, props, {
|
|
9371
|
+
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 || "")
|
|
9372
|
+
}), /*#__PURE__*/React__default["default"].createElement(TableHead$1, {
|
|
9373
|
+
columns: columns,
|
|
9374
|
+
width: width
|
|
9375
|
+
}), /*#__PURE__*/React__default["default"].createElement(TableBody$1, {
|
|
9376
|
+
data: data,
|
|
9377
|
+
hover: hover,
|
|
9378
|
+
emptyText: emptyText,
|
|
9379
|
+
onRow: onRow,
|
|
9380
|
+
onCell: onCell,
|
|
9381
|
+
rowClassName: rowClassName
|
|
9382
|
+
}), children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
9383
|
+
id: "2991182230",
|
|
9384
|
+
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)]
|
|
9385
|
+
}, "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), ";}"))));
|
|
9386
|
+
}
|
|
9387
|
+
|
|
9388
|
+
TableComponent.defaultProps = defaultProps;
|
|
9389
|
+
TableComponent.displayName = 'BolioUITable';
|
|
9390
|
+
TableComponent.Column = TableColumn$1;
|
|
9391
|
+
var Table = withScale$1(TableComponent);
|
|
9392
|
+
Table.Column = TableColumn$1;
|
|
9393
|
+
var Table$1 = Table;
|
|
9394
|
+
|
|
9112
9395
|
var defaultContext = {
|
|
9113
9396
|
inGroup: false
|
|
9114
9397
|
};
|
|
@@ -9950,6 +10233,7 @@ exports.Slider = Slider$1;
|
|
|
9950
10233
|
exports.Snippet = Snippet$1;
|
|
9951
10234
|
exports.Spacer = Spacer$1;
|
|
9952
10235
|
exports.Spinner = Spinner$1;
|
|
10236
|
+
exports.Table = Table$1;
|
|
9953
10237
|
exports.Tabs = Tabs$1;
|
|
9954
10238
|
exports.Tag = Tag$1;
|
|
9955
10239
|
exports.Text = Text$1;
|