harebear-ui 0.0.0-stage → 0.2.2
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/AGENTS.md +66 -0
- package/LICENSE +21 -0
- package/README.md +92 -2
- package/bin/harebear-ui.mjs +125 -0
- package/dist/components/admin/activity-feed.d.ts +15 -0
- package/dist/components/admin/activity-feed.js +50 -0
- package/dist/components/admin/app-shell.d.ts +47 -0
- package/dist/components/admin/app-shell.js +108 -0
- package/dist/components/admin/callout.d.ts +7 -0
- package/dist/components/admin/callout.js +18 -0
- package/dist/components/admin/key-value-grid.d.ts +11 -0
- package/dist/components/admin/key-value-grid.js +23 -0
- package/dist/components/admin/link-tile.d.ts +17 -0
- package/dist/components/admin/link-tile.js +36 -0
- package/dist/components/admin/page-header.d.ts +14 -0
- package/dist/components/admin/page-header.js +41 -0
- package/dist/components/admin/search-input.d.ts +12 -0
- package/dist/components/admin/search-input.js +32 -0
- package/dist/components/admin/stat-card.d.ts +20 -0
- package/dist/components/admin/stat-card.js +53 -0
- package/dist/components/admin/status.d.ts +12 -0
- package/dist/components/admin/status.js +32 -0
- package/dist/components/admin/timeline.d.ts +13 -0
- package/dist/components/admin/timeline.js +36 -0
- package/dist/components/admin/usage-meter.d.ts +17 -0
- package/dist/components/admin/usage-meter.js +43 -0
- package/dist/components/admin/user-chip.d.ts +14 -0
- package/dist/components/admin/user-chip.js +38 -0
- package/dist/components/ai/chat.d.ts +44 -0
- package/dist/components/ai/chat.js +151 -0
- package/dist/components/ai/code-block.d.ts +27 -0
- package/dist/components/ai/code-block.js +63 -0
- package/dist/components/ai/conversation-list.d.ts +18 -0
- package/dist/components/ai/conversation-list.js +30 -0
- package/dist/components/ai/model-picker.d.ts +21 -0
- package/dist/components/ai/model-picker.js +55 -0
- package/dist/components/ai/prompt-input.d.ts +27 -0
- package/dist/components/ai/prompt-input.js +99 -0
- package/dist/components/auth/auth.d.ts +85 -0
- package/dist/components/auth/auth.js +325 -0
- package/dist/components/data/bar-list.d.ts +14 -0
- package/dist/components/data/bar-list.js +27 -0
- package/dist/components/data/data-table.d.ts +70 -0
- package/dist/components/data/data-table.js +208 -0
- package/dist/components/data/sparkline.d.ts +16 -0
- package/dist/components/data/sparkline.js +72 -0
- package/dist/components/data/status-bars.d.ts +17 -0
- package/dist/components/data/status-bars.js +37 -0
- package/dist/components/data/trend-chart.d.ts +31 -0
- package/dist/components/data/trend-chart.js +136 -0
- package/dist/components/theme/theme-provider.d.ts +42 -0
- package/dist/components/theme/theme-provider.js +110 -0
- package/dist/components/theme/theme-toggle.d.ts +5 -0
- package/dist/components/theme/theme-toggle.js +21 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +53 -0
- package/dist/components/ui/alert-dialog.d.ts +18 -0
- package/dist/components/ui/alert-dialog.js +99 -0
- package/dist/components/ui/alert.d.ts +10 -0
- package/dist/components/ui/alert.js +42 -0
- package/dist/components/ui/aspect-ratio.d.ts +3 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/attachment.d.ts +24 -0
- package/dist/components/ui/attachment.js +100 -0
- package/dist/components/ui/avatar.d.ts +11 -0
- package/dist/components/ui/avatar.js +49 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.js +30 -0
- package/dist/components/ui/breadcrumb.d.ts +11 -0
- package/dist/components/ui/breadcrumb.js +70 -0
- package/dist/components/ui/bubble.d.ts +17 -0
- package/dist/components/ui/bubble.js +71 -0
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.js +39 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +55 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/calendar.js +108 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +55 -0
- package/dist/components/ui/carousel.d.ts +28 -0
- package/dist/components/ui/carousel.js +131 -0
- package/dist/components/ui/chart.d.ts +44 -0
- package/dist/components/ui/chart.js +148 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +19 -0
- package/dist/components/ui/code-block.d.ts +26 -0
- package/dist/components/ui/code-block.js +123 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/collapsible.js +23 -0
- package/dist/components/ui/combobox.d.ts +24 -0
- package/dist/components/ui/combobox.js +162 -0
- package/dist/components/ui/command.d.ts +18 -0
- package/dist/components/ui/command.js +86 -0
- package/dist/components/ui/context-menu.d.ts +31 -0
- package/dist/components/ui/context-menu.js +123 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dialog.js +94 -0
- package/dist/components/ui/direction.d.ts +7 -0
- package/dist/components/ui/direction.js +12 -0
- package/dist/components/ui/drawer.d.ts +13 -0
- package/dist/components/ui/drawer.js +76 -0
- package/dist/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/components/ui/dropdown-menu.js +126 -0
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/empty.js +59 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/field.js +109 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.js +30 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input-group.js +77 -0
- package/dist/components/ui/input-otp.d.ts +11 -0
- package/dist/components/ui/input-otp.js +46 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +13 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.js +117 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +19 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +13 -0
- package/dist/components/ui/marker.d.ts +11 -0
- package/dist/components/ui/marker.js +39 -0
- package/dist/components/ui/menubar.d.ts +30 -0
- package/dist/components/ui/menubar.js +133 -0
- package/dist/components/ui/message-scroller.d.ts +10 -0
- package/dist/components/ui/message-scroller.js +59 -0
- package/dist/components/ui/message.d.ts +10 -0
- package/dist/components/ui/message.js +48 -0
- package/dist/components/ui/native-select.d.ts +8 -0
- package/dist/components/ui/native-select.js +37 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.js +79 -0
- package/dist/components/ui/pagination.d.ts +17 -0
- package/dist/components/ui/pagination.js +79 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/popover.js +54 -0
- package/dist/components/ui/progress.d.ts +4 -0
- package/dist/components/ui/progress.js +18 -0
- package/dist/components/ui/questionnaire.d.ts +19 -0
- package/dist/components/ui/questionnaire.js +168 -0
- package/dist/components/ui/radio-group.d.ts +5 -0
- package/dist/components/ui/radio-group.js +25 -0
- package/dist/components/ui/resizable.d.ts +7 -0
- package/dist/components/ui/resizable.js +27 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +35 -0
- package/dist/components/ui/select.d.ts +15 -0
- package/dist/components/ui/select.js +98 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +15 -0
- package/dist/components/ui/sheet.d.ts +14 -0
- package/dist/components/ui/sheet.js +88 -0
- package/dist/components/ui/sidebar.d.ts +69 -0
- package/dist/components/ui/sidebar.js +377 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +12 -0
- package/dist/components/ui/slider.d.ts +4 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/sonner.d.ts +3 -0
- package/dist/components/ui/sonner.js +29 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.js +15 -0
- package/dist/components/ui/switch.d.ts +6 -0
- package/dist/components/ui/switch.js +18 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +65 -0
- package/dist/components/ui/tabs.d.ts +11 -0
- package/dist/components/ui/tabs.js +45 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +12 -0
- package/dist/components/ui/toggle-group.d.ts +10 -0
- package/dist/components/ui/toggle-group.js +50 -0
- package/dist/components/ui/toggle.d.ts +9 -0
- package/dist/components/ui/toggle.js +35 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/components/ui/tooltip.js +34 -0
- package/dist/components/ui/trace.d.ts +18 -0
- package/dist/components/ui/trace.js +74 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +5 -0
- package/dist/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/hooks/use-highlighted-code.d.ts +2 -0
- package/dist/hooks/use-highlighted-code.js +54 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.js +94 -0
- package/dist/lib/highlighter.d.ts +9 -0
- package/dist/lib/highlighter.js +77 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +8 -0
- package/dist/shadcn-base.css +638 -0
- package/dist/styles.css +188 -0
- package/docs/COMPONENTS.md +405 -0
- package/llms.txt +36 -0
- package/package.json +119 -4
- package/skills/harebear-ui/SKILL.md +34 -0
package/dist/styles.css
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* harebear-ui theme.
|
|
3
|
+
*
|
|
4
|
+
* Usage in an app (Tailwind CSS v4):
|
|
5
|
+
* @import "tailwindcss";
|
|
6
|
+
* @import "harebear-ui/styles.css";
|
|
7
|
+
*
|
|
8
|
+
* Every component reads the shadcn token names below. To rebrand, override
|
|
9
|
+
* --brand (accent), --radius, or any token on :root / .dark in your own CSS,
|
|
10
|
+
* or pass props to <ThemeProvider>.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
@import "tw-animate-css";
|
|
14
|
+
@import "@fontsource-variable/geist";
|
|
15
|
+
@import "@fontsource-variable/geist-mono";
|
|
16
|
+
@import "./shadcn-base.css";
|
|
17
|
+
|
|
18
|
+
/* Let the consumer's Tailwind scan this package's compiled components. */
|
|
19
|
+
@source "./";
|
|
20
|
+
|
|
21
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
22
|
+
|
|
23
|
+
@theme inline {
|
|
24
|
+
--font-sans: var(--hb-font-sans);
|
|
25
|
+
--font-heading: var(--hb-font-sans);
|
|
26
|
+
--font-mono: var(--hb-font-mono);
|
|
27
|
+
|
|
28
|
+
--color-background: var(--background);
|
|
29
|
+
--color-foreground: var(--foreground);
|
|
30
|
+
--color-card: var(--card);
|
|
31
|
+
--color-card-foreground: var(--card-foreground);
|
|
32
|
+
--color-popover: var(--popover);
|
|
33
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
34
|
+
--color-primary: var(--primary);
|
|
35
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
36
|
+
--color-primary-soft: var(--primary-soft);
|
|
37
|
+
--color-secondary: var(--secondary);
|
|
38
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
39
|
+
--color-muted: var(--muted);
|
|
40
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
41
|
+
--color-accent: var(--accent);
|
|
42
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
43
|
+
--color-destructive: var(--destructive);
|
|
44
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
45
|
+
--color-success: var(--success);
|
|
46
|
+
--color-warning: var(--warning);
|
|
47
|
+
--color-border: var(--border);
|
|
48
|
+
--color-input: var(--input);
|
|
49
|
+
--color-ring: var(--ring);
|
|
50
|
+
--color-chart-1: var(--chart-1);
|
|
51
|
+
--color-chart-2: var(--chart-2);
|
|
52
|
+
--color-chart-3: var(--chart-3);
|
|
53
|
+
--color-chart-4: var(--chart-4);
|
|
54
|
+
--color-chart-5: var(--chart-5);
|
|
55
|
+
--color-chart-grid: var(--chart-grid);
|
|
56
|
+
--color-sidebar: var(--sidebar);
|
|
57
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
58
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
59
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
60
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
61
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
62
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
63
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
64
|
+
|
|
65
|
+
--radius-sm: calc(var(--radius) * 0.55);
|
|
66
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
67
|
+
--radius-lg: var(--radius);
|
|
68
|
+
--radius-xl: calc(var(--radius) * 1.35);
|
|
69
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
70
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
71
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
72
|
+
|
|
73
|
+
--shadow-card: var(--elevation);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:root {
|
|
77
|
+
/* Brand levers. ThemeProvider writes these at runtime. */
|
|
78
|
+
--brand: #2f5bd3;
|
|
79
|
+
--radius: 0.875rem;
|
|
80
|
+
--hb-font-sans: "Geist Variable", "Geist", ui-sans-serif, system-ui, sans-serif;
|
|
81
|
+
--hb-font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
82
|
+
|
|
83
|
+
--background: #f7f7f8;
|
|
84
|
+
--foreground: #18181b;
|
|
85
|
+
--card: #ffffff;
|
|
86
|
+
--card-foreground: #18181b;
|
|
87
|
+
--popover: #ffffff;
|
|
88
|
+
--popover-foreground: #18181b;
|
|
89
|
+
--primary: var(--brand);
|
|
90
|
+
--primary-foreground: #ffffff;
|
|
91
|
+
--primary-soft: color-mix(in oklab, var(--primary) 10%, var(--card));
|
|
92
|
+
--secondary: #f1f1f3;
|
|
93
|
+
--secondary-foreground: #18181b;
|
|
94
|
+
--muted: #f1f1f3;
|
|
95
|
+
--muted-foreground: #63636b;
|
|
96
|
+
--accent: #f1f1f3;
|
|
97
|
+
--accent-foreground: #18181b;
|
|
98
|
+
--destructive: #c2410c;
|
|
99
|
+
--destructive-foreground: #ffffff;
|
|
100
|
+
--success: #1e8a4c;
|
|
101
|
+
--warning: #b26a00;
|
|
102
|
+
--border: #e6e6e9;
|
|
103
|
+
--input: #e6e6e9;
|
|
104
|
+
--ring: var(--primary);
|
|
105
|
+
--chart-1: var(--primary);
|
|
106
|
+
--chart-2: #8a8a93;
|
|
107
|
+
--chart-3: #c2702a;
|
|
108
|
+
--chart-4: #0f8a7e;
|
|
109
|
+
--chart-5: #8b5cc9;
|
|
110
|
+
--chart-grid: #eeeef0;
|
|
111
|
+
--elevation: 0 1px 2px rgb(24 24 27 / 0.04), 0 6px 20px rgb(24 24 27 / 0.05);
|
|
112
|
+
|
|
113
|
+
--sidebar: var(--background);
|
|
114
|
+
--sidebar-foreground: var(--foreground);
|
|
115
|
+
--sidebar-primary: var(--primary);
|
|
116
|
+
--sidebar-primary-foreground: var(--primary-foreground);
|
|
117
|
+
--sidebar-accent: var(--muted);
|
|
118
|
+
--sidebar-accent-foreground: var(--foreground);
|
|
119
|
+
--sidebar-border: var(--border);
|
|
120
|
+
--sidebar-ring: var(--ring);
|
|
121
|
+
|
|
122
|
+
color-scheme: light;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.dark {
|
|
126
|
+
--background: #101012;
|
|
127
|
+
--foreground: #ededef;
|
|
128
|
+
--card: #18181b;
|
|
129
|
+
--card-foreground: #ededef;
|
|
130
|
+
--popover: #18181b;
|
|
131
|
+
--popover-foreground: #ededef;
|
|
132
|
+
--primary: color-mix(in oklab, var(--brand), white 26%);
|
|
133
|
+
--primary-foreground: #0b1020;
|
|
134
|
+
--primary-soft: color-mix(in oklab, var(--primary) 15%, var(--card));
|
|
135
|
+
--secondary: #232326;
|
|
136
|
+
--secondary-foreground: #ededef;
|
|
137
|
+
--muted: #232326;
|
|
138
|
+
--muted-foreground: #9d9da5;
|
|
139
|
+
--accent: #232326;
|
|
140
|
+
--accent-foreground: #ededef;
|
|
141
|
+
--destructive: #f07a50;
|
|
142
|
+
--destructive-foreground: #18181b;
|
|
143
|
+
--success: #4cc38a;
|
|
144
|
+
--warning: #e5a23a;
|
|
145
|
+
--border: #2a2a2e;
|
|
146
|
+
--input: #2a2a2e;
|
|
147
|
+
--chart-2: #8b8b94;
|
|
148
|
+
--chart-3: #c9772b;
|
|
149
|
+
--chart-4: #3cb8a8;
|
|
150
|
+
--chart-5: #a98ae0;
|
|
151
|
+
--chart-grid: #242427;
|
|
152
|
+
--elevation: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.22);
|
|
153
|
+
|
|
154
|
+
color-scheme: dark;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@layer base {
|
|
158
|
+
* {
|
|
159
|
+
@apply border-border outline-ring/50;
|
|
160
|
+
}
|
|
161
|
+
html {
|
|
162
|
+
@apply font-sans;
|
|
163
|
+
}
|
|
164
|
+
body {
|
|
165
|
+
@apply bg-background text-foreground antialiased;
|
|
166
|
+
font-size: 14px;
|
|
167
|
+
line-height: 1.5;
|
|
168
|
+
}
|
|
169
|
+
button:not(:disabled),
|
|
170
|
+
[role="button"]:not(:disabled) {
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes hb-typing {
|
|
176
|
+
0%,
|
|
177
|
+
80%,
|
|
178
|
+
100% {
|
|
179
|
+
opacity: 0.25;
|
|
180
|
+
}
|
|
181
|
+
40% {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@utility animate-typing {
|
|
187
|
+
animation: hb-typing 1.2s infinite ease-in-out;
|
|
188
|
+
}
|