@expo/ui 55.0.2 → 55.0.3

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 (193) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/AnimatedVisibilityView.kt +130 -0
  4. package/android/src/main/java/expo/modules/ui/CardView.kt +138 -34
  5. package/android/src/main/java/expo/modules/ui/CheckboxView.kt +98 -0
  6. package/android/src/main/java/expo/modules/ui/ChipView.kt +267 -142
  7. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +258 -70
  8. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +204 -57
  9. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +44 -1
  10. package/android/src/main/java/expo/modules/ui/ProgressView.kt +189 -89
  11. package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +3 -7
  12. package/android/src/main/java/expo/modules/ui/SegmentedButtonView.kt +115 -0
  13. package/android/src/main/java/expo/modules/ui/SegmentedControlView.kt +35 -0
  14. package/android/src/main/java/expo/modules/ui/SliderView.kt +70 -12
  15. package/android/src/main/java/expo/modules/ui/SwitchView.kt +53 -161
  16. package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +95 -57
  17. package/android/src/main/java/expo/modules/ui/button/Button.kt +117 -158
  18. package/android/src/main/java/expo/modules/ui/button/FloatingActionButton.kt +92 -0
  19. package/android/src/main/java/expo/modules/ui/button/IconButton.kt +73 -86
  20. package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +39 -0
  21. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuItem.kt +70 -0
  22. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +18 -0
  23. package/build/jetpack-compose/AnimatedVisibility/index.d.ts +134 -0
  24. package/build/jetpack-compose/AnimatedVisibility/index.d.ts.map +1 -0
  25. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts +3 -0
  26. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts.map +1 -0
  27. package/build/jetpack-compose/Button/index.d.ts +65 -51
  28. package/build/jetpack-compose/Button/index.d.ts.map +1 -1
  29. package/build/jetpack-compose/Card/index.d.ts +72 -14
  30. package/build/jetpack-compose/Card/index.d.ts.map +1 -1
  31. package/build/jetpack-compose/Checkbox/index.d.ts +73 -0
  32. package/build/jetpack-compose/Checkbox/index.d.ts.map +1 -0
  33. package/build/jetpack-compose/Chip/index.d.ts +247 -27
  34. package/build/jetpack-compose/Chip/index.d.ts.map +1 -1
  35. package/build/jetpack-compose/DatePicker/index.d.ts +38 -3
  36. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  37. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +70 -0
  38. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts.map +1 -0
  39. package/build/jetpack-compose/DropdownMenu/index.d.ts +68 -0
  40. package/build/jetpack-compose/DropdownMenu/index.d.ts.map +1 -0
  41. package/build/jetpack-compose/FloatingActionButton/index.d.ts +150 -0
  42. package/build/jetpack-compose/FloatingActionButton/index.d.ts.map +1 -0
  43. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +2 -2
  44. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts.map +1 -1
  45. package/build/jetpack-compose/IconButton/index.d.ts +45 -29
  46. package/build/jetpack-compose/IconButton/index.d.ts.map +1 -1
  47. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts +17 -0
  48. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  49. package/build/jetpack-compose/Progress/index.d.ts +78 -35
  50. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  51. package/build/jetpack-compose/RadioButton/index.d.ts +2 -2
  52. package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -1
  53. package/build/jetpack-compose/SegmentedButton/index.d.ts +74 -0
  54. package/build/jetpack-compose/SegmentedButton/index.d.ts.map +1 -0
  55. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts +17 -0
  56. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  57. package/build/jetpack-compose/Slider/index.d.ts +34 -10
  58. package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
  59. package/build/jetpack-compose/Switch/index.d.ts +10 -50
  60. package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
  61. package/build/jetpack-compose/ToggleButton/index.d.ts +60 -32
  62. package/build/jetpack-compose/ToggleButton/index.d.ts.map +1 -1
  63. package/build/jetpack-compose/index.d.ts +5 -4
  64. package/build/jetpack-compose/index.d.ts.map +1 -1
  65. package/build/jetpack-compose/modifiers/index.d.ts +18 -1
  66. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  67. package/build/swift-ui/ProgressView/index.d.ts +1 -5
  68. package/build/swift-ui/ProgressView/index.d.ts.map +1 -1
  69. package/build/swift-ui/Stepper/index.d.ts +3 -3
  70. package/build/swift-ui/Stepper/index.d.ts.map +1 -1
  71. package/build/swift-ui/Text/index.d.ts +33 -1
  72. package/build/swift-ui/Text/index.d.ts.map +1 -1
  73. package/build/swift-ui/modifiers/index.d.ts +22 -1
  74. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  75. package/build/swift-ui/modifiers/shapes/index.d.ts +2 -2
  76. package/build/swift-ui/types.d.ts +7 -0
  77. package/build/swift-ui/types.d.ts.map +1 -1
  78. package/expo-module.config.json +1 -1
  79. package/ios/BottomSheetView.swift +1 -6
  80. package/ios/ClosedRangeDateRecord.swift +10 -0
  81. package/ios/ColorPickerView.swift +9 -8
  82. package/ios/ConfirmationDialog/ConfirmationDialog.swift +4 -6
  83. package/ios/DatePickerView.swift +7 -5
  84. package/ios/DisclosureGroupView.swift +5 -7
  85. package/ios/ListView.swift +6 -14
  86. package/ios/Modifiers/DefaultScrollAnchorForRoleModifier.swift +32 -0
  87. package/ios/Modifiers/DefaultScrollAnchorModifier.swift +16 -0
  88. package/ios/Modifiers/ViewModifierRegistry.swift +8 -0
  89. package/ios/Picker/PickerView.swift +6 -10
  90. package/ios/Popover/PopoverView.swift +3 -5
  91. package/ios/ProgressView.swift +0 -5
  92. package/ios/SectionView.swift +3 -5
  93. package/ios/SliderView.swift +8 -6
  94. package/ios/StepperView.swift +12 -16
  95. package/ios/TextView.swift +37 -1
  96. package/ios/Toggle/ToggleView.swift +5 -7
  97. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar +0 -0
  98. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.md5 +1 -0
  99. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha1 +1 -0
  100. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha256 +1 -0
  101. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha512 +1 -0
  102. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar +0 -0
  103. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.md5 +1 -0
  104. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha1 +1 -0
  105. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha256 +1 -0
  106. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha512 +1 -0
  107. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.2/expo.modules.ui-55.0.2.module → 55.0.3/expo.modules.ui-55.0.3.module} +22 -22
  108. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.md5 +1 -0
  109. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha1 +1 -0
  110. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha256 +1 -0
  111. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha512 +1 -0
  112. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.2/expo.modules.ui-55.0.2.pom → 55.0.3/expo.modules.ui-55.0.3.pom} +1 -1
  113. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.md5 +1 -0
  114. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha1 +1 -0
  115. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha256 +1 -0
  116. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha512 +1 -0
  117. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  118. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  119. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  120. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  121. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  122. package/package.json +5 -2
  123. package/src/jetpack-compose/AnimatedVisibility/index.tsx +206 -0
  124. package/src/jetpack-compose/AnimatedVisibility/symbols.ts +8 -0
  125. package/src/jetpack-compose/Button/index.tsx +69 -92
  126. package/src/jetpack-compose/Card/index.tsx +105 -29
  127. package/src/jetpack-compose/Checkbox/index.tsx +126 -0
  128. package/src/jetpack-compose/Chip/index.tsx +391 -51
  129. package/src/jetpack-compose/DatePicker/index.tsx +112 -7
  130. package/src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx +126 -0
  131. package/src/jetpack-compose/DropdownMenu/index.tsx +107 -0
  132. package/src/jetpack-compose/FloatingActionButton/index.tsx +207 -0
  133. package/src/jetpack-compose/HorizontalFloatingToolbar/index.tsx +4 -2
  134. package/src/jetpack-compose/IconButton/index.tsx +49 -56
  135. package/src/jetpack-compose/MultiChoiceSegmentedButtonRow/index.tsx +34 -0
  136. package/src/jetpack-compose/Progress/index.tsx +120 -62
  137. package/src/jetpack-compose/RadioButton/index.tsx +8 -9
  138. package/src/jetpack-compose/SegmentedButton/index.tsx +109 -0
  139. package/src/jetpack-compose/SingleChoiceSegmentedButtonRow/index.tsx +34 -0
  140. package/src/jetpack-compose/Slider/index.tsx +76 -29
  141. package/src/jetpack-compose/Switch/index.tsx +17 -87
  142. package/src/jetpack-compose/ToggleButton/index.tsx +67 -43
  143. package/src/jetpack-compose/index.ts +5 -4
  144. package/src/jetpack-compose/modifiers/index.ts +26 -2
  145. package/src/swift-ui/ProgressView/index.tsx +1 -3
  146. package/src/swift-ui/Stepper/index.tsx +7 -7
  147. package/src/swift-ui/Text/index.tsx +66 -2
  148. package/src/swift-ui/modifiers/index.ts +40 -0
  149. package/src/swift-ui/types.ts +5 -0
  150. package/android/src/main/java/expo/modules/ui/FilterChipView.kt +0 -59
  151. package/android/src/main/java/expo/modules/ui/PickerView.kt +0 -161
  152. package/android/src/main/java/expo/modules/ui/TextButtonView.kt +0 -33
  153. package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +0 -183
  154. package/android/src/main/java/expo/modules/ui/menu/ContextMenuRecords.kt +0 -64
  155. package/build/jetpack-compose/Button/types.d.ts +0 -5
  156. package/build/jetpack-compose/Button/types.d.ts.map +0 -1
  157. package/build/jetpack-compose/ContextMenu/Submenu.d.ts +0 -17
  158. package/build/jetpack-compose/ContextMenu/Submenu.d.ts.map +0 -1
  159. package/build/jetpack-compose/ContextMenu/index.d.ts +0 -65
  160. package/build/jetpack-compose/ContextMenu/index.d.ts.map +0 -1
  161. package/build/jetpack-compose/ContextMenu/utils.d.ts +0 -24
  162. package/build/jetpack-compose/ContextMenu/utils.d.ts.map +0 -1
  163. package/build/jetpack-compose/FilterChip/index.d.ts +0 -49
  164. package/build/jetpack-compose/FilterChip/index.d.ts.map +0 -1
  165. package/build/jetpack-compose/Picker/index.d.ts +0 -62
  166. package/build/jetpack-compose/Picker/index.d.ts.map +0 -1
  167. package/build/jetpack-compose/TextButton/index.d.ts +0 -29
  168. package/build/jetpack-compose/TextButton/index.d.ts.map +0 -1
  169. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar +0 -0
  170. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.md5 +0 -1
  171. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha1 +0 -1
  172. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha256 +0 -1
  173. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha512 +0 -1
  174. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar +0 -0
  175. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.md5 +0 -1
  176. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha1 +0 -1
  177. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha256 +0 -1
  178. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha512 +0 -1
  179. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.md5 +0 -1
  180. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha1 +0 -1
  181. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha256 +0 -1
  182. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha512 +0 -1
  183. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.md5 +0 -1
  184. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha1 +0 -1
  185. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha256 +0 -1
  186. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha512 +0 -1
  187. package/src/jetpack-compose/Button/types.ts +0 -57
  188. package/src/jetpack-compose/ContextMenu/Submenu.tsx +0 -21
  189. package/src/jetpack-compose/ContextMenu/index.tsx +0 -149
  190. package/src/jetpack-compose/ContextMenu/utils.ts +0 -144
  191. package/src/jetpack-compose/FilterChip/index.tsx +0 -89
  192. package/src/jetpack-compose/Picker/index.tsx +0 -90
  193. package/src/jetpack-compose/TextButton/index.tsx +0 -55
