@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.
Files changed (133) hide show
  1. package/dist/index.cjs +275 -0
  2. package/dist/index.d.ts +2 -26
  3. package/dist/index.js +794 -26
  4. package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +1 -2
  5. package/dist/src/component/breadcrumbs/index.d.ts +1 -0
  6. package/dist/src/component/button/index.d.ts +1 -0
  7. package/dist/src/component/card/Card.d.ts +1 -2
  8. package/dist/src/component/card/CardContent.d.ts +1 -2
  9. package/dist/src/component/card/CardFooter.d.ts +1 -2
  10. package/dist/src/component/card/CardImage.d.ts +2 -2
  11. package/dist/src/component/card/index.d.ts +5 -1
  12. package/dist/src/component/footer/Cfooter.d.ts +1 -2
  13. package/dist/src/component/footer/FooterBottom.d.ts +1 -2
  14. package/dist/src/component/footer/FooterContact.d.ts +1 -2
  15. package/dist/src/component/footer/FooterIcon.d.ts +1 -2
  16. package/dist/src/component/footer/QuickLink.d.ts +1 -2
  17. package/dist/src/component/footer/index.d.ts +6 -1
  18. package/dist/src/component/form/Cform.d.ts +1 -2
  19. package/dist/src/component/form/index.d.ts +1 -0
  20. package/dist/src/component/header/Cheader.d.ts +1 -2
  21. package/dist/src/component/header/Drawer.d.ts +1 -2
  22. package/dist/src/component/header/Icon.d.ts +1 -2
  23. package/dist/src/component/header/NavBar.d.ts +1 -2
  24. package/dist/src/component/header/SearchBar.d.ts +1 -2
  25. package/dist/src/component/header/index.d.ts +7 -2
  26. package/dist/src/component/input/CheckBox.d.ts +2 -2
  27. package/dist/src/component/input/Select.d.ts +2 -2
  28. package/dist/src/component/input/TextField.d.ts +1 -2
  29. package/dist/src/component/input/index.d.ts +4 -1
  30. package/dist/src/component/modal/Modal.d.ts +2 -2
  31. package/dist/src/component/modal/index.d.ts +1 -0
  32. package/dist/src/component/section/Section.d.ts +1 -2
  33. package/dist/src/component/section/index.d.ts +1 -0
  34. package/dist/src/component/stories/LandingLayout.d.ts +2 -3
  35. package/dist/src/component/stories/index.d.ts +1 -0
  36. package/dist/src/component/table/Ctable.d.ts +1 -2
  37. package/dist/src/component/table/TableBody.d.ts +1 -2
  38. package/dist/src/component/table/TableCell.d.ts +1 -2
  39. package/dist/src/component/table/TableHead.d.ts +1 -2
  40. package/dist/src/component/table/TableRow.d.ts +1 -2
  41. package/dist/src/component/table/index.d.ts +9 -2
  42. package/dist/src/component/table/types.d.ts +3 -2
  43. package/dist/src/index.d.ts +12 -26
  44. package/dist/web_components.css +3 -0
  45. package/package.json +8 -12
  46. package/dist/component/breadcrumbs/Breadcrumbs.d.ts +0 -9
  47. package/dist/component/breadcrumbs/Breadcrumbs.js +0 -7
  48. package/dist/component/breadcrumbs/index.d.ts +0 -1
  49. package/dist/component/breadcrumbs/index.js +0 -1
  50. package/dist/component/button/Button.d.ts +0 -8
  51. package/dist/component/button/Button.js +0 -15
  52. package/dist/component/button/index.d.ts +0 -1
  53. package/dist/component/button/index.js +0 -2
  54. package/dist/component/card/Card.d.ts +0 -6
  55. package/dist/component/card/Card.js +0 -4
  56. package/dist/component/card/CardContent.d.ts +0 -6
  57. package/dist/component/card/CardContent.js +0 -4
  58. package/dist/component/card/CardFooter.d.ts +0 -5
  59. package/dist/component/card/CardFooter.js +0 -4
  60. package/dist/component/card/CardImage.d.ts +0 -7
  61. package/dist/component/card/CardImage.js +0 -4
  62. package/dist/component/card/index.d.ts +0 -4
  63. package/dist/component/card/index.js +0 -4
  64. package/dist/component/footer/Cfooter.d.ts +0 -6
  65. package/dist/component/footer/Cfooter.js +0 -4
  66. package/dist/component/footer/FooterBottom.d.ts +0 -5
  67. package/dist/component/footer/FooterBottom.js +0 -4
  68. package/dist/component/footer/FooterContact.d.ts +0 -11
  69. package/dist/component/footer/FooterContact.js +0 -4
  70. package/dist/component/footer/FooterIcon.d.ts +0 -7
  71. package/dist/component/footer/FooterIcon.js +0 -4
  72. package/dist/component/footer/QuickLink.d.ts +0 -11
  73. package/dist/component/footer/QuickLink.js +0 -4
  74. package/dist/component/footer/index.d.ts +0 -5
  75. package/dist/component/footer/index.js +0 -5
  76. package/dist/component/form/Cform.d.ts +0 -6
  77. package/dist/component/form/Cform.js +0 -4
  78. package/dist/component/form/index.d.ts +0 -1
  79. package/dist/component/form/index.js +0 -1
  80. package/dist/component/header/Cheader.d.ts +0 -7
  81. package/dist/component/header/Cheader.js +0 -4
  82. package/dist/component/header/Drawer.d.ts +0 -12
  83. package/dist/component/header/Drawer.js +0 -22
  84. package/dist/component/header/Icon.d.ts +0 -9
  85. package/dist/component/header/Icon.js +0 -11
  86. package/dist/component/header/NavBar.d.ts +0 -12
  87. package/dist/component/header/NavBar.js +0 -14
  88. package/dist/component/header/SearchBar.d.ts +0 -8
  89. package/dist/component/header/SearchBar.js +0 -7
  90. package/dist/component/header/index.d.ts +0 -5
  91. package/dist/component/header/index.js +0 -5
  92. package/dist/component/input/CheckBox.d.ts +0 -12
  93. package/dist/component/input/CheckBox.js +0 -18
  94. package/dist/component/input/Select.d.ts +0 -17
  95. package/dist/component/input/Select.js +0 -12
  96. package/dist/component/input/TextField.d.ts +0 -11
  97. package/dist/component/input/TextField.js +0 -7
  98. package/dist/component/input/index.d.ts +0 -3
  99. package/dist/component/input/index.js +0 -3
  100. package/dist/component/modal/Modal.d.ts +0 -8
  101. package/dist/component/modal/Modal.js +0 -6
  102. package/dist/component/modal/index.d.ts +0 -1
  103. package/dist/component/modal/index.js +0 -1
  104. package/dist/component/section/Section.d.ts +0 -9
  105. package/dist/component/section/Section.js +0 -14
  106. package/dist/component/section/index.d.ts +0 -1
  107. package/dist/component/section/index.js +0 -1
  108. package/dist/component/spinner/Loader.d.ts +0 -1
  109. package/dist/component/spinner/Loader.js +0 -4
  110. package/dist/component/spinner/index.d.ts +0 -1
  111. package/dist/component/spinner/index.js +0 -1
  112. package/dist/component/stories/LandingLayout.d.ts +0 -6
  113. package/dist/component/stories/LandingLayout.js +0 -33
  114. package/dist/component/stories/index.d.ts +0 -1
  115. package/dist/component/stories/index.js +0 -1
  116. package/dist/component/table/Ctable.d.ts +0 -8
  117. package/dist/component/table/Ctable.js +0 -13
  118. package/dist/component/table/TableBody.d.ts +0 -7
  119. package/dist/component/table/TableBody.js +0 -4
  120. package/dist/component/table/TableCell.d.ts +0 -8
  121. package/dist/component/table/TableCell.js +0 -12
  122. package/dist/component/table/TableHead.d.ts +0 -7
  123. package/dist/component/table/TableHead.js +0 -16
  124. package/dist/component/table/TableRow.d.ts +0 -8
  125. package/dist/component/table/TableRow.js +0 -27
  126. package/dist/component/table/alignment.d.ts +0 -5
  127. package/dist/component/table/alignment.js +0 -5
  128. package/dist/component/table/index.d.ts +0 -5
  129. package/dist/component/table/index.js +0 -5
  130. package/dist/component/table/types.d.ts +0 -13
  131. package/dist/component/table/types.js +0 -1
  132. package/dist/themes/tailwind.css +0 -47
  133. package/dist/web-components.es.js +0 -786
