-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b61c7b
commit 5c5e826
Showing
94 changed files
with
185 additions
and
219 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file removed
0
packages/elements-react-stories/src/elements-react/components/login/2fa/.gitkeep
Empty file.
Empty file.
Empty file removed
0
packages/elements-react-stories/src/elements-react/components/recovery/.gitkeep
Empty file.
Empty file removed
0
packages/elements-react-stories/src/elements-react/components/settings/.gitkeep
Empty file.
Empty file removed
0
packages/elements-react-stories/src/elements-react/components/verification/.gitkeep
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,51 @@ | ||
// Copyright © 2024 Ory Corp | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import type { StorybookConfig } from "@storybook/react-vite" | ||
|
||
import path from "path" | ||
import { mergeConfig } from "vite" | ||
import vitePluginRequire from "vite-plugin-require" | ||
import svgr from "vite-plugin-svgr" | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../**/*.stories.@(ts|tsx)"], | ||
addons: ["@storybook/addon-essentials", "@storybook/addon-interactions"], | ||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
staticDirs: ["./public"], | ||
|
||
viteFinal: (config) => { | ||
console.log(path.resolve(__dirname, "../src")) | ||
return mergeConfig(config, { | ||
plugins: [vitePluginRequire(), svgr({ include: "**/*.svg" })], | ||
build: { | ||
rollupOptions: { | ||
onwarn(warning, warn) { | ||
// Suppress "Module level directives cause errors when bundled" warnings | ||
if (warning.code === "MODULE_LEVEL_DIRECTIVE") { | ||
return | ||
} | ||
warn(warning) | ||
}, | ||
}, | ||
}, | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: "$snapshots", | ||
replacement: path.resolve(__dirname, "../.stub-responses"), | ||
}, | ||
{ | ||
find: "@ory/elements-react", | ||
replacement: path.resolve(__dirname, "../src"), | ||
}, | ||
], | ||
}, | ||
}) | ||
}, | ||
} | ||
|
||
export default config |
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...ents-react-stories/.storybook/preview.tsx → ...ges/elements-react/.storybook/preview.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
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
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
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
Oops, something went wrong.