fulldev-ui 0.6.0-beta.0 → 0.6.0-beta.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.
Files changed (175) hide show
  1. package/astro.config.ts +10 -2
  2. package/example.svelte +0 -0
  3. package/package.json +12 -7
  4. package/parent.svelte +0 -0
  5. package/pnpm-lock.yaml +301 -35
  6. package/src/App.svelte +0 -0
  7. package/src/blocks/Products.astro +53 -72
  8. package/src/components/Card.astro +2 -2
  9. package/src/components/Cart.astro +12 -3
  10. package/src/components/CartAdd.svelte +76 -0
  11. package/src/components/CartCheckout.svelte +58 -0
  12. package/src/components/CartForm.astro +87 -88
  13. package/src/components/CartForm.svelte +130 -0
  14. package/src/components/CartList.astro +84 -79
  15. package/src/components/CartList.svelte +88 -0
  16. package/src/components/CartQuantity.svelte +81 -0
  17. package/src/components/CartSummary.astro +8 -94
  18. package/src/components/CartTotal.svelte +15 -0
  19. package/src/components/Dialog.astro +1 -0
  20. package/src/components/Drawer.astro +1 -0
  21. package/src/components/Gallery.astro +3 -1
  22. package/src/components/Header.astro +2 -0
  23. package/src/components/Image.astro +2 -2
  24. package/src/components/Input.astro +17 -9
  25. package/src/components/ProductCard.astro +52 -0
  26. package/src/components/Prose.astro +1 -1
  27. package/src/components/Search.astro +106 -43
  28. package/src/components/Section.astro +11 -269
  29. package/src/components/Select.astro +1 -0
  30. package/src/components/_CartList backup.astro +125 -0
  31. package/src/components/_CartList copy.astro +213 -0
  32. package/src/components/_CartListSimple.astro +148 -0
  33. package/src/content/categories/mugs.md +7 -0
  34. package/src/content/config.ts +24 -4
  35. package/src/content/{pages/docs → docs}/_internationalization.mdx +0 -1
  36. package/src/content/{pages/docs → docs}/_using-blocks.mdx +0 -1
  37. package/src/content/{pages/docs → docs}/_using-presets.mdx +0 -1
  38. package/src/content/{pages/docs → docs}/blocks.mdx +0 -1
  39. package/src/content/{pages/docs → docs}/collections/images.mdx +3 -2
  40. package/src/content/{pages/docs → docs}/collections/pages.mdx +0 -1
  41. package/src/content/{pages/docs → docs}/collections/presets.mdx +0 -1
  42. package/src/content/{pages/docs → docs}/collections.mdx +0 -1
  43. package/src/content/{pages/docs → docs}/components/_card.mdx +0 -2
  44. package/src/content/{pages/docs → docs}/components/_dialog.mdx +0 -2
  45. package/src/content/{pages/docs → docs}/components/_drawer.mdx +0 -2
  46. package/src/content/{pages/docs → docs}/components/_localeswitcher.mdx +0 -2
  47. package/src/content/{pages/docs → docs}/components/_switch.mdx +0 -2
  48. package/src/content/{pages/docs → docs}/components/_tagline.mdx +0 -2
  49. package/src/content/{pages/docs → docs}/components/_toggle.mdx +0 -2
  50. package/src/content/{pages/docs → docs}/components/avatar.mdx +0 -2
  51. package/src/content/{pages/docs → docs}/components/badge.mdx +0 -2
  52. package/src/content/{pages/docs → docs}/components/badges.mdx +0 -2
  53. package/src/content/{pages/docs → docs}/components/button.mdx +0 -2
  54. package/src/content/{pages/docs → docs}/components/buttons.mdx +0 -2
  55. package/src/content/{pages/docs → docs}/components/channel.mdx +0 -2
  56. package/src/content/{pages/docs → docs}/components/channels.mdx +0 -2
  57. package/src/content/{pages/docs → docs}/components/checkbox.mdx +0 -2
  58. package/src/content/{pages/docs → docs}/components/code.mdx +0 -2
  59. package/src/content/{pages/docs → docs}/components/heading.mdx +0 -2
  60. package/src/content/{pages/docs → docs}/components/icon.mdx +0 -2
  61. package/src/content/{pages/docs → docs}/components/image.mdx +0 -2
  62. package/src/content/{pages/docs → docs}/components/input.mdx +0 -2
  63. package/src/content/{pages/docs → docs}/components/label.mdx +0 -2
  64. package/src/content/{pages/docs → docs}/components/lead.mdx +0 -2
  65. package/src/content/{pages/docs → docs}/components/link.mdx +0 -2
  66. package/src/content/{pages/docs → docs}/components/links.mdx +0 -2
  67. package/src/content/{pages/docs → docs}/components/list.mdx +0 -2
  68. package/src/content/{pages/docs → docs}/components/logo.mdx +0 -2
  69. package/src/content/{pages/docs → docs}/components/menu.mdx +0 -2
  70. package/src/content/{pages/docs → docs}/components/paragraph.mdx +0 -2
  71. package/src/content/{pages/docs → docs}/components/prose.mdx +0 -2
  72. package/src/content/{pages/docs → docs}/components/rating.mdx +0 -2
  73. package/src/content/{pages/docs → docs}/components/section.mdx +0 -2
  74. package/src/content/{pages/docs → docs}/components/select.mdx +0 -2
  75. package/src/content/{pages/docs → docs}/components/social.mdx +0 -2
  76. package/src/content/{pages/docs → docs}/components/socials.mdx +0 -2
  77. package/src/content/{pages/docs → docs}/components/switch.mdx +0 -2
  78. package/src/content/{pages/docs → docs}/components/table.mdx +0 -2
  79. package/src/content/{pages/docs → docs}/components/tagline.mdx +0 -2
  80. package/src/content/{pages/docs → docs}/components/textarea.mdx +0 -2
  81. package/src/content/{pages/docs → docs}/components/themer.mdx +0 -2
  82. package/src/content/{pages/docs → docs}/components.mdx +0 -1
  83. package/src/content/{pages/docs → docs}/customization.mdx +0 -1
  84. package/src/content/{pages/docs → docs}/frameworks.mdx +0 -1
  85. package/src/content/{pages/docs → docs}/generating-pages.mdx +0 -1
  86. package/src/content/{pages/docs → docs}/index.mdx +0 -1
  87. package/src/content/{pages/docs → docs}/installation.mdx +0 -1
  88. package/src/content/{pages/docs → docs}/layouts.mdx +0 -1
  89. package/src/content/layouts/base.yml +101 -0
  90. package/src/content/layouts/docs.yml +70 -0
  91. package/src/content/pages/blocks/_categories.mdx +0 -2
  92. package/src/content/pages/blocks/_footer.mdx +0 -2
  93. package/src/content/pages/blocks/_header.mdx +0 -2
  94. package/src/content/pages/blocks/_jobs.mdx +0 -2
  95. package/src/content/pages/blocks/_prices.mdx +0 -2
  96. package/src/content/pages/blocks/_product.mdx +0 -2
  97. package/src/content/pages/blocks/_products.mdx +0 -2
  98. package/src/content/pages/blocks/_stats.mdx +0 -2
  99. package/src/content/pages/blocks/banner.mdx +0 -2
  100. package/src/content/pages/blocks/colleagues.mdx +0 -2
  101. package/src/content/pages/blocks/contact.mdx +0 -2
  102. package/src/content/pages/blocks/content.mdx +0 -2
  103. package/src/content/pages/blocks/cta.mdx +0 -2
  104. package/src/content/pages/blocks/features.mdx +0 -2
  105. package/src/content/pages/blocks/hero.mdx +0 -2
  106. package/src/content/pages/blocks/intro.mdx +0 -2
  107. package/src/content/pages/blocks/posts.mdx +0 -2
  108. package/src/content/pages/blocks/reviews.mdx +0 -2
  109. package/src/content/pages/index.mdx +0 -2
  110. package/src/content/pages/showcase/anti-slip-profiles.md +2 -2
  111. package/src/content/pages/showcase/fulldev-ui.md +1 -1
  112. package/src/content/pages/showcase/lavis-detailing.md +1 -1
  113. package/src/content/pages/showcase/leren-trainingsacteren.md +1 -1
  114. package/src/content/pages/showcase/miele-witgoedcenter-amsterdam.md +1 -1
  115. package/src/content/pages/showcase/sloepverhuur-bolsward.md +1 -1
  116. package/src/content/pages/showcase/stark-vulcanising-products.md +1 -1
  117. package/src/content/pages/showcase/the-gym-haren.md +1 -1
  118. package/src/content/pages/showcase/van-dillen-antieke-bouwmaterialen.md +1 -1
  119. package/src/content/pages/showcase.mdx +0 -1
  120. package/src/content/products/product.md +20 -0
  121. package/src/env.d.ts +1 -0
  122. package/src/integration/index.ts +20 -8
  123. package/src/layouts/CategoryLayout.astro +12 -17
  124. package/src/layouts/DocLayout.astro +17 -0
  125. package/src/layouts/Layout.astro +11 -40
  126. package/src/layouts/PageLayout.astro +6 -12
  127. package/src/layouts/PostLayout.astro +6 -12
  128. package/src/layouts/ProductLayout.astro +28 -33
  129. package/src/pages/[...category].astro +17 -0
  130. package/src/pages/[...doc].astro +17 -0
  131. package/src/pages/[...page].astro +6 -25
  132. package/src/pages/[...post].astro +17 -0
  133. package/src/pages/[...product].astro +17 -0
  134. package/src/pages/test.astro +1 -16
  135. package/src/schemas/archive/_pageSchema.ts +94 -0
  136. package/src/schemas/categorySchema.ts +16 -0
  137. package/src/schemas/components/banner.ts +3 -0
  138. package/src/schemas/components/card.ts +1 -1
  139. package/src/schemas/components/footer.ts +1 -0
  140. package/src/schemas/components/header.ts +1 -0
  141. package/src/schemas/components/link.ts +21 -14
  142. package/src/schemas/components/section.ts +2 -0
  143. package/src/schemas/components/sections.ts +1 -1
  144. package/src/schemas/components/sidebar.ts +1 -0
  145. package/src/schemas/components/subheader.ts +1 -0
  146. package/src/schemas/components/writeup.ts +1 -1
  147. package/src/schemas/docSchema.ts +10 -0
  148. package/src/schemas/fields/categories.ts +3 -0
  149. package/src/schemas/fields/description.ts +3 -0
  150. package/src/schemas/fields/href.ts +3 -0
  151. package/src/schemas/fields/image.ts +24 -0
  152. package/src/schemas/fields/images.ts +4 -0
  153. package/src/schemas/fields/order.ts +3 -0
  154. package/src/schemas/fields/price.ts +3 -0
  155. package/src/schemas/fields/products.ts +5 -0
  156. package/src/schemas/fields/seo.ts +12 -0
  157. package/src/schemas/fields/soldout.ts +3 -0
  158. package/src/schemas/{components/price.ts → fields/title.ts} +1 -1
  159. package/src/schemas/fields/variants.ts +3 -0
  160. package/src/schemas/layoutSchema.ts +28 -0
  161. package/src/schemas/pageSchema.ts +12 -86
  162. package/src/schemas/postSchema.ts +16 -0
  163. package/src/schemas/productSchema.ts +22 -0
  164. package/src/stores/cart.svelte.ts +79 -0
  165. package/src/stores/cart.ts +59 -6
  166. package/src/utils/formatEntries.ts +8 -0
  167. package/src/utils/formatEntry.ts +29 -0
  168. package/src/utils/getHref.ts +22 -0
  169. package/svelte.config.js +5 -0
  170. package/src/content/presets/base.yml +0 -100
  171. package/src/content/presets/docs.yml +0 -6
  172. package/src/schemas/components/images.ts +0 -4
  173. package/src/schemas/presetSchema.ts +0 -3
  174. package/src/schemas/utils/categories.ts +0 -3
  175. package/src/schemas/utils/navigation.ts +0 -8
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Logo
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Menu
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Paragraph
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Prose
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Rating
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Section
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Select
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Social
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Socials
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Switch
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Table
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Tagline
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Textarea
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Themer
5
3
  ---
