@gostudent/shared-ui-library-mcp 2.2.0-DT-17070.1 → 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 +5 -15
- 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",
|
|
@@ -223,11 +223,6 @@
|
|
|
223
223
|
"description": "Legend label for secondary marked dates. Defaults to \"has pending feedback\".",
|
|
224
224
|
"options": []
|
|
225
225
|
},
|
|
226
|
-
{
|
|
227
|
-
"name": "legendText",
|
|
228
|
-
"description": "Simple centered helper message shown in the footer, e.g. \"Please select a date\". Ignored when markedDates or secondaryMarkedDates are provided.",
|
|
229
|
-
"options": []
|
|
230
|
-
},
|
|
231
226
|
{
|
|
232
227
|
"name": "todayLabel",
|
|
233
228
|
"description": "Label for the Today button. Defaults to \"Today\".",
|
|
@@ -235,7 +230,7 @@
|
|
|
235
230
|
},
|
|
236
231
|
{
|
|
237
232
|
"name": "hasTodayButton",
|
|
238
|
-
"description": "Show the \"Today\" button. When false, the header drops it and splits the prev/next nav to the edges (arrow, month label, arrow)
|
|
233
|
+
"description": "Show the \"Today\" button. When false, the header drops it and splits the prev/next nav to the edges (arrow, month label, arrow) — large arrow icons under `appearance=\"bottomSheet\"`, the same chevrons under `appearance=\"default\"`. Defaults to true.",
|
|
239
234
|
"options": []
|
|
240
235
|
},
|
|
241
236
|
{
|
|
@@ -1537,11 +1532,6 @@
|
|
|
1537
1532
|
"description": "Legend label for secondary marked dates. Defaults to \"has pending feedback\".",
|
|
1538
1533
|
"options": []
|
|
1539
1534
|
},
|
|
1540
|
-
{
|
|
1541
|
-
"name": "legendText",
|
|
1542
|
-
"description": "Simple centered helper message shown in the footer, e.g. \"Please select a date\". Ignored when markedDates or secondaryMarkedDates are provided.",
|
|
1543
|
-
"options": []
|
|
1544
|
-
},
|
|
1545
1535
|
{
|
|
1546
1536
|
"name": "disabledDates",
|
|
1547
1537
|
"description": "Dates that are not selectable.",
|
|
@@ -1733,7 +1723,7 @@
|
|
|
1733
1723
|
},
|
|
1734
1724
|
{
|
|
1735
1725
|
"name": "HistoryLessonCard",
|
|
1736
|
-
"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```",
|
|
1737
1727
|
"storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/compositions-historylessoncard",
|
|
1738
1728
|
"props": [
|
|
1739
1729
|
{
|
|
@@ -1746,12 +1736,12 @@
|
|
|
1746
1736
|
},
|
|
1747
1737
|
{
|
|
1748
1738
|
"name": "location",
|
|
1749
|
-
"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.",
|
|
1750
1740
|
"options": []
|
|
1751
1741
|
},
|
|
1752
1742
|
{
|
|
1753
1743
|
"name": "attendanceStatus",
|
|
1754
|
-
"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.",
|
|
1755
1745
|
"options": [
|
|
1756
1746
|
"present",
|
|
1757
1747
|
"absent",
|
package/package.json
CHANGED