@l3mpire/ui 2.26.3 → 3.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 +76 -2
- package/dist/index.d.mts +62 -1
- package/dist/index.d.ts +62 -1
- package/dist/index.js +1307 -1127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1181 -1003
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -5
- package/src/styles/globals.css +37 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@l3mpire/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org",
|
|
6
6
|
"access": "public"
|
|
@@ -37,12 +37,14 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": ">=18",
|
|
39
39
|
"react-dom": ">=18",
|
|
40
|
-
"@l3mpire/icons": "0.
|
|
40
|
+
"@l3mpire/icons": "0.6.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@dnd-kit/core": "^6.3.1",
|
|
44
44
|
"@dnd-kit/sortable": "^10.0.0",
|
|
45
45
|
"@dnd-kit/utilities": "^3.2.2",
|
|
46
|
+
"@emoji-mart/data": "^1.2.1",
|
|
47
|
+
"@emoji-mart/react": "^1.1.1",
|
|
46
48
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
47
49
|
"@radix-ui/react-checkbox": "^1.3.3",
|
|
48
50
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
@@ -59,8 +61,8 @@
|
|
|
59
61
|
"class-variance-authority": "^0.7",
|
|
60
62
|
"clsx": "^2",
|
|
61
63
|
"tailwind-merge": "^3",
|
|
62
|
-
"@l3mpire/
|
|
63
|
-
"@l3mpire/
|
|
64
|
+
"@l3mpire/tokens": "0.12.0",
|
|
65
|
+
"@l3mpire/icons": "0.6.0"
|
|
64
66
|
},
|
|
65
67
|
"devDependencies": {
|
|
66
68
|
"@types/react": "^19",
|
|
@@ -70,7 +72,7 @@
|
|
|
70
72
|
"tailwindcss": "^4",
|
|
71
73
|
"tsup": "^8",
|
|
72
74
|
"typescript": "^5",
|
|
73
|
-
"@l3mpire/icons": "0.
|
|
75
|
+
"@l3mpire/icons": "0.6.0"
|
|
74
76
|
},
|
|
75
77
|
"scripts": {
|
|
76
78
|
"build": "cp ../../USAGE.md ./USAGE.md && tsup",
|
package/src/styles/globals.css
CHANGED
|
@@ -307,6 +307,15 @@ body {
|
|
|
307
307
|
--color-dropdown-heading-text: var(--comp-dropdown-heading-text);
|
|
308
308
|
--color-dropdown-clear-text: var(--comp-dropdown-clear-text);
|
|
309
309
|
|
|
310
|
+
/* ── Colors: EmojiPicker ──────────────────────────────────────────────── */
|
|
311
|
+
--color-emoji-picker-bg: var(--comp-emoji-picker-bg);
|
|
312
|
+
--color-emoji-picker-border: var(--comp-emoji-picker-border);
|
|
313
|
+
--color-emoji-picker-search-bg: var(--comp-emoji-picker-search-bg);
|
|
314
|
+
--color-emoji-picker-text: var(--comp-emoji-picker-text);
|
|
315
|
+
--color-emoji-picker-text-muted: var(--comp-emoji-picker-text-muted);
|
|
316
|
+
--color-emoji-picker-accent: var(--comp-emoji-picker-accent);
|
|
317
|
+
--color-emoji-picker-category-bg: var(--comp-emoji-picker-category-bg);
|
|
318
|
+
|
|
310
319
|
/* ── Colors: InfoMessage ───────────────────────────────────────────────── */
|
|
311
320
|
--color-info-message-info-bg: var(--comp-info-message-info-bg);
|
|
312
321
|
--color-info-message-info-icon: var(--comp-info-message-info-icon);
|
|
@@ -626,3 +635,31 @@ body {
|
|
|
626
635
|
from { transform: translateX(0); }
|
|
627
636
|
to { transform: translateX(100%); }
|
|
628
637
|
}
|
|
638
|
+
|
|
639
|
+
/*
|
|
640
|
+
* EmojiPicker theming
|
|
641
|
+
*
|
|
642
|
+
* Maps emoji-mart's documented CSS variables to lemDS color values so the
|
|
643
|
+
* picker matches the rest of the surface. emoji-mart renders into a custom
|
|
644
|
+
* `<em-emoji-picker>` element backed by shadow DOM; CSS custom properties
|
|
645
|
+
* inherit through that boundary, so we set the vars on the element itself.
|
|
646
|
+
*
|
|
647
|
+
* RGB triplets are required (emoji-mart consumes them via `rgba(var(--x), a)`).
|
|
648
|
+
* The two `--em-color-*` border vars can hold any color, so we reuse our
|
|
649
|
+
* border tokens directly and they pick up the dark-mode override automatically.
|
|
650
|
+
*/
|
|
651
|
+
.lemds-emoji-picker em-emoji-picker {
|
|
652
|
+
--em-rgb-color: 33, 56, 86;
|
|
653
|
+
--em-rgb-accent: 49, 107, 255;
|
|
654
|
+
--em-rgb-background: 255, 255, 255;
|
|
655
|
+
--em-rgb-input: 250, 250, 250;
|
|
656
|
+
--em-color-border: var(--core-border-main-primary);
|
|
657
|
+
--em-color-border-over: var(--core-border-main-secondary);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
[data-theme="dark"] .lemds-emoji-picker em-emoji-picker {
|
|
661
|
+
--em-rgb-color: 255, 255, 255;
|
|
662
|
+
--em-rgb-accent: 22, 70, 194;
|
|
663
|
+
--em-rgb-background: 12, 21, 33;
|
|
664
|
+
--em-rgb-input: 17, 30, 46;
|
|
665
|
+
}
|