fulldev-ui 0.7.0-beta.7 → 0.7.0-beta.9
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/cli.js +51 -0
- package/components.json +18 -0
- package/package.json +5 -5
- package/tailwind.config.js +111 -0
package/cli.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
import fs from 'fs-extra'
|
|
3
|
+
import path from 'path'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
7
|
+
|
|
8
|
+
// Items to copy with source and target paths
|
|
9
|
+
const items = [
|
|
10
|
+
{
|
|
11
|
+
source: './src/blocks',
|
|
12
|
+
target: 'src/blocks',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
source: './src/components',
|
|
16
|
+
target: 'src/components',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
source: './src/lib',
|
|
20
|
+
target: 'src/lib',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
source: './src/schemas',
|
|
24
|
+
target: 'src/schemas',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
source: './src/styles',
|
|
28
|
+
target: 'src/styles',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
source: './components.json',
|
|
32
|
+
target: 'components.json',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
source: './tailwind.config.js',
|
|
36
|
+
target: 'tailwind.config.js',
|
|
37
|
+
},
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
items.forEach((item) => {
|
|
41
|
+
const sourcePath = path.join(__dirname, item.source)
|
|
42
|
+
const targetPath = path.join(process.cwd(), item.target)
|
|
43
|
+
|
|
44
|
+
// Create parent directory for files
|
|
45
|
+
const targetDir = fs.statSync(sourcePath).isDirectory() ? targetPath : path.dirname(targetPath)
|
|
46
|
+
fs.ensureDirSync(targetDir)
|
|
47
|
+
|
|
48
|
+
// Copy item
|
|
49
|
+
fs.copySync(sourcePath, targetPath)
|
|
50
|
+
console.log(`${item.target} copied successfully!`)
|
|
51
|
+
})
|
package/components.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://shadcn-vue.com/schema.json",
|
|
3
|
+
"style": "default",
|
|
4
|
+
"typescript": true,
|
|
5
|
+
"tsConfigPath": "./tsconfig.json",
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "tailwind.config.js",
|
|
8
|
+
"css": "src/styles/global.css",
|
|
9
|
+
"baseColor": "slate",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"framework": "astro",
|
|
14
|
+
"aliases": {
|
|
15
|
+
"components": "@/components",
|
|
16
|
+
"utils": "@/lib/utils"
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fulldev-ui",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.9",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"astro-ui-library",
|
|
17
17
|
"astro-ui"
|
|
18
18
|
],
|
|
19
|
-
"bin": "
|
|
19
|
+
"bin": "cli.js",
|
|
20
20
|
"type": "module",
|
|
21
21
|
"scripts": {
|
|
22
22
|
"astro": "astro",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"./src/lib",
|
|
39
39
|
"./src/schemas",
|
|
40
40
|
"./src/styles",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
41
|
+
"components.json",
|
|
42
|
+
"tailwind.config.js",
|
|
43
|
+
"cli.js"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@astrojs/tailwind": "^6.0.0",
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const animate = require('tailwindcss-animate')
|
|
2
|
+
const plugin = require('tailwindcss/plugin')
|
|
3
|
+
|
|
4
|
+
/** @type {import('tailwindcss').Config} */
|
|
5
|
+
module.exports = {
|
|
6
|
+
darkMode: ['class'],
|
|
7
|
+
safelist: ['dark'],
|
|
8
|
+
prefix: '',
|
|
9
|
+
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
|
10
|
+
theme: {
|
|
11
|
+
container: {
|
|
12
|
+
center: true,
|
|
13
|
+
padding: '2rem',
|
|
14
|
+
screens: {
|
|
15
|
+
'2xl': '1400px',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
extend: {
|
|
19
|
+
fontFamily: {
|
|
20
|
+
sans: ['var(--font-sans)'],
|
|
21
|
+
},
|
|
22
|
+
colors: {
|
|
23
|
+
border: 'hsl(var(--border))',
|
|
24
|
+
input: 'hsl(var(--input))',
|
|
25
|
+
ring: 'hsl(var(--ring))',
|
|
26
|
+
background: 'hsl(var(--background))',
|
|
27
|
+
foreground: 'hsl(var(--foreground))',
|
|
28
|
+
primary: {
|
|
29
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
30
|
+
foreground: 'hsl(var(--primary-foreground))',
|
|
31
|
+
},
|
|
32
|
+
secondary: {
|
|
33
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
34
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
35
|
+
},
|
|
36
|
+
destructive: {
|
|
37
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
38
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
39
|
+
},
|
|
40
|
+
muted: {
|
|
41
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
42
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
43
|
+
},
|
|
44
|
+
accent: {
|
|
45
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
46
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
47
|
+
},
|
|
48
|
+
popover: {
|
|
49
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
50
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
51
|
+
},
|
|
52
|
+
card: {
|
|
53
|
+
DEFAULT: 'hsl(var(--card))',
|
|
54
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
borderRadius: {
|
|
58
|
+
xl: 'calc(var(--radius) + 4px)',
|
|
59
|
+
lg: 'var(--radius)',
|
|
60
|
+
md: 'calc(var(--radius) - 2px)',
|
|
61
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
62
|
+
},
|
|
63
|
+
keyframes: {
|
|
64
|
+
'accordion-down': {
|
|
65
|
+
from: { height: 0 },
|
|
66
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
67
|
+
},
|
|
68
|
+
'accordion-up': {
|
|
69
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
70
|
+
to: { height: 0 },
|
|
71
|
+
},
|
|
72
|
+
'collapsible-down': {
|
|
73
|
+
from: { height: 0 },
|
|
74
|
+
to: { height: 'var(--radix-collapsible-content-height)' },
|
|
75
|
+
},
|
|
76
|
+
'collapsible-up': {
|
|
77
|
+
from: { height: 'var(--radix-collapsible-content-height)' },
|
|
78
|
+
to: { height: 0 },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
animation: {
|
|
82
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
83
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
84
|
+
'collapsible-down': 'collapsible-down 0.2s ease-in-out',
|
|
85
|
+
'collapsible-up': 'collapsible-up 0.2s ease-in-out',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
plugins: [
|
|
90
|
+
animate,
|
|
91
|
+
plugin(function ({ addVariant }) {
|
|
92
|
+
addVariant('child', '&>*')
|
|
93
|
+
addVariant('headings', '&>*:is(h1, h2, h3, h4, h5, h6)')
|
|
94
|
+
addVariant('h1', '&>h1')
|
|
95
|
+
addVariant('h2', '&>h2')
|
|
96
|
+
addVariant('h3', '&>h3')
|
|
97
|
+
addVariant('h4', '&>h4')
|
|
98
|
+
addVariant('h5', '&>h5')
|
|
99
|
+
addVariant('h6', '&>h6')
|
|
100
|
+
addVariant('p', '&>p')
|
|
101
|
+
addVariant('lead', '&>h1+p')
|
|
102
|
+
addVariant('button', '&>.button')
|
|
103
|
+
addVariant('buttons', '&>.buttons')
|
|
104
|
+
addVariant('img', '&>img')
|
|
105
|
+
addVariant('form', '&>form')
|
|
106
|
+
addVariant('ul', '&>ul')
|
|
107
|
+
addVariant('ol', '&>ol')
|
|
108
|
+
addVariant('li', '&>li')
|
|
109
|
+
}),
|
|
110
|
+
],
|
|
111
|
+
}
|