@carto/meridian-ds 2.12.0 → 2.12.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{OpenDiagonallyRight-CaNa6uRI.cjs → OpenDiagonallyRight-BUZBgnkY.cjs} +3 -31
  3. package/dist/{OpenDiagonallyRight-y1A_rQiz.js → OpenDiagonallyRight-DQEM4RAg.js} +3 -31
  4. package/dist/components/index.cjs +9 -8
  5. package/dist/components/index.js +8 -7
  6. package/dist/custom-icons/index.cjs +1466 -1311
  7. package/dist/custom-icons/index.js +1466 -1311
  8. package/dist/types/components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
  9. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts +5 -2
  10. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.d.ts.map +1 -1
  11. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts +13 -1
  12. package/dist/types/components/SelectField/MultipleSelectField/MultipleSelectField.stories.d.ts.map +1 -1
  13. package/dist/types/components/SelectField/types.d.ts +8 -2
  14. package/dist/types/components/SelectField/types.d.ts.map +1 -1
  15. package/dist/types/custom-icons/McpServer.d.ts +4 -0
  16. package/dist/types/custom-icons/McpServer.d.ts.map +1 -0
  17. package/dist/types/custom-icons/SelectFeature.d.ts.map +1 -1
  18. package/dist/types/custom-icons/SortAscending.d.ts +4 -0
  19. package/dist/types/custom-icons/SortAscending.d.ts.map +1 -0
  20. package/dist/types/custom-icons/SortDescending.d.ts +4 -0
  21. package/dist/types/custom-icons/SortDescending.d.ts.map +1 -0
  22. package/dist/types/custom-icons/WorkflowExecution.d.ts +4 -0
  23. package/dist/types/custom-icons/WorkflowExecution.d.ts.map +1 -0
  24. package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts +1 -1
  25. package/dist/types/custom-icons/index.d.ts +4 -0
  26. package/dist/types/custom-icons/index.d.ts.map +1 -1
  27. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@
4
4
 
5
5
  ## 2.0
6
6
 
7
+ ### 2.12.2
8
+
9
+ - Fix: change default arrow onBack icon for DialogHeader component [#376] (https://github.com/CartoDB/meridian-ds/pull/376)
10
+
11
+ ### 2.12.1
12
+
13
+ - Allow customization of menu item label in MultipleSelectField [#359](https://github.com/CartoDB/meridian-ds/pull/359)
14
+ - Custom Icons [#374](https://github.com/CartoDB/meridian-ds/pull/374)
15
+
7
16
  ### 2.12.0
8
17
 
9
18
  - Added onBack button functionality to the DialogHeader component [#372](https://github.com/CartoDB/meridian-ds/pull/372)
@@ -2,33 +2,6 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const React = require("react");
4
4
  const material = require("@mui/material");
5
- const Icon$3 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
6
- "path",
7
- {
8
- fill: "currentColor",
9
- fillRule: "evenodd",
10
- d: "m11.835 11.995 3.17-3.17-1.41-1.41-4.59 4.58 4.59 4.59 1.41-1.42z",
11
- clipRule: "evenodd"
12
- }
13
- ) });
14
- const BaseSvgIcon$3 = material.createSvgIcon(Icon$3(), "ArrowLeft");
15
- function ArrowLeft({ width, height, sx, ...props }, ref) {
16
- return /* @__PURE__ */ jsxRuntime.jsx(
17
- BaseSvgIcon$3,
18
- {
19
- ref,
20
- viewBox: "0 0 24 24",
21
- sx: {
22
- width,
23
- height: height || width,
24
- ...sx
25
- },
26
- ...props
27
- }
28
- );
29
- }
30
- const ForwardedComponent$3 = React.forwardRef(ArrowLeft);
31
- ForwardedComponent$3.displayName = "ArrowLeft";
32
5
  const Icon$2 = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
33
6
  "path",
34
7
  {
@@ -110,7 +83,6 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
110
83
  }
111
84
  const ForwardedComponent = React.forwardRef(OpenDiagonallyRight);
112
85
  ForwardedComponent.displayName = "OpenDiagonallyRight";
113
- exports.ForwardedComponent = ForwardedComponent$3;
114
- exports.ForwardedComponent$1 = ForwardedComponent$2;
115
- exports.ForwardedComponent$2 = ForwardedComponent$1;
116
- exports.ForwardedComponent$3 = ForwardedComponent;
86
+ exports.ForwardedComponent = ForwardedComponent$2;
87
+ exports.ForwardedComponent$1 = ForwardedComponent$1;
88
+ exports.ForwardedComponent$2 = ForwardedComponent;
@@ -1,33 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createSvgIcon } from "@mui/material";
4
- const Icon$3 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
5
- "path",
6
- {
7
- fill: "currentColor",
8
- fillRule: "evenodd",
9
- d: "m11.835 11.995 3.17-3.17-1.41-1.41-4.59 4.58 4.59 4.59 1.41-1.42z",
10
- clipRule: "evenodd"
11
- }
12
- ) });
13
- const BaseSvgIcon$3 = createSvgIcon(Icon$3(), "ArrowLeft");
14
- function ArrowLeft({ width, height, sx, ...props }, ref) {
15
- return /* @__PURE__ */ jsx(
16
- BaseSvgIcon$3,
17
- {
18
- ref,
19
- viewBox: "0 0 24 24",
20
- sx: {
21
- width,
22
- height: height || width,
23
- ...sx
24
- },
25
- ...props
26
- }
27
- );
28
- }
29
- const ForwardedComponent$3 = forwardRef(ArrowLeft);
30
- ForwardedComponent$3.displayName = "ArrowLeft";
31
4
  const Icon$2 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
