@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_c.js
CHANGED
|
@@ -1 +1,94 @@
|
|
|
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_c.tsx
|
|
31
|
+
var team_c_exports = {};
|
|
32
|
+
__export(team_c_exports, {
|
|
33
|
+
Team_C: () => Team_C,
|
|
34
|
+
default: () => Team_C
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(team_c_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_C({ 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: 1280, children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaptionAndTitle, { caption, title }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberCard, { team })
|
|
50
|
+
] }) });
|
|
51
|
+
}
|
|
52
|
+
function CaptionAndTitle({ caption, title }) {
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 576, className: "mb-12 text-center ", children: [
|
|
54
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", className: "text-primary", children: caption }),
|
|
55
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { children: title })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
function TeamMemberCard({ team }) {
|
|
59
|
+
if (!team) return null;
|
|
60
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, children: 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)(
|
|
63
|
+
import_card.Card,
|
|
64
|
+
{
|
|
65
|
+
className: "w-full p-0 pb-8 overflow-hidden bg-white shadow-lg text-center",
|
|
66
|
+
borderRadius: "md",
|
|
67
|
+
children: [
|
|
68
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
69
|
+
import_image.Image,
|
|
70
|
+
{
|
|
71
|
+
className: "mb-8 h-[345px] w-full object-cover rounded-md",
|
|
72
|
+
sizes: "100vw",
|
|
73
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
74
|
+
width: 345,
|
|
75
|
+
height: 256,
|
|
76
|
+
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`
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberText, { member })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
) }, member == null ? void 0 : member.name);
|
|
83
|
+
}) });
|
|
84
|
+
}
|
|
85
|
+
function TeamMemberText({ member }) {
|
|
86
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
87
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { fontSize: "2xl", weight: "bold", className: "mb-2", children: member == null ? void 0 : member.name }),
|
|
88
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, children: member == null ? void 0 : member.jobTitle })
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
Team_C
|
|
94
|
+
});
|
package/dist/team_c.mjs
CHANGED
package/dist/team_d.js
CHANGED
|
@@ -1 +1,83 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/team_d.tsx
|
|
21
|
+
var team_d_exports = {};
|
|
22
|
+
__export(team_d_exports, {
|
|
23
|
+
Team_D: () => Team_D,
|
|
24
|
+
default: () => Team_D
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(team_d_exports);
|
|
27
|
+
var import_card = require("@stackshift-ui/card");
|
|
28
|
+
var import_container = require("@stackshift-ui/container");
|
|
29
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
30
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
31
|
+
var import_image = require("@stackshift-ui/image");
|
|
32
|
+
var import_section = require("@stackshift-ui/section");
|
|
33
|
+
var import_text = require("@stackshift-ui/text");
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
function Team_D({ caption, title, team }) {
|
|
36
|
+
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: 1280, children: [
|
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CaptionAndTitle, { caption, title }),
|
|
38
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberCard, { team })
|
|
39
|
+
] }) });
|
|
40
|
+
}
|
|
41
|
+
function CaptionAndTitle({ caption, title }) {
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_container.Container, { maxWidth: 576, className: "mb-8 text-center lg:mb-16", children: [
|
|
43
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", className: "text-secondary", children: caption }),
|
|
44
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { children: title })
|
|
45
|
+
] });
|
|
46
|
+
}
|
|
47
|
+
function TeamMemberCard({ team }) {
|
|
48
|
+
if (!team) return null;
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { wrap: true, children: team && team.map((member, index) => {
|
|
50
|
+
var _a, _b, _c, _d;
|
|
51
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full px-4 mb-6 lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
52
|
+
import_card.Card,
|
|
53
|
+
{
|
|
54
|
+
className: "items-center p-0 bg-white overflow-hidden shadow-lg sm:flex sm:flex-wrap lg:block xl:flex",
|
|
55
|
+
borderRadius: "md",
|
|
56
|
+
children: [
|
|
57
|
+
((_a = member.mainImage) == null ? void 0 : _a.image) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
|
+
import_image.Image,
|
|
59
|
+
{
|
|
60
|
+
className: "h-[320px] w-full object-cover rounded-md sm:w-[179px] lg:w-full xl:w-[179px]",
|
|
61
|
+
sizes: "100vw",
|
|
62
|
+
src: `${(_b = member == null ? void 0 : member.mainImage) == null ? void 0 : _b.image}`,
|
|
63
|
+
width: 179,
|
|
64
|
+
height: 320,
|
|
65
|
+
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`
|
|
66
|
+
}
|
|
67
|
+
) }),
|
|
68
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TeamMemberText, { member })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
) }, index);
|
|
72
|
+
}) });
|
|
73
|
+
}
|
|
74
|
+
function TeamMemberText({ member }) {
|
|
75
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "p-4 sm:w-2/3 lg:w-full lg:pl-6 xl:w-2/3", children: [
|
|
76
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { weight: "bold", fontSize: "2xl", className: "mb-2", children: member == null ? void 0 : member.name }),
|
|
77
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { className: "mb-4 leading-loose", muted: true, children: member == null ? void 0 : member.plainText })
|
|
78
|
+
] });
|
|
79
|
+
}
|
|
80
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
81
|
+
0 && (module.exports = {
|
|
82
|
+
Team_D
|
|
83
|
+
});
|
package/dist/team_d.mjs
CHANGED
package/dist/types.js
CHANGED
|
@@ -1 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/team",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "6.0.6
|
|
4
|
+
"version": "6.0.6",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"classnames": "^2.5.1",
|
|
37
37
|
"@stackshift-ui/scripts": "6.0.2",
|
|
38
|
-
"@stackshift-ui/card": "6.0.3",
|
|
39
|
-
"@stackshift-ui/avatar": "6.0.5-beta.1",
|
|
40
|
-
"@stackshift-ui/heading": "6.0.3",
|
|
41
|
-
"@stackshift-ui/text": "6.0.3",
|
|
42
|
-
"@stackshift-ui/flex": "6.0.3",
|
|
43
38
|
"@stackshift-ui/button": "6.0.3",
|
|
44
|
-
"@stackshift-ui/
|
|
39
|
+
"@stackshift-ui/text": "6.0.3",
|
|
40
|
+
"@stackshift-ui/card": "6.0.3",
|
|
41
|
+
"@stackshift-ui/avatar": "6.0.5",
|
|
45
42
|
"@stackshift-ui/section": "6.0.3",
|
|
43
|
+
"@stackshift-ui/container": "6.0.3",
|
|
46
44
|
"@stackshift-ui/system": "6.0.3",
|
|
47
|
-
"@stackshift-ui/image": "6.0.3"
|
|
45
|
+
"@stackshift-ui/image": "6.0.3",
|
|
46
|
+
"@stackshift-ui/heading": "6.0.3",
|
|
47
|
+
"@stackshift-ui/flex": "6.0.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@types/react": "16.8 - 19",
|