- DESIGN_TOKENS.md: Complete rewrite to document --sumi-* token system - APP_SHELL.md: Update layout shell docs (glass bg, backdrop-blur, z-index) - DESIGN_DIRECTION.md: Update aesthetic direction to SUMI philosophy - .storybook/preview.tsx: Remove deleted CSS imports, update bg colors - eslint.config.js: Update color rule message from Kodo to SUMI tokens - tailwind.config.ts: Fix comment referencing deleted design-tokens.css Co-authored-by: Cursor <cursoragent@cursor.com>
1 line
721 B
JavaScript
1 line
721 B
JavaScript
import{a as o,j as x}from"./vendor-react-Dkpvlwai.js";import{d as A}from"./index-jE2AGx2y.js";function R({end:t,duration:r=1e3,enabled:n=!0,decimals:e=0}){const[s,u]=o.useState(0),c=o.useRef(),a=o.useRef();return o.useEffect(()=>{if(!n||t===0){u(t);return}const i=m=>{a.current||(a.current=m);const f=Math.min((m-a.current)/r,1),p=(1-Math.pow(1-f,3))*t;u(Number(p.toFixed(e))),f<1&&(c.current=requestAnimationFrame(i))};return c.current=requestAnimationFrame(i),()=>{c.current&&cancelAnimationFrame(c.current)}},[t,r,n,e]),s}function h({value:t,duration:r=1e3,className:n,format:e}){const s=R({end:t,duration:r}),u=e?e(s):s.toLocaleString();return x.jsx("span",{className:A("tabular-nums",n),children:u})}export{h as A};
|