@expo/ui 55.0.1 → 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 (269) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/CONTRIBUTING.md +30 -0
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/java/expo/modules/ui/AnimatedVisibilityView.kt +130 -0
  5. package/android/src/main/java/expo/modules/ui/CardView.kt +138 -34
  6. package/android/src/main/java/expo/modules/ui/CheckboxView.kt +98 -0
  7. package/android/src/main/java/expo/modules/ui/ChipView.kt +267 -142
  8. package/android/src/main/java/expo/modules/ui/DatePickerView.kt +302 -31
  9. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +204 -57
  10. package/android/src/main/java/expo/modules/ui/HorizontalFloatingToolbarView.kt +21 -8
  11. package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +149 -40
  12. package/android/src/main/java/expo/modules/ui/ProgressView.kt +189 -89
  13. package/android/src/main/java/expo/modules/ui/RNHostView.kt +204 -50
  14. package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +3 -7
  15. package/android/src/main/java/expo/modules/ui/SegmentedButtonView.kt +115 -0
  16. package/android/src/main/java/expo/modules/ui/SegmentedControlView.kt +35 -0
  17. package/android/src/main/java/expo/modules/ui/SliderView.kt +70 -12
  18. package/android/src/main/java/expo/modules/ui/SwitchView.kt +62 -104
  19. package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +95 -57
  20. package/android/src/main/java/expo/modules/ui/button/Button.kt +117 -158
  21. package/android/src/main/java/expo/modules/ui/button/FloatingActionButton.kt +92 -0
  22. package/android/src/main/java/expo/modules/ui/button/IconButton.kt +73 -80
  23. package/android/src/main/java/expo/modules/ui/convertibles/AnimatableFloat.kt +26 -0
  24. package/android/src/main/java/expo/modules/ui/convertibles/AnimationSpecParams.kt +93 -0
  25. package/android/src/main/java/expo/modules/ui/convertibles/GraphicsLayerParams.kt +24 -0
  26. package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +39 -0
  27. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuItem.kt +70 -0
  28. package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +18 -0
  29. package/build/jetpack-compose/AnimatedVisibility/index.d.ts +134 -0
  30. package/build/jetpack-compose/AnimatedVisibility/index.d.ts.map +1 -0
  31. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts +3 -0
  32. package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts.map +1 -0
  33. package/build/jetpack-compose/Button/index.d.ts +65 -51
  34. package/build/jetpack-compose/Button/index.d.ts.map +1 -1
  35. package/build/jetpack-compose/Card/index.d.ts +72 -14
  36. package/build/jetpack-compose/Card/index.d.ts.map +1 -1
  37. package/build/jetpack-compose/Checkbox/index.d.ts +73 -0
  38. package/build/jetpack-compose/Checkbox/index.d.ts.map +1 -0
  39. package/build/jetpack-compose/Chip/index.d.ts +247 -27
  40. package/build/jetpack-compose/Chip/index.d.ts.map +1 -1
  41. package/build/jetpack-compose/DatePicker/index.d.ts +137 -3
  42. package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
  43. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +70 -0
  44. package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts.map +1 -0
  45. package/build/jetpack-compose/DropdownMenu/index.d.ts +68 -0
  46. package/build/jetpack-compose/DropdownMenu/index.d.ts.map +1 -0
  47. package/build/jetpack-compose/FloatingActionButton/index.d.ts +150 -0
  48. package/build/jetpack-compose/FloatingActionButton/index.d.ts.map +1 -0
  49. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +2 -2
  50. package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts.map +1 -1
  51. package/build/jetpack-compose/IconButton/index.d.ts +45 -29
  52. package/build/jetpack-compose/IconButton/index.d.ts.map +1 -1
  53. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts +17 -0
  54. package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  55. package/build/jetpack-compose/Progress/index.d.ts +78 -35
  56. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  57. package/build/jetpack-compose/RadioButton/index.d.ts +2 -2
  58. package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -1
  59. package/build/jetpack-compose/SegmentedButton/index.d.ts +74 -0
  60. package/build/jetpack-compose/SegmentedButton/index.d.ts.map +1 -0
  61. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts +17 -0
  62. package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts.map +1 -0
  63. package/build/jetpack-compose/Slider/index.d.ts +34 -10
  64. package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
  65. package/build/jetpack-compose/Spacer/index.d.ts +2 -2
  66. package/build/jetpack-compose/Switch/index.d.ts +25 -47
  67. package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
  68. package/build/jetpack-compose/ToggleButton/index.d.ts +60 -32
  69. package/build/jetpack-compose/ToggleButton/index.d.ts.map +1 -1
  70. package/build/jetpack-compose/index.d.ts +5 -4
  71. package/build/jetpack-compose/index.d.ts.map +1 -1
  72. package/build/jetpack-compose/modifiers/animation.d.ts +44 -0
  73. package/build/jetpack-compose/modifiers/animation.d.ts.map +1 -0
  74. package/build/jetpack-compose/modifiers/index.d.ts +68 -4
  75. package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
  76. package/build/swift-ui/AccessoryWidgetBackground/index.d.ts +4 -0
  77. package/build/swift-ui/AccessoryWidgetBackground/index.d.ts.map +1 -0
  78. package/build/swift-ui/ConfirmationDialog/index.d.ts.map +1 -1
  79. package/build/swift-ui/ContextMenu/index.d.ts.map +1 -1
  80. package/build/swift-ui/ControlGroup/index.d.ts +29 -0
  81. package/build/swift-ui/ControlGroup/index.d.ts.map +1 -0
  82. package/build/swift-ui/Gauge/index.d.ts.map +1 -1
  83. package/build/swift-ui/Image/index.d.ts +7 -1
  84. package/build/swift-ui/Image/index.d.ts.map +1 -1
  85. package/build/swift-ui/Label/index.d.ts.map +1 -1
  86. package/build/swift-ui/LabeledContent/index.d.ts.map +1 -1
  87. package/build/swift-ui/Menu/index.d.ts.map +1 -1
  88. package/build/swift-ui/Picker/index.d.ts.map +1 -1
  89. package/build/swift-ui/Popover/index.d.ts.map +1 -1
  90. package/build/swift-ui/ProgressView/index.d.ts +1 -5
  91. package/build/swift-ui/ProgressView/index.d.ts.map +1 -1
  92. package/build/swift-ui/Section/index.d.ts.map +1 -1
  93. package/build/swift-ui/Slider/index.d.ts.map +1 -1
  94. package/build/swift-ui/SlotView.d.ts +5 -0
  95. package/build/swift-ui/SlotView.d.ts.map +1 -0
  96. package/build/swift-ui/Stepper/index.d.ts +3 -3
  97. package/build/swift-ui/Stepper/index.d.ts.map +1 -1
  98. package/build/swift-ui/Text/index.d.ts +33 -1
  99. package/build/swift-ui/Text/index.d.ts.map +1 -1
  100. package/build/swift-ui/index.d.ts +2 -0
  101. package/build/swift-ui/index.d.ts.map +1 -1
  102. package/build/swift-ui/modifiers/index.d.ts +54 -1
  103. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  104. package/build/swift-ui/modifiers/shapes/index.d.ts +2 -2
  105. package/build/swift-ui/types.d.ts +7 -0
  106. package/build/swift-ui/types.d.ts.map +1 -1
  107. package/expo-module.config.json +1 -1
  108. package/ios/AccessoryWidgetBackgroundView.swift +27 -0
  109. package/ios/BottomSheetView.swift +1 -6
  110. package/ios/ClosedRangeDateRecord.swift +10 -0
  111. package/ios/ColorPickerView.swift +9 -8
  112. package/ios/ConfirmationDialog/ConfirmationDialog.swift +7 -15
  113. package/ios/ConfirmationDialog/ConfirmationDialogProps.swift +0 -5
  114. package/ios/ContextMenu/ContextMenu.swift +27 -22
  115. package/ios/ContextMenu/ContextMenuRecords.swift +0 -6
  116. package/ios/ControlGroupView.swift +33 -0
  117. package/ios/DatePickerView.swift +7 -5
  118. package/ios/DisclosureGroupView.swift +5 -7
  119. package/ios/ExpoUIModule.swift +10 -32
  120. package/ios/GaugeView.swift +4 -26
  121. package/ios/HostView.swift +1 -2
  122. package/ios/ImageView.swift +22 -11
  123. package/ios/Label.swift +2 -17
  124. package/ios/LabeledContentView.swift +3 -27
  125. package/ios/ListView.swift +6 -14
  126. package/ios/Menu/MenuRecords.swift +0 -2
  127. package/ios/Menu/MenuView.swift +2 -5
  128. package/ios/Modifiers/DefaultScrollAnchorForRoleModifier.swift +32 -0
  129. package/ios/Modifiers/DefaultScrollAnchorModifier.swift +16 -0
  130. package/ios/Modifiers/ResizableModifier.swift +24 -0
  131. package/ios/Modifiers/Rotation3DEffectModifier.swift +20 -0
  132. package/ios/Modifiers/View+ModifierArray.swift +29 -0
  133. package/ios/Modifiers/ViewModifierRegistry.swift +37 -3
  134. package/ios/Modifiers/WidgetModifiers.swift +46 -0
  135. package/ios/Picker/PickerView.swift +8 -16
  136. package/ios/Popover/PopoverProps.swift +0 -4
  137. package/ios/Popover/PopoverView.swift +5 -11
  138. package/ios/ProgressView.swift +0 -5
  139. package/ios/RNHostView.swift +91 -10
  140. package/ios/SectionView.swift +9 -17
  141. package/ios/SecureFieldView.swift +0 -1
  142. package/ios/ShareLink/ShareLinkView.swift +1 -1
  143. package/ios/SliderView.swift +16 -31
  144. package/ios/SlotView.swift +38 -0
  145. package/ios/StepperView.swift +12 -16
  146. package/ios/TextFieldView.swift +0 -1
  147. package/ios/TextView.swift +37 -1
  148. package/ios/Toggle/ToggleView.swift +5 -7
  149. package/ios/UIBaseView.swift +34 -3
  150. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar +0 -0
  151. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.md5 +1 -0
  152. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha1 +1 -0
  153. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha256 +1 -0
  154. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha512 +1 -0
  155. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar +0 -0
  156. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.md5 +1 -0
  157. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha1 +1 -0
  158. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha256 +1 -0
  159. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha512 +1 -0
  160. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.1/expo.modules.ui-55.0.1.module → 55.0.3/expo.modules.ui-55.0.3.module} +22 -22
  161. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.md5 +1 -0
  162. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha1 +1 -0
  163. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha256 +1 -0
  164. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha512 +1 -0
  165. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.1/expo.modules.ui-55.0.1.pom → 55.0.3/expo.modules.ui-55.0.3.pom} +1 -1
  166. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.md5 +1 -0
  167. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha1 +1 -0
  168. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha256 +1 -0
  169. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha512 +1 -0
  170. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  171. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  172. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  173. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  174. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  175. package/package.json +5 -2
  176. package/src/jetpack-compose/AnimatedVisibility/index.tsx +206 -0
  177. package/src/jetpack-compose/AnimatedVisibility/symbols.ts +8 -0
  178. package/src/jetpack-compose/Button/index.tsx +69 -92
  179. package/src/jetpack-compose/Card/index.tsx +105 -29
  180. package/src/jetpack-compose/Checkbox/index.tsx +126 -0
  181. package/src/jetpack-compose/Chip/index.tsx +391 -51
  182. package/src/jetpack-compose/DatePicker/index.tsx +215 -6
  183. package/src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx +126 -0
  184. package/src/jetpack-compose/DropdownMenu/index.tsx +107 -0
  185. package/src/jetpack-compose/FloatingActionButton/index.tsx +207 -0
  186. package/src/jetpack-compose/HorizontalFloatingToolbar/index.tsx +4 -2
  187. package/src/jetpack-compose/IconButton/index.tsx +49 -56
  188. package/src/jetpack-compose/MultiChoiceSegmentedButtonRow/index.tsx +34 -0
  189. package/src/jetpack-compose/Progress/index.tsx +120 -62
  190. package/src/jetpack-compose/RadioButton/index.tsx +8 -9
  191. package/src/jetpack-compose/SegmentedButton/index.tsx +109 -0
  192. package/src/jetpack-compose/SingleChoiceSegmentedButtonRow/index.tsx +34 -0
  193. package/src/jetpack-compose/Slider/index.tsx +76 -29
  194. package/src/jetpack-compose/Spacer/index.tsx +2 -2
  195. package/src/jetpack-compose/Switch/index.tsx +32 -84
  196. package/src/jetpack-compose/ToggleButton/index.tsx +67 -43
  197. package/src/jetpack-compose/index.ts +5 -4
  198. package/src/jetpack-compose/modifiers/animation.ts +37 -0
  199. package/src/jetpack-compose/modifiers/index.ts +86 -6
  200. package/src/swift-ui/AccessoryWidgetBackground/index.tsx +12 -0
  201. package/src/swift-ui/ConfirmationDialog/index.tsx +4 -12
  202. package/src/swift-ui/ContextMenu/index.tsx +6 -20
  203. package/src/swift-ui/ControlGroup/index.tsx +59 -0
  204. package/src/swift-ui/Gauge/index.tsx +5 -20
  205. package/src/swift-ui/Image/index.tsx +7 -1
  206. package/src/swift-ui/Label/index.tsx +2 -5
  207. package/src/swift-ui/LabeledContent/index.tsx +3 -12
  208. package/src/swift-ui/Menu/index.tsx +2 -6
  209. package/src/swift-ui/Picker/index.tsx +4 -11
  210. package/src/swift-ui/Popover/index.tsx +3 -12
  211. package/src/swift-ui/ProgressView/index.tsx +1 -3
  212. package/src/swift-ui/Section/index.tsx +4 -9
  213. package/src/swift-ui/Slider/index.tsx +4 -12
  214. package/src/swift-ui/SlotView.tsx +8 -0
  215. package/src/swift-ui/Stepper/index.tsx +7 -7
  216. package/src/swift-ui/Text/index.tsx +66 -2
  217. package/src/swift-ui/index.tsx +2 -0
  218. package/src/swift-ui/modifiers/index.ts +87 -1
  219. package/src/swift-ui/types.ts +5 -0
  220. package/android/src/main/java/expo/modules/ui/FilterChipView.kt +0 -59
  221. package/android/src/main/java/expo/modules/ui/PickerView.kt +0 -161
  222. package/android/src/main/java/expo/modules/ui/TextButtonView.kt +0 -33
  223. package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +0 -183
  224. package/android/src/main/java/expo/modules/ui/menu/ContextMenuRecords.kt +0 -64
  225. package/build/jetpack-compose/Button/types.d.ts +0 -5
  226. package/build/jetpack-compose/Button/types.d.ts.map +0 -1
  227. package/build/jetpack-compose/ContextMenu/Submenu.d.ts +0 -17
  228. package/build/jetpack-compose/ContextMenu/Submenu.d.ts.map +0 -1
  229. package/build/jetpack-compose/ContextMenu/index.d.ts +0 -65
  230. package/build/jetpack-compose/ContextMenu/index.d.ts.map +0 -1
  231. package/build/jetpack-compose/ContextMenu/utils.d.ts +0 -24
  232. package/build/jetpack-compose/ContextMenu/utils.d.ts.map +0 -1
  233. package/build/jetpack-compose/FilterChip/index.d.ts +0 -49
  234. package/build/jetpack-compose/FilterChip/index.d.ts.map +0 -1
  235. package/build/jetpack-compose/Picker/index.d.ts +0 -62
  236. package/build/jetpack-compose/Picker/index.d.ts.map +0 -1
  237. package/build/jetpack-compose/TextButton/index.d.ts +0 -29
  238. package/build/jetpack-compose/TextButton/index.d.ts.map +0 -1
  239. package/ios/ConfirmationDialog/ConfirmationDialogComponents.swift +0 -26
  240. package/ios/ContextMenu/ContextMenuComponents.swift +0 -37
  241. package/ios/Menu/MenuComponents.swift +0 -12
  242. package/ios/Picker/PickerComponents.swift +0 -24
  243. package/ios/Popover/PopoverComponents.swift +0 -18
  244. package/ios/SectionComponents.swift +0 -34
  245. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar +0 -0
  246. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.md5 +0 -1
  247. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha1 +0 -1
  248. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha256 +0 -1
  249. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1-sources.jar.sha512 +0 -1
  250. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar +0 -0
  251. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.md5 +0 -1
  252. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha1 +0 -1
  253. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha256 +0 -1
  254. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.aar.sha512 +0 -1
  255. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.md5 +0 -1
  256. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha1 +0 -1
  257. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha256 +0 -1
  258. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.module.sha512 +0 -1
  259. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.md5 +0 -1
  260. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha1 +0 -1
  261. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha256 +0 -1
  262. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.1/expo.modules.ui-55.0.1.pom.sha512 +0 -1
  263. package/src/jetpack-compose/Button/types.ts +0 -57
  264. package/src/jetpack-compose/ContextMenu/Submenu.tsx +0 -21
  265. package/src/jetpack-compose/ContextMenu/index.tsx +0 -149
  266. package/src/jetpack-compose/ContextMenu/utils.ts +0 -144
  267. package/src/jetpack-compose/FilterChip/index.tsx +0 -89
  268. package/src/jetpack-compose/Picker/index.tsx +0 -90
  269. package/src/jetpack-compose/TextButton/index.tsx +0 -55
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,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AAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,0CAA6C,CAAC;AAM/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kDAA6D,CAAC;AAMvF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kDAA6D,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { type ColorValue } from 'react-native';
2
+ import { type ModifierConfig } from '../../types';
3
+ /**
4
+ * Colors for checkbox core elements.
5
+ */
6
+ export type CheckboxColors = {
7
+ checkedColor?: ColorValue;
8
+ disabledCheckedColor?: ColorValue;
9
+ uncheckedColor?: ColorValue;
10
+ disabledUncheckedColor?: ColorValue;
11
+ checkmarkColor?: ColorValue;
12
+ disabledIndeterminateColor?: ColorValue;
13
+ };
14
+ export type CheckboxProps = {
15
+ /**
16
+ * Indicates whether the checkbox is checked.
17
+ */
18
+ value: boolean;
19
+ /**
20
+ * Whether the checkbox is enabled.
21
+ * @default true
22
+ */
23
+ enabled?: boolean;
24
+ /**
25
+ * Callback function that is called when the checked state changes.
26
+ */
27
+ onCheckedChange?: (value: boolean) => void;
28
+ /**
29
+ * Colors for checkbox core elements.
30
+ */
31
+ colors?: CheckboxColors;
32
+ /**
33
+ * Modifiers for the component.
34
+ */
35
+ modifiers?: ModifierConfig[];
36
+ };
37
+ /**
38
+ * A checkbox component.
39
+ */
40
+ export declare function Checkbox(props: CheckboxProps): import("react").JSX.Element;
41
+ /**
42
+ * The toggleable state of a tri-state checkbox.
43
+ */
44
+ export type ToggleableState = 'on' | 'off' | 'indeterminate';
45
+ export type TriStateCheckboxProps = {
46
+ /**
47
+ * The toggleable state of the checkbox: `'on'`, `'off'`, or `'indeterminate'`.
48
+ */
49
+ state: ToggleableState;
50
+ /**
51
+ * Whether the checkbox is enabled.
52
+ * @default true
53
+ */
54
+ enabled?: boolean;
55
+ /**
56
+ * Callback function that is called when the checkbox is clicked.
57
+ */
58
+ onClick?: () => void;
59
+ /**
60
+ * Colors for checkbox core elements.
61
+ */
62
+ colors?: CheckboxColors;
63
+ /**
64
+ * Modifiers for the component.
65
+ */
66
+ modifiers?: ModifierConfig[];
67
+ };
68
+ /**
69
+ * A tri-state checkbox component that supports `'on'`, `'off'`, and `'indeterminate'` states.
70
+ * Useful for "select all" patterns where the parent checkbox reflects the state of its children.
71
+ */
72
+ export declare function TriStateCheckbox(props: TriStateCheckboxProps): import("react").JSX.Element;
73
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Checkbox/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,aAAa,CAAC;AAG7D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,0BAA0B,CAAC,EAAE,UAAU,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAyBF;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAE5C;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,GAAG,eAAe,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAoBF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAE5D"}
@@ -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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,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAWF;;GAEG;AACH,iBAAS,cAAc,CAAC,KAAK,EAAE,cAAc,+BAE5C;AAED;;GAEG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,cAAc,+BAE7C;AAED;;GAEG;AACH,iBAAS,qBAAqB,CAAC,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,7 +1,95 @@
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
+ /**
6
+ * Color overrides for the Material 3 DatePicker component.
7
+ * All properties are optional — unset values use Material 3 theme defaults.
8
+ */
9
+ export type DatePickerElementColors = {
10
+ /** The background color of the date picker. */
11
+ containerColor?: ColorValue;
12
+ /** The color used for the date picker's title. */
13
+ titleContentColor?: ColorValue;
14
+ /** The color used for the date picker's headline. */
15
+ headlineContentColor?: ColorValue;
16
+ /** The color used for the weekday letters (Mon, Tue, etc.). */
17
+ weekdayContentColor?: ColorValue;
18
+ /** The color used for the month and year subhead labels. */
19
+ subheadContentColor?: ColorValue;
20
+ /** The color used for navigation arrows and year selection menu button. */
21
+ navigationContentColor?: ColorValue;
22
+ /** The color used for year item content. */
23
+ yearContentColor?: ColorValue;
24
+ /** The color used for disabled year item content. */
25
+ disabledYearContentColor?: ColorValue;
26
+ /** The color used for the current year content. */
27
+ currentYearContentColor?: ColorValue;
28
+ /** The color used for the selected year content. */
29
+ selectedYearContentColor?: ColorValue;
30
+ /** The color used for a disabled selected year content. */
31
+ disabledSelectedYearContentColor?: ColorValue;
32
+ /** The color used for the selected year container/background. */
33
+ selectedYearContainerColor?: ColorValue;
34
+ /** The color used for a disabled selected year container. */
35
+ disabledSelectedYearContainerColor?: ColorValue;
36
+ /** The color used for day content (number text). */
37
+ dayContentColor?: ColorValue;
38
+ /** The color used for disabled day content. */
39
+ disabledDayContentColor?: ColorValue;
40
+ /** The color used for selected day content. */
41
+ selectedDayContentColor?: ColorValue;
42
+ /** The color used for a disabled selected day content. */
43
+ disabledSelectedDayContentColor?: ColorValue;
44
+ /** The color used for the selected day container/background circle. */
45
+ selectedDayContainerColor?: ColorValue;
46
+ /** The color used for a disabled selected day container. */
47
+ disabledSelectedDayContainerColor?: ColorValue;
48
+ /** The color used for today's date text. */
49
+ todayContentColor?: ColorValue;
50
+ /** The color used for today's date border. */
51
+ todayDateBorderColor?: ColorValue;
52
+ /** The content color for days within a date range selection. */
53
+ dayInSelectionRangeContentColor?: ColorValue;
54
+ /** The container color for days within a date range selection. */
55
+ dayInSelectionRangeContainerColor?: ColorValue;
56
+ /** The color used for divider lines. */
57
+ dividerColor?: ColorValue;
58
+ };
59
+ /**
60
+ * Color overrides for the Material 3 TimePicker component.
61
+ * All properties are optional — unset values use Material 3 theme defaults.
62
+ */
63
+ export type TimePickerElementColors = {
64
+ /** The container/background color of the time picker. */
65
+ containerColor?: ColorValue;
66
+ /** The background color of the clock dial. */
67
+ clockDialColor?: ColorValue;
68
+ /** The color of clock dial numbers when selected or overlapping the selector. */
69
+ clockDialSelectedContentColor?: ColorValue;
70
+ /** The color of clock dial numbers when unselected. */
71
+ clockDialUnselectedContentColor?: ColorValue;
72
+ /** The color of the clock dial selector (hand). */
73
+ selectorColor?: ColorValue;
74
+ /** The border color of the AM/PM period selector. */
75
+ periodSelectorBorderColor?: ColorValue;
76
+ /** The background color of the selected AM/PM period. */
77
+ periodSelectorSelectedContainerColor?: ColorValue;
78
+ /** The background color of the unselected AM/PM period. */
79
+ periodSelectorUnselectedContainerColor?: ColorValue;
80
+ /** The text color of the selected AM/PM period. */
81
+ periodSelectorSelectedContentColor?: ColorValue;
82
+ /** The text color of the unselected AM/PM period. */
83
+ periodSelectorUnselectedContentColor?: ColorValue;
84
+ /** The background color of the selected hour/minute segment. */
85
+ timeSelectorSelectedContainerColor?: ColorValue;
86
+ /** The background color of the unselected hour/minute segment. */
87
+ timeSelectorUnselectedContainerColor?: ColorValue;
88
+ /** The text color of the selected hour/minute segment. */
89
+ timeSelectorSelectedContentColor?: ColorValue;
90
+ /** The text color of the unselected hour/minute segment. */
91
+ timeSelectorUnselectedContentColor?: ColorValue;
92
+ };
5
93
  export type DateTimePickerProps = {
6
94
  /**
7
95
  * The initial date to display on the picker.
@@ -31,20 +119,66 @@ export type DateTimePickerProps = {
31
119
  displayedComponents?: DisplayedComponents;
32
120
  /**
33
121
  * The tint color to use on the picker elements.
122
+ * When `elementColors` is not provided, this color is applied to a subset of
123
+ * picker elements (selected day, title, headline, today border for date picker;
124
+ * selector, selected time segment, clock dial for time picker).
34
125
  */
35
126
  color?: ColorValue;
127
+ /**
128
+ * Fine-grained color overrides for individual picker elements.
129
+ * When provided, these take precedence over the `color` prop.
130
+ * Date picker color keys are used when `displayedComponents` is 'date' or 'dateAndTime'.
131
+ * Time picker color keys are used when `displayedComponents` is 'hourAndMinute'.
132
+ * Unset values fall back to Material 3 theme defaults.
133
+ */
134
+ elementColors?: DatePickerElementColors & TimePickerElementColors;
36
135
  /**
37
136
  * Determines what format the clock should be displayed in on Android.
38
137
  * @default true
39
138
  */
40
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
+ };
41
148
  /**
42
149
  * Modifiers for the component.
43
150
  */
44
- modifiers?: ExpoModifier[];
151
+ modifiers?: ModifierConfig[];
45
152
  };
46
153
  /**
47
- * Renders a `DateTimePicker` component.
154
+ * Renders an inline `DateTimePicker` component.
48
155
  */
49
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;
50
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,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAiCF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD"}
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,KAAK,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC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AW,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"}