@expo/ui 56.0.15 → 56.0.17

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 (130) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +54 -6
  4. package/android/src/main/java/expo/modules/ui/HostView.kt +0 -2
  5. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +65 -0
  6. package/android/src/main/java/expo/modules/ui/NavigationBarView.kt +95 -0
  7. package/android/src/main/java/expo/modules/ui/RNHostView.kt +182 -6
  8. package/android/src/main/java/expo/modules/ui/textfield/BasicTextField.kt +203 -0
  9. package/android/src/main/java/expo/modules/ui/{TextFieldView.kt → textfield/TextField.kt} +63 -267
  10. package/android/src/main/java/expo/modules/ui/textfield/TextFieldShared.kt +299 -0
  11. package/build/State/useNativeState.d.ts +8 -3
  12. package/build/State/useNativeState.d.ts.map +1 -1
  13. package/build/community/pager-view/PagerView.android.d.ts.map +1 -1
  14. package/build/jetpack-compose/NavigationBar/index.d.ts +101 -0
  15. package/build/jetpack-compose/NavigationBar/index.d.ts.map +1 -0
  16. package/build/jetpack-compose/TextField/BasicTextField.d.ts +36 -0
  17. package/build/jetpack-compose/TextField/BasicTextField.d.ts.map +1 -0
  18. package/build/jetpack-compose/TextField/TextField.d.ts +131 -0
  19. package/build/jetpack-compose/TextField/TextField.d.ts.map +1 -0
  20. package/build/jetpack-compose/TextField/index.d.ts +3 -244
  21. package/build/jetpack-compose/TextField/index.d.ts.map +1 -1
  22. package/build/jetpack-compose/TextField/shared.d.ts +171 -0
  23. package/build/jetpack-compose/TextField/shared.d.ts.map +1 -0
  24. package/build/jetpack-compose/index.d.ts +2 -1
  25. package/build/jetpack-compose/index.d.ts.map +1 -1
  26. package/build/jetpack-compose/modifiers/index.d.ts +42 -0
  27. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  28. package/build/swift-ui/DisclosureGroup/index.d.ts +11 -2
  29. package/build/swift-ui/DisclosureGroup/index.d.ts.map +1 -1
  30. package/build/swift-ui/Image/index.d.ts +7 -1
  31. package/build/swift-ui/Image/index.d.ts.map +1 -1
  32. package/build/swift-ui/Label/index.d.ts +5 -0
  33. package/build/swift-ui/Label/index.d.ts.map +1 -1
  34. package/build/swift-ui/modifiers/index.d.ts +100 -4
  35. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  36. package/build/universal/Collapsible/index.android.d.ts +1 -1
  37. package/build/universal/Collapsible/index.android.d.ts.map +1 -1
  38. package/build/universal/Collapsible/index.d.ts +1 -1
  39. package/build/universal/Collapsible/index.d.ts.map +1 -1
  40. package/build/universal/Collapsible/index.ios.d.ts +1 -1
  41. package/build/universal/Collapsible/index.ios.d.ts.map +1 -1
  42. package/build/universal/Collapsible/types.d.ts +5 -0
  43. package/build/universal/Collapsible/types.d.ts.map +1 -1
  44. package/build/universal/TextInput/index.android.d.ts.map +1 -1
  45. package/build/universal/TextInput/types.d.ts +5 -1
  46. package/build/universal/TextInput/types.d.ts.map +1 -1
  47. package/expo-module.config.json +1 -1
  48. package/ios/BottomSheetView.swift +1 -1
  49. package/ios/DisclosureGroupView.swift +36 -13
  50. package/ios/ImageView.swift +20 -14
  51. package/ios/Label.swift +26 -2
  52. package/ios/Modifiers/ButtonBorderShapeModifier.swift +46 -0
  53. package/ios/Modifiers/DynamicTypeSizeModifier.swift +56 -0
  54. package/ios/Modifiers/FontModifier.swift +4 -1
  55. package/ios/Modifiers/ImageScaleModifier.swift +29 -0
  56. package/ios/Modifiers/OnGeometryChangeModifier.swift +8 -16
  57. package/ios/Modifiers/ViewModifierRegistry.swift +89 -8
  58. package/ios/SecureFieldView.swift +17 -1
  59. package/ios/TextFieldView.swift +33 -2
  60. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.15/expo.modules.ui-56.0.15-sources.jar → 56.0.17/expo.modules.ui-56.0.17-sources.jar} +0 -0
  61. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17-sources.jar.md5 +1 -0
  62. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17-sources.jar.sha1 +1 -0
  63. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17-sources.jar.sha256 +1 -0
  64. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17-sources.jar.sha512 +1 -0
  65. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.aar +0 -0
  66. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.aar.md5 +1 -0
  67. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.aar.sha1 +1 -0
  68. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.aar.sha256 +1 -0
  69. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.aar.sha512 +1 -0
  70. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.15/expo.modules.ui-56.0.15.module → 56.0.17/expo.modules.ui-56.0.17.module} +22 -22
  71. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.module.md5 +1 -0
  72. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.module.sha1 +1 -0
  73. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.module.sha256 +1 -0
  74. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.module.sha512 +1 -0
  75. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{56.0.15/expo.modules.ui-56.0.15.pom → 56.0.17/expo.modules.ui-56.0.17.pom} +1 -1
  76. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.pom.md5 +1 -0
  77. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.pom.sha1 +1 -0
  78. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.pom.sha256 +1 -0
  79. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.17/expo.modules.ui-56.0.17.pom.sha512 +1 -0
  80. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  81. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  82. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  83. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  84. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  85. package/package.json +4 -4
  86. package/src/State/index.fx.ts +4 -1
  87. package/src/State/useNativeState.ts +24 -13
  88. package/src/community/datetime-picker/DateTimePicker.tsx +1 -1
  89. package/src/community/menu/MenuView.ios.tsx +1 -1
  90. package/src/community/pager-view/PagerView.android.tsx +16 -2
  91. package/src/community/pager-view/PagerView.ios.tsx +1 -1
  92. package/src/community/picker/Picker.ios.tsx +1 -1
  93. package/src/community/segmented-control/SegmentedControl.ios.tsx +1 -1
  94. package/src/community/slider/Slider.ios.tsx +1 -1
  95. package/src/jetpack-compose/NavigationBar/index.tsx +174 -0
  96. package/src/jetpack-compose/TextField/BasicTextField.tsx +118 -0
  97. package/src/jetpack-compose/TextField/TextField.tsx +198 -0
  98. package/src/jetpack-compose/TextField/index.ts +19 -0
  99. package/src/jetpack-compose/TextField/{index.tsx → shared.ts} +71 -203
  100. package/src/jetpack-compose/index.ts +7 -0
  101. package/src/jetpack-compose/modifiers/index.ts +49 -0
  102. package/src/swift-ui/BottomSheet/index.tsx +1 -1
  103. package/src/swift-ui/DisclosureGroup/index.tsx +14 -2
  104. package/src/swift-ui/Image/index.tsx +16 -3
  105. package/src/swift-ui/Label/index.tsx +8 -1
  106. package/src/swift-ui/modifiers/index.ts +143 -5
  107. package/src/universal/Collapsible/index.android.tsx +10 -2
  108. package/src/universal/Collapsible/index.ios.tsx +17 -3
  109. package/src/universal/Collapsible/index.tsx +8 -2
  110. package/src/universal/Collapsible/types.ts +7 -0
  111. package/src/universal/TextInput/index.android.tsx +26 -33
  112. package/src/universal/TextInput/types.ts +5 -1
  113. package/android/src/main/java/expo/modules/ui/ShadowNodeSyncFlush.kt +0 -28
  114. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15-sources.jar.md5 +0 -1
  115. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15-sources.jar.sha1 +0 -1
  116. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15-sources.jar.sha256 +0 -1
  117. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15-sources.jar.sha512 +0 -1
  118. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.aar +0 -0
  119. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.aar.md5 +0 -1
  120. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.aar.sha1 +0 -1
  121. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.aar.sha256 +0 -1
  122. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.aar.sha512 +0 -1
  123. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.md5 +0 -1
  124. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha1 +0 -1
  125. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha256 +0 -1
  126. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.module.sha512 +0 -1
  127. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.md5 +0 -1
  128. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha1 +0 -1
  129. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha256 +0 -1
  130. package/local-maven-repo/expo/modules/ui/expo.modules.ui/56.0.15/expo.modules.ui-56.0.15.pom.sha512 +0 -1
