@riligar/components-kit 1.2.1 → 1.3.0

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.esm.js CHANGED
@@ -716,7 +716,7 @@ function pe({
716
716
  h: "100%",
717
717
  p: { base: "xl", md: 40 },
718
718
  radius: "0",
719
- bg,
719
+ bg: b(g),
720
720
  bd: "1px solid var(--mantine-color-gray-2)",
721
721
  display: "flex",
722
722
  style: {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("@mantine/core"),require("react/jsx-runtime"),require("@mantine/hooks"),require("@tabler/icons-react"),require("react")):typeof define=="function"&&define.amd?define(["exports","@mantine/core","react/jsx-runtime","@mantine/hooks","@tabler/icons-react","react"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.RiligarComponentsKit={},o.MantineCore,o.jsxRuntime,o.MantineHooks,o.TablerIcons,o.React))})(this,(function(o,e,r,N,b,u){"use strict";const L=e.createTheme({fontFamily:'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',headings:{fontFamily:'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontWeight:"900"},colors:{gray:["#FFFFFF","#F9FAFB","#F3F4F6","#E5E7EB","#9CA3AF","#6B7280","#4B5563","#374151","#1F2937","#11181C"]},primaryColor:"gray",primaryShade:9,autoContrast:!0,defaultRadius:"0",components:{Container:{defaultProps:{size:"xl",px:"md"}},Paper:{defaultProps:{withBorder:!0,shadow:"none",radius:"0",bg:"white"}},Card:{defaultProps:{withBorder:!1,shadow:"none",radius:"0",padding:"xl",bg:"transparent"}},Button:{defaultProps:{size:"md",fw:800,radius:"0",variant:"filled",color:"gray.9"},styles:{root:{textTransform:"uppercase",letterSpacing:"1px"}}},TextInput:{defaultProps:{size:"lg",radius:"0",variant:"unstyled"},styles:{input:{borderBottom:"1px solid var(--mantine-color-gray-2)",paddingLeft:0,paddingRight:0}}},Title:{defaultProps:{lh:1.1,c:"gray.9",ls:"-0.04em"}},Text:{defaultProps:{lh:1.6,c:"gray.9",size:"md"}},Badge:{defaultProps:{variant:"dot",color:"gray",radius:"0",size:"sm"},styles:{root:{textTransform:"uppercase",letterSpacing:"1.5px",fontWeight:800}}},ThemeIcon:{defaultProps:{variant:"light",color:"gray",radius:"0",size:"lg"}},Divider:{defaultProps:{color:"gray.2"}}}});function F({subtitle:a,title:n,titleOrder:i=2,titleFz:l="var(--fz-section-title)",ta:s="left",maw:t}){return!n&&!a?null:r.jsxs(e.Stack,{gap:"xs",align:s==="center"?"center":"flex-start",ta:s,children:[a&&r.jsx(e.Text,{c:"gray.4",size:"xs",fw:800,tt:"uppercase",ls:"1.5px",children:a}),n&&r.jsx(e.Title,{order:i,fz:l,maw:t,children:n})]})}function I({video:a,image:n,width:i="100%",alt:l}){return a?r.jsx(e.Center,{children:r.jsx(e.Box,{component:"video",src:a.src,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,"aria-label":l||"Demonstração em vídeo",w:a.width||i,h:"auto",style:{filter:a.filter||"none"}})}):n?r.jsx(e.Center,{children:r.jsx(e.Box,{component:"img",src:n,alt:l||"",w:i,h:"auto"})}):null}function z({label:a,href:n,onClick:i,icon:l,size:s="lg",variant:t="filled",color:h,target:c,px:p,fullWidth:d,leftSection:g,...y}){return r.jsx(e.Button,{size:s,component:n?"a":"button",href:n,onClick:i,target:c,rightSection:l,leftSection:g,variant:t,color:h,px:p,fullWidth:d,...y,children:a})}const P={white:"white",gray:"gray.0"},f=a=>P[a]||P.white;function x({children:a,title:n,subtitle:i,id:l,background:s="white",py:t={base:80,md:120},maw:h=800,ta:c="left",stackGap:p="xl"}){const d=f(s);return r.jsx(e.Box,{component:"section",id:l,bg:d,py:t,style:{overflow:"hidden"},children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.Stack,{gap:p,children:[r.jsx(F,{subtitle:i,title:n,ta:c,maw:h}),r.jsx(e.Box,{children:a})]})})})}function C({logo:a,navLinks:n=[],loginCta:i,signupCta:l,background:s="white"}){const t=f(s),[h]=N.useWindowScroll(),c=h.y>10,p=g=>{g==="top"?window.scrollTo({top:0,behavior:"smooth"}):document.getElementById(g)?.scrollIntoView({behavior:"smooth"})},d=(g,y)=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p(y))};return r.jsx(e.Box,{component:"header",pos:"sticky",top:0,w:"100%",style:{zIndex:100,pointerEvents:"none"},children:r.jsx(e.Container,{size:"xl",py:"md",children:r.jsx(e.Paper,{shadow:c?"sm":"none",radius:"0",p:"xs",bg:t,bd:c?"1px solid var(--mantine-color-gray-2)":"1px solid transparent",style:{pointerEvents:"auto",transition:"all 0.2s ease"},children:r.jsxs(e.Group,{justify:"space-between",align:"center",px:{base:"xs",sm:"md"},children:[a&&r.jsx("a",{href:"#","aria-label":"Voltar ao topo",onClick:g=>{g.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})},style:{display:"inline-flex"},children:r.jsx("img",{src:a.src,alt:a.alt||"",height:a.height||32,style:{objectFit:"contain"}})}),n.length>0&&r.jsx(e.Group,{gap:"xl",visibleFrom:"sm",component:"nav",role:"navigation","aria-label":"Menu principal",children:n.map(g=>r.jsx(e.Text,{size:"sm",fw:900,tt:"uppercase",ls:"1px",c:"dark",role:"link",tabIndex:0,style:{cursor:"pointer"},onClick:()=>p(g.target),onKeyDown:y=>d(y,g.target),children:g.label},g.label))}),r.jsxs(e.Group,{gap:"sm",children:[i&&r.jsx(e.Button,{variant:"subtle",component:i.href?"a":"button",href:i.href,onClick:i.onClick,c:"gray.7",size:"sm",radius:"0",visibleFrom:"xs",fw:900,children:i.label}),l&&r.jsxs(e.Button,{component:l.href?"a":"button",href:l.href,onClick:l.onClick,size:"sm",radius:"0",color:"dark",variant:"filled",children:[r.jsx(e.Text,{span:!0,visibleFrom:"sm",c:"white",fw:900,size:"sm",children:l.label}),r.jsx(e.Text,{span:!0,hiddenFrom:"sm",c:"white",fw:900,size:"xs",children:l.labelMobile||l.label})]})]})]})})})})}const O=C;function W({subtitle:a,title:n,description:i,cta:l,video:s,image:t,background:h="white"}){const c=f(h);return r.jsx(e.Box,{py:{base:80,sm:100,md:140},id:"hero",bg:c,children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:{base:60,md:100},verticalSpacing:60,children:[r.jsxs(e.Stack,{align:{base:"center",md:"flex-start"},justify:"center",gap:{base:32,md:48},ta:{base:"center",md:"left"},children:[r.jsx(F,{subtitle:a,title:n,titleOrder:1,titleFz:"var(--fz-hero)",ta:"inherit"}),i&&r.jsx(e.Center,{children:r.jsx(e.Text,{size:"xl",c:"gray.6",lh:1.6,maw:600,children:i})}),l&&r.jsx(e.Center,{children:r.jsx(e.Group,{gap:"md",justify:{base:"center",md:"flex-start"},children:r.jsx(z,{label:l.label,href:l.href,icon:l.icon,size:l.size||"xl",px:l.px||48,variant:l.variant,color:l.color})})})]}),r.jsx(I,{video:s,image:t,alt:"Demonstração do produto"})]})})})}function K({logo:a,index:n}){const i={src:a.src,alt:a.alt||`Logo ${n}`,h:a.height||50,w:"auto",style:{filter:"grayscale(1) opacity(0.4)",transition:"filter 0.3s ease, opacity 0.3s ease",...a.style},onMouseEnter:l=>{l.currentTarget.style.filter="grayscale(0) opacity(0.8)"},onMouseLeave:l=>{l.currentTarget.style.filter="grayscale(1) opacity(0.4)"}};return a.url?r.jsx(e.Center,{children:r.jsx("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:r.jsx(e.Image,{...i})})}):r.jsx(e.Center,{children:r.jsx(e.Image,{...i})})}function V({id:a,title:n,logos:i,background:l="gray"}){const s=f(l);return!i||i.length===0?null:r.jsx(e.Box,{component:"section",id:a,py:{base:40,md:60},bg:s,bd:{bottom:"1px solid var(--mantine-color-gray-1)"},children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.Stack,{align:"center",ta:"center",gap:"xl",children:[n&&r.jsx(e.Text,{fw:500,c:"gray.5",size:"sm",tt:"uppercase",ls:"0.1em",children:n}),r.jsx(e.Group,{justify:"space-between",gap:{base:40,md:80},style:{rowGap:40},w:"100%",children:i.map((t,h)=>r.jsx(K,{logo:t,index:h},h))})]})})})}function q({id:a,subtitle:n,title:i,description:l,featuresList:s,cta:t,video:h,image:c,reverse:p=!1,background:d="white"}){const g=s&&s.length>0&&r.jsx(e.List,{spacing:"md",size:"md",center:!0,icon:r.jsx(e.ThemeIcon,{color:"gray.2",size:24,radius:"0",children:r.jsx(b.IconCheck,{size:14,color:"var(--mantine-color-gray-9)"})}),children:s.map((S,v)=>r.jsx(e.List.Item,{children:S},v))}),y=r.jsxs(e.Stack,{justify:"center",gap:"lg",children:[l&&r.jsx(e.Text,{c:"gray.6",size:"xl",lh:1.6,children:l}),g,t&&r.jsx(e.Group,{mt:"md",children:r.jsx(z,{label:t.label,href:t.href,icon:t.icon,size:t.size||"lg",variant:t.variant,color:t.color})})]}),w=(h||c)&&r.jsx(I,{video:h,image:c,width:"80%"});return r.jsx(x,{id:a,subtitle:n,title:i,background:d,children:r.jsx(e.SimpleGrid,{cols:{base:1,md:2},spacing:{base:40,md:80},verticalSpacing:{base:40,md:50},children:p?r.jsxs(r.Fragment,{children:[w,y]}):r.jsxs(r.Fragment,{children:[y,w]})})})}function U({id:a,subtitle:n,title:i,background:l="gray",items:s=[]}){return f(l),r.jsx(x,{id:a,subtitle:n,title:i,background:l,children:r.jsx(e.Grid,{gutter:"lg",children:s.map((t,h)=>r.jsx(_,{...t},h))})})}function _({icon:a,iconVariant:n,iconColor:i,label:l,title:s,titleSize:t,description:h,descriptionSize:c,descriptionMaw:p,span:d={base:12,md:6},background:g="white",dark:y=!1,visual:w,secondaryVisual:S,layout:v="stacked",badges:B,codeBlock:M,decorativeContent:E,style:G,...k}){const rr=y?"white":void 0,er=y?"gray.4":"gray.6",lr="gray.5",ar=n||(y?"filled":"light"),sr=i||(y?"gray.7":"gray"),ir=t||(v==="compact"?"h4":"h3"),nr=c||(v==="compact"?"sm":"lg"),m=r.jsxs(e.Box,{children:[a&&r.jsx(e.ThemeIcon,{size:48,radius:"0",variant:ar,color:sr,mb:"lg",style:y?{color:"white"}:void 0,children:r.jsx(a,{size:24,stroke:1.5})}),l&&r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:lr,mb:"xs",children:l}),s&&r.jsx(e.Text,{fz:ir,fw:900,lh:1.2,mb:"sm",c:rr,children:s}),h&&r.jsx(e.Text,{c:er,size:nr,maw:p,mb:B?"xl":v==="compact"?"lg":void 0,children:h}),B&&B.length>0&&r.jsx(e.Group,{children:B.map((tr,dr)=>r.jsx(e.Badge,{variant:"dot",color:"gray",radius:"0",children:tr},dr))})]}),T=w?A(w,y):null,H=S?A(S,y):null;return v==="split"?r.jsx(e.Grid.Col,{span:d,children:r.jsx(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",style:G,...k,children:r.jsxs(e.Grid,{align:"center",gutter:"xl",children:[r.jsx(e.Grid.Col,{span:{base:12,sm:6},children:m}),r.jsxs(e.Grid.Col,{span:{base:12,sm:6},children:[T,M&&r.jsx(e.Code,{block:!0,color:"gray.0",c:"gray.7",style:{fontSize:12,lineHeight:1.4,borderRadius:0},children:M})]})]})})}):v==="compact"?r.jsx(e.Grid.Col,{span:d,children:r.jsxs(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",style:G,...k,children:[m,T]})}):E?r.jsx(e.Grid.Col,{span:d,children:r.jsx(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",pos:"relative",style:G,...k,children:r.jsxs(e.Grid,{gutter:0,pos:"relative",children:[r.jsx(e.Grid.Col,{span:{base:12,sm:7},style:{zIndex:1},children:m}),r.jsx(e.Grid.Col,{span:5,visibleFrom:"sm",children:E})]})})}):r.jsx(e.Grid.Col,{span:d,children:r.jsxs(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg,bd:"1px solid var(--mantine-color-gray-2)",display:"flex",style:{flexDirection:"column",justifyContent:"space-between",...G},...k,children:[m,T&&H?r.jsxs(e.Group,{gap:40,align:"center",children:[T,H]}):T]})})}function A(a,n){if(!a)return null;switch(a.type){case"ring":return r.jsx(e.RingProgress,{size:a.size||140,thickness:a.thickness||12,sections:[{value:a.value||100,color:"gray.9"}],label:r.jsx(e.Center,{children:r.jsxs(e.Stack,{gap:0,align:"center",children:[r.jsx(e.Text,{fw:900,size:"xl",lh:1,children:a.label}),a.sublabel&&r.jsx(e.Text,{size:"xs",c:"gray.5",fw:700,children:a.sublabel})]})})});case"metric":return r.jsxs(e.Stack,{gap:0,children:[r.jsx(e.Text,{fw:900,fz:32,c:"gray.9",lh:1,children:a.value}),r.jsx(e.Text,{size:"sm",c:"gray.5",mt:4,children:a.label}),a.badge&&r.jsx(e.Badge,{mt:"md",color:"gray",variant:"dot",radius:"0",children:a.badge})]});case"bars":return r.jsx(e.Group,{align:"flex-end",gap:8,h:a.height||100,preventGrowOverflow:!1,children:(a.data||[]).map((i,l)=>r.jsx(e.Box,{w:20,h:`${i}%`,bg:l===a.highlight?"gray.9":"gray.2",radius:"0"},l))});case"typography":return r.jsx(e.Center,{h:a.height||160,bg:n?"gray.8":"gray.1",radius:"0",children:r.jsx(e.Text,{fz:a.fontSize||100,fw:900,c:n?"gray.6":"gray.3",style:{letterSpacing:-6},children:a.text||"Aa"})});case"icon-large":{const i=a.icon;return i?r.jsx(i,{size:a.size||64,stroke:a.stroke||1,color:a.color||"var(--mantine-color-gray-2)"}):null}default:return null}}function Q({id:a,subtitle:n,title:i,traditionalCol:l,newCol:s,background:t="white"}){return r.jsx(x,{id:a,subtitle:n,title:i,background:t,children:r.jsx(e.Paper,{radius:"0",bd:"1px solid var(--mantine-color-gray-2)",style:{overflow:"hidden"},children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:0,children:[r.jsx(e.Box,{bg:f("gray"),p:{base:30,md:60},children:r.jsxs(e.Stack,{gap:"xl",children:[r.jsxs(e.Box,{children:[r.jsx(e.Text,{fw:900,fz:"h2",c:"gray.9",mb:4,children:l.title}),r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.5",children:l.subtitle})]}),r.jsx(e.Stack,{gap:"md",mb:40,children:l.items.map((h,c)=>r.jsxs(u.Fragment,{children:[r.jsxs(e.Group,{justify:"space-between",children:[r.jsx(e.Text,{size:"sm",c:"gray.6",children:h.label}),r.jsx(e.Text,{fw:700,c:"gray.9",children:h.value})]}),c<l.items.length-1&&r.jsx(e.Divider,{color:"var(--mantine-color-gray-2)"})]},c))}),r.jsxs(e.Box,{bg:f("white"),p:"lg",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:[r.jsxs(e.Group,{justify:"space-between",children:[r.jsx(e.Text,{fw:900,c:"gray.7",children:l.totalLabel||"Total Estimado"}),r.jsx(e.Text,{fw:900,fz:32,c:"gray.9",children:l.totalValue})]}),l.footerText&&r.jsx(e.Text,{size:"xs",c:"red.6",ta:"right",mt:4,children:l.footerText})]})]})}),r.jsx(e.Box,{bg:f("white"),p:{base:30,md:60},pos:"relative",children:r.jsxs(e.Stack,{gap:"xl",h:"100%",children:[r.jsxs(e.Box,{children:[r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.Text,{fw:900,fz:"h2",c:"gray.9",mb:4,children:s.title}),s.badge&&r.jsx(e.Badge,{color:"gray.9",variant:"filled",radius:"0",children:s.badge})]}),r.jsx(e.Text,{size:"sm",c:"gray.6",children:s.description})]}),r.jsx(e.List,{spacing:"md",size:"md",c:"gray.6",icon:r.jsx(e.ThemeIcon,{color:"gray.0",size:20,radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:r.jsx(b.IconCheck,{size:12,color:"var(--mantine-color-gray-9)"})}),children:s.items.map((h,c)=>r.jsx(e.List.Item,{children:h},c))}),s.pricingBox&&r.jsx(e.Box,{bg:f("gray"),p:"lg",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:r.jsxs(e.Stack,{gap:4,children:[r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.5",children:s.pricingBox.label}),r.jsx(e.Text,{fw:900,fz:48,c:"gray.9",lh:1,children:s.pricingBox.price}),s.pricingBox.subtext&&r.jsx(e.Text,{size:"xs",c:"gray.5",mt:"sm",children:s.pricingBox.subtext})]})}),s.cta&&r.jsx(e.Box,{mt:"xl",children:r.jsx(z,{label:s.cta.label,href:s.cta.href,icon:s.cta.icon,size:s.cta.size||"lg",color:s.cta.color||"gray.9",fullWidth:!0})})]})})]})})})}function $({id:a,subtitle:n,title:i,billingOptions:l=[{label:"Mensal",value:"monthly"},{label:"Anual",value:"annual"}],billing:s,setBilling:t,promoBadge:h,plans:c,background:p="white"}){return r.jsxs(x,{id:a,subtitle:n,title:i,ta:"center",background:p,children:[l&&l.length>0&&r.jsx(e.Stack,{align:"center",gap:"xl",mb:80,children:r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.SegmentedControl,{value:s,onChange:t,radius:"0",size:"md",data:l,color:"gray.9",bg:"white",style:{border:"1px solid var(--mantine-color-gray-2)"}}),s==="annual"&&h&&r.jsx(e.Badge,{variant:"filled",color:"gray.9",radius:"0",size:"lg",children:h})]})}),r.jsx(e.SimpleGrid,{cols:{base:1,md:c.length<=3?c.length:3},spacing:"xl",verticalSpacing:"xl",children:c.map(d=>r.jsxs(e.Paper,{p:"xl",radius:"0",withBorder:!0,bd:d.highlight?"2px solid var(--mantine-color-gray-9)":"1px solid var(--mantine-color-gray-2)",display:"flex",h:"100%",style:{flexDirection:"column"},bg:"white",children:[r.jsxs(e.Stack,{gap:"md",mb:"xl",children:[r.jsxs(e.Group,{justify:"space-between",align:"center",children:[r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.4",children:d.name}),d.highlight&&r.jsx(e.Badge,{variant:"dot",color:"gray.9",children:d.highlightBadge||"RECOMENDADO"})]}),r.jsx(e.Text,{size:"sm",c:"gray.6",fw:500,lh:1.5,h:{md:42},children:d.description})]}),r.jsxs(e.Box,{mb:"xl",children:[r.jsx(e.Text,{size:"xs",c:"gray.4",fw:800,tt:"uppercase",ls:"1px",mb:4,children:d.pricePrefix||"A partir de"}),r.jsxs(e.Group,{gap:8,align:"flex-start",children:[r.jsx(e.Text,{size:"xl",fw:900,c:"gray.9",style:{marginTop:8},children:d.priceDisplay?.currency}),r.jsxs(e.Group,{gap:4,align:"flex-end",children:[r.jsx(e.Text,{fz:"var(--fz-big-metric)",fw:900,ls:"-0.04em",lh:.8,c:"gray.9",children:d.priceDisplay?.whole}),d.priceDisplay?.fraction&&r.jsxs(e.Stack,{gap:0,mb:6,children:[r.jsxs(e.Text,{size:"xl",fw:900,lh:1,c:"gray.9",children:[",",d.priceDisplay.fraction]}),r.jsx(e.Text,{size:"xs",c:"gray.5",fw:800,tt:"uppercase",ls:"0.5px",children:d.period||d.priceSuffix||"/mês"})]})]})]})]}),r.jsx(e.Divider,{mb:"xl",color:"gray.1"}),r.jsx(e.Stack,{gap:"sm",mb:40,style:{flex:1},children:d.features.map((g,y)=>r.jsxs(e.Group,{gap:"sm",wrap:"nowrap",align:"flex-start",children:[r.jsx(b.IconCheck,{size:16,color:"var(--mantine-color-gray-9)",style:{marginTop:2,flexShrink:0}}),r.jsx(e.Text,{size:"sm",fw:500,c:"gray.6",lh:1.4,children:g})]},y))}),r.jsx(e.Box,{mt:"auto",children:r.jsx(z,{label:d.cta.label,href:d.cta.href,size:d.cta.size||"xl",variant:d.cta.variant,color:d.cta.color||"gray.9",fullWidth:!0})})]},d.name))})]})}function J({id:a,subtitle:n,title:i,questions:l=[],contactCard:s,background:t="white"}){f(t);const h={item:{backgroundColor:f("white"),border:"1px solid var(--mantine-color-gray-2)"},control:{padding:"1.25rem"},content:{padding:"0 1.25rem 1.25rem 1.25rem"},label:{fontWeight:900,color:"var(--mantine-color-gray-9)"},chevron:{color:"var(--mantine-color-gray-5)"}};return r.jsxs(x,{id:a,subtitle:n,title:i,background:t,children:[r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:"xl",children:[r.jsx(e.Accordion,{variant:"separated",radius:"0",chevronPosition:"right",styles:h,children:l.slice(0,Math.ceil(l.length/2)).map((c,p)=>r.jsxs(e.Accordion.Item,{value:c.value||String(p),mb:"md",children:[r.jsx(e.Accordion.Control,{icon:r.jsx(e.ThemeIcon,{variant:"light",color:"gray",radius:"0",children:r.jsx(b.IconBolt,{size:16})}),children:c.question}),r.jsx(e.Accordion.Panel,{c:"gray.6",children:c.answer})]},c.value||p))}),r.jsx(e.Accordion,{variant:"separated",radius:"0",chevronPosition:"right",styles:h,children:l.slice(Math.ceil(l.length/2)).map((c,p)=>r.jsxs(e.Accordion.Item,{value:c.value||String(p),mb:"md",children:[r.jsx(e.Accordion.Control,{icon:r.jsx(e.ThemeIcon,{variant:"light",color:"gray",radius:"0",children:r.jsx(b.IconBolt,{size:16})}),children:c.question}),r.jsx(e.Accordion.Panel,{c:"gray.6",children:c.answer})]},c.value||p))})]}),s&&r.jsx(e.Paper,{mt:{base:40,md:80},radius:"0",p:{base:"xl",md:60},bg:f("gray"),bd:"1px solid var(--mantine-color-gray-1)",pos:"relative",style:{overflow:"hidden"},children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:"xl",style:{position:"relative",zIndex:1,alignItems:"center"},children:[r.jsxs(e.Stack,{gap:"sm",ta:{base:"center",md:"left"},align:{base:"center",md:"flex-start"},children:[r.jsx(e.Text,{fz:"h2",fw:900,c:"gray.9",lh:1.2,children:s.title}),r.jsx(e.Text,{c:"gray.6",maw:500,size:"lg",children:s.description})]}),r.jsx(e.Stack,{align:{base:"center",md:"flex-end"},children:r.jsx(z,{label:s.cta.label,href:s.cta.href,target:s.cta.target,leftSection:s.cta.icon,size:s.cta.size||"xl",color:s.cta.color||"dark"})})]})})]})}function X({id:a,title:n,subtitle:i,items:l=[],background:s="gray"}){return r.jsx(x,{id:a,background:s,title:n,subtitle:i,children:r.jsx(e.SimpleGrid,{cols:{base:1,md:l.length>3?4:l.length||3},spacing:"xl",children:l.map((t,h)=>r.jsx(e.Paper,{p:"xl",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",bg:f("white"),children:r.jsxs(e.Stack,{gap:"md",align:"flex-start",h:"100%",children:[r.jsx(b.IconQuote,{size:32,color:"var(--mantine-color-gray-3)"}),r.jsxs(e.Text,{size:"lg",c:"gray.7",lh:1.6,fs:"italic",flex:1,children:['"',t.content,'"']}),r.jsxs(e.Group,{gap:"sm",mt:"xl",children:[r.jsx(e.Avatar,{size:"md",radius:"0",color:"gray",src:t.avatarSrc,children:t.initials}),r.jsxs(e.Stack,{gap:0,children:[r.jsx(e.Text,{size:"sm",fw:900,children:t.name}),r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:t.role})]})]})]})},h))})})}function D({id:a,title:n,description:i,cta:l,background:s="gray"}){return r.jsx(x,{id:a,background:s,ta:"center",children:r.jsx(e.Paper,{p:{base:"xl",sm:80},bg:f("white"),radius:"0",bd:"1px solid var(--mantine-color-gray-2)",style:{borderTop:"4px solid var(--mantine-color-gray-9)"},children:r.jsxs(e.Stack,{align:"center",ta:"center",gap:"xl",children:[n&&r.jsx(e.Text,{fz:"var(--fz-section-title)",fw:900,lh:1.2,ls:"-0.04em",maw:700,children:n}),i&&r.jsx(e.Text,{c:"gray.7",size:"xl",maw:550,children:i}),l&&r.jsx(e.Box,{mt:"md",children:r.jsx(z,{label:l.label,href:l.href,size:l.size||"xl",px:l.px||{base:32,md:60},variant:l.variant,color:l.color})})]})})})}const Y=D;function j({text:a="Selo Exclusivo RiLiGar",color:n="green.6",background:i="gray"}){const l=f(i);return r.jsx(e.Box,{p:"xs",bg:l,style:{borderRadius:"8px",border:"1px solid var(--mantine-color-gray-2)",display:"inline-block"},children:r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.ThemeIcon,{color:n,variant:"light",size:"sm",radius:"xl",children:r.jsx(b.IconCircleCheck,{size:14,"aria-hidden":"true"})}),r.jsx(e.Text,{size:"xs",fw:700,c:"gray.7",tt:"uppercase",lts:.5,children:a})]})})}const Z=j;function R({logo:a,description:n,sections:i=[],socialLinks:l=[],copyrightText:s,madeByText:t,background:h="white"}){const c=f(h);return r.jsx(e.Box,{component:"footer",py:"xl",bg:c,bd:{top:"1px solid var(--mantine-color-gray-2)"},children:r.jsxs(e.Container,{size:"xl",children:[r.jsxs(e.SimpleGrid,{cols:{base:1,sm:2},spacing:"xl",children:[r.jsxs(e.Stack,{gap:"lg",children:[a&&r.jsx("img",{src:a.src,alt:a.alt||"",height:a.height||32,style:{objectFit:"contain",objectPosition:"left"}}),n&&r.jsx(e.Text,{size:"md",c:"gray.6",lh:1.6,maw:400,children:n})]}),r.jsxs(e.SimpleGrid,{cols:{base:2,sm:i.length+(l?.length>0?1:0)||4},spacing:"xl",children:[i.map((p,d)=>r.jsxs(e.Stack,{gap:"md",children:[r.jsx(e.Text,{fw:900,size:"xs",tt:"uppercase",ls:"1.5px",children:p.title}),r.jsx(e.Stack,{gap:"xs",children:p.links.map((g,y)=>r.jsx(e.Anchor,{c:"gray.6",size:"sm",component:g.href?"a":"button",href:g.href,onClick:g.onClick,fw:500,children:g.label},y))})]},d)),l&&l.length>0&&r.jsxs(e.Stack,{gap:"md",children:[r.jsx(e.Text,{fw:900,size:"xs",tt:"uppercase",ls:"1.5px",children:"Social"}),r.jsx(e.Group,{gap:"xs",children:l.map((p,d)=>r.jsx(e.ActionIcon,{size:"md",variant:"subtle",color:"gray",component:"a",href:p.href,target:"_blank",radius:"0","aria-label":p.label||`Social link ${d+1}`,children:p.icon},d))})]})]})]}),r.jsx(e.Divider,{my:"xl",color:"gray.2"}),r.jsxs(e.Group,{justify:"space-between",mt:30,wrap:"wrap",gap:"sm",children:[r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:s}),t&&r.jsx(e.Group,{gap:"sm",children:r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:t})})]})]})})}o.CTABanner=D,o.CTAButton=z,o.Comparison=Q,o.FAQ=J,o.FeatureSplit=q,o.FeaturesGrid=U,o.Footer=R,o.Header=C,o.Hero=W,o.Layout=x,o.MediaBlock=I,o.Navbar=O,o.Pricing=$,o.SECTION_BACKGROUNDS=P,o.SecondaryCTA=Y,o.SectionHeader=F,o.SeloExclusivo=Z,o.SocialProof=V,o.Testimonials=X,o.TrustBadge=j,o.resolveBackground=f,o.theme=L,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("@mantine/core"),require("react/jsx-runtime"),require("@mantine/hooks"),require("@tabler/icons-react"),require("react")):typeof define=="function"&&define.amd?define(["exports","@mantine/core","react/jsx-runtime","@mantine/hooks","@tabler/icons-react","react"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.RiligarComponentsKit={},o.MantineCore,o.jsxRuntime,o.MantineHooks,o.TablerIcons,o.React))})(this,(function(o,e,r,N,b,L){"use strict";const O=e.createTheme({fontFamily:'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',headings:{fontFamily:'Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',fontWeight:"900"},colors:{gray:["#FFFFFF","#F9FAFB","#F3F4F6","#E5E7EB","#9CA3AF","#6B7280","#4B5563","#374151","#1F2937","#11181C"]},primaryColor:"gray",primaryShade:9,autoContrast:!0,defaultRadius:"0",components:{Container:{defaultProps:{size:"xl",px:"md"}},Paper:{defaultProps:{withBorder:!0,shadow:"none",radius:"0",bg:"white"}},Card:{defaultProps:{withBorder:!1,shadow:"none",radius:"0",padding:"xl",bg:"transparent"}},Button:{defaultProps:{size:"md",fw:800,radius:"0",variant:"filled",color:"gray.9"},styles:{root:{textTransform:"uppercase",letterSpacing:"1px"}}},TextInput:{defaultProps:{size:"lg",radius:"0",variant:"unstyled"},styles:{input:{borderBottom:"1px solid var(--mantine-color-gray-2)",paddingLeft:0,paddingRight:0}}},Title:{defaultProps:{lh:1.1,c:"gray.9",ls:"-0.04em"}},Text:{defaultProps:{lh:1.6,c:"gray.9",size:"md"}},Badge:{defaultProps:{variant:"dot",color:"gray",radius:"0",size:"sm"},styles:{root:{textTransform:"uppercase",letterSpacing:"1.5px",fontWeight:800}}},ThemeIcon:{defaultProps:{variant:"light",color:"gray",radius:"0",size:"lg"}},Divider:{defaultProps:{color:"gray.2"}}}});function F({subtitle:a,title:n,titleOrder:i=2,titleFz:l="var(--fz-section-title)",ta:s="left",maw:t}){return!n&&!a?null:r.jsxs(e.Stack,{gap:"xs",align:s==="center"?"center":"flex-start",ta:s,children:[a&&r.jsx(e.Text,{c:"gray.4",size:"xs",fw:800,tt:"uppercase",ls:"1.5px",children:a}),n&&r.jsx(e.Title,{order:i,fz:l,maw:t,children:n})]})}function I({video:a,image:n,width:i="100%",alt:l}){return a?r.jsx(e.Center,{children:r.jsx(e.Box,{component:"video",src:a.src,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,"aria-label":l||"Demonstração em vídeo",w:a.width||i,h:"auto",style:{filter:a.filter||"none"}})}):n?r.jsx(e.Center,{children:r.jsx(e.Box,{component:"img",src:n,alt:l||"",w:i,h:"auto"})}):null}function z({label:a,href:n,onClick:i,icon:l,size:s="lg",variant:t="filled",color:h,target:c,px:p,fullWidth:d,leftSection:g,...y}){return r.jsx(e.Button,{size:s,component:n?"a":"button",href:n,onClick:i,target:c,rightSection:l,leftSection:g,variant:t,color:h,px:p,fullWidth:d,...y,children:a})}const P={white:"white",gray:"gray.0"},f=a=>P[a]||P.white;function x({children:a,title:n,subtitle:i,id:l,background:s="white",py:t={base:80,md:120},maw:h=800,ta:c="left",stackGap:p="xl"}){const d=f(s);return r.jsx(e.Box,{component:"section",id:l,bg:d,py:t,style:{overflow:"hidden"},children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.Stack,{gap:p,children:[r.jsx(F,{subtitle:i,title:n,ta:c,maw:h}),r.jsx(e.Box,{children:a})]})})})}function C({logo:a,navLinks:n=[],loginCta:i,signupCta:l,background:s="white"}){const t=f(s),[h]=N.useWindowScroll(),c=h.y>10,p=g=>{g==="top"?window.scrollTo({top:0,behavior:"smooth"}):document.getElementById(g)?.scrollIntoView({behavior:"smooth"})},d=(g,y)=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),p(y))};return r.jsx(e.Box,{component:"header",pos:"sticky",top:0,w:"100%",style:{zIndex:100,pointerEvents:"none"},children:r.jsx(e.Container,{size:"xl",py:"md",children:r.jsx(e.Paper,{shadow:c?"sm":"none",radius:"0",p:"xs",bg:t,bd:c?"1px solid var(--mantine-color-gray-2)":"1px solid transparent",style:{pointerEvents:"auto",transition:"all 0.2s ease"},children:r.jsxs(e.Group,{justify:"space-between",align:"center",px:{base:"xs",sm:"md"},children:[a&&r.jsx("a",{href:"#","aria-label":"Voltar ao topo",onClick:g=>{g.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})},style:{display:"inline-flex"},children:r.jsx("img",{src:a.src,alt:a.alt||"",height:a.height||32,style:{objectFit:"contain"}})}),n.length>0&&r.jsx(e.Group,{gap:"xl",visibleFrom:"sm",component:"nav",role:"navigation","aria-label":"Menu principal",children:n.map(g=>r.jsx(e.Text,{size:"sm",fw:900,tt:"uppercase",ls:"1px",c:"dark",role:"link",tabIndex:0,style:{cursor:"pointer"},onClick:()=>p(g.target),onKeyDown:y=>d(y,g.target),children:g.label},g.label))}),r.jsxs(e.Group,{gap:"sm",children:[i&&r.jsx(e.Button,{variant:"subtle",component:i.href?"a":"button",href:i.href,onClick:i.onClick,c:"gray.7",size:"sm",radius:"0",visibleFrom:"xs",fw:900,children:i.label}),l&&r.jsxs(e.Button,{component:l.href?"a":"button",href:l.href,onClick:l.onClick,size:"sm",radius:"0",color:"dark",variant:"filled",children:[r.jsx(e.Text,{span:!0,visibleFrom:"sm",c:"white",fw:900,size:"sm",children:l.label}),r.jsx(e.Text,{span:!0,hiddenFrom:"sm",c:"white",fw:900,size:"xs",children:l.labelMobile||l.label})]})]})]})})})})}const u=C;function W({subtitle:a,title:n,description:i,cta:l,video:s,image:t,background:h="white"}){const c=f(h);return r.jsx(e.Box,{py:{base:80,sm:100,md:140},id:"hero",bg:c,children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:{base:60,md:100},verticalSpacing:60,children:[r.jsxs(e.Stack,{align:{base:"center",md:"flex-start"},justify:"center",gap:{base:32,md:48},ta:{base:"center",md:"left"},children:[r.jsx(F,{subtitle:a,title:n,titleOrder:1,titleFz:"var(--fz-hero)",ta:"inherit"}),i&&r.jsx(e.Center,{children:r.jsx(e.Text,{size:"xl",c:"gray.6",lh:1.6,maw:600,children:i})}),l&&r.jsx(e.Center,{children:r.jsx(e.Group,{gap:"md",justify:{base:"center",md:"flex-start"},children:r.jsx(z,{label:l.label,href:l.href,icon:l.icon,size:l.size||"xl",px:l.px||48,variant:l.variant,color:l.color})})})]}),r.jsx(I,{video:s,image:t,alt:"Demonstração do produto"})]})})})}function K({logo:a,index:n}){const i={src:a.src,alt:a.alt||`Logo ${n}`,h:a.height||50,w:"auto",style:{filter:"grayscale(1) opacity(0.4)",transition:"filter 0.3s ease, opacity 0.3s ease",...a.style},onMouseEnter:l=>{l.currentTarget.style.filter="grayscale(0) opacity(0.8)"},onMouseLeave:l=>{l.currentTarget.style.filter="grayscale(1) opacity(0.4)"}};return a.url?r.jsx(e.Center,{children:r.jsx("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:r.jsx(e.Image,{...i})})}):r.jsx(e.Center,{children:r.jsx(e.Image,{...i})})}function V({id:a,title:n,logos:i,background:l="gray"}){const s=f(l);return!i||i.length===0?null:r.jsx(e.Box,{component:"section",id:a,py:{base:40,md:60},bg:s,bd:{bottom:"1px solid var(--mantine-color-gray-1)"},children:r.jsx(e.Container,{size:"lg",children:r.jsxs(e.Stack,{align:"center",ta:"center",gap:"xl",children:[n&&r.jsx(e.Text,{fw:500,c:"gray.5",size:"sm",tt:"uppercase",ls:"0.1em",children:n}),r.jsx(e.Group,{justify:"space-between",gap:{base:40,md:80},style:{rowGap:40},w:"100%",children:i.map((t,h)=>r.jsx(K,{logo:t,index:h},h))})]})})})}function q({id:a,subtitle:n,title:i,description:l,featuresList:s,cta:t,video:h,image:c,reverse:p=!1,background:d="white"}){const g=s&&s.length>0&&r.jsx(e.List,{spacing:"md",size:"md",center:!0,icon:r.jsx(e.ThemeIcon,{color:"gray.2",size:24,radius:"0",children:r.jsx(b.IconCheck,{size:14,color:"var(--mantine-color-gray-9)"})}),children:s.map((S,v)=>r.jsx(e.List.Item,{children:S},v))}),y=r.jsxs(e.Stack,{justify:"center",gap:"lg",children:[l&&r.jsx(e.Text,{c:"gray.6",size:"xl",lh:1.6,children:l}),g,t&&r.jsx(e.Group,{mt:"md",children:r.jsx(z,{label:t.label,href:t.href,icon:t.icon,size:t.size||"lg",variant:t.variant,color:t.color})})]}),w=(h||c)&&r.jsx(I,{video:h,image:c,width:"80%"});return r.jsx(x,{id:a,subtitle:n,title:i,background:d,children:r.jsx(e.SimpleGrid,{cols:{base:1,md:2},spacing:{base:40,md:80},verticalSpacing:{base:40,md:50},children:p?r.jsxs(r.Fragment,{children:[w,y]}):r.jsxs(r.Fragment,{children:[y,w]})})})}function U({id:a,subtitle:n,title:i,background:l="gray",items:s=[]}){return f(l),r.jsx(x,{id:a,subtitle:n,title:i,background:l,children:r.jsx(e.Grid,{gutter:"lg",children:s.map((t,h)=>r.jsx(_,{...t},h))})})}function _({icon:a,iconVariant:n,iconColor:i,label:l,title:s,titleSize:t,description:h,descriptionSize:c,descriptionMaw:p,span:d={base:12,md:6},background:g="white",dark:y=!1,visual:w,secondaryVisual:S,layout:v="stacked",badges:B,codeBlock:M,decorativeContent:E,style:G,...m}){const rr=y?"white":void 0,er=y?"gray.4":"gray.6",lr="gray.5",ar=n||(y?"filled":"light"),sr=i||(y?"gray.7":"gray"),ir=t||(v==="compact"?"h4":"h3"),nr=c||(v==="compact"?"sm":"lg"),k=r.jsxs(e.Box,{children:[a&&r.jsx(e.ThemeIcon,{size:48,radius:"0",variant:ar,color:sr,mb:"lg",style:y?{color:"white"}:void 0,children:r.jsx(a,{size:24,stroke:1.5})}),l&&r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:lr,mb:"xs",children:l}),s&&r.jsx(e.Text,{fz:ir,fw:900,lh:1.2,mb:"sm",c:rr,children:s}),h&&r.jsx(e.Text,{c:er,size:nr,maw:p,mb:B?"xl":v==="compact"?"lg":void 0,children:h}),B&&B.length>0&&r.jsx(e.Group,{children:B.map((tr,dr)=>r.jsx(e.Badge,{variant:"dot",color:"gray",radius:"0",children:tr},dr))})]}),T=w?A(w,y):null,H=S?A(S,y):null;return v==="split"?r.jsx(e.Grid.Col,{span:d,children:r.jsx(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",style:G,...m,children:r.jsxs(e.Grid,{align:"center",gutter:"xl",children:[r.jsx(e.Grid.Col,{span:{base:12,sm:6},children:k}),r.jsxs(e.Grid.Col,{span:{base:12,sm:6},children:[T,M&&r.jsx(e.Code,{block:!0,color:"gray.0",c:"gray.7",style:{fontSize:12,lineHeight:1.4,borderRadius:0},children:M})]})]})})}):v==="compact"?r.jsx(e.Grid.Col,{span:d,children:r.jsxs(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",style:G,...m,children:[k,T]})}):E?r.jsx(e.Grid.Col,{span:d,children:r.jsx(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",pos:"relative",style:G,...m,children:r.jsxs(e.Grid,{gutter:0,pos:"relative",children:[r.jsx(e.Grid.Col,{span:{base:12,sm:7},style:{zIndex:1},children:k}),r.jsx(e.Grid.Col,{span:5,visibleFrom:"sm",children:E})]})})}):r.jsx(e.Grid.Col,{span:d,children:r.jsxs(e.Paper,{h:"100%",p:{base:"xl",md:40},radius:"0",bg:f(g),bd:"1px solid var(--mantine-color-gray-2)",display:"flex",style:{flexDirection:"column",justifyContent:"space-between",...G},...m,children:[k,T&&H?r.jsxs(e.Group,{gap:40,align:"center",children:[T,H]}):T]})})}function A(a,n){if(!a)return null;switch(a.type){case"ring":return r.jsx(e.RingProgress,{size:a.size||140,thickness:a.thickness||12,sections:[{value:a.value||100,color:"gray.9"}],label:r.jsx(e.Center,{children:r.jsxs(e.Stack,{gap:0,align:"center",children:[r.jsx(e.Text,{fw:900,size:"xl",lh:1,children:a.label}),a.sublabel&&r.jsx(e.Text,{size:"xs",c:"gray.5",fw:700,children:a.sublabel})]})})});case"metric":return r.jsxs(e.Stack,{gap:0,children:[r.jsx(e.Text,{fw:900,fz:32,c:"gray.9",lh:1,children:a.value}),r.jsx(e.Text,{size:"sm",c:"gray.5",mt:4,children:a.label}),a.badge&&r.jsx(e.Badge,{mt:"md",color:"gray",variant:"dot",radius:"0",children:a.badge})]});case"bars":return r.jsx(e.Group,{align:"flex-end",gap:8,h:a.height||100,preventGrowOverflow:!1,children:(a.data||[]).map((i,l)=>r.jsx(e.Box,{w:20,h:`${i}%`,bg:l===a.highlight?"gray.9":"gray.2",radius:"0"},l))});case"typography":return r.jsx(e.Center,{h:a.height||160,bg:n?"gray.8":"gray.1",radius:"0",children:r.jsx(e.Text,{fz:a.fontSize||100,fw:900,c:n?"gray.6":"gray.3",style:{letterSpacing:-6},children:a.text||"Aa"})});case"icon-large":{const i=a.icon;return i?r.jsx(i,{size:a.size||64,stroke:a.stroke||1,color:a.color||"var(--mantine-color-gray-2)"}):null}default:return null}}function Q({id:a,subtitle:n,title:i,traditionalCol:l,newCol:s,background:t="white"}){return r.jsx(x,{id:a,subtitle:n,title:i,background:t,children:r.jsx(e.Paper,{radius:"0",bd:"1px solid var(--mantine-color-gray-2)",style:{overflow:"hidden"},children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:0,children:[r.jsx(e.Box,{bg:f("gray"),p:{base:30,md:60},children:r.jsxs(e.Stack,{gap:"xl",children:[r.jsxs(e.Box,{children:[r.jsx(e.Text,{fw:900,fz:"h2",c:"gray.9",mb:4,children:l.title}),r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.5",children:l.subtitle})]}),r.jsx(e.Stack,{gap:"md",mb:40,children:l.items.map((h,c)=>r.jsxs(L.Fragment,{children:[r.jsxs(e.Group,{justify:"space-between",children:[r.jsx(e.Text,{size:"sm",c:"gray.6",children:h.label}),r.jsx(e.Text,{fw:700,c:"gray.9",children:h.value})]}),c<l.items.length-1&&r.jsx(e.Divider,{color:"var(--mantine-color-gray-2)"})]},c))}),r.jsxs(e.Box,{bg:f("white"),p:"lg",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:[r.jsxs(e.Group,{justify:"space-between",children:[r.jsx(e.Text,{fw:900,c:"gray.7",children:l.totalLabel||"Total Estimado"}),r.jsx(e.Text,{fw:900,fz:32,c:"gray.9",children:l.totalValue})]}),l.footerText&&r.jsx(e.Text,{size:"xs",c:"red.6",ta:"right",mt:4,children:l.footerText})]})]})}),r.jsx(e.Box,{bg:f("white"),p:{base:30,md:60},pos:"relative",children:r.jsxs(e.Stack,{gap:"xl",h:"100%",children:[r.jsxs(e.Box,{children:[r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.Text,{fw:900,fz:"h2",c:"gray.9",mb:4,children:s.title}),s.badge&&r.jsx(e.Badge,{color:"gray.9",variant:"filled",radius:"0",children:s.badge})]}),r.jsx(e.Text,{size:"sm",c:"gray.6",children:s.description})]}),r.jsx(e.List,{spacing:"md",size:"md",c:"gray.6",icon:r.jsx(e.ThemeIcon,{color:"gray.0",size:20,radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:r.jsx(b.IconCheck,{size:12,color:"var(--mantine-color-gray-9)"})}),children:s.items.map((h,c)=>r.jsx(e.List.Item,{children:h},c))}),s.pricingBox&&r.jsx(e.Box,{bg:f("gray"),p:"lg",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",children:r.jsxs(e.Stack,{gap:4,children:[r.jsx(e.Text,{size:"sm",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.5",children:s.pricingBox.label}),r.jsx(e.Text,{fw:900,fz:48,c:"gray.9",lh:1,children:s.pricingBox.price}),s.pricingBox.subtext&&r.jsx(e.Text,{size:"xs",c:"gray.5",mt:"sm",children:s.pricingBox.subtext})]})}),s.cta&&r.jsx(e.Box,{mt:"xl",children:r.jsx(z,{label:s.cta.label,href:s.cta.href,icon:s.cta.icon,size:s.cta.size||"lg",color:s.cta.color||"gray.9",fullWidth:!0})})]})})]})})})}function $({id:a,subtitle:n,title:i,billingOptions:l=[{label:"Mensal",value:"monthly"},{label:"Anual",value:"annual"}],billing:s,setBilling:t,promoBadge:h,plans:c,background:p="white"}){return r.jsxs(x,{id:a,subtitle:n,title:i,ta:"center",background:p,children:[l&&l.length>0&&r.jsx(e.Stack,{align:"center",gap:"xl",mb:80,children:r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.SegmentedControl,{value:s,onChange:t,radius:"0",size:"md",data:l,color:"gray.9",bg:"white",style:{border:"1px solid var(--mantine-color-gray-2)"}}),s==="annual"&&h&&r.jsx(e.Badge,{variant:"filled",color:"gray.9",radius:"0",size:"lg",children:h})]})}),r.jsx(e.SimpleGrid,{cols:{base:1,md:c.length<=3?c.length:3},spacing:"xl",verticalSpacing:"xl",children:c.map(d=>r.jsxs(e.Paper,{p:"xl",radius:"0",withBorder:!0,bd:d.highlight?"2px solid var(--mantine-color-gray-9)":"1px solid var(--mantine-color-gray-2)",display:"flex",h:"100%",style:{flexDirection:"column"},bg:"white",children:[r.jsxs(e.Stack,{gap:"md",mb:"xl",children:[r.jsxs(e.Group,{justify:"space-between",align:"center",children:[r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1.5px",c:"gray.4",children:d.name}),d.highlight&&r.jsx(e.Badge,{variant:"dot",color:"gray.9",children:d.highlightBadge||"RECOMENDADO"})]}),r.jsx(e.Text,{size:"sm",c:"gray.6",fw:500,lh:1.5,h:{md:42},children:d.description})]}),r.jsxs(e.Box,{mb:"xl",children:[r.jsx(e.Text,{size:"xs",c:"gray.4",fw:800,tt:"uppercase",ls:"1px",mb:4,children:d.pricePrefix||"A partir de"}),r.jsxs(e.Group,{gap:8,align:"flex-start",children:[r.jsx(e.Text,{size:"xl",fw:900,c:"gray.9",style:{marginTop:8},children:d.priceDisplay?.currency}),r.jsxs(e.Group,{gap:4,align:"flex-end",children:[r.jsx(e.Text,{fz:"var(--fz-big-metric)",fw:900,ls:"-0.04em",lh:.8,c:"gray.9",children:d.priceDisplay?.whole}),d.priceDisplay?.fraction&&r.jsxs(e.Stack,{gap:0,mb:6,children:[r.jsxs(e.Text,{size:"xl",fw:900,lh:1,c:"gray.9",children:[",",d.priceDisplay.fraction]}),r.jsx(e.Text,{size:"xs",c:"gray.5",fw:800,tt:"uppercase",ls:"0.5px",children:d.period||d.priceSuffix||"/mês"})]})]})]})]}),r.jsx(e.Divider,{mb:"xl",color:"gray.1"}),r.jsx(e.Stack,{gap:"sm",mb:40,style:{flex:1},children:d.features.map((g,y)=>r.jsxs(e.Group,{gap:"sm",wrap:"nowrap",align:"flex-start",children:[r.jsx(b.IconCheck,{size:16,color:"var(--mantine-color-gray-9)",style:{marginTop:2,flexShrink:0}}),r.jsx(e.Text,{size:"sm",fw:500,c:"gray.6",lh:1.4,children:g})]},y))}),r.jsx(e.Box,{mt:"auto",children:r.jsx(z,{label:d.cta.label,href:d.cta.href,size:d.cta.size||"xl",variant:d.cta.variant,color:d.cta.color||"gray.9",fullWidth:!0})})]},d.name))})]})}function J({id:a,subtitle:n,title:i,questions:l=[],contactCard:s,background:t="white"}){f(t);const h={item:{backgroundColor:f("white"),border:"1px solid var(--mantine-color-gray-2)"},control:{padding:"1.25rem"},content:{padding:"0 1.25rem 1.25rem 1.25rem"},label:{fontWeight:900,color:"var(--mantine-color-gray-9)"},chevron:{color:"var(--mantine-color-gray-5)"}};return r.jsxs(x,{id:a,subtitle:n,title:i,background:t,children:[r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:"xl",children:[r.jsx(e.Accordion,{variant:"separated",radius:"0",chevronPosition:"right",styles:h,children:l.slice(0,Math.ceil(l.length/2)).map((c,p)=>r.jsxs(e.Accordion.Item,{value:c.value||String(p),mb:"md",children:[r.jsx(e.Accordion.Control,{icon:r.jsx(e.ThemeIcon,{variant:"light",color:"gray",radius:"0",children:r.jsx(b.IconBolt,{size:16})}),children:c.question}),r.jsx(e.Accordion.Panel,{c:"gray.6",children:c.answer})]},c.value||p))}),r.jsx(e.Accordion,{variant:"separated",radius:"0",chevronPosition:"right",styles:h,children:l.slice(Math.ceil(l.length/2)).map((c,p)=>r.jsxs(e.Accordion.Item,{value:c.value||String(p),mb:"md",children:[r.jsx(e.Accordion.Control,{icon:r.jsx(e.ThemeIcon,{variant:"light",color:"gray",radius:"0",children:r.jsx(b.IconBolt,{size:16})}),children:c.question}),r.jsx(e.Accordion.Panel,{c:"gray.6",children:c.answer})]},c.value||p))})]}),s&&r.jsx(e.Paper,{mt:{base:40,md:80},radius:"0",p:{base:"xl",md:60},bg:f("gray"),bd:"1px solid var(--mantine-color-gray-1)",pos:"relative",style:{overflow:"hidden"},children:r.jsxs(e.SimpleGrid,{cols:{base:1,md:2},spacing:"xl",style:{position:"relative",zIndex:1,alignItems:"center"},children:[r.jsxs(e.Stack,{gap:"sm",ta:{base:"center",md:"left"},align:{base:"center",md:"flex-start"},children:[r.jsx(e.Text,{fz:"h2",fw:900,c:"gray.9",lh:1.2,children:s.title}),r.jsx(e.Text,{c:"gray.6",maw:500,size:"lg",children:s.description})]}),r.jsx(e.Stack,{align:{base:"center",md:"flex-end"},children:r.jsx(z,{label:s.cta.label,href:s.cta.href,target:s.cta.target,leftSection:s.cta.icon,size:s.cta.size||"xl",color:s.cta.color||"dark"})})]})})]})}function X({id:a,title:n,subtitle:i,items:l=[],background:s="gray"}){return r.jsx(x,{id:a,background:s,title:n,subtitle:i,children:r.jsx(e.SimpleGrid,{cols:{base:1,md:l.length>3?4:l.length||3},spacing:"xl",children:l.map((t,h)=>r.jsx(e.Paper,{p:"xl",radius:"0",bd:"1px solid var(--mantine-color-gray-2)",bg:f("white"),children:r.jsxs(e.Stack,{gap:"md",align:"flex-start",h:"100%",children:[r.jsx(b.IconQuote,{size:32,color:"var(--mantine-color-gray-3)"}),r.jsxs(e.Text,{size:"lg",c:"gray.7",lh:1.6,fs:"italic",flex:1,children:['"',t.content,'"']}),r.jsxs(e.Group,{gap:"sm",mt:"xl",children:[r.jsx(e.Avatar,{size:"md",radius:"0",color:"gray",src:t.avatarSrc,children:t.initials}),r.jsxs(e.Stack,{gap:0,children:[r.jsx(e.Text,{size:"sm",fw:900,children:t.name}),r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:t.role})]})]})]})},h))})})}function D({id:a,title:n,description:i,cta:l,background:s="gray"}){return r.jsx(x,{id:a,background:s,ta:"center",children:r.jsx(e.Paper,{p:{base:"xl",sm:80},bg:f("white"),radius:"0",bd:"1px solid var(--mantine-color-gray-2)",style:{borderTop:"4px solid var(--mantine-color-gray-9)"},children:r.jsxs(e.Stack,{align:"center",ta:"center",gap:"xl",children:[n&&r.jsx(e.Text,{fz:"var(--fz-section-title)",fw:900,lh:1.2,ls:"-0.04em",maw:700,children:n}),i&&r.jsx(e.Text,{c:"gray.7",size:"xl",maw:550,children:i}),l&&r.jsx(e.Box,{mt:"md",children:r.jsx(z,{label:l.label,href:l.href,size:l.size||"xl",px:l.px||{base:32,md:60},variant:l.variant,color:l.color})})]})})})}const Y=D;function j({text:a="Selo Exclusivo RiLiGar",color:n="green.6",background:i="gray"}){const l=f(i);return r.jsx(e.Box,{p:"xs",bg:l,style:{borderRadius:"8px",border:"1px solid var(--mantine-color-gray-2)",display:"inline-block"},children:r.jsxs(e.Group,{gap:"xs",children:[r.jsx(e.ThemeIcon,{color:n,variant:"light",size:"sm",radius:"xl",children:r.jsx(b.IconCircleCheck,{size:14,"aria-hidden":"true"})}),r.jsx(e.Text,{size:"xs",fw:700,c:"gray.7",tt:"uppercase",lts:.5,children:a})]})})}const Z=j;function R({logo:a,description:n,sections:i=[],socialLinks:l=[],copyrightText:s,madeByText:t,background:h="white"}){const c=f(h);return r.jsx(e.Box,{component:"footer",py:"xl",bg:c,bd:{top:"1px solid var(--mantine-color-gray-2)"},children:r.jsxs(e.Container,{size:"xl",children:[r.jsxs(e.SimpleGrid,{cols:{base:1,sm:2},spacing:"xl",children:[r.jsxs(e.Stack,{gap:"lg",children:[a&&r.jsx("img",{src:a.src,alt:a.alt||"",height:a.height||32,style:{objectFit:"contain",objectPosition:"left"}}),n&&r.jsx(e.Text,{size:"md",c:"gray.6",lh:1.6,maw:400,children:n})]}),r.jsxs(e.SimpleGrid,{cols:{base:2,sm:i.length+(l?.length>0?1:0)||4},spacing:"xl",children:[i.map((p,d)=>r.jsxs(e.Stack,{gap:"md",children:[r.jsx(e.Text,{fw:900,size:"xs",tt:"uppercase",ls:"1.5px",children:p.title}),r.jsx(e.Stack,{gap:"xs",children:p.links.map((g,y)=>r.jsx(e.Anchor,{c:"gray.6",size:"sm",component:g.href?"a":"button",href:g.href,onClick:g.onClick,fw:500,children:g.label},y))})]},d)),l&&l.length>0&&r.jsxs(e.Stack,{gap:"md",children:[r.jsx(e.Text,{fw:900,size:"xs",tt:"uppercase",ls:"1.5px",children:"Social"}),r.jsx(e.Group,{gap:"xs",children:l.map((p,d)=>r.jsx(e.ActionIcon,{size:"md",variant:"subtle",color:"gray",component:"a",href:p.href,target:"_blank",radius:"0","aria-label":p.label||`Social link ${d+1}`,children:p.icon},d))})]})]})]}),r.jsx(e.Divider,{my:"xl",color:"gray.2"}),r.jsxs(e.Group,{justify:"space-between",mt:30,wrap:"wrap",gap:"sm",children:[r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:s}),t&&r.jsx(e.Group,{gap:"sm",children:r.jsx(e.Text,{size:"xs",fw:800,tt:"uppercase",ls:"1px",c:"gray.5",children:t})})]})]})})}o.CTABanner=D,o.CTAButton=z,o.Comparison=Q,o.FAQ=J,o.FeatureSplit=q,o.FeaturesGrid=U,o.Footer=R,o.Header=C,o.Hero=W,o.Layout=x,o.MediaBlock=I,o.Navbar=u,o.Pricing=$,o.SECTION_BACKGROUNDS=P,o.SecondaryCTA=Y,o.SectionHeader=F,o.SeloExclusivo=Z,o.SocialProof=V,o.Testimonials=X,o.TrustBadge=j,o.resolveBackground=f,o.theme=O,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riligar/components-kit",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",