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
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorValue, ViewProps } from 'react-native';
|
|
3
|
+
import type { ButtonShape, ButtonSize, ButtonVariant } from './Button';
|
|
4
|
+
import { type PlatformIcon } from './icons';
|
|
5
|
+
import { type LabelStyle } from './labelStyle';
|
|
6
|
+
import type { AndroidMaterialStyle } from './sharedTypes';
|
|
7
|
+
/**
|
|
8
|
+
* Selection behavior of the group.
|
|
9
|
+
*
|
|
10
|
+
* - `none` (default): the buttons are plain actions.
|
|
11
|
+
* - `single`: at most one button is selected at a time.
|
|
12
|
+
* - `multiple`: any number of buttons can be selected.
|
|
13
|
+
*/
|
|
14
|
+
export type ButtonGroupSelection = 'none' | 'single' | 'multiple';
|
|
15
|
+
/** What happens to buttons that don't fit the group's width (Android). */
|
|
16
|
+
export type ButtonGroupOverflow = 'none' | 'menu' | 'wrap';
|
|
17
|
+
export interface ButtonGroupButtonProps {
|
|
18
|
+
/** Button text. Omit for an icon-only button. */
|
|
19
|
+
label?: string;
|
|
20
|
+
/** Unique value identifier for the button */
|
|
21
|
+
value: string;
|
|
22
|
+
/** Whether this specific button is disabled */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Optional icon. See {@link PlatformIcon}. */
|
|
25
|
+
icon?: PlatformIcon;
|
|
26
|
+
/** Screen-reader label. Defaults to `label`. */
|
|
27
|
+
accessibilityLabel?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ButtonGroupProps extends ViewProps {
|
|
30
|
+
/** Buttons to display */
|
|
31
|
+
buttons: readonly ButtonGroupButtonProps[];
|
|
32
|
+
/** Emphasis of every button. Default: `'outlined'`. */
|
|
33
|
+
variant?: ButtonVariant;
|
|
34
|
+
/** Size of every button. Default: `'small'`. */
|
|
35
|
+
size?: ButtonSize;
|
|
36
|
+
/** Corner shape of every button. Default: platform default. */
|
|
37
|
+
shape?: ButtonShape;
|
|
38
|
+
/**
|
|
39
|
+
* Connected group: the buttons share one outline with small inner corners
|
|
40
|
+
* (Material 3 "connected button group"). Default: `true` when `selection`
|
|
41
|
+
* is `'single'` or `'multiple'`, `false` otherwise.
|
|
42
|
+
*/
|
|
43
|
+
connected?: boolean;
|
|
44
|
+
/** Gap between buttons in points. Default: the platform's group spacing. */
|
|
45
|
+
spacing?: number;
|
|
46
|
+
/** Selection behavior. Default: `'none'`. See {@link ButtonGroupSelection}. */
|
|
47
|
+
selection?: ButtonGroupSelection;
|
|
48
|
+
/**
|
|
49
|
+
* Values of the selected buttons (controlled). Only the first value is
|
|
50
|
+
* used with `selection: 'single'`.
|
|
51
|
+
*/
|
|
52
|
+
selectedValues?: readonly string[];
|
|
53
|
+
/**
|
|
54
|
+
* Whether at least one button must stay selected. Default: `true` for
|
|
55
|
+
* `single`, `false` for `multiple`.
|
|
56
|
+
*/
|
|
57
|
+
selectionRequired?: boolean;
|
|
58
|
+
/** Whether the entire group is disabled */
|
|
59
|
+
disabled?: boolean;
|
|
60
|
+
/** Container (background) color of the buttons. */
|
|
61
|
+
color?: ColorValue;
|
|
62
|
+
/** Label and icon color of the buttons. */
|
|
63
|
+
tintColor?: ColorValue;
|
|
64
|
+
/** Label font. */
|
|
65
|
+
labelStyle?: LabelStyle;
|
|
66
|
+
/**
|
|
67
|
+
* Called when a button is pressed, in every selection mode.
|
|
68
|
+
* @param value - The button's value
|
|
69
|
+
* @param index - The button's index
|
|
70
|
+
*/
|
|
71
|
+
onPress?: (value: string, index: number) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Called when the selection changes (`single` / `multiple` selection).
|
|
74
|
+
* @param values - Values of the selected buttons, in button order
|
|
75
|
+
*/
|
|
76
|
+
onSelectionChange?: (values: string[]) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Android-specific configuration
|
|
79
|
+
*/
|
|
80
|
+
android?: {
|
|
81
|
+
/**
|
|
82
|
+
* What happens to buttons that don't fit: `'none'` (clipped), `'menu'`
|
|
83
|
+
* (moved into an overflow menu) or `'wrap'` (wrapped onto more rows).
|
|
84
|
+
* Default: `'none'`.
|
|
85
|
+
*/
|
|
86
|
+
overflow?: ButtonGroupOverflow;
|
|
87
|
+
/** Ripple color shown while pressing a button. */
|
|
88
|
+
rippleColor?: ColorValue;
|
|
89
|
+
/** Outline color (outlined variant). */
|
|
90
|
+
strokeColor?: ColorValue;
|
|
91
|
+
/**
|
|
92
|
+
* Material style: Material 3 Expressive (default), or the classic
|
|
93
|
+
* Material 3 group, which has one size and shape (`size` and `shape`
|
|
94
|
+
* are ignored).
|
|
95
|
+
*/
|
|
96
|
+
material?: AndroidMaterialStyle;
|
|
97
|
+
};
|
|
98
|
+
/** Test identifier */
|
|
99
|
+
testID?: string;
|
|
100
|
+
}
|
|
101
|
+
export declare function ButtonGroup(props: ButtonGroupProps): React.ReactElement;
|
|
102
|
+
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../../../src/ButtonGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMvE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MA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M,KAAK,IAAI,CAAC;IAEjD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE/C;;OAEG;IACH,OAAO,CAAC,EAAE;QACR;;;;WAIG;QACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;QAE/B,kDAAkD;QAClD,WAAW,CAAC,EAAE,UAAU,CAAC;QAEzB,wCAAwC;QACxC,WAAW,CAAC,EAAE,UAAU,CAAC;QAEzB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,oBAAoB,CAAC;KACjC,CAAC;IAEF,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAiGvE"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Double, Int32 } from './codegenTypes';
|
|
3
|
+
/**
|
|
4
|
+
* A single button in the group. Icons are pre-resolved on the JS side (see
|
|
5
|
+
* icons.ts) so native only deals with flat strings.
|
|
6
|
+
*/
|
|
7
|
+
export type ButtonGroupButton = Readonly<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
disabled: string;
|
|
11
|
+
iconType: string;
|
|
12
|
+
iconName: string;
|
|
13
|
+
iconUri: string;
|
|
14
|
+
iconScale: Double;
|
|
15
|
+
iconTinted: string;
|
|
16
|
+
accessibilityLabel: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Event emitted when a button is pressed.
|
|
20
|
+
*/
|
|
21
|
+
export type ButtonGroupPressEvent = Readonly<{
|
|
22
|
+
index: Int32;
|
|
23
|
+
value: string;
|
|
24
|
+
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Event emitted when the selection changes (single / multiple selection).
|
|
27
|
+
*/
|
|
28
|
+
export type ButtonGroupSelectionEvent = Readonly<{
|
|
29
|
+
/** Values of the selected buttons, in button order. */
|
|
30
|
+
values: string[];
|
|
31
|
+
}>;
|
|
32
|
+
/**
|
|
33
|
+
* Label font. Empty strings / 0 mean "platform default".
|
|
34
|
+
*/
|
|
35
|
+
export type ButtonGroupLabelStyleProps = Readonly<{
|
|
36
|
+
fontFamily?: string;
|
|
37
|
+
fontSize?: Double;
|
|
38
|
+
fontWeight?: string;
|
|
39
|
+
fontStyle?: string;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Android-specific configuration.
|
|
43
|
+
*/
|
|
44
|
+
export type ButtonGroupAndroidProps = Readonly<{
|
|
45
|
+
/** What happens to buttons that don't fit: 'none' | 'menu' | 'wrap' */
|
|
46
|
+
overflow?: string;
|
|
47
|
+
/** Material style: 'm3' | 'expressive' */
|
|
48
|
+
material?: string;
|
|
49
|
+
}>;
|
|
50
|
+
export interface ButtonGroupNativeProps extends ViewProps {
|
|
51
|
+
/** Buttons to display. */
|
|
52
|
+
buttons: ReadonlyArray<ButtonGroupButton>;
|
|
53
|
+
/** 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated' */
|
|
54
|
+
variant?: string;
|
|
55
|
+
/** 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' */
|
|
56
|
+
size?: string;
|
|
57
|
+
/** '' (platform default) | 'round' | 'square' */
|
|
58
|
+
shape?: string;
|
|
59
|
+
/** 'true' | 'false': connected group (shared outline, small inner corners) */
|
|
60
|
+
connected?: string;
|
|
61
|
+
/** Gap between buttons in points; negative means the platform default. */
|
|
62
|
+
spacing?: Double;
|
|
63
|
+
/** 'none' | 'single' | 'multiple' */
|
|
64
|
+
selection?: string;
|
|
65
|
+
/** Values of the selected buttons (single / multiple selection). */
|
|
66
|
+
selectedValues?: ReadonlyArray<string>;
|
|
67
|
+
/** 'true' | 'false': whether at least one button must stay selected */
|
|
68
|
+
selectionRequired?: string;
|
|
69
|
+
/** 'enabled' | 'disabled' */
|
|
70
|
+
interactivity?: string;
|
|
71
|
+
/** Container (background) color of the buttons. */
|
|
72
|
+
color?: ColorValue;
|
|
73
|
+
/** Label and icon color of the buttons. */
|
|
74
|
+
foregroundColor?: ColorValue;
|
|
75
|
+
/** Android: ripple color shown while pressing a button. */
|
|
76
|
+
androidRippleColor?: ColorValue;
|
|
77
|
+
/** Android: outline color (outlined variant). */
|
|
78
|
+
androidStrokeColor?: ColorValue;
|
|
79
|
+
/** Label font. */
|
|
80
|
+
labelStyle?: ButtonGroupLabelStyleProps;
|
|
81
|
+
/** Fired when a button is pressed. */
|
|
82
|
+
onButtonPress?: BubblingEventHandler<ButtonGroupPressEvent>;
|
|
83
|
+
/**
|
|
84
|
+
* Fired when the selection changes. Not `onSelectionChange`: React Native's
|
|
85
|
+
* TextInput registers `topSelectionChange` as a direct event, and an event
|
|
86
|
+
* name can't be both direct and bubbling.
|
|
87
|
+
*/
|
|
88
|
+
onGroupSelectionChange?: BubblingEventHandler<ButtonGroupSelectionEvent>;
|
|
89
|
+
android?: ButtonGroupAndroidProps;
|
|
90
|
+
}
|
|
91
|
+
declare const _default: HostComponent<ButtonGroupNativeProps>;
|
|
92
|
+
export default _default;
|
|
93
|
+
//# sourceMappingURL=ButtonGroupNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroupNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/ButtonGroupNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ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,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oEAAoE;IACpE,cAAc,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEvC,uEAAuE;IACvE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,mDAAmD;IACnD,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,2CAA2C;IAC3C,eAAe,CAAC,EAAE,UAAU,CAAC;IAE7B,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAEhC,kBAAkB;IAClB,UAAU,CAAC,EAAE,0BAA0B,CAAC;IAExC,sCAAsC;IACtC,aAAa,CAAC,EAAE,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;IAE5D;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,oBAAoB,CAAC,yBAAyB,CAAC,CAAC;IAEzE,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC;wBAII,aAAa,CAAC,sBAAsB,CAAC;AAF1C,wBAE2C"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler, Double } from './codegenTypes';
|
|
3
|
+
/**
|
|
4
|
+
* Icon fields, pre-resolved on the JS side (see icons.ts).
|
|
5
|
+
*/
|
|
6
|
+
export type ButtonIconProps = Readonly<{
|
|
7
|
+
iconType: string;
|
|
8
|
+
iconName: string;
|
|
9
|
+
iconUri: string;
|
|
10
|
+
iconScale: Double;
|
|
11
|
+
iconTinted: string;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* Label font. Empty strings / 0 mean "platform default".
|
|
15
|
+
*/
|
|
16
|
+
export type ButtonLabelStyleProps = Readonly<{
|
|
17
|
+
fontFamily?: string;
|
|
18
|
+
fontSize?: Double;
|
|
19
|
+
fontWeight?: string;
|
|
20
|
+
fontStyle?: string;
|
|
21
|
+
}>;
|
|
22
|
+
export interface ButtonNativeProps extends ViewProps {
|
|
23
|
+
/** Button text. Empty for an icon-only button. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Icon shown before the label, or alone when there is no label. */
|
|
26
|
+
icon?: ButtonIconProps;
|
|
27
|
+
/** 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated' */
|
|
28
|
+
variant?: string;
|
|
29
|
+
/** 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' */
|
|
30
|
+
size?: string;
|
|
31
|
+
/** '' (platform default) | 'round' | 'square' */
|
|
32
|
+
shape?: string;
|
|
33
|
+
/** 'enabled' | 'disabled' */
|
|
34
|
+
interactivity?: string;
|
|
35
|
+
/** Container (background) color. */
|
|
36
|
+
color?: ColorValue;
|
|
37
|
+
/** Label and icon color. */
|
|
38
|
+
foregroundColor?: ColorValue;
|
|
39
|
+
/** Android: ripple color shown while pressing. */
|
|
40
|
+
androidRippleColor?: ColorValue;
|
|
41
|
+
/** Android: outline color (outlined variant). */
|
|
42
|
+
androidStrokeColor?: ColorValue;
|
|
43
|
+
/** Android: Material style, 'm3' | 'expressive' */
|
|
44
|
+
androidMaterial?: string;
|
|
45
|
+
/** Label font. */
|
|
46
|
+
labelStyle?: ButtonLabelStyleProps;
|
|
47
|
+
/**
|
|
48
|
+
* Screen-reader label, applied to the native button rather than the host
|
|
49
|
+
* view. Empty means "use the label".
|
|
50
|
+
*/
|
|
51
|
+
spokenLabel?: string;
|
|
52
|
+
/** Fired when the button is pressed. */
|
|
53
|
+
onButtonPress?: BubblingEventHandler<Readonly<{}>>;
|
|
54
|
+
}
|
|
55
|
+
declare const _default: HostComponent<ButtonNativeProps>;
|
|
56
|
+
export default _default;
|
|
57
|
+
//# sourceMappingURL=ButtonNativeComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonNativ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,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kBAAkB;IAClB,UAAU,CAAC,EAAE,qBAAqB,CAAC;IAEnC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,wCAAwC;IACxC,aAAa,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;CACpD;wBAII,aAAa,CAAC,iBAAiB,CAAC;AAFrC,wBAEsC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
2
|
+
import type { BubblingEventHandler } from './codegenTypes';
|
|
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":"A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AAa,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';
|
|
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,gBAAgB,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,i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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;
|
|
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';
|
|
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,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urboModule } from 'react-native';
|
|
2
|
+
import type { UnsafeObject } from './codegenTypes';
|
|
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,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"}
|
|
@@ -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';
|
|
4
|
+
import { type LabelStyle } from './labelStyle';
|
|
5
|
+
import type { AndroidMaterialStyle } from './sharedTypes';
|
|
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
|