@react-magma/charts 15.0.0-v6-next.1 → 15.0.1-v6-next.0
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/charts.umd.js +453 -489
- package/dist/charts.umd.js.map +1 -1
- package/package.json +5 -5
package/dist/charts.umd.js
CHANGED
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
var __assign = function() {
|
|
58
|
-
__assign = Object.assign || function __assign(t) {
|
|
57
|
+
var __assign$1 = function() {
|
|
58
|
+
__assign$1 = Object.assign || function __assign(t) {
|
|
59
59
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
60
60
|
s = arguments[i];
|
|
61
61
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
62
62
|
}
|
|
63
63
|
return t;
|
|
64
64
|
};
|
|
65
|
-
return __assign.apply(this, arguments);
|
|
65
|
+
return __assign$1.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
function __rest(s, e) {
|
|
68
|
+
function __rest$1(s, e) {
|
|
69
69
|
var t = {};
|
|
70
70
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
71
71
|
t[p] = s[p];
|
|
@@ -719,16 +719,6 @@
|
|
|
719
719
|
};
|
|
720
720
|
};
|
|
721
721
|
|
|
722
|
-
function _objectWithoutPropertiesLoose$1(r, e) {
|
|
723
|
-
if (null == r) return {};
|
|
724
|
-
var t = {};
|
|
725
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
726
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
727
|
-
t[n] = r[n];
|
|
728
|
-
}
|
|
729
|
-
return t;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
722
|
const byteToHex = [];
|
|
733
723
|
for (let i = 0; i < 256; ++i) {
|
|
734
724
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
@@ -785,474 +775,448 @@
|
|
|
785
775
|
return unsafeStringify(rnds);
|
|
786
776
|
}
|
|
787
777
|
|
|
788
|
-
var
|
|
789
|
-
|
|
778
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
779
|
+
__assign = Object.assign || function(t) {
|
|
780
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
781
|
+
s = arguments[i];
|
|
782
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
783
|
+
t[p] = s[p];
|
|
784
|
+
}
|
|
785
|
+
return t;
|
|
786
|
+
};
|
|
787
|
+
return __assign.apply(this, arguments);
|
|
788
|
+
};
|
|
789
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
790
|
+
var t = {};
|
|
791
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
792
|
+
t[p] = s[p];
|
|
793
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
794
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
795
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
796
|
+
t[p[i]] = s[p[i]];
|
|
797
|
+
}
|
|
798
|
+
return t;
|
|
799
|
+
};
|
|
790
800
|
function generateId$1(id) {
|
|
791
|
-
|
|
801
|
+
return id ? id : v4();
|
|
792
802
|
}
|
|
793
803
|
function useGenerateId$1(newId) {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}, [newId]);
|
|
800
|
-
return id;
|
|
804
|
+
var _a = React__namespace.useState(generateId$1(newId)), id = _a[0], updateId = _a[1];
|
|
805
|
+
React__namespace.useEffect(function () {
|
|
806
|
+
newId && updateId(generateId$1(newId));
|
|
807
|
+
}, [newId]);
|
|
808
|
+
return id;
|
|
801
809
|
}
|
|
802
810
|
function renderPaths(paths) {
|
|
803
|
-
|
|
804
|
-
paths
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
other = _objectWithoutPropertiesLoose$1(_ref, _excluded$2);
|
|
811
|
-
return React.createElement("path", Object.assign({
|
|
812
|
-
key: index,
|
|
813
|
-
d: d
|
|
814
|
-
}, other));
|
|
815
|
-
});
|
|
811
|
+
if (paths === void 0) { paths = []; }
|
|
812
|
+
return paths
|
|
813
|
+
.filter(function (a) { return a; })
|
|
814
|
+
.map(function (_a, index) {
|
|
815
|
+
var d = _a.d, other = __rest(_a, ["d"]);
|
|
816
|
+
return React__namespace.createElement("path", __assign({ key: index, d: d }, other));
|
|
817
|
+
});
|
|
816
818
|
}
|
|
817
819
|
function renderCircles(circles) {
|
|
818
|
-
|
|
819
|
-
circles
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
var cx = _ref2.cx,
|
|
825
|
-
cy = _ref2.cy,
|
|
826
|
-
r = _ref2.r;
|
|
827
|
-
return React.createElement("circle", {
|
|
828
|
-
key: index,
|
|
829
|
-
cx: cx,
|
|
830
|
-
cy: cy,
|
|
831
|
-
r: r
|
|
820
|
+
if (circles === void 0) { circles = []; }
|
|
821
|
+
return circles
|
|
822
|
+
.filter(function (a) { return a; })
|
|
823
|
+
.map(function (_a, index) {
|
|
824
|
+
var cx = _a.cx, cy = _a.cy, r = _a.r;
|
|
825
|
+
return (React__namespace.createElement("circle", { key: index, cx: cx, cy: cy, r: r }));
|
|
832
826
|
});
|
|
833
|
-
});
|
|
834
827
|
}
|
|
835
|
-
var SvgIcon = function
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
paths = _ref3$paths === void 0 ? [] : _ref3$paths,
|
|
845
|
-
_ref3$circles = _ref3.circles,
|
|
846
|
-
circles = _ref3$circles === void 0 ? [] : _ref3$circles,
|
|
847
|
-
ariaHidden = _ref3.ariaHidden,
|
|
848
|
-
role = _ref3.role,
|
|
849
|
-
other = _objectWithoutPropertiesLoose$1(_ref3, _excluded2);
|
|
850
|
-
var id = useGenerateId$1(defaultId);
|
|
851
|
-
var computedAriaHidden = ariaHidden !== undefined ? ariaHidden : title ? false : true;
|
|
852
|
-
var computedRole = role !== undefined ? role : title ? "img" : "none";
|
|
853
|
-
return React.createElement("svg", Object.assign({}, other, {
|
|
854
|
-
className: "icon",
|
|
855
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
856
|
-
fill: color,
|
|
857
|
-
height: size,
|
|
858
|
-
width: size,
|
|
859
|
-
"aria-labelledby": title ? id : undefined,
|
|
860
|
-
"aria-hidden": computedAriaHidden,
|
|
861
|
-
role: computedRole,
|
|
862
|
-
"data-testid": testId
|
|
863
|
-
}), title && React.createElement("title", {
|
|
864
|
-
id: id
|
|
865
|
-
}, title), paths.length !== 0 && renderPaths(paths), circles.length !== 0 && renderCircles(circles));
|
|
828
|
+
var SvgIcon = function (_a) {
|
|
829
|
+
var _b = _a.color, color = _b === void 0 ? "currentColor" : _b, _c = _a.size, size = _c === void 0 ? 24 : _c, defaultId = _a.id, title = _a.title, testId = _a.testId, _d = _a.paths, paths = _d === void 0 ? [] : _d, _e = _a.circles, circles = _e === void 0 ? [] : _e, ariaHidden = _a.ariaHidden, role = _a.role, other = __rest(_a, ["color", "size", "id", "title", "testId", "paths", "circles", "ariaHidden", "role"]);
|
|
830
|
+
var id = useGenerateId$1(defaultId);
|
|
831
|
+
var computedAriaHidden = ariaHidden !== undefined ? ariaHidden : title ? false : true;
|
|
832
|
+
var computedRole = role !== undefined ? role : title ? "img" : "none";
|
|
833
|
+
return (React__namespace.createElement("svg", __assign({}, other, { className: "icon", xmlns: "http://www.w3.org/2000/svg", fill: color, height: size, width: size, "aria-labelledby": title ? id : undefined, "aria-hidden": computedAriaHidden, role: computedRole, "data-testid": testId }),
|
|
834
|
+
title && React__namespace.createElement("title", { id: id }, title),
|
|
835
|
+
paths.length !== 0 && renderPaths(paths),
|
|
836
|
+
circles.length !== 0 && renderCircles(circles)));
|
|
866
837
|
};
|
|
867
838
|
function renderIcon(props, iconType) {
|
|
868
|
-
|
|
839
|
+
return iconType ? React__namespace.createElement(SvgIcon, __assign({}, props, iconType)) : null;
|
|
869
840
|
}
|
|
870
841
|
|
|
871
|
-
/******************************************************
|
|
872
|
-
* This file was created by scripts/generate.js as part
|
|
873
|
-
* of the build process. Do not edit this file directly.
|
|
842
|
+
/******************************************************
|
|
843
|
+
* This file was created by scripts/generate.js as part
|
|
844
|
+
* of the build process. Do not edit this file directly.
|
|
874
845
|
******************************************************/
|
|
875
846
|
var iconType$n = {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
var ExpandMoreIcon = function ExpandMoreIcon(props) {
|
|
884
|
-
return renderIcon(props, iconType$n);
|
|
847
|
+
viewBox: "0 -960 960 960",
|
|
848
|
+
paths: [
|
|
849
|
+
{
|
|
850
|
+
d: "M480-362q-8 0-15-2.5t-13-8.5L268-557q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-373q-6 6-13 8.5t-15 2.5z",
|
|
851
|
+
},
|
|
852
|
+
],
|
|
853
|
+
circles: [],
|
|
885
854
|
};
|
|
855
|
+
var ExpandMoreIcon = function (props) { return renderIcon(props, iconType$n); };
|
|
886
856
|
|
|
887
|
-
/******************************************************
|
|
888
|
-
* This file was created by scripts/generate.js as part
|
|
889
|
-
* of the build process. Do not edit this file directly.
|
|
857
|
+
/******************************************************
|
|
858
|
+
* This file was created by scripts/generate.js as part
|
|
859
|
+
* of the build process. Do not edit this file directly.
|
|
890
860
|
******************************************************/
|
|
891
861
|
var iconType$m = {
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
var ExpandLessIcon = function ExpandLessIcon(props) {
|
|
900
|
-
return renderIcon(props, iconType$m);
|
|
862
|
+
viewBox: "0 -960 960 960",
|
|
863
|
+
paths: [
|
|
864
|
+
{
|
|
865
|
+
d: "M480-529L324-373q-11 11-28 11t-28-11q-11-11-11-28t11-28l184-184q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l184 184q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-529z",
|
|
866
|
+
},
|
|
867
|
+
],
|
|
868
|
+
circles: [],
|
|
901
869
|
};
|
|
870
|
+
var ExpandLessIcon = function (props) { return renderIcon(props, iconType$m); };
|
|
902
871
|
|
|
903
|
-
/******************************************************
|
|
904
|
-
* This file was created by scripts/generate.js as part
|
|
905
|
-
* of the build process. Do not edit this file directly.
|
|
872
|
+
/******************************************************
|
|
873
|
+
* This file was created by scripts/generate.js as part
|
|
874
|
+
* of the build process. Do not edit this file directly.
|
|
906
875
|
******************************************************/
|
|
907
876
|
var iconType$l = {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
877
|
+
viewBox: "0 0 24 24",
|
|
878
|
+
paths: [
|
|
879
|
+
{
|
|
880
|
+
d: "M6.9191 2.2722a.9292.9292 0 011.3142 0l4.6469 4.647a.9292.9292 0 010 1.314.9249.9249 0 01-.6571.2724.9268.9268 0 01-.657-.2723L8.5055 5.1728v15.6749a.9291.9291 0 01-.9294.9294.9291.9291 0 01-.9294-.9294V5.1728L3.5863 8.2333a.9292.9292 0 01-1.3141 0 .9292.9292 0 010-1.3142zM16.4238 2a.9291.9291 0 01.9294.9294v15.6749l3.0605-3.0605a.9268.9268 0 01.657-.2723c.238 0 .4759.0906.6571.2723a.9292.9292 0 010 1.3142l-4.647 4.6469a.9292.9292 0 01-1.314 0l-4.647-4.647a.9292.9292 0 010-1.314.9292.9292 0 011.3142 0l3.0604 3.0604V2.9293A.9291.9291 0 0116.4238 2z",
|
|
881
|
+
fillRule: "evenodd",
|
|
882
|
+
},
|
|
883
|
+
],
|
|
884
|
+
circles: [],
|
|
914
885
|
};
|
|
915
|
-
var SortDoubleArrowIcon = function
|
|
916
|
-
|
|
886
|
+
var SortDoubleArrowIcon = function (props) {
|
|
887
|
+
return renderIcon(props, iconType$l);
|
|
917
888
|
};
|
|
918
889
|
|
|
919
|
-
/******************************************************
|
|
920
|
-
* This file was created by scripts/generate.js as part
|
|
921
|
-
* of the build process. Do not edit this file directly.
|
|
890
|
+
/******************************************************
|
|
891
|
+
* This file was created by scripts/generate.js as part
|
|
892
|
+
* of the build process. Do not edit this file directly.
|
|
922
893
|
******************************************************/
|
|
923
894
|
var iconType$k = {
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
var SouthIcon = function SouthIcon(props) {
|
|
932
|
-
return renderIcon(props, iconType$k);
|
|
895
|
+
viewBox: "0 -960 960 960",
|
|
896
|
+
paths: [
|
|
897
|
+
{
|
|
898
|
+
d: "M480-97q-8 0-15-2.5t-13-8.5L228-332q-11-11-11-28t11-28q12-12 28.5-11.5T284-388l156 155v-607q0-17 11.5-28.5T480-880q17 0 28.5 11.5T520-840v607l155-155q12-12 28.5-12t28.5 12q11 12 11 28.5T732-332L508-108q-6 6-13 8.5T480-97z",
|
|
899
|
+
},
|
|
900
|
+
],
|
|
901
|
+
circles: [],
|
|
933
902
|
};
|
|
903
|
+
var SouthIcon = function (props) { return renderIcon(props, iconType$k); };
|
|
934
904
|
|
|
935
|
-
/******************************************************
|
|
936
|
-
* This file was created by scripts/generate.js as part
|
|
937
|
-
* of the build process. Do not edit this file directly.
|
|
905
|
+
/******************************************************
|
|
906
|
+
* This file was created by scripts/generate.js as part
|
|
907
|
+
* of the build process. Do not edit this file directly.
|
|
938
908
|
******************************************************/
|
|
939
909
|
var iconType$j = {
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
var NorthIcon = function NorthIcon(props) {
|
|
948
|
-
return renderIcon(props, iconType$j);
|
|
910
|
+
viewBox: "0 -960 960 960",
|
|
911
|
+
paths: [
|
|
912
|
+
{
|
|
913
|
+
d: "M480-80q-17 0-28.5-11.5T440-120v-607L284-572q-11 11-27.5 11.5T228-572q-11-11-11-28t11-28l224-224q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l224 224q11 11 11 27.5T732-572q-12 12-28.5 12T675-572L520-727v607q0 17-11.5 28.5T480-80z",
|
|
914
|
+
},
|
|
915
|
+
],
|
|
916
|
+
circles: [],
|
|
949
917
|
};
|
|
918
|
+
var NorthIcon = function (props) { return renderIcon(props, iconType$j); };
|
|
950
919
|
|
|
951
|
-
/******************************************************
|
|
952
|
-
* This file was created by scripts/generate.js as part
|
|
953
|
-
* of the build process. Do not edit this file directly.
|
|
920
|
+
/******************************************************
|
|
921
|
+
* This file was created by scripts/generate.js as part
|
|
922
|
+
* of the build process. Do not edit this file directly.
|
|
954
923
|
******************************************************/
|
|
955
924
|
var iconType$i = {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
925
|
+
viewBox: "0 -960 960 960",
|
|
926
|
+
paths: [
|
|
927
|
+
{
|
|
928
|
+
d: "M459-381L314-526q-3-3-4.5-6.5T308-540q0-8 5.5-14t14.5-6h304q9 0 14.5 6t5.5 14q0 2-6 14L501-381q-5 5-10 7t-11 2q-6 0-11-2t-10-7z",
|
|
929
|
+
},
|
|
930
|
+
],
|
|
931
|
+
circles: [],
|
|
962
932
|
};
|
|
963
|
-
var ArrowDropDownIcon = function
|
|
964
|
-
|
|
933
|
+
var ArrowDropDownIcon = function (props) {
|
|
934
|
+
return renderIcon(props, iconType$i);
|
|
965
935
|
};
|
|
966
936
|
|
|
967
|
-
/******************************************************
|
|
968
|
-
* This file was created by scripts/generate.js as part
|
|
969
|
-
* of the build process. Do not edit this file directly.
|
|
937
|
+
/******************************************************
|
|
938
|
+
* This file was created by scripts/generate.js as part
|
|
939
|
+
* of the build process. Do not edit this file directly.
|
|
970
940
|
******************************************************/
|
|
971
941
|
var iconType$h = {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
};
|
|
980
|
-
var ArrowLeftIcon = function ArrowLeftIcon(props) {
|
|
981
|
-
return renderIcon(props, iconType$h);
|
|
942
|
+
viewBox: "0 -960 960 960",
|
|
943
|
+
paths: [
|
|
944
|
+
{
|
|
945
|
+
d: "M526-314L381-459q-5-5-7-10t-2-11q0-6 2-11t7-10l145-145q3-3 6.5-4.5t7.5-1.5q8 0 14 5.5t6 14.5v304q0 9-6 14.5t-14 5.5q-2 0-14-6z",
|
|
946
|
+
},
|
|
947
|
+
],
|
|
948
|
+
circles: [],
|
|
982
949
|
};
|
|
950
|
+
var ArrowLeftIcon = function (props) { return renderIcon(props, iconType$h); };
|
|
983
951
|
|
|
984
|
-
/******************************************************
|
|
985
|
-
* This file was created by scripts/generate.js as part
|
|
986
|
-
* of the build process. Do not edit this file directly.
|
|
952
|
+
/******************************************************
|
|
953
|
+
* This file was created by scripts/generate.js as part
|
|
954
|
+
* of the build process. Do not edit this file directly.
|
|
987
955
|
******************************************************/
|
|
988
956
|
var iconType$g = {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
};
|
|
997
|
-
var ArrowRightIcon = function ArrowRightIcon(props) {
|
|
998
|
-
return renderIcon(props, iconType$g);
|
|
957
|
+
viewBox: "0 -960 960 960",
|
|
958
|
+
paths: [
|
|
959
|
+
{
|
|
960
|
+
d: "M420-308q-8 0-14-5.5t-6-14.5v-304q0-9 6-14.5t14-5.5q2 0 14 6l145 145q5 5 7 10t2 11q0 6-2 11t-7 10L434-314q-3 3-6.5 4.5T420-308z",
|
|
961
|
+
},
|
|
962
|
+
],
|
|
963
|
+
circles: [],
|
|
999
964
|
};
|
|
965
|
+
var ArrowRightIcon = function (props) { return renderIcon(props, iconType$g); };
|
|
1000
966
|
|
|
1001
|
-
/******************************************************
|
|
1002
|
-
* This file was created by scripts/generate.js as part
|
|
1003
|
-
* of the build process. Do not edit this file directly.
|
|
967
|
+
/******************************************************
|
|
968
|
+
* This file was created by scripts/generate.js as part
|
|
969
|
+
* of the build process. Do not edit this file directly.
|
|
1004
970
|
******************************************************/
|
|
1005
971
|
var iconType$f = {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
972
|
+
viewBox: "0 -960 960 960",
|
|
973
|
+
paths: [
|
|
974
|
+
{
|
|
975
|
+
d: "M328-400q-9 0-14.5-6t-5.5-14q0-2 6-14l145-145q5-5 10-7t11-2q6 0 11 2t10 7l145 145q3 3 4.5 6.5t1.5 7.5q0 8-5.5 14t-14.5 6H328z",
|
|
976
|
+
},
|
|
977
|
+
],
|
|
978
|
+
circles: [],
|
|
1013
979
|
};
|
|
1014
|
-
var ArrowDropUpIcon = function
|
|
1015
|
-
|
|
980
|
+
var ArrowDropUpIcon = function (props) {
|
|
981
|
+
return renderIcon(props, iconType$f);
|
|
1016
982
|
};
|
|
1017
983
|
|
|
1018
|
-
/******************************************************
|
|
1019
|
-
* This file was created by scripts/generate.js as part
|
|
1020
|
-
* of the build process. Do not edit this file directly.
|
|
984
|
+
/******************************************************
|
|
985
|
+
* This file was created by scripts/generate.js as part
|
|
986
|
+
* of the build process. Do not edit this file directly.
|
|
1021
987
|
******************************************************/
|
|
1022
988
|
var iconType$e = {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
var CloseIcon = function CloseIcon(props) {
|
|
1031
|
-
return renderIcon(props, iconType$e);
|
|
989
|
+
viewBox: "0 -960 960 960",
|
|
990
|
+
paths: [
|
|
991
|
+
{
|
|
992
|
+
d: "M480-424L284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424z",
|
|
993
|
+
},
|
|
994
|
+
],
|
|
995
|
+
circles: [],
|
|
1032
996
|
};
|
|
997
|
+
var CloseIcon = function (props) { return renderIcon(props, iconType$e); };
|
|
1033
998
|
|
|
1034
|
-
/******************************************************
|
|
1035
|
-
* This file was created by scripts/generate.js as part
|
|
1036
|
-
* of the build process. Do not edit this file directly.
|
|
999
|
+
/******************************************************
|
|
1000
|
+
* This file was created by scripts/generate.js as part
|
|
1001
|
+
* of the build process. Do not edit this file directly.
|
|
1037
1002
|
******************************************************/
|
|
1038
1003
|
var iconType$d = {
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
var ErrorIcon = function ErrorIcon(props) {
|
|
1047
|
-
return renderIcon(props, iconType$d);
|
|
1004
|
+
viewBox: "0 -960 960 960",
|
|
1005
|
+
paths: [
|
|
1006
|
+
{
|
|
1007
|
+
d: "M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80z",
|
|
1008
|
+
},
|
|
1009
|
+
],
|
|
1010
|
+
circles: [],
|
|
1048
1011
|
};
|
|
1012
|
+
var ErrorIcon = function (props) { return renderIcon(props, iconType$d); };
|
|
1049
1013
|
|
|
1050
|
-
/******************************************************
|
|
1051
|
-
* This file was created by scripts/generate.js as part
|
|
1052
|
-
* of the build process. Do not edit this file directly.
|
|
1014
|
+
/******************************************************
|
|
1015
|
+
* This file was created by scripts/generate.js as part
|
|
1016
|
+
* of the build process. Do not edit this file directly.
|
|
1053
1017
|
******************************************************/
|
|
1054
1018
|
var iconType$c = {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1019
|
+
viewBox: "0 -960 960 960",
|
|
1020
|
+
paths: [
|
|
1021
|
+
{
|
|
1022
|
+
d: "M432-480l156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480z",
|
|
1023
|
+
},
|
|
1024
|
+
],
|
|
1025
|
+
circles: [],
|
|
1061
1026
|
};
|
|
1062
|
-
var ChevronLeftIcon = function
|
|
1063
|
-
|
|
1027
|
+
var ChevronLeftIcon = function (props) {
|
|
1028
|
+
return renderIcon(props, iconType$c);
|
|
1064
1029
|
};
|
|
1065
1030
|
|
|
1066
|
-
/******************************************************
|
|
1067
|
-
* This file was created by scripts/generate.js as part
|
|
1068
|
-
* of the build process. Do not edit this file directly.
|
|
1031
|
+
/******************************************************
|
|
1032
|
+
* This file was created by scripts/generate.js as part
|
|
1033
|
+
* of the build process. Do not edit this file directly.
|
|
1069
1034
|
******************************************************/
|
|
1070
1035
|
var iconType$b = {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1036
|
+
viewBox: "0 -960 960 960",
|
|
1037
|
+
paths: [
|
|
1038
|
+
{
|
|
1039
|
+
d: "M504-480L348-636q-11-11-11-28t11-28q11-11 28-11t28 11l184 184q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L404-268q-11 11-28 11t-28-11q-11-11-11-28t11-28l156-156z",
|
|
1040
|
+
},
|
|
1041
|
+
],
|
|
1042
|
+
circles: [],
|
|
1077
1043
|
};
|
|
1078
|
-
var ChevronRightIcon = function
|
|
1079
|
-
|
|
1044
|
+
var ChevronRightIcon = function (props) {
|
|
1045
|
+
return renderIcon(props, iconType$b);
|
|
1080
1046
|
};
|
|
1081
1047
|
|
|
1082
|
-
/******************************************************
|
|
1083
|
-
* This file was created by scripts/generate.js as part
|
|
1084
|
-
* of the build process. Do not edit this file directly.
|
|
1048
|
+
/******************************************************
|
|
1049
|
+
* This file was created by scripts/generate.js as part
|
|
1050
|
+
* of the build process. Do not edit this file directly.
|
|
1085
1051
|
******************************************************/
|
|
1086
1052
|
var iconType$a = {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
return renderIcon(props, iconType$a);
|
|
1053
|
+
viewBox: "0 -960 960 960",
|
|
1054
|
+
paths: [
|
|
1055
|
+
{
|
|
1056
|
+
d: "M160-200q-33 0-56.5-23.5T80-280v-400q0-33 23.5-56.5T160-760h640q33 0 56.5 23.5T880-680v400q0 33-23.5 56.5T800-200H160zm200-120h240q17 0 28.5-11.5T640-360q0-17-11.5-28.5T600-400H360q-17 0-28.5 11.5T320-360q0 17 11.5 28.5T360-320zM240-560q17 0 28.5-11.5T280-600q0-17-11.5-28.5T240-640q-17 0-28.5 11.5T200-600q0 17 11.5 28.5T240-560zm120 0q17 0 28.5-11.5T400-600q0-17-11.5-28.5T360-640q-17 0-28.5 11.5T320-600q0 17 11.5 28.5T360-560zm120 0q17 0 28.5-11.5T520-600q0-17-11.5-28.5T480-640q-17 0-28.5 11.5T440-600q0 17 11.5 28.5T480-560zm120 0q17 0 28.5-11.5T640-600q0-17-11.5-28.5T600-640q-17 0-28.5 11.5T560-600q0 17 11.5 28.5T600-560zm120 0q17 0 28.5-11.5T760-600q0-17-11.5-28.5T720-640q-17 0-28.5 11.5T680-600q0 17 11.5 28.5T720-560zM240-440q17 0 28.5-11.5T280-480q0-17-11.5-28.5T240-520q-17 0-28.5 11.5T200-480q0 17 11.5 28.5T240-440zm120 0q17 0 28.5-11.5T400-480q0-17-11.5-28.5T360-520q-17 0-28.5 11.5T320-480q0 17 11.5 28.5T360-440zm120 0q17 0 28.5-11.5T520-480q0-17-11.5-28.5T480-520q-17 0-28.5 11.5T440-480q0 17 11.5 28.5T480-440zm120 0q17 0 28.5-11.5T640-480q0-17-11.5-28.5T600-520q-17 0-28.5 11.5T560-480q0 17 11.5 28.5T600-440zm120 0q17 0 28.5-11.5T760-480q0-17-11.5-28.5T720-520q-17 0-28.5 11.5T680-480q0 17 11.5 28.5T720-440z",
|
|
1057
|
+
},
|
|
1058
|
+
],
|
|
1059
|
+
circles: [],
|
|
1095
1060
|
};
|
|
1061
|
+
var KeyboardIcon = function (props) { return renderIcon(props, iconType$a); };
|
|
1096
1062
|
|
|
1097
|
-
/******************************************************
|
|
1098
|
-
* This file was created by scripts/generate.js as part
|
|
1099
|
-
* of the build process. Do not edit this file directly.
|
|
1063
|
+
/******************************************************
|
|
1064
|
+
* This file was created by scripts/generate.js as part
|
|
1065
|
+
* of the build process. Do not edit this file directly.
|
|
1100
1066
|
******************************************************/
|
|
1101
1067
|
var iconType$9 = {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
var KeyboardIcon = function KeyboardIcon(props) {
|
|
1110
|
-
return renderIcon(props, iconType$9);
|
|
1068
|
+
viewBox: "0 -960 960 960",
|
|
1069
|
+
paths: [
|
|
1070
|
+
{
|
|
1071
|
+
d: "M120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200zm80-400h560v-160H200v160zm213 200h134v-120H413v120zm0 200h134v-120H413v120zM200-400h133v-120H200v120zm427 0h133v-120H627v120zM200-200h133v-120H200v120zm427 0h133v-120H627v120z",
|
|
1072
|
+
},
|
|
1073
|
+
],
|
|
1074
|
+
circles: [],
|
|
1111
1075
|
};
|
|
1076
|
+
var TableIcon = function (props) { return renderIcon(props, iconType$9); };
|
|
1112
1077
|
|
|
1113
|
-
/******************************************************
|
|
1114
|
-
* This file was created by scripts/generate.js as part
|
|
1115
|
-
* of the build process. Do not edit this file directly.
|
|
1078
|
+
/******************************************************
|
|
1079
|
+
* This file was created by scripts/generate.js as part
|
|
1080
|
+
* of the build process. Do not edit this file directly.
|
|
1116
1081
|
******************************************************/
|
|
1117
1082
|
var iconType$8 = {
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
var ArrowBackIcon = function ArrowBackIcon(props) {
|
|
1126
|
-
return renderIcon(props, iconType$8);
|
|
1083
|
+
viewBox: "0 -960 960 960",
|
|
1084
|
+
paths: [
|
|
1085
|
+
{
|
|
1086
|
+
d: "M313-440l196 196q12 12 11.5 28T508-188q-12 11-28 11.5T452-188L188-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l264-264q11-11 27.5-11t28.5 11q12 12 12 28.5T508-715L313-520h447q17 0 28.5 11.5T800-480q0 17-11.5 28.5T760-440H313z",
|
|
1087
|
+
},
|
|
1088
|
+
],
|
|
1089
|
+
circles: [],
|
|
1127
1090
|
};
|
|
1091
|
+
var ArrowBackIcon = function (props) { return renderIcon(props, iconType$8); };
|
|
1128
1092
|
|
|
1129
|
-
/******************************************************
|
|
1130
|
-
* This file was created by scripts/generate.js as part
|
|
1131
|
-
* of the build process. Do not edit this file directly.
|
|
1093
|
+
/******************************************************
|
|
1094
|
+
* This file was created by scripts/generate.js as part
|
|
1095
|
+
* of the build process. Do not edit this file directly.
|
|
1132
1096
|
******************************************************/
|
|
1133
1097
|
var iconType$7 = {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1098
|
+
viewBox: "0 -960 960 960",
|
|
1099
|
+
paths: [
|
|
1100
|
+
{
|
|
1101
|
+
d: "M647-440H200q-17 0-28.5-11.5T160-480q0-17 11.5-28.5T200-520h447L451-716q-12-12-11.5-28t12.5-28q12-11 28-11.5t28 11.5l264 264q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L508-188q-11 11-27.5 11T452-188q-12-12-12-28.5t12-28.5l195-195z",
|
|
1102
|
+
},
|
|
1103
|
+
],
|
|
1104
|
+
circles: [],
|
|
1140
1105
|
};
|
|
1141
|
-
var ArrowForwardIcon = function
|
|
1142
|
-
|
|
1106
|
+
var ArrowForwardIcon = function (props) {
|
|
1107
|
+
return renderIcon(props, iconType$7);
|
|
1143
1108
|
};
|
|
1144
1109
|
|
|
1145
|
-
/******************************************************
|
|
1146
|
-
* This file was created by scripts/generate.js as part
|
|
1147
|
-
* of the build process. Do not edit this file directly.
|
|
1110
|
+
/******************************************************
|
|
1111
|
+
* This file was created by scripts/generate.js as part
|
|
1112
|
+
* of the build process. Do not edit this file directly.
|
|
1148
1113
|
******************************************************/
|
|
1149
1114
|
var iconType$6 = {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
var CheckIcon = function CheckIcon(props) {
|
|
1158
|
-
return renderIcon(props, iconType$6);
|
|
1115
|
+
viewBox: "0 -960 960 960",
|
|
1116
|
+
paths: [
|
|
1117
|
+
{
|
|
1118
|
+
d: "M424-424l-86-86q-11-11-28-11t-28 11q-11 11-11 28t11 28l114 114q12 12 28 12t28-12l226-226q11-11 11-28t-11-28q-11-11-28-11t-28 11L424-424zM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200z",
|
|
1119
|
+
},
|
|
1120
|
+
],
|
|
1121
|
+
circles: [],
|
|
1159
1122
|
};
|
|
1123
|
+
var CheckBoxIcon = function (props) { return renderIcon(props, iconType$6); };
|
|
1160
1124
|
|
|
1161
|
-
/******************************************************
|
|
1162
|
-
* This file was created by scripts/generate.js as part
|
|
1163
|
-
* of the build process. Do not edit this file directly.
|
|
1125
|
+
/******************************************************
|
|
1126
|
+
* This file was created by scripts/generate.js as part
|
|
1127
|
+
* of the build process. Do not edit this file directly.
|
|
1164
1128
|
******************************************************/
|
|
1165
1129
|
var iconType$5 = {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1130
|
+
viewBox: "0 -960 960 960",
|
|
1131
|
+
paths: [
|
|
1132
|
+
{
|
|
1133
|
+
d: "M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200zm0-80h560v-560H200v560z",
|
|
1134
|
+
},
|
|
1135
|
+
],
|
|
1136
|
+
circles: [],
|
|
1172
1137
|
};
|
|
1173
|
-
var
|
|
1174
|
-
|
|
1138
|
+
var CheckBoxOutlineBlankIcon = function (props) {
|
|
1139
|
+
return renderIcon(props, iconType$5);
|
|
1175
1140
|
};
|
|
1176
1141
|
|
|
1177
|
-
/******************************************************
|
|
1178
|
-
* This file was created by scripts/generate.js as part
|
|
1179
|
-
* of the build process. Do not edit this file directly.
|
|
1142
|
+
/******************************************************
|
|
1143
|
+
* This file was created by scripts/generate.js as part
|
|
1144
|
+
* of the build process. Do not edit this file directly.
|
|
1180
1145
|
******************************************************/
|
|
1181
1146
|
var iconType$4 = {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
var FullscreenExitIcon = function FullscreenExitIcon(props) {
|
|
1190
|
-
return renderIcon(props, iconType$4);
|
|
1147
|
+
viewBox: "0 -960 960 960",
|
|
1148
|
+
paths: [
|
|
1149
|
+
{
|
|
1150
|
+
d: "M382-354l339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143z",
|
|
1151
|
+
},
|
|
1152
|
+
],
|
|
1153
|
+
circles: [],
|
|
1191
1154
|
};
|
|
1155
|
+
var CheckIcon = function (props) { return renderIcon(props, iconType$4); };
|
|
1192
1156
|
|
|
1193
|
-
/******************************************************
|
|
1194
|
-
* This file was created by scripts/generate.js as part
|
|
1195
|
-
* of the build process. Do not edit this file directly.
|
|
1157
|
+
/******************************************************
|
|
1158
|
+
* This file was created by scripts/generate.js as part
|
|
1159
|
+
* of the build process. Do not edit this file directly.
|
|
1196
1160
|
******************************************************/
|
|
1197
1161
|
var iconType$3 = {
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1162
|
+
viewBox: "0 -960 960 960",
|
|
1163
|
+
paths: [
|
|
1164
|
+
{
|
|
1165
|
+
d: "M240-240h-80q-17 0-28.5-11.5T120-280q0-17 11.5-28.5T160-320h120q17 0 28.5 11.5T320-280v120q0 17-11.5 28.5T280-120q-17 0-28.5-11.5T240-160v-80zm480 0v80q0 17-11.5 28.5T680-120q-17 0-28.5-11.5T640-160v-120q0-17 11.5-28.5T680-320h120q17 0 28.5 11.5T840-280q0 17-11.5 28.5T800-240h-80zM240-720v-80q0-17 11.5-28.5T280-840q17 0 28.5 11.5T320-800v120q0 17-11.5 28.5T280-640H160q-17 0-28.5-11.5T120-680q0-17 11.5-28.5T160-720h80zm480 0h80q17 0 28.5 11.5T840-680q0 17-11.5 28.5T800-640H680q-17 0-28.5-11.5T640-680v-120q0-17 11.5-28.5T680-840q17 0 28.5 11.5T720-800v80z",
|
|
1166
|
+
},
|
|
1167
|
+
],
|
|
1168
|
+
circles: [],
|
|
1204
1169
|
};
|
|
1205
|
-
var
|
|
1206
|
-
|
|
1170
|
+
var FullscreenExitIcon = function (props) {
|
|
1171
|
+
return renderIcon(props, iconType$3);
|
|
1207
1172
|
};
|
|
1208
1173
|
|
|
1209
|
-
/******************************************************
|
|
1210
|
-
* This file was created by scripts/generate.js as part
|
|
1211
|
-
* of the build process. Do not edit this file directly.
|
|
1174
|
+
/******************************************************
|
|
1175
|
+
* This file was created by scripts/generate.js as part
|
|
1176
|
+
* of the build process. Do not edit this file directly.
|
|
1212
1177
|
******************************************************/
|
|
1213
1178
|
var iconType$2 = {
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
var CheckBoxIcon = function CheckBoxIcon(props) {
|
|
1222
|
-
return renderIcon(props, iconType$2);
|
|
1179
|
+
viewBox: "0 -960 960 960",
|
|
1180
|
+
paths: [
|
|
1181
|
+
{
|
|
1182
|
+
d: "M200-200h80q17 0 28.5 11.5T320-160q0 17-11.5 28.5T280-120H160q-17 0-28.5-11.5T120-160v-120q0-17 11.5-28.5T160-320q17 0 28.5 11.5T200-280v80zm560 0v-80q0-17 11.5-28.5T800-320q17 0 28.5 11.5T840-280v120q0 17-11.5 28.5T800-120H680q-17 0-28.5-11.5T640-160q0-17 11.5-28.5T680-200h80zM200-760v80q0 17-11.5 28.5T160-640q-17 0-28.5-11.5T120-680v-120q0-17 11.5-28.5T160-840h120q17 0 28.5 11.5T320-800q0 17-11.5 28.5T280-760h-80zm560 0h-80q-17 0-28.5-11.5T640-800q0-17 11.5-28.5T680-840h120q17 0 28.5 11.5T840-800v120q0 17-11.5 28.5T800-640q-17 0-28.5-11.5T760-680v-80z",
|
|
1183
|
+
},
|
|
1184
|
+
],
|
|
1185
|
+
circles: [],
|
|
1223
1186
|
};
|
|
1187
|
+
var FullscreenIcon = function (props) { return renderIcon(props, iconType$2); };
|
|
1224
1188
|
|
|
1225
|
-
/******************************************************
|
|
1226
|
-
* This file was created by scripts/generate.js as part
|
|
1227
|
-
* of the build process. Do not edit this file directly.
|
|
1189
|
+
/******************************************************
|
|
1190
|
+
* This file was created by scripts/generate.js as part
|
|
1191
|
+
* of the build process. Do not edit this file directly.
|
|
1228
1192
|
******************************************************/
|
|
1229
1193
|
var iconType$1 = {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1194
|
+
viewBox: "0 -960 960 960",
|
|
1195
|
+
paths: [
|
|
1196
|
+
{
|
|
1197
|
+
d: "M320-440h320q17 0 28.5-11.5T680-480q0-17-11.5-28.5T640-520H320q-17 0-28.5 11.5T280-480q0 17 11.5 28.5T320-440zM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200z",
|
|
1198
|
+
},
|
|
1199
|
+
],
|
|
1200
|
+
circles: [],
|
|
1236
1201
|
};
|
|
1237
|
-
var
|
|
1238
|
-
|
|
1202
|
+
var IndeterminateCheckBoxIcon = function (props) {
|
|
1203
|
+
return renderIcon(props, iconType$1);
|
|
1239
1204
|
};
|
|
1240
1205
|
|
|
1241
|
-
/******************************************************
|
|
1242
|
-
* This file was created by scripts/generate.js as part
|
|
1243
|
-
* of the build process. Do not edit this file directly.
|
|
1206
|
+
/******************************************************
|
|
1207
|
+
* This file was created by scripts/generate.js as part
|
|
1208
|
+
* of the build process. Do not edit this file directly.
|
|
1244
1209
|
******************************************************/
|
|
1245
1210
|
var iconType = {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
var IndeterminateCheckBoxIcon = function IndeterminateCheckBoxIcon(props) {
|
|
1254
|
-
return renderIcon(props, iconType);
|
|
1211
|
+
viewBox: "0 -960 960 960",
|
|
1212
|
+
paths: [
|
|
1213
|
+
{
|
|
1214
|
+
d: "M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640z",
|
|
1215
|
+
},
|
|
1216
|
+
],
|
|
1217
|
+
circles: [],
|
|
1255
1218
|
};
|
|
1219
|
+
var MoreVertIcon = function (props) { return renderIcon(props, iconType); };
|
|
1256
1220
|
|
|
1257
1221
|
function _assertThisInitialized$1(e) {
|
|
1258
1222
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -1365,7 +1329,7 @@
|
|
|
1365
1329
|
* was producing a lot of duplication amongst bundles.
|
|
1366
1330
|
*/
|
|
1367
1331
|
if (isEnabled(props) && Component) {
|
|
1368
|
-
features.push(React__namespace.createElement(Component, __assign({ key: name_1 }, props, { visualElement: visualElement })));
|
|
1332
|
+
features.push(React__namespace.createElement(Component, __assign$1({ key: name_1 }, props, { visualElement: visualElement })));
|
|
1369
1333
|
}
|
|
1370
1334
|
}
|
|
1371
1335
|
return features;
|
|
@@ -1479,7 +1443,7 @@
|
|
|
1479
1443
|
visualElementRef.current = createVisualElement(Component, {
|
|
1480
1444
|
visualState: visualState,
|
|
1481
1445
|
parent: parent,
|
|
1482
|
-
props: __assign(__assign({}, props), { layoutId: layoutId }),
|
|
1446
|
+
props: __assign$1(__assign$1({}, props), { layoutId: layoutId }),
|
|
1483
1447
|
presenceId: presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id,
|
|
1484
1448
|
blockInitialAnimation: (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.initial) === false,
|
|
1485
1449
|
});
|
|
@@ -1488,7 +1452,7 @@
|
|
|
1488
1452
|
useIsomorphicLayoutEffect(function () {
|
|
1489
1453
|
if (!visualElement)
|
|
1490
1454
|
return;
|
|
1491
|
-
visualElement.setProps(__assign(__assign(__assign({}, config), props), { layoutId: layoutId }));
|
|
1455
|
+
visualElement.setProps(__assign$1(__assign$1(__assign$1({}, config), props), { layoutId: layoutId }));
|
|
1492
1456
|
visualElement.isPresent = isPresent(presenceContext);
|
|
1493
1457
|
visualElement.isPresenceRoot =
|
|
1494
1458
|
!parent || parent.presenceId !== (presenceContext === null || presenceContext === void 0 ? void 0 : presenceContext.id);
|
|
@@ -1944,8 +1908,8 @@
|
|
|
1944
1908
|
parse: parseFloat,
|
|
1945
1909
|
transform: function (v) { return v; },
|
|
1946
1910
|
};
|
|
1947
|
-
var alpha = __assign(__assign({}, number$3), { transform: clamp$2(0, 1) });
|
|
1948
|
-
var scale = __assign(__assign({}, number$3), { default: 1 });
|
|
1911
|
+
var alpha = __assign$1(__assign$1({}, number$3), { transform: clamp$2(0, 1) });
|
|
1912
|
+
var scale = __assign$1(__assign$1({}, number$3), { default: 1 });
|
|
1949
1913
|
|
|
1950
1914
|
var createUnitType = function (unit) { return ({
|
|
1951
1915
|
test: function (v) {
|
|
@@ -1959,7 +1923,7 @@
|
|
|
1959
1923
|
var px = createUnitType('px');
|
|
1960
1924
|
var vh = createUnitType('vh');
|
|
1961
1925
|
var vw = createUnitType('vw');
|
|
1962
|
-
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
1926
|
+
var progressPercentage = __assign$1(__assign$1({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
1963
1927
|
|
|
1964
1928
|
var isColorString = function (type, testProp) { return function (v) {
|
|
1965
1929
|
return Boolean((isString(v) && singleColorRegex.test(v) && v.startsWith(type)) ||
|
|
@@ -1996,7 +1960,7 @@
|
|
|
1996
1960
|
};
|
|
1997
1961
|
|
|
1998
1962
|
var clampRgbUnit = clamp$2(0, 255);
|
|
1999
|
-
var rgbUnit = __assign(__assign({}, number$3), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
1963
|
+
var rgbUnit = __assign$1(__assign$1({}, number$3), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
2000
1964
|
var rgba$3 = {
|
|
2001
1965
|
test: isColorString('rgb', 'red'),
|
|
2002
1966
|
parse: splitColor('red', 'green', 'blue'),
|
|
@@ -2133,12 +2097,12 @@
|
|
|
2133
2097
|
return name + '(' + defaultValue + unit + ')';
|
|
2134
2098
|
}
|
|
2135
2099
|
var functionRegex = /([a-z-]*)\(.*?\)/g;
|
|
2136
|
-
var filter = __assign(__assign({}, complex), { getAnimatableNone: function (v) {
|
|
2100
|
+
var filter = __assign$1(__assign$1({}, complex), { getAnimatableNone: function (v) {
|
|
2137
2101
|
var functions = v.match(functionRegex);
|
|
2138
2102
|
return functions ? functions.map(applyDefaultFilter).join(' ') : v;
|
|
2139
2103
|
} });
|
|
2140
2104
|
|
|
2141
|
-
var int = __assign(__assign({}, number$3), { transform: Math.round });
|
|
2105
|
+
var int = __assign$1(__assign$1({}, number$3), { transform: Math.round });
|
|
2142
2106
|
|
|
2143
2107
|
var numberValueTypes = {
|
|
2144
2108
|
// Border props
|
|
@@ -2324,7 +2288,7 @@
|
|
|
2324
2288
|
var state = createHtmlRenderState();
|
|
2325
2289
|
buildHTMLStyles(state, visualState, undefined, undefined, { enableHardwareAcceleration: !isStatic }, transformTemplate);
|
|
2326
2290
|
var vars = state.vars, style = state.style;
|
|
2327
|
-
return __assign(__assign({}, vars), style);
|
|
2291
|
+
return __assign$1(__assign$1({}, vars), style);
|
|
2328
2292
|
}, [visualState]);
|
|
2329
2293
|
}
|
|
2330
2294
|
function useStyle(props, visualState, isStatic) {
|
|
@@ -2521,7 +2485,7 @@
|
|
|
2521
2485
|
function buildSVGAttrs(state, _a, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin) {
|
|
2522
2486
|
var attrX = _a.attrX, attrY = _a.attrY, originX = _a.originX, originY = _a.originY, pathLength = _a.pathLength, _b = _a.pathSpacing, pathSpacing = _b === void 0 ? 1 : _b, _c = _a.pathOffset, pathOffset = _c === void 0 ? 0 : _c,
|
|
2523
2487
|
// This is object creation, which we try to avoid per-frame.
|
|
2524
|
-
latest = __rest(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
2488
|
+
latest = __rest$1(_a, ["attrX", "attrY", "originX", "originY", "pathLength", "pathSpacing", "pathOffset"]);
|
|
2525
2489
|
buildHTMLStyles(state, latest, projection, layoutState, options, transformTemplate, buildProjectionTransform, buildProjectionTransformOrigin);
|
|
2526
2490
|
state.attrs = state.style;
|
|
2527
2491
|
state.style = {};
|
|
@@ -2551,18 +2515,18 @@
|
|
|
2551
2515
|
}
|
|
2552
2516
|
}
|
|
2553
2517
|
|
|
2554
|
-
var createSvgRenderState = function () { return (__assign(__assign({}, createHtmlRenderState()), { attrs: {} })); };
|
|
2518
|
+
var createSvgRenderState = function () { return (__assign$1(__assign$1({}, createHtmlRenderState()), { attrs: {} })); };
|
|
2555
2519
|
|
|
2556
2520
|
function useSVGProps(props, visualState) {
|
|
2557
2521
|
var visualProps = React.useMemo(function () {
|
|
2558
2522
|
var state = createSvgRenderState();
|
|
2559
2523
|
buildSVGAttrs(state, visualState, undefined, undefined, { enableHardwareAcceleration: false }, props.transformTemplate);
|
|
2560
|
-
return __assign(__assign({}, state.attrs), { style: __assign({}, state.style) });
|
|
2524
|
+
return __assign$1(__assign$1({}, state.attrs), { style: __assign$1({}, state.style) });
|
|
2561
2525
|
}, [visualState]);
|
|
2562
2526
|
if (props.style) {
|
|
2563
2527
|
var rawStyles = {};
|
|
2564
2528
|
copyRawValuesOnly(rawStyles, props.style, props);
|
|
2565
|
-
visualProps.style = __assign(__assign({}, rawStyles), visualProps.style);
|
|
2529
|
+
visualProps.style = __assign$1(__assign$1({}, rawStyles), visualProps.style);
|
|
2566
2530
|
}
|
|
2567
2531
|
return visualProps;
|
|
2568
2532
|
}
|
|
@@ -2576,7 +2540,7 @@
|
|
|
2576
2540
|
: useHTMLProps;
|
|
2577
2541
|
var visualProps = useVisualProps(props, latestValues, isStatic);
|
|
2578
2542
|
var filteredProps = filterProps(props, typeof Component === "string", forwardMotionProps);
|
|
2579
|
-
var elementProps = __assign(__assign(__assign({}, filteredProps), visualProps), { ref: ref });
|
|
2543
|
+
var elementProps = __assign$1(__assign$1(__assign$1({}, filteredProps), visualProps), { ref: ref });
|
|
2580
2544
|
return React.createElement(Component, elementProps);
|
|
2581
2545
|
};
|
|
2582
2546
|
return useRender;
|
|
@@ -2730,7 +2694,7 @@
|
|
|
2730
2694
|
var resolved = resolveVariantFromProps(props, definition);
|
|
2731
2695
|
if (!resolved)
|
|
2732
2696
|
return;
|
|
2733
|
-
var transitionEnd = resolved.transitionEnd; resolved.transition; var target = __rest(resolved, ["transitionEnd", "transition"]);
|
|
2697
|
+
var transitionEnd = resolved.transitionEnd; resolved.transition; var target = __rest$1(resolved, ["transitionEnd", "transition"]);
|
|
2734
2698
|
for (var key in target)
|
|
2735
2699
|
values[key] = target[key];
|
|
2736
2700
|
for (var key in transitionEnd)
|
|
@@ -2787,7 +2751,7 @@
|
|
|
2787
2751
|
var baseConfig = isSVGComponent(Component)
|
|
2788
2752
|
? svgMotionConfig
|
|
2789
2753
|
: htmlMotionConfig;
|
|
2790
|
-
return __assign(__assign({}, baseConfig), { preloadedFeatures: preloadedFeatures, useRender: createUseRender(forwardMotionProps), createVisualElement: createVisualElement,
|
|
2754
|
+
return __assign$1(__assign$1({}, baseConfig), { preloadedFeatures: preloadedFeatures, useRender: createUseRender(forwardMotionProps), createVisualElement: createVisualElement,
|
|
2791
2755
|
Component: Component });
|
|
2792
2756
|
}
|
|
2793
2757
|
|
|
@@ -3145,17 +3109,17 @@
|
|
|
3145
3109
|
return keys.some(function (key) { return options[key] !== undefined; });
|
|
3146
3110
|
}
|
|
3147
3111
|
function getSpringOptions(options) {
|
|
3148
|
-
var springOptions = __assign({ velocity: 0.0, stiffness: 100, damping: 10, mass: 1.0, isResolvedFromDuration: false }, options);
|
|
3112
|
+
var springOptions = __assign$1({ velocity: 0.0, stiffness: 100, damping: 10, mass: 1.0, isResolvedFromDuration: false }, options);
|
|
3149
3113
|
if (!isSpringType(options, physicsKeys) &&
|
|
3150
3114
|
isSpringType(options, durationKeys)) {
|
|
3151
3115
|
var derived = findSpring(options);
|
|
3152
|
-
springOptions = __assign(__assign(__assign({}, springOptions), derived), { velocity: 0.0, mass: 1.0 });
|
|
3116
|
+
springOptions = __assign$1(__assign$1(__assign$1({}, springOptions), derived), { velocity: 0.0, mass: 1.0 });
|
|
3153
3117
|
springOptions.isResolvedFromDuration = true;
|
|
3154
3118
|
}
|
|
3155
3119
|
return springOptions;
|
|
3156
3120
|
}
|
|
3157
3121
|
function spring(_a) {
|
|
3158
|
-
var _b = _a.from, from = _b === void 0 ? 0.0 : _b, _c = _a.to, to = _c === void 0 ? 1.0 : _c, _d = _a.restSpeed, restSpeed = _d === void 0 ? 2 : _d, restDelta = _a.restDelta, options = __rest(_a, ["from", "to", "restSpeed", "restDelta"]);
|
|
3122
|
+
var _b = _a.from, from = _b === void 0 ? 0.0 : _b, _c = _a.to, to = _c === void 0 ? 1.0 : _c, _d = _a.restSpeed, restSpeed = _d === void 0 ? 2 : _d, restDelta = _a.restDelta, options = __rest$1(_a, ["from", "to", "restSpeed", "restDelta"]);
|
|
3159
3123
|
var state = { done: false, value: from };
|
|
3160
3124
|
var _e = getSpringOptions(options), stiffness = _e.stiffness, damping = _e.damping, mass = _e.mass, velocity = _e.velocity, duration = _e.duration, isResolvedFromDuration = _e.isResolvedFromDuration;
|
|
3161
3125
|
var resolveSpring = zero$2;
|
|
@@ -3286,7 +3250,7 @@
|
|
|
3286
3250
|
invariant(fromColorType.transform === toColorType.transform, "Both colors must be hex/RGBA, OR both must be HSLA.");
|
|
3287
3251
|
var fromColor = fromColorType.parse(from);
|
|
3288
3252
|
var toColor = toColorType.parse(to);
|
|
3289
|
-
var blended = __assign({}, fromColor);
|
|
3253
|
+
var blended = __assign$1({}, fromColor);
|
|
3290
3254
|
var mixFunc = fromColorType === hsla$2 ? mix$2 : mixLinearColor;
|
|
3291
3255
|
return function (v) {
|
|
3292
3256
|
for (var key in blended) {
|
|
@@ -3333,7 +3297,7 @@
|
|
|
3333
3297
|
};
|
|
3334
3298
|
};
|
|
3335
3299
|
var mixObject = function (origin, target) {
|
|
3336
|
-
var output = __assign(__assign({}, origin), target);
|
|
3300
|
+
var output = __assign$1(__assign$1({}, origin), target);
|
|
3337
3301
|
var blendValue = {};
|
|
3338
3302
|
for (var key in output) {
|
|
3339
3303
|
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
@@ -3749,7 +3713,7 @@
|
|
|
3749
3713
|
};
|
|
3750
3714
|
function animate$1(_a) {
|
|
3751
3715
|
var _b, _c;
|
|
3752
|
-
var from = _a.from, _d = _a.autoplay, autoplay = _d === void 0 ? true : _d, _e = _a.driver, driver = _e === void 0 ? framesync : _e, _f = _a.elapsed, elapsed = _f === void 0 ? 0 : _f, _g = _a.repeat, repeatMax = _g === void 0 ? 0 : _g, _h = _a.repeatType, repeatType = _h === void 0 ? "loop" : _h, _j = _a.repeatDelay, repeatDelay = _j === void 0 ? 0 : _j, onPlay = _a.onPlay, onStop = _a.onStop, onComplete = _a.onComplete, onRepeat = _a.onRepeat, onUpdate = _a.onUpdate, options = __rest(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
3716
|
+
var from = _a.from, _d = _a.autoplay, autoplay = _d === void 0 ? true : _d, _e = _a.driver, driver = _e === void 0 ? framesync : _e, _f = _a.elapsed, elapsed = _f === void 0 ? 0 : _f, _g = _a.repeat, repeatMax = _g === void 0 ? 0 : _g, _h = _a.repeatType, repeatType = _h === void 0 ? "loop" : _h, _j = _a.repeatDelay, repeatDelay = _j === void 0 ? 0 : _j, onPlay = _a.onPlay, onStop = _a.onStop, onComplete = _a.onComplete, onRepeat = _a.onRepeat, onUpdate = _a.onUpdate, options = __rest$1(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
3753
3717
|
var to = options.to;
|
|
3754
3718
|
var driverControls;
|
|
3755
3719
|
var repeatCount = 0;
|
|
@@ -3766,7 +3730,7 @@
|
|
|
3766
3730
|
from = 0;
|
|
3767
3731
|
to = 100;
|
|
3768
3732
|
}
|
|
3769
|
-
var animation = animator(__assign(__assign({}, options), { from: from, to: to }));
|
|
3733
|
+
var animation = animator(__assign$1(__assign$1({}, options), { from: from, to: to }));
|
|
3770
3734
|
function repeat() {
|
|
3771
3735
|
repeatCount++;
|
|
3772
3736
|
if (repeatType === "reverse") {
|
|
@@ -3841,14 +3805,14 @@
|
|
|
3841
3805
|
}
|
|
3842
3806
|
function startAnimation(options) {
|
|
3843
3807
|
currentAnimation === null || currentAnimation === void 0 ? void 0 : currentAnimation.stop();
|
|
3844
|
-
currentAnimation = animate$1(__assign(__assign({}, options), { driver: driver, onUpdate: function (v) {
|
|
3808
|
+
currentAnimation = animate$1(__assign$1(__assign$1({}, options), { driver: driver, onUpdate: function (v) {
|
|
3845
3809
|
var _a;
|
|
3846
3810
|
onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(v);
|
|
3847
3811
|
(_a = options.onUpdate) === null || _a === void 0 ? void 0 : _a.call(options, v);
|
|
3848
3812
|
}, onComplete: onComplete }));
|
|
3849
3813
|
}
|
|
3850
3814
|
function startSpring(options) {
|
|
3851
|
-
startAnimation(__assign({ type: "spring", stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta }, options));
|
|
3815
|
+
startAnimation(__assign$1({ type: "spring", stiffness: bounceStiffness, damping: bounceDamping, restDelta: restDelta }, options));
|
|
3852
3816
|
}
|
|
3853
3817
|
if (isOutOfBounds(from)) {
|
|
3854
3818
|
startSpring({ from: from, velocity: velocity, to: boundaryNearest(from) });
|
|
@@ -4177,13 +4141,13 @@
|
|
|
4177
4141
|
transitionFactory =
|
|
4178
4142
|
defaultTransitions[valueKey] || defaultTransitions.default;
|
|
4179
4143
|
}
|
|
4180
|
-
return __assign({ to: to }, transitionFactory(to));
|
|
4144
|
+
return __assign$1({ to: to }, transitionFactory(to));
|
|
4181
4145
|
};
|
|
4182
4146
|
|
|
4183
4147
|
/**
|
|
4184
4148
|
* A map of default value types for common values
|
|
4185
4149
|
*/
|
|
4186
|
-
var defaultValueTypes = __assign(__assign({}, numberValueTypes), {
|
|
4150
|
+
var defaultValueTypes = __assign$1(__assign$1({}, numberValueTypes), {
|
|
4187
4151
|
// Color props
|
|
4188
4152
|
color: color$1, backgroundColor: color$1, outlineColor: color$1, fill: color$1, stroke: color$1,
|
|
4189
4153
|
// Border props
|
|
@@ -4208,7 +4172,7 @@
|
|
|
4208
4172
|
* if any options are left.
|
|
4209
4173
|
*/
|
|
4210
4174
|
function isTransitionDefined(_a) {
|
|
4211
|
-
_a.when; _a.delay; _a.delayChildren; _a.staggerChildren; _a.staggerDirection; _a.repeat; _a.repeatType; _a.repeatDelay; _a.from; var transition = __rest(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
|
4175
|
+
_a.when; _a.delay; _a.delayChildren; _a.staggerChildren; _a.staggerDirection; _a.repeat; _a.repeatType; _a.repeatDelay; _a.from; var transition = __rest$1(_a, ["when", "delay", "delayChildren", "staggerChildren", "staggerDirection", "repeat", "repeatType", "repeatDelay", "from"]);
|
|
4212
4176
|
return !!Object.keys(transition).length;
|
|
4213
4177
|
}
|
|
4214
4178
|
var legacyRepeatWarning = false;
|
|
@@ -4216,8 +4180,8 @@
|
|
|
4216
4180
|
* Convert Framer Motion's Transition type into Popmotion-compatible options.
|
|
4217
4181
|
*/
|
|
4218
4182
|
function convertTransitionToAnimationOptions(_a) {
|
|
4219
|
-
var ease = _a.ease, times = _a.times, yoyo = _a.yoyo, flip = _a.flip, loop = _a.loop, transition = __rest(_a, ["ease", "times", "yoyo", "flip", "loop"]);
|
|
4220
|
-
var options = __assign({}, transition);
|
|
4183
|
+
var ease = _a.ease, times = _a.times, yoyo = _a.yoyo, flip = _a.flip, loop = _a.loop, transition = __rest$1(_a, ["ease", "times", "yoyo", "flip", "loop"]);
|
|
4184
|
+
var options = __assign$1({}, transition);
|
|
4221
4185
|
if (times)
|
|
4222
4186
|
options["offset"] = times;
|
|
4223
4187
|
/**
|
|
@@ -4291,9 +4255,9 @@
|
|
|
4291
4255
|
* Get a default transition if none is determined to be defined.
|
|
4292
4256
|
*/
|
|
4293
4257
|
if (!isTransitionDefined(transition)) {
|
|
4294
|
-
transition = __assign(__assign({}, transition), getDefaultTransition(key, options.to));
|
|
4258
|
+
transition = __assign$1(__assign$1({}, transition), getDefaultTransition(key, options.to));
|
|
4295
4259
|
}
|
|
4296
|
-
return __assign(__assign({}, options), convertTransitionToAnimationOptions(transition));
|
|
4260
|
+
return __assign$1(__assign$1({}, options), convertTransitionToAnimationOptions(transition));
|
|
4297
4261
|
}
|
|
4298
4262
|
/**
|
|
4299
4263
|
*
|
|
@@ -4330,8 +4294,8 @@
|
|
|
4330
4294
|
};
|
|
4331
4295
|
return valueTransition.type === "inertia" ||
|
|
4332
4296
|
valueTransition.type === "decay"
|
|
4333
|
-
? inertia(__assign(__assign({}, options), valueTransition))
|
|
4334
|
-
: animate$1(__assign(__assign({}, getPopmotionAnimationOptions(valueTransition, options, key)), { onUpdate: function (v) {
|
|
4297
|
+
? inertia(__assign$1(__assign$1({}, options), valueTransition))
|
|
4298
|
+
: animate$1(__assign$1(__assign$1({}, getPopmotionAnimationOptions(valueTransition, options, key)), { onUpdate: function (v) {
|
|
4335
4299
|
var _a;
|
|
4336
4300
|
options.onUpdate(v);
|
|
4337
4301
|
(_a = valueTransition.onUpdate) === null || _a === void 0 ? void 0 : _a.call(valueTransition, v);
|
|
@@ -4830,8 +4794,8 @@
|
|
|
4830
4794
|
var resolved = resolveVariant(visualElement, definition);
|
|
4831
4795
|
var _a = resolved
|
|
4832
4796
|
? visualElement.makeTargetAnimatable(resolved, false)
|
|
4833
|
-
: {}, _b = _a.transitionEnd, transitionEnd = _b === void 0 ? {} : _b; _a.transition; var target = __rest(_a, ["transitionEnd", "transition"]);
|
|
4834
|
-
target = __assign(__assign({}, target), transitionEnd);
|
|
4797
|
+
: {}, _b = _a.transitionEnd, transitionEnd = _b === void 0 ? {} : _b; _a.transition; var target = __rest$1(_a, ["transitionEnd", "transition"]);
|
|
4798
|
+
target = __assign$1(__assign$1({}, target), transitionEnd);
|
|
4835
4799
|
for (var key in target) {
|
|
4836
4800
|
var value = resolveFinalValueInKeyframes(target[key]);
|
|
4837
4801
|
setMotionValue(visualElement, key, value);
|
|
@@ -4970,7 +4934,7 @@
|
|
|
4970
4934
|
function animateTarget(visualElement, definition, _a) {
|
|
4971
4935
|
var _b;
|
|
4972
4936
|
var _c = _a === void 0 ? {} : _a, _d = _c.delay, delay = _d === void 0 ? 0 : _d, transitionOverride = _c.transitionOverride, type = _c.type;
|
|
4973
|
-
var _e = visualElement.makeTargetAnimatable(definition), _f = _e.transition, transition = _f === void 0 ? visualElement.getDefaultTransition() : _f, transitionEnd = _e.transitionEnd, target = __rest(_e, ["transition", "transitionEnd"]);
|
|
4937
|
+
var _e = visualElement.makeTargetAnimatable(definition), _f = _e.transition, transition = _f === void 0 ? visualElement.getDefaultTransition() : _f, transitionEnd = _e.transitionEnd, target = __rest$1(_e, ["transition", "transitionEnd"]);
|
|
4974
4938
|
if (transitionOverride)
|
|
4975
4939
|
transition = transitionOverride;
|
|
4976
4940
|
var animations = [];
|
|
@@ -4984,7 +4948,7 @@
|
|
|
4984
4948
|
shouldBlockAnimation(animationTypeState, key))) {
|
|
4985
4949
|
continue;
|
|
4986
4950
|
}
|
|
4987
|
-
var animation = startAnimation(key, value, valueTarget, __assign({ delay: delay }, transition));
|
|
4951
|
+
var animation = startAnimation(key, value, valueTarget, __assign$1({ delay: delay }, transition));
|
|
4988
4952
|
animations.push(animation);
|
|
4989
4953
|
}
|
|
4990
4954
|
return Promise.all(animations).then(function () {
|
|
@@ -5009,7 +4973,7 @@
|
|
|
5009
4973
|
Array.from(visualElement.variantChildren)
|
|
5010
4974
|
.sort(sortByTreeOrder)
|
|
5011
4975
|
.forEach(function (child, i) {
|
|
5012
|
-
animations.push(animateVariant(child, variant, __assign(__assign({}, options), { delay: delayChildren + generateStaggerDuration(i) })).then(function () { return child.notifyAnimationComplete(variant); }));
|
|
4976
|
+
animations.push(animateVariant(child, variant, __assign$1(__assign$1({}, options), { delay: delayChildren + generateStaggerDuration(i) })).then(function () { return child.notifyAnimationComplete(variant); }));
|
|
5013
4977
|
});
|
|
5014
4978
|
return Promise.all(animations);
|
|
5015
4979
|
}
|
|
@@ -5059,8 +5023,8 @@
|
|
|
5059
5023
|
var buildResolvedTypeValues = function (acc, definition) {
|
|
5060
5024
|
var resolved = resolveVariant(visualElement, definition);
|
|
5061
5025
|
if (resolved) {
|
|
5062
|
-
resolved.transition; var transitionEnd = resolved.transitionEnd, target = __rest(resolved, ["transition", "transitionEnd"]);
|
|
5063
|
-
acc = __assign(__assign(__assign({}, acc), target), transitionEnd);
|
|
5026
|
+
resolved.transition; var transitionEnd = resolved.transitionEnd, target = __rest$1(resolved, ["transition", "transitionEnd"]);
|
|
5027
|
+
acc = __assign$1(__assign$1(__assign$1({}, acc), target), transitionEnd);
|
|
5064
5028
|
}
|
|
5065
5029
|
return acc;
|
|
5066
5030
|
};
|
|
@@ -5140,7 +5104,7 @@
|
|
|
5140
5104
|
* Set all encountered keys so far as the protected keys for this type. This will
|
|
5141
5105
|
* be any key that has been animated or otherwise handled by active, higher-priortiy types.
|
|
5142
5106
|
*/
|
|
5143
|
-
typeState.protectedKeys = __assign({}, encounteredKeys);
|
|
5107
|
+
typeState.protectedKeys = __assign$1({}, encounteredKeys);
|
|
5144
5108
|
// Check if we can skip analysing this prop early
|
|
5145
5109
|
if (
|
|
5146
5110
|
// If it isn't active and hasn't *just* been set as inactive
|
|
@@ -5187,7 +5151,7 @@
|
|
|
5187
5151
|
* needs adding to the type's protectedKeys list.
|
|
5188
5152
|
*/
|
|
5189
5153
|
var _b = typeState.prevResolvedValues, prevResolvedValues = _b === void 0 ? {} : _b;
|
|
5190
|
-
var allKeys = __assign(__assign({}, prevResolvedValues), resolvedValues);
|
|
5154
|
+
var allKeys = __assign$1(__assign$1({}, prevResolvedValues), resolvedValues);
|
|
5191
5155
|
var markToAnimate = function (key) {
|
|
5192
5156
|
shouldAnimateType = true;
|
|
5193
5157
|
removedKeys.delete(key);
|
|
@@ -5253,7 +5217,7 @@
|
|
|
5253
5217
|
*
|
|
5254
5218
|
*/
|
|
5255
5219
|
if (typeState.isActive) {
|
|
5256
|
-
encounteredKeys = __assign(__assign({}, encounteredKeys), resolvedValues);
|
|
5220
|
+
encounteredKeys = __assign$1(__assign$1({}, encounteredKeys), resolvedValues);
|
|
5257
5221
|
}
|
|
5258
5222
|
if (isInitialRender && visualElement.blockInitialAnimation) {
|
|
5259
5223
|
shouldAnimateType = false;
|
|
@@ -5266,7 +5230,7 @@
|
|
|
5266
5230
|
if (shouldAnimateType && !isInherited) {
|
|
5267
5231
|
animations.push.apply(animations, __spreadArray([], __read(definitionList.map(function (animation) { return ({
|
|
5268
5232
|
animation: animation,
|
|
5269
|
-
options: __assign({ type: type }, options),
|
|
5233
|
+
options: __assign$1({ type: type }, options),
|
|
5270
5234
|
}); }))));
|
|
5271
5235
|
}
|
|
5272
5236
|
};
|
|
@@ -5279,7 +5243,7 @@
|
|
|
5279
5243
|
for (var i = 0; i < numAnimationTypes; i++) {
|
|
5280
5244
|
_loop_1(i);
|
|
5281
5245
|
}
|
|
5282
|
-
allAnimatedKeys = __assign({}, encounteredKeys);
|
|
5246
|
+
allAnimatedKeys = __assign$1({}, encounteredKeys);
|
|
5283
5247
|
/**
|
|
5284
5248
|
* If there are some removed value that haven't been dealt with,
|
|
5285
5249
|
* we need to create a new animation that falls back either to the value
|
|
@@ -5419,7 +5383,7 @@
|
|
|
5419
5383
|
return;
|
|
5420
5384
|
var point = info.point;
|
|
5421
5385
|
var timestamp = getFrameData().timestamp;
|
|
5422
|
-
_this.history.push(__assign(__assign({}, point), { timestamp: timestamp }));
|
|
5386
|
+
_this.history.push(__assign$1(__assign$1({}, point), { timestamp: timestamp }));
|
|
5423
5387
|
var _a = _this.handlers, onStart = _a.onStart, onMove = _a.onMove;
|
|
5424
5388
|
if (!isPanStarted) {
|
|
5425
5389
|
onStart && onStart(_this.lastMoveEvent, info);
|
|
@@ -5456,7 +5420,7 @@
|
|
|
5456
5420
|
var initialInfo = transformPoint(info, this.transformPagePoint);
|
|
5457
5421
|
var point = initialInfo.point;
|
|
5458
5422
|
var timestamp = getFrameData().timestamp;
|
|
5459
|
-
this.history = [__assign(__assign({}, point), { timestamp: timestamp })];
|
|
5423
|
+
this.history = [__assign$1(__assign$1({}, point), { timestamp: timestamp })];
|
|
5460
5424
|
var onSessionStart = handlers.onSessionStart;
|
|
5461
5425
|
onSessionStart &&
|
|
5462
5426
|
onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
@@ -5577,8 +5541,8 @@
|
|
|
5577
5541
|
}
|
|
5578
5542
|
function copyAxisBox(box) {
|
|
5579
5543
|
return {
|
|
5580
|
-
x: __assign({}, box.x),
|
|
5581
|
-
y: __assign({}, box.y),
|
|
5544
|
+
x: __assign$1({}, box.x),
|
|
5545
|
+
y: __assign$1({}, box.y),
|
|
5582
5546
|
};
|
|
5583
5547
|
}
|
|
5584
5548
|
/**
|
|
@@ -5592,8 +5556,8 @@
|
|
|
5592
5556
|
};
|
|
5593
5557
|
function delta() {
|
|
5594
5558
|
return {
|
|
5595
|
-
x: __assign({}, zeroDelta),
|
|
5596
|
-
y: __assign({}, zeroDelta),
|
|
5559
|
+
x: __assign$1({}, zeroDelta),
|
|
5560
|
+
y: __assign$1({}, zeroDelta),
|
|
5597
5561
|
};
|
|
5598
5562
|
}
|
|
5599
5563
|
|
|
@@ -6449,8 +6413,8 @@
|
|
|
6449
6413
|
this.visualElement.setProjectionTargetAxis(axis, min, min + axisLength);
|
|
6450
6414
|
};
|
|
6451
6415
|
VisualElementDragControls.prototype.setProps = function (_a) {
|
|
6452
|
-
var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? defaultElastic : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
|
|
6453
|
-
this.props = __assign({ drag: drag,
|
|
6416
|
+
var _b = _a.drag, drag = _b === void 0 ? false : _b, _c = _a.dragDirectionLock, dragDirectionLock = _c === void 0 ? false : _c, _d = _a.dragPropagation, dragPropagation = _d === void 0 ? false : _d, _e = _a.dragConstraints, dragConstraints = _e === void 0 ? false : _e, _f = _a.dragElastic, dragElastic = _f === void 0 ? defaultElastic : _f, _g = _a.dragMomentum, dragMomentum = _g === void 0 ? true : _g, remainingProps = __rest$1(_a, ["drag", "dragDirectionLock", "dragPropagation", "dragConstraints", "dragElastic", "dragMomentum"]);
|
|
6417
|
+
this.props = __assign$1({ drag: drag,
|
|
6454
6418
|
dragDirectionLock: dragDirectionLock,
|
|
6455
6419
|
dragPropagation: dragPropagation,
|
|
6456
6420
|
dragConstraints: dragConstraints,
|
|
@@ -6524,7 +6488,7 @@
|
|
|
6524
6488
|
*/
|
|
6525
6489
|
var bounceStiffness = dragElastic ? 200 : 1000000;
|
|
6526
6490
|
var bounceDamping = dragElastic ? 40 : 10000000;
|
|
6527
|
-
var inertia = __assign(__assign({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
6491
|
+
var inertia = __assign$1(__assign$1({ type: "inertia", velocity: dragMomentum ? velocity[axis] : 0, bounceStiffness: bounceStiffness,
|
|
6528
6492
|
bounceDamping: bounceDamping, timeConstant: 750, restDelta: 1, restSpeed: 10 }, dragTransition), transition);
|
|
6529
6493
|
// If we're not animating on an externally-provided `MotionValue` we can use the
|
|
6530
6494
|
// component's animation controls which will handle interactions with whileHover (etc),
|
|
@@ -6690,7 +6654,7 @@
|
|
|
6690
6654
|
visualElement: visualElement,
|
|
6691
6655
|
});
|
|
6692
6656
|
});
|
|
6693
|
-
dragControls.setProps(__assign(__assign({}, props), { transformPagePoint: transformPagePoint }));
|
|
6657
|
+
dragControls.setProps(__assign$1(__assign$1({}, props), { transformPagePoint: transformPagePoint }));
|
|
6694
6658
|
// If we've been provided a DragControls for manual control over the drag gesture,
|
|
6695
6659
|
// subscribe this component to it on mount.
|
|
6696
6660
|
React.useEffect(function () { return groupDragControls && groupDragControls.subscribe(dragControls); }, [dragControls]);
|
|
@@ -6809,14 +6773,14 @@
|
|
|
6809
6773
|
*/
|
|
6810
6774
|
function resolveCSSVariables(visualElement, _a, transitionEnd) {
|
|
6811
6775
|
var _b;
|
|
6812
|
-
var target = __rest(_a, []);
|
|
6776
|
+
var target = __rest$1(_a, []);
|
|
6813
6777
|
var element = visualElement.getInstance();
|
|
6814
6778
|
if (!(element instanceof HTMLElement))
|
|
6815
6779
|
return { target: target, transitionEnd: transitionEnd };
|
|
6816
6780
|
// If `transitionEnd` isn't `undefined`, clone it. We could clone `target` and `transitionEnd`
|
|
6817
6781
|
// only if they change but I think this reads clearer and this isn't a performance-critical path.
|
|
6818
6782
|
if (transitionEnd) {
|
|
6819
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
6783
|
+
transitionEnd = __assign$1({}, transitionEnd);
|
|
6820
6784
|
}
|
|
6821
6785
|
// Go through existing `MotionValue`s and ensure any existing CSS variables are resolved
|
|
6822
6786
|
visualElement.forEachValue(function (value) {
|
|
@@ -6933,7 +6897,7 @@
|
|
|
6933
6897
|
process: correctBorderRadius,
|
|
6934
6898
|
};
|
|
6935
6899
|
var defaultScaleCorrectors = {
|
|
6936
|
-
borderRadius: __assign(__assign({}, borderCorrectionDefinition), { applyTo: [
|
|
6900
|
+
borderRadius: __assign$1(__assign$1({}, borderCorrectionDefinition), { applyTo: [
|
|
6937
6901
|
"borderTopLeftRadius",
|
|
6938
6902
|
"borderTopRightRadius",
|
|
6939
6903
|
"borderBottomLeftRadius",
|
|
@@ -6977,7 +6941,7 @@
|
|
|
6977
6941
|
_this.isAnimatingTree = false;
|
|
6978
6942
|
_this.animate = function (target, origin, _a) {
|
|
6979
6943
|
if (_a === void 0) { _a = {}; }
|
|
6980
|
-
var originBox = _a.originBox, targetBox = _a.targetBox, visibilityAction = _a.visibilityAction, shouldStackAnimate = _a.shouldStackAnimate, onComplete = _a.onComplete, prevParent = _a.prevParent, config = __rest(_a, ["originBox", "targetBox", "visibilityAction", "shouldStackAnimate", "onComplete", "prevParent"]);
|
|
6944
|
+
var originBox = _a.originBox, targetBox = _a.targetBox, visibilityAction = _a.visibilityAction, shouldStackAnimate = _a.shouldStackAnimate, onComplete = _a.onComplete, prevParent = _a.prevParent, config = __rest$1(_a, ["originBox", "targetBox", "visibilityAction", "shouldStackAnimate", "onComplete", "prevParent"]);
|
|
6981
6945
|
var _b = _this.props, visualElement = _b.visualElement, layout = _b.layout;
|
|
6982
6946
|
/**
|
|
6983
6947
|
* Early return if we've been instructed not to animate this render.
|
|
@@ -7061,7 +7025,7 @@
|
|
|
7061
7025
|
else if (boxHasMoved) {
|
|
7062
7026
|
// If the box has moved, animate between it's current visual state and its
|
|
7063
7027
|
// final state
|
|
7064
|
-
return _this.animateAxis(axis, target[axis], origin[axis], __assign(__assign({}, config), { isRelative: isRelative }));
|
|
7028
|
+
return _this.animateAxis(axis, target[axis], origin[axis], __assign$1(__assign$1({}, config), { isRelative: isRelative }));
|
|
7065
7029
|
}
|
|
7066
7030
|
else {
|
|
7067
7031
|
(_b = (_a = _this.stopAxisAnimation)[axis]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
@@ -7166,7 +7130,7 @@
|
|
|
7166
7130
|
}(React__namespace.Component));
|
|
7167
7131
|
function AnimateLayoutContextProvider(props) {
|
|
7168
7132
|
var _a = __read(usePresence(), 2), safeToRemove = _a[1];
|
|
7169
|
-
return React__namespace.createElement(Animate, __assign({}, props, { safeToRemove: safeToRemove }));
|
|
7133
|
+
return React__namespace.createElement(Animate, __assign$1({}, props, { safeToRemove: safeToRemove }));
|
|
7170
7134
|
}
|
|
7171
7135
|
function hasMoved(a, b) {
|
|
7172
7136
|
return (!isZeroBox(a) &&
|
|
@@ -7329,7 +7293,7 @@
|
|
|
7329
7293
|
function MeasureContextProvider(props) {
|
|
7330
7294
|
var syncLayout = React.useContext(SharedLayoutContext);
|
|
7331
7295
|
var framerSyncLayout = React.useContext(FramerTreeLayoutContext);
|
|
7332
|
-
return (React.createElement(Measure, __assign({}, props, { syncLayout: syncLayout, framerSyncLayout: framerSyncLayout })));
|
|
7296
|
+
return (React.createElement(Measure, __assign$1({}, props, { syncLayout: syncLayout, framerSyncLayout: framerSyncLayout })));
|
|
7333
7297
|
}
|
|
7334
7298
|
|
|
7335
7299
|
var layoutAnimations = {
|
|
@@ -7621,7 +7585,7 @@
|
|
|
7621
7585
|
* When values are removed from all animation props we need to search
|
|
7622
7586
|
* for a fallback value to animate to. These values are tracked in baseTarget.
|
|
7623
7587
|
*/
|
|
7624
|
-
var baseTarget = __assign({}, latestValues);
|
|
7588
|
+
var baseTarget = __assign$1({}, latestValues);
|
|
7625
7589
|
// Internal methods ========================
|
|
7626
7590
|
/**
|
|
7627
7591
|
* On mount, this will be hydrated with a callback to disconnect
|
|
@@ -7723,7 +7687,7 @@
|
|
|
7723
7687
|
*/
|
|
7724
7688
|
var isControllingVariants = checkIfControllingVariants(props);
|
|
7725
7689
|
var isVariantNode = checkIfVariantNode(props);
|
|
7726
|
-
var element = __assign(__assign({ treeType: treeType,
|
|
7690
|
+
var element = __assign$1(__assign$1({ treeType: treeType,
|
|
7727
7691
|
/**
|
|
7728
7692
|
* This is a mirror of the internal instance prop, which keeps
|
|
7729
7693
|
* VisualElement type-compatible with React's RefObject.
|
|
@@ -8335,8 +8299,8 @@
|
|
|
8335
8299
|
var checkAndConvertChangedValueTypes = function (visualElement, target, origin, transitionEnd) {
|
|
8336
8300
|
if (origin === void 0) { origin = {}; }
|
|
8337
8301
|
if (transitionEnd === void 0) { transitionEnd = {}; }
|
|
8338
|
-
target = __assign({}, target);
|
|
8339
|
-
transitionEnd = __assign({}, transitionEnd);
|
|
8302
|
+
target = __assign$1({}, target);
|
|
8303
|
+
transitionEnd = __assign$1({}, transitionEnd);
|
|
8340
8304
|
var targetPositionalKeys = Object.keys(target).filter(isPositionalKey);
|
|
8341
8305
|
// We want to remove any transform values that could affect the element's bounding box before
|
|
8342
8306
|
// it's measured. We'll reapply these later.
|
|
@@ -8518,7 +8482,7 @@
|
|
|
8518
8482
|
makeTargetAnimatable: function (element, _a, _b, isMounted) {
|
|
8519
8483
|
var transformValues = _b.transformValues;
|
|
8520
8484
|
if (isMounted === void 0) { isMounted = true; }
|
|
8521
|
-
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest(_a, ["transition", "transitionEnd"]);
|
|
8485
|
+
var transition = _a.transition, transitionEnd = _a.transitionEnd, target = __rest$1(_a, ["transition", "transitionEnd"]);
|
|
8522
8486
|
var origin = getOrigin$1(target, transition || {}, element);
|
|
8523
8487
|
/**
|
|
8524
8488
|
* If Framer has provided a function to convert `Color` etc value types, convert them
|
|
@@ -8537,7 +8501,7 @@
|
|
|
8537
8501
|
transitionEnd = parsed.transitionEnd;
|
|
8538
8502
|
target = parsed.target;
|
|
8539
8503
|
}
|
|
8540
|
-
return __assign({ transition: transition,
|
|
8504
|
+
return __assign$1({ transition: transition,
|
|
8541
8505
|
transitionEnd: transitionEnd }, target);
|
|
8542
8506
|
},
|
|
8543
8507
|
scrapeMotionValuesFromProps: scrapeMotionValuesFromProps$1,
|
|
@@ -8556,7 +8520,7 @@
|
|
|
8556
8520
|
};
|
|
8557
8521
|
var htmlVisualElement = visualElement(htmlConfig);
|
|
8558
8522
|
|
|
8559
|
-
var svgVisualElement = visualElement(__assign(__assign({}, htmlConfig), { getBaseTarget: function (props, key) {
|
|
8523
|
+
var svgVisualElement = visualElement(__assign$1(__assign$1({}, htmlConfig), { getBaseTarget: function (props, key) {
|
|
8560
8524
|
return props[key];
|
|
8561
8525
|
},
|
|
8562
8526
|
readValueFromInstance: function (domElement, key) {
|
|
@@ -8581,7 +8545,7 @@
|
|
|
8581
8545
|
: htmlVisualElement(options, { enableHardwareAcceleration: true });
|
|
8582
8546
|
};
|
|
8583
8547
|
|
|
8584
|
-
var featureBundle = __assign(__assign(__assign(__assign({}, animations), gestureAnimations), drag), layoutAnimations);
|
|
8548
|
+
var featureBundle = __assign$1(__assign$1(__assign$1(__assign$1({}, animations), gestureAnimations), drag), layoutAnimations);
|
|
8585
8549
|
/**
|
|
8586
8550
|
* HTML & SVG components, optimised for use with gestures and animation. These can be used as
|
|
8587
8551
|
* drop-in replacements for any HTML & SVG component, all CSS & SVG properties are supported.
|
|
@@ -25996,7 +25960,7 @@
|
|
|
25996
25960
|
dataset.forEach(function (d, i) {
|
|
25997
25961
|
var _a;
|
|
25998
25962
|
var yValue = d.y !== undefined ? d.y : yKeyValue && d[yKeyValue];
|
|
25999
|
-
tableData.rows[i] = __assign(__assign({}, tableData.rows[i]), (_a = { id: baseTableData.rows.length > 0 ? i + 1 : i }, _a[field] = yTickFormat && typeof yTickFormat === 'function'
|
|
25963
|
+
tableData.rows[i] = __assign$1(__assign$1({}, tableData.rows[i]), (_a = { id: baseTableData.rows.length > 0 ? i + 1 : i }, _a[field] = yTickFormat && typeof yTickFormat === 'function'
|
|
26000
25964
|
? yTickFormat(yValue)
|
|
26001
25965
|
: yValue, _a));
|
|
26002
25966
|
});
|
|
@@ -49584,13 +49548,13 @@
|
|
|
49584
49548
|
const VictoryScatter = addEvents(VictoryScatterBase);
|
|
49585
49549
|
|
|
49586
49550
|
var CustomAxisComponent = function (_a) {
|
|
49587
|
-
var events = _a.events, props = __rest(_a, ["events"]);
|
|
49551
|
+
var events = _a.events, props = __rest$1(_a, ["events"]);
|
|
49588
49552
|
return (React__namespace.createElement("g", null,
|
|
49589
|
-
React__namespace.createElement(LineSegment, __assign({}, props, { events: events, style: {
|
|
49553
|
+
React__namespace.createElement(LineSegment, __assign$1({}, props, { events: events, style: {
|
|
49590
49554
|
strokeWidth: '50px',
|
|
49591
49555
|
stroke: 'transparent',
|
|
49592
49556
|
} })),
|
|
49593
|
-
React__namespace.createElement(LineSegment, __assign({}, props, { events: events, style: {
|
|
49557
|
+
React__namespace.createElement(LineSegment, __assign$1({}, props, { events: events, style: {
|
|
49594
49558
|
strokeWidth: '1px',
|
|
49595
49559
|
stroke: 'black',
|
|
49596
49560
|
strokeOpacity: '0.2',
|
|
@@ -49598,11 +49562,11 @@
|
|
|
49598
49562
|
};
|
|
49599
49563
|
|
|
49600
49564
|
var CustomScatterDataComponent = function (props) {
|
|
49601
|
-
var datum = props.datum, pointIndex = props.index, lineIndex = props.lineIndex, pointRefArray = props.pointRefArray, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, other = __rest(props, ["datum", "index", "lineIndex", "pointRefArray", "registerPoint", "unregisterPoint"]);
|
|
49602
|
-
return (React__namespace.createElement(Point, __assign({}, other, { ariaLabel: datum.label, pathComponent: React__namespace.createElement(CustomPointComponent, { lineIndex: lineIndex, pointIndex: pointIndex, pointRefArray: pointRefArray, registerPoint: registerPoint, unregisterPoint: unregisterPoint }), role: "button", tabIndex: 0 })));
|
|
49565
|
+
var datum = props.datum, pointIndex = props.index, lineIndex = props.lineIndex, pointRefArray = props.pointRefArray, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, other = __rest$1(props, ["datum", "index", "lineIndex", "pointRefArray", "registerPoint", "unregisterPoint"]);
|
|
49566
|
+
return (React__namespace.createElement(Point, __assign$1({}, other, { ariaLabel: datum.label, pathComponent: React__namespace.createElement(CustomPointComponent, { lineIndex: lineIndex, pointIndex: pointIndex, pointRefArray: pointRefArray, registerPoint: registerPoint, unregisterPoint: unregisterPoint }), role: "button", tabIndex: 0 })));
|
|
49603
49567
|
};
|
|
49604
49568
|
var CustomPointComponent = function (props) {
|
|
49605
|
-
var lineIndex = props.lineIndex, pointRefArray = props.pointRefArray, pointIndex = props.pointIndex, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, other = __rest(props, ["lineIndex", "pointRefArray", "pointIndex", "registerPoint", "unregisterPoint"]);
|
|
49569
|
+
var lineIndex = props.lineIndex, pointRefArray = props.pointRefArray, pointIndex = props.pointIndex, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, other = __rest$1(props, ["lineIndex", "pointRefArray", "pointIndex", "registerPoint", "unregisterPoint"]);
|
|
49606
49570
|
var forceUpdate = useForceUpdate();
|
|
49607
49571
|
var ref = React__namespace.useRef(null);
|
|
49608
49572
|
React__namespace.useEffect(function () {
|
|
@@ -49612,7 +49576,7 @@
|
|
|
49612
49576
|
return unregisterPoint(pointRefArray, ref);
|
|
49613
49577
|
};
|
|
49614
49578
|
}, []);
|
|
49615
|
-
return (React__namespace.createElement("path", __assign({ ref: ref, "data-line-index": lineIndex, "data-point-index": pointIndex }, other)));
|
|
49579
|
+
return (React__namespace.createElement("path", __assign$1({ ref: ref, "data-line-index": lineIndex, "data-point-index": pointIndex }, other)));
|
|
49616
49580
|
};
|
|
49617
49581
|
|
|
49618
49582
|
var StyledGraphTooltip = styled(StyledTooltip)(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: normal;\n line-height: ", ";\n margin: 0;\n padding: 8px;\n width: fit-content;\n div {\n margin-bottom: 8px;\n display: flex;\n align-items: flex-start;\n &:last-of-type {\n margin-bottom: 0;\n }\n }\n"], ["\n background: ", ";\n border: 1px solid ", ";\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n box-sizing: border-box;\n color: ", ";\n font-size: ", ";\n font-weight: normal;\n line-height: ", ";\n margin: 0;\n padding: 8px;\n width: fit-content;\n div {\n margin-bottom: 8px;\n display: flex;\n align-items: flex-start;\n &:last-of-type {\n margin-bottom: 0;\n }\n }\n"])), function (props) { return props.theme.colors.neutral100; }, function (props) { return props.theme.colors.neutral300; }, function (props) { return props.theme.colors.neutral; }, function (props) { return props.theme.typeScale.size02.fontSize; }, function (props) { return props.theme.typeScale.size02.lineHeight; });
|
|
@@ -49644,7 +49608,7 @@
|
|
|
49644
49608
|
var templateObject_1$5, templateObject_2$5;
|
|
49645
49609
|
|
|
49646
49610
|
var LegendButton = React__namespace.forwardRef(function (props, ref) {
|
|
49647
|
-
props.children; var color = props.color, dataIndex = props.dataIndex, isHidden = props.isHidden, onClick = props.onClick, name = props.name, focusCurrentLine = props.focusCurrentLine, resetLineFocus = props.resetLineFocus, other = __rest(props, ["children", "color", "dataIndex", "isHidden", "onClick", "name", "focusCurrentLine", "resetLineFocus"]);
|
|
49611
|
+
props.children; var color = props.color, dataIndex = props.dataIndex, isHidden = props.isHidden, onClick = props.onClick, name = props.name, focusCurrentLine = props.focusCurrentLine, resetLineFocus = props.resetLineFocus, other = __rest$1(props, ["children", "color", "dataIndex", "isHidden", "onClick", "name", "focusCurrentLine", "resetLineFocus"]);
|
|
49648
49612
|
function handleClick() {
|
|
49649
49613
|
onClick && typeof onClick === 'function' && onClick(dataIndex);
|
|
49650
49614
|
if (!isHidden) {
|
|
@@ -49662,7 +49626,7 @@
|
|
|
49662
49626
|
}
|
|
49663
49627
|
var theme = React__namespace.useContext(ThemeContext);
|
|
49664
49628
|
return (React__namespace.createElement("div", { style: { display: 'inline-flex' }, onMouseEnter: handleOnMouseEnterOrFocus, onMouseLeave: resetLineFocus },
|
|
49665
|
-
React__namespace.createElement(Checkbox, __assign({ checked: !isHidden, color: color, containerStyle: {
|
|
49629
|
+
React__namespace.createElement(Checkbox, __assign$1({ checked: !isHidden, color: color, containerStyle: {
|
|
49666
49630
|
alignItems: 'center',
|
|
49667
49631
|
border: '0',
|
|
49668
49632
|
boxShadow: '0 0 0',
|
|
@@ -49732,7 +49696,7 @@
|
|
|
49732
49696
|
stroke: 'transparent',
|
|
49733
49697
|
strokeWidth: 0,
|
|
49734
49698
|
};
|
|
49735
|
-
var centeredLabelStyles = __assign({ textAnchor: 'middle' }, baseLabelStyles);
|
|
49699
|
+
var centeredLabelStyles = __assign$1({ textAnchor: 'middle' }, baseLabelStyles);
|
|
49736
49700
|
// *
|
|
49737
49701
|
// * Strokes
|
|
49738
49702
|
// *
|
|
@@ -49740,13 +49704,13 @@
|
|
|
49740
49704
|
var strokeLinecap = 'round';
|
|
49741
49705
|
var strokeLinejoin = 'round';
|
|
49742
49706
|
var magmaTheme = {
|
|
49743
|
-
area: __assign({ style: {
|
|
49707
|
+
area: __assign$1({ style: {
|
|
49744
49708
|
data: {
|
|
49745
49709
|
fill: grey900,
|
|
49746
49710
|
},
|
|
49747
49711
|
labels: baseLabelStyles,
|
|
49748
49712
|
} }, baseProps),
|
|
49749
|
-
axis: __assign({ style: {
|
|
49713
|
+
axis: __assign$1({ style: {
|
|
49750
49714
|
axis: {
|
|
49751
49715
|
fill: 'transparent',
|
|
49752
49716
|
stroke: blueGrey300,
|
|
@@ -49754,7 +49718,7 @@
|
|
|
49754
49718
|
strokeLinecap: strokeLinecap,
|
|
49755
49719
|
strokeLinejoin: strokeLinejoin,
|
|
49756
49720
|
},
|
|
49757
|
-
axisLabel: __assign(__assign({}, centeredLabelStyles), { padding: padding, stroke: 'transparent' }),
|
|
49721
|
+
axisLabel: __assign$1(__assign$1({}, centeredLabelStyles), { padding: padding, stroke: 'transparent' }),
|
|
49758
49722
|
grid: {
|
|
49759
49723
|
fill: 'none',
|
|
49760
49724
|
stroke: '#dfdfdf',
|
|
@@ -49771,7 +49735,7 @@
|
|
|
49771
49735
|
strokeLinecap: strokeLinecap,
|
|
49772
49736
|
strokeLinejoin: strokeLinejoin,
|
|
49773
49737
|
},
|
|
49774
|
-
tickLabels: __assign(__assign({}, baseLabelStyles), { fill: blueGrey700 }),
|
|
49738
|
+
tickLabels: __assign$1(__assign$1({}, baseLabelStyles), { fill: blueGrey700 }),
|
|
49775
49739
|
} }, baseProps),
|
|
49776
49740
|
polarDependentAxis: {
|
|
49777
49741
|
style: {
|
|
@@ -49782,7 +49746,7 @@
|
|
|
49782
49746
|
},
|
|
49783
49747
|
},
|
|
49784
49748
|
},
|
|
49785
|
-
bar: __assign({ style: {
|
|
49749
|
+
bar: __assign$1({ style: {
|
|
49786
49750
|
data: {
|
|
49787
49751
|
fill: blueGrey700,
|
|
49788
49752
|
padding: padding,
|
|
@@ -49790,29 +49754,29 @@
|
|
|
49790
49754
|
},
|
|
49791
49755
|
labels: baseLabelStyles,
|
|
49792
49756
|
} }, baseProps),
|
|
49793
|
-
boxplot: __assign({ style: {
|
|
49757
|
+
boxplot: __assign$1({ style: {
|
|
49794
49758
|
max: { padding: padding, stroke: blueGrey700, strokeWidth: 1 },
|
|
49795
|
-
maxLabels: __assign(__assign({}, baseLabelStyles), { padding: 3 }),
|
|
49759
|
+
maxLabels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 3 }),
|
|
49796
49760
|
median: { padding: padding, stroke: blueGrey700, strokeWidth: 1 },
|
|
49797
|
-
medianLabels: __assign(__assign({}, baseLabelStyles), { padding: 3 }),
|
|
49761
|
+
medianLabels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 3 }),
|
|
49798
49762
|
min: { padding: padding, stroke: blueGrey700, strokeWidth: 1 },
|
|
49799
|
-
minLabels: __assign(__assign({}, baseLabelStyles), { padding: 3 }),
|
|
49763
|
+
minLabels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 3 }),
|
|
49800
49764
|
q1: { padding: padding, fill: blueGrey700 },
|
|
49801
|
-
q1Labels: __assign(__assign({}, baseLabelStyles), { padding: 3 }),
|
|
49765
|
+
q1Labels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 3 }),
|
|
49802
49766
|
q3: { padding: padding, fill: blueGrey700 },
|
|
49803
|
-
q3Labels: __assign(__assign({}, baseLabelStyles), { padding: 3 }),
|
|
49767
|
+
q3Labels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 3 }),
|
|
49804
49768
|
}, boxWidth: 20 }, baseProps),
|
|
49805
|
-
candlestick: __assign({ style: {
|
|
49769
|
+
candlestick: __assign$1({ style: {
|
|
49806
49770
|
data: {
|
|
49807
49771
|
stroke: blueGrey700,
|
|
49808
49772
|
},
|
|
49809
|
-
labels: __assign(__assign({}, baseLabelStyles), { padding: 5 }),
|
|
49773
|
+
labels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 5 }),
|
|
49810
49774
|
}, candleColors: {
|
|
49811
49775
|
positive: '#ffffff',
|
|
49812
49776
|
negative: blueGrey700,
|
|
49813
49777
|
} }, baseProps),
|
|
49814
49778
|
chart: baseProps,
|
|
49815
|
-
errorbar: __assign({ borderWidth: 8, style: {
|
|
49779
|
+
errorbar: __assign$1({ borderWidth: 8, style: {
|
|
49816
49780
|
data: {
|
|
49817
49781
|
fill: 'transparent',
|
|
49818
49782
|
opacity: 1,
|
|
@@ -49821,8 +49785,8 @@
|
|
|
49821
49785
|
},
|
|
49822
49786
|
labels: baseLabelStyles,
|
|
49823
49787
|
} }, baseProps),
|
|
49824
|
-
group: __assign({ colorScale: colors }, baseProps),
|
|
49825
|
-
histogram: __assign({ style: {
|
|
49788
|
+
group: __assign$1({ colorScale: colors }, baseProps),
|
|
49789
|
+
histogram: __assign$1({ style: {
|
|
49826
49790
|
data: {
|
|
49827
49791
|
fill: blueGrey700,
|
|
49828
49792
|
stroke: grey900,
|
|
@@ -49840,10 +49804,10 @@
|
|
|
49840
49804
|
type: 'circle',
|
|
49841
49805
|
},
|
|
49842
49806
|
labels: baseLabelStyles,
|
|
49843
|
-
title: __assign(__assign({}, baseLabelStyles), { padding: 5 }),
|
|
49807
|
+
title: __assign$1(__assign$1({}, baseLabelStyles), { padding: 5 }),
|
|
49844
49808
|
},
|
|
49845
49809
|
},
|
|
49846
|
-
line: __assign({ style: {
|
|
49810
|
+
line: __assign$1({ style: {
|
|
49847
49811
|
data: {
|
|
49848
49812
|
fill: 'transparent',
|
|
49849
49813
|
opacity: 1,
|
|
@@ -49852,15 +49816,15 @@
|
|
|
49852
49816
|
},
|
|
49853
49817
|
labels: baseLabelStyles,
|
|
49854
49818
|
} }, baseProps),
|
|
49855
|
-
pie: __assign({ colorScale: colors, style: {
|
|
49819
|
+
pie: __assign$1({ colorScale: colors, style: {
|
|
49856
49820
|
data: {
|
|
49857
49821
|
padding: padding,
|
|
49858
49822
|
stroke: blueGrey50,
|
|
49859
49823
|
strokeWidth: 1,
|
|
49860
49824
|
},
|
|
49861
|
-
labels: __assign(__assign({}, baseLabelStyles), { padding: 20 }),
|
|
49825
|
+
labels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 20 }),
|
|
49862
49826
|
} }, baseProps),
|
|
49863
|
-
scatter: __assign({ style: {
|
|
49827
|
+
scatter: __assign$1({ style: {
|
|
49864
49828
|
data: {
|
|
49865
49829
|
fill: blueGrey700,
|
|
49866
49830
|
opacity: 1,
|
|
@@ -49869,9 +49833,9 @@
|
|
|
49869
49833
|
},
|
|
49870
49834
|
labels: baseLabelStyles,
|
|
49871
49835
|
} }, baseProps),
|
|
49872
|
-
stack: __assign({ colorScale: colors }, baseProps),
|
|
49836
|
+
stack: __assign$1({ colorScale: colors }, baseProps),
|
|
49873
49837
|
tooltip: {
|
|
49874
|
-
style: __assign(__assign({}, baseLabelStyles), { padding: 0, pointerEvents: 'none' }),
|
|
49838
|
+
style: __assign$1(__assign$1({}, baseLabelStyles), { padding: 0, pointerEvents: 'none' }),
|
|
49875
49839
|
flyoutStyle: {
|
|
49876
49840
|
stroke: grey900,
|
|
49877
49841
|
strokeWidth: 1,
|
|
@@ -49882,13 +49846,13 @@
|
|
|
49882
49846
|
cornerRadius: 5,
|
|
49883
49847
|
pointerLength: 10,
|
|
49884
49848
|
},
|
|
49885
|
-
voronoi: __assign({ style: {
|
|
49849
|
+
voronoi: __assign$1({ style: {
|
|
49886
49850
|
data: {
|
|
49887
49851
|
fill: 'transparent',
|
|
49888
49852
|
stroke: 'transparent',
|
|
49889
49853
|
strokeWidth: 0,
|
|
49890
49854
|
},
|
|
49891
|
-
labels: __assign(__assign({}, baseLabelStyles), { padding: 5, pointerEvents: 'none' }),
|
|
49855
|
+
labels: __assign$1(__assign$1({}, baseLabelStyles), { padding: 5, pointerEvents: 'none' }),
|
|
49892
49856
|
flyout: {
|
|
49893
49857
|
stroke: grey900,
|
|
49894
49858
|
strokeWidth: 1,
|
|
@@ -49903,7 +49867,7 @@
|
|
|
49903
49867
|
var DataLegendsContainer = styled.div(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n padding-bottom: 24px;\n"], ["\n padding-bottom: 24px;\n"])));
|
|
49904
49868
|
var DataLegendsDescription = styled.p(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n"], ["\n color: ", ";\n font-size: ", ";\n"])), function (props) { return props.theme.colors.neutral; }, function (props) { return props.theme.typeScale.size02.fontSize; });
|
|
49905
49869
|
function LineChart(props) {
|
|
49906
|
-
var _a = props.componentProps, _b = _a === void 0 ? {} : _a, _c = _b.chart, chart = _c === void 0 ? {} : _c, _d = _b.line, line = _d === void 0 ? {} : _d, _e = _b.scatter, scatter = _e === void 0 ? {} : _e, _f = _b.xAxis, _g = _f === void 0 ? { style: {} } : _f, _h = _g.style, _j = _h === void 0 ? {} : _h, _k = _j.axisLabel, xAxisLabel = _k === void 0 ? undefined : _k, _l = _j.tickLabels, xTickLabels = _l === void 0 ? undefined : _l, xRest = __rest(_j, ["axisLabel", "tickLabels"]), xAxisOther = __rest(_g, ["style"]), _m = _b.yAxis, _o = _m === void 0 ? { style: {} } : _m, _p = _o.style, _q = _p === void 0 ? {} : _p, _r = _q.axisLabel, yAxisLabel = _r === void 0 ? undefined : _r, _s = _q.tickLabels, yTickLabels = _s === void 0 ? undefined : _s, yRest = __rest(_q, ["axisLabel", "tickLabels"]), yAxisOther = __rest(_o, ["style"]), _t = props.data, data = _t === void 0 ? [] : _t, lastFocusedScatterPoint = props.lastFocusedScatterPoint, pointRefArray = props.pointRefArray, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, tabRef = props.tabRef, x = props.x, y = props.y;
|
|
49870
|
+
var _a = props.componentProps, _b = _a === void 0 ? {} : _a, _c = _b.chart, chart = _c === void 0 ? {} : _c, _d = _b.line, line = _d === void 0 ? {} : _d, _e = _b.scatter, scatter = _e === void 0 ? {} : _e, _f = _b.xAxis, _g = _f === void 0 ? { style: {} } : _f, _h = _g.style, _j = _h === void 0 ? {} : _h, _k = _j.axisLabel, xAxisLabel = _k === void 0 ? undefined : _k, _l = _j.tickLabels, xTickLabels = _l === void 0 ? undefined : _l, xRest = __rest$1(_j, ["axisLabel", "tickLabels"]), xAxisOther = __rest$1(_g, ["style"]), _m = _b.yAxis, _o = _m === void 0 ? { style: {} } : _m, _p = _o.style, _q = _p === void 0 ? {} : _p, _r = _q.axisLabel, yAxisLabel = _r === void 0 ? undefined : _r, _s = _q.tickLabels, yTickLabels = _s === void 0 ? undefined : _s, yRest = __rest$1(_q, ["axisLabel", "tickLabels"]), yAxisOther = __rest$1(_o, ["style"]), _t = props.data, data = _t === void 0 ? [] : _t, lastFocusedScatterPoint = props.lastFocusedScatterPoint, pointRefArray = props.pointRefArray, registerPoint = props.registerPoint, unregisterPoint = props.unregisterPoint, tabRef = props.tabRef, x = props.x, y = props.y;
|
|
49907
49871
|
var theme = React__namespace.useContext(ThemeContext);
|
|
49908
49872
|
var i18n = React__namespace.useContext(I18nContext);
|
|
49909
49873
|
var _u = React__namespace.useState([]), hiddenData = _u[0], setHiddenData = _u[1];
|
|
@@ -49930,8 +49894,8 @@
|
|
|
49930
49894
|
};
|
|
49931
49895
|
}, [showTooltip]);
|
|
49932
49896
|
var scatterNames = data.map(function (_, i) { return "scatter-" + i; });
|
|
49933
|
-
var xAxisStyles = __assign({ tickLabels: __assign({ color: '#3f3f3f', fontSize: 12 }, xTickLabels), axisLabel: __assign({ color: '#3f3f3f', padding: 44, fontSize: 14, fontWeight: 'bold' }, xAxisLabel) }, xRest);
|
|
49934
|
-
var yAxisStyles = __assign({ tickLabels: __assign({ fontSize: 12 }, yTickLabels), axisLabel: __assign({ color: '#3f3f3f', padding: 64, fontSize: 14, fontWeight: 'bold' }, yAxisLabel) }, yRest);
|
|
49897
|
+
var xAxisStyles = __assign$1({ tickLabels: __assign$1({ color: '#3f3f3f', fontSize: 12 }, xTickLabels), axisLabel: __assign$1({ color: '#3f3f3f', padding: 44, fontSize: 14, fontWeight: 'bold' }, xAxisLabel) }, xRest);
|
|
49898
|
+
var yAxisStyles = __assign$1({ tickLabels: __assign$1({ fontSize: 12 }, yTickLabels), axisLabel: __assign$1({ color: '#3f3f3f', padding: 64, fontSize: 14, fontWeight: 'bold' }, yAxisLabel) }, yRest);
|
|
49935
49899
|
function updateWidth() {
|
|
49936
49900
|
containerRef.current && setWidth(containerRef.current.clientWidth);
|
|
49937
49901
|
}
|
|
@@ -50081,11 +50045,11 @@
|
|
|
50081
50045
|
}
|
|
50082
50046
|
return (React__namespace.createElement(LineChartContainer, { ref: containerRef },
|
|
50083
50047
|
React__namespace.createElement(VictoryChartContainer, { onKeyDown: handleChartContainerKeyDown },
|
|
50084
|
-
React__namespace.createElement(VictoryChart, __assign({ domainPadding: 32, height: 400, padding: { top: 0, left: 80, right: 0, bottom: 62 }, theme: magmaTheme, width: width, containerComponent: React__namespace.createElement(VictoryVoronoiContainer, { name: "xAxisGroupLabel", voronoiBlacklist: scatterNames, voronoiDimension: "x", labels: hoveringOnXAxisLine && showXAxisLabel ? function () { return " "; } : undefined, labelComponent: showXAxisLabel ? (React__namespace.createElement(VictoryTooltip, { flyoutComponent: React__namespace.createElement(AxisTooltip, { dataLength: data.length, hiddenData: hiddenData }) })) : undefined, role: "presentation", voronoiPadding: 32 }) }, chart),
|
|
50085
|
-
React__namespace.createElement(VictoryAxis, __assign({}, yAxisOther, { dependentAxis: true, style: yAxisStyles })),
|
|
50048
|
+
React__namespace.createElement(VictoryChart, __assign$1({ domainPadding: 32, height: 400, padding: { top: 0, left: 80, right: 0, bottom: 62 }, theme: magmaTheme, width: width, containerComponent: React__namespace.createElement(VictoryVoronoiContainer, { name: "xAxisGroupLabel", voronoiBlacklist: scatterNames, voronoiDimension: "x", labels: hoveringOnXAxisLine && showXAxisLabel ? function () { return " "; } : undefined, labelComponent: showXAxisLabel ? (React__namespace.createElement(VictoryTooltip, { flyoutComponent: React__namespace.createElement(AxisTooltip, { dataLength: data.length, hiddenData: hiddenData }) })) : undefined, role: "presentation", voronoiPadding: 32 }) }, chart),
|
|
50049
|
+
React__namespace.createElement(VictoryAxis, __assign$1({}, yAxisOther, { dependentAxis: true, style: yAxisStyles })),
|
|
50086
50050
|
data.map(function (_a, i) {
|
|
50087
50051
|
var dataset = _a.data;
|
|
50088
|
-
return !hiddenData.includes(i) && (React__namespace.createElement(VictoryLine, __assign({ style: {
|
|
50052
|
+
return !hiddenData.includes(i) && (React__namespace.createElement(VictoryLine, __assign$1({ style: {
|
|
50089
50053
|
data: {
|
|
50090
50054
|
opacity: setLineOpacity(i),
|
|
50091
50055
|
stroke: theme.iterableColors[i],
|
|
@@ -50094,13 +50058,13 @@
|
|
|
50094
50058
|
parent: { border: theme.colors.neutral400 },
|
|
50095
50059
|
}, key: "line" + i, data: dataset, labelComponent: React__namespace.createElement(React__namespace.Fragment, null), x: x, y: y }, line)));
|
|
50096
50060
|
}),
|
|
50097
|
-
React__namespace.createElement(VictoryAxis, __assign({}, xAxisOther, { style: xAxisStyles, gridComponent: React__namespace.createElement(CustomAxisComponent, { events: {
|
|
50061
|
+
React__namespace.createElement(VictoryAxis, __assign$1({}, xAxisOther, { style: xAxisStyles, gridComponent: React__namespace.createElement(CustomAxisComponent, { events: {
|
|
50098
50062
|
onMouseEnter: function () { return setHoveringOnXAxisLine(true); },
|
|
50099
50063
|
onMouseLeave: function () { return setHoveringOnXAxisLine(false); },
|
|
50100
50064
|
} }) })),
|
|
50101
50065
|
data.map(function (_a, i) {
|
|
50102
50066
|
var dataset = _a.data;
|
|
50103
|
-
return !hiddenData.includes(i) && (React__namespace.createElement(VictoryScatter, __assign({ name: "scatter-" + i, events: [
|
|
50067
|
+
return !hiddenData.includes(i) && (React__namespace.createElement(VictoryScatter, __assign$1({ name: "scatter-" + i, events: [
|
|
50104
50068
|
{
|
|
50105
50069
|
target: 'data',
|
|
50106
50070
|
eventHandlers: {
|
|
@@ -50162,7 +50126,7 @@
|
|
|
50162
50126
|
stroke: theme.iterableColors[i],
|
|
50163
50127
|
strokeWidth: 2,
|
|
50164
50128
|
},
|
|
50165
|
-
}, size: 5, data: dataset.map(function (datum, index) { return (__assign({ index: index, lineIndex: i }, datum)); }), dataComponent: React__namespace.createElement(CustomScatterDataComponent, { lineIndex: i, pointRefArray: pointRefArray, registerPoint: registerPoint, unregisterPoint: unregisterPoint }), labels: function () { return ''; }, labelComponent: React__namespace.createElement(VictoryTooltip, { text: "", flyoutComponent: React__namespace.createElement(GraphTooltip, { index: i, showTooltip: showTooltip }) }), key: "scatter" + i, x: x, y: y }, scatter)));
|
|
50129
|
+
}, size: 5, data: dataset.map(function (datum, index) { return (__assign$1({ index: index, lineIndex: i }, datum)); }), dataComponent: React__namespace.createElement(CustomScatterDataComponent, { lineIndex: i, pointRefArray: pointRefArray, registerPoint: registerPoint, unregisterPoint: unregisterPoint }), labels: function () { return ''; }, labelComponent: React__namespace.createElement(VictoryTooltip, { text: "", flyoutComponent: React__namespace.createElement(GraphTooltip, { index: i, showTooltip: showTooltip }) }), key: "scatter" + i, x: x, y: y }, scatter)));
|
|
50166
50130
|
}))),
|
|
50167
50131
|
React__namespace.createElement(DataLegendsContainer, null,
|
|
50168
50132
|
React__namespace.createElement(DataLegendsDescription, { theme: theme }, i18n.charts.line.dataLegendsLabel),
|
|
@@ -50187,7 +50151,7 @@
|
|
|
50187
50151
|
});
|
|
50188
50152
|
function BaseChart(props, ref) {
|
|
50189
50153
|
var _a, _b, _c, _d, _e, _f;
|
|
50190
|
-
var description = props.description, title = props.title; props.testId; var type = props.type, other = __rest(props, ["description", "title", "testId", "type"]);
|
|
50154
|
+
var description = props.description, title = props.title; props.testId; var type = props.type, other = __rest$1(props, ["description", "title", "testId", "type"]);
|
|
50191
50155
|
var keyboardInstructionsRef = React__namespace.useRef(null);
|
|
50192
50156
|
var lastFocusedScatterPoint = React__namespace.useRef(null);
|
|
50193
50157
|
var theme = React__namespace.useContext(ThemeContext);
|
|
@@ -50237,7 +50201,7 @@
|
|
|
50237
50201
|
React__namespace.createElement(Paragraph, { visualStyle: TypographyVisualStyle.headingXSmall, style: { margin: '0 0 16px' } }, i18n.charts.line.keyboardInstructionsHeader),
|
|
50238
50202
|
i18n.charts.line.keyboardInstructions)))),
|
|
50239
50203
|
React__namespace.createElement(TabPanelsContainer, null,
|
|
50240
|
-
React__namespace.createElement(StyledTabPanel, { theme: theme }, type === 'line' && (React__namespace.createElement(LineChart, __assign({}, other, { lastFocusedScatterPoint: lastFocusedScatterPoint, pointRefArray: pointRefArray, registerPoint: registerPoint, tabRef: keyboardInstructionsRef, unregisterPoint: unregisterPoint })))),
|
|
50204
|
+
React__namespace.createElement(StyledTabPanel, { theme: theme }, type === 'line' && (React__namespace.createElement(LineChart, __assign$1({}, other, { lastFocusedScatterPoint: lastFocusedScatterPoint, pointRefArray: pointRefArray, registerPoint: registerPoint, tabRef: keyboardInstructionsRef, unregisterPoint: unregisterPoint })))),
|
|
50241
50205
|
React__namespace.createElement(StyledTabPanel, { theme: theme },
|
|
50242
50206
|
React__namespace.createElement(ChartDataTable$1, { data: other.data, xData: {
|
|
50243
50207
|
keyValue: other.x,
|
|
@@ -52224,7 +52188,7 @@
|
|
|
52224
52188
|
React__namespace.createElement(ChartMoreOptionsButton, { icon: React__namespace.createElement(MoreVertIcon, { size: 20 }), isInverse: isInverse }, moreOptionsContent))));
|
|
52225
52189
|
}
|
|
52226
52190
|
var CarbonChart = React__namespace.forwardRef(function (props, ref) {
|
|
52227
|
-
var testId = props.testId, isInverseProp = props.isInverse, type = props.type, dataSet = props.dataSet, options = props.options, additionalContent = props.additionalContent, ariaLabel = props.ariaLabel, chartToolbar = props.chartToolbar, rest = __rest(props, ["testId", "isInverse", "type", "dataSet", "options", "additionalContent", "ariaLabel", "chartToolbar"]);
|
|
52191
|
+
var testId = props.testId, isInverseProp = props.isInverse, type = props.type, dataSet = props.dataSet, options = props.options, additionalContent = props.additionalContent, ariaLabel = props.ariaLabel, chartToolbar = props.chartToolbar, rest = __rest$1(props, ["testId", "isInverse", "type", "dataSet", "options", "additionalContent", "ariaLabel", "chartToolbar"]);
|
|
52228
52192
|
var theme = React__namespace.useContext(ThemeContext);
|
|
52229
52193
|
var isInverse = useIsInverse(isInverseProp);
|
|
52230
52194
|
var toolbarI18n = useChartToolbarI18n();
|
|
@@ -52449,12 +52413,12 @@
|
|
|
52449
52413
|
theme.chartColorsInverse,
|
|
52450
52414
|
isInverse,
|
|
52451
52415
|
]);
|
|
52452
|
-
var newOptions = __assign(__assign(__assign({}, options), { theme: isInverse ? ChartTheme.G100 : ChartTheme.WHITE, color: {
|
|
52416
|
+
var newOptions = __assign$1(__assign$1(__assign$1({}, options), { theme: isInverse ? ChartTheme.G100 : ChartTheme.WHITE, color: {
|
|
52453
52417
|
scale: colorScale,
|
|
52454
|
-
}, tooltip: __assign(__assign({}, ((options === null || options === void 0 ? void 0 : options.tooltip) || {})), { truncation: {
|
|
52418
|
+
}, tooltip: __assign$1(__assign$1({}, ((options === null || options === void 0 ? void 0 : options.tooltip) || {})), { truncation: {
|
|
52455
52419
|
type: 'none',
|
|
52456
52420
|
} }) }), (chartToolbar
|
|
52457
|
-
? __assign({ toolbar: { enabled: false }, title: chartTitle }, (options.fileDownload
|
|
52421
|
+
? __assign$1({ toolbar: { enabled: false }, title: chartTitle }, (options.fileDownload
|
|
52458
52422
|
? {}
|
|
52459
52423
|
: { fileDownload: { fileName: chartTitle } })) : {}));
|
|
52460
52424
|
var ChartType = ALL_CHARTS[type];
|
|
@@ -52661,7 +52625,7 @@
|
|
|
52661
52625
|
React__namespace.createElement(Announce, null, legendAnnouncement)),
|
|
52662
52626
|
React__namespace.createElement(VisuallyHidden, null,
|
|
52663
52627
|
React__namespace.createElement("div", { "aria-live": "polite", ref: legendGroupAnnounceRef })),
|
|
52664
|
-
React__namespace.createElement(CarbonChartWrapper, __assign({ "data-testid": testId, isInverse: isInverse, theme: theme, className: "carbon-chart-wrapper" + (chartToolbar ? ' has-magma-toolbar' : ''), groupsLength: groupsLength < 6 ? groupsLength : 14, role: "region", "aria-label": ariaLabel || chartTitle, "aria-roledescription": "chart" }, rest),
|
|
52628
|
+
React__namespace.createElement(CarbonChartWrapper, __assign$1({ "data-testid": testId, isInverse: isInverse, theme: theme, className: "carbon-chart-wrapper" + (chartToolbar ? ' has-magma-toolbar' : ''), groupsLength: groupsLength < 6 ? groupsLength : 14, role: "region", "aria-label": ariaLabel || chartTitle, "aria-roledescription": "chart" }, rest),
|
|
52665
52629
|
React__namespace.createElement(ChartContentWrapper, { className: "carbon-chart-content" },
|
|
52666
52630
|
chartToolbar && (
|
|
52667
52631
|
/*
|