{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://next.mdxui.dev/schema/sections/stats.json",
  "title": "stats",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "stats"
    },
    "head": {
      "type": "object",
      "properties": {
        "eyebrow": {
          "type": "string",
          "minLength": 1,
          "maxLength": 28
        },
        "title": {
          "type": "string",
          "minLength": 1,
          "maxLength": 72
        },
        "lede": {
          "type": "string",
          "minLength": 1,
          "maxLength": 300
        },
        "max": {
          "type": "string",
          "pattern": "^(none|\\d+(\\.\\d+)?(em|ch|px))$"
        },
        "ledeMax": {
          "type": "string",
          "pattern": "^(none|\\d+(\\.\\d+)?(em|ch|px))$"
        },
        "balance": {
          "type": "boolean"
        },
        "scale": {
          "type": "string",
          "enum": [
            "compact",
            "large"
          ]
        },
        "tag": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8
        },
        "layout": {
          "type": "string",
          "enum": [
            "split"
          ]
        }
      },
      "required": [
        "eyebrow"
      ],
      "additionalProperties": false
    },
    "items": {
      "minItems": 3,
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 72
          },
          "icon": {
            "type": "string",
            "enum": [
              "activity",
              "anchor",
              "arrow-right",
              "arrow-up-right",
              "badge-check",
              "bell",
              "blocks",
              "bot",
              "check",
              "chevron-down",
              "chevron-left",
              "chevron-right",
              "clock",
              "code",
              "compass",
              "copy",
              "credit-card",
              "database",
              "file-code-2",
              "file-text",
              "files",
              "film",
              "fingerprint",
              "gauge",
              "git-commit-horizontal",
              "globe",
              "history",
              "key-round",
              "landmark",
              "layers",
              "layout-grid",
              "library",
              "link",
              "list",
              "map-pin",
              "menu",
              "message-square",
              "mic",
              "plug",
              "radar",
              "refresh-cw",
              "search",
              "shield-check",
              "ship",
              "shopping-cart",
              "sliders-horizontal",
              "sparkles",
              "terminal",
              "ticket",
              "waves",
              "webhook",
              "x"
            ]
          }
        },
        "required": [
          "value",
          "label"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "type",
    "items"
  ],
  "additionalProperties": false
}
