Skip to content

Commit 79e123e

Browse files
authored
Merge pull request #10 from Cardinal-Cryptography/SD-20-update-file-structure
2 parents 07cc98e + 52d7e62 commit 79e123e

File tree

106 files changed

+45
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+45
-46
lines changed

.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Preview } from '@storybook/react';
22

3-
import Providers from '../src/domains/common/providers/Providers';
3+
import Providers from '../src/domains/misc/components/Providers';
44

55
// TODO: Add after chromatic setup
66
// MotionGlobalConfig.skipAnimations = isChromatic();

.storybook/utils/ComponentsGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from 'styled-components';
22

3-
import { vars } from '../../src/domains/common/styles/utils';
3+
import vars from '../../src/domains/styling/utils/vars';
44

55
export default styled.div<{ $columnsCount: number }>`
66
display: grid;

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default tseslint.config(
138138
},
139139
],
140140
patterns: [{
141-
regex: 'src/(?!(domains/.*/(components|utils|assets|hooks|providers|types|styles)/.*))',
141+
regex: 'src/(?!(domains/.*/(components|utils|assets|types)/.*))',
142142
message: 'Organize modules in predefined groups under domains.',
143143
}, {
144144
/*

scripts/generateIcons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
55
const __filename = fileURLToPath(import.meta.url);
66
const __dirname = path.dirname(__filename);
77
const rootDir = path.resolve(__dirname, '..');
8-
const iconsDir = path.join(rootDir, 'src/domains/common/components/CIcon/icons');
8+
const iconsDir = path.join(rootDir, 'src/domains/misc/components/CIcon/icons');
99

1010
if (!fs.existsSync(iconsDir)) {
1111
console.error(`Icons directory not found: ${iconsDir}`);
@@ -40,7 +40,7 @@ export type IconName = keyof typeof icons;
4040
`;
4141

4242
fs.writeFileSync(
43-
path.join(rootDir, 'src/domains/common/components/CIcon/icons.ts'),
43+
path.join(rootDir, 'src/domains/misc/components/CIcon/icons.ts'),
4444
content
4545
);
4646

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Layout from 'src/domains/common/components/Layout';
2-
import Providers from 'src/domains/common/providers/Providers';
1+
import Layout from 'src/domains/misc/components/Layout';
2+
import Providers from 'src/domains/misc/components/Providers';
33

44
const App = () => (
55
<Providers>

src/domains/common/styles/utils/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/domains/common/components/Button/Button.stories.tsx renamed to src/domains/misc/components/Button/Button.stories.tsx

File renamed without changes.

src/domains/common/components/Button/Button.tsx renamed to src/domains/misc/components/Button/Button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { ComponentProps, forwardRef, ReactNode } from 'react';
22
import styled, { css, RuleSet } from 'styled-components';
33

4-
import CIcon, { type IconName } from 'src/domains/common/components/CIcon';
5-
import { transitionTime, typography } from 'src/domains/common/styles/tokens';
6-
import { vars } from 'src/domains/common/styles/utils';
4+
import CIcon, { type IconName } from 'src/domains/misc/components/CIcon';
5+
import { transitionTime, typography } from 'src/domains/styling/utils/tokens';
6+
import vars from 'src/domains/styling/utils/vars';
77

88
type Size = 'large' | 'medium' | 'small' | 'extra-small' | 'tiny';
99
type Variant = 'primary' | 'secondary' | 'outline' | 'subtle' | 'transparent' | 'danger';
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)