@carto/meridian-ds 1.4.8 → 1.5.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.
@@ -2,9 +2,9 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import { createSvgIcon } from "@mui/material/utils";
4
4
  import { A } from "../ArrowDown-CY_wMVJT.js";
5
- import { C, O } from "../OpenDiagonallyRight-5HZXh46V.js";
5
+ import { A as A2, C, O } from "../OpenDiagonallyRight-CSm5GYYJ.js";
6
6
  import { S, a } from "../SwatchSquare-DhaaXt53.js";
7
- const Icon$30 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
7
+ const Icon$2$ = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
8
8
  "path",
9
9
  {
10
10
  fill: "currentColor",
@@ -13,10 +13,10 @@ const Icon$30 = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/200
13
13
  clipRule: "evenodd"
14
14
  }
15
15
  ) });
16
- const BaseSvgIcon$30 = createSvgIcon(Icon$30(), "AccessIn");
16
+ const BaseSvgIcon$2$ = createSvgIcon(Icon$2$(), "AccessIn");
17
17
  function AccessIn({ width, height, sx, ...props }, ref) {
18
18
  return /* @__PURE__ */ jsx(
19
- BaseSvgIcon$30,
19
+ BaseSvgIcon$2$,
20
20
  {
21
21
  ref,
22
22
  viewBox: "0 0 24 24",
@@ -30,17 +30,17 @@ function AccessIn({ width, height, sx, ...props }, ref) {
30
30
  );
31
31
  }
32
32
  const AccessIn$1 = forwardRef(AccessIn);
33
- const Icon$2$ = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
33
+ const Icon$2_ = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
34
34
  "path",
35
35
  {
36
36
  fill: "currentColor",
37
37
  d: "M4 8h4V4H4zM10 20h4v-4h-4zM8 20H4v-4h4zM4 14h4v-4H4zM14 14h-4v-4h4zM14 8h-4V4h4zM16 14h4v-4h-4zM20 20h-4v-4h4zM21 0h-2v3h-3v2h3v3h2V5h3V3h-3z"
38
38
  }
39
39
  ) });
40
- const BaseSvgIcon$2$ = createSvgIcon(Icon$2$(), "AddApp");
40
+ const BaseSvgIcon$2_ = createSvgIcon(Icon$2_(), "AddApp");
41
41
  function AddApp({ width, height, sx, ...props }, ref) {
42
42
  return /* @__PURE__ */ jsx(
43
- BaseSvgIcon$2$,
43
+ BaseSvgIcon$2_,
44
44
  {
45
45
  ref,
46
46
  viewBox: "0 0 24 24",
@@ -54,7 +54,7 @@ function AddApp({ width, height, sx, ...props }, ref) {
54
54
  );
55
55
  }
56
56
  const AddApp$1 = forwardRef(AddApp);
57
- const Icon$2_ = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
57
+ const Icon$2Z = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
58
58
  "path",
59
59
  {
60
60
  fill: "currentColor",
@@ -63,10 +63,10 @@ const Icon$2_ = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/200
63
63
  clipRule: "evenodd"
64
64
  }
65
65
  ) });
66
- const BaseSvgIcon$2_ = createSvgIcon(Icon$2_(), "AddSection");
66
+ const BaseSvgIcon$2Z = createSvgIcon(Icon$2Z(), "AddSection");
67
67
  function AddSection({ width, height, sx, ...props }, ref) {
68
68
  return /* @__PURE__ */ jsx(
69
- BaseSvgIcon$2_,
69
+ BaseSvgIcon$2Z,
70
70
  {
71
71
  ref,
72
72
  viewBox: "0 0 24 24",
@@ -80,17 +80,17 @@ function AddSection({ width, height, sx, ...props }, ref) {
80
80
  );
81
81
  }
82
82
  const AddSection$1 = forwardRef(AddSection);
83
- const Icon$2Z = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
83
+ const Icon$2Y = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
84
84
  "path",
85
85
  {
86
86
  fill: "currentColor",
87
87
  d: "M3 7v2h10V7zm4 6v2H3v2h4v2h2v-6zm14 4v-2H11v2zm-6-6h2V9h4V7h-4V5h-2z"
88
88
  }
89
89
  ) });
