@gostudent/shared-ui-library-mcp 2.2.0 → 3.0.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "libraryVersion": "2.2.0",
2
+ "libraryVersion": "3.0.0",
3
3
  "components": [
4
4
  {
5
5
  "name": "Avatar",
@@ -1010,7 +1010,7 @@
1010
1010
  },
1011
1011
  {
1012
1012
  "name": "InlineNotification",
1013
- "description": "Embedded within the page layout, directly associated with a specific area of content.\nStays visible until the user dismisses it or the condition resolves.\n\nSupports five intent types: `info-neutral`, `info-branded`, `success`, `warning`, `error`.\n\nThe layout is responsive: stacked (mobile) → horizontal single-row (desktop ≥ 1024px).\nUse `stacked` to force the column layout regardless of viewport — useful inside narrow sidebar columns.\n\n### Usage\n\n```tsx\nimport { InlineNotification } from '@gostudent/shared-ui-library';\n\n<InlineNotification\n type=\"success\"\n title=\"Changes saved\"\n message=\"Your profile has been updated successfully.\"\n onDismiss={() => {}}\n/>\n```",
1013
+ "description": "Embedded within the page layout, directly associated with a specific area of content.\nStays visible until the user dismisses it or the condition resolves.\n\nSupports five intent types: `info-neutral`, `info-branded`, `success`, `warning`, `error`.\nSupports two sizes: `default` (16px padding) and `small` (8px padding).\n\nThe layout is responsive: stacked (mobile) → horizontal single-row (desktop ≥ 1024px).\nUse `stacked` to force the column layout regardless of viewport — useful inside narrow sidebar columns.\n\n### Usage\n\n```tsx\nimport { InlineNotification } from '@gostudent/shared-ui-library';\n\n<InlineNotification\n type=\"success\"\n title=\"Changes saved\"\n message=\"Your profile has been updated successfully.\"\n onDismiss={() => {}}\n/>\n```",
1014
1014
  "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-notification-inlinenotification",
1015
1015
  "props": [
1016
1016
  {
@@ -1023,12 +1023,20 @@
1023
1023
  "warning",
1024
1024
  "error"
1025
1025
  ]
1026
+ },
1027
+ {
1028
+ "name": "size",
1029
+ "description": "",
1030
+ "options": [
1031
+ "default",
1032
+ "small"
1033
+ ]
1026
1034
  }
1027
1035
  ],
1028
1036
  "examples": [
1029
1037
  {
1030
1038
  "name": "Default",
1031
- "jsx": "<InlineNotification type=\"info-neutral\" title=\"Notification title\" message=\"This is an informational message.\" />",
1039
+ "jsx": "<InlineNotification type=\"info-neutral\" size=\"default\" title=\"Notification title\" message=\"This is an informational message.\" />",
1032
1040
  "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-notification-inlinenotification--default"
1033
1041
  },
1034
1042
  {
@@ -1045,7 +1053,7 @@
1045
1053
  },
1046
1054
  {
1047
1055
  "name": "ToastNotification",
1048
- "description": "Transient overlay notifications that appear over the page content and auto-dismiss after a set duration (default 5s).\n\nWrap your app (or story) in `<ToastProvider>` and trigger toasts via the `useToast` hook.\n\n### Interaction rules\n- Hovering a toast pauses the auto-dismiss timer\n- Clicking ✕ dismisses immediately\n- New toasts push existing ones down (max 3 visible at once)\n- On mobile: full-width bottom-sheet style\n\n### Usage\n\n```tsx\nimport { ToastProvider, useToast } from '@gostudent/shared-ui-library';\n\nfunction App() {\n return (\n <ToastProvider>\n <MyPage />\n </ToastProvider>\n );\n}\n\nfunction MyPage() {\n const { addToast } = useToast();\n return (\n <button onClick={() => addToast({ type: 'success', title: 'Saved', message: 'Your changes have been saved.' })}>\n Save\n </button>\n );\n}\n```",
1056
+ "description": "Transient overlay notifications that appear over the page content and auto-dismiss after a set duration (default 5s).\nSupports two sizes: `default` (16px padding) and `small` (8px padding).\n\nWrap your app (or story) in `<ToastProvider>` and trigger toasts via the `useToast` hook.\n\n### Interaction rules\n- Hovering a toast pauses the auto-dismiss timer\n- Clicking ✕ dismisses immediately\n- New toasts push existing ones down (max 3 visible at once)\n- On mobile: full-width bottom-sheet style\n\n### Usage\n\n```tsx\nimport { ToastProvider, useToast } from '@gostudent/shared-ui-library';\n\nfunction App() {\n return (\n <ToastProvider>\n <MyPage />\n </ToastProvider>\n );\n}\n\nfunction MyPage() {\n const { addToast } = useToast();\n return (\n <button onClick={() => addToast({ type: 'success', title: 'Saved', message: 'Your changes have been saved.' })}>\n Save\n </button>\n );\n}\n```",
1049
1057
  "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-notification-toastnotification",
1050
1058
  "props": [
1051
1059
  {
@@ -1060,6 +1068,11 @@
1060
1068
  "jsx": "// See \"Interactive\" story — uses interactive render wrapper",
1061
1069
  "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-notification-toastnotification--interactive"
1062
1070
  },
1071
+ {
1072
+ "name": "AllSizes",
1073
+ "jsx": "// See \"AllSizes\" story — uses interactive render wrapper",
1074
+ "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-notification-toastnotification--all-sizes"
1075
+ },
1063
1076
  {
1064
1077
  "name": "InteractionRules",
1065
1078
  "jsx": "// See \"InteractionRules\" story — uses interactive render wrapper",
@@ -1069,7 +1082,7 @@
1069
1082
  },
1070
1083
  {
1071
1084
  "name": "TopBanner",
1072
- "description": "Full-width persistent notification placed above or below the main navigation bar.\nUsed for high-priority, global announcements (maintenance windows, subscription warnings, system-wide alerts).\n\n- Inline single-line layout, 56px height\n- 5 intent types: `info-neutral`, `info-branded`, `success`, `warning`, `error`\n- `info-branded` uses the Stars icon and branded colours\n- Max 1 banner at a time (usage rule — not enforced by the component)\n- Does not auto-dismiss\n\n### Usage\n\n```tsx\nimport { TopBanner } from '@gostudent/shared-ui-library';\n\n<TopBanner\n type=\"warning\"\n title=\"Scheduled maintenance\"\n message=\"Maintenance on Apr 26, 02:00–04:00 UTC.\"\n actionLink\n linkText=\"Learn more\"\n onDismiss={() => {}}\n/>\n```",
1085
+ "description": "Full-width persistent notification placed above or below the main navigation bar.\nUsed for high-priority, global announcements (maintenance windows, subscription warnings, system-wide alerts).\n\n- Inline single-line layout, 56px height\n- 5 intent types: `info-neutral`, `info-branded`, `success`, `warning`, `error`\n- 2 sizes: `default` (16px/24px text) and `small` (14px/20px text)\n- ⚠️ Breaking visual change: prior to the `size` prop, text always rendered at 14px/20px\n (now `small`). Consumers not passing `size` will see larger default text after upgrading.\n- `info-branded` uses the Stars icon and branded colours\n- Max 1 banner at a time (usage rule — not enforced by the component)\n- Does not auto-dismiss\n\n### Usage\n\n```tsx\nimport { TopBanner } from '@gostudent/shared-ui-library';\n\n<TopBanner\n type=\"warning\"\n title=\"Scheduled maintenance\"\n message=\"Maintenance on Apr 26, 02:00–04:00 UTC.\"\n actionLink\n linkText=\"Learn more\"\n onDismiss={() => {}}\n/>\n```",
1073
1086
  "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-notification-topbanner",
1074
1087
  "props": [
1075
1088
  {
@@ -1082,12 +1095,20 @@
1082
1095
  "warning",
1083
1096
  "error"
1084
1097
  ]
1098
+ },
1099
+ {
1100
+ "name": "size",
1101
+ "description": "",
1102
+ "options": [
1103
+ "default",
1104
+ "small"
1105
+ ]
1085
1106
  }
1086
1107
  ],
1087
1108
  "examples": [
1088
1109
  {
1089
1110
  "name": "Default",
1090
- "jsx": "<TopBanner type=\"info-neutral\" title=\"Information title\" message=\"This is an informational message.\" actionLink={true} linkText=\"Action link\" />",
1111
+ "jsx": "<TopBanner type=\"info-neutral\" size=\"default\" title=\"Information title\" message=\"This is an informational message.\" actionLink={true} linkText=\"Action link\" />",
1091
1112
  "storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-notification-topbanner--default"
1092
1113
  },
1093
1114
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gostudent/shared-ui-library-mcp",
3
- "version": "2.2.0",
3
+ "version": "3.0.0",
4
4
  "description": "MCP server for @gostudent/shared-ui-library — exposes components, icons, and tokens to Claude",
5
5
  "type": "module",
6
6
  "bin": {