@@ -1,245 +1,4 @@
1
- import type { Ref } from 'react';
2
- import type { ColorValue } from 'react-native';
3
- import { type ObservableState } from '../../State';
4
- import type { ModifierConfig } from '../../types';
5
- import { type ShapeJSXElement } from '../Shape';
6
- /**
7
- * Can be used for imperatively focusing and setting text/selection on the `TextField` component.
8
- */
9
- export type TextFieldRef = {
10
- setText: (newText: string) => Promise<void>;
11
- /** Clear the current text. */
12
- clear: () => Promise<void>;
13
- focus: () => Promise<void>;
14
- blur: () => Promise<void>;
15
- /**
16
- * Programmatically set the selection range.
17
- */
18
- setSelection: (start: number, end: number) => Promise<void>;
19
- };
20
- export type TextFieldCapitalization = 'none' | 'characters' | 'words' | 'sentences';
21
- export type TextFieldKeyboardType = 'text' | 'number' | 'email' | 'phone' | 'decimal' | 'password' | 'ascii' | 'uri' | 'numberPassword';
22
- export type TextFieldImeAction = 'default' | 'none' | 'go' | 'search' | 'send' | 'previous' | 'next' | 'done';
23
- /**
24
- * Keyboard options matching Compose `KeyboardOptions`.
25
- */
26
- export type TextFieldKeyboardOptions = {
27
- /** @default 'none' */
28
- capitalization?: TextFieldCapitalization;
29
- /** @default true */
30
- autoCorrectEnabled?: boolean;
31
- /** @default 'text' */
32
- keyboardType?: TextFieldKeyboardType;
33
- /** @default 'default' */
34
- imeAction?: TextFieldImeAction;
35
- };
36
- /**
37
- * Keyboard actions matching Compose `KeyboardActions`.
38
- * The triggered callback depends on the `imeAction` in `keyboardOptions`.
39
- */
40
- export type TextFieldKeyboardActions = {
41
- onDone?: (value: string) => void;
42
- onGo?: (value: string) => void;
43
- onNext?: (value: string) => void;
44
- onPrevious?: (value: string) => void;
45
- onSearch?: (value: string) => void;
46
- onSend?: (value: string) => void;
47
- };
48
- /**
49
- * Colors for `TextField` and `OutlinedTextField`.
50
- * Maps to `TextFieldColors` in Compose, shared by both variants.
51
- */
52
- export type TextFieldColors = {
53
- focusedTextColor?: ColorValue;
54
- unfocusedTextColor?: ColorValue;
55
- disabledTextColor?: ColorValue;
56
- errorTextColor?: ColorValue;
57
- focusedContainerColor?: ColorValue;
58
- unfocusedContainerColor?: ColorValue;
59
- disabledContainerColor?: ColorValue;
60
- errorContainerColor?: ColorValue;
61
- cursorColor?: ColorValue;
62
- errorCursorColor?: ColorValue;
63
- focusedIndicatorColor?: ColorValue;
64
- unfocusedIndicatorColor?: ColorValue;
65
- disabledIndicatorColor?: ColorValue;
66
- errorIndicatorColor?: ColorValue;
67
- focusedLeadingIconColor?: ColorValue;
68
- unfocusedLeadingIconColor?: ColorValue;
69
- disabledLeadingIconColor?: ColorValue;
70
- errorLeadingIconColor?: ColorValue;
71
- focusedTrailingIconColor?: ColorValue;
72
- unfocusedTrailingIconColor?: ColorValue;
73
- disabledTrailingIconColor?: ColorValue;
74
- errorTrailingIconColor?: ColorValue;
75
- focusedLabelColor?: ColorValue;
76
- unfocusedLabelColor?: ColorValue;
77
- disabledLabelColor?: ColorValue;
78
- errorLabelColor?: ColorValue;
79
- focusedPlaceholderColor?: ColorValue;
80
- unfocusedPlaceholderColor?: ColorValue;
81
- disabledPlaceholderColor?: ColorValue;
82
- errorPlaceholderColor?: ColorValue;
83
- focusedSupportingTextColor?: ColorValue;
84
- unfocusedSupportingTextColor?: ColorValue;
85
- disabledSupportingTextColor?: ColorValue;
86
- errorSupportingTextColor?: ColorValue;
87
- focusedPrefixColor?: ColorValue;
88
- unfocusedPrefixColor?: ColorValue;
89
- disabledPrefixColor?: ColorValue;
90
- errorPrefixColor?: ColorValue;
91
- focusedSuffixColor?: ColorValue;
92
- unfocusedSuffixColor?: ColorValue;
93
- disabledSuffixColor?: ColorValue;
94
- errorSuffixColor?: ColorValue;
95
- };
96
- /** Shared props between `TextField` and `OutlinedTextField`. */
97
- type BaseTextFieldProps = {
98
- ref?: Ref<TextFieldRef>;
99
- /**
100
- * An observable state that holds the current text value. Create one with
101
- * `useNativeState('initial text')`. If omitted, the field manages its own
102
- * internal state.
103
- */
104
- value?: ObservableState<string>;
105
- /** If true, the text field will be focused automatically when mounted. @default false */
106
- autoFocus?: boolean;
107
- /** @default true */
108
- enabled?: boolean;
109
- /** @default false */
110
- readOnly?: boolean;
111
- /** @default false */
112
- isError?: boolean;
113
- /** @default false */
114
- singleLine?: boolean;
115
- maxLines?: number;
116
- minLines?: number;
117
- /**
118
- * Display-time text transformation. `'password'` masks every character;
119
- * `'none'` (default) leaves the buffer as-is.
120
- */
121
- visualTransformation?: 'password' | 'none';
122
- /**
123
- * Selection-related colors. Maps to Compose's `TextSelectionColors` via
124
- * `LocalTextSelectionColors`. `handleColor` controls the drag handles;
125
- * `backgroundColor` is the highlighted-text background (typically the same
126
- * tint at lower alpha so the underlying text stays readable).
127
- */
128
- textSelectionColors?: {
129
- handleColor?: ColorValue;
130
- backgroundColor?: ColorValue;
131
- };
132
- /**
133
- * Observable state holding the current selection range. Create with
134
- * `useNativeState({ start: 0, end: 0 })`. The field writes user-driven
135
- * changes back to it, and writes from JS (or a worklet) update the
136
- * cursor/selection in the field. Use `ref.setSelection(start, end)` for
137
- * imperative one-shot updates.
138
- */
139
- selection?: ObservableState<{
140
- start: number;
141
- end: number;
142
- }>;
143
- /** Maximum number of characters allowed. Truncates natively as the user types. */
144
- maxLength?: number;
145
- /** Called when the selection range changes. */
146
- onSelectionChange?: (selection: {
147
- start: number;
148
- end: number;
149
- }) => void;
150
- /**
151
- * Text styling for the field's content. Maps to Compose's `TextStyle`.
152
- */
153
- textStyle?: {
154
- textAlign?: 'left' | 'right' | 'center' | 'justify';
155
- color?: ColorValue;
156
- fontSize?: number;
157
- fontFamily?: string;
158
- fontWeight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'normal' | 'bold';
159
- lineHeight?: number;
160
- letterSpacing?: number;
161
- };
162
- keyboardOptions?: TextFieldKeyboardOptions;
163
- keyboardActions?: TextFieldKeyboardActions;
164
- /**
165
- * Fires whenever the text value changes. If marked with the `'worklet'`
166
- * directive, runs synchronously on the UI thread; otherwise delivered
167
- * asynchronously as a regular JS event. Use `onSelectionChange` (or read
168
- * the `selection` observable) to react to selection-only changes.
169
- */
170
- onValueChange?: (value: string) => void;
171
- /** A callback triggered when the field gains or loses focus. */
172
- onFocusChanged?: (focused: boolean) => void;
173
- /**
174
- * Shape used for the field's container outline/fill. Use the helpers from
175
- * `Shape` (for example, `<Shape.Pill />` or `<Shape.RoundedCorner cornerRadii={...} />`).
176
- * Defaults to the Material `OutlinedTextFieldDefaults.shape`/`TextFieldDefaults.shape`.
177
- */
178
- shape?: ShapeJSXElement;
179
- modifiers?: ModifierConfig[];
180
- /** Slot children (e.g. `TextField.Label`, `TextField.Placeholder`). */
181
- children?: React.ReactNode;
182
- };
183
- export type TextFieldProps = BaseTextFieldProps & {
184
- colors?: TextFieldColors;
185
- };
186
- export type OutlinedTextFieldProps = BaseTextFieldProps & {
187
- colors?: TextFieldColors;
188
- };
189
- /**
190
- * A Material3 `TextField`.
191
- */
192
- declare function TextFieldComponent(props: TextFieldProps): import("react/jsx-runtime").JSX.Element;
193
- declare namespace TextFieldComponent {
194
- var Label: (props: {
195
- children: React.ReactNode;
196
- }) => import("react/jsx-runtime").JSX.Element;
197
- var Placeholder: (props: {
198
- children: React.ReactNode;
199
- }) => import("react/jsx-runtime").JSX.Element;
200
- var LeadingIcon: (props: {
201
- children: React.ReactNode;
202
- }) => import("react/jsx-runtime").JSX.Element;
203
- var TrailingIcon: (props: {
204
- children: React.ReactNode;
205
- }) => import("react/jsx-runtime").JSX.Element;
206
- var Prefix: (props: {
207
- children: React.ReactNode;
208
- }) => import("react/jsx-runtime").JSX.Element;
209
- var Suffix: (props: {
210
- children: React.ReactNode;
211
- }) => import("react/jsx-runtime").JSX.Element;
212
- var SupportingText: (props: {
213
- children: React.ReactNode;
214
- }) => import("react/jsx-runtime").JSX.Element;
215
- }
216
- /**
217
- * A Material3 `OutlinedTextField` with a transparent background and border outline.
218
- */
219
- declare function OutlinedTextFieldComponent(props: OutlinedTextFieldProps): import("react/jsx-runtime").JSX.Element;
220
- declare namespace OutlinedTextFieldComponent {
221
- var Label: (props: {
222
- children: React.ReactNode;
223
- }) => import("react/jsx-runtime").JSX.Element;
224
- var Placeholder: (props: {
225
- children: React.ReactNode;
226
- }) => import("react/jsx-runtime").JSX.Element;
227
- var LeadingIcon: (props: {
228
- children: React.ReactNode;
229
- }) => import("react/jsx-runtime").JSX.Element;
230
- var TrailingIcon: (props: {
231
- children: React.ReactNode;
232
- }) => import("react/jsx-runtime").JSX.Element;
233
- var Prefix: (props: {
234
- children: React.ReactNode;
235
- }) => import("react/jsx-runtime").JSX.Element;
236
- var Suffix: (props: {
237
- children: React.ReactNode;
238
- }) => import("react/jsx-runtime").JSX.Element;
239
- var SupportingText: (props: {
240
- children: React.ReactNode;
241
- }) => import("react/jsx-runtime").JSX.Element;
242
- }
243
- export { TextFieldComponent as TextField, OutlinedTextFieldComponent as OutlinedTextField };
244
- export { type ObservableState };
1
+ export { TextField, OutlinedTextField, type TextFieldColors, type TextFieldProps, type OutlinedTextFieldProps, type ObservableState, } from './TextField';
2
+ export { BasicTextField, type BasicTextFieldProps, type BasicTextFieldRef } from './BasicTextField';
3
+ export type { TextFieldRef, TextFieldCapitalization, TextFieldImeAction, TextFieldKeyboardType, TextFieldKeyboardOptions, TextFieldKeyboardActions, TextFieldTextStyle, CommonTextFieldProperties, } from './shared';
245
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAA4B,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAiB,KAAK,eAAe,EAAyB,MAAM,UAAU,CAAC;AAMtF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,8BAA8B;IAC9B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC;AAEpF,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,gBAAgB,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,MAAM,GACN,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,CAAC;AAEX;;GA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S,CAAA;KAAE;;AAuB5D;;GAEG;AACH,iBAAS,0BAA0B,CAAC,KAAK,EAAE,sBAAsB,2CAEhE;kBAFQ,0BAA0B;uBAlDb;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;6BAIvB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;6BAI7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;8BAI5B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;wBAInC;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;wBAI7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;gCAIrB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AAwC5D,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,0BAA0B,IAAI,iBAAiB,EAAE,CAAC;AAG5F,OAAO,EAAE,KAAK,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpG,YAAY,EACV,YAAY,EACZ,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,UAAU,CAAC"}
@@ -0,0 +1,171 @@
1
+ import type { ReactNode, Ref } from 'react';
2
+ import type { ColorValue } from 'react-native';
3
+ import { type ObservableState } from '../../State';
4
+ import type { ModifierConfig, ViewEvent } from '../../types';
5
+ /**
6
+ * Can be used for imperatively focusing and setting text/selection on the
7
+ * `TextField`, `OutlinedTextField`, and `BasicTextField` components.
8
+ */
9
+ export type TextFieldRef = {
10
+ setText: (newText: string) => Promise<void>;
11
+ /** Clear the current text. */
12
+ clear: () => Promise<void>;
13
+ focus: () => Promise<void>;
14
+ blur: () => Promise<void>;
15
+ /**
16
+ * Programmatically set the selection range.
17
+ */
18
+ setSelection: (start: number, end: number) => Promise<void>;
19
+ };
20
+ export type TextFieldCapitalization = 'none' | 'characters' | 'words' | 'sentences';
21
+ export type TextFieldKeyboardType = 'text' | 'number' | 'email' | 'phone' | 'decimal' | 'password' | 'ascii' | 'uri' | 'numberPassword';
22
+ export type TextFieldImeAction = 'default' | 'none' | 'go' | 'search' | 'send' | 'previous' | 'next' | 'done';
23
+ /**
24
+ * Keyboard options matching Compose `KeyboardOptions`.
25
+ */
26
+ export type TextFieldKeyboardOptions = {
27
+ /** @default 'none' */
28
+ capitalization?: TextFieldCapitalization;
29
+ /** @default true */
30
+ autoCorrectEnabled?: boolean;
31
+ /** @default 'text' */
32
+ keyboardType?: TextFieldKeyboardType;
33
+ /** @default 'default' */
34
+ imeAction?: TextFieldImeAction;
35
+ };
36
+ /**
37
+ * Keyboard actions matching Compose `KeyboardActions`.
38
+ * The triggered callback depends on the `imeAction` in `keyboardOptions`.
39
+ */
40
+ export type TextFieldKeyboardActions = {
41
+ onDone?: (value: string) => void;
42
+ onGo?: (value: string) => void;
43
+ onNext?: (value: string) => void;
44
+ onPrevious?: (value: string) => void;
45
+ onSearch?: (value: string) => void;
46
+ onSend?: (value: string) => void;
47
+ };
48
+ /**
49
+ * Text styling for a text field's content. Maps to Compose's `TextStyle`.
50
+ * Shared by `TextField`, `OutlinedTextField`, and `BasicTextField`.
51
+ */
52
+ export type TextFieldTextStyle = {
53
+ textAlign?: 'left' | 'right' | 'center' | 'justify';
54
+ color?: ColorValue;
55
+ fontSize?: number;
56
+ fontFamily?: string;
57
+ fontWeight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'normal' | 'bold';
58
+ lineHeight?: number;
59
+ letterSpacing?: number;
60
+ };
61
+ /**
62
+ * Props shared by every Compose text field variant — `TextField`,
63
+ * `OutlinedTextField`, and `BasicTextField`. The Material variants add their
64
+ * own decoration props (`isError`, `shape`, `colors`, slot children);
65
+ * `BasicTextField` adds `cursorColor`.
66
+ */
67
+ export type CommonTextFieldProperties = {
68
+ ref?: Ref<TextFieldRef>;
69
+ /**
70
+ * An observable state that holds the current text value. Create one with
71
+ * `useNativeState('initial text')`. If omitted, the field manages its own
72
+ * internal state.
73
+ */
74
+ value?: ObservableState<string>;
75
+ /** If true, the text field will be focused automatically when mounted. @default false */
76
+ autoFocus?: boolean;
77
+ /** @default true */
78
+ enabled?: boolean;
79
+ /** @default false */
80
+ readOnly?: boolean;
81
+ /** @default false */
82
+ singleLine?: boolean;
83
+ maxLines?: number;
84
+ minLines?: number;
85
+ /**
86
+ * Display-time text transformation. `'password'` masks every character;
87
+ * `'none'` (default) leaves the buffer as-is.
88
+ */
89
+ visualTransformation?: 'password' | 'none';
90
+ /**
91
+ * Observable state holding the current selection range. Create with
92
+ * `useNativeState({ start: 0, end: 0 })`. The field writes user-driven
93
+ * changes back to it, and writes from JS (or a worklet) update the
94
+ * cursor/selection in the field. Use `ref.setSelection(start, end)` for
95
+ * imperative one-shot updates.
96
+ */
97
+ selection?: ObservableState<{
98
+ start: number;
99
+ end: number;
100
+ }>;
101
+ /** Maximum number of characters allowed. Truncates natively as the user types. */
102
+ maxLength?: number;
103
+ /** Called when the selection range changes. */
104
+ onSelectionChange?: (selection: {
105
+ start: number;
106
+ end: number;
107
+ }) => void;
108
+ /**
109
+ * Selection-related colors. Maps to Compose's `TextSelectionColors` via
110
+ * `LocalTextSelectionColors`. `handleColor` controls the drag handles (and
111
+ * the caret's drag handle); `backgroundColor` is the highlighted-text
112
+ * background (typically the same tint at lower alpha so the underlying text
113
+ * stays readable). Independent of `cursorColor`, which tints the caret line.
114
+ */
115
+ textSelectionColors?: {
116
+ handleColor?: ColorValue;
117
+ backgroundColor?: ColorValue;
118
+ };
119
+ /**
120
+ * Text styling for the field's content. Maps to Compose's `TextStyle`.
121
+ */
122
+ textStyle?: TextFieldTextStyle;
123
+ keyboardOptions?: TextFieldKeyboardOptions;
124
+ keyboardActions?: TextFieldKeyboardActions;
125
+ /**
126
+ * Fires whenever the text value changes. If marked with the `'worklet'`
127
+ * directive, runs synchronously on the UI thread; otherwise delivered
128
+ * asynchronously as a regular JS event. Use `onSelectionChange` (or read
129
+ * the `selection` observable) to react to selection-only changes.
130
+ */
131
+ onValueChange?: (value: string) => void;
132
+ /** A callback triggered when the field gains or loses focus. */
133
+ onFocusChanged?: (focused: boolean) => void;
134
+ modifiers?: ModifierConfig[];
135
+ /** Slot children that configure the field's decoration. */
136
+ children?: ReactNode;
137
+ };
138
+ /**
139
+ * Keys consumed (and reshaped) by {@link useCommonTextFieldProps}. Everything
140
+ * else on the props passes through untouched.
141
+ */
142
+ type TransformedKeys = 'value' | 'selection' | 'modifiers' | 'children' | 'keyboardActions' | 'onValueChange' | 'onFocusChanged' | 'onSelectionChange';
143
+ /**
144
+ * Native-facing prop shape shared by every Compose text field variant. The
145
+ * observable-backed props collapse to shared-object ids, and the public
146
+ * callbacks become `nativeEvent`-wrapped listeners.
147
+ */
148
+ export type CommonNativeTextFieldProps = {
149
+ modifiers?: ModifierConfig[];
150
+ children?: ReactNode;
151
+ value?: number | null;
152
+ selection?: number | null;
153
+ onValueChangeSync?: number | null;
154
+ } & ViewEvent<'onValueChange', {
155
+ text: string;
156
+ selection: {
157
+ start: number;
158
+ end: number;
159
+ };
160
+ }> & ViewEvent<'onFocusChanged', {
161
+ value: boolean;
162
+ }> & ViewEvent<'onSelectionChange', {
163
+ start: number;
164
+ end: number;
165
+ }> & ViewEvent<'onKeyboardAction', {
166
+ action: string;
167
+ value: string;
168
+ }>;
169
+ export declare function useCommonTextFieldProps<T extends CommonTextFieldProperties>(props: T): CommonNativeTextFieldProps & Omit<T, TransformedKeys>;
170
+ export {};
171
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextField/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAc,KAAK,eAAe,EAA4B,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,8BAA8B;IAC9B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,GAAG,WAAW,CAAC;AAEpF,MAAM,MAAM,qBAAqB,GAC7B,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,gBAAgB,CAAC;AAErB,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,MAAM,GACN,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,wBAAw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DAA2D;IAC3D,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAIF;;;GAGG;AACH,KAAK,eAAe,GAChB,OAAO,GACP,WAAW,GACX,WAAW,GACX,UAAU,GACV,iBAAiB,GACjB,eAAe,GACf,gBAAgB,GAChB,mBAAmB,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,GAAG,SAAS,CAAC,eAAe,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,GACzF,SAAS,CAAC,gBAAgB,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,GAC/C,SAAS,CAAC,mBAAmB,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,SAAS,CAAC,kBAAkB,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEnE,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,yBAAyB,EACzE,KAAK,EAAE,CAAC,GACP,0BAA0B,GAAG,IAAI,CAAC,CAAC,EAAE,eAAe,CAAC,CA6CvD"}
@@ -25,10 +25,11 @@ export * from './Slider';
25
25
  export * from './Spacer';
