{
  "schemaVersion": "1.0.0",
  "readme": "",
  "modules": [
    {
      "kind": "javascript-module",
      "path": "sp-theme.js",
      "declarations": [],
      "exports": [
        {
          "kind": "custom-element-definition",
          "name": "sp-theme",
          "declaration": {
            "name": "Theme",
            "module": "/src/Theme.js"
          }
        }
      ]
    },
    {
      "kind": "javascript-module",
      "path": "src/Theme.js",
      "declarations": [
        {
          "kind": "class",
          "description": "",
          "name": "Theme",
          "slots": [
            {
              "description": "Content on which to apply the CSS Custom Properties defined by the current theme configuration",
              "name": ""
            }
          ],
          "members": [
            {
              "kind": "field",
              "name": "themeFragmentsByKind",
              "type": {
                "text": "ThemeFragmentMap"
              },
              "privacy": "private",
              "static": true,
              "default": "new Map()"
            },
            {
              "kind": "field",
              "name": "defaultFragments",
              "type": {
                "text": "Set<FragmentName>"
              },
              "privacy": "private",
              "static": true,
              "default": "new Set(['spectrum'])"
            },
            {
              "kind": "field",
              "name": "templateElement",
              "type": {
                "text": "HTMLTemplateElement | undefined"
              },
              "privacy": "private",
              "static": true
            },
            {
              "kind": "field",
              "name": "instances",
              "type": {
                "text": "Set<Theme>"
              },
              "privacy": "private",
              "static": true,
              "default": "new Set()"
            },
            {
              "kind": "field",
              "name": "VERSION",
              "static": true,
              "default": "version"
            },
            {
              "kind": "field",
              "name": "CORE_VERSION",
              "static": true,
              "default": "coreVersion"
            },
            {
              "kind": "field",
              "name": "shadowRoot",
              "type": {
                "text": "ShadowRootWithAdoptedStyleSheets"
              },
              "privacy": "public"
            },
            {
              "kind": "field",
              "name": "_system",
              "type": {
                "text": "SystemVariant | ''"
              },
              "privacy": "private",
              "default": "'spectrum'"
            },
            {
              "kind": "field",
              "name": "system",
              "type": {
                "text": "\"spectrum\" | \"express\""
              },
              "description": "The Spectrum system that is applied to the content scoped to this `sp-theme` element.\n\nA value is required.",
              "attribute": "system"
            },
            {
              "kind": "field",
              "name": "_color",
              "type": {
                "text": "Color | ''"
              },
              "privacy": "private",
              "default": "''"
            },
            {
              "kind": "field",
              "name": "color",
              "type": {
                "text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
              },
              "description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
              "attribute": "color"
            },
            {
              "kind": "field",
              "name": "_scale",
              "type": {
                "text": "Scale | ''"
              },
              "privacy": "private",
              "default": "''"
            },
            {
              "kind": "field",
              "name": "scale",
              "type": {
                "text": "\"medium\" | \"large\" | \"\""
              },
              "description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
              "attribute": "scale"
            },
            {
              "kind": "field",
              "name": "template",
              "type": {
                "text": "HTMLTemplateElement"
              },
              "privacy": "private",
              "static": true,
              "readonly": true
            },
            {
              "kind": "field",
              "name": "_systemContextConsumers",
              "privacy": "private",
              "default": "new Map< HTMLElement, [SystemContextCallback, () => void] >()"
            },
            {
              "kind": "method",
              "name": "_handleSystemContext",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "parameters": [
                {
                  "name": "event",
                  "type": {
                    "text": "CustomEvent<{ callback: SystemContextCallback }>"
                  }
                }
              ]
            },
            {
              "kind": "field",
              "name": "updateComplete",
              "type": {
                "text": "Promise<boolean>"
              },
              "privacy": "public"
            },
            {
              "kind": "field",
              "name": "__resolve",
              "type": {
                "text": "(completed: boolean) => void"
              },
              "privacy": "private"
            },
            {
              "kind": "method",
              "name": "__createDeferredPromise",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "Promise<boolean>"
                }
              }
            },
            {
              "kind": "field",
              "name": "_updateRequested",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "method",
              "name": "shouldAdoptStyles",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "Promise<void>"
                }
              }
            },
            {
              "kind": "method",
              "name": "adoptStyles",
              "privacy": "protected",
              "return": {
                "type": {
                  "text": "void"
                }
              }
            },
            {
              "kind": "method",
              "name": "registerThemeFragment",
              "static": true,
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "parameters": [
                {
                  "name": "name",
                  "type": {
                    "text": "FragmentName"
                  }
                },
                {
                  "name": "kind",
                  "type": {
                    "text": "FragmentType"
                  }
                },
                {
                  "name": "styles",
                  "type": {
                    "text": "CSSResultGroup"
                  }
                }
              ]
            },
            {
              "kind": "field",
              "name": "_contextConsumers",
              "privacy": "private",
              "default": "new Map< HTMLElement, [ProvideLang['callback'], () => void] >()"
            },
            {
              "kind": "method",
              "name": "_provideContext",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              }
            },
            {
              "kind": "method",
              "name": "_provideSystemContext",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              }
            },
            {
              "kind": "method",
              "name": "_handleContextPresence",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "parameters": [
                {
                  "name": "event",
                  "type": {
                    "text": "CustomEvent<ProvideLang>"
                  }
                }
              ]
            }
          ],
          "attributes": [
            {
              "name": "color",
              "type": {
                "text": "\"lightest\" | \"light\" | \"dark\" | \"darkest\" | \"\""
              },
              "description": "The Spectrum color stops to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
              "fieldName": "color"
            },
            {
              "name": "scale",
              "type": {
                "text": "\"medium\" | \"large\" | \"\""
              },
              "description": "The Spectrum platform scale to apply to content scoped by this `sp-theme` element.\n\nA value is required.",
              "fieldName": "scale"
            },
            {
              "name": "lang",
              "type": {
                "text": "string"
              },
              "description": "The language of the content scoped to this `sp-theme` element, see: <a href=\"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang\" target=\"_blank\">MDN reference</a>.",
              "default": "\"\""
            },
            {
              "name": "system",
              "type": {
                "text": "\"spectrum\" | \"express\""
              },
              "description": "The Spectrum system that is applied to the content scoped to this `sp-theme` element.\n\nA value is required.",
              "fieldName": "system"
            }
          ],
          "superclass": {
            "name": "HTMLElement"
          },
          "tagName": "sp-theme",
          "customElement": true
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "ProvideLang",
          "declaration": {
            "name": "ProvideLang",
            "module": "src/Theme.js"
          }
        },
        {
          "kind": "js",
          "name": "ThemeFragmentMap",
          "declaration": {
            "name": "ThemeFragmentMap",
            "module": "src/Theme.js"
          }
        },
        {
          "kind": "js",
          "name": "Color",
          "declaration": {
            "name": "Color",
            "module": "src/Theme.js"
          }
        },
        {
          "kind": "js",
          "name": "Scale",
          "declaration": {
            "name": "Scale",
            "module": "src/Theme.js"
          }
        },
        {
          "kind": "js",
          "name": "SystemVariant",
          "declaration": {
            "name": "SystemVariant",
            "module": "src/Theme.js"
          }
        },
        {
          "kind": "js",
          "name": "Theme",
          "declaration": {
            "name": "Theme",
            "module": "src/Theme.js"
          }
        }
      ]
    }
  ]
}
