@webority-technologies/mobile-ui 0.0.1

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 (686) hide show
  1. package/README.md +15 -0
  2. package/lib/commonjs/components/Accordion/Accordion.js +331 -0
  3. package/lib/commonjs/components/Accordion/index.js +26 -0
  4. package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +71 -0
  5. package/lib/commonjs/components/AnimatePresence/index.js +13 -0
  6. package/lib/commonjs/components/AppBar/AppBar.js +355 -0
  7. package/lib/commonjs/components/AppBar/index.js +20 -0
  8. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +87 -0
  9. package/lib/commonjs/components/AsyncBlock/index.js +20 -0
  10. package/lib/commonjs/components/Autocomplete/Autocomplete.js +225 -0
  11. package/lib/commonjs/components/Autocomplete/index.js +13 -0
  12. package/lib/commonjs/components/Avatar/Avatar.js +348 -0
  13. package/lib/commonjs/components/Avatar/index.js +26 -0
  14. package/lib/commonjs/components/Badge/Badge.js +295 -0
  15. package/lib/commonjs/components/Badge/index.js +20 -0
  16. package/lib/commonjs/components/Banner/Banner.js +395 -0
  17. package/lib/commonjs/components/Banner/index.js +20 -0
  18. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +336 -0
  19. package/lib/commonjs/components/BottomNavigation/index.js +20 -0
  20. package/lib/commonjs/components/BottomSheet/BottomSheet.js +558 -0
  21. package/lib/commonjs/components/BottomSheet/index.js +26 -0
  22. package/lib/commonjs/components/Box/Box.js +204 -0
  23. package/lib/commonjs/components/Box/index.js +37 -0
  24. package/lib/commonjs/components/Button/Button.js +316 -0
  25. package/lib/commonjs/components/Button/index.js +20 -0
  26. package/lib/commonjs/components/Card/Card.js +314 -0
  27. package/lib/commonjs/components/Card/index.js +20 -0
  28. package/lib/commonjs/components/Carousel/Carousel.js +582 -0
  29. package/lib/commonjs/components/Carousel/index.js +20 -0
  30. package/lib/commonjs/components/Checkbox/Checkbox.js +184 -0
  31. package/lib/commonjs/components/Checkbox/index.js +20 -0
  32. package/lib/commonjs/components/Chip/Chip.js +347 -0
  33. package/lib/commonjs/components/Chip/index.js +20 -0
  34. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +250 -0
  35. package/lib/commonjs/components/ChoiceGroup/index.js +20 -0
  36. package/lib/commonjs/components/Confetti/Confetti.js +177 -0
  37. package/lib/commonjs/components/Confetti/index.js +13 -0
  38. package/lib/commonjs/components/DatePicker/DatePicker.js +995 -0
  39. package/lib/commonjs/components/DatePicker/index.js +20 -0
  40. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +745 -0
  41. package/lib/commonjs/components/DateRangePicker/index.js +20 -0
  42. package/lib/commonjs/components/Descriptions/Descriptions.js +107 -0
  43. package/lib/commonjs/components/Descriptions/index.js +20 -0
  44. package/lib/commonjs/components/Dialog/Dialog.js +245 -0
  45. package/lib/commonjs/components/Dialog/index.js +20 -0
  46. package/lib/commonjs/components/Divider/Divider.js +117 -0
  47. package/lib/commonjs/components/Divider/index.js +20 -0
  48. package/lib/commonjs/components/Drawer/Drawer.js +379 -0
  49. package/lib/commonjs/components/Drawer/index.js +20 -0
  50. package/lib/commonjs/components/EmptyState/EmptyState.js +207 -0
  51. package/lib/commonjs/components/EmptyState/index.js +20 -0
  52. package/lib/commonjs/components/FieldBase/Chevron.js +81 -0
  53. package/lib/commonjs/components/FieldBase/FieldBase.js +521 -0
  54. package/lib/commonjs/components/FieldBase/index.js +38 -0
  55. package/lib/commonjs/components/FilePicker/FilePicker.js +783 -0
  56. package/lib/commonjs/components/FilePicker/index.js +26 -0
  57. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +517 -0
  58. package/lib/commonjs/components/FloatingActionButton/index.js +26 -0
  59. package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +90 -0
  60. package/lib/commonjs/components/ForceUpdateDialog/index.js +20 -0
  61. package/lib/commonjs/components/FormField/FormField.js +162 -0
  62. package/lib/commonjs/components/FormField/index.js +20 -0
  63. package/lib/commonjs/components/IconButton/IconButton.js +180 -0
  64. package/lib/commonjs/components/IconButton/index.js +13 -0
  65. package/lib/commonjs/components/ImageGallery/ImageGallery.js +581 -0
  66. package/lib/commonjs/components/ImageGallery/index.js +20 -0
  67. package/lib/commonjs/components/InlineSelect/InlineSelect.js +178 -0
  68. package/lib/commonjs/components/InlineSelect/index.js +20 -0
  69. package/lib/commonjs/components/Input/Input.js +402 -0
  70. package/lib/commonjs/components/Input/index.js +20 -0
  71. package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +115 -0
  72. package/lib/commonjs/components/KeyboardAwareScrollView/index.js +13 -0
  73. package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +135 -0
  74. package/lib/commonjs/components/KeyboardToolbar/index.js +13 -0
  75. package/lib/commonjs/components/ListItem/ListItem.js +338 -0
  76. package/lib/commonjs/components/ListItem/index.js +20 -0
  77. package/lib/commonjs/components/Modal/Modal.js +356 -0
  78. package/lib/commonjs/components/Modal/index.js +26 -0
  79. package/lib/commonjs/components/NumberInput/NumberInput.js +381 -0
  80. package/lib/commonjs/components/NumberInput/index.js +20 -0
  81. package/lib/commonjs/components/OTPInput/OTPInput.js +441 -0
  82. package/lib/commonjs/components/OTPInput/index.js +20 -0
  83. package/lib/commonjs/components/OptionSheet/OptionSheet.js +450 -0
  84. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +243 -0
  85. package/lib/commonjs/components/PhoneNumberInput/index.js +32 -0
  86. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +156 -0
  87. package/lib/commonjs/components/PickerTrigger/index.js +20 -0
  88. package/lib/commonjs/components/ProgressBar/ProgressBar.js +198 -0
  89. package/lib/commonjs/components/ProgressBar/index.js +20 -0
  90. package/lib/commonjs/components/Radio/Radio.js +117 -0
  91. package/lib/commonjs/components/Radio/RadioDot.js +105 -0
  92. package/lib/commonjs/components/Radio/RadioGroup.js +50 -0
  93. package/lib/commonjs/components/Radio/index.js +46 -0
  94. package/lib/commonjs/components/Rating/Rating.js +333 -0
  95. package/lib/commonjs/components/Rating/index.js +20 -0
  96. package/lib/commonjs/components/Repeater/Repeater.js +141 -0
  97. package/lib/commonjs/components/Repeater/index.js +20 -0
  98. package/lib/commonjs/components/SearchBar/SearchBar.js +284 -0
  99. package/lib/commonjs/components/SearchBar/index.js +20 -0
  100. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +209 -0
  101. package/lib/commonjs/components/SegmentedControl/index.js +20 -0
  102. package/lib/commonjs/components/Select/Select.js +270 -0
  103. package/lib/commonjs/components/Select/index.js +20 -0
  104. package/lib/commonjs/components/Skeleton/Skeleton.js +293 -0
  105. package/lib/commonjs/components/Skeleton/SkeletonClock.js +118 -0
  106. package/lib/commonjs/components/Skeleton/SkeletonContent.js +309 -0
  107. package/lib/commonjs/components/Skeleton/SkeletonList.js +92 -0
  108. package/lib/commonjs/components/Skeleton/SkeletonProvider.js +114 -0
  109. package/lib/commonjs/components/Skeleton/SkeletonSkip.js +37 -0
  110. package/lib/commonjs/components/Skeleton/index.js +85 -0
  111. package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +258 -0
  112. package/lib/commonjs/components/SlideToConfirm/index.js +13 -0
  113. package/lib/commonjs/components/Slider/Slider.js +502 -0
  114. package/lib/commonjs/components/Slider/index.js +20 -0
  115. package/lib/commonjs/components/Spinner/Spinner.js +183 -0
  116. package/lib/commonjs/components/Spinner/index.js +20 -0
  117. package/lib/commonjs/components/Stepper/Stepper.js +595 -0
  118. package/lib/commonjs/components/Stepper/index.js +20 -0
  119. package/lib/commonjs/components/Swipeable/Swipeable.js +380 -0
  120. package/lib/commonjs/components/Swipeable/index.js +20 -0
  121. package/lib/commonjs/components/Switch/Switch.js +230 -0
  122. package/lib/commonjs/components/Switch/index.js +20 -0
  123. package/lib/commonjs/components/Tabs/Tabs.js +289 -0
  124. package/lib/commonjs/components/Tabs/index.js +20 -0
  125. package/lib/commonjs/components/TagInput/TagInput.js +174 -0
  126. package/lib/commonjs/components/TagInput/index.js +20 -0
  127. package/lib/commonjs/components/Text/Text.js +146 -0
  128. package/lib/commonjs/components/Text/index.js +13 -0
  129. package/lib/commonjs/components/TimePicker/TimePicker.js +692 -0
  130. package/lib/commonjs/components/TimePicker/index.js +20 -0
  131. package/lib/commonjs/components/Timeline/Timeline.js +147 -0
  132. package/lib/commonjs/components/Timeline/index.js +20 -0
  133. package/lib/commonjs/components/Toast/Toast.js +322 -0
  134. package/lib/commonjs/components/Toast/ToastProvider.js +199 -0
  135. package/lib/commonjs/components/Toast/index.js +39 -0
  136. package/lib/commonjs/components/Tooltip/Tooltip.js +410 -0
  137. package/lib/commonjs/components/Tooltip/index.js +20 -0
  138. package/lib/commonjs/components/index.js +596 -0
  139. package/lib/commonjs/form/FormContext.js +40 -0
  140. package/lib/commonjs/form/index.js +68 -0
  141. package/lib/commonjs/form/path.js +91 -0
  142. package/lib/commonjs/form/rules.js +73 -0
  143. package/lib/commonjs/form/types.js +2 -0
  144. package/lib/commonjs/form/useField.js +54 -0
  145. package/lib/commonjs/form/useForm.js +364 -0
  146. package/lib/commonjs/hooks/index.js +41 -0
  147. package/lib/commonjs/hooks/useControllableState.js +32 -0
  148. package/lib/commonjs/hooks/useDebounce.js +17 -0
  149. package/lib/commonjs/hooks/usePressAnimation.js +47 -0
  150. package/lib/commonjs/hooks/useReducedMotion.js +33 -0
  151. package/lib/commonjs/hooks/useToggle.js +22 -0
  152. package/lib/commonjs/index.js +341 -0
  153. package/lib/commonjs/initUI.js +24 -0
  154. package/lib/commonjs/network/NetworkStatusBanner.js +89 -0
  155. package/lib/commonjs/network/index.js +13 -0
  156. package/lib/commonjs/package.json +1 -0
  157. package/lib/commonjs/theme/Gradient.js +56 -0
  158. package/lib/commonjs/theme/ThemeContext.js +101 -0
  159. package/lib/commonjs/theme/animatedValue.js +54 -0
  160. package/lib/commonjs/theme/index.js +127 -0
  161. package/lib/commonjs/theme/merge.js +30 -0
  162. package/lib/commonjs/theme/textStyle.js +39 -0
  163. package/lib/commonjs/theme/tokens.js +652 -0
  164. package/lib/commonjs/theme/types.js +6 -0
  165. package/lib/commonjs/utils/dimensions.js +31 -0
  166. package/lib/commonjs/utils/feedback.js +76 -0
  167. package/lib/commonjs/utils/hapticUtils.js +67 -0
  168. package/lib/commonjs/utils/index.js +114 -0
  169. package/lib/commonjs/utils/responsive.js +48 -0
  170. package/lib/commonjs/utils/shadows.js +12 -0
  171. package/lib/commonjs/utils/spacing.js +86 -0
  172. package/lib/commonjs/utils/warnUnknownProps.js +46 -0
  173. package/lib/module/components/Accordion/Accordion.js +325 -0
  174. package/lib/module/components/Accordion/index.js +4 -0
  175. package/lib/module/components/AnimatePresence/AnimatePresence.js +65 -0
  176. package/lib/module/components/AnimatePresence/index.js +4 -0
  177. package/lib/module/components/AppBar/AppBar.js +351 -0
  178. package/lib/module/components/AppBar/index.js +4 -0
  179. package/lib/module/components/AsyncBlock/AsyncBlock.js +81 -0
  180. package/lib/module/components/AsyncBlock/index.js +4 -0
  181. package/lib/module/components/Autocomplete/Autocomplete.js +220 -0
  182. package/lib/module/components/Autocomplete/index.js +4 -0
  183. package/lib/module/components/Avatar/Avatar.js +343 -0
  184. package/lib/module/components/Avatar/index.js +4 -0
  185. package/lib/module/components/Badge/Badge.js +291 -0
  186. package/lib/module/components/Badge/index.js +4 -0
  187. package/lib/module/components/Banner/Banner.js +391 -0
  188. package/lib/module/components/Banner/index.js +4 -0
  189. package/lib/module/components/BottomNavigation/BottomNavigation.js +332 -0
  190. package/lib/module/components/BottomNavigation/index.js +4 -0
  191. package/lib/module/components/BottomSheet/BottomSheet.js +553 -0
  192. package/lib/module/components/BottomSheet/index.js +4 -0
  193. package/lib/module/components/Box/Box.js +198 -0
  194. package/lib/module/components/Box/index.js +4 -0
  195. package/lib/module/components/Button/Button.js +312 -0
  196. package/lib/module/components/Button/index.js +4 -0
  197. package/lib/module/components/Card/Card.js +310 -0
  198. package/lib/module/components/Card/index.js +4 -0
  199. package/lib/module/components/Carousel/Carousel.js +578 -0
  200. package/lib/module/components/Carousel/index.js +4 -0
  201. package/lib/module/components/Checkbox/Checkbox.js +181 -0
  202. package/lib/module/components/Checkbox/index.js +4 -0
  203. package/lib/module/components/Chip/Chip.js +343 -0
  204. package/lib/module/components/Chip/index.js +4 -0
  205. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +246 -0
  206. package/lib/module/components/ChoiceGroup/index.js +4 -0
  207. package/lib/module/components/Confetti/Confetti.js +173 -0
  208. package/lib/module/components/Confetti/index.js +4 -0
  209. package/lib/module/components/DatePicker/DatePicker.js +990 -0
  210. package/lib/module/components/DatePicker/index.js +4 -0
  211. package/lib/module/components/DateRangePicker/DateRangePicker.js +742 -0
  212. package/lib/module/components/DateRangePicker/index.js +4 -0
  213. package/lib/module/components/Descriptions/Descriptions.js +101 -0
  214. package/lib/module/components/Descriptions/index.js +4 -0
  215. package/lib/module/components/Dialog/Dialog.js +240 -0
  216. package/lib/module/components/Dialog/index.js +4 -0
  217. package/lib/module/components/Divider/Divider.js +114 -0
  218. package/lib/module/components/Divider/index.js +4 -0
  219. package/lib/module/components/Drawer/Drawer.js +375 -0
  220. package/lib/module/components/Drawer/index.js +4 -0
  221. package/lib/module/components/EmptyState/EmptyState.js +203 -0
  222. package/lib/module/components/EmptyState/index.js +4 -0
  223. package/lib/module/components/FieldBase/Chevron.js +75 -0
  224. package/lib/module/components/FieldBase/FieldBase.js +511 -0
  225. package/lib/module/components/FieldBase/index.js +4 -0
  226. package/lib/module/components/FilePicker/FilePicker.js +778 -0
  227. package/lib/module/components/FilePicker/index.js +4 -0
  228. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +512 -0
  229. package/lib/module/components/FloatingActionButton/index.js +4 -0
  230. package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +84 -0
  231. package/lib/module/components/ForceUpdateDialog/index.js +4 -0
  232. package/lib/module/components/FormField/FormField.js +158 -0
  233. package/lib/module/components/FormField/index.js +4 -0
  234. package/lib/module/components/IconButton/IconButton.js +176 -0
  235. package/lib/module/components/IconButton/index.js +4 -0
  236. package/lib/module/components/ImageGallery/ImageGallery.js +576 -0
  237. package/lib/module/components/ImageGallery/index.js +4 -0
  238. package/lib/module/components/InlineSelect/InlineSelect.js +174 -0
  239. package/lib/module/components/InlineSelect/index.js +4 -0
  240. package/lib/module/components/Input/Input.js +398 -0
  241. package/lib/module/components/Input/index.js +4 -0
  242. package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +111 -0
  243. package/lib/module/components/KeyboardAwareScrollView/index.js +4 -0
  244. package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +130 -0
  245. package/lib/module/components/KeyboardToolbar/index.js +4 -0
  246. package/lib/module/components/ListItem/ListItem.js +334 -0
  247. package/lib/module/components/ListItem/index.js +4 -0
  248. package/lib/module/components/Modal/Modal.js +352 -0
  249. package/lib/module/components/Modal/index.js +4 -0
  250. package/lib/module/components/NumberInput/NumberInput.js +377 -0
  251. package/lib/module/components/NumberInput/index.js +4 -0
  252. package/lib/module/components/OTPInput/OTPInput.js +438 -0
  253. package/lib/module/components/OTPInput/index.js +4 -0
  254. package/lib/module/components/OptionSheet/OptionSheet.js +444 -0
  255. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +238 -0
  256. package/lib/module/components/PhoneNumberInput/index.js +4 -0
  257. package/lib/module/components/PickerTrigger/PickerTrigger.js +152 -0
  258. package/lib/module/components/PickerTrigger/index.js +4 -0
  259. package/lib/module/components/ProgressBar/ProgressBar.js +195 -0
  260. package/lib/module/components/ProgressBar/index.js +4 -0
  261. package/lib/module/components/Radio/Radio.js +113 -0
  262. package/lib/module/components/Radio/RadioDot.js +99 -0
  263. package/lib/module/components/Radio/RadioGroup.js +45 -0
  264. package/lib/module/components/Radio/index.js +6 -0
  265. package/lib/module/components/Rating/Rating.js +329 -0
  266. package/lib/module/components/Rating/index.js +4 -0
  267. package/lib/module/components/Repeater/Repeater.js +135 -0
  268. package/lib/module/components/Repeater/index.js +4 -0
  269. package/lib/module/components/SearchBar/SearchBar.js +280 -0
  270. package/lib/module/components/SearchBar/index.js +4 -0
  271. package/lib/module/components/SegmentedControl/SegmentedControl.js +205 -0
  272. package/lib/module/components/SegmentedControl/index.js +4 -0
  273. package/lib/module/components/Select/Select.js +266 -0
  274. package/lib/module/components/Select/index.js +4 -0
  275. package/lib/module/components/Skeleton/Skeleton.js +286 -0
  276. package/lib/module/components/Skeleton/SkeletonClock.js +111 -0
  277. package/lib/module/components/Skeleton/SkeletonContent.js +304 -0
  278. package/lib/module/components/Skeleton/SkeletonList.js +87 -0
  279. package/lib/module/components/Skeleton/SkeletonProvider.js +106 -0
  280. package/lib/module/components/Skeleton/SkeletonSkip.js +31 -0
  281. package/lib/module/components/Skeleton/index.js +9 -0
  282. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +254 -0
  283. package/lib/module/components/SlideToConfirm/index.js +4 -0
  284. package/lib/module/components/Slider/Slider.js +498 -0
  285. package/lib/module/components/Slider/index.js +4 -0
  286. package/lib/module/components/Spinner/Spinner.js +179 -0
  287. package/lib/module/components/Spinner/index.js +4 -0
  288. package/lib/module/components/Stepper/Stepper.js +591 -0
  289. package/lib/module/components/Stepper/index.js +4 -0
  290. package/lib/module/components/Swipeable/Swipeable.js +375 -0
  291. package/lib/module/components/Swipeable/index.js +4 -0
  292. package/lib/module/components/Switch/Switch.js +227 -0
  293. package/lib/module/components/Switch/index.js +4 -0
  294. package/lib/module/components/Tabs/Tabs.js +285 -0
  295. package/lib/module/components/Tabs/index.js +4 -0
  296. package/lib/module/components/TagInput/TagInput.js +170 -0
  297. package/lib/module/components/TagInput/index.js +4 -0
  298. package/lib/module/components/Text/Text.js +142 -0
  299. package/lib/module/components/Text/index.js +4 -0
  300. package/lib/module/components/TimePicker/TimePicker.js +686 -0
  301. package/lib/module/components/TimePicker/index.js +4 -0
  302. package/lib/module/components/Timeline/Timeline.js +141 -0
  303. package/lib/module/components/Timeline/index.js +4 -0
  304. package/lib/module/components/Toast/Toast.js +317 -0
  305. package/lib/module/components/Toast/ToastProvider.js +191 -0
  306. package/lib/module/components/Toast/index.js +5 -0
  307. package/lib/module/components/Tooltip/Tooltip.js +405 -0
  308. package/lib/module/components/Tooltip/index.js +4 -0
  309. package/lib/module/components/index.js +65 -0
  310. package/lib/module/form/FormContext.js +32 -0
  311. package/lib/module/form/index.js +16 -0
  312. package/lib/module/form/path.js +84 -0
  313. package/lib/module/form/rules.js +59 -0
  314. package/lib/module/form/types.js +2 -0
  315. package/lib/module/form/useField.js +49 -0
  316. package/lib/module/form/useForm.js +360 -0
  317. package/lib/module/hooks/index.js +8 -0
  318. package/lib/module/hooks/useControllableState.js +28 -0
  319. package/lib/module/hooks/useDebounce.js +12 -0
  320. package/lib/module/hooks/usePressAnimation.js +42 -0
  321. package/lib/module/hooks/useReducedMotion.js +29 -0
  322. package/lib/module/hooks/useToggle.js +17 -0
  323. package/lib/module/index.js +17 -0
  324. package/lib/module/initUI.js +19 -0
  325. package/lib/module/network/NetworkStatusBanner.js +83 -0
  326. package/lib/module/network/index.js +4 -0
  327. package/lib/module/package.json +1 -0
  328. package/lib/module/theme/Gradient.js +49 -0
  329. package/lib/module/theme/ThemeContext.js +93 -0
  330. package/lib/module/theme/animatedValue.js +49 -0
  331. package/lib/module/theme/index.js +51 -0
  332. package/lib/module/theme/merge.js +25 -0
  333. package/lib/module/theme/textStyle.js +34 -0
  334. package/lib/module/theme/tokens.js +648 -0
  335. package/lib/module/theme/types.js +4 -0
  336. package/lib/module/utils/dimensions.js +4 -0
  337. package/lib/module/utils/feedback.js +70 -0
  338. package/lib/module/utils/hapticUtils.js +60 -0
  339. package/lib/module/utils/index.js +9 -0
  340. package/lib/module/utils/responsive.js +42 -0
  341. package/lib/module/utils/shadows.js +7 -0
  342. package/lib/module/utils/spacing.js +82 -0
  343. package/lib/module/utils/warnUnknownProps.js +42 -0
  344. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +48 -0
  345. package/lib/typescript/commonjs/components/Accordion/index.d.ts +3 -0
  346. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +30 -0
  347. package/lib/typescript/commonjs/components/AnimatePresence/index.d.ts +3 -0
  348. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +50 -0
  349. package/lib/typescript/commonjs/components/AppBar/index.d.ts +3 -0
  350. package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +39 -0
  351. package/lib/typescript/commonjs/components/AsyncBlock/index.d.ts +3 -0
  352. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +53 -0
  353. package/lib/typescript/commonjs/components/Autocomplete/index.d.ts +3 -0
  354. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +75 -0
  355. package/lib/typescript/commonjs/components/Avatar/index.d.ts +3 -0
  356. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +34 -0
  357. package/lib/typescript/commonjs/components/Badge/index.d.ts +3 -0
  358. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +47 -0
  359. package/lib/typescript/commonjs/components/Banner/index.d.ts +3 -0
  360. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +40 -0
  361. package/lib/typescript/commonjs/components/BottomNavigation/index.d.ts +3 -0
  362. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +113 -0
  363. package/lib/typescript/commonjs/components/BottomSheet/index.d.ts +3 -0
  364. package/lib/typescript/commonjs/components/Box/Box.d.ts +59 -0
  365. package/lib/typescript/commonjs/components/Box/index.d.ts +3 -0
  366. package/lib/typescript/commonjs/components/Button/Button.d.ts +41 -0
  367. package/lib/typescript/commonjs/components/Button/index.d.ts +3 -0
  368. package/lib/typescript/commonjs/components/Card/Card.d.ts +57 -0
  369. package/lib/typescript/commonjs/components/Card/index.d.ts +3 -0
  370. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +77 -0
  371. package/lib/typescript/commonjs/components/Carousel/index.d.ts +3 -0
  372. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +32 -0
  373. package/lib/typescript/commonjs/components/Checkbox/index.d.ts +3 -0
  374. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +41 -0
  375. package/lib/typescript/commonjs/components/Chip/index.d.ts +3 -0
  376. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +100 -0
  377. package/lib/typescript/commonjs/components/ChoiceGroup/index.d.ts +3 -0
  378. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +41 -0
  379. package/lib/typescript/commonjs/components/Confetti/index.d.ts +3 -0
  380. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +63 -0
  381. package/lib/typescript/commonjs/components/DatePicker/index.d.ts +3 -0
  382. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +69 -0
  383. package/lib/typescript/commonjs/components/DateRangePicker/index.d.ts +3 -0
  384. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +30 -0
  385. package/lib/typescript/commonjs/components/Descriptions/index.d.ts +3 -0
  386. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +45 -0
  387. package/lib/typescript/commonjs/components/Dialog/index.d.ts +3 -0
  388. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +19 -0
  389. package/lib/typescript/commonjs/components/Divider/index.d.ts +3 -0
  390. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +56 -0
  391. package/lib/typescript/commonjs/components/Drawer/index.d.ts +3 -0
  392. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +24 -0
  393. package/lib/typescript/commonjs/components/EmptyState/index.d.ts +3 -0
  394. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +20 -0
  395. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +180 -0
  396. package/lib/typescript/commonjs/components/FieldBase/index.d.ts +3 -0
  397. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +155 -0
  398. package/lib/typescript/commonjs/components/FilePicker/index.d.ts +3 -0
  399. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +59 -0
  400. package/lib/typescript/commonjs/components/FloatingActionButton/index.d.ts +3 -0
  401. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +47 -0
  402. package/lib/typescript/commonjs/components/ForceUpdateDialog/index.d.ts +3 -0
  403. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +49 -0
  404. package/lib/typescript/commonjs/components/FormField/index.d.ts +3 -0
  405. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +34 -0
  406. package/lib/typescript/commonjs/components/IconButton/index.d.ts +3 -0
  407. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +55 -0
  408. package/lib/typescript/commonjs/components/ImageGallery/index.d.ts +3 -0
  409. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +91 -0
  410. package/lib/typescript/commonjs/components/InlineSelect/index.d.ts +3 -0
  411. package/lib/typescript/commonjs/components/Input/Input.d.ts +69 -0
  412. package/lib/typescript/commonjs/components/Input/index.d.ts +3 -0
  413. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
  414. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/index.d.ts +3 -0
  415. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
  416. package/lib/typescript/commonjs/components/KeyboardToolbar/index.d.ts +3 -0
  417. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +46 -0
  418. package/lib/typescript/commonjs/components/ListItem/index.d.ts +4 -0
  419. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +47 -0
  420. package/lib/typescript/commonjs/components/Modal/index.d.ts +3 -0
  421. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +42 -0
  422. package/lib/typescript/commonjs/components/NumberInput/index.d.ts +3 -0
  423. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +35 -0
  424. package/lib/typescript/commonjs/components/OTPInput/index.d.ts +3 -0
  425. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +57 -0
  426. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +58 -0
  427. package/lib/typescript/commonjs/components/PhoneNumberInput/index.d.ts +3 -0
  428. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +60 -0
  429. package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +3 -0
  430. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +33 -0
  431. package/lib/typescript/commonjs/components/ProgressBar/index.d.ts +3 -0
  432. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +33 -0
  433. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +24 -0
  434. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +17 -0
  435. package/lib/typescript/commonjs/components/Radio/index.d.ts +7 -0
  436. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +37 -0
  437. package/lib/typescript/commonjs/components/Rating/index.d.ts +3 -0
  438. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +43 -0
  439. package/lib/typescript/commonjs/components/Repeater/index.d.ts +3 -0
  440. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +32 -0
  441. package/lib/typescript/commonjs/components/SearchBar/index.d.ts +3 -0
  442. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +42 -0
  443. package/lib/typescript/commonjs/components/SegmentedControl/index.d.ts +3 -0
  444. package/lib/typescript/commonjs/components/Select/Select.d.ts +106 -0
  445. package/lib/typescript/commonjs/components/Select/index.d.ts +3 -0
  446. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +80 -0
  447. package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +60 -0
  448. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +102 -0
  449. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -0
  450. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +66 -0
  451. package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +25 -0
  452. package/lib/typescript/commonjs/components/Skeleton/index.d.ts +13 -0
  453. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +33 -0
  454. package/lib/typescript/commonjs/components/SlideToConfirm/index.d.ts +3 -0
  455. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +47 -0
  456. package/lib/typescript/commonjs/components/Slider/index.d.ts +3 -0
  457. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +19 -0
  458. package/lib/typescript/commonjs/components/Spinner/index.d.ts +3 -0
  459. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +49 -0
  460. package/lib/typescript/commonjs/components/Stepper/index.d.ts +3 -0
  461. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +50 -0
  462. package/lib/typescript/commonjs/components/Swipeable/index.d.ts +3 -0
  463. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +29 -0
  464. package/lib/typescript/commonjs/components/Switch/index.d.ts +3 -0
  465. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +64 -0
  466. package/lib/typescript/commonjs/components/Tabs/index.d.ts +3 -0
  467. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +36 -0
  468. package/lib/typescript/commonjs/components/TagInput/index.d.ts +3 -0
  469. package/lib/typescript/commonjs/components/Text/Text.d.ts +24 -0
  470. package/lib/typescript/commonjs/components/Text/index.d.ts +3 -0
  471. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +62 -0
  472. package/lib/typescript/commonjs/components/TimePicker/index.d.ts +3 -0
  473. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +44 -0
  474. package/lib/typescript/commonjs/components/Timeline/index.d.ts +3 -0
  475. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +44 -0
  476. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +26 -0
  477. package/lib/typescript/commonjs/components/Toast/index.d.ts +5 -0
  478. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +28 -0
  479. package/lib/typescript/commonjs/components/Tooltip/index.d.ts +3 -0
  480. package/lib/typescript/commonjs/components/index.d.ts +125 -0
  481. package/lib/typescript/commonjs/form/FormContext.d.ts +17 -0
  482. package/lib/typescript/commonjs/form/index.d.ts +10 -0
  483. package/lib/typescript/commonjs/form/path.d.ts +10 -0
  484. package/lib/typescript/commonjs/form/rules.d.ts +37 -0
  485. package/lib/typescript/commonjs/form/types.d.ts +94 -0
  486. package/lib/typescript/commonjs/form/useField.d.ts +27 -0
  487. package/lib/typescript/commonjs/form/useForm.d.ts +10 -0
  488. package/lib/typescript/commonjs/hooks/index.d.ts +9 -0
  489. package/lib/typescript/commonjs/hooks/useControllableState.d.ts +17 -0
  490. package/lib/typescript/commonjs/hooks/useDebounce.d.ts +2 -0
  491. package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +13 -0
  492. package/lib/typescript/commonjs/hooks/useReducedMotion.d.ts +8 -0
  493. package/lib/typescript/commonjs/hooks/useToggle.d.ts +9 -0
  494. package/lib/typescript/commonjs/index.d.ts +14 -0
  495. package/lib/typescript/commonjs/initUI.d.ts +12 -0
  496. package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +19 -0
  497. package/lib/typescript/commonjs/network/index.d.ts +3 -0
  498. package/lib/typescript/commonjs/package.json +1 -0
  499. package/lib/typescript/commonjs/theme/Gradient.d.ts +11 -0
  500. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +18 -0
  501. package/lib/typescript/commonjs/theme/animatedValue.d.ts +39 -0
  502. package/lib/typescript/commonjs/theme/index.d.ts +18 -0
  503. package/lib/typescript/commonjs/theme/merge.d.ts +3 -0
  504. package/lib/typescript/commonjs/theme/textStyle.d.ts +18 -0
  505. package/lib/typescript/commonjs/theme/tokens.d.ts +4 -0
  506. package/lib/typescript/commonjs/theme/types.d.ts +913 -0
  507. package/lib/typescript/commonjs/utils/dimensions.d.ts +3 -0
  508. package/lib/typescript/commonjs/utils/feedback.d.ts +45 -0
  509. package/lib/typescript/commonjs/utils/hapticUtils.d.ts +12 -0
  510. package/lib/typescript/commonjs/utils/index.d.ts +11 -0
  511. package/lib/typescript/commonjs/utils/responsive.d.ts +23 -0
  512. package/lib/typescript/commonjs/utils/shadows.d.ts +4 -0
  513. package/lib/typescript/commonjs/utils/spacing.d.ts +61 -0
  514. package/lib/typescript/commonjs/utils/warnUnknownProps.d.ts +20 -0
  515. package/lib/typescript/module/components/Accordion/Accordion.d.ts +48 -0
  516. package/lib/typescript/module/components/Accordion/index.d.ts +3 -0
  517. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +30 -0
  518. package/lib/typescript/module/components/AnimatePresence/index.d.ts +3 -0
  519. package/lib/typescript/module/components/AppBar/AppBar.d.ts +50 -0
  520. package/lib/typescript/module/components/AppBar/index.d.ts +3 -0
  521. package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +39 -0
  522. package/lib/typescript/module/components/AsyncBlock/index.d.ts +3 -0
  523. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +53 -0
  524. package/lib/typescript/module/components/Autocomplete/index.d.ts +3 -0
  525. package/lib/typescript/module/components/Avatar/Avatar.d.ts +75 -0
  526. package/lib/typescript/module/components/Avatar/index.d.ts +3 -0
  527. package/lib/typescript/module/components/Badge/Badge.d.ts +34 -0
  528. package/lib/typescript/module/components/Badge/index.d.ts +3 -0
  529. package/lib/typescript/module/components/Banner/Banner.d.ts +47 -0
  530. package/lib/typescript/module/components/Banner/index.d.ts +3 -0
  531. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +40 -0
  532. package/lib/typescript/module/components/BottomNavigation/index.d.ts +3 -0
  533. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +113 -0
  534. package/lib/typescript/module/components/BottomSheet/index.d.ts +3 -0
  535. package/lib/typescript/module/components/Box/Box.d.ts +59 -0
  536. package/lib/typescript/module/components/Box/index.d.ts +3 -0
  537. package/lib/typescript/module/components/Button/Button.d.ts +41 -0
  538. package/lib/typescript/module/components/Button/index.d.ts +3 -0
  539. package/lib/typescript/module/components/Card/Card.d.ts +57 -0
  540. package/lib/typescript/module/components/Card/index.d.ts +3 -0
  541. package/lib/typescript/module/components/Carousel/Carousel.d.ts +77 -0
  542. package/lib/typescript/module/components/Carousel/index.d.ts +3 -0
  543. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +32 -0
  544. package/lib/typescript/module/components/Checkbox/index.d.ts +3 -0
  545. package/lib/typescript/module/components/Chip/Chip.d.ts +41 -0
  546. package/lib/typescript/module/components/Chip/index.d.ts +3 -0
  547. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +100 -0
  548. package/lib/typescript/module/components/ChoiceGroup/index.d.ts +3 -0
  549. package/lib/typescript/module/components/Confetti/Confetti.d.ts +41 -0
  550. package/lib/typescript/module/components/Confetti/index.d.ts +3 -0
  551. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +63 -0
  552. package/lib/typescript/module/components/DatePicker/index.d.ts +3 -0
  553. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +69 -0
  554. package/lib/typescript/module/components/DateRangePicker/index.d.ts +3 -0
  555. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +30 -0
  556. package/lib/typescript/module/components/Descriptions/index.d.ts +3 -0
  557. package/lib/typescript/module/components/Dialog/Dialog.d.ts +45 -0
  558. package/lib/typescript/module/components/Dialog/index.d.ts +3 -0
  559. package/lib/typescript/module/components/Divider/Divider.d.ts +19 -0
  560. package/lib/typescript/module/components/Divider/index.d.ts +3 -0
  561. package/lib/typescript/module/components/Drawer/Drawer.d.ts +56 -0
  562. package/lib/typescript/module/components/Drawer/index.d.ts +3 -0
  563. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +24 -0
  564. package/lib/typescript/module/components/EmptyState/index.d.ts +3 -0
  565. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +20 -0
  566. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +180 -0
  567. package/lib/typescript/module/components/FieldBase/index.d.ts +3 -0
  568. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +155 -0
  569. package/lib/typescript/module/components/FilePicker/index.d.ts +3 -0
  570. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +59 -0
  571. package/lib/typescript/module/components/FloatingActionButton/index.d.ts +3 -0
  572. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +47 -0
  573. package/lib/typescript/module/components/ForceUpdateDialog/index.d.ts +3 -0
  574. package/lib/typescript/module/components/FormField/FormField.d.ts +49 -0
  575. package/lib/typescript/module/components/FormField/index.d.ts +3 -0
  576. package/lib/typescript/module/components/IconButton/IconButton.d.ts +34 -0
  577. package/lib/typescript/module/components/IconButton/index.d.ts +3 -0
  578. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +55 -0
  579. package/lib/typescript/module/components/ImageGallery/index.d.ts +3 -0
  580. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +91 -0
  581. package/lib/typescript/module/components/InlineSelect/index.d.ts +3 -0
  582. package/lib/typescript/module/components/Input/Input.d.ts +69 -0
  583. package/lib/typescript/module/components/Input/index.d.ts +3 -0
  584. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +20 -0
  585. package/lib/typescript/module/components/KeyboardAwareScrollView/index.d.ts +3 -0
  586. package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +29 -0
  587. package/lib/typescript/module/components/KeyboardToolbar/index.d.ts +3 -0
  588. package/lib/typescript/module/components/ListItem/ListItem.d.ts +46 -0
  589. package/lib/typescript/module/components/ListItem/index.d.ts +4 -0
  590. package/lib/typescript/module/components/Modal/Modal.d.ts +47 -0
  591. package/lib/typescript/module/components/Modal/index.d.ts +3 -0
  592. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +42 -0
  593. package/lib/typescript/module/components/NumberInput/index.d.ts +3 -0
  594. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +35 -0
  595. package/lib/typescript/module/components/OTPInput/index.d.ts +3 -0
  596. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +57 -0
  597. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +58 -0
  598. package/lib/typescript/module/components/PhoneNumberInput/index.d.ts +3 -0
  599. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +60 -0
  600. package/lib/typescript/module/components/PickerTrigger/index.d.ts +3 -0
  601. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +33 -0
  602. package/lib/typescript/module/components/ProgressBar/index.d.ts +3 -0
  603. package/lib/typescript/module/components/Radio/Radio.d.ts +33 -0
  604. package/lib/typescript/module/components/Radio/RadioDot.d.ts +24 -0
  605. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +17 -0
  606. package/lib/typescript/module/components/Radio/index.d.ts +7 -0
  607. package/lib/typescript/module/components/Rating/Rating.d.ts +37 -0
  608. package/lib/typescript/module/components/Rating/index.d.ts +3 -0
  609. package/lib/typescript/module/components/Repeater/Repeater.d.ts +43 -0
  610. package/lib/typescript/module/components/Repeater/index.d.ts +3 -0
  611. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +32 -0
  612. package/lib/typescript/module/components/SearchBar/index.d.ts +3 -0
  613. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +42 -0
  614. package/lib/typescript/module/components/SegmentedControl/index.d.ts +3 -0
  615. package/lib/typescript/module/components/Select/Select.d.ts +106 -0
  616. package/lib/typescript/module/components/Select/index.d.ts +3 -0
  617. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +80 -0
  618. package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +60 -0
  619. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +102 -0
  620. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -0
  621. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +66 -0
  622. package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +25 -0
  623. package/lib/typescript/module/components/Skeleton/index.d.ts +13 -0
  624. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +33 -0
  625. package/lib/typescript/module/components/SlideToConfirm/index.d.ts +3 -0
  626. package/lib/typescript/module/components/Slider/Slider.d.ts +47 -0
  627. package/lib/typescript/module/components/Slider/index.d.ts +3 -0
  628. package/lib/typescript/module/components/Spinner/Spinner.d.ts +19 -0
  629. package/lib/typescript/module/components/Spinner/index.d.ts +3 -0
  630. package/lib/typescript/module/components/Stepper/Stepper.d.ts +49 -0
  631. package/lib/typescript/module/components/Stepper/index.d.ts +3 -0
  632. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +50 -0
  633. package/lib/typescript/module/components/Swipeable/index.d.ts +3 -0
  634. package/lib/typescript/module/components/Switch/Switch.d.ts +29 -0
  635. package/lib/typescript/module/components/Switch/index.d.ts +3 -0
  636. package/lib/typescript/module/components/Tabs/Tabs.d.ts +64 -0
  637. package/lib/typescript/module/components/Tabs/index.d.ts +3 -0
  638. package/lib/typescript/module/components/TagInput/TagInput.d.ts +36 -0
  639. package/lib/typescript/module/components/TagInput/index.d.ts +3 -0
  640. package/lib/typescript/module/components/Text/Text.d.ts +24 -0
  641. package/lib/typescript/module/components/Text/index.d.ts +3 -0
  642. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +62 -0
  643. package/lib/typescript/module/components/TimePicker/index.d.ts +3 -0
  644. package/lib/typescript/module/components/Timeline/Timeline.d.ts +44 -0
  645. package/lib/typescript/module/components/Timeline/index.d.ts +3 -0
  646. package/lib/typescript/module/components/Toast/Toast.d.ts +44 -0
  647. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +26 -0
  648. package/lib/typescript/module/components/Toast/index.d.ts +5 -0
  649. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +28 -0
  650. package/lib/typescript/module/components/Tooltip/index.d.ts +3 -0
  651. package/lib/typescript/module/components/index.d.ts +125 -0
  652. package/lib/typescript/module/form/FormContext.d.ts +17 -0
  653. package/lib/typescript/module/form/index.d.ts +10 -0
  654. package/lib/typescript/module/form/path.d.ts +10 -0
  655. package/lib/typescript/module/form/rules.d.ts +37 -0
  656. package/lib/typescript/module/form/types.d.ts +94 -0
  657. package/lib/typescript/module/form/useField.d.ts +27 -0
  658. package/lib/typescript/module/form/useForm.d.ts +10 -0
  659. package/lib/typescript/module/hooks/index.d.ts +9 -0
  660. package/lib/typescript/module/hooks/useControllableState.d.ts +17 -0
  661. package/lib/typescript/module/hooks/useDebounce.d.ts +2 -0
  662. package/lib/typescript/module/hooks/usePressAnimation.d.ts +13 -0
  663. package/lib/typescript/module/hooks/useReducedMotion.d.ts +8 -0
  664. package/lib/typescript/module/hooks/useToggle.d.ts +9 -0
  665. package/lib/typescript/module/index.d.ts +14 -0
  666. package/lib/typescript/module/initUI.d.ts +12 -0
  667. package/lib/typescript/module/network/NetworkStatusBanner.d.ts +19 -0
  668. package/lib/typescript/module/network/index.d.ts +3 -0
  669. package/lib/typescript/module/package.json +1 -0
  670. package/lib/typescript/module/theme/Gradient.d.ts +11 -0
  671. package/lib/typescript/module/theme/ThemeContext.d.ts +18 -0
  672. package/lib/typescript/module/theme/animatedValue.d.ts +39 -0
  673. package/lib/typescript/module/theme/index.d.ts +18 -0
  674. package/lib/typescript/module/theme/merge.d.ts +3 -0
  675. package/lib/typescript/module/theme/textStyle.d.ts +18 -0
  676. package/lib/typescript/module/theme/tokens.d.ts +4 -0
  677. package/lib/typescript/module/theme/types.d.ts +913 -0
  678. package/lib/typescript/module/utils/dimensions.d.ts +3 -0
  679. package/lib/typescript/module/utils/feedback.d.ts +45 -0
  680. package/lib/typescript/module/utils/hapticUtils.d.ts +12 -0
  681. package/lib/typescript/module/utils/index.d.ts +11 -0
  682. package/lib/typescript/module/utils/responsive.d.ts +23 -0
  683. package/lib/typescript/module/utils/shadows.d.ts +4 -0
  684. package/lib/typescript/module/utils/spacing.d.ts +61 -0
  685. package/lib/typescript/module/utils/warnUnknownProps.d.ts +20 -0
  686. package/package.json +101 -0
