@edu-tosel/design 1.0.40 → 1.0.42

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.
@@ -9,5 +9,5 @@ interface InfoCardPersonalInformationProps extends Omit<InfoCardProps, "children
9
9
  phone: string;
10
10
  };
11
11
  }
12
- export default function PersonalInformation({ titles, data, theme, }: InfoCardPersonalInformationProps): import("react/jsx-runtime").JSX.Element;
12
+ export default function PersonalInformation({ titles, theme, button, data, }: InfoCardPersonalInformationProps): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -7,9 +7,9 @@ const color = {
7
7
  red: "#910023",
8
8
  blue: "#173A8B",
9
9
  background: {
10
- red: "bg-crimson-burgundy",
11
- blue: "bg-blue-navy",
12
- gradient: {
10
+ red: gradient.bg.greenToRedSoft,
11
+ blue: gradient.bg.lab,
12
+ button: {
13
13
  red: gradient.bg.greenToRed,
14
14
  blue: gradient.bg.lab,
15
15
  },
@@ -23,7 +23,7 @@ const color = {
23
23
  blue: "text-blue-navy",
24
24
  },
25
25
  };
26
- export default function PersonalInformation({ titles, data, theme = "red", }) {
26
+ export default function PersonalInformation({ titles, theme = "red", button, data, }) {
27
27
  const body = {
28
28
  container: "flex flex-col pt-5.75",
29
29
  belong: color.text[theme],
@@ -38,12 +38,12 @@ export default function PersonalInformation({ titles, data, theme = "red", }) {
38
38
  titleBorder: color.border[theme],
39
39
  width: "md",
40
40
  height: "md",
41
- background: color.background.gradient[theme],
41
+ background: color.background[theme],
42
42
  boundary: `border-3 ${color.border[theme]}`,
43
- }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(body.container), children: [_jsx("div", { className: cn(body.belong), children: data.info }), _jsx("div", { className: cn(body.username), children: data.username }), _jsx("div", { className: cn(body.name), children: data.name }), _jsxs("div", { className: cn(body.subInfo), children: [_jsx("div", { children: data.email }), _jsx("div", { children: data.phone })] })] }), _jsx(Label.Button, { title: "\uD559\uC6D0 \uB4F1\uB85D\uD558\uAE30", onClick: () => { }, options: {
43
+ }, children: _jsxs(_Fragment, { children: [_jsxs("div", { className: cn(body.container), children: [_jsx("div", { className: cn(body.belong), children: data.info }), _jsx("div", { className: cn(body.username), children: data.username }), _jsx("div", { className: cn(body.name), children: data.name }), _jsxs("div", { className: cn(body.subInfo), children: [_jsx("div", { children: data.email }), _jsx("div", { children: data.phone })] })] }), button && (_jsx(Label.Button, { title: button[0], onClick: button[1], options: {
44
44
  width: "md",
45
- background: color.background[theme],
45
+ background: color.background.button[theme],
46
46
  text: "text-white",
47
47
  className: cn(label),
48
- } })] }) }));
48
+ } }))] }) }));
49
49
  }
@@ -10,10 +10,7 @@ interface Notification {
10
10
  }
11
11
  export interface DashboardHeaderProps {
12
12
  title: string;
13
- logo: {
14
- image: string;
15
- href?: string;
16
- };
13
+ logo?: React.ReactNode;
17
14
  notification: {
18
15
  notifications?: Partial<Notification>[];
19
16
  flag: boolean;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../util";
3
3
  import { useWidgetStore } from "../../../store";
4
4
  import Menu from "./Menu";
@@ -17,7 +17,7 @@ export function Header({ title, logo, notification, options, }) {
17
17
  styles: "px-5 xl:px-8 2xl:px-16 ",
18
18
  className,
19
19
  };
20
- return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex h-12 items-center gap-8 xl:gap-24 2xl:gap-26", children: [logo ? (_jsx("a", { href: logo.href, children: _jsx("img", { src: logo.image, alt: "logo" }) })) : (_jsx("div", { className: "text-2xl", children: "TOSEL" })), _jsx("div", { className: "text-3xl font-pretendard-bold", children: title })] }), _jsx("div", { className: "relative flex gap-5.25", children: _jsxs(Events.Show, { widgets: [
20
+ return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: "flex h-12 items-center gap-8 xl:gap-24 2xl:gap-26", children: [logo ? _jsx(_Fragment, { children: logo }) : _jsx("div", { className: "text-2xl", children: "TOSEL" }), _jsx("div", { className: "text-3xl font-pretendard-bold", children: title })] }), _jsx("div", { className: "relative flex gap-5.25", children: _jsxs(Events.Show, { widgets: [
21
21
  ["notification", _jsx(Notification, { notifications: notifications })],
22
22
  ["menu", _jsx(Menu, { image: "/images/hani.png" })],
23
23
  ], children: [_jsxs("button", { className: "relative", onClick: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.40
1
+ 1.0.42