@almadar/ui 2.12.0 → 2.12.2
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/package.json +23 -13
- package/themes/index.css +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -8,44 +8,54 @@
|
|
|
8
8
|
"types": "./dist/components/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"types": "./dist/components/index.d.ts",
|
|
11
12
|
"import": "./dist/components/index.js",
|
|
12
|
-
"
|
|
13
|
+
"require": "./dist/components/index.js"
|
|
13
14
|
},
|
|
14
15
|
"./components": {
|
|
16
|
+
"types": "./dist/components/index.d.ts",
|
|
15
17
|
"import": "./dist/components/index.js",
|
|
16
|
-
"
|
|
18
|
+
"require": "./dist/components/index.js"
|
|
17
19
|
},
|
|
18
20
|
"./hooks": {
|
|
21
|
+
"types": "./dist/hooks/index.d.ts",
|
|
19
22
|
"import": "./dist/hooks/index.js",
|
|
20
|
-
"
|
|
23
|
+
"require": "./dist/hooks/index.js"
|
|
21
24
|
},
|
|
22
25
|
"./providers": {
|
|
26
|
+
"types": "./dist/providers/index.d.ts",
|
|
23
27
|
"import": "./dist/providers/index.js",
|
|
24
|
-
"
|
|
28
|
+
"require": "./dist/providers/index.js"
|
|
25
29
|
},
|
|
26
30
|
"./context": {
|
|
31
|
+
"types": "./dist/context/index.d.ts",
|
|
27
32
|
"import": "./dist/context/index.js",
|
|
28
|
-
"
|
|
33
|
+
"require": "./dist/context/index.js"
|
|
29
34
|
},
|
|
30
35
|
"./renderer": {
|
|
36
|
+
"types": "./dist/renderer/index.d.ts",
|
|
31
37
|
"import": "./dist/renderer/index.js",
|
|
32
|
-
"
|
|
38
|
+
"require": "./dist/renderer/index.js"
|
|
33
39
|
},
|
|
34
40
|
"./runtime": {
|
|
41
|
+
"types": "./dist/runtime/index.d.ts",
|
|
35
42
|
"import": "./dist/runtime/index.js",
|
|
36
|
-
"
|
|
43
|
+
"require": "./dist/runtime/index.js"
|
|
37
44
|
},
|
|
38
45
|
"./stores": {
|
|
46
|
+
"types": "./dist/stores/index.d.ts",
|
|
39
47
|
"import": "./dist/stores/index.js",
|
|
40
|
-
"
|
|
48
|
+
"require": "./dist/stores/index.js"
|
|
41
49
|
},
|
|
42
50
|
"./lib": {
|
|
51
|
+
"types": "./dist/lib/index.d.ts",
|
|
43
52
|
"import": "./dist/lib/index.js",
|
|
44
|
-
"
|
|
53
|
+
"require": "./dist/lib/index.js"
|
|
45
54
|
},
|
|
46
55
|
"./components/organisms/game/three": {
|
|
56
|
+
"types": "./dist/components/organisms/game/three/index.d.ts",
|
|
47
57
|
"import": "./dist/components/organisms/game/three/index.js",
|
|
48
|
-
"
|
|
58
|
+
"require": "./dist/components/organisms/game/three/index.js"
|
|
49
59
|
},
|
|
50
60
|
"./components/organisms/game/TraitStateViewer": {
|
|
51
61
|
"import": "./components/organisms/game/TraitStateViewer.tsx",
|
|
@@ -61,8 +71,9 @@
|
|
|
61
71
|
},
|
|
62
72
|
"./themes/*.css": "./themes/*.css",
|
|
63
73
|
"./locales": {
|
|
74
|
+
"types": "./dist/locales/index.d.ts",
|
|
64
75
|
"import": "./dist/locales/index.js",
|
|
65
|
-
"
|
|
76
|
+
"require": "./dist/locales/index.js"
|
|
66
77
|
},
|
|
67
78
|
"./index.css": "./index.css"
|
|
68
79
|
},
|
|
@@ -93,7 +104,6 @@
|
|
|
93
104
|
"@react-three/drei": "^9.92.0 || ^10.0.0",
|
|
94
105
|
"@react-three/fiber": "^8.15.0",
|
|
95
106
|
"@tanstack/react-query": "^5.0.0",
|
|
96
|
-
"@docusaurus/theme-common": "*",
|
|
97
107
|
"react": ">=18.0.0",
|
|
98
108
|
"react-dom": ">=18.0.0",
|
|
99
109
|
"react-router-dom": "^7.0.0",
|
package/themes/index.css
CHANGED
|
@@ -6,6 +6,35 @@
|
|
|
6
6
|
* [data-theme="themename-dark"] { ... }
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* Minimal element reset for @almadar/ui components.
|
|
11
|
+
*
|
|
12
|
+
* Host apps that skip @tailwind base (e.g. Docusaurus, apps/builder) keep
|
|
13
|
+
* browser-default borders/backgrounds on raw HTML elements. This scoped
|
|
14
|
+
* reset normalizes them inside themed containers and the portal root.
|
|
15
|
+
*/
|
|
16
|
+
[data-theme] button,
|
|
17
|
+
#ui-slot-portal-root button {
|
|
18
|
+
border: 0;
|
|
19
|
+
background: transparent;
|
|
20
|
+
padding: 0;
|
|
21
|
+
font: inherit;
|
|
22
|
+
color: inherit;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
[data-theme] *,
|
|
27
|
+
[data-theme] *::before,
|
|
28
|
+
[data-theme] *::after,
|
|
29
|
+
#ui-slot-portal-root *,
|
|
30
|
+
#ui-slot-portal-root *::before,
|
|
31
|
+
#ui-slot-portal-root *::after {
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
border-width: 0;
|
|
34
|
+
border-style: solid;
|
|
35
|
+
border-color: var(--color-border, #e5e7eb);
|
|
36
|
+
}
|
|
37
|
+
|
|
9
38
|
/* Core themes */
|
|
10
39
|
@import "./wireframe.css";
|
|
11
40
|
@import "./minimalist.css";
|