fulldev-ui 0.3.35 → 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.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +57 -0
- package/.github/ISSUE_TEMPLATE/config.yml +5 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +39 -0
- package/.github/pull_request_template.md +23 -0
- package/.github/workflows/github-releases-to-discord.yml +21 -0
- package/.prettierignore +15 -0
- package/.prettierrc.yaml +34 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +11 -0
- package/.vscode/settings.json +23 -0
- package/CHANGELOG.md +100 -0
- package/CONTRIBUTING.md +102 -0
- package/LICENCE +21 -0
- package/README.md +9 -6
- package/astro.config.ts +44 -0
- package/package.json +41 -27
- package/pnpm-lock.yaml +6229 -0
- package/public/favicon/android-chrome-192x192.png +0 -0
- package/public/favicon/android-chrome-512x512.png +0 -0
- package/public/favicon/apple-touch-icon.png +0 -0
- package/public/favicon/browserconfig.xml +9 -0
- package/public/favicon/favicon-16x16.png +0 -0
- package/public/favicon/favicon-32x32.png +0 -0
- package/public/favicon/favicon.ico +0 -0
- package/public/favicon/mstile-150x150.png +0 -0
- package/public/favicon/safari-pinned-tab.svg +17 -0
- package/public/favicon/site.webmanifest +19 -0
- package/public/images/avatar-placeholder.jpg +0 -0
- package/public/images/avatars/1.jpeg +0 -0
- package/public/images/avatars/2.jpeg +0 -0
- package/public/images/avatars/3.jpeg +0 -0
- package/public/images/avatars/300/1.jpeg +0 -0
- package/public/images/avatars/300/2.jpeg +0 -0
- package/public/images/avatars/300/3.jpeg +0 -0
- package/public/images/avatars/300/4.jpeg +0 -0
- package/public/images/avatars/4.jpeg +0 -0
- package/public/images/avatars/5.jpeg +0 -0
- package/public/images/avatars/500/1.jpeg +0 -0
- package/public/images/avatars/500/2.jpeg +0 -0
- package/public/images/avatars/500/3.jpeg +0 -0
- package/public/images/avatars/500/4.jpeg +0 -0
- package/public/images/avatars/6.jpeg +0 -0
- package/public/images/avatars/7.jpeg +0 -0
- package/public/images/avatars/8.jpeg +0 -0
- package/public/images/block-code.png +0 -0
- package/public/images/blocks/colleagues.png +0 -0
- package/public/images/blocks/content.png +0 -0
- package/public/images/blocks/cta.png +0 -0
- package/public/images/blocks/features.png +0 -0
- package/public/images/blocks/footer.png +0 -0
- package/public/images/blocks/header.png +0 -0
- package/public/images/blocks/hero.png +0 -0
- package/public/images/blocks/intro.png +0 -0
- package/public/images/blocks/posts.png +0 -0
- package/public/images/blocks/prices.png +0 -0
- package/public/images/blocks/reviews.png +0 -0
- package/public/images/component-code.png +0 -0
- package/public/images/logo-placeholder.svg +1 -0
- package/public/images/placeholder-center.webp +0 -0
- package/public/images/placeholder-landscape-dark.png +0 -0
- package/public/images/placeholder-landscape.webp +0 -0
- package/public/images/placeholder-portrait.webp +0 -0
- package/public/images/placeholder-right.webp +0 -0
- package/public/images/placeholder.webp +0 -0
- package/siteicon.png +0 -0
- package/src/blocks/Categories.astro +12 -0
- package/src/blocks/Colleagues.astro +12 -0
- package/src/blocks/Contact.astro +152 -0
- package/src/blocks/Content.astro +12 -0
- package/src/blocks/Cta.astro +14 -0
- package/src/blocks/Features.astro +11 -0
- package/src/blocks/Footer.astro +7 -0
- package/src/blocks/Header.astro +7 -0
- package/src/blocks/Hero.astro +16 -0
- package/src/blocks/Intro.astro +19 -0
- package/src/blocks/Jobs.astro +12 -0
- package/src/blocks/Posts.astro +11 -0
- package/src/blocks/Prices.astro +22 -0
- package/src/blocks/Product.astro +64 -0
- package/src/blocks/Products.astro +11 -0
- package/src/blocks/Reviews.astro +13 -0
- package/src/components/{base/Avatar.astro → Avatar.astro} +7 -11
- package/src/components/{base/Badge.astro → Badge.astro} +36 -22
- package/src/components/{structure/Bento.astro → Bento.astro} +6 -9
- package/src/components/Block.astro +157 -0
- package/src/components/Blocks.astro +5 -0
- package/src/components/Box.astro +60 -0
- package/src/components/Button.astro +140 -0
- package/src/components/Card.astro +212 -0
- package/src/components/{structure/Carousel.astro → Carousel.astro} +13 -16
- package/src/components/Checkbox.astro +63 -0
- package/src/components/{structure/Column.astro → Column.astro} +18 -9
- package/src/components/Dialog.astro +65 -0
- package/src/components/Drawer.astro +99 -0
- package/src/components/Footer.astro +144 -0
- package/src/components/{structure/Grid.astro → Grid.astro} +7 -10
- package/src/components/Head.astro +85 -0
- package/src/components/Header.astro +204 -0
- package/src/components/Heading.astro +79 -0
- package/src/components/{base/Icon.astro → Icon.astro} +7 -9
- package/src/components/{base/Image.astro → Image.astro} +32 -30
- package/src/components/Input.astro +119 -0
- package/src/components/{typography/Label.astro → Label.astro} +12 -12
- package/src/components/{typography/Link.astro → Link.astro} +15 -13
- package/src/components/List.astro +41 -0
- package/src/components/{structure/Masonry.astro → Masonry.astro} +9 -11
- package/src/components/Rating.astro +82 -0
- package/src/components/{_Component.astro → Root.astro} +9 -11
- package/src/components/{structure/Row.astro → Row.astro} +6 -9
- package/src/components/Search.astro +62 -0
- package/src/components/Section.astro +274 -0
- package/src/components/Select.astro +144 -0
- package/src/components/Sidebar.astro +71 -0
- package/src/components/{structure/Split.astro → Split.astro} +6 -9
- package/src/components/{structure/Spread.astro → Spread.astro} +6 -9
- package/src/components/Switch.astro +114 -0
- package/src/components/Table.astro +121 -0
- package/src/components/Tagline.astro +35 -0
- package/src/components/Text.astro +43 -0
- package/src/components/Textarea.astro +105 -0
- package/src/components/Toc.astro +52 -0
- package/src/components/{structure/Wrap.astro → Wrap.astro} +5 -10
- package/src/components/docs/DecorativeBox.astro +15 -0
- package/src/components/docs/PropsTable.astro +95 -0
- package/src/components/experimental/Channel.astro +15 -10
- package/src/components/experimental/Form.astro +34 -0
- package/src/components/experimental/Gallery.astro +180 -0
- package/src/components/experimental/GalleryVertical.astro +161 -0
- package/src/components/{base → experimental}/Logo.astro +3 -5
- package/src/components/experimental/Price.astro +17 -15
- package/src/components/experimental/Prose.astro +154 -0
- package/src/components/{base → experimental}/Video.astro +1 -1
- package/src/components/experimental/Window.astro +173 -0
- package/src/content/config.ts +16 -13
- package/src/content/pages/_changelog.mdx +10 -0
- package/src/content/pages/_segment/footer.mdx +244 -0
- package/src/content/pages/_segment/header.mdx +210 -0
- package/src/content/pages/base/_dialog.mdx +17 -0
- package/src/content/pages/base/_drawer.mdx +17 -0
- package/src/content/pages/base/_image.mdx +14 -0
- package/src/content/pages/base/_switch.mdx +33 -0
- package/src/content/pages/base/badge.mdx +70 -0
- package/src/content/pages/base/button.mdx +71 -0
- package/src/content/pages/base/card.mdx +114 -0
- package/src/content/pages/base/checkbox.mdx +43 -0
- package/src/content/pages/base/icon.mdx +54 -0
- package/src/content/pages/base/input.mdx +67 -0
- package/src/content/pages/base/rating.mdx +66 -0
- package/src/content/pages/base/section.mdx +79 -0
- package/src/content/pages/base/select.mdx +77 -0
- package/src/content/pages/base/table.mdx +133 -0
- package/src/content/pages/base/textarea.mdx +73 -0
- package/src/content/pages/blocks/_banner.mdx +13 -0
- package/src/content/pages/blocks/_categories.mdx +149 -0
- package/src/content/pages/blocks/_jobs.mdx +37 -0
- package/src/content/pages/blocks/_product.mdx +29 -0
- package/src/content/pages/blocks/_products.mdx +55 -0
- package/src/content/pages/blocks/_stats.mdx +34 -0
- package/src/content/pages/blocks/colleagues.mdx +42 -0
- package/src/content/pages/blocks/content.mdx +101 -0
- package/src/content/pages/blocks/cta.mdx +192 -0
- package/src/content/pages/blocks/features.mdx +134 -0
- package/src/content/pages/blocks/footer.mdx +71 -0
- package/src/content/pages/blocks/header.mdx +192 -0
- package/src/content/pages/blocks/hero.mdx +97 -0
- package/src/content/pages/blocks/intro.mdx +132 -0
- package/src/content/pages/blocks/posts.mdx +40 -0
- package/src/content/pages/blocks/prices.mdx +126 -0
- package/src/content/pages/blocks/reviews.mdx +249 -0
- package/src/content/pages/blocks.mdx +10 -0
- package/src/content/pages/index.mdx +65 -0
- package/src/content/pages/overview/frameworks.mdx +180 -0
- package/src/content/pages/overview/installation.mdx +20 -0
- package/src/content/pages/overview/integration.mdx +37 -0
- package/src/content/pages/overview/introduction.mdx +20 -0
- package/src/content/pages/overview/theming.mdx +83 -0
- package/src/content/pages/structure/_row.mdx +23 -0
- package/src/content/pages/structure/_wrap.mdx +25 -0
- package/src/content/pages/structure/carousel.mdx +31 -0
- package/src/content/pages/structure/column.mdx +21 -0
- package/src/content/pages/structure/grid.mdx +26 -0
- package/src/content/pages/structure/masonry.mdx +32 -0
- package/src/content/pages/structure/split.mdx +21 -0
- package/src/content/pages/structure/spread.mdx +21 -0
- package/src/content/pages/typography/_tagline.mdx +36 -0
- package/src/content/pages/typography/heading.mdx +74 -0
- package/src/content/pages/typography/label.mdx +42 -0
- package/src/content/pages/typography/link.mdx +63 -0
- package/src/content/pages/typography/list.mdx +52 -0
- package/src/content/pages/typography/text.mdx +62 -0
- package/src/content/records/record.yml +1 -0
- package/src/content/settings/base.yml +48 -0
- package/src/content/settings/components.yml +27 -0
- package/src/css/color.css +6 -67
- package/src/css/custom.css +59 -0
- package/src/css/size.css +130 -0
- package/src/css/space.css +47 -26
- package/src/css/styles.css +4 -2
- package/src/env.d.ts +1 -1
- package/src/integration/generate-colors.ts +637 -0
- package/src/integration/index.ts +158 -0
- package/src/integration/tailwind-plugin.ts +80 -0
- package/src/integration/unocss-preset.ts +84 -0
- package/src/layouts/BlockLayout.astro +24 -0
- package/src/layouts/BlockOverviewLayout.astro +39 -0
- package/src/layouts/ComponentLayout.astro +23 -0
- package/src/layouts/JobsLayout.astro +40 -0
- package/src/layouts/Layout.astro +168 -0
- package/src/layouts/OverviewLayout.astro +45 -0
- package/src/layouts/PageLayout.astro +32 -0
- package/src/layouts/PostLayout.astro +32 -0
- package/src/layouts/ProductLayout.astro +31 -0
- package/src/pages/[...page].astro +41 -0
- package/src/schemas/base.ts +81 -0
- package/src/schemas/block.ts +15 -0
- package/src/schemas/card.ts +3 -0
- package/src/schemas/page.ts +43 -0
- package/src/schemas/utils.ts +22 -0
- package/src/utils/mergeEntries.ts +28 -0
- package/tsconfig.json +10 -1
- package/.astro/settings.json +0 -5
- package/.astro/types.d.ts +0 -147
- package/.env +0 -1
- package/astro.config.mjs +0 -6
- package/src/components/_Block.astro +0 -20
- package/src/components/_Blocks.astro +0 -11
- package/src/components/_Children.astro +0 -31
- package/src/components/_archive/Body.astro +0 -37
- package/src/components/_archive/Main.astro +0 -28
- package/src/components/_archive/Nav.astro +0 -50
- package/src/components/_todo/Form.astro +0 -36
- package/src/components/_todo/Prose.astro +0 -139
- package/src/components/_todo/Writeup.astro +0 -24
- package/src/components/base/Button.astro +0 -123
- package/src/components/base/Rating.astro +0 -47
- package/src/components/base/checkbox/Checkbox.astro +0 -52
- package/src/components/base/checkbox/CheckboxElement.astro +0 -31
- package/src/components/base/input/Input.astro +0 -79
- package/src/components/base/input/InputElement.astro +0 -69
- package/src/components/base/radio/Radio.astro +0 -66
- package/src/components/base/radio/RadioElement.astro +0 -34
- package/src/components/base/select/Select.astro +0 -90
- package/src/components/base/select/SelectElement.astro +0 -56
- package/src/components/base/select/SelectOption.astro +0 -32
- package/src/components/base/switch/Switch.astro +0 -55
- package/src/components/base/switch/SwitchElement.astro +0 -84
- package/src/components/base/table/Table.astro +0 -57
- package/src/components/base/table/TableBody.astro +0 -38
- package/src/components/base/table/TableCell.astro +0 -30
- package/src/components/base/table/TableFooter.astro +0 -48
- package/src/components/base/table/TableHead.astro +0 -31
- package/src/components/base/table/TableHeader.astro +0 -44
- package/src/components/base/table/TableRow.astro +0 -46
- package/src/components/base/textarea/Textarea.astro +0 -79
- package/src/components/base/textarea/TextareaElement.astro +0 -68
- package/src/components/segment/Box.astro +0 -46
- package/src/components/segment/Card.astro +0 -114
- package/src/components/segment/Footer.astro +0 -94
- package/src/components/segment/Header.astro +0 -100
- package/src/components/segment/Section.astro +0 -103
- package/src/components/segment/_regels.md +0 -32
- package/src/components/typography/Heading.astro +0 -66
- package/src/components/typography/List.astro +0 -47
- package/src/components/typography/ListItem.astro +0 -36
- package/src/components/typography/Paragraph.astro +0 -36
- package/src/components/typography/Tagline.astro +0 -36
- package/src/components/typography/Text.astro +0 -37
- package/src/components/utility/Head.astro +0 -83
- package/src/components/utility/Layout.astro +0 -46
- package/src/content/pages/index.md +0 -2
- package/src/css/color.scss +0 -289
- package/src/css/size.scss +0 -296
- package/src/css/utils.scss +0 -16
- package/src/index.ts +0 -71
- package/src/integration/integration.ts +0 -88
- package/src/integration/tailwind.ts +0 -34
- package/src/integration/unocss.ts +0 -38
- /package/src/{_archive → utils/_archive}/Childmorphic.ts +0 -0
- /package/src/{_archive → utils/_archive}/getAllCollections.ts +0 -0
- /package/src/{_archive → utils/_archive}/getCollectionCascade.ts +0 -0
- /package/src/{_archive → utils/_archive}/getPathname.ts +0 -0
- /package/src/{_archive → utils/_archive}/staticPageSchema.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transform.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformCasing.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformReferences.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformSelfs.ts +0 -0
- /package/src/{_archive → utils/_archive}/transform/transformUnderscores.ts +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Icon from 'fulldev-ui/components/Icon.astro'
|
|
4
|
+
import Label from 'fulldev-ui/components/Label.astro'
|
|
5
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
6
|
+
|
|
7
|
+
type Props = HTMLAttributes<'select'> & {
|
|
8
|
+
color?: 'base' | 'brand'
|
|
9
|
+
label?: string
|
|
10
|
+
placeholder?: string
|
|
11
|
+
options?: string[]
|
|
12
|
+
value?: string
|
|
13
|
+
radius?: 'none' | 'auto' | 'full'
|
|
14
|
+
variant?: 'outline'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const {
|
|
18
|
+
label,
|
|
19
|
+
placeholder,
|
|
20
|
+
options,
|
|
21
|
+
value,
|
|
22
|
+
name,
|
|
23
|
+
required,
|
|
24
|
+
radius = 'auto',
|
|
25
|
+
disabled,
|
|
26
|
+
variant = 'outline',
|
|
27
|
+
...rest
|
|
28
|
+
} = Astro.props
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
<Root
|
|
32
|
+
class:list="select"
|
|
33
|
+
{variant}
|
|
34
|
+
{...rest}
|
|
35
|
+
>
|
|
36
|
+
<Label
|
|
37
|
+
for={name}
|
|
38
|
+
html={label}
|
|
39
|
+
/>
|
|
40
|
+
<Root
|
|
41
|
+
as="select"
|
|
42
|
+
if={name || options}
|
|
43
|
+
id={name}
|
|
44
|
+
{radius}
|
|
45
|
+
{name}
|
|
46
|
+
{required}
|
|
47
|
+
{disabled}
|
|
48
|
+
>
|
|
49
|
+
<Root
|
|
50
|
+
as="option"
|
|
51
|
+
value={placeholder}
|
|
52
|
+
set:html={placeholder}
|
|
53
|
+
disabled
|
|
54
|
+
selected
|
|
55
|
+
/>
|
|
56
|
+
{
|
|
57
|
+
options?.map((option: any) => (
|
|
58
|
+
<Root
|
|
59
|
+
as="option"
|
|
60
|
+
selected={value === option}
|
|
61
|
+
set:html={option}
|
|
62
|
+
value={option}
|
|
63
|
+
/>
|
|
64
|
+
))
|
|
65
|
+
}
|
|
66
|
+
<slot />
|
|
67
|
+
</Root>
|
|
68
|
+
<Icon name="chevron-down" />
|
|
69
|
+
</Root>
|
|
70
|
+
|
|
71
|
+
<style is:global lang="scss">
|
|
72
|
+
.select {
|
|
73
|
+
display: flex;
|
|
74
|
+
position: relative;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: var(--space-1);
|
|
77
|
+
width: 100%;
|
|
78
|
+
|
|
79
|
+
.icon {
|
|
80
|
+
position: absolute;
|
|
81
|
+
right: var(--space-4);
|
|
82
|
+
bottom: var(--space-4);
|
|
83
|
+
width: var(--text-2);
|
|
84
|
+
height: var(--text-2);
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
select {
|
|
89
|
+
display: flex;
|
|
90
|
+
position: relative;
|
|
91
|
+
align-items: center;
|
|
92
|
+
appearance: none;
|
|
93
|
+
appearance: none;
|
|
94
|
+
outline: none;
|
|
95
|
+
border: 1px solid var(--color-6);
|
|
96
|
+
border-radius: var(--radius-1);
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
padding-right: calc(var(--text-2) + 2 * var(--space-4));
|
|
99
|
+
padding-left: var(--space-4);
|
|
100
|
+
width: 100%;
|
|
101
|
+
min-width: var(--space-4);
|
|
102
|
+
height: calc(var(--text-2) + 2 * var(--space-4));
|
|
103
|
+
color: var(--color-11);
|
|
104
|
+
font-size: var(--text-2);
|
|
105
|
+
line-height: 1.25;
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
outline: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&:focus {
|
|
112
|
+
outline: none;
|
|
113
|
+
box-shadow: inset 0 0 0 2px var(--color-7);
|
|
114
|
+
border-color: var(--color-7);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:disabled {
|
|
118
|
+
opacity: 50%;
|
|
119
|
+
cursor: not-allowed;
|
|
120
|
+
pointer-events: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.radius-none {
|
|
124
|
+
border-radius: 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.radius-auto {
|
|
128
|
+
border-radius: var(--radius-1);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&.radius-full {
|
|
132
|
+
border-radius: 9999px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
option {
|
|
137
|
+
color: var(--text);
|
|
138
|
+
font-weight: var(--font-weight);
|
|
139
|
+
font-size: var(--text-2);
|
|
140
|
+
line-height: 1;
|
|
141
|
+
font-family: var(--font-family);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
</style>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
import { getCollection } from 'astro:content'
|
|
3
|
+
import Column from 'fulldev-ui/components/Column.astro'
|
|
4
|
+
import Heading from 'fulldev-ui/components/Heading.astro'
|
|
5
|
+
import Link from 'fulldev-ui/components/Link.astro'
|
|
6
|
+
|
|
7
|
+
const { sidebar } = Astro.props
|
|
8
|
+
const slug = Astro.url.pathname.replace(/^\/|\/$/g, '')
|
|
9
|
+
const url = Astro.url.href
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<Column
|
|
13
|
+
as="aside"
|
|
14
|
+
class:list="sidebar"
|
|
15
|
+
>
|
|
16
|
+
{
|
|
17
|
+
sidebar?.length > 0 &&
|
|
18
|
+
sidebar.map((item: any) => (
|
|
19
|
+
<>
|
|
20
|
+
<Heading
|
|
21
|
+
level={6}
|
|
22
|
+
set:html={item.heading}
|
|
23
|
+
/>
|
|
24
|
+
{item.links?.map((link: any) => (
|
|
25
|
+
<Link
|
|
26
|
+
{...link}
|
|
27
|
+
class="sidebar-link"
|
|
28
|
+
color={url.endsWith(link.href) ? 'brand' : undefined}
|
|
29
|
+
/>
|
|
30
|
+
))}
|
|
31
|
+
{item.folder &&
|
|
32
|
+
(async () => {
|
|
33
|
+
const pages = await getCollection(
|
|
34
|
+
'pages',
|
|
35
|
+
(entry: any) =>
|
|
36
|
+
entry.slug.startsWith(item.folder) &&
|
|
37
|
+
!entry.slug.endsWith(item.folder)
|
|
38
|
+
)
|
|
39
|
+
return pages.map((page: any) => (
|
|
40
|
+
<Link
|
|
41
|
+
href={`/${page.slug}`}
|
|
42
|
+
class="sidebar-link"
|
|
43
|
+
color={slug === page.slug ? 'brand' : undefined}
|
|
44
|
+
set:html={page.data.title}
|
|
45
|
+
/>
|
|
46
|
+
))
|
|
47
|
+
})()}
|
|
48
|
+
</>
|
|
49
|
+
))
|
|
50
|
+
}
|
|
51
|
+
</Column>
|
|
52
|
+
|
|
53
|
+
<style lang="scss" is:global>
|
|
54
|
+
.sidebar {
|
|
55
|
+
display: none !important;
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
border-right: 1px solid var(--color-a6);
|
|
58
|
+
padding: var(--space-6) min(var(--space-5), var(--gutter)) var(--space-6) 0;
|
|
59
|
+
height: 100vh;
|
|
60
|
+
max-height: 100vh;
|
|
61
|
+
overflow-y: auto;
|
|
62
|
+
|
|
63
|
+
.sidebar-link {
|
|
64
|
+
font-size: var(--text-2);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (min-width: 1024px) {
|
|
68
|
+
display: flex !important;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import
|
|
3
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
4
4
|
|
|
5
5
|
type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
6
6
|
color?: 'base' | 'brand'
|
|
7
|
-
size?: '
|
|
8
|
-
compact?: boolean
|
|
7
|
+
size?: 'sm' | 'md' | 'lg'
|
|
9
8
|
align?: 'start' | 'center' | 'end'
|
|
10
9
|
space?: 'none' | 'auto'
|
|
11
10
|
}
|
|
@@ -13,19 +12,17 @@ type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
|
13
12
|
const { space = 'auto', align = 'center', ...rest } = Astro.props
|
|
14
13
|
---
|
|
15
14
|
|
|
16
|
-
<
|
|
17
|
-
class:list=
|
|
15
|
+
<Root
|
|
16
|
+
class:list="split"
|
|
18
17
|
{align}
|
|
19
18
|
{space}
|
|
20
19
|
{...rest}
|
|
21
20
|
>
|
|
22
21
|
<slot />
|
|
23
|
-
</
|
|
22
|
+
</Root>
|
|
24
23
|
|
|
25
24
|
<style is:global lang="scss">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@include component('split') {
|
|
25
|
+
.split {
|
|
29
26
|
display: grid;
|
|
30
27
|
grid-template-columns: 1fr;
|
|
31
28
|
column-gap: var(--space-6);
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
-
import
|
|
3
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
4
4
|
|
|
5
5
|
type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
6
6
|
color?: 'base' | 'brand'
|
|
7
|
-
size?: '
|
|
8
|
-
compact?: boolean
|
|
7
|
+
size?: 'sm' | 'md' | 'lg'
|
|
9
8
|
align?: 'start' | 'center' | 'end'
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
const { align = 'center', ...rest } = Astro.props
|
|
13
12
|
---
|
|
14
13
|
|
|
15
|
-
<
|
|
16
|
-
class:list=
|
|
14
|
+
<Root
|
|
15
|
+
class:list="spread"
|
|
17
16
|
{align}
|
|
18
17
|
{...rest}
|
|
19
18
|
>
|
|
20
19
|
<slot />
|
|
21
|
-
</
|
|
20
|
+
</Root>
|
|
22
21
|
|
|
23
22
|
<style is:global lang="scss">
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@include component('spread') {
|
|
23
|
+
.spread {
|
|
27
24
|
display: flex;
|
|
28
25
|
flex-direction: row;
|
|
29
26
|
flex-wrap: wrap;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { Polymorphic } from 'astro/types'
|
|
3
|
+
import Label from 'fulldev-ui/components/Label.astro'
|
|
4
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
5
|
+
|
|
6
|
+
type Props<As extends 'div'> = Polymorphic<{ as: As }> & {
|
|
7
|
+
color?: 'base' | 'brand'
|
|
8
|
+
true?: string
|
|
9
|
+
false?: string
|
|
10
|
+
trueLabel?: string
|
|
11
|
+
falseLabel?: string
|
|
12
|
+
name: string
|
|
13
|
+
checked: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
as = 'div',
|
|
18
|
+
name,
|
|
19
|
+
checked,
|
|
20
|
+
trueLabel,
|
|
21
|
+
falseLabel,
|
|
22
|
+
...rest
|
|
23
|
+
} = Astro.props
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
<Root
|
|
27
|
+
structure="row"
|
|
28
|
+
class:list="switch"
|
|
29
|
+
{as}
|
|
30
|
+
{...rest}
|
|
31
|
+
>
|
|
32
|
+
<Label
|
|
33
|
+
for={name}
|
|
34
|
+
set:html={falseLabel}
|
|
35
|
+
/>
|
|
36
|
+
<label
|
|
37
|
+
for={name}
|
|
38
|
+
class="switch-element"
|
|
39
|
+
>
|
|
40
|
+
<input
|
|
41
|
+
{checked}
|
|
42
|
+
name={name}
|
|
43
|
+
type="checkbox"
|
|
44
|
+
class="checkbox"
|
|
45
|
+
/>
|
|
46
|
+
<div class="checkmark"></div>
|
|
47
|
+
</label>
|
|
48
|
+
<Label
|
|
49
|
+
for={name}
|
|
50
|
+
set:html={trueLabel}
|
|
51
|
+
/>
|
|
52
|
+
</Root>
|
|
53
|
+
|
|
54
|
+
<style is:global lang="scss">
|
|
55
|
+
.switch {
|
|
56
|
+
position: relative;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--space-1);
|
|
59
|
+
width: 100%;
|
|
60
|
+
|
|
61
|
+
.switch-element {
|
|
62
|
+
display: block;
|
|
63
|
+
position: relative;
|
|
64
|
+
transition: var(--transition);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
border: 1px solid var(--border);
|
|
68
|
+
border-radius: 999px;
|
|
69
|
+
background-color: var(--base-2);
|
|
70
|
+
padding: var(--space-1);
|
|
71
|
+
width: fit-content;
|
|
72
|
+
min-width: calc(
|
|
73
|
+
(var(--text-2) + 2 * var(--space-2) * 2) + 2 * var(--space-1)
|
|
74
|
+
);
|
|
75
|
+
height: calc(var(--text-2) + 2 * var(--space-2));
|
|
76
|
+
|
|
77
|
+
.checkbox {
|
|
78
|
+
position: absolute;
|
|
79
|
+
opacity: 0;
|
|
80
|
+
width: 0;
|
|
81
|
+
height: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.checkmark {
|
|
85
|
+
transform: 0%;
|
|
86
|
+
transition: var(--transition);
|
|
87
|
+
border-radius: 999px;
|
|
88
|
+
background-color: var(--base-1);
|
|
89
|
+
width: 50%;
|
|
90
|
+
height: 100%;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.checkbox:checked ~ .checkmark {
|
|
94
|
+
transform: translateX(100%);
|
|
95
|
+
background-color: var(--color-12);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
background-color: var(--base-3);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:focus-visible {
|
|
103
|
+
outline: 2px solid var(--focus) !important;
|
|
104
|
+
outline-offset: 2px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:disabled {
|
|
108
|
+
opacity: 0.5;
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
4
|
+
|
|
5
|
+
type Props = HTMLAttributes<'table'> & {
|
|
6
|
+
color?: 'base' | 'brand'
|
|
7
|
+
size?: 'sm' | 'md' | 'lg'
|
|
8
|
+
header?: string[]
|
|
9
|
+
body?: string[][]
|
|
10
|
+
footer?: (string | { text: string; colspan?: string | number })[]
|
|
11
|
+
radius?: 'none' | 'auto'
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { header, body, footer, radius = 'auto', ...rest } = Astro.props
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<Root
|
|
18
|
+
class="table"
|
|
19
|
+
as="table"
|
|
20
|
+
{radius}
|
|
21
|
+
{...rest}
|
|
22
|
+
>
|
|
23
|
+
<Root as="thead">
|
|
24
|
+
<Root as="tr">
|
|
25
|
+
{header?.map((cell: string) => <Root as="th">{cell}</Root>)}
|
|
26
|
+
</Root>
|
|
27
|
+
</Root>
|
|
28
|
+
<Root as="tbody">
|
|
29
|
+
{
|
|
30
|
+
body?.map((row: string[]) => (
|
|
31
|
+
<Root as="tr">
|
|
32
|
+
{row.map((cell: string) => (
|
|
33
|
+
<Root as="td">{cell}</Root>
|
|
34
|
+
))}
|
|
35
|
+
</Root>
|
|
36
|
+
))
|
|
37
|
+
}
|
|
38
|
+
</Root>
|
|
39
|
+
<Root as="tfoot">
|
|
40
|
+
<Root as="tr">
|
|
41
|
+
{
|
|
42
|
+
footer?.map((cell) => {
|
|
43
|
+
if (typeof cell === 'string') {
|
|
44
|
+
return <Root as="td">{cell}</Root>
|
|
45
|
+
} else {
|
|
46
|
+
return (
|
|
47
|
+
<Root
|
|
48
|
+
as="td"
|
|
49
|
+
colspan={cell.colspan}
|
|
50
|
+
>
|
|
51
|
+
{cell.text}
|
|
52
|
+
</Root>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
</Root>
|
|
58
|
+
</Root>
|
|
59
|
+
</Root>
|
|
60
|
+
|
|
61
|
+
<style is:global lang="scss">
|
|
62
|
+
.table {
|
|
63
|
+
display: table;
|
|
64
|
+
box-shadow: 0 0 0 1px var(--color-6);
|
|
65
|
+
border-radius: var(--radius-1);
|
|
66
|
+
border-collapse: collapse;
|
|
67
|
+
width: 100%;
|
|
68
|
+
caption-side: bottom;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
|
|
71
|
+
&.radius-none {
|
|
72
|
+
border-radius: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.radius-auto {
|
|
76
|
+
border-radius: var(--radius-1);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
thead {
|
|
80
|
+
background-color: var(--color-3);
|
|
81
|
+
|
|
82
|
+
&:not(:last-child) {
|
|
83
|
+
border-bottom: 1px solid var(--color-6);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
th {
|
|
87
|
+
color: var(--color-12);
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
tbody {
|
|
93
|
+
display: table-row-group;
|
|
94
|
+
vertical-align: middle;
|
|
95
|
+
background-color: var(--color-2);
|
|
96
|
+
unicode-bidi: isolate;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
tfoot {
|
|
100
|
+
display: table-footer-group;
|
|
101
|
+
background-color: var(--color-3);
|
|
102
|
+
color: var(--color-12);
|
|
103
|
+
|
|
104
|
+
&:not(:last-child) {
|
|
105
|
+
border-top: 1px solid var(--color-6);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
tr + tr {
|
|
110
|
+
border-top: 1px solid var(--color-6);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
th,
|
|
114
|
+
td {
|
|
115
|
+
vertical-align: middle;
|
|
116
|
+
padding: var(--space-3) var(--space-4);
|
|
117
|
+
font-size: var(--text-2);
|
|
118
|
+
text-align: left;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
4
|
+
|
|
5
|
+
type Props<As extends HTMLTag = 'span'> = Polymorphic<{ as: As }> & {
|
|
6
|
+
size?: 'sm' | 'md' | 'lg'
|
|
7
|
+
color?: 'base' | 'brand'
|
|
8
|
+
contrast?: boolean
|
|
9
|
+
html?: string
|
|
10
|
+
text?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const { as = 'span', html, text, ...rest } = Astro.props
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<Root
|
|
17
|
+
class:list="tagline"
|
|
18
|
+
{as}
|
|
19
|
+
{...rest}
|
|
20
|
+
>
|
|
21
|
+
<slot>
|
|
22
|
+
<Fragment set:html={html} />
|
|
23
|
+
<Fragment set:text={text} />
|
|
24
|
+
</slot>
|
|
25
|
+
</Root>
|
|
26
|
+
|
|
27
|
+
<style is:global lang="scss">
|
|
28
|
+
.tagline {
|
|
29
|
+
color: var(--color-11);
|
|
30
|
+
font-size: var(--text-2);
|
|
31
|
+
line-height: 1;
|
|
32
|
+
text-align: left;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
4
|
+
|
|
5
|
+
type Props<As extends HTMLTag = 'p'> = Polymorphic<{ as: As }> & {
|
|
6
|
+
size?: 'sm' | 'md' | 'lg'
|
|
7
|
+
color?: 'base' | 'brand'
|
|
8
|
+
contrast?: boolean
|
|
9
|
+
lead?: boolean
|
|
10
|
+
html?: string
|
|
11
|
+
text?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const { as = 'p', color = 'base', html, text, ...rest } = Astro.props
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<Root
|
|
18
|
+
class:list="text"
|
|
19
|
+
{as}
|
|
20
|
+
{html}
|
|
21
|
+
{color}
|
|
22
|
+
{...rest}
|
|
23
|
+
>
|
|
24
|
+
<slot>
|
|
25
|
+
<Fragment set:html={html} />
|
|
26
|
+
<Fragment set:text={text} />
|
|
27
|
+
</slot>
|
|
28
|
+
</Root>
|
|
29
|
+
|
|
30
|
+
<style is:global lang="scss">
|
|
31
|
+
.text {
|
|
32
|
+
margin: 0;
|
|
33
|
+
max-width: calc(var(--space-4) * 44);
|
|
34
|
+
color: var(--color-11);
|
|
35
|
+
font-weight: var(--font-weight);
|
|
36
|
+
font-size: var(--text-3);
|
|
37
|
+
line-height: 1.625;
|
|
38
|
+
|
|
39
|
+
&.lead {
|
|
40
|
+
font-size: var(--text-4);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLAttributes } from 'astro/types'
|
|
3
|
+
import Label from 'fulldev-ui/components/Label.astro'
|
|
4
|
+
import Root from 'fulldev-ui/components/Root.astro'
|
|
5
|
+
|
|
6
|
+
type Props = HTMLAttributes<'textarea'> & {
|
|
7
|
+
radius?: 'none' | 'auto'
|
|
8
|
+
color?: 'base' | 'brand'
|
|
9
|
+
variant?: 'outline'
|
|
10
|
+
label?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const {
|
|
14
|
+
placeholder,
|
|
15
|
+
name = placeholder,
|
|
16
|
+
variant = 'outline',
|
|
17
|
+
radius = 'auto',
|
|
18
|
+
label,
|
|
19
|
+
rows,
|
|
20
|
+
value,
|
|
21
|
+
disabled,
|
|
22
|
+
required,
|
|
23
|
+
...rest
|
|
24
|
+
} = Astro.props
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
<Root
|
|
28
|
+
class:list="textarea"
|
|
29
|
+
{...rest}
|
|
30
|
+
>
|
|
31
|
+
<Label
|
|
32
|
+
for={name}
|
|
33
|
+
set:html={label}
|
|
34
|
+
/>
|
|
35
|
+
<Root
|
|
36
|
+
as="textarea"
|
|
37
|
+
if={name}
|
|
38
|
+
id={name}
|
|
39
|
+
{name}
|
|
40
|
+
{variant}
|
|
41
|
+
{placeholder}
|
|
42
|
+
{value}
|
|
43
|
+
{disabled}
|
|
44
|
+
{required}
|
|
45
|
+
{rows}
|
|
46
|
+
{radius}
|
|
47
|
+
/>
|
|
48
|
+
</Root>
|
|
49
|
+
|
|
50
|
+
<style is:global lang="scss">
|
|
51
|
+
.textarea {
|
|
52
|
+
display: flex;
|
|
53
|
+
position: relative;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
gap: var(--space-1);
|
|
56
|
+
width: 100%;
|
|
57
|
+
|
|
58
|
+
textarea {
|
|
59
|
+
display: flex;
|
|
60
|
+
position: relative;
|
|
61
|
+
align-items: center;
|
|
62
|
+
outline: none;
|
|
63
|
+
border: 1px solid var(--color-6);
|
|
64
|
+
border-radius: var(--radius-1);
|
|
65
|
+
background-color: transparent;
|
|
66
|
+
padding: var(--space-4);
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: calc((var(--text-2) + 2 * var(--space-4)) * 2);
|
|
69
|
+
min-height: calc((var(--text-2) + 2 * var(--space-4)) * 2);
|
|
70
|
+
resize: vertical;
|
|
71
|
+
color: var(--color-11);
|
|
72
|
+
font-weight: 400;
|
|
73
|
+
font-size: var(--text-2);
|
|
74
|
+
line-height: 1.25;
|
|
75
|
+
|
|
76
|
+
&.radius-none {
|
|
77
|
+
border-radius: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.radius-auto {
|
|
81
|
+
border-radius: var(--radius-1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::placeholder {
|
|
85
|
+
color: var(--color-11);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
outline: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:focus {
|
|
93
|
+
outline: none;
|
|
94
|
+
box-shadow: inset 0 0 0 2px var(--color-7);
|
|
95
|
+
border-color: var(--color-7);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:disabled {
|
|
99
|
+
opacity: 50%;
|
|
100
|
+
cursor: not-allowed;
|
|
101
|
+
pointer-events: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
</style>
|