@gostudent/shared-ui-library-mcp 4.5.0 → 4.6.0-DT-17227.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 +7 -6
- package/package.json +1 -1
package/library-manifest.json
CHANGED
|
@@ -269,12 +269,13 @@
|
|
|
269
269
|
"props": [
|
|
270
270
|
{
|
|
271
271
|
"name": "padding",
|
|
272
|
-
"description": "Inner padding: none | sm=8px | md=16px | lg=24px. Accepts a single value or a `[mobile, desktop]` tuple for responsive behaviour, e.g. `padding={[\"sm\", \"lg\"]}`. The controls panel only supports a single value — see the **Responsive padding** story for the tuple API.",
|
|
272
|
+
"description": "Inner padding: none | sm=8px | md=16px | lg=24px | xl=32px. Accepts a single value or a `[mobile, desktop]` tuple for responsive behaviour, e.g. `padding={[\"sm\", \"lg\"]}`. The controls panel only supports a single value — see the **Responsive padding** story for the tuple API.",
|
|
273
273
|
"options": [
|
|
274
274
|
"none",
|
|
275
275
|
"sm",
|
|
276
276
|
"md",
|
|
277
|
-
"lg"
|
|
277
|
+
"lg",
|
|
278
|
+
"xl"
|
|
278
279
|
]
|
|
279
280
|
},
|
|
280
281
|
{
|
|
@@ -1558,7 +1559,7 @@
|
|
|
1558
1559
|
},
|
|
1559
1560
|
{
|
|
1560
1561
|
"name": "SelectionControl",
|
|
1561
|
-
"description": "**SelectionControl** is a controlled button for selectable options. Content is fully\nagnostic — pass anything as `children`. Consumer manages `state` and `onClick`.\n\nIt is designed to cover two usage patterns:\n- **Form-value collection** — consumer holds the selected value in state and sends it to an API (e.g. attendance, mood rating, student pills).\n- **Action / navigation** — click triggers rendering new content or navigating (e.g. tab-like cards). Keep `state=\"default\"` if no persistent pressed state is needed; the component simply acts as a styled button.\n\nDefault padding is `8px`. Override via `style` to match the context:\n- `14px 16px` — emoji\n- `8px 16px` — label-only row\n- `10px 16px` — row with avatar\n- `24px` — large attendance card\n\n### Accessibility\n\n- Root element is `<button type=\"button\">`.\n- `aria-pressed` is `true` when `state` is `\"selected\"` or `\"done\"`, `false` when `\"default\"`.\n- For grouped single-select usage, wrap controls in a `<div role=\"group\" aria-label=\"...\">` so screen readers announce the group boundary.",
|
|
1562
|
+
"description": "**SelectionControl** is a controlled button for selectable options. Content is fully\nagnostic — pass anything as `children`. Consumer manages `state` and `onClick`.\n\nIt is designed to cover two usage patterns:\n- **Form-value collection** — consumer holds the selected value in state and sends it to an API (e.g. attendance, mood rating, student pills).\n- **Action / navigation** — click triggers rendering new content or navigating (e.g. tab-like cards). Keep `state=\"default\"` if no persistent pressed state is needed; the component simply acts as a styled button.\n\nDefault padding is `8px`. Override via `style` to match the context:\n- `14px 16px` — emoji\n- `8px 16px` — label-only row\n- `10px 16px` — row with avatar\n- `24px` — large attendance card\n\n### Overriding styles\n\nAll state rules use single-class specificity, so a consumer `className` can override any property.\nTo style a specific state, target the stable `data-state` attribute (`default` | `selected` | `done` | `done-selected`) — never the hashed class names:\n\n```css\n.myChip[data-state='selected'] { font-weight: var(--font-desktop-body-font-weight-bold); }\n```\n\nText children inherit the control's per-state font-weight. When wrapping a label in `<Typography>`, pass `style={{ fontWeight: 'inherit' }}` to keep that behaviour, or set your own weight to override it.\n\n### Accessibility\n\n- Root element is `<button type=\"button\">`.\n- `aria-pressed` is `true` when `state` is `\"selected\"` or `\"done\"`, `false` when `\"default\"`.\n- For grouped single-select usage, wrap controls in a `<div role=\"group\" aria-label=\"...\">` so screen readers announce the group boundary.",
|
|
1562
1563
|
"storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-interaction-selectioncontrol",
|
|
1563
1564
|
"props": [
|
|
1564
1565
|
{
|
|
@@ -1599,9 +1600,9 @@
|
|
|
1599
1600
|
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-interaction-selectioncontrol--hover"
|
|
1600
1601
|
},
|
|
1601
1602
|
{
|
|
1602
|
-
"name": "
|
|
1603
|
-
"jsx": "// See \"
|
|
1604
|
-
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-interaction-selectioncontrol--
|
|
1603
|
+
"name": "Focus",
|
|
1604
|
+
"jsx": "// See \"Focus\" story — uses interactive render wrapper",
|
|
1605
|
+
"storyUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/story/components-interaction-selectioncontrol--focus"
|
|
1605
1606
|
}
|
|
1606
1607
|
]
|
|
1607
1608
|
},
|
package/package.json
CHANGED