@eloisallena/web_components 1.0.4 → 1.0.6

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 (91) hide show
  1. package/dist/component/breadcrumbs/Breadcrumbs.d.ts +9 -0
  2. package/dist/component/breadcrumbs/Breadcrumbs.js +7 -0
  3. package/dist/component/breadcrumbs/index.d.ts +1 -0
  4. package/dist/component/breadcrumbs/index.js +1 -0
  5. package/dist/component/button/Button.d.ts +8 -0
  6. package/dist/component/button/Button.js +15 -0
  7. package/dist/component/button/index.d.ts +1 -0
  8. package/dist/component/button/index.js +2 -0
  9. package/dist/component/card/Card.d.ts +6 -0
  10. package/dist/component/card/Card.js +4 -0
  11. package/dist/component/card/CardContent.d.ts +6 -0
  12. package/dist/component/card/CardContent.js +4 -0
  13. package/dist/component/card/CardFooter.d.ts +5 -0
  14. package/dist/component/card/CardFooter.js +4 -0
  15. package/dist/component/card/CardImage.d.ts +7 -0
  16. package/dist/component/card/CardImage.js +4 -0
  17. package/dist/component/card/index.d.ts +4 -0
  18. package/dist/component/card/index.js +4 -0
  19. package/dist/component/footer/Cfooter.d.ts +6 -0
  20. package/dist/component/footer/Cfooter.js +4 -0
  21. package/dist/component/footer/FooterBottom.d.ts +5 -0
  22. package/dist/component/footer/FooterBottom.js +4 -0
  23. package/dist/component/footer/FooterContact.d.ts +11 -0
  24. package/dist/component/footer/FooterContact.js +4 -0
  25. package/dist/component/footer/FooterIcon.d.ts +7 -0
  26. package/dist/component/footer/FooterIcon.js +4 -0
  27. package/dist/component/footer/QuickLink.d.ts +11 -0
  28. package/dist/component/footer/QuickLink.js +4 -0
  29. package/dist/component/footer/index.d.ts +5 -0
  30. package/dist/component/footer/index.js +5 -0
  31. package/dist/component/form/Cform.d.ts +6 -0
  32. package/dist/component/form/Cform.js +4 -0
  33. package/dist/component/form/index.d.ts +1 -0
  34. package/dist/component/form/index.js +1 -0
  35. package/dist/component/header/Cheader.d.ts +7 -0
  36. package/dist/component/header/Cheader.js +4 -0
  37. package/dist/component/header/Drawer.d.ts +12 -0
  38. package/dist/component/header/Drawer.js +22 -0
  39. package/dist/component/header/Icon.d.ts +9 -0
  40. package/dist/component/header/Icon.js +11 -0
  41. package/dist/component/header/NavBar.d.ts +12 -0
  42. package/dist/component/header/NavBar.js +14 -0
  43. package/dist/component/header/SearchBar.d.ts +8 -0
  44. package/dist/component/header/SearchBar.js +7 -0
  45. package/dist/component/header/index.d.ts +5 -0
  46. package/dist/component/header/index.js +5 -0
  47. package/dist/component/input/CheckBox.d.ts +12 -0
  48. package/dist/component/input/CheckBox.js +18 -0
  49. package/dist/component/input/Select.d.ts +17 -0
  50. package/dist/component/input/Select.js +12 -0
  51. package/dist/component/input/TextField.d.ts +11 -0
  52. package/dist/component/input/TextField.js +7 -0
  53. package/dist/component/input/index.d.ts +3 -0
  54. package/dist/component/input/index.js +3 -0
  55. package/dist/component/modal/Modal.d.ts +8 -0
  56. package/dist/component/modal/Modal.js +6 -0
  57. package/dist/component/modal/index.d.ts +1 -0
  58. package/dist/component/modal/index.js +1 -0
  59. package/dist/component/section/Section.d.ts +9 -0
  60. package/dist/component/section/Section.js +14 -0
  61. package/dist/component/section/index.d.ts +1 -0
  62. package/dist/component/section/index.js +1 -0
  63. package/dist/component/spinner/Loader.d.ts +1 -0
  64. package/dist/component/spinner/Loader.js +4 -0
  65. package/dist/component/spinner/index.d.ts +1 -0
  66. package/dist/component/spinner/index.js +1 -0
  67. package/dist/component/stories/LandingLayout.d.ts +6 -0
  68. package/dist/component/stories/LandingLayout.js +33 -0
  69. package/dist/component/stories/index.d.ts +1 -0
  70. package/dist/component/stories/index.js +1 -0
  71. package/dist/component/table/Ctable.d.ts +8 -0
  72. package/dist/component/table/Ctable.js +13 -0
  73. package/dist/component/table/TableBody.d.ts +7 -0
  74. package/dist/component/table/TableBody.js +4 -0
  75. package/dist/component/table/TableCell.d.ts +8 -0
  76. package/dist/component/table/TableCell.js +12 -0
  77. package/dist/component/table/TableHead.d.ts +7 -0
  78. package/dist/component/table/TableHead.js +16 -0
  79. package/dist/component/table/TableRow.d.ts +8 -0
  80. package/dist/component/table/TableRow.js +27 -0
  81. package/dist/component/table/alignment.d.ts +5 -0
  82. package/dist/component/table/alignment.js +5 -0
  83. package/dist/component/table/index.d.ts +5 -0
  84. package/dist/component/table/index.js +5 -0
  85. package/dist/component/table/types.d.ts +13 -0
  86. package/dist/component/table/types.js +1 -0
  87. package/dist/index.d.ts +26 -2
  88. package/dist/index.js +26 -0
  89. package/dist/themes/tailwind.css +47 -0
  90. package/package.json +11 -8
  91. package/dist/web-components.cjs.js +0 -292