90
- const BaseSvgIcon$2Z = createSvgIcon(Icon$2Z(), "AdvancedSettings");
90
+ const BaseSvgIcon$2Y = createSvgIcon(Icon$2Y(), "AdvancedSettings");
91
91
  function AdvancedSettings({ width, height, sx, ...props }, ref) {
92
92
  return /* @__PURE__ */ jsx(
93
- BaseSvgIcon$2Z,
93
+ BaseSvgIcon$2Y,
94
94
  {
95
95
  ref,
96
96
  viewBox: "0 0 24 24",
@@ -104,7 +104,7 @@ function AdvancedSettings({ width, height, sx, ...props }, ref) {
104
104
  );
105
105
  }
106
106
  const AdvancedSettings$1 = forwardRef(AdvancedSettings);
107
- const Icon$2Y = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
107
+ const Icon$2X = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
108
108
  /* @__PURE__ */ jsx(
109
109
  "path",
110
110
  {
@@ -145,10 +145,10 @@ const Icon$2Y = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/20
145
145
  }
146
146
  )
147
147
  ] });
148
- const BaseSvgIcon$2Y = createSvgIcon(Icon$2Y(), "AiTool");
148
+ const BaseSvgIcon$2X = createSvgIcon(Icon$2X(), "AiTool");
149
149
  function AiTool({ width, height, sx, ...props }, ref) {
150
150
  return /* @__PURE__ */ jsx(
151
- BaseSvgIcon$2Y,
151
+ BaseSvgIcon$2X,
152
152
  {
153
153
  ref,
154
154
  viewBox: "0 0 24 24",
@@ -162,7 +162,7 @@ function AiTool({ width, height, sx, ...props }, ref) {
162
162
  );
163
163
  }
164
164
  const AiTool$1 = forwardRef(AiTool);
165
- const Icon$2X = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
165
+ const Icon$2W = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
166
166
  /* @__PURE__ */ jsx(
167
167
  "path",
168
168
  {
@@ -182,10 +182,10 @@ const Icon$2X = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/20
182
182
  }
183
183
  )
184
184
  ] });
185
- const BaseSvgIcon$2X = createSvgIcon(Icon$2X(), "Annotation");
185
+ const BaseSvgIcon$2W = createSvgIcon(Icon$2W(), "Annotation");
186
186
  function Annotation({ width, height, sx, ...props }, ref) {
187
187
  return /* @__PURE__ */ jsx(
188
- BaseSvgIcon$2X,
188
+ BaseSvgIcon$2W,
189
189
  {
190
190
  ref,
191
191
  viewBox: "0 0 24 24",
@@ -199,7 +199,7 @@ function Annotation({ width, height, sx, ...props }, ref) {
199
199
  );
200
200
  }
201
201
  const Annotation$1 = forwardRef(Annotation);
202
- const Icon$2W = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
202
+ const Icon$2V = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
203
203
  /* @__PURE__ */ jsx(
204
204
  "path",
205
205
  {
@@ -224,10 +224,10 @@ const Icon$2W = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/20
224
224
  }
225
225
  )
226
226
  ] });
227
- const BaseSvgIcon$2W = createSvgIcon(Icon$2W(), "ApiCall");
227
+ const BaseSvgIcon$2V = createSvgIcon(Icon$2V(), "ApiCall");
228
228
  function ApiCall({ width, height, sx, ...props }, ref) {
229
229
  return /* @__PURE__ */ jsx(
230
- BaseSvgIcon$2W,
230
+ BaseSvgIcon$2V,
231
231
  {
232
232
  ref,
233
233
  viewBox: "0 0 24 24",
@@ -241,7 +241,7 @@ function ApiCall({ width, height, sx, ...props }, ref) {
241
241
  );
242
242
  }
243
243
  const ApiCall$1 = forwardRef(ApiCall);
244
- const Icon$2V = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
244
+ const Icon$2U = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
245
245
  "path",
246
246
  {
247
247
  fill: "currentColor",
@@ -250,10 +250,10 @@ const Icon$2V = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/200
250
250
  clipRule: "evenodd"
251
251
  }
252
252
  ) });
253
- const BaseSvgIcon$2V = createSvgIcon(Icon$2V(), "ArrowLeft");
253
+ const BaseSvgIcon$2U = createSvgIcon(Icon$2U(), "ArrowLeft");
254
254
  function ArrowLeft({ width, height, sx, ...props }, ref) {
255
255
  return /* @__PURE__ */ jsx(
256
- BaseSvgIcon$2V,
256
+ BaseSvgIcon$2U,
257
257
  {
258
258
  ref,
259
259
  viewBox: "0 0 24 24",
@@ -267,7 +267,7 @@ function ArrowLeft({ width, height, sx, ...props }, ref) {
267
267
  );
268
268
  }
269
269
  const ArrowLeft$1 = forwardRef(ArrowLeft);
270
- const Icon$2U = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
270
+ const Icon$2T = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
271
271
  "path",
272
272
  {
273
273
  fill: "currentColor",
@@ -276,34 +276,8 @@ const Icon$2U = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/200
276
276
  clipRule: "evenodd"
277
277
  }
278
278
  ) });
