@eloisallena/web_components 1.0.6 → 1.0.8
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.d.ts +2 -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/web-components.cjs.ts +275 -0
- package/dist/{web-components.es.js → web-components.es.ts} +109 -120
- package/dist/web_components.css +3 -0
- package/package.json +8 -11
- 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/index.js +0 -26
- package/dist/themes/tailwind.css +0 -47
|
@@ -202,16 +202,10 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
202
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
203
|
children: e
|
|
204
204
|
})
|
|
205
|
-
}), d = ({
|
|
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", {
|
|
205
|
+
}), d = ({ copyright: e }) => /* @__PURE__ */ (0, o.jsx)("div", {
|
|
212
206
|
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
207
|
children: e
|
|
214
|
-
}),
|
|
208
|
+
}), f = ({ email: e, phone: t, socials: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
215
209
|
className: "text-white",
|
|
216
210
|
children: [
|
|
217
211
|
/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
@@ -235,6 +229,12 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
235
229
|
}, e.id))
|
|
236
230
|
})
|
|
237
231
|
]
|
|
232
|
+
}), p = ({ children: e, description: t }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
233
|
+
className: "flex flex-col gap-4",
|
|
234
|
+
children: [e, /* @__PURE__ */ (0, o.jsx)("p", {
|
|
235
|
+
className: "\r\n max-w-sm\r\n text-sm\r\n text-white\r\n ",
|
|
236
|
+
children: t
|
|
237
|
+
})]
|
|
238
238
|
}), m = ({ title: e, links: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
239
239
|
className: "text-white",
|
|
240
240
|
children: [/* @__PURE__ */ (0, o.jsx)("h3", {
|
|
@@ -249,10 +249,12 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
249
249
|
children: e.label
|
|
250
250
|
}, e.id))
|
|
251
251
|
})]
|
|
252
|
-
}), h = ({ children: e }) => /* @__PURE__ */ (0, o.jsx)("form", {
|
|
253
|
-
|
|
252
|
+
}), h = ({ children: e, onSubmit: t, className: n = "", ...r }) => /* @__PURE__ */ (0, o.jsx)("form", {
|
|
253
|
+
onSubmit: t,
|
|
254
|
+
className: `w-full max-w-sm ${n}`,
|
|
255
|
+
...r,
|
|
254
256
|
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
255
|
-
className: "flex flex-col gap-1
|
|
257
|
+
className: "flex flex-col gap-1",
|
|
256
258
|
children: e
|
|
257
259
|
})
|
|
258
260
|
}), g = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("header", {
|
|
@@ -261,24 +263,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
261
263
|
className: "flex items-center justify-between px-6 py-4",
|
|
262
264
|
children: e
|
|
263
265
|
})
|
|
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 }) => {
|
|
266
|
+
}), _ = ({ navDrawer: e = [], style: n, onItemClick: r }) => {
|
|
282
267
|
let [i, a] = t(!1);
|
|
283
268
|
return /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [
|
|
284
269
|
/* @__PURE__ */ (0, o.jsx)("button", {
|
|
@@ -348,7 +333,42 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
348
333
|
})]
|
|
349
334
|
})
|
|
350
335
|
] });
|
|
351
|
-
},
|
|
336
|
+
}, v = ({ logo: e = "/logo.svg", title: t = "my Company", style: n, alt: r = "" }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
337
|
+
className: `
|
|
338
|
+
flex
|
|
339
|
+
items-center
|
|
340
|
+
gap-2
|
|
341
|
+
sm:gap-3
|
|
342
|
+
shrink-0
|
|
343
|
+
${n || ""}
|
|
344
|
+
`,
|
|
345
|
+
children: [/* @__PURE__ */ (0, o.jsx)("img", {
|
|
346
|
+
src: e,
|
|
347
|
+
alt: r,
|
|
348
|
+
className: "\r\n h-8\r\n w-8\r\n sm:h-10\r\n sm:w-10\r\n object-contain"
|
|
349
|
+
}), /* @__PURE__ */ (0, o.jsx)("h1", {
|
|
350
|
+
className: "text-sm sm:text-lg font-bold text-blue",
|
|
351
|
+
children: t
|
|
352
|
+
})]
|
|
353
|
+
}), y = ({ navBar: e = [], style: t, onItemClick: n }) => /* @__PURE__ */ (0, o.jsx)("nav", {
|
|
354
|
+
className: `
|
|
355
|
+
hidden
|
|
356
|
+
md:flex
|
|
357
|
+
gap-12
|
|
358
|
+
justify-center
|
|
359
|
+
items-center
|
|
360
|
+
absolute
|
|
361
|
+
left-1/2
|
|
362
|
+
-translate-x-1/2
|
|
363
|
+
${t || ""}
|
|
364
|
+
`,
|
|
365
|
+
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("a", {
|
|
366
|
+
href: e.href || "#",
|
|
367
|
+
onClick: () => n?.(e.label),
|
|
368
|
+
className: "\r\n text-lg\r\n font-bold\r\n text-black\r\n hover:text-green\r\n cursor-pointer\r\n ",
|
|
369
|
+
children: e.label
|
|
370
|
+
}, e.id))
|
|
371
|
+
}), b = ({ isOpen: e, onClose: t, title: n, children: r }) => e ? /* @__PURE__ */ (0, o.jsxs)(o.Fragment, { children: [/* @__PURE__ */ (0, o.jsx)("div", {
|
|
352
372
|
className: "fixed inset-0 z-40 bg-black/40",
|
|
353
373
|
onClick: t
|
|
354
374
|
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
@@ -385,7 +405,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
385
405
|
children: r
|
|
386
406
|
})]
|
|
387
407
|
})
|
|
388
|
-
})] }) : null,
|
|
408
|
+
})] }) : null, x = ({ placeholder: e = "Search...", style: n, children: r }) => {
|
|
389
409
|
let [i, a] = t(!1);
|
|
390
410
|
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
391
411
|
className: `relative ${n || ""}`,
|
|
@@ -427,7 +447,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
427
447
|
})
|
|
428
448
|
})
|
|
429
449
|
}),
|
|
430
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
450
|
+
/* @__PURE__ */ (0, o.jsx)(b, {
|
|
431
451
|
isOpen: i,
|
|
432
452
|
title: "Search",
|
|
433
453
|
onClose: () => a(!1),
|
|
@@ -455,45 +475,8 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
455
475
|
})
|
|
456
476
|
]
|
|
457
477
|
});
|
|
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);
|
|
478
|
+
}, S = ({ id: e, label: n, required: r, disabled: i, defaultChecked: a, error: s, helperText: c, onChange: l }) => {
|
|
479
|
+
let [u, d] = t(a || !1);
|
|
497
480
|
return /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
498
481
|
className: "flex flex-col gap-1",
|
|
499
482
|
children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
@@ -501,24 +484,16 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
501
484
|
children: [/* @__PURE__ */ (0, o.jsx)("input", {
|
|
502
485
|
id: e,
|
|
503
486
|
type: "checkbox",
|
|
504
|
-
checked:
|
|
487
|
+
checked: u,
|
|
505
488
|
onChange: (e) => {
|
|
506
489
|
let t = e.target.checked;
|
|
507
|
-
|
|
490
|
+
d(t), l?.(t);
|
|
508
491
|
},
|
|
509
492
|
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
|
-
`
|
|
493
|
+
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
494
|
}), /* @__PURE__ */ (0, o.jsxs)("label", {
|
|
517
495
|
htmlFor: e,
|
|
518
|
-
className: `
|
|
519
|
-
select-none ms-2 text-sm font-medium
|
|
520
|
-
${i ? "text-fg-disabled text-light-gray" : "text-heading"}
|
|
521
|
-
`,
|
|
496
|
+
className: `select-none ms-2 text-sm font-medium ${i ? "text-light-gray" : "text-heading"}`,
|
|
522
497
|
children: [
|
|
523
498
|
n,
|
|
524
499
|
" ",
|
|
@@ -528,12 +503,12 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
528
503
|
})
|
|
529
504
|
]
|
|
530
505
|
})]
|
|
531
|
-
}), /* @__PURE__ */ (0, o.jsx)("div", {
|
|
532
|
-
className: s ? "text-red
|
|
506
|
+
}), c && /* @__PURE__ */ (0, o.jsx)("div", {
|
|
507
|
+
className: `text-sm font-medium ${s ? "text-red" : "text-gray"}`,
|
|
533
508
|
children: c
|
|
534
509
|
})]
|
|
535
510
|
});
|
|
536
|
-
},
|
|
511
|
+
}, C = ({ label: e, options: t, required: n, disabled: r, helperText: i, error: a, value: s, onChange: c }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
537
512
|
className: "w-full flex flex-col gap-1",
|
|
538
513
|
children: [
|
|
539
514
|
/* @__PURE__ */ (0, o.jsxs)("label", {
|
|
@@ -545,15 +520,10 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
545
520
|
]
|
|
546
521
|
}),
|
|
547
522
|
/* @__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"}`,
|
|
523
|
+
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
524
|
disabled: r,
|
|
553
|
-
onChange: (e) => {
|
|
554
|
-
c && c(e.target.value);
|
|
555
|
-
},
|
|
556
525
|
value: s,
|
|
526
|
+
onChange: (e) => c?.(e.target.value),
|
|
557
527
|
children: t.map((e) => /* @__PURE__ */ (0, o.jsx)("option", {
|
|
558
528
|
value: e.name,
|
|
559
529
|
children: e.value
|
|
@@ -564,6 +534,25 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
564
534
|
children: i
|
|
565
535
|
})
|
|
566
536
|
]
|
|
537
|
+
}), w = "border-red", T = "text-red", E = "border-gray", D = ({ id: e, labelText: t, placeholder: n, type: r, error: i, helperText: a }) => /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
538
|
+
className: "flex flex-col gap-1",
|
|
539
|
+
children: [
|
|
540
|
+
/* @__PURE__ */ (0, o.jsx)("label", {
|
|
541
|
+
htmlFor: e,
|
|
542
|
+
className: "text-sm font-medium text-gray",
|
|
543
|
+
children: t
|
|
544
|
+
}),
|
|
545
|
+
/* @__PURE__ */ (0, o.jsx)("input", {
|
|
546
|
+
id: e,
|
|
547
|
+
placeholder: n,
|
|
548
|
+
type: r,
|
|
549
|
+
className: `block w-full px-3 py-2.5 bg-neutral-secondary-medium border ${i ? w : E} text-heading text-sm rounded-base shadow-xs placeholder:text-body focus:ring-brand focus:border-brand`
|
|
550
|
+
}),
|
|
551
|
+
a && /* @__PURE__ */ (0, o.jsx)("p", {
|
|
552
|
+
className: `${i ? T : "text-light-gray"} text-xs`,
|
|
553
|
+
children: a
|
|
554
|
+
})
|
|
555
|
+
]
|
|
567
556
|
}), O = ({ id: e, title: t, children: n, style: r }) => /* @__PURE__ */ (0, o.jsx)("section", {
|
|
568
557
|
id: e,
|
|
569
558
|
className: `
|
|
@@ -636,16 +625,16 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
636
625
|
className: "sticky top-0 z-50 bg-white",
|
|
637
626
|
children: /* @__PURE__ */ (0, o.jsxs)(g, { children: [/* @__PURE__ */ (0, o.jsxs)("div", {
|
|
638
627
|
className: "flex items-center gap-4 lg:gap-10",
|
|
639
|
-
children: [/* @__PURE__ */ (0, o.jsx)(
|
|
628
|
+
children: [/* @__PURE__ */ (0, o.jsx)(v, {
|
|
640
629
|
logo: "/icon.svg",
|
|
641
630
|
title: "QTEK"
|
|
642
|
-
}), /* @__PURE__ */ (0, o.jsx)(
|
|
631
|
+
}), /* @__PURE__ */ (0, o.jsx)(y, {
|
|
643
632
|
navBar: i,
|
|
644
633
|
onItemClick: r
|
|
645
634
|
})]
|
|
646
635
|
}), /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
647
636
|
className: "flex shrink-0 items-center gap-2 sm:gap-3",
|
|
648
|
-
children: [/* @__PURE__ */ (0, o.jsx)(
|
|
637
|
+
children: [/* @__PURE__ */ (0, o.jsx)(x, {}), /* @__PURE__ */ (0, o.jsx)(_, {
|
|
649
638
|
navDrawer: i,
|
|
650
639
|
onItemClick: r
|
|
651
640
|
})]
|
|
@@ -661,11 +650,11 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
661
650
|
}),
|
|
662
651
|
t,
|
|
663
652
|
/* @__PURE__ */ (0, o.jsxs)(u, { children: [
|
|
664
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
653
|
+
/* @__PURE__ */ (0, o.jsx)(p, {
|
|
665
654
|
description: "Building modern and scalable digital solutions.",
|
|
666
655
|
children: /* @__PURE__ */ (0, o.jsx)("div", {
|
|
667
656
|
className: "scale-150 origin-left",
|
|
668
|
-
children: /* @__PURE__ */ (0, o.jsx)(
|
|
657
|
+
children: /* @__PURE__ */ (0, o.jsx)(v, {
|
|
669
658
|
logo: "/icon.svg",
|
|
670
659
|
title: "QTEK"
|
|
671
660
|
})
|
|
@@ -676,7 +665,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
676
665
|
links: i,
|
|
677
666
|
onItemClick: r
|
|
678
667
|
}),
|
|
679
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
668
|
+
/* @__PURE__ */ (0, o.jsx)(f, {
|
|
680
669
|
email: "hello@qtek.com",
|
|
681
670
|
phone: "+63 900 000 0000",
|
|
682
671
|
socials: [
|
|
@@ -697,7 +686,7 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
697
686
|
}
|
|
698
687
|
]
|
|
699
688
|
}),
|
|
700
|
-
/* @__PURE__ */ (0, o.jsx)(
|
|
689
|
+
/* @__PURE__ */ (0, o.jsx)(d, { copyright: "© 2026 QTEK. All rights reserved." })
|
|
701
690
|
] })
|
|
702
691
|
]
|
|
703
692
|
});
|
|
@@ -718,11 +707,25 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
718
707
|
children: e
|
|
719
708
|
})
|
|
720
709
|
})
|
|
721
|
-
}), M = {
|
|
710
|
+
}), M = ({ children: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tbody", {
|
|
711
|
+
className: t,
|
|
712
|
+
children: e
|
|
713
|
+
}), N = ({ children: e, align: t = "left", style: n }) => /* @__PURE__ */ (0, o.jsx)("td", {
|
|
714
|
+
className: `
|
|
715
|
+
px-4
|
|
716
|
+
py-3
|
|
717
|
+
text-sm
|
|
718
|
+
${t === "center" ? "text-center" : ""}
|
|
719
|
+
${t === "right" ? "text-right" : ""}
|
|
720
|
+
${t === "left" ? "text-left" : ""}
|
|
721
|
+
${n || ""}
|
|
722
|
+
`,
|
|
723
|
+
children: e
|
|
724
|
+
}), P = {
|
|
722
725
|
left: "text-left",
|
|
723
726
|
center: "text-center",
|
|
724
727
|
right: "text-right"
|
|
725
|
-
},
|
|
728
|
+
}, F = ({ rowData: e }) => /* @__PURE__ */ (0, o.jsx)("thead", { children: /* @__PURE__ */ (0, o.jsx)("tr", {
|
|
726
729
|
className: "\r\n sticky\r\n top-0\r\n z-10\r\n bg-white\r\n ",
|
|
727
730
|
children: e.map((e) => /* @__PURE__ */ (0, o.jsx)("th", {
|
|
728
731
|
className: `
|
|
@@ -734,15 +737,12 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
734
737
|
|
|
735
738
|
border-b
|
|
736
739
|
border-light-gray
|
|
737
|
-
${
|
|
740
|
+
${P[e.align || "left"]}
|
|
738
741
|
${e.style || ""}
|
|
739
742
|
`,
|
|
740
743
|
children: e.value
|
|
741
744
|
}, e.key))
|
|
742
|
-
}) }),
|
|
743
|
-
className: t,
|
|
744
|
-
children: e
|
|
745
|
-
}), F = ({ rowData: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tr", {
|
|
745
|
+
}) }), I = ({ rowData: e, style: t }) => /* @__PURE__ */ (0, o.jsx)("tr", {
|
|
746
746
|
className: `
|
|
747
747
|
|
|
748
748
|
transition-colors
|
|
@@ -765,22 +765,11 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
|
|
|
765
765
|
|
|
766
766
|
|
|
767
767
|
|
|
768
|
-
${
|
|
768
|
+
${P[e.align || "left"]}
|
|
769
769
|
${e.style || ""}
|
|
770
770
|
`,
|
|
771
771
|
children: e.value
|
|
772
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
773
|
});
|
|
785
774
|
//#endregion
|
|
786
|
-
export { k as Breadcrumbs, c as Button, l as Card, u as Cfooter, h as Cform, g as Cheader,
|
|
775
|
+
export { k as Breadcrumbs, c as Button, l as Card, u as Cfooter, h as Cform, g as Cheader, S as CheckBox, j as Ctable, _ as Drawer, d as FooterBottom, f as FooterContact, p as FooterIcon, v as Icon, A as LandingLayout, s as Loader, b as Modal, y as NavBar, m as QuickLink, x as SearchBar, O as Section, C as Select, M as TableBody, N as TableCell, F as TableHead, I as TableRow, D as TextField };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-2xl:42rem;--container-3xl:48rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25 / 1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-6xl:3.75rem;--text-6xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-blue:oklch(44.62% .1768 263.73);--color-green:oklch(39.58% .134172 142.611);--color-red:oklch(45.94% .1885 29.23);--color-white:oklch(96.08% .0058 264.53);--color-black:oklch(22.21% 0 0);--color-light-black:oklch(28.76% .0203 260.62);--color-gray:oklch(42.76% 0 0);--color-light-gray:oklch(78.26% 0 0);--color-primary-button:oklch(28.76% .0203 260.62);--color-secondary-button:oklch(28.76% .0203 260.62);--color-restore-button:oklch(28.76% .0203 260.62);--color-delete-button:oklch(28.76% .0203 260.62);--color-disabled-button:oklch(28.76% .0203 260.62);--color-primary:oklch(28.76% .0203 260.62)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[data-mode=light]{background-color:var(--color-white);color:var(--color-black);--color-primary-button:oklch(44.62% .1768 263.73);--color-secondary-button:oklch(39.46% .0271 256.81);--color-restore-button:oklch(39.58% .134172 142.611);--color-delete-button:oklch(45.94% .1885 29.23);--color-disabled-button:oklch(42.76% 0 0);--color-primary:oklch(100% 0 0)}[data-mode=dark]{background-color:var(--color-light-black);color:var(--color-white);--color-primary-button:oklch(77.69% .0911 250.52);--color-secondary-button:oklch(81.88% .0167 206.42);--color-restore-button:oklch(75.7% .193 143.64);--color-delete-button:oklch(79.78% .1161 19.96);--color-disabled-button:oklch(78.26% 0 0);--color-primary:oklch(22.21% 0 0)}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.top-0{top:calc(var(--spacing) * 0)}.top-1\/2{top:50%}.top-16{top:calc(var(--spacing) * 16)}.left-0{left:calc(var(--spacing) * 0)}.left-1\/2{left:50%}.left-3{left:calc(var(--spacing) * 3)}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-auto{margin-inline:auto}.ms-2{margin-inline-start:calc(var(--spacing) * 2)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-48{height:calc(var(--spacing) * 48)}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[70vh\]{min-height:70vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-27\.5{width:calc(var(--spacing) * 27.5)}.w-65{width:calc(var(--spacing) * 65)}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.min-w-10{min-width:calc(var(--spacing) * 10)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:calc(var(--spacing) * 0);--tw-border-spacing-y:calc(var(--spacing) * 0);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-left{transform-origin:0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-x-full{--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.scale-150{--tw-scale-x:150%;--tw-scale-y:150%;--tw-scale-z:150%;scale:var(--tw-scale-x) var(--tw-scale-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.scroll-mt-32{scroll-margin-top:calc(var(--spacing) * 32)}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-10{gap:calc(var(--spacing) * 10)}.gap-12{gap:calc(var(--spacing) * 12)}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-solid{--tw-border-style:solid;border-style:solid}.border-black\/\[\.08\]{border-color:#1b1b1b14}@supports (color:color-mix(in lab, red, red)){.border-black\/\[\.08\]{border-color:color-mix(in oklab, var(--color-black) 8%, transparent)}}.border-gray{border-color:var(--color-gray)}.border-light-gray{border-color:var(--color-light-gray)}.border-red{border-color:var(--color-red)}.border-white{border-color:var(--color-white)}.bg-black\/40{background-color:#1b1b1b66}@supports (color:color-mix(in lab, red, red)){.bg-black\/40{background-color:color-mix(in oklab, var(--color-black) 40%, transparent)}}.bg-delete-button{background-color:var(--color-delete-button)}.bg-disabled-button{background-color:var(--color-disabled-button)}.bg-gray{background-color:var(--color-gray)}.bg-light-gray{background-color:var(--color-light-gray)}.bg-primary{background-color:var(--color-primary)}.bg-primary-button{background-color:var(--color-primary-button)}.bg-restore-button{background-color:var(--color-restore-button)}.bg-secondary-button{background-color:var(--color-secondary-button)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-10{padding:calc(var(--spacing) * 10)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-16{padding-inline:calc(var(--spacing) * 16)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-32{padding-block:calc(var(--spacing) * 32)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pb-8{padding-bottom:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-8{--tw-leading:calc(var(--spacing) * 8);line-height:calc(var(--spacing) * 8)}.leading-10{--tw-leading:calc(var(--spacing) * 10);line-height:calc(var(--spacing) * 10)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.whitespace-nowrap{white-space:nowrap}.text-black{color:var(--color-black)}.text-blue{color:var(--color-blue)}.text-gray{color:var(--color-gray)}.text-light-gray{color:var(--color-light-gray)}.text-primary{color:var(--color-primary)}.text-red{color:var(--color-red)}.text-white{color:var(--color-white)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-transparent:hover{border-color:#0000}.hover\:bg-\[\#383838\]:hover{background-color:#383838}.hover\:bg-black\/\[\.04\]:hover{background-color:#1b1b1b0a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/\[\.04\]:hover{background-color:color-mix(in oklab, var(--color-black) 4%, transparent)}}.hover\:text-green:hover{color:var(--color-green)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-blue:focus{--tw-ring-color:var(--color-blue)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (width>=40rem){.sm\:h-10{height:calc(var(--spacing) * 10)}.sm\:w-10{width:calc(var(--spacing) * 10)}.sm\:w-40{width:calc(var(--spacing) * 40)}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:gap-3{gap:calc(var(--spacing) * 3)}.sm\:px-4{padding-inline:calc(var(--spacing) * 4)}.sm\:text-left{text-align:left}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (width>=48rem){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:w-50{width:calc(var(--spacing) * 50)}.md\:w-70{width:calc(var(--spacing) * 70)}.md\:w-\[158px\]{width:158px}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:px-10{padding-inline:calc(var(--spacing) * 10)}.md\:py-4{padding-block:calc(var(--spacing) * 4)}.md\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.md\:text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.md\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media (width>=64rem){.lg\:w-25{width:calc(var(--spacing) * 25)}.lg\:w-60{width:calc(var(--spacing) * 60)}.lg\:gap-10{gap:calc(var(--spacing) * 10)}.lg\:px-16{padding-inline:calc(var(--spacing) * 16)}}@media (prefers-color-scheme:dark){.dark\:border-white\/\[\.145\]{border-color:#f0f2f625}@supports (color:color-mix(in lab, red, red)){.dark\:border-white\/\[\.145\]{border-color:color-mix(in oklab, var(--color-white) 14.5%, transparent)}}.dark\:bg-black{background-color:var(--color-black)}.dark\:invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}@media (hover:hover){.dark\:hover\:bg-\[\#1a1a1a\]:hover{background-color:#1a1a1a}.dark\:hover\:bg-\[\#ccc\]:hover{background-color:#ccc}}}.\[\&\:last-child_td\]\:border-b-0:last-child td{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}@property --tw-border-spacing-x{syntax:"<length>";inherits:false;initial-value:0}@property --tw-border-spacing-y{syntax:"<length>";inherits:false;initial-value:0}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}
|
|
3
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
2
|
"name": "@eloisallena/web_components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "1.0.8",
|
|
5
4
|
"private": false,
|
|
6
5
|
"files": [
|
|
7
6
|
"dist"
|
|
8
7
|
],
|
|
9
|
-
"
|
|
8
|
+
"main": "./dist/web-components.cjs.js",
|
|
9
|
+
"module": "./dist/web-components.es.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"import": "./dist/
|
|
13
|
+
"import": "./dist/web-components.es.js",
|
|
14
|
+
"require": "./dist/web-components.cjs.js",
|
|
14
15
|
"types": "./dist/index.d.ts"
|
|
15
|
-
},
|
|
16
|
-
"./themes/tailwind.css": {
|
|
17
|
-
"style": "./dist/themes/tailwind.css",
|
|
18
|
-
"default": "./dist/themes/tailwind.css"
|
|
19
16
|
}
|
|
20
17
|
},
|
|
18
|
+
|
|
21
19
|
"scripts": {
|
|
22
20
|
"dev": "next dev",
|
|
23
|
-
"build": "
|
|
24
|
-
"build:app": "next build",
|
|
21
|
+
"build": "next build",
|
|
25
22
|
"start": "next start",
|
|
26
23
|
"lint": "eslint",
|
|
27
24
|
"storybook": "storybook dev -p 6006",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const Breadcrumbs = ({ items, }) => {
|
|
3
|
-
return (_jsx("nav", { "aria-label": "Breadcrumb", children: _jsx("ol", { className: "\r\n flex\r\n flex-wrap\r\n items-center\r\n gap-2\r\n text-sm\r\n ", children: items.map((item, index) => {
|
|
4
|
-
const isLast = index === items.length - 1;
|
|
5
|
-
return (_jsxs("li", { className: "\r\n flex\r\n items-center\r\n gap-2\r\n ", children: [isLast ? (_jsx("span", { className: "\r\n font-semibold\r\n text-gray-900\r\n ", children: item.label })) : (_jsx("a", { href: item.href, className: "\r\n text-gray-600\r\n transition-colors\r\n hover:text-blue-600\r\n hover:underline\r\n ", children: item.label })), !isLast && (_jsx("span", { className: "text-gray-400", children: ">" }))] }, item.id));
|
|
6
|
-
}) }) }));
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Breadcrumbs } from './Breadcrumbs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Breadcrumbs } from './Breadcrumbs';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Loader } from "../spinner/Loader";
|
|
3
|
-
export const Button = ({ variant = "primary", label, isLoading = false, disabled = false, onClick, }) => {
|
|
4
|
-
const colors = {
|
|
5
|
-
primary: "bg-primary-button text-primary",
|
|
6
|
-
secondary: "bg-secondary-button text-primary",
|
|
7
|
-
restore: "bg-restore-button text-primary",
|
|
8
|
-
delete: "bg-delete-button text-primary",
|
|
9
|
-
disabled: "bg-disabled-button text-primary",
|
|
10
|
-
};
|
|
11
|
-
const loader = isLoading ? _jsx(Loader, {}) : null;
|
|
12
|
-
const isDisabled = disabled || isLoading;
|
|
13
|
-
return (_jsx("div", { children: _jsxs("button", { className: `${colors[variant]} 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
|
|
14
|
-
${isDisabled ? "cursor-not-allowed opacity-50" : "hover:cursor-pointer"}`, disabled: isDisabled, onClick: onClick, children: [loader, label] }) }));
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Button } from './Button';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const CardContent = ({ title, description, }) => {
|
|
3
|
-
return (_jsxs("div", { className: "p-10", children: [_jsx("h2", { className: "text-lg font-bold mb-2 text-black", children: title }), _jsx("p", { className: "text-gray text-sm font-normal", children: description })] }));
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const CardImage = ({ alt, image, children, }) => {
|
|
3
|
-
return (_jsxs("div", { className: "relative w-full h-48", children: [_jsx("img", { src: image, alt: alt, className: "w-full h-auto object-cover" }), children] }));
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const Cfooter = ({ children }) => {
|
|
3
|
-
return (_jsx("footer", { className: "\r\n w-full\r\n bg-gray\r\n text-white\r\n ", children: _jsx("div", { 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 ", children: children }) }));
|
|
4
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const FooterBottom = ({ copyright, }) => {
|
|
3
|
-
return (_jsx("div", { 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 ", children: copyright }));
|
|
4
|
-
};
|