@eloisallena/web_components 1.0.8 → 1.0.10

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.
@@ -4,5 +4,6 @@ export interface ButtonProps {
4
4
  isLoading?: boolean;
5
5
  disabled?: boolean;
6
6
  onClick?: () => void;
7
+ style?: string;
7
8
  }
8
9
  export declare const Button: React.FC<ButtonProps>;
File without changes
@@ -1,11 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export interface DrawerProps {
3
- navDrawer: {
4
- id: number;
5
- href: string;
6
- label: string;
7
- }[];
8
- style?: string;
9
- onItemClick?: (label: string) => void;
2
+ import { NavItem, NavigationProps } from './types';
3
+ export interface DrawerProps extends NavigationProps {
4
+ navDrawer: NavItem[];
10
5
  }
11
6
  export declare const Drawer: React.FC<DrawerProps>;
@@ -1,11 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export interface NavBarProps {
3
- navBar: {
4
- id: number;
5
- href: string;
6
- label: string;
7
- }[];
8
- style?: string;
9
- onItemClick?: (label: string) => void;
2
+ import { NavItem, NavigationProps } from './types';
3
+ export interface NavBarProps extends NavigationProps {
4
+ navBar: NavItem[];
10
5
  }
11
6
  export declare const NavBar: React.FC<NavBarProps>;
@@ -8,3 +8,4 @@ export { NavBar } from './NavBar';
8
8
  export type { NavBarProps } from './NavBar';
9
9
  export { SearchBar } from './SearchBar';
10
10
  export type { SearchBarProps } from './SearchBar';
11
+ export type { NavItem, NavigationProps } from './types';
@@ -0,0 +1,9 @@
1
+ export interface NavItem {
2
+ id: number;
3
+ href: string;
4
+ label: string;
5
+ }
6
+ export interface NavigationProps {
7
+ style?: string;
8
+ onItemClick?: (label: string) => void;
9
+ }
@@ -1,5 +1,12 @@
1
1
  import { default as React } from 'react';
2
+ import { NavItem } from '../header';
2
3
  export interface LandingLayoutProps {
3
4
  children: React.ReactNode;
5
+ navItems: NavItem[];
6
+ logo?: string;
7
+ companyTitle?: string;
8
+ description?: string;
9
+ email?: string;
10
+ phone?: string;
4
11
  }
5
12
  export declare const LandingLayout: React.FC<LandingLayoutProps>;
@@ -3,8 +3,8 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
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
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,style:a})=>{let o={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`},s=n?(0,f.jsx)(p,{}):null,c=r||n;return(0,f.jsx)(`div`,{children:(0,f.jsxs)(`button`,{className:`${o[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
+ ${c?`cursor-not-allowed opacity-50`:`hover:cursor-pointer`} ${a||``}`,disabled:c,onClick:i,children:[s,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
8
  w-full\r
9
9
  bg-gray\r
10
10
  text-white\r
@@ -211,7 +211,7 @@ React keys must be passed directly to JSX without using spread:
211
211
  transition-colors\r
212
212
  hover:text-blue-600\r
213
213
  hover:underline\r
214
- `,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)(w,{logo:`/icon.svg`,title:`QTEK`}),(0,f.jsx)(T,{navBar:r,onItemClick:n})]}),(0,f.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 sm:gap-3`,children:[(0,f.jsx)(D,{}),(0,f.jsx)(C,{navDrawer:r,onItemClick:n})]})]})}),(0,f.jsx)(`div`,{className:` \r
214
+ `,children:t.label}),!r&&(0,f.jsx)(`span`,{className:`text-gray-400`,children:`>`})]},t.id)})})}),I=({children:e,navItems:t,logo:n,companyTitle:r,description:i=``,email:a=``,phone:o=``})=>{let[s,c]=l.default.useState(t[0]?.label||`Home`);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)(w,{logo:n||``,title:r||`Company Name`}),(0,f.jsx)(T,{navBar:t,onItemClick:c})]}),(0,f.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 sm:gap-3`,children:[(0,f.jsx)(D,{}),(0,f.jsx)(C,{navDrawer:t,onItemClick:c})]})]})}),(0,f.jsx)(`div`,{className:` \r
215
215
  mx-auto\r
216
216
  max-w-full\r
217
217
  px-6\r
@@ -219,7 +219,7 @@ React keys must be passed directly to JSX without using spread:
219
219
  sticky\r
220
220
  z-40\r
221
221
  top-16\r
222
- bg-light-gray`,children:(0,f.jsx)(F,{items:[{id:1,label:t,href:`#`}]})}),e,(0,f.jsxs)(g,{children:[(0,f.jsx)(y,{description:`Building modern and scalable digital solutions.`,children:(0,f.jsx)(`div`,{className:`scale-150 origin-left`,children:(0,f.jsx)(w,{logo:`/icon.svg`,title:`QTEK`})})}),(0,f.jsx)(b,{title:`Quick Links`,links:r,onItemClick:n}),(0,f.jsx)(v,{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)(_,{copyright:`© 2026 QTEK. All rights reserved.`})]})]})},L=({children:e,style:t,maxRows:n=5})=>(0,f.jsx)(`div`,{className:`
222
+ bg-light-gray`,children:(0,f.jsx)(F,{items:[{id:1,label:s,href:`#`}]})}),e,(0,f.jsxs)(g,{children:[(0,f.jsx)(y,{description:i,children:(0,f.jsx)(`div`,{className:`scale-150 origin-left`,children:(0,f.jsx)(w,{logo:n||``,title:r||`Company Name`})})}),(0,f.jsx)(b,{title:`Quick Links`,links:t,onItemClick:c}),(0,f.jsx)(v,{email:a,phone:o,socials:[{id:1,label:`Facebook`,href:`#`},{id:2,label:`LinkedIn`,href:`#`},{id:3,label:`GitHub`,href:`#`}]}),(0,f.jsx)(_,{copyright:`© 2026 QTEK. All rights reserved.`})]})]})},L=({children:e,style:t,maxRows:n=5})=>(0,f.jsx)(`div`,{className:`
223
223
  w-full
224
224
  overflow-hidden
225
225
  rounded-md
@@ -178,20 +178,20 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
178
178
  })();
179
179
  })), o = (/* @__PURE__ */ n(((e, t) => {
180
180
  process.env.NODE_ENV === "production" ? t.exports = i() : t.exports = a();
181
- })))(), s = () => /* @__PURE__ */ (0, o.jsx)("span", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-white" }), c = ({ variant: e = "primary", label: t, isLoading: n = !1, disabled: r = !1, onClick: i }) => {
182
- let a = {
181
+ })))(), s = () => /* @__PURE__ */ (0, o.jsx)("span", { className: "animate-spin rounded-full h-4 w-4 border-b-2 border-white" }), c = ({ variant: e = "primary", label: t, isLoading: n = !1, disabled: r = !1, onClick: i, style: a }) => {
182
+ let c = {
183
183
  primary: "bg-primary-button text-primary",
184
184
  secondary: "bg-secondary-button text-primary",
185
185
  restore: "bg-restore-button text-primary",
186
186
  delete: "bg-delete-button text-primary",
187
187
  disabled: "bg-disabled-button text-primary"
188
- }, c = n ? /* @__PURE__ */ (0, o.jsx)(s, {}) : null, l = r || n;
188
+ }, l = n ? /* @__PURE__ */ (0, o.jsx)(s, {}) : null, u = r || n;
189
189
  return /* @__PURE__ */ (0, o.jsx)("div", { children: /* @__PURE__ */ (0, o.jsxs)("button", {
190
- className: `${a[e]} flex items-center gap-3 px-4 py-2 rounded-2xl text-sm font-medium w-full justify-center md:w-70 lg:w-25
191
- ${l ? "cursor-not-allowed opacity-50" : "hover:cursor-pointer"}`,
192
- disabled: l,
190
+ className: `${c[e]} flex items-center gap-3 px-4 py-2 rounded-2xl text-sm font-medium w-full justify-center md:w-70 lg:w-25
191
+ ${u ? "cursor-not-allowed opacity-50" : "hover:cursor-pointer"} ${a || ""}`,
192
+ disabled: u,
193
193
  onClick: i,
194
- children: [c, t]
194
+ children: [l, t]
195
195
  }) });
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",
@@ -595,29 +595,8 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
595
595
  }, t.id);
596
596
  })
597
597
  })
598
- }), A = ({ children: t }) => {
599
- let [n, r] = e.useState("Home"), i = [
600
- {
601
- id: 1,
602
- href: "#home",
603
- label: "Home"
604
- },
605
- {
606
- id: 2,
607
- href: "#about",
608
- label: "About"
609
- },
610
- {
611
- id: 3,
612
- href: "#services",
613
- label: "Services"
614
- },
615
- {
616
- id: 4,
617
- href: "#contact",
618
- label: "Contact"
619
- }
620
- ];
598
+ }), A = ({ children: t, navItems: n, logo: r, companyTitle: i, description: a = "", email: s = "", phone: c = "" }) => {
599
+ let [l, h] = e.useState(n[0]?.label || "Home");
621
600
  return /* @__PURE__ */ (0, o.jsxs)("div", {
622
601
  className: "w-full scroll-smooth",
623
602
  children: [
@@ -626,17 +605,17 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
626
605
  children: /* @__PURE__ */ (0, o.jsxs)(g, { children: [/* @__PURE__ */ (0, o.jsxs)("div", {
627
606
  className: "flex items-center gap-4 lg:gap-10",
628
607
  children: [/* @__PURE__ */ (0, o.jsx)(v, {
629
- logo: "/icon.svg",
630
- title: "QTEK"
608
+ logo: r || "",
609
+ title: i || "Company Name"
631
610
  }), /* @__PURE__ */ (0, o.jsx)(y, {
632
- navBar: i,
633
- onItemClick: r
611
+ navBar: n,
612
+ onItemClick: h
634
613
  })]
635
614
  }), /* @__PURE__ */ (0, o.jsxs)("div", {
636
615
  className: "flex shrink-0 items-center gap-2 sm:gap-3",
637
616
  children: [/* @__PURE__ */ (0, o.jsx)(x, {}), /* @__PURE__ */ (0, o.jsx)(_, {
638
- navDrawer: i,
639
- onItemClick: r
617
+ navDrawer: n,
618
+ onItemClick: h
640
619
  })]
641
620
  })] })
642
621
  }),
@@ -644,30 +623,30 @@ var n = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
644
623
  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",
645
624
  children: /* @__PURE__ */ (0, o.jsx)(k, { items: [{
646
625
  id: 1,
647
- label: n,
626
+ label: l,
648
627
  href: "#"
649
628
  }] })
650
629
  }),
651
630
  t,
652
631
  /* @__PURE__ */ (0, o.jsxs)(u, { children: [
653
632
  /* @__PURE__ */ (0, o.jsx)(p, {
654
- description: "Building modern and scalable digital solutions.",
633
+ description: a,
655
634
  children: /* @__PURE__ */ (0, o.jsx)("div", {
656
635
  className: "scale-150 origin-left",
657
636
  children: /* @__PURE__ */ (0, o.jsx)(v, {
658
- logo: "/icon.svg",
659
- title: "QTEK"
637
+ logo: r || "",
638
+ title: i || "Company Name"
660
639
  })
661
640
  })
662
641
  }),
663
642
  /* @__PURE__ */ (0, o.jsx)(m, {
664
643
  title: "Quick Links",
665
- links: i,
666
- onItemClick: r
644
+ links: n,
645
+ onItemClick: h
667
646
  }),
668
647
  /* @__PURE__ */ (0, o.jsx)(f, {
669
- email: "hello@qtek.com",
670
- phone: "+63 900 000 0000",
648
+ email: s,
649
+ phone: c,
671
650
  socials: [
672
651
  {
673
652
  id: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloisallena/web_components",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist"
@@ -1 +0,0 @@
1
- export {};