@@ -1,786 +0,0 @@
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 = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("footer", {
200
- className: "\r\n w-full\r\n bg-gray\r\n text-white\r\n ",
201
- children: /* @__PURE__ */ (0, o.jsx)("div", {
202
- 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 ",
203
- children: e
204
- })
205
- }), d = ({ children: e, description: t }) => /* @__PURE__ */ (0, o.jsxs)("div", {
206
- className: "flex flex-col gap-4",
207
- children: [e, /* @__PURE__ */ (0, o.jsx)("p", {
208
- className: "\r\n max-w-sm\r\n text-sm\r\n text-white\r\n ",
209
- children: t
210
- })]
211
- }), f = ({ copyright: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
212
- 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 ",
213
- children: e
214
- }), p = ({ email: e, phone: t, socials: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
215
- className: "text-white",
216
- children: [
217
- /* @__PURE__ */ (0, o.jsx)("h3", {
218
- className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
219
- children: "Contact"
220
- }),
221
- /* @__PURE__ */ (0, o.jsxs)("div", {
222
- className: "flex flex-col gap-2",
223
- children: [/* @__PURE__ */ (0, o.jsx)("p", { children: e }), /* @__PURE__ */ (0, o.jsx)("p", { children: t })]
224
- }),
225
- /* @__PURE__ */ (0, o.jsx)("h4", {
226
- className: "\r\n mt-5\r\n mb-2\r\n font-medium\r\n ",
227
- children: "Follow Us"
228
- }),
229
- /* @__PURE__ */ (0, o.jsx)("div", {
230
- className: "flex flex-wrap gap-3",
231
- children: n.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
232
- href: e.href,
233
- className: "hover:underline",
234
- children: e.label
235
- }, e.id))
236
- })
237
- ]
238
- }), m = ({ title: e, links: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
239
- className: "text-white",
240
- children: [/* @__PURE__ */ (0, o.jsx)("h3", {
241
- className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
242
- children: e
243
- }), /* @__PURE__ */ (0, o.jsx)("div", {
244
- className: "flex flex-col gap-2",
245
- children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
246
- href: e.href,
247
- onClick: () => n?.(e.label),
248
- className: "hover:underline",
249
- children: e.label
250
- }, e.id))
251
- })]
252
- }), h = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("form", {
253
- className: "w-full max-w-sm",
254
- children: /* @__PURE__ */ (0, o.jsx)("div", {
255
- className: "flex flex-col gap-1 ",
256
- children: e
257
- })
258
- }), g = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("header", {
259
- className: `w-full bg-white border-b border-light-gray shadow-sm ${t}`,
260
- children: /* @__PURE__ */ (0, o.jsx)("div", {
261
- className: "flex items-center justify-between px-6 py-4",
262
- children: e
263
- })
264
- }), _ = ({ logo: e = "/logo.svg", title: t = "my Company", style: n, alt: r = "" }) => /* @__PURE__ */ (0, o.jsxs)("div", {
265
- className: `
266
- flex
267
- items-center
268
- gap-2
269
- sm:gap-3
270
- shrink-0
271
- ${n || ""}
272
- `,
273
- children: [/* @__PURE__ */ (0, o.jsx)("img", {
274
- src: e,
275
- alt: r,
276
- className: "\r\n h-8\r\n w-8\r\n sm:h-10\r\n sm:w-10\r\n object-contain\r\n "
277
- }), /* @__PURE__ */ (0, o.jsx)("h1", {
278
- className: "\r\n text-sm\r\n sm:text-lg\r\n font-bold\r\n text-blue\r\n ",
279
- children: t
280
- })]
281
- }), v = ({ navDrawer: e = [], style: n, onItemClick: r }) => {
282
- let [i, a] = t(!1);
283
- return /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [
284
- /* @__PURE__ */ (0, o.jsx)("button", {
285
- onClick: () => a(!0),
286
- className: " flex md:hidden items-center justify-center h-10 w-10 rounded-md hover:bg-gray-100",
287
- children: /* @__PURE__ */ (0, o.jsx)("svg", {
288
- xmlns: "http://www.w3.org/2000/svg",
289
- viewBox: "0 0 24 24",
290
- fill: "currentColor",
291
- className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
292
- children: /* @__PURE__ */ (0, o.jsx)("path", {
293
- fillRule: "evenodd",
294
- 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",
295
- clipRule: "evenodd"
296
- })
297
- })
298
- }),
299
- i && /* @__PURE__ */ (0, o.jsx)("div", {
300
- onClick: () => a(!1),
301
- className: "fixed inset-0 z-40 bg-black/40 md:hidden"
302
- }),
303
- /* @__PURE__ */ (0, o.jsxs)("aside", {
304
- className: `
305
- fixed top-0
306
- left-0 z-50
307
- h-screen w-65
308
- bg-white
309
- shadow-lg
310
- transition-transform duration-300
311
-
312
- ${i ? "translate-x-0" : "-translate-x-full"}
313
-
314
- md:hidden
315
-
316
- ${n || ""}
317
- `,
318
- children: [/* @__PURE__ */ (0, o.jsxs)("div", {
319
- 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 ",
320
- children: [/* @__PURE__ */ (0, o.jsx)("h2", {
321
- className: "text-lg font-semibold",
322
- children: "Menu"
323
- }), /* @__PURE__ */ (0, o.jsx)("button", {
324
- onClick: () => a(!1),
325
- 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 ",
326
- children: /* @__PURE__ */ (0, o.jsx)("svg", {
327
- xmlns: "http://www.w3.org/2000/svg",
328
- viewBox: "0 0 24 24",
329
- fill: "currentColor",
330
- className: "\r\n h-6\r\n w-6\r\n\r\n text-gray-700\r\n ",
331
- children: /* @__PURE__ */ (0, o.jsx)("path", {
332
- fillRule: "evenodd",
333
- 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",
334
- clipRule: "evenodd"
335
- })
336
- })
337
- })]
338
- }), /* @__PURE__ */ (0, o.jsx)("div", {
339
- className: "flex flex-col p-4",
340
- children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
341
- href: e.href || "#",
342
- onClick: () => {
343
- r?.(e.label), a(!1);
344
- },
345
- className: "\r\n rounded-md\r\n px-4\r\n py-3\r\n hover:bg-gray-100\r\n ",
346
- children: e.label
347
- }, e.id))
348
- })]
349
- })
350
- ] });
351
- }, y = ({ isOpen: e, onClose: t, title: n, children: r }) => e ? /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)("div", {
352
- className: "fixed inset-0 z-40 bg-black/40",
353
- onClick: t
354
- }), /* @__PURE__ */ (0, o.jsx)("div", {
355
- className: "fixed inset-0 z-50 flex items-center justify-center p-4",
356
- children: /* @__PURE__ */ (0, o.jsxs)("div", {
357
- className: "w-full max-w-md bg-white shadow-lg",
358
- role: "dialog",
359
- "aria-modal": "true",
360
- children: [/* @__PURE__ */ (0, o.jsxs)("div", {
361
- className: "flex items-center justify-between border-b border-gray-200 px-5 py-4",
362
- children: [/* @__PURE__ */ (0, o.jsx)("h2", {
363
- className: "text-lg font-semibold",
364
- children: n
365
- }), /* @__PURE__ */ (0, o.jsx)("button", {
366
- onClick: t,
367
- className: "flex h-10 w-10 items-center justify-center hover:bg-gray-100 rounded-md",
368
- "aria-label": "Close modal",
369
- children: /* @__PURE__ */ (0, o.jsx)("svg", {
370
- xmlns: "http://www.w3.org/2000/svg",
371
- fill: "none",
372
- viewBox: "0 0 24 24",
373
- strokeWidth: 2,
374
- stroke: "currentColor",
375
- className: "h-5 w-5",
376
- children: /* @__PURE__ */ (0, o.jsx)("path", {
377
- strokeLinecap: "round",
378
- strokeLinejoin: "round",
379
- d: "M6 18L18 6M6 6l12 12"
380
- })
381
- })
382
- })]
383
- }), /* @__PURE__ */ (0, o.jsx)("div", {
384
- className: "p-5",
385
- children: r
386
- })]
387
- })
388
- })] }) : null, b = ({ placeholder: e = "Search...", style: n, children: r }) => {
389
- let [i, a] = t(!1);
390
- return /* @__PURE__ */ (0, o.jsxs)("div", {
391
- className: `relative ${n || ""}`,
392
- children: [
393
- /* @__PURE__ */ (0, o.jsxs)("div", {
394
- className: "hidden md:block relative",
395
- children: [/* @__PURE__ */ (0, o.jsx)("svg", {
396
- xmlns: "http://www.w3.org/2000/svg",
397
- fill: "none",
398
- viewBox: "0 0 24 24",
399
- stroke: "currentColor",
400
- strokeWidth: 2,
401
- 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 ",
402
- children: /* @__PURE__ */ (0, o.jsx)("path", {
403
- strokeLinecap: "round",
404
- strokeLinejoin: "round",
405
- d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
406
- })
407
- }), /* @__PURE__ */ (0, o.jsx)("input", {
408
- type: "text",
409
- placeholder: e,
410
- 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 "
411
- })]
412
- }),
413
- /* @__PURE__ */ (0, o.jsx)("button", {
414
- onClick: () => a(!0),
415
- 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 ",
416
- children: /* @__PURE__ */ (0, o.jsx)("svg", {
417
- xmlns: "http://www.w3.org/2000/svg",
418
- fill: "none",
419
- viewBox: "0 0 24 24",
420
- stroke: "currentColor",
421
- strokeWidth: 2,
422
- className: "\r\n h-6\r\n w-6\r\n text-gray-700\r\n ",
423
- children: /* @__PURE__ */ (0, o.jsx)("path", {
424
- strokeLinecap: "round",
425
- strokeLinejoin: "round",
426
- d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
427
- })
428
- })
429
- }),
430
- /* @__PURE__ */ (0, o.jsx)(y, {
431
- isOpen: i,
432
- title: "Search",
433
- onClose: () => a(!1),
434
- children: r || /* @__PURE__ */ (0, o.jsxs)("div", {
435
- className: "relative",
436
- children: [/* @__PURE__ */ (0, o.jsx)("svg", {
437
- xmlns: "http://www.w3.org/2000/svg",
438
- fill: "none",
439
- viewBox: "0 0 24 24",
440
- stroke: "currentColor",
441
- strokeWidth: 2,
442
- 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 ",
443
- children: /* @__PURE__ */ (0, o.jsx)("path", {
444
- strokeLinecap: "round",
445
- strokeLinejoin: "round",
446
- d: "M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z"
447
- })
448
- }), /* @__PURE__ */ (0, o.jsx)("input", {
449
- autoFocus: !0,
450
- type: "text",
451
- placeholder: e,
452
- 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 "
453
- })]
454
- })
455
- })
456
- ]
457
- });
458
- }, x = ({ navBar: e = [], style: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsx)("nav", {
459
- className: `
460
- hidden
461
- md:flex
462
- gap-12
463
- justify-center
464
- items-center
465
- absolute
466
- left-1/2
467
- -translate-x-1/2
468
- ${t || ""}
469
- `,
470
- children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
471
- href: e.href || "#",
472
- onClick: () => n?.(e.label),
473
- className: "\r\n text-lg\r\n font-bold\r\n text-black\r\n hover:text-green\r\n cursor-pointer\r\n ",
474
- children: e.label
475
- }, e.id))
476
- }), S = "border-red", C = "text-red", w = "border-gray", T = ({ id: e, labelText: t, placeholder: n, type: r, error: i, helperText: a }) => /* @__PURE__ */ (0, o.jsxs)("div", {
477
- className: "flex flex-col gap-1",
478
- children: [
479
- /* @__PURE__ */ (0, o.jsx)("label", {
480
- htmlFor: e,
481
- className: "text-sm font-medium text-gray",
482
- children: t
483
- }),
484
- /* @__PURE__ */ (0, o.jsx)("input", {
485
- id: e,
486
- placeholder: n,
487
- type: r,
488
- className: `block w-full px-3 py-2.5 bg-neutral-secondary-medium border ${i ? S : w} text-heading text-sm rounded-base shadow-xs placeholder:text-body focus:ring-brand focus:border-brand`
489
- }),
490
- a && /* @__PURE__ */ (0, o.jsx)("p", {
491
- className: `${i ? C : "text-light-gray"} text-xs`,
492
- children: a
493
- })
494
- ]
495
- }), E = ({ id: e, label: n, required: r, disabled: i, defaultChecked: a, error: s, helperText: c }) => {
496
- let [l, u] = t(a || !1);
497
- return /* @__PURE__ */ (0, o.jsxs)("div", {
498
- className: "flex flex-col gap-1",
499
- children: [/* @__PURE__ */ (0, o.jsxs)("div", {
500
- className: "flex items-center gap-2",
501
- children: [/* @__PURE__ */ (0, o.jsx)("input", {
502
- id: e,
503
- type: "checkbox",
504
- checked: l,
505
- onChange: (e) => {
506
- let t = e.target.checked;
507
- u(t);
508
- },
509
- disabled: i,
510
- className: `
511
- w-4 h-4 border rounded-xs
512
- bg-neutral-secondary-medium
513
- focus:ring-2 focus:ring-brand-soft
514
- ${i ? "border-light cursor-not-allowed" : "border-default-medium hover:cursor-pointer"}
515
- `
516
- }), /* @__PURE__ */ (0, o.jsxs)("label", {
517
- htmlFor: e,
518
- className: `
519
- select-none ms-2 text-sm font-medium
520
- ${i ? "text-fg-disabled text-light-gray" : "text-heading"}
521
- `,
522
- children: [
523
- n,
524
- " ",
525
- r && /* @__PURE__ */ (0, o.jsx)("span", {
526
- className: "text-red",
527
- children: "*"
528
- })
529
- ]
530
- })]
531
- }), /* @__PURE__ */ (0, o.jsx)("div", {
532
- className: s ? "text-red text-sm font-medium" : "text-gray text-sm font-medium",
533
- children: c
534
- })]
535
- });
536
- }, D = ({ label: e, options: t, required: n, disabled: r, helperText: i, error: a, value: s, onChange: c }) => /* @__PURE__ */ (0, o.jsxs)("div", {
537
- className: "w-full flex flex-col gap-1",
538
- children: [
539
- /* @__PURE__ */ (0, o.jsxs)("label", {
540
- className: "text-sm font-medium text-gray",
541
- children: [
542
- e,
543
- " ",
544
- n && "*"
545
- ]
546
- }),
547
- /* @__PURE__ */ (0, o.jsx)("select", {
548
- className: `h-10 border-r-8 border-transparent px-4 outline outline-neutral-700 block w-full p-2 bg-neutral-secondary-medium
549
- border border-default-medium text-heading text-sm font-normal rounded-base focus:ring-brand focus:border-brand shadow-xs
550
- placeholder:text-body
551
- ${r ? "cursor-not-allowed" : "hover:cursor-pointer"}`,
552
- disabled: r,
553
- onChange: (e) => {
554
- c && c(e.target.value);
555
- },
556
- value: s,
557
- children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("option", {
558
- value: e.name,
559
- children: e.value
560
- }, e.key))
561
- }),
562
- i && a && /* @__PURE__ */ (0, o.jsx)("div", {
563
- className: "text-red text-sm font-normal",
564
- children: i
565
- })
566
- ]
567
- }), O = ({ id: e, title: t, children: n, style: r }) => /* @__PURE__ */ (0, o.jsx)("section", {
568
- id: e,
569
- className: `
570
- min-h-screen
571
- w-full
572
- px-6
573
- py-6
574
- scroll-mt-32
575
- md:px-10
576
- lg:px-16
577
-
578
- ${r || ""}
579
- `,
580
- children: /* @__PURE__ */ (0, o.jsxs)("div", {
581
- className: "mx-auto flex w-full max-w-7xl flex-col gap-10",
582
- children: [t && /* @__PURE__ */ (0, o.jsx)("h2", {
583
- className: "\r\n text-3xl\r\n font-bold\r\n md:text-4xl\r\n ",
584
- children: t
585
- }), n]
586
- })
587
- }), k = ({ items: e }) => /* @__PURE__ */ (0, o.jsx)("nav", {
588
- "aria-label": "Breadcrumb",
589
- children: /* @__PURE__ */ (0, o.jsx)("ol", {
590
- className: "\r\n flex\r\n flex-wrap\r\n items-center\r\n gap-2\r\n text-sm\r\n ",
591
- children: e.map((t, n) => {
592
- let r = n === e.length - 1;
593
- return /* @__PURE__ */ (0, o.jsxs)("li", {
594
- className: "\r\n flex\r\n items-center\r\n gap-2\r\n ",
595
- children: [r ? /* @__PURE__ */ (0, o.jsx)("span", {
596
- className: "\r\n font-semibold\r\n text-gray-900\r\n ",
597
- children: t.label
598
- }) : /* @__PURE__ */ (0, o.jsx)("a", {
599
- href: t.href,
600
- className: "\r\n text-gray-600\r\n transition-colors\r\n hover:text-blue-600\r\n hover:underline\r\n ",
601
- children: t.label
602
- }), !r && /* @__PURE__ */ (0, o.jsx)("span", {
603
- className: "text-gray-400",
604
- children: ">"
605
- })]
606
- }, t.id);
607
- })
608
- })
609
- }), A = ({ children: t }) => {
610
- let [n, r] = e.useState("Home"), i = [
611
- {
612
- id: 1,
613
- href: "#home",
614
- label: "Home"
615
- },
616
- {
617
- id: 2,
618
- href: "#about",
619
- label: "About"
620
- },
621
- {
622
- id: 3,
623
- href: "#services",
624
- label: "Services"
625
- },
626
- {
627
- id: 4,
628
- href: "#contact",
629
- label: "Contact"
630
- }
631
- ];
632
- return /* @__PURE__ */ (0, o.jsxs)("div", {
633
- className: "w-full scroll-smooth",
634
- children: [
635
- /* @__PURE__ */ (0, o.jsx)("div", {
636
- className: "sticky top-0 z-50 bg-white",
637
- children: /* @__PURE__ */ (0, o.jsxs)(g, { children: [/* @__PURE__ */ (0, o.jsxs)("div", {
638
- className: "flex items-center gap-4 lg:gap-10",
639
- children: [/* @__PURE__ */ (0, o.jsx)(_, {
640
- logo: "/icon.svg",
641
- title: "QTEK"
642
- }), /* @__PURE__ */ (0, o.jsx)(x, {
643
- navBar: i,
644
- onItemClick: r
645
- })]
646
- }), /* @__PURE__ */ (0, o.jsxs)("div", {
647
- className: "flex shrink-0 items-center gap-2 sm:gap-3",
648
- children: [/* @__PURE__ */ (0, o.jsx)(b, {}), /* @__PURE__ */ (0, o.jsx)(v, {
649
- navDrawer: i,
650
- onItemClick: r
651
- })]
652
- })] })
653
- }),
654
- /* @__PURE__ */ (0, o.jsx)("div", {
655
- 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",
656
- children: /* @__PURE__ */ (0, o.jsx)(k, { items: [{
657
- id: 1,
658
- label: n,
659
- href: "#"
660
- }] })
661
- }),
662
- t,
663
- /* @__PURE__ */ (0, o.jsxs)(u, { children: [
664
- /* @__PURE__ */ (0, o.jsx)(d, {
665
- description: "Building modern and scalable digital solutions.",
666
- children: /* @__PURE__ */ (0, o.jsx)("div", {
667
- className: "scale-150 origin-left",
668
- children: /* @__PURE__ */ (0, o.jsx)(_, {
669
- logo: "/icon.svg",
670
- title: "QTEK"
671
- })
672
- })
673
- }),
674
- /* @__PURE__ */ (0, o.jsx)(m, {
675
- title: "Quick Links",
676
- links: i,
677
- onItemClick: r
678
- }),
679
- /* @__PURE__ */ (0, o.jsx)(p, {
680
- email: "hello@qtek.com",
681
- phone: "+63 900 000 0000",
682
- socials: [
683
- {
684
- id: 1,
685
- label: "Facebook",
686
- href: "#"
687
- },
688
- {
689
- id: 2,
690
- label: "LinkedIn",
691
- href: "#"
692
- },
693
- {
694
- id: 3,
695
- label: "GitHub",
696
- href: "#"
697
- }
698
- ]
699
- }),
700
- /* @__PURE__ */ (0, o.jsx)(f, { copyright: "© 2026 QTEK. All rights reserved." })
701
- ] })
702
- ]
703
- });
704
- }, j = ({ children: e, style: t, maxRows: n = 5 }) => /* @__PURE__ */ (0, o.jsx)("div", {
705
- className: `
706
- w-full
707
- overflow-hidden
708
- rounded-md
709
- bg-white
710
- shadow-lg
711
- ${t || ""}
712
- `,
713
- children: /* @__PURE__ */ (0, o.jsx)("div", {
714
- className: "overflow-auto",
715
- style: { maxHeight: `${n * 56}px` },
716
- children: /* @__PURE__ */ (0, o.jsx)("table", {
717
- className: "w-full border-separate border-spacing-0",
718
- children: e
719
- })
720
- })
721
- }), M = {
722
- left: "text-left",
723
- center: "text-center",
724
- right: "text-right"
725
- }, N = ({ rowData: e }) => /* @__PURE__ */ (0, o.jsx)("thead", { children: /* @__PURE__ */ (0, o.jsx)("tr", {
726
- className: "\r\n sticky\r\n top-0\r\n z-10\r\n bg-white\r\n ",
727
- children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("th", {
728
- className: `
729
- px-3 sm:px-4 md:px-6
730
- py-2 md:py-4
731
- text-xs sm:text-sm
732
- text-gray
733
- font-semibold
734
-
735
- border-b
736
- border-light-gray
737
- ${M[e.align || "left"]}
738
- ${e.style || ""}
739
- `,
740
- children: e.value
741
- }, e.key))
742
- }) }), P = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tbody", {
743
- className: t,
744
- children: e
745
- }), F = ({ rowData: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tr", {
746
- className: `
747
-
748
- transition-colors
749
- hover:bg-gray-50
750
- [&:last-child_td]:border-b-0
751
-
752
-
753
- ${t || ""}
754
- `,
755
- children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("td", {
756
- className: `
757
- px-3 sm:px-4 md:px-6
758
- py-2 md:py-4
759
- text-xs sm:text-sm
760
- text-gray
761
- whitespace-nowrap
762
-
763
- border-b
764
- border-light-gray
765
-
766
-
767
-
768
- ${M[e.align || "left"]}
769
- ${e.style || ""}
770
- `,
771
- children: e.value
772
- }, e.key))
773
- }), I = ({ children: e, align: t = "left", style: n }) => /* @__PURE__ */ (0, o.jsx)("td", {
774
- className: `
775
- px-4
776
- py-3
777
- text-sm
778
- ${t === "center" ? "text-center" : ""}
779
- ${t === "right" ? "text-right" : ""}
780
- ${t === "left" ? "text-left" : ""}
781
- ${n || ""}
782
- `,
783
- children: e
784
- });
785
- //#endregion
786
- export { k as Breadcrumbs, c as Button, l as Card, u as Cfooter, h as Cform, g as Cheader, E as CheckBox, j as Ctable, v as Drawer, f as FooterBottom, p as FooterContact, d as FooterIcon, _ as Icon, A as LandingLayout, s as Loader, y as Modal, x as NavBar, m as QuickLink, b as SearchBar, O as Section, D as Select, P as TableBody, I as TableCell, N as TableHead, F as TableRow, T as TextField };