{
  "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-features/mds-price-table-features.tsx",
      "encapsulation": "shadow",
      "tag": "mds-price-table-features",
      "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": "part",
          "text": "header - Selects the HTML element wrapper of label text"
        },
        {
          "name": "slot",
          "text": "- Expects to slot `mds-price-table-features-row` component"
        },
        {
          "name": "parent",
          "text": "mds-price-table"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-price-table-features>` web component is the feature-matrix block of the Magma Design System pricing-table family. It is a compound child of [`<mds-price-table>`](../mds-price-table/AGENTS.md) and renders a table inside its shadow root, turning its slotted rows into the side-by-side feature comparison grid of a pricing table.\n\n#### Semantic Behavior\n\n- **Compound child only**: Must be placed as a direct slot child of `<mds-price-table>`; it is not used standalone. Its own default slot expects only `mds-price-table-features-row` elements, which in turn hold `mds-price-table-features-cell` children.\n- **Table wrapper, not a leaf**: The host owns the structural table; the slotted rows and their cells supply the actual row/cell semantics.\n- **Optional header band**: A header (shadow part `header`) is rendered only when `label` is set, displaying the title. With no `label` the header is omitted and the table starts at the first row.\n- **No state, events, or form association**: The component is purely presentational. Cell content and per-cell rendering (supported / unsupported / text / label) are decided entirely by the child cells.\n\n#### Properties & Visual Configurations\n\nThis component has essentially one configurable prop:\n\n- **`label`**: Sets an optional title rendered in the header band above the matrix. Provide it to name the feature group (e.g. a section heading shared across all plan columns); omit it when the matrix should appear without a heading.\n\nAll other variation comes from the slotted children rather than from props. Column widths are computed by each `mds-price-table-features-row`, and the visual treatment of each cell is driven by the `type` prop on `mds-price-table-features-cell`. Spacing can be tuned through the public `--mds-price-table-features-padding` (the header band and, by inheritance, every cell), listed in [`AGENTS.md`](AGENTS.md); the dividers of the header band and of the cells keep the colour the component gives them.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-price-table-features>` component, 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#### Basic Feature Matrix\n\nThe minimal form: place `<mds-price-table-features>` inside [`<mds-price-table>`](../mds-price-table/AGENTS.md) and slot [`<mds-price-table-features-row>`](../mds-price-table-features-row/AGENTS.md) children. Each row holds one [`<mds-price-table-features-cell>`](../mds-price-table-features-cell/AGENTS.md) per plan column. The first cell of every row conventionally uses `type=\"label\"` to identify the feature.\n\n```html\n<mds-price-table>\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-cell type=\"text\">50</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">Illimitati</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Named Section with `label`\n\nSet the `label` prop to render a header band above the matrix. Use this to name a logical group of features - for example \"Report e analisi\" or \"Sicurezza\". Omit `label` when no group heading is needed.\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Report e analisi\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Esporta 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-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#### Supported and Unsupported Cells\n\nUse `type=\"supported\"` and `type=\"unsupported\"` for boolean feature availability. The cell renders a built-in icon - no slot content is needed (and any content is ignored).\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Funzionalita' avanzate\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Autenticazione SSO</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-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\">Notifiche email</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></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#### Text Cells with Contextual Help\n\nUse `type=\"text\"` to display a value string. Mix inline components such as [`<mds-help>`](../mds-help/AGENTS.md) inside the cell slot for additional context.\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Archiviazione\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Spazio incluso</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">10 GB</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">100 GB</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">\n        1 TB\n        <mds-help placement=\"top\">Può variare in base allo stato del server.</mds-help>\n      </mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n</mds-price-table>\n```\n\n#### Custom Cell Content via `type=\"custom\"`\n\nUse `type=\"custom\"` when none of the standard rendering modes fits. The slot is rendered without wrapping markup, giving full control over layout and content.\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Componenti aggiuntivi\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Integrazioni API</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=\"custom\">\n        <mds-badge label=\"Su richiesta\" variant=\"info\"></mds-badge>\n      </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#### Multiple Feature Sections in One Price Table\n\nCompose several `<mds-price-table-features>` blocks inside one [`<mds-price-table>`](../mds-price-table/AGENTS.md) to separate logical feature groups. Each block carries its own optional `label` heading.\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Funzioni di base\">\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\">5</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">Illimitati</mds-price-table-features-cell>\n    </mds-price-table-features-row>\n  </mds-price-table-features>\n\n  <mds-price-table-features label=\"Report e analisi\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Dashboard</mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"supported\"></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=\"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#### Styling Customization\n\nTune the cell spacing through the public `--mds-price-table-features-padding` CSS custom property, set on the host or on a parent selector; the dividers of the header band and of the cells keep the colour the component gives them.\n\n```css\n.pricing-section mds-price-table-features {\n  --mds-price-table-features-padding: calc(var(--spacing) * 400);\n}\n```\n\nTo style the header band independently, target the documented `header` shadow part; name a semantic role, `rgb(var(--magma-<role>))` ([`agents/color.md`](../../../../agents/color.md)), so dark mode and high-contrast modes keep working:\n\n```css\n.pricing-section mds-price-table-features::part(header) {\n  background: rgb(var(--magma-wash-base));\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-price-table-features>`. 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 Outside `<mds-price-table>`\n\n`<mds-price-table-features>` is a compound child; it belongs inside a [`<mds-price-table>`](../mds-price-table/AGENTS.md) parent, which stacks it with the plan header or cards it compares. Standalone it still renders its table, but it is cut off from the plans its columns refer to.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features label=\"Funzioni di base\">\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<!-- CORRECT -->\n<mds-price-table>\n  <mds-price-table-features label=\"Funzioni di base\">\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</mds-price-table>\n```\n\n#### Do Not Slot Arbitrary HTML Directly Into `<mds-price-table-features>`\n\nThe default slot of `<mds-price-table-features>` expects only `mds-price-table-features-row` elements. Slotting raw `<tr>`, `<div>`, or other markup bypasses the row-width calculation logic and breaks the table structure.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table>\n  <mds-price-table-features label=\"Funzioni\">\n    <tr>\n      <td>Utenti</td>\n      <td>10</td>\n    </tr>\n  </mds-price-table-features>\n</mds-price-table>\n\n<!-- CORRECT -->\n<mds-price-table>\n  <mds-price-table-features label=\"Funzioni\">\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</mds-price-table>\n```\n\n#### Do Not Add Slot Content to `supported` or `unsupported` Cells\n\n`type=\"supported\"` and `type=\"unsupported\"` render a built-in icon and ignore any slotted content. Adding text or components inside these cells is silent dead markup.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-cell type=\"supported\">Incluso</mds-price-table-features-cell>\n<mds-price-table-features-cell type=\"unsupported\">Non disponibile</mds-price-table-features-cell>\n\n<!-- CORRECT -->\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\n#### Do Not Use `type=\"text\"` as a Label Column\n\nThe `type=\"text\"` cell wraps its slot in a detail-typography `<mds-text>` element - it is meant for per-plan values, not for the feature name. Use `type=\"label\"` for the first (feature-name) cell of each row.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"text\">Spazio di archiviazione</mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"text\">10 GB</mds-price-table-features-cell>\n</mds-price-table-features-row>\n\n<!-- CORRECT -->\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">Spazio di archiviazione</mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"text\">10 GB</mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Do Not Omit Consistent Column Count Across Rows\n\nEvery `mds-price-table-features-row` in the same section must have the same number of cells. The row component computes each cell width as `100% / cellCount`; mismatched counts produce misaligned columns.\n\n```html\n<!-- INCORRECT - first row has 4 cells, second has 3 -->\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\">5</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"text\">Illimitati</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=\"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<!-- CORRECT - every row has the same number of cells -->\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\">5</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"text\">20</mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"text\">Illimitati</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=\"unsupported\"></mds-price-table-features-cell>\n    <mds-price-table-features-cell type=\"supported\"></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#### Do Not Customize via Undocumented `::part()` Selectors\n\nThe only documented shadow part is `header`. Targeting internal elements (the `table`, `tbody`, or the `mds-text` inside the header) via other `::part()` selectors or `>>>` couples your code to the internal structure and will break on updates.\n\n```css\n/* INCORRECT */\nmds-price-table-features::part(table) {\n  border-radius: 8px;\n}\nmds-price-table-features >>> table {\n  border: 2px solid red;\n}\n\n/* CORRECT */\nmds-price-table-features {\n  --mds-price-table-features-padding: calc(var(--spacing) * 400);\n}\nmds-price-table-features::part(header) {\n  background: rgb(var(--magma-wash-base));\n}\n```\n"
      },
      "props": [
        {
          "name": "label",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "label",
          "reflectToAttr": false,
          "docs": "Sets a header title for the entire table",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-price-table-features-border-color",
          "annotation": "prop",
          "docs": "Sets the border-color of the header and of the children cells, unless a cell sets its own `--mds-price-table-features-cell-border-color`",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-padding",
          "annotation": "prop",
          "docs": "Sets the cell padding of the children components",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "",
          "docs": "Expects to slot `mds-price-table-features-row` component"
        }
      ],
      "parts": [
        {
          "name": "header",
          "docs": "Selects the HTML element wrapper of label text"
        }
      ],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-text"
      ],
      "dependencyGraph": {
        "mds-price-table-features": [
          "mds-text"
        ]
      },
      "storybook": "ui-price-table-price-table-features--docs"
    }
  ]
}