@@ -1,57 +1,277 @@
1
- import React from 'react';
2
- import { ExpoModifier } from '../../types';
1
+ import { type ColorValue } from 'react-native';
2
+ import { type ModifierConfig } from '../../types';
3
3
  /**
4
- * Available text style variants for chip labels.
4
+ * Colors for AssistChip.
5
5
  */
6
- export type ChipTextStyle = 'labelSmall' | 'labelMedium' | 'labelLarge' | 'bodySmall' | 'bodyMedium' | 'bodyLarge';
7
- export interface ChipProps {
6
+ export type AssistChipColors = {
7
+ containerColor?: ColorValue;
8
+ labelColor?: ColorValue;
9
+ leadingIconContentColor?: ColorValue;
10
+ trailingIconContentColor?: ColorValue;
11
+ };
12
+ /**
13
+ * Colors for FilterChip.
14
+ */
15
+ export type FilterChipColors = {
16
+ containerColor?: ColorValue;
17
+ labelColor?: ColorValue;
18
+ iconColor?: ColorValue;
19
+ selectedContainerColor?: ColorValue;
20
+ selectedLabelColor?: ColorValue;
21
+ selectedLeadingIconColor?: ColorValue;
22
+ selectedTrailingIconColor?: ColorValue;
23
+ };
24
+ /**
25
+ * Colors for InputChip.
26
+ */
27
+ export type InputChipColors = {
28
+ containerColor?: ColorValue;
29
+ labelColor?: ColorValue;
30
+ leadingIconColor?: ColorValue;
31
+ trailingIconColor?: ColorValue;
32
+ selectedContainerColor?: ColorValue;
33
+ selectedLabelColor?: ColorValue;
34
+ selectedLeadingIconColor?: ColorValue;
35
+ selectedTrailingIconColor?: ColorValue;
36
+ };
37
+ /**
38
+ * Colors for SuggestionChip.
39
+ */
40
+ export type SuggestionChipColors = {
41
+ containerColor?: ColorValue;
42
+ labelColor?: ColorValue;
43
+ iconContentColor?: ColorValue;
44
+ };
45
+ /**
46
+ * Border configuration for chips.
47
+ */
48
+ export type ChipBorder = {
49
+ /**
50
+ * Border width in dp.
51
+ * @default 1
52
+ */
53
+ width?: number;
8
54
  /**
9
- * The variant of the chip.
55
+ * Border color.
10
56
  */
11
- variant?: 'assist' | 'filter' | 'input' | 'suggestion';
57
+ color?: ColorValue;
58
+ };
59
+ type SlotChildProps = {
60
+ children: React.ReactNode;
61
+ };
62
+ export type AssistChipProps = {
12
63
  /**
13
- * The text label to display on the chip
64
+ * Whether the chip is enabled and can be clicked.
65
+ * @default true
14
66
  */
15
- label: string;
67
+ enabled?: boolean;
16
68
  /**
17
- * Optional leading icon name (using Material Icons). Used for assist, filter, input (avatar icon), and suggestion chips.
69
+ * Colors for the chip's container, label, and icons.
18
70
  */
19
- leadingIcon?: string;
71
+ colors?: AssistChipColors;
20
72
  /**
21
- * Optional trailing icon name (using Material Icons). Used for assist, filter, and input chips. For input chips, defaults to `filled.Close` if not specified.
73
+ * Elevation in dp.
22
74
  */
23
- trailingIcon?: string;
75
+ elevation?: number;
24
76
  /**
25
- * Size of the icon in density-independent pixels (dp). Defaults to 18.
77
+ * Border configuration.
26
78
  */
27
- iconSize?: number;
79
+ border?: ChipBorder;
28
80
  /**
29
- * Text style variant for the chip label. Defaults to `labelSmall`.
81
+ * Callback fired when the chip is clicked.
30
82
  */
31
- textStyle?: ChipTextStyle;
83
+ onClick?: () => void;
32
84
  /**
33
- * Whether the chip is enabled and can be clicked. Used for assist, filter and input chips.
85
+ * Modifiers for the component.
86
+ */
87
+ modifiers?: ModifierConfig[];
88
+ /**
89
+ * Children containing Label, LeadingIcon, and TrailingIcon slots.
90
+ */
91
+ children: React.ReactNode;
92
+ };
93
+ /**
94
+ * Label slot for AssistChip.
95
+ */
96
+ declare function AssistChipLabel(props: SlotChildProps): import("react").JSX.Element;
97
+ /**
98
+ * Leading icon slot for AssistChip.
99
+ */
100
+ declare function AssistChipLeadingIcon(props: SlotChildProps): import("react").JSX.Element;
101
+ /**
102
+ * Trailing icon slot for AssistChip.
103
+ */
104
+ declare function AssistChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
105
+ /**
106
+ * An assist chip that helps users complete actions and primary tasks.
107
+ */
108
+ declare function AssistChipComponent(props: AssistChipProps): import("react").JSX.Element;
109
+ declare namespace AssistChipComponent {
110
+ var Label: typeof AssistChipLabel;
111
+ var LeadingIcon: typeof AssistChipLeadingIcon;
112
+ var TrailingIcon: typeof AssistChipTrailingIcon;
113
+ }
114
+ export { AssistChipComponent as AssistChip };
115
+ export type FilterChipProps = {
116
+ /**
117
+ * Whether the chip is currently selected.
118
+ */
119
+ selected: boolean;
120
+ /**
121
+ * Whether the chip is enabled and can be interacted with.
34
122
  */
35
123
  enabled?: boolean;
36
124
  /**
37
- * Whether the chip is selected. Used only for filter chips.
125
+ * Colors for the chip's container, label, icon, and selected states.
38
126
  */
39
- selected?: boolean;
127
+ colors?: FilterChipColors;
128
+ /**
129
+ * Elevation in dp.
130
+ */
131
+ elevation?: number;
132
+ /**
133
+ * Border configuration.
134
+ */
135
+ border?: ChipBorder;
136
+ /**
137
+ * Callback fired when the chip is clicked.
138
+ */
139
+ onClick?: () => void;
40
140
  /**
41
141
  * Modifiers for the component.
42
142
  */
43
- modifiers?: ExpoModifier[];
143
+ modifiers?: ModifierConfig[];
44
144
  /**
45
- * Callback fired when the chip is clicked. Used for assist and filter chips.
145
+ * Children containing Label, LeadingIcon, and TrailingIcon slots.
46
146
  */
47
- onPress?: () => void;
147
+ children: React.ReactNode;
148
+ };
149
+ /**
150
+ * Label slot for FilterChip.
151
+ */
152
+ declare function FilterChipLabel(props: SlotChildProps): import("react").JSX.Element;
153
+ /**
154
+ * Leading icon slot for FilterChip.
155
+ */
156
+ declare function FilterChipLeadingIcon(props: SlotChildProps): import("react").JSX.Element;
157
+ /**
158
+ * Trailing icon slot for FilterChip.
159
+ */
160
+ declare function FilterChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
161
+ /**
162
+ * A filter chip component for refining content with selection/deselection.
163
+ */
164
+ declare function FilterChipComponent(props: FilterChipProps): import("react").JSX.Element;
165
+ declare namespace FilterChipComponent {
166
+ var Label: typeof FilterChipLabel;
167
+ var LeadingIcon: typeof FilterChipLeadingIcon;
168
+ var TrailingIcon: typeof FilterChipTrailingIcon;
169
+ }
170
+ export { FilterChipComponent as FilterChip };
171
+ export type InputChipProps = {
48
172
  /**
49
- * Callback fired when the chip is dismissed. Only used for input chips.
173
+ * Whether the chip is enabled and can be interacted with.
174
+ * @default true
50
175
  */
51
- onDismiss?: () => void;
176
+ enabled?: boolean;
177
+ /**
178
+ * Whether the chip is selected.
179
+ * @default false
180
+ */
181
+ selected?: boolean;
182
+ /**
183
+ * Colors for the chip's container, label, icons, and selected states.
184
+ */
185
+ colors?: InputChipColors;
186
+ /**
187
+ * Elevation in dp.
188
+ */
189
+ elevation?: number;
190
+ /**
191
+ * Border configuration.
192
+ */
193
+ border?: ChipBorder;
194
+ /**
195
+ * Callback fired when the chip is clicked.
196
+ */
197
+ onClick?: () => void;
198
+ /**
199
+ * Modifiers for the component.
200
+ */
201
+ modifiers?: ModifierConfig[];
202
+ /**
203
+ * Children containing Label, Avatar, and TrailingIcon slots.
204
+ */
205
+ children: React.ReactNode;
206
+ };
207
+ /**
208
+ * Label slot for InputChip.
209
+ */
210
+ declare function InputChipLabel(props: SlotChildProps): import("react").JSX.Element;
211
+ /**
212
+ * Avatar slot for InputChip.
213
+ */
214
+ declare function InputChipAvatar(props: SlotChildProps): import("react").JSX.Element;
215
+ /**
216
+ * Trailing icon slot for InputChip.
217
+ */
218
+ declare function InputChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
219
+ /**
220
+ * An input chip that represents user input and can be dismissed.
221
+ */
222
+ declare function InputChipComponent(props: InputChipProps): import("react").JSX.Element;
223
+ declare namespace InputChipComponent {
224
+ var Label: typeof InputChipLabel;
225
+ var Avatar: typeof InputChipAvatar;
226
+ var TrailingIcon: typeof InputChipTrailingIcon;
52
227
  }
228
+ export { InputChipComponent as InputChip };
229
+ export type SuggestionChipProps = {
230
+ /**
231
+ * Whether the chip is enabled and can be clicked.
232
+ * @default true
233
+ */
234
+ enabled?: boolean;
235
+ /**
236
+ * Colors for the chip's container, label, and icon.
237
+ */
238
+ colors?: SuggestionChipColors;
239
+ /**
240
+ * Elevation in dp.
241
+ */
242
+ elevation?: number;
243
+ /**
244
+ * Border configuration.
245
+ */
246
+ border?: ChipBorder;
247
+ /**
248
+ * Callback fired when the chip is clicked.
249
+ */
250
+ onClick?: () => void;
251
+ /**
252
+ * Modifiers for the component.
253
+ */
254
+ modifiers?: ModifierConfig[];
255
+ /**
256
+ * Children containing Label and Icon slots.
257
+ */
258
+ children: React.ReactNode;
259
+ };
53
260
  /**
54
- * Displays a native chip component.
261
+ * Label slot for SuggestionChip.
55
262
  */
56
- export declare function Chip(props: ChipProps): React.JSX.Element;
263
+ declare function SuggestionChipLabel(props: SlotChildProps): import("react").JSX.Element;
264
+ /**
265
+ * Icon slot for SuggestionChip.
266
+ */
267
+ declare function SuggestionChipIcon(props: SlotChildProps): import("react").JSX.Element;
268
+ /**
269
+ * A suggestion chip that offers contextual suggestions and recommendations.
270
+ */
271
+ declare function SuggestionChipComponent(props: SuggestionChipProps): import("react").JSX.Element;
272
+ declare namespace SuggestionChipComponent {
273
+ var Label: typeof SuggestionChipLabel;
274
+ var Icon: typeof SuggestionChipIcon;
275
+ }
276
+ export { SuggestionChipComponent as SuggestionChip };
57
277
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Chip/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,aAAa,GACrB,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,WAAW,CAAC;AAEhB,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC;IAEvD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAkBD;;GAEG;AACH,wBAAgB,IAAI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,KAAK,EAAE,cAAc,+BAEnD;AAED;;GAEG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,cAAc,+BAYhD;kBAZQ,kBAAkB;;;;;AAkB3B,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC;AAM3C,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAWF;;GAEG;AACH,iBAAS,mBAAmB,CAAC,KAAK,EAAE,cAAc,+BAEjD;AAED;;GAEG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,cAAc,+BAEhD;AAED;;GAEG;AACH,iBAAS,uBAAuB,CAAC,KAAK,EAAE,mBAAmB,+BAY1D;kBAZQ,uBAAuB;;;;AAiBhC,OAAO,EAAE,uBAAuB,IAAI,cAAc,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type ColorValue } from 'react-native';
2
- import { ExpoModifier } from '../../types';
2
+ import type { ModifierConfig } from '../../types';
3
3
  export type AndroidVariant = 'picker' | 'input';
