@openwarelabs/blocks 0.8.0 → 0.9.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.d.cts CHANGED
@@ -48,4 +48,10 @@ export { Footer03 } from "./footers/Footer03/Footer03.cjs";
48
48
  export type { Footer03Labels, Footer03Newsletter, Footer03Props } from "./footers/Footer03/Footer03.types.cjs";
49
49
  export { Footer04 } from "./footers/Footer04/Footer04.cjs";
50
50
  export type { Footer04Props } from "./footers/Footer04/Footer04.types.cjs";
51
+ export { Cta01 } from "./calls-to-action/Cta01/Cta01.cjs";
52
+ export type { Cta01Props } from "./calls-to-action/Cta01/Cta01.types.cjs";
53
+ export { Cta02 } from "./calls-to-action/Cta02/Cta02.cjs";
54
+ export type { Cta02Props } from "./calls-to-action/Cta02/Cta02.types.cjs";
55
+ export { Cta03 } from "./calls-to-action/Cta03/Cta03.cjs";
56
+ export type { Cta03Props } from "./calls-to-action/Cta03/Cta03.types.cjs";
51
57
  export type { BlockAction, BlockBrand, BlockLink, FooterColumn, HeaderLink } from "./shared/shared.types.cjs";
package/dist/index.d.ts CHANGED
@@ -48,4 +48,10 @@ export { Footer03 } from "./footers/Footer03/Footer03.js";
48
48
  export type { Footer03Labels, Footer03Newsletter, Footer03Props } from "./footers/Footer03/Footer03.types.js";
49
49
  export { Footer04 } from "./footers/Footer04/Footer04.js";
50
50
  export type { Footer04Props } from "./footers/Footer04/Footer04.types.js";
51
+ export { Cta01 } from "./calls-to-action/Cta01/Cta01.js";
52
+ export type { Cta01Props } from "./calls-to-action/Cta01/Cta01.types.js";
53
+ export { Cta02 } from "./calls-to-action/Cta02/Cta02.js";
54
+ export type { Cta02Props } from "./calls-to-action/Cta02/Cta02.types.js";
55
+ export { Cta03 } from "./calls-to-action/Cta03/Cta03.js";
56
+ export type { Cta03Props } from "./calls-to-action/Cta03/Cta03.types.js";
51
57
  export type { BlockAction, BlockBrand, BlockLink, FooterColumn, HeaderLink } from "./shared/shared.types.js";
package/dist/index.js CHANGED
@@ -1569,7 +1569,71 @@ function Footer04({ title, titleMuted, primaryAction, columns, legal, legalLinks
1569
1569
  /* @__PURE__ */ jsx28("div", { className: "ow-footer04__name", "aria-hidden": "true", children: /* @__PURE__ */ jsx28("div", { className: "ow-footer04__crop", children: /* @__PURE__ */ jsx28("span", { children: wordmark }) }) })
1570
1570
  ] }) });
1571
1571
  }
