@eloisallena/web_components 1.0.4 → 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/{web-components.cjs.js → index.cjs} +80 -97
- package/dist/{web-components.es.js → index.js} +202 -194
- 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 -9
|
@@ -196,22 +196,35 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
196
196
|
}, l = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
197
197
|
className: "bg-primary w-full max-w-sm rounded-lg shadow-md overflow-hidden",
|
|
198
198
|
children: e
|
|
199
|
-
}), u = ({
|
|
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", {
|
|
200
219
|
className: "\r\n w-full\r\n bg-gray\r\n text-white\r\n ",
|
|
201
220
|
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
202
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 ",
|
|
203
222
|
children: e
|
|
204
223
|
})
|
|
205
|
-
}),
|
|
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", {
|
|
224
|
+
}), m = ({ copyright: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
212
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 ",
|
|
213
226
|
children: e
|
|
214
|
-
}),
|
|
227
|
+
}), h = ({ email: e, phone: t, socials: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
215
228
|
className: "text-white",
|
|
216
229
|
children: [
|
|
217
230
|
/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
@@ -235,7 +248,13 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
235
248
|
}, e.id))
|
|
236
249
|
})
|
|
237
250
|
]
|
|
238
|
-
}),
|
|
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", {
|
|
239
258
|
className: "text-white",
|
|
240
259
|
children: [/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
241
260
|
className: "\r\n mb-3\r\n text-lg\r\n font-semibold\r\n ",
|
|
@@ -249,36 +268,13 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
249
268
|
children: e.label
|
|
250
269
|
}, e.id))
|
|
251
270
|
})]
|
|
252
|
-
}),
|
|
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", {
|
|
271
|
+
}), v = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("header", {
|
|
259
272
|
className: `w-full bg-white border-b border-light-gray shadow-sm ${t}`,
|
|
260
273
|
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
261
274
|
className: "flex items-center justify-between px-6 py-4",
|
|
262
275
|
children: e
|
|
263
276
|
})
|
|
264
|
-
}),
|
|
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 }) => {
|
|
277
|
+
}), y = ({ navDrawer: e = [], style: n, onItemClick: r }) => {
|
|
282
278
|
let [i, a] = t(!1);
|
|
283
279
|
return /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [
|
|
284
280
|
/* @__PURE__ */ (0, o.jsx)("button", {
|
|
@@ -348,7 +344,42 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
348
344
|
})]
|
|
349
345
|
})
|
|
350
346
|
] });
|
|
351
|
-
},
|
|
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", {
|
|
352
383
|
className: "fixed inset-0 z-40 bg-black/40",
|
|
353
384
|
onClick: t
|
|
354
385
|
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
@@ -385,7 +416,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
385
416
|
children: r
|
|
386
417
|
})]
|
|
387
418
|
})
|
|
388
|
-
})] }) : null,
|
|
419
|
+
})] }) : null, C = ({ placeholder: e = "Search...", style: n, children: r }) => {
|
|
389
420
|
let [i, a] = t(!1);
|
|
390
421
|
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
391
422
|
className: `relative ${n || ""}`,
|
|
@@ -427,7 +458,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
427
458
|
})
|
|
428
459
|
})
|
|
429
460
|
}),
|
|
430
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
461
|
+
/* @__PURE__ */ (0, o.jsx)(S, {
|
|
431
462
|
isOpen: i,
|
|
432
463
|
title: "Search",
|
|
433
464
|
onClose: () => a(!1),
|
|
@@ -455,45 +486,8 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
455
486
|
})
|
|
456
487
|
]
|
|
457
488
|
});
|
|
458
|
-
},
|
|
459
|
-
|
|
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);
|
|
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);
|
|
497
491
|
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
498
492
|
className: "flex flex-col gap-1",
|
|
499
493
|
children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
@@ -501,24 +495,16 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
501
495
|
children: [/* @__PURE__ */ (0, o.jsx)("input", {
|
|
502
496
|
id: e,
|
|
503
497
|
type: "checkbox",
|
|
504
|
-
checked:
|
|
498
|
+
checked: u,
|
|
505
499
|
onChange: (e) => {
|
|
506
500
|
let t = e.target.checked;
|
|
507
|
-
|
|
501
|
+
d(t), l?.(t);
|
|
508
502
|
},
|
|
509
503
|
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
|
-
`
|
|
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"}`
|
|
516
505
|
}), /* @__PURE__ */ (0, o.jsxs)("label", {
|
|
517
506
|
htmlFor: e,
|
|
518
|
-
className: `
|
|
519
|
-
select-none ms-2 text-sm font-medium
|
|
520
|
-
${i ? "text-fg-disabled text-light-gray" : "text-heading"}
|
|
521
|
-
`,
|
|
507
|
+
className: `select-none ms-2 text-sm font-medium ${i ? "text-light-gray" : "text-heading"}`,
|
|
522
508
|
children: [
|
|
523
509
|
n,
|
|
524
510
|
" ",
|
|
@@ -528,12 +514,12 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
528
514
|
})
|
|
529
515
|
]
|
|
530
516
|
})]
|
|
531
|
-
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
532
|
-
className: s ? "text-red
|
|
517
|
+
}), c && /* @__PURE__ */ (0, o.jsx)("div", {
|
|
518
|
+
className: `text-sm font-medium ${s ? "text-red" : "text-gray"}`,
|
|
533
519
|
children: c
|
|
534
520
|
})]
|
|
535
521
|
});
|
|
536
|
-
},
|
|
522
|
+
}, T = ({ label: e, options: t, required: n, disabled: r, helperText: i, error: a, value: s, onChange: c }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
537
523
|
className: "w-full flex flex-col gap-1",
|
|
538
524
|
children: [
|
|
539
525
|
/* @__PURE__ */ (0, o.jsxs)("label", {
|
|
@@ -545,15 +531,10 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
545
531
|
]
|
|
546
532
|
}),
|
|
547
533
|
/* @__PURE__ */ (0, o.jsx)("select", {
|
|
548
|
-
className: `h-10
|
|
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"}`,
|
|
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"}`,
|
|
552
535
|
disabled: r,
|
|
553
|
-
onChange: (e) => {
|
|
554
|
-
c && c(e.target.value);
|
|
555
|
-
},
|
|
556
536
|
value: s,
|
|
537
|
+
onChange: (e) => c?.(e.target.value),
|
|
557
538
|
children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("option", {
|
|
558
539
|
value: e.name,
|
|
559
540
|
children: e.value
|
|
@@ -564,7 +545,34 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
564
545
|
children: i
|
|
565
546
|
})
|
|
566
547
|
]
|
|
567
|
-
}), O = ({ id: e,
|
|
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", {
|
|
568
576
|
id: e,
|
|
569
577
|
className: `
|
|
570
578
|
min-h-screen
|
|
@@ -584,7 +592,87 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
584
592
|
children: t
|
|
585
593
|
}), n]
|
|
586
594
|
})
|
|
587
|
-
}),
|
|
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", {
|
|
588
676
|
"aria-label": "Breadcrumb",
|
|
589
677
|
children: /* @__PURE__ */ (0, o.jsx)("ol", {
|
|
590
678
|
className: "\r\n flex\r\n flex-wrap\r\n items-center\r\n gap-2\r\n text-sm\r\n ",
|
|
@@ -606,7 +694,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
606
694
|
}, t.id);
|
|
607
695
|
})
|
|
608
696
|
})
|
|
609
|
-
}),
|
|
697
|
+
}), z = ({ children: t }) => {
|
|
610
698
|
let [n, r] = e.useState("Home"), i = [
|
|
611
699
|
{
|
|
612
700
|
id: 1,
|
|
@@ -634,9 +722,9 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
634
722
|
children: [
|
|
635
723
|
/* @__PURE__ */ (0, o.jsx)("div", {
|
|
636
724
|
className: "sticky top-0 z-50 bg-white",
|
|
637
|
-
children: /* @__PURE__ */ (0, o.jsxs)(
|
|
725
|
+
children: /* @__PURE__ */ (0, o.jsxs)(v, { children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
638
726
|
className: "flex items-center gap-4 lg:gap-10",
|
|
639
|
-
children: [/* @__PURE__ */ (0, o.jsx)(
|
|
727
|
+
children: [/* @__PURE__ */ (0, o.jsx)(b, {
|
|
640
728
|
logo: "/icon.svg",
|
|
641
729
|
title: "QTEK"
|
|
642
730
|
}), /* @__PURE__ */ (0, o.jsx)(x, {
|
|
@@ -645,7 +733,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
645
733
|
})]
|
|
646
734
|
}), /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
647
735
|
className: "flex shrink-0 items-center gap-2 sm:gap-3",
|
|
648
|
-
children: [/* @__PURE__ */ (0, o.jsx)(
|
|
736
|
+
children: [/* @__PURE__ */ (0, o.jsx)(C, {}), /* @__PURE__ */ (0, o.jsx)(y, {
|
|
649
737
|
navDrawer: i,
|
|
650
738
|
onItemClick: r
|
|
651
739
|
})]
|
|
@@ -653,30 +741,30 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
653
741
|
}),
|
|
654
742
|
/* @__PURE__ */ (0, o.jsx)("div", {
|
|
655
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",
|
|
656
|
-
children: /* @__PURE__ */ (0, o.jsx)(
|
|
744
|
+
children: /* @__PURE__ */ (0, o.jsx)(R, { items: [{
|
|
657
745
|
id: 1,
|
|
658
746
|
label: n,
|
|
659
747
|
href: "#"
|
|
660
748
|
}] })
|
|
661
749
|
}),
|
|
662
750
|
t,
|
|
663
|
-
/* @__PURE__ */ (0, o.jsxs)(
|
|
664
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
751
|
+
/* @__PURE__ */ (0, o.jsxs)(p, { children: [
|
|
752
|
+
/* @__PURE__ */ (0, o.jsx)(g, {
|
|
665
753
|
description: "Building modern and scalable digital solutions.",
|
|
666
754
|
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
667
755
|
className: "scale-150 origin-left",
|
|
668
|
-
children: /* @__PURE__ */ (0, o.jsx)(
|
|
756
|
+
children: /* @__PURE__ */ (0, o.jsx)(b, {
|
|
669
757
|
logo: "/icon.svg",
|
|
670
758
|
title: "QTEK"
|
|
671
759
|
})
|
|
672
760
|
})
|
|
673
761
|
}),
|
|
674
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
762
|
+
/* @__PURE__ */ (0, o.jsx)(_, {
|
|
675
763
|
title: "Quick Links",
|
|
676
764
|
links: i,
|
|
677
765
|
onItemClick: r
|
|
678
766
|
}),
|
|
679
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
767
|
+
/* @__PURE__ */ (0, o.jsx)(h, {
|
|
680
768
|
email: "hello@qtek.com",
|
|
681
769
|
phone: "+63 900 000 0000",
|
|
682
770
|
socials: [
|
|
@@ -697,90 +785,10 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
697
785
|
}
|
|
698
786
|
]
|
|
699
787
|
}),
|
|
700
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
788
|
+
/* @__PURE__ */ (0, o.jsx)(m, { copyright: "© 2026 QTEK. All rights reserved." })
|
|
701
789
|
] })
|
|
702
790
|
]
|
|
703
791
|
});
|
|
704
|
-
}
|
|
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
|
-
});
|
|
792
|
+
};
|
|
785
793
|
//#endregion
|
|
786
|
-
export {
|
|
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 };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export { Card } from './Card';
|
|
2
|
+
export type { CardProps } from './Card';
|
|
2
3
|
export { CardContent } from './CardContent';
|
|
3
|
-
export {
|
|
4
|
+
export type { CardContentProps } from './CardContent';
|
|
4
5
|
export { CardFooter } from './CardFooter';
|
|
6
|
+
export type { CardFooterProps } from './CardFooter';
|
|
7
|
+
export { CardImage } from './CardImage';
|
|
8
|
+
export type { CardImageProps } from './CardImage';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface FooterContactProps {
|
|
1
|
+
export interface FooterContactProps {
|
|
2
2
|
email: string;
|
|
3
3
|
phone: string;
|
|
4
4
|
socials: {
|
|
@@ -8,4 +8,3 @@ interface FooterContactProps {
|
|
|
8
8
|
}[];
|
|
9
9
|
}
|
|
10
10
|
export declare const FooterContact: ({ email, phone, socials, }: FooterContactProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
interface FooterIconProps {
|
|
2
|
+
export interface FooterIconProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
description: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const FooterIcon: ({ children, description, }: FooterIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface QuickLinkProps {
|
|
1
|
+
export interface QuickLinkProps {
|
|
2
2
|
title: string;
|
|
3
3
|
links: {
|
|
4
4
|
id: number;
|
|
@@ -8,4 +8,3 @@ interface QuickLinkProps {
|
|
|
8
8
|
onItemClick?: (label: string) => void;
|
|
9
9
|
}
|
|
10
10
|
export declare const QuickLink: ({ title, links, onItemClick, }: QuickLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|