@carto/meridian-ds 2.7.0-alpha-loader.6 → 2.8.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/CHANGELOG.md +7 -2
- package/dist/{Alert-CHyETxuP.js → Alert-BZPM5zpX.js} +1 -1
- package/dist/{Alert-DyUCYGVG.cjs → Alert-C4W0H_uN.cjs} +1 -1
- package/dist/{MenuItem-BLZz_nSA.cjs → MenuItem-CgF4QdGi.cjs} +1 -1
- package/dist/{MenuItem-CM00TU3e.js → MenuItem-DRUK149i.js} +1 -1
- package/dist/components/index.cjs +28 -80
- package/dist/components/index.js +30 -82
- package/dist/{css-utils-B9V_AMcv.cjs → css-utils-CH7es90t.cjs} +1 -212
- package/dist/{css-utils-Cr7ZvmiF.js → css-utils-CjUBRJVK.js} +5 -216
- package/dist/custom-icons/index.cjs +296 -226
- package/dist/custom-icons/index.js +296 -226
- package/dist/palette-utils-B9ybmwiI.cjs +304 -0
- package/dist/palette-utils-BHqJlHm9.js +288 -0
- package/dist/theme/index.cjs +83 -14
- package/dist/theme/index.js +76 -6
- package/dist/types/components/CircularProgress/CircularProgress.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts +13 -0
- package/dist/types/components/Dialog/DialogConfirmation/DialogConfirmation.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts +31 -0
- package/dist/types/components/Dialog/DialogHeader/DialogHeader.stories.d.ts.map +1 -1
- package/dist/types/components/Dialog/types.d.ts +7 -1
- package/dist/types/components/Dialog/types.d.ts.map +1 -1
- package/dist/types/components/Loader/Loader.d.ts +1 -39
- package/dist/types/components/Loader/Loader.d.ts.map +1 -1
- package/dist/types/components/Loader/Loader.stories.d.ts +1 -1
- package/dist/types/components/Loader/Loader.stories.d.ts.map +1 -1
- package/dist/types/components/Loader/index.d.ts +1 -1
- package/dist/types/components/Loader/index.d.ts.map +1 -1
- package/dist/types/components/Loader/types.d.ts +40 -0
- package/dist/types/components/Loader/types.d.ts.map +1 -0
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -4
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts.map +1 -1
- package/dist/types/custom-icons/CreateFolder.d.ts +4 -0
- package/dist/types/custom-icons/CreateFolder.d.ts.map +1 -0
- package/dist/types/custom-icons/FolderEmpty.d.ts +4 -0
- package/dist/types/custom-icons/FolderEmpty.d.ts.map +1 -0
- package/dist/types/custom-icons/SelectFeature.d.ts.map +1 -1
- package/dist/types/custom-icons/index.d.ts +2 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/theme/components/buttons.d.ts.map +1 -1
- package/dist/types/theme/components/stories/LinearProgress.stories.d.ts.map +1 -1
- package/dist/types/theme/types.d.ts +6 -0
- package/dist/types/theme/types.d.ts.map +1 -1
- package/dist/widgets/index.cjs +5 -5
- package/dist/widgets/index.js +3 -3
- package/package.json +1 -1
- package/dist/palette-utils-C5CHlLXB.cjs +0 -93
- package/dist/palette-utils-D99Ib0kC.js +0 -77
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
- New Loader component [#329](https://github.com/CartoDB/meridian-ds/pull/329)
|
|
6
|
-
|
|
7
5
|
## 2.0
|
|
8
6
|
|
|
7
|
+
### 2.8.0
|
|
8
|
+
|
|
9
|
+
- New Loader and CircularProgress components [#329](https://github.com/CartoDB/meridian-ds/pull/329)
|
|
10
|
+
- Dialog: improve customization [#313](https://github.com/CartoDB/meridian-ds/pull/313)
|
|
11
|
+
- ToggleButtonGroup: move styles to the theme [#319](https://github.com/CartoDB/meridian-ds/pull/319)
|
|
12
|
+
- Custom Icons: CreateFolder,FolderEmpty [#331](https://github.com/CartoDB/meridian-ds/pull/331)
|
|
13
|
+
|
|
9
14
|
### 2.7.0
|
|
10
15
|
|
|
11
16
|
- New SearchField component [#308](https://github.com/CartoDB/meridian-ds/pull/308)
|
|
@@ -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";
|
|
6
5
|
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");
|
|
7
6
|
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-
|
|
5
|
+
const cssUtils = require("./css-utils-CH7es90t.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,
|
|
4
|
+
import { f as MENU_ITEM_SIZE_DENSE, h as MENU_ITEM_SIZE_EXTENDED } from "./css-utils-CjUBRJVK.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-
|
|
8
|
-
const Alert$1 = require("../Alert-
|
|
7
|
+
const cssUtils = require("../css-utils-CH7es90t.cjs");
|
|
8
|
+
const Alert$1 = require("../Alert-C4W0H_uN.cjs");
|
|
9
9
|
const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
|
|
10
10
|
const OpenDiagonallyRight = require("../OpenDiagonallyRight-CpL4ROwg.cjs");
|
|
11
|
-
const MenuItem = require("../MenuItem-
|
|
11
|
+
const MenuItem = require("../MenuItem-CgF4QdGi.cjs");
|
|
12
12
|
require("cartocolor");
|
|
13
13
|
const reactWindow = require("react-window");
|
|
14
14
|
const reactCodemirror2 = require("react-codemirror2");
|
|
@@ -775,77 +775,8 @@ function _MultipleSelectField({
|
|
|
775
775
|
}
|
|
776
776
|
const MultipleSelectField = React.forwardRef(_MultipleSelectField);
|
|
777
777
|
const StyledToggleButtonGroup = material.styled(material.ToggleButtonGroup, {
|
|
778
|
-
shouldForwardProp: (prop) => prop !== "
|
|
779
|
-
})(
|
|
780
|
-
// Variants
|
|
781
|
-
...variant === "contained" && {
|
|
782
|
-
boxShadow: "none"
|
|
783
|
-
},
|
|
784
|
-
...variant === "unbounded" && {
|
|
785
|
-
boxShadow: "none",
|
|
786
|
-
borderRadius: theme.spacing(0.5),
|
|
787
|
-
"& .MuiDivider-root": {
|
|
788
|
-
height: theme.spacing(4),
|
|
789
|
-
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
790
|
-
height: theme.spacing(4)
|
|
791
|
-
},
|
|
792
|
-
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
793
|
-
height: "auto",
|
|
794
|
-
width: theme.spacing(4),
|
|
795
|
-
margin: `${theme.spacing(0.5, 0, 1)} !important`,
|
|
796
|
-
borderRadius: "0 !important"
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
"& .MuiToggleButton-sizeSmall": {
|
|
800
|
-
margin: 0,
|
|
801
|
-
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
802
|
-
margin: 0
|
|
803
|
-
},
|
|
804
|
-
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
805
|
-
height: theme.spacing(3)
|
|
806
|
-
},
|
|
807
|
-
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
808
|
-
height: "auto",
|
|
809
|
-
width: theme.spacing(3)
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
813
|
-
margin: 0,
|
|
814
|
-
"&:first-of-type": {
|
|
815
|
-
marginLeft: 0
|
|
816
|
-
},
|
|
817
|
-
"&:not(:last-of-type)": {
|
|
818
|
-
marginRight: theme.spacing(0.5)
|
|
819
|
-
}
|
|
820
|
-
},
|
|
821
|
-
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
822
|
-
".MuiToggleButtonGroup-grouped": {
|
|
823
|
-
margin: theme.spacing(0, 0.5)
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
827
|
-
".MuiToggleButtonGroup-grouped": {
|
|
828
|
-
margin: theme.spacing(0, 0, 0.5),
|
|
829
|
-
"&:not(:last-of-type)": {
|
|
830
|
-
marginRight: 0
|
|
831
|
-
},
|
|
832
|
-
"&:last-of-type": {
|
|
833
|
-
marginBottom: 0
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
// Colors
|
|
839
|
-
...backgroundColor === "primary" && {
|
|
840
|
-
backgroundColor: theme.palette.background.paper
|
|
841
|
-
},
|
|
842
|
-
...backgroundColor === "secondary" && {
|
|
843
|
-
backgroundColor: theme.palette.background.default
|
|
844
|
-
},
|
|
845
|
-
...backgroundColor === "transparent" && {
|
|
846
|
-
backgroundColor: "transparent"
|
|
847
|
-
}
|
|
848
|
-
}));
|
|
778
|
+
shouldForwardProp: (prop) => prop !== "backgroundColor"
|
|
779
|
+
})();
|
|
849
780
|
function _ToggleButtonGroup({
|
|
850
781
|
children,
|
|
851
782
|
variant = "floating",
|
|
@@ -861,6 +792,7 @@ function _ToggleButtonGroup({
|
|
|
861
792
|
StyledToggleButtonGroup,
|
|
862
793
|
{
|
|
863
794
|
...rest,
|
|
795
|
+
ref,
|
|
864
796
|
variant,
|
|
865
797
|
backgroundColor: resolvedBackgroundColor,
|
|
866
798
|
orientation,
|
|
@@ -870,7 +802,6 @@ function _ToggleButtonGroup({
|
|
|
870
802
|
"data-size": size,
|
|
871
803
|
"data-background-color": resolvedBackgroundColor,
|
|
872
804
|
"data-name": "toggle-button-group",
|
|
873
|
-
ref,
|
|
874
805
|
children
|
|
875
806
|
}
|
|
876
807
|
);
|
|
@@ -3302,6 +3233,8 @@ function DialogHeader({
|
|
|
3302
3233
|
"aria-label": ariaLabel,
|
|
3303
3234
|
closeIcon,
|
|
3304
3235
|
closeTooltipText,
|
|
3236
|
+
tooltipProps,
|
|
3237
|
+
iconButtonProps,
|
|
3305
3238
|
...otherProps
|
|
3306
3239
|
}) {
|
|
3307
3240
|
const closeTooltipLabel = cssUtils.useTranslationWithFallback(
|
|
@@ -3327,7 +3260,15 @@ function DialogHeader({
|
|
|
3327
3260
|
] }),
|
|
3328
3261
|
/* @__PURE__ */ jsxRuntime.jsxs(ItemsWrapper$1, { children: [
|
|
3329
3262
|
secondaryActions,
|
|
3330
|
-
onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3263
|
+
onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3264
|
+
material.Tooltip,
|
|
3265
|
+
{
|
|
3266
|
+
title: closeTooltipLabel,
|
|
3267
|
+
placement: "left",
|
|
3268
|
+
...tooltipProps,
|
|
3269
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { onClick: onClose, ...iconButtonProps, children: closeIcon || /* @__PURE__ */ jsxRuntime.jsx(CloseIcon, { "data-testid": "CloseIcon" }) })
|
|
3270
|
+
}
|
|
3271
|
+
)
|
|
3331
3272
|
] })
|
|
3332
3273
|
] }),
|
|
3333
3274
|
children
|
|
@@ -3591,10 +3532,13 @@ function DialogConfirmation({
|
|
|
3591
3532
|
opened,
|
|
3592
3533
|
"data-testid": dataTestId,
|
|
3593
3534
|
"aria-label": ariaLabel,
|
|
3535
|
+
slideProps,
|
|
3594
3536
|
...alertProps
|
|
3595
3537
|
}) {
|
|
3596
3538
|
const containerRef = React.useRef(null);
|
|
3597
3539
|
const theme = material.useTheme();
|
|
3540
|
+
const timeout = (slideProps == null ? void 0 : slideProps.timeout) ?? 350;
|
|
3541
|
+
const direction = (slideProps == null ? void 0 : slideProps.direction) ?? "up";
|
|
3598
3542
|
const handleClickAway = () => {
|
|
3599
3543
|
if (onClickAway) {
|
|
3600
3544
|
onClickAway();
|
|
@@ -3611,13 +3555,17 @@ function DialogConfirmation({
|
|
|
3611
3555
|
children: /* @__PURE__ */ jsxRuntime.jsx(ClickAwayListener, { onClickAway: handleClickAway, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3612
3556
|
material.Slide,
|
|
3613
3557
|
{
|
|
3614
|
-
direction: "up",
|
|
3615
|
-
in: opened,
|
|
3616
|
-
container: containerRef.current,
|
|
3617
3558
|
mountOnEnter: true,
|
|
3618
3559
|
unmountOnExit: true,
|
|
3619
3560
|
easing: theme.transitions.easing.easeOut,
|
|
3620
|
-
|
|
3561
|
+
direction,
|
|
3562
|
+
timeout,
|
|
3563
|
+
...slideProps,
|
|
3564
|
+
in: opened,
|
|
3565
|
+
container: containerRef.current,
|
|
3566
|
+
"data-name": "dialog-confirmation-slide",
|
|
3567
|
+
"data-direction": direction,
|
|
3568
|
+
"data-timeout": timeout,
|
|
3621
3569
|
children: /* @__PURE__ */ jsxRuntime.jsx(AnimationWrapper, { children: /* @__PURE__ */ jsxRuntime.jsxs(BackdropContent, { children: [
|
|
3622
3570
|
/* @__PURE__ */ jsxRuntime.jsx(DialogAlert, { severity, ...alertProps, children }),
|
|
3623
3571
|
/* @__PURE__ */ jsxRuntime.jsx(DialogActions, { children: actions })
|
package/dist/components/index.js
CHANGED
|
@@ -2,13 +2,13 @@ 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
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,
|
|
6
|
-
import { a } from "../css-utils-
|
|
7
|
-
import { S as ScreenReaderOnly, A as Alert$1 } from "../Alert-
|
|
8
|
-
import { L } from "../Alert-
|
|
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";
|
|
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-
|
|
11
|
+
import { M as MenuItem$1 } from "../MenuItem-DRUK149i.js";
|
|
12
12
|
import "cartocolor";
|
|
13
13
|
import { FixedSizeList } from "react-window";
|
|
14
14
|
import { Controlled, UnControlled } from "react-codemirror2";
|
|
@@ -775,77 +775,8 @@ function _MultipleSelectField({
|
|
|
775
775
|
}
|
|
776
776
|
const MultipleSelectField = forwardRef(_MultipleSelectField);
|
|
777
777
|
const StyledToggleButtonGroup = styled(ToggleButtonGroup$1, {
|
|
778
|
-
shouldForwardProp: (prop) => prop !== "
|
|
779
|
-
})(
|
|
780
|
-
// Variants
|
|
781
|
-
...variant === "contained" && {
|
|
782
|
-
boxShadow: "none"
|
|
783
|
-
},
|
|
784
|
-
...variant === "unbounded" && {
|
|
785
|
-
boxShadow: "none",
|
|
786
|
-
borderRadius: theme.spacing(0.5),
|
|
787
|
-
"& .MuiDivider-root": {
|
|
788
|
-
height: theme.spacing(4),
|
|
789
|
-
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
790
|
-
height: theme.spacing(4)
|
|
791
|
-
},
|
|
792
|
-
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
793
|
-
height: "auto",
|
|
794
|
-
width: theme.spacing(4),
|
|
795
|
-
margin: `${theme.spacing(0.5, 0, 1)} !important`,
|
|
796
|
-
borderRadius: "0 !important"
|
|
797
|
-
}
|
|
798
|
-
},
|
|
799
|
-
"& .MuiToggleButton-sizeSmall": {
|
|
800
|
-
margin: 0,
|
|
801
|
-
"&.MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
802
|
-
margin: 0
|
|
803
|
-
},
|
|
804
|
-
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
805
|
-
height: theme.spacing(3)
|
|
806
|
-
},
|
|
807
|
-
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
808
|
-
height: "auto",
|
|
809
|
-
width: theme.spacing(3)
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
813
|
-
margin: 0,
|
|
814
|
-
"&:first-of-type": {
|
|
815
|
-
marginLeft: 0
|
|
816
|
-
},
|
|
817
|
-
"&:not(:last-of-type)": {
|
|
818
|
-
marginRight: theme.spacing(0.5)
|
|
819
|
-
}
|
|
820
|
-
},
|
|
821
|
-
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
822
|
-
".MuiToggleButtonGroup-grouped": {
|
|
823
|
-
margin: theme.spacing(0, 0.5)
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
827
|
-
".MuiToggleButtonGroup-grouped": {
|
|
828
|
-
margin: theme.spacing(0, 0, 0.5),
|
|
829
|
-
"&:not(:last-of-type)": {
|
|
830
|
-
marginRight: 0
|
|
831
|
-
},
|
|
832
|
-
"&:last-of-type": {
|
|
833
|
-
marginBottom: 0
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
// Colors
|
|
839
|
-
...backgroundColor === "primary" && {
|
|
840
|
-
backgroundColor: theme.palette.background.paper
|
|
841
|
-
},
|
|
842
|
-
...backgroundColor === "secondary" && {
|
|
843
|
-
backgroundColor: theme.palette.background.default
|
|
844
|
-
},
|
|
845
|
-
...backgroundColor === "transparent" && {
|
|
846
|
-
backgroundColor: "transparent"
|
|
847
|
-
}
|
|
848
|
-
}));
|
|
778
|
+
shouldForwardProp: (prop) => prop !== "backgroundColor"
|
|
779
|
+
})();
|
|
849
780
|
function _ToggleButtonGroup({
|
|
850
781
|
children,
|
|
851
782
|
variant = "floating",
|
|
@@ -861,6 +792,7 @@ function _ToggleButtonGroup({
|
|
|
861
792
|
StyledToggleButtonGroup,
|
|
862
793
|
{
|
|
863
794
|
...rest,
|
|
795
|
+
ref,
|
|
864
796
|
variant,
|
|
865
797
|
backgroundColor: resolvedBackgroundColor,
|
|
866
798
|
orientation,
|
|
@@ -870,7 +802,6 @@ function _ToggleButtonGroup({
|
|
|
870
802
|
"data-size": size,
|
|
871
803
|
"data-background-color": resolvedBackgroundColor,
|
|
872
804
|
"data-name": "toggle-button-group",
|
|
873
|
-
ref,
|
|
874
805
|
children
|
|
875
806
|
}
|
|
876
807
|
);
|
|
@@ -3302,6 +3233,8 @@ function DialogHeader({
|
|
|
3302
3233
|
"aria-label": ariaLabel,
|
|
3303
3234
|
closeIcon,
|
|
3304
3235
|
closeTooltipText,
|
|
3236
|
+
tooltipProps,
|
|
3237
|
+
iconButtonProps,
|
|
3305
3238
|
...otherProps
|
|
3306
3239
|
}) {
|
|
3307
3240
|
const closeTooltipLabel = useTranslationWithFallback(
|
|
@@ -3327,7 +3260,15 @@ function DialogHeader({
|
|
|
3327
3260
|
] }),
|
|
3328
3261
|
/* @__PURE__ */ jsxs(ItemsWrapper$1, { children: [
|
|
3329
3262
|
secondaryActions,
|
|
3330
|
-
onClose && /* @__PURE__ */ jsx(
|
|
3263
|
+
onClose && /* @__PURE__ */ jsx(
|
|
3264
|
+
Tooltip,
|
|
3265
|
+
{
|
|
3266
|
+
title: closeTooltipLabel,
|
|
3267
|
+
placement: "left",
|
|
3268
|
+
...tooltipProps,
|
|
3269
|
+
children: /* @__PURE__ */ jsx(IconButton$1, { onClick: onClose, ...iconButtonProps, children: closeIcon || /* @__PURE__ */ jsx(CloseIcon, { "data-testid": "CloseIcon" }) })
|
|
3270
|
+
}
|
|
3271
|
+
)
|
|
3331
3272
|
] })
|
|
3332
3273
|
] }),
|
|
3333
3274
|
children
|
|
@@ -3591,10 +3532,13 @@ function DialogConfirmation({
|
|
|
3591
3532
|
opened,
|
|
3592
3533
|
"data-testid": dataTestId,
|
|
3593
3534
|
"aria-label": ariaLabel,
|
|
3535
|
+
slideProps,
|
|
3594
3536
|
...alertProps
|
|
3595
3537
|
}) {
|
|
3596
3538
|
const containerRef = useRef(null);
|
|
3597
3539
|
const theme = useTheme();
|
|
3540
|
+
const timeout = (slideProps == null ? void 0 : slideProps.timeout) ?? 350;
|
|
3541
|
+
const direction = (slideProps == null ? void 0 : slideProps.direction) ?? "up";
|
|
3598
3542
|
const handleClickAway = () => {
|
|
3599
3543
|
if (onClickAway) {
|
|
3600
3544
|
onClickAway();
|
|
@@ -3611,13 +3555,17 @@ function DialogConfirmation({
|
|
|
3611
3555
|
children: /* @__PURE__ */ jsx(ClickAwayListener$1, { onClickAway: handleClickAway, children: /* @__PURE__ */ jsx(
|
|
3612
3556
|
Slide,
|
|
3613
3557
|
{
|
|
3614
|
-
direction: "up",
|
|
3615
|
-
in: opened,
|
|
3616
|
-
container: containerRef.current,
|
|
3617
3558
|
mountOnEnter: true,
|
|
3618
3559
|
unmountOnExit: true,
|
|
3619
3560
|
easing: theme.transitions.easing.easeOut,
|
|
3620
|
-
|
|
3561
|
+
direction,
|
|
3562
|
+
timeout,
|
|
3563
|
+
...slideProps,
|
|
3564
|
+
in: opened,
|
|
3565
|
+
container: containerRef.current,
|
|
3566
|
+
"data-name": "dialog-confirmation-slide",
|
|
3567
|
+
"data-direction": direction,
|
|
3568
|
+
"data-timeout": timeout,
|
|
3621
3569
|
children: /* @__PURE__ */ jsx(AnimationWrapper, { children: /* @__PURE__ */ jsxs(BackdropContent, { children: [
|
|
3622
3570
|
/* @__PURE__ */ jsx(DialogAlert, { severity, ...alertProps, children }),
|
|
3623
3571
|
/* @__PURE__ */ jsx(DialogActions, { children: actions })
|
|
@@ -1,220 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const material = require("@mui/material");
|
|
3
2
|
const require$$0 = require("react-is");
|
|
4
3
|
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
|
-
};
|
|
218
8
|
function getDefaultExportFromCjs(x) {
|
|
219
9
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
220
10
|
}
|
|
@@ -5977,7 +5767,6 @@ exports.NOTIFICATION_DURATION_IN_MS = NOTIFICATION_DURATION_IN_MS;
|
|
|
5977
5767
|
exports.SPACING = SPACING;
|
|
5978
5768
|
exports.TablePaginationActions = TablePaginationActions;
|
|
5979
5769
|
exports.Typography = Typography;
|
|
5980
|
-
exports.commonPalette = commonPalette;
|
|
5981
5770
|
exports.ellipsisStyles = ellipsisStyles;
|
|
5982
5771
|
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
5983
5772
|
exports.getSpacing = getSpacing;
|