@vjdesigns/vjdesigns-ui 3.1.0 → 3.3.0
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 +40 -1
- package/dist/ai/llms-full.txt +91 -1
- package/dist/ai/llms.txt +1 -0
- package/dist/ai/registry.json +154 -2
- package/dist/components/data-display/Countdown/Countdown.cjs.js +1 -0
- package/dist/components/data-display/Countdown/Countdown.d.ts +98 -0
- package/dist/components/data-display/Countdown/Countdown.mjs +150 -0
- package/dist/components/data-display/Countdown/Countdown.module.css.cjs.js +1 -0
- package/dist/components/data-display/Countdown/Countdown.module.css.mjs +30 -0
- package/dist/components/data-display/Countdown/index.d.ts +1 -0
- package/dist/i18n/en.cjs.js +1 -1
- package/dist/i18n/en.mjs +4 -0
- package/dist/i18n/types.d.ts +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +79 -78
- package/dist/locales/ar.cjs.js +1 -1
- package/dist/locales/ar.mjs +4 -0
- package/dist/locales/bn.cjs.js +1 -1
- package/dist/locales/bn.mjs +4 -0
- package/dist/locales/cs.cjs.js +1 -1
- package/dist/locales/cs.mjs +4 -0
- package/dist/locales/da.cjs.js +1 -1
- package/dist/locales/da.mjs +4 -0
- package/dist/locales/de.cjs.js +1 -1
- package/dist/locales/de.mjs +4 -0
- package/dist/locales/el.cjs.js +1 -1
- package/dist/locales/el.mjs +4 -0
- package/dist/locales/es.cjs.js +1 -1
- package/dist/locales/es.mjs +4 -0
- package/dist/locales/fa.cjs.js +1 -1
- package/dist/locales/fa.mjs +4 -0
- package/dist/locales/fi.cjs.js +1 -1
- package/dist/locales/fi.mjs +4 -0
- package/dist/locales/fr.cjs.js +1 -1
- package/dist/locales/fr.mjs +4 -0
- package/dist/locales/he.cjs.js +1 -1
- package/dist/locales/he.mjs +4 -0
- package/dist/locales/hi.cjs.js +1 -1
- package/dist/locales/hi.mjs +4 -0
- package/dist/locales/hu.cjs.js +1 -1
- package/dist/locales/hu.mjs +4 -0
- package/dist/locales/id.cjs.js +1 -1
- package/dist/locales/id.mjs +4 -0
- package/dist/locales/it.cjs.js +1 -1
- package/dist/locales/it.mjs +4 -0
- package/dist/locales/ja.cjs.js +1 -1
- package/dist/locales/ja.mjs +4 -0
- package/dist/locales/ko.cjs.js +1 -1
- package/dist/locales/ko.mjs +4 -0
- package/dist/locales/nb.cjs.js +1 -1
- package/dist/locales/nb.mjs +4 -0
- package/dist/locales/nl.cjs.js +1 -1
- package/dist/locales/nl.mjs +4 -0
- package/dist/locales/pl.cjs.js +1 -1
- package/dist/locales/pl.mjs +4 -0
- package/dist/locales/pt-BR.cjs.js +1 -1
- package/dist/locales/pt-BR.mjs +4 -0
- package/dist/locales/ro.cjs.js +1 -1
- package/dist/locales/ro.mjs +4 -0
- package/dist/locales/ru.cjs.js +1 -1
- package/dist/locales/ru.mjs +4 -0
- package/dist/locales/sv.cjs.js +1 -1
- package/dist/locales/sv.mjs +4 -0
- package/dist/locales/th.cjs.js +1 -1
- package/dist/locales/th.mjs +4 -0
- package/dist/locales/tr.cjs.js +1 -1
- package/dist/locales/tr.mjs +4 -0
- package/dist/locales/uk.cjs.js +1 -1
- package/dist/locales/uk.mjs +4 -0
- package/dist/locales/ur.cjs.js +1 -1
- package/dist/locales/ur.mjs +4 -0
- package/dist/locales/vi.cjs.js +1 -1
- package/dist/locales/vi.mjs +4 -0
- package/dist/locales/zh-Hans.cjs.js +1 -1
- package/dist/locales/zh-Hans.mjs +4 -0
- package/dist/locales/zh-Hant.cjs.js +1 -1
- package/dist/locales/zh-Hant.mjs +4 -0
- package/dist/tailwind.css +243 -0
- package/dist/vjdesigns-ui.css +1 -1
- package/package.json +4 -1
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
vjdesigns-ui Tailwind CSS v4 preset
|
|
3
|
+
|
|
4
|
+
Import it after Tailwind, with the library's stylesheet loaded too:
|
|
5
|
+
|
|
6
|
+
@import "tailwindcss";
|
|
7
|
+
@import "@vjdesigns/vjdesigns-ui/tailwind.css";
|
|
8
|
+
|
|
9
|
+
Every utility points at a design token (bg-primary -> var(--color-primary)),
|
|
10
|
+
so Tailwind classes follow data-theme, data-brand, and data-accent exactly
|
|
11
|
+
like the components do.
|
|
12
|
+
|
|
13
|
+
`inline reference`: utilities use the token directly, and Tailwind emits no
|
|
14
|
+
theme variables of its own for these names. Many share a name with a token
|
|
15
|
+
(--radius-lg, --shadow-md, ...); an emitted copy would read
|
|
16
|
+
`--radius-lg: var(--radius-lg)`, a self-reference that breaks wherever the
|
|
17
|
+
tokens don't apply (inside shadow roots, Tailwind's theme also targets :host).
|
|
18
|
+
|
|
19
|
+
`node scripts/check-tailwind.mjs` checks this file against tokens.css: every
|
|
20
|
+
var() exists, every name Tailwind's default theme shares with a token is
|
|
21
|
+
declared here, and the literal container sizes match the tokens.
|
|
22
|
+
========================================================================== */
|
|
23
|
+
|
|
24
|
+
@theme inline reference {
|
|
25
|
+
/* ---- Surfaces and text: bg-surface, text-text-muted, border-border ---- */
|
|
26
|
+
--color-bg: var(--color-bg);
|
|
27
|
+
--color-surface: var(--color-surface);
|
|
28
|
+
--color-surface-raised: var(--color-surface-raised);
|
|
29
|
+
--color-surface-sunken: var(--color-surface-sunken);
|
|
30
|
+
--color-surface-hover: var(--color-surface-hover);
|
|
31
|
+
--color-surface-active: var(--color-surface-active);
|
|
32
|
+
--color-overlay: var(--color-overlay);
|
|
33
|
+
--color-text: var(--color-text);
|
|
34
|
+
--color-text-muted: var(--color-text-muted);
|
|
35
|
+
--color-text-disabled: var(--color-text-disabled);
|
|
36
|
+
--color-text-inverse: var(--color-text-inverse);
|
|
37
|
+
--color-border: var(--color-border);
|
|
38
|
+
--color-border-strong: var(--color-border-strong);
|
|
39
|
+
--color-border-input: var(--color-border-input);
|
|
40
|
+
--color-link-visited: var(--color-link-visited);
|
|
41
|
+
--color-focus-ring: var(--focus-ring-color);
|
|
42
|
+
|
|
43
|
+
/* ---- Primary and accent (per brand; always dark text on accent) ---- */
|
|
44
|
+
--color-primary: var(--color-primary);
|
|
45
|
+
--color-primary-hover: var(--color-primary-hover);
|
|
46
|
+
--color-primary-active: var(--color-primary-active);
|
|
47
|
+
--color-on-primary: var(--color-on-primary);
|
|
48
|
+
--color-primary-subtle: var(--color-primary-subtle);
|
|
49
|
+
--color-primary-subtle-hover: var(--color-primary-subtle-hover);
|
|
50
|
+
--color-primary-subtle-text: var(--color-primary-subtle-text);
|
|
51
|
+
--color-primary-border: var(--color-primary-border);
|
|
52
|
+
--color-accent: var(--color-accent);
|
|
53
|
+
--color-accent-hover: var(--color-accent-hover);
|
|
54
|
+
--color-accent-active: var(--color-accent-active);
|
|
55
|
+
--color-on-accent: var(--color-on-accent);
|
|
56
|
+
--color-accent-subtle: var(--color-accent-subtle);
|
|
57
|
+
--color-accent-subtle-hover: var(--color-accent-subtle-hover);
|
|
58
|
+
--color-accent-subtle-text: var(--color-accent-subtle-text);
|
|
59
|
+
--color-accent-border: var(--color-accent-border);
|
|
60
|
+
|
|
61
|
+
/* ---- Tones. Tailwind's own neutral-50 to neutral-950 scale is untouched:
|
|
62
|
+
bg-neutral is the tone, bg-neutral-500 is Tailwind's gray. ---- */
|
|
63
|
+
--color-success: var(--color-success);
|
|
64
|
+
--color-success-hover: var(--color-success-hover);
|
|
65
|
+
--color-success-active: var(--color-success-active);
|
|
66
|
+
--color-on-success: var(--color-on-success);
|
|
67
|
+
--color-success-subtle: var(--color-success-subtle);
|
|
68
|
+
--color-success-subtle-hover: var(--color-success-subtle-hover);
|
|
69
|
+
--color-success-subtle-text: var(--color-success-subtle-text);
|
|
70
|
+
--color-success-border: var(--color-success-border);
|
|
71
|
+
--color-warning: var(--color-warning);
|
|
72
|
+
--color-warning-hover: var(--color-warning-hover);
|
|
73
|
+
--color-warning-active: var(--color-warning-active);
|
|
74
|
+
--color-on-warning: var(--color-on-warning);
|
|
75
|
+
--color-warning-subtle: var(--color-warning-subtle);
|
|
76
|
+
--color-warning-subtle-hover: var(--color-warning-subtle-hover);
|
|
77
|
+
--color-warning-subtle-text: var(--color-warning-subtle-text);
|
|
78
|
+
--color-warning-border: var(--color-warning-border);
|
|
79
|
+
--color-danger: var(--color-danger);
|
|
80
|
+
--color-danger-hover: var(--color-danger-hover);
|
|
81
|
+
--color-danger-active: var(--color-danger-active);
|
|
82
|
+
--color-on-danger: var(--color-on-danger);
|
|
83
|
+
--color-danger-subtle: var(--color-danger-subtle);
|
|
84
|
+
--color-danger-subtle-hover: var(--color-danger-subtle-hover);
|
|
85
|
+
--color-danger-subtle-text: var(--color-danger-subtle-text);
|
|
86
|
+
--color-danger-border: var(--color-danger-border);
|
|
87
|
+
--color-info: var(--color-info);
|
|
88
|
+
--color-info-hover: var(--color-info-hover);
|
|
89
|
+
--color-info-active: var(--color-info-active);
|
|
90
|
+
--color-on-info: var(--color-on-info);
|
|
91
|
+
--color-info-subtle: var(--color-info-subtle);
|
|
92
|
+
--color-info-subtle-hover: var(--color-info-subtle-hover);
|
|
93
|
+
--color-info-subtle-text: var(--color-info-subtle-text);
|
|
94
|
+
--color-info-border: var(--color-info-border);
|
|
95
|
+
--color-neutral: var(--color-neutral);
|
|
96
|
+
--color-neutral-hover: var(--color-neutral-hover);
|
|
97
|
+
--color-neutral-active: var(--color-neutral-active);
|
|
98
|
+
--color-on-neutral: var(--color-on-neutral);
|
|
99
|
+
--color-neutral-subtle: var(--color-neutral-subtle);
|
|
100
|
+
--color-neutral-subtle-hover: var(--color-neutral-subtle-hover);
|
|
101
|
+
--color-neutral-subtle-text: var(--color-neutral-subtle-text);
|
|
102
|
+
--color-neutral-border: var(--color-neutral-border);
|
|
103
|
+
|
|
104
|
+
/* ---- Chart series, for fills only (text never takes a series color).
|
|
105
|
+
Fixed order; 3 to 5 are under 3:1 on white, so pair them with a legend,
|
|
106
|
+
labels, or a data table. ---- */
|
|
107
|
+
--color-chart-1: var(--chart-1);
|
|
108
|
+
--color-chart-2: var(--chart-2);
|
|
109
|
+
--color-chart-3: var(--chart-3);
|
|
110
|
+
--color-chart-4: var(--chart-4);
|
|
111
|
+
--color-chart-5: var(--chart-5);
|
|
112
|
+
--color-chart-6: var(--chart-6);
|
|
113
|
+
--color-chart-7: var(--chart-7);
|
|
114
|
+
--color-chart-8: var(--chart-8);
|
|
115
|
+
|
|
116
|
+
/* ---- Type: font-display, font-body, text-md, leading-tight ---- */
|
|
117
|
+
--font-display: var(--font-display);
|
|
118
|
+
--font-body: var(--font-body);
|
|
119
|
+
--font-sans: var(--font-body);
|
|
120
|
+
--font-mono: var(--font-mono);
|
|
121
|
+
--text-xs: var(--font-size-xs);
|
|
122
|
+
--text-sm: var(--font-size-sm);
|
|
123
|
+
--text-md: var(--font-size-md);
|
|
124
|
+
--text-md--line-height: var(--line-height-normal);
|
|
125
|
+
--text-base: var(--font-size-md);
|
|
126
|
+
--text-lg: var(--font-size-lg);
|
|
127
|
+
--text-xl: var(--font-size-xl);
|
|
128
|
+
--text-2xl: var(--font-size-2xl);
|
|
129
|
+
--text-3xl: var(--font-size-3xl);
|
|
130
|
+
--text-4xl: var(--font-size-4xl);
|
|
131
|
+
--text-5xl: var(--font-size-5xl);
|
|
132
|
+
--text-6xl: var(--font-size-6xl);
|
|
133
|
+
--font-weight-regular: var(--font-weight-regular);
|
|
134
|
+
--font-weight-medium: var(--font-weight-medium);
|
|
135
|
+
--font-weight-semibold: var(--font-weight-semibold);
|
|
136
|
+
--font-weight-bold: var(--font-weight-bold);
|
|
137
|
+
--font-weight-black: var(--font-weight-black);
|
|
138
|
+
--leading-tight: var(--line-height-tight);
|
|
139
|
+
--leading-snug: var(--line-height-snug);
|
|
140
|
+
--leading-normal: var(--line-height-normal);
|
|
141
|
+
--leading-relaxed: var(--line-height-relaxed);
|
|
142
|
+
--tracking-tight: var(--letter-spacing-tight);
|
|
143
|
+
--tracking-normal: var(--letter-spacing-normal);
|
|
144
|
+
--tracking-wide: var(--letter-spacing-wide);
|
|
145
|
+
--tracking-caps: var(--letter-spacing-caps);
|
|
146
|
+
|
|
147
|
+
/* ---- Shape: rounded-control (pill controls), rounded-field (text fields),
|
|
148
|
+
rounded-lg to rounded-xl for cards and surfaces ---- */
|
|
149
|
+
--radius-xs: var(--radius-xs);
|
|
150
|
+
--radius-sm: var(--radius-sm);
|
|
151
|
+
--radius-md: var(--radius-md);
|
|
152
|
+
--radius-lg: var(--radius-lg);
|
|
153
|
+
--radius-xl: var(--radius-xl);
|
|
154
|
+
--radius-2xl: var(--radius-2xl);
|
|
155
|
+
--radius-pill: var(--radius-pill);
|
|
156
|
+
--radius-control: var(--control-radius);
|
|
157
|
+
--radius-field: var(--field-radius);
|
|
158
|
+
|
|
159
|
+
/* ---- Depth: soft shadows only ---- */
|
|
160
|
+
--shadow-xs: var(--shadow-xs);
|
|
161
|
+
--shadow-sm: var(--shadow-sm);
|
|
162
|
+
--shadow-md: var(--shadow-md);
|
|
163
|
+
--shadow-lg: var(--shadow-lg);
|
|
164
|
+
--shadow-xl: var(--shadow-xl);
|
|
165
|
+
--blur-sm: var(--blur-sm);
|
|
166
|
+
--blur-lg: var(--blur-lg);
|
|
167
|
+
|
|
168
|
+
/* ---- Motion: ease-spring for enter and press, ease-standard otherwise ---- */
|
|
169
|
+
--ease-standard: var(--ease-standard);
|
|
170
|
+
--ease-spring: var(--ease-spring);
|
|
171
|
+
--ease-in: var(--ease-in);
|
|
172
|
+
--ease-out: var(--ease-out);
|
|
173
|
+
|
|
174
|
+
/* ---- Sizes: h-control-md, size-target (the 24px minimum pointer target).
|
|
175
|
+
Tailwind's numeric spacing (p-4 = 1rem) already matches the 4px token scale. ---- */
|
|
176
|
+
--spacing-control-sm: var(--control-height-sm);
|
|
177
|
+
--spacing-control-md: var(--control-height-md);
|
|
178
|
+
--spacing-control-lg: var(--control-height-lg);
|
|
179
|
+
--spacing-target: var(--target-size-min);
|
|
180
|
+
|
|
181
|
+
/* ---- Containers: max-w-md and the @md: container queries. Literal values,
|
|
182
|
+
because CSS can't use var() in a container query; they must equal the
|
|
183
|
+
--container-* tokens (the check script compares them). ---- */
|
|
184
|
+
--container-xs: 30rem;
|
|
185
|
+
--container-sm: 40rem;
|
|
186
|
+
--container-md: 48rem;
|
|
187
|
+
--container-lg: 64rem;
|
|
188
|
+
--container-xl: 80rem;
|
|
189
|
+
--container-2xl: 96rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Tailwind's preflight reads these for the page and code fonts. They aren't
|
|
193
|
+
token names, so emitting them is safe. */
|
|
194
|
+
@theme {
|
|
195
|
+
--default-font-family: var(--font-body);
|
|
196
|
+
--default-mono-font-family: var(--font-mono);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* dark: follows data-theme (set by Theme or on <html>), not the OS setting.
|
|
200
|
+
Prefer the semantic colors above, which switch by themselves (and handle a
|
|
201
|
+
light Theme nested in a dark one); use dark: only for one-off exceptions. */
|
|
202
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
203
|
+
|
|
204
|
+
/* Durations and layers have no Tailwind theme namespace, so they get named
|
|
205
|
+
utilities. Durations drop to 0ms under prefers-reduced-motion, like the tokens. */
|
|
206
|
+
@utility duration-instant {
|
|
207
|
+
--tw-duration: var(--duration-instant);
|
|
208
|
+
transition-duration: var(--duration-instant);
|
|
209
|
+
}
|
|
210
|
+
@utility duration-fast {
|
|
211
|
+
--tw-duration: var(--duration-fast);
|
|
212
|
+
transition-duration: var(--duration-fast);
|
|
213
|
+
}
|
|
214
|
+
@utility duration-normal {
|
|
215
|
+
--tw-duration: var(--duration-normal);
|
|
216
|
+
transition-duration: var(--duration-normal);
|
|
217
|
+
}
|
|
218
|
+
@utility duration-slow {
|
|
219
|
+
--tw-duration: var(--duration-slow);
|
|
220
|
+
transition-duration: var(--duration-slow);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@utility z-sticky {
|
|
224
|
+
z-index: var(--z-sticky);
|
|
225
|
+
}
|
|
226
|
+
@utility z-overlay {
|
|
227
|
+
z-index: var(--z-overlay);
|
|
228
|
+
}
|
|
229
|
+
@utility z-modal {
|
|
230
|
+
z-index: var(--z-modal);
|
|
231
|
+
}
|
|
232
|
+
@utility z-popover {
|
|
233
|
+
z-index: var(--z-popover);
|
|
234
|
+
}
|
|
235
|
+
@utility z-dropdown {
|
|
236
|
+
z-index: var(--z-dropdown);
|
|
237
|
+
}
|
|
238
|
+
@utility z-toast {
|
|
239
|
+
z-index: var(--z-toast);
|
|
240
|
+
}
|
|
241
|
+
@utility z-tooltip {
|
|
242
|
+
z-index: var(--z-tooltip);
|
|
243
|
+
}
|