{
  "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-price-table/mds-price-table.tsx",
      "encapsulation": "shadow",
      "tag": "mds-price-table",
      "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-price-table-list` elements or `components` to this slot."
        },
        {
          "name": "category",
          "text": "data"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-price-table>` web component is the layout container of the Magma Design System pricing-table family. It owns no logic or visual chrome of its own: it stacks its slotted compound children (the plan columns, header and feature matrix) into a coherent pricing comparison surface.\n\n#### Semantic Behavior\n\n- **Default slot only**: Any markup placed between the tags is projected verbatim. It expects the dedicated compound children (`mds-price-table-list`, `mds-price-table-header`, `mds-price-table-features`, which in turn holds the `mds-price-table-features-row` / `mds-price-table-features-cell` matrix) rather than free-form content.\n- **Grid layout host**: Projected blocks are spaced consistently regardless of how many plans or feature rows are supplied.\n- **Responsive composition**: It does not switch layouts internally. Two arrangements are expressed through the children and utility classes - a stacked, per-plan layout (each `mds-price-table-list` carrying its own feature matrix) for narrow viewports, and a shared `mds-price-table-header` + single `mds-price-table-features` matrix for wide viewports.\n- **No props, events, or state**: All configuration lives on the child components.\n\n#### Properties & Visual Configurations\n\nThis component is a pure compound parent and intentionally has no configurable props. Visual variation comes from the children it wraps - for example the `type` attribute on `mds-price-table-features-cell` (`'label'`, `'text'`, `'supported'`, `'unsupported'`) drives what each matrix cell renders, and the named slots on `mds-price-table-list` (`header`, `price`, `action`) position each plan's heading, price and call-to-action. Refer to those child components' own documentation for their value ladders.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-price-table>` family, ordered from most common to most specialized. The examples assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Single-Plan Card (Mobile Layout)\n\nUse one `<mds-price-table>` per plan on narrow viewports. Each instance contains one `<mds-price-table-list>` (the plan card) followed by one `<mds-price-table-features>` (its feature matrix). The `header`, `price`, and `action` slots of `<mds-price-table-list>` position plan heading, price, and call-to-action respectively.\n\n```html\n<mds-price-table>\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Piano Base</mds-text>\n    <mds-text typography=\"detail\" slot=\"header\">Ideale per liberi professionisti.</mds-text>\n    <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia ora</mds-button>\n  </mds-price-table-list>\n  <mds-price-table-features>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Supporto</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n    </mds-price-table-features-row>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Report avanzati</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Multi-Plan Comparison (Desktop Layout)\n\nUse a single `<mds-price-table>` wrapping one `<mds-price-table-header>` and one shared `<mds-price-table-features>`. The header holds a heading element plus one `<mds-price-table-list>` per plan. Each `<mds-price-table-features-row>` then carries one `label` cell followed by one data cell per plan - the row component distributes them evenly.\n\n```html\n<mds-price-table>\n  <mds-price-table-header class=\"tablet:grid-cols-3 desktop:grid-cols-4\">\n    <mds-text typography=\"h1\" tag=\"h3\" class=\"desktop:py-600\">Scegli il tuo piano</mds-text>\n\n    <mds-price-table-list>\n      <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Base</mds-text>\n      <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR</mds-text>\n      <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n    </mds-price-table-list>\n\n    <mds-price-table-list class=\"bg-label-amaranth-10\">\n      <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Professional</mds-text>\n      <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">99 EUR</mds-text>\n      <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n    </mds-price-table-list>\n  </mds-price-table-header>\n\n  <mds-price-table-features label=\"Caratteristiche\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Automazione</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Feature Matrix Section with a Label\n\nPass the `label` prop to `<mds-price-table-features>` to render a bold section heading above the feature rows. Use this when the comparison is split across multiple thematic groups (for example \"Funzionalita base\" and \"Report e analisi\").\n\n```html\n<mds-price-table-features label=\"Report e analisi\">\n  <mds-price-table-features-row>\n    <mds-price-table-features-cell type=\"label\">Export report</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n  </mds-price-table-features-row>\n  <mds-price-table-features-row>\n    <mds-price-table-features-cell type=\"label\">Report avanzati</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n  </mds-price-table-features-row>\n</mds-price-table-features>\n```\n\n#### Feature Cell Types\n\n`<mds-price-table-features-cell>` drives what each matrix cell renders through its `type` attribute. The five accepted values are: `label` (plain row heading), `text` (detail string), `supported` (check icon), `unsupported` (dash icon), and `custom` (arbitrary slotted content).\n\n```html\n<mds-price-table-features-row>\n  <!-- Row heading - typically the first cell -->\n  <mds-price-table-features-cell type=\"label\">Archiviazione</mds-price-table-features-cell>\n\n  <!-- Text value cell -->\n  <mds-price-table-features-cell type=\"text\">10 GB</mds-price-table-features-cell>\n\n  <!-- Supported / unsupported icon cells (no slotted content needed) -->\n  <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n\n  <!-- Custom cell for arbitrary content -->\n  <mds-price-table-features-cell type=\"custom\">\n    <mds-badge variant=\"success\" tone=\"weak\">Nuovo</mds-badge>\n  </mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Contextual Help on a Feature Cell\n\nSlot an `<mds-help>` inside a `label` or `text` cell to add an inline tooltip explaining a feature. Place it directly after the label text so the icon appears inline.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">\n    Funzionalita automatizzate\n    <mds-help>Includono notifiche, workflow e integrazioni API.</mds-help>\n  </mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"unsupported\"></mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### List Items Inside a Plan Card\n\nUse `<mds-price-table-list-item>` for a bulleted feature list inside a plan card: the item assigns itself to the `item` slot, so it needs no `slot` attribute. Add the boolean `supported` attribute for included features and omit it (default `false`) for excluded ones. The `typography` prop controls the text size.\n\n```html\n<mds-price-table-list>\n  <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Piano Base</mds-text>\n  <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR</mds-text>\n\n  <mds-price-table-list-item supported>Accesso base</mds-price-table-list-item>\n  <mds-price-table-list-item supported>Supporto clienti</mds-price-table-list-item>\n  <mds-price-table-list-item>Automazione</mds-price-table-list-item>\n  <mds-price-table-list-item>Export report</mds-price-table-list-item>\n\n  <mds-button slot=\"action\" variant=\"dark\">Inizia ora</mds-button>\n</mds-price-table-list>\n```\n\n#### Highlighted Plan Card\n\nApply a Magma label-color utility class directly to `<mds-price-table-list>` to visually distinguish a recommended or featured plan. Do not set a background color through inline styles or custom CSS; use the documented background tokens.\n\n```html\n<mds-price-table>\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Base</mds-text>\n    <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n  </mds-price-table-list>\n\n  <!-- Highlighted plan -->\n  <mds-price-table-list class=\"bg-label-amaranth-10\">\n    <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Professional</mds-text>\n    <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">99 EUR</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n  </mds-price-table-list>\n</mds-price-table>\n```\n\n#### Styling a Plan Column\n\n`<mds-price-table-list>` has no public CSS custom property: the horizontal rule that separates the header from the item list keeps the colour the component gives it, in every mode and contrast preference. Adjust the layout of a plan through its documented `header`, `content` and `footer` shadow parts, and name a semantic role ([`agents/color.md`](../../../../agents/color.md)) for any colour you set there.\n\n```css\n.featured-plan mds-price-table-list::part(header) {\n  padding-bottom: calc(var(--spacing) * 200);\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of the `<mds-price-table>` family. 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 Use Child Components Outside Their Parent\n\n`<mds-price-table-features-row>` and `<mds-price-table-features-cell>` communicate with `<mds-price-table-features>` through the slot mechanism. Placing them in free-form HTML drops the `<table>` the parent renders around them (fixed layout, collapsed borders) and the cell padding it shares through `--mds-price-table-features-padding`.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n</mds-price-table-features-row>\n\n<!-- CORRECT -->\n<mds-price-table-features>\n  <mds-price-table-features-row>\n    <mds-price-table-features-cell type=\"label\">Utenti</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"text\">10</mds-price-table-features-cell>\n  </mds-price-table-features-row>\n</mds-price-table-features>\n```\n\n#### Do Not Omit the Slot Name on Plan Card Children\n\n`<mds-price-table-list>` routes content through named slots: `header`, `price`, and `action`. The component has no default slot: content without a `slot` attribute is not rendered at all (only `<mds-price-table-list-item>` assigns itself to the `item` slot).\n\n```html\n<!-- INCORRECT - none of these is rendered -->\n<mds-price-table-list>\n  <mds-text typography=\"h5\" tag=\"h4\">Piano Base</mds-text>\n  <mds-text typography=\"h2\" tag=\"h4\">49 EUR</mds-text>\n  <mds-button variant=\"dark\">Inizia</mds-button>\n</mds-price-table-list>\n\n<!-- CORRECT -->\n<mds-price-table-list>\n  <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Piano Base</mds-text>\n  <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR</mds-text>\n  <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n</mds-price-table-list>\n```\n\n#### Do Not Pass `supported=\"false\"` as a String on `mds-price-table-list-item`\n\n`supported` is a boolean prop: express a missing feature by removing the attribute, the convention for every Magma boolean ([`agents/conventions.md`](../../../../agents/conventions.md)). Stencil does parse `\"false\"` as `false`, but the attribute stays in the markup until the component hydrates and its reflection removes it, so a `[supported]` selector or any code reading the attribute sees it set in the meantime.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-list-item supported=\"false\">Export report</mds-price-table-list-item>\n\n<!-- CORRECT -->\n<mds-price-table-list-item>Export report</mds-price-table-list-item>\n```\n\n#### Do Not Use an Invalid `type` on `mds-price-table-features-cell`\n\n`type` accepts exactly five values: `label`, `text`, `supported`, `unsupported`, `custom`. An unrecognised value silently renders nothing because the component matches each value with a conditional render branch.\n\n```html\n<!-- INCORRECT (not a valid type value) -->\n<mds-price-table-features-cell type=\"check\"></mds-price-table-features-cell>\n<mds-price-table-features-cell type=\"icon\"></mds-price-table-features-cell>\n\n<!-- CORRECT -->\n<mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n```\n\n#### Do Not Place Free-Form HTML Directly Inside `mds-price-table`\n\n`<mds-price-table>` is a pure layout host - its slot expects the dedicated compound children. Arbitrary HTML breaks the grid spacing contract and produces unstyled content because the component applies no visual treatment to unknown children.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table>\n  <div class=\"piano\">\n    <h3>Piano Base</h3>\n    <p>49 EUR/mese</p>\n  </div>\n</mds-price-table>\n\n<!-- CORRECT -->\n<mds-price-table>\n  <mds-price-table-list>\n    <mds-text typography=\"h5\" tag=\"h4\" slot=\"header\">Piano Base</mds-text>\n    <mds-text typography=\"h2\" tag=\"h4\" slot=\"price\">49 EUR/mese</mds-text>\n    <mds-button slot=\"action\" variant=\"dark\">Inizia</mds-button>\n  </mds-price-table-list>\n</mds-price-table>\n```\n\n#### Do Not Put Slotted Content Inside `supported` or `unsupported` Cells\n\n`<mds-price-table-features-cell type=\"supported\">` and `type=\"unsupported\"` render a fixed icon and ignore any slotted content. Only `type=\"text\"`, `type=\"label\"`, and `type=\"custom\"` project slotted nodes.\n\n```html\n<!-- INCORRECT - slotted text is silently ignored -->\n<mds-price-table-features-cell type=\"supported\">Si</mds-price-table-features-cell>\n<mds-price-table-features-cell type=\"unsupported\">No</mds-price-table-features-cell>\n\n<!-- CORRECT - leave icon cells empty or use text/custom for values -->\n<mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n<mds-price-table-features-cell type=\"text\">Non disponibile</mds-price-table-features-cell>\n```\n\n#### Do Not Pierce Shadow Parts of Child Components to Restyle Cells\n\n`<mds-price-table-features-cell>` exposes two documented shadow parts: `icon` (the check or dash icon) and `text` (the detail text wrapper). Targeting undocumented internals via `>>>` or unlisted `::part()` names couples app code to implementation details that may change.\n\n```css\n/* INCORRECT */\nmds-price-table-features-cell >>> .icon {\n  fill: red;\n}\nmds-price-table-features-cell::part(cell-wrapper) {\n  padding: 1rem;\n}\n\n/* CORRECT */\nmds-price-table-features-cell::part(icon) {\n  fill: rgb(var(--magma-success-fg));\n}\n```\n"
      },
      "props": [],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [],
      "slots": [
        {
          "name": "",
          "docs": "Add `mds-price-table-list` elements or `components` to this slot."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [],
      "dependencyGraph": {},
      "storybook": "ui-price-table--docs"
    }
  ]
}
