@carto/meridian-ds 2.7.0-alpha-loader.4 → 2.7.0-alpha-loader.6

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.
Files changed (37) hide show
  1. package/dist/{Alert-BZPM5zpX.js → Alert-CHyETxuP.js} +1 -1
  2. package/dist/{Alert-C4W0H_uN.cjs → Alert-DyUCYGVG.cjs} +1 -1
  3. package/dist/{MenuItem-CgF4QdGi.cjs → MenuItem-BLZz_nSA.cjs} +1 -1
  4. package/dist/{MenuItem-DRUK149i.js → MenuItem-CM00TU3e.js} +1 -1
  5. package/dist/components/index.cjs +39 -13
  6. package/dist/components/index.js +47 -21
  7. package/dist/{css-utils-CH7es90t.cjs → css-utils-B9V_AMcv.cjs} +212 -1
  8. package/dist/{css-utils-CjUBRJVK.js → css-utils-Cr7ZvmiF.js} +216 -5
  9. package/dist/palette-utils-C5CHlLXB.cjs +93 -0
  10. package/dist/palette-utils-D99Ib0kC.js +77 -0
  11. package/dist/theme/index.cjs +21 -13
  12. package/dist/theme/index.js +13 -6
  13. package/dist/types/components/CircularProgress/CircularProgress.d.ts +19 -0
  14. package/dist/types/components/CircularProgress/CircularProgress.d.ts.map +1 -0
  15. package/dist/types/components/CircularProgress/CircularProgress.stories.d.ts +72 -0
  16. package/dist/types/components/CircularProgress/CircularProgress.stories.d.ts.map +1 -0
  17. package/dist/types/components/CircularProgress/CircularProgress.test.d.ts +2 -0
  18. package/dist/types/components/CircularProgress/CircularProgress.test.d.ts.map +1 -0
  19. package/dist/types/components/CircularProgress/index.d.ts +3 -0
  20. package/dist/types/components/CircularProgress/index.d.ts.map +1 -0
  21. package/dist/types/components/Loader/Loader.d.ts +5 -13
  22. package/dist/types/components/Loader/Loader.d.ts.map +1 -1
  23. package/dist/types/components/Loader/Loader.stories.d.ts +59 -11
  24. package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -1
  25. package/dist/types/components/index.d.ts +2 -0
  26. package/dist/types/components/index.d.ts.map +1 -1
  27. package/dist/types/theme/components/forms.d.ts.map +1 -1
  28. package/dist/types/theme/components/stories/{Progress.stories.d.ts → LinearProgress.stories.d.ts} +12 -22
  29. package/dist/types/theme/components/stories/LinearProgress.stories.d.ts.map +1 -0
  30. package/dist/types/theme/types.d.ts +5 -0
  31. package/dist/types/theme/types.d.ts.map +1 -1
  32. package/dist/widgets/index.cjs +5 -5
  33. package/dist/widgets/index.js +3 -3
  34. package/package.json +2 -2
  35. package/dist/palette-utils-B9ybmwiI.cjs +0 -304
  36. package/dist/palette-utils-BHqJlHm9.js +0 -288
  37. package/dist/types/theme/components/stories/Progress.stories.d.ts.map +0 -1
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useState } from "react";
3
3
  import { styled, Link as Link$1, Alert as Alert$1, Fade, AlertTitle } from "@mui/material";
4
4
  import { OpenInNewOutlined } from "@mui/icons-material";
5
+ import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-Cr7ZvmiF.js";
5
6
  import "cartocolor";