4
4
  export type DisplayedComponents = 'date' | 'hourAndMinute' | 'dateAndTime';
5
5
  /**
@@ -137,13 +137,48 @@ export type DateTimePickerProps = {
137
137
  * @default true
138
138
  */
139
139
  is24Hour?: boolean;
140
+ /**
141
+ * Constrains which dates can be selected. Mirrors the native Compose `selectableDates` parameter.
142
+ * `start` is the earliest selectable date, `end` is the latest.
143
+ */
144
+ selectableDates?: {
145
+ start?: Date;
146
+ end?: Date;
147
+ };
140
148
  /**
141
149
  * Modifiers for the component.
142
150
  */
143
- modifiers?: ExpoModifier[];
151
+ modifiers?: ModifierConfig[];
144
152
  };
145
153
  /**
146
- * Renders a `DateTimePicker` component.
154
+ * Renders an inline `DateTimePicker` component.
147
155
  */
148
156
  export declare function DateTimePicker(props: DateTimePickerProps): import("react").JSX.Element;
157
+ export type DatePickerDialogProps = {
158
+ initialDate?: string | null;
159
+ variant?: AndroidVariant;
160
+ showVariantToggle?: boolean;
161
+ confirmButtonLabel?: string;
162
+ dismissButtonLabel?: string;
163
+ color?: ColorValue;
164
+ elementColors?: DatePickerElementColors & TimePickerElementColors;
165
+ selectableDates?: {
166
+ start?: Date;
167
+ end?: Date;
168
+ };
169
+ onDateSelected?: (date: Date) => void;
170
+ onDismissRequest: () => void;
171
+ };
172
+ export declare function DatePickerDialog(props: DatePickerDialogProps): import("react").JSX.Element;
173
+ export type TimePickerDialogProps = {
174
+ initialDate?: string | null;
175
+ is24Hour?: boolean;
176
+ confirmButtonLabel?: string;
177
+ dismissButtonLabel?: string;
178
+ color?: ColorValue;
179
+ elementColors?: DatePickerElementColors & TimePickerElementColors;
180
+ onDateSelected?: (date: Date) => void;
181
+ onDismissRequest: () => void;
182
+ };
183
+ export declare function TimePickerDialog(props: TimePickerDialogProps): import("react").JSX.Element;
149
184
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DatePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAC;AAGtD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,uBAAu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BAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,CAAC;IAClE,eAAe,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,IAAI,CAAA;KAAE,CAAC;IAC/C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAqBF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAc5D;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,aAAa,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,CAAC;IAClE,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAcF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAY5D"}
@@ -0,0 +1,70 @@
1
+ import { ColorValue } from 'react-native';
2
+ import { ModifierConfig } from '../../types';
3
+ /**
4
+ * Color overrides for the `DropdownMenuItem` component.
5
+ */
6
+ export type DropdownMenuItemElementColors = {
7
+ /** Color of the menu item text. */
8
+ textColor?: ColorValue;
9
+ /** Color of the text when the menu item is disabled. */
10
+ disabledTextColor?: ColorValue;
11
+ };
12
+ /**
13
+ * Props of the `DropdownMenuItem` component.
14
+ */
15
+ export type DropdownMenuItemProps = {
16
+ /**
17
+ * Whether the menu item is enabled.
18
+ * @default true
19
+ */
20
+ enabled?: boolean;
21
+ /**
22
+ * Color overrides for the menu item.
23
+ */
24
+ elementColors?: DropdownMenuItemElementColors;
25
+ /**
26
+ * Modifiers for the component.
27
+ */
28
+ modifiers?: ModifierConfig[];
29
+ /**
30
+ * Callback that is called when the menu item is clicked.
31
+ */
32
+ onClick?: () => void;
33
+ /**
34
+ * Slot children for text, leading/trailing icons.
35
+ */
36
+ children?: React.ReactNode;
37
+ };
38
+ /**
39
+ * A dropdown menu item component that wraps Compose's `DropdownMenuItem`.
40
+ * Should be used inside `DropdownMenu.Items`.
41
+ *
42
+ * @platform android
43
+ */
44
+ /**
45
+ * A text slot for `DropdownMenuItem`.
46
+ * Wrap text content to display as the menu item label.
47
+ *
48
+ * @platform android
49
+ */
50
+ declare function TextSlot(props: {
51
+ children: React.ReactNode;
52
+ }): import("react").JSX.Element;
53
+ /**
54
+ * A dropdown menu item component that wraps Compose's `DropdownMenuItem`.
55
+ * Should be used inside `ContextMenu.Items`.
56
+ *
57
+ * @platform android
58
+ */
59
+ declare function DropdownMenuItemComponent(props: DropdownMenuItemProps): import("react").JSX.Element;
60
+ declare namespace DropdownMenuItemComponent {
61
+ var Text: typeof TextSlot;
62
+ var LeadingIcon: (props: {
63
+ children: React.ReactNode;
64
+ }) => import("react").JSX.Element;
65
+ var TrailingIcon: (props: {
66
+ children: React.ReactNode;
67
+ }) => import("react").JSX.Element;
68
+ }
69
+ export { DropdownMenuItemComponent as DropdownMenuItem };
70
+ //# sourceMappingURL=DropdownMenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAaxD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,mCAAmC;IACnC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAOhC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA4BF;;;;;GAKG;AACH;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAErD;AAED;;;;;GAKG;AACH,iBAAS,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,+BAY9D;kBAZQ,yBAAyB;;6BApCN;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;8BAU5B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AA4C1D,OAAO,EAAE,yBAAyB,IAAI,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { ReactNode } from 'react';
2
+ import { StyleProp, ViewStyle, type ColorValue } from 'react-native';
3
+ import { ModifierConfig } from '../../types';
4
+ /**
5
+ * Props of the `DropdownMenu` component.
6
+ */
7
+ export type DropdownMenuProps = {
8
+ /**
9
+ * The contents of the submenu are used as an anchor for the dropdown menu.
10
+ * The children will be wrapped in a pressable element, which triggers opening of the dropdown menu.
11
+ */
12
+ children: ReactNode;
13
+ /**
14
+ * Whether the dropdown menu is expanded (visible).
15
+ */
16
+ expanded?: boolean;
17
+ /**
18
+ * Callback fired when the menu requests to be dismissed (e.g. tapping outside).
19
+ * Must be provided when `expanded` is `true` to allow the menu to close.
20
+ */
21
+ onDismissRequest?: () => void;
22
+ /**
23
+ * The color of the container holding the dropdown menu items.
24
+ */
25
+ color?: ColorValue;
26
+ /**
27
+ * Optional styles to apply to the `DropdownMenu`.
28
+ */
29
+ style?: StyleProp<ViewStyle>;
30
+ /**
31
+ * Modifiers for the component.
32
+ */
33
+ modifiers?: ModifierConfig[];
34
+ };
35
+ /**
36
+ * Container for items displayed in the dropdown menu.
37
+ * Children should be `DropdownMenuItem` components or other native views.
38
+ */
39
+ export declare function Items(props: {
40
+ children: ReactNode;
41
+ }): import("react").JSX.Element;
42
+ export declare namespace Items {
43
+ var tag: string;
44
+ }
45
+ /**
46
+ * Container for the trigger element that opens the dropdown menu.
47
+ */
48
+ export declare function Trigger(props: {
49
+ children: ReactNode;
50
+ }): import("react").JSX.Element;
51
+ export declare namespace Trigger {
52
+ var tag: string;
53
+ }
54
+ /**
55
+ * Preview content shown during long press (iOS only).
56
+ */
57
+ export declare function Preview(props: {
58
+ children: ReactNode;
59
+ }): import("react").JSX.Element;
60
+ declare function DropdownMenu(props: DropdownMenuProps): import("react").JSX.Element;
61
+ declare namespace DropdownMenu {
62
+ var Trigger: typeof import(".").Trigger;
63
+ var Preview: typeof import(".").Preview;
64
+ var Items: typeof import(".").Items;
65
+ }
66
+ export { DropdownMenu };
67
+ export { DropdownMenuItem } from './DropdownMenuItem';
68
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DropdownMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAc7C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAWF;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEnD;yBAFe,KAAK;;;AAKrB;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAErD;yBAFe,OAAO;;;AAKvB;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAErD;AAED,iBAAS,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAW7C;kBAXQ,YAAY;;;;;AAiBrB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}