fulldev-ui 0.5.0-beta.9 → 0.6.0-beta.0

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 (236) hide show
  1. package/.env.example +3 -0
  2. package/.prettierrc.yaml +1 -0
  3. package/astro.config.ts +6 -32
  4. package/package.json +21 -30
  5. package/pnpm-lock.yaml +696 -2176
  6. package/public/favicon/android-chrome-192x192.png +0 -0
  7. package/public/favicon/android-chrome-512x512.png +0 -0
  8. package/public/favicon/apple-touch-icon.png +0 -0
  9. package/public/favicon/manifest.webmanifest +7 -3
  10. package/public/favicon/mstile-150x150.png +0 -0
  11. package/src/blocks/Banner.astro +6 -19
  12. package/src/blocks/Colleagues.astro +0 -1
  13. package/src/blocks/Contact.astro +75 -74
  14. package/src/blocks/Content.astro +124 -6
  15. package/src/blocks/Cta.astro +0 -2
  16. package/src/blocks/Excerpt.astro +0 -2
  17. package/src/blocks/Footer.astro +107 -3
  18. package/src/blocks/Hero.astro +238 -9
  19. package/src/blocks/Intro.astro +89 -11
  20. package/src/blocks/Prices.astro +1 -1
  21. package/src/blocks/Product.astro +49 -70
  22. package/src/blocks/Products.astro +114 -5
  23. package/src/blocks/Reviews.astro +0 -1
  24. package/src/blocks/_Contact.astro +112 -0
  25. package/src/components/Avatar.astro +28 -9
  26. package/src/components/Avatars.astro +36 -0
  27. package/src/components/Badge.astro +73 -26
  28. package/src/components/Badges.astro +16 -23
  29. package/src/components/Breadcrumb.astro +58 -0
  30. package/src/components/Button.astro +56 -112
  31. package/src/components/Buttons.astro +23 -13
  32. package/src/components/Card.astro +129 -115
  33. package/src/components/Cards.astro +33 -35
  34. package/src/components/Carousel.astro +106 -0
  35. package/src/components/Cart.astro +1 -1
  36. package/src/components/CartForm.astro +10 -10
  37. package/src/components/CartList.astro +11 -28
  38. package/src/components/CartSummary.astro +11 -14
  39. package/src/components/Channel.astro +40 -22
  40. package/src/components/Channels.astro +20 -6
  41. package/src/components/Checkbox.astro +52 -27
  42. package/src/components/Code.astro +52 -0
  43. package/src/components/Dialog.astro +2 -2
  44. package/src/components/Drawer.astro +34 -64
  45. package/src/components/Element.astro +16 -8
  46. package/src/components/Form.astro +14 -13
  47. package/src/components/Gallery.astro +172 -0
  48. package/src/components/Head.astro +52 -1
  49. package/src/components/Header.astro +73 -83
  50. package/src/components/Heading.astro +74 -30
  51. package/src/components/Icon.astro +25 -30
  52. package/src/components/Image.astro +23 -38
  53. package/src/components/Input.astro +59 -53
  54. package/src/components/Label.astro +20 -15
  55. package/src/components/Lead.astro +46 -0
  56. package/src/components/Link.astro +51 -26
  57. package/src/components/Links.astro +42 -0
  58. package/src/components/List.astro +41 -16
  59. package/src/components/LocaleSwitcher.astro +2 -2
  60. package/src/components/Logo.astro +45 -0
  61. package/src/components/Menu.astro +21 -17
  62. package/src/components/Paragraph.astro +38 -0
  63. package/src/components/Price.astro +1 -1
  64. package/src/components/Prose.astro +169 -0
  65. package/src/components/Rating.astro +50 -38
  66. package/src/components/Search.astro +1 -1
  67. package/src/components/Section.astro +196 -158
  68. package/src/components/Select.astro +44 -55
  69. package/src/components/Sidebar.astro +31 -38
  70. package/src/components/Social.astro +3 -8
  71. package/src/components/Socials.astro +9 -5
  72. package/src/components/Subheader.astro +59 -0
  73. package/src/components/Switch.astro +72 -29
  74. package/src/components/Table.astro +1 -1
  75. package/src/components/Tagline.astro +40 -12
  76. package/src/components/Text.astro +4 -4
  77. package/src/components/Textarea.astro +40 -50
  78. package/src/components/Themer.astro +76 -0
  79. package/src/components/Toc.astro +24 -32
  80. package/src/components/Writeup.astro +26 -8
  81. package/src/components/docs/PropsTable.astro +38 -264
  82. package/src/components/experimental/Window.astro +5 -57
  83. package/src/components/sections.astro +1 -1
  84. package/src/content/pages/blocks/_categories.mdx +1 -1
  85. package/src/content/pages/blocks/_footer.mdx +1 -1
  86. package/src/content/pages/blocks/_header.mdx +1 -3
  87. package/src/content/pages/blocks/_jobs.mdx +1 -1
  88. package/src/content/pages/blocks/_prices.mdx +1 -1
  89. package/src/content/pages/blocks/_product.mdx +1 -1
  90. package/src/content/pages/blocks/_products.mdx +1 -1
  91. package/src/content/pages/blocks/_stats.mdx +1 -1
  92. package/src/content/pages/blocks/banner.mdx +1 -1
  93. package/src/content/pages/blocks/colleagues.mdx +1 -2
  94. package/src/content/pages/blocks/contact.mdx +1 -1
  95. package/src/content/pages/blocks/content.mdx +1 -5
  96. package/src/content/pages/blocks/cta.mdx +1 -9
  97. package/src/content/pages/blocks/features.mdx +1 -4
  98. package/src/content/pages/blocks/hero.mdx +1 -4
  99. package/src/content/pages/blocks/intro.mdx +1 -4
  100. package/src/content/pages/blocks/posts.mdx +1 -1
  101. package/src/content/pages/blocks/reviews.mdx +1 -2
  102. package/src/content/pages/docs/_internationalization.mdx +55 -0
  103. package/src/content/pages/docs/_using-blocks.mdx +33 -0
  104. package/src/content/pages/docs/_using-presets.mdx +49 -0
  105. package/src/content/pages/docs/blocks.mdx +33 -0
  106. package/src/content/pages/docs/collections/images.mdx +100 -0
  107. package/src/content/pages/docs/collections/pages.mdx +119 -0
  108. package/src/content/pages/docs/collections/presets.mdx +60 -0
  109. package/src/content/pages/docs/collections.mdx +42 -0
  110. package/src/content/pages/{base/card.mdx → docs/components/_card.mdx} +1 -3
  111. package/src/content/pages/{base → docs/components}/_switch.mdx +2 -2
  112. package/src/content/pages/{typography → docs/components}/_tagline.mdx +2 -2
  113. package/src/content/pages/docs/components/_toggle.mdx +31 -0
  114. package/src/content/pages/docs/components/avatar.mdx +35 -0
  115. package/src/content/pages/{base → docs/components}/badge.mdx +27 -8
  116. package/src/content/pages/docs/components/badges.mdx +47 -0
  117. package/src/content/pages/{base → docs/components}/button.mdx +29 -10
  118. package/src/content/pages/docs/components/buttons.mdx +52 -0
  119. package/src/content/pages/docs/components/channel.mdx +92 -0
  120. package/src/content/pages/docs/components/channels.mdx +90 -0
  121. package/src/content/pages/{base → docs/components}/checkbox.mdx +10 -17
  122. package/src/content/pages/docs/components/code.mdx +46 -0
  123. package/src/content/pages/docs/components/heading.mdx +60 -0
  124. package/src/content/pages/docs/components/icon.mdx +49 -0
  125. package/src/content/pages/docs/components/image.mdx +26 -0
  126. package/src/content/pages/docs/components/input.mdx +41 -0
  127. package/src/content/pages/{typography → docs/components}/label.mdx +8 -4
  128. package/src/content/pages/docs/components/lead.mdx +51 -0
  129. package/src/content/pages/{typography → docs/components}/link.mdx +23 -8
  130. package/src/content/pages/docs/components/links.mdx +100 -0
  131. package/src/content/pages/docs/components/list.mdx +45 -0
  132. package/src/content/pages/docs/components/logo.mdx +37 -0
  133. package/src/content/pages/docs/components/menu.mdx +90 -0
  134. package/src/content/pages/docs/components/paragraph.mdx +51 -0
  135. package/src/content/pages/docs/components/prose.mdx +37 -0
  136. package/src/content/pages/docs/components/rating.mdx +77 -0
  137. package/src/content/pages/{base → docs/components}/section.mdx +1 -1
  138. package/src/content/pages/{base → docs/components}/select.mdx +0 -9
  139. package/src/content/pages/docs/components/social.mdx +95 -0
  140. package/src/content/pages/docs/components/socials.mdx +103 -0
  141. package/src/content/pages/docs/components/switch.mdx +35 -0
  142. package/src/content/pages/{base → docs/components}/table.mdx +0 -2
  143. package/src/content/pages/docs/components/tagline.mdx +47 -0
  144. package/src/content/pages/docs/components/textarea.mdx +35 -0
  145. package/src/content/pages/docs/components/themer.mdx +50 -0
  146. package/src/content/pages/docs/components.mdx +40 -0
  147. package/src/content/pages/docs/customization.mdx +151 -0
  148. package/src/content/pages/docs/frameworks.mdx +29 -0
  149. package/src/content/pages/docs/generating-pages.mdx +129 -0
  150. package/src/content/pages/docs/index.mdx +23 -0
  151. package/src/content/pages/docs/installation.mdx +50 -0
  152. package/src/content/pages/docs/layouts.mdx +33 -0
  153. package/src/content/pages/index.mdx +11 -9
  154. package/src/content/pages/showcase.mdx +4 -2
  155. package/src/content/presets/base.yml +80 -63
  156. package/src/content/presets/docs.yml +2 -2
  157. package/src/css/color.css +0 -10
  158. package/src/css/custom.css +10 -12
  159. package/src/css/size.css +2 -11
  160. package/src/css/theme.css +93 -0
  161. package/src/images/logo-1.svg +11 -0
  162. package/src/images/logo-2.svg +13 -0
  163. package/src/images/logo-basic.svg +10 -0
  164. package/src/images/logo-simple.svg +13 -0
  165. package/src/images/logo-thin.svg +15 -0
  166. package/src/images/logo.svg +14 -0
  167. package/src/images/logofat.svg +11 -0
  168. package/src/integration/index.ts +71 -144
  169. package/src/layouts/CategoryLayout.astro +135 -0
  170. package/src/layouts/Layout.astro +62 -117
  171. package/src/layouts/PageLayout.astro +26 -0
  172. package/src/layouts/PostLayout.astro +13 -8
  173. package/src/layouts/ProductLayout.astro +94 -10
  174. package/src/pages/[...page].astro +14 -22
  175. package/src/pages/test.astro +20 -0
  176. package/src/schemas/components/button.ts +21 -13
  177. package/src/schemas/components/card.ts +36 -18
  178. package/src/schemas/components/footer.ts +2 -10
  179. package/src/schemas/components/global.ts +16 -0
  180. package/src/schemas/components/header.ts +8 -0
  181. package/src/schemas/components/image.ts +8 -3
  182. package/src/schemas/components/link.ts +16 -0
  183. package/src/schemas/components/links.ts +4 -0
  184. package/src/schemas/components/menu.ts +2 -0
  185. package/src/schemas/components/sidebar.ts +2 -2
  186. package/src/schemas/components/subheader.ts +9 -0
  187. package/src/schemas/components/themer.ts +3 -0
  188. package/src/schemas/pageSchema.ts +14 -21
  189. package/src/utils/cart.ts +1 -10
  190. package/src/utils/getDeepReferenceChildren.ts +14 -0
  191. package/src/utils/getReferenceChildren.ts +1 -1
  192. package/src/utils/setTheme.ts +18 -0
  193. package/src/utils/slugify.ts +6 -0
  194. package/tailwind.config.ts +67 -0
  195. package/src/blocks/Article.astro +0 -40
  196. package/src/components/Footer.astro +0 -193
  197. package/src/components/ThemeSelect.astro +0 -41
  198. package/src/components/experimental/Form.astro +0 -53
  199. package/src/components/experimental/Gallery.astro +0 -104
  200. package/src/components/experimental/Logo.astro +0 -38
  201. package/src/components/experimental/Prose.astro +0 -192
  202. package/src/content/pages/base/icon.mdx +0 -55
  203. package/src/content/pages/base/image.mdx +0 -42
  204. package/src/content/pages/base/input.mdx +0 -56
  205. package/src/content/pages/base/rating.mdx +0 -55
  206. package/src/content/pages/base/textarea.mdx +0 -58
  207. package/src/content/pages/base/theme-select.mdx +0 -15
  208. package/src/content/pages/layouts/_layout.mdx +0 -14
  209. package/src/content/pages/layouts/docslayout.mdx +0 -14
  210. package/src/content/pages/overview/components.mdx +0 -75
  211. package/src/content/pages/overview/content-collections.mdx +0 -139
  212. package/src/content/pages/overview/frameworks.mdx +0 -198
  213. package/src/content/pages/overview/installation.mdx +0 -53
  214. package/src/content/pages/overview/introduction.mdx +0 -30
  215. package/src/content/pages/overview/theming.mdx +0 -69
  216. package/src/content/pages/schemas/page.mdx +0 -17
  217. package/src/content/pages/schemas/preset.mdx +0 -9
  218. package/src/content/pages/showcase/record.md +0 -3
  219. package/src/content/pages/typography/heading.mdx +0 -73
  220. package/src/content/pages/typography/list.mdx +0 -51
  221. package/src/content/pages/typography/text.mdx +0 -61
  222. package/src/content/presets/blocks.yml +0 -1
  223. package/src/css/space.css +0 -77
  224. package/src/css/styles.css +0 -0
  225. package/src/images/avatar-1.yml +0 -1
  226. package/src/integration/generate-colors.ts +0 -639
  227. package/src/integration/tailwind-plugin.ts +0 -80
  228. package/src/integration/unocss-preset.ts +0 -84
  229. package/src/layouts/BlockLayout.astro +0 -19
  230. package/src/layouts/ContactLayout.astro +0 -21
  231. package/src/layouts/DocsLayout.astro +0 -73
  232. package/src/layouts/OverviewLayout.astro +0 -42
  233. /package/src/content/pages/{base → docs/components}/_dialog.mdx +0 -0
  234. /package/src/content/pages/{base → docs/components}/_drawer.mdx +0 -0
  235. /package/src/content/pages/{base → docs/components}/_localeswitcher.mdx +0 -0
  236. /package/src/schemas/utils/{parents.ts → categories.ts} +0 -0
