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.
- package/astro.config.ts +10 -2
- package/example.svelte +0 -0
- package/package.json +12 -7
- package/parent.svelte +0 -0
- package/pnpm-lock.yaml +301 -35
- package/src/App.svelte +0 -0
- package/src/blocks/Products.astro +53 -72
- package/src/components/Card.astro +2 -2
- package/src/components/Cart.astro +12 -3
- package/src/components/CartAdd.svelte +76 -0
- package/src/components/CartCheckout.svelte +58 -0
- package/src/components/CartForm.astro +87 -88
- package/src/components/CartForm.svelte +130 -0
- package/src/components/CartList.astro +84 -79
- package/src/components/CartList.svelte +88 -0
- package/src/components/CartQuantity.svelte +81 -0
- package/src/components/CartSummary.astro +8 -94
- package/src/components/CartTotal.svelte +15 -0
- package/src/components/Dialog.astro +1 -0
- package/src/components/Drawer.astro +1 -0
- package/src/components/Gallery.astro +3 -1
- package/src/components/Header.astro +2 -0
- package/src/components/Image.astro +2 -2
- package/src/components/Input.astro +17 -9
- package/src/components/ProductCard.astro +52 -0
- package/src/components/Prose.astro +1 -1
- package/src/components/Search.astro +106 -43
- package/src/components/Section.astro +11 -269
- package/src/components/Select.astro +1 -0
- package/src/components/_CartList backup.astro +125 -0
- package/src/components/_CartList copy.astro +213 -0
- package/src/components/_CartListSimple.astro +148 -0
- package/src/content/categories/mugs.md +7 -0
- package/src/content/config.ts +24 -4
- package/src/content/{pages/docs → docs}/_internationalization.mdx +0 -1
- package/src/content/{pages/docs → docs}/_using-blocks.mdx +0 -1
- package/src/content/{pages/docs → docs}/_using-presets.mdx +0 -1
- package/src/content/{pages/docs → docs}/blocks.mdx +0 -1
- package/src/content/{pages/docs → docs}/collections/images.mdx +3 -2
- package/src/content/{pages/docs → docs}/collections/pages.mdx +0 -1
- package/src/content/{pages/docs → docs}/collections/presets.mdx +0 -1
- package/src/content/{pages/docs → docs}/collections.mdx +0 -1
- package/src/content/{pages/docs → docs}/components/_card.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_dialog.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_drawer.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_localeswitcher.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_switch.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_tagline.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/_toggle.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/avatar.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/badge.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/badges.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/button.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/buttons.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/channel.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/channels.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/checkbox.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/code.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/heading.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/icon.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/image.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/input.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/label.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/lead.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/link.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/links.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/list.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/logo.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/menu.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/paragraph.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/prose.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/rating.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/section.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/select.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/social.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/socials.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/switch.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/table.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/tagline.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/textarea.mdx +0 -2
- package/src/content/{pages/docs → docs}/components/themer.mdx +0 -2
- package/src/content/{pages/docs → docs}/components.mdx +0 -1
- package/src/content/{pages/docs → docs}/customization.mdx +0 -1
- package/src/content/{pages/docs → docs}/frameworks.mdx +0 -1
- package/src/content/{pages/docs → docs}/generating-pages.mdx +0 -1
- package/src/content/{pages/docs → docs}/index.mdx +0 -1
- package/src/content/{pages/docs → docs}/installation.mdx +0 -1
- package/src/content/{pages/docs → docs}/layouts.mdx +0 -1
- package/src/content/layouts/base.yml +101 -0
- package/src/content/layouts/docs.yml +70 -0
- package/src/content/pages/blocks/_categories.mdx +0 -2
- package/src/content/pages/blocks/_footer.mdx +0 -2
- package/src/content/pages/blocks/_header.mdx +0 -2
- package/src/content/pages/blocks/_jobs.mdx +0 -2
- package/src/content/pages/blocks/_prices.mdx +0 -2
- package/src/content/pages/blocks/_product.mdx +0 -2
- package/src/content/pages/blocks/_products.mdx +0 -2
- package/src/content/pages/blocks/_stats.mdx +0 -2
- package/src/content/pages/blocks/banner.mdx +0 -2
- package/src/content/pages/blocks/colleagues.mdx +0 -2
- package/src/content/pages/blocks/contact.mdx +0 -2
- package/src/content/pages/blocks/content.mdx +0 -2
- package/src/content/pages/blocks/cta.mdx +0 -2
- package/src/content/pages/blocks/features.mdx +0 -2
- package/src/content/pages/blocks/hero.mdx +0 -2
- package/src/content/pages/blocks/intro.mdx +0 -2
- package/src/content/pages/blocks/posts.mdx +0 -2
- package/src/content/pages/blocks/reviews.mdx +0 -2
- package/src/content/pages/index.mdx +0 -2
- package/src/content/pages/showcase/anti-slip-profiles.md +2 -2
- package/src/content/pages/showcase/fulldev-ui.md +1 -1
- package/src/content/pages/showcase/lavis-detailing.md +1 -1
- package/src/content/pages/showcase/leren-trainingsacteren.md +1 -1
- package/src/content/pages/showcase/miele-witgoedcenter-amsterdam.md +1 -1
- package/src/content/pages/showcase/sloepverhuur-bolsward.md +1 -1
- package/src/content/pages/showcase/stark-vulcanising-products.md +1 -1
- package/src/content/pages/showcase/the-gym-haren.md +1 -1
- package/src/content/pages/showcase/van-dillen-antieke-bouwmaterialen.md +1 -1
- package/src/content/pages/showcase.mdx +0 -1
- package/src/content/products/product.md +20 -0
- package/src/env.d.ts +1 -0
- package/src/integration/index.ts +20 -8
- package/src/layouts/CategoryLayout.astro +12 -17
- package/src/layouts/DocLayout.astro +17 -0
- package/src/layouts/Layout.astro +11 -40
- package/src/layouts/PageLayout.astro +6 -12
- package/src/layouts/PostLayout.astro +6 -12
- package/src/layouts/ProductLayout.astro +28 -33
- package/src/pages/[...category].astro +17 -0
- package/src/pages/[...doc].astro +17 -0
- package/src/pages/[...page].astro +6 -25
- package/src/pages/[...post].astro +17 -0
- package/src/pages/[...product].astro +17 -0
- package/src/pages/test.astro +1 -16
- package/src/schemas/archive/_pageSchema.ts +94 -0
- package/src/schemas/categorySchema.ts +16 -0
- package/src/schemas/components/banner.ts +3 -0
- package/src/schemas/components/card.ts +1 -1
- package/src/schemas/components/footer.ts +1 -0
- package/src/schemas/components/header.ts +1 -0
- package/src/schemas/components/link.ts +21 -14
- package/src/schemas/components/section.ts +2 -0
- package/src/schemas/components/sections.ts +1 -1
- package/src/schemas/components/sidebar.ts +1 -0
- package/src/schemas/components/subheader.ts +1 -0
- package/src/schemas/components/writeup.ts +1 -1
- package/src/schemas/docSchema.ts +10 -0
- package/src/schemas/fields/categories.ts +3 -0
- package/src/schemas/fields/description.ts +3 -0
- package/src/schemas/fields/href.ts +3 -0
- package/src/schemas/fields/image.ts +24 -0
- package/src/schemas/fields/images.ts +4 -0
- package/src/schemas/fields/order.ts +3 -0
- package/src/schemas/fields/price.ts +3 -0
- package/src/schemas/fields/products.ts +5 -0
- package/src/schemas/fields/seo.ts +12 -0
- package/src/schemas/fields/soldout.ts +3 -0
- package/src/schemas/{components/price.ts → fields/title.ts} +1 -1
- package/src/schemas/fields/variants.ts +3 -0
- package/src/schemas/layoutSchema.ts +28 -0
- package/src/schemas/pageSchema.ts +12 -86
- package/src/schemas/postSchema.ts +16 -0
- package/src/schemas/productSchema.ts +22 -0
- package/src/stores/cart.svelte.ts +79 -0
- package/src/stores/cart.ts +59 -6
- package/src/utils/formatEntries.ts +8 -0
- package/src/utils/formatEntry.ts +29 -0
- package/src/utils/getHref.ts +22 -0
- package/svelte.config.js +5 -0
- package/src/content/presets/base.yml +0 -100
- package/src/content/presets/docs.yml +0 -6
- package/src/schemas/components/images.ts +0 -4
- package/src/schemas/presetSchema.ts +0 -3
- package/src/schemas/utils/categories.ts +0 -3
- package/src/schemas/utils/navigation.ts +0 -8
|
@@ -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
|
|
@@ -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
package/src/integration/index.ts
CHANGED
|
@@ -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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
// ----------------------
|