@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/slider/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);
|
|
@@ -64,14 +65,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}, _extends.apply(null, arguments);
|
|
68
|
+
function _defineProperty(e, r, t) {
|
|
69
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
70
|
+
value: t,
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true
|
|
74
|
+
}) : e[r] = t, e;
|
|
75
75
|
}
|
|
76
76
|
function _iterableToArray(r) {
|
|
77
77
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
@@ -109,6 +109,27 @@ function _nonIterableRest() {
|
|
|
109
109
|
function _nonIterableSpread() {
|
|
110
110
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
111
111
|
}
|
|
112
|
+
function ownKeys(e, r) {
|
|
113
|
+
var t = Object.keys(e);
|
|
114
|
+
if (Object.getOwnPropertySymbols) {
|
|
115
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
116
|
+
r && (o = o.filter(function (r) {
|
|
117
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
118
|
+
})), t.push.apply(t, o);
|
|
119
|
+
}
|
|
120
|
+
return t;
|
|
121
|
+
}
|
|
122
|
+
function _objectSpread2(e) {
|
|
123
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
124
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
125
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
126
|
+
_defineProperty(e, r, t[r]);
|
|
127
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
128
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return e;
|
|
132
|
+
}
|
|
112
133
|
function _objectWithoutProperties(e, t) {
|
|
113
134
|
if (null == e) return {};
|
|
114
135
|
var o,
|
|
@@ -135,6 +156,20 @@ function _slicedToArray(r, e) {
|
|
|
135
156
|
function _toConsumableArray(r) {
|
|
136
157
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
137
158
|
}
|
|
159
|
+
function _toPrimitive(t, r) {
|
|
160
|
+
if ("object" != typeof t || !t) return t;
|
|
161
|
+
var e = t[Symbol.toPrimitive];
|
|
162
|
+
if (void 0 !== e) {
|
|
163
|
+
var i = e.call(t, r);
|
|
164
|
+
if ("object" != typeof i) return i;
|
|
165
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
166
|
+
}
|
|
167
|
+
return ("string" === r ? String : Number)(t);
|
|
168
|
+
}
|
|
169
|
+
function _toPropertyKey(t) {
|
|
170
|
+
var i = _toPrimitive(t, "string");
|
|
171
|
+
return "symbol" == typeof i ? i : i + "";
|
|
172
|
+
}
|
|
138
173
|
function _unsupportedIterableToArray(r, a) {
|
|
139
174
|
if (r) {
|
|
140
175
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -760,13 +795,15 @@ var SliderDot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
760
795
|
disabled: disabled,
|
|
761
796
|
click: isClick
|
|
762
797
|
});
|
|
763
|
-
return /*#__PURE__*/
|
|
798
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
764
799
|
ref: ref,
|
|
765
|
-
className: _JSXStyle.dynamic([["3479628597", [left, theme$1.palette.success, theme$1.palette.background, theme$1.palette.accents_2, theme$1.palette.accents_4]]]) + " " + (classes || "")
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
800
|
+
className: _JSXStyle.dynamic([["3479628597", [left, theme$1.palette.success, theme$1.palette.background, theme$1.palette.accents_2, theme$1.palette.accents_4]]]) + " " + (classes || ""),
|
|
801
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
802
|
+
id: "3479628597",
|
|
803
|
+
dynamic: [left, theme$1.palette.success, theme$1.palette.background, theme$1.palette.accents_2, theme$1.palette.accents_4],
|
|
804
|
+
children: ".dot.__jsx-style-dynamic-selector{position:absolute;left:".concat(left, "%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);height:calc(var(--slider-font-size) * 1.25);min-width:calc(var(--slider-font-size) * 1.25);line-height:calc(var(--slider-font-size) * 1.25);border-radius:calc(var(--slider-font-size) * 0.625);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700;font-size:calc(var(--slider-font-size) * 0.75);z-index:100;background-color:").concat(theme$1.palette.success, ";color:").concat(theme$1.palette.background, ";text-align:center;padding:0 calc(0.57 * var(--slider-font-size));}.dot.disabled.__jsx-style-dynamic-selector{cursor:not-allowed !important;background-color:").concat(theme$1.palette.accents_2, ";color:").concat(theme$1.palette.accents_4, ";}.dot.click.__jsx-style-dynamic-selector{-webkit-transition:all 200ms ease;transition:all 200ms ease;}.dot.__jsx-style-dynamic-selector:hover{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}.dot.__jsx-style-dynamic-selector:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing;}")
|
|
805
|
+
})]
|
|
806
|
+
});
|
|
770
807
|
});
|
|
771
808
|
SliderDot.displayName = 'SliderDot';
|
|
772
809
|
|
|
@@ -787,18 +824,20 @@ var SliderMark = function SliderMark(_ref) {
|
|
|
787
824
|
var marks = React.useMemo(function () {
|
|
788
825
|
return getMarks(min, max, step);
|
|
789
826
|
}, [min, max, step]);
|
|
790
|
-
return /*#__PURE__*/
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
827
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
828
|
+
children: [marks.map(function (val, index) {
|
|
829
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
830
|
+
style: {
|
|
831
|
+
left: "".concat(val, "%")
|
|
832
|
+
},
|
|
833
|
+
className: _JSXStyle.dynamic([["324900419", [theme$1.palette.background]]])
|
|
834
|
+
}, "".concat(val, "-").concat(index));
|
|
835
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
836
|
+
id: "324900419",
|
|
837
|
+
dynamic: [theme$1.palette.background],
|
|
838
|
+
children: "span.__jsx-style-dynamic-selector{position:absolute;width:2px;height:100%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:".concat(theme$1.palette.background, ";}")
|
|
839
|
+
})]
|
|
840
|
+
});
|
|
802
841
|
};
|
|
803
842
|
|
|
804
843
|
var getColors = function getColors(palette, status) {
|
|
@@ -995,11 +1034,13 @@ var withScale = function withScale(Render) {
|
|
|
995
1034
|
getScaleProps: generateGetScaleProps(props),
|
|
996
1035
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
997
1036
|
};
|
|
998
|
-
return /*#__PURE__*/
|
|
999
|
-
value: value
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1037
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
1038
|
+
value: value,
|
|
1039
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1040
|
+
ref: ref,
|
|
1041
|
+
children: children
|
|
1042
|
+
}))
|
|
1043
|
+
});
|
|
1003
1044
|
});
|
|
1004
1045
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
1005
1046
|
return ScaleFC;
|
|
@@ -1114,24 +1155,27 @@ var SliderComponent = function SliderComponent(_ref) {
|
|
|
1114
1155
|
React.useEffect(function () {
|
|
1115
1156
|
initialValue && setLastOffsetManually(initialValue);
|
|
1116
1157
|
}, []);
|
|
1117
|
-
return /*#__PURE__*/
|
|
1158
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
1118
1159
|
onClick: clickHandler,
|
|
1119
1160
|
ref: sliderRef
|
|
1120
|
-
}, props, {
|
|
1121
|
-
className: _JSXStyle.dynamic([["219401708", [disabled ? theme$1.palette.accents_2 : bg, disabled ? 'not-allow' : 'pointer', SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(0.5), 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 || theme.useClasses('slider', className) || "")
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1161
|
+
}, props), {}, {
|
|
1162
|
+
className: _JSXStyle.dynamic([["219401708", [disabled ? theme$1.palette.accents_2 : bg, disabled ? 'not-allow' : 'pointer', SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(0.5), 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 || theme.useClasses('slider', className) || ""),
|
|
1163
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(SliderDot, {
|
|
1164
|
+
disabled: disabled,
|
|
1165
|
+
ref: dotRef,
|
|
1166
|
+
isClick: isClick,
|
|
1167
|
+
left: currentRatio,
|
|
1168
|
+
children: hideValue || value
|
|
1169
|
+
}), showMarkers && /*#__PURE__*/jsxRuntime.jsx(SliderMark, {
|
|
1170
|
+
max: max,
|
|
1171
|
+
min: min,
|
|
1172
|
+
step: step
|
|
1173
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1174
|
+
id: "219401708",
|
|
1175
|
+
dynamic: [disabled ? theme$1.palette.accents_2 : bg, disabled ? 'not-allow' : 'pointer', SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(0.5), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
1176
|
+
children: ".slider.__jsx-style-dynamic-selector{border-radius:50px;background-color:".concat(disabled ? theme$1.palette.accents_2 : bg, ";position:relative;cursor:").concat(disabled ? 'not-allow' : 'pointer', ";--slider-font-size:").concat(SCALES.font(1), ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(0.5), ";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), ";}")
|
|
1177
|
+
})]
|
|
1178
|
+
}));
|
|
1135
1179
|
};
|
|
1136
1180
|
SliderComponent.displayName = 'Slider';
|
|
1137
1181
|
var Slider = withScale(SliderComponent);
|
package/dist/snippet/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) {
|
|
@@ -763,7 +755,7 @@ var getStyles = function getStyles(type, palette, fill) {
|
|
|
763
755
|
};
|
|
764
756
|
|
|
765
757
|
var SnippetIconComponent = function SnippetIconComponent() {
|
|
766
|
-
return /*#__PURE__*/
|
|
758
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
767
759
|
viewBox: "0 0 24 24",
|
|
768
760
|
stroke: "currentColor",
|
|
769
761
|
strokeWidth: "1.5",
|
|
@@ -774,13 +766,15 @@ var SnippetIconComponent = function SnippetIconComponent() {
|
|
|
774
766
|
style: {
|
|
775
767
|
color: 'currentcolor'
|
|
776
768
|
},
|
|
777
|
-
className: "jsx-418323402"
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
769
|
+
className: "jsx-418323402",
|
|
770
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
771
|
+
d: "M8 17.929H6c-1.105 0-2-.912-2-2.036V5.036C4 3.91 4.895 3 6 3h8c1.105 0 2 .911 2 2.036v1.866m-6 .17h8c1.105 0 2 .91 2 2.035v10.857C20 21.09 19.105 22 18 22h-8c-1.105 0-2-.911-2-2.036V9.107c0-1.124.895-2.036 2-2.036z",
|
|
772
|
+
className: "jsx-418323402"
|
|
773
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
774
|
+
id: "418323402",
|
|
775
|
+
children: "svg.jsx-418323402{width:calc(var(--snippet-font-size) * 1.69);height:calc(var(--snippet-font-size) * 1.69);}"
|
|
776
|
+
})]
|
|
777
|
+
});
|
|
784
778
|
};
|
|
785
779
|
SnippetIconComponent.displayName = 'SnippetIcon';
|
|
786
780
|
var SnippetIcon = /*#__PURE__*/React.memo(SnippetIconComponent);
|
|
@@ -1056,11 +1050,13 @@ var withScale = function withScale(Render) {
|
|
|
1056
1050
|
getScaleProps: generateGetScaleProps(props),
|
|
1057
1051
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
1058
1052
|
};
|
|
1059
|
-
return /*#__PURE__*/
|
|
1060
|
-
value: value
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1053
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
1054
|
+
value: value,
|
|
1055
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1056
|
+
ref: ref,
|
|
1057
|
+
children: children
|
|
1058
|
+
}))
|
|
1059
|
+
});
|
|
1064
1060
|
});
|
|
1065
1061
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
1066
1062
|
return ScaleFC;
|
|
@@ -1125,23 +1121,27 @@ var SnippetComponent = function SnippetComponent(_ref) {
|
|
|
1125
1121
|
type: toastType
|
|
1126
1122
|
});
|
|
1127
1123
|
};
|
|
1128
|
-
return /*#__PURE__*/
|
|
1129
|
-
className: _JSXStyle.dynamic([["2394272060", [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0]]]) + " " + (props && props.className != null && props.className || theme.useClasses('snippet', className) || "")
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1124
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1125
|
+
className: _JSXStyle.dynamic([["2394272060", [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0]]]) + " " + (props && props.className != null && props.className || theme.useClasses('snippet', className) || ""),
|
|
1126
|
+
children: [isMultiLine ? text.map(function (t, index) {
|
|
1127
|
+
return /*#__PURE__*/jsxRuntime.jsx("pre", {
|
|
1128
|
+
className: _JSXStyle.dynamic([["2394272060", [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0]]]),
|
|
1129
|
+
children: t
|
|
1130
|
+
}, "snippet-".concat(index, "-").concat(t));
|
|
1131
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("pre", {
|
|
1132
|
+
ref: ref,
|
|
1133
|
+
className: _JSXStyle.dynamic([["2394272060", [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0]]]),
|
|
1134
|
+
children: children || text
|
|
1135
|
+
}), showCopyIcon && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1136
|
+
onClick: clickHandler,
|
|
1137
|
+
className: _JSXStyle.dynamic([["2394272060", [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0]]]) + " " + "copy",
|
|
1138
|
+
children: /*#__PURE__*/jsxRuntime.jsx(SnippetIcon, {})
|
|
1139
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1140
|
+
id: "2394272060",
|
|
1141
|
+
dynamic: [style.color, style.bgColor, style.border, theme$1.layout.radius, SCALES.font(0.8125), SCALES.pt(0.667), SCALES.width(1, 'initial'), SCALES.height(1, 'auto'), SCALES.pt(0.667), SCALES.pr(2.667), SCALES.pb(0.667), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), style.color, symbolBefore, style.bgColor, isMultiLine ? 'flex-start' : 'center', theme$1.layout.radius, isMultiLine ? 'var(--snippet-padding-top)' : 0],
|
|
1142
|
+
children: ".snippet.__jsx-style-dynamic-selector{position:relative;max-width:100%;color:".concat(style.color, ";background-color:").concat(style.bgColor, ";border:1px solid ").concat(style.border, ";border-radius:").concat(theme$1.layout.radius, ";--snippet-font-size:").concat(SCALES.font(0.8125), ";--snippet-padding-top:").concat(SCALES.pt(0.667), ";font-size:var(--snippet-font-size);width:").concat(SCALES.width(1, 'initial'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.667), " ").concat(SCALES.pr(2.667), " ").concat(SCALES.pb(0.667), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}pre.__jsx-style-dynamic-selector{margin:0;padding:0;border:none;background-color:transparent;color:").concat(style.color, ";font-size:inherit;}pre.__jsx-style-dynamic-selector::before{content:'").concat(symbolBefore, "';-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}pre.__jsx-style-dynamic-selector *{margin:0;padding:0;font-size:inherit;color:inherit;}.copy.__jsx-style-dynamic-selector{position:absolute;right:0;top:0;bottom:0;height:calc(100% - 2px);background-color:").concat(style.bgColor, ";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:").concat(isMultiLine ? 'flex-start' : 'center', ";-webkit-box-align:").concat(isMultiLine ? 'flex-start' : 'center', ";-ms-flex-align:").concat(isMultiLine ? 'flex-start' : 'center', ";align-items:").concat(isMultiLine ? 'flex-start' : 'center', ";width:calc(3.281 * var(--snippet-font-size));color:inherit;-webkit-transition:opacity 150ms ease 0s;transition:opacity 150ms ease 0s;border-radius:").concat(theme$1.layout.radius, ";cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-top:").concat(isMultiLine ? 'var(--snippet-padding-top)' : 0, ";opacity:0.65;}.copy.__jsx-style-dynamic-selector:hover{opacity:1;}")
|
|
1143
|
+
})]
|
|
1144
|
+
}));
|
|
1145
1145
|
};
|
|
1146
1146
|
SnippetComponent.displayName = 'Snippet';
|
|
1147
1147
|
var Snippet = withScale(SnippetComponent);
|
package/dist/spacer/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);
|
|
@@ -58,14 +59,34 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
function _defineProperty(e, r, t) {
|
|
63
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
64
|
+
value: t,
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true
|
|
68
|
+
}) : e[r] = t, e;
|
|
69
|
+
}
|
|
70
|
+
function ownKeys(e, r) {
|
|
71
|
+
var t = Object.keys(e);
|
|
72
|
+
if (Object.getOwnPropertySymbols) {
|
|
73
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
74
|
+
r && (o = o.filter(function (r) {
|
|
75
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
76
|
+
})), t.push.apply(t, o);
|
|
77
|
+
}
|
|
78
|
+
return t;
|
|
79
|
+
}
|
|
80
|
+
function _objectSpread2(e) {
|
|
81
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
82
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
83
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
84
|
+
_defineProperty(e, r, t[r]);
|
|
85
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
86
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return e;
|
|
69
90
|
}
|
|
70
91
|
function _objectWithoutProperties(e, t) {
|
|
71
92
|
if (null == e) return {};
|
|
@@ -87,6 +108,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
87
108
|
}
|
|
88
109
|
return t;
|
|
89
110
|
}
|
|
111
|
+
function _toPrimitive(t, r) {
|
|
112
|
+
if ("object" != typeof t || !t) return t;
|
|
113
|
+
var e = t[Symbol.toPrimitive];
|
|
114
|
+
if (void 0 !== e) {
|
|
115
|
+
var i = e.call(t, r);
|
|
116
|
+
if ("object" != typeof i) return i;
|
|
117
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
118
|
+
}
|
|
119
|
+
return ("string" === r ? String : Number)(t);
|
|
120
|
+
}
|
|
121
|
+
function _toPropertyKey(t) {
|
|
122
|
+
var i = _toPrimitive(t, "string");
|
|
123
|
+
return "symbol" == typeof i ? i : i + "";
|
|
124
|
+
}
|
|
90
125
|
function _unsupportedIterableToArray(r, a) {
|
|
91
126
|
if (r) {
|
|
92
127
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -810,11 +845,13 @@ var withScale = function withScale(Render) {
|
|
|
810
845
|
getScaleProps: generateGetScaleProps(props),
|
|
811
846
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
812
847
|
};
|
|
813
|
-
return /*#__PURE__*/
|
|
814
|
-
value: value
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
848
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
849
|
+
value: value,
|
|
850
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
851
|
+
ref: ref,
|
|
852
|
+
children: children
|
|
853
|
+
}))
|
|
854
|
+
});
|
|
818
855
|
});
|
|
819
856
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
820
857
|
return ScaleFC;
|
|
@@ -829,12 +866,14 @@ var SpacerComponent = function SpacerComponent(_ref) {
|
|
|
829
866
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
830
867
|
var _useScale = useScale(),
|
|
831
868
|
SCALES = _useScale.SCALES;
|
|
832
|
-
return /*#__PURE__*/
|
|
833
|
-
className: _JSXStyle.dynamic([["1994396435", [inline ? 'inline-block' : 'block', SCALES.width(1), SCALES.height(1), 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 || "")
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
869
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
870
|
+
className: _JSXStyle.dynamic([["1994396435", [inline ? 'inline-block' : 'block', SCALES.width(1), SCALES.height(1), 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 || ""),
|
|
871
|
+
children: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
872
|
+
id: "1994396435",
|
|
873
|
+
dynamic: [inline ? 'inline-block' : 'block', SCALES.width(1), SCALES.height(1), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
874
|
+
children: "span.__jsx-style-dynamic-selector{display:".concat(inline ? 'inline-block' : 'block', ";width:").concat(SCALES.width(1), ";height:").concat(SCALES.height(1), ";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), ";}")
|
|
875
|
+
})
|
|
876
|
+
}));
|
|
838
877
|
};
|
|
839
878
|
SpacerComponent.displayName = 'Spacer';
|
|
840
879
|
var Spacer = withScale(SpacerComponent);
|
package/dist/spinner/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);
|
|
@@ -61,14 +62,13 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
return
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}, _extends.apply(null, arguments);
|
|
65
|
+
function _defineProperty(e, r, t) {
|
|
66
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
67
|
+
value: t,
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true
|
|
71
|
+
}) : e[r] = t, e;
|
|
72
72
|
}
|
|
73
73
|
function _iterableToArray(r) {
|
|
74
74
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
@@ -76,6 +76,27 @@ function _iterableToArray(r) {
|
|
|
76
76
|
function _nonIterableSpread() {
|
|
77
77
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
78
78
|
}
|
|
79
|
+
function ownKeys(e, r) {
|
|
80
|
+
var t = Object.keys(e);
|
|
81
|
+
if (Object.getOwnPropertySymbols) {
|
|
82
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
83
|
+
r && (o = o.filter(function (r) {
|
|
84
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
85
|
+
})), t.push.apply(t, o);
|
|
86
|
+
}
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function _objectSpread2(e) {
|
|
90
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
91
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
92
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
93
|
+
_defineProperty(e, r, t[r]);
|
|
94
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
95
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return e;
|
|
99
|
+
}
|
|
79
100
|
function _objectWithoutProperties(e, t) {
|
|
80
101
|
if (null == e) return {};
|
|
81
102
|
var o,
|
|
@@ -99,6 +120,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
99
120
|
function _toConsumableArray(r) {
|
|
100
121
|
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
101
122
|
}
|
|
123
|
+
function _toPrimitive(t, r) {
|
|
124
|
+
if ("object" != typeof t || !t) return t;
|
|
125
|
+
var e = t[Symbol.toPrimitive];
|
|
126
|
+
if (void 0 !== e) {
|
|
127
|
+
var i = e.call(t, r);
|
|
128
|
+
if ("object" != typeof i) return i;
|
|
129
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
130
|
+
}
|
|
131
|
+
return ("string" === r ? String : Number)(t);
|
|
132
|
+
}
|
|
133
|
+
function _toPropertyKey(t) {
|
|
134
|
+
var i = _toPrimitive(t, "string");
|
|
135
|
+
return "symbol" == typeof i ? i : i + "";
|
|
136
|
+
}
|
|
102
137
|
function _unsupportedIterableToArray(r, a) {
|
|
103
138
|
if (r) {
|
|
104
139
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
@@ -822,11 +857,13 @@ var withScale = function withScale(Render) {
|
|
|
822
857
|
getScaleProps: generateGetScaleProps(props),
|
|
823
858
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
824
859
|
};
|
|
825
|
-
return /*#__PURE__*/
|
|
826
|
-
value: value
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
860
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
861
|
+
value: value,
|
|
862
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
863
|
+
ref: ref,
|
|
864
|
+
children: children
|
|
865
|
+
}))
|
|
866
|
+
});
|
|
830
867
|
});
|
|
831
868
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
832
869
|
return ScaleFC;
|
|
@@ -835,13 +872,14 @@ var withScale = function withScale(Render) {
|
|
|
835
872
|
var _excluded = ["className"];
|
|
836
873
|
var getSpans = function getSpans(theme) {
|
|
837
874
|
return _toConsumableArray(new Array(12)).map(function (_, index) {
|
|
838
|
-
return /*#__PURE__*/
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
875
|
+
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
876
|
+
className: _JSXStyle.dynamic([["3296107463", [theme.palette.foreground, theme.layout.radius]]]),
|
|
877
|
+
children: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
878
|
+
id: "3296107463",
|
|
879
|
+
dynamic: [theme.palette.foreground, theme.layout.radius],
|
|
880
|
+
children: "span.__jsx-style-dynamic-selector{background-color:".concat(theme.palette.foreground, ";position:absolute;top:-3.9%;width:24%;height:8%;left:-10%;border-radius:").concat(theme.layout.radius, ";-webkit-animation:spinner-__jsx-style-dynamic-selector 1.2s linear 0s infinite normal none running;animation:spinner-__jsx-style-dynamic-selector 1.2s linear 0s infinite normal none running;}span.__jsx-style-dynamic-selector:nth-child(1){-webkit-animation-delay:-1.2s;animation-delay:-1.2s;-webkit-transform:rotate(0deg) translate(146%);-ms-transform:rotate(0deg) translate(146%);transform:rotate(0deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:-1.1s;animation-delay:-1.1s;-webkit-transform:rotate(30deg) translate(146%);-ms-transform:rotate(30deg) translate(146%);transform:rotate(30deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:-1s;animation-delay:-1s;-webkit-transform:rotate(60deg) translate(146%);-ms-transform:rotate(60deg) translate(146%);transform:rotate(60deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(4){-webkit-animation-delay:-0.9s;animation-delay:-0.9s;-webkit-transform:rotate(90deg) translate(146%);-ms-transform:rotate(90deg) translate(146%);transform:rotate(90deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(5){-webkit-animation-delay:-0.8s;animation-delay:-0.8s;-webkit-transform:rotate(120deg) translate(146%);-ms-transform:rotate(120deg) translate(146%);transform:rotate(120deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(6){-webkit-animation-delay:-0.7s;animation-delay:-0.7s;-webkit-transform:rotate(150deg) translate(146%);-ms-transform:rotate(150deg) translate(146%);transform:rotate(150deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(7){-webkit-animation-delay:-0.6s;animation-delay:-0.6s;-webkit-transform:rotate(180deg) translate(146%);-ms-transform:rotate(180deg) translate(146%);transform:rotate(180deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(8){-webkit-animation-delay:-0.5s;animation-delay:-0.5s;-webkit-transform:rotate(210deg) translate(146%);-ms-transform:rotate(210deg) translate(146%);transform:rotate(210deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(9){-webkit-animation-delay:-0.4s;animation-delay:-0.4s;-webkit-transform:rotate(240deg) translate(146%);-ms-transform:rotate(240deg) translate(146%);transform:rotate(240deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(10){-webkit-animation-delay:-0.3s;animation-delay:-0.3s;-webkit-transform:rotate(270deg) translate(146%);-ms-transform:rotate(270deg) translate(146%);transform:rotate(270deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(11){-webkit-animation-delay:-0.2s;animation-delay:-0.2s;-webkit-transform:rotate(300deg) translate(146%);-ms-transform:rotate(300deg) translate(146%);transform:rotate(300deg) translate(146%);}span.__jsx-style-dynamic-selector:nth-child(12){-webkit-animation-delay:-0.1s;animation-delay:-0.1s;-webkit-transform:rotate(330deg) translate(146%);-ms-transform:rotate(330deg) translate(146%);transform:rotate(330deg) translate(146%);}@-webkit-keyframes spinner-__jsx-style-dynamic-selector{0%{opacity:1;}100%{opacity:0.15;}}@keyframes spinner-__jsx-style-dynamic-selector{0%{opacity:1;}100%{opacity:0.15;}}")
|
|
881
|
+
})
|
|
882
|
+
}, "spinner-".concat(index));
|
|
845
883
|
});
|
|
846
884
|
};
|
|
847
885
|
var SpinnerComponent = function SpinnerComponent(_ref) {
|
|
@@ -852,14 +890,17 @@ var SpinnerComponent = function SpinnerComponent(_ref) {
|
|
|
852
890
|
var _useScale = useScale(),
|
|
853
891
|
SCALES = _useScale.SCALES;
|
|
854
892
|
var classes = theme.useClasses('spinner', className);
|
|
855
|
-
return /*#__PURE__*/
|
|
856
|
-
className: _JSXStyle.dynamic([["1153799566", [SCALES.width(1.25), SCALES.height(1.25), 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 || classes || "")
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
893
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
894
|
+
className: _JSXStyle.dynamic([["1153799566", [SCALES.width(1.25), SCALES.height(1.25), 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 || classes || ""),
|
|
895
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
896
|
+
className: _JSXStyle.dynamic([["1153799566", [SCALES.width(1.25), SCALES.height(1.25), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "container",
|
|
897
|
+
children: getSpans(theme$1)
|
|
898
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
899
|
+
id: "1153799566",
|
|
900
|
+
dynamic: [SCALES.width(1.25), SCALES.height(1.25), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
901
|
+
children: ".spinner.__jsx-style-dynamic-selector{display:block;box-sizing:border-box;width:".concat(SCALES.width(1.25), ";height:").concat(SCALES.height(1.25), ";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), ";}.container.__jsx-style-dynamic-selector{width:100%;height:100%;position:relative;left:50%;top:50%;}")
|
|
902
|
+
})]
|
|
903
|
+
}));
|
|
863
904
|
};
|
|
864
905
|
SpinnerComponent.displayName = 'Spinner';
|
|
865
906
|
var Spinner = withScale(SpinnerComponent);
|