@smwb/ui-mcp-solid 2.1.0 → 2.3.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.
@@ -46,7 +46,7 @@
46
46
  "trigger": {
47
47
  "type": "TooltipTrigger",
48
48
  "required": false,
49
- "description": "What shows the tooltip. `hover` (default): the pointer over the target or keyboard focus\nin it, until both have left. Keyboard focus is focus with a focus ring (`:focus-visible`),\nnot the focus a mouse press gives a button. `click`: a click on the target shows or hides\nit. `manual`: `open` alone. Escape hides a `hover` or `click` tooltip."
49
+ "description": "What shows the tooltip. `hover` (default): the pointer over the target or keyboard focus\nin it, until both have left. Keyboard focus is focus with a focus ring (`:focus-visible`),\nnot the focus a mouse press gives a button. `click`: a click on the target shows or hides\nit. `manual`: `open` alone. `auto`: `hover` where the primary pointer is precise (a mouse), and\na tap on the target where it is coarse (`(pointer: coarse)`, a touch screen), which also hides on\na press outside the target. Escape hides a `hover`, `click` or `auto` tooltip."
50
50
  },
51
51
  "openDelay": {
52
52
  "type": "number",
@@ -100,6 +100,11 @@
100
100
  "required": false,
101
101
  "description": "Close the sheet when Escape is pressed."
102
102
  },
103
+ "swipeToDismiss": {
104
+ "type": "boolean",
105
+ "required": false,
106
+ "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."
107
+ },
103
108
  "resizable": {
104
109
  "type": "boolean",
105
110
  "required": false,
@@ -113,7 +118,7 @@
113
118
  "maxSize": {
114
119
  "type": "number",
115
120
  "required": false,
116
- "description": "Maximum size in px while resizing (default: viewport dimension)."
121
+ "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)."
117
122
  },
118
123
  "resizeStep": {
119
124
  "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",
@@ -20,6 +20,11 @@
20
20
  "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/bottomBar/bottomBar.entry.less\";"
21
21
  },
22
22
  "props": {
23
+ "badge": {
24
+ "type": "number | string",
25
+ "required": false,
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
+ },
23
28
  "icon": {
24
29
  "type": "JSX.Element",
25
30
  "required": false,
@@ -18,18 +18,19 @@
18
18
  "@smwb/ui-styles/less/components/bottomBar/bottomBar.entry.less"
19
19
  ],
20
20
  "dependencies": [
21
+ "@smwb/ui-styles/less/components/badge/badge.entry.less",
21
22
  "@smwb/ui-styles/less/components/icon/icon.entry.less",
22
23
  "@smwb/ui-styles/less/components/menu/menu.entry.less",
23
24
  "@smwb/ui-styles/less/components/ripple/ripple.entry.less",
24
25
  "@smwb/ui-styles/less/components/sidebar/sidebar.entry.less"
25
26
  ],
26
- "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/bottomBar/bottomBar.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/icon/icon.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/menu/menu.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/ripple/ripple.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/sidebar/sidebar.entry.less\";"
27
+ "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/bottomBar/bottomBar.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/badge/badge.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/icon/icon.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/menu/menu.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/ripple/ripple.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/sidebar/sidebar.entry.less\";"
27
28
  },
28
29
  "props": {
29
30
  "menuItems": {
30
- "type": "SidebarMenuItemProps[]",
31
+ "type": "BottomBarMenuItemProps[]",
31
32
  "required": false,
32
- "description": "Menu Items. Optional. Type: SidebarMenuItemProps[]."
33
+ "description": "Menu Items. Optional. Type: BottomBarMenuItemProps[]."
33
34
  },
34
35
  "visibleCount": {
35
36
  "type": "number",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smwb/ui-mcp-solid",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
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.1.0",
32
- "@smwb/ui-styles": "^2.2.0",
31
+ "@smwb/ui-solid": "^2.3.0",
32
+ "@smwb/ui-styles": "^2.4.0",
33
33
  "glob": "^13.0.6",
34
34
  "typescript": "^6.0.3",
35
35
  "vitest": "^2.1.9"