6
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Components
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Customization
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Frameworks
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Generating Pages
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Introduction
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Installation
4
3
  ---
5
4
 
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Layouts
4
3
  ---
5
4
 
@@ -0,0 +1,101 @@
1
+ theme: system
2
+
3
+ seo:
4
+ image: /images/og-image.png
5
+
6
+ code:
7
+ head: |
8
+ <script is:inline>
9
+ !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
10
+ posthog.init('phc_mVacbe8Xydu0UZlh4bNw5EGisvzyRcpqXEEuEEp5lOY',{api_host:'https://eu.i.posthog.com', person_profiles: 'identified_only' // or 'always' to create profiles for anonymous users as well
11
+ })
12
+ </script>
13
+
14
+ header:
15
+ themer: true
16
+ header: true
17
+ company: Fulldev UI
18
+ logo: favicon.svg
19
+ links:
20
+ - text: Docs
21
+ href: /docs/
22
+ - text: Components
23
+ href: /docs/components/badge/
24
+ - text: Blocks
25
+ href: /docs/blocks/banner/
26
+ - text: Showcase
27
+ href: /showcase/
28
+
29
+ socials:
30
+ - https://github.com/fulldotdev/ui
31
+ - https://discord.gg/vXZqMbadm8
32
+
33
+ # menu:
34
+ # - heading: Get Started
35
+ # links:
36
+ # - docs
37
+ # - docs/installation
38
+ # - docs/customization
39
+ # - docs/frameworks
40
+ # - docs/components
41
+ # - docs/collections
42
+ # - heading: Collections
43
+ # links:
44
+ # - docs/collections/pages
45
+ # - docs/collections/presets
46
+ # - docs/collections/images
47
+ # - heading: Components
48
+ # links:
49
+ # - docs/components/avatar
50
+ # - docs/components/badge
51
+ # - docs/components/badges
52
+ # - docs/components/button
53
+ # - docs/components/buttons
54
+ # # - docs/components/card
55
+ # # - docs/components/cards
56
+ # # - docs/components/cart
57
+ # # - docs/components/cart-form
58
+ # # - docs/components/cart-list
59
+ # # - docs/components/cart-summary
60
+ # - docs/components/channel
61
+ # - docs/components/channels
62
+ # - docs/components/checkbox
63
+ # - docs/components/code
64
+ # # - docs/components/dialog
65
+ # # - docs/components/drawer
66
+ # # - docs/components/element
67
+ # # - docs/components/footer
68
+ # # - docs/components/form
69
+ # # - docs/components/head
70
+ # # - docs/components/header
71
+ # - docs/components/heading
72
+ # - docs/components/icon
73
+ # - docs/components/image
74
+ # - docs/components/input
75
+ # - docs/components/label
76
+ # - docs/components/lead
77
+ # - docs/components/link
78
+ # - docs/components/links
79
+ # - docs/components/list
80
+ # # - docs/components/locale-switcher
81
+ # - docs/components/logo
82
+ # - docs/components/menu
83
+ # - docs/components/paragraph
84
+ # # - docs/components/price
85
+ # - docs/components/prose
86
+ # - docs/components/rating
87
+ # # - docs/components/search
88
+ # # - docs/components/section
89
+ # # - docs/components/sections
90
+ # - docs/components/select
91
+ # # - docs/components/sidebar
92
+ # - docs/components/social
93
+ # - docs/components/socials
94
+ # - docs/components/switch
95
+ # # - docs/components/table
96
+ # - docs/components/tagline
97
+ # # - docs/components/text
98
+ # - docs/components/textarea
99
+ # - docs/components/themer
100
+ # # - docs/components/toc
101
+ # # - docs/components/writeup
@@ -0,0 +1,70 @@
1
+ # sidebar:
2
+ # menu:
3
+ # - heading: Get Started
4
+ # links:
5
+ # - docs
6
+ # - docs/installation
7
+ # - docs/customization
8
+ # - docs/frameworks
9
+ # - docs/components
10
+ # - docs/collections
11
+ # - heading: Collections
12
+ # links:
13
+ # - docs/collections/pages
14
+ # - docs/collections/presets
15
+ # - docs/collections/images
16
+ # - heading: Components
17
+ # links:
18
+ # - docs/components/avatar
19
+ # - docs/components/badge
20
+ # - docs/components/badges
21
+ # - docs/components/button
22
+ # - docs/components/buttons
23
+ # # - docs/components/card
24
+ # # - docs/components/cards
25
+ # # - docs/components/cart
26
+ # # - docs/components/cart-form
27
+ # # - docs/components/cart-list
28
+ # # - docs/components/cart-summary
29
+ # - docs/components/channel
30
+ # - docs/components/channels
31
+ # - docs/components/checkbox
32
+ # - docs/components/code
33
+ # # - docs/components/dialog
34
+ # # - docs/components/drawer
35
+ # # - docs/components/element
36
+ # # - docs/components/footer
37
+ # # - docs/components/form
38
+ # # - docs/components/head
39
+ # # - docs/components/header
40
+ # - docs/components/heading
41
+ # - docs/components/icon
42
+ # - docs/components/image
43
+ # - docs/components/input
44
+ # - docs/components/label
45
+ # - docs/components/lead
46
+ # - docs/components/link
47
+ # - docs/components/links
48
+ # - docs/components/list
49
+ # # - docs/components/locale-switcher
50
+ # - docs/components/logo
51
+ # - docs/components/menu
52
+ # - docs/components/paragraph
53
+ # # - docs/components/price
54
+ # - docs/components/prose
55
+ # - docs/components/rating
56
+ # # - docs/components/search
57
+ # # - docs/components/section
58
+ # # - docs/components/sections
59
+ # - docs/components/select
60
+ # # - docs/components/sidebar
61
+ # - docs/components/social
62
+ # - docs/components/socials
63
+ # - docs/components/switch
64
+ # # - docs/components/table
65
+ # - docs/components/tagline
66
+ # # - docs/components/text
67
+ # - docs/components/textarea
68
+ # - docs/components/themer
69
+ # # - docs/components/toc
70
+ # # - docs/components/writeup
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Categories
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Footer
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Header
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Jobs
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Prices
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Product
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Products
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Stats
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Banner
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Colleagues
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Contact
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Content
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: CTA
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Features
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Hero
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Intro
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Posts
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
-
4
2
  title: Reviews
