@framingui/ui 0.6.3 → 0.6.4
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/dist/chunk-RWYATDH5.mjs +180 -0
- package/dist/index.mjs +186 -174
- package/dist/src/components/alert-dialog.stories.js +1 -1
- package/dist/src/components/alert-dialog.stories.js.map +1 -1
- package/dist/src/components/avatar.js +2 -2
- package/dist/src/components/avatar.js.map +1 -1
- package/dist/src/components/avatar.stories.js +2 -2
- package/dist/src/components/avatar.stories.js.map +1 -1
- package/dist/src/components/badge.js +5 -5
- package/dist/src/components/badge.js.map +1 -1
- package/dist/src/components/breadcrumb.js +7 -7
- package/dist/src/components/breadcrumb.js.map +1 -1
- package/dist/src/components/button.js +10 -10
- package/dist/src/components/button.js.map +1 -1
- package/dist/src/components/calendar.js +11 -11
- package/dist/src/components/calendar.js.map +1 -1
- package/dist/src/components/calendar.stories.js +9 -9
- package/dist/src/components/calendar.stories.js.map +1 -1
- package/dist/src/components/card.js +5 -5
- package/dist/src/components/card.js.map +1 -1
- package/dist/src/components/card.stories.js +3 -3
- package/dist/src/components/card.stories.js.map +1 -1
- package/dist/src/components/checkbox.js +1 -1
- package/dist/src/components/checkbox.js.map +1 -1
- package/dist/src/components/checkbox.stories.js +2 -2
- package/dist/src/components/checkbox.stories.js.map +1 -1
- package/dist/src/components/command.d.ts +7 -7
- package/dist/src/components/command.js +8 -8
- package/dist/src/components/command.js.map +1 -1
- package/dist/src/components/command.stories.js +6 -6
- package/dist/src/components/command.stories.js.map +1 -1
- package/dist/src/components/dialog.stories.js +1 -1
- package/dist/src/components/dialog.stories.js.map +1 -1
- package/dist/src/components/dropdown-menu.js +8 -8
- package/dist/src/components/dropdown-menu.js.map +1 -1
- package/dist/src/components/form.js +4 -4
- package/dist/src/components/form.js.map +1 -1
- package/dist/src/components/input.js +1 -1
- package/dist/src/components/input.js.map +1 -1
- package/dist/src/components/input.stories.js +2 -2
- package/dist/src/components/input.stories.js.map +1 -1
- package/dist/src/components/label.stories.js +2 -2
- package/dist/src/components/label.stories.js.map +1 -1
- package/dist/src/components/navigation-menu.js +4 -4
- package/dist/src/components/navigation-menu.js.map +1 -1
- package/dist/src/components/navigation-menu.stories.js +2 -2
- package/dist/src/components/navigation-menu.stories.js.map +1 -1
- package/dist/src/components/popover.js +1 -1
- package/dist/src/components/popover.js.map +1 -1
- package/dist/src/components/popover.stories.js +2 -2
- package/dist/src/components/popover.stories.js.map +1 -1
- package/dist/src/components/progress.js +1 -1
- package/dist/src/components/progress.js.map +1 -1
- package/dist/src/components/radio-group.js +2 -2
- package/dist/src/components/radio-group.js.map +1 -1
- package/dist/src/components/radio-group.stories.js +2 -2
- package/dist/src/components/radio-group.stories.js.map +1 -1
- package/dist/src/components/scroll-area.js +1 -1
- package/dist/src/components/scroll-area.js.map +1 -1
- package/dist/src/components/scroll-area.stories.js +4 -4
- package/dist/src/components/scroll-area.stories.js.map +1 -1
- package/dist/src/components/select.js +5 -5
- package/dist/src/components/select.js.map +1 -1
- package/dist/src/components/separator.js +1 -1
- package/dist/src/components/separator.js.map +1 -1
- package/dist/src/components/separator.stories.js +2 -2
- package/dist/src/components/separator.stories.js.map +1 -1
- package/dist/src/components/sheet.d.ts +1 -1
- package/dist/src/components/sheet.js +11 -11
- package/dist/src/components/sheet.js.map +1 -1
- package/dist/src/components/sidebar.js +13 -13
- package/dist/src/components/sidebar.js.map +1 -1
- package/dist/src/components/sidebar.stories.js +2 -2
- package/dist/src/components/sidebar.stories.js.map +1 -1
- package/dist/src/components/skeleton.js +1 -1
- package/dist/src/components/skeleton.js.map +1 -1
- package/dist/src/components/skeleton.stories.js +1 -1
- package/dist/src/components/skeleton.stories.js.map +1 -1
- package/dist/src/components/switch.js +1 -1
- package/dist/src/components/switch.js.map +1 -1
- package/dist/src/components/switch.stories.js +3 -3
- package/dist/src/components/switch.stories.js.map +1 -1
- package/dist/src/components/table.js +5 -5
- package/dist/src/components/table.js.map +1 -1
- package/dist/src/components/tabs.js +3 -3
- package/dist/src/components/tabs.js.map +1 -1
- package/dist/src/components/tabs.stories.js +2 -2
- package/dist/src/components/tabs.stories.js.map +1 -1
- package/dist/src/components/textarea.js +1 -1
- package/dist/src/components/textarea.js.map +1 -1
- package/dist/src/components/textarea.stories.js +4 -4
- package/dist/src/components/textarea.stories.js.map +1 -1
- package/dist/src/components/toast.js +6 -6
- package/dist/src/components/toast.js.map +1 -1
- package/dist/src/components/tooltip.js +1 -1
- package/dist/src/components/tooltip.js.map +1 -1
- package/dist/src/lib/theme-loader.d.ts.map +1 -1
- package/dist/src/lib/theme-loader.js +41 -29
- package/dist/src/lib/theme-loader.js.map +1 -1
- package/dist/src/lib/tokens.d.ts.map +1 -1
- package/dist/src/lib/tokens.js +38 -38
- package/dist/src/lib/tokens.js.map +1 -1
- package/dist/src/templates/auth/forgot-password.js +1 -1
- package/dist/src/templates/auth/forgot-password.js.map +1 -1
- package/dist/src/templates/auth/login.js +1 -1
- package/dist/src/templates/auth/login.js.map +1 -1
- package/dist/src/templates/auth/signup.js +1 -1
- package/dist/src/templates/auth/signup.js.map +1 -1
- package/dist/src/templates/auth/verification.js +1 -1
- package/dist/src/templates/auth/verification.js.map +1 -1
- package/dist/src/templates/core/landing.js +1 -1
- package/dist/src/templates/core/landing.js.map +1 -1
- package/dist/src/templates/core/preferences.js +1 -1
- package/dist/src/templates/core/preferences.js.map +1 -1
- package/dist/src/templates/core/profile.js +1 -1
- package/dist/src/templates/core/profile.js.map +1 -1
- package/dist/src/templates/dashboard/overview.js +1 -1
- package/dist/src/templates/dashboard/overview.js.map +1 -1
- package/dist/src/templates/feedback/confirmation.js +1 -1
- package/dist/src/templates/feedback/confirmation.js.map +1 -1
- package/dist/src/templates/feedback/empty.js +1 -1
- package/dist/src/templates/feedback/empty.js.map +1 -1
- package/dist/src/templates/feedback/error.js +1 -1
- package/dist/src/templates/feedback/error.js.map +1 -1
- package/dist/src/templates/feedback/loading.js +1 -1
- package/dist/src/templates/feedback/loading.js.map +1 -1
- package/dist/src/templates/feedback/success.js +1 -1
- package/dist/src/templates/feedback/success.js.map +1 -1
- package/dist/src/templates/types.js +6 -6
- package/dist/src/templates/types.js.map +1 -1
- package/dist/templates/index.mjs +111 -111
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/styles/globals.css +113 -84
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framingui/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.4",
|
|
4
4
|
"description": "FramingUI Reference Component Library",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"accessibility"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@framingui/core": "^0.4.
|
|
44
|
-
"@framingui/tokens": "^0.3.
|
|
43
|
+
"@framingui/core": "^0.4.6",
|
|
44
|
+
"@framingui/tokens": "^0.3.5"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@hookform/resolvers": "^3.0.0",
|
package/styles/globals.css
CHANGED
|
@@ -22,81 +22,96 @@
|
|
|
22
22
|
|
|
23
23
|
@layer base {
|
|
24
24
|
* {
|
|
25
|
-
@apply border-[var(--
|
|
25
|
+
@apply border-[var(--border-default)];
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
body {
|
|
29
|
-
@apply bg-[var(--
|
|
29
|
+
@apply bg-[var(--bg-background)] text-[var(--bg-foreground)];
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/* ========================================
|
|
34
|
-
|
|
34
|
+
Standard Design Tokens
|
|
35
35
|
Fallback values when theme is not loaded
|
|
36
36
|
These are overridden by theme-loader.ts
|
|
37
37
|
======================================== */
|
|
38
38
|
|
|
39
39
|
:root {
|
|
40
40
|
/* Background Tokens */
|
|
41
|
-
--
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
41
|
+
--bg-background: oklch(0.99 0.005 265);
|
|
42
|
+
--bg-foreground: oklch(0.2 0.04 265);
|
|
43
|
+
--bg-card: oklch(1 0 0);
|
|
44
|
+
--bg-card-foreground: oklch(0.2 0.04 265);
|
|
45
|
+
--bg-popover: oklch(1 0 0);
|
|
46
|
+
--bg-popover-foreground: oklch(0.2 0.04 265);
|
|
47
|
+
--bg-primary: oklch(0.55 0.12 265);
|
|
48
|
+
--bg-primary-foreground: oklch(1 0 0);
|
|
49
|
+
--bg-secondary: oklch(0.96 0.01 265);
|
|
50
|
+
--bg-secondary-foreground: oklch(0.2 0.04 265);
|
|
51
|
+
--bg-muted: oklch(0.99 0.005 265);
|
|
52
|
+
--bg-muted-foreground: oklch(0.6 0.03 265);
|
|
53
|
+
--bg-accent: oklch(0.96 0.01 265);
|
|
54
|
+
--bg-accent-foreground: oklch(0.2 0.04 265);
|
|
55
|
+
--bg-destructive: oklch(0.55 0.22 30);
|
|
56
|
+
--bg-destructive-foreground: oklch(1 0 0);
|
|
57
57
|
|
|
58
58
|
/* Border Tokens */
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
59
|
+
--border-default: oklch(0.92 0.015 265);
|
|
60
|
+
--border-input: oklch(0.96 0.01 265);
|
|
61
|
+
--border-ring: oklch(0.55 0.12 265);
|
|
62
|
+
|
|
63
|
+
/* Semantic aliases for legacy template/component names */
|
|
64
|
+
--bg-base: var(--bg-background);
|
|
65
|
+
--bg-success: oklch(0.72 0.16 150);
|
|
66
|
+
|
|
67
|
+
--text-foreground: var(--bg-foreground);
|
|
68
|
+
--text-card-foreground: var(--bg-card-foreground);
|
|
69
|
+
--text-popover-foreground: var(--bg-popover-foreground);
|
|
70
|
+
--text-muted-foreground: var(--bg-muted-foreground);
|
|
71
|
+
--text-link: var(--bg-primary);
|
|
72
|
+
--text-success: var(--bg-success);
|
|
73
|
+
--text-destructive: var(--bg-destructive);
|
|
74
|
+
|
|
75
|
+
--border-border: var(--border-default);
|
|
76
|
+
--border-primary: var(--border-ring);
|
|
62
77
|
|
|
63
78
|
/* Radius Tokens */
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
79
|
+
--radius-xs: 2px;
|
|
80
|
+
--radius-sm: 4px;
|
|
81
|
+
--radius-md: 6px;
|
|
82
|
+
--radius-lg: 8px;
|
|
83
|
+
--radius-xl: 12px;
|
|
84
|
+
--radius-2xl: 16px;
|
|
85
|
+
--radius-3xl: 24px;
|
|
86
|
+
--radius-full: 9999px;
|
|
87
|
+
--radius-none: 0;
|
|
73
88
|
|
|
74
89
|
/* Spacing Tokens */
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
--
|
|
79
|
-
--
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
--
|
|
84
|
-
--
|
|
85
|
-
--
|
|
86
|
-
--
|
|
87
|
-
--
|
|
90
|
+
--spacing-0: 0;
|
|
91
|
+
--spacing-1: 4px;
|
|
92
|
+
--spacing-2: 8px;
|
|
93
|
+
--spacing-3: 12px;
|
|
94
|
+
--spacing-4: 16px;
|
|
95
|
+
--spacing-5: 20px;
|
|
96
|
+
--spacing-6: 24px;
|
|
97
|
+
--spacing-8: 32px;
|
|
98
|
+
--spacing-10: 40px;
|
|
99
|
+
--spacing-12: 48px;
|
|
100
|
+
--spacing-16: 64px;
|
|
101
|
+
--spacing-20: 80px;
|
|
102
|
+
--spacing-24: 96px;
|
|
88
103
|
|
|
89
104
|
/* Motion Tokens [SPEC-UI-001] [TAG-018] */
|
|
90
|
-
--
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
94
|
-
--
|
|
95
|
-
--
|
|
96
|
-
--
|
|
97
|
-
--
|
|
98
|
-
--
|
|
99
|
-
--
|
|
105
|
+
--motion-duration-instant: 0ms;
|
|
106
|
+
--motion-duration-fast: 100ms;
|
|
107
|
+
--motion-duration-moderate: 200ms;
|
|
108
|
+
--motion-duration-slow: 300ms;
|
|
109
|
+
--motion-duration-complex: 500ms;
|
|
110
|
+
--motion-easing-linear: linear;
|
|
111
|
+
--motion-easing-standard: cubic-bezier(0, 0, 0.2, 1);
|
|
112
|
+
--motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
|
|
113
|
+
--motion-easing-decelerate: cubic-bezier(0, 0, 0.2, 1);
|
|
114
|
+
--motion-easing-accelerate: cubic-bezier(0.4, 0, 1, 1);
|
|
100
115
|
}
|
|
101
116
|
|
|
102
117
|
/* ========================================
|
|
@@ -106,26 +121,40 @@
|
|
|
106
121
|
|
|
107
122
|
[data-theme*="-dark"],
|
|
108
123
|
.dark {
|
|
109
|
-
--
|
|
110
|
-
--
|
|
111
|
-
--
|
|
112
|
-
--
|
|
113
|
-
--
|
|
114
|
-
--
|
|
115
|
-
--
|
|
116
|
-
--
|
|
117
|
-
--
|
|
118
|
-
--
|
|
119
|
-
--
|
|
120
|
-
--
|
|
121
|
-
--
|
|
122
|
-
--
|
|
123
|
-
--
|
|
124
|
-
--
|
|
125
|
-
|
|
126
|
-
--
|
|
127
|
-
--
|
|
128
|
-
--
|
|
124
|
+
--bg-background: oklch(0.15 0.02 265);
|
|
125
|
+
--bg-foreground: oklch(0.95 0.005 265);
|
|
126
|
+
--bg-card: oklch(0.2 0.03 265);
|
|
127
|
+
--bg-card-foreground: oklch(0.95 0.005 265);
|
|
128
|
+
--bg-popover: oklch(0.2 0.03 265);
|
|
129
|
+
--bg-popover-foreground: oklch(0.95 0.005 265);
|
|
130
|
+
--bg-primary: oklch(0.6 0.14 265);
|
|
131
|
+
--bg-primary-foreground: oklch(0.1 0.01 265);
|
|
132
|
+
--bg-secondary: oklch(0.25 0.03 265);
|
|
133
|
+
--bg-secondary-foreground: oklch(0.95 0.005 265);
|
|
134
|
+
--bg-muted: oklch(0.18 0.02 265);
|
|
135
|
+
--bg-muted-foreground: oklch(0.7 0.02 265);
|
|
136
|
+
--bg-accent: oklch(0.25 0.03 265);
|
|
137
|
+
--bg-accent-foreground: oklch(0.95 0.005 265);
|
|
138
|
+
--bg-destructive: oklch(0.5 0.2 30);
|
|
139
|
+
--bg-destructive-foreground: oklch(1 0 0);
|
|
140
|
+
|
|
141
|
+
--border-default: oklch(0.3 0.03 265);
|
|
142
|
+
--border-input: oklch(0.25 0.03 265);
|
|
143
|
+
--border-ring: oklch(0.6 0.14 265);
|
|
144
|
+
|
|
145
|
+
--bg-base: var(--bg-background);
|
|
146
|
+
--bg-success: oklch(0.68 0.14 150);
|
|
147
|
+
|
|
148
|
+
--text-foreground: var(--bg-foreground);
|
|
149
|
+
--text-card-foreground: var(--bg-card-foreground);
|
|
150
|
+
--text-popover-foreground: var(--bg-popover-foreground);
|
|
151
|
+
--text-muted-foreground: var(--bg-muted-foreground);
|
|
152
|
+
--text-link: var(--bg-primary);
|
|
153
|
+
--text-success: var(--bg-success);
|
|
154
|
+
--text-destructive: var(--bg-destructive);
|
|
155
|
+
|
|
156
|
+
--border-border: var(--border-default);
|
|
157
|
+
--border-primary: var(--border-ring);
|
|
129
158
|
}
|
|
130
159
|
|
|
131
160
|
/* ========================================
|
|
@@ -136,7 +165,7 @@
|
|
|
136
165
|
@layer utilities {
|
|
137
166
|
/* Focus visible states */
|
|
138
167
|
.focus-ring {
|
|
139
|
-
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--
|
|
168
|
+
@apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--bg-background)];
|
|
140
169
|
}
|
|
141
170
|
|
|
142
171
|
/* Reduced motion support */
|
|
@@ -166,26 +195,26 @@
|
|
|
166
195
|
|
|
167
196
|
@layer components {
|
|
168
197
|
/* Scrollbar styling */
|
|
169
|
-
.
|
|
198
|
+
.ui-scrollbar {
|
|
170
199
|
scrollbar-width: thin;
|
|
171
|
-
scrollbar-color: var(--
|
|
200
|
+
scrollbar-color: var(--bg-muted) transparent;
|
|
172
201
|
}
|
|
173
202
|
|
|
174
|
-
.
|
|
203
|
+
.ui-scrollbar::-webkit-scrollbar {
|
|
175
204
|
width: 8px;
|
|
176
205
|
height: 8px;
|
|
177
206
|
}
|
|
178
207
|
|
|
179
|
-
.
|
|
208
|
+
.ui-scrollbar::-webkit-scrollbar-track {
|
|
180
209
|
background: transparent;
|
|
181
210
|
}
|
|
182
211
|
|
|
183
|
-
.
|
|
184
|
-
background: var(--
|
|
185
|
-
border-radius: var(--
|
|
212
|
+
.ui-scrollbar::-webkit-scrollbar-thumb {
|
|
213
|
+
background: var(--bg-muted);
|
|
214
|
+
border-radius: var(--radius-full);
|
|
186
215
|
}
|
|
187
216
|
|
|
188
|
-
.
|
|
189
|
-
background: var(--
|
|
217
|
+
.ui-scrollbar::-webkit-scrollbar-thumb:hover {
|
|
218
|
+
background: var(--bg-muted-foreground);
|
|
190
219
|
}
|
|
191
220
|
}
|