{
  "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-file-preview/mds-file-preview.tsx",
      "encapsulation": "shadow",
      "tag": "mds-file-preview",
      "docs": "",
      "docsTags": [
        {
          "name": "part",
          "text": "card - The preview of the file: its thumbnail or format icon, its name and its details"
        },
        {
          "name": "category",
          "text": "content"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-file-preview>` web component is the Magma Design System card that previews an uploaded or referenced file, surfacing its name, size, type, and a format-aware icon or thumbnail. It pairs with `<mds-input-upload>` to represent each attached file and adds download/delete affordances around the bare file metadata.\n\n#### Semantic Behavior\n\n- **Format auto-detection**: The `filename` extension determines the icon, badge colour, and human-readable description; `suffix` forces a specific known format and `format` is the resolved category.\n- **Download interaction**: With `downloadable` the card is a button in the tab order: a click, Enter or Space emits `mdsFileDownload` with `{ target, filename, extension }`, once. Without it the card is not interactive and emits nothing. `downloadable` renders no download icon.\n- **Delete affordance**: When `deletable` is set, a light icon button renders in the corner and emits `mdsFileDelete` with the same detail payload, leaving the actual removal to the consumer.\n- **Filesize formatting**: A numeric `filesize` string is treated as bytes and formatted automatically; any non-numeric string is shown verbatim.\n- **Preview vs. icon vs. status**: A thumbnail renders only when `src` is set, the format supports preview, and no `message` is present; otherwise a format icon is shown, and when `message` is present the card switches to a status layout displaying that feedback text.\n- **Localization**: Default type descriptions and action titles resolve through the locale system (el/en/es/it).\n\n#### Properties & Visual Configurations\n\n- **`filename`** is the source of truth: beyond being the title, it drives icon, badge, and description inference, so prefer a real name with extension over a cosmetic label.\n- **`suffix`** overrides extension detection when the filename is unreliable or missing an extension; pick from the known format set rather than passing the description directly.\n- **`description`** overrides only the textual filetype caption, leaving icon and badge inference intact. The caption is shown only without `filesize`; with a size it stays as the badge tooltip.\n- **`src`** supplies a thumbnail (e.g. a logo or downscaled image) shown in place of the generic icon when the format is previewable and no message is active.\n- **`message`** turns the card into a feedback/status state (validation, error, progress text) and suppresses the thumbnail.\n\n#### Component-specific variants and tones\n\nThe shared `variant` / `tone` ladders are defined in [`agents/variants.md`](../../../../agents/variants.md). `variant` here is an avatar-flavored value and is rendered **only when `message` is set**, coloring the status layout; the format badge derives its own colour from the detected filetype independently (its tone is always `weak`).\n\n#### Other behavioral props\n\n- **`icon`** overrides the auto-detected glyph with a Magma icon slug, an inline `<svg ...>` string or a `data:image/svg+xml;base64,` URI.\n- **`truncate`** controls how the filename is shortened when it overflows, defaulting to `'word'`.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-file-preview>` component, ordered from most common to most specialized. The examples assume a working knowledge of the variant / tone ladders documented in [`agents/variants.md`](../../../../agents/variants.md) and the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Minimal File Card\n\nThe required prop is `filename`. The component infers icon, badge colour, and type description automatically from the extension. Always pass a real filename with extension.\n\n```html\n<mds-file-preview filename=\"relazione-annuale.pdf\"></mds-file-preview>\n```\n\n#### File Card with Size\n\nPass `filesize` as a numeric byte count and the component formats it automatically (JEDEC: KB, MB, GB). Pass a plain string to show a pre-formatted label verbatim.\n\n```html\n<!-- Numeric bytes - auto-formatted to \"9.77 MB\" -->\n<mds-file-preview filename=\"contratto.docx\" filesize=\"10248594\"></mds-file-preview>\n\n<!-- Pre-formatted string - shown verbatim -->\n<mds-file-preview filename=\"archivio.zip\" filesize=\"12 MB\"></mds-file-preview>\n```\n\n#### Download Interaction\n\nAdd `downloadable` to make the whole card a button: the component emits `mdsFileDownload` with `{ target, filename, extension }` on a click, Enter or Space. Without `downloadable` the card emits nothing. Listen to the event; do not add a click handler on a wrapper element.\n\n```html\n<mds-file-preview\n  filename=\"documento.pdf\"\n  filesize=\"2048000\"\n  downloadable\n></mds-file-preview>\n```\n\n```javascript\ndocument.querySelector('mds-file-preview').addEventListener('mdsFileDownload', (e) => {\n  const { filename, extension } = e.detail;\n  console.log('Download richiesto:', filename, extension);\n});\n```\n\n#### Delete Affordance\n\nAdd `deletable` to show a dismiss button in the top-right corner. The component emits `mdsFileDelete` with `{ target, filename, extension }`. The consumer is responsible for removing the element from the DOM.\n\n```html\n<mds-file-preview\n  filename=\"bozza.docx\"\n  filesize=\"512000\"\n  deletable\n></mds-file-preview>\n```\n\n```javascript\ndocument.querySelector('mds-file-preview').addEventListener('mdsFileDelete', (e) => {\n  e.detail.target.remove();\n});\n```\n\n#### Image Thumbnail\n\nSet `src` to show a thumbnail instead of the generic icon. The thumbnail renders only when the format supports preview (images) and no `message` is set; other formats fall back to the icon.\n\n```html\n<mds-file-preview\n  filename=\"foto-profilo.jpg\"\n  filesize=\"84791746\"\n  src=\"./thumbnails/foto-profilo-thumb.webp\"\n></mds-file-preview>\n```\n\n#### Status / Feedback State\n\nSet `message` to switch the card to a feedback layout - the thumbnail is suppressed and the text is displayed alongside the icon. Pair with `variant` to colour the status region semantically. `variant` has no visual effect without `message`.\n\n```html\n<!-- Errore di formato -->\n<mds-file-preview\n  filename=\"documento.exe\"\n  message=\"Formato file non consentito\"\n  variant=\"error\"\n></mds-file-preview>\n\n<!-- Caricamento in corso -->\n<mds-file-preview\n  filename=\"video.mp4\"\n  filesize=\"52428800\"\n  message=\"Caricamento in corso...\"\n  variant=\"info\"\n></mds-file-preview>\n```\n\n#### Overriding Format Detection\n\nUse `suffix` to force a known extension category when the filename has no extension or the extension is ambiguous. Use `description` to override only the textual type caption while leaving icon and badge inference intact.\n\n```html\n<!-- Force suffix when filename has no extension -->\n<mds-file-preview filename=\"report\" suffix=\"pdf\"></mds-file-preview>\n\n<!-- Custom description label, icon unchanged -->\n<mds-file-preview\n  filename=\"modulo.pdf\"\n  description=\"Modulo di iscrizione\"\n></mds-file-preview>\n```\n\n#### Custom Icon\n\nSet `icon` to override the auto-detected glyph with any icon slug from the Magma library, or a `data:image/svg+xml;base64,` URI for a dynamic icon from an API.\n\n```html\n<!-- Named icon slug -->\n<mds-file-preview\n  filename=\"report.csv\"\n  filesize=\"32768\"\n  icon=\"mi/baseline/table-chart\"\n></mds-file-preview>\n```\n\n#### Filename Truncation\n\n`truncate` defaults to `word`, which keeps the filename on one line with an ellipsis. Use `all` to clamp it to two lines with an ellipsis. Use `none` to allow the filename to wrap freely.\n\n```html\n<mds-file-preview\n  filename=\"Questo-e-uno-dei-nomi-file-piu-lunghi-che-lumanita-abbia-mai-visto.docx\"\n  filesize=\"84791746\"\n  truncate=\"all\"\n></mds-file-preview>\n```\n\n#### Inside `mds-input-upload`\n\n`<mds-file-preview>` is the child card rendered by [`mds-input-upload`](../mds-input-upload/AGENTS.md). When integrating with the upload component, let `mds-input-upload` manage the cards rather than instantiating `mds-file-preview` directly.\n\n```html\n<mds-input-upload\n  max-files=\"5\"\n  accept=\".pdf,.docx\"\n></mds-input-upload>\n```\n\n#### Styling Customization\n\nStyle the card only through its public `--mds-file-preview-*` CSS custom properties. Set them on the host or a parent selector; use the semantic color roles via `rgb(var(--magma-<role>))` and the `--magma-radius-*` scale so dark mode and the corner geometry keep working.\n\n```css\n.carta-allegato mds-file-preview {\n  --mds-file-preview-background-color: rgb(var(--magma-accent-surface-subtle));\n  --mds-file-preview-border-radius: var(--magma-radius-md);\n  --mds-file-preview-color: rgb(var(--magma-accent-fg));\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-file-preview>`. 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 Pass a Label Instead of a Real Filename\n\n`filename` drives automatic icon, badge, and description inference. Passing a cosmetic label without an extension produces the generic fallback icon and no badge, losing all format-aware information.\n\n```html\n<!-- INCORRECT -->\n<mds-file-preview filename=\"Contratto\"></mds-file-preview>\n\n<!-- CORRECT -->\n<mds-file-preview filename=\"contratto-2024.pdf\"></mds-file-preview>\n```\n\n#### Do Not Set `variant` Without `message`\n\n`variant` colours the status layout that is only rendered when `message` is set. Setting `variant` alone has no visual effect and misleads readers of the code into thinking the card is themed.\n\n```html\n<!-- INCORRECT -->\n<mds-file-preview filename=\"report.pdf\" variant=\"error\"></mds-file-preview>\n\n<!-- CORRECT -->\n<mds-file-preview\n  filename=\"report.pdf\"\n  message=\"File danneggiato\"\n  variant=\"error\"\n></mds-file-preview>\n```\n\n#### Do Not Listen for Native `click` to Handle Downloads\n\nThe component emits `mdsFileDownload` with the file detail when the card is clicked. Attaching an outer `click` handler bypasses the detail payload and also fires for clicks on the delete button.\n\n```html\n<!-- INCORRECT -->\n<div onclick=\"handleClick()\">\n  <mds-file-preview filename=\"documento.docx\" downloadable></mds-file-preview>\n</div>\n\n<!-- CORRECT -->\n<mds-file-preview filename=\"documento.docx\" downloadable></mds-file-preview>\n```\n\n```javascript\n// INCORRECT - native click on a wrapper\ndocument.querySelector('div').addEventListener('click', handleClick);\n\n// CORRECT - documented mdsFileDownload event\ndocument.querySelector('mds-file-preview').addEventListener('mdsFileDownload', (e) => {\n  download(e.detail.filename);\n});\n```\n\n#### Do Not Remove the Element Yourself Without Listening to `mdsFileDelete`\n\n`deletable` makes the delete button visible but leaves removal to the consumer. Removing the element from a `click` listener on the host - rather than `mdsFileDelete` - fires on any click inside the card, not only on the delete button, and bypasses the detail payload.\n\n```html\n<!-- INCORRECT -->\n<mds-file-preview filename=\"allegato.zip\" deletable onclick=\"this.remove()\"></mds-file-preview>\n\n<!-- CORRECT -->\n<mds-file-preview filename=\"allegato.zip\" deletable></mds-file-preview>\n```\n\n```javascript\ndocument.querySelector('mds-file-preview').addEventListener('mdsFileDelete', (e) => {\n  e.detail.target.remove();\n});\n```\n\n#### Do Not Wrap `mds-file-preview` in an Anchor to Add Download\n\nWrapping a card in `<a href=\"...\">` nests an already-interactive card (and its delete button, when `deletable`) inside a link, which fails accessibility audits. Use `downloadable` and handle `mdsFileDownload` instead.\n\n```html\n<!-- INCORRECT -->\n<a href=\"/files/documento.pdf\" download>\n  <mds-file-preview filename=\"documento.pdf\"></mds-file-preview>\n</a>\n\n<!-- CORRECT -->\n<mds-file-preview filename=\"documento.pdf\" downloadable></mds-file-preview>\n```\n\n#### Do Not Use `suffix` to Pass a Free-Form String\n\n`suffix` accepts only values from the documented `ExtensionSuffixType` union (e.g. `\"pdf\"`, `\"docx\"`, `\"jpg\"`). Passing an unsupported string silently falls back to the default icon and loses format inference.\n\n```html\n<!-- INCORRECT -->\n<mds-file-preview filename=\"report\" suffix=\"documento-word\"></mds-file-preview>\n\n<!-- CORRECT -->\n<mds-file-preview filename=\"report\" suffix=\"docx\"></mds-file-preview>\n```\n\n#### Customize via Documented Vars and the `card` Part Only\n\nThe only documented shadow part is `card`. Targeting inner selectors via `::part()`, `>>>`, or attribute hacks couples code to internal Shadow DOM structure and will break on minor releases.\n\n```css\n/* INCORRECT */\nmds-file-preview::part(icon) {\n  width: 48px;\n}\nmds-file-preview >>> .file-name {\n  font-size: 1rem;\n}\n\n/* CORRECT */\nmds-file-preview {\n  --mds-file-preview-color: rgb(var(--magma-accent-fg));\n  --mds-file-preview-background-color: rgb(var(--magma-accent-surface-subtle));\n}\nmds-file-preview::part(card) {\n  padding: calc(var(--spacing) * 600);\n}\n```\n"
      },
      "props": [
        {
          "name": "deletable",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "deletable",
          "reflectToAttr": true,
          "docs": "Enables the cross icon to perform cancel/delete action on element",
          "docsTags": [],
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "description",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "description",
          "reflectToAttr": true,
          "docs": "Overrides the default filetype description",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "downloadable",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "downloadable",
          "reflectToAttr": true,
          "docs": "Turns the card into a button that asks for the download: a tab stop that the pointer, Enter\nand Space activate, emitting `mdsFileDownload`. Without it the card is not interactive",
          "docsTags": [],
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "filename",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "filename",
          "reflectToAttr": true,
          "docs": "The filename shown as component title, is used to auto assign one of the filetype known in the filetype dictionary",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": true,
          "getter": false,
          "setter": false
        },
        {
          "name": "filesize",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "filesize",
          "reflectToAttr": true,
          "docs": "The filesize shown, if you pass a string you can write whathever you want, if you pass a number it expect filesize in bytes, the component will format it automatically.",
          "docsTags": [
            {
              "name": "example",
              "text": "'2.4 MB'"
            }
          ],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "format",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": true,
          "attr": "format",
          "reflectToAttr": true,
          "docs": "The kind of file, recognised from the extension of `filename` or from `suffix`: it selects\nthe colours of the icon. The component writes it on load and whenever `filename` changes,\nset `suffix` to choose it",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "icon",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "icon",
          "reflectToAttr": true,
          "docs": "The name of the icon or a base64 string to render it as an svg",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "message",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "message",
          "reflectToAttr": true,
          "docs": "Sets a feedback message related to the component",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "src",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "src",
          "reflectToAttr": true,
          "docs": "The image preview src if available of a file, useful if you have a logo to display, or a smaller version of a bigger image",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "suffix",
          "type": "\"7z\" | \"ace\" | \"ai\" | \"db\" | \"default\" | \"dmg\" | \"doc\" | \"docm\" | \"docx\" | \"eml\" | \"eps\" | \"exe\" | \"flac\" | \"gif\" | \"heic\" | \"htm\" | \"html\" | \"jpe\" | \"jpeg\" | \"jpg\" | \"js\" | \"json\" | \"jsx\" | \"m2v\" | \"mp2\" | \"mp3\" | \"mp4\" | \"mp4v\" | \"mpeg\" | \"mpg\" | \"mpg4\" | \"mpga\" | \"odf\" | \"odp\" | \"ods\" | \"odt\" | \"ole\" | \"p7m\" | \"pdf\" | \"php\" | \"png\" | \"ppt\" | \"rar\" | \"rtf\" | \"sass\" | \"shtml\" | \"svg\" | \"tar\" | \"tiff\" | \"ts\" | \"tsd\" | \"txt\" | \"wav\" | \"webp\" | \"xar\" | \"xls\" | \"xlsx\" | \"xml\" | \"zip\" | undefined",
          "complexType": {
            "original": "ExtensionSuffixType",
            "resolved": "\"7z\" | \"ace\" | \"ai\" | \"db\" | \"default\" | \"dmg\" | \"doc\" | \"docm\" | \"docx\" | \"eml\" | \"eps\" | \"exe\" | \"flac\" | \"gif\" | \"heic\" | \"htm\" | \"html\" | \"jpe\" | \"jpeg\" | \"jpg\" | \"js\" | \"json\" | \"jsx\" | \"m2v\" | \"mp2\" | \"mp3\" | \"mp4\" | \"mp4v\" | \"mpeg\" | \"mpg\" | \"mpg4\" | \"mpga\" | \"odf\" | \"odp\" | \"ods\" | \"odt\" | \"ole\" | \"p7m\" | \"pdf\" | \"php\" | \"png\" | \"ppt\" | \"rar\" | \"rtf\" | \"sass\" | \"shtml\" | \"svg\" | \"tar\" | \"tiff\" | \"ts\" | \"tsd\" | \"txt\" | \"wav\" | \"webp\" | \"xar\" | \"xls\" | \"xlsx\" | \"xml\" | \"zip\" | undefined",
            "references": {
              "ExtensionSuffixType": {
                "location": "import",
                "path": "@type/file-types",
                "id": "src/type/file-types.ts::ExtensionSuffixType",
                "referenceLocation": "ExtensionSuffixType"
              }
            }
          },
          "mutable": false,
          "attr": "suffix",
          "reflectToAttr": true,
          "docs": "Overrides the automatic filetype recongition by forcing the suffix to one of the available formats choosen",
          "docsTags": [],
          "values": [
            {
              "value": "7z",
              "type": "string"
            },
            {
              "value": "ace",
              "type": "string"
            },
            {
              "value": "ai",
              "type": "string"
            },
            {
              "value": "db",
              "type": "string"
            },
            {
              "value": "default",
              "type": "string"
            },
            {
              "value": "dmg",
              "type": "string"
            },
            {
              "value": "doc",
              "type": "string"
            },
            {
              "value": "docm",
              "type": "string"
            },
            {
              "value": "docx",
              "type": "string"
            },
            {
              "value": "eml",
              "type": "string"
            },
            {
              "value": "eps",
              "type": "string"
            },
            {
              "value": "exe",
              "type": "string"
            },
            {
              "value": "flac",
              "type": "string"
            },
            {
              "value": "gif",
              "type": "string"
            },
            {
              "value": "heic",
              "type": "string"
            },
            {
              "value": "htm",
              "type": "string"
            },
            {
              "value": "html",
              "type": "string"
            },
            {
              "value": "jpe",
              "type": "string"
            },
            {
              "value": "jpeg",
              "type": "string"
            },
            {
              "value": "jpg",
              "type": "string"
            },
            {
              "value": "js",
              "type": "string"
            },
            {
              "value": "json",
              "type": "string"
            },
            {
              "value": "jsx",
              "type": "string"
            },
            {
              "value": "m2v",
              "type": "string"
            },
            {
              "value": "mp2",
              "type": "string"
            },
            {
              "value": "mp3",
              "type": "string"
            },
            {
              "value": "mp4",
              "type": "string"
            },
            {
              "value": "mp4v",
              "type": "string"
            },
            {
              "value": "mpeg",
              "type": "string"
            },
            {
              "value": "mpg",
              "type": "string"
            },
            {
              "value": "mpg4",
              "type": "string"
            },
            {
              "value": "mpga",
              "type": "string"
            },
            {
              "value": "odf",
              "type": "string"
            },
            {
              "value": "odp",
              "type": "string"
            },
            {
              "value": "ods",
              "type": "string"
            },
            {
              "value": "odt",
              "type": "string"
            },
            {
              "value": "ole",
              "type": "string"
            },
            {
              "value": "p7m",
              "type": "string"
            },
            {
              "value": "pdf",
              "type": "string"
            },
            {
              "value": "php",
              "type": "string"
            },
            {
              "value": "png",
              "type": "string"
            },
            {
              "value": "ppt",
              "type": "string"
            },
            {
              "value": "rar",
              "type": "string"
            },
            {
              "value": "rtf",
              "type": "string"
            },
            {
              "value": "sass",
              "type": "string"
            },
            {
              "value": "shtml",
              "type": "string"
            },
            {
              "value": "svg",
              "type": "string"
            },
            {
              "value": "tar",
              "type": "string"
            },
            {
              "value": "tiff",
              "type": "string"
            },
            {
              "value": "ts",
              "type": "string"
            },
            {
              "value": "tsd",
              "type": "string"
            },
            {
              "value": "txt",
              "type": "string"
            },
            {
              "value": "wav",
              "type": "string"
            },
            {
              "value": "webp",
              "type": "string"
            },
            {
              "value": "xar",
              "type": "string"
            },
            {
              "value": "xls",
              "type": "string"
            },
            {
              "value": "xlsx",
              "type": "string"
            },
            {
              "value": "xml",
              "type": "string"
            },
            {
              "value": "zip",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "truncate",
          "type": "\"all\" | \"none\" | \"word\" | undefined",
          "complexType": {
            "original": "TypographyTruncateType",
            "resolved": "\"all\" | \"none\" | \"word\" | undefined",
            "references": {
              "TypographyTruncateType": {
                "location": "import",
                "path": "@type/text",
                "id": "src/type/text.ts::TypographyTruncateType",
                "referenceLocation": "TypographyTruncateType"
              }
            }
          },
          "mutable": false,
          "attr": "truncate",
          "reflectToAttr": true,
          "docs": "Truncates the filename shown",
          "docsTags": [
            {
              "name": "default",
              "text": "'word'"
            }
          ],
          "default": "'word'",
          "values": [
            {
              "value": "all",
              "type": "string"
            },
            {
              "value": "none",
              "type": "string"
            },
            {
              "value": "word",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "variant",
          "type": "\"amaranth\" | \"aqua\" | \"blue\" | \"error\" | \"green\" | \"info\" | \"lime\" | \"orange\" | \"orchid\" | \"primary\" | \"purple\" | \"red\" | \"sky\" | \"success\" | \"violet\" | \"warning\" | \"yellow\" | undefined",
          "complexType": {
            "original": "ThemeFullVariantAvatarType",
            "resolved": "\"amaranth\" | \"aqua\" | \"blue\" | \"error\" | \"green\" | \"info\" | \"lime\" | \"orange\" | \"orchid\" | \"primary\" | \"purple\" | \"red\" | \"sky\" | \"success\" | \"violet\" | \"warning\" | \"yellow\" | undefined",
            "references": {
              "ThemeFullVariantAvatarType": {
                "location": "import",
                "path": "@type/variant",
                "id": "src/type/variant.ts::ThemeFullVariantAvatarType",
                "referenceLocation": "ThemeFullVariantAvatarType"
              }
            }
          },
          "mutable": false,
          "attr": "variant",
          "reflectToAttr": true,
          "docs": "The variant of the component, is shown only if the message attribute is defined",
          "docsTags": [],
          "values": [
            {
              "value": "amaranth",
              "type": "string"
            },
            {
              "value": "aqua",
              "type": "string"
            },
            {
              "value": "blue",
              "type": "string"
            },
            {
              "value": "error",
              "type": "string"
            },
            {
              "value": "green",
              "type": "string"
            },
            {
              "value": "info",
              "type": "string"
            },
            {
              "value": "lime",
              "type": "string"
            },
            {
              "value": "orange",
              "type": "string"
            },
            {
              "value": "orchid",
              "type": "string"
            },
            {
              "value": "primary",
              "type": "string"
            },
            {
              "value": "purple",
              "type": "string"
            },
            {
              "value": "red",
              "type": "string"
            },
            {
              "value": "sky",
              "type": "string"
            },
            {
              "value": "success",
              "type": "string"
            },
            {
              "value": "violet",
              "type": "string"
            },
            {
              "value": "warning",
              "type": "string"
            },
            {
              "value": "yellow",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [],
      "events": [
        {
          "event": "mdsFileDelete",
          "detail": "MdsFilePreviewEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsFilePreviewEventDetail",
            "resolved": "MdsFilePreviewEventDetail",
            "references": {
              "MdsFilePreviewEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-file-preview/meta/event-detail.ts::MdsFilePreviewEventDetail",
                "referenceLocation": "MdsFilePreviewEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the component is removed, returning file infos",
          "docsTags": []
        },
        {
          "event": "mdsFileDownload",
          "detail": "MdsFilePreviewEventDetail",
          "bubbles": true,
          "complexType": {
            "original": "MdsFilePreviewEventDetail",
            "resolved": "MdsFilePreviewEventDetail",
            "references": {
              "MdsFilePreviewEventDetail": {
                "location": "import",
                "path": "./meta/event-detail",
                "id": "src/components/mds-file-preview/meta/event-detail.ts::MdsFilePreviewEventDetail",
                "referenceLocation": "MdsFilePreviewEventDetail"
              }
            }
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits when the component is clicked, returning file infos",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-file-preview-background-color",
          "annotation": "prop",
          "docs": "Sets the background color of the file preview container",
          "visibility": "public"
        },
        {
          "name": "--mds-file-preview-border-radius",
          "annotation": "prop",
          "docs": "Sets the border-radius of the file preview container",
          "visibility": "public"
        },
        {
          "name": "--mds-file-preview-color",
          "annotation": "prop",
          "docs": "Sets the text color used inside the file preview",
          "visibility": "public"
        },
        {
          "name": "--mds-file-preview-icon-background",
          "annotation": "prop",
          "docs": "Sets the background color of the file preview icon",
          "visibility": "internal"
        },
        {
          "name": "--mds-file-preview-icon-color",
          "annotation": "prop",
          "docs": "Sets the color of the file preview icon",
          "visibility": "internal"
        }
      ],
      "slots": [],
      "parts": [
        {
          "name": "card",
          "docs": "The preview of the file: its thumbnail or format icon, its name and its details"
        }
      ],
      "states": [],
      "dependents": [
        "mds-input-upload"
      ],
      "dependencies": [
        "mds-button",
        "mds-img",
        "mds-icon",
        "mds-text",
        "mds-badge"
      ],
      "dependencyGraph": {
        "mds-file-preview": [
          "mds-button",
          "mds-img",
          "mds-icon",
          "mds-text",
          "mds-badge"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-img": [
          "mds-icon",
          "mds-text",
          "mds-button"
        ],
        "mds-badge": [
          "mds-text"
        ],
        "mds-input-upload": [
          "mds-file-preview"
        ]
      },
      "storybook": "ui-file-preview--docs"
    }
  ]
}
