@fluencypassdevs/pulse 0.1.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/buttons/cta-brand.d.ts +39 -0
- package/dist/buttons/cta-brand.js +8 -0
- package/dist/buttons/cta-brand.js.map +1 -0
- package/dist/buttons/index.d.ts +5 -0
- package/dist/buttons/index.js +10 -0
- package/dist/buttons/index.js.map +1 -0
- package/dist/buttons/link-brand.d.ts +39 -0
- package/dist/buttons/link-brand.js +6 -0
- package/dist/buttons/link-brand.js.map +1 -0
- package/dist/chunk-2NMEKWO5.js +35 -0
- package/dist/chunk-2NMEKWO5.js.map +1 -0
- package/dist/chunk-44ESRMDK.js +56 -0
- package/dist/chunk-44ESRMDK.js.map +1 -0
- package/dist/chunk-5OLUQZFV.js +27 -0
- package/dist/chunk-5OLUQZFV.js.map +1 -0
- package/dist/chunk-CHSR2ETD.js +24 -0
- package/dist/chunk-CHSR2ETD.js.map +1 -0
- package/dist/chunk-CNVIYLIS.js +3 -0
- package/dist/chunk-CNVIYLIS.js.map +1 -0
- package/dist/chunk-EFZL6LLI.js +3 -0
- package/dist/chunk-EFZL6LLI.js.map +1 -0
- package/dist/chunk-EQHE53IC.js +3 -0
- package/dist/chunk-EQHE53IC.js.map +1 -0
- package/dist/chunk-GQURTO6D.js +29 -0
- package/dist/chunk-GQURTO6D.js.map +1 -0
- package/dist/chunk-JK3UYOM2.js +49 -0
- package/dist/chunk-JK3UYOM2.js.map +1 -0
- package/dist/chunk-KIXWOUY4.js +82 -0
- package/dist/chunk-KIXWOUY4.js.map +1 -0
- package/dist/chunk-KWQHWZI7.js +74 -0
- package/dist/chunk-KWQHWZI7.js.map +1 -0
- package/dist/chunk-OHRYR7PN.js +37 -0
- package/dist/chunk-OHRYR7PN.js.map +1 -0
- package/dist/chunk-PGXSBSQT.js +57 -0
- package/dist/chunk-PGXSBSQT.js.map +1 -0
- package/dist/chunk-RSCKN557.js +29 -0
- package/dist/chunk-RSCKN557.js.map +1 -0
- package/dist/chunk-SDJ6HXPX.js +48 -0
- package/dist/chunk-SDJ6HXPX.js.map +1 -0
- package/dist/chunk-SDPIL7HA.js +65 -0
- package/dist/chunk-SDPIL7HA.js.map +1 -0
- package/dist/chunk-SGFTGHM5.js +3 -0
- package/dist/chunk-SGFTGHM5.js.map +1 -0
- package/dist/chunk-T7EIAVSF.js +18 -0
- package/dist/chunk-T7EIAVSF.js.map +1 -0
- package/dist/chunk-VNGGZL6V.js +105 -0
- package/dist/chunk-VNGGZL6V.js.map +1 -0
- package/dist/chunk-W4KJCBMW.js +11 -0
- package/dist/chunk-W4KJCBMW.js.map +1 -0
- package/dist/chunk-WVYPNZFL.js +77 -0
- package/dist/chunk-WVYPNZFL.js.map +1 -0
- package/dist/chunk-WZIXM2X2.js +55 -0
- package/dist/chunk-WZIXM2X2.js.map +1 -0
- package/dist/chunk-XGV5OIPX.js +33 -0
- package/dist/chunk-XGV5OIPX.js.map +1 -0
- package/dist/chunk-YVBHOWUJ.js +3 -0
- package/dist/chunk-YVBHOWUJ.js.map +1 -0
- package/dist/chunk-YYH3A42F.js +24 -0
- package/dist/chunk-YYH3A42F.js.map +1 -0
- package/dist/chunk-ZRJFO4OW.js +26 -0
- package/dist/chunk-ZRJFO4OW.js.map +1 -0
- package/dist/effects/card-dark-glow.d.ts +30 -0
- package/dist/effects/card-dark-glow.js +6 -0
- package/dist/effects/card-dark-glow.js.map +1 -0
- package/dist/effects/circle-glow.d.ts +26 -0
- package/dist/effects/circle-glow.js +6 -0
- package/dist/effects/circle-glow.js.map +1 -0
- package/dist/effects/hand-underline.d.ts +33 -0
- package/dist/effects/hand-underline.js +8 -0
- package/dist/effects/hand-underline.js.map +1 -0
- package/dist/effects/index.d.ts +7 -0
- package/dist/effects/index.js +14 -0
- package/dist/effects/index.js.map +1 -0
- package/dist/effects/magnetic-button.d.ts +36 -0
- package/dist/effects/magnetic-button.js +7 -0
- package/dist/effects/magnetic-button.js.map +1 -0
- package/dist/effects/marquee.d.ts +30 -0
- package/dist/effects/marquee.js +6 -0
- package/dist/effects/marquee.js.map +1 -0
- package/dist/effects/rotating-word.d.ts +40 -0
- package/dist/effects/rotating-word.js +7 -0
- package/dist/effects/rotating-word.js.map +1 -0
- package/dist/hooks/use-intersection.d.ts +34 -0
- package/dist/hooks/use-intersection.js +5 -0
- package/dist/hooks/use-intersection.js.map +1 -0
- package/dist/hooks/use-reduced-motion.d.ts +11 -0
- package/dist/hooks/use-reduced-motion.js +5 -0
- package/dist/hooks/use-reduced-motion.js.map +1 -0
- package/dist/index.d.ts +887 -0
- package/dist/index.js +1640 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.js +7 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/section.d.ts +36 -0
- package/dist/layout/section.js +6 -0
- package/dist/layout/section.js.map +1 -0
- package/dist/motion/animated-number.d.ts +35 -0
- package/dist/motion/animated-number.js +8 -0
- package/dist/motion/animated-number.js.map +1 -0
- package/dist/motion/index.d.ts +6 -0
- package/dist/motion/index.js +12 -0
- package/dist/motion/index.js.map +1 -0
- package/dist/motion/reveal-on-scroll.d.ts +27 -0
- package/dist/motion/reveal-on-scroll.js +8 -0
- package/dist/motion/reveal-on-scroll.js.map +1 -0
- package/dist/motion/smooth-anchor.d.ts +31 -0
- package/dist/motion/smooth-anchor.js +5 -0
- package/dist/motion/smooth-anchor.js.map +1 -0
- package/dist/motion/stagger-reveal.d.ts +30 -0
- package/dist/motion/stagger-reveal.js +8 -0
- package/dist/motion/stagger-reveal.js.map +1 -0
- package/dist/styles/foundation.css +79 -0
- package/dist/styles/styles.css +1221 -0
- package/dist/typography/hero-heading.d.ts +25 -0
- package/dist/typography/hero-heading.js +6 -0
- package/dist/typography/hero-heading.js.map +1 -0
- package/dist/typography/index.d.ts +5 -0
- package/dist/typography/index.js +10 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/section-eyebrow.d.ts +21 -0
- package/dist/typography/section-eyebrow.js +6 -0
- package/dist/typography/section-eyebrow.js.map +1 -0
- package/dist/typography/section-heading.d.ts +37 -0
- package/dist/typography/section-heading.js +6 -0
- package/dist/typography/section-heading.js.map +1 -0
- package/dist/typography/section-subtitle.d.ts +19 -0
- package/dist/typography/section-subtitle.js +6 -0
- package/dist/typography/section-subtitle.js.map +1 -0
- package/package.json +103 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { cn } from './chunk-W4KJCBMW.js';
|
|
2
|
+
import { __objRest, __spreadValues } from './chunk-2NMEKWO5.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var Section = React.forwardRef(function Section2(_a, ref) {
|
|
7
|
+
var _b = _a, { as = "section", variant = "default", tone = "dark", id, className } = _b, props = __objRest(_b, ["as", "variant", "tone", "id", "className"]);
|
|
8
|
+
const Tag = as;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Tag,
|
|
11
|
+
__spreadValues({
|
|
12
|
+
ref,
|
|
13
|
+
id,
|
|
14
|
+
"data-slot": "marketing-section",
|
|
15
|
+
"data-variant": variant,
|
|
16
|
+
"data-tone": tone,
|
|
17
|
+
className: cn(
|
|
18
|
+
// base
|
|
19
|
+
"relative w-full",
|
|
20
|
+
// variants
|
|
21
|
+
variant === "hero" && "min-h-screen flex flex-col scroll-mt-0",
|
|
22
|
+
variant === "default" && "py-20 md:py-28 scroll-mt-8",
|
|
23
|
+
// tone
|
|
24
|
+
tone === "light" && "light-surface",
|
|
25
|
+
className
|
|
26
|
+
)
|
|
27
|
+
}, props)
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export { Section };
|
|
32
|
+
//# sourceMappingURL=chunk-XGV5OIPX.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-XGV5OIPX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/marketing/layout/section.tsx"],"names":["Section"],"mappings":";;;;;AAoCA,IAAM,OAAA,GAAgB,KAAA,CAAA,UAAA,CAAsC,SAASA,QAAAA,CACnE,IACA,GAAA,EACA;AAFA,EAAA,IAAA,EAAA,GAAA,EAAA,EAAE,OAAK,SAAA,EAAW,OAAA,GAAU,SAAA,EAAW,IAAA,GAAO,QAAQ,EAAA,EAAI,SAAA,EArC5D,GAqCE,EAAA,EAAwE,kBAAxE,EAAA,EAAwE,CAAtE,IAAA,EAAgB,SAAA,EAAqB,QAAe,IAAA,EAAI,WAAA,CAAA,CAAA;AAG1D,EAAA,MAAM,GAAA,GAAM,EAAA;AACZ,EAAA,uBACE,GAAA;AAAA,IAAC,GAAA;AAAA,IAAA,cAAA,CAAA;AAAA,MACC,GAAA;AAAA,MACA,EAAA;AAAA,MACA,WAAA,EAAU,mBAAA;AAAA,MACV,cAAA,EAAc,OAAA;AAAA,MACd,WAAA,EAAW,IAAA;AAAA,MACX,SAAA,EAAW,EAAA;AAAA;AAAA,QAET,iBAAA;AAAA;AAAA,QAEA,YAAY,MAAA,IAAU,wCAAA;AAAA,QACtB,YAAY,SAAA,IAAa,4BAAA;AAAA;AAAA,QAEzB,SAAS,OAAA,IAAW,eAAA;AAAA,QACpB;AAAA;AACF,KAAA,EACI,KAAA;AAAA,GACN;AAEJ,CAAC","file":"chunk-XGV5OIPX.js","sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@core/lib/utils\"\n\nexport interface SectionProps extends React.HTMLAttributes<HTMLElement> {\n /** Tag HTML renderizada. Default `\"section\"`. */\n as?: \"section\" | \"div\"\n /**\n * Forma da dobra:\n * - `\"hero\"`: `min-h-screen flex flex-col` (primeira dobra acima do fold).\n * - `\"default\"`: padding vertical generoso (`py-20 md:py-28`) — usado nas demais.\n */\n variant?: \"hero\" | \"default\"\n /**\n * Aplica `.light-surface` quando `\"light\"` — sobrescreve os tokens semanticos\n * pra um fundo claro dentro de tema dark global. `\"dark\"` nao aplica nada\n * (segue o tema do root).\n */\n tone?: \"dark\" | \"light\"\n}\n\n/**\n * Wrapper de uma \"dobra\" de landing page. Generaliza o `HomeSection` do\n * `fluencypass-corporate-site`: padroniza padding/altura via `variant` e\n * permite alternar bg dark/light por dobra via `tone`.\n *\n * Pareie com `SectionHeading`, `SectionEyebrow`, `SectionSubtitle` pra montar\n * o cabecalho da dobra com tipografia consistente.\n *\n * @example\n * <Section id=\"pilares\" variant=\"default\" tone=\"light\">\n * <SectionEyebrow>O que oferecemos</SectionEyebrow>\n * <SectionHeading>3 pilares essenciais</SectionHeading>\n * <div className=\"grid md:grid-cols-3 gap-6\">...</div>\n * </Section>\n */\nconst Section = React.forwardRef<HTMLElement, SectionProps>(function Section(\n { as = \"section\", variant = \"default\", tone = \"dark\", id, className, ...props },\n ref\n) {\n const Tag = as as React.ElementType\n return (\n <Tag\n ref={ref}\n id={id}\n data-slot=\"marketing-section\"\n data-variant={variant}\n data-tone={tone}\n className={cn(\n // base\n \"relative w-full\",\n // variants\n variant === \"hero\" && \"min-h-screen flex flex-col scroll-mt-0\",\n variant === \"default\" && \"py-20 md:py-28 scroll-mt-8\",\n // tone\n tone === \"light\" && \"light-surface\",\n className\n )}\n {...props}\n />\n )\n})\n\nexport { Section }\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-YVBHOWUJ.js"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { cn } from './chunk-W4KJCBMW.js';
|
|
2
|
+
import { __objRest, __spreadValues } from './chunk-2NMEKWO5.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var CircleGlow = React.forwardRef(
|
|
7
|
+
function CircleGlow2(_a, ref) {
|
|
8
|
+
var _b = _a, { size = "lg", className } = _b, props = __objRest(_b, ["size", "className"]);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"div",
|
|
11
|
+
__spreadValues({
|
|
12
|
+
ref,
|
|
13
|
+
"aria-hidden": "true",
|
|
14
|
+
"data-slot": "circle-glow",
|
|
15
|
+
"data-size": size,
|
|
16
|
+
className: cn("cycle-circle-glow", className)
|
|
17
|
+
}, props)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export { CircleGlow };
|
|
23
|
+
//# sourceMappingURL=chunk-YYH3A42F.js.map
|
|
24
|
+
//# sourceMappingURL=chunk-YYH3A42F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/marketing/effects/circle-glow.tsx"],"names":["CircleGlow"],"mappings":";;;;;AA2BA,IAAM,UAAA,GAAmB,KAAA,CAAA,UAAA;AAAA,EACvB,SAASA,WAAAA,CAAW,EAAA,EAAsC,GAAA,EAAK;AAA3C,IAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EAAA,IAAA,GAAO,MAAM,SAAA,EA5BrC,GA4BsB,IAA6B,KAAA,GAAA,SAAA,CAA7B,EAAA,EAA6B,CAA3B,MAAA,EAAa,WAAA,CAAA,CAAA;AACjC,IAAA,uBACE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA,cAAA,CAAA;AAAA,QACC,GAAA;AAAA,QACA,aAAA,EAAY,MAAA;AAAA,QACZ,WAAA,EAAU,aAAA;AAAA,QACV,WAAA,EAAW,IAAA;AAAA,QACX,SAAA,EAAW,EAAA,CAAG,mBAAA,EAAqB,SAAS;AAAA,OAAA,EACxC,KAAA;AAAA,KACN;AAAA,EAEJ;AACF","file":"chunk-YYH3A42F.js","sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@core/lib/utils\"\n\nexport interface CircleGlowProps\n extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> {\n /**\n * Tamanho relativo do glow. Controla o `transform: scale()` aplicado ao\n * elemento. Default `\"lg\"` (escala 1.0).\n */\n size?: \"sm\" | \"md\" | \"lg\"\n}\n\n/**\n * Decoracao de glow circular pulsante. Posicionada `absolute` — o **container\n * deve ser `relative`**. Idealmente coloque atras dos cards usando `-z-10`\n * (ou similar) via `className`.\n *\n * Sempre `aria-hidden` e `pointer-events: none` (e puramente visual).\n * Respeita `prefers-reduced-motion`.\n *\n * @example\n * <div className=\"relative\">\n * <CircleGlow className=\"-z-10\" />\n * <div className=\"grid grid-cols-3 gap-6\">{cards}</div>\n * </div>\n */\nconst CircleGlow = React.forwardRef<HTMLDivElement, CircleGlowProps>(\n function CircleGlow({ size = \"lg\", className, ...props }, ref) {\n return (\n <div\n ref={ref}\n aria-hidden=\"true\"\n data-slot=\"circle-glow\"\n data-size={size}\n className={cn(\"cycle-circle-glow\", className)}\n {...props}\n />\n )\n }\n)\n\nexport { CircleGlow }\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cn } from './chunk-W4KJCBMW.js';
|
|
2
|
+
import { __objRest, __spreadValues } from './chunk-2NMEKWO5.js';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var SectionSubtitle = React.forwardRef(
|
|
7
|
+
function SectionSubtitle2(_a, ref) {
|
|
8
|
+
var _b = _a, { align = "center", className } = _b, props = __objRest(_b, ["align", "className"]);
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
"p",
|
|
11
|
+
__spreadValues({
|
|
12
|
+
ref,
|
|
13
|
+
"data-slot": "section-subtitle",
|
|
14
|
+
className: cn(
|
|
15
|
+
"text-base sm:text-lg md:text-xl text-muted-foreground leading-relaxed text-balance max-w-3xl",
|
|
16
|
+
align === "center" ? "text-center mx-auto" : "text-left",
|
|
17
|
+
className
|
|
18
|
+
)
|
|
19
|
+
}, props)
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export { SectionSubtitle };
|
|
25
|
+
//# sourceMappingURL=chunk-ZRJFO4OW.js.map
|
|
26
|
+
//# sourceMappingURL=chunk-ZRJFO4OW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/marketing/typography/section-subtitle.tsx"],"names":["SectionSubtitle"],"mappings":";;;;;AAoBA,IAAM,eAAA,GAAwB,KAAA,CAAA,UAAA;AAAA,EAC5B,SAASA,gBAAAA,CAAgB,EAAA,EAA2C,GAAA,EAAK;AAAhD,IAAA,IAAA,EAAA,GAAA,EAAA,EAAE,EAAA,KAAA,GAAQ,UAAU,SAAA,EArB/C,GAqB2B,IAAkC,KAAA,GAAA,SAAA,CAAlC,EAAA,EAAkC,CAAhC,OAAA,EAAkB,WAAA,CAAA,CAAA;AAC3C,IAAA,uBACE,GAAA;AAAA,MAAC,GAAA;AAAA,MAAA,cAAA,CAAA;AAAA,QACC,GAAA;AAAA,QACA,WAAA,EAAU,kBAAA;AAAA,QACV,SAAA,EAAW,EAAA;AAAA,UACT,8FAAA;AAAA,UACA,KAAA,KAAU,WAAW,qBAAA,GAAwB,WAAA;AAAA,UAC7C;AAAA;AACF,OAAA,EACI,KAAA;AAAA,KACN;AAAA,EAEJ;AACF","file":"chunk-ZRJFO4OW.js","sourcesContent":["import * as React from \"react\"\n\nimport { cn } from \"@core/lib/utils\"\n\nexport interface SectionSubtitleProps\n extends React.HTMLAttributes<HTMLParagraphElement> {\n /** Alinhamento. Default `\"center\"`. */\n align?: \"left\" | \"center\"\n}\n\n/**\n * Body de apoio abaixo do `SectionHeading` — explica ou complementa o titulo\n * em uma frase. Cor muted, leading relaxado, max-width que evita linhas longas.\n *\n * @example\n * <SectionHeading>Nossa solucao em 3 passos</SectionHeading>\n * <SectionSubtitle>\n * Do diagnostico ao certificado, num caminho desenhado pra resultado.\n * </SectionSubtitle>\n */\nconst SectionSubtitle = React.forwardRef<HTMLParagraphElement, SectionSubtitleProps>(\n function SectionSubtitle({ align = \"center\", className, ...props }, ref) {\n return (\n <p\n ref={ref}\n data-slot=\"section-subtitle\"\n className={cn(\n \"text-base sm:text-lg md:text-xl text-muted-foreground leading-relaxed text-balance max-w-3xl\",\n align === \"center\" ? \"text-center mx-auto\" : \"text-left\",\n className\n )}\n {...props}\n />\n )\n }\n)\n\nexport { SectionSubtitle }\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type CardDarkGlowTag = "div" | "article" | "section";
|
|
4
|
+
interface CardDarkGlowProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
/** Tag renderizada. Default `"div"`. */
|
|
6
|
+
as?: CardDarkGlowTag;
|
|
7
|
+
/**
|
|
8
|
+
* Habilita lift visual no hover (`translateY(-3px)` + glow mais forte).
|
|
9
|
+
* Default `true`. Use `false` em cards que sao apenas conteudo (sem ser link/clicavel).
|
|
10
|
+
*/
|
|
11
|
+
interactive?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Wrapper de card com inset highlight + sombra com glow rose subtil + hover
|
|
15
|
+
* lift opcional. Pareie com `CircleGlow` (no container externo) pra entregar o
|
|
16
|
+
* efeito "dark premium" que repete pelas dobras do corporate.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <CardDarkGlow className="rounded-2xl bg-card border p-6">
|
|
20
|
+
* <h3>Titulo</h3>
|
|
21
|
+
* <p>Descricao do card</p>
|
|
22
|
+
* </CardDarkGlow>
|
|
23
|
+
*
|
|
24
|
+
* <CardDarkGlow as="article" interactive={false}>
|
|
25
|
+
* ...card nao-interativo, sem hover lift
|
|
26
|
+
* </CardDarkGlow>
|
|
27
|
+
*/
|
|
28
|
+
declare const CardDarkGlow: React.ForwardRefExoticComponent<CardDarkGlowProps & React.RefAttributes<HTMLElement>>;
|
|
29
|
+
|
|
30
|
+
export { CardDarkGlow, type CardDarkGlowProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"card-dark-glow.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CircleGlowProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/**
|
|
5
|
+
* Tamanho relativo do glow. Controla o `transform: scale()` aplicado ao
|
|
6
|
+
* elemento. Default `"lg"` (escala 1.0).
|
|
7
|
+
*/
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Decoracao de glow circular pulsante. Posicionada `absolute` — o **container
|
|
12
|
+
* deve ser `relative`**. Idealmente coloque atras dos cards usando `-z-10`
|
|
13
|
+
* (ou similar) via `className`.
|
|
14
|
+
*
|
|
15
|
+
* Sempre `aria-hidden` e `pointer-events: none` (e puramente visual).
|
|
16
|
+
* Respeita `prefers-reduced-motion`.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <div className="relative">
|
|
20
|
+
* <CircleGlow className="-z-10" />
|
|
21
|
+
* <div className="grid grid-cols-3 gap-6">{cards}</div>
|
|
22
|
+
* </div>
|
|
23
|
+
*/
|
|
24
|
+
declare const CircleGlow: React.ForwardRefExoticComponent<CircleGlowProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
|
|
26
|
+
export { CircleGlow, type CircleGlowProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"circle-glow.js"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface HandUnderlineProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
4
|
+
/** Delay em ms entre intersecao no viewport e inicio do draw. Default `600`. */
|
|
5
|
+
delay?: number;
|
|
6
|
+
/** Duracao do draw em ms (stroke-dashoffset 240 → 0). Default `780`. */
|
|
7
|
+
duration?: number;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Wrapper que desenha um underline SVG em curva sutil abaixo do texto, animado
|
|
12
|
+
* via stroke-dasharray quando entra no viewport. Util pra dar enfase em
|
|
13
|
+
* palavras-chave em headings sem usar bold/color.
|
|
14
|
+
*
|
|
15
|
+
* Cor do stroke: `currentColor` — herda do parent. Wrappa com
|
|
16
|
+
* `<span className="text-[color:var(--brand-default)]">` ou outra cor.
|
|
17
|
+
*
|
|
18
|
+
* Acessibilidade:
|
|
19
|
+
* - SVG `aria-hidden` (decorativo).
|
|
20
|
+
* - `prefers-reduced-motion: reduce` — desenha o underline completo direto,
|
|
21
|
+
* sem animar.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <h2>
|
|
25
|
+
* Acelere o ingles do seu{" "}
|
|
26
|
+
* <HandUnderline className="text-[color:var(--brand-default)]">
|
|
27
|
+
* time corporativo
|
|
28
|
+
* </HandUnderline>
|
|
29
|
+
* </h2>
|
|
30
|
+
*/
|
|
31
|
+
declare const HandUnderline: React.ForwardRefExoticComponent<HandUnderlineProps & React.RefAttributes<HTMLSpanElement>>;
|
|
32
|
+
|
|
33
|
+
export { HandUnderline, type HandUnderlineProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
export { HandUnderline } from '../chunk-KWQHWZI7.js';
|
|
3
|
+
import '../chunk-OHRYR7PN.js';
|
|
4
|
+
import '../chunk-T7EIAVSF.js';
|
|
5
|
+
import '../chunk-W4KJCBMW.js';
|
|
6
|
+
import '../chunk-2NMEKWO5.js';
|
|
7
|
+
//# sourceMappingURL=hand-underline.js.map
|
|
8
|
+
//# sourceMappingURL=hand-underline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"hand-underline.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CircleGlow, CircleGlowProps } from './circle-glow.js';
|
|
2
|
+
export { CardDarkGlow, CardDarkGlowProps } from './card-dark-glow.js';
|
|
3
|
+
export { Marquee, MarqueeProps } from './marquee.js';
|
|
4
|
+
export { MagneticButton, MagneticButtonProps } from './magnetic-button.js';
|
|
5
|
+
export { RotatingWord, RotatingWordProps } from './rotating-word.js';
|
|
6
|
+
export { HandUnderline, HandUnderlineProps } from './hand-underline.js';
|
|
7
|
+
import 'react';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import '../chunk-YVBHOWUJ.js';
|
|
3
|
+
export { Marquee } from '../chunk-WZIXM2X2.js';
|
|
4
|
+
export { RotatingWord } from '../chunk-KIXWOUY4.js';
|
|
5
|
+
export { HandUnderline } from '../chunk-KWQHWZI7.js';
|
|
6
|
+
export { MagneticButton } from '../chunk-VNGGZL6V.js';
|
|
7
|
+
export { CircleGlow } from '../chunk-YYH3A42F.js';
|
|
8
|
+
export { CardDarkGlow } from '../chunk-CHSR2ETD.js';
|
|
9
|
+
import '../chunk-OHRYR7PN.js';
|
|
10
|
+
import '../chunk-T7EIAVSF.js';
|
|
11
|
+
import '../chunk-W4KJCBMW.js';
|
|
12
|
+
import '../chunk-2NMEKWO5.js';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface MagneticButtonProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
/** Multiplicador do offset (quanto o filho "puxa" em direcao ao cursor). Default `0.25`. */
|
|
5
|
+
strength?: number;
|
|
6
|
+
/** Distancia em px na qual o efeito ativa. Default `100`. */
|
|
7
|
+
radius?: number;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Wrapper que aplica efeito magnetico no filho (puxa em direcao ao cursor
|
|
12
|
+
* quando proximo). Inspirado em CTAs premium de landing pages.
|
|
13
|
+
*
|
|
14
|
+
* Otimizacoes de performance:
|
|
15
|
+
* - Escreve `transform` direto no DOM via ref (sem React state na hot path).
|
|
16
|
+
* - Throttle com `requestAnimationFrame` (max 1 update por frame).
|
|
17
|
+
* - `IntersectionObserver` gating: so processa `mousemove` quando visivel
|
|
18
|
+
* (rootMargin 200px pra suavidade na entrada).
|
|
19
|
+
*
|
|
20
|
+
* Acessibilidade:
|
|
21
|
+
* - Skip total se `prefers-reduced-motion: reduce`.
|
|
22
|
+
* - Skip total em `pointer: coarse` (touch devices) — sem cursor real.
|
|
23
|
+
*
|
|
24
|
+
* O drop-shadow usa CSS vars (`--shadow-brand-glow-idle/-hover`) — consumer
|
|
25
|
+
* pode override pro brand proprio sem mexer no componente.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <MagneticButton>
|
|
29
|
+
* <a href="#vendas">
|
|
30
|
+
* <Button variant="default">CTA principal</Button>
|
|
31
|
+
* </a>
|
|
32
|
+
* </MagneticButton>
|
|
33
|
+
*/
|
|
34
|
+
declare const MagneticButton: React.ForwardRefExoticComponent<MagneticButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
|
|
36
|
+
export { MagneticButton, type MagneticButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"magnetic-button.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface MarqueeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Duracao de um ciclo completo em segundos. Default `40`. */
|
|
5
|
+
speed?: number;
|
|
6
|
+
/** Direcao do movimento. Default `"left"`. */
|
|
7
|
+
direction?: "left" | "right";
|
|
8
|
+
/** Pausa em `:hover` e `:focus-within`. Default `true` (acessibilidade). */
|
|
9
|
+
pauseOnHover?: boolean;
|
|
10
|
+
/** Espacamento entre cada item em px. Default `48`. */
|
|
11
|
+
gap?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Scroll horizontal infinito (logo cloud, partner band). Duplica os children
|
|
15
|
+
* internamente pra criar loop seamless. Pausa em hover/focus pra dar tempo
|
|
16
|
+
* de leitura. Respeita `prefers-reduced-motion` (anima zerada).
|
|
17
|
+
*
|
|
18
|
+
* Importante: a duplicacao usa `aria-hidden` no segundo bloco pra evitar
|
|
19
|
+
* leitura repetida por screen readers.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Marquee speed={30} gap={64}>
|
|
23
|
+
* <img src="/logos/logo-a.png" alt="Cliente A" />
|
|
24
|
+
* <img src="/logos/logo-b.png" alt="Cliente B" />
|
|
25
|
+
* <img src="/logos/logo-c.png" alt="Cliente C" />
|
|
26
|
+
* </Marquee>
|
|
27
|
+
*/
|
|
28
|
+
declare const Marquee: React.ForwardRefExoticComponent<MarqueeProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
|
|
30
|
+
export { Marquee, type MarqueeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"marquee.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface RotatingWordProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, "children"> {
|
|
4
|
+
/** Lista de palavras a ciclar (typewriter). */
|
|
5
|
+
words: string[];
|
|
6
|
+
/** Velocidade de digitacao em ms por caractere. Default `80`. */
|
|
7
|
+
typingMs?: number;
|
|
8
|
+
/** Velocidade de apagar em ms por caractere. Default `45`. */
|
|
9
|
+
eraseMs?: number;
|
|
10
|
+
/** Tempo segurando a palavra completa em ms. Default `1500`. */
|
|
11
|
+
holdMs?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Typewriter de palavras em loop. Util em headings de hero para destacar
|
|
15
|
+
* caracteristicas ou propostas de valor que rotacionam.
|
|
16
|
+
*
|
|
17
|
+
* State machine: `typing → holding → erasing → next word`.
|
|
18
|
+
*
|
|
19
|
+
* Cor herda do parent via `currentColor` — wrappa com `text-[color]` ou
|
|
20
|
+
* `text-foreground` no consumer pra controlar. O cursor blink usa a mesma
|
|
21
|
+
* cor do texto (`bg-current`).
|
|
22
|
+
*
|
|
23
|
+
* Acessibilidade:
|
|
24
|
+
* - `aria-live="polite"` + `aria-atomic="true"` — screen reader anuncia a
|
|
25
|
+
* palavra completa apos cada ciclo, sem ler caractere por caractere.
|
|
26
|
+
* - `prefers-reduced-motion: reduce` — renderiza so a primeira palavra,
|
|
27
|
+
* estatica, sem cursor.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <h1>
|
|
31
|
+
* Aprenda ingles com{" "}
|
|
32
|
+
* <RotatingWord
|
|
33
|
+
* className="text-[color:var(--brand-default)]"
|
|
34
|
+
* words={["IA", "proposito", "confianca"]}
|
|
35
|
+
* />
|
|
36
|
+
* </h1>
|
|
37
|
+
*/
|
|
38
|
+
declare const RotatingWord: React.ForwardRefExoticComponent<RotatingWordProps & React.RefAttributes<HTMLSpanElement>>;
|
|
39
|
+
|
|
40
|
+
export { RotatingWord, type RotatingWordProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"rotating-word.js"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
interface UseIntersectionOptions {
|
|
2
|
+
/** Quanto do elemento precisa estar visivel pra disparar (0-1). Default `0.15`. */
|
|
3
|
+
threshold?: number;
|
|
4
|
+
/** Margin do viewport (CSS shorthand). Default `"0px 0px -10% 0px"`. */
|
|
5
|
+
rootMargin?: string;
|
|
6
|
+
/** Container alternativo (default: viewport). */
|
|
7
|
+
root?: Element | null;
|
|
8
|
+
/** Quando `true`, desliga o observer apos a primeira intersecao. Default `true`. */
|
|
9
|
+
once?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Quando `true`, comeca como visivel (sem aguardar observer). Util quando
|
|
12
|
+
* `useReducedMotion()` e true e queremos pular a animacao de entrada.
|
|
13
|
+
*/
|
|
14
|
+
startVisible?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Observa um elemento e retorna `{ ref, isVisible }`. Reusado por
|
|
18
|
+
* `RevealOnScroll`, `StaggerReveal` e `AnimatedNumber`.
|
|
19
|
+
*
|
|
20
|
+
* Comportamento:
|
|
21
|
+
* - SSR-safe (so monta IntersectionObserver no client).
|
|
22
|
+
* - `once=true` (default) desconecta o observer apos a primeira intersecao.
|
|
23
|
+
* - `startVisible=true` ja entrega `isVisible: true` no primeiro render.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const { ref, isVisible } = useIntersection({ threshold: 0.4 })
|
|
27
|
+
* return <div ref={ref}>{isVisible ? "visible" : "hidden"}</div>
|
|
28
|
+
*/
|
|
29
|
+
declare function useIntersection<T extends HTMLElement = HTMLDivElement>(options?: UseIntersectionOptions): {
|
|
30
|
+
ref: React.RefObject<T | null>;
|
|
31
|
+
isVisible: boolean;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { type UseIntersectionOptions, useIntersection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-intersection.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `true` quando o usuario habilitou "prefers-reduced-motion" no SO.
|
|
3
|
+
* Componentes do `marketing/motion/*` consultam esse hook pra desligar animacoes
|
|
4
|
+
* (resolver para o estado final direto) — requisito WCAG 2.3.3.
|
|
5
|
+
*
|
|
6
|
+
* SSR-safe: comeca em `false` no server e atualiza no client apos mount.
|
|
7
|
+
* Reage a mudancas dinamicas (usuario toggla a preferencia com a aba aberta).
|
|
8
|
+
*/
|
|
9
|
+
declare function useReducedMotion(): boolean;
|
|
10
|
+
|
|
11
|
+
export { useReducedMotion };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"use-reduced-motion.js"}
|