rothzerg-ui 0.1.20 → 0.1.21

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../utils/cn.cjs");;/* empty css */const m=require("../../components/rows/Rows.cjs"),i=require("../../components/text/Text.cjs"),t=require("../../components/columns/Columns.cjs");function x({variant:r="centered",eyebrow:s,title:h,description:n,actions:c,socialProof:a,media:o,showGrid:d=!1,showGradient:_=!0,className:u}){return e.jsxs("section",{className:l.cn("rz-hero",`rz-hero--${r}`,u),children:[d&&e.jsx("div",{className:"rz-hero__bg-grid","aria-hidden":"true"}),_&&e.jsx("div",{className:"rz-hero__bg-gradient","aria-hidden":"true"}),e.jsxs("div",{className:"rz-hero__container",children:[e.jsxs(m.Rows,{className:"rz-hero__content",children:[s&&e.jsx(i.Text,{as:"span",className:"rz-hero__eyebrow",children:s}),e.jsx(i.Text,{as:"h1",className:"rz-hero__title",children:h}),n&&e.jsx(i.Text,{as:"p",className:"rz-hero__description",children:n}),c&&e.jsx(t.Columns,{className:"rz-hero__actions",children:c}),a&&e.jsx(t.Columns,{className:"rz-hero__social-proof",children:a})]}),r==="split"&&o&&e.jsx("div",{className:"rz-hero__media",children:o})]})]})}function j({children:r,className:s}){return e.jsx("span",{className:l.cn("rz-hero__title-highlight",s),children:r})}exports.Hero=x;exports.HeroHighlight=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../utils/cn.cjs");;/* empty css */const g=require("../../components/rows/Rows.cjs"),o=require("../../components/text/Text.cjs"),d=require("../../components/columns/Columns.cjs");function z({variant:r="centered",eyebrow:s,title:p,description:a,actions:l,stats:c,socialProof:h,media:n,showGrid:t=!1,showGradient:_=!0,className:m}){const u=r==="split"||r==="mobile-app",x=r==="mobile-app"&&_;return e.jsxs("section",{className:i.cn("rz-hero",`rz-hero--${r}`,m),children:[t&&r!=="mobile-app"&&e.jsx("div",{className:"rz-hero__bg-grid","aria-hidden":"true"}),_&&r!=="mobile-app"&&e.jsx("div",{className:"rz-hero__bg-gradient","aria-hidden":"true"}),x&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"rz-hero__bg-app rz-hero__bg-app--glow-a","aria-hidden":"true"}),e.jsx("div",{className:"rz-hero__bg-app rz-hero__bg-app--glow-b","aria-hidden":"true"}),e.jsx("div",{className:"rz-hero__bg-app rz-hero__bg-app--mesh","aria-hidden":"true"})]}),e.jsxs("div",{className:"rz-hero__container",children:[e.jsxs(g.Rows,{className:"rz-hero__content",children:[s&&e.jsxs(o.Text,{as:"span",className:i.cn("rz-hero__eyebrow",r==="mobile-app"&&"rz-hero__eyebrow--pill"),children:[r==="mobile-app"&&e.jsx("span",{className:"rz-hero__eyebrow-dot","aria-hidden":"true"}),s]}),e.jsx(o.Text,{as:"h1",className:"rz-hero__title",children:p}),a&&e.jsx(o.Text,{as:"p",className:"rz-hero__description",children:a}),l&&e.jsx(d.Columns,{className:"rz-hero__actions",children:l}),r==="mobile-app"&&c&&e.jsx("div",{className:"rz-hero__stats",children:c}),h&&e.jsx(d.Columns,{className:"rz-hero__social-proof",children:h})]}),u&&n&&e.jsx("div",{className:"rz-hero__media",children:n})]})]})}function b({children:r,className:s}){return e.jsx("span",{className:i.cn("rz-hero__title-highlight",s),children:r})}exports.Hero=z;exports.HeroHighlight=b;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  export interface HeroProps {
3
3
  /** Layout variant */
4
- variant?: 'centered' | 'split';
4
+ variant?: 'centered' | 'split' | 'mobile-app';
5
5
  /** Small label above the title */
6
6
  eyebrow?: React.ReactNode;
7
7
  /** Main headline. Use <HeroHighlight> to color part of it. */
@@ -10,9 +10,11 @@ export interface HeroProps {
10
10
  description?: React.ReactNode;
11
11
  /** Primary + secondary CTA buttons */
12
12
  actions?: React.ReactNode;
13
+ /** Metrics row (e.g. 200+ plans). Shown when `variant` is `mobile-app`. */
14
+ stats?: React.ReactNode;
13
15
  /** Social proof (e.g. avatar group + "X teams trust us") */
14
16
  socialProof?: React.ReactNode;
15
- /** Image or component in the split layout's right column */
17
+ /** Image or component in the split / mobile-app layout's second column */
16
18
  media?: React.ReactNode;
17
19
  /** Show decorative grid background */
18
20
  showGrid?: boolean;
@@ -23,7 +25,7 @@ export interface HeroProps {
23
25
  /**
24
26
  * Hero
25
27
  *
26
- * A full-page hero section with centered or split layouts.
28
+ * A full-page hero section with centered, split, or mobile-app (marketing + device) layouts.
27
29
  * Compose with `HeroHighlight` for colored headline accents.
28
30
  *
29
31
  * @example
@@ -36,7 +38,7 @@ export interface HeroProps {
36
38
  * showGrid
37
39
  * />
38
40
  */
39
- export declare function Hero({ variant, eyebrow, title, description, actions, socialProof, media, showGrid, showGradient, className, }: HeroProps): import("react/jsx-runtime").JSX.Element;
41
+ export declare function Hero({ variant, eyebrow, title, description, actions, stats, socialProof, media, showGrid, showGradient, className, }: HeroProps): import("react/jsx-runtime").JSX.Element;
40
42
  /** Highlight a portion of the hero title with the primary color */
41
43
  export declare function HeroHighlight({ children, className }: {
42
44
  children: React.ReactNode;
@@ -1,40 +1,58 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { cn as t } from "../../utils/cn.js";
1
+ import { jsxs as o, jsx as e, Fragment as N } from "react/jsx-runtime";
2
+ import { cn as s } from "../../utils/cn.js";
3
3
  /* empty css */
4
- import { Rows as p } from "../../components/rows/Rows.js";
5
- import { Text as a } from "../../components/text/Text.js";
6
- import { Columns as n } from "../../components/columns/Columns.js";
7
- function H({
8
- variant: e = "centered",
9
- eyebrow: s,
10
- title: m,
11
- description: o,
4
+ import { Rows as u } from "../../components/rows/Rows.js";
5
+ import { Text as i } from "../../components/text/Text.js";
6
+ import { Columns as d } from "../../components/columns/Columns.js";
7
+ function y({
8
+ variant: r = "centered",
9
+ eyebrow: a,
10
+ title: n,
11
+ description: l,
12
12
  actions: h,
13
- socialProof: c,
14
- media: l,
15
- showGrid: _ = !1,
16
- showGradient: d = !0,
13
+ stats: p,
14
+ socialProof: _,
15
+ media: c,
16
+ showGrid: t = !1,
17
+ showGradient: m = !0,
17
18
  className: z
18
19
  }) {
19
- return /* @__PURE__ */ i("section", { className: t("rz-hero", `rz-hero--${e}`, z), children: [
20
- _ && /* @__PURE__ */ r("div", { className: "rz-hero__bg-grid", "aria-hidden": "true" }),
21
- d && /* @__PURE__ */ r("div", { className: "rz-hero__bg-gradient", "aria-hidden": "true" }),
22
- /* @__PURE__ */ i("div", { className: "rz-hero__container", children: [
23
- /* @__PURE__ */ i(p, { className: "rz-hero__content", children: [
24
- s && /* @__PURE__ */ r(a, { as: "span", className: "rz-hero__eyebrow", children: s }),
25
- /* @__PURE__ */ r(a, { as: "h1", className: "rz-hero__title", children: m }),
26
- o && /* @__PURE__ */ r(a, { as: "p", className: "rz-hero__description", children: o }),
27
- h && /* @__PURE__ */ r(n, { className: "rz-hero__actions", children: h }),
28
- c && /* @__PURE__ */ r(n, { className: "rz-hero__social-proof", children: c })
20
+ const b = r === "split" || r === "mobile-app", g = r === "mobile-app" && m;
21
+ return /* @__PURE__ */ o("section", { className: s("rz-hero", `rz-hero--${r}`, z), children: [
22
+ t && r !== "mobile-app" && /* @__PURE__ */ e("div", { className: "rz-hero__bg-grid", "aria-hidden": "true" }),
23
+ m && r !== "mobile-app" && /* @__PURE__ */ e("div", { className: "rz-hero__bg-gradient", "aria-hidden": "true" }),
24
+ g && /* @__PURE__ */ o(N, { children: [
25
+ /* @__PURE__ */ e("div", { className: "rz-hero__bg-app rz-hero__bg-app--glow-a", "aria-hidden": "true" }),
26
+ /* @__PURE__ */ e("div", { className: "rz-hero__bg-app rz-hero__bg-app--glow-b", "aria-hidden": "true" }),
27
+ /* @__PURE__ */ e("div", { className: "rz-hero__bg-app rz-hero__bg-app--mesh", "aria-hidden": "true" })
28
+ ] }),
29
+ /* @__PURE__ */ o("div", { className: "rz-hero__container", children: [
30
+ /* @__PURE__ */ o(u, { className: "rz-hero__content", children: [
31
+ a && /* @__PURE__ */ o(
32
+ i,
33
+ {
34
+ as: "span",
35
+ className: s("rz-hero__eyebrow", r === "mobile-app" && "rz-hero__eyebrow--pill"),
36
+ children: [
37
+ r === "mobile-app" && /* @__PURE__ */ e("span", { className: "rz-hero__eyebrow-dot", "aria-hidden": "true" }),
38
+ a
39
+ ]
40
+ }
41
+ ),
42
+ /* @__PURE__ */ e(i, { as: "h1", className: "rz-hero__title", children: n }),
43
+ l && /* @__PURE__ */ e(i, { as: "p", className: "rz-hero__description", children: l }),
44
+ h && /* @__PURE__ */ e(d, { className: "rz-hero__actions", children: h }),
45
+ r === "mobile-app" && p && /* @__PURE__ */ e("div", { className: "rz-hero__stats", children: p }),
46
+ _ && /* @__PURE__ */ e(d, { className: "rz-hero__social-proof", children: _ })
29
47
  ] }),
30
- e === "split" && l && /* @__PURE__ */ r("div", { className: "rz-hero__media", children: l })
48
+ b && c && /* @__PURE__ */ e("div", { className: "rz-hero__media", children: c })
31
49
  ] })
32
50
  ] });
33
51
  }
34
- function b({ children: e, className: s }) {
35
- return /* @__PURE__ */ r("span", { className: t("rz-hero__title-highlight", s), children: e });
52
+ function A({ children: r, className: a }) {
53
+ return /* @__PURE__ */ e("span", { className: s("rz-hero__title-highlight", a), children: r });
36
54
  }
37
55
  export {
38
- H as Hero,
39
- b as HeroHighlight
56
+ y as Hero,
57
+ A as HeroHighlight
40
58
  };