@opensite/ui 3.2.9 → 3.3.1
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/about-expandable-values.cjs +2 -18
- package/dist/about-expandable-values.js +2 -18
- package/dist/about-minimal-story.cjs +1 -9
- package/dist/about-minimal-story.js +1 -9
- package/dist/about-startup-team.cjs +3 -3
- package/dist/about-startup-team.js +3 -3
- package/dist/about-story-hero.cjs +1 -1
- package/dist/about-story-hero.js +1 -1
- package/dist/article-breadcrumb-social.cjs +4 -7
- package/dist/article-breadcrumb-social.d.cts +2 -11
- package/dist/article-breadcrumb-social.d.ts +2 -11
- package/dist/article-breadcrumb-social.js +4 -7
- package/dist/article-chapters-author.cjs +3 -6
- package/dist/article-chapters-author.d.cts +2 -11
- package/dist/article-chapters-author.d.ts +2 -11
- package/dist/article-chapters-author.js +3 -6
- package/dist/article-compact-toc.cjs +4 -7
- package/dist/article-compact-toc.d.cts +2 -11
- package/dist/article-compact-toc.d.ts +2 -11
- package/dist/article-compact-toc.js +4 -7
- package/dist/article-hero-prose.cjs +4 -7
- package/dist/article-hero-prose.d.cts +2 -11
- package/dist/article-hero-prose.d.ts +2 -11
- package/dist/article-hero-prose.js +4 -7
- package/dist/article-sidebar-sticky.cjs +3 -6
- package/dist/article-sidebar-sticky.d.cts +2 -11
- package/dist/article-sidebar-sticky.d.ts +2 -11
- package/dist/article-sidebar-sticky.js +3 -6
- package/dist/article-toc-sidebar.cjs +3 -6
- package/dist/article-toc-sidebar.d.cts +1 -10
- package/dist/article-toc-sidebar.d.ts +1 -10
- package/dist/article-toc-sidebar.js +3 -6
- package/dist/badge.d.cts +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/components.cjs +1 -17
- package/dist/components.js +1 -17
- package/dist/index.cjs +1 -17
- package/dist/index.js +1 -17
- package/dist/longform-content.cjs +1 -1
- package/dist/longform-content.d.cts +1 -1
- package/dist/longform-content.d.ts +1 -1
- package/dist/longform-content.js +1 -1
- package/dist/registry.cjs +22 -64
- package/dist/registry.js +22 -64
- package/package.json +1 -1
|
@@ -62,16 +62,7 @@ interface ArticleHeroProseProps {
|
|
|
62
62
|
*/
|
|
63
63
|
authorSlot?: React.ReactNode;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
children?: React.ReactNode;
|
|
68
|
-
/**
|
|
69
|
-
* Render mode for content
|
|
70
|
-
* @default "jsx"
|
|
71
|
-
*/
|
|
72
|
-
renderMode?: "jsx" | "markdown";
|
|
73
|
-
/**
|
|
74
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
65
|
+
* Markdown string to render
|
|
75
66
|
*/
|
|
76
67
|
markdownString?: string;
|
|
77
68
|
/**
|
|
@@ -107,6 +98,6 @@ interface ArticleHeroProseProps {
|
|
|
107
98
|
/** Optional Section ID */
|
|
108
99
|
sectionId?: string;
|
|
109
100
|
}
|
|
110
|
-
declare function ArticleHeroProseComponent({ sectionId, post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot,
|
|
101
|
+
declare function ArticleHeroProseComponent({ sectionId, post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, markdownString, markdownStyles, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
|
|
111
102
|
|
|
112
103
|
export { ArticleHeroProseComponent as ArticleHeroProse, type ArticleHeroProsePost, type ArticleHeroProseProps };
|
|
@@ -62,16 +62,7 @@ interface ArticleHeroProseProps {
|
|
|
62
62
|
*/
|
|
63
63
|
authorSlot?: React.ReactNode;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
children?: React.ReactNode;
|
|
68
|
-
/**
|
|
69
|
-
* Render mode for content
|
|
70
|
-
* @default "jsx"
|
|
71
|
-
*/
|
|
72
|
-
renderMode?: "jsx" | "markdown";
|
|
73
|
-
/**
|
|
74
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
65
|
+
* Markdown string to render
|
|
75
66
|
*/
|
|
76
67
|
markdownString?: string;
|
|
77
68
|
/**
|
|
@@ -107,6 +98,6 @@ interface ArticleHeroProseProps {
|
|
|
107
98
|
/** Optional Section ID */
|
|
108
99
|
sectionId?: string;
|
|
109
100
|
}
|
|
110
|
-
declare function ArticleHeroProseComponent({ sectionId, post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot,
|
|
101
|
+
declare function ArticleHeroProseComponent({ sectionId, post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, markdownString, markdownStyles, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
|
|
111
102
|
|
|
112
103
|
export { ArticleHeroProseComponent as ArticleHeroProse, type ArticleHeroProsePost, type ArticleHeroProseProps };
|
|
@@ -445,7 +445,7 @@ var Section = React4__default.forwardRef(
|
|
|
445
445
|
Section.displayName = "Section";
|
|
446
446
|
function LongformContent({
|
|
447
447
|
children,
|
|
448
|
-
renderMode = "
|
|
448
|
+
renderMode = "markdown",
|
|
449
449
|
markdownString,
|
|
450
450
|
optixFlowConfig,
|
|
451
451
|
markdownStyles
|
|
@@ -484,8 +484,6 @@ function ArticleHeroProseComponent({
|
|
|
484
484
|
proseClassName,
|
|
485
485
|
heroMediaSlot,
|
|
486
486
|
authorSlot,
|
|
487
|
-
children,
|
|
488
|
-
renderMode = "jsx",
|
|
489
487
|
markdownString,
|
|
490
488
|
markdownStyles,
|
|
491
489
|
dateFormat = "MMMM d, yyyy",
|
|
@@ -599,7 +597,7 @@ function ArticleHeroProseComponent({
|
|
|
599
597
|
]
|
|
600
598
|
}
|
|
601
599
|
) }),
|
|
602
|
-
|
|
600
|
+
markdownString && /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ jsx(
|
|
603
601
|
"div",
|
|
604
602
|
{
|
|
605
603
|
className: cn(
|
|
@@ -610,11 +608,10 @@ function ArticleHeroProseComponent({
|
|
|
610
608
|
children: /* @__PURE__ */ jsx(
|
|
611
609
|
LongformContent,
|
|
612
610
|
{
|
|
613
|
-
renderMode,
|
|
611
|
+
renderMode: "markdown",
|
|
614
612
|
markdownString,
|
|
615
613
|
optixFlowConfig,
|
|
616
|
-
markdownStyles
|
|
617
|
-
children
|
|
614
|
+
markdownStyles
|
|
618
615
|
}
|
|
619
616
|
)
|
|
620
617
|
}
|
|
@@ -475,7 +475,7 @@ var Section = React5__namespace.default.forwardRef(
|
|
|
475
475
|
Section.displayName = "Section";
|
|
476
476
|
function LongformContent({
|
|
477
477
|
children,
|
|
478
|
-
renderMode = "
|
|
478
|
+
renderMode = "markdown",
|
|
479
479
|
markdownString,
|
|
480
480
|
optixFlowConfig,
|
|
481
481
|
markdownStyles
|
|
@@ -526,8 +526,6 @@ function ArticleSidebarStickyComponent({
|
|
|
526
526
|
heroImageSrc,
|
|
527
527
|
heroImageAlt,
|
|
528
528
|
heroMediaSlot,
|
|
529
|
-
children,
|
|
530
|
-
renderMode = "jsx",
|
|
531
529
|
markdownString,
|
|
532
530
|
markdownStyles,
|
|
533
531
|
optixFlowConfig,
|
|
@@ -654,11 +652,10 @@ function ArticleSidebarStickyComponent({
|
|
|
654
652
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
655
653
|
LongformContent,
|
|
656
654
|
{
|
|
657
|
-
renderMode,
|
|
655
|
+
renderMode: "markdown",
|
|
658
656
|
markdownString,
|
|
659
657
|
optixFlowConfig,
|
|
660
|
-
markdownStyles
|
|
661
|
-
children
|
|
658
|
+
markdownStyles
|
|
662
659
|
}
|
|
663
660
|
),
|
|
664
661
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -101,16 +101,7 @@ interface ArticleSidebarStickyProps {
|
|
|
101
101
|
*/
|
|
102
102
|
heroMediaSlot?: React.ReactNode;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
children?: React.ReactNode;
|
|
107
|
-
/**
|
|
108
|
-
* Render mode for content
|
|
109
|
-
* @default "jsx"
|
|
110
|
-
*/
|
|
111
|
-
renderMode?: "jsx" | "markdown";
|
|
112
|
-
/**
|
|
113
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
104
|
+
* Markdown string to render
|
|
114
105
|
*/
|
|
115
106
|
markdownString?: string;
|
|
116
107
|
/**
|
|
@@ -145,6 +136,6 @@ interface ArticleSidebarStickyProps {
|
|
|
145
136
|
/** Optional Section ID */
|
|
146
137
|
sectionId?: string;
|
|
147
138
|
}
|
|
148
|
-
declare function ArticleSidebarStickyComponent({ sectionId, className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
139
|
+
declare function ArticleSidebarStickyComponent({ sectionId, className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
|
|
149
140
|
|
|
150
141
|
export { ArticleSidebarStickyComponent as ArticleSidebarSticky, type ArticleSidebarStickyProps };
|
|
@@ -101,16 +101,7 @@ interface ArticleSidebarStickyProps {
|
|
|
101
101
|
*/
|
|
102
102
|
heroMediaSlot?: React.ReactNode;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
105
|
-
*/
|
|
106
|
-
children?: React.ReactNode;
|
|
107
|
-
/**
|
|
108
|
-
* Render mode for content
|
|
109
|
-
* @default "jsx"
|
|
110
|
-
*/
|
|
111
|
-
renderMode?: "jsx" | "markdown";
|
|
112
|
-
/**
|
|
113
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
104
|
+
* Markdown string to render
|
|
114
105
|
*/
|
|
115
106
|
markdownString?: string;
|
|
116
107
|
/**
|
|
@@ -145,6 +136,6 @@ interface ArticleSidebarStickyProps {
|
|
|
145
136
|
/** Optional Section ID */
|
|
146
137
|
sectionId?: string;
|
|
147
138
|
}
|
|
148
|
-
declare function ArticleSidebarStickyComponent({ sectionId, className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
139
|
+
declare function ArticleSidebarStickyComponent({ sectionId, className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
|
|
149
140
|
|
|
150
141
|
export { ArticleSidebarStickyComponent as ArticleSidebarSticky, type ArticleSidebarStickyProps };
|
|
@@ -453,7 +453,7 @@ var Section = React5__default.forwardRef(
|
|
|
453
453
|
Section.displayName = "Section";
|
|
454
454
|
function LongformContent({
|
|
455
455
|
children,
|
|
456
|
-
renderMode = "
|
|
456
|
+
renderMode = "markdown",
|
|
457
457
|
markdownString,
|
|
458
458
|
optixFlowConfig,
|
|
459
459
|
markdownStyles
|
|
@@ -504,8 +504,6 @@ function ArticleSidebarStickyComponent({
|
|
|
504
504
|
heroImageSrc,
|
|
505
505
|
heroImageAlt,
|
|
506
506
|
heroMediaSlot,
|
|
507
|
-
children,
|
|
508
|
-
renderMode = "jsx",
|
|
509
507
|
markdownString,
|
|
510
508
|
markdownStyles,
|
|
511
509
|
optixFlowConfig,
|
|
@@ -632,11 +630,10 @@ function ArticleSidebarStickyComponent({
|
|
|
632
630
|
/* @__PURE__ */ jsx(
|
|
633
631
|
LongformContent,
|
|
634
632
|
{
|
|
635
|
-
renderMode,
|
|
633
|
+
renderMode: "markdown",
|
|
636
634
|
markdownString,
|
|
637
635
|
optixFlowConfig,
|
|
638
|
-
markdownStyles
|
|
639
|
-
children
|
|
636
|
+
markdownStyles
|
|
640
637
|
}
|
|
641
638
|
),
|
|
642
639
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx(
|
|
@@ -500,7 +500,7 @@ var Section = React4__namespace.default.forwardRef(
|
|
|
500
500
|
Section.displayName = "Section";
|
|
501
501
|
function LongformContent({
|
|
502
502
|
children,
|
|
503
|
-
renderMode = "
|
|
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,
|
|
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,
|
|
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 = "
|
|
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(
|
package/dist/badge.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "outline" | "default" | "secondary" | "destructive" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
10
10
|
asChild?: boolean;
|
package/dist/badge.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "outline" | "default" | "secondary" | "destructive" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
10
10
|
asChild?: boolean;
|
package/dist/components.cjs
CHANGED
|
@@ -2008,22 +2008,6 @@ function AboutExpandableValues({
|
|
|
2008
2008
|
const toggleExpand = React4.useCallback((id) => {
|
|
2009
2009
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
2010
2010
|
}, []);
|
|
2011
|
-
React4.useMemo(() => {
|
|
2012
|
-
if (actionsSlot) return actionsSlot;
|
|
2013
|
-
if (!actions || actions.length === 0) return null;
|
|
2014
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2015
|
-
pressable.Pressable,
|
|
2016
|
-
{
|
|
2017
|
-
href: action.href,
|
|
2018
|
-
onClick: action.onClick,
|
|
2019
|
-
variant: action.variant || "default",
|
|
2020
|
-
size: action.size,
|
|
2021
|
-
asButton: true,
|
|
2022
|
-
children: action.label
|
|
2023
|
-
},
|
|
2024
|
-
idx
|
|
2025
|
-
)) });
|
|
2026
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
2027
2011
|
const valuesContent = React4.useMemo(() => {
|
|
2028
2012
|
if (valuesSlot) return valuesSlot;
|
|
2029
2013
|
if (!values || values.length === 0) return null;
|
|
@@ -2137,7 +2121,7 @@ function AboutExpandableValues({
|
|
|
2137
2121
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
2138
2122
|
ctaClassName
|
|
2139
2123
|
),
|
|
2140
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl
|
|
2124
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
2141
2125
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
2142
2126
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
2143
2127
|
/* @__PURE__ */ jsxRuntime.jsx(
|
package/dist/components.js
CHANGED
|
@@ -1985,22 +1985,6 @@ function AboutExpandableValues({
|
|
|
1985
1985
|
const toggleExpand = useCallback((id) => {
|
|
1986
1986
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
1987
1987
|
}, []);
|
|
1988
|
-
useMemo(() => {
|
|
1989
|
-
if (actionsSlot) return actionsSlot;
|
|
1990
|
-
if (!actions || actions.length === 0) return null;
|
|
1991
|
-
return /* @__PURE__ */ jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsx(
|
|
1992
|
-
Pressable,
|
|
1993
|
-
{
|
|
1994
|
-
href: action.href,
|
|
1995
|
-
onClick: action.onClick,
|
|
1996
|
-
variant: action.variant || "default",
|
|
1997
|
-
size: action.size,
|
|
1998
|
-
asButton: true,
|
|
1999
|
-
children: action.label
|
|
2000
|
-
},
|
|
2001
|
-
idx
|
|
2002
|
-
)) });
|
|
2003
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
2004
1988
|
const valuesContent = useMemo(() => {
|
|
2005
1989
|
if (valuesSlot) return valuesSlot;
|
|
2006
1990
|
if (!values || values.length === 0) return null;
|
|
@@ -2114,7 +2098,7 @@ function AboutExpandableValues({
|
|
|
2114
2098
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
2115
2099
|
ctaClassName
|
|
2116
2100
|
),
|
|
2117
|
-
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl
|
|
2101
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
2118
2102
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
2119
2103
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
2120
2104
|
/* @__PURE__ */ jsx(
|
package/dist/index.cjs
CHANGED
|
@@ -2069,22 +2069,6 @@ function AboutExpandableValues({
|
|
|
2069
2069
|
const toggleExpand = React4.useCallback((id) => {
|
|
2070
2070
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
2071
2071
|
}, []);
|
|
2072
|
-
React4.useMemo(() => {
|
|
2073
|
-
if (actionsSlot) return actionsSlot;
|
|
2074
|
-
if (!actions || actions.length === 0) return null;
|
|
2075
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2076
|
-
pressable.Pressable,
|
|
2077
|
-
{
|
|
2078
|
-
href: action.href,
|
|
2079
|
-
onClick: action.onClick,
|
|
2080
|
-
variant: action.variant || "default",
|
|
2081
|
-
size: action.size,
|
|
2082
|
-
asButton: true,
|
|
2083
|
-
children: action.label
|
|
2084
|
-
},
|
|
2085
|
-
idx
|
|
2086
|
-
)) });
|
|
2087
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
2088
2072
|
const valuesContent = React4.useMemo(() => {
|
|
2089
2073
|
if (valuesSlot) return valuesSlot;
|
|
2090
2074
|
if (!values || values.length === 0) return null;
|
|
@@ -2198,7 +2182,7 @@ function AboutExpandableValues({
|
|
|
2198
2182
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
2199
2183
|
ctaClassName
|
|
2200
2184
|
),
|
|
2201
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl
|
|
2185
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
2202
2186
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
2203
2187
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
2204
2188
|
/* @__PURE__ */ jsxRuntime.jsx(
|
package/dist/index.js
CHANGED
|
@@ -2047,22 +2047,6 @@ function AboutExpandableValues({
|
|
|
2047
2047
|
const toggleExpand = useCallback((id) => {
|
|
2048
2048
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
2049
2049
|
}, []);
|
|
2050
|
-
useMemo(() => {
|
|
2051
|
-
if (actionsSlot) return actionsSlot;
|
|
2052
|
-
if (!actions || actions.length === 0) return null;
|
|
2053
|
-
return /* @__PURE__ */ jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsx(
|
|
2054
|
-
Pressable,
|
|
2055
|
-
{
|
|
2056
|
-
href: action.href,
|
|
2057
|
-
onClick: action.onClick,
|
|
2058
|
-
variant: action.variant || "default",
|
|
2059
|
-
size: action.size,
|
|
2060
|
-
asButton: true,
|
|
2061
|
-
children: action.label
|
|
2062
|
-
},
|
|
2063
|
-
idx
|
|
2064
|
-
)) });
|
|
2065
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
2066
2050
|
const valuesContent = useMemo(() => {
|
|
2067
2051
|
if (valuesSlot) return valuesSlot;
|
|
2068
2052
|
if (!values || values.length === 0) return null;
|
|
@@ -2176,7 +2160,7 @@ function AboutExpandableValues({
|
|
|
2176
2160
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
2177
2161
|
ctaClassName
|
|
2178
2162
|
),
|
|
2179
|
-
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl
|
|
2163
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
2180
2164
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
2181
2165
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
2182
2166
|
/* @__PURE__ */ jsx(
|
|
@@ -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 "
|
|
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 "
|
|
24
|
+
* @default "markdown"
|
|
25
25
|
*/
|
|
26
26
|
renderMode?: "jsx" | "markdown";
|
|
27
27
|
/**
|
package/dist/longform-content.js
CHANGED