@edu-tosel/design 1.0.130 → 1.0.132

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.
@@ -58,7 +58,7 @@ interface AlertModalProps extends Omit<ModalProps, "children"> {
58
58
  }
59
59
  interface DaumPostcode {
60
60
  address: string;
61
- zipcode: string;
61
+ zipCode: string;
62
62
  }
63
63
  interface DaumPostcodeModalProps extends Omit<ModalProps, "titles" | "children"> {
64
64
  state: State<DaumPostcode>;
@@ -1,4 +1,4 @@
1
- import { Titles } from "../Property";
1
+ import { OnClick, Titles } from "../Property";
2
2
  export type { CarouselContent };
3
3
  type Tag = "NEW" | "REG" | "RCU";
4
4
  interface Option {
@@ -12,5 +12,6 @@ interface CarouselContent {
12
12
  };
13
13
  titles: Titles;
14
14
  image?: string;
15
+ onClick?: OnClick;
15
16
  option?: Partial<Option>;
16
17
  }
@@ -86,5 +86,5 @@ export default function Carousel({ contents, }) {
86
86
  sizes: "w-23.25 h-6.25 bg-gray-dark rounded-full",
87
87
  paddings: "px-1.5 mt-12",
88
88
  };
89
- return (_jsx("div", { className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "duration-500 w-fit h-fit flex flex-col mt-4 xxs:mt-8 xxs:flex-row xxs:gap-8 md:flex-col md:flex-none md:w-72 md:pl-7.5 md:gap-6 md:mt-0", children: [_jsxs("div", { className: cn(titleSet), children: [_jsx("div", { className: cn(tagBox), children: tagString[tag.type] }), _jsx("div", { className: "font-pretendard-bold text-xl md:text-2xl", children: titles.title })] }), _jsx(LineBreaks, { className: "w-fit flex flex-col justify-center text-sm my-2 xxs:mt-0 md:text-base", texts: titles.subtitle }), _jsxs("div", { className: cn(buttonBox), children: [_jsx("button", { onClick: handlePrev, className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.LessThan, {}) }), _jsxs("div", { className: "flex flex-row gap-2 justify-center items-center", children: [_jsx("div", { className: "text-white w-2 text-sm", children: index + 1 }), _jsx("div", { className: "w-0.5 h-3 bg-gray-medium" }), _jsx("div", { className: "text-white w-2 text-sm", children: contents.length })] }), _jsx("button", { onClick: handleNext, className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.GreaterThan, {}) })] })] }), _jsx("div", { className: "h-full overflow-hidden w-fit", children: image && (_jsx(animated.img, { src: image, alt: "carousel-image", onLoad: () => setLoaded(true), className: "object-cover h-full", style: transitionStyles })) })] }) }));
89
+ return (_jsx("div", { onClick: contents[index].onClick, className: cn(container), children: _jsxs("div", { className: cn(body), children: [_jsxs("div", { className: "duration-500 w-fit h-fit flex flex-col mt-4 xxs:mt-8 xxs:flex-row xxs:gap-8 md:flex-col md:flex-none md:w-72 md:pl-7.5 md:gap-6 md:mt-0", children: [_jsxs("div", { className: cn(titleSet), children: [_jsx("div", { className: cn(tagBox), children: tagString[tag.type] }), _jsx("div", { className: "font-pretendard-bold text-xl md:text-2xl", children: titles.title })] }), _jsx(LineBreaks, { className: "w-fit flex flex-col justify-center text-sm my-2 xxs:mt-0 md:text-base", texts: titles.subtitle }), _jsxs("div", { className: cn(buttonBox), children: [_jsx("button", { onClick: handlePrev, className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.LessThan, {}) }), _jsxs("div", { className: "flex flex-row gap-2 justify-center items-center", children: [_jsx("div", { className: "text-white w-2 text-sm", children: index + 1 }), _jsx("div", { className: "w-0.5 h-3 bg-gray-medium" }), _jsx("div", { className: "text-white w-2 text-sm", children: contents.length })] }), _jsx("button", { onClick: handleNext, className: "w-5 h-5 flex justify-center items-center", children: _jsx(SVG.Symbol.GreaterThan, {}) })] })] }), _jsx("div", { className: "h-full overflow-hidden w-fit", children: image && (_jsx(animated.img, { src: image, alt: "carousel-image", onLoad: () => setLoaded(true), className: "object-cover h-full", style: transitionStyles })) })] }) }));
90
90
  }
@@ -3,6 +3,7 @@ import { cn, gradient } from "../../../../util";
3
3
  import { Label } from "../../../../widget";
4
4
  export default function Header({ logo, rightButton, contents, }) {
5
5
  const container = {
6
+ positions: "fixed top-0 left-0 z-40",
6
7
  displays: "flex justify-center items-center",
7
8
  sizes: "w-full",
8
9
  styles: "bg-white box-shadow ",
@@ -8,5 +8,5 @@ export default function Layout({ contents, children, logo, rightButton, }) {
8
8
  sizes: "w-full min-h-screen",
9
9
  overflows: "overflow-x-hidden ",
10
10
  };
11
- return (_jsxs("div", { className: cn(container), children: [_jsx(Header, { logo: logo, rightButton: rightButton, contents: contents }), children, _jsx(Footer, {})] }));
11
+ return (_jsxs("div", { className: cn(container), children: [_jsx(Header, { logo: logo, rightButton: rightButton, contents: contents }), _jsx("div", { className: "w-full max-w-[1200px] h-15" }), children, _jsx(Footer, {})] }));
12
12
  }
@@ -15,7 +15,7 @@ export default function PostcodeModal({ state, showAction, }) {
15
15
  const handler = (data) => {
16
16
  setValue({
17
17
  address: data.address,
18
- zipcode: data.zonecode,
18
+ zipCode: data.zonecode,
19
19
  });
20
20
  return showAction?.event && removeModal(showAction.event);
21
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.130",
3
+ "version": "1.0.132",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.130
1
+ 1.0.132