@smwb/ui-mcp-solid 2.5.0 → 2.6.1

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.
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "IdentityBadgeGroup",
3
+ "description": "Row of IdentityBadges that collapses the surplus past max into a \"+N\" badge of the same size, with an accessible name and an optional click.",
4
+ "ssr": {
5
+ "safe": true,
6
+ "rendering": "universal"
7
+ },
8
+ "extends": [
9
+ "JSX.HTMLAttributes<HTMLSpanElement>"
10
+ ],
11
+ "inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
12
+ "styles": {
13
+ "base": [
14
+ "@smwb/ui-styles/less/foundation.less",
15
+ "@smwb/ui-styles/less/theme.less"
16
+ ],
17
+ "entries": [
18
+ "@smwb/ui-styles/less/components/identityBadge/identityBadge.entry.less"
19
+ ],
20
+ "dependencies": [],
21
+ "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/identityBadge/identityBadge.entry.less\";"
22
+ },
23
+ "props": {
24
+ "class": {
25
+ "type": "string | undefined",
26
+ "required": false,
27
+ "description": "Class name(s) for the group's root `<span>`."
28
+ },
29
+ "max": {
30
+ "type": "number | undefined",
31
+ "required": false,
32
+ "description": "Badges shown before the rest collapse into a \"+N\" badge; 3 unless given, never below 1."
33
+ },
34
+ "total": {
35
+ "type": "number | undefined",
36
+ "required": false,
37
+ "description": "The total the \"+N\" counts from; the number of child badges unless given."
38
+ },
39
+ "onSurplusClick": {
40
+ "type": "(() => void) | undefined",
41
+ "required": false,
42
+ "description": "Makes the \"+N\" badge a button; runs (with no arguments) on its click, Enter or Space."
43
+ },
44
+ "surplusAriaLabel": {
45
+ "type": "((count: number) => string) | undefined",
46
+ "required": false,
47
+ "description": "Accessible name (and tooltip) of the \"+N\" badge; `` `${count} more` `` unless given. Keep the number\nfirst (e.g. `` `${count} agents hidden` ``): the visible text is \"+2\", and a voice-control user says the\nnumber."
48
+ },
49
+ "data-testid": {
50
+ "type": "string | undefined",
51
+ "required": false,
52
+ "description": "Test id of the root; `identity-badge-group` unless given."
53
+ },
54
+ "ref": {
55
+ "type": "Ref<HTMLSpanElement>",
56
+ "required": false,
57
+ "description": "Ref. Optional. Type: Ref<HTMLSpanElement>."
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "IdentityBadge",
3
+ "description": "Compact outlined identity marker (role=img): an icon glyph and a short monospace text such as \"Op·x\", named by label, coloured by any accent (neutral by default, never a status colour); fits a TreeView row and a DagView node.",
4
+ "ssr": {
5
+ "safe": true,
6
+ "rendering": "universal"
7
+ },
8
+ "extends": [
9
+ "Omit<\n JSX.HTMLAttributes<HTMLSpanElement>,\n \"role\" | \"children\" | \"aria-label\" | \"title\"\n>"
10
+ ],
11
+ "inheritedAttributes": "Also accepts standard HTML attributes for the underlying element (see extends clause in TypeScript).",
12
+ "styles": {
13
+ "base": [
14
+ "@smwb/ui-styles/less/foundation.less",
15
+ "@smwb/ui-styles/less/theme.less"
16
+ ],
17
+ "entries": [
18
+ "@smwb/ui-styles/less/components/identityBadge/identityBadge.entry.less"
19
+ ],
20
+ "dependencies": [],
21
+ "importExample": "@import (less) \"node_modules/@smwb/ui-styles/less/foundation.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/theme.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/identityBadge/identityBadge.entry.less\";"
22
+ },
23
+ "props": {
24
+ "class": {
25
+ "type": "string | undefined",
26
+ "required": false,
27
+ "description": "Class name(s) for the badge's root `<span>`."
28
+ },
29
+ "text": {
30
+ "type": "string",
31
+ "required": true,
32
+ "description": "The visible text, short and monospace: a 1–4 character monogram, optionally with a suffix (`\"Op·x\"`)."
33
+ },
34
+ "label": {
35
+ "type": "string",
36
+ "required": true,
37
+ "description": "What the badge means in words, e.g. \"Claude Code · opus · xhigh\": the accessible name (the badge is a\n`role=\"img\"`, so its visible text is not read). Also the tooltip unless `tooltip` is given. Must not be\nempty: an empty one leaves a `role=\"img\"` with no name."
38
+ },
39
+ "icon": {
40
+ "type": "JSX.Element | undefined",
41
+ "required": false,
42
+ "description": "A glyph drawn before the text, e.g. `<Icon name=\"smart_toy\" size={12} />`; clamped to the icon box."
43
+ },
44
+ "accent": {
45
+ "type": "string | undefined",
46
+ "required": false,
47
+ "description": "Any CSS colour for the frame, the icon and the text. Without it (or with an empty string) the badge takes the\ntheme's neutral colour (`@identityBadgeColor`), never a status colour. Pick one with 4.5:1 against the surface."
48
+ },
49
+ "tooltip": {
50
+ "type": "string | false | undefined",
51
+ "required": false,
52
+ "description": "The native tooltip (`title`): `label` unless given; `false` draws none."
53
+ },
54
+ "data-testid": {
55
+ "type": "string | undefined",
56
+ "required": false,
57
+ "description": "Test id of the root; `identity-badge` unless given."
58
+ },
59
+ "ref": {
60
+ "type": "Ref<HTMLSpanElement>",
61
+ "required": false,
62
+ "description": "Ref. Optional. Type: Ref<HTMLSpanElement>."
63
+ }
64
+ }
65
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-solid",
3
- "version": "2.5.0",
3
+ "version": "2.6.1",
4
4
  "description": "Model Context Protocol server exposing the @smwb/ui-solid (SolidJS) component catalog and customization guide.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -28,8 +28,8 @@
28
28
  "zod": "^4.4.3"
29
29
  },
30
30
  "devDependencies": {
31
- "@smwb/ui-solid": "^2.5.0",
32
- "@smwb/ui-styles": "^2.6.0",
31
+ "@smwb/ui-solid": "^2.6.1",
32
+ "@smwb/ui-styles": "^2.7.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^2.1.9"