5
3
  ---
6
4
 
@@ -1,6 +1,4 @@
1
1
  ---
2
- presets: [base]
3
-
4
2
  seo:
5
3
  title: Fulldev UI - Astro component and block library, open-source
6
4
  description: Make websites rapidly with pre-built components and blocks.
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Anti Slip Profiles
2
+ title: Anti Slip Profiles
3
3
  image: 'anti-slip-profiles.webp'
4
- href: 'https://antislipprofiles.com'
4
+ slug: 'https://antislipprofiles.com'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Fulldev UI
2
+ title: Fulldev UI
3
3
  image: fulldev-ui.webp
4
4
  href: 'https://ui.ull.dev'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Lavis Detailing
2
+ title: Lavis Detailing
3
3
  image: lavis-detailing.webp
4
4
  href: 'https://lavisdetailing.nl'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Leren Trainingsacteren
2
+ title: Leren Trainingsacteren
3
3
  image: leren-trainingsacteren.webp
4
4
  href: 'https://lerentrainingsacteren.nl'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Miele Witgoedcenter Amsterdam
2
+ title: Miele Witgoedcenter Amsterdam
3
3
  image: miele-witgoedcenter-amsterdam.webp
4
4
  href: 'https://witgoedcenteramsterdam.nl'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Sloepverhuur Bolsward
