@nextworks/blocks-sections 0.1.0-alpha.8 β†’ 0.2.0-alpha.2

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.
Files changed (65) hide show
  1. package/README.md +16 -11
  2. package/dist/components/Features.d.ts +4 -2
  3. package/dist/components/Features.d.ts.map +1 -1
  4. package/dist/components/Features.jsx +2 -2
  5. package/dist/components/HeroMotion.d.ts +4 -2
  6. package/dist/components/HeroMotion.d.ts.map +1 -1
  7. package/dist-types/components/About.d.ts +93 -0
  8. package/dist-types/components/About.d.ts.map +1 -0
  9. package/dist-types/components/CTA.d.ts +118 -0
  10. package/dist-types/components/CTA.d.ts.map +1 -0
  11. package/dist-types/components/Contact.d.ts +111 -0
  12. package/dist-types/components/Contact.d.ts.map +1 -0
  13. package/dist-types/components/FAQ.d.ts +89 -0
  14. package/dist-types/components/FAQ.d.ts.map +1 -0
  15. package/dist-types/components/Features.d.ts +113 -0
  16. package/dist-types/components/Features.d.ts.map +1 -0
  17. package/dist-types/components/Footer.d.ts +120 -0
  18. package/dist-types/components/Footer.d.ts.map +1 -0
  19. package/dist-types/components/HeroMotion.d.ts +109 -0
  20. package/dist-types/components/HeroMotion.d.ts.map +1 -0
  21. package/dist-types/components/HeroOverlay.d.ts +116 -0
  22. package/dist-types/components/HeroOverlay.d.ts.map +1 -0
  23. package/dist-types/components/HeroSplit.d.ts +98 -0
  24. package/dist-types/components/HeroSplit.d.ts.map +1 -0
  25. package/dist-types/components/Navbar.d.ts +112 -0
  26. package/dist-types/components/Navbar.d.ts.map +1 -0
  27. package/dist-types/components/Newsletter.d.ts +59 -0
  28. package/dist-types/components/Newsletter.d.ts.map +1 -0
  29. package/dist-types/components/PortfolioSimple.d.ts +137 -0
  30. package/dist-types/components/PortfolioSimple.d.ts.map +1 -0
  31. package/dist-types/components/Pricing.d.ts +96 -0
  32. package/dist-types/components/Pricing.d.ts.map +1 -0
  33. package/dist-types/components/ProcessTimeline.d.ts +121 -0
  34. package/dist-types/components/ProcessTimeline.d.ts.map +1 -0
  35. package/dist-types/components/ServicesGrid.d.ts +64 -0
  36. package/dist-types/components/ServicesGrid.d.ts.map +1 -0
  37. package/dist-types/components/Team.d.ts +115 -0
  38. package/dist-types/components/Team.d.ts.map +1 -0
  39. package/dist-types/components/Testimonials.d.ts +81 -0
  40. package/dist-types/components/Testimonials.d.ts.map +1 -0
  41. package/dist-types/components/TrustBadges.d.ts +80 -0
  42. package/dist-types/components/TrustBadges.d.ts.map +1 -0
  43. package/dist-types/components/index.d.ts +21 -0
  44. package/dist-types/components/index.d.ts.map +1 -0
  45. package/dist-types/index.d.ts +2 -0
  46. package/dist-types/index.d.ts.map +1 -0
  47. package/package.json +8 -6
  48. package/dist/components/About.js +0 -129
  49. package/dist/components/CTA.js +0 -58
  50. package/dist/components/Contact.js +0 -82
  51. package/dist/components/FAQ.js +0 -78
  52. package/dist/components/Features.js +0 -109
  53. package/dist/components/Footer.js +0 -101
  54. package/dist/components/HeroMotion.js +0 -55
  55. package/dist/components/HeroOverlay.js +0 -111
  56. package/dist/components/HeroSplit.js +0 -100
  57. package/dist/components/Navbar.js +0 -80
  58. package/dist/components/Newsletter.js +0 -34
  59. package/dist/components/PortfolioSimple.js +0 -180
  60. package/dist/components/Pricing.js +0 -91
  61. package/dist/components/ProcessTimeline.js +0 -88
  62. package/dist/components/ServicesGrid.js +0 -72
  63. package/dist/components/Team.js +0 -107
  64. package/dist/components/Testimonials.js +0 -46
  65. package/dist/components/TrustBadges.js +0 -46
