fulldev-ui 0.3.10 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
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",
@@ -27,8 +27,8 @@ const {
27
27
  label,
28
28
  icon,
29
29
  // input attributes
30
- name,
31
30
  placeholder,
31
+ name,
32
32
  type,
33
33
  value,
34
34
  disabled,
@@ -6,14 +6,22 @@ type Props = HTMLAttributes<'input'> & {
6
6
  variant?: 'outline'
7
7
  }
8
8
 
9
- const { variant = 'outline', type = 'text', ...rest } = Astro.props
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 { variant = 'outline', ...rest } = Astro.props
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
- scheme?: 'light' | 'dark'
7
- color?: 'base' | 'brand'
8
- size?: 'sm' | 'md' | 'lg'
9
- compact?: boolean
10
- frame?: 'container' | 'wrapper' | 'panel' | 'viewport' | 'card' | 'none'
11
- variant?: 'fill' | 'subtle' | 'outline' | 'soft' | 'solid' | 'surface'
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 { ...rest } = Astro.props
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);
@@ -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' | 'row'
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'