@@ -0,0 +1,692 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.TimePicker = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
10
+ var _index = require("../../theme/index.js");
11
+ var _hapticUtils = require("../../utils/hapticUtils.js");
12
+ var _Button = _interopRequireDefault(require("../Button/Button.js"));
13
+ var _PickerTrigger = require("../PickerTrigger/PickerTrigger.js");
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
17
+ /**
18
+ * TimePicker supports two modes:
19
+ *
20
+ * 1. Controlled-modal mode — pass `visible`, `onChange`, `onClose`. The
21
+ * component renders only the modal sheet and the caller owns open/close
22
+ * state plus its own trigger UI.
23
+ * 2. Trigger mode — omit `visible`. The component renders a PickerTrigger
24
+ * field (label / value / placeholder / chevron / clear / helper / error)
25
+ * and manages its own modal open state. `onChange` is still called on
26
+ * confirm.
27
+ */
28
+
29
+ const ITEM_HEIGHT = 40;
30
+ const VISIBLE_ITEMS = 5;
31
+ const PICKER_HEIGHT = ITEM_HEIGHT * VISIBLE_ITEMS;
32
+ const CENTER_OFFSET = Math.floor(VISIBLE_ITEMS / 2);
33
+ const HAPTIC_DEBOUNCE_MS = 35;
34
+ const range = (start, endInclusive, step = 1) => {
35
+ const out = [];
36
+ for (let v = start; v <= endInclusive; v += step) {
37
+ out.push(v);
38
+ }
39
+ return out;
40
+ };
41
+ const pad2 = n => n.toString().padStart(2, '0');
42
+ const to24h = (hour, period, format) => {
43
+ if (format === '24h') {
44
+ return hour;
45
+ }
46
+ if (period === 'AM') {
47
+ return hour === 12 ? 0 : hour;
48
+ }
49
+ return hour === 12 ? 12 : hour + 12;
50
+ };
51
+ const from24h = (hour, format) => {
52
+ if (format === '24h') {
53
+ return {
54
+ displayHour: hour,
55
+ period: 'AM'
56
+ };
57
+ }
58
+ if (hour === 0) {
59
+ return {
60
+ displayHour: 12,
61
+ period: 'AM'
62
+ };
63
+ }
64
+ if (hour === 12) {
65
+ return {
66
+ displayHour: 12,
67
+ period: 'PM'
68
+ };
69
+ }
70
+ if (hour > 12) {
71
+ return {
72
+ displayHour: hour - 12,
73
+ period: 'PM'
74
+ };
75
+ }
76
+ return {
77
+ displayHour: hour,
78
+ period: 'AM'
79
+ };
80
+ };
81
+ const clampMinuteToStep = (minute, step) => {
82
+ const rounded = Math.round(minute / step) * step;
83
+ return Math.min(59, Math.max(0, rounded));
84
+ };
85
+ const Wheel = ({
86
+ kind,
87
+ label,
88
+ data,
89
+ selectedIndex,
90
+ onIndexChange,
91
+ formatItem,
92
+ theme,
93
+ haptic,
94
+ testID
95
+ }) => {
96
+ const listRef = (0, _react.useRef)(null);
97
+ const scrollY = (0, _react.useRef)((0, _index.createAnimatedValue)(selectedIndex * ITEM_HEIGHT)).current;
98
+ const lastIndexRef = (0, _react.useRef)(selectedIndex);
99
+ const lastHapticAtRef = (0, _react.useRef)(0);
100
+
101
+ // Keep list aligned when selectedIndex changes externally (e.g. value prop, format flip).
102
+ (0, _react.useEffect)(() => {
103
+ if (lastIndexRef.current !== selectedIndex) {
104
+ lastIndexRef.current = selectedIndex;
105
+ const offset = selectedIndex * ITEM_HEIGHT;
106
+ (0, _index.setNativeValue)(scrollY, offset);
107
+ // Defer to next frame so FlatList has measured.
108
+ requestAnimationFrame(() => {
109
+ listRef.current?.scrollToOffset({
110
+ offset,
111
+ animated: false
112
+ });
113
+ });
114
+ }
115
+ }, [selectedIndex, scrollY]);
116
+ const hapticDebounceMs = theme.components.timePicker?.hapticDebounceMs ?? HAPTIC_DEBOUNCE_MS;
117
+ const onScroll = (0, _react.useMemo)(() => _reactNative.Animated.event([{
118
+ nativeEvent: {
119
+ contentOffset: {
120
+ y: scrollY
121
+ }
122
+ }
123
+ }], {
124
+ useNativeDriver: true,
125
+ listener: event => {
126
+ const y = event.nativeEvent.contentOffset.y;
127
+ const idx = Math.round(y / ITEM_HEIGHT);
128
+ if (idx !== lastIndexRef.current && idx >= 0 && idx < data.length) {
129
+ const now = Date.now();
130
+ if (now - lastHapticAtRef.current >= hapticDebounceMs) {
131
+ const h = (0, _hapticUtils.resolveHaptic)(haptic, 'selection');
132
+ if (h) {
133
+ (0, _hapticUtils.triggerHaptic)(h);
134
+ }
135
+ lastHapticAtRef.current = now;
136
+ }
137
+ lastIndexRef.current = idx;
138
+ }
139
+ }
140
+ }), [scrollY, data.length, haptic, hapticDebounceMs]);
141
+ const onMomentumScrollEnd = (0, _react.useCallback)(event => {
142
+ const y = event.nativeEvent.contentOffset.y;
143
+ const idx = Math.max(0, Math.min(data.length - 1, Math.round(y / ITEM_HEIGHT)));
144
+ if (idx !== selectedIndex) {
145
+ onIndexChange(idx);
146
+ }
147
+ }, [data.length, onIndexChange, selectedIndex]);
148
+ const handleA11yAction = (0, _react.useCallback)(event => {
149
+ const action = event.nativeEvent.actionName;
150
+ if (action === 'increment') {
151
+ const next = Math.min(data.length - 1, selectedIndex + 1);
152
+ if (next !== selectedIndex) {
153
+ onIndexChange(next);
154
+ }
155
+ } else if (action === 'decrement') {
156
+ const next = Math.max(0, selectedIndex - 1);
157
+ if (next !== selectedIndex) {
158
+ onIndexChange(next);
159
+ }
160
+ }
161
+ }, [data.length, onIndexChange, selectedIndex]);
162
+ const renderItem = (0, _react.useCallback)(({
163
+ item,
164
+ index
165
+ }) => {
166
+ const distance = _reactNative.Animated.subtract(_reactNative.Animated.divide(scrollY, ITEM_HEIGHT), index);
167
+ const opacity = distance.interpolate({
168
+ inputRange: [-2, -1, 0, 1, 2],
169
+ outputRange: [0.3, 0.6, 1, 0.6, 0.3],
170
+ extrapolate: 'clamp'
171
+ });
172
+ const scale = distance.interpolate({
173
+ inputRange: [-2, -1, 0, 1, 2],
174
+ outputRange: [0.85, 0.95, 1.05, 0.95, 0.85],
175
+ extrapolate: 'clamp'
176
+ });
177
+ const isSelected = index === selectedIndex;
178
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
179
+ style: [styles.wheelItem, {
180
+ opacity,
181
+ transform: [{
182
+ scale
183
+ }]
184
+ }],
185
+ accessible: false,
186
+ importantForAccessibility: "no",
187
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
188
+ style: [{
189
+ fontSize: theme.typography.fontSize.xl,
190
+ color: isSelected ? theme.colors.text.primary : theme.colors.text.secondary,
191
+ fontWeight: isSelected ? theme.typography.fontWeight.semibold : theme.typography.fontWeight.medium,
192
+ letterSpacing: theme.typography.letterSpacing.normal
193
+ }],
194
+ children: formatItem(item)
195
+ })
196
+ });
197
+ }, [scrollY, selectedIndex, theme, formatItem]);
198
+ const keyExtractor = (0, _react.useCallback)((item, index) => `${kind}-${String(item)}-${index}`, [kind]);
199
+ const getItemLayout = (0, _react.useCallback)((_data, index) => ({
200
+ length: ITEM_HEIGHT,
201
+ offset: ITEM_HEIGHT * index,
202
+ index
203
+ }), []);
204
+ const currentValueText = formatItem(data[selectedIndex] ?? '');
205
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
206
+ style: styles.wheelColumn,
207
+ testID: testID,
208
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
209
+ style: styles.wheelA11yLayer,
210
+ accessible: true,
211
+ accessibilityRole: "adjustable",
212
+ accessibilityLabel: label,
213
+ accessibilityValue: {
214
+ text: currentValueText
215
+ },
216
+ accessibilityActions: [{
217
+ name: 'increment'
218
+ }, {
219
+ name: 'decrement'
220
+ }],
221
+ onAccessibilityAction: handleA11yAction
222
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.FlatList, {
223
+ ref: listRef,
224
+ data: data,
225
+ keyExtractor: keyExtractor,
226
+ renderItem: renderItem,
227
+ getItemLayout: getItemLayout,
228
+ showsVerticalScrollIndicator: false,
229
+ snapToInterval: ITEM_HEIGHT,
230
+ snapToAlignment: "start",
231
+ decelerationRate: "fast",
232
+ bounces: false,
233
+ scrollEventThrottle: 16,
234
+ onScroll: onScroll,
235
+ onMomentumScrollEnd: onMomentumScrollEnd,
236
+ contentContainerStyle: {
237
+ paddingVertical: ITEM_HEIGHT * CENTER_OFFSET
238
+ },
239
+ initialScrollIndex: selectedIndex,
240
+ style: styles.wheelList,
241
+ importantForAccessibility: "no-hide-descendants"
242
+ })]
243
+ });
244
+ };
245
+ const TimePicker = props => {
246
+ const {
247
+ visible,
248
+ value,
249
+ onChange,
250
+ onClose,
251
+ format = '12h',
252
+ minuteStep = 1,
253
+ title = 'Select Time',
254
+ confirmLabel = 'Confirm',
255
+ cancelLabel = 'Cancel',
256
+ testID,
257
+ style,
258
+ containerStyle,
259
+ headerLabelStyle,
260
+ footerButtonStyle,
261
+ label,
262
+ placeholder,
263
+ helperText,
264
+ error,
265
+ required,
266
+ disabled,
267
+ size,
268
+ variant,
269
+ clearable,
270
+ onClear,
271
+ formatValue,
272
+ triggerStyle,
273
+ haptic
274
+ } = props;
275
+ const isControlled = props.visible !== undefined;
276
+ const [internalOpen, setInternalOpen] = (0, _react.useState)(false);
277
+ const open = isControlled ? visible : internalOpen;
278
+
279
+ // In trigger mode the trigger field is what's on screen by default, so it
280
+ // carries the bare testID; the modal sheet (rendered alongside it, just
281
+ // closed) gets a derived id to avoid two nodes sharing the same testID.
282
+ const modalTestID = isControlled ? testID : testID ? `${testID}-modal` : undefined;
283
+ const theme = (0, _index.useTheme)();
284
+ const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
285
+ const styles = (0, _react.useMemo)(() => buildStyles(theme), [theme]);
286
+ const opacity = (0, _react.useRef)((0, _index.createAnimatedValue)(0)).current;
287
+ const translateY = (0, _react.useRef)((0, _index.createAnimatedValue)(40)).current;
288
+ const finalizeClose = (0, _react.useCallback)(() => {
289
+ if (isControlled) {
290
+ onClose?.();
291
+ } else {
292
+ setInternalOpen(false);
293
+ }
294
+ }, [isControlled, onClose]);
295
+
296
+ // Animate out before finalizing, matching DatePicker/DateRangePicker — this
297
+ // sheet used to spring in and then vanish on close.
298
+ const handleCloseModal = (0, _react.useCallback)(() => {
299
+ _reactNative.Animated.parallel([_reactNative.Animated.timing(opacity, {
300
+ toValue: 0,
301
+ duration: theme.motion.duration.fast,
302
+ easing: _reactNative.Easing.bezier(...theme.motion.easing.accelerate),
303
+ useNativeDriver: false
304
+ }), _reactNative.Animated.timing(translateY, {
305
+ toValue: 40,
306
+ duration: theme.motion.duration.fast,
307
+ easing: _reactNative.Easing.bezier(...theme.motion.easing.accelerate),
308
+ useNativeDriver: true
309
+ })]).start(() => finalizeClose());
310
+ }, [finalizeClose, opacity, translateY, theme.motion.duration.fast, theme.motion.easing.accelerate]);
311
+ const hours = (0, _react.useMemo)(() => format === '24h' ? range(0, 23) : range(1, 12), [format]);
312
+ const minutes = (0, _react.useMemo)(() => range(0, 59, minuteStep), [minuteStep]);
313
+ const periods = (0, _react.useMemo)(() => ['AM', 'PM'], []);
314
+ const initial = (0, _react.useMemo)(() => {
315
+ const h24 = value && Number.isFinite(value.hour) ? value.hour : new Date().getHours();
316
+ const m = value && Number.isFinite(value.minute) ? value.minute : new Date().getMinutes();
317
+ const minute = clampMinuteToStep(m, minuteStep);
318
+ const {
319
+ displayHour,
320
+ period
321
+ } = from24h(h24, format);
322
+ return {
323
+ displayHour,
324
+ minute,
325
+ period,
326
+ hour24: h24
327
+ };
328
+ }, [value, format, minuteStep]);
329
+ const [hourIndex, setHourIndex] = (0, _react.useState)(() => {
330
+ const idx = hours.indexOf(initial.displayHour);
331
+ return idx >= 0 ? idx : 0;
332
+ });
333
+ const [minuteIndex, setMinuteIndex] = (0, _react.useState)(() => {
334
+ const idx = minutes.indexOf(initial.minute);
335
+ return idx >= 0 ? idx : 0;
336
+ });
337
+ const [periodIndex, setPeriodIndex] = (0, _react.useState)(() => initial.period === 'PM' ? 1 : 0);
338
+
339
+ // Re-sync on open toggle / value change / format / step.
340
+ (0, _react.useEffect)(() => {
341
+ if (!open) {
342
+ return;
343
+ }
344
+ const h24 = value && Number.isFinite(value.hour) ? value.hour : new Date().getHours();
345
+ const m = value && Number.isFinite(value.minute) ? value.minute : new Date().getMinutes();
346
+ const stepped = clampMinuteToStep(m, minuteStep);
347
+ const {
348
+ displayHour,
349
+ period
350
+ } = from24h(h24, format);
351
+ const hIdx = hours.indexOf(displayHour);
352
+ setHourIndex(hIdx >= 0 ? hIdx : 0);
353
+ const mIdx = minutes.indexOf(stepped);
354
+ setMinuteIndex(mIdx >= 0 ? mIdx : 0);
355
+ setPeriodIndex(period === 'PM' ? 1 : 0);
356
+ }, [open, value, format, minuteStep, hours, minutes]);
357
+
358
+ // Sheet animations.
359
+
360
+ (0, _react.useEffect)(() => {
361
+ let anim;
362
+ if (open) {
363
+ anim = _reactNative.Animated.parallel([
364
+ // Backdrop opacity uses JS driver — see Modal.tsx for the Fabric reason.
365
+ _reactNative.Animated.timing(opacity, {
366
+ toValue: 1,
367
+ duration: theme.motion.duration.normal,
368
+ easing: _reactNative.Easing.out(_reactNative.Easing.cubic),
369
+ useNativeDriver: false
370
+ }), _reactNative.Animated.spring(translateY, {
371
+ toValue: 0,
372
+ damping: theme.motion.spring.snappy.damping,
373
+ stiffness: theme.motion.spring.snappy.stiffness,
374
+ mass: theme.motion.spring.snappy.mass,
375
+ useNativeDriver: true
376
+ })]);
377
+ anim.start();
378
+ } else {
379
+ opacity.setValue(0);
380
+ (0, _index.setNativeValue)(translateY, 40);
381
+ }
382
+ return () => anim?.stop();
383
+ }, [open, opacity, translateY, theme.motion]);
384
+ const announce = (0, _react.useCallback)(msg => {
385
+ if (_reactNative.Platform.OS === 'ios' || _reactNative.Platform.OS === 'android') {
386
+ _reactNative.AccessibilityInfo.announceForAccessibility(msg);
387
+ }
388
+ }, []);
389
+ const handleHourIndex = (0, _react.useCallback)(idx => {
390
+ setHourIndex(idx);
391
+ announce(`Hour ${hours[idx]}`);
392
+ }, [hours, announce]);
393
+ const handleMinuteIndex = (0, _react.useCallback)(idx => {
394
+ setMinuteIndex(idx);
395
+ announce(`${minutes[idx]} minutes`);
396
+ }, [minutes, announce]);
397
+ const handlePeriodIndex = (0, _react.useCallback)(idx => {
398
+ setPeriodIndex(idx);
399
+ announce(periods[idx] ?? '');
400
+ }, [periods, announce]);
401
+ const handleCancel = (0, _react.useCallback)(() => {
402
+ if (haptic !== false) {
403
+ (0, _hapticUtils.triggerHaptic)('selection');
404
+ }
405
+ handleCloseModal();
406
+ }, [handleCloseModal, haptic]);
407
+ const handleConfirm = (0, _react.useCallback)(() => {
408
+ const displayHour = hours[hourIndex] ?? 0;
409
+ const period = periods[periodIndex] ?? 'AM';
410
+ const hour24 = to24h(displayHour, period, format);
411
+ const minute = minutes[minuteIndex] ?? 0;
412
+ if (haptic !== false) {
413
+ (0, _hapticUtils.triggerHaptic)('notificationSuccess');
414
+ }
415
+ onChange?.({
416
+ hour: hour24,
417
+ minute
418
+ });
419
+ handleCloseModal();
420
+ }, [hours, hourIndex, periods, periodIndex, minutes, minuteIndex, format, onChange, handleCloseModal, haptic]);
421
+ const summary = (0, _react.useMemo)(() => {
422
+ const displayHour = hours[hourIndex] ?? 0;
423
+ const minute = minutes[minuteIndex] ?? 0;
424
+ if (format === '24h') {
425
+ return `${pad2(displayHour)}:${pad2(minute)}`;
426
+ }
427
+ const period = periods[periodIndex] ?? 'AM';
428
+ return `${pad2(displayHour)}:${pad2(minute)} ${period}`;
429
+ }, [hours, hourIndex, minutes, minuteIndex, periods, periodIndex, format]);
430
+ const formatHourItem = (0, _react.useCallback)(item => pad2(Number(item)), []);
431
+ const formatMinuteItem = (0, _react.useCallback)(item => pad2(Number(item)), []);
432
+ const formatPeriodItem = (0, _react.useCallback)(item => String(item), []);
433
+ const defaultFormatValue = (0, _react.useCallback)(t => {
434
+ if (format === '24h') {
435
+ return `${pad2(t.hour)}:${pad2(t.minute)}`;
436
+ }
437
+ const {
438
+ displayHour,
439
+ period
440
+ } = from24h(t.hour, '12h');
441
+ return `${displayHour}:${pad2(t.minute)} ${period}`;
442
+ }, [format]);
443
+ const triggerValue = !isControlled && value && Number.isFinite(value.hour) && Number.isFinite(value.minute) ? (formatValue ?? defaultFormatValue)(value) : undefined;
444
+ const modal = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
445
+ visible: open,
446
+ transparent: true,
447
+ statusBarTranslucent: true,
448
+ navigationBarTranslucent: true,
449
+ animationType: "none",
450
+ onRequestClose: handleCloseModal,
451
+ testID: modalTestID,
452
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View
453
+ // Plain View + collapsable={false} — see Modal.tsx backdrop comment.
454
+ , {
455
+ collapsable: false,
456
+ style: styles.backdrop,
457
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
458
+ style: _reactNative.StyleSheet.absoluteFill,
459
+ onPress: handleCloseModal,
460
+ accessibilityLabel: "Close time picker",
461
+ accessibilityRole: "button"
462
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
463
+ style: [styles.sheet, {
464
+ paddingBottom: insets.bottom + theme.spacing.xl,
465
+ transform: [{
466
+ translateY
467
+ }]
468
+ }, style, containerStyle],
469
+ accessibilityViewIsModal: true,
470
+ accessible: true,
471
+ accessibilityRole: "none",
472
+ accessibilityLabel: title,
473
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
474
+ style: styles.handle
475
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
476
+ style: [styles.title, headerLabelStyle],
477
+ accessibilityRole: "header",
478
+ children: title
479
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
480
+ style: styles.summaryWrap,
481
+ accessibilityLiveRegion: "polite",
482
+ accessibilityLabel: `Selected ${summary}`,
483
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
484
+ style: styles.summary,
485
+ children: summary
486
+ })
487
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
488
+ style: styles.wheelsRow,
489
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
490
+ pointerEvents: "none",
491
+ style: styles.selectionBand,
492
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
493
+ style: styles.bandLine
494
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
495
+ style: [styles.bandLine, styles.bandLineBottom]
496
+ })]
497
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Wheel, {
498
+ kind: "hour",
499
+ label: "Hour",
500
+ data: hours,
501
+ selectedIndex: hourIndex,
502
+ onIndexChange: handleHourIndex,
503
+ formatItem: formatHourItem,
504
+ theme: theme,
505
+ haptic: haptic,
506
+ testID: "time-picker-hour"
507
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
508
+ style: styles.separator,
509
+ children: ":"
510
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Wheel, {
511
+ kind: "minute",
512
+ label: "Minute",
513
+ data: minutes,
514
+ selectedIndex: minuteIndex,
515
+ onIndexChange: handleMinuteIndex,
516
+ formatItem: formatMinuteItem,
517
+ theme: theme,
518
+ haptic: haptic,
519
+ testID: "time-picker-minute"
520
+ }), format === '12h' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
521
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
522
+ style: styles.spacer
523
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Wheel, {
524
+ kind: "period",
525
+ label: "Period",
526
+ data: periods,
527
+ selectedIndex: periodIndex,
528
+ onIndexChange: handlePeriodIndex,
529
+ formatItem: formatPeriodItem,
530
+ theme: theme,
531
+ haptic: haptic,
532
+ testID: "time-picker-period"
533
+ })]
534
+ }) : null]
535
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
536
+ style: styles.footer,
537
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
538
+ title: cancelLabel,
539
+ haptic: false,
540
+ variant: "ghost",
541
+ tone: "neutral",
542
+ onPress: handleCancel,
543
+ style: [styles.footerBtn, footerButtonStyle],
544
+ accessibilityHint: "Dismiss without changes",
545
+ testID: "time-picker-cancel"
546
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
547
+ title: confirmLabel,
548
+ variant: "solid",
549
+ tone: "primary",
550
+ haptic: false,
551
+ onPress: handleConfirm,
552
+ style: [styles.footerBtn, footerButtonStyle],
553
+ accessibilityHint: "Confirm selected time",
554
+ testID: "time-picker-confirm"
555
+ })]
556
+ })]
557
+ })]
558
+ })
559
+ });
560
+ if (isControlled) {
561
+ return modal;
562
+ }
563
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
564
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PickerTrigger.PickerTrigger, {
565
+ label: label,
566
+ placeholder: placeholder,
567
+ helperText: helperText,
568
+ error: error,
569
+ required: required,
570
+ disabled: disabled,
571
+ size: size,
572
+ variant: variant,
573
+ clearable: clearable,
574
+ onClear: onClear,
575
+ value: triggerValue,
576
+ onPress: () => setInternalOpen(true),
577
+ triggerStyle: triggerStyle,
578
+ testID: testID
579
+ }), modal]
580
+ });
581
+ };
582
+ exports.TimePicker = TimePicker;
583
+ const styles = _reactNative.StyleSheet.create({
584
+ wheelColumn: {
585
+ width: 64,
586
+ height: PICKER_HEIGHT,
587
+ overflow: 'hidden'
588
+ },
589
+ wheelList: {
590
+ flexGrow: 0,
591
+ height: PICKER_HEIGHT
592
+ },
593
+ wheelItem: {
594
+ height: ITEM_HEIGHT,
595
+ alignItems: 'center',
596
+ justifyContent: 'center'
597
+ },
598
+ wheelA11yLayer: {
599
+ ..._reactNative.StyleSheet.absoluteFill,
600
+ zIndex: 2
601
+ }
602
+ });
603
+ const buildStyles = theme => {
604
+ const sheetShadow = theme.shadows.xl;
605
+ return _reactNative.StyleSheet.create({
606
+ backdrop: {
607
+ flex: 1,
608
+ backgroundColor: theme.colors.background.overlay,
609
+ justifyContent: 'flex-end'
610
+ },
611
+ sheet: {
612
+ backgroundColor: theme.colors.background.elevated,
613
+ borderTopLeftRadius: theme.radius.xl,
614
+ borderTopRightRadius: theme.radius.xl,
615
+ paddingTop: theme.spacing.sm,
616
+ paddingHorizontal: theme.spacing.lg,
617
+ paddingBottom: theme.spacing.xl,
618
+ shadowColor: sheetShadow.shadowColor,
619
+ shadowOffset: sheetShadow.shadowOffset,
620
+ shadowOpacity: sheetShadow.shadowOpacity,
621
+ shadowRadius: sheetShadow.shadowRadius,
622
+ elevation: sheetShadow.elevation
623
+ },
624
+ handle: {
625
+ alignSelf: 'center',
626
+ width: theme.components.timePicker?.handleWidth ?? 36,
627
+ height: theme.components.timePicker?.handleHeight ?? 4,
628
+ borderRadius: theme.radius.full,
629
+ backgroundColor: theme.colors.border.secondary,
630
+ marginBottom: theme.spacing.sm
631
+ },
632
+ title: {
633
+ textAlign: 'center',
634
+ fontSize: theme.typography.fontSize.lg,
635
+ fontWeight: theme.typography.fontWeight.semibold,
636
+ color: theme.colors.text.primary,
637
+ marginBottom: theme.spacing.sm
638
+ },
639
+ summaryWrap: {
640
+ alignItems: 'center',
641
+ marginBottom: theme.spacing.md
642
+ },
643
+ summary: {
644
+ fontSize: theme.typography.fontSize['2xl'],
645
+ fontWeight: theme.typography.fontWeight.bold,
646
+ color: theme.colors.primary,
647
+ letterSpacing: theme.typography.letterSpacing.wide
648
+ },
649
+ wheelsRow: {
650
+ flexDirection: 'row',
651
+ alignItems: 'center',
652
+ justifyContent: 'center',
653
+ height: PICKER_HEIGHT,
654
+ position: 'relative',
655
+ marginBottom: theme.spacing.lg
656
+ },
657
+ selectionBand: {
658
+ position: 'absolute',
659
+ left: 0,
660
+ right: 0,
661
+ top: ITEM_HEIGHT * CENTER_OFFSET,
662
+ height: ITEM_HEIGHT,
663
+ justifyContent: 'space-between'
664
+ },
665
+ bandLine: {
666
+ height: _reactNative.StyleSheet.hairlineWidth * 2,
667
+ backgroundColor: theme.colors.primary,
668
+ opacity: 0.85
669
+ },
670
+ bandLineBottom: {
671
+ // visual rhythm only — same color as top
672
+ },
673
+ separator: {
674
+ fontSize: theme.typography.fontSize['2xl'],
675
+ fontWeight: theme.typography.fontWeight.bold,
676
+ color: theme.colors.text.primary,
677
+ paddingHorizontal: theme.spacing.xs
678
+ },
679
+ spacer: {
680
+ width: theme.spacing.md
681
+ },
682
+ footer: {
683
+ flexDirection: 'row',
684
+ gap: theme.spacing.sm
685
+ },
686
+ footerBtn: {
687
+ flex: 1
688
+ }
689
+ });
690
+ };
691
+ var _default = exports.default = TimePicker;
692
+ //# sourceMappingURL=TimePicker.js.map