@l3mpire/ui 3.5.1 → 4.0.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/USAGE.md +92 -123
- package/dist/index.d.mts +240 -131
- package/dist/index.d.ts +240 -131
- package/dist/index.js +4906 -4239
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3672 -3011
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/styles/globals.css +44 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l3mpire/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org",
|
|
6
6
|
"access": "public"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18",
|
|
39
39
|
"react-dom": ">=18",
|
|
40
|
-
"@l3mpire/icons": "0.
|
|
40
|
+
"@l3mpire/icons": "0.7.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"class-variance-authority": "^0.7",
|
|
62
62
|
"clsx": "^2",
|
|
63
63
|
"tailwind-merge": "^3",
|
|
64
|
-
"@l3mpire/icons": "0.
|
|
65
|
-
"@l3mpire/tokens": "0.
|
|
64
|
+
"@l3mpire/icons": "0.7.0",
|
|
65
|
+
"@l3mpire/tokens": "0.17.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/react": "^19",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"tailwindcss": "^4",
|
|
73
73
|
"tsup": "^8",
|
|
74
74
|
"typescript": "^5",
|
|
75
|
-
"@l3mpire/icons": "0.
|
|
75
|
+
"@l3mpire/icons": "0.7.0"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"build": "cp ../../USAGE.md ./USAGE.md && tsup",
|
package/src/styles/globals.css
CHANGED
|
@@ -88,7 +88,17 @@ body {
|
|
|
88
88
|
--shadow-elevation-lg: 0 12px 32px -8px var(--shadow-8), 0 4px 8px -2px var(--shadow-4);
|
|
89
89
|
|
|
90
90
|
/* ── AI gradient ───────────────────────────────────────────────────────── */
|
|
91
|
+
/* Decorative orb/halo gradient (vivid, full-bleed) */
|
|
91
92
|
--background-image-ai-gradient: linear-gradient(125deg, var(--blue-500) 0%, var(--violet-500) 55%, var(--indigo-500) 100%);
|
|
93
|
+
/* Stateful AI surface gradients (token-driven). Two intensities:
|
|
94
|
+
subtle = translucent wash (ghost AI surfaces) → bg-ai-subtle / -hover / -pressed
|
|
95
|
+
strong = vivid solid gradient (solid AI fill, gradient text) → bg-ai-strong / -hover / -pressed */
|
|
96
|
+
--background-image-ai-subtle: var(--core-bg-specific-ai-light-default);
|
|
97
|
+
--background-image-ai-subtle-hover: var(--core-bg-specific-ai-light-hover);
|
|
98
|
+
--background-image-ai-subtle-pressed: var(--core-bg-specific-ai-light-pressed);
|
|
99
|
+
--background-image-ai-strong: var(--core-bg-specific-ai-dark-default);
|
|
100
|
+
--background-image-ai-strong-hover: var(--core-bg-specific-ai-dark-hover);
|
|
101
|
+
--background-image-ai-strong-pressed: var(--core-bg-specific-ai-dark-pressed);
|
|
92
102
|
|
|
93
103
|
/* ── Colors: Semantic (shadcn compatible) ───────────────────────────────── */
|
|
94
104
|
--color-background: var(--core-bg-main-primary);
|
|
@@ -423,6 +433,21 @@ body {
|
|
|
423
433
|
--color-info-message-description: var(--comp-info-message-description);
|
|
424
434
|
--color-info-message-close: var(--comp-info-message-close);
|
|
425
435
|
|
|
436
|
+
/* ── Colors: InlineField (Discreet family) ─────────────────────────────── */
|
|
437
|
+
--color-inline-field-value-text: var(--comp-inline-field-value-text);
|
|
438
|
+
--color-inline-field-value-muted: var(--comp-inline-field-value-muted);
|
|
439
|
+
--color-inline-field-pill-bg-hover: var(--comp-inline-field-pill-bg-hover);
|
|
440
|
+
--color-inline-field-pill-bg-outline: var(--comp-inline-field-pill-bg-outline);
|
|
441
|
+
--color-inline-field-pill-border-outline: var(--comp-inline-field-pill-border-outline);
|
|
442
|
+
--color-inline-field-affordance-icon: var(--comp-inline-field-affordance-icon);
|
|
443
|
+
--color-inline-field-affordance-spinner: var(--comp-inline-field-affordance-spinner);
|
|
444
|
+
--color-inline-field-affordance-saved: var(--comp-inline-field-affordance-saved);
|
|
445
|
+
--color-inline-field-accent-default: var(--comp-inline-field-accent-default);
|
|
446
|
+
--color-inline-field-accent-hover: var(--comp-inline-field-accent-hover);
|
|
447
|
+
--color-inline-field-link-text: var(--comp-inline-field-link-text);
|
|
448
|
+
--color-inline-field-error-text: var(--comp-inline-field-error-text);
|
|
449
|
+
--color-inline-field-error-border: var(--comp-inline-field-error-border);
|
|
450
|
+
|
|
426
451
|
/* ── Colors: InputLabel ────────────────────────────────────────────────── */
|
|
427
452
|
--color-input-label-text: var(--comp-input-label-text);
|
|
428
453
|
--color-input-label-optional: var(--comp-input-label-optional);
|
|
@@ -804,8 +829,8 @@ body {
|
|
|
804
829
|
/*
|
|
805
830
|
* ── AI utilities ─────────────────────────────────────────────────────────
|
|
806
831
|
*
|
|
807
|
-
* Animation primitives
|
|
808
|
-
*
|
|
832
|
+
* Animation primitives for the AI button intent, AICell, and any surface that
|
|
833
|
+
* wants the "AI is thinking" look. The shimmer-text and
|
|
809
834
|
* icon-spin classes are the load-bearing ones; the rest are decorative.
|
|
810
835
|
*
|
|
811
836
|
* FA Kit caveat — `fa-spin` applied directly to an <i> element gets
|
|
@@ -859,6 +884,23 @@ body {
|
|
|
859
884
|
animation: ai-pulse 1.6s ease-in-out infinite;
|
|
860
885
|
}
|
|
861
886
|
|
|
887
|
+
/* Gradient-clipped text/icons for AI outlined & ghost buttons. The host element
|
|
888
|
+
carries `data-ai-text` so the gradient follows the button's hover/pressed
|
|
889
|
+
state (icons are font glyphs, so background-clip:text works on them too). */
|
|
890
|
+
.ai-grad-text {
|
|
891
|
+
background-image: var(--core-bg-specific-ai-dark-default);
|
|
892
|
+
-webkit-background-clip: text;
|
|
893
|
+
background-clip: text;
|
|
894
|
+
-webkit-text-fill-color: transparent;
|
|
895
|
+
color: transparent;
|
|
896
|
+
}
|
|
897
|
+
[data-ai-text]:hover .ai-grad-text {
|
|
898
|
+
background-image: var(--core-bg-specific-ai-dark-hover);
|
|
899
|
+
}
|
|
900
|
+
[data-ai-text]:active .ai-grad-text {
|
|
901
|
+
background-image: var(--core-bg-specific-ai-dark-pressed);
|
|
902
|
+
}
|
|
903
|
+
|
|
862
904
|
.ai-orb {
|
|
863
905
|
position: relative;
|
|
864
906
|
width: 96px;
|