@helpdice/ui 2.5.8-beta.0 → 2.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-complete/index.js +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -328
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4172 -3745
- package/dist/input/index.js +466 -419
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +180 -123
- package/dist/placeholder/index.js +545 -534
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +364 -327
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +2216 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +4 -1
- package/esm/table/table.js +13 -6
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
package/dist/card/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function _arrayLikeToArray(r, a) {
|
|
9
10
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -69,15 +70,6 @@ function _defineProperty(e, r, t) {
|
|
|
69
70
|
writable: true
|
|
70
71
|
}) : e[r] = t, e;
|
|
71
72
|
}
|
|
72
|
-
function _extends() {
|
|
73
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
74
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
75
|
-
var t = arguments[e];
|
|
76
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
77
|
-
}
|
|
78
|
-
return n;
|
|
79
|
-
}, _extends.apply(null, arguments);
|
|
80
|
-
}
|
|
81
73
|
function _iterableToArrayLimit(r, l) {
|
|
82
74
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
83
75
|
if (null != t) {
|
|
@@ -962,11 +954,13 @@ var withScale = function withScale(Render) {
|
|
|
962
954
|
getScaleProps: generateGetScaleProps(props),
|
|
963
955
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
964
956
|
};
|
|
965
|
-
return /*#__PURE__*/
|
|
966
|
-
value: value
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
957
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
958
|
+
value: value,
|
|
959
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
960
|
+
ref: ref,
|
|
961
|
+
children: children
|
|
962
|
+
}))
|
|
963
|
+
});
|
|
970
964
|
});
|
|
971
965
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
972
966
|
return ScaleFC;
|
|
@@ -986,12 +980,14 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
|
986
980
|
var classes = theme.useClasses({
|
|
987
981
|
'auto-margin': !disableAutoMargin
|
|
988
982
|
}, className);
|
|
989
|
-
return /*#__PURE__*/
|
|
990
|
-
className: _JSXStyle.dynamic([["1602358380", [SCALES.py(0.66), SCALES.px(1.31), SCALES.font(0.875), theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, SCALES.height(3.3), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.gapQuarter]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
983
|
+
return /*#__PURE__*/jsxRuntime.jsxs("footer", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
984
|
+
className: _JSXStyle.dynamic([["1602358380", [SCALES.py(0.66), SCALES.px(1.31), SCALES.font(0.875), theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, SCALES.height(3.3), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.gapQuarter]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
985
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
986
|
+
id: "1602358380",
|
|
987
|
+
dynamic: [SCALES.py(0.66), SCALES.px(1.31), SCALES.font(0.875), theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, SCALES.height(3.3), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.gapQuarter],
|
|
988
|
+
children: "footer.__jsx-style-dynamic-selector{padding:".concat(SCALES.py(0.66), " ").concat(SCALES.px(1.31), ";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;overflow:hidden;color:inherit;background-color:inherit;font-size:").concat(SCALES.font(0.875), ";border-top:1px solid ").concat(theme$1.palette.border, ";border-bottom-left-radius:").concat(theme$1.layout.radius, ";border-bottom-right-radius:").concat(theme$1.layout.radius, ";min-height:").concat(SCALES.height(3.3), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.auto-margin.__jsx-style-dynamic-selector *{margin-top:0;margin-bottom:0;margin-right:").concat(theme$1.layout.gapQuarter, ";}")
|
|
989
|
+
})]
|
|
990
|
+
}));
|
|
995
991
|
};
|
|
996
992
|
CardFooterComponent.displayName = 'CardFooter';
|
|
997
993
|
var CardFooter = withScale(CardFooterComponent);
|
|
@@ -1004,12 +1000,14 @@ var CardContentComponent = function CardContentComponent(_ref) {
|
|
|
1004
1000
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
1005
1001
|
var _useScale = useScale(),
|
|
1006
1002
|
SCALES = _useScale.SCALES;
|
|
1007
|
-
return /*#__PURE__*/
|
|
1008
|
-
className: _JSXStyle.dynamic([["490544004", [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1), SCALES.pr(1), SCALES.pb(1), SCALES.pl(1), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || theme.useClasses('content', className) || "")
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1003
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1004
|
+
className: _JSXStyle.dynamic([["490544004", [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1), SCALES.pr(1), SCALES.pb(1), SCALES.pl(1), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || theme.useClasses('content', className) || ""),
|
|
1005
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1006
|
+
id: "490544004",
|
|
1007
|
+
dynamic: [SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(1), SCALES.pr(1), SCALES.pb(1), SCALES.pl(1), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
1008
|
+
children: ".content.__jsx-style-dynamic-selector{width:".concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(1), " ").concat(SCALES.pr(1), " ").concat(SCALES.pb(1), " ").concat(SCALES.pl(1), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.content.__jsx-style-dynamic-selector>p:first-child{margin-top:0;}.content.__jsx-style-dynamic-selector>p:last-child{margin-bottom:0;}")
|
|
1009
|
+
})]
|
|
1010
|
+
}));
|
|
1013
1011
|
};
|
|
1014
1012
|
CardContentComponent.displayName = 'CardContent';
|
|
1015
1013
|
var CardContent = withScale(CardContentComponent);
|
|
@@ -1020,12 +1018,14 @@ var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
1020
1018
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
1021
1019
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
1022
1020
|
var theme$1 = theme.useTheme();
|
|
1023
|
-
return /*#__PURE__*/
|
|
1024
|
-
className: _JSXStyle.dynamic([["2946022605", [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton")
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1021
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1022
|
+
className: _JSXStyle.dynamic([["2946022605", [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton"),
|
|
1023
|
+
children: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1024
|
+
id: "2946022605",
|
|
1025
|
+
dynamic: [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity],
|
|
1026
|
+
children: ".skeleton.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-image:linear-gradient( 270deg, ".concat(theme$1.palette.accents_1, ", ").concat(theme$1.palette.accents_2, ", ").concat(theme$1.palette.accents_2, ", ").concat(theme$1.palette.accents_1, " );background-size:400% 100%;-webkit-animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;opacity:").concat(opacity, ";-webkit-transition:opacity 300ms ease-out;transition:opacity 300ms ease-out;}@-webkit-keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}@keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}")
|
|
1027
|
+
})
|
|
1028
|
+
}));
|
|
1029
1029
|
});
|
|
1030
1030
|
ImageSkeleton.displayName = 'ImageSkeleton';
|
|
1031
1031
|
|
|
@@ -1096,26 +1096,28 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
1096
1096
|
return clearTimeout(timer);
|
|
1097
1097
|
};
|
|
1098
1098
|
}, [loading]);
|
|
1099
|
-
return /*#__PURE__*/
|
|
1100
|
-
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (theme.useClasses('image', className) || "")
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1099
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1100
|
+
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (theme.useClasses('image', className) || ""),
|
|
1101
|
+
children: [showSkeleton && showAnimation && /*#__PURE__*/jsxRuntime.jsx(ImageSkeleton, {
|
|
1102
|
+
opacity: loading ? 0.5 : 0
|
|
1103
|
+
}), /*#__PURE__*/jsxRuntime.jsx("img", _objectSpread2(_objectSpread2({
|
|
1104
|
+
ref: imageRef,
|
|
1105
|
+
onLoad: imageLoaded,
|
|
1106
|
+
src: url
|
|
1107
|
+
}, props), {}, {
|
|
1108
|
+
className: _JSXStyle.dynamic([["4175752462", [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')]]]) + " " + (props && props.className != null && props.className || "")
|
|
1109
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1110
|
+
id: "4175752462",
|
|
1111
|
+
dynamic: [theme$1.layout.radius, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, 'auto'), SCALES.height(1, 'auto')],
|
|
1112
|
+
children: ".image.__jsx-style-dynamic-selector{position:relative;border-radius:".concat(theme$1.layout.radius, ";overflow:hidden;max-width:100%;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0, 'auto'), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}img.__jsx-style-dynamic-selector{width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";object-fit:scale-down;display:inline-block;}")
|
|
1113
|
+
})]
|
|
1114
|
+
});
|
|
1113
1115
|
};
|
|
1114
1116
|
ImageComponent.displayName = 'Image';
|
|
1115
1117
|
var Image = withScale(ImageComponent);
|
|
1116
1118
|
|
|
1117
1119
|
var LinkIconComponent = function LinkIconComponent() {
|
|
1118
|
-
return /*#__PURE__*/
|
|
1120
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1119
1121
|
viewBox: "0 0 24 24",
|
|
1120
1122
|
width: "0.9375em",
|
|
1121
1123
|
height: "0.9375em",
|
|
@@ -1125,19 +1127,21 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
1125
1127
|
strokeLinejoin: "round",
|
|
1126
1128
|
fill: "none",
|
|
1127
1129
|
shapeRendering: "geometricPrecision",
|
|
1128
|
-
className: "jsx-3409194595" + " " + "icon"
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1130
|
+
className: "jsx-3409194595" + " " + "icon",
|
|
1131
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1132
|
+
d: "M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6",
|
|
1133
|
+
className: "jsx-3409194595"
|
|
1134
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1135
|
+
d: "M15 3h6v6",
|
|
1136
|
+
className: "jsx-3409194595"
|
|
1137
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1138
|
+
d: "M10 14L21 3",
|
|
1139
|
+
className: "jsx-3409194595"
|
|
1140
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1141
|
+
id: "3409194595",
|
|
1142
|
+
children: ".icon.jsx-3409194595{margin:0 0 -1px 0.1875em;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:currentColor;}"
|
|
1143
|
+
})]
|
|
1144
|
+
});
|
|
1141
1145
|
};
|
|
1142
1146
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
1143
1147
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
@@ -1203,37 +1207,42 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1203
1207
|
var classes = theme.useClasses('link', {
|
|
1204
1208
|
block: block
|
|
1205
1209
|
}, className);
|
|
1206
|
-
return /*#__PURE__*/
|
|
1210
|
+
return /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1207
1211
|
href: href
|
|
1208
|
-
}, props, {
|
|
1212
|
+
}, props), {}, {
|
|
1209
1213
|
ref: ref,
|
|
1210
|
-
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1214
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1215
|
+
children: [icon && icon, /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1216
|
+
className: _JSXStyle.dynamic([["1962988967", [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor]]]) + " " + "link-extra",
|
|
1217
|
+
children: [children, arrow && /*#__PURE__*/jsxRuntime.jsx(LinkIcon, {})]
|
|
1218
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1219
|
+
id: "1962988967",
|
|
1220
|
+
dynamic: [linkColor, block ? theme$1.layout.radius : 0, SCALES.font(1, 'inherit'), SCALES.width(1, 'fit-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.pt(0.125), SCALES.pr(0.25), SCALES.pb(0.125), SCALES.pl(0.25), SCALES.mt(0), SCALES.mr(-0.125), SCALES.mb(0), SCALES.ml(-0.125), decoration, block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', hoverColor],
|
|
1221
|
+
children: ".link.__jsx-style-dynamic-selector,.link-extra.__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;line-height:inherit;gap:5px;color:".concat(linkColor, ";-webkit-text-decoration:none;text-decoration:none;border-radius:").concat(block ? theme$1.layout.radius : 0, ";-webkit-transition:color 200ms ease 0ms;transition:color 200ms ease 0ms;font-size:").concat(SCALES.font(1, 'inherit'), ";width:").concat(SCALES.width(1, 'fit-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.block.__jsx-style-dynamic-selector{padding:").concat(SCALES.pt(0.125), " ").concat(SCALES.pr(0.25), " ").concat(SCALES.pb(0.125), " ").concat(SCALES.pl(0.25), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(-0.125), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(-0.125), ";}.link.__jsx-style-dynamic-selector:hover,.link.__jsx-style-dynamic-selector:active,.link.__jsx-style-dynamic-selector:focus{-webkit-text-decoration:").concat(decoration, ";text-decoration:").concat(decoration, ";}.link.__jsx-style-dynamic-selector:hover{background-color:").concat(block ? addColorAlpha(theme$1.palette.link, 0.1) : 'unset', ";color:").concat(hoverColor, ";}")
|
|
1222
|
+
})]
|
|
1223
|
+
}));
|
|
1217
1224
|
});
|
|
1218
1225
|
LinkComponent.displayName = 'Link';
|
|
1219
1226
|
var Link = withScale(LinkComponent);
|
|
1220
1227
|
|
|
1221
1228
|
var ImageBrowserHttpsIcon = function ImageBrowserHttpsIcon() {
|
|
1222
|
-
return /*#__PURE__*/
|
|
1229
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1223
1230
|
viewBox: "0 0 24 24",
|
|
1224
1231
|
fill: "currentColor",
|
|
1225
|
-
className: "jsx-4165143638"
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1232
|
+
className: "jsx-4165143638",
|
|
1233
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1234
|
+
d: "M5 10.2H19V21H5V10.2Z",
|
|
1235
|
+
className: "jsx-4165143638"
|
|
1236
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1237
|
+
fillRule: "evenodd",
|
|
1238
|
+
clipRule: "evenodd",
|
|
1239
|
+
d: "M12 12C13.933 12 15.5 10.3882 15.5 8.4C15.5 6.41177 13.933 4.8 12 4.8C10.067 4.8 8.5 6.41177 8.5 8.4C8.5 10.3882 10.067 12 12 12ZM12 13.8C14.8995 13.8 17.25 11.3823 17.25 8.4C17.25 5.41766 14.8995 3 12 3C9.10051 3 6.75 5.41766 6.75 8.4C6.75 11.3823 9.10051 13.8 12 13.8Z",
|
|
1240
|
+
className: "jsx-4165143638"
|
|
1241
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1242
|
+
id: "4165143638",
|
|
1243
|
+
children: "svg.jsx-4165143638{width:1em;height:1em;}"
|
|
1244
|
+
})]
|
|
1245
|
+
});
|
|
1237
1246
|
};
|
|
1238
1247
|
var MemoImageBrowserHttpsIcon = /*#__PURE__*/React.memo(ImageBrowserHttpsIcon);
|
|
1239
1248
|
|
|
@@ -1255,26 +1264,33 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
1255
1264
|
|
|
1256
1265
|
var _excluded$1 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
1257
1266
|
var getTitle = function getTitle(title, colors) {
|
|
1258
|
-
return /*#__PURE__*/
|
|
1259
|
-
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title"
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1267
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1268
|
+
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
1269
|
+
children: [title, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1270
|
+
id: "524099755",
|
|
1271
|
+
dynamic: [colors.titleColor],
|
|
1272
|
+
children: ".title.__jsx-style-dynamic-selector{color:".concat(colors.titleColor, ";font-size:0.75em;}")
|
|
1273
|
+
})]
|
|
1274
|
+
});
|
|
1264
1275
|
};
|
|
1265
1276
|
var getAddressInput = function getAddressInput(url, showFullLink, colors, anchorProps) {
|
|
1266
|
-
return /*#__PURE__*/
|
|
1267
|
-
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "address-input"
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1277
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1278
|
+
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "address-input",
|
|
1279
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1280
|
+
className: _JSXStyle.dynamic([["3718009574", [colors.inputBgColor]]]) + " " + "https",
|
|
1281
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MemoImageBrowserHttpsIcon, {})
|
|
1282
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Link, _objectSpread2(_objectSpread2({
|
|
1283
|
+
href: url,
|
|
1284
|
+
title: url,
|
|
1285
|
+
target: "_blank"
|
|
1286
|
+
}, anchorProps), {}, {
|
|
1287
|
+
children: showFullLink ? url : getHostFromUrl(url)
|
|
1288
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1289
|
+
id: "3718009574",
|
|
1290
|
+
dynamic: [colors.inputBgColor],
|
|
1291
|
+
children: ".address-input.__jsx-style-dynamic-selector{height:1.75em;max-width:60%;min-width:40%;background-color:".concat(colors.inputBgColor, ";color:inherit;border-radius:3px;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-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0 10px;overflow:hidden;position:relative;}.address-input.__jsx-style-dynamic-selector *{font-size:0.75em;color:inherit;}.address-input.__jsx-style-dynamic-selector a{max-width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;color:inherit;}.https.__jsx-style-dynamic-selector{width:0.75em;height:0.75em;font-size:1em;margin-right:0.31em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-1px;color:inherit;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;}")
|
|
1292
|
+
})]
|
|
1293
|
+
});
|
|
1278
1294
|
};
|
|
1279
1295
|
var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1280
1296
|
var url = _ref.url,
|
|
@@ -1300,24 +1316,28 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1300
1316
|
if (title) return getTitle(title, colors);
|
|
1301
1317
|
return null;
|
|
1302
1318
|
}, [url, showFullLink, title, colors, anchorProps]);
|
|
1303
|
-
return /*#__PURE__*/
|
|
1319
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
1304
1320
|
ref: ref
|
|
1305
|
-
}, props, {
|
|
1306
|
-
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + (props && props.className != null && props.className || theme.useClasses('browser', className) || "")
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
+
}, props), {}, {
|
|
1322
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + (props && props.className != null && props.className || theme.useClasses('browser', className) || ""),
|
|
1323
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("header", {
|
|
1324
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]),
|
|
1325
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1326
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "traffic",
|
|
1327
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1328
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "close"
|
|
1329
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1330
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "mini"
|
|
1331
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1332
|
+
className: _JSXStyle.dynamic([["1856409351", [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf]]]) + " " + "full"
|
|
1333
|
+
})]
|
|
1334
|
+
}), input]
|
|
1335
|
+
}), children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1336
|
+
id: "1856409351",
|
|
1337
|
+
dynamic: [theme$1.expressiveness.shadowLarge, theme$1.layout.radius, SCALES.font(1), SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0, 'auto'), SCALES.mb(0), SCALES.ml(0, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme$1.layout.gapHalf],
|
|
1338
|
+
children: ".browser.__jsx-style-dynamic-selector{background-color:transparent;box-shadow:".concat(theme$1.expressiveness.shadowLarge, ";max-width:100%;border-radius:").concat(theme$1.layout.radius, ";overflow:hidden;font-size:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'max-content'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0, 'auto'), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";}.browser.__jsx-style-dynamic-selector .image{border-top-left-radius:0;border-top-right-radius:0;}header.__jsx-style-dynamic-selector{height:2.5em;width:100%;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-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative;color:").concat(colors.color, ";background-color:").concat(colors.barBgColor, ";border-bottom:1px solid ").concat(colors.borderColor, ";}.traffic.__jsx-style-dynamic-selector{width:auto;position:absolute;left:").concat(theme$1.layout.gapHalf, ";top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);bottom:0;height:100%;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-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;}.traffic.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{border-radius:50%;width:0.75em;height:0.75em;max-width:20px;max-height:20px;display:inline-block;margin-right:0.5em;}.close.__jsx-style-dynamic-selector{background-color:#ff5f56;}.mini.__jsx-style-dynamic-selector{background-color:#ffbd2e;}.full.__jsx-style-dynamic-selector{background-color:#27c93f;}")
|
|
1339
|
+
})]
|
|
1340
|
+
}));
|
|
1321
1341
|
});
|
|
1322
1342
|
ImageBrowserComponent.displayName = 'ImageBrowser';
|
|
1323
1343
|
var ImageBrowser = withScale(ImageBrowserComponent);
|
|
@@ -1358,12 +1378,16 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
1358
1378
|
withoutImageChildren = _pickChild4[0],
|
|
1359
1379
|
imageChildren = _pickChild4[1];
|
|
1360
1380
|
var hasContent = hasChild(withoutImageChildren, CardContent);
|
|
1361
|
-
return /*#__PURE__*/
|
|
1362
|
-
className: _JSXStyle.dynamic([["4234389955", [theme$1.palette.background, theme$1.layout.radius, shadow ? theme$1.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || theme.useClasses('card', className) || "")
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1381
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1382
|
+
className: _JSXStyle.dynamic([["4234389955", [theme$1.palette.background, theme$1.layout.radius, shadow ? theme$1.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || theme.useClasses('card', className) || ""),
|
|
1383
|
+
children: [imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/jsxRuntime.jsx(CardContent, {
|
|
1384
|
+
children: withoutImageChildren
|
|
1385
|
+
}), footerChildren, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1386
|
+
id: "4234389955",
|
|
1387
|
+
dynamic: [theme$1.palette.background, theme$1.layout.radius, shadow ? theme$1.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow],
|
|
1388
|
+
children: ".card.__jsx-style-dynamic-selector{background:".concat(theme$1.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(theme$1.layout.radius, ";box-shadow:").concat(shadow ? theme$1.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:1px solid ").concat(borderColor, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")
|
|
1389
|
+
})]
|
|
1390
|
+
}));
|
|
1367
1391
|
};
|
|
1368
1392
|
CardComponent.displayName = 'Card';
|
|
1369
1393
|
var Card = withScale(CardComponent);
|