@@ -15,7 +15,7 @@ import Card from 'fulldev-ui/components/Card.astro'
15
15
 
16
16
  <Card
17
17
  heading="Lorem ipsum dolor"
18
- text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
18
+ paragraph="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
19
19
  />
20
20
  ```
21
21
 
@@ -74,13 +74,11 @@ import Card from 'fulldev-ui/components/Card.astro'
74
74
  ---
75
75
 
76
76
  <Card
77
- color="base"
78
77
  heading="Lorem ipsum dolor"
79
78
  text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
80
79
  />
81
80
 
82
81
  <Card
83
- color="brand"
84
82
  heading="Lorem ipsum dolor"
85
83
  text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
86
84
  />
@@ -27,6 +27,6 @@ import Switch from 'fulldev-ui/components/Switch.astro'
27
27
  import Switch from 'fulldev-ui/components/Switch.astro'
28
28
  ---
29
29
 
30
- <Switch color="base" trueLabel="On" falseLabel="Off" />
31
- <Switch color="brand" trueLabel="On" falseLabel="Off" />
30
+ <Switch trueLabel="On" falseLabel="Off" />
31
+ <Switch trueLabel="On" falseLabel="Off" />
32
32
  ```
@@ -19,8 +19,8 @@ import Tagline from 'fulldev-ui/components/Tagline.astro'
19
19
  import Tagline from 'fulldev-ui/components/Tagline.astro'
