@bindtty/jsx-runtime 0.1.0-alpha.1 → 0.1.0-alpha.2
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/dist/jsx-runtime.d.ts +42 -5
- package/package.json +3 -3
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -52,9 +52,46 @@ interface IntrinsicYogaContainerProps {
|
|
|
52
52
|
justifyContent?: BindingValue<IntrinsicYogaJustifyContent>;
|
|
53
53
|
"justify-content"?: BindingValue<IntrinsicYogaJustifyContent>;
|
|
54
54
|
}
|
|
55
|
+
interface IntrinsicYogaSizeProps {
|
|
56
|
+
minWidth?: BindingValue<number>;
|
|
57
|
+
"min-width"?: BindingValue<number>;
|
|
58
|
+
minHeight?: BindingValue<number>;
|
|
59
|
+
"min-height"?: BindingValue<number>;
|
|
60
|
+
maxWidth?: BindingValue<number>;
|
|
61
|
+
"max-width"?: BindingValue<number>;
|
|
62
|
+
maxHeight?: BindingValue<number>;
|
|
63
|
+
"max-height"?: BindingValue<number>;
|
|
64
|
+
}
|
|
65
|
+
interface IntrinsicYogaMarginProps {
|
|
66
|
+
margin?: BindingValue<number>;
|
|
67
|
+
marginX?: BindingValue<number>;
|
|
68
|
+
"margin-x"?: BindingValue<number>;
|
|
69
|
+
marginY?: BindingValue<number>;
|
|
70
|
+
"margin-y"?: BindingValue<number>;
|
|
71
|
+
marginTop?: BindingValue<number>;
|
|
72
|
+
"margin-top"?: BindingValue<number>;
|
|
73
|
+
marginRight?: BindingValue<number>;
|
|
74
|
+
"margin-right"?: BindingValue<number>;
|
|
75
|
+
marginBottom?: BindingValue<number>;
|
|
76
|
+
"margin-bottom"?: BindingValue<number>;
|
|
77
|
+
marginLeft?: BindingValue<number>;
|
|
78
|
+
"margin-left"?: BindingValue<number>;
|
|
79
|
+
}
|
|
55
80
|
interface IntrinsicBoxStyleProps {
|
|
56
81
|
border?: BindingValue<boolean | number>;
|
|
57
82
|
padding?: BindingValue<number>;
|
|
83
|
+
paddingX?: BindingValue<number>;
|
|
84
|
+
"padding-x"?: BindingValue<number>;
|
|
85
|
+
paddingY?: BindingValue<number>;
|
|
86
|
+
"padding-y"?: BindingValue<number>;
|
|
87
|
+
paddingTop?: BindingValue<number>;
|
|
88
|
+
"padding-top"?: BindingValue<number>;
|
|
89
|
+
paddingRight?: BindingValue<number>;
|
|
90
|
+
"padding-right"?: BindingValue<number>;
|
|
91
|
+
paddingBottom?: BindingValue<number>;
|
|
92
|
+
"padding-bottom"?: BindingValue<number>;
|
|
93
|
+
paddingLeft?: BindingValue<number>;
|
|
94
|
+
"padding-left"?: BindingValue<number>;
|
|
58
95
|
height?: BindingValue<number>;
|
|
59
96
|
width?: BindingValue<number>;
|
|
60
97
|
overflow?: BindingValue<"visible" | "clip">;
|
|
@@ -69,16 +106,16 @@ export declare namespace JSX {
|
|
|
69
106
|
screen: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & {
|
|
70
107
|
children?: TemplateChildren;
|
|
71
108
|
};
|
|
72
|
-
box: IntrinsicInteractionProps & IntrinsicBoxStyleProps & IntrinsicPaintProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & {
|
|
109
|
+
box: IntrinsicInteractionProps & IntrinsicBoxStyleProps & IntrinsicYogaSizeProps & IntrinsicYogaMarginProps & IntrinsicPaintProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & {
|
|
73
110
|
children?: TemplateChildren;
|
|
74
111
|
};
|
|
75
|
-
vstack: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & {
|
|
112
|
+
vstack: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & IntrinsicYogaSizeProps & IntrinsicYogaMarginProps & {
|
|
76
113
|
children?: TemplateChildren;
|
|
77
114
|
};
|
|
78
|
-
hstack: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & {
|
|
115
|
+
hstack: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaContainerProps & IntrinsicYogaSizeProps & IntrinsicYogaMarginProps & {
|
|
79
116
|
children?: TemplateChildren;
|
|
80
117
|
};
|
|
81
|
-
text: IntrinsicInteractionProps & IntrinsicPaintProps & IntrinsicYogaItemProps & {
|
|
118
|
+
text: IntrinsicInteractionProps & IntrinsicPaintProps & IntrinsicYogaItemProps & IntrinsicYogaSizeProps & IntrinsicYogaMarginProps & {
|
|
82
119
|
value: BindingValue<string | number>;
|
|
83
120
|
wrap?: BindingValue<PublicTextWrapMode>;
|
|
84
121
|
children?: never;
|
|
@@ -94,7 +131,7 @@ export declare namespace JSX {
|
|
|
94
131
|
placeholder?: BindingValue<string>;
|
|
95
132
|
children?: never;
|
|
96
133
|
};
|
|
97
|
-
spacer: IntrinsicInteractionProps & IntrinsicYogaItemProps & {
|
|
134
|
+
spacer: IntrinsicInteractionProps & IntrinsicYogaItemProps & IntrinsicYogaSizeProps & IntrinsicYogaMarginProps & {
|
|
98
135
|
size?: BindingValue<number>;
|
|
99
136
|
children?: never;
|
|
100
137
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bindtty/jsx-runtime",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JSX runtime for BindTTY ViewTemplate.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test": "npm run build --workspace @bindtty/text && npm run build --workspace @bindtty/vnode && npm run build && tsc -p test/tsconfig.json && tsc -p test/tsconfig.runtime.json && node --test test/dist/*.test.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@bindtty/text": "0.1.0-alpha.
|
|
33
|
-
"@bindtty/vnode": "0.1.0-alpha.
|
|
32
|
+
"@bindtty/text": "0.1.0-alpha.2",
|
|
33
|
+
"@bindtty/vnode": "0.1.0-alpha.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.0.0",
|