{
  "schemaVersion": "1.0.0",
  "readme": "",
  "modules": [
    {
      "kind": "javascript-module",
      "path": "src/index.ts",
      "declarations": [],
      "exports": [
        {
          "kind": "js",
          "name": "ItBackToTop",
          "declaration": {
            "name": "ItBackToTop",
            "module": "./it-back-to-top.js"
          }
        }
      ]
    },
    {
      "kind": "javascript-module",
      "path": "src/it-back-to-top.ts",
      "declarations": [
        {
          "kind": "class",
          "description": "",
          "name": "ItBackToTop",
          "members": [
            {
              "kind": "field",
              "name": "offset",
              "type": {
                "text": "number"
              },
              "default": "0",
              "attribute": "offset"
            },
            {
              "kind": "field",
              "name": "scrollLimit",
              "type": {
                "text": "number"
              },
              "default": "100",
              "attribute": "scroll-limit"
            },
            {
              "kind": "field",
              "name": "duration",
              "type": {
                "text": "number"
              },
              "default": "800",
              "attribute": "duration"
            },
            {
              "kind": "field",
              "name": "small",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "attribute": "small"
            },
            {
              "kind": "field",
              "name": "inverse",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "attribute": "inverse"
            },
            {
              "kind": "field",
              "name": "shadow",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "attribute": "shadow"
            },
            {
              "kind": "field",
              "name": "border",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "attribute": "border"
            },
            {
              "kind": "field",
              "name": "borderColor",
              "type": {
                "text": "string"
              },
              "default": "'white'",
              "attribute": "border-color"
            },
            {
              "kind": "field",
              "name": "iconColor",
              "type": {
                "text": "string"
              },
              "default": "'inverse'",
              "attribute": "icon-color"
            },
            {
              "kind": "field",
              "name": "visible",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "attribute": "visible"
            },
            {
              "kind": "field",
              "name": "_onScroll"
            },
            {
              "kind": "field",
              "name": "_scrollToTop"
            }
          ],
          "attributes": [
            {
              "name": "offset",
              "type": {
                "text": "number"
              },
              "default": "0",
              "fieldName": "offset"
            },
            {
              "name": "scroll-limit",
              "type": {
                "text": "number"
              },
              "default": "100",
              "fieldName": "scrollLimit"
            },
            {
              "name": "duration",
              "type": {
                "text": "number"
              },
              "default": "800",
              "fieldName": "duration"
            },
            {
              "name": "small",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "fieldName": "small"
            },
            {
              "name": "inverse",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "fieldName": "inverse"
            },
            {
              "name": "shadow",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "fieldName": "shadow"
            },
            {
              "name": "border",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "fieldName": "border"
            },
            {
              "name": "border-color",
              "type": {
                "text": "string"
              },
              "default": "'white'",
              "fieldName": "borderColor"
            },
            {
              "name": "icon-color",
              "type": {
                "text": "string"
              },
              "default": "'inverse'",
              "fieldName": "iconColor"
            },
            {
              "name": "visible",
              "type": {
                "text": "boolean"
              },
              "default": "false",
              "fieldName": "visible"
            }
          ],
          "superclass": {
            "name": "BaseComponent",
            "package": "@italia/globals"
          },
          "tagName": "it-back-to-top",
          "customElement": true
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "ItBackToTop",
          "declaration": {
            "name": "ItBackToTop",
            "module": "src/it-back-to-top.ts"
          }
        },
        {
          "kind": "custom-element-definition",
          "name": "it-back-to-top",
          "declaration": {
            "name": "ItBackToTop",
            "module": "src/it-back-to-top.ts"
          }
        }
      ]
    },
    {
      "kind": "javascript-module",
      "path": "stories/it-back-to-top.stories.ts",
      "declarations": [
        {
          "kind": "variable",
          "name": "meta",
          "default": "{ title: 'Componenti/Back to top', tags: ['a11y-ok', 'web-component'], component: 'it-back-to-top', args: { offset: undefined, scrollLimit: 0, duration: undefined, small: undefined, inverse: undefined, shadow: undefined, border: false, borderColor: undefined, iconColor: undefined, itAriaLabel: 'Torna su', }, argTypes: { offset: { control: 'number', type: 'number', description: \"Posizione Y espressa in pixel alla quale ritornarne al click sull'elemento\", table: { defaultValue: { summary: '0' } }, }, scrollLimit: { name: 'scroll-limit', control: 'number', type: 'number', description: \"Posizione Y espressa in pixel alla quale far comparire l'elemento\", table: { defaultValue: { summary: '100' } }, }, duration: { control: 'number', type: 'number', description: \"Durata dell'animazione di scroll espressa in millisecondi\", table: { defaultValue: { summary: '800' } }, }, small: { control: 'boolean', type: 'boolean', description: 'Dimensione ridotta', table: { defaultValue: { summary: 'false' } }, }, inverse: { control: 'boolean', type: 'boolean', description: 'Variante di colore invertito', table: { defaultValue: { summary: 'false' } }, }, shadow: { control: 'boolean', type: 'boolean', description: \"Aggiunge un'ombra al pulsante\", table: { defaultValue: { summary: 'false' } }, }, border: { control: 'boolean', type: 'boolean', defaultValue: false, description: 'Abilita / disabilita il bordo sul bottone per garantire il contrasto del pulsante su sfondi non a contrasto', table: { defaultValue: { summary: 'false' } }, }, borderColor: { name: 'border-color', control: 'text', type: 'string', defaultValue: 'white', description: 'Colore del bordo', table: { defaultValue: { summary: 'Default: \"white\". Se è attivo l\\'attributo \"inverse\", il default è \"primary\".' }, }, }, iconColor: { name: 'icon-color', control: 'text', type: 'string', description: \"Colore dell'icona\", table: { defaultValue: { summary: 'inverse' } }, }, itAriaLabel: { name: 'it-aria-label', control: 'text', type: 'string', description: \"Etichetta aria per l'accessibilità\", }, }, } satisfies Meta<BackToTopProps>"
        },
        {
          "kind": "variable",
          "name": "EsempioInterattivo",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, tags: ['!dev'], name: 'Esempio interattivo', parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, render: ScrollToTopTemplate, }"
        },
        {
          "kind": "variable",
          "name": "Border",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Con bordo', args: { border: true }, render: (params, context) => html` <div class=\"bg-primary text-white\">${ScrollToTopTemplate(params, context)}</div> `, }"
        },
        {
          "kind": "variable",
          "name": "BorderColor",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Colore del bordo', args: { border: true, borderColor: 'secondary', inverse: true, iconColor: 'secondary' }, render: ScrollToTopTemplate, }"
        },
        {
          "kind": "variable",
          "name": "IconColor",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: \"Colore dell'icona\", args: { border: true, borderColor: 'danger', inverse: true, iconColor: 'danger' }, render: ScrollToTopTemplate, }"
        },
        {
          "kind": "variable",
          "name": "Small",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Versione ridotta', args: { small: true }, render: ScrollToTopTemplate, }"
        },
        {
          "kind": "variable",
          "name": "Shadow",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Versione con ombra', args: { shadow: true }, render: ScrollToTopTemplate, }"
        },
        {
          "kind": "variable",
          "name": "Dark",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Versione per sfondo scuro', args: { inverse: true, border: true }, // render: ScrollToTopTemplate, render: (params, context) => html` <div class=\"bg-secondary text-white\">${ScrollToTopTemplate(params, context)}</div> `, }"
        },
        {
          "kind": "variable",
          "name": "DarkShadow",
          "type": {
            "text": "Story"
          },
          "default": "{ ...meta, name: 'Versione con ombra su sfondo scuro', args: { inverse: true, border: true, shadow: true }, render: (params, context) => html` <div class=\"bg-secondary text-white\">${ScrollToTopTemplate(params, context)}</div> `, }"
        }
      ],
      "exports": [
        {
          "kind": "js",
          "name": "default",
          "declaration": {
            "name": "meta",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "EsempioInterattivo",
          "declaration": {
            "name": "EsempioInterattivo",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "Border",
          "declaration": {
            "name": "Border",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "BorderColor",
          "declaration": {
            "name": "BorderColor",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "IconColor",
          "declaration": {
            "name": "IconColor",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "Small",
          "declaration": {
            "name": "Small",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "Shadow",
          "declaration": {
            "name": "Shadow",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "Dark",
          "declaration": {
            "name": "Dark",
            "module": "stories/it-back-to-top.stories.ts"
          }
        },
        {
          "kind": "js",
          "name": "DarkShadow",
          "declaration": {
            "name": "DarkShadow",
            "module": "stories/it-back-to-top.stories.ts"
          }
        }
      ]
    }
  ]
}
