@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.
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -534,10 +535,10 @@ function Icon({ name, ...props }) {
534
535
  var import_jsx_runtime2 = require("react/jsx-runtime");
535
536
  var defaultNavigation = [
536
537
  { label: "Home", href: "/" },
537
- { label: "Services", href: "/services" },
538
- { label: "Gallery", href: "/gallery" },
539
- { label: "About", href: "/about" },
540
- { label: "Contact", href: "/contact" }
538
+ { label: "Services", href: "/#services" },
539
+ { label: "Hours", href: "/#hours" },
540
+ { label: "Reviews", href: "/#reviews" },
541
+ { label: "FAQ", href: "/#faq" }
541
542
  ];
542
543
  function Header({
543
544
  business,
@@ -630,10 +631,10 @@ function Header({
630
631
  var import_jsx_runtime3 = require("react/jsx-runtime");
631
632
  var defaultQuickLinks = [
632
633
  { label: "Home", href: "/" },
633
- { label: "Services", href: "/services" },
634
- { label: "About", href: "/about" },
635
- { label: "Contact", href: "/contact" },
636
- { label: "Privacy Policy", href: "/privacy" }
634
+ { label: "Services", href: "/#services" },
635
+ { label: "Hours", href: "/#hours" },
636
+ { label: "Reviews", href: "/#reviews" },
637
+ { label: "FAQ", href: "/#faq" }
637
638
  ];
638
639
  var dayNames = {
639
640
  monday: "Mon",
@@ -947,7 +948,8 @@ function Services({
947
948
  showIcons = true,
948
949
  variant = "cards",
949
950
  limit,
950
- className = ""
951
+ className = "",
952
+ id = "services"
951
953
  }) {
952
954
  const displayedServices = limit ? services.slice(0, limit) : services;
953
955
  const gridCols = {
@@ -956,7 +958,7 @@ function Services({
956
958
  4: "md:grid-cols-2 lg:grid-cols-4"
957
959
  };
958
960
  if (variant === "list") {
959
- 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: [
961
+ 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: [
960
962
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
961
963
  /* @__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)(
962
964
  ServiceListItem,
@@ -970,7 +972,7 @@ function Services({
970
972
  ] }) });
971
973
  }
972
974
  if (variant === "minimal") {
973
- 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: [
975
+ 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: [
974
976
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
975
977
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
976
978
  ServiceMinimalCard,
@@ -982,7 +984,7 @@ function Services({
982
984
  )) })
983
985
  ] }) });
984
986
  }
985
- 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: [
987
+ 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: [
986
988
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SectionHeader, { title, subtitle }),
987
989
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
988
990
  ServiceCard,
@@ -1056,7 +1058,8 @@ function Testimonials({
1056
1058
  showRatings = true,
1057
1059
  variant = "cards",
1058
1060
  limit,
1059
- className = ""
1061
+ className = "",
1062
+ id = "reviews"
1060
1063
  }) {
1061
1064
  const displayedTestimonials = limit ? testimonials.slice(0, limit) : testimonials;
1062
1065
  const gridCols = {
@@ -1064,7 +1067,7 @@ function Testimonials({
1064
1067
  2: "md:grid-cols-2 max-w-4xl mx-auto",
1065
1068
  3: "md:grid-cols-2 lg:grid-cols-3"
1066
1069
  };
1067
- 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: [
1070
+ 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: [
1068
1071
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "text-center mb-12", children: [
1069
1072
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-gray-900 mb-4", children: title }),
1070
1073
  subtitle && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-lg text-gray-600 max-w-2xl mx-auto", children: subtitle })
@@ -1167,7 +1170,8 @@ function FAQ({
1167
1170
  variant = "accordion",
1168
1171
  defaultOpen = 0,
1169
1172
  allowMultiple = false,
1170
- className = ""
1173
+ className = "",
1174
+ id = "faq"
1171
1175
  }) {
1172
1176
  const initialOpen = Array.isArray(defaultOpen) ? defaultOpen : [defaultOpen];
1173
1177
  const [openItems, setOpenItems] = (0, import_react2.useState)(initialOpen);
@@ -1183,18 +1187,18 @@ function FAQ({
1183
1187
  }
1184
1188
  };
1185
1189
  if (variant === "cards") {
1186
- 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: [
1190
+ 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: [
1187
1191
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
1188
1192
  /* @__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)) })
1189
1193
  ] }) });
1190
1194
  }
1191
1195
  if (variant === "simple") {
1192
- 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: [
1196
+ 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: [
1193
1197
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
1194
1198
  /* @__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)) })
1195
1199
  ] }) });
1196
1200
  }
1197
- 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: [
1201
+ 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: [
1198
1202
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SectionHeader2, { title, subtitle }),
1199
1203
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "max-w-3xl mx-auto", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1200
1204
  FAQAccordionItem,
@@ -1291,14 +1295,15 @@ function Hours({
1291
1295
  highlightToday = true,
1292
1296
  variant = "card",
1293
1297
  timezone,
1294
- className = ""
1298
+ className = "",
1299
+ id = "hours"
1295
1300
  }) {
1296
1301
  const todayDay = getTodayDay(timezone);
1297
1302
  const sortedHours = [...hours].sort(
1298
1303
  (a, b) => dayOrder.indexOf(a.day) - dayOrder.indexOf(b.day)
1299
1304
  );
1300
1305
  if (variant === "inline") {
1301
- 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)(
1306
+ 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)(
1302
1307
  HoursInlineItem,
1303
1308
  {
1304
1309
  entry,
@@ -1308,7 +1313,7 @@ function Hours({
1308
1313
  )) });
1309
1314
  }
1310
1315
  if (variant === "minimal") {
1311
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1316
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id, className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1312
1317
  HoursMinimalItem,
1313
1318
  {
1314
1319
  entry,
@@ -1317,7 +1322,7 @@ function Hours({
1317
1322
  entry.day
1318
1323
  )) });
1319
1324
  }
1320
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
1325
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { id, className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
1321
1326
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center mb-4", children: [
1322
1327
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ClockIcon, { size: 24, className: "text-primary-600 mr-2" }),
1323
1328
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-xl font-semibold text-gray-900", children: title })