@l3mpire/ui 2.5.3 → 2.6.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 +65 -0
- package/dist/index.d.mts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +788 -221
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +792 -218
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/styles/globals.css +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l3mpire/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org",
|
|
6
6
|
"access": "public"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"clsx": "^2",
|
|
60
60
|
"tailwind-merge": "^3",
|
|
61
61
|
"@l3mpire/icons": "0.3.5",
|
|
62
|
-
"@l3mpire/tokens": "0.5.
|
|
62
|
+
"@l3mpire/tokens": "0.5.4"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/react": "^19",
|
package/src/styles/globals.css
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
@custom-variant dark (&:is([data-theme="dark"] *));
|
|
8
8
|
|
|
9
|
+
body {
|
|
10
|
+
font-variant-numeric: tabular-nums;
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
@theme inline {
|
|
10
14
|
/* ── Spacing ───────────────────────────────────────────────────────────── */
|
|
11
15
|
--spacing-none: 0;
|
|
@@ -441,6 +445,19 @@
|
|
|
441
445
|
--color-tooltip-default-bg: var(--comp-tooltip-default-bg);
|
|
442
446
|
--color-tooltip-default-text: var(--comp-tooltip-default-text);
|
|
443
447
|
--color-tooltip-default-icon: var(--comp-tooltip-default-icon);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/*
|
|
451
|
+
* Dark-mode override: tooltip default text must contrast with its inverted bg.
|
|
452
|
+
* In dark mode bg.mainInvert.primary = white, so text needs to be dark.
|
|
453
|
+
* core.text.mainInvert.primary can't be changed (shared by buttons/badges).
|
|
454
|
+
*/
|
|
455
|
+
[data-theme="dark"] {
|
|
456
|
+
--comp-tooltip-default-text: var(--grey-white);
|
|
457
|
+
--color-tooltip-default-text: var(--grey-white);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
@theme inline {
|
|
444
461
|
--color-tooltip-invert-bg: var(--comp-tooltip-invert-bg);
|
|
445
462
|
--color-tooltip-invert-text: var(--comp-tooltip-invert-text);
|
|
446
463
|
--color-tooltip-invert-icon: var(--comp-tooltip-invert-icon);
|