@aws505/sheetsite 1.0.0 → 1.0.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.
- package/dist/components/index.js +27 -22
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +28 -22
- package/dist/components/index.mjs.map +1 -1
- package/dist/index.js +26 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/Footer.tsx +4 -4
- package/src/components/layout/Header.tsx +4 -4
- package/src/components/sections/FAQ.tsx +5 -3
- package/src/components/sections/Hours.tsx +5 -3
- package/src/components/sections/Services.tsx +5 -3
- package/src/components/sections/Testimonials.tsx +3 -1
package/dist/index.js
CHANGED
|
@@ -3893,10 +3893,10 @@ function Icon({ name, ...props }) {
|
|
|
3893
3893
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
3894
3894
|
var defaultNavigation = [
|
|
3895
3895
|
{ label: "Home", href: "/" },
|
|
3896
|
-
{ label: "Services", href: "
|
|
3897
|
-
{ label: "
|
|
3898
|
-
{ label: "
|
|
3899
|
-
{ label: "
|
|
3896
|
+
{ label: "Services", href: "/#services" },
|
|
3897
|
+
{ label: "Hours", href: "/#hours" },
|
|
3898
|
+
{ label: "Reviews", href: "/#reviews" },
|
|
3899
|
+
{ label: "FAQ", href: "/#faq" }
|
|
3900
3900
|
];
|
|
3901
3901
|
function Header({
|
|
3902
3902
|
business,
|
|
@@ -3989,10 +3989,10 @@ function Header({
|
|
|
3989
3989
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
3990
3990
|
var defaultQuickLinks = [
|
|
3991
3991
|
{ label: "Home", href: "/" },
|
|
3992
|
-
{ label: "Services", href: "
|
|
3993
|
-
{ label: "
|
|
3994
|
-
{ label: "
|
|
3995
|
-
{ label: "
|
|
3992
|
+
{ label: "Services", href: "/#services" },
|
|
3993
|
+
{ label: "Hours", href: "/#hours" },
|
|
3994
|
+
{ label: "Reviews", href: "/#reviews" },
|
|
3995
|
+
{ label: "FAQ", href: "/#faq" }
|
|
3996
3996
|
];
|
|
3997
3997
|
var dayNames = {
|
|
3998
3998
|
monday: "Mon",
|
|
@@ -4306,7 +4306,8 @@ function Services({
|
|
|
4306
4306
|
showIcons = true,
|
|
4307
4307
|
variant = "cards",
|
|
4308
4308
|
limit,
|
|
4309
|
-
className = ""
|
|
4309
|
+
className = "",
|
|
4310
|
+
id = "services"
|
|
4310
4311
|
}) {
|
|
4311
4312
|
const displayedServices = limit ? services.slice(0, limit) : services;
|
|
4312
4313
|
const gridCols = {
|
|
@@ -4315,7 +4316,7 @@ function Services({
|
|
|
4315
4316
|
4: "md:grid-cols-2 lg:grid-cols-4"
|
|
4316
4317
|
};
|
|
4317
4318
|
if (variant === "list") {
|
|
4318
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4319
4320
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
|
|
4320
4321
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "max-w-3xl mx-auto divide-y divide-gray-200", children: displayedServices.map((service) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
4321
4322
|
ServiceListItem,
|
|
@@ -4329,7 +4330,7 @@ function Services({
|
|
|
4329
4330
|
] }) });
|
|
4330
4331
|
}
|
|
4331
4332
|
if (variant === "minimal") {
|
|
4332
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4333
4334
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
|
|
4334
4335
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
4335
4336
|
ServiceMinimalCard,
|
|
@@ -4341,7 +4342,7 @@ function Services({
|
|
|
4341
4342
|
)) })
|
|
4342
4343
|
] }) });
|
|
4343
4344
|
}
|
|
4344
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("section", { id, className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4345
4346
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
|
|
4346
4347
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
4347
4348
|
ServiceCard,
|
|
@@ -4415,7 +4416,8 @@ function Testimonials({
|
|
|
4415
4416
|
showRatings = true,
|
|
4416
4417
|
variant = "cards",
|
|
4417
4418
|
limit,
|
|
4418
|
-
className = ""
|
|
4419
|
+
className = "",
|
|
4420
|
+
id = "reviews"
|
|
4419
4421
|
}) {
|
|
4420
4422
|
const displayedTestimonials = limit ? testimonials.slice(0, limit) : testimonials;
|
|
4421
4423
|
const gridCols = {
|
|
@@ -4423,7 +4425,7 @@ function Testimonials({
|
|
|
4423
4425
|
2: "md:grid-cols-2 max-w-4xl mx-auto",
|
|
4424
4426
|
3: "md:grid-cols-2 lg:grid-cols-3"
|
|
4425
4427
|
};
|
|
4426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4427
4429
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "text-center mb-12", children: [
|
|
4428
4430
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-gray-900 mb-4", children: title }),
|
|
4429
4431
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-lg text-gray-600 max-w-2xl mx-auto", children: subtitle })
|
|
@@ -4526,7 +4528,8 @@ function FAQ({
|
|
|
4526
4528
|
variant = "accordion",
|
|
4527
4529
|
defaultOpen = 0,
|
|
4528
4530
|
allowMultiple = false,
|
|
4529
|
-
className = ""
|
|
4531
|
+
className = "",
|
|
4532
|
+
id = "faq"
|
|
4530
4533
|
}) {
|
|
4531
4534
|
const initialOpen = Array.isArray(defaultOpen) ? defaultOpen : [defaultOpen];
|
|
4532
4535
|
const [openItems, setOpenItems] = (0, import_react2.useState)(initialOpen);
|
|
@@ -4542,18 +4545,18 @@ function FAQ({
|
|
|
4542
4545
|
}
|
|
4543
4546
|
};
|
|
4544
4547
|
if (variant === "cards") {
|
|
4545
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4546
4549
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
|
|
4547
4550
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "grid md:grid-cols-2 gap-6 max-w-4xl mx-auto", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FAQCard, { item }, item.id || item.question)) })
|
|
4548
4551
|
] }) });
|
|
4549
4552
|
}
|
|
4550
4553
|
if (variant === "simple") {
|
|
4551
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4552
4555
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
|
|
4553
4556
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "max-w-3xl mx-auto space-y-8", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FAQSimple, { item }, item.id || item.question)) })
|
|
4554
4557
|
] }) });
|
|
4555
4558
|
}
|
|
4556
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("section", { id, className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "container mx-auto px-4", children: [
|
|
4557
4560
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
|
|
4558
4561
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "max-w-3xl mx-auto", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
4559
4562
|
FAQAccordionItem,
|
|
@@ -4650,14 +4653,15 @@ function Hours({
|
|
|
4650
4653
|
highlightToday = true,
|
|
4651
4654
|
variant = "card",
|
|
4652
4655
|
timezone,
|
|
4653
|
-
className = ""
|
|
4656
|
+
className = "",
|
|
4657
|
+
id = "hours"
|
|
4654
4658
|
}) {
|
|
4655
4659
|
const todayDay = getTodayDay(timezone);
|
|
4656
4660
|
const sortedHours = [...hours].sort(
|
|
4657
4661
|
(a, b) => dayOrder.indexOf(a.day) - dayOrder.indexOf(b.day)
|
|
4658
4662
|
);
|
|
4659
4663
|
if (variant === "inline") {
|
|
4660
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `flex flex-wrap gap-4 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id, className: `flex flex-wrap gap-4 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4661
4665
|
HoursInlineItem,
|
|
4662
4666
|
{
|
|
4663
4667
|
entry,
|
|
@@ -4667,7 +4671,7 @@ function Hours({
|
|
|
4667
4671
|
)) });
|
|
4668
4672
|
}
|
|
4669
4673
|
if (variant === "minimal") {
|
|
4670
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id, className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
4671
4675
|
HoursMinimalItem,
|
|
4672
4676
|
{
|
|
4673
4677
|
entry,
|
|
@@ -4676,7 +4680,7 @@ function Hours({
|
|
|
4676
4680
|
entry.day
|
|
4677
4681
|
)) });
|
|
4678
4682
|
}
|
|
4679
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
|
|
4683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { id, className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
|
|
4680
4684
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center mb-4", children: [
|
|
4681
4685
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ClockIcon, { size: 24, className: "text-primary-600 mr-2" }),
|
|
4682
4686
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-xl font-semibold text-gray-900", children: title })
|