@carto/meridian-ds 3.0.2-alpha.f30ac88.245 → 3.0.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.
- package/CHANGELOG.md +6 -2
- package/README.md +0 -34
- package/dist/components/index.cjs +3 -0
- package/dist/components/index.js +3 -0
- package/dist/custom-icons/index.cjs +1375 -1307
- package/dist/custom-icons/index.js +1375 -1307
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts +0 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.stories.d.ts.map +1 -1
- package/dist/types/components/Autocomplete/types.d.ts +1 -2
- package/dist/types/components/Autocomplete/types.d.ts.map +1 -1
- package/dist/types/components/Button/Button.d.ts +0 -8
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts +10 -0
- package/dist/types/components/CodeArea/CodeArea.stories.d.ts.map +1 -1
- package/dist/types/components/CodeArea/CodeAreaTheme.d.ts.map +1 -1
- package/dist/types/components/Dialog/Dialog/Dialog.d.ts +0 -1
- package/dist/types/components/Dialog/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/Dialog/types.d.ts +8 -3
- package/dist/types/components/Dialog/types.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.d.ts +4 -39
- package/dist/types/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/types/components/IconButton/IconButton.stories.d.ts +0 -13
- package/dist/types/components/IconButton/IconButton.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/SelectField/SelectField.d.ts +0 -1
- package/dist/types/components/SelectField/SelectField/SelectField.d.ts.map +1 -1
- package/dist/types/components/SelectField/SelectField/SelectField.stories.d.ts.map +1 -1
- package/dist/types/components/SelectField/types.d.ts +0 -6
- package/dist/types/components/SelectField/types.d.ts.map +1 -1
- package/dist/types/components/SplitButton/SplitButton.d.ts +0 -27
- package/dist/types/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/types/components/Typography/Typography.d.ts +0 -3
- package/dist/types/components/Typography/Typography.d.ts.map +1 -1
- package/dist/types/custom-icons/PatternSolid.d.ts +4 -0
- package/dist/types/custom-icons/PatternSolid.d.ts.map +1 -0
- package/dist/types/custom-icons/SwatchPattern.d.ts +4 -0
- package/dist/types/custom-icons/SwatchPattern.d.ts.map +1 -0
- package/dist/types/custom-icons/__docs__/CustomIcons.stories.d.ts +1 -1
- package/dist/types/custom-icons/__figma__/PatternSolid.figma.d.ts +11 -0
- package/dist/types/custom-icons/__figma__/PatternSolid.figma.d.ts.map +1 -0
- package/dist/types/custom-icons/__figma__/SwatchPattern.figma.d.ts +11 -0
- package/dist/types/custom-icons/__figma__/SwatchPattern.figma.d.ts.map +1 -0
- package/dist/types/custom-icons/index.d.ts +2 -0
- package/dist/types/custom-icons/index.d.ts.map +1 -1
- package/dist/types/theme/components/buttons.d.ts.map +1 -1
- package/package.json +3 -12
- package/dist/bin/meridian-ds-mcp.js +0 -248
- package/dist/metadata.json +0 -715
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts +0 -26
- package/dist/types/components/Autocomplete/Autocomplete/Autocomplete.metadata.d.ts.map +0 -1
- package/dist/types/components/Button/Button.metadata.d.ts +0 -26
- package/dist/types/components/Button/Button.metadata.d.ts.map +0 -1
- package/dist/types/components/Dialog/Dialog/Dialog.metadata.d.ts +0 -26
- package/dist/types/components/Dialog/Dialog/Dialog.metadata.d.ts.map +0 -1
- package/dist/types/components/IconButton/IconButton.metadata.d.ts +0 -15
- package/dist/types/components/IconButton/IconButton.metadata.d.ts.map +0 -1
- package/dist/types/components/SelectField/SelectField/SelectField.metadata.d.ts +0 -26
- package/dist/types/components/SelectField/SelectField/SelectField.metadata.d.ts.map +0 -1
- package/dist/types/components/SplitButton/SplitButton.metadata.d.ts +0 -14
- package/dist/types/components/SplitButton/SplitButton.metadata.d.ts.map +0 -1
- package/dist/types/components/Typography/Typography.metadata.d.ts +0 -26
- package/dist/types/components/Typography/Typography.metadata.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
- fix(figma): sync Code Connect templates with the Meridian-DS Figma renames and add templates for the new `CopiableInputText` and `PasswordField` components [#436](https://github.com/CartoDB/meridian-ds/pull/436)
|
|
6
|
-
|
|
7
5
|
## 3.0
|
|
8
6
|
|
|
7
|
+
### 3.0.2
|
|
8
|
+
|
|
9
|
+
- fix(CodeArea): keep a comfortable right padding for long, wrapped values in read-only / `lineNumbers: false` blocks — wrapped content no longer touches the right edge [#448](https://github.com/CartoDB/meridian-ds/pull/448)
|
|
10
|
+
- fix(ToggleButtonGroup): keep all four corners rounded (every variant) when each button is wrapped in an extra element (e.g. a tooltip `<span>`) — round every grouped button position-independently instead of relying on `:first-of-type`/`:last-of-type`, which break when a wrapper sits between the group and its buttons [#447](https://github.com/CartoDB/meridian-ds/pull/447) [sc-556920]
|
|
11
|
+
- fix(figma): sync Code Connect templates with the Meridian-DS Figma renames and add templates for the new `CopiableInputText` and `PasswordField` components [#436](https://github.com/CartoDB/meridian-ds/pull/436)
|
|
12
|
+
|
|
9
13
|
### 3.0.1
|
|
10
14
|
|
|
11
15
|
- fix(ci): re-enable `Test Interaction` reliably on `ubuntu-24.04`. Pins Yarn 4 in-repo via `yarnPath`. Also standardizes all workflows on `ubuntu-24.04` and SHA-pins / bumps third-party actions [#431](https://github.com/CartoDB/meridian-ds/pull/431)
|
package/README.md
CHANGED
|
@@ -42,37 +42,3 @@ Meridian ships CARTO's custom icon set as React components under `@carto/meridia
|
|
|
42
42
|
## Figma integration
|
|
43
43
|
|
|
44
44
|
Meridian publishes `Figma Code Connect` templates for all components, so **AI coding agents using the Figma MCP server can read designs and generate Meridian-conformant code**: the right component, the right import path, only real prop values, and the encoded semantics of Meridian primitives. The same templates surface the matching snippet to developers inspecting an instance in Figma's Dev Mode. See setup, MCP install, and template-authoring details in the [Figma Code Connect documentation](https://meridian.carto.com/?path=/docs/figma-code-connect--docs).
|
|
45
|
-
|
|
46
|
-
## AI readiness
|
|
47
|
-
|
|
48
|
-
Meridian ships structured metadata so **AI coding agents in apps that depend on it generate correct Meridian code** — the right component, real prop values, and Meridian conventions instead of bare MUI. Knowledge splits two ways: exact props and types come from the package's TypeScript declarations (`.d.ts`, which the consumer's IDE/`tsc` already reads), and everything types can't express — which component to use and when, gotchas, the high-value MUI props, and real examples — comes from a metadata bundle served over MCP.
|
|
49
|
-
|
|
50
|
-
### Meridian MCP
|
|
51
|
-
|
|
52
|
-
The package ships an MCP server as the `meridian-ds-mcp` bin. In a repo that has `@carto/meridian-ds` installed, register it with the Claude Code CLI:
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
claude mcp add --scope project meridian-design-system -- npx meridian-ds-mcp
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
`--scope project` writes `.mcp.json` at the repo root — Claude Code loads it whether the team commits it (to share the server) or gitignores it:
|
|
59
|
-
|
|
60
|
-
```json
|
|
61
|
-
{
|
|
62
|
-
"mcpServers": {
|
|
63
|
-
"meridian-design-system": {
|
|
64
|
-
"command": "npx",
|
|
65
|
-
"args": ["meridian-ds-mcp"]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
It's a stdio server (a local command, not a hosted URL), so it needs no network — the bin reads the metadata bundle that ships inside the installed `@carto/meridian-ds`, so the agent's knowledge always matches the installed version.
|
|
72
|
-
|
|
73
|
-
It exposes four tools:
|
|
74
|
-
|
|
75
|
-
- `meridian_list_components` — discover components by description + keywords.
|
|
76
|
-
- `meridian_get_component` — when to use it, alternatives, and the high-value inherited MUI props.
|
|
77
|
-
- `meridian_get_examples` — real, copy-able example code.
|
|
78
|
-
- `meridian_get_conventions` — cross-cutting usage rules.
|
|
@@ -2285,6 +2285,9 @@ const CodeAreaTheme = material.styled(material.Box, {
|
|
|
2285
2285
|
"& .CodeMirror pre.CodeMirror-line, & .CodeMirror pre.CodeMirror-line-like": {
|
|
2286
2286
|
boxSizing: "border-box",
|
|
2287
2287
|
paddingLeft: 0,
|
|
2288
|
+
// CodeMirror ignores right padding on .CodeMirror-scroll once content fills
|
|
2289
|
+
// the width, so the inset has to live on the line itself.
|
|
2290
|
+
paddingRight: theme.spacing(2),
|
|
2288
2291
|
paddingTop: theme.spacing(0.25),
|
|
2289
2292
|
lineHeight: 1.2
|
|
2290
2293
|
},
|
package/dist/components/index.js
CHANGED
|
@@ -2269,6 +2269,9 @@ const CodeAreaTheme = styled(Box, {
|
|
|
2269
2269
|
"& .CodeMirror pre.CodeMirror-line, & .CodeMirror pre.CodeMirror-line-like": {
|
|
2270
2270
|
boxSizing: "border-box",
|
|
2271
2271
|
paddingLeft: 0,
|
|
2272
|
+
// CodeMirror ignores right padding on .CodeMirror-scroll once content fills
|
|
2273
|
+
// the width, so the inset has to live on the line itself.
|
|
2274
|
+
paddingRight: theme.spacing(2),
|
|
2272
2275
|
paddingTop: theme.spacing(0.25),
|
|
2273
2276
|
lineHeight: 1.2
|
|
2274
2277
|
},
|