6
- import { c as ICON_SIZE_SMALL, b as ICON_SIZE_MEDIUM, u as useTranslationWithFallback, T as Typography } from "./css-utils-CjUBRJVK.js";
7
7
  const ScreenReaderOnly = styled("span")(() => ({
8
8
  position: "absolute",
9
9
  width: 1,
@@ -3,8 +3,8 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const material = require("@mui/material");
5
5
  const iconsMaterial = require("@mui/icons-material");
6
+ const cssUtils = require("./css-utils-B9V_AMcv.cjs");
6
7
  require("cartocolor");
7
- const cssUtils = require("./css-utils-CH7es90t.cjs");
8
8
  const ScreenReaderOnly = material.styled("span")(() => ({
9
9
  position: "absolute",
10
10
  width: 1,
@@ -2,7 +2,7 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const material = require("@mui/material");
5
- const cssUtils = require("./css-utils-CH7es90t.cjs");
5
+ const cssUtils = require("./css-utils-B9V_AMcv.cjs");
6
6
  const StyledMenuItem = material.styled(material.MenuItem, {
7
7
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
8
8
  prop
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { styled, MenuItem as MenuItem$1 } from "@mui/material";
4
- import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-CjUBRJVK.js";
4
+ import { f as MENU_ITEM_SIZE_DENSE, i as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-Cr7ZvmiF.js";
5
5
  const StyledMenuItem = styled(MenuItem$1, {
6
6
  shouldForwardProp: (prop) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
7
7
  prop
@@ -4,11 +4,11 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const material = require("@mui/material");
6
6
  const iconsMaterial = require("@mui/icons-material");
7
- const cssUtils = require("../css-utils-CH7es90t.cjs");
8
- const Alert$1 = require("../Alert-C4W0H_uN.cjs");
7
+ const cssUtils = require("../css-utils-B9V_AMcv.cjs");
8
+ const Alert$1 = require("../Alert-DyUCYGVG.cjs");
9
9
  const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
10
10
  const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
11
- const MenuItem = require("../MenuItem-CgF4QdGi.cjs");
11
+ const MenuItem = require("../MenuItem-BLZz_nSA.cjs");
12
12
  require("cartocolor");
13
13
  const reactWindow = require("react-window");
14
14
  const reactCodemirror2 = require("react-codemirror2");
@@ -876,6 +876,30 @@ function _ToggleButtonGroup({
876
876
  );
877
877
  }
878
878
  const ToggleButtonGroup = React.forwardRef(_ToggleButtonGroup);
879
+ function _CircularProgress({
880
+ color = "primary",
881
+ size = 40,
882
+ thickness = 4,
883
+ ...otherProps
884
+ }, ref) {
885
+ const muiColor = color === "neutral" ? void 0 : color;
886
+ return /* @__PURE__ */ jsxRuntime.jsx(
887
+ material.CircularProgress,
888
+ {
889
+ ...otherProps,
890
+ ref,
891
+ size,
892
+ thickness,
893
+ color: muiColor,
894
+ "data-name": "circular-progress",
895
+ "data-color": color,
896
+ "data-thickness": thickness
897
+ }
898
+ );
899
+ }
900
+ const CircularProgress = React.forwardRef(
901
+ _CircularProgress
902
+ );
879
903
  const Wrapper = material.styled(material.Stack, {
880
904
  shouldForwardProp: (prop) => prop !== "contentHeight"
881
905
  })(({ contentHeight, theme }) => ({
@@ -885,17 +909,17 @@ const Wrapper = material.styled(material.Stack, {
885
909
  width: "100%",
886
910
  ...contentHeight && {
887
911
  flex: 1,
888
- height: contentHeight
912
+ height: contentHeight,
913
+ minHeight: contentHeight
889
914
  }
890
915
  }));
891
916
  function _Loader({
892
917
  label,
893
918
  secondLabel,
894
- color = "primary",
895
- size = 40,
896
919
  contentHeight,
897
- labelTypographyProps,
898
- secondLabelTypographyProps,
920
+ labelProps,
921
+ secondLabelProps,
922
+ iconProps,
899
923
  sx,
900
924
  ...otherProps
901
925
  }, ref) {
@@ -913,10 +937,11 @@ function _Loader({
913
937
  "data-content-height": contentHeight,
914
938
  children: [
915
939
  /* @__PURE__ */ jsxRuntime.jsx(
916
- material.CircularProgress,
940
+ CircularProgress,
917
941
  {
918
- color,
919
- size,
942
+ color: "primary",
943
+ size: 40,
944
+ ...iconProps,
920
945
  "aria-labelledby": hasAnyLabel ? "loader-label" : void 0
921
946
  }
922
947
  ),
@@ -926,7 +951,7 @@ function _Loader({
926
951
  {
927
952
  variant: "body2",
928
953
  color: "textSecondary",
929
- ...labelTypographyProps,
954
+ ...labelProps,
930
955
  id: "loader-label",
931
956
  children: labelText
932
957
  }
@@ -936,7 +961,7 @@ function _Loader({
936
961
  {
937
962
  variant: "body2",
938
963
  color: "textSecondary",
939
- ...secondLabelTypographyProps,
964
+ ...secondLabelProps,
940
965
  id: labelText ? void 0 : "loader-label",
941
966
  children: secondLabel
942
967
  }
@@ -6188,6 +6213,7 @@ exports.Autocomplete = Autocomplete;
6188
6213
  exports.AutocompleteList = AutocompleteList;
6189
6214
  exports.Avatar = Avatar;
6190
6215
  exports.Button = Button;
6216
+ exports.CircularProgress = CircularProgress;
6191
6217
  exports.CodeAreaDialog = CodeAreaDialog;
6192
6218
  exports.CodeAreaDialogConfirmation = CodeAreaDialogConfirmation;
6193
6219
  exports.CodeAreaDialogContent = CodeAreaDialogContent;
@@ -1,14 +1,14 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import React, { forwardRef, useState, useRef, useEffect, useMemo, createElement, Fragment as Fragment$1, useCallback, useImperativeHandle } from "react";
3
- import { styled, Box, Button as Button$1, CircularProgress, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
3
+ import { styled, Box, Button as Button$1, CircularProgress as CircularProgress$1, Popper, Grow, Paper, ClickAwayListener, MenuList as MenuList$1, MenuItem, ButtonGroup as ButtonGroup$1, TextField, InputAdornment, Select, FormControl, InputLabel, FormHelperText, Link, Checkbox, IconButton as IconButton$1, ListItemText, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip, DialogContent as DialogContent$1, DialogActions as DialogActions$1, Slide, Accordion, AccordionSummary, AccordionDetails, Avatar as Avatar$1, Menu as Menu$2, useMediaQuery, Snackbar as Snackbar$1, Portal, Fade } from "@mui/material";
4
4
  import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined } from "@mui/icons-material";
5
- import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, i as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, h as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, j as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-CjUBRJVK.js";
6
- import { a } from "../css-utils-CjUBRJVK.js";
7
- import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-BZPM5zpX.js";
8
- import { L } from "../Alert-BZPM5zpX.js";
5
+ import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, j as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, i as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, k as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles } from "../css-utils-Cr7ZvmiF.js";
6
+ import { a } from "../css-utils-Cr7ZvmiF.js";
7
+ import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-CHyETxuP.js";
8
+ import { L } from "../Alert-CHyETxuP.js";
9
9
  import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
10
10
  import { A as ArrowUp, O as OpenDiagonallyRight, C as CloseDiagonallyRight } from "../OpenDiagonallyRight-CGdCEXlF.js";
11
- import { M as MenuItem$1 } from "../MenuItem-DRUK149i.js";
11
+ import { M as MenuItem$1 } from "../MenuItem-CM00TU3e.js";
12
12
  import "cartocolor";
13
13
  import { FixedSizeList } from "react-window";
14
14
  import { Controlled, UnControlled } from "react-codemirror2";
@@ -74,7 +74,7 @@ function _Button({
74
74
  "c4r.button.opensInNewTab",
75
75
  screenReaderText
76
76
  );
77
- const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" });
77
+ const defaultIconLoader = /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" });
78
78
  const isDefaultLoading = loading && loadingPosition === void 0;
79
79
  const isExternalLink = otherProps.href && external;
80
80
  const renderContent = () => {
@@ -876,6 +876,30 @@ function _ToggleButtonGroup({
876
876
  );
877
877
  }
878
878
  const ToggleButtonGroup = forwardRef(_ToggleButtonGroup);
879
+ function _CircularProgress({
880
+ color = "primary",
881
+ size = 40,
882
+ thickness = 4,
883
+ ...otherProps
884
+ }, ref) {
885
+ const muiColor = color === "neutral" ? void 0 : color;
886
+ return /* @__PURE__ */ jsx(
887
+ CircularProgress$1,
888
+ {
889
+ ...otherProps,
890
+ ref,
891
+ size,
892
+ thickness,
893
+ color: muiColor,
894
+ "data-name": "circular-progress",
895
+ "data-color": color,
896
+ "data-thickness": thickness
897
+ }
898
+ );
899
+ }
900
+ const CircularProgress = forwardRef(
901
+ _CircularProgress
902
+ );
879
903
  const Wrapper = styled(Stack, {
880
904
  shouldForwardProp: (prop) => prop !== "contentHeight"
881
905
  })(({ contentHeight, theme }) => ({
@@ -885,17 +909,17 @@ const Wrapper = styled(Stack, {
885
909
  width: "100%",
886
910
  ...contentHeight && {
887
911
  flex: 1,
888
- height: contentHeight
912
+ height: contentHeight,
913
+ minHeight: contentHeight
889
914
  }
890
915
  }));
891
916
  function _Loader({
892
917
  label,
893
918
  secondLabel,
894
- color = "primary",
895
- size = 40,
896
919
  contentHeight,
897
- labelTypographyProps,
898
- secondLabelTypographyProps,
920
+ labelProps,
921
+ secondLabelProps,
922
+ iconProps,
899
923
  sx,
900
924
  ...otherProps
901
925
  }, ref) {
@@ -915,8 +939,9 @@ function _Loader({
915
939
  /* @__PURE__ */ jsx(
916
940
  CircularProgress,
917
941
  {
918
- color,
919
- size,
942
+ color: "primary",
943
+ size: 40,
944
+ ...iconProps,
920
945
  "aria-labelledby": hasAnyLabel ? "loader-label" : void 0
921
946
  }
922
947
  ),
@@ -926,7 +951,7 @@ function _Loader({
926
951
  {
927
952
  variant: "body2",
928
953
  color: "textSecondary",
929
- ...labelTypographyProps,
954
+ ...labelProps,
930
955
  id: "loader-label",
931
956
  children: labelText
932
957
  }
@@ -936,7 +961,7 @@ function _Loader({
936
961
  {
937
962
  variant: "body2",
938
963
  color: "textSecondary",
939
- ...secondLabelTypographyProps,
964
+ ...secondLabelProps,
940
965
  id: labelText ? void 0 : "loader-label",
941
966
  children: secondLabel
942
967
  }
@@ -1278,7 +1303,7 @@ function _Autocomplete({
1278
1303
  ...props,
1279
1304
  ref,
1280
1305
  disabled: disabled || loading,
1281
- popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1306
+ popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1282
1307
  "data-name": "autocomplete",
1283
1308
  ListboxProps: {
1284
1309
  "aria-multiselectable": false,
@@ -1775,7 +1800,7 @@ function _CreatableAutocomplete({
1775
1800
  ListboxProps: listboxProps,
1776
1801
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1777
1802
  disabled: disabled || loading,
1778
- popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1803
+ popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1779
1804
  "data-name": "creatable-autocomplete"
1780
1805
  }
1781
1806
  );
@@ -1854,7 +1879,7 @@ function _MultipleAutocomplete({
1854
1879
  getLimitTagsText: getLimitTagsText ?? getDefaultLimitTagsText,
1855
1880
  disableCloseOnSelect,
1856
1881
  disabled: disabled || loading,
1857
- popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1882
+ popupIcon: loading ? /* @__PURE__ */ jsx(CircularProgress$1, { size: 18, color: "inherit" }) : /* @__PURE__ */ jsx(ArrowDown, {}),
1858
1883
  "data-name": "multiple-autocomplete"
1859
1884
  }
1860
1885
  );
@@ -5127,7 +5152,7 @@ const SearchIcon = styled(Search, {
5127
5152
  const ClearSearchIcon = styled(Cancel)(({ theme }) => ({
5128
5153
  color: `${theme.palette.text.hint} !important`
5129
5154
  }));
5130
- const LoadingSearchIcon = styled(CircularProgress)(({ theme }) => ({
5155
+ const LoadingSearchIcon = styled(CircularProgress$1)(({ theme }) => ({
5131
5156
  svg: {
5132
5157
  color: `${theme.palette.primary.main} !important`
5133
5158
  }
@@ -5788,7 +5813,7 @@ function FilesAction({
5788
5813
  handleOpen,
5789
5814
  inProgress
5790
5815
  }) {
5791
- return /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: inProgress ? /* @__PURE__ */ jsx(IconButton$1, { "aria-label": "Loading", disabled: true, size, children: /* @__PURE__ */ jsx(CircularProgress, { size: 18 }) }) : !hasFiles ? /* @__PURE__ */ jsx(
5816
+ return /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: inProgress ? /* @__PURE__ */ jsx(IconButton$1, { "aria-label": "Loading", disabled: true, size, children: /* @__PURE__ */ jsx(CircularProgress$1, { size: 18 }) }) : !hasFiles ? /* @__PURE__ */ jsx(
5792
5817
  Button$1,
5793
5818
  {
5794
5819
  onClick: handleOpen,
@@ -6183,6 +6208,7 @@ export {
6183
6208
  AutocompleteList,
6184
6209
  Avatar,
6185
6210
  Button,
6211
+ CircularProgress,
6186
6212
  CodeAreaDialog,
6187
6213
  CodeAreaDialogConfirmation,
6188
6214
  CodeAreaDialogContent,
@@ -1,10 +1,220 @@
1
1
  "use strict";
2
+ const material = require("@mui/material");
2
3
  const require$$0 = require("react-is");
3
4
  const jsxRuntime = require("react/jsx-runtime");
4
- const material = require("@mui/material");
5
5
  const React = require("react");
6
6
  const iconsMaterial = require("@mui/icons-material");
7
7
  const reactIntl = require("react-intl");
8
+ const COLOR_BLACK = "#2C3032";
9
+ const COLOR_WHITE = "#FFFFFF";
10
+ const COLOR_UNUSED = "#e91e63";
11
+ const baseColors = {
12
+ common: {
13
+ black: COLOR_BLACK,
14
+ white: COLOR_WHITE
15
+ },
16
+ neutral: {
17
+ 50: "#f8f9f9",
18
+ 100: "#e1e3e4",
19
+ 200: "#cbcdcf",
20
+ 300: "#b4b8ba",
21
+ 400: "#9da2a6",
22
+ 500: "#868d91",
23
+ 600: "#6f777c",
24
+ 700: "#595f63",
25
+ 800: "#43474a",
26
+ 900: COLOR_BLACK,
27
+ A100: "#ddddde",
28
+ A200: "#b9babb",
29
+ A400: "#7c7e7f",
30
+ A700: "#16191A"
31
+ },
32
+ blue: {
33
+ 100: "#B9DAF9",
34
+ 200: "#5DB2F6",
35
+ 300: "#358BE7",
36
+ 400: "#036FE2",
37
+ 500: "#024D9E"
38
+ },
39
+ green: {
40
+ 300: "#6BE2AD",
41
+ 400: "#47DB99",
42
+ 500: "#31996B"
43
+ },
44
+ lightGreen: {
45
+ 300: "#8CB24A",
46
+ 400: "#709F1D",
47
+ 500: "#435F11"
48
+ },
49
+ indigo: {
50
+ 300: "#34689F",
51
+ 400: "#024388",
52
+ 500: "#012C5A"
53
+ },
54
+ orange: {
55
+ 300: "#F4B134",
56
+ 400: "#F29E02",
57
+ 500: "#A96E01"
58
+ },
59
+ red: {
60
+ 300: "#CD593B",
61
+ 400: "#C1300B",
62
+ 500: "#872107"
63
+ },
64
+ qualitative: {
65
+ // CARTO colors
66
+ // TODO: Related discussion https://app.shortcut.com/cartoteam/story/264834/
67
+ bold: {
68
+ 0: "#7F3C8D",
69
+ 1: "#11A579",
70
+ 2: "#3969AC",
71
+ 3: "#F2B701",
72
+ 4: "#E73F74",
73
+ 5: "#80BA5A",
74
+ 6: "#E68310",
75
+ 7: "#008695",
76
+ 8: "#CF1C90",
77
+ 9: "#f97b72",
78
+ 10: "#4b4b8f",
79
+ 11: "#A5AA99"
80
+ }
81
+ },
82
+ shades: {
83
+ dark: {
84
+ 90: material.alpha(COLOR_BLACK, 0.9),
85
+ 60: material.alpha(COLOR_BLACK, 0.6),
86
+ 40: material.alpha(COLOR_BLACK, 0.4),
87
+ 25: material.alpha(COLOR_BLACK, 0.25),
88
+ 12: material.alpha(COLOR_BLACK, 0.12),
89
+ 8: material.alpha(COLOR_BLACK, 0.08),
90
+ 4: material.alpha(COLOR_BLACK, 0.04)
91
+ },
92
+ light: {
93
+ 90: material.alpha(COLOR_WHITE, 0.9),
94
+ 60: material.alpha(COLOR_WHITE, 0.6),
95
+ 40: material.alpha(COLOR_WHITE, 0.4),
96
+ 25: material.alpha(COLOR_WHITE, 0.25),
97
+ 12: material.alpha(COLOR_WHITE, 0.12),
98
+ 8: material.alpha(COLOR_WHITE, 0.08),
99
+ 4: material.alpha(COLOR_WHITE, 0.04)
100
+ }
101
+ }
102
+ };
103
+ const commonPalette = {
104
+ mode: "light",
105
+ contrastThreshold: 3,
106
+ tonalOffset: 0.2,
107
+ common: { ...baseColors.common },
108
+ primary: {
109
+ main: baseColors.blue[400],
110
+ dark: baseColors.blue[500],
111
+ light: baseColors.blue[300],
112
+ contrastText: baseColors.common.white,
113
+ background: material.alpha(baseColors.blue[400], 0.08),
114
+ relatedLight: "#EAF2FC",
115
+ relatedDark: COLOR_UNUSED
116
+ },
117
+ secondary: {
118
+ main: baseColors.green[400],
119
+ dark: baseColors.green[500],
120
+ light: baseColors.green[300],
121
+ contrastText: baseColors.common.black,
122
+ background: material.alpha(baseColors.green[400], 0.08),
123
+ relatedLight: "#EFFCF5",
124
+ relatedDark: COLOR_UNUSED
125
+ },
126
+ text: {
127
+ primary: baseColors.common.black,
128
+ secondary: baseColors.shades.dark[60],
129
+ disabled: baseColors.shades.dark[25],
130
+ hint: baseColors.shades.dark[40]
131
+ },
132
+ background: {
133
+ paper: baseColors.common.white,
134
+ default: baseColors.neutral[50]
135
+ },
136
+ action: {
137
+ active: baseColors.shades.dark[40],
138
+ hover: baseColors.shades.dark[8],
139
+ disabledBackground: baseColors.neutral[100],
140
+ disabled: baseColors.shades.dark[25],
141
+ selected: baseColors.shades.dark[12],
142
+ focus: baseColors.shades.dark[12],
143
+ activatedOpacity: 0.12,
144
+ hoverOpacity: 0.04,
145
+ selectedOpacity: 0.08,
146
+ disabledOpacity: 0.38,
147
+ focusOpacity: 0.12
148
+ },
149
+ info: {
150
+ main: baseColors.indigo[400],
151
+ dark: baseColors.indigo[500],
152
+ light: baseColors.indigo[300],
153
+ contrastText: baseColors.common.white,
154
+ relatedDark: "#0D2B4A",
155
+ relatedLight: "#E9EEF4",
156
+ background: COLOR_UNUSED
157
+ },
158
+ success: {
159
+ main: baseColors.lightGreen[400],
160
+ dark: baseColors.lightGreen[500],
161
+ light: baseColors.lightGreen[300],
162
+ contrastText: baseColors.common.white,
163
+ relatedDark: "#3D541A",
164
+ relatedLight: "#F2F5EB",
165
+ background: COLOR_UNUSED
166
+ },
167
+ warning: {
168
+ main: baseColors.orange[400],
169
+ dark: baseColors.orange[500],
170
+ light: baseColors.orange[300],
171
+ contrastText: baseColors.common.black,
172
+ relatedDark: "#78540F",
173
+ relatedLight: "#FEF6EA",
174
+ background: COLOR_UNUSED
175
+ },
176
+ error: {
177
+ main: baseColors.red[400],
178
+ light: baseColors.red[300],
179
+ dark: baseColors.red[500],
180
+ contrastText: baseColors.common.white,
181
+ relatedDark: "#622215",
182
+ relatedLight: "#F9EDEA",
183
+ background: COLOR_UNUSED
184
+ },
185
+ grey: {
186
+ ...baseColors.neutral
187
+ },
188
+ divider: baseColors.shades.dark[12],
189
+ // Custom common colors
190
+ default: {
191
+ main: baseColors.neutral[100],
192
+ dark: baseColors.neutral[200],
193
+ light: baseColors.neutral[50],
194
+ outlinedBorder: baseColors.shades.dark[25],
195
+ background: baseColors.shades.dark[4],
196
+ relatedLight: COLOR_UNUSED,
197
+ relatedDark: COLOR_UNUSED,
198
+ contrastText: COLOR_UNUSED
199
+ },
200
+ brand: {
201
+ navyBlue: "#162945",
202
+ locationRed: "#EB1510",
203
+ predictionBlue: "#1785FB",
204
+ softBlue: "#F2F6F9",
205
+ appBarMain: "#162945",
206
+ appBarContrastText: baseColors.common.white
207
+ },
208
+ white: {
209
+ ...baseColors.shades.light
210
+ },
211
+ black: {
212
+ ...baseColors.shades.dark
213
+ },
214
+ qualitative: {
215
+ ...baseColors.qualitative
216
+ }
217
+ };
8
218
  function getDefaultExportFromCjs(x) {
9
219
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
10
220
  }
@@ -5767,6 +5977,7 @@ exports.NOTIFICATION_DURATION_IN_MS = NOTIFICATION_DURATION_IN_MS;
5767
5977
  exports.SPACING = SPACING;
5768
5978
  exports.TablePaginationActions = TablePaginationActions;
5769
5979
  exports.Typography = Typography;
5980
+ exports.commonPalette = commonPalette;
5770
5981
  exports.ellipsisStyles = ellipsisStyles;
5771
5982
  exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
5772
5983
  exports.getSpacing = getSpacing;