20
20
  ---
21
21
 
22
- <Tagline color="base">The quick brown fox jumps</Tagline>
23
- <Tagline color="brand">The quick brown fox jumps</Tagline>
22
+ <Tagline>The quick brown fox jumps</Tagline>
23
+ <Tagline>The quick brown fox jumps</Tagline>
24
24
  ```
25
25
 
26
26
  Set to `true` by default on Headings, which you can override by setting it to `false`.
@@ -0,0 +1,31 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Toggle
5
+ ---
6
+
7
+ # Toggle
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Toggle from 'fulldev-ui/components/Toggle.astro'
14
+ ---
15
+
16
+ <Toggle text="Click me" icon="click" />
17
+ ```
18
+
19
+ ## Props
20
+
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ```astro live
26
+ ---
27
+ import Toggle from 'fulldev-ui/components/Toggle.astro'
28
+ ---
29
+
30
+ <Toggle icon={'code'} text="Auto save" toggled={true} />
31
+ ```
@@ -0,0 +1,35 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Avatar
5
+ ---
6
+
7
+ # Avatar
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Avatar from 'fulldev-ui/components/Avatar.astro'
14
+ ---
15
+
16
+ <Avatar id="avatar-1.jpeg" />
17
+ ```
18
+
19
+ ## Props
20
+
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ### `size`
26
+
27
+ ```astro live
28
+ ---
29
+ import Avatar from 'fulldev-ui/components/Avatar.astro'
30
+ ---
31
+
32
+ <Avatar id="avatar-1.jpeg" size="sm" />
33
+ <Avatar id="avatar-1.jpeg" size="md" />
34
+ <Avatar id="avatar-1.jpeg" size="lg" />
35
+ ```
@@ -22,38 +22,57 @@ import Badge from 'fulldev-ui/components/Badge.astro'
22
22
 
23
23
  ## Examples
24
24
 
25
+ ### `variant`
26
+
25
27
  ```astro live
