@xsolla/xui-b2c 0.173.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 +41 -0
- package/native/index.d.mts +8 -0
- package/native/index.d.ts +8 -0
- package/native/index.js +39 -0
- package/native/index.js.map +1 -0
- package/native/index.mjs +10 -0
- package/native/index.mjs.map +1 -0
- package/package.json +55 -0
- package/web/index.d.mts +8 -0
- package/web/index.d.ts +8 -0
- package/web/index.js +39 -0
- package/web/index.js.map +1 -0
- package/web/index.mjs +10 -0
- package/web/index.mjs.map +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# B2C
|
|
2
|
+
|
|
3
|
+
Convenience meta-package that re-exports every B2C component from the toolkit. Install one package instead of many; refer to each component's own page for detailed API and accessibility notes.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @xsolla/xui-b2c
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Imports
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { BottomBar, ShopCard, SideNavigation, Toast } from '@xsolla/xui-b2c';
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { ShopCard, ProgressIcon } from '@xsolla/xui-b2c';
|
|
21
|
+
|
|
22
|
+
export default function Example() {
|
|
23
|
+
return (
|
|
24
|
+
<>
|
|
25
|
+
<ShopCard title="Bundle" />
|
|
26
|
+
<ProgressIcon value={0.5} />
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Included components
|
|
33
|
+
|
|
34
|
+
- `@xsolla/xui-b2c-bottom-bar`
|
|
35
|
+
- `@xsolla/xui-b2c-image-thumbnail`
|
|
36
|
+
- `@xsolla/xui-b2c-progress-icon`
|
|
37
|
+
- `@xsolla/xui-b2c-quest-card`
|
|
38
|
+
- `@xsolla/xui-b2c-shop-card`
|
|
39
|
+
- `@xsolla/xui-b2c-side-navigation`
|
|
40
|
+
- `@xsolla/xui-b2c-toast`
|
|
41
|
+
- `@xsolla/xui-b2c-transaction-cell`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@xsolla/xui-b2c-bottom-bar';
|
|
2
|
+
export * from '@xsolla/xui-b2c-image-thumbnail';
|
|
3
|
+
export * from '@xsolla/xui-b2c-progress-icon';
|
|
4
|
+
export * from '@xsolla/xui-b2c-quest-card';
|
|
5
|
+
export * from '@xsolla/xui-b2c-shop-card';
|
|
6
|
+
export * from '@xsolla/xui-b2c-side-navigation';
|
|
7
|
+
export * from '@xsolla/xui-b2c-toast';
|
|
8
|
+
export * from '@xsolla/xui-b2c-transaction-cell';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@xsolla/xui-b2c-bottom-bar';
|
|
2
|
+
export * from '@xsolla/xui-b2c-image-thumbnail';
|
|
3
|
+
export * from '@xsolla/xui-b2c-progress-icon';
|
|
4
|
+
export * from '@xsolla/xui-b2c-quest-card';
|
|
5
|
+
export * from '@xsolla/xui-b2c-shop-card';
|
|
6
|
+
export * from '@xsolla/xui-b2c-side-navigation';
|
|
7
|
+
export * from '@xsolla/xui-b2c-toast';
|
|
8
|
+
export * from '@xsolla/xui-b2c-transaction-cell';
|
package/native/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/index.tsx
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-bottom-bar"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-image-thumbnail"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-progress-icon"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-quest-card"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-shop-card"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-side-navigation"), module.exports);
|
|
26
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-toast"), module.exports);
|
|
27
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-transaction-cell"), module.exports);
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
...require("@xsolla/xui-b2c-bottom-bar"),
|
|
31
|
+
...require("@xsolla/xui-b2c-image-thumbnail"),
|
|
32
|
+
...require("@xsolla/xui-b2c-progress-icon"),
|
|
33
|
+
...require("@xsolla/xui-b2c-quest-card"),
|
|
34
|
+
...require("@xsolla/xui-b2c-shop-card"),
|
|
35
|
+
...require("@xsolla/xui-b2c-side-navigation"),
|
|
36
|
+
...require("@xsolla/xui-b2c-toast"),
|
|
37
|
+
...require("@xsolla/xui-b2c-transaction-cell")
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx"],"sourcesContent":["export * from \"@xsolla/xui-b2c-bottom-bar\";\nexport * from \"@xsolla/xui-b2c-image-thumbnail\";\nexport * from \"@xsolla/xui-b2c-progress-icon\";\nexport * from \"@xsolla/xui-b2c-quest-card\";\nexport * from \"@xsolla/xui-b2c-shop-card\";\nexport * from \"@xsolla/xui-b2c-side-navigation\";\nexport * from \"@xsolla/xui-b2c-toast\";\nexport * from \"@xsolla/xui-b2c-transaction-cell\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,uCAAd;AACA,0BAAc,4CADd;AAEA,0BAAc,0CAFd;AAGA,0BAAc,uCAHd;AAIA,0BAAc,sCAJd;AAKA,0BAAc,4CALd;AAMA,0BAAc,kCANd;AAOA,0BAAc,6CAPd;","names":[]}
|
package/native/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
export * from "@xsolla/xui-b2c-bottom-bar";
|
|
3
|
+
export * from "@xsolla/xui-b2c-image-thumbnail";
|
|
4
|
+
export * from "@xsolla/xui-b2c-progress-icon";
|
|
5
|
+
export * from "@xsolla/xui-b2c-quest-card";
|
|
6
|
+
export * from "@xsolla/xui-b2c-shop-card";
|
|
7
|
+
export * from "@xsolla/xui-b2c-side-navigation";
|
|
8
|
+
export * from "@xsolla/xui-b2c-toast";
|
|
9
|
+
export * from "@xsolla/xui-b2c-transaction-cell";
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx"],"sourcesContent":["export * from \"@xsolla/xui-b2c-bottom-bar\";\nexport * from \"@xsolla/xui-b2c-image-thumbnail\";\nexport * from \"@xsolla/xui-b2c-progress-icon\";\nexport * from \"@xsolla/xui-b2c-quest-card\";\nexport * from \"@xsolla/xui-b2c-shop-card\";\nexport * from \"@xsolla/xui-b2c-side-navigation\";\nexport * from \"@xsolla/xui-b2c-toast\";\nexport * from \"@xsolla/xui-b2c-transaction-cell\";\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xsolla/xui-b2c",
|
|
3
|
+
"version": "0.173.0",
|
|
4
|
+
"main": "./web/index.js",
|
|
5
|
+
"types": "./web/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build:web": "PLATFORM=web tsup",
|
|
8
|
+
"build:native": "PLATFORM=native tsup"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": ">=16.8.0",
|
|
12
|
+
"styled-components": ">=4"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@xsolla/xui-b2c-bottom-bar": "0.173.0",
|
|
16
|
+
"@xsolla/xui-b2c-image-thumbnail": "0.173.0",
|
|
17
|
+
"@xsolla/xui-b2c-progress-icon": "0.173.0",
|
|
18
|
+
"@xsolla/xui-b2c-quest-card": "0.173.0",
|
|
19
|
+
"@xsolla/xui-b2c-shop-card": "0.173.0",
|
|
20
|
+
"@xsolla/xui-b2c-side-navigation": "0.173.0",
|
|
21
|
+
"@xsolla/xui-b2c-toast": "0.173.0",
|
|
22
|
+
"@xsolla/xui-b2c-transaction-cell": "0.173.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
26
|
+
"esbuild-plugin-alias": "^0.2.1",
|
|
27
|
+
"tsup": "^8.0.0",
|
|
28
|
+
"vitest": "^4.0.18"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"module": "./web/index.mjs",
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"react-native": "./native/index.js",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"react-native": {
|
|
37
|
+
"types": "./native/index.d.ts",
|
|
38
|
+
"import": "./native/index.mjs",
|
|
39
|
+
"require": "./native/index.js"
|
|
40
|
+
},
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./web/index.d.ts",
|
|
43
|
+
"default": "./web/index.mjs"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./web/index.d.ts",
|
|
47
|
+
"default": "./web/index.js"
|
|
48
|
+
},
|
|
49
|
+
"default": {
|
|
50
|
+
"types": "./web/index.d.ts",
|
|
51
|
+
"default": "./web/index.js"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
package/web/index.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@xsolla/xui-b2c-bottom-bar';
|
|
2
|
+
export * from '@xsolla/xui-b2c-image-thumbnail';
|
|
3
|
+
export * from '@xsolla/xui-b2c-progress-icon';
|
|
4
|
+
export * from '@xsolla/xui-b2c-quest-card';
|
|
5
|
+
export * from '@xsolla/xui-b2c-shop-card';
|
|
6
|
+
export * from '@xsolla/xui-b2c-side-navigation';
|
|
7
|
+
export * from '@xsolla/xui-b2c-toast';
|
|
8
|
+
export * from '@xsolla/xui-b2c-transaction-cell';
|
package/web/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@xsolla/xui-b2c-bottom-bar';
|
|
2
|
+
export * from '@xsolla/xui-b2c-image-thumbnail';
|
|
3
|
+
export * from '@xsolla/xui-b2c-progress-icon';
|
|
4
|
+
export * from '@xsolla/xui-b2c-quest-card';
|
|
5
|
+
export * from '@xsolla/xui-b2c-shop-card';
|
|
6
|
+
export * from '@xsolla/xui-b2c-side-navigation';
|
|
7
|
+
export * from '@xsolla/xui-b2c-toast';
|
|
8
|
+
export * from '@xsolla/xui-b2c-transaction-cell';
|
package/web/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
|
|
17
|
+
// src/index.tsx
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
module.exports = __toCommonJS(index_exports);
|
|
20
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-bottom-bar"), module.exports);
|
|
21
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-image-thumbnail"), module.exports);
|
|
22
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-progress-icon"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-quest-card"), module.exports);
|
|
24
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-shop-card"), module.exports);
|
|
25
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-side-navigation"), module.exports);
|
|
26
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-toast"), module.exports);
|
|
27
|
+
__reExport(index_exports, require("@xsolla/xui-b2c-transaction-cell"), module.exports);
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
...require("@xsolla/xui-b2c-bottom-bar"),
|
|
31
|
+
...require("@xsolla/xui-b2c-image-thumbnail"),
|
|
32
|
+
...require("@xsolla/xui-b2c-progress-icon"),
|
|
33
|
+
...require("@xsolla/xui-b2c-quest-card"),
|
|
34
|
+
...require("@xsolla/xui-b2c-shop-card"),
|
|
35
|
+
...require("@xsolla/xui-b2c-side-navigation"),
|
|
36
|
+
...require("@xsolla/xui-b2c-toast"),
|
|
37
|
+
...require("@xsolla/xui-b2c-transaction-cell")
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
package/web/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx"],"sourcesContent":["export * from \"@xsolla/xui-b2c-bottom-bar\";\nexport * from \"@xsolla/xui-b2c-image-thumbnail\";\nexport * from \"@xsolla/xui-b2c-progress-icon\";\nexport * from \"@xsolla/xui-b2c-quest-card\";\nexport * from \"@xsolla/xui-b2c-shop-card\";\nexport * from \"@xsolla/xui-b2c-side-navigation\";\nexport * from \"@xsolla/xui-b2c-toast\";\nexport * from \"@xsolla/xui-b2c-transaction-cell\";\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,uCAAd;AACA,0BAAc,4CADd;AAEA,0BAAc,0CAFd;AAGA,0BAAc,uCAHd;AAIA,0BAAc,sCAJd;AAKA,0BAAc,4CALd;AAMA,0BAAc,kCANd;AAOA,0BAAc,6CAPd;","names":[]}
|
package/web/index.mjs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/index.tsx
|
|
2
|
+
export * from "@xsolla/xui-b2c-bottom-bar";
|
|
3
|
+
export * from "@xsolla/xui-b2c-image-thumbnail";
|
|
4
|
+
export * from "@xsolla/xui-b2c-progress-icon";
|
|
5
|
+
export * from "@xsolla/xui-b2c-quest-card";
|
|
6
|
+
export * from "@xsolla/xui-b2c-shop-card";
|
|
7
|
+
export * from "@xsolla/xui-b2c-side-navigation";
|
|
8
|
+
export * from "@xsolla/xui-b2c-toast";
|
|
9
|
+
export * from "@xsolla/xui-b2c-transaction-cell";
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.tsx"],"sourcesContent":["export * from \"@xsolla/xui-b2c-bottom-bar\";\nexport * from \"@xsolla/xui-b2c-image-thumbnail\";\nexport * from \"@xsolla/xui-b2c-progress-icon\";\nexport * from \"@xsolla/xui-b2c-quest-card\";\nexport * from \"@xsolla/xui-b2c-shop-card\";\nexport * from \"@xsolla/xui-b2c-side-navigation\";\nexport * from \"@xsolla/xui-b2c-toast\";\nexport * from \"@xsolla/xui-b2c-transaction-cell\";\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|