@gostudent/shared-ui-library-mcp 1.29.0 → 1.30.0-DT-17034.2
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 +72 -9
- package/package.json +1 -1
package/library-manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"libraryVersion": "1.
|
|
2
|
+
"libraryVersion": "1.30.0",
|
|
3
3
|
"components": [
|
|
4
4
|
{
|
|
5
5
|
"name": "Avatar",
|
|
@@ -228,6 +228,11 @@
|
|
|
228
228
|
"description": "Label for the Today button. Defaults to \"Today\".",
|
|
229
229
|
"options": []
|
|
230
230
|
},
|
|
231
|
+
{
|
|
232
|
+
"name": "hasTodayButton",
|
|
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.",
|
|
234
|
+
"options": []
|
|
235
|
+
},
|
|
231
236
|
{
|
|
232
237
|
"name": "previousMonthLabel",
|
|
233
238
|
"description": "Accessible label for the previous month nav button. Defaults to \"Previous month\".",
|
|
@@ -245,15 +250,15 @@
|
|
|
245
250
|
"jsx": "// See \"Default\" story — uses interactive render wrapper",
|
|
246
251
|
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-inputs-calendar--default"
|
|
247
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"name": "NoTodayButton",
|
|
255
|
+
"jsx": "// See \"NoTodayButton\" story — uses interactive render wrapper",
|
|
256
|
+
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-inputs-calendar--no-today-button"
|
|
257
|
+
},
|
|
248
258
|
{
|
|
249
259
|
"name": "WithMarkedDates",
|
|
250
260
|
"jsx": "// See \"WithMarkedDates\" story — uses interactive render wrapper",
|
|
251
261
|
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-inputs-calendar--with-marked-dates"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
"name": "WithBothLegends",
|
|
255
|
-
"jsx": "// See \"WithBothLegends\" story — uses interactive render wrapper",
|
|
256
|
-
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-inputs-calendar--with-both-legends"
|
|
257
262
|
}
|
|
258
263
|
]
|
|
259
264
|
},
|
|
@@ -646,6 +651,11 @@
|
|
|
646
651
|
"stretch"
|
|
647
652
|
]
|
|
648
653
|
},
|
|
654
|
+
{
|
|
655
|
+
"name": "fluid",
|
|
656
|
+
"description": "Fill the containing block instead of capping at the layout content max-width and auto-centering on desktop. Use when the Grid is nested inside a flex/grid parent (or any narrower container), where the default centering would otherwise add side margins. Defaults to `false`.",
|
|
657
|
+
"options": []
|
|
658
|
+
},
|
|
649
659
|
{
|
|
650
660
|
"name": "as",
|
|
651
661
|
"description": "Renders as this HTML element or React component. Defaults to `div`.",
|
|
@@ -1339,12 +1349,20 @@
|
|
|
1339
1349
|
"compositions": [
|
|
1340
1350
|
{
|
|
1341
1351
|
"name": "CalendarSheet",
|
|
1342
|
-
"description": "Mobile bottom-sheet calendar. Composes `Drawer position=\"bottom\"` with\n`<Calendar appearance=\"bottomSheet\">` — no calendar internals are re-implemented.\n\nSelecting a date closes the sheet by default (`closeOnSelect`). Dismiss via\nscrim-tap, Escape, or date selection. The grabber handle is visual-only (v1).\n\nPair with `CalendarTrigger` for the month-selector control that opens the sheet.\n\n### Usage\n\n```tsx\nimport { CalendarSheet, CalendarTrigger } from '@gostudent/shared-ui-library';\n\nconst [open, setOpen] = useState(false);\nconst [date, setDate] = useState<Date | null>(null);\n\n<CalendarTrigger\n label={date ? format(date, 'd MMM yyyy') : 'Select date'}\n onOpen={() => setOpen(true)}\n onClear={() => setDate(null)}\n hasSelection={!!date}\n/>\n\n<CalendarSheet\n isOpen={open}\n onClose={() => setOpen(false)}\n value={date}\n onChange={setDate}\n markedDates={bookedDates}\n/>\n```",
|
|
1352
|
+
"description": "Mobile bottom-sheet calendar. Composes `Drawer position=\"bottom\"` with\n`<Calendar appearance=\"bottomSheet\">` — no calendar internals are re-implemented.\n\nSelecting a date closes the sheet by default (`closeOnSelect`). Dismiss via\nscrim-tap, Escape, or date selection. The grabber handle is visual-only (v1).\n\nPair with `CalendarTrigger` for the month-selector control that opens the sheet.\n\nSet `variant=\"inline\"` to render the calendar directly in a layout instead of\nan overlay — useful for desktop two-pane flows where the calendar sits alongside\nother content. `isOpen`/`onClose` are ignored in this mode; see the `Inline` story.\n\n### Usage\n\n```tsx\nimport { CalendarSheet, CalendarTrigger } from '@gostudent/shared-ui-library';\n\nconst [open, setOpen] = useState(false);\nconst [date, setDate] = useState<Date | null>(null);\n\n<CalendarTrigger\n label={date ? format(date, 'd MMM yyyy') : 'Select date'}\n onOpen={() => setOpen(true)}\n onClear={() => setDate(null)}\n hasSelection={!!date}\n/>\n\n<CalendarSheet\n isOpen={open}\n onClose={() => setOpen(false)}\n value={date}\n onChange={setDate}\n markedDates={bookedDates}\n/>\n```",
|
|
1343
1353
|
"storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/compositions-calendarsheet",
|
|
1344
1354
|
"props": [
|
|
1355
|
+
{
|
|
1356
|
+
"name": "variant",
|
|
1357
|
+
"description": "'overlay' (default): bottom-sheet via Drawer, requires isOpen/onClose. 'inline': renders the calendar directly in the layout, no Drawer/portal — isOpen/onClose are ignored.",
|
|
1358
|
+
"options": [
|
|
1359
|
+
"overlay",
|
|
1360
|
+
"inline"
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1345
1363
|
{
|
|
1346
1364
|
"name": "isOpen",
|
|
1347
|
-
"description": "Controls whether the sheet is visible.",
|
|
1365
|
+
"description": "Controls whether the sheet is visible. Ignored when variant is \"inline\".",
|
|
1348
1366
|
"options": []
|
|
1349
1367
|
},
|
|
1350
1368
|
{
|
|
@@ -1402,6 +1420,11 @@
|
|
|
1402
1420
|
"description": "0 = week starts Sunday, 1 = week starts Monday (default).",
|
|
1403
1421
|
"options": []
|
|
1404
1422
|
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "hasTodayButton",
|
|
1425
|
+
"description": "Show the \"Today\" button. When false, the header reverts to the pre-Today-button edge-arrow layout (arrow, month label, arrow). Default: true.",
|
|
1426
|
+
"options": []
|
|
1427
|
+
},
|
|
1405
1428
|
{
|
|
1406
1429
|
"name": "sheetHeight",
|
|
1407
1430
|
"description": "Override the sheet panel height. Default: 488px (Figma spec).",
|
|
@@ -1888,6 +1911,11 @@
|
|
|
1888
1911
|
"description": "Disables the \"Start lesson\" button in upcoming state.",
|
|
1889
1912
|
"options": []
|
|
1890
1913
|
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "isDocumentLessonDisabled",
|
|
1916
|
+
"description": "Shows \"Document lesson\" disabled with a tooltip explaining why, instead of hiding it. Used before the 30-minute pre-lesson documentation window opens.",
|
|
1917
|
+
"options": []
|
|
1918
|
+
},
|
|
1891
1919
|
{
|
|
1892
1920
|
"name": "hasKebab",
|
|
1893
1921
|
"description": "Show or hide the kebab menu. When enabled, passes menu items to the card.",
|
|
@@ -1907,6 +1935,31 @@
|
|
|
1907
1935
|
"name": "onStartLesson",
|
|
1908
1936
|
"description": "Called when \"Start GoClass\" is clicked.",
|
|
1909
1937
|
"options": []
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "docs",
|
|
1941
|
+
"description": "",
|
|
1942
|
+
"options": []
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"name": "docs",
|
|
1946
|
+
"description": "",
|
|
1947
|
+
"options": []
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
"name": "labels",
|
|
1951
|
+
"description": "",
|
|
1952
|
+
"options": []
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"name": "labels",
|
|
1956
|
+
"description": "",
|
|
1957
|
+
"options": []
|
|
1958
|
+
},
|
|
1959
|
+
{
|
|
1960
|
+
"name": "labels",
|
|
1961
|
+
"description": "",
|
|
1962
|
+
"options": []
|
|
1910
1963
|
}
|
|
1911
1964
|
],
|
|
1912
1965
|
"examples": [
|
|
@@ -1932,6 +1985,9 @@
|
|
|
1932
1985
|
"names": [
|
|
1933
1986
|
"ArrowLeftIcon",
|
|
1934
1987
|
"ArrowRightIcon",
|
|
1988
|
+
"BookIcon",
|
|
1989
|
+
"BookStarIcon",
|
|
1990
|
+
"CakeIcon",
|
|
1935
1991
|
"CancelFilledIcon",
|
|
1936
1992
|
"ChevronDownIcon",
|
|
1937
1993
|
"ChevronLeftIcon",
|
|
@@ -1945,6 +2001,7 @@
|
|
|
1945
2001
|
"ErrorFilledIcon",
|
|
1946
2002
|
"EventNoteIcon",
|
|
1947
2003
|
"GlobeIcon",
|
|
2004
|
+
"GradeIcon",
|
|
1948
2005
|
"GraduationCapIcon",
|
|
1949
2006
|
"GroupIcon",
|
|
1950
2007
|
"HistoryIcon",
|
|
@@ -1953,17 +2010,23 @@
|
|
|
1953
2010
|
"InfoIcon",
|
|
1954
2011
|
"KebabIcon",
|
|
1955
2012
|
"LocationCenterIcon",
|
|
2013
|
+
"LocationIcon",
|
|
1956
2014
|
"LogoutIcon",
|
|
1957
2015
|
"MenuIcon",
|
|
2016
|
+
"MoreIcon",
|
|
1958
2017
|
"OfflineIcon",
|
|
1959
2018
|
"PendingFilledIcon",
|
|
2019
|
+
"PhoneIcon",
|
|
1960
2020
|
"PlanetIcon",
|
|
1961
2021
|
"PlusIcon",
|
|
2022
|
+
"SearchIcon",
|
|
1962
2023
|
"StarsIcon",
|
|
2024
|
+
"TagIcon",
|
|
1963
2025
|
"TickFilledIcon",
|
|
1964
2026
|
"TickIcon",
|
|
1965
2027
|
"UploadIcon",
|
|
1966
|
-
"WarningFilledIcon"
|
|
2028
|
+
"WarningFilledIcon",
|
|
2029
|
+
"WarningOutlinedIcon"
|
|
1967
2030
|
],
|
|
1968
2031
|
"sizes": [
|
|
1969
2032
|
"sm",
|
package/package.json
CHANGED