fulldev-ui 0.3.36 → 0.4.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 (287) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +57 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +39 -0
  4. package/.github/pull_request_template.md +23 -0
  5. package/.github/workflows/github-releases-to-discord.yml +21 -0
  6. package/.prettierignore +15 -0
  7. package/.prettierrc.yaml +34 -0
  8. package/.vscode/extensions.json +4 -0
  9. package/.vscode/launch.json +11 -0
  10. package/.vscode/settings.json +23 -0
  11. package/CHANGELOG.md +100 -0
  12. package/CONTRIBUTING.md +102 -0
  13. package/LICENCE +21 -0
  14. package/README.md +9 -6
  15. package/astro.config.ts +44 -0
  16. package/package.json +41 -27
  17. package/pnpm-lock.yaml +6229 -0
  18. package/public/favicon/android-chrome-192x192.png +0 -0
  19. package/public/favicon/android-chrome-512x512.png +0 -0
  20. package/public/favicon/apple-touch-icon.png +0 -0
  21. package/public/favicon/browserconfig.xml +9 -0
  22. package/public/favicon/favicon-16x16.png +0 -0
  23. package/public/favicon/favicon-32x32.png +0 -0
  24. package/public/favicon/favicon.ico +0 -0
  25. package/public/favicon/mstile-150x150.png +0 -0
  26. package/public/favicon/safari-pinned-tab.svg +17 -0
  27. package/public/favicon/site.webmanifest +19 -0
  28. package/public/images/avatar-placeholder.jpg +0 -0
  29. package/public/images/avatars/1.jpeg +0 -0
  30. package/public/images/avatars/2.jpeg +0 -0
  31. package/public/images/avatars/3.jpeg +0 -0
  32. package/public/images/avatars/300/1.jpeg +0 -0
  33. package/public/images/avatars/300/2.jpeg +0 -0
  34. package/public/images/avatars/300/3.jpeg +0 -0
  35. package/public/images/avatars/300/4.jpeg +0 -0
  36. package/public/images/avatars/4.jpeg +0 -0
  37. package/public/images/avatars/5.jpeg +0 -0
  38. package/public/images/avatars/500/1.jpeg +0 -0
  39. package/public/images/avatars/500/2.jpeg +0 -0
  40. package/public/images/avatars/500/3.jpeg +0 -0
  41. package/public/images/avatars/500/4.jpeg +0 -0
  42. package/public/images/avatars/6.jpeg +0 -0
  43. package/public/images/avatars/7.jpeg +0 -0
  44. package/public/images/avatars/8.jpeg +0 -0
  45. package/public/images/block-code.png +0 -0
  46. package/public/images/blocks/colleagues.png +0 -0
  47. package/public/images/blocks/content.png +0 -0
  48. package/public/images/blocks/cta.png +0 -0
  49. package/public/images/blocks/features.png +0 -0
  50. package/public/images/blocks/footer.png +0 -0
  51. package/public/images/blocks/header.png +0 -0
  52. package/public/images/blocks/hero.png +0 -0
  53. package/public/images/blocks/intro.png +0 -0
  54. package/public/images/blocks/posts.png +0 -0
  55. package/public/images/blocks/prices.png +0 -0
  56. package/public/images/blocks/reviews.png +0 -0
  57. package/public/images/component-code.png +0 -0
  58. package/public/images/logo-placeholder.svg +1 -0
  59. package/public/images/placeholder-center.webp +0 -0
  60. package/public/images/placeholder-landscape-dark.png +0 -0
  61. package/public/images/placeholder-landscape.webp +0 -0
  62. package/public/images/placeholder-portrait.webp +0 -0
  63. package/public/images/placeholder-right.webp +0 -0
  64. package/public/images/placeholder.webp +0 -0
  65. package/siteicon.png +0 -0
  66. package/src/blocks/Categories.astro +12 -0
  67. package/src/blocks/Colleagues.astro +12 -0
  68. package/src/blocks/Contact.astro +152 -0
  69. package/src/blocks/Content.astro +12 -0
  70. package/src/blocks/Cta.astro +14 -0
  71. package/src/blocks/Features.astro +11 -0
  72. package/src/blocks/Footer.astro +7 -0
  73. package/src/blocks/Header.astro +7 -0
  74. package/src/blocks/Hero.astro +16 -0
  75. package/src/blocks/Intro.astro +19 -0
  76. package/src/blocks/Jobs.astro +12 -0
  77. package/src/blocks/Posts.astro +11 -0
  78. package/src/blocks/Prices.astro +22 -0
  79. package/src/blocks/Product.astro +64 -0
  80. package/src/blocks/Products.astro +11 -0
  81. package/src/blocks/Reviews.astro +13 -0
  82. package/src/components/{base/Avatar.astro → Avatar.astro} +7 -11
  83. package/src/components/{base/Badge.astro → Badge.astro} +36 -22
  84. package/src/components/{structure/Bento.astro → Bento.astro} +6 -9
  85. package/src/components/Block.astro +157 -0
  86. package/src/components/Blocks.astro +5 -0
  87. package/src/components/Box.astro +60 -0
  88. package/src/components/Button.astro +140 -0
  89. package/src/components/Card.astro +212 -0
  90. package/src/components/{structure/Carousel.astro → Carousel.astro} +13 -16
  91. package/src/components/Checkbox.astro +63 -0
  92. package/src/components/{structure/Column.astro → Column.astro} +14 -9
  93. package/src/components/Dialog.astro +65 -0
  94. package/src/components/Drawer.astro +99 -0
  95. package/src/components/Footer.astro +144 -0
  96. package/src/components/{structure/Grid.astro → Grid.astro} +7 -10
  97. package/src/components/Head.astro +85 -0
  98. package/src/components/Header.astro +204 -0
  99. package/src/components/Heading.astro +79 -0
  100. package/src/components/{base/Icon.astro → Icon.astro} +7 -9
  101. package/src/components/{base/Image.astro → Image.astro} +32 -30
  102. package/src/components/Input.astro +119 -0
  103. package/src/components/{typography/Label.astro → Label.astro} +12 -12
  104. package/src/components/{typography/Link.astro → Link.astro} +15 -13
  105. package/src/components/List.astro +41 -0
  106. package/src/components/{structure/Masonry.astro → Masonry.astro} +9 -11
  107. package/src/components/Rating.astro +82 -0
  108. package/src/components/{_Component.astro → Root.astro} +7 -11
  109. package/src/components/{structure/Row.astro → Row.astro} +6 -9
  110. package/src/components/Search.astro +62 -0
  111. package/src/components/Section.astro +274 -0
  112. package/src/components/Select.astro +144 -0
  113. package/src/components/Sidebar.astro +71 -0
  114. package/src/components/{structure/Split.astro → Split.astro} +6 -9
  115. package/src/components/{structure/Spread.astro → Spread.astro} +6 -9
  116. package/src/components/Switch.astro +114 -0
  117. package/src/components/Table.astro +121 -0
  118. package/src/components/Tagline.astro +35 -0
  119. package/src/components/Text.astro +43 -0
  120. package/src/components/Textarea.astro +105 -0
  121. package/src/components/Toc.astro +52 -0
  122. package/src/components/{structure/Wrap.astro → Wrap.astro} +5 -10
  123. package/src/components/docs/DecorativeBox.astro +15 -0
  124. package/src/components/docs/PropsTable.astro +95 -0
  125. package/src/components/experimental/Channel.astro +15 -10
  126. package/src/components/experimental/Form.astro +34 -0
  127. package/src/components/experimental/Gallery.astro +180 -0
  128. package/src/components/experimental/GalleryVertical.astro +161 -0
  129. package/src/components/{base → experimental}/Logo.astro +3 -5
  130. package/src/components/experimental/Price.astro +17 -17
  131. package/src/components/experimental/Prose.astro +154 -0
  132. package/src/components/{base → experimental}/Video.astro +1 -1
  133. package/src/components/experimental/Window.astro +173 -0
  134. package/src/content/config.ts +16 -13
  135. package/src/content/pages/_changelog.mdx +10 -0
  136. package/src/content/pages/_segment/footer.mdx +244 -0
  137. package/src/content/pages/_segment/header.mdx +210 -0
  138. package/src/content/pages/base/_dialog.mdx +17 -0
  139. package/src/content/pages/base/_drawer.mdx +17 -0
  140. package/src/content/pages/base/_image.mdx +14 -0
  141. package/src/content/pages/base/_switch.mdx +33 -0
  142. package/src/content/pages/base/badge.mdx +70 -0
  143. package/src/content/pages/base/button.mdx +71 -0
  144. package/src/content/pages/base/card.mdx +114 -0
  145. package/src/content/pages/base/checkbox.mdx +43 -0
  146. package/src/content/pages/base/icon.mdx +54 -0
  147. package/src/content/pages/base/input.mdx +67 -0
  148. package/src/content/pages/base/rating.mdx +66 -0
  149. package/src/content/pages/base/section.mdx +79 -0
  150. package/src/content/pages/base/select.mdx +77 -0
  151. package/src/content/pages/base/table.mdx +133 -0
  152. package/src/content/pages/base/textarea.mdx +73 -0
  153. package/src/content/pages/blocks/_banner.mdx +13 -0
  154. package/src/content/pages/blocks/_categories.mdx +149 -0
  155. package/src/content/pages/blocks/_jobs.mdx +37 -0
  156. package/src/content/pages/blocks/_product.mdx +29 -0
  157. package/src/content/pages/blocks/_products.mdx +55 -0
  158. package/src/content/pages/blocks/_stats.mdx +34 -0
  159. package/src/content/pages/blocks/colleagues.mdx +42 -0
  160. package/src/content/pages/blocks/content.mdx +101 -0
  161. package/src/content/pages/blocks/cta.mdx +192 -0
  162. package/src/content/pages/blocks/features.mdx +134 -0
  163. package/src/content/pages/blocks/footer.mdx +71 -0
  164. package/src/content/pages/blocks/header.mdx +192 -0
  165. package/src/content/pages/blocks/hero.mdx +97 -0
  166. package/src/content/pages/blocks/intro.mdx +132 -0
  167. package/src/content/pages/blocks/posts.mdx +40 -0
  168. package/src/content/pages/blocks/prices.mdx +126 -0
  169. package/src/content/pages/blocks/reviews.mdx +249 -0
  170. package/src/content/pages/blocks.mdx +10 -0
  171. package/src/content/pages/index.mdx +65 -0
  172. package/src/content/pages/overview/frameworks.mdx +180 -0
  173. package/src/content/pages/overview/installation.mdx +20 -0
  174. package/src/content/pages/overview/integration.mdx +37 -0
  175. package/src/content/pages/overview/introduction.mdx +20 -0
  176. package/src/content/pages/overview/theming.mdx +83 -0
  177. package/src/content/pages/structure/_row.mdx +23 -0
  178. package/src/content/pages/structure/_wrap.mdx +25 -0
  179. package/src/content/pages/structure/carousel.mdx +31 -0
  180. package/src/content/pages/structure/column.mdx +21 -0
  181. package/src/content/pages/structure/grid.mdx +26 -0
  182. package/src/content/pages/structure/masonry.mdx +32 -0
  183. package/src/content/pages/structure/split.mdx +21 -0
  184. package/src/content/pages/structure/spread.mdx +21 -0
  185. package/src/content/pages/typography/_tagline.mdx +36 -0
  186. package/src/content/pages/typography/heading.mdx +74 -0
  187. package/src/content/pages/typography/label.mdx +42 -0
  188. package/src/content/pages/typography/link.mdx +63 -0
  189. package/src/content/pages/typography/list.mdx +52 -0
  190. package/src/content/pages/typography/text.mdx +62 -0
  191. package/src/content/records/record.yml +1 -0
  192. package/src/content/settings/base.yml +48 -0
  193. package/src/content/settings/components.yml +27 -0
  194. package/src/css/color.css +6 -67
  195. package/src/css/custom.css +59 -0
  196. package/src/css/size.css +130 -0
  197. package/src/css/space.css +47 -26
  198. package/src/css/styles.css +4 -2
  199. package/src/env.d.ts +1 -1
  200. package/src/integration/generate-colors.ts +637 -0
  201. package/src/integration/index.ts +158 -0
  202. package/src/integration/tailwind-plugin.ts +80 -0
  203. package/src/integration/unocss-preset.ts +84 -0
  204. package/src/layouts/BlockLayout.astro +24 -0
  205. package/src/layouts/BlockOverviewLayout.astro +39 -0
  206. package/src/layouts/ComponentLayout.astro +23 -0
  207. package/src/layouts/JobsLayout.astro +40 -0
  208. package/src/layouts/Layout.astro +168 -0
  209. package/src/layouts/OverviewLayout.astro +45 -0
  210. package/src/layouts/PageLayout.astro +32 -0
  211. package/src/layouts/PostLayout.astro +32 -0
  212. package/src/layouts/ProductLayout.astro +31 -0
  213. package/src/pages/[...page].astro +41 -0
  214. package/src/schemas/base.ts +81 -0
  215. package/src/schemas/block.ts +15 -0
  216. package/src/schemas/card.ts +3 -0
  217. package/src/schemas/page.ts +43 -0
  218. package/src/schemas/utils.ts +22 -0
  219. package/src/utils/mergeEntries.ts +28 -0
  220. package/tsconfig.json +10 -1
  221. package/.astro/settings.json +0 -5
  222. package/.astro/types.d.ts +0 -147
  223. package/.env +0 -1
  224. package/astro.config.mjs +0 -6
  225. package/src/components/_Block.astro +0 -20
  226. package/src/components/_Blocks.astro +0 -11
  227. package/src/components/_Children.astro +0 -31
  228. package/src/components/_archive/Body.astro +0 -37
  229. package/src/components/_archive/Main.astro +0 -28
  230. package/src/components/_archive/Nav.astro +0 -50
  231. package/src/components/_todo/Form.astro +0 -36
  232. package/src/components/_todo/Prose.astro +0 -139
  233. package/src/components/_todo/Writeup.astro +0 -24
  234. package/src/components/base/Button.astro +0 -123
  235. package/src/components/base/Rating.astro +0 -47
  236. package/src/components/base/checkbox/Checkbox.astro +0 -52
  237. package/src/components/base/checkbox/CheckboxElement.astro +0 -31
  238. package/src/components/base/input/Input.astro +0 -79
  239. package/src/components/base/input/InputElement.astro +0 -69
  240. package/src/components/base/radio/Radio.astro +0 -66
  241. package/src/components/base/radio/RadioElement.astro +0 -34
  242. package/src/components/base/select/Select.astro +0 -90
  243. package/src/components/base/select/SelectElement.astro +0 -56
  244. package/src/components/base/select/SelectOption.astro +0 -32
  245. package/src/components/base/switch/Switch.astro +0 -55
  246. package/src/components/base/switch/SwitchElement.astro +0 -84
  247. package/src/components/base/table/Table.astro +0 -57
  248. package/src/components/base/table/TableBody.astro +0 -38
  249. package/src/components/base/table/TableCell.astro +0 -30
  250. package/src/components/base/table/TableFooter.astro +0 -48
  251. package/src/components/base/table/TableHead.astro +0 -31
  252. package/src/components/base/table/TableHeader.astro +0 -44
  253. package/src/components/base/table/TableRow.astro +0 -46
  254. package/src/components/base/textarea/Textarea.astro +0 -79
  255. package/src/components/base/textarea/TextareaElement.astro +0 -68
  256. package/src/components/segment/Box.astro +0 -46
  257. package/src/components/segment/Card.astro +0 -114
  258. package/src/components/segment/Footer.astro +0 -94
  259. package/src/components/segment/Header.astro +0 -100
  260. package/src/components/segment/Section.astro +0 -103
  261. package/src/components/segment/_regels.md +0 -32
  262. package/src/components/typography/Heading.astro +0 -66
  263. package/src/components/typography/List.astro +0 -47
  264. package/src/components/typography/ListItem.astro +0 -36
  265. package/src/components/typography/Paragraph.astro +0 -36
  266. package/src/components/typography/Tagline.astro +0 -36
  267. package/src/components/typography/Text.astro +0 -37
  268. package/src/components/utility/Head.astro +0 -83
  269. package/src/components/utility/Layout.astro +0 -46
  270. package/src/content/pages/index.md +0 -2
  271. package/src/css/color.scss +0 -289
  272. package/src/css/size.scss +0 -296
  273. package/src/css/utils.scss +0 -16
  274. package/src/index.ts +0 -71
  275. package/src/integration/integration.ts +0 -88
  276. package/src/integration/tailwind.ts +0 -34
  277. package/src/integration/unocss.ts +0 -38
  278. /package/src/{_archive → utils/_archive}/Childmorphic.ts +0 -0
  279. /package/src/{_archive → utils/_archive}/getAllCollections.ts +0 -0
  280. /package/src/{_archive → utils/_archive}/getCollectionCascade.ts +0 -0
  281. /package/src/{_archive → utils/_archive}/getPathname.ts +0 -0
  282. /package/src/{_archive → utils/_archive}/staticPageSchema.ts +0 -0
  283. /package/src/{_archive → utils/_archive}/transform/transform.ts +0 -0
  284. /package/src/{_archive → utils/_archive}/transform/transformCasing.ts +0 -0
  285. /package/src/{_archive → utils/_archive}/transform/transformReferences.ts +0 -0
  286. /package/src/{_archive → utils/_archive}/transform/transformSelfs.ts +0 -0
  287. /package/src/{_archive → utils/_archive}/transform/transformUnderscores.ts +0 -0
