Skip to content

Commit

Permalink
Move each component in lib into separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
olmoh committed Feb 3, 2025
1 parent e0d2a14 commit 025b0e5
Show file tree
Hide file tree
Showing 29 changed files with 33 additions and 29 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components';

import { Layout, LayoutProps } from './Layout';
import { Layout, LayoutProps } from '../layout';

interface BoxProps extends LayoutProps {
$width?: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Box';
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';

import { Colors, Radius, Spacings } from '../../foundations';
import { buttonReset } from '../../styles';
import { Flex } from '../layout';
import { Flex } from '../flex';
import { BodySmallSemiBold } from '../typography';

export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Button';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';

import { Spacings } from '../../foundations';
import { Flex, FlexProps } from './Flex';
import { FlexProps, Flex } from '../flex';

export interface ContainerProps extends FlexProps {
size?: '3' | '4';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Container';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';

import { Spacings } from '../../foundations';
import { Layout, LayoutProps } from './Layout';
import { Layout, LayoutProps } from '../layout';

export interface FlexProps extends LayoutProps {
$gap?: Spacings;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Flex';
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './Button';
export * from './IconButton';
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
export * from './box';
export * from './button';
export * from './container';
export * from './flex';
export * from './icon-button';
export * from './layout';
export * from './atoms';
export * from './logo';
export * from './main-header';
export * from './navigation-header';
export * from './theme';
export * from './typography';
export * from './molecules';
export * from './organisms';
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
export * from './Box';
export * from './Container';
export * from './Flex';
export * from './Layout';
export * from './Theme';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ImageView from '../../../../components/ImageView';
import { Spacings } from '../../../foundations';
import { Flex } from '../../layout';
import ImageView from '../../../components/ImageView';
import { Spacings } from '../../foundations';
import { Flex } from '../flex';

export interface LogoProps {
variant?: 'icon' | 'text' | 'both';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Logo';
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styled from 'styled-components';

import { Colors, Spacings } from '../../../foundations';
import { TransientProps } from '../../../types';
import { Flex } from '../../layout';
import { Colors, Spacings } from '../../foundations';
import { TransientProps } from '../../types';
import { Flex } from '../flex';
import { MainHeaderIconButton } from './components';

export type HeaderProps = React.PropsWithChildren<{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconButton, IconButtonProps } from '../../../molecules';
import { IconButton, IconButtonProps } from '../../icon-button';

export const MainHeaderIconButton = (props: IconButtonProps) => {
return <IconButton variant="secondary" {...props} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import styled from 'styled-components';

import { Colors, Spacings } from '../../../foundations';
import { TransientProps } from '../../../types';
import { Flex } from '../../layout';
import { Colors, Spacings } from '../../foundations';
import { TransientProps } from '../../types';
import { Flex } from '../flex';
import {
NavigationHeaderButtonGroup,
NavigationHeaderIconButton,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components';

import { Spacings } from '../../../../foundations';
import { Flex } from '../../../layout';
import { Spacings } from '../../../foundations';
import { Flex } from '../../flex';

export const NavigationHeaderButtonGroup = styled(Flex).attrs({
$gap: Spacings.spacing6,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconButton, IconButtonProps } from '../../../molecules';
import { IconButton, IconButtonProps } from '../../icon-button';

export const NavigationHeaderIconButton = (props: IconButtonProps) => {
return <IconButton variant="secondary" {...props} />;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from 'styled-components';

import { TitleMedium } from '../../../typography';
import { TitleMedium } from '../../typography';
import { useNavigationHeader } from '../NavigationHeaderContext';

export interface NavigationHeaderTitleProps {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Theme';

0 comments on commit 025b0e5

Please sign in to comment.