{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [
      {
        "attributes": [
          {
            "name": "aria-label",
            "value": "${ifDefined(aria.ariaLabel)}"
          },
          {
            "name": "aria-labelledby",
            "value": "${ifDefined(aria.labelledBy)}"
          },
          {
            "name": "aria-modal",
            "value": "true"
          },
          {
            "name": "role",
            "value": "${aria.role}"
          }
        ],
        "description": "Dialog panel: `aria-modal=\"true\"` with the configured `dialog`/`alertdialog` role, named via `aria-label` or `aria-labelledby`.",
        "part": "dialog"
      },
      {
        "attributes": [],
        "description": "Backdrop wrapper; no ARIA attributes of its own.",
        "part": "overlay"
      }
    ],
    "notes": [
      "The panel is `aria-modal=\"true\"` with the configured `dialog`/`alertdialog` role; focus moves into the panel on open and back to the opener on close.",
      "Structure panel content with `.z-modal-header`, `.z-modal-body`, and `.z-modal-footer`; give the dialog an accessible name via `aria-label` or `aria-labelledby`."
    ]
  },
  "attributes": [
    {
      "default": "false",
      "description": "Opens the dialog on first render and stays in sync with `show()` and `hide()`.",
      "from": "DialogMixin",
      "name": "open",
      "property": "open",
      "reflect": true,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Vertically centers the panel within the overlay.",
      "from": "DialogMixin",
      "name": "center",
      "property": "center",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-container` to the overlay for a contained presentation.",
      "from": "DialogMixin",
      "name": "container",
      "property": "container",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Adds `z-modal-full` to the overlay for a full-screen presentation.",
      "from": "DialogMixin",
      "name": "full",
      "property": "full",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps other open dialogs open; without it, showing this dialog hides them. Stacked overlays receive increasing z-index.",
      "from": "DialogMixin",
      "name": "stack",
      "property": "stack",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Keeps the component in its original DOM position instead of teleporting it to `document.body`.",
      "from": "DialogMixin",
      "name": "inline",
      "property": "inline",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing when the overlay background is clicked.",
      "from": "DialogMixin",
      "name": "no-bg-close",
      "property": "no-bg-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Disables closing with the Esc key.",
      "from": "DialogMixin",
      "name": "no-esc-close",
      "property": "no-esc-close",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "false",
      "description": "Removes the rendered DOM after the close transition; the next show mounts it again.",
      "from": "DialogMixin",
      "name": "unmount",
      "property": "unmount",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "'dialog'",
      "description": "ARIA role of the panel: `dialog` or `alertdialog`.",
      "from": "DialogMixin",
      "name": "dialog-role",
      "property": "dialogRole",
      "reflect": false,
      "tokens": null,
      "type": "'dialog' | 'alertdialog'",
      "values": [
        "dialog",
        "alertdialog"
      ]
    },
    {
      "default": "''",
      "description": "Accessible name for the panel when no `aria-labelledby` is set.",
      "from": "DialogMixin",
      "name": "aria-label",
      "property": "ariaLabelText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Id of the element that names the panel; takes precedence over `aria-label`.",
      "from": "DialogMixin",
      "name": "aria-labelledby",
      "property": "ariaLabelledbyText",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Per-instance text overrides as `key: text` pairs, merged over the global `z-i18n` script and the built-in defaults.",
      "from": "Hwc",
      "name": "i18n",
      "property": "i18n",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Floating UI placement options (for example `offset` and `shiftPadding`) parsed as `key: value` pairs.",
      "from": "Hwc",
      "name": "floating",
      "property": "floating",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "false",
      "description": "Skips re-rendering after the first render; an existing `data-host-inner` child is adopted as the rendered DOM.",
      "from": "Hwc",
      "name": "force-prevent-rerender",
      "property": "force-prevent-rerender",
      "reflect": false,
      "tokens": null,
      "type": "boolean",
      "values": null
    },
    {
      "default": "''",
      "description": "Selector or id of an external element or `<template>` whose inner content is cloned in place of an inline `template[data-fn=\"template\"]` child.",
      "from": "Hwc",
      "name": "template",
      "property": "template",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds classes to named parts as `key: classes` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "cls",
      "property": "cls",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    },
    {
      "default": "''",
      "description": "Adds inline styles to named parts as `key: styles` pairs; a plain string targets the default part.",
      "from": "Base",
      "name": "stl",
      "property": "stl",
      "reflect": false,
      "tokens": null,
      "type": "string",
      "values": null
    }
  ],
  "category": "overlays",
  "children": [
    {
      "attributes": [
        {
          "description": "Marks the script as configuration (value: `config`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "config"
          ]
        },
        {
          "description": "Re-parses the configuration when the script mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "JSON configuration script parsed by the base class (i18n, cls, stl, floating).",
      "element": "script",
      "id": "config",
      "required": false,
      "selector": "script[data-fn=\"config\"][type=\"application/json\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the select as the data source (value: `data-source`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "data-source"
          ]
        },
        {
          "description": "Re-parses the options when the select mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Group header text; also the default group key.",
              "name": "label",
              "required": true,
              "type": "string"
            },
            {
              "description": "Disables every option in the group.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Overrides the group key used in the parsed data.",
              "name": "data-key",
              "required": false,
              "type": "string"
            },
            {
              "description": "Comma-separated keywords stored with the group's data.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "children": [
            {
              "attributes": [
                {
                  "description": "Value carried by this option in the parsed data.",
                  "name": "value",
                  "required": false,
                  "type": "string"
                },
                {
                  "description": "Makes the option non-selectable.",
                  "name": "disabled",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Marks the option as initially selected.",
                  "name": "selected",
                  "required": false,
                  "type": "boolean"
                },
                {
                  "description": "Extra search terms, comma-separated; searched alongside the label and value.",
                  "name": "data-keywords",
                  "required": false,
                  "type": "comma-separated string"
                }
              ],
              "description": "One option entry within the group.",
              "element": "option",
              "repeatable": true
            }
          ],
          "description": "Groups options under a label.",
          "element": "optgroup",
          "repeatable": true
        },
        {
          "attributes": [
            {
              "description": "Value carried by this option in the parsed data.",
              "name": "value",
              "required": false,
              "type": "string"
            },
            {
              "description": "Makes the option non-selectable.",
              "name": "disabled",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Marks the option as initially selected.",
              "name": "selected",
              "required": false,
              "type": "boolean"
            },
            {
              "description": "Extra search terms, comma-separated.",
              "name": "data-keywords",
              "required": false,
              "type": "comma-separated string"
            }
          ],
          "description": "One ungrouped option entry.",
          "element": "option",
          "repeatable": true
        }
      ],
      "description": "Hidden select parsed into grouped option data by the base class.",
      "element": "select",
      "id": "data-source",
      "required": false,
      "selector": "select[data-fn=\"data-source\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template as an icon source (value: `icons`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "icons"
          ]
        },
        {
          "description": "Re-parses the icons when the template mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "children": [
        {
          "attributes": [
            {
              "description": "Icon key referenced by `$icons`.",
              "name": "data-key",
              "required": true,
              "type": "string"
            }
          ],
          "description": "One icon element.",
          "element": "*",
          "repeatable": true
        }
      ],
      "description": "Instance-level icon repository.",
      "element": "template",
      "id": "icons",
      "required": false,
      "selector": "template[data-fn=\"icons\"]"
    },
    {
      "attributes": [
        {
          "description": "Marks the template for deferred mounting (value: `template`).",
          "name": "data-fn",
          "required": true,
          "values": [
            "template"
          ]
        },
        {
          "description": "Re-parses the template when it mutates.",
          "name": "data-reactive",
          "required": false,
          "type": "boolean"
        }
      ],
      "description": "Deferred content template mounted by the base class.",
      "element": "template",
      "id": "template",
      "required": false,
      "selector": "template[data-fn=\"template\"]"
    }
  ],
  "cssClasses": [
    {
      "appliesTo": "z-dialog",
      "class": ".z-modal",
      "description": "Overlay root: fixed, scrollable backdrop with the dimmed background.",
      "role": "root"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-blur",
      "description": "Applies a backdrop blur to the overlay.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-body",
      "description": "Panel body section with its own padding.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-container",
      "description": "Contained presentation: widens the panel to a large fixed width.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-dialog",
      "description": "The dialog panel: centered, bordered, rounded card that scales/fades in.",
      "role": "state"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-footer",
      "description": "Panel footer section with its own padding.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-full",
      "description": "Full-screen presentation: no overlay padding, panel fills the viewport.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-header",
      "description": "Panel header section with its own padding.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-page",
      "description": "Applied to the page root to clip page scroll while the dialog is open.",
      "role": "element"
    },
    {
      "appliesTo": ".z-modal",
      "class": ".z-modal-title",
      "description": "Dialog title typography (size, weight, tracking).",
      "role": "element"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border)",
      "description": "Border base color, mixed with transparency using `--z-modal-dialog-border-color-o`.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-border-color",
      "scope": ".z-modal-dialog",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-border-o)",
      "description": "Border opacity percentage used in the border color mix.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-border-color-o",
      "scope": ".z-modal-dialog",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "border-width"
      ],
      "default": "1px",
      "description": "Border width of the panel.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-border-width",
      "scope": ".z-modal-dialog",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transform"
      ],
      "default": "scale(0.96)",
      "description": "Initial transform of the closed panel (animated to identity on open).",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-transform",
      "scope": ".z-modal-dialog",
      "syntax": ""
    },
    {
      "affects": [
        "transition"
      ],
      "default": "0.12s cubic-bezier(0.16, 1, 0.3, 1)",
      "description": "Transition timing of the panel opacity/transform.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-transition",
      "scope": ".z-modal-dialog",
      "syntax": ""
    },
    {
      "affects": [
        "width"
      ],
      "default": "32rem",
      "description": "Width of the dialog panel (max 100% of the overlay).",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-dialog-width",
      "scope": ".z-modal-dialog",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "#000",
      "description": "Backdrop base color, mixed with transparency using `--z-modal-overlay-bg-o`.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-overlay-bg",
      "scope": ".z-modal",
      "syntax": "<color>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "80%",
      "description": "Backdrop opacity percentage used in the background mix.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-overlay-bg-o",
      "scope": ".z-modal",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "-webkit-backdrop-filter",
        "backdrop-filter"
      ],
      "default": "var(--z-global-blur)",
      "description": "Backdrop blur radius used by `.z-modal-blur`.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-overlay-blur",
      "scope": ".z-modal",
      "syntax": ""
    },
    {
      "affects": [
        "padding",
        "padding-top"
      ],
      "default": "1rem",
      "description": "Base padding shared by the overlay and panel sections.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "var(--z-modal-padding)",
      "description": "Padding of the body section.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-body",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding-bottom"
      ],
      "default": "0",
      "description": "Bottom padding of a scrollable body directly after the header.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-bottom-scrollable",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "var(--z-modal-padding)",
      "description": "Padding of the footer section.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-footer",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "var(--z-modal-padding)",
      "description": "Padding of the header section.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-header",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding-top"
      ],
      "default": "0",
      "description": "Top padding of a footer that follows a header (no body between).",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-top-after-header",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding-top"
      ],
      "default": "var(--z-modal-padding)",
      "description": "Top padding of a footer directly after a scrollable body.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-top-after-scrollable",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding-top"
      ],
      "default": "0",
      "description": "Top padding of a section directly following another section.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-padding-top-between",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius of the dialog panel.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-radius",
      "scope": ".z-modal",
      "syntax": "<length>"
    },
    {
      "affects": [
        "line-height"
      ],
      "default": "1",
      "description": "Line height of the dialog title.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-title-line-height",
      "scope": ".z-modal-title",
      "syntax": "<number>"
    },
    {
      "affects": [
        "font-size"
      ],
      "default": "1.125rem",
      "description": "Font size of the dialog title.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-title-size",
      "scope": ".z-modal-title",
      "syntax": "<length>"
    },
    {
      "affects": [
        "letter-spacing"
      ],
      "default": "-0.025em",
      "description": "Letter spacing of the dialog title.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-title-tracking",
      "scope": ".z-modal-title",
      "syntax": "<length>"
    },
    {
      "affects": [
        "font-weight"
      ],
      "default": "600",
      "description": "Font weight of the dialog title.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-title-weight",
      "scope": ".z-modal-title",
      "syntax": "<number>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "opacity 0.12s cubic-bezier(0.16, 1, 0.3, 1)",
      "description": "Transition of the overlay opacity.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-transition",
      "scope": ".z-modal",
      "syntax": ""
    },
    {
      "affects": [
        "z-index"
      ],
      "default": "1010",
      "description": "Stacking order of the overlay.",
      "file": "src/css/kit-components/modal.css",
      "kind": "base",
      "name": "--z-modal-z-index",
      "scope": ".z-modal",
      "syntax": "<integer>"
    }
  ],
  "dataHooks": [
    {
      "appliesTo": "external-trigger",
      "attribute": "data-close",
      "description": "Clicking the element closes the dialog matched by the selector (usually `#id`).",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-host-inner",
      "description": "Marks the rendered inner wrapper so `force-prevent-rerender` can adopt server-rendered DOM without re-rendering.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-open",
      "description": "Clicking the element opens the dialog matched by the selector without toggling.",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-part",
      "description": "Marks the overlay and panel in adopted server-rendered DOM: `data-part=\"overlay\"` and `data-part=\"dialog\"`.",
      "role": "marker",
      "values": [
        "dialog",
        "overlay"
      ]
    },
    {
      "appliesTo": "descendant",
      "attribute": "data-reactive",
      "description": "Opts the marked child (config script, data source, icons, or template) into live re-parsing when its DOM mutates.",
      "from": "Hwc",
      "role": "config",
      "values": []
    },
    {
      "appliesTo": "external-trigger",
      "attribute": "data-toggle",
      "description": "Clicking the element toggles the dialog matched by the selector (usually `#id`).",
      "from": "DialogMixin",
      "role": "trigger",
      "values": []
    }
  ],
  "events": [
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before closing; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:before-hide"
    },
    {
      "bubbles": true,
      "cancelable": true,
      "description": "Fires before opening; call `preventDefault()` to abort.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:before-show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the mounted DOM is removed, via `unmount` or `destroy()`.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:destroy"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the close transition completes and focus is restored to the opener.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:hidden"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts closing.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:hide"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires once when the dialog DOM is first mounted.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:mount"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires when the dialog starts opening, before the transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:show"
    },
    {
      "bubbles": true,
      "cancelable": false,
      "description": "Fires after the open transition completes.",
      "detail": null,
      "from": "DialogMixin",
      "name": "z-dialog:shown"
    }
  ],
  "i18n": [],
  "icons": [],
  "id": "dialog",
  "inherits": [
    "DialogMixin",
    "Hwc",
    "Base"
  ],
  "keyboard": [],
  "kind": "hwc",
  "methods": [
    {
      "description": "Closes and unmounts the dialog DOM; optionally removes the host element as well.",
      "from": "DialogMixin",
      "name": "destroy",
      "params": [
        {
          "default": "false",
          "name": "removeHost",
          "optional": true,
          "type": "boolean"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Closes the dialog and restores focus to the opener.",
      "from": "DialogMixin",
      "name": "hide",
      "params": [],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog; the trigger element receives focus back on close.",
      "from": "DialogMixin",
      "name": "show",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    },
    {
      "description": "Opens the dialog if closed, otherwise closes it.",
      "from": "DialogMixin",
      "name": "toggle",
      "params": [
        {
          "default": null,
          "name": "trigger",
          "optional": true,
          "type": "HTMLElement | null"
        }
      ],
      "returns": "Promise<void>",
      "static": false
    }
  ],
  "notes": [
    "Content placed inside the host is adopted into the panel; an existing `.z-modal-dialog` structure is preserved.",
    "The overlay teleports to `document.body` unless `inline` is set; `stack` allows several dialogs open at once with rising z-index.",
    "Add `.z-overflow-auto` to a body section to make it scrollable within the panel."
  ],
  "parts": {
    "defaultClsTarget": "dialog",
    "defaultStlTarget": "dialog",
    "items": [
      {
        "defaultCls": "z-modal-dialog",
        "description": "The dialog panel inside the overlay (default `z-modal-dialog`); the default `cls`/`stl` target.",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "dialog",
        "supportsCls": true,
        "supportsStl": true
      },
      {
        "defaultCls": "z-modal",
        "description": "The fixed backdrop covering the viewport (default `z-modal`).",
        "foundIn": [
          "$cls",
          "render"
        ],
        "key": "overlay",
        "supportsCls": true,
        "supportsStl": true
      }
    ]
  },
  "recipes": [],
  "related": [
    "drawer",
    "drop",
    "lightbox"
  ],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/modal.css"
    ],
    "cssSelectors": [
      ".z-modal",
      ".z-modal-*"
    ],
    "ts": "src/js/hwc/components/dialog.ts"
  },
  "summary": "Modal dialog with a backdrop overlay, centered/contained/full presentations, focus management, and stacked overlays.",
  "tag": "z-dialog",
  "title": "Dialog"
}
