@xsolla/xui-layout 0.149.1 → 0.151.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 +21 -17
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,42 +1,46 @@
1
- # @xsolla/xui-layout
1
+ # Layout
2
2
 
3
- Convenience re-export of structural layout components: FieldGroup, List, and Modal.
3
+ Convenience meta-package that re-exports every structural layout component from the toolkit. Install one package instead of many; refer to each component's own page for detailed API and accessibility notes.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- yarn add @xsolla/xui-layout
8
+ npm install @xsolla/xui-layout
9
9
  ```
10
10
 
11
- ## Usage
11
+ ## Imports
12
+
13
+ ```ts
14
+ import { FieldGroup, List, Modal } from '@xsolla/xui-layout';
15
+ ```
16
+
17
+ ## Quick start
12
18
 
13
19
  ```tsx
14
20
  import { List, Modal, FieldGroup } from '@xsolla/xui-layout';
15
21
 
16
- function SettingsScreen() {
22
+ export default function Example() {
17
23
  const [open, setOpen] = React.useState(false);
18
-
19
24
  return (
20
25
  <>
21
26
  <List>
22
27
  <List.Title>Account</List.Title>
23
- <List.Row hoverable onClick={() => setOpen(true)}>
24
- Edit profile
25
- </List.Row>
28
+ <List.Row hoverable onClick={() => setOpen(true)}>Edit profile</List.Row>
26
29
  </List>
27
-
28
30
  <Modal open={open} onClose={() => setOpen(false)}>
29
- <FieldGroup label="Username">
30
- <TextInput />
31
- </FieldGroup>
31
+ <FieldGroup label="Username" />
32
32
  </Modal>
33
33
  </>
34
34
  );
35
35
  }
36
36
  ```
37
37
 
38
- ## Components
38
+ ## Re-exported packages
39
+
40
+ | Component(s) | Source package |
41
+ | :----------- | :------------- |
42
+ | FieldGroup | `@xsolla/xui-field-group` |
43
+ | List | `@xsolla/xui-list` |
44
+ | Modal | `@xsolla/xui-modal` |
39
45
 
40
- - **List** Structured list with interactive rows and section titles
41
- - **Modal** — Overlay dialog container
42
- - **FieldGroup** — Labelled field wrapper for form layouts
46
+ See each component's dedicated page for props, examples, and accessibility details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-layout",
3
- "version": "0.149.1",
3
+ "version": "0.151.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.149.1",
16
- "@xsolla/xui-list": "0.149.1",
17
- "@xsolla/xui-modal": "0.149.1"
15
+ "@xsolla/xui-field-group": "0.151.0",
16
+ "@xsolla/xui-list": "0.151.0",
17
+ "@xsolla/xui-modal": "0.151.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitest/coverage-v8": "^4.0.18",