@carto/meridian-ds 0.1.0 → 0.1.1-alpha.1
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/CHANGELOG.md +1 -1
- package/dist/{Alert-Dd9Op7y8.js → Alert-BawVDNyY.js} +158 -172
- package/dist/Alert-CrvY-jFA.cjs +4 -0
- package/dist/{arrow-drop-icon-CHxPlPIN.js → arrow-drop-icon-Dau5xh-6.js} +4 -4
- package/dist/arrow-drop-icon-XN9k9ZtW.cjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +472 -489
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +28 -28
- package/dist/paletteUtils-BEwZhrLg.js +262 -0
- package/dist/paletteUtils-DLQVT9qo.cjs +1 -0
- package/dist/{search-icon-FnUa1LqH.js → search-icon-8Q4AttLX.js} +8 -8
- package/dist/search-icon-CyudR_26.cjs +1 -0
- package/dist/theme/index.cjs +1 -76
- package/dist/theme/index.js +360 -1548
- package/dist/theme-constants-DL1946wP.js +544 -0
- package/dist/theme-constants-PqPZ2w1q.cjs +9 -0
- package/dist/widgets/index.cjs +21 -21
- package/dist/widgets/index.js +2801 -2854
- package/package.json +1 -3
- package/dist/Alert-l8e3Fw5e.cjs +0 -4
- package/dist/arrow-drop-icon-BGl72Unt.cjs +0 -1
- package/dist/createSvgIcon-BhsoeSAN.cjs +0 -68
- package/dist/createSvgIcon-CcKa-Sbo.js +0 -3929
- package/dist/jsx-runtime-B6kdoens.js +0 -634
- package/dist/jsx-runtime-Cek9Ww4S.cjs +0 -30
- package/dist/paletteUtils-B489IFFw.js +0 -320
- package/dist/paletteUtils-DELR0VRh.cjs +0 -3
- package/dist/search-icon-DHF2JDWR.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../arrow-drop-icon-XN9k9ZtW.cjs"),c=require("react/jsx-runtime"),a=require("@mui/material"),h=require("../search-icon-CyudR_26.cjs");function r(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{d:"M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"})})}function v(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{d:"m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.785-2.87a1 1 0 0 0-.12-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14zM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903z"})})}function z(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{d:"M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.669c-.012.437-.033.86-.062 1.265l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.987-1.122l-.473-.375c-.401-.319-.64-.473-.888-.566a4.894 4.894 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.103 9.103 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.099.237.05.433.102c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.134-7-7-7a1 1 0 0 1 0-2zM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4z"})})}function e(n){return c.jsxs(a.SvgIcon,{...n,children:[c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z",fillOpacity:".6"}),c.jsx("path",{d:"M9 15h2v2H9v-2zm0-4h2v2H9v-2zm0-4h2v2H9V7zm-4 8h2v2H5v-2zm0-4h2v2H5v-2zm0-4h2v2H5V7zm12 8h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V7zm-2 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V9zm0-4h2v2h-2V5zM7 17h2v2H7v-2zm0-4h2v2H7v-2zm0-4h2v2H7V9zm0-4h2v2H7V5zm6 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V7zm-2 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V9zm0-4h2v2h-2V5z",fillOpacity:".36"})]})}function t(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{d:"M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-2.829 1a2.995 2.995 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342zm-2.463-5.707 3.998 4a3.012 3.012 0 0 0-1.414 1.414l-4-3.999a3.013 3.013 0 0 0 1.31-1.214l.106-.201zM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.995 2.995 0 0 0-2.002 0V6.83zM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942zM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9.171.998a2.995 2.995 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342z"})})}function l(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{d:"M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-2.829 1a2.994 2.994 0 0 0-.17.974l-.001.052.007.183c.02.275.075.54.164.79H6.829a2.995 2.995 0 0 0 0-2h10.342zM2.998 6.828a2.995 2.995 0 0 0 2.002 0v10.342a2.995 2.995 0 0 0-2.002 0V6.83zm16.001 0a2.995 2.995 0 0 0 2 0v10.342a2.995 2.995 0 0 0-2 0V6.829zM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm13.171.998a2.994 2.994 0 0 0-.17.976L17 4.026l.007.183c.02.275.075.54.164.79H6.829a2.995 2.995 0 0 0 0-2H17.17z"})})}function m(n){return c.jsx(a.SvgIcon,{...n,children:c.jsx("path",{transform:"translate(0, 2.000000)",d:"M7.5,13.3333333 L12.5,13.3333333 L12.5,8.33333333 L15.8333333,8.33333333 L10,2.5 L4.16666667,8.33333333 L7.5,8.33333333 L7.5,13.3333333 Z M4.16666667,15 L15.8333333,15 L15.8333333,16.6666667 L4.16666667,16.6666667 L4.16666667,15 Z",id:"path-1"})})}exports.ArrowDropIcon=o.ArrowDropIcon;exports.GraphLineIcon=h.GraphLineIcon;exports.OpacityIcon=h.OpacityIcon;exports.SearchIcon=h.SearchIcon;exports.CircleIcon=r;exports.CursorIcon=v;exports.LassoIcon=z;exports.LayerIcon=e;exports.PolygonIcon=t;exports.RectangeIcon=l;exports.UploadIcon=m;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
1
|
+
import { A as d } from "../arrow-drop-icon-Dau5xh-6.js";
|
|
2
|
+
import { jsx as a, jsxs as z } from "react/jsx-runtime";
|
|
3
3
|
import { SvgIcon as c } from "@mui/material";
|
|
4
|
-
import { G as
|
|
5
|
-
function v(h) {
|
|
6
|
-
return /* @__PURE__ */ a.jsx(c, { ...h, children: /* @__PURE__ */ a.jsx("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4z" }) });
|
|
7
|
-
}
|
|
4
|
+
import { G as u, O as L, S as V } from "../search-icon-8Q4AttLX.js";
|
|
8
5
|
function m(h) {
|
|
9
|
-
return /* @__PURE__ */ a
|
|
6
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4z" }) });
|
|
10
7
|
}
|
|
11
8
|
function r(h) {
|
|
12
|
-
return /* @__PURE__ */ a
|
|
9
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a("path", { d: "m10.083 19.394.057.113a1 1 0 0 0 1.72.007l2.869-4.786 4.785-2.87a1 1 0 0 0-.12-1.777l-14-6c-.83-.356-1.669.483-1.313 1.313l6.002 14zM6.905 6.904l9.903 4.244-3.322 1.995-.102.069a1 1 0 0 0-.242.274l-1.992 3.321-4.245-9.903z" }) });
|
|
13
10
|
}
|
|
14
11
|
function o(h) {
|
|
15
|
-
return /* @__PURE__ */ a
|
|
16
|
-
|
|
12
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a("path", { d: "M12 3c4.935 0 9 3.736 9 9l-.002.343-.012.669c-.012.437-.033.86-.062 1.265l-.05.597C20.498 18.767 19.267 21 17 21c-1.192 0-1.971-.341-2.987-1.122l-.473-.375c-.401-.319-.64-.473-.888-.566a4.894 4.894 0 0 0-.415-.13l-.34-.085-.398-.086-.456-.086-.66-.111-1.708-.273a9.103 9.103 0 0 1-.952-.206C5.46 17.301 3 14.954 3 12.015c0-1.508.485-2.995 1.436-4.458.355.585.906 1.04 1.562 1.272C5.328 9.916 5 10.977 5 12.015c0 1.889 1.78 3.588 3.282 4.025l.085.023.345.076.517.092 1.619.257.583.1.518.099.237.05.433.102c.272.07.512.143.73.224.434.161.783.373 1.235.718l.457.362c.806.646 1.24.857 1.959.857.893 0 1.63-1.518 1.895-4.45l.045-.585c.013-.2.024-.407.033-.62l.02-.655c.005-.224.007-.454.007-.69 0-4.12-3.134-7-7-7a1 1 0 0 1 0-2zM7 4a2 2 0 1 1 0 4 2 2 0 0 1 0-4z" }) });
|
|
13
|
+
}
|
|
14
|
+
function t(h) {
|
|
15
|
+
return /* @__PURE__ */ z(c, { ...h, children: [
|
|
16
|
+
/* @__PURE__ */ a(
|
|
17
17
|
"path",
|
|
18
18
|
{
|
|
19
19
|
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z",
|
|
20
20
|
fillOpacity: ".6"
|
|
21
21
|
}
|
|
22
22
|
),
|
|
23
|
-
/* @__PURE__ */ a
|
|
23
|
+
/* @__PURE__ */ a(
|
|
24
24
|
"path",
|
|
25
25
|
{
|
|
26
26
|
d: "M9 15h2v2H9v-2zm0-4h2v2H9v-2zm0-4h2v2H9V7zm-4 8h2v2H5v-2zm0-4h2v2H5v-2zm0-4h2v2H5V7zm12 8h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V7zm-2 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V9zm0-4h2v2h-2V5zM7 17h2v2H7v-2zm0-4h2v2H7v-2zm0-4h2v2H7V9zm0-4h2v2H7V5zm6 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V7zm-2 10h2v2h-2v-2zm0-4h2v2h-2v-2zm0-4h2v2h-2V9zm0-4h2v2h-2V5z",
|
|
@@ -29,14 +29,14 @@ function o(h) {
|
|
|
29
29
|
)
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
|
-
function t(h) {
|
|
33
|
-
return /* @__PURE__ */ a.jsx(c, { ...h, children: /* @__PURE__ */ a.jsx("path", { d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-2.829 1a2.995 2.995 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342zm-2.463-5.707 3.998 4a3.012 3.012 0 0 0-1.414 1.414l-4-3.999a3.013 3.013 0 0 0 1.31-1.214l.106-.201zM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.995 2.995 0 0 0-2.002 0V6.83zM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942zM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9.171.998a2.995 2.995 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342z" }) });
|
|
34
|
-
}
|
|
35
32
|
function l(h) {
|
|
36
|
-
return /* @__PURE__ */ a
|
|
33
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a("path", { d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-2.829 1a2.995 2.995 0 0 0 0 2H6.829a2.995 2.995 0 0 0 0-2h10.342zm-2.463-5.707 3.998 4a3.012 3.012 0 0 0-1.414 1.414l-4-3.999a3.013 3.013 0 0 0 1.31-1.214l.106-.201zM2.998 6.829a2.995 2.995 0 0 0 2.002 0v10.342a2.995 2.995 0 0 0-2.002 0V6.83zM12 10a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm1.84-3.919c.464.483 1.09.81 1.79.896l-1.47 2.94a2.992 2.992 0 0 0-1.79-.894l1.47-2.942zM16 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9.171.998a2.995 2.995 0 0 0 0 2.002H6.829a2.995 2.995 0 0 0 0-2.002h6.342z" }) });
|
|
34
|
+
}
|
|
35
|
+
function e(h) {
|
|
36
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a("path", { d: "M4 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm16 0a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm-2.829 1a2.994 2.994 0 0 0-.17.974l-.001.052.007.183c.02.275.075.54.164.79H6.829a2.995 2.995 0 0 0 0-2h10.342zM2.998 6.828a2.995 2.995 0 0 0 2.002 0v10.342a2.995 2.995 0 0 0-2.002 0V6.83zm16.001 0a2.995 2.995 0 0 0 2 0v10.342a2.995 2.995 0 0 0-2 0V6.829zM20 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM4 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm13.171.998a2.994 2.994 0 0 0-.17.976L17 4.026l.007.183c.02.275.075.54.164.79H6.829a2.995 2.995 0 0 0 0-2H17.17z" }) });
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */ a
|
|
38
|
+
function i(h) {
|
|
39
|
+
return /* @__PURE__ */ a(c, { ...h, children: /* @__PURE__ */ a(
|
|
40
40
|
"path",
|
|
41
41
|
{
|
|
42
42
|
transform: "translate(0, 2.000000)",
|
|
@@ -46,15 +46,15 @@ function s(h) {
|
|
|
46
46
|
) });
|
|
47
47
|
}
|
|
48
48
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
d as ArrowDropIcon,
|
|
50
|
+
m as CircleIcon,
|
|
51
|
+
r as CursorIcon,
|
|
52
|
+
u as GraphLineIcon,
|
|
53
|
+
o as LassoIcon,
|
|
54
|
+
t as LayerIcon,
|
|
55
|
+
L as OpacityIcon,
|
|
56
|
+
l as PolygonIcon,
|
|
57
|
+
e as RectangeIcon,
|
|
58
|
+
V as SearchIcon,
|
|
59
|
+
i as UploadIcon
|
|
60
60
|
};
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { alpha as t } from "@mui/material";
|
|
2
|
+
import * as m from "cartocolor";
|
|
3
|
+
const s = "#2C3032", c = "#FFFFFF", l = "#e91e63", e = {
|
|
4
|
+
common: {
|
|
5
|
+
black: s,
|
|
6
|
+
white: c
|
|
7
|
+
},
|
|
8
|
+
neutral: {
|
|
9
|
+
50: "#f8f9f9",
|
|
10
|
+
100: "#e1e3e4",
|
|
11
|
+
200: "#cbcdcf",
|
|
12
|
+
300: "#b4b8ba",
|
|
13
|
+
400: "#9da2a6",
|
|
14
|
+
500: "#868d91",
|
|
15
|
+
600: "#6f777c",
|
|
16
|
+
700: "#595f63",
|
|
17
|
+
800: "#43474a",
|
|
18
|
+
900: s,
|
|
19
|
+
A100: "#ddddde",
|
|
20
|
+
A200: "#b9babb",
|
|
21
|
+
A400: "#7c7e7f",
|
|
22
|
+
A700: "#16191A"
|
|
23
|
+
},
|
|
24
|
+
blue: {
|
|
25
|
+
100: "#B9DAF9",
|
|
26
|
+
200: "#5DB2F6",
|
|
27
|
+
300: "#358BE7",
|
|
28
|
+
400: "#036FE2",
|
|
29
|
+
500: "#024D9E"
|
|
30
|
+
},
|
|
31
|
+
green: {
|
|
32
|
+
300: "#6BE2AD",
|
|
33
|
+
400: "#47DB99",
|
|
34
|
+
500: "#31996B"
|
|
35
|
+
},
|
|
36
|
+
lightGreen: {
|
|
37
|
+
300: "#8CB24A",
|
|
38
|
+
400: "#709F1D",
|
|
39
|
+
500: "#435F11"
|
|
40
|
+
},
|
|
41
|
+
indigo: {
|
|
42
|
+
300: "#34689F",
|
|
43
|
+
400: "#024388",
|
|
44
|
+
500: "#012C5A"
|
|
45
|
+
},
|
|
46
|
+
orange: {
|
|
47
|
+
300: "#F4B134",
|
|
48
|
+
400: "#F29E02",
|
|
49
|
+
500: "#A96E01"
|
|
50
|
+
},
|
|
51
|
+
red: {
|
|
52
|
+
300: "#CD593B",
|
|
53
|
+
400: "#C1300B",
|
|
54
|
+
500: "#872107"
|
|
55
|
+
},
|
|
56
|
+
qualitative: {
|
|
57
|
+
// CARTO colors
|
|
58
|
+
// TODO: Related discussion https://app.shortcut.com/cartoteam/story/264834/
|
|
59
|
+
bold: {
|
|
60
|
+
0: "#7F3C8D",
|
|
61
|
+
1: "#11A579",
|
|
62
|
+
2: "#3969AC",
|
|
63
|
+
3: "#F2B701",
|
|
64
|
+
4: "#E73F74",
|
|
65
|
+
5: "#80BA5A",
|
|
66
|
+
6: "#E68310",
|
|
67
|
+
7: "#008695",
|
|
68
|
+
8: "#CF1C90",
|
|
69
|
+
9: "#f97b72",
|
|
70
|
+
10: "#4b4b8f",
|
|
71
|
+
11: "#A5AA99"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
shades: {
|
|
75
|
+
dark: {
|
|
76
|
+
90: t(s, 0.9),
|
|
77
|
+
60: t(s, 0.6),
|
|
78
|
+
40: t(s, 0.4),
|
|
79
|
+
25: t(s, 0.25),
|
|
80
|
+
12: t(s, 0.12),
|
|
81
|
+
8: t(s, 0.08),
|
|
82
|
+
4: t(s, 0.04)
|
|
83
|
+
},
|
|
84
|
+
light: {
|
|
85
|
+
90: t(c, 0.9),
|
|
86
|
+
60: t(c, 0.6),
|
|
87
|
+
40: t(c, 0.4),
|
|
88
|
+
25: t(c, 0.25),
|
|
89
|
+
12: t(c, 0.12),
|
|
90
|
+
8: t(c, 0.08),
|
|
91
|
+
4: t(c, 0.04)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}, u = {
|
|
95
|
+
mode: "light",
|
|
96
|
+
contrastThreshold: 3,
|
|
97
|
+
tonalOffset: 0.2,
|
|
98
|
+
common: { ...e.common },
|
|
99
|
+
primary: {
|
|
100
|
+
main: e.blue[400],
|
|
101
|
+
dark: e.blue[500],
|
|
102
|
+
light: e.blue[300],
|
|
103
|
+
contrastText: e.common.white,
|
|
104
|
+
background: t(e.blue[400], 0.08),
|
|
105
|
+
relatedLight: "#EAF2FC",
|
|
106
|
+
relatedDark: l
|
|
107
|
+
},
|
|
108
|
+
secondary: {
|
|
109
|
+
main: e.green[400],
|
|
110
|
+
dark: e.green[500],
|
|
111
|
+
light: e.green[300],
|
|
112
|
+
contrastText: e.common.black,
|
|
113
|
+
background: t(e.green[400], 0.08),
|
|
114
|
+
relatedLight: "#EFFCF5",
|
|
115
|
+
relatedDark: l
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
primary: e.common.black,
|
|
119
|
+
secondary: e.shades.dark[60],
|
|
120
|
+
disabled: e.shades.dark[25],
|
|
121
|
+
hint: e.shades.dark[40]
|
|
122
|
+
},
|
|
123
|
+
background: {
|
|
124
|
+
paper: e.common.white,
|
|
125
|
+
default: e.neutral[50]
|
|
126
|
+
},
|
|
127
|
+
action: {
|
|
128
|
+
active: e.shades.dark[40],
|
|
129
|
+
hover: e.shades.dark[8],
|
|
130
|
+
disabledBackground: e.neutral[100],
|
|
131
|
+
disabled: e.shades.dark[25],
|
|
132
|
+
selected: e.shades.dark[12],
|
|
133
|
+
focus: e.shades.dark[12],
|
|
134
|
+
activatedOpacity: 0.12,
|
|
135
|
+
hoverOpacity: 0.04,
|
|
136
|
+
selectedOpacity: 0.08,
|
|
137
|
+
disabledOpacity: 0.38,
|
|
138
|
+
focusOpacity: 0.12
|
|
139
|
+
},
|
|
140
|
+
info: {
|
|
141
|
+
main: e.indigo[400],
|
|
142
|
+
dark: e.indigo[500],
|
|
143
|
+
light: e.indigo[300],
|
|
144
|
+
contrastText: e.common.white,
|
|
145
|
+
relatedDark: "#0D2B4A",
|
|
146
|
+
relatedLight: "#E9EEF4",
|
|
147
|
+
background: l
|
|
148
|
+
},
|
|
149
|
+
success: {
|
|
150
|
+
main: e.lightGreen[400],
|
|
151
|
+
dark: e.lightGreen[500],
|
|
152
|
+
light: e.lightGreen[300],
|
|
153
|
+
contrastText: e.common.white,
|
|
154
|
+
relatedDark: "#3D541A",
|
|
155
|
+
relatedLight: "#F2F5EB",
|
|
156
|
+
background: l
|
|
157
|
+
},
|
|
158
|
+
warning: {
|
|
159
|
+
main: e.orange[400],
|
|
160
|
+
dark: e.orange[500],
|
|
161
|
+
light: e.orange[300],
|
|
162
|
+
contrastText: e.common.black,
|
|
163
|
+
relatedDark: "#78540F",
|
|
164
|
+
relatedLight: "#FEF6EA",
|
|
165
|
+
background: l
|
|
166
|
+
},
|
|
167
|
+
error: {
|
|
168
|
+
main: e.red[400],
|
|
169
|
+
light: e.red[300],
|
|
170
|
+
dark: e.red[500],
|
|
171
|
+
contrastText: e.common.white,
|
|
172
|
+
relatedDark: "#622215",
|
|
173
|
+
relatedLight: "#F9EDEA",
|
|
174
|
+
background: l
|
|
175
|
+
},
|
|
176
|
+
grey: {
|
|
177
|
+
...e.neutral
|
|
178
|
+
},
|
|
179
|
+
divider: e.shades.dark[12],
|
|
180
|
+
// Custom common colors
|
|
181
|
+
default: {
|
|
182
|
+
main: e.neutral[100],
|
|
183
|
+
dark: e.neutral[200],
|
|
184
|
+
light: e.neutral[50],
|
|
185
|
+
outlinedBorder: e.shades.dark[25],
|
|
186
|
+
background: e.shades.dark[4],
|
|
187
|
+
relatedLight: l,
|
|
188
|
+
relatedDark: l,
|
|
189
|
+
contrastText: l
|
|
190
|
+
},
|
|
191
|
+
brand: {
|
|
192
|
+
navyBlue: "#162945",
|
|
193
|
+
locationRed: "#EB1510",
|
|
194
|
+
predictionBlue: "#1785FB",
|
|
195
|
+
softBlue: "#F2F6F9",
|
|
196
|
+
appBarMain: "#162945",
|
|
197
|
+
appBarContrastText: e.common.white
|
|
198
|
+
},
|
|
199
|
+
white: {
|
|
200
|
+
...e.shades.light
|
|
201
|
+
},
|
|
202
|
+
black: {
|
|
203
|
+
...e.shades.dark
|
|
204
|
+
},
|
|
205
|
+
qualitative: {
|
|
206
|
+
...e.qualitative
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
function F(r, a) {
|
|
210
|
+
var b;
|
|
211
|
+
const n = m[r];
|
|
212
|
+
let o = a;
|
|
213
|
+
if (!n)
|
|
214
|
+
throw new Error(
|
|
215
|
+
`Palette "${r}" not found. Expected a CARTOColors string`
|
|
216
|
+
);
|
|
217
|
+
const i = Object.keys(n).filter((k) => k !== "tags").map(Number), d = Math.max(...i), g = Math.min(...i);
|
|
218
|
+
!Number.isInteger(a) || a > d ? o = d : a < g && (o = g);
|
|
219
|
+
let h = n[o];
|
|
220
|
+
return (b = n.tags) != null && b.includes("qualitative") && (h = h == null ? void 0 : h.slice(0, -1)), h;
|
|
221
|
+
}
|
|
222
|
+
function A(r, a) {
|
|
223
|
+
return typeof r == "string" ? F(r, a) : r.map((n) => {
|
|
224
|
+
if (Array.isArray(n)) {
|
|
225
|
+
const [o, i, d] = n;
|
|
226
|
+
return f(o, i, d);
|
|
227
|
+
} else
|
|
228
|
+
return n;
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
function f(r, a, n) {
|
|
232
|
+
return "#" + ((1 << 24) + (r << 16) + (a << 8) + n).toString(16).slice(1);
|
|
233
|
+
}
|
|
234
|
+
function B(r, a) {
|
|
235
|
+
var d;
|
|
236
|
+
const n = (d = u == null ? void 0 : u.qualitative) == null ? void 0 : d.bold, o = Object.values(n ?? {}), i = a % o.length;
|
|
237
|
+
return {
|
|
238
|
+
backgroundColor: o[i],
|
|
239
|
+
color: r.palette.getContrastText(o[i])
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function E(r, {
|
|
243
|
+
palette: a,
|
|
244
|
+
fallbackColor: n,
|
|
245
|
+
colorMapping: o
|
|
246
|
+
}) {
|
|
247
|
+
if (o[r])
|
|
248
|
+
return o[r];
|
|
249
|
+
if (!a || a.length === 0)
|
|
250
|
+
return n;
|
|
251
|
+
const d = Math.min(
|
|
252
|
+
Object.keys(o).length,
|
|
253
|
+
a.length - 1
|
|
254
|
+
), g = a[d];
|
|
255
|
+
return o[r] = g, g;
|
|
256
|
+
}
|
|
257
|
+
export {
|
|
258
|
+
E as a,
|
|
259
|
+
A as b,
|
|
260
|
+
u as c,
|
|
261
|
+
B as g
|
|
262
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("@mui/material"),k=require("cartocolor");function f(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return a.default=t,Object.freeze(a)}const p=f(k),d="#2C3032",c="#FFFFFF",s="#e91e63",e={common:{black:d,white:c},neutral:{50:"#f8f9f9",100:"#e1e3e4",200:"#cbcdcf",300:"#b4b8ba",400:"#9da2a6",500:"#868d91",600:"#6f777c",700:"#595f63",800:"#43474a",900:d,A100:"#ddddde",A200:"#b9babb",A400:"#7c7e7f",A700:"#16191A"},blue:{100:"#B9DAF9",200:"#5DB2F6",300:"#358BE7",400:"#036FE2",500:"#024D9E"},green:{300:"#6BE2AD",400:"#47DB99",500:"#31996B"},lightGreen:{300:"#8CB24A",400:"#709F1D",500:"#435F11"},indigo:{300:"#34689F",400:"#024388",500:"#012C5A"},orange:{300:"#F4B134",400:"#F29E02",500:"#A96E01"},red:{300:"#CD593B",400:"#C1300B",500:"#872107"},qualitative:{bold:{0:"#7F3C8D",1:"#11A579",2:"#3969AC",3:"#F2B701",4:"#E73F74",5:"#80BA5A",6:"#E68310",7:"#008695",8:"#CF1C90",9:"#f97b72",10:"#4b4b8f",11:"#A5AA99"}},shades:{dark:{90:o.alpha(d,.9),60:o.alpha(d,.6),40:o.alpha(d,.4),25:o.alpha(d,.25),12:o.alpha(d,.12),8:o.alpha(d,.08),4:o.alpha(d,.04)},light:{90:o.alpha(c,.9),60:o.alpha(c,.6),40:o.alpha(c,.4),25:o.alpha(c,.25),12:o.alpha(c,.12),8:o.alpha(c,.08),4:o.alpha(c,.04)}}},u={mode:"light",contrastThreshold:3,tonalOffset:.2,common:{...e.common},primary:{main:e.blue[400],dark:e.blue[500],light:e.blue[300],contrastText:e.common.white,background:o.alpha(e.blue[400],.08),relatedLight:"#EAF2FC",relatedDark:s},secondary:{main:e.green[400],dark:e.green[500],light:e.green[300],contrastText:e.common.black,background:o.alpha(e.green[400],.08),relatedLight:"#EFFCF5",relatedDark:s},text:{primary:e.common.black,secondary:e.shades.dark[60],disabled:e.shades.dark[25],hint:e.shades.dark[40]},background:{paper:e.common.white,default:e.neutral[50]},action:{active:e.shades.dark[40],hover:e.shades.dark[8],disabledBackground:e.neutral[100],disabled:e.shades.dark[25],selected:e.shades.dark[12],focus:e.shades.dark[12],activatedOpacity:.12,hoverOpacity:.04,selectedOpacity:.08,disabledOpacity:.38,focusOpacity:.12},info:{main:e.indigo[400],dark:e.indigo[500],light:e.indigo[300],contrastText:e.common.white,relatedDark:"#0D2B4A",relatedLight:"#E9EEF4",background:s},success:{main:e.lightGreen[400],dark:e.lightGreen[500],light:e.lightGreen[300],contrastText:e.common.white,relatedDark:"#3D541A",relatedLight:"#F2F5EB",background:s},warning:{main:e.orange[400],dark:e.orange[500],light:e.orange[300],contrastText:e.common.black,relatedDark:"#78540F",relatedLight:"#FEF6EA",background:s},error:{main:e.red[400],light:e.red[300],dark:e.red[500],contrastText:e.common.white,relatedDark:"#622215",relatedLight:"#F9EDEA",background:s},grey:{...e.neutral},divider:e.shades.dark[12],default:{main:e.neutral[100],dark:e.neutral[200],light:e.neutral[50],outlinedBorder:e.shades.dark[25],background:e.shades.dark[4],relatedLight:s,relatedDark:s,contrastText:s},brand:{navyBlue:"#162945",locationRed:"#EB1510",predictionBlue:"#1785FB",softBlue:"#F2F6F9",appBarMain:"#162945",appBarContrastText:e.common.white},white:{...e.shades.light},black:{...e.shades.dark},qualitative:{...e.qualitative}};function C(t,a){var b;const r=p[t];let n=a;if(!r)throw new Error(`Palette "${t}" not found. Expected a CARTOColors string`);const i=Object.keys(r).filter(m=>m!=="tags").map(Number),l=Math.max(...i),h=Math.min(...i);!Number.isInteger(a)||a>l?n=l:a<h&&(n=h);let g=r[n];return(b=r.tags)!=null&&b.includes("qualitative")&&(g=g==null?void 0:g.slice(0,-1)),g}function F(t,a){return typeof t=="string"?C(t,a):t.map(r=>{if(Array.isArray(r)){const[n,i,l]=r;return A(n,i,l)}else return r})}function A(t,a,r){return"#"+((1<<24)+(t<<16)+(a<<8)+r).toString(16).slice(1)}function B(t,a){var l;const r=(l=u==null?void 0:u.qualitative)==null?void 0:l.bold,n=Object.values(r??{}),i=a%n.length;return{backgroundColor:n[i],color:t.palette.getContrastText(n[i])}}function y(t,{palette:a,fallbackColor:r,colorMapping:n}){if(n[t])return n[t];if(!a||a.length===0)return r;const l=Math.min(Object.keys(n).length,a.length-1),h=a[l];return n[t]=h,h}exports.commonPalette=u;exports.getCartoColorStylePropsForItem=B;exports.getColorByCategory=y;exports.getPalette=F;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as H } from "react/jsx-runtime";
|
|
2
2
|
import { SvgIcon as r } from "@mui/material";
|
|
3
3
|
function e(V) {
|
|
4
|
-
return /* @__PURE__ */ H
|
|
4
|
+
return /* @__PURE__ */ H(r, { width: "720", height: "124", viewBox: "0 0 720 124", ...V, children: /* @__PURE__ */ H(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
7
7
|
d: "M0.74707 123C11.8168 119.656 26.7934 118.37 53.4909 102.164C73.1959 90.2031 92.5604 81.3284 108.188 76.6983C122.841 72.357 136.188 74.3832 144.653 75.1549C150.496 75.6876 195.443 82.8718 207.164 83.6435C218.885 84.4152 241.676 87.502 274.234 80.5567C306.791 73.6115 305.869 75.4585 330.233 67.438C388.837 48.1456 433.461 2.6348 458.511 1.07229C495.627 -1.24279 512.557 52.7758 539.255 58.1776C565.952 63.5795 583.534 64.3512 601.766 55.0909C619.999 45.8305 625.859 40.4287 646.045 38.1136C666.231 35.7985 683.812 41.972 718.975 70.5247",
|
|
@@ -12,8 +12,8 @@ function e(V) {
|
|
|
12
12
|
}
|
|
13
13
|
) });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return /* @__PURE__ */ H
|
|
15
|
+
function C(V) {
|
|
16
|
+
return /* @__PURE__ */ H(r, { ...V, children: /* @__PURE__ */ H(
|
|
17
17
|
"path",
|
|
18
18
|
{
|
|
19
19
|
fillRule: "evenodd",
|
|
@@ -22,8 +22,8 @@ function t(V) {
|
|
|
22
22
|
}
|
|
23
23
|
) });
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return /* @__PURE__ */ H
|
|
25
|
+
function t(V) {
|
|
26
|
+
return /* @__PURE__ */ H(r, { ...V, children: /* @__PURE__ */ H(
|
|
27
27
|
"path",
|
|
28
28
|
{
|
|
29
29
|
d: "M11,4 C14.8659932,4 18,7.13400675 18,11 C18,12.7003211 17.3937669,14.2590489 16.3856562,15.4718279 L19.4748737,18.5606602 L18.0606602,19.9748737 L14.8998887,16.8138615 C13.7854137,17.5629194 12.4437497,18 11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 Z M11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 Z",
|
|
@@ -33,6 +33,6 @@ function C(V) {
|
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
35
|
e as G,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
C as O,
|
|
37
|
+
t as S
|
|
38
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const H=require("react/jsx-runtime"),n=require("@mui/material");function e(V){return H.jsx(n.SvgIcon,{width:"720",height:"124",viewBox:"0 0 720 124",...V,children:H.jsx("path",{d:"M0.74707 123C11.8168 119.656 26.7934 118.37 53.4909 102.164C73.1959 90.2031 92.5604 81.3284 108.188 76.6983C122.841 72.357 136.188 74.3832 144.653 75.1549C150.496 75.6876 195.443 82.8718 207.164 83.6435C218.885 84.4152 241.676 87.502 274.234 80.5567C306.791 73.6115 305.869 75.4585 330.233 67.438C388.837 48.1456 433.461 2.6348 458.511 1.07229C495.627 -1.24279 512.557 52.7758 539.255 58.1776C565.952 63.5795 583.534 64.3512 601.766 55.0909C619.999 45.8305 625.859 40.4287 646.045 38.1136C666.231 35.7985 683.812 41.972 718.975 70.5247",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})})}function r(V){return H.jsx(n.SvgIcon,{...V,children:H.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM17.625 19V17.625H19V15.375H17.625V13.125H19V10.875H17.625V8.625H19V6.375H17.625V5H15.375V6.375H13.125V5H10.875V6.375H8.625V5H6.375V6.375H5V8.625H6.375V10.875H5V13.125H6.375V15.375H5V17.625H6.375V19H8.625V17.625H10.875V19H13.125V17.625H15.375V19H17.625ZM15.375 15.375H17.625V17.625H15.375V15.375ZM13.125 15.375H15.375V13.125H17.625V10.875H15.375V8.625H17.625V6.375H15.375V8.625H13.125V6.375H10.875V8.625H8.625V6.375H6.375V8.625H8.625V10.875H6.375V13.125H8.625V15.375H6.375V17.625H8.625V15.375H10.875V17.625H13.125V15.375ZM13.125 13.125H15.375V10.875H13.125V8.625H10.875V10.875H8.625V13.125H10.875V15.375H13.125V13.125ZM13.125 13.125H10.875V10.875H13.125V13.125Z"})})}function o(V){return H.jsx(n.SvgIcon,{...V,children:H.jsx("path",{d:"M11,4 C14.8659932,4 18,7.13400675 18,11 C18,12.7003211 17.3937669,14.2590489 16.3856562,15.4718279 L19.4748737,18.5606602 L18.0606602,19.9748737 L14.8998887,16.8138615 C13.7854137,17.5629194 12.4437497,18 11,18 C7.13400675,18 4,14.8659932 4,11 C4,7.13400675 7.13400675,4 11,4 Z M11,6 C8.23857625,6 6,8.23857625 6,11 C6,13.7614237 8.23857625,16 11,16 C13.7614237,16 16,13.7614237 16,11 C16,8.23857625 13.7614237,6 11,6 Z",fill:"currentColor"})})}exports.GraphLineIcon=e;exports.OpacityIcon=r;exports.SearchIcon=o;
|