{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "completed": {
              "enum": [
                "yes",
                "no"
              ],
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "payment": {
              "$ref": "#/definitions/IShoppingPayment"
            }
          },
          "required": [
            "payment"
          ],
          "type": "object"
        },
        "IShopItem": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "quantity": {
              "type": "number"
            },
            "taxPercentage": {
              "type": "number"
            },
            "unit": {
              "type": "string"
            },
            "unitaryPrice": {
              "type": "number"
            }
          },
          "required": [
            "id",
            "name",
            "unitaryPrice",
            "taxPercentage"
          ],
          "type": "object"
        },
        "IShoppingPayment": {
          "additionalProperties": false,
          "properties": {
            "countryCode": {
              "enum": [
                "IT",
                "US",
                "EU"
              ],
              "type": "string"
            },
            "currencySymbol": {
              "enum": [
                "€",
                "$"
              ],
              "type": "string"
            },
            "items": {
              "items": {
                "$ref": "#/definitions/IShopItem"
              },
              "type": "array"
            },
            "shipmentFee": {
              "type": "number"
            }
          },
          "required": [
            "countryCode",
            "items"
          ],
          "type": "object"
        }
      }
    }
  },
  "description": "Order summary built on `hb-table`: maps `payment.items` into rows (name, quantity, line total), computes subtotal, tax, and grand total from item prices, and shows country/currency (with simple symbol defaults). When `completed` is enabled it switches to a compact “order placed” state; `payment` can be supplied as JSON.",
  "storybookArgs": {
    "payment": {
      "control": {
        "type": "object"
      }
    },
    "completed": {
      "control": {
        "type": "radio"
      },
      "options": [
        "yes",
        "no"
      ]
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "#363636",
        "description": "Title and summary text."
      },
      {
        "name": "--bulma-border",
        "valueType": "color",
        "defaultValue": "#dbdbdb",
        "description": "Default border tone (with cart divider)."
      },
      {
        "name": "--hb-checkout-border",
        "valueType": "other",
        "defaultValue": "1px solid + `--bulma-border`",
        "description": "Full border shorthand for the divider above the cart table; `:host` defaults to `1px solid` with `--bulma-border`."
      }
    ],
    "parts": []
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "description": "Two line items with Italian country context.",
      "data": {
        "payment": {
          "items": [
            {
              "id": "efewf",
              "unitaryPrice": 2,
              "taxPercentage": 3,
              "name": "testitem"
            },
            {
              "id": "efewf4",
              "unitaryPrice": 5,
              "taxPercentage": 7,
              "name": "testitem2"
            }
          ],
          "countryCode": "IT"
        }
      }
    },
    {
      "name": "singleItem",
      "description": "Minimal cart with one SKU and explicit quantity.",
      "data": {
        "payment": {
          "countryCode": "IT",
          "items": [
            {
              "id": "sku-1",
              "name": "Starter kit",
              "unitaryPrice": 49.9,
              "taxPercentage": 22,
              "quantity": 1
            }
          ]
        }
      }
    },
    {
      "name": "withShipmentFee",
      "description": "Extra shipping line folded into totals via `shipmentFee`.",
      "data": {
        "payment": {
          "countryCode": "EU",
          "currencySymbol": "€",
          "shipmentFee": 5.5,
          "items": [
            {
              "id": "a",
              "name": "Poster",
              "unitaryPrice": 12,
              "taxPercentage": 10,
              "quantity": 2
            }
          ]
        }
      }
    },
    {
      "name": "completed",
      "description": "Order-placed compact summary.",
      "data": {
        "payment": {
          "countryCode": "IT",
          "items": [
            {
              "id": "efewf",
              "unitaryPrice": 2,
              "taxPercentage": 3,
              "name": "testitem"
            }
          ]
        },
        "completed": "yes"
      }
    }
  ],
  "iifeIntegrity": "sha384-OXT8rYAofvxIbw4kXVx3B4O8j//uu+RFVtoB4lzo1tGXkNyXrui7eoaTlqByW6Sz",
  "dependencies": [
    {
      "name": "hb-table",
      "dependencies": [
        {
          "name": "hb-dialog",
          "dependencies": []
        },
        {
          "name": "hb-dialogform",
          "dependencies": [
            {
              "name": "hb-dialog",
              "dependencies": []
            },
            {
              "name": "hb-form",
              "dependencies": [
                {
                  "name": "hb-input-area",
                  "dependencies": []
                },
                {
                  "name": "hb-input-array-objects",
                  "dependencies": [
                    {
                      "name": "hb-form",
                      "dependencies": []
                    },
                    {
                      "name": "hb-table",
                      "dependencies": []
                    }
                  ]
                },
                {
                  "name": "hb-input-array-tags",
                  "dependencies": []
                },
                {
                  "name": "hb-input-checkbox",
                  "dependencies": []
                },
                {
                  "name": "hb-input-color",
                  "dependencies": []
                },
                {
                  "name": "hb-input-coords",
                  "dependencies": [
                    {
                      "name": "hb-input-number",
                      "dependencies": []
                    },
                    {
                      "name": "hb-map",
                      "dependencies": []
                    }
                  ]
                },
                {
                  "name": "hb-input-date",
                  "dependencies": []
                },
                {
                  "name": "hb-input-datetime",
                  "dependencies": [
                    {
                      "name": "hb-input-date",
                      "dependencies": []
                    },
                    {
                      "name": "hb-input-number",
                      "dependencies": []
                    }
                  ]
                },
                {
                  "name": "hb-input-email",
                  "dependencies": []
                },
                {
                  "name": "hb-input-file",
                  "dependencies": []
                },
                {
                  "name": "hb-input-number",
                  "dependencies": []
                },
                {
                  "name": "hb-input-radio",
                  "dependencies": []
                },
                {
                  "name": "hb-input-range",
                  "dependencies": []
                },
                {
                  "name": "hb-input-select",
                  "dependencies": []
                },
                {
                  "name": "hb-input-text",
                  "dependencies": []
                }
              ]
            }
          ]
        },
        {
          "name": "hb-paginate",
          "dependencies": [
            {
              "name": "hb-input-number",
              "dependencies": []
            },
            {
              "name": "hb-input-select",
              "dependencies": []
            }
          ]
        },
        {
          "name": "hb-tooltip",
          "dependencies": []
        }
      ]
    }
  ],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-checkout-shopping-cart",
  "category": "commerce",
  "tags": [
    "commerce",
    "cart"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-checkout-shopping-cart",
  "version": "0.76.5"
}