@@ -0,0 +1 @@
1
+ export { LandingLayout } from './LandingLayout';
@@ -0,0 +1 @@
1
+ export { LandingLayout } from './LandingLayout';
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface CtableProps {
3
+ children?: React.ReactNode;
4
+ style?: string;
5
+ maxRows?: number;
6
+ }
7
+ export declare const Ctable: React.FC<CtableProps>;
8
+ export {};
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const Ctable = ({ children, style, maxRows = 5, }) => {
3
+ return (_jsx("div", { className: `
4
+ w-full
5
+ overflow-hidden
6
+ rounded-md
7
+ bg-white
8
+ shadow-lg
9
+ ${style || ""}
10
+ `, children: _jsx("div", { className: "overflow-auto", style: {
11
+ maxHeight: `${maxRows * 56}px`,
12
+ }, children: _jsx("table", { className: "w-full border-separate border-spacing-0", children: children }) }) }));
13
+ };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ interface TableBodyProps {
3
+ children?: React.ReactNode;
4
+ style?: string;
5
+ }
6
+ export declare const TableBody: React.FC<TableBodyProps>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const TableBody = ({ children, style }) => {
3
+ return _jsx("tbody", { className: style, children: children });
4
+ };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface TableCellProps {
3
+ children: React.ReactNode;
4
+ align?: string;
5
+ style?: string;
6
+ }
7
+ export declare const TableCell: React.FC<TableCellProps>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ export const TableCell = ({ children, align = "left", style, }) => {
3
+ return (_jsx("td", { className: `
4
+ px-4
5
+ py-3
6
+ text-sm
7
+ ${align === "center" ? "text-center" : ""}
8
+ ${align === "right" ? "text-right" : ""}
9
+ ${align === "left" ? "text-left" : ""}
10
+ ${style || ""}
11
+ `, children: children }));
12
+ };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { TableHeadCell } from "./types";
3
+ interface TableHeadProps {
4
+ rowData: TableHeadCell[];
5
+ }
6
+ export declare const TableHead: React.FC<TableHeadProps>;
7
+ export {};
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { alignment } from "./alignment";
3
+ export const TableHead = ({ rowData }) => {
4
+ return (_jsx("thead", { children: _jsx("tr", { className: "\r\n sticky\r\n top-0\r\n z-10\r\n bg-white\r\n ", children: rowData.map((cell) => (_jsx("th", { className: `
5
+ px-3 sm:px-4 md:px-6
6
+ py-2 md:py-4
7
+ text-xs sm:text-sm
8
+ text-gray
9
+ font-semibold
10
+
11
+ border-b
12
+ border-light-gray
13
+ ${alignment[cell.align || "left"]}
14
+ ${cell.style || ""}
15
+ `, children: cell.value }, cell.key))) }) }));
16
+ };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { TableRowCell } from "./types";
3
+ interface TableRowProps {
4
+ rowData: TableRowCell[];
5
+ style?: string;
6
+ }
7
+ export declare const TableRow: React.FC<TableRowProps>;
8
+ export {};
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { alignment } from "./alignment";
3
+ export const TableRow = ({ rowData, style }) => {
4
+ return (_jsx("tr", { className: `
5
+
6
+ transition-colors
7
+ hover:bg-gray-50
8
+ [&:last-child_td]:border-b-0
9
+
10
+
11
+ ${style || ""}
12
+ `, children: rowData.map((cell) => (_jsx("td", { className: `
13
+ px-3 sm:px-4 md:px-6
14
+ py-2 md:py-4
15
+ text-xs sm:text-sm
16
+ text-gray
17
+ whitespace-nowrap
18
+
19
+ border-b
20
+ border-light-gray
21
+
22
+
23
+
24
+ ${alignment[cell.align || "left"]}
25
+ ${cell.style || ""}
26
+ `, children: cell.value }, cell.key))) }));
27
+ };
@@ -0,0 +1,5 @@
1
+ export declare const alignment: {
2
+ readonly left: "text-left";
3
+ readonly center: "text-center";
4
+ readonly right: "text-right";
5
+ };
@@ -0,0 +1,5 @@
1
+ export const alignment = {
2
+ left: "text-left",
3
+ center: "text-center",
4
+ right: "text-right",
5
+ };
@@ -0,0 +1,5 @@
1
+ export { Ctable } from "./Ctable";
2
+ export { TableHead } from "./TableHead";
3
+ export { TableBody } from "./TableBody";
4
+ export { TableRow } from "./TableRow";
5
+ export { TableCell } from "./TableCell";
@@ -0,0 +1,5 @@
1
+ export { Ctable } from "./Ctable";
2
+ export { TableHead } from "./TableHead";
3
+ export { TableBody } from "./TableBody";
4
+ export { TableRow } from "./TableRow";
5
+ export { TableCell } from "./TableCell";
@@ -0,0 +1,13 @@
1
+ export interface TableHeadCell {
2
+ key: number;
3
+ name: string;
4
+ value: string;
5
+ align?: "left" | "center" | "right";
6
+ style?: string;
7
+ }
8
+ export interface TableRowCell {
9
+ key: number;
10
+ value: string;
11
+ align?: "left" | "center" | "right";
12
+ style?: string;
13
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,2 +1,26 @@
1
- export * from './src/index.js'
2
- export {}
1
+ export { Button } from './component/button';
2
+ export { Card } from './component/card';
3
+ export { Cfooter } from './component/footer';
4
+ export { FooterIcon } from './component/footer';
5
+ export { FooterBottom } from './component/footer';
6
+ export { FooterContact } from './component/footer';
7
+ export { QuickLink } from './component/footer';
8
+ export { Cform } from './component/form';
9
+ export { Cheader } from './component/header';
10
+ export { Icon } from './component/header';
11
+ export { Drawer } from './component/header';
12
+ export { SearchBar } from './component/header';
13
+ export { NavBar } from './component/header';
14
+ export { Modal } from './component/modal';
15
+ export { TextField } from "./component/input";
16
+ export { CheckBox } from "./component/input";
17
+ export { Select } from "./component/input";
18
+ export { Section } from './component/section';
19
+ export { Loader } from './component/spinner';
20
+ export { LandingLayout } from './component/stories';
21
+ export { Ctable } from './component/table';
22
+ export { TableBody } from './component/table';
23
+ export { TableCell } from './component/table';
24
+ export { TableHead } from './component/table';
25
+ export { TableRow } from './component/table';
26
+ export { Breadcrumbs } from './component/breadcrumbs';
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ export { Button } from './component/button';
2
+ export { Card } from './component/card';
3
+ export { Cfooter } from './component/footer';
4
+ export { FooterIcon } from './component/footer';
5
+ export { FooterBottom } from './component/footer';
6
+ export { FooterContact } from './component/footer';
7
+ export { QuickLink } from './component/footer';
8
+ export { Cform } from './component/form';
9
+ export { Cheader } from './component/header';
10
+ export { Icon } from './component/header';
11
+ export { Drawer } from './component/header';
12
+ export { SearchBar } from './component/header';
13
+ export { NavBar } from './component/header';
14
+ export { Modal } from './component/modal';
15
+ export { TextField } from "./component/input";
16
+ export { CheckBox } from "./component/input";
17
+ export { Select } from "./component/input";
18
+ export { Section } from './component/section';
19
+ export { Loader } from './component/spinner';
20
+ export { LandingLayout } from './component/stories';
21
+ export { Ctable } from './component/table';
22
+ export { TableBody } from './component/table';
23
+ export { TableCell } from './component/table';
24
+ export { TableHead } from './component/table';
25
+ export { TableRow } from './component/table';
26
+ export { Breadcrumbs } from './component/breadcrumbs';
@@ -0,0 +1,47 @@
1
+ @import "tailwindcss";
2
+
3
+ @theme {
4
+ --color-*: initial;
5
+ --color-blue: oklch(0.4462 0.1768 263.73);
6
+ --color-green: oklch(0.3958 0.134172 142.6114);
7
+ --color-red: oklch(0.4594 0.1885 29.23);
8
+ --color-light-orange: oklch(0.792 0.1228 68.65);
9
+ --color-light-blue: oklch(0.7889 0.0903 269.59);
10
+ --color-light-green: oklch(0.757 0.193 143.64);
11
+ --color-light-red: oklch(0.7978 0.1161 19.96);
12
+ --color-white: oklch(0.9608 0.0058 264.53);
13
+ --color-black: oklch(0.2221 0 0);
14
+ --color-light-black: oklch(0.2876 0.0203 260.62);
15
+ --color-gray: oklch(0.4276 0 0);
16
+ --color-light-gray: oklch(0.7826 0 0);
17
+
18
+ --color-primary-button: oklch(0.2876 0.0203 260.62);
19
+ --color-secondary-button: oklch(0.2876 0.0203 260.62);
20
+ --color-restore-button: oklch(0.2876 0.0203 260.62);
21
+ --color-delete-button: oklch(0.2876 0.0203 260.62);
22
+ --color-disabled-button: oklch(0.2876 0.0203 260.62);
23
+
24
+ --color-primary: oklch(0.2876 0.0203 260.62);
25
+ }
26
+ @layer base {
27
+ [data-mode="light"] {
28
+ @apply bg-white text-black;
29
+ --color-primary-button: oklch(0.4462 0.1768 263.73);
30
+ --color-secondary-button: oklch(0.3946 0.0271 256.81);
31
+ --color-restore-button: oklch(0.3958 0.134172 142.6114);
32
+ --color-delete-button: oklch(0.4594 0.1885 29.23);
33
+ --color-disabled-button: oklch(0.4276 0 0);
34
+
35
+ --color-primary: oklch(1 0 0);
36
+ }
37
+ [data-mode="dark"] {
38
+ @apply bg-light-black text-white;
39
+ --color-primary-button: oklch(0.7769 0.0911 250.52);
40
+ --color-secondary-button: oklch(0.8188 0.0167 206.42);
41
+ --color-restore-button: oklch(0.757 0.193 143.64);
42
+ --color-delete-button: oklch(0.7978 0.1161 19.96);
43
+ --color-disabled-button: oklch(0.7826 0 0);
44
+
45
+ --color-primary: oklch(0.2221 0 0);
46
+ }
47
+ }
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
- {
1
+ {
2
2
  "name": "@eloisallena/web_components",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
+ "type": "module",
4
5
  "private": false,
5
6
  "files": [
6
7
  "dist"
7
8
  ],
8
- "main": "./dist/web-components.cjs.js",
9
- "module": "./dist/web-components.es.js",
9
+ "module": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./dist/web-components.es.js",
14
- "require": "./dist/web-components.cjs.js",
13
+ "import": "./dist/index.js",
15
14
  "types": "./dist/index.d.ts"
15
+ },
16
+ "./themes/tailwind.css": {
17
+ "style": "./dist/themes/tailwind.css",
18
+ "default": "./dist/themes/tailwind.css"
16
19
  }
17
20
  },
18
-
19
21
  "scripts": {
20
22
  "dev": "next dev",
21
- "build": "next build",
23
+ "build": "tsc -p tsconfig.build.json && node ./scripts/copy-styles.mjs",
24
+ "build:app": "next build",
22
25
  "start": "next start",
23
26
  "lint": "eslint",
24
27
  "storybook": "storybook dev -p 6006",
@@ -1,292 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`);l=c(l);var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;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]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),d=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}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){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;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)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!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))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[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}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}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.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
2
- let props = %s;
3
- <%s {...props} />
4
- React keys must be passed directly to JSX without using spread:
5
- let props = %s;
6
- <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),f=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=u():t.exports=d()}))(),p=()=>(0,f.jsx)(`span`,{className:`animate-spin rounded-full h-4 w-4 border-b-2 border-white`}),m=({variant:e=`primary`,label:t,isLoading:n=!1,disabled:r=!1,onClick:i})=>{let a={primary:`bg-primary-button text-primary`,secondary:`bg-secondary-button text-primary`,restore:`bg-restore-button text-primary`,delete:`bg-delete-button text-primary`,disabled:`bg-disabled-button text-primary`},o=n?(0,f.jsx)(p,{}):null,s=r||n;return(0,f.jsx)(`div`,{children:(0,f.jsxs)(`button`,{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
7
- ${s?`cursor-not-allowed opacity-50`:`hover:cursor-pointer`}`,disabled:s,onClick:i,children:[o,t]})})},h=({children:e})=>(0,f.jsx)(`div`,{className:`bg-primary w-full max-w-sm rounded-lg shadow-md overflow-hidden`,children:e}),g=({children:e})=>(0,f.jsx)(`footer`,{className:`\r
8
- w-full\r
9
- bg-gray\r
10
- text-white\r
11
- `,children:(0,f.jsx)(`div`,{className:`\r
12
- mx-auto\r
13
- max-w-7xl\r
14
- grid\r
15
- grid-cols-1\r
16
- gap-8\r
17
- px-6\r
18
- py-10\r
19
- md:grid-cols-3\r
20
- `,children:e})}),_=({children:e,description:t})=>(0,f.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[e,(0,f.jsx)(`p`,{className:`\r
21
- max-w-sm\r
22
- text-sm\r
23
- text-white\r
24
- `,children:t})]}),v=({copyright:e})=>(0,f.jsx)(`div`,{className:`\r
25
- bg-gray\r
26
- text-light-gray\r
27
- \r
28
- border-t\r
29
- border-gray\r
30
- \r
31
- py-4\r
32
- \r
33
- text-center\r
34
- text-sm\r
35
- `,children:e}),y=({email:e,phone:t,socials:n})=>(0,f.jsxs)(`div`,{className:`text-white`,children:[(0,f.jsx)(`h3`,{className:`\r
36
- mb-3\r
37
- text-lg\r
38
- font-semibold\r
39
- `,children:`Contact`}),(0,f.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,f.jsx)(`p`,{children:e}),(0,f.jsx)(`p`,{children:t})]}),(0,f.jsx)(`h4`,{className:`\r
40
- mt-5\r
41
- mb-2\r
42
- font-medium\r
43
- `,children:`Follow Us`}),(0,f.jsx)(`div`,{className:`flex flex-wrap gap-3`,children:n.map(e=>(0,f.jsx)(`a`,{href:e.href,className:`hover:underline`,children:e.label},e.id))})]}),b=({title:e,links:t,onItemClick:n})=>(0,f.jsxs)(`div`,{className:`text-white`,children:[(0,f.jsx)(`h3`,{className:`\r
44
- mb-3\r
45
- text-lg\r
46
- font-semibold\r
47
- `,children:e}),(0,f.jsx)(`div`,{className:`flex flex-col gap-2`,children:t.map(e=>(0,f.jsx)(`a`,{href:e.href,onClick:()=>n?.(e.label),className:`hover:underline`,children:e.label},e.id))})]}),x=({children:e})=>(0,f.jsx)(`form`,{className:`w-full max-w-sm`,children:(0,f.jsx)(`div`,{className:`flex flex-col gap-1 `,children:e})}),S=({children:e,style:t})=>(0,f.jsx)(`header`,{className:`w-full bg-white border-b border-light-gray shadow-sm ${t}`,children:(0,f.jsx)(`div`,{className:`flex items-center justify-between px-6 py-4`,children:e})}),C=({logo:e=`/logo.svg`,title:t=`my Company`,style:n,alt:r=``})=>(0,f.jsxs)(`div`,{className:`
48
- flex
49
- items-center
50
- gap-2
51
- sm:gap-3
52
- shrink-0
53
- ${n||``}
54
- `,children:[(0,f.jsx)(`img`,{src:e,alt:r,className:`\r
55
- h-8\r
56
- w-8\r
57
- sm:h-10\r
58
- sm:w-10\r
59
- object-contain\r
60
- `}),(0,f.jsx)(`h1`,{className:`\r
61
- text-sm\r
62
- sm:text-lg\r
63
- font-bold\r
64
- text-blue\r
65
- `,children:t})]}),w=({navDrawer:e=[],style:t,onItemClick:n})=>{let[r,i]=(0,l.useState)(!1);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`button`,{onClick:()=>i(!0),className:` flex md:hidden items-center justify-center h-10 w-10 rounded-md hover:bg-gray-100`,children:(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`\r
66
- h-6\r
67
- w-6\r
68
- text-gray-700\r
69
- `,children:(0,f.jsx)(`path`,{fillRule:`evenodd`,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`,clipRule:`evenodd`})})}),r&&(0,f.jsx)(`div`,{onClick:()=>i(!1),className:`fixed inset-0 z-40 bg-black/40 md:hidden`}),(0,f.jsxs)(`aside`,{className:`
70
- fixed top-0
71
- left-0 z-50
72
- h-screen w-65
73
- bg-white
74
- shadow-lg
75
- transition-transform duration-300
76
-
77
- ${r?`translate-x-0`:`-translate-x-full`}
78
-
79
- md:hidden
80
-
81
- ${t||``}
82
- `,children:[(0,f.jsxs)(`div`,{className:`\r
83
- flex\r
84
- items-center\r
85
- justify-between\r
86
- \r
87
- border-b\r
88
- border-light-gray\r
89
- \r
90
- px-5\r
91
- py-4\r
92
- `,children:[(0,f.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Menu`}),(0,f.jsx)(`button`,{onClick:()=>i(!1),className:`\r
93
- flex\r
94
- items-center\r
95
- justify-center\r
96
- \r
97
- h-10\r
98
- w-10\r
99
- \r
100
- rounded-md\r
101
- \r
102
- hover:bg-gray-100\r
103
- `,children:(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,className:`\r
104
- h-6\r
105
- w-6\r
106
- \r
107
- text-gray-700\r
108
- `,children:(0,f.jsx)(`path`,{fillRule:`evenodd`,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`,clipRule:`evenodd`})})})]}),(0,f.jsx)(`div`,{className:`flex flex-col p-4`,children:e.map(e=>(0,f.jsx)(`a`,{href:e.href||`#`,onClick:()=>{n?.(e.label),i(!1)},className:`\r
109
- rounded-md\r
110
- px-4\r
111
- py-3\r
112
- hover:bg-gray-100\r
113
- `,children:e.label},e.id))})]})]})},T=({isOpen:e,onClose:t,title:n,children:r})=>e?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`fixed inset-0 z-40 bg-black/40`,onClick:t}),(0,f.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,children:(0,f.jsxs)(`div`,{className:`w-full max-w-md bg-white shadow-lg`,role:`dialog`,"aria-modal":`true`,children:[(0,f.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-200 px-5 py-4`,children:[(0,f.jsx)(`h2`,{className:`text-lg font-semibold`,children:n}),(0,f.jsx)(`button`,{onClick:t,className:`flex h-10 w-10 items-center justify-center hover:bg-gray-100 rounded-md`,"aria-label":`Close modal`,children:(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,className:`h-5 w-5`,children:(0,f.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6 18L18 6M6 6l12 12`})})})]}),(0,f.jsx)(`div`,{className:`p-5`,children:r})]})})]}):null,E=({placeholder:e=`Search...`,style:t,children:n})=>{let[r,i]=(0,l.useState)(!1);return(0,f.jsxs)(`div`,{className:`relative ${t||``}`,children:[(0,f.jsxs)(`div`,{className:`hidden md:block relative`,children:[(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,className:`\r
114
- absolute\r
115
- left-3\r
116
- top-1/2\r
117
- h-4\r
118
- w-4\r
119
- -translate-y-1/2\r
120
- text-gray-400\r
121
- `,children:(0,f.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z`})}),(0,f.jsx)(`input`,{type:`text`,placeholder:e,className:`\r
122
- w-27.5\r
123
- sm:w-40\r
124
- md:w-50\r
125
- lg:w-60\r
126
- rounded-md\r
127
- border\r
128
- border-light-gray\r
129
- bg-white\r
130
- px-3\r
131
- py-2\r
132
- pl-9\r
133
- text-xs\r
134
- sm:text-sm\r
135
- focus:outline-none\r
136
- focus:ring-2\r
137
- focus:ring-blue\r
138
- `})]}),(0,f.jsx)(`button`,{onClick:()=>i(!0),className:`\r
139
- flex\r
140
- md:hidden\r
141
- items-center\r
142
- justify-center\r
143
- h-10\r
144
- w-10\r
145
- rounded-md\r
146
- hover:bg-gray-100\r
147
- `,children:(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,className:`\r
148
- h-6\r
149
- w-6\r
150
- text-gray-700\r
151
- `,children:(0,f.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z`})})}),(0,f.jsx)(T,{isOpen:r,title:`Search`,onClose:()=>i(!1),children:n||(0,f.jsxs)(`div`,{className:`relative`,children:[(0,f.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,className:`\r
152
- absolute\r
153
- left-3\r
154
- top-1/2\r
155
- h-4\r
156
- w-4\r
157
- -translate-y-1/2\r
158
- text-gray-400\r
159
- `,children:(0,f.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M21 21l-4.35-4.35m1.85-5.15a7 7 0 11-14 0 7 7 0 0114 0z`})}),(0,f.jsx)(`input`,{autoFocus:!0,type:`text`,placeholder:e,className:`\r
160
- w-full\r
161
- rounded-md\r
162
- border\r
163
- border-light-gray\r
164
- bg-white\r
165
- px-3\r
166
- py-2\r
167
- pl-9\r
168
- text-sm\r
169
- focus:outline-none\r
170
- focus:ring-2\r
171
- focus:ring-blue\r
172
- `})]})})]})},D=({navBar:e=[],style:t,onItemClick:n})=>(0,f.jsx)(`nav`,{className:`
173
- hidden
174
- md:flex
175
- gap-12
176
- justify-center
177
- items-center
178
- absolute
179
- left-1/2
180
- -translate-x-1/2
181
- ${t||``}
182
- `,children:e.map(e=>(0,f.jsx)(`a`,{href:e.href||`#`,onClick:()=>n?.(e.label),className:`\r
183
- text-lg\r
184
- font-bold\r
185
- text-black\r
186
- hover:text-green\r
187
- cursor-pointer\r
188
- `,children:e.label},e.id))}),O=`border-red`,k=`text-red`,A=`border-gray`,j=({id:e,labelText:t,placeholder:n,type:r,error:i,helperText:a})=>(0,f.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,f.jsx)(`label`,{htmlFor:e,className:`text-sm font-medium text-gray`,children:t}),(0,f.jsx)(`input`,{id:e,placeholder:n,type:r,className:`block w-full px-3 py-2.5 bg-neutral-secondary-medium border ${i?O:A} text-heading text-sm rounded-base shadow-xs placeholder:text-body focus:ring-brand focus:border-brand`}),a&&(0,f.jsx)(`p`,{className:`${i?k:`text-light-gray`} text-xs`,children:a})]}),M=({id:e,label:t,required:n,disabled:r,defaultChecked:i,error:a,helperText:o})=>{let[s,c]=(0,l.useState)(i||!1);return(0,f.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,f.jsx)(`input`,{id:e,type:`checkbox`,checked:s,onChange:e=>{let t=e.target.checked;c(t)},disabled:r,className:`
189
- w-4 h-4 border rounded-xs
190
- bg-neutral-secondary-medium
191
- focus:ring-2 focus:ring-brand-soft
192
- ${r?`border-light cursor-not-allowed`:`border-default-medium hover:cursor-pointer`}
193
- `}),(0,f.jsxs)(`label`,{htmlFor:e,className:`
194
- select-none ms-2 text-sm font-medium
195
- ${r?`text-fg-disabled text-light-gray`:`text-heading`}
196
- `,children:[t,` `,n&&(0,f.jsx)(`span`,{className:`text-red`,children:`*`})]})]}),(0,f.jsx)(`div`,{className:a?`text-red text-sm font-medium`:`text-gray text-sm font-medium`,children:o})]})},N=({label:e,options:t,required:n,disabled:r,helperText:i,error:a,value:o,onChange:s})=>(0,f.jsxs)(`div`,{className:`w-full flex flex-col gap-1`,children:[(0,f.jsxs)(`label`,{className:`text-sm font-medium text-gray`,children:[e,` `,n&&`*`]}),(0,f.jsx)(`select`,{className:`h-10 border-r-8 border-transparent px-4 outline outline-neutral-700 block w-full p-2 bg-neutral-secondary-medium
197
- border border-default-medium text-heading text-sm font-normal rounded-base focus:ring-brand focus:border-brand shadow-xs
198
- placeholder:text-body
199
- ${r?`cursor-not-allowed`:`hover:cursor-pointer`}`,disabled:r,onChange:e=>{s&&s(e.target.value)},value:o,children:t.map(e=>(0,f.jsx)(`option`,{value:e.name,children:e.value},e.key))}),i&&a&&(0,f.jsx)(`div`,{className:`text-red text-sm font-normal`,children:i})]}),P=({id:e,title:t,children:n,style:r})=>(0,f.jsx)(`section`,{id:e,className:`
200
- min-h-screen
201
- w-full
202
- px-6
203
- py-6
204
- scroll-mt-32
205
- md:px-10
206
- lg:px-16
207
-
208
- ${r||``}
209
- `,children:(0,f.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-10`,children:[t&&(0,f.jsx)(`h2`,{className:`\r
210
- text-3xl\r
211
- font-bold\r
212
- md:text-4xl\r
213
- `,children:t}),n]})}),F=({items:e})=>(0,f.jsx)(`nav`,{"aria-label":`Breadcrumb`,children:(0,f.jsx)(`ol`,{className:`\r
214
- flex\r
215
- flex-wrap\r
216
- items-center\r
217
- gap-2\r
218
- text-sm\r
219
- `,children:e.map((t,n)=>{let r=n===e.length-1;return(0,f.jsxs)(`li`,{className:`\r
220
- flex\r
221
- items-center\r
222
- gap-2\r
223
- `,children:[r?(0,f.jsx)(`span`,{className:`\r
224
- font-semibold\r
225
- text-gray-900\r
226
- `,children:t.label}):(0,f.jsx)(`a`,{href:t.href,className:`\r
227
- text-gray-600\r
228
- transition-colors\r
229
- hover:text-blue-600\r
230
- hover:underline\r
231
- `,children:t.label}),!r&&(0,f.jsx)(`span`,{className:`text-gray-400`,children:`>`})]},t.id)})})}),I=({children:e})=>{let[t,n]=l.default.useState(`Home`),r=[{id:1,href:`#home`,label:`Home`},{id:2,href:`#about`,label:`About`},{id:3,href:`#services`,label:`Services`},{id:4,href:`#contact`,label:`Contact`}];return(0,f.jsxs)(`div`,{className:`w-full scroll-smooth`,children:[(0,f.jsx)(`div`,{className:`sticky top-0 z-50 bg-white`,children:(0,f.jsxs)(S,{children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-4 lg:gap-10`,children:[(0,f.jsx)(C,{logo:`/icon.svg`,title:`QTEK`}),(0,f.jsx)(D,{navBar:r,onItemClick:n})]}),(0,f.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 sm:gap-3`,children:[(0,f.jsx)(E,{}),(0,f.jsx)(w,{navDrawer:r,onItemClick:n})]})]})}),(0,f.jsx)(`div`,{className:` \r
232
- mx-auto\r
233
- max-w-full\r
234
- px-6\r
235
- py-4\r
236
- sticky\r
237
- z-40\r
238
- top-16\r
239
- bg-light-gray`,children:(0,f.jsx)(F,{items:[{id:1,label:t,href:`#`}]})}),e,(0,f.jsxs)(g,{children:[(0,f.jsx)(_,{description:`Building modern and scalable digital solutions.`,children:(0,f.jsx)(`div`,{className:`scale-150 origin-left`,children:(0,f.jsx)(C,{logo:`/icon.svg`,title:`QTEK`})})}),(0,f.jsx)(b,{title:`Quick Links`,links:r,onItemClick:n}),(0,f.jsx)(y,{email:`hello@qtek.com`,phone:`+63 900 000 0000`,socials:[{id:1,label:`Facebook`,href:`#`},{id:2,label:`LinkedIn`,href:`#`},{id:3,label:`GitHub`,href:`#`}]}),(0,f.jsx)(v,{copyright:`© 2026 QTEK. All rights reserved.`})]})]})},L=({children:e,style:t,maxRows:n=5})=>(0,f.jsx)(`div`,{className:`
240
- w-full
241
- overflow-hidden
242
- rounded-md
243
- bg-white
244
- shadow-lg
245
- ${t||``}
246
- `,children:(0,f.jsx)(`div`,{className:`overflow-auto`,style:{maxHeight:`${n*56}px`},children:(0,f.jsx)(`table`,{className:`w-full border-separate border-spacing-0`,children:e})})}),R={left:`text-left`,center:`text-center`,right:`text-right`},z=({rowData:e})=>(0,f.jsx)(`thead`,{children:(0,f.jsx)(`tr`,{className:`\r
247
- sticky\r
248
- top-0\r
249
- z-10\r
250
- bg-white\r
251
- `,children:e.map(e=>(0,f.jsx)(`th`,{className:`
252
- px-3 sm:px-4 md:px-6
253
- py-2 md:py-4
254
- text-xs sm:text-sm
255
- text-gray
256
- font-semibold
257
-
258
- border-b
259
- border-light-gray
260
- ${R[e.align||`left`]}
261
- ${e.style||``}
262
- `,children:e.value},e.key))})}),B=({children:e,style:t})=>(0,f.jsx)(`tbody`,{className:t,children:e}),V=({rowData:e,style:t})=>(0,f.jsx)(`tr`,{className:`
263
-
264
- transition-colors
265
- hover:bg-gray-50
266
- [&:last-child_td]:border-b-0
267
-
268
-
269
- ${t||``}
270
- `,children:e.map(e=>(0,f.jsx)(`td`,{className:`
271
- px-3 sm:px-4 md:px-6
272
- py-2 md:py-4
273
- text-xs sm:text-sm
274
- text-gray
275
- whitespace-nowrap
276
-
277
- border-b
278
- border-light-gray
279
-
280
-
281
-
282
- ${R[e.align||`left`]}
283
- ${e.style||``}
284
- `,children:e.value},e.key))}),H=({children:e,align:t=`left`,style:n})=>(0,f.jsx)(`td`,{className:`
285
- px-4
286
- py-3
287
- text-sm
288
- ${t===`center`?`text-center`:``}
289
- ${t===`right`?`text-right`:``}
290
- ${t===`left`?`text-left`:``}
291
- ${n||``}
292
- `,children:e});exports.Breadcrumbs=F,exports.Button=m,exports.Card=h,exports.Cfooter=g,exports.Cform=x,exports.Cheader=S,exports.CheckBox=M,exports.Ctable=L,exports.Drawer=w,exports.FooterBottom=v,exports.FooterContact=y,exports.FooterIcon=_,exports.Icon=C,exports.LandingLayout=I,exports.Loader=p,exports.Modal=T,exports.NavBar=D,exports.QuickLink=b,exports.SearchBar=E,exports.Section=P,exports.Select=N,exports.TableBody=B,exports.TableCell=H,exports.TableHead=z,exports.TableRow=V,exports.TextField=j;