26
28
  ---
27
29
  import Badge from 'fulldev-ui/components/Badge.astro'
28
30
  ---
29
31
 
30
- <Badge size="sm">Badge</Badge>
31
- <Badge size="md">Badge</Badge>
32
- <Badge size="lg">Badge</Badge>
32
+ <Badge variant="primary">Primary</Badge>
33
+ <Badge variant="secondary">Secondary</Badge>
34
+ <Badge variant="outline">Outline</Badge>
33
35
  ```
34
36
 
37
+ ### `size`
38
+
35
39
  ```astro live
36
40
  ---
37
41
  import Badge from 'fulldev-ui/components/Badge.astro'
38
42
  ---
39
43
 
40
- <Badge color="base">Badge</Badge>
41
- <Badge color="brand">Badge</Badge>
44
+ <Badge size="sm">Small</Badge>
45
+ <Badge size="md">Medium</Badge>
46
+ <Badge size="lg">Large</Badge>
42
47
  ```
43
48
 
49
+ ### `icon`
50
+
44
51
  ```astro live
45
52
  ---
46
53
  import Badge from 'fulldev-ui/components/Badge.astro'
47
54
  ---
48
55
 
49
- <Badge>Badge</Badge>
50
- <Badge contrast>Badge</Badge>
56
+ <Badge icon="circle" text="Badge" />
57
+ <Badge icon="circle" />
51
58
  ```
52
59
 
60
+ ### `href`
61
+
53
62
  ```astro live