26
26
  export * from './Switch';
27
27
  export * from './SyncSwitch';
28
- export { TextField, OutlinedTextField, type TextFieldProps, type TextFieldRef, type TextFieldCapitalization, type TextFieldImeAction, type TextFieldKeyboardOptions, type TextFieldKeyboardType, type TextFieldKeyboardActions, type TextFieldColors, } from './TextField';
28
+ export { TextField, OutlinedTextField, BasicTextField, type TextFieldProps, type OutlinedTextFieldProps, type BasicTextFieldProps, type BasicTextFieldRef, type TextFieldRef, type TextFieldCapitalization, type TextFieldImeAction, type TextFieldKeyboardOptions, type TextFieldKeyboardType, type TextFieldKeyboardActions, type TextFieldColors, type TextFieldTextStyle, type CommonTextFieldProperties, } from './TextField';
29
29
  export * from './ToggleButton';
30
30
  export * from './Shape';
31
31
  export * from './ModalBottomSheet';
32
+ export * from './NavigationBar';
32
33
  export * from './Carousel';
33
34
  export { HorizontalPager, type HorizontalPagerHandle, type HorizontalPagerProps, } from './HorizontalPager';
34
35
  export * from './SearchBar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAE/C,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAClF,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,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aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,KAAK,SAAS,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC"}
