@aws505/sheetsite 1.0.1 → 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 +26 -22
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +26 -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
|
@@ -471,10 +471,10 @@ function Icon({ name, ...props }) {
|
|
|
471
471
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
472
472
|
var defaultNavigation = [
|
|
473
473
|
{ label: "Home", href: "/" },
|
|
474
|
-
{ label: "Services", href: "
|
|
475
|
-
{ label: "
|
|
476
|
-
{ label: "
|
|
477
|
-
{ label: "
|
|
474
|
+
{ label: "Services", href: "/#services" },
|
|
475
|
+
{ label: "Hours", href: "/#hours" },
|
|
476
|
+
{ label: "Reviews", href: "/#reviews" },
|
|
477
|
+
{ label: "FAQ", href: "/#faq" }
|
|
478
478
|
];
|
|
479
479
|
function Header({
|
|
480
480
|
business,
|
|
@@ -567,10 +567,10 @@ function Header({
|
|
|
567
567
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
568
568
|
var defaultQuickLinks = [
|
|
569
569
|
{ label: "Home", href: "/" },
|
|
570
|
-
{ label: "Services", href: "
|
|
571
|
-
{ label: "
|
|
572
|
-
{ label: "
|
|
573
|
-
{ label: "
|
|
570
|
+
{ label: "Services", href: "/#services" },
|
|
571
|
+
{ label: "Hours", href: "/#hours" },
|
|
572
|
+
{ label: "Reviews", href: "/#reviews" },
|
|
573
|
+
{ label: "FAQ", href: "/#faq" }
|
|
574
574
|
];
|
|
575
575
|
var dayNames = {
|
|
576
576
|
monday: "Mon",
|
|
@@ -884,7 +884,8 @@ function Services({
|
|
|
884
884
|
showIcons = true,
|
|
885
885
|
variant = "cards",
|
|
886
886
|
limit,
|
|
887
|
-
className = ""
|
|
887
|
+
className = "",
|
|
888
|
+
id = "services"
|
|
888
889
|
}) {
|
|
889
890
|
const displayedServices = limit ? services.slice(0, limit) : services;
|
|
890
891
|
const gridCols = {
|
|
@@ -893,7 +894,7 @@ function Services({
|
|
|
893
894
|
4: "md:grid-cols-2 lg:grid-cols-4"
|
|
894
895
|
};
|
|
895
896
|
if (variant === "list") {
|
|
896
|
-
return /* @__PURE__ */ jsx5("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
897
|
+
return /* @__PURE__ */ jsx5("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
897
898
|
/* @__PURE__ */ jsx5(SectionHeader, { title, subtitle }),
|
|
898
899
|
/* @__PURE__ */ jsx5("div", { className: "max-w-3xl mx-auto divide-y divide-gray-200", children: displayedServices.map((service) => /* @__PURE__ */ jsx5(
|
|
899
900
|
ServiceListItem,
|
|
@@ -907,7 +908,7 @@ function Services({
|
|
|
907
908
|
] }) });
|
|
908
909
|
}
|
|
909
910
|
if (variant === "minimal") {
|
|
910
|
-
return /* @__PURE__ */ jsx5("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
911
|
+
return /* @__PURE__ */ jsx5("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
911
912
|
/* @__PURE__ */ jsx5(SectionHeader, { title, subtitle }),
|
|
912
913
|
/* @__PURE__ */ jsx5("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ jsx5(
|
|
913
914
|
ServiceMinimalCard,
|
|
@@ -919,7 +920,7 @@ function Services({
|
|
|
919
920
|
)) })
|
|
920
921
|
] }) });
|
|
921
922
|
}
|
|
922
|
-
return /* @__PURE__ */ jsx5("section", { className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
923
|
+
return /* @__PURE__ */ jsx5("section", { id, className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ jsxs5("div", { className: "container mx-auto px-4", children: [
|
|
923
924
|
/* @__PURE__ */ jsx5(SectionHeader, { title, subtitle }),
|
|
924
925
|
/* @__PURE__ */ jsx5("div", { className: `grid gap-6 ${gridCols[columns]}`, children: displayedServices.map((service) => /* @__PURE__ */ jsx5(
|
|
925
926
|
ServiceCard,
|
|
@@ -993,7 +994,8 @@ function Testimonials({
|
|
|
993
994
|
showRatings = true,
|
|
994
995
|
variant = "cards",
|
|
995
996
|
limit,
|
|
996
|
-
className = ""
|
|
997
|
+
className = "",
|
|
998
|
+
id = "reviews"
|
|
997
999
|
}) {
|
|
998
1000
|
const displayedTestimonials = limit ? testimonials.slice(0, limit) : testimonials;
|
|
999
1001
|
const gridCols = {
|
|
@@ -1001,7 +1003,7 @@ function Testimonials({
|
|
|
1001
1003
|
2: "md:grid-cols-2 max-w-4xl mx-auto",
|
|
1002
1004
|
3: "md:grid-cols-2 lg:grid-cols-3"
|
|
1003
1005
|
};
|
|
1004
|
-
return /* @__PURE__ */ jsx6("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs6("div", { className: "container mx-auto px-4", children: [
|
|
1006
|
+
return /* @__PURE__ */ jsx6("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs6("div", { className: "container mx-auto px-4", children: [
|
|
1005
1007
|
/* @__PURE__ */ jsxs6("div", { className: "text-center mb-12", children: [
|
|
1006
1008
|
/* @__PURE__ */ jsx6("h2", { className: "text-3xl md:text-4xl font-bold text-gray-900 mb-4", children: title }),
|
|
1007
1009
|
subtitle && /* @__PURE__ */ jsx6("p", { className: "text-lg text-gray-600 max-w-2xl mx-auto", children: subtitle })
|
|
@@ -1104,7 +1106,8 @@ function FAQ({
|
|
|
1104
1106
|
variant = "accordion",
|
|
1105
1107
|
defaultOpen = 0,
|
|
1106
1108
|
allowMultiple = false,
|
|
1107
|
-
className = ""
|
|
1109
|
+
className = "",
|
|
1110
|
+
id = "faq"
|
|
1108
1111
|
}) {
|
|
1109
1112
|
const initialOpen = Array.isArray(defaultOpen) ? defaultOpen : [defaultOpen];
|
|
1110
1113
|
const [openItems, setOpenItems] = useState2(initialOpen);
|
|
@@ -1120,18 +1123,18 @@ function FAQ({
|
|
|
1120
1123
|
}
|
|
1121
1124
|
};
|
|
1122
1125
|
if (variant === "cards") {
|
|
1123
|
-
return /* @__PURE__ */ jsx7("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1126
|
+
return /* @__PURE__ */ jsx7("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1124
1127
|
/* @__PURE__ */ jsx7(SectionHeader2, { title, subtitle }),
|
|
1125
1128
|
/* @__PURE__ */ jsx7("div", { className: "grid md:grid-cols-2 gap-6 max-w-4xl mx-auto", children: items.map((item) => /* @__PURE__ */ jsx7(FAQCard, { item }, item.id || item.question)) })
|
|
1126
1129
|
] }) });
|
|
1127
1130
|
}
|
|
1128
1131
|
if (variant === "simple") {
|
|
1129
|
-
return /* @__PURE__ */ jsx7("section", { className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1132
|
+
return /* @__PURE__ */ jsx7("section", { id, className: `py-16 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1130
1133
|
/* @__PURE__ */ jsx7(SectionHeader2, { title, subtitle }),
|
|
1131
1134
|
/* @__PURE__ */ jsx7("div", { className: "max-w-3xl mx-auto space-y-8", children: items.map((item) => /* @__PURE__ */ jsx7(FAQSimple, { item }, item.id || item.question)) })
|
|
1132
1135
|
] }) });
|
|
1133
1136
|
}
|
|
1134
|
-
return /* @__PURE__ */ jsx7("section", { className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1137
|
+
return /* @__PURE__ */ jsx7("section", { id, className: `py-16 bg-gray-50 ${className}`, children: /* @__PURE__ */ jsxs7("div", { className: "container mx-auto px-4", children: [
|
|
1135
1138
|
/* @__PURE__ */ jsx7(SectionHeader2, { title, subtitle }),
|
|
1136
1139
|
/* @__PURE__ */ jsx7("div", { className: "max-w-3xl mx-auto", children: items.map((item, index) => /* @__PURE__ */ jsx7(
|
|
1137
1140
|
FAQAccordionItem,
|
|
@@ -1228,14 +1231,15 @@ function Hours({
|
|
|
1228
1231
|
highlightToday = true,
|
|
1229
1232
|
variant = "card",
|
|
1230
1233
|
timezone,
|
|
1231
|
-
className = ""
|
|
1234
|
+
className = "",
|
|
1235
|
+
id = "hours"
|
|
1232
1236
|
}) {
|
|
1233
1237
|
const todayDay = getTodayDay(timezone);
|
|
1234
1238
|
const sortedHours = [...hours].sort(
|
|
1235
1239
|
(a, b) => dayOrder.indexOf(a.day) - dayOrder.indexOf(b.day)
|
|
1236
1240
|
);
|
|
1237
1241
|
if (variant === "inline") {
|
|
1238
|
-
return /* @__PURE__ */ jsx8("div", { className: `flex flex-wrap gap-4 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ jsx8(
|
|
1242
|
+
return /* @__PURE__ */ jsx8("div", { id, className: `flex flex-wrap gap-4 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ jsx8(
|
|
1239
1243
|
HoursInlineItem,
|
|
1240
1244
|
{
|
|
1241
1245
|
entry,
|
|
@@ -1245,7 +1249,7 @@ function Hours({
|
|
|
1245
1249
|
)) });
|
|
1246
1250
|
}
|
|
1247
1251
|
if (variant === "minimal") {
|
|
1248
|
-
return /* @__PURE__ */ jsx8("div", { className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ jsx8(
|
|
1252
|
+
return /* @__PURE__ */ jsx8("div", { id, className: `space-y-1 ${className}`, children: sortedHours.map((entry) => /* @__PURE__ */ jsx8(
|
|
1249
1253
|
HoursMinimalItem,
|
|
1250
1254
|
{
|
|
1251
1255
|
entry,
|
|
@@ -1254,7 +1258,7 @@ function Hours({
|
|
|
1254
1258
|
entry.day
|
|
1255
1259
|
)) });
|
|
1256
1260
|
}
|
|
1257
|
-
return /* @__PURE__ */ jsxs8("div", { className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
|
|
1261
|
+
return /* @__PURE__ */ jsxs8("div", { id, className: `bg-white rounded-lg shadow p-6 ${className}`, children: [
|
|
1258
1262
|
/* @__PURE__ */ jsxs8("div", { className: "flex items-center mb-4", children: [
|
|
1259
1263
|
/* @__PURE__ */ jsx8(ClockIcon, { size: 24, className: "text-primary-600 mr-2" }),
|
|
1260
1264
|
/* @__PURE__ */ jsx8("h3", { className: "text-xl font-semibold text-gray-900", children: title })
|