@xsolla/xui-core 0.127.0 → 0.128.0-pr199.1775026707
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 +2 -6
- package/index.d.mts +190 -2318
- package/index.d.ts +190 -2318
- package/index.js +0 -722
- package/index.js.map +1 -1
- package/index.mjs +0 -722
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,14 +31,10 @@ function MyComponent() {
|
|
|
31
31
|
|
|
32
32
|
| Mode | Theme |
|
|
33
33
|
|------|-------|
|
|
34
|
-
| `"light"` | Pentagram Light (default) |
|
|
35
34
|
| `"dark"` | Pentagram Dark (default) |
|
|
36
|
-
| `"
|
|
37
|
-
| `"xsollaDark"` | Xsolla Dark |
|
|
35
|
+
| `"light"` | Pentagram Light |
|
|
38
36
|
| `"ltg-dark"` | LTG Dark |
|
|
39
37
|
|
|
40
|
-
Aliases: `"pentagram-light"`, `"pentagram-dark"`, `"xsolla-light"`, `"xsolla-dark"`
|
|
41
|
-
|
|
42
38
|
## Exports
|
|
43
39
|
|
|
44
40
|
- `XUIProvider` — Root context provider; accepts `initialMode` (see theme modes above)
|
|
@@ -47,7 +43,7 @@ Aliases: `"pentagram-light"`, `"pentagram-dark"`, `"xsolla-light"`, `"xsolla-dar
|
|
|
47
43
|
- `useId` — Stable unique ID hook; polyfills `React.useId` for React < 18
|
|
48
44
|
- `ModalIdContext` — Context holding the current modal's ID for portal-based components
|
|
49
45
|
- `useModalId` — Hook returning the current modal ID, or `null` if outside a modal
|
|
50
|
-
- `ThemeMode` — Type: `"dark"` | `"light"` | `"
|
|
46
|
+
- `ThemeMode` — Type: `"dark"` | `"light"` | `"ltg-dark"`
|
|
51
47
|
- `ThemeColors` — Type of the colour token object
|
|
52
48
|
- `colors` — Raw colour tokens for all themes
|
|
53
49
|
- `spacing` — Spacing scale (`xs`, `s`, `m`, `l`, `xl`)
|