32
5
  "path",
33
6
  {
@@ -110,8 +83,7 @@ function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
110
83
  const ForwardedComponent = forwardRef(OpenDiagonallyRight);
111
84
  ForwardedComponent.displayName = "OpenDiagonallyRight";
112
85
  export {
113
- ForwardedComponent$3 as F,
114
- ForwardedComponent$2 as a,
115
- ForwardedComponent$1 as b,
116
- ForwardedComponent as c
86
+ ForwardedComponent$2 as F,
87
+ ForwardedComponent$1 as a,
88
+ ForwardedComponent as b
117
89
  };
@@ -7,7 +7,7 @@ const iconsMaterial = require("@mui/icons-material");
7
7
  const paletteUtils = require("../palette-utils-Y3_zSjv2.cjs");
8
8
  const ListItem = require("../ListItem-2aFaE2cn.cjs");
9
9
  const ArrowDown = require("../ArrowDown-84Oc8r9k.cjs");
10
- const OpenDiagonallyRight = require("../OpenDiagonallyRight-CaNa6uRI.cjs");
10
+ const OpenDiagonallyRight = require("../OpenDiagonallyRight-BUZBgnkY.cjs");
11
11
  const utils = require("../utils-BC7DF-VM.cjs");
12
12
  require("cartocolor");
13
13
  const ReactWindow = require("react-window");
@@ -203,7 +203,7 @@ function SplitButton({
203
203
  children: (_a = options[selectedIndex]) == null ? void 0 : _a.label
204
204
  }
205
205
  ),
206
- /* @__PURE__ */ jsxRuntime.jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$1, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}) })
206
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { disabled: loading || disabled, onClick: handleToggle, children: open ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}) })
207
207
  ]
208
208
  }
209
209
  ),
@@ -638,6 +638,7 @@ function _MultipleSelectField({
638
638
  noneSelectedText,
639
639
  selectedText,
640
640
  selectAllText,
641
+ renderItemLabel,
641
642
  ...props
642
643
  }, ref) {
643
644
  const {
@@ -771,7 +772,7 @@ function _MultipleSelectField({
771
772
  checked: currentOptions.includes(option.value)
772
773
  }
773
774
  ),
774
- /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { primary: option.label })
775
+ renderItemLabel ? renderItemLabel(option) : /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { primary: option.label })
775
776
  ]
776
777
  },
777
778
  option.value
@@ -2162,7 +2163,7 @@ function CodeAreaHeader({
2162
2163
  /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { children: copyLabel })
2163
2164
  ] }),
