{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "temperaments",
  "title": "Temperaments",
  "description": "The single table of MotionKit temperaments (calm, lively, playful): springs, physics, durations, squash, tilt, stagger and CSS easings.",
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "lib/temperaments.ts",
      "content": "/**\n * React MotionKit · motion language (unica tabella dei temperamenti).\n * Destinazione: packages/ui/src/motion/temperaments.ts\n * Il temperamento regola il \"come\" (molla, durata, ampiezza); i preset del componente regolano il \"cosa\".\n * Spring in formato Motion (motion/react): { type: \"spring\", visualDuration, bounce }.\n * stiffness/damping sono gli equivalenti fisici (mass 1), calcolati con la stessa formula di Motion.\n */\nexport type Temperament = \"calm\" | \"lively\" | \"playful\"\n\nexport interface TemperamentTokens {\n  /** Molla dell'azione (tempo 2) e dell'assestamento (tempo 3). */\n  spring: { type: \"spring\"; visualDuration: number; bounce: number }\n  /** Equivalente fisico, per librerie che non accettano visualDuration. */\n  physics: { stiffness: number; damping: number; mass: 1 }\n  /** Durata percepita in ms (= visualDuration). */\n  duration: number\n  /** Fine reale della molla in ms (soglia 0,3%). Usala per timeout e test. */\n  settle: number\n  /** Sovraelongazione misurata in %, 0 = nessun rimbalzo. */\n  overshoot: number\n  /** Schiacciamento massimo (0.05 = 5%) per squash & stretch. */\n  squash: number\n  /** Durata della carica (tempo 1) in ms. */\n  anticipation: number\n  /** Rotazione massima in gradi per \"attenzione\" (card che si girano verso il cursore). */\n  tilt: number\n  /** Ritardo tra elementi in sequenza, ms. */\n  stagger: number\n  /** Easing CSS equivalente alla molla, per transizioni senza JS. */\n  cssEasing: string\n}\n\nexport const temperaments: Record<Temperament, TemperamentTokens> = {\n  /** calmo: niente rimbalzo. Fintech, enterprise, dashboard. */\n  calm: {\n    spring: { type: \"spring\", visualDuration: 0.26, bounce: 0 },\n    physics: { stiffness: 405.6, damping: 40.3, mass: 1 },\n    duration: 260,\n    settle: 404,\n    overshoot: 0,\n    squash: 0.015,\n    anticipation: 40,\n    tilt: 3,\n    stagger: 30,\n    cssEasing:\n      \"linear(0, 0.014, 0.048, 0.093, 0.15, 0.211, 0.274, 0.336, 0.397, 0.452, 0.507, 0.558, 0.605, 0.649, 0.688, 0.724, 0.754, 0.783, 0.809, 0.832, 0.853, 0.871, 0.886, 0.9, 0.913, 0.924, 0.934, 0.942, 0.95, 0.956, 0.962, 0.967, 0.971, 0.975, 0.978, 0.981, 0.984, 0.986, 0.988, 0.989, 0.991, 0.992, 0.993, 0.994, 0.995, 0.996, 0.996, 0.997, 1)\",\n  },\n  /** vivace: rimbalzo leggero. Default dei componenti installati. */\n  lively: {\n    spring: { type: \"spring\", visualDuration: 0.4, bounce: 0.3 },\n    physics: { stiffness: 171.3, damping: 18.3, mass: 1 },\n    duration: 400,\n    settle: 596,\n    overshoot: 4.5,\n    squash: 0.05,\n    anticipation: 70,\n    tilt: 7,\n    stagger: 45,\n    cssEasing:\n      \"linear(0, 0.013, 0.047, 0.094, 0.155, 0.224, 0.297, 0.372, 0.446, 0.516, 0.585, 0.65, 0.71, 0.765, 0.814, 0.856, 0.894, 0.927, 0.955, 0.978, 0.997, 1.011, 1.023, 1.032, 1.038, 1.042, 1.045, 1.045, 1.045, 1.043, 1.041, 1.038, 1.035, 1.032, 1.029, 1.025, 1.022, 1.019, 1.016, 1.013, 1.011, 1.009, 1.007, 1.005, 1.003, 1.002, 1.001, 1, 1)\",\n  },\n  /** giocoso: rimbalzo evidente. Default del sito e delle demo. */\n  playful: {\n    spring: { type: \"spring\", visualDuration: 0.54, bounce: 0.45 },\n    physics: { stiffness: 94.0, damping: 10.7, mass: 1 },\n    duration: 540,\n    settle: 1009,\n    overshoot: 12.6,\n    squash: 0.11,\n    anticipation: 100,\n    tilt: 12,\n    stagger: 60,\n    cssEasing:\n      \"linear(0, 0.02, 0.072, 0.148, 0.24, 0.342, 0.448, 0.553, 0.654, 0.749, 0.833, 0.905, 0.967, 1.018, 1.058, 1.087, 1.108, 1.12, 1.125, 1.125, 1.12, 1.112, 1.101, 1.088, 1.075, 1.062, 1.049, 1.037, 1.026, 1.016, 1.007, 1, 0.995, 0.991, 0.987, 0.985, 0.984, 0.984, 0.985, 0.985, 0.987, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.998, 1)\",\n  },\n}\n\n/** Default dei componenti installati dai clienti. Il sito e le demo usano \"playful\". */\nexport const DEFAULT_TEMPERAMENT: Temperament = \"lively\"\n\n/** Ridotto movimento: i tre tempi diventano una dissolvenza breve; nessun contenuto sparisce. */\nexport const reducedMotion = { duration: 120, ease: \"easeOut\" as const, squash: 0, tilt: 0 }\n\n/** Nomi italiani usati nel marchio e nelle docs in italiano. */\nexport const temperamentLabel: Record<Temperament, { en: string; it: string }> = {\n  calm: { en: \"Calm\", it: \"Calmo\" },\n  lively: { en: \"Lively\", it: \"Vivace\" },\n  playful: { en: \"Playful\", it: \"Giocoso\" },\n}\n",
      "type": "registry:lib"
    }
  ],
  "meta": {
    "tier": "free",
    "collection": "interface",
    "needsImage": false,
    "addedAt": "2026-10-14",
    "tags": [
      "motion",
      "temperament",
      "tokens"
    ],
    "tech": [],
    "presets": [],
    "keyboard": [],
    "heavy": false
  },
  "categories": [
    "internal"
  ],
  "type": "registry:lib"
}