{
  "name": "@aisquare/ui",
  "version": "1.27.1",
  "description": "AISquare's design system. Stock shadcn primitives at `@aisquare/ui/stock` + brand-flavored primitives + composed components at the main entry. Replaces @aisquare/pretty as of v1.0.0.",
  "license": "MIT",
  "keywords": [
    "aisquare",
    "ui",
    "shadcn",
    "radix",
    "components",
    "tailwind",
    "react",
    "design-system"
  ],
  "type": "module",
  "main": "./dist/index.js",
  "module": "./dist/index.js",
  "types": "./dist/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "import": "./dist/index.js"
    },
    "./stock": {
      "types": "./dist/stock.d.ts",
      "import": "./dist/stock.js"
    },
    "./console": {
      "types": "./dist/console.d.ts",
      "import": "./dist/console.js"
    },
    "./console.css": "./dist/console.css",
    "./chat": {
      "types": "./dist/chat.d.ts",
      "import": "./dist/chat.js"
    },
    "./icons": {
      "types": "./dist/icons.d.ts",
      "import": "./dist/icons.js"
    },
    "./tailwind.preset": {
      "types": "./dist/tailwind.preset.d.ts",
      "import": "./dist/tailwind.preset.js",
      "require": "./dist/tailwind.preset.cjs"
    },
    "./tailwind.tokens.preset": {
      "types": "./dist/tailwind.tokens.preset.d.ts",
      "import": "./dist/tailwind.tokens.preset.js",
      "require": "./dist/tailwind.tokens.preset.cjs"
    },
    "./tokens/tokens.template.css": "./src/tokens/tokens.template.css",
    "./tokens/foundations.css": "./src/tokens/foundations.css",
    "./tokens/fonts.css": "./src/tokens/fonts.css",
    "./tokens/shadcn-extras.css": "./src/tokens/shadcn-extras.css",
    "./themes/v2.css": "./src/tokens/themes/v2.css",
    "./themes/v2.shape.css": "./src/tokens/themes/v2.shape.css",
    "./themes/fe.css": "./src/tokens/themes/fe.css",
    "./themes/fe.shape.css": "./src/tokens/themes/fe.shape.css",
    "./onyx-hex.css": "./src/tokens/onyx-hex.css",
    "./package.json": "./package.json",
    "./mcp/server.mjs": "./mcp/server.mjs",
    "./mcp/registry.json": "./mcp/registry.json",
    "./skills/aisquare-ui/SKILL.md": "./skills/aisquare-ui/SKILL.md"
  },
  "files": [
    "dist",
    "src/tokens",
    "AGENTS.md",
    "DESIGN.md",
    "registry",
    "docs/FOUNDATIONS.md",
    "docs/ADOPTION.md",
    "docs/CONSOLE.md",
    "docs/aisquare-foundations.css",
    "README.md",
    "LICENSE",
    "mcp",
    "skills",
    ".mcp.json",
    ".claude-plugin"
  ],
  "sideEffects": false,
  "peerDependencies": {
    "@hookform/resolvers": ">=3.0.0",
    "canvas-confetti": ">=1.9.0",
    "lenis": ">=1.3.0",
    "react": "^18.0.0 || ^19.0.0",
    "react-dom": "^18.0.0 || ^19.0.0",
    "react-hook-form": ">=7.0.0",
    "tailwindcss": ">=3.4.0",
    "zod": ">=3.0.0"
  },
  "peerDependenciesMeta": {
    "@hookform/resolvers": {
      "optional": true
    },
    "canvas-confetti": {
      "optional": true
    },
    "lenis": {
      "optional": true
    },
    "react-hook-form": {
      "optional": true
    },
    "zod": {
      "optional": true
    }
  },
  "dependencies": {
    "@fontsource-variable/inter": "5.3.0",
    "@radix-ui/react-accordion": "^1.2.0",
    "@radix-ui/react-checkbox": "^1.3.3",
    "@radix-ui/react-dropdown-menu": "^2.1.16",
    "@radix-ui/react-popover": "^1.1.15",
    "@radix-ui/react-slot": "^1.1.0",
    "@radix-ui/react-switch": "^1.2.6",
    "@radix-ui/react-tabs": "^1.1.13",
    "@radix-ui/react-tooltip": "^1.1.4",
    "@tailwindcss/typography": "^0.5.19",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.1",
    "cmdk": "^1.1.1",
    "gsap": "^3.13.0",
    "motion": "^12.38.0",
    "radix-ui": "^1.4.0",
    "react-colorful": "^5.7.0",
    "react-markdown": "^10.1.0",
    "react-syntax-highlighter": "^16.1.1",
    "recharts": "^2.15.0",
    "rehype-sanitize": "^6.0.0",
    "remark-breaks": "^4.0.0",
    "remark-gfm": "^4.0.1",
    "sonner": "^1.7.0",
    "tailwind-merge": "^2.5.4",
    "tailwindcss-animate": "^1.0.7",
    "tailwindcss-motion": "^1.1.1"
  },
  "devDependencies": {
    "@hookform/resolvers": "^5.4.0",
    "@iconify-json/icon-park-outline": "^1.2.4",
    "@iconify-json/logos": "^1.2.13",
    "@iconify-json/simple-icons": "^1.2.94",
    "@iconify-json/thesvg-color": "^1.2.5",
    "@size-limit/preset-small-lib": "^11.1.6",
    "@storybook/addon-a11y": "^10.4.6",
    "@storybook/addon-docs": "^10.4.6",
    "@storybook/addon-mcp": "^0.6.0",
    "@storybook/addon-vitest": "^10.4.6",
    "@storybook/react-vite": "^10.4.6",
    "@svgr/core": "^8.1.0",
    "@svgr/plugin-jsx": "^8.1.0",
    "@testing-library/jest-dom": "^6.6.3",
    "@testing-library/react": "^16.0.1",
    "@testing-library/user-event": "^14.5.2",
    "@types/canvas-confetti": "^1.9.0",
    "@types/node": "^22.5.0",
    "@types/react": "^18.3.12",
    "@types/react-dom": "^18.3.1",
    "@types/react-syntax-highlighter": "^15.5.13",
    "@typescript-eslint/eslint-plugin": "^8.13.0",
    "@typescript-eslint/parser": "^8.13.0",
    "@vitejs/plugin-react": "^4.3.3",
    "@vitest/browser": "3.2.6",
    "canvas-confetti": "^1.9.4",
    "eslint": "^8.57.1",
    "eslint-plugin-react-hooks": "^5.0.0",
    "eslint-plugin-react-refresh": "^0.4.14",
    "eslint-plugin-storybook": "^10.4.6",
    "gsap": "^3.13.0",
    "jsdom": "^25.0.1",
    "lenis": "^1.3.23",
    "motion": "^12.38.0",
    "playwright": "^1.61.0",
    "postcss": "^8.5.15",
    "prettier": "^3.3.3",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-hook-form": "^7.80.0",
    "size-limit": "^11.1.6",
    "storybook": "^10.4.6",
    "tailwindcss": "^3.4.14",
    "typescript": "^5.6.3",
    "unplugin-icons": "^23.0.1",
    "vite": "^5.4.10",
    "vite-plugin-dts": "^4.3.0",
    "vitest": "^3.2.6",
    "zod": "^4.4.3"
  },
  "publishConfig": {
    "access": "public"
  },
  "engines": {
    "node": ">=18"
  },
  "size-limit": [
    {
      "name": "full bundle (ESM, brotli), worst-case import * (incl. recharts; externalized in the real build + tree-shaken per-file, so no consumer pays this unless they bundle recharts AND import *). Raised to 500 kB for the v1.4 component-port wave (18 new components, +33 kB worst-case); 505 kB for the v1.8 memory_save post-process signal block (+~1 kB, the tick over an already-full 500); then 520 kB for the EPIC #188 chart-family expansion (recharts Pie/Scatter/ZAxis, +7 kB worst-case); then 525 kB for the chat-transcript primitives. That last raise covers two things: the branch point already measured 521.01 kB (1.01 kB over its own limit) before the wave landed, and the six new components add 0.89 kB worst-case between them. They are small leaf components with no new runtime dependency, so the raise is headroom, not a new cost centre. Per-file tree-shaking means real consumers do not pay it. motion + gsap are real dependencies (#28 motion contract) but externalized in the build, so they are ignored here to measure the lib own code, not the shared animation runtime. Then 530 kB for the unified-platform port wave: CommandPalette, ErrorPage, GenerationProgress, LineSidebar, AttributionBadge, MagneticButton, StepperMorph (4 sub-exports), BlurHighlight, plus EmptyState's Button-based CTA additions and Tooltip's SimpleTooltip — 10 new leaf exports, none with a new runtime dependency (motion was already real; useFocusTrap/attributionBadgeHtml are plain TS). Per-file tree-shaking still applies; this is worst-case `import *` headroom, not a real per-consumer cost. Then 540 kB for the icon-provider migration (lucide-react -> IconPark + Iconify logos/simple-icons, resolved to plain components at build time by unplugin-icons — see Storybook -> Foundations -> Icons). This is a real, permanent, and correct cost increase, not headroom: lucide-react was externalized (a consumer's own bundler resolved it, effectively free in THIS measurement), but every icon is now inlined SVG data with zero runtime dependency — the entire point of the migration. Measured 532.93 kB after the swap; the raise is the actual new floor plus normal headroom, not slack for future growth.",
      "path": "dist/index.js",
      "limit": "540 kB",
      "import": "*",
      "ignore": [
        "motion",
        "gsap"
      ]
    },
    {
      "name": "dist/chat.js (chat-transcript leaves; must stay gsap/motion-free so consumers can import it under jsdom). Raised from 12 kB to 20 kB for the icon-provider migration (lucide-react -> IconPark, build-time inlined, no runtime dependency) — these five leaf components use exactly three icons (Check/Copy/RotateCcw) between them, verified against no wildcard `import *` from the icon barrel; measured 18.07 kB after the swap. The jump is proportionally large only because this entry was already tiny — three inlined icon SVGs plus the shared wrapIcon() helper is a real, fixed cost, not a leak.",
      "path": "dist/chat.js",
      "limit": "20 kB",
      "import": "*"
    },
    {
      "name": "dist/stock.js (stock-only barrel)",
      "path": "dist/stock.js",
      "limit": "70 kB"
    },
    {
      "name": "dist/primitives/Button.js (brand button + Spinner dep)",
      "path": "dist/primitives/Button.js",
      "limit": "30 kB",
      "ignore": [
        "motion",
        "gsap"
      ]
    },
    {
      "name": "dist/ui/menubar.js (largest stock primitive — multi-Radix). Raised from 35 kB to 44 kB for the icon-provider migration (lucide-react -> IconPark, build-time inlined) — menubar pulls in several checkmark/chevron/circle glyphs for its item/radio/checkbox variants, all real inlined SVG now instead of externalized references. Measured 40.97 kB after the swap.",
      "path": "dist/ui/menubar.js",
      "limit": "44 kB"
    }
  ],
  "bin": {
    "aisquare-ui-agent": "./mcp/cli.mjs"
  },
  "scripts": {
    "build": "npm run agent:index && vite build && vite build --config vite.preset.config.ts && node scripts/build-console-css.mjs",
    "dev": "vite build --watch",
    "import:shadcn": "node scripts/import-from-shadcn.mjs",
    "generate:registry": "node scripts/generate-registry.mjs",
    "lint": "eslint src --ext .ts,.tsx --max-warnings 0",
    "format": "prettier --write \"src/**/*.{ts,tsx}\" \"*.md\"",
    "typecheck": "tsc --noEmit",
    "test": "vitest --project unit",
    "test:ci": "vitest --run --project unit",
    "test:storybook": "vitest --run --project storybook",
    "size": "size-limit",
    "storybook": "storybook dev -p 6006",
    "build-storybook": "storybook build",
    "agent:index": "node scripts/build-agent-index.mjs && node scripts/build-agent-docs.mjs",
    "agent:docs": "node scripts/build-agent-docs.mjs",
    "agent:check": "node mcp/server.mjs --selftest"
  }
}