react-native-platform-components 1.2.0 → 1.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 +33 -31
- package/android/src/main/java/com/platformcomponents/PCButtonGroupView.kt +498 -0
- package/android/src/main/java/com/platformcomponents/PCButtonGroupViewManager.kt +191 -0
- package/android/src/main/java/com/platformcomponents/PCButtonSupport.kt +127 -0
- package/android/src/main/java/com/platformcomponents/PCButtonView.kt +345 -0
- package/android/src/main/java/com/platformcomponents/PCButtonViewManager.kt +126 -0
- package/android/src/main/java/com/platformcomponents/PCExpressive.kt +107 -0
- package/android/src/main/java/com/platformcomponents/PCFloatingToolbarView.kt +115 -0
- package/android/src/main/java/com/platformcomponents/PCFloatingToolbarViewManager.kt +65 -0
- package/android/src/main/java/com/platformcomponents/PCNativeThemeModule.kt +3 -0
- package/android/src/main/java/com/platformcomponents/PCSegmentedControlView.kt +13 -5
- package/android/src/main/java/com/platformcomponents/PCSegmentedControlViewManager.kt +6 -1
- package/android/src/main/java/com/platformcomponents/PCTextFieldView.kt +1018 -0
- package/android/src/main/java/com/platformcomponents/PCTextFieldViewManager.kt +248 -0
- package/android/src/main/java/com/platformcomponents/PlatformComponentsPackage.kt +13 -6
- package/android/src/main/jni/CMakeLists.txt +13 -1
- package/android/src/main/res/values/attrs.xml +13 -0
- package/android/src/main/res/values/styles.xml +183 -0
- package/ios/PCButton.h +10 -0
- package/ios/PCButton.mm +196 -0
- package/ios/PCButtonGroup.h +10 -0
- package/ios/PCButtonGroup.mm +256 -0
- package/ios/PCButtonGroupView.swift +254 -0
- package/ios/PCButtonSupport.swift +141 -0
- package/ios/PCButtonView.swift +155 -0
- package/ios/PCFloatingToolbar.h +10 -0
- package/ios/PCFloatingToolbar.mm +76 -0
- package/ios/PCFloatingToolbarView.swift +95 -0
- package/ios/PCNativeThemeModule.mm +13 -0
- package/ios/PCSelectionMenu.swift +9 -1
- package/ios/PCTextField.h +10 -0
- package/ios/PCTextField.mm +391 -0
- package/ios/PCTextFieldView.swift +1012 -0
- package/lib/commonjs/Button.js +77 -0
- package/lib/commonjs/Button.js.map +1 -0
- package/lib/commonjs/ButtonGroup.js +99 -0
- package/lib/commonjs/ButtonGroup.js.map +1 -0
- package/lib/commonjs/ButtonGroupNativeComponent.ts +121 -0
- package/lib/commonjs/ButtonNativeComponent.ts +76 -0
- package/lib/commonjs/ContextMenuNativeComponent.ts +5 -4
- package/lib/commonjs/DatePickerNativeComponent.ts +17 -11
- package/lib/commonjs/FloatingToolbar.js +69 -0
- package/lib/commonjs/FloatingToolbar.js.map +1 -0
- package/lib/commonjs/FloatingToolbarNativeComponent.ts +31 -0
- 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.map +1 -1
- package/lib/commonjs/SegmentedControl.js +11 -85
- package/lib/commonjs/SegmentedControl.js.map +1 -1
- package/lib/commonjs/SegmentedControlNativeComponent.ts +15 -11
- package/lib/commonjs/SelectionMenuNativeComponent.ts +6 -5
- package/lib/commonjs/TextField.js +195 -0
- package/lib/commonjs/TextField.js.map +1 -0
- package/lib/commonjs/TextFieldNativeComponent.ts +218 -0
- package/lib/commonjs/codegenTypes.js +6 -0
- package/lib/commonjs/codegenTypes.js.map +1 -0
- package/lib/commonjs/focusRegistry.js +78 -0
- package/lib/commonjs/focusRegistry.js.map +1 -0
- package/lib/commonjs/icons.js +92 -0
- package/lib/commonjs/icons.js.map +1 -0
- package/lib/commonjs/index.js +66 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +32 -2
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/labelStyle.js +27 -0
- package/lib/commonjs/labelStyle.js.map +1 -0
- package/lib/commonjs/reactNativeInternals.d.js +2 -0
- package/lib/commonjs/reactNativeInternals.d.js.map +1 -0
- package/lib/module/Button.js +70 -0
- package/lib/module/Button.js.map +1 -0
- package/lib/module/ButtonGroup.js +92 -0
- package/lib/module/ButtonGroup.js.map +1 -0
- package/lib/module/ButtonGroupNativeComponent.ts +121 -0
- package/lib/module/ButtonNativeComponent.ts +76 -0
- package/lib/module/ContextMenuNativeComponent.ts +5 -4
- package/lib/module/DatePickerNativeComponent.ts +17 -11
- package/lib/module/FloatingToolbar.js +62 -0
- package/lib/module/FloatingToolbar.js.map +1 -0
- package/lib/module/FloatingToolbarNativeComponent.ts +31 -0
- 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.map +1 -1
- package/lib/module/SegmentedControl.js +12 -87
- package/lib/module/SegmentedControl.js.map +1 -1
- package/lib/module/SegmentedControlNativeComponent.ts +15 -11
- package/lib/module/SelectionMenuNativeComponent.ts +6 -5
- package/lib/module/TextField.js +189 -0
- package/lib/module/TextField.js.map +1 -0
- package/lib/module/TextFieldNativeComponent.ts +218 -0
- package/lib/module/codegenTypes.js +4 -0
- package/lib/module/codegenTypes.js.map +1 -0
- package/lib/module/focusRegistry.js +74 -0
- package/lib/module/focusRegistry.js.map +1 -0
- package/lib/module/icons.js +87 -0
- package/lib/module/icons.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +28 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/labelStyle.js +23 -0
- package/lib/module/labelStyle.js.map +1 -0
- package/lib/module/reactNativeInternals.d.js +2 -0
- package/lib/module/reactNativeInternals.d.js.map +1 -0
- package/lib/typescript/commonjs/docs/sidebars.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/Button.d.ts +76 -0
- package/lib/typescript/commonjs/src/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ButtonGroup.d.ts +102 -0
- package/lib/typescript/commonjs/src/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts +93 -0
- package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts +57 -0
- package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts.map +1 -0
- 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/FloatingToolbar.d.ts +45 -0
- package/lib/typescript/commonjs/src/FloatingToolbar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts +24 -0
- package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
- 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 +10 -2
- package/lib/typescript/commonjs/src/NativePlatformComponentsTheme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SegmentedControl.d.ts +17 -46
- package/lib/typescript/commonjs/src/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts +9 -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/TextField.d.ts +174 -0
- package/lib/typescript/commonjs/src/TextField.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts +162 -0
- package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts.map +1 -0
- 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/focusRegistry.d.ts +13 -0
- package/lib/typescript/commonjs/src/focusRegistry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/icons.d.ts +52 -0
- package/lib/typescript/commonjs/src/icons.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.web.d.ts +121 -0
- package/lib/typescript/commonjs/src/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/labelStyle.d.ts +20 -0
- package/lib/typescript/commonjs/src/labelStyle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/sharedTypes.d.ts +8 -3
- package/lib/typescript/commonjs/src/sharedTypes.d.ts.map +1 -1
- package/lib/typescript/module/docs/sidebars.d.ts.map +1 -1
- package/lib/typescript/module/src/Button.d.ts +76 -0
- package/lib/typescript/module/src/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/ButtonGroup.d.ts +102 -0
- package/lib/typescript/module/src/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts +93 -0
- package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/ButtonNativeComponent.d.ts +57 -0
- package/lib/typescript/module/src/ButtonNativeComponent.d.ts.map +1 -0
- 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/FloatingToolbar.d.ts +45 -0
- package/lib/typescript/module/src/FloatingToolbar.d.ts.map +1 -0
- package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts +24 -0
- package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
- 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 +10 -2
- package/lib/typescript/module/src/NativePlatformComponentsTheme.d.ts.map +1 -1
- package/lib/typescript/module/src/SegmentedControl.d.ts +17 -46
- package/lib/typescript/module/src/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts +9 -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/TextField.d.ts +174 -0
- package/lib/typescript/module/src/TextField.d.ts.map +1 -0
- package/lib/typescript/module/src/TextFieldNativeComponent.d.ts +162 -0
- package/lib/typescript/module/src/TextFieldNativeComponent.d.ts.map +1 -0
- 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/focusRegistry.d.ts +13 -0
- package/lib/typescript/module/src/focusRegistry.d.ts.map +1 -0
- package/lib/typescript/module/src/icons.d.ts +52 -0
- package/lib/typescript/module/src/icons.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +6 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.web.d.ts +121 -0
- package/lib/typescript/module/src/index.web.d.ts.map +1 -1
- package/lib/typescript/module/src/labelStyle.d.ts +20 -0
- package/lib/typescript/module/src/labelStyle.d.ts.map +1 -0
- package/lib/typescript/module/src/sharedTypes.d.ts +8 -3
- package/lib/typescript/module/src/sharedTypes.d.ts.map +1 -1
- package/package.json +28 -6
- package/react-native.config.js +3 -0
- package/shared/PCButtonComponentDescriptors-custom.h +22 -0
- package/shared/PCButtonGroupComponentDescriptors-custom.h +22 -0
- package/shared/PCButtonGroupShadowNode-custom.cpp +48 -0
- package/shared/PCButtonGroupShadowNode-custom.h +55 -0
- package/shared/PCButtonGroupState-custom.h +61 -0
- package/shared/PCButtonShadowNode-custom.cpp +48 -0
- package/shared/PCButtonShadowNode-custom.h +55 -0
- package/shared/PCButtonState-custom.h +61 -0
- package/shared/PCDatePickerState-custom.h +2 -2
- package/shared/PCSegmentedControlState-custom.h +2 -2
- package/shared/PCSelectionMenuState-custom.h +2 -2
- package/shared/PCTextFieldComponentDescriptors-custom.h +22 -0
- package/shared/PCTextFieldShadowNode-custom.cpp +47 -0
- package/shared/PCTextFieldShadowNode-custom.h +55 -0
- package/shared/PCTextFieldState-custom.h +61 -0
- package/shared/react/renderer/components/PlatformComponentsViewSpec/ComponentDescriptors.h +3 -0
- package/src/Button.tsx +144 -0
- package/src/ButtonGroup.tsx +233 -0
- package/src/ButtonGroupNativeComponent.ts +121 -0
- package/src/ButtonNativeComponent.ts +76 -0
- package/src/ContextMenuNativeComponent.ts +5 -4
- package/src/DatePickerNativeComponent.ts +17 -11
- package/src/FloatingToolbar.tsx +113 -0
- package/src/FloatingToolbarNativeComponent.ts +31 -0
- package/src/LiquidGlass.tsx +24 -5
- package/src/LiquidGlassNativeComponent.ts +6 -5
- package/src/NativePlatformComponentsTheme.ts +11 -2
- package/src/SegmentedControl.tsx +26 -118
- package/src/SegmentedControlNativeComponent.ts +15 -11
- package/src/SelectionMenuNativeComponent.ts +6 -5
- package/src/TextField.tsx +494 -0
- package/src/TextFieldNativeComponent.ts +218 -0
- package/src/codegenTypes.ts +40 -0
- package/src/focusRegistry.ts +89 -0
- package/src/icons.ts +116 -0
- package/src/index.tsx +6 -0
- package/src/index.web.tsx +194 -0
- package/src/labelStyle.ts +36 -0
- package/src/reactNativeInternals.d.ts +22 -0
- package/src/sharedTypes.ts +9 -3
- /package/{app.plugin.cjs → app.plugin.js} +0 -0
|
@@ -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,W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EAAE,MAAM,CAAC;IAEjB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,WAAW;IACzD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,SAAS,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAClD,QAAQ,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;CAC/C;wBAII,aAAa,CAAC,WAAW,CAAC;AAF/B,wBAEgC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ColorValue, type ViewProps } from 'react-native';
|
|
3
|
+
/** Glass effect style of the toolbar on iOS 26. */
|
|
4
|
+
export type FloatingToolbarIOSEffect = 'regular' | 'clear';
|
|
5
|
+
/** Material 3 color variant of the toolbar on Android. */
|
|
6
|
+
export type FloatingToolbarAndroidVariant = 'standard' | 'vibrant';
|
|
7
|
+
export interface FloatingToolbarProps extends ViewProps {
|
|
8
|
+
/**
|
|
9
|
+
* Layout direction of the children. Default: `'horizontal'`.
|
|
10
|
+
*/
|
|
11
|
+
orientation?: 'horizontal' | 'vertical';
|
|
12
|
+
/**
|
|
13
|
+
* Container color. Default: the platform's toolbar material (Material 3
|
|
14
|
+
* `surfaceContainer` or `primaryContainer` on Android, Liquid Glass or a
|
|
15
|
+
* blur on iOS). Use this rather than `style.backgroundColor`, which would
|
|
16
|
+
* replace the native shape.
|
|
17
|
+
*/
|
|
18
|
+
color?: ColorValue;
|
|
19
|
+
/**
|
|
20
|
+
* iOS-specific configuration
|
|
21
|
+
*/
|
|
22
|
+
ios?: {
|
|
23
|
+
/**
|
|
24
|
+
* Glass effect style on iOS 26. Older versions use a blur.
|
|
25
|
+
* Default: `'regular'`.
|
|
26
|
+
*/
|
|
27
|
+
effect?: FloatingToolbarIOSEffect;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Android-specific configuration
|
|
31
|
+
*/
|
|
32
|
+
android?: {
|
|
33
|
+
/**
|
|
34
|
+
* Material 3 color variant: `'standard'` (surface) or `'vibrant'`
|
|
35
|
+
* (primary container). Default: `'standard'`.
|
|
36
|
+
*/
|
|
37
|
+
variant?: FloatingToolbarAndroidVariant;
|
|
38
|
+
};
|
|
39
|
+
/** The toolbar's actions, usually `Button`s. */
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
/** Test identifier */
|
|
42
|
+
testID?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare function FloatingToolbar(props: FloatingToolbarProps): React.ReactElement;
|
|
45
|
+
//# sourceMappingURL=FloatingToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/FloatingToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAGL,KAAK,UAAU,EAEf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAItB,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,OAAO,CAAC;AAE3D,0DAA0D;AAC1D,MAAM,MAAM,6BAA6B,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAExC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,GAAG,CAAC,EAAE;QACJ;;;WAGG;QACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;KACnC,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;;WAGG;QACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;KACzC,CAAC;IAEF,gDAAgD;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,oBAAoB,GAC1B,KAAK,CAAC,YAAY,CAkCpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* iOS-specific configuration.
|
|
4
|
+
*/
|
|
5
|
+
export type FloatingToolbarIOSProps = Readonly<{
|
|
6
|
+
/** Glass effect style on iOS 26: 'regular' | 'clear' */
|
|
7
|
+
effect?: string;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* Android-specific configuration.
|
|
11
|
+
*/
|
|
12
|
+
export type FloatingToolbarAndroidProps = Readonly<{
|
|
13
|
+
/** Material color variant: 'standard' | 'vibrant' */
|
|
14
|
+
variant?: string;
|
|
15
|
+
}>;
|
|
16
|
+
export interface FloatingToolbarNativeProps extends ViewProps {
|
|
17
|
+
/** Container color. Default: the platform's toolbar material. */
|
|
18
|
+
color?: ColorValue;
|
|
19
|
+
ios?: FloatingToolbarIOSProps;
|
|
20
|
+
android?: FloatingToolbarAndroidProps;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: HostComponent<FloatingToolbarNativeProps>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=FloatingToolbarNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingToolbarNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/FloatingToolbarNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC7C,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEH,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D,iEAAiE;IACjE,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,GAAG,CAAC,EAAE,uBAAuB,CAAC;IAC9B,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC;wBAII,aAAa,CAAC,0BAA0B,CAAC;AAF9C,wBAE+C"}
|
|
@@ -3,10 +3,11 @@ import { type ViewProps } 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;
|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+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":"LiquidGlassNative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C,qBAAqB,CAAC,CAAC;CAC1D;wBAII,aAAa,CAAC,sBAAsB,CAAC;AAF1C,wBAE2C"}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
|
+
import type { UnsafeObject } from './codegenTypes.js';
|
|
2
3
|
export interface Spec extends TurboModule {
|
|
3
4
|
/**
|
|
4
5
|
* `{ primary }`, where `primary` is a color from `processColor`. An empty
|
|
5
6
|
* object restores the app's own theme colors.
|
|
6
7
|
*/
|
|
7
|
-
setTheme(theme:
|
|
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;
|
|
8
16
|
}
|
|
9
17
|
declare const _default: Spec | null | undefined;
|
|
10
18
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativePlatformComponentsTheme.d.ts","sourceRoot":"","sources":["../../../../src/NativePlatformComponentsTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
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"}
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ColorValue, type
|
|
3
|
-
import { type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* name on Android (the original API).
|
|
9
|
-
* - `{ type: 'sfSymbol' }`: an SF Symbol. iOS only; ignored on Android.
|
|
10
|
-
* - `{ type: 'drawable' }`: a drawable from the app's `res/drawable`.
|
|
11
|
-
* Android only; ignored on iOS.
|
|
12
|
-
* - `{ type: 'image' }`: an image asset (`require('./icon.png')`) or a
|
|
13
|
-
* `{ uri }` source. Works on both platforms. Images are drawn as tinted
|
|
14
|
-
* templates unless `tinted` is `false`.
|
|
15
|
-
*/
|
|
16
|
-
export type SegmentedControlIconSource = string | {
|
|
17
|
-
type: 'sfSymbol';
|
|
18
|
-
name: string;
|
|
19
|
-
} | {
|
|
20
|
-
type: 'drawable';
|
|
21
|
-
name: string;
|
|
22
|
-
} | {
|
|
23
|
-
type: 'image';
|
|
24
|
-
source: ImageRequireSource | ImageURISource;
|
|
25
|
-
tinted?: boolean;
|
|
26
|
-
};
|
|
2
|
+
import { type ColorValue, type ViewProps } from 'react-native';
|
|
3
|
+
import { resolveIcon, type PlatformIcon, type PlatformIconSource } from './icons.js';
|
|
4
|
+
import { type LabelStyle } from './labelStyle.js';
|
|
5
|
+
import type { AndroidMaterialStyle } from './sharedTypes.js';
|
|
6
|
+
/** A single icon source. Alias of {@link PlatformIconSource}. */
|
|
7
|
+
export type SegmentedControlIconSource = PlatformIconSource;
|
|
27
8
|
/**
|
|
28
9
|
* An icon for a segment: a single source used on both platforms, or a
|
|
29
|
-
* per-platform pair
|
|
10
|
+
* per-platform pair. Alias of {@link PlatformIcon}.
|
|
30
11
|
*/
|
|
31
|
-
export type SegmentedControlIcon =
|
|
32
|
-
ios?: SegmentedControlIconSource;
|
|
33
|
-
android?: SegmentedControlIconSource;
|
|
34
|
-
};
|
|
12
|
+
export type SegmentedControlIcon = PlatformIcon;
|
|
35
13
|
/**
|
|
36
14
|
* How labels and icons combine for segments that have an icon.
|
|
37
15
|
*
|
|
@@ -42,15 +20,8 @@ export type SegmentedControlIcon = SegmentedControlIconSource | {
|
|
|
42
20
|
* their label. Screen readers still announce the label on both platforms.
|
|
43
21
|
*/
|
|
44
22
|
export type SegmentedControlLabelVisibility = 'auto' | 'labeled' | 'unlabeled';
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
*/
|
|
48
|
-
export interface SegmentedControlLabelStyle {
|
|
49
|
-
fontFamily?: string;
|
|
50
|
-
fontSize?: number;
|
|
51
|
-
fontWeight?: TextStyle['fontWeight'];
|
|
52
|
-
fontStyle?: 'normal' | 'italic';
|
|
53
|
-
}
|
|
23
|
+
/** Font for segment labels. Alias of {@link LabelStyle}. */
|
|
24
|
+
export type SegmentedControlLabelStyle = LabelStyle;
|
|
54
25
|
/**
|
|
55
26
|
* Badge colors. Both default to the platform look (red with white text).
|
|
56
27
|
*/
|
|
@@ -152,16 +123,16 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
152
123
|
rippleColor?: ColorValue;
|
|
153
124
|
/** Outline color of the segments. */
|
|
154
125
|
strokeColor?: ColorValue;
|
|
126
|
+
/**
|
|
127
|
+
* Material style: the Material 3 Expressive connected buttons (default),
|
|
128
|
+
* or the classic Material 3 segmented buttons.
|
|
129
|
+
*/
|
|
130
|
+
material?: AndroidMaterialStyle;
|
|
155
131
|
};
|
|
156
132
|
/** Test identifier */
|
|
157
133
|
testID?: string;
|
|
158
134
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
* Flattens the public icon shape into the strings native expects, dropping
|
|
162
|
-
* sources that don't apply to the current platform.
|
|
163
|
-
*/
|
|
164
|
-
export declare function resolveSegmentIcon(icon: SegmentedControlIcon | undefined): NativeIconFields;
|
|
135
|
+
/** Flattens a segment icon for native. Alias of {@link resolveIcon}. */
|
|
136
|
+
export declare const resolveSegmentIcon: typeof resolveIcon;
|
|
165
137
|
export declare function SegmentedControl(props: SegmentedControlProps): React.ReactElement;
|
|
166
|
-
export {};
|
|
167
138
|
//# sourceMappingURL=SegmentedControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../../src/SegmentedControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,EAGL,KAAK,UAAU,EAEf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAMtB,OAAO,EACL,WAAW,EACX,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACxB,MAAM,YAAS,CAAC;AACjB,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,iBAAc,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAe,CAAC;AAO1D,iEAAiE;AACjE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAE5D;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,MAAM,+BAA+B,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,CAAC;AAE/E,4DAA4D;AAC5D,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IAEd,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEn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C,EAAE,UAAU,CAAC;QAEzB;;;WAGG;QACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;KACjC,CAAC;IAEF,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,oBAAc,CAAC;AAM9C,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,qBAAqB,GAC3B,KAAK,CAAC,YAAY,CA8GpB"}
|
|
@@ -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
|
}>;
|
|
@@ -55,6 +56,8 @@ export type IOSProps = Readonly<{
|
|
|
55
56
|
export type AndroidProps = Readonly<{
|
|
56
57
|
/** Whether one segment must always be selected */
|
|
57
58
|
selectionRequired?: string;
|
|
59
|
+
/** Material style: 'm3' | 'expressive' */
|
|
60
|
+
material?: string;
|
|
58
61
|
}>;
|
|
59
62
|
export interface SegmentedControlProps extends ViewProps {
|
|
60
63
|
/**
|
|
@@ -65,7 +68,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
65
68
|
* Controlled selection by `value`.
|
|
66
69
|
* Empty string means "no selection".
|
|
67
70
|
*/
|
|
68
|
-
selectedValue?:
|
|
71
|
+
selectedValue?: WithDefault<string, ''>;
|
|
69
72
|
/**
|
|
70
73
|
* Enabled / disabled state.
|
|
71
74
|
*/
|
|
@@ -93,7 +96,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
93
96
|
/**
|
|
94
97
|
* Fired when the user selects a segment.
|
|
95
98
|
*/
|
|
96
|
-
onSelect?:
|
|
99
|
+
onSelect?: BubblingEventHandler<SegmentedControlSelectEvent>;
|
|
97
100
|
ios?: IOSProps;
|
|
98
101
|
android?: AndroidProps;
|
|
99
102
|
}
|
|
@@ -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,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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.js';
|
|
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,mBAAgB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,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