diff --git a/.storybook/main.ts b/.storybook/main.ts index e950d8e4..69646925 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -17,13 +17,13 @@ const config: StorybookConfig = { const fileLoaderRules = config.module?.rules?.filter( (rule) => rule !== "..." && - rule.test && + rule && rule.test instanceof RegExp && rule.test.test(".svg") ); fileLoaderRules?.forEach((rule) => { - if (rule !== "...") rule.exclude = /\.svg$/; + if (rule && rule !== "...") rule.exclude = /\.svg$/; }); config.module?.rules?.push({ diff --git a/.storybook/preview.ts b/.storybook/preview.ts index f6c79c17..6037bb54 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -6,7 +6,12 @@ const preview: Preview = { parameters: { backgrounds: { default: "Dark", - values: [{ name: "Dark", value: "#1E1F22" }], + values: [ + { + name: "Dark", + value: "linear-gradient(145.51deg, #06020B -7.4%, #2C1B47 154.79%)", + }, + ], }, actions: { argTypesRegex: "^on[A-Z].*" }, controls: { diff --git a/components/shared/Icon/Icon.tsx b/components/shared/Icon/Icon.tsx index 6a87c458..c0eeb700 100644 --- a/components/shared/Icon/Icon.tsx +++ b/components/shared/Icon/Icon.tsx @@ -14,7 +14,7 @@ type IconProps = { */ const Icon = (props: IconProps) => { const { className, name, ...rest } = props; - const transformClassName = cn(className); + const transformClassName = cn("stroke-primary-100", className); const SvgIcon = name && icons[name]; return ( diff --git a/components/shared/Icon/icons/svgs/arcade.svg b/components/shared/Icon/icons/svgs/arcade.svg index 0ac9621e..8e6cbc2b 100644 --- a/components/shared/Icon/icons/svgs/arcade.svg +++ b/components/shared/Icon/icons/svgs/arcade.svg @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/components/shared/Icon/icons/svgs/archery-match.svg b/components/shared/Icon/icons/svgs/archery-match.svg index 0936a2ee..5c7b52f4 100644 --- a/components/shared/Icon/icons/svgs/archery-match.svg +++ b/components/shared/Icon/icons/svgs/archery-match.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/archery.svg b/components/shared/Icon/icons/svgs/archery.svg index af1a213b..d027c3cc 100644 --- a/components/shared/Icon/icons/svgs/archery.svg +++ b/components/shared/Icon/icons/svgs/archery.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/arrow-left-circle.svg b/components/shared/Icon/icons/svgs/arrow-left-circle.svg index d50504ed..cef1962c 100644 --- a/components/shared/Icon/icons/svgs/arrow-left-circle.svg +++ b/components/shared/Icon/icons/svgs/arrow-left-circle.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/arrow-left.svg b/components/shared/Icon/icons/svgs/arrow-left.svg index 2daf7f9e..7e00cba9 100644 --- a/components/shared/Icon/icons/svgs/arrow-left.svg +++ b/components/shared/Icon/icons/svgs/arrow-left.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/arrow-right-circle.svg b/components/shared/Icon/icons/svgs/arrow-right-circle.svg index 157e62b5..8e7ce11e 100644 --- a/components/shared/Icon/icons/svgs/arrow-right-circle.svg +++ b/components/shared/Icon/icons/svgs/arrow-right-circle.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/arrow-right.svg b/components/shared/Icon/icons/svgs/arrow-right.svg index 119ddd0b..05ba6e59 100644 --- a/components/shared/Icon/icons/svgs/arrow-right.svg +++ b/components/shared/Icon/icons/svgs/arrow-right.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/bounce-right.svg b/components/shared/Icon/icons/svgs/bounce-right.svg index df511650..b4e06605 100644 --- a/components/shared/Icon/icons/svgs/bounce-right.svg +++ b/components/shared/Icon/icons/svgs/bounce-right.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/bright-crown.svg b/components/shared/Icon/icons/svgs/bright-crown.svg index 1328b22d..89a97523 100644 --- a/components/shared/Icon/icons/svgs/bright-crown.svg +++ b/components/shared/Icon/icons/svgs/bright-crown.svg @@ -4,7 +4,7 @@ - + diff --git a/components/shared/Icon/icons/svgs/bright-star.svg b/components/shared/Icon/icons/svgs/bright-star.svg index 42f23ad1..7a7ade4b 100644 --- a/components/shared/Icon/icons/svgs/bright-star.svg +++ b/components/shared/Icon/icons/svgs/bright-star.svg @@ -4,7 +4,7 @@ - + diff --git a/components/shared/Icon/icons/svgs/cellar.svg b/components/shared/Icon/icons/svgs/cellar.svg index 71df1743..81935d2f 100644 --- a/components/shared/Icon/icons/svgs/cellar.svg +++ b/components/shared/Icon/icons/svgs/cellar.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/chat-lines.svg b/components/shared/Icon/icons/svgs/chat-lines.svg index c50ea270..7238253e 100644 --- a/components/shared/Icon/icons/svgs/chat-lines.svg +++ b/components/shared/Icon/icons/svgs/chat-lines.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/chess-rook.svg b/components/shared/Icon/icons/svgs/chess-rook.svg index b4684833..f1a9d731 100644 --- a/components/shared/Icon/icons/svgs/chess-rook.svg +++ b/components/shared/Icon/icons/svgs/chess-rook.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/collectbook.svg b/components/shared/Icon/icons/svgs/collectbook.svg index 3816d799..4ade3e06 100644 --- a/components/shared/Icon/icons/svgs/collectbook.svg +++ b/components/shared/Icon/icons/svgs/collectbook.svg @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/components/shared/Icon/icons/svgs/community.svg b/components/shared/Icon/icons/svgs/community.svg index 82579c93..2997f7b4 100644 --- a/components/shared/Icon/icons/svgs/community.svg +++ b/components/shared/Icon/icons/svgs/community.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/crown.svg b/components/shared/Icon/icons/svgs/crown.svg index ab929599..9ae1a1e9 100644 --- a/components/shared/Icon/icons/svgs/crown.svg +++ b/components/shared/Icon/icons/svgs/crown.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/droplet.svg b/components/shared/Icon/icons/svgs/droplet.svg index e3de7ee0..74666767 100644 --- a/components/shared/Icon/icons/svgs/droplet.svg +++ b/components/shared/Icon/icons/svgs/droplet.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/edit-pencil.svg b/components/shared/Icon/icons/svgs/edit-pencil.svg index adad5e8e..d2688598 100644 --- a/components/shared/Icon/icons/svgs/edit-pencil.svg +++ b/components/shared/Icon/icons/svgs/edit-pencil.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/edit.svg b/components/shared/Icon/icons/svgs/edit.svg index 14e41c65..680bf061 100644 --- a/components/shared/Icon/icons/svgs/edit.svg +++ b/components/shared/Icon/icons/svgs/edit.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/emoji.svg b/components/shared/Icon/icons/svgs/emoji.svg index 617e3ccf..8921b36d 100644 --- a/components/shared/Icon/icons/svgs/emoji.svg +++ b/components/shared/Icon/icons/svgs/emoji.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/components/shared/Icon/icons/svgs/explore.svg b/components/shared/Icon/icons/svgs/explore.svg index 6a399133..067e96f5 100644 --- a/components/shared/Icon/icons/svgs/explore.svg +++ b/components/shared/Icon/icons/svgs/explore.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/components/shared/Icon/icons/svgs/gamepad-simple.svg b/components/shared/Icon/icons/svgs/gamepad-simple.svg index 04425800..1011e31e 100644 --- a/components/shared/Icon/icons/svgs/gamepad-simple.svg +++ b/components/shared/Icon/icons/svgs/gamepad-simple.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/gamepad.svg b/components/shared/Icon/icons/svgs/gamepad.svg index 8f0a6a81..8a12ef7f 100644 --- a/components/shared/Icon/icons/svgs/gamepad.svg +++ b/components/shared/Icon/icons/svgs/gamepad.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/globe.svg b/components/shared/Icon/icons/svgs/globe.svg index 2f77b7fd..2cf1d099 100644 --- a/components/shared/Icon/icons/svgs/globe.svg +++ b/components/shared/Icon/icons/svgs/globe.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/heart.svg b/components/shared/Icon/icons/svgs/heart.svg index 16c22eaa..3d069cfc 100644 --- a/components/shared/Icon/icons/svgs/heart.svg +++ b/components/shared/Icon/icons/svgs/heart.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/home.svg b/components/shared/Icon/icons/svgs/home.svg index d4db419d..008bfa49 100644 --- a/components/shared/Icon/icons/svgs/home.svg +++ b/components/shared/Icon/icons/svgs/home.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/hot-air-balloon.svg b/components/shared/Icon/icons/svgs/hot-air-balloon.svg index cdead25c..ace05b3a 100644 --- a/components/shared/Icon/icons/svgs/hot-air-balloon.svg +++ b/components/shared/Icon/icons/svgs/hot-air-balloon.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/components/shared/Icon/icons/svgs/label.svg b/components/shared/Icon/icons/svgs/label.svg index 5698d99c..5638ec16 100644 --- a/components/shared/Icon/icons/svgs/label.svg +++ b/components/shared/Icon/icons/svgs/label.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/layout.svg b/components/shared/Icon/icons/svgs/layout.svg index b87c5009..e5b2d189 100644 --- a/components/shared/Icon/icons/svgs/layout.svg +++ b/components/shared/Icon/icons/svgs/layout.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/leaderboard.svg b/components/shared/Icon/icons/svgs/leaderboard.svg index 51529628..a8dfa5d8 100644 --- a/components/shared/Icon/icons/svgs/leaderboard.svg +++ b/components/shared/Icon/icons/svgs/leaderboard.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/lens.svg b/components/shared/Icon/icons/svgs/lens.svg index 29023367..4db5a1af 100644 --- a/components/shared/Icon/icons/svgs/lens.svg +++ b/components/shared/Icon/icons/svgs/lens.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/nav-arrow-right.svg b/components/shared/Icon/icons/svgs/nav-arrow-right.svg index 78d29470..44cd88d4 100644 --- a/components/shared/Icon/icons/svgs/nav-arrow-right.svg +++ b/components/shared/Icon/icons/svgs/nav-arrow-right.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/neighbourhood.svg b/components/shared/Icon/icons/svgs/neighbourhood.svg index f4a32ccb..0888aa3a 100644 --- a/components/shared/Icon/icons/svgs/neighbourhood.svg +++ b/components/shared/Icon/icons/svgs/neighbourhood.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/page-left.svg b/components/shared/Icon/icons/svgs/page-left.svg index 79c6325f..9910ff48 100644 --- a/components/shared/Icon/icons/svgs/page-left.svg +++ b/components/shared/Icon/icons/svgs/page-left.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/page-right.svg b/components/shared/Icon/icons/svgs/page-right.svg index 1c0a5b4b..5f64ab35 100644 --- a/components/shared/Icon/icons/svgs/page-right.svg +++ b/components/shared/Icon/icons/svgs/page-right.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/planimetry.svg b/components/shared/Icon/icons/svgs/planimetry.svg index bdc0344c..d4b66304 100644 --- a/components/shared/Icon/icons/svgs/planimetry.svg +++ b/components/shared/Icon/icons/svgs/planimetry.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/play.svg b/components/shared/Icon/icons/svgs/play.svg index 0dbb253d..ac9c3099 100644 --- a/components/shared/Icon/icons/svgs/play.svg +++ b/components/shared/Icon/icons/svgs/play.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/player.svg b/components/shared/Icon/icons/svgs/player.svg index ed5bf727..b5623439 100644 --- a/components/shared/Icon/icons/svgs/player.svg +++ b/components/shared/Icon/icons/svgs/player.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/players.svg b/components/shared/Icon/icons/svgs/players.svg index b887e1cb..ed11bc41 100644 --- a/components/shared/Icon/icons/svgs/players.svg +++ b/components/shared/Icon/icons/svgs/players.svg @@ -1,5 +1,5 @@ - - - + + + diff --git a/components/shared/Icon/icons/svgs/search.svg b/components/shared/Icon/icons/svgs/search.svg index 4a4d2f20..13c8672f 100644 --- a/components/shared/Icon/icons/svgs/search.svg +++ b/components/shared/Icon/icons/svgs/search.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/send-diagonal.svg b/components/shared/Icon/icons/svgs/send-diagonal.svg index e6375d67..4b901a59 100644 --- a/components/shared/Icon/icons/svgs/send-diagonal.svg +++ b/components/shared/Icon/icons/svgs/send-diagonal.svg @@ -4,7 +4,7 @@ - + diff --git a/components/shared/Icon/icons/svgs/sleeper-chair.svg b/components/shared/Icon/icons/svgs/sleeper-chair.svg index 74275613..2eed7eb4 100644 --- a/components/shared/Icon/icons/svgs/sleeper-chair.svg +++ b/components/shared/Icon/icons/svgs/sleeper-chair.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/spiral.svg b/components/shared/Icon/icons/svgs/spiral.svg index 2cf4c2ff..db6bb11a 100644 --- a/components/shared/Icon/icons/svgs/spiral.svg +++ b/components/shared/Icon/icons/svgs/spiral.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/star-dashed.svg b/components/shared/Icon/icons/svgs/star-dashed.svg index 004562d0..42111d21 100644 --- a/components/shared/Icon/icons/svgs/star-dashed.svg +++ b/components/shared/Icon/icons/svgs/star-dashed.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/star-half-dashed.svg b/components/shared/Icon/icons/svgs/star-half-dashed.svg index 7a7715a4..a06412da 100644 --- a/components/shared/Icon/icons/svgs/star-half-dashed.svg +++ b/components/shared/Icon/icons/svgs/star-half-dashed.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/star.svg b/components/shared/Icon/icons/svgs/star.svg index 9d76e81e..ce3facca 100644 --- a/components/shared/Icon/icons/svgs/star.svg +++ b/components/shared/Icon/icons/svgs/star.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/tower.svg b/components/shared/Icon/icons/svgs/tower.svg index de3a211a..3a92c57c 100644 --- a/components/shared/Icon/icons/svgs/tower.svg +++ b/components/shared/Icon/icons/svgs/tower.svg @@ -1,3 +1,3 @@ - + diff --git a/components/shared/Icon/icons/svgs/trophy.svg b/components/shared/Icon/icons/svgs/trophy.svg index d505fc12..f649cd24 100644 --- a/components/shared/Icon/icons/svgs/trophy.svg +++ b/components/shared/Icon/icons/svgs/trophy.svg @@ -1,4 +1,4 @@ - - + + diff --git a/components/shared/Icon/icons/svgs/tunnel.svg b/components/shared/Icon/icons/svgs/tunnel.svg index b2fea578..36a49943 100644 --- a/components/shared/Icon/icons/svgs/tunnel.svg +++ b/components/shared/Icon/icons/svgs/tunnel.svg @@ -1,5 +1,5 @@ - - - + + +