react-native-platform-components 1.3.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.
Files changed (181) hide show
  1. package/README.md +24 -30
  2. package/android/src/main/java/com/platformcomponents/PCButtonGroupView.kt +498 -0
  3. package/android/src/main/java/com/platformcomponents/PCButtonGroupViewManager.kt +191 -0
  4. package/android/src/main/java/com/platformcomponents/PCButtonSupport.kt +127 -0
  5. package/android/src/main/java/com/platformcomponents/PCButtonView.kt +345 -0
  6. package/android/src/main/java/com/platformcomponents/PCButtonViewManager.kt +126 -0
  7. package/android/src/main/java/com/platformcomponents/PCExpressive.kt +107 -0
  8. package/android/src/main/java/com/platformcomponents/PCFloatingToolbarView.kt +115 -0
  9. package/android/src/main/java/com/platformcomponents/PCFloatingToolbarViewManager.kt +65 -0
  10. package/android/src/main/java/com/platformcomponents/PCSegmentedControlView.kt +11 -3
  11. package/android/src/main/java/com/platformcomponents/PCSegmentedControlViewManager.kt +6 -1
  12. package/android/src/main/java/com/platformcomponents/PCTextFieldView.kt +1018 -0
  13. package/android/src/main/java/com/platformcomponents/PCTextFieldViewManager.kt +248 -0
  14. package/android/src/main/java/com/platformcomponents/PlatformComponentsPackage.kt +4 -0
  15. package/android/src/main/res/values/attrs.xml +13 -0
  16. package/android/src/main/res/values/styles.xml +183 -0
  17. package/ios/PCButton.h +10 -0
  18. package/ios/PCButton.mm +196 -0
  19. package/ios/PCButtonGroup.h +10 -0
  20. package/ios/PCButtonGroup.mm +256 -0
  21. package/ios/PCButtonGroupView.swift +254 -0
  22. package/ios/PCButtonSupport.swift +141 -0
  23. package/ios/PCButtonView.swift +155 -0
  24. package/ios/PCFloatingToolbar.h +10 -0
  25. package/ios/PCFloatingToolbar.mm +76 -0
  26. package/ios/PCFloatingToolbarView.swift +95 -0
  27. package/ios/PCTextField.h +10 -0
  28. package/ios/PCTextField.mm +391 -0
  29. package/ios/PCTextFieldView.swift +1012 -0
  30. package/lib/commonjs/Button.js +77 -0
  31. package/lib/commonjs/Button.js.map +1 -0
  32. package/lib/commonjs/ButtonGroup.js +99 -0
  33. package/lib/commonjs/ButtonGroup.js.map +1 -0
  34. package/lib/commonjs/ButtonGroupNativeComponent.ts +121 -0
  35. package/lib/commonjs/ButtonNativeComponent.ts +76 -0
  36. package/lib/commonjs/FloatingToolbar.js +69 -0
  37. package/lib/commonjs/FloatingToolbar.js.map +1 -0
  38. package/lib/commonjs/FloatingToolbarNativeComponent.ts +31 -0
  39. package/lib/commonjs/SegmentedControl.js +11 -85
  40. package/lib/commonjs/SegmentedControl.js.map +1 -1
  41. package/lib/commonjs/SegmentedControlNativeComponent.ts +3 -0
  42. package/lib/commonjs/TextField.js +195 -0
  43. package/lib/commonjs/TextField.js.map +1 -0
  44. package/lib/commonjs/TextFieldNativeComponent.ts +218 -0
  45. package/lib/commonjs/focusRegistry.js +78 -0
  46. package/lib/commonjs/focusRegistry.js.map +1 -0
  47. package/lib/commonjs/icons.js +92 -0
  48. package/lib/commonjs/icons.js.map +1 -0
  49. package/lib/commonjs/index.js +66 -0
  50. package/lib/commonjs/index.js.map +1 -1
  51. package/lib/commonjs/index.web.js +32 -2
  52. package/lib/commonjs/index.web.js.map +1 -1
  53. package/lib/commonjs/labelStyle.js +27 -0
  54. package/lib/commonjs/labelStyle.js.map +1 -0
  55. package/lib/commonjs/reactNativeInternals.d.js +2 -0
  56. package/lib/commonjs/reactNativeInternals.d.js.map +1 -0
  57. package/lib/module/Button.js +70 -0
  58. package/lib/module/Button.js.map +1 -0
  59. package/lib/module/ButtonGroup.js +92 -0
  60. package/lib/module/ButtonGroup.js.map +1 -0
  61. package/lib/module/ButtonGroupNativeComponent.ts +121 -0
  62. package/lib/module/ButtonNativeComponent.ts +76 -0
  63. package/lib/module/FloatingToolbar.js +62 -0
  64. package/lib/module/FloatingToolbar.js.map +1 -0
  65. package/lib/module/FloatingToolbarNativeComponent.ts +31 -0
  66. package/lib/module/SegmentedControl.js +12 -87
  67. package/lib/module/SegmentedControl.js.map +1 -1
  68. package/lib/module/SegmentedControlNativeComponent.ts +3 -0
  69. package/lib/module/TextField.js +189 -0
  70. package/lib/module/TextField.js.map +1 -0
  71. package/lib/module/TextFieldNativeComponent.ts +218 -0
  72. package/lib/module/focusRegistry.js +74 -0
  73. package/lib/module/focusRegistry.js.map +1 -0
  74. package/lib/module/icons.js +87 -0
  75. package/lib/module/icons.js.map +1 -0
  76. package/lib/module/index.js +6 -0
  77. package/lib/module/index.js.map +1 -1
  78. package/lib/module/index.web.js +28 -0
  79. package/lib/module/index.web.js.map +1 -1
  80. package/lib/module/labelStyle.js +23 -0
  81. package/lib/module/labelStyle.js.map +1 -0
  82. package/lib/module/reactNativeInternals.d.js +2 -0
  83. package/lib/module/reactNativeInternals.d.js.map +1 -0
  84. package/lib/typescript/commonjs/docs/sidebars.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/src/Button.d.ts +76 -0
  86. package/lib/typescript/commonjs/src/Button.d.ts.map +1 -0
  87. package/lib/typescript/commonjs/src/ButtonGroup.d.ts +102 -0
  88. package/lib/typescript/commonjs/src/ButtonGroup.d.ts.map +1 -0
  89. package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts +93 -0
  90. package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts.map +1 -0
  91. package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts +57 -0
  92. package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts.map +1 -0
  93. package/lib/typescript/commonjs/src/FloatingToolbar.d.ts +45 -0
  94. package/lib/typescript/commonjs/src/FloatingToolbar.d.ts.map +1 -0
  95. package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts +24 -0
  96. package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
  97. package/lib/typescript/commonjs/src/SegmentedControl.d.ts +17 -46
  98. package/lib/typescript/commonjs/src/SegmentedControl.d.ts.map +1 -1
  99. package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts +2 -0
  100. package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts.map +1 -1
  101. package/lib/typescript/commonjs/src/TextField.d.ts +174 -0
  102. package/lib/typescript/commonjs/src/TextField.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts +162 -0
  104. package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts.map +1 -0
  105. package/lib/typescript/commonjs/src/focusRegistry.d.ts +13 -0
  106. package/lib/typescript/commonjs/src/focusRegistry.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/src/icons.d.ts +52 -0
  108. package/lib/typescript/commonjs/src/icons.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/src/index.d.ts +6 -0
  110. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  111. package/lib/typescript/commonjs/src/index.web.d.ts +121 -0
  112. package/lib/typescript/commonjs/src/index.web.d.ts.map +1 -1
  113. package/lib/typescript/commonjs/src/labelStyle.d.ts +20 -0
  114. package/lib/typescript/commonjs/src/labelStyle.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/src/sharedTypes.d.ts +6 -1
  116. package/lib/typescript/commonjs/src/sharedTypes.d.ts.map +1 -1
  117. package/lib/typescript/module/docs/sidebars.d.ts.map +1 -1
  118. package/lib/typescript/module/src/Button.d.ts +76 -0
  119. package/lib/typescript/module/src/Button.d.ts.map +1 -0
  120. package/lib/typescript/module/src/ButtonGroup.d.ts +102 -0
  121. package/lib/typescript/module/src/ButtonGroup.d.ts.map +1 -0
  122. package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts +93 -0
  123. package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts.map +1 -0
  124. package/lib/typescript/module/src/ButtonNativeComponent.d.ts +57 -0
  125. package/lib/typescript/module/src/ButtonNativeComponent.d.ts.map +1 -0
  126. package/lib/typescript/module/src/FloatingToolbar.d.ts +45 -0
  127. package/lib/typescript/module/src/FloatingToolbar.d.ts.map +1 -0
  128. package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts +24 -0
  129. package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts.map +1 -0
  130. package/lib/typescript/module/src/SegmentedControl.d.ts +17 -46
  131. package/lib/typescript/module/src/SegmentedControl.d.ts.map +1 -1
  132. package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts +2 -0
  133. package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts.map +1 -1
  134. package/lib/typescript/module/src/TextField.d.ts +174 -0
  135. package/lib/typescript/module/src/TextField.d.ts.map +1 -0
  136. package/lib/typescript/module/src/TextFieldNativeComponent.d.ts +162 -0
  137. package/lib/typescript/module/src/TextFieldNativeComponent.d.ts.map +1 -0
  138. package/lib/typescript/module/src/focusRegistry.d.ts +13 -0
  139. package/lib/typescript/module/src/focusRegistry.d.ts.map +1 -0
  140. package/lib/typescript/module/src/icons.d.ts +52 -0
  141. package/lib/typescript/module/src/icons.d.ts.map +1 -0
  142. package/lib/typescript/module/src/index.d.ts +6 -0
  143. package/lib/typescript/module/src/index.d.ts.map +1 -1
  144. package/lib/typescript/module/src/index.web.d.ts +121 -0
  145. package/lib/typescript/module/src/index.web.d.ts.map +1 -1
  146. package/lib/typescript/module/src/labelStyle.d.ts +20 -0
  147. package/lib/typescript/module/src/labelStyle.d.ts.map +1 -0
  148. package/lib/typescript/module/src/sharedTypes.d.ts +6 -1
  149. package/lib/typescript/module/src/sharedTypes.d.ts.map +1 -1
  150. package/package.json +25 -4
  151. package/react-native.config.js +3 -0
  152. package/shared/PCButtonComponentDescriptors-custom.h +22 -0
  153. package/shared/PCButtonGroupComponentDescriptors-custom.h +22 -0
  154. package/shared/PCButtonGroupShadowNode-custom.cpp +48 -0
  155. package/shared/PCButtonGroupShadowNode-custom.h +55 -0
  156. package/shared/PCButtonGroupState-custom.h +61 -0
  157. package/shared/PCButtonShadowNode-custom.cpp +48 -0
  158. package/shared/PCButtonShadowNode-custom.h +55 -0
  159. package/shared/PCButtonState-custom.h +61 -0
  160. package/shared/PCTextFieldComponentDescriptors-custom.h +22 -0
  161. package/shared/PCTextFieldShadowNode-custom.cpp +47 -0
  162. package/shared/PCTextFieldShadowNode-custom.h +55 -0
  163. package/shared/PCTextFieldState-custom.h +61 -0
  164. package/shared/react/renderer/components/PlatformComponentsViewSpec/ComponentDescriptors.h +3 -0
  165. package/src/Button.tsx +144 -0
  166. package/src/ButtonGroup.tsx +233 -0
  167. package/src/ButtonGroupNativeComponent.ts +121 -0
  168. package/src/ButtonNativeComponent.ts +76 -0
  169. package/src/FloatingToolbar.tsx +113 -0
  170. package/src/FloatingToolbarNativeComponent.ts +31 -0
  171. package/src/SegmentedControl.tsx +26 -118
  172. package/src/SegmentedControlNativeComponent.ts +3 -0
  173. package/src/TextField.tsx +494 -0
  174. package/src/TextFieldNativeComponent.ts +218 -0
  175. package/src/focusRegistry.ts +89 -0
  176. package/src/icons.ts +116 -0
  177. package/src/index.tsx +6 -0
  178. package/src/index.web.tsx +194 -0
  179. package/src/labelStyle.ts +36 -0
  180. package/src/reactNativeInternals.d.ts +22 -0
  181. package/src/sharedTypes.ts +7 -1
