{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "modalShow": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "show": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "show"
              ],
              "type": "object"
            }
          },
          "required": [
            "modalShow"
          ],
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "percentage": {
              "type": "number"
            },
            "style": {
              "type": "string"
            },
            "title": {
              "type": "string"
            }
          },
          "required": [
            "percentage"
          ],
          "type": "object"
        }
      }
    }
  },
  "description": "Thin wrapper around `hb-dialog` that opens automatically while numeric `percentage` is non-zero and shows a Bootstrap progress bar filled to that value. Forwards `modalShow` from the inner dialog so parents can track open state; slots allow overriding the dialog title.",
  "storybookArgs": {
    "percentage": {
      "control": {
        "type": "number"
      }
    },
    "modalShow": {
      "action": "modalShow"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-primary",
        "valueType": "color",
        "defaultValue": "#00d1b2",
        "description": "Progress value color."
      },
      {
        "name": "--bulma-border-weak",
        "valueType": "color",
        "defaultValue": "#ededed",
        "description": "Progress track background."
      },
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "#363636",
        "description": "Percentage label text."
      },
      {
        "name": "--bulma-block-spacing",
        "valueType": "number",
        "defaultValue": "1rem",
        "description": "Vertical spacing above the percentage label (`styles/webcomponent.scss` uses half for `margin-top`)."
      }
    ],
    "parts": []
  },
  "contributors": [],
  "htmlSlots": [
    {
      "name": "title",
      "description": "Dialog title projected into the inner `hb-dialog` title slot (default prop `title` when empty)."
    }
  ],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "description": "Dialog open while work is in progress.",
      "data": {
        "percentage": 10
      }
    },
    {
      "name": "empty",
      "description": "Zero percent closes the loader wrapper.",
      "data": {
        "percentage": 0
      }
    },
    {
      "name": "halfway",
      "description": "Mid-flight upload or batch job.",
      "data": {
        "percentage": 50
      }
    },
    {
      "name": "almostDone",
      "description": "Near-complete bar with optional title slot context.",
      "data": {
        "percentage": 97,
        "title": "Finalizing…"
      }
    }
  ],
  "iifeIntegrity": "sha384-10OD1znegwgPqFbYhRot2ImWVdSyZhX05prJ9s62NZ9zFytO0dgRtlIoV4hUwV4x",
  "dependencies": [
    {
      "name": "hb-dialog",
      "dependencies": []
    }
  ],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-dialog-loader",
  "category": "overlays",
  "tags": [
    "overlays",
    "modal",
    "loading"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-dialog-loader",
  "version": "0.71.37"
}