From f49ecd73a5a503cd54485a498a7cad21d0b1a5c4 Mon Sep 17 00:00:00 2001 From: Karsa Date: Tue, 8 Oct 2024 10:17:49 +0200 Subject: [PATCH 01/11] feat(icons): add eye-closed icon (#2349) * feat(icons): add eye-closed icon * feat(icons): update tags on eye-off as well --------- Co-authored-by: Eric Fennis --- icons/eye-closed.json | 23 +++++++++++++++++++++++ icons/eye-closed.svg | 17 +++++++++++++++++ icons/eye-off.json | 11 +++++++++-- icons/eye.json | 16 ++++++++++++++-- 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 icons/eye-closed.json create mode 100644 icons/eye-closed.svg diff --git a/icons/eye-closed.json b/icons/eye-closed.json new file mode 100644 index 0000000000..a1ecd275f7 --- /dev/null +++ b/icons/eye-closed.json @@ -0,0 +1,23 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "karsa-mistmere" + ], + "tags": [ + "view", + "watch", + "see", + "hide", + "conceal", + "mask", + "hidden", + "visibility", + "vision" + ], + "categories": [ + "accessibility", + "photography", + "design", + "security" + ] +} diff --git a/icons/eye-closed.svg b/icons/eye-closed.svg new file mode 100644 index 0000000000..dfa4975bb2 --- /dev/null +++ b/icons/eye-closed.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/icons/eye-off.json b/icons/eye-off.json index 6cfcf6fc62..44a02f8b4a 100644 --- a/icons/eye-off.json +++ b/icons/eye-off.json @@ -9,11 +9,18 @@ "tags": [ "view", "watch", + "see", "hide", - "hidden" + "conceal", + "mask", + "hidden", + "visibility", + "vision" ], "categories": [ "accessibility", - "photography" + "photography", + "design", + "security" ] } diff --git a/icons/eye.json b/icons/eye.json index 7fcbee1095..e62cf9b12b 100644 --- a/icons/eye.json +++ b/icons/eye.json @@ -7,10 +7,22 @@ ], "tags": [ "view", - "watch" + "watch", + "see", + "show", + "expose", + "reveal", + "display", + "visible", + "visibility", + "vision", + "preview", + "read" ], "categories": [ "accessibility", - "photography" + "photography", + "design", + "security" ] } From 2e1a5cf6eac36a34978d5fa69612c51562e78a13 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Tue, 8 Oct 2024 10:19:54 +0200 Subject: [PATCH 02/11] feat(icons): added `volleyball` icon (#1980) * chore: pull `volleyball` icon from lab branch * Updated icons/volleyball.svg * Updated icons/volleyball.json --- icons/volleyball.json | 37 +++++++++++++++++++++++++++++++++++++ icons/volleyball.svg | 18 ++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 icons/volleyball.json create mode 100644 icons/volleyball.svg diff --git a/icons/volleyball.json b/icons/volleyball.json new file mode 100644 index 0000000000..4487daddf8 --- /dev/null +++ b/icons/volleyball.json @@ -0,0 +1,37 @@ +{ + "$schema": "../icon.schema.json", + "contributors": [ + "danielbayley", + "jguddas" + ], + "tags": [ + "beach", + "sand", + "net", + "holiday", + "vacation", + "summer", + "soccer", + "football", + "futbol", + "kick", + "pitch", + "goal", + "score", + "bounce", + "leather", + "wool", + "yarn", + "knitting", + "sewing", + "thread", + "embroidery", + "textile" + ], + "categories": [ + "sports", + "gaming", + "travel", + "home" + ] +} diff --git a/icons/volleyball.svg b/icons/volleyball.svg new file mode 100644 index 0000000000..cfba8a8f56 --- /dev/null +++ b/icons/volleyball.svg @@ -0,0 +1,18 @@ + + + + + + + + From e1202b545e2261dc49ab84a6fe7f46c40cc71b57 Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Tue, 8 Oct 2024 10:24:16 +0200 Subject: [PATCH 03/11] tests(shared): added mergeClasses tests (#2503) --- packages/shared/package.json | 9 +- packages/shared/tests/utils.spec.tsx | 21 +++ pnpm-lock.yaml | 252 ++++++++++++++++++++++++++- 3 files changed, 272 insertions(+), 10 deletions(-) create mode 100644 packages/shared/tests/utils.spec.tsx diff --git a/packages/shared/package.json b/packages/shared/package.json index 3d96f2fb0f..d4e7b572a7 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -7,5 +7,12 @@ "types": "src/index.ts", "type": "module", "author": "", - "license": "ISC" + "license": "ISC", + "scripts": { + "test": "vitest run", + "test:watch": "vitest watch" + }, + "devDependencies": { + "vitest": "^2.1.1" + } } diff --git a/packages/shared/tests/utils.spec.tsx b/packages/shared/tests/utils.spec.tsx new file mode 100644 index 0000000000..ff0fa8d881 --- /dev/null +++ b/packages/shared/tests/utils.spec.tsx @@ -0,0 +1,21 @@ +import { describe, it, expect } from 'vitest'; +import { mergeClasses } from '../src/utils'; + +describe('mergeClasses', () => { + it('merges classes', async () => { + const classes = mergeClasses('lucide', 'lucide-circle', 'custom-class'); + expect(classes).toBe('lucide lucide-circle custom-class'); + }); + it('ignores empty string', async () => { + const classes = mergeClasses('lucide', 'lucide-circle', ''); + expect(classes).toBe('lucide lucide-circle'); + }); + it('ignores undefined', async () => { + const classes = mergeClasses('lucide', 'lucide-circle', undefined); + expect(classes).toBe('lucide lucide-circle'); + }); + it('removes duplicates', async () => { + const classes = mergeClasses('lucide', 'lucide-circle', 'lucide'); + expect(classes).toBe('lucide lucide-circle'); + }); +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3b0f18c9fa..64d81e6140 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ importers: version: 6.21.0(eslint@8.56.0)(typescript@5.3.3) ajv-cli: specifier: ^5.0.0 - version: 5.0.0(ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3)) + version: 5.0.0(ts-node@10.9.2(typescript@5.3.3)) eslint: specifier: ^8.56.0 version: 8.56.0 @@ -679,7 +679,11 @@ importers: specifier: ^3.4.21 version: 3.4.21(typescript@5.3.3) - packages/shared: {} + packages/shared: + devDependencies: + vitest: + specifier: ^2.1.1 + version: 2.1.1(@types/node@20.4.5)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) tools/build-font: dependencies: @@ -4450,6 +4454,24 @@ packages: '@vitest/expect@1.4.0': resolution: {integrity: sha512-Jths0sWCJZ8BxjKe+p+eKsoqev1/T8lYcrjavEaz8auEJ4jAVY0GwW3JKmdVU4mmNPLPHixh4GNXP7GFtAiDHA==} + '@vitest/expect@2.1.1': + resolution: {integrity: sha512-YeueunS0HiHiQxk+KEOnq/QMzlUuOzbU1Go+PgAsHvvv3tUkJPm9xWt+6ITNTlzsMXUjmgm5T+U7KBPK2qQV6w==} + + '@vitest/mocker@2.1.1': + resolution: {integrity: sha512-LNN5VwOEdJqCmJ/2XJBywB11DLlkbY0ooDJW3uRX5cZyYCrc4PI/ePX0iQhE3BiEGiQmK4GE7Q/PqCkkaiPnrA==} + peerDependencies: + '@vitest/spy': 2.1.1 + msw: ^2.3.5 + vite: ^5.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@2.1.1': + resolution: {integrity: sha512-SjxPFOtuINDUW8/UkElJYQSFtnWX7tMksSGW0vfjxMneFqxVr8YJ979QpMbDW7g+BIiq88RAGDjf7en6rvLPPQ==} + '@vitest/runner@0.32.4': resolution: {integrity: sha512-cHOVCkiRazobgdKLnczmz2oaKK9GJOw6ZyRcaPdssO1ej+wzHVIkWiCiNacb3TTYPdzMddYkCgMjZ4r8C0JFCw==} @@ -4459,6 +4481,9 @@ packages: '@vitest/runner@1.4.0': resolution: {integrity: sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==} + '@vitest/runner@2.1.1': + resolution: {integrity: sha512-uTPuY6PWOYitIkLPidaY5L3t0JJITdGTSwBtwMjKzo5O6RCOEncz9PUN+0pDidX8kTHYjO0EwUIvhlGpnGpxmA==} + '@vitest/snapshot@0.32.4': resolution: {integrity: sha512-IRpyqn9t14uqsFlVI2d7DFMImGMs1Q9218of40bdQQgMePwVdmix33yMNnebXcTzDU5eiV3eUsoxxH5v0x/IQA==} @@ -4468,6 +4493,9 @@ packages: '@vitest/snapshot@1.4.0': resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==} + '@vitest/snapshot@2.1.1': + resolution: {integrity: sha512-BnSku1WFy7r4mm96ha2FzN99AZJgpZOWrAhtQfoxjUU5YMRpq1zmHRq7a5K9/NjqonebO7iVDla+VvZS8BOWMw==} + '@vitest/spy@0.32.4': resolution: {integrity: sha512-oA7rCOqVOOpE6rEoXuCOADX7Lla1LIa4hljI2MSccbpec54q+oifhziZIJXxlE/CvI2E+ElhBHzVu0VEvJGQKQ==} @@ -4477,6 +4505,9 @@ packages: '@vitest/spy@1.4.0': resolution: {integrity: sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==} + '@vitest/spy@2.1.1': + resolution: {integrity: sha512-ZM39BnZ9t/xZ/nF4UwRH5il0Sw93QnZXd9NAZGRpIgj0yvVwPpLd702s/Cx955rGaMlyBQkZJ2Ir7qyY48VZ+g==} + '@vitest/utils@0.32.4': resolution: {integrity: sha512-Gwnl8dhd1uJ+HXrYyV0eRqfmk9ek1ASE/LWfTCuWMw+d07ogHqp4hEAV28NiecimK6UY9DpSEPh+pXBA5gtTBg==} @@ -4486,6 +4517,9 @@ packages: '@vitest/utils@1.4.0': resolution: {integrity: sha512-mx3Yd1/6e2Vt/PUC98DcqTirtfxUyAZ32uK82r8rZzbtBeBo+nqgnjx/LvqQdWsrvNtm14VmurNgcf4nqY5gJg==} + '@vitest/utils@2.1.1': + resolution: {integrity: sha512-Y6Q9TsI+qJ2CC0ZKj6VBb+T8UPz593N113nnUykqwANqhgf3QkZeHFlusgKLTqrnVHbj/XDKZcDHol+dxVT+rQ==} + '@vue/compiler-core@3.4.18': resolution: {integrity: sha512-F7YK8lMK0iv6b9/Gdk15A67wM0KKZvxDxed0RR60C1z9tIJTKta+urs4j0RTN5XqHISzI3etN3mX0uHhjmoqjQ==} @@ -5034,6 +5068,10 @@ packages: assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + assign-symbols@1.0.0: resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==} engines: {node: '>=0.10.0'} @@ -5363,6 +5401,10 @@ packages: resolution: {integrity: sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==} engines: {node: '>=4'} + chai@5.1.1: + resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} + engines: {node: '>=12'} + chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -5395,6 +5437,10 @@ packages: check-error@1.0.3: resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + cheerio-select@2.1.0: resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} @@ -5922,6 +5968,10 @@ packages: resolution: {integrity: sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==} engines: {node: '>=6'} + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + deep-equal@1.1.2: resolution: {integrity: sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==} engines: {node: '>= 0.4'} @@ -8243,6 +8293,9 @@ packages: loupe@2.3.7: resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} + loupe@3.1.1: + resolution: {integrity: sha512-edNu/8D5MKVfGVFRhFf8aAxiTM6Wumfz5XsaatSxlD3w4R1d/WEKUTydCdPGbl9K7QG/Ca3GnDV2sIKIpXRQcw==} + lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} @@ -9188,6 +9241,10 @@ packages: pathval@1.1.1: resolution: {integrity: sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==} + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + peek-readable@4.1.0: resolution: {integrity: sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==} engines: {node: '>=8'} @@ -10794,9 +10851,15 @@ packages: tinybench@2.6.0: resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + tinycolor2@1.6.0: resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==} + tinyexec@0.3.0: + resolution: {integrity: sha512-tVGE0mVJPGb0chKhqmsoosjsS+qUnJVGJpZgsHYQcGoPlG3B51R3PouqTgEGH2Dc9jjFyOqOpix6ZHNMXp1FZg==} + tinypool@0.5.0: resolution: {integrity: sha512-paHQtnrlS1QZYKF/GnLoOM/DN9fqaGOFbCbxzAhwniySnzl9Ebk8w73/dd34DAhe/obUbPAOldTyYXQZxnPBPQ==} engines: {node: '>=14.0.0'} @@ -10805,10 +10868,22 @@ packages: resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==} engines: {node: '>=14.0.0'} + tinypool@1.0.1: + resolution: {integrity: sha512-URZYihUbRPcGv95En+sz6MfghfIc2OJ1sv/RmhWZLouPY0/8Vo80viwPvg3dlaS9fuq7fQMEfgRRK7BBZThBEA==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@1.2.0: + resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} + engines: {node: '>=14.0.0'} + tinyspy@2.2.1: resolution: {integrity: sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==} engines: {node: '>=14.0.0'} + tinyspy@3.0.2: + resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} + engines: {node: '>=14.0.0'} + tmp@0.0.33: resolution: {integrity: sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==} engines: {node: '>=0.6.0'} @@ -11251,6 +11326,11 @@ packages: engines: {node: ^18.0.0 || >=20.0.0} hasBin: true + vite-node@2.1.1: + resolution: {integrity: sha512-N/mGckI1suG/5wQI35XeR9rsMsPqKXzq1CdUndzVstBj/HvyxxGctwnK6WX43NGt5L3Z5tcRf83g4TITKJhPrA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + vite-plugin-solid@2.10.1: resolution: {integrity: sha512-kfVdNLWaJqaJVL52U6iCCKNW/nXE7bS1VVGOWPGllOkJfcNILymVSY0LCBLSnyy0iYnRtrXpiHm14rMuzeC7CA==} peerDependencies: @@ -11477,6 +11557,31 @@ packages: jsdom: optional: true + vitest@2.1.1: + resolution: {integrity: sha512-97We7/VC0e9X5zBVkvt7SGQMGrRtn3KtySFQG5fpaMlS+l62eeXRQO633AYhSTC3z7IMebnPPNjGXVGNRFlxBA==} + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/node': ^18.0.0 || >=20.0.0 + '@vitest/browser': 2.1.1 + '@vitest/ui': 2.1.1 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + vlq@1.0.1: resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==} @@ -11677,6 +11782,11 @@ packages: engines: {node: '>=8'} hasBin: true + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + wide-align@1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} @@ -14689,7 +14799,7 @@ snapshots: '@babel/helper-split-export-declaration': 7.22.6 '@babel/parser': 7.23.9 '@babel/types': 7.23.9 - debug: 4.3.5 + debug: 4.3.6 globals: 11.12.0 transitivePeerDependencies: - supports-color @@ -16529,7 +16639,7 @@ snapshots: '@sveltejs/vite-plugin-svelte-inspector@1.0.3(@sveltejs/vite-plugin-svelte@2.4.3(svelte@4.2.19)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(terser@5.31.6)))(svelte@4.2.19)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(terser@5.31.6))': dependencies: '@sveltejs/vite-plugin-svelte': 2.4.3(svelte@4.2.19)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(terser@5.31.6)) - debug: 4.3.4 + debug: 4.3.6 svelte: 4.2.19 vite: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) transitivePeerDependencies: @@ -17218,6 +17328,25 @@ snapshots: '@vitest/utils': 1.4.0 chai: 4.4.1 + '@vitest/expect@2.1.1': + dependencies: + '@vitest/spy': 2.1.1 + '@vitest/utils': 2.1.1 + chai: 5.1.1 + tinyrainbow: 1.2.0 + + '@vitest/mocker@2.1.1(@vitest/spy@2.1.1)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6))': + dependencies: + '@vitest/spy': 2.1.1 + estree-walker: 3.0.3 + magic-string: 0.30.11 + optionalDependencies: + vite: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) + + '@vitest/pretty-format@2.1.1': + dependencies: + tinyrainbow: 1.2.0 + '@vitest/runner@0.32.4': dependencies: '@vitest/utils': 0.32.4 @@ -17236,6 +17365,11 @@ snapshots: p-limit: 5.0.0 pathe: 1.1.2 + '@vitest/runner@2.1.1': + dependencies: + '@vitest/utils': 2.1.1 + pathe: 1.1.2 + '@vitest/snapshot@0.32.4': dependencies: magic-string: 0.30.11 @@ -17254,6 +17388,12 @@ snapshots: pathe: 1.1.2 pretty-format: 29.7.0 + '@vitest/snapshot@2.1.1': + dependencies: + '@vitest/pretty-format': 2.1.1 + magic-string: 0.30.11 + pathe: 1.1.2 + '@vitest/spy@0.32.4': dependencies: tinyspy: 2.2.1 @@ -17266,6 +17406,10 @@ snapshots: dependencies: tinyspy: 2.2.1 + '@vitest/spy@2.1.1': + dependencies: + tinyspy: 3.0.2 + '@vitest/utils@0.32.4': dependencies: diff-sequences: 29.6.3 @@ -17286,6 +17430,12 @@ snapshots: loupe: 2.3.7 pretty-format: 29.7.0 + '@vitest/utils@2.1.1': + dependencies: + '@vitest/pretty-format': 2.1.1 + loupe: 3.1.1 + tinyrainbow: 1.2.0 + '@vue/compiler-core@3.4.18': dependencies: '@babel/parser': 7.25.4 @@ -17713,7 +17863,7 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-cli@5.0.0(ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3)): + ajv-cli@5.0.0(ts-node@10.9.2(typescript@5.3.3)): dependencies: ajv: 8.12.0 fast-json-patch: 2.2.1 @@ -17723,7 +17873,7 @@ snapshots: json5: 2.2.3 minimist: 1.2.8 optionalDependencies: - ts-node: 10.9.2(@types/node@20.4.5)(typescript@5.3.3) + ts-node: 10.9.2(typescript@5.3.3) ajv-formats@2.1.1(ajv@8.17.1): optionalDependencies: @@ -17986,6 +18136,8 @@ snapshots: assertion-error@1.1.0: {} + assertion-error@2.0.1: {} + assign-symbols@1.0.0: {} ast-types@0.15.2: @@ -18478,6 +18630,14 @@ snapshots: pathval: 1.1.1 type-detect: 4.0.8 + chai@5.1.1: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.1 + pathval: 2.0.0 + chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -18511,6 +18671,8 @@ snapshots: dependencies: get-func-name: 2.0.2 + check-error@2.1.1: {} + cheerio-select@2.1.0: dependencies: boolbase: 1.0.0 @@ -19051,6 +19213,8 @@ snapshots: dependencies: type-detect: 4.0.8 + deep-eql@5.0.2: {} + deep-equal@1.1.2: dependencies: is-arguments: 1.1.1 @@ -21864,6 +22028,10 @@ snapshots: dependencies: get-func-name: 2.0.2 + loupe@3.1.1: + dependencies: + get-func-name: 2.0.2 + lower-case@2.0.2: dependencies: tslib: 2.6.3 @@ -23192,6 +23360,8 @@ snapshots: pathval@1.1.1: {} + pathval@2.0.0: {} + peek-readable@4.1.0: {} perfect-debounce@1.0.0: {} @@ -25226,14 +25396,24 @@ snapshots: tinybench@2.6.0: {} + tinybench@2.9.0: {} + tinycolor2@1.6.0: {} + tinyexec@0.3.0: {} + tinypool@0.5.0: {} tinypool@0.8.2: {} + tinypool@1.0.1: {} + + tinyrainbow@1.2.0: {} + tinyspy@2.2.1: {} + tinyspy@3.0.2: {} + tmp@0.0.33: dependencies: os-tmpdir: 1.0.2 @@ -25320,14 +25500,13 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3): + ts-node@10.9.2(typescript@5.3.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.4.5 acorn: 8.12.1 acorn-walk: 8.3.3 arg: 4.1.3 @@ -25702,7 +25881,7 @@ snapshots: vite-node@1.4.0(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6): dependencies: cac: 6.7.14 - debug: 4.3.4 + debug: 4.3.6 pathe: 1.1.2 picocolors: 1.0.1 vite: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) @@ -25716,6 +25895,22 @@ snapshots: - supports-color - terser + vite-node@2.1.1(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6): + dependencies: + cac: 6.7.14 + debug: 4.3.6 + pathe: 1.1.2 + vite: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + vite-plugin-solid@2.10.1(@testing-library/jest-dom@6.4.2(vitest@1.2.2(@types/node@20.4.5)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6)))(solid-js@1.8.14)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6)): dependencies: '@babel/core': 7.23.9 @@ -25954,6 +26149,40 @@ snapshots: - supports-color - terser + vitest@2.1.1(@types/node@20.4.5)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6): + dependencies: + '@vitest/expect': 2.1.1 + '@vitest/mocker': 2.1.1(@vitest/spy@2.1.1)(vite@5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6)) + '@vitest/pretty-format': 2.1.1 + '@vitest/runner': 2.1.1 + '@vitest/snapshot': 2.1.1 + '@vitest/spy': 2.1.1 + '@vitest/utils': 2.1.1 + chai: 5.1.1 + debug: 4.3.6 + magic-string: 0.30.11 + pathe: 1.1.2 + std-env: 3.7.0 + tinybench: 2.9.0 + tinyexec: 0.3.0 + tinypool: 1.0.1 + tinyrainbow: 1.2.0 + vite: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) + vite-node: 2.1.1(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 20.4.5 + jsdom: 20.0.3 + transitivePeerDependencies: + - less + - lightningcss + - msw + - sass + - stylus + - sugarss + - supports-color + - terser + vlq@1.0.1: {} void-elements@2.0.1: {} @@ -26201,6 +26430,11 @@ snapshots: siginfo: 2.0.0 stackback: 0.0.2 + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + wide-align@1.1.5: dependencies: string-width: 4.2.3 From db24b1d51716ab6df4a3313e8ecdbfa7019be8fe Mon Sep 17 00:00:00 2001 From: Mohit Nagaraj Date: Tue, 8 Oct 2024 13:59:03 +0530 Subject: [PATCH 04/11] fix(app): #2412 Fix tooltip being cut off (#2514) --- docs/.vitepress/theme/components/base/Tooltip.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/theme/components/base/Tooltip.vue b/docs/.vitepress/theme/components/base/Tooltip.vue index 4371bb7fe9..d6d551fab4 100644 --- a/docs/.vitepress/theme/components/base/Tooltip.vue +++ b/docs/.vitepress/theme/components/base/Tooltip.vue @@ -42,7 +42,7 @@ onMounted(() => { font-weight: 400; background: var(--vp-c-brand-dark); color: white; - z-index: 10; + z-index: 99; white-space: nowrap; padding: 2px 8px; border-radius: 4px; From 5dfcfc8d1a23f833045396a640d9c15945c52262 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:29:31 +0200 Subject: [PATCH 05/11] build(deps): bump rollup from 4.21.0 to 4.22.4 (#2521) Bumps [rollup](https://github.com/rollup/rollup) from 4.21.0 to 4.22.4. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](https://github.com/rollup/rollup/compare/v4.21.0...v4.22.4) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- packages/lucide-preact/package.json | 2 +- packages/lucide-react-native/package.json | 2 +- packages/lucide-react/package.json | 2 +- packages/lucide-solid/package.json | 2 +- packages/lucide-static/package.json | 2 +- packages/lucide-vue-next/package.json | 2 +- packages/lucide/package.json | 2 +- pnpm-lock.yaml | 297 ++++++++++++++++++---- tools/rollup-plugins/package.json | 2 +- 9 files changed, 253 insertions(+), 60 deletions(-) diff --git a/packages/lucide-preact/package.json b/packages/lucide-preact/package.json index b00cc367f6..1996389835 100644 --- a/packages/lucide-preact/package.json +++ b/packages/lucide-preact/package.json @@ -50,7 +50,7 @@ "@testing-library/preact": "^3.2.3", "jest-serializer-html": "^7.1.0", "preact": "^10.19.2", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0", "typescript": "^5.3.3", "vite": "5.0.13", diff --git a/packages/lucide-react-native/package.json b/packages/lucide-react-native/package.json index 0fe54ddc9a..597edc0bde 100644 --- a/packages/lucide-react-native/package.json +++ b/packages/lucide-react-native/package.json @@ -56,7 +56,7 @@ "react-dom": "^18.0.0", "react-native": "^0.73.1", "react-native-svg": "^15.0.0", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0", "typescript": "^4.8.4", "vite": "5.0.13", diff --git a/packages/lucide-react/package.json b/packages/lucide-react/package.json index 5284731c92..9b12fdbcde 100644 --- a/packages/lucide-react/package.json +++ b/packages/lucide-react/package.json @@ -58,7 +58,7 @@ "jest-serializer-html": "^7.1.0", "react": "18.2.0", "react-dom": "18.2.0", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0", "typescript": "^4.9.5", "vite": "5.0.13", diff --git a/packages/lucide-solid/package.json b/packages/lucide-solid/package.json index c6b74d95f0..a903e46ca3 100644 --- a/packages/lucide-solid/package.json +++ b/packages/lucide-solid/package.json @@ -80,7 +80,7 @@ "@testing-library/jest-dom": "^6.4.2", "babel-preset-solid": "^1.8.12", "jest-serializer-html": "^7.1.0", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "solid-js": "^1.8.7", "typescript": "^4.9.4", "vite": "5.0.13", diff --git a/packages/lucide-static/package.json b/packages/lucide-static/package.json index ced9c2f280..7f7cfab87a 100644 --- a/packages/lucide-static/package.json +++ b/packages/lucide-static/package.json @@ -43,7 +43,7 @@ "@lucide/build-icons": "workspace:*", "@lucide/rollup-plugins": "workspace:*", "@lucide/helpers": "workspace:*", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0" } } diff --git a/packages/lucide-vue-next/package.json b/packages/lucide-vue-next/package.json index 04f1cc29dd..40c78b8d58 100644 --- a/packages/lucide-vue-next/package.json +++ b/packages/lucide-vue-next/package.json @@ -52,7 +52,7 @@ "@testing-library/vue": "^8.0.3", "@vitejs/plugin-vue": "^4.6.2", "@vue/test-utils": "2.4.5", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0", "vite": "5.0.13", "vitest": "^1.4.0", diff --git a/packages/lucide/package.json b/packages/lucide/package.json index a76b99bfdb..67c52e8135 100644 --- a/packages/lucide/package.json +++ b/packages/lucide/package.json @@ -47,7 +47,7 @@ "@rollup/plugin-replace": "^5.0.5", "@testing-library/jest-dom": "^6.1.6", "jest-serializer-html": "^7.1.0", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-dts": "^6.1.0", "typescript": "^4.9.3", "vite": "5.0.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 64d81e6140..56c336586a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,7 +30,7 @@ importers: version: 6.21.0(eslint@8.56.0)(typescript@5.3.3) ajv-cli: specifier: ^5.0.0 - version: 5.0.0(ts-node@10.9.2(typescript@5.3.3)) + version: 5.0.0(ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3)) eslint: specifier: ^8.56.0 version: 8.56.0 @@ -193,7 +193,7 @@ importers: version: link:../../tools/rollup-plugins '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.21.0) + version: 5.0.5(rollup@4.22.4) '@testing-library/jest-dom': specifier: ^6.1.6 version: 6.4.2(vitest@1.2.2(@types/node@20.4.5)(jsdom@20.0.3)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6)) @@ -201,11 +201,11 @@ importers: specifier: ^7.1.0 version: 7.1.0 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@4.9.5) + version: 6.1.0(rollup@4.22.4)(typescript@4.9.5) typescript: specifier: ^4.9.3 version: 4.9.5 @@ -349,11 +349,11 @@ importers: specifier: ^10.19.2 version: 10.19.4 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@5.3.3) + version: 6.1.0(rollup@4.22.4)(typescript@5.3.3) typescript: specifier: ^5.3.3 version: 5.3.3 @@ -397,11 +397,11 @@ importers: specifier: 18.2.0 version: 18.2.0(react@18.2.0) rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@4.9.5) + version: 6.1.0(rollup@4.22.4)(typescript@4.9.5) typescript: specifier: ^4.9.5 version: 4.9.5 @@ -454,11 +454,11 @@ importers: specifier: ^15.0.0 version: 15.0.0(react-native@0.73.4(@babel/core@7.25.2)(@babel/preset-env@7.23.9(@babel/core@7.25.2))(encoding@0.1.13)(react@18.2.0))(react@18.2.0) rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@4.9.5) + version: 6.1.0(rollup@4.22.4)(typescript@4.9.5) typescript: specifier: ^4.8.4 version: 4.9.5 @@ -491,7 +491,7 @@ importers: version: link:../shared '@rollup/plugin-babel': specifier: ^6.0.4 - version: 6.0.4(@babel/core@7.23.9)(@types/babel__core@7.20.5)(rollup@4.21.0) + version: 6.0.4(@babel/core@7.23.9)(@types/babel__core@7.20.5)(rollup@4.22.4) '@solidjs/testing-library': specifier: ^0.8.6 version: 0.8.6(@solidjs/router@0.11.5(solid-js@1.8.14))(solid-js@1.8.14) @@ -508,8 +508,8 @@ importers: specifier: ^7.1.0 version: 7.1.0 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 solid-js: specifier: ^1.8.7 version: 1.8.14 @@ -541,11 +541,11 @@ importers: specifier: ^2.3.2 version: 2.7.1 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@5.3.3) + version: 6.1.0(rollup@4.22.4)(typescript@5.3.3) svgson: specifier: ^5.2.1 version: 5.3.1 @@ -664,11 +664,11 @@ importers: specifier: 2.4.5 version: 2.4.5 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-dts: specifier: ^6.1.0 - version: 6.1.0(rollup@4.21.0)(typescript@5.3.3) + version: 6.1.0(rollup@4.22.4)(typescript@5.3.3) vite: specifier: 5.0.13 version: 5.0.13(@types/node@20.4.5)(less@4.2.0)(sass@1.77.8)(stylus@0.56.0)(terser@5.31.6) @@ -733,28 +733,28 @@ importers: dependencies: '@atomico/rollup-plugin-sizes': specifier: ^1.1.4 - version: 1.1.4(rollup@4.21.0) + version: 1.1.4(rollup@4.22.4) '@rollup/plugin-node-resolve': specifier: ^15.2.3 - version: 15.2.3(rollup@4.21.0) + version: 15.2.3(rollup@4.22.4) '@rollup/plugin-replace': specifier: ^5.0.5 - version: 5.0.5(rollup@4.21.0) + version: 5.0.5(rollup@4.22.4) esbuild: specifier: ^0.19.11 version: 0.19.12 rollup: - specifier: ^4.9.2 - version: 4.21.0 + specifier: ^4.22.4 + version: 4.22.4 rollup-plugin-esbuild: specifier: ^6.1.0 - version: 6.1.1(esbuild@0.19.12)(rollup@4.21.0) + version: 6.1.1(esbuild@0.19.12)(rollup@4.22.4) rollup-plugin-license: specifier: ^3.2.0 - version: 3.2.0(rollup@4.21.0) + version: 3.2.0(rollup@4.22.4) rollup-plugin-visualizer: specifier: ^5.12.0 - version: 5.12.0(rollup@4.21.0) + version: 5.12.0(rollup@4.22.4) packages: @@ -3779,81 +3779,161 @@ packages: cpu: [arm] os: [android] + '@rollup/rollup-android-arm-eabi@4.22.4': + resolution: {integrity: sha512-Fxamp4aEZnfPOcGA8KSNEohV8hX7zVHOemC8jVBoBUHu5zpJK/Eu3uJwt6BMgy9fkvzxDaurgj96F/NiLukF2w==} + cpu: [arm] + os: [android] + '@rollup/rollup-android-arm64@4.21.0': resolution: {integrity: sha512-a1sR2zSK1B4eYkiZu17ZUZhmUQcKjk2/j9Me2IDjk1GHW7LB5Z35LEzj9iJch6gtUfsnvZs1ZNyDW2oZSThrkA==} cpu: [arm64] os: [android] + '@rollup/rollup-android-arm64@4.22.4': + resolution: {integrity: sha512-VXoK5UMrgECLYaMuGuVTOx5kcuap1Jm8g/M83RnCHBKOqvPPmROFJGQaZhGccnsFtfXQ3XYa4/jMCJvZnbJBdA==} + cpu: [arm64] + os: [android] + '@rollup/rollup-darwin-arm64@4.21.0': resolution: {integrity: sha512-zOnKWLgDld/svhKO5PD9ozmL6roy5OQ5T4ThvdYZLpiOhEGY+dp2NwUmxK0Ld91LrbjrvtNAE0ERBwjqhZTRAA==} cpu: [arm64] os: [darwin] + '@rollup/rollup-darwin-arm64@4.22.4': + resolution: {integrity: sha512-xMM9ORBqu81jyMKCDP+SZDhnX2QEVQzTcC6G18KlTQEzWK8r/oNZtKuZaCcHhnsa6fEeOBionoyl5JsAbE/36Q==} + cpu: [arm64] + os: [darwin] + '@rollup/rollup-darwin-x64@4.21.0': resolution: {integrity: sha512-7doS8br0xAkg48SKE2QNtMSFPFUlRdw9+votl27MvT46vo44ATBmdZdGysOevNELmZlfd+NEa0UYOA8f01WSrg==} cpu: [x64] os: [darwin] + '@rollup/rollup-darwin-x64@4.22.4': + resolution: {integrity: sha512-aJJyYKQwbHuhTUrjWjxEvGnNNBCnmpHDvrb8JFDbeSH3m2XdHcxDd3jthAzvmoI8w/kSjd2y0udT+4okADsZIw==} + cpu: [x64] + os: [darwin] + '@rollup/rollup-linux-arm-gnueabihf@4.21.0': resolution: {integrity: sha512-pWJsfQjNWNGsoCq53KjMtwdJDmh/6NubwQcz52aEwLEuvx08bzcy6tOUuawAOncPnxz/3siRtd8hiQ32G1y8VA==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-gnueabihf@4.22.4': + resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.21.0': resolution: {integrity: sha512-efRIANsz3UHZrnZXuEvxS9LoCOWMGD1rweciD6uJQIx2myN3a8Im1FafZBzh7zk1RJ6oKcR16dU3UPldaKd83w==} cpu: [arm] os: [linux] + '@rollup/rollup-linux-arm-musleabihf@4.22.4': + resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==} + cpu: [arm] + os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.21.0': resolution: {integrity: sha512-ZrPhydkTVhyeGTW94WJ8pnl1uroqVHM3j3hjdquwAcWnmivjAwOYjTEAuEDeJvGX7xv3Z9GAvrBkEzCgHq9U1w==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-gnu@4.22.4': + resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-arm64-musl@4.21.0': resolution: {integrity: sha512-cfaupqd+UEFeURmqNP2eEvXqgbSox/LHOyN9/d2pSdV8xTrjdg3NgOFJCtc1vQ/jEke1qD0IejbBfxleBPHnPw==} cpu: [arm64] os: [linux] + '@rollup/rollup-linux-arm64-musl@4.22.4': + resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==} + cpu: [arm64] + os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.21.0': resolution: {integrity: sha512-ZKPan1/RvAhrUylwBXC9t7B2hXdpb/ufeu22pG2psV7RN8roOfGurEghw1ySmX/CmDDHNTDDjY3lo9hRlgtaHg==} cpu: [ppc64] os: [linux] + '@rollup/rollup-linux-powerpc64le-gnu@4.22.4': + resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==} + cpu: [ppc64] + os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.21.0': resolution: {integrity: sha512-H1eRaCwd5E8eS8leiS+o/NqMdljkcb1d6r2h4fKSsCXQilLKArq6WS7XBLDu80Yz+nMqHVFDquwcVrQmGr28rg==} cpu: [riscv64] os: [linux] + '@rollup/rollup-linux-riscv64-gnu@4.22.4': + resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==} + cpu: [riscv64] + os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.21.0': resolution: {integrity: sha512-zJ4hA+3b5tu8u7L58CCSI0A9N1vkfwPhWd/puGXwtZlsB5bTkwDNW/+JCU84+3QYmKpLi+XvHdmrlwUwDA6kqw==} cpu: [s390x] os: [linux] + '@rollup/rollup-linux-s390x-gnu@4.22.4': + resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==} + cpu: [s390x] + os: [linux] + '@rollup/rollup-linux-x64-gnu@4.21.0': resolution: {integrity: sha512-e2hrvElFIh6kW/UNBQK/kzqMNY5mO+67YtEh9OA65RM5IJXYTWiXjX6fjIiPaqOkBthYF1EqgiZ6OXKcQsM0hg==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-gnu@4.22.4': + resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==} + cpu: [x64] + os: [linux] + '@rollup/rollup-linux-x64-musl@4.21.0': resolution: {integrity: sha512-1vvmgDdUSebVGXWX2lIcgRebqfQSff0hMEkLJyakQ9JQUbLDkEaMsPTLOmyccyC6IJ/l3FZuJbmrBw/u0A0uCQ==} cpu: [x64] os: [linux] + '@rollup/rollup-linux-x64-musl@4.22.4': + resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==} + cpu: [x64] + os: [linux] + '@rollup/rollup-win32-arm64-msvc@4.21.0': resolution: {integrity: sha512-s5oFkZ/hFcrlAyBTONFY1TWndfyre1wOMwU+6KCpm/iatybvrRgmZVM+vCFwxmC5ZhdlgfE0N4XorsDpi7/4XQ==} cpu: [arm64] os: [win32] + '@rollup/rollup-win32-arm64-msvc@4.22.4': + resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==} + cpu: [arm64] + os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.21.0': resolution: {integrity: sha512-G9+TEqRnAA6nbpqyUqgTiopmnfgnMkR3kMukFBDsiyy23LZvUCpiUwjTRx6ezYCjJODXrh52rBR9oXvm+Fp5wg==} cpu: [ia32] os: [win32] + '@rollup/rollup-win32-ia32-msvc@4.22.4': + resolution: {integrity: sha512-SiWG/1TuUdPvYmzmYnmd3IEifzR61Tragkbx9D3+R8mzQqDBz8v+BvZNDlkiTtI9T15KYZhP0ehn3Dld4n9J5g==} + cpu: [ia32] + os: [win32] + '@rollup/rollup-win32-x64-msvc@4.21.0': resolution: {integrity: sha512-2jsCDZwtQvRhejHLfZ1JY6w6kEuEtfF9nzYsZxzSlNVKDX+DpsDJ+Rbjkm74nvg2rdx0gwBS+IMdvwJuq3S9pQ==} cpu: [x64] os: [win32] + '@rollup/rollup-win32-x64-msvc@4.22.4': + resolution: {integrity: sha512-j8pPKp53/lq9lMXN57S8cFz0MynJk8OWNuUnXct/9KCpKU7DgU3bYMJhwWmcqC0UU29p8Lr0/7KEVcaM6bf47Q==} + cpu: [x64] + os: [win32] + '@schematics/angular@13.3.11': resolution: {integrity: sha512-imKBnKYEse0SBVELZO/753nkpt3eEgpjrYkB+AFWF9YfO/4RGnYXDHoH8CFkzxPH9QQCgNrmsVFNiYGS+P/S1A==} engines: {node: ^12.20.0 || ^14.15.0 || >=16.10.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} @@ -6751,11 +6831,13 @@ packages: eslint@8.56.0: resolution: {integrity: sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espree@9.6.1: @@ -10007,6 +10089,11 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + rollup@4.22.4: + resolution: {integrity: sha512-vD8HJ5raRcWOyymsR6Z3o6+RzfEPCnVLMFJ6vRslO1jt4LO6dUo5Qnpg7y4RkZFM2DMe3WUirkI5c16onjrc6A==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -12370,11 +12457,11 @@ snapshots: '@assemblyscript/loader@0.10.1': {} - '@atomico/rollup-plugin-sizes@1.1.4(rollup@4.21.0)': + '@atomico/rollup-plugin-sizes@1.1.4(rollup@4.22.4)': dependencies: brotli-size: 4.0.0 gzip-size: 5.1.1 - rollup: 4.21.0 + rollup: 4.22.4 simple-string-table: 1.0.0 '@babel/code-frame@7.23.5': @@ -16403,14 +16490,14 @@ snapshots: optionalDependencies: rollup: 4.21.0 - '@rollup/plugin-babel@6.0.4(@babel/core@7.23.9)(@types/babel__core@7.20.5)(rollup@4.21.0)': + '@rollup/plugin-babel@6.0.4(@babel/core@7.23.9)(@types/babel__core@7.20.5)(rollup@4.22.4)': dependencies: '@babel/core': 7.23.9 '@babel/helper-module-imports': 7.22.15 - '@rollup/pluginutils': 5.0.5(rollup@4.21.0) + '@rollup/pluginutils': 5.0.5(rollup@4.22.4) optionalDependencies: '@types/babel__core': 7.20.5 - rollup: 4.21.0 + rollup: 4.22.4 '@rollup/plugin-commonjs@25.0.8(rollup@4.21.0)': dependencies: @@ -16463,6 +16550,17 @@ snapshots: optionalDependencies: rollup: 4.21.0 + '@rollup/plugin-node-resolve@15.2.3(rollup@4.22.4)': + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@4.22.4) + '@types/resolve': 1.20.2 + deepmerge: 4.3.1 + is-builtin-module: 3.2.1 + is-module: 1.0.0 + resolve: 1.22.8 + optionalDependencies: + rollup: 4.22.4 + '@rollup/plugin-replace@5.0.2(rollup@4.21.0)': dependencies: '@rollup/pluginutils': 5.0.2(rollup@4.21.0) @@ -16477,6 +16575,13 @@ snapshots: optionalDependencies: rollup: 4.21.0 + '@rollup/plugin-replace@5.0.5(rollup@4.22.4)': + dependencies: + '@rollup/pluginutils': 5.0.5(rollup@4.22.4) + magic-string: 0.30.5 + optionalDependencies: + rollup: 4.22.4 + '@rollup/plugin-terser@0.4.4(rollup@4.21.0)': dependencies: serialize-javascript: 6.0.1 @@ -16519,6 +16624,14 @@ snapshots: optionalDependencies: rollup: 4.21.0 + '@rollup/pluginutils@5.0.5(rollup@4.22.4)': + dependencies: + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 2.3.1 + optionalDependencies: + rollup: 4.22.4 + '@rollup/pluginutils@5.1.0(rollup@4.21.0)': dependencies: '@types/estree': 1.0.5 @@ -16530,51 +16643,99 @@ snapshots: '@rollup/rollup-android-arm-eabi@4.21.0': optional: true + '@rollup/rollup-android-arm-eabi@4.22.4': + optional: true + '@rollup/rollup-android-arm64@4.21.0': optional: true + '@rollup/rollup-android-arm64@4.22.4': + optional: true + '@rollup/rollup-darwin-arm64@4.21.0': optional: true + '@rollup/rollup-darwin-arm64@4.22.4': + optional: true + '@rollup/rollup-darwin-x64@4.21.0': optional: true + '@rollup/rollup-darwin-x64@4.22.4': + optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.21.0': optional: true + '@rollup/rollup-linux-arm-gnueabihf@4.22.4': + optional: true + '@rollup/rollup-linux-arm-musleabihf@4.21.0': optional: true + '@rollup/rollup-linux-arm-musleabihf@4.22.4': + optional: true + '@rollup/rollup-linux-arm64-gnu@4.21.0': optional: true + '@rollup/rollup-linux-arm64-gnu@4.22.4': + optional: true + '@rollup/rollup-linux-arm64-musl@4.21.0': optional: true + '@rollup/rollup-linux-arm64-musl@4.22.4': + optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.21.0': optional: true + '@rollup/rollup-linux-powerpc64le-gnu@4.22.4': + optional: true + '@rollup/rollup-linux-riscv64-gnu@4.21.0': optional: true + '@rollup/rollup-linux-riscv64-gnu@4.22.4': + optional: true + '@rollup/rollup-linux-s390x-gnu@4.21.0': optional: true + '@rollup/rollup-linux-s390x-gnu@4.22.4': + optional: true + '@rollup/rollup-linux-x64-gnu@4.21.0': optional: true + '@rollup/rollup-linux-x64-gnu@4.22.4': + optional: true + '@rollup/rollup-linux-x64-musl@4.21.0': optional: true + '@rollup/rollup-linux-x64-musl@4.22.4': + optional: true + '@rollup/rollup-win32-arm64-msvc@4.21.0': optional: true + '@rollup/rollup-win32-arm64-msvc@4.22.4': + optional: true + '@rollup/rollup-win32-ia32-msvc@4.21.0': optional: true + '@rollup/rollup-win32-ia32-msvc@4.22.4': + optional: true + '@rollup/rollup-win32-x64-msvc@4.21.0': optional: true + '@rollup/rollup-win32-x64-msvc@4.22.4': + optional: true + '@schematics/angular@13.3.11(chokidar@3.6.0)': dependencies: '@angular-devkit/core': 13.3.11(chokidar@3.6.0) @@ -17863,7 +18024,7 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-cli@5.0.0(ts-node@10.9.2(typescript@5.3.3)): + ajv-cli@5.0.0(ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3)): dependencies: ajv: 8.12.0 fast-json-patch: 2.2.1 @@ -17873,7 +18034,7 @@ snapshots: json5: 2.2.3 minimist: 1.2.8 optionalDependencies: - ts-node: 10.9.2(typescript@5.3.3) + ts-node: 10.9.2(@types/node@20.4.5)(typescript@5.3.3) ajv-formats@2.1.1(ajv@8.17.1): optionalDependencies: @@ -24270,34 +24431,34 @@ snapshots: globby: 10.0.1 is-plain-object: 3.0.1 - rollup-plugin-dts@6.1.0(rollup@4.21.0)(typescript@4.9.5): + rollup-plugin-dts@6.1.0(rollup@4.22.4)(typescript@4.9.5): dependencies: magic-string: 0.30.5 - rollup: 4.21.0 + rollup: 4.22.4 typescript: 4.9.5 optionalDependencies: '@babel/code-frame': 7.23.5 - rollup-plugin-dts@6.1.0(rollup@4.21.0)(typescript@5.3.3): + rollup-plugin-dts@6.1.0(rollup@4.22.4)(typescript@5.3.3): dependencies: magic-string: 0.30.5 - rollup: 4.21.0 + rollup: 4.22.4 typescript: 5.3.3 optionalDependencies: '@babel/code-frame': 7.23.5 - rollup-plugin-esbuild@6.1.1(esbuild@0.19.12)(rollup@4.21.0): + rollup-plugin-esbuild@6.1.1(esbuild@0.19.12)(rollup@4.22.4): dependencies: - '@rollup/pluginutils': 5.0.5(rollup@4.21.0) + '@rollup/pluginutils': 5.0.5(rollup@4.22.4) debug: 4.3.4 es-module-lexer: 1.4.1 esbuild: 0.19.12 get-tsconfig: 4.7.2 - rollup: 4.21.0 + rollup: 4.22.4 transitivePeerDependencies: - supports-color - rollup-plugin-license@3.2.0(rollup@4.21.0): + rollup-plugin-license@3.2.0(rollup@4.22.4): dependencies: commenting: 1.1.0 glob: 7.2.3 @@ -24306,7 +24467,7 @@ snapshots: mkdirp: 3.0.1 moment: 2.29.4 package-name-regex: 2.0.6 - rollup: 4.21.0 + rollup: 4.22.4 spdx-expression-validate: 2.0.0 spdx-satisfies: 5.0.1 @@ -24327,6 +24488,15 @@ snapshots: optionalDependencies: rollup: 4.21.0 + rollup-plugin-visualizer@5.12.0(rollup@4.22.4): + dependencies: + open: 8.4.0 + picomatch: 2.3.1 + source-map: 0.7.4 + yargs: 17.7.2 + optionalDependencies: + rollup: 4.22.4 + rollup@2.79.1: optionalDependencies: fsevents: 2.3.3 @@ -24361,6 +24531,28 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.21.0 fsevents: 2.3.3 + rollup@4.22.4: + dependencies: + '@types/estree': 1.0.5 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.22.4 + '@rollup/rollup-android-arm64': 4.22.4 + '@rollup/rollup-darwin-arm64': 4.22.4 + '@rollup/rollup-darwin-x64': 4.22.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.22.4 + '@rollup/rollup-linux-arm-musleabihf': 4.22.4 + '@rollup/rollup-linux-arm64-gnu': 4.22.4 + '@rollup/rollup-linux-arm64-musl': 4.22.4 + '@rollup/rollup-linux-powerpc64le-gnu': 4.22.4 + '@rollup/rollup-linux-riscv64-gnu': 4.22.4 + '@rollup/rollup-linux-s390x-gnu': 4.22.4 + '@rollup/rollup-linux-x64-gnu': 4.22.4 + '@rollup/rollup-linux-x64-musl': 4.22.4 + '@rollup/rollup-win32-arm64-msvc': 4.22.4 + '@rollup/rollup-win32-ia32-msvc': 4.22.4 + '@rollup/rollup-win32-x64-msvc': 4.22.4 + fsevents: 2.3.3 + run-async@2.4.1: {} run-parallel@1.2.0: @@ -25500,13 +25692,14 @@ snapshots: v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - ts-node@10.9.2(typescript@5.3.3): + ts-node@10.9.2(@types/node@20.4.5)(typescript@5.3.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 + '@types/node': 20.4.5 acorn: 8.12.1 acorn-walk: 8.3.3 arg: 4.1.3 @@ -25943,7 +26136,7 @@ snapshots: dependencies: esbuild: 0.19.12 postcss: 8.4.41 - rollup: 4.21.0 + rollup: 4.22.4 optionalDependencies: '@types/node': 20.4.5 fsevents: 2.3.3 @@ -25956,7 +26149,7 @@ snapshots: dependencies: esbuild: 0.19.12 postcss: 8.4.41 - rollup: 4.21.0 + rollup: 4.22.4 optionalDependencies: '@types/node': 12.20.55 fsevents: 2.3.3 @@ -25969,7 +26162,7 @@ snapshots: dependencies: esbuild: 0.19.12 postcss: 8.4.41 - rollup: 4.21.0 + rollup: 4.22.4 optionalDependencies: '@types/node': 20.4.5 fsevents: 2.3.3 @@ -25982,7 +26175,7 @@ snapshots: dependencies: esbuild: 0.21.5 postcss: 8.4.41 - rollup: 4.21.0 + rollup: 4.22.4 optionalDependencies: '@types/node': 20.4.5 fsevents: 2.3.3 diff --git a/tools/rollup-plugins/package.json b/tools/rollup-plugins/package.json index 26ea9604b3..7c7f837a18 100644 --- a/tools/rollup-plugins/package.json +++ b/tools/rollup-plugins/package.json @@ -12,7 +12,7 @@ "@rollup/plugin-node-resolve": "^15.2.3", "@rollup/plugin-replace": "^5.0.5", "esbuild": "^0.19.11", - "rollup": "^4.9.2", + "rollup": "^4.22.4", "rollup-plugin-esbuild": "^6.1.0", "rollup-plugin-license": "^3.2.0", "rollup-plugin-visualizer": "^5.12.0" From 13cea45e8b1612d8b5315dcddfd794b6fd8cf72f Mon Sep 17 00:00:00 2001 From: Jamie Law Date: Tue, 8 Oct 2024 09:34:11 +0100 Subject: [PATCH 06/11] refactor(icons): optimised some `move-` icons (#2513) * Update move.svg Replace ``s with ``s * Update move-vertical.svg * Update move-horizontal.svg * Update move-diagonal.svg * Update move-diagonal-2.svg --- icons/move-diagonal-2.svg | 6 +++--- icons/move-diagonal.svg | 6 +++--- icons/move-horizontal.svg | 6 +++--- icons/move-vertical.svg | 6 +++--- icons/move.svg | 12 ++++++------ 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/icons/move-diagonal-2.svg b/icons/move-diagonal-2.svg index 3552b6215e..a9ff373905 100644 --- a/icons/move-diagonal-2.svg +++ b/icons/move-diagonal-2.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + diff --git a/icons/move-diagonal.svg b/icons/move-diagonal.svg index ec4ca0c790..e0397fe04d 100644 --- a/icons/move-diagonal.svg +++ b/icons/move-diagonal.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + diff --git a/icons/move-horizontal.svg b/icons/move-horizontal.svg index 12d800e627..c60a6911ab 100644 --- a/icons/move-horizontal.svg +++ b/icons/move-horizontal.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + diff --git a/icons/move-vertical.svg b/icons/move-vertical.svg index b6ea0a5096..4babf17a61 100644 --- a/icons/move-vertical.svg +++ b/icons/move-vertical.svg @@ -9,7 +9,7 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + diff --git a/icons/move.svg b/icons/move.svg index f7d956ae21..d78876f71b 100644 --- a/icons/move.svg +++ b/icons/move.svg @@ -9,10 +9,10 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - - - + + + + + + From 6588971ead5664aa881588da7081300da8a8355d Mon Sep 17 00:00:00 2001 From: Karsa Date: Tue, 8 Oct 2024 10:36:35 +0200 Subject: [PATCH 07/11] fix(site): use the same camel/pascal same conversion as when releasing packages (#2509) --- .../theme/components/icons/CopyCodeButton.vue | 76 +++++++++---------- docs/icons/[name].md | 7 +- packages/shared/src/utils.ts | 15 +++- 3 files changed, 53 insertions(+), 45 deletions(-) diff --git a/docs/.vitepress/theme/components/icons/CopyCodeButton.vue b/docs/.vitepress/theme/components/icons/CopyCodeButton.vue index 9c806dd761..a58fcf4f59 100644 --- a/docs/.vitepress/theme/components/icons/CopyCodeButton.vue +++ b/docs/.vitepress/theme/components/icons/CopyCodeButton.vue @@ -1,98 +1,98 @@ @@ -106,11 +106,11 @@ function copyAngular() { data-confetti-text="Copied!" :popoverPosition="popoverPosition" :options="[ - { text: 'Copy JSX' , onClick: copyJSX }, - { text: 'Copy Component Name' , onClick: copyComponentName }, - { text: 'Copy Vue' , onClick: copyVue }, - { text: 'Copy Svelte' , onClick: copyJSX }, - { text: 'Copy Angular' , onClick: copyAngular }, + { text: 'Copy JSX', onClick: copyJSX }, + { text: 'Copy Component Name', onClick: copyComponentName }, + { text: 'Copy Vue', onClick: copyVue }, + { text: 'Copy Svelte', onClick: copyJSX }, + { text: 'Copy Angular', onClick: copyAngular }, ]" /> diff --git a/docs/icons/[name].md b/docs/icons/[name].md index 9406e93bb7..f69e966c3a 100644 --- a/docs/icons/[name].md +++ b/docs/icons/[name].md @@ -18,9 +18,8 @@ import RelatedIcons from '~/.vitepress/theme/components/icons/RelatedIcons.vue' import CodeGroup from '~/.vitepress/theme/components/base/CodeGroup.vue' import Badge from '~/.vitepress/theme/components/base/Badge.vue' import Label from '~/.vitepress/theme/components/base/Label.vue' -import VPButton from 'vitepress/dist/client/theme-default/components/VPButton.vue'; import { data } from './codeExamples.data' -import { camelCase, startCase } from 'lodash-es' +import { toCamelCase, toPascalCase } from '@lucide/shared' import { satisfies } from 'semver' const { params } = useData() @@ -31,8 +30,8 @@ const tabs = computed(() => data.codeExamples?.map( const codeExample = computed(() => data.codeExamples?.map( (codeExample) => { - const pascalCaseName = startCase(camelCase( params.value.name)).replace(/\s/g, '') - const camelCaseName = camelCase(params.value.name) + const pascalCaseName = toPascalCase( params.value.name) + const camelCaseName = toCamelCase(params.value.name) return codeExample.code .replace(/\$(?:<[^>]+>)*PascalCase/g, pascalCaseName) diff --git a/packages/shared/src/utils.ts b/packages/shared/src/utils.ts index f068a5714e..6a0db486a5 100644 --- a/packages/shared/src/utils.ts +++ b/packages/shared/src/utils.ts @@ -9,6 +9,17 @@ import { CamelToPascal } from './utility-types'; export const toKebabCase = (string: string) => string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase(); +/** + * Converts string to camel case + * + * @param {string} string + * @returns {string} A camelized string + */ +export const toCamelCase = (string: T) => + string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => + p2 ? p2.toUpperCase() : p1.toLowerCase(), + ); + /** * Converts string to pascal case * @@ -16,9 +27,7 @@ export const toKebabCase = (string: string) => * @returns {string} A pascalized string */ export const toPascalCase = (string: T): CamelToPascal => { - const camelCase = string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => - p2 ? p2.toUpperCase() : p1.toLowerCase(), - ); + const camelCase = toCamelCase(string); return (camelCase.charAt(0).toUpperCase() + camelCase.slice(1)) as CamelToPascal; }; From 493382b4fd52664fc4def6be0c32134cdb6592fb Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Tue, 8 Oct 2024 10:37:01 +0200 Subject: [PATCH 08/11] fix(icons): changed `parking-meter` icon (#2505) * Updated icons/parking-meter.svg * Updated icons/parking-meter.json --- icons/parking-meter.json | 3 ++- icons/parking-meter.svg | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/icons/parking-meter.json b/icons/parking-meter.json index 2f7760b907..fd73f972c8 100644 --- a/icons/parking-meter.json +++ b/icons/parking-meter.json @@ -1,7 +1,8 @@ { "$schema": "../icon.schema.json", "contributors": [ - "danielbayley" + "danielbayley", + "jguddas" ], "tags": [ "driving", diff --git a/icons/parking-meter.svg b/icons/parking-meter.svg index 2aa20113ac..3fa8796775 100644 --- a/icons/parking-meter.svg +++ b/icons/parking-meter.svg @@ -9,9 +9,9 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + From 2a68b12cbe8cbb41dba2173280a8dbb9b104e8d1 Mon Sep 17 00:00:00 2001 From: Jamie Law Date: Tue, 8 Oct 2024 09:41:30 +0100 Subject: [PATCH 09/11] fix(icons): Updated `sandwich` icon (#2494) * Updated `sandwich` icon Rounded the top-front corners, and better aligned the top-most corner of the bread, and the corner of the filling to the grid * Update sandwich.svg Nudge filling to the left to maintain a two-pixel gap * Widen the sandwich --- icons/sandwich.json | 3 ++- icons/sandwich.svg | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/icons/sandwich.json b/icons/sandwich.json index 196eab2845..56b2892301 100644 --- a/icons/sandwich.json +++ b/icons/sandwich.json @@ -1,7 +1,8 @@ { "$schema": "../icon.schema.json", "contributors": [ - "kemie" + "kemie", + "jamiemlaw" ], "tags": [ "food", diff --git a/icons/sandwich.svg b/icons/sandwich.svg index 2ed594a065..12d7e539d0 100644 --- a/icons/sandwich.svg +++ b/icons/sandwich.svg @@ -9,8 +9,9 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - + + + + + From a5e07c28bde41cb1f8d8564434716e4fd7cadd6f Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Tue, 8 Oct 2024 10:44:49 +0200 Subject: [PATCH 10/11] fix(icons): changed `package` icon (#2499) * Updated icons/package.svg * Updated icons/package.svg * Updated icons/package.json --- icons/package.json | 3 ++- icons/package.svg | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/icons/package.json b/icons/package.json index b727a165f3..a97a9faf7f 100644 --- a/icons/package.json +++ b/icons/package.json @@ -5,7 +5,8 @@ "csandman", "ericfennis", "karsa-mistmere", - "danielbayley" + "danielbayley", + "jguddas" ], "tags": [ "box", diff --git a/icons/package.svg b/icons/package.svg index 1cfdc67e39..ccfdc521ff 100644 --- a/icons/package.svg +++ b/icons/package.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > - - - + + + From bde9e1cb6bf60b387e84762514f1737bc0c9aacd Mon Sep 17 00:00:00 2001 From: Jakob Guddas Date: Tue, 8 Oct 2024 11:10:02 +0200 Subject: [PATCH 11/11] Updated icons/component.svg (#2474) --- icons/component.svg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/icons/component.svg b/icons/component.svg index e7f1b4303d..13f4bd63a0 100644 --- a/icons/component.svg +++ b/icons/component.svg @@ -9,8 +9,8 @@ stroke-linecap="round" stroke-linejoin="round" > - - - - + + + +