@octane-xplat/ui 0.3.0 → 0.4.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 +46 -0
- package/dist/native/octane-client-build.json +1 -1
- package/dist/native/ui.js +52 -40
- package/dist/native/ui10.js +20 -11
- package/dist/native/ui11.js +42 -109
- package/dist/native/ui12.js +17 -84
- package/dist/native/ui13.js +11 -41
- package/dist/native/ui14.js +118 -76
- package/dist/native/ui15.js +43 -92
- package/dist/native/ui16.js +106 -45
- package/dist/native/ui17.js +29 -42
- package/dist/native/ui18.js +34 -53
- package/dist/native/ui19.js +246 -32
- package/dist/native/ui20.js +27 -16
- package/dist/native/ui21.js +376 -86
- package/dist/native/ui22.js +26 -114
- package/dist/native/ui23.js +49 -97
- package/dist/native/ui24.js +78 -53
- package/dist/native/ui25.js +138 -16
- package/dist/native/ui26.js +8 -23
- package/dist/native/ui27.js +60 -34
- package/dist/native/ui28.js +36 -142
- package/dist/native/ui29.js +101 -21
- package/dist/native/ui30.js +14 -31
- package/dist/native/ui31.js +55 -36
- package/dist/native/ui32.js +49 -61
- package/dist/native/ui33.js +36 -28
- package/dist/native/ui34.js +51 -8
- package/dist/native/ui35.js +98 -20
- package/dist/native/ui36.js +9 -33
- package/dist/native/ui37.js +42 -15
- package/dist/native/ui38.js +186 -57
- package/dist/native/ui39.js +96 -24
- package/dist/native/ui4.js +22 -20
- package/dist/native/ui40.js +57 -13
- package/dist/native/ui41.js +15 -100
- package/dist/native/ui42.js +6 -146
- package/dist/native/ui43.js +37 -21
- package/dist/native/ui44.js +265 -6
- package/dist/native/ui45.js +28 -0
- package/dist/native/ui46.js +35 -0
- package/dist/native/ui47.js +41 -0
- package/dist/native/ui48.js +72 -0
- package/dist/native/ui49.js +66 -0
- package/dist/native/ui5.js +37 -77
- package/dist/native/ui50.js +27 -0
- package/dist/native/ui51.js +13 -0
- package/dist/native/ui52.js +92 -0
- package/dist/native/ui53.js +34 -0
- package/dist/native/ui54.js +17 -0
- package/dist/native/ui55.js +156 -0
- package/dist/native/ui56.js +33 -0
- package/dist/native/ui57.js +14 -0
- package/dist/native/ui58.js +22 -0
- package/dist/native/ui59.js +8 -0
- package/dist/native/ui6.js +52 -9
- package/dist/native/ui60.js +108 -0
- package/dist/native/ui61.js +76 -0
- package/dist/native/ui7.js +42 -26
- package/dist/native/ui8.js +22 -12
- package/dist/native/ui9.js +18 -9
- package/dist/web/octane-client-build.json +1 -1
- package/dist/web/ui.js +51 -40
- package/dist/web/ui10.js +33 -186
- package/dist/web/ui11.js +28 -409
- package/dist/web/ui12.js +21 -68
- package/dist/web/ui13.js +201 -97
- package/dist/web/ui14.js +85 -95
- package/dist/web/ui15.js +368 -25
- package/dist/web/ui16.js +13 -101
- package/dist/web/ui17.js +246 -42
- package/dist/web/ui18.js +237 -28
- package/dist/web/ui19.js +36 -10
- package/dist/web/ui20.js +73 -102
- package/dist/web/ui21.js +102 -73
- package/dist/web/ui22.js +95 -55
- package/dist/web/ui23.js +94 -55
- package/dist/web/ui24.js +31 -15
- package/dist/web/ui25.js +105 -19
- package/dist/web/ui26.js +29 -23
- package/dist/web/ui27.js +12 -123
- package/dist/web/ui28.js +9 -110
- package/dist/web/ui29.js +52 -102
- package/dist/web/ui3.js +29 -18
- package/dist/web/ui30.js +32 -41
- package/dist/web/ui31.js +120 -39
- package/dist/web/ui32.js +41 -74
- package/dist/web/ui33.js +148 -32
- package/dist/web/ui34.js +54 -51
- package/dist/web/ui35.js +55 -7
- package/dist/web/ui36.js +18 -41
- package/dist/web/ui37.js +6 -46
- package/dist/web/ui38.js +37 -16
- package/dist/web/ui39.js +135 -81
- package/dist/web/ui4.js +46 -152
- package/dist/web/ui40.js +39 -37
- package/dist/web/ui41.js +41 -16
- package/dist/web/ui42.js +74 -7
- package/dist/web/ui43.js +40 -20
- package/dist/web/ui44.js +60 -6
- package/dist/web/ui45.js +9 -0
- package/dist/web/ui46.js +45 -0
- package/dist/web/ui47.js +13 -0
- package/dist/web/ui48.js +63 -0
- package/dist/web/ui49.js +47 -0
- package/dist/web/ui5.js +131 -27
- package/dist/web/ui50.js +17 -0
- package/dist/web/ui51.js +149 -0
- package/dist/web/ui52.js +42 -0
- package/dist/web/ui53.js +17 -0
- package/dist/web/ui54.js +9 -0
- package/dist/web/ui55.js +22 -0
- package/dist/web/ui56.js +8 -0
- package/dist/web/ui57.js +44 -0
- package/dist/web/ui58.js +46 -0
- package/dist/web/ui6.js +81 -45
- package/dist/web/ui7.js +43 -21
- package/dist/web/ui8.js +27 -21
- package/dist/web/ui9.js +29 -18
- package/package.json +13 -4
- package/src/theme/tokens.css +369 -138
- package/types/index.d.ts +102 -58
- package/types/props.d.ts +233 -13
package/dist/native/ui14.js
CHANGED
|
@@ -1,83 +1,125 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
|
-
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
//#region src/
|
|
6
|
-
var _hs$ = /* @__PURE__ */ hookSlots(2);
|
|
7
|
-
var _h$0 = /* @__PURE__ */ Symbol(_hs$);
|
|
8
|
-
var _h$1 = /* @__PURE__ */ Symbol(_hs$ + 1);
|
|
2
|
+
import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
|
|
3
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
|
+
import { createContext, defineUniversalComponent, universalComponent, universalIf, universalPlan, universalProps, universalValue, useContext } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/Text.native.tsrx
|
|
9
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
10
7
|
"kind": "host",
|
|
11
|
-
"type": "
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
["text", 4],
|
|
18
|
-
["hint", 5],
|
|
19
|
-
["keyboardType", 6],
|
|
20
|
-
["returnKeyType", 7],
|
|
21
|
-
["editable", 8],
|
|
22
|
-
["onLoaded", 9],
|
|
23
|
-
["onTextChange", 10],
|
|
24
|
-
["onReturnPress", 11],
|
|
25
|
-
["onFocus", 12],
|
|
26
|
-
["onBlur", 13]
|
|
27
|
-
]
|
|
8
|
+
"type": "span",
|
|
9
|
+
"propsSlot": 0,
|
|
10
|
+
"children": [{
|
|
11
|
+
"kind": "slot",
|
|
12
|
+
"slot": 1
|
|
13
|
+
}]
|
|
28
14
|
});
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
15
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
16
|
+
"kind": "host",
|
|
17
|
+
"type": "label",
|
|
18
|
+
"propsSlot": 0,
|
|
19
|
+
"children": [{
|
|
20
|
+
"kind": "slot",
|
|
21
|
+
"slot": 1
|
|
22
|
+
}]
|
|
23
|
+
});
|
|
24
|
+
var __octaneUniversalPlan2 = universalPlan("nativescript", {
|
|
25
|
+
"kind": "slot",
|
|
26
|
+
"slot": 0
|
|
27
|
+
});
|
|
28
|
+
var InText = createContext(false);
|
|
29
|
+
var TextScope = defineUniversalComponent("nativescript", function TextScope(props) {
|
|
30
|
+
return InText({
|
|
31
|
+
value: true,
|
|
32
|
+
children: props.children
|
|
33
|
+
});
|
|
34
|
+
}, { "module": "@nativescript-community/octane" });
|
|
35
|
+
var Text = defineUniversalComponent("nativescript", function Text(props) {
|
|
36
|
+
const inText = useContext(InText);
|
|
37
|
+
const textStyle = {
|
|
38
|
+
...props.style,
|
|
39
|
+
...props.ellipsize ? {
|
|
40
|
+
whiteSpace: "nowrap",
|
|
41
|
+
textOverflow: "ellipsis"
|
|
42
|
+
} : {}
|
|
46
43
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
44
|
+
return universalValue(__octaneUniversalPlan2, [universalIf(inText, () => {
|
|
45
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
46
|
+
[
|
|
47
|
+
"set",
|
|
48
|
+
"ref",
|
|
49
|
+
(v) => applyEscapeProps(v, props)
|
|
50
|
+
],
|
|
51
|
+
[
|
|
52
|
+
"set",
|
|
53
|
+
"className",
|
|
54
|
+
cx(props.className)
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"set",
|
|
58
|
+
"style",
|
|
59
|
+
textStyle
|
|
60
|
+
],
|
|
61
|
+
["spread", layoutChildProps(props)]
|
|
62
|
+
]), props.children]);
|
|
63
|
+
}, () => {
|
|
64
|
+
return universalValue(__octaneUniversalPlan1, [universalProps([
|
|
65
|
+
[
|
|
66
|
+
"set",
|
|
67
|
+
"id",
|
|
68
|
+
props.id
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"set",
|
|
72
|
+
"ref",
|
|
73
|
+
(v) => applyEscapeProps(v, props)
|
|
74
|
+
],
|
|
75
|
+
["spread", layoutChildProps(props)],
|
|
76
|
+
[
|
|
77
|
+
"set",
|
|
78
|
+
"className",
|
|
79
|
+
cx(props.className)
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
"set",
|
|
83
|
+
"style",
|
|
84
|
+
textStyle
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
"set",
|
|
88
|
+
"maxLines",
|
|
89
|
+
props.numberOfLines ?? 0
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
"set",
|
|
93
|
+
"whiteSpace",
|
|
94
|
+
props.ellipsize ? "nowrap" : "normal"
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
"set",
|
|
98
|
+
"textOverflow",
|
|
99
|
+
props.ellipsize ? "ellipsis" : void 0
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
"set",
|
|
103
|
+
"accessibilityHint",
|
|
104
|
+
props.accessibilityHint
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"set",
|
|
108
|
+
"accessibilityValue",
|
|
109
|
+
props.accessibilityValue
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
"set",
|
|
113
|
+
"accessibilityState",
|
|
114
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
115
|
+
],
|
|
116
|
+
[
|
|
117
|
+
"set",
|
|
118
|
+
"accessibilityLiveRegion",
|
|
119
|
+
props.accessibilityLiveRegion
|
|
120
|
+
]
|
|
121
|
+
]), universalComponent("nativescript", TextScope, universalProps([], props.children))]);
|
|
122
|
+
})]);
|
|
81
123
|
}, { "module": "@nativescript-community/octane" });
|
|
82
124
|
//#endregion
|
|
83
|
-
export {
|
|
125
|
+
export { Text };
|
package/dist/native/ui15.js
CHANGED
|
@@ -1,47 +1,43 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
|
+
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
+
//#region src/RichText.native.tsrx
|
|
5
6
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
6
7
|
"kind": "host",
|
|
7
|
-
"type": "
|
|
8
|
+
"type": "label",
|
|
9
|
+
"propsSlot": 0,
|
|
8
10
|
"children": [{
|
|
9
|
-
"kind": "
|
|
10
|
-
"
|
|
11
|
+
"kind": "host",
|
|
12
|
+
"type": "formattedstring",
|
|
13
|
+
"children": [{
|
|
14
|
+
"kind": "slot",
|
|
15
|
+
"slot": 1
|
|
16
|
+
}]
|
|
11
17
|
}]
|
|
12
18
|
});
|
|
13
19
|
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
14
20
|
"kind": "host",
|
|
15
|
-
"type": "
|
|
21
|
+
"type": "span",
|
|
16
22
|
"propsSlot": 0
|
|
17
23
|
});
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
"slot": 0
|
|
21
|
-
});
|
|
22
|
-
var __octaneUniversalPlan3 = universalPlan("nativescript", {
|
|
23
|
-
"kind": "range",
|
|
24
|
-
"children": [{
|
|
25
|
-
"kind": "slot",
|
|
26
|
-
"slot": 0
|
|
27
|
-
}]
|
|
28
|
-
});
|
|
29
|
-
var __octaneUniversalPlan4 = universalPlan("nativescript", {
|
|
30
|
-
"kind": "slot",
|
|
31
|
-
"slot": 0
|
|
32
|
-
});
|
|
33
|
-
var ListInner = defineUniversalComponent("nativescript", function ListInner(props) {
|
|
34
|
-
const platformProps = Object.assign({}, isIOS ? props.ios : {}, isAndroid ? props.android : {});
|
|
35
|
-
return universalValue(__octaneUniversalPlan1, [universalProps([
|
|
24
|
+
var RichText = defineUniversalComponent("nativescript", function RichText(props) {
|
|
25
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
36
26
|
[
|
|
37
27
|
"set",
|
|
38
28
|
"id",
|
|
39
29
|
props.id
|
|
40
30
|
],
|
|
31
|
+
[
|
|
32
|
+
"set",
|
|
33
|
+
"ref",
|
|
34
|
+
(el) => applyEscapeProps(el, props)
|
|
35
|
+
],
|
|
36
|
+
["spread", layoutChildProps(props)],
|
|
41
37
|
[
|
|
42
38
|
"set",
|
|
43
39
|
"className",
|
|
44
|
-
cx(props.className)
|
|
40
|
+
cx("vx-rich-text", props.className)
|
|
45
41
|
],
|
|
46
42
|
[
|
|
47
43
|
"set",
|
|
@@ -50,80 +46,35 @@ var ListInner = defineUniversalComponent("nativescript", function ListInner(prop
|
|
|
50
46
|
],
|
|
51
47
|
[
|
|
52
48
|
"set",
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
]
|
|
49
|
+
"whiteSpace",
|
|
50
|
+
"normal"
|
|
51
|
+
]
|
|
52
|
+
]), props.children]);
|
|
53
|
+
}, { "module": "@nativescript-community/octane" });
|
|
54
|
+
function runText(props) {
|
|
55
|
+
if (props.text !== void 0) return props.text;
|
|
56
|
+
if (typeof props.children === "string" || typeof props.children === "number") return String(props.children);
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
var RichTextSpan = defineUniversalComponent("nativescript", function RichTextSpan(props) {
|
|
60
|
+
return universalValue(__octaneUniversalPlan1, [universalProps([
|
|
56
61
|
[
|
|
57
62
|
"set",
|
|
58
|
-
"
|
|
59
|
-
|
|
63
|
+
"text",
|
|
64
|
+
runText(props)
|
|
60
65
|
],
|
|
61
66
|
[
|
|
62
67
|
"set",
|
|
63
|
-
"
|
|
64
|
-
props.
|
|
68
|
+
"className",
|
|
69
|
+
cx(props.className)
|
|
65
70
|
],
|
|
71
|
+
["spread", props.style],
|
|
66
72
|
[
|
|
67
73
|
"set",
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
["spread", platformProps]
|
|
74
|
+
"onLinkTap",
|
|
75
|
+
props.onPress
|
|
76
|
+
]
|
|
72
77
|
])]);
|
|
73
78
|
}, { "module": "@nativescript-community/octane" });
|
|
74
|
-
var MemoListView = memo(ListInner, (a, b) => a.items === b.items && a.className === b.className && a.style === b.style && a.id === b.id && a.estimatedItemHeight === b.estimatedItemHeight && a.onEndReached === b.onEndReached && a.ios === b.ios && a.android === b.android);
|
|
75
|
-
var List = defineUniversalComponent("nativescript", function List(props) {
|
|
76
|
-
return universalValue(__octaneUniversalPlan4, [universalIf(props.items.length > 0, () => {
|
|
77
|
-
return universalValue(__octaneUniversalPlan2, [universalComponent("nativescript", MemoListView, universalProps([
|
|
78
|
-
[
|
|
79
|
-
"set",
|
|
80
|
-
"id",
|
|
81
|
-
props.id
|
|
82
|
-
],
|
|
83
|
-
[
|
|
84
|
-
"set",
|
|
85
|
-
"items",
|
|
86
|
-
props.items
|
|
87
|
-
],
|
|
88
|
-
[
|
|
89
|
-
"set",
|
|
90
|
-
"className",
|
|
91
|
-
props.className
|
|
92
|
-
],
|
|
93
|
-
[
|
|
94
|
-
"set",
|
|
95
|
-
"style",
|
|
96
|
-
props.style
|
|
97
|
-
],
|
|
98
|
-
[
|
|
99
|
-
"set",
|
|
100
|
-
"renderItem",
|
|
101
|
-
props.renderItem
|
|
102
|
-
],
|
|
103
|
-
[
|
|
104
|
-
"set",
|
|
105
|
-
"estimatedItemHeight",
|
|
106
|
-
props.estimatedItemHeight
|
|
107
|
-
],
|
|
108
|
-
[
|
|
109
|
-
"set",
|
|
110
|
-
"onEndReached",
|
|
111
|
-
props.onEndReached
|
|
112
|
-
],
|
|
113
|
-
[
|
|
114
|
-
"set",
|
|
115
|
-
"ios",
|
|
116
|
-
props.ios
|
|
117
|
-
],
|
|
118
|
-
[
|
|
119
|
-
"set",
|
|
120
|
-
"android",
|
|
121
|
-
props.android
|
|
122
|
-
]
|
|
123
|
-
]))]);
|
|
124
|
-
}, () => {
|
|
125
|
-
return universalValue(__octaneUniversalPlan3, [props.renderEmpty?.()]);
|
|
126
|
-
})]);
|
|
127
|
-
}, { "module": "@nativescript-community/octane" });
|
|
128
79
|
//#endregion
|
|
129
|
-
export {
|
|
80
|
+
export { RichText, RichTextSpan };
|
package/dist/native/ui16.js
CHANGED
|
@@ -1,55 +1,116 @@
|
|
|
1
1
|
import { cx } from "./ui2.js";
|
|
2
|
-
import { applyEscapeProps } from "./ui3.js";
|
|
3
|
-
import {
|
|
2
|
+
import { applyEscapeProps, nativeAccessibilityState } from "./ui3.js";
|
|
3
|
+
import { glassClassOf, glassConfigOf } from "./ui4.js";
|
|
4
|
+
import { layoutChildProps } from "./ui5.js";
|
|
4
5
|
import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
5
|
-
//#region src/
|
|
6
|
+
//#region src/Pressable.native.tsrx
|
|
6
7
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
7
8
|
"kind": "host",
|
|
8
|
-
"type": "
|
|
9
|
+
"type": "flexboxlayout",
|
|
9
10
|
"propsSlot": 0,
|
|
10
11
|
"children": [{
|
|
11
|
-
"kind": "
|
|
12
|
-
"
|
|
13
|
-
"bindings": [["flexDirection", 1]],
|
|
14
|
-
"children": [{
|
|
15
|
-
"kind": "slot",
|
|
16
|
-
"slot": 2
|
|
17
|
-
}]
|
|
12
|
+
"kind": "slot",
|
|
13
|
+
"slot": 1
|
|
18
14
|
}]
|
|
19
15
|
});
|
|
20
|
-
var
|
|
21
|
-
return universalValue(__octaneUniversalPlan0, [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
props.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
16
|
+
var Pressable = defineUniversalComponent("nativescript", function Pressable(props) {
|
|
17
|
+
return universalValue(__octaneUniversalPlan0, [universalProps([
|
|
18
|
+
[
|
|
19
|
+
"set",
|
|
20
|
+
"ref",
|
|
21
|
+
(v) => applyEscapeProps(v, props)
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"set",
|
|
25
|
+
"id",
|
|
26
|
+
props.id
|
|
27
|
+
],
|
|
28
|
+
["spread", layoutChildProps(props)],
|
|
29
|
+
[
|
|
30
|
+
"set",
|
|
31
|
+
"className",
|
|
32
|
+
cx("vx-pressable", glassClassOf(props.glass), props.className)
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"set",
|
|
36
|
+
"iosGlassEffect",
|
|
37
|
+
glassConfigOf(props.glass)
|
|
38
|
+
],
|
|
39
|
+
[
|
|
40
|
+
"set",
|
|
41
|
+
"style",
|
|
42
|
+
{
|
|
43
|
+
...props.style,
|
|
44
|
+
...props.hitSlop ? {
|
|
45
|
+
margin: -props.hitSlop,
|
|
46
|
+
padding: props.hitSlop
|
|
47
|
+
} : {}
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"set",
|
|
52
|
+
"accessible",
|
|
53
|
+
props.accessible
|
|
54
|
+
],
|
|
55
|
+
[
|
|
56
|
+
"set",
|
|
57
|
+
"accessibilityLabel",
|
|
58
|
+
props.accessibilityLabel
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"set",
|
|
62
|
+
"accessibilityRole",
|
|
63
|
+
props.accessibilityRole
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
"set",
|
|
67
|
+
"accessibilityHint",
|
|
68
|
+
props.accessibilityHint
|
|
69
|
+
],
|
|
70
|
+
[
|
|
71
|
+
"set",
|
|
72
|
+
"accessibilityValue",
|
|
73
|
+
props.accessibilityValue
|
|
74
|
+
],
|
|
75
|
+
[
|
|
76
|
+
"set",
|
|
77
|
+
"accessibilityState",
|
|
78
|
+
nativeAccessibilityState(props.accessibilityState)
|
|
79
|
+
],
|
|
80
|
+
[
|
|
81
|
+
"set",
|
|
82
|
+
"accessibilityLiveRegion",
|
|
83
|
+
props.accessibilityLiveRegion
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
"set",
|
|
87
|
+
"ignoreTouchAnimation",
|
|
88
|
+
props.ignoreTouchAnimation
|
|
89
|
+
],
|
|
90
|
+
[
|
|
91
|
+
"set",
|
|
92
|
+
"onTap",
|
|
93
|
+
props.disabled ? void 0 : props.onPress
|
|
94
|
+
],
|
|
95
|
+
[
|
|
96
|
+
"set",
|
|
97
|
+
"onLongPress",
|
|
98
|
+
props.disabled ? void 0 : props.onLongPress
|
|
99
|
+
],
|
|
100
|
+
[
|
|
101
|
+
"set",
|
|
102
|
+
"onDoubleTap",
|
|
103
|
+
props.disabled ? void 0 : props.onDoublePress
|
|
104
|
+
],
|
|
105
|
+
[
|
|
106
|
+
"set",
|
|
107
|
+
"onTouch",
|
|
108
|
+
props.disabled ? void 0 : (e) => {
|
|
109
|
+
if (e.action === "down") props.onPressIn?.();
|
|
110
|
+
else if (e.action === "up" || e.action === "cancel") props.onPressOut?.();
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
]), props.children]);
|
|
53
114
|
}, { "module": "@nativescript-community/octane" });
|
|
54
115
|
//#endregion
|
|
55
|
-
export {
|
|
116
|
+
export { Pressable };
|
package/dist/native/ui17.js
CHANGED
|
@@ -1,47 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region src/Image.native.tsrx
|
|
1
|
+
import { Pressable } from "./ui16.js";
|
|
2
|
+
import { defineUniversalComponent, universalChildren, universalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
|
|
3
|
+
import { Utils } from "@nativescript/core";
|
|
4
|
+
//#region src/Link.native.tsrx
|
|
6
5
|
var __octaneUniversalPlan0 = universalPlan("nativescript", {
|
|
7
6
|
"kind": "host",
|
|
8
|
-
"type": "
|
|
9
|
-
"
|
|
7
|
+
"type": "flexboxlayout",
|
|
8
|
+
"props": { "flexDirection": "row" },
|
|
9
|
+
"children": [{
|
|
10
|
+
"kind": "slot",
|
|
11
|
+
"slot": 0
|
|
12
|
+
}]
|
|
10
13
|
});
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[
|
|
30
|
-
"set",
|
|
31
|
-
"style",
|
|
32
|
-
props.style
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
"set",
|
|
36
|
-
"src",
|
|
37
|
-
props.src
|
|
38
|
-
],
|
|
39
|
-
[
|
|
40
|
-
"set",
|
|
41
|
-
"accessibilityLabel",
|
|
42
|
-
props.alt
|
|
43
|
-
]
|
|
44
|
-
])]);
|
|
14
|
+
var __octaneUniversalPlan1 = universalPlan("nativescript", {
|
|
15
|
+
"kind": "slot",
|
|
16
|
+
"slot": 0
|
|
17
|
+
});
|
|
18
|
+
var Link = defineUniversalComponent("nativescript", function Link(props) {
|
|
19
|
+
return universalValue(__octaneUniversalPlan1, [universalComponent("nativescript", Pressable, universalProps([[
|
|
20
|
+
"set",
|
|
21
|
+
"className",
|
|
22
|
+
props.className
|
|
23
|
+
], [
|
|
24
|
+
"set",
|
|
25
|
+
"onPress",
|
|
26
|
+
() => {
|
|
27
|
+
Utils.openUrl(props.href);
|
|
28
|
+
}
|
|
29
|
+
]], universalChildren("nativescript", () => {
|
|
30
|
+
return universalValue(__octaneUniversalPlan0, [props.children]);
|
|
31
|
+
})))]);
|
|
45
32
|
}, { "module": "@nativescript-community/octane" });
|
|
46
33
|
//#endregion
|
|
47
|
-
export {
|
|
34
|
+
export { Link };
|