fulldev-ui 0.3.12 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "description": "A component library built for Astro",
5
5
  "homepage": "https://ui.full.dev",
6
6
  "bugs": "https://github.com/fulldotdev/ui/issues",
@@ -33,11 +33,46 @@ const { as = 'div', ...rest } = Astro.props
33
33
  // Tables
34
34
  .full.prose {
35
35
  color: var(--text);
36
+ color: var(--color-11);
36
37
  font-weight: var(--font-weight);
37
38
  font-size: var(--text-2);
38
- line-height: 1.625;
39
+ line-height: 1.7;
39
40
  font-family: var(--font-family);
40
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
+
41
76
  .display {
42
77
  display: grid;
43
78
  width: 100%;
@@ -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
  }
@@ -22,6 +22,7 @@ const {
22
22
  {variant}
23
23
  {placeholder}
24
24
  {name}
25
+ {type}
25
26
  {...rest}
26
27
  />
27
28
 
@@ -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>
@@ -1,5 +1,5 @@
1
- :root,
2
- .theme-light,
1
+ :where(:root),
2
+ :where(.theme-light),
3
3
  [data-theme='light'] {
4
4
  --brand-1: #fbf9f8;
5
5
  --brand-2: #fff1ec;
@@ -32,7 +32,7 @@
32
32
  color-scheme: light;
33
33
  }
34
34
 
35
- .theme-dark,
35
+ :where(.theme-dark),
36
36
  [data-theme='dark'] {
37
37
  --brand-1: #160f0d;
38
38
  --brand-2: #201511;
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'