fulldev-ui 0.3.9 → 0.3.11
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 +1 -1
- package/src/components/base/input/Input.astro +1 -1
- package/src/components/base/input/InputElement.astro +10 -2
- package/src/components/base/textarea/TextareaElement.astro +9 -2
- package/src/components/{structure → segment}/Box.astro +20 -8
- package/src/components/segment/Card.astro +5 -1
- package/src/components/segment/Section.astro +2 -2
- package/src/index.ts +1 -0
package/package.json
CHANGED
|
@@ -6,14 +6,22 @@ type Props = HTMLAttributes<'input'> & {
|
|
|
6
6
|
variant?: 'outline'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
placeholder,
|
|
11
|
+
name = placeholder,
|
|
12
|
+
variant = 'outline',
|
|
13
|
+
type = 'text',
|
|
14
|
+
...rest
|
|
15
|
+
} = Astro.props
|
|
10
16
|
---
|
|
11
17
|
|
|
12
18
|
<Component
|
|
19
|
+
if={name}
|
|
13
20
|
as="input"
|
|
14
21
|
class="input-element"
|
|
15
|
-
if={true}
|
|
16
22
|
{variant}
|
|
23
|
+
{placeholder}
|
|
24
|
+
{name}
|
|
17
25
|
{...rest}
|
|
18
26
|
/>
|
|
19
27
|
|
|
@@ -6,14 +6,21 @@ type Props = HTMLAttributes<'textarea'> & {
|
|
|
6
6
|
variant?: 'outline'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
placeholder,
|
|
11
|
+
name = placeholder,
|
|
12
|
+
variant = 'outline',
|
|
13
|
+
...rest
|
|
14
|
+
} = Astro.props
|
|
10
15
|
---
|
|
11
16
|
|
|
12
17
|
<Component
|
|
18
|
+
if={name}
|
|
13
19
|
as="textarea"
|
|
14
20
|
class="textarea-element"
|
|
15
|
-
if={true}
|
|
16
21
|
{variant}
|
|
22
|
+
{placeholder}
|
|
23
|
+
{name}
|
|
17
24
|
{...rest}
|
|
18
25
|
/>
|
|
19
26
|
|
|
@@ -3,19 +3,32 @@ import type { HTMLTag, Polymorphic } from 'astro/types'
|
|
|
3
3
|
import Component from '../_Component.astro'
|
|
4
4
|
|
|
5
5
|
type Props<As extends HTMLTag = 'div'> = Polymorphic<{ as: As }> & {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
align?: 'start' | 'center' | 'end'
|
|
7
|
+
structure?:
|
|
8
|
+
| 'bento'
|
|
9
|
+
| 'carousel'
|
|
10
|
+
| 'column'
|
|
11
|
+
| 'grid'
|
|
12
|
+
| 'masonry'
|
|
13
|
+
| 'row'
|
|
14
|
+
| 'split'
|
|
15
|
+
| 'spread'
|
|
16
|
+
| 'wrap'
|
|
12
17
|
}
|
|
13
18
|
|
|
14
|
-
const {
|
|
19
|
+
const {
|
|
20
|
+
as = 'div',
|
|
21
|
+
structure = 'column',
|
|
22
|
+
align = 'start',
|
|
23
|
+
...rest
|
|
24
|
+
} = Astro.props
|
|
15
25
|
---
|
|
16
26
|
|
|
17
27
|
<Component
|
|
18
28
|
class:list={['box']}
|
|
29
|
+
{as}
|
|
30
|
+
{structure}
|
|
31
|
+
{align}
|
|
19
32
|
{...rest}
|
|
20
33
|
>
|
|
21
34
|
<slot />
|
|
@@ -25,6 +38,5 @@ const { ...rest } = Astro.props
|
|
|
25
38
|
@import '../../css/utils.scss';
|
|
26
39
|
|
|
27
40
|
@include component('box') {
|
|
28
|
-
position: relative;
|
|
29
41
|
}
|
|
30
42
|
</style>
|
|
@@ -80,6 +80,10 @@ const {
|
|
|
80
80
|
aspect-ratio: 3/4;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
&.frame-fill {
|
|
84
|
+
border-radius: 0 !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
83
87
|
&.frame-panel {
|
|
84
88
|
--inner-x: var(--space-7);
|
|
85
89
|
--inner-y: var(--space-7);
|
|
@@ -94,7 +98,7 @@ const {
|
|
|
94
98
|
}
|
|
95
99
|
|
|
96
100
|
&.radius-auto {
|
|
97
|
-
border-radius: var(--radius-
|
|
101
|
+
border-radius: var(--radius-2);
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
</style>
|
|
@@ -6,11 +6,11 @@ type Props<As extends HTMLTag = 'section'> = Polymorphic<{ as: As }> & {
|
|
|
6
6
|
scheme?: 'light' | 'dark'
|
|
7
7
|
color?: 'base' | 'brand'
|
|
8
8
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
|
|
9
|
-
compact?: boolean
|
|
10
9
|
frame?: 'fill' | 'viewport' | 'contain' | 'panel'
|
|
11
10
|
variant?: 'ghost' | 'subtle' | 'outline' | 'soft' | 'solid' | 'surface'
|
|
12
11
|
align?: 'start' | 'center' | 'end'
|
|
13
|
-
structure?: 'column' | 'split' | 'spread'
|
|
12
|
+
structure?: 'column' | 'split' | 'spread'
|
|
13
|
+
compact?: boolean
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const {
|
package/src/index.ts
CHANGED
|
@@ -42,6 +42,7 @@ export { default as Nav } from './components/_archive/Nav.astro'
|
|
|
42
42
|
export { default as Form } from './components/_todo/Form.astro'
|
|
43
43
|
export { default as Prose } from './components/_todo/Prose.astro'
|
|
44
44
|
export { default as Writeup } from './components/_todo/Writeup.astro'
|
|
45
|
+
export { default as Box } from './components/segment/Box.astro'
|
|
45
46
|
export { default as Card } from './components/segment/Card.astro'
|
|
46
47
|
export { default as Footer } from './components/segment/Footer.astro'
|
|
47
48
|
export { default as Header } from './components/segment/Header.astro'
|