@behavioral-agentic-design-system/core 0.1.3 → 0.1.5
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 +2 -1
- package/src/components/ui/index.ts +38 -0
- package/src/styles.css +165 -0
- package/src/tokens.json +796 -336
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behavioral-agentic-design-system/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "BADS core — tokens and base shadcn/ui components for the Behavioral Agentic Design System.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"type": "module",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": "./src/index.ts",
|
|
14
|
+
"./styles.css": "./src/styles.css",
|
|
14
15
|
"./tokens.json": "./src/tokens.json",
|
|
15
16
|
"./lib/utils": "./src/lib/utils.ts",
|
|
16
17
|
"./hooks/*": "./src/hooks/*.ts",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Local convenience barrel for preview routes and example components.
|
|
2
|
+
// NOT exported from package.json — published consumers must use per-component
|
|
3
|
+
// import paths so optional peer deps stay optional.
|
|
4
|
+
export * from "./alert";
|
|
5
|
+
export * from "./avatar";
|
|
6
|
+
export * from "./badge";
|
|
7
|
+
export * from "./breadcrumb";
|
|
8
|
+
export * from "./button";
|
|
9
|
+
export * from "./calendar";
|
|
10
|
+
export * from "./card";
|
|
11
|
+
export * from "./chart";
|
|
12
|
+
export * from "./checkbox";
|
|
13
|
+
export * from "./collapsible";
|
|
14
|
+
export * from "./command";
|
|
15
|
+
export * from "./dialog";
|
|
16
|
+
export * from "./dropdown-menu";
|
|
17
|
+
export * from "./input";
|
|
18
|
+
export * from "./label";
|
|
19
|
+
export * from "./popover";
|
|
20
|
+
export * from "./progress";
|
|
21
|
+
export * from "./radio-group";
|
|
22
|
+
export * from "./resizable";
|
|
23
|
+
export * from "./scroll-area";
|
|
24
|
+
export * from "./select";
|
|
25
|
+
export * from "./separator";
|
|
26
|
+
export * from "./sheet";
|
|
27
|
+
export * from "./sidebar";
|
|
28
|
+
export * from "./skeleton";
|
|
29
|
+
export * from "./slider";
|
|
30
|
+
export * from "./sonner";
|
|
31
|
+
export * from "./switch";
|
|
32
|
+
export * from "./table";
|
|
33
|
+
export * from "./tabs";
|
|
34
|
+
export * from "./tag";
|
|
35
|
+
export * from "./textarea";
|
|
36
|
+
export * from "./toggle";
|
|
37
|
+
export * from "./toggle-group";
|
|
38
|
+
export * from "./tooltip";
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* GENERATED FROM tokens.json — DO NOT EDIT BY HAND.
|
|
2
|
+
* Run `pnpm build:tokens` after changing tokens.json. */
|
|
3
|
+
|
|
4
|
+
/* @behavioral-agentic-design-system/core — single-file theme import.
|
|
5
|
+
*
|
|
6
|
+
* Usage in your app's global stylesheet:
|
|
7
|
+
* @import "tailwindcss";
|
|
8
|
+
* @import "tw-animate-css";
|
|
9
|
+
* @import "@behavioral-agentic-design-system/core/styles.css";
|
|
10
|
+
*
|
|
11
|
+
* Atkinson Hyperlegible loaded from Google Fonts; zero font setup required.
|
|
12
|
+
* Override any token by re-declaring it after this @import.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');
|
|
16
|
+
|
|
17
|
+
@custom-variant dark (&:is(.dark *));
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--font-sans: 'Atkinson Hyperlegible', ui-sans-serif, sans-serif, system-ui;
|
|
21
|
+
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
22
|
+
--font-serif: ui-serif, Georgia, serif;
|
|
23
|
+
|
|
24
|
+
--background: oklch(1 0 0);
|
|
25
|
+
--foreground: oklch(0.145 0 0);
|
|
26
|
+
--card: oklch(1 0 0);
|
|
27
|
+
--card-foreground: oklch(0.145 0 0);
|
|
28
|
+
--popover: oklch(1 0 0);
|
|
29
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
30
|
+
--primary: oklch(0.205 0 0);
|
|
31
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
32
|
+
--secondary: oklch(0.97 0 0);
|
|
33
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
34
|
+
--muted: oklch(0.97 0 0);
|
|
35
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
36
|
+
--accent: oklch(0.97 0 0);
|
|
37
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
38
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
39
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
40
|
+
--border: oklch(0.922 0 0);
|
|
41
|
+
--input: oklch(0.922 0 0);
|
|
42
|
+
--ring: oklch(0.708 0 0);
|
|
43
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
|
44
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
|
45
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
|
46
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
|
47
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
|
48
|
+
--sidebar: oklch(0.985 0 0);
|
|
49
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
|
50
|
+
--sidebar-primary: oklch(0.205 0 0);
|
|
51
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
52
|
+
--sidebar-accent: oklch(0.97 0 0);
|
|
53
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
54
|
+
--sidebar-border: oklch(0.922 0 0);
|
|
55
|
+
--sidebar-ring: oklch(0.708 0 0);
|
|
56
|
+
|
|
57
|
+
--radius: 0.625rem;
|
|
58
|
+
--shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
|
|
59
|
+
--shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
|
|
60
|
+
--shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
|
|
61
|
+
--shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
|
|
62
|
+
--shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
|
|
63
|
+
--shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
|
|
64
|
+
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
|
|
65
|
+
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.dark {
|
|
69
|
+
--background: oklch(0.145 0 0);
|
|
70
|
+
--foreground: oklch(0.985 0 0);
|
|
71
|
+
--card: oklch(0.205 0 0);
|
|
72
|
+
--card-foreground: oklch(0.985 0 0);
|
|
73
|
+
--popover: oklch(0.205 0 0);
|
|
74
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
75
|
+
--primary: oklch(0.922 0 0);
|
|
76
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
77
|
+
--secondary: oklch(0.269 0 0);
|
|
78
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
79
|
+
--muted: oklch(0.269 0 0);
|
|
80
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
81
|
+
--accent: oklch(0.269 0 0);
|
|
82
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
83
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
84
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
85
|
+
--border: oklch(1 0 0 / 10%);
|
|
86
|
+
--input: oklch(1 0 0 / 15%);
|
|
87
|
+
--ring: oklch(0.556 0 0);
|
|
88
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
|
89
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
|
90
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
|
91
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
|
92
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
|
93
|
+
--sidebar: oklch(0.205 0 0);
|
|
94
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
95
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
96
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
97
|
+
--sidebar-accent: oklch(0.269 0 0);
|
|
98
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
99
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
100
|
+
--sidebar-ring: oklch(0.556 0 0);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@theme inline {
|
|
104
|
+
--color-background: var(--background);
|
|
105
|
+
--color-foreground: var(--foreground);
|
|
106
|
+
--color-card: var(--card);
|
|
107
|
+
--color-card-foreground: var(--card-foreground);
|
|
108
|
+
--color-popover: var(--popover);
|
|
109
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
110
|
+
--color-primary: var(--primary);
|
|
111
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
112
|
+
--color-secondary: var(--secondary);
|
|
113
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
114
|
+
--color-muted: var(--muted);
|
|
115
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
116
|
+
--color-accent: var(--accent);
|
|
117
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
118
|
+
--color-destructive: var(--destructive);
|
|
119
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
120
|
+
--color-border: var(--border);
|
|
121
|
+
--color-input: var(--input);
|
|
122
|
+
--color-ring: var(--ring);
|
|
123
|
+
--color-chart-1: var(--chart-1);
|
|
124
|
+
--color-chart-2: var(--chart-2);
|
|
125
|
+
--color-chart-3: var(--chart-3);
|
|
126
|
+
--color-chart-4: var(--chart-4);
|
|
127
|
+
--color-chart-5: var(--chart-5);
|
|
128
|
+
--color-sidebar: var(--sidebar);
|
|
129
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
130
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
131
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
132
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
133
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
134
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
135
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
136
|
+
|
|
137
|
+
--font-sans: var(--font-sans);
|
|
138
|
+
--font-mono: var(--font-mono);
|
|
139
|
+
--font-serif: var(--font-serif);
|
|
140
|
+
|
|
141
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
142
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
143
|
+
--radius-lg: var(--radius);
|
|
144
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
145
|
+
|
|
146
|
+
/* Accessibility floor — minimum 14px for text-xs (vs Tailwind's 12px default). */
|
|
147
|
+
--text-xs: 14px;
|
|
148
|
+
--text-sm: 16px;
|
|
149
|
+
--text-base: 18px;
|
|
150
|
+
--text-lg: 20px;
|
|
151
|
+
--text-xl: 24px;
|
|
152
|
+
--text-2xl: 28px;
|
|
153
|
+
--text-3xl: 32px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@layer base {
|
|
157
|
+
* {
|
|
158
|
+
@apply border-border outline-ring/50;
|
|
159
|
+
}
|
|
160
|
+
body {
|
|
161
|
+
@apply bg-background text-foreground;
|
|
162
|
+
-webkit-font-smoothing: antialiased;
|
|
163
|
+
-moz-osx-font-smoothing: grayscale;
|
|
164
|
+
}
|
|
165
|
+
}
|