@opensite/ui 3.3.0 → 3.3.2

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.
Files changed (43) hide show
  1. package/dist/article-breadcrumb-social.cjs +4 -7
  2. package/dist/article-breadcrumb-social.d.cts +2 -11
  3. package/dist/article-breadcrumb-social.d.ts +2 -11
  4. package/dist/article-breadcrumb-social.js +4 -7
  5. package/dist/article-chapters-author.cjs +3 -6
  6. package/dist/article-chapters-author.d.cts +2 -11
  7. package/dist/article-chapters-author.d.ts +2 -11
  8. package/dist/article-chapters-author.js +3 -6
  9. package/dist/article-compact-toc.cjs +4 -7
  10. package/dist/article-compact-toc.d.cts +2 -11
  11. package/dist/article-compact-toc.d.ts +2 -11
  12. package/dist/article-compact-toc.js +4 -7
  13. package/dist/article-hero-prose.cjs +4 -7
  14. package/dist/article-hero-prose.d.cts +2 -11
  15. package/dist/article-hero-prose.d.ts +2 -11
  16. package/dist/article-hero-prose.js +4 -7
  17. package/dist/article-sidebar-sticky.cjs +3 -6
  18. package/dist/article-sidebar-sticky.d.cts +2 -11
  19. package/dist/article-sidebar-sticky.d.ts +2 -11
  20. package/dist/article-sidebar-sticky.js +3 -6
  21. package/dist/article-toc-sidebar.cjs +3 -6
  22. package/dist/article-toc-sidebar.d.cts +1 -10
  23. package/dist/article-toc-sidebar.d.ts +1 -10
  24. package/dist/article-toc-sidebar.js +3 -6
  25. package/dist/feature-capabilities-grid.cjs +10 -43
  26. package/dist/feature-capabilities-grid.d.cts +0 -4
  27. package/dist/feature-capabilities-grid.d.ts +0 -4
  28. package/dist/feature-capabilities-grid.js +10 -43
  29. package/dist/hero-conversation-intelligence.cjs +1 -1
  30. package/dist/hero-conversation-intelligence.js +1 -1
  31. package/dist/longform-content.cjs +1 -1
  32. package/dist/longform-content.d.cts +1 -1
  33. package/dist/longform-content.d.ts +1 -1
  34. package/dist/longform-content.js +1 -1
  35. package/dist/navbar-mega-menu.cjs +14 -5
  36. package/dist/navbar-mega-menu.js +14 -5
  37. package/dist/registry.cjs +64 -117
  38. package/dist/registry.js +64 -117
  39. package/dist/stats-growth-timeline.cjs +87 -64
  40. package/dist/stats-growth-timeline.d.cts +5 -1
  41. package/dist/stats-growth-timeline.d.ts +5 -1
  42. package/dist/stats-growth-timeline.js +88 -65
  43. package/package.json +1 -1
