@octane-xplat/picker 0.7.3 → 0.9.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/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/picker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Select control for Octane xplat — web select + SwiftUI picker (iOS) / Material dropdown (Android)",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"android",
|
|
7
|
+
"combobox",
|
|
8
8
|
"cross-platform",
|
|
9
|
-
"picker",
|
|
10
|
-
"select",
|
|
11
9
|
"dropdown",
|
|
12
|
-
"combobox",
|
|
13
|
-
"nativescript",
|
|
14
10
|
"ios",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
11
|
+
"nativescript",
|
|
12
|
+
"octane",
|
|
13
|
+
"picker",
|
|
14
|
+
"select",
|
|
15
|
+
"web",
|
|
16
|
+
"xplat"
|
|
17
17
|
],
|
|
18
|
-
"license": "MIT",
|
|
19
18
|
"homepage": "https://github.com/octane-xplat/octane-xplat/tree/main/packages/picker",
|
|
19
|
+
"license": "MIT",
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "
|
|
22
|
+
"url": "https://github.com/octane-xplat/octane-xplat",
|
|
23
23
|
"directory": "packages/picker"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
@@ -51,10 +51,11 @@
|
|
|
51
51
|
"@nativescript/swift-ui": "4.0.2"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@nativescript-community/octane": "0.2.
|
|
54
|
+
"@nativescript-community/octane": "0.2.4",
|
|
55
55
|
"@nativescript/core": "9.1.2",
|
|
56
56
|
"@octanejs/vite-plugin": "0.1.61",
|
|
57
57
|
"octane": "0.6.3",
|
|
58
|
+
"tsrx-typegen": "0.2.1",
|
|
58
59
|
"typescript": "5.9.3",
|
|
59
60
|
"vite": "8.3.0"
|
|
60
61
|
},
|
|
@@ -81,6 +82,8 @@
|
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
84
|
"scripts": {
|
|
84
|
-
"build": "vite build && vite build --mode native && tsc -p tsconfig.types.json && node ../../scripts/check-native-dist.mjs"
|
|
85
|
+
"build": "vite build && vite build --mode native && tsc -p tsconfig.types.json && node ../../scripts/check-native-dist.mjs",
|
|
86
|
+
"test:packed": "node tests/packed-consumer.mjs",
|
|
87
|
+
"pack:check": "tsrx-typegen --pack-check"
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -34,6 +34,7 @@ export function MaterialDropdown(props: MaterialDropdownProps) @{
|
|
|
34
34
|
value: selectedKey,
|
|
35
35
|
disabled: props.enabled === false ? 1 : 0,
|
|
36
36
|
}
|
|
37
|
+
|
|
37
38
|
const update = (nextKey: string) => {
|
|
38
39
|
if (!controlled) setInternalKey(nextKey)
|
|
39
40
|
props.onSelectedKeyChange?.(nextKey)
|
package/types/android/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { UniversalComponent } from 'octane/universal'
|
|
2
|
-
|
|
3
1
|
export interface MaterialDropdownItem {
|
|
4
2
|
key: string
|
|
5
3
|
text: string
|
|
@@ -19,4 +17,4 @@ export interface MaterialDropdownProps {
|
|
|
19
17
|
accessibilityLabel?: string
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
export declare
|
|
20
|
+
export declare function MaterialDropdown(props: MaterialDropdownProps): unknown
|
package/types/ios/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { UniversalComponent } from 'octane/universal'
|
|
2
|
-
|
|
3
1
|
export interface SwiftUIPickerOption {
|
|
4
2
|
id: string
|
|
5
3
|
title: string
|
|
@@ -19,4 +17,4 @@ export interface SwiftUIPickerProps {
|
|
|
19
17
|
accessibilityLabel?: string
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
export declare
|
|
20
|
+
export declare function SwiftUIPicker(props: SwiftUIPickerProps): unknown
|
package/types/web/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { UniversalComponent } from 'octane/universal'
|
|
2
|
-
|
|
3
1
|
export interface SelectOption {
|
|
4
2
|
value: string
|
|
5
3
|
label: string
|
|
@@ -19,4 +17,4 @@ export interface SelectProps {
|
|
|
19
17
|
accessibilityLabel?: string
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
export declare
|
|
20
|
+
export declare function Select(props: SelectProps): unknown
|