2164
2165
  /* @__PURE__ */ jsxRuntime.jsxs(utils.MenuItem, { onClick: onClickExpand, disabled, id: "expand", children: [
2165
- /* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$3, {}) }),
2166
+ /* @__PURE__ */ jsxRuntime.jsx(material.ListItemIcon, { children: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$2, {}) }),
2166
2167
  /* @__PURE__ */ jsxRuntime.jsx(material.ListItemText, { children: expandLabel })
2167
2168
  ] })
2168
2169
  ]
@@ -2200,7 +2201,7 @@ function CodeAreaHeader({
2200
2201
  color: "default",
2201
2202
  size,
2202
2203
  onClick: onClickExpand,
2203
- icon: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$3, {}),
2204
+ icon: /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$2, {}),
2204
2205
  disabled,
2205
2206
  tooltip: expandLabel,
2206
2207
  tooltipPlacement: "top"
@@ -3278,7 +3279,7 @@ function DialogHeader({
3278
3279
  onClick: onBack,
3279
3280
  tooltip: backTooltipLabel,
3280
3281
  tooltipPlacement: "bottom",
3281
- icon: backIcon || /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}),
3282
+ icon: backIcon || /* @__PURE__ */ jsxRuntime.jsx(iconsMaterial.ArrowBackOutlined, {}),
3282
3283
  ...backIconButtonProps
3283
3284
  }
3284
3285
  ),
@@ -3828,7 +3829,7 @@ function CodeAreaDialog({
3828
3829
  {
3829
3830
  title,
3830
3831
  onClose,
3831
- closeIcon: !onClickFooter && /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$2, {})
3832
+ closeIcon: !onClickFooter && /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$1, {})
3832
3833
  }
3833
3834
  ),
