{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "clickEnter": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "valid"
              ],
              "type": "object"
            },
            "setVal": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "valid",
                "id"
              ],
              "type": "object"
            }
          },
          "required": [
            "setVal",
            "clickEnter"
          ],
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "schemaentry": {
              "$ref": "#/definitions/FormSchemaEntry"
            },
            "show_validation": {
              "enum": [
                "yes",
                "no"
              ],
              "type": "string"
            },
            "style": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "FormSchemaDependency": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "values": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              },
              "type": "array"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "FormSchemaEntry": {
          "additionalProperties": false,
          "properties": {
            "array_style": {
              "description": "For `type: \"arraytags\"` only: forwarded to `hb-input-array-tags` as the host `array_style` attribute (`\"pills\"` | `\"area\"` string). When omitted, **`hb-form` defaults to `\"area\"`**.",
              "type": "string"
            },
            "dependencies": {
              "items": {
                "$ref": "#/definitions/FormSchemaDependency"
              },
              "type": "array"
            },
            "disabled": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "params": {
              "$ref": "#/definitions/InputTextParams"
            },
            "placeholder": {
              "type": "string"
            },
            "readonly": {
              "type": "boolean"
            },
            "required": {
              "type": "boolean"
            },
            "type": {
              "description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
              "type": "string"
            },
            "validationRegex": {
              "type": "string"
            },
            "validationTip": {
              "type": "string"
            },
            "value": {}
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "InputTextParams": {
          "additionalProperties": false,
          "description": "Optional string length bounds (see component validation logic).",
          "properties": {
            "max": {
              "description": "Maximum string length (inclusive).",
              "type": "number"
            },
            "min": {
              "description": "Minimum string length (inclusive).",
              "type": "number"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "description": "Single-line text with Bulma `input` + optional `is-success` / `is-danger` and `help is-danger`. `schemaentry` is JSON (string from HTML or object): `id`, optional `label`, `value` (string), `placeholder`, `readonly`, `disabled`, `required`, `validationRegex`, `validationTip`, and optional `params` as `InputTextParams`: `min` / `max` are **inclusive string length** limits used during validation. Theme via `--bulma-*` on `:host`. Dispatches `setVal` `{ value, valid, id }` on change and `clickEnter` on Enter. See `types/webcomponent.type.d.ts` for exports.",
  "storybookArgs": {
    "schemaentry": {
      "control": {
        "type": "object"
      }
    },
    "show_validation": {
      "control": {
        "type": "boolean"
      }
    },
    "setVal": {
      "action": "setVal"
    },
    "clickEnter": {
      "action": "clickEnter"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "",
        "description": "Label, input value, and help text color."
      },
      {
        "name": "--bulma-border",
        "valueType": "color",
        "defaultValue": "",
        "description": "Neutral input border before success/danger modifiers."
      },
      {
        "name": "--bulma-danger",
        "valueType": "color",
        "defaultValue": "",
        "description": "Invalid state (`is-danger`) border and feedback emphasis."
      },
      {
        "name": "--bulma-success",
        "valueType": "color",
        "defaultValue": "",
        "description": "Valid state (`is-success`) accents when `show_validation` is enabled."
      },
      {
        "name": "--bulma-scheme-main",
        "valueType": "color",
        "defaultValue": "",
        "description": "Input surface background where Bulma maps scheme to controls."
      }
    ],
    "parts": [
      {
        "name": "invalid-feedback",
        "description": "The `p.help.is-danger` validation message when `show_validation` is on and the field is invalid; hide or restyle error copy from the light DOM."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "validationTip": "This field cannot be empty."
        }
      }
    },
    {
      "name": "defaultRequired",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "validationTip": "This field cannot be empty."
        }
      }
    },
    {
      "name": "requiredwithmin",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "validationTip": "This field cannot be empty.",
          "params": {
            "min": 2
          },
          "value": "a"
        }
      }
    },
    {
      "name": "requiredwithmax",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "validationTip": "This field cannot be empty.",
          "params": {
            "max": 2
          }
        }
      }
    },
    {
      "name": "requiredwithminmax",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "validationTip": "This field cannot be empty.",
          "params": {
            "min": 2,
            "max": 6
          }
        }
      }
    },
    {
      "name": "requiredwithregex",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "validationTip": "This field cannot be empty.",
          "params": {
            "min": 2
          }
        }
      }
    },
    {
      "name": "disabled",
      "description": "Input is fully disabled and non-interactive.",
      "data": {
        "schemaentry": {
          "placeholder": "Cannot edit this field",
          "id": "lastNameDisabled",
          "label": "Last Name",
          "value": "Rossi",
          "disabled": true
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-WkMEi4sT1UKJCGqb7P0ezr1eJY4WXOtMu9iIghsiYOSmeV3xKqUZyNc6NOzCAW9G",
  "dependencies": [],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-input-text",
  "category": "inputs",
  "tags": [
    "inputs"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-input-text",
  "version": "0.76.0"
}