-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create stepper component (#57)
* feat: create stepper component Close #53 #55 #56 * remove react-stepper and add missing translations
- Loading branch information
1 parent
6e34064
commit 10bac6a
Showing
346 changed files
with
4,508 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import path, { dirname, join } from "node:path"; | ||
import type { StorybookConfig } from "@storybook/nextjs"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"], | ||
staticDirs: ["../public"], | ||
addons: [ | ||
getAbsolutePath("@storybook/addon-a11y"), | ||
getAbsolutePath("@storybook/addon-essentials"), | ||
getAbsolutePath("@storybook/addon-links"), | ||
getAbsolutePath("storybook-dark-mode"), | ||
{ | ||
name: "storybook-addon-module-mock", | ||
options: { | ||
exclude: ["**/node_modules/@mui/**"] | ||
} | ||
} | ||
], | ||
framework: { | ||
name: "@storybook/nextjs", | ||
options: { | ||
nextConfigPath: "../next.config.js", | ||
builder: { | ||
fsCache: true | ||
} | ||
} | ||
}, | ||
core: { | ||
disableTelemetry: true | ||
}, | ||
features: { | ||
experimentalRSC: true | ||
}, | ||
typescript: { | ||
reactDocgen: false | ||
}, | ||
webpack(baseConfig) { | ||
baseConfig.resolve = { | ||
...(baseConfig.resolve ?? {}), | ||
alias: { | ||
...(baseConfig.resolve?.alias ?? {}), | ||
"@lingui/macro": path.resolve(__dirname, "../__mocks__/@lingui/macro.ts"), | ||
"~/storybook/*": path.resolve(__dirname, "./*"), | ||
"@opentelemetry/api": "next/dist/compiled/@opentelemetry/api" | ||
} | ||
}; | ||
return baseConfig; | ||
} | ||
}; | ||
|
||
function getAbsolutePath(value: string) { | ||
return dirname(require.resolve(join(value, "package.json"))); | ||
} | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { INITIAL_VIEWPORTS } from "@storybook/addon-viewport"; | ||
import type { Preview } from "@storybook/react"; | ||
import ApplicationProvider from "../src/core/ApplicationProvider"; | ||
import { AVAILABLE_LOCALES } from "../src/core/locale"; | ||
import "~/app/[locale]/globals.css"; | ||
import { Inter } from "next/font/google"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
const decorators: Preview["decorators"] = [ | ||
(Story, { globals: { locale } }) => { | ||
return ( | ||
<div lang={locale} dir="ltr" className={inter.className}> | ||
<ApplicationProvider locale={locale}> | ||
<Story /> | ||
</ApplicationProvider> | ||
</div> | ||
); | ||
} | ||
]; | ||
|
||
const parameters: Preview["parameters"] = { | ||
nextjs: { | ||
appDirectory: true | ||
}, | ||
layout: "fullscreen", | ||
actions: { argTypesRegex: "^on[A-Z].*" }, | ||
options: { | ||
storySort: { | ||
method: "alphabetical", | ||
order: ["Components"] | ||
} | ||
}, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/ | ||
} | ||
}, | ||
backgrounds: { | ||
default: "White", | ||
values: [ | ||
{ | ||
name: "dark", | ||
value: "black" | ||
}, | ||
{ | ||
name: "Cream", | ||
value: "white" | ||
}, | ||
{ | ||
name: "Cream dark", | ||
value: "white" | ||
} | ||
] | ||
}, | ||
viewport: { viewports: INITIAL_VIEWPORTS, defaultViewport: "desktop" } | ||
}; | ||
|
||
export const globalTypes: Preview["globalTypes"] = { | ||
locale: { | ||
toolbar: { | ||
icon: "globe", | ||
items: [ | ||
{ value: AVAILABLE_LOCALES.en, right: "🇺🇸", title: "English" }, | ||
{ value: AVAILABLE_LOCALES.fr, right: "🇫🇷", title: "French" } | ||
] | ||
}, | ||
name: "Locale", | ||
description: "Internationalization locale", | ||
defaultValue: AVAILABLE_LOCALES.en | ||
} | ||
}; | ||
|
||
const preview: Preview = { | ||
parameters, | ||
decorators, | ||
globalTypes | ||
}; | ||
|
||
export default preview; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+45.5 KB
.yarn/cache/@babel-helper-module-transforms-npm-7.26.0-7557a3558f-942eee3adf.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.69 KB
.yarn/cache/@babel-plugin-syntax-dynamic-import-npm-7.8.3-fb9ff5634a-ce307af83c.zip
Binary file not shown.
Binary file added
BIN
+4.21 KB
.yarn/cache/@babel-plugin-syntax-import-assertions-npm-7.26.0-6c9b84570c-b58f2306df.zip
Binary file not shown.
Binary file added
BIN
+4.37 KB
.yarn/cache/@babel-plugin-syntax-import-attributes-npm-7.26.0-7a281ed168-c122aa5771.zip
Binary file not shown.
Binary file added
BIN
+5.78 KB
.yarn/cache/@babel-plugin-transform-class-static-block-npm-7.26.0-b277b54abb-d779d4d3a6.zip
Binary file not shown.
Binary file added
BIN
+3.69 KB
.yarn/cache/@babel-plugin-transform-regexp-modifiers-npm-7.26.0-6c405fb13f-726deca486.zip
Binary file not shown.
Binary file added
BIN
+18.7 KB
.yarn/cache/@babel-plugin-transform-runtime-npm-7.25.9-4f4b0f8e6b-db7f20a7a7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.41 KB
.yarn/cache/@base2-pretty-print-object-npm-1.0.1-e7e95cfd98-1e8a5af578.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+61.4 KB
.yarn/cache/@pmmmwh-react-refresh-webpack-plugin-npm-0.5.15-24f84a5aff-82df624414.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.1 KB
.yarn/cache/@storybook-addon-actions-npm-8.3.6-ca9af8bd2f-3a66329749.zip
Binary file not shown.
Binary file added
BIN
+10.4 KB
.yarn/cache/@storybook-addon-backgrounds-npm-8.3.6-bf56410e32-91a8154142.zip
Binary file not shown.
Binary file added
BIN
+68 KB
.yarn/cache/@storybook-addon-controls-npm-8.3.6-f32ab52cf9-29eb23a769.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+17.5 KB
.yarn/cache/@storybook-addon-essentials-npm-8.3.6-7f3b983a3f-4b15ece665.zip
Binary file not shown.
Binary file added
BIN
+5.68 KB
.yarn/cache/@storybook-addon-highlight-npm-8.3.6-92ded1f4bc-f8ca6d3d66.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.9 KB
.yarn/cache/@storybook-addon-measure-npm-8.3.6-30627c1ace-1c12baf968.zip
Binary file not shown.
Binary file added
BIN
+8 KB
.yarn/cache/@storybook-addon-outline-npm-8.3.6-3243e6c2b7-eb3610cd18.zip
Binary file not shown.
Binary file added
BIN
+5.29 KB
.yarn/cache/@storybook-addon-toolbars-npm-8.3.6-dbd4c18d6d-843730ab01.zip
Binary file not shown.
Binary file added
BIN
+8.48 KB
.yarn/cache/@storybook-addon-viewport-npm-8.3.6-b1312d1a14-b4cfe34ddc.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+21 KB
.yarn/cache/@storybook-builder-webpack5-npm-8.3.6-680047193b-3bdd4bcb8b.zip
Binary file not shown.
Binary file added
BIN
+1.58 KB
.yarn/cache/@storybook-components-npm-8.3.6-f9cb06ac5d-778a114ddb.zip
Binary file not shown.
Binary file added
BIN
+4.5 KB
.yarn/cache/@storybook-core-events-npm-8.3.6-82f4bfca7f-bcf7a0f86c.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.77 KB
.yarn/cache/@storybook-core-webpack-npm-8.3.6-65278209ff-a2fa763de9.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.59 KB
.yarn/cache/@storybook-csf-plugin-npm-8.3.6-0597d53d3d-08cd3f8563.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+56.7 KB
.yarn/cache/@storybook-instrumenter-npm-8.3.6-b51f29e34f-4e6fe75ce1.zip
Binary file not shown.
Binary file added
BIN
+1.59 KB
.yarn/cache/@storybook-manager-api-npm-8.3.6-b5df22e56e-94faf62726.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.1 KB
.yarn/cache/@storybook-preset-react-webpack-npm-8.3.6-a3cfbf7f92-8b43e2c508.zip
Binary file not shown.
Binary file added
BIN
+1.59 KB
.yarn/cache/@storybook-preview-api-npm-8.3.6-6171b600ce-5a645dc193.zip
Binary file not shown.
Binary file added
BIN
+25.6 KB
...ok-react-docgen-typescript-plugin-npm-1.0.6--canary.9.0c3f3b7.0-f07bfca845-38c59c1dd7.zip
Binary file not shown.
Binary file added
BIN
+6.54 KB
.yarn/cache/@storybook-react-dom-shim-npm-8.3.6-e489fb8e66-4d65deef18.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+67.4 KB
.yarn/cache/@testing-library-jest-dom-npm-6.5.0-fa5d3458cd-c2d14103eb.zip
Binary file not shown.
Binary file added
BIN
+212 KB
.yarn/cache/@testing-library-user-event-npm-14.5.2-ec9587901c-d76937dffc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.1 KB
.yarn/cache/@types-express-serve-static-core-npm-4.19.6-cc0017aaf4-b0576eddc2.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.29 KB
.yarn/cache/@types-html-minifier-terser-npm-6.1.0-707ea07fcb-eb843f6a8d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+13.9 KB
.yarn/cache/@ungap-structured-clone-npm-1.2.0-648f0b82e0-4f656b7b46.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.8 KB
.yarn/cache/@vitest-pretty-format-npm-2.0.5-73dd679ebd-d603460011.zip
Binary file not shown.
Binary file added
BIN
+11.8 KB
.yarn/cache/@vitest-pretty-format-npm-2.1.3-ea36ba97d6-ff4aa144a4.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+25 KB
.yarn/cache/adjust-sourcemap-loader-npm-4.0.0-c8b560af8c-d524ae2358.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10 KB
.yarn/cache/case-sensitive-paths-webpack-plugin-npm-2.4.0-b4f3c3a8be-bcf469446e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+96.4 KB
.yarn/cache/dom-accessibility-api-npm-0.6.3-0345e4dede-c325b5144b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+108 KB
.yarn/cache/fork-ts-checker-webpack-plugin-npm-8.0.0-3888b57a08-aad4cbc5b8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.38 KB
.yarn/cache/hast-util-heading-rank-npm-3.0.0-13dfda4ac8-e5ce4ec9e8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+12.6 KB
.yarn/cache/is-generator-function-npm-1.0.10-1d0f3809ef-d54644e7db.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+89 KB
.yarn/cache/jsdoc-type-pratt-parser-npm-4.1.0-6f90ea9fa7-e7642a508b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.78 KB
.yarn/cache/minimalistic-crypto-utils-npm-1.0.1-e66b10822e-6e8a0422b3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.33 KB
.yarn/cache/node-abort-controller-npm-3.1.1-e246ed42cd-2c340916af.zip
Binary file not shown.
Binary file added
BIN
+4.38 KB
.yarn/cache/node-polyfill-webpack-plugin-npm-2.0.1-2db872c666-0efb27ba22.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.19 KB
.yarn/cache/postcss-modules-extract-imports-npm-3.1.0-501aab09e8-b9192e0f4f.zip
Binary file not shown.
Binary file added
BIN
+7.33 KB
.yarn/cache/postcss-modules-local-by-default-npm-4.0.5-1a623b43f9-ca9b01f4a0.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+4.84 KB
.yarn/cache/postcss-modules-values-npm-4.0.0-63d7ec543a-f7f2cdf14a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+54.5 KB
.yarn/cache/react-base16-styling-npm-0.10.0-d76072ecbc-7cc8f1e305.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+58.7 KB
.yarn/cache/react-docgen-typescript-npm-2.2.2-afb9698a32-a9826459ea.zip
Binary file not shown.
Binary file added
BIN
+65.8 KB
.yarn/cache/react-element-to-jsx-string-npm-15.0.0-54fc35db27-c3907cc4c1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+9.42 KB
.yarn/cache/rehype-external-links-npm-3.0.0-1652b48ebe-f776f306a2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.