@@ -1,36 +0,0 @@
1
- ---
2
- import type { ComponentProps, HTMLTag, Polymorphic } from 'astro/types'
3
- import Component from '../_Component.astro'
4
-
5
- type Props<As extends HTMLTag = 'form'> = Polymorphic<{ as: As }> &
6
- ComponentProps<typeof Component> & {
7
- structure?: 'column' | 'row' | 'group'
8
- }
9
-
10
- const {
11
- as = 'form',
12
- space = 'auto',
13
- structure = 'column',
14
- ...rest
15
- } = Astro.props
16
- ---
17
-
18
- <Component
19
- class:list={['form']}
20
- {as}
21
- {structure}
22
- {space}
23
- {...rest}
24
- >
25
- <slot />
26
- </Component>
27
-
28
- <style is:global lang="scss">
29
- @import '../../css/utils.scss';
30
-
31
- @include component('form') {
32
- display: flex;
33
- width: 100%;
34
- max-width: calc(var(--space-4) * 36);
35
- }
36
- </style>
@@ -1,139 +0,0 @@
1
- ---
2
- import type { ComponentProps, HTMLTag, Polymorphic } from 'astro/types'
3
- import Component from '../_Component.astro'
4
-
5
- type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> &
6
- ComponentProps<typeof Component>
7
-
8
- const { as = 'div', ...rest } = Astro.props
9
- ---
10
-
11
- <Component
12
- class:list={['prose']}
13
- {as}
14
- {...rest}
15
- >
16
- <slot />
17
- </Component>
18
-
19
- <style is:global lang="scss">
20
- @import '../../css/utils.scss';
21
-
22
- // @include component('prose') {
23
- // @media (min-width: 768px) {
24
- // padding-right: 15vw;
25
- // padding-left: 15vw;
26
- // }
27
- // @media (min-width: 1024px) {
28
- // padding-right: 25vw;
29
- // padding-left: 25vw;
30
- // }
31
- // }
32
-
33
- // Tables
34
- .full.prose {
35
- color: var(--text);
36
- color: var(--color-11);
37
- font-weight: var(--font-weight);
38
- font-size: var(--text-2);
39
- line-height: 1.7;
40
- font-family: var(--font-family);
41
-
42
- h1,
43
- h2,
44
- h3,
45
- h4,
46
- h5,
47
- h6 {
48
- color: var(--color-12);
49
- line-height: 1.2;
50
- }
51
-
52
- h1 {
53
- font-size: var(--text-7);
54
- }
55
-
56
- h2 {
57
- font-size: var(--text-6);
58
- }
59
-
60
- h3 {
61
- font-size: var(--text-5);
62
- }
63
-
64
- h4 {
65
- font-size: var(--text-4);
66
- }
67
-
68
- h5 {
69
- font-size: var(--text-3);
70
- }
71
-
72
- h6 {
73
- font-size: var(--text-2);
74
- }
75
-
76
- .display {
77
- display: grid;
78
- width: 100%;
79
- max-width: none;
80
-
81
- table {
82
- h1,
83
- h2,
84
- h3,
85
- h4,
86
- h5,
87
- h6 {
88
- margin: var(--space-2) 0;
89
- font: 600 var(--text-2) 'Saira';
90
-
91
- & + p {
92
- color: var(--hue11);
93
- }
94
- }
95
- }
96
- }
97
-
98
- table {
99
- margin: var(--space-5) 0;
100
- border: 1px solid var(--border);
101
- border-radius: var(--radius-1) !important;
102
- border-collapse: collapse;
103
- width: 100%;
104
- }
105
-
106
- th {
107
- border-bottom: 1px solid var(--border);
108
- background: var(--raised-background) !important;
109
- color: var(--muted-foreground) !important;
110
- font-weight: 500 !important;
111
- font-size: var(--text-1) !important;
112
- }
113
-
114
- td {
115
- color: var(--muted-foreground) !important;
116
- }
117
-
118
- th,
119
- td {
120
- padding: var(--space-2);
121
- }
122
-
123
- table a {
124
- color: var(--solid) !important;
125
- font-size: var(--text-1) !important;
126
- line-height: 1 !important;
127
- white-space: nowrap;
128
- }
129
-
130
- h6 {
131
- margin: var(--space-2) 0;
132
- font-size: var(--text-2) !important;
133
- }
134
-
135
- table a:hover {
136
- text-decoration: underline;
137
- }
138
- }
139
- </style>
@@ -1,24 +0,0 @@
1
- <!-- ---
2
- import type { ComponentProps,HTMLTag,Polymorphic } from 'astro/types'
3
- import Component from '../_Component.astro'
4
-
5
- type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> &
6
- ComponentProps<typeof Component>
7
-
8
- const { as = 'div', ...rest } = Astro.props
9
- ---
10
-
11
- <Component
12
- class:list={['writeup']}
13
- {as}
14
- {...rest}
15
- >
16
- <slot />
17
- </Component>
18
-
19
- <style is:global lang="scss">
20
- @import '../../css/utils.scss';
21
-
22
- @include component('writeup') {
23
- }
24
- </style> -->
@@ -1,123 +0,0 @@
1
- ---
2
- import type { HTMLTag, Polymorphic } from 'astro/types'
3
- import Component from '../_Component.astro'
4
- import Avatar from './Avatar.astro'
5
- import Icon from './Icon.astro'
6
-
7
- type Props<As extends HTMLTag = 'a'> = Polymorphic<{ as: As }> & {
8
- variant?: 'solid' | 'soft' | 'surface' | 'outline' | 'ghost' | 'link'
9
- size?: 'sm' | 'md' | 'lg'
10
- color?: 'base' | 'brand'
11
- radius?: 'none' | 'auto' | 'full'
12
- contrast?: boolean
13
- html?: string
14
- text?: string
15
- icon?: string
16
- label?: string
17
- avatar?: string
18
- }
19
-
20
- const {
21
- as = 'a',
22
- variant = 'solid',
23
- radius = 'auto',
24
- contrast,
25
- icon,
26
- label,
27
- avatar,
28
- ...rest
29
- } = Astro.props
30
- ---
31
-
32
- <Component
33
- class:list={['button']}
34
- {as}
35
- {variant}
36
- {contrast}
37
- {radius}
38
- {...rest}
39
- >
40
- <slot />
41
- <Icon name={icon} />
42
- <Avatar src={avatar} />
43
- </Component>
44
-
45
- <style is:global lang="scss">
46
- @import '../../css/utils.scss';
47
-
48
- @include component('button') {
49
- display: inline-flex;
50
- flex-shrink: 0;
51
- justify-content: center;
52
- align-items: center;
53
- vertical-align: top;
54
- gap: var(--space-2);
55
- transition: background-color var(--transition);
56
- cursor: pointer;
57
- outline: none !important;
58
- border: 1px solid var(--border);
59
- background-color: var(--background);
60
- padding-right: var(--space-4);
61
- padding-left: var(--space-4);
62
- height: calc(var(--text-1) + 2 * var(--space-4));
63
- color: var(--text);
64
- font-weight: var(--button-font-weight);
65
- font-size: var(--text-1);
66
- line-height: 1.625;
67
- font-family: var(--button-font-family);
68
- text-align: center;
69
- text-decoration: none;
70
- white-space: nowrap;
71
-
72
- &:hover {
73
- background-color: var(--background-hover);
74
- }
75
-
76
- &:active {
77
- background-color: var(--background-active);
78
- }
79
-
80
- .avatar {
81
- margin-right: calc(-1 * (var(--space-4)));
82
- margin-left: var(--space-1);
83
- padding: calc(var(--space-1) / 3);
84
- width: calc(var(--text-1) + 2 * var(--space-4)) !important;
85
- height: calc(var(--text-1) + 2 * var(--space-4)) !important;
86
- }
87
-
88
- &:focus-visible {
89
- outline: 2px solid var(--focus) !important;
90
- outline-offset: 2px;
91
- }
92
-
93
- &:disabled {
94
- opacity: 0.5;
95
- cursor: not-allowed;
96
- pointer-events: none;
97
- }
98
-
99
- &.variant-link {
100
- box-shadow: none;
101
- border-color: transparent;
102
- background-color: transparent;
103
- padding: 0;
104
- height: auto;
105
-
106
- &:hover {
107
- color: var(--colo-12);
108
- }
109
- }
110
-
111
- &.radius-none {
112
- border-radius: 0;
113
- }
114
-
115
- &.radius-auto {
116
- border-radius: var(--radius-1);
117
- }
118
-
119
- &.radius-full {
120
- border-radius: 9999px;
121
- }
122
- }
123
- </style>
@@ -1,47 +0,0 @@
1
- ---
2
- import type { HTMLTag, Polymorphic } from 'astro/types'
3
- import Component from '../_Component.astro'
4
- import Icon from './Icon.astro'
5
-
6
- type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
7
- color?: 'base' | 'brand'
8
- value?: number
9
- size?: string
10
- compact?: boolean
11
- }
12
-
13
- const { value, ...rest } = Astro.props
14
-
15
- const getIcon = (count: number) => {
16
- if (!value) return
17
- const difference = value - count
18
- if (difference >= -0.25) return 'star-filled'
19
- if (difference >= -0.75) return 'star-half-filled'
20
- return 'star'
21
- }
22
- ---
23
-
24
- <Component
25
- class:list={'rating'}
26
- {...rest}
27
- >
28
- {
29
- value &&
30
- [1, 2, 3, 4, 5].map((_, i) => (
31
- <Icon
32
- name={getIcon(i + 1)}
33
- class:list={'rating-icon-solid'}
34
- />
35
- ))
36
- }
37
- </Component>
38
-
39
- <style is:global lang="scss">
40
- @import '../../css/utils.scss';
41
-
42
- @include component('rating') {
43
- display: flex;
44
- align-items: center;
45
- gap: var(--space-2);
46
- }
47
- </style>
@@ -1,52 +0,0 @@
1
- ---
2
- import type { ComponentProps, Polymorphic } from 'astro/types'
3
- import '../../../css/utils.scss'
4
- import Component from '../../_Component.astro'
5
- import Label from '../../typography/Label.astro'
6
- import CheckboxElement from './CheckboxElement.astro'
7
-
8
- type Props<As extends 'div'> = Polymorphic<{ as: As }> & {
9
- label?: string
10
- } & Pick<
11
- ComponentProps<typeof CheckboxElement>,
12
- 'name' | 'disabled' | 'required' | 'checked'
13
- > & {
14
- color?: 'base' | 'brand'
15
- contrast?: boolean
16
- }
17
-
18
- const {
19
- as = 'div',
20
- label,
21
- contrast,
22
- icon,
23
- name,
24
- variant,
25
- placeholder,
26
- type,
27
- value,
28
- disabled,
29
- checked,
30
- required,
31
- ...rest
32
- } = Astro.props
33
- ---
34
-
35
- <Component
36
- structure="row"
37
- class:list={['checkbox']}
38
- {as}
39
- {...rest}
40
- >
41
- <CheckboxElement
42
- {name}
43
- {disabled}
44
- {required}
45
- {checked}
46
- />
47
- <Label
48
- for={name}
49
- text={label}
50
- {contrast}
51
- />
52
- </Component>
@@ -1,31 +0,0 @@
1
- ---
2
- import type { HTMLAttributes } from 'astro/types'
3
- import Component from '../../_Component.astro'
4
-
5
- type Props = Omit<HTMLAttributes<'input'>, 'type'> & {
6
- color?: 'base' | 'brand'
7
- }
8
-
9
- const { name, ...rest } = Astro.props
10
- ---
11
-
12
- <Component
13
- class:list={['checkbox-element']}
14
- as="input"
15
- type="checkbox"
16
- id={name}
17
- if={name}
18
- {name}
19
- {...rest}
20
- />
21
-
22
- <style is:global lang="scss">
23
- @import '../../../css/utils.scss';
24
-
25
- @include component('checkbox-element') {
26
- display: block;
27
- width: var(--text-1);
28
- height: var(--text-1);
29
- accent-color: var(--color-9);
30
- }
31
- </style>
@@ -1,79 +0,0 @@
1
- ---
2
- import type { ComponentProps, Polymorphic } from 'astro/types'
3
- import Component from '../../_Component.astro'
4
- import Label from '../../typography/Label.astro'
5
- import Icon from '../Icon.astro'
6
- import InputElement from './InputElement.astro'
7
-
8
- type Props<As extends 'div'> = Polymorphic<{ as: As }> &
9
- Pick<
10
- ComponentProps<typeof InputElement>,
11
- | 'variant'
12
- | 'placeholder'
13
- | 'type'
14
- | 'name'
15
- | 'value'
16
- | 'disabled'
17
- | 'required'
18
- > & {
19
- color?: 'base' | 'brand'
20
- label?: string
21
- icon?: string
22
- }
23
-
24
- const {
25
- as = 'div',
26
- variant = 'outline',
27
- label,
28
- icon,
29
- // input attributes
30
- placeholder,
31
- name,
32
- type,
33
- value,
34
- disabled,
35
- required,
36
- ...rest
37
- } = Astro.props
38
- ---
39
-
40
- <Component
41
- class:list={['input']}
42
- {as}
43
- {...rest}
44
- >
45
- <Label
46
- for={name}
47
- text={label}
48
- />
49
- <InputElement
50
- id={name}
51
- {name}
52
- {variant}
53
- {placeholder}
54
- {type}
55
- {value}
56
- {disabled}
57
- {required}
58
- />
59
- <Icon name={icon} />
60
- </Component>
61
-
62
- <style is:global lang="scss">
63
- @import '../../../css/utils.scss';
64
-
65
- @include component('input') {
66
- display: flex;
67
- position: relative;
68
- flex-direction: column;
69
- gap: var(--space-1);
70
- width: 100%;
71
-
72
- .icon {
73
- position: absolute;
74
- top: 50%;
75
- right: var(--space-3);
76
- transform: translateY(-50%);
77
- }
78
- }
79
- </style>
@@ -1,69 +0,0 @@
1
- ---
2
- import type { HTMLAttributes } from 'astro/types'
3
- import Component from '../../_Component.astro'
4
-
5
- type Props = HTMLAttributes<'input'> & {
6
- variant?: 'outline'
7
- }
8
-
9
- const {
10
- placeholder,
11
- name = placeholder,
12
- variant = 'outline',
13
- type = 'text',
14
- ...rest
15
- } = Astro.props
16
- ---
17
-
18
- <Component
19
- if={name}
20
- as="input"
21
- class="input-element"
22
- {variant}
23
- {placeholder}
24
- {name}
25
- {type}
26
- {...rest}
27
- />
28
-
29
- <style is:global lang="scss">
30
- @import '../../../css/utils.scss';
31
-
32
- @include component('input-element') {
33
- display: flex;
34
- position: relative;
35
- align-items: center;
36
- outline: none;
37
- border: 1px solid var(--border);
38
- border-radius: var(--radius-1);
39
- background-color: var(--background);
40
- padding: var(--space-3);
41
- width: 100%;
42
- min-width: var(--space-3);
43
- height: calc(var(--text-1) + 2 * var(--space-4));
44
- color: var(--text);
45
- font-weight: var(--font-weight);
46
- font-size: var(--text-1);
47
- line-height: 1.25;
48
- font-family: var(--font-family);
49
-
50
- &::placeholder {
51
- color: var(--text);
52
- }
53
-
54
- &:hover {
55
- outline: none;
56
- }
57
-
58
- &:focus {
59
- outline: none;
60
- box-shadow: inset 0 0 0 2px var(--border);
61
- }
62
-
63
- &:disabled {
64
- opacity: 50%;
65
- cursor: not-allowed;
66
- pointer-events: none;
67
- }
68
- }
69
- </style>
@@ -1,66 +0,0 @@
1
- <!-- ---
2
- import type { Polymorphic } from 'astro/types'
3
- import '../../../css/utils.scss'
4
- import Component from '../../_Component.astro'
5
- import Row from '../../structure/Row.astro'
6
- import Label from '../../typography/Label.astro'
7
- import RadioElement from './RadioElement.astro'
8
-
9
- type Props<As extends 'div'> = Polymorphic<{ as: As }> & {
10
- options?: string
11
- } & {
12
- color?: 'base' | 'brand'
13
- contrast?: boolean
14
- }
15
-
16
- const {
17
- as = 'div',
18
- options,
19
- label,
20
- contrast,
21
- icon,
22
- value,
23
- disabled,
24
- required,
25
- name,
26
- ...rest
27
- } = Astro.props
28
- ---
29
-
30
- <Component
31
- class:list={['radio']}
32
- {as}
33
- {...rest}
34
- >
35
- <Label
36
- for={name}
37
- {...typeof label === 'string' ? { text: label } : label}
38
- />
39
- {
40
- options?.map((option: any) => (
41
- <Row>
42
- <RadioElement
43
- value={option}
44
- id={option}
45
- />
46
- <Label
47
- for={option}
48
- text={option}
49
- {contrast}
50
- />
51
- </Row>
52
- ))
53
- }
54
- </Component>
55
-
56
- <style is:global lang="scss">
57
- @import '../../../css/utils.scss';
58
-
59
- @include component('radio') {
60
- display: flex;
61
- position: relative;
62
- flex-direction: column;
63
- gap: var(--space-3);
64
- width: 100%;
65
- }
66
- </style> -->
@@ -1,34 +0,0 @@
1
- <!-- ---
2
- import type { HTMLAttributes } from 'astro/types'
3
- import Component from '../../_Component.astro'
4
-
5
- type Props = HTMLAttributes<'input'> & {
6
- value?: string
7
- label?: string
8
- options?: string[]
9
- }
10
-
11
- const { label, value, name, options, ...rest } = Astro.props
12
- ---
13
-
14
- <Component
15
- class:list={['radio-element']}
16
- if={true}
17
- as="input"
18
- type="radio"
19
- name={name}
20
- {...rest}
21
- >
22
- <slot />
23
- </Component>
24
-
25
- <style is:global lang="scss">
26
- @import '../../../css/utils.scss';
27
-
28
- @include component('radio-element') {
29
- display: block;
30
- width: var(--text-1);
31
- height: var(--text-1);
32
- accent-color: var(--color-9);
33
- }
34
- </style> -->