54
63
  ---
55
64
  import Badge from 'fulldev-ui/components/Badge.astro'
56
65
  ---
57
66
 
58
- <Badge icon="circle" text="Badge" />
67
+ <Badge href="#">Link</Badge>
68
+ ```
69
+
70
+ ### `text`
71
+
72
+ ```astro live
73
+ ---
74
+ import Badge from 'fulldev-ui/components/Badge.astro'
75
+ ---
76
+
77
+ <Badge text="Badge" />
59
78
  ```
@@ -0,0 +1,47 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Badges
5
+ ---
6
+
7
+ # Badges
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Badges from 'fulldev-ui/components/Badges.astro'
14
+ ---
15
+
16
+ <Badges badges={[{ text: 'First' }, { text: 'Second' }]} />
17
+ ```
18
+
19
+ ## Props
20
+
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ### `variant`
26
+
27
+ ```astro live
28
+ ---
29
+ import Badges from 'fulldev-ui/components/Badges.astro'
30
+ ---
31
+
32
+ <Badges variant="primary" badges={[{ text: 'First' }, { text: 'Second' }]} />
33
+ <Badges variant="secondary" badges={[{ text: 'First' }, { text: 'Second' }]} />
34
+ <Badges variant="outline" badges={[{ text: 'First' }, { text: 'Second' }]} />
35
+ ```
36
+
37
+ ### `size`
38
+
39
+ ```astro live
40
+ ---
41
+ import Badges from 'fulldev-ui/components/Badges.astro'
42
+ ---
43
+
44
+ <Badges size="sm" badges={[{ text: 'First' }, { text: 'Second' }]} />
45
+ <Badges size="md" badges={[{ text: 'First' }, { text: 'Second' }]} />
46
+ <Badges size="lg" badges={[{ text: 'First' }, { text: 'Second' }]} />
47
+ ```
@@ -13,7 +13,7 @@ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
13
13
  import Button from 'fulldev-ui/components/Button.astro'
