@xsolla/xui-core 0.120.0 → 0.121.0-pr199.1774835245
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 +4 -8
- package/index.d.mts +249 -3075
- package/index.d.ts +249 -3075
- package/index.js +18 -728
- package/index.js.map +1 -1
- package/index.mjs +18 -728
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import { XUIProvider, useDesignSystem } from '@xsolla/xui-core';
|
|
|
15
15
|
|
|
16
16
|
function App() {
|
|
17
17
|
return (
|
|
18
|
-
<XUIProvider initialMode="dark">
|
|
18
|
+
<XUIProvider initialMode="pentagram-dark">
|
|
19
19
|
<MyApp />
|
|
20
20
|
</XUIProvider>
|
|
21
21
|
);
|
|
@@ -31,14 +31,10 @@ function MyComponent() {
|
|
|
31
31
|
|
|
32
32
|
| Mode | Theme |
|
|
33
33
|
|------|-------|
|
|
34
|
-
| `"
|
|
35
|
-
| `"
|
|
36
|
-
| `"xsollaLight"` | Xsolla Light |
|
|
37
|
-
| `"xsollaDark"` | Xsolla Dark |
|
|
34
|
+
| `"pentagram-dark"` | Pentagram Dark (default) |
|
|
35
|
+
| `"pentagram-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: `"pentagram-dark"` | `"pentagram-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`)
|