2
+ title: Sloepverhuur Bolsward
3
3
  image: sloepverhuur-bolsward.webp
4
4
  href: 'https://sloepverhuurbolsward.nl'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Stark Vulcanising Products
2
+ title: Stark Vulcanising Products
3
3
  image: stark-vulcanising-products.webp
4
4
  href: '#'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: The Gym Haren
2
+ title: The Gym Haren
3
3
  image: the-gym-haren.webp
4
4
  href: 'https://thegymharen.nl'
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- heading: Van Dillen Antieke Bouwmaterialen
2
+ title: Van Dillen Antieke Bouwmaterialen
3
3
  image: van-dillen-antieke-bouwmaterialen.webp
4
4
  href: 'https://vdabouwmaterialen.nl'
5
5
  ---
@@ -1,5 +1,4 @@
1
1
  ---
2
- presets: [docs]
3
2
  title: Showcase
4
3
  ---
5
4
 
@@ -0,0 +1,20 @@
1
+ ---
2
+ title: My Product Title
3
+ categories:
4
+ - mugs
5
+ description: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec auctor, libero at lacinia ferment
6
+ price: 90
7
+ images:
8
+ - placeholder.webp
9
+ variants:
10
+ kleur:
11
+ - wit
12
+ - zwart
13
+ maat:
14
+ - S
15
+ - M
16
+ - L
17
+ ---
18
+
19
+
20
+
package/src/env.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  /// <reference types="astro/client" />
2
2
  /// <reference path="../.astro/types.d.ts" />
