@edu-tosel/design 1.0.294 → 1.0.295

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.
@@ -1,7 +1,9 @@
1
+ import { Button as _Button } from "../../../interface";
1
2
  interface OneLayoutProps {
2
3
  title: string;
3
4
  date: string;
4
5
  content: string;
6
+ button?: _Button;
5
7
  }
6
- export default function One({ title, date, content }: OneLayoutProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function One({ title, date, content, button }: OneLayoutProps): import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -1,9 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn, isHTMLString } from "../../../util";
3
- export default function One({ title, date, content }) {
3
+ import { Label } from "../../../widget";
4
+ export default function One({ title, date, content, button }) {
4
5
  const body = {
5
6
  sizes: "w-full max-w-[1200px]",
6
- boundaries: "pl-12 ",
7
+ boundaries: "pb-8 px-3.5 md:pl-12 md:pr-0",
7
8
  };
8
9
  const titleBox = {
9
10
  sizes: "w-full h-30",
@@ -13,5 +14,10 @@ export default function One({ title, date, content }) {
13
14
  const contentBox = {
14
15
  boundaries: "pt-12",
15
16
  };
16
- return (_jsxs("div", { className: cn(body), children: [_jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: "text-[24px] font-pretendard-bold", children: title }), _jsx("div", { className: "text-gray-medium", children: date })] }), isHTMLString(content) ? (_jsx("div", { dangerouslySetInnerHTML: { __html: content }, className: cn(contentBox) })) : (_jsx("div", { className: cn(contentBox), children: content }))] }));
17
+ return (_jsxs("div", { className: cn(body), children: [_jsxs("div", { className: cn(titleBox), children: [_jsx("div", { className: "text-[24px] font-pretendard-bold", children: title }), _jsx("div", { className: "text-gray-medium", children: date })] }), isHTMLString(content) ? (_jsx("div", { dangerouslySetInnerHTML: { __html: content }, className: cn(contentBox) })) : (_jsx("div", { className: cn(contentBox), children: content })), _jsx("div", { className: "pt-6", children: button && (_jsx(Label.Button, { ...button, option: {
18
+ width: "full",
19
+ height: "lg",
20
+ background: "bg-green-dark",
21
+ text: "text-white",
22
+ } })) })] }));
17
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.294",
3
+ "version": "1.0.295",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.294
1
+ 1.0.295
@@ -19,6 +19,7 @@ const heightSize = {
19
19
  sm: "h-11.25",
20
20
  md: "h-12.25",
21
21
  lg: "h-[45px]",
22
+ xl: "h-[50px]",
22
23
  };
23
24
  export default function LabelDesign({ title, onClick, disabled, option, hoverState, }) {
24
25
  const [hover, setHover] = hoverState ?? [false, () => { }];