ui8kit 0.0.2 → 0.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui8kit",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "UI8Kit components registry for buildy-ui cli",
5
5
  "main": "index.js",
6
6
  "files": [
package/r/index.json CHANGED
@@ -53,22 +53,10 @@
53
53
  "name": "utils",
54
54
  "type": "registry:lib"
55
55
  },
56
- {
57
- "name": "post-page",
58
- "type": "registry:block"
59
- },
60
- {
61
- "name": "home-page",
62
- "type": "registry:block"
63
- },
64
56
  {
65
57
  "name": "hero-section",
66
58
  "type": "registry:block"
67
59
  },
68
- {
69
- "name": "archive-page",
70
- "type": "registry:block"
71
- },
72
60
  {
73
61
  "name": "sheet",
74
62
  "type": "registry:component",
@@ -119,5 +107,5 @@
119
107
  "lib"
120
108
  ],
121
109
  "version": "1.0.0",
122
- "lastUpdated": "2025-05-30T23:04:05.467Z"
110
+ "lastUpdated": "2025-05-30T23:19:04.044Z"
123
111
  }
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "https://buildy.tw/schema/registry-item.json",
3
- "name": "archive-page",
4
- "type": "registry:block",
5
- "dependencies": [
6
- "@app/layouts",
7
- "@app/components"
8
- ],
9
- "devDependencies": [],
10
- "files": [
11
- {
12
- "path": "packages/ui/src/blocks/archive-page.tsx",
13
- "content": "import { posts, archive } from '@/context/data'\r\nimport { getUI, getComponents } from '@/utils/theme'\r\nimport { RootLayout } from '@app/layouts'\r\nimport { Button } from '@app/components'\r\n\r\nexport function ArchivePage() {\r\n const { A } = getUI()\r\n const {\r\n Grid, P,\r\n SectionHeader,\r\n SectionContent,\r\n SectionTitle,\r\n SectionDescription,\r\n Article,\r\n ArticleFigure,\r\n ArticleImage,\r\n ArticleFigcaption,\r\n ArticleContent,\r\n ArticleHeader,\r\n ArticleTitle,\r\n ArticleMeta,\r\n ArticleTime,\r\n ArticleFooter,\r\n } = getComponents()\r\n\r\n return (\r\n\r\n <RootLayout\r\n title={archive.title}\r\n description={archive.description}\r\n >\r\n <SectionHeader>\r\n <SectionTitle>{archive.title}</SectionTitle>\r\n <SectionDescription>{archive.description}</SectionDescription>\r\n </SectionHeader>\r\n\r\n <SectionContent>\r\n <Grid>\r\n {posts.map((post) => (\r\n <Article key={post.id}>\r\n\r\n {post.featuredImage && (\r\n <ArticleFigure>\r\n <ArticleImage\r\n src={post.featuredImage.url}\r\n alt={post.featuredImage.alt}\r\n />\r\n {post.featuredImage.caption && (\r\n <ArticleFigcaption>{post.featuredImage.caption}</ArticleFigcaption>\r\n )}\r\n </ArticleFigure>\r\n )}\r\n <ArticleHeader>\r\n <ArticleTitle>\r\n <A href={`/post/${post.slug}`}>\r\n {post.title}\r\n </A>\r\n </ArticleTitle>\r\n <ArticleMeta>\r\n <ArticleTime>\r\n {post.date.display}\r\n </ArticleTime>\r\n </ArticleMeta>\r\n </ArticleHeader>\r\n <ArticleContent className=\"py-0 text-sm text-secondary-foreground\">\r\n <P>\r\n {post.excerpt}\r\n </P>\r\n </ArticleContent>\r\n <ArticleFooter>\r\n <A href={`/post/${post.slug}`}>\r\n <Button variant=\"secondary\" size=\"sm\">Read more</Button>\r\n </A>\r\n </ArticleFooter>\r\n </Article>\r\n ))}\r\n </Grid>\r\n </SectionContent>\r\n </RootLayout>\r\n )\r\n} ",
14
- "target": "blocks"
15
- }
16
- ]
17
- }
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "https://buildy.tw/schema/registry-item.json",
3
- "name": "home-page",
4
- "type": "registry:block",
5
- "dependencies": [
6
- "@app/layouts"
7
- ],
8
- "devDependencies": [],
9
- "files": [
10
- {
11
- "path": "packages/ui/src/blocks/home-page.tsx",
12
- "content": "import { RootLayout } from '@app/layouts'\nimport { getComponents } from '@/utils/theme'\nimport { page } from '@/context/data'\n\nexport type HomePageProps = {\n slug: string\n}\n\nexport function HomePage() {\n\n // Destructure the components\n const {\n H1, P,\n Article,\n ArticleFigure,\n ArticleImage,\n ArticleFigcaption,\n ArticleContent,\n } = getComponents()\n\n return (\n <RootLayout\n title={page.title}\n description={page.excerpt}\n >\n <Article>\n\n {page.featuredImage && (\n <ArticleFigure>\n <ArticleImage\n src={page.featuredImage.url}\n alt={page.featuredImage.alt}\n />\n {page.featuredImage.caption && (\n <ArticleFigcaption>{page.featuredImage.caption}</ArticleFigcaption>\n )}\n </ArticleFigure>\n )}\n\n <ArticleContent>\n <H1>{page.title}</H1>\n <P>{page.content}</P>\n </ArticleContent>\n </Article>\n </RootLayout>\n )\n} ",
13
- "target": "blocks"
14
- }
15
- ]
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "$schema": "https://buildy.tw/schema/registry-item.json",
3
- "name": "post-page",
4
- "type": "registry:block",
5
- "dependencies": [
6
- "@app/layouts"
7
- ],
8
- "devDependencies": [],
9
- "files": [
10
- {
11
- "path": "packages/ui/src/blocks/post-page.tsx",
12
- "content": "import { RootLayout } from '@app/layouts'\r\nimport { getComponents } from '@/utils/theme';\r\nimport { posts } from '@/context/data'\r\n\r\nexport type PostPageProps = {\r\n slug: string\r\n}\r\n\r\nexport const NotFound = {\r\n title: 'Post Not Found',\r\n content: 'The post you\\'re looking for doesn\\'t exist.',\r\n link: '/',\r\n linkText: 'Return to homepage'\r\n} as const;\r\n\r\nexport function PostPage({ slug }: PostPageProps) {\r\n\r\n // Destructure the components\r\n const {\r\n P, H1,\r\n Article,\r\n ArticleHeader,\r\n ArticleMeta,\r\n ArticleTime,\r\n ArticleContent,\r\n ArticleFigure,\r\n ArticleImage,\r\n ArticleFigcaption,\r\n ArticleFooter,\r\n ArticleTags,\r\n ArticleTag,\r\n } = getComponents()\r\n\r\n const post = posts.find(p => p.slug === slug)\r\n\r\n if (!post) {\r\n return (\r\n <RootLayout title={NotFound.title}>\r\n <Article>\r\n <ArticleHeader>\r\n <H1>{NotFound.title}</H1>\r\n </ArticleHeader>\r\n <ArticleContent>\r\n <p>{NotFound.content}</p>\r\n <a href={NotFound.link}>{NotFound.linkText}</a>\r\n </ArticleContent>\r\n </Article>\r\n </RootLayout>\r\n )\r\n }\r\n\r\n return (\r\n <RootLayout title={post.title}>\r\n <Article>\r\n\r\n {post.featuredImage && (\r\n <ArticleFigure>\r\n <ArticleImage\r\n src={post.featuredImage.url}\r\n alt={post.featuredImage.alt}\r\n />\r\n {post.featuredImage.caption && (\r\n <ArticleFigcaption>{post.featuredImage.caption}</ArticleFigcaption>\r\n )}\r\n </ArticleFigure>\r\n )}\r\n\r\n <ArticleHeader>\r\n <H1>{post.title}</H1>\r\n <ArticleMeta>\r\n <ArticleTime>Published on {post.date.display}</ArticleTime>\r\n </ArticleMeta>\r\n </ArticleHeader>\r\n\r\n <ArticleContent>\r\n <P>{post.content}</P>\r\n </ArticleContent>\r\n\r\n {post.categories && (\r\n <ArticleFooter>\r\n <ArticleTags>\r\n {post.categories.map(category => (\r\n <ArticleTag key={category.id}>\r\n <a href={category.url}>\r\n {category.name}\r\n </a>\r\n </ArticleTag>\r\n ))}\r\n </ArticleTags>\r\n </ArticleFooter>\r\n )}\r\n </Article>\r\n </RootLayout>\r\n )\r\n} ",
13
- "target": "blocks"
14
- }
15
- ]
16
- }