@xsolla/xui-icon-wrapper 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 +26 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @xsolla/xui-icon-wrapper
|
|
2
|
+
|
|
3
|
+
Universal container for consistently sizing and shaping small visual elements such as icons, labels, and avatars.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
yarn add @xsolla/xui-icon-wrapper
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { IconWrapper } from '@xsolla/xui-icon-wrapper';
|
|
15
|
+
|
|
16
|
+
const MyComponent = () => (
|
|
17
|
+
<IconWrapper size="md" shape="smooth">
|
|
18
|
+
<MyIcon />
|
|
19
|
+
</IconWrapper>
|
|
20
|
+
);
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Exports
|
|
24
|
+
|
|
25
|
+
- `IconWrapper` — Centred container component; `size` (`"xxs"` – `"xl"`), `shape` (`"none"` | `"full"` | `"smooth"`), `type` (`"icon"` | `"label"` | `"image"` | `"avatar"` | `"brand"` | `"custom"`), `backgroundColor`, `borderColor`
|
|
26
|
+
- `IconWrapperProps` — TypeScript props interface for `IconWrapper`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsolla/xui-icon-wrapper",
|
|
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,9 +10,9 @@
|
|
|
10
10
|
"build:native": "PLATFORM=native tsup"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xsolla/xui-core": "0.
|
|
14
|
-
"@xsolla/xui-icons": "0.
|
|
15
|
-
"@xsolla/xui-primitives-core": "0.
|
|
13
|
+
"@xsolla/xui-core": "0.97.0",
|
|
14
|
+
"@xsolla/xui-icons": "0.97.0",
|
|
15
|
+
"@xsolla/xui-primitives-core": "0.97.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"react": ">=16.8.0",
|