feat: responsive system, engineering infra, new components, performance

- Section: responsive prop with media query injection
- visual-weights: fontSize clamp() for responsive sizing
- variables.css: add border-radius/shadow/transition/z-index tokens
- ESLint flat config + Prettier + Changeset init
- New components: Footer, NewsSidebar, BreakingNewsBanner
- Image/Figure: loading=lazy, aspectRatio, sizes props
This commit is contained in:
sunzhongyi
2026-05-21 10:04:35 +08:00
parent 184353cfb0
commit 5f65d741ed
54 changed files with 2759 additions and 101 deletions
+10 -2
View File
@@ -2,17 +2,25 @@
"name": "newspaperui",
"version": "0.0.0",
"private": true,
"type": "module",
"description": "A newspaper-style UI component library",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"lint": "eslint packages/*/src/",
"test": "turbo run test",
"clean": "turbo run clean && rm -rf node_modules"
},
"devDependencies": {
"@changesets/cli": "^2.31.0",
"@eslint/js": "^10.0.1",
"eslint": "^10.4.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"prettier": "^3.8.3",
"turbo": "^2.3.3",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"typescript-eslint": "^8.59.4"
},
"packageManager": "pnpm@9.15.4",
"engines": {