lldlab-ui 0.1.0 → 0.2.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 +657 -51
- package/dist/index.d.ts +757 -66
- package/dist/index.js +1813 -315
- package/dist/index.js.map +1 -1
- package/dist/theme.css +85 -0
- package/package.json +30 -12
package/dist/theme.css
CHANGED
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
--color-ink-hover: #1E293B;
|
|
79
79
|
--color-on-ink: #FFFFFF;
|
|
80
80
|
--color-fg-brand: #1D4ED8;
|
|
81
|
+
--color-fg-brand-hover: #1E40AF;
|
|
81
82
|
--color-fg-success: #047857;
|
|
82
83
|
--color-fg-warning: #B45309;
|
|
83
84
|
--color-fg-danger: #B91C1C;
|
|
@@ -208,6 +209,7 @@
|
|
|
208
209
|
--color-ink-hover: #E2E8F0;
|
|
209
210
|
--color-on-ink: #0F172A;
|
|
210
211
|
--color-fg-brand: #60A5FA;
|
|
212
|
+
--color-fg-brand-hover: #93C5FD;
|
|
211
213
|
--color-fg-success: #34D399;
|
|
212
214
|
--color-fg-warning: #FBBF24;
|
|
213
215
|
--color-fg-danger: #F87171;
|
|
@@ -245,6 +247,7 @@
|
|
|
245
247
|
--color-ink-hover: #1E293B;
|
|
246
248
|
--color-on-ink: #FFFFFF;
|
|
247
249
|
--color-fg-brand: #1D4ED8;
|
|
250
|
+
--color-fg-brand-hover: #1E40AF;
|
|
248
251
|
--color-fg-success: #047857;
|
|
249
252
|
--color-fg-warning: #B45309;
|
|
250
253
|
--color-fg-danger: #B91C1C;
|
|
@@ -257,3 +260,85 @@
|
|
|
257
260
|
--color-badge-advanced-bg: #FEF2F2;
|
|
258
261
|
--color-badge-advanced-text: #B91C1C;
|
|
259
262
|
}
|
|
263
|
+
|
|
264
|
+
/* ---- Addendum 1: code, diff, skeleton, app bar ---- */
|
|
265
|
+
|
|
266
|
+
@theme {
|
|
267
|
+
/* Code on the dark code surface (brand-obsidian); AA on #0F172A. */
|
|
268
|
+
--color-code-keyword: #F87171;
|
|
269
|
+
--color-code-string: #34D399;
|
|
270
|
+
--color-code-number: #FBBF24;
|
|
271
|
+
--color-code-comment: #94A3B8;
|
|
272
|
+
--color-code-function: #60A5FA;
|
|
273
|
+
--color-code-type: #C4B5FD;
|
|
274
|
+
--color-code-punctuation: #CBD5E1;
|
|
275
|
+
--color-code-plain: #F1F5F9;
|
|
276
|
+
--color-code-bg-subtle: #F8FAFC;
|
|
277
|
+
/* Diff lines on the dark code surface. */
|
|
278
|
+
--color-diff-add-bg: color-mix(in srgb, #10B981 18%, transparent);
|
|
279
|
+
--color-diff-add-fg: #6EE7B7;
|
|
280
|
+
--color-diff-del-bg: color-mix(in srgb, #EF4444 18%, transparent);
|
|
281
|
+
--color-diff-del-fg: #FCA5A5;
|
|
282
|
+
/* Height of a md AppBar; Split stickyOffset="appbar" clears it. */
|
|
283
|
+
--spacing-appbar: 4rem;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Subtle code surface (CodeBlock tone="subtle"): the palette comes from per-scope variables,
|
|
287
|
+
so the nearest [data-theme] wins even when light and dark scopes are nested. */
|
|
288
|
+
:root,
|
|
289
|
+
[data-theme="light"] {
|
|
290
|
+
--code-subtle-keyword: #B91C1C;
|
|
291
|
+
--code-subtle-string: #047857;
|
|
292
|
+
--code-subtle-number: #B45309;
|
|
293
|
+
--code-subtle-comment: #475569;
|
|
294
|
+
--code-subtle-function: #1D4ED8;
|
|
295
|
+
--code-subtle-type: #6D28D9;
|
|
296
|
+
--code-subtle-punctuation: #334155;
|
|
297
|
+
--code-subtle-plain: #0F172A;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
[data-theme="dark"] {
|
|
301
|
+
--code-subtle-keyword: #F87171;
|
|
302
|
+
--code-subtle-string: #34D399;
|
|
303
|
+
--code-subtle-number: #FBBF24;
|
|
304
|
+
--code-subtle-comment: #94A3B8;
|
|
305
|
+
--code-subtle-function: #60A5FA;
|
|
306
|
+
--code-subtle-type: #C4B5FD;
|
|
307
|
+
--code-subtle-punctuation: #CBD5E1;
|
|
308
|
+
--code-subtle-plain: #F1F5F9;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@utility code-subtle {
|
|
312
|
+
--color-code-keyword: var(--code-subtle-keyword);
|
|
313
|
+
--color-code-string: var(--code-subtle-string);
|
|
314
|
+
--color-code-number: var(--code-subtle-number);
|
|
315
|
+
--color-code-comment: var(--code-subtle-comment);
|
|
316
|
+
--color-code-function: var(--code-subtle-function);
|
|
317
|
+
--color-code-type: var(--code-subtle-type);
|
|
318
|
+
--color-code-punctuation: var(--code-subtle-punctuation);
|
|
319
|
+
--color-code-plain: var(--code-subtle-plain);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
[data-theme="dark"] {
|
|
323
|
+
--color-code-bg-subtle: #0F172A;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
[data-theme="light"] {
|
|
327
|
+
--color-code-bg-subtle: #F8FAFC;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@keyframes skeleton-shimmer {
|
|
331
|
+
0% { background-position: 100% 50%; }
|
|
332
|
+
100% { background-position: 0 50%; }
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@utility skeleton-shimmer {
|
|
336
|
+
background-image: linear-gradient(90deg, var(--color-surface-muted) 25%, var(--color-surface-container) 37%, var(--color-surface-muted) 63%);
|
|
337
|
+
background-size: 400% 100%;
|
|
338
|
+
animation: skeleton-shimmer 1.4s ease infinite;
|
|
339
|
+
@media (prefers-reduced-motion: reduce) {
|
|
340
|
+
animation: none;
|
|
341
|
+
background-image: none;
|
|
342
|
+
background-color: var(--color-surface-muted);
|
|
343
|
+
}
|
|
344
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lldlab-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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
|
}
|