@@ -100,6 +100,37 @@ export declare const border: (borderWidth: number, borderColor: ColorValue) => i
100
100
  * @param elevation - Shadow elevation in dp.
101
101
  */
102
102
  export declare const shadow: (elevation: number) => import("./createModifier").ModifierConfig;
103
+ /**
104
+ * Options for the `dropShadow` and `innerShadow` modifiers.
105
+ */
106
+ export type ShadowConfig = {
107
+ /** Blur radius of the shadow in dp. */
108
+ radius?: number;
109
+ /** Amount to expand (positive) or contract (negative) the shadow geometry in dp. */
110
+ spread?: number;
111
+ /** Shadow color string (hex). Defaults to black. */
112
+ color?: ColorValue;
113
+ /** Horizontal offset of the shadow in dp. */
114
+ offsetX?: number;
115
+ /** Vertical offset of the shadow in dp. */
116
+ offsetY?: number;
117
+ /** Shadow opacity, from 0.0 to 1.0. */
118
+ alpha?: number;
119
+ };
120
+ /**
121
+ * Draws a shadow behind the view with control over the blur radius, spread, offset, and color. Unlike
122
+ * `shadow`, it does not require an elevation value.
123
+ * @param shape - The shape of the shadow, for example `Shapes.RoundedCorner(16)` or `Shapes.Circle`.
124
+ * @param config - Options that control the shadow's appearance.
125
+ */
126
+ export declare const dropShadow: (shape: BuiltinShape, config?: ShadowConfig) => import("./createModifier").ModifierConfig;
127
+ /**
128
+ * Draws a shadow inside the view to create an inset effect. The view's `background` must come before
129
+ * this modifier for the shadow to render.
130
+ * @param shape - The shape of the shadow, for example `Shapes.RoundedCorner(16)` or `Shapes.Circle`.
131
+ * @param config - Options that control the shadow's appearance.
132
+ */
133
+ export declare const innerShadow: (shape: BuiltinShape, config?: ShadowConfig) => import("./createModifier").ModifierConfig;
103
134
  /**
104
135
  * Sets the opacity/alpha of the view.
105
136
  * @param alpha - Opacity value (0.0 to 1.0).
@@ -255,6 +286,17 @@ export declare const onSizeChanged: (handler: (size: {
255
286
  width: number;
256
287
  height: number;
257
288
  }) => void) => import("./createModifier").ModifierConfig;
289
+ /**
290
+ * Calls the handler whenever the composable is positioned, with its position and size.
291
+ * `x` and `y` are relative to the window. All values are in dp.
292
+ * @param handler - Function called with the new layout.
293
+ */
294
+ export declare const onGloballyPositioned: (handler: (layout: {
295
+ x: number;
296
+ y: number;
297
+ width: number;
298
+ height: number;
299
+ }) => void) => import("./createModifier").ModifierConfig;
258
300
  /**
259
301
  * Sets the test ID for testing frameworks.
260
302
  * @param tag - Test ID string.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/modifiers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,SAAS,G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;GAIG;AACH,eAAO,MAAM,gBAAgB,iDAA2C,CAAC;AAEzE,OAAO,EAAE,cAAc,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { type CommonViewModifierProps } from '../types';
2
2
  export interface DisclosureGroupProps extends CommonViewModifierProps {
3
- label: string;
3
+ /**
4
+ * Text label for the disclosure group. Use `DisclosureGroup.Label` for custom label content.
5
+ */
6
+ label?: string;
4
7
  children: React.ReactNode;