279
- const BaseSvgIcon$2U = createSvgIcon(Icon$2U(), "ArrowRight");
279
+ const BaseSvgIcon$2T = createSvgIcon(Icon$2T(), "ArrowRight");
280
280
  function ArrowRight({ width, height, sx, ...props }, ref) {
281
- return /* @__PURE__ */ jsx(
282
- BaseSvgIcon$2U,
283
- {
284
- ref,
285
- viewBox: "0 0 24 24",
286
- sx: {
287
- width,
288
- height: height || width,
289
- ...sx
290
- },
291
- ...props
292
- }
293
- );
294
- }
295
- const ArrowRight$1 = forwardRef(ArrowRight);
296
- const Icon$2T = () => /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: /* @__PURE__ */ jsx(
297
- "path",
298
- {
299
- fill: "currentColor",
300
- fillRule: "evenodd",
301
- d: "M12.01 11.83 15.18 15l1.41-1.41L12.01 9l-4.59 4.59L8.84 15z",
302
- clipRule: "evenodd"
303
- }
304
- ) });
305
- const BaseSvgIcon$2T = createSvgIcon(Icon$2T(), "ArrowUp");
306
- function ArrowUp({ width, height, sx, ...props }, ref) {
307
281
  return /* @__PURE__ */ jsx(
308
282
  BaseSvgIcon$2T,
309
283
  {
@@ -318,7 +292,7 @@ function ArrowUp({ width, height, sx, ...props }, ref) {
318
292
  }
319
293
  );
320
294
  }
321
- const ArrowUp$1 = forwardRef(ArrowUp);
295
+ const ArrowRight$1 = forwardRef(ArrowRight);
322
296
  const Icon$2S = () => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", children: [
323
297
  /* @__PURE__ */ jsx(
324
298
  "path",
@@ -5804,7 +5778,7 @@ export {
5804
5778
  A as ArrowDown,
5805
5779
  ArrowLeft$1 as ArrowLeft,
5806
5780
  ArrowRight$1 as ArrowRight,
5807
- ArrowUp$1 as ArrowUp,
5781
+ A2 as ArrowUp,
5808
5782
  AsynchronousWait$1 as AsynchronousWait,
5809
5783
  Autostyle$1 as Autostyle,
5810
5784
  Avg$1 as Avg,
@@ -0,0 +1,17 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ type SplitButtonOption = {
3
+ label: string;
4
+ disabled?: boolean;
5
+ };
6
+ export type SplitButtonProps = {
7
+ options: SplitButtonOption[];
8
+ onClick: (option: SplitButtonOption) => void;
9
+ variant?: ButtonProps['variant'];
10
+ size?: ButtonProps['size'];
11
+ color?: ButtonProps['color'];
12
+ 'data-testid'?: string;
13
+ 'aria-label'?: string;
14
+ };
15
+ export default function SplitButton({ options, onClick, variant, size, color, ...otherProps }: SplitButtonProps): import("react/jsx-runtime").JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=SplitButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SplitButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAIL,WAAW,EAOZ,MAAM,eAAe,CAAA;AAetB,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAA;IAC5C,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,UAAU,EACd,EAAE,gBAAgB,2CAkFlB"}
@@ -1,4 +1,5 @@
1
1
  export { default as Button } from './Button';
2
+ export { default as SplitButton } from './SplitButton';
2
3
  export { default as LabelWithIndicator } from './LabelWithIndicator';
3
4
  export { default as PasswordField } from './PasswordField';
4
5
  export { default as SelectField } from './SelectField';
@@ -6,6 +7,7 @@ export { default as ToggleButtonGroup } from './ToggleButtonGroup';
6
7
  export { default as Typography } from './Typography';
7
8
  export { default as IconButton } from './IconButton';
8
9
  export type * from './Button';
10
+ export type * from './SplitButton';
9
11
  export type * from './LabelWithIndicator';
10
12
  export type * from './PasswordField';
11
13
  export type * from './SelectField';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA;AAEpD,mBAAmB,UAAU,CAAA;AAC7B,mBAAmB,sBAAsB,CAAA;AACzC,mBAAmB,iBAAiB,CAAA;AACpC,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,qBAAqB,CAAA;AACxC,mBAAmB,cAAc,CAAA;AACjC,mBAAmB,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,I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AAE,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;IACrB,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAmBD,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,qBAAqB,EACrB,aAAa,EAAE,UAAU,EACzB,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAwHpB"}
@@ -1 +1 @@
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
+ {"version":3,"file":"CodeAreaTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/CodeAreaTheme.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa;;;WAGjB,OAAO,GAAG,QAAQ;aAChB,MAAM,GAAG,MAAM;UAoMvB,CAAA"}
@@ -6,4 +6,5 @@ export { default as CodeAreaField } from './CodeAreaField';
6
6
  export { default as CodeAreaFooter } from './CodeAreaFooter';
7
7
  export { default as CodeAreaHeader } from './CodeAreaHeader';
8
8
  export { default as CodeAreaInput } from './CodeAreaInput';
9
+ export { CodeAreaMarkTextPattern } from './utils';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"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;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { Editor } from 'codemirror';
2
3
  type CodeAreaOptions = {
3
4
  readOnly?: boolean;
4
5
  lineNumbers?: boolean;
@@ -11,6 +12,7 @@ export interface CodeAreaProps {
11
12
  onChange?: (value: string) => void;
12
13
  onBlur?: (value: string) => void;
13
14
  onFocus?: () => void;
15
+ onEditorDidMount?: (editor: Editor) => void;
14
16
  label?: string | ReactNode;
15
17
  labelHelpTooltip?: string | ReactNode;
16
18
  placeholder?: string;
@@ -33,6 +35,8 @@ export interface CodeAreaProps {
33
35
  height?: number | string;
34
36
  fullScreen?: boolean;
35
37
  isExpanded?: boolean;
38
+ /** Whether to automatically fold control code blocks on initial mount */
39
+ autoFoldControlBlocks?: boolean;
36
40
  }
37
41
  export {};
38
42
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
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,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C,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;IACpB,yEAAyE;IACzE,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC"}
@@ -1,5 +1,39 @@
1
+ import { Editor } from 'codemirror';
1
2
  export declare function findCodeAreaControlCodeOccurrences(content: string): {
2
3
  from: number;
3
4
  to?: number;
4
5
  }[];
6
+ /**
7
+ * Generic utility to mark text patterns in CodeMirror editor
8
+ * Automatically clears existing markers for the same className before applying new ones
9
+ * @param editor - CodeMirror editor instance
10
+ * @param pattern - RegExp pattern to match text
11
+ * @param options - Text marker options (className, atomic, etc.)
12
+ * @param excludePatterns - Optional patterns to exclude (e.g., code blocks)
13
+ */
14
+ export declare function CodeAreaMarkTextPattern(editor: Editor, pattern: RegExp, options: {
15
+ className: string;
16
+ atomic?: boolean;
17
+ clearOnEnter?: boolean;
18
+ [key: string]: unknown;
19
+ }, excludePatterns?: RegExp[]): void;
20
+ /**
21
+ * Mark inline code (text wrapped in backticks) avoiding code blocks
22
+ * @param editor - CodeMirror editor instance
23
+ * @param className - CSS class to apply (defaults to 'cm-inline-code')
24
+ */
25
+ export declare function markInlineCode(editor: Editor, className?: string): void;
26
+ /**
27
+ * Mark inline links and emails (URLs/emails wrapped in angle brackets) avoiding code blocks
28
+ * @param editor - CodeMirror editor instance
29
+ * @param className - CSS class to apply (defaults to 'cm-inline-url')
30
+ */
31
+ export declare function markInlineLinks(editor: Editor, className?: string): void;
32
+ /**
33
+ * Mark code blocks (content between triple backticks) with a custom class
34
+ * This applies the class to all lines within code blocks using addLineClass
35
+ * @param editor - CodeMirror editor instance
36
+ * @param className - CSS class to apply (defaults to 'cm-code-block')
37
+ */
38
+ export declare function markCodeBlocks(editor: Editor, className?: string): void;
5
39
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/CodeArea/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAc,MAAM,YAAY,CAAA;AAEpD,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM;UAEzC,MAAM;SAAO,MAAM;IA2B3C;AA4CD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IACP,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB,EACD,eAAe,CAAC,EAAE,MAAM,EAAE,GACzB,IAAI,CA4CN;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,SAAS,SAAmB,GAC3B,IAAI,CAYN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,SAAS,SAAkB,GAC1B,IAAI,CAcN;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,SAAS,SAAkB,GAC1B,IAAI,CAwBN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/meridian-ds",
3
- "version": "1.4.8",
3
+ "version": "1.5.0",
4
4
  "description": "CARTO Meridian Design System",
5
5
  "type": "module",
6
6
  "scripts": {