@smwb/ui-mcp-react 2.12.0 → 2.14.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.
@@ -106,6 +106,11 @@
106
106
  "required": false,
107
107
  "description": "Close the sheet when Escape is pressed."
108
108
  },
109
+ "swipeToDismiss": {
110
+ "type": "boolean",
111
+ "required": false,
112
+ "description": "Close the sheet by swiping it toward the edge it is anchored to (off by default): with a finger, a\n`bottom` sheet down, a `right` one to the right, a `left` one to the left. The panel follows the finger and\ncloses through `onClose` when it was dragged over about a third of its size or flicked; otherwise it springs\nback. A mouse is not affected, and neither is a `top` sheet. A swipe does not start on a text field, a\nslider or the resize handle, on a widget that keeps the finger for itself (its `touch-action` takes the swipe's\naxis, as a graph, a carousel or a slider rail does; mark a custom one with `data-smwb-no-swipe`), or while a\nscrolling area under the finger can still scroll the same way. Without `onClose` there is nothing to close and\nthe gesture is off."
113
+ },
109
114
  "resizable": {
110
115
  "type": "boolean",
111
116
  "required": false,
@@ -119,7 +124,7 @@
119
124
  "maxSize": {
120
125
  "type": "number",
121
126
  "required": false,
122
- "description": "Maximum size in px while resizing (default: viewport dimension)."
127
+ "description": "Maximum size in px while resizing (default: the room the window leaves the panel, minus the page offsets for a top or bottom one)."
123
128
  },
124
129
  "resizeStep": {
125
130
  "type": "number",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "props": {
24
24
  "direction": {
25
- "type": "\"row\" | \"row-reverse\" | \"column\" | \"column-reverse\"",
25
+ "type": "StackDirection | StackResponsiveDirection",
26
26
  "required": false,
27
- "description": "Direction. Optional. Type: \"row\" | \"row-reverse\" | \"column\" | \"column-reverse\"."
27
+ "description": "Direction of the stack (default `column`). An object sets it per breakpoint of the theme, e.g.\n`{ base: \"column\", md: \"row\" }` stacks in a column below `md` and in a row from there; each key applies\nfrom its breakpoint up, and `base` (default `column`) holds from the narrowest width. It is laid out by CSS\nclasses, so it changes at the breakpoint without JavaScript, and in the server render too."
28
28
  },
29
29
  "spacing": {
30
30
  "type": "StackSpacing",
@@ -24,6 +24,11 @@
24
24
  "type": "number | string",
25
25
  "required": false,
26
26
  "description": "A count (or a short text) drawn as a `Badge` at the item's icon, or after the title when the item has no icon.\n`0`, `\"0\"`, an empty string and `undefined` draw nothing. The item's accessible name reads `\"<title> <badge>\"`."
27
+ },
28
+ "aria-current": {
29
+ "type": "React.AriaAttributes[\"aria-current\"]",
30
+ "required": false,
31
+ "description": "The value of `aria-current` while this item is the active one; the default is `\"page\"`. Inactive items carry no\n`aria-current`, whatever this holds, and the attribute moves with the active item."
27
32
  }
28
33
  }
29
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-react",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "Model Context Protocol server exposing the @smwb/ui-react (React) 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-react": "^2.12.0",
32
- "@smwb/ui-styles": "^2.3.0",
31
+ "@smwb/ui-react": "^2.14.0",
32
+ "@smwb/ui-styles": "^2.5.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^2.1.9"