{
  "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-separator/mds-separator.tsx",
      "encapsulation": "shadow",
      "tag": "mds-separator",
      "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": "category",
          "text": "structure"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-separator>` web component is the visual divider of the Magma Design System: a thin, full-radius horizontal rule used to partition content into distinct groups. It is a purely presentational primitive - the styled equivalent of an `<hr>` - with no props, slots, events, or interactive state.\n\n#### Semantic Behavior\n\n- **Presentational by default**: It exposes no role or ARIA attributes and accepts no children, so it is treated as decorative chrome rather than semantic content.\n- **Theme-reactive coloring**: The separator color adapts automatically to the active appearance - darker under dark themes and stronger under high-contrast preferences - with no consumer wiring required.\n- **No state or interaction**: There is no disabled, await, focus, or keyboard behavior - the element is inert and never enters the tab sequence.\n\n#### Properties & Visual Configurations\n\nThe component defines no configurable props. The only intended customization point is the CSS custom property **`--mds-separator-background`** (default `rgb(var(--magma-border-default))`) that overrides the divider color; set it to a semantic color role so the divider keeps following the mode and the contrast preference.\n\nFor the semantic color roles the default value draws from, see [`agents/color.md`](../../../../agents/color.md).\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-separator>` 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#### Dividing Items in a List or Card\n\nThe most common use: place `<mds-separator>` between stacked rows or sections to create a thin visual boundary without adding semantic structure. The component is inert and carries no ARIA role, so it works as pure chrome.\n\n```html\n<div class=\"grid rounded-(--magma-radius-xl) bg-surface-raised overflow-hidden\">\n  <mds-entity icon=\"mi/baseline/person\">\n    <mds-text typography=\"h6\">Mario Rossi</mds-text>\n  </mds-entity>\n  <mds-separator></mds-separator>\n  <mds-entity icon=\"mi/baseline/person\">\n    <mds-text typography=\"h6\">Luigi Verdi</mds-text>\n  </mds-entity>\n  <mds-separator></mds-separator>\n  <mds-entity icon=\"mi/baseline/person\">\n    <mds-text typography=\"h6\">Wario</mds-text>\n  </mds-entity>\n</div>\n```\n\n#### Dividing Sections Inside a Card\n\nUse `<mds-separator>` to separate groups of content inside a card region. `<mds-card>` renders only its four named slots, so a separator placed directly in the card, between the regions, is not rendered: put it inside the region, as a direct sibling of the rows it divides - do not wrap it.\n\n```html\n<mds-card>\n  <mds-card-header slot=\"header\">\n    <mds-text typography=\"h6\">Riepilogo ordine</mds-text>\n  </mds-card-header>\n  <mds-card-content slot=\"content\">\n    <mds-text typography=\"paragraph\">Subtotale: 104,92 EUR</mds-text>\n    <mds-separator></mds-separator>\n    <mds-text typography=\"paragraph\">Totale: 128,00 EUR</mds-text>\n  </mds-card-content>\n  <mds-card-footer slot=\"footer\">\n    <mds-button label=\"Conferma\" variant=\"primary\" tone=\"strong\"></mds-button>\n  </mds-card-footer>\n</mds-card>\n```\n\n#### Dividing Items Inside a Price-Table List\n\n`<mds-separator>` is the internal divider used by [`mds-price-table-list`](../mds-price-table-list/AGENTS.md), between its header and its items. When building a custom feature list, place one separator between consecutive rows, never one before the first or after the last.\n\n```html\n<div class=\"grid\">\n  <mds-text typography=\"caption\">Archiviazione inclusa</mds-text>\n  <mds-separator></mds-separator>\n  <mds-text typography=\"caption\">Utenti illimitati</mds-text>\n  <mds-separator></mds-separator>\n  <mds-text typography=\"caption\">Supporto dedicato</mds-text>\n</div>\n```\n\n#### Custom Separator Color\n\nOverride the divider color through the single documented CSS custom property `--mds-separator-background`. Use a semantic color role wrapped in `rgb(var(--magma-<role>))` so dark-mode and high-contrast variants keep working.\n\n```css\n.sezione-speciale mds-separator {\n  --mds-separator-background: rgb(var(--magma-accent-border));\n}\n```\n\n```html\n<div class=\"sezione-speciale\">\n  <mds-text typography=\"h6\">Piano Pro</mds-text>\n  <mds-separator></mds-separator>\n  <mds-text typography=\"paragraph\">Accesso a tutte le funzionalita</mds-text>\n</div>\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-separator>`. 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 a Raw `<hr>` Instead of `<mds-separator>`\n\nUsing a plain `<hr>` bypasses the Magma token system, so the divider will not adapt to dark mode or high-contrast preferences automatically. Use `<mds-separator>` for any themed divider inside a Magma layout.\n\n```html\n<!-- INCORRECT -->\n<mds-entity icon=\"mi/baseline/person\">\n  <mds-text typography=\"h6\">Mario Rossi</mds-text>\n</mds-entity>\n<hr>\n<mds-entity icon=\"mi/baseline/person\">\n  <mds-text typography=\"h6\">Luigi Verdi</mds-text>\n</mds-entity>\n\n<!-- CORRECT -->\n<mds-entity icon=\"mi/baseline/person\">\n  <mds-text typography=\"h6\">Mario Rossi</mds-text>\n</mds-entity>\n<mds-separator></mds-separator>\n<mds-entity icon=\"mi/baseline/person\">\n  <mds-text typography=\"h6\">Luigi Verdi</mds-text>\n</mds-entity>\n```\n\n#### Do Not Put Content Inside `<mds-separator>`\n\nThe component defines no slots and accepts no children. Placing text or elements inside it has no effect and may produce unexpected layout behavior.\n\n```html\n<!-- INCORRECT -->\n<mds-separator>oppure</mds-separator>\n\n<!-- CORRECT -->\n<!-- Use a dedicated labeled-divider pattern with a flex row if a label is needed -->\n<div class=\"flex items-center gap-300\">\n  <mds-separator class=\"grow\"></mds-separator>\n  <mds-text typography=\"caption\">oppure</mds-text>\n  <mds-separator class=\"grow\"></mds-separator>\n</div>\n```\n\n#### Do Not Override Color with a Raw CSS Value\n\nSetting `--mds-separator-background` to a literal hex or RGB value without using a semantic color role breaks dark mode and high-contrast adaptation. Always wrap the value in `rgb(var(--magma-<role>))`.\n\n```css\n/* INCORRECT */\nmds-separator {\n  --mds-separator-background: #cccccc;\n}\n\n/* CORRECT */\nmds-separator {\n  --mds-separator-background: rgb(var(--magma-border-muted));\n}\n```\n\n#### Do Not Pierce Shadow DOM to Style the Separator\n\nThere are no documented `::part()` names on `<mds-separator>`. The only supported customization surface is `--mds-separator-background`. Targeting internal elements via `>>>` or undocumented selectors will break on future releases.\n\n```css\n/* INCORRECT */\nmds-separator >>> :host {\n  height: 2px;\n  border-radius: 0;\n}\n\n/* CORRECT */\n/* Only --mds-separator-background is the supported override.\n   Layout constraints such as height are not part of its styling API. */\nmds-separator {\n  --mds-separator-background: rgb(var(--magma-accent-border));\n}\n```\n\n#### Do Not Add Semantic Roles to `<mds-separator>`\n\n`<mds-separator>` is purely decorative. Adding `role=\"separator\"` or `aria-orientation` introduces misleading semantics for assistive technology. `<mds-hr>` carries no role either: express a meaningful break through the document structure (headings, sections).\n\n```html\n<!-- INCORRECT -->\n<mds-separator role=\"separator\" aria-orientation=\"horizontal\"></mds-separator>\n\n<!-- CORRECT - decorative divider (no ARIA needed) -->\n<mds-separator></mds-separator>\n```\n"
      },
      "props": [],
      "methods": [],
      "events": [],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-separator-background",
          "annotation": "prop",
          "docs": "Background color of the separator element.",
          "visibility": "public"
        }
      ],
      "slots": [],
      "parts": [],
      "states": [],
      "dependents": [
        "mds-price-table-list"
      ],
      "dependencies": [],
      "dependencyGraph": {
        "mds-price-table-list": [
          "mds-separator"
        ]
      },
      "storybook": "ui-separator--docs"
    }
  ]
}
