@carto/meridian-ds 1.4.4-alpha-others.1 → 1.4.4-alpha-icons-shapes.2
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 +11 -1
- package/dist/Alert-D8jI1sG4.js +134 -0
- package/dist/Alert-zqtoWsBL.cjs +133 -0
- package/dist/ArrowDown-8fLj23Ge.cjs +31 -0
- package/dist/ArrowDown-CY_wMVJT.js +32 -0
- package/dist/MenuItem-Br2jY2lt.cjs +164 -0
- package/dist/MenuItem-CXnnE5lK.js +165 -0
- package/dist/OpenDiagonallyRight-5HZXh46V.js +59 -0
- package/dist/OpenDiagonallyRight-BrRyCV4Q.cjs +58 -0
- package/dist/SwatchSquare-DDi0beUM.js +51 -0
- package/dist/SwatchSquare-w-U8-O-P.cjs +50 -0
- package/dist/TablePaginationActions-CFGXm44W.cjs +5661 -0
- package/dist/{TablePaginationActions-WZ3P4O35.js → TablePaginationActions-KpTvhN4Y.js} +1086 -656
- package/dist/components/index.cjs +4403 -1
- package/dist/components/index.js +3235 -1857
- package/dist/custom-icons/index.cjs +5857 -1
- package/dist/custom-icons/index.js +2658 -2326
- package/dist/paletteUtils-B9ybmwiI.cjs +304 -0
- package/dist/paletteUtils-BHqJlHm9.js +288 -0
- package/dist/theme/index.cjs +3140 -1
- package/dist/theme/index.js +1056 -1012
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +10 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +8 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +4 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +12 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +9 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +28 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +7 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts +9 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts +38 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts +5 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -0
- package/dist/types/components/organisms/index.d.ts +2 -0
- package/dist/types/components/organisms/index.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +6 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +6 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +6 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +18 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/theme/sections/components/data-display.d.ts.map +1 -1
- package/dist/types/utils/chartConstants.d.ts +3 -3
- package/dist/types/utils/chartConstants.d.ts.map +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +2 -2
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +2 -2
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +2 -2
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +2 -5
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts +7 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts +6 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts.map +1 -0
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +2 -2
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +2 -2
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -1
- package/dist/types/widgets/index.d.ts +1 -0
- package/dist/types/widgets/index.d.ts.map +1 -1
- package/dist/widgets/index.cjs +7211 -21
- package/dist/widgets/index.js +5201 -3806
- package/package.json +6 -1
- package/dist/Alert-BAvr1f31.js +0 -130
- package/dist/Alert-DPGMxifE.cjs +0 -4
- package/dist/ArrowDown-BD0WmQR3.cjs +0 -1
- package/dist/ArrowDown-CMhYkZ2p.js +0 -31
- package/dist/MenuItem-Cd34y6F3.js +0 -165
- package/dist/MenuItem-Dbss-WG1.cjs +0 -1
- package/dist/SwatchSquare-C34ayL4L.cjs +0 -1
- package/dist/SwatchSquare-CVpwEFFV.js +0 -48
- package/dist/TablePaginationActions-Bp1DCaIE.cjs +0 -9
- package/dist/paletteUtils-BEwZhrLg.js +0 -262
- package/dist/paletteUtils-DLQVT9qo.cjs +0 -1
|
@@ -1,262 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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;
|