@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.
Files changed (123) hide show
  1. package/README.md +46 -0
  2. package/dist/native/octane-client-build.json +1 -1
  3. package/dist/native/ui.js +52 -40
  4. package/dist/native/ui10.js +20 -11
  5. package/dist/native/ui11.js +42 -109
  6. package/dist/native/ui12.js +17 -84
  7. package/dist/native/ui13.js +11 -41
  8. package/dist/native/ui14.js +118 -76
  9. package/dist/native/ui15.js +43 -92
  10. package/dist/native/ui16.js +106 -45
  11. package/dist/native/ui17.js +29 -42
  12. package/dist/native/ui18.js +34 -53
  13. package/dist/native/ui19.js +246 -32
  14. package/dist/native/ui20.js +27 -16
  15. package/dist/native/ui21.js +376 -86
  16. package/dist/native/ui22.js +26 -114
  17. package/dist/native/ui23.js +49 -97
  18. package/dist/native/ui24.js +78 -53
  19. package/dist/native/ui25.js +138 -16
  20. package/dist/native/ui26.js +8 -23
  21. package/dist/native/ui27.js +60 -34
  22. package/dist/native/ui28.js +36 -142
  23. package/dist/native/ui29.js +101 -21
  24. package/dist/native/ui30.js +14 -31
  25. package/dist/native/ui31.js +55 -36
  26. package/dist/native/ui32.js +49 -61
  27. package/dist/native/ui33.js +36 -28
  28. package/dist/native/ui34.js +51 -8
  29. package/dist/native/ui35.js +98 -20
  30. package/dist/native/ui36.js +9 -33
  31. package/dist/native/ui37.js +42 -15
  32. package/dist/native/ui38.js +186 -57
  33. package/dist/native/ui39.js +96 -24
  34. package/dist/native/ui4.js +22 -20
  35. package/dist/native/ui40.js +57 -13
  36. package/dist/native/ui41.js +15 -100
  37. package/dist/native/ui42.js +6 -146
  38. package/dist/native/ui43.js +37 -21
  39. package/dist/native/ui44.js +265 -6
  40. package/dist/native/ui45.js +28 -0
  41. package/dist/native/ui46.js +35 -0
  42. package/dist/native/ui47.js +41 -0
  43. package/dist/native/ui48.js +72 -0
  44. package/dist/native/ui49.js +66 -0
  45. package/dist/native/ui5.js +37 -77
  46. package/dist/native/ui50.js +27 -0
  47. package/dist/native/ui51.js +13 -0
  48. package/dist/native/ui52.js +92 -0
  49. package/dist/native/ui53.js +34 -0
  50. package/dist/native/ui54.js +17 -0
  51. package/dist/native/ui55.js +156 -0
  52. package/dist/native/ui56.js +33 -0
  53. package/dist/native/ui57.js +14 -0
  54. package/dist/native/ui58.js +22 -0
  55. package/dist/native/ui59.js +8 -0
  56. package/dist/native/ui6.js +52 -9
  57. package/dist/native/ui60.js +108 -0
  58. package/dist/native/ui61.js +76 -0
  59. package/dist/native/ui7.js +42 -26
  60. package/dist/native/ui8.js +22 -12
  61. package/dist/native/ui9.js +18 -9
  62. package/dist/web/octane-client-build.json +1 -1
  63. package/dist/web/ui.js +51 -40
  64. package/dist/web/ui10.js +33 -186
  65. package/dist/web/ui11.js +28 -409
  66. package/dist/web/ui12.js +21 -68
  67. package/dist/web/ui13.js +201 -97
  68. package/dist/web/ui14.js +85 -95
  69. package/dist/web/ui15.js +368 -25
  70. package/dist/web/ui16.js +13 -101
  71. package/dist/web/ui17.js +246 -42
  72. package/dist/web/ui18.js +237 -28
  73. package/dist/web/ui19.js +36 -10
  74. package/dist/web/ui20.js +73 -102
  75. package/dist/web/ui21.js +102 -73
  76. package/dist/web/ui22.js +95 -55
  77. package/dist/web/ui23.js +94 -55
  78. package/dist/web/ui24.js +31 -15
  79. package/dist/web/ui25.js +105 -19
  80. package/dist/web/ui26.js +29 -23
  81. package/dist/web/ui27.js +12 -123
  82. package/dist/web/ui28.js +9 -110
  83. package/dist/web/ui29.js +52 -102
  84. package/dist/web/ui3.js +29 -18
  85. package/dist/web/ui30.js +32 -41
  86. package/dist/web/ui31.js +120 -39
  87. package/dist/web/ui32.js +41 -74
  88. package/dist/web/ui33.js +148 -32
  89. package/dist/web/ui34.js +54 -51
  90. package/dist/web/ui35.js +55 -7
  91. package/dist/web/ui36.js +18 -41
  92. package/dist/web/ui37.js +6 -46
  93. package/dist/web/ui38.js +37 -16
  94. package/dist/web/ui39.js +135 -81
  95. package/dist/web/ui4.js +46 -152
  96. package/dist/web/ui40.js +39 -37
  97. package/dist/web/ui41.js +41 -16
  98. package/dist/web/ui42.js +74 -7
  99. package/dist/web/ui43.js +40 -20
  100. package/dist/web/ui44.js +60 -6
  101. package/dist/web/ui45.js +9 -0
  102. package/dist/web/ui46.js +45 -0
  103. package/dist/web/ui47.js +13 -0
  104. package/dist/web/ui48.js +63 -0
  105. package/dist/web/ui49.js +47 -0
  106. package/dist/web/ui5.js +131 -27
  107. package/dist/web/ui50.js +17 -0
  108. package/dist/web/ui51.js +149 -0
  109. package/dist/web/ui52.js +42 -0
  110. package/dist/web/ui53.js +17 -0
  111. package/dist/web/ui54.js +9 -0
  112. package/dist/web/ui55.js +22 -0
  113. package/dist/web/ui56.js +8 -0
  114. package/dist/web/ui57.js +44 -0
  115. package/dist/web/ui58.js +46 -0
  116. package/dist/web/ui6.js +81 -45
  117. package/dist/web/ui7.js +43 -21
  118. package/dist/web/ui8.js +27 -21
  119. package/dist/web/ui9.js +29 -18
  120. package/package.json +13 -4
  121. package/src/theme/tokens.css +369 -138
  122. package/types/index.d.ts +102 -58
  123. package/types/props.d.ts +233 -13
