Skip to content

Commit

Permalink
Revert "v2.0.1 (#178)"
Browse files Browse the repository at this point in the history
This reverts commit 8e551dc.
  • Loading branch information
seocylucky committed Jan 25, 2025
1 parent 8e551dc commit ef2e1c4
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 172 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@yourssu/design-system-react",
"packageManager": "[email protected]",
"private": false,
"version": "2.0.1",
"version": "2.0.0",
"description": "Yourssu Design System for React",
"keywords": [
"yourssu",
Expand Down
56 changes: 0 additions & 56 deletions src/components/LoadingIndicator/LoadingIndicator.mdx

This file was deleted.

28 changes: 0 additions & 28 deletions src/components/LoadingIndicator/LoadingIndicator.stories.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/LoadingIndicator/LoadingIndicator.style.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/components/LoadingIndicator/LoadingIndicator.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/LoadingIndicator/LoadingIndicator.type.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/LoadingIndicator/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,3 @@ export type { DividerProps } from './Divider';
export { SnackbarProvider } from './Snackbar/SnackbarProvider';
export { useSnackbar } from './Snackbar/hooks/useSnackbar';
export type * from './Snackbar';

export { LoadingIndicator } from './LoadingIndicator';
export type { LoadingIndicatorProps } from './LoadingIndicator';
10 changes: 1 addition & 9 deletions src/style/foundation/color/color.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,4 @@ const StyledDiv = styled.div`

<br />

<ColorStories.AllThemeColors>
{({ colors }) => (
<ColorPalette>
{colors.map((color) => (
<ColorItem title={color.title} subtitle="theme.semantic.color" colors={color.colors} />
))}
</ColorPalette>
)}
</ColorStories.AllThemeColors>
<ColorStories.AllThemeColors />
32 changes: 16 additions & 16 deletions src/style/foundation/color/color.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import type { Meta, StoryObj } from '@storybook/react';
import { ColorItem, ColorPalette } from '@storybook/blocks';
import { Meta, StoryObj } from '@storybook/react';
import { styled } from 'styled-components';

import { semanticColorPalette } from '@/style/foundation/color/semanticColor';

type SemanticColorPalette = {
title: string;
colors: Record<string, string>;
};

interface AllThemeColorsProps {
children?: ({ colors }: { colors: SemanticColorPalette[] }) => React.ReactElement;
}

const meta: Meta = {
title: 'Foundation/Color',
parameters: {
Expand All @@ -27,7 +19,7 @@ const StyledColorExample = styled.div`
background-color: ${({ theme }) => theme.semantic.color.bgBrandPrimary};
`;

const AllThemeColors = ({ children }: AllThemeColorsProps) => {
const AllThemeColors = () => {
const getSemanticColorPalette = (prefix: string) => {
const colors: Record<string, string> = {};

Expand All @@ -50,17 +42,15 @@ const AllThemeColors = ({ children }: AllThemeColorsProps) => {
const semanticColorCategories = {
background: ['bgBasic', 'bgBrand', 'bgStatus'],
text: ['textBasic', 'textBrand', 'textStatus'],
line: ['lineBasic', 'lineBrand', 'lineStatus'],
'button/box': ['buttonFilledPrimary', 'buttonFilledSecondary', 'buttonOutlined'],
line: ['lineBasic', 'lineStatus'],
'button/box': ['buttonBoxPrimary', 'buttonBoxSecondary', 'buttonBoxTertiary'],
'button/text': ['buttonTextPrimary', 'buttonTextSecondary'],
'button/fab': ['buttonFabPrimary', 'buttonFabSecondary'],
'button/radio': ['buttonRadio'],
icon: ['iconBasic', 'iconBrand'],
checkbox: ['checkbox'],
chip: ['chip'],
pagination: ['paginationBrand', 'paginationBasic'],
switch: ['switch'],
snackbar: ['snackbar'],
};

return (
Expand All @@ -73,7 +63,17 @@ const AllThemeColors = ({ children }: AllThemeColorsProps) => {
return (
<div>
<h2>{section}</h2>
{children && children({ colors })}
<ColorPalette>
{colors.map((color) => {
return (
<ColorItem
title={color.title}
subtitle="theme.semantic.color"
colors={color.colors}
/>
);
})}
</ColorPalette>
<br />
<br />
</div>
Expand Down

0 comments on commit ef2e1c4

Please sign in to comment.