@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/list/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 getDefaultExportFromCjs (x) {
|
|
9
10
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -601,14 +602,34 @@ function _createForOfIteratorHelper(r, e) {
|
|
|
601
602
|
}
|
|
602
603
|
};
|
|
603
604
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
605
|
+
function _defineProperty(e, r, t) {
|
|
606
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
607
|
+
value: t,
|
|
608
|
+
enumerable: true,
|
|
609
|
+
configurable: true,
|
|
610
|
+
writable: true
|
|
611
|
+
}) : e[r] = t, e;
|
|
612
|
+
}
|
|
613
|
+
function ownKeys(e, r) {
|
|
614
|
+
var t = Object.keys(e);
|
|
615
|
+
if (Object.getOwnPropertySymbols) {
|
|
616
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
617
|
+
r && (o = o.filter(function (r) {
|
|
618
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
619
|
+
})), t.push.apply(t, o);
|
|
620
|
+
}
|
|
621
|
+
return t;
|
|
622
|
+
}
|
|
623
|
+
function _objectSpread2(e) {
|
|
624
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
625
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
626
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
627
|
+
_defineProperty(e, r, t[r]);
|
|
628
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
629
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
return e;
|
|
612
633
|
}
|
|
613
634
|
function _objectWithoutProperties(e, t) {
|
|
614
635
|
if (null == e) return {};
|
|
@@ -630,6 +651,20 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
630
651
|
}
|
|
631
652
|
return t;
|
|
632
653
|
}
|
|
654
|
+
function _toPrimitive(t, r) {
|
|
655
|
+
if ("object" != typeof t || !t) return t;
|
|
656
|
+
var e = t[Symbol.toPrimitive];
|
|
657
|
+
if (void 0 !== e) {
|
|
658
|
+
var i = e.call(t, r);
|
|
659
|
+
if ("object" != typeof i) return i;
|
|
660
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
661
|
+
}
|
|
662
|
+
return ("string" === r ? String : Number)(t);
|
|
663
|
+
}
|
|
664
|
+
function _toPropertyKey(t) {
|
|
665
|
+
var i = _toPrimitive(t, "string");
|
|
666
|
+
return "symbol" == typeof i ? i : i + "";
|
|
667
|
+
}
|
|
633
668
|
function _unsupportedIterableToArray(r, a) {
|
|
634
669
|
if (r) {
|
|
635
670
|
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;
|
|
@@ -833,16 +870,20 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
833
870
|
var _useScale = useScale(),
|
|
834
871
|
SCALES = _useScale.SCALES;
|
|
835
872
|
var classes = theme.useClasses('description', className);
|
|
836
|
-
return /*#__PURE__*/
|
|
837
|
-
className: _JSXStyle.dynamic([["2323318745", [SCALES.font(1), 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), theme$1.palette.accents_5, theme$1.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
873
|
+
return /*#__PURE__*/jsxRuntime.jsxs("dl", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
874
|
+
className: _JSXStyle.dynamic([["2323318745", [SCALES.font(1), 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), theme$1.palette.accents_5, theme$1.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
875
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("dt", {
|
|
876
|
+
className: _JSXStyle.dynamic([["2323318745", [SCALES.font(1), 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), theme$1.palette.accents_5, theme$1.palette.foreground]]]),
|
|
877
|
+
children: title
|
|
878
|
+
}), /*#__PURE__*/jsxRuntime.jsx("dd", {
|
|
879
|
+
className: _JSXStyle.dynamic([["2323318745", [SCALES.font(1), 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), theme$1.palette.accents_5, theme$1.palette.foreground]]]),
|
|
880
|
+
children: content
|
|
881
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
882
|
+
id: "2323318745",
|
|
883
|
+
dynamic: [SCALES.font(1), 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), theme$1.palette.accents_5, theme$1.palette.foreground],
|
|
884
|
+
children: ".description.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1), ";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), ";}dt.__jsx-style-dynamic-selector{font-size:0.75em;line-height:1em;margin-bottom:0.5em;text-transform:uppercase;white-space:nowrap;color:").concat(theme$1.palette.accents_5, ";font-weight:500;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}dd.__jsx-style-dynamic-selector{font-size:0.875em;margin:0;line-height:1.1em;color:").concat(theme$1.palette.foreground, ";font-weight:500;}dd.__jsx-style-dynamic-selector p,dt.__jsx-style-dynamic-selector p{margin:0;}")
|
|
885
|
+
})]
|
|
886
|
+
}));
|
|
846
887
|
};
|
|
847
888
|
DescriptionComponent.displayName = 'Description';
|
|
848
889
|
var Description = withScale(DescriptionComponent);
|
|
@@ -855,19 +896,22 @@ var ListComponent = function ListComponent(_ref) {
|
|
|
855
896
|
children = _ref.children;
|
|
856
897
|
var _useScale = useScale(),
|
|
857
898
|
SCALES = _useScale.SCALES;
|
|
858
|
-
return /*#__PURE__*/
|
|
859
|
-
className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]])
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
899
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
900
|
+
className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]]),
|
|
901
|
+
children: [showHeading && /*#__PURE__*/jsxRuntime.jsx(Description, {
|
|
902
|
+
mb: 1,
|
|
903
|
+
mt: 1,
|
|
904
|
+
title: heading,
|
|
905
|
+
content: secondary
|
|
906
|
+
}), /*#__PURE__*/jsxRuntime.jsx("ul", {
|
|
907
|
+
className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]]) + " " + "helpdice-ui-list",
|
|
908
|
+
children: children
|
|
909
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
910
|
+
id: "2885341068",
|
|
911
|
+
dynamic: [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)],
|
|
912
|
+
children: ".helpdice-ui-list.__jsx-style-dynamic-selector{all:unset;padding:".concat(SCALES.pt(0.9), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0.9), " ").concat(SCALES.pl(0), ";}")
|
|
913
|
+
})]
|
|
914
|
+
});
|
|
871
915
|
};
|
|
872
916
|
ListComponent.displayName = 'List';
|
|
873
917
|
var List = withScale(ListComponent);
|
|
@@ -914,37 +958,48 @@ var ListItemComponent = function ListItemComponent(_ref) {
|
|
|
914
958
|
// }
|
|
915
959
|
// onItemClick(event)
|
|
916
960
|
};
|
|
917
|
-
return /*#__PURE__*/
|
|
961
|
+
return /*#__PURE__*/jsxRuntime.jsxs("li", {
|
|
918
962
|
style: {
|
|
919
963
|
all: 'unset',
|
|
920
964
|
listStyle: 'none'
|
|
921
|
-
}
|
|
922
|
-
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
923
|
-
style: {
|
|
924
|
-
backgroundColor: selected ? theme$1.palette.accents_2 : ''
|
|
925
965
|
},
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
966
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
967
|
+
style: {
|
|
968
|
+
backgroundColor: selected ? theme$1.palette.accents_2 : ''
|
|
969
|
+
},
|
|
970
|
+
onClick: clickHandler
|
|
971
|
+
}, props), {}, {
|
|
972
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
973
|
+
children: [children ? children : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
974
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
975
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + "item-left",
|
|
976
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
977
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]),
|
|
978
|
+
children: leading
|
|
979
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
980
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + "item-description",
|
|
981
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("p", {
|
|
982
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + "item-description-primary",
|
|
983
|
+
children: primary
|
|
984
|
+
}), secondary && /*#__PURE__*/jsxRuntime.jsx("small", {
|
|
985
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + "item-description-secondary",
|
|
986
|
+
children: secondary
|
|
987
|
+
})]
|
|
988
|
+
})]
|
|
989
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
990
|
+
className: _JSXStyle.dynamic([["2945599429", [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground]]]) + " " + "item-right",
|
|
991
|
+
children: trailing
|
|
992
|
+
})]
|
|
993
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
994
|
+
id: "2945599429",
|
|
995
|
+
dynamic: [direction, justify, alignItems, theme$1.palette.accents_5, SCALES.font(0.775), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme$1.palette.foreground, theme$1.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme$1.palette.foreground],
|
|
996
|
+
children: ".item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:".concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";box-sizing:border-box;gap:5px;-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";color:").concat(theme$1.palette.accents_5, ";-webkit-transition:color,background-color 150ms linear;transition:color,background-color 150ms linear;line-height:1.25em;font-size:").concat(SCALES.font(0.775), ";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), ";padding:").concat(SCALES.pt(0.5), " ").concat(SCALES.pr(0.75), " ").concat(SCALES.pb(0.5), " ").concat(SCALES.pl(0.75), ";cursor:").concat(hasHandler ? 'pointer' : 'default', ";}.item-description.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.item-description-primary.__jsx-style-dynamic-selector{font-weight:500;margin:0;}.item-description-secondary.__jsx-style-dynamic-selector{margin:0;}.item-left.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.7rem;}.item.__jsx-style-dynamic-selector:hover{color:").concat(theme$1.palette.foreground, ";}.item.line.__jsx-style-dynamic-selector{line-height:0;padding:0;background-color:").concat(theme$1.palette.border, ";height:").concat(SCALES.height(0.0625), ";margin:").concat(SCALES.mt(0.35), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.35), " ").concat(SCALES.ml(0), ";width:").concat(SCALES.width(1, '100%'), ";}.item.title.__jsx-style-dynamic-selector{font-weight:500;font-size:").concat(SCALES.font(0.925), ";color:").concat(theme$1.palette.foreground, ";}")
|
|
997
|
+
})]
|
|
998
|
+
})), line && /*#__PURE__*/jsxRuntime.jsx(ListItem, {
|
|
999
|
+
line: true,
|
|
1000
|
+
showTitle: false
|
|
1001
|
+
})]
|
|
1002
|
+
});
|
|
948
1003
|
};
|
|
949
1004
|
ListItemComponent.displayName = 'ListItem';
|
|
950
1005
|
var ListItem = withScale(ListItemComponent);
|
package/dist/loadable/index.js
CHANGED
|
@@ -2,7 +2,52 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var require$$1 = require('react');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _defineProperty(e, r, t) {
|
|
9
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
10
|
+
value: t,
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true
|
|
14
|
+
}) : e[r] = t, e;
|
|
15
|
+
}
|
|
16
|
+
function ownKeys(e, r) {
|
|
17
|
+
var t = Object.keys(e);
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
20
|
+
r && (o = o.filter(function (r) {
|
|
21
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
22
|
+
})), t.push.apply(t, o);
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
function _objectSpread2(e) {
|
|
27
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
28
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
29
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
30
|
+
_defineProperty(e, r, t[r]);
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
32
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
}
|
|
37
|
+
function _toPrimitive(t, r) {
|
|
38
|
+
if ("object" != typeof t || !t) return t;
|
|
39
|
+
var e = t[Symbol.toPrimitive];
|
|
40
|
+
if (void 0 !== e) {
|
|
41
|
+
var i = e.call(t, r);
|
|
42
|
+
if ("object" != typeof i) return i;
|
|
43
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
44
|
+
}
|
|
45
|
+
return ("string" === r ? String : Number)(t);
|
|
46
|
+
}
|
|
47
|
+
function _toPropertyKey(t) {
|
|
48
|
+
var i = _toPrimitive(t, "string");
|
|
49
|
+
return "symbol" == typeof i ? i : i + "";
|
|
50
|
+
}
|
|
6
51
|
|
|
7
52
|
function getDefaultExportFromCjs (x) {
|
|
8
53
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -15,7 +60,7 @@ var hasRequiredIndex;
|
|
|
15
60
|
function requireIndex () {
|
|
16
61
|
if (hasRequiredIndex) return index;
|
|
17
62
|
hasRequiredIndex = 1;
|
|
18
|
-
var React =
|
|
63
|
+
var React = require$$1;
|
|
19
64
|
|
|
20
65
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
66
|
|
|
@@ -557,39 +602,43 @@ var LinearProgress = function LinearProgress(_ref) {
|
|
|
557
602
|
speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
|
|
558
603
|
if (!isActive) return null;
|
|
559
604
|
var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
|
|
560
|
-
return /*#__PURE__*/
|
|
561
|
-
className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper"
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
605
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
606
|
+
className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper",
|
|
607
|
+
children: [isDeterminate ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
608
|
+
style: {
|
|
609
|
+
width: "".concat(progress, "%"),
|
|
610
|
+
backgroundColor: color
|
|
611
|
+
},
|
|
612
|
+
className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
|
|
613
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
614
|
+
className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
|
|
615
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
616
|
+
id: "2900495535",
|
|
617
|
+
dynamic: [color, speed],
|
|
618
|
+
children: ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
|
|
619
|
+
})]
|
|
620
|
+
});
|
|
574
621
|
};
|
|
575
622
|
|
|
576
623
|
var Loader = function Loader(_ref) {
|
|
577
624
|
var color = _ref.color;
|
|
578
|
-
return /*#__PURE__*/
|
|
579
|
-
className: "jsx-965707762" + " " + "loader-wrapper"
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
625
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
626
|
+
className: "jsx-965707762" + " " + "loader-wrapper",
|
|
627
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(LinearProgress, {
|
|
628
|
+
color: color
|
|
629
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
630
|
+
id: "965707762",
|
|
631
|
+
children: ".loader-wrapper.jsx-965707762{position:fixed;top:0;left:0;z-index:2001;width:100%;}.loader-wrapper.jsx-965707762 * + *{margin-top:16px;}"
|
|
632
|
+
})]
|
|
633
|
+
});
|
|
585
634
|
};
|
|
586
635
|
|
|
587
|
-
// ==============================|| LOADABLE - LAZY LOADING ||============================== //
|
|
588
636
|
var Loadable = function Loadable(Component) {
|
|
589
637
|
return function (props) {
|
|
590
|
-
return /*#__PURE__*/
|
|
591
|
-
fallback: /*#__PURE__*/
|
|
592
|
-
|
|
638
|
+
return /*#__PURE__*/jsxRuntime.jsx(require$$1.Suspense, {
|
|
639
|
+
fallback: /*#__PURE__*/jsxRuntime.jsx(Loader, {}),
|
|
640
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Component, _objectSpread2({}, props))
|
|
641
|
+
});
|
|
593
642
|
};
|
|
594
643
|
};
|
|
595
644
|
|
package/dist/loading/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;
|
|
@@ -848,22 +885,26 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
848
885
|
var bgColor = React.useMemo(function () {
|
|
849
886
|
return getIconBgColor(type, theme$1.palette, color);
|
|
850
887
|
}, [type, theme$1.palette, color]);
|
|
851
|
-
return /*#__PURE__*/
|
|
852
|
-
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 || "")
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
888
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
889
|
+
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 || ""),
|
|
890
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
891
|
+
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",
|
|
892
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
893
|
+
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]]]),
|
|
894
|
+
children: children
|
|
895
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
896
|
+
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]]])
|
|
897
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
898
|
+
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]]])
|
|
899
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
900
|
+
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]]])
|
|
901
|
+
})]
|
|
902
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
903
|
+
id: "2201634259",
|
|
904
|
+
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],
|
|
905
|
+
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;}}")
|
|
906
|
+
})]
|
|
907
|
+
}));
|
|
867
908
|
};
|
|
868
909
|
LoadingComponent.displayName = 'Loading';
|
|
869
910
|
var Loading = withScale(LoadingComponent);
|