@uptrademedia/site-kit 1.0.7 → 1.0.9

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.
@@ -3,6 +3,68 @@ import React__default from 'react';
3
3
  import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-DI0jnhjJ.mjs';
4
4
  export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-DI0jnhjJ.mjs';
5
5
 
6
+ interface BlogPostStyles {
7
+ /** Article wrapper */
8
+ article?: string;
9
+ /** Header section */
10
+ header?: string;
11
+ /** Breadcrumb navigation */
12
+ breadcrumb?: string;
13
+ /** Breadcrumb link */
14
+ breadcrumbLink?: string;
15
+ /** Post title (h1) */
16
+ title?: string;
17
+ /** Post subtitle */
18
+ subtitle?: string;
19
+ /** Meta info row */
20
+ meta?: string;
21
+ /** Meta item */
22
+ metaItem?: string;
23
+ /** Featured image wrapper */
24
+ featuredImageWrapper?: string;
25
+ /** Featured image */
26
+ featuredImage?: string;
27
+ /** Content layout (grid with TOC) */
28
+ contentLayout?: string;
29
+ /** Main content wrapper */
30
+ content?: string;
31
+ /** Table of contents sidebar */
32
+ tocSidebar?: string;
33
+ /** TOC title */
34
+ tocTitle?: string;
35
+ /** TOC list */
36
+ tocList?: string;
37
+ /** TOC list item */
38
+ tocItem?: string;
39
+ /** TOC link */
40
+ tocLink?: string;
41
+ /** Tags container */
42
+ tags?: string;
43
+ /** Individual tag */
44
+ tag?: string;
45
+ /** FAQ section */
46
+ faqSection?: string;
47
+ /** FAQ title */
48
+ faqTitle?: string;
49
+ /** FAQ item container */
50
+ faqItem?: string;
51
+ /** FAQ question (summary) */
52
+ faqQuestion?: string;
53
+ /** FAQ answer */
54
+ faqAnswer?: string;
55
+ /** Author card section */
56
+ authorCard?: string;
57
+ /** Related posts section */
58
+ relatedSection?: string;
59
+ /** Related posts title */
60
+ relatedTitle?: string;
61
+ /** Related posts grid */
62
+ relatedGrid?: string;
63
+ /** Related post card */
64
+ relatedCard?: string;
65
+ /** Not found state */
66
+ notFound?: string;
67
+ }
6
68
  interface BlogPostServerProps {
7
69
  /** Portal API URL */
8
70
  apiUrl?: string;
@@ -20,8 +82,15 @@ interface BlogPostServerProps {
20
82
  showAuthor?: boolean;
21
83
  /** Base URL for blog links */
22
84
  basePath?: string;
23
- /** Custom class name */
85
+ /** Custom class name (applied to article) */
24
86
  className?: string;
87
+ /**
88
+ * Custom Tailwind/CSS classes for each element.
89
+ * When provided, inline styles are disabled for that element.
90
+ */
91
+ styles?: BlogPostStyles;
92
+ /** Use CSS classes only (no inline styles) - set to true for Tailwind sites */
93
+ unstyled?: boolean;
25
94
  /** Custom render function */
26
95
  children?: (props: {
27
96
  post: BlogPost$1;
@@ -29,8 +98,58 @@ interface BlogPostServerProps {
29
98
  relatedPosts: BlogPost$1[];
30
99
  }) => React__default.ReactNode;
31
100
  }
32
- declare function BlogPost({ apiUrl, apiKey, slug, showToc, showRelated, relatedCount, showAuthor, basePath, className, children, }: BlogPostServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
101
+ declare function BlogPost({ apiUrl, apiKey, slug, showToc, showRelated, relatedCount, showAuthor, basePath, className, styles, unstyled, children, }: BlogPostServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
33
102
 
103
+ interface BlogListStyles {
104
+ /** Container wrapper */
105
+ container?: string;
106
+ /** Category navigation wrapper */
107
+ categoryNav?: string;
108
+ /** Individual category link */
109
+ categoryLink?: string;
110
+ /** Active category link (combined with categoryLink) */
111
+ categoryLinkActive?: string;
112
+ /** Inactive category link (combined with categoryLink) */
113
+ categoryLinkInactive?: string;
114
+ /** Posts grid container */
115
+ grid?: string;
116
+ /** Individual post card */
117
+ card?: string;
118
+ /** Card image wrapper */
119
+ cardImageWrapper?: string;
120
+ /** Card image */
121
+ cardImage?: string;
122
+ /** Card body/content area */
123
+ cardBody?: string;
124
+ /** Card meta row (date, category) */
125
+ cardMeta?: string;
126
+ /** Card category badge */
127
+ cardCategory?: string;
128
+ /** Card date */
129
+ cardDate?: string;
130
+ /** Card title */
131
+ cardTitle?: string;
132
+ /** Card title link */
133
+ cardTitleLink?: string;
134
+ /** Card excerpt */
135
+ cardExcerpt?: string;
136
+ /** Card footer */
137
+ cardFooter?: string;
138
+ /** Card author */
139
+ cardAuthor?: string;
140
+ /** Card reading time */
141
+ cardReadingTime?: string;
142
+ /** Card read more link */
143
+ cardReadMore?: string;
144
+ /** Pagination container */
145
+ pagination?: string;
146
+ /** Pagination link */
147
+ paginationLink?: string;
148
+ /** Pagination info text */
149
+ paginationInfo?: string;
150
+ /** Empty state */
151
+ emptyState?: string;
152
+ }
34
153
  interface BlogListServerProps {
35
154
  /** Portal API URL */
36
155
  apiUrl?: string;
@@ -58,10 +177,17 @@ interface BlogListServerProps {
58
177
  showCategoryFilter?: boolean;
59
178
  /** Show pagination */
60
179
  showPagination?: boolean;
61
- /** Custom class name */
180
+ /** Custom class name (applied to container) */
62
181
  className?: string;
63
182
  /** Base URL for post links */
64
183
  basePath?: string;
184
+ /**
185
+ * Custom Tailwind/CSS classes for each element.
186
+ * When provided, inline styles are disabled for that element.
187
+ */
188
+ styles?: BlogListStyles;
189
+ /** Use CSS classes only (no inline styles) - set to true for Tailwind sites */
190
+ unstyled?: boolean;
65
191
  /** Custom render function for post card */
66
192
  renderPost?: (post: BlogPost$1) => React__default.ReactNode;
67
193
  /** Custom render function for entire grid */
@@ -71,7 +197,7 @@ interface BlogListServerProps {
71
197
  categories: BlogCategory[];
72
198
  }) => React__default.ReactNode;
73
199
  }
74
- declare function BlogList({ apiUrl, apiKey, category, tag, author, featured, search, page, perPage, orderBy, order, showCategoryFilter, showPagination, className, basePath, renderPost, children, }: BlogListServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
200
+ declare function BlogList({ apiUrl, apiKey, category, tag, author, featured, search, page, perPage, orderBy, order, showCategoryFilter, showPagination, className, basePath, styles, unstyled, renderPost, children, }: BlogListServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
75
201
 
76
202
  interface BlogSidebarProps {
77
203
  /** Portal API URL */
@@ -176,4 +302,4 @@ declare function RelatedPosts({ apiUrl, apiKey, currentPostId, limit, className,
176
302
 
177
303
  declare function TableOfContents({ content, className, maxDepth, }: TableOfContentsProps): react_jsx_runtime.JSX.Element | null;
178
304
 
179
- export { AuthorCard, AuthorCardProps, BlogCategory, BlogLayout, type BlogLayoutProps, BlogList, BlogListResult, type BlogListServerProps, BlogPage, type BlogPageProps, BlogPost, BlogPostPage, type BlogPostPageProps, type BlogPostServerProps, BlogSidebar, type BlogSidebarProps, CategoryPage, type CategoryPageProps, NewsletterWidget, type NewsletterWidgetProps, RelatedPosts, TableOfContents, TableOfContentsProps, TocItem };
305
+ export { AuthorCard, AuthorCardProps, BlogCategory, BlogLayout, type BlogLayoutProps, BlogList, BlogListResult, type BlogListServerProps, type BlogListStyles, BlogPage, type BlogPageProps, BlogPost, BlogPostPage, type BlogPostPageProps, type BlogPostServerProps, type BlogPostStyles, BlogSidebar, type BlogSidebarProps, CategoryPage, type CategoryPageProps, NewsletterWidget, type NewsletterWidgetProps, RelatedPosts, TableOfContents, TableOfContentsProps, TocItem };
@@ -3,6 +3,68 @@ import React__default from 'react';
3
3
  import { B as BlogPost$1, T as TocItem, a as BlogListResult, b as BlogCategory, A as AuthorCardProps, c as TableOfContentsProps } from '../types-DI0jnhjJ.js';
4
4
  export { k as BlogAnalytics, d as BlogAuthor, f as BlogListOptions, i as BlogListProps, j as BlogListRenderProps, g as BlogPostProps, h as BlogPostRenderProps, e as BlogTag, R as RelatedPostsProps } from '../types-DI0jnhjJ.js';
5
5
 
6
+ interface BlogPostStyles {
7
+ /** Article wrapper */
8
+ article?: string;
9
+ /** Header section */
10
+ header?: string;
11
+ /** Breadcrumb navigation */
12
+ breadcrumb?: string;
13
+ /** Breadcrumb link */
14
+ breadcrumbLink?: string;
15
+ /** Post title (h1) */
16
+ title?: string;
17
+ /** Post subtitle */
18
+ subtitle?: string;
19
+ /** Meta info row */
20
+ meta?: string;
21
+ /** Meta item */
22
+ metaItem?: string;
23
+ /** Featured image wrapper */
24
+ featuredImageWrapper?: string;
25
+ /** Featured image */
26
+ featuredImage?: string;
27
+ /** Content layout (grid with TOC) */
28
+ contentLayout?: string;
29
+ /** Main content wrapper */
30
+ content?: string;
31
+ /** Table of contents sidebar */
32
+ tocSidebar?: string;
33
+ /** TOC title */
34
+ tocTitle?: string;
35
+ /** TOC list */
36
+ tocList?: string;
37
+ /** TOC list item */
38
+ tocItem?: string;
39
+ /** TOC link */
40
+ tocLink?: string;
41
+ /** Tags container */
42
+ tags?: string;
43
+ /** Individual tag */
44
+ tag?: string;
45
+ /** FAQ section */
46
+ faqSection?: string;
47
+ /** FAQ title */
48
+ faqTitle?: string;
49
+ /** FAQ item container */
50
+ faqItem?: string;
51
+ /** FAQ question (summary) */
52
+ faqQuestion?: string;
53
+ /** FAQ answer */
54
+ faqAnswer?: string;
55
+ /** Author card section */
56
+ authorCard?: string;
57
+ /** Related posts section */
58
+ relatedSection?: string;
59
+ /** Related posts title */
60
+ relatedTitle?: string;
61
+ /** Related posts grid */
62
+ relatedGrid?: string;
63
+ /** Related post card */
64
+ relatedCard?: string;
65
+ /** Not found state */
66
+ notFound?: string;
67
+ }
6
68
  interface BlogPostServerProps {
7
69
  /** Portal API URL */
8
70
  apiUrl?: string;
@@ -20,8 +82,15 @@ interface BlogPostServerProps {
20
82
  showAuthor?: boolean;
21
83
  /** Base URL for blog links */
22
84
  basePath?: string;
23
- /** Custom class name */
85
+ /** Custom class name (applied to article) */
24
86
  className?: string;
87
+ /**
88
+ * Custom Tailwind/CSS classes for each element.
89
+ * When provided, inline styles are disabled for that element.
90
+ */
91
+ styles?: BlogPostStyles;
92
+ /** Use CSS classes only (no inline styles) - set to true for Tailwind sites */
93
+ unstyled?: boolean;
25
94
  /** Custom render function */
26
95
  children?: (props: {
27
96
  post: BlogPost$1;
@@ -29,8 +98,58 @@ interface BlogPostServerProps {
29
98
  relatedPosts: BlogPost$1[];
30
99
  }) => React__default.ReactNode;
31
100
  }
32
- declare function BlogPost({ apiUrl, apiKey, slug, showToc, showRelated, relatedCount, showAuthor, basePath, className, children, }: BlogPostServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
101
+ declare function BlogPost({ apiUrl, apiKey, slug, showToc, showRelated, relatedCount, showAuthor, basePath, className, styles, unstyled, children, }: BlogPostServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
33
102
 
103
+ interface BlogListStyles {
104
+ /** Container wrapper */
105
+ container?: string;
106
+ /** Category navigation wrapper */
107
+ categoryNav?: string;
108
+ /** Individual category link */
109
+ categoryLink?: string;
110
+ /** Active category link (combined with categoryLink) */
111
+ categoryLinkActive?: string;
112
+ /** Inactive category link (combined with categoryLink) */
113
+ categoryLinkInactive?: string;
114
+ /** Posts grid container */
115
+ grid?: string;
116
+ /** Individual post card */
117
+ card?: string;
118
+ /** Card image wrapper */
119
+ cardImageWrapper?: string;
120
+ /** Card image */
121
+ cardImage?: string;
122
+ /** Card body/content area */
123
+ cardBody?: string;
124
+ /** Card meta row (date, category) */
125
+ cardMeta?: string;
126
+ /** Card category badge */
127
+ cardCategory?: string;
128
+ /** Card date */
129
+ cardDate?: string;
130
+ /** Card title */
131
+ cardTitle?: string;
132
+ /** Card title link */
133
+ cardTitleLink?: string;
134
+ /** Card excerpt */
135
+ cardExcerpt?: string;
136
+ /** Card footer */
137
+ cardFooter?: string;
138
+ /** Card author */
139
+ cardAuthor?: string;
140
+ /** Card reading time */
141
+ cardReadingTime?: string;
142
+ /** Card read more link */
143
+ cardReadMore?: string;
144
+ /** Pagination container */
145
+ pagination?: string;
146
+ /** Pagination link */
147
+ paginationLink?: string;
148
+ /** Pagination info text */
149
+ paginationInfo?: string;
150
+ /** Empty state */
151
+ emptyState?: string;
152
+ }
34
153
  interface BlogListServerProps {
35
154
  /** Portal API URL */
36
155
  apiUrl?: string;
@@ -58,10 +177,17 @@ interface BlogListServerProps {
58
177
  showCategoryFilter?: boolean;
59
178
  /** Show pagination */
60
179
  showPagination?: boolean;
61
- /** Custom class name */
180
+ /** Custom class name (applied to container) */
62
181
  className?: string;
63
182
  /** Base URL for post links */
64
183
  basePath?: string;
184
+ /**
185
+ * Custom Tailwind/CSS classes for each element.
186
+ * When provided, inline styles are disabled for that element.
187
+ */
188
+ styles?: BlogListStyles;
189
+ /** Use CSS classes only (no inline styles) - set to true for Tailwind sites */
190
+ unstyled?: boolean;
65
191
  /** Custom render function for post card */
66
192
  renderPost?: (post: BlogPost$1) => React__default.ReactNode;
67
193
  /** Custom render function for entire grid */
@@ -71,7 +197,7 @@ interface BlogListServerProps {
71
197
  categories: BlogCategory[];
72
198
  }) => React__default.ReactNode;
73
199
  }
74
- declare function BlogList({ apiUrl, apiKey, category, tag, author, featured, search, page, perPage, orderBy, order, showCategoryFilter, showPagination, className, basePath, renderPost, children, }: BlogListServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
200
+ declare function BlogList({ apiUrl, apiKey, category, tag, author, featured, search, page, perPage, orderBy, order, showCategoryFilter, showPagination, className, basePath, styles, unstyled, renderPost, children, }: BlogListServerProps): Promise<string | number | bigint | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element | null | undefined>;
75
201
 
76
202
  interface BlogSidebarProps {
77
203
  /** Portal API URL */
@@ -176,4 +302,4 @@ declare function RelatedPosts({ apiUrl, apiKey, currentPostId, limit, className,
176
302
 
177
303
  declare function TableOfContents({ content, className, maxDepth, }: TableOfContentsProps): react_jsx_runtime.JSX.Element | null;
178
304
 
179
- export { AuthorCard, AuthorCardProps, BlogCategory, BlogLayout, type BlogLayoutProps, BlogList, BlogListResult, type BlogListServerProps, BlogPage, type BlogPageProps, BlogPost, BlogPostPage, type BlogPostPageProps, type BlogPostServerProps, BlogSidebar, type BlogSidebarProps, CategoryPage, type CategoryPageProps, NewsletterWidget, type NewsletterWidgetProps, RelatedPosts, TableOfContents, TableOfContentsProps, TocItem };
305
+ export { AuthorCard, AuthorCardProps, BlogCategory, BlogLayout, type BlogLayoutProps, BlogList, BlogListResult, type BlogListServerProps, type BlogListStyles, BlogPage, type BlogPageProps, BlogPost, BlogPostPage, type BlogPostPageProps, type BlogPostServerProps, type BlogPostStyles, BlogSidebar, type BlogSidebarProps, CategoryPage, type CategoryPageProps, NewsletterWidget, type NewsletterWidgetProps, RelatedPosts, TableOfContents, TableOfContentsProps, TocItem };