From 1ff0a3dd9fbbac5be39c106936c7dadb6c5348ae Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 14:42:27 -0500 Subject: [PATCH 01/11] Added rollup-plugin-terser package dependency --- packages/storybook/package.json | 1 + packages/storybook/yarn.lock | 133 +++++++++++++++++++++++++++++++- 2 files changed, 130 insertions(+), 4 deletions(-) diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 183b59a..5402354 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -77,6 +77,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^3.0.2", + "rollup-plugin-terser": "^7.0.2", "rsync": "^0.6.1", "storybook": "^7.6.17", "ts-lit-plugin": "^2.0.2", diff --git a/packages/storybook/yarn.lock b/packages/storybook/yarn.lock index 1e0a75d..25f25eb 100644 --- a/packages/storybook/yarn.lock +++ b/packages/storybook/yarn.lock @@ -43,6 +43,16 @@ __metadata: languageName: node linkType: hard +"@babel/code-frame@npm:^7.10.4": + version: 7.24.2 + resolution: "@babel/code-frame@npm:7.24.2" + dependencies: + "@babel/highlight": "npm:^7.24.2" + picocolors: "npm:^1.0.0" + checksum: 10c0/d1d4cba89475ab6aab7a88242e1fd73b15ecb9f30c109b69752956434d10a26a52cbd37727c4eca104b6d45227bd1dfce39a6a6f4a14c9b2f07f871e968cf406 + languageName: node + linkType: hard + "@babel/compat-data@npm:^7.22.6, @babel/compat-data@npm:^7.23.3, @babel/compat-data@npm:^7.23.5": version: 7.23.5 resolution: "@babel/compat-data@npm:7.23.5" @@ -345,6 +355,18 @@ __metadata: languageName: node linkType: hard +"@babel/highlight@npm:^7.24.2": + version: 7.24.2 + resolution: "@babel/highlight@npm:7.24.2" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.22.20" + chalk: "npm:^2.4.2" + js-tokens: "npm:^4.0.0" + picocolors: "npm:^1.0.0" + checksum: 10c0/98ce00321daedeed33a4ed9362dc089a70375ff1b3b91228b9f05e6591d387a81a8cba68886e207861b8871efa0bc997ceabdd9c90f6cce3ee1b2f7f941b42db + languageName: node + linkType: hard + "@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.20.7, @babel/parser@npm:^7.23.0, @babel/parser@npm:^7.23.6, @babel/parser@npm:^7.23.9": version: 7.23.9 resolution: "@babel/parser@npm:7.23.9" @@ -2407,6 +2429,17 @@ __metadata: languageName: node linkType: hard +"@jridgewell/gen-mapping@npm:^0.3.5": + version: 0.3.5 + resolution: "@jridgewell/gen-mapping@npm:0.3.5" + dependencies: + "@jridgewell/set-array": "npm:^1.2.1" + "@jridgewell/sourcemap-codec": "npm:^1.4.10" + "@jridgewell/trace-mapping": "npm:^0.3.24" + checksum: 10c0/1be4fd4a6b0f41337c4f5fdf4afc3bd19e39c3691924817108b82ffcb9c9e609c273f936932b9fba4b3a298ce2eb06d9bff4eb1cc3bd81c4f4ee1b4917e25feb + languageName: node + linkType: hard + "@jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.2 resolution: "@jridgewell/resolve-uri@npm:3.1.2" @@ -2421,6 +2454,23 @@ __metadata: languageName: node linkType: hard +"@jridgewell/set-array@npm:^1.2.1": + version: 1.2.1 + resolution: "@jridgewell/set-array@npm:1.2.1" + checksum: 10c0/2a5aa7b4b5c3464c895c802d8ae3f3d2b92fcbe84ad12f8d0bfbb1f5ad006717e7577ee1fd2eac00c088abe486c7adb27976f45d2941ff6b0b92b2c3302c60f4 + languageName: node + linkType: hard + +"@jridgewell/source-map@npm:^0.3.3": + version: 0.3.6 + resolution: "@jridgewell/source-map@npm:0.3.6" + dependencies: + "@jridgewell/gen-mapping": "npm:^0.3.5" + "@jridgewell/trace-mapping": "npm:^0.3.25" + checksum: 10c0/6a4ecc713ed246ff8e5bdcc1ef7c49aaa93f7463d948ba5054dda18b02dcc6a055e2828c577bcceee058f302ce1fc95595713d44f5c45e43d459f88d267f2f04 + languageName: node + linkType: hard + "@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.4.15": version: 1.4.15 resolution: "@jridgewell/sourcemap-codec@npm:1.4.15" @@ -2438,6 +2488,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/trace-mapping@npm:^0.3.24, @jridgewell/trace-mapping@npm:^0.3.25": + version: 0.3.25 + resolution: "@jridgewell/trace-mapping@npm:0.3.25" + dependencies: + "@jridgewell/resolve-uri": "npm:^3.1.0" + "@jridgewell/sourcemap-codec": "npm:^1.4.14" + checksum: 10c0/3d1ce6ebc69df9682a5a8896b414c6537e428a1d68b02fcc8363b04284a8ca0df04d0ee3013132252ab14f2527bc13bea6526a912ecb5658f0e39fd2860b4df4 + languageName: node + linkType: hard + "@juggle/resize-observer@npm:^3.3.1": version: 3.4.0 resolution: "@juggle/resize-observer@npm:3.4.0" @@ -2613,6 +2673,7 @@ __metadata: react: "npm:^18.2.0" react-dom: "npm:^18.2.0" rimraf: "npm:^3.0.2" + rollup-plugin-terser: "npm:^7.0.2" rsync: "npm:^0.6.1" storybook: "npm:^7.6.17" ts-lit-plugin: "npm:^2.0.2" @@ -4701,7 +4762,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.11.3, acorn@npm:^8.9.0": +"acorn@npm:^8.11.3, acorn@npm:^8.8.2, acorn@npm:^8.9.0": version: 8.11.3 resolution: "acorn@npm:8.11.3" bin: @@ -5428,6 +5489,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^2.20.0": + version: 2.20.3 + resolution: "commander@npm:2.20.3" + checksum: 10c0/74c781a5248c2402a0a3e966a0a2bba3c054aad144f5c023364be83265e796b20565aa9feff624132ff629aa64e16999fa40a743c10c12f7c61e96a794b99288 + languageName: node + linkType: hard + "commander@npm:^6.2.1": version: 6.2.1 resolution: "commander@npm:6.2.1" @@ -7840,6 +7908,17 @@ __metadata: languageName: node linkType: hard +"jest-worker@npm:^26.2.1": + version: 26.6.2 + resolution: "jest-worker@npm:26.6.2" + dependencies: + "@types/node": "npm:*" + merge-stream: "npm:^2.0.0" + supports-color: "npm:^7.0.0" + checksum: 10c0/07e4dba650381604cda253ab6d5837fe0279c8d68c25884995b45bfe149a7a1e1b5a97f304b4518f257dac2a9ddc1808d57d650649c3ab855e9e60cf824d2970 + languageName: node + linkType: hard + "jest-worker@npm:^29.7.0": version: 29.7.0 resolution: "jest-worker@npm:29.7.0" @@ -9899,6 +9978,15 @@ __metadata: languageName: node linkType: hard +"randombytes@npm:^2.1.0": + version: 2.1.0 + resolution: "randombytes@npm:2.1.0" + dependencies: + safe-buffer: "npm:^5.1.0" + checksum: 10c0/50395efda7a8c94f5dffab564f9ff89736064d32addf0cc7e8bf5e4166f09f8ded7a0849ca6c2d2a59478f7d90f78f20d8048bca3cdf8be09d8e8a10790388f3 + languageName: node + linkType: hard + "range-parser@npm:~1.2.1": version: 1.2.1 resolution: "range-parser@npm:1.2.1" @@ -10287,6 +10375,20 @@ __metadata: languageName: node linkType: hard +"rollup-plugin-terser@npm:^7.0.2": + version: 7.0.2 + resolution: "rollup-plugin-terser@npm:7.0.2" + dependencies: + "@babel/code-frame": "npm:^7.10.4" + jest-worker: "npm:^26.2.1" + serialize-javascript: "npm:^4.0.0" + terser: "npm:^5.0.0" + peerDependencies: + rollup: ^2.0.0 + checksum: 10c0/f79b851c6f7b06555d3a8ce7a4e32abd2b7cb8318e89fb8db73e662fa6e3af1a59920e881d111efc65a7437fd9582b61b1f4859b6fd839ba948616829d92432d + languageName: node + linkType: hard + "rollup@npm:^2.25.0 || ^3.3.0": version: 3.29.4 resolution: "rollup@npm:3.29.4" @@ -10390,7 +10492,7 @@ __metadata: languageName: node linkType: hard -"safe-buffer@npm:5.2.1, safe-buffer@npm:~5.2.0": +"safe-buffer@npm:5.2.1, safe-buffer@npm:^5.1.0, safe-buffer@npm:~5.2.0": version: 5.2.1 resolution: "safe-buffer@npm:5.2.1" checksum: 10c0/6501914237c0a86e9675d4e51d89ca3c21ffd6a31642efeba25ad65720bce6921c9e7e974e5be91a786b25aa058b5303285d3c15dbabf983a919f5f630d349f3 @@ -10474,6 +10576,15 @@ __metadata: languageName: node linkType: hard +"serialize-javascript@npm:^4.0.0": + version: 4.0.0 + resolution: "serialize-javascript@npm:4.0.0" + dependencies: + randombytes: "npm:^2.1.0" + checksum: 10c0/510dfe7f0311c0b2f7ab06311afa1668ba2969ab2f1faaac0a4924ede76b7f22ba85cfdeaa0052ec5a047bca42c8cd8ac8df8f0efe52f9bd290b3a39ae69fe9d + languageName: node + linkType: hard + "serve-static@npm:1.15.0": version: 1.15.0 resolution: "serve-static@npm:1.15.0" @@ -10648,7 +10759,7 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.16": +"source-map-support@npm:^0.5.16, source-map-support@npm:~0.5.20": version: 0.5.21 resolution: "source-map-support@npm:0.5.21" dependencies: @@ -10901,7 +11012,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:^7.1.0": +"supports-color@npm:^7.0.0, supports-color@npm:^7.1.0": version: 7.2.0 resolution: "supports-color@npm:7.2.0" dependencies: @@ -11017,6 +11128,20 @@ __metadata: languageName: node linkType: hard +"terser@npm:^5.0.0": + version: 5.30.3 + resolution: "terser@npm:5.30.3" + dependencies: + "@jridgewell/source-map": "npm:^0.3.3" + acorn: "npm:^8.8.2" + commander: "npm:^2.20.0" + source-map-support: "npm:~0.5.20" + bin: + terser: bin/terser + checksum: 10c0/ab5a8afef2e7a3b12a0fd17f9ff984fe02aefa945985eb139ab9984280d523a1104021eda889a7f993b69a67574ceb8fd0db8b76e5efc6a7607246db51bcc0b6 + languageName: node + linkType: hard + "test-exclude@npm:^6.0.0": version: 6.0.0 resolution: "test-exclude@npm:6.0.0" From 005d2bd1e60803cbba3b69cb4437562b546a93ce Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 14:55:21 -0500 Subject: [PATCH 02/11] Enabled support for minified compiled files generation --- packages/storybook/vite.config.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/storybook/vite.config.js b/packages/storybook/vite.config.js index 219b0f9..b3fdb82 100644 --- a/packages/storybook/vite.config.js +++ b/packages/storybook/vite.config.js @@ -8,6 +8,7 @@ import postcssNested from 'postcss-nested'; import postcssNestedImport from 'postcss-nested-import'; import postcssDiscardComments from 'postcss-discard-comments'; import ts from 'vite-plugin-ts'; +import { terser } from 'rollup-plugin-terser'; // https://vitejs.dev/config/ export default defineConfig({ @@ -56,5 +57,24 @@ export default defineConfig({ }, formats: ['es'], }, + rollupOptions: { + plugins: [ + terser({ + format: { + comments: false, + }, + mangle: { + keep_classnames: false, + reserved: [], + }, + }), + ], + }, + minify: 'terser', + sourcemap: true, + target: 'esnext', + TerserOptions: { + maxWorkers: 16, + }, }, }); From d4e0c30204c05812b8c5e945da8ace8e75aadc81 Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 14:57:43 -0500 Subject: [PATCH 03/11] Updated Vite configs to use TypeScript compiler --- packages/storybook/vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/storybook/vite.config.js b/packages/storybook/vite.config.js index b3fdb82..b29e62a 100644 --- a/packages/storybook/vite.config.js +++ b/packages/storybook/vite.config.js @@ -12,6 +12,11 @@ import { terser } from 'rollup-plugin-terser'; // https://vitejs.dev/config/ export default defineConfig({ + base: './', + plugins: [ts()], + define: { + 'Reflect.decorate': 'undefined', + }, css: { postcss: { plugins: [ From 2f8e76abe47d0914fbf18619fec966a26d7d20f7 Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:27:52 -0500 Subject: [PATCH 04/11] Updated package.json to remove unused @phase2 packages --- packages/storybook/package.json | 6 +- packages/storybook/yarn.lock | 270 ++++++++++++++++++++++++++++---- 2 files changed, 240 insertions(+), 36 deletions(-) diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 5402354..1f4ad0b 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -44,13 +44,11 @@ "node": ">=20" }, "dependencies": { + "@phase2/outline-adopted-stylesheets-controller": "^1.0.4", + "@phase2/outline-config": "^0.0.14", "lit": "^3.1.2" }, "devDependencies": { - "@phase2/outline-adopted-stylesheets-controller": "^1.0.4", - "@phase2/outline-config": "^0.0.14", - "@phase2/outline-core-alert": "^0.0.4", - "@phase2/outline-docs": "^0.0.21", "@storybook/addon-essentials": "^7.6.17", "@storybook/addon-links": "^7.6.17", "@storybook/blocks": "^7.6.17", diff --git a/packages/storybook/yarn.lock b/packages/storybook/yarn.lock index 25f25eb..d099a97 100644 --- a/packages/storybook/yarn.lock +++ b/packages/storybook/yarn.lock @@ -2609,43 +2609,12 @@ __metadata: languageName: node linkType: hard -"@phase2/outline-core-alert@npm:^0.0.4": - version: 0.0.4 - resolution: "@phase2/outline-core-alert@npm:0.0.4" - dependencies: - "@phase2/outline-adopted-stylesheets-controller": "npm:^1.0.4" - lit: "npm:^3.1.2" - checksum: 10c0/63035f75fb726630bc024e8987de7e1b591bf991628608cf8d87d16b684791f7b9c9a6414b007887a67b8dd76dde9fc53675fbc5e2c6c3e0d249adfd7f1eaf99 - languageName: node - linkType: hard - -"@phase2/outline-core@npm:^0.2.7": - version: 0.2.7 - resolution: "@phase2/outline-core@npm:0.2.7" - dependencies: - "@phase2/outline-config": "npm:^0.0.14" - checksum: 10c0/f4e233e89318b6754b92da33fbf21f0485e6a341d637e688ef24364ac76d74c2b0c289e30e43663913846a512eaa7e442eb8283e18453a6bf9d6fd63f0766ae1 - languageName: node - linkType: hard - -"@phase2/outline-docs@npm:^0.0.21": - version: 0.0.21 - resolution: "@phase2/outline-docs@npm:0.0.21" - dependencies: - "@phase2/outline-core": "npm:^0.2.7" - tslib: "npm:^2.1.0" - checksum: 10c0/5c7f6a21c044072636ecdbda50ec57fb8d6fce6c0c7ff9023c852d75145f3bef779f975529d9c4fea86b44e90648b575435a19ecfa3bc6326a01c6c65f9d6b2e - languageName: node - linkType: hard - "@phase2/sample-storybook-web-components@workspace:.": version: 0.0.0-use.local resolution: "@phase2/sample-storybook-web-components@workspace:." dependencies: "@phase2/outline-adopted-stylesheets-controller": "npm:^1.0.4" "@phase2/outline-config": "npm:^0.0.14" - "@phase2/outline-core-alert": "npm:^0.0.4" - "@phase2/outline-docs": "npm:^0.0.21" "@storybook/addon-essentials": "npm:^7.6.17" "@storybook/addon-links": "npm:^7.6.17" "@storybook/blocks": "npm:^7.6.17" @@ -2658,6 +2627,7 @@ __metadata: "@typescript-eslint/parser": "npm:^5.0.0" esbuild-decorators: "npm:^1.0.0" eslint: "npm:^8.56.0" + eslint-plugin-lit: "npm:^1.11.0" eslint-plugin-storybook: "npm:^0.8.0" glob: "npm:^10.3.10" lit: "npm:^3.1.2" @@ -2670,12 +2640,15 @@ __metadata: postcss-nested-import: "npm:^1.3.0" postcss-nesting: "npm:^12.0.2" postcss-preset-env: "npm:^9.3.0" + prettier: "npm:^3.2.5" + prettier-plugin-css-order: "npm:^2.1.2" react: "npm:^18.2.0" react-dom: "npm:^18.2.0" rimraf: "npm:^3.0.2" rollup-plugin-terser: "npm:^7.0.2" rsync: "npm:^0.6.1" storybook: "npm:^7.6.17" + svgo: "npm:^3.2.0" ts-lit-plugin: "npm:^2.0.2" typescript: "npm:^5.3.3" vite: "npm:^5.1.4" @@ -4077,6 +4050,13 @@ __metadata: languageName: node linkType: hard +"@trysound/sax@npm:0.2.0": + version: 0.2.0 + resolution: "@trysound/sax@npm:0.2.0" + checksum: 10c0/44907308549ce775a41c38a815f747009ac45929a45d642b836aa6b0a536e4978d30b8d7d680bbd116e9dd73b7dbe2ef0d1369dcfc2d09e83ba381e485ecbe12 + languageName: node + linkType: hard + "@types/babel__core@npm:^7.0.0": version: 7.20.5 resolution: "@types/babel__core@npm:7.20.5" @@ -5138,6 +5118,13 @@ __metadata: languageName: node linkType: hard +"boolbase@npm:^1.0.0": + version: 1.0.0 + resolution: "boolbase@npm:1.0.0" + checksum: 10c0/e4b53deb4f2b85c52be0e21a273f2045c7b6a6ea002b0e139c744cb6f95e9ec044439a52883b0d74dedd1ff3da55ed140cfdddfed7fb0cccbed373de5dce1bcf + languageName: node + linkType: hard + "bplist-parser@npm:^0.2.0": version: 0.2.0 resolution: "bplist-parser@npm:0.2.0" @@ -5503,6 +5490,13 @@ __metadata: languageName: node linkType: hard +"commander@npm:^7.2.0": + version: 7.2.0 + resolution: "commander@npm:7.2.0" + checksum: 10c0/8d690ff13b0356df7e0ebbe6c59b4712f754f4b724d4f473d3cc5b3fdcf978e3a5dc3078717858a2ceb50b0f84d0660a7f22a96cdc50fb877d0c9bb31593d23a + languageName: node + linkType: hard + "commondir@npm:^1.0.1": version: 1.0.1 resolution: "commondir@npm:1.0.1" @@ -5655,6 +5649,15 @@ __metadata: languageName: node linkType: hard +"css-declaration-sorter@npm:^7.1.1": + version: 7.2.0 + resolution: "css-declaration-sorter@npm:7.2.0" + peerDependencies: + postcss: ^8.0.9 + checksum: 10c0/d8516be94f8f2daa233ef021688b965c08161624cbf830a4d7ee1099429437c0ee124d35c91b1c659cfd891a68e8888aa941726dab12279bc114aaed60a94606 + languageName: node + linkType: hard + "css-has-pseudo@npm:^6.0.0": version: 6.0.2 resolution: "css-has-pseudo@npm:6.0.2" @@ -5677,6 +5680,46 @@ __metadata: languageName: node linkType: hard +"css-select@npm:^5.1.0": + version: 5.1.0 + resolution: "css-select@npm:5.1.0" + dependencies: + boolbase: "npm:^1.0.0" + css-what: "npm:^6.1.0" + domhandler: "npm:^5.0.2" + domutils: "npm:^3.0.1" + nth-check: "npm:^2.0.1" + checksum: 10c0/551c60dba5b54054741032c1793b5734f6ba45e23ae9e82761a3c0ed1acbb8cfedfa443aaba3a3c1a54cac12b456d2012a09d2cd5f0e82e430454c1b9d84d500 + languageName: node + linkType: hard + +"css-tree@npm:^2.3.1": + version: 2.3.1 + resolution: "css-tree@npm:2.3.1" + dependencies: + mdn-data: "npm:2.0.30" + source-map-js: "npm:^1.0.1" + checksum: 10c0/6f8c1a11d5e9b14bf02d10717fc0351b66ba12594166f65abfbd8eb8b5b490dd367f5c7721db241a3c792d935fc6751fbc09f7e1598d421477ad9fadc30f4f24 + languageName: node + linkType: hard + +"css-tree@npm:~2.2.0": + version: 2.2.1 + resolution: "css-tree@npm:2.2.1" + dependencies: + mdn-data: "npm:2.0.28" + source-map-js: "npm:^1.0.1" + checksum: 10c0/47e87b0f02f8ac22f57eceb65c58011dd142d2158128882a0bf963cf2eabb81a4ebbc2e3790c8289be7919fa8b83750c7b69272bd66772c708143b772ba3c186 + languageName: node + linkType: hard + +"css-what@npm:^6.1.0": + version: 6.1.0 + resolution: "css-what@npm:6.1.0" + checksum: 10c0/a09f5a6b14ba8dcf57ae9a59474722e80f20406c53a61e9aedb0eedc693b135113ffe2983f4efc4b5065ae639442e9ae88df24941ef159c218b231011d733746 + languageName: node + linkType: hard + "cssdb@npm:^7.9.0": version: 7.11.0 resolution: "cssdb@npm:7.11.0" @@ -5693,6 +5736,15 @@ __metadata: languageName: node linkType: hard +"csso@npm:^5.0.5": + version: 5.0.5 + resolution: "csso@npm:5.0.5" + dependencies: + css-tree: "npm:~2.2.0" + checksum: 10c0/ab4beb1e97dd7e207c10e9925405b45f15a6cd1b4880a8686ad573aa6d476aed28b4121a666cffd26c37a26179f7b54741f7c257543003bfb244d06a62ad569b + languageName: node + linkType: hard + "csstype@npm:^3.0.2": version: 3.1.3 resolution: "csstype@npm:3.1.3" @@ -5892,6 +5944,44 @@ __metadata: languageName: node linkType: hard +"dom-serializer@npm:^2.0.0": + version: 2.0.0 + resolution: "dom-serializer@npm:2.0.0" + dependencies: + domelementtype: "npm:^2.3.0" + domhandler: "npm:^5.0.2" + entities: "npm:^4.2.0" + checksum: 10c0/d5ae2b7110ca3746b3643d3ef60ef823f5f078667baf530cec096433f1627ec4b6fa8c072f09d079d7cda915fd2c7bc1b7b935681e9b09e591e1e15f4040b8e2 + languageName: node + linkType: hard + +"domelementtype@npm:^2.3.0": + version: 2.3.0 + resolution: "domelementtype@npm:2.3.0" + checksum: 10c0/686f5a9ef0fff078c1412c05db73a0dce096190036f33e400a07e2a4518e9f56b1e324f5c576a0a747ef0e75b5d985c040b0d51945ce780c0dd3c625a18cd8c9 + languageName: node + linkType: hard + +"domhandler@npm:^5.0.2, domhandler@npm:^5.0.3": + version: 5.0.3 + resolution: "domhandler@npm:5.0.3" + dependencies: + domelementtype: "npm:^2.3.0" + checksum: 10c0/bba1e5932b3e196ad6862286d76adc89a0dbf0c773e5ced1eb01f9af930c50093a084eff14b8de5ea60b895c56a04d5de8bbc4930c5543d029091916770b2d2a + languageName: node + linkType: hard + +"domutils@npm:^3.0.1": + version: 3.1.0 + resolution: "domutils@npm:3.1.0" + dependencies: + dom-serializer: "npm:^2.0.0" + domelementtype: "npm:^2.3.0" + domhandler: "npm:^5.0.3" + checksum: 10c0/342d64cf4d07b8a0573fb51e0a6312a88fb520c7fefd751870bf72fa5fc0f2e0cb9a3958a573610b1d608c6e2a69b8e9b4b40f0bfb8f87a71bce4f180cca1887 + languageName: node + linkType: hard + "dotenv-expand@npm:^10.0.0": version: 10.0.0 resolution: "dotenv-expand@npm:10.0.0" @@ -5989,7 +6079,7 @@ __metadata: languageName: node linkType: hard -"entities@npm:^4.5.0": +"entities@npm:^4.2.0, entities@npm:^4.5.0": version: 4.5.0 resolution: "entities@npm:4.5.0" checksum: 10c0/5b039739f7621f5d1ad996715e53d964035f75ad3b9a4d38c6b3804bb226e282ffeae2443624d8fdd9c47d8e926ae9ac009c54671243f0c3294c26af7cc85250 @@ -6335,6 +6425,19 @@ __metadata: languageName: node linkType: hard +"eslint-plugin-lit@npm:^1.11.0": + version: 1.11.0 + resolution: "eslint-plugin-lit@npm:1.11.0" + dependencies: + parse5: "npm:^6.0.1" + parse5-htmlparser2-tree-adapter: "npm:^6.0.1" + requireindex: "npm:^1.2.0" + peerDependencies: + eslint: ">= 5" + checksum: 10c0/1b808de93c1097369a44d2704708520038fd47e3f94c485bbb8d831a83c8019eb45ef94bd9f01bc7659669f5287c7aa3b5e8e3eaeae930bb54e33bc63f221bab + languageName: node + linkType: hard + "eslint-plugin-storybook@npm:^0.8.0": version: 0.8.0 resolution: "eslint-plugin-storybook@npm:0.8.0" @@ -8423,6 +8526,20 @@ __metadata: languageName: node linkType: hard +"mdn-data@npm:2.0.28": + version: 2.0.28 + resolution: "mdn-data@npm:2.0.28" + checksum: 10c0/20000932bc4cd1cde9cba4e23f08cc4f816398af4c15ec81040ed25421d6bf07b5cf6b17095972577fb498988f40f4cb589e3169b9357bb436a12d8e07e5ea7b + languageName: node + linkType: hard + +"mdn-data@npm:2.0.30": + version: 2.0.30 + resolution: "mdn-data@npm:2.0.30" + checksum: 10c0/a2c472ea16cee3911ae742593715aa4c634eb3d4b9f1e6ada0902aa90df13dcbb7285d19435f3ff213ebaa3b2e0c0265c1eb0e3fb278fda7f8919f046a410cd9 + languageName: node + linkType: hard + "media-typer@npm:0.3.0": version: 0.3.0 resolution: "media-typer@npm:0.3.0" @@ -8882,6 +8999,15 @@ __metadata: languageName: node linkType: hard +"nth-check@npm:^2.0.1": + version: 2.1.1 + resolution: "nth-check@npm:2.1.1" + dependencies: + boolbase: "npm:^1.0.0" + checksum: 10c0/5fee7ff309727763689cfad844d979aedd2204a817fbaaf0e1603794a7c20db28548d7b024692f953557df6ce4a0ee4ae46cd8ebd9b36cfb300b9226b567c479 + languageName: node + linkType: hard + "nypm@npm:^0.3.3": version: 0.3.6 resolution: "nypm@npm:0.3.6" @@ -9140,6 +9266,15 @@ __metadata: languageName: node linkType: hard +"parse5-htmlparser2-tree-adapter@npm:^6.0.1": + version: 6.0.1 + resolution: "parse5-htmlparser2-tree-adapter@npm:6.0.1" + dependencies: + parse5: "npm:^6.0.1" + checksum: 10c0/dfa5960e2aaf125707e19a4b1bc333de49232eba5a6ffffb95d313a7d6087c3b7a274b58bee8d3bd41bdf150638815d1d601a42bbf2a0345208c3c35b1279556 + languageName: node + linkType: hard + "parse5@npm:5.1.0": version: 5.1.0 resolution: "parse5@npm:5.1.0" @@ -9147,6 +9282,13 @@ __metadata: languageName: node linkType: hard +"parse5@npm:^6.0.1": + version: 6.0.1 + resolution: "parse5@npm:6.0.1" + checksum: 10c0/595821edc094ecbcfb9ddcb46a3e1fe3a718540f8320eff08b8cf6742a5114cce2d46d45f95c26191c11b184dcaf4e2960abcd9c5ed9eb9393ac9a37efcfdecb + languageName: node + linkType: hard + "parseurl@npm:~1.3.3": version: 1.3.3 resolution: "parseurl@npm:1.3.3" @@ -9570,6 +9712,15 @@ __metadata: languageName: node linkType: hard +"postcss-less@npm:^6.0.0": + version: 6.0.0 + resolution: "postcss-less@npm:6.0.0" + peerDependencies: + postcss: ^8.3.5 + checksum: 10c0/09869ba66e1340f03d6ffd34cba2721f48d1c4a71314af5b10d8a3cc4f78c15f22da809442bf5e50d04eff2a96389d6a0fdb9f0c20a191945aacfb1747fd47ca + languageName: node + linkType: hard + "postcss-load-config@npm:^5.0.3": version: 5.0.3 resolution: "postcss-load-config@npm:5.0.3" @@ -9763,6 +9914,15 @@ __metadata: languageName: node linkType: hard +"postcss-scss@npm:^4.0.9": + version: 4.0.9 + resolution: "postcss-scss@npm:4.0.9" + peerDependencies: + postcss: ^8.4.29 + checksum: 10c0/f917ecfd4b9113a6648e966a41f027ff7e14238393914978d44596e227a50f084667dc8818742348dc7d8b20130b30d4259aca1d4db86754a9c141202ae03714 + languageName: node + linkType: hard + "postcss-selector-not@npm:^7.0.1": version: 7.0.1 resolution: "postcss-selector-not@npm:7.0.1" @@ -9809,6 +9969,19 @@ __metadata: languageName: node linkType: hard +"prettier-plugin-css-order@npm:^2.1.2": + version: 2.1.2 + resolution: "prettier-plugin-css-order@npm:2.1.2" + dependencies: + css-declaration-sorter: "npm:^7.1.1" + postcss-less: "npm:^6.0.0" + postcss-scss: "npm:^4.0.9" + peerDependencies: + prettier: 3.x + checksum: 10c0/e6e8230048fb9d994cde207796b35e0e074cb83420b0c17c764353da290bb2b3d099265bf65537a70c03e60a0854bfa4ce2576b436933d8b4b0d86bdd61a6e73 + languageName: node + linkType: hard + "prettier@npm:^2.8.0": version: 2.8.8 resolution: "prettier@npm:2.8.8" @@ -9818,6 +9991,15 @@ __metadata: languageName: node linkType: hard +"prettier@npm:^3.2.5": + version: 3.2.5 + resolution: "prettier@npm:3.2.5" + bin: + prettier: bin/prettier.cjs + checksum: 10c0/ea327f37a7d46f2324a34ad35292af2ad4c4c3c3355da07313339d7e554320f66f65f91e856add8530157a733c6c4a897dc41b577056be5c24c40f739f5ee8c6 + languageName: node + linkType: hard + "pretty-hrtime@npm:^1.0.3": version: 1.0.3 resolution: "pretty-hrtime@npm:1.0.3" @@ -10752,6 +10934,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:^1.0.1": + version: 1.2.0 + resolution: "source-map-js@npm:1.2.0" + checksum: 10c0/7e5f896ac10a3a50fe2898e5009c58ff0dc102dcb056ed27a354623a0ece8954d4b2649e1a1b2b52ef2e161d26f8859c7710350930751640e71e374fe2d321a4 + languageName: node + linkType: hard + "source-map-js@npm:^1.0.2": version: 1.0.2 resolution: "source-map-js@npm:1.0.2" @@ -11044,6 +11233,23 @@ __metadata: languageName: node linkType: hard +"svgo@npm:^3.2.0": + version: 3.2.0 + resolution: "svgo@npm:3.2.0" + dependencies: + "@trysound/sax": "npm:0.2.0" + commander: "npm:^7.2.0" + css-select: "npm:^5.1.0" + css-tree: "npm:^2.3.1" + css-what: "npm:^6.1.0" + csso: "npm:^5.0.5" + picocolors: "npm:^1.0.0" + bin: + svgo: ./bin/svgo + checksum: 10c0/28fa9061ccbcf2e3616d48d1feb613aaa05f8f290a329beb0e585914f1864385152934a7d4d683a4609fafbae3d51666633437c359c5c5ef74fb58ad09092a7c + languageName: node + linkType: hard + "synchronous-promise@npm:^2.0.15": version: 2.0.17 resolution: "synchronous-promise@npm:2.0.17" From 8648b0da61d294315787d87b974541d8daa6c323 Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:29:34 -0500 Subject: [PATCH 05/11] Added code formating support --- packages/storybook/.eslintrc.json | 45 +++++++++++++++++------------ packages/storybook/.prettierrc.json | 9 +++--- packages/storybook/package.json | 10 ++++++- packages/storybook/svgo.config.cjs | 30 +++++++++++++++++++ packages/storybook/tsconfig.json | 2 +- 5 files changed, 72 insertions(+), 24 deletions(-) create mode 100644 packages/storybook/svgo.config.cjs diff --git a/packages/storybook/.eslintrc.json b/packages/storybook/.eslintrc.json index ecba463..829d8d5 100644 --- a/packages/storybook/.eslintrc.json +++ b/packages/storybook/.eslintrc.json @@ -1,46 +1,55 @@ { "root": true, - "parser": "@typescript-eslint/parser", - "parserOptions": { - "project": "./tsconfig.json", - "sourceType": "module" - }, - "plugins": [ - "@typescript-eslint", - "lit" - ], "extends": [ "eslint:recommended", - "plugin:@typescript-eslint/recommended", "plugin:lit/recommended", - "plugin:storybook/recommended" + "plugin:storybook/recommended", + "plugin:@typescript-eslint/recommended" ], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2020, + "sourceType": "module" + }, + "plugins": ["@typescript-eslint", "lit"], "env": { "browser": true, "es2021": true }, + "globals": { + "process": "readonly" + }, "rules": { + "no-prototype-builtins": "off", + "no-nested-ternary": 2, + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/explicit-function-return-type": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-explicit-any": "error", + "@typescript-eslint/no-empty-function": "off", + "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-unused-vars": [ "warn", { "argsIgnorePattern": "^_" } ], - "@typescript-eslint/no-explicit-any": "error", "lit/no-invalid-html": "error" }, "overrides": [ { - "files": [ - "*.ts" - ], - "rules": { - "@typescript-eslint/explicit-module-boundary-types": "off" + "files": ["*.config.js"], + "env": { + "node": true } }, { "files": [ - "*.js" + "*.js", + "*_test.ts", + "**/custom_typings/*.ts", + "packages/lit-ssr/src/test/integration/tests/**", + "packages/lit-ssr/src/lib/util/parse5-utils.ts" ], "rules": { "@typescript-eslint/no-var-requires": "off" diff --git a/packages/storybook/.prettierrc.json b/packages/storybook/.prettierrc.json index 5afbc84..0c115cd 100644 --- a/packages/storybook/.prettierrc.json +++ b/packages/storybook/.prettierrc.json @@ -1,12 +1,13 @@ { - "arrowParens": "always", + "arrowParens": "avoid", "bracketSpacing": true, - "jsxSingleQuote": true, + "jsxSingleQuote": false, "quoteProps": "consistent", "printWidth": 80, "semi": true, "singleQuote": true, "tabWidth": 2, - "trailingComma": "all", - "useTabs": false + "trailingComma": "es5", + "useTabs": false, + "plugins": ["prettier-plugin-css-order"] } diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 1f4ad0b..04d63d7 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -33,7 +33,11 @@ "clean:modules": "rimraf node_modules", "reset": "yarn clean && yarn install", "restart": "yarn reset && yarn dev", - "postinstall": "patch-package" + "postinstall": "patch-package", + "format": "npm-run-all -s 'format:**'", + "format:code": "eslint --fix . && prettier --write .", + "format:svg": "svgo -f ./src -r --config=svgo.config.cjs", + "fix": "yarn format" }, "keywords": [ "web-components", @@ -61,6 +65,7 @@ "@typescript-eslint/parser": "^5.0.0", "esbuild-decorators": "^1.0.0", "eslint": "^8.56.0", + "eslint-plugin-lit": "^1.11.0", "eslint-plugin-storybook": "^0.8.0", "glob": "^10.3.10", "npm-run-all": "^4.1.5", @@ -72,12 +77,15 @@ "postcss-nested-import": "^1.3.0", "postcss-nesting": "^12.0.2", "postcss-preset-env": "^9.3.0", + "prettier": "^3.2.5", + "prettier-plugin-css-order": "^2.1.2", "react": "^18.2.0", "react-dom": "^18.2.0", "rimraf": "^3.0.2", "rollup-plugin-terser": "^7.0.2", "rsync": "^0.6.1", "storybook": "^7.6.17", + "svgo": "^3.2.0", "ts-lit-plugin": "^2.0.2", "typescript": "^5.3.3", "vite": "^5.1.4", diff --git a/packages/storybook/svgo.config.cjs b/packages/storybook/svgo.config.cjs new file mode 100644 index 0000000..71a2725 --- /dev/null +++ b/packages/storybook/svgo.config.cjs @@ -0,0 +1,30 @@ +module.exports = { + multipass: true, + js2svg: { + indent: 2, // string with spaces or number of spaces. 4 by default + pretty: true, // boolean, false by default + }, + plugins: [ + { + name: 'preset-default', + params: { + overrides: { + cleanupNumericValues: { + floatPrecision: 2, + }, + // disable plugins + // anotherBuiltinPlugin: false, + // addAttributesToSVGElement: false, + // addClassesToSVGElement: false, + // removeElementsByAttr: false, + // removeAttrs: false, + // removeRasterImages: false, + // removeUnusedNS: false, + // removeViewBox: false, + // removeXMLNS: false, + // sortAttrs: false, + }, + }, + }, + ], +}; diff --git a/packages/storybook/tsconfig.json b/packages/storybook/tsconfig.json index 61d5f71..d0d8dca 100644 --- a/packages/storybook/tsconfig.json +++ b/packages/storybook/tsconfig.json @@ -23,6 +23,6 @@ "useDefineForClassFields": false, "esModuleInterop": true }, - "include": ["src/**/*.ts", "node_modules/@phase2/**/*.ts"], + "include": ["src/**/*.ts"], "exclude": ["node_modules"] } From caa8f7df5700470ee99204854601ecde9961811e Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:31:17 -0500 Subject: [PATCH 06/11] Updated svg files --- .../src/stories/assets/accessibility.svg | 9 +++--- .../storybook/src/stories/assets/discord.svg | 28 +++++++++---------- .../storybook/src/stories/assets/github.svg | 4 +-- .../src/stories/assets/tutorials.svg | 22 +++++++-------- .../storybook/src/stories/assets/youtube.svg | 6 ++-- 5 files changed, 34 insertions(+), 35 deletions(-) diff --git a/packages/storybook/src/stories/assets/accessibility.svg b/packages/storybook/src/stories/assets/accessibility.svg index a328883..de7eb48 100644 --- a/packages/storybook/src/stories/assets/accessibility.svg +++ b/packages/storybook/src/stories/assets/accessibility.svg @@ -1,5 +1,4 @@ - - Accessibility - - - \ No newline at end of file + + + + diff --git a/packages/storybook/src/stories/assets/discord.svg b/packages/storybook/src/stories/assets/discord.svg index 1204df9..eb74ae0 100644 --- a/packages/storybook/src/stories/assets/discord.svg +++ b/packages/storybook/src/stories/assets/discord.svg @@ -1,15 +1,15 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/packages/storybook/src/stories/assets/github.svg b/packages/storybook/src/stories/assets/github.svg index 158e026..c6044f8 100644 --- a/packages/storybook/src/stories/assets/github.svg +++ b/packages/storybook/src/stories/assets/github.svg @@ -1,3 +1,3 @@ - - + + diff --git a/packages/storybook/src/stories/assets/tutorials.svg b/packages/storybook/src/stories/assets/tutorials.svg index 4b2fc7c..218cc87 100644 --- a/packages/storybook/src/stories/assets/tutorials.svg +++ b/packages/storybook/src/stories/assets/tutorials.svg @@ -1,12 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + + diff --git a/packages/storybook/src/stories/assets/youtube.svg b/packages/storybook/src/stories/assets/youtube.svg index 33a3a61..a391117 100644 --- a/packages/storybook/src/stories/assets/youtube.svg +++ b/packages/storybook/src/stories/assets/youtube.svg @@ -1,4 +1,4 @@ - - - + + + From 465b0d97a7c9374f3cb0d8f8d55eb9f851f0bfff Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:31:57 -0500 Subject: [PATCH 07/11] Formatted missing stylesheet files --- packages/storybook/outline.theme.css | 31 ++++++++++--------- packages/storybook/public/global.css | 2 +- .../styles/outline-example.encapsulated.css | 2 +- .../styles/outline-example.imported.css | 4 +-- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/packages/storybook/outline.theme.css b/packages/storybook/outline.theme.css index 782b7a8..4d5b2e2 100644 --- a/packages/storybook/outline.theme.css +++ b/packages/storybook/outline.theme.css @@ -10,7 +10,7 @@ --brand-octonary: #525252; --brand-nonary: #1e3a8a; --brand-denary: #171717; - + /* Colors for UI notification messages. */ --status-success: #2f855a; --status-warning: #b64301; @@ -28,7 +28,7 @@ --outline-transparent: transparent; --outline-white: #fff; --outline-black: #000; - + --outline-gray-50: #fafafa; --outline-gray-100: #f5f5f5; --outline-gray-200: #e5e5e5; @@ -200,7 +200,7 @@ --fs-h1: 4rem; --fs-h1-medium: 3rem; --fs-h1-small: 2.5rem; - + --lh-h1: 3rem; --lh-h1-medium: 3.75rem; --lh-h1-small: 2rem; @@ -208,40 +208,39 @@ --fs-h2: 2.75rem; --fs-h2-medium: 2.5rem; --fs-h2-small: 2rem; - + --lh-h2: 3.5rem; --lh-h2-medium: 3rem; --lh-h2-small: 2.5rem; - --fs-h3: 2rem; --fs-h3-medium: 1.75rem; --fs-h3-small: 1.5rem; - + --lh-h3: 2.25rem; --lh-h3-medium: 2rem; --lh-h3-small: 1.75rem; - + --fs-h4: 1.5rem; --fs-h4-medium: 1.5rem; --fs-h4-small: 1.375rem; - + --lh-h4: 2rem; --lh-h4-medium: 1.75rem; --lh-h4-small: 1.75rem; - + --fs-h5: 1.375rem; --fs-h5-medium: 1.25rem; --fs-h5-small: 1.125rem; - + --lh-h5: 1.75rem; --lh-h5-medium: 1.5rem; --lh-h5-small: 1.375rem; - + --fs-h6: 1.125rem; --fs-h6-medium: 1.125rem; --fs-h6-small: 1rem; - + --lh-h6: 1.5rem; --lh-h6-medium: 1.375rem; --lh-h6-small: 1.25rem; @@ -254,8 +253,11 @@ --outline-ring-color: var(--outline-soft-black); --outline-ring-offset-shadow: 0 0 rgba(0, 0, 0, 0); --outline-ring-shadow: 0 0 rgba(0, 0, 0, 0); - --outline-ring-offset-shadow: var(--outline-ring-inset) 0 0 0 var(--outline-ring-offset-width) var(--outline-ring-offset-color); - --outline-ring-shadow: var(--outline-ring-inset) 0 0 0 calc(var(--outline-ring-width) + var(--outline-ring-offset-width)) var(--outline-ring-color); + --outline-ring-offset-shadow: var(--outline-ring-inset) 0 0 0 + var(--outline-ring-offset-width) var(--outline-ring-offset-color); + --outline-ring-shadow: var(--outline-ring-inset) 0 0 0 + calc(var(--outline-ring-width) + var(--outline-ring-offset-width)) + var(--outline-ring-color); --outline-shadow: 0 0 rgba(0, 0, 0, 0); --outline-shadow-colored: 0 0 rgba(0, 0, 0, 0); @@ -263,5 +265,4 @@ /* * Custom variables overriding default variables. */ - } diff --git a/packages/storybook/public/global.css b/packages/storybook/public/global.css index 2a51a08..8a81019 100644 --- a/packages/storybook/public/global.css +++ b/packages/storybook/public/global.css @@ -12,6 +12,6 @@ } body { - font-family: Roboto, sans-serif; font-size: 16px; + font-family: Roboto, sans-serif; } diff --git a/packages/storybook/src/components/shared/outline-example/styles/outline-example.encapsulated.css b/packages/storybook/src/components/shared/outline-example/styles/outline-example.encapsulated.css index 808ad5f..6ea8b14 100644 --- a/packages/storybook/src/components/shared/outline-example/styles/outline-example.encapsulated.css +++ b/packages/storybook/src/components/shared/outline-example/styles/outline-example.encapsulated.css @@ -1,4 +1,4 @@ .encapsulated-container { - padding: 15px; background-color: #f5f5f5; + padding: 15px; } diff --git a/packages/storybook/src/components/shared/outline-example/styles/outline-example.imported.css b/packages/storybook/src/components/shared/outline-example/styles/outline-example.imported.css index 5ce0bb3..fa3d25a 100644 --- a/packages/storybook/src/components/shared/outline-example/styles/outline-example.imported.css +++ b/packages/storybook/src/components/shared/outline-example/styles/outline-example.imported.css @@ -1,9 +1,9 @@ a { + transition: border-color 0.3s ease; + border-bottom: 5px solid red; color: purple; font-weight: bold; text-decoration: none; - border-bottom: 5px solid red; - transition: border-color 0.3s ease; &:hover { border-color: transparent; From e676e3cbfe4a0cdcc260ec003f7773f4a4b75c11 Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:33:17 -0500 Subject: [PATCH 08/11] Improved html indentation --- packages/storybook/index.html | 40 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/packages/storybook/index.html b/packages/storybook/index.html index fb877bd..0a4b1e7 100644 --- a/packages/storybook/index.html +++ b/packages/storybook/index.html @@ -1,19 +1,27 @@ - + + + + + + Component Test Page + + + - - - - - Component Test Page - - - - - -

