boottent-design 0.1.253 → 0.1.254
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/dist/DESIGN.md +2 -2
- package/dist/{camp-card-DpPDguik.js → camp-card-7lzkmQep.js} +76 -52
- package/dist/camp-card-Dr0h_TPh.cjs +1 -0
- package/dist/camp-card-format-QrakDFC6.js +91 -0
- package/dist/camp-card-format-rjZZu4G6.cjs +1 -0
- package/dist/components/camp-card.cjs.js +1 -1
- package/dist/components/camp-card.es.js +10 -2
- package/dist/components/mobile-camp-card.cjs.js +1 -1
- package/dist/components/mobile-camp-card.es.js +1 -1
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +32 -24
- package/dist/{mobile-camp-card-TKIjmsKH.js → mobile-camp-card-BOdQvH0P.js} +88 -65
- package/dist/mobile-camp-card-Bw4spa_e.cjs +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/camp-card.d.ts +50 -4
- package/dist/types/components.d.ts +65 -8
- package/dist/types/mobile-camp-card.d.ts +15 -4
- package/package.json +1 -1
- package/dist/camp-card-BbL3enBz.cjs +0 -1
- package/dist/mobile-camp-card-BMz6H6OF.cjs +0 -1
package/dist/DESIGN.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import "./ui/accordion.es.js";
|
|
3
3
|
import "./ui/alert-dialog.es.js";
|
|
4
4
|
import { c as u } from "./common-C3JaD1vJ.js";
|
|
@@ -30,15 +30,16 @@ import "@radix-ui/react-slider";
|
|
|
30
30
|
import "react";
|
|
31
31
|
import "./ui/switch.es.js";
|
|
32
32
|
import "./ui/tabs.es.js";
|
|
33
|
-
import { Tag as
|
|
33
|
+
import { Tag as Q } from "./ui/tag.es.js";
|
|
34
34
|
import "./ui/text.es.js";
|
|
35
35
|
import "./ui/textarea.es.js";
|
|
36
36
|
import "./ui/toast.es.js";
|
|
37
37
|
import "./ui/toggle.es.js";
|
|
38
38
|
import "./ui/toggle-group.es.js";
|
|
39
39
|
import "./ui/tooltip.es.js";
|
|
40
|
-
import { g as
|
|
41
|
-
|
|
40
|
+
import { g as R } from "./image-loading-BX5rKZfC.js";
|
|
41
|
+
import { d as V, a as X, c as Y } from "./camp-card-format-QrakDFC6.js";
|
|
42
|
+
function Z({ tag: e }) {
|
|
42
43
|
return /* @__PURE__ */ r("li", { className: "rounded", children: /* @__PURE__ */ r(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
@@ -52,96 +53,119 @@ function D({ tag: e }) {
|
|
|
52
53
|
}
|
|
53
54
|
) });
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function p(e, o = "sm") {
|
|
56
57
|
return /* @__PURE__ */ r(
|
|
57
|
-
|
|
58
|
+
Q,
|
|
58
59
|
{
|
|
59
60
|
style: {
|
|
60
61
|
background: e.background,
|
|
61
62
|
color: e.color,
|
|
62
63
|
border: `1px solid ${e.border ?? e.background ?? "transparent"}`
|
|
63
64
|
},
|
|
64
|
-
size:
|
|
65
|
-
variant:
|
|
65
|
+
size: o,
|
|
66
|
+
variant: o === "ad" ? "ad" : void 0,
|
|
66
67
|
className: e.className,
|
|
67
68
|
children: e.text
|
|
68
69
|
}
|
|
69
70
|
);
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Ge({
|
|
72
73
|
brandName: e,
|
|
73
|
-
title:
|
|
74
|
+
title: o,
|
|
74
75
|
batchName: f = "",
|
|
75
76
|
imageUrl: i,
|
|
76
77
|
imageAlt: h = "header image",
|
|
77
78
|
tuitionText: x,
|
|
78
|
-
locationText:
|
|
79
|
-
scheduleText:
|
|
79
|
+
locationText: v,
|
|
80
|
+
scheduleText: w,
|
|
81
|
+
startDate: b,
|
|
82
|
+
endDate: N,
|
|
83
|
+
period: g,
|
|
84
|
+
tuition: y,
|
|
85
|
+
earlyBirdTuition: k,
|
|
86
|
+
earlyBirdEndDate: C,
|
|
87
|
+
isFree: T,
|
|
88
|
+
onoffText: $,
|
|
89
|
+
cityLabels: j,
|
|
90
|
+
costOptionText: L,
|
|
80
91
|
tags: a = [],
|
|
81
92
|
statusBadge: n,
|
|
82
93
|
adBadge: m,
|
|
83
94
|
adTitle: s,
|
|
84
|
-
isAd:
|
|
85
|
-
className:
|
|
86
|
-
style:
|
|
87
|
-
bookmarkSlot:
|
|
88
|
-
latestBatchSlot:
|
|
89
|
-
imageOverlaySlot:
|
|
95
|
+
isAd: S = !1,
|
|
96
|
+
className: A,
|
|
97
|
+
style: B,
|
|
98
|
+
bookmarkSlot: D,
|
|
99
|
+
latestBatchSlot: E,
|
|
100
|
+
imageOverlaySlot: I,
|
|
90
101
|
imageWrapper: c,
|
|
91
|
-
imagePriority:
|
|
92
|
-
imageLoading:
|
|
93
|
-
imageFetchPriority:
|
|
94
|
-
imageDecoding:
|
|
102
|
+
imagePriority: q,
|
|
103
|
+
imageLoading: z,
|
|
104
|
+
imageFetchPriority: F,
|
|
105
|
+
imageDecoding: G
|
|
95
106
|
}) {
|
|
96
|
-
const
|
|
97
|
-
imagePriority:
|
|
98
|
-
imageLoading:
|
|
99
|
-
imageFetchPriority:
|
|
100
|
-
imageDecoding:
|
|
101
|
-
}),
|
|
107
|
+
const H = R({
|
|
108
|
+
imagePriority: q,
|
|
109
|
+
imageLoading: z,
|
|
110
|
+
imageFetchPriority: F,
|
|
111
|
+
imageDecoding: G
|
|
112
|
+
}), J = `${o} ${f || ""}`.trim(), K = x ?? L ?? V({
|
|
113
|
+
tuition: y ?? void 0,
|
|
114
|
+
isFree: T,
|
|
115
|
+
earlyBirdTuition: k ?? void 0,
|
|
116
|
+
earlyBirdEndDate: C ?? void 0
|
|
117
|
+
}), M = v ?? X({
|
|
118
|
+
onoffText: $,
|
|
119
|
+
cityLabels: j,
|
|
120
|
+
format: "desktop"
|
|
121
|
+
}), O = w ?? Y({
|
|
122
|
+
startDate: b,
|
|
123
|
+
endDate: N,
|
|
124
|
+
period: g
|
|
125
|
+
}), l = i ? /* @__PURE__ */ r("button", { type: "button", className: "absolute inset-0", children: /* @__PURE__ */ r(
|
|
102
126
|
"img",
|
|
103
127
|
{
|
|
104
128
|
src: i,
|
|
105
129
|
alt: h,
|
|
106
130
|
className: "h-full w-full object-cover transition-all hover:scale-110",
|
|
107
|
-
...
|
|
131
|
+
...H
|
|
108
132
|
}
|
|
109
133
|
) }) : null;
|
|
110
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ t(
|
|
111
135
|
"div",
|
|
112
136
|
{
|
|
113
137
|
className: u(
|
|
114
138
|
"bt-ds-surface bt-ds-text-reset relative flex h-full w-full flex-col overflow-hidden rounded-lg border border-grey-200 bg-white",
|
|
115
|
-
|
|
139
|
+
A
|
|
116
140
|
),
|
|
117
|
-
style:
|
|
141
|
+
style: B,
|
|
118
142
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
n ?
|
|
125
|
-
|
|
143
|
+
/* @__PURE__ */ t("div", { className: "relative aspect-[9/5] w-full shrink-0", children: [
|
|
144
|
+
/* @__PURE__ */ t("div", { className: "absolute inset-0 z-0 flex items-center justify-center overflow-hidden", children: [
|
|
145
|
+
l ? c ? c(l) : l : null,
|
|
146
|
+
I,
|
|
147
|
+
/* @__PURE__ */ t("div", { className: "absolute bottom-2 right-2 flex flex-col items-end gap-1", children: [
|
|
148
|
+
n ? p(n, "sm") : null,
|
|
149
|
+
E
|
|
126
150
|
] })
|
|
127
151
|
] }),
|
|
128
|
-
m ?
|
|
129
|
-
|
|
152
|
+
m ? p(m, "ad") : null,
|
|
153
|
+
D
|
|
130
154
|
] }),
|
|
131
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-2 p-4 text-regular14", children: [
|
|
132
156
|
/* @__PURE__ */ r("div", { children: e }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */ r("div", { className: "line-clamp-3 w-full text-semibold16 font-medium", children:
|
|
135
|
-
|
|
136
|
-
a.length > 0 ? /* @__PURE__ */ r("ul", { className: "flex w-full max-w-full shrink-0 grow-0 flex-wrap justify-start gap-[5px] overflow-x-hidden whitespace-normal", children: a.map((
|
|
157
|
+
/* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-3", children: [
|
|
158
|
+
/* @__PURE__ */ r("div", { className: "line-clamp-3 w-full text-semibold16 font-medium", children: J }),
|
|
159
|
+
S && s ? /* @__PURE__ */ r("div", { className: "line-clamp-2 break-keep rounded-md bg-yellow-400/50 px-2 py-1 text-grey-800", children: s }) : null,
|
|
160
|
+
a.length > 0 ? /* @__PURE__ */ r("ul", { className: "flex w-full max-w-full shrink-0 grow-0 flex-wrap justify-start gap-[5px] overflow-x-hidden whitespace-normal", children: a.map((d, P) => /* @__PURE__ */ r(Z, { tag: d }, `${String(d.text)}-${P}`)) }) : null
|
|
137
161
|
] }),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
-
/* @__PURE__ */ r("span", { children:
|
|
162
|
+
/* @__PURE__ */ t("div", { className: "flex w-full flex-col gap-2 text-regular13", children: [
|
|
163
|
+
/* @__PURE__ */ t("p", { className: "w-full overflow-hidden truncate whitespace-nowrap", children: [
|
|
164
|
+
/* @__PURE__ */ r("span", { children: K }),
|
|
141
165
|
" · ",
|
|
142
|
-
/* @__PURE__ */ r("span", { children:
|
|
166
|
+
/* @__PURE__ */ r("span", { children: M })
|
|
143
167
|
] }),
|
|
144
|
-
/* @__PURE__ */ r("p", { className: "w-full overflow-hidden truncate whitespace-nowrap", children:
|
|
168
|
+
/* @__PURE__ */ r("p", { className: "w-full overflow-hidden truncate whitespace-nowrap", children: O })
|
|
145
169
|
] })
|
|
146
170
|
] })
|
|
147
171
|
]
|
|
@@ -149,5 +173,5 @@ function ge({
|
|
|
149
173
|
);
|
|
150
174
|
}
|
|
151
175
|
export {
|
|
152
|
-
|
|
176
|
+
Ge as C
|
|
153
177
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime");require("./ui/accordion.cjs.js");require("./ui/alert-dialog.cjs.js");const m=require("./common-Ds1lanOg.cjs");require("@radix-ui/react-aspect-ratio");require("./ui/avatar.cjs.js");require("./ui/badge.cjs.js");require("./ui/button.cjs.js");require("./ui/calendar.cjs.js");require("./ui/callout.cjs.js");require("./ui/card.cjs.js");require("./ui/checkbox.cjs.js");require("lucide-react");require("./ui/command.cjs.js");require("./ui/dialog.cjs.js");require("./ui/dropdown-menu.cjs.js");require("./ui/file-uploader.cjs.js");require("./ui/form.cjs.js");require("./ui/input.cjs.js");require("./ui/label.cjs.js");require("./ui/month-picker.cjs.js");require("./ui/multi-select.cjs.js");require("./ui/navigation-menu.cjs.js");require("./ui/popover.cjs.js");require("./ui/radio-group.cjs.js");require("./ui/scroll-area.cjs.js");require("./ui/select.cjs.js");require("./ui/separator.cjs.js");require("@radix-ui/react-slider");require("react");require("./ui/switch.cjs.js");require("./ui/tabs.cjs.js");const O=require("./ui/tag.cjs.js");require("./ui/text.cjs.js");require("./ui/textarea.cjs.js");require("./ui/toast.cjs.js");require("./ui/toggle.cjs.js");require("./ui/toggle-group.cjs.js");require("./ui/tooltip.cjs.js");const P=require("./image-loading-DZFBFoVv.cjs"),s=require("./camp-card-format-rjZZu4G6.cjs");function Q({tag:r}){return e.jsx("li",{className:"rounded",children:e.jsx("div",{style:{color:r.color,backgroundColor:r.background,border:`1px solid ${r.border??"transparent"}`},className:m.cn("inline-block whitespace-nowrap rounded px-1 py-0.5 text-regular13",r.className),children:r.text})})}function x(r,i="sm"){return e.jsx(O.Tag,{style:{background:r.background,color:r.color,border:`1px solid ${r.border??r.background??"transparent"}`},size:i,variant:i==="ad"?"ad":void 0,className:r.className,children:r.text})}function V({brandName:r,title:i,batchName:f="",imageUrl:a,imageAlt:q="header image",tuitionText:h,locationText:p,scheduleText:v,startDate:w,endDate:g,period:j,tuition:b,earlyBirdTuition:N,earlyBirdEndDate:C,isFree:y,onoffText:k,cityLabels:T,costOptionText:L,tags:t=[],statusBadge:n,adBadge:o,adTitle:u,isAd:$=!1,className:S,style:A,bookmarkSlot:B,latestBatchSlot:D,imageOverlaySlot:E,imageWrapper:c,imagePriority:F,imageLoading:I,imageFetchPriority:R,imageDecoding:_}){const z=P.getImageLoadingAttributes({imagePriority:F,imageLoading:I,imageFetchPriority:R,imageDecoding:_}),G=`${i} ${f||""}`.trim(),H=h??L??s.formatCampCardTuitionText({tuition:b??void 0,isFree:y,earlyBirdTuition:N??void 0,earlyBirdEndDate:C??void 0}),J=p??s.formatCampCardLocationText({onoffText:k,cityLabels:T,format:"desktop"}),K=v??s.formatCampCardScheduleText({startDate:w,endDate:g,period:j}),l=a?e.jsx("button",{type:"button",className:"absolute inset-0",children:e.jsx("img",{src:a,alt:q,className:"h-full w-full object-cover transition-all hover:scale-110",...z})}):null;return e.jsxs("div",{className:m.cn("bt-ds-surface bt-ds-text-reset relative flex h-full w-full flex-col overflow-hidden rounded-lg border border-grey-200 bg-white",S),style:A,children:[e.jsxs("div",{className:"relative aspect-[9/5] w-full shrink-0",children:[e.jsxs("div",{className:"absolute inset-0 z-0 flex items-center justify-center overflow-hidden",children:[l?c?c(l):l:null,E,e.jsxs("div",{className:"absolute bottom-2 right-2 flex flex-col items-end gap-1",children:[n?x(n,"sm"):null,D]})]}),o?x(o,"ad"):null,B]}),e.jsxs("div",{className:"flex flex-col gap-2 p-4 text-regular14",children:[e.jsx("div",{children:r}),e.jsxs("div",{className:"flex w-full flex-col gap-3",children:[e.jsx("div",{className:"line-clamp-3 w-full text-semibold16 font-medium",children:G}),$&&u?e.jsx("div",{className:"line-clamp-2 break-keep rounded-md bg-yellow-400/50 px-2 py-1 text-grey-800",children:u}):null,t.length>0?e.jsx("ul",{className:"flex w-full max-w-full shrink-0 grow-0 flex-wrap justify-start gap-[5px] overflow-x-hidden whitespace-normal",children:t.map((d,M)=>e.jsx(Q,{tag:d},`${String(d.text)}-${M}`))}):null]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 text-regular13",children:[e.jsxs("p",{className:"w-full overflow-hidden truncate whitespace-nowrap",children:[e.jsx("span",{children:H})," · ",e.jsx("span",{children:J})]}),e.jsx("p",{className:"w-full overflow-hidden truncate whitespace-nowrap",children:K})]})]})]})}exports.CampCard=V;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const c = (e) => {
|
|
2
|
+
if (!e || typeof e != "string") return null;
|
|
3
|
+
const r = f(e), [t, o] = r.split(" ");
|
|
4
|
+
if (!t) return null;
|
|
5
|
+
const [n, i, u] = t.split("-");
|
|
6
|
+
return !n || !i || !u ? null : {
|
|
7
|
+
year: n,
|
|
8
|
+
shortYear: n.slice(2),
|
|
9
|
+
month: i,
|
|
10
|
+
monthNumber: Number(i),
|
|
11
|
+
day: u,
|
|
12
|
+
time: o
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
function f(e) {
|
|
16
|
+
if (typeof e != "string") return "";
|
|
17
|
+
const r = e.trim();
|
|
18
|
+
if (!r) return "";
|
|
19
|
+
const t = r.split(" ");
|
|
20
|
+
return t.length === 3 && t[1] === "00:00" ? `${t[0]} ${t[2]}` : t.length === 2 ? `${t[0]} ${t[1]}` : r;
|
|
21
|
+
}
|
|
22
|
+
function a(e) {
|
|
23
|
+
const r = c(e);
|
|
24
|
+
if (!r) return "";
|
|
25
|
+
const { year: t, month: o, day: n, time: i } = r;
|
|
26
|
+
if (n === "98") return `${t}년 ${Number(o)}월중`;
|
|
27
|
+
if (n === "99") return `${t}년 ${Number(o)}월중(예상)`;
|
|
28
|
+
const u = `${t}.${o}.${n}`;
|
|
29
|
+
return !i || i === "23:59" || i === "00:00" ? u : `${u} ${i}`;
|
|
30
|
+
}
|
|
31
|
+
function m(e) {
|
|
32
|
+
const r = Number(e);
|
|
33
|
+
if (!Number.isFinite(r)) return "";
|
|
34
|
+
if (r < 7)
|
|
35
|
+
return r <= 0 ? "하루" : `${r + 1}일`;
|
|
36
|
+
if (r < 60) return `약 ${Math.round(r / 7)}주`;
|
|
37
|
+
const t = Math.floor(r / 30), o = r % 30;
|
|
38
|
+
return o >= 10 && o < 20 ? `약 ${t}.5개월` : `약 ${Math.round(r / 30)}개월`;
|
|
39
|
+
}
|
|
40
|
+
function $({
|
|
41
|
+
startDate: e,
|
|
42
|
+
endDate: r,
|
|
43
|
+
period: t
|
|
44
|
+
}) {
|
|
45
|
+
const o = a(e).slice(2), n = a(r).slice(2), i = m(t);
|
|
46
|
+
return !o && !n && !i ? "" : `${o} ~ ${n} (${i})`;
|
|
47
|
+
}
|
|
48
|
+
function d({
|
|
49
|
+
onoffText: e = "",
|
|
50
|
+
cityLabels: r,
|
|
51
|
+
format: t = "desktop"
|
|
52
|
+
}) {
|
|
53
|
+
const o = r ?? [], n = o.length > 0 ? `(${o.join(", ")})` : "";
|
|
54
|
+
return t === "mobile" ? `${e || ""}${n ? ` ${n}` : ""}` : `${e || ""} ${n}`;
|
|
55
|
+
}
|
|
56
|
+
function p({
|
|
57
|
+
tuition: e,
|
|
58
|
+
isFree: r,
|
|
59
|
+
earlyBirdTuition: t,
|
|
60
|
+
earlyBirdEndDate: o
|
|
61
|
+
}) {
|
|
62
|
+
const n = Number(e ?? 0);
|
|
63
|
+
return r ?? (!n || n === 0) ? "무료" : t && l({ tuition: n, earlyBirdTuition: t, earlyBirdEndDate: o }) ? s(t) : s(n);
|
|
64
|
+
}
|
|
65
|
+
function s(e, r = "default") {
|
|
66
|
+
const t = Number(e ?? 0);
|
|
67
|
+
return t < 10 || r === "raw" ? `${(t * 1e4).toLocaleString()}원` : e ? `${t.toLocaleString()}만원` : "";
|
|
68
|
+
}
|
|
69
|
+
function l({
|
|
70
|
+
tuition: e,
|
|
71
|
+
earlyBirdTuition: r,
|
|
72
|
+
earlyBirdEndDate: t
|
|
73
|
+
}) {
|
|
74
|
+
if (!(!!r && r !== 0 && Number(e ?? 0) > r)) return !1;
|
|
75
|
+
if (t) {
|
|
76
|
+
const n = Date.now(), i = new Date(n);
|
|
77
|
+
i.setHours(i.getHours() + 9);
|
|
78
|
+
const [u] = i.toISOString().split("T");
|
|
79
|
+
return u.localeCompare(t) <= 0;
|
|
80
|
+
}
|
|
81
|
+
return !0;
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
d as a,
|
|
85
|
+
m as b,
|
|
86
|
+
$ as c,
|
|
87
|
+
p as d,
|
|
88
|
+
s as e,
|
|
89
|
+
a as f,
|
|
90
|
+
l as i
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=e=>{if(!e||typeof e!="string")return null;const r=l(e),[t,o]=r.split(" ");if(!t)return null;const[n,i,a]=t.split("-");return!n||!i||!a?null:{year:n,shortYear:n.slice(2),month:i,monthNumber:Number(i),day:a,time:o}};function l(e){if(typeof e!="string")return"";const r=e.trim();if(!r)return"";const t=r.split(" ");return t.length===3&&t[1]==="00:00"?`${t[0]} ${t[2]}`:t.length===2?`${t[0]} ${t[1]}`:r}function s(e){const r=c(e);if(!r)return"";const{year:t,month:o,day:n,time:i}=r;if(n==="98")return`${t}년 ${Number(o)}월중`;if(n==="99")return`${t}년 ${Number(o)}월중(예상)`;const a=`${t}.${o}.${n}`;return!i||i==="23:59"||i==="00:00"?a:`${a} ${i}`}function f(e){const r=Number(e);if(!Number.isFinite(r))return"";if(r<7)return r<=0?"하루":`${r+1}일`;if(r<60)return`약 ${Math.round(r/7)}주`;const t=Math.floor(r/30),o=r%30;return o>=10&&o<20?`약 ${t}.5개월`:`약 ${Math.round(r/30)}개월`}function d({startDate:e,endDate:r,period:t}){const o=s(e).slice(2),n=s(r).slice(2),i=f(t);return!o&&!n&&!i?"":`${o} ~ ${n} (${i})`}function p({onoffText:e="",cityLabels:r,format:t="desktop"}){const o=r??[],n=o.length>0?`(${o.join(", ")})`:"";return t==="mobile"?`${e||""}${n?` ${n}`:""}`:`${e||""} ${n}`}function $({tuition:e,isFree:r,earlyBirdTuition:t,earlyBirdEndDate:o}){const n=Number(e??0);return r??(!n||n===0)?"무료":t&&m({tuition:n,earlyBirdTuition:t,earlyBirdEndDate:o})?u(t):u(n)}function u(e,r="default"){const t=Number(e??0);return t<10||r==="raw"?`${(t*1e4).toLocaleString()}원`:e?`${t.toLocaleString()}만원`:""}function m({tuition:e,earlyBirdTuition:r,earlyBirdEndDate:t}){if(!(!!r&&r!==0&&Number(e??0)>r))return!1;if(t){const n=Date.now(),i=new Date(n);i.setHours(i.getHours()+9);const[a]=i.toISOString().split("T");return a.localeCompare(t)<=0}return!0}exports.formatCampCardDateText=s;exports.formatCampCardLocationText=p;exports.formatCampCardPeriodText=f;exports.formatCampCardScheduleText=d;exports.formatCampCardTuitionText=$;exports.formatTuitionAmountText=u;exports.isEarlyBirdApplied=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../camp-card-Dr0h_TPh.cjs"),a=require("../camp-card-format-rjZZu4G6.cjs");exports.CampCard=t.CampCard;exports.formatCampCardDateText=a.formatCampCardDateText;exports.formatCampCardLocationText=a.formatCampCardLocationText;exports.formatCampCardPeriodText=a.formatCampCardPeriodText;exports.formatCampCardScheduleText=a.formatCampCardScheduleText;exports.formatCampCardTuitionText=a.formatCampCardTuitionText;exports.formatTuitionAmountText=a.formatTuitionAmountText;exports.isEarlyBirdApplied=a.isEarlyBirdApplied;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as r } from "../camp-card-
|
|
2
|
+
import { C as r } from "../camp-card-7lzkmQep.js";
|
|
3
|
+
import { f as o, a as m, b as C, c as d, d as i, e as p, i as s } from "../camp-card-format-QrakDFC6.js";
|
|
3
4
|
export {
|
|
4
|
-
r as CampCard
|
|
5
|
+
r as CampCard,
|
|
6
|
+
o as formatCampCardDateText,
|
|
7
|
+
m as formatCampCardLocationText,
|
|
8
|
+
C as formatCampCardPeriodText,
|
|
9
|
+
d as formatCampCardScheduleText,
|
|
10
|
+
i as formatCampCardTuitionText,
|
|
11
|
+
p as formatTuitionAmountText,
|
|
12
|
+
s as isEarlyBirdApplied
|
|
5
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../mobile-camp-card-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../mobile-camp-card-Bw4spa_e.cjs");exports.MobileCampCard=e.MobileCampCard;
|
package/dist/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./event-card-B7TYQ2do.cjs"),a=require("./main-banner-image-DdV4qseq.cjs"),o=require("./premium-card-Diea6qG_.cjs"),i=require("./title-tag-card-Cn0V-8Ga.cjs"),n=require("./article-asset-card-CM_WiHYI.cjs"),C=require("./blog-review-card-OX6KhSpS.cjs"),d=require("./camp-card-Dr0h_TPh.cjs"),e=require("./camp-card-format-rjZZu4G6.cjs"),s=require("./company-info-card-H1BDbRoL.cjs"),m=require("./environment-asset-photo-CXxtAAax.cjs"),u=require("./event-asset-banner-BRsgu3Hc.cjs"),c=require("./lecturer-card-CGPXVDdx.cjs"),l=require("./partner-list-card-DL_omz4v.cjs"),p=require("./mobile-camp-card-Bw4spa_e.cjs"),r=require("./portfolio-asset-card-BlgNFtHc.cjs"),T=require("./youtube-video-modal-pooOcDO1.cjs");exports.EventCard=t.EventCard;exports.MainBannerImage=a.MainBannerImage;exports.PremiumCard=o.PremiumCard;exports.TitleTagCard=i.TitleTagCard;exports.ArticleAssetCard=n.ArticleAssetCard;exports.BlogReviewCard=C.BlogReviewCard;exports.CampCard=d.CampCard;exports.formatCampCardDateText=e.formatCampCardDateText;exports.formatCampCardLocationText=e.formatCampCardLocationText;exports.formatCampCardPeriodText=e.formatCampCardPeriodText;exports.formatCampCardScheduleText=e.formatCampCardScheduleText;exports.formatCampCardTuitionText=e.formatCampCardTuitionText;exports.formatTuitionAmountText=e.formatTuitionAmountText;exports.isEarlyBirdApplied=e.isEarlyBirdApplied;exports.CompanyInfoCard=s.CompanyInfoCard;exports.EnvironmentAssetPhoto=m.EnvironmentAssetPhoto;exports.EventAssetBanner=u.EventAssetBanner;exports.LecturerCard=c.LecturerCard;exports.PartnerListCard=l.PartnerListCard;exports.MobileCampCard=p.MobileCampCard;exports.PortfolioAssetCard=r.PortfolioAssetCard;exports.PortfolioAssetFooter=r.PortfolioAssetFooter;exports.YoutubeVideoModal=T.YoutubeVideoModal;
|
package/dist/components.es.js
CHANGED
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { E as
|
|
2
|
+
import { E as o } from "./event-card-DoePuHu8.js";
|
|
3
3
|
import { M as t } from "./main-banner-image-DoYpMy7T.js";
|
|
4
4
|
import { P as m } from "./premium-card-BzFA2A5p.js";
|
|
5
5
|
import { T as p } from "./title-tag-card-CEjHX43m.js";
|
|
6
|
-
import { A as
|
|
7
|
-
import { B as
|
|
8
|
-
import { C as l } from "./camp-card-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { E as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
6
|
+
import { A as d } from "./article-asset-card-lw8aNjSM.js";
|
|
7
|
+
import { B as x } from "./blog-review-card-DTM0poKi.js";
|
|
8
|
+
import { C as l } from "./camp-card-7lzkmQep.js";
|
|
9
|
+
import { f as u, a as A, b as P, c as E, d as c, e as B, i as M } from "./camp-card-format-QrakDFC6.js";
|
|
10
|
+
import { C as L } from "./company-info-card-BVCaYbYN.js";
|
|
11
|
+
import { E as g } from "./environment-asset-photo-BCR9v2we.js";
|
|
12
|
+
import { E as y } from "./event-asset-banner-CbhdfmpK.js";
|
|
13
|
+
import { L as Y } from "./lecturer-card-B80BJVu3.js";
|
|
14
|
+
import { P as D } from "./partner-list-card-Bx-UZxGG.js";
|
|
15
|
+
import { M as R } from "./mobile-camp-card-BOdQvH0P.js";
|
|
16
|
+
import { P as V, a as j } from "./portfolio-asset-card-C_opxeH0.js";
|
|
17
|
+
import { Y as q } from "./youtube-video-modal-CENnr9lf.js";
|
|
17
18
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
d as ArticleAssetCard,
|
|
20
|
+
x as BlogReviewCard,
|
|
20
21
|
l as CampCard,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
L as CompanyInfoCard,
|
|
23
|
+
g as EnvironmentAssetPhoto,
|
|
24
|
+
y as EventAssetBanner,
|
|
25
|
+
o as EventCard,
|
|
26
|
+
Y as LecturerCard,
|
|
26
27
|
t as MainBannerImage,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
R as MobileCampCard,
|
|
29
|
+
D as PartnerListCard,
|
|
30
|
+
V as PortfolioAssetCard,
|
|
31
|
+
j as PortfolioAssetFooter,
|
|
31
32
|
m as PremiumCard,
|
|
32
33
|
p as TitleTagCard,
|
|
33
|
-
|
|
34
|
+
q as YoutubeVideoModal,
|
|
35
|
+
u as formatCampCardDateText,
|
|
36
|
+
A as formatCampCardLocationText,
|
|
37
|
+
P as formatCampCardPeriodText,
|
|
38
|
+
E as formatCampCardScheduleText,
|
|
39
|
+
c as formatCampCardTuitionText,
|
|
40
|
+
B as formatTuitionAmountText,
|
|
41
|
+
M as isEarlyBirdApplied
|
|
34
42
|
};
|