{
  "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-cell/mds-price-table-features-cell.tsx",
      "encapsulation": "shadow",
      "tag": "mds-price-table-features-cell",
      "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": "icon - Selects the HTML element of the icon when `type` attribute when is `supported` or `unsupported`."
        },
        {
          "name": "part",
          "text": "text - Selects the HTML element wrapper of text when `type` attribute when is `text`."
        },
        {
          "name": "slot",
          "text": "- Add `text string`, `HTML elements` or `components` to this slot."
        },
        {
          "name": "parent",
          "text": "mds-price-table-features-row"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-price-table-features-cell>` web component is a single cell within a feature comparison row of the Magma price table, rendering one of several visual representations (a support icon, plain text, a label, or arbitrary custom content) depending on its `type`. It is a compound child of [`<mds-price-table-features-row>`](../mds-price-table-features-row/AGENTS.md), which orchestrates a set of cells and conceptually stands in for a table cell within the row.\n\n#### Semantic Behavior\n\n- **Compound child constraint**: Must be used as a direct slot child of `<mds-price-table-features-row>`; it is not standalone and a row is expected to contain only cells of this type.\n- **Width is parent-driven**: The cell does not size itself - the parent row distributes equal width across its cells so columns stay aligned across rows.\n- **Type-switched rendering**: A single `type` prop drives entirely different output: `supported`/`unsupported` render a check-circle or horizontal-rule icon, `text` wraps the default slot in `detail` typography, while `custom` and `label` pass the default slot straight through with no wrapper.\n- **No interactive state**: There is no selected/active/disabled/open state, no emitted events, no form association, and no custom role or ARIA - semantics come from the surrounding table structure.\n\n#### Properties & Visual Configurations\n\nThe only configurable prop is `type` (default `text`), which selects what the cell represents rather than just how it looks:\n\n- Use `supported` / `unsupported` for the boolean \"feature included / not included\" columns - these draw the built-in check-circle and horizontal-rule icons and require no slot content.\n- Use `text` for short descriptive values that should adopt the table's `detail` typography automatically.\n- Use `label` for the leading row-label cell describing the feature being compared.\n- Use `custom` when you need to slot arbitrary HTML or other components without the text wrapper, taking full control of the cell's content.\n\nThe full set of accepted values is in the Props table of [`AGENTS.md`](AGENTS.md); this component does not use the shared `variant` / `tone` ladders defined in [`agents/variants.md`](../../../../agents/variants.md).\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-price-table-features-cell>` 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#### Supported / Unsupported Icon Cells\n\nThe most common use: a boolean \"feature included\" or \"feature not included\" column. Use `type=\"supported\"` or `type=\"unsupported\"` and leave the slot empty - the component renders the built-in check-circle or horizontal-rule icon automatically.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">Accesso API</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=\"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#### Label Cell for the Row Feature Name\n\nPlace `type=\"label\"` on the first cell of every row to mark it as the feature descriptor. The slot accepts plain text or a combination of text and a help tooltip component.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">\n    Larghezza di banda\n    <mds-help disable-auto-placement placement=\"top\">\n      Calcolata per singolo utente attivo al mese.\n    </mds-help>\n  </mds-price-table-features-cell>\n  <mds-price-table-features-cell>10 GB</mds-price-table-features-cell>\n  <mds-price-table-features-cell>50 GB</mds-price-table-features-cell>\n  <mds-price-table-features-cell>Illimitata</mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Text Cell for Short Descriptive Values (default)\n\n`type=\"text\"` (the default) wraps slot content in `<mds-text typography=\"detail\">`, applying the table's standard detail typography. Use it for concise values such as storage limits or user counts.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">Utenti inclusi</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\">25</mds-price-table-features-cell>\n  <mds-price-table-features-cell>Illimitati</mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Help Tooltip for an Icon Row\n\nEven when the icon speaks for itself, a help tooltip can add context. A `supported` / `unsupported` cell renders only its icon and drops any slotted content, so a tooltip slotted there never shows: put the `<mds-help>` in the row's `label` cell.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">\n    Supporto dedicato\n    <mds-help disable-auto-placement placement=\"top\">\n      Disponibile nei giorni feriali dalle 9 alle 18, non incluso nel piano base.\n    </mds-help>\n  </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=\"unsupported\"></mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Custom Cell for Arbitrary Content\n\nUse `type=\"custom\"` when a plain-text or icon representation is insufficient and you need full control of the cell's content - for example a badge, a rating widget, or a formatted value with a unit.\n\n```html\n<mds-price-table-features-row>\n  <mds-price-table-features-cell type=\"label\">Assistenza clienti</mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"custom\">\n    <mds-chip label=\"E-mail\" variant=\"info\" tone=\"weak\"></mds-chip>\n  </mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"custom\">\n    <mds-chip label=\"Chat live\" variant=\"success\" tone=\"weak\"></mds-chip>\n  </mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"custom\">\n    <mds-chip label=\"Telefono 24/7\" variant=\"primary\" tone=\"strong\"></mds-chip>\n  </mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Full Composition Inside the Price Table\n\nCells must always be children of [`<mds-price-table-features-row>`](../mds-price-table-features-row/AGENTS.md), which in turn lives inside [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md) and [`<mds-price-table>`](../mds-price-table/AGENTS.md). Do not use the cell outside this hierarchy.\n\n```html\n<mds-price-table>\n  <mds-price-table-features label=\"Funzionalita incluse\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"label\">Backup automatico</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\">Spazio di archiviazione</mds-price-table-features-cell>\n      <mds-price-table-features-cell>5 GB</mds-price-table-features-cell>\n      <mds-price-table-features-cell>20 GB</mds-price-table-features-cell>\n      <mds-price-table-features-cell>Illimitato</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\nStyle the cell only through its public `--mds-price-table-features-cell-*` CSS custom properties and its documented `icon` and `text` shadow parts. Set them on the host or a parent selector; the border and the icon colours (the categorical `label-green` palette for a supported feature) come from the component and follow dark mode and high-contrast modes by themselves. For any colour you set on a part, name a semantic role, `rgb(var(--magma-<role>))` ([`agents/color.md`](../../../../agents/color.md)).\n\n```css\nmds-price-table-features-cell {\n  --mds-price-table-features-cell-padding: calc(var(--spacing) * 400);\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-price-table-features-cell>`. 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 the Cell Outside Its Parent Hierarchy\n\nThe cell is a compound subpart and renders as `display: table-cell`. Used outside [`<mds-price-table-features-row>`](../mds-price-table-features-row/AGENTS.md) it loses all layout context and column alignment breaks.\n\n```html\n<!-- INCORRECT -->\n<div>\n  <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n  <mds-price-table-features-cell type=\"text\">20 GB</mds-price-table-features-cell>\n</div>\n\n<!-- CORRECT -->\n<mds-price-table>\n  <mds-price-table-features label=\"Caratteristiche\">\n    <mds-price-table-features-row>\n      <mds-price-table-features-cell type=\"supported\"></mds-price-table-features-cell>\n      <mds-price-table-features-cell type=\"text\">20 GB</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 Content Into `supported` or `unsupported` Cells to Override the Icon\n\n`type=\"supported\"` and `type=\"unsupported\"` always render the built-in icon regardless of slot content; slotted markup is not rendered at all. Use `type=\"custom\"` if you need a different visual representation.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-cell type=\"supported\">\n  <mds-icon name=\"mi/baseline/star\"></mds-icon>\n</mds-price-table-features-cell>\n\n<!-- CORRECT -->\n<mds-price-table-features-cell type=\"custom\">\n  <mds-icon name=\"mi/baseline/star\"></mds-icon>\n</mds-price-table-features-cell>\n```\n\n#### Do Not Omit `type=\"label\"` on the Feature-Name Cell\n\nWithout `type=\"label\"`, the first cell falls back to `type=\"text\"` and its content is wrapped in `<mds-text typography=\"detail\">`. This produces the wrong typographic weight for a row header and breaks the visual hierarchy.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-row>\n  <mds-price-table-features-cell>Numero di 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\">25</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\">Numero di 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\">25</mds-price-table-features-cell>\n</mds-price-table-features-row>\n```\n\n#### Do Not Add Rich HTML Into a `text` Cell\n\n`type=\"text\"` wraps content in `<mds-text typography=\"detail\">`; inserting block elements, interactive controls, or multiple children produces unpredictable layout inside that wrapper. Use `type=\"custom\"` for anything more complex than a plain text string.\n\n```html\n<!-- INCORRECT -->\n<mds-price-table-features-cell type=\"text\">\n  <strong>20 GB</strong>\n  <small> inclusi</small>\n</mds-price-table-features-cell>\n\n<!-- CORRECT -->\n<mds-price-table-features-cell type=\"custom\">\n  <strong>20 GB</strong>\n  <small> inclusi</small>\n</mds-price-table-features-cell>\n```\n\n#### Do Not Pierce the Shadow DOM to Restyle Icon or Text Parts\n\nThe only supported customization surface for this component is the public `--mds-price-table-features-cell-*` CSS custom properties and the two documented shadow parts (`icon`, `text`). Targeting undocumented internal selectors will break on any minor release.\n\n```css\n/* INCORRECT */\nmds-price-table-features-cell >>> .icon--supported {\n  fill: hotpink;\n}\n\n/* CORRECT */\nmds-price-table-features-cell[type=\"supported\"]::part(icon) {\n  fill: rgb(var(--label-orchid-06));\n}\nmds-price-table-features-cell::part(icon) {\n  opacity: 0.8;\n}\n```\n"
      },
      "props": [
        {
          "name": "type",
          "type": "\"custom\" | \"label\" | \"supported\" | \"text\" | \"unsupported\" | undefined",
          "complexType": {
            "original": "PriceTableFeaturesCellType",
            "resolved": "\"custom\" | \"label\" | \"supported\" | \"text\" | \"unsupported\" | undefined",
            "references": {
              "PriceTableFeaturesCellType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-price-table-features-cell/meta/types.ts::PriceTableFeaturesCellType",
                "referenceLocation": "PriceTableFeaturesCellType"
              }
            }
          },
          "mutable": false,
          "attr": "type",
          "reflectToAttr": true,
          "docs": "Specifies the support type which is represented",
          "docsTags": [
            {
              "name": "default",
              "text": "'text'"
            }
          ],
          "default": "'text'",
          "values": [
            {
              "value": "custom",
              "type": "string"
            },
            {
              "value": "label",
              "type": "string"
            },
            {
              "value": "supported",
              "type": "string"
            },
            {
              "value": "text",
              "type": "string"
            },
            {
              "value": "unsupported",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-price-table-features-cell-border-color",
          "annotation": "prop",
          "docs": "Border color of individual feature cells, defaults to the border color of the section.",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-cell-icon-supported-color",
          "annotation": "prop",
          "docs": "Default color of the supported feature icon.",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-cell-icon-supported-color-hover",
          "annotation": "prop",
          "docs": "Color of the supported feature icon on hover.",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-cell-icon-unsupported-color",
          "annotation": "prop",
          "docs": "Default color of the unsupported feature icon.",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-cell-icon-unsupported-color-hover",
          "annotation": "prop",
          "docs": "Color of the unsupported feature icon on hover.",
          "visibility": "internal"
        },
        {
          "name": "--mds-price-table-features-cell-padding",
          "annotation": "prop",
          "docs": "Padding applied to each feature cell, defaults to the section padding.",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "",
          "docs": "Add `text string`, `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [
        {
          "name": "icon",
          "docs": "Selects the HTML element of the icon when `type` attribute when is `supported` or `unsupported`."
        },
        {
          "name": "text",
          "docs": "Selects the HTML element wrapper of text when `type` attribute when is `text`."
        }
      ],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-text"
      ],
      "dependencyGraph": {
        "mds-price-table-features-cell": [
          "mds-text"
        ]
      },
      "storybook": "ui-price-table-price-table-features-cell--docs"
    }
  ]
}