14
14
  ---
15
15
 
16
- <Button color="brand">Button</Button>
16
+ <Button>Button</Button>
17
17
  ```
18
18
 
19
19
  ## Props
@@ -22,39 +22,58 @@ import Button from 'fulldev-ui/components/Button.astro'
22
22
 
23
23
  ## Examples
24
24
 
25
+ ### `variant`
26
+
27
+ ```astro live
28
+ ---
29
+ import Button from 'fulldev-ui/components/Button.astro'
30
+ ---
31
+
32
+ <Button variant="primary">Primary</Button>
33
+ <Button variant="secondary">Secondary</Button>
34
+ <Button variant="outline">Outline</Button>
35
+ <Button variant="ghost">Ghost</Button>
36
+ ```
37
+
38
+ ### `size`
39
+
25
40
  ```astro live
26
41
  ---
27
42
  import Button from 'fulldev-ui/components/Button.astro'
28
43
  ---
29
44
 
30
- <Button variant="primary">Button</Button>
31
- <Button variant="secondary">Button</Button>
32
- <Button variant="tertiary">Button</Button>
45
+ <Button size="sm">Small</Button>
46
+ <Button size="md">Medium</Button>
47
+ <Button size="lg">Large</Button>
33
48
  ```
34
49
 
50
+ ### `icon`
51
+
35
52
  ```astro live
36
53
  ---
37
54
  import Button from 'fulldev-ui/components/Button.astro'
38
55
  ---
39
56
 
40
- <Button icon="circle" text="Button" text="Buttontje" />
57
+ <Button icon="confetti" text="Button" />
58
+ <Button icon="confetti" />
41
59
  ```
42
60
 
61
+ ### `href`
62
+
43
63
  ```astro live
44
64
  ---
45
65
  import Button from 'fulldev-ui/components/Button.astro'
46
66
  ---
47
67
 
48
- <Button size="sm" text="Button" />
49
- <Button size="md" text="Button" />
50
- <Button size="lg" text="Button" />
68
+ <Button href="#">Link</Button>
51
69
  ```
52
70
 
71
+ ### `text`
72
+
53
73
  ```astro live
54
74
  ---
55
75
  import Button from 'fulldev-ui/components/Button.astro'
56
76
  ---
57
77
 