1572
+
1573
+ // blocks/src/calls-to-action/Cta01/Cta01.tsx
1574
+ import { useId as useId22 } from "react";
1575
+ import { cx as cx27, DotGrid as DotGrid3, Text as Text25 } from "@openwarelabs/ui";
1576
+ import { jsx as jsx29, jsxs as jsxs30 } from "react/jsx-runtime";
1577
+ function Cta01({ title, description, primaryAction, secondaryAction, note, className, ...props }) {
1578
+ const id = useId22();
1579
+ return /* @__PURE__ */ jsx29("section", { className: cx27("ow-cta01", className), "aria-labelledby": id, ...props, children: /* @__PURE__ */ jsx29(DotGrid3, { fade: true, className: "ow-cta01__panel", children: /* @__PURE__ */ jsxs30("div", { className: "ow-cta01__content", children: [
1580
+ /* @__PURE__ */ jsxs30("div", { className: "ow-cta01__text", children: [
1581
+ /* @__PURE__ */ jsx29(Text25, { variant: "section-title", id, children: title }),
1582
+ description ? /* @__PURE__ */ jsx29(Text25, { variant: "lead", className: "ow-cta01__lead", children: description }) : null
1583
+ ] }),
1584
+ /* @__PURE__ */ jsxs30("div", { className: "ow-cta01__side", children: [
1585
+ /* @__PURE__ */ jsx29(BlockActions, { className: "ow-cta01__actions", primary: primaryAction, secondary: secondaryAction }),
1586
+ note ? /* @__PURE__ */ jsx29(Text25, { as: "p", variant: "caption", className: "ow-cta01__note", children: note }) : null
1587
+ ] })
1588
+ ] }) }) });
1589
+ }
1590
+
1591
+ // blocks/src/calls-to-action/Cta02/Cta02.tsx
1592
+ import { useId as useId23 } from "react";
1593
+ import { cx as cx28, DotGrid as DotGrid4, Link as Link16, Text as Text26 } from "@openwarelabs/ui";
1594
+ import { jsx as jsx30, jsxs as jsxs31 } from "react/jsx-runtime";
1595
+ function Cta02({ eyebrow, title, description, primaryAction, secondaryLink, facts, className, ...props }) {
1596
+ const id = useId23();
1597
+ return /* @__PURE__ */ jsx30("section", { className: cx28("ow-cta02", className), "aria-labelledby": id, ...props, children: /* @__PURE__ */ jsx30(DotGrid4, { fade: true, className: "ow-cta02__plate", children: /* @__PURE__ */ jsxs31("div", { className: "ow-cta02__content", children: [
1598
+ eyebrow ? /* @__PURE__ */ jsx30(Text26, { as: "p", variant: "body", className: "ow-cta02__eyebrow", children: eyebrow }) : null,
1599
+ /* @__PURE__ */ jsx30(Text26, { as: "h2", variant: "page-title", id, className: "ow-cta02__title", children: title }),
1600
+ description ? /* @__PURE__ */ jsx30(Text26, { variant: "lead", className: "ow-cta02__lead", children: description }) : null,
1601
+ /* @__PURE__ */ jsxs31("div", { className: "ow-cta02__actions", children: [
1602
+ /* @__PURE__ */ jsx30(BlockActionButton, { action: primaryAction, variant: "secondary", className: "ow-cta02__action" }),
1603
+ secondaryLink ? /* @__PURE__ */ jsxs31(Link16, { href: secondaryLink.href, variant: "standalone", className: "ow-cta02__link", children: [
1604
+ /* @__PURE__ */ jsx30(Text26, { variant: "label", children: secondaryLink.label }),
1605
+ /* @__PURE__ */ jsx30(ArrowRightIcon, { size: 16 })
1606
+ ] }) : null
1607
+ ] }),
1608
+ facts?.length ? /* @__PURE__ */ jsx30("ul", { className: "ow-cta02__facts", children: facts.map((fact, index) => /* @__PURE__ */ jsxs31(Text26, { as: "li", variant: "body", children: [
1609
+ /* @__PURE__ */ jsx30(CheckIcon, { size: 15 }),
1610
+ fact
1611
+ ] }, index)) }) : null
1612
+ ] }) }) });
1613
+ }
1614
+
1615
+ // blocks/src/calls-to-action/Cta03/Cta03.tsx
1616
+ import { useId as useId24 } from "react";
1617
+ import { cx as cx29, SectionHeading as SectionHeading11, Text as Text27 } from "@openwarelabs/ui";
1618
+ import { jsx as jsx31, jsxs as jsxs32 } from "react/jsx-runtime";
1619
+ function Cta03({ eyebrow, title, description, primaryAction, secondaryAction, points, visual, className, ...props }) {
1620
+ const id = useId24();
1621
+ return /* @__PURE__ */ jsx31("section", { className: cx29("ow-cta03", className), "aria-labelledby": id, ...props, children: /* @__PURE__ */ jsxs32("div", { className: "ow-cta03__inner", children: [
1622
+ /* @__PURE__ */ jsxs32("div", { children: [
1623
+ /* @__PURE__ */ jsx31(SectionHeading11, { eyebrow, title: /* @__PURE__ */ jsx31("span", { id, children: title }), intro: description }),
1624
+ /* @__PURE__ */ jsx31(BlockActions, { className: "ow-cta03__actions", primary: primaryAction, secondary: secondaryAction }),
1625
+ points?.length ? /* @__PURE__ */ jsx31("ul", { className: "ow-cta03__points", children: points.map((point, index) => /* @__PURE__ */ jsxs32(Text27, { as: "li", variant: "body", tone: "soft", children: [
1626
+ /* @__PURE__ */ jsx31(CheckIcon, { size: 16 }),
1627
+ point
1628
+ ] }, index)) }) : null
1629
+ ] }),
1630
+ visual
1631
+ ] }) });
1632
+ }
1572
1633
  export {
1634
+ Cta01,
1635
+ Cta02,
1636
+ Cta03,
1573
1637
  Features01,
1574
1638
  Features02,
1575
1639
  Features03,