@tiendanube/nube-sdk-ui 0.1.0-alpha

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/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@tiendanube/nube-sdk-ui",
3
+ "version": "0.1.0-alpha",
4
+ "description": "Library for building declarative interfaces for NubeSDK",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup",
10
+ "check": "biome check src/*",
11
+ "check:fix": "biome check --write src/*"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/TiendaNube/nube-sdk.git"
16
+ },
17
+ "author": "Tiendanube / Nuvemshop",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/TiendaNube/nube-sdk/issues"
21
+ },
22
+ "homepage": "https://www.tiendanube.com",
23
+ "devDependencies": {
24
+ "@biomejs/biome": "1.8.3",
25
+ "tsup": "^8.3.5",
26
+ "typescript": "^5.6.2"
27
+ },
28
+ "peerDependencies": {
29
+ "@tiendanube/nube-sdk-types": "*"
30
+ },
31
+ "files": [
32
+ "./src",
33
+ "README.md",
34
+ "CHANGELOG.md"
35
+ ],
36
+ "keywords": [
37
+ "tiendanube",
38
+ "nuvemshop",
39
+ "nube-sdk",
40
+ "ecommerce",
41
+ "sdk"
42
+ ]
43
+ }
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentBox,
3
+ NubeComponentBoxProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const box = (props: NubeComponentBoxProps): NubeComponentBox => ({
7
+ type: "box",
8
+ ...props,
9
+ });
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentCol,
3
+ NubeComponentColProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const col = (props: NubeComponentColProps): NubeComponentCol => ({
7
+ type: "col",
8
+ ...props,
9
+ });
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentField,
3
+ NubeComponentFieldProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const field = (props: NubeComponentFieldProps): NubeComponentField => ({
7
+ type: "field",
8
+ ...props,
9
+ });
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentImg,
3
+ NubeComponentImgProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const img = (props: NubeComponentImgProps): NubeComponentImg => ({
7
+ type: "img",
8
+ ...props,
9
+ });
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentRow,
3
+ NubeComponentRowProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const row = (props: NubeComponentRowProps): NubeComponentRow => ({
7
+ type: "row",
8
+ ...props,
9
+ });
@@ -0,0 +1,9 @@
1
+ import type {
2
+ NubeComponentTxt,
3
+ NubeComponentTxtProps,
4
+ } from "@tiendanube/nube-sdk-types";
5
+
6
+ export const txt = (props: NubeComponentTxtProps): NubeComponentTxt => ({
7
+ type: "txt",
8
+ ...props,
9
+ });
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from "./components/box";
2
+ export * from "./components/col";
3
+ export * from "./components/row";
4
+ export * from "./components/field";
5
+ export * from "./components/img";
6
+ export * from "./components/txt";