Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Meta, StoryObj } from "@storybook/nextjs";
import Icon from "./Icon";
import Icon from "./icon";
import ICON_MAP from "./icon-map";

const meta = {
Expand All @@ -17,7 +17,7 @@ const meta = {
},
size: {
control: "select",
options: ["xs", "sm", "md", "lg", "xl", "2xl"],
options: ["xs", "sm", "md", "2md", "lg", "xl", "2xl"],
description: "아이콘 크기",
},
color: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const iconVariants = cva("inline-block", {
xs: "ic-xs",
sm: "ic-sm",
md: "ic-md",
"2md": "ic-2md",
lg: "ic-lg",
xl: "ic-xl",
"2xl": "ic-2xl",
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export { default as Chip } from "./chip/Chip";
export { default as Flavor } from "./flavor/Flavor";
export { default as TextInput } from "./text-input/text-input";
export { default as SelectType } from "./select-type/select-type";
export { default as Icon } from "./icon/Icon";
export { default as Icon } from "./icon/icon";
export { default as BlockGauge } from "./gauge/block-gauge";
export { default as DetailTaste } from "./taste/detail-taste";
export { default as ReviewTaste } from "./taste/review-taste";
2 changes: 1 addition & 1 deletion src/components/text-input/text-input.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { cn } from "@/lib/utils";
import { ComponentProps } from "react";
import Icon from "../icon/Icon";
import Icon from "../icon/icon";

interface InputValue extends ComponentProps<"input"> {
placeholder?: string;
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
safelist: ["ic-xs", "ic-sm", "ic-md", "ic-lg", "ic-xl", "ic-2xl"],
safelist: ["ic-xs", "ic-sm", "ic-md", "ic-2md", "ic-lg", "ic-xl", "ic-2xl"],
theme: {
extend: {
colors: {
Expand Down Expand Up @@ -85,6 +85,7 @@ export default {
".ic-xs": { width: "16px", height: "16px" },
".ic-sm": { width: "20px", height: "20px" },
".ic-md": { width: "24px", height: "24px" },
".ic-2md": { width: "28px", height: "28px" },
".ic-lg": { width: "32px", height: "32px" },
".ic-xl": { width: "40px", height: "40px" },
".ic-2xl": { width: "48px", height: "48px" },
Expand Down