@@ -500,7 +500,7 @@ var Section = React4__namespace.default.forwardRef(
500
500
  Section.displayName = "Section";
501
501
  function LongformContent({
502
502
  children,
503
- renderMode = "jsx",
503
+ renderMode = "markdown",
504
504
  markdownString,
505
505
  optixFlowConfig,
506
506
  markdownStyles
@@ -559,8 +559,6 @@ function ArticleTocSidebarComponent({
559
559
  ctaDescription,
560
560
  ctaActions,
561
561
  ctaSlot,
562
- children,
563
- renderMode = "jsx",
564
562
  markdownString,
565
563
  markdownStyles,
566
564
  enableTocTracking = true,
@@ -752,11 +750,10 @@ function ArticleTocSidebarComponent({
752
750
  /* @__PURE__ */ jsxRuntime.jsx(
753
751
  LongformContent,
754
752
  {
755
- renderMode,
753
+ renderMode: "markdown",
756
754
  markdownString,
757
755
  optixFlowConfig,
758
- markdownStyles,
759
- children
756
+ markdownStyles
760
757
  }
761
758
  ),
762
759
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -136,15 +136,6 @@ interface ArticleTocSidebarProps {
136
136
  * Custom slot for CTA section (overrides CTA props)
137
137
  */
138
138
  ctaSlot?: React.ReactNode;
139
- /**
140
- * Article body content (replaces hardcoded prose)
141
- */
142
- children?: React.ReactNode;
143
- /**
144
- * Render mode for content
145
- * @default "jsx"
146
- */
147
- renderMode?: "jsx" | "markdown";
148
139
  /**
149
140
  * Markdown string to render (when renderMode is "markdown")
150
141
  */
@@ -186,6 +177,6 @@ interface ArticleTocSidebarProps {
186
177
  /** Optional Section ID */
187
178
  sectionId?: string;
188
179
  }
189
- declare function ArticleTocSidebarComponent({ sectionId, className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
180
+ declare function ArticleTocSidebarComponent({ sectionId, className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
190
181
 
191
182
  export { type ArticleTocSection, ArticleTocSidebarComponent as ArticleTocSidebar, type ArticleTocSidebarProps };
@@ -136,15 +136,6 @@ interface ArticleTocSidebarProps {
136
136
  * Custom slot for CTA section (overrides CTA props)
137
137
  */
138
138
  ctaSlot?: React.ReactNode;
139
- /**
140
- * Article body content (replaces hardcoded prose)
141
- */
142
- children?: React.ReactNode;
143
- /**
144
- * Render mode for content
145
- * @default "jsx"
146
- */
147
- renderMode?: "jsx" | "markdown";
148
139
  /**
149
140
  * Markdown string to render (when renderMode is "markdown")
150
141
  */
@@ -186,6 +177,6 @@ interface ArticleTocSidebarProps {
186
177
  /** Optional Section ID */
187
178
  sectionId?: string;
188
179
  }
189
- declare function ArticleTocSidebarComponent({ sectionId, className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
180
+ declare function ArticleTocSidebarComponent({ sectionId, className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
190
181
 
191
182
  export { type ArticleTocSection, ArticleTocSidebarComponent as ArticleTocSidebar, type ArticleTocSidebarProps };
@@ -478,7 +478,7 @@ var Section = React4__default.forwardRef(
478
478
  Section.displayName = "Section";
479
479
  function LongformContent({
480
480
  children,
481
- renderMode = "jsx",
481
+ renderMode = "markdown",
482
482
  markdownString,
483
483
  optixFlowConfig,
484
484
  markdownStyles
@@ -537,8 +537,6 @@ function ArticleTocSidebarComponent({
537
537
  ctaDescription,
538
538
  ctaActions,
539
539
  ctaSlot,
540
- children,
541
- renderMode = "jsx",
542
540
  markdownString,
543
541
  markdownStyles,
544
542
  enableTocTracking = true,
@@ -730,11 +728,10 @@ function ArticleTocSidebarComponent({
730
728
  /* @__PURE__ */ jsx(
731
729
  LongformContent,
732
730
  {
733
- renderMode,
731
+ renderMode: "markdown",
734
732
  markdownString,
735
733
  optixFlowConfig,
736
- markdownStyles,
737
- children
734
+ markdownStyles
738
735
  }
739
736
  ),
740
737
  /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx(
@@ -501,7 +501,7 @@ function FeatureCapabilitiesGrid({
501
501
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -left-2 -bottom-2 h-3 w-3 bg-background" }),
502
502
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -right-2 -bottom-2 h-3 w-3 bg-background" })
503
503
  ] }),
504
- /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 p-6", children: [
504
+ /* @__PURE__ */ jsxRuntime.jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 pt-6 px-6 pb-0", children: [
505
505
  iconContent && /* @__PURE__ */ jsxRuntime.jsx(
506
506
  "div",
507
507
  {
@@ -517,31 +517,13 @@ function FeatureCapabilitiesGrid({
517
517
  {
518
518
  href: item.href,
519
519
  className: "flex-1 h-full flex items-center",
520
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
521
- item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
522
- "h3",
523
- {
524
- className: cn("text-lg font-medium", item.titleClassName),
525
- children: item.title
526
- }
527
- ) : /* @__PURE__ */ jsxRuntime.jsx(
528
- "div",
529
- {
530
- className: cn("text-lg font-medium", item.titleClassName),
531
- children: item.title
532
- }
533
- )),
534
- item.badge && /* @__PURE__ */ jsxRuntime.jsx(
535
- "span",
536
- {
537
- className: cn(
538
- "rounded-full border px-2 py-0.5 text-[10px] leading-none",
539
- item.badgeClassName
540
- ),
541
- children: item.badge
542
- }
543
- )
544
- ] })
520
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2", children: item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
521
+ "h3",
522
+ {
523
+ className: cn("text-lg font-medium", item.titleClassName),
524
+ children: item.title
525
+ }
526
+ ) : item.title) })
545
527
  }
546
528
  )
547
529
  ] }),
@@ -583,13 +565,7 @@ function FeatureCapabilitiesGrid({
583
565
  containerClassName,
584
566
  children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
585
567
  eyebrow || heading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-4 md:space-y-6", children: [
586
- eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : /* @__PURE__ */ jsxRuntime.jsx(
587
- "div",
588
- {
589
- className: cn("text-sm tracking-widest", eyebrowClassName),
590
- children: eyebrow
591
- }
592
- )),
568
+ eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : eyebrow),
593
569
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
594
570
  "h2",
595
571
  {
@@ -599,16 +575,7 @@ function FeatureCapabilitiesGrid({
599
575
  ),
600
576
  children: heading
601
577
  }
602
- ) : /* @__PURE__ */ jsxRuntime.jsx(
603
- "div",
604
- {
605
- className: cn(
606
- "text-4xl font-semibold sm:text-5xl",
607
- headingClassName
608
- ),
609
- children: heading
610
- }
611
- ))
578
+ ) : heading)
612
579
  ] }) : null,
613
580
  /* @__PURE__ */ jsxRuntime.jsx(
614
581
  "div",
@@ -23,10 +23,6 @@ interface FeatureCapabilitiesGridItem {
23
23
  * Icon name in format: prefix/name (e.g., "lucide/brain")
24
24
  */
25
25
  iconName?: string;
26
- /**
27
- * Optional badge label content
28
- */
29
- badge?: React.ReactNode;
30
26
  /**
31
27
  * Additional CSS classes for the item
32
28
  */
@@ -23,10 +23,6 @@ interface FeatureCapabilitiesGridItem {
23
23
  * Icon name in format: prefix/name (e.g., "lucide/brain")
24
24
  */
25
25
  iconName?: string;
26
- /**
27
- * Optional badge label content
28
- */
29
- badge?: React.ReactNode;
30
26
  /**
31
27
  * Additional CSS classes for the item
32
28
  */
@@ -480,7 +480,7 @@ function FeatureCapabilitiesGrid({
480
480
  /* @__PURE__ */ jsx("div", { className: "absolute -left-2 -bottom-2 h-3 w-3 bg-background" }),
481
481
  /* @__PURE__ */ jsx("div", { className: "absolute -right-2 -bottom-2 h-3 w-3 bg-background" })
482
482
  ] }),
483
- /* @__PURE__ */ jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 p-6", children: [
483
+ /* @__PURE__ */ jsxs(CardHeader, { className: "relative z-10 flex flex-row items-start gap-3 pt-6 px-6 pb-0", children: [
484
484
  iconContent && /* @__PURE__ */ jsx(
485
485
  "div",
486
486
  {
@@ -496,31 +496,13 @@ function FeatureCapabilitiesGrid({
496
496
  {
497
497
  href: item.href,
498
498
  className: "flex-1 h-full flex items-center",
499
- children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
500
- item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsx(
501
- "h3",
502
- {
503
- className: cn("text-lg font-medium", item.titleClassName),
504
- children: item.title
505
- }
506
- ) : /* @__PURE__ */ jsx(
507
- "div",
508
- {
509
- className: cn("text-lg font-medium", item.titleClassName),
510
- children: item.title
511
- }
512
- )),
513
- item.badge && /* @__PURE__ */ jsx(
514
- "span",
515
- {
516
- className: cn(
517
- "rounded-full border px-2 py-0.5 text-[10px] leading-none",
518
- item.badgeClassName
519
- ),
520
- children: item.badge
521
- }
522
- )
523
- ] })
499
+ children: /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: item.title && (typeof item.title === "string" ? /* @__PURE__ */ jsx(
500
+ "h3",
501
+ {
502
+ className: cn("text-lg font-medium", item.titleClassName),
503
+ children: item.title
504
+ }
505
+ ) : item.title) })
524
506
  }
525
507
  )
526
508
  ] }),
@@ -562,13 +544,7 @@ function FeatureCapabilitiesGrid({
562
544
  containerClassName,
563
545
  children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
564
546
  eyebrow || heading ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-4 md:space-y-6", children: [
565
- eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : /* @__PURE__ */ jsx(
566
- "div",
567
- {
568
- className: cn("text-sm tracking-widest", eyebrowClassName),
569
- children: eyebrow
570
- }
571
- )),
547
+ eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-sm tracking-widest", eyebrowClassName), children: eyebrow }) : eyebrow),
572
548
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
573
549
  "h2",
574
550
  {
@@ -578,16 +554,7 @@ function FeatureCapabilitiesGrid({
578
554
  ),
579
555
  children: heading
580
556
  }
581
- ) : /* @__PURE__ */ jsx(
582
- "div",
583
- {
584
- className: cn(
585
- "text-4xl font-semibold sm:text-5xl",
586
- headingClassName
587
- ),
588
- children: heading
589
- }
590
- ))
557
+ ) : heading)
591
558
  ] }) : null,
592
559
  /* @__PURE__ */ jsx(
593
560
  "div",
@@ -548,7 +548,7 @@ function HeroConversationIntelligence({
548
548
  {
549
549
  actions,
550
550
  actionsSlot,
551
- actionsClassName
551
+ actionsClassName: cn(actionsClassName, "justify-center")
552
552
  }
553
553
  )
554
554
  ]
@@ -542,7 +542,7 @@ function HeroConversationIntelligence({
542
542
  {
543
543
  actions,
544
544
  actionsSlot,
545
- actionsClassName
545
+ actionsClassName: cn(actionsClassName, "justify-center")
546
546
  }
547
547
  )
548
548
  ]
@@ -30,7 +30,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
30
30
  // components/ui/longform-content.tsx
31
31
  function LongformContent({
32
32
  children,
33
- renderMode = "jsx",
33
+ renderMode = "markdown",
34
34
  markdownString,
35
35
  optixFlowConfig,
36
36
  markdownStyles
@@ -21,7 +21,7 @@ interface LongformContentProps {
21
21
  * Controls the rendering strategy for article content.
22
22
  * - "jsx": Renders the `children` prop as-is
23
23
  * - "markdown": Parses and renders the `markdownString` prop
24
- * @default "jsx"
24
+ * @default "markdown"
25
25
  */
26
26
  renderMode?: "jsx" | "markdown";
27
27
  /**
@@ -21,7 +21,7 @@ interface LongformContentProps {
21
21
  * Controls the rendering strategy for article content.
22
22
  * - "jsx": Renders the `children` prop as-is
23
23
  * - "markdown": Parses and renders the `markdownString` prop
24
- * @default "jsx"
24
+ * @default "markdown"
25
25
  */
26
26
  renderMode?: "jsx" | "markdown";
27
27
  /**
@@ -8,7 +8,7 @@ import { jsx, Fragment } from 'react/jsx-runtime';
8
8
  // components/ui/longform-content.tsx
9
9
  function LongformContent({
10
10
  children,
11
- renderMode = "jsx",
11
+ renderMode = "markdown",
12
12
  markdownString,
13
13
  optixFlowConfig,
14
14
  markdownStyles
@@ -999,11 +999,20 @@ var NavbarMegaMenu = ({
999
999
  className: actionClassName,
1000
1000
  ...pressableProps
1001
1001
  } = action;
1002
- return /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1003
- icon,
1004
- label,
1005
- iconAfter
1006
- ] }) }, index);
1002
+ return /* @__PURE__ */ jsxRuntime.jsx(
1003
+ pressable.Pressable,
1004
+ {
1005
+ asButton: true,
1006
+ className: actionClassName,
1007
+ ...pressableProps,
1008
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1009
+ icon,
1010
+ label,
1011
+ iconAfter
1012
+ ] })
1013
+ },
1014
+ index
1015
+ );
1007
1016
  });
1008
1017
  };
1009
1018
  const {
@@ -976,11 +976,20 @@ var NavbarMegaMenu = ({
976
976
  className: actionClassName,
977
977
  ...pressableProps
978
978
  } = action;
979
- return /* @__PURE__ */ jsx(Pressable, { className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
980
- icon,
981
- label,
982
- iconAfter
983
- ] }) }, index);
979
+ return /* @__PURE__ */ jsx(
980
+ Pressable,
981
+ {
982
+ asButton: true,
983
+ className: actionClassName,
984
+ ...pressableProps,
985
+ children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
986
+ icon,
987
+ label,
988
+ iconAfter
989
+ ] })
990
+ },
991
+ index
992
+ );
984
993
  });
985
994
  };
986
995
  const {