@wishket/design-system 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Components/Atoms/Box/Box.d.ts +6 -0
- package/dist/Components/Atoms/Box/Box.js +1 -0
- package/dist/Components/Atoms/Box/Box.stories.d.ts +6 -0
- package/dist/Components/Atoms/Box/index.d.ts +2 -0
- package/dist/Components/Atoms/Box/index.js +1 -0
- package/dist/Components/Atoms/Checkbox/Checkbox.d.ts +3 -0
- package/dist/Components/Atoms/Checkbox/Checkbox.js +2 -0
- package/dist/Components/Atoms/Checkbox/Checkbox.stories.d.ts +7 -0
- package/dist/Components/Atoms/Checkbox/Checkbox.types.d.ts +10 -0
- package/dist/Components/Atoms/Checkbox/index.d.ts +2 -0
- package/dist/Components/Atoms/Checkbox/index.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Bookmark.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Bookmark.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/BubbleStar.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/BubbleStar.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/BubbleStars.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/BubbleStars.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Building.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Building.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Calendar.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Calendar.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/CardConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/CardConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/CardWrite.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/CardWrite.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Congrats.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Congrats.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Credit.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Credit.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Database.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Database.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Design.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Design.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Discount.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Discount.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/DocumentCloud.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/DocumentCloud.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/DocumentSuccess.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/DocumentSuccess.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Email.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Email.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/HandShake.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/HandShake.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/HandThumb.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/HandThumb.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Idea.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Idea.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Lock.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Lock.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Logout.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Logout.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/MemoWrite.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/MemoWrite.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/MobileConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/MobileConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperCertify.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperCertify.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperClip.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperClip.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperClock.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperClock.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperContract.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperContract.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperHold.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperHold.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperOverlap.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperOverlap.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperProject.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperProject.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperSecurity.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PaperSecurity.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonFreelancer.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonFreelancer.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonOffice.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonOffice.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonSmile.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/PersonSmile.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Receipt.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Receipt.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Repair.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Repair.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Search.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Search.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/SearchConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/SearchConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/ShieldConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/ShieldConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/ShieldWon.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/ShieldWon.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Shopping.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/Shopping.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebDevelopment.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebDevelopment.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebDomain.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebDomain.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebPayment.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebPayment.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebSecurity.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WebSecurity.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperConfirm.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperConfirm.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperPayment.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperPayment.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperPlan.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperPlan.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperStructure.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/Icons/WidePaperStructure.js +1 -0
- package/dist/Components/Atoms/ProductIcon/Icons/index.d.ts +49 -0
- package/dist/Components/Atoms/ProductIcon/ProductIcon.d.ts +3 -0
- package/dist/Components/Atoms/ProductIcon/ProductIcon.js +1 -0
- package/dist/Components/Atoms/ProductIcon/ProductIcon.stories.d.ts +7 -0
- package/dist/Components/Atoms/ProductIcon/ProductIcon.types.d.ts +7 -0
- package/dist/Components/Atoms/ProductIcon/index.d.ts +2 -0
- package/dist/Components/Atoms/ProductIcon/index.js +1 -0
- package/dist/Components/Atoms/Typography//bTypography.stories.d.ts +7 -0
- package/dist/Components/Atoms/Typography/Typography.d.ts +3 -0
- package/dist/Components/Atoms/Typography/Typography.js +2 -0
- package/dist/Components/Atoms/Typography/Typography.types.d.ts +20 -0
- package/dist/Components/Atoms/Typography/Typography.types.js +1 -0
- package/{Components/Atoms/Typography/index.ts → dist/Components/Atoms/Typography/index.d.ts} +0 -1
- package/dist/Components/Atoms/Typography/index.js +1 -0
- package/dist/Components/Atoms/index.d.ts +4 -0
- package/dist/Components/Common/DesignSystemProvider.d.ts +3 -0
- package/dist/Components/Common/DesignSystemProvider.js +2 -0
- package/dist/Components/Common/index.d.ts +1 -0
- package/dist/Components/Molecules/CheckboxCard/CheckboxCard.d.ts +2 -0
- package/dist/Components/Molecules/CheckboxCard/CheckboxCard.stories.d.ts +8 -0
- package/dist/Components/Molecules/CheckboxCard/CheckboxCard.styles.d.ts +26 -0
- package/dist/Components/Molecules/CheckboxCard/CheckboxCard.types.d.ts +11 -0
- package/dist/Components/Molecules/CheckboxList/CHeckboxList.stories.d.ts +7 -0
- package/dist/Components/Molecules/CheckboxList/CheckboxList.d.ts +3 -0
- package/dist/Components/Molecules/CheckboxList/CheckboxList.js +2 -0
- package/dist/Components/Molecules/CheckboxList/CheckboxList.types.d.ts +15 -0
- package/dist/Components/Molecules/CheckboxList/CheckboxListItem.d.ts +11 -0
- package/dist/Components/Molecules/CheckboxList/CheckboxListItem.js +2 -0
- package/dist/Components/Molecules/CheckboxList/index.d.ts +2 -0
- package/dist/Components/Molecules/CheckboxList/index.js +1 -0
- package/dist/Components/Molecules/GridLayout/GridLayout.d.ts +3 -0
- package/dist/Components/Molecules/GridLayout/GridLayout.js +2 -0
- package/dist/Components/Molecules/GridLayout/GridLayout.stories.d.ts +7 -0
- package/dist/Components/Molecules/GridLayout/GridLayout.types.d.ts +10 -0
- package/dist/Components/Molecules/GridLayout/index.d.ts +2 -0
- package/dist/Components/Molecules/GridLayout/index.js +1 -0
- package/dist/Components/Molecules/index.d.ts +2 -0
- package/dist/_virtual/_tslib.js +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2 -0
- package/dist/styles/globals.d.ts +2 -0
- package/dist/styles/globals.js +2 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/types/checkbox.types.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/variants/breakpoints.d.ts +13 -0
- package/dist/variants/breakpoints.js +1 -0
- package/dist/variants/colors.d.ts +114 -0
- package/dist/variants/colors.js +1 -0
- package/dist/variants/gradients.d.ts +4 -0
- package/dist/variants/gradients.js +1 -0
- package/dist/variants/index.d.ts +3 -0
- package/dist/variants/theme.d.ts +16 -0
- package/dist/variants/theme.js +1 -0
- package/dist/variants/typographies.d.ts +5 -0
- package/dist/variants/typographies.js +1 -0
- package/package.json +40 -13
- package/.editorconfig +0 -12
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -33
- package/.github/CODEOWNERS +0 -1
- package/.github/ISSUE_TEMPLATE/bug.md +0 -44
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -29
- package/.github/pull_request_template.md +0 -36
- package/.github/release-drafter.yml +0 -49
- package/.github/workflows/design-system-canary.yml +0 -78
- package/.github/workflows/design-system-dev.yml +0 -77
- package/.github/workflows/design-system-release.yml +0 -61
- package/.github/workflows/pr-checklist.yml +0 -23
- package/.github/workflows/release-drafter.yml +0 -16
- package/.github/workflows/todo-bot.yml +0 -19
- package/.prettierrc +0 -7
- package/.vscode/settings.json +0 -24
- package/Components/Atoms/Typography/Typography.d.ts +0 -3
- package/Components/Atoms/Typography/Typography.tsx +0 -9
- package/Components/Atoms/index.ts +0 -1
- package/Components/index.ts +0 -1
- package/__test__/setupTests.ts +0 -3
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/jest.config.js +0 -26
- package/next.config.js +0 -4
- package/postcss.config.js +0 -6
- package/public/next.svg +0 -1
- package/public/vercel.svg +0 -1
- package/src/app/favicon.ico +0 -0
- package/src/app/globals.css +0 -3
- package/src/app/layout.tsx +0 -19
- package/src/app/page.tsx +0 -9
- package/tailwind.config.ts +0 -19
- package/tsconfig.json +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./Typography.js";export{o as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{jsx as o}from"react/jsx-runtime";import{ThemeProvider as t}from"@emotion/react";import"../Atoms/Typography/Typography.js";import"../Atoms/Checkbox/Checkbox.js";import"../Atoms/Box/Box.js";import"../Molecules/GridLayout/GridLayout.js";import"../Molecules/CheckboxList/CheckboxList.js";import"../../styles/globals.js";import"../../variants/typographies.js";import"../../variants/colors.js";import{theme as r}from"../../variants/theme.js";import"@emotion/styled";var s=function(s){s=s.children;return o(t,{theme:r,children:s})};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DesignSystemProvider } from './DesignSystemProvider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import CheckboxCard from './CheckboxCard';
|
|
3
|
+
import { CheckboxCardProps } from './CheckboxCard.types';
|
|
4
|
+
declare const meta: Meta<typeof CheckboxCard>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<CheckboxCardProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithDescription: Story;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxCardProps } from './CheckboxCard.types';
|
|
3
|
+
export declare const CheckboxCardLabel: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & Pick<CheckboxCardProps, "isWide">, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
|
|
7
|
+
export declare const CheckboxCardContainer: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
} & Pick<CheckboxCardProps, "checked" | "disabled" | "isError" | "isHover" | "isWide">, {}, {}>;
|
|
13
|
+
export declare const StyledCheckbox: import("@emotion/styled").StyledComponent<import("../../Atoms/Checkbox/Checkbox.types").CheckboxProps & {
|
|
14
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
+
} & Pick<CheckboxCardProps, "isWide">, {}, {}>;
|
|
16
|
+
export declare const IconContainer: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const TitleContainer: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
} & Pick<CheckboxCardProps, "isWide">, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
24
|
+
export declare const StyledTypography: import("@emotion/styled").StyledComponent<import("../../Atoms/Typography/Typography.types").TypographyProps & {
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
} & Pick<CheckboxCardProps, "isWide">, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { CheckboxStatus } from '../../../types';
|
|
3
|
+
import { ProductIconName } from '../../Atoms/ProductIcon/ProductIcon.types';
|
|
4
|
+
export interface CheckboxCardProps extends CheckboxStatus {
|
|
5
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
iconName: ProductIconName;
|
|
8
|
+
isWide?: boolean;
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CheckboxListProps } from './CheckboxList.types';
|
|
3
|
+
import CheckboxList from '.';
|
|
4
|
+
declare const meta: Meta<typeof CheckboxList>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<CheckboxListProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{__makeTemplateObject as t,__rest as n,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as i}from"react/jsx-runtime";import a from"@emotion/styled";import o from"./CheckboxListItem.js";var r,m=a.div(r=r||t(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n width: min-content;\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n width: min-content;\n"])),s=function(t){var a=t.data,s=t.className,t=n(t,["data","className"]);return i(m,e({className:s,"data-testid":"design-system-checkboxList"},t,{children:a.map(function(t,n){return i(o,e({},t),n)})}))};export{s as default};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
type CheckboxListData = {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isError?: boolean;
|
|
8
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
};
|
|
10
|
+
export interface CheckboxListProps {
|
|
11
|
+
data: CheckboxListData[];
|
|
12
|
+
className?: string;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { CheckboxStatus } from '../../../types';
|
|
3
|
+
interface CheckboxListProps extends CheckboxStatus {
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
CheckboxClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const CheckboxListItem: ({ label, description, checked, disabled, isError, className, CheckboxClassName, onChange, }: CheckboxListProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default CheckboxListItem;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{__makeTemplateObject as n}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as i}from"react/jsx-runtime";import{useState as t}from"react";import r from"@emotion/styled";import o from"../../Atoms/Typography/Typography.js";import a from"../../Atoms/Checkbox/Checkbox.js";import"../../Atoms/Box/Box.js";var c,s,d,l,m=r.label(c=c||n(["\n display: grid;\n grid-template-areas: 'checkbox label' '. description';\n grid-template-rows: min-content min-content;\n grid-template-columns: 18px min-content;\n row-gap: 2px;\n column-gap: 12px;\n width: min-content;\n height: min-content;\n align-items: center;\n cursor: ",";\n"],["\n display: grid;\n grid-template-areas: 'checkbox label' '. description';\n grid-template-rows: min-content min-content;\n grid-template-columns: 18px min-content;\n row-gap: 2px;\n column-gap: 12px;\n width: min-content;\n height: min-content;\n align-items: center;\n cursor: ",";\n"]),function(e){return e.disabled?"not-allowed":"pointer"}),p=r.div(s=s||n(["\n grid-area: checkbox;\n"],["\n grid-area: checkbox;\n"])),g=r.div(d=d||n(["\n grid-area: label;\n"],["\n grid-area: label;\n"])),h=r.div(l=l||n(["\n grid-area: description;\n"],["\n grid-area: description;\n"])),b=function(n){var r=n.label,s=n.description,c=n.checked,d=n.disabled,d=void 0!==d&&d,l=n.isError,l=void 0!==l&&l,b=n.className,x=n.CheckboxClassName,n=n.onChange,u=t(!1),y=u[0],k=u[1];return e(m,{"data-testid":"design-system-checkboxList--item",disabled:d,className:b,onMouseOver:function(){k(!0)},onMouseOut:function(){k(!1)},children:[i(p,{children:i(a,{checked:c,isHover:y,isError:l,disabled:d,onChange:n,className:x})}),i(g,{children:i(o,{variant:"body2",color:d?"gray300":"gray900",testId:"design-system-checkboxList--item-label",children:r})}),s&&i(h,{children:i(o,{variant:"body3",color:d?"gray300":"gray600",testId:"design-system-checkboxList--item-description",children:s})})]})};export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./CheckboxList.js";export{o as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{__makeTemplateObject as n,__rest as t,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as a}from"react/jsx-runtime";import r from"@emotion/styled";var s,o={mobile:'\n "contents contents contents contents"\n ',tablet:'\n "contents contents contents contents contents contents contents contents"\n ',desktop:'\n "contents contents contents contents contents contents contents contents contents contents contents contents"\n '},i=r.div(s=s||n(["\n display: grid;\n gap: 20px;\n width: 100%;\n grid-auto-columns: 1fr;\n padding: 0 20px;\n margin: 0 auto;\n max-width: ",";\n grid-template-areas: ",";\n\n "," {\n grid-template-areas: ",";\n }\n\n "," {\n gap: 24px;\n padding: 0 30px;\n grid-template-areas: ",";\n }\n"],["\n display: grid;\n gap: 20px;\n width: 100%;\n grid-auto-columns: 1fr;\n padding: 0 20px;\n margin: 0 auto;\n max-width: ",";\n grid-template-areas: ",";\n\n "," {\n grid-template-areas: ",";\n }\n\n "," {\n gap: 24px;\n padding: 0 30px;\n grid-template-areas: ",";\n }\n"]),function(n){n=n.theme;return"".concat(n.screenSizes.contentsMaxSize,"px")},function(n){n=n.gridTemplateAreas;return null==n?void 0:n.mobile},function(n){return n.theme.breakpoints.tablet},function(n){n=n.gridTemplateAreas;return null==n?void 0:n.tablet},function(n){return n.theme.breakpoints.desktop},function(n){n=n.gridTemplateAreas;return null==n?void 0:n.desktop}),d=function(n){var s=n.children,r=n.className,d=n.gridTemplateAreas,d=void 0===d?o:d,n=t(n,["children","className","gridTemplateAreas"]);return a(i,e({gridTemplateAreas:d,"data-testid":"design-system-grid-layout-root",className:r},n,{children:s}))};export{d as default};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GridLayout } from '../../..';
|
|
3
|
+
import { GridLayoutProps } from './GridLayout.types';
|
|
4
|
+
declare const meta: Meta<typeof GridLayout>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<GridLayoutProps>;
|
|
7
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./GridLayout.js";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r=function(){return(r=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function e(e,r){var t={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]]);return t}function t(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}export{r as __assign,t as __makeTemplateObject,e as __rest};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './Components/Atoms';
|
|
2
|
+
export * from './Components/Molecules';
|
|
3
|
+
export * from './Components/Common';
|
|
4
|
+
export * from './styles';
|
|
5
|
+
export * from './variants';
|
|
6
|
+
export { css, keyframes, useTheme } from '@emotion/react';
|
|
7
|
+
export type { Theme } from '@emotion/react';
|
|
8
|
+
export { default as styled } from '@emotion/styled';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
export{default as Typography}from"./Components/Atoms/Typography/Typography.js";export{default as Checkbox}from"./Components/Atoms/Checkbox/Checkbox.js";export{default as Box}from"./Components/Atoms/Box/Box.js";export{default as ProductIcon}from"./Components/Atoms/ProductIcon/ProductIcon.js";export{default as GridLayout}from"./Components/Molecules/GridLayout/GridLayout.js";export{default as CheckboxList}from"./Components/Molecules/CheckboxList/CheckboxList.js";export{default as DesignSystemProvider}from"./Components/Common/DesignSystemProvider.js";export{default as Globals}from"./styles/globals.js";export{typographies}from"./variants/typographies.js";export{colors}from"./variants/colors.js";export{theme}from"./variants/theme.js";export{css,keyframes,useTheme}from"@emotion/react";export{default as styled}from"@emotion/styled";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import{__makeTemplateObject as n}from"../_virtual/_tslib.js";import{jsx as e}from"react/jsx-runtime";import{css as t,Global as o}from"@emotion/react";var r,a=t(r=r||n(["\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol,\n ul {\n list-style: none;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n"],["\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n menu,\n nav,\n section {\n display: block;\n }\n body {\n line-height: 1;\n }\n ol,\n ul {\n list-style: none;\n }\n blockquote,\n q {\n quotes: none;\n }\n blockquote:before,\n blockquote:after,\n q:before,\n q:after {\n content: '';\n content: none;\n }\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n"])),i=function(){return e(o,{styles:a})};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Globals } from './globals';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './checkbox.types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface MediaQueryProps {
|
|
2
|
+
mobile: number;
|
|
3
|
+
tablet: number;
|
|
4
|
+
desktop: number;
|
|
5
|
+
contentsMaxSize: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const screenSizes: MediaQueryProps;
|
|
8
|
+
export declare const breakpoints: {
|
|
9
|
+
readonly mobile: `@media only screen and (min-width: ${number}px)`;
|
|
10
|
+
readonly tablet: `@media only screen and (min-width: ${number}px)`;
|
|
11
|
+
readonly desktop: `@media only screen and (min-width: ${number}px)`;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={mobile:360,tablet:720,desktop:980,contentsMaxSize:1200},t={mobile:"@media only screen and (min-width: ".concat(e.mobile,"px)"),tablet:"@media only screen and (min-width: ".concat(e.tablet,"px)"),desktop:"@media only screen and (min-width: ".concat(e.desktop,"px)")};export{t as breakpoints,e as screenSizes};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
cyan10: string;
|
|
3
|
+
cyan50: string;
|
|
4
|
+
cyan100: string;
|
|
5
|
+
cyan200: string;
|
|
6
|
+
cyan300: string;
|
|
7
|
+
cyan400: string;
|
|
8
|
+
cyan500: string;
|
|
9
|
+
cyan600: string;
|
|
10
|
+
cyan700: string;
|
|
11
|
+
cyan800: string;
|
|
12
|
+
cyan900: string;
|
|
13
|
+
indigo10: string;
|
|
14
|
+
indigo50: string;
|
|
15
|
+
indigo100: string;
|
|
16
|
+
indigo200: string;
|
|
17
|
+
indigo300: string;
|
|
18
|
+
indigo400: string;
|
|
19
|
+
indigo500: string;
|
|
20
|
+
indigo600: string;
|
|
21
|
+
indigo700: string;
|
|
22
|
+
indigo800: string;
|
|
23
|
+
indigo900: string;
|
|
24
|
+
red10: string;
|
|
25
|
+
red50: string;
|
|
26
|
+
red100: string;
|
|
27
|
+
red200: string;
|
|
28
|
+
red300: string;
|
|
29
|
+
red400: string;
|
|
30
|
+
red500: string;
|
|
31
|
+
red600: string;
|
|
32
|
+
red700: string;
|
|
33
|
+
red800: string;
|
|
34
|
+
red900: string;
|
|
35
|
+
orange10: string;
|
|
36
|
+
orange50: string;
|
|
37
|
+
orange100: string;
|
|
38
|
+
orange200: string;
|
|
39
|
+
orange300: string;
|
|
40
|
+
orange400: string;
|
|
41
|
+
orange500: string;
|
|
42
|
+
orange600: string;
|
|
43
|
+
orange700: string;
|
|
44
|
+
orange800: string;
|
|
45
|
+
orange900: string;
|
|
46
|
+
yellow10: string;
|
|
47
|
+
yellow50: string;
|
|
48
|
+
yellow100: string;
|
|
49
|
+
yellow200: string;
|
|
50
|
+
yellow300: string;
|
|
51
|
+
yellow400: string;
|
|
52
|
+
yellow500: string;
|
|
53
|
+
yellow600: string;
|
|
54
|
+
yellow700: string;
|
|
55
|
+
yellow800: string;
|
|
56
|
+
yellow900: string;
|
|
57
|
+
green10: string;
|
|
58
|
+
green50: string;
|
|
59
|
+
green100: string;
|
|
60
|
+
green200: string;
|
|
61
|
+
green300: string;
|
|
62
|
+
green400: string;
|
|
63
|
+
green500: string;
|
|
64
|
+
green600: string;
|
|
65
|
+
green700: string;
|
|
66
|
+
green800: string;
|
|
67
|
+
green900: string;
|
|
68
|
+
bluegray10: string;
|
|
69
|
+
bluegray50: string;
|
|
70
|
+
bluegray100: string;
|
|
71
|
+
bluegray200: string;
|
|
72
|
+
bluegray300: string;
|
|
73
|
+
bluegray400: string;
|
|
74
|
+
bluegray500: string;
|
|
75
|
+
bluegray600: string;
|
|
76
|
+
bluegray700: string;
|
|
77
|
+
bluegray800: string;
|
|
78
|
+
bluegray900: string;
|
|
79
|
+
gray10: string;
|
|
80
|
+
gray50: string;
|
|
81
|
+
gray100: string;
|
|
82
|
+
gray200: string;
|
|
83
|
+
gray300: string;
|
|
84
|
+
gray400: string;
|
|
85
|
+
gray500: string;
|
|
86
|
+
gray600: string;
|
|
87
|
+
gray700: string;
|
|
88
|
+
gray800: string;
|
|
89
|
+
gray900: string;
|
|
90
|
+
violet10: string;
|
|
91
|
+
violet50: string;
|
|
92
|
+
violet100: string;
|
|
93
|
+
violet200: string;
|
|
94
|
+
violet300: string;
|
|
95
|
+
violet400: string;
|
|
96
|
+
violet500: string;
|
|
97
|
+
violet600: string;
|
|
98
|
+
violet700: string;
|
|
99
|
+
violet800: string;
|
|
100
|
+
violet900: string;
|
|
101
|
+
black20: string;
|
|
102
|
+
black40: string;
|
|
103
|
+
black50: string;
|
|
104
|
+
black80: string;
|
|
105
|
+
black100: string;
|
|
106
|
+
white20: string;
|
|
107
|
+
white40: string;
|
|
108
|
+
white50: string;
|
|
109
|
+
white80: string;
|
|
110
|
+
white100: string;
|
|
111
|
+
wPrimary: string;
|
|
112
|
+
wSecondary: string;
|
|
113
|
+
yPrimary: string;
|
|
114
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as F}from"../_virtual/_tslib.js";var e={cyan10:"#F2FCFF",cyan50:"#E8FAFF",cyan100:"#BFEDFA",cyan200:"#ABE3F2",cyan300:"#80C7DE",cyan400:"#5DB6D4",cyan500:"#3BA3C7",cyan600:"#369CC2",cyan700:"#3391BA",cyan800:"#308AB3",cyan900:"#2E82AB",indigo10:"#F5F9FF",indigo50:"#E3EDFA",indigo100:"#CCDBED",indigo200:"#A6BFDE",indigo300:"#7DA3CC",indigo400:"#5487BA",indigo500:"#2E6BAA",indigo600:"#26619E",indigo700:"#1F578C",indigo800:"#1A4D80",indigo900:"#144570",red10:"#FFF5F5",red50:"#FFE8E8",red100:"#FFC9C9",red200:"#ED9191",red300:"#ED6666",red400:"#EB3F3F",red500:"#E52929",red600:"#DB2121",red700:"#D11519",red800:"#C70006",red900:"#BF0006",orange10:"#FFF9F5",orange50:"#FFF0E8",orange100:"#FFD6BF",orange200:"#FFBB99",orange300:"#FFA070",orange400:"#FF8547",orange500:"#FF6B21",orange600:"#F4611D",orange700:"#E65918",orange800:"#DB5314",orange900:"#D14B0F",yellow10:"#FFFDF5",yellow50:"#FFF9E0",yellow100:"#FFEEB8",yellow200:"#FFE491",yellow300:"#FFDA6A",yellow400:"#FFD043",yellow500:"#FFC61C",yellow600:"#FFB012",yellow700:"#F79E0F",yellow800:"#F79205",yellow900:"#F28A05",green10:"#F5FFFC",green50:"#EBFFF9",green100:"#C4EDE1",green200:"#93DBC6",green300:"#63C9AB",green400:"#30B891",green500:"#00A878",green600:"#009C6F",green700:"#009168",green800:"#008761",green900:"#007D59",bluegray10:"#F7FAFC",bluegray50:"#E6EBF0",bluegray100:"#CCD1D6",bluegray200:"#A1A6AD",bluegray300:"#787D85",bluegray400:"#4D525C",bluegray500:"#383D47",bluegray600:"#242933",bluegray700:"#1C2029",bluegray800:"#14171F",bluegray900:"#0D0F14",gray10:"#FAFAFA",gray50:"#F5F5F5",gray100:"#EEEEEE",gray200:"#E0E0E0",gray300:"#BDBDBD",gray400:"#9E9E9E",gray500:"#757575",gray600:"#616161",gray700:"#424242",gray800:"#313131",gray900:"#212121",violet10:"#FAF6FF",violet50:"#F2E8FC",violet100:"#D6C1FA",violet200:"#BB98F7",violet300:"#9E6BF5",violet400:"#8646F2",violet500:"#6B16EE",violet600:"#5A00DB",violet700:"#400EC0",violet800:"#3200AC",violet900:"#110394",black20:"#000000",black40:"#000000",black50:"#000000",black80:"#000000",black100:"#000000",white20:"#FFFFFF",white40:"#FFFFFF",white50:"#FFFFFF",white80:"#FFFFFF",white100:"#FFFFFF"},r=F(F({},{wPrimary:e.cyan500,wSecondary:e.indigo500,yPrimary:e.violet500}),e);export{r as colors};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n={cyan:function(n){return"\n linear-gradient(".concat(n,"deg, #5db6d4 0%, #369cc2 100%);\n ")},violet:function(n){return"\n linear-gradient(".concat(n,"deg, #8e2de2 0%, #5a00db 100%);\n ")},indigo:function(n){return"\n linear-gradient(".concat(n,"deg, #5487ba 0%, #26619e 100%);\n ")}};export{n as gradients};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { typographies } from './typographies';
|
|
3
|
+
import { colors } from './colors';
|
|
4
|
+
import { breakpoints, screenSizes } from './breakpoints';
|
|
5
|
+
import { gradients } from './gradients';
|
|
6
|
+
declare module '@emotion/react' {
|
|
7
|
+
interface Theme {
|
|
8
|
+
colors: typeof colors;
|
|
9
|
+
typographies: typeof typographies;
|
|
10
|
+
breakpoints: typeof breakpoints;
|
|
11
|
+
screenSizes: typeof screenSizes;
|
|
12
|
+
gradients: typeof gradients;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare const theme: Theme;
|
|
16
|
+
export type ThemeColors = keyof typeof colors;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{typographies as r}from"./typographies.js";import{colors as o}from"./colors.js";import{breakpoints as s,screenSizes as i}from"./breakpoints.js";import{gradients as p}from"./gradients.js";var t={typographies:r,colors:o,breakpoints:s,screenSizes:i,gradients:p};export{t as theme};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
export type TypographyVariants = 'title1' | 'title2' | 'title3' | 'subTitle1' | 'subTitle2' | 'body1' | 'body2' | 'body3' | 'caption1' | 'caption2';
|
|
3
|
+
export declare const typographies: {
|
|
4
|
+
[key in TypographyVariants]: SerializedStyles;
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__makeTemplateObject as n}from"../_virtual/_tslib.js";import{css as i}from"@emotion/react";var e,t,p,h,x,o,l,f,s,g,z={title1:i(e=e||n(["\n font-weight: 700;\n font-size: 48px;\n line-height: 64px;\n "],["\n font-weight: 700;\n font-size: 48px;\n line-height: 64px;\n "])),title2:i(t=t||n(["\n font-size: 32px;\n line-height: 48px;\n "],["\n font-size: 32px;\n line-height: 48px;\n "])),title3:i(p=p||n(["\n font-size: 24px;\n line-height: 36px;\n "],["\n font-size: 24px;\n line-height: 36px;\n "])),subTitle1:i(h=h||n(["\n font-size: 20px;\n line-height: 30px;\n "],["\n font-size: 20px;\n line-height: 30px;\n "])),subTitle2:i(x=x||n(["\n font-size: 18px;\n line-height: 28px;\n "],["\n font-size: 18px;\n line-height: 28px;\n "])),body1:i(o=o||n(["\n font-size: 16px;\n line-height: 26px;\n "],["\n font-size: 16px;\n line-height: 26px;\n "])),body2:i(l=l||n(["\n font-size: 14px;\n line-height: 24px;\n "],["\n font-size: 14px;\n line-height: 24px;\n "])),body3:i(f=f||n(["\n font-size: 13px;\n line-height: 20px;\n "],["\n font-size: 13px;\n line-height: 20px;\n "])),caption1:i(s=s||n(["\n font-size: 12px;\n line-height: 18px;\n "],["\n font-size: 12px;\n line-height: 18px;\n "])),caption2:i(g=g||n(["\n font-size: 11px;\n line-height: 14px;\n "],["\n font-size: 11px;\n line-height: 14px;\n "]))};export{z as typographies};
|
package/package.json
CHANGED
|
@@ -1,46 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wishket/design-system",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Wishket Design System",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
7
8
|
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
8
12
|
"scripts": {
|
|
9
13
|
"dev": "next dev",
|
|
10
|
-
"build": "
|
|
14
|
+
"build": "rm -rf dist && rollup -c --bundleConfigAsCjs",
|
|
11
15
|
"start": "next start",
|
|
12
|
-
"lint": "eslint
|
|
13
|
-
"test
|
|
14
|
-
"
|
|
16
|
+
"lint": "eslint './**/*.{ts,tsx,js,jsx}' --ignore-path .eslintignore || true",
|
|
17
|
+
"test": "jest --ci --runInBand --coverage --watchAll=false --passWithNoTests --testMatch=\"**/*.spec.@(ts|tsx)\"",
|
|
18
|
+
"storybook": "storybook dev -p 6006",
|
|
19
|
+
"build-storybook": "storybook build"
|
|
15
20
|
},
|
|
16
21
|
"dependencies": {
|
|
22
|
+
"@emotion/react": "^11.11.3",
|
|
23
|
+
"@emotion/styled": "^11.11.0",
|
|
17
24
|
"next": "14.0.4",
|
|
18
25
|
"react": "^18",
|
|
19
26
|
"react-dom": "^18"
|
|
20
27
|
},
|
|
21
28
|
"devDependencies": {
|
|
22
|
-
"@
|
|
29
|
+
"@babel/core": "^7.23.7",
|
|
30
|
+
"@babel/preset-env": "^7.23.7",
|
|
31
|
+
"@babel/preset-react": "^7.23.3",
|
|
32
|
+
"@changesets/changelog-github": "^0.5.0",
|
|
33
|
+
"@changesets/cli": "^2.27.1",
|
|
34
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
35
|
+
"@storybook/addon-essentials": "^7.6.7",
|
|
36
|
+
"@storybook/addon-interactions": "^7.6.7",
|
|
37
|
+
"@storybook/addon-links": "^7.6.7",
|
|
38
|
+
"@storybook/addon-onboarding": "^1.0.10",
|
|
39
|
+
"@storybook/blocks": "^7.6.7",
|
|
40
|
+
"@storybook/nextjs": "^7.6.7",
|
|
41
|
+
"@storybook/react": "^7.6.7",
|
|
42
|
+
"@storybook/test": "^7.6.7",
|
|
43
|
+
"@testing-library/dom": "^9.3.4",
|
|
23
44
|
"@testing-library/jest-dom": "^6.2.0",
|
|
24
45
|
"@testing-library/react": "^14.1.2",
|
|
25
46
|
"@testing-library/user-event": "^14.5.2",
|
|
26
47
|
"@types/jest": "^29.5.11",
|
|
27
|
-
"@types/node": "^20.
|
|
48
|
+
"@types/node": "^20.11.0",
|
|
28
49
|
"@types/react": "^18",
|
|
29
50
|
"@types/react-dom": "^18",
|
|
30
51
|
"@wishket/eslint-config-wishket": "^1.0.0",
|
|
31
|
-
"autoprefixer": "^10.0.1",
|
|
32
52
|
"babel-jest": "^29.7.0",
|
|
33
53
|
"dotenv": "^16.3.1",
|
|
34
54
|
"eslint": "^8",
|
|
35
55
|
"eslint-config-next": "14.0.4",
|
|
56
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
36
57
|
"jest": "^29.7.0",
|
|
37
58
|
"jest-dom": "^4.0.0",
|
|
38
59
|
"jest-environment-jsdom": "^29.7.0",
|
|
39
|
-
"postcss": "^8",
|
|
40
60
|
"prettier-plugin-tailwindcss": "^0.5.11",
|
|
41
|
-
"
|
|
61
|
+
"rollup": "^4.9.4",
|
|
62
|
+
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
63
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
64
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
65
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
66
|
+
"rollup-plugin-uglify": "^6.0.4",
|
|
67
|
+
"storybook": "^7.6.7",
|
|
42
68
|
"ts-jest": "^29.1.1",
|
|
43
69
|
"ts-node": "^10.9.2",
|
|
44
70
|
"typescript": "^5"
|
|
45
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"packageManager": "yarn@4.0.2"
|
|
46
73
|
}
|
package/.editorconfig
DELETED
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: ['tsconfig.json'],
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
createDefaultProgram: true
|
|
8
|
-
},
|
|
9
|
-
ignorePatterns: ['*.d.ts'],
|
|
10
|
-
extends: ["@wishket/eslint-config-wishket"],
|
|
11
|
-
root: true,
|
|
12
|
-
env: {
|
|
13
|
-
node: true,
|
|
14
|
-
browser: true
|
|
15
|
-
},
|
|
16
|
-
globals: {
|
|
17
|
-
document: false,
|
|
18
|
-
Map: false,
|
|
19
|
-
Promise: false
|
|
20
|
-
},
|
|
21
|
-
settings: {
|
|
22
|
-
react: {
|
|
23
|
-
version: 'detect'
|
|
24
|
-
},
|
|
25
|
-
'import/parsers': {
|
|
26
|
-
'@typescript-eslint/parser': ['.ts', '.tsx']
|
|
27
|
-
},
|
|
28
|
-
'import/resolver': {
|
|
29
|
-
typescript: {}
|
|
30
|
-
},
|
|
31
|
-
'import/ignore': ['testing-utils']
|
|
32
|
-
}
|
|
33
|
-
}
|
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @wishket/frontend
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 버그 이슈
|
|
3
|
-
about: 버그에 대한 티켓을 생성합니다.
|
|
4
|
-
title: ''
|
|
5
|
-
labels: 'bug'
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 버그에 대한 내용
|
|
9
|
-
|
|
10
|
-
어떤 버그인지 기대 동작과 현상에 대해 작성합니다.
|
|
11
|
-
|
|
12
|
-
- ex. 등록 버튼 클릭 시 서버 요청 에러가 발생하고 결과에 대한 팝업이 노출되지 않음
|
|
13
|
-
|
|
14
|
-
## To reproduce
|
|
15
|
-
|
|
16
|
-
버그 재현 방법에 대해 작성합니다.
|
|
17
|
-
|
|
18
|
-
- ex.
|
|
19
|
-
1. <https://example.com> 접속
|
|
20
|
-
2. 계정 로그인
|
|
21
|
-
3. <https://example.com/form> 접속
|
|
22
|
-
4. form 작성
|
|
23
|
-
5. '등록' 버튼 클릭
|
|
24
|
-
|
|
25
|
-
## 기대 현상
|
|
26
|
-
|
|
27
|
-
예상한 상황에 대한 명확하고 간결한 설명입니다.
|
|
28
|
-
|
|
29
|
-
- ex. 등록 버튼 클릭 시 서버 요청 및 응답 받아 해당 결과에 대한 팝업 노출
|
|
30
|
-
|
|
31
|
-
## Screenshots
|
|
32
|
-
|
|
33
|
-
버그를 설명하는데 도움이 되는 스크린샷을 추가합니다.
|
|
34
|
-
|
|
35
|
-
### 발생 환경
|
|
36
|
-
|
|
37
|
-
- Device: [e.g. iPhone6]
|
|
38
|
-
- OS: [e.g. iOS]
|
|
39
|
-
- Browser [e.g. chrome, safari]
|
|
40
|
-
- Version [e.g. 22]
|
|
41
|
-
|
|
42
|
-
### Additional context
|
|
43
|
-
|
|
44
|
-
추가적인 컨텍스트를 작성합니다.
|