@@ -1,83 +1,125 @@
1
1
  import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { defineUniversalComponent, hookSlots, universalPlan, universalValue, useEffect, useRef } from "@nativescript-community/octane";
4
- import { Utils } from "@nativescript/core";
5
- //#region src/TextArea.native.tsrx
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": "textview",
12
- "bindings": [
13
- ["id", 0],
14
- ["ref", 1],
15
- ["className", 2],
16
- ["style", 3],
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 TextArea = defineUniversalComponent("nativescript", function TextArea(props) {
30
- const el = useRef(null, _h$0);
31
- const lineDip = (v) => {
32
- const ios = v?.ios?.font?.lineHeight;
33
- if (ios > 0) return ios;
34
- const px = v?.android?.getLineHeight?.();
35
- if (px > 0) return Utils.layout.toDeviceIndependentPixels(px);
36
- return 24;
37
- };
38
- const fit = (v) => {
39
- if (!v) return;
40
- if (props.style?.height != null) return;
41
- const line = lineDip(v);
42
- const rows = props.rows ?? (props.autoGrow ? 1 : 3);
43
- v.style.minHeight = rows * line;
44
- if (props.maxRows) v.style.maxHeight = props.maxRows * line;
45
- else if (!props.autoGrow) v.style.maxHeight = rows * line;
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
- useEffect(() => fit(el.current), [
48
- props.rows,
49
- props.autoGrow,
50
- props.maxRows,
51
- props.style
52
- ], _h$1);
53
- return universalValue(__octaneUniversalPlan0, [
54
- props.id,
55
- (v) => {
56
- el.current = v;
57
- if (!v) return;
58
- applyEscapeProps(v, props);
59
- props.bind?.({
60
- focus: () => v.focus(),
61
- blur: () => v.dismissSoftInput?.() ?? v.blur(),
62
- native: v
63
- });
64
- },
65
- cx(props.className),
66
- {
67
- ...props.style,
68
- ...props.placeholderTextColor ? { placeholderColor: props.placeholderTextColor } : {}
69
- },
70
- props.value,
71
- props.placeholder ?? props.hint,
72
- props.keyboardType === "default" ? void 0 : props.keyboardType,
73
- props.returnKeyType,
74
- props.editable,
75
- (e) => fit(e.object),
76
- (e) => props.onChange?.(e.value),
77
- props.onSubmit,
78
- props.onFocus,
79
- props.onBlur
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 { TextArea };
125
+ export { Text };
@@ -1,47 +1,43 @@
1
1
  import { cx } from "./ui2.js";
2
- import { defineUniversalComponent, memo, universalComponent, universalIf, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
3
- import { isAndroid, isIOS } from "@nativescript/core";
4
- //#region src/List.native.tsrx
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": "gridlayout",
8
+ "type": "label",
9
+ "propsSlot": 0,
8
10
  "children": [{
9
- "kind": "slot",
10
- "slot": 0
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": "listview",
21
+ "type": "span",
16
22
  "propsSlot": 0
17
23
  });
18
- var __octaneUniversalPlan2 = universalPlan("nativescript", {
19
- "kind": "slot",
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
- "items",
54
- props.items
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
- "iosEstimatedRowHeight",
59
- isIOS ? props.estimatedItemHeight : void 0
63
+ "text",
64
+ runText(props)
60
65
  ],
61
66
  [
62
67
  "set",
63
- "onLoadMoreItems",
64
- props.onEndReached
68
+ "className",
69
+ cx(props.className)
65
70
  ],
71
+ ["spread", props.style],
66
72
  [
67
73
  "set",
68
- "renderItem",
69
- (item, index) => universalValue(__octaneUniversalPlan0, [props.renderItem(item, index)])
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 { List };
80
+ export { RichText, RichTextSpan };
@@ -1,55 +1,116 @@
1
1
  import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { layoutChildProps } from "./ui4.js";
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/ScrollView.native.tsrx
6
+ //#region src/Pressable.native.tsrx
6
7
  var __octaneUniversalPlan0 = universalPlan("nativescript", {
7
8
  "kind": "host",
8
- "type": "scrollview",
9
+ "type": "flexboxlayout",
9
10
  "propsSlot": 0,
10
11
  "children": [{
11
- "kind": "host",
12
- "type": "flexboxlayout",
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 ScrollView = defineUniversalComponent("nativescript", function ScrollView(props) {
21
- return universalValue(__octaneUniversalPlan0, [
22
- universalProps([
23
- [
24
- "set",
25
- "ref",
26
- (v) => applyEscapeProps(v, props)
27
- ],
28
- [
29
- "set",
30
- "id",
31
- props.id
32
- ],
33
- ["spread", layoutChildProps(props)],
34
- [
35
- "set",
36
- "className",
37
- cx(props.className)
38
- ],
39
- [
40
- "set",
41
- "style",
42
- props.style
43
- ],
44
- [
45
- "set",
46
- "orientation",
47
- props.horizontal ? "horizontal" : "vertical"
48
- ]
49
- ]),
50
- props.horizontal ? "row" : "column",
51
- props.children
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 { ScrollView };
116
+ export { Pressable };
@@ -1,47 +1,34 @@
1
- import { cx } from "./ui2.js";
2
- import { applyEscapeProps } from "./ui3.js";
3
- import { layoutChildProps } from "./ui4.js";
4
- import { defineUniversalComponent, universalPlan, universalProps, universalValue } from "@nativescript-community/octane";
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": "image",
9
- "propsSlot": 0
7
+ "type": "flexboxlayout",
8
+ "props": { "flexDirection": "row" },
9
+ "children": [{
10
+ "kind": "slot",
11
+ "slot": 0
12
+ }]
10
13
  });
11
- var Image = defineUniversalComponent("nativescript", function Image(props) {
12
- return universalValue(__octaneUniversalPlan0, [universalProps([
13
- [
14
- "set",
15
- "ref",
16
- (v) => applyEscapeProps(v, props)
17
- ],
18
- [
19
- "set",
20
- "id",
21
- props.id
22
- ],
23
- ["spread", layoutChildProps(props)],
24
- [
25
- "set",
26
- "className",
27
- cx(props.className)
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 { Image };
34
+ export { Link };