lldlab-ui 0.1.0 → 0.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 +706 -51
- package/dist/index.d.ts +952 -89
- package/dist/index.js +2020 -345
- package/dist/index.js.map +1 -1
- package/dist/theme.css +102 -2
- package/package.json +30 -12
package/dist/theme.css
CHANGED
|
@@ -77,7 +77,8 @@
|
|
|
77
77
|
--color-ink: #0F172A;
|
|
78
78
|
--color-ink-hover: #1E293B;
|
|
79
79
|
--color-on-ink: #FFFFFF;
|
|
80
|
-
--color-fg-brand: #
|
|
80
|
+
--color-fg-brand: #2563EB;
|
|
81
|
+
--color-fg-brand-hover: #1D4ED8;
|
|
81
82
|
--color-fg-success: #047857;
|
|
82
83
|
--color-fg-warning: #B45309;
|
|
83
84
|
--color-fg-danger: #B91C1C;
|
|
@@ -102,8 +103,18 @@
|
|
|
102
103
|
--spacing-section-lg: clamp(3rem, 1.65rem + 5.4vw, 6rem);
|
|
103
104
|
--spacing-section-xl: clamp(4rem, 2.2rem + 7.2vw, 8rem);
|
|
104
105
|
|
|
106
|
+
/* Stitch radii: rounded 2px, lg 4px, xl 8px. */
|
|
107
|
+
--radius-sm: 0.125rem;
|
|
105
108
|
--radius-lg: 0.25rem;
|
|
106
109
|
--radius-xl: 0.5rem;
|
|
110
|
+
|
|
111
|
+
/* Stitch shadows (Tailwind v3 scale: lighter than v4's defaults). */
|
|
112
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
113
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
114
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
115
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
116
|
+
/* The app bar floats on a soft shadow instead of a hairline. */
|
|
117
|
+
--shadow-appbar: 0 1px 8px rgb(0 0 0 / 0.04);
|
|
107
118
|
}
|
|
108
119
|
|
|
109
120
|
@theme inline {
|
|
@@ -173,6 +184,11 @@
|
|
|
173
184
|
background-size: 16px 16px;
|
|
174
185
|
}
|
|
175
186
|
|
|
187
|
+
/* Hero dot field: cobalt dots at 40% on a 24px pitch. */
|
|
188
|
+
@utility bg-pattern-dots-brand {
|
|
189
|
+
background-image: radial-gradient(rgb(37 99 235 / 0.4) 1px, transparent 1px);
|
|
190
|
+
background-size: 24px 24px;
|
|
191
|
+
}
|
|
176
192
|
@utility bg-pattern-grid {
|
|
177
193
|
background-image:
|
|
178
194
|
linear-gradient(var(--color-border-subtle) 1px, transparent 1px),
|
|
@@ -208,6 +224,7 @@
|
|
|
208
224
|
--color-ink-hover: #E2E8F0;
|
|
209
225
|
--color-on-ink: #0F172A;
|
|
210
226
|
--color-fg-brand: #60A5FA;
|
|
227
|
+
--color-fg-brand-hover: #93C5FD;
|
|
211
228
|
--color-fg-success: #34D399;
|
|
212
229
|
--color-fg-warning: #FBBF24;
|
|
213
230
|
--color-fg-danger: #F87171;
|
|
@@ -244,7 +261,8 @@
|
|
|
244
261
|
--color-ink: #0F172A;
|
|
245
262
|
--color-ink-hover: #1E293B;
|
|
246
263
|
--color-on-ink: #FFFFFF;
|
|
247
|
-
--color-fg-brand: #
|
|
264
|
+
--color-fg-brand: #2563EB;
|
|
265
|
+
--color-fg-brand-hover: #1D4ED8;
|
|
248
266
|
--color-fg-success: #047857;
|
|
249
267
|
--color-fg-warning: #B45309;
|
|
250
268
|
--color-fg-danger: #B91C1C;
|
|
@@ -257,3 +275,85 @@
|
|
|
257
275
|
--color-badge-advanced-bg: #FEF2F2;
|
|
258
276
|
--color-badge-advanced-text: #B91C1C;
|
|
259
277
|
}
|
|
278
|
+
|
|
279
|
+
/* ---- Addendum 1: code, diff, skeleton, app bar ---- */
|
|
280
|
+
|
|
281
|
+
@theme {
|
|
282
|
+
/* Code on the dark code surface (brand-obsidian); AA on #0F172A. */
|
|
283
|
+
--color-code-keyword: #F87171;
|
|
284
|
+
--color-code-string: #34D399;
|
|
285
|
+
--color-code-number: #FBBF24;
|
|
286
|
+
--color-code-comment: #94A3B8;
|
|
287
|
+
--color-code-function: #60A5FA;
|
|
288
|
+
--color-code-type: #C4B5FD;
|
|
289
|
+
--color-code-punctuation: #CBD5E1;
|
|
290
|
+
--color-code-plain: #F1F5F9;
|
|
291
|
+
--color-code-bg-subtle: #F8FAFC;
|
|
292
|
+
/* Diff lines on the dark code surface. */
|
|
293
|
+
--color-diff-add-bg: color-mix(in srgb, #10B981 18%, transparent);
|
|
294
|
+
--color-diff-add-fg: #6EE7B7;
|
|
295
|
+
--color-diff-del-bg: color-mix(in srgb, #EF4444 18%, transparent);
|
|
296
|
+
--color-diff-del-fg: #FCA5A5;
|
|
297
|
+
/* Height of a md AppBar; Split stickyOffset="appbar" clears it. */
|
|
298
|
+
--spacing-appbar: 4rem;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* Subtle code surface (CodeBlock tone="subtle"): the palette comes from per-scope variables,
|
|
302
|
+
so the nearest [data-theme] wins even when light and dark scopes are nested. */
|
|
303
|
+
:root,
|
|
304
|
+
[data-theme="light"] {
|
|
305
|
+
--code-subtle-keyword: #B91C1C;
|
|
306
|
+
--code-subtle-string: #047857;
|
|
307
|
+
--code-subtle-number: #B45309;
|
|
308
|
+
--code-subtle-comment: #475569;
|
|
309
|
+
--code-subtle-function: #1D4ED8;
|
|
310
|
+
--code-subtle-type: #6D28D9;
|
|
311
|
+
--code-subtle-punctuation: #334155;
|
|
312
|
+
--code-subtle-plain: #0F172A;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
[data-theme="dark"] {
|
|
316
|
+
--code-subtle-keyword: #F87171;
|
|
317
|
+
--code-subtle-string: #34D399;
|
|
318
|
+
--code-subtle-number: #FBBF24;
|
|
319
|
+
--code-subtle-comment: #94A3B8;
|
|
320
|
+
--code-subtle-function: #60A5FA;
|
|
321
|
+
--code-subtle-type: #C4B5FD;
|
|
322
|
+
--code-subtle-punctuation: #CBD5E1;
|
|
323
|
+
--code-subtle-plain: #F1F5F9;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@utility code-subtle {
|
|
327
|
+
--color-code-keyword: var(--code-subtle-keyword);
|
|
328
|
+
--color-code-string: var(--code-subtle-string);
|
|
329
|
+
--color-code-number: var(--code-subtle-number);
|
|
330
|
+
--color-code-comment: var(--code-subtle-comment);
|
|
331
|
+
--color-code-function: var(--code-subtle-function);
|
|
332
|
+
--color-code-type: var(--code-subtle-type);
|
|
333
|
+
--color-code-punctuation: var(--code-subtle-punctuation);
|
|
334
|
+
--color-code-plain: var(--code-subtle-plain);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
[data-theme="dark"] {
|
|
338
|
+
--color-code-bg-subtle: #0F172A;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
[data-theme="light"] {
|
|
342
|
+
--color-code-bg-subtle: #F8FAFC;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@keyframes skeleton-shimmer {
|
|
346
|
+
0% { background-position: 100% 50%; }
|
|
347
|
+
100% { background-position: 0 50%; }
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility skeleton-shimmer {
|
|
351
|
+
background-image: linear-gradient(90deg, var(--color-surface-muted) 25%, var(--color-surface-container) 37%, var(--color-surface-muted) 63%);
|
|
352
|
+
background-size: 400% 100%;
|
|
353
|
+
animation: skeleton-shimmer 1.4s ease infinite;
|
|
354
|
+
@media (prefers-reduced-motion: reduce) {
|
|
355
|
+
animation: none;
|
|
356
|
+
background-image: none;
|
|
357
|
+
background-color: var(--color-surface-muted);
|
|
358
|
+
}
|
|
359
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lldlab-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "LLD Lab design-system components for React 19 and Tailwind CSS v4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"repository": {
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/UtkarshNigam1221/lldlab-ui.git"
|
|
10
|
+
},
|
|
8
11
|
"exports": {
|
|
9
|
-
".": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
10
16
|
"./theme.css": "./dist/theme.css"
|
|
11
17
|
},
|
|
12
|
-
"files": [
|
|
13
|
-
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"*.css"
|
|
23
|
+
],
|
|
14
24
|
"scripts": {
|
|
15
25
|
"build": "tsup",
|
|
16
26
|
"test": "vitest run",
|
|
@@ -20,13 +30,22 @@
|
|
|
20
30
|
"ladle:build": "ladle build",
|
|
21
31
|
"e2e": "playwright test",
|
|
22
32
|
"package-check": "bash scripts/package-check.sh",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
33
|
+
"prepublishOnly": "npm run build",
|
|
34
|
+
"size-check": "node scripts/size-check.mjs"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^19",
|
|
38
|
+
"react-dom": "^19"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@dagrejs/dagre": "^3.1.1",
|
|
42
|
+
"prism-react-renderer": "^2.4.1",
|
|
43
|
+
"react-markdown": "^10.1.0",
|
|
44
|
+
"remark-gfm": "^4.0.1"
|
|
24
45
|
},
|
|
25
|
-
"peerDependencies": { "react": "^19", "react-dom": "^19" },
|
|
26
|
-
"dependencies": { "react-markdown": "^10.1.0", "remark-gfm": "^4.0.1" },
|
|
27
46
|
"devDependencies": {
|
|
28
47
|
"@axe-core/playwright": "^4.13.0",
|
|
29
|
-
"@eslint/js": "^
|
|
48
|
+
"@eslint/js": "^9",
|
|
30
49
|
"@ladle/react": "^5.1.1",
|
|
31
50
|
"@playwright/test": "^1.63.0",
|
|
32
51
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -36,7 +55,7 @@
|
|
|
36
55
|
"@types/node": "^25",
|
|
37
56
|
"@types/react": "^19",
|
|
38
57
|
"@types/react-dom": "^19",
|
|
39
|
-
"eslint": "^
|
|
58
|
+
"eslint": "^9",
|
|
40
59
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
41
60
|
"jsdom": "^30.1.1",
|
|
42
61
|
"react": "19.2.3",
|
|
@@ -46,6 +65,5 @@
|
|
|
46
65
|
"typescript": "^5",
|
|
47
66
|
"typescript-eslint": "^8.71.0",
|
|
48
67
|
"vitest": "^5.0.2"
|
|
49
|
-
}
|
|
50
|
-
"overrides": { "react-inspector": { "react": "$react" } }
|
|
68
|
+
}
|
|
51
69
|
}
|