boottent-design 0.1.253 → 0.1.255
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-BJi4yJLI.js} +89 -66
- package/dist/mobile-camp-card-SBt5pHHv.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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "./ui/accordion.es.js";
|
|
3
3
|
import "./ui/alert-dialog.es.js";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as a } from "./common-C3JaD1vJ.js";
|
|
5
5
|
import "@radix-ui/react-aspect-ratio";
|
|
6
6
|
import "./ui/avatar.es.js";
|
|
7
7
|
import "./ui/badge.es.js";
|
|
@@ -30,18 +30,19 @@ 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 V } 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 W } from "./image-loading-BX5rKZfC.js";
|
|
41
|
+
import { d as X, a as Y, c as Z } from "./camp-card-format-QrakDFC6.js";
|
|
42
|
+
function h({ children: e }) {
|
|
42
43
|
return /* @__PURE__ */ r("div", { className: "whitespace-nowrap rounded border border-transparent bg-grey-100 px-[5px] py-0.5 text-regular13 text-grey-600", children: e });
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function _({ tag: e }) {
|
|
45
46
|
return /* @__PURE__ */ r("li", { className: "rounded", children: /* @__PURE__ */ r(
|
|
46
47
|
"div",
|
|
47
48
|
{
|
|
@@ -50,14 +51,14 @@ function F({ tag: e }) {
|
|
|
50
51
|
backgroundColor: e.background,
|
|
51
52
|
border: `1px solid ${e.border ?? "transparent"}`
|
|
52
53
|
},
|
|
53
|
-
className:
|
|
54
|
+
className: a("inline-block whitespace-nowrap rounded px-1 py-0.5 text-regular13", e.className),
|
|
54
55
|
children: e.text
|
|
55
56
|
}
|
|
56
57
|
) });
|
|
57
58
|
}
|
|
58
59
|
function g(e) {
|
|
59
60
|
return /* @__PURE__ */ r(
|
|
60
|
-
|
|
61
|
+
V,
|
|
61
62
|
{
|
|
62
63
|
variant: "ad",
|
|
63
64
|
size: "ad",
|
|
@@ -66,107 +67,129 @@ function g(e) {
|
|
|
66
67
|
backgroundColor: e.background,
|
|
67
68
|
border: e.border ? `1px solid ${e.border}` : void 0
|
|
68
69
|
},
|
|
69
|
-
className:
|
|
70
|
+
className: a("text-xs", e.className),
|
|
70
71
|
children: e.text
|
|
71
72
|
}
|
|
72
73
|
);
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function Ge({
|
|
75
76
|
brandName: e,
|
|
76
77
|
title: w,
|
|
77
|
-
batchName:
|
|
78
|
-
imageUrl:
|
|
79
|
-
imageAlt:
|
|
80
|
-
tuitionText:
|
|
81
|
-
locationText:
|
|
78
|
+
batchName: v = "",
|
|
79
|
+
imageUrl: s,
|
|
80
|
+
imageAlt: b,
|
|
81
|
+
tuitionText: y,
|
|
82
|
+
locationText: N,
|
|
82
83
|
scheduleText: $,
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
startDate: k,
|
|
85
|
+
endDate: C,
|
|
86
|
+
period: j,
|
|
87
|
+
tuition: L,
|
|
88
|
+
earlyBirdTuition: S,
|
|
89
|
+
earlyBirdEndDate: I,
|
|
90
|
+
isFree: T,
|
|
91
|
+
onoffText: z,
|
|
92
|
+
cityLabels: M,
|
|
93
|
+
tags: m = [],
|
|
94
|
+
statusBadge: p,
|
|
85
95
|
adBadge: n,
|
|
86
|
-
adTitle:
|
|
87
|
-
isAd:
|
|
88
|
-
isShowRegTag:
|
|
96
|
+
adTitle: l,
|
|
97
|
+
isAd: o = !1,
|
|
98
|
+
isShowRegTag: q = !1,
|
|
89
99
|
earlyBirdText: c,
|
|
90
100
|
afterTuitionText: d,
|
|
91
101
|
govtCostText: u,
|
|
92
|
-
height:
|
|
93
|
-
className:
|
|
94
|
-
bookmarkSlot:
|
|
95
|
-
imageOverlaySlot:
|
|
96
|
-
imagePriority:
|
|
97
|
-
imageLoading:
|
|
98
|
-
imageFetchPriority:
|
|
99
|
-
imageDecoding:
|
|
102
|
+
height: A,
|
|
103
|
+
className: D,
|
|
104
|
+
bookmarkSlot: E,
|
|
105
|
+
imageOverlaySlot: P,
|
|
106
|
+
imagePriority: B,
|
|
107
|
+
imageLoading: F,
|
|
108
|
+
imageFetchPriority: G,
|
|
109
|
+
imageDecoding: H
|
|
100
110
|
}) {
|
|
101
|
-
const
|
|
102
|
-
imagePriority:
|
|
103
|
-
imageLoading:
|
|
104
|
-
imageFetchPriority:
|
|
105
|
-
imageDecoding:
|
|
106
|
-
}),
|
|
107
|
-
|
|
111
|
+
const J = W({
|
|
112
|
+
imagePriority: B,
|
|
113
|
+
imageLoading: F,
|
|
114
|
+
imageFetchPriority: G,
|
|
115
|
+
imageDecoding: H
|
|
116
|
+
}), i = `${w} ${v || ""}`.trim(), x = b ?? `${e} ${i} | ${l || ""}`.trim(), K = y ?? X({
|
|
117
|
+
tuition: L ?? void 0,
|
|
118
|
+
isFree: T,
|
|
119
|
+
earlyBirdTuition: S ?? void 0,
|
|
120
|
+
earlyBirdEndDate: I ?? void 0
|
|
121
|
+
}), O = N ?? Y({
|
|
122
|
+
onoffText: z,
|
|
123
|
+
cityLabels: M,
|
|
124
|
+
format: "mobile"
|
|
125
|
+
}), Q = $ ?? Z({
|
|
126
|
+
startDate: k,
|
|
127
|
+
endDate: C,
|
|
128
|
+
period: j
|
|
129
|
+
});
|
|
130
|
+
return /* @__PURE__ */ t(
|
|
108
131
|
"div",
|
|
109
132
|
{
|
|
110
|
-
style: { height:
|
|
111
|
-
className:
|
|
133
|
+
style: { height: A },
|
|
134
|
+
className: a(
|
|
112
135
|
"bt-ds-surface bt-ds-text-reset relative z-10 box-border flex h-full w-full flex-col overflow-hidden rounded-[10px] border border-grey-200 bg-white p-4 md:p-[25px] lg:h-[226px] lg:p-[30px]",
|
|
113
|
-
|
|
136
|
+
D
|
|
114
137
|
),
|
|
115
138
|
children: [
|
|
116
139
|
n ? g(n) : null,
|
|
117
|
-
!
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */ r("
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
"
|
|
140
|
+
!o && q && p ? /* @__PURE__ */ r("div", { className: "absolute right-0 top-0 break-keep", children: g(p) }) : null,
|
|
141
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col justify-center gap-2 overflow-hidden md:gap-4", children: [
|
|
142
|
+
/* @__PURE__ */ t("div", { className: "flex items-start justify-between gap-4", children: [
|
|
143
|
+
/* @__PURE__ */ t("div", { className: "flex w-[calc(100%-110px)] flex-col gap-2 md:gap-4", children: [
|
|
144
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col gap-2 md:gap-[15px]", children: [
|
|
145
|
+
/* @__PURE__ */ r("p", { className: "text-regular13", children: e }),
|
|
146
|
+
/* @__PURE__ */ t(
|
|
147
|
+
"p",
|
|
125
148
|
{
|
|
126
149
|
className: "line-clamp-2 max-h-12 text-sm font-medium md:text-medium14",
|
|
127
|
-
title: `${e} ${
|
|
150
|
+
title: `${e} ${i} ${o && l ? l : ""}`.trim(),
|
|
128
151
|
children: [
|
|
129
|
-
|
|
152
|
+
i,
|
|
130
153
|
/* @__PURE__ */ r("span", { className: "sr-only", children: e })
|
|
131
154
|
]
|
|
132
155
|
}
|
|
133
156
|
),
|
|
134
|
-
|
|
135
|
-
"
|
|
157
|
+
o && l ? /* @__PURE__ */ r(
|
|
158
|
+
"p",
|
|
136
159
|
{
|
|
137
160
|
className: "line-clamp-2 break-keep rounded-md bg-yellow-400/50 px-2 py-1 text-[13px] text-grey-800 md:text-regular16 md:text-grey-800",
|
|
138
|
-
title:
|
|
139
|
-
children:
|
|
161
|
+
title: l,
|
|
162
|
+
children: l
|
|
140
163
|
}
|
|
141
164
|
) : null
|
|
142
165
|
] }),
|
|
143
|
-
|
|
166
|
+
m.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: m.map((f, R) => /* @__PURE__ */ r(_, { tag: f }, `${String(f.text)}-${R}`)) }) : null
|
|
144
167
|
] }),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
147
|
-
|
|
168
|
+
/* @__PURE__ */ t("div", { className: "bt-ds-surface bt-ds-radius-10 relative mt-7 flex aspect-square w-[88px] shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 bg-grey-100 md:w-[99px] lg:w-28", children: [
|
|
169
|
+
s ? /* @__PURE__ */ r("img", { src: s, alt: x, className: "h-full w-full object-cover", ...J }) : null,
|
|
170
|
+
P,
|
|
148
171
|
/* @__PURE__ */ r("span", { className: "sr-only", children: x })
|
|
149
172
|
] })
|
|
150
173
|
] }),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
/* @__PURE__ */ r("p", { children:
|
|
155
|
-
c ? /* @__PURE__ */ r(
|
|
174
|
+
/* @__PURE__ */ t("div", { className: "mt-2 flex w-full flex-col gap-2 text-regular13", children: [
|
|
175
|
+
/* @__PURE__ */ t("div", { className: "flex w-full items-center justify-start overflow-hidden truncate whitespace-nowrap ", children: [
|
|
176
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-1 whitespace-nowrap", children: [
|
|
177
|
+
/* @__PURE__ */ r("p", { children: K }),
|
|
178
|
+
c ? /* @__PURE__ */ r(h, { children: c }) : null,
|
|
156
179
|
d ? /* @__PURE__ */ r("div", { children: d }) : null,
|
|
157
|
-
u ? /* @__PURE__ */ r(
|
|
180
|
+
u ? /* @__PURE__ */ r(h, { children: u }) : null
|
|
158
181
|
] }),
|
|
159
182
|
" · ",
|
|
160
|
-
/* @__PURE__ */ r("span", { children:
|
|
183
|
+
/* @__PURE__ */ r("span", { children: O })
|
|
161
184
|
] }),
|
|
162
|
-
/* @__PURE__ */ r("p", { className: "w-full overflow-hidden truncate whitespace-nowrap", children:
|
|
185
|
+
/* @__PURE__ */ r("p", { className: "w-full overflow-hidden truncate whitespace-nowrap", children: Q })
|
|
163
186
|
] })
|
|
164
187
|
] }),
|
|
165
|
-
|
|
188
|
+
E
|
|
166
189
|
]
|
|
167
190
|
}
|
|
168
191
|
);
|
|
169
192
|
}
|
|
170
193
|
export {
|
|
171
|
-
|
|
194
|
+
Ge as M
|
|
172
195
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime");require("./ui/accordion.cjs.js");require("./ui/alert-dialog.cjs.js");const a=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 Q=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 V=require("./image-loading-DZFBFoVv.cjs"),t=require("./camp-card-format-rjZZu4G6.cjs");function h({children:r}){return e.jsx("div",{className:"whitespace-nowrap rounded border border-transparent bg-grey-100 px-[5px] py-0.5 text-regular13 text-grey-600",children:r})}function W({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:a.cn("inline-block whitespace-nowrap rounded px-1 py-0.5 text-regular13",r.className),children:r.text})})}function q(r){return e.jsx(Q.Tag,{variant:"ad",size:"ad",style:{color:r.color,backgroundColor:r.background,border:r.border?`1px solid ${r.border}`:void 0},className:a.cn("text-xs",r.className),children:r.text})}function X({brandName:r,title:g,batchName:j="",imageUrl:n,imageAlt:w,tuitionText:v,locationText:b,scheduleText:y,startDate:N,endDate:C,period:$,tuition:k,earlyBirdTuition:L,earlyBirdEndDate:S,isFree:I,onoffText:T,cityLabels:z,tags:o=[],statusBadge:c,adBadge:d,adTitle:l,isAd:i=!1,isShowRegTag:M=!1,earlyBirdText:u,afterTuitionText:x,govtCostText:m,height:A,className:D,bookmarkSlot:E,imageOverlaySlot:F,imagePriority:P,imageLoading:R,imageFetchPriority:_,imageDecoding:B}){const G=V.getImageLoadingAttributes({imagePriority:P,imageLoading:R,imageFetchPriority:_,imageDecoding:B}),s=`${g} ${j||""}`.trim(),p=w??`${r} ${s} | ${l||""}`.trim(),H=v??t.formatCampCardTuitionText({tuition:k??void 0,isFree:I,earlyBirdTuition:L??void 0,earlyBirdEndDate:S??void 0}),J=b??t.formatCampCardLocationText({onoffText:T,cityLabels:z,format:"mobile"}),K=y??t.formatCampCardScheduleText({startDate:N,endDate:C,period:$});return e.jsxs("div",{style:{height:A},className:a.cn("bt-ds-surface bt-ds-text-reset relative z-10 box-border flex h-full w-full flex-col overflow-hidden rounded-[10px] border border-grey-200 bg-white p-4 md:p-[25px] lg:h-[226px] lg:p-[30px]",D),children:[d?q(d):null,!i&&M&&c?e.jsx("div",{className:"absolute right-0 top-0 break-keep",children:q(c)}):null,e.jsxs("div",{className:"flex flex-col justify-center gap-2 overflow-hidden md:gap-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex w-[calc(100%-110px)] flex-col gap-2 md:gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-2 md:gap-[15px]",children:[e.jsx("p",{className:"text-regular13",children:r}),e.jsxs("p",{className:"line-clamp-2 max-h-12 text-sm font-medium md:text-medium14",title:`${r} ${s} ${i&&l?l:""}`.trim(),children:[s,e.jsx("span",{className:"sr-only",children:r})]}),i&&l?e.jsx("p",{className:"line-clamp-2 break-keep rounded-md bg-yellow-400/50 px-2 py-1 text-[13px] text-grey-800 md:text-regular16 md:text-grey-800",title:l,children:l}):null]}),o.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:o.map((f,O)=>e.jsx(W,{tag:f},`${String(f.text)}-${O}`))}):null]}),e.jsxs("div",{className:"bt-ds-surface bt-ds-radius-10 relative mt-7 flex aspect-square w-[88px] shrink-0 items-center justify-center overflow-hidden rounded-[10px] border border-grey-200 bg-grey-100 md:w-[99px] lg:w-28",children:[n?e.jsx("img",{src:n,alt:p,className:"h-full w-full object-cover",...G}):null,F,e.jsx("span",{className:"sr-only",children:p})]})]}),e.jsxs("div",{className:"mt-2 flex w-full flex-col gap-2 text-regular13",children:[e.jsxs("div",{className:"flex w-full items-center justify-start overflow-hidden truncate whitespace-nowrap ",children:[e.jsxs("div",{className:"flex items-center gap-1 whitespace-nowrap",children:[e.jsx("p",{children:H}),u?e.jsx(h,{children:u}):null,x?e.jsx("div",{children:x}):null,m?e.jsx(h,{children:m}):null]})," · ",e.jsx("span",{children:J})]}),e.jsx("p",{className:"w-full overflow-hidden truncate whitespace-nowrap",children:K})]})]}),E]})}exports.MobileCampCard=X;
|