@@ -2,7 +2,13 @@ export * from './DatePicker';
2
2
  export * from './SelectionMenu';
3
3
  export * from './ContextMenu';
4
4
  export * from './SegmentedControl';
5
+ export * from './Button';
6
+ export * from './ButtonGroup';
7
+ export * from './FloatingToolbar';
5
8
  export * from './LiquidGlass';
9
+ export * from './TextField';
10
+ export * from './icons';
11
+ export * from './labelStyle';
6
12
  export * from './sharedTypes';
7
13
  export * from './NativeTheme';
8
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { ColorValue, StyleProp, ViewStyle, ViewProps } from 'react-native';
4
+ import type { PlatformIcon } from './icons';
5
+ import type { LabelStyle } from './labelStyle';
4
6
  export type Visible = 'open' | 'closed';
5
7
  export type Presentation = 'modal' | 'embedded';
6
8
  export type AndroidMaterialMode = 'system' | 'm3';
@@ -116,6 +118,64 @@ export interface SegmentedControlProps extends ViewProps {
116
118
  android?: Record<string, unknown>;
117
119
  }
118
120
  export declare const SegmentedControl: (_props: SegmentedControlProps) => React.ReactElement | null;
121
+ export type { PlatformIcon, PlatformIconSource, NativeIconFields, } from './icons';
122
+ export type { LabelStyle, NativeLabelStyle } from './labelStyle';
123
+ export type ButtonVariant = 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated';
124
+ export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
125
+ export type ButtonShape = 'round' | 'square';
126
+ export interface ButtonProps extends ViewProps {
127
+ label?: string;
128
+ icon?: PlatformIcon;
129
+ variant?: ButtonVariant;
130
+ size?: ButtonSize;
131
+ shape?: ButtonShape;
132
+ disabled?: boolean;
133
+ color?: ColorValue;
134
+ tintColor?: ColorValue;
135
+ labelStyle?: LabelStyle;
136
+ accessibilityLabel?: string;
137
+ onPress?: () => void;
138
+ android?: Record<string, unknown>;
139
+ }
140
+ export declare const Button: (_props: ButtonProps) => React.ReactElement | null;
141
+ export type ButtonGroupSelection = 'none' | 'single' | 'multiple';
142
+ export type ButtonGroupOverflow = 'none' | 'menu' | 'wrap';
143
+ export interface ButtonGroupButtonProps {
144
+ label?: string;
145
+ value: string;
146
+ disabled?: boolean;
147
+ icon?: PlatformIcon;
148
+ accessibilityLabel?: string;
149
+ }
150
+ export interface ButtonGroupProps extends ViewProps {
151
+ buttons: readonly ButtonGroupButtonProps[];
152
+ variant?: ButtonVariant;
153
+ size?: ButtonSize;
154
+ shape?: ButtonShape;
155
+ connected?: boolean;
156
+ spacing?: number;
157
+ selection?: ButtonGroupSelection;
158
+ selectedValues?: readonly string[];
159
+ selectionRequired?: boolean;
160
+ disabled?: boolean;
161
+ color?: ColorValue;
162
+ tintColor?: ColorValue;
163
+ labelStyle?: LabelStyle;
164
+ onPress?: (value: string, index: number) => void;
165
+ onSelectionChange?: (values: string[]) => void;
166
+ android?: Record<string, unknown>;
167
+ }
168
+ export declare const ButtonGroup: (_props: ButtonGroupProps) => React.ReactElement | null;
169
+ export type FloatingToolbarIOSEffect = 'regular' | 'clear';
170
+ export type FloatingToolbarAndroidVariant = 'standard' | 'vibrant';
171
+ export interface FloatingToolbarProps extends ViewProps {
172
+ orientation?: 'horizontal' | 'vertical';
173
+ color?: ColorValue;
174
+ ios?: Record<string, unknown>;
175
+ android?: Record<string, unknown>;
176
+ children?: ReactNode;
177
+ }
178
+ export declare const FloatingToolbar: ({ children, }: FloatingToolbarProps) => React.ReactElement | null;
119
179
  export interface LiquidGlassProps extends ViewProps {
120
180
  cornerRadius?: number;
121
181
  ios?: Record<string, unknown>;
@@ -124,6 +184,67 @@ export interface LiquidGlassProps extends ViewProps {
124
184
  }
125
185
  export declare const LiquidGlass: ({ children, }: LiquidGlassProps) => React.ReactElement | null;
126
186
  export declare const isLiquidGlassSupported = false;
187
+ export type TextFieldKeyboardType = 'default' | 'number-pad' | 'decimal-pad' | 'numeric' | 'email-address' | 'phone-pad' | 'url' | 'ascii-capable' | 'numbers-and-punctuation' | 'name-phone-pad' | 'twitter' | 'web-search' | 'visible-password';
188
+ export type TextFieldReturnKeyType = 'default' | 'done' | 'go' | 'next' | 'search' | 'send' | 'none' | 'previous';
189
+ export type TextFieldAutoComplete = 'off' | 'username' | 'password' | 'new-password' | 'one-time-code' | 'email' | 'name' | 'given-name' | 'family-name' | 'tel' | 'street-address' | 'postal-code' | 'country' | 'cc-number' | 'cc-exp' | 'cc-csc' | 'url';
190
+ export type TextFieldAutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';
191
+ export type TextFieldClearButtonMode = 'never' | 'while-editing' | 'unless-editing' | 'always';
192
+ export type TextFieldIOSChoice = 'default' | 'yes' | 'no';
193
+ export type TextFieldEvent = {
194
+ nativeEvent: {
195
+ text: string;
196
+ };
197
+ };
198
+ export type TextFieldChangeEvent = {
199
+ nativeEvent: {
200
+ text: string;
201
+ eventCount: number;
202
+ };
203
+ };
204
+ export interface TextFieldRef {
205
+ focus(): void;
206
+ blur(): void;
207
+ clear(): void;
208
+ isFocused(): boolean;
209
+ }
210
+ export interface TextFieldProps extends Omit<ViewProps, 'onFocus' | 'onBlur' | 'children'> {
211
+ value?: string;
212
+ defaultValue?: string;
213
+ onChangeText?: (text: string) => void;
214
+ onChange?: (event: TextFieldChangeEvent) => void;
215
+ onFocus?: (event: TextFieldEvent) => void;
216
+ onBlur?: (event: TextFieldEvent) => void;
217
+ onSubmitEditing?: (event: TextFieldEvent) => void;
218
+ label?: string;
219
+ placeholder?: string;
220
+ supportingText?: string;
221
+ error?: boolean | string;
222
+ prefix?: string;
223
+ suffix?: string;
224
+ leadingIcon?: PlatformIcon;
225
+ trailingIcon?: PlatformIcon;
226
+ onTrailingIconPress?: () => void;
227
+ clearButtonMode?: TextFieldClearButtonMode;
228
+ passwordToggle?: boolean;
229
+ showCharacterCount?: boolean;
230
+ maxLength?: number;
231
+ keyboardType?: TextFieldKeyboardType;
232
+ returnKeyType?: TextFieldReturnKeyType;
233
+ autoCapitalize?: TextFieldAutoCapitalize;
234
+ autoCorrect?: boolean;
235
+ secureTextEntry?: boolean;
236
+ multiline?: boolean;
237
+ editable?: boolean;
238
+ autoFocus?: boolean;
239
+ selectTextOnFocus?: boolean;
240
+ autoComplete?: TextFieldAutoComplete;
241
+ keyboardAppearance?: 'default' | 'light' | 'dark';
242
+ textStyle?: LabelStyle;
243
+ accessibilityLabel?: string;
244
+ ios?: Record<string, unknown>;
245
+ android?: Record<string, unknown>;
246
+ }
247
+ export declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<TextFieldRef>>;
127
248
  export type NativeTheme = {
128
249
  colors: {
129
250
  primary: ColorValue;
@@ -1 +1 @@
1
- {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/index.web.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMhF,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AACxC,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAChD,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAMlD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,YAAY,CAAC,EAAE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,UAAU,CAAC;KACrB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,GAAG,IAAI,KAAG,IAAU,CAAC;AAEvE,eAAO,MAAM,cAAc,GACzB,QAAQ,WAAW,GAAG,IAAI,GAAG,SAAS,KACrC,IAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { TextStyle } from 'react-native';
2
+ /**
3
+ * Font for a control's labels. Each field falls back to the platform default.
4
+ */
5
+ export interface LabelStyle {
6
+ fontFamily?: string;
7
+ fontSize?: number;
8
+ fontWeight?: TextStyle['fontWeight'];
9
+ fontStyle?: 'normal' | 'italic';
10
+ }
11
+ /** The flat font fields the native specs expect; empty / 0 = default. */
12
+ export type NativeLabelStyle = {
13
+ fontFamily: string;
14
+ fontSize: number;
15
+ fontWeight: string;
16
+ fontStyle: string;
17
+ };
18
+ /** Normalizes a label font for native; `undefined` keeps the platform font. */
19
+ export declare function normalizeLabelStyle(labelStyle: LabelStyle | undefined): NativeLabelStyle | undefined;
20
+ //# sourceMappingURL=labelStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelStyle.d.ts","sourceRoot":"","sources":["../../../../src/labelStyle.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACjC;AAED,yEAAyE;AACzE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,+EAA+E;AAC/E,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,GAAG,SAAS,GACjC,gBAAgB,GAAG,SAAS,CAS9B"}
@@ -3,8 +3,13 @@ import type { BubblingEventHandler } from './codegenTypes';
3
3
  export type Visible = 'open' | 'closed';
4
4
  /** Shared presentation mode for pickers/menus. */
5
5
  export type Presentation = 'modal' | 'embedded';
6
- /** Shared Material preference (Android). */
6
+ /** Shared Material preference (Android): the platform widget or the Material one. */
7
7
  export type AndroidMaterialMode = 'system' | 'm3';
8
+ /**
9
+ * Shared Material style for the Material-only components (Android):
10
+ * Material 3, or Material 3 Expressive (the default).
11
+ */
12
+ export type AndroidMaterialStyle = 'm3' | 'expressive';
8
13
  /** Common event empty payload type. */
9
14
  export type EmptyEvent = Readonly<{}>;
10
15
  /** Convenience alias (optional). */
@@ -1 +1 @@
1
- {"version":3,"file":"sharedTypes.d.ts","sourceRoot":"","sources":["../../../../src/sharedTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,0CAA0C;AAC1C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExC,kDAAkD;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhD,4CAA4C;AAC5C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAElD,uCAAuC;AACvC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEtC,oCAAoC;AACpC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"sharedTypes.d.ts","sourceRoot":"","sources":["../../../../src/sharedTypes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,0CAA0C;AAC1C,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAExC,kDAAkD;AAClD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhD,qFAAqF;AACrF,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,IAAI,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,YAAY,CAAC;AAEvD,uCAAuC;AACvC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEtC,oCAAoC;AACpC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sidebars.d.ts","sourceRoot":"","sources":["../../../../docs/sidebars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,QAAA,MAAM,QAAQ,EAAE,cAwBf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"sidebars.d.ts","sourceRoot":"","sources":["../../../../docs/sidebars.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,QAAA,MAAM,QAAQ,EAAE,cA4Bf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import type { ColorValue, ViewProps } from 'react-native';
3
+ import { type PlatformIcon } from './icons.js';
4
+ import { type LabelStyle } from './labelStyle.js';
5
+ import type { AndroidMaterialStyle } from './sharedTypes.js';
6
+ /**
7
+ * Emphasis of the button, from highest to lowest.
8
+ *
9
+ * | Variant | Android (Material 3 Expressive) | iOS (`UIButton.Configuration`) |
10
+ * | ---------- | ------------------------------- | ------------------------------ |
11
+ * | `filled` | Filled button | `.filled()` |
12
+ * | `tonal` | Filled tonal button | `.tinted()` |
13
+ * | `outlined` | Outlined button | `.bordered()` |
14
+ * | `text` | Text button | `.plain()` |
15
+ * | `elevated` | Elevated button | `.gray()` |
16
+ */
17
+ export type ButtonVariant = 'filled' | 'tonal' | 'outlined' | 'text' | 'elevated';
18
+ /**
19
+ * Button size. Material 3 Expressive defines five sizes; iOS maps them onto
20
+ * `UIButton.Configuration.Size` (`xsmall` → mini, `xlarge` → large).
21
+ */
22
+ export type ButtonSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
23
+ /**
24
+ * Corner shape. `round` is a pill; `square` keeps rounded corners. Unset
25
+ * means the platform default (round on Android, dynamic on iOS).
26
+ */
27
+ export type ButtonShape = 'round' | 'square';
28
+ export interface ButtonProps extends ViewProps {
29
+ /** Button text. Omit for an icon-only button. */
30
+ label?: string;
31
+ /** Icon shown before the label, or alone when there is no label. */
32
+ icon?: PlatformIcon;
33
+ /** Emphasis. Default: `'filled'`. See {@link ButtonVariant}. */
34
+ variant?: ButtonVariant;
35
+ /** Size. Default: `'small'`, the Material 3 default. */
36
+ size?: ButtonSize;
37
+ /** Corner shape. Default: platform default. */
38
+ shape?: ButtonShape;
39
+ /** Whether the button is disabled. */
40
+ disabled?: boolean;
41
+ /**
42
+ * Container (background) color.
43
+ * Android: `backgroundTint`. iOS: `baseBackgroundColor`.
44
+ */
45
+ color?: ColorValue;
46
+ /**
47
+ * Label and icon color.
48
+ * Android: text color and `iconTint`. iOS: `baseForegroundColor`.
49
+ */
50
+ tintColor?: ColorValue;
51
+ /** Label font. */
52
+ labelStyle?: LabelStyle;
53
+ /** Screen-reader label. Defaults to `label`. */
54
+ accessibilityLabel?: string;
55
+ /** Called when the button is pressed. */
56
+ onPress?: () => void;
57
+ /**
58
+ * Android-specific configuration
59
+ */
60
+ android?: {
61
+ /** Ripple color shown while pressing. */
62
+ rippleColor?: ColorValue;
63
+ /** Outline color (outlined variant). */
64
+ strokeColor?: ColorValue;
65
+ /**
66
+ * Material style: Material 3 Expressive (default), or the classic
67
+ * Material 3 button, which has one size and shape (`size` and `shape`
68
+ * are ignored).
69
+ */
70
+ material?: AndroidMaterialStyle;
71
+ };
72
+ /** Test identifier */
73
+ testID?: string;
74
+ }
75
+ export declare function Button(props: ButtonProps): React.ReactElement;
76
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/Button.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG1D,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,YAAS,CAAC;AACzD,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,iBAAc,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAe,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,aAAa,GACvB,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oEAAoE;IACpE,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB,wDAAwD;IACxD,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB,kBAAkB;IAClB,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,yCAAyC;QACzC,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,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,KAAK,CAAC,YAAY,CA8C7D"}
@@ -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.js';
4
+ import { type PlatformIcon } from './icons.js';
5
+ import { type LabelStyle } from './labelStyle.js';
6
+ import type { AndroidMaterialStyle } from './sharedTypes.js';
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,aAAU,CAAC;AAMvE,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,YAAS,CAAC;AACzD,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,iBAAc,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAe,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAElE,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,sBAAsB;IACrC,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,g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AED,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.js';
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,mBAAgB,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,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,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,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.js';
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":"ButtonNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/ButtonNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,MAAM,mBAAgB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,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';
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