@xsolla/xui-cell 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.
- package/README.md +44 -0
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# @xsolla/xui-cell
|
|
2
|
+
|
|
3
|
+
A composable row layout component with leading/trailing slots and a flexible content area.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @xsolla/xui-cell
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Cell } from "@xsolla/xui-cell";
|
|
15
|
+
|
|
16
|
+
<Cell withBoard>
|
|
17
|
+
<Cell.Slot>
|
|
18
|
+
<Avatar size="md" />
|
|
19
|
+
</Cell.Slot>
|
|
20
|
+
<Cell.Content>
|
|
21
|
+
<Typography variant="bodyMdAccent">John Doe</Typography>
|
|
22
|
+
<Typography variant="bodySm" color="secondary">john@example.com</Typography>
|
|
23
|
+
</Cell.Content>
|
|
24
|
+
<Cell.Slot>
|
|
25
|
+
<ChevronRight size={20} />
|
|
26
|
+
</Cell.Slot>
|
|
27
|
+
</Cell>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Components
|
|
31
|
+
|
|
32
|
+
| Component | Description |
|
|
33
|
+
|-----------|-------------|
|
|
34
|
+
| `Cell` | Root row container |
|
|
35
|
+
| `Cell.Slot` | Non-growing slot for icons or small elements at either end |
|
|
36
|
+
| `Cell.Content` | Flex-grow content area, typically used for text |
|
|
37
|
+
|
|
38
|
+
## Props
|
|
39
|
+
|
|
40
|
+
### Cell
|
|
41
|
+
|
|
42
|
+
| Prop | Type | Default | Description |
|
|
43
|
+
|------|------|---------|-------------|
|
|
44
|
+
| `withBoard` | `boolean` | `false` | Applies a bordered, rounded container style consistent with list-board patterns |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-cell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.97.0",
|
|
4
4
|
"main": "./web/index.js",
|
|
5
5
|
"module": "./web/index.mjs",
|
|
6
6
|
"types": "./web/index.d.ts",
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-avatar": "0.
|
|
14
|
-
"@xsolla/xui-button": "0.
|
|
15
|
-
"@xsolla/xui-core": "0.
|
|
16
|
-
"@xsolla/xui-primitives-core": "0.
|
|
13
|
+
"@xsolla/xui-avatar": "0.97.0",
|
|
14
|
+
"@xsolla/xui-button": "0.97.0",
|
|
15
|
+
"@xsolla/xui-core": "0.97.0",
|
|
16
|
+
"@xsolla/xui-primitives-core": "0.97.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": ">=16.8.0",
|