Skip to content

Commit

Permalink
(#0) npm publish (0.0.190)
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Mar 11, 2024
1 parent b3d3bb1 commit 4b6003d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bbodek-ui",
"version": "0.0.189",
"version": "0.0.190",
"type": "module",
"author": "Bbodek",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/Toggle/Toggle.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta } from "@storybook/react";

import Toggle from "../Toggle/index";
import { ToggleButtonProps } from "./types";
import { ToggleProps } from "./types";

const meta = {
title: "core/Toggle",
Expand Down Expand Up @@ -29,7 +29,7 @@ const meta = {

export default meta;

export const Default = (props: ToggleButtonProps) => {
export const Default = (props: ToggleProps) => {
const { label, ...rest } = props;

return <Toggle label = {label || "토글"} {...rest}/>;
Expand Down
8 changes: 4 additions & 4 deletions src/core/components/Toggle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import clsx from "clsx";
import { useId } from "react";

import Typography from "../Typography";
import { ToggleButtonProps } from "./types";
import { ToggleProps } from "./types";

const ToggleButton = ({
const Toggle = ({
label,
className,
onChange,
checked,
reverse = false,
}: ToggleButtonProps) => {
}: ToggleProps) => {
const id = useId();

return (
Expand Down Expand Up @@ -38,4 +38,4 @@ const ToggleButton = ({
);
};

export default ToggleButton;
export default Toggle;
2 changes: 1 addition & 1 deletion src/core/components/Toggle/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface ToggleButtonProps
export interface ToggleProps
extends Pick<
React.InputHTMLAttributes<HTMLInputElement>,
"onChange" | "className" | "checked"
Expand Down
1 change: 1 addition & 0 deletions src/core/components/Tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function Tooltip({
children,
}: PropsWithChildren<TooltipProps>) {
const id = useId();

return (
<>
<a data-tooltip-id = {id} data-tooltip-content = {tooltipContentText}>
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export { default as TableContainer } from "@/core/components/Table/TableContaine
export { default as TableHead } from "@/core/components/Table/TableHead";
export { default as TableRow } from "@/core/components/Table/TableRow";
export { default as TextEditor } from "@/core/components/TextEditor";
export { default as Toggle } from "@/core/components/Toggle";
export { default as Tooltip } from "@/core/components/Tooltip";
export { default as Typography } from "@/core/components/Typography";

0 comments on commit 4b6003d

Please sign in to comment.