boottent-design 0.1.271 → 0.1.273
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 +1 -0
- package/dist/article-card-AKV7qtq6.js +31 -0
- package/dist/article-card-ocD4sDG2.cjs +1 -0
- package/dist/components/article-card.cjs.js +1 -0
- package/dist/components/article-card.es.js +5 -0
- package/dist/components/crew-content-card.cjs.js +1 -0
- package/dist/components/crew-content-card.es.js +5 -0
- package/dist/components/lecturer-card.cjs.js +1 -1
- package/dist/components/lecturer-card.es.js +1 -1
- package/dist/components/question-card.cjs.js +1 -0
- package/dist/components/question-card.es.js +5 -0
- package/dist/components/story-preview-card.cjs.js +1 -0
- package/dist/components/story-preview-card.es.js +5 -0
- package/dist/components.cjs.js +1 -1
- package/dist/components.es.js +39 -31
- package/dist/crew-content-card-C8MVKFur.cjs +1 -0
- package/dist/crew-content-card-vi7_37Zl.js +28 -0
- package/dist/design-system/components/article-asset-card.md +1 -1
- package/dist/design-system/components/article-card.md +40 -0
- package/dist/design-system/components/blog-review-card.md +1 -1
- package/dist/design-system/components/boottent-event-card.md +1 -1
- package/dist/design-system/components/camp-card.md +1 -1
- package/dist/design-system/components/company-info-card.md +1 -1
- package/dist/design-system/components/crew-content-card.md +45 -0
- package/dist/design-system/components/dday-card.md +1 -1
- package/dist/design-system/components/environment-asset-photo.md +1 -1
- package/dist/design-system/components/event-asset-banner.md +1 -1
- package/dist/design-system/components/event-card.md +1 -1
- package/dist/design-system/components/lecturer-card.md +1 -1
- package/dist/design-system/components/main-banner-image.md +1 -1
- package/dist/design-system/components/mobile-camp-card.md +1 -1
- package/dist/design-system/components/partner-list-card.md +1 -1
- package/dist/design-system/components/portfolio-asset-card.md +1 -1
- package/dist/design-system/components/premium-card.md +1 -1
- package/dist/design-system/components/question-card.md +38 -0
- package/dist/design-system/components/story-preview-card.md +40 -0
- package/dist/design-system/components/title-tag-card.md +1 -1
- package/dist/design-system/components/youtube-video-modal.md +1 -1
- package/dist/design-system/consumer-setup.md +1 -1
- package/dist/design-system/design-system.md +6 -2
- package/dist/design-system/tokens.md +1 -1
- package/dist/design-system/ui/accordion.md +1 -1
- package/dist/design-system/ui/alert-dialog.md +1 -1
- package/dist/design-system/ui/anchor.md +1 -1
- package/dist/design-system/ui/aspect-ratio.md +1 -1
- package/dist/design-system/ui/avatar.md +1 -1
- package/dist/design-system/ui/badge.md +1 -1
- package/dist/design-system/ui/button.md +1 -1
- package/dist/design-system/ui/calendar.md +1 -1
- package/dist/design-system/ui/callout.md +1 -1
- package/dist/design-system/ui/card-label.md +1 -1
- package/dist/design-system/ui/card.md +1 -1
- package/dist/design-system/ui/checkbox.md +1 -1
- package/dist/design-system/ui/circled-check-button.md +1 -1
- package/dist/design-system/ui/command.md +1 -1
- package/dist/design-system/ui/dialog.md +1 -1
- package/dist/design-system/ui/dropdown-menu.md +1 -1
- package/dist/design-system/ui/file-uploader.md +1 -1
- package/dist/design-system/ui/form.md +1 -1
- package/dist/design-system/ui/highlight-text.md +1 -1
- package/dist/design-system/ui/icons.md +1 -1
- package/dist/design-system/ui/image.md +1 -1
- package/dist/design-system/ui/input.md +1 -1
- package/dist/design-system/ui/label.md +1 -1
- package/dist/design-system/ui/month-picker.md +1 -1
- package/dist/design-system/ui/multi-select.md +1 -1
- package/dist/design-system/ui/navigation-menu.md +1 -1
- package/dist/design-system/ui/popover.md +1 -1
- package/dist/design-system/ui/portal.md +1 -1
- package/dist/design-system/ui/progress.md +1 -1
- package/dist/design-system/ui/radio-group.md +1 -1
- package/dist/design-system/ui/scroll-area.md +1 -1
- package/dist/design-system/ui/select.md +1 -1
- package/dist/design-system/ui/separator.md +1 -1
- package/dist/design-system/ui/simple-table.md +1 -1
- package/dist/design-system/ui/skeleton.md +1 -1
- package/dist/design-system/ui/slider.md +1 -1
- package/dist/design-system/ui/switch.md +1 -1
- package/dist/design-system/ui/symbols.md +1 -1
- package/dist/design-system/ui/tabs.md +1 -1
- package/dist/design-system/ui/tag.md +1 -1
- package/dist/design-system/ui/text.md +1 -1
- package/dist/design-system/ui/textarea.md +1 -1
- package/dist/design-system/ui/toast.md +1 -1
- package/dist/design-system/ui/toggle-group.md +1 -1
- package/dist/design-system/ui/toggle.md +1 -1
- package/dist/design-system/ui/tooltip.md +1 -1
- package/dist/design-system/usage.md +1 -1
- package/dist/design-system/when-to-use.md +10 -1
- package/dist/{lecturer-card-D4nR3tgq.cjs → lecturer-card-C0AeVE2l.cjs} +1 -1
- package/dist/{lecturer-card-DaAD77e-.js → lecturer-card-h44ZjbBL.js} +26 -26
- package/dist/question-card-C2xeKRcv.cjs +1 -0
- package/dist/question-card-DzMummZs.js +57 -0
- package/dist/story-preview-card-BiknUNLs.js +92 -0
- package/dist/story-preview-card-vNGsyl3L.cjs +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/article-card.d.ts +30 -0
- package/dist/types/components/article-card.d.ts +2 -0
- package/dist/types/components/crew-content-card.d.ts +2 -0
- package/dist/types/components/question-card.d.ts +2 -0
- package/dist/types/components/story-preview-card.d.ts +2 -0
- package/dist/types/components.d.ts +113 -0
- package/dist/types/crew-content-card.d.ts +35 -0
- package/dist/types/question-card.d.ts +31 -0
- package/dist/types/story-preview-card.d.ts +28 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useReducedMotion as
|
|
2
|
+
import { useRef as k, useState as l, useLayoutEffect as O } from "react";
|
|
3
|
+
import { useReducedMotion as R, motion as $ } from "framer-motion";
|
|
4
4
|
import { c as h } from "./common-zQ5XY0UN.js";
|
|
5
5
|
import "./ui/accordion.es.js";
|
|
6
6
|
import "./ui/alert-dialog.es.js";
|
|
@@ -48,26 +48,26 @@ function Le({
|
|
|
48
48
|
lecturer: i,
|
|
49
49
|
roleLabel: x,
|
|
50
50
|
description: c,
|
|
51
|
-
numberOfLecturers:
|
|
52
|
-
imagePriority:
|
|
53
|
-
imageLoading:
|
|
51
|
+
numberOfLecturers: w,
|
|
52
|
+
imagePriority: N,
|
|
53
|
+
imageLoading: v,
|
|
54
54
|
imageFetchPriority: y,
|
|
55
55
|
imageDecoding: A
|
|
56
56
|
}) {
|
|
57
|
-
const d = `${n}-name`, p = `${n}-srdesc`, u = `${n}-content`, f =
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
if (!
|
|
57
|
+
const d = `${n}-name`, p = `${n}-srdesc`, u = `${n}-content`, f = k(null), [t, C] = l(!1), [a, I] = l(!1), [L, H] = l(m), T = R();
|
|
58
|
+
O(() => {
|
|
59
|
+
const r = f.current;
|
|
60
|
+
if (!r) return;
|
|
61
61
|
const s = () => {
|
|
62
|
-
H(
|
|
62
|
+
H(r.scrollHeight), I(r.scrollHeight > m + 1);
|
|
63
63
|
};
|
|
64
64
|
s();
|
|
65
65
|
const g = new ResizeObserver(s);
|
|
66
|
-
return g.observe(
|
|
66
|
+
return g.observe(r), () => g.disconnect();
|
|
67
67
|
}, [c]);
|
|
68
68
|
const j = E({
|
|
69
|
-
imagePriority:
|
|
70
|
-
imageLoading:
|
|
69
|
+
imagePriority: N,
|
|
70
|
+
imageLoading: v,
|
|
71
71
|
imageFetchPriority: y,
|
|
72
72
|
imageDecoding: A
|
|
73
73
|
});
|
|
@@ -77,7 +77,7 @@ function Le({
|
|
|
77
77
|
"aria-labelledby": d,
|
|
78
78
|
className: h(
|
|
79
79
|
"bt-ds-surface bt-ds-radius-10 flex h-full w-full items-start gap-5 rounded-[10px] border border-grey-200 bg-background px-[30px] py-5",
|
|
80
|
-
|
|
80
|
+
w === 1 && "col-span-2"
|
|
81
81
|
),
|
|
82
82
|
children: [
|
|
83
83
|
/* @__PURE__ */ e("div", { className: "shrink-0", children: i.imageUrl ? /* @__PURE__ */ e("div", { className: "bt-ds-surface bt-ds-radius-full relative flex aspect-square w-[60px] items-center justify-center overflow-hidden rounded-full border border-grey-200", children: /* @__PURE__ */ e(
|
|
@@ -96,19 +96,19 @@ function Le({
|
|
|
96
96
|
children: /* @__PURE__ */ e(b.Profile, { size: "32", fill: "#A2A3A4", "aria-hidden": "true" })
|
|
97
97
|
}
|
|
98
98
|
) }),
|
|
99
|
-
/* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-2 text-regular14 text-grey-800", children: [
|
|
99
|
+
/* @__PURE__ */ o("div", { className: "flex w-full min-w-0 flex-col gap-2 text-regular14 text-grey-800", children: [
|
|
100
100
|
/* @__PURE__ */ o("header", { className: "flex items-center gap-2 text-semibold16", children: [
|
|
101
101
|
/* @__PURE__ */ e("span", { id: d, children: i.lecturerName }),
|
|
102
102
|
/* @__PURE__ */ e(z, { variant: "solid-secondary-100", size: "sm", className: "px-1 py-0.5", children: x })
|
|
103
103
|
] }),
|
|
104
104
|
/* @__PURE__ */ e("span", { className: "sr-only", id: p, children: "강사 소개를 목록으로 안내한다." }),
|
|
105
105
|
/* @__PURE__ */ o(
|
|
106
|
-
|
|
106
|
+
$.div,
|
|
107
107
|
{
|
|
108
108
|
initial: !1,
|
|
109
|
-
animate: { height: a ?
|
|
109
|
+
animate: { height: a ? t ? L : m : "auto" },
|
|
110
110
|
transition: { duration: T ? 0 : 0.35, ease: [0.4, 0, 0.2, 1] },
|
|
111
|
-
className: "relative overflow-hidden",
|
|
111
|
+
className: "relative min-w-0 overflow-hidden",
|
|
112
112
|
children: [
|
|
113
113
|
/* @__PURE__ */ e(
|
|
114
114
|
"ul",
|
|
@@ -116,12 +116,12 @@ function Le({
|
|
|
116
116
|
ref: f,
|
|
117
117
|
id: u,
|
|
118
118
|
"aria-describedby": p,
|
|
119
|
-
"aria-expanded": a ?
|
|
120
|
-
className: "flex w-full flex-col whitespace-pre-wrap break-keep text-grey-600",
|
|
121
|
-
children: c.map((
|
|
119
|
+
"aria-expanded": a ? t : void 0,
|
|
120
|
+
className: "flex w-full min-w-0 flex-col whitespace-pre-wrap break-words break-keep text-grey-600",
|
|
121
|
+
children: c.map((r, s) => /* @__PURE__ */ e("li", { children: r }, s))
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
a && !
|
|
124
|
+
a && !t && /* @__PURE__ */ e(
|
|
125
125
|
"span",
|
|
126
126
|
{
|
|
127
127
|
"aria-hidden": "true",
|
|
@@ -135,19 +135,19 @@ function Le({
|
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
137
|
type: "button",
|
|
138
|
-
onClick: () => C((
|
|
139
|
-
"aria-expanded":
|
|
138
|
+
onClick: () => C((r) => !r),
|
|
139
|
+
"aria-expanded": t,
|
|
140
140
|
"aria-controls": u,
|
|
141
141
|
className: "flex items-center gap-0.5 self-end text-main-600",
|
|
142
142
|
children: [
|
|
143
|
-
|
|
143
|
+
t ? "정보 숨기기" : "정보 더보기",
|
|
144
144
|
/* @__PURE__ */ e(
|
|
145
145
|
b.ArrowDown2,
|
|
146
146
|
{
|
|
147
147
|
size: "16",
|
|
148
148
|
fill: "currentColor",
|
|
149
149
|
"aria-hidden": "true",
|
|
150
|
-
className: h("shrink-0 transition-transform duration-200",
|
|
150
|
+
className: h("shrink-0 transition-transform duration-200", t && "rotate-180")
|
|
151
151
|
}
|
|
152
152
|
)
|
|
153
153
|
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),x=require("react"),u=require("class-variance-authority"),m=require("./common-DeneXo5X.cjs");function p(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(a,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return a.default=r,Object.freeze(a)}const g=p(x),h=u.cva("group flex h-full w-full flex-col gap-2.5 rounded-lg transition-colors hover:bg-grey-50"),d=g.forwardRef(function({question:a,className:t},n){const{categoryTags:c=[],answerPreviews:i=[],answerCount:o=0}=a;return e.jsxs("div",{ref:n,className:m.cn(h(),t),children:[c.length>0&&e.jsx("ul",{className:"flex flex-wrap items-center gap-1.5",children:c.map((s,l)=>e.jsx("li",{children:e.jsx("span",{className:"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-1 text-xs",style:{color:s.color,backgroundColor:s.background},children:s.text})},l))}),e.jsxs("p",{className:"flex gap-1.5 text-semibold15 text-grey-800 transition-colors group-hover:text-main-700 md:text-semibold16",children:[e.jsx("span",{className:"shrink-0 font-bold text-main-600",children:"Q."}),e.jsx("span",{className:"line-clamp-2",children:a.question})]}),i.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("hr",{className:"border-grey-100"}),e.jsx("ul",{className:"flex flex-col gap-2",children:i.map((s,l)=>e.jsxs("li",{className:"flex items-start gap-2 overflow-hidden",children:[s.profileImage?e.jsx("img",{src:s.profileImage,alt:s.name||"답변자",width:24,height:24,className:"mt-0.5 aspect-square w-6 shrink-0 rounded-full object-cover"}):e.jsx("span",{className:"mt-1 shrink-0 text-grey-400","aria-hidden":"true",children:"↳"}),e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-regular12",children:[s.name&&e.jsx("span",{className:"font-medium text-grey-700",children:s.name}),s.job&&e.jsx("span",{className:"rounded bg-grey-100 px-1.5 py-0.5 text-regular12 text-grey-600",children:s.job})]}),e.jsx("span",{className:"truncate text-regular13 text-grey-500",children:s.answer})]})]},l))})]}),o>0&&e.jsxs("div",{className:"mt-auto flex items-center justify-between pt-0.5 text-regular13 text-grey-500",children:[e.jsxs("span",{children:["답변 ",o,"개"]}),e.jsx("span",{className:"text-grey-400 transition-transform group-hover:translate-x-0.5","aria-hidden":"true",children:"→"})]})]})});d.displayName="QuestionCard";exports.QuestionCard=d;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as d } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
|
+
import { c as x } from "./common-zQ5XY0UN.js";
|
|
5
|
+
const h = p(
|
|
6
|
+
"group flex h-full w-full flex-col gap-2.5 rounded-lg transition-colors hover:bg-grey-50"
|
|
7
|
+
), g = m.forwardRef(function({ question: l, className: i }, o) {
|
|
8
|
+
const { categoryTags: t = [], answerPreviews: n = [], answerCount: c = 0 } = l;
|
|
9
|
+
return /* @__PURE__ */ a("div", { ref: o, className: x(h(), i), children: [
|
|
10
|
+
t.length > 0 && /* @__PURE__ */ e("ul", { className: "flex flex-wrap items-center gap-1.5", children: t.map((r, s) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
11
|
+
"span",
|
|
12
|
+
{
|
|
13
|
+
className: "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-1 text-xs",
|
|
14
|
+
style: { color: r.color, backgroundColor: r.background },
|
|
15
|
+
children: r.text
|
|
16
|
+
}
|
|
17
|
+
) }, s)) }),
|
|
18
|
+
/* @__PURE__ */ a("p", { className: "flex gap-1.5 text-semibold15 text-grey-800 transition-colors group-hover:text-main-700 md:text-semibold16", children: [
|
|
19
|
+
/* @__PURE__ */ e("span", { className: "shrink-0 font-bold text-main-600", children: "Q." }),
|
|
20
|
+
/* @__PURE__ */ e("span", { className: "line-clamp-2", children: l.question })
|
|
21
|
+
] }),
|
|
22
|
+
n.length > 0 && /* @__PURE__ */ a(d, { children: [
|
|
23
|
+
/* @__PURE__ */ e("hr", { className: "border-grey-100" }),
|
|
24
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-2", children: n.map((r, s) => /* @__PURE__ */ a("li", { className: "flex items-start gap-2 overflow-hidden", children: [
|
|
25
|
+
r.profileImage ? /* @__PURE__ */ e(
|
|
26
|
+
"img",
|
|
27
|
+
{
|
|
28
|
+
src: r.profileImage,
|
|
29
|
+
alt: r.name || "답변자",
|
|
30
|
+
width: 24,
|
|
31
|
+
height: 24,
|
|
32
|
+
className: "mt-0.5 aspect-square w-6 shrink-0 rounded-full object-cover"
|
|
33
|
+
}
|
|
34
|
+
) : /* @__PURE__ */ e("span", { className: "mt-1 shrink-0 text-grey-400", "aria-hidden": "true", children: "↳" }),
|
|
35
|
+
/* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col", children: [
|
|
36
|
+
/* @__PURE__ */ a("span", { className: "flex items-center gap-1.5 text-regular12", children: [
|
|
37
|
+
r.name && /* @__PURE__ */ e("span", { className: "font-medium text-grey-700", children: r.name }),
|
|
38
|
+
r.job && /* @__PURE__ */ e("span", { className: "rounded bg-grey-100 px-1.5 py-0.5 text-regular12 text-grey-600", children: r.job })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ e("span", { className: "truncate text-regular13 text-grey-500", children: r.answer })
|
|
41
|
+
] })
|
|
42
|
+
] }, s)) })
|
|
43
|
+
] }),
|
|
44
|
+
c > 0 && /* @__PURE__ */ a("div", { className: "mt-auto flex items-center justify-between pt-0.5 text-regular13 text-grey-500", children: [
|
|
45
|
+
/* @__PURE__ */ a("span", { children: [
|
|
46
|
+
"답변 ",
|
|
47
|
+
c,
|
|
48
|
+
"개"
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ e("span", { className: "text-grey-400 transition-transform group-hover:translate-x-0.5", "aria-hidden": "true", children: "→" })
|
|
51
|
+
] })
|
|
52
|
+
] });
|
|
53
|
+
});
|
|
54
|
+
g.displayName = "QuestionCard";
|
|
55
|
+
export {
|
|
56
|
+
g as Q
|
|
57
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { cva as h } from "class-variance-authority";
|
|
4
|
+
import { c as x } from "./common-zQ5XY0UN.js";
|
|
5
|
+
const v = h(
|
|
6
|
+
"mx-auto flex w-[270px] flex-col items-start gap-2 overflow-hidden rounded-xl text-grey-800 transition-colors"
|
|
7
|
+
), w = p.forwardRef(function({ card: g, horizontalOnMobile: s = !1, className: u }, f) {
|
|
8
|
+
const { userName: t, major: i, age: d, totalDuration: c, preview: a, imageUrl: n, imageAlt: o, jobTag: l } = g, m = l ? /* @__PURE__ */ e(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
className: "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-xs",
|
|
12
|
+
style: { color: l.color, backgroundColor: l.background },
|
|
13
|
+
children: l.text
|
|
14
|
+
}
|
|
15
|
+
) : null;
|
|
16
|
+
return /* @__PURE__ */ r("div", { ref: f, className: x("w-full", u), children: [
|
|
17
|
+
s && /* @__PURE__ */ r(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
"data-testid": "story-preview-card-horizontal",
|
|
21
|
+
className: "flex w-full flex-row gap-3 rounded-xl text-grey-800 transition-colors xs:hidden",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
"img",
|
|
25
|
+
{
|
|
26
|
+
src: n,
|
|
27
|
+
alt: o ?? t,
|
|
28
|
+
className: "aspect-square w-24 shrink-0 rounded-lg object-cover"
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { className: "truncate text-semibold14 text-grey-800", children: t }),
|
|
34
|
+
m
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ r("p", { className: "text-regular13 text-grey-500", children: [
|
|
37
|
+
/* @__PURE__ */ e("span", { className: "text-grey-700", children: i }),
|
|
38
|
+
` · ${d}세 · ${c}`
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ e("p", { className: "line-clamp-2 text-regular13 text-grey-600", children: a })
|
|
41
|
+
] })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ r(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
"data-testid": "story-preview-card-vertical",
|
|
49
|
+
className: x(v(), s && "hidden xs:flex"),
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ r("div", { className: "mb-1 flex w-full flex-row items-center justify-start gap-3", children: [
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
"img",
|
|
54
|
+
{
|
|
55
|
+
src: n,
|
|
56
|
+
alt: o ?? t,
|
|
57
|
+
className: "aspect-square w-12 shrink-0 rounded-lg object-cover md:w-14"
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ r("div", { className: "flex min-w-0 flex-col items-start gap-1.5", children: [
|
|
61
|
+
/* @__PURE__ */ e("p", { className: "truncate text-semibold14 text-grey-800 md:text-semibold15", children: t }),
|
|
62
|
+
m
|
|
63
|
+
] })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ r("div", { className: "grid h-fit w-full shrink-0 grid-cols-[56px_1fr] gap-x-3 gap-y-1.5 overflow-hidden rounded-lg bg-grey-100 p-3 text-regular13 text-grey-500 md:text-regular14", children: [
|
|
66
|
+
/* @__PURE__ */ e("div", { children: "전공" }),
|
|
67
|
+
/* @__PURE__ */ e("div", { className: "w-full truncate text-medium14 text-grey-800", children: i }),
|
|
68
|
+
/* @__PURE__ */ e("div", { children: "취업나이" }),
|
|
69
|
+
/* @__PURE__ */ r("div", { className: "text-medium14 text-grey-800", children: [
|
|
70
|
+
d,
|
|
71
|
+
"세"
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ e("div", { children: "취준기간" }),
|
|
74
|
+
/* @__PURE__ */ e("div", { className: "truncate text-medium14 text-grey-800", children: c })
|
|
75
|
+
] }),
|
|
76
|
+
/* @__PURE__ */ e(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: "h-full w-full rounded-lg bg-grey-100 p-3 text-regular13 text-grey-600 md:p-4 md:text-regular14",
|
|
80
|
+
title: a,
|
|
81
|
+
children: /* @__PURE__ */ e("span", { className: "line-clamp-4 w-full", children: a })
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] });
|
|
88
|
+
});
|
|
89
|
+
w.displayName = "StoryPreviewCard";
|
|
90
|
+
export {
|
|
91
|
+
w as S
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),j=require("react"),h=require("class-variance-authority"),g=require("./common-DeneXo5X.cjs");function y(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,l.get?l:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const v=y(j),w=h.cva("mx-auto flex w-[270px] flex-col items-start gap-2 overflow-hidden rounded-xl text-grey-800 transition-colors"),f=v.forwardRef(function({card:s,horizontalOnMobile:t=!1,className:l},p){const{userName:a,major:n,age:d,totalDuration:o,preview:c,imageUrl:x,imageAlt:m,jobTag:i}=s,u=i?e.jsx("span",{className:"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-xs",style:{color:i.color,backgroundColor:i.background},children:i.text}):null;return e.jsxs("div",{ref:p,className:g.cn("w-full",l),children:[t&&e.jsxs("div",{"data-testid":"story-preview-card-horizontal",className:"flex w-full flex-row gap-3 rounded-xl text-grey-800 transition-colors xs:hidden",children:[e.jsx("img",{src:x,alt:m??a,className:"aspect-square w-24 shrink-0 rounded-lg object-cover"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[e.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-1.5",children:[e.jsx("p",{className:"truncate text-semibold14 text-grey-800",children:a}),u]}),e.jsxs("p",{className:"text-regular13 text-grey-500",children:[e.jsx("span",{className:"text-grey-700",children:n}),` · ${d}세 · ${o}`]}),e.jsx("p",{className:"line-clamp-2 text-regular13 text-grey-600",children:c})]})]}),e.jsxs("div",{"data-testid":"story-preview-card-vertical",className:g.cn(w(),t&&"hidden xs:flex"),children:[e.jsxs("div",{className:"mb-1 flex w-full flex-row items-center justify-start gap-3",children:[e.jsx("img",{src:x,alt:m??a,className:"aspect-square w-12 shrink-0 rounded-lg object-cover md:w-14"}),e.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-1.5",children:[e.jsx("p",{className:"truncate text-semibold14 text-grey-800 md:text-semibold15",children:a}),u]})]}),e.jsxs("div",{className:"grid h-fit w-full shrink-0 grid-cols-[56px_1fr] gap-x-3 gap-y-1.5 overflow-hidden rounded-lg bg-grey-100 p-3 text-regular13 text-grey-500 md:text-regular14",children:[e.jsx("div",{children:"전공"}),e.jsx("div",{className:"w-full truncate text-medium14 text-grey-800",children:n}),e.jsx("div",{children:"취업나이"}),e.jsxs("div",{className:"text-medium14 text-grey-800",children:[d,"세"]}),e.jsx("div",{children:"취준기간"}),e.jsx("div",{className:"truncate text-medium14 text-grey-800",children:o})]}),e.jsx("div",{className:"h-full w-full rounded-lg bg-grey-100 p-3 text-regular13 text-grey-600 md:p-4 md:text-regular14",title:c,children:e.jsx("span",{className:"line-clamp-4 w-full",children:c})})]})]})});f.displayName="StoryPreviewCard";exports.StoryPreviewCard=f;
|