5
8
  /**
6
9
  * Controls whether the disclosure group is expanded.
@@ -11,5 +14,11 @@ export interface DisclosureGroupProps extends CommonViewModifierProps {
11
14
  */
12
15
  onIsExpandedChange?: (isExpanded: boolean) => void;
13
16
  }
14
- export declare function DisclosureGroup(props: DisclosureGroupProps): import("react/jsx-runtime").JSX.Element;
17
+ declare function DisclosureGroupComponent(props: DisclosureGroupProps): import("react/jsx-runtime").JSX.Element;
18
+ declare namespace DisclosureGroupComponent {
19
+ var Label: ({ children }: {
20
+ children: React.ReactNode;
21
+ }) => import("react/jsx-runtime").JSX.Element;
22
+ }
23
+ export { DisclosureGroupComponent as DisclosureGroup };
15
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/DisclosureGroup/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD;AAUD,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAc1D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/DisclosureGroup/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,oBAAqB,SAAQ,uBAAuB;IACnE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CACpD;AAcD,iBAAS,wBAAwB,CAAC,KAAK,EAAE,oBAAoB,2CAc5D;kBAdQ,wBAAwB;8BAJJ;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AAsB1D,OAAO,EAAE,wBAAwB,IAAI,eAAe,EAAE,CAAC"}
@@ -7,6 +7,10 @@ export interface ImageProps extends CommonViewModifierProps {
7
7
  * For example: 'photo', 'heart.fill', 'star.circle'
8
8
  */
9
9
  systemName?: SFSymbol;
10
+ /**
11
+ * The asset catalog name of a custom SF Symbol imported as a symbol set.
12
+ */
13
+ assetName?: string;
10
14
  /**
11
15
  * The URI of the local image file to display.
12
16
  * For example: 'file:///path/to/image.jpg'
@@ -14,7 +18,9 @@ export interface ImageProps extends CommonViewModifierProps {
14
18
  */
15
19
  uiImage?: string;
16
20
  /**
17
- * The size of the system image.
21
+ * The fixed size of the system image in points. Does not scale with Dynamic
22
+ * Type. Use the `font` modifier with `textStyle` for that. Ignored when a
23
+ * `font` modifier is supplied.
18
24
  */
19
25
  size?: number;
20
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Image/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA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-15,6 +15,11 @@ export type LabelProps = {
15
15
  * When provided, this takes precedence over `systemImage`.
16
16
  */
17
17
  icon?: React.ReactNode;
18
+ /**
19
+ * Custom title view. Accepts any React node (for example, a `VStack` with title and subtitle).
20
+ * When provided, this takes precedence over `title`.
21
+ */
22
+ children?: React.ReactNode;
18
23
  /**
19
24
  * The color of the label icon.
20
25
  * @deprecated Use `foregroundStyle` modifier instead.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,GAAG,uBAAuB,CAAC;AAK5B;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAUtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,GAAG,uBAAuB,CAAC;AAK5B;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAWtC"}