@smwb/ui-mcp-react 2.7.0 → 2.9.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.
- package/component-meta/base/icon/icon.json +6 -1
- package/component-meta/base/ripple/ripple.json +6 -1
- package/component-meta/connects/rt/table/table.json +1 -1
- package/component-meta/dataDisplay/avatar/avatar.avatarGroup.json +5 -0
- package/component-meta/dataDisplay/avatar/avatar.json +5 -0
- package/component-meta/dataDisplay/card/card.json +10 -5
- package/component-meta/dataDisplay/chart/chart.json +5 -0
- package/component-meta/dataDisplay/chat/chat.chatFooterComposer.json +24 -0
- package/component-meta/dataDisplay/chat/chat.json +24 -3
- package/component-meta/dataDisplay/chat/chatComposer.json +1 -1
- package/component-meta/dataDisplay/chat/chatLayout.json +7 -1
- package/component-meta/dataDisplay/chat/chatOverlayLayout.json +7 -1
- package/component-meta/dataDisplay/chip/chip.json +14 -4
- package/component-meta/dataDisplay/dagView/dagView.json +165 -0
- package/component-meta/dataDisplay/descriptionList/descriptionList.json +1 -1
- package/component-meta/dataDisplay/diffStat/diffStat.json +65 -0
- package/component-meta/dataDisplay/kanban/kanban.json +5 -0
- package/component-meta/dataDisplay/kanban/kanban.kanbanCard.json +5 -0
- package/component-meta/dataDisplay/kanban/kanban.kanbanColumn.json +5 -0
- package/component-meta/dataDisplay/kbd/kbd.json +55 -0
- package/component-meta/dataDisplay/list/list.json +5 -0
- package/component-meta/dataDisplay/list/listItem.json +18 -3
- package/component-meta/dataDisplay/meter/meter.json +5 -0
- package/component-meta/dataDisplay/personChip/personChip.json +5 -0
- package/component-meta/dataDisplay/qrCode/qrCode.json +60 -0
- package/component-meta/dataDisplay/stat/stat.json +5 -0
- package/component-meta/dataDisplay/statusDot/statusDot.json +60 -0
- package/component-meta/dataDisplay/swimlanes/swimlanes.json +90 -0
- package/component-meta/dataDisplay/table/table.json +1 -1
- package/component-meta/dataDisplay/table/tableCell.json +6 -1
- package/component-meta/dataDisplay/table/tableHeadCell.json +11 -1
- package/component-meta/dataDisplay/table/tableRow.json +5 -0
- package/component-meta/dataDisplay/thumbCard/thumbCard.json +16 -6
- package/component-meta/dataDisplay/treeView/treeView.json +21 -1
- package/component-meta/feedBack/emptyState/emptyState.json +5 -0
- package/component-meta/feedBack/message/message.json +5 -0
- package/component-meta/feedBack/skeleton/skeleton.json +7 -2
- package/component-meta/feedBack/tooltip/tooltip.json +4 -4
- package/component-meta/inputs/button/button.json +15 -0
- package/component-meta/inputs/buttonGroups/buttonGroup.json +5 -0
- package/component-meta/inputs/checkbox/checkbox.json +2 -2
- package/component-meta/inputs/composer/composer.json +222 -0
- package/component-meta/inputs/radioButton/radioButton.json +6 -1
- package/component-meta/inputs/rating/rating.json +11 -1
- package/component-meta/inputs/selectField/dropdownMenu.json +45 -0
- package/component-meta/inputs/selectField/selectField.json +6 -6
- package/component-meta/inputs/slider/slider.json +8 -3
- package/component-meta/inputs/textField/textField.json +3 -3
- package/component-meta/inputs/textField/textFieldWrapper.json +16 -1
- package/component-meta/inputs/toggle/toggle.json +1 -1
- package/component-meta/inputs/valueSlider/valueSlider.json +13 -8
- package/component-meta/layout/appLayout/appLayout.json +5 -0
- package/component-meta/layout/divider/divider.json +5 -0
- package/component-meta/layout/floatingWindow/floatingWindow.json +5 -0
- package/component-meta/layout/grid/grid.column.json +1 -1
- package/component-meta/layout/grid/grid.container.json +5 -0
- package/component-meta/layout/grid/grid.row.json +5 -0
- package/component-meta/layout/page/page.json +5 -0
- package/component-meta/layout/pageHeader/pageHeader.json +5 -0
- package/component-meta/layout/sectionHeader/sectionHeader.json +5 -0
- package/component-meta/layout/sheet/sheet.json +25 -0
- package/component-meta/layout/stack/stack.json +5 -0
- package/component-meta/layout/tabGroups/tabGroups.json +101 -0
- package/component-meta/navigation/appBar/appBar.json +20 -0
- package/component-meta/navigation/breadcrumbs/breadcrumbs.json +5 -0
- package/component-meta/navigation/commandPalette/commandPalette.json +161 -0
- package/component-meta/navigation/menu/menu.json +1 -1
- package/component-meta/navigation/menu/menuItem.json +1 -1
- package/component-meta/navigation/pagination/pagination.json +5 -0
- package/component-meta/navigation/sidebar/sidebar.json +5 -0
- package/component-meta/navigation/stepper/stepper.json +5 -0
- package/component-meta/navigation/tabs/tab/tab.json +30 -4
- package/component-meta/navigation/tabs/tabPanel/tabPanel.json +42 -0
- package/component-meta/navigation/tabs/tabs.json +40 -7
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Tabs",
|
|
3
|
-
"description": "Tab list
|
|
3
|
+
"description": "Tab list with arrow-key navigation (manual activation), optional TabPanels, link tabs for route navigation, drag-to-reorder, an overflow menu of the clipped tabs, and close/switch keyboard chords.",
|
|
4
4
|
"ssr": {
|
|
5
5
|
"safe": true,
|
|
6
6
|
"rendering": "universal"
|
|
@@ -15,26 +15,44 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": [
|
|
17
17
|
"@smwb/ui-styles/less/components/icon/icon.entry.less",
|
|
18
|
+
"@smwb/ui-styles/less/components/kbd/kbd.entry.less",
|
|
19
|
+
"@smwb/ui-styles/less/components/menu/menu.entry.less",
|
|
18
20
|
"@smwb/ui-styles/less/components/ripple/ripple.entry.less",
|
|
19
|
-
"@smwb/ui-styles/less/components/tabs/tab/tab.entry.less"
|
|
21
|
+
"@smwb/ui-styles/less/components/tabs/tab/tab.entry.less",
|
|
22
|
+
"@smwb/ui-styles/less/components/tabs/tabPanel/tabPanel.entry.less"
|
|
20
23
|
],
|
|
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/tabs/tabs.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/ripple/ripple.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/tabs/tab/tab.entry.less\";"
|
|
24
|
+
"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/tabs/tabs.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/kbd/kbd.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/tabs/tab/tab.entry.less\";\n@import (less) \"node_modules/@smwb/ui-styles/less/components/tabs/tabPanel/tabPanel.entry.less\";"
|
|
22
25
|
},
|
|
23
26
|
"props": {
|
|
24
27
|
"value": {
|
|
25
28
|
"type": "number",
|
|
26
29
|
"required": true,
|
|
27
|
-
"description": "
|
|
30
|
+
"description": "Index of the selected tab. Tabs count in the order they render: a tab left out,\nsuch as `{show && <Tab />}` while `show` is false, takes no index."
|
|
28
31
|
},
|
|
29
32
|
"onChange": {
|
|
30
33
|
"type": "(e: React.MouseEvent<HTMLButtonElement>, index: number) => void",
|
|
31
34
|
"required": true,
|
|
32
|
-
"description": "
|
|
35
|
+
"description": "Called with the index of the clicked tab, counted as for `value`. A tab chosen from the keyboard\n(Enter or Space on the focused tab) calls it with that click too. A modified or non-primary\nclick (Ctrl, Meta, Shift or Alt held, or a button other than the main one) on a link tab\n(`Tab` with `href`) is the browser's, as \"open in a new tab\": it does not call `onChange`."
|
|
36
|
+
},
|
|
37
|
+
"orientation": {
|
|
38
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "Which way the tabs run. It sets `aria-orientation` on the tab list and picks the arrow keys that\nmove between tabs: Left and Right when horizontal, Up and Down when vertical. The styles draw\na horizontal row; a vertical list is yours to lay out."
|
|
41
|
+
},
|
|
42
|
+
"panels": {
|
|
43
|
+
"type": "React.ReactNode",
|
|
44
|
+
"required": false,
|
|
45
|
+
"description": "The content of the tabs: `TabPanel`s, rendered after the tab row. With them each tab gets\n`aria-controls` its panel and each panel `aria-labelledby` its tab. Without them the tabs link\nto nothing, as before. Give a panel to every tab: a tab whose panel is left out still names it.\nA `TabPanel` placed anywhere else is not linked to the tabs and is always shown."
|
|
46
|
+
},
|
|
47
|
+
"id": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"required": false,
|
|
50
|
+
"description": "Base of the ids that link tabs and panels: tab `n` is `{id}-tab-{n}`, its panel `{id}-panel-{n}`.\nIt is also the id of the root element. A generated one by default."
|
|
33
51
|
},
|
|
34
52
|
"indicatorContent": {
|
|
35
53
|
"type": "boolean",
|
|
36
54
|
"required": false,
|
|
37
|
-
"description": "
|
|
55
|
+
"description": "Draw the indicator as wide as the selected tab's label rather than the whole tab."
|
|
38
56
|
},
|
|
39
57
|
"scrollable": {
|
|
40
58
|
"type": "boolean",
|
|
@@ -44,7 +62,22 @@
|
|
|
44
62
|
"scrollButtons": {
|
|
45
63
|
"type": "boolean",
|
|
46
64
|
"required": false,
|
|
47
|
-
"description": "With `scrollable`: buttons at both ends that scroll the row while it overflows."
|
|
65
|
+
"description": "With `scrollable`: buttons at both ends that scroll the row while it overflows. They are for\nthe pointer and stay out of the Tab order: the arrow keys reach every tab and scroll it into\nview."
|
|
66
|
+
},
|
|
67
|
+
"onReorder": {
|
|
68
|
+
"type": "(from: number, to: number) => void",
|
|
69
|
+
"required": false,
|
|
70
|
+
"description": "Present ⇒ the row is reorderable by dragging a tab onto another (pointer-only; there is no\nkeyboard reorder). `Tabs` does not move the tabs itself: it reports the drag with\n`onReorder(from, to)` — indexes counted as for `value` — and the owner reorders its state.\nThe tabs keep their focus through a reorder, and a reorder keeps the selection on the same tab:\nwhen the dragged tab is the selected one, its new index is reported through `onChange` too, so\na controlled owner moves its value along with its array. That report carries the drop event in\nplace of the click a keyboard or menu choice makes, so the index argument is the authoritative\none: on a drop `event.currentTarget` is the scroll area, not the moved tab."
|
|
71
|
+
},
|
|
72
|
+
"overflowMenu": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"required": false,
|
|
75
|
+
"description": "With `scrollable`: when the row overflows, a trigger button is rendered beside the scroller\n(in the scroll buttons' spot) that opens a menu of the tabs the viewport clips — any clipped\npart beyond a 1px tolerance counts. Each entry shows the tab's icon and label, the selected one\nis marked `aria-current=\"true\"`, and choosing one calls `onChange` for it and scrolls it into\nview. The trigger appears only after the browser has measured an overflow, so the server markup\nshows none."
|
|
76
|
+
},
|
|
77
|
+
"overflowMenuAriaLabel": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"required": false,
|
|
80
|
+
"description": "Accessible label of the overflow-menu trigger. English by default; set it to localise."
|
|
48
81
|
},
|
|
49
82
|
"dense": {
|
|
50
83
|
"type": "boolean",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-mcp-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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.
|
|
32
|
-
"@smwb/ui-styles": "^
|
|
31
|
+
"@smwb/ui-react": "^2.9.0",
|
|
32
|
+
"@smwb/ui-styles": "^2.0.0",
|
|
33
33
|
"glob": "^13.0.6",
|
|
34
34
|
"typescript": "^6.0.3",
|
|
35
35
|
"vitest": "^2.1.9"
|