{
  "timestamp": "2026-11-19T09:33:56",
  "compiler": {
    "name": "@stencil/core",
    "version": "4.45.4",
    "typescriptVersion": "5.8.3"
  },
  "storybook": "https://magma-design-system.github.io/magma/storybook/",
  "studio": "https://magma-design-system.github.io/magma/studio/",
  "components": [
    {
      "filePath": "src/components/mds-list/mds-list.tsx",
      "encapsulation": "shadow",
      "tag": "mds-list",
      "docs": "This is a web-component from Maggioli Design System [Magma](https://magma.maggiolicloud.it), built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.",
      "docsTags": [
        {
          "name": "slot",
          "text": "- Add `mds-list-item` element/s."
        },
        {
          "name": "category",
          "text": "data"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-list>` web component is the structural container of the Magma Design System list family. It is a thin compound parent that groups one or more `<mds-list-item>` children and replaces the native `<ul>`/`<ol>` primitive with an accessible, design-system-aware wrapper.\n\n#### Semantic Behavior\n\n- **List role**: Exposes the group as a semantic list to assistive technology regardless of the surrounding markup.\n- **Compound parent**: Acts purely as the container; the visual rows (leading glyph and text) live in the slotted `<mds-list-item>` children.\n- **Default slot is structural**: The default slot is meant to receive `<mds-list-item>` element(s) rather than free text.\n\n#### Properties & Visual Configurations\n\nThis component exposes no configurable props; it carries no `variant`, `tone`, `size` or text colour of its own: the items take the colour of the container, and a class such as `text-fg-muted` on `<mds-list>` makes the whole list secondary. All appearance and behavior are delegated to the slotted `<mds-list-item>` children. For the shared ladders that govern the children, see [`agents/variants.md`](../../../../agents/variants.md).\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-list>` component, ordered from most common to most specialized. The examples assume a working knowledge of the typography scale documented in [`agents/typography.md`](../../../../agents/typography.md) and the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic List\n\nThe canonical form. Place `<mds-list-item>` children directly inside `<mds-list>`. Each item renders a leading bullet glyph (the default list-dot icon) and the slotted text.\n\n```html\n<mds-list>\n  <mds-list-item>Rinnova la licenza annuale</mds-list-item>\n  <mds-list-item>Verifica i dati di fatturazione</mds-list-item>\n  <mds-list-item>Scarica la ricevuta in PDF</mds-list-item>\n</mds-list>\n```\n\n#### Overriding the Item Icon\n\nPass an icon slug to `<mds-list-item>` via the `icon` prop to replace the default bullet with a meaningful glyph. Leave the prop unset to keep the standard dot.\n\n```html\n<mds-list>\n  <mds-list-item icon=\"mi/baseline/check-circle\">Profilo aggiornato</mds-list-item>\n  <mds-list-item icon=\"mi/baseline/check-circle\">Password modificata</mds-list-item>\n  <mds-list-item icon=\"mi/baseline/pending\">Verifica email in attesa</mds-list-item>\n</mds-list>\n```\n\n#### Choosing the Typography Scale\n\nUse the `typography` prop on each `<mds-list-item>` to match the visual density of the surrounding content. The default is `detail`; use `paragraph` for body-copy contexts and `caption` or `tip` for compact secondary lists.\n\n```html\n<!-- Body-copy density - long paragraphs nearby -->\n<mds-list>\n  <mds-list-item typography=\"paragraph\">Seleziona il piano adatto alle tue esigenze</mds-list-item>\n  <mds-list-item typography=\"paragraph\">Inserisci i dati di pagamento</mds-list-item>\n  <mds-list-item typography=\"paragraph\">Conferma l'ordine e ricevi la ricevuta</mds-list-item>\n</mds-list>\n\n<!-- Compact secondary list -->\n<mds-list>\n  <mds-list-item typography=\"caption\">Aggiornato il 01/06/2026</mds-list-item>\n  <mds-list-item typography=\"caption\">Versione 3.2.1</mds-list-item>\n</mds-list>\n```\n\n#### Reading Variant for Long-Form Content\n\nSet `variant=\"read\"` when list items appear inside a reading-optimized context (article, tutorial, legal text). Use the default `variant=\"info\"` for compact informational lists.\n\n```html\n<mds-list>\n  <mds-list-item typography=\"paragraph\" variant=\"read\">\n    Il servizio e' disponibile per tutti gli enti pubblici italiani\n  </mds-list-item>\n  <mds-list-item typography=\"paragraph\" variant=\"read\">\n    L'accesso avviene tramite credenziali SPID o CIE\n  </mds-list-item>\n  <mds-list-item typography=\"paragraph\" variant=\"read\">\n    I dati sono trattati in conformita' al GDPR\n  </mds-list-item>\n</mds-list>\n```\n\n#### Mixed Icon and Default Bullet in the Same List\n\nYou can mix items with an explicit `icon` and items that fall back to the default bullet within the same `<mds-list>`. Each item is independent.\n\n```html\n<mds-list>\n  <mds-list-item icon=\"mi/baseline/warning\">Modulo non compilato</mds-list-item>\n  <mds-list-item>Campo facoltativo ignorato</mds-list-item>\n  <mds-list-item icon=\"mi/baseline/error\">Firma digitale mancante</mds-list-item>\n</mds-list>\n```\n\n#### Adjusting the Icon Spacing\n\n`<mds-list>` and `<mds-list-item>` have no public CSS custom property: the item aligns its icon to the text of its `typography` by itself. When a layout needs a different gap between icon and text, set it on the documented `::part(icon)` of `<mds-list-item>`; use Magma spacing tokens.\n\n```css\n.sidebar-checklist mds-list-item::part(icon) {\n  margin-inline-end: calc(var(--spacing) * 300);\n}\n```\n\n#### Shadow Part Customization\n\nReach the icon or text nodes through the documented `::part(icon)` and `::part(text)` parts of `<mds-list-item>`. Do not pierce the shadow DOM via `>>>` or undocumented selectors.\n\n```css\n/* Tint the leading icon of every item in a warning context */\n.alert-list mds-list-item::part(icon) {\n  fill: rgb(var(--magma-warning-fg));\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-list>` and `<mds-list-item>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/mistakes.md`](../../../../agents/mistakes.md) - they apply here too but are not repeated.\n\n#### Do Not Replace `<mds-list>` with a Native `<ul>` or `<ol>`\n\nUsing a raw list element bypasses the design-system layout, typography defaults, and FOUC handling built into the component pair.\n\n```html\n<!-- INCORRECT -->\n<ul>\n  <li>Primo elemento</li>\n  <li>Secondo elemento</li>\n</ul>\n\n<!-- CORRECT -->\n<mds-list>\n  <mds-list-item>Primo elemento</mds-list-item>\n  <mds-list-item>Secondo elemento</mds-list-item>\n</mds-list>\n```\n\n#### Do Not Put HTML Elements in the Default Slot of `<mds-list-item>`\n\nThe default slot of `<mds-list-item>` accepts a plain text string only; placing HTML elements or other components there is explicitly discouraged in the component's API and can break layout and compound-component communication.\n\n```html\n<!-- INCORRECT -->\n<mds-list>\n  <mds-list-item>\n    <strong>Allegato 1</strong> - Contratto firmato\n  </mds-list-item>\n</mds-list>\n\n<!-- CORRECT -->\n<mds-list>\n  <mds-list-item>Allegato 1 - Contratto firmato</mds-list-item>\n</mds-list>\n```\n\n#### Do Not Use `<mds-list-item>` Outside `<mds-list>`\n\n`<mds-list-item>` is a compound child designed to work exclusively inside `<mds-list>`. Using it standalone or wrapping it in a plain `<div>` breaks the accessible list context.\n\n```html\n<!-- INCORRECT -->\n<div class=\"my-list\">\n  <mds-list-item>Voce autonoma</mds-list-item>\n</div>\n\n<!-- CORRECT -->\n<mds-list>\n  <mds-list-item>Voce autonoma</mds-list-item>\n</mds-list>\n```\n\n#### Do Not Slot `<mds-icon>` to Override the Bullet\n\nThe `icon` prop on `<mds-list-item>` is the supported way to change the leading glyph. Slotting `<mds-icon>` into the default slot puts it inline in a text-only slot, misaligned, while the default bullet still renders.\n\n```html\n<!-- INCORRECT -->\n<mds-list>\n  <mds-list-item>\n    <mds-icon name=\"mi/baseline/check\"></mds-icon>\n    Voce completata\n  </mds-list-item>\n</mds-list>\n\n<!-- CORRECT -->\n<mds-list>\n  <mds-list-item icon=\"mi/baseline/check\">Voce completata</mds-list-item>\n</mds-list>\n```\n\n#### Do Not Add Non-Item Children Directly to `<mds-list>`\n\nThe default slot of `<mds-list>` is documented to receive `<mds-list-item>` elements. Mixing in headings, paragraphs, or other components breaks the expected structure and removes the semantic list context.\n\n```html\n<!-- INCORRECT -->\n<mds-list>\n  <mds-text typography=\"h6\">Documenti richiesti</mds-text>\n  <mds-list-item>Documento d'identita'</mds-list-item>\n  <mds-list-item>Codice fiscale</mds-list-item>\n</mds-list>\n\n<!-- CORRECT -->\n<mds-text typography=\"h6\">Documenti richiesti</mds-text>\n<mds-list>\n  <mds-list-item>Documento d'identita'</mds-list-item>\n  <mds-list-item>Codice fiscale</mds-list-item>\n</mds-list>\n```\n\n#### Do Not Apply an Invalid `typography` Value to `<mds-list-item>`\n\n`mds-list-item.typography` accepts `TypographyInfoType | TypographyReadType` - the allowed values are `caption`, `detail`, `label`, `option`, `paragraph`, and `tip`. Heading values such as `h1`-`h6` or `action` are outside the type and are not checked at runtime: the inner text renders the heading style next to a bullet aligned for body text.\n\n```html\n<!-- INCORRECT -->\n<mds-list>\n  <mds-list-item typography=\"h3\">Titolo non valido</mds-list-item>\n</mds-list>\n\n<!-- CORRECT -->\n<mds-list>\n  <mds-list-item typography=\"paragraph\">Testo valido</mds-list-item>\n</mds-list>\n```\n"
      },
      "props": [],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [],
      "slots": [
        {
          "name": "",
          "docs": "Add `mds-list-item` element/s."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [],
      "dependencyGraph": {},
      "storybook": "ui-list--docs"
    }
  ]
}
