@carto/meridian-ds 1.4.3-alpha-codemirror.6 → 1.4.3-alpha-tag.3

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 (58) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/{Alert-CpgfD3bq.js → Alert--QYebQp3.js} +1 -1
  3. package/dist/{Alert-ChcvNOU6.cjs → Alert-DFaAeTZf.cjs} +3 -3
  4. package/dist/{palette-CD5ph5A-.cjs → TablePaginationActions-BG2gWq0M.cjs} +3 -232
  5. package/dist/{palette-DI1CmQ2J.js → TablePaginationActions-Dit3VW-A.js} +5 -234
  6. package/dist/components/index.cjs +236 -1098
  7. package/dist/components/index.js +202 -1064
  8. package/dist/custom-icons/index.cjs +390 -339
  9. package/dist/custom-icons/index.js +390 -339
  10. package/dist/paletteUtils-B9ybmwiI.cjs +304 -0
  11. package/dist/paletteUtils-BHqJlHm9.js +288 -0
  12. package/dist/theme/index.cjs +103 -103
  13. package/dist/theme/index.js +4 -3
  14. package/dist/types/components/molecules/Tag.d.ts +31 -0
  15. package/dist/types/components/molecules/Tag.d.ts.map +1 -0
  16. package/dist/types/components/molecules/index.d.ts +2 -0
  17. package/dist/types/components/molecules/index.d.ts.map +1 -1
  18. package/dist/types/components/organisms/index.d.ts +0 -2
  19. package/dist/types/components/organisms/index.d.ts.map +1 -1
  20. package/dist/types/localization/en.d.ts +0 -6
  21. package/dist/types/localization/en.d.ts.map +1 -1
  22. package/dist/types/localization/es.d.ts +0 -6
  23. package/dist/types/localization/es.d.ts.map +1 -1
  24. package/dist/types/localization/id.d.ts +0 -6
  25. package/dist/types/localization/id.d.ts.map +1 -1
  26. package/dist/types/localization/index.d.ts +0 -18
  27. package/dist/types/localization/index.d.ts.map +1 -1
  28. package/dist/widgets/index.cjs +136 -136
  29. package/dist/widgets/index.js +3 -3
  30. package/package.json +1 -6
  31. package/dist/OpenDiagonallyRight-5HZXh46V.js +0 -59
  32. package/dist/OpenDiagonallyRight-BrRyCV4Q.cjs +0 -58
  33. package/dist/paletteUtils-DEHchy2r.cjs +0 -93
  34. package/dist/paletteUtils-DTaXyq2Z.js +0 -77
  35. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +0 -16
  36. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +0 -1
  37. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +0 -16
  38. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +0 -1
  39. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +0 -10
  40. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +0 -1
  41. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +0 -8
  42. package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +0 -1
  43. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +0 -4
  44. package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +0 -1
  45. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +0 -12
  46. package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +0 -1
  47. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +0 -9
  48. package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +0 -1
  49. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +0 -26
  50. package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +0 -1
  51. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +0 -7
  52. package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +0 -1
  53. package/dist/types/components/organisms/CodeArea/index.d.ts +0 -9
  54. package/dist/types/components/organisms/CodeArea/index.d.ts.map +0 -1
  55. package/dist/types/components/organisms/CodeArea/types.d.ts +0 -38
  56. package/dist/types/components/organisms/CodeArea/types.d.ts.map +0 -1
  57. package/dist/types/components/organisms/CodeArea/utils.d.ts +0 -5
  58. package/dist/types/components/organisms/CodeArea/utils.d.ts.map +0 -1
@@ -2,13 +2,13 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import React, { useMemo, useState, useEffect, useCallback, useRef, forwardRef, createContext, useContext, useLayoutEffect, createRef } from "react";
3
3
  import { useTheme, styled, Box, Skeleton, Grid, Link, darken, Button, Divider, TextField, InputAdornment, Checkbox, Tooltip, IconButton, debounce, Slider, TableCell, Table, TableHead, TableRow, TableBody, TableContainer, TableSortLabel, TablePagination, Menu, MenuItem, SvgIcon, lighten, Typography as Typography$1, ClickAwayListener, ToggleButton, capitalize, ListItem, Chip, List, Paper, Popover, Select, ListItemText, Collapse, Drawer, Icon, LinearProgress } from "@mui/material";
