@booga/vblocks 0.3.1 → 0.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.
- package/CHANGELOG.md +7 -0
- package/dist/blog/index.cjs +4 -4
- package/dist/blog/index.cjs.map +1 -1
- package/dist/blog/index.js +4 -4
- package/dist/blog/index.js.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/portfolio/index.cjs +2 -2
- package/dist/portfolio/index.cjs.map +1 -1
- package/dist/portfolio/index.js +2 -2
- package/dist/portfolio/index.js.map +1 -1
- package/dist/post/index.cjs +2 -2
- package/dist/post/index.cjs.map +1 -1
- package/dist/post/index.js +2 -2
- package/dist/post/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -404,7 +404,7 @@ function PortfolioSplit({ content, theme }) {
|
|
|
404
404
|
}
|
|
405
405
|
),
|
|
406
406
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(DStack, { gap: 2, pt: 2, children: [
|
|
407
|
-
/* @__PURE__ */ jsx(Badge, { variant: "secondary", children: item.category }),
|
|
407
|
+
/* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: item.category }),
|
|
408
408
|
/* @__PURE__ */ jsx(DBox, { as: "h3", className: cn("font-semibold text-lg"), children: item.title })
|
|
409
409
|
] }) })
|
|
410
410
|
] }, i)) })
|
|
@@ -443,7 +443,7 @@ function PortfolioGrid({ content, theme }) {
|
|
|
443
443
|
}
|
|
444
444
|
),
|
|
445
445
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(DStack, { gap: 2, pt: 2, children: [
|
|
446
|
-
/* @__PURE__ */ jsx(Badge, { variant: "secondary", children: item.category }),
|
|
446
|
+
/* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: item.category }),
|
|
447
447
|
/* @__PURE__ */ jsx(DBox, { as: "h3", className: cn("font-semibold text-lg"), children: item.title })
|
|
448
448
|
] }) })
|
|
449
449
|
] }, i)) }) });
|
|
@@ -471,7 +471,7 @@ function PostSplit({ content, theme }) {
|
|
|
471
471
|
const { title, author, date, category, body, image } = content;
|
|
472
472
|
return /* @__PURE__ */ jsx(DBox, { as: "article", style: themeStyle(theme), children: /* @__PURE__ */ jsxs(DGrid, { columns: 2, px: 6, py: 16, gap: 16, align: "start", className: cn("max-w-6xl mx-auto"), children: [
|
|
473
473
|
/* @__PURE__ */ jsxs(DStack, { gap: 6, className: cn("sticky top-16"), children: [
|
|
474
|
-
category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: category }),
|
|
474
|
+
category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: category }),
|
|
475
475
|
/* @__PURE__ */ jsx(DBox, { as: "h1", className: cn("text-3xl font-bold tracking-tight leading-snug"), children: title }),
|
|
476
476
|
/* @__PURE__ */ jsx(Separator, {}),
|
|
477
477
|
/* @__PURE__ */ jsxs(DInline, { gap: 2, color: "muted", className: cn("text-sm"), children: [
|
|
@@ -515,7 +515,7 @@ function PostCentered({ content, theme }) {
|
|
|
515
515
|
PostCenteredContentSchema.parse(content);
|
|
516
516
|
const { title, author, date, category, body } = content;
|
|
517
517
|
return /* @__PURE__ */ jsx(DBox, { as: "article", style: themeStyle(theme), children: /* @__PURE__ */ jsxs(DStack, { px: 6, py: 16, gap: 6, className: cn("max-w-2xl mx-auto"), children: [
|
|
518
|
-
category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: category }),
|
|
518
|
+
category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: category }),
|
|
519
519
|
/* @__PURE__ */ jsx(DBox, { as: "h1", className: cn("text-4xl font-bold tracking-tight leading-snug"), children: title }),
|
|
520
520
|
/* @__PURE__ */ jsxs(DInline, { gap: 2, color: "muted", className: cn("text-sm"), children: [
|
|
521
521
|
/* @__PURE__ */ jsx(DBox, { as: "span", children: author }),
|
|
@@ -734,7 +734,7 @@ function BlogSplit({ content, theme }) {
|
|
|
734
734
|
}
|
|
735
735
|
),
|
|
736
736
|
/* @__PURE__ */ jsxs(DStack, { gap: 2, children: [
|
|
737
|
-
featured.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: featured.category }),
|
|
737
|
+
featured.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: featured.category }),
|
|
738
738
|
/* @__PURE__ */ jsx(DBox, { as: "h3", className: cn("text-xl font-semibold"), children: featured.title }),
|
|
739
739
|
/* @__PURE__ */ jsx(DBox, { as: "p", color: "muted", children: featured.excerpt }),
|
|
740
740
|
/* @__PURE__ */ jsx(DBox, { as: "time", dateTime: featured.date, color: "muted", className: cn("text-xs"), children: featured.date })
|
|
@@ -751,7 +751,7 @@ function BlogSplit({ content, theme }) {
|
|
|
751
751
|
}
|
|
752
752
|
),
|
|
753
753
|
/* @__PURE__ */ jsxs(DStack, { gap: 1, children: [
|
|
754
|
-
post.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: post.category }),
|
|
754
|
+
post.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: post.category }),
|
|
755
755
|
/* @__PURE__ */ jsx(DBox, { as: "h3", className: cn("font-semibold leading-snug"), children: post.title }),
|
|
756
756
|
/* @__PURE__ */ jsx(DBox, { as: "time", dateTime: post.date, color: "muted", className: cn("text-xs"), children: post.date })
|
|
757
757
|
] })
|
|
@@ -796,7 +796,7 @@ function BlogGrid({ content, theme }) {
|
|
|
796
796
|
}
|
|
797
797
|
),
|
|
798
798
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(DStack, { gap: 2, pt: 2, children: [
|
|
799
|
-
post.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", children: post.category }),
|
|
799
|
+
post.category && /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("self-start"), children: post.category }),
|
|
800
800
|
/* @__PURE__ */ jsx(DBox, { as: "h3", className: cn("font-semibold leading-snug"), children: post.title }),
|
|
801
801
|
/* @__PURE__ */ jsx(DBox, { as: "p", color: "muted", className: cn("text-sm"), children: post.excerpt }),
|
|
802
802
|
/* @__PURE__ */ jsx(DBox, { as: "time", dateTime: post.date, color: "muted", className: cn("text-xs"), children: post.date })
|
|
@@ -810,7 +810,7 @@ var BlogGridDefaultContent = {
|
|
|
810
810
|
heading: "From the blog",
|
|
811
811
|
posts: [
|
|
812
812
|
{ title: "Designing for composability", excerpt: "Modular thinking at scale.", date: "2026-05-01", category: "Design", image: { src: "https://placehold.co/480x320", alt: "Design post" } },
|
|
813
|
-
{ title: "Type-safe content at runtime", excerpt: "Zod as single source of truth.", date: "2026-04-18", image: { src: "https://placehold.co/480x320", alt: "Types post" } },
|
|
813
|
+
{ title: "Type-safe content at runtime", excerpt: "Zod as single source of truth.", date: "2026-04-18", category: "Engineering", image: { src: "https://placehold.co/480x320", alt: "Types post" } },
|
|
814
814
|
{ title: "Tree-shaking section blocks", excerpt: "Lean bundles, per-category entry points.", date: "2026-04-05", category: "Engineering", image: { src: "https://placehold.co/480x320", alt: "Bundling post" } }
|
|
815
815
|
]
|
|
816
816
|
};
|