From 0281ab6b1010501f256431b8fbf9cbae89d85357 Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:55:57 +0100 Subject: [PATCH 01/51] Upgrade mosaic to beta.80 (#3742) --- .github/renovate.json | 8 +- package.json | 4 +- site/package.json | 26 ++-- yarn.lock | 322 +++++++++++++++++++++--------------------- 4 files changed, 181 insertions(+), 179 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 4338f92b2f..c2f31f16b7 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,11 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:base", ":preserveSemverRanges"], - "postUpdateOptions": ["yarnDedupeHighest"] + "postUpdateOptions": ["yarnDedupeHighest"], + "packageRules": [ + { + "groupName": "Mosaic", + "packagePatterns": ["^@jpmorganchase/mosaic"] + } + ] } diff --git a/package.json b/package.json index 51f500b51a..aa612ec65a 100644 --- a/package.json +++ b/package.json @@ -133,9 +133,7 @@ "next": "^14.0.0", "webpack-dev-server": "4.9.3", "webpack": "5.92.0", - "recursive-readdir": "2.2.3", - "@jpmorganchase/mosaic-content-editor-plugin@npm:0.1.0-beta.65": "patch:@jpmorganchase/mosaic-content-editor-plugin@npm%3A0.1.0-beta.65#~/.yarn/patches/@jpmorganchase-mosaic-content-editor-plugin-npm-0.1.0-beta.65-5b63b22b12.patch", - "@jpmorganchase/mosaic-content-editor-plugin@npm:^0.1.0-beta.65": "patch:@jpmorganchase/mosaic-content-editor-plugin@npm%3A0.1.0-beta.65#~/.yarn/patches/@jpmorganchase-mosaic-content-editor-plugin-npm-0.1.0-beta.65-5b63b22b12.patch" + "recursive-readdir": "2.2.3" }, "browserslist": { "production": [ diff --git a/site/package.json b/site/package.json index 69e4820286..2b5e876f93 100644 --- a/site/package.json +++ b/site/package.json @@ -22,19 +22,19 @@ "gen:css": "yarn node './cssGen.js'" }, "dependencies": { - "@jpmorganchase/mosaic-cli": "0.1.0-beta.78", - "@jpmorganchase/mosaic-components": "0.1.0-beta.78", - "@jpmorganchase/mosaic-content-editor-plugin": "0.1.0-beta.78", - "@jpmorganchase/mosaic-layouts": "0.1.0-beta.78", - "@jpmorganchase/mosaic-plugins": "0.1.0-beta.78", - "@jpmorganchase/mosaic-site-components": "0.1.0-beta.78", - "@jpmorganchase/mosaic-site-preset-styles": "0.1.0-beta.78", - "@jpmorganchase/mosaic-sitemap-component": "0.1.0-beta.76", - "@jpmorganchase/mosaic-source-git-repo": "0.1.0-beta.78", - "@jpmorganchase/mosaic-source-local-folder": "0.1.0-beta.78", - "@jpmorganchase/mosaic-standard-generator": "0.1.0-beta.78", - "@jpmorganchase/mosaic-store": "0.1.0-beta.78", - "@jpmorganchase/mosaic-theme": "0.1.0-beta.78", + "@jpmorganchase/mosaic-cli": "0.1.0-beta.80", + "@jpmorganchase/mosaic-components": "0.1.0-beta.80", + "@jpmorganchase/mosaic-content-editor-plugin": "0.1.0-beta.80", + "@jpmorganchase/mosaic-layouts": "0.1.0-beta.80", + "@jpmorganchase/mosaic-plugins": "0.1.0-beta.80", + "@jpmorganchase/mosaic-site-components": "0.1.0-beta.80", + "@jpmorganchase/mosaic-site-preset-styles": "0.1.0-beta.80", + "@jpmorganchase/mosaic-sitemap-component": "0.1.0-beta.80", + "@jpmorganchase/mosaic-source-git-repo": "0.1.0-beta.80", + "@jpmorganchase/mosaic-source-local-folder": "0.1.0-beta.80", + "@jpmorganchase/mosaic-standard-generator": "0.1.0-beta.80", + "@jpmorganchase/mosaic-store": "0.1.0-beta.80", + "@jpmorganchase/mosaic-theme": "0.1.0-beta.80", "@philpl/buble": "^0.19.7", "@types/react": "^18.0.26", "lodash-es": "^4.17.21", diff --git a/yarn.lock b/yarn.lock index 4746983794..ca0b7537d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3927,17 +3927,17 @@ __metadata: languageName: node linkType: hard -"@jpmorganchase/mosaic-cli@npm:0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-cli@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-cli@npm:0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-cli@npm:0.1.0-beta.80" dependencies: "@aws-sdk/client-s3": "npm:^3.359.0" "@fastify/middie": "npm:^8.3.0" "@fastify/websocket": "npm:^8.2.0" - "@jpmorganchase/mosaic-core": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-plugins": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-standard-generator": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-core": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-plugins": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-standard-generator": "npm:^0.1.0-beta.80" commander: "npm:^9.4.1" cors: "npm:^2.8.5" deepmerge: "npm:^4.2.2" @@ -3949,18 +3949,18 @@ __metadata: mkdirp: "npm:^1.0.4" bin: mosaic: dist/index.mjs - checksum: 10/87620b34350875de5defa684dac8df66dbb0de72dad5ed6d4006ca2490238496c8ad7c7e1ecff4d997643a6f57b187e0bd8ab9dc352566ac60f1b25be79d00a9 + checksum: 10/416fefb6e428e5f735fad15b3147c3c600c5c5359e05fc05b5e62d533f4b1e3dac8c3148eede0306941f607efe6c7e1b2f606496485d93897f087f462ce35789 languageName: node linkType: hard -"@jpmorganchase/mosaic-components@npm:0.1.0-beta.78, @jpmorganchase/mosaic-components@npm:^0.1.0-beta.76, @jpmorganchase/mosaic-components@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-components@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-components@npm:0.1.0-beta.80, @jpmorganchase/mosaic-components@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-components@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" - "@salt-ds/core": "npm:^1.26.0" - "@salt-ds/lab": "npm:1.0.0-alpha.42" + "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" + "@salt-ds/core": "npm:^1.30.0" + "@salt-ds/lab": "npm:1.0.0-alpha.48" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/recipes": "npm:^0.2.1" "@vanilla-extract/sprinkles": "npm:^1.3.0" @@ -3980,17 +3980,17 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/edba43494691200bbdd9348b1959a55aea2d0310f5bb3a266809680d9c2fe1b6471508a0ea487e4f93cff14e1d10c8203aeae05c1c974baf9a896209fd880796 + checksum: 10/914f6f15aef4509ef3a090ab9c83500cec449ccf2a84421bcaca3aa687f8aae6dcfcc8a343bb7ef9b99f0ada94395083494e3e0e66fd7f2bf8cf350b65e893e8 languageName: node linkType: hard -"@jpmorganchase/mosaic-content-editor-plugin@npm:0.1.0-beta.78, @jpmorganchase/mosaic-content-editor-plugin@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-content-editor-plugin@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-content-editor-plugin@npm:0.1.0-beta.80, @jpmorganchase/mosaic-content-editor-plugin@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-content-editor-plugin@npm:0.1.0-beta.80" dependencies: "@floating-ui/react": "npm:^0.26.6" - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" "@lexical/code": "npm:^0.11.1" "@lexical/link": "npm:^0.11.1" "@lexical/list": "npm:^0.11.1" @@ -4000,10 +4000,10 @@ __metadata: "@lexical/selection": "npm:^0.11.1" "@lexical/table": "npm:^0.11.1" "@lexical/utils": "npm:^0.11.1" - "@salt-ds/core": "npm:^1.26.0" - "@salt-ds/icons": "npm:^1.11.1" - "@salt-ds/lab": "npm:1.0.0-alpha.42" - "@salt-ds/theme": "npm:^1.14.0" + "@salt-ds/core": "npm:^1.30.0" + "@salt-ds/icons": "npm:^1.12.1" + "@salt-ds/lab": "npm:1.0.0-alpha.48" + "@salt-ds/theme": "npm:^1.19.0" "@vanilla-extract/css": "npm:^1.6.0" clsx: "npm:^2.0.0" gray-matter: "npm:^4.0.3" @@ -4017,18 +4017,18 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/1ba574da9d780268980cbfd2e22634aa575314c7e9869767f540a5e57dbe55d668cd53c40a15ebbff5db01f6221ee57b17146357259b71d227b1e2ed975ae38d + checksum: 10/2a6998f86dc0926d7bc0e25c2f5fade83634bf64b2bcb3293aa0db9588fa0dedfa2589db7e7675b6b7619f760d3f15d533ec37c17140c98ed76e654a4aa1f22e languageName: node linkType: hard -"@jpmorganchase/mosaic-core@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-core@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-core@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-core@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-plugins": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-serialisers": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-plugins": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-serialisers": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" fast-glob: "npm:*" gray-matter: "npm:^4.0.3" lodash-es: "npm:^4.17.21" @@ -4036,18 +4036,17 @@ __metadata: memfs: "npm:^3.4.12" rxjs: "npm:^7.5.5" unionfs: "npm:^4.4.0" - checksum: 10/4b99380ed0937864f4cccc9cbbc1a704f466cc6a6445567aef1d9ef787562144892203dcb1f14b236e71c3189d9f43a0d96ccf63502d8aa9d2c91c868e3013c7 + checksum: 10/978922a26696c503787e845ee285f605130848382738a72778006f94c3c836787720f37e834ddb5e9293824f8efe17bbd920ebdf915ed1eb234cfb27d97c4398 languageName: node linkType: hard -"@jpmorganchase/mosaic-labs-components@npm:0.1.0-beta.78, @jpmorganchase/mosaic-labs-components@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-labs-components@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-labs-components@npm:0.1.0-beta.80, @jpmorganchase/mosaic-labs-components@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-labs-components@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" - "@salt-ds/core": "npm:^1.26.0" - "@salt-ds/lab": "npm:1.0.0-alpha.42" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" + "@salt-ds/core": "npm:^1.30.0" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/recipes": "npm:^0.2.1" "@vanilla-extract/sprinkles": "npm:^1.3.0" @@ -4060,21 +4059,20 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/4e72f6f879714932bce7f4cbb548db7ed7f8e91c422ef20d9bc3723f4c914b7e8e1e07c20e2398704e66c3b268109d8757f0ee7beaab67a3418880eed0c888d0 + checksum: 10/4492b7232822197a37ba80cbedec8f8b5c4f4104f28a902c24b0dd24c028876fd25098108f8f12e34709ad265732a0023cd5ebb7b4891497dbcaaaea1fac4064 languageName: node linkType: hard -"@jpmorganchase/mosaic-layouts@npm:0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-layouts@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-layouts@npm:0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-layouts@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-site-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" - "@salt-ds/core": "npm:^1.26.0" - "@salt-ds/lab": "npm:1.0.0-alpha.42" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-site-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" + "@salt-ds/core": "npm:^1.30.0" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/sprinkles": "npm:^1.3.0" clsx: "npm:^2.0.0" @@ -4085,16 +4083,16 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/accc09c0207fc7a5ee3a879863c51bd2b9db4d2f7e2ba22280244005628737a8e9f6b5ffafe5b5fa51c8d9da802e950b2512396048343c3999e5d8a4466b234d + checksum: 10/042d03a9dcb2d47a50d7581830991495d164cc7209deec48624be43b4b50f635934ab27a9358b2efd3befc2f24dc570a0eeee33868b05b2708e36ec3c712ac11 languageName: node linkType: hard -"@jpmorganchase/mosaic-open-api-component@npm:0.1.0-beta.78, @jpmorganchase/mosaic-open-api-component@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-open-api-component@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-open-api-component@npm:0.1.0-beta.80, @jpmorganchase/mosaic-open-api-component@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-open-api-component@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" "@types/swagger-ui-react": "npm:^4.18.0" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/recipes": "npm:^0.2.1" @@ -4111,20 +4109,20 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/a0868ed3dfe73d06ac30545cef6ac4e80e7c439b605b2c03824b3eb53b5a62c2d54fa2ad928a5bcdceca19ef0e5762e0db35742c655eb8f4f4e1648926cc2756 + checksum: 10/6ed86f8fc02974a34d0668f6d9a593fcb1c66c2c0b8b0be6ccf8617511bcdb43b36233f64e6be43b009c6300679ad6f1c4e37a12a51e5a278d9b7a289c4d3c71 languageName: node linkType: hard -"@jpmorganchase/mosaic-plugins@npm:0.1.0-beta.78, @jpmorganchase/mosaic-plugins@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-plugins@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-plugins@npm:0.1.0-beta.80, @jpmorganchase/mosaic-plugins@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-plugins@npm:0.1.0-beta.80" dependencies: "@apidevtools/json-schema-ref-parser": "npm:^10.1.0" - "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-serialisers": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-source-git-repo": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-serialisers": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-source-git-repo": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" "@types/github-slugger": "npm:^1.3.0" "@vcarl/remark-headings": "npm:^0.1.0" check-links: "npm:^2.0.0" @@ -4148,41 +4146,42 @@ __metadata: unist-util-visit: "npm:^5.0.0" uuid: "npm:^7.0.3" vfile-reporter: "npm:^7.0.5" - checksum: 10/ff447e7ef1a3ba355e9c1d33eb70a4d16a6d2c6abf7a5fe717bd54933407433378d56f4ef4dc358485f4e1d9071b606e4e506dfaa381e9881455d7103e6241b1 + checksum: 10/313c466ee2c426a3e3974147308ebb70802f9a8d8e3b8e16b41d94bfb85afb76173168172264c2a4721f4ae4165bc52c8f5e90f0665beb3c01c7bc9c69228831 languageName: node linkType: hard -"@jpmorganchase/mosaic-schemas@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-schemas@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-schemas@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-schemas@npm:0.1.0-beta.80" dependencies: zod: "npm:^3.22.3" - checksum: 10/9ceb81d8ab8cf5c686890bca31ff0f2ceff8acec1f177da93abd256efd754e7e971c5958ce9ca5bcdf4c72b0439b4725f341d8dadf4f2fa6fb41a3d4f261a355 + checksum: 10/51c0f0b731ec34564556b273f8161b893ba58ef9975638a2962dbcee0aa522f0cb0664abc4842563f0222665a62891dc35002c84cce9438c9d9506bc2a87f611 languageName: node linkType: hard -"@jpmorganchase/mosaic-serialisers@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-serialisers@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-serialisers@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-serialisers@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" gray-matter: "npm:^4.0.3" - checksum: 10/c1762042862026bb2da68d7015cfe5553b3fc90a894664a727cfaae114ff1a1908883684e5f459175d3e978e933c6828eb1d18d022bc1cc921a174752a158515 + checksum: 10/e56af9f808ebb2b2438e8788a112d7158cb720d13aaabc88189019cdef9e1a87a79ff09d12acfa24bde12bdd4ca60e01f924a6db88d9f9550af40099c39eec6e languageName: node linkType: hard -"@jpmorganchase/mosaic-site-components@npm:0.1.0-beta.78, @jpmorganchase/mosaic-site-components@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-site-components@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-site-components@npm:0.1.0-beta.80, @jpmorganchase/mosaic-site-components@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-site-components@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-content-editor-plugin": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-labs-components": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-open-api-component": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-site-middleware": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.78" - "@salt-ds/lab": "npm:1.0.0-alpha.42" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-content-editor-plugin": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-labs-components": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-open-api-component": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-site-middleware": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:^0.1.0-beta.80" + "@salt-ds/core": "npm:^1.30.0" + "@salt-ds/lab": "npm:1.0.0-alpha.48" "@types/mdast": "npm:^3.0.0" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/recipes": "npm:^0.2.1" @@ -4209,18 +4208,18 @@ __metadata: next-auth: ^4.22.1 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/f6f2b77776f92a373e13cfcdbc087644b74c1fb91ede1ba50cb76fc74a718709064690c0392b5c34376f66377196c9dff306f5ac92dd6dff838c3ef61b354968 + checksum: 10/356a497c2dfa78c09d3ad2205c8285615be4936ff5c69c78c715ff969cda24fd037e365b8b97863c5856c8b2cc06ed070b1c4d2fc2dbb3b2fb9dcbf1b97f66c4 languageName: node linkType: hard -"@jpmorganchase/mosaic-site-middleware@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-site-middleware@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-site-middleware@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-site-middleware@npm:0.1.0-beta.80" dependencies: "@aws-sdk/client-s3": "npm:^3.256.0" - "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-store": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" "@types/mdast": "npm:^3.0.0" acorn: "npm:^8.0.0" acorn-jsx: "npm:^5.0.0" @@ -4238,103 +4237,102 @@ __metadata: warning: "npm:^3.0.0" peerDependencies: next-auth: ^4.22.1 - checksum: 10/be1c3d6caa66a3b44a0b03956efba43ce8134e5edec33c94f3367828abd747037655c6d1088e7580822a3ddb167f38e6a08638d8f2c04e07c858e6c112f456e6 + checksum: 10/e12b4001ba7244b3cd0ab44239d35de5be88a85b492c1e8eb656d62cd17ab998f869bf9abd991274df608034c10fc8bf57e8c1c224609c1406c6f2fa5e7e8397 languageName: node linkType: hard -"@jpmorganchase/mosaic-site-preset-styles@npm:0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-site-preset-styles@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-site-preset-styles@npm:0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-site-preset-styles@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-labs-components": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-layouts": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-open-api-component": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-site-components": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:0.1.0-beta.78" - "@salt-ds/icons": "npm:^1.11.1" - "@salt-ds/theme": "npm:^1.14.0" + "@jpmorganchase/mosaic-components": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-labs-components": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-layouts": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-open-api-component": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-site-components": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:0.1.0-beta.80" + "@salt-ds/icons": "npm:^1.12.1" + "@salt-ds/theme": "npm:^1.19.0" prismjs: "npm:^1.23.0" - checksum: 10/c1d2a71cb5dd17ae73751c804edf51c11b835ca17f0896ac1e1c8f0bc31c3e70e3f67c0be30897fb5fe64640d14ab07ca016775413c3140bdb506bf707cf77b7 + checksum: 10/861c4b6935cedf239be0226b71021423b68c1f82e751fd32de0e8be11cd334851d2c2f85a80560529ea27d0e0df825b2fbd54aa6e0d406ce175875fb561a2eda languageName: node linkType: hard -"@jpmorganchase/mosaic-sitemap-component@npm:0.1.0-beta.76": - version: 0.1.0-beta.76 - resolution: "@jpmorganchase/mosaic-sitemap-component@npm:0.1.0-beta.76" +"@jpmorganchase/mosaic-sitemap-component@npm:0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-sitemap-component@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.76" - "@salt-ds/core": "npm:^1.26.0" - "@salt-ds/lab": "npm:1.0.0-alpha.42" + "@jpmorganchase/mosaic-components": "npm:^0.1.0-beta.80" + "@salt-ds/core": "npm:^1.30.0" d3: "npm:^7.7.0" peerDependencies: "@types/react": ^18.0.26 next-auth: ^4.22.1 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/98591cf871b2115df3181dde79bddb1153576658ecacac4e78da66da7a9cee7be4b93c01800e5ba4b5bcd46254eeb7d0228ff1eed2574de161dc511a73be73fc + checksum: 10/d3e7e3e78dceb8588e77cd242936d6801e023bfd83c0a1b0616bbe94d5a80888eac4df8b5caef5d76ed92122568b25d803a68b5041b9224a317121d9d4fce8d1 languageName: node linkType: hard -"@jpmorganchase/mosaic-source-git-repo@npm:0.1.0-beta.78, @jpmorganchase/mosaic-source-git-repo@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-source-git-repo@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-source-git-repo@npm:0.1.0-beta.80, @jpmorganchase/mosaic-source-git-repo@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-source-git-repo@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-source-local-folder": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" deepmerge: "npm:^4.2.2" fs-extra: "npm:^9.1.0" lodash-es: "npm:^4.17.21" rxjs: "npm:^7.5.5" zod: "npm:^3.22.3" - checksum: 10/84f659684181c071bfd54851830dc37b15f90e0149794d59c2a484d9bd4e952ce8d9e310b471fd849474ccc850d71f83bf91c76319ec3a129d268867c1f2d817 + checksum: 10/214288de8c9c2d7b4868fec1acc6a1bba8d648f422baffe740029c81c3a4a8135110e2b5cacd6bb29195ff0667660d0e19d5b75a570a24b76df3fbb26e813862 languageName: node linkType: hard -"@jpmorganchase/mosaic-source-local-folder@npm:0.1.0-beta.78, @jpmorganchase/mosaic-source-local-folder@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-source-local-folder@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-source-local-folder@npm:0.1.0-beta.80, @jpmorganchase/mosaic-source-local-folder@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-source-local-folder@npm:0.1.0-beta.80" dependencies: - "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.78" - "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.78" + "@jpmorganchase/mosaic-schemas": "npm:^0.1.0-beta.80" + "@jpmorganchase/mosaic-types": "npm:^0.1.0-beta.80" chokidar: "npm:^3.5.3" fast-glob: "npm:^3.2.12" lodash-es: "npm:^4.17.21" rxjs: "npm:^7.5.5" zod: "npm:^3.22.3" - checksum: 10/d9a0687fa5e64a3d5ca50c9d5aad4574bf678a090622b39b9e2f11db3a14b7e929728ecd838e2f2415a24ccfbb9d3c7f4dd6a48a7be6e645abc09f6b3ec98297 + checksum: 10/633a9216ea386c8719b24bebbb53b225de6b4f61e06f4177d27265198830c7a16f0f1d4a65069e984b64c7b7bfe811328881fc8e5c863542a53a2c19c8953630 languageName: node linkType: hard -"@jpmorganchase/mosaic-standard-generator@npm:0.1.0-beta.78, @jpmorganchase/mosaic-standard-generator@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-standard-generator@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-standard-generator@npm:0.1.0-beta.80, @jpmorganchase/mosaic-standard-generator@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-standard-generator@npm:0.1.0-beta.80" dependencies: dotenv-load: "npm:^2.0.1" - checksum: 10/bb016edc160ea545d6b7a5196b506d457073fcd5f64c2ed10a40e6a58ae8c22811d706b8835d4a921757cd32831c50816ec286a38d06904d6af7439fb10a5392 + checksum: 10/f31d756725ab39bd343a212cbf7bbaa1500de3968682153155e48a3f032183124bc73801132987678838d9b0b021409e701653d5b3c41faf1f8aea6f0fe1ab54 languageName: node linkType: hard -"@jpmorganchase/mosaic-store@npm:0.1.0-beta.78, @jpmorganchase/mosaic-store@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-store@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-store@npm:0.1.0-beta.80, @jpmorganchase/mosaic-store@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-store@npm:0.1.0-beta.80" dependencies: zustand: "npm:^4.1.1" peerDependencies: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/bd838da01b87caf3f85105369f1e7c8907fe8101fb6963571ed7713c3654b81b8f387d5be5420f1a0cf2919bfba51b9fef79e2f5422d6a91ff40157c55edd6ff + checksum: 10/ceb6fd3d0042119e20bd469bb65c58c5364a5273cdc09cc6869a9cc5339e2881c1342eb3b55926bd7dc7d659c86e188b7ac82fd59a49786caef28a66a89c1d57 languageName: node linkType: hard -"@jpmorganchase/mosaic-theme@npm:0.1.0-beta.78, @jpmorganchase/mosaic-theme@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-theme@npm:0.1.0-beta.78" +"@jpmorganchase/mosaic-theme@npm:0.1.0-beta.80, @jpmorganchase/mosaic-theme@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-theme@npm:0.1.0-beta.80" dependencies: - "@salt-ds/icons": "npm:^1.11.1" + "@salt-ds/icons": "npm:^1.12.1" "@vanilla-extract/css": "npm:^1.6.0" "@vanilla-extract/css-utils": "npm:^0.1.1" "@vanilla-extract/recipes": "npm:^0.2.1" @@ -4344,14 +4342,14 @@ __metadata: "@types/react": ^18.0.26 react: ^18.2.0 react-dom: ^18.2.0 - checksum: 10/14e8ae86dea1d92f3db40212f216b4a5a920d2e0411b931146f26ba4346611a0fd4234c0b46390941e349eb437756f379bda9d66947e108ccdb1d78d0db8a3a0 + checksum: 10/2ca203f01ec65ae2f16de148ba11c097b8fbfa59e1a43b15aefc42d3dbf733bca172c046eed8a15a3a38f9ba26cd04c634c6b0d0b78e6eb0dbac0ce7318d7aec languageName: node linkType: hard -"@jpmorganchase/mosaic-types@npm:^0.1.0-beta.78": - version: 0.1.0-beta.78 - resolution: "@jpmorganchase/mosaic-types@npm:0.1.0-beta.78" - checksum: 10/0259ee52f078ecef259714a70cd91034f8df5eda09ec05f9ba0e417a0d4b3388ab1d7746629981fd6b24f13ca93e9bf17296ab6ae37992c7f27dd6f17a1972e5 +"@jpmorganchase/mosaic-types@npm:^0.1.0-beta.80": + version: 0.1.0-beta.80 + resolution: "@jpmorganchase/mosaic-types@npm:0.1.0-beta.80" + checksum: 10/496b343295f5f47d3f72ec8cec78b9bf24d866f877b587c992b7b3ff4e7528ebcc8355fce8f0934c8c10bd46e88113d1936e7d9bee1fab6d0a883db54173b2ff languageName: node linkType: hard @@ -5688,7 +5686,7 @@ __metadata: languageName: unknown linkType: soft -"@salt-ds/core@npm:^1.26.0, @salt-ds/core@workspace:packages/core": +"@salt-ds/core@npm:^1.30.0, @salt-ds/core@workspace:packages/core": version: 0.0.0-use.local resolution: "@salt-ds/core@workspace:packages/core" dependencies: @@ -5738,7 +5736,7 @@ __metadata: languageName: unknown linkType: soft -"@salt-ds/icons@npm:^1.11.1, @salt-ds/icons@workspace:packages/icons": +"@salt-ds/icons@npm:^1.12.1, @salt-ds/icons@workspace:packages/icons": version: 0.0.0-use.local resolution: "@salt-ds/icons@workspace:packages/icons" dependencies: @@ -5870,19 +5868,19 @@ __metadata: version: 0.0.0-use.local resolution: "@salt-ds/site@workspace:site" dependencies: - "@jpmorganchase/mosaic-cli": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-components": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-layouts": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-plugins": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-site-components": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-site-preset-styles": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-sitemap-component": "npm:0.1.0-beta.76" - "@jpmorganchase/mosaic-source-git-repo": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-source-local-folder": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-standard-generator": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-store": "npm:0.1.0-beta.78" - "@jpmorganchase/mosaic-theme": "npm:0.1.0-beta.78" + "@jpmorganchase/mosaic-cli": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-components": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-content-editor-plugin": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-layouts": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-plugins": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-site-components": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-site-preset-styles": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-sitemap-component": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-source-git-repo": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-source-local-folder": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-standard-generator": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-store": "npm:0.1.0-beta.80" + "@jpmorganchase/mosaic-theme": "npm:0.1.0-beta.80" "@next/eslint-plugin-next": "npm:^14.2.2" "@philpl/buble": "npm:^0.19.7" "@types/node": "npm:^16.0.0" @@ -5915,7 +5913,7 @@ __metadata: languageName: unknown linkType: soft -"@salt-ds/theme@npm:^1.14.0, @salt-ds/theme@workspace:packages/theme": +"@salt-ds/theme@npm:^1.19.0, @salt-ds/theme@workspace:packages/theme": version: 0.0.0-use.local resolution: "@salt-ds/theme@workspace:packages/theme" dependencies: From da92421c15d9de7b0b80cb97733ffd17aa41a489 Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:02:02 +0100 Subject: [PATCH 02/51] Fix ref warning on React 19 (#3727) --- .changeset/early-tools-do.md | 5 ++ .changeset/heavy-humans-flow.md | 6 ++ package.json | 6 +- .../unit/utils/getRefFromChildren.spec.tsx | 25 +++++++++ packages/core/src/accordion/Accordion.tsx | 3 +- packages/core/src/menu/MenuTrigger.tsx | 5 +- packages/core/src/overlay/OverlayTrigger.tsx | 8 +-- packages/core/src/tooltip/Tooltip.tsx | 7 +-- packages/core/src/utils/getRefFromChildren.ts | 10 ++++ packages/core/src/utils/index.ts | 1 + .../lab/src/cascading-menu/CascadingMenu.tsx | 7 +-- packages/lab/src/portal/Portal.tsx | 7 +-- packages/lab/src/tree/treeTypes.ts | 2 +- site/package.json | 6 +- vite.config.ts | 2 +- yarn.lock | 56 ++++++++----------- 16 files changed, 91 insertions(+), 65 deletions(-) create mode 100644 .changeset/early-tools-do.md create mode 100644 .changeset/heavy-humans-flow.md create mode 100644 packages/core/src/__tests__/unit/utils/getRefFromChildren.spec.tsx create mode 100644 packages/core/src/utils/getRefFromChildren.ts diff --git a/.changeset/early-tools-do.md b/.changeset/early-tools-do.md new file mode 100644 index 0000000000..e782579224 --- /dev/null +++ b/.changeset/early-tools-do.md @@ -0,0 +1,5 @@ +--- +"@salt-ds/core": minor +--- + +Added `getRefFromChildren`. This allows reading ref from a child component. diff --git a/.changeset/heavy-humans-flow.md b/.changeset/heavy-humans-flow.md new file mode 100644 index 0000000000..47b2912b5e --- /dev/null +++ b/.changeset/heavy-humans-flow.md @@ -0,0 +1,6 @@ +--- +"@salt-ds/core": patch +"@salt-ds/lab": patch +--- + +Fix warning logged when access a child ref on React 19. diff --git a/package.json b/package.json index aa612ec65a..18efd5439e 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "@testing-library/react": "^15.0.0", "@types/no-scroll": "^2.1.0", "@types/node": "^20.0.0", - "@types/react": "^18.0.0", + "@types/react": "^18.3.3", "@types/react-color": "^3.0.6", "@types/react-dom": "^18.0.0", "@types/tinycolor2": "^1.4.3", @@ -110,9 +110,9 @@ "msw-storybook-addon": "^1.8.0", "prettier": "^2.6.2", "pretty-quick": "^3.1.3", - "react": "^18.0.0", + "react": "^18.3.1", "react-docgen-typescript": "2.2.2", - "react-dom": "^18.0.0", + "react-dom": "^18.3.1", "rifm": "^0.12.0", "sass": "^1.52.3", "storybook": "^8.1.10", diff --git a/packages/core/src/__tests__/unit/utils/getRefFromChildren.spec.tsx b/packages/core/src/__tests__/unit/utils/getRefFromChildren.spec.tsx new file mode 100644 index 0000000000..6b11e5f652 --- /dev/null +++ b/packages/core/src/__tests__/unit/utils/getRefFromChildren.spec.tsx @@ -0,0 +1,25 @@ +import { getRefFromChildren } from "@salt-ds/core"; +import { describe, it, expect } from "vitest"; +import { ReactNode } from "react"; + +describe("getRefFromChildren", () => { + it("should return null if child is not a valid element", () => { + expect(getRefFromChildren(null)).toBeNull(); + expect(getRefFromChildren(undefined)).toBeNull(); + expect(getRefFromChildren("string")).toBeNull(); + expect(getRefFromChildren(123)).toBeNull(); + expect(getRefFromChildren(<>)).toBeNull(); + expect(getRefFromChildren([])).toBeNull(); + }); + + it("should return null if ref is not defined", () => { + const child = + + ); +}; diff --git a/site/src/examples/progress/WithBuffer.tsx b/site/src/examples/progress/WithBuffer.tsx index b61136e631..357fc4a229 100644 --- a/site/src/examples/progress/WithBuffer.tsx +++ b/site/src/examples/progress/WithBuffer.tsx @@ -1,41 +1,23 @@ -import { ReactElement, useState } from "react"; import { + CircularProgress, FlexItem, - FlexLayout, - FlowLayout, H3, - RadioButton, - RadioButtonGroup, - CircularProgress, LinearProgress, + StackLayout, } from "@salt-ds/core"; +import { ReactElement } from "react"; export const WithBuffer = (): ReactElement => { - const [selectedType, setSelectedType] = useState("circular"); - return ( - +

value = 38, buffer value = 60

- - setSelectedType(e.target.value)} - > - - - - - - {selectedType === "circular" && ( - - )} - {selectedType === "linear" && ( - - )} + + + + + -
+ ); }; diff --git a/site/src/examples/progress/WithMaxVal.tsx b/site/src/examples/progress/WithMaxVal.tsx index 9f3efad98e..50efdee791 100644 --- a/site/src/examples/progress/WithMaxVal.tsx +++ b/site/src/examples/progress/WithMaxVal.tsx @@ -1,41 +1,22 @@ -import { ReactElement, useState } from "react"; import { + CircularProgress, FlexItem, - FlexLayout, - FlowLayout, H3, - RadioButton, - RadioButtonGroup, - CircularProgress, LinearProgress, + StackLayout, } from "@salt-ds/core"; +import { ReactElement } from "react"; export const WithMaxVal = (): ReactElement => { - const [selectedType, setSelectedType] = useState("circular"); - return ( - +

max = 500, value = 250

- - setSelectedType(e.target.value)} - > - - - - - - - {selectedType === "circular" && ( - - )} - {selectedType === "linear" && ( - - )} + + + + + -
+ ); }; diff --git a/site/src/examples/progress/WithMinVal.tsx b/site/src/examples/progress/WithMinVal.tsx index 05e0ffeba5..fead1d9688 100644 --- a/site/src/examples/progress/WithMinVal.tsx +++ b/site/src/examples/progress/WithMinVal.tsx @@ -1,54 +1,36 @@ -import { ReactElement, useState } from "react"; import { + CircularProgress, FlexItem, - FlexLayout, - FlowLayout, H3, - RadioButton, - RadioButtonGroup, - CircularProgress, LinearProgress, + StackLayout, } from "@salt-ds/core"; +import { ReactElement } from "react"; export const WithMinVal = (): ReactElement => { - const [selectedType, setSelectedType] = useState("circular"); - const max = 40; const min = 20; const value = 30; return ( - +

{`max = ${max}, min = ${min}, value = ${value}`}

- - setSelectedType(e.target.value)} - > - - - - - - {selectedType === "circular" && ( - - )} - {selectedType === "linear" && ( - - )} + + + + + -
+ ); }; diff --git a/site/src/examples/progress/WithProgBufferVal.tsx b/site/src/examples/progress/WithProgBufferVal.tsx index ff74fbe9b6..9c7eba18b4 100644 --- a/site/src/examples/progress/WithProgBufferVal.tsx +++ b/site/src/examples/progress/WithProgBufferVal.tsx @@ -1,14 +1,12 @@ -import { ReactElement, useState, useEffect, useCallback } from "react"; import { Button, + CircularProgress, FlexItem, - FlexLayout, FlowLayout, - RadioButton, - RadioButtonGroup, - CircularProgress, LinearProgress, + StackLayout, } from "@salt-ds/core"; +import { ReactElement, useCallback, useEffect, useState } from "react"; function useProgressingValue(updateInterval = 100) { const [bufferValue, setBufferValue] = useState(0); @@ -45,7 +43,7 @@ function useProgressingValue(updateInterval = 100) { handleStop(); } }, - [bufferValue] + [bufferValue, handleStop] ); return { @@ -60,10 +58,9 @@ function useProgressingValue(updateInterval = 100) { export const WithProgBufferVal = (): ReactElement => { const { handleReset, handleStart, handleStop, isProgressing, bufferValue } = useProgressingValue(); - const [selectedType, setSelectedType] = useState("circular"); return ( - + - - setSelectedType(e.target.value)} - > - - - - - - - {selectedType === "circular" && ( - - )} - {selectedType === "linear" && ( - - )} + + + + + - + ); }; diff --git a/site/src/examples/progress/WithProgVal.tsx b/site/src/examples/progress/WithProgVal.tsx index 3233fbc575..caba320207 100644 --- a/site/src/examples/progress/WithProgVal.tsx +++ b/site/src/examples/progress/WithProgVal.tsx @@ -1,14 +1,12 @@ -import { ReactElement, useState, useEffect, useCallback } from "react"; import { Button, + CircularProgress, FlexItem, - FlexLayout, FlowLayout, - RadioButton, - RadioButtonGroup, - CircularProgress, LinearProgress, + StackLayout, } from "@salt-ds/core"; +import { ReactElement, useCallback, useEffect, useState } from "react"; function useProgressingValue(updateInterval = 100) { const [value, setValue] = useState(0); @@ -60,10 +58,9 @@ function useProgressingValue(updateInterval = 100) { export const WithProgVal = (): ReactElement => { const { handleReset, handleStart, handleStop, isProgressing, value } = useProgressingValue(); - const [selectedType, setSelectedType] = useState("circular"); return ( - + - - setSelectedType(e.target.value)} - > - - - - - - - {selectedType === "circular" && ( - - )} - {selectedType === "linear" && ( - - )} + + + + + - + ); }; diff --git a/site/src/examples/progress/index.ts b/site/src/examples/progress/index.ts index 2363afa574..9c2222195e 100644 --- a/site/src/examples/progress/index.ts +++ b/site/src/examples/progress/index.ts @@ -1,5 +1,6 @@ export * from "./Circular"; export * from "./Linear"; +export * from "./LinearIndeterminate"; export * from "./HiddenLabel"; export * from "./WithBuffer"; export * from "./WithMaxVal"; From 9d6919df329931a8c5bc82b18120c0d4977da103 Mon Sep 17 00:00:00 2001 From: Josh Wooding <12938082+joshwooding@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:18:09 +0100 Subject: [PATCH 04/51] Swap eslint with biome (#3678) --- .github/workflows/test.yml | 2 +- .prettierignore | 21 +- .storybook/main.ts | 16 +- .storybook/preview.tsx | 14 +- .storybook/toolbar/ThemeNextToolbar.tsx | 15 +- biome.jsonc | 153 ++ cypress.config.ts | 18 +- cypress/support/AnnouncementListener.tsx | 8 +- cypress/support/PerformanceTester.tsx | 19 +- cypress/support/assertions.ts | 68 +- cypress/support/commands.tsx | 34 +- cypress/tests/checkAccessibility.tsx | 19 +- docs/components/AllRenderer.tsx | 12 +- docs/components/BackgroundBlock.tsx | 2 +- docs/components/BlankBlock.tsx | 2 +- docs/components/CategoryColors.tsx | 2 +- docs/components/ColorBlock.tsx | 8 +- docs/components/ColorContainer.tsx | 2 +- docs/components/CornerBlock.tsx | 2 +- docs/components/CursorBlock.tsx | 2 +- docs/components/DocGrid.tsx | 6 +- docs/components/DraggableSnapshot.tsx | 16 +- docs/components/FontSizeBlock.tsx | 2 +- docs/components/FontWeightBlock.tsx | 2 +- docs/components/LetterSpacingBlock.tsx | 2 +- docs/components/LineBlock.tsx | 22 +- docs/components/OpacityBlock.tsx | 2 +- docs/components/QAContainer.tsx | 18 +- .../QAContainerNoStyleInjection.tsx | 12 +- docs/components/ResponsiveContainer.tsx | 4 +- docs/components/TextBlock.tsx | 1 - docs/decorators/withDateMock.tsx | 2 +- docs/decorators/withResponsiveWrapper.tsx | 2 +- docs/decorators/withScaffold.tsx | 2 +- docs/decorators/withTextSpacingWrapper.tsx | 2 +- docs/decorators/withTheme.tsx | 17 +- docs/public/mockServiceWorker.js | 3 - docs/story-layout/ColumnLayout.tsx | 2 +- docs/tsdeclarations.d.ts | 1 + eslint-local-rules.js | 30 +- package.json | 33 +- packages/ag-grid-theme/package.json | 5 +- packages/ag-grid-theme/scripts/build.mjs | 16 +- .../columnSpanningExampleColumns.ts | 8 +- .../customFilterExampleColumns.ts | 2 +- .../dependencies/dataGridExampleColumns.ts | 2 +- .../dataGridExampleColumnsColoration.ts | 5 +- .../dataGridExampleColumnsWrap.ts | 2 +- .../src/dependencies/useAgGridHelpers.ts | 14 +- .../src/examples/CheckboxSelection.tsx | 4 +- .../ag-grid-theme/src/examples/Coloration.tsx | 2 +- .../src/examples/ColumnGroup.tsx | 4 +- .../src/examples/ColumnSpanning.tsx | 2 +- .../src/examples/ContextMenu.tsx | 12 +- .../src/examples/CustomFilter.tsx | 34 +- .../ag-grid-theme/src/examples/Default.tsx | 2 +- .../src/examples/DragRowOrder.tsx | 2 +- .../src/examples/FloatingFilter.tsx | 2 +- .../ag-grid-theme/src/examples/HDCompact.tsx | 4 +- packages/ag-grid-theme/src/examples/Icons.tsx | 2 +- .../src/examples/InfiniteScroll.tsx | 22 +- .../src/examples/LoadingOverlay.tsx | 2 +- .../src/examples/MasterDetail.tsx | 17 +- .../src/examples/NoDataOverlay.tsx | 5 +- .../ag-grid-theme/src/examples/Pagination.tsx | 21 +- .../src/examples/ParentChildRows.tsx | 6 +- .../ag-grid-theme/src/examples/PinnedRows.tsx | 16 +- .../src/examples/RangeSelection.tsx | 6 +- .../src/examples/RowGroupPanel.tsx | 2 +- .../src/examples/RowGrouping.tsx | 2 +- .../src/examples/SortAndFilter.tsx | 4 +- .../ag-grid-theme/src/examples/StatusBar.tsx | 8 +- .../ag-grid-theme/src/examples/ToolPanel.tsx | 2 +- .../src/examples/VariantSecondary.tsx | 2 +- .../src/examples/VariantZebra.tsx | 2 +- .../src/examples/WrappedCell.tsx | 4 +- .../src/examples/WrappedHeader.tsx | 4 +- .../stories/ag-grid-theme.qa.stories.tsx | 27 +- packages/core/package.json | 4 +- packages/core/scripts/build.mjs | 16 +- .../__e2e__/accordion/Accordion.cy.tsx | 8 +- .../aria-announcer/AriaAnnouncer.cy.tsx | 16 +- .../aria-announcer/useAriaAnnounce.cy.tsx | 22 +- .../__tests__/__e2e__/avatar/Avatar.cy.tsx | 6 +- .../__tests__/__e2e__/banner/Banner.cy.tsx | 8 +- .../__e2e__/border-layout/BorderLayout.cy.tsx | 12 +- .../BreakpointProvider.cy.tsx | 16 +- .../__tests__/__e2e__/button/Button.cy.tsx | 2 +- .../src/__tests__/__e2e__/card/Card.cy.tsx | 4 +- .../__e2e__/checkbox/Checkbox.cy.tsx | 8 +- .../__e2e__/checkbox/CheckboxGroup.cy.tsx | 42 +- .../__e2e__/combo-box/ComboBox.cy.tsx | 78 +- .../CustomFloatingComponentProvider.tsx | 8 +- .../src/__tests__/__e2e__/declarations.d.ts | 1 + .../__tests__/__e2e__/dialog/Dialog.cy.tsx | 10 +- .../__tests__/__e2e__/divider/Divider.cy.tsx | 4 +- .../__tests__/__e2e__/drawer/Drawer.cy.tsx | 4 +- .../__e2e__/dropdown/Dropdown.cy.tsx | 42 +- .../file-drop-zone/FileDropZone.cy.tsx | 8 +- .../__e2e__/flex-layout/FlexLayout.cy.tsx | 30 +- .../floating-platform/FloatingPlatform.cy.tsx | 8 +- .../__e2e__/flow-layout/FlowLayout.cy.tsx | 2 +- .../__e2e__/form-field/FormField.cy.tsx | 70 +- .../__e2e__/grid-layout/GridLayout.cy.tsx | 28 +- .../src/__tests__/__e2e__/input/Input.cy.tsx | 32 +- .../interactable-card/InteractableCard.cy.tsx | 184 +-- .../__e2e__/link-card/LinkCard.cy.tsx | 4 +- .../src/__tests__/__e2e__/link/Link.cy.tsx | 8 +- .../__tests__/__e2e__/list-box/ListBox.cy.tsx | 28 +- .../src/__tests__/__e2e__/menu/Menu.cy.tsx | 12 +- .../multiline-input/MultilineInput.cy.tsx | 10 +- .../navigation-item/NavigationItem.cy.tsx | 18 +- .../__tests__/__e2e__/overlay/Overlay.cy.tsx | 2 +- .../__e2e__/pagination/Pagination.cy.tsx | 108 +- .../src/__tests__/__e2e__/panel/Panel.cy.tsx | 2 +- .../ParentChildLayout.cy.tsx | 20 +- .../src/__tests__/__e2e__/pill/Pill.cy.tsx | 2 +- .../__e2e__/progress/CircularProgress.cy.tsx | 2 +- .../__e2e__/progress/LinearProgress.cy.tsx | 2 +- .../radio-button/RadioButtonGroup.cy.tsx | 24 +- .../__e2e__/salt-provider/SaltProvider.cy.tsx | 52 +- .../src/__tests__/__e2e__/scrim/Scrim.cy.tsx | 2 +- .../SegmentedButtonGroup.cy.tsx | 4 +- .../__e2e__/split-layout/SplitLayout.cy.tsx | 6 +- .../__e2e__/stack-layout/StackLayout.cy.tsx | 4 +- .../status-indicator/StatusIndicator.cy.tsx | 14 +- .../__tests__/__e2e__/switch/Switch.cy.tsx | 4 +- .../src/__tests__/__e2e__/text/Text.cy.tsx | 8 +- .../src/__tests__/__e2e__/toast/Toast.cy.tsx | 16 +- .../ToggleButtonGroup.cy.tsx | 16 +- .../__e2e__/toggle-button/ToggleButton.cy.tsx | 4 +- .../__tests__/__e2e__/tooltip/Tooltip.cy.tsx | 14 +- .../__e2e__/utils/useFloatingUI.cy.tsx | 16 +- .../viewport-provider/ViewportProvider.cy.tsx | 14 +- .../unit/utils/getRefFromChildren.spec.tsx | 4 +- packages/core/src/accordion/Accordion.tsx | 16 +- .../core/src/accordion/AccordionContext.ts | 4 +- .../core/src/accordion/AccordionGroup.tsx | 12 +- .../core/src/accordion/AccordionHeader.tsx | 16 +- .../core/src/accordion/AccordionPanel.tsx | 10 +- .../core/src/aria-announcer/AriaAnnounce.tsx | 2 +- .../aria-announcer/AriaAnnouncerContext.ts | 2 +- .../aria-announcer/AriaAnnouncerProvider.tsx | 6 +- .../src/aria-announcer/useAriaAnnouncer.ts | 17 +- packages/core/src/avatar/Avatar.tsx | 10 +- packages/core/src/avatar/useAvatarImage.ts | 2 +- packages/core/src/badge/Badge.tsx | 8 +- packages/core/src/banner/Banner.tsx | 12 +- packages/core/src/banner/BannerActions.tsx | 10 +- packages/core/src/banner/BannerContent.tsx | 10 +- packages/core/src/border-item/BorderItem.tsx | 22 +- .../core/src/border-layout/BorderLayout.tsx | 24 +- .../src/breakpoints/BreakpointProvider.tsx | 7 +- packages/core/src/button/Button.css | 3 +- packages/core/src/button/Button.tsx | 14 +- packages/core/src/button/useButton.ts | 6 +- packages/core/src/card/Card.tsx | 89 +- packages/core/src/checkbox/Checkbox.tsx | 26 +- packages/core/src/checkbox/CheckboxGroup.tsx | 18 +- packages/core/src/checkbox/CheckboxIcon.tsx | 18 +- .../checkbox/internal/CheckboxGroupContext.ts | 6 +- packages/core/src/combo-box/ComboBox.tsx | 85 +- .../{useComboBox.tsx => useComboBox.ts} | 10 +- packages/core/src/dialog/Dialog.tsx | 221 ++- packages/core/src/dialog/DialogActions.tsx | 8 +- .../core/src/dialog/DialogCloseButton.tsx | 12 +- packages/core/src/dialog/DialogContent.tsx | 13 +- packages/core/src/dialog/DialogContext.tsx | 2 +- packages/core/src/dialog/DialogHeader.tsx | 16 +- packages/core/src/divider/Divider.tsx | 10 +- packages/core/src/drawer/Drawer.tsx | 159 +- .../core/src/drawer/DrawerCloseButton.tsx | 12 +- packages/core/src/dropdown/Dropdown.tsx | 85 +- .../core/src/file-drop-zone/FileDropZone.tsx | 18 +- .../src/file-drop-zone/FileDropZoneIcon.tsx | 4 +- .../file-drop-zone/FileDropZoneTrigger.tsx | 12 +- .../core/src/file-drop-zone/internal/utils.ts | 4 +- packages/core/src/flex-item/FlexItem.tsx | 27 +- packages/core/src/flex-layout/FlexLayout.tsx | 22 +- packages/core/src/flow-layout/FlowLayout.tsx | 12 +- .../form-field-context/FormFieldContext.ts | 2 +- .../form-field-context/useFormFieldProps.ts | 5 +- packages/core/src/form-field/FormField.tsx | 14 +- .../src/form-field/FormFieldHelperText.tsx | 8 +- .../core/src/form-field/FormFieldLabel.tsx | 4 +- packages/core/src/grid-item/GridItem.tsx | 20 +- packages/core/src/grid-layout/GridLayout.tsx | 18 +- packages/core/src/input/Input.tsx | 22 +- .../interactable-card/InteractableCard.tsx | 26 +- .../InteractableCardGroup.tsx | 63 +- .../InteractableCardGroupContext.tsx | 4 +- .../interactable-card/useInteractableCard.ts | 8 +- packages/core/src/link-card/LinkCard.tsx | 10 +- packages/core/src/link/Link.tsx | 12 +- packages/core/src/list-box/ListBox.tsx | 44 +- .../src/list-control/ListControlContext.tsx | 8 +- .../core/src/list-control/ListControlState.ts | 40 +- packages/core/src/menu/Menu.tsx | 2 +- packages/core/src/menu/MenuBase.tsx | 38 +- packages/core/src/menu/MenuContext.ts | 11 +- packages/core/src/menu/MenuGroup.tsx | 12 +- packages/core/src/menu/MenuItem.tsx | 29 +- packages/core/src/menu/MenuPanel.tsx | 12 +- packages/core/src/menu/MenuPanelBase.tsx | 6 +- packages/core/src/menu/MenuPanelContext.ts | 4 +- packages/core/src/menu/MenuTrigger.tsx | 10 +- packages/core/src/menu/MenuTriggerContext.ts | 2 +- .../src/multiline-input/MultilineInput.tsx | 22 +- .../navigation-item/ConditionalWrapper.tsx | 5 +- .../src/navigation-item/ExpansionIcon.tsx | 2 +- .../src/navigation-item/NavigationItem.tsx | 16 +- packages/core/src/option/Option.tsx | 225 ++- packages/core/src/option/OptionGroup.tsx | 12 +- packages/core/src/option/OptionList.tsx | 8 +- packages/core/src/option/OptionListBase.tsx | 8 +- packages/core/src/overlay/Overlay.tsx | 10 +- packages/core/src/overlay/OverlayContext.ts | 10 +- packages/core/src/overlay/OverlayPanel.tsx | 18 +- .../src/overlay/OverlayPanelCloseButton.tsx | 10 +- .../core/src/overlay/OverlayPanelContent.tsx | 10 +- packages/core/src/overlay/OverlayTrigger.tsx | 4 +- packages/core/src/pagination/CompactInput.tsx | 10 +- .../core/src/pagination/CompactPaginator.tsx | 10 +- packages/core/src/pagination/GoToInput.tsx | 16 +- packages/core/src/pagination/PageButton.tsx | 6 +- packages/core/src/pagination/PageRanges.tsx | 12 +- packages/core/src/pagination/Pagination.tsx | 20 +- .../core/src/pagination/PaginationContext.ts | 2 +- packages/core/src/pagination/Paginator.tsx | 10 +- packages/core/src/pagination/usePagination.ts | 2 +- .../src/pagination/usePaginationContext.ts | 2 +- packages/core/src/panel/Panel.tsx | 8 +- .../parent-child-layout/ParentChildLayout.tsx | 12 +- .../useIsViewportLargerThanBreakpoint.ts | 4 +- packages/core/src/pill-input/PillInput.tsx | 42 +- .../core/src/pill-input/useTruncatePills.ts | 17 +- packages/core/src/pill/Pill.tsx | 16 +- .../CircularProgress/CircularProgress.tsx | 16 +- .../LinearProgress/LinearProgress.tsx | 14 +- .../core/src/radio-button/RadioButton.tsx | 30 +- .../src/radio-button/RadioButtonGroup.tsx | 10 +- .../core/src/radio-button/RadioButtonIcon.tsx | 10 +- .../internal/RadioGroupContext.tsx | 4 +- .../core/src/salt-provider/SaltProvider.tsx | 93 +- packages/core/src/scrim/Scrim.tsx | 8 +- .../SegmentedButtonGroup.tsx | 6 +- packages/core/src/spinner/Spinner.tsx | 12 +- .../src/spinner/svgSpinners/SpinnerSVG.tsx | 6 +- .../core/src/split-layout/SplitLayout.tsx | 25 +- .../core/src/stack-layout/StackLayout.tsx | 30 +- .../src/status-adornment/ErrorAdornment.tsx | 4 +- .../src/status-adornment/StatusAdornment.tsx | 10 +- .../src/status-adornment/SuccessAdornment.tsx | 4 +- .../src/status-adornment/WarningAdornment.tsx | 4 +- .../src/status-indicator/StatusIndicator.tsx | 12 +- packages/core/src/switch/Switch.tsx | 203 ++- packages/core/src/tag/Tag.tsx | 10 +- packages/core/src/text/Code.tsx | 4 +- packages/core/src/text/Display.tsx | 2 +- packages/core/src/text/Headings.tsx | 10 +- packages/core/src/text/Label.tsx | 2 +- packages/core/src/text/Text.tsx | 22 +- packages/core/src/text/TextAction.tsx | 2 +- packages/core/src/text/TextNotation.tsx | 2 +- packages/core/src/theme/Theme.ts | 2 +- packages/core/src/toast/Toast.tsx | 71 +- packages/core/src/toast/ToastContent.tsx | 12 +- .../toggle-button-group/ToggleButtonGroup.tsx | 33 +- .../ToggleButtonGroupContext.ts | 2 +- .../core/src/toggle-button/ToggleButton.tsx | 14 +- packages/core/src/tooltip/Tooltip.tsx | 23 +- packages/core/src/tooltip/TooltipBase.tsx | 12 +- packages/core/src/tooltip/useAriaAnnounce.ts | 17 +- packages/core/src/tooltip/useTooltip.ts | 12 +- .../core/src/utils/createChainedFunction.ts | 5 +- packages/core/src/utils/createContext.ts | 4 +- packages/core/src/utils/debounce.ts | 3 +- packages/core/src/utils/getRefFromChildren.ts | 8 +- packages/core/src/utils/inferElementType.ts | 3 +- packages/core/src/utils/marginMiddleware.ts | 2 +- packages/core/src/utils/mergeProps.ts | 2 +- packages/core/src/utils/polymorphicTypes.ts | 6 +- packages/core/src/utils/setRef.ts | 4 +- packages/core/src/utils/useControlled.ts | 16 +- packages/core/src/utils/useEventCallback.ts | 8 +- .../src/utils/useFloatingUI/useFloatingUI.tsx | 24 +- packages/core/src/utils/useForkRef.ts | 4 +- packages/core/src/utils/useId.ts | 6 +- packages/core/src/utils/useIsFocusVisible.ts | 8 +- .../src/utils/useIsomorphicLayoutEffect.ts | 2 +- packages/core/src/utils/usePrevious.ts | 6 +- packages/core/src/utils/useResizeObserver.ts | 2 +- packages/core/src/utils/useResponsiveProp.ts | 42 +- packages/core/src/utils/useValueEffect.ts | 5 +- .../core/src/viewport/ViewportProvider.tsx | 4 +- .../accordion/accordion.qa.stories.tsx | 8 +- .../stories/accordion/accordion.stories.tsx | 20 +- .../aria-announcer/aria-announcer.stories.tsx | 21 +- .../core/stories/avatar/avatar.qa.stories.tsx | 8 +- .../core/stories/avatar/avatar.stories.tsx | 4 +- .../core/stories/badge/badge.qa.stories.tsx | 12 +- packages/core/stories/badge/badge.stories.tsx | 6 +- .../core/stories/banner/banner.qa.stories.tsx | 14 +- .../core/stories/banner/banner.stories.tsx | 19 +- .../border-item/border-item.stories.tsx | 4 +- .../border-layout/border-layout.stories.tsx | 2 +- .../core/stories/button/button.qa.stories.tsx | 8 +- .../core/stories/button/button.stories.tsx | 4 +- .../core/stories/card/card.qa.stories.tsx | 8 +- packages/core/stories/card/card.stories.tsx | 18 +- .../stories/checkbox/checkbox.qa.stories.tsx | 12 +- .../stories/checkbox/checkbox.stories.tsx | 8 +- .../combo-box/combo-box.qa.stories.tsx | 27 +- .../stories/combo-box/combo-box.stories.tsx | 104 +- .../core/stories/dialog/dialog.qa.stories.tsx | 18 +- .../core/stories/dialog/dialog.stories.tsx | 28 +- .../stories/divider/divider.qa.stories.tsx | 6 +- .../core/stories/divider/divider.stories.tsx | 4 +- .../core/stories/drawer/drawer.qa.stories.tsx | 6 +- .../core/stories/drawer/drawer.stories.tsx | 23 +- .../stories/dropdown/dropdown.qa.stories.tsx | 25 +- .../stories/dropdown/dropdown.stories.tsx | 30 +- .../file-drop-zone.qa.stories.tsx | 2 +- .../file-drop-zone/file-drop-zone.stories.tsx | 34 +- packages/core/stories/file-drop-zone/utils.ts | 4 +- .../stories/flex-item/flex-item.stories.tsx | 2 +- .../flex-layout/flex-layout.stories.tsx | 12 +- .../stories/floating-platform/NewWindow.tsx | 44 +- .../custom-floating-ui-platform.stories.tsx | 55 +- .../flow-layout/flow-layout.stories.tsx | 2 +- .../form-field/form-field.qa.stories.tsx | 10 +- .../stories/form-field/form-field.stories.tsx | 58 +- .../stories/grid-item/grid-item.stories.tsx | 2 +- .../grid-layout/grid-layout.stories.tsx | 8 +- .../core/stories/input/input.qa.stories.tsx | 16 +- packages/core/stories/input/input.stories.tsx | 6 +- .../interactable-card.stories.tsx | 28 +- .../link-card/link-card.qa.stories.tsx | 10 +- .../stories/link-card/link-card.stories.tsx | 14 +- .../core/stories/link/link.qa.stories.tsx | 8 +- packages/core/stories/link/link.stories.tsx | 2 +- .../stories/list-box/list-box.qa.stories.tsx | 4 +- .../stories/list-box/list-box.stories.tsx | 29 +- .../core/stories/menu/menu.qa.stories.tsx | 4 +- packages/core/stories/menu/menu.stories.tsx | 8 +- .../multiline-input.qa.stories.tsx | 8 +- .../multiline-input.stories.tsx | 14 +- .../navigation-item.qa.stories.tsx | 6 +- .../navigation-item.stories.tsx | 30 +- .../stories/overlay/overlay.qa.stories.tsx | 8 +- .../core/stories/overlay/overlay.stories.tsx | 20 +- .../pagination/pagination.qa.stories.tsx | 12 +- .../stories/pagination/pagination.stories.tsx | 12 +- .../core/stories/panel/panel.qa.stories.tsx | 8 +- packages/core/stories/panel/panel.stories.tsx | 2 +- .../parent-child-layout.stories.tsx | 30 +- .../app-header/app-header.stories.tsx | 20 +- .../breadcrumbs/breadcrumbs.stories.tsx | 10 +- .../button-bar/button-bar.stories.tsx | 16 +- .../contact-details.stories.tsx | 22 +- .../content-status/content-status.stories.tsx | 8 +- .../stories/patterns/forms/forms.stories.tsx | 48 +- .../list-builder/list-builder.stories.tsx | 42 +- .../menu-button/menu-button.stories.tsx | 12 +- .../patterns/metric/metric.stories.tsx | 8 +- .../navigation/navigation.stories.tsx | 16 +- .../patterns/search/search.stories.tsx | 8 +- .../selectable-card.stories.tsx | 14 +- .../split-button/split-button.stories.tsx | 12 +- .../vertical-navigation.stories.tsx | 15 +- .../core/stories/pill/pill.qa.stories.tsx | 4 +- packages/core/stories/pill/pill.stories.tsx | 6 +- .../progress/circular-progress.stories.tsx | 6 +- .../progress/linear-progress.stories.tsx | 4 +- .../stories/progress/progress.qa.stories.tsx | 4 +- .../stories/progress/useProgressingValue.tsx | 2 +- .../radio-button/radio-button.qa.stories.tsx | 10 +- .../radio-button/radio-button.stories.tsx | 4 +- .../salt-provider/salt-provider.stories.tsx | 10 +- .../core/stories/scrim/scrim.qa.stories.tsx | 2 +- packages/core/stories/scrim/scrim.stories.tsx | 4 +- .../segmented-button-group.qa.stories.tsx | 8 +- .../segmented-button-group.stories.tsx | 10 +- .../stories/spinner/spinner.qa.stories.tsx | 8 +- .../core/stories/spinner/spinner.stories.tsx | 2 +- .../split-layout/split-layout.stories.tsx | 2 +- .../stack-layout/stack-layout.stories.tsx | 8 +- .../status-indicator.qa.stories.tsx | 8 +- .../status-indicator.stories.tsx | 12 +- .../style-injection.default.stories.tsx | 2 +- .../style-injection.disabled.stories.tsx | 2 +- .../style-injection.enabled.stories.tsx | 2 +- .../core/stories/switch/switch.qa.stories.tsx | 6 +- .../core/stories/switch/switch.stories.tsx | 4 +- packages/core/stories/tag/tag.qa.stories.tsx | 6 +- packages/core/stories/tag/tag.stories.tsx | 4 +- .../stories/text/text-playground.stories.tsx | 5 +- .../core/stories/text/text.qa.stories.tsx | 12 +- packages/core/stories/text/text.stories.tsx | 6 +- .../core/stories/toast/toast.qa.stories.tsx | 10 +- packages/core/stories/toast/toast.stories.tsx | 6 +- .../toggle-button-group.qa.stories.tsx | 8 +- .../toggle-button-group.stories.tsx | 8 +- .../toggle-button.qa.stories.tsx | 10 +- .../toggle-button/toggle-button.stories.tsx | 4 +- .../stories/tooltip/tooltip.qa.stories.tsx | 12 +- .../core/stories/tooltip/tooltip.stories.tsx | 4 +- packages/countries/package.json | 6 +- packages/countries/scripts/copyCss.mjs | 4 +- .../scripts/generateCountrySymbol.mjs | 84 +- .../__tests__/__e2e__/CountrySymbol.cy.tsx | 2 +- .../__e2e__/LazyCountrySymbol.cy.tsx | 2 +- packages/countries/src/components/AD.tsx | 6 +- .../countries/src/components/AD_Sharp.tsx | 8 +- packages/countries/src/components/AE.tsx | 6 +- .../countries/src/components/AE_Sharp.tsx | 8 +- packages/countries/src/components/AF.tsx | 6 +- .../countries/src/components/AF_Sharp.tsx | 8 +- packages/countries/src/components/AG.tsx | 6 +- .../countries/src/components/AG_Sharp.tsx | 8 +- packages/countries/src/components/AI.tsx | 6 +- .../countries/src/components/AI_Sharp.tsx | 8 +- packages/countries/src/components/AL.tsx | 6 +- .../countries/src/components/AL_Sharp.tsx | 8 +- packages/countries/src/components/AM.tsx | 6 +- .../countries/src/components/AM_Sharp.tsx | 8 +- packages/countries/src/components/AO.tsx | 6 +- .../countries/src/components/AO_Sharp.tsx | 8 +- packages/countries/src/components/AQ.tsx | 6 +- .../countries/src/components/AQ_Sharp.tsx | 8 +- packages/countries/src/components/AR.tsx | 6 +- .../countries/src/components/AR_Sharp.tsx | 8 +- packages/countries/src/components/AS.tsx | 6 +- .../countries/src/components/AS_Sharp.tsx | 8 +- packages/countries/src/components/AT.tsx | 6 +- .../countries/src/components/AT_Sharp.tsx | 8 +- packages/countries/src/components/AU.tsx | 6 +- .../countries/src/components/AU_Sharp.tsx | 8 +- packages/countries/src/components/AW.tsx | 6 +- .../countries/src/components/AW_Sharp.tsx | 8 +- packages/countries/src/components/AX.tsx | 6 +- .../countries/src/components/AX_Sharp.tsx | 8 +- packages/countries/src/components/AZ.tsx | 6 +- .../countries/src/components/AZ_Sharp.tsx | 8 +- packages/countries/src/components/BA.tsx | 6 +- .../countries/src/components/BA_Sharp.tsx | 8 +- packages/countries/src/components/BB.tsx | 6 +- .../countries/src/components/BB_Sharp.tsx | 8 +- packages/countries/src/components/BD.tsx | 6 +- .../countries/src/components/BD_Sharp.tsx | 8 +- packages/countries/src/components/BE.tsx | 6 +- .../countries/src/components/BE_Sharp.tsx | 8 +- packages/countries/src/components/BF.tsx | 6 +- .../countries/src/components/BF_Sharp.tsx | 8 +- packages/countries/src/components/BG.tsx | 6 +- .../countries/src/components/BG_Sharp.tsx | 8 +- packages/countries/src/components/BH.tsx | 6 +- .../countries/src/components/BH_Sharp.tsx | 8 +- packages/countries/src/components/BI.tsx | 6 +- .../countries/src/components/BI_Sharp.tsx | 8 +- packages/countries/src/components/BJ.tsx | 6 +- .../countries/src/components/BJ_Sharp.tsx | 8 +- packages/countries/src/components/BL.tsx | 6 +- .../countries/src/components/BL_Sharp.tsx | 8 +- packages/countries/src/components/BM.tsx | 6 +- .../countries/src/components/BM_Sharp.tsx | 8 +- packages/countries/src/components/BN.tsx | 6 +- .../countries/src/components/BN_Sharp.tsx | 8 +- packages/countries/src/components/BO.tsx | 6 +- .../countries/src/components/BO_Sharp.tsx | 8 +- packages/countries/src/components/BQ.tsx | 6 +- .../countries/src/components/BQ_Sharp.tsx | 8 +- packages/countries/src/components/BR.tsx | 6 +- .../countries/src/components/BR_Sharp.tsx | 8 +- packages/countries/src/components/BS.tsx | 6 +- .../countries/src/components/BS_Sharp.tsx | 8 +- packages/countries/src/components/BT.tsx | 6 +- .../countries/src/components/BT_Sharp.tsx | 8 +- packages/countries/src/components/BV.tsx | 6 +- .../countries/src/components/BV_Sharp.tsx | 8 +- packages/countries/src/components/BW.tsx | 6 +- .../countries/src/components/BW_Sharp.tsx | 8 +- packages/countries/src/components/BY.tsx | 6 +- .../countries/src/components/BY_Sharp.tsx | 8 +- packages/countries/src/components/BZ.tsx | 6 +- .../countries/src/components/BZ_Sharp.tsx | 8 +- packages/countries/src/components/CA.tsx | 6 +- .../countries/src/components/CA_Sharp.tsx | 8 +- packages/countries/src/components/CC.tsx | 6 +- .../countries/src/components/CC_Sharp.tsx | 8 +- packages/countries/src/components/CD.tsx | 6 +- .../countries/src/components/CD_Sharp.tsx | 8 +- packages/countries/src/components/CF.tsx | 6 +- .../countries/src/components/CF_Sharp.tsx | 8 +- packages/countries/src/components/CG.tsx | 6 +- .../countries/src/components/CG_Sharp.tsx | 8 +- packages/countries/src/components/CH.tsx | 6 +- .../countries/src/components/CH_Sharp.tsx | 8 +- packages/countries/src/components/CI.tsx | 6 +- .../countries/src/components/CI_Sharp.tsx | 8 +- packages/countries/src/components/CK.tsx | 6 +- .../countries/src/components/CK_Sharp.tsx | 8 +- packages/countries/src/components/CL.tsx | 6 +- .../countries/src/components/CL_Sharp.tsx | 8 +- packages/countries/src/components/CM.tsx | 6 +- .../countries/src/components/CM_Sharp.tsx | 8 +- packages/countries/src/components/CN.tsx | 6 +- .../countries/src/components/CN_Sharp.tsx | 8 +- packages/countries/src/components/CO.tsx | 6 +- .../countries/src/components/CO_Sharp.tsx | 8 +- packages/countries/src/components/CR.tsx | 6 +- .../countries/src/components/CR_Sharp.tsx | 8 +- packages/countries/src/components/CU.tsx | 6 +- .../countries/src/components/CU_Sharp.tsx | 8 +- packages/countries/src/components/CV.tsx | 6 +- .../countries/src/components/CV_Sharp.tsx | 8 +- packages/countries/src/components/CW.tsx | 6 +- .../countries/src/components/CW_Sharp.tsx | 8 +- packages/countries/src/components/CX.tsx | 6 +- .../countries/src/components/CX_Sharp.tsx | 8 +- packages/countries/src/components/CY.tsx | 6 +- .../countries/src/components/CY_Sharp.tsx | 8 +- packages/countries/src/components/CZ.tsx | 6 +- .../countries/src/components/CZ_Sharp.tsx | 8 +- packages/countries/src/components/DE.tsx | 6 +- .../countries/src/components/DE_Sharp.tsx | 8 +- packages/countries/src/components/DJ.tsx | 6 +- .../countries/src/components/DJ_Sharp.tsx | 8 +- packages/countries/src/components/DK.tsx | 6 +- .../countries/src/components/DK_Sharp.tsx | 8 +- packages/countries/src/components/DM.tsx | 6 +- .../countries/src/components/DM_Sharp.tsx | 8 +- packages/countries/src/components/DO.tsx | 6 +- .../countries/src/components/DO_Sharp.tsx | 8 +- packages/countries/src/components/DZ.tsx | 6 +- .../countries/src/components/DZ_Sharp.tsx | 8 +- packages/countries/src/components/EC.tsx | 6 +- .../countries/src/components/EC_Sharp.tsx | 8 +- packages/countries/src/components/EE.tsx | 6 +- .../countries/src/components/EE_Sharp.tsx | 8 +- packages/countries/src/components/EG.tsx | 6 +- .../countries/src/components/EG_Sharp.tsx | 8 +- packages/countries/src/components/EH.tsx | 6 +- .../countries/src/components/EH_Sharp.tsx | 8 +- packages/countries/src/components/ER.tsx | 6 +- .../countries/src/components/ER_Sharp.tsx | 8 +- packages/countries/src/components/ES.tsx | 6 +- .../countries/src/components/ES_Sharp.tsx | 8 +- packages/countries/src/components/ET.tsx | 6 +- .../countries/src/components/ET_Sharp.tsx | 8 +- packages/countries/src/components/EU.tsx | 6 +- .../countries/src/components/EU_Sharp.tsx | 8 +- packages/countries/src/components/FI.tsx | 6 +- .../countries/src/components/FI_Sharp.tsx | 8 +- packages/countries/src/components/FJ.tsx | 6 +- .../countries/src/components/FJ_Sharp.tsx | 8 +- packages/countries/src/components/FK.tsx | 6 +- .../countries/src/components/FK_Sharp.tsx | 8 +- packages/countries/src/components/FM.tsx | 6 +- .../countries/src/components/FM_Sharp.tsx | 8 +- packages/countries/src/components/FO.tsx | 6 +- .../countries/src/components/FO_Sharp.tsx | 8 +- packages/countries/src/components/FR.tsx | 6 +- .../countries/src/components/FR_Sharp.tsx | 8 +- packages/countries/src/components/GA.tsx | 6 +- .../countries/src/components/GA_Sharp.tsx | 8 +- packages/countries/src/components/GB-ENG.tsx | 8 +- .../countries/src/components/GB-ENG_Sharp.tsx | 8 +- packages/countries/src/components/GB-NIR.tsx | 8 +- .../countries/src/components/GB-NIR_Sharp.tsx | 8 +- packages/countries/src/components/GB-SCT.tsx | 8 +- .../countries/src/components/GB-SCT_Sharp.tsx | 8 +- packages/countries/src/components/GB-WLS.tsx | 8 +- .../countries/src/components/GB-WLS_Sharp.tsx | 8 +- packages/countries/src/components/GB.tsx | 6 +- .../countries/src/components/GB_Sharp.tsx | 8 +- packages/countries/src/components/GD.tsx | 6 +- .../countries/src/components/GD_Sharp.tsx | 8 +- packages/countries/src/components/GE.tsx | 6 +- .../countries/src/components/GE_Sharp.tsx | 8 +- packages/countries/src/components/GF.tsx | 6 +- .../countries/src/components/GF_Sharp.tsx | 8 +- packages/countries/src/components/GG.tsx | 6 +- .../countries/src/components/GG_Sharp.tsx | 8 +- packages/countries/src/components/GH.tsx | 6 +- .../countries/src/components/GH_Sharp.tsx | 8 +- packages/countries/src/components/GI.tsx | 6 +- .../countries/src/components/GI_Sharp.tsx | 8 +- packages/countries/src/components/GL.tsx | 6 +- .../countries/src/components/GL_Sharp.tsx | 8 +- packages/countries/src/components/GM.tsx | 6 +- .../countries/src/components/GM_Sharp.tsx | 8 +- packages/countries/src/components/GN.tsx | 6 +- .../countries/src/components/GN_Sharp.tsx | 8 +- packages/countries/src/components/GP.tsx | 6 +- .../countries/src/components/GP_Sharp.tsx | 8 +- packages/countries/src/components/GQ.tsx | 6 +- .../countries/src/components/GQ_Sharp.tsx | 8 +- packages/countries/src/components/GR.tsx | 6 +- .../countries/src/components/GR_Sharp.tsx | 8 +- packages/countries/src/components/GS.tsx | 6 +- .../countries/src/components/GS_Sharp.tsx | 8 +- packages/countries/src/components/GT.tsx | 6 +- .../countries/src/components/GT_Sharp.tsx | 8 +- packages/countries/src/components/GU.tsx | 6 +- .../countries/src/components/GU_Sharp.tsx | 8 +- packages/countries/src/components/GW.tsx | 6 +- .../countries/src/components/GW_Sharp.tsx | 8 +- packages/countries/src/components/GY.tsx | 6 +- .../countries/src/components/GY_Sharp.tsx | 8 +- packages/countries/src/components/HK.tsx | 6 +- .../countries/src/components/HK_Sharp.tsx | 8 +- packages/countries/src/components/HM.tsx | 6 +- .../countries/src/components/HM_Sharp.tsx | 8 +- packages/countries/src/components/HN.tsx | 6 +- .../countries/src/components/HN_Sharp.tsx | 8 +- packages/countries/src/components/HR.tsx | 6 +- .../countries/src/components/HR_Sharp.tsx | 8 +- packages/countries/src/components/HT.tsx | 6 +- .../countries/src/components/HT_Sharp.tsx | 8 +- packages/countries/src/components/HU.tsx | 6 +- .../countries/src/components/HU_Sharp.tsx | 8 +- packages/countries/src/components/ID.tsx | 6 +- .../countries/src/components/ID_Sharp.tsx | 8 +- packages/countries/src/components/IE.tsx | 6 +- .../countries/src/components/IE_Sharp.tsx | 8 +- packages/countries/src/components/IL.tsx | 6 +- .../countries/src/components/IL_Sharp.tsx | 8 +- packages/countries/src/components/IM.tsx | 6 +- .../countries/src/components/IM_Sharp.tsx | 8 +- packages/countries/src/components/IN.tsx | 6 +- .../countries/src/components/IN_Sharp.tsx | 8 +- packages/countries/src/components/IO.tsx | 6 +- .../countries/src/components/IO_Sharp.tsx | 8 +- packages/countries/src/components/IQ.tsx | 6 +- .../countries/src/components/IQ_Sharp.tsx | 8 +- packages/countries/src/components/IR.tsx | 6 +- .../countries/src/components/IR_Sharp.tsx | 8 +- packages/countries/src/components/IS.tsx | 6 +- .../countries/src/components/IS_Sharp.tsx | 8 +- packages/countries/src/components/IT.tsx | 6 +- .../countries/src/components/IT_Sharp.tsx | 8 +- packages/countries/src/components/JE.tsx | 6 +- .../countries/src/components/JE_Sharp.tsx | 8 +- packages/countries/src/components/JM.tsx | 6 +- .../countries/src/components/JM_Sharp.tsx | 8 +- packages/countries/src/components/JO.tsx | 6 +- .../countries/src/components/JO_Sharp.tsx | 8 +- packages/countries/src/components/JP.tsx | 6 +- .../countries/src/components/JP_Sharp.tsx | 8 +- packages/countries/src/components/KE.tsx | 6 +- .../countries/src/components/KE_Sharp.tsx | 8 +- packages/countries/src/components/KG.tsx | 6 +- .../countries/src/components/KG_Sharp.tsx | 8 +- packages/countries/src/components/KH.tsx | 6 +- .../countries/src/components/KH_Sharp.tsx | 8 +- packages/countries/src/components/KI.tsx | 6 +- .../countries/src/components/KI_Sharp.tsx | 8 +- packages/countries/src/components/KM.tsx | 6 +- .../countries/src/components/KM_Sharp.tsx | 8 +- packages/countries/src/components/KN.tsx | 6 +- .../countries/src/components/KN_Sharp.tsx | 8 +- packages/countries/src/components/KP.tsx | 6 +- .../countries/src/components/KP_Sharp.tsx | 8 +- packages/countries/src/components/KR.tsx | 6 +- .../countries/src/components/KR_Sharp.tsx | 8 +- packages/countries/src/components/KW.tsx | 6 +- .../countries/src/components/KW_Sharp.tsx | 8 +- packages/countries/src/components/KY.tsx | 6 +- .../countries/src/components/KY_Sharp.tsx | 8 +- packages/countries/src/components/KZ.tsx | 6 +- .../countries/src/components/KZ_Sharp.tsx | 8 +- packages/countries/src/components/LA.tsx | 6 +- .../countries/src/components/LA_Sharp.tsx | 8 +- packages/countries/src/components/LB.tsx | 6 +- .../countries/src/components/LB_Sharp.tsx | 8 +- packages/countries/src/components/LC.tsx | 6 +- .../countries/src/components/LC_Sharp.tsx | 8 +- packages/countries/src/components/LI.tsx | 6 +- .../countries/src/components/LI_Sharp.tsx | 8 +- packages/countries/src/components/LK.tsx | 6 +- .../countries/src/components/LK_Sharp.tsx | 8 +- packages/countries/src/components/LR.tsx | 6 +- .../countries/src/components/LR_Sharp.tsx | 8 +- packages/countries/src/components/LS.tsx | 6 +- .../countries/src/components/LS_Sharp.tsx | 8 +- packages/countries/src/components/LT.tsx | 6 +- .../countries/src/components/LT_Sharp.tsx | 8 +- packages/countries/src/components/LU.tsx | 6 +- .../countries/src/components/LU_Sharp.tsx | 8 +- packages/countries/src/components/LV.tsx | 6 +- .../countries/src/components/LV_Sharp.tsx | 8 +- packages/countries/src/components/LY.tsx | 6 +- .../countries/src/components/LY_Sharp.tsx | 8 +- packages/countries/src/components/MA.tsx | 6 +- .../countries/src/components/MA_Sharp.tsx | 8 +- packages/countries/src/components/MC.tsx | 6 +- .../countries/src/components/MC_Sharp.tsx | 8 +- packages/countries/src/components/MD.tsx | 6 +- .../countries/src/components/MD_Sharp.tsx | 8 +- packages/countries/src/components/ME.tsx | 6 +- .../countries/src/components/ME_Sharp.tsx | 8 +- packages/countries/src/components/MF.tsx | 6 +- .../countries/src/components/MF_Sharp.tsx | 8 +- packages/countries/src/components/MG.tsx | 6 +- .../countries/src/components/MG_Sharp.tsx | 8 +- packages/countries/src/components/MH.tsx | 6 +- .../countries/src/components/MH_Sharp.tsx | 8 +- packages/countries/src/components/MK.tsx | 6 +- .../countries/src/components/MK_Sharp.tsx | 8 +- packages/countries/src/components/ML.tsx | 6 +- .../countries/src/components/ML_Sharp.tsx | 8 +- packages/countries/src/components/MM.tsx | 6 +- .../countries/src/components/MM_Sharp.tsx | 8 +- packages/countries/src/components/MN.tsx | 6 +- .../countries/src/components/MN_Sharp.tsx | 8 +- packages/countries/src/components/MO.tsx | 6 +- .../countries/src/components/MO_Sharp.tsx | 8 +- packages/countries/src/components/MP.tsx | 6 +- .../countries/src/components/MP_Sharp.tsx | 8 +- packages/countries/src/components/MQ.tsx | 6 +- .../countries/src/components/MQ_Sharp.tsx | 8 +- packages/countries/src/components/MR.tsx | 6 +- .../countries/src/components/MR_Sharp.tsx | 8 +- packages/countries/src/components/MS.tsx | 6 +- .../countries/src/components/MS_Sharp.tsx | 8 +- packages/countries/src/components/MT.tsx | 6 +- .../countries/src/components/MT_Sharp.tsx | 8 +- packages/countries/src/components/MU.tsx | 6 +- .../countries/src/components/MU_Sharp.tsx | 8 +- packages/countries/src/components/MV.tsx | 6 +- .../countries/src/components/MV_Sharp.tsx | 8 +- packages/countries/src/components/MW.tsx | 6 +- .../countries/src/components/MW_Sharp.tsx | 8 +- packages/countries/src/components/MX.tsx | 6 +- .../countries/src/components/MX_Sharp.tsx | 8 +- packages/countries/src/components/MY.tsx | 6 +- .../countries/src/components/MY_Sharp.tsx | 8 +- packages/countries/src/components/MZ.tsx | 6 +- .../countries/src/components/MZ_Sharp.tsx | 8 +- packages/countries/src/components/NA.tsx | 6 +- .../countries/src/components/NA_Sharp.tsx | 8 +- packages/countries/src/components/NC.tsx | 6 +- .../countries/src/components/NC_Sharp.tsx | 8 +- packages/countries/src/components/NE.tsx | 6 +- .../countries/src/components/NE_Sharp.tsx | 8 +- packages/countries/src/components/NF.tsx | 6 +- .../countries/src/components/NF_Sharp.tsx | 8 +- packages/countries/src/components/NG.tsx | 6 +- .../countries/src/components/NG_Sharp.tsx | 8 +- packages/countries/src/components/NI.tsx | 6 +- .../countries/src/components/NI_Sharp.tsx | 8 +- packages/countries/src/components/NL.tsx | 6 +- .../countries/src/components/NL_Sharp.tsx | 8 +- packages/countries/src/components/NO.tsx | 6 +- .../countries/src/components/NO_Sharp.tsx | 8 +- packages/countries/src/components/NP.tsx | 6 +- .../countries/src/components/NP_Sharp.tsx | 8 +- packages/countries/src/components/NR.tsx | 6 +- .../countries/src/components/NR_Sharp.tsx | 8 +- packages/countries/src/components/NU.tsx | 6 +- .../countries/src/components/NU_Sharp.tsx | 8 +- packages/countries/src/components/NZ.tsx | 6 +- .../countries/src/components/NZ_Sharp.tsx | 8 +- packages/countries/src/components/OM.tsx | 6 +- .../countries/src/components/OM_Sharp.tsx | 8 +- packages/countries/src/components/PA.tsx | 6 +- .../countries/src/components/PA_Sharp.tsx | 8 +- packages/countries/src/components/PE.tsx | 6 +- .../countries/src/components/PE_Sharp.tsx | 8 +- packages/countries/src/components/PF.tsx | 6 +- .../countries/src/components/PF_Sharp.tsx | 8 +- packages/countries/src/components/PG.tsx | 6 +- .../countries/src/components/PG_Sharp.tsx | 8 +- packages/countries/src/components/PH.tsx | 6 +- .../countries/src/components/PH_Sharp.tsx | 8 +- packages/countries/src/components/PK.tsx | 6 +- .../countries/src/components/PK_Sharp.tsx | 8 +- packages/countries/src/components/PL.tsx | 6 +- .../countries/src/components/PL_Sharp.tsx | 8 +- packages/countries/src/components/PM.tsx | 6 +- .../countries/src/components/PM_Sharp.tsx | 8 +- packages/countries/src/components/PN.tsx | 6 +- .../countries/src/components/PN_Sharp.tsx | 8 +- packages/countries/src/components/PR.tsx | 6 +- .../countries/src/components/PR_Sharp.tsx | 8 +- packages/countries/src/components/PS.tsx | 6 +- .../countries/src/components/PS_Sharp.tsx | 8 +- packages/countries/src/components/PT.tsx | 6 +- .../countries/src/components/PT_Sharp.tsx | 8 +- packages/countries/src/components/PW.tsx | 6 +- .../countries/src/components/PW_Sharp.tsx | 8 +- packages/countries/src/components/PY.tsx | 6 +- .../countries/src/components/PY_Sharp.tsx | 8 +- packages/countries/src/components/QA.tsx | 6 +- .../countries/src/components/QA_Sharp.tsx | 8 +- packages/countries/src/components/RE.tsx | 6 +- .../countries/src/components/RE_Sharp.tsx | 8 +- packages/countries/src/components/RO.tsx | 6 +- .../countries/src/components/RO_Sharp.tsx | 8 +- packages/countries/src/components/RS.tsx | 6 +- .../countries/src/components/RS_Sharp.tsx | 8 +- packages/countries/src/components/RU.tsx | 6 +- .../countries/src/components/RU_Sharp.tsx | 8 +- packages/countries/src/components/RW.tsx | 6 +- .../countries/src/components/RW_Sharp.tsx | 8 +- packages/countries/src/components/SA.tsx | 6 +- .../countries/src/components/SA_Sharp.tsx | 8 +- packages/countries/src/components/SB.tsx | 6 +- .../countries/src/components/SB_Sharp.tsx | 8 +- packages/countries/src/components/SC.tsx | 6 +- .../countries/src/components/SC_Sharp.tsx | 8 +- packages/countries/src/components/SD.tsx | 6 +- .../countries/src/components/SD_Sharp.tsx | 8 +- packages/countries/src/components/SE.tsx | 6 +- .../countries/src/components/SE_Sharp.tsx | 8 +- packages/countries/src/components/SG.tsx | 6 +- .../countries/src/components/SG_Sharp.tsx | 8 +- packages/countries/src/components/SH.tsx | 6 +- .../countries/src/components/SH_Sharp.tsx | 8 +- packages/countries/src/components/SI.tsx | 6 +- .../countries/src/components/SI_Sharp.tsx | 8 +- packages/countries/src/components/SJ.tsx | 6 +- .../countries/src/components/SJ_Sharp.tsx | 8 +- packages/countries/src/components/SK.tsx | 6 +- .../countries/src/components/SK_Sharp.tsx | 8 +- packages/countries/src/components/SL.tsx | 6 +- .../countries/src/components/SL_Sharp.tsx | 8 +- packages/countries/src/components/SM.tsx | 6 +- .../countries/src/components/SM_Sharp.tsx | 8 +- packages/countries/src/components/SN.tsx | 6 +- .../countries/src/components/SN_Sharp.tsx | 8 +- packages/countries/src/components/SO.tsx | 6 +- .../countries/src/components/SO_Sharp.tsx | 8 +- packages/countries/src/components/SR.tsx | 6 +- .../countries/src/components/SR_Sharp.tsx | 8 +- packages/countries/src/components/SS.tsx | 6 +- .../countries/src/components/SS_Sharp.tsx | 8 +- packages/countries/src/components/ST.tsx | 6 +- .../countries/src/components/ST_Sharp.tsx | 8 +- packages/countries/src/components/SV.tsx | 6 +- .../countries/src/components/SV_Sharp.tsx | 8 +- packages/countries/src/components/SX.tsx | 6 +- .../countries/src/components/SX_Sharp.tsx | 8 +- packages/countries/src/components/SY.tsx | 6 +- .../countries/src/components/SY_Sharp.tsx | 8 +- packages/countries/src/components/SZ.tsx | 6 +- .../countries/src/components/SZ_Sharp.tsx | 8 +- packages/countries/src/components/TC.tsx | 6 +- .../countries/src/components/TC_Sharp.tsx | 8 +- packages/countries/src/components/TD.tsx | 6 +- .../countries/src/components/TD_Sharp.tsx | 8 +- packages/countries/src/components/TF.tsx | 6 +- .../countries/src/components/TF_Sharp.tsx | 8 +- packages/countries/src/components/TG.tsx | 6 +- .../countries/src/components/TG_Sharp.tsx | 8 +- packages/countries/src/components/TH.tsx | 6 +- .../countries/src/components/TH_Sharp.tsx | 8 +- packages/countries/src/components/TJ.tsx | 6 +- .../countries/src/components/TJ_Sharp.tsx | 8 +- packages/countries/src/components/TK.tsx | 6 +- .../countries/src/components/TK_Sharp.tsx | 8 +- packages/countries/src/components/TL.tsx | 6 +- .../countries/src/components/TL_Sharp.tsx | 8 +- packages/countries/src/components/TM.tsx | 6 +- .../countries/src/components/TM_Sharp.tsx | 8 +- packages/countries/src/components/TN.tsx | 6 +- .../countries/src/components/TN_Sharp.tsx | 8 +- packages/countries/src/components/TO.tsx | 6 +- .../countries/src/components/TO_Sharp.tsx | 8 +- packages/countries/src/components/TR.tsx | 6 +- .../countries/src/components/TR_Sharp.tsx | 8 +- packages/countries/src/components/TT.tsx | 6 +- .../countries/src/components/TT_Sharp.tsx | 8 +- packages/countries/src/components/TV.tsx | 6 +- .../countries/src/components/TV_Sharp.tsx | 8 +- packages/countries/src/components/TW.tsx | 6 +- .../countries/src/components/TW_Sharp.tsx | 8 +- packages/countries/src/components/TZ.tsx | 6 +- .../countries/src/components/TZ_Sharp.tsx | 8 +- packages/countries/src/components/UA.tsx | 6 +- .../countries/src/components/UA_Sharp.tsx | 8 +- packages/countries/src/components/UG.tsx | 6 +- .../countries/src/components/UG_Sharp.tsx | 8 +- packages/countries/src/components/UM.tsx | 6 +- .../countries/src/components/UM_Sharp.tsx | 8 +- packages/countries/src/components/UN.tsx | 6 +- .../countries/src/components/UN_Sharp.tsx | 8 +- packages/countries/src/components/US.tsx | 6 +- .../countries/src/components/US_Sharp.tsx | 8 +- packages/countries/src/components/UY.tsx | 6 +- .../countries/src/components/UY_Sharp.tsx | 8 +- packages/countries/src/components/UZ.tsx | 6 +- .../countries/src/components/UZ_Sharp.tsx | 8 +- packages/countries/src/components/VA.tsx | 6 +- .../countries/src/components/VA_Sharp.tsx | 8 +- packages/countries/src/components/VC.tsx | 6 +- .../countries/src/components/VC_Sharp.tsx | 8 +- packages/countries/src/components/VE.tsx | 6 +- .../countries/src/components/VE_Sharp.tsx | 8 +- packages/countries/src/components/VG.tsx | 6 +- .../countries/src/components/VG_Sharp.tsx | 8 +- packages/countries/src/components/VI.tsx | 6 +- .../countries/src/components/VI_Sharp.tsx | 8 +- packages/countries/src/components/VN.tsx | 6 +- .../countries/src/components/VN_Sharp.tsx | 8 +- packages/countries/src/components/VU.tsx | 6 +- .../countries/src/components/VU_Sharp.tsx | 8 +- packages/countries/src/components/WF.tsx | 6 +- .../countries/src/components/WF_Sharp.tsx | 8 +- packages/countries/src/components/WS.tsx | 6 +- .../countries/src/components/WS_Sharp.tsx | 8 +- packages/countries/src/components/XK.tsx | 6 +- .../countries/src/components/XK_Sharp.tsx | 8 +- packages/countries/src/components/YE.tsx | 6 +- .../countries/src/components/YE_Sharp.tsx | 8 +- packages/countries/src/components/YT.tsx | 6 +- .../countries/src/components/YT_Sharp.tsx | 8 +- packages/countries/src/components/ZA.tsx | 6 +- .../countries/src/components/ZA_Sharp.tsx | 8 +- packages/countries/src/components/ZM.tsx | 6 +- .../countries/src/components/ZM_Sharp.tsx | 8 +- packages/countries/src/components/ZW.tsx | 6 +- .../countries/src/components/ZW_Sharp.tsx | 8 +- .../src/country-symbol/CountrySymbol.tsx | 10 +- .../lazy-country-symbol/LazyCountrySymbol.tsx | 6 +- .../stories/CountrySymbol.qa.stories.tsx | 4 +- .../stories/CountrySymbol.stories.tsx | 24 +- .../stories/LazyCountrySymbol.qa.stories.tsx | 8 +- .../stories/LazyCountrySymbol.stories.tsx | 10 +- packages/data-grid/src/BaseCell.tsx | 4 +- packages/data-grid/src/CellEditor.tsx | 4 +- packages/data-grid/src/CellFrame.tsx | 10 +- packages/data-grid/src/ColumnDataContext.ts | 2 +- packages/data-grid/src/ColumnDragContext.ts | 6 +- packages/data-grid/src/ColumnGroup.tsx | 10 +- packages/data-grid/src/ColumnSortContext.ts | 11 +- packages/data-grid/src/CornerTag.tsx | 2 +- packages/data-grid/src/CursorContext.ts | 4 +- packages/data-grid/src/DropdownCellEditor.tsx | 8 +- packages/data-grid/src/EditorContext.ts | 4 +- packages/data-grid/src/Grid.tsx | 204 ++- packages/data-grid/src/GridColumn.tsx | 18 +- packages/data-grid/src/GridContext.tsx | 10 +- packages/data-grid/src/GroupHeaderCell.tsx | 8 +- .../data-grid/src/GroupHeaderCellValue.tsx | 2 +- packages/data-grid/src/HeaderCell.tsx | 24 +- packages/data-grid/src/HeaderCellValue.tsx | 2 +- packages/data-grid/src/LayoutContext.ts | 4 +- packages/data-grid/src/NumericColumn.tsx | 18 +- .../src/RowSelectionCheckboxCellValue.tsx | 8 +- .../src/RowSelectionCheckboxColumn.tsx | 12 +- .../RowSelectionCheckboxHeaderCellValue.tsx | 10 +- .../src/RowSelectionRadioCellValue.tsx | 4 +- .../data-grid/src/RowSelectionRadioColumn.tsx | 8 +- .../src/RowSelectionRadioHeaderCell.tsx | 4 +- .../data-grid/src/RowValidationStatus.tsx | 8 +- packages/data-grid/src/SelectionContext.ts | 6 +- packages/data-grid/src/SizingContext.ts | 7 +- packages/data-grid/src/TextCellEditor.tsx | 8 +- .../src/__tests__/__e2e__/Grid.cy.tsx | 28 +- .../data-grid/src/internal/CellMeasure.tsx | 4 +- .../src/internal/ColumnDropTarget.tsx | 4 +- .../data-grid/src/internal/ColumnGhost.tsx | 12 +- packages/data-grid/src/internal/Cursor.tsx | 6 +- .../src/internal/DefaultCellValue.tsx | 8 +- packages/data-grid/src/internal/FakeCell.tsx | 4 +- .../data-grid/src/internal/GroupHeaderRow.tsx | 4 +- packages/data-grid/src/internal/HeaderRow.tsx | 6 +- packages/data-grid/src/internal/LeftPart.tsx | 16 +- .../data-grid/src/internal/MiddlePart.tsx | 14 +- packages/data-grid/src/internal/RightPart.tsx | 14 +- .../data-grid/src/internal/Scrollable.tsx | 4 +- packages/data-grid/src/internal/TableBody.tsx | 22 +- .../data-grid/src/internal/TableColGroup.tsx | 2 +- packages/data-grid/src/internal/TableRow.tsx | 21 +- .../data-grid/src/internal/TopLeftPart.tsx | 8 +- packages/data-grid/src/internal/TopPart.tsx | 10 +- .../data-grid/src/internal/TopRightPart.tsx | 8 +- packages/data-grid/src/internal/gridHooks.tsx | 176 +-- packages/data-grid/src/internal/utils.ts | 18 +- .../data-grid/stories/LazyStoryCanvas.tsx | 2 +- packages/data-grid/stories/dummyData.ts | 6 +- .../grid-cellCustomization.stories.tsx | 10 +- .../stories/grid-cellValidation.stories.tsx | 22 +- .../stories/grid-columnGroups.stories.tsx | 4 +- .../stories/grid-cssVariables.stories.tsx | 35 +- .../stories/grid-editableCells.stories.tsx | 18 +- .../grid-headerCustomization.stories.tsx | 30 +- .../stories/grid-pagination.stories.tsx | 10 +- .../grid-rowSelectionControlled.stories.tsx | 8 +- .../grid-rowSelectionModes.stories.tsx | 22 +- .../stories/grid-serverSideData.stories.tsx | 12 +- .../stories/grid-sortColumns.stories.tsx | 20 +- .../stories/grid-variants.stories.tsx | 22 +- packages/data-grid/stories/grid.stories.tsx | 75 +- packages/data-grid/stories/utils.ts | 6 +- packages/icons/package.json | 5 +- packages/icons/scripts/copyCss.mjs | 2 +- packages/icons/scripts/generateIcons.mjs | 36 +- .../icons/src/__tests__/__e2e__/Icon.cy.tsx | 2 +- packages/icons/src/components/Accessible.tsx | 4 +- .../icons/src/components/AccessibleSolid.tsx | 2 +- packages/icons/src/components/Add.tsx | 4 +- packages/icons/src/components/AddDocument.tsx | 4 +- .../icons/src/components/AddDocumentSolid.tsx | 2 +- packages/icons/src/components/Api.tsx | 4 +- packages/icons/src/components/AppSwitcher.tsx | 4 +- packages/icons/src/components/ArrowDown.tsx | 4 +- packages/icons/src/components/ArrowLeft.tsx | 4 +- packages/icons/src/components/ArrowRight.tsx | 4 +- packages/icons/src/components/ArrowUp.tsx | 4 +- packages/icons/src/components/Attach.tsx | 4 +- packages/icons/src/components/Bank.tsx | 4 +- packages/icons/src/components/BankCheck.tsx | 4 +- .../icons/src/components/BankCheckSolid.tsx | 2 +- packages/icons/src/components/BankSolid.tsx | 4 +- packages/icons/src/components/BarChart.tsx | 4 +- packages/icons/src/components/Battery.tsx | 4 +- .../icons/src/components/BatterySolid.tsx | 2 +- packages/icons/src/components/Bookmark.tsx | 4 +- .../icons/src/components/BookmarkSolid.tsx | 2 +- packages/icons/src/components/Boolean.tsx | 4 +- .../icons/src/components/BooleanSolid.tsx | 2 +- packages/icons/src/components/Browser.tsx | 4 +- .../icons/src/components/BrowserSolid.tsx | 2 +- packages/icons/src/components/BuildReport.tsx | 4 +- .../icons/src/components/BuildReportSolid.tsx | 2 +- packages/icons/src/components/Building.tsx | 4 +- .../icons/src/components/BuildingSolid.tsx | 2 +- packages/icons/src/components/Buildings.tsx | 4 +- .../icons/src/components/BuildingsSolid.tsx | 2 +- packages/icons/src/components/Calculator.tsx | 4 +- .../icons/src/components/CalculatorSolid.tsx | 2 +- packages/icons/src/components/Calendar.tsx | 4 +- .../icons/src/components/CalendarSolid.tsx | 2 +- packages/icons/src/components/Call.tsx | 4 +- packages/icons/src/components/CallSolid.tsx | 4 +- packages/icons/src/components/Cart.tsx | 4 +- packages/icons/src/components/CartSolid.tsx | 4 +- packages/icons/src/components/Chat.tsx | 4 +- packages/icons/src/components/ChatGroup.tsx | 4 +- .../icons/src/components/ChatGroupSolid.tsx | 2 +- packages/icons/src/components/ChatSolid.tsx | 4 +- packages/icons/src/components/Chatting.tsx | 4 +- .../icons/src/components/ChattingSolid.tsx | 2 +- packages/icons/src/components/ChevronDown.tsx | 4 +- packages/icons/src/components/ChevronLeft.tsx | 4 +- .../icons/src/components/ChevronRight.tsx | 2 +- packages/icons/src/components/ChevronUp.tsx | 4 +- packages/icons/src/components/Clock.tsx | 4 +- packages/icons/src/components/ClockSolid.tsx | 4 +- packages/icons/src/components/Clone.tsx | 4 +- packages/icons/src/components/Close.tsx | 4 +- packages/icons/src/components/CloseSmall.tsx | 4 +- .../icons/src/components/Closedcaption.tsx | 2 +- .../src/components/ClosedcaptionDisabled.tsx | 4 +- .../components/ClosedcaptionDisabledSolid.tsx | 4 +- .../src/components/ClosedcaptionSolid.tsx | 2 +- packages/icons/src/components/Cloud.tsx | 4 +- .../icons/src/components/CloudDisabled.tsx | 2 +- .../src/components/CloudDisabledSolid.tsx | 2 +- .../icons/src/components/CloudDownload.tsx | 2 +- .../src/components/CloudDownloadSolid.tsx | 2 +- packages/icons/src/components/CloudSolid.tsx | 4 +- .../icons/src/components/CloudSuccess.tsx | 2 +- .../src/components/CloudSuccessSolid.tsx | 2 +- packages/icons/src/components/CloudSync.tsx | 4 +- .../icons/src/components/CloudSyncSolid.tsx | 2 +- packages/icons/src/components/CloudUpload.tsx | 4 +- .../icons/src/components/CloudUploadSolid.tsx | 2 +- packages/icons/src/components/Coffee.tsx | 4 +- packages/icons/src/components/CoffeeSolid.tsx | 4 +- packages/icons/src/components/Collapse.tsx | 4 +- packages/icons/src/components/CollapseAll.tsx | 4 +- .../icons/src/components/ColumnChooser.tsx | 2 +- .../src/components/ColumnChooserSolid.tsx | 2 +- packages/icons/src/components/Commentary.tsx | 4 +- .../icons/src/components/CommentarySolid.tsx | 2 +- packages/icons/src/components/Compass.tsx | 4 +- .../icons/src/components/CompassSolid.tsx | 2 +- packages/icons/src/components/Cookie.tsx | 4 +- packages/icons/src/components/CookieSolid.tsx | 4 +- packages/icons/src/components/Copy.tsx | 4 +- packages/icons/src/components/CopySolid.tsx | 4 +- packages/icons/src/components/CreditCard.tsx | 4 +- .../icons/src/components/CreditCardSolid.tsx | 2 +- packages/icons/src/components/Crops.tsx | 4 +- packages/icons/src/components/CropsSolid.tsx | 4 +- packages/icons/src/components/Csv.tsx | 4 +- packages/icons/src/components/CsvSolid.tsx | 4 +- packages/icons/src/components/Cut.tsx | 4 +- packages/icons/src/components/Dark.tsx | 4 +- packages/icons/src/components/DarkSolid.tsx | 4 +- packages/icons/src/components/Dashboard.tsx | 4 +- .../icons/src/components/DashboardSolid.tsx | 2 +- packages/icons/src/components/Database.tsx | 4 +- .../icons/src/components/DatabaseSolid.tsx | 2 +- packages/icons/src/components/Delete.tsx | 4 +- packages/icons/src/components/DeleteSolid.tsx | 4 +- packages/icons/src/components/Devices.tsx | 4 +- .../icons/src/components/DevicesSolid.tsx | 2 +- packages/icons/src/components/Diamond.tsx | 4 +- packages/icons/src/components/Display.tsx | 4 +- .../icons/src/components/DisplaySolid.tsx | 2 +- packages/icons/src/components/Document.tsx | 4 +- .../icons/src/components/DocumentSolid.tsx | 2 +- .../src/components/DoubleChevronDown.tsx | 2 +- .../src/components/DoubleChevronLeft.tsx | 2 +- .../src/components/DoubleChevronRight.tsx | 2 +- .../icons/src/components/DoubleChevronUp.tsx | 2 +- packages/icons/src/components/Download.tsx | 4 +- packages/icons/src/components/DragRow.tsx | 4 +- packages/icons/src/components/Edit.tsx | 4 +- packages/icons/src/components/EditSolid.tsx | 4 +- packages/icons/src/components/Error.tsx | 4 +- .../icons/src/components/ErrorExecute.tsx | 2 +- packages/icons/src/components/ErrorSolid.tsx | 4 +- packages/icons/src/components/Expand.tsx | 4 +- packages/icons/src/components/ExpandAll.tsx | 4 +- packages/icons/src/components/Export.tsx | 4 +- packages/icons/src/components/ExportSolid.tsx | 4 +- packages/icons/src/components/Favorite.tsx | 4 +- .../icons/src/components/FavoriteSolid.tsx | 2 +- packages/icons/src/components/Filter.tsx | 4 +- packages/icons/src/components/FilterClear.tsx | 4 +- .../icons/src/components/FilterClearSolid.tsx | 2 +- packages/icons/src/components/FilterSolid.tsx | 4 +- packages/icons/src/components/Flag.tsx | 4 +- packages/icons/src/components/FlagSolid.tsx | 4 +- .../icons/src/components/FolderClosed.tsx | 2 +- .../src/components/FolderClosedSolid.tsx | 2 +- packages/icons/src/components/FolderOpen.tsx | 4 +- .../icons/src/components/FolderOpenSolid.tsx | 2 +- packages/icons/src/components/Forward10.tsx | 4 +- packages/icons/src/components/Forward15.tsx | 4 +- packages/icons/src/components/Forward30.tsx | 4 +- packages/icons/src/components/Forward5.tsx | 4 +- packages/icons/src/components/Github.tsx | 4 +- packages/icons/src/components/Globe.tsx | 4 +- packages/icons/src/components/GlobeSolid.tsx | 4 +- packages/icons/src/components/Grid.tsx | 4 +- packages/icons/src/components/GridSolid.tsx | 4 +- packages/icons/src/components/Group.tsx | 4 +- packages/icons/src/components/GroupSolid.tsx | 4 +- packages/icons/src/components/GuideClosed.tsx | 4 +- .../icons/src/components/GuideClosedSolid.tsx | 2 +- packages/icons/src/components/GuideOpen.tsx | 4 +- .../icons/src/components/GuideOpenSolid.tsx | 2 +- packages/icons/src/components/Headphones.tsx | 4 +- .../src/components/HeadphonesDisabled.tsx | 2 +- .../components/HeadphonesDisabledSolid.tsx | 4 +- .../icons/src/components/HeadphonesSolid.tsx | 2 +- packages/icons/src/components/Help.tsx | 4 +- packages/icons/src/components/HelpSolid.tsx | 4 +- packages/icons/src/components/Hidden.tsx | 4 +- packages/icons/src/components/HiddenSolid.tsx | 4 +- packages/icons/src/components/History.tsx | 4 +- packages/icons/src/components/Home.tsx | 4 +- packages/icons/src/components/HomeSolid.tsx | 4 +- packages/icons/src/components/Hospital.tsx | 4 +- .../icons/src/components/HospitalSolid.tsx | 2 +- packages/icons/src/components/IconFigma.tsx | 4 +- packages/icons/src/components/Image.tsx | 4 +- packages/icons/src/components/ImageSolid.tsx | 4 +- packages/icons/src/components/Import.tsx | 4 +- packages/icons/src/components/ImportSolid.tsx | 4 +- packages/icons/src/components/Inbox.tsx | 4 +- packages/icons/src/components/InboxSolid.tsx | 4 +- packages/icons/src/components/Info.tsx | 4 +- packages/icons/src/components/InfoSolid.tsx | 4 +- packages/icons/src/components/Jigsaw.tsx | 4 +- packages/icons/src/components/JigsawSolid.tsx | 4 +- packages/icons/src/components/Key.tsx | 4 +- .../icons/src/components/KeyBackspace.tsx | 2 +- packages/icons/src/components/KeyCapslock.tsx | 4 +- packages/icons/src/components/KeyCommand.tsx | 4 +- packages/icons/src/components/KeyControl.tsx | 4 +- packages/icons/src/components/KeyEnter.tsx | 4 +- packages/icons/src/components/KeyOption.tsx | 4 +- packages/icons/src/components/KeyShift.tsx | 4 +- packages/icons/src/components/KeySolid.tsx | 4 +- packages/icons/src/components/KeyTab.tsx | 4 +- packages/icons/src/components/Laptop.tsx | 4 +- packages/icons/src/components/LaptopSolid.tsx | 4 +- packages/icons/src/components/Layers.tsx | 4 +- packages/icons/src/components/LayersSolid.tsx | 4 +- packages/icons/src/components/Light.tsx | 4 +- packages/icons/src/components/LightSolid.tsx | 4 +- packages/icons/src/components/LineChart.tsx | 4 +- .../icons/src/components/LineChartSolid.tsx | 2 +- packages/icons/src/components/Linked.tsx | 4 +- packages/icons/src/components/List.tsx | 4 +- packages/icons/src/components/Loader.tsx | 4 +- packages/icons/src/components/Location.tsx | 4 +- .../icons/src/components/LocationSolid.tsx | 2 +- packages/icons/src/components/Locked.tsx | 4 +- packages/icons/src/components/LockedSolid.tsx | 4 +- packages/icons/src/components/Man.tsx | 4 +- packages/icons/src/components/ManSolid.tsx | 4 +- packages/icons/src/components/ManWoman.tsx | 4 +- .../icons/src/components/ManWomanSolid.tsx | 2 +- packages/icons/src/components/Map.tsx | 4 +- packages/icons/src/components/MapSolid.tsx | 4 +- packages/icons/src/components/Marker.tsx | 4 +- packages/icons/src/components/MarkerSolid.tsx | 4 +- packages/icons/src/components/Maximize.tsx | 4 +- .../icons/src/components/MaximizeSolid.tsx | 2 +- packages/icons/src/components/MedicalKit.tsx | 4 +- .../icons/src/components/MedicalKitSolid.tsx | 2 +- packages/icons/src/components/Menu.tsx | 4 +- packages/icons/src/components/Message.tsx | 4 +- .../icons/src/components/MessageSolid.tsx | 2 +- packages/icons/src/components/MicroMenu.tsx | 4 +- packages/icons/src/components/Microphone.tsx | 4 +- .../src/components/MicrophoneDisabled.tsx | 2 +- .../components/MicrophoneDisabledSolid.tsx | 4 +- .../icons/src/components/MicrophoneSolid.tsx | 2 +- packages/icons/src/components/Minimize.tsx | 4 +- packages/icons/src/components/Mobile.tsx | 4 +- packages/icons/src/components/MobileSolid.tsx | 4 +- packages/icons/src/components/Mouse.tsx | 4 +- packages/icons/src/components/MouseSolid.tsx | 4 +- packages/icons/src/components/MoveAll.tsx | 4 +- .../icons/src/components/MoveHorizontal.tsx | 2 +- .../icons/src/components/MoveVertical.tsx | 2 +- packages/icons/src/components/Music.tsx | 4 +- .../icons/src/components/MusicDisabled.tsx | 2 +- .../src/components/MusicDisabledSolid.tsx | 2 +- packages/icons/src/components/MusicSolid.tsx | 4 +- packages/icons/src/components/Note.tsx | 4 +- packages/icons/src/components/NoteSolid.tsx | 4 +- .../icons/src/components/Notification.tsx | 2 +- .../icons/src/components/NotificationRead.tsx | 2 +- .../src/components/NotificationReadSolid.tsx | 4 +- .../src/components/NotificationSolid.tsx | 2 +- .../icons/src/components/OverflowMenu.tsx | 2 +- packages/icons/src/components/Paste.tsx | 4 +- packages/icons/src/components/PasteSolid.tsx | 4 +- packages/icons/src/components/Pause.tsx | 4 +- packages/icons/src/components/PauseSolid.tsx | 4 +- packages/icons/src/components/Pdf.tsx | 4 +- packages/icons/src/components/PdfSolid.tsx | 4 +- packages/icons/src/components/Picnic.tsx | 4 +- packages/icons/src/components/PicnicSolid.tsx | 4 +- packages/icons/src/components/Pin.tsx | 4 +- packages/icons/src/components/PinSolid.tsx | 4 +- packages/icons/src/components/Pivot.tsx | 4 +- packages/icons/src/components/PivotSolid.tsx | 4 +- packages/icons/src/components/PlaceIn.tsx | 4 +- packages/icons/src/components/Play.tsx | 4 +- packages/icons/src/components/PlaySolid.tsx | 4 +- packages/icons/src/components/PotFood.tsx | 4 +- .../icons/src/components/PotFoodSolid.tsx | 2 +- .../icons/src/components/Presentation.tsx | 2 +- .../src/components/PresentationSolid.tsx | 2 +- packages/icons/src/components/PriceLadder.tsx | 4 +- packages/icons/src/components/Print.tsx | 4 +- packages/icons/src/components/PrintSolid.tsx | 4 +- .../src/components/ProgressCancelled.tsx | 2 +- .../icons/src/components/ProgressClosed.tsx | 2 +- .../icons/src/components/ProgressComplete.tsx | 2 +- .../icons/src/components/ProgressDraft.tsx | 2 +- .../src/components/ProgressInprogress.tsx | 2 +- .../icons/src/components/ProgressOnhold.tsx | 2 +- .../icons/src/components/ProgressPending.tsx | 2 +- .../icons/src/components/ProgressRejected.tsx | 2 +- .../icons/src/components/ProgressTodo.tsx | 2 +- packages/icons/src/components/Protection.tsx | 4 +- .../icons/src/components/ProtectionSolid.tsx | 2 +- packages/icons/src/components/Receipt.tsx | 4 +- .../icons/src/components/ReceiptSolid.tsx | 2 +- packages/icons/src/components/Redo.tsx | 4 +- packages/icons/src/components/Refresh.tsx | 4 +- packages/icons/src/components/Remove.tsx | 4 +- .../icons/src/components/RemoveDocument.tsx | 2 +- .../src/components/RemoveDocumentSolid.tsx | 2 +- packages/icons/src/components/Replay10.tsx | 4 +- packages/icons/src/components/Replay15.tsx | 4 +- packages/icons/src/components/Replay30.tsx | 4 +- packages/icons/src/components/Replay5.tsx | 4 +- packages/icons/src/components/Restore.tsx | 4 +- packages/icons/src/components/RunReport.tsx | 4 +- .../icons/src/components/RunReportSolid.tsx | 2 +- packages/icons/src/components/SaltShaker.tsx | 4 +- .../icons/src/components/SaltShakerSolid.tsx | 2 +- packages/icons/src/components/Save.tsx | 4 +- packages/icons/src/components/SaveSolid.tsx | 4 +- packages/icons/src/components/Scales.tsx | 4 +- packages/icons/src/components/ScalesSolid.tsx | 4 +- .../icons/src/components/ScheduleTime.tsx | 2 +- .../src/components/ScheduleTimeSolid.tsx | 2 +- packages/icons/src/components/Search.tsx | 4 +- packages/icons/src/components/SearchSolid.tsx | 4 +- .../src/components/SemanticDissatisfied.tsx | 2 +- .../components/SemanticDissatisfiedSolid.tsx | 4 +- .../icons/src/components/SemanticNeutral.tsx | 2 +- .../src/components/SemanticNeutralSolid.tsx | 2 +- .../src/components/SemanticSatisfied.tsx | 2 +- .../src/components/SemanticSatisfiedSolid.tsx | 4 +- .../components/SemanticVeryDissatisfied.tsx | 4 +- .../SemanticVeryDissatisfiedSolid.tsx | 4 +- .../src/components/SemanticVerySatisfied.tsx | 4 +- .../components/SemanticVerySatisfiedSolid.tsx | 4 +- packages/icons/src/components/Send.tsx | 4 +- packages/icons/src/components/SendSolid.tsx | 4 +- packages/icons/src/components/Settings.tsx | 4 +- .../icons/src/components/SettingsSolid.tsx | 2 +- packages/icons/src/components/Share.tsx | 4 +- packages/icons/src/components/ShareSolid.tsx | 4 +- packages/icons/src/components/Signal.tsx | 4 +- packages/icons/src/components/Signpost.tsx | 4 +- .../icons/src/components/SignpostSolid.tsx | 2 +- .../icons/src/components/SortAlphaAscend.tsx | 2 +- .../icons/src/components/SortAlphaDescend.tsx | 2 +- packages/icons/src/components/SortAscend.tsx | 4 +- packages/icons/src/components/SortDescend.tsx | 4 +- .../icons/src/components/SortNumAscend.tsx | 2 +- .../icons/src/components/SortNumDescend.tsx | 2 +- .../icons/src/components/SortableAlpha.tsx | 2 +- packages/icons/src/components/SortableNum.tsx | 4 +- packages/icons/src/components/Sparkle.tsx | 4 +- .../icons/src/components/SparkleSolid.tsx | 2 +- .../icons/src/components/Stackoverflow.tsx | 2 +- packages/icons/src/components/StepActive.tsx | 4 +- packages/icons/src/components/StepDefault.tsx | 4 +- packages/icons/src/components/StepSuccess.tsx | 4 +- packages/icons/src/components/Stethoscope.tsx | 4 +- .../icons/src/components/StethoscopeSolid.tsx | 2 +- packages/icons/src/components/Storage.tsx | 4 +- .../icons/src/components/StorageSolid.tsx | 2 +- packages/icons/src/components/Storefront.tsx | 4 +- .../icons/src/components/StorefrontSolid.tsx | 2 +- .../icons/src/components/StringNumber.tsx | 2 +- packages/icons/src/components/StringText.tsx | 4 +- packages/icons/src/components/Success.tsx | 4 +- .../icons/src/components/SuccessSmall.tsx | 2 +- .../src/components/SuccessSmallSolid.tsx | 2 +- .../icons/src/components/SuccessSolid.tsx | 2 +- packages/icons/src/components/SuccessTick.tsx | 4 +- packages/icons/src/components/Sum.tsx | 4 +- packages/icons/src/components/SumSolid.tsx | 4 +- packages/icons/src/components/Swap.tsx | 4 +- packages/icons/src/components/Symphony.tsx | 4 +- packages/icons/src/components/Sync.tsx | 4 +- packages/icons/src/components/Tag.tsx | 4 +- packages/icons/src/components/TagClear.tsx | 4 +- .../icons/src/components/TagClearSolid.tsx | 2 +- packages/icons/src/components/TagSolid.tsx | 4 +- packages/icons/src/components/Tails.tsx | 4 +- packages/icons/src/components/TailsSolid.tsx | 4 +- packages/icons/src/components/Target.tsx | 4 +- packages/icons/src/components/TearOut.tsx | 4 +- packages/icons/src/components/ThumbsDown.tsx | 4 +- .../icons/src/components/ThumbsDownSolid.tsx | 2 +- packages/icons/src/components/ThumbsUp.tsx | 4 +- .../icons/src/components/ThumbsUpSolid.tsx | 2 +- packages/icons/src/components/Tote.tsx | 4 +- packages/icons/src/components/ToteSolid.tsx | 4 +- packages/icons/src/components/Tree.tsx | 4 +- packages/icons/src/components/TreeSolid.tsx | 4 +- .../icons/src/components/TriangleDown.tsx | 2 +- .../icons/src/components/TriangleLeft.tsx | 2 +- .../icons/src/components/TriangleRight.tsx | 2 +- .../src/components/TriangleRightDown.tsx | 2 +- packages/icons/src/components/TriangleUp.tsx | 4 +- packages/icons/src/components/Type.tsx | 4 +- packages/icons/src/components/TypeSolid.tsx | 4 +- packages/icons/src/components/Undo.tsx | 4 +- packages/icons/src/components/Ungroup.tsx | 4 +- .../icons/src/components/UngroupSolid.tsx | 2 +- .../icons/src/components/UniversalAccess.tsx | 2 +- .../src/components/UniversalAccessSolid.tsx | 2 +- packages/icons/src/components/Unlinked.tsx | 4 +- packages/icons/src/components/Unlocked.tsx | 4 +- .../icons/src/components/UnlockedSolid.tsx | 2 +- packages/icons/src/components/Upload.tsx | 4 +- .../icons/src/components/UrgencyCritical.tsx | 2 +- packages/icons/src/components/UrgencyHigh.tsx | 4 +- packages/icons/src/components/UrgencyLow.tsx | 4 +- .../icons/src/components/UrgencyMedium.tsx | 2 +- packages/icons/src/components/UrgencyNone.tsx | 4 +- packages/icons/src/components/User.tsx | 4 +- packages/icons/src/components/UserAdmin.tsx | 4 +- .../icons/src/components/UserAdminSolid.tsx | 2 +- packages/icons/src/components/UserBadge.tsx | 4 +- packages/icons/src/components/UserGroup.tsx | 4 +- .../icons/src/components/UserGroupSolid.tsx | 2 +- packages/icons/src/components/UserSolid.tsx | 4 +- packages/icons/src/components/Utensils.tsx | 4 +- .../icons/src/components/UtensilsSolid.tsx | 2 +- packages/icons/src/components/Video.tsx | 4 +- .../icons/src/components/VideoDisabled.tsx | 2 +- packages/icons/src/components/VideoSolid.tsx | 4 +- packages/icons/src/components/Visible.tsx | 4 +- .../icons/src/components/VisibleSolid.tsx | 2 +- packages/icons/src/components/VolumeDown.tsx | 4 +- packages/icons/src/components/VolumeOff.tsx | 4 +- packages/icons/src/components/VolumeUp.tsx | 4 +- packages/icons/src/components/Warning.tsx | 4 +- .../icons/src/components/WarningSolid.tsx | 2 +- packages/icons/src/components/Watch.tsx | 4 +- packages/icons/src/components/WatchSolid.tsx | 4 +- packages/icons/src/components/Waveform.tsx | 4 +- packages/icons/src/components/Weight.tsx | 4 +- packages/icons/src/components/WeightSolid.tsx | 4 +- packages/icons/src/components/Wifi.tsx | 4 +- .../icons/src/components/WifiDisabled.tsx | 2 +- packages/icons/src/components/Woman.tsx | 4 +- packages/icons/src/components/WomanSolid.tsx | 4 +- packages/icons/src/components/Woodland.tsx | 4 +- .../icons/src/components/WoodlandSolid.tsx | 2 +- packages/icons/src/components/Xls.tsx | 4 +- packages/icons/src/components/XlsSolid.tsx | 4 +- packages/icons/src/components/Zip.tsx | 4 +- packages/icons/src/components/ZipSolid.tsx | 4 +- packages/icons/src/icon/Icon.css | 2 +- packages/icons/src/icon/Icon.tsx | 8 +- packages/icons/stories/icon.all.ts | 54 +- packages/icons/stories/icon.qa.stories.tsx | 12 +- packages/icons/stories/icon.stories.tsx | 12 +- packages/lab/package.json | 4 +- packages/lab/scripts/build.mjs | 16 +- .../__e2e__/breadcrumbs/Breadcrumbs.cy.tsx | 32 +- .../__e2e__/calendar/Calendar.cy.tsx | 84 +- .../cascading-menu/CascadingMenu.cy.tsx | 10 +- .../__e2e__/color-chooser/ColorChooser.cy.tsx | 28 +- .../color-chooser/SwatchesPicker.cy.tsx | 28 +- .../ComboBox.accessibility.cy.tsx | 40 +- .../combo-box-deprecated/ComboBox.cy.tsx | 18 +- .../ComboBox.keyboardNavigation.cy.tsx | 26 +- .../ComboBox.selection.cy.tsx | 28 +- .../combo-box/ComboBox.accessibility.cy.tsx | 16 +- .../__e2e__/combo-box/ComboBox.cy.tsx | 6 +- .../ComboBox.keyboardNavigation.cy.tsx | 10 +- .../combo-box/ComboBox.selection.cy.tsx | 6 +- .../CustomFloatingComponentProvider.tsx | 8 +- .../ContactDetails.accessibility.cy.tsx | 14 +- .../contact-details/ContactDetails.cy.tsx | 38 +- .../content-status/ContentStatus.cy.tsx | 12 +- .../__e2e__/date-input/DateInput.cy.tsx | 8 +- .../__e2e__/date-picker/DatePicker.cy.tsx | 40 +- .../__e2e__/deck-layout/DeckLayout.cy.tsx | 6 +- .../__e2e__/dropdown/Dropdown.cy.tsx | 4 +- .../Dropdown.keyboardNavigation.cy.tsx | 106 +- .../__e2e__/dropdown/DropdownButton.cy.tsx | 4 +- .../form-field-legacy/FormFieldLegacy.cy.tsx | 44 +- .../form-field-legacy/FormLabel.cy.tsx | 12 +- .../formatted-input/FormattedInput.cy.tsx | 10 +- .../__e2e__/input-legacy/InputLegacy.cy.tsx | 34 +- .../__e2e__/layer-layout/LayerLayout.cy.tsx | 20 +- .../__e2e__/list-next/ListNext.cy.tsx | 62 +- .../__e2e__/list/List.accessibility.cy.tsx | 24 +- .../src/__tests__/__e2e__/list/List.cy.tsx | 8 +- .../__e2e__/list/List.declarative.cy.tsx | 16 +- .../__e2e__/list/List.highlighter.cy.tsx | 18 +- .../__e2e__/list/List.itemToString.cy.tsx | 2 +- .../list/List.keyboardNavigation.cy.tsx | 100 +- .../__e2e__/list/List.scrollApi.cy.tsx | 2 +- .../__e2e__/list/List.selection.cy.tsx | 80 +- .../src/__tests__/__e2e__/logo/Logo.cy.tsx | 8 +- .../__tests__/__e2e__/metric/Metric.cy.tsx | 78 +- .../__e2e__/query-input/QueryInput.cy.tsx | 4 +- .../__e2e__/search-input/SearchInput.cy.tsx | 20 +- .../__e2e__/skip-link/SkipLink.cy.tsx | 12 +- .../__tests__/__e2e__/slider/Slider.cy.tsx | 16 +- .../stepped-tracker/SteppedTracker.cy.tsx | 6 +- .../StepperInput.accessibility.cy.tsx | 8 +- .../__e2e__/stepper-input/StepperInput.cy.tsx | 16 +- .../__e2e__/tabs-next/TabstripNext.cy.tsx | 22 +- .../__e2e__/tabs/Tabs.accessibility.cy.tsx | 2 +- .../src/__tests__/__e2e__/tabs/Tabs.cy.tsx | 100 +- .../__e2e__/toast-group/ToastGroup.cy.tsx | 8 +- .../TokenizedInputNext.cy.tsx | 6 +- .../__tests__/__e2e__/toolbar/Toolbar.cy.tsx | 138 +- .../src/__tests__/__e2e__/tree/Tree.cy.tsx | 14 +- .../src/__tests__/color-chooser/Color.spec.ts | 4 +- .../color-chooser/ColorHelpers.spec.ts | 20 +- .../color-chooser/GetColorPalettes.spec.ts | 4 +- .../color-chooser/color-utils.spec.ts | 2 +- packages/lab/src/app-header/AppHeader.tsx | 10 +- packages/lab/src/breadcrumbs/Breadcrumb.tsx | 21 +- packages/lab/src/breadcrumbs/Breadcrumbs.tsx | 35 +- .../internal/BreadcrumbsCollapsed.tsx | 18 +- .../internal/BreadcrumbsContext.ts | 4 +- .../internal/BreadcrumbsSeparator.tsx | 2 +- .../internal/useFocusMenuRemount.ts | 2 +- packages/lab/src/button-bar/ButtonBar.tsx | 56 +- packages/lab/src/button-bar/OrderedButton.tsx | 17 +- .../button-bar/internal/ButtonBarContext.tsx | 2 +- .../button-bar/internal/DescendantContext.tsx | 10 +- .../src/button-bar/internal/useDescendant.ts | 2 +- .../src/button-bar/internal/useDescendants.ts | 2 +- packages/lab/src/calendar/Calendar.tsx | 24 +- .../calendar/internal/CalendarCarousel.tsx | 13 +- .../src/calendar/internal/CalendarContext.tsx | 2 +- .../lab/src/calendar/internal/CalendarDay.css | 4 +- .../lab/src/calendar/internal/CalendarDay.tsx | 28 +- .../src/calendar/internal/CalendarMonth.tsx | 22 +- .../calendar/internal/CalendarNavigation.tsx | 44 +- .../calendar/internal/CalendarWeekHeader.tsx | 10 +- .../calendar/internal/useFocusManagement.ts | 6 +- packages/lab/src/calendar/internal/utils.ts | 12 +- packages/lab/src/calendar/useCalendar.ts | 34 +- packages/lab/src/calendar/useCalendarDay.ts | 14 +- packages/lab/src/calendar/useSelection.ts | 50 +- packages/lab/src/carousel/Carousel.tsx | 28 +- packages/lab/src/carousel/CarouselSlide.tsx | 12 +- .../lab/src/cascading-menu/CascadingMenu.tsx | 32 +- .../src/cascading-menu/CascadingMenuItem.tsx | 29 +- .../src/cascading-menu/CascadingMenuList.tsx | 28 +- .../src/cascading-menu/CascadingMenuProps.ts | 16 +- .../internal/CascadingMenuAction.ts | 2 +- .../internal/keydownHandlers.ts | 10 +- .../internal/menuPositioning.ts | 4 +- .../src/cascading-menu/internal/stateUtils.ts | 12 +- .../cascading-menu/internal/useClickAway.ts | 21 +- .../internal/useMenuTriggerHandlers.ts | 20 +- .../internal/useMouseHandlers.ts | 24 +- .../cascading-menu/internal/useRefsManager.ts | 2 +- .../internal/useStateReducer.ts | 12 +- .../lab/src/color-chooser/AlphaInputField.tsx | 28 +- packages/lab/src/color-chooser/Color.ts | 5 +- .../lab/src/color-chooser/ColorChooser.css | 9 +- .../lab/src/color-chooser/ColorChooser.tsx | 32 +- .../lab/src/color-chooser/ColorHelpers.ts | 10 +- .../lab/src/color-chooser/ColorPicker.tsx | 18 +- packages/lab/src/color-chooser/DictTabs.tsx | 8 +- .../lab/src/color-chooser/GetColorPalettes.ts | 8 +- packages/lab/src/color-chooser/HexInput.tsx | 14 +- .../lab/src/color-chooser/HexInputField.tsx | 10 +- packages/lab/src/color-chooser/RGBAInput.tsx | 14 +- .../lab/src/color-chooser/RGBAInputField.tsx | 14 +- packages/lab/src/color-chooser/Swatch.css | 9 +- packages/lab/src/color-chooser/Swatch.tsx | 6 +- packages/lab/src/color-chooser/Swatches.tsx | 8 +- .../lab/src/color-chooser/SwatchesPicker.tsx | 10 +- .../src/color-chooser/createTabsMapping.ts | 8 +- .../ComboBoxDeprecated.tsx | 18 +- .../internal/DefaultComboBox.tsx | 36 +- .../internal/MultiSelectComboBox.tsx | 15 +- .../internal/getAnnouncement.ts | 6 +- .../internal/useComboBox.ts | 43 +- .../internal/useMultiSelectComboBox.ts | 67 +- .../internal/usePopperStatus.ts | 4 +- packages/lab/src/combo-box/ComboBox.tsx | 39 +- packages/lab/src/combo-box/useCombobox.ts | 86 +- .../src/common-hooks/calcPreferredHeight.js | 4 +- .../src/common-hooks/collectionProvider.tsx | 9 +- .../lab/src/common-hooks/collectionTypes.ts | 13 +- packages/lab/src/common-hooks/itemToString.ts | 6 +- packages/lab/src/common-hooks/keyUtils.ts | 8 +- .../lab/src/common-hooks/list-dom-utils.ts | 8 +- .../lab/src/common-hooks/navigationTypes.ts | 9 +- .../lab/src/common-hooks/selectionTypes.ts | 26 +- .../lab/src/common-hooks/use-drag-drop.js | 42 +- .../use-hierarchical-drag-drop.js | 40 +- packages/lab/src/common-hooks/useAutoSizer.ts | 8 +- .../src/common-hooks/useCollapsibleGroups.ts | 12 +- .../src/common-hooks/useCollectionItems.ts | 91 +- .../common-hooks/useImperativeScrollingAPI.ts | 24 +- .../src/common-hooks/useKeyboardNavigation.ts | 237 ++- .../useKeyboardNavigationPanel.ts | 50 +- packages/lab/src/common-hooks/useSelection.ts | 44 +- packages/lab/src/common-hooks/useTypeahead.ts | 12 +- .../src/common-hooks/useViewportTracking.ts | 64 +- .../utils/collection-item-utils.ts | 87 +- .../lab/src/common-hooks/utils/isSelected.ts | 4 +- .../lab/src/contact-details/ContactAction.tsx | 17 +- .../src/contact-details/ContactActions.tsx | 6 +- .../lab/src/contact-details/ContactAvatar.tsx | 10 +- .../src/contact-details/ContactDetails.tsx | 8 +- .../contact-details/ContactFavoriteToggle.tsx | 4 +- .../src/contact-details/ContactMetadata.tsx | 4 +- .../contact-details/ContactMetadataItem.tsx | 8 +- .../contact-details/ContactPrimaryInfo.tsx | 4 +- .../contact-details/ContactSecondaryInfo.tsx | 13 +- .../contact-details/ContactTertiaryInfo.tsx | 11 +- .../src/contact-details/MailLinkComponent.tsx | 2 +- .../internal/ContactDetailsContext.tsx | 4 +- .../internal/FavoriteToggle.tsx | 20 +- .../internal/FavoriteToggleWithTooltip.tsx | 4 +- .../src/contact-details/internal/StarIcon.tsx | 2 +- .../internal/StarIconContainer.tsx | 6 +- .../internal/useComponentSize.ts | 11 +- packages/lab/src/contact-details/types.ts | 2 +- .../lab/src/content-status/ContentStatus.tsx | 18 +- .../internal/StatusIndicator.tsx | 12 +- packages/lab/src/date-input/DateInput.tsx | 70 +- packages/lab/src/date-picker/DatePicker.tsx | 38 +- .../lab/src/date-picker/DatePickerContext.ts | 9 +- .../lab/src/date-picker/DatePickerPanel.tsx | 52 +- packages/lab/src/deck-item/DeckItem.tsx | 14 +- packages/lab/src/deck-layout/DeckLayout.tsx | 25 +- packages/lab/src/dropdown/Dropdown.tsx | 52 +- packages/lab/src/dropdown/DropdownBase.tsx | 22 +- packages/lab/src/dropdown/DropdownButton.tsx | 23 +- packages/lab/src/dropdown/dropdownTypes.ts | 9 +- packages/lab/src/dropdown/useClickAway.ts | 4 +- packages/lab/src/dropdown/useDropdown.ts | 37 +- packages/lab/src/dropdown/useDropdownBase.ts | 28 +- .../lab/src/editable-label/EditableLabel.tsx | 26 +- .../lab/src/focus-manager/FocusManager.tsx | 25 +- .../internal/findAllTabbableElements.ts | 10 +- .../focus-manager/internal/useReturnFocus.ts | 2 +- .../FormFieldLegacyContext.ts | 11 +- .../useFormFieldLegacyProps.ts | 4 +- .../FormActivationIndicator.css | 6 +- .../FormActivationIndicator.tsx | 12 +- .../src/form-field-legacy/FormFieldLegacy.css | 3 +- .../src/form-field-legacy/FormFieldLegacy.tsx | 40 +- .../src/form-field-legacy/FormHelperText.tsx | 13 +- .../lab/src/form-field-legacy/FormLabel.tsx | 12 +- .../form-field-legacy/NecessityIndicator.tsx | 6 +- .../src/form-field-legacy/StatusIndicator.tsx | 12 +- packages/lab/src/form-group/FormGroup.tsx | 6 +- .../src/formatted-input/FormattedInput.tsx | 14 +- .../internal/InputWithMask.tsx | 12 +- packages/lab/src/input-legacy/InputLegacy.tsx | 46 +- .../src/input-legacy/StaticInputAdornment.tsx | 8 +- .../lab/src/input-legacy/useCursorOnFocus.ts | 17 +- packages/lab/src/layer-layout/LayerLayout.tsx | 18 +- packages/lab/src/list-deprecated/List.tsx | 22 +- packages/lab/src/list-deprecated/ListBase.tsx | 138 +- packages/lab/src/list-deprecated/ListItem.tsx | 10 +- .../lab/src/list-deprecated/ListItemBase.tsx | 18 +- .../src/list-deprecated/ListItemContext.tsx | 8 +- packages/lab/src/list-deprecated/ListProps.ts | 10 +- .../src/list-deprecated/ListStateContext.js | 2 +- .../internal/DescendantContext.jsx | 2 +- .../list-deprecated/internal/Highlighter.jsx | 6 +- .../internal/calcPreferredListHeight.js | 4 +- .../src/list-deprecated/internal/helpers.js | 4 +- .../internal/useListAutoSizer.ts | 6 +- .../src/list-deprecated/internal/useWidth.ts | 6 +- .../lab/src/list-deprecated/itemToString.ts | 3 +- packages/lab/src/list-deprecated/useList.ts | 142 +- .../lab/src/list-deprecated/useListItem.ts | 24 +- .../lab/src/list-deprecated/useTypeSelect.js | 10 +- packages/lab/src/list-next/ListItemNext.tsx | 12 +- packages/lab/src/list-next/ListNext.tsx | 24 +- .../lab/src/list-next/ListNextContext.tsx | 4 +- packages/lab/src/list-next/useList.ts | 49 +- packages/lab/src/list/Highlighter.tsx | 8 +- packages/lab/src/list/List.css | 4 +- packages/lab/src/list/List.tsx | 52 +- packages/lab/src/list/ListItem.tsx | 14 +- packages/lab/src/list/ListItemGroup.ts | 2 +- packages/lab/src/list/ListItemHeader.ts | 2 +- packages/lab/src/list/VirtualizedList.tsx | 35 +- packages/lab/src/list/keyset.ts | 3 +- packages/lab/src/list/listTypes.ts | 11 +- packages/lab/src/list/useList.ts | 34 +- packages/lab/src/list/useListHeight.ts | 12 +- packages/lab/src/list/useVirtualization.ts | 16 +- packages/lab/src/logo/Logo.tsx | 35 +- packages/lab/src/logo/LogoImage.tsx | 8 +- packages/lab/src/logo/LogoSeparator.tsx | 8 +- packages/lab/src/menu-button/MenuButton.tsx | 18 +- .../lab/src/menu-button/MenuButtonTrigger.tsx | 10 +- packages/lab/src/metric/Metric.tsx | 12 +- packages/lab/src/metric/MetricContent.tsx | 12 +- packages/lab/src/metric/MetricHeader.tsx | 10 +- packages/lab/src/portal/Portal.tsx | 20 +- packages/lab/src/query-input/QueryInput.tsx | 10 +- .../src/query-input/internal/CategoryList.tsx | 22 +- .../internal/CategoryListContext.ts | 2 +- .../query-input/internal/CategoryListItem.tsx | 8 +- .../query-input/internal/QueryInputBody.tsx | 33 +- .../src/query-input/internal/SearchList.tsx | 10 +- .../src/query-input/internal/ValueList.tsx | 6 +- .../query-input/internal/ValueSelector.tsx | 8 +- .../query-input/internal/usePopperStatus.ts | 2 +- packages/lab/src/query-input/useQueryInput.ts | 124 +- .../lab/src/responsive/OverflowReducer.ts | 92 +- packages/lab/src/responsive/overflowTypes.ts | 6 +- packages/lab/src/responsive/overflowUtils.tsx | 74 +- .../lab/src/responsive/useDynamicCollapse.ts | 34 +- .../lab/src/responsive/useInstantCollapse.ts | 26 +- packages/lab/src/responsive/useOverflow.ts | 56 +- .../responsive/useOverflowCollectionItems.ts | 47 +- .../lab/src/responsive/useOverflowLayout.ts | 12 +- .../lab/src/responsive/useReclaimSpace.ts | 43 +- .../lab/src/responsive/useResizeObserver.ts | 20 +- packages/lab/src/responsive/useWidth.ts | 10 +- packages/lab/src/responsive/utils.ts | 7 +- packages/lab/src/search-input/SearchInput.tsx | 24 +- packages/lab/src/skip-link/SkipLink.tsx | 10 +- packages/lab/src/skip-link/SkipLinks.tsx | 6 +- .../internal/useManageFocusOnTarget.ts | 2 +- packages/lab/src/slider/Slider.tsx | 22 +- .../lab/src/slider/internal/SliderHandle.tsx | 6 +- .../src/slider/internal/SliderMarkLabels.tsx | 18 +- .../lab/src/slider/internal/SliderRail.tsx | 6 +- .../src/slider/internal/SliderRailMarks.tsx | 12 +- .../src/slider/internal/SliderSelection.tsx | 2 +- packages/lab/src/slider/internal/styles.ts | 22 +- .../src/slider/internal/useSliderKeyDown.ts | 6 +- .../src/slider/internal/useSliderMouseDown.ts | 49 +- packages/lab/src/slider/internal/utils.ts | 16 +- .../stepped-tracker/StepLabel/StepLabel.tsx | 8 +- .../src/stepped-tracker/SteppedTracker.tsx | 22 +- .../stepped-tracker/SteppedTrackerContext.tsx | 6 +- .../TrackerStep/TrackerStep.tsx | 12 +- .../lab/src/stepper-input/StepperInput.tsx | 10 +- .../src/stepper-input/internal/useInterval.ts | 2 +- .../src/stepper-input/internal/useSpinner.ts | 4 +- .../lab/src/stepper-input/useStepperInput.ts | 22 +- packages/lab/src/tabs-next/OverflowMenu.tsx | 8 +- packages/lab/src/tabs-next/TabNext.tsx | 161 +- packages/lab/src/tabs-next/TabNextContext.tsx | 2 +- packages/lab/src/tabs-next/TabstripNext.tsx | 40 +- packages/lab/src/tabs/Tab.tsx | 42 +- .../lab/src/tabs/TabActivationIndicator.tsx | 2 +- packages/lab/src/tabs/TabPanel.tsx | 8 +- packages/lab/src/tabs/Tabs.tsx | 20 +- packages/lab/src/tabs/TabsTypes.ts | 10 +- packages/lab/src/tabs/Tabstrip.tsx | 99 +- packages/lab/src/tabs/drag-drop/Draggable.tsx | 12 +- .../lab/src/tabs/drag-drop/DropIndicator.tsx | 10 +- packages/lab/src/tabs/drag-drop/drag-utils.ts | 73 +- .../lab/src/tabs/drag-drop/dragDropTypes.ts | 4 +- .../lab/src/tabs/drag-drop/useDragDrop.ts | 2 +- .../drag-drop/useDragDropNaturalMovement.tsx | 39 +- .../lab/src/tabs/drag-drop/useDragSpacers.ts | 51 +- .../lab/src/tabs/drag-drop/useTransition.ts | 2 +- .../lab/src/tabs/useActivationIndicator.ts | 19 +- packages/lab/src/tabs/useEditableItem.ts | 14 +- packages/lab/src/tabs/useItemsWithIds.tsx | 17 +- .../lab/src/tabs/useKeyboardNavigation.ts | 94 +- packages/lab/src/tabs/useSelection.ts | 12 +- packages/lab/src/tabs/useTabs.ts | 6 +- packages/lab/src/tabs/useTabstrip.ts | 61 +- packages/lab/src/toast-group/ToastGroup.tsx | 8 +- .../TokenizedInputNext.tsx | 62 +- .../internal/InputPill.tsx | 30 +- .../internal/useResizeObserver.ts | 6 +- .../tokenized-input-next/internal/useWidth.ts | 11 +- .../useTokenizedInputNext.tsx | 98 +- .../src/tokenized-input/TokenizedInput.tsx | 10 +- .../tokenized-input/TokenizedInputBase.tsx | 88 +- .../tokenized-input/internal/InputPill.tsx | 14 +- .../tokenized-input/internal/InputRuler.tsx | 8 +- .../internal/defaultItemToString.ts | 2 +- .../internal/getCursorPosition.ts | 4 +- .../tokenized-input/internal/isPlainObject.ts | 2 + .../internal/useResizeObserver.ts | 6 +- .../src/tokenized-input/internal/useWidth.ts | 11 +- .../src/tokenized-input/useTokenizedInput.tsx | 83 +- packages/lab/src/toolbar/Toolbar.tsx | 24 +- packages/lab/src/toolbar/ToolbarButton.tsx | 6 +- packages/lab/src/toolbar/ToolbarProps.ts | 4 +- packages/lab/src/toolbar/Tooltray.tsx | 12 +- packages/lab/src/toolbar/TooltrayProps.ts | 4 +- .../internal/ToolbarButtonRefsContext.tsx | 2 +- .../toolbar/internal/renderToolbarItems.tsx | 61 +- .../src/toolbar/internal/renderTrayTools.tsx | 72 +- .../toolbar/overflow-panel/OverflowPanel.tsx | 52 +- .../overflow-panel/OverflowSeparator.tsx | 8 +- .../toolbar/toolbar-field/ToolbarField.tsx | 6 +- .../toolbar-field/toolbarFieldTypes.ts | 2 +- .../toolbar/toolbar-field/useToolbarField.ts | 30 +- packages/lab/src/tree/Tree.tsx | 65 +- packages/lab/src/tree/TreeNode.tsx | 6 +- packages/lab/src/tree/treeTypes.ts | 6 +- .../src/tree/use-tree-keyboard-navigation.ts | 24 +- packages/lab/src/tree/useTree.ts | 27 +- .../lab/src/utils/forwardCallbackProps.ts | 4 +- packages/lab/src/utils/partition.ts | 2 +- packages/lab/src/utils/useClickOutside.ts | 4 +- packages/lab/src/utils/useEventCallback.ts | 8 +- .../useIsViewportLargerThanBreakpoint.ts | 4 +- packages/lab/src/utils/useLayoutEffectOnce.ts | 6 +- .../lab/src/utils/useLayoutEffectSkipFirst.ts | 6 +- .../lab/src/utils/useOverflowDetection.ts | 15 +- packages/lab/src/utils/useSlideSelection.ts | 12 +- packages/lab/src/window/ElectronWindow.tsx | 35 +- packages/lab/src/window/WindowContext.tsx | 5 +- .../stories/app-header/app-header.stories.tsx | 30 +- .../breadcrumbs/breadcrumbs.qa.stories.tsx | 8 +- .../breadcrumbs/breadcrumbs.stories.tsx | 42 +- .../stories/button-bar/button-bar.stories.tsx | 4 +- .../stories/calendar/calendar.qa.stories.tsx | 6 +- .../lab/stories/calendar/calendar.stories.tsx | 10 +- .../lab/stories/carousel/carousel.stories.tsx | 2 +- .../cascading-menu/cascading-menu.stories.tsx | 16 +- .../color-chooser.qa.stories.tsx | 4 +- .../color-chooser/color-chooser.stories.tsx | 89 +- .../combobox/combobox-deprecated.stories.tsx | 42 +- .../stories/combobox/combobox.qa.stories.tsx | 4 +- .../lab/stories/combobox/combobox.stories.tsx | 14 +- .../stories/components/AdjustableFlexbox.tsx | 20 +- .../components/CloseTabWarningDialog.tsx | 6 +- .../components/CollapsibleToolbarItem.tsx | 2 +- .../stories/components/QueryResultTable.tsx | 6 +- .../contact-details.qa.stories.tsx | 15 +- .../contact-details.stories.tsx | 46 +- .../content-status.qa.stories.tsx | 4 +- .../content-status/content-status.stories.tsx | 10 +- .../stories/date-input/date-input.stories.tsx | 8 +- .../date-picker/date-picker.stories.tsx | 32 +- .../deck-layout/deck-layout.stories.tsx | 10 +- .../dropdown/dropdown-base.stories.tsx | 10 +- .../stories/dropdown/dropdown.qa.stories.tsx | 4 +- .../lab/stories/dropdown/dropdown.stories.tsx | 22 +- .../form-field-focused.qa.stories.tsx | 4 +- .../form-field.qa.stories.tsx | 6 +- .../form-field-legacy/form-field.stories.tsx | 6 +- .../formatted-input.stories.tsx | 10 +- .../input-legacy/input-legacy.qa.stories.tsx | 4 +- .../input-legacy/input-legacy.stories.tsx | 2 +- .../kitchen-sink/kitchen-sink.stories.tsx | 66 +- .../layer-layout/layer-layout.stories.tsx | 16 +- .../lab/stories/list-next/list.stories.tsx | 25 +- packages/lab/stories/list/list.data.js | 8 +- packages/lab/stories/list/list.qa.stories.tsx | 2 +- packages/lab/stories/list/list.stories.tsx | 70 +- .../stories/logo/assets/ChaseCompactLogo.tsx | 8 +- .../lab/stories/logo/assets/ChaseLogo.tsx | 18 +- packages/lab/stories/logo/logo.stories.tsx | 4 +- .../menu-button/menu-button.stories.tsx | 18 +- .../lab/stories/metric/metric.qa.stories.tsx | 4 +- .../lab/stories/metric/metric.stories.tsx | 2 +- .../query-input/query-input.stories.tsx | 17 +- .../search-input/search-input.stories.tsx | 4 +- .../stories/skip-link/skip-link.stories.tsx | 4 +- .../lab/stories/slider/slider.stories.tsx | 4 +- .../stepped-tracker.qa.stories.tsx | 6 +- .../stepped-tracker.stories.tsx | 22 +- .../stepper-input.qa.stories.tsx | 4 +- .../stepper-input/stepper-input.stories.tsx | 14 +- packages/lab/stories/tabs/tabs.qa.stories.tsx | 4 +- packages/lab/stories/tabs/tabs.stories.tsx | 24 +- .../tabstrip-next.qa.stories.tsx | 6 +- .../tabstrip-next/tabstrip-next.stories.tsx | 12 +- .../tabstrip/tabstrip.cypress.stories.tsx | 8 +- .../lab/stories/tabstrip/tabstrip.stories.tsx | 116 +- .../toast-group/toast-group.stories.tsx | 6 +- .../tokenized-input-next.qa.stories.tsx | 4 +- .../tokenized-input-next.stories.tsx | 26 +- .../tokenized-input.qa.stories.tsx | 2 +- .../tokenized-input.stories.tsx | 17 +- .../toolbar/toolbar.cypress.stories.tsx | 11 +- .../stories/toolbar/toolbar.qa.stories.tsx | 10 +- .../lab/stories/toolbar/toolbar.stories.tsx | 14 +- packages/lab/stories/tree/tree.stories.jsx | 6 +- .../src/__tests__/__e2e__/TestComponent.tsx | 2 +- .../__tests__/__e2e__/useStyleInject.cy.tsx | 18 +- .../InsertionPointProvider.tsx | 2 +- .../use-style-injection/useStyleInjection.ts | 8 +- packages/theme/package.json | 5 +- packages/theme/scripts/build.mjs | 14 +- packages/window/src/WindowProvider.tsx | 4 +- site/cssGen.js | 13 +- site/mosaic.config.js | 4 +- site/next.config.js | 4 +- site/package.json | 2 - site/propsGen.js | 14 +- site/src/_index/accordion/Accordion.tsx | 8 +- .../src/_index/accordion/PageIllustration.tsx | 2 +- site/src/_index/features/Features.tsx | 10 +- site/src/components/accordion/Accordion.tsx | 4 +- site/src/components/app-header/AppHeader.tsx | 24 +- site/src/components/app-header/Search.tsx | 60 +- site/src/components/app-header/searchUtils.ts | 8 +- site/src/components/callout/Callout.tsx | 2 +- site/src/components/card/Card.module.css | 2 +- site/src/components/card/Card.tsx | 12 +- .../components/components/AGThemeProvider.tsx | 2 +- .../components/ExamplesListView.tsx | 28 +- .../src/components/components/LivePreview.tsx | 20 +- .../components/LivePreviewControls.tsx | 30 +- site/src/components/components/PropsTable.tsx | 8 +- .../components/formatComponentExampleName.ts | 2 +- .../components/useLivePreviewControls.ts | 2 +- .../components/css-display/AccordionView.tsx | 17 +- .../css-display/FoundationColorView.tsx | 9 +- site/src/components/diagrams/Diagram.tsx | 2 +- site/src/components/diagrams/Diagrams.tsx | 2 +- .../example-container/ExampleContainer.tsx | 6 +- site/src/components/footer/Footer.tsx | 6 +- site/src/components/footer/index.ts | 2 +- .../components/footer/withFooterAdapter.tsx | 4 +- .../design-cards/DesignCard.tsx | 2 +- .../design-cards/DesignCards.tsx | 2 +- .../DevelopFontsAccordion.tsx | 4 +- .../icons-table/DensityIcon.tsx | 4 +- .../icons-table/IconsTable.tsx | 2 +- .../overview-card/OverviewCard.tsx | 2 +- .../image-switcher/ImageSwitcher.tsx | 6 +- .../keyboard-controls/KeyboardControl.tsx | 8 +- .../keyboard-controls/KeyboardControls.tsx | 2 +- site/src/components/link-list/LinkList.tsx | 2 +- .../mdx/anchorHeading/AnchorHeading.tsx | 22 +- site/src/components/mdx/code/Code.tsx | 2 +- site/src/components/mdx/h2/Heading2.tsx | 2 +- site/src/components/mdx/h3/Heading3.tsx | 2 +- site/src/components/mdx/h4/Heading4.tsx | 2 +- site/src/components/mdx/index.ts | 2 +- site/src/components/mdx/link/A.tsx | 4 +- site/src/components/mdx/p/Paragraph.tsx | 2 +- site/src/components/mdx/pre/Pre.tsx | 2 +- site/src/components/mdx/table/Table.tsx | 6 +- site/src/components/mdx/thead/Thead.tsx | 2 +- site/src/components/mdx/tr/Tr.tsx | 2 +- site/src/components/mdx/ul/UnorderedList.tsx | 2 +- site/src/components/roadmap/Roadmap.tsx | 43 +- .../src/components/status-pill/StatusPill.tsx | 2 +- .../SupportContributionsCard.tsx | 6 +- .../SupportContributionsCards.tsx | 2 +- site/src/components/toc/TableOfContents.tsx | 4 +- .../examples/accordion/AdditionalLabels.tsx | 11 +- site/src/examples/accordion/Default.tsx | 2 +- site/src/examples/accordion/Disabled.tsx | 4 +- .../src/examples/accordion/ExclusiveGroup.tsx | 2 +- site/src/examples/accordion/Group.tsx | 2 +- site/src/examples/accordion/IndicatorSide.tsx | 2 +- site/src/examples/accordion/InlineBadge.tsx | 2 +- site/src/examples/accordion/Status.tsx | 6 +- .../ag-grid-theme/CheckboxSelection.tsx | 2 +- .../src/examples/ag-grid-theme/Coloration.tsx | 2 +- .../examples/ag-grid-theme/ColumnGroup.tsx | 2 +- .../examples/ag-grid-theme/ColumnSpanning.tsx | 2 +- .../examples/ag-grid-theme/ContextMenu.tsx | 4 +- .../examples/ag-grid-theme/CustomFilter.tsx | 8 +- site/src/examples/ag-grid-theme/Default.tsx | 4 +- .../examples/ag-grid-theme/DragRowOrder.tsx | 2 +- .../examples/ag-grid-theme/InfiniteScroll.tsx | 18 +- .../examples/ag-grid-theme/MasterDetail.tsx | 8 +- .../examples/ag-grid-theme/NoDataOverlay.tsx | 5 +- .../src/examples/ag-grid-theme/Pagination.tsx | 21 +- .../ag-grid-theme/ParentChildRows.tsx | 6 +- .../src/examples/ag-grid-theme/PinnedRows.tsx | 9 +- .../examples/ag-grid-theme/RowGroupPanel.tsx | 2 +- .../examples/ag-grid-theme/RowGrouping.tsx | 2 +- site/src/examples/ag-grid-theme/StatusBar.tsx | 4 +- site/src/examples/ag-grid-theme/Variants.tsx | 4 +- .../examples/ag-grid-theme/WrappedHeader.tsx | 2 +- .../ag-grid-theme/data/coloredColumns.ts | 5 +- .../ag-grid-theme/data/customFilterColumns.ts | 2 +- .../ag-grid-theme/data/defaultColumns.ts | 2 +- .../ag-grid-theme/data/groupedColumns.ts | 4 +- .../ag-grid-theme/data/spannedColumns.ts | 8 +- .../ag-grid-theme/data/wrappedColumns.ts | 2 +- .../ag-grid-theme/useAgGridHelpers.ts | 8 +- .../examples/avatar/CustomFallbackIcon.tsx | 2 +- site/src/examples/avatar/Image.tsx | 2 +- site/src/examples/avatar/Initials.tsx | 2 +- site/src/examples/avatar/Sizes.tsx | 2 +- .../examples/badge/BadgeWithMaximumDigits.tsx | 2 +- site/src/examples/badge/BadgeWithString.tsx | 2 +- site/src/examples/badge/Default.tsx | 2 +- site/src/examples/badge/InlineBadge.tsx | 4 +- site/src/examples/banner/Error.tsx | 4 +- site/src/examples/banner/Info.tsx | 2 +- site/src/examples/banner/Interactive.tsx | 2 +- site/src/examples/banner/MultilineBanners.tsx | 8 +- site/src/examples/banner/SecondaryVariant.tsx | 2 +- site/src/examples/banner/Static.tsx | 2 +- site/src/examples/banner/Success.tsx | 2 +- site/src/examples/banner/Warning.tsx | 2 +- .../border-layout/BorderItemAlignment.tsx | 20 +- .../border-layout/BorderItemPosition.tsx | 18 +- .../border-layout/CustomRegionSize.tsx | 4 +- site/src/examples/border-layout/Default.tsx | 4 +- .../border-layout/GapBetweenRegions.tsx | 4 +- .../examples/border-layout/HideRegions.tsx | 6 +- .../border-layout/StickyPositioning.tsx | 6 +- site/src/examples/button/CTA.tsx | 2 +- site/src/examples/button/Disabled.tsx | 2 +- site/src/examples/button/FullWidth.tsx | 2 +- site/src/examples/button/IconAndText.tsx | 2 +- site/src/examples/button/IconOnly.tsx | 2 +- site/src/examples/button/Primary.tsx | 2 +- site/src/examples/button/Secondary.tsx | 2 +- site/src/examples/calendar/Default.tsx | 4 +- site/src/examples/calendar/DisabledDates.tsx | 4 +- .../calendar/HiddenOutOfRangeDates.tsx | 2 +- .../examples/calendar/HighlightedDates.tsx | 2 +- site/src/examples/calendar/MultiSelection.tsx | 4 +- .../src/examples/calendar/OffsetSelection.tsx | 4 +- site/src/examples/calendar/RangeSelection.tsx | 4 +- .../examples/calendar/UnselectableDates.tsx | 2 +- site/src/examples/card/Accents.tsx | 14 +- site/src/examples/card/Actions.tsx | 4 +- site/src/examples/card/CustomAccent.tsx | 4 +- site/src/examples/card/CustomPadding.tsx | 16 +- site/src/examples/card/Default.tsx | 4 +- .../card/DisabledInteractableCard.tsx | 4 +- .../src/examples/card/DisabledToggleGroup.tsx | 6 +- site/src/examples/card/FullWidthImage.tsx | 4 +- .../examples/card/InteractableCardExample.tsx | 4 +- site/src/examples/card/LinkCardExample.tsx | 4 +- site/src/examples/card/ToggleGroup.tsx | 6 +- site/src/examples/card/Variants.tsx | 2 +- site/src/examples/checkbox/Default.tsx | 2 +- site/src/examples/checkbox/Disabled.tsx | 2 +- site/src/examples/checkbox/Error.tsx | 2 +- .../src/examples/checkbox/HorizontalGroup.tsx | 2 +- site/src/examples/checkbox/Indeterminate.tsx | 2 +- site/src/examples/checkbox/LongTextGroup.tsx | 2 +- site/src/examples/checkbox/NoWrapGroup.tsx | 2 +- site/src/examples/checkbox/Readonly.tsx | 2 +- site/src/examples/checkbox/VerticalGroup.tsx | 2 +- site/src/examples/checkbox/Warning.tsx | 4 +- .../src/examples/checkbox/WithDescription.tsx | 4 +- site/src/examples/checkbox/WithFormField.tsx | 6 +- site/src/examples/checkbox/WrapGroup.tsx | 2 +- site/src/examples/combo-box/Bordered.tsx | 2 +- .../src/examples/combo-box/ClearSelection.tsx | 15 +- .../src/examples/combo-box/ComplexOptions.tsx | 4 +- .../examples/combo-box/CustomFiltering.tsx | 13 +- site/src/examples/combo-box/Default.tsx | 11 +- site/src/examples/combo-box/Disabled.tsx | 2 +- .../src/examples/combo-box/DisabledOption.tsx | 11 +- site/src/examples/combo-box/EmptyMessage.tsx | 11 +- site/src/examples/combo-box/Grouped.tsx | 30 +- site/src/examples/combo-box/Multiselect.tsx | 6 +- site/src/examples/combo-box/ObjectValues.tsx | 13 +- site/src/examples/combo-box/Placeholder.tsx | 11 +- site/src/examples/combo-box/Readonly.tsx | 2 +- site/src/examples/combo-box/SelectOnTab.tsx | 6 +- .../src/examples/combo-box/ServerSideData.tsx | 15 +- site/src/examples/combo-box/Truncation.tsx | 6 +- site/src/examples/combo-box/Validation.tsx | 2 +- site/src/examples/combo-box/Variants.tsx | 2 +- site/src/examples/combo-box/WithFormField.tsx | 15 +- site/src/examples/combo-box/exampleData.ts | 2 +- .../component-name/ComponentExample.tsx | 2 +- .../country-symbol/AllCountrySymbols.tsx | 10 +- .../examples/country-symbol/BasicUsage.tsx | 4 +- .../examples/country-symbol/LazyLoading.tsx | 2 +- .../examples/country-symbol/SharpVariants.tsx | 4 +- site/src/examples/country-symbol/Size.tsx | 2 +- .../examples/date-picker/CustomFormatter.tsx | 6 +- site/src/examples/date-picker/Range.tsx | 4 +- .../src/examples/date-picker/SingleSelect.tsx | 2 +- .../examples/date-picker/VisibleMonths.tsx | 4 +- .../date-picker/WithDisabledDates.tsx | 4 +- .../examples/date-picker/WithFormField.tsx | 4 +- .../examples/date-picker/WithValidation.tsx | 10 +- site/src/examples/dialog/CloseButton.tsx | 12 +- site/src/examples/dialog/Default.tsx | 10 +- site/src/examples/dialog/DisableScrim.tsx | 10 +- site/src/examples/dialog/Error.tsx | 6 +- site/src/examples/dialog/Info.tsx | 6 +- site/src/examples/dialog/MandatoryAction.tsx | 6 +- site/src/examples/dialog/Preheader.tsx | 12 +- site/src/examples/dialog/Sizes.tsx | 16 +- site/src/examples/dialog/Success.tsx | 6 +- site/src/examples/dialog/Warning.tsx | 6 +- site/src/examples/dialog/WithoutAccent.tsx | 10 +- site/src/examples/divider/Variants.tsx | 4 +- site/src/examples/divider/Vertical.tsx | 4 +- site/src/examples/drawer/BottomDrawer.tsx | 12 +- site/src/examples/drawer/Default.tsx | 4 +- site/src/examples/drawer/DisableScrim.tsx | 4 +- site/src/examples/drawer/MandatoryAction.tsx | 17 +- site/src/examples/drawer/RightDrawer.tsx | 8 +- site/src/examples/drawer/TopDrawer.tsx | 8 +- site/src/examples/dropdown/Bordered.tsx | 2 +- site/src/examples/dropdown/ComplexOptions.tsx | 6 +- site/src/examples/dropdown/CustomValue.tsx | 6 +- site/src/examples/dropdown/Default.tsx | 2 +- site/src/examples/dropdown/Disabled.tsx | 2 +- site/src/examples/dropdown/DisabledOption.tsx | 2 +- site/src/examples/dropdown/Grouped.tsx | 21 +- site/src/examples/dropdown/Multiselect.tsx | 2 +- site/src/examples/dropdown/ObjectValues.tsx | 4 +- site/src/examples/dropdown/Placeholder.tsx | 2 +- site/src/examples/dropdown/Readonly.tsx | 2 +- site/src/examples/dropdown/SelectAll.tsx | 14 +- site/src/examples/dropdown/StartAdornment.tsx | 4 +- site/src/examples/dropdown/Validation.tsx | 2 +- site/src/examples/dropdown/Variants.tsx | 2 +- site/src/examples/dropdown/WithFormField.tsx | 6 +- site/src/examples/dropdown/exampleData.ts | 2 +- site/src/examples/file-drop-zone/Default.tsx | 2 +- site/src/examples/file-drop-zone/Disabled.tsx | 2 +- site/src/examples/file-drop-zone/Error.tsx | 4 +- site/src/examples/file-drop-zone/Success.tsx | 2 +- .../examples/flex-layout/ColumnDirection.tsx | 4 +- site/src/examples/flex-layout/Default.tsx | 4 +- .../examples/flex-layout/FlexItemPosition.tsx | 14 +- .../src/examples/flex-layout/FlexItemSize.tsx | 6 +- .../examples/flex-layout/LayoutPosition.tsx | 18 +- .../examples/flex-layout/ResponsiveLayout.tsx | 10 +- site/src/examples/flow-layout/Default.tsx | 4 +- .../examples/flow-layout/FlexItemPosition.tsx | 14 +- .../src/examples/flow-layout/FlexItemSize.tsx | 6 +- .../examples/flow-layout/LayoutPosition.tsx | 18 +- site/src/examples/form-field/Default.tsx | 6 +- site/src/examples/form-field/Disabled.tsx | 6 +- .../form-field/GroupedWithEmptySlot.tsx | 10 +- .../form-field/GroupedWithLabelLeft.tsx | 8 +- .../form-field/GroupedWithLabelRight.tsx | 8 +- .../form-field/GroupedWithLabelTop.tsx | 8 +- .../form-field/GroupedWithMultipleColumns.tsx | 8 +- .../form-field/GroupedWithVariant.tsx | 10 +- site/src/examples/form-field/HelperText.tsx | 6 +- .../form-field/HelperTextAsTooltip.tsx | 2 +- site/src/examples/form-field/Label.tsx | 6 +- site/src/examples/form-field/LabelLeft.tsx | 6 +- .../src/examples/form-field/LabelQuestion.tsx | 6 +- .../examples/form-field/MultipleChildren.tsx | 14 +- .../examples/form-field/NecessityLabel.tsx | 4 +- site/src/examples/form-field/Readonly.tsx | 4 +- site/src/examples/form-field/Validation.tsx | 8 +- site/src/examples/form-field/WithControls.tsx | 16 +- .../examples/grid-layout/ColumnsAndRows.tsx | 4 +- .../grid-layout/CustomColumnsAndRows.tsx | 4 +- site/src/examples/grid-layout/Default.tsx | 6 +- .../ExpandingAndCollapsingItems.tsx | 6 +- .../examples/grid-layout/PositioningItems.tsx | 20 +- .../examples/grid-layout/ResponsiveLayout.tsx | 10 +- .../grid-layout/SpanningColumnsAndRows.tsx | 4 +- site/src/examples/icon/AllIcons.tsx | 6 +- site/src/examples/icon/BasicIcon.tsx | 2 +- site/src/examples/icon/CustomColors.tsx | 4 +- site/src/examples/icon/CustomIcon.tsx | 2 +- site/src/examples/icon/IconColor.tsx | 4 +- site/src/examples/icon/IconSize.tsx | 4 +- site/src/examples/icon/IconTypes.tsx | 4 +- site/src/examples/icon/allIconsList.ts | 54 +- site/src/examples/input/Bordered.tsx | 4 +- site/src/examples/input/ButtonAdornments.tsx | 8 +- site/src/examples/input/Disabled.tsx | 2 +- .../examples/input/EmptyReadonlyMarker.tsx | 2 +- site/src/examples/input/Placeholder.tsx | 2 +- site/src/examples/input/Primary.tsx | 2 +- site/src/examples/input/Readonly.tsx | 2 +- site/src/examples/input/Secondary.tsx | 4 +- site/src/examples/input/Spellcheck.tsx | 2 +- site/src/examples/input/StaticAdornments.tsx | 6 +- site/src/examples/input/TextAlignment.tsx | 2 +- site/src/examples/input/Validation.tsx | 2 +- site/src/examples/link/Color.tsx | 2 +- site/src/examples/link/Default.tsx | 2 +- site/src/examples/link/OpenInANewTab.tsx | 4 +- site/src/examples/link/Variant.tsx | 2 +- site/src/examples/link/Visited.tsx | 2 +- site/src/examples/list-box/Bordered.tsx | 4 +- site/src/examples/list-box/ComplexOptions.tsx | 4 +- site/src/examples/list-box/DisabledOption.tsx | 4 +- site/src/examples/list-box/GroupedOptions.tsx | 23 +- site/src/examples/list-box/Multiselect.tsx | 4 +- site/src/examples/list-box/Scrolling.tsx | 4 +- site/src/examples/list-box/SingleSelect.tsx | 4 +- site/src/examples/list-box/exampleData.ts | 2 +- site/src/examples/list/Default.tsx | 2 +- site/src/examples/list/Disabled.tsx | 2 +- site/src/examples/list/exampleData.tsx | 2 +- site/src/examples/menu/Descriptions.tsx | 4 +- site/src/examples/menu/GroupedItems.tsx | 2 +- site/src/examples/menu/GroupedWithIcon.tsx | 2 +- site/src/examples/menu/Multilevel.tsx | 2 +- site/src/examples/menu/Placement.tsx | 2 +- site/src/examples/menu/Scrolling.tsx | 2 +- site/src/examples/menu/SeparatorOnly.tsx | 2 +- site/src/examples/menu/SingleLevel.tsx | 2 +- site/src/examples/menu/VirtualElement.tsx | 4 +- site/src/examples/menu/WithIcon.tsx | 2 +- .../src/examples/multiline-input/Bordered.tsx | 2 +- .../multiline-input/ButtonAdornment.tsx | 4 +- .../multiline-input/CharacterCount.tsx | 2 +- .../src/examples/multiline-input/Disabled.tsx | 2 +- .../examples/multiline-input/NumberOfRows.tsx | 2 +- .../examples/multiline-input/Placeholder.tsx | 2 +- site/src/examples/multiline-input/Primary.tsx | 2 +- .../src/examples/multiline-input/Readonly.tsx | 2 +- .../examples/multiline-input/Secondary.tsx | 2 +- .../multiline-input/StaticAdornments.tsx | 4 +- .../multiline-input/ValidationStatus.tsx | 2 +- .../examples/navigation-item/BlurActive.tsx | 4 +- site/src/examples/navigation-item/Default.tsx | 2 +- .../navigation-item/HorizontalGroup.tsx | 2 +- .../src/examples/navigation-item/Vertical.tsx | 2 +- .../navigation-item/VerticalGroup.tsx | 2 +- .../navigation-item/VerticalNestedGroup.tsx | 14 +- .../examples/navigation-item/WithBadge.tsx | 2 +- .../src/examples/navigation-item/WithIcon.tsx | 2 +- .../navigation-item/WithNestedItems.tsx | 2 +- site/src/examples/overlay/CloseButton.tsx | 6 +- site/src/examples/overlay/Default.tsx | 6 +- site/src/examples/overlay/LongContent.tsx | 6 +- site/src/examples/overlay/Placement.tsx | 8 +- site/src/examples/overlay/WithActions.tsx | 14 +- .../src/examples/pagination/BoundaryCount.tsx | 4 +- site/src/examples/pagination/Compact.tsx | 4 +- .../examples/pagination/CompactWithGoTo.tsx | 6 +- .../examples/pagination/CompactWithInput.tsx | 4 +- site/src/examples/pagination/Default.tsx | 2 +- .../examples/pagination/DefaultWithInput.tsx | 4 +- .../examples/pagination/SiblingPairCount.tsx | 4 +- site/src/examples/pagination/Truncation.tsx | 2 +- site/src/examples/panel/Primary.tsx | 2 +- site/src/examples/panel/Secondary.tsx | 2 +- .../parent-child-layout/Collapsed.tsx | 6 +- .../examples/parent-child-layout/Default.tsx | 2 +- .../parent-child-layout/PreferencesDialog.tsx | 14 +- .../parent-child-layout/ReducedMotion.tsx | 10 +- site/src/examples/pill/Closable.tsx | 2 +- site/src/examples/pill/Default.tsx | 2 +- site/src/examples/pill/Disabled.tsx | 2 +- site/src/examples/pill/Icon.tsx | 2 +- site/src/examples/progress/Circular.tsx | 2 +- site/src/examples/progress/HiddenLabel.tsx | 2 +- site/src/examples/progress/Linear.tsx | 2 +- .../examples/progress/LinearIndeterminate.tsx | 2 +- site/src/examples/progress/WithBuffer.tsx | 2 +- site/src/examples/progress/WithMaxVal.tsx | 2 +- site/src/examples/progress/WithMinVal.tsx | 2 +- .../examples/progress/WithProgBufferVal.tsx | 4 +- site/src/examples/progress/WithProgVal.tsx | 4 +- site/src/examples/radio-button/Default.tsx | 2 +- site/src/examples/radio-button/Disabled.tsx | 2 +- site/src/examples/radio-button/Error.tsx | 2 +- site/src/examples/radio-button/Horizontal.tsx | 2 +- site/src/examples/radio-button/LongText.tsx | 2 +- site/src/examples/radio-button/NoWrap.tsx | 2 +- site/src/examples/radio-button/Readonly.tsx | 2 +- site/src/examples/radio-button/Warning.tsx | 2 +- .../examples/radio-button/WithDescription.tsx | 6 +- .../examples/radio-button/WithFormField.tsx | 8 +- site/src/examples/radio-button/Wrap.tsx | 2 +- .../examples/salt-provider/Breakpoints.tsx | 4 +- site/src/examples/salt-provider/Density.tsx | 4 +- site/src/examples/salt-provider/Modes.tsx | 4 +- .../salt-provider/NestedProviders.tsx | 2 +- site/src/examples/salt-provider/Theme.tsx | 2 +- site/src/examples/scrim/FillContainer.tsx | 2 +- site/src/examples/scrim/FillViewport.tsx | 2 +- site/src/examples/scrim/WithChild.tsx | 2 +- .../segmented-button-group/IconOnly.tsx | 6 +- .../segmented-button-group/Variants.tsx | 6 +- site/src/examples/spinner/Large.tsx | 2 +- site/src/examples/spinner/Loading.tsx | 4 +- site/src/examples/spinner/LoadingPartial.tsx | 20 +- site/src/examples/spinner/Medium.tsx | 2 +- site/src/examples/spinner/Small.tsx | 2 +- site/src/examples/split-layout/ButtonBar.tsx | 4 +- .../examples/split-layout/ColumnDirection.tsx | 6 +- site/src/examples/split-layout/Default.tsx | 4 +- .../split-layout/FlexItemPosition.tsx | 16 +- .../examples/split-layout/FlexItemSize.tsx | 6 +- .../examples/split-layout/LayoutAlignment.tsx | 12 +- .../split-layout/ResponsiveLayout.tsx | 12 +- site/src/examples/stack-layout/Default.tsx | 4 +- .../stack-layout/FlexItemPosition.tsx | 14 +- .../examples/stack-layout/FlexItemSize.tsx | 6 +- .../examples/stack-layout/LayoutAlignment.tsx | 12 +- .../stack-layout/LayoutSeparators.tsx | 4 +- .../stack-layout/ResponsiveLayout.tsx | 8 +- .../examples/stack-layout/RowDirection.tsx | 4 +- .../examples/status-indicator/Labelling.tsx | 4 +- site/src/examples/status-indicator/Size.tsx | 2 +- site/src/examples/status-indicator/Status.tsx | 2 +- site/src/examples/stepped-tracker/Basic.tsx | 4 +- .../stepped-tracker/NonSequentialProgress.tsx | 10 +- .../stepped-tracker/StepProgression.tsx | 12 +- .../src/examples/stepped-tracker/Vertical.tsx | 4 +- site/src/examples/switch/Default.tsx | 2 +- site/src/examples/switch/DefaultChecked.tsx | 2 +- site/src/examples/switch/Disabled.tsx | 2 +- site/src/examples/switch/DisabledChecked.tsx | 2 +- site/src/examples/switch/LeftAlignedLabel.tsx | 2 +- site/src/examples/tabs/Inline.tsx | 4 +- site/src/examples/tabs/MainTabstrip.tsx | 4 +- site/src/examples/tabs/WithBadge.tsx | 4 +- site/src/examples/tabs/WithIcon.tsx | 4 +- site/src/examples/tag/Bordered.tsx | 2 +- site/src/examples/tag/Categories.tsx | 2 +- site/src/examples/tag/TagInCard.tsx | 2 +- site/src/examples/tag/Variants.tsx | 2 +- site/src/examples/tag/WithIcon.tsx | 4 +- site/src/examples/text/Color.tsx | 4 +- site/src/examples/text/Styles.tsx | 8 +- site/src/examples/text/Styling.tsx | 2 +- site/src/examples/text/Truncation.tsx | 2 +- site/src/examples/text/Variant.tsx | 4 +- site/src/examples/toast/CustomIcon.tsx | 2 +- site/src/examples/toast/Default.tsx | 2 +- site/src/examples/toast/Error.tsx | 2 +- site/src/examples/toast/Info.tsx | 2 +- site/src/examples/toast/Success.tsx | 2 +- site/src/examples/toast/ToastGroupBottom.tsx | 2 +- site/src/examples/toast/ToastGroupTop.tsx | 2 +- site/src/examples/toast/ToastsExamples.tsx | 2 +- site/src/examples/toast/Warning.tsx | 2 +- site/src/examples/toggle-button/Disabled.tsx | 2 +- site/src/examples/toggle-button/IconOnly.tsx | 2 +- site/src/examples/toggle-button/TextOnly.tsx | 2 +- .../toggle-button/ToggleButtonDefault.tsx | 2 +- .../ToggleButtonGroupDefault.tsx | 4 +- .../ToggleButtonGroupVertical.tsx | 4 +- .../examples/tokenized-input-next/Default.tsx | 2 +- .../tokenized-input-next/Disabled.tsx | 2 +- .../WithCustomizedDelimiter.tsx | 2 +- site/src/examples/tooltip/Content.tsx | 2 +- site/src/examples/tooltip/Default.tsx | 2 +- .../src/examples/tooltip/DelayBeforeShown.tsx | 2 +- site/src/examples/tooltip/HideArrow.tsx | 2 +- site/src/examples/tooltip/HideIcon.tsx | 2 +- site/src/examples/tooltip/Placement.tsx | 2 +- site/src/examples/tooltip/Status.tsx | 2 +- site/src/layouts/DetailBase/DetailBase.tsx | 10 +- .../DetailComponent/DetailComponent.tsx | 22 +- .../layouts/DetailComponent/MobileDrawer.tsx | 4 +- .../DetailComponent/SecondarySidebar.tsx | 19 +- .../DetailComponent/TitleWithDrawer.tsx | 4 +- .../DetailContentOnly/DetailContentOnly.tsx | 12 +- site/src/layouts/DetailPattern/Components.tsx | 4 +- .../layouts/DetailPattern/DetailPattern.tsx | 6 +- .../layouts/DetailPattern/RelatedPatterns.tsx | 4 +- site/src/layouts/DetailPattern/Resources.tsx | 6 +- .../DetailTechnical/DetailTechnical.tsx | 6 +- site/src/layouts/Landing/Landing.tsx | 6 +- .../layouts/LayoutColumns/LayoutColumns.tsx | 10 +- .../LayoutFullWidth/LayoutFullWidth.tsx | 4 +- site/src/layouts/types/index.ts | 4 +- .../ComponentsDocPaginatorPlugin.mjs | 7 +- .../mosaic-plugins/LabsComponentPlugin.mjs | 2 +- site/src/pages/[...route].tsx | 26 +- site/src/pages/_app.tsx | 35 +- site/src/pages/_document.tsx | 2 +- site/src/pages/api/roadmap.ts | 2 +- site/src/pages/index.module.css | 2 +- site/src/pages/index.tsx | 14 +- site/src/types/mosaic.ts | 2 +- site/src/utils/formatDate.ts | 25 +- site/src/utils/useAllExamplesView.ts | 9 +- site/src/utils/useOnScreen.ts | 8 +- tooling/css-inline-plugin/package.json | 4 +- tooling/css-inline-plugin/src/index.ts | 2 +- .../package.json | 4 +- .../src/CSSClassTable.tsx | 3 +- .../src/CharacteristicUsage.tsx | 8 +- .../src/CharacteristicUsageRow.tsx | 10 +- .../src/ClassNameRow.tsx | 4 +- .../src/EmptyBlock.tsx | 4 +- .../src/TableWrapper.tsx | 4 +- .../src/common.ts | 2 +- .../src/utils.ts | 6 +- .../css-variable-docgen-plugin/package.json | 4 +- .../css-variable-docgen-plugin/src/index.ts | 73 +- .../correct-theme-token-usage/index.js | 30 +- .../index.js | 37 +- .../index.js | 34 +- tooling/typescript-turbosnap/src/index.ts | 20 +- yarn.lock | 1303 ++--------------- 2350 files changed, 12702 insertions(+), 13378 deletions(-) create mode 100644 biome.jsonc rename packages/core/src/combo-box/{useComboBox.tsx => useComboBox.ts} (90%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index caa99cf5e1..9541b67bdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - name: Lint # Continue on error so, we can see lint issues but not fail the build, we should fix them incrementally continue-on-error: true - run: yarn run lint:ci + run: yarn biome ci --reporter=github - name: Prettier run: yarn run prettier:ci - name: Stylelint diff --git a/.prettierignore b/.prettierignore index 5e74e8a1bc..923452f455 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,19 +10,24 @@ node_modules # production dist site/build -site/.docusaurus storybook-static .next .tmp -# Autogenerated CSS -/packages/ag-grid-theme/uitk-ag-theme.css -/packages/ag-grid-theme/salt-ag-theme.css -/docs/css/salt-core.css -/docs/css/salt-lab.css - /site/snapshots -/docs/public/mockServiceWorker.js # Prettier doesn't support MDX v2 yet site/docs/patterns/*.mdx + +# Covered by biome +*.tsx +*.ts +*.mts +*.cts +*.js +*.jsx +*.mjs +*.cjs +*.json +*.jsonc +*.css diff --git a/.storybook/main.ts b/.storybook/main.ts index f72ced854e..c7a090cb92 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -1,7 +1,7 @@ -import { dirname, join } from "path"; +import { dirname, join } from "node:path"; import type { StorybookConfig } from "@storybook/react-vite"; -import type { UserConfig } from "vite"; import { cssVariableDocgen } from "css-variable-docgen-plugin"; +import type { UserConfig } from "vite"; import { typescriptTurbosnap } from "vite-plugin-typescript-turbosnap"; import { cssInline } from "../tooling/css-inline-plugin"; @@ -36,10 +36,8 @@ const config: StorybookConfig = { plugins: [cssInline(), cssVariableDocgen()], }; - if (configType === "PRODUCTION") { - customConfig.plugins!.push( - typescriptTurbosnap({ rootDir: config.root! }) - ); + if (configType === "PRODUCTION" && config.root) { + customConfig.plugins?.push(typescriptTurbosnap({ rootDir: config.root })); } return mergeConfig(customConfig, config); @@ -48,6 +46,8 @@ const config: StorybookConfig = { module.exports = config; -function getAbsolutePath(value: string): any { - return dirname(require.resolve(join(value, "package.json"))); +function getAbsolutePath(value: string): Value { + return dirname( + require.resolve(join(value, "package.json")), + ) as unknown as Value; } diff --git a/.storybook/preview.tsx b/.storybook/preview.tsx index db85e47e50..ff87924976 100644 --- a/.storybook/preview.tsx +++ b/.storybook/preview.tsx @@ -1,4 +1,4 @@ -import type { Parameters, GlobalTypes, ArgTypes } from "@storybook/types"; +import type { ArgTypes, GlobalTypes, Parameters } from "@storybook/types"; import "@salt-ds/theme/index.css"; import "@salt-ds/theme/css/theme-next.css"; import "@fontsource/open-sans/300.css"; @@ -16,15 +16,15 @@ import "@fontsource/open-sans/800-italic.css"; import "@fontsource/pt-mono"; import "./styles.css"; -import { ComponentProps } from "react"; -import { withTheme } from "docs/decorators/withTheme"; -import { withResponsiveWrapper } from "docs/decorators/withResponsiveWrapper"; -import { WithTextSpacingWrapper } from "docs/decorators/withTextSpacingWrapper"; -import { withScaffold } from "docs/decorators/withScaffold"; -import { withDateMock } from "docs/decorators/withDateMock"; import { SaltProvider, UNSTABLE_SaltProviderNext } from "@salt-ds/core"; import { DocsContainer } from "@storybook/addon-docs"; +import { withDateMock } from "docs/decorators/withDateMock"; +import { withResponsiveWrapper } from "docs/decorators/withResponsiveWrapper"; +import { withScaffold } from "docs/decorators/withScaffold"; +import { WithTextSpacingWrapper } from "docs/decorators/withTextSpacingWrapper"; +import { withTheme } from "docs/decorators/withTheme"; import { initialize, mswLoader } from "msw-storybook-addon"; +import type { ComponentProps } from "react"; import { globalOptions as themeNextGlobals } from "./toolbar/ThemeNextToolbar"; diff --git a/.storybook/toolbar/ThemeNextToolbar.tsx b/.storybook/toolbar/ThemeNextToolbar.tsx index 5250546924..1cd78800d3 100644 --- a/.storybook/toolbar/ThemeNextToolbar.tsx +++ b/.storybook/toolbar/ThemeNextToolbar.tsx @@ -8,7 +8,7 @@ import { import { BeakerIcon, CheckIcon } from "@storybook/icons"; import { useGlobals } from "@storybook/manager-api"; import { clsx } from "clsx"; -import React, { AnchorHTMLAttributes } from "react"; +import React, { type AnchorHTMLAttributes } from "react"; import "./ThemeNextToolbar.css"; @@ -60,10 +60,9 @@ const GroupWrapper = ({ children, }: AnchorHTMLAttributes) => { return ( -
+
+ {children} +
); }; @@ -81,9 +80,7 @@ export const ThemeNextToolbar = ({ active }: { active?: boolean }) => { }, ...globalOptions[globalKey].items.map((value) => { const disabled = - globalKey === "themeNext" - ? false - : globals["themeNext"] !== "enable"; + globalKey === "themeNext" ? false : globals.themeNext !== "enable"; const active = globals[globalKey] === value; return { @@ -100,7 +97,7 @@ export const ThemeNextToolbar = ({ active }: { active?: boolean }) => { }; }), ]; - } + }, ); return ( diff --git a/biome.jsonc b/biome.jsonc new file mode 100644 index 0000000000..27f1abf41e --- /dev/null +++ b/biome.jsonc @@ -0,0 +1,153 @@ +{ + "$schema": "https://biomejs.dev/schemas/1.8.0/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true, + "defaultBranch": "main" + }, + "files": { + "ignore": [".next", "mockServiceWorker.js", "*-props.json", ".tmp"] + }, + "organizeImports": { + "enabled": true + }, + "formatter": { + "enabled": true, + "indentStyle": "space" + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "style": { + // Changed to warn because we have a lot of non-null assertions. + "noNonNullAssertion": "warn" + }, + "complexity": { + // Changed to warn because it is useful to keep this in mind, but it doesn't need to be a strict requirement. + "noForEach": "warn" + }, + "a11y": { + // Disabled because autofocus is necessary in some cases. + "noAutofocus": "off", + // Disabled because we write a lot of custom components. + "noNoninteractiveElementToInteractiveRole": "off", + "noNoninteractiveTabindex": "off", + // Disabled until biome doesn't flag hidden SVGs. + "noSvgWithoutTitle": "off", + // Changed to warn because biome has some false positives. + "useAriaPropsForRole": "warn" + }, + "correctness": { + "useExhaustiveDependencies": { + "level": "warn", + "options": { + "hooks": [ + { + "name": "useIsomorphicLayoutEffect", + "closureIndex": 0, + "dependenciesIndex": 1 + }, + { + "name": "useControlled", + "stableResult": [1] + } + ] + } + } + }, + "suspicious": { + // Changed to warn because it is useful to keep this in mind, but it doesn't need to be a strict requirement. + "noArrayIndexKey": "warn", + // Changed to warn because it is useful to keep this in mind, but it doesn't need to be a strict requirement. + "noExplicitAny": "warn" + } + } + }, + "css": { + "formatter": { + "enabled": true, + "lineWidth": 200 + }, + "linter": { + "enabled": true + }, + "parser": { + "cssModules": true + } + }, + "overrides": [ + { + // Disable some rules for tests and stories, because they are not production code. + "include": ["__tests__/**", "stories/**"], + "linter": { + "rules": { + "a11y": { + "useButtonType": "off" + }, + "complexity": { + "noForEach": "off" + }, + "suspicious": { + "noImplicitAnyLet": "off" + } + } + } + }, + { + // Disable some rules for legacy code, because it is not worth fixing. + "include": [ + "lab/src/responsive/**", + "packages/data-grid/**", + "lab/src/common-hooks/**" + ], + "linter": { + "rules": { + "style": { + "noParameterAssign": "off" + }, + "suspicious": { + "noAssignInExpressions": "off" + } + } + } + }, + { + // Disable noExplicitAny for utils, because any is useful in some cases. + "include": ["utils/**"], + "linter": { + "rules": { + "suspicious": { + "noExplicitAny": "off" + } + } + } + }, + { + // Disable noArrayIndexKey for layout examples because array indexes are useful in this case. + "include": [ + "packages/*/stories/*-layout/**", + "site/src/examples/*-layout/**" + ], + "linter": { + "rules": { + "suspicious": { + "noArrayIndexKey": "off" + } + } + } + }, + { + // Disable noShadowRestrictedNames for examples and stories because it is useful to shadow restricted names for example names. + "include": ["site/src/examples/**", "packages/*/stories/**"], + "linter": { + "rules": { + "suspicious": { + "noShadowRestrictedNames": "off" + } + } + } + } + ] +} diff --git a/cypress.config.ts b/cypress.config.ts index 31246955d3..f7c9887154 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -1,14 +1,14 @@ -import { defineConfig } from "cypress"; -import react from "@vitejs/plugin-react"; -import tsconfigPaths from "vite-tsconfig-paths"; -import IstanbulPlugin from "vite-plugin-istanbul"; -import { isCI } from "ci-info"; -import path from "path"; -import { UserConfig } from "vite"; -import { version as reactVersion } from "react"; +import path from "node:path"; // @ts-ignore import installCoverageTask from "@cypress/code-coverage/task"; +import react from "@vitejs/plugin-react"; +import { isCI } from "ci-info"; import { cssInline } from "css-inline-plugin"; +import { defineConfig } from "cypress"; +import { version as reactVersion } from "react"; +import type { UserConfig } from "vite"; +import IstanbulPlugin from "vite-plugin-istanbul"; +import tsconfigPaths from "vite-tsconfig-paths"; async function getViteConfig(config: UserConfig) { const { mergeConfig } = await import("vite"); @@ -52,7 +52,7 @@ async function getViteConfig(config: UserConfig) { "@salt-ds/core": path.resolve(__dirname, "./dist/salt-ds-core"), "@salt-ds/data-grid": path.resolve( __dirname, - "./dist/salt-ds-data-grid" + "./dist/salt-ds-data-grid", ), "@salt-ds/lab": path.resolve(__dirname, "./dist/salt-ds-lab"), "@salt-ds/icons": path.resolve(__dirname, "./dist/salt-ds-icons"), diff --git a/cypress/support/AnnouncementListener.tsx b/cypress/support/AnnouncementListener.tsx index 2d40b5ff26..30289002f8 100644 --- a/cypress/support/AnnouncementListener.tsx +++ b/cypress/support/AnnouncementListener.tsx @@ -1,4 +1,4 @@ -import { useRef, useEffect } from "react"; +import { useEffect, useRef } from "react"; const positiveLookUp = [ '[aria-live="polite"]', @@ -14,7 +14,7 @@ const walkTheDOM = (node: Element, handler: (node: Element) => void) => { if (node.nodeType === 1) { handler(node); if (node.children.length) { - for (let childNode of node.children) { + for (const childNode of node.children) { walkTheDOM(childNode, handler); } } @@ -26,9 +26,9 @@ export function AnnouncementListener(props: { }) { const { onAnnouncement } = props; const handleAnnouncement: MutationCallback = (mutations) => { - for (let mutation of mutations) { + for (const mutation of mutations) { if (mutation.type !== "attributes") { - let regionNode = mutation.target as HTMLElement; + const regionNode = mutation.target as HTMLElement; // if (regionNode.innerText) { onAnnouncement?.(regionNode.innerText); // } diff --git a/cypress/support/PerformanceTester.tsx b/cypress/support/PerformanceTester.tsx index 1ed6a326d8..f4ac637db4 100644 --- a/cypress/support/PerformanceTester.tsx +++ b/cypress/support/PerformanceTester.tsx @@ -1,7 +1,7 @@ import { Profiler, - ProfilerOnRenderCallback, - PropsWithChildren, + type ProfilerOnRenderCallback, + type PropsWithChildren, useRef, } from "react"; @@ -20,7 +20,7 @@ export function PerformanceTester({ const handleRender: ProfilerOnRenderCallback = ( id, phase, - actualDuration + actualDuration, ) => { if (phase === "mount") { cumulativeDuration.current = 0; @@ -29,14 +29,13 @@ export function PerformanceTester({ renderCount.current = renderCount.current + 1; cumulativeDuration.current = Number( - (cumulativeDuration.current + actualDuration).toFixed(2) + (cumulativeDuration.current + actualDuration).toFixed(2), ); - onRender && - onRender({ - renderCount: renderCount.current, - renderTime: cumulativeDuration.current, - }); + onRender?.({ + renderCount: renderCount.current, + renderTime: cumulativeDuration.current, + }); }; return ( @@ -45,5 +44,3 @@ export function PerformanceTester({ ); } - -export {}; diff --git a/cypress/support/assertions.ts b/cypress/support/assertions.ts index fccf330d5b..c6279da379 100644 --- a/cypress/support/assertions.ts +++ b/cypress/support/assertions.ts @@ -1,10 +1,10 @@ import AssertionStatic = Chai.AssertionStatic; import ChaiPlugin = Chai.ChaiPlugin; +import { prettyDOM } from "@testing-library/dom"; import { computeAccessibleDescription, computeAccessibleName, } from "dom-accessibility-api"; -import { prettyDOM } from "@testing-library/dom"; function elementToString(element: Element | null | undefined) { if (typeof element?.nodeType === "number") { @@ -184,13 +184,13 @@ declare global { const hasAccessibleName: ChaiPlugin = (_chai, utils) => { function assertHasAccessibleName( this: AssertionStatic, - expectedName: string + expectedName: string, ) { const root = this._obj.get(0); // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const actualName = computeAccessibleName(root, { @@ -200,11 +200,11 @@ const hasAccessibleName: ChaiPlugin = (_chai, utils) => { this.assert( actualName === expectedName, `expected \n${elementToString( - root + root, )} to have accessible name #{exp} but got #{act} instead.`, `expected \n${elementToString(root)} not to have accessible name #{exp}.`, expectedName, - actualName + actualName, ); } @@ -223,13 +223,13 @@ chai.use(hasAccessibleName); const hasAccessibleDescription: ChaiPlugin = (_chai, utils) => { function assertHasAccessibleDescription( this: AssertionStatic, - expectedDescription: string + expectedDescription: string, ) { const root = this._obj.get(0); // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const actualDescription = computeAccessibleDescription(root, { @@ -239,19 +239,19 @@ const hasAccessibleDescription: ChaiPlugin = (_chai, utils) => { this.assert( actualDescription === expectedDescription, `expected \n${elementToString( - root + root, )} to have accessible description #{exp} but got #{act} instead.`, `expected \n${elementToString( - root + root, )} not to have accessible description #{exp}.`, expectedDescription, - actualDescription + actualDescription, ); } _chai.Assertion.addMethod( "accessibleDescription", - assertHasAccessibleDescription + assertHasAccessibleDescription, ); }; @@ -260,7 +260,7 @@ chai.use(hasAccessibleDescription); const announces: ChaiPlugin = (_chai, utils) => { function assertAnnounces( this: AssertionStatic, - msgMatcher?: string | RegExp + msgMatcher?: string | RegExp, ) { // @ts-ignore const announcement = cy.state("announcement") as string | null; @@ -271,7 +271,7 @@ const announces: ChaiPlugin = (_chai, utils) => { announcement !== null, "expected to announce message", "expected to not announce message but #{act} was announced", - announcement + announcement, ); } @@ -285,12 +285,10 @@ const announces: ChaiPlugin = (_chai, utils) => { const isCompatibleMessage = checkMessage(announcement, msgMatcher); this.assert( isCompatibleMessage, - "expected to announce message " + - placeholder + - " #{exp} but got #{act}", - "expected to not announce message " + placeholder + " #{exp}", + `expected to announce message ${placeholder} #{exp} but got #{act}`, + `expected to not announce message ${placeholder} #{exp}`, msgMatcher, - announcement + announcement, ); } @@ -300,7 +298,7 @@ const announces: ChaiPlugin = (_chai, utils) => { "expected to announce #{exp}", "expected to not announce #{exp}", msgMatcher, - announcement + announcement, ); } @@ -325,7 +323,7 @@ const isHighlighted: ChaiPlugin = (_chai, utils) => { // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const className = this._obj.attr("class"); @@ -333,11 +331,11 @@ const isHighlighted: ChaiPlugin = (_chai, utils) => { this.assert( className.match(/saltHighlighted/), `expected \n${elementToString( - root + root, )} to include CSS class #{exp}, got #{act} instead.`, `expected \n${elementToString(root)} not to have class #{exp}.`, "saltHighlighted", - className + className, ); } @@ -359,7 +357,7 @@ const hasFocusVisible: ChaiPlugin = (_chai, utils) => { // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const className = this._obj.attr("class"); @@ -367,11 +365,11 @@ const hasFocusVisible: ChaiPlugin = (_chai, utils) => { this.assert( className.match(/saltFocusVisible/), `expected \n${elementToString( - root + root, )} to include CSS class #{exp}, got #{act} instead.`, `expected \n${elementToString(root)} not to have class #{exp}.`, "saltFocusVisible", - className + className, ); } @@ -393,7 +391,7 @@ const hasAriaSelected: ChaiPlugin = (_chai, utils) => { // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const ariaSelected = this._obj.attr("aria-selected"); @@ -401,13 +399,13 @@ const hasAriaSelected: ChaiPlugin = (_chai, utils) => { this.assert( ariaSelected === "true", `expected \n${elementToString( - root + root, )} to have aria-selected #{exp}, got #{act} instead.`, `expected \n${elementToString( - root + root, )} to have aria-selected = #{exp}, got #{act} instead`, "true", - ariaSelected + ariaSelected, ); } @@ -429,17 +427,17 @@ const isInTheViewport: ChaiPlugin = (_chai, utils) => { // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); - const viewportHeight = Cypress.config(`viewportHeight`); + const viewportHeight = Cypress.config("viewportHeight"); const rect = root.getBoundingClientRect(); this.assert( !(rect.bottom < 0 || rect.top - viewportHeight >= 0), `expected \n${elementToString(root)} to be in the viewport.`, `expected \n${elementToString(root)} to not be in the viewport`, - null + null, ); } @@ -462,7 +460,7 @@ const isActiveDescendant: ChaiPlugin = (_chai) => { // make sure it's an Element new _chai.Assertion( root.nodeType, - `Expected an Element but got '${String(root)}'` + `Expected an Element but got '${String(root)}'`, ).to.equal(1); const id = root.id; @@ -471,7 +469,7 @@ const isActiveDescendant: ChaiPlugin = (_chai) => { $focused.attr("aria-activedescendant") === id, "expected #{this} to be #{exp}", "expected #{this} not to be #{exp}", - "active descendant" + "active descendant", ); }); } @@ -481,5 +479,3 @@ const isActiveDescendant: ChaiPlugin = (_chai) => { // registers our assertion function "isFocused" with Chai chai.use(isActiveDescendant); - -export {}; diff --git a/cypress/support/commands.tsx b/cypress/support/commands.tsx index 7d42a491ec..9c430808f5 100644 --- a/cypress/support/commands.tsx +++ b/cypress/support/commands.tsx @@ -1,12 +1,12 @@ import "@testing-library/cypress/add-commands"; -import { mount as cypressMount } from "cypress/react18"; import type { MountOptions, MountReturn } from "cypress/react"; +import { mount as cypressMount } from "cypress/react18"; import "cypress-axe"; -import { Options } from "cypress-axe"; -import { PerformanceResult, PerformanceTester } from "./PerformanceTester"; -import { ReactNode } from "react"; import { SaltProvider } from "@salt-ds/core"; +import type { Options } from "cypress-axe"; +import type { ReactNode } from "react"; import { AnnouncementListener } from "./AnnouncementListener"; +import { type PerformanceResult, PerformanceTester } from "./PerformanceTester"; const SupportedThemeModeValues = ["light", "dark"] as const; type SupportedThemeMode = (typeof SupportedThemeModeValues)[number]; @@ -16,8 +16,6 @@ type SupportedDensity = (typeof SupportedDensityValues)[number]; // Must be declared global to be detected by typescript (allows import/export) declare global { namespace Cypress { - // unsure why this Subject is unused, nor what to do with it... - // eslint-disable-next-line @typescript-eslint/no-unused-vars interface Chainable { /** * Set Theme Mode @@ -41,12 +39,12 @@ declare global { */ checkAxeComponent( options?: Options, - enableFailures?: boolean + enableFailures?: boolean, ): Chainable; mountPerformance: ( jsx: ReactNode, - options?: MountOptions + options?: MountOptions, ) => Chainable; mount: (jsx: ReactNode, options?: MountOptions) => Chainable; @@ -91,9 +89,9 @@ Cypress.Commands.add( } } }, - !enableFailures + !enableFailures, ); - } + }, ); Cypress.Commands.add("mount", function (children, options) { @@ -107,11 +105,11 @@ Cypress.Commands.add("mount", function (children, options) { {children} , - options + options, ); }); -Cypress.Commands.add("mountPerformance", function (children, options) { +Cypress.Commands.add("mountPerformance", (children, options) => { const handleRender = (result: PerformanceResult) => { // @ts-ignore cy.state("performanceResult", result); @@ -119,16 +117,16 @@ Cypress.Commands.add("mountPerformance", function (children, options) { return cy.mount( {children}, - options + options, ); }); -Cypress.Commands.add("getRenderTime", function () { +Cypress.Commands.add("getRenderTime", () => { // @ts-ignore return cy.state("performanceResult").renderTime; }); -Cypress.Commands.add("getRenderCount", function () { +Cypress.Commands.add("getRenderCount", () => { // @ts-ignore return cy.state("performanceResult").renderCount; }); @@ -137,7 +135,7 @@ Cypress.Commands.add("paste", { prevSubject: "element" }, (input, value) => { // taken from https://stackoverflow.com/a/69552958/11217233 const nativeInputValueSetter = Object.getOwnPropertyDescriptor( window.HTMLInputElement.prototype, - "value" + "value", )?.set; if (nativeInputValueSetter) { @@ -147,7 +145,7 @@ Cypress.Commands.add("paste", { prevSubject: "element" }, (input, value) => { new Event("input", { bubbles: true, composed: true, - }) + }), ); }); } @@ -161,5 +159,3 @@ Cypress.on("uncaught:exception", (err) => { return false; } }); - -export {}; diff --git a/cypress/tests/checkAccessibility.tsx b/cypress/tests/checkAccessibility.tsx index 5fe2be5866..c55b36c14d 100644 --- a/cypress/tests/checkAccessibility.tsx +++ b/cypress/tests/checkAccessibility.tsx @@ -1,9 +1,9 @@ -import { StoriesWithPartialProps } from "@storybook/types"; -import { StoryFn, ReactRenderer } from "@storybook/react"; -import { Options } from "cypress-axe"; +import type { ReactRenderer, StoryFn } from "@storybook/react"; +import type { StoriesWithPartialProps } from "@storybook/types"; +import type { Options } from "cypress-axe"; export function checkAccessibility( - stories: StoriesWithPartialProps + stories: StoriesWithPartialProps, ) { describe("Axe Testing", () => { Object.entries(stories).forEach(([name, StoryComponent]) => { @@ -18,10 +18,13 @@ export function checkAccessibility( testFunction(`Story "${name}", should not have an axe violations`, () => { cy.mount(); - const rules = disabledRules.reduce((acc, rule) => { - acc[rule] = { enabled: false }; - return acc; - }, {} as Required["rules"]); + const rules = disabledRules.reduce( + (acc, rule) => { + acc[rule] = { enabled: false }; + return acc; + }, + {} as Required["rules"], + ); cy.checkAxeComponent({ rules }, true); }); diff --git a/docs/components/AllRenderer.tsx b/docs/components/AllRenderer.tsx index 689337b853..a2b3115028 100644 --- a/docs/components/AllRenderer.tsx +++ b/docs/components/AllRenderer.tsx @@ -1,7 +1,7 @@ -import { cloneElement, Fragment, ReactElement } from "react"; import { DensityValues, SaltProvider } from "@salt-ds/core"; -import { DocGrid } from "./DocGrid"; +import { Fragment, type ReactElement, cloneElement } from "react"; import { BackgroundBlock } from "./BackgroundBlock"; +import { DocGrid } from "./DocGrid"; /** * Helper component to render a component in all density and theme for Visual Regression tests @@ -25,13 +25,13 @@ export const AllRenderer = ({ }): JSX.Element => { return ( - {DensityValues.map((d, i) => { + {DensityValues.map((d) => { return ( - + {cloneElement(children)} @@ -40,7 +40,7 @@ export const AllRenderer = ({ applyClassesTo={"child"} density={d} mode="dark" - key={"theme-dark-" + d} + key={`theme-dark-${d}`} > {cloneElement(children)} diff --git a/docs/components/BackgroundBlock.tsx b/docs/components/BackgroundBlock.tsx index 8dc4aa4a29..f9bbd27710 100644 --- a/docs/components/BackgroundBlock.tsx +++ b/docs/components/BackgroundBlock.tsx @@ -1,5 +1,5 @@ -import { ComponentPropsWithoutRef } from "react"; import { clsx } from "clsx"; +import type { ComponentPropsWithoutRef } from "react"; import "./BackgroundBlock.css"; diff --git a/docs/components/BlankBlock.tsx b/docs/components/BlankBlock.tsx index d9790c1eac..ebbfb0bac1 100644 --- a/docs/components/BlankBlock.tsx +++ b/docs/components/BlankBlock.tsx @@ -1,5 +1,5 @@ -import { ComponentPropsWithoutRef, ReactNode } from "react"; import { clsx } from "clsx"; +import type { ComponentPropsWithoutRef, ReactNode } from "react"; import "./BlankBlock.css"; diff --git a/docs/components/CategoryColors.tsx b/docs/components/CategoryColors.tsx index eb65eac632..06e64827fa 100644 --- a/docs/components/CategoryColors.tsx +++ b/docs/components/CategoryColors.tsx @@ -1,6 +1,6 @@ import { H2, StackLayout } from "@salt-ds/core"; -import { ColorContainer } from "./ColorContainer"; import { ColorItem, ColorPalette } from "@storybook/blocks"; +import { ColorContainer } from "./ColorContainer"; export const CategoryColors = () => { return ( diff --git a/docs/components/ColorBlock.tsx b/docs/components/ColorBlock.tsx index d9c4d83100..2efa944c99 100644 --- a/docs/components/ColorBlock.tsx +++ b/docs/components/ColorBlock.tsx @@ -1,9 +1,9 @@ -import { clsx } from "clsx"; import { - characteristic, + type characteristic, getCharacteristicValue, makePrefixer, } from "@salt-ds/core"; +import { clsx } from "clsx"; import { ReplacementToken } from "./ReplacementToken"; import "./ColorBlock.css"; @@ -27,7 +27,7 @@ export const ColorBlock = ({ const color = getCharacteristicValue( "salt-theme", characteristicName, - colorVar.split(`${characteristicName}-`)[1] + colorVar.split(`${characteristicName}-`)[1], ); const withBorder = color?.replaceAll(" ", "").includes("255,255,255"); const transparent = color?.includes("transparent"); @@ -42,7 +42,7 @@ export const ColorBlock = ({ [withBaseName("withBorder")]: withBorder, [withBaseName("transparent")]: transparent, }, - className + className, )} /> {!hideToken && {colorVar}} diff --git a/docs/components/ColorContainer.tsx b/docs/components/ColorContainer.tsx index 4f7f0b221c..1c9794c334 100644 --- a/docs/components/ColorContainer.tsx +++ b/docs/components/ColorContainer.tsx @@ -1,5 +1,5 @@ -import { ReactNode } from "react"; import { clsx } from "clsx"; +import type { ReactNode } from "react"; import "./ColorContainer.css"; diff --git a/docs/components/CornerBlock.tsx b/docs/components/CornerBlock.tsx index 6c506f2fb2..83bb779ef9 100644 --- a/docs/components/CornerBlock.tsx +++ b/docs/components/CornerBlock.tsx @@ -1,5 +1,5 @@ -import { ReactNode } from "react"; import { clsx } from "clsx"; +import type { ReactNode } from "react"; import "./CornerBlock.css"; diff --git a/docs/components/CursorBlock.tsx b/docs/components/CursorBlock.tsx index d400ee9483..8c7d947a71 100644 --- a/docs/components/CursorBlock.tsx +++ b/docs/components/CursorBlock.tsx @@ -1,4 +1,4 @@ -import { CSSProperties } from "react"; +import type { CSSProperties } from "react"; import "./CursorBlock.css"; diff --git a/docs/components/DocGrid.tsx b/docs/components/DocGrid.tsx index b5b06c5fed..9db6cd2ee8 100644 --- a/docs/components/DocGrid.tsx +++ b/docs/components/DocGrid.tsx @@ -1,5 +1,5 @@ -import { ReactNode } from "react"; import { clsx } from "clsx"; +import type { ReactNode } from "react"; import "./DocGrid.css"; @@ -17,8 +17,8 @@ export const DocGrid = ({ return (
{children} diff --git a/docs/components/DraggableSnapshot.tsx b/docs/components/DraggableSnapshot.tsx index 7e5ae9fa6a..cfe6d8ab7a 100644 --- a/docs/components/DraggableSnapshot.tsx +++ b/docs/components/DraggableSnapshot.tsx @@ -1,13 +1,13 @@ +import { Button } from "@salt-ds/core"; +import { clsx } from "clsx"; import { + type CSSProperties, + type KeyboardEvent, + type MouseEvent as ReactMouseEvent, useCallback, useRef, useState, - CSSProperties, - MouseEvent as ReactMouseEvent, - KeyboardEvent, } from "react"; -import { clsx } from "clsx"; -import { Button } from "@salt-ds/core"; import "./DraggableSnapshot.css"; @@ -64,7 +64,7 @@ export const DraggableImg = ({ lastMousePos.current[1] = screenY; moveSnapshot(xDiff, yDiff); }, - [moveSnapshot] + [moveSnapshot], ); const handleMouseUp = useCallback(() => { @@ -78,7 +78,7 @@ export const DraggableImg = ({ window.addEventListener("mousemove", handleMouseMove); window.addEventListener("mouseup", handleMouseUp); }, - [handleMouseMove, handleMouseUp] + [handleMouseMove, handleMouseUp], ); const handleKeyDown = useCallback( @@ -92,7 +92,7 @@ export const DraggableImg = ({ moveSnapshot(...moveBy); } }, - [moveSnapshot] + [moveSnapshot], ); const alignImages = useCallback(() => { diff --git a/docs/components/FontSizeBlock.tsx b/docs/components/FontSizeBlock.tsx index e5cf665571..bda1b1fd65 100644 --- a/docs/components/FontSizeBlock.tsx +++ b/docs/components/FontSizeBlock.tsx @@ -1,5 +1,5 @@ import { clsx } from "clsx"; -import { CSSProperties } from "react"; +import type { CSSProperties } from "react"; import "./FontBlock.css"; diff --git a/docs/components/FontWeightBlock.tsx b/docs/components/FontWeightBlock.tsx index ac5b36f85a..e0eb1d28e4 100644 --- a/docs/components/FontWeightBlock.tsx +++ b/docs/components/FontWeightBlock.tsx @@ -1,4 +1,4 @@ -import { CSSProperties } from "react"; +import type { CSSProperties } from "react"; import { ReplacementToken } from "./ReplacementToken"; import "./FontBlock.css"; diff --git a/docs/components/LetterSpacingBlock.tsx b/docs/components/LetterSpacingBlock.tsx index 9174ce68b2..5707f8dc7c 100644 --- a/docs/components/LetterSpacingBlock.tsx +++ b/docs/components/LetterSpacingBlock.tsx @@ -1,4 +1,4 @@ -import { CSSProperties } from "react"; +import type { CSSProperties } from "react"; import "./LetterSpacingBlock.css"; diff --git a/docs/components/LineBlock.tsx b/docs/components/LineBlock.tsx index de59643ed9..52aa273677 100644 --- a/docs/components/LineBlock.tsx +++ b/docs/components/LineBlock.tsx @@ -1,22 +1,8 @@ -import { ReactNode } from "react"; +import type { ReactNode } from "react"; import { ReplacementToken } from "./ReplacementToken"; import "./LineBlock.css"; -export const LineBlockCell = () => { - return ( -
- - - -
- ); -}; - -export const LineBlockCode = ({ children }: { children: ReactNode }) => { - return {children}; -}; - export const LineBlock = ({ token, lineWidth, @@ -38,12 +24,12 @@ export const LineBlock = ({ d="M 0,8 L 16,8" vectorEffect="non-scaling-stroke" strokeWidth={lineWidth ? `var(${lineWidth})` : "1px"} - stroke-dasharray={ + strokeDasharray={ lineStyle === "dashed" ? "10,10" : lineStyle === "dotted" - ? "3,3" - : "0" + ? "3,3" + : "0" } /> diff --git a/docs/components/OpacityBlock.tsx b/docs/components/OpacityBlock.tsx index 4bcbdc26fc..62fa8079b1 100644 --- a/docs/components/OpacityBlock.tsx +++ b/docs/components/OpacityBlock.tsx @@ -1,5 +1,5 @@ -import { clsx } from "clsx"; import { Tooltip } from "@salt-ds/core"; +import { clsx } from "clsx"; import { ReplacementToken } from "./ReplacementToken"; import "./OpacityBlock.css"; diff --git a/docs/components/QAContainer.tsx b/docs/components/QAContainer.tsx index 03698ed105..499b34e843 100644 --- a/docs/components/QAContainer.tsx +++ b/docs/components/QAContainer.tsx @@ -1,17 +1,17 @@ import { - makePrefixer, - Mode, + type Mode, SaltProvider, UNSTABLE_SaltProviderNext, + makePrefixer, useTheme, } from "@salt-ds/core"; import { clsx } from "clsx"; import { + type CSSProperties, Children, - CSSProperties, - DetailedHTMLProps, + type DetailedHTMLProps, Fragment, - HTMLAttributes, + type HTMLAttributes, } from "react"; import { DraggableImg } from "./DraggableSnapshot"; @@ -66,8 +66,8 @@ const DensityBlock = ({ return ( - {DensityValues.map((d, i) => ( - + {DensityValues.map((d) => ( +
{children}
))} @@ -125,8 +125,8 @@ export const QAContainer = ({ ))} ) : ( - DensityValues.map((d, i) => ( - + DensityValues.map((d) => ( + { @@ -36,7 +28,7 @@ export interface QAContainerNoStyleInjectionProps extends QAContainerProps { } export const QAContainerNoStyleInjection = ( - props: QAContainerNoStyleInjectionProps + props: QAContainerNoStyleInjectionProps, ) => { // order is important! useDynamicStyleSheet(String(iconCss), "salt-icon-css"); diff --git a/docs/components/ResponsiveContainer.tsx b/docs/components/ResponsiveContainer.tsx index d51b51f649..0bb9afd6ba 100644 --- a/docs/components/ResponsiveContainer.tsx +++ b/docs/components/ResponsiveContainer.tsx @@ -1,7 +1,7 @@ -import { useState, ReactNode, SyntheticEvent } from "react"; +import { type ReactNode, type SyntheticEvent, useState } from "react"; import "./ResponsiveContainer.css"; +import { ToggleButton, ToggleButtonGroup, Tooltip } from "@salt-ds/core"; import { Slider, StepperInput } from "@salt-ds/lab"; -import { Tooltip, ToggleButton, ToggleButtonGroup } from "@salt-ds/core"; export const ResponsiveContainer = ({ children }: { children?: ReactNode }) => { const [containerWidth, setWidth] = useState(90); diff --git a/docs/components/TextBlock.tsx b/docs/components/TextBlock.tsx index cc29db1240..c5b69dd972 100644 --- a/docs/components/TextBlock.tsx +++ b/docs/components/TextBlock.tsx @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/restrict-template-expressions */ import type { CSSProperties } from "react"; import "./TextBlock.css"; diff --git a/docs/decorators/withDateMock.tsx b/docs/decorators/withDateMock.tsx index e9cd8f8e19..9bc49f8425 100644 --- a/docs/decorators/withDateMock.tsx +++ b/docs/decorators/withDateMock.tsx @@ -1,5 +1,5 @@ -import { Decorator } from "@storybook/react"; import { useIsomorphicLayoutEffect } from "@salt-ds/core"; +import type { Decorator } from "@storybook/react"; import MockDate from "mockdate"; export const withDateMock: Decorator = (Story, context) => { diff --git a/docs/decorators/withResponsiveWrapper.tsx b/docs/decorators/withResponsiveWrapper.tsx index 6c955392d9..0ee4121185 100644 --- a/docs/decorators/withResponsiveWrapper.tsx +++ b/docs/decorators/withResponsiveWrapper.tsx @@ -1,4 +1,4 @@ -import { Decorator } from "@storybook/react"; +import type { Decorator } from "@storybook/react"; import { ResponsiveContainer } from "docs/components/ResponsiveContainer"; export const withResponsiveWrapper: Decorator = (Story, context) => { diff --git a/docs/decorators/withScaffold.tsx b/docs/decorators/withScaffold.tsx index 126e8dcaa2..cb062a7578 100644 --- a/docs/decorators/withScaffold.tsx +++ b/docs/decorators/withScaffold.tsx @@ -1,5 +1,5 @@ +import { H1, H2, Link, StackLayout, Text } from "@salt-ds/core"; import type { Decorator } from "@storybook/react"; -import { H1, H2, Text, Link, StackLayout } from "@salt-ds/core"; /** A storybook decorator that adds a scaffold around a story */ export const withScaffold: Decorator = (Story, context) => { diff --git a/docs/decorators/withTextSpacingWrapper.tsx b/docs/decorators/withTextSpacingWrapper.tsx index 55770e2d13..b5350a3413 100644 --- a/docs/decorators/withTextSpacingWrapper.tsx +++ b/docs/decorators/withTextSpacingWrapper.tsx @@ -1,4 +1,4 @@ -import { Decorator } from "@storybook/react"; +import type { Decorator } from "@storybook/react"; import "./text-spacing.css"; import { useEffect } from "react"; diff --git a/docs/decorators/withTheme.tsx b/docs/decorators/withTheme.tsx index d9c672dc92..eb9afc4043 100644 --- a/docs/decorators/withTheme.tsx +++ b/docs/decorators/withTheme.tsx @@ -1,12 +1,12 @@ -import { Decorator } from "@storybook/react"; import { - getCharacteristicValue, ModeValues, Panel, SaltProvider, - useTheme, UNSTABLE_SaltProviderNext, + getCharacteristicValue, + useTheme, } from "@salt-ds/core"; +import type { Decorator } from "@storybook/react"; import { useEffect } from "react"; // Modified from storybook background addon @@ -31,22 +31,23 @@ function SetBackground({ viewMode, id }: { viewMode: string; id: string }) { const selectorId = viewMode === "docs" ? `addon-backgrounds-docs-${id}` - : `addon-backgrounds-color`; + : "addon-backgrounds-color"; - const selector = viewMode === "docs" ? `.docs-story` : ".sb-show-main"; + const selector = viewMode === "docs" ? ".docs-story" : ".sb-show-main"; + // biome-ignore lint/correctness/useExhaustiveDependencies: mode is needed. useEffect(() => { const color = getCharacteristicValue( theme, "text", "primary-foreground", - document.querySelector(".salt-theme") as HTMLElement + document.querySelector(".salt-theme") as HTMLElement, ); const background = getCharacteristicValue( theme, "container", "primary-background", - document.querySelector(".salt-theme") as HTMLElement + document.querySelector(".salt-theme") as HTMLElement, ); addBackgroundStyle( @@ -57,7 +58,7 @@ function SetBackground({ viewMode, id }: { viewMode: string; id: string }) { color: ${color || "unset"}; transition: background-color 0.3s; } - ` + `, ); }, [selectorId, selector, mode, theme]); diff --git a/docs/public/mockServiceWorker.js b/docs/public/mockServiceWorker.js index 87e0f31b81..2838108530 100644 --- a/docs/public/mockServiceWorker.js +++ b/docs/public/mockServiceWorker.js @@ -1,6 +1,3 @@ -/* eslint-disable */ -/* tslint:disable */ - /** * Mock Service Worker (1.2.1). * @see https://github.com/mswjs/msw diff --git a/docs/story-layout/ColumnLayout.tsx b/docs/story-layout/ColumnLayout.tsx index 9c915dde05..a46af4d99d 100644 --- a/docs/story-layout/ColumnLayout.tsx +++ b/docs/story-layout/ColumnLayout.tsx @@ -1,4 +1,4 @@ -import { ReactNode } from "react"; +import type { ReactNode } from "react"; import "./ColumnLayout.css"; export const ColumnLayoutContainer = ({ diff --git a/docs/tsdeclarations.d.ts b/docs/tsdeclarations.d.ts index f0977a4944..9a767b4c6f 100644 --- a/docs/tsdeclarations.d.ts +++ b/docs/tsdeclarations.d.ts @@ -1,6 +1,7 @@ // VS Code doesn't like this because it duplicates a declaration in React, but it's for StoryBook and // our story type-checking script declare module "*.svg" { + // biome-ignore lint/suspicious/noExplicitAny: any is simpler here const content: any; export default content; } diff --git a/eslint-local-rules.js b/eslint-local-rules.js index 284f0fce65..9e01a57de6 100644 --- a/eslint-local-rules.js +++ b/eslint-local-rules.js @@ -1,5 +1,3 @@ -"use strict"; - module.exports = { "must-inject-css": { meta: { @@ -7,21 +5,19 @@ module.exports = { description: "must inject css", }, }, - create: function (context) { - return { - ImportDeclaration: function (node) { - const importPath = node.source.value; - const importSpecifiers = node.specifiers; + create: (context) => ({ + ImportDeclaration: (node) => { + const importPath = node.source.value; + const importSpecifiers = node.specifiers; - if (importPath.endsWith(".css") && importSpecifiers.length === 0) { - context.report({ - node: node, - message: - "CSS imports must be assigned to a variable and then injected", - }); - } - }, - }; - }, + if (importPath.endsWith(".css") && importSpecifiers.length === 0) { + context.report({ + node: node, + message: + "CSS imports must be assigned to a variable and then injected", + }); + } + }, + }), }, }; diff --git a/package.json b/package.json index 18efd5439e..611ad71c44 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,7 @@ "main": "index.js", "license": "MIT", "repository": "https://github.com/jpmorganchase/salt-ds", - "workspaces": [ - "packages/**", - "tooling/**", - "docs", - "site" - ], + "workspaces": ["packages/**", "tooling/**", "docs", "site"], "modular": { "type": "root" }, @@ -34,12 +29,10 @@ "test": "vitest", "test:components": "cypress run --component --browser chrome --headless", "test:components:local": "cypress open --component --browser electron", - "lint": "eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx", - "lint:ci": "eslint . --report-unused-disable-directives --ext .js,.ts,.tsx", - "lint:core": "yarn eslint \"packages/core/src/**/*.{ts,tsx}\" --ignore-pattern \"**/__tests__/**\"", - "prettier": "pretty-quick --branch main", - "prettier:all": "prettier --write .", + "prettier": "prettier --write .", "prettier:ci": "prettier --check .", + "lint": "biome check", + "lint:fix": "biome check --fix", "lint:style": "yarn lint:style:core && yarn lint:style:icon && yarn lint:style:lab && yarn lint:style:ag-theme", "lint:style:core": "yarn stylelint -f verbose \"packages/core/src/**/*.css\"", "lint:style:icon": "yarn stylelint -f verbose \"packages/icons/src/**/*.css\"", @@ -51,6 +44,7 @@ "chromatic": "chromatic" }, "dependencies": { + "@biomejs/biome": "1.8.3", "@changesets/cli": "^2.25.2", "@cypress/code-coverage": "^3.12.35", "@faker-js/faker": "^8.0.0", @@ -83,8 +77,6 @@ "@types/react-color": "^3.0.6", "@types/react-dom": "^18.0.0", "@types/tinycolor2": "^1.4.3", - "@typescript-eslint/eslint-plugin": "^6.6.0", - "@typescript-eslint/parser": "^6.6.0", "@vitejs/plugin-react": "^4.1.0", "ag-grid-community": "^31.3.0", "ag-grid-enterprise": "^31.3.0", @@ -98,18 +90,11 @@ "cypress-real-events": "^1.12.0", "deepmerge": "^4.2.2", "dom-accessibility-api": "^0.6.3", - "eslint": "^8.48.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-cypress": "^3.0.0", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-local-rules": "^3.0.0", - "eslint-plugin-storybook": "^0.8.0", "mockdate": "^3.0.5", "modular-scripts": "patch:modular-scripts@npm:3.6.0#.yarn/patches/modular-scripts-npm-3.6.0-d967962075.patch", "msw": "^1.2.1", "msw-storybook-addon": "^1.8.0", "prettier": "^2.6.2", - "pretty-quick": "^3.1.3", "react": "^18.3.1", "react-docgen-typescript": "2.2.2", "react-dom": "^18.3.1", @@ -127,7 +112,6 @@ }, "resolutions": { "@changesets/assemble-release-plan@npm:^6.0.2": "patch:@changesets/assemble-release-plan@npm%3A6.0.2#~/.yarn/patches/@changesets-assemble-release-plan-npm-6.0.2-d74b7b2762.patch", - "@next/eslint-plugin-next": "^14.0.0", "@salt-ds/lab": "workspace:*", "modular-scripts/rollup": "2.79.1", "next": "^14.0.0", @@ -136,12 +120,7 @@ "recursive-readdir": "2.2.3" }, "browserslist": { - "production": [ - "chrome 79", - ">0.2%", - "not dead", - "not op_mini all" - ], + "production": ["chrome 79", ">0.2%", "not dead", "not op_mini all"], "development": [ "chrome 79", "last 1 chrome version", diff --git a/packages/ag-grid-theme/package.json b/packages/ag-grid-theme/package.json index fdbd2b3171..69413dbcc3 100644 --- a/packages/ag-grid-theme/package.json +++ b/packages/ag-grid-theme/package.json @@ -9,10 +9,7 @@ }, "bugs": "https://github.com/jpmorganchase/salt-ds/issues", "style": "salt-ag-theme.css", - "files": [ - "/fonts", - "/salt-ag-theme.css" - ], + "files": ["/fonts", "/salt-ag-theme.css"], "scripts": { "build": "yarn node ./scripts/build.mjs", "build-watch": "yarn node ./scripts/build.mjs --watch" diff --git a/packages/ag-grid-theme/scripts/build.mjs b/packages/ag-grid-theme/scripts/build.mjs index 5b6ba1b06f..064ada3881 100644 --- a/packages/ag-grid-theme/scripts/build.mjs +++ b/packages/ag-grid-theme/scripts/build.mjs @@ -1,9 +1,9 @@ -import esbuild from "esbuild"; -import path from "node:path"; -import { deleteSync } from "del"; import fs from "node:fs"; -import { fileURLToPath } from "node:url"; +import path from "node:path"; import { argv } from "node:process"; +import { fileURLToPath } from "node:url"; +import { deleteSync } from "del"; +import esbuild from "esbuild"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const buildFolder = path.join(__dirname, "../../../dist/salt-ds-ag-grid-theme"); @@ -34,12 +34,12 @@ esbuild console.log( `${path.relative( process.cwd(), - path.resolve(__dirname, "../package.json") + path.resolve(__dirname, "../package.json"), )} copied to ${path.relative( process.cwd(), - path.join(buildFolder, "package.json") - )}` + path.join(buildFolder, "package.json"), + )}`, ); - } + }, ); }); diff --git a/packages/ag-grid-theme/src/dependencies/columnSpanningExampleColumns.ts b/packages/ag-grid-theme/src/dependencies/columnSpanningExampleColumns.ts index e666521d69..24bda4a8e1 100644 --- a/packages/ag-grid-theme/src/dependencies/columnSpanningExampleColumns.ts +++ b/packages/ag-grid-theme/src/dependencies/columnSpanningExampleColumns.ts @@ -1,4 +1,4 @@ -import { ColDef, ColSpanParams } from "ag-grid-community"; +import type { ColDef, ColSpanParams } from "ag-grid-community"; const columnSpanningExampleColumns: ColDef[] = [ { @@ -14,11 +14,11 @@ const columnSpanningExampleColumns: ColDef[] = [ const code = param.data.code; if (code === "AL") { return 2; - } else if (code === "CA") { + } + if (code === "CA") { return 3; - } else { - return 1; } + return 1; }, }, { diff --git a/packages/ag-grid-theme/src/dependencies/customFilterExampleColumns.ts b/packages/ag-grid-theme/src/dependencies/customFilterExampleColumns.ts index 89b61c15fc..2ed7d19981 100644 --- a/packages/ag-grid-theme/src/dependencies/customFilterExampleColumns.ts +++ b/packages/ag-grid-theme/src/dependencies/customFilterExampleColumns.ts @@ -1,4 +1,4 @@ -import { ColDef } from "ag-grid-community"; +import type { ColDef } from "ag-grid-community"; const customFilterExampleColumns: ColDef[] = [ { diff --git a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumns.ts b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumns.ts index adc4b99dd9..9dc31c7642 100644 --- a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumns.ts +++ b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumns.ts @@ -1,4 +1,4 @@ -import { ColDef } from "ag-grid-community"; +import type { ColDef } from "ag-grid-community"; const dataGridExampleColumns: ColDef[] = [ { diff --git a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsColoration.ts b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsColoration.ts index 39ccd46678..65370339fb 100644 --- a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsColoration.ts +++ b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsColoration.ts @@ -1,4 +1,4 @@ -import { CellClassParams } from "ag-grid-community"; +import type { CellClassParams } from "ag-grid-community"; const dataGridExampleColumnsColoration = [ { @@ -24,9 +24,8 @@ const dataGridExampleColumnsColoration = [ color: "var(--salt-color-gray-900)", backgroundColor: "var(--salt-color-orange-20)", }; - } else { - return null; } + return null; }, }, { diff --git a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsWrap.ts b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsWrap.ts index 6160f4e52b..8566023cd9 100644 --- a/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsWrap.ts +++ b/packages/ag-grid-theme/src/dependencies/dataGridExampleColumnsWrap.ts @@ -1,4 +1,4 @@ -import { ColDef } from "ag-grid-community"; +import type { ColDef } from "ag-grid-community"; const dataGridExampleColumnsWrap: ColDef[] = [ { diff --git a/packages/ag-grid-theme/src/dependencies/useAgGridHelpers.ts b/packages/ag-grid-theme/src/dependencies/useAgGridHelpers.ts index 42bc5f177a..bc592e8859 100644 --- a/packages/ag-grid-theme/src/dependencies/useAgGridHelpers.ts +++ b/packages/ag-grid-theme/src/dependencies/useAgGridHelpers.ts @@ -1,9 +1,15 @@ import { useDensity, useTheme } from "@salt-ds/core"; -import { ColumnApi, GridApi, GridReadyEvent } from "ag-grid-community"; +import type { ColumnApi, GridApi, GridReadyEvent } from "ag-grid-community"; import { LicenseManager } from "ag-grid-enterprise"; -import { AgGridReactProps } from "ag-grid-react"; +import type { AgGridReactProps } from "ag-grid-react"; import { clsx } from "clsx"; -import { HTMLAttributes, useCallback, useMemo, useRef, useState } from "react"; +import { + type HTMLAttributes, + useCallback, + useMemo, + useRef, + useState, +} from "react"; LicenseManager.setLicenseKey("your license key"); @@ -58,7 +64,7 @@ export function useAgGridHelpers({ const className = clsx( containerClassName, - `ag-theme-salt${compact && density === "high" ? `-compact` : ``}-${mode}` + `ag-theme-salt${compact && density === "high" ? "-compact" : ""}-${mode}`, ); const onGridReady = useCallback(({ api, columnApi }: GridReadyEvent) => { diff --git a/packages/ag-grid-theme/src/examples/CheckboxSelection.tsx b/packages/ag-grid-theme/src/examples/CheckboxSelection.tsx index 5774d42e1c..520a6534fc 100644 --- a/packages/ag-grid-theme/src/examples/CheckboxSelection.tsx +++ b/packages/ag-grid-theme/src/examples/CheckboxSelection.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -16,9 +16,7 @@ const CheckboxSelection = (props: AgGridReactProps) => { rowSelection="multiple" onFirstDataRendered={(params) => { params.api.forEachNode((node, index) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (node.data && index < 7 && index > 2) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call node.setSelected(true); } }); diff --git a/packages/ag-grid-theme/src/examples/Coloration.tsx b/packages/ag-grid-theme/src/examples/Coloration.tsx index 907e1aa9f8..97909f75b6 100644 --- a/packages/ag-grid-theme/src/examples/Coloration.tsx +++ b/packages/ag-grid-theme/src/examples/Coloration.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumnsColoration from "../dependencies/dataGridExampleColumnsColoration"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/ColumnGroup.tsx b/packages/ag-grid-theme/src/examples/ColumnGroup.tsx index 6e3bcc8127..cc7613c57f 100644 --- a/packages/ag-grid-theme/src/examples/ColumnGroup.tsx +++ b/packages/ag-grid-theme/src/examples/ColumnGroup.tsx @@ -1,5 +1,5 @@ -import { ColDef, ColGroupDef } from "ag-grid-community"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import type { ColDef, ColGroupDef } from "ag-grid-community"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/ColumnSpanning.tsx b/packages/ag-grid-theme/src/examples/ColumnSpanning.tsx index 6a9a63d020..9d9a1496b1 100644 --- a/packages/ag-grid-theme/src/examples/ColumnSpanning.tsx +++ b/packages/ag-grid-theme/src/examples/ColumnSpanning.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import columnSpanningExampleColumns from "../dependencies/columnSpanningExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/ContextMenu.tsx b/packages/ag-grid-theme/src/examples/ContextMenu.tsx index cd43b866ee..573480666b 100644 --- a/packages/ag-grid-theme/src/examples/ContextMenu.tsx +++ b/packages/ag-grid-theme/src/examples/ContextMenu.tsx @@ -1,5 +1,5 @@ -import { GetContextMenuItemsParams } from "ag-grid-community"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import type { GetContextMenuItemsParams } from "ag-grid-community"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import mac from "../dependencies/mac.png"; @@ -12,10 +12,8 @@ const ContextMenu = (props: AgGridReactProps) => { const getContextMenuItems = (params: GetContextMenuItemsParams) => { const result = [ { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access name: `Alert ${params.value}`, action() { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access window.alert(`Alerting about ${params.value}`); }, cssClasses: ["redFont", "bold"], @@ -115,7 +113,7 @@ const ContextMenu = (props: AgGridReactProps) => { action() { console.log("Windows Item Selected"); }, - icon: ``, + icon: ``, }, { name: "Mac", @@ -123,7 +121,7 @@ const ContextMenu = (props: AgGridReactProps) => { action() { console.log("Mac Item Selected"); }, - icon: ``, + icon: ``, }, "separator", { @@ -132,7 +130,7 @@ const ContextMenu = (props: AgGridReactProps) => { action() { console.log("Checked Selected"); }, - icon: ``, + icon: ``, }, "copy", ]; diff --git a/packages/ag-grid-theme/src/examples/CustomFilter.tsx b/packages/ag-grid-theme/src/examples/CustomFilter.tsx index cbf5665324..79c8e2828a 100644 --- a/packages/ag-grid-theme/src/examples/CustomFilter.tsx +++ b/packages/ag-grid-theme/src/examples/CustomFilter.tsx @@ -1,5 +1,5 @@ import { Button, FlowLayout, StackLayout } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { useState } from "react"; import customFilterExampleColumns from "../dependencies/customFilterExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; @@ -10,59 +10,57 @@ const CustomFilter = (props: AgGridReactProps) => { const { api, agGridProps, containerProps } = useAgGridHelpers(); const handlePopMt100kClick = () => { - const popMt100kComponent = api!.getFilterInstance("population")!; - api!.setFilterModel(null); + const popMt100kComponent = api?.getFilterInstance("population"); + api?.setFilterModel(null); - popMt100kComponent.setModel({ + popMt100kComponent?.setModel({ type: "greaterThan", filter: 100000, filterTo: null, }); - api!.onFilterChanged(); + api?.onFilterChanged(); setHasSavedState(false); }; const handlePopLt100kClick = () => { - const popLt100kComponent = api!.getFilterInstance("population")!; - api!.setFilterModel(null); + const popLt100kComponent = api?.getFilterInstance("population"); + api?.setFilterModel(null); - popLt100kComponent.setModel({ + popLt100kComponent?.setModel({ type: "lessThan", filter: 100000, filterTo: null, }); - api!.onFilterChanged(); + api?.onFilterChanged(); setHasSavedState(false); }; const filterNewYork = () => { - const filterNewYork = api!.getFilterInstance("name")!; - api!.setFilterModel(null); - filterNewYork.setModel({ + const filterNewYork = api?.getFilterInstance("name"); + api?.setFilterModel(null); + filterNewYork?.setModel({ type: "equals", filter: "New York", filterTo: null, }); - api!.onFilterChanged(); + api?.onFilterChanged(); setHasSavedState(false); }; const saveState = () => { - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access - (window as any).filterState = api!.getFilterModel(); + (window as any).filterState = api?.getFilterModel(); setHasSavedState(false); }; const restoreState = () => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any - api!.setFilterModel((window as any).filterState); + api?.setFilterModel((window as any).filterState); setHasSavedState(true); }; const clearState = () => { - api!.setFilterModel(null); + api?.setFilterModel(null); setHasSavedState(true); }; diff --git a/packages/ag-grid-theme/src/examples/Default.tsx b/packages/ag-grid-theme/src/examples/Default.tsx index b84e056aff..213930f002 100644 --- a/packages/ag-grid-theme/src/examples/Default.tsx +++ b/packages/ag-grid-theme/src/examples/Default.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/DragRowOrder.tsx b/packages/ag-grid-theme/src/examples/DragRowOrder.tsx index a7be200abf..9e420f4d8f 100644 --- a/packages/ag-grid-theme/src/examples/DragRowOrder.tsx +++ b/packages/ag-grid-theme/src/examples/DragRowOrder.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import rowDragColumns from "../dependencies/rowDragColumns"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/FloatingFilter.tsx b/packages/ag-grid-theme/src/examples/FloatingFilter.tsx index dfed46e6b7..efef94a6ba 100644 --- a/packages/ag-grid-theme/src/examples/FloatingFilter.tsx +++ b/packages/ag-grid-theme/src/examples/FloatingFilter.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import customFilterExampleColumns from "../dependencies/customFilterExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/HDCompact.tsx b/packages/ag-grid-theme/src/examples/HDCompact.tsx index f22d495de3..f4d715ac13 100644 --- a/packages/ag-grid-theme/src/examples/HDCompact.tsx +++ b/packages/ag-grid-theme/src/examples/HDCompact.tsx @@ -3,7 +3,7 @@ import { UNSTABLE_SaltProviderNext, useTheme, } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -42,9 +42,7 @@ const HDCompact = (props: AgGridReactProps) => { enableRangeSelection={true} onFirstDataRendered={(params) => { params.api.forEachNode((node, index) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (node.data && index < 3) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call node.setSelected(true); } }); diff --git a/packages/ag-grid-theme/src/examples/Icons.tsx b/packages/ag-grid-theme/src/examples/Icons.tsx index 08c3751c33..a37e747911 100644 --- a/packages/ag-grid-theme/src/examples/Icons.tsx +++ b/packages/ag-grid-theme/src/examples/Icons.tsx @@ -80,7 +80,7 @@ const Icons = () => { return (
{providedIcons.map((x) => ( -
+
{x}
))} diff --git a/packages/ag-grid-theme/src/examples/InfiniteScroll.tsx b/packages/ag-grid-theme/src/examples/InfiniteScroll.tsx index 5755870621..c00af8b7b3 100644 --- a/packages/ag-grid-theme/src/examples/InfiniteScroll.tsx +++ b/packages/ag-grid-theme/src/examples/InfiniteScroll.tsx @@ -1,12 +1,12 @@ import { Spinner } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { useEffect } from "react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import dataGridInfiniteScrollExampleColumns from "../dependencies/dataGridInfiniteScrollExampleColumns"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; const generateData = function generateData( - lst: T[] + lst: T[], ) { return lst.reduce((result, row) => { const data = []; @@ -15,7 +15,7 @@ const generateData = function generateData( const o = { ...row, name: `${row.name} ${i}` }; data.push(o); } - return [...result, ...data]; + return result.concat(data); }, [] as T[]); }; @@ -26,20 +26,20 @@ const InfiniteScroll = (props: AgGridReactProps) => { useEffect(() => { if (isGridReady) { - api!.sizeColumnsToFit(); + api?.sizeColumnsToFit(); - api!.setGridOption("datasource", { + api?.setGridOption("datasource", { getRows: ({ startRow, endRow, successCallback }) => { setTimeout(() => { successCallback( dataSourceRows.slice(startRow, endRow), - dataSourceRows.length + dataSourceRows.length, ); }, 500); }, }); } - }, [isGridReady]); + }, [isGridReady, api]); return (
@@ -56,15 +56,11 @@ const InfiniteScroll = (props: AgGridReactProps) => { }; const infiniteScrollComponents = { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - loadingRenderer(params: any) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access + loadingRenderer(params: { value: unknown }) { if (params.value !== undefined) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return return params.value; - } else { - return ; } + return ; }, }; diff --git a/packages/ag-grid-theme/src/examples/LoadingOverlay.tsx b/packages/ag-grid-theme/src/examples/LoadingOverlay.tsx index ecbc762f05..ffa1787e75 100644 --- a/packages/ag-grid-theme/src/examples/LoadingOverlay.tsx +++ b/packages/ag-grid-theme/src/examples/LoadingOverlay.tsx @@ -1,5 +1,5 @@ import { Card, Spinner, StackLayout, Text } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/MasterDetail.tsx b/packages/ag-grid-theme/src/examples/MasterDetail.tsx index 1e0dd4fee0..07c001f664 100644 --- a/packages/ag-grid-theme/src/examples/MasterDetail.tsx +++ b/packages/ag-grid-theme/src/examples/MasterDetail.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { useCallback, useRef } from "react"; import rowData from "../dependencies/dataGridExampleData"; import columnDefs from "../dependencies/masterDetailExampleData"; @@ -10,10 +10,8 @@ const MasterDetail = (props: AgGridReactProps) => { const gridRef = useRef(null); const onFirstDataRendered = useCallback(() => { - requestAnimationFrame(function () { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment + requestAnimationFrame(() => { const node = gridRef.current?.api.getDisplayedRowAtIndex(0); - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access node?.setExpanded(true); }); }, []); @@ -23,11 +21,7 @@ const MasterDetail = (props: AgGridReactProps) => { className={containerProps.className} style={{ height: "100%", padding: 20 }} > - +
); @@ -41,8 +35,9 @@ const MasterDetail = (props: AgGridReactProps) => { detailCellRenderer={detailCellRenderer} detailCellRendererParams={{ detailGridOptions: { columnDefs }, - // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-explicit-any - getDetailRowData: (params: any) => params.successCallback(rowData), + getDetailRowData: (params: { + successCallback: (data: typeof rowData) => void; + }) => params.successCallback(rowData), }} masterDetail={true} detailRowHeight={300} diff --git a/packages/ag-grid-theme/src/examples/NoDataOverlay.tsx b/packages/ag-grid-theme/src/examples/NoDataOverlay.tsx index 9fcf2e8510..ff5a00628e 100644 --- a/packages/ag-grid-theme/src/examples/NoDataOverlay.tsx +++ b/packages/ag-grid-theme/src/examples/NoDataOverlay.tsx @@ -4,7 +4,7 @@ import { DialogContent, DialogHeader, } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -14,7 +14,8 @@ const CustomDialog = () => {
diff --git a/packages/ag-grid-theme/src/examples/Pagination.tsx b/packages/ag-grid-theme/src/examples/Pagination.tsx index 7e2443fad9..d3733be797 100644 --- a/packages/ag-grid-theme/src/examples/Pagination.tsx +++ b/packages/ag-grid-theme/src/examples/Pagination.tsx @@ -1,17 +1,20 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; const generateData = (states: typeof dataGridExampleData) => - states.reduce((result, row) => { - const data = []; - data.push(row); - for (let i = 0; i < 20; i++) { - data.push({ ...row, name: `${row.name} ${i}` }); - } - return [...result, ...data]; - }, [] as typeof dataGridExampleData); + states.reduce( + (result, row) => { + const data = []; + data.push(row); + for (let i = 0; i < 20; i++) { + data.push({ ...row, name: `${row.name} ${i}` }); + } + return result.concat(data); + }, + [] as typeof dataGridExampleData, + ); const Pagination = (props: AgGridReactProps) => { const { agGridProps, containerProps } = useAgGridHelpers(); diff --git a/packages/ag-grid-theme/src/examples/ParentChildRows.tsx b/packages/ag-grid-theme/src/examples/ParentChildRows.tsx index 0b52951df9..0d790e637e 100644 --- a/packages/ag-grid-theme/src/examples/ParentChildRows.tsx +++ b/packages/ag-grid-theme/src/examples/ParentChildRows.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import parentChildExampleColumns from "../dependencies/parentChildExampleColumns"; import parentChildExampleData from "../dependencies/parentChildExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -14,9 +14,7 @@ const ParentChildRows = (props: AgGridReactProps) => { animateRows treeData columnDefs={parentChildExampleColumns} - // eslint-disable-next-line @typescript-eslint/no-explicit-any - getDataPath={(data: any) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access + getDataPath={(data) => { return data.orgHierarchy; }} groupDefaultExpanded={-1} diff --git a/packages/ag-grid-theme/src/examples/PinnedRows.tsx b/packages/ag-grid-theme/src/examples/PinnedRows.tsx index 555893ae61..6af7a291d7 100644 --- a/packages/ag-grid-theme/src/examples/PinnedRows.tsx +++ b/packages/ag-grid-theme/src/examples/PinnedRows.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -17,12 +17,10 @@ export const aggregates = { max, }; -const fields = function (fieldName: keyof T, rows: T[]) { - return rows.map((row) => row[fieldName]); -}; +const fields = (fieldName: keyof T, rows: T[]) => + rows.map((row) => row[fieldName]); -// eslint-disable-next-line @typescript-eslint/no-explicit-any -const headerRow: any[] = [ +const headerRow: AgGridReactProps["pinnedTopRowData"] = [ { name: "Top", code: "Top", @@ -50,8 +48,10 @@ const PinnedRowsExample = function PinnedRowsExample({ const { agGridProps, containerProps } = useAgGridHelpers(); const getColumnData = () => { - return fields(aggregateColumn, rowData!).filter( - (field) => typeof field === "number" + if (!rowData) return []; + + return fields(aggregateColumn, rowData).filter( + (field) => typeof field === "number", ) as number[]; }; diff --git a/packages/ag-grid-theme/src/examples/RangeSelection.tsx b/packages/ag-grid-theme/src/examples/RangeSelection.tsx index 8b8c0f409a..291c670103 100644 --- a/packages/ag-grid-theme/src/examples/RangeSelection.tsx +++ b/packages/ag-grid-theme/src/examples/RangeSelection.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { useEffect } from "react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; @@ -16,7 +16,7 @@ export const RangeSelection = (props: AgGridReactProps) => { columnEnd: "population", }); } - }, [isGridReady]); + }, [isGridReady, api]); return (
@@ -29,9 +29,7 @@ export const RangeSelection = (props: AgGridReactProps) => { enableRangeSelection onFirstDataRendered={(params) => { params.api.forEachNode((node, index) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (node.data && index < 7 && index > 2) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call node.setSelected(true); } }); diff --git a/packages/ag-grid-theme/src/examples/RowGroupPanel.tsx b/packages/ag-grid-theme/src/examples/RowGroupPanel.tsx index 938d39d929..33d719f133 100644 --- a/packages/ag-grid-theme/src/examples/RowGroupPanel.tsx +++ b/packages/ag-grid-theme/src/examples/RowGroupPanel.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import dataGridExampleRowGroupPanel from "../dependencies/dataGridExampleRowGroupPanel"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/RowGrouping.tsx b/packages/ag-grid-theme/src/examples/RowGrouping.tsx index 910ec29bd7..18059f45d2 100644 --- a/packages/ag-grid-theme/src/examples/RowGrouping.tsx +++ b/packages/ag-grid-theme/src/examples/RowGrouping.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import dataGridExampleRowGrouping from "../dependencies/dataGridExampleRowGrouping"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/SortAndFilter.tsx b/packages/ag-grid-theme/src/examples/SortAndFilter.tsx index 687ff731c4..36cf1938e6 100644 --- a/packages/ag-grid-theme/src/examples/SortAndFilter.tsx +++ b/packages/ag-grid-theme/src/examples/SortAndFilter.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { useEffect } from "react"; import rowData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -48,7 +48,7 @@ const SortAndFilter = (props: AgGridReactProps) => { } void setFilter(); - }, [isGridReady]); + }, [isGridReady, api]); return (
diff --git a/packages/ag-grid-theme/src/examples/StatusBar.tsx b/packages/ag-grid-theme/src/examples/StatusBar.tsx index abab5ac35f..036740f6d9 100644 --- a/packages/ag-grid-theme/src/examples/StatusBar.tsx +++ b/packages/ag-grid-theme/src/examples/StatusBar.tsx @@ -1,5 +1,5 @@ -import { StackLayout, Text, Divider } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { Divider, StackLayout, Text } from "@salt-ds/core"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; @@ -13,7 +13,7 @@ const CustomClickableStatusBar = () => { style={{ height: "var(--salt-text-fontSize)", alignSelf: "center" }} /> {/* In status bar, line height being size base keeps text in the middle */} - + Custom Component @@ -59,9 +59,7 @@ const StatusBar = (props: AgGridReactProps) => { rowData={dataGridExampleData} onFirstDataRendered={(params) => { params.api.forEachNode((node, index) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access if (node.data && index < 3) { - // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call node.setSelected(true); } }); diff --git a/packages/ag-grid-theme/src/examples/ToolPanel.tsx b/packages/ag-grid-theme/src/examples/ToolPanel.tsx index d25d4aebb5..65b4254d65 100644 --- a/packages/ag-grid-theme/src/examples/ToolPanel.tsx +++ b/packages/ag-grid-theme/src/examples/ToolPanel.tsx @@ -1,5 +1,5 @@ import { FlexLayout, Text } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/VariantSecondary.tsx b/packages/ag-grid-theme/src/examples/VariantSecondary.tsx index 87d69aee16..2e4e84f06e 100644 --- a/packages/ag-grid-theme/src/examples/VariantSecondary.tsx +++ b/packages/ag-grid-theme/src/examples/VariantSecondary.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { clsx } from "clsx"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; diff --git a/packages/ag-grid-theme/src/examples/VariantZebra.tsx b/packages/ag-grid-theme/src/examples/VariantZebra.tsx index 36a14d15d4..5595445467 100644 --- a/packages/ag-grid-theme/src/examples/VariantZebra.tsx +++ b/packages/ag-grid-theme/src/examples/VariantZebra.tsx @@ -1,4 +1,4 @@ -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; import { clsx } from "clsx"; import dataGridExampleColumns from "../dependencies/dataGridExampleColumns"; import dataGridExampleData from "../dependencies/dataGridExampleData"; diff --git a/packages/ag-grid-theme/src/examples/WrappedCell.tsx b/packages/ag-grid-theme/src/examples/WrappedCell.tsx index 0c05c911d0..785d2d7cbd 100644 --- a/packages/ag-grid-theme/src/examples/WrappedCell.tsx +++ b/packages/ag-grid-theme/src/examples/WrappedCell.tsx @@ -1,6 +1,6 @@ import { Checkbox, FlexItem, StackLayout, useDensity } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; -import { ChangeEvent, useState } from "react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; +import { type ChangeEvent, useState } from "react"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/src/examples/WrappedHeader.tsx b/packages/ag-grid-theme/src/examples/WrappedHeader.tsx index bdec9737bd..79b33a26e0 100644 --- a/packages/ag-grid-theme/src/examples/WrappedHeader.tsx +++ b/packages/ag-grid-theme/src/examples/WrappedHeader.tsx @@ -1,6 +1,6 @@ import { Checkbox, StackLayout, useDensity } from "@salt-ds/core"; -import { AgGridReact, AgGridReactProps } from "ag-grid-react"; -import { ChangeEvent, useState } from "react"; +import { AgGridReact, type AgGridReactProps } from "ag-grid-react"; +import { type ChangeEvent, useState } from "react"; import dataGridExampleColumnsWrap from "../dependencies/dataGridExampleColumnsWrap"; import dataGridExampleData from "../dependencies/dataGridExampleData"; import { useAgGridHelpers } from "../dependencies/useAgGridHelpers"; diff --git a/packages/ag-grid-theme/stories/ag-grid-theme.qa.stories.tsx b/packages/ag-grid-theme/stories/ag-grid-theme.qa.stories.tsx index 1eb976a758..59e48087b5 100644 --- a/packages/ag-grid-theme/stories/ag-grid-theme.qa.stories.tsx +++ b/packages/ag-grid-theme/stories/ag-grid-theme.qa.stories.tsx @@ -2,11 +2,11 @@ import type { StoryObj } from "@storybook/react"; import { expect, userEvent, within } from "@storybook/test"; import { AgGridReact } from "ag-grid-react"; import { - Default, - ToolPanel, ColumnGroup, ContextMenu as ContextMenuGrid, CustomFilter, + Default, + ToolPanel, } from "../src/examples"; import "ag-grid-community/styles/ag-grid.css"; @@ -64,12 +64,11 @@ HeaderTooltip.play = async ({ canvasElement }) => { for (const cell of headerCells) { const gridRoot: HTMLElement = cell.closest(".ag-root-wrapper")!; - // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unnecessary-type-assertion - (cell.closest(".ag-header-cell")! as HTMLElement).focus(); + cell.closest(".ag-header-cell")?.focus(); // Snapshot the tooltip, mainly ensuring bg color match await expect( - await within(gridRoot).findByRole("dialog", { name: "Tooltip" }) + await within(gridRoot).findByRole("dialog", { name: "Tooltip" }), ).toBeInTheDocument(); } }; @@ -89,7 +88,7 @@ ColumnMenuGeneral.play = async ({ canvasElement }) => { await userEvent.click( cell .closest(".ag-header-cell-comp-wrapper")! - .querySelector(".ag-icon.ag-icon-menu")! + .querySelector(".ag-icon.ag-icon-menu")!, ); const dialog = within(gridRoot).getByRole("dialog", { @@ -97,7 +96,7 @@ ColumnMenuGeneral.play = async ({ canvasElement }) => { }); await userEvent.hover( - within(dialog).getByRole("treeitem", { name: /Pin Column/i }) + within(dialog).getByRole("treeitem", { name: /Pin Column/i }), ); // snapshot the menu @@ -120,7 +119,7 @@ ColumnMenuFilter.play = async ({ canvasElement }) => { await userEvent.click( cell .closest(".ag-header-cell-comp-wrapper")! - .querySelector(".ag-icon.ag-icon-menu")! + .querySelector(".ag-icon.ag-icon-menu")!, ); const dialog = within(gridRoot).getByRole("dialog", { @@ -156,7 +155,7 @@ ColumnMenuColumns.play = async ({ canvasElement }) => { await userEvent.click( cell .closest(".ag-header-cell-comp-wrapper")! - .querySelector(".ag-icon.ag-icon-menu")! + .querySelector(".ag-icon.ag-icon-menu")!, ); const dialog = within(gridRoot).getByRole("dialog", { @@ -164,7 +163,7 @@ ColumnMenuColumns.play = async ({ canvasElement }) => { }); await userEvent.click( - within(dialog).getByRole("tab", { name: /columns/i }) + within(dialog).getByRole("tab", { name: /columns/i }), ); // snapshot the menu @@ -187,7 +186,7 @@ ColumnMenuNumberFilter.play = async ({ canvasElement }) => { await userEvent.click( cell .closest(".ag-header-cell-comp-wrapper")! - .querySelector(".ag-icon.ag-icon-menu")! + .querySelector(".ag-icon.ag-icon-menu")!, ); const dialog = within(gridRoot).getByRole("dialog", { @@ -199,14 +198,14 @@ ColumnMenuNumberFilter.play = async ({ canvasElement }) => { await userEvent.click( await within(dialog).findByRole("combobox", { name: "Filtering operator", - }) + }), ); const dropDown = within(gridRoot).getByRole("listbox", { name: "Select Field", }); await userEvent.click( - within(dropDown).getByRole("option", { name: "Not blank" }) + within(dropDown).getByRole("option", { name: "Not blank" }), ); // Snapshot radio buttons, which comes from icon in v31 @@ -261,7 +260,7 @@ ContextMenu.play = async ({ canvasElement }) => { const gridRoot: HTMLElement = cell.closest(".ag-root-wrapper")!; await expect( - within(gridRoot).getByRole("presentation", { name: "Context Menu" }) + within(gridRoot).getByRole("presentation", { name: "Context Menu" }), ).toBeInTheDocument(); } }; diff --git a/packages/core/package.json b/packages/core/package.json index 85793b035d..7465bb473b 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -31,7 +31,5 @@ "scripts": { "bundle:css": "yarn node ./scripts/build.mjs" }, - "files": [ - "css" - ] + "files": ["css"] } diff --git a/packages/core/scripts/build.mjs b/packages/core/scripts/build.mjs index 982150fedc..87ed621fe7 100644 --- a/packages/core/scripts/build.mjs +++ b/packages/core/scripts/build.mjs @@ -1,10 +1,10 @@ -import esbuild from "esbuild"; -import path, { dirname } from "node:path"; +import crypto from "node:crypto"; import fs from "node:fs"; -import { deleteSync } from "del"; +import path, { dirname } from "node:path"; import { fileURLToPath } from "node:url"; +import { deleteSync } from "del"; +import esbuild from "esbuild"; import glob from "fast-glob"; -import crypto from "node:crypto"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const buildFolder = path.join(__dirname, "../../../dist/salt-ds-core/css"); @@ -25,15 +25,15 @@ function createCssEntryFile(callback) { }); const writeLine = (line, index) => - index == 0 ? entry.write(line) : entry.write(`\n${line}`); + index === 0 ? entry.write(line) : entry.write(`\n${line}`); cssFiles.forEach((cssFile, index) => { writeLine( `@import "${path.posix.relative( path.posix.dirname(entryFile), - cssFile + cssFile, )}";`, - index + index, ); }); @@ -62,7 +62,7 @@ function runBuild() { fs.mkdirSync(cssFolder, { recursive: true }); fs.copyFileSync( path.join(buildFolder, outfileName), - path.join(cssFolder, outfileName) + path.join(cssFolder, outfileName), ); }) .finally(() => { diff --git a/packages/core/src/__tests__/__e2e__/accordion/Accordion.cy.tsx b/packages/core/src/__tests__/__e2e__/accordion/Accordion.cy.tsx index 19e7e7c107..561ce9460f 100644 --- a/packages/core/src/__tests__/__e2e__/accordion/Accordion.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/accordion/Accordion.cy.tsx @@ -1,10 +1,10 @@ import { - AccordionPanel, Accordion, - AccordionProps, AccordionHeader, + AccordionPanel, + type AccordionProps, } from "@salt-ds/core"; -import { Component, ReactNode } from "react"; +import { Component, type ReactNode } from "react"; interface DetailsSpyProps { children?: ReactNode; @@ -73,7 +73,7 @@ describe("GIVEN an Accordion", () => { -
+
, ); cy.realPress("Tab"); diff --git a/packages/core/src/__tests__/__e2e__/aria-announcer/AriaAnnouncer.cy.tsx b/packages/core/src/__tests__/__e2e__/aria-announcer/AriaAnnouncer.cy.tsx index e33d5eef0c..8c785f7a50 100644 --- a/packages/core/src/__tests__/__e2e__/aria-announcer/AriaAnnouncer.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/aria-announcer/AriaAnnouncer.cy.tsx @@ -1,7 +1,7 @@ import { + ARIA_ANNOUNCE_DELAY, AriaAnnouncerProvider, useAriaAnnouncer, - ARIA_ANNOUNCE_DELAY, } from "@salt-ds/core"; import { mount } from "cypress/react18"; @@ -50,7 +50,7 @@ describe("Given a AriaAnnouncerProvider", () => {
-
+
, ); cy.document().then((doc) => { @@ -73,9 +73,7 @@ describe("Given a AriaAnnouncerProvider", () => { }); }); it.skip("should allow for style overrides on the [aria-live] element", () => { - mount( - - ); + mount(); // TODO: figure out why this doesn't work cy.get("[aria-live]").should("have.css", "border-width", "1px"); @@ -87,7 +85,7 @@ describe("Given useAriaAnnouncer", () => { mount( - + , ); cy.findByText(BUTTON_TEXT).click(); @@ -99,7 +97,7 @@ describe("Given useAriaAnnouncer", () => { mount( - + , ); cy.findByText(BUTTON_TEXT_WAIT).click(); @@ -116,7 +114,7 @@ describe("Given useAriaAnnouncer", () => { mount( - + , ); cy.findByText(BUTTON_TEXT).click(); @@ -139,7 +137,7 @@ describe("Given useAriaAnnouncer", () => { return `test ${increment}`; }} /> - + , ); cy.findByText(BUTTON_TEXT).click().click(); diff --git a/packages/core/src/__tests__/__e2e__/aria-announcer/useAriaAnnounce.cy.tsx b/packages/core/src/__tests__/__e2e__/aria-announcer/useAriaAnnounce.cy.tsx index 0269970275..4ad68bad32 100644 --- a/packages/core/src/__tests__/__e2e__/aria-announcer/useAriaAnnounce.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/aria-announcer/useAriaAnnounce.cy.tsx @@ -1,5 +1,5 @@ -import { ReactNode, useState } from "react"; import { mount } from "cypress/react18"; +import { type ReactNode, useState } from "react"; import { AriaAnnounce, @@ -19,7 +19,7 @@ interface SimpleTestContentProps { announcement?: string; delay?: number; debounce?: number; - getAnnouncement?: Function; + getAnnouncement?: () => string; } const SimpleTestContent = ({ @@ -36,14 +36,16 @@ const SimpleTestContent = ({ <> - + , ); cy.realPress("Tab"); @@ -114,7 +114,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("button", { name: "end" }).realClick(); @@ -135,7 +135,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.realPress("Tab"); @@ -150,7 +150,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }).should("be.checked"); cy.findByRole("checkbox", { name: "two" }).should("not.be.checked"); @@ -164,7 +164,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }).should("not.be.checked"); @@ -199,7 +199,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "two" }).realClick(); @@ -217,7 +217,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }) @@ -236,7 +236,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }).should("not.be.checked"); @@ -279,7 +279,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.realPress("Tab"); @@ -297,7 +297,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }).should("not.be.checked"); @@ -315,7 +315,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findByRole("checkbox", { name: "one" }).should("be.checked"); cy.findByRole("checkbox", { name: "two" }).should("not.be.checked"); @@ -410,7 +410,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findAllByRole("checkbox").should("have.attr", "disabled"); @@ -425,7 +425,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findAllByRole("checkbox").should("have.attr", "readonly"); @@ -440,7 +440,7 @@ describe("GIVEN a CheckboxGroup", () => { - + , ); cy.findAllByRole("checkbox").eq(0).should("have.accessibleName", "one"); diff --git a/packages/core/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx b/packages/core/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx index b0749c3029..d1df15d814 100644 --- a/packages/core/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx @@ -1,9 +1,9 @@ -import { composeStories } from "@storybook/react"; -import * as comboBoxStories from "@stories/combo-box/combo-box.stories"; import { ComboBox, Option } from "@salt-ds/core"; +import * as comboBoxStories from "@stories/combo-box/combo-box.stories"; +import { composeStories } from "@storybook/react"; -import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; import { useState } from "react"; +import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; const { Default, @@ -42,7 +42,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -63,7 +63,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -78,7 +78,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); @@ -92,14 +92,14 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); it("single select should not be able to filter and select an option with a Tab key press when selectOnTab is passed as false", () => { const selectionChangeSpy = cy.stub().as("selectionChange"); cy.mount( - + , ); cy.findByRole("combobox").realClick(); cy.realType("Ala"); @@ -116,7 +116,7 @@ describe("Given a ComboBox", () => { cy.findByRole("option", { name: "Alabama" }).should("be.activeDescendant"); cy.realType("C"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); cy.realPress("Enter"); @@ -125,7 +125,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["California"]) + Cypress.sinon.match.array.deepEquals(["California"]), ); }); @@ -138,7 +138,7 @@ describe("Given a ComboBox", () => { cy.findByRole("option", { name: "Alabama" }).should("be.activeDescendant"); cy.realType("C"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); cy.realPress("Tab"); @@ -147,7 +147,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["California"]) + Cypress.sinon.match.array.deepEquals(["California"]), ); }); @@ -226,7 +226,7 @@ describe("Given a ComboBox", () => { cy.realPress("ArrowDown"); cy.findByRole("option", { name: "California" }).should("be.ariaSelected"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); }); @@ -237,7 +237,7 @@ describe("Given a ComboBox", () => { cy.realPress("ArrowUp"); cy.findByRole("option", { name: "California" }).should("be.ariaSelected"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); }); @@ -298,7 +298,7 @@ describe("Given a ComboBox", () => { -
+
, ); cy.findByRole("combobox").should("be.disabled"); @@ -349,7 +349,7 @@ describe("Given a ComboBox", () => { cy.findByRole("option", { name: "California" }).should( "have.attr", "aria-disabled", - "true" + "true", ); cy.realType("California"); cy.realPress("Enter"); @@ -365,13 +365,13 @@ describe("Given a ComboBox", () => { selectOnTab multiselect onSelectionChange={selectionChangeSpy} - /> + />, ); cy.findByRole("combobox").realClick(); cy.findByRole("option", { name: "California" }).should( "have.attr", "aria-disabled", - "true" + "true", ); cy.realType("California"); cy.realPress("Tab"); @@ -386,7 +386,7 @@ describe("Given a ComboBox", () => { selectOnTab multiselect onSelectionChange={selectionChangeSpy} - /> + />, ); cy.findByRole("combobox").realClick(); cy.realType("alabama"); @@ -400,31 +400,31 @@ describe("Given a ComboBox", () => { cy.findByRole("combobox").should( "have.attr", "aria-multiselectable", - "true" + "true", ); cy.findByRole("combobox").realClick(); cy.findByRole("option", { name: "Alabama" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); cy.findByRole("option", { name: "Alaska" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("option", { name: "Alaska" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); cy.findByRole("button", { name: /^Alaska/ }).should("be.visible"); @@ -441,12 +441,12 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); cy.realPress("ArrowDown"); @@ -454,12 +454,12 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("option", { name: "Alaska" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); cy.findByRole("button", { name: /^Alaska/ }).should("be.visible"); @@ -476,7 +476,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); }); @@ -499,7 +499,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("button", { name: /^Alabama/ }).should("be.visible"); cy.findByRole("combobox").realClick(); @@ -515,7 +515,7 @@ describe("Given a ComboBox", () => { cy.findByRole("combobox").should("have.accessibleName", "State"); cy.findByRole("combobox").should( "have.accessibleDescription", - "Pick a US state" + "Pick a US state", ); }); @@ -534,7 +534,7 @@ describe("Given a ComboBox", () => { cy.findAllByRole("option").should("have.length", 1); cy.findByRole("option").should( "have.text", - `No results found for "Yelloww"` + `No results found for "Yelloww"`, ); }); @@ -568,7 +568,7 @@ describe("Given a ComboBox", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); @@ -609,7 +609,7 @@ describe("Given a ComboBox", () => { cy.findByRole("combobox").clear(); cy.findByRole("combobox").should("have.value", ""); cy.findByRole("option", { name: "California" }).should( - "not.be.ariaSelected" + "not.be.ariaSelected", ); }); @@ -629,7 +629,7 @@ describe("Given a ComboBox", () => { cy.findByRole("option", { name: "Alabama" }).should("be.activeDescendant"); cy.realType("C"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); cy.realType("{backspace}"); cy.findAllByRole("option").should("not.be.activeDescendant"); @@ -689,7 +689,7 @@ describe("Given a ComboBox", () => { cy.mount( - + , ); cy.findByTestId(FLOATING_TEST_ID).should("exist"); @@ -700,7 +700,7 @@ describe("Given a ComboBox", () => { + , ); cy.findByRole("combobox").should("have.value", "Alaska"); }); @@ -709,7 +709,7 @@ describe("Given a ComboBox", () => { + , ); cy.findByRole("combobox").should("have.value", "Alaska"); }); @@ -718,7 +718,7 @@ describe("Given a ComboBox", () => { + , ); cy.findByRole("combobox").should("have.value", "Alaska"); }); diff --git a/packages/core/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx b/packages/core/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx index e9891a1612..2cb5e98348 100644 --- a/packages/core/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx +++ b/packages/core/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx @@ -1,10 +1,10 @@ -import { forwardRef, ReactNode, CSSProperties } from "react"; +import { FloatingPortal } from "@floating-ui/react"; import { - FloatingComponentProps, - SaltProvider, + type FloatingComponentProps, FloatingComponentProvider, + SaltProvider, } from "@salt-ds/core"; -import { FloatingPortal } from "@floating-ui/react"; +import { type CSSProperties, type ReactNode, forwardRef } from "react"; export const FLOATING_TEST_ID = "FLOATING_TEST_ID"; diff --git a/packages/core/src/__tests__/__e2e__/declarations.d.ts b/packages/core/src/__tests__/__e2e__/declarations.d.ts index cbfbd10d0a..d27b29cf94 100644 --- a/packages/core/src/__tests__/__e2e__/declarations.d.ts +++ b/packages/core/src/__tests__/__e2e__/declarations.d.ts @@ -1,4 +1,5 @@ declare module "*.png" { + // biome-ignore lint/suspicious/noExplicitAny: any is simpler here const content: any; export default content; } diff --git a/packages/core/src/__tests__/__e2e__/dialog/Dialog.cy.tsx b/packages/core/src/__tests__/__e2e__/dialog/Dialog.cy.tsx index eb27c1cc55..b21d38e7d8 100644 --- a/packages/core/src/__tests__/__e2e__/dialog/Dialog.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/dialog/Dialog.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as dialogStories from "@stories/dialog/dialog.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(dialogStories); @@ -54,7 +54,7 @@ describe("GIVEN a Dialog", () => { cy.findByRole("button").click(); cy.findByRole("dialog").should("have.class", "saltDialog-medium-xl"); - } + }, ); }); @@ -100,7 +100,7 @@ describe("GIVEN a Dialog", () => { cy.findByRole("button").click(); cy.findByRole("dialog").should("have.class", "saltDialog-large-xl"); - } + }, ); it( @@ -115,7 +115,7 @@ describe("GIVEN a Dialog", () => { cy.findByRole("button").click(); cy.findByRole("dialog").should("have.class", "saltDialog-small-xs"); - } + }, ); }); @@ -130,7 +130,7 @@ describe("GIVEN a Dialog", () => { cy.findByRole("dialog").should("be.visible"); cy.get("@consoleSpy").then((spy) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any + // biome-ignore lint/suspicious/noExplicitAny: Cypress types const callCount = (spy as any).callCount; cy.findByLabelText("Close dialog").click(); diff --git a/packages/core/src/__tests__/__e2e__/divider/Divider.cy.tsx b/packages/core/src/__tests__/__e2e__/divider/Divider.cy.tsx index 08214237ef..1a36cd896a 100644 --- a/packages/core/src/__tests__/__e2e__/divider/Divider.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/divider/Divider.cy.tsx @@ -13,7 +13,7 @@ describe("GIVEN a Divider", () => { cy.findAllByRole("separator").should( "have.attr", "aria-orientation", - "horizontal" + "horizontal", ); }); @@ -22,7 +22,7 @@ describe("GIVEN a Divider", () => { cy.findAllByRole("separator").should( "have.attr", "aria-orientation", - "vertical" + "vertical", ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/drawer/Drawer.cy.tsx b/packages/core/src/__tests__/__e2e__/drawer/Drawer.cy.tsx index 8e06f1c452..747b38db06 100644 --- a/packages/core/src/__tests__/__e2e__/drawer/Drawer.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/drawer/Drawer.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as drawerStories from "@stories/drawer/drawer.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(drawerStories); @@ -17,7 +17,7 @@ describe("GIVEN a Drawer", () => { cy.findByRole("dialog").should("be.visible"); cy.get("@consoleSpy").then((spy) => { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any + // biome-ignore lint/suspicious/noExplicitAny: Cypress types const callCount = (spy as any).callCount; cy.findByRole("button", { name: "Close Drawer" }).click(); diff --git a/packages/core/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx b/packages/core/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx index e042a1b269..4b4be3f4e1 100644 --- a/packages/core/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx @@ -1,9 +1,9 @@ -import { composeStories } from "@storybook/react"; -import * as dropdownStories from "@stories/dropdown/dropdown.stories"; import { Dropdown } from "@salt-ds/core"; +import * as dropdownStories from "@stories/dropdown/dropdown.stories"; +import { composeStories } from "@storybook/react"; -import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; import { useState } from "react"; +import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; const { Default, @@ -38,7 +38,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -58,7 +58,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -76,7 +76,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); @@ -94,7 +94,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); @@ -160,7 +160,7 @@ describe("Given a Dropdown", () => { cy.realPress("ArrowDown"); cy.findByRole("option", { name: "California" }).should("be.ariaSelected"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); }); @@ -171,7 +171,7 @@ describe("Given a Dropdown", () => { cy.realPress("ArrowUp"); cy.findByRole("option", { name: "California" }).should("be.ariaSelected"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); }); @@ -232,7 +232,7 @@ describe("Given a Dropdown", () => { -
+
, ); cy.findByRole("combobox").should("be.disabled"); cy.realPress("Tab"); @@ -279,11 +279,11 @@ describe("Given a Dropdown", () => { cy.findByRole("option", { name: "California" }).should( "have.attr", "aria-disabled", - "true" + "true", ); cy.realType("California"); cy.findByRole("option", { name: "California" }).should( - "be.activeDescendant" + "be.activeDescendant", ); cy.realPress("Enter"); cy.get("@selectionChange").should("not.have.been.called"); @@ -297,21 +297,21 @@ describe("Given a Dropdown", () => { cy.findByRole("combobox").should( "have.attr", "aria-multiselectable", - "true" + "true", ); cy.findByRole("combobox").realClick(); cy.findByRole("option", { name: "Alabama" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should("be.ariaSelected"); cy.findByRole("option", { name: "Alaska" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("option", { name: "Alaska" }).should("be.ariaSelected"); cy.findByRole("listbox").should("exist"); @@ -327,7 +327,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should("be.ariaSelected"); cy.realPress("ArrowDown"); @@ -335,7 +335,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("listbox").should("exist"); cy.findByRole("combobox").should("have.text", "Alabama, Alaska"); @@ -346,7 +346,7 @@ describe("Given a Dropdown", () => { cy.findByRole("combobox").should("have.accessibleName", "State"); cy.findByRole("combobox").should( "have.accessibleDescription", - "Pick a US state" + "Pick a US state", ); }); @@ -398,7 +398,7 @@ describe("Given a Dropdown", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); }); @@ -452,7 +452,7 @@ describe("Given a Dropdown", () => { cy.realType("Co"); cy.findByRole("option", { name: "Connecticut" }).should( - "be.activeDescendant" + "be.activeDescendant", ); }); @@ -460,7 +460,7 @@ describe("Given a Dropdown", () => { cy.mount( - + , ); cy.findByTestId(FLOATING_TEST_ID).should("exist"); diff --git a/packages/core/src/__tests__/__e2e__/file-drop-zone/FileDropZone.cy.tsx b/packages/core/src/__tests__/__e2e__/file-drop-zone/FileDropZone.cy.tsx index 7d1ff50ffa..629cddd3c6 100644 --- a/packages/core/src/__tests__/__e2e__/file-drop-zone/FileDropZone.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/file-drop-zone/FileDropZone.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as fileDropZoneStories from "@stories/file-drop-zone/file-drop-zone.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(fileDropZoneStories); @@ -22,11 +22,11 @@ describe("Given a file drop zone", () => { }, { action: "drag-drop", - } + }, ); cy.findByTestId("file-drop-zone-example").should( "have.class", - "saltFileDropZone-success" + "saltFileDropZone-success", ); }); it("should be able to accept multiple files", () => { @@ -50,7 +50,7 @@ describe("Given a file drop zone", () => { cy.get("@dropSpy").should("have.been.calledOnce"); cy.findByTestId("file-drop-zone-example").should( "have.class", - "saltFileDropZone-success" + "saltFileDropZone-success", ); }); it("should allow selecting the same file from the button after reset", () => { diff --git a/packages/core/src/__tests__/__e2e__/flex-layout/FlexLayout.cy.tsx b/packages/core/src/__tests__/__e2e__/flex-layout/FlexLayout.cy.tsx index fac5120802..ed5fd524b5 100644 --- a/packages/core/src/__tests__/__e2e__/flex-layout/FlexLayout.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/flex-layout/FlexLayout.cy.tsx @@ -1,7 +1,7 @@ -import { composeStories } from "@storybook/react"; +import { SaltProvider } from "@salt-ds/core"; import * as flexStories from "@stories/flex-layout/flex-layout.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; -import { SaltProvider } from "@salt-ds/core"; const composedStories = composeStories(flexStories); const { Default, Nested } = composedStories; @@ -53,7 +53,7 @@ describe("GIVEN a FlexLayout", () => { cy.get(".saltFlexLayout").should( "have.class", - "saltFlexLayout-separator" + "saltFlexLayout-separator", ); }); }); @@ -85,7 +85,7 @@ describe("GIVEN a FlexLayout", () => { cy.mount(); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "nowrap"); - } + }, ); it( @@ -98,7 +98,7 @@ describe("GIVEN a FlexLayout", () => { cy.mount(); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); it( @@ -111,7 +111,7 @@ describe("GIVEN a FlexLayout", () => { cy.mount(); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); it( @@ -124,7 +124,7 @@ describe("GIVEN a FlexLayout", () => { cy.mount(); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); }); @@ -155,11 +155,11 @@ describe("GIVEN a FlexLayout", () => { cy.mount( - + , ); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "nowrap"); - } + }, ); it( @@ -172,11 +172,11 @@ describe("GIVEN a FlexLayout", () => { cy.mount( - + , ); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); it( @@ -189,11 +189,11 @@ describe("GIVEN a FlexLayout", () => { cy.mount( - + , ); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); it( @@ -206,11 +206,11 @@ describe("GIVEN a FlexLayout", () => { cy.mount( - + , ); cy.get(".saltFlexLayout").should("have.css", "flex-wrap", "wrap"); - } + }, ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/floating-platform/FloatingPlatform.cy.tsx b/packages/core/src/__tests__/__e2e__/floating-platform/FloatingPlatform.cy.tsx index e1ec8daa18..f805ecfbed 100644 --- a/packages/core/src/__tests__/__e2e__/floating-platform/FloatingPlatform.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/floating-platform/FloatingPlatform.cy.tsx @@ -1,13 +1,13 @@ import { useState } from "react"; +import { platform } from "@floating-ui/dom"; +import type { Platform } from "@floating-ui/react"; import { - Tooltip, - FloatingPlatformProvider, Button, + FloatingPlatformProvider, StackLayout, + Tooltip, } from "@salt-ds/core"; -import { Platform } from "@floating-ui/react"; -import { platform } from "@floating-ui/dom"; import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; diff --git a/packages/core/src/__tests__/__e2e__/flow-layout/FlowLayout.cy.tsx b/packages/core/src/__tests__/__e2e__/flow-layout/FlowLayout.cy.tsx index da6883b40e..9b7527a03b 100644 --- a/packages/core/src/__tests__/__e2e__/flow-layout/FlowLayout.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/flow-layout/FlowLayout.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as flowStories from "@stories/flow-layout/flow-layout.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(flowStories); diff --git a/packages/core/src/__tests__/__e2e__/form-field/FormField.cy.tsx b/packages/core/src/__tests__/__e2e__/form-field/FormField.cy.tsx index 6a761715c1..42d1d09e7e 100644 --- a/packages/core/src/__tests__/__e2e__/form-field/FormField.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/form-field/FormField.cy.tsx @@ -1,12 +1,12 @@ import { + Button, + Checkbox, FormField, - FormFieldLabel, FormFieldHelperText, + FormFieldLabel, Input, - Tooltip, - Checkbox, RadioButton, - Button, + Tooltip, } from "@salt-ds/core"; const MockChildren = () => { @@ -25,7 +25,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Label").should("exist"); @@ -37,7 +37,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Helper text").should("exist"); @@ -49,14 +49,14 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Label").should("have.attr", "id", "label-test-id"); cy.findByText("Helper text").should( "have.attr", "id", - "helperText-test-id" + "helperText-test-id", ); }); }); @@ -66,7 +66,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Label").should("have.class", "saltText-disabled"); cy.findByText("Helper text").should("have.class", "saltText-disabled"); @@ -78,12 +78,12 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.get(".saltStatusIndicator").should( "have.class", - "saltStatusIndicator-error" + "saltStatusIndicator-error", ); }); @@ -92,7 +92,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.get(".saltFormFieldHelperText") @@ -106,7 +106,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.get(".saltFormFieldHelperText") @@ -120,12 +120,12 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.get(".saltStatusIndicator").should( "have.class", - "saltStatusIndicator-success" + "saltStatusIndicator-success", ); }); }); @@ -135,12 +135,12 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.get(".saltStatusIndicator").should( "have.class", - "saltStatusIndicator-warning" + "saltStatusIndicator-warning", ); }); }); @@ -153,7 +153,7 @@ describe("GIVEN a FormField", () => { Label Helper text - + , ); cy.findByLabelText("Label").focus(); @@ -167,7 +167,7 @@ describe("GIVEN a FormField", () => { Label Helper text - + , ); cy.findByText("(Required)").should("exist"); @@ -180,7 +180,7 @@ describe("GIVEN a FormField", () => { Label Helper text - + , ); cy.findByText("(Optional)").should("exist"); @@ -192,7 +192,7 @@ describe("GIVEN a FormField", () => { Label Helper text - + , ); cy.findByLabelText("Label *").should("have.attr", "required"); @@ -207,7 +207,7 @@ describe("GIVEN a FormField", () => { - + , ); cy.findByLabelText("Label").realHover(); @@ -221,14 +221,14 @@ describe("GIVEN a FormField", () => { - + , ); cy.findByLabelText("Label").realHover(); cy.findByText("Helper text").should( "have.attr", "id", - "helperText-test-id" + "helperText-test-id", ); }); @@ -240,7 +240,7 @@ describe("GIVEN a FormField", () => { - + , ); cy.findByLabelText("Label").realHover(); @@ -256,7 +256,7 @@ describe("GIVEN a FormField", () => { - + , ); cy.findByLabelText("Label").realHover(); @@ -275,7 +275,7 @@ describe("GIVEN a FormField", () => { startAdornment={} data-testid="test-id-3" /> - + , ); cy.findByRole("button").should("be.visible"); }); @@ -289,7 +289,7 @@ describe("GIVEN a FormField", () => { startAdornment={} data-testid="test-id-3" /> - + , ); cy.findByRole("button").should("be.visible"); cy.findByRole("button").should("have.class", "saltButton-disabled"); @@ -304,7 +304,7 @@ describe("GIVEN a FormField", () => { startAdornment={} data-testid="test-id-3" /> - + , ); cy.findByRole("button").should("be.visible"); cy.findByRole("button").should("have.class", "saltButton-disabled"); @@ -318,7 +318,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByLabelText("Label").focus(); @@ -330,7 +330,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByLabelText("Label").should("have.attr", "disabled"); }); @@ -340,7 +340,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByText("Label").should("have.class", "saltRadioButton-readonly"); }); @@ -352,7 +352,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByLabelText("Label").focus(); @@ -364,7 +364,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByLabelText("Label").should("have.attr", "disabled"); }); @@ -374,7 +374,7 @@ describe("GIVEN a FormField", () => { Label - + , ); cy.findByText("Label").should("have.class", "saltCheckbox-readonly"); }); diff --git a/packages/core/src/__tests__/__e2e__/grid-layout/GridLayout.cy.tsx b/packages/core/src/__tests__/__e2e__/grid-layout/GridLayout.cy.tsx index 6e3da87695..433e780b4b 100644 --- a/packages/core/src/__tests__/__e2e__/grid-layout/GridLayout.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/grid-layout/GridLayout.cy.tsx @@ -1,7 +1,7 @@ -import { composeStories } from "@storybook/react"; +import { SaltProvider } from "@salt-ds/core"; import * as gridStories from "@stories/grid-layout/grid-layout.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; -import { SaltProvider } from "@salt-ds/core"; const composedStories = composeStories(gridStories); const { Default, Nested } = composedStories; @@ -95,7 +95,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(1)); - } + }, ); it( @@ -114,7 +114,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(4)); - } + }, ); it( @@ -133,7 +133,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(6)); - } + }, ); it( @@ -152,7 +152,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(12)); - } + }, ); }); @@ -178,7 +178,7 @@ describe("GIVEN a Grid", () => { cy.mount( - + , ); cy.get(".saltGridLayout") @@ -188,7 +188,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(1)); - } + }, ); it( @@ -201,7 +201,7 @@ describe("GIVEN a Grid", () => { cy.mount( - + , ); cy.get(".saltGridLayout") @@ -211,7 +211,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(4)); - } + }, ); it( @@ -224,7 +224,7 @@ describe("GIVEN a Grid", () => { cy.mount( - + , ); cy.get(".saltGridLayout") @@ -234,7 +234,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(6)); - } + }, ); it( @@ -247,7 +247,7 @@ describe("GIVEN a Grid", () => { cy.mount( - + , ); cy.get(".saltGridLayout") @@ -257,7 +257,7 @@ describe("GIVEN a Grid", () => { cy.get(".saltGridLayout") .invoke("css", "grid-template-rows") .should("match", testElementsNumber(12)); - } + }, ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/input/Input.cy.tsx b/packages/core/src/__tests__/__e2e__/input/Input.cy.tsx index 002aa2246a..770cc5dbed 100644 --- a/packages/core/src/__tests__/__e2e__/input/Input.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/input/Input.cy.tsx @@ -1,5 +1,5 @@ -import { ChangeEvent, useState } from "react"; -import { Input, FormField, FormFieldLabel, Button } from "@salt-ds/core"; +import { Button, FormField, FormFieldLabel, Input } from "@salt-ds/core"; +import { type ChangeEvent, useState } from "react"; describe("GIVEN an Input", () => { it("SHOULD have no a11y violations on load", () => { @@ -22,7 +22,7 @@ describe("GIVEN an Input", () => { changeSpy(event); }; cy.mount( - + , ); cy.findByRole("textbox").click().clear().type("new value"); cy.get("@changeSpy").should("have.been.calledWithMatch", { @@ -75,7 +75,7 @@ describe("GIVEN an Input", () => { Test} defaultValue={"Value"} - /> + />, ); cy.findByRole("button").should("be.visible"); cy.findByRole("button").should("have.class", "saltButton"); @@ -90,7 +90,7 @@ describe("GIVEN an Input", () => { defaultValue="Value" data-testid="test-id-3" /> - + , ); cy.realPress("Tab"); @@ -108,7 +108,7 @@ describe("GIVEN an Input", () => { endAdornment={} data-testid="test-id-3" /> - + , ); cy.realPress("Tab"); @@ -125,7 +125,7 @@ describe("GIVEN an Input", () => { + />, ); cy.findByRole("textbox").should("have.attr", "required"); }); @@ -173,12 +173,12 @@ describe("GIVEN an Input", () => { Disabled form field - + , ); cy.wait(1000); cy.findByLabelText("Disabled form field").should( "have.attr", - "disabled" + "disabled", ); }); }); @@ -189,12 +189,12 @@ describe("GIVEN an Input", () => { Form Field - + , ); cy.wait(1000); cy.findByLabelText("Form Field (Required)").should( "have.attr", - "required" + "required", ); }); }); @@ -205,7 +205,7 @@ describe("GIVEN an Input", () => { Form Field - + , ); cy.wait(1000); cy.findByLabelText("Form Field *").should("have.attr", "required"); @@ -218,12 +218,12 @@ describe("GIVEN an Input", () => { Form Field - + , ); cy.wait(1000); cy.findByLabelText("Form Field (Optional)").should( "not.have.attr", - "required" + "required", ); }); }); @@ -234,12 +234,12 @@ describe("GIVEN an Input", () => { Readonly form field - + , ); cy.wait(1000); cy.findByLabelText("Readonly form field").should( "have.attr", - "readonly" + "readonly", ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/interactable-card/InteractableCard.cy.tsx b/packages/core/src/__tests__/__e2e__/interactable-card/InteractableCard.cy.tsx index 6ab6dccefa..84ac8b0360 100644 --- a/packages/core/src/__tests__/__e2e__/interactable-card/InteractableCard.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/interactable-card/InteractableCard.cy.tsx @@ -1,13 +1,13 @@ -import { composeStories } from "@storybook/react"; -import * as cardStories from "@stories/interactable-card/interactable-card.stories"; -import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; import { - InteractableCardGroupProps, - InteractableCardValue, - InteractableCardGroup, InteractableCard, + InteractableCardGroup, + type InteractableCardGroupProps, + type InteractableCardValue, } from "@salt-ds/core"; -import { useState, SyntheticEvent } from "react"; +import * as cardStories from "@stories/interactable-card/interactable-card.stories"; +import { composeStories } from "@storybook/react"; +import { type SyntheticEvent, useState } from "react"; +import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(cardStories); const { Default } = composedStories; @@ -22,7 +22,7 @@ const ControlledGroup = ({ const handleChange = ( event: SyntheticEvent, - value: InteractableCardValue + value: InteractableCardValue, ) => { setControlledValues(value); onChange?.(event, value); @@ -49,7 +49,7 @@ describe("Given an Interactable Card", () => { cy.mount(); cy.findByText("Sustainable investing products").should("be.visible"); cy.findByText( - "We have a commitment to provide a wide range of investment solutions to enable you to align your financial goals to your values." + "We have a commitment to provide a wide range of investment solutions to enable you to align your financial goals to your values.", ).should("be.visible"); }); }); @@ -61,7 +61,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.findAllByRole("checkbox").should("have.length", 3); @@ -77,7 +77,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.realPress("Tab"); @@ -93,7 +93,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { Three - + , ); cy.realPress("Tab"); @@ -116,7 +116,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { Three - + , ); cy.findByRole("button", { name: "end" }).realClick(); @@ -137,7 +137,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { Two Three - + , ); cy.realPress("Tab"); @@ -152,22 +152,22 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "false" + "false", ); }); @@ -178,35 +178,35 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="three"]').should( - "not.be.checked" + "not.be.checked", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); @@ -215,17 +215,17 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "true" + "true", ); }); @@ -234,7 +234,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { const handleChange = ( event: SyntheticEvent, - value: InteractableCardValue + value: InteractableCardValue, ) => { event.persist(); changeSpy(value); @@ -245,7 +245,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="checkbox"][data-value="two"]').realClick(); @@ -262,7 +262,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { Two Three - + , ); cy.get('[role="checkbox"][data-value="one"]') @@ -281,21 +281,21 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="three"]').should( - "not.be.checked" + "not.be.checked", ); cy.realPress("Tab"); @@ -304,21 +304,21 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.realPress("Space"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.realPress("Space"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.realPress("Tab"); @@ -330,17 +330,17 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "true" + "true", ); }); @@ -348,7 +348,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { const changeSpy = cy.stub().as("changeSpy"); const handleChange = ( event: SyntheticEvent, - value: InteractableCardValue + value: InteractableCardValue, ) => { event.persist(); changeSpy(value); @@ -359,7 +359,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.realPress("Tab"); @@ -375,20 +375,20 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.realPress("Tab"); cy.realPress("Enter"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); }); }); @@ -402,31 +402,31 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="one"]').realClick(); @@ -435,17 +435,17 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "true" + "true", ); }); @@ -454,7 +454,7 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { const changeSpy = cy.stub().as("changeSpy"); cy.mount( - + , ); cy.get('[role="checkbox"][data-value="one"]') @@ -473,15 +473,15 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="checkbox"][data-value="three"]').should( - "not.be.checked" + "not.be.checked", ); cy.realPress("Tab"); @@ -490,21 +490,21 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.realPress("Space"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.realPress("Space"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.realPress("Tab"); @@ -516,17 +516,17 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="two"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="checkbox"][data-value="three"]').should( "have.attr", "aria-checked", - "true" + "true", ); }); @@ -536,14 +536,14 @@ describe("GIVEN a multiselect InteractableCardGroup", () => { cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.realPress("Tab"); cy.realPress("Enter"); cy.get('[role="checkbox"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); }); }); @@ -557,7 +557,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.findAllByRole("radio").should("have.length", 3); @@ -573,7 +573,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.realPress("Tab"); @@ -589,7 +589,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { Three - + , ); cy.realPress("Tab"); @@ -608,7 +608,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { Three - + , ); cy.findByRole("button", { name: "end" }).realClick(); @@ -625,7 +625,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { Two Three - + , ); cy.realPress("Tab"); @@ -640,7 +640,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.realPress("Tab"); @@ -671,7 +671,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.realPress("Tab"); @@ -689,22 +689,22 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="radio"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="three"]').should( "have.attr", "aria-checked", - "false" + "false", ); }); @@ -715,42 +715,42 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="three"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="one"]').realClick(); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="radio"][data-value="two"]').realClick(); cy.get('[role="radio"][data-value="two"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); }); @@ -759,7 +759,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { const handleChange = ( event: SyntheticEvent, - value: InteractableCardValue + value: InteractableCardValue, ) => { event.persist(); changeSpy(value); @@ -770,7 +770,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { One Two Three - + , ); cy.get('[role="radio"][data-value="two"]').realClick(); @@ -787,7 +787,7 @@ describe("GIVEN a single selection InteractableCardGroup", () => { Two Three - + , ); cy.get('[role="radio"][data-value="one"]') @@ -807,38 +807,38 @@ describe("GIVEN a single selection InteractableCardGroup", () => { cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="two"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="three"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="one"]').realClick(); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); cy.get('[role="radio"][data-value="two"]').realClick(); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "false" + "false", ); cy.get('[role="radio"][data-value="one"]').realClick(); cy.get('[role="radio"][data-value="one"]').should( "have.attr", "aria-checked", - "true" + "true", ); }); diff --git a/packages/core/src/__tests__/__e2e__/link-card/LinkCard.cy.tsx b/packages/core/src/__tests__/__e2e__/link-card/LinkCard.cy.tsx index 1d9c535bf2..687a8abbed 100644 --- a/packages/core/src/__tests__/__e2e__/link-card/LinkCard.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/link-card/LinkCard.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as linkCardStories from "@stories/link-card/link-card.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(linkCardStories); @@ -12,7 +12,7 @@ describe("Given a Link Card", () => { cy.mount(); cy.findByText("Sustainable investing products").should("be.visible"); cy.findByText( - "We have a commitment to provide a wide range of investment solutions to enable you to align your financial goals to your values." + "We have a commitment to provide a wide range of investment solutions to enable you to align your financial goals to your values.", ).should("be.visible"); }); diff --git a/packages/core/src/__tests__/__e2e__/link/Link.cy.tsx b/packages/core/src/__tests__/__e2e__/link/Link.cy.tsx index 10e429f125..d200510d44 100644 --- a/packages/core/src/__tests__/__e2e__/link/Link.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/link/Link.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import { Link } from "@salt-ds/core"; +import { composeStories } from "@storybook/react"; import * as linkStories from "@stories/link/link.stories"; @@ -12,7 +12,7 @@ describe("GIVEN a link", () => { cy.mount( hello world - + , ); cy.findByTestId(testId).should("exist"); }); @@ -21,7 +21,7 @@ describe("GIVEN a link", () => { cy.mount( Action - + , ); cy.findByTestId(/TearOutIcon/i).should("exist"); @@ -37,7 +37,7 @@ describe("GIVEN a link", () => { cy.mount( Action - + , ); cy.findByTestId(/TearOutIcon/i).should("not.exist"); diff --git a/packages/core/src/__tests__/__e2e__/list-box/ListBox.cy.tsx b/packages/core/src/__tests__/__e2e__/list-box/ListBox.cy.tsx index eb094ee521..33108ba679 100644 --- a/packages/core/src/__tests__/__e2e__/list-box/ListBox.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/list-box/ListBox.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as listBoxStories from "@stories/list-box/list-box.stories"; +import { composeStories } from "@storybook/react"; const { SingleSelect, @@ -25,7 +25,7 @@ describe("GIVEN a List box", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -43,7 +43,7 @@ describe("GIVEN a List box", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alaska"]), ); }); @@ -102,7 +102,7 @@ describe("GIVEN a List box", () => { - + , ); cy.findByRole("listbox").should("have.attr", "aria-disabled", "true"); cy.realPress("Tab"); @@ -118,7 +118,7 @@ describe("GIVEN a List box", () => { cy.findByRole("option", { name: "Arizona" }).should( "have.attr", "aria-disabled", - "true" + "true", ); cy.realPress("Tab"); cy.realPress("ArrowDown"); @@ -137,30 +137,30 @@ describe("GIVEN a List box", () => { cy.findByRole("listbox").should( "have.attr", "aria-multiselectable", - "true" + "true", ); cy.findByRole("option", { name: "Alabama" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("option", { name: "Alaska" }).realClick(); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("option", { name: "Alaska" }).should( "have.attr", "aria-selected", - "true" + "true", ); }); @@ -172,24 +172,24 @@ describe("GIVEN a List box", () => { cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama"]) + Cypress.sinon.match.array.deepEquals(["Alabama"]), ); cy.findByRole("option", { name: "Alabama" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.realPress("ArrowDown"); cy.realPress("Enter"); cy.get("@selectionChange").should( "have.been.calledWith", Cypress.sinon.match.any, - Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]) + Cypress.sinon.match.array.deepEquals(["Alabama", "Alaska"]), ); cy.findByRole("option", { name: "Alaska" }).should( "have.attr", "aria-selected", - "true" + "true", ); }); diff --git a/packages/core/src/__tests__/__e2e__/menu/Menu.cy.tsx b/packages/core/src/__tests__/__e2e__/menu/Menu.cy.tsx index ae6ab38eec..0ab76790d8 100644 --- a/packages/core/src/__tests__/__e2e__/menu/Menu.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/menu/Menu.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as menuStories from "@stories/menu/menu.stories"; +import { composeStories } from "@storybook/react"; import { CustomFloatingComponentProvider, FLOATING_TEST_ID } from "../common"; const { ContextMenu, SingleLevel, MultiLevel, GroupedItems, IconWithGroups } = @@ -102,13 +102,13 @@ describe("Given a Menu", () => { cy.findByRole("menuitem", { name: "Edit styling" }).should( "have.attr", "aria-expanded", - "false" + "false", ); cy.findByRole("menuitem", { name: "Edit styling" }).realHover(); cy.findByRole("menuitem", { name: "Edit styling" }).should( "have.attr", "aria-expanded", - "true" + "true", ); cy.findByRole("menuitem", { name: "Column" }).should("exist"); cy.findByRole("menuitem", { name: "Cell" }).should("exist"); @@ -116,7 +116,7 @@ describe("Given a Menu", () => { cy.findByRole("menuitem", { name: "Column" }).realHover(); cy.findByRole("menuitem", { name: "Edit styling" }).should( "have.class", - "saltMenuItem-blurActive" + "saltMenuItem-blurActive", ); cy.findByRole("menuitem", { name: "Column" }).realClick(); cy.on("window:alert", (str) => { @@ -170,7 +170,7 @@ describe("Given a Menu", () => { cy.findByRole("button", { name: "Open Menu" }).realClick(); cy.findByRole("menuitem", { name: "Paste" }).should( "have.attr", - "aria-disabled" + "aria-disabled", ); cy.findByRole("menuitem", { name: "Paste" }).realClick(); cy.findByRole("menu").should("exist"); @@ -221,7 +221,7 @@ describe("Given a Menu", () => { cy.mount( - + , ); cy.findByTestId(FLOATING_TEST_ID).should("exist"); diff --git a/packages/core/src/__tests__/__e2e__/multiline-input/MultilineInput.cy.tsx b/packages/core/src/__tests__/__e2e__/multiline-input/MultilineInput.cy.tsx index 9c323c7b6d..8e8b832d74 100644 --- a/packages/core/src/__tests__/__e2e__/multiline-input/MultilineInput.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/multiline-input/MultilineInput.cy.tsx @@ -1,6 +1,6 @@ -import { composeStories } from "@storybook/react"; import * as multilineInputStories from "@stories/multiline-input/multiline-input.stories"; -import { ChangeEvent } from "react"; +import { composeStories } from "@storybook/react"; +import type { ChangeEvent } from "react"; const { Default, @@ -53,7 +53,7 @@ describe("GIVEN an MultilineInput", () => { - + , ); cy.findByRole("textbox").should("be.disabled"); cy.realPress("Tab"); @@ -78,7 +78,7 @@ describe("GIVEN an MultilineInput", () => { cy.findByRole("textbox").should("have.accessibleName", "Comments"); cy.findByRole("textbox").should( "have.accessibleDescription", - "Please leave feedback about your experience." + "Please leave feedback about your experience.", ); }); @@ -101,7 +101,7 @@ describe("GIVEN an MultilineInput", () => { cy.mount(); cy.findByLabelText("Comments (Optional)").should( "not.have.attr", - "required" + "required", ); }); diff --git a/packages/core/src/__tests__/__e2e__/navigation-item/NavigationItem.cy.tsx b/packages/core/src/__tests__/__e2e__/navigation-item/NavigationItem.cy.tsx index e67007d18c..f1dcc592ee 100644 --- a/packages/core/src/__tests__/__e2e__/navigation-item/NavigationItem.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/navigation-item/NavigationItem.cy.tsx @@ -7,12 +7,12 @@ describe("GIVEN a NavItem", () => { cy.mount( Navigation Item - + , ); cy.findByRole("link").should( "have.attr", "href", - "https://www.saltdesignsystem.com" + "https://www.saltdesignsystem.com", ); }); }); @@ -29,7 +29,7 @@ describe("GIVEN a NavItem", () => { cy.mount( Navigation Item - + , ); cy.findByRole("link").should("have.attr", "aria-current", "page"); }); @@ -38,7 +38,7 @@ describe("GIVEN a NavItem", () => { cy.mount( Navigation Item - + , ); cy.findByRole("link").should("not.have.attr", "aria-current"); }); @@ -57,7 +57,7 @@ describe("GIVEN a NavItem", () => { Navigation Item - + , ); cy.get('[data-testid="NotificationIcon"]').should("exist"); }); @@ -70,7 +70,7 @@ describe("GIVEN a NavItem", () => { cy.findByRole("button", { name: "expand" }).should( "have.attr", "aria-expanded", - "false" + "false", ); }); @@ -79,7 +79,7 @@ describe("GIVEN a NavItem", () => { cy.mount( Navigation Item - + , ); cy.findByRole("button", { name: "expand" }).realClick(); cy.get("@expandSpy").should("have.been.calledOnce"); @@ -90,12 +90,12 @@ describe("GIVEN a NavItem", () => { cy.mount( Navigation Item - + , ); cy.findByRole("button", { name: "expand" }).should( "have.attr", "aria-expanded", - "true" + "true", ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/overlay/Overlay.cy.tsx b/packages/core/src/__tests__/__e2e__/overlay/Overlay.cy.tsx index 7fab923fda..ff0bf0c660 100644 --- a/packages/core/src/__tests__/__e2e__/overlay/Overlay.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/overlay/Overlay.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as overlayStories from "@stories/overlay/overlay.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(overlayStories); diff --git a/packages/core/src/__tests__/__e2e__/pagination/Pagination.cy.tsx b/packages/core/src/__tests__/__e2e__/pagination/Pagination.cy.tsx index 775b054d7f..922c7ef481 100644 --- a/packages/core/src/__tests__/__e2e__/pagination/Pagination.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/pagination/Pagination.cy.tsx @@ -1,9 +1,9 @@ import { + CompactInput, + CompactPaginator, + GoToInput, Pagination, Paginator, - GoToInput, - CompactPaginator, - CompactInput, } from "@salt-ds/core"; describe("GIVEN an Pagination", () => { @@ -13,7 +13,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("navigation").should("not.exist"); @@ -27,14 +27,14 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByRole("button", { name: /Page 1/i }) .first() .should("have.attr", "aria-current", "page"); cy.findByRole("button", { name: "Previous Page" }).should( - "be.disabled" + "be.disabled", ); }); }); @@ -43,13 +43,13 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 10/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: "Next Page" }).should("be.disabled"); }); @@ -60,19 +60,19 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: /Page 4/i }).realClick(); cy.findByRole("button", { name: /Page 4/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); }); @@ -83,19 +83,19 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: /Page 2/i }).realClick(); cy.findByRole("button", { name: /Page 2/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); }); @@ -106,19 +106,19 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: /Page 5/i }).realClick(); cy.findByRole("button", { name: /Page 5/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); }); @@ -130,20 +130,20 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: "Next Page" }).realClick(); cy.findByRole("button", { name: /Page 4/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); @@ -155,20 +155,20 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: "Previous Page" }).focus(); cy.realPress("Enter"); cy.findByRole("button", { name: /Page 2/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); }); @@ -179,20 +179,20 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("button", { name: /Page 5/i }).focus(); cy.realPress("Enter"); cy.findByRole("button", { name: /Page 5/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.get("@pageChangeSpy").should("have.been.calledOnce"); }); @@ -207,7 +207,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByText("3").should("exist"); @@ -222,7 +222,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByText("3").should("exist"); @@ -237,7 +237,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByText("10").should("exist").and("have.length", 1); @@ -253,7 +253,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByText("1").should("exist"); @@ -269,7 +269,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByText("3").should("exist"); @@ -285,7 +285,7 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findByText("3").should("exist"); @@ -304,7 +304,7 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").should("have.value", "3"); @@ -323,7 +323,7 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").should("have.value", "3"); @@ -344,12 +344,12 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByRole("button", { name: /^Page.*/ }).should( "have.length", - 11 + 11, ); }); @@ -357,12 +357,12 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByRole("button", { name: /^Page.*/ }).should( "have.length", - 10 + 10, ); }); }); @@ -374,12 +374,12 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByRole("button", { name: /^Page.*/ }).should( "have.length", - 10 + 10, ); }); @@ -387,12 +387,12 @@ describe("GIVEN an Pagination", () => { cy.mount( - + , ); cy.findAllByRole("button", { name: /^Page.*/ }).should( "have.length", - 9 + 9, ); }); }); @@ -405,14 +405,14 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").then((input) => { cy.findByTestId("paginator").then((paginator) => { cy.wrap( input[0].compareDocumentPosition(paginator[0]) & - Node.DOCUMENT_POSITION_PRECEDING + Node.DOCUMENT_POSITION_PRECEDING, ).should("equal", 0); }); }); @@ -423,14 +423,14 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").then((input) => { cy.findByTestId("paginator").then((paginator) => { cy.wrap( input[0].compareDocumentPosition(paginator[0]) & - Node.DOCUMENT_POSITION_FOLLOWING + Node.DOCUMENT_POSITION_FOLLOWING, ).should("equal", 0); }); }); @@ -443,7 +443,7 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").focus(); @@ -462,13 +462,13 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("textbox").focus(); cy.realType("abc"); @@ -477,7 +477,7 @@ describe("GIVEN an Pagination", () => { cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); }); @@ -486,13 +486,13 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("button", { name: /Page 3/i }).should( "have.attr", "aria-current", - "page" + "page", ); cy.findByRole("textbox").focus(); cy.realType("5"); @@ -501,7 +501,7 @@ describe("GIVEN an Pagination", () => { cy.findByRole("button", { name: /Page 5/i }).should( "have.attr", "aria-current", - "page" + "page", ); }); @@ -510,7 +510,7 @@ describe("GIVEN an Pagination", () => { - + , ); cy.findByRole("textbox").focus(); diff --git a/packages/core/src/__tests__/__e2e__/panel/Panel.cy.tsx b/packages/core/src/__tests__/__e2e__/panel/Panel.cy.tsx index 2335b64d77..891a08b7ca 100644 --- a/packages/core/src/__tests__/__e2e__/panel/Panel.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/panel/Panel.cy.tsx @@ -20,7 +20,7 @@ describe("GIVEN a Panel", () => { cy.mount(
- + , ); cy.findByTestId("test").should("exist"); }); diff --git a/packages/core/src/__tests__/__e2e__/parent-child-layout/ParentChildLayout.cy.tsx b/packages/core/src/__tests__/__e2e__/parent-child-layout/ParentChildLayout.cy.tsx index 1e9c508237..0d3be21448 100644 --- a/packages/core/src/__tests__/__e2e__/parent-child-layout/ParentChildLayout.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/parent-child-layout/ParentChildLayout.cy.tsx @@ -1,6 +1,6 @@ -import { composeStories } from "@storybook/react"; -import * as parentChildStories from "@stories/parent-child-layout/parent-child-layout.stories"; import { SaltProvider } from "@salt-ds/core"; +import * as parentChildStories from "@stories/parent-child-layout/parent-child-layout.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(parentChildStories); @@ -26,7 +26,7 @@ describe("GIVEN a ParentChildLayout", () => { expect($div).to.contain("Parent"); expect($div).to.contain("Child"); }); - } + }, ); it( @@ -37,7 +37,7 @@ describe("GIVEN a ParentChildLayout", () => { cy.get(".saltParentChildLayout").should(($div) => { expect($div).to.contain("Child"); }); - } + }, ); }); @@ -51,14 +51,14 @@ describe("GIVEN a ParentChildLayout", () => { breakpoints={{ xs: 0, sm: 960, md: 960, lg: 1800, xl: 1920 }} > - + , ); cy.get(".saltParentChildLayout").should(($div) => { expect($div).to.contain("Parent"); expect($div).to.contain("Child"); }); - } + }, ); it( @@ -70,13 +70,13 @@ describe("GIVEN a ParentChildLayout", () => { breakpoints={{ xs: 0, sm: 960, md: 960, lg: 1800, xl: 1920 }} > - + , ); cy.get(".saltParentChildLayout").should(($div) => { expect($div).to.contain("Child"); }); - } + }, ); }); @@ -90,7 +90,7 @@ describe("GIVEN a ParentChildLayout", () => { cy.get(".saltParentChildLayout-collapsed").should(($div) => { expect($div).to.contain("Child"); }); - } + }, ); it( @@ -102,7 +102,7 @@ describe("GIVEN a ParentChildLayout", () => { cy.get(".saltParentChildLayout-collapsed").should(($div) => { expect($div).to.contain("Parent"); }); - } + }, ); }); }); diff --git a/packages/core/src/__tests__/__e2e__/pill/Pill.cy.tsx b/packages/core/src/__tests__/__e2e__/pill/Pill.cy.tsx index 9da0ca911e..9aff75816b 100644 --- a/packages/core/src/__tests__/__e2e__/pill/Pill.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/pill/Pill.cy.tsx @@ -42,7 +42,7 @@ describe("GIVEN a Pill", () => { cy.mount( Pill disabled - + , ); cy.findByRole("button").should("have.attr", "disabled"); }); diff --git a/packages/core/src/__tests__/__e2e__/progress/CircularProgress.cy.tsx b/packages/core/src/__tests__/__e2e__/progress/CircularProgress.cy.tsx index 283abe5fc6..b440c70c53 100644 --- a/packages/core/src/__tests__/__e2e__/progress/CircularProgress.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/progress/CircularProgress.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as circularProgressStories from "@stories/progress/circular-progress.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(circularProgressStories); const { Default } = composedStories; diff --git a/packages/core/src/__tests__/__e2e__/progress/LinearProgress.cy.tsx b/packages/core/src/__tests__/__e2e__/progress/LinearProgress.cy.tsx index 0521dece38..a227c7b591 100644 --- a/packages/core/src/__tests__/__e2e__/progress/LinearProgress.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/progress/LinearProgress.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as linearProgressStories from "@stories/progress/linear-progress.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(linearProgressStories); const { Default, Indeterminate } = composedStories; diff --git a/packages/core/src/__tests__/__e2e__/radio-button/RadioButtonGroup.cy.tsx b/packages/core/src/__tests__/__e2e__/radio-button/RadioButtonGroup.cy.tsx index 3c59794c87..bbc9f07a94 100644 --- a/packages/core/src/__tests__/__e2e__/radio-button/RadioButtonGroup.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/radio-button/RadioButtonGroup.cy.tsx @@ -1,14 +1,12 @@ -import { ChangeEventHandler } from "react"; import { - Checkbox, - CheckboxGroup, FormField, FormFieldLabel, RadioButton, RadioButtonGroup, } from "@salt-ds/core"; -import { composeStories } from "@storybook/react"; import * as radioButtonStories from "@stories/radio-button/radio-button.stories"; +import { composeStories } from "@storybook/react"; +import type { ChangeEventHandler } from "react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(radioButtonStories); @@ -34,9 +32,9 @@ describe("GIVEN a RadioButtonGroup component", () => { value="button one" > {radios.map((radio) => ( - + ))} - + , ); cy.findAllByRole("radio").should("have.length", 3); }); @@ -51,13 +49,13 @@ describe("GIVEN a RadioButtonGroup component", () => { > - + , ); cy.get(".saltRadioButtonGroup-horizontal").should("exist"); cy.get(".saltRadioButtonGroup-horizontal").should( "have.css", "flex-direction", - "row" + "row", ); }); }); @@ -80,7 +78,7 @@ describe("GIVEN a RadioButtonGroup uncontrolled component with children", () => label="Option (disabled)" value="option" /> - + , ); cy.findByRole("radio", { name: "Forward" }).should("be.checked"); }); @@ -98,7 +96,7 @@ describe("GIVEN a RadioButtonGroup uncontrolled component with children", () => - + , ); cy.findByRole("radio", { name: "Spot" }).should("not.be.checked"); @@ -131,7 +129,7 @@ describe("GIVEN a RadioButtonGroup uncontrolled component with children", () => - + , ); cy.findAllByRole("radio").eq(0).should("have.attr", "disabled"); @@ -146,7 +144,7 @@ describe("GIVEN a RadioButtonGroup uncontrolled component with children", () => - + , ); cy.findAllByRole("radio").eq(0).should("have.attr", "readonly"); @@ -161,7 +159,7 @@ describe("GIVEN a RadioButtonGroup uncontrolled component with children", () => - + , ); cy.findAllByRole("radio").eq(0).should("have.accessibleName", "Spot"); diff --git a/packages/core/src/__tests__/__e2e__/salt-provider/SaltProvider.cy.tsx b/packages/core/src/__tests__/__e2e__/salt-provider/SaltProvider.cy.tsx index 57bd87b7af..7ceea0b517 100644 --- a/packages/core/src/__tests__/__e2e__/salt-provider/SaltProvider.cy.tsx +++ b/packages/core/src/__tests__/__e2e__/salt-provider/SaltProvider.cy.tsx @@ -1,14 +1,14 @@ import { - ownerWindow, SaltProvider, + UNSTABLE_SaltProviderNext, + ownerWindow, useAriaAnnouncer, useDensity, useTheme, - UNSTABLE_SaltProviderNext, } from "@salt-ds/core"; -import { mount } from "cypress/react18"; import { WindowProvider } from "@salt-ds/window"; -import { ReactNode, useCallback, useState } from "react"; +import { mount } from "cypress/react18"; +import { type ReactNode, useCallback, useState } from "react"; import { createPortal } from "react-dom"; const TestComponent = ({ @@ -54,7 +54,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("div.salt-provider").should("have.length", 0); @@ -68,7 +68,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("#test-1") .should("exist") @@ -82,7 +82,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get(".salt-theme-next").should("have.length", 0); @@ -95,7 +95,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("#test-1") .should("exist") @@ -108,7 +108,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("#test-1") .should("exist") @@ -121,7 +121,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("#test-1") .should("exist") @@ -139,7 +139,7 @@ describe("Given a SaltProvider", () => { theme="custom-theme-1 custom-theme-2" > - + , ); cy.get("html") @@ -164,7 +164,7 @@ describe("Given a SaltProvider", () => { - + , ); cy.get("[aria-live]").should("have.length", 1); @@ -177,7 +177,7 @@ describe("Given a SaltProvider", () => { - + , ); cy.get("#test-1") @@ -199,7 +199,7 @@ describe("Given a SaltProvider", () => { mount( - + , ); cy.get("div.salt-provider").should("have.length", 0); @@ -222,7 +222,7 @@ describe("Given a SaltProvider", () => { applyClassesTo={"root"} > - + , ); cy.get("div.salt-provider").should("have.length", 0); @@ -245,7 +245,7 @@ describe("Given a SaltProvider", () => { applyClassesTo="scope" > - + , ); cy.get("div.salt-provider") @@ -264,18 +264,18 @@ describe("Given a SaltProvider", () => { - + , ); cy.get("@consoleSpy").should( "have.been.calledWith", - "SaltProvider can only apply CSS classes to the root if it is the root level SaltProvider." + "SaltProvider can only apply CSS classes to the root if it is the root level SaltProvider.", ); }); function FakeWindow({ children }: { children?: ReactNode }) { const [mountNode, setMountNode] = useState( - undefined + undefined, ); const handleFrameRef = useCallback((node: HTMLIFrameElement) => { @@ -283,7 +283,7 @@ describe("Given a SaltProvider", () => { }, []); return ( - ); - } + }, ); export const NewWindow = forwardRef( ( { children, title, style, ...rest }: Props, - ref: ForwardedRef + ref: ForwardedRef, ) => { const [contentRef, setContentRef] = useState( - null + null, ); const mountNode = contentRef?.contentWindow?.document?.body; @@ -111,7 +111,7 @@ export const NewWindow = forwardRef( const wrappedChildren = useMemo( () => {children}, - [children] + [children], ); return ( @@ -129,5 +129,5 @@ export const NewWindow = forwardRef( )} ); - } + }, ); diff --git a/packages/core/stories/floating-platform/custom-floating-ui-platform.stories.tsx b/packages/core/stories/floating-platform/custom-floating-ui-platform.stories.tsx index 266c1ed571..c3396615a8 100644 --- a/packages/core/stories/floating-platform/custom-floating-ui-platform.stories.tsx +++ b/packages/core/stories/floating-platform/custom-floating-ui-platform.stories.tsx @@ -1,35 +1,36 @@ -import { Meta, StoryFn } from "@storybook/react"; -import React, { +import { offset, platform } from "@floating-ui/dom"; +import type { Platform } from "@floating-ui/react"; +import type { Meta, StoryFn } from "@storybook/react"; +import type React from "react"; +import { + type ComponentPropsWithoutRef, + type Ref, forwardRef, useMemo, - ComponentPropsWithoutRef, useState, - Ref, } from "react"; import { createPortal } from "react-dom"; -import { platform, offset } from "@floating-ui/dom"; -import { Platform } from "@floating-ui/react"; import { Button, - FloatingPlatformProvider, - Tooltip, - TooltipProps, - StackLayout, - Text, - H3, - FloatingComponentProvider, - FloatingComponentProps, ComboBox, Dropdown, + type FloatingComponentProps, + FloatingComponentProvider, + FloatingPlatformProvider, + H3, Option, + StackLayout, + Text, + Tooltip, + type TooltipProps, } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import floatingCss from "./floating-platform.css"; -import { NewWindow, FloatingComponentWindow } from "./NewWindow"; +import { FloatingComponentWindow, NewWindow } from "./NewWindow"; export default { title: "Core/Floating Platform", @@ -110,25 +111,15 @@ const NewWindowTest = (props: NewWindowTestProps) => { getDimensions: platform.getDimensions, getClippingRect: () => window.document.body.getBoundingClientRect(), }), - [iframe] + [iframe], ); const FloatingUIComponent = useMemo( () => forwardRef( function FloatingUIComponent( - { - style, - open, - top, - left, - width, - height, - // eslint-disable-next-line @typescript-eslint/no-unused-vars - position, - ...rest - }, - ref + { style, open, top, left, width, height, position, ...rest }, + ref, ) { const FloatingRoot = ( /* In thise case to avoid Flash of Unstyled Text (FOUT) in the tooltip, due to being in an iframe, we are always rendering the tooltip. @@ -160,9 +151,9 @@ const NewWindowTest = (props: NewWindowTestProps) => { // In this case tooltip is portalled back to the root document this may not be the case if tooltips were opened as new windows return rootBody ? createPortal(FloatingRoot, rootBody) : null; - } + }, ), - [rootBody] + [rootBody], ); const [value, setValue] = useState(""); @@ -192,7 +183,7 @@ const NewWindowTest = (props: NewWindowTestProps) => { {source .filter((item) => - item.toLowerCase().includes(value.trim().toLowerCase()) + item.toLowerCase().includes(value.trim().toLowerCase()), ) .map((item) => (
, ); assertGridReady(); diff --git a/packages/data-grid/src/internal/CellMeasure.tsx b/packages/data-grid/src/internal/CellMeasure.tsx index a76b4af50d..7a49b06e70 100644 --- a/packages/data-grid/src/internal/CellMeasure.tsx +++ b/packages/data-grid/src/internal/CellMeasure.tsx @@ -1,7 +1,7 @@ -import { useEffect, useRef } from "react"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { useEffect, useRef } from "react"; import cellMeasureCss from "./CellMeasure.css"; diff --git a/packages/data-grid/src/internal/ColumnDropTarget.tsx b/packages/data-grid/src/internal/ColumnDropTarget.tsx index 67f1ac64ed..cead3044b6 100644 --- a/packages/data-grid/src/internal/ColumnDropTarget.tsx +++ b/packages/data-grid/src/internal/ColumnDropTarget.tsx @@ -1,7 +1,7 @@ -import { useMemo } from "react"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { useMemo } from "react"; import columDropTargetCss from "./ColumnDropTarget.css"; diff --git a/packages/data-grid/src/internal/ColumnGhost.tsx b/packages/data-grid/src/internal/ColumnGhost.tsx index 778aa3ab03..d6b0474cbc 100644 --- a/packages/data-grid/src/internal/ColumnGhost.tsx +++ b/packages/data-grid/src/internal/ColumnGhost.tsx @@ -1,14 +1,14 @@ -import { CSSProperties } from "react"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; import { makePrefixer } from "@salt-ds/core"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import type { CSSProperties } from "react"; -import { GridColumnModel, GridRowModel } from "../Grid"; +import type { GridColumnModel, GridRowModel } from "../Grid"; -import { TableColGroup } from "./TableColGroup"; import { HeaderRow } from "./HeaderRow"; import { TableBody } from "./TableBody"; -import { ColumnDragState } from "./gridHooks"; +import { TableColGroup } from "./TableColGroup"; +import type { ColumnDragState } from "./gridHooks"; import columnGhostCss from "./ColumnGhost.css"; diff --git a/packages/data-grid/src/internal/Cursor.tsx b/packages/data-grid/src/internal/Cursor.tsx index 7846df6214..69da03948d 100644 --- a/packages/data-grid/src/internal/Cursor.tsx +++ b/packages/data-grid/src/internal/Cursor.tsx @@ -1,15 +1,13 @@ import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import cursorCss from "./Cursor.css"; const withBaseName = makePrefixer("saltGridCursor"); -export interface CursorProps {} - // This is probably obsolete. Cursor is rendered using cell borders now. -export function Cursor(props: CursorProps) { +export function Cursor() { const targetWindow = useWindow(); useComponentCssInjection({ testId: "salt-cursor", diff --git a/packages/data-grid/src/internal/DefaultCellValue.tsx b/packages/data-grid/src/internal/DefaultCellValue.tsx index cb5a9aaa3a..4654578272 100644 --- a/packages/data-grid/src/internal/DefaultCellValue.tsx +++ b/packages/data-grid/src/internal/DefaultCellValue.tsx @@ -1,10 +1,10 @@ -import { ReactNode } from "react"; import { makePrefixer } from "@salt-ds/core"; -import { clsx } from "clsx"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; +import type { ReactNode } from "react"; -import { GridCellValueProps } from "../GridColumn"; +import type { GridCellValueProps } from "../GridColumn"; import defaultCellValueCss from "./DefaultCellValue.css"; diff --git a/packages/data-grid/src/internal/FakeCell.tsx b/packages/data-grid/src/internal/FakeCell.tsx index d57e508cd7..13f4dd231d 100644 --- a/packages/data-grid/src/internal/FakeCell.tsx +++ b/packages/data-grid/src/internal/FakeCell.tsx @@ -1,8 +1,8 @@ -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; -import { GridCellProps } from "../GridColumn"; import { CellFrame } from "../CellFrame"; +import type { GridCellProps } from "../GridColumn"; import fakeCellCss from "./FakeCell.css"; diff --git a/packages/data-grid/src/internal/GroupHeaderRow.tsx b/packages/data-grid/src/internal/GroupHeaderRow.tsx index 61a2b3ea0c..db2d2ce42d 100644 --- a/packages/data-grid/src/internal/GroupHeaderRow.tsx +++ b/packages/data-grid/src/internal/GroupHeaderRow.tsx @@ -1,9 +1,9 @@ import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import type { GridColumnGroupModel } from "../Grid"; import { GroupHeaderCell } from "../GroupHeaderCell"; -import { GridColumnGroupModel } from "../Grid"; import { GroupHeaderCellValue } from "../GroupHeaderCellValue"; import { FakeGroupCell } from "./FakeGroupCell"; diff --git a/packages/data-grid/src/internal/HeaderRow.tsx b/packages/data-grid/src/internal/HeaderRow.tsx index 92b579417e..a8220938c7 100644 --- a/packages/data-grid/src/internal/HeaderRow.tsx +++ b/packages/data-grid/src/internal/HeaderRow.tsx @@ -1,11 +1,11 @@ import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; -import { GridColumnModel } from "../Grid"; +import { useCursorContext } from "../CursorContext"; +import type { GridColumnModel } from "../Grid"; import { HeaderCell } from "../HeaderCell"; import { HeaderCellValue } from "../HeaderCellValue"; -import { useCursorContext } from "../CursorContext"; import { FakeHeaderCell } from "./FakeHeaderCell"; diff --git a/packages/data-grid/src/internal/LeftPart.tsx b/packages/data-grid/src/internal/LeftPart.tsx index 27351f24aa..1e0d17dd7a 100644 --- a/packages/data-grid/src/internal/LeftPart.tsx +++ b/packages/data-grid/src/internal/LeftPart.tsx @@ -1,15 +1,15 @@ -import { RefObject } from "react"; -import { clsx } from "clsx"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; import { makePrefixer } from "@salt-ds/core"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; +import type { RefObject } from "react"; -import { GridColumnModel, GridRowModel } from "../Grid"; -import { CellValidationState } from "../GridColumn"; +import type { GridColumnModel, GridRowModel } from "../Grid"; +import type { CellValidationState } from "../GridColumn"; -import { useActiveOnWheel } from "./gridHooks"; import { TableBody } from "./TableBody"; import { TableColGroup } from "./TableColGroup"; +import { useActiveOnWheel } from "./gridHooks"; import leftPartCss from "./LeftPart.css"; @@ -25,7 +25,7 @@ export interface LeftPartProps { setHoverOverRowKey: (key: string | undefined) => void; zebra?: boolean; getRowValidationStatus?: ( - row: GridRowModel + row: GridRowModel, ) => CellValidationState | undefined; } diff --git a/packages/data-grid/src/internal/MiddlePart.tsx b/packages/data-grid/src/internal/MiddlePart.tsx index 4442d8d2b6..6e59f8aa09 100644 --- a/packages/data-grid/src/internal/MiddlePart.tsx +++ b/packages/data-grid/src/internal/MiddlePart.tsx @@ -1,13 +1,13 @@ -import { RefObject } from "react"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; import { makePrefixer } from "@salt-ds/core"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import type { RefObject } from "react"; -import { GridColumnModel, GridRowModel } from "../Grid"; -import { CellValidationState } from "../GridColumn"; +import type { GridColumnModel, GridRowModel } from "../Grid"; +import type { CellValidationState } from "../GridColumn"; -import { TableColGroup } from "./TableColGroup"; import { TableBody } from "./TableBody"; +import { TableColGroup } from "./TableColGroup"; import { useActiveOnWheel } from "./gridHooks"; import middlePartCss from "./MiddlePart.css"; @@ -24,7 +24,7 @@ export interface MiddlePartProps { midGap: number; zebra?: boolean; getRowValidationStatus?: ( - row: GridRowModel + row: GridRowModel, ) => CellValidationState | undefined; } diff --git a/packages/data-grid/src/internal/RightPart.tsx b/packages/data-grid/src/internal/RightPart.tsx index 9a664abe27..fc97380cac 100644 --- a/packages/data-grid/src/internal/RightPart.tsx +++ b/packages/data-grid/src/internal/RightPart.tsx @@ -1,15 +1,15 @@ -import { RefObject } from "react"; -import { clsx } from "clsx"; import { makePrefixer } from "@salt-ds/core"; import { useComponentCssInjection } from "@salt-ds/styles"; import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; +import type { RefObject } from "react"; -import { CellValidationState } from "../GridColumn"; -import { GridColumnModel, GridRowModel } from "../Grid"; +import type { GridColumnModel, GridRowModel } from "../Grid"; +import type { CellValidationState } from "../GridColumn"; -import { useActiveOnWheel } from "./gridHooks"; -import { TableColGroup } from "./TableColGroup"; import { TableBody } from "./TableBody"; +import { TableColGroup } from "./TableColGroup"; +import { useActiveOnWheel } from "./gridHooks"; import rightPartCss from "./RightPart.css"; @@ -25,7 +25,7 @@ export interface RightPartProps { setHoverOverRowKey: (key: string | undefined) => void; zebra?: boolean; getRowValidationStatus?: ( - row: GridRowModel + row: GridRowModel, ) => CellValidationState | undefined; } diff --git a/packages/data-grid/src/internal/Scrollable.tsx b/packages/data-grid/src/internal/Scrollable.tsx index bd5062041c..ff1e0a3974 100644 --- a/packages/data-grid/src/internal/Scrollable.tsx +++ b/packages/data-grid/src/internal/Scrollable.tsx @@ -1,7 +1,7 @@ -import { RefObject, UIEventHandler, useEffect } from "react"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { type RefObject, type UIEventHandler, useEffect } from "react"; import scrollableCss from "./Scrollable.css"; diff --git a/packages/data-grid/src/internal/TableBody.tsx b/packages/data-grid/src/internal/TableBody.tsx index c860c06e08..40ba4770be 100644 --- a/packages/data-grid/src/internal/TableBody.tsx +++ b/packages/data-grid/src/internal/TableBody.tsx @@ -1,11 +1,11 @@ -import { MouseEventHandler, useCallback, useMemo } from "react"; +import { type MouseEventHandler, useCallback } from "react"; +import { useCursorContext } from "../CursorContext"; +import { useEditorContext } from "../EditorContext"; +import type { GridColumnModel, GridRowModel } from "../Grid"; +import type { CellValidationState } from "../GridColumn"; +import { useSelectionContext } from "../SelectionContext"; import { TableRow } from "./TableRow"; -import { GridColumnModel, GridRowModel } from "../Grid"; import { getRowKeyAttribute } from "./utils"; -import { useSelectionContext } from "../SelectionContext"; -import { useEditorContext } from "../EditorContext"; -import { useCursorContext } from "../CursorContext"; -import { CellValidationState } from "../GridColumn"; export interface TableBodyProps { columns: GridColumnModel[]; @@ -15,7 +15,7 @@ export interface TableBodyProps { gap?: number; zebra?: boolean; getRowValidationStatus?: ( - row: GridRowModel + row: GridRowModel, ) => CellValidationState | undefined; } @@ -48,7 +48,7 @@ export function TableBody(props: TableBodyProps) { colIdx <= maxColIdx ); }, - [selectedCellRange] + [selectedCellRange], ); const { cursorRowIdx, cursorColIdx, focusedPart, headerIsFocusable } = @@ -62,11 +62,11 @@ export function TableBody(props: TableBodyProps) { setHoverRowKey(rowKey); }; - const onMouseLeave: MouseEventHandler = (event) => { + const onMouseLeave: MouseEventHandler = () => { setHoverRowKey(undefined); }; - const onDoubleClick: MouseEventHandler = (event) => { + const onDoubleClick: MouseEventHandler = () => { startEditMode(); }; @@ -89,7 +89,7 @@ export function TableBody(props: TableBodyProps) { isSelected={isSelected} cursorColIdx={cursorIdx} gap={gap} - zebra={zebra && row.index % 2 == 0} + zebra={zebra && row.index % 2 === 0} editorColIdx={editorColIdx} isCellSelected={isCellInSelectedRange} headerIsFocusable={headerIsFocusable} diff --git a/packages/data-grid/src/internal/TableColGroup.tsx b/packages/data-grid/src/internal/TableColGroup.tsx index c8f1769883..6cda59e8f1 100644 --- a/packages/data-grid/src/internal/TableColGroup.tsx +++ b/packages/data-grid/src/internal/TableColGroup.tsx @@ -1,5 +1,5 @@ import { useMemo } from "react"; -import { GridColumnModel } from "../Grid"; +import type { GridColumnModel } from "../Grid"; export interface TableColGroupProps { columns: GridColumnModel[]; diff --git a/packages/data-grid/src/internal/TableRow.tsx b/packages/data-grid/src/internal/TableRow.tsx index 6565bd5fa6..8a5d791188 100644 --- a/packages/data-grid/src/internal/TableRow.tsx +++ b/packages/data-grid/src/internal/TableRow.tsx @@ -1,22 +1,22 @@ +import { makePrefixer } from "@salt-ds/core"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; import { Children, + type MouseEventHandler, cloneElement, isValidElement, - MouseEventHandler, } from "react"; -import { clsx } from "clsx"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; -import { makePrefixer } from "@salt-ds/core"; import { BaseCell } from "../BaseCell"; -import { GridColumnModel, GridRowModel } from "../Grid"; +import type { GridColumnModel, GridRowModel } from "../Grid"; +import type { CellValidationState } from "../GridColumn"; import { useGridContext } from "../GridContext"; -import { CellValidationState } from "../GridColumn"; import { RowValidationStatusContext } from "../RowValidationStatus"; -import { FakeCell } from "./FakeCell"; import { DefaultCellValue } from "./DefaultCellValue"; +import { FakeCell } from "./FakeCell"; import tableRowCss from "./TableRow.css"; @@ -65,7 +65,7 @@ export function TableRow(props: TableRowProps) { const grid = useGridContext(); if (!row.key) { - throw new Error(`Invalid row`); + throw new Error("Invalid row"); } const ariaRowIndex = headerIsFocusable ? row.index + 2 : row.index + 1; @@ -114,8 +114,7 @@ export function TableRow(props: TableRowProps) { ? column.info.props.getValue(row.data) : null; const isFocused = cursorColIdx === column.index; - const isSelected = - isCellSelected && isCellSelected(row.index, column.index); + const isSelected = isCellSelected?.(row.index, column.index); const validationFnArg = { row, column, diff --git a/packages/data-grid/src/internal/TopLeftPart.tsx b/packages/data-grid/src/internal/TopLeftPart.tsx index 65bd7e3d17..cc957d98eb 100644 --- a/packages/data-grid/src/internal/TopLeftPart.tsx +++ b/packages/data-grid/src/internal/TopLeftPart.tsx @@ -1,13 +1,13 @@ -import { clsx } from "clsx"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; -import { GridColumnGroupModel, GridColumnModel } from "../Grid"; +import type { GridColumnGroupModel, GridColumnModel } from "../Grid"; import { GroupHeaderRow } from "./GroupHeaderRow"; -import { TableColGroup } from "./TableColGroup"; import { HeaderRow } from "./HeaderRow"; +import { TableColGroup } from "./TableColGroup"; import { useActiveOnWheel } from "./gridHooks"; import topLeftPartCss from "./TopLeftPart.css"; diff --git a/packages/data-grid/src/internal/TopPart.tsx b/packages/data-grid/src/internal/TopPart.tsx index 4cb1001972..ee5a395527 100644 --- a/packages/data-grid/src/internal/TopPart.tsx +++ b/packages/data-grid/src/internal/TopPart.tsx @@ -1,13 +1,13 @@ -import { RefObject } from "react"; -import { clsx } from "clsx"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { clsx } from "clsx"; +import type { RefObject } from "react"; -import { GridColumnGroupModel, GridColumnModel } from "../Grid"; +import type { GridColumnGroupModel, GridColumnModel } from "../Grid"; -import { HeaderRow } from "./HeaderRow"; import { GroupHeaderRow } from "./GroupHeaderRow"; +import { HeaderRow } from "./HeaderRow"; import { TableColGroup } from "./TableColGroup"; import { useActiveOnWheel } from "./gridHooks"; diff --git a/packages/data-grid/src/internal/TopRightPart.tsx b/packages/data-grid/src/internal/TopRightPart.tsx index fbe1beca42..31138a408a 100644 --- a/packages/data-grid/src/internal/TopRightPart.tsx +++ b/packages/data-grid/src/internal/TopRightPart.tsx @@ -1,11 +1,11 @@ -import { TableColGroup } from "./TableColGroup"; -import { HeaderRow } from "./HeaderRow"; import { makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import { clsx } from "clsx"; +import { HeaderRow } from "./HeaderRow"; +import { TableColGroup } from "./TableColGroup"; -import { GridColumnGroupModel, GridColumnModel } from "../Grid"; +import type { GridColumnGroupModel, GridColumnModel } from "../Grid"; import { GroupHeaderRow } from "./GroupHeaderRow"; import { useActiveOnWheel } from "./gridHooks"; diff --git a/packages/data-grid/src/internal/gridHooks.tsx b/packages/data-grid/src/internal/gridHooks.tsx index 9ad264ac57..a1166072f6 100644 --- a/packages/data-grid/src/internal/gridHooks.tsx +++ b/packages/data-grid/src/internal/gridHooks.tsx @@ -1,17 +1,22 @@ -import React, { +import { useControlled } from "@salt-ds/core"; +import type React from "react"; +import { Children, - FocusEventHandler, + type FocusEventHandler, + type MouseEventHandler, + type ReactNode, + type RefObject, isValidElement, - MouseEventHandler, - ReactNode, - RefObject, useCallback, useEffect, useMemo, useRef, useState, } from "react"; -import { +import type { CellEditorInfo } from "../CellEditor"; +import type { ColumnGroupProps } from "../ColumnGroup"; +import type { FocusedPart } from "../CursorContext"; +import type { GridCellSelectionMode, GridColumnGroupModel, GridColumnModel, @@ -20,19 +25,15 @@ import { GridRowSelectionMode, RowKeyGetter, } from "../Grid"; -import { ColumnGroupProps } from "../ColumnGroup"; +import type { GridColumnInfo, GridColumnPin } from "../GridColumn"; +import type { GridContext } from "../GridContext"; import { NumberRange } from "../NumberRange"; -import { GridColumnInfo, GridColumnPin } from "../GridColumn"; import { getAttribute, getCellPosition, makeMapAdder, makeMapDeleter, } from "./utils"; -import { GridContext } from "../GridContext"; -import { CellEditorInfo } from "../CellEditor"; -import { useControlled } from "@salt-ds/core"; -import { FocusedPart } from "../CursorContext"; // Attaches active onWheel event to a table element // Grid needs to prevent default onWheel event handling for situations when a @@ -81,13 +82,13 @@ function sumRangeWidth(columns: GridColumnModel[], range: NumberRange) { // Sum width of the given range of columns wrapped in useMemo. export function useSumRangeWidth( columns: GridColumnModel[], - range: NumberRange + range: NumberRange, ) { return useMemo(() => sumRangeWidth(columns, range), [columns, range]); } // Range memoization using Rng.equals comparator. -function useMemoRng(fn: () => NumberRange, deps: any[]) { +function useMemoRng(fn: () => NumberRange, deps: unknown[]) { const prevRef = useRef(NumberRange.empty); const range = useMemo(fn, deps); if (!NumberRange.equals(prevRef.current, range)) { @@ -100,7 +101,7 @@ function useMemoRng(fn: () => NumberRange, deps: any[]) { export function useBodyVisibleColumnRange( midColumns: GridColumnModel[], scrollLeft: number, - clientMidWidth: number + clientMidWidth: number, ): NumberRange { return useMemoRng(() => { if (clientMidWidth === 0 || midColumns.length === 0) { @@ -138,11 +139,11 @@ export function useBodyVisibleColumnRange( export function useClientMidWidth( clientWidth: number, leftWidth: number, - rightWidth: number + rightWidth: number, ) { return useMemo( () => clientWidth - leftWidth - rightWidth, - [clientWidth, leftWidth, rightWidth] + [clientWidth, leftWidth, rightWidth], ); } @@ -150,11 +151,11 @@ export function useClientMidWidth( export function useClientMidHeight( clientHeight: number, topHeight: number, - botHeight: number + botHeight: number, ) { return useMemo( () => clientHeight - topHeight - botHeight, - [clientHeight, topHeight, botHeight] + [clientHeight, topHeight, botHeight], ); } @@ -162,7 +163,7 @@ export function useClientMidHeight( export function useBodyVisibleAreaTop( rowHeight: number, visibleRowRange: NumberRange, - topHeight: number + topHeight: number, ) { return useMemo(() => { let top = topHeight + visibleRowRange.start * rowHeight; @@ -178,7 +179,7 @@ export function useVisibleRowRange( scrollTop: number, clientMidHeight: number, rowHeight: number, - rowCount: number + rowCount: number, ) { return useMemoRng(() => { if (rowHeight < 1) { @@ -197,7 +198,7 @@ export function useVisibleRowRange( } const end = Math.min( rowCount, - Math.max(start, Math.ceil(endPos / rowHeight)) + Math.max(start, Math.ceil(endPos / rowHeight)), ); // Scroll Top not returning to 0 after pagination. Guard to ensure issues with ScrollTop throw error @@ -211,7 +212,7 @@ export function useVisibleRowRange( export function useColumnRange( columns: GridColumnModel[], - range: NumberRange + range: NumberRange, ): GridColumnModel[] { return useMemo(() => columns.slice(range.start, range.end), [columns, range]); } @@ -219,7 +220,7 @@ export function useColumnRange( // Total width of the columns scrolled out to the left of the visible area. export function useLeftScrolledOutWidth( midColumns: GridColumnModel[], - bodyVisibleColumnRange: NumberRange + bodyVisibleColumnRange: NumberRange, ) { return useMemo(() => { let w = 0; @@ -234,7 +235,7 @@ export function useLeftScrolledOutWidth( export function useRowIdxByKey(rowKeyGetter: RowKeyGetter, rowData: T[]) { return useMemo(() => { return new Map( - rowData.map((r, i) => [rowKeyGetter(r, i), i]) + rowData.map((r, i) => [rowKeyGetter(r, i), i]), ); }, [rowData, rowKeyGetter]); } @@ -245,7 +246,7 @@ export type SetState = (v: T | ((p: T) => T)) => void; export function useRowModels( getKey: RowKeyGetter, rowData: T[], - visibleRowRange: NumberRange + visibleRowRange: NumberRange, ) { return useMemo(() => { const rows: GridRowModel[] = []; @@ -260,7 +261,7 @@ export function useRowModels( // Creates column group models. export const useColumnGroups = ( grpPs: ColumnGroupProps[], - startIdx: number + startIdx: number, ): GridColumnGroupModel[] => useMemo( () => @@ -284,7 +285,7 @@ export const useColumnGroups = ( rowSeparator: "regular", }; }), - [grpPs, startIdx] + [grpPs, startIdx], ); // Visible range of column groups. @@ -292,7 +293,7 @@ export function useVisibleColumnGroupRange( bodyVisColRng: NumberRange, midCols: GridColumnModel[], midGrpByColId: Map, - leftGrpCount: number + leftGrpCount: number, ): NumberRange { return useMemoRng(() => { if (bodyVisColRng.length === 0) { @@ -307,7 +308,7 @@ export function useVisibleColumnGroupRange( } return new NumberRange( firstVisibleGroup.index - leftGrpCount, - lastVisibleGroup.index + 1 - leftGrpCount + lastVisibleGroup.index + 1 - leftGrpCount, ); }, [bodyVisColRng, midCols, midGrpByColId, leftGrpCount]); } @@ -321,7 +322,7 @@ export function useHeadVisibleColumnRange( bodyVisColRng: NumberRange, visColGrps: GridColumnGroupModel[], midColsById: Map>, - leftColCount: number + leftColCount: number, ) { return useMemoRng(() => { if (visColGrps.length === 0) { @@ -338,7 +339,7 @@ export function useHeadVisibleColumnRange( } return new NumberRange( firstColIdx - leftColCount, - lastColIdx + 1 - leftColCount + lastColIdx + 1 - leftColCount, ); }, [bodyVisColRng, visColGrps, midColsById, leftColCount]); } @@ -347,7 +348,7 @@ export function useHeadVisibleColumnRange( export function useCols( colInfos: GridColumnInfo[], startIdx: number, - groups: GridColumnGroupModel[] + groups: GridColumnGroupModel[], ): GridColumnModel[] { return useMemo(() => { const edgeColIds = new Set(); @@ -371,7 +372,7 @@ export function useScrollToCell( midCols: GridColumnModel[], bodyVisColRng: NumberRange, clientMidWidth: number, - scroll: (left?: number, top?: number, source?: "user" | "table") => void + scroll: (left?: number, top?: number, source?: "user" | "table") => void, ) { return useCallback( (part: FocusedPart, rowIdx: number, colIdx: number) => { @@ -387,7 +388,7 @@ export function useScrollToCell( const extraBorder = rowIdx > 0 ? 1 : 0; y = Math.max( 0, - rowHeight * rowIdx + extraBorder - clientMidHeight + rowHeight + rowHeight * rowIdx + extraBorder - clientMidHeight + rowHeight, ); } const isMidCol = @@ -422,7 +423,7 @@ export function useScrollToCell( bodyVisColRng, clientMidWidth, scroll, - ] + ], ); } @@ -432,7 +433,7 @@ const MIN_COLUMN_WIDTH = 10; // TODO There might be some problems if column is removed while it is being resized export function useColumnResize( cols: GridColumnModel[], - resizeColumn: (columnIndex: number, width: number) => void + resizeColumn: (columnIndex: number, width: number) => void, ) { const columnResizeDataRef = useRef<{ startX: number; @@ -454,7 +455,7 @@ export function useColumnResize( const { startX, columnIndex, initialColumnWidth, minWidth } = columnResizeDataRef.current!; const shift = x - startX; - let width = Math.max(minWidth, initialColumnWidth + shift); + const width = Math.max(minWidth, initialColumnWidth + shift); columnResizeDataRef.current!.resizeColumn(columnIndex, Math.round(width)); }, []); @@ -463,10 +464,10 @@ export function useColumnResize( const targetElement = event.target as HTMLElement; const [columnIndexAttribute, thElement] = getAttribute( targetElement, - "data-column-index" + "data-column-index", ); - const columnIndex = parseInt(columnIndexAttribute, 10); + const columnIndex = Number.parseInt(columnIndexAttribute, 10); document.addEventListener("mouseup", onMouseUp); document.addEventListener("mousemove", onMouseMove); @@ -488,14 +489,14 @@ export function useColumnResize( event.preventDefault(); }, - [resizeColumn] + [resizeColumn], ); } // Map values to array. export function useFlatten(map: Map): T[] { return useMemo(() => { - const entries = [...map.entries()].filter(([index, value]) => !!value); + const entries = [...map.entries()].filter(([, value]) => !!value); entries.sort((a, b) => a[0] - b[0]); return entries.map((x) => x[1]); }, [map]); @@ -523,7 +524,7 @@ export function useColumnRegistry(children: ReactNode) { const [midGrpMap, setMidGrpMap] = useGrpMap(); const [editorMap, setEditorMap] = useState>>( - new Map() + new Map(), ); const leftColInfos = useFlatten(leftColMap); @@ -538,7 +539,7 @@ export function useColumnRegistry(children: ReactNode) { const midGroups = useColumnGroups(midGrpPs, leftGroups.length); const rightGroups = useColumnGroups( rightGrpPs, - leftGroups.length + midGroups.length + leftGroups.length + midGroups.length, ); if (leftGroups.length > 0) { last(leftGroups).columnSeparator = "pinned"; @@ -551,12 +552,12 @@ export function useColumnRegistry(children: ReactNode) { const midCols: GridColumnModel[] = useCols( midColInfos, leftCols.length, - midGroups + midGroups, ); const rightCols: GridColumnModel[] = useCols( rightColInfos, leftCols.length + midCols.length, - rightGroups + rightGroups, ); if (leftCols.length > 0) { last(leftCols).separator = "pinned"; @@ -594,7 +595,7 @@ export function useColumnRegistry(children: ReactNode) { console.log( `Known ids: ${Array.from(chPosById.current.keys()) .map((x) => `"${x}"`) - .join(", ")}` + .join(", ")}`, ); throw new Error(`Unknown child id: "${id}"`); } @@ -605,8 +606,8 @@ export function useColumnRegistry(children: ReactNode) { pinned === "left" ? setLeftColMap : pinned === "right" - ? setRightColMap - : setMidColMap; + ? setRightColMap + : setMidColMap; const onColumnAdded = useCallback((columnInfo: GridColumnInfo) => { // console.log( @@ -619,19 +620,19 @@ export function useColumnRegistry(children: ReactNode) { const onColumnRemoved = useCallback( (index: number, columnInfo: GridColumnInfo) => { - const { id, pinned } = columnInfo.props; + const { pinned } = columnInfo.props; getColMapSet(pinned)(makeMapDeleter(index)); // console.log(`Column removed: "${columnInfo.props.id}"`); }, - [] + [], ); const getGrpMapSet = (pinned?: GridColumnPin) => pinned === "left" ? setLeftGrpMap : pinned === "right" - ? setRightGrpMap - : setMidGrpMap; + ? setRightGrpMap + : setMidGrpMap; const onColumnGroupAdded = useCallback((colGroupProps: ColumnGroupProps) => { const { id, pinned } = colGroupProps; @@ -641,11 +642,11 @@ export function useColumnRegistry(children: ReactNode) { const onColumnGroupRemoved = useCallback( (index: number, colGroupProps: ColumnGroupProps) => { - const { id, pinned } = colGroupProps; + const { pinned } = colGroupProps; getGrpMapSet(pinned)(makeMapDeleter(index)); // console.log(`Group removed: "${colGroupProps.name}"`); }, - [] + [], ); const onEditorAdded = useCallback((info: CellEditorInfo) => { @@ -662,7 +663,7 @@ export function useColumnRegistry(children: ReactNode) { const getEditor = useCallback( (columnId: string) => editorMap.get(columnId), - [editorMap] + [editorMap], ); const contextValue: GridContext = useMemo( @@ -685,7 +686,7 @@ export function useColumnRegistry(children: ReactNode) { onEditorAdded, onEditorRemoved, getEditor, - ] + ], ); return { @@ -720,17 +721,17 @@ export function useRowSelection( defaultSelectedRowIdxs?: number[], selectedRowIdxs?: number[], rowSelectionMode?: GridRowSelectionMode, - onRowSelected?: (selectedRowIdxs: number[]) => void + onRowSelected?: (selectedRowIdxs: number[]) => void, ) { const selectedRowIdxsProp = useMemo(() => { - if (selectedRowIdxs == undefined) { + if (selectedRowIdxs === undefined) { return undefined; } return new Set(selectedRowIdxs); }, [selectedRowIdxs]); const defaultSelectedRowIdxsProp = useMemo(() => { - if (defaultSelectedRowIdxs == undefined) { + if (defaultSelectedRowIdxs === undefined) { return new Set([]); } return new Set(defaultSelectedRowIdxs); @@ -744,7 +745,7 @@ export function useRowSelection( }); const [lastSelRowIdx, setLastSelRowIdx] = useState( - undefined + undefined, ); useEffect(() => { @@ -826,7 +827,7 @@ export function useRowSelection( rowData, rowKeyGetter, onRowSelected, - ] + ], ); const isAllSelected = selRowIdxs.size === rowData.length; @@ -862,7 +863,7 @@ export function useRowSelection( }); } catch (e) {} }, - [selectRows, rowSelectionMode] + [selectRows, rowSelectionMode], ); return { @@ -902,7 +903,7 @@ export function useColumnMove( cols: GridColumnModel[], scrollLeft: number, clientMidWidth: number, - onColumnMove: GridColumnMoveHandler + onColumnMove: GridColumnMoveHandler, ) { const moveRef = useRef<{ unsubscribe: () => void; @@ -920,24 +921,21 @@ export function useColumnMove( const activeTargetRef = useRef(undefined); const [dragState, setDragState] = useState( - undefined + undefined, ); const columnDragStart = useCallback( (columnIndex: number, x: number, y: number) => { setDragState({ columnIndex, x, y }); }, - [setDragState] + [], ); - const columnDrag = useCallback( - (x: number, y: number) => { - setDragState((old) => { - return { ...old!, x, y }; - }); - }, - [setDragState] - ); + const columnDrag = useCallback((x: number, y: number) => { + setDragState((old) => { + return { ...old!, x, y }; + }); + }, []); const columnDrop = useCallback(() => { const toIndex = activeTargetRef.current?.columnIndex; @@ -990,7 +988,7 @@ export function useColumnMove( columnDrag(x, y); } }, - [columnDrag] + [columnDrag], ); const onColumnMoveHandleMouseDown: MouseEventHandler = @@ -998,18 +996,22 @@ export function useColumnMove( (event) => { const [columnIndexAttribute, thElement] = getAttribute( event.target as HTMLElement, - "data-column-index" + "data-column-index", ); - const rootElement = rootRef.current!; + const rootElement = rootRef.current; + + if (!rootElement) { + return; + } document.addEventListener("mouseup", onMouseUp); document.addEventListener("mousemove", onMouseMove); - const columnIndex = parseInt(columnIndexAttribute, 10); + const columnIndex = Number.parseInt(columnIndexAttribute, 10); const columnId = cols[columnIndex].info.props.id; const thRect = thElement.getBoundingClientRect(); - const rootRect = rootElement!.getBoundingClientRect(); + const rootRect = rootElement.getBoundingClientRect(); const x = thRect.x - rootRect.x; const y = thRect.y - rootRect.y; @@ -1031,22 +1033,22 @@ export function useColumnMove( event.preventDefault(); }, - [columnDragStart, cols] + [columnDragStart, cols], ); const onColumnMoveCancel = useCallback(() => { setDragState(undefined); moveRef.current?.unsubscribe(); moveRef.current = undefined; - }, [setDragState]); + }, []); const targets = useMemo(() => { if (!dragState) { return undefined; } - let ts: Target[] = []; + const ts: Target[] = []; let x = 0; - leftCols.forEach((c, i) => { + leftCols.forEach((c) => { ts.push({ columnIndex: c.index, x }); x += c.info.width; }); @@ -1067,7 +1069,7 @@ export function useColumnMove( } if (rightCols.length > 0) { x += w; - rightCols.forEach((c, i) => { + rightCols.forEach((c) => { ts.push({ columnIndex: c.index, x }); x += c.info.width; }); @@ -1125,7 +1127,7 @@ export function cellPositionEquals(a: CellPosition, b: CellPosition) { export function cellRangeEquals( a: CellRange | undefined, - b: CellRange | undefined + b: CellRange | undefined, ) { if (!a) { return !b; @@ -1179,7 +1181,7 @@ export function useRangeSelection(cellSelectionMode?: GridCellSelectionMode) { const onMouseUp = useCallback((event: MouseEvent) => { if (!mouseSelectionRef.current) { - throw new Error(`useRangeSelection state is not initialized`); + throw new Error("useRangeSelection state is not initialized"); } mouseSelectionRef.current.unsubscribe(); mouseSelectionRef.current = undefined; @@ -1206,7 +1208,7 @@ export function useRangeSelection(cellSelectionMode?: GridCellSelectionMode) { setSelectedCellRange({ start: pos, end: pos }); } catch (exc) {} }, - [cellSelectionMode] + [cellSelectionMode], ); const onKeyboardRangeSelectionStart = useCallback((pos: CellPosition) => { diff --git a/packages/data-grid/src/internal/utils.ts b/packages/data-grid/src/internal/utils.ts index 1a90c14043..7e0530ee11 100644 --- a/packages/data-grid/src/internal/utils.ts +++ b/packages/data-grid/src/internal/utils.ts @@ -1,8 +1,8 @@ -import { FocusedPart } from "../CursorContext"; +import type { FocusedPart } from "../CursorContext"; export function getAttribute( element: HTMLElement, - attributeName: string + attributeName: string, ): [string, HTMLElement] { if (!element || !element.hasAttribute) { throw new Error(`Attribute "${attributeName}" not found`); @@ -15,7 +15,7 @@ export function getAttribute( export function getRowIndexAttribute(element: HTMLElement): number { const [attribute] = getAttribute(element, "data-row-index"); - return parseInt(attribute, 10); + return Number.parseInt(attribute, 10); } export function getRowKeyAttribute(element: HTMLElement): string { @@ -30,23 +30,23 @@ export function getFocusablePosition(element: HTMLElement): { } { const [columnIndexAttr, cellElement] = getAttribute( element, - "data-column-index" + "data-column-index", ); - const columnIndex = parseInt(columnIndexAttr, 10); + const columnIndex = Number.parseInt(columnIndexAttr, 10); const role = cellElement.getAttribute("role"); if (role === "columnheader") { return { part: "header", columnIndex, rowIndex: 0 }; } const [rowIndexAttr] = getAttribute(element, "data-row-index"); - const rowIndex = parseInt(rowIndexAttr, 10); + const rowIndex = Number.parseInt(rowIndexAttr, 10); return { part: "body", rowIndex, columnIndex }; } export function getCellPosition(element: HTMLElement): [number, number] { const [rowIndexAttr] = getAttribute(element, "data-row-index"); const [columnIndexAttr] = getAttribute(element, "data-column-index"); - const rowIndex = parseInt(rowIndexAttr, 10); - const columnIndex = parseInt(columnIndexAttr, 10); + const rowIndex = Number.parseInt(rowIndexAttr, 10); + const columnIndex = Number.parseInt(columnIndexAttr, 10); return [rowIndex, columnIndex]; } @@ -73,7 +73,7 @@ export const makeMapDeleter = deleteMapItem(old, k); export const clamp = (x: number | undefined, min: number, max: number) => { - if (x == undefined) { + if (x === undefined) { x = 0; } if (x < min) { diff --git a/packages/data-grid/stories/LazyStoryCanvas.tsx b/packages/data-grid/stories/LazyStoryCanvas.tsx index 6a017287a7..130f455378 100644 --- a/packages/data-grid/stories/LazyStoryCanvas.tsx +++ b/packages/data-grid/stories/LazyStoryCanvas.tsx @@ -1,4 +1,4 @@ -import { PropsWithChildren, useEffect, useRef, useState } from "react"; +import { type PropsWithChildren, useEffect, useRef, useState } from "react"; export const LazyStoryCanvas = ({ children }: PropsWithChildren) => { const ref = useRef(null); diff --git a/packages/data-grid/stories/dummyData.ts b/packages/data-grid/stories/dummyData.ts index b49a76288a..7e8870c6bc 100644 --- a/packages/data-grid/stories/dummyData.ts +++ b/packages/data-grid/stories/dummyData.ts @@ -1,6 +1,6 @@ -import { factory, primaryKey } from "@mswjs/data"; import { faker } from "@faker-js/faker"; -import { RowKeyGetter } from "../src"; +import { factory, primaryKey } from "@mswjs/data"; +import type { RowKeyGetter } from "../src"; faker.seed(5417); @@ -54,7 +54,7 @@ export const db = factory({ id: primaryKey(() => faker.string.uuid()), name: () => `${faker.helpers.arrayElement(fruits)} ${faker.helpers.arrayElement( - types + types, )} ${faker.helpers.arrayElement(suffixes)}`, location: () => faker.helpers.arrayElement(allLocations), cohort: () => faker.helpers.arrayElement(cohorts), diff --git a/packages/data-grid/stories/grid-cellCustomization.stories.tsx b/packages/data-grid/stories/grid-cellCustomization.stories.tsx index 4c75c1af0b..8329458ddf 100644 --- a/packages/data-grid/stories/grid-cellCustomization.stories.tsx +++ b/packages/data-grid/stories/grid-cellCustomization.stories.tsx @@ -1,13 +1,13 @@ +import { LinearProgress } from "@salt-ds/core"; import { useCallback, useMemo } from "react"; import { Grid, - GridCellValueProps, + type GridCellValueProps, GridColumn, RowSelectionCheckboxColumn, } from "../src"; -import { LinearProgress } from "@salt-ds/core"; import "./grid.stories.css"; -import { StoryFn } from "@storybook/react"; +import type { StoryFn } from "@storybook/react"; export default { title: "Lab/Data Grid", @@ -55,7 +55,7 @@ const PercentageCellValue = (props: GridCellValueProps) => { ); }; -const CellCustomizationTemplate: StoryFn<{}> = () => { +const CellCustomizationTemplate: StoryFn = () => { const rowData: CurrencyPairRow[] = useMemo(() => { const currencies = ["AUD", "USD", "SGD", "GBP", "HKD", "NZD", "EUR"]; const result: CurrencyPairRow[] = []; @@ -77,7 +77,7 @@ const CellCustomizationTemplate: StoryFn<{}> = () => { const rowKeyGetter = useCallback( (row: CurrencyPairRow) => row.currencyPair, - [] + [], ); return ( diff --git a/packages/data-grid/stories/grid-cellValidation.stories.tsx b/packages/data-grid/stories/grid-cellValidation.stories.tsx index 6211dd0215..6e19616baa 100644 --- a/packages/data-grid/stories/grid-cellValidation.stories.tsx +++ b/packages/data-grid/stories/grid-cellValidation.stories.tsx @@ -1,19 +1,19 @@ +import { faker } from "@faker-js/faker"; +import type { StoryFn } from "@storybook/react"; +import { useCallback, useState } from "react"; +import * as yup from "yup"; import { CellEditor, + type CellValidationState, DropdownCellEditor, Grid, GridColumn, + type GridColumnProps, NumericCellEditor, NumericColumn, - TextCellEditor, - CellValidationState, - GridColumnProps, RowSelectionCheckboxColumn, + TextCellEditor, } from "../src"; -import { StoryFn } from "@storybook/react"; -import * as yup from "yup"; -import { faker } from "@faker-js/faker"; -import { useCallback, useState } from "react"; import "./grid.stories.css"; import { RowValidationStatusColumn } from "../src/RowValidationStatus"; @@ -37,7 +37,7 @@ interface RowExample { } const discountMap: Map = new Map( - discountOptions.map((n, i) => [n, discountValues[i]]) + discountOptions.map((n, i) => [n, discountValues[i]]), ); const formatter = new Intl.NumberFormat("en-US", { style: "currency", @@ -109,7 +109,7 @@ const useExampleDataSource = () => { return x; }); }, - [setRows] + [], ); return { rows, setValue }; @@ -125,7 +125,7 @@ const validationSchema = yup.object({ type EditableFieldKeys = "name" | "price" | "amount" | "total" | "discount"; type CreateValueSetter = ( - name: EditableFieldKeys + name: EditableFieldKeys, ) => GridColumnProps["onChange"]; export const CellValidation: StoryFn = () => { @@ -150,7 +150,7 @@ export const CellValidation: StoryFn = () => { }; } return {}; - }) + }), ); const setNumberValue: CreateValueSetter = (name) => (_, index, value) => { diff --git a/packages/data-grid/stories/grid-columnGroups.stories.tsx b/packages/data-grid/stories/grid-columnGroups.stories.tsx index a550901e24..fb9b52053c 100644 --- a/packages/data-grid/stories/grid-columnGroups.stories.tsx +++ b/packages/data-grid/stories/grid-columnGroups.stories.tsx @@ -1,7 +1,7 @@ import { ColumnGroup, Grid, GridColumn, GridProps } from "../src"; import { DummyRow, dummyRowKeyGetter, rowData } from "./dummyData"; import "./grid.stories.css"; -import { StoryFn } from "@storybook/react"; +import type { StoryFn } from "@storybook/react"; export default { title: "Lab/Data Grid", @@ -9,7 +9,7 @@ export default { argTypes: {}, }; -const ColumnGroupsTemplate: StoryFn<{}> = () => { +const ColumnGroupsTemplate: StoryFn = () => { return ( = (row: GridCssVar) => row.name; -const CssVariablesTemplate: StoryFn<{}> = () => { +const CssVariablesTemplate: StoryFn = () => { const [separators, setSeparators] = useState(false); const [pinnedSeparators, setPinnedSeparators] = useState(true); const [variant, setVariant] = useState("primary"); @@ -229,9 +234,9 @@ const CssVariablesTemplate: StoryFn<{}> = () => { const onUndo = () => { const nextChanges = [...changes]; - const change = nextChanges.pop()!; + const change = nextChanges.pop(); setChanges(nextChanges); - change(); + change?.(); }; const onReset = () => { @@ -289,13 +294,13 @@ const CssVariablesTemplate: StoryFn<{}> = () => { disabled={changes.length === 0} > - {` Undo`} + {" Undo"} diff --git a/packages/data-grid/stories/grid-editableCells.stories.tsx b/packages/data-grid/stories/grid-editableCells.stories.tsx index bd8aa093b5..0232591986 100644 --- a/packages/data-grid/stories/grid-editableCells.stories.tsx +++ b/packages/data-grid/stories/grid-editableCells.stories.tsx @@ -1,3 +1,5 @@ +import type { StoryFn } from "@storybook/react"; +import { useCallback, useState } from "react"; import { CellEditor, DropdownCellEditor, @@ -7,9 +9,7 @@ import { NumericColumn, TextCellEditor, } from "../src"; -import { StoryFn } from "@storybook/react"; import { randomInt, randomNumber, randomText } from "./utils"; -import { useCallback, useState } from "react"; import "./grid.stories.css"; export default { @@ -30,7 +30,7 @@ interface RowExample { } const discountMap: Map = new Map( - discountOptions.map((n, i) => [n, discountValues[i]]) + discountOptions.map((n, i) => [n, discountValues[i]]), ); const getTotal = (r: RowExample) => @@ -46,7 +46,7 @@ const useExampleDataSource = () => { price: randomNumber(10, 100, 2), discount: "-", } as RowExample; - }) + }), ); const setName = useCallback( @@ -57,7 +57,7 @@ const useExampleDataSource = () => { return x; }); }, - [setRows] + [], ); const setPrice = useCallback( @@ -68,7 +68,7 @@ const useExampleDataSource = () => { return x; }); }, - [setRows] + [], ); const setAmount = useCallback( @@ -79,7 +79,7 @@ const useExampleDataSource = () => { return x; }); }, - [setRows] + [], ); const setDiscount = useCallback( @@ -90,13 +90,13 @@ const useExampleDataSource = () => { return x; }); }, - [setRows] + [], ); return { rows, setAmount, setName, setDiscount, setPrice }; }; -const EditableCellsTemplate: StoryFn<{}> = () => { +const EditableCellsTemplate: StoryFn = () => { const { setPrice, setDiscount, rows, setAmount, setName } = useExampleDataSource(); diff --git a/packages/data-grid/stories/grid-headerCustomization.stories.tsx b/packages/data-grid/stories/grid-headerCustomization.stories.tsx index 8c715ee6b5..db566031f5 100644 --- a/packages/data-grid/stories/grid-headerCustomization.stories.tsx +++ b/packages/data-grid/stories/grid-headerCustomization.stories.tsx @@ -1,6 +1,14 @@ import { + FlexItem, + FlexLayout, + ToggleButton, + ToggleButtonGroup, +} from "@salt-ds/core"; +import { ArrowDownIcon, ArrowUpIcon, HomeIcon, MenuIcon } from "@salt-ds/icons"; +import { MenuButton } from "@salt-ds/lab"; +import { + type SyntheticEvent, createContext, - SyntheticEvent, useCallback, useContext, useMemo, @@ -8,24 +16,16 @@ import { } from "react"; import { ColumnGroup, - ColumnGroupCellValueProps, + type ColumnGroupCellValueProps, Grid, - GridCellValueProps, + type GridCellValueProps, GridColumn, - GridHeaderValueProps, + type GridHeaderValueProps, NumericColumn, } from "../src"; -import { MenuButton } from "@salt-ds/lab"; -import { - FlexItem, - FlexLayout, - ToggleButton, - ToggleButtonGroup, -} from "@salt-ds/core"; -import { ArrowDownIcon, ArrowUpIcon, MenuIcon, HomeIcon } from "@salt-ds/icons"; import { randomInt, randomNumber } from "./utils"; import "./grid.stories.css"; -import { StoryFn } from "@storybook/react"; +import type { StoryFn } from "@storybook/react"; export default { title: "Lab/Data Grid", @@ -175,7 +175,7 @@ const SummaryCellValue = (props: GridCellValueProps) => { * An example of how to use the `headerValueComponent` property of columns and * column groups. * */ -const HeaderCustomizationTemplate: StoryFn<{}> = () => { +const HeaderCustomizationTemplate: StoryFn = () => { const rowData: ExampleRow[] = useMemo(() => { const names = [ "Espresso", @@ -242,7 +242,7 @@ const HeaderCustomizationTemplate: StoryFn<{}> = () => { setSortBy, sortOrder, setSortOrder, - ] + ], ); const rowKeyGetter = useCallback((row: ExampleRow) => row.name, []); diff --git a/packages/data-grid/stories/grid-pagination.stories.tsx b/packages/data-grid/stories/grid-pagination.stories.tsx index 4ebd64cda8..2cb57f6e6c 100644 --- a/packages/data-grid/stories/grid-pagination.stories.tsx +++ b/packages/data-grid/stories/grid-pagination.stories.tsx @@ -1,7 +1,7 @@ -import { StoryFn } from "@storybook/react"; -import { SyntheticEvent, useMemo, useState } from "react"; -import { Grid, GridColumn, RowSelectionCheckboxColumn } from "../src"; import { FlexLayout, Pagination, Paginator } from "@salt-ds/core"; +import type { StoryFn } from "@storybook/react"; +import { type SyntheticEvent, useMemo, useState } from "react"; +import { Grid, GridColumn, RowSelectionCheckboxColumn } from "../src"; import { createDummyInvestors, investorKeyGetter } from "./dummyData"; import "./grid.stories.css"; @@ -13,7 +13,7 @@ export default { const dummyInvestors = createDummyInvestors(); -const GridPaginationTemplate: StoryFn<{}> = (props) => { +const GridPaginationTemplate: StoryFn = (props) => { const [page, setPage] = useState(1); const pageSize = 7; const pageCount = Math.ceil(dummyInvestors.length / pageSize); @@ -26,7 +26,7 @@ const GridPaginationTemplate: StoryFn<{}> = (props) => { const start = (page - 1) * pageSize; const end = Math.min(start + pageSize, dummyInvestors.length); return dummyInvestors.slice(start, end); - }, [pageSize, page]); + }, [page]); return ( diff --git a/packages/data-grid/stories/grid-rowSelectionControlled.stories.tsx b/packages/data-grid/stories/grid-rowSelectionControlled.stories.tsx index c0bce283f7..98db1adfa6 100644 --- a/packages/data-grid/stories/grid-rowSelectionControlled.stories.tsx +++ b/packages/data-grid/stories/grid-rowSelectionControlled.stories.tsx @@ -1,3 +1,5 @@ +import { FlexLayout } from "@salt-ds/core"; +import { useState } from "react"; import { Grid, GridColumn, @@ -5,10 +7,8 @@ import { RowSelectionCheckboxColumn, } from "../src"; import { DummyRow, dummyRowKeyGetter, rowData } from "./dummyData"; -import { useState } from "react"; -import { FlexLayout } from "@salt-ds/core"; import "./grid.stories.css"; -import { StoryFn } from "@storybook/react"; +import type { StoryFn } from "@storybook/react"; export default { title: "Lab/Data Grid", @@ -16,7 +16,7 @@ export default { argTypes: {}, }; -const RowSelectionControlledTemplate: StoryFn<{}> = () => { +const RowSelectionControlledTemplate: StoryFn = () => { const [selection, setSelection] = useState([]); const onRowSelected = (rowIndices: number[]) => { diff --git a/packages/data-grid/stories/grid-rowSelectionModes.stories.tsx b/packages/data-grid/stories/grid-rowSelectionModes.stories.tsx index 68b60ecf4a..a1ce437c5b 100644 --- a/packages/data-grid/stories/grid-rowSelectionModes.stories.tsx +++ b/packages/data-grid/stories/grid-rowSelectionModes.stories.tsx @@ -1,20 +1,20 @@ -import { StoryFn } from "@storybook/react"; +import { + FlexItem, + FlexLayout, + ToggleButton, + ToggleButtonGroup, +} from "@salt-ds/core"; +import type { StoryFn } from "@storybook/react"; +import { type SyntheticEvent, useState } from "react"; import { Grid, GridColumn, - GridRowSelectionMode, + type GridRowSelectionMode, NumericColumn, RowSelectionCheckboxColumn, RowSelectionRadioColumn, } from "../src"; -import { DummyRow, dummyRowKeyGetter, rowData } from "./dummyData"; -import { SyntheticEvent, useState } from "react"; -import { - FlexItem, - FlexLayout, - ToggleButton, - ToggleButtonGroup, -} from "@salt-ds/core"; +import { type DummyRow, dummyRowKeyGetter, rowData } from "./dummyData"; import "./grid.stories.css"; export default { @@ -23,7 +23,7 @@ export default { argTypes: {}, }; -const RowSelectionModesTemplate: StoryFn<{}> = () => { +const RowSelectionModesTemplate: StoryFn = () => { const [rowSelectionMode, setRowSelectionMode] = useState("multi"); diff --git a/packages/data-grid/stories/grid-serverSideData.stories.tsx b/packages/data-grid/stories/grid-serverSideData.stories.tsx index 0147102ed4..cfee0d2923 100644 --- a/packages/data-grid/stories/grid-serverSideData.stories.tsx +++ b/packages/data-grid/stories/grid-serverSideData.stories.tsx @@ -1,13 +1,13 @@ -import { Decorator, StoryFn } from "@storybook/react"; +import type { Decorator, StoryFn } from "@storybook/react"; import { - useInfiniteQuery, QueryClient, QueryClientProvider, + useInfiniteQuery, } from "@tanstack/react-query"; -import { useCallback } from "react"; import { rest } from "msw"; -import { db, Investor, investorKeyGetter } from "./dummyData"; +import { useCallback } from "react"; import { Grid, GridColumn, RowSelectionCheckboxColumn } from "../src"; +import { type Investor, db, investorKeyGetter } from "./dummyData"; import "./grid.stories.css"; export default { @@ -49,7 +49,7 @@ const useInvestors = () => { }; const queryClient = new QueryClient(); -const ServerSideDataTemplate: StoryFn<{}> = (props) => { +const ServerSideDataTemplate: StoryFn = (props) => { const { fetchNextPage, data } = useInvestors(); const rowData = data?.pages.flat() ?? []; const lastRow = rowData.length + 1; @@ -59,7 +59,7 @@ const ServerSideDataTemplate: StoryFn<{}> = (props) => { void fetchNextPage(); } }, - [lastRow] + [lastRow, fetchNextPage], ); return ( = () => { +const GridVariantsTemplate: StoryFn = () => { const [separators, setSeparators] = useState(false); const [uhd, setUhd] = useState(false); const [variant, setVariant] = useState("primary"); @@ -76,7 +76,7 @@ const GridVariantsTemplate: StoryFn<{}> = () => { { - dummyInvestors[rowIndex].amount = parseFloat(value); + dummyInvestors[rowIndex].amount = Number.parseFloat(value); }; const onLocationChange = (row: Investor, rowIndex: number, value: string) => { dummyInvestors[rowIndex].location = value; }; -const GridStoryTemplate: StoryFn = (props) => { +const GridStoryTemplate: StoryFn = () => { return ( = (props) => { ); }; -const SingleRowSelectionTemplate: StoryFn = (props) => { +const SingleRowSelectionTemplate: StoryFn = () => { return ( = () => { ); }; -const PinnedColumnsTemplate: StoryFn = (props) => { +const PinnedColumnsTemplate: StoryFn = () => { const [columnSeparators, setColumnSeparators] = useState(false); const [pinnedSeparators, setPinnedSeparators] = useState(true); @@ -342,7 +342,7 @@ const dummyData = [...new Array(40).keys()].map((i) => { const rowIdGetter = (row: any) => row.id; const LotsOfColumnsTemplate: StoryFn = (props) => { - const { style, ...rest } = props; + const { style } = props; return ( { group.columns.push(name); }); -const LotsOfColumnGroupsTemplate: StoryFn = (props) => { +const LotsOfColumnGroupsTemplate: StoryFn = () => { return ( { const c = useContext(CustomHeadersStoryContext); if (!c) { - throw new Error(`CustomHeadersStoryContext not found`); + throw new Error("CustomHeadersStoryContext not found"); } return c; }; @@ -440,6 +440,7 @@ const CustomHeader = (props: GridHeaderValueProps) => { }; return ( + // biome-ignore lint/a11y/useKeyWithClickEvents: not used
{column.info.props.name}
@@ -456,7 +457,7 @@ const CustomHeader = (props: GridHeaderValueProps) => { const customHeadersColumnNames = dummyColumnNames.slice(0, 10); -const CustomHeadersTemplate: StoryFn = (props) => { +const CustomHeadersTemplate: StoryFn = () => { const [sortBy, setSortBy] = useState("A"); const [sortDesc, setSortDesc] = useState(false); @@ -480,7 +481,7 @@ const CustomHeadersTemplate: StoryFn = (props) => { setSortDesc(false); } }, - [sortBy, setSortBy, sortDesc, setSortDesc] + [sortBy], ); const contextValue: CustomHeadersStoryContext = useMemo(() => { @@ -538,7 +539,7 @@ const CustomCellsStoryContext = createContext< const useCustomCellsStoryContext = () => { const c = useContext(CustomCellsStoryContext); if (!c) { - throw new Error(`CustomCellsStoryContext not found`); + throw new Error("CustomCellsStoryContext not found"); } return c; }; @@ -577,6 +578,7 @@ const CustomCell = (props: GridCellValueProps) => { }; return ( + // biome-ignore lint/a11y/useKeyWithClickEvents: not used
{row.data.children.length > 0 ? ( @@ -609,7 +611,7 @@ for (let i = 0; i < 10; i++) { } } -const CustomCellsTemplate: StoryFn = (props) => { +const CustomCellsTemplate: StoryFn = () => { const [data, setData] = useState(dummyTreeData); const dataById = useMemo(() => { @@ -629,7 +631,7 @@ const CustomCellsTemplate: StoryFn = (props) => { dataById.get(rowKey)!.expanded = expand; setData([...data]); }, - [dataById, setData] + [dataById, data], ); const visibleRows = useMemo(() => { @@ -650,7 +652,7 @@ const CustomCellsTemplate: StoryFn = (props) => { () => ({ expand, }), - [expand] + [expand], ); return ( @@ -678,7 +680,7 @@ const CustomCellsTemplate: StoryFn = (props) => { ); }; -const ColumnDragAndDropTemplate: StoryFn = (props) => { +const ColumnDragAndDropTemplate: StoryFn = () => { const [columnIds, setColumnIds] = useState([ "name", "location", @@ -688,7 +690,7 @@ const ColumnDragAndDropTemplate: StoryFn = (props) => { const onColumnMoved = ( columnId: string, fromIndex: number, - toIndex: number + toIndex: number, ) => { console.log(`Column "${columnId}" moved from ${fromIndex} to ${toIndex}`); setColumnIds((old) => { @@ -700,14 +702,13 @@ const ColumnDragAndDropTemplate: StoryFn = (props) => { col, ...old.slice(toIndex), ]; - } else { - return [ - ...old.slice(0, toIndex), - col, - ...old.slice(toIndex, fromIndex), - ...old.slice(fromIndex + 1), - ]; } + return [ + ...old.slice(0, toIndex), + col, + ...old.slice(toIndex, fromIndex), + ...old.slice(fromIndex + 1), + ]; }); }; diff --git a/packages/data-grid/stories/utils.ts b/packages/data-grid/stories/utils.ts index e1a33142ce..776b637c89 100644 --- a/packages/data-grid/stories/utils.ts +++ b/packages/data-grid/stories/utils.ts @@ -24,8 +24,8 @@ export function randomNumber(min: number, max: number, precision = 2) { } export function randomAmount(min = 0, max = 10000000, precision = 2) { - const m = max * Math.pow(10, precision); - const d = Math.pow(10, -precision); + const m = max * 10 ** precision; + const d = 10 ** -precision; return Math.round(Math.random() * m) * d; } @@ -62,6 +62,6 @@ export function randomCurrency(): string { export function randomDate(start: Date, end: Date) { return new Date( - start.getTime() + Math.random() * (end.getTime() - start.getTime()) + start.getTime() + Math.random() * (end.getTime() - start.getTime()), ); } diff --git a/packages/icons/package.json b/packages/icons/package.json index 03dfac0285..42cf54c714 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -10,10 +10,7 @@ "bugs": "https://github.com/jpmorganchase/salt-ds/issues", "main": "src/index.ts", "sideEffects": false, - "files": [ - "css", - "saltIcons.css" - ], + "files": ["css", "saltIcons.css"], "scripts": { "build": "yarn clean && yarn node ./scripts/generateIcons.mjs '*.svg'", "copy:css": "yarn node ./scripts/copyCss.mjs", diff --git a/packages/icons/scripts/copyCss.mjs b/packages/icons/scripts/copyCss.mjs index eb518dc080..e3d34f82b2 100644 --- a/packages/icons/scripts/copyCss.mjs +++ b/packages/icons/scripts/copyCss.mjs @@ -11,7 +11,7 @@ try { await mkdir(cssFolder, { recursive: true }); await copyFile( path.join(srcFolder, "/icon/Icon.css"), - path.join(cssFolder, "/salt-icon.css") + path.join(cssFolder, "/salt-icon.css"), ); console.log(`Icon.css copied to: ${cssFolder} `); } catch (err) { diff --git a/packages/icons/scripts/generateIcons.mjs b/packages/icons/scripts/generateIcons.mjs index b17d020769..b5af3f752a 100644 --- a/packages/icons/scripts/generateIcons.mjs +++ b/packages/icons/scripts/generateIcons.mjs @@ -1,10 +1,10 @@ import fs from "node:fs"; import path from "node:path"; +import { fileURLToPath } from "node:url"; import glob from "glob"; -import prettier from "prettier"; import Mustache from "mustache"; +import prettier from "prettier"; import { optimize } from "svgo"; -import { fileURLToPath } from "node:url"; import { svgAttributeMap } from "./svgAttributeMap.mjs"; const PRETTIER_SETTINGS = { @@ -22,11 +22,11 @@ const CSS_GENERATED_WARNING_COMMENT = /** Change kebab casing to Pascal casing */ function pascalCase(str) { - let arr = str.split("-"); - let capital = arr.map( + const arr = str.split("-"); + const capital = arr.map( (item) => item.charAt(0).toLocaleUpperCase("en-US") + - item.slice(1).toLocaleLowerCase("en-US") + item.slice(1).toLocaleLowerCase("en-US"), ); return capital.join(""); @@ -54,9 +54,9 @@ const generateCssAsBg = ({ basePath, cssOutputPath, fileArg }) => { const iconName = pascalCase(filenameWithoutExtension); return `.saltIcons-${iconName}{mask-image:url("data:image/svg+xml,${encodeURIComponent( - svgString + svgString, )}");-webkit-mask-image:url("data:image/svg+xml,${encodeURIComponent( - svgString + svgString, )}");}`; }) .join("\n"); @@ -66,7 +66,7 @@ const generateCssAsBg = ({ basePath, cssOutputPath, fileArg }) => { const formattedResult = prettier.format( CSS_GENERATED_WARNING_COMMENT.concat(ALL_CSS, iconCss), - { ...PRETTIER_SETTINGS, parser: "css" } + { ...PRETTIER_SETTINGS, parser: "css" }, ); fs.writeFileSync(cssOutputPath, formattedResult, { @@ -143,7 +143,7 @@ const generateIconComponents = async ({ const newAttributes = {}; // preserve an order of attributes for (const [name, value] of Object.entries( - node.attributes + node.attributes, )) { newAttributes[svgAttributeMap[name] || name] = value; } @@ -195,7 +195,7 @@ const generateIconComponents = async ({ const formattedResult = prettier.format( GENERATED_WARNING_COMMENT.concat(fileContents), - PRETTIER_SETTINGS + PRETTIER_SETTINGS, ); await fs.promises.writeFile(newFilePath, formattedResult, { @@ -203,7 +203,7 @@ const generateIconComponents = async ({ }); return componentName; - }) + }), ); }; @@ -242,10 +242,8 @@ const generateIconAll = async ({ icons, allPath }) => { .sort((a, b) => a.localeCompare(b)) .map((componentName) => `${componentName}Icon,`); - const importsStatements = - "import {\n" + sortedIcons.join("\n") + `\n} from "@salt-ds/icons";\n`; - const exportStatements = - "export const allIcons = [" + sortedIcons.join("\n") + "\n];\n"; + const importsStatements = `import {\n${sortedIcons.join("\n")}\n} from "@salt-ds/icons";\n`; + const exportStatements = `export const allIcons = [${sortedIcons.join("\n")}\n];\n`; const joinedText = [ GENERATED_WARNING_COMMENT, @@ -270,10 +268,8 @@ const generateIconAllSite = async ({ icons, siteAllPath }) => { .sort((a, b) => a.localeCompare(b)) .map((componentName) => `${componentName}Icon,`); - const importsStatements = - "import {\n" + sortedIcons.join("\n") + `\n} from "@salt-ds/icons";\n`; - const exportStatements = - "export const allIcons = {" + sortedIcons.join("\n") + "\n};\n"; + const importsStatements = `import {\n${sortedIcons.join("\n")}\n} from "@salt-ds/icons";\n`; + const exportStatements = `export const allIcons = {${sortedIcons.join("\n")}\n};\n`; const joinedText = [ GENERATED_WARNING_COMMENT, @@ -300,7 +296,7 @@ const templatePath = path.join(__dirname, "./templateIcon.mustache"); const allPath = path.join(basePath, "../stories/icon.all.ts"); const siteAllPath = path.join( basePath, - "../../../site/src/examples/icon/allIconsList.ts" + "../../../site/src/examples/icon/allIconsList.ts", ); await fs.promises.mkdir(componentsPath, { recursive: true }); diff --git a/packages/icons/src/__tests__/__e2e__/Icon.cy.tsx b/packages/icons/src/__tests__/__e2e__/Icon.cy.tsx index e4b54d3f33..45f0b58023 100644 --- a/packages/icons/src/__tests__/__e2e__/Icon.cy.tsx +++ b/packages/icons/src/__tests__/__e2e__/Icon.cy.tsx @@ -1,6 +1,6 @@ import { composeStories } from "@storybook/react"; -import * as iconStory from "../../../stories/icon.stories"; import { checkAccessibility } from "../../../../../cypress/tests/checkAccessibility"; +import * as iconStory from "../../../stories/icon.stories"; const composedStories = composeStories(iconStory); diff --git a/packages/icons/src/components/Accessible.tsx b/packages/icons/src/components/Accessible.tsx index 9ce250282a..8b32de0f4d 100644 --- a/packages/icons/src/components/Accessible.tsx +++ b/packages/icons/src/components/Accessible.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type AccessibleIconProps = IconProps; @@ -24,5 +24,5 @@ export const AccessibleIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/AccessibleSolid.tsx b/packages/icons/src/components/AccessibleSolid.tsx index ce94f6a87a..b1f0338f43 100644 --- a/packages/icons/src/components/AccessibleSolid.tsx +++ b/packages/icons/src/components/AccessibleSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type AccessibleSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Add.tsx b/packages/icons/src/components/Add.tsx index 240dbcc116..749473ad73 100644 --- a/packages/icons/src/components/Add.tsx +++ b/packages/icons/src/components/Add.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type AddIconProps = IconProps; export const AddIcon = forwardRef(function AddIcon( props: AddIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/AddDocumentSolid.tsx b/packages/icons/src/components/AddDocumentSolid.tsx index 38f8ec61fc..2357d24c16 100644 --- a/packages/icons/src/components/AddDocumentSolid.tsx +++ b/packages/icons/src/components/AddDocumentSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type AddDocumentSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Api.tsx b/packages/icons/src/components/Api.tsx index e938a3410b..4448e7657f 100644 --- a/packages/icons/src/components/Api.tsx +++ b/packages/icons/src/components/Api.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ApiIconProps = IconProps; export const ApiIcon = forwardRef(function ApiIcon( props: ApiIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/ArrowDown.tsx b/packages/icons/src/components/ArrowDown.tsx index fe5915d5bd..253c67d485 100644 --- a/packages/icons/src/components/ArrowDown.tsx +++ b/packages/icons/src/components/ArrowDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ArrowDownIconProps = IconProps; @@ -18,5 +18,5 @@ export const ArrowDownIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ArrowLeft.tsx b/packages/icons/src/components/ArrowLeft.tsx index 565a33bf8b..1075b54882 100644 --- a/packages/icons/src/components/ArrowLeft.tsx +++ b/packages/icons/src/components/ArrowLeft.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ArrowLeftIconProps = IconProps; @@ -18,5 +18,5 @@ export const ArrowLeftIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ArrowRight.tsx b/packages/icons/src/components/ArrowRight.tsx index 796951175f..ba19fe40ed 100644 --- a/packages/icons/src/components/ArrowRight.tsx +++ b/packages/icons/src/components/ArrowRight.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ArrowRightIconProps = IconProps; @@ -18,5 +18,5 @@ export const ArrowRightIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ArrowUp.tsx b/packages/icons/src/components/ArrowUp.tsx index 96e122cf63..ca3f9ed363 100644 --- a/packages/icons/src/components/ArrowUp.tsx +++ b/packages/icons/src/components/ArrowUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ArrowUpIconProps = IconProps; @@ -18,5 +18,5 @@ export const ArrowUpIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Attach.tsx b/packages/icons/src/components/Attach.tsx index 4ab5030ce5..4334dac493 100644 --- a/packages/icons/src/components/Attach.tsx +++ b/packages/icons/src/components/Attach.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type AttachIconProps = IconProps; @@ -18,5 +18,5 @@ export const AttachIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Bank.tsx b/packages/icons/src/components/Bank.tsx index 269d8c6157..aa2b4766d6 100644 --- a/packages/icons/src/components/Bank.tsx +++ b/packages/icons/src/components/Bank.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BankIconProps = IconProps; @@ -23,5 +23,5 @@ export const BankIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BankCheck.tsx b/packages/icons/src/components/BankCheck.tsx index 2fdf700ec0..c5b4c9a2bd 100644 --- a/packages/icons/src/components/BankCheck.tsx +++ b/packages/icons/src/components/BankCheck.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BankCheckIconProps = IconProps; @@ -23,5 +23,5 @@ export const BankCheckIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/BankCheckSolid.tsx b/packages/icons/src/components/BankCheckSolid.tsx index 43ece55558..95365da27d 100644 --- a/packages/icons/src/components/BankCheckSolid.tsx +++ b/packages/icons/src/components/BankCheckSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BankCheckSolidIconProps = IconProps; diff --git a/packages/icons/src/components/BankSolid.tsx b/packages/icons/src/components/BankSolid.tsx index 0fce61d799..6f01501710 100644 --- a/packages/icons/src/components/BankSolid.tsx +++ b/packages/icons/src/components/BankSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BankSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const BankSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BarChart.tsx b/packages/icons/src/components/BarChart.tsx index d9acc773b8..dce6d12be1 100644 --- a/packages/icons/src/components/BarChart.tsx +++ b/packages/icons/src/components/BarChart.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BarChartIconProps = IconProps; @@ -18,5 +18,5 @@ export const BarChartIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Battery.tsx b/packages/icons/src/components/Battery.tsx index e269d96fbb..b17044a5f1 100644 --- a/packages/icons/src/components/Battery.tsx +++ b/packages/icons/src/components/Battery.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BatteryIconProps = IconProps; @@ -22,5 +22,5 @@ export const BatteryIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BatterySolid.tsx b/packages/icons/src/components/BatterySolid.tsx index 64c1962ff4..172e30ac9f 100644 --- a/packages/icons/src/components/BatterySolid.tsx +++ b/packages/icons/src/components/BatterySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BatterySolidIconProps = IconProps; diff --git a/packages/icons/src/components/Bookmark.tsx b/packages/icons/src/components/Bookmark.tsx index 9a685c6ebf..5cc1efd08e 100644 --- a/packages/icons/src/components/Bookmark.tsx +++ b/packages/icons/src/components/Bookmark.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BookmarkIconProps = IconProps; @@ -22,5 +22,5 @@ export const BookmarkIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BookmarkSolid.tsx b/packages/icons/src/components/BookmarkSolid.tsx index 9e6ae1d5c3..0d328592ab 100644 --- a/packages/icons/src/components/BookmarkSolid.tsx +++ b/packages/icons/src/components/BookmarkSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BookmarkSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Boolean.tsx b/packages/icons/src/components/Boolean.tsx index cfc34ca3ab..24d66cf20a 100644 --- a/packages/icons/src/components/Boolean.tsx +++ b/packages/icons/src/components/Boolean.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BooleanIconProps = IconProps; @@ -22,5 +22,5 @@ export const BooleanIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BooleanSolid.tsx b/packages/icons/src/components/BooleanSolid.tsx index bbe074caca..c52a2dfac0 100644 --- a/packages/icons/src/components/BooleanSolid.tsx +++ b/packages/icons/src/components/BooleanSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BooleanSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Browser.tsx b/packages/icons/src/components/Browser.tsx index 215b9ca0b9..8d4f9b6620 100644 --- a/packages/icons/src/components/Browser.tsx +++ b/packages/icons/src/components/Browser.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BrowserIconProps = IconProps; @@ -23,5 +23,5 @@ export const BrowserIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BrowserSolid.tsx b/packages/icons/src/components/BrowserSolid.tsx index a36ae1d15d..75a57c9c99 100644 --- a/packages/icons/src/components/BrowserSolid.tsx +++ b/packages/icons/src/components/BrowserSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BrowserSolidIconProps = IconProps; diff --git a/packages/icons/src/components/BuildReport.tsx b/packages/icons/src/components/BuildReport.tsx index 7186c78b96..afa0994125 100644 --- a/packages/icons/src/components/BuildReport.tsx +++ b/packages/icons/src/components/BuildReport.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildReportIconProps = IconProps; @@ -22,5 +22,5 @@ export const BuildReportIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/BuildReportSolid.tsx b/packages/icons/src/components/BuildReportSolid.tsx index beae7ba3fe..9957d7f819 100644 --- a/packages/icons/src/components/BuildReportSolid.tsx +++ b/packages/icons/src/components/BuildReportSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildReportSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Building.tsx b/packages/icons/src/components/Building.tsx index 1486786776..578b41b034 100644 --- a/packages/icons/src/components/Building.tsx +++ b/packages/icons/src/components/Building.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildingIconProps = IconProps; @@ -29,5 +29,5 @@ export const BuildingIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/BuildingSolid.tsx b/packages/icons/src/components/BuildingSolid.tsx index 90eef53e37..48789d3497 100644 --- a/packages/icons/src/components/BuildingSolid.tsx +++ b/packages/icons/src/components/BuildingSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildingSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Buildings.tsx b/packages/icons/src/components/Buildings.tsx index 782dd0da83..65173f22ff 100644 --- a/packages/icons/src/components/Buildings.tsx +++ b/packages/icons/src/components/Buildings.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildingsIconProps = IconProps; @@ -24,5 +24,5 @@ export const BuildingsIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/BuildingsSolid.tsx b/packages/icons/src/components/BuildingsSolid.tsx index 5b39197116..8a57822389 100644 --- a/packages/icons/src/components/BuildingsSolid.tsx +++ b/packages/icons/src/components/BuildingsSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type BuildingsSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Calculator.tsx b/packages/icons/src/components/Calculator.tsx index bf45cbec82..4f716d2148 100644 --- a/packages/icons/src/components/Calculator.tsx +++ b/packages/icons/src/components/Calculator.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CalculatorIconProps = IconProps; @@ -24,5 +24,5 @@ export const CalculatorIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CalculatorSolid.tsx b/packages/icons/src/components/CalculatorSolid.tsx index d5a4712895..c3f1a20aba 100644 --- a/packages/icons/src/components/CalculatorSolid.tsx +++ b/packages/icons/src/components/CalculatorSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CalculatorSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Calendar.tsx b/packages/icons/src/components/Calendar.tsx index d6a2a993cf..4930ff4f05 100644 --- a/packages/icons/src/components/Calendar.tsx +++ b/packages/icons/src/components/Calendar.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CalendarIconProps = IconProps; @@ -18,5 +18,5 @@ export const CalendarIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CalendarSolid.tsx b/packages/icons/src/components/CalendarSolid.tsx index 3b08d4831a..15537f45a5 100644 --- a/packages/icons/src/components/CalendarSolid.tsx +++ b/packages/icons/src/components/CalendarSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CalendarSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Call.tsx b/packages/icons/src/components/Call.tsx index f0135fba8b..4d0e61a67d 100644 --- a/packages/icons/src/components/Call.tsx +++ b/packages/icons/src/components/Call.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CallIconProps = IconProps; @@ -18,5 +18,5 @@ export const CallIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CallSolid.tsx b/packages/icons/src/components/CallSolid.tsx index 609314200d..095a14413c 100644 --- a/packages/icons/src/components/CallSolid.tsx +++ b/packages/icons/src/components/CallSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CallSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const CallSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Cart.tsx b/packages/icons/src/components/Cart.tsx index b5415c23d5..015ec47289 100644 --- a/packages/icons/src/components/Cart.tsx +++ b/packages/icons/src/components/Cart.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CartIconProps = IconProps; @@ -23,5 +23,5 @@ export const CartIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CartSolid.tsx b/packages/icons/src/components/CartSolid.tsx index b7d8575f84..8bb6c2dec1 100644 --- a/packages/icons/src/components/CartSolid.tsx +++ b/packages/icons/src/components/CartSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CartSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const CartSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Chat.tsx b/packages/icons/src/components/Chat.tsx index bb4028ba88..fd37ca77ce 100644 --- a/packages/icons/src/components/Chat.tsx +++ b/packages/icons/src/components/Chat.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChatIconProps = IconProps; @@ -22,5 +22,5 @@ export const ChatIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ChatGroup.tsx b/packages/icons/src/components/ChatGroup.tsx index 12c87e37cf..8f2a2e547c 100644 --- a/packages/icons/src/components/ChatGroup.tsx +++ b/packages/icons/src/components/ChatGroup.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChatGroupIconProps = IconProps; @@ -22,5 +22,5 @@ export const ChatGroupIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ChatGroupSolid.tsx b/packages/icons/src/components/ChatGroupSolid.tsx index 83306ad9af..095c0a3443 100644 --- a/packages/icons/src/components/ChatGroupSolid.tsx +++ b/packages/icons/src/components/ChatGroupSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChatGroupSolidIconProps = IconProps; diff --git a/packages/icons/src/components/ChatSolid.tsx b/packages/icons/src/components/ChatSolid.tsx index f9825564d3..8e10979bbd 100644 --- a/packages/icons/src/components/ChatSolid.tsx +++ b/packages/icons/src/components/ChatSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChatSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const ChatSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Chatting.tsx b/packages/icons/src/components/Chatting.tsx index fab7e9c674..5b74890dbc 100644 --- a/packages/icons/src/components/Chatting.tsx +++ b/packages/icons/src/components/Chatting.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChattingIconProps = IconProps; @@ -23,5 +23,5 @@ export const ChattingIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ChattingSolid.tsx b/packages/icons/src/components/ChattingSolid.tsx index 70bd27ed91..4253598960 100644 --- a/packages/icons/src/components/ChattingSolid.tsx +++ b/packages/icons/src/components/ChattingSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChattingSolidIconProps = IconProps; diff --git a/packages/icons/src/components/ChevronDown.tsx b/packages/icons/src/components/ChevronDown.tsx index ebd2869df3..ba0b6ce095 100644 --- a/packages/icons/src/components/ChevronDown.tsx +++ b/packages/icons/src/components/ChevronDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChevronDownIconProps = IconProps; @@ -22,5 +22,5 @@ export const ChevronDownIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ChevronLeft.tsx b/packages/icons/src/components/ChevronLeft.tsx index 2e047382e2..90bd93faba 100644 --- a/packages/icons/src/components/ChevronLeft.tsx +++ b/packages/icons/src/components/ChevronLeft.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChevronLeftIconProps = IconProps; @@ -22,5 +22,5 @@ export const ChevronLeftIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ChevronRight.tsx b/packages/icons/src/components/ChevronRight.tsx index 9cf85870d6..6dead0f164 100644 --- a/packages/icons/src/components/ChevronRight.tsx +++ b/packages/icons/src/components/ChevronRight.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChevronRightIconProps = IconProps; diff --git a/packages/icons/src/components/ChevronUp.tsx b/packages/icons/src/components/ChevronUp.tsx index 6453e49208..0c45efc7db 100644 --- a/packages/icons/src/components/ChevronUp.tsx +++ b/packages/icons/src/components/ChevronUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ChevronUpIconProps = IconProps; @@ -22,5 +22,5 @@ export const ChevronUpIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Clock.tsx b/packages/icons/src/components/Clock.tsx index b1a363c974..d79b73e39f 100644 --- a/packages/icons/src/components/Clock.tsx +++ b/packages/icons/src/components/Clock.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ClockIconProps = IconProps; @@ -23,5 +23,5 @@ export const ClockIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ClockSolid.tsx b/packages/icons/src/components/ClockSolid.tsx index 62426c5609..c5d7d6da48 100644 --- a/packages/icons/src/components/ClockSolid.tsx +++ b/packages/icons/src/components/ClockSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ClockSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ClockSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Clone.tsx b/packages/icons/src/components/Clone.tsx index 00d959980d..6f2caf3204 100644 --- a/packages/icons/src/components/Clone.tsx +++ b/packages/icons/src/components/Clone.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloneIconProps = IconProps; @@ -19,5 +19,5 @@ export const CloneIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Close.tsx b/packages/icons/src/components/Close.tsx index 8fdc90f74a..6a22a5253d 100644 --- a/packages/icons/src/components/Close.tsx +++ b/packages/icons/src/components/Close.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloseIconProps = IconProps; @@ -18,5 +18,5 @@ export const CloseIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CloseSmall.tsx b/packages/icons/src/components/CloseSmall.tsx index fd1a5e16b1..9d629d67c3 100644 --- a/packages/icons/src/components/CloseSmall.tsx +++ b/packages/icons/src/components/CloseSmall.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloseSmallIconProps = IconProps; @@ -18,5 +18,5 @@ export const CloseSmallIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Closedcaption.tsx b/packages/icons/src/components/Closedcaption.tsx index a5c4a19c3d..7698984add 100644 --- a/packages/icons/src/components/Closedcaption.tsx +++ b/packages/icons/src/components/Closedcaption.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ClosedcaptionIconProps = IconProps; diff --git a/packages/icons/src/components/ClosedcaptionDisabled.tsx b/packages/icons/src/components/ClosedcaptionDisabled.tsx index 8f676dc9cd..5083be4f80 100644 --- a/packages/icons/src/components/ClosedcaptionDisabled.tsx +++ b/packages/icons/src/components/ClosedcaptionDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ClosedcaptionDisabledIconProps = IconProps; @@ -10,7 +10,7 @@ export const ClosedcaptionDisabledIcon = forwardRef< ClosedcaptionDisabledIconProps >(function ClosedcaptionDisabledIcon( props: ClosedcaptionDisabledIconProps, - ref + ref, ) { return ( (function ClosedcaptionDisabledSolidIcon( props: ClosedcaptionDisabledSolidIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/CloudDisabled.tsx b/packages/icons/src/components/CloudDisabled.tsx index 078f43edda..b8f72b1fc5 100644 --- a/packages/icons/src/components/CloudDisabled.tsx +++ b/packages/icons/src/components/CloudDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/CloudDisabledSolid.tsx b/packages/icons/src/components/CloudDisabledSolid.tsx index d0615a8aef..9dde1f6a4f 100644 --- a/packages/icons/src/components/CloudDisabledSolid.tsx +++ b/packages/icons/src/components/CloudDisabledSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudDisabledSolidIconProps = IconProps; diff --git a/packages/icons/src/components/CloudDownload.tsx b/packages/icons/src/components/CloudDownload.tsx index 48d58384cc..b615b8d49d 100644 --- a/packages/icons/src/components/CloudDownload.tsx +++ b/packages/icons/src/components/CloudDownload.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudDownloadIconProps = IconProps; diff --git a/packages/icons/src/components/CloudDownloadSolid.tsx b/packages/icons/src/components/CloudDownloadSolid.tsx index 32bb70abb7..26edb306f9 100644 --- a/packages/icons/src/components/CloudDownloadSolid.tsx +++ b/packages/icons/src/components/CloudDownloadSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudDownloadSolidIconProps = IconProps; diff --git a/packages/icons/src/components/CloudSolid.tsx b/packages/icons/src/components/CloudSolid.tsx index f1d1ffa1b7..bf3e7c0f92 100644 --- a/packages/icons/src/components/CloudSolid.tsx +++ b/packages/icons/src/components/CloudSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const CloudSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CloudSuccess.tsx b/packages/icons/src/components/CloudSuccess.tsx index 7281256c31..7788feb114 100644 --- a/packages/icons/src/components/CloudSuccess.tsx +++ b/packages/icons/src/components/CloudSuccess.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudSuccessIconProps = IconProps; diff --git a/packages/icons/src/components/CloudSuccessSolid.tsx b/packages/icons/src/components/CloudSuccessSolid.tsx index c5ebbe999e..8b3050ecc0 100644 --- a/packages/icons/src/components/CloudSuccessSolid.tsx +++ b/packages/icons/src/components/CloudSuccessSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudSuccessSolidIconProps = IconProps; diff --git a/packages/icons/src/components/CloudSync.tsx b/packages/icons/src/components/CloudSync.tsx index babdaaa5b3..5f7b15a59a 100644 --- a/packages/icons/src/components/CloudSync.tsx +++ b/packages/icons/src/components/CloudSync.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudSyncIconProps = IconProps; @@ -19,5 +19,5 @@ export const CloudSyncIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CloudSyncSolid.tsx b/packages/icons/src/components/CloudSyncSolid.tsx index b7cade6834..011d906e4f 100644 --- a/packages/icons/src/components/CloudSyncSolid.tsx +++ b/packages/icons/src/components/CloudSyncSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudSyncSolidIconProps = IconProps; diff --git a/packages/icons/src/components/CloudUpload.tsx b/packages/icons/src/components/CloudUpload.tsx index 0b716cf7fc..7f13206d90 100644 --- a/packages/icons/src/components/CloudUpload.tsx +++ b/packages/icons/src/components/CloudUpload.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudUploadIconProps = IconProps; @@ -19,5 +19,5 @@ export const CloudUploadIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CloudUploadSolid.tsx b/packages/icons/src/components/CloudUploadSolid.tsx index 5722504409..ac8b1d289a 100644 --- a/packages/icons/src/components/CloudUploadSolid.tsx +++ b/packages/icons/src/components/CloudUploadSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CloudUploadSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Coffee.tsx b/packages/icons/src/components/Coffee.tsx index 92b4d7ee95..75d3b58e27 100644 --- a/packages/icons/src/components/Coffee.tsx +++ b/packages/icons/src/components/Coffee.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CoffeeIconProps = IconProps; @@ -28,5 +28,5 @@ export const CoffeeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CoffeeSolid.tsx b/packages/icons/src/components/CoffeeSolid.tsx index e5c5bfa946..5887f4d9f6 100644 --- a/packages/icons/src/components/CoffeeSolid.tsx +++ b/packages/icons/src/components/CoffeeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CoffeeSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const CoffeeSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Collapse.tsx b/packages/icons/src/components/Collapse.tsx index fbc8985a53..bb9095475f 100644 --- a/packages/icons/src/components/Collapse.tsx +++ b/packages/icons/src/components/Collapse.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CollapseIconProps = IconProps; @@ -22,5 +22,5 @@ export const CollapseIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CollapseAll.tsx b/packages/icons/src/components/CollapseAll.tsx index 1b90793e77..f1545396cb 100644 --- a/packages/icons/src/components/CollapseAll.tsx +++ b/packages/icons/src/components/CollapseAll.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CollapseAllIconProps = IconProps; @@ -18,5 +18,5 @@ export const CollapseAllIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ColumnChooser.tsx b/packages/icons/src/components/ColumnChooser.tsx index f4bcde373a..71cfd0c3cf 100644 --- a/packages/icons/src/components/ColumnChooser.tsx +++ b/packages/icons/src/components/ColumnChooser.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ColumnChooserIconProps = IconProps; diff --git a/packages/icons/src/components/ColumnChooserSolid.tsx b/packages/icons/src/components/ColumnChooserSolid.tsx index d5af0fab62..efd9334f15 100644 --- a/packages/icons/src/components/ColumnChooserSolid.tsx +++ b/packages/icons/src/components/ColumnChooserSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ColumnChooserSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Commentary.tsx b/packages/icons/src/components/Commentary.tsx index 18cf4c0724..409c39ec1a 100644 --- a/packages/icons/src/components/Commentary.tsx +++ b/packages/icons/src/components/Commentary.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CommentaryIconProps = IconProps; @@ -23,5 +23,5 @@ export const CommentaryIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CommentarySolid.tsx b/packages/icons/src/components/CommentarySolid.tsx index 984e7c432e..bf7a7a8bc1 100644 --- a/packages/icons/src/components/CommentarySolid.tsx +++ b/packages/icons/src/components/CommentarySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CommentarySolidIconProps = IconProps; diff --git a/packages/icons/src/components/Compass.tsx b/packages/icons/src/components/Compass.tsx index b471c3b15e..87100b799d 100644 --- a/packages/icons/src/components/Compass.tsx +++ b/packages/icons/src/components/Compass.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CompassIconProps = IconProps; @@ -27,5 +27,5 @@ export const CompassIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CompassSolid.tsx b/packages/icons/src/components/CompassSolid.tsx index ac5e9edc56..a2c9020160 100644 --- a/packages/icons/src/components/CompassSolid.tsx +++ b/packages/icons/src/components/CompassSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CompassSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Cookie.tsx b/packages/icons/src/components/Cookie.tsx index 2624ed6e94..f4094465f1 100644 --- a/packages/icons/src/components/Cookie.tsx +++ b/packages/icons/src/components/Cookie.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CookieIconProps = IconProps; @@ -24,5 +24,5 @@ export const CookieIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CookieSolid.tsx b/packages/icons/src/components/CookieSolid.tsx index d1e9f75b35..0334782b76 100644 --- a/packages/icons/src/components/CookieSolid.tsx +++ b/packages/icons/src/components/CookieSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CookieSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const CookieSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Copy.tsx b/packages/icons/src/components/Copy.tsx index 3c7cb96d45..28f3401c1b 100644 --- a/packages/icons/src/components/Copy.tsx +++ b/packages/icons/src/components/Copy.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CopyIconProps = IconProps; @@ -22,5 +22,5 @@ export const CopyIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CopySolid.tsx b/packages/icons/src/components/CopySolid.tsx index 00b76ed62b..ed7750c2cc 100644 --- a/packages/icons/src/components/CopySolid.tsx +++ b/packages/icons/src/components/CopySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CopySolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const CopySolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/CreditCard.tsx b/packages/icons/src/components/CreditCard.tsx index d855ca4dc4..663861d16c 100644 --- a/packages/icons/src/components/CreditCard.tsx +++ b/packages/icons/src/components/CreditCard.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CreditCardIconProps = IconProps; @@ -23,5 +23,5 @@ export const CreditCardIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CreditCardSolid.tsx b/packages/icons/src/components/CreditCardSolid.tsx index fd2ab33127..2ac8ad8d5a 100644 --- a/packages/icons/src/components/CreditCardSolid.tsx +++ b/packages/icons/src/components/CreditCardSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CreditCardSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Crops.tsx b/packages/icons/src/components/Crops.tsx index 19b68f574c..26cf1a08ec 100644 --- a/packages/icons/src/components/Crops.tsx +++ b/packages/icons/src/components/Crops.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CropsIconProps = IconProps; @@ -22,5 +22,5 @@ export const CropsIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/CropsSolid.tsx b/packages/icons/src/components/CropsSolid.tsx index 7d4813f611..600a7de736 100644 --- a/packages/icons/src/components/CropsSolid.tsx +++ b/packages/icons/src/components/CropsSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CropsSolidIconProps = IconProps; @@ -19,5 +19,5 @@ export const CropsSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Csv.tsx b/packages/icons/src/components/Csv.tsx index 3df0b86f2a..99500f2aa7 100644 --- a/packages/icons/src/components/Csv.tsx +++ b/packages/icons/src/components/Csv.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CsvIconProps = IconProps; export const CsvIcon = forwardRef(function CsvIcon( props: CsvIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/Cut.tsx b/packages/icons/src/components/Cut.tsx index 0909fd6785..99405d18fd 100644 --- a/packages/icons/src/components/Cut.tsx +++ b/packages/icons/src/components/Cut.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type CutIconProps = IconProps; export const CutIcon = forwardRef(function CutIcon( props: CutIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/DarkSolid.tsx b/packages/icons/src/components/DarkSolid.tsx index abaf16c3f6..86819a2c5c 100644 --- a/packages/icons/src/components/DarkSolid.tsx +++ b/packages/icons/src/components/DarkSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DarkSolidIconProps = IconProps; @@ -19,5 +19,5 @@ export const DarkSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Dashboard.tsx b/packages/icons/src/components/Dashboard.tsx index 2d6fc5e946..d5a5d6dc92 100644 --- a/packages/icons/src/components/Dashboard.tsx +++ b/packages/icons/src/components/Dashboard.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DashboardIconProps = IconProps; @@ -23,5 +23,5 @@ export const DashboardIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/DashboardSolid.tsx b/packages/icons/src/components/DashboardSolid.tsx index 11f7ae502b..f2b532b037 100644 --- a/packages/icons/src/components/DashboardSolid.tsx +++ b/packages/icons/src/components/DashboardSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DashboardSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Database.tsx b/packages/icons/src/components/Database.tsx index afeb736400..a0a3beffc3 100644 --- a/packages/icons/src/components/Database.tsx +++ b/packages/icons/src/components/Database.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DatabaseIconProps = IconProps; @@ -23,5 +23,5 @@ export const DatabaseIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/DatabaseSolid.tsx b/packages/icons/src/components/DatabaseSolid.tsx index 245cb9f268..178a853551 100644 --- a/packages/icons/src/components/DatabaseSolid.tsx +++ b/packages/icons/src/components/DatabaseSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DatabaseSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Delete.tsx b/packages/icons/src/components/Delete.tsx index dd4b95909a..715a3ac4e8 100644 --- a/packages/icons/src/components/Delete.tsx +++ b/packages/icons/src/components/Delete.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DeleteIconProps = IconProps; @@ -23,5 +23,5 @@ export const DeleteIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/DeleteSolid.tsx b/packages/icons/src/components/DeleteSolid.tsx index a02d006683..e947eb773d 100644 --- a/packages/icons/src/components/DeleteSolid.tsx +++ b/packages/icons/src/components/DeleteSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DeleteSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const DeleteSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Devices.tsx b/packages/icons/src/components/Devices.tsx index aba7a08ee0..4f2a06eaf0 100644 --- a/packages/icons/src/components/Devices.tsx +++ b/packages/icons/src/components/Devices.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DevicesIconProps = IconProps; @@ -23,5 +23,5 @@ export const DevicesIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/DevicesSolid.tsx b/packages/icons/src/components/DevicesSolid.tsx index a753adc6b2..a5fca2acb0 100644 --- a/packages/icons/src/components/DevicesSolid.tsx +++ b/packages/icons/src/components/DevicesSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DevicesSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Diamond.tsx b/packages/icons/src/components/Diamond.tsx index f713dc1ac2..55961fa35c 100644 --- a/packages/icons/src/components/Diamond.tsx +++ b/packages/icons/src/components/Diamond.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DiamondIconProps = IconProps; @@ -22,5 +22,5 @@ export const DiamondIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Display.tsx b/packages/icons/src/components/Display.tsx index 39fd3e6212..e0b7860255 100644 --- a/packages/icons/src/components/Display.tsx +++ b/packages/icons/src/components/Display.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DisplayIconProps = IconProps; @@ -22,5 +22,5 @@ export const DisplayIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/DisplaySolid.tsx b/packages/icons/src/components/DisplaySolid.tsx index c72051e46d..63a77df676 100644 --- a/packages/icons/src/components/DisplaySolid.tsx +++ b/packages/icons/src/components/DisplaySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DisplaySolidIconProps = IconProps; diff --git a/packages/icons/src/components/Document.tsx b/packages/icons/src/components/Document.tsx index 2623b7e0f8..0e235554a1 100644 --- a/packages/icons/src/components/Document.tsx +++ b/packages/icons/src/components/Document.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DocumentIconProps = IconProps; @@ -22,5 +22,5 @@ export const DocumentIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/DocumentSolid.tsx b/packages/icons/src/components/DocumentSolid.tsx index 2813c2bd58..7a68baf1f6 100644 --- a/packages/icons/src/components/DocumentSolid.tsx +++ b/packages/icons/src/components/DocumentSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DocumentSolidIconProps = IconProps; diff --git a/packages/icons/src/components/DoubleChevronDown.tsx b/packages/icons/src/components/DoubleChevronDown.tsx index fd9af4453d..606509c4aa 100644 --- a/packages/icons/src/components/DoubleChevronDown.tsx +++ b/packages/icons/src/components/DoubleChevronDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DoubleChevronDownIconProps = IconProps; diff --git a/packages/icons/src/components/DoubleChevronLeft.tsx b/packages/icons/src/components/DoubleChevronLeft.tsx index b8c72f0c18..0b5d790da1 100644 --- a/packages/icons/src/components/DoubleChevronLeft.tsx +++ b/packages/icons/src/components/DoubleChevronLeft.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DoubleChevronLeftIconProps = IconProps; diff --git a/packages/icons/src/components/DoubleChevronRight.tsx b/packages/icons/src/components/DoubleChevronRight.tsx index 9b92c71e75..1c15fa4774 100644 --- a/packages/icons/src/components/DoubleChevronRight.tsx +++ b/packages/icons/src/components/DoubleChevronRight.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DoubleChevronRightIconProps = IconProps; diff --git a/packages/icons/src/components/DoubleChevronUp.tsx b/packages/icons/src/components/DoubleChevronUp.tsx index 845317a6c8..f970823f1c 100644 --- a/packages/icons/src/components/DoubleChevronUp.tsx +++ b/packages/icons/src/components/DoubleChevronUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DoubleChevronUpIconProps = IconProps; diff --git a/packages/icons/src/components/Download.tsx b/packages/icons/src/components/Download.tsx index 15358ccf4b..c13d53f428 100644 --- a/packages/icons/src/components/Download.tsx +++ b/packages/icons/src/components/Download.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DownloadIconProps = IconProps; @@ -18,5 +18,5 @@ export const DownloadIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/DragRow.tsx b/packages/icons/src/components/DragRow.tsx index 964b758770..3838e5f923 100644 --- a/packages/icons/src/components/DragRow.tsx +++ b/packages/icons/src/components/DragRow.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type DragRowIconProps = IconProps; @@ -18,5 +18,5 @@ export const DragRowIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Edit.tsx b/packages/icons/src/components/Edit.tsx index d1db5f94ac..74a9206871 100644 --- a/packages/icons/src/components/Edit.tsx +++ b/packages/icons/src/components/Edit.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type EditIconProps = IconProps; @@ -24,5 +24,5 @@ export const EditIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/EditSolid.tsx b/packages/icons/src/components/EditSolid.tsx index d0d89d2178..9e4b67f2a7 100644 --- a/packages/icons/src/components/EditSolid.tsx +++ b/packages/icons/src/components/EditSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type EditSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const EditSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Error.tsx b/packages/icons/src/components/Error.tsx index f4beed49b6..75a50b254b 100644 --- a/packages/icons/src/components/Error.tsx +++ b/packages/icons/src/components/Error.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ErrorIconProps = IconProps; @@ -23,5 +23,5 @@ export const ErrorIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ErrorExecute.tsx b/packages/icons/src/components/ErrorExecute.tsx index eceb792b1a..73120ccf25 100644 --- a/packages/icons/src/components/ErrorExecute.tsx +++ b/packages/icons/src/components/ErrorExecute.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ErrorExecuteIconProps = IconProps; diff --git a/packages/icons/src/components/ErrorSolid.tsx b/packages/icons/src/components/ErrorSolid.tsx index 80689c5d13..ea9fdabbea 100644 --- a/packages/icons/src/components/ErrorSolid.tsx +++ b/packages/icons/src/components/ErrorSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ErrorSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ErrorSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Expand.tsx b/packages/icons/src/components/Expand.tsx index e49e181d04..81778b5d03 100644 --- a/packages/icons/src/components/Expand.tsx +++ b/packages/icons/src/components/Expand.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ExpandIconProps = IconProps; @@ -18,5 +18,5 @@ export const ExpandIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ExpandAll.tsx b/packages/icons/src/components/ExpandAll.tsx index 3502e9fa5d..a94dc1601f 100644 --- a/packages/icons/src/components/ExpandAll.tsx +++ b/packages/icons/src/components/ExpandAll.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ExpandAllIconProps = IconProps; @@ -18,5 +18,5 @@ export const ExpandAllIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Export.tsx b/packages/icons/src/components/Export.tsx index fa5921905c..b6e0745961 100644 --- a/packages/icons/src/components/Export.tsx +++ b/packages/icons/src/components/Export.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ExportIconProps = IconProps; @@ -19,5 +19,5 @@ export const ExportIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ExportSolid.tsx b/packages/icons/src/components/ExportSolid.tsx index 8ace775a56..87ce40c8d0 100644 --- a/packages/icons/src/components/ExportSolid.tsx +++ b/packages/icons/src/components/ExportSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ExportSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ExportSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Favorite.tsx b/packages/icons/src/components/Favorite.tsx index 339ee48b99..9caeee6bbc 100644 --- a/packages/icons/src/components/Favorite.tsx +++ b/packages/icons/src/components/Favorite.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FavoriteIconProps = IconProps; @@ -18,5 +18,5 @@ export const FavoriteIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/FavoriteSolid.tsx b/packages/icons/src/components/FavoriteSolid.tsx index b069ffa42e..8842f67639 100644 --- a/packages/icons/src/components/FavoriteSolid.tsx +++ b/packages/icons/src/components/FavoriteSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FavoriteSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Filter.tsx b/packages/icons/src/components/Filter.tsx index b737794e52..bfd41926ca 100644 --- a/packages/icons/src/components/Filter.tsx +++ b/packages/icons/src/components/Filter.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FilterIconProps = IconProps; @@ -22,5 +22,5 @@ export const FilterIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/FilterClear.tsx b/packages/icons/src/components/FilterClear.tsx index 2b12c7ddf1..359f596dbb 100644 --- a/packages/icons/src/components/FilterClear.tsx +++ b/packages/icons/src/components/FilterClear.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FilterClearIconProps = IconProps; @@ -19,5 +19,5 @@ export const FilterClearIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/FilterClearSolid.tsx b/packages/icons/src/components/FilterClearSolid.tsx index b82074b0a8..5fa5a88c62 100644 --- a/packages/icons/src/components/FilterClearSolid.tsx +++ b/packages/icons/src/components/FilterClearSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FilterClearSolidIconProps = IconProps; diff --git a/packages/icons/src/components/FilterSolid.tsx b/packages/icons/src/components/FilterSolid.tsx index da94229750..93431f9786 100644 --- a/packages/icons/src/components/FilterSolid.tsx +++ b/packages/icons/src/components/FilterSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FilterSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const FilterSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Flag.tsx b/packages/icons/src/components/Flag.tsx index 10671872c5..d0e9f9aa8a 100644 --- a/packages/icons/src/components/Flag.tsx +++ b/packages/icons/src/components/Flag.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FlagIconProps = IconProps; @@ -18,5 +18,5 @@ export const FlagIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/FlagSolid.tsx b/packages/icons/src/components/FlagSolid.tsx index 2a4b9d309e..ba56a2bdc2 100644 --- a/packages/icons/src/components/FlagSolid.tsx +++ b/packages/icons/src/components/FlagSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FlagSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const FlagSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/FolderClosed.tsx b/packages/icons/src/components/FolderClosed.tsx index 9ea401319b..76ff909032 100644 --- a/packages/icons/src/components/FolderClosed.tsx +++ b/packages/icons/src/components/FolderClosed.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FolderClosedIconProps = IconProps; diff --git a/packages/icons/src/components/FolderClosedSolid.tsx b/packages/icons/src/components/FolderClosedSolid.tsx index cb37bcfe31..8de62e15b1 100644 --- a/packages/icons/src/components/FolderClosedSolid.tsx +++ b/packages/icons/src/components/FolderClosedSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FolderClosedSolidIconProps = IconProps; diff --git a/packages/icons/src/components/FolderOpen.tsx b/packages/icons/src/components/FolderOpen.tsx index 9df7d3bf4b..9c3cca02f9 100644 --- a/packages/icons/src/components/FolderOpen.tsx +++ b/packages/icons/src/components/FolderOpen.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FolderOpenIconProps = IconProps; @@ -22,5 +22,5 @@ export const FolderOpenIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/FolderOpenSolid.tsx b/packages/icons/src/components/FolderOpenSolid.tsx index 836017f16e..4dc230b51c 100644 --- a/packages/icons/src/components/FolderOpenSolid.tsx +++ b/packages/icons/src/components/FolderOpenSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type FolderOpenSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Forward10.tsx b/packages/icons/src/components/Forward10.tsx index 04b82e3ed9..a7ba000ec0 100644 --- a/packages/icons/src/components/Forward10.tsx +++ b/packages/icons/src/components/Forward10.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Forward10IconProps = IconProps; @@ -19,5 +19,5 @@ export const Forward10Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Forward15.tsx b/packages/icons/src/components/Forward15.tsx index b892ad1894..0ec6faca69 100644 --- a/packages/icons/src/components/Forward15.tsx +++ b/packages/icons/src/components/Forward15.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Forward15IconProps = IconProps; @@ -19,5 +19,5 @@ export const Forward15Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Forward30.tsx b/packages/icons/src/components/Forward30.tsx index 629d8bdff8..4d6c16fee4 100644 --- a/packages/icons/src/components/Forward30.tsx +++ b/packages/icons/src/components/Forward30.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Forward30IconProps = IconProps; @@ -19,5 +19,5 @@ export const Forward30Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Forward5.tsx b/packages/icons/src/components/Forward5.tsx index de6d598a5f..d77663328a 100644 --- a/packages/icons/src/components/Forward5.tsx +++ b/packages/icons/src/components/Forward5.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Forward5IconProps = IconProps; @@ -19,5 +19,5 @@ export const Forward5Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Github.tsx b/packages/icons/src/components/Github.tsx index e253903230..295293c03d 100644 --- a/packages/icons/src/components/Github.tsx +++ b/packages/icons/src/components/Github.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GithubIconProps = IconProps; @@ -18,5 +18,5 @@ export const GithubIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Globe.tsx b/packages/icons/src/components/Globe.tsx index 3a39c399a5..f29cf3f4a3 100644 --- a/packages/icons/src/components/Globe.tsx +++ b/packages/icons/src/components/Globe.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GlobeIconProps = IconProps; @@ -22,5 +22,5 @@ export const GlobeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GlobeSolid.tsx b/packages/icons/src/components/GlobeSolid.tsx index aed5c55bf0..9f2c0c34bf 100644 --- a/packages/icons/src/components/GlobeSolid.tsx +++ b/packages/icons/src/components/GlobeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GlobeSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const GlobeSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Grid.tsx b/packages/icons/src/components/Grid.tsx index 1b353cf266..7183a4db3e 100644 --- a/packages/icons/src/components/Grid.tsx +++ b/packages/icons/src/components/Grid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GridIconProps = IconProps; @@ -22,5 +22,5 @@ export const GridIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GridSolid.tsx b/packages/icons/src/components/GridSolid.tsx index 543c7177f0..c67a07bfcf 100644 --- a/packages/icons/src/components/GridSolid.tsx +++ b/packages/icons/src/components/GridSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GridSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const GridSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Group.tsx b/packages/icons/src/components/Group.tsx index 3e4442a6b9..9b10b7fe95 100644 --- a/packages/icons/src/components/Group.tsx +++ b/packages/icons/src/components/Group.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GroupIconProps = IconProps; @@ -27,5 +27,5 @@ export const GroupIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GroupSolid.tsx b/packages/icons/src/components/GroupSolid.tsx index 67145103d0..10d7332c33 100644 --- a/packages/icons/src/components/GroupSolid.tsx +++ b/packages/icons/src/components/GroupSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GroupSolidIconProps = IconProps; @@ -24,5 +24,5 @@ export const GroupSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GuideClosed.tsx b/packages/icons/src/components/GuideClosed.tsx index fdd0385284..cbfcc316d1 100644 --- a/packages/icons/src/components/GuideClosed.tsx +++ b/packages/icons/src/components/GuideClosed.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GuideClosedIconProps = IconProps; @@ -23,5 +23,5 @@ export const GuideClosedIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GuideClosedSolid.tsx b/packages/icons/src/components/GuideClosedSolid.tsx index fa69c5be5e..40ac91053d 100644 --- a/packages/icons/src/components/GuideClosedSolid.tsx +++ b/packages/icons/src/components/GuideClosedSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GuideClosedSolidIconProps = IconProps; diff --git a/packages/icons/src/components/GuideOpen.tsx b/packages/icons/src/components/GuideOpen.tsx index 231a6c207d..856063843f 100644 --- a/packages/icons/src/components/GuideOpen.tsx +++ b/packages/icons/src/components/GuideOpen.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GuideOpenIconProps = IconProps; @@ -23,5 +23,5 @@ export const GuideOpenIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/GuideOpenSolid.tsx b/packages/icons/src/components/GuideOpenSolid.tsx index 3d5d2a3a6e..7d25abb5d2 100644 --- a/packages/icons/src/components/GuideOpenSolid.tsx +++ b/packages/icons/src/components/GuideOpenSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type GuideOpenSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Headphones.tsx b/packages/icons/src/components/Headphones.tsx index 36a24f0abf..7259e857e2 100644 --- a/packages/icons/src/components/Headphones.tsx +++ b/packages/icons/src/components/Headphones.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HeadphonesIconProps = IconProps; @@ -22,5 +22,5 @@ export const HeadphonesIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/HeadphonesDisabled.tsx b/packages/icons/src/components/HeadphonesDisabled.tsx index 5d84f919de..d277e74113 100644 --- a/packages/icons/src/components/HeadphonesDisabled.tsx +++ b/packages/icons/src/components/HeadphonesDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HeadphonesDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/HeadphonesDisabledSolid.tsx b/packages/icons/src/components/HeadphonesDisabledSolid.tsx index ecde1c9227..b054193f5b 100644 --- a/packages/icons/src/components/HeadphonesDisabledSolid.tsx +++ b/packages/icons/src/components/HeadphonesDisabledSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HeadphonesDisabledSolidIconProps = IconProps; @@ -10,7 +10,7 @@ export const HeadphonesDisabledSolidIcon = forwardRef< HeadphonesDisabledSolidIconProps >(function HeadphonesDisabledSolidIcon( props: HeadphonesDisabledSolidIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/HelpSolid.tsx b/packages/icons/src/components/HelpSolid.tsx index 0bbf685f10..be9038037d 100644 --- a/packages/icons/src/components/HelpSolid.tsx +++ b/packages/icons/src/components/HelpSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HelpSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const HelpSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Hidden.tsx b/packages/icons/src/components/Hidden.tsx index f69b730e00..53ff63c1e0 100644 --- a/packages/icons/src/components/Hidden.tsx +++ b/packages/icons/src/components/Hidden.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HiddenIconProps = IconProps; @@ -20,5 +20,5 @@ export const HiddenIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/HiddenSolid.tsx b/packages/icons/src/components/HiddenSolid.tsx index c46c6a5302..898468eb73 100644 --- a/packages/icons/src/components/HiddenSolid.tsx +++ b/packages/icons/src/components/HiddenSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HiddenSolidIconProps = IconProps; @@ -20,5 +20,5 @@ export const HiddenSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/History.tsx b/packages/icons/src/components/History.tsx index e69d424b9f..a02f0fab6f 100644 --- a/packages/icons/src/components/History.tsx +++ b/packages/icons/src/components/History.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HistoryIconProps = IconProps; @@ -19,5 +19,5 @@ export const HistoryIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Home.tsx b/packages/icons/src/components/Home.tsx index ebc3c85bae..26bd35be1f 100644 --- a/packages/icons/src/components/Home.tsx +++ b/packages/icons/src/components/Home.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HomeIconProps = IconProps; @@ -22,5 +22,5 @@ export const HomeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/HomeSolid.tsx b/packages/icons/src/components/HomeSolid.tsx index cf5a5f1fd7..03f5ba4fa8 100644 --- a/packages/icons/src/components/HomeSolid.tsx +++ b/packages/icons/src/components/HomeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HomeSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const HomeSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Hospital.tsx b/packages/icons/src/components/Hospital.tsx index 18e722d9f8..346cf013c2 100644 --- a/packages/icons/src/components/Hospital.tsx +++ b/packages/icons/src/components/Hospital.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HospitalIconProps = IconProps; @@ -23,5 +23,5 @@ export const HospitalIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/HospitalSolid.tsx b/packages/icons/src/components/HospitalSolid.tsx index b4fcc781b5..209a95aa68 100644 --- a/packages/icons/src/components/HospitalSolid.tsx +++ b/packages/icons/src/components/HospitalSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type HospitalSolidIconProps = IconProps; diff --git a/packages/icons/src/components/IconFigma.tsx b/packages/icons/src/components/IconFigma.tsx index d5ffc29521..d42f6f8994 100644 --- a/packages/icons/src/components/IconFigma.tsx +++ b/packages/icons/src/components/IconFigma.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type IconFigmaIconProps = IconProps; @@ -22,5 +22,5 @@ export const IconFigmaIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Image.tsx b/packages/icons/src/components/Image.tsx index c051002beb..0dcb6205bb 100644 --- a/packages/icons/src/components/Image.tsx +++ b/packages/icons/src/components/Image.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ImageIconProps = IconProps; @@ -23,5 +23,5 @@ export const ImageIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ImageSolid.tsx b/packages/icons/src/components/ImageSolid.tsx index dde4846307..e61c67af6b 100644 --- a/packages/icons/src/components/ImageSolid.tsx +++ b/packages/icons/src/components/ImageSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ImageSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ImageSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Import.tsx b/packages/icons/src/components/Import.tsx index adc7840deb..6c6fc9c06b 100644 --- a/packages/icons/src/components/Import.tsx +++ b/packages/icons/src/components/Import.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ImportIconProps = IconProps; @@ -19,5 +19,5 @@ export const ImportIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ImportSolid.tsx b/packages/icons/src/components/ImportSolid.tsx index 3e515039cf..4f419a4f12 100644 --- a/packages/icons/src/components/ImportSolid.tsx +++ b/packages/icons/src/components/ImportSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ImportSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ImportSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Inbox.tsx b/packages/icons/src/components/Inbox.tsx index c5f79ad983..78b04914af 100644 --- a/packages/icons/src/components/Inbox.tsx +++ b/packages/icons/src/components/Inbox.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type InboxIconProps = IconProps; @@ -23,5 +23,5 @@ export const InboxIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/InboxSolid.tsx b/packages/icons/src/components/InboxSolid.tsx index 118bb96b49..75de90bc9e 100644 --- a/packages/icons/src/components/InboxSolid.tsx +++ b/packages/icons/src/components/InboxSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type InboxSolidIconProps = IconProps; @@ -19,5 +19,5 @@ export const InboxSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Info.tsx b/packages/icons/src/components/Info.tsx index 8fdfd58182..6eaffa16d7 100644 --- a/packages/icons/src/components/Info.tsx +++ b/packages/icons/src/components/Info.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type InfoIconProps = IconProps; @@ -23,5 +23,5 @@ export const InfoIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/InfoSolid.tsx b/packages/icons/src/components/InfoSolid.tsx index 7b45cfe773..741ff077b8 100644 --- a/packages/icons/src/components/InfoSolid.tsx +++ b/packages/icons/src/components/InfoSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type InfoSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const InfoSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Jigsaw.tsx b/packages/icons/src/components/Jigsaw.tsx index 21fd9a6bd2..15d9e078f3 100644 --- a/packages/icons/src/components/Jigsaw.tsx +++ b/packages/icons/src/components/Jigsaw.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type JigsawIconProps = IconProps; @@ -22,5 +22,5 @@ export const JigsawIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/JigsawSolid.tsx b/packages/icons/src/components/JigsawSolid.tsx index 62cda56e1a..012b0d45f3 100644 --- a/packages/icons/src/components/JigsawSolid.tsx +++ b/packages/icons/src/components/JigsawSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type JigsawSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const JigsawSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Key.tsx b/packages/icons/src/components/Key.tsx index 8ea2a46a1f..75f4043ee7 100644 --- a/packages/icons/src/components/Key.tsx +++ b/packages/icons/src/components/Key.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyIconProps = IconProps; export const KeyIcon = forwardRef(function KeyIcon( props: KeyIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeyCommand.tsx b/packages/icons/src/components/KeyCommand.tsx index c0eedb1d44..df0a232389 100644 --- a/packages/icons/src/components/KeyCommand.tsx +++ b/packages/icons/src/components/KeyCommand.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyCommandIconProps = IconProps; @@ -18,5 +18,5 @@ export const KeyCommandIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/KeyControl.tsx b/packages/icons/src/components/KeyControl.tsx index 0d3a904142..a7b3d40cc0 100644 --- a/packages/icons/src/components/KeyControl.tsx +++ b/packages/icons/src/components/KeyControl.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyControlIconProps = IconProps; @@ -22,5 +22,5 @@ export const KeyControlIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeyEnter.tsx b/packages/icons/src/components/KeyEnter.tsx index f0455b30da..be173a4370 100644 --- a/packages/icons/src/components/KeyEnter.tsx +++ b/packages/icons/src/components/KeyEnter.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyEnterIconProps = IconProps; @@ -22,5 +22,5 @@ export const KeyEnterIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeyOption.tsx b/packages/icons/src/components/KeyOption.tsx index 74d654f1ce..64324c9680 100644 --- a/packages/icons/src/components/KeyOption.tsx +++ b/packages/icons/src/components/KeyOption.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyOptionIconProps = IconProps; @@ -22,5 +22,5 @@ export const KeyOptionIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeyShift.tsx b/packages/icons/src/components/KeyShift.tsx index c17c22022b..18bcbb0d9b 100644 --- a/packages/icons/src/components/KeyShift.tsx +++ b/packages/icons/src/components/KeyShift.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyShiftIconProps = IconProps; @@ -22,5 +22,5 @@ export const KeyShiftIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeySolid.tsx b/packages/icons/src/components/KeySolid.tsx index 65b934512c..e5546e6c25 100644 --- a/packages/icons/src/components/KeySolid.tsx +++ b/packages/icons/src/components/KeySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeySolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const KeySolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/KeyTab.tsx b/packages/icons/src/components/KeyTab.tsx index e058c26334..b2b1628451 100644 --- a/packages/icons/src/components/KeyTab.tsx +++ b/packages/icons/src/components/KeyTab.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type KeyTabIconProps = IconProps; @@ -18,5 +18,5 @@ export const KeyTabIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Laptop.tsx b/packages/icons/src/components/Laptop.tsx index b7e7df7453..533951cf24 100644 --- a/packages/icons/src/components/Laptop.tsx +++ b/packages/icons/src/components/Laptop.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LaptopIconProps = IconProps; @@ -22,5 +22,5 @@ export const LaptopIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/LaptopSolid.tsx b/packages/icons/src/components/LaptopSolid.tsx index 52a6d9f00f..077754dcd7 100644 --- a/packages/icons/src/components/LaptopSolid.tsx +++ b/packages/icons/src/components/LaptopSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LaptopSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const LaptopSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Layers.tsx b/packages/icons/src/components/Layers.tsx index 89fb545d15..7243c82753 100644 --- a/packages/icons/src/components/Layers.tsx +++ b/packages/icons/src/components/Layers.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LayersIconProps = IconProps; @@ -22,5 +22,5 @@ export const LayersIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/LayersSolid.tsx b/packages/icons/src/components/LayersSolid.tsx index e97cfae8fe..8af5f0f4a5 100644 --- a/packages/icons/src/components/LayersSolid.tsx +++ b/packages/icons/src/components/LayersSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LayersSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const LayersSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Light.tsx b/packages/icons/src/components/Light.tsx index 24b91e224c..7e9fdcb30c 100644 --- a/packages/icons/src/components/Light.tsx +++ b/packages/icons/src/components/Light.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LightIconProps = IconProps; @@ -23,5 +23,5 @@ export const LightIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/LightSolid.tsx b/packages/icons/src/components/LightSolid.tsx index 46e6c69c6a..0992cdfefe 100644 --- a/packages/icons/src/components/LightSolid.tsx +++ b/packages/icons/src/components/LightSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LightSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const LightSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/LineChart.tsx b/packages/icons/src/components/LineChart.tsx index 82900c9adb..451faeb541 100644 --- a/packages/icons/src/components/LineChart.tsx +++ b/packages/icons/src/components/LineChart.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LineChartIconProps = IconProps; @@ -22,5 +22,5 @@ export const LineChartIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/LineChartSolid.tsx b/packages/icons/src/components/LineChartSolid.tsx index b924f20cb1..52fd702ec9 100644 --- a/packages/icons/src/components/LineChartSolid.tsx +++ b/packages/icons/src/components/LineChartSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LineChartSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Linked.tsx b/packages/icons/src/components/Linked.tsx index 6d1c00091b..9b17568569 100644 --- a/packages/icons/src/components/Linked.tsx +++ b/packages/icons/src/components/Linked.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LinkedIconProps = IconProps; @@ -19,5 +19,5 @@ export const LinkedIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/List.tsx b/packages/icons/src/components/List.tsx index 6d0678f403..702d0c4c82 100644 --- a/packages/icons/src/components/List.tsx +++ b/packages/icons/src/components/List.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ListIconProps = IconProps; @@ -18,5 +18,5 @@ export const ListIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Loader.tsx b/packages/icons/src/components/Loader.tsx index 5d6673bfe0..f098b4c2ff 100644 --- a/packages/icons/src/components/Loader.tsx +++ b/packages/icons/src/components/Loader.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LoaderIconProps = IconProps; @@ -18,5 +18,5 @@ export const LoaderIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Location.tsx b/packages/icons/src/components/Location.tsx index 1752b0204e..5ccdd9423c 100644 --- a/packages/icons/src/components/Location.tsx +++ b/packages/icons/src/components/Location.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LocationIconProps = IconProps; @@ -27,5 +27,5 @@ export const LocationIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/LocationSolid.tsx b/packages/icons/src/components/LocationSolid.tsx index 2fefee2312..a0c61a09e1 100644 --- a/packages/icons/src/components/LocationSolid.tsx +++ b/packages/icons/src/components/LocationSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LocationSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Locked.tsx b/packages/icons/src/components/Locked.tsx index 02a537a5a9..c7dfab1518 100644 --- a/packages/icons/src/components/Locked.tsx +++ b/packages/icons/src/components/Locked.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LockedIconProps = IconProps; @@ -23,5 +23,5 @@ export const LockedIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/LockedSolid.tsx b/packages/icons/src/components/LockedSolid.tsx index 3624c0f636..d06cfd301e 100644 --- a/packages/icons/src/components/LockedSolid.tsx +++ b/packages/icons/src/components/LockedSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type LockedSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const LockedSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Man.tsx b/packages/icons/src/components/Man.tsx index 9398171c7e..d66afc5124 100644 --- a/packages/icons/src/components/Man.tsx +++ b/packages/icons/src/components/Man.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ManIconProps = IconProps; export const ManIcon = forwardRef(function ManIcon( props: ManIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/ManWoman.tsx b/packages/icons/src/components/ManWoman.tsx index ed726c6c6c..d18323072b 100644 --- a/packages/icons/src/components/ManWoman.tsx +++ b/packages/icons/src/components/ManWoman.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ManWomanIconProps = IconProps; @@ -22,5 +22,5 @@ export const ManWomanIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ManWomanSolid.tsx b/packages/icons/src/components/ManWomanSolid.tsx index 5eef015122..570f342bc1 100644 --- a/packages/icons/src/components/ManWomanSolid.tsx +++ b/packages/icons/src/components/ManWomanSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ManWomanSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Map.tsx b/packages/icons/src/components/Map.tsx index ae327d72ca..990b06ac3f 100644 --- a/packages/icons/src/components/Map.tsx +++ b/packages/icons/src/components/Map.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MapIconProps = IconProps; export const MapIcon = forwardRef(function MapIcon( props: MapIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/Marker.tsx b/packages/icons/src/components/Marker.tsx index 98a52fdb1e..a82dbb4eba 100644 --- a/packages/icons/src/components/Marker.tsx +++ b/packages/icons/src/components/Marker.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MarkerIconProps = IconProps; @@ -22,5 +22,5 @@ export const MarkerIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MarkerSolid.tsx b/packages/icons/src/components/MarkerSolid.tsx index 17565d1484..7f3a5e2fe9 100644 --- a/packages/icons/src/components/MarkerSolid.tsx +++ b/packages/icons/src/components/MarkerSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MarkerSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const MarkerSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Maximize.tsx b/packages/icons/src/components/Maximize.tsx index 1a93bc699e..b3fd794720 100644 --- a/packages/icons/src/components/Maximize.tsx +++ b/packages/icons/src/components/Maximize.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MaximizeIconProps = IconProps; @@ -22,5 +22,5 @@ export const MaximizeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MaximizeSolid.tsx b/packages/icons/src/components/MaximizeSolid.tsx index b107519879..aa535320d4 100644 --- a/packages/icons/src/components/MaximizeSolid.tsx +++ b/packages/icons/src/components/MaximizeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MaximizeSolidIconProps = IconProps; diff --git a/packages/icons/src/components/MedicalKit.tsx b/packages/icons/src/components/MedicalKit.tsx index 210130d253..e1e71e2040 100644 --- a/packages/icons/src/components/MedicalKit.tsx +++ b/packages/icons/src/components/MedicalKit.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MedicalKitIconProps = IconProps; @@ -28,5 +28,5 @@ export const MedicalKitIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MedicalKitSolid.tsx b/packages/icons/src/components/MedicalKitSolid.tsx index 61462ea223..dcb1bdf0ad 100644 --- a/packages/icons/src/components/MedicalKitSolid.tsx +++ b/packages/icons/src/components/MedicalKitSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MedicalKitSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Menu.tsx b/packages/icons/src/components/Menu.tsx index b73afa21b6..f1a6dfa504 100644 --- a/packages/icons/src/components/Menu.tsx +++ b/packages/icons/src/components/Menu.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MenuIconProps = IconProps; @@ -18,5 +18,5 @@ export const MenuIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Message.tsx b/packages/icons/src/components/Message.tsx index 1582f57671..fffff4cfae 100644 --- a/packages/icons/src/components/Message.tsx +++ b/packages/icons/src/components/Message.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MessageIconProps = IconProps; @@ -22,5 +22,5 @@ export const MessageIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MessageSolid.tsx b/packages/icons/src/components/MessageSolid.tsx index befd86605d..3584bda12f 100644 --- a/packages/icons/src/components/MessageSolid.tsx +++ b/packages/icons/src/components/MessageSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MessageSolidIconProps = IconProps; diff --git a/packages/icons/src/components/MicroMenu.tsx b/packages/icons/src/components/MicroMenu.tsx index 347e95fa97..6ad1299fff 100644 --- a/packages/icons/src/components/MicroMenu.tsx +++ b/packages/icons/src/components/MicroMenu.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MicroMenuIconProps = IconProps; @@ -18,5 +18,5 @@ export const MicroMenuIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Microphone.tsx b/packages/icons/src/components/Microphone.tsx index c10f98f6a8..e64df83737 100644 --- a/packages/icons/src/components/Microphone.tsx +++ b/packages/icons/src/components/Microphone.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MicrophoneIconProps = IconProps; @@ -23,5 +23,5 @@ export const MicrophoneIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/MicrophoneDisabled.tsx b/packages/icons/src/components/MicrophoneDisabled.tsx index f83a3c7c16..e89d24a156 100644 --- a/packages/icons/src/components/MicrophoneDisabled.tsx +++ b/packages/icons/src/components/MicrophoneDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MicrophoneDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/MicrophoneDisabledSolid.tsx b/packages/icons/src/components/MicrophoneDisabledSolid.tsx index d17f77d00a..0352097fe5 100644 --- a/packages/icons/src/components/MicrophoneDisabledSolid.tsx +++ b/packages/icons/src/components/MicrophoneDisabledSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MicrophoneDisabledSolidIconProps = IconProps; @@ -10,7 +10,7 @@ export const MicrophoneDisabledSolidIcon = forwardRef< MicrophoneDisabledSolidIconProps >(function MicrophoneDisabledSolidIcon( props: MicrophoneDisabledSolidIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/Mobile.tsx b/packages/icons/src/components/Mobile.tsx index ecadddcba4..b5749535f8 100644 --- a/packages/icons/src/components/Mobile.tsx +++ b/packages/icons/src/components/Mobile.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MobileIconProps = IconProps; @@ -22,5 +22,5 @@ export const MobileIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MobileSolid.tsx b/packages/icons/src/components/MobileSolid.tsx index dc67639b14..d8f782aac0 100644 --- a/packages/icons/src/components/MobileSolid.tsx +++ b/packages/icons/src/components/MobileSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MobileSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const MobileSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Mouse.tsx b/packages/icons/src/components/Mouse.tsx index 6bd79a2693..15d431cd3e 100644 --- a/packages/icons/src/components/Mouse.tsx +++ b/packages/icons/src/components/Mouse.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MouseIconProps = IconProps; @@ -22,5 +22,5 @@ export const MouseIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MouseSolid.tsx b/packages/icons/src/components/MouseSolid.tsx index 81df8ca4f3..24067bcd53 100644 --- a/packages/icons/src/components/MouseSolid.tsx +++ b/packages/icons/src/components/MouseSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MouseSolidIconProps = IconProps; @@ -19,5 +19,5 @@ export const MouseSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/MoveAll.tsx b/packages/icons/src/components/MoveAll.tsx index 20cde1289d..618ed09649 100644 --- a/packages/icons/src/components/MoveAll.tsx +++ b/packages/icons/src/components/MoveAll.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MoveAllIconProps = IconProps; @@ -18,5 +18,5 @@ export const MoveAllIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/MoveHorizontal.tsx b/packages/icons/src/components/MoveHorizontal.tsx index c4ea176480..9c477a5f73 100644 --- a/packages/icons/src/components/MoveHorizontal.tsx +++ b/packages/icons/src/components/MoveHorizontal.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MoveHorizontalIconProps = IconProps; diff --git a/packages/icons/src/components/MoveVertical.tsx b/packages/icons/src/components/MoveVertical.tsx index afe6b8ecb8..5e2304c449 100644 --- a/packages/icons/src/components/MoveVertical.tsx +++ b/packages/icons/src/components/MoveVertical.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MoveVerticalIconProps = IconProps; diff --git a/packages/icons/src/components/Music.tsx b/packages/icons/src/components/Music.tsx index 5c377c72d6..53388038aa 100644 --- a/packages/icons/src/components/Music.tsx +++ b/packages/icons/src/components/Music.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MusicIconProps = IconProps; @@ -22,5 +22,5 @@ export const MusicIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/MusicDisabled.tsx b/packages/icons/src/components/MusicDisabled.tsx index 9e35f8c297..047c5fea9f 100644 --- a/packages/icons/src/components/MusicDisabled.tsx +++ b/packages/icons/src/components/MusicDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MusicDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/MusicDisabledSolid.tsx b/packages/icons/src/components/MusicDisabledSolid.tsx index eae20b1777..0d277af0d4 100644 --- a/packages/icons/src/components/MusicDisabledSolid.tsx +++ b/packages/icons/src/components/MusicDisabledSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MusicDisabledSolidIconProps = IconProps; diff --git a/packages/icons/src/components/MusicSolid.tsx b/packages/icons/src/components/MusicSolid.tsx index 55c6fc0987..c479856c2a 100644 --- a/packages/icons/src/components/MusicSolid.tsx +++ b/packages/icons/src/components/MusicSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type MusicSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const MusicSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Note.tsx b/packages/icons/src/components/Note.tsx index 9f7c47c8af..76e1df55b2 100644 --- a/packages/icons/src/components/Note.tsx +++ b/packages/icons/src/components/Note.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type NoteIconProps = IconProps; @@ -22,5 +22,5 @@ export const NoteIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/NoteSolid.tsx b/packages/icons/src/components/NoteSolid.tsx index 13c60b11c1..ef602db232 100644 --- a/packages/icons/src/components/NoteSolid.tsx +++ b/packages/icons/src/components/NoteSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type NoteSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const NoteSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Notification.tsx b/packages/icons/src/components/Notification.tsx index cb73ff5bef..c4ff44f785 100644 --- a/packages/icons/src/components/Notification.tsx +++ b/packages/icons/src/components/Notification.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type NotificationIconProps = IconProps; diff --git a/packages/icons/src/components/NotificationRead.tsx b/packages/icons/src/components/NotificationRead.tsx index 36014275da..c885367603 100644 --- a/packages/icons/src/components/NotificationRead.tsx +++ b/packages/icons/src/components/NotificationRead.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type NotificationReadIconProps = IconProps; diff --git a/packages/icons/src/components/NotificationReadSolid.tsx b/packages/icons/src/components/NotificationReadSolid.tsx index 6d82724e5b..e20d4ea59a 100644 --- a/packages/icons/src/components/NotificationReadSolid.tsx +++ b/packages/icons/src/components/NotificationReadSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type NotificationReadSolidIconProps = IconProps; @@ -10,7 +10,7 @@ export const NotificationReadSolidIcon = forwardRef< NotificationReadSolidIconProps >(function NotificationReadSolidIcon( props: NotificationReadSolidIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/PasteSolid.tsx b/packages/icons/src/components/PasteSolid.tsx index 9cfd533654..0e736ad54e 100644 --- a/packages/icons/src/components/PasteSolid.tsx +++ b/packages/icons/src/components/PasteSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PasteSolidIconProps = IconProps; @@ -19,5 +19,5 @@ export const PasteSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Pause.tsx b/packages/icons/src/components/Pause.tsx index 18ee632c2e..49dd71441a 100644 --- a/packages/icons/src/components/Pause.tsx +++ b/packages/icons/src/components/Pause.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PauseIconProps = IconProps; @@ -18,5 +18,5 @@ export const PauseIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/PauseSolid.tsx b/packages/icons/src/components/PauseSolid.tsx index fdb638b7e2..115a10fc4a 100644 --- a/packages/icons/src/components/PauseSolid.tsx +++ b/packages/icons/src/components/PauseSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PauseSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const PauseSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Pdf.tsx b/packages/icons/src/components/Pdf.tsx index 754f883455..c50e71f903 100644 --- a/packages/icons/src/components/Pdf.tsx +++ b/packages/icons/src/components/Pdf.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PdfIconProps = IconProps; export const PdfIcon = forwardRef(function PdfIcon( props: PdfIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/Picnic.tsx b/packages/icons/src/components/Picnic.tsx index 2c26e2f4be..31a449da44 100644 --- a/packages/icons/src/components/Picnic.tsx +++ b/packages/icons/src/components/Picnic.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PicnicIconProps = IconProps; @@ -22,5 +22,5 @@ export const PicnicIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PicnicSolid.tsx b/packages/icons/src/components/PicnicSolid.tsx index e2b002e4a2..7d9762b142 100644 --- a/packages/icons/src/components/PicnicSolid.tsx +++ b/packages/icons/src/components/PicnicSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PicnicSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const PicnicSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Pin.tsx b/packages/icons/src/components/Pin.tsx index e698201e27..2eb3de9fb1 100644 --- a/packages/icons/src/components/Pin.tsx +++ b/packages/icons/src/components/Pin.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PinIconProps = IconProps; export const PinIcon = forwardRef(function PinIcon( props: PinIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/Pivot.tsx b/packages/icons/src/components/Pivot.tsx index adad10a7e5..9539bbc0e9 100644 --- a/packages/icons/src/components/Pivot.tsx +++ b/packages/icons/src/components/Pivot.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PivotIconProps = IconProps; @@ -22,5 +22,5 @@ export const PivotIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PivotSolid.tsx b/packages/icons/src/components/PivotSolid.tsx index 874499d2eb..9a7d53257f 100644 --- a/packages/icons/src/components/PivotSolid.tsx +++ b/packages/icons/src/components/PivotSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PivotSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const PivotSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PlaceIn.tsx b/packages/icons/src/components/PlaceIn.tsx index 131378cee2..f2caf49791 100644 --- a/packages/icons/src/components/PlaceIn.tsx +++ b/packages/icons/src/components/PlaceIn.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PlaceInIconProps = IconProps; @@ -19,5 +19,5 @@ export const PlaceInIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Play.tsx b/packages/icons/src/components/Play.tsx index 605783347e..7cd59019f2 100644 --- a/packages/icons/src/components/Play.tsx +++ b/packages/icons/src/components/Play.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PlayIconProps = IconProps; @@ -22,5 +22,5 @@ export const PlayIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PlaySolid.tsx b/packages/icons/src/components/PlaySolid.tsx index c50c2b6245..a6b99a8307 100644 --- a/packages/icons/src/components/PlaySolid.tsx +++ b/packages/icons/src/components/PlaySolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PlaySolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const PlaySolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/PotFood.tsx b/packages/icons/src/components/PotFood.tsx index 3c24943824..13253570ad 100644 --- a/packages/icons/src/components/PotFood.tsx +++ b/packages/icons/src/components/PotFood.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PotFoodIconProps = IconProps; @@ -23,5 +23,5 @@ export const PotFoodIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PotFoodSolid.tsx b/packages/icons/src/components/PotFoodSolid.tsx index c0d52b17ec..5813633053 100644 --- a/packages/icons/src/components/PotFoodSolid.tsx +++ b/packages/icons/src/components/PotFoodSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PotFoodSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Presentation.tsx b/packages/icons/src/components/Presentation.tsx index 8aa2999a22..07bf5d5fdf 100644 --- a/packages/icons/src/components/Presentation.tsx +++ b/packages/icons/src/components/Presentation.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PresentationIconProps = IconProps; diff --git a/packages/icons/src/components/PresentationSolid.tsx b/packages/icons/src/components/PresentationSolid.tsx index 2ac58c1099..4e09c2b4f6 100644 --- a/packages/icons/src/components/PresentationSolid.tsx +++ b/packages/icons/src/components/PresentationSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PresentationSolidIconProps = IconProps; diff --git a/packages/icons/src/components/PriceLadder.tsx b/packages/icons/src/components/PriceLadder.tsx index 6211b7f6ee..f05b62149a 100644 --- a/packages/icons/src/components/PriceLadder.tsx +++ b/packages/icons/src/components/PriceLadder.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PriceLadderIconProps = IconProps; @@ -22,5 +22,5 @@ export const PriceLadderIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Print.tsx b/packages/icons/src/components/Print.tsx index 6197d2abc3..63a0d129a2 100644 --- a/packages/icons/src/components/Print.tsx +++ b/packages/icons/src/components/Print.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PrintIconProps = IconProps; @@ -23,5 +23,5 @@ export const PrintIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/PrintSolid.tsx b/packages/icons/src/components/PrintSolid.tsx index 35178dcc66..5888fb78a7 100644 --- a/packages/icons/src/components/PrintSolid.tsx +++ b/packages/icons/src/components/PrintSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type PrintSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const PrintSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ProgressCancelled.tsx b/packages/icons/src/components/ProgressCancelled.tsx index 1e835c1392..0d753b3794 100644 --- a/packages/icons/src/components/ProgressCancelled.tsx +++ b/packages/icons/src/components/ProgressCancelled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressCancelledIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressClosed.tsx b/packages/icons/src/components/ProgressClosed.tsx index bfebeb07b1..c2c2990486 100644 --- a/packages/icons/src/components/ProgressClosed.tsx +++ b/packages/icons/src/components/ProgressClosed.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressClosedIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressComplete.tsx b/packages/icons/src/components/ProgressComplete.tsx index 39b6282619..5fed5a307a 100644 --- a/packages/icons/src/components/ProgressComplete.tsx +++ b/packages/icons/src/components/ProgressComplete.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressCompleteIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressDraft.tsx b/packages/icons/src/components/ProgressDraft.tsx index 4dfe39a9be..9dda033a56 100644 --- a/packages/icons/src/components/ProgressDraft.tsx +++ b/packages/icons/src/components/ProgressDraft.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressDraftIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressInprogress.tsx b/packages/icons/src/components/ProgressInprogress.tsx index 9f593071be..5f964308fa 100644 --- a/packages/icons/src/components/ProgressInprogress.tsx +++ b/packages/icons/src/components/ProgressInprogress.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressInprogressIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressOnhold.tsx b/packages/icons/src/components/ProgressOnhold.tsx index 1c0ccb3682..d7b561a553 100644 --- a/packages/icons/src/components/ProgressOnhold.tsx +++ b/packages/icons/src/components/ProgressOnhold.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressOnholdIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressPending.tsx b/packages/icons/src/components/ProgressPending.tsx index 7e5ec1938c..9a8b6d3706 100644 --- a/packages/icons/src/components/ProgressPending.tsx +++ b/packages/icons/src/components/ProgressPending.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressPendingIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressRejected.tsx b/packages/icons/src/components/ProgressRejected.tsx index c77ad3c03a..d22e68e3b7 100644 --- a/packages/icons/src/components/ProgressRejected.tsx +++ b/packages/icons/src/components/ProgressRejected.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressRejectedIconProps = IconProps; diff --git a/packages/icons/src/components/ProgressTodo.tsx b/packages/icons/src/components/ProgressTodo.tsx index d960e497de..4e9274df7b 100644 --- a/packages/icons/src/components/ProgressTodo.tsx +++ b/packages/icons/src/components/ProgressTodo.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProgressTodoIconProps = IconProps; diff --git a/packages/icons/src/components/Protection.tsx b/packages/icons/src/components/Protection.tsx index 156d4b2f23..7b4852bfe7 100644 --- a/packages/icons/src/components/Protection.tsx +++ b/packages/icons/src/components/Protection.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProtectionIconProps = IconProps; @@ -22,5 +22,5 @@ export const ProtectionIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ProtectionSolid.tsx b/packages/icons/src/components/ProtectionSolid.tsx index 62a20f1154..40445db6d3 100644 --- a/packages/icons/src/components/ProtectionSolid.tsx +++ b/packages/icons/src/components/ProtectionSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ProtectionSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Receipt.tsx b/packages/icons/src/components/Receipt.tsx index 8e545ac85d..1d261a9e74 100644 --- a/packages/icons/src/components/Receipt.tsx +++ b/packages/icons/src/components/Receipt.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ReceiptIconProps = IconProps; @@ -23,5 +23,5 @@ export const ReceiptIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ReceiptSolid.tsx b/packages/icons/src/components/ReceiptSolid.tsx index d9a82fbd70..e672cf3393 100644 --- a/packages/icons/src/components/ReceiptSolid.tsx +++ b/packages/icons/src/components/ReceiptSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ReceiptSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Redo.tsx b/packages/icons/src/components/Redo.tsx index 4afcc92875..54c565c242 100644 --- a/packages/icons/src/components/Redo.tsx +++ b/packages/icons/src/components/Redo.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RedoIconProps = IconProps; @@ -18,5 +18,5 @@ export const RedoIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Refresh.tsx b/packages/icons/src/components/Refresh.tsx index 04aae77d8a..c914601857 100644 --- a/packages/icons/src/components/Refresh.tsx +++ b/packages/icons/src/components/Refresh.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RefreshIconProps = IconProps; @@ -18,5 +18,5 @@ export const RefreshIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Remove.tsx b/packages/icons/src/components/Remove.tsx index f2b25ade4f..71a4b608ae 100644 --- a/packages/icons/src/components/Remove.tsx +++ b/packages/icons/src/components/Remove.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RemoveIconProps = IconProps; @@ -18,5 +18,5 @@ export const RemoveIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/RemoveDocument.tsx b/packages/icons/src/components/RemoveDocument.tsx index 3c9b0f25e3..5b9f338f9a 100644 --- a/packages/icons/src/components/RemoveDocument.tsx +++ b/packages/icons/src/components/RemoveDocument.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RemoveDocumentIconProps = IconProps; diff --git a/packages/icons/src/components/RemoveDocumentSolid.tsx b/packages/icons/src/components/RemoveDocumentSolid.tsx index 606fbc8b86..d44cc6c7cf 100644 --- a/packages/icons/src/components/RemoveDocumentSolid.tsx +++ b/packages/icons/src/components/RemoveDocumentSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RemoveDocumentSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Replay10.tsx b/packages/icons/src/components/Replay10.tsx index 4f80677f75..bdcaf3d4dc 100644 --- a/packages/icons/src/components/Replay10.tsx +++ b/packages/icons/src/components/Replay10.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Replay10IconProps = IconProps; @@ -19,5 +19,5 @@ export const Replay10Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Replay15.tsx b/packages/icons/src/components/Replay15.tsx index 78e1f55892..77dbc4957c 100644 --- a/packages/icons/src/components/Replay15.tsx +++ b/packages/icons/src/components/Replay15.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Replay15IconProps = IconProps; @@ -19,5 +19,5 @@ export const Replay15Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Replay30.tsx b/packages/icons/src/components/Replay30.tsx index 66c689cd5e..15d1263426 100644 --- a/packages/icons/src/components/Replay30.tsx +++ b/packages/icons/src/components/Replay30.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Replay30IconProps = IconProps; @@ -19,5 +19,5 @@ export const Replay30Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Replay5.tsx b/packages/icons/src/components/Replay5.tsx index 666563472d..d1407d0270 100644 --- a/packages/icons/src/components/Replay5.tsx +++ b/packages/icons/src/components/Replay5.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type Replay5IconProps = IconProps; @@ -18,5 +18,5 @@ export const Replay5Icon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Restore.tsx b/packages/icons/src/components/Restore.tsx index 8e8a044487..02538cc10e 100644 --- a/packages/icons/src/components/Restore.tsx +++ b/packages/icons/src/components/Restore.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RestoreIconProps = IconProps; @@ -19,5 +19,5 @@ export const RestoreIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/RunReport.tsx b/packages/icons/src/components/RunReport.tsx index eafad62540..37d05d53ad 100644 --- a/packages/icons/src/components/RunReport.tsx +++ b/packages/icons/src/components/RunReport.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RunReportIconProps = IconProps; @@ -23,5 +23,5 @@ export const RunReportIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/RunReportSolid.tsx b/packages/icons/src/components/RunReportSolid.tsx index 9371e6e93b..2b85dce86f 100644 --- a/packages/icons/src/components/RunReportSolid.tsx +++ b/packages/icons/src/components/RunReportSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type RunReportSolidIconProps = IconProps; diff --git a/packages/icons/src/components/SaltShaker.tsx b/packages/icons/src/components/SaltShaker.tsx index ea1eaea206..f7917cdf4c 100644 --- a/packages/icons/src/components/SaltShaker.tsx +++ b/packages/icons/src/components/SaltShaker.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SaltShakerIconProps = IconProps; @@ -24,5 +24,5 @@ export const SaltShakerIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/SaltShakerSolid.tsx b/packages/icons/src/components/SaltShakerSolid.tsx index a43404ba4f..576892416d 100644 --- a/packages/icons/src/components/SaltShakerSolid.tsx +++ b/packages/icons/src/components/SaltShakerSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SaltShakerSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Save.tsx b/packages/icons/src/components/Save.tsx index d8797719d7..84ccfae92c 100644 --- a/packages/icons/src/components/Save.tsx +++ b/packages/icons/src/components/Save.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SaveIconProps = IconProps; @@ -27,5 +27,5 @@ export const SaveIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SaveSolid.tsx b/packages/icons/src/components/SaveSolid.tsx index 0d895e3478..2a125ff3c5 100644 --- a/packages/icons/src/components/SaveSolid.tsx +++ b/packages/icons/src/components/SaveSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SaveSolidIconProps = IconProps; @@ -24,5 +24,5 @@ export const SaveSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Scales.tsx b/packages/icons/src/components/Scales.tsx index 8e98270b00..d1596fe6d9 100644 --- a/packages/icons/src/components/Scales.tsx +++ b/packages/icons/src/components/Scales.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ScalesIconProps = IconProps; @@ -27,5 +27,5 @@ export const ScalesIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ScalesSolid.tsx b/packages/icons/src/components/ScalesSolid.tsx index d639895ee1..2ccc8f13eb 100644 --- a/packages/icons/src/components/ScalesSolid.tsx +++ b/packages/icons/src/components/ScalesSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ScalesSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const ScalesSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ScheduleTime.tsx b/packages/icons/src/components/ScheduleTime.tsx index 26d213ef9a..b18b2d0217 100644 --- a/packages/icons/src/components/ScheduleTime.tsx +++ b/packages/icons/src/components/ScheduleTime.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ScheduleTimeIconProps = IconProps; diff --git a/packages/icons/src/components/ScheduleTimeSolid.tsx b/packages/icons/src/components/ScheduleTimeSolid.tsx index af593f10c5..991b18b430 100644 --- a/packages/icons/src/components/ScheduleTimeSolid.tsx +++ b/packages/icons/src/components/ScheduleTimeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ScheduleTimeSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Search.tsx b/packages/icons/src/components/Search.tsx index 8768e6da09..74495051c0 100644 --- a/packages/icons/src/components/Search.tsx +++ b/packages/icons/src/components/Search.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SearchIconProps = IconProps; @@ -22,5 +22,5 @@ export const SearchIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SearchSolid.tsx b/packages/icons/src/components/SearchSolid.tsx index 35ec27e7de..a2cdba9a32 100644 --- a/packages/icons/src/components/SearchSolid.tsx +++ b/packages/icons/src/components/SearchSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SearchSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const SearchSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SemanticDissatisfied.tsx b/packages/icons/src/components/SemanticDissatisfied.tsx index 87954eedf9..b89e57d351 100644 --- a/packages/icons/src/components/SemanticDissatisfied.tsx +++ b/packages/icons/src/components/SemanticDissatisfied.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SemanticDissatisfiedIconProps = IconProps; diff --git a/packages/icons/src/components/SemanticDissatisfiedSolid.tsx b/packages/icons/src/components/SemanticDissatisfiedSolid.tsx index 7b9266b626..fc4aa4b3b0 100644 --- a/packages/icons/src/components/SemanticDissatisfiedSolid.tsx +++ b/packages/icons/src/components/SemanticDissatisfiedSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SemanticDissatisfiedSolidIconProps = IconProps; @@ -10,7 +10,7 @@ export const SemanticDissatisfiedSolidIcon = forwardRef< SemanticDissatisfiedSolidIconProps >(function SemanticDissatisfiedSolidIcon( props: SemanticDissatisfiedSolidIconProps, - ref + ref, ) { return ( (function SemanticSatisfiedSolidIcon( props: SemanticSatisfiedSolidIconProps, - ref + ref, ) { return ( (function SemanticVeryDissatisfiedIcon( props: SemanticVeryDissatisfiedIconProps, - ref + ref, ) { return ( (function SemanticVeryDissatisfiedSolidIcon( props: SemanticVeryDissatisfiedSolidIconProps, - ref + ref, ) { return ( (function SemanticVerySatisfiedIcon( props: SemanticVerySatisfiedIconProps, - ref + ref, ) { return ( (function SemanticVerySatisfiedSolidIcon( props: SemanticVerySatisfiedSolidIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/components/SendSolid.tsx b/packages/icons/src/components/SendSolid.tsx index 080223c03c..79f3835974 100644 --- a/packages/icons/src/components/SendSolid.tsx +++ b/packages/icons/src/components/SendSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SendSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const SendSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Settings.tsx b/packages/icons/src/components/Settings.tsx index 07bf645af6..dcd9aad571 100644 --- a/packages/icons/src/components/Settings.tsx +++ b/packages/icons/src/components/Settings.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SettingsIconProps = IconProps; @@ -27,5 +27,5 @@ export const SettingsIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SettingsSolid.tsx b/packages/icons/src/components/SettingsSolid.tsx index 78bd554383..f1e6a80502 100644 --- a/packages/icons/src/components/SettingsSolid.tsx +++ b/packages/icons/src/components/SettingsSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SettingsSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Share.tsx b/packages/icons/src/components/Share.tsx index 26b98d26fd..14901fb0fd 100644 --- a/packages/icons/src/components/Share.tsx +++ b/packages/icons/src/components/Share.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ShareIconProps = IconProps; @@ -22,5 +22,5 @@ export const ShareIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ShareSolid.tsx b/packages/icons/src/components/ShareSolid.tsx index 5427793728..a7d7096d3f 100644 --- a/packages/icons/src/components/ShareSolid.tsx +++ b/packages/icons/src/components/ShareSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ShareSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const ShareSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Signal.tsx b/packages/icons/src/components/Signal.tsx index 3218105571..94c646869c 100644 --- a/packages/icons/src/components/Signal.tsx +++ b/packages/icons/src/components/Signal.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SignalIconProps = IconProps; @@ -19,5 +19,5 @@ export const SignalIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Signpost.tsx b/packages/icons/src/components/Signpost.tsx index d2ffcaf838..37eff06bd0 100644 --- a/packages/icons/src/components/Signpost.tsx +++ b/packages/icons/src/components/Signpost.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SignpostIconProps = IconProps; @@ -22,5 +22,5 @@ export const SignpostIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SignpostSolid.tsx b/packages/icons/src/components/SignpostSolid.tsx index ffb14686e4..ee5f8957e7 100644 --- a/packages/icons/src/components/SignpostSolid.tsx +++ b/packages/icons/src/components/SignpostSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SignpostSolidIconProps = IconProps; diff --git a/packages/icons/src/components/SortAlphaAscend.tsx b/packages/icons/src/components/SortAlphaAscend.tsx index c2a3a5be48..3071c1afaa 100644 --- a/packages/icons/src/components/SortAlphaAscend.tsx +++ b/packages/icons/src/components/SortAlphaAscend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortAlphaAscendIconProps = IconProps; diff --git a/packages/icons/src/components/SortAlphaDescend.tsx b/packages/icons/src/components/SortAlphaDescend.tsx index 56edb28aa9..94d3afe65a 100644 --- a/packages/icons/src/components/SortAlphaDescend.tsx +++ b/packages/icons/src/components/SortAlphaDescend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortAlphaDescendIconProps = IconProps; diff --git a/packages/icons/src/components/SortAscend.tsx b/packages/icons/src/components/SortAscend.tsx index a0b27d5cbb..4a2f0c009d 100644 --- a/packages/icons/src/components/SortAscend.tsx +++ b/packages/icons/src/components/SortAscend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortAscendIconProps = IconProps; @@ -18,5 +18,5 @@ export const SortAscendIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/SortDescend.tsx b/packages/icons/src/components/SortDescend.tsx index be13cf38b7..2e27fba5b0 100644 --- a/packages/icons/src/components/SortDescend.tsx +++ b/packages/icons/src/components/SortDescend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortDescendIconProps = IconProps; @@ -18,5 +18,5 @@ export const SortDescendIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/SortNumAscend.tsx b/packages/icons/src/components/SortNumAscend.tsx index cdde05feef..6badcb030e 100644 --- a/packages/icons/src/components/SortNumAscend.tsx +++ b/packages/icons/src/components/SortNumAscend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortNumAscendIconProps = IconProps; diff --git a/packages/icons/src/components/SortNumDescend.tsx b/packages/icons/src/components/SortNumDescend.tsx index 87a5f7a205..3c0707e8ab 100644 --- a/packages/icons/src/components/SortNumDescend.tsx +++ b/packages/icons/src/components/SortNumDescend.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortNumDescendIconProps = IconProps; diff --git a/packages/icons/src/components/SortableAlpha.tsx b/packages/icons/src/components/SortableAlpha.tsx index 248f4e7d24..d28bcbc0f2 100644 --- a/packages/icons/src/components/SortableAlpha.tsx +++ b/packages/icons/src/components/SortableAlpha.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortableAlphaIconProps = IconProps; diff --git a/packages/icons/src/components/SortableNum.tsx b/packages/icons/src/components/SortableNum.tsx index 5046826838..0a5c435702 100644 --- a/packages/icons/src/components/SortableNum.tsx +++ b/packages/icons/src/components/SortableNum.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SortableNumIconProps = IconProps; @@ -18,5 +18,5 @@ export const SortableNumIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Sparkle.tsx b/packages/icons/src/components/Sparkle.tsx index 9cf435215c..35784f5a82 100644 --- a/packages/icons/src/components/Sparkle.tsx +++ b/packages/icons/src/components/Sparkle.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SparkleIconProps = IconProps; @@ -23,5 +23,5 @@ export const SparkleIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SparkleSolid.tsx b/packages/icons/src/components/SparkleSolid.tsx index 4175fa5c39..40d5582f0d 100644 --- a/packages/icons/src/components/SparkleSolid.tsx +++ b/packages/icons/src/components/SparkleSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SparkleSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Stackoverflow.tsx b/packages/icons/src/components/Stackoverflow.tsx index 2e5106571e..d81ffcd604 100644 --- a/packages/icons/src/components/Stackoverflow.tsx +++ b/packages/icons/src/components/Stackoverflow.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StackoverflowIconProps = IconProps; diff --git a/packages/icons/src/components/StepActive.tsx b/packages/icons/src/components/StepActive.tsx index d24125b911..cde08445e5 100644 --- a/packages/icons/src/components/StepActive.tsx +++ b/packages/icons/src/components/StepActive.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StepActiveIconProps = IconProps; @@ -22,5 +22,5 @@ export const StepActiveIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/StepDefault.tsx b/packages/icons/src/components/StepDefault.tsx index 64f89a6f9b..3b8b715fd1 100644 --- a/packages/icons/src/components/StepDefault.tsx +++ b/packages/icons/src/components/StepDefault.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StepDefaultIconProps = IconProps; @@ -22,5 +22,5 @@ export const StepDefaultIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/StepSuccess.tsx b/packages/icons/src/components/StepSuccess.tsx index e515d4f77e..01224ce07f 100644 --- a/packages/icons/src/components/StepSuccess.tsx +++ b/packages/icons/src/components/StepSuccess.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StepSuccessIconProps = IconProps; @@ -22,5 +22,5 @@ export const StepSuccessIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Stethoscope.tsx b/packages/icons/src/components/Stethoscope.tsx index 9113f4afc6..7af7093435 100644 --- a/packages/icons/src/components/Stethoscope.tsx +++ b/packages/icons/src/components/Stethoscope.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StethoscopeIconProps = IconProps; @@ -22,5 +22,5 @@ export const StethoscopeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/StethoscopeSolid.tsx b/packages/icons/src/components/StethoscopeSolid.tsx index afb7c77275..7d0258028a 100644 --- a/packages/icons/src/components/StethoscopeSolid.tsx +++ b/packages/icons/src/components/StethoscopeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StethoscopeSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Storage.tsx b/packages/icons/src/components/Storage.tsx index cfc5f0e4ab..bcd8ced38e 100644 --- a/packages/icons/src/components/Storage.tsx +++ b/packages/icons/src/components/Storage.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StorageIconProps = IconProps; @@ -23,5 +23,5 @@ export const StorageIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/StorageSolid.tsx b/packages/icons/src/components/StorageSolid.tsx index d8e4f5e8f7..3db57aeacc 100644 --- a/packages/icons/src/components/StorageSolid.tsx +++ b/packages/icons/src/components/StorageSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StorageSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Storefront.tsx b/packages/icons/src/components/Storefront.tsx index cf024cbd7c..384c4bca7f 100644 --- a/packages/icons/src/components/Storefront.tsx +++ b/packages/icons/src/components/Storefront.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StorefrontIconProps = IconProps; @@ -28,5 +28,5 @@ export const StorefrontIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/StorefrontSolid.tsx b/packages/icons/src/components/StorefrontSolid.tsx index 0e28f3cb94..662bf275b2 100644 --- a/packages/icons/src/components/StorefrontSolid.tsx +++ b/packages/icons/src/components/StorefrontSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StorefrontSolidIconProps = IconProps; diff --git a/packages/icons/src/components/StringNumber.tsx b/packages/icons/src/components/StringNumber.tsx index 70c83c899a..c53b975fcf 100644 --- a/packages/icons/src/components/StringNumber.tsx +++ b/packages/icons/src/components/StringNumber.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StringNumberIconProps = IconProps; diff --git a/packages/icons/src/components/StringText.tsx b/packages/icons/src/components/StringText.tsx index f427829a6e..8ae806d992 100644 --- a/packages/icons/src/components/StringText.tsx +++ b/packages/icons/src/components/StringText.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type StringTextIconProps = IconProps; @@ -24,5 +24,5 @@ export const StringTextIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Success.tsx b/packages/icons/src/components/Success.tsx index 95da5af224..7020310c5b 100644 --- a/packages/icons/src/components/Success.tsx +++ b/packages/icons/src/components/Success.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SuccessIconProps = IconProps; @@ -22,5 +22,5 @@ export const SuccessIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/SuccessSmall.tsx b/packages/icons/src/components/SuccessSmall.tsx index 0b516ba497..7c61e7e0d3 100644 --- a/packages/icons/src/components/SuccessSmall.tsx +++ b/packages/icons/src/components/SuccessSmall.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SuccessSmallIconProps = IconProps; diff --git a/packages/icons/src/components/SuccessSmallSolid.tsx b/packages/icons/src/components/SuccessSmallSolid.tsx index 7851a30949..5ab664bea5 100644 --- a/packages/icons/src/components/SuccessSmallSolid.tsx +++ b/packages/icons/src/components/SuccessSmallSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SuccessSmallSolidIconProps = IconProps; diff --git a/packages/icons/src/components/SuccessSolid.tsx b/packages/icons/src/components/SuccessSolid.tsx index 25cf19bb73..61860e7c64 100644 --- a/packages/icons/src/components/SuccessSolid.tsx +++ b/packages/icons/src/components/SuccessSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SuccessSolidIconProps = IconProps; diff --git a/packages/icons/src/components/SuccessTick.tsx b/packages/icons/src/components/SuccessTick.tsx index 5e5e1119fa..16e429acb8 100644 --- a/packages/icons/src/components/SuccessTick.tsx +++ b/packages/icons/src/components/SuccessTick.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SuccessTickIconProps = IconProps; @@ -22,5 +22,5 @@ export const SuccessTickIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Sum.tsx b/packages/icons/src/components/Sum.tsx index 5e382908c5..e06ce48948 100644 --- a/packages/icons/src/components/Sum.tsx +++ b/packages/icons/src/components/Sum.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SumIconProps = IconProps; export const SumIcon = forwardRef(function SumIcon( props: SumIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/Swap.tsx b/packages/icons/src/components/Swap.tsx index 35a5cb8d6e..e5245bd876 100644 --- a/packages/icons/src/components/Swap.tsx +++ b/packages/icons/src/components/Swap.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SwapIconProps = IconProps; @@ -18,5 +18,5 @@ export const SwapIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Symphony.tsx b/packages/icons/src/components/Symphony.tsx index 45f699c87c..0b9063fe67 100644 --- a/packages/icons/src/components/Symphony.tsx +++ b/packages/icons/src/components/Symphony.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SymphonyIconProps = IconProps; @@ -18,5 +18,5 @@ export const SymphonyIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Sync.tsx b/packages/icons/src/components/Sync.tsx index 34b3efac6c..4f5715b289 100644 --- a/packages/icons/src/components/Sync.tsx +++ b/packages/icons/src/components/Sync.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type SyncIconProps = IconProps; @@ -18,5 +18,5 @@ export const SyncIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Tag.tsx b/packages/icons/src/components/Tag.tsx index b5b901297a..02b4741b2e 100644 --- a/packages/icons/src/components/Tag.tsx +++ b/packages/icons/src/components/Tag.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TagIconProps = IconProps; export const TagIcon = forwardRef(function TagIcon( props: TagIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/TagClearSolid.tsx b/packages/icons/src/components/TagClearSolid.tsx index 4d0cebf2fd..47f58f85b0 100644 --- a/packages/icons/src/components/TagClearSolid.tsx +++ b/packages/icons/src/components/TagClearSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TagClearSolidIconProps = IconProps; diff --git a/packages/icons/src/components/TagSolid.tsx b/packages/icons/src/components/TagSolid.tsx index fbc32e363d..9ec41ad236 100644 --- a/packages/icons/src/components/TagSolid.tsx +++ b/packages/icons/src/components/TagSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TagSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const TagSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Tails.tsx b/packages/icons/src/components/Tails.tsx index 76d87db6bd..1cc9cd39a7 100644 --- a/packages/icons/src/components/Tails.tsx +++ b/packages/icons/src/components/Tails.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TailsIconProps = IconProps; @@ -27,5 +27,5 @@ export const TailsIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/TailsSolid.tsx b/packages/icons/src/components/TailsSolid.tsx index eae283f50e..c6d89b537b 100644 --- a/packages/icons/src/components/TailsSolid.tsx +++ b/packages/icons/src/components/TailsSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TailsSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const TailsSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Target.tsx b/packages/icons/src/components/Target.tsx index 7d8cfc5b39..f0eaedd264 100644 --- a/packages/icons/src/components/Target.tsx +++ b/packages/icons/src/components/Target.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TargetIconProps = IconProps; @@ -22,5 +22,5 @@ export const TargetIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/TearOut.tsx b/packages/icons/src/components/TearOut.tsx index 9c6e942d8c..8585c7b948 100644 --- a/packages/icons/src/components/TearOut.tsx +++ b/packages/icons/src/components/TearOut.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TearOutIconProps = IconProps; @@ -19,5 +19,5 @@ export const TearOutIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/ThumbsDown.tsx b/packages/icons/src/components/ThumbsDown.tsx index 8b22e6a571..9ce3acc086 100644 --- a/packages/icons/src/components/ThumbsDown.tsx +++ b/packages/icons/src/components/ThumbsDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ThumbsDownIconProps = IconProps; @@ -23,5 +23,5 @@ export const ThumbsDownIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ThumbsDownSolid.tsx b/packages/icons/src/components/ThumbsDownSolid.tsx index 018725800c..ee391585dc 100644 --- a/packages/icons/src/components/ThumbsDownSolid.tsx +++ b/packages/icons/src/components/ThumbsDownSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ThumbsDownSolidIconProps = IconProps; diff --git a/packages/icons/src/components/ThumbsUp.tsx b/packages/icons/src/components/ThumbsUp.tsx index 744cf53214..b4adf90d8c 100644 --- a/packages/icons/src/components/ThumbsUp.tsx +++ b/packages/icons/src/components/ThumbsUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ThumbsUpIconProps = IconProps; @@ -23,5 +23,5 @@ export const ThumbsUpIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ThumbsUpSolid.tsx b/packages/icons/src/components/ThumbsUpSolid.tsx index ea53d8bb90..6fee78d357 100644 --- a/packages/icons/src/components/ThumbsUpSolid.tsx +++ b/packages/icons/src/components/ThumbsUpSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ThumbsUpSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Tote.tsx b/packages/icons/src/components/Tote.tsx index 438c0e8f08..078267225c 100644 --- a/packages/icons/src/components/Tote.tsx +++ b/packages/icons/src/components/Tote.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ToteIconProps = IconProps; @@ -22,5 +22,5 @@ export const ToteIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/ToteSolid.tsx b/packages/icons/src/components/ToteSolid.tsx index 013135663d..63ce5282fd 100644 --- a/packages/icons/src/components/ToteSolid.tsx +++ b/packages/icons/src/components/ToteSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ToteSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const ToteSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Tree.tsx b/packages/icons/src/components/Tree.tsx index 4c4b3ce2a7..27da495bc2 100644 --- a/packages/icons/src/components/Tree.tsx +++ b/packages/icons/src/components/Tree.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TreeIconProps = IconProps; @@ -22,5 +22,5 @@ export const TreeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/TreeSolid.tsx b/packages/icons/src/components/TreeSolid.tsx index 3fa27e4c05..d99851ca08 100644 --- a/packages/icons/src/components/TreeSolid.tsx +++ b/packages/icons/src/components/TreeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TreeSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const TreeSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/TriangleDown.tsx b/packages/icons/src/components/TriangleDown.tsx index cc9bbd7270..7200f38863 100644 --- a/packages/icons/src/components/TriangleDown.tsx +++ b/packages/icons/src/components/TriangleDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TriangleDownIconProps = IconProps; diff --git a/packages/icons/src/components/TriangleLeft.tsx b/packages/icons/src/components/TriangleLeft.tsx index d6a762283a..22ef28b5e4 100644 --- a/packages/icons/src/components/TriangleLeft.tsx +++ b/packages/icons/src/components/TriangleLeft.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TriangleLeftIconProps = IconProps; diff --git a/packages/icons/src/components/TriangleRight.tsx b/packages/icons/src/components/TriangleRight.tsx index 1ac160770e..85c724483f 100644 --- a/packages/icons/src/components/TriangleRight.tsx +++ b/packages/icons/src/components/TriangleRight.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TriangleRightIconProps = IconProps; diff --git a/packages/icons/src/components/TriangleRightDown.tsx b/packages/icons/src/components/TriangleRightDown.tsx index 2580d1183a..0bb2a2e4da 100644 --- a/packages/icons/src/components/TriangleRightDown.tsx +++ b/packages/icons/src/components/TriangleRightDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TriangleRightDownIconProps = IconProps; diff --git a/packages/icons/src/components/TriangleUp.tsx b/packages/icons/src/components/TriangleUp.tsx index 2343d254a6..c04573bf04 100644 --- a/packages/icons/src/components/TriangleUp.tsx +++ b/packages/icons/src/components/TriangleUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TriangleUpIconProps = IconProps; @@ -18,5 +18,5 @@ export const TriangleUpIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Type.tsx b/packages/icons/src/components/Type.tsx index 1bda75c60b..0795fb2fdd 100644 --- a/packages/icons/src/components/Type.tsx +++ b/packages/icons/src/components/Type.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TypeIconProps = IconProps; @@ -23,5 +23,5 @@ export const TypeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/TypeSolid.tsx b/packages/icons/src/components/TypeSolid.tsx index 150dd1baee..ee8b9fb110 100644 --- a/packages/icons/src/components/TypeSolid.tsx +++ b/packages/icons/src/components/TypeSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type TypeSolidIconProps = IconProps; @@ -23,5 +23,5 @@ export const TypeSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Undo.tsx b/packages/icons/src/components/Undo.tsx index 2462410218..a0d8e01d65 100644 --- a/packages/icons/src/components/Undo.tsx +++ b/packages/icons/src/components/Undo.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UndoIconProps = IconProps; @@ -18,5 +18,5 @@ export const UndoIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Ungroup.tsx b/packages/icons/src/components/Ungroup.tsx index cd04169bed..2312a5c737 100644 --- a/packages/icons/src/components/Ungroup.tsx +++ b/packages/icons/src/components/Ungroup.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UngroupIconProps = IconProps; @@ -23,5 +23,5 @@ export const UngroupIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/UngroupSolid.tsx b/packages/icons/src/components/UngroupSolid.tsx index e8b452da9c..d3c5737239 100644 --- a/packages/icons/src/components/UngroupSolid.tsx +++ b/packages/icons/src/components/UngroupSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UngroupSolidIconProps = IconProps; diff --git a/packages/icons/src/components/UniversalAccess.tsx b/packages/icons/src/components/UniversalAccess.tsx index e1698adb12..ed9f3f4b64 100644 --- a/packages/icons/src/components/UniversalAccess.tsx +++ b/packages/icons/src/components/UniversalAccess.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UniversalAccessIconProps = IconProps; diff --git a/packages/icons/src/components/UniversalAccessSolid.tsx b/packages/icons/src/components/UniversalAccessSolid.tsx index 3ecd4b58d4..007e80de8f 100644 --- a/packages/icons/src/components/UniversalAccessSolid.tsx +++ b/packages/icons/src/components/UniversalAccessSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UniversalAccessSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Unlinked.tsx b/packages/icons/src/components/Unlinked.tsx index f7fa2f1eda..947ebfa47b 100644 --- a/packages/icons/src/components/Unlinked.tsx +++ b/packages/icons/src/components/Unlinked.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UnlinkedIconProps = IconProps; @@ -18,5 +18,5 @@ export const UnlinkedIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Unlocked.tsx b/packages/icons/src/components/Unlocked.tsx index 6dc380eb35..64ecf57ea8 100644 --- a/packages/icons/src/components/Unlocked.tsx +++ b/packages/icons/src/components/Unlocked.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UnlockedIconProps = IconProps; @@ -23,5 +23,5 @@ export const UnlockedIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UnlockedSolid.tsx b/packages/icons/src/components/UnlockedSolid.tsx index 80710ae00a..fc20dfa4a3 100644 --- a/packages/icons/src/components/UnlockedSolid.tsx +++ b/packages/icons/src/components/UnlockedSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UnlockedSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Upload.tsx b/packages/icons/src/components/Upload.tsx index bd12ac66a7..504474d8d3 100644 --- a/packages/icons/src/components/Upload.tsx +++ b/packages/icons/src/components/Upload.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UploadIconProps = IconProps; @@ -18,5 +18,5 @@ export const UploadIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/UrgencyCritical.tsx b/packages/icons/src/components/UrgencyCritical.tsx index f3d81f38aa..9b19d15903 100644 --- a/packages/icons/src/components/UrgencyCritical.tsx +++ b/packages/icons/src/components/UrgencyCritical.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UrgencyCriticalIconProps = IconProps; diff --git a/packages/icons/src/components/UrgencyHigh.tsx b/packages/icons/src/components/UrgencyHigh.tsx index bd4f79a6af..5ef39a935a 100644 --- a/packages/icons/src/components/UrgencyHigh.tsx +++ b/packages/icons/src/components/UrgencyHigh.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UrgencyHighIconProps = IconProps; @@ -20,5 +20,5 @@ export const UrgencyHighIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/UrgencyLow.tsx b/packages/icons/src/components/UrgencyLow.tsx index 640f5a3990..f4c07d2b6b 100644 --- a/packages/icons/src/components/UrgencyLow.tsx +++ b/packages/icons/src/components/UrgencyLow.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UrgencyLowIconProps = IconProps; @@ -22,5 +22,5 @@ export const UrgencyLowIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UrgencyMedium.tsx b/packages/icons/src/components/UrgencyMedium.tsx index c2dea9d246..52931b404f 100644 --- a/packages/icons/src/components/UrgencyMedium.tsx +++ b/packages/icons/src/components/UrgencyMedium.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UrgencyMediumIconProps = IconProps; diff --git a/packages/icons/src/components/UrgencyNone.tsx b/packages/icons/src/components/UrgencyNone.tsx index e916ae3da3..1dca20e4ca 100644 --- a/packages/icons/src/components/UrgencyNone.tsx +++ b/packages/icons/src/components/UrgencyNone.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UrgencyNoneIconProps = IconProps; @@ -18,5 +18,5 @@ export const UrgencyNoneIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/User.tsx b/packages/icons/src/components/User.tsx index 75dcb638ee..2a3d1eb0dc 100644 --- a/packages/icons/src/components/User.tsx +++ b/packages/icons/src/components/User.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserIconProps = IconProps; @@ -22,5 +22,5 @@ export const UserIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UserAdmin.tsx b/packages/icons/src/components/UserAdmin.tsx index cfee38fd31..9ac90275ab 100644 --- a/packages/icons/src/components/UserAdmin.tsx +++ b/packages/icons/src/components/UserAdmin.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserAdminIconProps = IconProps; @@ -22,5 +22,5 @@ export const UserAdminIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UserAdminSolid.tsx b/packages/icons/src/components/UserAdminSolid.tsx index b8bfb35545..bd7b401220 100644 --- a/packages/icons/src/components/UserAdminSolid.tsx +++ b/packages/icons/src/components/UserAdminSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserAdminSolidIconProps = IconProps; diff --git a/packages/icons/src/components/UserBadge.tsx b/packages/icons/src/components/UserBadge.tsx index aca10bd29b..3834c5663d 100644 --- a/packages/icons/src/components/UserBadge.tsx +++ b/packages/icons/src/components/UserBadge.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserBadgeIconProps = IconProps; @@ -22,5 +22,5 @@ export const UserBadgeIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UserGroup.tsx b/packages/icons/src/components/UserGroup.tsx index faea302b2b..d91dd22e15 100644 --- a/packages/icons/src/components/UserGroup.tsx +++ b/packages/icons/src/components/UserGroup.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserGroupIconProps = IconProps; @@ -22,5 +22,5 @@ export const UserGroupIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UserGroupSolid.tsx b/packages/icons/src/components/UserGroupSolid.tsx index 462ad8f332..dff4fae695 100644 --- a/packages/icons/src/components/UserGroupSolid.tsx +++ b/packages/icons/src/components/UserGroupSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserGroupSolidIconProps = IconProps; diff --git a/packages/icons/src/components/UserSolid.tsx b/packages/icons/src/components/UserSolid.tsx index 5ce1211573..bc4900dc09 100644 --- a/packages/icons/src/components/UserSolid.tsx +++ b/packages/icons/src/components/UserSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UserSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const UserSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Utensils.tsx b/packages/icons/src/components/Utensils.tsx index 94c1c6ccb5..217002736b 100644 --- a/packages/icons/src/components/Utensils.tsx +++ b/packages/icons/src/components/Utensils.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UtensilsIconProps = IconProps; @@ -22,5 +22,5 @@ export const UtensilsIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/UtensilsSolid.tsx b/packages/icons/src/components/UtensilsSolid.tsx index 7f5132a84c..cd100d509f 100644 --- a/packages/icons/src/components/UtensilsSolid.tsx +++ b/packages/icons/src/components/UtensilsSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type UtensilsSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Video.tsx b/packages/icons/src/components/Video.tsx index f700fe6b88..d2815656fe 100644 --- a/packages/icons/src/components/Video.tsx +++ b/packages/icons/src/components/Video.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VideoIconProps = IconProps; @@ -22,5 +22,5 @@ export const VideoIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/VideoDisabled.tsx b/packages/icons/src/components/VideoDisabled.tsx index 12b827c03d..03697cbe31 100644 --- a/packages/icons/src/components/VideoDisabled.tsx +++ b/packages/icons/src/components/VideoDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VideoDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/VideoSolid.tsx b/packages/icons/src/components/VideoSolid.tsx index 2f187fb447..65a513371b 100644 --- a/packages/icons/src/components/VideoSolid.tsx +++ b/packages/icons/src/components/VideoSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VideoSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const VideoSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Visible.tsx b/packages/icons/src/components/Visible.tsx index 835a8eea76..b0689ab742 100644 --- a/packages/icons/src/components/Visible.tsx +++ b/packages/icons/src/components/Visible.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VisibleIconProps = IconProps; @@ -27,5 +27,5 @@ export const VisibleIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/VisibleSolid.tsx b/packages/icons/src/components/VisibleSolid.tsx index eb217585d4..106a3ce9e3 100644 --- a/packages/icons/src/components/VisibleSolid.tsx +++ b/packages/icons/src/components/VisibleSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VisibleSolidIconProps = IconProps; diff --git a/packages/icons/src/components/VolumeDown.tsx b/packages/icons/src/components/VolumeDown.tsx index 42f514f2d6..09004ab3d5 100644 --- a/packages/icons/src/components/VolumeDown.tsx +++ b/packages/icons/src/components/VolumeDown.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VolumeDownIconProps = IconProps; @@ -18,5 +18,5 @@ export const VolumeDownIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/VolumeOff.tsx b/packages/icons/src/components/VolumeOff.tsx index a763ab5ebc..2ea8b23f2b 100644 --- a/packages/icons/src/components/VolumeOff.tsx +++ b/packages/icons/src/components/VolumeOff.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VolumeOffIconProps = IconProps; @@ -18,5 +18,5 @@ export const VolumeOffIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/VolumeUp.tsx b/packages/icons/src/components/VolumeUp.tsx index 2175cbbfd8..70ae18b7b1 100644 --- a/packages/icons/src/components/VolumeUp.tsx +++ b/packages/icons/src/components/VolumeUp.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type VolumeUpIconProps = IconProps; @@ -23,5 +23,5 @@ export const VolumeUpIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Warning.tsx b/packages/icons/src/components/Warning.tsx index caad7b0e7e..5c63f79651 100644 --- a/packages/icons/src/components/Warning.tsx +++ b/packages/icons/src/components/Warning.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WarningIconProps = IconProps; @@ -23,5 +23,5 @@ export const WarningIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/WarningSolid.tsx b/packages/icons/src/components/WarningSolid.tsx index 4b7ed96bfc..6e84b4c277 100644 --- a/packages/icons/src/components/WarningSolid.tsx +++ b/packages/icons/src/components/WarningSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WarningSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Watch.tsx b/packages/icons/src/components/Watch.tsx index 9fd18b40cf..fdd12a3281 100644 --- a/packages/icons/src/components/Watch.tsx +++ b/packages/icons/src/components/Watch.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WatchIconProps = IconProps; @@ -23,5 +23,5 @@ export const WatchIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/WatchSolid.tsx b/packages/icons/src/components/WatchSolid.tsx index 599eb16230..dabbb29255 100644 --- a/packages/icons/src/components/WatchSolid.tsx +++ b/packages/icons/src/components/WatchSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WatchSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const WatchSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Waveform.tsx b/packages/icons/src/components/Waveform.tsx index f01c5ce114..8057887895 100644 --- a/packages/icons/src/components/Waveform.tsx +++ b/packages/icons/src/components/Waveform.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WaveformIconProps = IconProps; @@ -18,5 +18,5 @@ export const WaveformIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Weight.tsx b/packages/icons/src/components/Weight.tsx index 11bbc856ba..f859fbbf73 100644 --- a/packages/icons/src/components/Weight.tsx +++ b/packages/icons/src/components/Weight.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WeightIconProps = IconProps; @@ -22,5 +22,5 @@ export const WeightIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/WeightSolid.tsx b/packages/icons/src/components/WeightSolid.tsx index 1275705ad5..85238832ca 100644 --- a/packages/icons/src/components/WeightSolid.tsx +++ b/packages/icons/src/components/WeightSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WeightSolidIconProps = IconProps; @@ -22,5 +22,5 @@ export const WeightSolidIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/Wifi.tsx b/packages/icons/src/components/Wifi.tsx index eaad26a621..ae5d36937b 100644 --- a/packages/icons/src/components/Wifi.tsx +++ b/packages/icons/src/components/Wifi.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WifiIconProps = IconProps; @@ -20,5 +20,5 @@ export const WifiIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/WifiDisabled.tsx b/packages/icons/src/components/WifiDisabled.tsx index a4e453b709..5abffe3d7e 100644 --- a/packages/icons/src/components/WifiDisabled.tsx +++ b/packages/icons/src/components/WifiDisabled.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WifiDisabledIconProps = IconProps; diff --git a/packages/icons/src/components/Woman.tsx b/packages/icons/src/components/Woman.tsx index 7752d22293..ce7249b45b 100644 --- a/packages/icons/src/components/Woman.tsx +++ b/packages/icons/src/components/Woman.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WomanIconProps = IconProps; @@ -22,5 +22,5 @@ export const WomanIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/WomanSolid.tsx b/packages/icons/src/components/WomanSolid.tsx index 3a5be99650..0f81d1bd44 100644 --- a/packages/icons/src/components/WomanSolid.tsx +++ b/packages/icons/src/components/WomanSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WomanSolidIconProps = IconProps; @@ -18,5 +18,5 @@ export const WomanSolidIcon = forwardRef( ); - } + }, ); diff --git a/packages/icons/src/components/Woodland.tsx b/packages/icons/src/components/Woodland.tsx index c2b31e593c..f9d2fe339c 100644 --- a/packages/icons/src/components/Woodland.tsx +++ b/packages/icons/src/components/Woodland.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WoodlandIconProps = IconProps; @@ -22,5 +22,5 @@ export const WoodlandIcon = forwardRef( /> ); - } + }, ); diff --git a/packages/icons/src/components/WoodlandSolid.tsx b/packages/icons/src/components/WoodlandSolid.tsx index 08c2e61a09..992aa2527a 100644 --- a/packages/icons/src/components/WoodlandSolid.tsx +++ b/packages/icons/src/components/WoodlandSolid.tsx @@ -1,7 +1,7 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type WoodlandSolidIconProps = IconProps; diff --git a/packages/icons/src/components/Xls.tsx b/packages/icons/src/components/Xls.tsx index 18ba33a583..ff578a0f19 100644 --- a/packages/icons/src/components/Xls.tsx +++ b/packages/icons/src/components/Xls.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type XlsIconProps = IconProps; export const XlsIcon = forwardRef(function XlsIcon( props: XlsIconProps, - ref + ref, ) { return ( ( ); - } + }, ); diff --git a/packages/icons/src/components/Zip.tsx b/packages/icons/src/components/Zip.tsx index cf931ea33b..acbee21c8f 100644 --- a/packages/icons/src/components/Zip.tsx +++ b/packages/icons/src/components/Zip.tsx @@ -1,13 +1,13 @@ // WARNING: This file was generated by a script. Do not modify it manually import { forwardRef } from "react"; -import { Icon, IconProps } from "../icon"; +import { Icon, type IconProps } from "../icon"; export type ZipIconProps = IconProps; export const ZipIcon = forwardRef(function ZipIcon( props: ZipIconProps, - ref + ref, ) { return ( ( /> ); - } + }, ); diff --git a/packages/icons/src/icon/Icon.css b/packages/icons/src/icon/Icon.css index a7581ea097..4e9f68e136 100644 --- a/packages/icons/src/icon/Icon.css +++ b/packages/icons/src/icon/Icon.css @@ -7,7 +7,7 @@ * Icon size will be the multiplier (an integer from the size prop) * the base size (set by the theme per density) * Icons should never be smaller than 12px for readability so we've added a max() to enforce this * Consumers can use --saltIcon-size variable to override this rule as an escape hatch - */ + */ --icon-size: var(--saltIcon-size, max(calc(var(--icon-base-size) * var(--icon-size-multiplier)), 12px)); } diff --git a/packages/icons/src/icon/Icon.tsx b/packages/icons/src/icon/Icon.tsx index e4988be4cd..5e4afcac2e 100644 --- a/packages/icons/src/icon/Icon.tsx +++ b/packages/icons/src/icon/Icon.tsx @@ -1,8 +1,8 @@ -import { forwardRef, SVGAttributes } from "react"; import { clsx } from "clsx"; +import { type SVGAttributes, forwardRef } from "react"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import iconCss from "./Icon.css"; // Duplicate from core/util to avoid circular dependency @@ -35,7 +35,7 @@ export const Icon = forwardRef(function Icon( style: styleProp, ...rest }, - ref + ref, ) { const targetWindow = useWindow(); useComponentCssInjection({ @@ -54,7 +54,7 @@ export const Icon = forwardRef(function Icon( className={clsx( withBaseName(), { [withBaseName(color)]: color !== "inherit" }, - className + className, )} style={style} role="img" diff --git a/packages/icons/stories/icon.all.ts b/packages/icons/stories/icon.all.ts index b858e448a2..d3ff4e691d 100644 --- a/packages/icons/stories/icon.all.ts +++ b/packages/icons/stories/icon.all.ts @@ -3,9 +3,9 @@ import { AccessibleIcon, AccessibleSolidIcon, - AddIcon, AddDocumentIcon, AddDocumentSolidIcon, + AddIcon, ApiIcon, AppSwitcherIcon, ArrowDownIcon, @@ -13,9 +13,9 @@ import { ArrowRightIcon, ArrowUpIcon, AttachIcon, - BankIcon, BankCheckIcon, BankCheckSolidIcon, + BankIcon, BankSolidIcon, BarChartIcon, BatteryIcon, @@ -26,12 +26,12 @@ import { BooleanSolidIcon, BrowserIcon, BrowserSolidIcon, + BuildReportIcon, + BuildReportSolidIcon, BuildingIcon, - BuildingsIcon, BuildingSolidIcon, + BuildingsIcon, BuildingsSolidIcon, - BuildReportIcon, - BuildReportSolidIcon, CalculatorIcon, CalculatorSolidIcon, CalendarIcon, @@ -40,9 +40,9 @@ import { CallSolidIcon, CartIcon, CartSolidIcon, - ChatIcon, ChatGroupIcon, ChatGroupSolidIcon, + ChatIcon, ChatSolidIcon, ChattingIcon, ChattingSolidIcon, @@ -54,16 +54,16 @@ import { ClockSolidIcon, CloneIcon, CloseIcon, - ClosedcaptionIcon, + CloseSmallIcon, ClosedcaptionDisabledIcon, ClosedcaptionDisabledSolidIcon, + ClosedcaptionIcon, ClosedcaptionSolidIcon, - CloseSmallIcon, - CloudIcon, CloudDisabledIcon, CloudDisabledSolidIcon, CloudDownloadIcon, CloudDownloadSolidIcon, + CloudIcon, CloudSolidIcon, CloudSuccessIcon, CloudSuccessSolidIcon, @@ -73,8 +73,8 @@ import { CloudUploadSolidIcon, CoffeeIcon, CoffeeSolidIcon, - CollapseIcon, CollapseAllIcon, + CollapseIcon, ColumnChooserIcon, ColumnChooserSolidIcon, CommentaryIcon, @@ -115,18 +115,18 @@ import { DragRowIcon, EditIcon, EditSolidIcon, - ErrorIcon, ErrorExecuteIcon, + ErrorIcon, ErrorSolidIcon, - ExpandIcon, ExpandAllIcon, + ExpandIcon, ExportIcon, ExportSolidIcon, FavoriteIcon, FavoriteSolidIcon, - FilterIcon, FilterClearIcon, FilterClearSolidIcon, + FilterIcon, FilterSolidIcon, FlagIcon, FlagSolidIcon, @@ -134,10 +134,10 @@ import { FolderClosedSolidIcon, FolderOpenIcon, FolderOpenSolidIcon, + Forward5Icon, Forward10Icon, Forward15Icon, Forward30Icon, - Forward5Icon, GithubIcon, GlobeIcon, GlobeSolidIcon, @@ -149,9 +149,9 @@ import { GuideClosedSolidIcon, GuideOpenIcon, GuideOpenSolidIcon, - HeadphonesIcon, HeadphonesDisabledIcon, HeadphonesDisabledSolidIcon, + HeadphonesIcon, HeadphonesSolidIcon, HelpIcon, HelpSolidIcon, @@ -173,12 +173,12 @@ import { InfoSolidIcon, JigsawIcon, JigsawSolidIcon, - KeyIcon, KeyBackspaceIcon, KeyCapslockIcon, KeyCommandIcon, KeyControlIcon, KeyEnterIcon, + KeyIcon, KeyOptionIcon, KeyShiftIcon, KeySolidIcon, @@ -214,9 +214,9 @@ import { MessageIcon, MessageSolidIcon, MicroMenuIcon, - MicrophoneIcon, MicrophoneDisabledIcon, MicrophoneDisabledSolidIcon, + MicrophoneIcon, MicrophoneSolidIcon, MinimizeIcon, MobileIcon, @@ -226,9 +226,9 @@ import { MoveAllIcon, MoveHorizontalIcon, MoveVerticalIcon, - MusicIcon, MusicDisabledIcon, MusicDisabledSolidIcon, + MusicIcon, MusicSolidIcon, NoteIcon, NoteSolidIcon, @@ -274,13 +274,13 @@ import { ReceiptSolidIcon, RedoIcon, RefreshIcon, - RemoveIcon, RemoveDocumentIcon, RemoveDocumentSolidIcon, + RemoveIcon, + Replay5Icon, Replay10Icon, Replay15Icon, Replay30Icon, - Replay5Icon, RestoreIcon, RunReportIcon, RunReportSolidIcon, @@ -313,14 +313,14 @@ import { SignalIcon, SignpostIcon, SignpostSolidIcon, - SortableAlphaIcon, - SortableNumIcon, SortAlphaAscendIcon, SortAlphaDescendIcon, SortAscendIcon, SortDescendIcon, SortNumAscendIcon, SortNumDescendIcon, + SortableAlphaIcon, + SortableNumIcon, SparkleIcon, SparkleSolidIcon, StackoverflowIcon, @@ -345,9 +345,9 @@ import { SwapIcon, SymphonyIcon, SyncIcon, - TagIcon, TagClearIcon, TagClearSolidIcon, + TagIcon, TagSolidIcon, TailsIcon, TailsSolidIcon, @@ -363,8 +363,8 @@ import { TreeSolidIcon, TriangleDownIcon, TriangleLeftIcon, - TriangleRightIcon, TriangleRightDownIcon, + TriangleRightIcon, TriangleUpIcon, TypeIcon, TypeSolidIcon, @@ -382,17 +382,17 @@ import { UrgencyLowIcon, UrgencyMediumIcon, UrgencyNoneIcon, - UserIcon, UserAdminIcon, UserAdminSolidIcon, UserBadgeIcon, UserGroupIcon, UserGroupSolidIcon, + UserIcon, UserSolidIcon, UtensilsIcon, UtensilsSolidIcon, - VideoIcon, VideoDisabledIcon, + VideoIcon, VideoSolidIcon, VisibleIcon, VisibleSolidIcon, @@ -406,8 +406,8 @@ import { WaveformIcon, WeightIcon, WeightSolidIcon, - WifiIcon, WifiDisabledIcon, + WifiIcon, WomanIcon, WomanSolidIcon, WoodlandIcon, diff --git a/packages/icons/stories/icon.qa.stories.tsx b/packages/icons/stories/icon.qa.stories.tsx index 06fd00117d..c72f9c3c51 100644 --- a/packages/icons/stories/icon.qa.stories.tsx +++ b/packages/icons/stories/icon.qa.stories.tsx @@ -1,7 +1,7 @@ -import { Meta, StoryFn } from "@storybook/react"; +import { AddDocumentIcon } from "@salt-ds/icons"; +import type { Meta, StoryFn } from "@storybook/react"; import { QAContainer, QAContainerNoStyleInjection } from "docs/components"; import { allIcons } from "./icon.all"; -import { AddDocumentIcon } from "@salt-ds/icons"; import "@salt-ds/icons/saltIcons.css"; export default { title: "Icons/Icon/Icon QA", @@ -34,8 +34,8 @@ export const AllIcons: StoryFn = () => { padding: "12px 0", }} > - {allIcons.map((IconComponent, i) => ( - + {allIcons.map((IconComponent) => ( + ))}
))} @@ -90,10 +90,10 @@ export const CssBackground: StoryFn = () => { key={iconName} className={`should-not-impact saltIcons-${iconName.replace( "Icon", - "" + "", )}`} /> - ) : null + ) : null, )}
diff --git a/packages/icons/stories/icon.stories.tsx b/packages/icons/stories/icon.stories.tsx index d26fc51b86..4e7148c3ed 100644 --- a/packages/icons/stories/icon.stories.tsx +++ b/packages/icons/stories/icon.stories.tsx @@ -1,13 +1,13 @@ -import { createElement, ElementType, useMemo, useState } from "react"; +import { FlexLayout, StackLayout } from "@salt-ds/core"; import { AddDocumentIcon, AddDocumentSolidIcon, Icon, - IconProps, + type IconProps, } from "@salt-ds/icons"; -import { Meta, StoryFn } from "@storybook/react"; -import { FlexLayout, StackLayout } from "@salt-ds/core"; import { FormField, Input } from "@salt-ds/lab"; +import type { Meta, StoryFn } from "@storybook/react"; +import { type ElementType, createElement, useMemo, useState } from "react"; import { allIcons } from "./icon.all"; const formatIconName = (icon: string) => { @@ -72,7 +72,7 @@ export const CustomSVGIcon: StoryFn = () => { ); }, - [] + [], ); return ; @@ -90,7 +90,7 @@ export const CustomIconFullSVG: StoryFn = () => { ); }, - [] + [], ); return ; diff --git a/packages/lab/package.json b/packages/lab/package.json index 208ac8ae49..cf421ab4f5 100644 --- a/packages/lab/package.json +++ b/packages/lab/package.json @@ -44,7 +44,5 @@ "scripts": { "bundle:css": "yarn node ./scripts/build.mjs" }, - "files": [ - "css" - ] + "files": ["css"] } diff --git a/packages/lab/scripts/build.mjs b/packages/lab/scripts/build.mjs index a47f183ce9..437ccfee73 100644 --- a/packages/lab/scripts/build.mjs +++ b/packages/lab/scripts/build.mjs @@ -1,10 +1,10 @@ -import esbuild from "esbuild"; -import path from "node:path"; +import crypto from "node:crypto"; import fs from "node:fs"; -import { deleteSync } from "del"; +import path from "node:path"; import { fileURLToPath } from "node:url"; +import { deleteSync } from "del"; +import esbuild from "esbuild"; import glob from "fast-glob"; -import crypto from "node:crypto"; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const buildFolder = path.join(__dirname, "../../../dist/salt-ds-lab/css"); @@ -25,15 +25,15 @@ function createCssEntryFile(callback) { }); const writeLine = (line, index) => - index == 0 ? entry.write(line) : entry.write(`\n${line}`); + index === 0 ? entry.write(line) : entry.write(`\n${line}`); cssFiles.forEach((cssFile, index) => { writeLine( `@import "${path.posix.relative( path.posix.dirname(entryFile), - cssFile + cssFile, )}";`, - index + index, ); }); @@ -62,7 +62,7 @@ function runBuild() { fs.mkdirSync(cssFolder, { recursive: true }); fs.copyFileSync( path.join(buildFolder, outfileName), - path.join(cssFolder, outfileName) + path.join(cssFolder, outfileName), ); }) .finally(() => { diff --git a/packages/lab/src/__tests__/__e2e__/breadcrumbs/Breadcrumbs.cy.tsx b/packages/lab/src/__tests__/__e2e__/breadcrumbs/Breadcrumbs.cy.tsx index 73fe2bb096..aeb94ec5f8 100644 --- a/packages/lab/src/__tests__/__e2e__/breadcrumbs/Breadcrumbs.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/breadcrumbs/Breadcrumbs.cy.tsx @@ -1,4 +1,4 @@ -import { Breadcrumbs, Breadcrumb } from "@salt-ds/lab"; +import { Breadcrumb, Breadcrumbs } from "@salt-ds/lab"; describe("GIVEN a Breadcrumbs component", () => { describe("WHEN Breadcrumbs are passed as children", () => { @@ -6,7 +6,7 @@ describe("GIVEN a Breadcrumbs component", () => { cy.mount( Test - + , ); cy.findByText("Test").should("exist"); @@ -20,7 +20,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test 1 Test 2 Test 3 - + , ); cy.realPress("Tab"); cy.findByRole("tooltip").should("not.exist"); @@ -38,7 +38,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test Test2 - + , ); cy.findByText("Test").should("exist"); @@ -54,7 +54,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 Test4 - + , ); cy.findByText("Test").should("exist"); @@ -72,7 +72,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test Test2 Test3 - + , ); cy.findByText("Test").should("exist"); @@ -90,7 +90,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 Test4 - + , ); cy.findByText("Test").should("exist"); @@ -109,7 +109,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 Test4 - + , ); cy.findByText("Test").should("exist"); @@ -128,7 +128,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 Test4 - + , ); cy.findByText("Test").should("exist"); @@ -147,7 +147,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test Test2 Test3 - + , ); cy.findByText("Test").should("exist"); @@ -166,7 +166,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test Test2 Test3 - + , ); cy.get(".item") @@ -184,7 +184,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 - + , ); cy.get("#Test1").should("have.css", "max-width", "20px"); @@ -198,7 +198,7 @@ describe("GIVEN a Breadcrumbs component", () => { Root Level Entity Level 2 Entity Level 3 Entity - + , ); cy.wait(1000); @@ -220,7 +220,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test Test2 Test3 - + , ); cy.get(".item") .should("have.length", 3) @@ -237,7 +237,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test2 Test3 - + , ); cy.get("#Test1").should("have.css", "min-width", "20px"); @@ -251,7 +251,7 @@ describe("GIVEN a Breadcrumbs component", () => { Test1 Test2 Test3 - + , ); cy.get("a").then((links) => { diff --git a/packages/lab/src/__tests__/__e2e__/calendar/Calendar.cy.tsx b/packages/lab/src/__tests__/__e2e__/calendar/Calendar.cy.tsx index 79d9d07485..02e657e964 100644 --- a/packages/lab/src/__tests__/__e2e__/calendar/Calendar.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/calendar/Calendar.cy.tsx @@ -1,8 +1,6 @@ -import { composeStories } from "@storybook/react"; -import * as calendarStories from "@stories/calendar/calendar.stories"; import { DateFormatter, - DateValue, + type DateValue, endOfMonth, endOfWeek, endOfYear, @@ -13,6 +11,8 @@ import { startOfYear, today, } from "@internationalized/date"; +import * as calendarStories from "@stories/calendar/calendar.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -52,7 +52,7 @@ describe("GIVEN a Calendar", () => { formatDate(today(localTimeZone), { month: "long", year: "numeric", - }) + }), ); cy.findByRole("button", { name: formatDay(today(localTimeZone)), @@ -90,7 +90,7 @@ describe("GIVEN a Calendar", () => { cy.mount(); cy.findByRole("combobox", { name: "Month Dropdown" }).should( "have.text", - formatDate(testDate, { month: "short" }) + formatDate(testDate, { month: "short" }), ); cy.findByRole("combobox", { name: "Month Dropdown", @@ -102,7 +102,7 @@ describe("GIVEN a Calendar", () => { .realClick(); cy.findByRole("combobox", { name: "Month Dropdown" }).should( "have.text", - formatDate(testDate.set({ month: 4 }), { month: "short" }) + formatDate(testDate.set({ month: 4 }), { month: "short" }), ); cy.findByRole("button", { name: formatDay(testDate.set({ month: 4 })), @@ -113,7 +113,7 @@ describe("GIVEN a Calendar", () => { cy.mount(); cy.findByRole("combobox", { name: "Year Dropdown" }).should( "have.text", - formatDate(testDate, { year: "numeric" }) + formatDate(testDate, { year: "numeric" }), ); cy.findByRole("combobox", { name: "Year Dropdown", @@ -125,7 +125,7 @@ describe("GIVEN a Calendar", () => { .realClick(); cy.findByRole("combobox", { name: "Year Dropdown" }).should( "have.text", - formatDate(testDate.add({ years: 1 }), { year: "numeric" }) + formatDate(testDate.add({ years: 1 }), { year: "numeric" }), ); cy.findByRole("button", { name: formatDay(testDate.add({ years: 1 })), @@ -138,14 +138,14 @@ describe("GIVEN a Calendar", () => { cy.mount(); cy.findByRole("combobox", { name: "Month Dropdown" }).should( "have.text", - formatDate(testDate, { month: "short" }) + formatDate(testDate, { month: "short" }), ); cy.findByRole("button", { name: formatDay(endOfMonth(testDate).add({ days: 1 })), }).realClick(); cy.findByRole("combobox", { name: "Month Dropdown" }).should( "have.text", - formatDate(testDate.add({ months: 1 }), { month: "short" }) + formatDate(testDate.add({ months: 1 }), { month: "short" }), ); }); }); @@ -249,7 +249,7 @@ describe("GIVEN a Calendar", () => { describe("Single Selection", () => { it("SHOULD move to selected date if it is within the visible month", () => { cy.mount( - + , ); cy.findByRole("button", { name: "Next Month", @@ -261,7 +261,7 @@ describe("GIVEN a Calendar", () => { }); it("SHOULD move to selected date when navigating back to selection month", () => { cy.mount( - + , ); cy.findByRole("button", { name: "Next Month", @@ -283,7 +283,7 @@ describe("GIVEN a Calendar", () => { + />, ); cy.findByRole("button", { name: "Next Month", @@ -324,7 +324,7 @@ describe("GIVEN a Calendar", () => { it("SHOULD move to start of the month if there is no selected date and today is not within visible month", () => { const todayTestDate = today(localTimeZone); cy.mount( - + , ); cy.findByRole("button", { name: "Next Month", @@ -355,7 +355,7 @@ describe("GIVEN a Calendar", () => { cy.findByRole("button", { name: formatDay(testDate) }).should( "have.attr", "aria-pressed", - "true" + "true", ); cy.findByRole("button", { @@ -363,7 +363,7 @@ describe("GIVEN a Calendar", () => { }).realClick(); cy.findByRole("button", { name: formatDay(testDate) }).should( "not.have.attr", - "aria-pressed" + "aria-pressed", ); cy.findByRole("button", { name: formatDay(testDate.add({ days: 1 })), @@ -382,7 +382,7 @@ describe("GIVEN a Calendar", () => { cy.findByRole("button", { name: formatDay(testDate) }).should( "have.attr", "aria-pressed", - "true" + "true", ); }); }); @@ -397,7 +397,7 @@ describe("GIVEN a Calendar", () => { testDate, ]} defaultVisibleMonth={testDate} - /> + />, ); cy.findByRole("button", { name: "Next Month", @@ -413,7 +413,7 @@ describe("GIVEN a Calendar", () => { + />, ); cy.findByRole("button", { name: "Next Month", @@ -439,7 +439,7 @@ describe("GIVEN a Calendar", () => { cy.mount( + />, ); cy.findByRole("button", { name: "Next Month", @@ -458,7 +458,7 @@ describe("GIVEN a Calendar", () => { cy.findByRole("button", { name: formatDay(testDate) }).should( "have.attr", "aria-pressed", - "true" + "true", ); cy.findByRole("button", { @@ -518,12 +518,12 @@ describe("GIVEN a Calendar", () => { // @ts-ignore baseDate, // @ts-ignore - OffsetSelection.args?.endDateOffset(baseDate) + OffsetSelection.args?.endDateOffset(baseDate), ); cy.findByRole("button", { name: formatDay(baseDate), }).realHover(); - for (let dateInRange of datesInRange) { + for (const dateInRange of datesInRange) { cy.findByRole("button", { name: formatDay(dateInRange), }).should("have.class", "saltCalendarDay-hoveredOffset"); @@ -533,7 +533,7 @@ describe("GIVEN a Calendar", () => { name: formatDay(baseDate), }).realClick(); - for (let dateInRange of datesInRange) { + for (const dateInRange of datesInRange) { cy.findByRole("button", { name: formatDay(dateInRange), }).should("have.attr", "aria-pressed", "true"); @@ -543,19 +543,19 @@ describe("GIVEN a Calendar", () => { const datesInNewRange = getAllDatesInRange( newBaseDate, // @ts-ignore - OffsetSelection.args?.endDateOffset(newBaseDate) + OffsetSelection.args?.endDateOffset(newBaseDate), ); cy.findByRole("button", { name: formatDay(baseDate.add({ weeks: 1 })), }).realClick(); - for (let dateInRange of datesInNewRange) { + for (const dateInRange of datesInNewRange) { cy.findByRole("button", { name: formatDay(dateInRange), }).should("have.attr", "aria-pressed", "true"); } - for (let dateInRange of datesInRange) { + for (const dateInRange of datesInRange) { cy.findByRole("button", { name: formatDay(dateInRange), }).should("not.have.attr", "aria-pressed"); @@ -563,7 +563,7 @@ describe("GIVEN a Calendar", () => { cy.realPress("ArrowUp"); cy.realPress("Enter"); - for (let dateInRange of datesInRange) { + for (const dateInRange of datesInRange) { cy.findByRole("button", { name: formatDay(dateInRange), }).should("have.attr", "aria-pressed", "true"); @@ -581,7 +581,7 @@ describe("GIVEN a Calendar", () => { endDate: endOfMonth(todayTestDate), }} defaultVisibleMonth={todayTestDate} - /> + />, ); cy.findByRole("button", { name: "Next Month", @@ -600,7 +600,7 @@ describe("GIVEN a Calendar", () => { endDate: endOfMonth(todayTestDate), }} defaultVisibleMonth={todayTestDate} - /> + />, ); cy.findByRole("button", { name: "Next Month", @@ -621,7 +621,7 @@ describe("GIVEN a Calendar", () => { }), }} defaultVisibleMonth={todayTestDate} - /> + />, ); cy.findByRole("button", { name: "Next Month", @@ -648,7 +648,7 @@ describe("GIVEN a Calendar", () => { + />, ); cy.findByRole("button", { name: "Next Month", @@ -663,7 +663,7 @@ describe("GIVEN a Calendar", () => { cy.mount( + />, ); cy.findByRole("button", { name: "Next Month", @@ -684,7 +684,7 @@ describe("GIVEN a Calendar", () => { endDate: testDate.add({ months: 2 }), }} defaultVisibleMonth={testDate} - /> + />, ); cy.findByRole("button", { name: "Next Month", @@ -808,7 +808,7 @@ describe("GIVEN a Calendar", () => { defaultVisibleMonth={testDate} minDate={minDate} maxDate={maxDate} - /> + />, ); cy.findByRole("button", { name: "Previous Month", @@ -824,7 +824,7 @@ describe("GIVEN a Calendar", () => { }).realHover(); cy.findByRole("tooltip").should( "have.text", - "Past dates are out of range" + "Past dates are out of range", ); cy.findByRole("combobox", { name: "Month Dropdown" }).realClick(); @@ -839,7 +839,7 @@ describe("GIVEN a Calendar", () => { cy.findByRole("tooltip").should( "have.text", - "This month is out of range" + "This month is out of range", ); cy.findByRole("button", { @@ -862,7 +862,7 @@ describe("GIVEN a Calendar", () => { }).realHover(); cy.findByRole("tooltip").should( "have.text", - "Future dates are out of range" + "Future dates are out of range", ); cy.findByRole("combobox", { name: "Month Dropdown" }).realClick(); @@ -884,7 +884,7 @@ describe("GIVEN a Calendar", () => { it("SHOULD hide the days not in the current month from be displayed when set to true", () => { cy.mount(); const lastPreviousOutOfRangeDate = formatDay( - endOfMonth(testDate.subtract({ months: 1 })) + endOfMonth(testDate.subtract({ months: 1 })), ); cy.get(`[aria-label="${lastPreviousOutOfRangeDate}"]`) .eq(1) @@ -892,7 +892,7 @@ describe("GIVEN a Calendar", () => { .and("have.attr", "aria-hidden", "true"); const firstNextOutOfRangeDate = formatDay( - startOfMonth(testDate.add({ months: 1 })) + startOfMonth(testDate.add({ months: 1 })), ); cy.get(`[aria-label="${firstNextOutOfRangeDate}"]`) .eq(0) @@ -945,7 +945,7 @@ describe("GIVEN a Calendar", () => { }).realHover(); cy.findByRole("tooltip").should( "have.text", - "Past dates are out of range" + "Past dates are out of range", ); }); @@ -967,7 +967,7 @@ describe("GIVEN a Calendar", () => { }).realHover(); cy.findByRole("tooltip").should( "have.text", - "Future dates are out of range" + "Future dates are out of range", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/cascading-menu/CascadingMenu.cy.tsx b/packages/lab/src/__tests__/__e2e__/cascading-menu/CascadingMenu.cy.tsx index 9ad5ab2f01..da629f4ba1 100644 --- a/packages/lab/src/__tests__/__e2e__/cascading-menu/CascadingMenu.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/cascading-menu/CascadingMenu.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as cascadingMenuStories from "@stories/cascading-menu/cascading-menu.stories"; +import { composeStories } from "@storybook/react"; import { version } from "react"; const { Default } = composeStories(cascadingMenuStories); @@ -10,7 +10,7 @@ describe("GIVEN a CascadingMenu component", () => { cy.mount(); cy.findByTestId("cascading-menu-trigger").should( "have.class", - "saltButton" + "saltButton", ); cy.findByRole("menu").should("not.exist"); }); @@ -64,7 +64,7 @@ describe("GIVEN a CascadingMenu component", () => { cy.realPress("{enter}"); cy.findAllByRole("menu").should("have.length", 3); } - : undefined + : undefined, ); specify( @@ -80,7 +80,7 @@ describe("GIVEN a CascadingMenu component", () => { cy.realPress("{rightarrow}"); cy.findAllByRole("menu").should("have.length", 3); } - : undefined + : undefined, ); specify( @@ -102,7 +102,7 @@ describe("GIVEN a CascadingMenu component", () => { cy.realPress("Escape"); cy.findAllByRole("menu").should("have.length", 0); } - : undefined + : undefined, ); specify("Click-away closes all menus", () => { diff --git a/packages/lab/src/__tests__/__e2e__/color-chooser/ColorChooser.cy.tsx b/packages/lab/src/__tests__/__e2e__/color-chooser/ColorChooser.cy.tsx index 1400da7fd1..88503ae75f 100644 --- a/packages/lab/src/__tests__/__e2e__/color-chooser/ColorChooser.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/color-chooser/ColorChooser.cy.tsx @@ -1,4 +1,4 @@ -import { ColorChooser, Color } from "@salt-ds/lab"; +import { Color, ColorChooser } from "@salt-ds/lab"; const saltColor = Color.makeColorFromHex("#D1F4C9"); const customColor = Color.makeColorFromHex("#30BC67"); @@ -6,14 +6,14 @@ const customColor = Color.makeColorFromHex("#30BC67"); describe("ColorChooser", () => { it("Renders an overlay", () => { cy.mount( - {}} onClear={() => {}} /> + {}} onClear={() => {}} />, ); cy.findByRole("button", { name: "Green10" }).should("be.visible"); }); it("Renders the SwatchesPicker upon clicking on the Swatches tab", () => { cy.mount( - {}} onClear={() => {}} /> + {}} onClear={() => {}} />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByText("Swatches").realClick(); @@ -22,26 +22,26 @@ describe("ColorChooser", () => { it("Selects the Swatches tab as default if no color is selected", () => { cy.mount( - {}} onClear={() => {}} /> + {}} onClear={() => {}} />, ); cy.findByRole("button", { name: "No color selected" }).realClick(); cy.findByRole("tab", { name: "Swatches" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByTestId("swatches").should("be.visible"); }); it("Renders the Swatches tab first if a Salt color is selected", () => { cy.mount( - {}} onClear={() => {}} /> + {}} onClear={() => {}} />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByRole("tab", { name: "Swatches" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByTestId("swatches-picker").should("be.visible"); }); @@ -52,13 +52,13 @@ describe("ColorChooser", () => { color={customColor} onSelect={() => {}} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "#30bc67" }).realClick(); cy.findByRole("tab", { name: "Color Picker" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByTestId("color-picker").should("be.visible"); }); @@ -71,7 +71,7 @@ describe("ColorChooser", () => { disableAlphaChooser={true} onSelect={() => {}} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "No color selected" }).realClick(); cy.findByRole("tab", { name: "Color Picker" }).realClick(); @@ -89,7 +89,7 @@ describe("ColorChooser", () => { onSelect={() => {}} disableAlphaChooser={false} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByRole("tab", { name: "Swatches" }).realClick(); @@ -105,7 +105,7 @@ describe("ColorChooser", () => { onSelect={() => {}} disableAlphaChooser={false} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByRole("tab", { name: "Color Picker" }).realClick(); @@ -122,7 +122,7 @@ describe("ColorChooser", () => { onSelect={() => {}} disableAlphaChooser={false} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByRole("tab", { name: "Color Picker" }).realClick(); @@ -138,7 +138,7 @@ describe("ColorChooser", () => { disableAlphaChooser={true} onSelect={() => {}} onClear={() => {}} - /> + />, ); cy.findByRole("button", { name: "Green10" }).realClick(); cy.findByRole("tab", { name: "Swatches" }).realClick(); diff --git a/packages/lab/src/__tests__/__e2e__/color-chooser/SwatchesPicker.cy.tsx b/packages/lab/src/__tests__/__e2e__/color-chooser/SwatchesPicker.cy.tsx index 3e04526980..08622287de 100644 --- a/packages/lab/src/__tests__/__e2e__/color-chooser/SwatchesPicker.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/color-chooser/SwatchesPicker.cy.tsx @@ -1,4 +1,4 @@ -import { Swatch, SwatchesPicker, Color } from "../../../color-chooser"; +import { Color, Swatch, SwatchesPicker } from "../../../color-chooser"; const colorResult = Color.makeColorFromHex("#333333"); describe("SwatchesPicker", () => { @@ -9,7 +9,7 @@ describe("SwatchesPicker", () => { allColors={[["#ffffff"], ["#333333"]]} onChange={() => {}} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatches-picker").should("exist"); }); @@ -22,12 +22,12 @@ describe("SwatchesPicker", () => { onChange={() => {}} alpha={0.1} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatch-#333333").should( "have.css", "background-color", - "rgba(51, 51, 51, 0.1)" + "rgba(51, 51, 51, 0.1)", ); }); @@ -39,7 +39,7 @@ describe("SwatchesPicker", () => { allColors={[["#ffffff"], ["#333333"]]} onChange={changeSpy} onDialogClosed={() => {}} - /> + />, ); cy.get("@changeSpy").should("not.have.been.called"); cy.findByTestId("swatch-#333333").realClick(); @@ -53,7 +53,7 @@ describe("SwatchesPicker", () => { _r: 51, }, }, - true + true, ); }); @@ -67,12 +67,12 @@ describe("SwatchesPicker", () => { active={false} alpha={0.1} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatch-#333").should( "have.css", "background-color", - "rgba(51, 51, 51, 0.1)" + "rgba(51, 51, 51, 0.1)", ); }); it("Should render a div with a coloured background", () => { @@ -83,12 +83,12 @@ describe("SwatchesPicker", () => { active={false} alpha={1} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatch-#333").should( "have.css", "background-color", - "rgb(51, 51, 51)" + "rgb(51, 51, 51)", ); }); it("Should call onClick callback if selected", () => { @@ -100,7 +100,7 @@ describe("SwatchesPicker", () => { active={false} alpha={0.1} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatch-#333").realClick(); cy.get("@clickSpy").should("have.been.called"); @@ -114,7 +114,7 @@ describe("SwatchesPicker", () => { active={false} alpha={0.1} onDialogClosed={dialogClosedSpy} - /> + />, ); cy.findByTestId("swatch-#333").realClick(); cy.get("@dialogClosedSpy").should("have.been.called"); @@ -127,11 +127,11 @@ describe("SwatchesPicker", () => { active={true} alpha={0.1} onDialogClosed={() => {}} - /> + />, ); cy.findByTestId("swatch-#333").should( "have.class", - "saltColorChooserSwatch-active" + "saltColorChooserSwatch-active", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.accessibility.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.accessibility.cy.tsx index ab5a6d3ae0..818f637cf3 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.accessibility.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.accessibility.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox-deprecated.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -16,7 +16,9 @@ describe("A combo box", () => { const testId = "my-input"; cy.mount( - + , ); cy.findByTestId(testId).should("have.attr", "role", "combobox"); @@ -39,14 +41,14 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); cy.realPress("Tab"); cy.findByRole("combobox").should( "have.attr", "aria-activedescendant", - `${mockId}-list-item-0` + `${mockId}-list-item-0`, ); }); @@ -63,7 +65,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); }); @@ -89,7 +91,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); // // second time highlight @@ -98,7 +100,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "have.attr", "aria-activedescendant", - `${mockId}-list-item-${key === "ArrowDown" ? "1" : "0"}` + `${mockId}-list-item-${key === "ArrowDown" ? "1" : "0"}`, ); }); }); @@ -120,9 +122,9 @@ describe("A multi-select combo box", () => { cy.mount( + />, ); cy.findByTestId(testId) @@ -136,7 +138,7 @@ describe("A multi-select combo box", () => { cy.findByRole("button").should( "have.attr", "aria-roledescription", - "Expand combobox button" + "Expand combobox button", ); }); @@ -160,7 +162,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-activedescendant", - `${mockId}-list-item-1` + `${mockId}-list-item-1`, ); cy.realPress("Home"); cy.realPress("ArrowLeft"); @@ -168,7 +170,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-activedescendant", - `${mockId}-input-pill-4` + `${mockId}-input-pill-4`, ); }); @@ -184,7 +186,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-activedescendant", - `${mockId}-input-pill-4` + `${mockId}-input-pill-4`, ); // leave pills @@ -197,7 +199,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-activedescendant", - `${mockId}-input-pill-4` + `${mockId}-input-pill-4`, ); }); @@ -216,7 +218,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-activedescendant", - `${mockId}-input-pill-4` + `${mockId}-input-pill-4`, ); // second time highlight @@ -247,7 +249,7 @@ describe("A multi-select combo box", () => { + />, ); cy.realPress("Tab"); @@ -255,7 +257,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "aria-labelledby", - `${mockLabelId} ${mockInputId}` + `${mockLabelId} ${mockInputId}`, ); }); @@ -268,13 +270,13 @@ describe("A multi-select combo box", () => { + />, ); cy.findByRole("button").should( "have.attr", "aria-labelledby", - `${mockLabelId} ${mockInputId}` + `${mockLabelId} ${mockInputId}`, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.cy.tsx index 4427b66c01..088beaa41f 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox-deprecated.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -33,7 +33,7 @@ describe("A combo box", () => { cy.wrap(item).should( "have.attr", "id", - `my-combo-box-list-item-${index}` + `my-combo-box-list-item-${index}`, ); }); }); @@ -58,7 +58,7 @@ describe("A combo box", () => { cy.findAllByRole("option").should("have.length", 1); cy.findByRole("option").should( "have.class", - "saltListItemDeprecated-selected" + "saltListItemDeprecated-selected", ); }); @@ -69,7 +69,7 @@ describe("A combo box", () => { Default.args!.source![0], Default.args!.source![1], ]} - /> + />, ); cy.findByRole("textbox").realClick(); @@ -121,7 +121,7 @@ describe("A combo box", () => { cy.findByRole("combobox").clear(); cy.findAllByRole("option").should( "have.length", - Default.args!.source!.length + Default.args!.source!.length, ); }); @@ -149,7 +149,7 @@ describe("A multi-select combo box", () => { cy.findByRole("textbox").should( "have.attr", "id", - "my-combo-box-input-input" + "my-combo-box-input-input", ); cy.findByRole("listbox").should("have.attr", "id", "my-combo-box-list"); @@ -158,7 +158,7 @@ describe("A multi-select combo box", () => { cy.wrap(item).should( "have.attr", "id", - `my-combo-box-input-pill-${index}` + `my-combo-box-input-pill-${index}`, ); }); }); @@ -170,7 +170,7 @@ describe("A multi-select combo box", () => { cy.wrap(item).should( "have.attr", "id", - `my-combo-box-list-item-${index}` + `my-combo-box-list-item-${index}`, ); }); }); @@ -199,7 +199,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Alaska"] + ["Alabama", "Alaska"], ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.keyboardNavigation.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.keyboardNavigation.cy.tsx index 2ac71f9bd8..2ab8d38e3f 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.keyboardNavigation.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.keyboardNavigation.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox-deprecated.stories"; +import { composeStories } from "@storybook/react"; import { version } from "react"; const { @@ -20,7 +20,7 @@ describe("A combo box", () => { cy.realPress("Tab"); cy.findAllByRole("option").should( "not.have.class", - "saltListItemDeprecated-highlighted" + "saltListItemDeprecated-highlighted", ); }); }); @@ -108,7 +108,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Alabama" + "Alabama", ); }); }); @@ -125,7 +125,7 @@ describe("A combo box", () => { // input value updated cy.findByRole("combobox").should( "have.value", - Default.args!.source?.[0] + Default.args!.source?.[0], ); // list is closed @@ -135,7 +135,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - Default.args!.source?.[0] + Default.args!.source?.[0], ); }); }); @@ -232,7 +232,7 @@ describe("A combo box", () => { .should("have.class", "saltListItemDeprecated-highlighted") .and("have.class", "saltListItemDeprecated-focusVisible"); } - : undefined + : undefined, ); }); }); @@ -283,7 +283,7 @@ describe("A combo box that allows free text", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Baby blue" + "Baby blue", ); }); @@ -445,7 +445,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama"] + ["Alabama"], ); cy.realPress("ArrowDown"); @@ -460,7 +460,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Arizona"] + ["Alabama", "Arizona"], ); // list style updated @@ -581,7 +581,7 @@ describe("A multi-select combo box", () => { cy.findAllByTestId("pill").should( "not.have.class", - "saltInputPill-pillActive" + "saltInputPill-pillActive", ); // start navigating through pill group so the focus should be removed from list @@ -614,7 +614,7 @@ describe("A multi-select combo box", () => { cy.findAllByTestId("pill").should( "not.have.class", - "saltInputPill-pillActive" + "saltInputPill-pillActive", ); cy.findByRole("listbox") @@ -682,7 +682,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Arkansas", "Connecticut", "Hawaii", "Kansas"] + ["Arkansas", "Connecticut", "Hawaii", "Kansas"], ); cy.realPress("ArrowDown"); @@ -698,7 +698,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Connecticut", "Hawaii", "Kansas"] + ["Connecticut", "Hawaii", "Kansas"], ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.selection.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.selection.cy.tsx index bdc6208252..eb27e69d1f 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.selection.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box-deprecated/ComboBox.selection.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox-deprecated.stories"; +import { composeStories } from "@storybook/react"; const { Default, MultiSelect } = composeStories(comboBoxStories); @@ -22,7 +22,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Alaska" + "Alaska", ); }); @@ -122,7 +122,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - null + null, ); }); }); @@ -138,13 +138,13 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alaska"] + ["Alaska"], ); cy.findByRole("option", { name: "Alabama" }).realClick(); cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Alaska"] + ["Alabama", "Alaska"], ); // pill group updated cy.findAllByTestId("pill").should("have.length", 2); @@ -188,7 +188,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama"] + ["Alabama"], ); cy.findByRole("listbox") .findByRole("option", { name: "Alaska" }) @@ -196,7 +196,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Alaska"] + ["Alabama", "Alaska"], ); cy.findByRole("listbox") .findByRole("option", { name: "Alabama" }) @@ -204,7 +204,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alaska"] + ["Alaska"], ); // pill group updated cy.findAllByTestId("pill").should("have.length", 1); @@ -231,7 +231,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama"] + ["Alabama"], ); cy.findByRole("listbox") .findByRole("option", { name: "Alaska" }) @@ -239,7 +239,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Alaska"] + ["Alabama", "Alaska"], ); cy.findAllByTestId("pill").should("have.length", 2); @@ -249,7 +249,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama"] + ["Alabama"], ); // pill group updated @@ -273,7 +273,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama"] + ["Alabama"], ); cy.findByRole("listbox") .findByRole("option", { name: "Alaska" }) @@ -281,7 +281,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - ["Alabama", "Alaska"] + ["Alabama", "Alaska"], ); cy.findAllByTestId("pill").should("have.length", 2); @@ -292,7 +292,7 @@ describe("A multi-select combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - [] + [], ); // list style updated diff --git a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.accessibility.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.accessibility.cy.tsx index 389a00bfd1..76f75cee32 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.accessibility.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.accessibility.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -16,7 +16,9 @@ describe("A combo box", () => { const testId = "my-input"; cy.mount( - + , ); cy.findByTestId(testId).should("have.attr", "role", "combobox"); @@ -38,7 +40,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); cy.realPress("Tab"); @@ -47,7 +49,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "have.attr", "aria-activedescendant", - `${mockId}-item-3` + `${mockId}-item-3`, ); }); @@ -64,7 +66,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); }); @@ -90,7 +92,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "not.have.attr", - "aria-activedescendant" + "aria-activedescendant", ); // // second time highlight @@ -99,7 +101,7 @@ describe("A combo box", () => { cy.findByRole("combobox").should( "have.attr", "aria-activedescendant", - `${mockId}-item-${key === "ArrowDown" ? "1" : "0"}` + `${mockId}-item-${key === "ArrowDown" ? "1" : "0"}`, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx index 4d28a199c8..6d4dec33d1 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -116,14 +116,14 @@ describe("A combo box", () => { cy.findByRole("combobox").clear(); cy.findAllByRole("option").should( "have.length", - Default.args!.source!.length + Default.args!.source!.length, ); // change callback invoked cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "ska" + "ska", ); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.keyboardNavigation.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.keyboardNavigation.cy.tsx index 306c9447a5..501cab0d6c 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.keyboardNavigation.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.keyboardNavigation.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox.stories"; +import { composeStories } from "@storybook/react"; const { Default, @@ -101,7 +101,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Alabama" + "Alabama", ); }); }); @@ -118,7 +118,7 @@ describe("A combo box", () => { // input value updated cy.findByRole("combobox").should( "have.value", - Default.args!.source?.[0] + Default.args!.source?.[0], ); // list is closed @@ -128,7 +128,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - Default.args!.source?.[0] + Default.args!.source?.[0], ); }); }); @@ -270,7 +270,7 @@ describe("A combo box that allows free text", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Baby blue" + "Baby blue", ); }); diff --git a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.selection.cy.tsx b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.selection.cy.tsx index 175bdb6806..a7b46e244c 100644 --- a/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.selection.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/combo-box/ComboBox.selection.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as comboBoxStories from "@stories/combobox/combobox.stories"; +import { composeStories } from "@storybook/react"; const { Default /*, MultiSelect*/ } = composeStories(comboBoxStories); @@ -22,7 +22,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "Alaska" + "Alaska", ); }); @@ -122,7 +122,7 @@ describe("A combo box", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - null + null, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx b/packages/lab/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx index 5f16586d86..2cb5e98348 100644 --- a/packages/lab/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx +++ b/packages/lab/src/__tests__/__e2e__/common/CustomFloatingComponentProvider.tsx @@ -1,10 +1,10 @@ -import { CSSProperties, forwardRef, ReactNode } from "react"; +import { FloatingPortal } from "@floating-ui/react"; import { - FloatingComponentProps, - SaltProvider, + type FloatingComponentProps, FloatingComponentProvider, + SaltProvider, } from "@salt-ds/core"; -import { FloatingPortal } from "@floating-ui/react"; +import { type CSSProperties, type ReactNode, forwardRef } from "react"; export const FLOATING_TEST_ID = "FLOATING_TEST_ID"; diff --git a/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.accessibility.cy.tsx b/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.accessibility.cy.tsx index 0cfae9d4c9..aebd2d01d2 100644 --- a/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.accessibility.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.accessibility.cy.tsx @@ -3,12 +3,12 @@ import { ContactActions, ContactAvatar, ContactDetails, - ContactDetailsProps, - ContactDetailsVariant, + type ContactDetailsProps, + type ContactDetailsVariant, ContactFavoriteToggle, ContactMetadata, ContactMetadataItem, - ContactMetadataProps, + type ContactMetadataProps, ContactPrimaryInfo, ContactSecondaryInfo, ContactTertiaryInfo, @@ -93,7 +93,7 @@ variants.forEach((variant) => { it("can configure aria level", () => { cy.mount( - + , ); cy.findByRole("heading").should("have.attr", "aria-level", "4"); }); @@ -109,7 +109,7 @@ variants.forEach((variant) => { .invoke("attr", "id") .then((secondaryId) => { expect(headingLabelledBy).contain( - `${headingId} ${secondaryId}` + `${headingId} ${secondaryId}`, ); if (variant === "default") { @@ -117,7 +117,7 @@ variants.forEach((variant) => { .invoke("attr", "id") .then((tertiaryId) => { expect(headingLabelledBy).contain( - `${headingId} ${secondaryId} ${tertiaryId}` + `${headingId} ${secondaryId} ${tertiaryId}`, ); }); } @@ -170,7 +170,7 @@ describe("Given a default collapsible ContactDetails", () => { cy.findByLabelText("Expand").should( "have.attr", "aria-labelledby", - `${buttonId} ${primaryId}` + `${buttonId} ${primaryId}`, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.cy.tsx b/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.cy.tsx index 195d546c24..e7b517cfbf 100644 --- a/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/contact-details/ContactDetails.cy.tsx @@ -1,16 +1,16 @@ import { + ContactAction, + ContactActions, + ContactAvatar, ContactDetails, - ContactDetailsVariant, - MailLinkComponent, + type ContactDetailsVariant, + ContactFavoriteToggle, + ContactMetadata, + ContactMetadataItem, ContactPrimaryInfo, ContactSecondaryInfo, ContactTertiaryInfo, - ContactActions, - ContactAction, - ContactMetadata, - ContactMetadataItem, - ContactFavoriteToggle, - ContactAvatar, + MailLinkComponent, } from "@salt-ds/lab"; const variants: ContactDetailsVariant[] = ["default", "compact", "mini"]; @@ -43,15 +43,15 @@ variants.forEach((variant) => { {actionLabels.map((label) => ( - + ))} {metadata.map(([label, value]) => ( - + ))} - + , ); }); variant !== "mini" && @@ -112,19 +112,19 @@ variants.forEach((variant) => { - + , ); cy.get("svg").should( "have.class", - "saltContactFavoriteToggle-deselected" + "saltContactFavoriteToggle-deselected", ); cy.mount( - + , ); cy.get("svg").should("have.class", "saltContactFavoriteToggle-selected"); @@ -135,18 +135,18 @@ variants.forEach((variant) => { - + , ); cy.get("svg").should( "have.class", - "saltContactFavoriteToggle-deselected" + "saltContactFavoriteToggle-deselected", ); cy.findByLabelText("Favorite").click(); cy.get("svg").should( "have.class", - "saltContactFavoriteToggle-deselecting" + "saltContactFavoriteToggle-deselecting", ); }); @@ -155,12 +155,12 @@ variants.forEach((variant) => { - + , ); cy.get("svg").should( "have.class", - "saltContactFavoriteToggle-deselected" + "saltContactFavoriteToggle-deselected", ); cy.realPress("Tab"); diff --git a/packages/lab/src/__tests__/__e2e__/content-status/ContentStatus.cy.tsx b/packages/lab/src/__tests__/__e2e__/content-status/ContentStatus.cy.tsx index 198c688ac7..07dc74f5fe 100644 --- a/packages/lab/src/__tests__/__e2e__/content-status/ContentStatus.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/content-status/ContentStatus.cy.tsx @@ -72,7 +72,7 @@ describe("GIVEN Content Status", () => { actionLabel="My Label" id="1" onActionClick={cy.spy().as("onActionClickSpy")} - /> + />, ); cy.findByRole("region").children().should("have.length", 1); @@ -87,7 +87,7 @@ describe("GIVEN Content Status", () => { it("DOES NOT render actions WHEN actionLabel IS NOT passed", () => { cy.mount( - + , ); cy.findByRole("region").should("not.exist"); @@ -109,7 +109,7 @@ describe("GIVEN Content Status", () => { cy.mount(
Test Children
-
+
, ); cy.findByRole("region").children().should("have.length", 1); @@ -124,7 +124,7 @@ describe("GIVEN Content Status", () => { buttonRef={cy.spy().as("buttonRefSpy")} id="1" onActionClick={cy.spy().as("onActionClickSpy")} - /> + />, ); cy.findByRole("region").children().should("have.length", 1); @@ -144,7 +144,7 @@ describe("GIVEN Content Status", () => { // Disabled completion announcement from spinner cy.get('[aria-live="assertive"]').should( "not.announce", - "finished loading" + "finished loading", ); cy.get('[aria-live="assertive"]').should("contain", "success"); }); @@ -163,7 +163,7 @@ describe("GIVEN Content Status", () => { + />, ); cy.wait(2500); diff --git a/packages/lab/src/__tests__/__e2e__/date-input/DateInput.cy.tsx b/packages/lab/src/__tests__/__e2e__/date-input/DateInput.cy.tsx index 6c1e95c47c..98e060d7ee 100644 --- a/packages/lab/src/__tests__/__e2e__/date-input/DateInput.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/date-input/DateInput.cy.tsx @@ -1,6 +1,6 @@ -import { composeStories } from "@storybook/react"; -import { ChangeEvent } from "react"; import * as dateInputStories from "@stories/date-input/date-input.stories"; +import { composeStories } from "@storybook/react"; +import type { ChangeEvent } from "react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(dateInputStories); const { Default, Range } = composedStories; @@ -40,7 +40,7 @@ describe("GIVEN a DateInput", () => { const onChange = ( event: ChangeEvent, startDateInputValue?: string, - endDateInputValue?: string + endDateInputValue?: string, ) => { // React 16 backwards compatibility event.persist(); @@ -62,7 +62,7 @@ describe("GIVEN a DateInput", () => { cy.get("@changeSpy").should( "have.been.calledWith", testStartInputDate, - testEndInputDate + testEndInputDate, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/date-picker/DatePicker.cy.tsx b/packages/lab/src/__tests__/__e2e__/date-picker/DatePicker.cy.tsx index c77b492d46..15c8c70c09 100644 --- a/packages/lab/src/__tests__/__e2e__/date-picker/DatePicker.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/date-picker/DatePicker.cy.tsx @@ -1,16 +1,16 @@ -import { composeStories } from "@storybook/react"; -import * as datePickerStories from "@stories/date-picker/date-picker.stories"; -import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; import { CalendarDate, DateFormatter, - DateValue, + type DateValue, endOfMonth, getLocalTimeZone, startOfMonth, today, } from "@internationalized/date"; -import { ChangeEvent, useState } from "react"; +import * as datePickerStories from "@stories/date-picker/date-picker.stories"; +import { composeStories } from "@storybook/react"; +import { type ChangeEvent, useState } from "react"; +import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(datePickerStories); const { Default, Range } = composedStories; @@ -53,7 +53,7 @@ describe("GIVEN a DatePicker", () => { cy.findByRole("textbox").blur(); cy.findByRole("textbox").should( "have.value", - formatInput(testDate.add({ days: 1 })) + formatInput(testDate.add({ days: 1 })), ); }); it("THEN should not format invalid dates on blur", () => { @@ -114,7 +114,7 @@ describe("GIVEN a DatePicker", () => { + />, ); cy.findByRole("textbox").click().clear(); cy.findByRole("textbox").blur(); @@ -122,7 +122,7 @@ describe("GIVEN a DatePicker", () => { cy.findByRole("button", { name: formatDay(testDate) }).should( "not.have.attr", "aria-pressed", - "true" + "true", ); }); it("should allow a controlled open state", () => { @@ -166,7 +166,7 @@ describe("GIVEN a DatePicker", () => { startDate: testDate, endDate: testDate.add({ months: 1 }), }} - /> + />, ); cy.findAllByRole("textbox") .eq(0) @@ -215,7 +215,7 @@ describe("GIVEN a DatePicker", () => { startDate: testDate, endDate: testDate.add({ months: 1 }), }} - /> + />, ); cy.findByRole("button", { name: "Open Calendar" }).realClick(); cy.findAllByRole("combobox") @@ -225,7 +225,7 @@ describe("GIVEN a DatePicker", () => { .eq(2) .should( "have.text", - formatDate(testDate.add({ months: 1 }), { month: "short" }) + formatDate(testDate.add({ months: 1 }), { month: "short" }), ); cy.findByRole("button", { name: formatDay(testDate.add({ months: 1, days: 1 })), @@ -237,13 +237,13 @@ describe("GIVEN a DatePicker", () => { .eq(0) .should( "have.text", - formatDate(testDate.add({ months: 1 }), { month: "short" }) + formatDate(testDate.add({ months: 1 }), { month: "short" }), ); cy.findAllByRole("combobox") .eq(2) .should( "have.text", - formatDate(testDate.add({ months: 2 }), { month: "short" }) + formatDate(testDate.add({ months: 2 }), { month: "short" }), ); }); @@ -266,7 +266,7 @@ describe("GIVEN a DatePicker", () => { }).realClick(); cy.findByRole("button", { name: formatDay( - startOfMonth(today(localTimeZone)).add({ days: 15, months: 1 }) + startOfMonth(today(localTimeZone)).add({ days: 15, months: 1 }), ), }).realHover(); cy.findByRole("button", { @@ -296,12 +296,12 @@ describe("GIVEN a DatePicker", () => { cy.findByRole("button", { name: "Next Month" }).should( "not.have.attr", "aria-disabled", - "true" + "true", ); cy.findByRole("button", { name: "Previous Month" }).should( "not.have.attr", "aria-disabled", - "true" + "true", ); }); it("THEN should mount with specified date if controlled", () => { @@ -311,7 +311,7 @@ describe("GIVEN a DatePicker", () => { startDate: testDate, endDate: testDate.add({ months: 1 }), }} - /> + />, ); cy.findAllByRole("textbox") .eq(0) @@ -327,7 +327,7 @@ describe("GIVEN a DatePicker", () => { startDate: testDate, endDate: testDate.add({ months: 1 }), }} - /> + />, ); cy.findAllByRole("textbox").eq(0).clear().click().type("2 fev"); cy.findAllByRole("textbox").eq(0).blur(); @@ -341,7 +341,7 @@ describe("GIVEN a DatePicker", () => { const onChange = ( event: ChangeEvent, startDate?: string, - endDate?: string + endDate?: string, ) => { // React 16 backwards compatibility event.persist(); @@ -359,7 +359,7 @@ describe("GIVEN a DatePicker", () => { cy.get("@changeSpy").should( "have.been.calledWith", testInput, - rangeTestInput + rangeTestInput, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/deck-layout/DeckLayout.cy.tsx b/packages/lab/src/__tests__/__e2e__/deck-layout/DeckLayout.cy.tsx index 53bc417205..2d07fa1306 100644 --- a/packages/lab/src/__tests__/__e2e__/deck-layout/DeckLayout.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/deck-layout/DeckLayout.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as deckStories from "@stories/deck-layout/deck-layout.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(deckStories); @@ -74,14 +74,14 @@ describe("Given a deck layout", () => { cy.get(".saltDeckLayout-animate").should( "have.class", - "saltDeckLayout-slide-vertical" + "saltDeckLayout-slide-vertical", ); }); it("THEN deck should have horizontal animation classes if direction is horizontal", () => { cy.mount(); cy.get(".saltDeckLayout-animate").should( "have.class", - "saltDeckLayout-slide-horizontal" + "saltDeckLayout-slide-horizontal", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx b/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx index 908411013c..2b4f9b37e0 100644 --- a/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.cy.tsx @@ -8,12 +8,12 @@ describe("GIVEN a Dropdown component", () => { cy.mount( - + , ); cy.findByLabelText("Dropdown").focus(); cy.get(".saltFormFieldLegacy").should( "have.class", - "saltFormFieldLegacy-focused" + "saltFormFieldLegacy-focused", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.keyboardNavigation.cy.tsx b/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.keyboardNavigation.cy.tsx index 3673aed69e..3a9c5c88d5 100644 --- a/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.keyboardNavigation.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/dropdown/Dropdown.keyboardNavigation.cy.tsx @@ -1,4 +1,4 @@ -import { Dropdown, DropdownButton, SelectionStrategy } from "@salt-ds/lab"; +import { Dropdown, DropdownButton, type SelectionStrategy } from "@salt-ds/lab"; /** * Changes applied @@ -32,7 +32,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress(key); @@ -46,7 +46,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("Tab"); @@ -67,7 +67,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress(key); @@ -80,7 +80,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.get("#test-control").within(() => { cy.findByText(testSource[0]).should("exist"); }); - } + }, ); }); @@ -93,13 +93,13 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; selectionStrategy={selectionStrategy} source={testSource} defaultIsOpen - /> + />, ); cy.get("#test-control").focus(); cy.realPress("Escape"); cy.get("#test-popup").should("not.exist"); cy.findByText(testSource[0]).should("not.exist"); - } + }, ); specify("Pressing ArrowDown should highlight second item", () => { @@ -109,14 +109,14 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("ArrowDown"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); }); @@ -127,14 +127,14 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("End"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - `test-item-${testSource.length - 1}` + `test-item-${testSource.length - 1}`, ); }); @@ -149,7 +149,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); @@ -161,10 +161,10 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.realPress("Tab"); cy.get("#test-control").within(() => { cy.findByText(testSource[1]).should( - isMultiSelect ? "not.exist" : "exist" + isMultiSelect ? "not.exist" : "exist", ); }); - } + }, ); describe("supports type to highlight", () => { @@ -175,14 +175,14 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-0" + "test-item-0", ); // Prioritize next available option starting with B from the cyclic effect @@ -190,21 +190,21 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-3" + "test-item-3", ); cy.realPress("A"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-3" + "test-item-3", ); cy.realPress("R"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-0" + "test-item-0", ); }); @@ -215,63 +215,63 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-0" + "test-item-0", ); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("O"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("O"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("Space"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); cy.realPress("B"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); cy.realPress("A"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); cy.realPress("R"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); }); @@ -282,42 +282,42 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-0" + "test-item-0", ); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("O"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("O"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("Space"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); // Advance the timers so we can select using the Spacebar @@ -341,14 +341,14 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.wait(1500); @@ -357,7 +357,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-3" + "test-item-3", ); }); @@ -368,7 +368,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("B"); @@ -377,7 +377,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-3" + "test-item-3", ); cy.wait(1500); @@ -386,7 +386,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); }); @@ -397,28 +397,28 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-2" + "test-item-2", ); cy.realPress("F"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); }); }); @@ -431,13 +431,13 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; cy.mount(
-
+
, ); cy.get("#test-control").focus(); cy.realPress(["Alt", "ArrowDown"]); cy.get("@keyDownSpy").should("have.callCount", 1); - } + }, ); specify( @@ -449,22 +449,22 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-0" + "test-item-0", ); cy.realPress("ArrowDown"); cy.get("#test-control").should( "have.attr", "aria-activedescendant", - "test-item-1" + "test-item-1", ); - } + }, ); }); @@ -476,7 +476,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").click(); @@ -490,7 +490,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; id="test" selectionStrategy={selectionStrategy} source={testSource} - /> + />, ); cy.get("#test-control").focus(); cy.realPress("Enter"); @@ -514,7 +514,7 @@ const testSource = ["Bar", "Foo", "Foo Bar", "Baz"]; onKeyDown={keyDownSpy} /> } - > + />, ); cy.get("#custom-button").focus(); cy.realPress("ArrowDown"); diff --git a/packages/lab/src/__tests__/__e2e__/dropdown/DropdownButton.cy.tsx b/packages/lab/src/__tests__/__e2e__/dropdown/DropdownButton.cy.tsx index 1797a6637a..00d9d2c9e7 100644 --- a/packages/lab/src/__tests__/__e2e__/dropdown/DropdownButton.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/dropdown/DropdownButton.cy.tsx @@ -6,7 +6,7 @@ describe("GIVEN a DropdownButton component", () => { cy.mount(); cy.findByRole("option").should( "have.class", - "saltDropdownButton-buttonLabel" + "saltDropdownButton-buttonLabel", ); cy.get(".saltDropdownButton-content").within(() => { cy.findByTestId("ChevronDownIcon").should("exist"); @@ -24,7 +24,7 @@ describe("GIVEN a DropdownButton component", () => { label="button" onKeyDown={keyDownSpy} onKeyUp={keyUpSpy} - /> + />, ); cy.get("#test-button").focus(); cy.realPress("B"); diff --git a/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormFieldLegacy.cy.tsx b/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormFieldLegacy.cy.tsx index f66b757bfc..729d9cb60b 100644 --- a/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormFieldLegacy.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormFieldLegacy.cy.tsx @@ -1,11 +1,11 @@ -import { Input, FormField, useFormFieldLegacyProps } from "@salt-ds/lab"; +import { FormField, Input, useFormFieldLegacyProps } from "@salt-ds/lab"; const MockControl = ({ ...rest }: any) => { const FormFieldLegacyProps = useFormFieldLegacyProps(); return (
{ cy.mount( - + , ); cy.findByLabelText("A label").should("exist"); cy.findByText("Child Component").should( "have.attr", "aria-labelledby", - "label-id" + "label-id", ); }); }); @@ -38,7 +38,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Child Component").should("have.attr", "disabled"); }); @@ -54,7 +54,7 @@ describe("GIVEN a FormField", () => { HelperTextProps={{ id: "helper-text" }} > - + , ); cy.findByText("Helper Text").should("exist"); @@ -69,7 +69,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Helper Text").should("not.exist"); }); @@ -80,7 +80,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Child Component").should("have.attr", "readonly"); @@ -92,12 +92,12 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByText("Child Component").should( "have.attr", "aria-required", - "true" + "true", ); cy.findByLabelText(/Required/i).should("contain.text", "Child Component"); }); @@ -108,7 +108,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByLabelText(/Required/i).should("not.exist"); }); @@ -122,11 +122,11 @@ describe("GIVEN a FormField", () => { LabelProps={{ displayedNecessity: "optional" }} > - + , ); cy.findByLabelText(/Optional/i).should( "contain.text", - "Child Component" + "Child Component", ); }); }); @@ -137,11 +137,11 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByTestId("WarningIndicatorIcon").should( "have.class", - "saltFormActivationIndicator-icon" + "saltFormActivationIndicator-icon", ); }); @@ -153,7 +153,7 @@ describe("GIVEN a FormField", () => { hasStatusIndicator > - + , ); cy.findByTestId("WarningIndicatorIcon").should("not.exist"); }); @@ -164,11 +164,11 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByTestId("ErrorIndicatorIcon").should( "have.class", - "saltFormActivationIndicator-icon" + "saltFormActivationIndicator-icon", ); }); @@ -180,7 +180,7 @@ describe("GIVEN a FormField", () => { hasStatusIndicator > - + , ); cy.findByTestId("ErrorIndicatorIcon").should("not.exist"); }); @@ -191,7 +191,7 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); @@ -203,14 +203,14 @@ describe("GIVEN a FormField", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); cy.get(".saltFormFieldLegacy-focused").should("exist"); cy.findByTestId("test-id-1").should( "not.have.class", - "saltInputLegacy-focused" + "saltInputLegacy-focused", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormLabel.cy.tsx b/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormLabel.cy.tsx index b014046ef3..10b53bd469 100644 --- a/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormLabel.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/form-field-legacy/FormLabel.cy.tsx @@ -13,7 +13,7 @@ describe("GIVEN a FormLabel", () => { describe("WHEN required is true", () => { it("THEN Required is rendered if displayedNecessity is set to required", () => { cy.mount( - + , ); cy.findByText(/Required/).should("exist"); }); @@ -25,7 +25,7 @@ describe("GIVEN a FormLabel", () => { it("THEN Required is NOT rendered if displayedNecessity is set to optional", () => { cy.mount( - + , ); cy.findByText(/Required/).should("not.exist"); }); @@ -38,7 +38,7 @@ describe("GIVEN a FormLabel", () => { label="label text" required={false} displayedNecessity="optional" - /> + />, ); cy.findByText(/Optional/).should("exist"); }); @@ -54,7 +54,7 @@ describe("GIVEN a FormLabel", () => { label="label text" required={false} displayedNecessity="required" - /> + />, ); cy.findByText(/Optional/).should("not.exist"); }); @@ -72,7 +72,7 @@ describe("GIVEN a FormLabel", () => { label="label text" hasStatusIndicator validationStatus="warning" - /> + />, ); cy.findByTestId("WarningSolidIcon").should("exist"); }); @@ -83,7 +83,7 @@ describe("GIVEN a FormLabel", () => { label="label text" hasStatusIndicator validationStatus="error" - /> + />, ); cy.findByTestId("ErrorSolidIcon").should("exist"); }); diff --git a/packages/lab/src/__tests__/__e2e__/formatted-input/FormattedInput.cy.tsx b/packages/lab/src/__tests__/__e2e__/formatted-input/FormattedInput.cy.tsx index 49411b3e64..f511c5a12c 100644 --- a/packages/lab/src/__tests__/__e2e__/formatted-input/FormattedInput.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/formatted-input/FormattedInput.cy.tsx @@ -20,7 +20,7 @@ describe("GIVEN FormattedInput", () => { + />, ); cy.findByRole("textbox").click().clear().type("new value"); @@ -127,12 +127,12 @@ describe("GIVEN FormattedInput", () => { + />, ); cy.findByRole("textbox").should( "not.have.attr", "aria-label", - "fakelabel" + "fakelabel", ); }); }); @@ -144,7 +144,7 @@ describe("GIVEN FormattedInput", () => { mask="XX-XX-XX" id="staticId" inputProps={{ "aria-labelledby": "fakeId" }} - /> + />, ); cy.findByRole("textbox") .should("have.attr", "aria-labelledby", "fakeId staticId") @@ -157,7 +157,7 @@ describe("GIVEN FormattedInput", () => { cy.mount( string.toUpperCase() }} - /> + />, ); cy.findByRole("textbox") .click() diff --git a/packages/lab/src/__tests__/__e2e__/input-legacy/InputLegacy.cy.tsx b/packages/lab/src/__tests__/__e2e__/input-legacy/InputLegacy.cy.tsx index 18af1d7f43..3ce6c83079 100644 --- a/packages/lab/src/__tests__/__e2e__/input-legacy/InputLegacy.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/input-legacy/InputLegacy.cy.tsx @@ -1,4 +1,4 @@ -import { ChangeEvent, useState } from "react"; +import { type ChangeEvent, useState } from "react"; import { InputLegacy as Input } from "../../../input-legacy"; describe("GIVEN an Input", () => { @@ -22,7 +22,7 @@ describe("GIVEN an Input", () => { changeSpy(event); }; cy.mount( - + , ); cy.findByRole("textbox").click().clear().type("new value"); cy.get("@changeSpy").should("have.been.calledWithMatch", { @@ -72,11 +72,11 @@ describe("GIVEN an Input", () => { data-testid="parent" defaultValue="The default value" textAlign="left" - /> + />, ); cy.findByTestId("parent").should( "have.class", - "saltInputLegacy-leftTextAlign" + "saltInputLegacy-leftTextAlign", ); }); }); @@ -88,11 +88,11 @@ describe("GIVEN an Input", () => { data-testid="parent" defaultValue="The default value" textAlign="right" - /> + />, ); cy.findByTestId("parent").should( "have.class", - "saltInputLegacy-rightTextAlign" + "saltInputLegacy-rightTextAlign", ); }); }); @@ -136,7 +136,10 @@ describe("GIVEN an Input", () => { describe('WHEN cursorPositionOnFocus is "start"', () => { it("THEN should move the cursor to the start on click", () => { cy.mount( - + , ); cy.findByRole("textbox").click(); @@ -148,7 +151,10 @@ describe("GIVEN an Input", () => { it("THEN should move the cursor to the start on focus", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); @@ -162,7 +168,7 @@ describe("GIVEN an Input", () => { describe('WHEN cursorPositionOnFocus is "end"', () => { it("THEN should move the cursor to the end on click", () => { cy.mount( - + , ); cy.findByRole("textbox").click(); @@ -174,7 +180,7 @@ describe("GIVEN an Input", () => { it("THEN should move the cursor to the end on focus", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); @@ -188,7 +194,7 @@ describe("GIVEN an Input", () => { describe("WHEN cursorPositionOnFocus is a number", () => { it("THEN should move the cursor that index on click", () => { cy.mount( - + , ); cy.findByRole("textbox").click(); @@ -200,7 +206,7 @@ describe("GIVEN an Input", () => { it("THEN should move the cursor to that index on focus", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); @@ -236,7 +242,7 @@ describe("GIVEN an Input", () => { describe("WHEN highlightOnFocus is an array of two numbers", () => { it("THEN should highlight all indexes on click", () => { cy.mount( - + , ); cy.findByRole("textbox").click(); @@ -248,7 +254,7 @@ describe("GIVEN an Input", () => { it("THEN should highlight all text on focus", () => { cy.mount( - + , ); cy.findByRole("textbox").focus(); diff --git a/packages/lab/src/__tests__/__e2e__/layer-layout/LayerLayout.cy.tsx b/packages/lab/src/__tests__/__e2e__/layer-layout/LayerLayout.cy.tsx index d9a21a9493..f27e4e6f4b 100644 --- a/packages/lab/src/__tests__/__e2e__/layer-layout/LayerLayout.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/layer-layout/LayerLayout.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as layerStories from "@stories/layer-layout/layer-layout.stories"; +import { composeStories } from "@storybook/react"; const composedStories = composeStories(layerStories); @@ -84,9 +84,9 @@ describe("GIVEN a Layer", () => { cy.get(".saltLayerLayout").should( "have.class", - "saltLayerLayout-fullScreen" + "saltLayerLayout-fullScreen", ); - } + }, ); }); @@ -104,9 +104,9 @@ describe("GIVEN a Layer", () => { cy.get(".saltLayerLayout").should( "have.class", - "saltLayerLayout-fullScreen" + "saltLayerLayout-fullScreen", ); - } + }, ); it( @@ -122,9 +122,9 @@ describe("GIVEN a Layer", () => { cy.get(".saltLayerLayout").should( "have.class", - "saltLayerLayout-fullScreen" + "saltLayerLayout-fullScreen", ); - } + }, ); }); @@ -140,7 +140,7 @@ describe("GIVEN a Layer", () => { cy.get(".saltLayerLayout").should( "have.class", - "saltLayerLayout-exit-animation" + "saltLayerLayout-exit-animation", ); cy.get(".saltLayerLayout").should("not.exist"); @@ -163,13 +163,13 @@ describe("GIVEN a Layer", () => { cy.get(".saltLayerLayout").should( "have.class", - "saltLayerLayout-fullScreen" + "saltLayerLayout-fullScreen", ); cy.findByRole("button", { name: /Close Layer/i }).click(); cy.get(".saltLayerLayout").should("not.exist"); - } + }, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/list-next/ListNext.cy.tsx b/packages/lab/src/__tests__/__e2e__/list-next/ListNext.cy.tsx index 4412833cee..40e0694b3e 100644 --- a/packages/lab/src/__tests__/__e2e__/list-next/ListNext.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list-next/ListNext.cy.tsx @@ -1,4 +1,4 @@ -import { ListNext, ListItemNext, ListNextProps } from "@salt-ds/lab"; +import { ListItemNext, ListNext, type ListNextProps } from "@salt-ds/lab"; type ItemType = { label: string; value: string }; @@ -14,9 +14,9 @@ describe("GIVEN a list", () => { return ( {props.children || - ITEMS.map((item, index) => { + ITEMS.map((item) => { return ( - + {item.label} ); @@ -38,7 +38,7 @@ describe("GIVEN a list", () => { + />, ); cy.findByRole("option", { name: ITEMS[1].label }) @@ -53,7 +53,7 @@ describe("GIVEN a list", () => { + />, ); cy.findByRole("option", { name: ITEMS[1].label }) @@ -80,7 +80,7 @@ describe("GIVEN a list", () => { cy.findByRole("option", { name: ITEMS[1].label }).should( "not.have.attr", "aria-selected", - "true" + "true", ); }); @@ -92,7 +92,7 @@ describe("GIVEN a list", () => { cy.findAllByRole("option").should( "have.attr", "aria-disabled", - "true" + "true", ); }); }); @@ -100,27 +100,23 @@ describe("GIVEN a list", () => { describe("WHEN list item is disabled", () => { it("THEN it's not selectable", () => { cy.mount( - - - {ITEMS[0].label} - - - {ITEMS[1].label} - - - {ITEMS[2].label} - - - } - /> + + + {ITEMS[0].label} + + + {ITEMS[1].label} + + + {ITEMS[2].label} + + , ); cy.findByRole("option", { name: ITEMS[1].label }).click(); cy.findByRole("option", { name: ITEMS[1].label }).should( "not.have.attr", - "aria-selected" + "aria-selected", ); }); }); @@ -150,7 +146,7 @@ describe("GIVEN a list", () => { cy.findByRole("listbox").focus(); cy.findByRole("option", { name: ITEMS[0].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -163,14 +159,14 @@ describe("GIVEN a list", () => { cy.realPress("ArrowDown"); cy.findByRole("option", { name: ITEMS[1].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); cy.findByRole("listbox").blur(); // remove focus cy.findByRole("listbox").focus(); // focus again // focus should be back on the previously focused item cy.findByRole("option", { name: ITEMS[1].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -186,13 +182,13 @@ describe("GIVEN a list", () => { // focus on last list item cy.findByRole("option", { name: ITEMS[2].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); cy.realPress("ArrowDown"); // focus do not wrap cy.findByRole("option", { name: ITEMS[2].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -206,7 +202,7 @@ describe("GIVEN a list", () => { // focus do not wrap cy.findByRole("option", { name: ITEMS[0].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -220,7 +216,7 @@ describe("GIVEN a list", () => { cy.realPress("Home"); cy.findByRole("option", { name: ITEMS[0].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -233,7 +229,7 @@ describe("GIVEN a list", () => { cy.realPress("End"); cy.findByRole("option", { name: ITEMS[2].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); @@ -247,7 +243,7 @@ describe("GIVEN a list", () => { // focus on first list item cy.findByRole("option", { name: ITEMS[1].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); // mouse to click on another list item @@ -258,7 +254,7 @@ describe("GIVEN a list", () => { // focus should be on item previously selected using mouse cy.findByRole("option", { name: ITEMS[2].label }).should( "have.class", - "saltListItemNext-focused" + "saltListItemNext-focused", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.accessibility.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.accessibility.cy.tsx index 9938431724..73580fc767 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.accessibility.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.accessibility.cy.tsx @@ -17,7 +17,7 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.findByRole("listbox").should("have.attr", "tabindex", "0"); @@ -33,14 +33,14 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.get("#list-item-1").trigger("mousemove"); cy.findByRole("listbox").should( "have.attr", "aria-activedescendant", - `list-item-1` + "list-item-1", ); }); }); @@ -55,13 +55,13 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.findByRole("listbox").focus(); cy.findByRole("listbox").should( "have.attr", "aria-activedescendant", - `list-item-0` + "list-item-0", ); }); }); @@ -79,13 +79,13 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.get("#list-item-1").click(); cy.get("#list-item-0").should("not.have.attr", ARIA_SELECTED); cy.get("#list-item-1").should("have.attr", ARIA_SELECTED); } - : undefined + : undefined, ); it("should set aria-disabled for disabled item", () => { @@ -103,7 +103,7 @@ const ARIA_SELECTED = "aria-selected"; { label: "list item 2", disabled: true }, ]} /> - ) + ), ); cy.get("#list-item-0").should("not.have.attr", "aria-disabled"); cy.get("#list-item-1").should("have.attr", "aria-disabled"); @@ -119,7 +119,7 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); }); @@ -143,7 +143,7 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.findByRole("listbox").should("have.attr", "aria-multiselectable"); @@ -162,7 +162,7 @@ const ARIA_SELECTED = "aria-selected"; ) : ( - ) + ), ); cy.get("#list-item-0").click(); @@ -170,7 +170,7 @@ const ARIA_SELECTED = "aria-selected"; cy.get("#list-item-0").should("have.attr", "aria-selected"); cy.get("#list-item-1").should("not.have.attr", "aria-selected"); } - : undefined + : undefined, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.cy.tsx index c1bd0519d6..68776bcd41 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.cy.tsx @@ -35,7 +35,7 @@ describe("A list", () => { }); it('should render with a customised "displayedItemCount"', () => { cy.mount( - + , ); // 20 = itemHeight * displayedItemCount + gaps (1 gap * 0) cy.findByRole("listbox").should("have.css", "max-height", "20px"); @@ -48,7 +48,7 @@ describe("A list", () => { itemGapSize={1} itemHeight={10} source={ITEMS} - /> + />, ); // 21 = itemHeight * displayedItemCount + gaps (1 gap * 1) cy.findByRole("listbox").should("have.css", "max-height", "21px"); @@ -57,7 +57,7 @@ describe("A list", () => { cy.mount(
-
+
, ); cy.findByRole("listbox") .should("have.attr", "style") @@ -104,7 +104,7 @@ describe("A list", () => { const getItemHeight = (index?: number) => index !== undefined ? height[index] : 0; cy.mount( - + , ); cy.findAllByRole("option").eq(0).should("have.css", "height", "20px"); cy.findAllByRole("option").eq(1).should("have.css", "height", "30px"); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.declarative.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.declarative.cy.tsx index 3fa3bc87f0..8b484ad9a3 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.declarative.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.declarative.cy.tsx @@ -8,7 +8,7 @@ describe("A declarative list", () => { list item 1 list item 2 list item 3 - + , ); cy.findByText("list item 1").should("exist"); @@ -23,7 +23,7 @@ describe("A declarative list", () => { list item 1 list item 2 list item 3 - + , ); cy.get("#list-item-1").trigger("mousemove"); cy.get("#list-item-1").should("be.highlighted"); @@ -48,7 +48,7 @@ describe("A declarative list", () => { list item 1 list item 2 list item 3 - + , ); cy.get("#list-item-1").click(); @@ -57,15 +57,15 @@ describe("A declarative list", () => { cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - "list item 2" + "list item 2", ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - "list item 2" + "list item 2", ); } - : undefined + : undefined, ); }); }); @@ -79,7 +79,7 @@ describe("A declarative list with a disabled item", () => { list item 1 list item 2 list item 3 - + , ); }); @@ -112,7 +112,7 @@ describe("A disabled declarative list", () => { list item 1 list item 2 list item 3 - + , ); }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.highlighter.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.highlighter.cy.tsx index bab9ad75bd..b60b8616d4 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.highlighter.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.highlighter.cy.tsx @@ -5,7 +5,7 @@ describe("A highlighter", () => { cy.mount( - + , ); cy.findByTestId("test-string").should("have.text", ""); }); @@ -14,7 +14,7 @@ describe("A highlighter", () => { cy.mount( - + , ); cy.findByText("Lorem ipsum dolor sit amet").should("exist"); @@ -28,7 +28,7 @@ describe("A highlighter", () => { matchPattern="not found" text="Lorem ipsum dolor sit amet" /> - + , ); cy.findByText("Lorem ipsum dolor sit amet").should("exist"); @@ -38,14 +38,14 @@ describe("A highlighter", () => { cy.mount( - + , ); - cy.get(`.saltHighlighter-highlight`).should("have.length", 2); + cy.get(".saltHighlighter-highlight").should("have.length", 2); // And full text is returned cy.findByTestId("test-string").should( "have.text", - "Lorem ipsum dolor sit amet" + "Lorem ipsum dolor sit amet", ); }); @@ -57,7 +57,7 @@ describe("A highlighter", () => { matchPattern={/(not found)/gi} text="Lorem ipsum dolor sit amet" /> - + , ); cy.findByText("Lorem ipsum dolor sit amet").should("exist"); }); @@ -69,7 +69,7 @@ describe("A highlighter", () => { matchPattern={/(\w{1,2}m)/gi} text="Lorem ipsum dolor sit amet" /> - + , ); cy.findByText("rem").should("have.class", "saltHighlighter-highlight"); @@ -79,7 +79,7 @@ describe("A highlighter", () => { // And full text is returned cy.findByTestId("test-string").should( "have.text", - "Lorem ipsum dolor sit amet" + "Lorem ipsum dolor sit amet", ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.itemToString.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.itemToString.cy.tsx index f3bf6b86fc..c79239b199 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.itemToString.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.itemToString.cy.tsx @@ -14,7 +14,7 @@ const testCases = [ describe("defaultItemToString", () => { it("supports all data types", () => { - for (let [input, expectedOutput] of testCases) { + for (const [input, expectedOutput] of testCases) { expect(itemToString(input)).to.eq(expectedOutput); } }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.keyboardNavigation.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.keyboardNavigation.cy.tsx index 7766d07433..d80cc60d9a 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.keyboardNavigation.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.keyboardNavigation.cy.tsx @@ -33,7 +33,7 @@ const ITEMS_PER_PAGE = 2; ) : ( id="list" source={ITEMS} {...listProps} /> - ) + ), ); }); @@ -41,7 +41,7 @@ const ITEMS_PER_PAGE = 2; describe("with ListItems", () => { it("should highlight the first item with a focus ring", () => { cy.findByRole("listbox").focus(); - cy.get(`#list-item-0`) + cy.get("#list-item-0") .should("be.highlighted") .should("have.focusVisible"); }); @@ -53,7 +53,7 @@ const ITEMS_PER_PAGE = 2; ) : ( source={[]} /> - ) + ), ); cy.findByRole("listbox").focus(); cy.findByRole("listbox").should("have.focusVisible"); @@ -106,12 +106,12 @@ const ITEMS_PER_PAGE = 2; cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); }); }); @@ -145,12 +145,12 @@ const ITEMS_PER_PAGE = 2; cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); }); }); @@ -183,7 +183,7 @@ const ITEMS_PER_PAGE = 2; defaultSelected={ITEMS[2]} source={ITEMS} /> - ) + ), ); cy.findByRole("listbox").focus(); @@ -214,7 +214,7 @@ const ITEMS_PER_PAGE = 2; source={ITEMS} /> - ) + ), ); cy.findByRole("listbox").focus(); @@ -255,7 +255,7 @@ const ITEMS_PER_PAGE = 2; restoreLastFocus source={ITEMS} /> - ) + ), ); }); describe("when focused", () => { @@ -314,7 +314,7 @@ const ITEMS_PER_PAGE = 2; restoreLastFocus source={ITEMS} /> - ) + ), ); cy.findByRole("listbox").focus(); cy.get("#list-item-2") @@ -339,7 +339,7 @@ const ITEMS_PER_PAGE = 2; restoreLastFocus source={ITEMS} /> - ) + ), ); cy.findByRole("listbox").focus(); cy.realPress("ArrowUp"); @@ -373,7 +373,7 @@ const ITEMS_PER_PAGE = 2; id="list" source={ITEMS} /> - ) + ), ); }); describe("when the 'End' key is pressed", () => { @@ -500,84 +500,84 @@ const ITEMS_PER_PAGE = 2; cy.mount( isDeclarative ? ( - {FancyItems.map((x, i) => ( - {x} + {FancyItems.map((x) => ( + {x} ))} ) : ( - ) + ), ); cy.findByRole("listbox").focus(); }); it("supports focusing items by typing letters in rapid succession", () => { - cy.get(`#list-item-0`) + cy.get("#list-item-0") .should("be.highlighted") .should("have.focusVisible"); // Prioritize next available option starting with B from the cyclic effect cy.realType("B"); - cy.get(`#list-item-3`) + cy.get("#list-item-3") .should("be.highlighted") .should("have.focusVisible"); cy.realType("A"); - cy.get(`#list-item-3`) + cy.get("#list-item-3") .should("be.highlighted") .should("have.focusVisible"); cy.realType("R"); - cy.get(`#list-item-0`) + cy.get("#list-item-0") .should("be.highlighted") .should("have.focusVisible"); }); // TODO: it.skip("supports the space character in a search", () => { cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realPress("Space"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); cy.realType("B"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); cy.realType("A"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); cy.realType("R"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); }); it("supports item selection using the Spacebar after search times out", () => { cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realPress("Space"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); // Verify no selection was been made @@ -592,17 +592,17 @@ const ITEMS_PER_PAGE = 2; cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - "Foo Bar" + "Foo Bar", ); }); it("resets the search text after a timeout", () => { cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.wait(1500); cy.realType("B"); - cy.get(`#list-item-3`) + cy.get("#list-item-3") .should("be.highlighted") .should("have.focusVisible"); }); @@ -611,55 +611,55 @@ const ITEMS_PER_PAGE = 2; cy.realType("B"); cy.realType("A"); cy.realType("Z"); - cy.get(`#list-item-3`) + cy.get("#list-item-3") .should("be.highlighted") .should("have.focusVisible"); cy.wait(1500); cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); }); it("cycles through options when typing the first character repeatedly", () => { cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("F"); - cy.get(`#list-item-2`) + cy.get("#list-item-2") .should("be.highlighted") .should("have.focusVisible"); cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); }); it("does not cycle through options when typing repeated characters after the first char", () => { cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); }); it("supports clicking item first then by typing letters in rapid succession", () => { cy.get("#list-item-0").click(); cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); cy.realType("O"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("be.highlighted") .should("have.focusVisible"); }); @@ -671,8 +671,8 @@ const ITEMS_PER_PAGE = 2; displayedItemCount={ITEMS_PER_PAGE} id="list" > - {FancyItems.map((x, i) => ( - {x} + {FancyItems.map((x) => ( + {x} ))} ) : ( @@ -682,12 +682,12 @@ const ITEMS_PER_PAGE = 2; id="list" source={FancyItems} /> - ) + ), ); cy.findByRole("listbox").focus(); cy.realType("F"); - cy.get(`#list-item-1`) + cy.get("#list-item-1") .should("not.be.highlighted") .should("not.have.focusVisible"); }); @@ -709,7 +709,7 @@ const ITEMS_PER_PAGE = 2; ) : ( id="list" source={ITEMS} tabToSelect /> - ) + ), ); }); diff --git a/packages/lab/src/__tests__/__e2e__/list/List.scrollApi.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.scrollApi.cy.tsx index 3913bc6edf..ec712c9749 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.scrollApi.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.scrollApi.cy.tsx @@ -1,4 +1,4 @@ -import { List, ListProps, ListScrollHandles } from "@salt-ds/lab"; +import { List, type ListProps, type ListScrollHandles } from "@salt-ds/lab"; import { useRef } from "react"; type ItemType = { label: string; value: string }; diff --git a/packages/lab/src/__tests__/__e2e__/list/List.selection.cy.tsx b/packages/lab/src/__tests__/__e2e__/list/List.selection.cy.tsx index 575ee17b95..db2ad76d6b 100644 --- a/packages/lab/src/__tests__/__e2e__/list/List.selection.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/list/List.selection.cy.tsx @@ -37,7 +37,7 @@ const ITEMS: ItemWithLabel[] = [ defaultSelected={ITEMS[1]} source={ITEMS} /> - ) + ), ); }); @@ -48,7 +48,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); }); it("clicking another item should change selected item", () => { @@ -58,12 +58,12 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 3" : ITEMS[2] + isDeclarative ? "list item 3" : ITEMS[2], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 3" : ITEMS[2] + isDeclarative ? "list item 3" : ITEMS[2], ); }); }); @@ -98,7 +98,7 @@ const ITEMS: ItemWithLabel[] = [ defaultSelected={ITEMS[1]} source={ITEMS} /> - ) + ), ); }); @@ -152,7 +152,7 @@ const ITEMS: ItemWithLabel[] = [ selectionStrategy="deselectable" source={ITEMS} /> - ) + ), ); }); @@ -164,13 +164,13 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - null + null, ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); }); }); @@ -206,7 +206,7 @@ const ITEMS: ItemWithLabel[] = [ selectionStrategy="multiple" source={ITEMS} /> - ) + ), ); }); @@ -217,7 +217,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findByText("list item 3").realHover().realClick(); @@ -228,13 +228,13 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? ["list item 1", "list item 3"] : [ITEMS[0], ITEMS[2]] + isDeclarative ? ["list item 1", "list item 3"] : [ITEMS[0], ITEMS[2]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[2] + isDeclarative ? "list item 1" : ITEMS[2], ); }); }); @@ -246,7 +246,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findByText("list item 3").realHover().realClick(); @@ -258,7 +258,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findByText("list item 4").realHover().realClick(); @@ -270,7 +270,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 3" : ITEMS[2] + isDeclarative ? "list item 3" : ITEMS[2], ); }); }); @@ -284,7 +284,7 @@ const ITEMS: ItemWithLabel[] = [ const onSelectionChange = cy.stub().as("selectHandler"); cy.mount( isDeclarative ? ( - + defaultSelected={["list item 2", "list item 4"]} onSelectionChange={onSelectionChange} selectionStrategy="multiple" @@ -301,7 +301,7 @@ const ITEMS: ItemWithLabel[] = [ selectionStrategy="multiple" source={ITEMS} /> - ) + ), ); cy.findByText("list item 1").realHover().realClick(); @@ -342,7 +342,7 @@ const ITEMS: ItemWithLabel[] = [ selectionStrategy="extended" source={ITEMS} /> - ) + ), ); }); @@ -352,7 +352,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findByText("list item 3").realHover().realClick(); @@ -362,12 +362,12 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? ["list item 3"] : [ITEMS[2]] + isDeclarative ? ["list item 3"] : [ITEMS[2]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 3" : ITEMS[2] + isDeclarative ? "list item 3" : ITEMS[2], ); }); @@ -386,16 +386,16 @@ const ITEMS: ItemWithLabel[] = [ Cypress.sinon.match.any, isDeclarative ? ["list item 1", "list item 3"] - : [ITEMS[0], ITEMS[2]] + : [ITEMS[0], ITEMS[2]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 3" : ITEMS[2] + isDeclarative ? "list item 3" : ITEMS[2], ); } - : undefined + : undefined, ); it( @@ -416,16 +416,16 @@ const ITEMS: ItemWithLabel[] = [ Cypress.sinon.match.any, isDeclarative ? ["list item 1", "list item 2", "list item 3", "list item 4"] - : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]] + : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 4" : ITEMS[3] + isDeclarative ? "list item 4" : ITEMS[3], ); } - : undefined + : undefined, ); it("should not select duplicates if a range overlaps", () => { @@ -434,7 +434,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); cy.findByText("list item 1").realHover().click({ shiftKey: true }); @@ -445,14 +445,14 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? ["list item 1", "list item 2"] : [ITEMS[0], ITEMS[1]] + isDeclarative ? ["list item 1", "list item 2"] : [ITEMS[0], ITEMS[1]], ); // is this right, shouldn't it be 1 ? cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); // selecting second range that overlaps with the first @@ -465,7 +465,7 @@ const ITEMS: ItemWithLabel[] = [ Cypress.sinon.match.any, isDeclarative ? ["list item 1", "list item 2", "list item 3", "list item 4"] - : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]] + : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]], ); }); @@ -479,13 +479,13 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? ["list item 1", "list item 2"] : [ITEMS[0], ITEMS[1]] + isDeclarative ? ["list item 1", "list item 2"] : [ITEMS[0], ITEMS[1]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); // selecting second range // cy.findByText("list item 3").realHover().click({ ctrlKey: true }); @@ -500,7 +500,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectionChangeHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? ["list item 3", "list item 4"] : [ITEMS[2], ITEMS[3]] + isDeclarative ? ["list item 3", "list item 4"] : [ITEMS[2], ITEMS[3]], ); }); @@ -519,13 +519,13 @@ const ITEMS: ItemWithLabel[] = [ Cypress.sinon.match.any, isDeclarative ? ["list item 1", "list item 2"] - : [ITEMS[0], ITEMS[1]] + : [ITEMS[0], ITEMS[1]], ); cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 2" : ITEMS[1] + isDeclarative ? "list item 2" : ITEMS[1], ); // selecting second range cy.findByText("list item 3").click({ ctrlKey: true }); @@ -544,10 +544,10 @@ const ITEMS: ItemWithLabel[] = [ Cypress.sinon.match.any, isDeclarative ? ["list item 1", "list item 2", "list item 3", "list item 4"] - : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]] + : [ITEMS[0], ITEMS[1], ITEMS[2], ITEMS[3]], ); } - : undefined + : undefined, ); }); @@ -566,7 +566,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findAllByRole("option").eq(0).should("have.ariaSelected"); @@ -588,7 +588,7 @@ const ITEMS: ItemWithLabel[] = [ cy.get("@selectHandler").should( "have.been.calledWith", Cypress.sinon.match.any, - isDeclarative ? "list item 1" : ITEMS[0] + isDeclarative ? "list item 1" : ITEMS[0], ); cy.findAllByRole("option").eq(0).should("not.have.ariaSelected"); diff --git a/packages/lab/src/__tests__/__e2e__/logo/Logo.cy.tsx b/packages/lab/src/__tests__/__e2e__/logo/Logo.cy.tsx index 126b5a75ee..e6badec468 100644 --- a/packages/lab/src/__tests__/__e2e__/logo/Logo.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/logo/Logo.cy.tsx @@ -10,7 +10,7 @@ describe("GIVEN a logo", () => { {appTitle} - + , ); cy.get("img").should("exist"); }); @@ -21,7 +21,7 @@ describe("GIVEN a logo", () => { {appTitle} - + , ); cy.get(".saltLogoSeparator").should("exist"); }); @@ -31,7 +31,7 @@ describe("GIVEN a logo", () => { {appTitle} - + , ); cy.findByText(appTitle).should("exist"); }); @@ -42,7 +42,7 @@ describe("GIVEN a logo", () => { {src} {appTitle} - + , ); cy.findByText(src).should("exist"); cy.get(".saltLogoSeparator").should("exist"); diff --git a/packages/lab/src/__tests__/__e2e__/metric/Metric.cy.tsx b/packages/lab/src/__tests__/__e2e__/metric/Metric.cy.tsx index 21d0a4bf01..028b14fa3f 100644 --- a/packages/lab/src/__tests__/__e2e__/metric/Metric.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/metric/Metric.cy.tsx @@ -1,5 +1,5 @@ -import { Metric, MetricHeader, MetricContent } from "@salt-ds/lab"; import { DoubleChevronDownIcon } from "@salt-ds/icons"; +import { Metric, MetricContent, MetricHeader } from "@salt-ds/lab"; describe("Metric - by default", () => { it("should NOT render the indicator", () => { @@ -7,7 +7,7 @@ describe("Metric - by default", () => { - + , ); cy.get(".saltMetricContent-indicator").should("not.exist"); }); @@ -17,11 +17,11 @@ describe("Metric - by default", () => { - + , ); cy.get(".saltMetric").should( "have.class", - "saltMetric-orientation-vertical" + "saltMetric-orientation-vertical", ); }); @@ -30,7 +30,7 @@ describe("Metric - by default", () => { - + , ); cy.get(".saltText-display2").should("exist"); }); @@ -45,7 +45,7 @@ describe("Metric - Indicator", () => { value="$801.9B" IndicatorIconComponent={DoubleChevronDownIcon} /> - + , ); cy.get(".saltMetricContent-indicator").should("exist"); }); @@ -54,31 +54,31 @@ describe("Metric - Indicator", () => { - + , ); cy.get(".saltMetricContent-indicator").should("not.exist"); }); }); describe("Metric - Indicator Direction", () => { - it(`should display correct indicator icon for UP direction`, () => { + it("should display correct indicator icon for UP direction", () => { cy.mount( - + , ); - cy.findByTestId(`ArrowUpIcon`).should("exist"); + cy.findByTestId("ArrowUpIcon").should("exist"); }); - it(`should display correct indicator icon for DOWN direction`, () => { + it("should display correct indicator icon for DOWN direction", () => { cy.mount( - + , ); - cy.findByTestId(`ArrowDownIcon`).should("exist"); + cy.findByTestId("ArrowDownIcon").should("exist"); }); }); @@ -88,7 +88,7 @@ describe("Metric - Indicator Position", () => { - + , ); cy.get(".saltMetricContent-indicator").then((icon) => { @@ -104,7 +104,7 @@ describe("Metric - Indicator Position", () => { - + , ); cy.get(".saltMetricContent-indicator").then((icon) => { @@ -117,58 +117,58 @@ describe("Metric - Indicator Position", () => { }); describe("Metric - Size", () => { - it(`should render with correct text component for size LARGE`, () => { + it("should render with correct text component for size LARGE", () => { cy.mount( - + , ); cy.get(".saltText-display1").should("exist"); }); - it(`should render with correct text component for size MEDIUM`, () => { + it("should render with correct text component for size MEDIUM", () => { cy.mount( - + , ); cy.get(".saltText-display2").should("exist"); }); - it(`should render with correct text component for size SMALL`, () => { + it("should render with correct text component for size SMALL", () => { cy.mount( - + , ); cy.get(".saltText-display3").should("exist"); }); }); describe("Metric - Orientation", () => { - it(`should render with correct classes for HORIZONTAL orientation`, () => { + it("should render with correct classes for HORIZONTAL orientation", () => { cy.mount( - + , ); cy.get(".saltMetric").should( "have.class", - `saltMetric-orientation-horizontal` + "saltMetric-orientation-horizontal", ); }); - it(`should render with correct classes for VERTICAL orientation`, () => { + it("should render with correct classes for VERTICAL orientation", () => { cy.mount( - + , ); cy.get(".saltMetric").should( "have.class", - `saltMetric-orientation-vertical` + "saltMetric-orientation-vertical", ); }); }); @@ -180,7 +180,7 @@ describe("Metric - Accessibility", () => {
Some text
- + , ); cy.get(".saltMetricContent").should("have.attr", "aria-labelledby"); @@ -191,7 +191,7 @@ describe("Metric - Accessibility", () => {
Some text
- + , ); cy.get(".saltMetricContent").should("have.attr", "aria-labelledby"); @@ -199,30 +199,30 @@ describe("Metric - Accessibility", () => { }); describe("Metric Header - Alignment", () => { - it(`should render with correct style for LEFT align`, () => { + it("should render with correct style for LEFT align", () => { cy.mount( - + , ); cy.get(".saltMetricHeader").should("have.css", "align-items", "flex-start"); }); - it(`should render with correct style for CENTER align`, () => { + it("should render with correct style for CENTER align", () => { cy.mount( - + , ); cy.get(".saltMetricHeader").should("have.css", "align-items", "center"); }); - it(`should render with correct style for RIGHT align`, () => { + it("should render with correct style for RIGHT align", () => { cy.mount( - + , ); cy.get(".saltMetricHeader").should("have.css", "align-items", "flex-end"); }); @@ -245,21 +245,21 @@ describe("MetricContent", () => { }); describe("When the indicator is required", () => { - it(`should display correct icon for UP direction`, () => { + it("should display correct icon for UP direction", () => { cy.mount( - + , ); cy.findByTestId("ArrowUpIcon").should("exist"); }); - it(`should display correct icon for DOWN direction`, () => { + it("should display correct icon for DOWN direction", () => { cy.mount( - + , ); cy.findByTestId("ArrowDownIcon").should("exist"); diff --git a/packages/lab/src/__tests__/__e2e__/query-input/QueryInput.cy.tsx b/packages/lab/src/__tests__/__e2e__/query-input/QueryInput.cy.tsx index 45a086d7ab..53c330de74 100644 --- a/packages/lab/src/__tests__/__e2e__/query-input/QueryInput.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/query-input/QueryInput.cy.tsx @@ -1,5 +1,5 @@ -import { QueryInput, QueryInputCategory } from "@salt-ds/lab"; import { Button } from "@salt-ds/core"; +import { QueryInput, type QueryInputCategory } from "@salt-ds/lab"; const fakeCategories: QueryInputCategory[] = [ { name: "A", values: ["A1", "A2", "A3"] }, @@ -109,7 +109,7 @@ describe("GIVEN a QueryInput component", () => {
-
+ , ); cy.findByRole("textbox").focus(); cy.realPress(["Shift", "Tab"]); diff --git a/packages/lab/src/__tests__/__e2e__/search-input/SearchInput.cy.tsx b/packages/lab/src/__tests__/__e2e__/search-input/SearchInput.cy.tsx index 1746691a75..aa8f7d7b7f 100644 --- a/packages/lab/src/__tests__/__e2e__/search-input/SearchInput.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/search-input/SearchInput.cy.tsx @@ -30,7 +30,7 @@ describe("GIVEN a Search", () => { it("THEN should call onSubmit with the default value", () => { const submitSpy = cy.stub().as("submitSpy"); cy.mount( - + , ); cy.findByRole("textbox").focus(); cy.realPress("{enter}"); @@ -49,13 +49,13 @@ describe("GIVEN a Search", () => { it("THEN should call onChange with an empty value", () => { const changeSpy = cy.stub().as("changeSpy"); cy.mount( - + , ); cy.findByRole("button", { name: "clear input" }).click(); cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "" + "", ); }); @@ -76,7 +76,7 @@ describe("GIVEN a Search", () => { it("THEN should call onClear", () => { const clearSpy = cy.stub().as("clearSpy"); cy.mount( - + , ); cy.findByRole("button", { name: "clear input" }).click(); @@ -87,7 +87,7 @@ describe("GIVEN a Search", () => { it("THEN should not call onSubmit", () => { const submitSpy = cy.stub().as("submitSpy"); cy.mount( - + , ); cy.findByRole("button").click(); cy.findByRole("textbox").should("have.focus"); @@ -115,7 +115,7 @@ describe("GIVEN a Search", () => { it("THEN should call onChange with the new value", () => { const changeSpy = cy.stub().as("changeSpy"); cy.mount( - + , ); cy.findByRole("button", { name: "clear input" }).click(); cy.findByRole("textbox").clear(); @@ -124,7 +124,7 @@ describe("GIVEN a Search", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "new value" + "new value", ); }); @@ -132,7 +132,7 @@ describe("GIVEN a Search", () => { it("THEN should call onSubmit", () => { const clearSpy = cy.stub().as("clearSpy"); cy.mount( - + , ); cy.findByRole("button", { name: "clear input" }).click(); cy.realType("new value"); @@ -227,7 +227,7 @@ describe("GIVEN a Search", () => { cy.get("@changeSpy").should( "have.been.calledWith", Cypress.sinon.match.any, - "value b" + "value b", ); }); @@ -264,7 +264,7 @@ describe("GIVEN a Search", () => { ({ rerender }) => { rerender(); cy.get("@changeSpy").should("have.callCount", 0); - } + }, ); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/skip-link/SkipLink.cy.tsx b/packages/lab/src/__tests__/__e2e__/skip-link/SkipLink.cy.tsx index 01dbe45c5a..2f9bf62827 100644 --- a/packages/lab/src/__tests__/__e2e__/skip-link/SkipLink.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/skip-link/SkipLink.cy.tsx @@ -1,12 +1,12 @@ -import { composeStories } from "@storybook/react"; +import { SkipLink, SkipLinks } from "@salt-ds/lab"; import * as skipLinkStories from "@stories/skip-link/skip-link.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; -import { SkipLink, SkipLinks } from "@salt-ds/lab"; const composedStories = composeStories(skipLinkStories); const { Default, MultipleLinks } = composedStories; -export const NoTargetRef = () => { +const NoTargetRef = () => { return ( <>
@@ -67,7 +67,7 @@ describe("GIVEN a SkipLink", () => { it("THEN it should move focus to the target element when interacted with", () => { cy.mount(); cy.findByText( - "Click here and press the Tab key to see the Skip Link" + "Click here and press the Tab key to see the Skip Link", ).click(); cy.realPress("Tab"); cy.findByTestId("skipLink").should("be.visible"); @@ -79,7 +79,7 @@ describe("GIVEN a SkipLink", () => { it("THEN it should not move focus if no target ref is given", () => { cy.mount(); cy.findByText( - "Click here and press the Tab key to see the Skip Link" + "Click here and press the Tab key to see the Skip Link", ).click(); cy.realPress("Tab"); cy.findByTestId("skipLink").should("be.visible"); @@ -93,7 +93,7 @@ describe("GIVEN a SkipLink", () => { it("THEN it should move focus on to correct target when the appropriate link is interacted with", () => { cy.mount(); cy.findByText( - "Click here and press the Tab key to see the Skip Link" + "Click here and press the Tab key to see the Skip Link", ).click(); cy.realPress("Tab"); cy.realPress("Tab"); diff --git a/packages/lab/src/__tests__/__e2e__/slider/Slider.cy.tsx b/packages/lab/src/__tests__/__e2e__/slider/Slider.cy.tsx index 82708bc973..25e895b7e9 100644 --- a/packages/lab/src/__tests__/__e2e__/slider/Slider.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/slider/Slider.cy.tsx @@ -10,7 +10,7 @@ describe("Given a Slider with a single value", () => { step={5} pageStep={25} defaultValue={100} - /> + />, ); cy.findByRole("slider") .should("have.attr", "aria-valuemin", "5") @@ -29,7 +29,7 @@ describe("Given a Slider with a single value", () => { pageStep={25} defaultValue={100} onChange={changeSpy} - /> + />, ); cy.findByRole("slider").focus(); @@ -66,13 +66,13 @@ describe("Given a Slider with a range value", () => { max={100} step={10} defaultValue={[20, 40]} - /> + />, ); cy.findByRole("group").should( "have.attr", "aria-label", - "TestLabel slider from -100 to 100" + "TestLabel slider from -100 to 100", ); cy.findAllByRole("slider").should("have.length", 2); @@ -98,13 +98,13 @@ describe("Given a Slider with more than 2 items in the value", () => { max={110} step={1} defaultValue={[20, 40, 100]} - /> + />, ); cy.findByRole("group").should( "have.attr", "aria-label", - "TestLabel slider from -10 to 110" + "TestLabel slider from -10 to 110", ); cy.findAllByRole("slider").should("have.length", 3); @@ -140,7 +140,7 @@ describe("Given a pushable range slider", () => { pushable pushDistance={3} onChange={changeSpy} - /> + />, ); cy.findAllByRole("slider").should("have.length", 3); @@ -176,7 +176,7 @@ describe("Given a non-pushable range slider", () => { pageStep={4} defaultValue={[-1, 3, 7]} onChange={changeSpy} - /> + />, ); cy.findAllByRole("slider").should("have.length", 3); diff --git a/packages/lab/src/__tests__/__e2e__/stepped-tracker/SteppedTracker.cy.tsx b/packages/lab/src/__tests__/__e2e__/stepped-tracker/SteppedTracker.cy.tsx index 9b8beaeecd..86f527880b 100644 --- a/packages/lab/src/__tests__/__e2e__/stepped-tracker/SteppedTracker.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/stepped-tracker/SteppedTracker.cy.tsx @@ -1,10 +1,10 @@ +import * as steppedTrackerStories from "@stories/stepped-tracker/stepped-tracker.stories"; +import { composeStories } from "@storybook/react"; import { + StepLabel, SteppedTracker, TrackerStep, - StepLabel, } from "../../../stepped-tracker"; -import * as steppedTrackerStories from "@stories/stepped-tracker/stepped-tracker.stories"; -import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; diff --git a/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.accessibility.cy.tsx b/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.accessibility.cy.tsx index 829b5cdb2b..d028340c3d 100644 --- a/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.accessibility.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.accessibility.cy.tsx @@ -1,5 +1,5 @@ -import { StepperInput } from "@salt-ds/lab"; import { FormField, FormFieldHelperText, FormFieldLabel } from "@salt-ds/core"; +import { StepperInput } from "@salt-ds/lab"; describe("Stepper Input - Accessibility", () => { it("sets the correct default ARIA attributes on input", () => { @@ -9,7 +9,7 @@ describe("Stepper Input - Accessibility", () => { defaultValue={-20.1} max={250.23} min={-500.11} - /> + />, ); cy.findByRole("spinbutton").should("have.attr", "aria-valuenow", "-20.1"); @@ -24,13 +24,13 @@ describe("Stepper Input - Accessibility", () => { Stepper Input Please enter a value - + , ); cy.findByRole("spinbutton").should("have.accessibleName", "Stepper Input"); cy.findByRole("spinbutton").should( "have.accessibleDescription", - "Please enter a value" + "Please enter a value", ); }); diff --git a/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.cy.tsx b/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.cy.tsx index e73270680e..30ebf59e7b 100644 --- a/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/stepper-input/StepperInput.cy.tsx @@ -86,7 +86,7 @@ describe("Stepper Input", () => { it("increments by specified floating point `step` value", () => { cy.mount( - + , ); cy.findByLabelText("increment value").realClick(); @@ -149,7 +149,7 @@ describe("Stepper Input", () => { defaultValue={-109.46} onChange={changeSpy} step={0.02} - /> + />, ); cy.findByLabelText("increment value").realClick(); @@ -161,7 +161,7 @@ describe("Stepper Input", () => { cy.findByRole("spinbutton").should( "have.value", - Number.MAX_SAFE_INTEGER.toString() + Number.MAX_SAFE_INTEGER.toString(), ); }); @@ -170,7 +170,7 @@ describe("Stepper Input", () => { cy.findByRole("spinbutton").should( "have.value", - Number.MIN_SAFE_INTEGER.toString() + Number.MIN_SAFE_INTEGER.toString(), ); }); @@ -181,7 +181,7 @@ describe("Stepper Input", () => { + />, ); cy.findByLabelText("increment value").realClick(); @@ -190,7 +190,7 @@ describe("Stepper Input", () => { cy.get("@changeSpy").should("not.have.been.called"); cy.findByRole("spinbutton").should( "have.value", - Number.MAX_SAFE_INTEGER.toString() + Number.MAX_SAFE_INTEGER.toString(), ); }); @@ -201,7 +201,7 @@ describe("Stepper Input", () => { + />, ); cy.findByLabelText("decrement value").realClick(); @@ -210,7 +210,7 @@ describe("Stepper Input", () => { cy.get("@changeSpy").should("not.have.been.called"); cy.findByRole("spinbutton").should( "have.value", - Number.MIN_SAFE_INTEGER.toString() + Number.MIN_SAFE_INTEGER.toString(), ); }); diff --git a/packages/lab/src/__tests__/__e2e__/tabs-next/TabstripNext.cy.tsx b/packages/lab/src/__tests__/__e2e__/tabs-next/TabstripNext.cy.tsx index 34620f249f..97ea035893 100644 --- a/packages/lab/src/__tests__/__e2e__/tabs-next/TabstripNext.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/tabs-next/TabstripNext.cy.tsx @@ -1,6 +1,6 @@ -import { composeStories } from "@storybook/react"; -import * as tabstripStories from "@stories/tabstrip-next/tabstrip-next.stories"; import { StackLayout } from "@salt-ds/core"; +import * as tabstripStories from "@stories/tabstrip-next/tabstrip-next.stories"; +import { composeStories } from "@storybook/react"; const { DefaultLeftAligned: DefaultTabstrip, ControlledTabstrip } = composeStories(tabstripStories); @@ -32,7 +32,7 @@ describe("Given a Tabstrip", () => { onChange={cy.spy().as("onChange")} value="Transactions" width={500} - /> + />, ); cy.findAllByRole("tab") .eq(1) @@ -93,7 +93,7 @@ describe("Tab selection, Given a Tabstrip", () => { cy.findAllByRole("tab", { name: "Home" }).should( "have.attr", "aria-selected", - "true" + "true", ); cy.findByRole("combobox").realClick(); cy.findByRole("listbox").should("be.visible"); @@ -102,7 +102,7 @@ describe("Tab selection, Given a Tabstrip", () => { cy.findAllByRole("tab", { name: "Loans" }).should( "have.attr", "aria-selected", - "true" + "true", ); }); }); @@ -119,7 +119,7 @@ describe("Navigation, Given a Tabstrip", () => { - + , ); cy.get(".saltToastGroup-top-right") .should("exist") @@ -38,7 +38,7 @@ describe("Given a ToastGroup", () => { - + , ); cy.get(".saltToastGroup-bottom-right") .should("exist") diff --git a/packages/lab/src/__tests__/__e2e__/tokenized-input-next/TokenizedInputNext.cy.tsx b/packages/lab/src/__tests__/__e2e__/tokenized-input-next/TokenizedInputNext.cy.tsx index 99510df17d..914a833942 100644 --- a/packages/lab/src/__tests__/__e2e__/tokenized-input-next/TokenizedInputNext.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/tokenized-input-next/TokenizedInputNext.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as tokenizedInputNextStories from "@stories/tokenized-input-next/tokenized-input-next.stories"; +import { composeStories } from "@storybook/react"; import { checkAccessibility } from "../../../../../../cypress/tests/checkAccessibility"; const composedStories = composeStories(tokenizedInputNextStories); @@ -132,7 +132,7 @@ describe("GIVEN a Tokenized Input", () => { onClear={onClearSpy} onExpand={onExpandSpy} onCollapse={onCollapseSpy} - /> + />, ); // expand cy.findByTestId("expand-button").should("exist"); @@ -168,7 +168,7 @@ describe("GIVEN a Tokenized Input", () => { defaultSelected={["Delhi"]} value="Tokio" onChange={changeSpy} - /> + />, ); cy.findByRole("textbox").focus(); cy.findByRole("textbox").click().clear().type("Mexico City,"); diff --git a/packages/lab/src/__tests__/__e2e__/toolbar/Toolbar.cy.tsx b/packages/lab/src/__tests__/__e2e__/toolbar/Toolbar.cy.tsx index c9514105ff..64b8d01363 100644 --- a/packages/lab/src/__tests__/__e2e__/toolbar/Toolbar.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/toolbar/Toolbar.cy.tsx @@ -1,5 +1,5 @@ -import { composeStories } from "@storybook/react"; import * as toolbarStories from "@stories/toolbar/toolbar.cypress.stories"; +import { composeStories } from "@storybook/react"; import { version } from "react"; const { @@ -32,7 +32,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { toolbar.should("have.class", "saltToolbar"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 0 + 0, ); }); it("THEN no overflow indicator will be present", () => { @@ -41,7 +41,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { toolbar.should("have.class", "saltToolbar"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 0 + 0, ); }); }); @@ -68,13 +68,13 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "350px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.mount(); cy.get(".saltToolbar").invoke("css", "width", "350px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 3 + 3, ); }); it("THEN overflowIndicator will be rendered", () => { @@ -82,13 +82,13 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "350px"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); cy.mount(); cy.get(".saltToolbar").invoke("css", "width", "350px"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -107,7 +107,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "300px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 3 + 3, ); }); it("THEN overflowIndicator will still be rendered", () => { @@ -115,7 +115,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "300px"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -134,7 +134,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "50px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 10 + 10, ); }); it("THEN overflowIndicator will still be rendered", () => { @@ -142,7 +142,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "50px"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -161,7 +161,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "30px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 10 + 10, ); }); it("THEN overflowIndicator will still be rendered", () => { @@ -169,7 +169,7 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "30px"); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); }); @@ -221,20 +221,20 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.mount(); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.get( - '.Responsive-inner > *[data-overflowed="true"][data-index="8"]' + '.Responsive-inner > *[data-overflowed="true"][data-index="8"]', ).should("have.length", 1); cy.get( - '.Responsive-inner > *[data-overflowed="true"][data-index="9"]' + '.Responsive-inner > *[data-overflowed="true"][data-index="9"]', ).should("have.length", 1); }); it("THEN overflowIndicator will be rendered", () => { cy.mount(); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -245,22 +245,22 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.mount(); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 5 + 5, ); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 1 + 1, ); cy.get(".saltToolbar").invoke("css", "width", "350px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.get( - '.Responsive-inner > *[data-overflowed="true"][data-index="8"]' + '.Responsive-inner > *[data-overflowed="true"][data-index="8"]', ).should("have.length", 1); cy.get( - '.Responsive-inner > *[data-overflowed="true"][data-index="9"]' + '.Responsive-inner > *[data-overflowed="true"][data-index="9"]', ).should("have.length", 1); }); }); @@ -276,10 +276,10 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { .should("have.length", 10); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 1 + 1, ); cy.get( - '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]', ).should("have.length", 1); }); }); @@ -295,13 +295,13 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { .should("have.length", 9); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.get( - '.Responsive-inner > *:nth-child(8)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(8)[data-overflowed="true"]', ).should("have.length", 1); cy.get( - '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]', ).should("have.length", 1); }); }); @@ -319,16 +319,16 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { .should("have.length", 8); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 3 + 3, ); cy.get( - '.Responsive-inner > *:nth-child(4)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(4)[data-overflowed="true"]', ).should("have.length", 1); cy.get( - '.Responsive-inner > *:nth-child(8)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(8)[data-overflowed="true"]', ).should("have.length", 1); cy.get( - '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]' + '.Responsive-inner > *:nth-child(9)[data-overflowed="true"]', ).should("have.length", 1); }); }); @@ -342,11 +342,11 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { .should("have.length", 5); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 6 + 6, ); // The 4 visible items should all be priority 2 cy.get( - `.Responsive-inner > *${NOT_OVERFLOW_IND}${NOT_OVERFLOWED}[data-priority="2"]` + `.Responsive-inner > *${NOT_OVERFLOW_IND}${NOT_OVERFLOWED}[data-priority="2"]`, ).should("have.length", 4); }); }); @@ -384,13 +384,13 @@ describe("GIVEN a Toolbar component, with overflow behaviour", () => { cy.get(".saltToolbar").invoke("css", "width", "470px"); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); // The 2 remaining overflowed items should both be priority 5 cy.get(`.Responsive-inner > *${OVERFLOWED}`).should("have.length", 2); cy.get(`.Responsive-inner > *${OVERFLOWED}[data-priority="5"]`).should( "have.length", - 2 + 2, ); }); }); @@ -410,18 +410,18 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { cy.mount(); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 0 + 0, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 0 + 0, ); }); it("THEN no overflow indicator will be present", () => { cy.mount(); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 0 + 0, ); }); }); @@ -437,15 +437,15 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 5); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 0 + 0, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 1 + 1, ); cy.get('.Responsive-inner > *:last-child[data-collapsed="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -461,18 +461,18 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 5); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 0 + 0, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 2 + 2, ); cy.get('.Responsive-inner > *:last-child[data-collapsed="true"]').should( "have.length", - 1 + 1, ); cy.get( - '.Responsive-inner > *:nth-last-child(2)[data-collapsed="true"]' + '.Responsive-inner > *:nth-last-child(2)[data-collapsed="true"]', ).should("have.length", 1); }); }); @@ -489,15 +489,15 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 5); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 0 + 0, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 5 + 5, ); cy.get('.Responsive-inner > *[data-overflow-indicator="true"]').should( "have.length", - 0 + 0, ); }); }); @@ -523,17 +523,17 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 4); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 5 + 5, ); cy.get( - '.Responsive-inner > *[data-overflow-indicator="true"]' + '.Responsive-inner > *[data-overflow-indicator="true"]', ).should("have.length", 1); } - : undefined + : undefined, ); }); describe("WHEN resized directly from full size to beyond minimum that can still render all", () => { @@ -550,17 +550,17 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 4); cy.get('.Responsive-inner > *[data-overflowed="true"]').should( "have.length", - 2 + 2, ); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 5 + 5, ); cy.get( - '.Responsive-inner > *[data-overflow-indicator="true"]' + '.Responsive-inner > *[data-overflow-indicator="true"]', ).should("have.length", 1); } - : undefined + : undefined, ); }); describe("WHEN resized to trigger collapse, then restored to original size, collapsed items are uncollapsed", () => { @@ -576,7 +576,7 @@ describe("GIVEN a Toolbar with 'instant' collapse child items", () => { .should("have.length", 5); cy.get('.Responsive-inner > *[data-collapsed="true"]').should( "have.length", - 0 + 0, ); }); }); @@ -600,26 +600,26 @@ describe("GIVEN a Toolbar with a single 'dynamic' collapse Tooltray", () => { cy.mount(); cy.get(`${TOOLBAR_ITEMS_SELECTOR}[data-overflowed="true"]`).should( "have.length", - 0 + 0, ); }); it("THEN no overflow indicator will be present on the Toolbar", () => { cy.mount(); cy.get( - `${TOOLBAR_ITEMS_SELECTOR}[data-overflow-indicator="true"]` + `${TOOLBAR_ITEMS_SELECTOR}[data-overflow-indicator="true"]`, ).should("have.length", 0); }); it("THEN the Toolbar Responsive inner will be collapsing", () => { cy.mount(); cy.get( - `.saltToolbar > .Responsive-inner[data-collapsing="true"]` + `.saltToolbar > .Responsive-inner[data-collapsing="true"]`, ).should("have.length", 1); }); it("THEN the tooltray will be collapsing", () => { cy.mount(); cy.get(`${TOOLBAR_ITEMS_SELECTOR}[data-collapsing="true"]`).should( "have.length", - 1 + 1, ); }); it("THEN all of the tooltray contents will be visible", () => { @@ -633,13 +633,13 @@ describe("GIVEN a Toolbar with a single 'dynamic' collapse Tooltray", () => { cy.mount(); cy.get(`${TOOLTRAY_ITEMS_SELECTOR}[data-overflowed="true"]`).should( "have.length", - 0 + 0, ); }); it("THEN no overflow indicator will be present on the Tooltray", () => { cy.mount(); cy.get( - `${TOOLTRAY_ITEMS_SELECTOR}[data-overflow-indicator="true"]` + `${TOOLTRAY_ITEMS_SELECTOR}[data-overflow-indicator="true"]`, ).should("have.length", 0); }); }); @@ -659,26 +659,26 @@ describe("GIVEN a Toolbar with a single 'dynamic' collapse Tooltray", () => { cy.mount(); cy.get(`${TOOLBAR_ITEMS_SELECTOR}[data-overflowed="true"]`).should( "have.length", - 0 + 0, ); }); it("THEN no overflow indicator will be present on the Toolbar", () => { cy.mount(); cy.get( - `${TOOLBAR_ITEMS_SELECTOR}[data-overflow-indicator="true"]` + `${TOOLBAR_ITEMS_SELECTOR}[data-overflow-indicator="true"]`, ).should("have.length", 0); }); it("THEN the Toolbar Responsive inner will be collapsing", () => { cy.mount(); cy.get( - `.saltToolbar > .Responsive-inner[data-collapsing="true"]` + `.saltToolbar > .Responsive-inner[data-collapsing="true"]`, ).should("have.length", 1); }); it("THEN the tooltray will be collapsing", () => { cy.mount(); cy.get(`${TOOLBAR_ITEMS_SELECTOR}[data-collapsing="true"]`).should( "have.length", - 1 + 1, ); }); it("THEN not all of the tooltray contents will be visible", () => { @@ -692,13 +692,13 @@ describe("GIVEN a Toolbar with a single 'dynamic' collapse Tooltray", () => { cy.mount(); cy.get(`${TOOLTRAY_ITEMS_SELECTOR}[data-overflowed="true"]`).should( "have.length", - 5 + 5, ); }); it("THEN an overflow indicator will be present on the Tooltray", () => { cy.mount(); cy.get( - `${TOOLTRAY_ITEMS_SELECTOR}[data-overflow-indicator="true"]` + `${TOOLTRAY_ITEMS_SELECTOR}[data-overflow-indicator="true"]`, ).should("have.length", 1); }); }); diff --git a/packages/lab/src/__tests__/__e2e__/tree/Tree.cy.tsx b/packages/lab/src/__tests__/__e2e__/tree/Tree.cy.tsx index b8330671ea..f5fb8a43c8 100644 --- a/packages/lab/src/__tests__/__e2e__/tree/Tree.cy.tsx +++ b/packages/lab/src/__tests__/__e2e__/tree/Tree.cy.tsx @@ -1,5 +1,5 @@ -import { useEffect, useReducer } from "react"; import { Tree } from "@salt-ds/lab"; +import { useEffect, useReducer } from "react"; function createNodes(count: number, factory: (index: number) => any) { const nodes = []; @@ -52,7 +52,7 @@ function createSampleTreeData(autoExpanded = true, wideLeafNodeParentId = "") { description: "description", }, ] - : [] + : [], ), }, ], @@ -213,13 +213,13 @@ describe("GIVEN a Tree", () => { describe('AND when `selectionStrategy` is set to "default"', () => { it("THEN should select 1 node", () => { cy.mount( - + , ); cy.findByText("1").realClick(); cy.findByText("2").realClick(); cy.get('.saltTreeNode-item[aria-selected="true"]').should( "have.length", - 1 + 1, ); }); }); @@ -238,7 +238,7 @@ describe("GIVEN a Tree", () => { onToggle={onToggle} onSelectionChange={onSelectionChange} selectionStrategy="default" - /> + />, ); }); @@ -350,7 +350,7 @@ describe("GIVEN a Tree", () => { }, ]} selectionStrategy="default" - /> + />, ); }); @@ -392,7 +392,7 @@ describe("GIVEN a Tree", () => { cy.get(".saltTreeNode-item").eq(2).realClick(); cy.get('.saltTreeNode-item[aria-selected="true"]').should( "have.length", - 1 + 1, ); cy.get(".saltTreeNode-item") .eq(2) diff --git a/packages/lab/src/__tests__/color-chooser/Color.spec.ts b/packages/lab/src/__tests__/color-chooser/Color.spec.ts index be137598f5..6f5fcffd76 100644 --- a/packages/lab/src/__tests__/color-chooser/Color.spec.ts +++ b/packages/lab/src/__tests__/color-chooser/Color.spec.ts @@ -1,4 +1,4 @@ -import { describe, it, expect } from "vitest"; +import { describe, expect, it } from "vitest"; import { Color } from "../../color-chooser"; describe("Color", () => { @@ -96,7 +96,7 @@ describe("Color", () => { describe("setAlpha", () => { it("should override the alpha value in a color created from rgba", () => { - let newColor = Color.makeColorFromRGB(70, 14, 19, 0.7).setAlpha(0.3); + const newColor = Color.makeColorFromRGB(70, 14, 19, 0.7).setAlpha(0.3); expect(newColor).toEqual({ color: expect.objectContaining({ _a: 0.3, diff --git a/packages/lab/src/__tests__/color-chooser/ColorHelpers.spec.ts b/packages/lab/src/__tests__/color-chooser/ColorHelpers.spec.ts index 922d42e008..450f45dbe6 100644 --- a/packages/lab/src/__tests__/color-chooser/ColorHelpers.spec.ts +++ b/packages/lab/src/__tests__/color-chooser/ColorHelpers.spec.ts @@ -1,9 +1,9 @@ -import { describe, it, expect } from "vitest"; +import { describe, expect, it } from "vitest"; import { - isValidHex, - hexValueWithoutAlpha, - getColorNameByHexValue, convertColorMapValueToHex, + getColorNameByHexValue, + hexValueWithoutAlpha, + isValidHex, } from "../../color-chooser"; describe("Color chooser helpers", () => { @@ -56,17 +56,17 @@ describe("Color chooser helpers", () => { describe("WHEN disableFallBackToHex", () => { it("should get the correct Salt color name if passed 6 digit hex", () => { expect( - getColorNameByHexValue("#D1F4C9", false, undefined, true) + getColorNameByHexValue("#D1F4C9", false, undefined, true), ).toEqual("Green10"); }); it("should get the correct Salt color name if passed 8 digit hex", () => { expect( - getColorNameByHexValue("#D1F4C980", false, undefined, true) + getColorNameByHexValue("#D1F4C980", false, undefined, true), ).toEqual("Green10"); }); it("should just return undefined if it is not a Salt color and alpha slider is disabled", () => { expect( - getColorNameByHexValue("#D1F4C780", true, undefined, true) + getColorNameByHexValue("#D1F4C780", true, undefined, true), ).toBeUndefined(); }); }); @@ -74,14 +74,14 @@ describe("Color chooser helpers", () => { describe("convertColorMapValueToHex", () => { it("Should convert rgb string into hex value", () => { expect(convertColorMapValueToHex("rgb(217, 221, 227)")).toEqual( - "#d9dde3" + "#d9dde3", ); expect(convertColorMapValueToHex("rgb(162, 217, 218)")).toEqual( - "#a2d9da" + "#a2d9da", ); expect(convertColorMapValueToHex("rgb(0, 0, 0)")).toEqual("#000000"); expect(convertColorMapValueToHex("rgba(0, 34, 67, 0.9)")).toEqual( - "#002243e6" + "#002243e6", ); }); it("should not convert a string that does not start with rgb/rgba to hex", () => { diff --git a/packages/lab/src/__tests__/color-chooser/GetColorPalettes.spec.ts b/packages/lab/src/__tests__/color-chooser/GetColorPalettes.spec.ts index 5fc9079cf1..e2450fe88a 100644 --- a/packages/lab/src/__tests__/color-chooser/GetColorPalettes.spec.ts +++ b/packages/lab/src/__tests__/color-chooser/GetColorPalettes.spec.ts @@ -1,5 +1,5 @@ -import { describe, it, expect } from "vitest"; -import { makePalette, getColorPalettes } from "../../color-chooser"; +import { describe, expect, it } from "vitest"; +import { getColorPalettes, makePalette } from "../../color-chooser"; describe("getColorPalettes", () => { describe("makePalette", () => { diff --git a/packages/lab/src/__tests__/color-chooser/color-utils.spec.ts b/packages/lab/src/__tests__/color-chooser/color-utils.spec.ts index 34ba5fff3b..ada44cc7ef 100644 --- a/packages/lab/src/__tests__/color-chooser/color-utils.spec.ts +++ b/packages/lab/src/__tests__/color-chooser/color-utils.spec.ts @@ -1,4 +1,4 @@ -import { test, describe, expect } from "vitest"; +import { describe, expect, test } from "vitest"; import { isTransparent } from "../../color-chooser/color-utils"; describe("isTransparent", () => { diff --git a/packages/lab/src/app-header/AppHeader.tsx b/packages/lab/src/app-header/AppHeader.tsx index 676400908a..50d10fd831 100644 --- a/packages/lab/src/app-header/AppHeader.tsx +++ b/packages/lab/src/app-header/AppHeader.tsx @@ -1,11 +1,11 @@ -import { clsx } from "clsx"; -import { Toolbar } from "../toolbar"; import { makePrefixer } from "@salt-ds/core"; import { MenuIcon } from "@salt-ds/icons"; +import { clsx } from "clsx"; +import { Toolbar } from "../toolbar"; -import { forwardRef, HTMLAttributes } from "react"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { type HTMLAttributes, forwardRef } from "react"; import appHeaderCss from "./AppHeader.css"; @@ -49,5 +49,5 @@ export const AppHeader = forwardRef( //
// // ); - } + }, ); diff --git a/packages/lab/src/breadcrumbs/Breadcrumb.tsx b/packages/lab/src/breadcrumbs/Breadcrumb.tsx index 23e602339d..f474a42650 100644 --- a/packages/lab/src/breadcrumbs/Breadcrumb.tsx +++ b/packages/lab/src/breadcrumbs/Breadcrumb.tsx @@ -1,11 +1,16 @@ -import { Link, makePrefixer, Text, TooltipProps } from "@salt-ds/core"; -import { IconProps } from "@salt-ds/icons"; +import { Link, Text, type TooltipProps, makePrefixer } from "@salt-ds/core"; +import type { IconProps } from "@salt-ds/icons"; import { clsx } from "clsx"; -import { Children, forwardRef, HTMLAttributes, ReactNode } from "react"; +import { + Children, + type HTMLAttributes, + type ReactNode, + forwardRef, +} from "react"; import { useBreadcrumbsContext } from "./internal/BreadcrumbsContext"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import breadcrumbCss from "./Breadcrumb.css"; @@ -42,7 +47,7 @@ export const Breadcrumb = forwardRef( className, ...props }, - ref + ref, ) { const targetWindow = useWindow(); useComponentCssInjection({ @@ -63,7 +68,7 @@ export const Breadcrumb = forwardRef( className={clsx( withBaseName(), className, - withBaseName("currentLevel") + withBaseName("currentLevel"), )} styleAs="label" > @@ -77,7 +82,7 @@ export const Breadcrumb = forwardRef( { [withBaseName("justifyContentCenter")]: hasOnlyIcon, }, - withBaseName("regular") + withBaseName("regular"), )} > {Icon && } @@ -111,5 +116,5 @@ export const Breadcrumb = forwardRef( {content} ); - } + }, ); diff --git a/packages/lab/src/breadcrumbs/Breadcrumbs.tsx b/packages/lab/src/breadcrumbs/Breadcrumbs.tsx index 039e8879f2..00ce4a6e17 100644 --- a/packages/lab/src/breadcrumbs/Breadcrumbs.tsx +++ b/packages/lab/src/breadcrumbs/Breadcrumbs.tsx @@ -1,19 +1,19 @@ import { makePrefixer } from "@salt-ds/core"; -import { IconProps } from "@salt-ds/icons"; +import type { IconProps } from "@salt-ds/icons"; import { clsx } from "clsx"; import React, { - HTMLAttributes, + type HTMLAttributes, isValidElement, - ReactNode, + type ReactNode, useMemo, } from "react"; -import { BreadcrumbProps } from "./Breadcrumb"; +import type { BreadcrumbProps } from "./Breadcrumb"; import { BreadcrumbsCollapsed } from "./internal/BreadcrumbsCollapsed"; import { BreadcrumbsContext } from "./internal/BreadcrumbsContext"; import { BreadcrumbsSeparator } from "./internal/BreadcrumbsSeparator"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import breadcrumbsCss from "./Breadcrumbs.css"; @@ -27,7 +27,7 @@ function insertSeparators( separator?: ReactNode, hideCurrentLevel?: boolean, shouldRenderAllItems?: boolean, - itemsAfterCollapse?: number + itemsAfterCollapse?: number, ) { return items.reduce((acc: ReactNode[], current: ReactNode, index: number) => { if (index < items.length - 1) { @@ -35,14 +35,13 @@ function insertSeparators( current,
  • {separator} -
  • + , ); - } else { - const skipLastElement = - (hideCurrentLevel && shouldRenderAllItems) || - (hideCurrentLevel && !shouldRenderAllItems && itemsAfterCollapse !== 0); - return skipLastElement ? acc : acc.concat(current); } + const skipLastElement = + (hideCurrentLevel && shouldRenderAllItems) || + (hideCurrentLevel && !shouldRenderAllItems && itemsAfterCollapse !== 0); + return skipLastElement ? acc : acc.concat(current); }, []); } @@ -96,7 +95,7 @@ export const Breadcrumbs = React.forwardRef( itemsMaxWidth, liClass: withBaseName("li"), }), - [wrap, itemsMaxWidth, itemsMinWidth] + [wrap, itemsMaxWidth, itemsMinWidth], ); const separator = separatorProp || ( @@ -125,14 +124,14 @@ export const Breadcrumbs = React.forwardRef( [ "You have provided an invalid combination of properties to the Breadcrumbs.", `itemsAfterCollapse={${itemsAfterCollapse}} +itemsBeforeCollapse={${itemsBeforeCollapse}} >= maxItems={${maxItems}}`, - ].join("\n") + ].join("\n"), ); return allItems; } const hiddenItems = allItems.slice( itemsBeforeCollapse, - allItems.length - itemsAfterCollapse + allItems.length - itemsAfterCollapse, ); return [ ...allItems.slice(0, itemsBeforeCollapse), @@ -148,7 +147,7 @@ export const Breadcrumbs = React.forwardRef( , ...allItems.slice( allItems.length - itemsAfterCollapse, - allItems.length + allItems.length, ), ]; }; @@ -176,11 +175,11 @@ export const Breadcrumbs = React.forwardRef( separator, hideCurrentLevel, shouldRenderAllItems, - itemsAfterCollapse + itemsAfterCollapse, )} ); - } + }, ); diff --git a/packages/lab/src/breadcrumbs/internal/BreadcrumbsCollapsed.tsx b/packages/lab/src/breadcrumbs/internal/BreadcrumbsCollapsed.tsx index 2dad308de6..bb90e6036f 100644 --- a/packages/lab/src/breadcrumbs/internal/BreadcrumbsCollapsed.tsx +++ b/packages/lab/src/breadcrumbs/internal/BreadcrumbsCollapsed.tsx @@ -1,17 +1,17 @@ +import { OverflowMenuIcon } from "@salt-ds/icons"; import { Children, + type Component, + type KeyboardEvent, + type MouseEvent, + type ReactNode, isValidElement, - ReactNode, useCallback, - MouseEvent, - KeyboardEvent, - Component, } from "react"; -import { OverflowMenuIcon } from "@salt-ds/icons"; -import { CascadingMenuProps, MenuDescriptor } from "../../cascading-menu"; +import type { CascadingMenuProps, MenuDescriptor } from "../../cascading-menu"; +import { MenuButton, type MenuButtonProps } from "../../menu-button"; +import type { BreadcrumbProps } from "../Breadcrumb"; import { useFocusMenuRemount } from "./useFocusMenuRemount"; -import { MenuButton, MenuButtonProps } from "../../menu-button"; -import { BreadcrumbProps } from "../Breadcrumb"; export interface BreadcrumbsCollapsedProps extends Omit { @@ -50,7 +50,7 @@ export const BreadcrumbsCollapsed = ({ (sourceItem: MenuDescriptor, event: MouseEvent | KeyboardEvent): void => { shouldFocusOnMount.current = true; }, - [shouldFocusOnMount] + [shouldFocusOnMount], ); const menuItems: MenuDescriptor[] = []; diff --git a/packages/lab/src/breadcrumbs/internal/BreadcrumbsContext.ts b/packages/lab/src/breadcrumbs/internal/BreadcrumbsContext.ts index 99b3b609ea..61dc4b93e3 100644 --- a/packages/lab/src/breadcrumbs/internal/BreadcrumbsContext.ts +++ b/packages/lab/src/breadcrumbs/internal/BreadcrumbsContext.ts @@ -8,14 +8,14 @@ export interface BreadcrumbsContext { } export const BreadcrumbsContext = createContext( - undefined + undefined, ); export const useBreadcrumbsContext = () => { const context = useContext(BreadcrumbsContext); if (!context) { throw new Error( - "BreadcrumbsItem compound components cannot be rendered outside the Breadcrumbs component" + "BreadcrumbsItem compound components cannot be rendered outside the Breadcrumbs component", ); } return context; diff --git a/packages/lab/src/breadcrumbs/internal/BreadcrumbsSeparator.tsx b/packages/lab/src/breadcrumbs/internal/BreadcrumbsSeparator.tsx index 2fad987682..46dd0210c2 100644 --- a/packages/lab/src/breadcrumbs/internal/BreadcrumbsSeparator.tsx +++ b/packages/lab/src/breadcrumbs/internal/BreadcrumbsSeparator.tsx @@ -1,4 +1,4 @@ -import { ChevronRightIcon, IconProps } from "@salt-ds/icons"; +import { ChevronRightIcon, type IconProps } from "@salt-ds/icons"; export const BreadcrumbsSeparator = (props: IconProps) => ( diff --git a/packages/lab/src/breadcrumbs/internal/useFocusMenuRemount.ts b/packages/lab/src/breadcrumbs/internal/useFocusMenuRemount.ts index eec7a02c5f..e0fe646e78 100644 --- a/packages/lab/src/breadcrumbs/internal/useFocusMenuRemount.ts +++ b/packages/lab/src/breadcrumbs/internal/useFocusMenuRemount.ts @@ -1,5 +1,5 @@ -import { useRef, useEffect } from "react"; import { usePrevious } from "@salt-ds/core"; +import { useEffect, useRef } from "react"; export function useFocusMenuRemount(key: string) { const ref = useRef(null); diff --git a/packages/lab/src/button-bar/ButtonBar.tsx b/packages/lab/src/button-bar/ButtonBar.tsx index 9705ba9b9e..646fc94178 100644 --- a/packages/lab/src/button-bar/ButtonBar.tsx +++ b/packages/lab/src/button-bar/ButtonBar.tsx @@ -1,19 +1,19 @@ +import { clsx } from "clsx"; import { Children, + type HTMLAttributes, + type ReactNode, forwardRef, - HTMLAttributes, - ReactNode, useMemo, } from "react"; -import { clsx } from "clsx"; +import { type ButtonVariant, makePrefixer } from "@salt-ds/core"; import { ButtonBarContext } from "./internal/ButtonBarContext"; import { DescendantProvider } from "./internal/DescendantContext"; import { useDescendants } from "./internal/useDescendants"; -import { ButtonVariant, makePrefixer } from "@salt-ds/core"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import buttonBarCss from "./ButtonBar.css"; @@ -50,7 +50,7 @@ type OrderedButtonData = { variant?: ButtonVariant } & PartialRecord< function getPriorityForButton( item: OrderedButtonData, - field: ButtonBarOrderKey + field: ButtonBarOrderKey, ) { const variant = item?.variant || "primary"; return item?.[field] ?? DefaultButtonsOrderByVariant[variant][field]; @@ -59,7 +59,7 @@ const createComparatorForField = ( field: ButtonBarOrderKey, sort: ButtonBarSortOrder, alignLeft: boolean, - childrenData: Array + childrenData: Array, ) => { let equalityResult: number; if (field === "order" || field === "stackOrder") { @@ -96,30 +96,28 @@ const createComparatorForField = ( function alignSecondaryChild( orderedChildrenData: Array, sortOrder: ButtonBarSortOrder, - alignLeft: boolean + alignLeft: boolean, ): { index?: number; align?: "left" | "right" } { const noSecondaryChildren = { index: undefined, align: undefined }; if (sortOrder === "asc" || alignLeft) { const firstSecondaryChildIndex = orderedChildrenData.findIndex( - (childData) => childData.variant === "secondary" + (childData) => childData.variant === "secondary", ); if (firstSecondaryChildIndex !== -1) { const originalChildIndex = orderedChildrenData[firstSecondaryChildIndex].index; return { index: originalChildIndex, align: "right" }; - } else { - return noSecondaryChildren; - } - } else { - let index = orderedChildrenData.length; - while (index--) { - if (orderedChildrenData[index].variant === "secondary") { - return { index: orderedChildrenData[index].index, align: "left" }; - } } return noSecondaryChildren; } + let index = orderedChildrenData.length; + while (index--) { + if (orderedChildrenData[index].variant === "secondary") { + return { index: orderedChildrenData[index].index, align: "left" }; + } + } + return noSecondaryChildren; } export interface ButtonBarProps extends HTMLAttributes { @@ -182,7 +180,7 @@ export const ButtonBar = forwardRef( stackAtBreakpoint = "xs", ...rest }, - ref + ref, ) { const targetWindow = useWindow(); useComponentCssInjection({ @@ -201,19 +199,19 @@ export const ButtonBar = forwardRef( "stackOrder", sortStackOrder, alignLeft, - childrenData + childrenData, ); const orderComparator = createComparatorForField( "order", sortOrder, alignLeft, - childrenData + childrenData, ); const alignLeftComparator = createComparatorForField( "alignLeftOrder", sortAlignLeft, alignLeft, - childrenData + childrenData, ); let orderedChildrenIndexes: number[]; @@ -224,7 +222,7 @@ export const ButtonBar = forwardRef( orderedChildrenIndexes = matches ? childrenIndexes.sort(stackOrderComparator) : childrenIndexes.sort( - alignLeft ? alignLeftComparator : orderComparator + alignLeft ? alignLeftComparator : orderComparator, ); } @@ -240,16 +238,16 @@ export const ButtonBar = forwardRef( ...childrenData[index], })), sortOrder, - alignLeft + alignLeft, ); } const hasSecondaryButtons = childrenData.some( - (buttonData) => buttonData.variant === "secondary" + (buttonData) => buttonData.variant === "secondary", ); const orderedChildren = orderedChildrenIndexes.map( - (index) => childrenArray[index] + (index) => childrenArray[index], ); const buttonBarContextValue = useMemo( @@ -258,7 +256,7 @@ export const ButtonBar = forwardRef( alignedIndex: secondaryChildAlignment.index, align: secondaryChildAlignment.align, }), - [matches, secondaryChildAlignment.align, secondaryChildAlignment.index] + [matches, secondaryChildAlignment.align, secondaryChildAlignment.index], ); return ( @@ -274,7 +272,7 @@ export const ButtonBar = forwardRef( [withBaseName("autoAligning")]: hasSecondaryButtons && !disableAutoAlignment, }, - className + className, )} ref={ref} role="region" @@ -285,5 +283,5 @@ export const ButtonBar = forwardRef( ); - } + }, ); diff --git a/packages/lab/src/button-bar/OrderedButton.tsx b/packages/lab/src/button-bar/OrderedButton.tsx index a687d052bd..a91b1578b8 100644 --- a/packages/lab/src/button-bar/OrderedButton.tsx +++ b/packages/lab/src/button-bar/OrderedButton.tsx @@ -1,12 +1,17 @@ -import { forwardRef, useContext } from "react"; import { clsx } from "clsx"; +import { forwardRef, useContext } from "react"; -import { Button, ButtonProps, capitalize, makePrefixer } from "@salt-ds/core"; +import { + Button, + type ButtonProps, + capitalize, + makePrefixer, +} from "@salt-ds/core"; import { ButtonBarContext } from "./internal/ButtonBarContext"; import { useDescendant } from "./internal/useDescendant"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import orderedButtonCss from "./OrderedButton.css"; @@ -53,7 +58,7 @@ export const OrderedButton = forwardRef( variant, ...restProps }, - ref + ref, ) { const targetWindow = useWindow(); useComponentCssInjection({ @@ -81,12 +86,12 @@ export const OrderedButton = forwardRef( align && !matches, [withBasename("stacked")]: matches, }, - className + className, )} ref={ref} variant={variant} {...restProps} /> ); - } + }, ); diff --git a/packages/lab/src/button-bar/internal/ButtonBarContext.tsx b/packages/lab/src/button-bar/internal/ButtonBarContext.tsx index 80af43760f..eea9604807 100644 --- a/packages/lab/src/button-bar/internal/ButtonBarContext.tsx +++ b/packages/lab/src/button-bar/internal/ButtonBarContext.tsx @@ -10,5 +10,5 @@ export const ButtonBarContext = createContext( "ButtonBarContext", { matches: false, - } + }, ); diff --git a/packages/lab/src/button-bar/internal/DescendantContext.tsx b/packages/lab/src/button-bar/internal/DescendantContext.tsx index 8339106a66..e72c45becc 100644 --- a/packages/lab/src/button-bar/internal/DescendantContext.tsx +++ b/packages/lab/src/button-bar/internal/DescendantContext.tsx @@ -1,14 +1,14 @@ +import { useIsomorphicLayoutEffect } from "@salt-ds/core"; // Copied from https://gist.github.com/ryanflorence/10e9387f633f9d2e6f444a9bddaabf6e import { + type Dispatch, + type MutableRefObject, + type ReactNode, + type SetStateAction, createContext, - Dispatch, - MutableRefObject, - ReactNode, - SetStateAction, useRef, useState, } from "react"; -import { useIsomorphicLayoutEffect } from "@salt-ds/core"; // ////////////////////////////////////////////////////////////////////////////// // SUPER HACKS AHEAD: The React team will hate this enough to hopefully give us diff --git a/packages/lab/src/button-bar/internal/useDescendant.ts b/packages/lab/src/button-bar/internal/useDescendant.ts index 9df6e35cc5..e5316e2693 100644 --- a/packages/lab/src/button-bar/internal/useDescendant.ts +++ b/packages/lab/src/button-bar/internal/useDescendant.ts @@ -1,6 +1,6 @@ +import { useIsomorphicLayoutEffect } from "@salt-ds/core"; // Copied from https://gist.github.com/ryanflorence/10e9387f633f9d2e6f444a9bddaabf6e import { useContext, useRef } from "react"; -import { useIsomorphicLayoutEffect } from "@salt-ds/core"; import { DescendantContext } from "./DescendantContext"; diff --git a/packages/lab/src/button-bar/internal/useDescendants.ts b/packages/lab/src/button-bar/internal/useDescendants.ts index 6ca85aaf31..5234d5c540 100644 --- a/packages/lab/src/button-bar/internal/useDescendants.ts +++ b/packages/lab/src/button-bar/internal/useDescendants.ts @@ -1,5 +1,5 @@ // Copied from https://gist.github.com/ryanflorence/10e9387f633f9d2e6f444a9bddaabf6e -import { useState, Dispatch, SetStateAction } from "react"; +import { type Dispatch, type SetStateAction, useState } from "react"; export function useDescendants(): [T[], Dispatch>] { return useState([]); diff --git a/packages/lab/src/calendar/Calendar.tsx b/packages/lab/src/calendar/Calendar.tsx index 6750b210dc..c4782bd04e 100644 --- a/packages/lab/src/calendar/Calendar.tsx +++ b/packages/lab/src/calendar/Calendar.tsx @@ -1,23 +1,23 @@ -import { forwardRef, useCallback } from "react"; -import { clsx } from "clsx"; import { makePrefixer } from "@salt-ds/core"; -import { - CalendarNavigation, - CalendarNavigationProps, -} from "./internal/CalendarNavigation"; -import { CalendarWeekHeader } from "./internal/CalendarWeekHeader"; +import { clsx } from "clsx"; +import { forwardRef, useCallback } from "react"; import { CalendarCarousel, - CalendarCarouselProps, + type CalendarCarouselProps, } from "./internal/CalendarCarousel"; import { CalendarContext } from "./internal/CalendarContext"; -import { useCalendar, useCalendarProps } from "./useCalendar"; +import { + CalendarNavigation, + type CalendarNavigationProps, +} from "./internal/CalendarNavigation"; +import { CalendarWeekHeader } from "./internal/CalendarWeekHeader"; +import { useCalendar, type useCalendarProps } from "./useCalendar"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; -import calendarCss from "./Calendar.css"; import { DateFormatter, getLocalTimeZone } from "@internationalized/date"; +import calendarCss from "./Calendar.css"; import { getCurrentLocale } from "./internal/utils"; export type CalendarProps = useCalendarProps & { @@ -90,5 +90,5 @@ export const Calendar = forwardRef( ); - } + }, ); diff --git a/packages/lab/src/calendar/internal/CalendarCarousel.tsx b/packages/lab/src/calendar/internal/CalendarCarousel.tsx index 3fdd47940a..6d203da7ac 100644 --- a/packages/lab/src/calendar/internal/CalendarCarousel.tsx +++ b/packages/lab/src/calendar/internal/CalendarCarousel.tsx @@ -1,13 +1,13 @@ -import { forwardRef, useEffect, useRef, useState } from "react"; -import { DateValue, isSameMonth } from "@internationalized/date"; -import { CalendarMonth, CalendarMonthProps } from "./CalendarMonth"; +import { type DateValue, isSameMonth } from "@internationalized/date"; import { makePrefixer, useIsomorphicLayoutEffect } from "@salt-ds/core"; +import { forwardRef, useEffect, useRef, useState } from "react"; import { useCalendarContext } from "./CalendarContext"; +import { CalendarMonth, type CalendarMonthProps } from "./CalendarMonth"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import calendarCarouselCss from "./CalendarCarousel.css"; import { formatDate, monthDiff } from "./utils"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; export type CalendarCarouselProps = Omit; @@ -48,6 +48,7 @@ export const CalendarCarousel = forwardRef< const [months, setMonths] = useState(() => getMonths(visibleMonth)); + // biome-ignore lint/correctness/useExhaustiveDependencies: uses formatData to change visibleMonth into string useEffect(() => { setMonths((oldMonths) => { const newMonths = getMonths(visibleMonth).filter((month) => { @@ -58,7 +59,7 @@ export const CalendarCarousel = forwardRef< }); setMonths(getMonths(visibleMonth)); return undefined; - }, [formatDate(visibleMonth)]); // eslint-disable-line react-hooks/exhaustive-deps + }, [formatDate(visibleMonth)]); return (
    ["state"]; diff --git a/packages/lab/src/calendar/internal/CalendarDay.css b/packages/lab/src/calendar/internal/CalendarDay.css index b39925a729..6b6ce71b85 100644 --- a/packages/lab/src/calendar/internal/CalendarDay.css +++ b/packages/lab/src/calendar/internal/CalendarDay.css @@ -76,8 +76,8 @@ .saltCalendarDay-selectedSpan, .saltCalendarDay-selectedSpan:hover { background: var(--salt-selectable-background-hover); - box-shadow: calc(var(--salt-size-border) * -2) 0 0 0 var(--salt-selectable-background-hover), - calc(var(--salt-size-border) * -1) 0 0 var(--salt-size-border) var(--salt-selectable-borderColor-selected), 0 calc(var(--salt-size-border) * -1) 0 var(--salt-selectable-borderColor-selected); + box-shadow: calc(var(--salt-size-border) * -2) 0 0 0 var(--salt-selectable-background-hover), calc(var(--salt-size-border) * -1) 0 0 var(--salt-size-border) + var(--salt-selectable-borderColor-selected), 0 calc(var(--salt-size-border) * -1) 0 var(--salt-selectable-borderColor-selected); } .saltCalendarDay-disabled, diff --git a/packages/lab/src/calendar/internal/CalendarDay.tsx b/packages/lab/src/calendar/internal/CalendarDay.tsx index cb8bd3aa8a..9b763febcd 100644 --- a/packages/lab/src/calendar/internal/CalendarDay.tsx +++ b/packages/lab/src/calendar/internal/CalendarDay.tsx @@ -1,12 +1,22 @@ -import { makePrefixer, Tooltip, TooltipProps, useForkRef } from "@salt-ds/core"; +import type { DateValue } from "@internationalized/date"; +import { + Tooltip, + type TooltipProps, + makePrefixer, + useForkRef, +} from "@salt-ds/core"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import { clsx } from "clsx"; -import { ComponentPropsWithRef, forwardRef, ReactElement, useRef } from "react"; -import { DateValue } from "@internationalized/date"; -import { DayStatus, useCalendarDay } from "../useCalendarDay"; +import { + type ComponentPropsWithRef, + type ReactElement, + forwardRef, + useRef, +} from "react"; +import { type DayStatus, useCalendarDay } from "../useCalendarDay"; import calendarDayCss from "./CalendarDay.css"; import { formatDate } from "./utils"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; export type DateFormatter = (day: Date) => string | undefined; @@ -41,7 +51,7 @@ export const CalendarDay = forwardRef( date: day, month, }, - dayRef + dayRef, ); const { outOfRange, today, unselectable, highlighted, hidden, disabled } = status; @@ -80,7 +90,7 @@ export const CalendarDay = forwardRef( [withBaseName("highlighted")]: !!highlighted, }, dayProps.className, - className + className, )} > ( ); - } + }, ); diff --git a/packages/lab/src/calendar/internal/CalendarMonth.tsx b/packages/lab/src/calendar/internal/CalendarMonth.tsx index b80209d168..f9e7228903 100644 --- a/packages/lab/src/calendar/internal/CalendarMonth.tsx +++ b/packages/lab/src/calendar/internal/CalendarMonth.tsx @@ -1,19 +1,19 @@ +import type { DateValue } from "@internationalized/date"; +import { makePrefixer } from "@salt-ds/core"; +import { clsx } from "clsx"; import { - ComponentPropsWithRef, + type ComponentPropsWithRef, + type MouseEvent, + type SyntheticEvent, forwardRef, - MouseEvent, - SyntheticEvent, } from "react"; -import { clsx } from "clsx"; -import { makePrefixer } from "@salt-ds/core"; -import { DateValue } from "@internationalized/date"; -import { CalendarDay, CalendarDayProps } from "./CalendarDay"; +import { CalendarDay, type CalendarDayProps } from "./CalendarDay"; import { formatDate, generateVisibleDays } from "./utils"; -import calendarMonthCss from "./CalendarMonth.css"; -import { useCalendarContext } from "./CalendarContext"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import { useCalendarContext } from "./CalendarContext"; +import calendarMonthCss from "./CalendarMonth.css"; export interface CalendarMonthProps extends ComponentPropsWithRef<"div"> { date: DateValue; @@ -77,5 +77,5 @@ export const CalendarMonth = forwardRef(
    ); - } + }, ); diff --git a/packages/lab/src/calendar/internal/CalendarNavigation.tsx b/packages/lab/src/calendar/internal/CalendarNavigation.tsx index cf2180e1c8..a5e438f4d8 100644 --- a/packages/lab/src/calendar/internal/CalendarNavigation.tsx +++ b/packages/lab/src/calendar/internal/CalendarNavigation.tsx @@ -1,30 +1,34 @@ -import { - ComponentPropsWithRef, - forwardRef, - MouseEventHandler, - SyntheticEvent, -} from "react"; import { Button, - ButtonProps, - makePrefixer, - Tooltip, + type ButtonProps, Dropdown, - DropdownProps, + type DropdownProps, Option, - OptionProps, + type OptionProps, + Tooltip, + makePrefixer, useListControlContext, } from "@salt-ds/core"; import { ChevronLeftIcon, ChevronRightIcon } from "@salt-ds/icons"; import { clsx } from "clsx"; +import { + type ComponentPropsWithRef, + type MouseEventHandler, + type SyntheticEvent, + forwardRef, +} from "react"; import { useCalendarContext } from "./CalendarContext"; +import { + type DateValue, + isSameMonth, + isSameYear, +} from "@internationalized/date"; +import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; import calendarNavigationCss from "./CalendarNavigation.css"; -import { DateValue, isSameMonth, isSameYear } from "@internationalized/date"; import { formatDate, monthDiff, monthsForLocale } from "./utils"; -import { useWindow } from "@salt-ds/window"; -import { useComponentCssInjection } from "@salt-ds/styles"; type dateDropdownProps = DropdownProps; @@ -71,13 +75,13 @@ function useCalendarNavigation() { if (isOutsideAllowedMonths(newMonth)) { // If month is navigable we should move to the closest navigable month const navigableMonths = monthsForLocale(visibleMonth).filter( - (n) => !isOutsideAllowedMonths(n) + (n) => !isOutsideAllowedMonths(n), ); newMonth = navigableMonths.reduce((closestMonth, currentMonth) => Math.abs(monthDiff(currentMonth, newMonth)) < Math.abs(monthDiff(closestMonth, newMonth)) ? currentMonth - : closestMonth + : closestMonth, ); } setVisibleMonth(event, newMonth); @@ -91,10 +95,10 @@ function useCalendarNavigation() { .filter((year) => !isOutsideAllowedYears(year)); const selectedMonth: DateValue | undefined = months.find((month: DateValue) => - isSameMonth(month, visibleMonth) + isSameMonth(month, visibleMonth), ); const selectedYear: DateValue | undefined = years.find((year: DateValue) => - isSameYear(year, visibleMonth) + isSameYear(year, visibleMonth), ); const canNavigatePrevious = !(minDate && isDayVisible(minDate)); @@ -174,7 +178,7 @@ export const CalendarNavigation = forwardRef< } = useCalendarNavigation(); const handleNavigatePrevious: MouseEventHandler = ( - event + event, ) => { moveToPreviousMonth(event); }; @@ -206,7 +210,7 @@ export const CalendarNavigation = forwardRef< className={clsx( withBaseName(), { [withBaseName("hideYearDropdown")]: hideYearDropdown }, - className + className, )} ref={ref} {...rest} diff --git a/packages/lab/src/calendar/internal/CalendarWeekHeader.tsx b/packages/lab/src/calendar/internal/CalendarWeekHeader.tsx index afc6896974..0e4c21ca66 100644 --- a/packages/lab/src/calendar/internal/CalendarWeekHeader.tsx +++ b/packages/lab/src/calendar/internal/CalendarWeekHeader.tsx @@ -1,11 +1,11 @@ -import { ComponentPropsWithRef, forwardRef } from "react"; -import { clsx } from "clsx"; import { makePrefixer } from "@salt-ds/core"; +import { clsx } from "clsx"; +import { type ComponentPropsWithRef, forwardRef } from "react"; import { daysForLocale } from "./utils"; -import calendarWeekHeaderCss from "./CalendarWeekHeader.css"; -import { useWindow } from "@salt-ds/window"; import { useComponentCssInjection } from "@salt-ds/styles"; +import { useWindow } from "@salt-ds/window"; +import calendarWeekHeaderCss from "./CalendarWeekHeader.css"; export type CalendarWeekHeaderProps = ComponentPropsWithRef<"div">; @@ -34,7 +34,7 @@ export const CalendarWeekHeader = forwardRef< > {weekdaysShort.map((day, index) => (