fulldev-ui 0.3.3 → 0.3.4

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": "fulldev-ui",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "A component library built for Astro",
5
5
  "homepage": "https://ui.full.dev",
6
6
  "bugs": "https://github.com/fulldotdev/ui/issues",
@@ -6,40 +6,52 @@ export const pathSchema = z.string().transform((value) => {
6
6
  return slug
7
7
  })
8
8
 
9
- export const buttonSchema = z.object({
10
- text: z.string(),
11
- html: z.string(),
12
- href: z.string(),
13
- })
9
+ export const buttonSchema = z
10
+ .object({
11
+ text: z.string(),
12
+ html: z.string(),
13
+ href: z.string(),
14
+ })
15
+ .partial()
16
+ .passthrough()
14
17
 
15
- const baseSchema = z.object({
16
- image: z.string(),
17
- images: z.string().array(),
18
- icon: z.string(),
19
- rating: z.number(),
20
- badge: z.string(),
21
- tagline: z.string(),
22
- heading: z.string(),
23
- text: z.string(),
24
- list: z.string().array(),
25
- price: z.string().or(z.number()),
26
- button: buttonSchema,
27
- buttons: buttonSchema.array(),
28
- })
18
+ const baseSchema = z
19
+ .object({
20
+ image: z.string(),
21
+ images: z.string().array(),
22
+ icon: z.string(),
23
+ rating: z.number(),
24
+ badge: z.string(),
25
+ tagline: z.string(),
26
+ heading: z.string(),
27
+ text: z.string(),
28
+ list: z.string().array(),
29
+ price: z.string().or(z.number()),
30
+ button: buttonSchema,
31
+ buttons: buttonSchema.array(),
32
+ })
33
+ .partial()
34
+ .passthrough()
29
35
 
30
- export const blockSchema = baseSchema.extend({
31
- card: baseSchema,
32
- cards: baseSchema.array(),
33
- })
36
+ export const blockSchema = baseSchema
37
+ .extend({
38
+ card: baseSchema,
39
+ cards: baseSchema.array(),
40
+ })
41
+ .partial()
42
+ .passthrough()
34
43
 
35
- export const pageSchema = baseSchema.extend({
36
- title: z.string(),
37
- description: z.string(),
38
- head: z
39
- .object({
40
- title: z.string(),
41
- description: z.string(),
42
- image: z.string().optional(),
43
- })
44
- .partial(),
45
- })
44
+ export const pageSchema = baseSchema
45
+ .extend({
46
+ title: z.string(),
47
+ description: z.string(),
48
+ head: z
49
+ .object({
50
+ title: z.string(),
51
+ description: z.string(),
52
+ image: z.string().optional(),
53
+ })
54
+ .partial(),
55
+ })
56
+ .partial()
57
+ .passthrough()