@xsolla/xui-layout 0.95.0 → 0.97.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.
Files changed (2) hide show
  1. package/README.md +42 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @xsolla/xui-layout
2
+
3
+ Convenience re-export of structural layout components: FieldGroup, List, and Modal.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ yarn add @xsolla/xui-layout
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { List, Modal, FieldGroup } from '@xsolla/xui-layout';
15
+
16
+ function SettingsScreen() {
17
+ const [open, setOpen] = React.useState(false);
18
+
19
+ return (
20
+ <>
21
+ <List>
22
+ <List.Title>Account</List.Title>
23
+ <List.Row hoverable onClick={() => setOpen(true)}>
24
+ Edit profile
25
+ </List.Row>
26
+ </List>
27
+
28
+ <Modal open={open} onClose={() => setOpen(false)}>
29
+ <FieldGroup label="Username">
30
+ <TextInput />
31
+ </FieldGroup>
32
+ </Modal>
33
+ </>
34
+ );
35
+ }
36
+ ```
37
+
38
+ ## Components
39
+
40
+ - **List** — Structured list with interactive rows and section titles
41
+ - **Modal** — Overlay dialog container
42
+ - **FieldGroup** — Labelled field wrapper for form layouts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-layout",
3
- "version": "0.95.0",
3
+ "version": "0.97.0",
4
4
  "main": "./web/index.js",
5
5
  "types": "./web/index.d.ts",
6
6
  "scripts": {
@@ -12,9 +12,9 @@
12
12
  "styled-components": ">=4"
13
13
  },
14
14
  "dependencies": {
15
- "@xsolla/xui-field-group": "0.95.0",
16
- "@xsolla/xui-list": "0.95.0",
17
- "@xsolla/xui-modal": "0.95.0"
15
+ "@xsolla/xui-field-group": "0.97.0",
16
+ "@xsolla/xui-list": "0.97.0",
17
+ "@xsolla/xui-modal": "0.97.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^4.0.18",