{
  "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": "statusTypes",
          "type": {
            "text": "['default', 'success', 'error']"
          },
          "default": "['default', 'success', 'error']"
        },
        {
          "kind": "variable",
          "name": "labelPositions",
          "type": {
            "text": "['leading', 'trailing']"
          },
          "default": "['leading', 'trailing']"
        },
        {
          "kind": "variable",
          "name": "labelFits",
          "type": {
            "text": "['hug', 'fill']"
          },
          "default": "['hug', 'fill']"
        },
        {
          "kind": "variable",
          "name": "defaultProps",
          "type": {
            "text": "DefaultProps"
          },
          "default": "{ // a default value for the html <input type=\"checkbox\" /> value attribute. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value value: 'on', disabled: false, defaultChecked: false, checked: false, indeterminate: false, required: false, status: 'default', labelPosition: 'trailing', labelFit: 'hug', }"
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "statusTypes",
          "declaration": {
            "name": "statusTypes",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "labelPositions",
          "declaration": {
            "name": "labelPositions",
            "module": "src/defs.js"
          }
        },
        {
          "kind": "js",
          "name": "labelFits",
          "declaration": {
            "name": "labelFits",
            "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": "PieCheckbox",
          "slots": [
            {
              "description": "Default slot",
              "name": ""
            }
          ],
          "members": [
            {
              "kind": "field",
              "name": "_disabledByParent",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "field",
              "name": "_visuallyHiddenError",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "field",
              "name": "_isAnimationAllowed",
              "type": {
                "text": "boolean"
              },
              "privacy": "private",
              "default": "false"
            },
            {
              "kind": "field",
              "name": "_contextAria",
              "type": {
                "text": "ContextualAria | undefined"
              },
              "privacy": "private"
            },
            {
              "kind": "field",
              "name": "value",
              "privacy": "public",
              "attribute": "value"
            },
            {
              "kind": "field",
              "name": "name",
              "type": {
                "text": "CheckboxProps['name']"
              },
              "privacy": "public",
              "attribute": "name",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "checked",
              "privacy": "public",
              "attribute": "checked",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "defaultChecked",
              "privacy": "public",
              "attribute": "defaultChecked",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "disabled",
              "privacy": "public",
              "attribute": "disabled",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "required",
              "privacy": "public",
              "attribute": "required",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "indeterminate",
              "privacy": "public",
              "attribute": "indeterminate",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "_checkbox",
              "type": {
                "text": "HTMLInputElement"
              },
              "privacy": "private"
            },
            {
              "kind": "field",
              "name": "assistiveText",
              "type": {
                "text": "CheckboxProps['assistiveText']"
              },
              "privacy": "public",
              "attribute": "assistiveText"
            },
            {
              "kind": "field",
              "name": "status",
              "privacy": "public",
              "attribute": "status"
            },
            {
              "kind": "field",
              "name": "labelPosition",
              "privacy": "public",
              "attribute": "labelPosition",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "labelFit",
              "privacy": "public",
              "attribute": "labelFit",
              "reflects": true
            },
            {
              "kind": "field",
              "name": "_abortController",
              "type": {
                "text": "AbortController"
              },
              "privacy": "private"
            },
            {
              "kind": "method",
              "name": "_handleClick",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "parameters": [
                {
                  "name": "event",
                  "type": {
                    "text": "MouseEvent"
                  }
                }
              ],
              "description": "Forwards a click dispatched directly on the host (for example from a `pie-list-item` row)\nto the internal input. Clicks on the internal label already toggle the input natively via\nits `for` attribute, so only host-level clicks are forwarded, to avoid a double toggle."
            },
            {
              "kind": "field",
              "name": "validity",
              "type": {
                "text": "ValidityState"
              },
              "privacy": "public",
              "description": "(Read-only) returns a ValidityState with the validity states that this element is in.\nhttps://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity",
              "readonly": true
            },
            {
              "kind": "method",
              "name": "_handleFormAssociation",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "description": "Ensures that the form value is in sync with the component."
            },
            {
              "kind": "method",
              "name": "formDisabledCallback",
              "privacy": "public",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "parameters": [
                {
                  "name": "disabled",
                  "type": {
                    "text": "boolean"
                  },
                  "description": "The latest disabled state of the input."
                }
              ],
              "description": "Called after the disabled state of the element changes,\neither because the disabled attribute of this element was added or removed;\nor because the disabled state changed on a <fieldset> that's an ancestor of this element."
            },
            {
              "kind": "method",
              "name": "_applyContextAria",
              "privacy": "private",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "description": "When an ancestor provides ARIA (for example a `pie-list-item`), applies the fields this\ncontrol cares about to the internal input (the element that carries the checkbox semantics).\nDoes nothing when used standalone, where the name comes from the default slot / label."
            },
            {
              "kind": "method",
              "name": "_handleChange",
              "privacy": "private",
              "parameters": [
                {
                  "name": "event",
                  "type": {
                    "text": "Event"
                  },
                  "description": "This should be the change event that was listened for on an input element with `type=\"checkbox\"`."
                }
              ],
              "description": "Captures the native change event and wraps it in a custom event."
            },
            {
              "kind": "method",
              "name": "formResetCallback",
              "privacy": "public",
              "return": {
                "type": {
                  "text": "void"
                }
              },
              "description": "Called when the form that contains this component is reset.\nIf the current checked state is different to the default checked state,\nthe checked state is reset to the default checked state and a `change` event is emitted."
            }
          ],
          "events": [
            {
              "type": {
                "text": "CustomEvent"
              },
              "description": "when checked state is changed.",
              "name": "change"
            }
          ],
          "attributes": [
            {
              "name": "value",
              "fieldName": "value"
            },
            {
              "name": "name",
              "type": {
                "text": "CheckboxProps['name']"
              },
              "fieldName": "name"
            },
            {
              "name": "checked",
              "fieldName": "checked"
            },
            {
              "name": "defaultChecked",
              "fieldName": "defaultChecked"
            },
            {
              "name": "disabled",
              "fieldName": "disabled"
            },
            {
              "name": "required",
              "fieldName": "required"
            },
            {
              "name": "indeterminate",
              "fieldName": "indeterminate"
            },
            {
              "name": "assistiveText",
              "type": {
                "text": "CheckboxProps['assistiveText']"
              },
              "fieldName": "assistiveText"
            },
            {
              "name": "status",
              "fieldName": "status"
            },
            {
              "name": "labelPosition",
              "fieldName": "labelPosition"
            },
            {
              "name": "labelFit",
              "fieldName": "labelFit"
            }
          ],
          "mixins": [
            {
              "name": "DelegatesFocusMixin",
              "package": "@justeattakeaway/pie-webc-core"
            },
            {
              "name": "FormControlMixin",
              "package": "@justeattakeaway/pie-webc-core"
            }
          ],
          "superclass": {
            "name": "PieElement",
            "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
          },
          "tagName": "pie-checkbox",
          "customElement": true
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "*",
          "declaration": {
            "name": "*",
            "module": "src/defs"
          }
        },
        {
          "kind": "js",
          "name": "PieCheckbox",
          "declaration": {
            "name": "PieCheckbox",
            "module": "src/index.js"
          }
        }
      ]
    }
  ]
}
