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
+24 -6
View File
@@ -1,7 +1,7 @@
{
"name": "@newspaperui/components",
"version": "0.0.0",
"description": "React components for newspaperui",
"name": "newspaperui-components",
"version": "0.1.0",
"description": "Production-grade newspaper layout React components",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
@@ -29,8 +29,8 @@
"react-dom": "^18.3.1"
},
"dependencies": {
"@newspaperui/theme": "workspace:*",
"@newspaperui/utils": "workspace:*"
"newspaperui-theme": "workspace:*",
"newspaperui-utils": "workspace:*"
},
"devDependencies": {
"@testing-library/react": "^16.1.0",
@@ -45,5 +45,23 @@
"vite": "^5.4.11",
"vite-plugin-dts": "^4.3.0",
"vitest": "^2.1.8"
},
"license": "MIT",
"author": "sunzhongyi",
"repository": {
"type": "git",
"url": "https://github.com/joisun/newspaperui.git"
},
"keywords": [
"newspaper",
"react",
"components",
"layout",
"typography",
"css-grid",
"multi-column"
],
"publishConfig": {
"access": "public"
}
}
}