@vllnt/ui 0.1.11 → 0.2.0-canary.4abf494
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/CHANGELOG.md +104 -0
- package/README.md +106 -1
- package/dist/components/activity-heatmap/activity-heatmap.js +168 -0
- package/dist/components/activity-heatmap/index.js +6 -0
- package/dist/components/activity-log/activity-log.js +256 -0
- package/dist/components/activity-log/index.js +6 -0
- package/dist/components/ai-chat-input/ai-chat-input.js +107 -0
- package/dist/components/ai-chat-input/index.js +4 -0
- package/dist/components/ai-message-bubble/ai-message-bubble.js +119 -0
- package/dist/components/ai-message-bubble/index.js +6 -0
- package/dist/components/ai-source-citation/ai-source-citation.js +39 -0
- package/dist/components/ai-source-citation/index.js +6 -0
- package/dist/components/ai-streaming-text/ai-streaming-text.js +41 -0
- package/dist/components/ai-streaming-text/index.js +6 -0
- package/dist/components/ai-tool-call-display/ai-tool-call-display.js +93 -0
- package/dist/components/ai-tool-call-display/index.js +6 -0
- package/dist/components/animated-text/animated-text.js +328 -0
- package/dist/components/animated-text/index.js +4 -0
- package/dist/components/annotation/annotation.js +49 -0
- package/dist/components/annotation/index.js +8 -0
- package/dist/components/avatar-group/avatar-group.js +82 -0
- package/dist/components/avatar-group/index.js +10 -0
- package/dist/components/border-beam/border-beam.js +51 -0
- package/dist/components/border-beam/index.js +4 -0
- package/dist/components/candlestick-chart/candlestick-chart.js +215 -0
- package/dist/components/candlestick-chart/index.js +6 -0
- package/dist/components/combobox/combobox.js +130 -0
- package/dist/components/combobox/index.js +4 -0
- package/dist/components/countdown-timer/countdown-timer.js +184 -0
- package/dist/components/countdown-timer/index.js +4 -0
- package/dist/components/credit-badge/credit-badge.js +59 -0
- package/dist/components/credit-badge/index.js +6 -0
- package/dist/components/data-list/data-list.js +99 -0
- package/dist/components/data-list/index.js +16 -0
- package/dist/components/data-table/data-table.js +242 -0
- package/dist/components/data-table/index.js +6 -0
- package/dist/components/date-picker/date-picker.js +74 -0
- package/dist/components/date-picker/index.js +4 -0
- package/dist/components/file-upload/file-upload.js +227 -0
- package/dist/components/file-upload/index.js +4 -0
- package/dist/components/flashcard/flashcard.js +66 -0
- package/dist/components/flashcard/index.js +4 -0
- package/dist/components/index.js +172 -1
- package/dist/components/live-feed/index.js +4 -0
- package/dist/components/live-feed/live-feed.js +168 -0
- package/dist/components/market-treemap/index.js +6 -0
- package/dist/components/market-treemap/market-treemap.js +100 -0
- package/dist/components/marquee/index.js +4 -0
- package/dist/components/marquee/marquee.js +98 -0
- package/dist/components/metric-gauge/index.js +6 -0
- package/dist/components/metric-gauge/metric-gauge.js +213 -0
- package/dist/components/model-selector/model-selector.js +11 -2
- package/dist/components/number-input/index.js +4 -0
- package/dist/components/number-input/number-input.js +167 -0
- package/dist/components/number-ticker/index.js +4 -0
- package/dist/components/number-ticker/number-ticker.js +63 -0
- package/dist/components/order-book/index.js +6 -0
- package/dist/components/order-book/order-book.js +128 -0
- package/dist/components/password-input/index.js +4 -0
- package/dist/components/password-input/password-input.js +45 -0
- package/dist/components/plan-badge/index.js +6 -0
- package/dist/components/plan-badge/plan-badge.js +67 -0
- package/dist/components/rating/index.js +4 -0
- package/dist/components/rating/rating.js +121 -0
- package/dist/components/role-badge/index.js +6 -0
- package/dist/components/role-badge/role-badge.js +50 -0
- package/dist/components/scope-selector/index.js +6 -0
- package/dist/components/scope-selector/scope-selector.js +336 -0
- package/dist/components/severity-badge/index.js +8 -0
- package/dist/components/severity-badge/severity-badge.js +163 -0
- package/dist/components/sparkline-grid/index.js +6 -0
- package/dist/components/sparkline-grid/sparkline-grid.js +92 -0
- package/dist/components/spinner/index.js +5 -1
- package/dist/components/spinner/unicode-spinner.js +708 -0
- package/dist/components/stat-card/index.js +5 -0
- package/dist/components/stat-card/stat-card.js +102 -0
- package/dist/components/status-board/index.js +6 -0
- package/dist/components/status-board/status-board.js +138 -0
- package/dist/components/status-indicator/index.js +10 -0
- package/dist/components/status-indicator/status-indicator.js +175 -0
- package/dist/components/stepper/index.js +4 -0
- package/dist/components/stepper/stepper.js +117 -0
- package/dist/components/subscription-card/index.js +6 -0
- package/dist/components/subscription-card/subscription-card.js +161 -0
- package/dist/components/ticker-tape/index.js +6 -0
- package/dist/components/ticker-tape/ticker-tape.js +106 -0
- package/dist/components/tour/index.js +4 -0
- package/dist/components/tour/tour.js +157 -0
- package/dist/components/usage-breakdown/index.js +6 -0
- package/dist/components/usage-breakdown/usage-breakdown.js +140 -0
- package/dist/components/wallet-card/index.js +4 -0
- package/dist/components/wallet-card/wallet-card.js +115 -0
- package/dist/components/watchlist/index.js +6 -0
- package/dist/components/watchlist/watchlist.js +110 -0
- package/dist/components/world-clock-bar/index.js +6 -0
- package/dist/components/world-clock-bar/world-clock-bar.js +101 -0
- package/dist/index.d.ts +1173 -7
- package/dist/test-setup.js +19 -0
- package/package.json +27 -6
- package/styles.css +55 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
2
|
+
import * as matchers from "@testing-library/jest-dom/matchers";
|
|
3
|
+
import { expect } from "vitest";
|
|
4
|
+
expect.extend(matchers);
|
|
5
|
+
class MockResizeObserver {
|
|
6
|
+
observe() {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
unobserve() {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
disconnect() {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
globalThis.ResizeObserver = MockResizeObserver;
|
|
17
|
+
HTMLElement.prototype.scrollIntoView = function scrollIntoView() {
|
|
18
|
+
return;
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-canary.4abf494",
|
|
4
4
|
"description": "React component library — 93 components built on Radix UI, Tailwind CSS, and CVA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vllnt",
|
|
@@ -45,16 +45,18 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"dist",
|
|
47
47
|
"styles.css",
|
|
48
|
-
"themes"
|
|
48
|
+
"themes",
|
|
49
|
+
"CHANGELOG.md",
|
|
50
|
+
"README.md"
|
|
49
51
|
],
|
|
50
52
|
"sideEffects": [
|
|
51
53
|
"*.css"
|
|
52
54
|
],
|
|
53
55
|
"peerDependencies": {
|
|
54
|
-
"react": ">=18.0.0",
|
|
55
|
-
"react-dom": ">=18.0.0",
|
|
56
56
|
"next": ">=14.0.0",
|
|
57
57
|
"next-themes": ">=0.4.0",
|
|
58
|
+
"react": ">=18.0.0",
|
|
59
|
+
"react-dom": ">=18.0.0",
|
|
58
60
|
"tailwindcss": ">=3.0.0"
|
|
59
61
|
},
|
|
60
62
|
"peerDependenciesMeta": {
|
|
@@ -108,7 +110,16 @@
|
|
|
108
110
|
"vaul": "^1.1.2"
|
|
109
111
|
},
|
|
110
112
|
"devDependencies": {
|
|
113
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
114
|
+
"@github-ui/storybook-addon-performance-panel": "^1.1.4",
|
|
111
115
|
"@playwright/experimental-ct-react": "^1.57.0",
|
|
116
|
+
"@storybook/addon-a11y": "^10.2.17",
|
|
117
|
+
"@storybook/addon-designs": "^11.1.2",
|
|
118
|
+
"@storybook/addon-docs": "^10.2.17",
|
|
119
|
+
"@storybook/addon-mcp": "^0.3.4",
|
|
120
|
+
"@storybook/addon-themes": "^10.2.17",
|
|
121
|
+
"@storybook/react-vite": "^10.2.17",
|
|
122
|
+
"@storybook/test-runner": "^0.24.2",
|
|
112
123
|
"@testing-library/jest-dom": "^6.9.1",
|
|
113
124
|
"@testing-library/react": "^16.3.0",
|
|
114
125
|
"@types/node": "^22",
|
|
@@ -123,6 +134,8 @@
|
|
|
123
134
|
"jsdom": "^26.1.0",
|
|
124
135
|
"playwright": "^1.57.0",
|
|
125
136
|
"postcss": "^8.5.6",
|
|
137
|
+
"remark-gfm": "^4.0.1",
|
|
138
|
+
"storybook": "^10.2.17",
|
|
126
139
|
"tailwindcss": "^3.4.17",
|
|
127
140
|
"tailwindcss-animate": "^1.0.7",
|
|
128
141
|
"tsup": "^8.5.0",
|
|
@@ -132,7 +145,7 @@
|
|
|
132
145
|
},
|
|
133
146
|
"scripts": {
|
|
134
147
|
"build": "tsup",
|
|
135
|
-
"clean": "rm -rf dist node_modules coverage .snapshots playwright-report test-results",
|
|
148
|
+
"clean": "rm -rf dist node_modules coverage .snapshots playwright-report test-results storybook-static",
|
|
136
149
|
"lint": "eslint .",
|
|
137
150
|
"lint:fix": "eslint . --fix",
|
|
138
151
|
"check:circular": "madge --circular --extensions ts,tsx src",
|
|
@@ -142,6 +155,14 @@
|
|
|
142
155
|
"test:visual": "playwright test -c playwright-ct.config.ts",
|
|
143
156
|
"test:visual:update": "playwright test -c playwright-ct.config.ts --update-snapshots",
|
|
144
157
|
"test:all": "pnpm test:coverage && pnpm test:visual",
|
|
145
|
-
"test:generate": "tsx scripts/generate-tests.ts"
|
|
158
|
+
"test:generate": "tsx scripts/generate-tests.ts",
|
|
159
|
+
"storybook": "storybook dev -p 6006",
|
|
160
|
+
"build-storybook": "storybook build",
|
|
161
|
+
"test-storybook": "test-storybook",
|
|
162
|
+
"storybook:generate": "tsx scripts/generate-stories.ts",
|
|
163
|
+
"storybook:generate-docs": "tsx scripts/generate-docs.ts",
|
|
164
|
+
"storybook:verify": "tsx scripts/verify-stories.ts",
|
|
165
|
+
"storybook:fix-stories": "tsx scripts/fix-stories.ts",
|
|
166
|
+
"check:stories": "tsx scripts/check-story-coverage.ts"
|
|
146
167
|
}
|
|
147
168
|
}
|
package/styles.css
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
@tailwind components;
|
|
3
3
|
@tailwind utilities;
|
|
4
4
|
|
|
5
|
+
@property --vllnt-border-beam-angle {
|
|
6
|
+
syntax: "<angle>";
|
|
7
|
+
inherits: false;
|
|
8
|
+
initial-value: 90deg;
|
|
9
|
+
}
|
|
10
|
+
|
|
5
11
|
/* Default theme variables */
|
|
6
12
|
@layer base {
|
|
7
13
|
:root {
|
|
@@ -60,6 +66,55 @@
|
|
|
60
66
|
|
|
61
67
|
/* Safe area utilities for notched/rounded devices (iPhone, etc.) */
|
|
62
68
|
@layer utilities {
|
|
69
|
+
@keyframes vllnt-marquee-x {
|
|
70
|
+
from {
|
|
71
|
+
transform: translate3d(0, 0, 0);
|
|
72
|
+
}
|
|
73
|
+
to {
|
|
74
|
+
transform: translate3d(-50%, 0, 0);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes vllnt-marquee-y {
|
|
79
|
+
from {
|
|
80
|
+
transform: translate3d(0, 0, 0);
|
|
81
|
+
}
|
|
82
|
+
to {
|
|
83
|
+
transform: translate3d(0, -50%, 0);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes vllnt-animated-text-reveal {
|
|
88
|
+
from {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
transform: translate3d(0, 0.5rem, 0);
|
|
91
|
+
}
|
|
92
|
+
to {
|
|
93
|
+
opacity: 1;
|
|
94
|
+
transform: translate3d(0, 0, 0);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes vllnt-terminal-cursor-blink {
|
|
99
|
+
0%,
|
|
100
|
+
49% {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
50%,
|
|
104
|
+
100% {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes vllnt-border-beam-angle {
|
|
110
|
+
from {
|
|
111
|
+
--vllnt-border-beam-angle: 90deg;
|
|
112
|
+
}
|
|
113
|
+
to {
|
|
114
|
+
--vllnt-border-beam-angle: 450deg;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
63
118
|
.ml-safe {
|
|
64
119
|
margin-left: env(safe-area-inset-left, 0);
|
|
65
120
|
}
|