@gostudent/shared-ui-library-mcp 5.1.0 → 5.1.1-DT-17379.1

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.
@@ -1749,7 +1749,7 @@
1749
1749
  },
1750
1750
  {
1751
1751
  "name": "SelectionControl",
1752
- "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\n### Padding\n\nFigma strokes are \"inside\", so the component keeps a real 2px border and subtracts it from the padding.\nSet the **Figma** padding through the `--selection-control-padding-block` and `--selection-control-padding-inline`\ncustom properties (default `16px` / `8px`) instead of overriding `padding` — a plain `padding` override\nis not compensated and renders 4px larger than the design.\n\n```tsx\n<SelectionControl style={{ '--selection-control-padding-block': '8px', '--selection-control-padding-inline': '16px' }} />\n```\n\nFigma paddings by context (block / inline):\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.",
1752
+ "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\n### Font size\n\nThe label defaults to `16px` / `20px` line-height on mobile and `14px` / `20px` from the tablet breakpoint up (Figma `lg` mobile and `md` desktop variants). Override `font-size` / `line-height` via `className` for other sizes, e.g. `12px` / `16px` for the compact `sm` pill.\n\n### Padding\n\nFigma strokes are \"inside\", so the component keeps a real 2px border and subtracts it from the padding.\nSet the **Figma** padding through the `--selection-control-padding-block` and `--selection-control-padding-inline`\ncustom properties (default `16px` / `8px`) instead of overriding `padding` — a plain `padding` override\nis not compensated and renders 4px larger than the design.\n\n```tsx\n<SelectionControl style={{ '--selection-control-padding-block': '8px', '--selection-control-padding-inline': '16px' }} />\n```\n\nFigma paddings by context (block / inline):\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.",
1753
1753
  "storybookUrl": "https://62835ff8873d45004a627ad4-snugmmtvrg.chromatic.com/?path=/docs/components-interaction-selectioncontrol",
1754
1754
  "props": [
1755
1755
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gostudent/shared-ui-library-mcp",
3
- "version": "5.1.0",
3
+ "version": "5.1.1-DT-17379.1",
4
4
  "description": "MCP server for @gostudent/shared-ui-library — exposes components, icons, and tokens to Claude",
5
5
  "type": "module",
6
6
  "bin": {