@carto/meridian-ds 2.5.5-alpha-translations.1 → 2.6.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 +5 -2
- package/dist/{Alert-CRVceJ9N.js → Alert-DHd9hCGz.js} +1 -1
- package/dist/{Alert-Dyw7Z9wJ.cjs → Alert-DOeOwxOe.cjs} +7 -7
- package/dist/{MenuItem-o51jnNjL.cjs → MenuItem-CYJN2OVU.cjs} +6 -6
- package/dist/{MenuItem-h41wtQTz.js → MenuItem-MUmADf3e.js} +1 -1
- package/dist/components/index.cjs +222 -76
- package/dist/components/index.js +161 -15
- package/dist/{TablePaginationActions-CMC_ZxDN.cjs → css-utils-CCi3p7os.cjs} +6 -0
- package/dist/{TablePaginationActions-DIFPc_wQ.js → css-utils-WejOmkiI.js} +10 -4
- package/dist/theme/index.cjs +108 -114
- package/dist/theme/index.js +7 -13
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts +117 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts +66 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.stories.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts +2 -0
- package/dist/types/components/EllipsisWithTooltip/EllipsisWithTooltip.test.d.ts.map +1 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts +3 -0
- package/dist/types/components/EllipsisWithTooltip/index.d.ts.map +1 -0
- package/dist/types/components/Link/Link.stories.d.ts +0 -7
- package/dist/types/components/Link/Link.stories.d.ts.map +1 -1
- package/dist/types/components/Tag/Tag.d.ts +176 -4
- package/dist/types/components/Tag/Tag.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/theme/components/forms.d.ts.map +1 -1
- package/dist/types/utils/css-utils.d.ts +14 -0
- package/dist/types/utils/css-utils.d.ts.map +1 -0
- package/dist/types/widgets/TableWidgetUI/TableWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/WrapperWidgetUI/WrapperWidgetUI.d.ts.map +1 -1
- package/dist/widgets/index.cjs +114 -119
- package/dist/widgets/index.js +4 -9
- package/package.json +1 -1
package/dist/theme/index.cjs
CHANGED
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
4
4
|
const material = require("@mui/material");
|
|
5
5
|
const paletteUtils = require("../palette-utils-B9ybmwiI.cjs");
|
|
6
6
|
const jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
const
|
|
7
|
+
const cssUtils = require("../css-utils-CCi3p7os.cjs");
|
|
8
8
|
const iconsMaterial = require("@mui/icons-material");
|
|
9
9
|
const ArrowDown = require("../ArrowDown-DJ0vhbsw.cjs");
|
|
10
10
|
const xDatePickers = require("@mui/x-date-pickers");
|
|
11
|
-
const MenuItem = require("../MenuItem-
|
|
11
|
+
const MenuItem = require("../MenuItem-CYJN2OVU.cjs");
|
|
12
12
|
const themeShadows = [
|
|
13
13
|
"none",
|
|
14
14
|
// 0
|
|
@@ -325,7 +325,7 @@ const dataDisplayOverrides = {
|
|
|
325
325
|
labelDisplayedRows: ({ from, to, count }) => {
|
|
326
326
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
327
327
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
328
|
-
|
|
328
|
+
cssUtils.Typography,
|
|
329
329
|
{
|
|
330
330
|
component: "span",
|
|
331
331
|
variant: "inherit",
|
|
@@ -337,7 +337,7 @@ const dataDisplayOverrides = {
|
|
|
337
337
|
` of ${count}`
|
|
338
338
|
] });
|
|
339
339
|
},
|
|
340
|
-
ActionsComponent:
|
|
340
|
+
ActionsComponent: cssUtils.TablePaginationActions
|
|
341
341
|
},
|
|
342
342
|
styleOverrides: {
|
|
343
343
|
root: () => ({
|
|
@@ -423,9 +423,9 @@ const dataDisplayOverrides = {
|
|
|
423
423
|
maxWidth: "192px",
|
|
424
424
|
padding: theme2.spacing(0, 0.5),
|
|
425
425
|
"& .MuiAvatar-root": {
|
|
426
|
-
width:
|
|
427
|
-
minWidth:
|
|
428
|
-
height:
|
|
426
|
+
width: cssUtils.ICON_SIZE_LARGE,
|
|
427
|
+
minWidth: cssUtils.ICON_SIZE_LARGE,
|
|
428
|
+
height: cssUtils.ICON_SIZE_LARGE,
|
|
429
429
|
margin: 0,
|
|
430
430
|
color: theme2.palette.secondary.contrastText,
|
|
431
431
|
backgroundColor: theme2.palette.background.paper,
|
|
@@ -436,9 +436,9 @@ const dataDisplayOverrides = {
|
|
|
436
436
|
marginLeft: theme2.spacing(0.5)
|
|
437
437
|
},
|
|
438
438
|
"& img": {
|
|
439
|
-
width:
|
|
440
|
-
minWidth:
|
|
441
|
-
height:
|
|
439
|
+
width: cssUtils.ICON_SIZE_LARGE,
|
|
440
|
+
minWidth: cssUtils.ICON_SIZE_LARGE,
|
|
441
|
+
height: cssUtils.ICON_SIZE_LARGE
|
|
442
442
|
},
|
|
443
443
|
"&.MuiChip-root.Mui-disabled": {
|
|
444
444
|
color: theme2.palette.text.disabled,
|
|
@@ -550,14 +550,14 @@ const dataDisplayOverrides = {
|
|
|
550
550
|
// Sizes
|
|
551
551
|
sizeSmall: ({ theme: theme2 }) => ({
|
|
552
552
|
"& img": {
|
|
553
|
-
width:
|
|
554
|
-
minWidth:
|
|
555
|
-
height:
|
|
553
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
554
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
555
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
556
556
|
},
|
|
557
557
|
"& .MuiAvatar-root": {
|
|
558
|
-
width:
|
|
559
|
-
minWidth:
|
|
560
|
-
height:
|
|
558
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
559
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
560
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
561
561
|
},
|
|
562
562
|
"& .MuiChip-icon": {
|
|
563
563
|
marginLeft: theme2.spacing(0.25)
|
|
@@ -574,8 +574,8 @@ const dataDisplayOverrides = {
|
|
|
574
574
|
padding: theme2.spacing(0, 0.5)
|
|
575
575
|
}),
|
|
576
576
|
deleteIcon: () => ({
|
|
577
|
-
width:
|
|
578
|
-
height:
|
|
577
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
578
|
+
height: cssUtils.ICON_SIZE_MEDIUM,
|
|
579
579
|
margin: 0,
|
|
580
580
|
marginLeft: "2px",
|
|
581
581
|
// Forced to a non-standard value to meet with design
|
|
@@ -705,22 +705,22 @@ const dataDisplayOverrides = {
|
|
|
705
705
|
MuiSvgIcon: {
|
|
706
706
|
styleOverrides: {
|
|
707
707
|
root: () => ({
|
|
708
|
-
fontSize:
|
|
708
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM
|
|
709
709
|
}),
|
|
710
710
|
fontSizeSmall: () => ({
|
|
711
|
-
fontSize:
|
|
711
|
+
fontSize: cssUtils.ICON_SIZE_SMALL
|
|
712
712
|
}),
|
|
713
713
|
fontSizeLarge: () => ({
|
|
714
|
-
fontSize:
|
|
714
|
+
fontSize: cssUtils.ICON_SIZE_LARGE
|
|
715
715
|
})
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
|
-
const sizeXsmall =
|
|
720
|
-
const sizeSmall =
|
|
721
|
-
const sizeMedium =
|
|
722
|
-
const sizeLarge =
|
|
723
|
-
const radius =
|
|
719
|
+
const sizeXsmall = cssUtils.getSpacing(2);
|
|
720
|
+
const sizeSmall = cssUtils.getSpacing(3);
|
|
721
|
+
const sizeMedium = cssUtils.getSpacing(4);
|
|
722
|
+
const sizeLarge = cssUtils.getSpacing(6);
|
|
723
|
+
const radius = cssUtils.getSpacing(0.5);
|
|
724
724
|
const buttonsOverrides = {
|
|
725
725
|
// Button Base
|
|
726
726
|
MuiButtonBase: {
|
|
@@ -731,10 +731,10 @@ const buttonsOverrides = {
|
|
|
731
731
|
root: () => ({
|
|
732
732
|
"& .MuiSvgIcon-root, & svg": {
|
|
733
733
|
display: "flex",
|
|
734
|
-
fontSize:
|
|
735
|
-
width:
|
|
736
|
-
minWidth:
|
|
737
|
-
height:
|
|
734
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
735
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
736
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
737
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
738
738
|
}
|
|
739
739
|
})
|
|
740
740
|
}
|
|
@@ -810,10 +810,10 @@ const buttonsOverrides = {
|
|
|
810
810
|
startIcon: ({ theme: theme2 }) => ({
|
|
811
811
|
marginRight: theme2.spacing(0.75),
|
|
812
812
|
"& .MuiSvgIcon-root, & svg": {
|
|
813
|
-
fontSize:
|
|
814
|
-
width:
|
|
815
|
-
minWidth:
|
|
816
|
-
height:
|
|
813
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
814
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
815
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
816
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
817
817
|
},
|
|
818
818
|
"&.MuiButton-iconSizeSmall": {
|
|
819
819
|
marginRight: theme2.spacing(0.5),
|
|
@@ -823,10 +823,10 @@ const buttonsOverrides = {
|
|
|
823
823
|
endIcon: ({ theme: theme2 }) => ({
|
|
824
824
|
marginLeft: theme2.spacing(0.75),
|
|
825
825
|
"& .MuiSvgIcon-root, & svg": {
|
|
826
|
-
fontSize:
|
|
827
|
-
width:
|
|
828
|
-
minWidth:
|
|
829
|
-
height:
|
|
826
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
827
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
828
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
829
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
830
830
|
},
|
|
831
831
|
"&.MuiButton-iconSizeSmall": {
|
|
832
832
|
marginLeft: theme2.spacing(0.5),
|
|
@@ -976,10 +976,10 @@ const buttonsOverrides = {
|
|
|
976
976
|
color: theme2.palette.text.secondary
|
|
977
977
|
},
|
|
978
978
|
"& .MuiSvgIcon-root, & svg": {
|
|
979
|
-
fontSize:
|
|
980
|
-
width:
|
|
981
|
-
minWidth:
|
|
982
|
-
height:
|
|
979
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
980
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
981
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
982
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
983
983
|
},
|
|
984
984
|
"& svg": {
|
|
985
985
|
fill: "currentColor",
|
|
@@ -1032,10 +1032,10 @@ const buttonsOverrides = {
|
|
|
1032
1032
|
width: sizeXsmall,
|
|
1033
1033
|
height: sizeXsmall,
|
|
1034
1034
|
"& .MuiSvgIcon-root, & svg": {
|
|
1035
|
-
fontSize:
|
|
1036
|
-
width:
|
|
1037
|
-
minWidth:
|
|
1038
|
-
height:
|
|
1035
|
+
fontSize: cssUtils.ICON_SIZE_SMALL,
|
|
1036
|
+
width: cssUtils.ICON_SIZE_SMALL,
|
|
1037
|
+
minWidth: cssUtils.ICON_SIZE_SMALL,
|
|
1038
|
+
height: cssUtils.ICON_SIZE_SMALL
|
|
1039
1039
|
}
|
|
1040
1040
|
})
|
|
1041
1041
|
},
|
|
@@ -1267,10 +1267,10 @@ const buttonsOverrides = {
|
|
|
1267
1267
|
boxShadow: theme2.shadows[6]
|
|
1268
1268
|
},
|
|
1269
1269
|
"& .MuiSvgIcon-root, & svg": {
|
|
1270
|
-
fontSize:
|
|
1271
|
-
width:
|
|
1272
|
-
minWidth:
|
|
1273
|
-
height:
|
|
1270
|
+
fontSize: cssUtils.ICON_SIZE_LARGE,
|
|
1271
|
+
width: cssUtils.ICON_SIZE_LARGE,
|
|
1272
|
+
minWidth: cssUtils.ICON_SIZE_LARGE,
|
|
1273
|
+
height: cssUtils.ICON_SIZE_LARGE
|
|
1274
1274
|
},
|
|
1275
1275
|
"&.MuiFab-extended": {
|
|
1276
1276
|
...theme2.typography.body1,
|
|
@@ -1296,10 +1296,10 @@ const buttonsOverrides = {
|
|
|
1296
1296
|
height: theme2.spacing(4),
|
|
1297
1297
|
minHeight: theme2.spacing(4),
|
|
1298
1298
|
"& .MuiSvgIcon-root, & svg": {
|
|
1299
|
-
fontSize:
|
|
1300
|
-
width:
|
|
1301
|
-
minWidth:
|
|
1302
|
-
height:
|
|
1299
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
1300
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
1301
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
1302
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
1303
1303
|
},
|
|
1304
1304
|
"&.MuiFab-extended": {
|
|
1305
1305
|
...theme2.typography.caption,
|
|
@@ -1461,9 +1461,7 @@ const formsOverrides = {
|
|
|
1461
1461
|
background: "transparent"
|
|
1462
1462
|
},
|
|
1463
1463
|
"& .MuiTypography-root": {
|
|
1464
|
-
|
|
1465
|
-
overflow: "hidden",
|
|
1466
|
-
textOverflow: "ellipsis"
|
|
1464
|
+
...cssUtils.ellipsisStyles
|
|
1467
1465
|
}
|
|
1468
1466
|
},
|
|
1469
1467
|
"& .MuiSelect-icon": {
|
|
@@ -1505,9 +1503,7 @@ const formsOverrides = {
|
|
|
1505
1503
|
...theme2.typography.body1,
|
|
1506
1504
|
"& input": {
|
|
1507
1505
|
padding: 0,
|
|
1508
|
-
|
|
1509
|
-
overflow: "hidden",
|
|
1510
|
-
textOverflow: "ellipsis",
|
|
1506
|
+
...cssUtils.ellipsisStyles,
|
|
1511
1507
|
"&::placeholder": {
|
|
1512
1508
|
opacity: 1,
|
|
1513
1509
|
color: theme2.palette.text.hint
|
|
@@ -1711,10 +1707,10 @@ const formsOverrides = {
|
|
|
1711
1707
|
marginTop: 0
|
|
1712
1708
|
},
|
|
1713
1709
|
"& .MuiSvgIcon-root, & svg": {
|
|
1714
|
-
fontSize:
|
|
1715
|
-
width:
|
|
1716
|
-
minWidth:
|
|
1717
|
-
height:
|
|
1710
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
1711
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
1712
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM,
|
|
1713
|
+
height: cssUtils.ICON_SIZE_MEDIUM,
|
|
1718
1714
|
color: theme2.palette.text.secondary
|
|
1719
1715
|
},
|
|
1720
1716
|
".Mui-disabled &": {
|
|
@@ -1836,9 +1832,7 @@ const formsOverrides = {
|
|
|
1836
1832
|
boxShadow: "none !important"
|
|
1837
1833
|
},
|
|
1838
1834
|
"& .MuiTypography-root": {
|
|
1839
|
-
|
|
1840
|
-
overflow: "hidden",
|
|
1841
|
-
textOverflow: "ellipsis"
|
|
1835
|
+
...cssUtils.ellipsisStyles
|
|
1842
1836
|
},
|
|
1843
1837
|
"&.MuiInputBase-inputSizeSmall": {
|
|
1844
1838
|
padding: theme2.spacing(0.75)
|
|
@@ -1980,8 +1974,8 @@ const formsOverrides = {
|
|
|
1980
1974
|
}
|
|
1981
1975
|
}),
|
|
1982
1976
|
popupIndicator: ({ theme: theme2 }) => ({
|
|
1983
|
-
width:
|
|
1984
|
-
height:
|
|
1977
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
1978
|
+
height: cssUtils.ICON_SIZE_MEDIUM,
|
|
1985
1979
|
cursor: "pointer",
|
|
1986
1980
|
"&:hover": {
|
|
1987
1981
|
backgroundColor: "transparent"
|
|
@@ -2018,7 +2012,7 @@ const formsOverrides = {
|
|
|
2018
2012
|
}),
|
|
2019
2013
|
option: ({ ownerState, theme: theme2 }) => ({
|
|
2020
2014
|
"&.MuiAutocomplete-option": {
|
|
2021
|
-
minHeight:
|
|
2015
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DEFAULT,
|
|
2022
2016
|
padding: theme2.spacing(0.5, 2),
|
|
2023
2017
|
...theme2.typography.body2,
|
|
2024
2018
|
transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
@@ -2228,7 +2222,7 @@ const navigationOverrides = {
|
|
|
2228
2222
|
"&.MuiMenu-paper": {
|
|
2229
2223
|
minWidth: theme2.spacing(8),
|
|
2230
2224
|
// 64px, defined by design
|
|
2231
|
-
maxHeight:
|
|
2225
|
+
maxHeight: cssUtils.MENU_LIST_MAX_SIZE,
|
|
2232
2226
|
// 312px, defined by design
|
|
2233
2227
|
"&:focus-visible": {
|
|
2234
2228
|
outline: "none !important",
|
|
@@ -2244,14 +2238,14 @@ const navigationOverrides = {
|
|
|
2244
2238
|
root: ({ theme: theme2 }) => ({
|
|
2245
2239
|
...theme2.typography.body2,
|
|
2246
2240
|
columnGap: theme2.spacing(1),
|
|
2247
|
-
minHeight:
|
|
2241
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DEFAULT,
|
|
2248
2242
|
padding: theme2.spacing(0.75, 1, 0.75, 1.5),
|
|
2249
2243
|
whiteSpace: "normal",
|
|
2250
2244
|
transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
2251
2245
|
[theme2.breakpoints.up("sm")]: {
|
|
2252
2246
|
// Overrides an unwanted Mui default style
|
|
2253
2247
|
"&.MuiButtonBase-root": {
|
|
2254
|
-
minHeight:
|
|
2248
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DEFAULT
|
|
2255
2249
|
}
|
|
2256
2250
|
},
|
|
2257
2251
|
"&:hover": {
|
|
@@ -2318,7 +2312,7 @@ const navigationOverrides = {
|
|
|
2318
2312
|
}
|
|
2319
2313
|
}),
|
|
2320
2314
|
dense: ({ theme: theme2 }) => ({
|
|
2321
|
-
minHeight:
|
|
2315
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DENSE,
|
|
2322
2316
|
paddingTop: 0,
|
|
2323
2317
|
paddingBottom: 0,
|
|
2324
2318
|
".MuiTypography-root": {
|
|
@@ -2328,7 +2322,7 @@ const navigationOverrides = {
|
|
|
2328
2322
|
[theme2.breakpoints.up("sm")]: {
|
|
2329
2323
|
// Overrides an unwanted Mui default style
|
|
2330
2324
|
"&.MuiButtonBase-root": {
|
|
2331
|
-
minHeight:
|
|
2325
|
+
minHeight: cssUtils.MENU_ITEM_SIZE_DENSE
|
|
2332
2326
|
}
|
|
2333
2327
|
}
|
|
2334
2328
|
})
|
|
@@ -2342,7 +2336,7 @@ const navigationOverrides = {
|
|
|
2342
2336
|
".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
|
|
2343
2337
|
minWidth: theme2.spacing(8),
|
|
2344
2338
|
// 64px, defined by design
|
|
2345
|
-
maxHeight:
|
|
2339
|
+
maxHeight: cssUtils.MENU_LIST_MAX_SIZE,
|
|
2346
2340
|
// 312px, defined by design
|
|
2347
2341
|
overflowY: "auto",
|
|
2348
2342
|
"&:focus-visible": {
|
|
@@ -2410,10 +2404,10 @@ const navigationOverrides = {
|
|
|
2410
2404
|
alignItems: "center",
|
|
2411
2405
|
gap: theme2.spacing(2),
|
|
2412
2406
|
"& .MuiSvgIcon-root": {
|
|
2413
|
-
fontSize:
|
|
2407
|
+
fontSize: cssUtils.ICON_SIZE_LARGE
|
|
2414
2408
|
},
|
|
2415
2409
|
".MuiMenuItem-root.MuiButtonBase-root &": {
|
|
2416
|
-
minWidth:
|
|
2410
|
+
minWidth: cssUtils.ICON_SIZE_MEDIUM
|
|
2417
2411
|
}
|
|
2418
2412
|
})
|
|
2419
2413
|
}
|
|
@@ -2426,7 +2420,7 @@ const navigationOverrides = {
|
|
|
2426
2420
|
width: theme2.spacing(4)
|
|
2427
2421
|
},
|
|
2428
2422
|
"& .MuiSvgIcon-root": {
|
|
2429
|
-
fontSize:
|
|
2423
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM
|
|
2430
2424
|
}
|
|
2431
2425
|
})
|
|
2432
2426
|
}
|
|
@@ -2498,7 +2492,7 @@ const navigationOverrides = {
|
|
|
2498
2492
|
alignItems: "center"
|
|
2499
2493
|
},
|
|
2500
2494
|
"& .MuiSvgIcon-root": {
|
|
2501
|
-
fontSize:
|
|
2495
|
+
fontSize: cssUtils.ICON_SIZE_MEDIUM,
|
|
2502
2496
|
marginRight: theme2.spacing(1)
|
|
2503
2497
|
}
|
|
2504
2498
|
}),
|
|
@@ -2830,8 +2824,8 @@ const feedbackOverrides = {
|
|
|
2830
2824
|
padding: 0,
|
|
2831
2825
|
marginRight: theme2.spacing(1),
|
|
2832
2826
|
svg: {
|
|
2833
|
-
width:
|
|
2834
|
-
height:
|
|
2827
|
+
width: cssUtils.ICON_SIZE_MEDIUM,
|
|
2828
|
+
height: cssUtils.ICON_SIZE_MEDIUM
|
|
2835
2829
|
}
|
|
2836
2830
|
}),
|
|
2837
2831
|
action: () => ({
|
|
@@ -2867,7 +2861,7 @@ const surfacesOverrides = {
|
|
|
2867
2861
|
flexDirection: "row",
|
|
2868
2862
|
alignItems: "center",
|
|
2869
2863
|
justifyContent: "space-between",
|
|
2870
|
-
height:
|
|
2864
|
+
height: cssUtils.APPBAR_SIZE,
|
|
2871
2865
|
backgroundColor: theme2.palette.brand.navyBlue,
|
|
2872
2866
|
color: theme2.palette.common.white,
|
|
2873
2867
|
boxShadow: theme2.shadows[0],
|
|
@@ -2875,7 +2869,7 @@ const surfacesOverrides = {
|
|
|
2875
2869
|
justifyContent: "space-between",
|
|
2876
2870
|
width: "100%",
|
|
2877
2871
|
padding: theme2.spacing(0, 1),
|
|
2878
|
-
minHeight:
|
|
2872
|
+
minHeight: cssUtils.APPBAR_SIZE
|
|
2879
2873
|
},
|
|
2880
2874
|
"& .MuiAvatar-root": {
|
|
2881
2875
|
width: theme2.spacing(4),
|
|
@@ -2973,17 +2967,17 @@ const CssBaseline = {
|
|
|
2973
2967
|
'input[type="search"]::-webkit-search-cancel-button': {
|
|
2974
2968
|
WebkitAppearance: "none",
|
|
2975
2969
|
appearance: "none",
|
|
2976
|
-
height:
|
|
2977
|
-
width:
|
|
2970
|
+
height: cssUtils.getSpacing(2),
|
|
2971
|
+
width: cssUtils.getSpacing(2),
|
|
2978
2972
|
display: "block",
|
|
2979
2973
|
backgroundImage: `url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)`,
|
|
2980
2974
|
backgroundRepeat: "no-repeat",
|
|
2981
|
-
backgroundSize:
|
|
2975
|
+
backgroundSize: cssUtils.getSpacing(2)
|
|
2982
2976
|
},
|
|
2983
2977
|
// Mapbox controls
|
|
2984
2978
|
".mapboxgl-ctrl.mapboxgl-ctrl-attrib": {
|
|
2985
|
-
padding:
|
|
2986
|
-
borderRadius:
|
|
2979
|
+
padding: cssUtils.getSpacing(0, 1),
|
|
2980
|
+
borderRadius: cssUtils.getSpacing(0.5, 0, 0, 0),
|
|
2987
2981
|
"& .mapboxgl-ctrl-attrib-inner": {
|
|
2988
2982
|
...themeTypography.overline,
|
|
2989
2983
|
textTransform: "none",
|
|
@@ -2994,11 +2988,11 @@ const CssBaseline = {
|
|
|
2994
2988
|
},
|
|
2995
2989
|
"&.mapboxgl-compact": {
|
|
2996
2990
|
backgroundColor: "transparent",
|
|
2997
|
-
right:
|
|
2998
|
-
bottom:
|
|
2991
|
+
right: cssUtils.getSpacing(0.5),
|
|
2992
|
+
bottom: cssUtils.getSpacing(2.5),
|
|
2999
2993
|
// Mobile
|
|
3000
2994
|
"@media (max-width: 600px)": {
|
|
3001
|
-
bottom:
|
|
2995
|
+
bottom: cssUtils.getSpacing(0.5)
|
|
3002
2996
|
},
|
|
3003
2997
|
"& .mapboxgl-ctrl-attrib-button": {
|
|
3004
2998
|
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cg%3E%3Crect%20fill='none'%20height='24'%20width='24'%20x='0'/%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath%20d='M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14%20c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14%20C10,9.25,11.28,9.16,11.88,9.14z%20M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z%20M12,20c-4.41,0-8-3.59-8-8%20s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z'%20fill='${(_e = paletteUtils.commonPalette.text) == null ? void 0 : _e.secondary}'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,
|
|
@@ -3012,9 +3006,9 @@ const CssBaseline = {
|
|
|
3012
3006
|
},
|
|
3013
3007
|
"& .mapboxgl-ctrl-attrib-inner": {
|
|
3014
3008
|
backgroundColor: "rgba(255,255,255,.8)",
|
|
3015
|
-
padding:
|
|
3016
|
-
borderRadius:
|
|
3017
|
-
marginRight:
|
|
3009
|
+
padding: cssUtils.getSpacing(0.5, 1),
|
|
3010
|
+
borderRadius: cssUtils.getSpacing(1.5),
|
|
3011
|
+
marginRight: cssUtils.getSpacing(2.5),
|
|
3018
3012
|
color: (_f = paletteUtils.commonPalette.text) == null ? void 0 : _f.secondary
|
|
3019
3013
|
},
|
|
3020
3014
|
"&.mapboxgl-compact-show": {
|
|
@@ -3034,15 +3028,15 @@ const cartoThemeOptions = {
|
|
|
3034
3028
|
breakpoints: {
|
|
3035
3029
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
3036
3030
|
values: {
|
|
3037
|
-
xs:
|
|
3031
|
+
xs: cssUtils.BREAKPOINTS.XS,
|
|
3038
3032
|
// 320 - 599
|
|
3039
|
-
sm:
|
|
3033
|
+
sm: cssUtils.BREAKPOINTS.SM,
|
|
3040
3034
|
// 600 - 959
|
|
3041
|
-
md:
|
|
3035
|
+
md: cssUtils.BREAKPOINTS.MD,
|
|
3042
3036
|
// 960 - 1279
|
|
3043
|
-
lg:
|
|
3037
|
+
lg: cssUtils.BREAKPOINTS.LG,
|
|
3044
3038
|
// 1280 - 1599
|
|
3045
|
-
xl:
|
|
3039
|
+
xl: cssUtils.BREAKPOINTS.XL
|
|
3046
3040
|
// 1600+
|
|
3047
3041
|
},
|
|
3048
3042
|
unit: "px",
|
|
@@ -3070,9 +3064,9 @@ const cartoThemeOptions = {
|
|
|
3070
3064
|
palette: paletteUtils.commonPalette,
|
|
3071
3065
|
shadows: themeShadows,
|
|
3072
3066
|
typography: themeTypography,
|
|
3073
|
-
spacingValue:
|
|
3067
|
+
spacingValue: cssUtils.SPACING,
|
|
3074
3068
|
// For situations where we can't use theme.spacing(), mainly math calculations.er
|
|
3075
|
-
spacing:
|
|
3069
|
+
spacing: cssUtils.SPACING,
|
|
3076
3070
|
// For custom spacing: https://material-ui.com/customization/spacing/#custom-spacing
|
|
3077
3071
|
shape: {
|
|
3078
3072
|
borderRadius: 4
|
|
@@ -3123,17 +3117,17 @@ const cartoThemeOptions = {
|
|
|
3123
3117
|
};
|
|
3124
3118
|
const theme = material.responsiveFontSizes(material.createTheme(cartoThemeOptions));
|
|
3125
3119
|
exports.getCartoColorStylePropsForItem = paletteUtils.getCartoColorStylePropsForItem;
|
|
3126
|
-
exports.APPBAR_SIZE =
|
|
3127
|
-
exports.BREAKPOINTS =
|
|
3128
|
-
exports.ICON_SIZE_LARGE =
|
|
3129
|
-
exports.ICON_SIZE_MEDIUM =
|
|
3130
|
-
exports.ICON_SIZE_SMALL =
|
|
3131
|
-
exports.MENU_ITEM_SIZE_DEFAULT =
|
|
3132
|
-
exports.MENU_ITEM_SIZE_DENSE =
|
|
3133
|
-
exports.MENU_ITEM_SIZE_EXTENDED =
|
|
3134
|
-
exports.MENU_LIST_MAX_SIZE =
|
|
3135
|
-
exports.NOTIFICATION_DURATION_IN_MS =
|
|
3136
|
-
exports.SPACING =
|
|
3137
|
-
exports.getSpacing =
|
|
3120
|
+
exports.APPBAR_SIZE = cssUtils.APPBAR_SIZE;
|
|
3121
|
+
exports.BREAKPOINTS = cssUtils.BREAKPOINTS;
|
|
3122
|
+
exports.ICON_SIZE_LARGE = cssUtils.ICON_SIZE_LARGE;
|
|
3123
|
+
exports.ICON_SIZE_MEDIUM = cssUtils.ICON_SIZE_MEDIUM;
|
|
3124
|
+
exports.ICON_SIZE_SMALL = cssUtils.ICON_SIZE_SMALL;
|
|
3125
|
+
exports.MENU_ITEM_SIZE_DEFAULT = cssUtils.MENU_ITEM_SIZE_DEFAULT;
|
|
3126
|
+
exports.MENU_ITEM_SIZE_DENSE = cssUtils.MENU_ITEM_SIZE_DENSE;
|
|
3127
|
+
exports.MENU_ITEM_SIZE_EXTENDED = cssUtils.MENU_ITEM_SIZE_EXTENDED;
|
|
3128
|
+
exports.MENU_LIST_MAX_SIZE = cssUtils.MENU_LIST_MAX_SIZE;
|
|
3129
|
+
exports.NOTIFICATION_DURATION_IN_MS = cssUtils.NOTIFICATION_DURATION_IN_MS;
|
|
3130
|
+
exports.SPACING = cssUtils.SPACING;
|
|
3131
|
+
exports.getSpacing = cssUtils.getSpacing;
|
|
3138
3132
|
exports.cartoThemeOptions = cartoThemeOptions;
|
|
3139
3133
|
exports.theme = theme;
|
package/dist/theme/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material"
|
|
|
3
3
|
import { c as commonPalette } from "../palette-utils-BHqJlHm9.js";
|
|
4
4
|
import { g } from "../palette-utils-BHqJlHm9.js";
|
|
5
5
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
6
|
-
import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE,
|
|
7
|
-
import {
|
|
6
|
+
import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, e as ellipsisStyles, M as MENU_ITEM_SIZE_DEFAULT, d as MENU_LIST_MAX_SIZE, f as MENU_ITEM_SIZE_DENSE, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../css-utils-WejOmkiI.js";
|
|
7
|
+
import { h, N } from "../css-utils-WejOmkiI.js";
|
|
8
8
|
import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined } from "@mui/icons-material";
|
|
9
9
|
import { A as ArrowDown } from "../ArrowDown-d6bxUL0F.js";
|
|
10
10
|
import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
|
|
11
|
-
import { M as MenuItem } from "../MenuItem-
|
|
11
|
+
import { M as MenuItem } from "../MenuItem-MUmADf3e.js";
|
|
12
12
|
const themeShadows = [
|
|
13
13
|
"none",
|
|
14
14
|
// 0
|
|
@@ -1461,9 +1461,7 @@ const formsOverrides = {
|
|
|
1461
1461
|
background: "transparent"
|
|
1462
1462
|
},
|
|
1463
1463
|
"& .MuiTypography-root": {
|
|
1464
|
-
|
|
1465
|
-
overflow: "hidden",
|
|
1466
|
-
textOverflow: "ellipsis"
|
|
1464
|
+
...ellipsisStyles
|
|
1467
1465
|
}
|
|
1468
1466
|
},
|
|
1469
1467
|
"& .MuiSelect-icon": {
|
|
@@ -1505,9 +1503,7 @@ const formsOverrides = {
|
|
|
1505
1503
|
...theme2.typography.body1,
|
|
1506
1504
|
"& input": {
|
|
1507
1505
|
padding: 0,
|
|
1508
|
-
|
|
1509
|
-
overflow: "hidden",
|
|
1510
|
-
textOverflow: "ellipsis",
|
|
1506
|
+
...ellipsisStyles,
|
|
1511
1507
|
"&::placeholder": {
|
|
1512
1508
|
opacity: 1,
|
|
1513
1509
|
color: theme2.palette.text.hint
|
|
@@ -1836,9 +1832,7 @@ const formsOverrides = {
|
|
|
1836
1832
|
boxShadow: "none !important"
|
|
1837
1833
|
},
|
|
1838
1834
|
"& .MuiTypography-root": {
|
|
1839
|
-
|
|
1840
|
-
overflow: "hidden",
|
|
1841
|
-
textOverflow: "ellipsis"
|
|
1835
|
+
...ellipsisStyles
|
|
1842
1836
|
},
|
|
1843
1837
|
"&.MuiInputBase-inputSizeSmall": {
|
|
1844
1838
|
padding: theme2.spacing(0.75)
|
|
@@ -3130,7 +3124,7 @@ export {
|
|
|
3130
3124
|
ICON_SIZE_SMALL,
|
|
3131
3125
|
MENU_ITEM_SIZE_DEFAULT,
|
|
3132
3126
|
MENU_ITEM_SIZE_DENSE,
|
|
3133
|
-
|
|
3127
|
+
h as MENU_ITEM_SIZE_EXTENDED,
|
|
3134
3128
|
MENU_LIST_MAX_SIZE,
|
|
3135
3129
|
N as NOTIFICATION_DURATION_IN_MS,
|
|
3136
3130
|
SPACING,
|