@helpdice/ui 2.5.8-beta.0 → 2.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +4173 -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 +2217 -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/modal/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
7
7
|
var theme = require('@helpdice/theme');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
9
|
|
|
9
10
|
function _arrayLikeToArray(r, a) {
|
|
10
11
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -70,15 +71,6 @@ function _defineProperty(e, r, t) {
|
|
|
70
71
|
writable: true
|
|
71
72
|
}) : e[r] = t, e;
|
|
72
73
|
}
|
|
73
|
-
function _extends() {
|
|
74
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
75
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
76
|
-
var t = arguments[e];
|
|
77
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
78
|
-
}
|
|
79
|
-
return n;
|
|
80
|
-
}, _extends.apply(null, arguments);
|
|
81
|
-
}
|
|
82
74
|
function _iterableToArrayLimit(r, l) {
|
|
83
75
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
84
76
|
if (null != t) {
|
|
@@ -964,11 +956,13 @@ var withScale = function withScale(Render) {
|
|
|
964
956
|
getScaleProps: generateGetScaleProps(props),
|
|
965
957
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
966
958
|
};
|
|
967
|
-
return /*#__PURE__*/
|
|
968
|
-
value: value
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
959
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
960
|
+
value: value,
|
|
961
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
962
|
+
ref: ref,
|
|
963
|
+
children: children
|
|
964
|
+
}))
|
|
965
|
+
});
|
|
972
966
|
});
|
|
973
967
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
974
968
|
return ScaleFC;
|
|
@@ -1009,31 +1003,34 @@ var ModalWrapper = function ModalWrapper(_ref) {
|
|
|
1009
1003
|
}
|
|
1010
1004
|
}
|
|
1011
1005
|
};
|
|
1012
|
-
return /*#__PURE__*/
|
|
1006
|
+
return /*#__PURE__*/jsxRuntime.jsx(theme.CssTransition, {
|
|
1013
1007
|
name: "wrapper",
|
|
1014
1008
|
visible: visible,
|
|
1015
|
-
clearTime: 300
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1009
|
+
clearTime: 300,
|
|
1010
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
1011
|
+
role: "dialog",
|
|
1012
|
+
tabIndex: -1,
|
|
1013
|
+
onKeyDown: onKeyDown,
|
|
1014
|
+
ref: modalContent
|
|
1015
|
+
}, props), {}, {
|
|
1016
|
+
className: _JSXStyle.dynamic([["4268738715", [theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.expressiveness.shadowLarge, SCALES.font(1), SCALES.height(1, 'auto'), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (props && props.className != null && props.className || theme.useClasses('wrapper', className) || ""),
|
|
1017
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1018
|
+
tabIndex: 0,
|
|
1019
|
+
"aria-hidden": "true",
|
|
1020
|
+
ref: tabStart,
|
|
1021
|
+
className: _JSXStyle.dynamic([["4268738715", [theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.expressiveness.shadowLarge, SCALES.font(1), SCALES.height(1, 'auto'), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "hide-tab"
|
|
1022
|
+
}), children, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1023
|
+
tabIndex: 0,
|
|
1024
|
+
"aria-hidden": "true",
|
|
1025
|
+
ref: tabEnd,
|
|
1026
|
+
className: _JSXStyle.dynamic([["4268738715", [theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.expressiveness.shadowLarge, SCALES.font(1), SCALES.height(1, 'auto'), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "hide-tab"
|
|
1027
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1028
|
+
id: "4268738715",
|
|
1029
|
+
dynamic: [theme$1.palette.background, theme$1.palette.foreground, theme$1.layout.radius, theme$1.expressiveness.shadowLarge, SCALES.font(1), SCALES.height(1, 'auto'), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
1030
|
+
children: ".wrapper.__jsx-style-dynamic-selector{max-width:100%;vertical-align:middle;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;box-sizing:border-box;background-color:".concat(theme$1.palette.background, ";color:").concat(theme$1.palette.foreground, ";border-radius:").concat(theme$1.layout.radius, ";box-shadow:").concat(theme$1.expressiveness.shadowLarge, ";opacity:0;outline:none;-webkit-transform:translate3d(0px,-30px,0px);-ms-transform:translate3d(0px,-30px,0px);transform:translate3d(0px,-30px,0px);-webkit-transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0s, -webkit-transform 0.35s cubic-bezier(0.4,0,0.2,1) 0s;-webkit-transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0s;transition:opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0s;width:100%;font-size:").concat(SCALES.font(1), ";height:").concat(SCALES.height(1, 'auto'), ";--modal-wrapper-padding-left:").concat(SCALES.pl(1.3125), ";--modal-wrapper-padding-right:").concat(SCALES.pr(1.3125), ";padding:").concat(SCALES.pt(1.3125), " var(--modal-wrapper-padding-right) ").concat(SCALES.pb(1.3125), " var(--modal-wrapper-padding-left);margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.wrapper-enter.__jsx-style-dynamic-selector{opacity:0;-webkit-transform:translate3d(0px,-30px,0px);-ms-transform:translate3d(0px,-30px,0px);transform:translate3d(0px,-30px,0px);}.wrapper-enter-active.__jsx-style-dynamic-selector{opacity:1;-webkit-transform:translate3d(0px,0px,0px);-ms-transform:translate3d(0px,0px,0px);transform:translate3d(0px,0px,0px);}.wrapper-leave.__jsx-style-dynamic-selector{opacity:1;-webkit-transform:translate3d(0px,0px,0px);-ms-transform:translate3d(0px,0px,0px);transform:translate3d(0px,0px,0px);}.wrapper-leave-active.__jsx-style-dynamic-selector{opacity:0;-webkit-transform:translate3d(0px,-30px,0px);-ms-transform:translate3d(0px,-30px,0px);transform:translate3d(0px,-30px,0px);}.hide-tab.__jsx-style-dynamic-selector{outline:none;overflow:hidden;width:0;height:0;opacity:0;}")
|
|
1031
|
+
})]
|
|
1032
|
+
}))
|
|
1033
|
+
});
|
|
1037
1034
|
};
|
|
1038
1035
|
ModalWrapper.displayName = 'ModalWrapper';
|
|
1039
1036
|
|
|
@@ -1067,35 +1064,40 @@ var ButtonDrip = function ButtonDrip(_ref) {
|
|
|
1067
1064
|
dripRef.current.removeEventListener('animationend', onCompleted);
|
|
1068
1065
|
};
|
|
1069
1066
|
});
|
|
1070
|
-
return /*#__PURE__*/
|
|
1067
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1071
1068
|
ref: dripRef,
|
|
1072
|
-
className: "jsx-3424889537" + " " + "drip"
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1069
|
+
className: "jsx-3424889537" + " " + "drip",
|
|
1070
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
1071
|
+
width: "20",
|
|
1072
|
+
height: "20",
|
|
1073
|
+
viewBox: "0 0 20 20",
|
|
1074
|
+
style: {
|
|
1075
|
+
top: top,
|
|
1076
|
+
left: left
|
|
1077
|
+
},
|
|
1078
|
+
className: "jsx-3424889537",
|
|
1079
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1080
|
+
stroke: "none",
|
|
1081
|
+
strokeWidth: "1",
|
|
1082
|
+
fill: "none",
|
|
1083
|
+
fillRule: "evenodd",
|
|
1084
|
+
className: "jsx-3424889537",
|
|
1085
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1086
|
+
fill: color,
|
|
1087
|
+
className: "jsx-3424889537",
|
|
1088
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
1089
|
+
width: "100%",
|
|
1090
|
+
height: "100%",
|
|
1091
|
+
rx: "10",
|
|
1092
|
+
className: "jsx-3424889537"
|
|
1093
|
+
})
|
|
1094
|
+
})
|
|
1095
|
+
})
|
|
1096
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1097
|
+
id: "3424889537",
|
|
1098
|
+
children: ".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;}}"
|
|
1099
|
+
})]
|
|
1100
|
+
});
|
|
1099
1101
|
};
|
|
1100
1102
|
ButtonDrip.displayName = 'ButtonDrip';
|
|
1101
1103
|
|
|
@@ -1127,35 +1129,41 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
1127
1129
|
var bgColor = React.useMemo(function () {
|
|
1128
1130
|
return getIconBgColor(type, theme$1.palette, color);
|
|
1129
1131
|
}, [type, theme$1.palette, color]);
|
|
1130
|
-
return /*#__PURE__*/
|
|
1131
|
-
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1132
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1133
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1134
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1135
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + "loading",
|
|
1136
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
1137
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]),
|
|
1138
|
+
children: children
|
|
1139
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1140
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1141
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1142
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1143
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1144
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1145
|
+
})]
|
|
1146
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1147
|
+
id: "2201634259",
|
|
1148
|
+
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio],
|
|
1149
|
+
children: ".loading-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;position:relative;font-size:".concat(SCALES.font(1), ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, '100%'), ";min-height:1em;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), ";}label.__jsx-style-dynamic-selector{margin-right:0.5em;color:").concat(theme$1.palette.accents_5, ";line-height:1;}label.__jsx-style-dynamic-selector *{margin:0;}.loading.__jsx-style-dynamic-selector{position:absolute;top:50%;left:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display: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;background-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}i.__jsx-style-dynamic-selector{width:0.25em;height:0.25em;border-radius:50%;background-color:").concat(bgColor, ";margin:0 calc(0.25em / 2 * ").concat(spaceRatio, ");display:inline-block;-webkit-animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;}i.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:0.2s;animation-delay:0.2s;}i.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:0.4s;animation-delay:0.4s;}@-webkit-keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}@keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}")
|
|
1150
|
+
})]
|
|
1151
|
+
}));
|
|
1146
1152
|
};
|
|
1147
1153
|
LoadingComponent.displayName = 'Loading';
|
|
1148
1154
|
var Loading = withScale(LoadingComponent);
|
|
1149
1155
|
|
|
1150
1156
|
var ButtonLoading = function ButtonLoading(_ref) {
|
|
1151
1157
|
var color = _ref.color;
|
|
1152
|
-
return /*#__PURE__*/
|
|
1153
|
-
className: "jsx-212623367" + " " + "btn-loading"
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1158
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1159
|
+
className: "jsx-212623367" + " " + "btn-loading",
|
|
1160
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
1161
|
+
color: color
|
|
1162
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1163
|
+
id: "212623367",
|
|
1164
|
+
children: ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"
|
|
1165
|
+
})]
|
|
1166
|
+
});
|
|
1159
1167
|
};
|
|
1160
1168
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
1161
1169
|
|
|
@@ -1172,11 +1180,13 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
1172
1180
|
right: isRight,
|
|
1173
1181
|
single: isSingle
|
|
1174
1182
|
}, className);
|
|
1175
|
-
return /*#__PURE__*/
|
|
1176
|
-
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || "")
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1183
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1184
|
+
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || ""),
|
|
1185
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1186
|
+
id: "2467502931",
|
|
1187
|
+
children: ".icon.jsx-2467502931{position:absolute;left:var(--helpdice-ui-button-icon-padding);right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display: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;color:var(--helpdice-ui-button-color);z-index:1;}.right.jsx-2467502931{right:var(--helpdice-ui-button-icon-padding);left:auto;}.icon.jsx-2467502931 svg{background:transparent;height:calc(var(--helpdice-ui-button-height) / 2.35);width:calc(var(--helpdice-ui-button-height) / 2.35);}.single.jsx-2467502931{position:static;-webkit-transform:none;-ms-transform:none;transform:none;}"
|
|
1188
|
+
})]
|
|
1189
|
+
}));
|
|
1180
1190
|
};
|
|
1181
1191
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
1182
1192
|
|
|
@@ -1187,23 +1197,30 @@ var getButtonChildrenWithIcon = function getButtonChildrenWithIcon(auto, childre
|
|
|
1187
1197
|
var isRight = Boolean(iconRight);
|
|
1188
1198
|
var paddingForAutoMode = auto ? "calc(var(--helpdice-ui-button-height) / 2 + var(--helpdice-ui-button-icon-padding) * .5)" : 0;
|
|
1189
1199
|
var classes = theme.useClasses('text', isRight ? 'right' : 'left');
|
|
1190
|
-
if (!hasIcon) return /*#__PURE__*/
|
|
1191
|
-
className: "text"
|
|
1192
|
-
|
|
1200
|
+
if (!hasIcon) return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1201
|
+
className: "text",
|
|
1202
|
+
children: children
|
|
1203
|
+
});
|
|
1193
1204
|
if (React.Children.count(children) === 0) {
|
|
1194
|
-
return /*#__PURE__*/
|
|
1205
|
+
return /*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1195
1206
|
isRight: isRight,
|
|
1196
|
-
isSingle: true
|
|
1197
|
-
|
|
1207
|
+
isSingle: true,
|
|
1208
|
+
children: hasIcon
|
|
1209
|
+
});
|
|
1198
1210
|
}
|
|
1199
|
-
return /*#__PURE__*/
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1211
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1212
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1213
|
+
isRight: isRight,
|
|
1214
|
+
children: hasIcon
|
|
1215
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1216
|
+
className: _JSXStyle.dynamic([["3568181479", [paddingForAutoMode, paddingForAutoMode]]]) + " " + (classes || ""),
|
|
1217
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1218
|
+
id: "3568181479",
|
|
1219
|
+
dynamic: [paddingForAutoMode, paddingForAutoMode],
|
|
1220
|
+
children: ".left.__jsx-style-dynamic-selector{padding-left:".concat(paddingForAutoMode, ";}.right.__jsx-style-dynamic-selector{padding-right:").concat(paddingForAutoMode, ";}")
|
|
1221
|
+
})]
|
|
1222
|
+
})]
|
|
1223
|
+
});
|
|
1207
1224
|
};
|
|
1208
1225
|
var filterPropsWithGroup = function filterPropsWithGroup(props, config) {
|
|
1209
1226
|
if (!config.isButtonGroup) return props;
|
|
@@ -1607,30 +1624,35 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1607
1624
|
|
|
1608
1625
|
// If shadow provided is string then value other default
|
|
1609
1626
|
var btnShadow = typeof shadow === 'string' ? shadow : shadow ? theme$1.shadows.level.z2 : 'none';
|
|
1610
|
-
return /*#__PURE__*/
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1627
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1628
|
+
children: [to ? /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1629
|
+
href: to
|
|
1630
|
+
}, props), {}, {
|
|
1631
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), 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, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', 'btn-link', className) || ""),
|
|
1632
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1633
|
+
color: color
|
|
1634
|
+
}), childrenWithIcon]
|
|
1635
|
+
})) : /*#__PURE__*/jsxRuntime.jsxs("button", _objectSpread2(_objectSpread2({
|
|
1636
|
+
ref: buttonRef,
|
|
1637
|
+
type: type,
|
|
1638
|
+
disabled: disabled,
|
|
1639
|
+
onClick: clickHandler
|
|
1640
|
+
}, props), {}, {
|
|
1641
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), 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, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || ""),
|
|
1642
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1643
|
+
color: color
|
|
1644
|
+
}), childrenWithIcon, dripShow && /*#__PURE__*/jsxRuntime.jsx(ButtonDrip, {
|
|
1645
|
+
x: dripX,
|
|
1646
|
+
y: dripY,
|
|
1647
|
+
color: dripColor,
|
|
1648
|
+
onCompleted: dripCompletedHandle
|
|
1649
|
+
})]
|
|
1650
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1651
|
+
id: "612376042",
|
|
1652
|
+
dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), 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, btnShadow, shadow ? '-1px' : '0px'],
|
|
1653
|
+
children: ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;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(shadow ? 'transparent' : border, ";cursor:").concat(cursor !== null && cursor !== void 0 ? cursor : 'pointer', ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? btnShadow : 'none', ";--helpdice-ui-button-icon-padding:").concat(SCALES.pl(0.727), ";--helpdice-ui-button-height:").concat(SCALES.height(2.5), ";--helpdice-ui-button-color:").concat(color, ";--helpdice-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, ";--helpdice-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";border-color:").concat(hover.border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(btnShadow, ";}.btn-link.__jsx-style-dynamic-selector{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.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;top:-1px;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}.ripple.__jsx-style-dynamic-selector{position:absolute;border-radius:50%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;background-color:rgba(0,0,0,0.3);pointer-events:none;z-index:1;}@-webkit-keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}@keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}")
|
|
1654
|
+
})]
|
|
1655
|
+
});
|
|
1634
1656
|
});
|
|
1635
1657
|
ButtonComponent.displayName = 'Button';
|
|
1636
1658
|
var Button = withScale(ButtonComponent);
|
|
@@ -1672,10 +1694,11 @@ var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1672
1694
|
return disabled ? theme$1.palette.accents_1 : theme$1.palette.background;
|
|
1673
1695
|
}, [theme$1.palette, disabled]);
|
|
1674
1696
|
var _styles$className = {
|
|
1675
|
-
styles: /*#__PURE__*/
|
|
1697
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1676
1698
|
id: "930885138",
|
|
1677
|
-
dynamic: [SCALES.font(0.75), color, theme$1.palette.background, SCALES.height(3.5625), disabled ? color : theme$1.palette.foreground, disabled ? bgColor : theme$1.palette.accents_1]
|
|
1678
|
-
|
|
1699
|
+
dynamic: [SCALES.font(0.75), color, theme$1.palette.background, SCALES.height(3.5625), disabled ? color : theme$1.palette.foreground, disabled ? bgColor : theme$1.palette.accents_1],
|
|
1700
|
+
children: "button.btn.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(0.75), ";border:none;color:").concat(color, ";background-color:").concat(theme$1.palette.background, ";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-box-pack:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex:1;-ms-flex:1;flex:1;height:").concat(SCALES.height(3.5625), ";border-radius:0;min-width:0;}button.btn.__jsx-style-dynamic-selector:hover,button.btn.__jsx-style-dynamic-selector:focus{color:").concat(disabled ? color : theme$1.palette.foreground, ";background-color:").concat(disabled ? bgColor : theme$1.palette.accents_1, ";}")
|
|
1701
|
+
}),
|
|
1679
1702
|
className: _JSXStyle.dynamic([["930885138", [SCALES.font(0.75), color, theme$1.palette.background, SCALES.height(3.5625), disabled ? color : theme$1.palette.foreground, disabled ? bgColor : theme$1.palette.accents_1]]])
|
|
1680
1703
|
},
|
|
1681
1704
|
resolveClassName = _styles$className.className,
|
|
@@ -1685,11 +1708,13 @@ var ModalActionComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1685
1708
|
effect: false,
|
|
1686
1709
|
ref: btnRef
|
|
1687
1710
|
});
|
|
1688
|
-
return /*#__PURE__*/
|
|
1711
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Button, _objectSpread2(_objectSpread2({
|
|
1689
1712
|
className: classes,
|
|
1690
1713
|
onClick: clickHandler,
|
|
1691
1714
|
disabled: disabled
|
|
1692
|
-
}, overrideProps),
|
|
1715
|
+
}, overrideProps), {}, {
|
|
1716
|
+
children: [children, styles]
|
|
1717
|
+
}));
|
|
1693
1718
|
});
|
|
1694
1719
|
ModalActionComponent.displayName = 'ModalAction';
|
|
1695
1720
|
var ModalAction = withScale(ModalActionComponent);
|
|
@@ -1708,16 +1733,20 @@ var ModalActionsComponent = function ModalActionsComponent(_ref) {
|
|
|
1708
1733
|
if (!ref.current) return;
|
|
1709
1734
|
setHeight("".concat(ref.current.clientHeight, "px"));
|
|
1710
1735
|
}, [ref]);
|
|
1711
|
-
return /*#__PURE__*/
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1736
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1737
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1738
|
+
className: _JSXStyle.dynamic([["2914444644", [theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, height]]])
|
|
1739
|
+
}), /*#__PURE__*/jsxRuntime.jsx("footer", _objectSpread2(_objectSpread2({
|
|
1740
|
+
ref: ref
|
|
1741
|
+
}, props), {}, {
|
|
1742
|
+
className: _JSXStyle.dynamic([["2914444644", [theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, height]]]) + " " + (props && props.className != null && props.className || ""),
|
|
1743
|
+
children: children
|
|
1744
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1745
|
+
id: "2914444644",
|
|
1746
|
+
dynamic: [theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, height],
|
|
1747
|
+
children: "footer.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;width:100%;height:auto;position:absolute;bottom:0;left:0;right:0;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, ";}footer.__jsx-style-dynamic-selector>button.btn + button.btn{border-left:1px solid ").concat(theme$1.palette.border, ";}div.__jsx-style-dynamic-selector{height:").concat(height, ";-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}")
|
|
1748
|
+
})]
|
|
1749
|
+
});
|
|
1721
1750
|
};
|
|
1722
1751
|
ModalActionsComponent.displayName = 'ModalActions';
|
|
1723
1752
|
var ModalActions = /*#__PURE__*/React.memo(ModalActionsComponent);
|
|
@@ -2027,20 +2056,26 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
|
2027
2056
|
};
|
|
2028
2057
|
}, []);
|
|
2029
2058
|
if (!portal) return null;
|
|
2030
|
-
return /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/
|
|
2031
|
-
value: modalConfig
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2059
|
+
return /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/jsxRuntime.jsx(ModalContext.Provider, {
|
|
2060
|
+
value: modalConfig,
|
|
2061
|
+
children: /*#__PURE__*/jsxRuntime.jsx(theme.Backdrop, _objectSpread2(_objectSpread2({
|
|
2062
|
+
onClick: closeFromBackdrop,
|
|
2063
|
+
onContentClick: onContentClick,
|
|
2064
|
+
visible: visible,
|
|
2065
|
+
width: SCALES.width(26),
|
|
2066
|
+
positionClassName: positionClassName,
|
|
2067
|
+
backdropClassName: backdropClassName,
|
|
2068
|
+
layerClassName: layerClassName
|
|
2069
|
+
}, bindings), {}, {
|
|
2070
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(ModalWrapper, {
|
|
2071
|
+
visible: visible,
|
|
2072
|
+
className: wrapClassName,
|
|
2073
|
+
children: [withoutActionsChildren, hasActions && /*#__PURE__*/jsxRuntime.jsx(ModalActions, {
|
|
2074
|
+
children: ActionsChildren
|
|
2075
|
+
})]
|
|
2076
|
+
})
|
|
2077
|
+
}))
|
|
2078
|
+
}), portal);
|
|
2044
2079
|
};
|
|
2045
2080
|
ModalComponent.displayName = 'Modal';
|
|
2046
2081
|
var Modal = withScale(ModalComponent);
|
|
@@ -2054,12 +2089,16 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
|
2054
2089
|
var theme$1 = theme.useTheme();
|
|
2055
2090
|
var _useScale = useScale(),
|
|
2056
2091
|
SCALES = _useScale.SCALES;
|
|
2057
|
-
return /*#__PURE__*/
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2092
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2093
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("h2", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2094
|
+
className: _JSXStyle.dynamic([["2865939188", [SCALES.font(1.5), theme$1.palette.foreground, 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)]]]) + " " + (props && props.className != null && props.className || className || ""),
|
|
2095
|
+
children: children
|
|
2096
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2097
|
+
id: "2865939188",
|
|
2098
|
+
dynamic: [SCALES.font(1.5), theme$1.palette.foreground, 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)],
|
|
2099
|
+
children: "h2.__jsx-style-dynamic-selector{line-height:1.6;font-weight:normal;text-align:center;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-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;word-break:break-word;text-transform:capitalize;font-size:".concat(SCALES.font(1.5), ";color:").concat(theme$1.palette.foreground, ";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), ";}")
|
|
2100
|
+
})]
|
|
2101
|
+
});
|
|
2063
2102
|
};
|
|
2064
2103
|
ModalTitleComponent.displayName = 'ModalTitle';
|
|
2065
2104
|
var ModalTitle = withScale(ModalTitleComponent);
|
|
@@ -2073,12 +2112,16 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
|
2073
2112
|
var theme$1 = theme.useTheme();
|
|
2074
2113
|
var _useScale = useScale(),
|
|
2075
2114
|
SCALES = _useScale.SCALES;
|
|
2076
|
-
return /*#__PURE__*/
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2115
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2116
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2117
|
+
className: _JSXStyle.dynamic([["2550488204", [theme$1.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, '1.5em'), 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 || ""),
|
|
2118
|
+
children: children
|
|
2119
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2120
|
+
id: "2550488204",
|
|
2121
|
+
dynamic: [theme$1.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, '1.5em'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
2122
|
+
children: "p.__jsx-style-dynamic-selector{font-weight:normal;display:inline-block;text-align:center;word-break:break-word;text-transform:uppercase;color:".concat(theme$1.palette.accents_5, ";font-size:").concat(SCALES.font(0.875), ";line-height:1.5em;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, '1.5em'), ";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), ";}")
|
|
2123
|
+
})]
|
|
2124
|
+
});
|
|
2082
2125
|
};
|
|
2083
2126
|
ModalSubtitleComponent.displayName = 'ModalSubtitle';
|
|
2084
2127
|
var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
@@ -2091,12 +2134,16 @@ var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
|
2091
2134
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
2092
2135
|
var _useScale = useScale(),
|
|
2093
2136
|
SCALES = _useScale.SCALES;
|
|
2094
|
-
return /*#__PURE__*/
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2137
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2138
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2139
|
+
className: _JSXStyle.dynamic([["498745028", [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.3125), SCALES.pr(1.3125), SCALES.pb(0.6625), SCALES.pl(1.3125), SCALES.mt(0), SCALES.mr(0, 'calc(var(--modal-wrapper-padding-right) * -1)'), SCALES.mb(0), SCALES.ml(0, 'calc(var(--modal-wrapper-padding-left) * -1)')]]]) + " " + (props && props.className != null && props.className || theme.useClasses('content', className) || ""),
|
|
2140
|
+
children: children
|
|
2141
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2142
|
+
id: "498745028",
|
|
2143
|
+
dynamic: [SCALES.font(1), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(1.3125), SCALES.pr(1.3125), SCALES.pb(0.6625), SCALES.pl(1.3125), SCALES.mt(0), SCALES.mr(0, 'calc(var(--modal-wrapper-padding-right) * -1)'), SCALES.mb(0), SCALES.ml(0, 'calc(var(--modal-wrapper-padding-left) * -1)')],
|
|
2144
|
+
children: ".content.__jsx-style-dynamic-selector{position:relative;text-align:left;font-size:".concat(SCALES.font(1), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(1.3125), " ").concat(SCALES.pr(1.3125), " ").concat(SCALES.pb(0.6625), " ").concat(SCALES.pl(1.3125), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0, 'calc(var(--modal-wrapper-padding-right) * -1)'), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0, 'calc(var(--modal-wrapper-padding-left) * -1)'), ";}.content.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}.content.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")
|
|
2145
|
+
})]
|
|
2146
|
+
});
|
|
2100
2147
|
};
|
|
2101
2148
|
ModalContentComponent.displayName = 'ModalContent';
|
|
2102
2149
|
var ModalContent = withScale(ModalContentComponent);
|