Skip to content

Commit

Permalink
(#0) npm publish (0.0.134)
Browse files Browse the repository at this point in the history
  • Loading branch information
baegofda committed Jan 6, 2024
1 parent a304b91 commit 21a555d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 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.133",
"version": "0.0.134",
"type": "module",
"author": "Bbodek",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/core/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const Checkbox = forwardRef((
) => {
const id = useId();
const RectangleCheckbox =
<CheckSquare size = "100%" weight = "fill" fill = "#DBE1ED"/>;
<CheckSquare size = "100%" weight = "fill" />;
const CircleCheckbox =
<CheckCircle size = "100%" weight = "fill" fill = "#DBE1ED"/>;
<CheckCircle size = "100%" weight = "fill" />;
const svg = !isCircle ? RectangleCheckbox : CircleCheckbox;

return (
<label onClick = {(e: MouseEvent<HTMLLabelElement>) => e.stopPropagation()} htmlFor = {id} className = {clsx("cursor-pointer", label && "flex items-center gap-2.5", className)}>
<input ref = {ref} id = {id} type = "checkbox" className = "peer hidden" {...props}/>
<div className = {`${CHECKBOX_SVG_SIZE[svgSize]} peer-checked:[&>svg>path]:fill-primary-03`}>
<div className = {`${CHECKBOX_SVG_SIZE[svgSize]} [&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-gray-06`}>
{svg}
</div>
{label && <Typography text = {label} />}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Radio/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Radio = forwardRef((
return (
<label htmlFor = {id} className = {clsx("cursor-pointer", label && "flex items-center gap-x-2", className)}>
<input ref = {ref} id = {id} type = "radio" className = "peer hidden" {...props}/>
<div className = {"[&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-[#7595E7]"}>
<div className = {"[&>svg>path]:fill-[#C6CEDE] peer-checked:[&>svg>path]:fill-gray-06"}>
<RadioButton size = {svgSize} weight = "fill"/>
</div>
{label && <Typography text = {label} />}
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Table/TableCell.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropsWithChildren, useContext } from "react";
import clsx from "clsx";
import React, { PropsWithChildren, useContext } from "react";

import { TableThemeContext } from "./TableContainer";
import { TABLE_CELL_THEME } from "./constants";
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/Table/TableRow.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropsWithChildren, useContext } from "react";
import clsx from "clsx";
import React, { PropsWithChildren, useContext } from "react";

import { TableThemeContext } from "./TableContainer";
import { TR_THEME } from "./constants";
Expand Down
6 changes: 3 additions & 3 deletions src/core/components/Table/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ThemeType, TableCellType } from "../types";
import { TableCellType, ThemeType } from "../types";

export const THEME = {
WHITE: "white",
Expand All @@ -23,7 +23,7 @@ export const TABLE_CELL_THEME: Record<ThemeType, Record<TableCellType, string>>
[TABLE_CELL.TD]: `${COMMON_CELL_STYLE} text-gray-07`,
},
[THEME.GRAY]: {
[TABLE_CELL.TH]: `${COMMON_CELL_STYLE} bg-gray-00 text-gray-06`,
[TABLE_CELL.TD]: `${COMMON_CELL_STYLE} text-gray-08`,
[TABLE_CELL.TH]: `${COMMON_CELL_STYLE} bg-gray-03 text-gray-07`,
[TABLE_CELL.TD]: `${COMMON_CELL_STYLE} text-gray-07`,
},
} as const;

0 comments on commit 21a555d

Please sign in to comment.