outline-core-link

-

outline-link

-

Normal a tag link

- - + +

+ + outline-core-link + +

+

+ + outline-link + +

+

+ Normal a tag link +

+ From abfa5fabb5919831ef301862d08c7e1a09030723 Mon Sep 17 00:00:00 2001 From: Joseph Ramos Date: Fri, 12 Apr 2024 18:34:24 -0500 Subject: [PATCH 09/11] Improved configure mdx indentation --- packages/storybook/src/stories/Configure.mdx | 67 +++++++++++--------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/packages/storybook/src/stories/Configure.mdx b/packages/storybook/src/stories/Configure.mdx index ca83c7c..7db4440 100644 --- a/packages/storybook/src/stories/Configure.mdx +++ b/packages/storybook/src/stories/Configure.mdx @@ -1,35 +1,37 @@ -import { Meta } from "@storybook/blocks"; - -import Github from "./assets/github.svg"; -import Discord from "./assets/discord.svg"; -import Youtube from "./assets/youtube.svg"; -import Tutorials from "./assets/tutorials.svg"; -import Styling from "./assets/styling.png"; -import Context from "./assets/context.png"; -import Assets from "./assets/assets.png"; -import Docs from "./assets/docs.png"; -import Share from "./assets/share.png"; -import FigmaPlugin from "./assets/figma-plugin.png"; -import Testing from "./assets/testing.png"; -import Accessibility from "./assets/accessibility.png"; -import Theming from "./assets/theming.png"; -import AddonLibrary from "./assets/addon-library.png"; - -export const RightArrow = () => ( + - - + > + + +); @@ -38,6 +40,7 @@ export const RightArrow = () =>
@@ -84,6 +87,7 @@ export const RightArrow = () =>
@@ -203,6 +207,7 @@ export const RightArrow = () => Discover tutorials
+