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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_LiquidGlassNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_LiquidGlassNativeComponent","_interopRequireDefault","_NativePlatformComponentsTheme","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","resolveLiquidGlassSupport","Platform","OS","supported","NativePlatformComponentsTheme","isLiquidGlassSupported","parseInt","String","Version","exports","LiquidGlass","props","style","cornerRadius","ios","android","children","onPress","viewProps","nativeIos","useMemo","undefined","effect","interactive","tintColor","colorScheme","nativeAndroid","fallbackBackgroundColor","handlePress","useCallback","event","x","nativeEvent","y","jsx","onGlassPress"],"sourceRoot":"../../src","sources":["LiquidGlass.tsx"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,2BAAA,GAAAC,sBAAA,CAAAH,OAAA;AAKA,IAAAI,8BAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA4E,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA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CAAAsD,GAAA,EAACzD,2BAAA,CAAAM,OAAiB;IAChB6B,KAAK,EAAEA,KAAM;IACbC,YAAY,EAAEA,YAAa;IAC3BC,GAAG,EAAEK,SAAU;IACfJ,OAAO,EAAEW,aAAc;IACvBS,YAAY,EAAElB,OAAO,GAAGW,WAAW,GAAGP,SAAU;IAAA,GAC5CH,SAAS;IAAAF,QAAA,EAEZA;EAAQ,CACQ,CAAC;AAExB","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// LiquidGlassNativeComponent.ts
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
3
3
|
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { DirectEventHandler, Float, WithDefault } from './codegenTypes';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Glass effect intensity/style.
|
|
@@ -64,9 +65,9 @@ export type LiquidGlassAndroidProps = Readonly<{
|
|
|
64
65
|
*/
|
|
65
66
|
export type LiquidGlassPressEvent = Readonly<{
|
|
66
67
|
/** X coordinate of touch relative to view bounds */
|
|
67
|
-
x:
|
|
68
|
+
x: Float;
|
|
68
69
|
/** Y coordinate of touch relative to view bounds */
|
|
69
|
-
y:
|
|
70
|
+
y: Float;
|
|
70
71
|
}>;
|
|
71
72
|
|
|
72
73
|
export interface LiquidGlassNativeProps extends ViewProps {
|
|
@@ -75,7 +76,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
75
76
|
* Applied uniformly to all corners.
|
|
76
77
|
* @default 0
|
|
77
78
|
*/
|
|
78
|
-
cornerRadius?:
|
|
79
|
+
cornerRadius?: WithDefault<Float, 0>;
|
|
79
80
|
|
|
80
81
|
/**
|
|
81
82
|
* iOS-specific props.
|
|
@@ -91,7 +92,7 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
91
92
|
* Fired when the glass view is pressed.
|
|
92
93
|
* Includes touch coordinates relative to view bounds.
|
|
93
94
|
*/
|
|
94
|
-
onGlassPress?:
|
|
95
|
+
onGlassPress?: DirectEventHandler<LiquidGlassPressEvent>;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
export default codegenNativeComponent<LiquidGlassNativeProps>(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../src","sources":["NativePlatformComponentsTheme.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAFA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../src","sources":["NativePlatformComponentsTheme.ts"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AAFA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAqBeC,gCAAmB,CAACC,GAAG,CAAO,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SegmentedControl = SegmentedControl;
|
|
7
|
-
exports.resolveSegmentIcon =
|
|
7
|
+
exports.resolveSegmentIcon = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
10
|
var _SegmentedControlNativeComponent = _interopRequireDefault(require("./SegmentedControlNativeComponent"));
|
|
11
|
+
var _icons = require("./icons");
|
|
12
|
+
var _labelStyle = require("./labelStyle");
|
|
11
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -18,22 +20,11 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
18
20
|
// so we apply a minHeight that matches Material design touch target guidelines.
|
|
19
21
|
const ANDROID_MIN_HEIGHT = 48;
|
|
20
22
|
|
|
21
|
-
/**
|
|
22
|
-
* A single icon source.
|
|
23
|
-
*
|
|
24
|
-
* - `string`: shorthand for an SF Symbol name on iOS and a drawable resource
|
|
25
|
-
* name on Android (the original API).
|
|
26
|
-
* - `{ type: 'sfSymbol' }`: an SF Symbol. iOS only; ignored on Android.
|
|
27
|
-
* - `{ type: 'drawable' }`: a drawable from the app's `res/drawable`.
|
|
28
|
-
* Android only; ignored on iOS.
|
|
29
|
-
* - `{ type: 'image' }`: an image asset (`require('./icon.png')`) or a
|
|
30
|
-
* `{ uri }` source. Works on both platforms. Images are drawn as tinted
|
|
31
|
-
* templates unless `tinted` is `false`.
|
|
32
|
-
*/
|
|
23
|
+
/** A single icon source. Alias of {@link PlatformIconSource}. */
|
|
33
24
|
|
|
34
25
|
/**
|
|
35
26
|
* An icon for a segment: a single source used on both platforms, or a
|
|
36
|
-
* per-platform pair
|
|
27
|
+
* per-platform pair. Alias of {@link PlatformIcon}.
|
|
37
28
|
*/
|
|
38
29
|
|
|
39
30
|
/**
|
|
@@ -46,72 +37,14 @@ const ANDROID_MIN_HEIGHT = 48;
|
|
|
46
37
|
* their label. Screen readers still announce the label on both platforms.
|
|
47
38
|
*/
|
|
48
39
|
|
|
49
|
-
/**
|
|
50
|
-
* Font for segment labels. Each field falls back to the platform default.
|
|
51
|
-
*/
|
|
40
|
+
/** Font for segment labels. Alias of {@link LabelStyle}. */
|
|
52
41
|
|
|
53
42
|
/**
|
|
54
43
|
* Badge colors. Both default to the platform look (red with white text).
|
|
55
44
|
*/
|
|
56
45
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
iconName: '',
|
|
60
|
-
iconUri: '',
|
|
61
|
-
iconScale: 1,
|
|
62
|
-
iconTinted: 'true'
|
|
63
|
-
};
|
|
64
|
-
function pickIconSource(icon) {
|
|
65
|
-
if (icon === undefined || typeof icon === 'string' || 'type' in icon) {
|
|
66
|
-
return icon;
|
|
67
|
-
}
|
|
68
|
-
return _reactNative.Platform.OS === 'ios' ? icon.ios : icon.android;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Flattens the public icon shape into the strings native expects, dropping
|
|
73
|
-
* sources that don't apply to the current platform.
|
|
74
|
-
*/
|
|
75
|
-
function resolveSegmentIcon(icon) {
|
|
76
|
-
const source = pickIconSource(icon);
|
|
77
|
-
if (source === undefined) return NO_ICON;
|
|
78
|
-
if (typeof source === 'string') {
|
|
79
|
-
if (source.length === 0) return NO_ICON;
|
|
80
|
-
return {
|
|
81
|
-
...NO_ICON,
|
|
82
|
-
iconType: _reactNative.Platform.OS === 'ios' ? 'sfSymbol' : 'drawable',
|
|
83
|
-
iconName: source
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
switch (source.type) {
|
|
87
|
-
case 'sfSymbol':
|
|
88
|
-
return _reactNative.Platform.OS === 'ios' ? {
|
|
89
|
-
...NO_ICON,
|
|
90
|
-
iconType: 'sfSymbol',
|
|
91
|
-
iconName: source.name
|
|
92
|
-
} : NO_ICON;
|
|
93
|
-
case 'drawable':
|
|
94
|
-
return _reactNative.Platform.OS === 'android' ? {
|
|
95
|
-
...NO_ICON,
|
|
96
|
-
iconType: 'drawable',
|
|
97
|
-
iconName: source.name
|
|
98
|
-
} : NO_ICON;
|
|
99
|
-
case 'image':
|
|
100
|
-
{
|
|
101
|
-
const resolved = _reactNative.Image.resolveAssetSource(source.source);
|
|
102
|
-
if (!resolved?.uri) return NO_ICON;
|
|
103
|
-
return {
|
|
104
|
-
iconType: 'image',
|
|
105
|
-
iconName: '',
|
|
106
|
-
iconUri: resolved.uri,
|
|
107
|
-
iconScale: resolved.scale > 0 ? resolved.scale : 1,
|
|
108
|
-
iconTinted: source.tinted === false ? 'false' : 'true'
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
default:
|
|
112
|
-
return NO_ICON;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
46
|
+
/** Flattens a segment icon for native. Alias of {@link resolveIcon}. */
|
|
47
|
+
const resolveSegmentIcon = exports.resolveSegmentIcon = _icons.resolveIcon;
|
|
115
48
|
function normalizeSelectedValue(selected) {
|
|
116
49
|
return selected ?? '';
|
|
117
50
|
}
|
|
@@ -172,21 +105,14 @@ function SegmentedControl(props) {
|
|
|
172
105
|
const nativeSelectedSegmentColor = selectedSegmentColor ?? (_reactNative.Platform.OS === 'ios' ? ios?.selectedSegmentTintColor : undefined);
|
|
173
106
|
|
|
174
107
|
// Normalize the label font; empty / 0 means platform default
|
|
175
|
-
const nativeLabelStyle = (0, _react.useMemo)(() =>
|
|
176
|
-
if (!labelStyle) return undefined;
|
|
177
|
-
return {
|
|
178
|
-
fontFamily: labelStyle.fontFamily ?? '',
|
|
179
|
-
fontSize: labelStyle.fontSize ?? 0,
|
|
180
|
-
fontWeight: labelStyle.fontWeight === undefined ? '' : String(labelStyle.fontWeight),
|
|
181
|
-
fontStyle: labelStyle.fontStyle ?? ''
|
|
182
|
-
};
|
|
183
|
-
}, [labelStyle]);
|
|
108
|
+
const nativeLabelStyle = (0, _react.useMemo)(() => (0, _labelStyle.normalizeLabelStyle)(labelStyle), [labelStyle]);
|
|
184
109
|
|
|
185
110
|
// Normalize Android props
|
|
186
111
|
const nativeAndroid = (0, _react.useMemo)(() => {
|
|
187
112
|
if (!android) return undefined;
|
|
188
113
|
return {
|
|
189
|
-
selectionRequired: android.selectionRequired === false ? 'false' : 'true'
|
|
114
|
+
selectionRequired: android.selectionRequired === false ? 'false' : 'true',
|
|
115
|
+
material: android.material ?? 'expressive'
|
|
190
116
|
};
|
|
191
117
|
}, [android]);
|
|
192
118
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SegmentedControlNativeComponent","_interopRequireDefault","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ANDROID_MIN_HEIGHT","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_SegmentedControlNativeComponent","_interopRequireDefault","_icons","_labelStyle","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ANDROID_MIN_HEIGHT","resolveSegmentIcon","exports","resolveIcon","normalizeSelectedValue","selected","SegmentedControl","props","style","segments","selectedValue","disabled","labelVisibility","selectedSegmentColor","activeTintColor","inactiveTintColor","labelStyle","badgeStyle","onSelect","onDeselect","ios","android","viewProps","nativeSegments","useMemo","map","seg","label","value","badge","undefined","String","accessibilityLabel","icon","selectedData","handleSelect","useCallback","index","nativeEvent","nativeIos","momentary","apportionsSegmentWidthsByContent","nativeSelectedSegmentColor","Platform","OS","selectedSegmentTintColor","nativeLabelStyle","normalizeLabelStyle","nativeAndroid","selectionRequired","material","mergedStyle","styles","androidDefault","jsx","interactivity","androidRippleColor","rippleColor","androidStrokeColor","strokeColor","badgeBackgroundColor","backgroundColor","badgeTextColor","color","StyleSheet","create","minHeight"],"sourceRoot":"../../src","sources":["SegmentedControl.tsx"],"mappings":";;;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AASA,IAAAE,gCAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ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AO,CAACQ,MAAM,CAACC,cAAc,EAAE7C,KAAK,CAAC;IACvC;IACA,OAAOA,KAAK;EACd,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAEX,oBACE,IAAA5B,WAAA,CAAA0E,GAAA,EAAC9E,gCAAA,CAAAO,OAAsB;IACrByB,KAAK,EAAE2C,WAAY;IACnB1C,QAAQ,EAAEc,cAAe;IACzBb,aAAa,EAAEwB,YAAa;IAC5BqB,aAAa,EAAE5C,QAAQ,GAAG,UAAU,GAAG,SAAU;IACjDC,eAAe,EAAEA,eAAe,IAAI,MAAO;IAC3CC,oBAAoB,EAAE6B,0BAA2B;IACjD5B,eAAe,EAAEA,eAAgB;IACjCC,iBAAiB,EAAEA,iBAAkB;IACrCyC,kBAAkB,EAAEnC,OAAO,EAAEoC,WAAY;IACzCC,kBAAkB,EAAErC,OAAO,EAAEsC,WAAY;IACzC3C,UAAU,EAAE8B,gBAAiB;IAC7Bc,oBAAoB,EAAE3C,UAAU,EAAE4C,eAAgB;IAClDC,cAAc,EAAE7C,UAAU,EAAE8C,KAAM;IAClC7C,QAAQ,EAAEA,QAAQ,IAAIC,UAAU,GAAGgB,YAAY,GAAGL,SAAU;IAC5DV,GAAG,EAAEmB,SAAU;IACflB,OAAO,EAAE2B,aAAc;IAAA,GACnB1B;EAAS,CACd,CAAC;AAEN;AAEA,MAAM8B,MAAM,GAAGY,uBAAU,CAACC,MAAM,CAAC;EAC/BZ,cAAc,EAAE;IACda,SAAS,EAAElE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
// SegmentedControlNativeComponent.ts
|
|
2
|
-
import type {
|
|
3
|
-
CodegenTypes,
|
|
4
|
-
ColorValue,
|
|
5
|
-
HostComponent,
|
|
6
|
-
ViewProps,
|
|
7
|
-
} from 'react-native';
|
|
2
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
8
3
|
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type {
|
|
5
|
+
BubblingEventHandler,
|
|
6
|
+
Double,
|
|
7
|
+
Int32,
|
|
8
|
+
WithDefault,
|
|
9
|
+
} from './codegenTypes';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* A single segment in the control.
|
|
@@ -21,7 +22,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
21
22
|
iconType: string; // '' | 'sfSymbol' | 'drawable' | 'image'
|
|
22
23
|
iconName: string; // SF Symbol (iOS) or drawable resource name (Android)
|
|
23
24
|
iconUri: string; // Resolved image URI when iconType === 'image'
|
|
24
|
-
iconScale:
|
|
25
|
+
iconScale: Double; // Resolved image scale when iconType === 'image'
|
|
25
26
|
iconTinted: string; // 'true' | 'false' — draw the image as a tinted template
|
|
26
27
|
badge: string; // Badge text, empty = no badge
|
|
27
28
|
accessibilityLabel: string; // Screen-reader label, empty = use label
|
|
@@ -32,7 +33,7 @@ export type SegmentedControlSegment = Readonly<{
|
|
|
32
33
|
*/
|
|
33
34
|
export type SegmentedControlSelectEvent = Readonly<{
|
|
34
35
|
/** Selected segment index. -1 means the selection was cleared. */
|
|
35
|
-
index:
|
|
36
|
+
index: Int32;
|
|
36
37
|
|
|
37
38
|
/** Selected segment value. Empty when the selection was cleared. */
|
|
38
39
|
value: string;
|
|
@@ -49,7 +50,7 @@ export type SegmentedControlLabelVisibility = 'auto' | 'labeled' | 'unlabeled';
|
|
|
49
50
|
*/
|
|
50
51
|
export type LabelStyleProps = Readonly<{
|
|
51
52
|
fontFamily?: string;
|
|
52
|
-
fontSize?:
|
|
53
|
+
fontSize?: Double;
|
|
53
54
|
fontWeight?: string; // 'normal' | 'bold' | '100'..'900'
|
|
54
55
|
fontStyle?: string; // 'normal' | 'italic'
|
|
55
56
|
}>;
|
|
@@ -71,6 +72,9 @@ export type IOSProps = Readonly<{
|
|
|
71
72
|
export type AndroidProps = Readonly<{
|
|
72
73
|
/** Whether one segment must always be selected */
|
|
73
74
|
selectionRequired?: string; // 'true' | 'false'
|
|
75
|
+
|
|
76
|
+
/** Material style: 'm3' | 'expressive' */
|
|
77
|
+
material?: string;
|
|
74
78
|
}>;
|
|
75
79
|
|
|
76
80
|
export interface SegmentedControlProps extends ViewProps {
|
|
@@ -83,7 +87,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
83
87
|
* Controlled selection by `value`.
|
|
84
88
|
* Empty string means "no selection".
|
|
85
89
|
*/
|
|
86
|
-
selectedValue?:
|
|
90
|
+
selectedValue?: WithDefault<string, ''>;
|
|
87
91
|
|
|
88
92
|
/**
|
|
89
93
|
* Enabled / disabled state.
|
|
@@ -122,7 +126,7 @@ export interface SegmentedControlProps extends ViewProps {
|
|
|
122
126
|
/**
|
|
123
127
|
* Fired when the user selects a segment.
|
|
124
128
|
*/
|
|
125
|
-
onSelect?:
|
|
129
|
+
onSelect?: BubblingEventHandler<SegmentedControlSelectEvent>;
|
|
126
130
|
|
|
127
131
|
ios?: IOSProps;
|
|
128
132
|
android?: AndroidProps;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// SelectionMenuNativeComponent.ts
|
|
2
|
-
import type {
|
|
2
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
3
3
|
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { BubblingEventHandler, Int32, WithDefault } from './codegenTypes';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* A single option in the menu.
|
|
@@ -15,7 +16,7 @@ export type SelectionMenuOption = Readonly<{
|
|
|
15
16
|
*/
|
|
16
17
|
export type SelectionMenuSelectEvent = Readonly<{
|
|
17
18
|
/** Selected option index (implementation detail; stable for this render) */
|
|
18
|
-
index:
|
|
19
|
+
index: Int32;
|
|
19
20
|
|
|
20
21
|
/** Selected option label */
|
|
21
22
|
label: string;
|
|
@@ -57,7 +58,7 @@ export interface SelectionMenuProps extends ViewProps {
|
|
|
57
58
|
* - Empty string means "no selection".
|
|
58
59
|
* - Native should treat this as the single source of truth.
|
|
59
60
|
*/
|
|
60
|
-
selectedData?:
|
|
61
|
+
selectedData?: WithDefault<string, ''>;
|
|
61
62
|
|
|
62
63
|
/**
|
|
63
64
|
* Enabled / disabled state.
|
|
@@ -83,12 +84,12 @@ export interface SelectionMenuProps extends ViewProps {
|
|
|
83
84
|
/**
|
|
84
85
|
* Fired when the user selects an option.
|
|
85
86
|
*/
|
|
86
|
-
onSelect?:
|
|
87
|
+
onSelect?: BubblingEventHandler<SelectionMenuSelectEvent>;
|
|
87
88
|
|
|
88
89
|
/**
|
|
89
90
|
* Fired when dismissed without selection.
|
|
90
91
|
*/
|
|
91
|
-
onRequestClose?:
|
|
92
|
+
onRequestClose?: BubblingEventHandler<Readonly<{}>>;
|
|
92
93
|
|
|
93
94
|
ios?: IOSProps;
|
|
94
95
|
android?: AndroidProps;
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextField = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _TextFieldNativeComponent = _interopRequireWildcard(require("./TextFieldNativeComponent"));
|
|
9
|
+
var _icons = require("./icons");
|
|
10
|
+
var _labelStyle = require("./labelStyle");
|
|
11
|
+
var _focusRegistry = require("./focusRegistry");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
// TextField.tsx
|
|
15
|
+
|
|
16
|
+
/** Keyboard to show; the React Native `TextInput` values. */
|
|
17
|
+
|
|
18
|
+
/** Return key label; the React Native `TextInput` values. */
|
|
19
|
+
|
|
20
|
+
/** Autofill hint; a cross-platform subset of the React Native `TextInput` values. */
|
|
21
|
+
|
|
22
|
+
/** An iOS text trait: the system default, on, or off. */
|
|
23
|
+
|
|
24
|
+
/** Focus, blur and submit events carry the text at that moment. */
|
|
25
|
+
|
|
26
|
+
/** Change events carry the text and the native edit counter. */
|
|
27
|
+
|
|
28
|
+
/** Methods available through the `ref`. */
|
|
29
|
+
|
|
30
|
+
const TextField = exports.TextField = /*#__PURE__*/(0, _react.forwardRef)(function TextFieldComponent(props, ref) {
|
|
31
|
+
const {
|
|
32
|
+
value,
|
|
33
|
+
defaultValue,
|
|
34
|
+
onChangeText,
|
|
35
|
+
onChange,
|
|
36
|
+
onFocus,
|
|
37
|
+
onBlur,
|
|
38
|
+
onSubmitEditing,
|
|
39
|
+
label,
|
|
40
|
+
placeholder,
|
|
41
|
+
supportingText,
|
|
42
|
+
error,
|
|
43
|
+
prefix,
|
|
44
|
+
suffix,
|
|
45
|
+
leadingIcon,
|
|
46
|
+
trailingIcon,
|
|
47
|
+
onTrailingIconPress,
|
|
48
|
+
clearButtonMode,
|
|
49
|
+
passwordToggle,
|
|
50
|
+
showCharacterCount,
|
|
51
|
+
maxLength,
|
|
52
|
+
keyboardType,
|
|
53
|
+
returnKeyType,
|
|
54
|
+
autoCapitalize,
|
|
55
|
+
autoCorrect,
|
|
56
|
+
secureTextEntry,
|
|
57
|
+
multiline,
|
|
58
|
+
editable,
|
|
59
|
+
autoFocus,
|
|
60
|
+
selectTextOnFocus,
|
|
61
|
+
autoComplete,
|
|
62
|
+
keyboardAppearance,
|
|
63
|
+
textStyle,
|
|
64
|
+
accessibilityLabel,
|
|
65
|
+
ios,
|
|
66
|
+
android,
|
|
67
|
+
...viewProps
|
|
68
|
+
} = props;
|
|
69
|
+
const nativeRef = (0, _react.useRef)(null);
|
|
70
|
+
const focused = (0, _react.useRef)(false);
|
|
71
|
+
|
|
72
|
+
// The same synchronization as React Native's TextInput: every native edit
|
|
73
|
+
// reports an event count, and a controlled value is pushed with the last
|
|
74
|
+
// count JS has seen. Native drops the update when the user has typed
|
|
75
|
+
// since, and the edit that follows brings JS back in line.
|
|
76
|
+
const [mostRecentEventCount, setMostRecentEventCount] = (0, _react.useState)(0);
|
|
77
|
+
const [lastNativeText, setLastNativeText] = (0, _react.useState)(value ?? defaultValue);
|
|
78
|
+
|
|
79
|
+
// Registered like a TextInput, so Keyboard.dismiss() and the ScrollView
|
|
80
|
+
// keyboard props treat the field as one (see focusRegistry.ts)
|
|
81
|
+
(0, _react.useLayoutEffect)(() => {
|
|
82
|
+
const node = nativeRef.current;
|
|
83
|
+
if (node == null) return undefined;
|
|
84
|
+
_focusRegistry.focusRegistry.register(node);
|
|
85
|
+
return () => _focusRegistry.focusRegistry.unregister(node);
|
|
86
|
+
}, []);
|
|
87
|
+
(0, _react.useLayoutEffect)(() => {
|
|
88
|
+
if (typeof value !== 'string' || value === lastNativeText) return;
|
|
89
|
+
setLastNativeText(value);
|
|
90
|
+
const node = nativeRef.current;
|
|
91
|
+
if (node != null) {
|
|
92
|
+
_TextFieldNativeComponent.Commands.setText(node, mostRecentEventCount, value);
|
|
93
|
+
}
|
|
94
|
+
}, [value, lastNativeText, mostRecentEventCount]);
|
|
95
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
96
|
+
focus: () => {
|
|
97
|
+
const node = nativeRef.current;
|
|
98
|
+
if (node != null) _TextFieldNativeComponent.Commands.focus(node);
|
|
99
|
+
},
|
|
100
|
+
blur: () => {
|
|
101
|
+
const node = nativeRef.current;
|
|
102
|
+
if (node != null) _TextFieldNativeComponent.Commands.blur(node);
|
|
103
|
+
},
|
|
104
|
+
clear: () => {
|
|
105
|
+
const node = nativeRef.current;
|
|
106
|
+
if (node != null) _TextFieldNativeComponent.Commands.clear(node);
|
|
107
|
+
},
|
|
108
|
+
isFocused: () => focused.current
|
|
109
|
+
}), []);
|
|
110
|
+
const handleChange = (0, _react.useCallback)(event => {
|
|
111
|
+
const {
|
|
112
|
+
text,
|
|
113
|
+
eventCount
|
|
114
|
+
} = event.nativeEvent;
|
|
115
|
+
setMostRecentEventCount(eventCount);
|
|
116
|
+
setLastNativeText(text);
|
|
117
|
+
onChange?.(event);
|
|
118
|
+
onChangeText?.(text);
|
|
119
|
+
}, [onChange, onChangeText]);
|
|
120
|
+
const handleFocus = (0, _react.useCallback)(event => {
|
|
121
|
+
focused.current = true;
|
|
122
|
+
_focusRegistry.focusRegistry.focused(nativeRef.current);
|
|
123
|
+
onFocus?.(event);
|
|
124
|
+
}, [onFocus]);
|
|
125
|
+
const handleBlur = (0, _react.useCallback)(event => {
|
|
126
|
+
focused.current = false;
|
|
127
|
+
_focusRegistry.focusRegistry.blurred(nativeRef.current);
|
|
128
|
+
onBlur?.(event);
|
|
129
|
+
}, [onBlur]);
|
|
130
|
+
const handleSubmit = (0, _react.useCallback)(event => {
|
|
131
|
+
onSubmitEditing?.(event);
|
|
132
|
+
}, [onSubmitEditing]);
|
|
133
|
+
const handleTrailingIconPress = (0, _react.useCallback)(() => {
|
|
134
|
+
onTrailingIconPress?.();
|
|
135
|
+
}, [onTrailingIconPress]);
|
|
136
|
+
const nativeLeadingIcon = (0, _react.useMemo)(() => (0, _icons.resolveIcon)(leadingIcon), [leadingIcon]);
|
|
137
|
+
const nativeTrailingIcon = (0, _react.useMemo)(() => (0, _icons.resolveIcon)(trailingIcon), [trailingIcon]);
|
|
138
|
+
const nativeTextStyle = (0, _react.useMemo)(() => (0, _labelStyle.normalizeLabelStyle)(textStyle), [textStyle]);
|
|
139
|
+
const nativeIOS = (0, _react.useMemo)(() => ({
|
|
140
|
+
writingTools: ios?.writingTools ?? '',
|
|
141
|
+
inlinePrediction: ios?.inlinePrediction ?? '',
|
|
142
|
+
smartQuotes: ios?.smartQuotes ?? '',
|
|
143
|
+
smartDashes: ios?.smartDashes ?? '',
|
|
144
|
+
smartInsertDelete: ios?.smartInsertDelete ?? '',
|
|
145
|
+
mathExpressionCompletion: ios?.mathExpressionCompletion ?? '',
|
|
146
|
+
borderStyle: ios?.borderStyle ?? '',
|
|
147
|
+
labelPlacement: ios?.labelPlacement ?? '',
|
|
148
|
+
labelWidth: ios?.labelWidth ?? 0
|
|
149
|
+
}), [ios]);
|
|
150
|
+
const nativeAndroid = (0, _react.useMemo)(() => ({
|
|
151
|
+
material: android?.material ?? 'm3',
|
|
152
|
+
variant: android?.variant ?? 'outlined',
|
|
153
|
+
density: android?.dense ? 'dense' : 'standard'
|
|
154
|
+
}), [android]);
|
|
155
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFieldNativeComponent.default, {
|
|
156
|
+
ref: nativeRef,
|
|
157
|
+
initialText: value ?? defaultValue ?? '',
|
|
158
|
+
label: label ?? '',
|
|
159
|
+
placeholder: placeholder ?? '',
|
|
160
|
+
supportingText: supportingText ?? '',
|
|
161
|
+
errorState: error ? 'error' : 'none',
|
|
162
|
+
errorText: typeof error === 'string' ? error : '',
|
|
163
|
+
prefix: prefix ?? '',
|
|
164
|
+
suffix: suffix ?? '',
|
|
165
|
+
leadingIcon: nativeLeadingIcon,
|
|
166
|
+
trailingIcon: nativeTrailingIcon,
|
|
167
|
+
clearButtonMode: clearButtonMode ?? 'never',
|
|
168
|
+
passwordToggle: passwordToggle ? 'shown' : 'hidden',
|
|
169
|
+
characterCount: showCharacterCount ? 'shown' : 'hidden',
|
|
170
|
+
maxLength: maxLength ?? 0,
|
|
171
|
+
keyboardType: keyboardType ?? 'default',
|
|
172
|
+
returnKeyType: returnKeyType ?? 'default',
|
|
173
|
+
autoCapitalize: autoCapitalize ?? 'sentences',
|
|
174
|
+
autoCorrect: autoCorrect === false ? 'disabled' : 'enabled',
|
|
175
|
+
secureTextEntry: secureTextEntry ? 'secure' : 'plain',
|
|
176
|
+
lines: multiline ? 'multiline' : 'single',
|
|
177
|
+
interactivity: editable === false ? 'disabled' : 'enabled',
|
|
178
|
+
autoFocus: autoFocus ? 'focus' : 'none',
|
|
179
|
+
selectTextOnFocus: selectTextOnFocus ? 'select' : 'keep',
|
|
180
|
+
autoComplete: autoComplete ?? '',
|
|
181
|
+
keyboardAppearance: keyboardAppearance ?? 'default',
|
|
182
|
+
textStyle: nativeTextStyle,
|
|
183
|
+
spokenLabel: accessibilityLabel ?? '',
|
|
184
|
+
ios: nativeIOS,
|
|
185
|
+
android: nativeAndroid,
|
|
186
|
+
onFieldChange: handleChange,
|
|
187
|
+
onFieldFocus: handleFocus,
|
|
188
|
+
onFieldBlur: handleBlur,
|
|
189
|
+
onFieldSubmit: onSubmitEditing ? handleSubmit : undefined,
|
|
190
|
+
onTrailingIconPress: onTrailingIconPress ? handleTrailingIconPress : undefined,
|
|
191
|
+
...viewProps
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
TextField.displayName = 'TextField';
|
|
195
|
+
//# sourceMappingURL=TextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_TextFieldNativeComponent","_icons","_labelStyle","_focusRegistry","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TextField","exports","forwardRef","TextFieldComponent","props","ref","value","defaultValue","onChangeText","onChange","onFocus","onBlur","onSubmitEditing","label","placeholder","supportingText","error","prefix","suffix","leadingIcon","trailingIcon","onTrailingIconPress","clearButtonMode","passwordToggle","showCharacterCount","maxLength","keyboardType","returnKeyType","autoCapitalize","autoCorrect","secureTextEntry","multiline","editable","autoFocus","selectTextOnFocus","autoComplete","keyboardAppearance","textStyle","accessibilityLabel","ios","android","viewProps","nativeRef","useRef","focused","mostRecentEventCount","setMostRecentEventCount","useState","lastNativeText","setLastNativeText","useLayoutEffect","node","current","undefined","focusRegistry","register","unregister","Commands","setText","useImperativeHandle","focus","blur","clear","isFocused","handleChange","useCallback","event","text","eventCount","nativeEvent","handleFocus","handleBlur","blurred","handleSubmit","handleTrailingIconPress","nativeLeadingIcon","useMemo","resolveIcon","nativeTrailingIcon","nativeTextStyle","normalizeLabelStyle","nativeIOS","writingTools","inlinePrediction","smartQuotes","smartDashes","smartInsertDelete","mathExpressionCompletion","borderStyle","labelPlacement","labelWidth","nativeAndroid","material","variant","density","dense","jsx","initialText","errorState","errorText","characterCount","lines","interactivity","spokenLabel","onFieldChange","onFieldFocus","onFieldBlur","onFieldSubmit","displayName"],"sourceRoot":"../../src","sources":["TextField.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,yBAAA,GAAAF,uBAAA,CAAAC,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAgD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,wBAAAO,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAT,uBAAA,YAAAA,CAAAO,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,C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