react-native-platform-components 1.1.0 → 1.3.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 +23 -12
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/platformcomponents/PCDatePickerView.kt +46 -2
- package/android/src/main/java/com/platformcomponents/PCNativeTheme.kt +174 -0
- package/android/src/main/java/com/platformcomponents/PCNativeThemeModule.kt +45 -0
- package/android/src/main/java/com/platformcomponents/PCSegmentedControlView.kt +36 -3
- package/android/src/main/java/com/platformcomponents/PCSelectionMenuView.kt +14 -0
- package/android/src/main/java/com/platformcomponents/PCThemeSupport.kt +40 -5
- package/android/src/main/java/com/platformcomponents/PlatformComponentsPackage.kt +25 -5
- package/android/src/main/jni/CMakeLists.txt +13 -1
- package/android/src/main/res/values/styles.xml +131 -0
- package/ios/PCNativeTheme.swift +56 -0
- package/ios/PCNativeThemeModule.mm +49 -0
- package/ios/PCSelectionMenu.swift +9 -1
- package/lib/commonjs/ContextMenuNativeComponent.ts +5 -4
- package/lib/commonjs/DatePickerNativeComponent.ts +17 -11
- package/lib/commonjs/LiquidGlass.js +24 -4
- package/lib/commonjs/LiquidGlass.js.map +1 -1
- package/lib/commonjs/LiquidGlassNativeComponent.ts +6 -5
- package/lib/commonjs/NativePlatformComponentsTheme.js +10 -0
- package/lib/commonjs/NativePlatformComponentsTheme.js.map +1 -0
- package/lib/commonjs/NativeTheme.js +51 -0
- package/lib/commonjs/NativeTheme.js.map +1 -0
- package/lib/commonjs/SegmentedControlNativeComponent.ts +12 -11
- package/lib/commonjs/SelectionMenuNativeComponent.ts +6 -5
- package/lib/commonjs/codegenTypes.js +6 -0
- package/lib/commonjs/codegenTypes.js.map +1 -0
- package/lib/commonjs/index.js +11 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +10 -1
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/module/ContextMenuNativeComponent.ts +5 -4
- package/lib/module/DatePickerNativeComponent.ts +17 -11
- package/lib/module/LiquidGlass.js +24 -4
- package/lib/module/LiquidGlass.js.map +1 -1
- package/lib/module/LiquidGlassNativeComponent.ts +6 -5
- package/lib/module/NativePlatformComponentsTheme.js +7 -0
- package/lib/module/NativePlatformComponentsTheme.js.map +1 -0
- package/lib/module/NativeTheme.js +45 -0
- package/lib/module/NativeTheme.js.map +1 -0
- package/lib/module/SegmentedControlNativeComponent.ts +12 -11
- package/lib/module/SelectionMenuNativeComponent.ts +6 -5
- package/lib/module/codegenTypes.js +4 -0
- package/lib/module/codegenTypes.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +7 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts +5 -4
- package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts +12 -11
- package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/LiquidGlass.d.ts +4 -3
- package/lib/typescript/commonjs/src/LiquidGlass.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts +6 -5
- package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/NativePlatformComponentsTheme.d.ts +19 -0
- package/lib/typescript/commonjs/src/NativePlatformComponentsTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeTheme.d.ts +30 -0
- package/lib/typescript/commonjs/src/NativeTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts +7 -6
- package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts +6 -5
- package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/codegenTypes.d.ts +12 -0
- package/lib/typescript/commonjs/src/codegenTypes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.web.d.ts +8 -1
- package/lib/typescript/commonjs/src/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sharedTypes.d.ts +2 -2
- package/lib/typescript/commonjs/src/sharedTypes.d.ts.map +1 -1
- package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts +5 -4
- package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/DatePickerNativeComponent.d.ts +12 -11
- package/lib/typescript/module/src/DatePickerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/LiquidGlass.d.ts +4 -3
- package/lib/typescript/module/src/LiquidGlass.d.ts.map +1 -1
- package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts +6 -5
- package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/NativePlatformComponentsTheme.d.ts +19 -0
- package/lib/typescript/module/src/NativePlatformComponentsTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeTheme.d.ts +30 -0
- package/lib/typescript/module/src/NativeTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts +7 -6
- package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts +6 -5
- package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/codegenTypes.d.ts +12 -0
- package/lib/typescript/module/src/codegenTypes.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +1 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.web.d.ts +8 -1
- package/lib/typescript/module/src/index.web.d.ts.map +1 -1
- package/lib/typescript/module/src/sharedTypes.d.ts +2 -2
- package/lib/typescript/module/src/sharedTypes.d.ts.map +1 -1
- package/package.json +8 -4
- package/shared/PCDatePickerState-custom.h +2 -2
- package/shared/PCSegmentedControlState-custom.h +2 -2
- package/shared/PCSelectionMenuState-custom.h +2 -2
- package/src/ContextMenuNativeComponent.ts +5 -4
- package/src/DatePickerNativeComponent.ts +17 -11
- package/src/LiquidGlass.tsx +24 -5
- package/src/LiquidGlassNativeComponent.ts +6 -5
- package/src/NativePlatformComponentsTheme.ts +22 -0
- package/src/NativeTheme.ts +53 -0
- package/src/SegmentedControlNativeComponent.ts +12 -11
- package/src/SelectionMenuNativeComponent.ts +6 -5
- package/src/codegenTypes.ts +40 -0
- package/src/index.tsx +1 -0
- package/src/index.web.tsx +17 -1
- package/src/sharedTypes.ts +2 -2
- /package/{app.plugin.cjs → app.plugin.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { DirectEventHandler, Float, WithDefault } from './codegenTypes';
|
|
2
3
|
/**
|
|
3
4
|
* Glass effect intensity/style.
|
|
4
5
|
* - 'clear': More transparent, subtle glass effect
|
|
@@ -54,9 +55,9 @@ export type LiquidGlassAndroidProps = Readonly<{
|
|
|
54
55
|
*/
|
|
55
56
|
export type LiquidGlassPressEvent = Readonly<{
|
|
56
57
|
/** X coordinate of touch relative to view bounds */
|
|
57
|
-
x:
|
|
58
|
+
x: Float;
|
|
58
59
|
/** Y coordinate of touch relative to view bounds */
|
|
59
|
-
y:
|
|
60
|
+
y: Float;
|
|
60
61
|
}>;
|
|
61
62
|
export interface LiquidGlassNativeProps extends ViewProps {
|
|
62
63
|
/**
|
|
@@ -64,7 +65,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
64
65
|
* Applied uniformly to all corners.
|
|
65
66
|
* @default 0
|
|
66
67
|
*/
|
|
67
|
-
cornerRadius?:
|
|
68
|
+
cornerRadius?: WithDefault<Float, 0>;
|
|
68
69
|
/**
|
|
69
70
|
* iOS-specific props.
|
|
70
71
|
*/
|
|
@@ -77,7 +78,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
77
78
|
* Fired when the glass view is pressed.
|
|
78
79
|
* Includes touch coordinates relative to view bounds.
|
|
79
80
|
*/
|
|
80
|
-
onGlassPress?:
|
|
81
|
+
onGlassPress?: DirectEventHandler<LiquidGlassPressEvent>;
|
|
81
82
|
}
|
|
82
83
|
declare const _default: HostComponent<LiquidGlassNativeProps>;
|
|
83
84
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"LiquidGlassNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,oDAAoD;IACpD,CAAC,EAAE,KAAK,CAAC;IACT,oDAAoD;IACpD,CAAC,EAAE,KAAK,CAAC;CACV,CAAC,CAAC;AAEH,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAErC;;OAEG;IACH,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAElC;;;OAGG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAC1D;wBAII,aAAa,CAAC,sBAAsB,CAAC;AAF1C,wBAE2C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import type { UnsafeObject } from './codegenTypes';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
/**
|
|
5
|
+
* `{ primary }`, where `primary` is a color from `processColor`. An empty
|
|
6
|
+
* object restores the app's own theme colors.
|
|
7
|
+
*/
|
|
8
|
+
setTheme(theme: UnsafeObject): void;
|
|
9
|
+
/**
|
|
10
|
+
* Whether this build can render Liquid Glass: true only when the library was
|
|
11
|
+
* compiled against the iOS 26 SDK *and* the device runs iOS 26 or newer.
|
|
12
|
+
* Built with an older Xcode, the glass code is compiled out and the views
|
|
13
|
+
* fall back to a blur, so the device version alone cannot answer this.
|
|
14
|
+
*/
|
|
15
|
+
isLiquidGlassSupported(): boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: Spec | null | undefined;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=NativePlatformComponentsTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativePlatformComponentsTheme.d.ts","sourceRoot":"","sources":["../../../../src/NativePlatformComponentsTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,sBAAsB,IAAI,OAAO,CAAC;CACnC;;AAED,wBAAwE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* The part of an app theme that is applied to the native platform theme. A
|
|
4
|
+
* React Navigation theme has this shape, so it can be passed as is.
|
|
5
|
+
*/
|
|
6
|
+
export type NativeTheme = {
|
|
7
|
+
colors: {
|
|
8
|
+
/**
|
|
9
|
+
* Brand color. Android generates a Material 3 color scheme from it for
|
|
10
|
+
* light and dark mode (Android 13+); iOS uses it as the tint color.
|
|
11
|
+
*/
|
|
12
|
+
primary: ColorValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Applies the theme's brand color to the native platform theme, app-wide:
|
|
17
|
+
* these components and other native views that use the theme colors (the
|
|
18
|
+
* window tint color on iOS, the Material theme on Android). Pass `null` to
|
|
19
|
+
* restore the app's own theme colors.
|
|
20
|
+
*
|
|
21
|
+
* Light and dark mode follow the native appearance; use
|
|
22
|
+
* `Appearance.setColorScheme` to change it from JavaScript.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNativeTheme(theme: NativeTheme | null): void;
|
|
25
|
+
/**
|
|
26
|
+
* Keeps the native platform theme's brand color in sync with `theme`. Call it
|
|
27
|
+
* once, near the root of the app. See {@link setNativeTheme}.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useNativeTheme(theme: NativeTheme | null | undefined): void;
|
|
30
|
+
//# sourceMappingURL=NativeTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeTheme.d.ts","sourceRoot":"","sources":["../../../../src/NativeTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI7D;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE;QACN;;;WAGG;QACH,OAAO,EAAE,UAAU,CAAC;KACrB,CAAC;CACH,CAAC;AAMF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAE9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAW1E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Double, Int32, WithDefault } from './codegenTypes';
|
|
2
3
|
/**
|
|
3
4
|
* A single segment in the control.
|
|
4
5
|
*
|
|
@@ -13,7 +14,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
13
14
|
iconType: string;
|
|
14
15
|
iconName: string;
|
|
15
16
|
iconUri: string;
|
|
16
|
-
iconScale:
|
|
17
|
+
iconScale: Double;
|
|
17
18
|
iconTinted: string;
|
|
18
19
|
badge: string;
|
|
19
20
|
accessibilityLabel: string;
|
|
@@ -23,7 +24,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
23
24
|
*/
|
|
24
25
|
export type SegmentedControlSelectEvent = Readonly<{
|
|
25
26
|
/** Selected segment index. -1 means the selection was cleared. */
|
|
26
|
-
index:
|
|
27
|
+
index: Int32;
|
|
27
28
|
/** Selected segment value. Empty when the selection was cleared. */
|
|
28
29
|
value: string;
|
|
29
30
|
}>;
|
|
@@ -36,7 +37,7 @@ export type SegmentedControlLabelVisibility = 'auto' | 'labeled' | 'unlabeled';
|
|
|
36
37
|
*/
|
|
37
38
|
export type LabelStyleProps = Readonly<{
|
|
38
39
|
fontFamily?: string;
|
|
39
|
-
fontSize?:
|
|
40
|
+
fontSize?: Double;
|
|
40
41
|
fontWeight?: string;
|
|
41
42
|
fontStyle?: string;
|
|
42
43
|
}>;
|
|
@@ -65,7 +66,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
65
66
|
* Controlled selection by `value`.
|
|
66
67
|
* Empty string means "no selection".
|
|
67
68
|
*/
|
|
68
|
-
selectedValue?:
|
|
69
|
+
selectedValue?: WithDefault<string, ''>;
|
|
69
70
|
/**
|
|
70
71
|
* Enabled / disabled state.
|
|
71
72
|
*/
|
|
@@ -93,7 +94,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
93
94
|
/**
|
|
94
95
|
* Fired when the user selects a segment.
|
|
95
96
|
*/
|
|
96
|
-
onSelect?:
|
|
97
|
+
onSelect?: BubblingEventHandler<SegmentedControlSelectEvent>;
|
|
97
98
|
ios?: IOSProps;
|
|
98
99
|
android?: AndroidProps;
|
|
99
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControlNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControlNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SegmentedControlNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControlNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,EACN,KAAK,EACL,WAAW,EACZ,MAAM,gBAAgB,CAAC;A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;AAEH,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAEjD;;;OAGG;IACH,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAExC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,0CAA0C;IAC1C,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAElC,iDAAiD;IACjD,eAAe,CAAC,EAAE,UAAU,CAAC;IAE7B,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAE/B,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,8CAA8C;IAC9C,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,kBAAkB;IAClB,UAAU,CAAC,EAAE,eAAe,CAAC;IAE7B,8CAA8C;IAC9C,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAElC,yCAAyC;IACzC,cAAc,CAAC,EAAE,UAAU,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAE7D,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;wBAII,aAAa,CAAC,qBAAqB,CAAC;AAFzC,wBAE0C"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Int32, WithDefault } from './codegenTypes';
|
|
2
3
|
/**
|
|
3
4
|
* A single option in the menu.
|
|
4
5
|
*/
|
|
@@ -11,7 +12,7 @@ export type SelectionMenuOption = Readonly<{
|
|
|
11
12
|
*/
|
|
12
13
|
export type SelectionMenuSelectEvent = Readonly<{
|
|
13
14
|
/** Selected option index (implementation detail; stable for this render) */
|
|
14
|
-
index:
|
|
15
|
+
index: Int32;
|
|
15
16
|
/** Selected option label */
|
|
16
17
|
label: string;
|
|
17
18
|
/** Selected option data payload (source of truth) */
|
|
@@ -44,7 +45,7 @@ export interface SelectionMenuProps extends ViewProps {
|
|
|
44
45
|
* - Empty string means "no selection".
|
|
45
46
|
* - Native should treat this as the single source of truth.
|
|
46
47
|
*/
|
|
47
|
-
selectedData?:
|
|
48
|
+
selectedData?: WithDefault<string, ''>;
|
|
48
49
|
/**
|
|
49
50
|
* Enabled / disabled state.
|
|
50
51
|
*/
|
|
@@ -65,11 +66,11 @@ export interface SelectionMenuProps extends ViewProps {
|
|
|
65
66
|
/**
|
|
66
67
|
* Fired when the user selects an option.
|
|
67
68
|
*/
|
|
68
|
-
onSelect?:
|
|
69
|
+
onSelect?: BubblingEventHandler<SelectionMenuSelectEvent>;
|
|
69
70
|
/**
|
|
70
71
|
* Fired when dismissed without selection.
|
|
71
72
|
*/
|
|
72
|
-
onRequestClose?:
|
|
73
|
+
onRequestClose?: BubblingEventHandler<Readonly<{}>>;
|
|
73
74
|
ios?: IOSProps;
|
|
74
75
|
android?: AndroidProps;
|
|
75
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionMenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SelectionMenuNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SelectionMenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SelectionMenuNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,KAAK,EAAE,MAAM,CAA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AE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;wBAII,aAAa,CAAC,kBAAkB,CAAC;AAFtC,wBAEuC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NativeSyntheticEvent } from 'react-native';
|
|
2
|
+
export type BubblingEventHandler<T, _PaperName extends string | never = never> = (event: NativeSyntheticEvent<T>) => void | Promise<void>;
|
|
3
|
+
export type DirectEventHandler<T, _PaperName extends string | never = never> = (event: NativeSyntheticEvent<T>) => void | Promise<void>;
|
|
4
|
+
export type Double = number;
|
|
5
|
+
export type Float = number;
|
|
6
|
+
export type Int32 = number;
|
|
7
|
+
export type UnsafeObject = object;
|
|
8
|
+
export type UnsafeMixed = unknown;
|
|
9
|
+
type DefaultTypes = number | boolean | string | ReadonlyArray<string>;
|
|
10
|
+
export type WithDefault<Type extends DefaultTypes, _Value extends Type | string | undefined | null> = Type | undefined | null;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=codegenTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegenTypes.d.ts","sourceRoot":"","sources":["../../../../src/codegenTypes.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAIzD,MAAM,MAAM,oBAAoB,CAC9B,CAAC,EACD,UAAU,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,IACvC,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,CAAC,CAAC,EAAE,UAAU,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,IAAI,CAC7E,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAC3B,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAG1B,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAC5B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC;AAC3B,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC;AAElC,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;AAEtE,MAAM,MAAM,WAAW,CACrB,IAAI,SAAS,YAAY,EACzB,MAAM,SAAS,IAAI,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,IAC7C,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import type { ColorValue, StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
4
4
|
export type Visible = 'open' | 'closed';
|
|
5
5
|
export type Presentation = 'modal' | 'embedded';
|
|
6
6
|
export type AndroidMaterialMode = 'system' | 'm3';
|
|
@@ -124,4 +124,11 @@ export interface LiquidGlassProps extends ViewProps {
|
|
|
124
124
|
}
|
|
125
125
|
export declare const LiquidGlass: ({ children, }: LiquidGlassProps) => React.ReactElement | null;
|
|
126
126
|
export declare const isLiquidGlassSupported = false;
|
|
127
|
+
export type NativeTheme = {
|
|
128
|
+
colors: {
|
|
129
|
+
primary: ColorValue;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
export declare const setNativeTheme: (_theme: NativeTheme | null) => void;
|
|
133
|
+
export declare const useNativeTheme: (_theme: NativeTheme | null | undefined) => void;
|
|
127
134
|
//# sourceMappingURL=index.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/index.web.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/index.web.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AACxC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAChD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAMlD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,CAAC,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AAQ,WAAW,GAAG,IAAI,KAAG,IAAU,CAAC;AAEvE,eAAO,MAAM,cAAc,GACzB,QAAQ,WAAW,GAAG,IAAI,GAAG,SAAS,KACrC,IAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BubblingEventHandler } from './codegenTypes';
|
|
2
2
|
/** Shared "open/closed" control state. */
|
|
3
3
|
export type Visible = 'open' | 'closed';
|
|
4
4
|
/** Shared presentation mode for pickers/menus. */
|
|
@@ -8,5 +8,5 @@ export type AndroidMaterialMode = 'system' | 'm3';
|
|
|
8
8
|
/** Common event empty payload type. */
|
|
9
9
|
export type EmptyEvent = Readonly<{}>;
|
|
10
10
|
/** Convenience alias (optional). */
|
|
11
|
-
export type Bubbling<T> =
|
|
11
|
+
export type Bubbling<T> = BubblingEventHandler<T>;
|
|
12
12
|
//# sourceMappingURL=sharedTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedTypes.d.ts","sourceRoot":"","sources":["../../../../src/sharedTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sharedTypes.d.ts","sourceRoot":"","sources":["../../../../src/sharedTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,0CAA0C;AAC1C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExC,kDAAkD;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhD,4CAA4C;AAC5C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAElD,uCAAuC;AACvC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEtC,oCAAoC;AACpC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler } from './codegenTypes.js';
|
|
2
3
|
/**
|
|
3
4
|
* Attributes for a context menu action.
|
|
4
5
|
*/
|
|
@@ -105,15 +106,15 @@ export interface ContextMenuProps extends ViewProps {
|
|
|
105
106
|
/**
|
|
106
107
|
* Fired when user presses an action.
|
|
107
108
|
*/
|
|
108
|
-
onPressAction?:
|
|
109
|
+
onPressAction?: BubblingEventHandler<ContextMenuPressActionEvent>;
|
|
109
110
|
/**
|
|
110
111
|
* Fired when menu opens.
|
|
111
112
|
*/
|
|
112
|
-
onMenuOpen?:
|
|
113
|
+
onMenuOpen?: BubblingEventHandler<Readonly<{}>>;
|
|
113
114
|
/**
|
|
114
115
|
* Fired when menu closes.
|
|
115
116
|
*/
|
|
116
|
-
onMenuClose?:
|
|
117
|
+
onMenuClose?: BubblingEventHandler<Readonly<{}>>;
|
|
117
118
|
ios?: IOSProps;
|
|
118
119
|
android?: AndroidProps;
|
|
119
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/ContextMenuNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"ContextMenuNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/ContextMenuNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAgB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB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ACzC,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,KAAK,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,wCAAwC;IACxC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,yCAAyC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAE1C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAElE;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IAEjD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;wBAII,aAAa,CAAC,gBAAgB,CAAC;AAFpC,wBAEqC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Double, Int32, WithDefault } from './codegenTypes.js';
|
|
3
|
+
export type TimestampMs = Double;
|
|
3
4
|
export type DateChangeEvent = {
|
|
4
|
-
timestampMs:
|
|
5
|
+
timestampMs: Double;
|
|
5
6
|
confirmed: boolean;
|
|
6
7
|
};
|
|
7
8
|
export type DatePickerMode = 'date' | 'time' | 'dateAndTime' | 'countDownTimer';
|
|
@@ -11,13 +12,13 @@ export type IOSRoundsToMinuteInterval = 'inherit' | 'round' | 'noRound';
|
|
|
11
12
|
export type IOSConfirmToolbar = 'show' | 'hide';
|
|
12
13
|
export type IOSProps = {
|
|
13
14
|
preferredStyle?: string;
|
|
14
|
-
countDownDurationSeconds?:
|
|
15
|
-
minuteInterval?:
|
|
15
|
+
countDownDurationSeconds?: Double;
|
|
16
|
+
minuteInterval?: Int32;
|
|
16
17
|
roundsToMinuteInterval?: string;
|
|
17
18
|
confirmToolbar?: string;
|
|
18
19
|
};
|
|
19
20
|
export type AndroidProps = {
|
|
20
|
-
firstDayOfWeek?:
|
|
21
|
+
firstDayOfWeek?: Int32;
|
|
21
22
|
material?: string;
|
|
22
23
|
dialogTitle?: string;
|
|
23
24
|
positiveButtonTitle?: string;
|
|
@@ -33,9 +34,9 @@ export type MacOSProps = Readonly<{}>;
|
|
|
33
34
|
*/
|
|
34
35
|
export type CommonProps = {
|
|
35
36
|
mode?: string;
|
|
36
|
-
dateMs?:
|
|
37
|
-
minDateMs?:
|
|
38
|
-
maxDateMs?:
|
|
37
|
+
dateMs?: WithDefault<TimestampMs, -9007199254740991>;
|
|
38
|
+
minDateMs?: WithDefault<TimestampMs, -9007199254740991>;
|
|
39
|
+
maxDateMs?: WithDefault<TimestampMs, -9007199254740991>;
|
|
39
40
|
locale?: string;
|
|
40
41
|
timeZoneName?: string;
|
|
41
42
|
/**
|
|
@@ -49,8 +50,8 @@ export type CommonProps = {
|
|
|
49
50
|
export interface NativeProps extends ViewProps, CommonProps {
|
|
50
51
|
ios?: IOSProps;
|
|
51
52
|
android?: AndroidProps;
|
|
52
|
-
onConfirm?:
|
|
53
|
-
onClosed?:
|
|
53
|
+
onConfirm?: BubblingEventHandler<DateChangeEvent>;
|
|
54
|
+
onClosed?: BubblingEventHandler<Readonly<{}>>;
|
|
54
55
|
}
|
|
55
56
|
declare const _default: HostComponent<NativeProps>;
|
|
56
57
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePickerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/DatePickerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"DatePickerNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/DatePickerNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,EACN,KAAK,EACL,WAAW,EACZ,MAAM,mBAAgB,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,MAAM,MAAM,eAAe,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,UAAU,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD,MAAM,MAAM,QAAQ,GAAG;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YA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Props } from 'react-native';
|
|
|
3
3
|
import { type LiquidGlassColorScheme, type LiquidGlassEffect, type LiquidGlassPressEvent } from './LiquidGlassNativeComponent';
|
|
4
4
|
export type { LiquidGlassEffect, LiquidGlassColorScheme, LiquidGlassPressEvent, };
|
|
5
5
|
/**
|
|
6
|
-
* Whether the LiquidGlass effect is supported
|
|
7
|
-
*
|
|
6
|
+
* Whether the LiquidGlass effect is supported here: iOS 26 or newer, in a
|
|
7
|
+
* build compiled against the iOS 26 SDK. False on Android, on older iOS, and
|
|
8
|
+
* in builds made with an older Xcode, where the views fall back to a blur.
|
|
8
9
|
*
|
|
9
|
-
* Use this to conditionally render fallback UI
|
|
10
|
+
* Use this to conditionally render fallback UI.
|
|
10
11
|
*/
|
|
11
12
|
export declare const isLiquidGlassSupported: boolean;
|
|
12
13
|
export interface LiquidGlassProps extends ViewProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlass.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlass.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,OAA0B,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"LiquidGlass.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlass.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAExD,OAA0B,EACxB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EACV,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GACtB,CAAC;AAoBF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAAqC,CAAC;AAE3E,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ;;;;;;WAMG;QACH,MAAM,CAAC,EAAE,iBAAiB,CAAC;QAE3B;;;;;;;WAOG;QACH,WAAW,CAAC,EAAE,OAAO,CAAC;QAEtB;;;;;WAKG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;;;WAMG;QACH,WAAW,CAAC,EAAE,sBAAsB,CAAC;KACtC,CAAC;IAEF;;;;OAIG;IACH,OAAO,CAAC,EAAE;QACR;;;WAGG;QACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;KAClC,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAEpD,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAkDvE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { DirectEventHandler, Float, WithDefault } from './codegenTypes.js';
|
|
2
3
|
/**
|
|
3
4
|
* Glass effect intensity/style.
|
|
4
5
|
* - 'clear': More transparent, subtle glass effect
|
|
@@ -54,9 +55,9 @@ export type LiquidGlassAndroidProps = Readonly<{
|
|
|
54
55
|
*/
|
|
55
56
|
export type LiquidGlassPressEvent = Readonly<{
|
|
56
57
|
/** X coordinate of touch relative to view bounds */
|
|
57
|
-
x:
|
|
58
|
+
x: Float;
|
|
58
59
|
/** Y coordinate of touch relative to view bounds */
|
|
59
|
-
y:
|
|
60
|
+
y: Float;
|
|
60
61
|
}>;
|
|
61
62
|
export interface LiquidGlassNativeProps extends ViewProps {
|
|
62
63
|
/**
|
|
@@ -64,7 +65,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
64
65
|
* Applied uniformly to all corners.
|
|
65
66
|
* @default 0
|
|
66
67
|
*/
|
|
67
|
-
cornerRadius?:
|
|
68
|
+
cornerRadius?: WithDefault<Float, 0>;
|
|
68
69
|
/**
|
|
69
70
|
* iOS-specific props.
|
|
70
71
|
*/
|
|
@@ -77,7 +78,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
77
78
|
* Fired when the glass view is pressed.
|
|
78
79
|
* Includes touch coordinates relative to view bounds.
|
|
79
80
|
*/
|
|
80
|
-
onGlassPress?:
|
|
81
|
+
onGlassPress?: DirectEventHandler<LiquidGlassPressEvent>;
|
|
81
82
|
}
|
|
82
83
|
declare const _default: HostComponent<LiquidGlassNativeProps>;
|
|
83
84
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LiquidGlassNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"LiquidGlassNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/LiquidGlassNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAgB,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,oDAAoD;IACpD,CAAC,EAAE,KAAK,CAAC;IACT,oDAAoD;IACpD,CAAC,EAAE,KAAK,CAAC;CACV,CAAC,CAAC;AAEH,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD;;;;OAIG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAErC;;OAEG;IACH,GAAG,CAAC,EAAE,mBAAmB,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAElC;;;OAGG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAC1D;wBAII,aAAa,CAAC,sBAAsB,CAAC;AAF1C,wBAE2C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import type { UnsafeObject } from './codegenTypes.js';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
/**
|
|
5
|
+
* `{ primary }`, where `primary` is a color from `processColor`. An empty
|
|
6
|
+
* object restores the app's own theme colors.
|
|
7
|
+
*/
|
|
8
|
+
setTheme(theme: UnsafeObject): void;
|
|
9
|
+
/**
|
|
10
|
+
* Whether this build can render Liquid Glass: true only when the library was
|
|
11
|
+
* compiled against the iOS 26 SDK *and* the device runs iOS 26 or newer.
|
|
12
|
+
* Built with an older Xcode, the glass code is compiled out and the views
|
|
13
|
+
* fall back to a blur, so the device version alone cannot answer this.
|
|
14
|
+
*/
|
|
15
|
+
isLiquidGlassSupported(): boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: Spec | null | undefined;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=NativePlatformComponentsTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativePlatformComponentsTheme.d.ts","sourceRoot":"","sources":["../../../../src/NativePlatformComponentsTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAgB,CAAC;AAEnD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAEpC;;;;;OAKG;IACH,sBAAsB,IAAI,OAAO,CAAC;CACnC;;AAED,wBAAwE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* The part of an app theme that is applied to the native platform theme. A
|
|
4
|
+
* React Navigation theme has this shape, so it can be passed as is.
|
|
5
|
+
*/
|
|
6
|
+
export type NativeTheme = {
|
|
7
|
+
colors: {
|
|
8
|
+
/**
|
|
9
|
+
* Brand color. Android generates a Material 3 color scheme from it for
|
|
10
|
+
* light and dark mode (Android 13+); iOS uses it as the tint color.
|
|
11
|
+
*/
|
|
12
|
+
primary: ColorValue;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Applies the theme's brand color to the native platform theme, app-wide:
|
|
17
|
+
* these components and other native views that use the theme colors (the
|
|
18
|
+
* window tint color on iOS, the Material theme on Android). Pass `null` to
|
|
19
|
+
* restore the app's own theme colors.
|
|
20
|
+
*
|
|
21
|
+
* Light and dark mode follow the native appearance; use
|
|
22
|
+
* `Appearance.setColorScheme` to change it from JavaScript.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNativeTheme(theme: NativeTheme | null): void;
|
|
25
|
+
/**
|
|
26
|
+
* Keeps the native platform theme's brand color in sync with `theme`. Call it
|
|
27
|
+
* once, near the root of the app. See {@link setNativeTheme}.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useNativeTheme(theme: NativeTheme | null | undefined): void;
|
|
30
|
+
//# sourceMappingURL=NativeTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeTheme.d.ts","sourceRoot":"","sources":["../../../../src/NativeTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAI7D;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE;QACN;;;WAGG;QACH,OAAO,EAAE,UAAU,CAAC;KACrB,CAAC;CACH,CAAC;AAMF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,IAAI,CAE9D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAW1E"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Double, Int32, WithDefault } from './codegenTypes.js';
|
|
2
3
|
/**
|
|
3
4
|
* A single segment in the control.
|
|
4
5
|
*
|
|
@@ -13,7 +14,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
13
14
|
iconType: string;
|
|
14
15
|
iconName: string;
|
|
15
16
|
iconUri: string;
|
|
16
|
-
iconScale:
|
|
17
|
+
iconScale: Double;
|
|
17
18
|
iconTinted: string;
|
|
18
19
|
badge: string;
|
|
19
20
|
accessibilityLabel: string;
|
|
@@ -23,7 +24,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
23
24
|
*/
|
|
24
25
|
export type SegmentedControlSelectEvent = Readonly<{
|
|
25
26
|
/** Selected segment index. -1 means the selection was cleared. */
|
|
26
|
-
index:
|
|
27
|
+
index: Int32;
|
|
27
28
|
/** Selected segment value. Empty when the selection was cleared. */
|
|
28
29
|
value: string;
|
|
29
30
|
}>;
|
|
@@ -36,7 +37,7 @@ export type SegmentedControlLabelVisibility = 'auto' | 'labeled' | 'unlabeled';
|
|
|
36
37
|
*/
|
|
37
38
|
export type LabelStyleProps = Readonly<{
|
|
38
39
|
fontFamily?: string;
|
|
39
|
-
fontSize?:
|
|
40
|
+
fontSize?: Double;
|
|
40
41
|
fontWeight?: string;
|
|
41
42
|
fontStyle?: string;
|
|
42
43
|
}>;
|
|
@@ -65,7 +66,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
65
66
|
* Controlled selection by `value`.
|
|
66
67
|
* Empty string means "no selection".
|
|
67
68
|
*/
|
|
68
|
-
selectedValue?:
|
|
69
|
+
selectedValue?: WithDefault<string, ''>;
|
|
69
70
|
/**
|
|
70
71
|
* Enabled / disabled state.
|
|
71
72
|
*/
|
|
@@ -93,7 +94,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
93
94
|
/**
|
|
94
95
|
* Fired when the user selects a segment.
|
|
95
96
|
*/
|
|
96
|
-
onSelect?:
|
|
97
|
+
onSelect?: BubblingEventHandler<SegmentedControlSelectEvent>;
|
|
97
98
|
ios?: IOSProps;
|
|
98
99
|
android?: AndroidProps;
|
|
99
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControlNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControlNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SegmentedControlNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControlNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EACV,oBAAoB,EACpB,MAAM,EACN,KAAK,EACL,WAAW,EACZ,MAAM,mBAAgB,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,kEAAkE;IAClE,KAAK,EAAE,KAAK,CAAC;IAEb,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,yCAAyC;AACzC,MAAM,MAAM,6BAA6B,GAAG,SAAS,GAAG,UAAU,CAAC;AAEnE,kDAAkD;AAClD,MAAM,MAAM,+BAA+B,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,Q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