@edu-tosel/design 1.0.41 → 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.41",
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.41
1
+ 1.0.42