3834
3835
  /* @__PURE__ */ jsxRuntime.jsx(CodeAreaDialogContent, { error, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5184,7 +5185,7 @@ function _FilterDropdown({
5184
5185
  Button,
5185
5186
  {
5186
5187
  ...commonButtonProps,
5187
- endIcon: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent$1, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
5188
+ endIcon: isOpen ? /* @__PURE__ */ jsxRuntime.jsx(OpenDiagonallyRight.ForwardedComponent, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDown.ForwardedComponent, {}),
5188
5189
  ...buttonProps,
5189
5190
  children: menuLabel
5190
5191
  }
@@ -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 as ListItemText$1, Tooltip, ToggleButtonGroup as ToggleButtonGroup$1, Stack, Autocomplete as Autocomplete$1, Divider, ListItemIcon as ListItemIcon$1, createFilterOptions, alpha, useTheme, AppBar as AppBar$1, Toolbar as Toolbar$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, Chip as Chip$1, 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, ListSubheader as ListSubheader$1, Typography as Typography$1, Popover } from "@mui/material";
4
4
  import { ListItemAvatar, ListItemSecondaryAction } from "@mui/material";
5
- import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
5
+ import { OpenInNewOutlined, VisibilityOffOutlined, VisibilityOutlined, Cancel, ContentCopyOutlined, AddCircleOutlineOutlined, MenuOutlined, MoreVertOutlined, HelpOutline, ErrorOutline, CloseOutlined, ArrowBackOutlined, Check, TodayOutlined, StopCircleOutlined, ArrowUpwardOutlined } from "@mui/icons-material";
6
6
  import { u as useTranslationWithFallback, T as Typography, c as ICON_SIZE_SMALL, o as IconButton, f as MENU_ITEM_SIZE_DENSE, d as MENU_LIST_MAX_SIZE, l as MENU_ITEM_SIZE_EXTENDED, M as MENU_ITEM_SIZE_DEFAULT, A as APPBAR_SIZE, p as useImperativeIntl, b as ICON_SIZE_MEDIUM, N as NOTIFICATION_DURATION_IN_MS, e as ellipsisStyles, r as resolvePalettePath } from "../palette-utils-vw-vTQjG.js";
7
7
  import { a } from "../palette-utils-vw-vTQjG.js";
8
8
  import { S as ScreenReaderOnly, A as Alert$1, u as useListContextProps } from "../ListItem-DA0KFtZW.js";
9
9
  import { L, a as a2, b, c, d } from "../ListItem-DA0KFtZW.js";
10
10
  import { F as ForwardedComponent$1 } from "../ArrowDown-Bho9Ssnw.js";
11
- import { a as ForwardedComponent, c as ForwardedComponent$2, F as ForwardedComponent$3, b as ForwardedComponent$4 } from "../OpenDiagonallyRight-y1A_rQiz.js";
11
+ import { F as ForwardedComponent, b as ForwardedComponent$2, a as ForwardedComponent$3 } from "../OpenDiagonallyRight-DQEM4RAg.js";
12
12
  import { M as MenuItem$1, b as getThemeColor, S as SVG_SELECTOR } from "../utils-COdo3b_v.js";
13
13
  import "cartocolor";
14
14
  import * as ReactWindow from "react-window";
@@ -42,7 +42,7 @@ import { useIntl } from "react-intl";
42
42
  import { PickersDay as PickersDay$1 } from "@mui/x-date-pickers";
43
43
  import { TimePicker as TimePicker$1 } from "@mui/x-date-pickers/TimePicker";
44
44
  import { DateTimePicker as DateTimePicker$1 } from "@mui/x-date-pickers/DateTimePicker";
45
- import { F as ForwardedComponent$5 } from "../Search-Bx9LZ_VF.js";
45
+ import { F as ForwardedComponent$4 } from "../Search-Bx9LZ_VF.js";
46
46
  import DOMPurify from "dompurify";
47
47
  const IndicatorIcon = styled(Box)({
48
48
  position: "absolute",
@@ -622,6 +622,7 @@ function _MultipleSelectField({
622
622
  noneSelectedText,
623
623
  selectedText,
624
624
  selectAllText,
625
+ renderItemLabel,
625
626
  ...props
626
627
  }, ref) {
627
628
  const {
@@ -755,7 +756,7 @@ function _MultipleSelectField({
755
756
  checked: currentOptions.includes(option.value)
756
757
  }
757
758
  ),
758
- /* @__PURE__ */ jsx(ListItemText$1, { primary: option.label })
759
+ renderItemLabel ? renderItemLabel(option) : /* @__PURE__ */ jsx(ListItemText$1, { primary: option.label })
759
760
  ]
760
761
  },
761
762
  option.value
@@ -3262,7 +3263,7 @@ function DialogHeader({
3262
3263
  onClick: onBack,
3263
3264
  tooltip: backTooltipLabel,
3264
3265
  tooltipPlacement: "bottom",
3265
- icon: backIcon || /* @__PURE__ */ jsx(ForwardedComponent$3, {}),
3266
+ icon: backIcon || /* @__PURE__ */ jsx(ArrowBackOutlined, {}),
3266
3267
  ...backIconButtonProps
3267
3268
  }
3268
3269
  ),
@@ -3812,7 +3813,7 @@ function CodeAreaDialog({
3812
3813
  {
3813
3814
  title,
3814
3815
  onClose,
3815
- closeIcon: !onClickFooter && /* @__PURE__ */ jsx(ForwardedComponent$4, {})
3816
+ closeIcon: !onClickFooter && /* @__PURE__ */ jsx(ForwardedComponent$3, {})
3816
3817
  }
3817
3818
  ),
3818
3819
  /* @__PURE__ */ jsx(CodeAreaDialogContent, { error, children: /* @__PURE__ */ jsx(
@@ -5514,7 +5515,7 @@ function _MessageField({
5514
5515
  }
5515
5516
  const MessageField = forwardRef(_MessageField);
5516
5517
  MessageField.displayName = "MessageField";
5517
- const SearchIcon = styled(ForwardedComponent$5, {
5518
+ const SearchIcon = styled(ForwardedComponent$4, {
5518
5519
  shouldForwardProp: (prop) => prop !== "minimized" && prop !== "disabled"
5519
5520
  })(
5520
5521
  ({ theme, minimized, disabled }) => ({