{
  "schemaVersion": "1.0.0",
  "readme": "",
  "modules": [
    {
      "kind": "javascript-module",
      "path": "src/defs-react.js",
      "declarations": [],
      "exports": []
    },
    {
      "kind": "javascript-module",
      "path": "src/defs.js",
      "declarations": [
        {
          "kind": "variable",
          "name": "variants",
          "type": {
            "text": "[\n    'default', 'outline',\n]"
          },
          "default": "[ 'default', 'outline', ]"
        },
        {
          "kind": "variable",
          "name": "backgroundColors",
          "type": {
            "text": "[\n    'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative'\n]"
          },
          "default": "[ 'default', 'subtle', 'strong', 'dark', 'inverse', 'inverse-alternative' ]"
        },
        {
          "kind": "variable",
          "name": "backgroundColorClassNames",
          "type": {
            "text": "Record<typeof backgroundColors[number], string>"
          },
          "default": "{ default: 'c-thumbnail--backgroundDefault', subtle: 'c-thumbnail--backgroundSubtle', strong: 'c-thumbnail--backgroundStrong', dark: 'c-thumbnail--backgroundDark', inverse: 'c-thumbnail--backgroundInverse', 'inverse-alternative': 'c-thumbnail--backgroundInverseAlternative', }"
        },
        {
          "kind": "variable",
          "name": "aspectRatios",
          "type": {
            "text": "['1by1', '4by3', '16by9']"
          },
          "default": "['1by1', '4by3', '16by9']"
        },
        {
          "kind": "variable",
          "name": "sizes",
          "default": "Object.freeze(Array.from( { length: (SIZE_MAX - SIZE_MIN) / SIZE_INCREMENT_BY + 1 }, (_, i) => SIZE_MIN + i * SIZE_INCREMENT_BY, ))"
        },
        {
          "kind": "variable",
          "name": "defaultProps",
          "type": {
            "text": "DefaultProps"
          },
          "default": "{ variant: 'default', size: 48, src: '', alt: '', disabled: false, hasPadding: false, hideDefaultPlaceholder: false, backgroundColor: 'default', aspectRatio: '1by1', placeholder: { src: '', alt: '', }, }"
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "variants",
          "declaration": {
            "name": "variants",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "backgroundColors",
          "declaration": {
            "name": "backgroundColors",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "backgroundColorClassNames",
          "declaration": {
            "name": "backgroundColorClassNames",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "aspectRatios",
          "declaration": {
            "name": "aspectRatios",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "sizes",
          "declaration": {
            "name": "sizes",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "defaultProps",
          "declaration": {
            "name": "defaultProps",
            "module": "src/defs.js"
          }
        }
      ]
    },
    {
      "kind": "javascript-module",
      "path": "src/index.js",
      "declarations": [
        {
          "kind": "class",
          "description": "",
          "name": "PieThumbnail",
          "members": [
            {
              "kind": "field",
              "name": "variant",
              "privacy": "public",
              "attribute": "variant"
            },
            {
              "kind": "field",
              "name": "size",
              "privacy": "public",
              "attribute": "size"
            },
            {
              "kind": "field",
              "name": "aspectRatio",
              "privacy": "public",
              "attribute": "aspectRatio"
            },
            {
              "kind": "field",
              "name": "src",
              "privacy": "public",
              "attribute": "src"
            },
            {
              "kind": "field",
              "name": "alt",
              "privacy": "public",
              "attribute": "alt"
            },
            {
              "kind": "field",
              "name": "disabled",
              "privacy": "public",
              "attribute": "disabled"
            },
            {
              "kind": "field",
              "name": "hasPadding",
              "privacy": "public",
              "attribute": "hasPadding"
            },
            {
              "kind": "field",
              "name": "hideDefaultPlaceholder",
              "privacy": "public",
              "attribute": "hideDefaultPlaceholder"
            },
            {
              "kind": "field",
              "name": "backgroundColor",
              "privacy": "public",
              "attribute": "backgroundColor"
            },
            {
              "kind": "field",
              "name": "placeholder",
              "type": {
                "text": "ThumbnailProps['placeholder']"
              },
              "privacy": "public",
              "attribute": "placeholder"
            },
            {
              "kind": "field",
              "name": "_parentDisabled",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "field",
              "name": "img",
              "type": {
                "text": "HTMLImageElement"
              },
              "privacy": "private"
            },
            {
              "kind": "field",
              "name": "_hasError",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "field",
              "name": "_isDefaultPlaceholderVisible",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "description": "Determines if the default placeholder should be displayed.",
              "readonly": true
            },
            {
              "kind": "field",
              "name": "_controlledSrc",
              "type": {
                "text": "string"
              },
              "privacy": "private",
              "description": "Returns the appropriate image props based on the following order:\n1. If there is no error, return the provided image props.\n2. If there is an error and a custom placeholder is provided, return the placeholder props.\n3. If there is an error and no custom placeholder is provided, return the component default placeholder.\n4. Otherwise, fall back to the provided src (resulting in a broken image).",
              "readonly": true
            },
            {
              "kind": "field",
              "name": "_controlledAlt",
              "type": {
                "text": "string"
              },
              "privacy": "private",
              "readonly": true
            },
            {
              "kind": "method",
              "name": "_generateSizeStyles",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "string"
                }
              },
              "description": "Assigns CSS variables based on the size prop."
            },
            {
              "kind": "method",
              "name": "_handleImageError",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "description": "Handles the image error event."
            },
            {
              "kind": "method",
              "name": "_checkImageError",
              "privacy": "private",
              "description": "Checks the image load status and triggers error handling if needed.\nThis is needed as the `onerror` event is not triggered in SSR."
            }
          ],
          "attributes": [
            {
              "name": "variant",
              "fieldName": "variant"
            },
            {
              "name": "size",
              "fieldName": "size"
            },
            {
              "name": "aspectRatio",
              "fieldName": "aspectRatio"
            },
            {
              "name": "src",
              "fieldName": "src"
            },
            {
              "name": "alt",
              "fieldName": "alt"
            },
            {
              "name": "disabled",
              "fieldName": "disabled"
            },
            {
              "name": "hasPadding",
              "fieldName": "hasPadding"
            },
            {
              "name": "hideDefaultPlaceholder",
              "fieldName": "hideDefaultPlaceholder"
            },
            {
              "name": "backgroundColor",
              "fieldName": "backgroundColor"
            },
            {
              "name": "placeholder",
              "type": {
                "text": "ThumbnailProps['placeholder']"
              },
              "fieldName": "placeholder"
            }
          ],
          "superclass": {
            "name": "PieElement",
            "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
          },
          "tagName": "pie-thumbnail",
          "customElement": true
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "*",
          "declaration": {
            "name": "*",
            "module": "src/defs"
          }
        },
        {
          "kind": "js",
          "name": "PieThumbnail",
          "declaration": {
            "name": "PieThumbnail",
            "module": "src/index.js"
          }
        }
      ]
    }
  ]
}