3
+ /// <reference types="simple-stack-form/types" />
@@ -5,7 +5,6 @@ import favicons from 'astro-favicons'
5
5
  import liveCode from 'astro-live-code'
6
6
  import robotsTxt from 'astro-robots-txt'
7
7
  import { envField } from 'astro/config'
8
- import type { CollectionEntry } from 'astro:content'
9
8
  import tailwindcss from 'tailwindcss'
10
9
  import tailwindcssNesting from 'tailwindcss/nesting'
11
10
  import { loadEnv } from 'vite'
@@ -15,7 +14,6 @@ interface Config {
15
14
  favicon?: string
16
15
  company?: string
17
16
  css?: string
18
- basePreset?: CollectionEntry<'presets'>['id']
19
17
  injectRoutes?: boolean
20
18
  }
21
19
 
@@ -94,12 +92,26 @@ export default function fulldevIntegration(
94
92
  // Inject routes
95
93
  // ----------------------
96
94
  if (config?.injectRoutes) {
97
- const pages = import.meta.glob('/src/pages/**/*.astro')
98
- !pages['/src/pages/[...page].astro'] &&
99
- injectRoute({
100
- pattern: '/[...page]',
101
- entrypoint: 'fulldev-ui/[...page].astro',
102
- })
95
+ injectRoute({
96
+ pattern: '/[...page]',
97
+ entrypoint: 'fulldev-ui/pages/[...page].astro',
98
+ })
99
+ injectRoute({
100
+ pattern: '/[...doc]',
101
+ entrypoint: 'fulldev-ui/pages/[...doc].astro',
102
+ })
103
+ injectRoute({
104
+ pattern: '/[...category]',
105
+ entrypoint: 'fulldev-ui/pages/[...category].astro',
106
+ })
107
+ injectRoute({
108
+ pattern: '/[...post]',
109
+ entrypoint: 'fulldev-ui/pages/[...post].astro',
110
+ })
111
+ injectRoute({
112
+ pattern: '/[...product]',
113
+ entrypoint: 'fulldev-ui/pages/[...product].astro',
114
+ })
103
115
  }
104
116
 
105
117
  // ----------------------