@edu-tosel/design 1.0.158 → 1.0.160

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.
Files changed (48) hide show
  1. package/README.md +42 -42
  2. package/asset/SVG.d.ts +3 -3
  3. package/asset/SVG.tsx +29 -29
  4. package/asset/html/gomito-promotion.html +116 -116
  5. package/asset/html/speaking-series-promotion.html +58 -58
  6. package/asset/sizes.d.ts +1 -1
  7. package/asset/sizes.ts +202 -202
  8. package/asset/svg/Close.tsx +32 -32
  9. package/asset/svg/Direction.tsx +76 -76
  10. package/asset/svg/Email.tsx +20 -20
  11. package/asset/svg/Eye.tsx +48 -48
  12. package/asset/svg/Icon.tsx +195 -195
  13. package/asset/svg/Image.tsx +24 -24
  14. package/asset/svg/Notification.tsx +34 -34
  15. package/asset/svg/Operation.tsx +130 -130
  16. package/asset/svg/Phone.tsx +20 -20
  17. package/asset/svg/Profile.tsx +27 -27
  18. package/asset/svg/Symbol.tsx +60 -60
  19. package/asset/svg/TOSEL.tsx +63 -63
  20. package/card/design/InfoCard.design.js +4 -4
  21. package/globals.css +269 -269
  22. package/interface/Card.d.ts +1 -0
  23. package/layout/index.d.ts +1 -0
  24. package/layout/index.js +1 -0
  25. package/layout/template/Event/One.js +37 -34
  26. package/layout/template/MonthlyProgressReport/Layout.d.ts +4 -0
  27. package/layout/template/MonthlyProgressReport/Layout.js +52 -0
  28. package/layout/template/MonthlyProgressReport/Report.d.ts +11 -4
  29. package/layout/template/MonthlyProgressReport/Report.js +50 -33
  30. package/layout/template/MonthlyProgressReport/index.d.ts +5 -2
  31. package/layout/template/MonthlyProgressReport/index.js +2 -0
  32. package/layout/template/Row.d.ts +3 -3
  33. package/layout/template/Ticket/Layout.d.ts +5 -0
  34. package/layout/template/Ticket/Layout.js +48 -0
  35. package/layout/template/Ticket/Ticket.d.ts +18 -0
  36. package/layout/template/Ticket/Ticket.js +13 -0
  37. package/layout/template/Ticket/index.d.ts +5 -0
  38. package/layout/template/Ticket/index.js +5 -0
  39. package/layout/template/dashboard/mypage/Profile.d.ts +2 -2
  40. package/layout/template/home/layout/Footer.js +1 -1
  41. package/layout/template/home/layout/Navigation.d.ts +2 -1
  42. package/layout/template/home/layout/Navigation.js +66 -18
  43. package/package.json +2 -1
  44. package/tailwind.config.ts +675 -675
  45. package/util/compareDates.js +10 -10
  46. package/version.txt +1 -1
  47. package/widget/design/Label.design.js +1 -0
  48. package/widget/template/Label.d.ts +1 -1
@@ -1,18 +1,18 @@
1
+ import moment from "moment-timezone";
1
2
  export default function compareDates(targetDate) {
2
- const currentDate = new Date();
3
- const KSTOffset = 9 * 60 * 60 * 1000;
4
- const KSTDate = new Date(currentDate.getTime() + KSTOffset);
5
- const targetDateKST = new Date(targetDate.getTime() + KSTOffset);
6
- const isBefore = KSTDate < targetDateKST;
7
- const timeDiff = targetDateKST.getTime() - KSTDate.getTime();
3
+ const currentDate = moment();
4
+ const targetDateMoment = moment(targetDate).tz("Asia/Seoul");
5
+ const isBefore = currentDate.isBefore(targetDateMoment);
6
+ const timeDiff = targetDateMoment.diff(currentDate);
8
7
  if (isBefore) {
9
8
  if (timeDiff < 24 * 60 * 60 * 1000) {
10
- const hours = Math.floor(timeDiff / (1000 * 60 * 60));
11
- const minutes = Math.floor((timeDiff % (1000 * 60 * 60)) / (1000 * 60));
12
- const seconds = Math.floor((timeDiff % (1000 * 60)) / 1000);
9
+ const duration = moment.duration(timeDiff);
10
+ const hours = duration.hours();
11
+ const minutes = duration.minutes();
12
+ const seconds = duration.seconds();
13
13
  return {
14
14
  isBefore,
15
- dDay: `${hours} ${minutes} ${seconds}초`,
15
+ dDay: `${hours < 10 ? `0${hours}` : hours} : ${minutes < 10 ? `0${minutes}` : minutes} : ${seconds < 10 ? `0${seconds}` : seconds}`,
16
16
  };
17
17
  }
18
18
  else {
package/version.txt CHANGED
@@ -1 +1 @@
1
- 1.0.158
1
+ 1.0.160
@@ -35,6 +35,7 @@ export default function LabelDesign({ title, onClick, disabled, option, hoverSta
35
35
  texts: text ?? "text-gray-dim",
36
36
  animation: "duration-500",
37
37
  fonts: "font-pretendard-light",
38
+ boundary,
38
39
  styles: height === "xs" ||
39
40
  height === "2xs" ||
40
41
  height === "3xs" ||
@@ -2,7 +2,7 @@ import { LabelWidget } from "../../interface";
2
2
  declare function Label({ title, option }: Omit<LabelWidget, "onClick">): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace Label {
4
4
  var Button: ({ title, hoverTitle, onClick, disabled, option, }: Omit<LabelWidget, "hoverState"> & {
5
- hoverTitle?: string | undefined;
5
+ hoverTitle?: string;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
7
7
  }
8
8
  export default Label;