From 0c24005e78c54cc0494aa7f40b6916ac7f23b2e2 Mon Sep 17 00:00:00 2001 From: Paolo Scattolin Date: Wed, 4 Nov 2026 16:04:40 +0100 Subject: [PATCH] Refactor shared components and page styles, add stylelint --- README.md | 3 +- package-lock.json | 1215 ++++++++++++++++- package.json | 6 +- src/components/Badge.tsx | 11 +- src/components/CodeBlock.tsx | 7 +- src/components/Containers.tsx | 3 +- src/components/Details.tsx | 7 +- src/components/FileDrop.tsx | 33 +- src/components/Form.tsx | 39 +- src/components/Icon.tsx | 7 +- src/components/Link.tsx | 6 +- src/components/Modal.tsx | 28 +- src/components/NotificationCard.tsx | 9 +- src/components/RadioGroup.tsx | 21 +- src/components/Spacer.tsx | 3 - src/components/Spinner.tsx | 5 +- src/components/Table.tsx | 36 +- src/components/Typography.tsx | 6 +- src/components/cards/Card.tsx | 14 +- src/components/cards/ExpandableCard.tsx | 3 +- src/pages/LoginPage.tsx | 27 +- src/pages/NotFoundPage.tsx | 30 +- src/pages/PlaceholderPage.tsx | 4 +- src/pages/main-page/Credits.styles.tsx | 4 +- src/pages/main-page/MainPage.styles.tsx | 33 +- src/pages/main-page/StatusIndicator.tsx | 12 +- .../ExecutionDetailPage.styles.tsx | 6 +- .../DetailsTabView.styles.tsx | 15 +- .../ManualActionModal.styles.tsx | 36 +- .../TimelineTabView.styles.tsx | 26 +- .../PlaybookCreatePage.styles.tsx | 16 +- .../playbooks-page/PlaybooksPage.styles.tsx | 35 +- src/theme/GlobalStyles.ts | 20 +- stylelint.config.js | 5 + 34 files changed, 1475 insertions(+), 256 deletions(-) create mode 100644 stylelint.config.js diff --git a/README.md b/README.md index 8b9001a0..2e7db6c6 100644 --- a/README.md +++ b/README.md @@ -415,7 +415,8 @@ flowchart TB - `npm run dev` - Start Vite dev server with hot-reload - `npm run build` - Type-check and create production bundle - `npm run preview` - Serve the production build locally (Vite preview server) -- `npm run lint` - Run ESLint +- `npm run lint` - Run ESLint, then Stylelint (CSS property order) +- `npm run lint:css` - Run only Stylelint; add `-- --fix` to reorder properties automatically - `npm test` - Run unit tests (Vitest) ## Documentation diff --git a/package-lock.json b/package-lock.json index 34c740e1..8b2fb6db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,8 +36,11 @@ "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", "jsdom": "^30.1.3", + "postcss-styled-syntax": "^0.7.4", "rolldown": "^1.2.16", "rollup-plugin-sbom": "^3.0.1", + "stylelint": "^17.16.0", + "stylelint-config-clean-order": "^10.0.0", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4", @@ -370,6 +373,67 @@ "specificity": "bin/cli.js" } }, + "node_modules/@cacheable/memory": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@cacheable/memory/-/memory-2.2.0.tgz", + "integrity": "sha512-CTLKqLItRCEixEAewD3/j9DB3/o96gpTPD4eJ1v+DGOlxZRZncRQkGYqqnAGCscYd6RNeXfGeiuCphsPtqyIfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/utils": "^2.5.0", + "@keyv/bigmap": "^1.3.1", + "hookified": "^1.15.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/memory/node_modules/@keyv/bigmap": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz", + "integrity": "sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.4.0", + "hookified": "^1.15.0" + }, + "engines": { + "node": ">= 18" + }, + "peerDependencies": { + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/memory/node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, + "node_modules/@cacheable/utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@cacheable/utils/-/utils-2.5.0.tgz", + "integrity": "sha512-buipgOVDkkPXNR5+xBpDw7Zk2n1EvU7qBJCNUcL7rhQ//kfpOXPAvQ511Os0vpLYJ1pZnvudNytkQt2hst3wqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hashery": "^1.5.1", + "keyv": "^5.6.0" + } + }, + "node_modules/@cacheable/utils/node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, "node_modules/@csstools/color-helpers": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.2.tgz", @@ -510,6 +574,76 @@ "node": ">=20.19.0" } }, + "node_modules/@csstools/media-query-list-parser": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/@csstools/media-query-list-parser/-/media-query-list-parser-5.0.2.tgz", + "integrity": "sha512-qx19O8AbbLLbDSAcI6YOby/Vq8rV51psgIvlF5OZT/L8fQJDCyQifL6k+kYU4a8ySpzJ4RBzZkIs530bAn8y4Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.2", + "@csstools/css-tokenizer": "^4.0.2" + } + }, + "node_modules/@csstools/selector-resolve-nested": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-4.0.2.tgz", + "integrity": "sha512-JpjNBJFA+4OnAHKRK4AMp8xrYyLhI9XapOeBlP2PhRU/IylSw+1ep3BFNTksBJnrTS3KT6kqKNVfpzLLwZUW5Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "postcss-selector-parser": "^7.1.1" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-6.0.1.tgz", + "integrity": "sha512-MBuqFIIvqk4S593MGAskTkPpEUUzZNvGzh8mMxEwl3oHwjQlXmqHEDxNbN3Y0Tsh+xjmem4GZjeg7I0qkwBivg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "postcss-selector-parser": "^7.1.1" + } + }, "node_modules/@dagrejs/dagre": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/@dagrejs/dagre/-/dagre-3.1.3.tgz", @@ -1469,6 +1603,13 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, + "node_modules/@keyv/serialize": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@keyv/serialize/-/serialize-1.1.1.tgz", + "integrity": "sha512-dXn3FZhPv0US+7dtJsIi2R+c7qWYiReoEh5zUntWCf4oSpMNib8FDhSoed6m3QyZdx5hK7iLFkYk3rNxwt8vTA==", + "dev": true, + "license": "MIT" + }, "node_modules/@napi-rs/lzma-linux-x64-gnu": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", @@ -1489,6 +1630,44 @@ "node": "^22.20 || ^24.12 || >=25" } }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/@oxc-project/types": { "version": "0.156.0", "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", @@ -2168,6 +2347,19 @@ "win32" ] }, + "node_modules/@sindresorhus/merge-streams": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-4.0.0.tgz", + "integrity": "sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@standard-schema/spec": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", @@ -3235,6 +3427,16 @@ "node": ">=12" } }, + "node_modules/astral-regex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", + "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/babel-plugin-macros": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz", @@ -3296,6 +3498,19 @@ "node": "20 || >=22" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/browserslist": { "version": "4.29.5", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", @@ -3330,6 +3545,30 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/cacheable": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/cacheable/-/cacheable-2.5.0.tgz", + "integrity": "sha512-60cyAOytib/OzBw1JNSoSV/boK1AtHryDIjvVBk7XbN4ugfkM3+Sry7fEjNgPMGgOjuaZPAp8ruZ0Cxafwyq9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cacheable/memory": "^2.2.0", + "@cacheable/utils": "^2.5.0", + "hookified": "^1.15.0", + "keyv": "^5.6.0", + "qified": "^0.10.1" + } + }, + "node_modules/cacheable/node_modules/keyv": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", + "integrity": "sha512-CYDD3SOtsHtyXeEORYRx2qBtpDJFjRTGXUtmNEMGyzYOKj1TE3tycdlho7kA1Ufx9OYWZzg52QFBGALTirzDSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@keyv/serialize": "^1.1.1" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -3443,6 +3682,13 @@ "dev": true, "license": "MIT" }, + "node_modules/colord": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.10.0.tgz", + "integrity": "sha512-AidJptpBJmjTclAp9BkLwJi0T93fo5epJnbaZslpg6QVzpHjAiveF55mE9AcUJiGMqRHgMDY8soMsQtuNYMHfw==", + "dev": true, + "license": "MIT" + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -3519,6 +3765,16 @@ "node": ">=4" } }, + "node_modules/css-functions-list": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/css-functions-list/-/css-functions-list-3.3.3.tgz", + "integrity": "sha512-8HFEBPKhOpJPEPu70wJJetjKta86Gw9+CCyCnB3sui2qQfOvRyqBy4IKLKKAwdMpWb2lHXWk9Wb4Z6AmaUT1Pg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, "node_modules/css-to-react-native": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-3.2.0.tgz", @@ -3544,6 +3800,19 @@ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" } }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", @@ -3734,6 +4003,13 @@ "dev": true, "license": "ISC" }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, "node_modules/entities": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", @@ -3747,6 +4023,16 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/error-ex": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", @@ -4105,6 +4391,36 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/fast-json-stable-stringify": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", @@ -4119,6 +4435,43 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.9.tgz", + "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fastest-levenshtein": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz", + "integrity": "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -4150,6 +4503,19 @@ "node": ">=16.0.0" } }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/find-root": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", @@ -4228,6 +4594,19 @@ "node": ">=6.9.0" } }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -4241,28 +4620,108 @@ "node": ">=10.13.0" } }, - "node_modules/globals": { - "version": "16.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", - "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "node_modules/global-modules": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", + "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", "dev": true, "license": "MIT", - "engines": { - "node": ">=18" + "dependencies": { + "global-prefix": "^3.0.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=6" } }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", + "node_modules/global-prefix": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", + "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", "dev": true, - "license": "MIT" - }, - "node_modules/goober": { - "version": "2.1.19", + "license": "MIT", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "16.2.4", + "resolved": "https://registry.npmjs.org/globby/-/globby-16.2.4.tgz", + "integrity": "sha512-c8B/VNLmxRcmqqenRA9t+9IyOjf9+V6lTxPaUJLqOCONdQkWZ0ETYgX0qbtJqPsgCNusT9MZ5Jeidw8Eb9tn2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sindresorhus/merge-streams": "^4.0.0", + "fast-glob": "^3.3.3", + "ignore": "^7.0.5", + "is-path-inside": "^4.0.0", + "micromatch": "^4.0.8", + "slash": "^5.1.0", + "unicorn-magic": "^0.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby/node_modules/ignore": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/globjoin": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz", + "integrity": "sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg==", + "dev": true, + "license": "MIT" + }, + "node_modules/globrex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", + "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==", + "dev": true, + "license": "MIT" + }, + "node_modules/goober": { + "version": "2.1.19", "resolved": "https://registry.npmjs.org/goober/-/goober-2.1.19.tgz", "integrity": "sha512-U7veizMqxyKlM58+Z5j2ngJBH/r9siDmxpvNxSw0PylF6WQvrASJEZrxh1hidRBJc2jqoBVSyOban5u8m+6Rxg==", "license": "MIT", @@ -4280,6 +4739,19 @@ "node": ">=8" } }, + "node_modules/hashery": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/hashery/-/hashery-1.5.1.tgz", + "integrity": "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^1.15.0" + }, + "engines": { + "node": ">=20" + } + }, "node_modules/hasown": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", @@ -4324,6 +4796,13 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/hookified": { + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-1.15.1.tgz", + "integrity": "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg==", + "dev": true, + "license": "MIT" + }, "node_modules/hosted-git-info": { "version": "9.0.3", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", @@ -4360,6 +4839,19 @@ "node": "^22.13.0 || >=24.0.0" } }, + "node_modules/html-tags": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-5.1.0.tgz", + "integrity": "sha512-n6l5uca7/y5joxZ3LUePhzmBFUJ+U2YWzhMa8XUTecSeSlQiZdF5XAd/Q3/WUl0VsXgUwWi8I7CNIwdI5WN1SQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20.10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -4386,6 +4878,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -4396,6 +4899,13 @@ "node": ">=0.8.19" } }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "dev": true, + "license": "ISC" + }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -4427,6 +4937,16 @@ "node": ">=0.10.0" } }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -4440,6 +4960,29 @@ "node": ">=0.10.0" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz", + "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-potential-custom-element-name": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", @@ -4604,6 +5147,16 @@ "json-buffer": "3.0.1" } }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -4689,6 +5242,17 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/mathml-tag-names": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-4.0.0.tgz", + "integrity": "sha512-aa6AU2Pcx0VP/XWnh8IGL0SYSgQHDT6Ucror2j2mXeFAlN3ahaNs8EZtG1YiticMkSLj3Gt6VPFfZogt7G5iFQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/mdn-data": { "version": "2.27.1", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", @@ -4702,6 +5266,56 @@ "integrity": "sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==", "license": "MIT" }, + "node_modules/meow": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-14.1.0.tgz", + "integrity": "sha512-EDYo6VlmtnumlcBCbh1gLJ//9jvM/ndXHfVXIFrZVr6fGcwTUyCTFNTLCKuY3ffbK8L/+3Mzqnd58RojiZqHVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/micromatch/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/minimatch": { "version": "10.2.6", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", @@ -4775,6 +5389,16 @@ "node": "^20.17.0 || >=22.9.0" } }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -5000,6 +5624,88 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/postcss-safe-parser": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.1.0.tgz", + "integrity": "sha512-1WzZxRLaAFwEh6Do+zyGpjWV3nGJNxxhuh7Ubu/q1ICImMgZJnLwhoaEpRbG4pJppp2Y1ncL9ffA2f+LhrefQg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "engines": { + "node": ">=18.0" + }, + "peerDependencies": { + "postcss": "^8.4.31" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", + "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-sorting": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/postcss-sorting/-/postcss-sorting-10.0.0.tgz", + "integrity": "sha512-TXbU+h6vVRW+86c/+ewhWq9k7pr7ijASTnepVhCQiC87zAOTkvB1v2dHyWP+ggstSTX/PNvjzS+IOqzejndz9w==", + "dev": true, + "license": "MIT", + "peer": true, + "peerDependencies": { + "postcss": "^8.4.20" + } + }, + "node_modules/postcss-styled-syntax": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/postcss-styled-syntax/-/postcss-styled-syntax-0.7.4.tgz", + "integrity": "sha512-wRRWfMTQEFtFv94NpfOAx/GLM7vfHRsgHQIEhBlBw3C7XXuFG6ASTGbR8VdINoF84uBx4lxHdWRUQ+VDi5jNpA==", + "dev": true, + "license": "MIT", + "dependencies": { + "typescript": "^6.0.3" + }, + "engines": { + "node": ">=14.17" + }, + "peerDependencies": { + "postcss": "^8.5.1" + } + }, + "node_modules/postcss-styled-syntax/node_modules/typescript": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", + "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/postcss-value-parser": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", @@ -5071,6 +5777,47 @@ "node": ">=6" } }, + "node_modules/qified": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/qified/-/qified-0.10.1.tgz", + "integrity": "sha512-+Owyggi9IxT1ePKGafcI87ubSmxol6smwJ+RAHDQlx9+9cPwFWDiKFFCPuWhr9ignlGpZ9vDQLw67N4dcTVFEA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hookified": "^2.1.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/qified/node_modules/hookified": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hookified/-/hookified-2.2.0.tgz", + "integrity": "sha512-p/LgFzRN5FeoD3DLS6bkUapeye6E4SI6yJs6KetENd18S+FBthqYq2amJUWpt5z0EQwwHemidjY5OqJGEKm5uA==", + "dev": true, + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, "node_modules/react": { "version": "19.3.1", "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", @@ -5225,6 +5972,17 @@ "node": ">=4" } }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rolldown": { "version": "1.2.16", "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.16.tgz", @@ -5396,6 +6154,30 @@ "dev": true, "license": "MIT" }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/saxes": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", @@ -5464,6 +6246,50 @@ "dev": true, "license": "ISC" }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/slash": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz", + "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/slice-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", + "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/slice-ansi?sponsor=1" + } + }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -5544,6 +6370,52 @@ "dev": true, "license": "MIT" }, + "node_modules/string-width": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz", + "integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "get-east-asian-width": "^1.5.0", + "strip-ansi": "^7.1.2" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.5.0.tgz", + "integrity": "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, "node_modules/strip-json-comments": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", @@ -5594,6 +6466,154 @@ } } }, + "node_modules/stylelint": { + "version": "17.16.0", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-17.16.0.tgz", + "integrity": "sha512-ejlWnbJ13x1GU32+zZXa6sYQJsKKkwSdv2B4rAdO3OWdEmvhSJKcXi5pOphQYSzyaj1kXpuGJr7pcMBNfDIuPw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/stylelint" + }, + { + "type": "github", + "url": "https://github.com/sponsors/stylelint" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/css-calc": "^3.3.0", + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-syntax-patches-for-csstree": "^1.1.9", + "@csstools/css-tokenizer": "^4.0.0", + "@csstools/media-query-list-parser": "^5.0.0", + "@csstools/selector-resolve-nested": "^4.0.1", + "@csstools/selector-specificity": "^6.0.0", + "colord": "^2.10.0", + "cosmiconfig": "^9.0.2", + "css-functions-list": "^3.3.3", + "css-tree": "^3.2.1", + "debug": "^4.4.3", + "fast-glob": "^3.3.3", + "fastest-levenshtein": "^1.0.16", + "file-entry-cache": "^11.1.5", + "global-modules": "^2.0.0", + "globby": "^16.2.4", + "globjoin": "^0.1.4", + "html-tags": "^5.1.0", + "ignore": "^7.0.6", + "import-meta-resolve": "^4.2.0", + "mathml-tag-names": "^4.0.0", + "meow": "^14.1.0", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.5.26", + "postcss-safe-parser": "^7.0.1", + "postcss-selector-parser": "^7.1.5", + "postcss-value-parser": "^4.2.0", + "string-width": "^8.2.2", + "supports-hyperlinks": "^4.5.0", + "svg-tags": "^1.0.0", + "table": "^6.9.0", + "write-file-atomic": "^7.0.1" + }, + "bin": { + "stylelint": "bin/stylelint.mjs" + }, + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/stylelint-config-clean-order": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/stylelint-config-clean-order/-/stylelint-config-clean-order-10.0.0.tgz", + "integrity": "sha512-FKV94g3B1EMSTt0++15jgtU4YwxyeNTAxTRfDW8nx+MvgIWjT9bHRB5SoaNKmVV/hl6CmSjvgtM98lc6Z68KYw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "stylelint": ">=16", + "stylelint-order": ">=6" + } + }, + "node_modules/stylelint-order": { + "version": "8.1.3", + "resolved": "https://registry.npmjs.org/stylelint-order/-/stylelint-order-8.1.3.tgz", + "integrity": "sha512-sItAojls5EBcn4iQMe0p0wwcs8twQoEZ3G36yBriXOM4okA0vxScP8XQnE2WfRpnxtEpVcaWmcaFYpxGMuo26w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "postcss": "^8.5.28", + "postcss-sorting": "^10.0.0" + }, + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "stylelint": "^16.18.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/stylelint/node_modules/cosmiconfig": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-9.0.2.tgz", + "integrity": "sha512-gtTZxTDau1wL7Y7zifc2dd8jHSK/k6BTx/2Xp/BpdlAdnlYWFVt7qhJqgwi7637yRwRQ3qL4ZidbB4I8tA5VOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.1", + "import-fresh": "^3.3.0", + "js-yaml": "^4.1.0", + "parse-json": "^5.2.0" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/d-fischer" + }, + "peerDependencies": { + "typescript": ">=4.9.5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/stylelint/node_modules/file-entry-cache": { + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-11.1.5.tgz", + "integrity": "sha512-+PFTHITI08JIGhnNpGNI8T8inUpgZfk3GNEqfT9R2zZV2iFXg3CvqzSl/uEhs7TSGujYRELEANyDvS8Fj7+S7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^6.1.23" + } + }, + "node_modules/stylelint/node_modules/flat-cache": { + "version": "6.1.23", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-6.1.23.tgz", + "integrity": "sha512-f++BY9pTk+983xK1FLzlLpmM0i0z+jHmx3QESGkURMXujQZz1k5wzwX6hjnQ8goaD0B+sYnDK1yZ6MTyZfUaqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "cacheable": "^2.5.0", + "flatted": "^3.4.2", + "hookified": "^1.15.0" + } + }, + "node_modules/stylelint/node_modules/ignore": { + "version": "7.0.14", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.14.tgz", + "integrity": "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, "node_modules/stylis": { "version": "4.3.6", "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.6.tgz", @@ -5613,6 +6633,49 @@ "node": ">=8" } }, + "node_modules/supports-hyperlinks": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-4.6.0.tgz", + "integrity": "sha512-FL/q/YePS4tFFTNiBOR+zPk2ZrKheqNtmTJ/9OUZ4e1wKHJofDbGQSmSsxS0XNnabSkqexryCaXGvEKz1vf9UQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^5.0.1", + "supports-color": "^10.2.2" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/chalk/supports-hyperlinks?sponsor=1" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-5.0.1.tgz", + "integrity": "sha512-CsNUt5x9LUdx6hnk/E2SZLsDyvfqANZSUq4+D3D8RzDJ2M+HDTIkF60ibS1vHaK55vzgiZw1bEPFG9yH7l33wA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -5625,6 +6688,80 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/svg-tags": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", + "integrity": "sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==", + "dev": true + }, + "node_modules/table": { + "version": "6.10.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.10.1.tgz", + "integrity": "sha512-f05boz6UD5S70AJiUxqKOnDuE45mBIVagX490oQmcW38+Lq/H1s7CjIpFgJjR/kpV87L4lw/AN+14D2PktQJsQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "ajv": "^8.0.1", + "slice-ansi": "^4.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/table/node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/table/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT" + }, + "node_modules/table/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/table/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/tinybench": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", @@ -5689,6 +6826,19 @@ "dev": true, "license": "MIT" }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/tough-cookie": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", @@ -5818,6 +6968,19 @@ "dev": true, "license": "MIT" }, + "node_modules/unicorn-magic": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.4.1.tgz", + "integrity": "sha512-lzlXPoVB0Uy/FvTaUgX39RbixYiSKoc3JSoSf01+0c2B6FR3qdYIPN7Qjo/AV7n6sqLCk0509cT3LRj1oSZ1+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/update-browserslist-db": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", @@ -5882,6 +7045,13 @@ "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", @@ -6175,6 +7345,19 @@ "node": ">=0.10.0" } }, + "node_modules/write-file-atomic": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-7.0.1.tgz", + "integrity": "sha512-OTIk8iR8/aCRWBqvxrzxR0hgxWpnYBblY1S5hDWBQfk/VFmJwzmJgQFN3WsoUKHISv2eAwe+PpbUzyL1CKTLXg==", + "dev": true, + "license": "ISC", + "dependencies": { + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, "node_modules/xml-name-validator": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", diff --git a/package.json b/package.json index 4f588d5e..959eb66c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "dev": "vite", "build": "tsc -b && vite build", - "lint": "eslint .", + "lint": "eslint . && npm run lint:css", + "lint:css": "stylelint \"src/**/*.{ts,tsx}\"", "preview": "vite preview", "test": "vitest" }, @@ -39,8 +40,11 @@ "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", "jsdom": "^30.1.3", + "postcss-styled-syntax": "^0.7.4", "rolldown": "^1.2.16", "rollup-plugin-sbom": "^3.0.1", + "stylelint": "^17.16.0", + "stylelint-config-clean-order": "^10.0.0", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4", diff --git a/src/components/Badge.tsx b/src/components/Badge.tsx index 68260a97..5990abb7 100644 --- a/src/components/Badge.tsx +++ b/src/components/Badge.tsx @@ -23,24 +23,23 @@ interface BadgeProps extends React.HTMLAttributes { */ export const Badge = styled.span` display: inline-flex; - align-items: center; gap: ${({ theme }) => theme.spacing.xs}; + align-items: center; padding: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.sm}`}; - - border-radius: ${({ $shape = BadgeShape.Pill, theme }) => - $shape === BadgeShape.Rounded ? theme.radius.md : theme.radius.full}; border: 1px solid ${({ $variant = ThemeVariant.Primary, theme }) => getVariantColors(theme, $variant).border}; + border-radius: ${({ $shape = BadgeShape.Pill, theme }) => + $shape === BadgeShape.Rounded ? theme.radius.md : theme.radius.full}; font: ${({ theme }) => theme.typography.small.font}; line-height: ${({ theme }) => theme.fonts.lineHeight.mini}; + color: ${({ $variant = ThemeVariant.Primary, theme }) => + getVariantColors(theme, $variant).text}; background: ${({ $variant = ThemeVariant.Primary, theme }) => getVariantColors(theme, $variant).bg}; - color: ${({ $variant = ThemeVariant.Primary, theme }) => - getVariantColors(theme, $variant).text}; ${({ $isClickable, theme }) => $isClickable diff --git a/src/components/CodeBlock.tsx b/src/components/CodeBlock.tsx index b707de62..b555d85b 100644 --- a/src/components/CodeBlock.tsx +++ b/src/components/CodeBlock.tsx @@ -11,6 +11,7 @@ const CodeContainer = styled.div` const Pre = styled.pre<{ $maxHeight?: string; $copyable?: boolean }>` counter-reset: line; + overflow-y: auto; max-height: ${({ $maxHeight = "none" }) => $maxHeight}; @@ -30,8 +31,8 @@ const Pre = styled.pre<{ $maxHeight?: string; $copyable?: boolean }>` const Line = styled.span<{ $numbered: boolean }>` display: block; padding-inline: ${({ theme }) => theme.spacing.md}; - white-space: pre-wrap; overflow-wrap: anywhere; + white-space: pre-wrap; ${({ $numbered, theme }) => $numbered && @@ -43,10 +44,12 @@ const Line = styled.span<{ $numbered: boolean }>` &::before { content: counter(line); + user-select: none; + padding-right: ${theme.spacing.sm}; + color: ${theme.colors.text.tertiary}; text-align: right; - user-select: none; } `} `; diff --git a/src/components/Containers.tsx b/src/components/Containers.tsx index c68a21e6..48f834e6 100644 --- a/src/components/Containers.tsx +++ b/src/components/Containers.tsx @@ -17,8 +17,8 @@ export interface PageContainerProps extends React.HTMLAttributes export const PageContainer = styled.div` display: flex; flex-direction: column; - justify-content: center; align-items: center; + justify-content: center; min-height: 100vh; @@ -38,6 +38,7 @@ export const CenteredCardContent = styled.div` display: flex; align-items: center; justify-content: center; + height: 100%; min-height: 12rem; `; diff --git a/src/components/Details.tsx b/src/components/Details.tsx index aacdbfc1..2661e3a3 100644 --- a/src/components/Details.tsx +++ b/src/components/Details.tsx @@ -1,13 +1,14 @@ import styled from "styled-components"; export const DetailsGrid = styled.div` - width: 100%; display: grid; /* minmax(0, ...) stops long unbreakable values (IDs, commands) from widening a track and pushing content out of the grid */ grid-template-columns: repeat(2, minmax(0, 1fr)); - align-content: start; gap: ${({ theme }) => theme.spacing.lg}; + align-content: start; + + width: 100%; @media (min-width: 1600px) { padding-right: ${({ theme }) => theme.spacing.lg}; @@ -19,7 +20,9 @@ export const DetailsItem = styled.div` flex-direction: column; gap: ${({ theme }) => theme.spacing.sm}; align-items: flex-start; + min-width: 0; + overflow-wrap: anywhere; `; diff --git a/src/components/FileDrop.tsx b/src/components/FileDrop.tsx index fa7f2d4f..209d06fb 100644 --- a/src/components/FileDrop.tsx +++ b/src/components/FileDrop.tsx @@ -7,6 +7,16 @@ const DropZone = styled.div<{ $isDragActive: boolean; $hasError: boolean; }>` + cursor: pointer; + + display: flex; + flex-direction: column; + gap: ${({ theme }) => theme.spacing.md}; + align-items: center; + justify-content: center; + + min-height: 12rem; + margin-bottom: ${({ theme }) => theme.spacing.lg}; border: 2px dashed ${({ theme, $isDragActive, $hasError }) => $hasError @@ -16,16 +26,7 @@ const DropZone = styled.div<{ : theme.colors.border.medium}; border-radius: ${({ theme }) => theme.radius.md}; - gap: ${({ theme }) => theme.spacing.md}; - margin-bottom: ${({ theme }) => theme.spacing.lg}; - text-align: center; - cursor: pointer; - min-height: 12rem; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; background-color: ${({ theme, $isDragActive }) => $isDragActive ? theme.colors.info.bg : theme.colors.background.secondary}; @@ -39,10 +40,9 @@ const DropZone = styled.div<{ /* Disabled state comes from the hidden file input right before the label. */ input:disabled + label & { - opacity: ${({ theme }) => theme.interactions.disabledOpacity}; cursor: not-allowed; - border-color: ${({ theme }) => theme.colors.border.medium}; + opacity: ${({ theme }) => theme.interactions.disabledOpacity}; background-color: ${({ theme }) => theme.colors.background.secondary}; } `; @@ -58,13 +58,14 @@ const DropZoneHint = styled.span` `; const FileName = styled.div` - font: ${({ theme }) => theme.typography.bodyMedium.font}; - color: ${({ theme }) => theme.colors.text.primary}; - - margin-top: ${({ theme }) => theme.spacing.md}; display: flex; - align-items: center; gap: ${({ theme }) => theme.spacing.sm}; + align-items: center; + + margin-top: ${({ theme }) => theme.spacing.md}; + + font: ${({ theme }) => theme.typography.bodyMedium.font}; + color: ${({ theme }) => theme.colors.text.primary}; `; export interface FileDropProps extends React.HTMLAttributes { diff --git a/src/components/Form.tsx b/src/components/Form.tsx index ecb85cdc..9ba7f856 100644 --- a/src/components/Form.tsx +++ b/src/components/Form.tsx @@ -17,7 +17,6 @@ interface ControlSizeProps { */ export const Input = styled.input` width: 100%; - border: 1px solid ${({ theme }) => theme.colors.border.medium}; border-radius: ${({ theme }) => theme.radius.md}; @@ -33,28 +32,29 @@ export const Input = styled.input` font-size: ${({ $size = ThemeSize.Medium, theme }) => getControlSize(theme, $size).fontSize}; color: ${({ theme }) => theme.colors.text.primary}; + background: ${({ theme }) => theme.colors.background.primary}; transition: border-color ${({ theme }) => theme.transitions.base}; + &::placeholder { + color: ${({ theme }) => theme.colors.text.placeholder}; + } + &:hover { border-color: ${({ theme }) => theme.colors.primary.hover}; } &:focus { - outline: none; border-color: ${({ theme }) => theme.colors.primary.main}; + outline: none; box-shadow: 0 0 8px 0px ${({ theme }) => theme.colors.primary.main}20, 0 0 12px 0px ${({ theme }) => theme.colors.primary.main}10; } - &::placeholder { - color: ${({ theme }) => theme.colors.text.placeholder}; - } - &:disabled { - opacity: 0.5; cursor: not-allowed; + opacity: 0.5; background: ${({ theme }) => theme.colors.background.secondary}; } `; @@ -65,9 +65,6 @@ export const Input = styled.input` */ const StyledSelect = styled.select` width: 100%; - appearance: none; - -webkit-appearance: none; - border: 1px solid ${({ theme }) => theme.colors.border.medium}; border-radius: ${({ theme }) => theme.radius.md}; @@ -83,6 +80,9 @@ const StyledSelect = styled.select` font-size: ${({ $size = ThemeSize.Medium, theme }) => getControlSize(theme, $size).fontSize}; color: ${({ theme }) => theme.colors.text.primary}; + + -webkit-appearance: none; + appearance: none; background-color: ${({ theme }) => theme.colors.background.primary}; background-image: ${({ theme }) => { const color = theme.colors.text.tertiary.replace("#", "%23"); @@ -97,26 +97,28 @@ const StyledSelect = styled.select` border-color: ${({ theme }) => theme.colors.primary.hover}; } &:focus { - outline: none; border-color: ${({ theme }) => theme.colors.primary.main}; + outline: none; box-shadow: 0 0 8px 0px ${({ theme }) => theme.colors.primary.main}20, 0 0 12px 0px ${({ theme }) => theme.colors.primary.main}10; } &:disabled { - opacity: 0.5; cursor: not-allowed; + opacity: 0.5; background-color: ${({ theme }) => theme.colors.background.secondary}; } & > option { - font: ${({ theme }) => theme.typography.body.font}; padding: ${({ theme }) => `${theme.spacing.md}`}; + border-radius: ${({ theme }) => theme.radius.md}; + + font: ${({ theme }) => theme.typography.body.font}; line-height: 1.75; color: ${({ theme }) => theme.colors.text.primary}; + background: ${({ theme }) => theme.colors.background.primary}; - border-radius: ${({ theme }) => theme.radius.md}; } & > option:hover { @@ -125,14 +127,14 @@ const StyledSelect = styled.select` `; const StyledOption = styled.option` - font: ${({ theme }) => theme.typography.body.font}; - padding: ${({ theme }) => `${theme.spacing.md}`}; - line-height: 1.75; + border-radius: ${({ theme }) => theme.radius.md}; + font: ${({ theme }) => theme.typography.body.font}; + line-height: 1.75; color: ${({ theme }) => theme.colors.text.primary}; + background: ${({ theme }) => theme.colors.background.primary}; - border-radius: ${({ theme }) => theme.radius.md}; `; export interface SelectProps @@ -199,7 +201,6 @@ export const Select: React.FC = ({ export const FormGroup = styled.div` display: flex; flex-direction: column; - gap: ${({ theme }) => theme.spacing.sm}; margin-bottom: ${({ theme }) => theme.spacing.lg}; diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index cd443178..0c9547b0 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -26,12 +26,13 @@ const IconWrapper = styled.span<{ flex-shrink: 0; align-items: center; justify-content: center; - vertical-align: middle; - height: ${({ $size, $round }) => - $round ? `${$size * 1.5}px` : `${$size}px`}; width: ${({ $size, $round }) => $round ? `${$size * 1.5}px` : `${$size}px`}; + height: ${({ $size, $round }) => + $round ? `${$size * 1.5}px` : `${$size}px`}; + + vertical-align: middle; ${({ $round }) => $round ? "border-radius: 50%;" : ""} diff --git a/src/components/Link.tsx b/src/components/Link.tsx index c4cd2ef4..eee88fcb 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -4,11 +4,11 @@ import styled from "styled-components"; const StyledLink = styled.a<{ $subtle?: boolean }>` display: inline-flex; - align-items: center; gap: ${({ theme }) => theme.spacing.sm}; + align-items: center; + font: ${({ theme }) => theme.typography.body.font}; text-decoration: none; - ${({ $subtle, theme }) => $subtle ? ` @@ -22,8 +22,6 @@ const StyledLink = styled.a<{ $subtle?: boolean }>` transition: all ${({ theme }) => theme.transitions.base}; - font: ${({ theme }) => theme.typography.body.font}; - svg { flex-shrink: 0; } diff --git a/src/components/Modal.tsx b/src/components/Modal.tsx index 62a6ed95..a2206ad5 100644 --- a/src/components/Modal.tsx +++ b/src/components/Modal.tsx @@ -5,37 +5,37 @@ import { IconX } from "@tabler/icons-react"; import { Icon } from "./Icon"; const Overlay = styled.dialog` + overflow: hidden; align-items: center; justify-content: center; - overflow: hidden; width: 100%; max-width: none; height: 100%; max-height: none; - border: 0; - background: transparent; - &[open] { - display: flex; - } + background: transparent; &::backdrop { background: ${({ theme }) => theme.colors.background.overlay}; backdrop-filter: blur(${({ theme }) => theme.effects.backdropBlur}); } + + &[open] { + display: flex; + } `; const Dialog = styled.div` + overflow: hidden; display: flex; flex-direction: column; - overflow: hidden; width: min(640px, 90vw); max-height: 90vh; - border-radius: ${({ theme }) => theme.radius.lg}; + background: ${({ theme }) => theme.colors.background.primary}; box-shadow: ${({ theme }) => theme.shadows.lg}; `; @@ -56,9 +56,9 @@ const Header = styled.div` padding: ${({ theme }) => `${theme.spacing.md} ${theme.spacing.lg}`}; - background-color: ${({ theme }) => theme.colors.info.solidBg}; - color: ${({ theme }) => theme.colors.info.solidText}; + + background-color: ${({ theme }) => theme.colors.info.solidBg}; `; /** @@ -81,11 +81,9 @@ const Title = styled.h2` */ const Body = styled.div` overflow: auto; - padding: ${({ theme }) => theme.spacing.lg}; - - color: ${({ theme }) => theme.colors.text.primary}; font: ${({ theme }) => theme.typography.body.font}; + color: ${({ theme }) => theme.colors.text.primary}; `; /** @@ -100,11 +98,10 @@ const Body = styled.div` */ const Footer = styled.div` display: flex; - justify-content: flex-end; gap: ${({ theme }) => theme.spacing.sm}; + justify-content: flex-end; padding: ${({ theme }) => `${theme.spacing.md} ${theme.spacing.lg}`}; - border-top: 1px solid ${({ theme }) => theme.colors.border.light}; `; @@ -117,7 +114,6 @@ const Footer = styled.div` const CloseButton = styled.button` display: flex; align-items: center; - color: ${({ theme }) => theme.colors.primary.text}; `; diff --git a/src/components/NotificationCard.tsx b/src/components/NotificationCard.tsx index d0d7d943..64c5bdbf 100644 --- a/src/components/NotificationCard.tsx +++ b/src/components/NotificationCard.tsx @@ -35,16 +35,15 @@ export const NotificationCard = styled.div` gap: ${({ theme }) => theme.spacing.xs}; padding: ${({ theme }) => `${theme.spacing.md} ${theme.spacing.lg}`}; - - border-radius: ${({ theme }) => theme.radius.md}; border: 1px solid ${({ $variant = ThemeVariant.Primary, theme }) => getVariantColors(theme, $variant).border}; + border-radius: ${({ theme }) => theme.radius.md}; - background: ${({ $variant = ThemeVariant.Primary, theme }) => - getVariantColors(theme, $variant).bg}; + font: ${({ theme }) => theme.typography.body.font}; color: ${({ $variant = ThemeVariant.Primary, theme }) => getVariantColors(theme, $variant).text}; - font: ${({ theme }) => theme.typography.body.font}; + background: ${({ $variant = ThemeVariant.Primary, theme }) => + getVariantColors(theme, $variant).bg}; `; diff --git a/src/components/RadioGroup.tsx b/src/components/RadioGroup.tsx index acefa9af..fddbea2f 100644 --- a/src/components/RadioGroup.tsx +++ b/src/components/RadioGroup.tsx @@ -7,30 +7,34 @@ const RadioGroupContainer = styled.div` `; const RadioLabel = styled.label` + cursor: pointer; + display: flex; - align-items: center; gap: ${({ theme }) => theme.spacing.xs}; - - cursor: pointer; + align-items: center; font: ${({ theme }) => theme.typography.body.font}; color: ${({ theme }) => theme.colors.text.primary}; &:has(input:disabled) { - opacity: ${({ theme }) => theme.interactions.disabledOpacity}; cursor: not-allowed; + opacity: ${({ theme }) => theme.interactions.disabledOpacity}; } `; const RadioInput = styled.input` - appearance: none; + cursor: pointer; + + position: relative; + width: 18px; height: 18px; border: 2px solid ${({ theme }) => theme.colors.border.medium}; border-radius: 50%; + + appearance: none; outline: none; - cursor: pointer; - position: relative; + transition: all ${({ theme }) => theme.transitions.base}; &:hover:not(:disabled) { @@ -44,13 +48,16 @@ const RadioInput = styled.input` &:checked::after { content: ""; + position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); + width: 6px; height: 6px; border-radius: 50%; + background: ${({ theme }) => theme.colors.background.primary}; } diff --git a/src/components/Spacer.tsx b/src/components/Spacer.tsx index 95fe482a..dd5f74ee 100644 --- a/src/components/Spacer.tsx +++ b/src/components/Spacer.tsx @@ -28,9 +28,7 @@ export const Spacer = styled.div` flex-direction: ${({ $direction }) => $direction === "vertical" ? "column" : "row"}; flex-wrap: ${({ $wrap = false }) => ($wrap ? "wrap" : "nowrap")}; - gap: ${({ $gap = "md", theme }) => theme.spacing[$gap]}; - align-items: ${({ $align = "center" }) => { switch ($align) { case "start": @@ -45,7 +43,6 @@ export const Spacer = styled.div` return "center"; } }}; - justify-content: ${({ $justify = "center" }) => { switch ($justify) { case "start": diff --git a/src/components/Spinner.tsx b/src/components/Spinner.tsx index 2e3d3ec2..62a38b25 100644 --- a/src/components/Spinner.tsx +++ b/src/components/Spinner.tsx @@ -33,13 +33,12 @@ const SpinnerContainer = styled.div<{ $variant: ThemeVariant; $px: number }>` width: ${({ $px }) => `${$px}px`}; height: ${({ $px }) => `${$px}px`}; - + border: 1px solid + ${({ $variant, theme }) => getVariantColors(theme, $variant).solidBg}; border-radius: 50%; background-color: ${({ $variant, theme }) => getVariantColors(theme, $variant).solidBg}; - border: 1px solid - ${({ $variant, theme }) => getVariantColors(theme, $variant).solidBg}; `; export interface SpinnerProps extends React.HTMLAttributes { diff --git a/src/components/Table.tsx b/src/components/Table.tsx index d8aa5dac..1fd51b19 100644 --- a/src/components/Table.tsx +++ b/src/components/Table.tsx @@ -27,9 +27,10 @@ import styled from "styled-components"; * */ export const Table = styled.table` - width: 100%; - border-collapse: separate; border-spacing: 0 ${({ theme }) => theme.spacing.xs}; + border-collapse: separate; + + width: 100%; font: ${({ theme }) => theme.typography.body.font}; color: ${({ theme }) => theme.colors.table.rowText}; @@ -49,9 +50,9 @@ export const TableHead = styled.thead` text-align: left; & > tr { - background: transparent; border-top: 1px solid ${({ theme }) => theme.colors.table.headerBg}; border-bottom: 1px solid ${({ theme }) => theme.colors.table.headerBg}; + background: transparent; } `; @@ -70,16 +71,15 @@ export interface HeaderCellProps extends React.ThHTMLAttributesCentered */ export const HeaderCell = styled.th` - background: ${({ theme }) => theme.colors.table.headerBg}; - + width: ${({ $width }) => $width || "auto"}; padding: ${({ theme }) => `${theme.spacing.sm} ${theme.spacing.md}`}; font: ${({ theme }) => theme.typography.bodyMedium.font}; color: ${({ theme }) => theme.colors.table.headerText}; - - width: ${({ $width }) => $width || "auto"}; text-align: ${({ $alignContent }) => $alignContent || "left"}; + background: ${({ theme }) => theme.colors.table.headerBg}; + &:first-child { border-top-left-radius: ${({ theme }) => theme.radius.md}; border-bottom-left-radius: ${({ theme }) => theme.radius.md}; @@ -114,6 +114,11 @@ export interface RowProps extends React.HTMLAttributes { * alert('clicked')}>Data */ export const Row = styled.tr` + border-radius: ${({ theme }) => theme.radius.md}; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06); + transition: + box-shadow ${({ theme }) => theme.transitions.base}, + background ${({ theme }) => theme.transitions.base}; &:nth-child(even) { background-color: ${({ theme }) => theme.colors.table.rowEvenBg}; } @@ -121,15 +126,9 @@ export const Row = styled.tr` background-color: ${({ theme }) => theme.colors.table.rowOddBg}; } - border-radius: ${({ theme }) => theme.radius.md}; - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06); - transition: - box-shadow ${({ theme }) => theme.transitions.base}, - background ${({ theme }) => theme.transitions.base}; - &:hover { - background: ${({ theme }) => `${theme.colors.primary.main}14`}; cursor: ${({ $isClickable }) => ($isClickable ? "pointer" : "default")}; + background: ${({ theme }) => `${theme.colors.primary.main}14`}; } `; @@ -146,11 +145,11 @@ export interface CellProps extends React.TdHTMLAttributes */ export const Cell = styled.td` padding: ${({ theme }) => `${theme.spacing.sm} ${theme.spacing.md}`}; - border-top: 1px solid ${({ theme }) => theme.colors.table.border}; border-bottom: 1px solid ${({ theme }) => theme.colors.table.border}; - text-align: ${({ $alignContent }) => $alignContent || "left"}; + color: ${({ theme }) => theme.colors.table.rowText}; + text-align: ${({ $alignContent }) => $alignContent || "left"}; &:first-child { border-left: 1px solid ${({ theme }) => theme.colors.table.border}; @@ -171,8 +170,7 @@ export const Cell = styled.td` */ export const EmptyState = styled.div` padding: ${({ theme }) => theme.spacing.lg}; - - text-align: center; - color: ${({ theme }) => theme.colors.text.secondary}; font: ${({ theme }) => theme.typography.body.font}; + color: ${({ theme }) => theme.colors.text.secondary}; + text-align: center; `; diff --git a/src/components/Typography.tsx b/src/components/Typography.tsx index 7dfb5ed9..16bd0e5f 100644 --- a/src/components/Typography.tsx +++ b/src/components/Typography.tsx @@ -39,9 +39,9 @@ const ExpandableTextContainer = styled.div` `; const ExpandToggle = styled.button` - color: ${({ theme }) => theme.colors.primary.main}; - font: ${({ theme }) => theme.typography.small.font}; margin-top: ${({ theme }) => theme.spacing.xs}; + font: ${({ theme }) => theme.typography.small.font}; + color: ${({ theme }) => theme.colors.primary.main}; text-decoration: underline; &:hover { @@ -135,7 +135,7 @@ export interface ImageContainerProps extends React.ImgHTMLAttributes` display: block; + aspect-ratio: auto; width: ${({ $width }) => $width || "15rem"}; height: auto; - aspect-ratio: auto; `; diff --git a/src/components/cards/Card.tsx b/src/components/cards/Card.tsx index 5d2a28a8..260f314f 100644 --- a/src/components/cards/Card.tsx +++ b/src/components/cards/Card.tsx @@ -12,12 +12,10 @@ import styled from "styled-components"; */ export const CardContainer = styled.div` width: 100%; - - background: ${({ theme }) => theme.colors.background.primary}; - border: 1px solid ${({ theme }) => theme.colors.border.medium}; border-radius: ${({ theme }) => theme.radius.md}; + background: ${({ theme }) => theme.colors.background.primary}; box-shadow: ${({ theme }) => theme.shadows.sm}; `; @@ -37,16 +35,15 @@ export interface CardHeaderProps extends React.HTMLAttributes { * */ export const CardHeader = styled.div` + cursor: ${({ $isClickable }) => ($isClickable ? "pointer" : "default")}; + display: flex; + gap: ${({ theme }) => theme.spacing.lg}; align-items: center; justify-content: space-between; - gap: ${({ theme }) => theme.spacing.lg}; padding: ${({ theme }) => theme.spacing.lg}; - border-bottom: 1px solid ${({ theme }) => theme.colors.border.light}; - - cursor: ${({ $isClickable }) => ($isClickable ? "pointer" : "default")}; `; /** * Card title component typically used within CardHeader for consistent heading styling. @@ -77,11 +74,10 @@ export const CardBody = styled.div` */ export const CardFooter = styled.div` display: flex; + gap: ${({ theme }) => theme.spacing.sm}; align-items: center; justify-content: flex-end; - gap: ${({ theme }) => theme.spacing.sm}; padding: ${({ theme }) => theme.spacing.md}; - border-top: 1px solid ${({ theme }) => theme.colors.border.light}; `; diff --git a/src/components/cards/ExpandableCard.tsx b/src/components/cards/ExpandableCard.tsx index 420414c9..04d6ece7 100644 --- a/src/components/cards/ExpandableCard.tsx +++ b/src/components/cards/ExpandableCard.tsx @@ -12,12 +12,13 @@ const ToggleButton = styled.span` `; const ToggleIconWrapper = styled.span<{ $expanded: boolean }>` + transform: rotate(${({ $expanded }) => ($expanded ? "180deg" : "0deg")}); + display: inline-flex; align-items: center; justify-content: center; transition: transform ${({ theme }) => theme.transitions.base}; - transform: rotate(${({ $expanded }) => ($expanded ? "180deg" : "0deg")}); `; export interface ExpandableCardProps extends React.HTMLAttributes { diff --git a/src/pages/LoginPage.tsx b/src/pages/LoginPage.tsx index 4fd19925..fa27ee20 100644 --- a/src/pages/LoginPage.tsx +++ b/src/pages/LoginPage.tsx @@ -210,11 +210,12 @@ export const LoginPage: React.FC = () => { ); }; const LoginCard = styled.div` - width: 100%; - max-width: 28rem; overflow: hidden; + width: 100%; + max-width: 28rem; border-radius: ${({ theme }) => theme.radius.lg}; + background: ${({ theme }) => theme.colors.background.primary}; box-shadow: ${({ theme }) => theme.shadows.base}; `; @@ -222,14 +223,13 @@ const LoginCard = styled.div` const LoginCardHeader = styled.div` padding: ${({ theme }) => theme.spacing["3xl"]} ${({ theme }) => theme.spacing.xl}; - border-bottom: 1px solid ${({ theme }) => theme.colors.border.light}; `; const LoginCardBody = styled.div` display: grid; - align-content: start; gap: ${({ theme }) => theme.spacing.xl}; + align-content: start; min-height: 10rem; padding: ${({ theme }) => theme.spacing.xl}; @@ -243,7 +243,6 @@ const ProviderPrompt = styled(Text)` const ProviderOptions = styled.div` display: grid; align-items: center; - min-height: 2.125rem; `; @@ -261,28 +260,27 @@ const ProviderButton = styled(Button)` } .provider-arrow { - opacity: 0; transform: translateX(-${({ theme }) => theme.spacing.xs}); - + opacity: 0; transition: opacity ${({ theme }) => theme.transitions.base}, transform ${({ theme }) => theme.transitions.base}; } &:is(:hover, :focus-visible):not([aria-disabled="true"]) .provider-arrow { - opacity: 1; transform: translateX(0); + opacity: 1; } &[aria-disabled="true"] { - opacity: ${({ theme }) => theme.interactions.disabledOpacity}; pointer-events: none; + opacity: ${({ theme }) => theme.interactions.disabledOpacity}; } @media (prefers-reduced-motion: reduce) { .provider-arrow { - transition: none; transform: none; + transition: none; } } `; @@ -290,17 +288,20 @@ const ProviderButton = styled(Button)` const ProviderIdentity = styled.span` display: inline-flex; grid-column: 2; + gap: inherit; align-items: center; justify-content: center; - gap: inherit; `; const VisuallyHidden = styled.span` position: absolute; + + overflow: hidden; + width: 1px; height: 1px; - overflow: hidden; - clip-path: inset(50%); white-space: nowrap; + + clip-path: inset(50%); `; diff --git a/src/pages/NotFoundPage.tsx b/src/pages/NotFoundPage.tsx index 8792845b..4cf75892 100644 --- a/src/pages/NotFoundPage.tsx +++ b/src/pages/NotFoundPage.tsx @@ -48,55 +48,57 @@ const ErrorContainer = styled.div` /* Layout */ display: flex; flex-direction: column; - align-items: center; - justify-content: center; /* Spacing */ gap: ${({ theme }) => theme.spacing["2xl"]}; - padding: ${({ theme }) => theme.spacing["3xl"]}; + align-items: center; + justify-content: center; - /* Colors & Background */ - background-color: ${({ theme }) => theme.colors.background.primary}; + /* Sizing */ + width: 32rem; + padding: ${({ theme }) => theme.spacing["3xl"]}; /* Shape & Visuals */ border-radius: ${({ theme }) => theme.radius.lg}; - box-shadow: ${({ theme }) => theme.shadows.base}; - /* Sizing */ - width: 32rem; text-align: center; + + /* Colors & Background */ + background-color: ${({ theme }) => theme.colors.background.primary}; + box-shadow: ${({ theme }) => theme.shadows.base}; `; const ErrorCode = styled.h1` /* Typography */ font-size: 5rem; font-weight: ${({ theme }) => theme.fonts.weight.bold}; - color: ${({ theme }) => theme.colors.primary.main}; line-height: 1; + color: ${({ theme }) => theme.colors.primary.main}; `; const ErrorTitle = styled.h2` + font: ${({ theme }) => theme.typography.h2.font}; /* Typography */ color: ${({ theme }) => theme.colors.text.primary}; - font: ${({ theme }) => theme.typography.h2.font}; `; const ErrorDescription = styled.p` - /* Typography & Layout */ - color: ${({ theme }) => theme.colors.text.secondary}; max-width: 400px; font: ${({ theme }) => theme.typography.body.font}; + /* Typography & Layout */ + color: ${({ theme }) => theme.colors.text.secondary}; `; const ButtonGroup = styled.div` /* Layout */ display: flex; + flex-wrap: wrap; /* Spacing */ gap: ${({ theme }) => theme.spacing.lg}; - margin-top: ${({ theme }) => theme.spacing.lg}; /* Alignment */ justify-content: center; - flex-wrap: wrap; + + margin-top: ${({ theme }) => theme.spacing.lg}; `; diff --git a/src/pages/PlaceholderPage.tsx b/src/pages/PlaceholderPage.tsx index 99a591e5..acd7f7ae 100644 --- a/src/pages/PlaceholderPage.tsx +++ b/src/pages/PlaceholderPage.tsx @@ -7,9 +7,9 @@ interface PlaceholderPageProps { const PlaceholderContainer = styled.div` padding: ${({ theme }) => theme.spacing.xl}; - background: ${({ theme }) => theme.colors.background.primary}; - border-radius: ${({ theme }) => theme.radius.md}; border: 1px solid ${({ theme }) => theme.colors.border.medium}; + border-radius: ${({ theme }) => theme.radius.md}; + background: ${({ theme }) => theme.colors.background.primary}; `; const PlaceholderText = styled(Text)` diff --git a/src/pages/main-page/Credits.styles.tsx b/src/pages/main-page/Credits.styles.tsx index f50156e7..00e138d7 100644 --- a/src/pages/main-page/Credits.styles.tsx +++ b/src/pages/main-page/Credits.styles.tsx @@ -11,13 +11,13 @@ const rotate = keyframes` export const PixelHeart = styled.span` display: inline-block; + margin: 0 4px; font-size: 16px; animation: ${rotate} 3s linear infinite; - margin: 0 4px; `; export const MadeWithLove = styled.div` display: flex; - align-items: center; gap: 4px; + align-items: center; `; diff --git a/src/pages/main-page/MainPage.styles.tsx b/src/pages/main-page/MainPage.styles.tsx index cfe361fc..35abdddf 100644 --- a/src/pages/main-page/MainPage.styles.tsx +++ b/src/pages/main-page/MainPage.styles.tsx @@ -3,16 +3,14 @@ import { Spacer } from "@/components"; // Stays last in the header, after the mobile-only reordering below. export const AccountMenu = styled.div` - order: 3; flex: 0 0 2.5rem; - + order: 3; height: 2.5rem; > button { width: 100%; height: 100%; padding: 0; - border-radius: ${({ theme }) => theme.radius.full}; } `; @@ -28,39 +26,37 @@ export const AccountAvatar = styled.span` width: 100%; height: 100%; - border-radius: ${({ theme }) => theme.radius.full}; - background: ${({ theme }) => theme.colors.info.solidBg}; - color: ${({ theme }) => theme.colors.info.solidText}; font: ${({ theme }) => theme.typography.bodyMedium.font}; + color: ${({ theme }) => theme.colors.info.solidText}; + + background: ${({ theme }) => theme.colors.info.solidBg}; `; export const MainWrapper = styled.div` + overflow: hidden; display: flex; - height: 100vh; - overflow: hidden; `; export const ContentArea = styled.div` + overflow: hidden; display: flex; - flex-direction: column; flex: 1; - - overflow: hidden; + flex-direction: column; `; export const MainHeader = styled.header` display: flex; + flex-shrink: 0; align-items: center; justify-content: space-between; - flex-shrink: 0; min-height: 4rem; padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.lg}; - border-bottom: 1px solid ${({ theme }) => theme.colors.border.light}; + background-color: ${({ theme }) => theme.colors.background.primary}; @media (max-width: 768px) { @@ -77,19 +73,19 @@ export const MainHeader = styled.header` `; export const MainContent = styled.main` + scrollbar-gutter: stable; + + overflow-y: auto; flex: 1; min-width: 550px; padding: ${({ theme }) => theme.spacing.lg}; - overflow-y: auto; - scrollbar-gutter: stable; background-color: ${({ theme }) => theme.colors.secondary.bg}; `; export const MobileMenuButton = styled.button` display: none; - color: ${({ theme }) => theme.colors.text.primary}; @media (max-width: 768px) { @@ -103,10 +99,11 @@ export const Overlay = styled.div<{ $isOpen: boolean }>` display: none; @media (max-width: 768px) { - display: ${({ $isOpen }) => ($isOpen ? "block" : "none")}; position: fixed; - inset: 0; z-index: ${({ theme }) => theme.zIndex.overlay}; + inset: 0; + + display: ${({ $isOpen }) => ($isOpen ? "block" : "none")}; background-color: ${({ theme }) => theme.colors.background.overlay}; backdrop-filter: blur(${({ theme }) => theme.effects.backdropBlur}); diff --git a/src/pages/main-page/StatusIndicator.tsx b/src/pages/main-page/StatusIndicator.tsx index 97574938..180ac88f 100644 --- a/src/pages/main-page/StatusIndicator.tsx +++ b/src/pages/main-page/StatusIndicator.tsx @@ -52,6 +52,7 @@ const StatusDot = styled.div<{ $isReconnecting: boolean; }>` position: relative; + width: 10px; height: 10px; border-radius: ${({ theme }) => theme.radius.full}; @@ -63,10 +64,9 @@ const StatusDot = styled.div<{ ? getVariantColors(theme, ThemeVariant.Warning).solidBg : getVariantColors(theme, ThemeVariant.Error).solidBg}; - animation: ${({ $isOnline, $isReconnecting }) => - $isOnline || $isReconnecting - ? css` - ${pulse} 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; - ` - : "none"}; + ${({ $isOnline, $isReconnecting }) => + ($isOnline || $isReconnecting) && + css` + animation: ${pulse} 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; + `} `; diff --git a/src/pages/main-page/monitoring-page/ExecutionDetailPage.styles.tsx b/src/pages/main-page/monitoring-page/ExecutionDetailPage.styles.tsx index a378c0d6..12ae3cde 100644 --- a/src/pages/main-page/monitoring-page/ExecutionDetailPage.styles.tsx +++ b/src/pages/main-page/monitoring-page/ExecutionDetailPage.styles.tsx @@ -10,14 +10,15 @@ export const ResponsiveLayout = styled.div` /* minmax(0, ...) keeps the 1 : 1.5 split even when the right column holds wide content such as a long command line */ grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); - align-items: stretch; gap: 0; + align-items: stretch; } `; export const TabsSection = styled.div` display: flex; flex-direction: column; + min-width: 0; padding-top: ${({ theme }) => theme.spacing.lg}; border-top: 1px solid ${({ theme }) => theme.colors.border.light}; @@ -37,10 +38,11 @@ export const TabContent = styled.div` `; export const NoStepsMessage = styled.div` + overflow: hidden; display: flex; justify-content: center; + padding-top: ${({ theme }) => theme.spacing.lg}; - overflow: hidden; border-top: 1px solid ${({ theme }) => theme.colors.border.light}; @media (min-width: 1600px) { diff --git a/src/pages/main-page/monitoring-page/details-tab-view/DetailsTabView.styles.tsx b/src/pages/main-page/monitoring-page/details-tab-view/DetailsTabView.styles.tsx index 1fdce9e2..2c7f3e73 100644 --- a/src/pages/main-page/monitoring-page/details-tab-view/DetailsTabView.styles.tsx +++ b/src/pages/main-page/monitoring-page/details-tab-view/DetailsTabView.styles.tsx @@ -9,32 +9,37 @@ export const DetailedContainer = styled.div` export const DetailedItemSummary = styled.div` display: flex; gap: ${({ theme }) => theme.spacing.md}; + margin-top: ${({ theme }) => theme.spacing.sm}; + font: ${({ theme }) => theme.typography.small.font}; color: ${({ theme }) => theme.colors.text.secondary}; `; export const VariableListContainer = styled.div` - width: 100%; display: flex; flex-direction: column; gap: ${({ theme }) => theme.spacing.sm}; + width: 100%; `; export const VariableItemRow = styled.div` - width: 100%; display: flex; gap: ${({ theme }) => theme.spacing.md}; + align-items: center; + + width: 100%; padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md}; border: 1px solid ${({ theme }) => theme.colors.border.light}; border-radius: ${({ theme }) => theme.radius.md}; + background: ${({ theme }) => theme.colors.background.secondary}; - align-items: center; `; export const VariableCellValue = styled.div` width: 100%; min-width: 0; + font: ${({ theme }) => theme.typography.body.font}; color: ${({ theme }) => theme.colors.text.primary}; word-break: break-word; @@ -42,7 +47,7 @@ export const VariableCellValue = styled.div` export const Placeholder = styled.div` padding: ${({ theme }) => theme.spacing.lg}; - text-align: center; - color: ${({ theme }) => theme.colors.text.secondary}; font: ${({ theme }) => theme.typography.body.font}; + color: ${({ theme }) => theme.colors.text.secondary}; + text-align: center; `; diff --git a/src/pages/main-page/monitoring-page/timeline-tab-view/ManualActionModal.styles.tsx b/src/pages/main-page/monitoring-page/timeline-tab-view/ManualActionModal.styles.tsx index f78a0ebe..7102059e 100644 --- a/src/pages/main-page/monitoring-page/timeline-tab-view/ManualActionModal.styles.tsx +++ b/src/pages/main-page/monitoring-page/timeline-tab-view/ManualActionModal.styles.tsx @@ -6,15 +6,15 @@ export const StepSummary = styled.div` `; export const StepName = styled.h3` + margin: 0 0 ${({ theme }) => theme.spacing.xs} 0; font: ${({ theme }) => theme.typography.h3.font}; color: ${({ theme }) => theme.colors.text.primary}; - margin: 0 0 ${({ theme }) => theme.spacing.xs} 0; `; export const StepDescription = styled.p` font: ${({ theme }) => theme.typography.body.font}; - color: ${({ theme }) => theme.colors.text.secondary}; line-height: 1.5; + color: ${({ theme }) => theme.colors.text.secondary}; `; export const Section = styled.div` @@ -22,28 +22,30 @@ export const Section = styled.div` `; export const SectionTitle = styled.h4` + margin: 0 0 ${({ theme }) => theme.spacing.md} 0; font: ${({ theme }) => theme.typography.h4.font}; color: ${({ theme }) => theme.colors.text.primary}; - margin: 0 0 ${({ theme }) => theme.spacing.md} 0; `; export const CommandText = styled.div` + padding: ${({ theme }) => theme.spacing.md}; + border-left: 3px solid ${({ theme }) => theme.colors.primary.main}; + border-radius: ${({ theme }) => theme.radius.sm}; + font: ${({ theme }) => theme.typography.body.font}; - color: ${({ theme }) => theme.colors.text.primary}; line-height: 1.5; - white-space: pre-wrap; + color: ${({ theme }) => theme.colors.text.primary}; word-break: break-word; - padding: ${({ theme }) => theme.spacing.md}; + white-space: pre-wrap; + background: ${({ theme }) => theme.colors.background.tertiary}; - border-left: 3px solid ${({ theme }) => theme.colors.primary.main}; - border-radius: ${({ theme }) => theme.radius.sm}; `; export const VariableList = styled.div` display: grid; grid-template-columns: max-content 1fr; - column-gap: ${({ theme }) => theme.spacing.lg}; row-gap: ${({ theme }) => theme.spacing.md}; + column-gap: ${({ theme }) => theme.spacing.lg}; align-items: center; `; @@ -53,9 +55,10 @@ export const VariableRow = styled.div` export const VariableLabel = styled.div` display: flex; - align-items: center; - gap: ${({ theme }) => theme.spacing.xs}; flex-shrink: 0; + gap: ${({ theme }) => theme.spacing.xs}; + align-items: center; + font: ${({ theme }) => theme.typography.body.font}; color: ${({ theme }) => theme.colors.text.primary}; `; @@ -65,21 +68,24 @@ export const VariableName = styled.span` `; export const VariableType = styled.span` - color: ${({ theme }) => theme.colors.text.tertiary}; font-style: italic; + color: ${({ theme }) => theme.colors.text.tertiary}; `; export const InfoIcon = styled(IconInfoCircle)` + cursor: help; + + flex-shrink: 0; + width: 16px; height: 16px; + color: ${({ theme }) => theme.colors.text.tertiary}; - cursor: help; - flex-shrink: 0; `; export const InfoIconWrapper = styled.div` - display: inline-flex; cursor: help; + display: inline-flex; `; export const VariableInputContainer = styled.div` diff --git a/src/pages/main-page/monitoring-page/timeline-tab-view/TimelineTabView.styles.tsx b/src/pages/main-page/monitoring-page/timeline-tab-view/TimelineTabView.styles.tsx index 8f7f92c4..19a092a2 100644 --- a/src/pages/main-page/monitoring-page/timeline-tab-view/TimelineTabView.styles.tsx +++ b/src/pages/main-page/monitoring-page/timeline-tab-view/TimelineTabView.styles.tsx @@ -13,39 +13,44 @@ export const TimelineRow = styled.div<{ $delay?: number }>` grid-template-columns: 1fr auto 1fr; gap: ${({ theme }) => theme.spacing.lg}; align-items: center; + + opacity: 0; + animation: ${fadeInSlide} 0.4s ease-out forwards; animation-delay: ${({ $delay = 0 }) => $delay}s; - opacity: 0; `; export const TimelineCenterLine = styled.div` position: absolute; - left: 50%; top: 0; bottom: 0; + left: 50%; + transform: translateX(-50%); + width: 2px; + background: ${({ theme }) => theme.colors.border.medium}; - transform: translateX(-50%); `; export const TimelineIconContainer = styled.div` position: relative; + z-index: 2; + display: flex; align-items: center; justify-content: center; - z-index: 2; `; export const TimelineLeftCell = styled.div` + position: relative; display: flex; justify-content: flex-end; - position: relative; `; export const TimelineRightCell = styled.div` + position: relative; display: flex; justify-content: flex-start; - position: relative; `; export const TimelineSpacer = styled.div``; @@ -77,17 +82,18 @@ export const ResponseList = styled.div` export const ResponseItem = styled.div` display: flex; - align-items: center; gap: ${({ theme }) => theme.spacing.xs}; + align-items: center; + font: ${({ theme }) => theme.typography.small.font}; color: ${({ theme }) => theme.colors.success.text}; `; export const TimelineHeader = styled.div` display: flex; + gap: ${({ theme }) => theme.spacing.md}; align-items: center; justify-content: space-between; - gap: ${({ theme }) => theme.spacing.md}; `; export const TimelineTitle = styled.h3` @@ -97,9 +103,11 @@ export const TimelineTitle = styled.h3` export const TimelineMetaBadge = styled.div` display: inline-flex; - align-items: center; gap: ${({ theme }) => theme.spacing.sm}; + align-items: center; + border-radius: 0; + font: ${({ theme }) => theme.typography.small.font}; color: ${({ theme }) => theme.colors.text.secondary}; `; diff --git a/src/pages/main-page/playbooks-page/PlaybookCreatePage.styles.tsx b/src/pages/main-page/playbooks-page/PlaybookCreatePage.styles.tsx index ebcba652..b39936e9 100644 --- a/src/pages/main-page/playbooks-page/PlaybookCreatePage.styles.tsx +++ b/src/pages/main-page/playbooks-page/PlaybookCreatePage.styles.tsx @@ -7,20 +7,24 @@ export const MethodSelector = styled.div` `; export const MethodButton = styled.button<{ $active: boolean }>` - flex: 1; display: flex; + flex: 1; + gap: ${({ theme }) => theme.spacing.sm}; align-items: center; justify-content: center; - gap: ${({ theme }) => theme.spacing.sm}; + padding: ${({ theme }) => theme.spacing.md}; - border-radius: ${({ theme }) => theme.radius.md}; border: 2px solid ${({ theme, $active }) => $active ? theme.colors.info.border : theme.colors.border.light}; + border-radius: ${({ theme }) => theme.radius.md}; + + font: ${({ theme }) => theme.typography.bodyMedium.font}; + color: ${({ theme }) => theme.colors.text.primary}; + background-color: ${({ theme, $active }) => $active ? theme.colors.info.bg : theme.colors.background.primary}; - color: ${({ theme }) => theme.colors.text.primary}; - font: ${({ theme }) => theme.typography.bodyMedium.font}; + transition: all ${({ theme }) => theme.transitions.base}; &:hover { @@ -29,7 +33,7 @@ export const MethodButton = styled.button<{ $active: boolean }>` } &:disabled { - opacity: ${({ theme }) => theme.interactions.disabledOpacity}; cursor: not-allowed; + opacity: ${({ theme }) => theme.interactions.disabledOpacity}; } `; diff --git a/src/pages/main-page/playbooks-page/PlaybooksPage.styles.tsx b/src/pages/main-page/playbooks-page/PlaybooksPage.styles.tsx index 74866511..d14e0030 100644 --- a/src/pages/main-page/playbooks-page/PlaybooksPage.styles.tsx +++ b/src/pages/main-page/playbooks-page/PlaybooksPage.styles.tsx @@ -1,21 +1,28 @@ import styled from "styled-components"; export const PlaybookListItem = styled.div` + cursor: pointer; + position: relative; display: flex; - align-items: center; gap: ${({ theme }) => theme.spacing["2xl"]}; + align-items: center; - padding-left: ${({ theme }) => theme.spacing.lg}; padding-right: ${({ theme }) => theme.spacing.lg}; - + padding-left: ${({ theme }) => theme.spacing.lg}; border: 1px solid ${({ theme }) => theme.colors.border.medium}; border-radius: ${({ theme }) => `0 ${theme.radius.sm} ${theme.radius.sm} 0`}; + background-color: ${({ theme }) => theme.colors.background.primary}; + transition: + background-color ${({ theme }) => theme.transitions.base}, + border-color ${({ theme }) => theme.transitions.base}; + &::before { content: ""; + position: absolute; top: -1px; bottom: -1px; @@ -26,11 +33,6 @@ export const PlaybookListItem = styled.div` background-color: ${({ theme }) => theme.colors.palette.primary}; } - cursor: pointer; - transition: - background-color ${({ theme }) => theme.transitions.base}, - border-color ${({ theme }) => theme.transitions.base}; - &:hover { border-color: ${({ theme }) => theme.colors.info.border}; background-color: ${({ theme }) => theme.colors.info.bg}; @@ -47,18 +49,18 @@ export const PlaybookInfo = styled.div` `; export const PlaybookName = styled.h3` - color: ${({ theme }) => theme.colors.text.primary}; font: ${({ theme }) => theme.typography.h3.font}; + color: ${({ theme }) => theme.colors.text.primary}; `; export const PlaybookDescription = styled.p` + overflow: hidden; display: -webkit-box; - -webkit-line-clamp: 1; -webkit-box-orient: vertical; - overflow: hidden; + -webkit-line-clamp: 1; - color: ${({ theme }) => theme.colors.text.secondary}; font: ${({ theme }) => theme.typography.caption.font}; + color: ${({ theme }) => theme.colors.text.secondary}; text-overflow: ellipsis; word-wrap: break-word; `; @@ -101,16 +103,16 @@ export const TimelineStep = styled.div<{ $position: "top" | "bottom" }>` display: flex; flex-direction: column; - align-items: center; gap: ${({ theme }) => theme.spacing.xs}; + align-items: center; `; export const TimelineDot = styled.div<{ $type: string }>` width: 16px; height: 16px; - border: 2px solid ${({ theme }) => theme.colors.background.primary}; border-radius: ${({ theme }) => theme.radius.full}; + background-color: ${({ theme, $type }) => { switch ($type) { case "if-condition": @@ -141,8 +143,8 @@ export const TimelineLabel = styled.span<{ $position: "top" | "bottom" }>` max-width: 125px; - color: ${({ theme }) => theme.colors.text.secondary}; font: ${({ theme }) => theme.typography.caption.font}; + color: ${({ theme }) => theme.colors.text.secondary}; text-align: center; text-overflow: ellipsis; white-space: nowrap; @@ -152,14 +154,13 @@ export const PlaybookActions = styled.div` display: flex; flex: 0 0 auto; align-items: center; - padding-left: ${({ theme }) => theme.spacing.md}; `; export const HeaderActions = styled.div` display: flex; - align-items: center; gap: ${({ theme }) => theme.spacing.md}; + align-items: center; width: 100%; max-width: 400px; diff --git a/src/theme/GlobalStyles.ts b/src/theme/GlobalStyles.ts index 948c4a74..e725e844 100644 --- a/src/theme/GlobalStyles.ts +++ b/src/theme/GlobalStyles.ts @@ -13,9 +13,9 @@ export const GlobalStyles = createGlobalStyle` } button { - background: none; - border: none; cursor: pointer; + border: none; + background: none; } /* Headings are chosen for document structure; their look comes from theme.typography. */ @@ -38,14 +38,14 @@ export const GlobalStyles = createGlobalStyle` } html, body, #root { - height: 100%; width: 100%; + height: 100%; } body { - background-color: ${({ theme }) => theme.colors.background.primary}; - color: ${({ theme }) => theme.colors.text.primary}; font-family: ${({ theme }) => theme.fonts.family.primary}; + color: ${({ theme }) => theme.colors.text.primary}; + background-color: ${({ theme }) => theme.colors.background.primary}; transition: background-color 0.2s ease, color 0.2s ease; } @@ -59,8 +59,8 @@ export const GlobalStyles = createGlobalStyle` /* Firefox */ * { - scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); + scrollbar-width: thin; } /* WebKit (Chrome, Edge, Safari) */ @@ -70,15 +70,15 @@ export const GlobalStyles = createGlobalStyle` } *::-webkit-scrollbar-track { - background: var(--scrollbar-track); border-radius: var(--scrollbar-radius); + background: var(--scrollbar-track); } *::-webkit-scrollbar-thumb { - background-color: var(--scrollbar-thumb); - border-radius: var(--scrollbar-radius); - border: 3px solid var(--scrollbar-track); min-height: 28px; + border: 3px solid var(--scrollbar-track); + border-radius: var(--scrollbar-radius); + background-color: var(--scrollbar-thumb); } *::-webkit-scrollbar-thumb:hover { diff --git a/stylelint.config.js b/stylelint.config.js new file mode 100644 index 00000000..e41929be --- /dev/null +++ b/stylelint.config.js @@ -0,0 +1,5 @@ +/** @type {import("stylelint").Config} */ +export default { + extends: ["stylelint-config-clean-order/error"], + customSyntax: "postcss-styled-syntax", +};