fulldev-ui 0.3.29 → 0.3.31

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.29",
3
+ "version": "0.3.31",
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",
@@ -72,9 +72,9 @@ const render =
72
72
  ]}
73
73
  {...rest}
74
74
  >
75
+ <Fragment set:html={slot} />
75
76
  <Fragment set:text={text} />
76
77
  <Fragment set:html={html} />
77
- <Fragment set:html={slot} />
78
78
  </As>
79
79
  )
80
80
  }
@@ -29,7 +29,7 @@ const {
29
29
  position,
30
30
  frame,
31
31
  width,
32
- radius = 'none',
32
+ radius = 'auto',
33
33
  height,
34
34
  ...rest
35
35
  } = Astro.props
@@ -94,10 +94,9 @@ const {
94
94
  }
95
95
 
96
96
  &.radius-auto {
97
- border-radius: var(--radius-1);
97
+ border-radius: var(--radius-2);
98
98
  }
99
99
 
100
-
101
100
  &.radius-full {
102
101
  border-radius: 9999px;
103
102
  }
@@ -70,7 +70,7 @@ const {
70
70
  }
71
71
 
72
72
  &.frame-contain {
73
- --inner-x: max(4vw, var(--space-7));
73
+ --inner-x: max(4vw);
74
74
  --outer-x: max(0px, calc(var(--gutter) - var(--inner-x)));
75
75
  --inner-y: var(--space-7);
76
76
  --outer-y: 0;
@@ -10,12 +10,13 @@ type Props<As extends HTMLTag = 'p'> = Polymorphic<{ as: As }> & {
10
10
  text?: string
11
11
  }
12
12
 
13
- const { as = 'p', ...rest } = Astro.props
13
+ const { html, as = html ? 'div' : 'p', ...rest } = Astro.props
14
14
  ---
15
15
 
16
16
  <Component
17
17
  class:list={['text']}
18
18
  {as}
19
+ {html}
19
20
  {...rest}
20
21
  >
21
22
  <slot />