This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
29 changed files
with
6,857 additions
and
4,321 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,7 @@ thumbs.db | |
_env.scss | ||
|
||
# changelog file | ||
whats-new.txt | ||
whats-new.txt | ||
|
||
# tamagui | ||
**/.tamagui/* |
449 changes: 225 additions & 224 deletions
449
.yarn/releases/yarn-3.5.1.cjs → .yarn/releases/yarn-3.6.1.cjs
Large diffs are not rendered by default.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public-storybook/ |
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,30 @@ | ||
import {TamaguiProvider, Theme, ThemeName, YStack} from "@mintter/ui"; | ||
import {Decorator} from "@storybook/react"; | ||
import React from "react"; | ||
import config from "../tamagui.config"; | ||
|
||
export const StorybookDecorator: Decorator = (Story, args: any) => { | ||
const { | ||
theme1, | ||
theme2, | ||
theme3, | ||
theme4, | ||
// inverseTheme | ||
} = args.globals; | ||
const themeName = | ||
[theme2, theme3, theme4].filter((theme) => !!theme).join("_") || null; | ||
|
||
return ( | ||
// <UniversalThemeProvider> | ||
<TamaguiProvider config={config} defaultTheme={theme1}> | ||
{/* <ToastProvider> */} | ||
<YStack backgroundColor="$background" padding="$4" f={1}> | ||
<Theme forceClassName name={themeName as ThemeName}> | ||
<Story /> | ||
</Theme> | ||
</YStack> | ||
{/* </ToastProvider> */} | ||
</TamaguiProvider> | ||
// </UniversalThemeProvider> | ||
); | ||
}; |
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,53 @@ | ||
import {StorybookConfig} from "@storybook/nextjs"; | ||
import path from "path"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ["../../../packages/ui/**/*.stories.@(ts|tsx|mdx)"], | ||
features: { | ||
storyStoreV7: false, | ||
}, | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
{ | ||
name: "@storybook/addon-react-native-web", | ||
options: { | ||
modulesToTranspile: [ | ||
// "solito", | ||
// "expo-linking", | ||
// "expo-constants", | ||
// "expo-modules-core", | ||
// "expo-document-picker", | ||
// "expo-av", | ||
// "expo-asset", | ||
], | ||
}, | ||
}, | ||
], | ||
framework: { | ||
name: path.resolve(require.resolve("@storybook/nextjs/preset"), ".."), | ||
options: { | ||
builder: { | ||
useSWC: true, | ||
}, | ||
}, | ||
}, | ||
core: { | ||
builder: { | ||
name: "@storybook/builder-webpack5", | ||
options: { | ||
fsCache: true, | ||
lazyCompilation: true, | ||
}, | ||
}, | ||
}, | ||
env: (config) => ({ | ||
...config, | ||
// TAMAGUI_TARGET: "web", | ||
}), | ||
docs: { | ||
autodocs: true, | ||
}, | ||
}; | ||
export default config; |
Oops, something went wrong.