{
  "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-input-date/mds-input-date.tsx",
      "encapsulation": "shadow",
      "tag": "mds-input-date",
      "docs": "",
      "docsTags": [
        {
          "name": "part",
          "text": "input-date - The native date input"
        },
        {
          "name": "category",
          "text": "forms"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-input-date>` web component is the Magma Design System control for capturing a single calendar date. It wraps a native `<input type=\"date\">`, adding form association, ISO value validation against an optional `min`/`max` range, contextual tips, and a button-triggered calendar dropdown for visual date picking.\n\n#### Semantic Behavior\n\n- **Form association**: The host participates natively in form submission and exposes its `value` under `name`; a form reset brings back the date the field had at load, both shown and submitted, and its pristine look, like a native input. An invalid value submits nothing, and its invalid state is reported to the form: like a native control, the field matches `:invalid` and stops the submit, with a message in the page language (a missing required date, a date out of the range, an unreadable one). A disabled or read-only field is left out, and `novalidate` on the `<form>` turns the check off.\n- **Disabled fieldset**: A disabled `<fieldset>` around the component disables it as `disabled` does, like a native control: it cannot be changed and its value is left out of the form, until the fieldset is enabled.\n- **ISO value contract**: `value`, `min`, and `max` are all ISO date strings (`YYYY-MM-DD`); other formats are not accepted.\n- **Validation on change**: The value is checked when the component loads, on every value change and whenever `required`, `min` or `max` change (also after load, as with the React wrappers under SSR). The validity reported to the form, the submitted value and the required tip follow every check: a date invalid, missing while `required` or outside the `min`/`max` range submits no value. The look follows once the field is touched, like `:user-invalid` on a native control: after the user edits or leaves the field, picks a date from the calendar, or a stopped submit points at it, each check sets `variant` to `'error'` or `'primary'` and emits `mdsInputValidation` with a boolean. An empty `required` field therefore loads in its own variant, not in `'error'`.\n- **Range self-correction**: If `max` is earlier than `min`, at load or after a later change of either, `max` is snapped to equal `min`.\n- **Selection event**: `mdsInputDateSelect` fires with the new string value whenever `value` changes, whether typed or picked from the calendar.\n- **Calendar dropdown**: The trailing calendar button, icon-only and named in the page language (the `lang` of `<html>`) (\"Open calendar\"), opens a single-date calendar; picking a day writes back the value and, after `delay`, auto-closes. It is shown only while the user can change the date: a read-only or disabled field (a disabled `<fieldset>` included) has no calendar button, its text takes its room and its end is left to the badge of its state; a calendar open on a field that becomes so closes.\n- **Slotted mode**: When the host carries a `slot` attribute it is treated as embedded - the calendar button, dropdown, and calendar are not rendered, leaving only the bare input for composition inside a larger field.\n- **Contextual tips**: A tip surfaces `disabled`, `readonly`, and `required` states; the required tip expands on focus and reflects success once the value is valid. It stands on the top border of the field, half outside, clear of its rounded corner, and stays there while the field has the focus, as on `mds-input`.\n- **Read-only**: A read-only field shows its tip and auto-selects its text on focus; its native input is read-only and it has no calendar button, so the value cannot be changed.\n\n#### Properties & Visual Configurations\n\nThe shared `variant` ladder is defined in [`agents/variants.md`](../../../../agents/variants.md). Note that `variant` is mutable here: once the field is touched, the component overrides it to `'error'` / `'primary'` as validation dictates, so a variant set in the markup or from script lasts until the user edits or leaves the field.\n\n- **`size`** sets the height of the field, the same as [`<mds-button>`](../mds-button/AGENTS.md): `sm` 28px, `md` 36px, `lg` 48px (default). Match it to the buttons next to the field, or go smaller in dense layouts (filter bars, table toolbars); the text style stays the same, the padding and the inner calendar button scale with it.\n\n#### Other behavioral props\n\n- **`min`** / **`max`** bound the selectable range; dates outside it invalidate the field rather than being silently clamped.\n- **`delay`** is the milliseconds to wait before auto-closing the calendar dropdown after a pick; setting it to `0` keeps the dropdown open.\n- **`required`** makes an empty or invalid value fail validation and drives the required/required-success tip.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-input-date>` component, ordered from most common to most specialized. The examples assume a working knowledge of the variant ladder documented in [`agents/variants.md`](../../../../agents/variants.md) and the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Basic Date Input\n\nThe simplest form. Wrap in [`mds-input-field`](../mds-input-field/AGENTS.md) to attach a visible label. Use `name` so the value is submitted with the form.\n\n```html\n<mds-input-field label=\"Data di nascita\">\n  <mds-input-date name=\"birthdate\"></mds-input-date>\n</mds-input-field>\n```\n\n#### Pre-filled Value\n\nSet `value` to an ISO date string (`YYYY-MM-DD`) to initialize the picker with a known date. Do not use other date formats.\n\n```html\n<mds-input-date name=\"dataScadenza\" value=\"2026-12-31\"></mds-input-date>\n```\n\n#### Required Field\n\nAdd `required` to make an empty or invalid date fail validation. The component surfaces a tip on focus; the field stops the submit while empty, and turns to `'error'` once the user leaves it empty or a stopped submit points at it, until a valid date is entered.\n\n```html\n<mds-input-field label=\"Data di inizio *\">\n  <mds-input-date name=\"startDate\" required></mds-input-date>\n</mds-input-field>\n```\n\n#### Bounded Date Range\n\nUse `min` and `max` (both ISO strings) to restrict the selectable range. Dates outside the range invalidate the field and, once it is touched, emit `mdsInputValidation` with `false`. If `max` is earlier than `min` at load time, the component snaps `max` to equal `min`.\n\n```html\n<mds-input-date\n  name=\"dataSopralluogo\"\n  min=\"2026-01-01\"\n  max=\"2026-12-31\"\n></mds-input-date>\n```\n\n#### Listening to Value Changes\n\nListen to `mdsInputDateSelect` (fires with the new ISO string) for every value change - whether typed or picked from the calendar. Listen to `mdsInputValidation` to react to validity changes.\n\n```html\n<mds-input-date id=\"picker\" name=\"dataEvento\"></mds-input-date>\n\n<script>\n  const picker = document.getElementById('picker');\n\n  picker.addEventListener('mdsInputDateSelect', (e) => {\n    console.log('Data selezionata:', e.detail); // \"2026-06-15\"\n  });\n\n  picker.addEventListener('mdsInputValidation', (e) => {\n    console.log('Valido:', e.detail); // true | false\n  });\n</script>\n```\n\n#### Programmatic Value via `setValue`\n\nUse the `setValue` method to set the value from JavaScript; it emits `mdsInputDateSelect` and checks the value. Unlike a user interaction it does not touch the field: on a pristine field the validity reaches the form, but the variant and `mdsInputValidation` wait for the user.\n\n```html\n<mds-input-date id=\"datePicker\" name=\"dataConsegna\"></mds-input-date>\n\n<script>\n  document.getElementById('datePicker').setValue('2026-09-01');\n</script>\n```\n\n#### Controlling Calendar Auto-close Delay\n\nThe calendar dropdown closes `delay` milliseconds after a date is picked (default 500 ms). Set `delay=\"0\"` to keep it open after selection - useful when the picker is used inside a form where the user might want to confirm before the overlay disappears.\n\n```html\n<!-- Default: closes 500 ms after pick -->\n<mds-input-date name=\"dataRiunione\" delay=\"500\"></mds-input-date>\n\n<!-- Keep open until the user dismisses manually -->\n<mds-input-date name=\"dataRiunione\" delay=\"0\"></mds-input-date>\n```\n\n#### Disabled and Read-only States\n\n`disabled` blocks all interaction and removes the field from the tab sequence. `readonly` keeps the field in the tab sequence and selects its text on focus, but the date cannot be changed: the native input is read-only and there is no calendar button. Both surface a contextual tip on the top border, and leave the end of the field to it.\n\n```html\n<!-- Disabled: no interaction at all -->\n<mds-input-date name=\"dataArchiviazione\" disabled value=\"2025-01-01\"></mds-input-date>\n\n<!-- Read-only: focusable, not editable -->\n<mds-input-date name=\"dataCreazione\" readonly value=\"2024-06-01\"></mds-input-date>\n```\n\n#### Form Participation\n\n`<mds-input-date>` is form-associated and submits its ISO value under `name`. A missing `required` date, or one out of the `min`/`max` range, stops the submit like a native control. A form reset brings back the date of load, both shown and submitted.\n\n```html\n<form action=\"/prenota\" method=\"post\">\n  <mds-input-field label=\"Data prenotazione\">\n    <mds-input-date name=\"bookingDate\" required></mds-input-date>\n  </mds-input-field>\n  <mds-button type=\"submit\" label=\"Conferma\" variant=\"primary\" tone=\"strong\"></mds-button>\n</form>\n```\n\n#### Slotted Mode Inside a Compound Field\n\nWhen the host carries a `slot` attribute, the component renders only the bare native input - the calendar button, dropdown, and calendar are suppressed. This is the correct way to embed the date input inside [`mds-input-date-range`](../mds-input-date-range/AGENTS.md) or a custom compound field.\n\n```html\n<mds-input-date-range>\n  <mds-input-date slot=\"start\" name=\"rangeStart\"></mds-input-date>\n  <mds-input-date slot=\"end\" name=\"rangeEnd\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Variant Override for External State Signalling\n\n`variant` is driven automatically by validation (`'error'` on invalid, `'primary'` on valid) once the field is touched. To communicate an external state, write it in the markup or set it from script: it lasts until the user edits or leaves the field. Values follow the theme input ladder: `primary` (default), `error`, `success`, `warning`, `info`, `ai`.\n\n```html\n<mds-input-date id=\"dataConferma\" name=\"dataConferma\" value=\"2026-03-15\"></mds-input-date>\n\n<script>\n  // Pre-mark as success when the date was already validated server-side\n  const field = document.getElementById('dataConferma');\n  field.componentOnReady().then(() => {\n    field.variant = 'success';\n  });\n</script>\n```\n\n#### Styling Customization\n\nStyle the component only through its public `--mds-input-date-*` CSS custom properties. Use the semantic color roles via `rgb(var(--magma-<role>))` so dark mode and high-contrast work automatically.\n\n```css\n.booking-widget mds-input-date {\n  --mds-input-date-background: rgb(var(--magma-wash-base));\n  --mds-input-date-ring: 0 0 0 2px rgb(var(--magma-border-focus) / 0.5);\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-input-date>`. 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 Non-ISO Date Strings\n\n`value`, `min`, and `max` must be ISO 8601 date strings (`YYYY-MM-DD`). Any other format is passed to `DateTime.fromISO`, which marks the date invalid: a non-ISO `value` immediately trips validation, and a non-ISO `min` / `max` is silently ignored.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date value=\"31/12/2026\" max=\"31-12-2026\"></mds-input-date>\n\n<!-- CORRECT -->\n<mds-input-date value=\"2026-12-31\" max=\"2026-12-31\"></mds-input-date>\n```\n\n#### Do Not Hardcode `variant=\"error\"` to Signal Validation\n\nThe component manages `variant` automatically: it sets `'error'` when validation fails and restores `'primary'` when it passes. Hardcoding `variant=\"error\"` shows an error before the user has done anything, does not stop the submit, and is overwritten as soon as the user touches the field.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date name=\"dataScadenza\" variant=\"error\"></mds-input-date>\n\n<!-- CORRECT - let validation drive variant; listen to mdsInputValidation instead -->\n<mds-input-date name=\"dataScadenza\" required></mds-input-date>\n```\n\n#### Do Not Listen to the Native `change` or `input` Events\n\nThe component emits `mdsInputDateSelect` (value string) and `mdsInputValidation` (boolean). The native `change` event does not cross the shadow boundary, and `input` misses calendar-driven picks and values set from script.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date id=\"picker\" name=\"data\"></mds-input-date>\n<script>\n  document.getElementById('picker').addEventListener('change', handler);\n</script>\n\n<!-- CORRECT -->\n<mds-input-date id=\"picker\" name=\"data\"></mds-input-date>\n<script>\n  document.getElementById('picker').addEventListener('mdsInputDateSelect', handler);\n</script>\n```\n\n#### Do Not Use a Raw `<input type=\"date\">` as a Drop-in Replacement\n\nReplacing `<mds-input-date>` with a plain `<input type=\"date\">` loses form-association conventions, theming, the calendar overlay, the contextual tip, and all Magma accessibility defaults.\n\n```html\n<!-- INCORRECT -->\n<input type=\"date\" name=\"dataEvento\" />\n\n<!-- CORRECT -->\n<mds-input-date name=\"dataEvento\"></mds-input-date>\n```\n\n#### Do Not Set `disabled=\"false\"` or `readonly=\"false\"` to Remove the State\n\nBoolean attributes must be absent to be off. `mds-input-date` is form-associated, so as on a native control any value turns them on, `\"false\"` included: this markup renders a disabled, read-only field.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date name=\"data\" disabled=\"false\" readonly=\"false\"></mds-input-date>\n\n<!-- CORRECT - remove the attribute entirely -->\n<mds-input-date name=\"data\"></mds-input-date>\n```\n\n#### Do Not Pierce Shadow DOM to Style the Inner Input\n\nThe documented customization surface is the public `--mds-input-date-*` CSS custom properties plus the `::part(input-date)` part. Targeting internals with `>>>`, `/deep/`, or undocumented selectors will break on any minor release.\n\n```css\n/* INCORRECT */\nmds-input-date >>> .input {\n  border: 2px solid red;\n}\n\n/* CORRECT */\nmds-input-date {\n  --mds-input-date-ring: 0 0 0 2px rgb(var(--magma-danger-border) / 0.8);\n}\nmds-input-date::part(input-date) {\n  font-size: var(--text-size-info-caption);\n}\n```\n\n#### Do Not Set `value` to Clear the Field\n\nSetting `value=\"\"` is the correct way to clear; do not set `value` to a non-ISO string expecting the component to silently ignore it - it passes through validation and trips an error state.\n\n```html\n<!-- INCORRECT (non-ISO value to \"reset\") -->\n<mds-input-date name=\"data\" value=\"clear\"></mds-input-date>\n\n<!-- CORRECT -->\n<mds-input-date name=\"data\" value=\"\"></mds-input-date>\n```\n"
      },
      "props": [
        {
          "name": "accessibleName",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "aria-label",
          "reflectToAttr": false,
          "docs": "The accessible name of the native control: the label a screen reader announces. An\n`mds-input-field` around the component passes its own label down here, so the attribute\nis only written by hand when the control stands on its own. The placeholder is deliberately\nnot a fallback: it disappears as soon as the field is filled.",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "delay",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "delay",
          "reflectToAttr": true,
          "docs": "Specifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not close",
          "docsTags": [
            {
              "name": "description",
              "text": "Default is 500"
            },
            {
              "name": "default",
              "text": "500"
            }
          ],
          "default": "500",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disabled",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "disabled",
          "reflectToAttr": true,
          "docs": "If true, the element is displayed as disabled. The calendar button is not shown: the end of\nthe field is left to the badge of its state",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideToday",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-today",
          "reflectToAttr": true,
          "docs": "Hides the highlight on today's date in the calendar.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "max",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": true,
          "attr": "max",
          "reflectToAttr": true,
          "docs": "Specifies the max date of the range, user cannot set dates after this date",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-12-31'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "min",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": true,
          "attr": "min",
          "reflectToAttr": true,
          "docs": "Specifies the min date of the range, user cannot set dates before this date",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-01-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "name",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "name",
          "reflectToAttr": true,
          "docs": "Is needed to reference the form data after the form is submitted",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "readonly",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "readonly",
          "reflectToAttr": true,
          "docs": "Specifies that the element is read-only: the date cannot be typed, and the calendar button is\nnot shown, as on a disabled field",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "required",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "required",
          "reflectToAttr": true,
          "docs": "Specifies that the element must be filled out before submitting the form",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "size",
          "type": "\"lg\" | \"md\" | \"sm\" | undefined",
          "complexType": {
            "original": "InputSizeType",
            "resolved": "\"lg\" | \"md\" | \"sm\" | undefined",
            "references": {
              "InputSizeType": {
                "location": "import",
                "path": "@type/input",
                "id": "src/type/input.ts::InputSizeType",
                "referenceLocation": "InputSizeType"
              }
            }
          },
          "mutable": false,
          "attr": "size",
          "reflectToAttr": true,
          "docs": "Specifies the height of the field, the same as `mds-button`: `sm` 28px, `md` 36px, `lg` 48px",
          "docsTags": [
            {
              "name": "default",
              "text": "'lg'"
            }
          ],
          "default": "'lg'",
          "values": [
            {
              "value": "lg",
              "type": "string"
            },
            {
              "value": "md",
              "type": "string"
            },
            {
              "value": "sm",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "value",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "value",
          "reflectToAttr": true,
          "docs": "Specifies the value of the input",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-06-15'"
            },
            {
              "name": "default",
              "text": "''"
            }
          ],
          "default": "''",
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "variant",
          "type": "\"ai\" | \"error\" | \"info\" | \"primary\" | \"success\" | \"warning\" | undefined",
          "complexType": {
            "original": "ThemeInputVariantType",
            "resolved": "\"ai\" | \"error\" | \"info\" | \"primary\" | \"success\" | \"warning\" | undefined",
            "references": {
              "ThemeInputVariantType": {
                "location": "import",
                "path": "@type/variant",
                "id": "src/type/variant.ts::ThemeInputVariantType",
                "referenceLocation": "ThemeInputVariantType"
              }
            }
          },
          "mutable": true,
          "attr": "variant",
          "reflectToAttr": true,
          "docs": "Sets the variant of the input field",
          "docsTags": [
            {
              "name": "default",
              "text": "'primary'"
            }
          ],
          "default": "'primary'",
          "values": [
            {
              "value": "ai",
              "type": "string"
            },
            {
              "value": "error",
              "type": "string"
            },
            {
              "value": "info",
              "type": "string"
            },
            {
              "value": "primary",
              "type": "string"
            },
            {
              "value": "success",
              "type": "string"
            },
            {
              "value": "warning",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [
        {
          "name": "focusInput",
          "returns": {
            "type": "Promise<void>",
            "docs": ""
          },
          "complexType": {
            "signature": "() => Promise<void>",
            "parameters": [],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              },
              "HTMLInputElement": {
                "location": "global",
                "id": "global::HTMLInputElement"
              }
            },
            "return": "Promise<void>"
          },
          "signature": "focusInput() => Promise<void>",
          "parameters": [],
          "docs": "Sets focus on the underlying input element.",
          "docsTags": []
        },
        {
          "name": "getErrors",
          "returns": {
            "type": "Promise<MdsValidationErrors | null>",
            "docs": "the validation errors, or `null` when valid"
          },
          "complexType": {
            "signature": "() => Promise<MdsValidationErrors | null>",
            "parameters": [],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              },
              "MdsValidationErrors": {
                "location": "import",
                "path": "src/components",
                "id": "src/components.d.ts::MdsValidationErrors",
                "referenceLocation": "MdsValidationErrors"
              }
            },
            "return": "Promise<MdsValidationErrors | null>"
          },
          "signature": "getErrors() => Promise<MdsValidationErrors | null>",
          "parameters": [],
          "docs": "Returns the current validation errors, or `null` if the value is valid.",
          "docsTags": [
            {
              "name": "returns",
              "text": "the validation errors, or `null` when valid"
            }
          ]
        },
        {
          "name": "setValue",
          "returns": {
            "type": "Promise<void>",
            "docs": ""
          },
          "complexType": {
            "signature": "(value: string) => Promise<void>",
            "parameters": [
              {
                "name": "value",
                "type": "string",
                "docs": "the value to set, in ISO format (YYYY-MM-DD)"
              }
            ],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              }
            },
            "return": "Promise<void>"
          },
          "signature": "setValue(value: string) => Promise<void>",
          "parameters": [
            {
              "name": "value",
              "type": "string",
              "docs": "the value to set, in ISO format (YYYY-MM-DD)"
            }
          ],
          "docs": "Sets the input value.",
          "docsTags": [
            {
              "name": "param",
              "text": "value the value to set, in ISO format (YYYY-MM-DD)"
            }
          ]
        }
      ],
      "events": [
        {
          "event": "mdsInputDateSelect",
          "detail": "string",
          "bubbles": true,
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the selected date value changes.",
          "docsTags": []
        },
        {
          "event": "mdsInputValidation",
          "detail": "boolean",
          "bubbles": true,
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emits a boolean event when a input execute validation",
          "docsTags": []
        }
      ],
      "listeners": [
        {
          "event": "invalid",
          "capture": false,
          "passive": false
        }
      ],
      "styles": [
        {
          "name": "--mds-input-date-background",
          "annotation": "prop",
          "docs": "The background of the date input",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-field-background-empty",
          "annotation": "prop",
          "docs": "The background when the date field is empty",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-field-color-empty",
          "annotation": "prop",
          "docs": "The text/icon color when the date field is empty",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-icon-color",
          "annotation": "prop",
          "docs": "The color of the date input icon",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-icon-color-rgb",
          "annotation": "prop",
          "docs": "Deprecated, read by nothing: the icon takes `--mds-input-date-icon-color`.",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-ring",
          "annotation": "prop",
          "docs": "The focus ring of the date input",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-shadow",
          "annotation": "prop",
          "docs": "The shadow applied to the date input",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-variant-color-rgb",
          "annotation": "prop",
          "docs": "The base RGB value for the date input variant",
          "visibility": "public"
        },
        {
          "name": "--mds-input-tip-background",
          "annotation": "prop",
          "docs": "The background of the input tip",
          "visibility": "public"
        }
      ],
      "slots": [],
      "parts": [
        {
          "name": "input-date",
          "docs": "The native date input"
        }
      ],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-button",
        "mds-input-tip",
        "mds-input-tip-item",
        "mds-dropdown",
        "mds-calendar"
      ],
      "dependencyGraph": {
        "mds-input-date": [
          "mds-button",
          "mds-input-tip",
          "mds-input-tip-item",
          "mds-dropdown",
          "mds-calendar"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-input-tip-item": [
          "mds-text"
        ],
        "mds-calendar": [
          "mds-button",
          "mds-calendar-cell"
        ],
        "mds-calendar-cell": [
          "mds-button"
        ]
      },
      "storybook": "form-input-date--docs"
    }
  ]
}
