@stackshift-ui/team 6.0.6-beta.1 → 6.0.6
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/chunk-AC3TBU5F.mjs +85 -0
- package/dist/chunk-BGXM3WLZ.mjs +51 -0
- package/dist/chunk-JBADLHBZ.mjs +58 -0
- package/dist/chunk-QXOIBK2J.mjs +59 -0
- package/dist/chunk-ZME26LYJ.mjs +26 -0
- package/dist/index.js +364 -1
- package/dist/index.mjs +23 -1
- package/dist/team.js +348 -1
- package/dist/team.mjs +6 -1
- package/dist/team_a.js +86 -1
- package/dist/team_a.mjs +7 -1
- package/dist/team_b.js +120 -1
- package/dist/team_b.mjs +7 -1
- package/dist/team_c.js +94 -1
- package/dist/team_c.mjs +7 -1
- package/dist/team_d.js +83 -1
- package/dist/team_d.mjs +7 -1
- package/dist/types.js +18 -1
- package/package.json +8 -8
package/dist/team.js
CHANGED
|
@@ -1 +1,348 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esm = (fn, res) => function __init() {
|
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
|
|
33
|
+
// src/team_a.tsx
|
|
34
|
+
var team_a_exports = {};
|
|
35
|
+
__export(team_a_exports, {
|
|
36
|
+
Team_A: () => Team_A,
|
|
37
|
+
default: () => Team_A
|
|
38
|
+
});
|
|
39
|
+
function Team_A({ caption, title, team }) {
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 1e3, children: [
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 576, className: "mb-10 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaptionAndTitle, { caption, title }) }),
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Teams, { team })
|
|
43
|
+
] }) });
|
|
44
|
+
}
|
|
45
|
+
function CaptionAndTitle({ caption, title }) {
|
|
46
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
47
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", className: "text-secondary", children: caption }) : null,
|
|
48
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { type: "h2", fontSize: "2xl", children: title }) : null
|
|
49
|
+
] });
|
|
50
|
+
}
|
|
51
|
+
function Teams({ team }) {
|
|
52
|
+
if (!team) return null;
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, children: team == null ? void 0 : team.map((member) => {
|
|
54
|
+
var _a, _b, _c, _d;
|
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-3 mb-6 md:w-1/2 lg:w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, { className: "py-24 text-center shadow-lg bg-white", borderRadius: "md", children: [
|
|
56
|
+
((_a = member == null ? void 0 : member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
57
|
+
import_image.Image,
|
|
58
|
+
{
|
|
59
|
+
width: 96,
|
|
60
|
+
height: 96,
|
|
61
|
+
className: "mx-auto border-0 w-[96px] h-[96px] object-cover rounded-full",
|
|
62
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
63
|
+
alt: (_d = (_c = member == null ? void 0 : member.mainImage) == null ? void 0 : _c.alt) != null ? _d : `team-member-${member == null ? void 0 : member.name}-profile-image`
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberText, { member })
|
|
67
|
+
] }) }, member == null ? void 0 : member.name);
|
|
68
|
+
}) });
|
|
69
|
+
}
|
|
70
|
+
function TeamMemberText({ member }) {
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
72
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { type: "h3", className: "mb-2 text-xl lg:text-2xl", children: member == null ? void 0 : member.name }),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, children: member == null ? void 0 : member.jobTitle })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
var import_card, import_container, import_flex, import_heading, import_image, import_section, import_text, import_react, import_jsx_runtime;
|
|
77
|
+
var init_team_a = __esm({
|
|
78
|
+
"src/team_a.tsx"() {
|
|
79
|
+
"use strict";
|
|
80
|
+
import_card = require("@stackshift-ui/card");
|
|
81
|
+
import_container = require("@stackshift-ui/container");
|
|
82
|
+
import_flex = require("@stackshift-ui/flex");
|
|
83
|
+
import_heading = require("@stackshift-ui/heading");
|
|
84
|
+
import_image = require("@stackshift-ui/image");
|
|
85
|
+
import_section = require("@stackshift-ui/section");
|
|
86
|
+
import_text = require("@stackshift-ui/text");
|
|
87
|
+
import_react = __toESM(require("react"));
|
|
88
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// src/team_b.tsx
|
|
93
|
+
var team_b_exports = {};
|
|
94
|
+
__export(team_b_exports, {
|
|
95
|
+
Team_B: () => Team_B,
|
|
96
|
+
default: () => Team_B
|
|
97
|
+
});
|
|
98
|
+
function Team_B({ team }) {
|
|
99
|
+
var _a;
|
|
100
|
+
const [activeTab, setActiveTab] = import_react2.default.useState((_a = team == null ? void 0 : team[0]) == null ? void 0 : _a.name);
|
|
101
|
+
const filteredMembers = import_react2.default.useMemo(
|
|
102
|
+
() => (team == null ? void 0 : team.filter((member) => (member == null ? void 0 : member.name) === activeTab)) || [],
|
|
103
|
+
[team, activeTab]
|
|
104
|
+
);
|
|
105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_section2.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_container2.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_flex2.Flex, { wrap: true, align: "center", children: [
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeamTabs, { team, activeTab, setActiveTab }),
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeamMembersList, { members: filteredMembers })
|
|
108
|
+
] }) }) });
|
|
109
|
+
}
|
|
110
|
+
function TeamTabs({ team, activeTab, setActiveTab }) {
|
|
111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full px-3 mb-8 lg:mb-0 lg:w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
112
|
+
import_flex2.Flex,
|
|
113
|
+
{
|
|
114
|
+
as: "ul",
|
|
115
|
+
wrap: true,
|
|
116
|
+
justify: "center",
|
|
117
|
+
direction: "row",
|
|
118
|
+
className: "space-x-6 lg:flex-col lg:justify-start lg:space-x-0",
|
|
119
|
+
children: team == null ? void 0 : team.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeamTab, { data: item, activeTab, setActiveTab }, item.name))
|
|
120
|
+
}
|
|
121
|
+
) });
|
|
122
|
+
}
|
|
123
|
+
function TeamTab({ data, activeTab, setActiveTab }) {
|
|
124
|
+
if (!data || !data.name) return null;
|
|
125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
126
|
+
import_button.Button,
|
|
127
|
+
{
|
|
128
|
+
as: "button",
|
|
129
|
+
variant: "unstyled",
|
|
130
|
+
ariaLabel: data.name,
|
|
131
|
+
className: `mb-4 text-xl lg:text-2xl ${data.name === activeTab ? "text-gray-900" : "text-gray-500"} font-bold hover:text-gray-500 focus:outline-none`,
|
|
132
|
+
onClick: () => {
|
|
133
|
+
var _a;
|
|
134
|
+
return setActiveTab((_a = data.name) != null ? _a : "");
|
|
135
|
+
},
|
|
136
|
+
children: data.name
|
|
137
|
+
}
|
|
138
|
+
) });
|
|
139
|
+
}
|
|
140
|
+
function TeamMembersList({ members }) {
|
|
141
|
+
if (!members) return null;
|
|
142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "w-full px-3 lg:w-2/3", children: members.map((member, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeamMemberCard, { member }, index)) });
|
|
143
|
+
}
|
|
144
|
+
function TeamMemberCard({ member }) {
|
|
145
|
+
var _a, _b;
|
|
146
|
+
if (!member) return null;
|
|
147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_card2.Card, { className: "flex p-6 shadow-lg bg-white", borderRadius: "md", children: [
|
|
148
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
149
|
+
import_image2.Image,
|
|
150
|
+
{
|
|
151
|
+
className: "object-cover overflow-hidden rounded-md",
|
|
152
|
+
src: `${member.mainImage.image}`,
|
|
153
|
+
sizes: "100vw",
|
|
154
|
+
width: 329,
|
|
155
|
+
height: 494,
|
|
156
|
+
alt: (_b = member.mainImage.alt) != null ? _b : `team-member-${member.name}-profile-image`
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TeamMmeberText, { member })
|
|
160
|
+
] });
|
|
161
|
+
}
|
|
162
|
+
function TeamMmeberText({ member }) {
|
|
163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "order-last w-1/2 pt-6 pl-6 mt-6", children: [
|
|
164
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_text2.Text, { weight: "bold", fontSize: "2xl", children: member.name }),
|
|
165
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_text2.Text, { className: "mb-6", muted: true, children: member.jobTitle }),
|
|
166
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_text2.Text, { className: "mb-6 text-justify", muted: true, children: member.plainText })
|
|
167
|
+
] });
|
|
168
|
+
}
|
|
169
|
+
var import_button, import_card2, import_container2, import_flex2, import_image2, import_section2, import_text2, import_react2, import_jsx_runtime2;
|
|
170
|
+
var init_team_b = __esm({
|
|
171
|
+
"src/team_b.tsx"() {
|
|
172
|
+
"use strict";
|
|
173
|
+
import_button = require("@stackshift-ui/button");
|
|
174
|
+
import_card2 = require("@stackshift-ui/card");
|
|
175
|
+
import_container2 = require("@stackshift-ui/container");
|
|
176
|
+
import_flex2 = require("@stackshift-ui/flex");
|
|
177
|
+
import_image2 = require("@stackshift-ui/image");
|
|
178
|
+
import_section2 = require("@stackshift-ui/section");
|
|
179
|
+
import_text2 = require("@stackshift-ui/text");
|
|
180
|
+
import_react2 = __toESM(require("react"));
|
|
181
|
+
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// src/team_c.tsx
|
|
186
|
+
var team_c_exports = {};
|
|
187
|
+
__export(team_c_exports, {
|
|
188
|
+
Team_C: () => Team_C,
|
|
189
|
+
default: () => Team_C
|
|
190
|
+
});
|
|
191
|
+
function Team_C({ caption, title, team }) {
|
|
192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_section3.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_container3.Container, { maxWidth: 1280, children: [
|
|
193
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(CaptionAndTitle2, { caption, title }),
|
|
194
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TeamMemberCard2, { team })
|
|
195
|
+
] }) });
|
|
196
|
+
}
|
|
197
|
+
function CaptionAndTitle2({ caption, title }) {
|
|
198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_container3.Container, { maxWidth: 576, className: "mb-12 text-center ", children: [
|
|
199
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_text3.Text, { weight: "bold", className: "text-primary", children: caption }),
|
|
200
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_heading2.Heading, { children: title })
|
|
201
|
+
] });
|
|
202
|
+
}
|
|
203
|
+
function TeamMemberCard2({ team }) {
|
|
204
|
+
if (!team) return null;
|
|
205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_flex3.Flex, { wrap: true, children: team.map((member) => {
|
|
206
|
+
var _a, _b, _c, _d;
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "w-full px-3 mb-6 md:w-1/2 lg:w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
208
|
+
import_card3.Card,
|
|
209
|
+
{
|
|
210
|
+
className: "w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",
|
|
211
|
+
borderRadius: "md",
|
|
212
|
+
children: [
|
|
213
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
214
|
+
import_image3.Image,
|
|
215
|
+
{
|
|
216
|
+
className: "mb-8 h-[345px] w-full object-cover rounded-md",
|
|
217
|
+
sizes: "100vw",
|
|
218
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
219
|
+
width: 345,
|
|
220
|
+
height: 256,
|
|
221
|
+
alt: (_d = (_c = member == null ? void 0 : member.mainImage) == null ? void 0 : _c.alt) != null ? _d : `team-member-${member == null ? void 0 : member.name}-profile-image`
|
|
222
|
+
}
|
|
223
|
+
) }),
|
|
224
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TeamMemberText2, { member })
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
) }, member == null ? void 0 : member.name);
|
|
228
|
+
}) });
|
|
229
|
+
}
|
|
230
|
+
function TeamMemberText2({ member }) {
|
|
231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react3.default.Fragment, { children: [
|
|
232
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_text3.Text, { fontSize: "2xl", weight: "bold", className: "mb-2", children: member == null ? void 0 : member.name }),
|
|
233
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_text3.Text, { muted: true, children: member == null ? void 0 : member.jobTitle })
|
|
234
|
+
] });
|
|
235
|
+
}
|
|
236
|
+
var import_card3, import_container3, import_flex3, import_heading2, import_image3, import_section3, import_text3, import_react3, import_jsx_runtime3;
|
|
237
|
+
var init_team_c = __esm({
|
|
238
|
+
"src/team_c.tsx"() {
|
|
239
|
+
"use strict";
|
|
240
|
+
import_card3 = require("@stackshift-ui/card");
|
|
241
|
+
import_container3 = require("@stackshift-ui/container");
|
|
242
|
+
import_flex3 = require("@stackshift-ui/flex");
|
|
243
|
+
import_heading2 = require("@stackshift-ui/heading");
|
|
244
|
+
import_image3 = require("@stackshift-ui/image");
|
|
245
|
+
import_section3 = require("@stackshift-ui/section");
|
|
246
|
+
import_text3 = require("@stackshift-ui/text");
|
|
247
|
+
import_react3 = __toESM(require("react"));
|
|
248
|
+
import_jsx_runtime3 = require("react/jsx-runtime");
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
// src/team_d.tsx
|
|
253
|
+
var team_d_exports = {};
|
|
254
|
+
__export(team_d_exports, {
|
|
255
|
+
Team_D: () => Team_D,
|
|
256
|
+
default: () => Team_D
|
|
257
|
+
});
|
|
258
|
+
function Team_D({ caption, title, team }) {
|
|
259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_section4.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_container4.Container, { maxWidth: 1280, children: [
|
|
260
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CaptionAndTitle3, { caption, title }),
|
|
261
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TeamMemberCard3, { team })
|
|
262
|
+
] }) });
|
|
263
|
+
}
|
|
264
|
+
function CaptionAndTitle3({ caption, title }) {
|
|
265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_container4.Container, { maxWidth: 576, className: "mb-8 text-center lg:mb-16", children: [
|
|
266
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_text4.Text, { weight: "bold", className: "text-secondary", children: caption }),
|
|
267
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_heading3.Heading, { children: title })
|
|
268
|
+
] });
|
|
269
|
+
}
|
|
270
|
+
function TeamMemberCard3({ team }) {
|
|
271
|
+
if (!team) return null;
|
|
272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_flex4.Flex, { wrap: true, children: team && team.map((member, index) => {
|
|
273
|
+
var _a, _b, _c, _d;
|
|
274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "w-full px-4 mb-6 lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
275
|
+
import_card4.Card,
|
|
276
|
+
{
|
|
277
|
+
className: "items-center p-0 bg-white overflow-hidden shadow-lg sm:flex sm:flex-wrap lg:block xl:flex",
|
|
278
|
+
borderRadius: "md",
|
|
279
|
+
children: [
|
|
280
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
281
|
+
import_image4.Image,
|
|
282
|
+
{
|
|
283
|
+
className: "h-[320px] w-full object-cover rounded-md sm:w-[179px] lg:w-full xl:w-[179px]",
|
|
284
|
+
sizes: "100vw",
|
|
285
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
286
|
+
width: 179,
|
|
287
|
+
height: 320,
|
|
288
|
+
alt: (_d = (_c = member == null ? void 0 : member.mainImage) == null ? void 0 : _c.alt) != null ? _d : `team-member-${member == null ? void 0 : member.name}-profile-image`
|
|
289
|
+
}
|
|
290
|
+
) }),
|
|
291
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(TeamMemberText3, { member })
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
) }, index);
|
|
295
|
+
}) });
|
|
296
|
+
}
|
|
297
|
+
function TeamMemberText3({ member }) {
|
|
298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "p-4 sm:w-2/3 lg:w-full lg:pl-6 xl:w-2/3", children: [
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_text4.Text, { weight: "bold", fontSize: "2xl", className: "mb-2", children: member == null ? void 0 : member.name }),
|
|
300
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_text4.Text, { className: "mb-4 leading-loose", muted: true, children: member == null ? void 0 : member.plainText })
|
|
301
|
+
] });
|
|
302
|
+
}
|
|
303
|
+
var import_card4, import_container4, import_flex4, import_heading3, import_image4, import_section4, import_text4, import_jsx_runtime4;
|
|
304
|
+
var init_team_d = __esm({
|
|
305
|
+
"src/team_d.tsx"() {
|
|
306
|
+
"use strict";
|
|
307
|
+
import_card4 = require("@stackshift-ui/card");
|
|
308
|
+
import_container4 = require("@stackshift-ui/container");
|
|
309
|
+
import_flex4 = require("@stackshift-ui/flex");
|
|
310
|
+
import_heading3 = require("@stackshift-ui/heading");
|
|
311
|
+
import_image4 = require("@stackshift-ui/image");
|
|
312
|
+
import_section4 = require("@stackshift-ui/section");
|
|
313
|
+
import_text4 = require("@stackshift-ui/text");
|
|
314
|
+
import_jsx_runtime4 = require("react/jsx-runtime");
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
// src/team.tsx
|
|
319
|
+
var team_exports = {};
|
|
320
|
+
__export(team_exports, {
|
|
321
|
+
Team: () => Team
|
|
322
|
+
});
|
|
323
|
+
module.exports = __toCommonJS(team_exports);
|
|
324
|
+
var import_react4 = require("react");
|
|
325
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
326
|
+
var Variants = {
|
|
327
|
+
variant_a: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_team_a(), team_a_exports))),
|
|
328
|
+
variant_b: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_team_b(), team_b_exports))),
|
|
329
|
+
variant_c: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_team_c(), team_c_exports))),
|
|
330
|
+
variant_d: (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_team_d(), team_d_exports)))
|
|
331
|
+
};
|
|
332
|
+
var displayName = "Team";
|
|
333
|
+
var Team = ({ data }) => {
|
|
334
|
+
var _a, _b, _c, _d, _e, _f;
|
|
335
|
+
const variant = data == null ? void 0 : data.variant;
|
|
336
|
+
const Variant = variant && Variants[variant];
|
|
337
|
+
const props = {
|
|
338
|
+
caption: (_b = (_a = data == null ? void 0 : data.variants) == null ? void 0 : _a.subtitle) != null ? _b : void 0,
|
|
339
|
+
title: (_d = (_c = data == null ? void 0 : data.variants) == null ? void 0 : _c.title) != null ? _d : void 0,
|
|
340
|
+
team: (_f = (_e = data == null ? void 0 : data.variants) == null ? void 0 : _e.teams) != null ? _f : void 0
|
|
341
|
+
};
|
|
342
|
+
return Variant ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Variant, { ...props }) : null;
|
|
343
|
+
};
|
|
344
|
+
Team.displayName = displayName;
|
|
345
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
346
|
+
0 && (module.exports = {
|
|
347
|
+
Team
|
|
348
|
+
});
|
package/dist/team.mjs
CHANGED
package/dist/team_a.js
CHANGED
|
@@ -1 +1,86 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/team_a.tsx
|
|
31
|
+
var team_a_exports = {};
|
|
32
|
+
__export(team_a_exports, {
|
|
33
|
+
Team_A: () => Team_A,
|
|
34
|
+
default: () => Team_A
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(team_a_exports);
|
|
37
|
+
var import_card = require("@stackshift-ui/card");
|
|
38
|
+
var import_container = require("@stackshift-ui/container");
|
|
39
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
40
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
41
|
+
var import_image = require("@stackshift-ui/image");
|
|
42
|
+
var import_section = require("@stackshift-ui/section");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Team_A({ caption, title, team }) {
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 1e3, children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 576, className: "mb-10 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaptionAndTitle, { caption, title }) }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Teams, { team })
|
|
50
|
+
] }) });
|
|
51
|
+
}
|
|
52
|
+
function CaptionAndTitle({ caption, title }) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
54
|
+
caption ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", className: "text-secondary", children: caption }) : null,
|
|
55
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { type: "h2", fontSize: "2xl", children: title }) : null
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
function Teams({ team }) {
|
|
59
|
+
if (!team) return null;
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, children: team == null ? void 0 : team.map((member) => {
|
|
61
|
+
var _a, _b, _c, _d;
|
|
62
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-3 mb-6 md:w-1/2 lg:w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, { className: "py-24 text-center shadow-lg bg-white", borderRadius: "md", children: [
|
|
63
|
+
((_a = member == null ? void 0 : member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
64
|
+
import_image.Image,
|
|
65
|
+
{
|
|
66
|
+
width: 96,
|
|
67
|
+
height: 96,
|
|
68
|
+
className: "mx-auto border-0 w-[96px] h-[96px] object-cover rounded-full",
|
|
69
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
70
|
+
alt: (_d = (_c = member == null ? void 0 : member.mainImage) == null ? void 0 : _c.alt) != null ? _d : `team-member-${member == null ? void 0 : member.name}-profile-image`
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberText, { member })
|
|
74
|
+
] }) }, member == null ? void 0 : member.name);
|
|
75
|
+
}) });
|
|
76
|
+
}
|
|
77
|
+
function TeamMemberText({ member }) {
|
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { type: "h3", className: "mb-2 text-xl lg:text-2xl", children: member == null ? void 0 : member.name }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, children: member == null ? void 0 : member.jobTitle })
|
|
81
|
+
] });
|
|
82
|
+
}
|
|
83
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
84
|
+
0 && (module.exports = {
|
|
85
|
+
Team_A
|
|
86
|
+
});
|
package/dist/team_a.mjs
CHANGED
package/dist/team_b.js
CHANGED
|
@@ -1 +1,120 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/team_b.tsx
|
|
31
|
+
var team_b_exports = {};
|
|
32
|
+
__export(team_b_exports, {
|
|
33
|
+
Team_B: () => Team_B,
|
|
34
|
+
default: () => Team_B
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(team_b_exports);
|
|
37
|
+
var import_button = require("@stackshift-ui/button");
|
|
38
|
+
var import_card = require("@stackshift-ui/card");
|
|
39
|
+
var import_container = require("@stackshift-ui/container");
|
|
40
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
41
|
+
var import_image = require("@stackshift-ui/image");
|
|
42
|
+
var import_section = require("@stackshift-ui/section");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Team_B({ team }) {
|
|
47
|
+
var _a;
|
|
48
|
+
const [activeTab, setActiveTab] = import_react.default.useState((_a = team == null ? void 0 : team[0]) == null ? void 0 : _a.name);
|
|
49
|
+
const filteredMembers = import_react.default.useMemo(
|
|
50
|
+
() => (team == null ? void 0 : team.filter((member) => (member == null ? void 0 : member.name) === activeTab)) || [],
|
|
51
|
+
[team, activeTab]
|
|
52
|
+
);
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { wrap: true, align: "center", children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamTabs, { team, activeTab, setActiveTab }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMembersList, { members: filteredMembers })
|
|
56
|
+
] }) }) });
|
|
57
|
+
}
|
|
58
|
+
function TeamTabs({ team, activeTab, setActiveTab }) {
|
|
59
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-3 mb-8 lg:mb-0 lg:w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
|
+
import_flex.Flex,
|
|
61
|
+
{
|
|
62
|
+
as: "ul",
|
|
63
|
+
wrap: true,
|
|
64
|
+
justify: "center",
|
|
65
|
+
direction: "row",
|
|
66
|
+
className: "space-x-6 lg:flex-col lg:justify-start lg:space-x-0",
|
|
67
|
+
children: team == null ? void 0 : team.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamTab, { data: item, activeTab, setActiveTab }, item.name))
|
|
68
|
+
}
|
|
69
|
+
) });
|
|
70
|
+
}
|
|
71
|
+
function TeamTab({ data, activeTab, setActiveTab }) {
|
|
72
|
+
if (!data || !data.name) return null;
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
+
import_button.Button,
|
|
75
|
+
{
|
|
76
|
+
as: "button",
|
|
77
|
+
variant: "unstyled",
|
|
78
|
+
ariaLabel: data.name,
|
|
79
|
+
className: `mb-4 text-xl lg:text-2xl ${data.name === activeTab ? "text-gray-900" : "text-gray-500"} font-bold hover:text-gray-500 focus:outline-none`,
|
|
80
|
+
onClick: () => {
|
|
81
|
+
var _a;
|
|
82
|
+
return setActiveTab((_a = data.name) != null ? _a : "");
|
|
83
|
+
},
|
|
84
|
+
children: data.name
|
|
85
|
+
}
|
|
86
|
+
) });
|
|
87
|
+
}
|
|
88
|
+
function TeamMembersList({ members }) {
|
|
89
|
+
if (!members) return null;
|
|
90
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-3 lg:w-2/3", children: members.map((member, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberCard, { member }, index)) });
|
|
91
|
+
}
|
|
92
|
+
function TeamMemberCard({ member }) {
|
|
93
|
+
var _a, _b;
|
|
94
|
+
if (!member) return null;
|
|
95
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_card.Card, { className: "flex p-6 shadow-lg bg-white", borderRadius: "md", children: [
|
|
96
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
97
|
+
import_image.Image,
|
|
98
|
+
{
|
|
99
|
+
className: "object-cover overflow-hidden rounded-md",
|
|
100
|
+
src: `${member.mainImage.image}`,
|
|
101
|
+
sizes: "100vw",
|
|
102
|
+
width: 329,
|
|
103
|
+
height: 494,
|
|
104
|
+
alt: (_b = member.mainImage.alt) != null ? _b : `team-member-${member.name}-profile-image`
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMmeberText, { member })
|
|
108
|
+
] });
|
|
109
|
+
}
|
|
110
|
+
function TeamMmeberText({ member }) {
|
|
111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "order-last w-1/2 pt-6 pl-6 mt-6", children: [
|
|
112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", fontSize: "2xl", children: member.name }),
|
|
113
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { className: "mb-6", muted: true, children: member.jobTitle }),
|
|
114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { className: "mb-6 text-justify", muted: true, children: member.plainText })
|
|
115
|
+
] });
|
|
116
|
+
}
|
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
118
|
+
0 && (module.exports = {
|
|
119
|
+
Team_B
|
|
120
|
+
});
|