Skip to content

Commit

Permalink
Merge pull request #73 from globalfund/v3
Browse files Browse the repository at this point in the history
V3
  • Loading branch information
stephanoshadjipetrou authored Jul 15, 2024
2 parents 271e6b6 + e9a41f7 commit 9c7c004
Show file tree
Hide file tree
Showing 587 changed files with 51,871 additions and 88,553 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["babel-plugin-styled-components"]
}
69 changes: 0 additions & 69 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ Icon
# cypress recordings
cypress/screenshots/
cypress/videos/

storybook-static/
5 changes: 0 additions & 5 deletions .prettierignore

This file was deleted.

28 changes: 28 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { StorybookConfig } from "@storybook/react-webpack5";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
"storybook-addon-remix-react-router",
"@chromatic-com/storybook"
],
framework: {
name: "@storybook/react-webpack5",
options: {
builder: {
useSWC: true,
},
},
},
docs: {
autodocs: "tag",
},
staticDirs: ["../public"],
};

export default config;
4 changes: 4 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import theme from "./theme";
import { addons } from "@storybook/manager-api";

addons.setConfig({ theme });
3 changes: 3 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap" rel="stylesheet">
28 changes: 28 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { Preview } from "@storybook/react";

import React from "react";
import Providers from "../src/app/Providers";

export const decorators = [
(Story) => (
<Providers>
<React.StrictMode>
<Story />
</React.StrictMode>
</Providers>
),
];

const preview: Preview = {
parameters: {
// actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
8 changes: 8 additions & 0 deletions .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { create } from "@storybook/theming/create";

export default create({
base: "light",
// Typography
fontBase: '"Inter", sans-serif',
fontCode: "monospace",
});
9 changes: 0 additions & 9 deletions .stylelintrc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) [2021] [The Global Fund]
Copyright (c) [2024] [The Global Fund]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
40 changes: 0 additions & 40 deletions craco.config.js

This file was deleted.

Loading

0 comments on commit 9c7c004

Please sign in to comment.