4
4
  import { useIntl } from "react-intl";
5
- import { e as getDefaultExportFromCjs, u as useImperativeIntl, T as Typography, S as SPACING, B as BREAKPOINTS, a as TablePaginationActions, d as commonPalette, b as ICON_SIZE_MEDIUM } from "../palette-DI1CmQ2J.js";
5
+ import { d as getDefaultExportFromCjs, u as useImperativeIntl, T as Typography, S as SPACING, B as BREAKPOINTS, a as TablePaginationActions, b as ICON_SIZE_MEDIUM } from "../TablePaginationActions-Dit3VW-A.js";
6
6
  import _ReactEcharts from "echarts-for-react";
7
7
  import { FixedSizeList } from "react-window";
8
8
  import { S as Search, a as SwatchSquare } from "../SwatchSquare-DDi0beUM.js";
9
9
  import { ChevronLeft, ChevronRight, KeyboardArrowDown, ErrorOutline, Cancel, VisibilityOutlined, VisibilityOffOutlined, ExpandLess, ExpandMore, Close, LayersOutlined, MoreVert } from "@mui/icons-material";
10
- import { A as Alert } from "../Alert-CpgfD3bq.js";
11
- import { a as getColorByCategory, b as getPalette } from "../paletteUtils-DTaXyq2Z.js";
10
+ import { A as Alert } from "../Alert--QYebQp3.js";
11
+ import { c as commonPalette, a as getColorByCategory, b as getPalette } from "../paletteUtils-BHqJlHm9.js";
12
12
  function detectTouchscreen() {
13
13
  let result = false;
14
14
  if (window.PointerEvent && "maxTouchPoints" in navigator) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.4.3-alpha-codemirror.6",
3
+ "version": "1.4.3-alpha-tag.3",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -53,7 +53,6 @@
53
53
  "@testing-library/dom": "^10.4.0",
54
54
  "@testing-library/jest-dom": "^6.6.1",
55
55
  "@testing-library/react": "^16.0.1",
56
- "@types/codemirror": "^5.60.16",
57
56
  "@types/geojson": "7946.0.14",
58
57
  "@types/node": "22.10.2",
59
58
  "@types/react": "^18.3.11",
@@ -65,7 +64,6 @@
65
64
  "@vitejs/plugin-react-swc": "3.7.0",
66
65
  "@vitest/coverage-istanbul": "^2.1.3",
67
66
  "cartocolor": "5.0.2",
68
- "codemirror": "^5.65.19",
69
67
  "date-fns": "^2.29.1",
70
68
  "echarts": "5.6.0",
71
69
  "echarts-for-react": "3.0.2",
@@ -85,7 +83,6 @@
85
83
  "lint-staged": "15.2.9",
86
84
  "prettier": "3.3.3",
87
85
  "react": "18.3.1",
88
- "react-codemirror2": "^8.0.1",
89
86
  "react-dom": "18.3.1",
90
87
  "react-intl": "6.6.8",
91
88
  "react-window": "1.8.11",
@@ -101,11 +98,9 @@
101
98
  "@mui/material": ">=5.16.7",
102
99
  "@mui/x-date-pickers": "^7.11.0",
103
100
  "cartocolor": "5.0.2",
104
- "codemirror": ">=5.65.19",
105
101
  "echarts": ">=5.5.1",
106
102
  "echarts-for-react": ">=3.0.2",
107
103
  "react": ">=18.3.1",
108
- "react-codemirror2": ">=8.0.1",
109
104
  "react-dom": ">=18.3.1",
110
105
  "react-intl": ">=6.6.8",
111
106
  "react-window": ">=1.8.11"
@@ -1,59 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { forwardRef } from "react";
3
- import { createSvgIcon } from "@mui/material/utils";
4
- const Icon$1 = () => /* @__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: "m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",
10
- clipRule: "evenodd"
11
- }
12
- ) });
13
- const BaseSvgIcon$1 = createSvgIcon(Icon$1(), "CloseDiagonallyRight");
14
- function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
15
- return /* @__PURE__ */ jsx(
16
- BaseSvgIcon$1,
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 CloseDiagonallyRight$1 = forwardRef(CloseDiagonallyRight);
30
- const Icon = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
31
- "path",
32
- {
33
- fill: "currentColor",
34
- fillRule: "evenodd",
35
- d: "m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",
36
- clipRule: "evenodd"
37
- }
38
- ) });
39
- const BaseSvgIcon = createSvgIcon(Icon(), "OpenDiagonallyRight");
40
- function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
41
- return /* @__PURE__ */ jsx(
42
- BaseSvgIcon,
43
- {
44
- ref,
45
- viewBox: "0 0 24 24",
46
- sx: {
47
- width,
48
- height: height || width,
49
- ...sx
50
- },
51
- ...props
52
- }
53
- );
54
- }
55
- const OpenDiagonallyRight$1 = forwardRef(OpenDiagonallyRight);
56
- export {
57
- CloseDiagonallyRight$1 as C,
58
- OpenDiagonallyRight$1 as O
59
- };
@@ -1,58 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const React = require("react");
4
- const utils = require("@mui/material/utils");
5
- const Icon$1 = () => /* @__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: "m6.121 19.293 2.877-2.877V19H11v-6l-6 .007v1.994l2.584.001-2.877 2.877zM13 11l6-.007V8.999h-2.585l2.878-2.878-1.414-1.414L15 7.585V5H13z",
11
- clipRule: "evenodd"
12
- }
13
- ) });
14
- const BaseSvgIcon$1 = utils.createSvgIcon(Icon$1(), "CloseDiagonallyRight");
15
- function CloseDiagonallyRight({ width, height, sx, ...props }, ref) {
16
- return /* @__PURE__ */ jsxRuntime.jsx(
17
- BaseSvgIcon$1,
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 CloseDiagonallyRight$1 = React.forwardRef(CloseDiagonallyRight);
31
- const Icon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
32
- "path",
33
- {
34
- fill: "currentColor",
35
- fillRule: "evenodd",
36
- d: "m14.121 11.293 2.877-2.877V11H19V5l-6 .007v1.994l2.584.001-2.877 2.877zM5 19l6-.007v-1.994H8.415l2.878-2.878-1.414-1.414L7 15.585V13H5z",
37
- clipRule: "evenodd"
38
- }
39
- ) });
40
- const BaseSvgIcon = utils.createSvgIcon(Icon(), "OpenDiagonallyRight");
41
- function OpenDiagonallyRight({ width, height, sx, ...props }, ref) {
42
- return /* @__PURE__ */ jsxRuntime.jsx(
43
- BaseSvgIcon,
44
- {
45
- ref,
46
- viewBox: "0 0 24 24",
47
- sx: {
48
- width,
49
- height: height || width,
50
- ...sx
51
- },
52
- ...props
53
- }
54
- );
55
- }
56
- const OpenDiagonallyRight$1 = React.forwardRef(OpenDiagonallyRight);
57
- exports.CloseDiagonallyRight = CloseDiagonallyRight$1;
58
- exports.OpenDiagonallyRight = OpenDiagonallyRight$1;
@@ -1,93 +0,0 @@
1
- "use strict";
2
- const palette = require("./palette-CD5ph5A-.cjs");
3
- const cartoColors = require("cartocolor");
4
- function _interopNamespaceDefault(e) {
5
- const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
6
- if (e) {
7
- for (const k in e) {
8
- if (k !== "default") {
9
- const d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: () => e[k]
13
- });
14
- }
15
- }
16
- }
17
- n.default = e;
18
- return Object.freeze(n);
19
- }
20
- const cartoColors__namespace = /* @__PURE__ */ _interopNamespaceDefault(cartoColors);
21
- function getPaletteFromCartoColors(name, domainSize) {
22
- var _a;
23
- const palette2 = cartoColors__namespace[name];
24
- let paletteIndex = domainSize;
25
- if (!palette2) {
26
- throw new Error(
27
- `Palette "${name}" not found. Expected a CARTOColors string`
28
- );
29
- }
30
- const palettesColorVariants = Object.keys(palette2).filter((p) => p !== "tags").map(Number);
31
- const longestPaletteIndex = Math.max(...palettesColorVariants);
32
- const smallestPaletteIndex = Math.min(...palettesColorVariants);
33
- if (!Number.isInteger(domainSize) || domainSize > longestPaletteIndex) {
34
- paletteIndex = longestPaletteIndex;
35
- } else if (domainSize < smallestPaletteIndex) {
36
- paletteIndex = smallestPaletteIndex;
37
- }
38
- let colors = palette2[paletteIndex];
39
- if ((_a = palette2.tags) == null ? void 0 : _a.includes("qualitative")) {
40
- colors = colors == null ? void 0 : colors.slice(0, -1);
41
- }
42
- return colors;
43
- }
44
- function getPalette(colors, domainSize) {
45
- if (typeof colors === "string") {
46
- return getPaletteFromCartoColors(colors, domainSize);
47
- } else {
48
- return colors.map((c) => {
49
- if (Array.isArray(c)) {
50
- const [r, g, b] = c;
51
- return rgbToHex(r, g, b);
52
- } else {
53
- return c;
54
- }
55
- });
56
- }
57
- }
58
- function rgbToHex(r, g, b) {
59
- return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
60
- }
61
- function getCartoColorStylePropsForItem(theme, index) {
62
- var _a, _b;
63
- const palette$1 = (_b = (_a = palette.commonPalette) == null ? void 0 : _a.qualitative) == null ? void 0 : _b.bold;
64
- const colors = Object.values(palette$1 ?? {});
65
- const chosenIndex = index % colors.length;
66
- return {
67
- backgroundColor: colors[chosenIndex],
68
- color: theme.palette.getContrastText(colors[chosenIndex])
69
- };
70
- }
71
- function getColorByCategory(category, {
72
- palette: palette2,
73
- fallbackColor,
74
- colorMapping
75
- }) {
76
- const assignedColor = colorMapping[category];
77
- if (assignedColor) {
78
- return colorMapping[category];
79
- }
80
- if (!palette2 || palette2.length === 0) {
81
- return fallbackColor;
82
- }
83
- const nextFreeColorIndex = Math.min(
84
- Object.keys(colorMapping).length,
85
- palette2.length - 1
86
- );
87
- const newColor = palette2[nextFreeColorIndex];
88
- colorMapping[category] = newColor;
89
- return newColor;
90
- }
91
- exports.getCartoColorStylePropsForItem = getCartoColorStylePropsForItem;
92
- exports.getColorByCategory = getColorByCategory;
93
- exports.getPalette = getPalette;
@@ -1,77 +0,0 @@
1
- import { d as commonPalette } from "./palette-DI1CmQ2J.js";
2
- import * as cartoColors from "cartocolor";
3
- function getPaletteFromCartoColors(name, domainSize) {
4
- var _a;
5
- const palette = cartoColors[name];
6
- let paletteIndex = domainSize;
7
- if (!palette) {
8
- throw new Error(
9
- `Palette "${name}" not found. Expected a CARTOColors string`
10
- );
11
- }
12
- const palettesColorVariants = Object.keys(palette).filter((p) => p !== "tags").map(Number);
13
- const longestPaletteIndex = Math.max(...palettesColorVariants);
14
- const smallestPaletteIndex = Math.min(...palettesColorVariants);
15
- if (!Number.isInteger(domainSize) || domainSize > longestPaletteIndex) {
16
- paletteIndex = longestPaletteIndex;
17
- } else if (domainSize < smallestPaletteIndex) {
18
- paletteIndex = smallestPaletteIndex;
19
- }
20
- let colors = palette[paletteIndex];
21
- if ((_a = palette.tags) == null ? void 0 : _a.includes("qualitative")) {
22
- colors = colors == null ? void 0 : colors.slice(0, -1);
23
- }
24
- return colors;
25
- }
26
- function getPalette(colors, domainSize) {
27
- if (typeof colors === "string") {
28
- return getPaletteFromCartoColors(colors, domainSize);
29
- } else {
30
- return colors.map((c) => {
31
- if (Array.isArray(c)) {
32
- const [r, g, b] = c;
33
- return rgbToHex(r, g, b);
34
- } else {
35
- return c;
36
- }
37
- });
38
- }
39
- }
40
- function rgbToHex(r, g, b) {
41
- return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
42
- }
43
- function getCartoColorStylePropsForItem(theme, index) {
44
- var _a, _b;
45
- const palette = (_b = (_a = commonPalette) == null ? void 0 : _a.qualitative) == null ? void 0 : _b.bold;
46
- const colors = Object.values(palette ?? {});
47
- const chosenIndex = index % colors.length;
48
- return {
49
- backgroundColor: colors[chosenIndex],
50
- color: theme.palette.getContrastText(colors[chosenIndex])
51
- };
52
- }
53
- function getColorByCategory(category, {
54
- palette,
55
- fallbackColor,
56
- colorMapping
57
- }) {
58
- const assignedColor = colorMapping[category];
59
- if (assignedColor) {
60
- return colorMapping[category];
61
- }
62
- if (!palette || palette.length === 0) {
63
- return fallbackColor;
64
- }
65
- const nextFreeColorIndex = Math.min(
66
- Object.keys(colorMapping).length,
67
- palette.length - 1
68
- );
69
- const newColor = palette[nextFreeColorIndex];
70
- colorMapping[category] = newColor;
71
- return newColor;
72
- }
73
- export {
74
- getColorByCategory as a,
75
- getPalette as b,
76
- getCartoColorStylePropsForItem as g
77
- };
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { CodeAreaProps } from '../types';
3
- interface CodeAreaDialogProps extends CodeAreaProps {
4
- open: boolean;
5
- onClose: () => void;
6
- title?: string | ReactNode;
7
- showConfirmation?: boolean;
8
- onCancelConfirm?: () => void;
9
- onCloseConfirm?: () => void;
10
- footerProps?: object;
11
- 'data-testid'?: string;
12
- 'aria-label'?: string;
13
- }
14
- export default function CodeAreaDialog({ open, onClose, title, error, helperText, onClickFooter, disabledButtonFooter, labelIdButtonFooter, disabled, showConfirmation, onCancelConfirm, onCloseConfirm, footerProps, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaDialogProps): import("react/jsx-runtime").JSX.Element | null;
15
- export {};
16
- //# sourceMappingURL=CodeAreaDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,UAAU,mBAAoB,SAAQ,aAAa;IACjD,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,mBAAmB,kDAgErB"}
@@ -1,16 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { CartoAlertSeverity } from '../../..';
3
- interface Props {
4
- onClose?: () => void;
5
- onCancel?: () => void;
6
- cancelButton?: ReactNode;
7
- closeButton?: ReactNode;
8
- cancelLabelId?: string;
9
- contentLabelId?: string;
10
- titleLabelId?: string;
11
- severity?: CartoAlertSeverity;
12
- content?: ReactNode;
13
- }
14
- declare function CodeAreaDialogConfirmation({ onClose, onCancel, cancelLabelId, cancelButton, closeButton, contentLabelId, titleLabelId, severity, content, }: Props): import("react/jsx-runtime").JSX.Element | null;
15
- export default CodeAreaDialogConfirmation;
16
- //# sourceMappingURL=CodeAreaDialogConfirmation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogConfirmation.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EAAU,kBAAkB,EAAsB,MAAM,cAAc,CAAA;AAE7E,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,OAAO,CAAC,EAAE,SAAS,CAAA;CACpB;AAED,iBAAS,0BAA0B,CAAC,EAClC,OAAO,EACP,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,QAAoB,EACpB,OAAO,GACR,EAAE,KAAK,kDA+CP;AAED,eAAe,0BAA0B,CAAA"}
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface CodeAreaDialogContentProps {
3
- children: string | ReactNode;
4
- error?: boolean;
5
- withBorder?: boolean;
6
- withGutter?: boolean;
7
- }
8
- export default function CodeAreaDialogContent({ children, error, withBorder, withGutter, }: CodeAreaDialogContentProps): import("react/jsx-runtime").JSX.Element | null;
9
- export {};
10
- //# sourceMappingURL=CodeAreaDialogContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogContent.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA8BjC,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,QAAQ,EACR,KAAK,EACL,UAAiB,EACjB,UAAkB,GACnB,EAAE,0BAA0B,kDAQ5B"}
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- interface CodeAreaDialogErrorProps {
3
- children: string | ReactNode;
4
- hasDivider?: boolean;
5
- }
6
- export default function CodeAreaDialogError({ children, hasDivider, }: CodeAreaDialogErrorProps): import("react/jsx-runtime").JSX.Element | null;
7
- export {};
8
- //# sourceMappingURL=CodeAreaDialogError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaDialogError.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AA2CjC,UAAU,wBAAwB;IAChC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,QAAQ,EACR,UAAU,GACX,EAAE,wBAAwB,kDAiB1B"}
@@ -1,4 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { CodeAreaProps } from './types';
3
- export default function CodeAreaField({ value, defaultValue, validate, onChange, onBlur, onFocus, label, labelHelpTooltip, placeholder, type, disabled, copyValue, helperText, error, size, variant, onClickExpand, onClickFooter, disabledButtonFooter, labelIdButtonFooter, options, id, saveLoading, showSaveSnackbar, onCloseSaveSnackbar, fullScreen, isExpanded, ...props }: PropsWithChildren<CodeAreaProps>): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=CodeAreaField.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaField.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAA;AAgBnD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAgMvC,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,KAAK,EACL,IAAc,EACd,OAAoB,EACpB,aAAa,EACb,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,OAAO,EACP,EAAsB,EACtB,WAAW,EACX,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,aAAa,CAAC,2CAqGlC"}
@@ -1,12 +0,0 @@
1
- import { ButtonProps } from '../../atoms';
2
- interface Props extends ButtonProps {
3
- labelIdButtonFooter?: string;
4
- disabledButtonFooter?: boolean;
5
- withGutter?: boolean;
6
- onClickFooter?: () => void;
7
- showSnackbar?: boolean;
8
- onCloseSnackbar?: () => void;
9
- }
10
- export default function CodeAreaFooter({ onClickFooter, labelIdButtonFooter, disabledButtonFooter, withGutter, showSnackbar, onCloseSnackbar, loading, disabled, ...props }: Props): import("react/jsx-runtime").JSX.Element | null;
11
- export {};
12
- //# sourceMappingURL=CodeAreaFooter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaFooter.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaFooter.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAyBxD,UAAU,KAAM,SAAQ,WAAW;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,UAAiB,EACjB,YAAY,EACZ,eAAe,EACf,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,kDAqCP"}
@@ -1,9 +0,0 @@
1
- interface Props {
2
- onClickExpand?: () => void;
3
- disabled?: boolean;
4
- copyValue?: string;
5
- size?: 'small' | 'medium';
6
- }
7
- export default function CodeAreaHeader({ disabled, copyValue, onClickExpand, size, }: Props): import("react/jsx-runtime").JSX.Element | null;
8
- export {};
9
- //# sourceMappingURL=CodeAreaHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaHeader.tsx"],"names":[],"mappings":"AA8BA,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC1B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,QAAQ,EACR,SAAS,EACT,aAAa,EACb,IAAI,GACL,EAAE,KAAK,kDAsHP"}
@@ -1,26 +0,0 @@
1
- import { Editor } from 'codemirror';
2
- interface CodeAreaInputProps {
3
- value?: string;
4
- defaultValue?: string;
5
- options?: {
6
- mode?: string | {
7
- name: string;
8
- [key: string]: unknown;
9
- };
10
- [key: string]: unknown;
11
- };
12
- id?: string;
13
- onEditorDidMount?: (editor: Editor) => void;
14
- onChange?: (value: string) => void;
15
- onBlur?: (value: string) => void;
16
- onFocus?: () => void;
17
- placeholder?: string;
18
- disabled?: boolean;
19
- size?: 'small' | 'medium';
20
- height?: number | string;
21
- 'data-testid'?: string;
22
- 'aria-label'?: string;
23
- }
24
- export default function CodeAreaInput({ options, value, defaultValue, id, onEditorDidMount, onChange, onBlur, onFocus, placeholder, disabled, size, height, 'data-testid': dataTestId, 'aria-label': ariaLabel, ...props }: CodeAreaInputProps): import("react/jsx-runtime").JSX.Element;
25
- export {};
26
- //# sourceMappingURL=CodeAreaInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAUxC,OAAO,+BAA+B,CAAA;AACtC,OAAO,8BAA8B,CAAA;AAIrC,OAAO,4BAA4B,CAAA;AACnC,OAAO,0CAA0C,CAAA;AACjD,OAAO,wCAAwC,CAAA;AAC/C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,gCAAgC,CAAA;AACvC,OAAO,kCAAkC,CAAA;AAGzC,OAAO,sCAAsC,CAAA;AAC7C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,oCAAoC,CAAA;AAC3C,OAAO,2CAA2C,CAAA;AAClD,OAAO,wCAAwC,CAAA;AAG/C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,sCAAsC,CAAA;AAC7C,OAAO,wCAAwC,CAAA;AAC/C,OAAO,uCAAuC,CAAA;AAE9C,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,GAAG;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,CAAA;QACxD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KACvB,CAAA;IACD,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,OAAO,EACP,KAAK,EACL,YAAY,EACZ,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,WAAW,EACX,QAAQ,EACR,IAAc,EACd,MAAM,EACN,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,kBAAkB,2CA2GpB"}
@@ -1,7 +0,0 @@
1
- export declare const CodeAreaTheme: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
- ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
3
- }, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
4
- size?: "small" | "medium";
5
- height?: number | string;
6
- }, {}, {}>;
7
- //# sourceMappingURL=CodeAreaTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeAreaTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaTheme.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;WAGjB,OAAO,GAAG,QAAQ;aAChB,MAAM,GAAG,MAAM;UAqLvB,CAAA"}
@@ -1,9 +0,0 @@
1
- export { default as CodeAreaDialog } from './CodeAreaDialog/CodeAreaDialog';
2
- export { default as CodeAreaDialogContent } from './CodeAreaDialog/CodeAreaDialogContent';
3
- export { default as CodeAreaDialogConfirmation } from './CodeAreaDialog/CodeAreaDialogConfirmation';
4
- export { default as CodeAreaDialogError } from './CodeAreaDialog/CodeAreaDialogError';
5
- export { default as CodeAreaField } from './CodeAreaField';
6
- export { default as CodeAreaFooter } from './CodeAreaFooter';
7
- export { default as CodeAreaHeader } from './CodeAreaHeader';
8
- export { default as CodeAreaInput } from './CodeAreaInput';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AACzF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,6CAA6C,CAAA;AACnG,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AACrF,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1,38 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type CodeAreaOptions = {
3
- readOnly?: boolean;
4
- lineNumbers?: boolean;
5
- [key: string]: unknown;
6
- };
7
- export interface CodeAreaProps {
8
- value?: string;
9
- defaultValue?: string;
10
- validate?: (value: string) => boolean;
11
- onChange?: (value: string) => void;
12
- onBlur?: (value: string) => void;
13
- onFocus?: () => void;
14
- label?: string | ReactNode;
15
- labelHelpTooltip?: string | ReactNode;
16
- placeholder?: string;
17
- type?: 'optional' | 'required';
18
- disabled?: boolean;
19
- helperText?: string;
20
- error?: boolean;
21
- size?: 'small' | 'medium';
22
- variant?: 'filled' | 'outlined' | null;
23
- copyValue?: string;
24
- onClickExpand?: () => void;
25
- onClickFooter?: () => void;
26
- disabledButtonFooter?: boolean;
27
- labelIdButtonFooter?: string;
28
- options?: CodeAreaOptions;
29
- id?: string;
30
- saveLoading?: boolean | string;
31
- showSaveSnackbar?: boolean;
32
- onCloseSaveSnackbar?: () => void;
33
- height?: number | string;
34
- fullScreen?: boolean;
35
- isExpanded?: boolean;
36
- }
37
- export {};
38
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,CAAA;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,CAAA;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,IAAI,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAA;IAChC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB"}
@@ -1,5 +0,0 @@
1
- export declare function findCodeAreaControlCodeOccurrences(content: string): {
2
- from: number;
3
- to?: number;
4
- }[];
5
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM;UAEzC,MAAM;SAAO,MAAM;IA2B3C"}