@xsolla/xui-core 0.101.0 → 0.103.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/README.md +15 -3
- package/index.d.mts +3412 -614
- package/index.d.ts +3412 -614
- package/index.js +1332 -444
- package/index.js.flow +3257 -406
- package/index.js.map +1 -1
- package/index.mjs +1332 -444
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,17 +27,29 @@ function MyComponent() {
|
|
|
27
27
|
}
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
## Available Theme Modes
|
|
31
|
+
|
|
32
|
+
| Mode | Theme |
|
|
33
|
+
|------|-------|
|
|
34
|
+
| `"light"` | Pentagram Light (default) |
|
|
35
|
+
| `"dark"` | Pentagram Dark (default) |
|
|
36
|
+
| `"xsollaLight"` | Xsolla Light |
|
|
37
|
+
| `"xsollaDark"` | Xsolla Dark |
|
|
38
|
+
| `"ltg-dark"` | LTG Dark |
|
|
39
|
+
|
|
40
|
+
Aliases: `"pentagram-light"`, `"pentagram-dark"`, `"xsolla-light"`, `"xsolla-dark"`
|
|
41
|
+
|
|
30
42
|
## Exports
|
|
31
43
|
|
|
32
|
-
- `XUIProvider` — Root context provider; accepts `initialMode` (
|
|
44
|
+
- `XUIProvider` — Root context provider; accepts `initialMode` (see theme modes above)
|
|
33
45
|
- `useDesignSystem` — Hook returning `{ theme, mode, setMode }`; falls back to dark theme if no provider
|
|
34
46
|
- `themeConfig` — Function returning the full theme object for a given `ThemeMode`
|
|
35
47
|
- `useId` — Stable unique ID hook; polyfills `React.useId` for React < 18
|
|
36
48
|
- `ModalIdContext` — Context holding the current modal's ID for portal-based components
|
|
37
49
|
- `useModalId` — Hook returning the current modal ID, or `null` if outside a modal
|
|
38
|
-
- `ThemeMode` — Type: `"dark"` | `"light"`
|
|
50
|
+
- `ThemeMode` — Type: `"dark"` | `"light"` | `"xsollaLight"` | `"xsollaDark"` | `"ltg-dark"` | aliases
|
|
39
51
|
- `ThemeColors` — Type of the colour token object
|
|
40
|
-
- `colors` — Raw colour tokens for
|
|
52
|
+
- `colors` — Raw colour tokens for all themes
|
|
41
53
|
- `spacing` — Spacing scale (`xs`, `s`, `m`, `l`, `xl`)
|
|
42
54
|
- `radius` — Border-radius tokens (button, card, input, tag, avatar variants)
|
|
43
55
|
- `shadow` — Shadow tokens
|