@gostudent/shared-ui-library-mcp 2.1.0 → 2.2.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/library-manifest.json +4 -4
- package/package.json +1 -1
package/library-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"libraryVersion": "2.
|
|
2
|
+
"libraryVersion": "2.2.0",
|
|
3
3
|
"components": [
|
|
4
4
|
{
|
|
5
5
|
"name": "Avatar",
|
|
@@ -1723,7 +1723,7 @@
|
|
|
1723
1723
|
},
|
|
1724
1724
|
{
|
|
1725
1725
|
"name": "HistoryLessonCard",
|
|
1726
|
-
"description": "A single row in a student's lesson history list. Behaviour is driven by `attendanceStatus` and\n`isDocumented`:\n\n| `attendanceStatus` | `isDocumented` | Renders |\n|-------------------------------------|------------------|---------|\n| `present` | `false` | \"Document lesson\" button |\n| `present` | `true` | Expandable tag row (chevron) revealing behaviour + learning content |\n| `absent` / `absent-with-reason` | — | Header, metadata and tags only — no button or chevron |\n\n### Usage\n\n```tsx\nimport { HistoryLessonCard } from '@gostudent/shared-ui-library';\n\n<HistoryLessonCard\n subject=\"Math\"\n date=\"10 Jul 2026\"\n time=\"14:00 - 15:00\"\n modality=\"offline\"\n location=\"Centrostudi Navigli\"\n attendanceStatus=\"present\"\n isDocumented={false}\n onDocumentLesson={() => {}}\n/>\n```",
|
|
1726
|
+
"description": "A single row in a student's lesson history list. Behaviour is driven by `attendanceStatus` and\n`isDocumented`:\n\n| `attendanceStatus` | `isDocumented` | Renders |\n|-------------------------------------|------------------|---------|\n| `present` | `false` | \"Document lesson\" button |\n| `present` | `true` | Expandable tag row (chevron) revealing behaviour + learning content |\n| `absent` / `absent-with-reason` | — | Header, metadata and tags only — no button or chevron |\n| omitted | `false`/`true` | No attendance badge; otherwise behaves as `present` |\n\n`attendanceStatus` and `location` are both optional. Omit `attendanceStatus` when attendance\nwas never marked — the badge is hidden rather than claiming a state the data does not support.\nOmit `location` when the lesson had no place, e.g. an online lesson.\n\n### Usage\n\n```tsx\nimport { HistoryLessonCard } from '@gostudent/shared-ui-library';\n\n<HistoryLessonCard\n subject=\"Math\"\n date=\"10 Jul 2026\"\n time=\"14:00 - 15:00\"\n modality=\"offline\"\n location=\"Centrostudi Navigli\"\n attendanceStatus=\"present\"\n isDocumented={false}\n onDocumentLesson={() => {}}\n/>\n```",
|
|
1727
1727
|
"storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/compositions-historylessoncard",
|
|
1728
1728
|
"props": [
|
|
1729
1729
|
{
|
|
@@ -1736,12 +1736,12 @@
|
|
|
1736
1736
|
},
|
|
1737
1737
|
{
|
|
1738
1738
|
"name": "location",
|
|
1739
|
-
"description": "Room (online) or center (offline) name shown in the metadata row.",
|
|
1739
|
+
"description": "Room (online) or center (offline) name shown in the metadata row. Omit to hide the line entirely — e.g. an online lesson with no physical place.",
|
|
1740
1740
|
"options": []
|
|
1741
1741
|
},
|
|
1742
1742
|
{
|
|
1743
1743
|
"name": "attendanceStatus",
|
|
1744
|
-
"description": "Student attendance for this lesson. Absent states hide the button/chevron entirely.",
|
|
1744
|
+
"description": "Student attendance for this lesson. Absent states hide the button/chevron entirely. Omit when attendance was never marked — the badge is then hidden rather than asserting a state.",
|
|
1745
1745
|
"options": [
|
|
1746
1746
|
"present",
|
|
1747
1747
|
"absent",
|