@@ -1,107 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import Link from "next/link";
4
- import { cn } from "@nextworks/blocks-core";
5
- const DefaultTeamData = [
6
- {
7
- name: "Alex Chen",
8
- role: "CEO & Founder",
9
- bio: "Full-stack developer with 8+ years.",
10
- avatar: "πŸ‘¨β€πŸ’Ό",
11
- socialLinks: [{ platform: "LinkedIn", url: "#", icon: "πŸ’Ό" }],
12
- },
13
- {
14
- name: "Sarah Martinez",
15
- role: "Lead Designer",
16
- bio: "UI/UX expert.",
17
- avatar: "πŸ‘©β€πŸŽ¨",
18
- socialLinks: [{ platform: "Dribbble", url: "#", icon: "🎨" }],
19
- },
20
- {
21
- name: "Jordan Patel",
22
- role: "DevOps Engineer",
23
- bio: "Automates cloud infra and CI/CD pipelines.",
24
- avatar: "πŸ› οΈ",
25
- socialLinks: [{ platform: "GitHub", url: "#", icon: "πŸ™" }],
26
- },
27
- {
28
- name: "Maya Thompson",
29
- role: "Product Manager",
30
- bio: "Drives roadmap and aligns cross‑functional teams.",
31
- avatar: "🧭",
32
- socialLinks: [{ platform: "Twitter", url: "#", icon: "🐦" }],
33
- },
34
- ];
35
- /**
36
- * Internal presentational card for a single team member.
37
- * Receives already-merged className strings from the parent.
38
- */
39
- function TeamCard({ member, card = { className: "" }, cardContent = { className: "" }, avatar = { className: "" }, name = { className: "" }, role = { className: "" }, bio = { className: "" }, socialLinks = { className: "" }, socialLink = { className: "" }, }) {
40
- return (_jsx("div", { className: card.className, children: _jsxs("div", { className: cardContent.className, children: [_jsx("div", { className: avatar.className, children: member.avatar }), _jsx("h3", { className: name.className, children: member.name }), _jsx("p", { className: role.className, children: member.role }), _jsx("p", { className: bio.className, children: member.bio }), member.socialLinks && member.socialLinks.length > 0 && (_jsx("div", { className: socialLinks.className, children: member.socialLinks.map((social, index) => (_jsx(Link, { href: social.url, className: socialLink.className, title: social.platform, "aria-label": `${member.name}'s ${social.platform} profile`, children: social.icon }, index))) }))] }) }));
41
- }
42
- /**
43
- * Team section with heading, subheading, and a responsive member grid.
44
- *
45
- * @remarks
46
- * - Uses a slot-style API for className overrides merged via cn().
47
- * - Motion: enableMotion toggles hover lift on cards.
48
- * - Accessibility: semantic <section> with aria-label.
49
- *
50
- * @example
51
- * <Team teamMembers={[{ name: 'Alex', role: 'Engineer' }]} />
52
- */
53
- export function Team({ id, className, teamMembers = DefaultTeamData, teamHeadingText = "Meet Our Team", teamSubheadingText = "The talented people behind your success", section, container, header, heading, subheading, grid, card, cardContent, avatar, name, role, bio, socialLinks, socialLink, enableMotion = true, ariaLabel = "Team section", }) {
54
- var _a, _b;
55
- // Defaults for slots
56
- const defaultSection = "py-16 px-6 bg-muted";
57
- const defaultContainer = "max-w-7xl mx-auto";
58
- const defaultHeader = "space-y-12 items-center";
59
- const defaultHeadingClass = "text-3xl font-bold font-poppins text-foreground text-center text-[var(--heading-fg)]";
60
- const defaultSubheadingClass = "text-lg font-inter text-muted-foreground opacity-80 leading-relaxed text-center max-w-2xl text-[var(--subheading-fg)]";
61
- const defaultGrid = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 w-full";
62
- const defaultCardBase = "bg-card p-6 rounded-lg shadow-md text-center border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]";
63
- const defaultCardContent = "flex flex-col items-center space-y-4";
64
- const defaultAvatar = "text-4xl mb-2";
65
- const defaultName = "text-xl font-bold font-poppins text-card-foreground text-[var(--card-fg)]";
66
- const defaultRole = "text-md font-semibold font-poppins text-primary";
67
- const defaultBio = "text-sm font-inter text-muted-foreground opacity-80 leading-relaxed text-[var(--card-muted-fg)]";
68
- const defaultSocialLinks = "flex gap-3 mt-2";
69
- const defaultSocialLink = "text-lg text-primary hover:text-accent-foreground transition-colors duration-200";
70
- // Motion control for card
71
- const motionCard = enableMotion
72
- ? "transition-transform duration-200 hover:-translate-y-1"
73
- : "transition-none hover:!translate-y-0";
74
- // Merge slot classes using cn (defaults first, then overrides)
75
- const finalSectionClass = cn(defaultSection, section === null || section === void 0 ? void 0 : section.className, className);
76
- const finalContainerClass = cn(defaultContainer, container === null || container === void 0 ? void 0 : container.className);
77
- const finalHeaderClass = cn(defaultHeader, header === null || header === void 0 ? void 0 : header.className);
78
- const finalGridClass = cn(defaultGrid, grid === null || grid === void 0 ? void 0 : grid.className);
79
- const finalCardClass = cn(defaultCardBase, motionCard, card === null || card === void 0 ? void 0 : card.className);
80
- const finalCardContentClass = cn(defaultCardContent, cardContent === null || cardContent === void 0 ? void 0 : cardContent.className);
81
- const finalAvatarClass = cn(defaultAvatar, avatar === null || avatar === void 0 ? void 0 : avatar.className);
82
- const finalNameClass = cn(defaultName, name === null || name === void 0 ? void 0 : name.className);
83
- const finalRoleClass = cn(defaultRole, role === null || role === void 0 ? void 0 : role.className);
84
- const finalBioClass = cn(defaultBio, bio === null || bio === void 0 ? void 0 : bio.className);
85
- const finalSocialLinksClass = cn(defaultSocialLinks, socialLinks === null || socialLinks === void 0 ? void 0 : socialLinks.className);
86
- const finalSocialLinkClass = cn(defaultSocialLink, socialLink === null || socialLink === void 0 ? void 0 : socialLink.className);
87
- // Normalize heading/subheading allowing string or object, plus slot class merges
88
- const normalizedHeading = typeof teamHeadingText === "string"
89
- ? {
90
- text: teamHeadingText,
91
- className: cn(defaultHeadingClass, heading === null || heading === void 0 ? void 0 : heading.className),
92
- }
93
- : {
94
- text: (_a = teamHeadingText === null || teamHeadingText === void 0 ? void 0 : teamHeadingText.text) !== null && _a !== void 0 ? _a : "Meet Our Team",
95
- className: cn(defaultHeadingClass, teamHeadingText === null || teamHeadingText === void 0 ? void 0 : teamHeadingText.className, heading === null || heading === void 0 ? void 0 : heading.className),
96
- };
97
- const normalizedSubheading = typeof teamSubheadingText === "string"
98
- ? {
99
- text: teamSubheadingText,
100
- className: cn(defaultSubheadingClass, subheading === null || subheading === void 0 ? void 0 : subheading.className),
101
- }
102
- : {
103
- text: (_b = teamSubheadingText === null || teamSubheadingText === void 0 ? void 0 : teamSubheadingText.text) !== null && _b !== void 0 ? _b : "The talented people behind your success",
104
- className: cn(defaultSubheadingClass, teamSubheadingText === null || teamSubheadingText === void 0 ? void 0 : teamSubheadingText.className, subheading === null || subheading === void 0 ? void 0 : subheading.className),
105
- };
106
- return (_jsx("section", { id: id || "team", className: finalSectionClass, "aria-label": ariaLabel, children: _jsx("div", { className: finalContainerClass, children: _jsxs("div", { className: finalHeaderClass, children: [_jsxs("div", { className: "mx-auto flex max-w-2xl flex-col items-center space-y-4 text-center", children: [_jsx("h2", { className: normalizedHeading.className, children: normalizedHeading.text }), _jsx("p", { className: normalizedSubheading.className, children: normalizedSubheading.text })] }), _jsx("div", { className: finalGridClass, children: teamMembers.map((member, index) => (_jsx(TeamCard, { member: member, card: { className: finalCardClass }, cardContent: { className: finalCardContentClass }, avatar: { className: finalAvatarClass }, name: { className: finalNameClass }, role: { className: finalRoleClass }, bio: { className: finalBioClass }, socialLinks: { className: finalSocialLinksClass }, socialLink: { className: finalSocialLinkClass } }, index))) })] }) }) }));
107
- }
@@ -1,46 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "@nextworks/blocks-core";
4
- import { TestimonialCard } from "@nextworks/blocks-core";
5
- const defaultTestimonialData = [
6
- {
7
- testimonialText: "Lorem ipsum dolor sit amet! Consectetur adipiscing elit.",
8
- testimonialAuthor: " - Cillum Dolore",
9
- testimonialAuthorInitials: "CD",
10
- },
11
- {
12
- testimonialText: "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi!",
13
- testimonialAuthor: " - Voluptate Velit",
14
- testimonialAuthorInitials: "VV",
15
- },
16
- {
17
- testimonialText: "Cillum dolore eu fugiat nulla pariatur!",
18
- testimonialAuthor: " - Laboris Nisi",
19
- testimonialAuthorInitials: "LN",
20
- },
21
- ];
22
- /**
23
- * Testimonials section that renders a grid of TestimonialCard items.
24
- *
25
- * @remarks
26
- * - Slot-style overrides match TestimonialCard sub-slots (card, content, text, etc.).
27
- * - Motion can be disabled via enableMotion.
28
- *
29
- * @example
30
- * <Testimonials testimonials={[{ testimonialText: 'Great!', testimonialAuthor: ' - Jane', testimonialAuthorInitials: 'J' }]} />
31
- */
32
- export function Testimonials({ id, className, testimonials = defaultTestimonialData, testimonialSectionHeader = "What Our Customers Say", enableMotion = true, section = { className: "py-16 px-6 bg-muted" }, container = { className: "max-w-7xl mx-auto" }, header = { className: "text-center mb-12" }, heading = {
33
- className: "text-3xl md:text-4xl font-bold font-poppins text-foreground",
34
- }, grid = { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" }, card = {
35
- className: "bg-card/90 backdrop-blur p-6 rounded-lg shadow-md transition-transform duration-200 hover:-translate-y-1 border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
36
- }, content = { className: "flex flex-col space-y-4" }, text = {
37
- className: "text-card-foreground text-base leading-relaxed italic font-inter text-[var(--card-fg)]",
38
- }, author = {
39
- className: "text-muted-foreground text-sm font-medium font-poppins text-[var(--card-muted-fg)]",
40
- }, avatar = {
41
- className: "w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-lg font-bold bg-[var(--badge-bg)] text-[var(--badge-fg)] border-[var(--badge-border)]",
42
- }, avatarText = { className: "text-primary-foreground font-bold" }, ariaLabel = "Testimonials section", }) {
43
- return (_jsx("section", { id: id || "testimonials", className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [_jsx("div", { className: header.className, children: _jsx("h2", { className: heading.className, children: testimonialSectionHeader }) }), _jsx("div", { className: grid.className, children: testimonials.map((testimonial, index) => (_jsx(TestimonialCard, { testimonialText: testimonial.testimonialText, testimonialAuthor: testimonial.testimonialAuthor, testimonialAuthorInitials: testimonial.testimonialAuthorInitials, card: {
44
- className: cn(card.className, !enableMotion && "transition-none hover:!translate-y-0"),
45
- }, content: content, text: text, author: author, avatar: avatar, avatarText: avatarText }, index))) })] }) }));
46
- }
@@ -1,46 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "@nextworks/blocks-core";
4
- const defaultTrustBadgeData = [
5
- {
6
- badgeText: "10,000+ businesses",
7
- badgeDescription: "Trusted by",
8
- badgeIcon: "πŸ“Š",
9
- },
10
- {
11
- badgeText: "SOC 2 Compliant",
12
- badgeDescription: "Enterprise security",
13
- badgeIcon: "πŸ”’",
14
- },
15
- {
16
- badgeText: "99.9% Uptime",
17
- badgeDescription: "Reliable service",
18
- badgeIcon: "⚑",
19
- },
20
- ];
21
- /**
22
- * Compact section to showcase trust signals like usage stats and compliance.
23
- *
24
- * @remarks
25
- * - Horizontal by default; switch to vertical with layout="vertical".
26
- * - Hover motion can be disabled via enableMotion.
27
- *
28
- * @example
29
- * <TrustBadges badges={[{ badgeText: 'SOC 2', badgeDescription: 'Security', badgeIcon: 'πŸ”’' }]} />
30
- */
31
- export function TrustBadges({ id, className, badges = defaultTrustBadgeData, trustBadgesSectionHeader, section = { className: "py-8 px-6 bg-muted" }, container = { className: "max-w-7xl mx-auto" }, header = { className: "text-center mb-6" }, heading = {
32
- className: "text-xl font-semibold text-foreground text-[var(--heading-fg)]",
33
- }, badgesContainer = {
34
- className: "flex flex-col md:flex-row justify-center items-center gap-8 flex-wrap",
35
- }, badge = {
36
- className: "flex flex-col items-center text-center min-w-[200px] transition-all duration-300 ease-in-out hover:scale-[1.02]",
37
- }, badgeContent = { className: "flex flex-col items-center space-y-2" }, icon = { className: "text-2xl mb-2" }, description = {
38
- className: "text-sm font-medium text-muted-foreground text-[var(--card-muted-fg)]",
39
- }, text = {
40
- className: "text-lg font-bold text-foreground text-[var(--card-fg)]",
41
- }, layout = "horizontal", enableMotion = true, ariaLabel = "Trust badges section", }) {
42
- const containerClasses = layout === "vertical"
43
- ? "flex flex-col justify-center items-center gap-8"
44
- : badgesContainer.className;
45
- return (_jsx("section", { id: id || "trust-badges", className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [trustBadgesSectionHeader && (_jsx("div", { className: header.className, children: _jsx("h2", { className: heading.className, children: trustBadgesSectionHeader }) })), _jsx("div", { className: containerClasses, children: badges.map((badgeData, index) => (_jsx("div", { className: cn(badge.className, !enableMotion && "transition-none hover:!scale-100"), children: _jsxs("div", { className: badgeContent.className, children: [badgeData.badgeIcon && (_jsx("div", { className: icon.className, children: badgeData.badgeIcon })), badgeData.badgeDescription && (_jsx("p", { className: description.className, children: badgeData.badgeDescription })), _jsx("p", { className: text.className, children: badgeData.badgeText })] }) }, index))) })] }) }));
46
- }