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.
- package/.github/pull_request_template.md +0 -11
- package/.github/workflows/github-releases-to-npm.yml +21 -0
- package/CONTRIBUTING.md +1 -1
- package/package.json +1 -1
- package/src/components/Card.astro +3 -2
- package/src/components/Section.astro +2 -2
- package/src/components/Table.astro +5 -20
- package/src/content/pages/base/table.mdx +1 -1
- package/src/content/settings/base.yml +2 -2
- package/src/content/settings/components.yml +1 -1
- /package/src/content/pages/{overview/showcase.mdx → showcase.mdx} +0 -0
|
@@ -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/
|
|
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
|
@@ -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={
|
|
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(--
|
|
254
|
-
--
|
|
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?:
|
|
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
|
|
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
|
|
35
|
-
<
|
|
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>
|
|
@@ -12,7 +12,7 @@ header:
|
|
|
12
12
|
- text: Blocks
|
|
13
13
|
href: /blocks
|
|
14
14
|
- text: Showcase
|
|
15
|
-
href: /
|
|
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: /
|
|
49
|
+
href: /showcase
|
|
50
50
|
- heading: Typography
|
|
51
51
|
folder: typography
|
|
52
52
|
- heading: Base
|
|
File without changes
|