58
- <Button color="base" text="Button" />
59
- <Button color="brand" text="Button" />
78
+ <Button text="Button" />
60
79
  ```
@@ -0,0 +1,52 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Buttons
5
+ ---
6
+
7
+ # Buttons
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Buttons from 'fulldev-ui/components/Buttons.astro'
14
+ ---
15
+
16
+ <Buttons buttons={[{ text: 'First' }, { text: 'Second' }]} />
17
+ ```
18
+
19
+ ## Props
20
+
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ### `variant`
26
+
27
+ ```astro live
28
+ ---
29
+ import Buttons from 'fulldev-ui/components/Buttons.astro'
30
+ ---
31
+
32
+ <Buttons
33
+ variant="primary"
34
+ buttons={[{ text: 'First' }, { text: 'Second' }, { text: 'Third' }]}
35
+ />
36
+ <Buttons
37
+ variant="secondary"
38
+ buttons={[{ text: 'First' }, { text: 'Second' }]}
39
+ />
40
+ ```
41
+
42
+ ### `size`
43
+
44
+ ```astro live
45
+ ---
46
+ import Buttons from 'fulldev-ui/components/Buttons.astro'
47
+ ---
48
+
49
+ <Buttons size="sm" buttons={[{ text: 'First' }, { text: 'Second' }]} />
50
+ <Buttons size="md" buttons={[{ text: 'First' }, { text: 'Second' }]} />
51
+ <Buttons size="lg" buttons={[{ text: 'First' }, { text: 'Second' }]} />
52
+ ```
@@ -0,0 +1,92 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Channel
5
+ ---
6
+
7
+ # Channel
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Channel from 'fulldev-ui/components/Channel.astro'
14
+ ---
15
+
16
+ <Channel
17
+ heading="Email"
18
+ text="info@full.dev"
19
+ icon="mail"
20
+ href="mailto:info@full.dev"
21
+ />
22
+ ```
23
+
24
+ ## Props
25
+
26
+ <PropsTable />
27
+
28
+ ## Examples
29
+
30
+ ### `variant`
31
+
32
+ ```astro live
33
+ ---
34
+ import Channel from 'fulldev-ui/components/Channel.astro'
35
+ ---
36
+
37
+ <Channel
38
+ variant="primary"
39
+ heading="Email"
40
+ text="info@full.dev"
41
+ icon="mail"
42
+ href="mailto:info@full.dev"
43
+ />
44
+
45
+ <Channel
46
+ variant="secondary"
47
+ heading="Email"
48
+ text="info@full.dev"
49
+ icon="mail"
50
+ href="mailto:info@full.dev"
51
+ />
52
+
53
+ <Channel
54
+ variant="outline"
55
+ heading="Email"
56
+ text="info@full.dev"
57
+ icon="mail"
58
+ href="mailto:info@full.dev"
59
+ />
60
+ ```
61
+
62
+ ### `size`
63
+
64
+ ```astro live
65
+ ---
66
+ import Channel from 'fulldev-ui/components/Channel.astro'
67
+ ---
68
+
69
+ <Channel
70
+ size="sm"
71
+ heading="Email"
72
+ text="info@full.dev"
73
+ icon="mail"
74
+ href="mailto:info@full.dev"
75
+ />
76
+
77
+ <Channel
78
+ size="md"
79
+ heading="Email"
80
+ text="info@full.dev"
81
+ icon="mail"
82
+ href="mailto:info@full.dev"
83
+ />
84
+
85
+ <Channel
86
+ size="lg"
87
+ heading="Email"
88
+ text="info@full.dev"
89
+ icon="mail"
90
+ href="mailto:info@full.dev"
91
+ />
92
+ ```
@@ -0,0 +1,90 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Channels
5
+ ---
6
+
7
+ # Channels
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Channels from 'fulldev-ui/components/Channels.astro'
14
+ ---
15
+
16
+ <Channels
17
+ channels={[
18
+ {
19
+ icon: 'mail',
20
+ heading: 'Mail',
21
+ text: 'info@full.dev',
22
+ href: 'mailto:info@full.dev',
23
+ },
24
+ {
25
+ icon: 'phone',
26
+ heading: 'Phone',
27
+ text: '+316 83485163',
28
+ href: 'tel:+31683485163',
29
+ },
30
+ ]}
31
+ />
32
+ ```
33
+
34
+ ## Props
35
+
36
+ <PropsTable />
37
+
38
+ ## Examples
39
+
40
+ ### `variant`
41
+
42
+ ```astro live
43
+ ---
44
+ import Channels from 'fulldev-ui/components/Channels.astro'
45
+ ---
46
+
47
+ <Channels
48
+ variant="primary"
49
+ channels={[
50
+ {
51
+ icon: 'mail',
52
+ heading: 'Mail',
53
+ text: 'info@full.dev',
54
+ href: 'mailto:info@full.dev',
55
+ },
56
+ {
57
+ icon: 'phone',
58
+ heading: 'Phone',
59
+ text: '+316 83485163',
60
+ href: 'tel:+31683485163',
61
+ },
62
+ ]}
63
+ />
64
+ ```
65
+
66
+ ### `size`
67
+
68
+ ```astro live
69
+ ---
70
+ import Channels from 'fulldev-ui/components/Channels.astro'
71
+ ---
72
+
73
+ <Channels
74
+ size="sm"
75
+ channels={[
76
+ {
77
+ icon: 'mail',
78
+ heading: 'Mail',
79
+ text: 'info@full.dev',
80
+ href: 'mailto:info@full.dev',
81
+ },
82
+ {
83
+ icon: 'phone',
84
+ heading: 'Phone',
85
+ text: '+316 83485163',
86
+ href: 'tel:+31683485163',
87
+ },
88
+ ]}
89
+ />
90
+ ```
@@ -8,35 +8,28 @@ title: Checkbox
8
8
 
9
9
  import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
10
 
11
- ## Props
12
-
13
- <PropsTable />
14
-
15
- ## Examples
16
-
17
11
  ```astro live
18
12
  ---
19
13
  import Checkbox from 'fulldev-ui/components/Checkbox.astro'
20
14
  ---
21
15
 
22
- <Checkbox label="My Checkbox" color="base" />
16
+ <Checkbox label="Checkbox" />
23
17
  ```
