@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.
- package/README.md +42 -42
- package/asset/SVG.d.ts +3 -3
- package/asset/SVG.tsx +29 -29
- package/asset/html/gomito-promotion.html +116 -116
- package/asset/html/speaking-series-promotion.html +58 -58
- package/asset/sizes.d.ts +1 -1
- package/asset/sizes.ts +202 -202
- package/asset/svg/Close.tsx +32 -32
- package/asset/svg/Direction.tsx +76 -76
- package/asset/svg/Email.tsx +20 -20
- package/asset/svg/Eye.tsx +48 -48
- package/asset/svg/Icon.tsx +195 -195
- package/asset/svg/Image.tsx +24 -24
- package/asset/svg/Notification.tsx +34 -34
- package/asset/svg/Operation.tsx +130 -130
- package/asset/svg/Phone.tsx +20 -20
- package/asset/svg/Profile.tsx +27 -27
- package/asset/svg/Symbol.tsx +60 -60
- package/asset/svg/TOSEL.tsx +63 -63
- package/card/design/InfoCard.design.js +4 -4
- package/globals.css +269 -269
- package/interface/Card.d.ts +1 -0
- package/layout/index.d.ts +1 -0
- package/layout/index.js +1 -0
- package/layout/template/Event/One.js +37 -34
- package/layout/template/MonthlyProgressReport/Layout.d.ts +4 -0
- package/layout/template/MonthlyProgressReport/Layout.js +52 -0
- package/layout/template/MonthlyProgressReport/Report.d.ts +11 -4
- package/layout/template/MonthlyProgressReport/Report.js +50 -33
- package/layout/template/MonthlyProgressReport/index.d.ts +5 -2
- package/layout/template/MonthlyProgressReport/index.js +2 -0
- package/layout/template/Row.d.ts +3 -3
- package/layout/template/Ticket/Layout.d.ts +5 -0
- package/layout/template/Ticket/Layout.js +48 -0
- package/layout/template/Ticket/Ticket.d.ts +18 -0
- package/layout/template/Ticket/Ticket.js +13 -0
- package/layout/template/Ticket/index.d.ts +5 -0
- package/layout/template/Ticket/index.js +5 -0
- package/layout/template/dashboard/mypage/Profile.d.ts +2 -2
- package/layout/template/home/layout/Footer.js +1 -1
- package/layout/template/home/layout/Navigation.d.ts +2 -1
- package/layout/template/home/layout/Navigation.js +66 -18
- package/package.json +2 -1
- package/tailwind.config.ts +675 -675
- package/util/compareDates.js +10 -10
- package/version.txt +1 -1
- package/widget/design/Label.design.js +1 -0
- package/widget/template/Label.d.ts +1 -1
package/util/compareDates.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
+
import moment from "moment-timezone";
|
|
1
2
|
export default function compareDates(targetDate) {
|
|
2
|
-
const currentDate =
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
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
|
|
11
|
-
const
|
|
12
|
-
const
|
|
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}
|
|
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.
|
|
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
|
|
5
|
+
hoverTitle?: string;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
}
|
|
8
8
|
export default Label;
|