fulldev-ui 0.4.16 → 0.4.17

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.
@@ -1,11 +0,0 @@
1
- # Changes/Additions being made and why
2
-
3
- Here give examples of the changes you've made in this pull request. Include an itemized list if you can. It'll help the reviewer
4
-
5
- ## Screenshots (optional)
6
-
7
- If you made visual changes, what are the before an afters?
8
-
9
- ### Quality check
10
-
11
- - [ ] Are there any erroneous console logs, debuggers or leftover code in your changes?
@@ -0,0 +1,21 @@
1
+ name: Publish Package to npmjs
2
+ on:
3
+ release:
4
+ types: [published]
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ # Setup .npmrc file to publish to npm
14
+ - uses: actions/setup-node@v4
15
+ with:
16
+ node-version: '20.x'
17
+ registry-url: 'https://registry.npmjs.org'
18
+ - run: npm ci
19
+ - run: npm publish --provenance --access public
20
+ env:
21
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CONTRIBUTING.md CHANGED
@@ -102,7 +102,7 @@ Have you used fulldev-ui to build a website? Add it to the showcase!
102
102
 
103
103
  1. Fork this repository.
104
104
  2. Add a screenshot of your site to the `public/showcase/` directory.
105
- 3. Add your site to the `showcase` array at the top of `src/content/pages/overview/showcase.mdx`.
105
+ 3. Add your site to the `showcase` array at the top of `src/content/pages/showcase.mdx`.
106
106
  4. Go to the forked repository on your Github and clicke the 'Contribute` button to make a Pull Request.
107
107
 
108
108
  ## Community / Contact
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fulldev-ui",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
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,7 +27,7 @@ type Props<As extends HTMLTag = 'a'> = Polymorphic<{ as: As }> & {
27
27
  color?: 'base' | 'brand'
28
28
  space?: 'auto' | 'none'
29
29
  mask?: 'sm' | 'md' | 'lg'
30
- image?: string
30
+ image?: string | ComponentProps<typeof Image>
31
31
  images?: string[]
32
32
  button?: ComponentProps<typeof Button<'a'>>
33
33
  buttons?: ComponentProps<typeof Button<'a'>>[]
@@ -109,7 +109,8 @@ const buttonVariant = (i: number) => {
109
109
  {position}
110
110
  {mask}
111
111
  ratio={position === 'background' ? undefined : ratio}
112
- src={image || images?.[0]}
112
+ src={images?.[0]}
113
+ {...typeof image === 'string' ? { src: image } : image}
113
114
  />
114
115
  <Icon name={icon} />
115
116
  <Rating
@@ -250,8 +250,8 @@ const buttonVariant = (i: number) => {
250
250
  padding: var(--inset-top) var(--inset-right) var(--inset-bottom)
251
251
  var(--inset-left);
252
252
  max-width: calc(
253
- 100vw - var(--sidebar-width) - var(--toc-width) - var(--inset-left) - var(
254
- --inset-right
253
+ 100vw - var(--sidebar-width) - var(--toc-width) - var(--gutter-left) - var(
254
+ --gutter-right
255
255
  )
256
256
  );
257
257
  overflow: hidden;
@@ -7,7 +7,7 @@ type Props = HTMLAttributes<'table'> & {
7
7
  size?: 'sm' | 'md' | 'lg'
8
8
  header?: string[]
9
9
  body?: string[][]
10
- footer?: (string | { text: string; colspan?: string | number })[]
10
+ footer?: string[]
11
11
  radius?: 'none' | 'auto'
12
12
  }
13
13
 
@@ -24,15 +24,15 @@ const { header, body, footer, radius = 'auto', ...rest } = Astro.props
24
24
  >
25
25
  <Root as="thead">
26
26
  <Root as="tr">
27
- {header?.map((cell: string) => <Root as="th">{cell}</Root>)}
27
+ {header?.map((cell) => <th>{cell}</th>)}
28
28
  </Root>
29
29
  </Root>
30
30
  <Root as="tbody">
31
31
  {
32
32
  body?.map((row: string[]) => (
33
33
  <Root as="tr">
34
- {row.map((cell: string) => (
35
- <Root as="td">{cell}</Root>
34
+ {row?.map((cell) => (
35
+ <td>{cell}</td>
36
36
  ))}
37
37
  </Root>
38
38
  ))
@@ -40,22 +40,7 @@ const { header, body, footer, radius = 'auto', ...rest } = Astro.props
40
40
  </Root>
41
41
  <Root as="tfoot">
42
42
  <Root as="tr">
43
- {
44
- footer?.map((cell) => {
45
- if (typeof cell === 'string') {
46
- return <Root as="td">{cell}</Root>
47
- } else {
48
- return (
49
- <Root
50
- as="td"
51
- colspan={cell.colspan}
52
- >
53
- {cell.text}
54
- </Root>
55
- )
56
- }
57
- })
58
- }
43
+ {footer?.map((cell) => <td>{cell}</td>)}
59
44
  </Root>
60
45
  </Root>
61
46
  </Root>
@@ -20,7 +20,7 @@ import Table from 'fulldev-ui/components/Table.astro'
20
20
  ['Apple', 'Green', '2'],
21
21
  ['Banana', 'Yellow', '3'],
22
22
  ]}
23
- footer={[{ text: 'Total', colspan: '2' }, '5']}
23
+ footer={['Total', '', '5']}
24
24
  />
25
25
  ```
26
26
 
@@ -12,7 +12,7 @@ header:
12
12
  - text: Blocks
13
13
  href: /blocks
14
14
  - text: Showcase
15
- href: /overview/showcase
15
+ href: /showcase
16
16
  search:
17
17
  icon: search
18
18
  variant: soft
@@ -46,7 +46,7 @@ header:
46
46
  - text: Frameworks
47
47
  href: /overview/frameworks
48
48
  - text: Showcase
49
- href: /overview/showcase
49
+ href: /showcase
50
50
  - heading: Typography
51
51
  folder: typography
52
52
  - heading: Base
@@ -12,7 +12,7 @@ sidebar:
12
12
  - text: Frameworks
13
13
  href: /overview/frameworks
14
14
  - text: Showcase
15
- href: /overview/showcase
15
+ href: /showcase
16
16
  - heading: Typography
17
17
  folder: typography
18
18
  - heading: Base