@agenticindiedev/ui 0.2.4 → 0.3.1
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/README.md +254 -26
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +36 -0
- package/dist/index.js +1713 -1664
- package/dist/styles.css +53 -413
- package/dist/tailwind.preset.js +91 -0
- package/dist/themes/dark.scss +57 -0
- package/dist/themes/light.scss +57 -0
- package/package.json +9 -5
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tailwind CSS preset for @agenticindiedev/ui
|
|
5
|
+
*
|
|
6
|
+
* Usage in your tailwind.config.ts:
|
|
7
|
+
* ```ts
|
|
8
|
+
* import type { Config } from 'tailwindcss';
|
|
9
|
+
*
|
|
10
|
+
* export default {
|
|
11
|
+
* presets: [require('@agenticindiedev/ui/tailwind.preset')],
|
|
12
|
+
* // Your custom config here
|
|
13
|
+
* } satisfies Config;
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const preset = {
|
|
18
|
+
darkMode: 'class',
|
|
19
|
+
content: ['@agenticindiedev/ui/dist/**/*.{js,cjs}'],
|
|
20
|
+
theme: {
|
|
21
|
+
extend: {
|
|
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
|
+
50: '#f0f9ff',
|
|
32
|
+
100: '#e0f2fe',
|
|
33
|
+
200: '#bae6fd',
|
|
34
|
+
300: '#7dd3fc',
|
|
35
|
+
400: '#38bdf8',
|
|
36
|
+
500: '#0ea5e9',
|
|
37
|
+
600: '#0284c7',
|
|
38
|
+
700: '#0369a1',
|
|
39
|
+
800: '#075985',
|
|
40
|
+
900: '#0c4a6e',
|
|
41
|
+
},
|
|
42
|
+
secondary: {
|
|
43
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
44
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
45
|
+
},
|
|
46
|
+
destructive: {
|
|
47
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
48
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
49
|
+
},
|
|
50
|
+
muted: {
|
|
51
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
52
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
53
|
+
},
|
|
54
|
+
accent: {
|
|
55
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
56
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
57
|
+
},
|
|
58
|
+
popover: {
|
|
59
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
60
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
61
|
+
},
|
|
62
|
+
card: {
|
|
63
|
+
DEFAULT: 'hsl(var(--card))',
|
|
64
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
borderRadius: {
|
|
68
|
+
lg: 'var(--radius)',
|
|
69
|
+
md: 'calc(var(--radius) - 2px)',
|
|
70
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
71
|
+
},
|
|
72
|
+
keyframes: {
|
|
73
|
+
'accordion-down': {
|
|
74
|
+
from: { height: '0' },
|
|
75
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
76
|
+
},
|
|
77
|
+
'accordion-up': {
|
|
78
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
79
|
+
to: { height: '0' },
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
animation: {
|
|
83
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
84
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
plugins: [],
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
module.exports = preset;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--background: 222.2 47.4% 11.2%;
|
|
5
|
+
--foreground: 210 40% 98%;
|
|
6
|
+
--card: 222.2 47.4% 11.2%;
|
|
7
|
+
--card-foreground: 210 40% 98%;
|
|
8
|
+
--popover: 222.2 47.4% 11.2%;
|
|
9
|
+
--popover-foreground: 210 40% 98%;
|
|
10
|
+
--primary: 199.1 89.1% 48.2%;
|
|
11
|
+
--primary-foreground: 210 40% 98%;
|
|
12
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
13
|
+
--secondary-foreground: 210 40% 98%;
|
|
14
|
+
--muted: 217.2 32.6% 17.5%;
|
|
15
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
16
|
+
--accent: 217.2 32.6% 17.5%;
|
|
17
|
+
--accent-foreground: 210 40% 98%;
|
|
18
|
+
--destructive: 0 62.8% 30.6%;
|
|
19
|
+
--destructive-foreground: 210 40% 98%;
|
|
20
|
+
--border: 217.2 32.6% 17.5%;
|
|
21
|
+
--input: 217.2 32.6% 17.5%;
|
|
22
|
+
--ring: 199.1 89.1% 48.2%;
|
|
23
|
+
--radius: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.light {
|
|
27
|
+
--background: 0 0% 98%;
|
|
28
|
+
--foreground: 222.2 47.4% 11.2%;
|
|
29
|
+
--card: 0 0% 99%;
|
|
30
|
+
--card-foreground: 222.2 47.4% 11.2%;
|
|
31
|
+
--popover: 0 0% 99%;
|
|
32
|
+
--popover-foreground: 222.2 47.4% 11.2%;
|
|
33
|
+
--primary: 199.1 89.1% 48.2%;
|
|
34
|
+
--primary-foreground: 210 40% 98%;
|
|
35
|
+
--secondary: 210 20% 96%;
|
|
36
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
37
|
+
--muted: 210 20% 96%;
|
|
38
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
39
|
+
--accent: 210 20% 96%;
|
|
40
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
41
|
+
--destructive: 0 84.2% 60.2%;
|
|
42
|
+
--destructive-foreground: 210 40% 98%;
|
|
43
|
+
--border: 214.3 20% 91%;
|
|
44
|
+
--input: 214.3 20% 91%;
|
|
45
|
+
--ring: 199.1 89.1% 48.2%;
|
|
46
|
+
--radius: 0.5rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes accordion-down {
|
|
50
|
+
from { height: 0; }
|
|
51
|
+
to { height: var(--radix-accordion-content-height); }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes accordion-up {
|
|
55
|
+
from { height: var(--radix-accordion-content-height); }
|
|
56
|
+
to { height: 0; }
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--background: 0 0% 98%;
|
|
5
|
+
--foreground: 222.2 47.4% 11.2%;
|
|
6
|
+
--card: 0 0% 99%;
|
|
7
|
+
--card-foreground: 222.2 47.4% 11.2%;
|
|
8
|
+
--popover: 0 0% 99%;
|
|
9
|
+
--popover-foreground: 222.2 47.4% 11.2%;
|
|
10
|
+
--primary: 199.1 89.1% 48.2%;
|
|
11
|
+
--primary-foreground: 210 40% 98%;
|
|
12
|
+
--secondary: 210 20% 96%;
|
|
13
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
14
|
+
--muted: 210 20% 96%;
|
|
15
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
16
|
+
--accent: 210 20% 96%;
|
|
17
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
18
|
+
--destructive: 0 84.2% 60.2%;
|
|
19
|
+
--destructive-foreground: 210 40% 98%;
|
|
20
|
+
--border: 214.3 20% 91%;
|
|
21
|
+
--input: 214.3 20% 91%;
|
|
22
|
+
--ring: 199.1 89.1% 48.2%;
|
|
23
|
+
--radius: 0.5rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dark {
|
|
27
|
+
--background: 222.2 47.4% 11.2%;
|
|
28
|
+
--foreground: 210 40% 98%;
|
|
29
|
+
--card: 222.2 47.4% 11.2%;
|
|
30
|
+
--card-foreground: 210 40% 98%;
|
|
31
|
+
--popover: 222.2 47.4% 11.2%;
|
|
32
|
+
--popover-foreground: 210 40% 98%;
|
|
33
|
+
--primary: 199.1 89.1% 48.2%;
|
|
34
|
+
--primary-foreground: 210 40% 98%;
|
|
35
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
36
|
+
--secondary-foreground: 210 40% 98%;
|
|
37
|
+
--muted: 217.2 32.6% 17.5%;
|
|
38
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
39
|
+
--accent: 217.2 32.6% 17.5%;
|
|
40
|
+
--accent-foreground: 210 40% 98%;
|
|
41
|
+
--destructive: 0 62.8% 30.6%;
|
|
42
|
+
--destructive-foreground: 210 40% 98%;
|
|
43
|
+
--border: 217.2 32.6% 17.5%;
|
|
44
|
+
--input: 217.2 32.6% 17.5%;
|
|
45
|
+
--ring: 199.1 89.1% 48.2%;
|
|
46
|
+
--radius: 0.5rem;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@keyframes accordion-down {
|
|
50
|
+
from { height: 0; }
|
|
51
|
+
to { height: var(--radix-accordion-content-height); }
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@keyframes accordion-up {
|
|
55
|
+
from { height: var(--radix-accordion-content-height); }
|
|
56
|
+
to { height: 0; }
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -74,11 +74,13 @@
|
|
|
74
74
|
},
|
|
75
75
|
"exports": {
|
|
76
76
|
".": {
|
|
77
|
-
"types": "./dist/index.d.ts",
|
|
78
77
|
"import": "./dist/index.js",
|
|
79
|
-
"require": "./dist/index.cjs"
|
|
78
|
+
"require": "./dist/index.cjs",
|
|
79
|
+
"types": "./dist/index.d.ts"
|
|
80
80
|
},
|
|
81
|
-
"./styles.css": "./dist/styles.css"
|
|
81
|
+
"./styles.css": "./dist/styles.css",
|
|
82
|
+
"./tailwind.preset": "./dist/tailwind.preset.js",
|
|
83
|
+
"./themes/*": "./dist/themes/*.scss"
|
|
82
84
|
},
|
|
83
85
|
"files": [
|
|
84
86
|
"dist"
|
|
@@ -117,10 +119,12 @@
|
|
|
117
119
|
"url": "https://github.com/agenticindiedev/ui"
|
|
118
120
|
},
|
|
119
121
|
"scripts": {
|
|
120
|
-
"build": "bun run build:lib && bun run build:css",
|
|
122
|
+
"build": "bun run build:lib && bun run build:css && bun run build:themes && bun run build:preset",
|
|
121
123
|
"build-storybook": "storybook build",
|
|
122
124
|
"build:css": "bunx postcss ./src/styles/globals.scss -o ./dist/styles.css --verbose",
|
|
123
125
|
"build:lib": "./scripts/build-lib.sh",
|
|
126
|
+
"build:preset": "node scripts/build-preset.mjs",
|
|
127
|
+
"build:themes": "node scripts/build-themes.mjs",
|
|
124
128
|
"deploy:storybook": "bun run build-storybook",
|
|
125
129
|
"dev": "storybook dev -p 6006",
|
|
126
130
|
"format:check": "prettier --check .",
|
|
@@ -142,5 +146,5 @@
|
|
|
142
146
|
],
|
|
143
147
|
"type": "module",
|
|
144
148
|
"types": "./dist/index.d.ts",
|
|
145
|
-
"version": "0.
|
|
149
|
+
"version": "0.3.1"
|
|
146
150
|
}
|