@eloisallena/web_components 1.0.6 → 1.0.7
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/index.cjs +275 -0
- package/dist/index.d.ts +2 -26
- package/dist/index.js +794 -26
- package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/src/component/breadcrumbs/index.d.ts +1 -0
- package/dist/src/component/button/index.d.ts +1 -0
- package/dist/src/component/card/Card.d.ts +1 -2
- package/dist/src/component/card/CardContent.d.ts +1 -2
- package/dist/src/component/card/CardFooter.d.ts +1 -2
- package/dist/src/component/card/CardImage.d.ts +2 -2
- package/dist/src/component/card/index.d.ts +5 -1
- package/dist/src/component/footer/Cfooter.d.ts +1 -2
- package/dist/src/component/footer/FooterBottom.d.ts +1 -2
- package/dist/src/component/footer/FooterContact.d.ts +1 -2
- package/dist/src/component/footer/FooterIcon.d.ts +1 -2
- package/dist/src/component/footer/QuickLink.d.ts +1 -2
- package/dist/src/component/footer/index.d.ts +6 -1
- package/dist/src/component/form/Cform.d.ts +1 -2
- package/dist/src/component/form/index.d.ts +1 -0
- package/dist/src/component/header/Cheader.d.ts +1 -2
- package/dist/src/component/header/Drawer.d.ts +1 -2
- package/dist/src/component/header/Icon.d.ts +1 -2
- package/dist/src/component/header/NavBar.d.ts +1 -2
- package/dist/src/component/header/SearchBar.d.ts +1 -2
- package/dist/src/component/header/index.d.ts +7 -2
- package/dist/src/component/input/CheckBox.d.ts +2 -2
- package/dist/src/component/input/Select.d.ts +2 -2
- package/dist/src/component/input/TextField.d.ts +1 -2
- package/dist/src/component/input/index.d.ts +4 -1
- package/dist/src/component/modal/Modal.d.ts +2 -2
- package/dist/src/component/modal/index.d.ts +1 -0
- package/dist/src/component/section/Section.d.ts +1 -2
- package/dist/src/component/section/index.d.ts +1 -0
- package/dist/src/component/stories/LandingLayout.d.ts +2 -3
- package/dist/src/component/stories/index.d.ts +1 -0
- package/dist/src/component/table/Ctable.d.ts +1 -2
- package/dist/src/component/table/TableBody.d.ts +1 -2
- package/dist/src/component/table/TableCell.d.ts +1 -2
- package/dist/src/component/table/TableHead.d.ts +1 -2
- package/dist/src/component/table/TableRow.d.ts +1 -2
- package/dist/src/component/table/index.d.ts +9 -2
- package/dist/src/component/table/types.d.ts +3 -2
- package/dist/src/index.d.ts +12 -26
- package/dist/web_components.css +3 -0
- package/package.json +8 -12
- package/dist/component/breadcrumbs/Breadcrumbs.d.ts +0 -9
- package/dist/component/breadcrumbs/Breadcrumbs.js +0 -7
- package/dist/component/breadcrumbs/index.d.ts +0 -1
- package/dist/component/breadcrumbs/index.js +0 -1
- package/dist/component/button/Button.d.ts +0 -8
- package/dist/component/button/Button.js +0 -15
- package/dist/component/button/index.d.ts +0 -1
- package/dist/component/button/index.js +0 -2
- package/dist/component/card/Card.d.ts +0 -6
- package/dist/component/card/Card.js +0 -4
- package/dist/component/card/CardContent.d.ts +0 -6
- package/dist/component/card/CardContent.js +0 -4
- package/dist/component/card/CardFooter.d.ts +0 -5
- package/dist/component/card/CardFooter.js +0 -4
- package/dist/component/card/CardImage.d.ts +0 -7
- package/dist/component/card/CardImage.js +0 -4
- package/dist/component/card/index.d.ts +0 -4
- package/dist/component/card/index.js +0 -4
- package/dist/component/footer/Cfooter.d.ts +0 -6
- package/dist/component/footer/Cfooter.js +0 -4
- package/dist/component/footer/FooterBottom.d.ts +0 -5
- package/dist/component/footer/FooterBottom.js +0 -4
- package/dist/component/footer/FooterContact.d.ts +0 -11
- package/dist/component/footer/FooterContact.js +0 -4
- package/dist/component/footer/FooterIcon.d.ts +0 -7
- package/dist/component/footer/FooterIcon.js +0 -4
- package/dist/component/footer/QuickLink.d.ts +0 -11
- package/dist/component/footer/QuickLink.js +0 -4
- package/dist/component/footer/index.d.ts +0 -5
- package/dist/component/footer/index.js +0 -5
- package/dist/component/form/Cform.d.ts +0 -6
- package/dist/component/form/Cform.js +0 -4
- package/dist/component/form/index.d.ts +0 -1
- package/dist/component/form/index.js +0 -1
- package/dist/component/header/Cheader.d.ts +0 -7
- package/dist/component/header/Cheader.js +0 -4
- package/dist/component/header/Drawer.d.ts +0 -12
- package/dist/component/header/Drawer.js +0 -22
- package/dist/component/header/Icon.d.ts +0 -9
- package/dist/component/header/Icon.js +0 -11
- package/dist/component/header/NavBar.d.ts +0 -12
- package/dist/component/header/NavBar.js +0 -14
- package/dist/component/header/SearchBar.d.ts +0 -8
- package/dist/component/header/SearchBar.js +0 -7
- package/dist/component/header/index.d.ts +0 -5
- package/dist/component/header/index.js +0 -5
- package/dist/component/input/CheckBox.d.ts +0 -12
- package/dist/component/input/CheckBox.js +0 -18
- package/dist/component/input/Select.d.ts +0 -17
- package/dist/component/input/Select.js +0 -12
- package/dist/component/input/TextField.d.ts +0 -11
- package/dist/component/input/TextField.js +0 -7
- package/dist/component/input/index.d.ts +0 -3
- package/dist/component/input/index.js +0 -3
- package/dist/component/modal/Modal.d.ts +0 -8
- package/dist/component/modal/Modal.js +0 -6
- package/dist/component/modal/index.d.ts +0 -1
- package/dist/component/modal/index.js +0 -1
- package/dist/component/section/Section.d.ts +0 -9
- package/dist/component/section/Section.js +0 -14
- package/dist/component/section/index.d.ts +0 -1
- package/dist/component/section/index.js +0 -1
- package/dist/component/spinner/Loader.d.ts +0 -1
- package/dist/component/spinner/Loader.js +0 -4
- package/dist/component/spinner/index.d.ts +0 -1
- package/dist/component/spinner/index.js +0 -1
- package/dist/component/stories/LandingLayout.d.ts +0 -6
- package/dist/component/stories/LandingLayout.js +0 -33
- package/dist/component/stories/index.d.ts +0 -1
- package/dist/component/stories/index.js +0 -1
- package/dist/component/table/Ctable.d.ts +0 -8
- package/dist/component/table/Ctable.js +0 -13
- package/dist/component/table/TableBody.d.ts +0 -7
- package/dist/component/table/TableBody.js +0 -4
- package/dist/component/table/TableCell.d.ts +0 -8
- package/dist/component/table/TableCell.js +0 -12
- package/dist/component/table/TableHead.d.ts +0 -7
- package/dist/component/table/TableHead.js +0 -16
- package/dist/component/table/TableRow.d.ts +0 -8
- package/dist/component/table/TableRow.js +0 -27
- package/dist/component/table/alignment.d.ts +0 -5
- package/dist/component/table/alignment.js +0 -5
- package/dist/component/table/index.d.ts +0 -5
- package/dist/component/table/index.js +0 -5
- package/dist/component/table/types.d.ts +0 -13
- package/dist/component/table/types.js +0 -1
- package/dist/themes/tailwind.css +0 -47
- package/dist/web-components.es.js +0 -786
package/dist/index.js
CHANGED
|
@@ -1,26 +1,794 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import e, { useState as t } from "react";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), r = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
4
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
6
|
+
}), i = /* @__PURE__ */ n(((e) => {
|
|
7
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
8
|
+
function r(e, n, r) {
|
|
9
|
+
var i = null;
|
|
10
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
11
|
+
else r = n;
|
|
12
|
+
return n = r.ref, {
|
|
13
|
+
$$typeof: t,
|
|
14
|
+
type: e,
|
|
15
|
+
key: i,
|
|
16
|
+
ref: n === void 0 ? null : n,
|
|
17
|
+
props: r
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
21
|
+
})), a = /* @__PURE__ */ n(((e) => {
|
|
22
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
+
function t(e) {
|
|
24
|
+
if (e == null) return null;
|
|
25
|
+
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
26
|
+
if (typeof e == "string") return e;
|
|
27
|
+
switch (e) {
|
|
28
|
+
case v: return "Fragment";
|
|
29
|
+
case b: return "Profiler";
|
|
30
|
+
case y: return "StrictMode";
|
|
31
|
+
case w: return "Suspense";
|
|
32
|
+
case T: return "SuspenseList";
|
|
33
|
+
case O: return "Activity";
|
|
34
|
+
}
|
|
35
|
+
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
36
|
+
case _: return "Portal";
|
|
37
|
+
case S: return e.displayName || "Context";
|
|
38
|
+
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
39
|
+
case C:
|
|
40
|
+
var n = e.render;
|
|
41
|
+
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
42
|
+
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
43
|
+
case D:
|
|
44
|
+
n = e._payload, e = e._init;
|
|
45
|
+
try {
|
|
46
|
+
return t(e(n));
|
|
47
|
+
} catch {}
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
function n(e) {
|
|
52
|
+
return "" + e;
|
|
53
|
+
}
|
|
54
|
+
function i(e) {
|
|
55
|
+
try {
|
|
56
|
+
n(e);
|
|
57
|
+
var t = !1;
|
|
58
|
+
} catch {
|
|
59
|
+
t = !0;
|
|
60
|
+
}
|
|
61
|
+
if (t) {
|
|
62
|
+
t = console;
|
|
63
|
+
var r = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
64
|
+
return r.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), n(e);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function a(e) {
|
|
68
|
+
if (e === v) return "<>";
|
|
69
|
+
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
70
|
+
try {
|
|
71
|
+
var n = t(e);
|
|
72
|
+
return n ? "<" + n + ">" : "<...>";
|
|
73
|
+
} catch {
|
|
74
|
+
return "<...>";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function o() {
|
|
78
|
+
var e = A.A;
|
|
79
|
+
return e === null ? null : e.getOwner();
|
|
80
|
+
}
|
|
81
|
+
function s() {
|
|
82
|
+
return Error("react-stack-top-frame");
|
|
83
|
+
}
|
|
84
|
+
function c(e) {
|
|
85
|
+
if (j.call(e, "key")) {
|
|
86
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
87
|
+
if (t && t.isReactWarning) return !1;
|
|
88
|
+
}
|
|
89
|
+
return e.key !== void 0;
|
|
90
|
+
}
|
|
91
|
+
function l(e, t) {
|
|
92
|
+
function n() {
|
|
93
|
+
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
94
|
+
}
|
|
95
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
96
|
+
get: n,
|
|
97
|
+
configurable: !0
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function u() {
|
|
101
|
+
var e = t(this.type);
|
|
102
|
+
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
103
|
+
}
|
|
104
|
+
function d(e, t, n, r, i, a) {
|
|
105
|
+
var o = n.ref;
|
|
106
|
+
return e = {
|
|
107
|
+
$$typeof: g,
|
|
108
|
+
type: e,
|
|
109
|
+
key: t,
|
|
110
|
+
props: n,
|
|
111
|
+
_owner: r
|
|
112
|
+
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
113
|
+
enumerable: !1,
|
|
114
|
+
value: null
|
|
115
|
+
}) : Object.defineProperty(e, "ref", {
|
|
116
|
+
enumerable: !1,
|
|
117
|
+
get: u
|
|
118
|
+
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
119
|
+
configurable: !1,
|
|
120
|
+
enumerable: !1,
|
|
121
|
+
writable: !0,
|
|
122
|
+
value: 0
|
|
123
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
124
|
+
configurable: !1,
|
|
125
|
+
enumerable: !1,
|
|
126
|
+
writable: !0,
|
|
127
|
+
value: null
|
|
128
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
129
|
+
configurable: !1,
|
|
130
|
+
enumerable: !1,
|
|
131
|
+
writable: !0,
|
|
132
|
+
value: i
|
|
133
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
134
|
+
configurable: !1,
|
|
135
|
+
enumerable: !1,
|
|
136
|
+
writable: !0,
|
|
137
|
+
value: a
|
|
138
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
139
|
+
}
|
|
140
|
+
function f(e, n, r, a, s, u) {
|
|
141
|
+
var f = n.children;
|
|
142
|
+
if (f !== void 0) if (a) if (M(f)) {
|
|
143
|
+
for (a = 0; a < f.length; a++) p(f[a]);
|
|
144
|
+
Object.freeze && Object.freeze(f);
|
|
145
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
146
|
+
else p(f);
|
|
147
|
+
if (j.call(n, "key")) {
|
|
148
|
+
f = t(e);
|
|
149
|
+
var m = Object.keys(n).filter(function(e) {
|
|
150
|
+
return e !== "key";
|
|
151
|
+
});
|
|
152
|
+
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
|
|
153
|
+
}
|
|
154
|
+
if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
|
|
155
|
+
else r = n;
|
|
156
|
+
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
157
|
+
}
|
|
158
|
+
function p(e) {
|
|
159
|
+
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
160
|
+
}
|
|
161
|
+
function m(e) {
|
|
162
|
+
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
163
|
+
}
|
|
164
|
+
var h = r("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
165
|
+
return null;
|
|
166
|
+
};
|
|
167
|
+
h = { react_stack_bottom_frame: function(e) {
|
|
168
|
+
return e();
|
|
169
|
+
} };
|
|
170
|
+
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
|
|
171
|
+
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
172
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
173
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
174
|
+
}, e.jsxs = function(e, t, n) {
|
|
175
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
176
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
177
|
+
};
|
|
178
|
+
})();
|
|
179
|
+
})), o = (/* @__PURE__ */ n(((e, t) => {
|
|
180
|
+
process.env.NODE_ENV === "production" ? t.exports = i() : t.exports = a();
|
|
181
|
+
})))(), s = () => /* @__PURE__ */ (0, o.jsx)("span", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-white" }), c = ({ variant: e = "primary", label: t, isLoading: n = !1, disabled: r = !1, onClick: i }) => {
|
|
182
|
+
let a = {
|
|
183
|
+
primary: "bg-primary-button text-primary",
|
|
184
|
+
secondary: "bg-secondary-button text-primary",
|
|
185
|
+
restore: "bg-restore-button text-primary",
|
|
186
|
+
delete: "bg-delete-button text-primary",
|
|
187
|
+
disabled: "bg-disabled-button text-primary"
|
|
188
|
+
}, c = n ? /* @__PURE__ */ (0, o.jsx)(s, {}) : null, l = r || n;
|
|
189
|
+
return /* @__PURE__ */ (0, o.jsx)("div", { children: /* @__PURE__ */ (0, o.jsxs)("button", {
|
|
190
|
+
className: `${a[e]} flex items-center gap-3 px-4 py-2 rounded-2xl text-sm font-medium w-full justify-center md:w-70 lg:w-25
|
|
191
|
+
${l ? "cursor-not-allowed opacity-50" : "hover:cursor-pointer"}`,
|
|
192
|
+
disabled: l,
|
|
193
|
+
onClick: i,
|
|
194
|
+
children: [c, t]
|
|
195
|
+
}) });
|
|
196
|
+
}, l = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
197
|
+
className: "bg-primary w-full max-w-sm rounded-lg shadow-md overflow-hidden",
|
|
198
|
+
children: e
|
|
199
|
+
}), u = ({ title: e, description: t }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
200
|
+
className: "p-10",
|
|
201
|
+
children: [/* @__PURE__ */ (0, o.jsx)("h2", {
|
|
202
|
+
className: "text-lg font-bold mb-2 text-black",
|
|
203
|
+
children: e
|
|
204
|
+
}), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
205
|
+
className: "text-gray text-sm font-normal",
|
|
206
|
+
children: t
|
|
207
|
+
})]
|
|
208
|
+
}), d = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
209
|
+
className: "flex justify-end gap-4 w-full p-4",
|
|
210
|
+
children: e
|
|
211
|
+
}), f = ({ alt: e, image: t, children: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
212
|
+
className: "relative w-full h-48",
|
|
213
|
+
children: [/* @__PURE__ */ (0, o.jsx)("img", {
|
|
214
|
+
src: t,
|
|
215
|
+
alt: e,
|
|
216
|
+
className: "w-full h-full object-cover"
|
|
217
|
+
}), n]
|
|
218
|
+
}), p = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("footer", {
|
|
219
|
+
className: "\r\n w-full\r\n bg-gray\r\n text-white\r\n ",
|
|
220
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
221
|
+
className: "\r\n mx-auto\r\n max-w-7xl\r\n grid\r\n grid-cols-1\r\n gap-8\r\n px-6\r\n py-10\r\n md:grid-cols-3\r\n ",
|
|
222
|
+
children: e
|
|
223
|
+
})
|
|
224
|
+
}), m = ({ copyright: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
225
|
+
className: "\r\n bg-gray\r\n text-light-gray\r\n\r\n border-t\r\n border-gray\r\n\r\n py-4\r\n\r\n text-center\r\n text-sm\r\n ",
|
|
226
|
+
children: e
|
|
227
|
+
}), h = ({ email: e, phone: t, socials: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
228
|
+
className: "text-white",
|
|
229
|
+
children: [
|
|
230
|
+
/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
231
|
+
className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
|
|
232
|
+
children: "Contact"
|
|
233
|
+
}),
|
|
234
|
+
/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
235
|
+
className: "flex flex-col gap-2",
|
|
236
|
+
children: [/* @__PURE__ */ (0, o.jsx)("p", { children: e }), /* @__PURE__ */ (0, o.jsx)("p", { children: t })]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ (0, o.jsx)("h4", {
|
|
239
|
+
className: "\r\n mt-5\r\n mb-2\r\n font-medium\r\n ",
|
|
240
|
+
children: "Follow Us"
|
|
241
|
+
}),
|
|
242
|
+
/* @__PURE__ */ (0, o.jsx)("div", {
|
|
243
|
+
className: "flex flex-wrap gap-3",
|
|
244
|
+
children: n.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
|
|
245
|
+
href: e.href,
|
|
246
|
+
className: "hover:underline",
|
|
247
|
+
children: e.label
|
|
248
|
+
}, e.id))
|
|
249
|
+
})
|
|
250
|
+
]
|
|
251
|
+
}), g = ({ children: e, description: t }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
252
|
+
className: "flex flex-col gap-4",
|
|
253
|
+
children: [e, /* @__PURE__ */ (0, o.jsx)("p", {
|
|
254
|
+
className: "\r\n max-w-sm\r\n text-sm\r\n text-white\r\n ",
|
|
255
|
+
children: t
|
|
256
|
+
})]
|
|
257
|
+
}), _ = ({ title: e, links: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
258
|
+
className: "text-white",
|
|
259
|
+
children: [/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
260
|
+
className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
|
|
261
|
+
children: e
|
|
262
|
+
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
263
|
+
className: "flex flex-col gap-2",
|
|
264
|
+
children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
|
|
265
|
+
href: e.href,
|
|
266
|
+
onClick: () => n?.(e.label),
|
|
267
|
+
className: "hover:underline",
|
|
268
|
+
children: e.label
|
|
269
|
+
}, e.id))
|
|
270
|
+
})]
|
|
271
|
+
}), v = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("header", {
|
|
272
|
+
className: `w-full bg-white border-b border-light-gray shadow-sm ${t}`,
|
|
273
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
274
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
275
|
+
children: e
|
|
276
|
+
})
|
|
277
|
+
}), y = ({ navDrawer: e = [], style: n, onItemClick: r }) => {
|
|
278
|
+
let [i, a] = t(!1);
|
|
279
|
+
return /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [
|
|
280
|
+
/* @__PURE__ */ (0, o.jsx)("button", {
|
|
281
|
+
onClick: () => a(!0),
|
|
282
|
+
className: " flex md:hidden items-center justify-center h-10 w-10 rounded-md hover:bg-gray-100",
|
|
283
|
+
children: /* @__PURE__ */ (0, o.jsx)("svg", {
|
|
284
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
285
|
+
viewBox: "0 0 24 24",
|
|
286
|
+
fill: "currentColor",
|
|
287
|
+
className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
|
|
288
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
289
|
+
fillRule: "evenodd",
|
|
290
|
+
d: "M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z",
|
|
291
|
+
clipRule: "evenodd"
|
|
292
|
+
})
|
|
293
|
+
})
|
|
294
|
+
}),
|
|
295
|
+
i && /* @__PURE__ */ (0, o.jsx)("div", {
|
|
296
|
+
onClick: () => a(!1),
|
|
297
|
+
className: "fixed inset-0 z-40 bg-black/40 md:hidden"
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ (0, o.jsxs)("aside", {
|
|
300
|
+
className: `
|
|
301
|
+
fixed top-0
|
|
302
|
+
left-0 z-50
|
|
303
|
+
h-screen w-65
|
|
304
|
+
bg-white
|
|
305
|
+
shadow-lg
|
|
306
|
+
transition-transform duration-300
|
|
307
|
+
|
|
308
|
+
${i ? "translate-x-0" : "-translate-x-full"}
|
|
309
|
+
|
|
310
|
+
md:hidden
|
|
311
|
+
|
|
312
|
+
${n || ""}
|
|
313
|
+
`,
|
|
314
|
+
children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
315
|
+
className: "\r\n flex\r\n items-center\r\n justify-between\r\n\r\n border-b\r\n border-light-gray\r\n\r\n px-5\r\n py-4\r\n ",
|
|
316
|
+
children: [/* @__PURE__ */ (0, o.jsx)("h2", {
|
|
317
|
+
className: "text-lg font-semibold",
|
|
318
|
+
children: "Menu"
|
|
319
|
+
}), /* @__PURE__ */ (0, o.jsx)("button", {
|
|
320
|
+
onClick: () => a(!1),
|
|
321
|
+
className: "\r\n flex\r\n items-center\r\n justify-center\r\n\r\n h-10\r\n w-10\r\n\r\n rounded-md\r\n\r\n hover:bg-gray-100\r\n ",
|
|
322
|
+
children: /* @__PURE__ */ (0, o.jsx)("svg", {
|
|
323
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
324
|
+
viewBox: "0 0 24 24",
|
|
325
|
+
fill: "currentColor",
|
|
326
|
+
className: "\r\n h-6\r\n w-6\r\n\r\n text-gray-700\r\n ",
|
|
327
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
328
|
+
fillRule: "evenodd",
|
|
329
|
+
d: "M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 01-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06Z",
|
|
330
|
+
clipRule: "evenodd"
|
|
331
|
+
})
|
|
332
|
+
})
|
|
333
|
+
})]
|
|
334
|
+
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
335
|
+
className: "flex flex-col p-4",
|
|
336
|
+
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
|
|
337
|
+
href: e.href || "#",
|
|
338
|
+
onClick: () => {
|
|
339
|
+
r?.(e.label), a(!1);
|
|
340
|
+
},
|
|
341
|
+
className: "\r\n rounded-md\r\n px-4\r\n py-3\r\n hover:bg-gray-100\r\n ",
|
|
342
|
+
children: e.label
|
|
343
|
+
}, e.id))
|
|
344
|
+
})]
|
|
345
|
+
})
|
|
346
|
+
] });
|
|
347
|
+
}, b = ({ logo: e = "/logo.svg", title: t = "my Company", style: n, alt: r = "" }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
348
|
+
className: `
|
|
349
|
+
flex
|
|
350
|
+
items-center
|
|
351
|
+
gap-2
|
|
352
|
+
sm:gap-3
|
|
353
|
+
shrink-0
|
|
354
|
+
${n || ""}
|
|
355
|
+
`,
|
|
356
|
+
children: [/* @__PURE__ */ (0, o.jsx)("img", {
|
|
357
|
+
src: e,
|
|
358
|
+
alt: r,
|
|
359
|
+
className: "\r\n h-8\r\n w-8\r\n sm:h-10\r\n sm:w-10\r\n object-contain"
|
|
360
|
+
}), /* @__PURE__ */ (0, o.jsx)("h1", {
|
|
361
|
+
className: "text-sm sm:text-lg font-bold text-blue",
|
|
362
|
+
children: t
|
|
363
|
+
})]
|
|
364
|
+
}), x = ({ navBar: e = [], style: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsx)("nav", {
|
|
365
|
+
className: `
|
|
366
|
+
hidden
|
|
367
|
+
md:flex
|
|
368
|
+
gap-12
|
|
369
|
+
justify-center
|
|
370
|
+
items-center
|
|
371
|
+
absolute
|
|
372
|
+
left-1/2
|
|
373
|
+
-translate-x-1/2
|
|
374
|
+
${t || ""}
|
|
375
|
+
`,
|
|
376
|
+
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
|
|
377
|
+
href: e.href || "#",
|
|
378
|
+
onClick: () => n?.(e.label),
|
|
379
|
+
className: "\r\n text-lg\r\n font-bold\r\n text-black\r\n hover:text-green\r\n cursor-pointer\r\n ",
|
|
380
|
+
children: e.label
|
|
381
|
+
}, e.id))
|
|
382
|
+
}), S = ({ isOpen: e, onClose: t, title: n, children: r }) => e ? /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)("div", {
|
|
383
|
+
className: "fixed inset-0 z-40 bg-black/40",
|
|
384
|
+
onClick: t
|
|
385
|
+
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
386
|
+
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
387
|
+
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
388
|
+
className: "w-full max-w-md bg-white shadow-lg",
|
|
389
|
+
role: "dialog",
|
|
390
|
+
"aria-modal": "true",
|
|
391
|
+
children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
392
|
+
className: "flex items-center justify-between border-b border-gray-200 px-5 py-4",
|
|
393
|
+
children: [/* @__PURE__ */ (0, o.jsx)("h2", {
|
|
394
|
+
className: "text-lg font-semibold",
|
|
395
|
+
children: n
|
|
396
|
+
}), /* @__PURE__ */ (0, o.jsx)("button", {
|
|
397
|
+
onClick: t,
|
|
398
|
+
className: "flex h-10 w-10 items-center justify-center hover:bg-gray-100 rounded-md",
|
|
399
|
+
"aria-label": "Close modal",
|
|
400
|
+
children: /* @__PURE__ */ (0, o.jsx)("svg", {
|
|
401
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
402
|
+
fill: "none",
|
|
403
|
+
viewBox: "0 0 24 24",
|
|
404
|
+
strokeWidth: 2,
|
|
405
|
+
stroke: "currentColor",
|
|
406
|
+
className: "h-5 w-5",
|
|
407
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
408
|
+
strokeLinecap: "round",
|
|
409
|
+
strokeLinejoin: "round",
|
|
410
|
+
d: "M6 18L18 6M6 6l12 12"
|
|
411
|
+
})
|
|
412
|
+
})
|
|
413
|
+
})]
|
|
414
|
+
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
415
|
+
className: "p-5",
|
|
416
|
+
children: r
|
|
417
|
+
})]
|
|
418
|
+
})
|
|
419
|
+
})] }) : null, C = ({ placeholder: e = "Search...", style: n, children: r }) => {
|
|
420
|
+
let [i, a] = t(!1);
|
|
421
|
+
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
422
|
+
className: `relative ${n || ""}`,
|
|
423
|
+
children: [
|
|
424
|
+
/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
425
|
+
className: "hidden md:block relative",
|
|
426
|
+
children: [/* @__PURE__ */ (0, o.jsx)("svg", {
|
|
427
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
428
|
+
fill: "none",
|
|
429
|
+
viewBox: "0 0 24 24",
|
|
430
|
+
stroke: "currentColor",
|
|
431
|
+
strokeWidth: 2,
|
|
432
|
+
className: "\r\n absolute\r\n left-3\r\n top-1/2\r\n h-4\r\n w-4\r\n -translate-y-1/2\r\n text-gray-400\r\n ",
|
|
433
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
434
|
+
strokeLinecap: "round",
|
|
435
|
+
strokeLinejoin: "round",
|
|
436
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
437
|
+
})
|
|
438
|
+
}), /* @__PURE__ */ (0, o.jsx)("input", {
|
|
439
|
+
type: "text",
|
|
440
|
+
placeholder: e,
|
|
441
|
+
className: "\r\n w-27.5\r\n sm:w-40\r\n md:w-50\r\n lg:w-60\r\n rounded-md\r\n border\r\n border-light-gray\r\n bg-white\r\n px-3\r\n py-2\r\n pl-9\r\n text-xs\r\n sm:text-sm\r\n focus:outline-none\r\n focus:ring-2\r\n focus:ring-blue\r\n "
|
|
442
|
+
})]
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ (0, o.jsx)("button", {
|
|
445
|
+
onClick: () => a(!0),
|
|
446
|
+
className: "\r\n flex\r\n md:hidden\r\n items-center\r\n justify-center\r\n h-10\r\n w-10\r\n rounded-md\r\n hover:bg-gray-100\r\n ",
|
|
447
|
+
children: /* @__PURE__ */ (0, o.jsx)("svg", {
|
|
448
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
449
|
+
fill: "none",
|
|
450
|
+
viewBox: "0 0 24 24",
|
|
451
|
+
stroke: "currentColor",
|
|
452
|
+
strokeWidth: 2,
|
|
453
|
+
className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
|
|
454
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
455
|
+
strokeLinecap: "round",
|
|
456
|
+
strokeLinejoin: "round",
|
|
457
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
458
|
+
})
|
|
459
|
+
})
|
|
460
|
+
}),
|
|
461
|
+
/* @__PURE__ */ (0, o.jsx)(S, {
|
|
462
|
+
isOpen: i,
|
|
463
|
+
title: "Search",
|
|
464
|
+
onClose: () => a(!1),
|
|
465
|
+
children: r || /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
466
|
+
className: "relative",
|
|
467
|
+
children: [/* @__PURE__ */ (0, o.jsx)("svg", {
|
|
468
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
469
|
+
fill: "none",
|
|
470
|
+
viewBox: "0 0 24 24",
|
|
471
|
+
stroke: "currentColor",
|
|
472
|
+
strokeWidth: 2,
|
|
473
|
+
className: "\r\n absolute\r\n left-3\r\n top-1/2\r\n h-4\r\n w-4\r\n -translate-y-1/2\r\n text-gray-400\r\n ",
|
|
474
|
+
children: /* @__PURE__ */ (0, o.jsx)("path", {
|
|
475
|
+
strokeLinecap: "round",
|
|
476
|
+
strokeLinejoin: "round",
|
|
477
|
+
d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
478
|
+
})
|
|
479
|
+
}), /* @__PURE__ */ (0, o.jsx)("input", {
|
|
480
|
+
autoFocus: !0,
|
|
481
|
+
type: "text",
|
|
482
|
+
placeholder: e,
|
|
483
|
+
className: "\r\n w-full\r\n rounded-md\r\n border\r\n border-light-gray\r\n bg-white\r\n px-3\r\n py-2\r\n pl-9\r\n text-sm\r\n focus:outline-none\r\n focus:ring-2\r\n focus:ring-blue\r\n "
|
|
484
|
+
})]
|
|
485
|
+
})
|
|
486
|
+
})
|
|
487
|
+
]
|
|
488
|
+
});
|
|
489
|
+
}, w = ({ id: e, label: n, required: r, disabled: i, defaultChecked: a, error: s, helperText: c, onChange: l }) => {
|
|
490
|
+
let [u, d] = t(a || !1);
|
|
491
|
+
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
492
|
+
className: "flex flex-col gap-1",
|
|
493
|
+
children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
494
|
+
className: "flex items-center gap-2",
|
|
495
|
+
children: [/* @__PURE__ */ (0, o.jsx)("input", {
|
|
496
|
+
id: e,
|
|
497
|
+
type: "checkbox",
|
|
498
|
+
checked: u,
|
|
499
|
+
onChange: (e) => {
|
|
500
|
+
let t = e.target.checked;
|
|
501
|
+
d(t), l?.(t);
|
|
502
|
+
},
|
|
503
|
+
disabled: i,
|
|
504
|
+
className: `w-4 h-4 border rounded-xs bg-neutral-secondary-medium focus:ring-2 focus:ring-brand-soft ${i ? "border-light cursor-not-allowed" : "border-default-medium hover:cursor-pointer"}`
|
|
505
|
+
}), /* @__PURE__ */ (0, o.jsxs)("label", {
|
|
506
|
+
htmlFor: e,
|
|
507
|
+
className: `select-none ms-2 text-sm font-medium ${i ? "text-light-gray" : "text-heading"}`,
|
|
508
|
+
children: [
|
|
509
|
+
n,
|
|
510
|
+
" ",
|
|
511
|
+
r && /* @__PURE__ */ (0, o.jsx)("span", {
|
|
512
|
+
className: "text-red",
|
|
513
|
+
children: "*"
|
|
514
|
+
})
|
|
515
|
+
]
|
|
516
|
+
})]
|
|
517
|
+
}), c && /* @__PURE__ */ (0, o.jsx)("div", {
|
|
518
|
+
className: `text-sm font-medium ${s ? "text-red" : "text-gray"}`,
|
|
519
|
+
children: c
|
|
520
|
+
})]
|
|
521
|
+
});
|
|
522
|
+
}, T = ({ label: e, options: t, required: n, disabled: r, helperText: i, error: a, value: s, onChange: c }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
523
|
+
className: "w-full flex flex-col gap-1",
|
|
524
|
+
children: [
|
|
525
|
+
/* @__PURE__ */ (0, o.jsxs)("label", {
|
|
526
|
+
className: "text-sm font-medium text-gray",
|
|
527
|
+
children: [
|
|
528
|
+
e,
|
|
529
|
+
" ",
|
|
530
|
+
n && "*"
|
|
531
|
+
]
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ (0, o.jsx)("select", {
|
|
534
|
+
className: `h-10 px-4 w-full bg-neutral-secondary-medium border border-default-medium text-heading text-sm rounded-base shadow-xs focus:ring-brand focus:border-brand ${r ? "cursor-not-allowed" : "hover:cursor-pointer"}`,
|
|
535
|
+
disabled: r,
|
|
536
|
+
value: s,
|
|
537
|
+
onChange: (e) => c?.(e.target.value),
|
|
538
|
+
children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("option", {
|
|
539
|
+
value: e.name,
|
|
540
|
+
children: e.value
|
|
541
|
+
}, e.key))
|
|
542
|
+
}),
|
|
543
|
+
i && a && /* @__PURE__ */ (0, o.jsx)("div", {
|
|
544
|
+
className: "text-red text-sm font-normal",
|
|
545
|
+
children: i
|
|
546
|
+
})
|
|
547
|
+
]
|
|
548
|
+
}), E = "border-red", D = "text-red", O = "border-gray", k = ({ id: e, labelText: t, placeholder: n, type: r, error: i, helperText: a }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
549
|
+
className: "flex flex-col gap-1",
|
|
550
|
+
children: [
|
|
551
|
+
/* @__PURE__ */ (0, o.jsx)("label", {
|
|
552
|
+
htmlFor: e,
|
|
553
|
+
className: "text-sm font-medium text-gray",
|
|
554
|
+
children: t
|
|
555
|
+
}),
|
|
556
|
+
/* @__PURE__ */ (0, o.jsx)("input", {
|
|
557
|
+
id: e,
|
|
558
|
+
placeholder: n,
|
|
559
|
+
type: r,
|
|
560
|
+
className: `block w-full px-3 py-2.5 bg-neutral-secondary-medium border ${i ? E : O} text-heading text-sm rounded-base shadow-xs placeholder:text-body focus:ring-brand focus:border-brand`
|
|
561
|
+
}),
|
|
562
|
+
a && /* @__PURE__ */ (0, o.jsx)("p", {
|
|
563
|
+
className: `${i ? D : "text-light-gray"} text-xs`,
|
|
564
|
+
children: a
|
|
565
|
+
})
|
|
566
|
+
]
|
|
567
|
+
}), A = ({ children: e, onSubmit: t, className: n = "", ...r }) => /* @__PURE__ */ (0, o.jsx)("form", {
|
|
568
|
+
onSubmit: t,
|
|
569
|
+
className: `w-full max-w-sm ${n}`,
|
|
570
|
+
...r,
|
|
571
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
572
|
+
className: "flex flex-col gap-1",
|
|
573
|
+
children: e
|
|
574
|
+
})
|
|
575
|
+
}), j = ({ id: e, title: t, children: n, style: r }) => /* @__PURE__ */ (0, o.jsx)("section", {
|
|
576
|
+
id: e,
|
|
577
|
+
className: `
|
|
578
|
+
min-h-screen
|
|
579
|
+
w-full
|
|
580
|
+
px-6
|
|
581
|
+
py-6
|
|
582
|
+
scroll-mt-32
|
|
583
|
+
md:px-10
|
|
584
|
+
lg:px-16
|
|
585
|
+
|
|
586
|
+
${r || ""}
|
|
587
|
+
`,
|
|
588
|
+
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
589
|
+
className: "mx-auto flex w-full max-w-7xl flex-col gap-10",
|
|
590
|
+
children: [t && /* @__PURE__ */ (0, o.jsx)("h2", {
|
|
591
|
+
className: "\r\n text-3xl\r\n font-bold\r\n md:text-4xl\r\n ",
|
|
592
|
+
children: t
|
|
593
|
+
}), n]
|
|
594
|
+
})
|
|
595
|
+
}), M = ({ children: e, style: t, maxRows: n = 5 }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
596
|
+
className: `
|
|
597
|
+
w-full
|
|
598
|
+
overflow-hidden
|
|
599
|
+
rounded-md
|
|
600
|
+
bg-white
|
|
601
|
+
shadow-lg
|
|
602
|
+
${t || ""}
|
|
603
|
+
`,
|
|
604
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
605
|
+
className: "overflow-auto",
|
|
606
|
+
style: { maxHeight: `${n * 56}px` },
|
|
607
|
+
children: /* @__PURE__ */ (0, o.jsx)("table", {
|
|
608
|
+
className: "w-full border-separate border-spacing-0",
|
|
609
|
+
children: e
|
|
610
|
+
})
|
|
611
|
+
})
|
|
612
|
+
}), N = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tbody", {
|
|
613
|
+
className: t,
|
|
614
|
+
children: e
|
|
615
|
+
}), P = ({ children: e, align: t = "left", style: n }) => /* @__PURE__ */ (0, o.jsx)("td", {
|
|
616
|
+
className: `
|
|
617
|
+
px-4
|
|
618
|
+
py-3
|
|
619
|
+
text-sm
|
|
620
|
+
${t === "center" ? "text-center" : ""}
|
|
621
|
+
${t === "right" ? "text-right" : ""}
|
|
622
|
+
${t === "left" ? "text-left" : ""}
|
|
623
|
+
${n || ""}
|
|
624
|
+
`,
|
|
625
|
+
children: e
|
|
626
|
+
}), F = {
|
|
627
|
+
left: "text-left",
|
|
628
|
+
center: "text-center",
|
|
629
|
+
right: "text-right"
|
|
630
|
+
}, I = ({ rowData: e }) => /* @__PURE__ */ (0, o.jsx)("thead", { children: /* @__PURE__ */ (0, o.jsx)("tr", {
|
|
631
|
+
className: "\r\n sticky\r\n top-0\r\n z-10\r\n bg-white\r\n ",
|
|
632
|
+
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("th", {
|
|
633
|
+
className: `
|
|
634
|
+
px-3 sm:px-4 md:px-6
|
|
635
|
+
py-2 md:py-4
|
|
636
|
+
text-xs sm:text-sm
|
|
637
|
+
text-gray
|
|
638
|
+
font-semibold
|
|
639
|
+
|
|
640
|
+
border-b
|
|
641
|
+
border-light-gray
|
|
642
|
+
${F[e.align || "left"]}
|
|
643
|
+
${e.style || ""}
|
|
644
|
+
`,
|
|
645
|
+
children: e.value
|
|
646
|
+
}, e.key))
|
|
647
|
+
}) }), L = ({ rowData: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tr", {
|
|
648
|
+
className: `
|
|
649
|
+
|
|
650
|
+
transition-colors
|
|
651
|
+
hover:bg-gray-50
|
|
652
|
+
[&:last-child_td]:border-b-0
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
${t || ""}
|
|
656
|
+
`,
|
|
657
|
+
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("td", {
|
|
658
|
+
className: `
|
|
659
|
+
px-3 sm:px-4 md:px-6
|
|
660
|
+
py-2 md:py-4
|
|
661
|
+
text-xs sm:text-sm
|
|
662
|
+
text-gray
|
|
663
|
+
whitespace-nowrap
|
|
664
|
+
|
|
665
|
+
border-b
|
|
666
|
+
border-light-gray
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
${F[e.align || "left"]}
|
|
671
|
+
${e.style || ""}
|
|
672
|
+
`,
|
|
673
|
+
children: e.value
|
|
674
|
+
}, e.key))
|
|
675
|
+
}), R = ({ items: e }) => /* @__PURE__ */ (0, o.jsx)("nav", {
|
|
676
|
+
"aria-label": "Breadcrumb",
|
|
677
|
+
children: /* @__PURE__ */ (0, o.jsx)("ol", {
|
|
678
|
+
className: "\r\n flex\r\n flex-wrap\r\n items-center\r\n gap-2\r\n text-sm\r\n ",
|
|
679
|
+
children: e.map((t, n) => {
|
|
680
|
+
let r = n === e.length - 1;
|
|
681
|
+
return /* @__PURE__ */ (0, o.jsxs)("li", {
|
|
682
|
+
className: "\r\n flex\r\n items-center\r\n gap-2\r\n ",
|
|
683
|
+
children: [r ? /* @__PURE__ */ (0, o.jsx)("span", {
|
|
684
|
+
className: "\r\n font-semibold\r\n text-gray-900\r\n ",
|
|
685
|
+
children: t.label
|
|
686
|
+
}) : /* @__PURE__ */ (0, o.jsx)("a", {
|
|
687
|
+
href: t.href,
|
|
688
|
+
className: "\r\n text-gray-600\r\n transition-colors\r\n hover:text-blue-600\r\n hover:underline\r\n ",
|
|
689
|
+
children: t.label
|
|
690
|
+
}), !r && /* @__PURE__ */ (0, o.jsx)("span", {
|
|
691
|
+
className: "text-gray-400",
|
|
692
|
+
children: ">"
|
|
693
|
+
})]
|
|
694
|
+
}, t.id);
|
|
695
|
+
})
|
|
696
|
+
})
|
|
697
|
+
}), z = ({ children: t }) => {
|
|
698
|
+
let [n, r] = e.useState("Home"), i = [
|
|
699
|
+
{
|
|
700
|
+
id: 1,
|
|
701
|
+
href: "#home",
|
|
702
|
+
label: "Home"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
id: 2,
|
|
706
|
+
href: "#about",
|
|
707
|
+
label: "About"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
id: 3,
|
|
711
|
+
href: "#services",
|
|
712
|
+
label: "Services"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
id: 4,
|
|
716
|
+
href: "#contact",
|
|
717
|
+
label: "Contact"
|
|
718
|
+
}
|
|
719
|
+
];
|
|
720
|
+
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
721
|
+
className: "w-full scroll-smooth",
|
|
722
|
+
children: [
|
|
723
|
+
/* @__PURE__ */ (0, o.jsx)("div", {
|
|
724
|
+
className: "sticky top-0 z-50 bg-white",
|
|
725
|
+
children: /* @__PURE__ */ (0, o.jsxs)(v, { children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
726
|
+
className: "flex items-center gap-4 lg:gap-10",
|
|
727
|
+
children: [/* @__PURE__ */ (0, o.jsx)(b, {
|
|
728
|
+
logo: "/icon.svg",
|
|
729
|
+
title: "QTEK"
|
|
730
|
+
}), /* @__PURE__ */ (0, o.jsx)(x, {
|
|
731
|
+
navBar: i,
|
|
732
|
+
onItemClick: r
|
|
733
|
+
})]
|
|
734
|
+
}), /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
735
|
+
className: "flex shrink-0 items-center gap-2 sm:gap-3",
|
|
736
|
+
children: [/* @__PURE__ */ (0, o.jsx)(C, {}), /* @__PURE__ */ (0, o.jsx)(y, {
|
|
737
|
+
navDrawer: i,
|
|
738
|
+
onItemClick: r
|
|
739
|
+
})]
|
|
740
|
+
})] })
|
|
741
|
+
}),
|
|
742
|
+
/* @__PURE__ */ (0, o.jsx)("div", {
|
|
743
|
+
className: " \r\n mx-auto\r\n max-w-full\r\n px-6\r\n py-4\r\n sticky\r\n z-40\r\n top-16\r\n bg-light-gray",
|
|
744
|
+
children: /* @__PURE__ */ (0, o.jsx)(R, { items: [{
|
|
745
|
+
id: 1,
|
|
746
|
+
label: n,
|
|
747
|
+
href: "#"
|
|
748
|
+
}] })
|
|
749
|
+
}),
|
|
750
|
+
t,
|
|
751
|
+
/* @__PURE__ */ (0, o.jsxs)(p, { children: [
|
|
752
|
+
/* @__PURE__ */ (0, o.jsx)(g, {
|
|
753
|
+
description: "Building modern and scalable digital solutions.",
|
|
754
|
+
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
755
|
+
className: "scale-150 origin-left",
|
|
756
|
+
children: /* @__PURE__ */ (0, o.jsx)(b, {
|
|
757
|
+
logo: "/icon.svg",
|
|
758
|
+
title: "QTEK"
|
|
759
|
+
})
|
|
760
|
+
})
|
|
761
|
+
}),
|
|
762
|
+
/* @__PURE__ */ (0, o.jsx)(_, {
|
|
763
|
+
title: "Quick Links",
|
|
764
|
+
links: i,
|
|
765
|
+
onItemClick: r
|
|
766
|
+
}),
|
|
767
|
+
/* @__PURE__ */ (0, o.jsx)(h, {
|
|
768
|
+
email: "hello@qtek.com",
|
|
769
|
+
phone: "+63 900 000 0000",
|
|
770
|
+
socials: [
|
|
771
|
+
{
|
|
772
|
+
id: 1,
|
|
773
|
+
label: "Facebook",
|
|
774
|
+
href: "#"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
id: 2,
|
|
778
|
+
label: "LinkedIn",
|
|
779
|
+
href: "#"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
id: 3,
|
|
783
|
+
label: "GitHub",
|
|
784
|
+
href: "#"
|
|
785
|
+
}
|
|
786
|
+
]
|
|
787
|
+
}),
|
|
788
|
+
/* @__PURE__ */ (0, o.jsx)(m, { copyright: "© 2026 QTEK. All rights reserved." })
|
|
789
|
+
] })
|
|
790
|
+
]
|
|
791
|
+
});
|
|
792
|
+
};
|
|
793
|
+
//#endregion
|
|
794
|
+
export { R as Breadcrumbs, c as Button, l as Card, u as CardContent, d as CardFooter, f as CardImage, p as Cfooter, A as Cform, v as Cheader, w as CheckBox, M as Ctable, y as Drawer, m as FooterBottom, h as FooterContact, g as FooterIcon, b as Icon, z as LandingLayout, s as Loader, S as Modal, x as NavBar, _ as QuickLink, C as SearchBar, j as Section, T as Select, N as TableBody, P as TableCell, I as TableHead, L as TableRow, k as TextField, F as alignment };
|