From 680259b70ac7ed49cfdd4f2fb5449b4bb678dfb3 Mon Sep 17 00:00:00 2001 From: Xaviju Date: Thu, 16 May 2024 14:03:55 +0200 Subject: [PATCH] Update --- frontend/.storybook/preview.js | 2 +- .../ui/components/avatar/avatar.stories.jsx | 7 +- frontend/yarn.lock | 110 +++++++++++++++++- 3 files changed, 111 insertions(+), 8 deletions(-) diff --git a/frontend/.storybook/preview.js b/frontend/.storybook/preview.js index df91524cb..e7e557bd3 100644 --- a/frontend/.storybook/preview.js +++ b/frontend/.storybook/preview.js @@ -1,4 +1,4 @@ -import "../resources/styles/storybook.scss"; +import "../resources/styles/main-default.scss"; /** @type { import('@storybook/react').Preview } */ const preview = { diff --git a/frontend/src/app/main/ui/components/avatar/avatar.stories.jsx b/frontend/src/app/main/ui/components/avatar/avatar.stories.jsx index 1c071ce2d..95bec5e73 100644 --- a/frontend/src/app/main/ui/components/avatar/avatar.stories.jsx +++ b/frontend/src/app/main/ui/components/avatar/avatar.stories.jsx @@ -1,9 +1,6 @@ import * as React from "react"; import Components from "@target/components"; -// export default { -// title: "Components/Avatar", -// }; export default { title: "Components/Avatar", @@ -28,9 +25,7 @@ export default { }, color: { description: "Avatar default color", - control: "range", - min: 1, - max: 9, + control: { type: "range", min: 1, max: 9, step: 1 }, }, }, }; diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 63b549a05..ece8ad589 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1510,7 +1510,7 @@ __metadata: languageName: node linkType: hard -"@emotion/use-insertion-effect-with-fallbacks@npm:^1.0.0": +"@emotion/use-insertion-effect-with-fallbacks@npm:^1.0.0, @emotion/use-insertion-effect-with-fallbacks@npm:^1.0.1": version: 1.0.1 resolution: "@emotion/use-insertion-effect-with-fallbacks@npm:1.0.1" peerDependencies: @@ -3256,6 +3256,19 @@ __metadata: languageName: node linkType: hard +"@storybook/channels@npm:8.0.8": + version: 8.0.8 + resolution: "@storybook/channels@npm:8.0.8" + dependencies: + "@storybook/client-logger": "npm:8.0.8" + "@storybook/core-events": "npm:8.0.8" + "@storybook/global": "npm:^5.0.0" + telejson: "npm:^7.2.0" + tiny-invariant: "npm:^1.3.1" + checksum: 20660a30165b380fe29defea4f08082976ca928ebf006f02132ad47904142a4c0db1d1d036385c5d47db57fc125fc0d52eb719b9793f004992c2ebf5f1b0a4bd + languageName: node + linkType: hard + "@storybook/cli@npm:7.6.17": version: 7.6.17 resolution: "@storybook/cli@npm:7.6.17" @@ -3325,6 +3338,15 @@ __metadata: languageName: node linkType: hard +"@storybook/client-logger@npm:8.0.8": + version: 8.0.8 + resolution: "@storybook/client-logger@npm:8.0.8" + dependencies: + "@storybook/global": "npm:^5.0.0" + checksum: 96fdc256c1167b6fd800204406a33dcef730c3311d26a20945cd989d886617948caccfe432a358e5baca8400a5989e39ba977f707393e119af169e6f2efe4005 + languageName: node + linkType: hard + "@storybook/codemod@npm:7.6.17": version: 7.6.17 resolution: "@storybook/codemod@npm:7.6.17" @@ -3458,6 +3480,15 @@ __metadata: languageName: node linkType: hard +"@storybook/core-events@npm:8.0.8": + version: 8.0.8 + resolution: "@storybook/core-events@npm:8.0.8" + dependencies: + ts-dedent: "npm:^2.0.0" + checksum: 9325985e9f3447103945d84259e2d1b44ac9e0ba1d45d63a47c251c579d2d07692631645f2db5636a80c691a613ff40168e588b8301bdb0c4ba5253ddbe9f9b8 + languageName: node + linkType: hard + "@storybook/core-server@npm:7.6.17": version: 7.6.17 resolution: "@storybook/core-server@npm:7.6.17" @@ -3589,6 +3620,16 @@ __metadata: languageName: node linkType: hard +"@storybook/icons@npm:^1.2.5": + version: 1.2.9 + resolution: "@storybook/icons@npm:1.2.9" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + checksum: 37513dbf526bf827941ee274e0f8358c6db41c963ffd0c408a674d794fa9af8d835e0dc4e58fd589106c4f33da5552aa8315ae45745f0c107ade0f6299cbf710 + languageName: node + linkType: hard + "@storybook/manager-api@npm:7.6.17": version: 7.6.17 resolution: "@storybook/manager-api@npm:7.6.17" @@ -3611,6 +3652,29 @@ __metadata: languageName: node linkType: hard +"@storybook/manager-api@npm:^8.0.6": + version: 8.0.8 + resolution: "@storybook/manager-api@npm:8.0.8" + dependencies: + "@storybook/channels": "npm:8.0.8" + "@storybook/client-logger": "npm:8.0.8" + "@storybook/core-events": "npm:8.0.8" + "@storybook/csf": "npm:^0.1.2" + "@storybook/global": "npm:^5.0.0" + "@storybook/icons": "npm:^1.2.5" + "@storybook/router": "npm:8.0.8" + "@storybook/theming": "npm:8.0.8" + "@storybook/types": "npm:8.0.8" + dequal: "npm:^2.0.2" + lodash: "npm:^4.17.21" + memoizerific: "npm:^1.11.3" + store2: "npm:^2.14.2" + telejson: "npm:^7.2.0" + ts-dedent: "npm:^2.0.0" + checksum: a55d73b4378e03c8aeebd6c0256982c43a0bdf8419b70c553eefb58f769011d3add8e87031113e97494068d2e49e59d95f6f3255c8675e672fba0ae13ebc8d4b + languageName: node + linkType: hard + "@storybook/manager@npm:7.6.17": version: 7.6.17 resolution: "@storybook/manager@npm:7.6.17" @@ -3751,6 +3815,17 @@ __metadata: languageName: node linkType: hard +"@storybook/router@npm:8.0.8": + version: 8.0.8 + resolution: "@storybook/router@npm:8.0.8" + dependencies: + "@storybook/client-logger": "npm:8.0.8" + memoizerific: "npm:^1.11.3" + qs: "npm:^6.10.0" + checksum: cc3c4de5992fb961cab17d9b1bc184b9c1fe730ff9ea4d4aebbbf188721ab7b59b4e3ac5be23fe19c8811a5d8d9df076d4a1310ec87182e42c241553d58cf27d + languageName: node + linkType: hard + "@storybook/telemetry@npm:7.6.17": version: 7.6.17 resolution: "@storybook/telemetry@npm:7.6.17" @@ -3809,6 +3884,26 @@ __metadata: languageName: node linkType: hard +"@storybook/theming@npm:8.0.8, @storybook/theming@npm:^8.0.6": + version: 8.0.8 + resolution: "@storybook/theming@npm:8.0.8" + dependencies: + "@emotion/use-insertion-effect-with-fallbacks": "npm:^1.0.1" + "@storybook/client-logger": "npm:8.0.8" + "@storybook/global": "npm:^5.0.0" + memoizerific: "npm:^1.11.3" + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + peerDependenciesMeta: + react: + optional: true + react-dom: + optional: true + checksum: 64986b28cd2b72510d2ae6fc1d139fb221cde642cc5e4a8123e1410bf6132e689c581a166a60a3e1d6b42c39dfaa2fc117a41f7e3996e56e4101d1e41a4eccc7 + languageName: node + linkType: hard + "@storybook/types@npm:7.6.17": version: 7.6.17 resolution: "@storybook/types@npm:7.6.17" @@ -3833,6 +3928,17 @@ __metadata: languageName: node linkType: hard +"@storybook/types@npm:8.0.8": + version: 8.0.8 + resolution: "@storybook/types@npm:8.0.8" + dependencies: + "@storybook/channels": "npm:8.0.8" + "@types/express": "npm:^4.7.0" + file-system-cache: "npm:2.3.0" + checksum: ec1c70d72473d1a8b11281d7ea0b55580b0810e0173ce77b71d838766b60a0e28427e964172d88e88bb7794a498afc65451bc7a16b3a908361c16169d8f67f8e + languageName: node + linkType: hard + "@testing-library/dom@npm:^9.0.0": version: 9.3.3 resolution: "@testing-library/dom@npm:9.3.3" @@ -8008,9 +8114,11 @@ __metadata: "@storybook/addon-links": "npm:^7.6.17" "@storybook/addon-onboarding": "npm:^1.0.11" "@storybook/blocks": "npm:^7.6.17" + "@storybook/manager-api": "npm:^8.0.6" "@storybook/react": "npm:^7.6.17" "@storybook/react-vite": "npm:^7.6.17" "@storybook/testing-library": "npm:^0.2.2" + "@storybook/theming": "npm:^8.0.6" "@types/node": "npm:^20.11.20" animate.css: "npm:^4.1.1" autoprefixer: "npm:^10.4.17"