fulldev-ui 0.3.13 → 0.3.14
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/package.json
CHANGED
|
@@ -10,6 +10,7 @@ type Props = HTMLAttributes<'img'> & {
|
|
|
10
10
|
width?: number | 1920
|
|
11
11
|
height?: number | 1920
|
|
12
12
|
radius?: 'none' | 'auto' | 'full'
|
|
13
|
+
mask?: 'sm' | 'md' | 'lg'
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
function getAltBySrc(): string {
|
|
@@ -77,11 +78,13 @@ const {
|
|
|
77
78
|
mask-image: linear-gradient(to top, transparent 0%, black 30%);
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
&.mask {
|
|
81
|
+
&.mask-md {
|
|
81
82
|
-webkit-mask-image: linear-gradient(to top, transparent 0%, black 100%);
|
|
82
83
|
mask-image: linear-gradient(to top, transparent 0%, black 100%);
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
|
|
87
|
+
|
|
85
88
|
&.radius-none {
|
|
86
89
|
border-radius: 0;
|
|
87
90
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
+
import { Box, Button, Column, Heading, Text } from 'fulldev-ui'
|
|
4
|
+
|
|
5
|
+
type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
6
|
+
if?: any
|
|
7
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
8
|
+
color?: 'base' | 'brand'
|
|
9
|
+
variant?: 'solid' | 'surface' | 'soft' | 'outline'
|
|
10
|
+
structure?: 'row' | 'column'
|
|
11
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6
|
|
12
|
+
compact?: boolean
|
|
13
|
+
heading?: string
|
|
14
|
+
text?: string
|
|
15
|
+
icon?: string
|
|
16
|
+
href?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const {
|
|
20
|
+
variant = 'soft',
|
|
21
|
+
structure = 'row',
|
|
22
|
+
color = 'brand',
|
|
23
|
+
compact = true,
|
|
24
|
+
level = 5,
|
|
25
|
+
heading,
|
|
26
|
+
text,
|
|
27
|
+
icon,
|
|
28
|
+
href,
|
|
29
|
+
...rest
|
|
30
|
+
} = Astro.props
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
<Box
|
|
34
|
+
{structure}
|
|
35
|
+
{...rest}
|
|
36
|
+
>
|
|
37
|
+
<Button
|
|
38
|
+
{variant}
|
|
39
|
+
{color}
|
|
40
|
+
{href}
|
|
41
|
+
{icon}
|
|
42
|
+
/>
|
|
43
|
+
<Column>
|
|
44
|
+
<Heading
|
|
45
|
+
{level}
|
|
46
|
+
html={heading}
|
|
47
|
+
/>
|
|
48
|
+
<Text html={text} />
|
|
49
|
+
</Column>
|
|
50
|
+
</Box>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
3
|
+
import Component from '../_Component.astro'
|
|
4
|
+
|
|
5
|
+
type Props<As extends HTMLTag = 'p'> = Polymorphic<{ as: As }> & {
|
|
6
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
7
|
+
color?: 'base' | 'brand'
|
|
8
|
+
contrast?: boolean
|
|
9
|
+
value?: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const { as = 'p', value, ...rest } = Astro.props
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<Component
|
|
16
|
+
if={value}
|
|
17
|
+
class:list={['price']}
|
|
18
|
+
{as}
|
|
19
|
+
{...rest}
|
|
20
|
+
>
|
|
21
|
+
€{value?.toFixed(2).replace('.', ',')}
|
|
22
|
+
</Component>
|
|
23
|
+
|
|
24
|
+
<style is:global lang="scss">
|
|
25
|
+
@import '../../css/utils.scss';
|
|
26
|
+
|
|
27
|
+
@include component('price') {
|
|
28
|
+
margin: 0;
|
|
29
|
+
max-width: calc(var(--space-4) * 36);
|
|
30
|
+
color: var(--text, var(--color-11));
|
|
31
|
+
font-weight: var(--font-weight);
|
|
32
|
+
font-size: var(--text-5);
|
|
33
|
+
line-height: 1.25;
|
|
34
|
+
font-family: var(--font-family);
|
|
35
|
+
}
|
|
36
|
+
</style>
|
package/src/index.ts
CHANGED
|
@@ -59,6 +59,10 @@ export { default as Split } from './components/structure/Split.astro'
|
|
|
59
59
|
export { default as Spread } from './components/structure/Spread.astro'
|
|
60
60
|
export { default as Wrap } from './components/structure/Wrap.astro'
|
|
61
61
|
|
|
62
|
+
// Experimental components
|
|
63
|
+
export { default as Channel } from './components/experimental/Channel.astro'
|
|
64
|
+
export { default as Price } from './components/experimental/Price.astro'
|
|
65
|
+
|
|
62
66
|
// Utility components
|
|
63
67
|
export { default as Block } from './components/_Block.astro'
|
|
64
68
|
export { default as Blocks } from './components/_Blocks.astro'
|