24
18
 
25
- ```astro live
26
- ---
27
- import Checkbox from 'fulldev-ui/components/Checkbox.astro'
28
- ---
19
+ ## Props
29
20
 
30
- <Checkbox label="Base" color="base" />
31
- <Checkbox label="Brand" color="brand" />
32
- ```
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ### `size`
33
26
 
34
27
  ```astro live
35
28
  ---
36
29
  import Checkbox from 'fulldev-ui/components/Checkbox.astro'
37
30
  ---
38
31
 
39
- <Checkbox label="Small" size="sm" />
40
- <Checkbox label="Medium" size="md" />
41
- <Checkbox label="Large" size="lg" />
32
+ <Checkbox size="sm" label="Small" />
33
+ <Checkbox size="md" label="Medium" />
34
+ <Checkbox size="lg" label="Large" />
42
35
  ```
@@ -0,0 +1,46 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Code
5
+ ---
6
+
7
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
8
+ import Code from 'fulldev-ui/components/Code.astro'
9
+
10
+ # Code
11
+
12
+ Enhanced code component with live preview.
13
+
14
+ ```astro live
15
+ <h1>I'm a live preview</h1>
16
+ ```
17
+
18
+ ## Usage in html
19
+
20
+ Use it in the same way as the native Astro `<Code/>` component, which is documented [here](https://docs.astro.build/en/reference/components-reference/#code-).
21
+
22
+ The following code will translate to the example at the top of this page:
23
+
24
+ ```astro
25
+ ---
26
+ import Code from 'fulldev-ui/components/Code.astro'
27
+ ---
28
+
29
+ <Code code={`<h1>I'm a live preview</h1>`} />
30
+ ```
31
+
32
+ Will render as:
33
+
34
+ <Code code={`<h1>I'm a live preview</h1>`} />
35
+
36
+ ## Usage in markdown
37
+
38
+ Thanks to [this great plugin](https://github.com/mattjennings/astro-live-code) you can also use it directly in markdown files.
39
+
40
+ The following code will translate to the example at the top of this page:
41
+
42
+ ````html
43
+ ```astro live
44
+ <h1>I'm a live preview</h1>
45
+ ```
46
+ ````
@@ -0,0 +1,60 @@
1
+ ---
2
+ presets: [docs]
3
+
4
+ title: Heading
5
+ ---
6
+
7
+ # Heading
8
+
9
+ import PropsTable from 'fulldev-ui/components/docs/PropsTable.astro'
10
+
11
+ ```astro live
12
+ ---
13
+ import Heading from 'fulldev-ui/components/Heading.astro'
14
+ ---
15
+
16
+ <Heading>The quick brown fox jumps</Heading>
17
+ ```
18
+
19
+ ## Props
20
+
21
+ <PropsTable />
22
+
23
+ ## Examples
24
+
25
+ ### `level`
26
+
27
+ ```astro live
28
+ ---
29
+ import Heading from 'fulldev-ui/components/Heading.astro'
30
+ ---
31
+
32
+ <Heading level={1}>The quick brown fox jumps</Heading>
33
+ <Heading level={2}>The quick brown fox jumps over the lazy dog</Heading>
34
+ <Heading level={3}>The quick brown fox jumps over the lazy dog</Heading>
35
+ <Heading level={4}>The quick brown fox jumps over the lazy dog</Heading>
36
+ <Heading level={5}>The quick brown fox jumps over the lazy dog again</Heading>
37
+ <Heading level={6}>The quick brown fox jumps over the lazy dog again</Heading>
38
+ ```
39
+
40
+ ### `size`
41
+
42
+ ```astro live
43
+ ---
44
+ import Heading from 'fulldev-ui/components/Heading.astro'
45
+ ---
46
+
47
+ <Heading size="sm">The quick brown fox jumps over the lazy dog</Heading>
48
+ <Heading size="md">The quick brown fox jumps over the lazy dog</Heading>
49
+ <Heading size="lg">The quick brown fox jumps</Heading>
50
+ ```
51
+
52
+ ### `text`
53
+
54
+ ```astro live
55
+ ---
56
+ import Heading from 'fulldev-ui/components/Heading.astro'
57
+ ---
58
+
59
+ <Heading text="The quick brown fox jumps" />
60
+ ```