@ankhorage/zora 27.7.0 → 27.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +2 -2
  3. package/dist/features/carousel/Carousel.d.ts +8 -0
  4. package/dist/features/carousel/Carousel.d.ts.map +1 -0
  5. package/dist/features/carousel/Carousel.js +203 -0
  6. package/dist/features/carousel/Carousel.js.map +1 -0
  7. package/dist/features/carousel/public.d.ts +3 -0
  8. package/dist/features/carousel/public.d.ts.map +1 -0
  9. package/dist/features/carousel/public.js +2 -0
  10. package/dist/features/carousel/public.js.map +1 -0
  11. package/dist/features/carousel/useCarouselPlayback.d.ts +15 -0
  12. package/dist/features/carousel/useCarouselPlayback.d.ts.map +1 -0
  13. package/dist/features/carousel/useCarouselPlayback.js +74 -0
  14. package/dist/features/carousel/useCarouselPlayback.js.map +1 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/types/carousel.d.ts +52 -0
  20. package/dist/types/carousel.d.ts.map +1 -0
  21. package/dist/types/carousel.js +2 -0
  22. package/dist/types/carousel.js.map +1 -0
  23. package/package.json +1 -1
  24. package/src/features/carousel/Carousel.test.ts +66 -0
  25. package/src/features/carousel/Carousel.tsx +470 -0
  26. package/src/features/carousel/public.ts +2 -0
  27. package/src/features/carousel/useCarouselPlayback.ts +103 -0
  28. package/src/index.ts +2 -0
  29. package/src/types/carousel.ts +60 -0
  30. package/src/webPackageExports.test.ts +57 -8
  31. package/web-dist/chunks/{Accordion-9d3rd7ne.js → Accordion-19zt3dyq.js} +1 -1
  32. package/web-dist/chunks/{Accordion-8j7t77tf.js → Accordion-1j50tne9.js} +5 -5
  33. package/web-dist/chunks/{Accordion-sxzts6bj.js → Accordion-1k7pyxdd.js} +2 -2
  34. package/web-dist/chunks/{Accordion-fbehwpr1.js → Accordion-1ty4zrzd.js} +7 -7
  35. package/web-dist/chunks/{Accordion-r86ce0wj.js → Accordion-291hyjee.js} +4 -4
  36. package/web-dist/chunks/{Accordion-m3xb7z7j.js → Accordion-396cm5m0.js} +8 -8
  37. package/web-dist/chunks/{Accordion-p2f0e4pn.js → Accordion-3dk0s8hz.js} +6 -6
  38. package/web-dist/chunks/{Accordion-260pyaxy.js → Accordion-54417vp7.js} +5 -5
  39. package/web-dist/chunks/{Accordion-5pbvgvqc.js → Accordion-67a2a09x.js} +2 -2
  40. package/web-dist/chunks/{Accordion-j6bs1yfn.js → Accordion-6tfr02mw.js} +2 -2
  41. package/web-dist/chunks/{Accordion-e8dg1z2s.js → Accordion-6y42ws4p.js} +2 -2
  42. package/web-dist/chunks/{Accordion-w0prbwy0.js → Accordion-7j05jjqn.js} +8 -8
  43. package/web-dist/chunks/{Accordion-252dr90x.js → Accordion-7tg3cabd.js} +4 -4
  44. package/web-dist/chunks/{Accordion-8vcs6nz6.js → Accordion-9cpm8x92.js} +1 -1
  45. package/web-dist/chunks/{Accordion-ms1y70gq.js → Accordion-c1btejmf.js} +4 -4
  46. package/web-dist/chunks/{Accordion-yb4as6wc.js → Accordion-db40jsp6.js} +5 -5
  47. package/web-dist/chunks/{Accordion-wx0jp5cn.js → Accordion-dmkygw9c.js} +7 -7
  48. package/web-dist/chunks/{Accordion-vq8zrnwh.js → Accordion-dr8k9txz.js} +4 -4
  49. package/web-dist/chunks/{Accordion-jx9tc6p1.js → Accordion-e8r2qt0n.js} +4 -4
  50. package/web-dist/chunks/{Accordion-tnt1txfq.js → Accordion-ephzqa3t.js} +4 -4
  51. package/web-dist/chunks/{Accordion-4kmh6s2k.js → Accordion-fcpadcrg.js} +2 -2
  52. package/web-dist/chunks/{Accordion-0j4xzcwz.js → Accordion-gaevp89v.js} +3 -3
  53. package/web-dist/chunks/{Accordion-r6zvzrkd.js → Accordion-gwq0xkp9.js} +3 -3
  54. package/web-dist/chunks/{Accordion-9hcbf56f.js → Accordion-h4928ex8.js} +2 -2
  55. package/web-dist/chunks/{Accordion-mrhkw8n6.js → Accordion-hqg1zbxk.js} +6 -4
  56. package/web-dist/chunks/{Accordion-gysa24fk.js → Accordion-j5wsx41j.js} +1 -1
  57. package/web-dist/chunks/{Accordion-wvghkwxx.js → Accordion-jj6sg99e.js} +9 -9
  58. package/web-dist/chunks/{Accordion-7mnan4q4.js → Accordion-jqjnzjmt.js} +6 -6
  59. package/web-dist/chunks/{Accordion-b4yr6yq3.js → Accordion-jsdjgfn2.js} +2 -2
  60. package/web-dist/chunks/{Accordion-8ac6dkcs.js → Accordion-k058095e.js} +1 -1
  61. package/web-dist/chunks/Accordion-kcx57mk5.js +39 -0
  62. package/web-dist/chunks/{Accordion-mpebzjby.js → Accordion-kmbw4fe7.js} +4 -4
  63. package/web-dist/chunks/{Accordion-yrzm02g2.js → Accordion-kn52vs02.js} +5 -5
  64. package/web-dist/chunks/{Accordion-nnhznqgf.js → Accordion-n8dksapd.js} +2 -2
  65. package/web-dist/chunks/{Accordion-tpd1vvy9.js → Accordion-ng79nxzz.js} +1 -38
  66. package/web-dist/chunks/{Accordion-np16p9mh.js → Accordion-psxc0zjs.js} +4 -4
  67. package/web-dist/chunks/{Accordion-4c7hqeg3.js → Accordion-q3wk945k.js} +2 -2
  68. package/web-dist/chunks/{Accordion-t2cvrn0r.js → Accordion-qjp8bp5y.js} +8 -8
  69. package/web-dist/chunks/{Accordion-a8k3cvj0.js → Accordion-qyf0e72g.js} +1 -1
  70. package/web-dist/chunks/{Accordion-rcs75kj4.js → Accordion-r6gwemh9.js} +3 -3
  71. package/web-dist/chunks/{Accordion-hh48jjhk.js → Accordion-rbtgfrn4.js} +7 -7
  72. package/web-dist/chunks/{Accordion-kcca65d8.js → Accordion-rqh7264g.js} +5 -5
  73. package/web-dist/chunks/{Accordion-ew2cebyd.js → Accordion-rxc2p9md.js} +3 -3
  74. package/web-dist/chunks/{Accordion-f2n2zz1x.js → Accordion-scvx38z0.js} +6 -6
  75. package/web-dist/chunks/{Accordion-hf4nfkn0.js → Accordion-vayww2ec.js} +13 -13
  76. package/web-dist/chunks/{Accordion-vzgpdtr2.js → Accordion-wdby2v5r.js} +1 -1
  77. package/web-dist/chunks/{Accordion-7788ybcs.js → Accordion-wswm0zxe.js} +4 -4
  78. package/web-dist/chunks/{Accordion-rwc34cn2.js → Accordion-xjxam647.js} +5 -5
  79. package/web-dist/chunks/{Accordion-c44m1q0m.js → Accordion-xkewtxac.js} +2 -2
  80. package/web-dist/chunks/{Accordion-001ymezm.js → Accordion-y524ph0g.js} +1 -1
  81. package/web-dist/chunks/{Accordion-5z8pbn4z.js → Accordion-y7z4v31b.js} +3 -3
  82. package/web-dist/chunks/{Accordion-6jsea4e0.js → Accordion-yrs9sd97.js} +8 -8
  83. package/web-dist/chunks/{Accordion-jh94mg56.js → Accordion-ytvjnaz3.js} +9 -9
  84. package/web-dist/chunks/{Accordion-s9nbkzky.js → Accordion-zmee9h36.js} +2 -2
  85. package/web-dist/chunks/{Accordion-p7mxkxhs.js → Accordion-zx1qd2tf.js} +9 -9
  86. package/web-dist/components/accordion/Accordion.d.ts +2 -2
  87. package/web-dist/components/accordion/Accordion.dependency-0.d.ts +1 -1
  88. package/web-dist/components/accordion/Accordion.js +11 -10
  89. package/web-dist/components/accordion/Accordion.types-0.d.ts +1 -1
  90. package/web-dist/components/accordion/index.d.ts +2 -2
  91. package/web-dist/components/accordion-item/AccordionItem.d.ts +2 -2
  92. package/web-dist/components/accordion-item/AccordionItem.dependency-0.d.ts +1 -1
  93. package/web-dist/components/accordion-item/AccordionItem.js +11 -10
  94. package/web-dist/components/accordion-item/AccordionItem.types-0.d.ts +1 -1
  95. package/web-dist/components/accordion-item/index.d.ts +2 -2
  96. package/web-dist/components/activity-indicator/ActivityIndicator.js +4 -3
  97. package/web-dist/components/activity-indicator/index.d.ts +2 -2
  98. package/web-dist/components/app-bar/AppBar.d.ts +2 -2
  99. package/web-dist/components/app-bar/AppBar.dependency-0.d.ts +1 -1
  100. package/web-dist/components/app-bar/AppBar.js +17 -16
  101. package/web-dist/components/app-bar/AppBar.types-0.d.ts +2 -2
  102. package/web-dist/components/app-bar/index.d.ts +2 -2
  103. package/web-dist/components/app-header/AppHeader.d.ts +2 -2
  104. package/web-dist/components/app-header/AppHeader.dependency-0.d.ts +2 -2
  105. package/web-dist/components/app-header/AppHeader.dependency-1.d.ts +1 -1
  106. package/web-dist/components/app-header/AppHeader.js +17 -16
  107. package/web-dist/components/app-header/AppHeader.types-0.d.ts +1 -1
  108. package/web-dist/components/app-header/index.d.ts +2 -2
  109. package/web-dist/components/app-shell/AppShell.d.ts +2 -2
  110. package/web-dist/components/app-shell/AppShell.dependency-0.d.ts +1 -1
  111. package/web-dist/components/app-shell/AppShell.js +5 -4
  112. package/web-dist/components/app-shell/AppShell.types-0.d.ts +1 -1
  113. package/web-dist/components/app-shell/index.d.ts +2 -2
  114. package/web-dist/components/auth-screen/AuthScreen.d.ts +2 -2
  115. package/web-dist/components/auth-screen/AuthScreen.dependency-0.d.ts +1 -1
  116. package/web-dist/components/auth-screen/AuthScreen.dependency-2.d.ts +1 -1
  117. package/web-dist/components/auth-screen/AuthScreen.dependency-3.d.ts +25 -0
  118. package/web-dist/components/auth-screen/AuthScreen.dependency-4.d.ts +3 -0
  119. package/web-dist/components/auth-screen/AuthScreen.js +22 -21
  120. package/web-dist/components/auth-screen/AuthScreen.types-0.d.ts +2 -2
  121. package/web-dist/components/auth-screen/index.d.ts +2 -2
  122. package/web-dist/components/avatar/Avatar.d.ts +2 -2
  123. package/web-dist/components/avatar/Avatar.dependency-0.d.ts +1 -1
  124. package/web-dist/components/avatar/Avatar.js +11 -10
  125. package/web-dist/components/avatar/Avatar.types-0.d.ts +2 -2
  126. package/web-dist/components/avatar/index.d.ts +2 -2
  127. package/web-dist/components/avatar-group/AvatarGroup.d.ts +2 -2
  128. package/web-dist/components/avatar-group/AvatarGroup.dependency-1.d.ts +1 -1
  129. package/web-dist/components/avatar-group/AvatarGroup.js +11 -10
  130. package/web-dist/components/avatar-group/AvatarGroup.types-0.d.ts +3 -3
  131. package/web-dist/components/avatar-group/index.d.ts +2 -2
  132. package/web-dist/components/badge/Badge.d.ts +2 -2
  133. package/web-dist/components/badge/Badge.dependency-0.d.ts +1 -1
  134. package/web-dist/components/badge/Badge.js +6 -5
  135. package/web-dist/components/badge/Badge.types-0.d.ts +3 -3
  136. package/web-dist/components/badge/index.d.ts +2 -2
  137. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.d.ts +2 -2
  138. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-0.d.ts +1 -1
  139. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +20 -19
  140. package/web-dist/components/barcode-scanner-view/BarcodeScannerView.types-0.d.ts +1 -1
  141. package/web-dist/components/barcode-scanner-view/index.d.ts +2 -2
  142. package/web-dist/components/bottom-sheet/BottomSheet.d.ts +2 -2
  143. package/web-dist/components/bottom-sheet/BottomSheet.dependency-0.d.ts +1 -1
  144. package/web-dist/components/bottom-sheet/BottomSheet.js +7 -6
  145. package/web-dist/components/bottom-sheet/BottomSheet.types-0.d.ts +1 -1
  146. package/web-dist/components/bottom-sheet/index.d.ts +2 -2
  147. package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +7 -6
  148. package/web-dist/components/bottom-sheet-flat-list/index.d.ts +1 -1
  149. package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +7 -6
  150. package/web-dist/components/bottom-sheet-scroll-view/index.d.ts +1 -1
  151. package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +7 -6
  152. package/web-dist/components/bottom-sheet-section-list/index.d.ts +1 -1
  153. package/web-dist/components/bottom-sheet-view/BottomSheetView.js +7 -6
  154. package/web-dist/components/bottom-sheet-view/index.d.ts +1 -1
  155. package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +7 -6
  156. package/web-dist/components/bottom-sheet-virtualized-list/index.d.ts +1 -1
  157. package/web-dist/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
  158. package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-0.d.ts +1 -1
  159. package/web-dist/components/breadcrumbs/Breadcrumbs.js +14 -13
  160. package/web-dist/components/breadcrumbs/Breadcrumbs.types-0.d.ts +1 -1
  161. package/web-dist/components/breadcrumbs/index.d.ts +2 -2
  162. package/web-dist/components/button/Button.d.ts +2 -2
  163. package/web-dist/components/button/Button.dependency-0.d.ts +1 -1
  164. package/web-dist/components/button/Button.js +12 -11
  165. package/web-dist/components/button/Button.types-0.d.ts +3 -3
  166. package/web-dist/components/button/index.d.ts +2 -2
  167. package/web-dist/components/button-group/ButtonGroup.d.ts +2 -2
  168. package/web-dist/components/button-group/ButtonGroup.dependency-0.d.ts +1 -1
  169. package/web-dist/components/button-group/ButtonGroup.dependency-2.d.ts +1 -1
  170. package/web-dist/components/button-group/ButtonGroup.js +12 -11
  171. package/web-dist/components/button-group/ButtonGroup.types-0.d.ts +2 -2
  172. package/web-dist/components/button-group/index.d.ts +2 -2
  173. package/web-dist/components/calendar/Calendar.d.ts +3 -3
  174. package/web-dist/components/calendar/Calendar.dependency-0.d.ts +1 -1
  175. package/web-dist/components/calendar/Calendar.js +14 -13
  176. package/web-dist/components/calendar/Calendar.types-0.d.ts +1 -1
  177. package/web-dist/components/calendar/Calendar.types-1.d.ts +19 -0
  178. package/web-dist/components/calendar/index.d.ts +2 -2
  179. package/web-dist/components/camera-permission-view/CameraPermissionView.d.ts +2 -2
  180. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-0.d.ts +1 -1
  181. package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-2.d.ts +3 -3
  182. package/web-dist/components/camera-permission-view/CameraPermissionView.js +20 -19
  183. package/web-dist/components/camera-permission-view/CameraPermissionView.types-0.d.ts +2 -2
  184. package/web-dist/components/camera-permission-view/index.d.ts +2 -2
  185. package/web-dist/components/card/Card.d.ts +2 -2
  186. package/web-dist/components/card/Card.dependency-0.d.ts +1 -1
  187. package/web-dist/components/card/Card.js +19 -18
  188. package/web-dist/components/card/Card.types-0.d.ts +1 -1
  189. package/web-dist/components/card/index.d.ts +2 -2
  190. package/web-dist/components/card-back/CardBack.d.ts +2 -2
  191. package/web-dist/components/card-back/CardBack.dependency-0.d.ts +1 -1
  192. package/web-dist/components/card-back/CardBack.js +5 -4
  193. package/web-dist/components/card-back/CardBack.types-0.d.ts +1 -1
  194. package/web-dist/components/card-back/index.d.ts +2 -2
  195. package/web-dist/components/card-hand/CardHand.d.ts +2 -2
  196. package/web-dist/components/card-hand/CardHand.dependency-0.d.ts +1 -1
  197. package/web-dist/components/card-hand/CardHand.js +5 -4
  198. package/web-dist/components/card-hand/CardHand.types-0.d.ts +1 -1
  199. package/web-dist/components/card-hand/index.d.ts +2 -2
  200. package/web-dist/components/carousel/Carousel.d.ts +10 -0
  201. package/web-dist/components/carousel/Carousel.js +483 -0
  202. package/web-dist/components/carousel/Carousel.types-0.d.ts +55 -0
  203. package/web-dist/components/carousel/index.d.ts +2 -0
  204. package/web-dist/components/carousel/index.js +2 -0
  205. package/web-dist/components/chat-list-item/ChatListItem.d.ts +2 -2
  206. package/web-dist/components/chat-list-item/ChatListItem.dependency-1.d.ts +1 -1
  207. package/web-dist/components/chat-list-item/ChatListItem.js +15 -14
  208. package/web-dist/components/chat-list-item/ChatListItem.types-0.d.ts +3 -3
  209. package/web-dist/components/chat-list-item/index.d.ts +2 -2
  210. package/web-dist/components/checkbox/Checkbox.d.ts +2 -2
  211. package/web-dist/components/checkbox/Checkbox.dependency-0.d.ts +1 -1
  212. package/web-dist/components/checkbox/Checkbox.js +11 -10
  213. package/web-dist/components/checkbox/Checkbox.types-0.d.ts +1 -1
  214. package/web-dist/components/checkbox/index.d.ts +2 -2
  215. package/web-dist/components/checkbox-group/CheckboxGroup.d.ts +2 -2
  216. package/web-dist/components/checkbox-group/CheckboxGroup.dependency-0.d.ts +1 -1
  217. package/web-dist/components/checkbox-group/CheckboxGroup.js +11 -10
  218. package/web-dist/components/checkbox-group/CheckboxGroup.types-0.d.ts +1 -1
  219. package/web-dist/components/checkbox-group/index.d.ts +2 -2
  220. package/web-dist/components/chess-board/ChessBoard.d.ts +2 -2
  221. package/web-dist/components/chess-board/ChessBoard.dependency-0.d.ts +1 -1
  222. package/web-dist/components/chess-board/ChessBoard.js +5 -4
  223. package/web-dist/components/chess-board/ChessBoard.types-0.d.ts +1 -1
  224. package/web-dist/components/chess-board/index.d.ts +2 -2
  225. package/web-dist/components/chip/Chip.d.ts +2 -2
  226. package/web-dist/components/chip/Chip.dependency-0.d.ts +1 -1
  227. package/web-dist/components/chip/Chip.js +12 -11
  228. package/web-dist/components/chip/Chip.types-0.d.ts +3 -3
  229. package/web-dist/components/chip/index.d.ts +2 -2
  230. package/web-dist/components/chip-group/ChipGroup.d.ts +2 -2
  231. package/web-dist/components/chip-group/ChipGroup.dependency-0.d.ts +27 -0
  232. package/web-dist/components/chip-group/ChipGroup.dependency-1.d.ts +3 -0
  233. package/web-dist/components/chip-group/ChipGroup.dependency-2.d.ts +3 -0
  234. package/web-dist/components/chip-group/ChipGroup.dependency-3.d.ts +3 -0
  235. package/web-dist/components/chip-group/ChipGroup.js +12 -11
  236. package/web-dist/components/chip-group/ChipGroup.types-0.d.ts +26 -0
  237. package/web-dist/components/chip-group/index.d.ts +2 -2
  238. package/web-dist/components/collection-editor/CollectionEditor.d.ts +2 -2
  239. package/web-dist/components/collection-editor/CollectionEditor.dependency-0.d.ts +1 -1
  240. package/web-dist/components/collection-editor/CollectionEditor.js +19 -18
  241. package/web-dist/components/collection-editor/CollectionEditor.types-0.d.ts +1 -1
  242. package/web-dist/components/collection-editor/index.d.ts +2 -2
  243. package/web-dist/components/color-hue-scale/ColorHueScale.d.ts +2 -2
  244. package/web-dist/components/color-hue-scale/ColorHueScale.dependency-0.d.ts +1 -1
  245. package/web-dist/components/color-hue-scale/ColorHueScale.js +15 -14
  246. package/web-dist/components/color-hue-scale/ColorHueScale.types-0.d.ts +1 -1
  247. package/web-dist/components/color-hue-scale/index.d.ts +2 -2
  248. package/web-dist/components/color-picker/ColorPicker.d.ts +2 -2
  249. package/web-dist/components/color-picker/ColorPicker.dependency-0.d.ts +1 -1
  250. package/web-dist/components/color-picker/ColorPicker.js +15 -14
  251. package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +1 -1
  252. package/web-dist/components/color-picker/index.d.ts +2 -2
  253. package/web-dist/components/color-tone/ColorTone.d.ts +2 -2
  254. package/web-dist/components/color-tone/ColorTone.dependency-0.d.ts +1 -1
  255. package/web-dist/components/color-tone/ColorTone.js +15 -14
  256. package/web-dist/components/color-tone/ColorTone.types-0.d.ts +1 -1
  257. package/web-dist/components/color-tone/index.d.ts +2 -2
  258. package/web-dist/components/color-wheel/ColorWheel.d.ts +2 -2
  259. package/web-dist/components/color-wheel/ColorWheel.dependency-0.d.ts +1 -1
  260. package/web-dist/components/color-wheel/ColorWheel.js +15 -14
  261. package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +1 -1
  262. package/web-dist/components/color-wheel/index.d.ts +2 -2
  263. package/web-dist/components/content-rail/ContentRail.d.ts +2 -2
  264. package/web-dist/components/content-rail/ContentRail.dependency-0.d.ts +1 -1
  265. package/web-dist/components/content-rail/ContentRail.js +13 -12
  266. package/web-dist/components/content-rail/ContentRail.types-0.d.ts +1 -1
  267. package/web-dist/components/content-rail/index.d.ts +2 -2
  268. package/web-dist/components/data-table/DataTable.d.ts +2 -2
  269. package/web-dist/components/data-table/DataTable.dependency-0.d.ts +1 -1
  270. package/web-dist/components/data-table/DataTable.js +25 -24
  271. package/web-dist/components/data-table/DataTable.types-0.d.ts +3 -3
  272. package/web-dist/components/data-table/index.d.ts +2 -2
  273. package/web-dist/components/date-picker/DatePicker.d.ts +2 -2
  274. package/web-dist/components/date-picker/DatePicker.dependency-0.d.ts +1 -1
  275. package/web-dist/components/date-picker/DatePicker.js +18 -17
  276. package/web-dist/components/date-picker/DatePicker.types-0.d.ts +1 -1
  277. package/web-dist/components/date-picker/index.d.ts +2 -2
  278. package/web-dist/components/dialog/Dialog.d.ts +2 -2
  279. package/web-dist/components/dialog/Dialog.dependency-0.d.ts +1 -1
  280. package/web-dist/components/dialog/Dialog.js +10 -9
  281. package/web-dist/components/dialog/Dialog.types-0.d.ts +2 -2
  282. package/web-dist/components/dialog/index.d.ts +2 -2
  283. package/web-dist/components/divider/Divider.d.ts +2 -2
  284. package/web-dist/components/divider/Divider.dependency-0.d.ts +1 -1
  285. package/web-dist/components/divider/Divider.js +5 -4
  286. package/web-dist/components/divider/Divider.types-0.d.ts +1 -1
  287. package/web-dist/components/divider/index.d.ts +2 -2
  288. package/web-dist/components/empty-state/EmptyState.d.ts +2 -2
  289. package/web-dist/components/empty-state/EmptyState.dependency-0.d.ts +1 -1
  290. package/web-dist/components/empty-state/EmptyState.js +20 -19
  291. package/web-dist/components/empty-state/EmptyState.types-0.d.ts +3 -3
  292. package/web-dist/components/empty-state/index.d.ts +2 -2
  293. package/web-dist/components/explorer/Explorer.d.ts +2 -2
  294. package/web-dist/components/explorer/Explorer.dependency-0.d.ts +1 -1
  295. package/web-dist/components/explorer/Explorer.js +12 -11
  296. package/web-dist/components/explorer/Explorer.types-0.d.ts +1 -1
  297. package/web-dist/components/explorer/index.d.ts +2 -2
  298. package/web-dist/components/field/Field.d.ts +1 -1
  299. package/web-dist/components/field/Field.dependency-0.d.ts +1 -1
  300. package/web-dist/components/field/Field.dependency-1.d.ts +1 -1
  301. package/web-dist/components/field/Field.js +11 -10
  302. package/web-dist/components/field/index.d.ts +1 -1
  303. package/web-dist/components/file-explorer/FileExplorer.d.ts +2 -2
  304. package/web-dist/components/file-explorer/FileExplorer.dependency-0.d.ts +1 -1
  305. package/web-dist/components/file-explorer/FileExplorer.js +12 -11
  306. package/web-dist/components/file-explorer/FileExplorer.types-0.d.ts +1 -1
  307. package/web-dist/components/file-explorer/index.d.ts +2 -2
  308. package/web-dist/components/flat-list/FlatList.d.ts +2 -2
  309. package/web-dist/components/flat-list/FlatList.dependency-0.d.ts +1 -1
  310. package/web-dist/components/flat-list/FlatList.js +12 -11
  311. package/web-dist/components/flat-list/FlatList.types-0.d.ts +1 -1
  312. package/web-dist/components/flat-list/index.d.ts +2 -2
  313. package/web-dist/components/forgot-password-form/ForgotPasswordForm.d.ts +2 -2
  314. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-0.d.ts +1 -1
  315. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-2.d.ts +1 -1
  316. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-3.d.ts +25 -0
  317. package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-4.d.ts +3 -0
  318. package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +22 -21
  319. package/web-dist/components/forgot-password-form/ForgotPasswordForm.types-0.d.ts +2 -2
  320. package/web-dist/components/forgot-password-form/index.d.ts +2 -2
  321. package/web-dist/components/form/Form.d.ts +2 -2
  322. package/web-dist/components/form/Form.dependency-0.d.ts +1 -1
  323. package/web-dist/components/form/Form.js +16 -15
  324. package/web-dist/components/form/Form.types-0.d.ts +1 -1
  325. package/web-dist/components/form/index.d.ts +2 -2
  326. package/web-dist/components/form-actions/FormActions.d.ts +2 -2
  327. package/web-dist/components/form-actions/FormActions.dependency-0.d.ts +1 -1
  328. package/web-dist/components/form-actions/FormActions.js +16 -15
  329. package/web-dist/components/form-actions/FormActions.types-0.d.ts +1 -1
  330. package/web-dist/components/form-actions/index.d.ts +2 -2
  331. package/web-dist/components/form-error/FormError.d.ts +2 -2
  332. package/web-dist/components/form-error/FormError.dependency-0.d.ts +1 -1
  333. package/web-dist/components/form-error/FormError.js +16 -15
  334. package/web-dist/components/form-error/FormError.types-0.d.ts +1 -1
  335. package/web-dist/components/form-error/index.d.ts +2 -2
  336. package/web-dist/components/game/Game.d.ts +2 -2
  337. package/web-dist/components/game/Game.dependency-0.d.ts +1 -1
  338. package/web-dist/components/game/Game.js +6 -5
  339. package/web-dist/components/game/Game.types-0.d.ts +1 -1
  340. package/web-dist/components/game/index.d.ts +2 -2
  341. package/web-dist/components/game-entity/GameEntity.d.ts +2 -2
  342. package/web-dist/components/game-entity/GameEntity.dependency-0.d.ts +1 -1
  343. package/web-dist/components/game-entity/GameEntity.js +6 -5
  344. package/web-dist/components/game-entity/GameEntity.types-0.d.ts +1 -1
  345. package/web-dist/components/game-entity/index.d.ts +2 -2
  346. package/web-dist/components/game-field/GameField.d.ts +2 -2
  347. package/web-dist/components/game-field/GameField.dependency-0.d.ts +1 -1
  348. package/web-dist/components/game-field/GameField.js +6 -5
  349. package/web-dist/components/game-field/GameField.types-0.d.ts +1 -1
  350. package/web-dist/components/game-field/index.d.ts +2 -2
  351. package/web-dist/components/game-input-zone/GameInputZone.d.ts +2 -2
  352. package/web-dist/components/game-input-zone/GameInputZone.dependency-0.d.ts +1 -1
  353. package/web-dist/components/game-input-zone/GameInputZone.js +6 -5
  354. package/web-dist/components/game-input-zone/GameInputZone.types-0.d.ts +1 -1
  355. package/web-dist/components/game-input-zone/index.d.ts +2 -2
  356. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.d.ts +2 -2
  357. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-0.d.ts +1 -1
  358. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +6 -5
  359. package/web-dist/components/game-measurement-probe/GameMeasurementProbe.types-0.d.ts +1 -1
  360. package/web-dist/components/game-measurement-probe/index.d.ts +2 -2
  361. package/web-dist/components/game-overlay/GameOverlay.d.ts +2 -2
  362. package/web-dist/components/game-overlay/GameOverlay.dependency-0.d.ts +1 -1
  363. package/web-dist/components/game-overlay/GameOverlay.js +6 -5
  364. package/web-dist/components/game-overlay/GameOverlay.types-0.d.ts +3 -1
  365. package/web-dist/components/game-overlay/index.d.ts +2 -2
  366. package/web-dist/components/gradient/Gradient.d.ts +2 -2
  367. package/web-dist/components/gradient/Gradient.dependency-0.d.ts +1 -1
  368. package/web-dist/components/gradient/Gradient.dependency-2.d.ts +1 -1
  369. package/web-dist/components/gradient/Gradient.js +6 -5
  370. package/web-dist/components/gradient/Gradient.types-0.d.ts +2 -2
  371. package/web-dist/components/gradient/index.d.ts +2 -2
  372. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.d.ts +2 -2
  373. package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +6 -5
  374. package/web-dist/components/gradient-renderer-provider/index.d.ts +2 -2
  375. package/web-dist/components/graph-view/GraphView.d.ts +9 -2
  376. package/web-dist/components/graph-view/GraphView.types-0.d.ts +36 -0
  377. package/web-dist/components/graph-view/index.d.ts +2 -2
  378. package/web-dist/components/grid/Grid.d.ts +2 -2
  379. package/web-dist/components/grid/Grid.dependency-0.d.ts +1 -1
  380. package/web-dist/components/grid/Grid.js +5 -4
  381. package/web-dist/components/grid/Grid.types-0.d.ts +1 -1
  382. package/web-dist/components/grid/index.d.ts +2 -2
  383. package/web-dist/components/grid-interactions/GridInteractions.d.ts +2 -2
  384. package/web-dist/components/grid-interactions/GridInteractions.dependency-0.d.ts +1 -1
  385. package/web-dist/components/grid-interactions/GridInteractions.types-0.d.ts +1 -1
  386. package/web-dist/components/grid-interactions/index.d.ts +2 -2
  387. package/web-dist/components/grid-line-overlay/GridLineOverlay.d.ts +2 -2
  388. package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-0.d.ts +1 -1
  389. package/web-dist/components/grid-line-overlay/GridLineOverlay.js +5 -4
  390. package/web-dist/components/grid-line-overlay/GridLineOverlay.types-0.d.ts +1 -1
  391. package/web-dist/components/grid-line-overlay/index.d.ts +2 -2
  392. package/web-dist/components/grid-ruler/GridRuler.d.ts +2 -2
  393. package/web-dist/components/grid-ruler/GridRuler.dependency-0.d.ts +1 -1
  394. package/web-dist/components/grid-ruler/GridRuler.js +5 -4
  395. package/web-dist/components/grid-ruler/GridRuler.types-0.d.ts +1 -1
  396. package/web-dist/components/grid-ruler/index.d.ts +2 -2
  397. package/web-dist/components/grid-view/GridView.d.ts +2 -2
  398. package/web-dist/components/grid-view/GridView.dependency-0.d.ts +1 -1
  399. package/web-dist/components/grid-view/GridView.types-0.d.ts +1 -1
  400. package/web-dist/components/grid-view/index.d.ts +2 -2
  401. package/web-dist/components/heading/Heading.d.ts +2 -2
  402. package/web-dist/components/heading/Heading.dependency-0.d.ts +1 -1
  403. package/web-dist/components/heading/Heading.js +6 -5
  404. package/web-dist/components/heading/Heading.types-0.d.ts +2 -2
  405. package/web-dist/components/heading/index.d.ts +2 -2
  406. package/web-dist/components/hero/Hero.d.ts +2 -2
  407. package/web-dist/components/hero/Hero.dependency-0.d.ts +1 -1
  408. package/web-dist/components/hero/Hero.js +19 -18
  409. package/web-dist/components/hero/Hero.types-0.d.ts +3 -3
  410. package/web-dist/components/hero/index.d.ts +2 -2
  411. package/web-dist/components/icon/Icon.d.ts +2 -2
  412. package/web-dist/components/icon/Icon.dependency-0.d.ts +1 -1
  413. package/web-dist/components/icon/Icon.js +5 -4
  414. package/web-dist/components/icon/Icon.types-0.d.ts +1 -1
  415. package/web-dist/components/icon/index.d.ts +2 -2
  416. package/web-dist/components/icon-button/IconButton.d.ts +2 -2
  417. package/web-dist/components/icon-button/IconButton.dependency-0.d.ts +1 -1
  418. package/web-dist/components/icon-button/IconButton.js +12 -11
  419. package/web-dist/components/icon-button/IconButton.types-0.d.ts +4 -4
  420. package/web-dist/components/icon-button/index.d.ts +2 -2
  421. package/web-dist/components/image/Image.d.ts +2 -2
  422. package/web-dist/components/image/Image.dependency-0.d.ts +1 -1
  423. package/web-dist/components/image/Image.js +9 -8
  424. package/web-dist/components/image/Image.types-0.d.ts +2 -2
  425. package/web-dist/components/image/index.d.ts +2 -2
  426. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.d.ts +2 -2
  427. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-0.d.ts +1 -1
  428. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +4 -3
  429. package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.types-0.d.ts +1 -1
  430. package/web-dist/components/keyboard-avoiding-view/index.d.ts +2 -2
  431. package/web-dist/components/list/List.d.ts +2 -2
  432. package/web-dist/components/list/List.dependency-0.d.ts +1 -1
  433. package/web-dist/components/list/List.js +12 -11
  434. package/web-dist/components/list/List.types-0.d.ts +25 -1
  435. package/web-dist/components/list/index.d.ts +2 -2
  436. package/web-dist/components/list-item/ListItem.d.ts +2 -2
  437. package/web-dist/components/list-item/ListItem.dependency-0.d.ts +27 -0
  438. package/web-dist/components/list-item/ListItem.dependency-1.d.ts +3 -0
  439. package/web-dist/components/list-item/ListItem.js +12 -11
  440. package/web-dist/components/list-item/ListItem.types-0.d.ts +28 -0
  441. package/web-dist/components/list-item/index.d.ts +2 -2
  442. package/web-dist/components/list-section/ListSection.d.ts +2 -2
  443. package/web-dist/components/list-section/ListSection.dependency-0.d.ts +27 -0
  444. package/web-dist/components/list-section/ListSection.dependency-1.d.ts +3 -0
  445. package/web-dist/components/list-section/ListSection.js +12 -11
  446. package/web-dist/components/list-section/ListSection.types-0.d.ts +50 -0
  447. package/web-dist/components/list-section/index.d.ts +2 -2
  448. package/web-dist/components/matrix-grid/MatrixGrid.d.ts +2 -2
  449. package/web-dist/components/matrix-grid/MatrixGrid.dependency-0.d.ts +1 -1
  450. package/web-dist/components/matrix-grid/MatrixGrid.js +5 -4
  451. package/web-dist/components/matrix-grid/MatrixGrid.types-0.d.ts +2 -2
  452. package/web-dist/components/matrix-grid/index.d.ts +2 -2
  453. package/web-dist/components/media-card/MediaCard.d.ts +2 -2
  454. package/web-dist/components/media-card/MediaCard.dependency-0.d.ts +27 -0
  455. package/web-dist/components/media-card/MediaCard.dependency-1.d.ts +3 -0
  456. package/web-dist/components/media-card/MediaCard.dependency-2.d.ts +1 -0
  457. package/web-dist/components/media-card/MediaCard.js +19 -18
  458. package/web-dist/components/media-card/MediaCard.types-0.d.ts +40 -0
  459. package/web-dist/components/media-card/index.d.ts +2 -2
  460. package/web-dist/components/media-explorer/MediaExplorer.d.ts +2 -2
  461. package/web-dist/components/media-explorer/MediaExplorer.dependency-0.d.ts +1 -1
  462. package/web-dist/components/media-explorer/MediaExplorer.js +12 -11
  463. package/web-dist/components/media-explorer/MediaExplorer.types-0.d.ts +1 -1
  464. package/web-dist/components/media-explorer/index.d.ts +2 -2
  465. package/web-dist/components/message-bubble/MessageBubble.d.ts +2 -2
  466. package/web-dist/components/message-bubble/MessageBubble.dependency-1.d.ts +1 -1
  467. package/web-dist/components/message-bubble/MessageBubble.js +15 -14
  468. package/web-dist/components/message-bubble/MessageBubble.types-0.d.ts +5 -3
  469. package/web-dist/components/message-bubble/index.d.ts +2 -2
  470. package/web-dist/components/metric-card/MetricCard.d.ts +2 -2
  471. package/web-dist/components/metric-card/MetricCard.dependency-0.d.ts +1 -1
  472. package/web-dist/components/metric-card/MetricCard.js +19 -18
  473. package/web-dist/components/metric-card/MetricCard.types-0.d.ts +3 -3
  474. package/web-dist/components/metric-card/index.d.ts +2 -2
  475. package/web-dist/components/missing-element/MissingElement.d.ts +2 -2
  476. package/web-dist/components/missing-element/MissingElement.dependency-0.d.ts +1 -1
  477. package/web-dist/components/missing-element/MissingElement.js +10 -9
  478. package/web-dist/components/missing-element/MissingElement.types-0.d.ts +1 -1
  479. package/web-dist/components/missing-element/index.d.ts +2 -2
  480. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.d.ts +2 -2
  481. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-0.d.ts +1 -1
  482. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-2.d.ts +3 -3
  483. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +22 -21
  484. package/web-dist/components/o-auth-provider-button/OAuthProviderButton.types-0.d.ts +2 -2
  485. package/web-dist/components/o-auth-provider-button/index.d.ts +2 -2
  486. package/web-dist/components/o-auth-provider-list/OAuthProviderList.d.ts +2 -2
  487. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-0.d.ts +1 -1
  488. package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-2.d.ts +3 -3
  489. package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +22 -21
  490. package/web-dist/components/o-auth-provider-list/OAuthProviderList.types-0.d.ts +2 -2
  491. package/web-dist/components/o-auth-provider-list/index.d.ts +2 -2
  492. package/web-dist/components/opening-book/OpeningBook.d.ts +2 -2
  493. package/web-dist/components/opening-book/OpeningBook.dependency-0.d.ts +1 -1
  494. package/web-dist/components/opening-book/OpeningBook.js +5 -4
  495. package/web-dist/components/opening-book/OpeningBook.types-0.d.ts +1 -1
  496. package/web-dist/components/opening-book/index.d.ts +2 -2
  497. package/web-dist/components/otp-form/OtpForm.d.ts +2 -2
  498. package/web-dist/components/otp-form/OtpForm.dependency-0.d.ts +1 -1
  499. package/web-dist/components/otp-form/OtpForm.dependency-2.d.ts +1 -1
  500. package/web-dist/components/otp-form/OtpForm.dependency-3.d.ts +25 -0
  501. package/web-dist/components/otp-form/OtpForm.dependency-4.d.ts +3 -0
  502. package/web-dist/components/otp-form/OtpForm.js +22 -21
  503. package/web-dist/components/otp-form/OtpForm.types-0.d.ts +2 -2
  504. package/web-dist/components/otp-form/index.d.ts +2 -2
  505. package/web-dist/components/pagination/Pagination.d.ts +2 -2
  506. package/web-dist/components/pagination/Pagination.dependency-0.d.ts +1 -1
  507. package/web-dist/components/pagination/Pagination.js +13 -12
  508. package/web-dist/components/pagination/Pagination.types-0.d.ts +1 -1
  509. package/web-dist/components/pagination/index.d.ts +2 -2
  510. package/web-dist/components/palette-item/PaletteItem.d.ts +2 -2
  511. package/web-dist/components/palette-item/PaletteItem.dependency-0.d.ts +1 -1
  512. package/web-dist/components/palette-item/PaletteItem.js +19 -18
  513. package/web-dist/components/palette-item/PaletteItem.types-0.d.ts +1 -1
  514. package/web-dist/components/palette-item/index.d.ts +2 -2
  515. package/web-dist/components/playing-card/PlayingCard.d.ts +2 -2
  516. package/web-dist/components/playing-card/PlayingCard.dependency-0.d.ts +1 -1
  517. package/web-dist/components/playing-card/PlayingCard.js +5 -4
  518. package/web-dist/components/playing-card/PlayingCard.types-0.d.ts +1 -1
  519. package/web-dist/components/playing-card/index.d.ts +2 -2
  520. package/web-dist/components/poker-training-table/PokerTrainingTable.d.ts +2 -2
  521. package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-0.d.ts +1 -1
  522. package/web-dist/components/poker-training-table/PokerTrainingTable.js +5 -4
  523. package/web-dist/components/poker-training-table/PokerTrainingTable.types-0.d.ts +1 -1
  524. package/web-dist/components/poker-training-table/index.d.ts +2 -2
  525. package/web-dist/components/popover-menu/PopoverMenu.d.ts +2 -2
  526. package/web-dist/components/popover-menu/PopoverMenu.dependency-0.d.ts +1 -1
  527. package/web-dist/components/popover-menu/PopoverMenu.js +11 -10
  528. package/web-dist/components/popover-menu/PopoverMenu.types-0.d.ts +1 -1
  529. package/web-dist/components/popover-menu/index.d.ts +2 -2
  530. package/web-dist/components/post-card/PostCard.d.ts +2 -2
  531. package/web-dist/components/post-card/PostCard.dependency-1.d.ts +1 -1
  532. package/web-dist/components/post-card/PostCard.js +19 -18
  533. package/web-dist/components/post-card/PostCard.types-0.d.ts +18 -4
  534. package/web-dist/components/post-card/index.d.ts +2 -2
  535. package/web-dist/components/product-card/ProductCard.d.ts +3 -3
  536. package/web-dist/components/product-card/ProductCard.dependency-0.d.ts +1 -1
  537. package/web-dist/components/product-card/ProductCard.js +19 -18
  538. package/web-dist/components/product-card/ProductCard.types-0.d.ts +1 -1
  539. package/web-dist/components/product-card/index.d.ts +2 -2
  540. package/web-dist/components/progress/Progress.d.ts +2 -2
  541. package/web-dist/components/progress/Progress.dependency-0.d.ts +1 -1
  542. package/web-dist/components/progress/Progress.js +9 -8
  543. package/web-dist/components/progress/Progress.types-0.d.ts +3 -3
  544. package/web-dist/components/progress/index.d.ts +2 -2
  545. package/web-dist/components/progress-ring/ProgressRing.d.ts +2 -2
  546. package/web-dist/components/progress-ring/ProgressRing.dependency-0.d.ts +1 -1
  547. package/web-dist/components/progress-ring/ProgressRing.js +9 -8
  548. package/web-dist/components/progress-ring/ProgressRing.types-0.d.ts +2 -2
  549. package/web-dist/components/progress-ring/index.d.ts +2 -2
  550. package/web-dist/components/radio/Radio.d.ts +2 -2
  551. package/web-dist/components/radio/Radio.dependency-0.d.ts +1 -1
  552. package/web-dist/components/radio/Radio.js +13 -12
  553. package/web-dist/components/radio/Radio.types-0.d.ts +1 -1
  554. package/web-dist/components/radio/index.d.ts +2 -2
  555. package/web-dist/components/radio-group/RadioGroup.d.ts +2 -2
  556. package/web-dist/components/radio-group/RadioGroup.dependency-0.d.ts +1 -1
  557. package/web-dist/components/radio-group/RadioGroup.dependency-2.d.ts +1 -1
  558. package/web-dist/components/radio-group/RadioGroup.js +13 -12
  559. package/web-dist/components/radio-group/RadioGroup.types-0.d.ts +2 -2
  560. package/web-dist/components/radio-group/index.d.ts +2 -2
  561. package/web-dist/components/rating/Rating.d.ts +2 -2
  562. package/web-dist/components/rating/Rating.dependency-0.d.ts +1 -1
  563. package/web-dist/components/rating/Rating.js +8 -7
  564. package/web-dist/components/rating/Rating.types-0.d.ts +3 -3
  565. package/web-dist/components/rating/index.d.ts +2 -2
  566. package/web-dist/components/reader/Reader.d.ts +2 -2
  567. package/web-dist/components/reader/Reader.dependency-0.d.ts +1 -1
  568. package/web-dist/components/reader/Reader.js +20 -19
  569. package/web-dist/components/reader/Reader.types-0.d.ts +1 -1
  570. package/web-dist/components/reader/index.d.ts +2 -2
  571. package/web-dist/components/scan-overlay/ScanOverlay.d.ts +2 -2
  572. package/web-dist/components/scan-overlay/ScanOverlay.dependency-0.d.ts +1 -1
  573. package/web-dist/components/scan-overlay/ScanOverlay.js +20 -19
  574. package/web-dist/components/scan-overlay/ScanOverlay.types-0.d.ts +1 -1
  575. package/web-dist/components/scan-overlay/index.d.ts +2 -2
  576. package/web-dist/components/screen/Screen.d.ts +2 -2
  577. package/web-dist/components/screen/Screen.dependency-0.d.ts +1 -1
  578. package/web-dist/components/screen/Screen.js +5 -4
  579. package/web-dist/components/screen/Screen.types-0.d.ts +1 -1
  580. package/web-dist/components/screen/index.d.ts +2 -2
  581. package/web-dist/components/screen-section/ScreenSection.d.ts +2 -2
  582. package/web-dist/components/screen-section/ScreenSection.dependency-0.d.ts +1 -1
  583. package/web-dist/components/screen-section/ScreenSection.js +9 -8
  584. package/web-dist/components/screen-section/ScreenSection.types-0.d.ts +1 -1
  585. package/web-dist/components/screen-section/index.d.ts +2 -2
  586. package/web-dist/components/scroll-view/ScrollView.d.ts +2 -2
  587. package/web-dist/components/scroll-view/ScrollView.dependency-0.d.ts +1 -1
  588. package/web-dist/components/scroll-view/ScrollView.js +5 -4
  589. package/web-dist/components/scroll-view/ScrollView.types-0.d.ts +1 -1
  590. package/web-dist/components/scroll-view/index.d.ts +2 -2
  591. package/web-dist/components/search-input/SearchInput.d.ts +2 -2
  592. package/web-dist/components/search-input/SearchInput.dependency-0.d.ts +1 -1
  593. package/web-dist/components/search-input/SearchInput.js +14 -13
  594. package/web-dist/components/search-input/SearchInput.types-0.d.ts +2 -2
  595. package/web-dist/components/search-input/index.d.ts +2 -2
  596. package/web-dist/components/section-header/SectionHeader.d.ts +2 -2
  597. package/web-dist/components/section-header/SectionHeader.dependency-0.d.ts +1 -1
  598. package/web-dist/components/section-header/SectionHeader.js +9 -8
  599. package/web-dist/components/section-header/SectionHeader.types-0.d.ts +1 -1
  600. package/web-dist/components/section-header/index.d.ts +2 -2
  601. package/web-dist/components/section-list/SectionList.d.ts +2 -2
  602. package/web-dist/components/section-list/SectionList.dependency-0.d.ts +1 -1
  603. package/web-dist/components/section-list/SectionList.js +12 -11
  604. package/web-dist/components/section-list/SectionList.types-0.d.ts +1 -1
  605. package/web-dist/components/section-list/index.d.ts +2 -2
  606. package/web-dist/components/select/Select.d.ts +2 -2
  607. package/web-dist/components/select/Select.dependency-0.d.ts +1 -1
  608. package/web-dist/components/select/Select.js +15 -14
  609. package/web-dist/components/select/Select.types-0.d.ts +1 -1
  610. package/web-dist/components/select/index.d.ts +2 -2
  611. package/web-dist/components/selectable-item/SelectableItem.d.ts +2 -2
  612. package/web-dist/components/selectable-item/SelectableItem.dependency-0.d.ts +1 -1
  613. package/web-dist/components/selectable-item/SelectableItem.js +4 -3
  614. package/web-dist/components/selectable-item/SelectableItem.types-0.d.ts +1 -1
  615. package/web-dist/components/selectable-item/index.d.ts +2 -2
  616. package/web-dist/components/selection-provider/SelectionProvider.d.ts +2 -2
  617. package/web-dist/components/selection-provider/SelectionProvider.js +4 -3
  618. package/web-dist/components/selection-provider/index.d.ts +2 -2
  619. package/web-dist/components/sign-in-form/SignInForm.d.ts +2 -2
  620. package/web-dist/components/sign-in-form/SignInForm.dependency-0.d.ts +1 -1
  621. package/web-dist/components/sign-in-form/SignInForm.dependency-2.d.ts +1 -1
  622. package/web-dist/components/sign-in-form/SignInForm.dependency-3.d.ts +25 -0
  623. package/web-dist/components/sign-in-form/SignInForm.dependency-4.d.ts +3 -0
  624. package/web-dist/components/sign-in-form/SignInForm.js +22 -21
  625. package/web-dist/components/sign-in-form/SignInForm.types-0.d.ts +2 -2
  626. package/web-dist/components/sign-in-form/index.d.ts +2 -2
  627. package/web-dist/components/sign-up-form/SignUpForm.d.ts +2 -2
  628. package/web-dist/components/sign-up-form/SignUpForm.dependency-0.d.ts +1 -1
  629. package/web-dist/components/sign-up-form/SignUpForm.dependency-2.d.ts +1 -1
  630. package/web-dist/components/sign-up-form/SignUpForm.dependency-3.d.ts +25 -0
  631. package/web-dist/components/sign-up-form/SignUpForm.dependency-4.d.ts +3 -0
  632. package/web-dist/components/sign-up-form/SignUpForm.js +22 -21
  633. package/web-dist/components/sign-up-form/SignUpForm.types-0.d.ts +2 -2
  634. package/web-dist/components/sign-up-form/index.d.ts +2 -2
  635. package/web-dist/components/skeleton/Skeleton.d.ts +2 -2
  636. package/web-dist/components/skeleton/Skeleton.dependency-0.d.ts +1 -1
  637. package/web-dist/components/skeleton/Skeleton.dependency-2.d.ts +1 -1
  638. package/web-dist/components/skeleton/Skeleton.js +22 -21
  639. package/web-dist/components/skeleton/Skeleton.types-0.d.ts +2 -2
  640. package/web-dist/components/skeleton/index.d.ts +2 -2
  641. package/web-dist/components/skeleton-card/SkeletonCard.d.ts +2 -2
  642. package/web-dist/components/skeleton-card/SkeletonCard.dependency-0.d.ts +1 -1
  643. package/web-dist/components/skeleton-card/SkeletonCard.js +22 -21
  644. package/web-dist/components/skeleton-card/SkeletonCard.types-0.d.ts +1 -1
  645. package/web-dist/components/skeleton-card/index.d.ts +2 -2
  646. package/web-dist/components/skeleton-list/SkeletonList.d.ts +2 -2
  647. package/web-dist/components/skeleton-list/SkeletonList.dependency-0.d.ts +1 -1
  648. package/web-dist/components/skeleton-list/SkeletonList.js +22 -21
  649. package/web-dist/components/skeleton-list/SkeletonList.types-0.d.ts +1 -1
  650. package/web-dist/components/skeleton-list/index.d.ts +2 -2
  651. package/web-dist/components/skeleton-text/SkeletonText.d.ts +2 -2
  652. package/web-dist/components/skeleton-text/SkeletonText.dependency-0.d.ts +1 -1
  653. package/web-dist/components/skeleton-text/SkeletonText.dependency-2.d.ts +1 -1
  654. package/web-dist/components/skeleton-text/SkeletonText.js +22 -21
  655. package/web-dist/components/skeleton-text/SkeletonText.types-0.d.ts +2 -2
  656. package/web-dist/components/skeleton-text/index.d.ts +2 -2
  657. package/web-dist/components/spatial-grid/SpatialGrid.d.ts +2 -2
  658. package/web-dist/components/spatial-grid/SpatialGrid.dependency-0.d.ts +1 -1
  659. package/web-dist/components/spatial-grid/SpatialGrid.types-0.d.ts +1 -1
  660. package/web-dist/components/spatial-grid/index.d.ts +2 -2
  661. package/web-dist/components/surface/Surface.d.ts +2 -2
  662. package/web-dist/components/surface/Surface.dependency-0.d.ts +1 -1
  663. package/web-dist/components/surface/Surface.js +6 -5
  664. package/web-dist/components/surface/Surface.types-0.d.ts +1 -1
  665. package/web-dist/components/surface/index.d.ts +2 -2
  666. package/web-dist/components/switch/Switch.d.ts +2 -2
  667. package/web-dist/components/switch/Switch.dependency-0.d.ts +1 -1
  668. package/web-dist/components/switch/Switch.js +6 -5
  669. package/web-dist/components/switch/Switch.types-0.d.ts +1 -1
  670. package/web-dist/components/switch/index.d.ts +2 -2
  671. package/web-dist/components/tab/Tab.d.ts +2 -2
  672. package/web-dist/components/tab/Tab.dependency-0.d.ts +1 -1
  673. package/web-dist/components/tab/Tab.js +6 -5
  674. package/web-dist/components/tab/Tab.types-0.d.ts +1 -1
  675. package/web-dist/components/tab/index.d.ts +2 -2
  676. package/web-dist/components/tab-list/TabList.d.ts +2 -2
  677. package/web-dist/components/tab-list/TabList.dependency-0.d.ts +1 -1
  678. package/web-dist/components/tab-list/TabList.js +6 -5
  679. package/web-dist/components/tab-list/TabList.types-0.d.ts +1 -1
  680. package/web-dist/components/tab-list/index.d.ts +2 -2
  681. package/web-dist/components/tab-panel/TabPanel.d.ts +2 -2
  682. package/web-dist/components/tab-panel/TabPanel.dependency-0.d.ts +1 -1
  683. package/web-dist/components/tab-panel/TabPanel.js +6 -5
  684. package/web-dist/components/tab-panel/TabPanel.types-0.d.ts +1 -1
  685. package/web-dist/components/tab-panel/index.d.ts +2 -2
  686. package/web-dist/components/tabletop-table/TabletopTable.d.ts +2 -2
  687. package/web-dist/components/tabletop-table/TabletopTable.dependency-0.d.ts +1 -1
  688. package/web-dist/components/tabletop-table/TabletopTable.js +5 -4
  689. package/web-dist/components/tabletop-table/TabletopTable.types-0.d.ts +1 -1
  690. package/web-dist/components/tabletop-table/index.d.ts +2 -2
  691. package/web-dist/components/tabs/Tabs.d.ts +2 -2
  692. package/web-dist/components/tabs/Tabs.dependency-0.d.ts +1 -1
  693. package/web-dist/components/tabs/Tabs.js +6 -5
  694. package/web-dist/components/tabs/Tabs.types-0.d.ts +1 -1
  695. package/web-dist/components/tabs/index.d.ts +2 -2
  696. package/web-dist/components/text/Text.d.ts +2 -2
  697. package/web-dist/components/text/Text.dependency-0.d.ts +1 -1
  698. package/web-dist/components/text/Text.js +6 -5
  699. package/web-dist/components/text/Text.types-0.d.ts +2 -2
  700. package/web-dist/components/text/index.d.ts +2 -2
  701. package/web-dist/components/text-input/TextInput.d.ts +2 -2
  702. package/web-dist/components/text-input/TextInput.dependency-0.d.ts +27 -0
  703. package/web-dist/components/text-input/TextInput.dependency-1.d.ts +3 -0
  704. package/web-dist/components/text-input/TextInput.dependency-2.d.ts +3 -0
  705. package/web-dist/components/text-input/TextInput.js +14 -13
  706. package/web-dist/components/text-input/TextInput.types-0.d.ts +17 -0
  707. package/web-dist/components/text-input/index.d.ts +2 -2
  708. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.d.ts +2 -2
  709. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-0.d.ts +1 -1
  710. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-2.d.ts +4 -4
  711. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +12 -11
  712. package/web-dist/components/theme-mode-toggle/ThemeModeToggle.types-0.d.ts +2 -2
  713. package/web-dist/components/theme-mode-toggle/index.d.ts +2 -2
  714. package/web-dist/components/tile-grid/TileGrid.d.ts +2 -2
  715. package/web-dist/components/tile-grid/TileGrid.dependency-0.d.ts +1 -1
  716. package/web-dist/components/tile-grid/TileGrid.types-0.d.ts +1 -1
  717. package/web-dist/components/tile-grid/index.d.ts +2 -2
  718. package/web-dist/components/time-grid/TimeGrid.d.ts +2 -2
  719. package/web-dist/components/time-grid/TimeGrid.dependency-0.d.ts +1 -1
  720. package/web-dist/components/time-grid/TimeGrid.types-0.d.ts +1 -1
  721. package/web-dist/components/time-grid/index.d.ts +2 -2
  722. package/web-dist/components/time-picker/TimePicker.d.ts +2 -2
  723. package/web-dist/components/time-picker/TimePicker.dependency-0.d.ts +1 -1
  724. package/web-dist/components/time-picker/TimePicker.js +17 -16
  725. package/web-dist/components/time-picker/TimePicker.types-0.d.ts +1 -1
  726. package/web-dist/components/time-picker/index.d.ts +2 -2
  727. package/web-dist/components/timeline/Timeline.d.ts +2 -2
  728. package/web-dist/components/timeline/Timeline.dependency-0.d.ts +1 -1
  729. package/web-dist/components/timeline/Timeline.dependency-2.d.ts +2 -2
  730. package/web-dist/components/timeline/Timeline.js +11 -10
  731. package/web-dist/components/timeline/Timeline.types-0.d.ts +3 -3
  732. package/web-dist/components/timeline/index.d.ts +2 -2
  733. package/web-dist/components/toast/Toast.d.ts +2 -2
  734. package/web-dist/components/toast/Toast.dependency-0.d.ts +1 -1
  735. package/web-dist/components/toast/Toast.js +8 -7
  736. package/web-dist/components/toast/Toast.types-0.d.ts +1 -1
  737. package/web-dist/components/toast/index.d.ts +2 -2
  738. package/web-dist/components/toast-provider/ToastProvider.d.ts +2 -2
  739. package/web-dist/components/toast-provider/ToastProvider.js +8 -7
  740. package/web-dist/components/toast-provider/index.d.ts +2 -2
  741. package/web-dist/components/toolbar/Toolbar.d.ts +2 -2
  742. package/web-dist/components/toolbar/Toolbar.dependency-0.d.ts +1 -1
  743. package/web-dist/components/toolbar/Toolbar.js +19 -18
  744. package/web-dist/components/toolbar/Toolbar.types-0.d.ts +1 -1
  745. package/web-dist/components/toolbar/index.d.ts +2 -2
  746. package/web-dist/components/tree-item/TreeItem.d.ts +18 -1
  747. package/web-dist/components/tree-item/TreeItem.dependency-0.d.ts +27 -0
  748. package/web-dist/components/tree-item/TreeItem.dependency-1.d.ts +3 -0
  749. package/web-dist/components/tree-item/TreeItem.js +17 -16
  750. package/web-dist/components/tree-item/index.d.ts +2 -2
  751. package/web-dist/components/tree-view/index.d.ts +2 -2
  752. package/web-dist/components/uploader/Uploader.d.ts +2 -2
  753. package/web-dist/components/uploader/Uploader.dependency-0.d.ts +1 -1
  754. package/web-dist/components/uploader/Uploader.js +22 -21
  755. package/web-dist/components/uploader/Uploader.types-0.d.ts +2 -2
  756. package/web-dist/components/uploader/index.d.ts +2 -2
  757. package/web-dist/components/view/View.d.ts +2 -2
  758. package/web-dist/components/view/View.dependency-0.d.ts +1 -1
  759. package/web-dist/components/view/View.js +5 -4
  760. package/web-dist/components/view/View.types-0.d.ts +1 -1
  761. package/web-dist/components/view/index.d.ts +2 -2
  762. package/web-dist/manifest.json +1659 -1493
  763. package/web-dist/runtime/ZoraProvider.js +11 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 27.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a72113b: Add the reusable React Native and React Native Web `Carousel` with images or arbitrary slide content, fade/slide/none transitions, controls, timing, progress, controlled index, and a public browser artifact.
8
+
9
+ ## 27.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 05cb97a: Preserve private same-module declaration dependencies in standalone web component type artifacts.
14
+
3
15
  ## 27.7.0
4
16
 
5
17
  ### Minor Changes
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # ZORA
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v27.7.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v27.8.0](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: configured](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Provides opinionated React Native and React Native Web UI components, theme primitives, registries, and reader surfaces built on @ankhorage/surface.
9
9
 
@@ -42,7 +42,7 @@ export default function BasicApp() {
42
42
  }
43
43
  ```
44
44
 
45
- This package contains 6 additional examples. See the generated documentation for the complete set.
45
+ This package contains 7 additional examples. See the generated documentation for the complete set.
46
46
 
47
47
  ## Documentation
48
48
 
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { CarouselProps } from '../../types/carousel';
3
+ /***
4
+ * Present images, arbitrary React content, or both as a cross-platform slideshow.
5
+ * A published web artifact exposes the same API without consumer source imports.
6
+ */
7
+ export declare function Carousel({ slides, index, defaultIndex, onIndexChange, autoPlay, paused, loop, intervalMs, transition, enterDurationMs, exitDurationMs, initialScale, animateOnMount, reducedMotion, showProgress, progressHeight, progressTrackColor, progressIndicatorColor, progressTrackStyle, progressIndicatorStyle, showArrows, showIndicators, previousLabel, nextLabel, controlColor, controlBackgroundColor, controlsStyle, activeIndicatorColor, inactiveIndicatorColor, indicatorsStyle, resizeMode, imageStyle, style, renderImage, testID, }: CarouselProps): React.JSX.Element | null;
8
+ //# sourceMappingURL=Carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/features/carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAqC,MAAM,sBAAsB,CAAC;AAI7F;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,KAAK,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,UAAU,EACV,UAAmB,EACnB,eAAsB,EACtB,cAAoB,EACpB,YAAmB,EACnB,cAAsB,EACtB,aAAa,EACb,YAAmB,EACnB,cAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,UAAkB,EAClB,cAAsB,EACtB,aAAgC,EAChC,SAAwB,EACxB,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,UAAoB,EACpB,UAAU,EACV,KAAK,EACL,WAAW,EACX,MAAM,GACP,EAAE,aAAa,4BA6Ff"}
@@ -0,0 +1,203 @@
1
+ import React from 'react';
2
+ import { Animated, Easing, Image, Pressable, StyleSheet, Text, View } from 'react-native';
3
+ import { useZoraTheme } from '../theme/composition/useZoraTheme';
4
+ import { useCarouselPlayback } from './useCarouselPlayback';
5
+ /***
6
+ * Present images, arbitrary React content, or both as a cross-platform slideshow.
7
+ * A published web artifact exposes the same API without consumer source imports.
8
+ */
9
+ export function Carousel({ slides, index, defaultIndex, onIndexChange, autoPlay, paused, loop, intervalMs, transition = 'fade', enterDurationMs = 1200, exitDurationMs = 800, initialScale = 1.06, animateOnMount = false, reducedMotion, showProgress = true, progressHeight = 4, progressTrackColor, progressIndicatorColor, progressTrackStyle, progressIndicatorStyle, showArrows = false, showIndicators = false, previousLabel = 'Previous slide', nextLabel = 'Next slide', controlColor, controlBackgroundColor, controlsStyle, activeIndicatorColor, inactiveIndicatorColor, indicatorsStyle, resizeMode = 'cover', imageStyle, style, renderImage, testID, }) {
10
+ const { theme } = useZoraTheme();
11
+ const [width, setWidth] = React.useState(0);
12
+ const { activeIndex, controlledWithoutHandler, direction, loop: enabledLoop, navigate, progress, shouldReduceMotion, } = useCarouselPlayback({
13
+ slides,
14
+ index,
15
+ defaultIndex,
16
+ onIndexChange,
17
+ autoPlay,
18
+ paused,
19
+ loop,
20
+ intervalMs,
21
+ reducedMotion,
22
+ });
23
+ if (slides.length === 0)
24
+ return null;
25
+ const canPrevious = enabledLoop || activeIndex > 0;
26
+ const canNext = enabledLoop || activeIndex < slides.length - 1;
27
+ const markerColor = activeIndicatorColor ?? theme.colors.primary;
28
+ const idleMarkerColor = inactiveIndicatorColor ?? theme.semantics.neutral.divider;
29
+ return (<View onLayout={(event) => setWidth(event.nativeEvent.layout.width)} testID={testID} style={[{ position: 'relative', overflow: 'hidden', width: '100%', height: '100%' }, style]}>
30
+ {slides.map((slide, slideIndex) => (<CarouselLayer key={slide.key} active={activeIndex === slideIndex} animate={slides.length > 1} animateOnMount={animateOnMount} direction={direction} enterDurationMs={enterDurationMs} exitDurationMs={exitDurationMs} imageStyle={imageStyle} initialScale={initialScale} reducedMotion={shouldReduceMotion} renderImage={renderImage} resizeMode={resizeMode} slide={slide} slideIndex={slideIndex} transition={transition} width={width}/>))}
31
+ <CarouselControls activeIndex={activeIndex} canNext={canNext} canPrevious={canPrevious} controlBackgroundColor={controlBackgroundColor ?? theme.semantics.surface.raised} controlColor={controlColor ?? theme.semantics.content.default} controlledWithoutHandler={controlledWithoutHandler} controlsStyle={controlsStyle} navigate={navigate} nextLabel={nextLabel} previousLabel={previousLabel} show={showArrows && slides.length > 1} testID={testID}/>
32
+ <CarouselIndicators activeIndex={activeIndex} activeColor={markerColor} controlledWithoutHandler={controlledWithoutHandler} idleColor={idleMarkerColor} indicatorsStyle={indicatorsStyle} navigate={navigate} show={showIndicators && slides.length > 1} slides={slides} testID={testID}/>
33
+ <CarouselProgress height={progressHeight} indicatorColor={progressIndicatorColor ?? theme.colors.primary} indicatorStyle={progressIndicatorStyle} progress={progress} show={showProgress && slides.length > 1} testID={testID} trackColor={progressTrackColor ?? theme.semantics.neutral.divider} trackStyle={progressTrackStyle}/>
34
+ </View>);
35
+ }
36
+ /*** Keep departing slides mounted for an animated overlap without unmounting content. */
37
+ function CarouselLayer({ slide, slideIndex, active, animate, animateOnMount, direction, enterDurationMs = 1200, exitDurationMs = 800, initialScale = 1.06, reducedMotion, renderImage, resizeMode, imageStyle, transition, width, }) {
38
+ const [opacity] = React.useState(() => new Animated.Value(active && !animateOnMount ? 1 : 0));
39
+ const [scale] = React.useState(() => new Animated.Value(active && animateOnMount ? initialScale : 1));
40
+ const [offset] = React.useState(() => new Animated.Value(0));
41
+ const hasMounted = React.useRef(false);
42
+ React.useEffect(() => {
43
+ const firstRender = !hasMounted.current;
44
+ hasMounted.current = true;
45
+ if (firstRender && !animateOnMount)
46
+ return;
47
+ opacity.stopAnimation();
48
+ scale.stopAnimation();
49
+ offset.stopAnimation();
50
+ if (!animate || reducedMotion || transition === 'none') {
51
+ opacity.setValue(active ? 1 : 0);
52
+ scale.setValue(1);
53
+ offset.setValue(0);
54
+ return;
55
+ }
56
+ if (transition === 'slide') {
57
+ scale.setValue(1);
58
+ if (active) {
59
+ offset.setValue(direction * width);
60
+ opacity.setValue(1);
61
+ }
62
+ Animated.parallel([
63
+ Animated.timing(offset, {
64
+ toValue: active ? 0 : -direction * width,
65
+ duration: Math.max(0, active ? enterDurationMs : exitDurationMs),
66
+ easing: Easing.bezier(0.4, 0, 0.2, 1),
67
+ useNativeDriver: true,
68
+ }),
69
+ Animated.timing(opacity, {
70
+ toValue: active ? 1 : 0,
71
+ duration: Math.max(0, active ? enterDurationMs : exitDurationMs),
72
+ easing: Easing.linear,
73
+ useNativeDriver: true,
74
+ }),
75
+ ]).start();
76
+ }
77
+ else if (active) {
78
+ opacity.setValue(0);
79
+ scale.setValue(initialScale);
80
+ Animated.parallel([
81
+ Animated.timing(opacity, {
82
+ toValue: 1,
83
+ duration: Math.max(0, enterDurationMs),
84
+ easing: Easing.bezier(0.4, 0, 0.2, 1),
85
+ useNativeDriver: true,
86
+ }),
87
+ Animated.timing(scale, {
88
+ toValue: 1,
89
+ duration: Math.max(0, enterDurationMs),
90
+ easing: Easing.bezier(0.4, 0, 0.2, 1),
91
+ useNativeDriver: true,
92
+ }),
93
+ ]).start();
94
+ }
95
+ else {
96
+ Animated.timing(opacity, {
97
+ toValue: 0,
98
+ duration: Math.max(0, exitDurationMs),
99
+ easing: Easing.bezier(0.4, 0, 0.2, 1),
100
+ useNativeDriver: true,
101
+ }).start();
102
+ }
103
+ return () => {
104
+ opacity.stopAnimation();
105
+ scale.stopAnimation();
106
+ offset.stopAnimation();
107
+ };
108
+ }, [
109
+ active,
110
+ animate,
111
+ animateOnMount,
112
+ direction,
113
+ enterDurationMs,
114
+ exitDurationMs,
115
+ initialScale,
116
+ offset,
117
+ opacity,
118
+ reducedMotion,
119
+ scale,
120
+ transition,
121
+ width,
122
+ ]);
123
+ return (<Animated.View accessibilityElementsHidden={!active} importantForAccessibility={active ? 'auto' : 'no-hide-descendants'} pointerEvents={active ? 'auto' : 'none'} style={[StyleSheet.absoluteFill, { opacity, transform: [{ scale }, { translateX: offset }] }]}>
124
+ {slide.source !== undefined ? (renderImage ? (renderImage(slide, slideIndex)) : (<Image accessibilityLabel={slide.alt} accessible={Boolean(slide.alt)} resizeMode={resizeMode} source={typeof slide.source === 'string' ? { uri: slide.source } : slide.source} style={[StyleSheet.absoluteFill, imageStyle]}/>)) : null}
125
+ {slide.content}
126
+ </Animated.View>);
127
+ }
128
+ /*** Render optional previous/next buttons without coupling the slide content to navigation. */
129
+ function CarouselControls({ activeIndex, canNext, canPrevious, controlBackgroundColor, controlColor, controlledWithoutHandler, controlsStyle, navigate, nextLabel, previousLabel, show, testID, }) {
130
+ if (!show)
131
+ return null;
132
+ const buttonStyle = [styles.control, { backgroundColor: controlBackgroundColor }];
133
+ const labelStyle = { color: controlColor, fontSize: 30 };
134
+ return (<View pointerEvents="box-none" style={[styles.controls, controlsStyle]}>
135
+ <Pressable accessibilityLabel={previousLabel} accessibilityRole="button" disabled={!canPrevious || controlledWithoutHandler} onPress={() => navigate(activeIndex - 1, -1)} style={buttonStyle} testID={testID ? `${testID}-previous` : undefined}>
136
+ <Text style={labelStyle}>{'‹'}</Text>
137
+ </Pressable>
138
+ <Pressable accessibilityLabel={nextLabel} accessibilityRole="button" disabled={!canNext || controlledWithoutHandler} onPress={() => navigate(activeIndex + 1, 1)} style={buttonStyle} testID={testID ? `${testID}-next` : undefined}>
139
+ <Text style={labelStyle}>{'›'}</Text>
140
+ </Pressable>
141
+ </View>);
142
+ }
143
+ /*** Render accessible selection dots for the currently controlled slide. */
144
+ function CarouselIndicators({ activeIndex, activeColor, controlledWithoutHandler, idleColor, indicatorsStyle, navigate, show, slides, testID, }) {
145
+ if (!show)
146
+ return null;
147
+ return (<View pointerEvents="box-none" style={[styles.indicators, indicatorsStyle]}>
148
+ {slides.map((slide, slideIndex) => (<Pressable key={slide.key} accessibilityLabel={`Go to slide ${slideIndex + 1} of ${slides.length}`} accessibilityRole="button" accessibilityState={{ selected: slideIndex === activeIndex }} disabled={controlledWithoutHandler} onPress={() => navigate(slideIndex, slideIndex < activeIndex ? -1 : 1)} style={[
149
+ styles.indicator,
150
+ {
151
+ backgroundColor: slideIndex === activeIndex ? activeColor : idleColor,
152
+ width: slideIndex === activeIndex ? 24 : 8,
153
+ },
154
+ ]} testID={testID ? `${testID}-indicator-${slideIndex}` : undefined}/>))}
155
+ </View>);
156
+ }
157
+ /*** Render an optional linear autoplay timer without adding any required UI to slides. */
158
+ function CarouselProgress({ height, indicatorColor, indicatorStyle, progress, show, testID, trackColor, trackStyle, }) {
159
+ if (!show)
160
+ return null;
161
+ return (<View pointerEvents="none" style={[styles.progress, { height, backgroundColor: trackColor }, trackStyle]} testID={testID ? `${testID}-progress` : undefined}>
162
+ <Animated.View style={[
163
+ {
164
+ height: '100%',
165
+ width: progress.interpolate({ inputRange: [0, 1], outputRange: ['0%', '100%'] }),
166
+ backgroundColor: indicatorColor,
167
+ },
168
+ indicatorStyle,
169
+ ]}/>
170
+ </View>);
171
+ }
172
+ const styles = StyleSheet.create({
173
+ controls: {
174
+ position: 'absolute',
175
+ top: 0,
176
+ bottom: 0,
177
+ left: 14,
178
+ right: 14,
179
+ flexDirection: 'row',
180
+ justifyContent: 'space-between',
181
+ alignItems: 'center',
182
+ },
183
+ control: {
184
+ width: 44,
185
+ height: 44,
186
+ borderRadius: 22,
187
+ justifyContent: 'center',
188
+ alignItems: 'center',
189
+ },
190
+ indicators: {
191
+ position: 'absolute',
192
+ bottom: 24,
193
+ left: 0,
194
+ right: 0,
195
+ flexDirection: 'row',
196
+ gap: 10,
197
+ justifyContent: 'center',
198
+ alignItems: 'center',
199
+ },
200
+ indicator: { height: 8, borderRadius: 8 },
201
+ progress: { position: 'absolute', bottom: 0, left: 0, right: 0, overflow: 'hidden' },
202
+ });
203
+ //# sourceMappingURL=Carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../src/features/carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG1F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,EACvB,MAAM,EACN,KAAK,EACL,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,UAAU,EACV,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,IAAI,EACtB,cAAc,GAAG,GAAG,EACpB,YAAY,GAAG,IAAI,EACnB,cAAc,GAAG,KAAK,EACtB,aAAa,EACb,YAAY,GAAG,IAAI,EACnB,cAAc,GAAG,CAAC,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,GAAG,KAAK,EAClB,cAAc,GAAG,KAAK,EACtB,aAAa,GAAG,gBAAgB,EAChC,SAAS,GAAG,YAAY,EACxB,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,UAAU,GAAG,OAAO,EACpB,UAAU,EACV,KAAK,EACL,WAAW,EACX,MAAM,GACQ;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC5C,MAAM,EACJ,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,IAAI,EAAE,WAAW,EACjB,QAAQ,EACR,QAAQ,EAC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,EAAE,KAAK;QACpB,GAAG,EAAE,EAAE;QACP,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;IACD,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE;IACzC,QAAQ,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE;CACrF,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { Animated, Easing, Image, Pressable, StyleSheet, Text, View } from 'react-native';\n\nimport type { CarouselProps, CarouselSlide, CarouselTransition } from '../../types/carousel';\nimport { useZoraTheme } from '../theme/composition/useZoraTheme';\nimport { useCarouselPlayback } from './useCarouselPlayback';\n\n/***\n * Present images, arbitrary React content, or both as a cross-platform slideshow.\n * A published web artifact exposes the same API without consumer source imports.\n */\nexport function Carousel({\n slides,\n index,\n defaultIndex,\n onIndexChange,\n autoPlay,\n paused,\n loop,\n intervalMs,\n transition = 'fade',\n enterDurationMs = 1200,\n exitDurationMs = 800,\n initialScale = 1.06,\n animateOnMount = false,\n reducedMotion,\n showProgress = true,\n progressHeight = 4,\n progressTrackColor,\n progressIndicatorColor,\n progressTrackStyle,\n progressIndicatorStyle,\n showArrows = false,\n showIndicators = false,\n previousLabel = 'Previous slide',\n nextLabel = 'Next slide',\n controlColor,\n controlBackgroundColor,\n controlsStyle,\n activeIndicatorColor,\n inactiveIndicatorColor,\n indicatorsStyle,\n resizeMode = 'cover',\n imageStyle,\n style,\n renderImage,\n testID,\n}: CarouselProps) {\n const { theme } = useZoraTheme();\n const [width, setWidth] = React.useState(0);\n const {\n activeIndex,\n controlledWithoutHandler,\n direction,\n loop: enabledLoop,\n navigate,\n progress,\n shouldReduceMotion,\n } = useCarouselPlayback({\n slides,\n index,\n defaultIndex,\n onIndexChange,\n autoPlay,\n paused,\n loop,\n intervalMs,\n reducedMotion,\n });\n\n if (slides.length === 0) return null;\n\n const canPrevious = enabledLoop || activeIndex > 0;\n const canNext = enabledLoop || activeIndex < slides.length - 1;\n const markerColor = activeIndicatorColor ?? theme.colors.primary;\n const idleMarkerColor = inactiveIndicatorColor ?? theme.semantics.neutral.divider;\n\n return (\n <View\n onLayout={(event) => setWidth(event.nativeEvent.layout.width)}\n testID={testID}\n style={[{ position: 'relative', overflow: 'hidden', width: '100%', height: '100%' }, style]}\n >\n {slides.map((slide, slideIndex) => (\n <CarouselLayer\n key={slide.key}\n active={activeIndex === slideIndex}\n animate={slides.length > 1}\n animateOnMount={animateOnMount}\n direction={direction}\n enterDurationMs={enterDurationMs}\n exitDurationMs={exitDurationMs}\n imageStyle={imageStyle}\n initialScale={initialScale}\n reducedMotion={shouldReduceMotion}\n renderImage={renderImage}\n resizeMode={resizeMode}\n slide={slide}\n slideIndex={slideIndex}\n transition={transition}\n width={width}\n />\n ))}\n <CarouselControls\n activeIndex={activeIndex}\n canNext={canNext}\n canPrevious={canPrevious}\n controlBackgroundColor={controlBackgroundColor ?? theme.semantics.surface.raised}\n controlColor={controlColor ?? theme.semantics.content.default}\n controlledWithoutHandler={controlledWithoutHandler}\n controlsStyle={controlsStyle}\n navigate={navigate}\n nextLabel={nextLabel}\n previousLabel={previousLabel}\n show={showArrows && slides.length > 1}\n testID={testID}\n />\n <CarouselIndicators\n activeIndex={activeIndex}\n activeColor={markerColor}\n controlledWithoutHandler={controlledWithoutHandler}\n idleColor={idleMarkerColor}\n indicatorsStyle={indicatorsStyle}\n navigate={navigate}\n show={showIndicators && slides.length > 1}\n slides={slides}\n testID={testID}\n />\n <CarouselProgress\n height={progressHeight}\n indicatorColor={progressIndicatorColor ?? theme.colors.primary}\n indicatorStyle={progressIndicatorStyle}\n progress={progress}\n show={showProgress && slides.length > 1}\n testID={testID}\n trackColor={progressTrackColor ?? theme.semantics.neutral.divider}\n trackStyle={progressTrackStyle}\n />\n </View>\n );\n}\n\ninterface CarouselLayerProps {\n readonly enterDurationMs?: CarouselProps['enterDurationMs'];\n readonly exitDurationMs?: CarouselProps['exitDurationMs'];\n readonly imageStyle: CarouselProps['imageStyle'];\n readonly initialScale?: CarouselProps['initialScale'];\n readonly renderImage: CarouselProps['renderImage'];\n readonly resizeMode: CarouselProps['resizeMode'];\n readonly slide: CarouselSlide;\n readonly slideIndex: number;\n readonly active: boolean;\n readonly animate: boolean;\n readonly animateOnMount: boolean;\n readonly direction: 1 | -1;\n readonly width: number;\n readonly transition: CarouselTransition;\n readonly reducedMotion: boolean;\n}\n\n/*** Keep departing slides mounted for an animated overlap without unmounting content. */\nfunction CarouselLayer({\n slide,\n slideIndex,\n active,\n animate,\n animateOnMount,\n direction,\n enterDurationMs = 1200,\n exitDurationMs = 800,\n initialScale = 1.06,\n reducedMotion,\n renderImage,\n resizeMode,\n imageStyle,\n transition,\n width,\n}: CarouselLayerProps) {\n const [opacity] = React.useState(() => new Animated.Value(active && !animateOnMount ? 1 : 0));\n const [scale] = React.useState(\n () => new Animated.Value(active && animateOnMount ? initialScale : 1),\n );\n const [offset] = React.useState(() => new Animated.Value(0));\n const hasMounted = React.useRef(false);\n\n React.useEffect(() => {\n const firstRender = !hasMounted.current;\n hasMounted.current = true;\n if (firstRender && !animateOnMount) return;\n opacity.stopAnimation();\n scale.stopAnimation();\n offset.stopAnimation();\n if (!animate || reducedMotion || transition === 'none') {\n opacity.setValue(active ? 1 : 0);\n scale.setValue(1);\n offset.setValue(0);\n return;\n }\n if (transition === 'slide') {\n scale.setValue(1);\n if (active) {\n offset.setValue(direction * width);\n opacity.setValue(1);\n }\n Animated.parallel([\n Animated.timing(offset, {\n toValue: active ? 0 : -direction * width,\n duration: Math.max(0, active ? enterDurationMs : exitDurationMs),\n easing: Easing.bezier(0.4, 0, 0.2, 1),\n useNativeDriver: true,\n }),\n Animated.timing(opacity, {\n toValue: active ? 1 : 0,\n duration: Math.max(0, active ? enterDurationMs : exitDurationMs),\n easing: Easing.linear,\n useNativeDriver: true,\n }),\n ]).start();\n } else if (active) {\n opacity.setValue(0);\n scale.setValue(initialScale);\n Animated.parallel([\n Animated.timing(opacity, {\n toValue: 1,\n duration: Math.max(0, enterDurationMs),\n easing: Easing.bezier(0.4, 0, 0.2, 1),\n useNativeDriver: true,\n }),\n Animated.timing(scale, {\n toValue: 1,\n duration: Math.max(0, enterDurationMs),\n easing: Easing.bezier(0.4, 0, 0.2, 1),\n useNativeDriver: true,\n }),\n ]).start();\n } else {\n Animated.timing(opacity, {\n toValue: 0,\n duration: Math.max(0, exitDurationMs),\n easing: Easing.bezier(0.4, 0, 0.2, 1),\n useNativeDriver: true,\n }).start();\n }\n return () => {\n opacity.stopAnimation();\n scale.stopAnimation();\n offset.stopAnimation();\n };\n }, [\n active,\n animate,\n animateOnMount,\n direction,\n enterDurationMs,\n exitDurationMs,\n initialScale,\n offset,\n opacity,\n reducedMotion,\n scale,\n transition,\n width,\n ]);\n\n return (\n <Animated.View\n accessibilityElementsHidden={!active}\n importantForAccessibility={active ? 'auto' : 'no-hide-descendants'}\n pointerEvents={active ? 'auto' : 'none'}\n style={[StyleSheet.absoluteFill, { opacity, transform: [{ scale }, { translateX: offset }] }]}\n >\n {slide.source !== undefined ? (\n renderImage ? (\n renderImage(slide, slideIndex)\n ) : (\n <Image\n accessibilityLabel={slide.alt}\n accessible={Boolean(slide.alt)}\n resizeMode={resizeMode}\n source={typeof slide.source === 'string' ? { uri: slide.source } : slide.source}\n style={[StyleSheet.absoluteFill, imageStyle]}\n />\n )\n ) : null}\n {slide.content}\n </Animated.View>\n );\n}\n\ninterface CarouselNavigationProps {\n readonly activeIndex: number;\n readonly navigate: (index: number, direction: 1 | -1) => void;\n readonly controlledWithoutHandler: boolean;\n readonly testID: CarouselProps['testID'];\n}\n\ninterface CarouselControlsProps extends CarouselNavigationProps {\n readonly show: boolean;\n readonly canPrevious: boolean;\n readonly canNext: boolean;\n readonly previousLabel: string;\n readonly nextLabel: string;\n readonly controlColor: string;\n readonly controlBackgroundColor: string;\n readonly controlsStyle: CarouselProps['controlsStyle'];\n}\n\n/*** Render optional previous/next buttons without coupling the slide content to navigation. */\nfunction CarouselControls({\n activeIndex,\n canNext,\n canPrevious,\n controlBackgroundColor,\n controlColor,\n controlledWithoutHandler,\n controlsStyle,\n navigate,\n nextLabel,\n previousLabel,\n show,\n testID,\n}: CarouselControlsProps) {\n if (!show) return null;\n const buttonStyle = [styles.control, { backgroundColor: controlBackgroundColor }];\n const labelStyle = { color: controlColor, fontSize: 30 };\n return (\n <View pointerEvents=\"box-none\" style={[styles.controls, controlsStyle]}>\n <Pressable\n accessibilityLabel={previousLabel}\n accessibilityRole=\"button\"\n disabled={!canPrevious || controlledWithoutHandler}\n onPress={() => navigate(activeIndex - 1, -1)}\n style={buttonStyle}\n testID={testID ? `${testID}-previous` : undefined}\n >\n <Text style={labelStyle}>{'‹'}</Text>\n </Pressable>\n <Pressable\n accessibilityLabel={nextLabel}\n accessibilityRole=\"button\"\n disabled={!canNext || controlledWithoutHandler}\n onPress={() => navigate(activeIndex + 1, 1)}\n style={buttonStyle}\n testID={testID ? `${testID}-next` : undefined}\n >\n <Text style={labelStyle}>{'›'}</Text>\n </Pressable>\n </View>\n );\n}\n\ninterface CarouselIndicatorsProps extends CarouselNavigationProps {\n readonly show: boolean;\n readonly slides: CarouselProps['slides'];\n readonly activeColor: string;\n readonly idleColor: string;\n readonly indicatorsStyle: CarouselProps['indicatorsStyle'];\n}\n\n/*** Render accessible selection dots for the currently controlled slide. */\nfunction CarouselIndicators({\n activeIndex,\n activeColor,\n controlledWithoutHandler,\n idleColor,\n indicatorsStyle,\n navigate,\n show,\n slides,\n testID,\n}: CarouselIndicatorsProps) {\n if (!show) return null;\n return (\n <View pointerEvents=\"box-none\" style={[styles.indicators, indicatorsStyle]}>\n {slides.map((slide, slideIndex) => (\n <Pressable\n key={slide.key}\n accessibilityLabel={`Go to slide ${slideIndex + 1} of ${slides.length}`}\n accessibilityRole=\"button\"\n accessibilityState={{ selected: slideIndex === activeIndex }}\n disabled={controlledWithoutHandler}\n onPress={() => navigate(slideIndex, slideIndex < activeIndex ? -1 : 1)}\n style={[\n styles.indicator,\n {\n backgroundColor: slideIndex === activeIndex ? activeColor : idleColor,\n width: slideIndex === activeIndex ? 24 : 8,\n },\n ]}\n testID={testID ? `${testID}-indicator-${slideIndex}` : undefined}\n />\n ))}\n </View>\n );\n}\n\ninterface CarouselProgressProps {\n readonly show: boolean;\n readonly height: number;\n readonly trackColor: string;\n readonly indicatorColor: string;\n readonly trackStyle: CarouselProps['progressTrackStyle'];\n readonly indicatorStyle: CarouselProps['progressIndicatorStyle'];\n readonly progress: Animated.Value;\n readonly testID: CarouselProps['testID'];\n}\n\n/*** Render an optional linear autoplay timer without adding any required UI to slides. */\nfunction CarouselProgress({\n height,\n indicatorColor,\n indicatorStyle,\n progress,\n show,\n testID,\n trackColor,\n trackStyle,\n}: CarouselProgressProps) {\n if (!show) return null;\n return (\n <View\n pointerEvents=\"none\"\n style={[styles.progress, { height, backgroundColor: trackColor }, trackStyle]}\n testID={testID ? `${testID}-progress` : undefined}\n >\n <Animated.View\n style={[\n {\n height: '100%',\n width: progress.interpolate({ inputRange: [0, 1], outputRange: ['0%', '100%'] }),\n backgroundColor: indicatorColor,\n },\n indicatorStyle,\n ]}\n />\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n controls: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 14,\n right: 14,\n flexDirection: 'row',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n control: {\n width: 44,\n height: 44,\n borderRadius: 22,\n justifyContent: 'center',\n alignItems: 'center',\n },\n indicators: {\n position: 'absolute',\n bottom: 24,\n left: 0,\n right: 0,\n flexDirection: 'row',\n gap: 10,\n justifyContent: 'center',\n alignItems: 'center',\n },\n indicator: { height: 8, borderRadius: 8 },\n progress: { position: 'absolute', bottom: 0, left: 0, right: 0, overflow: 'hidden' },\n});\n"]}
@@ -0,0 +1,3 @@
1
+ export type { CarouselProps, CarouselSlide, CarouselTransition } from '../../types/carousel';
2
+ export { Carousel } from './Carousel';
3
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/carousel/public.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Carousel } from './Carousel';
2
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/carousel/public.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export type { CarouselProps, CarouselSlide, CarouselTransition } from '../../types/carousel';\nexport { Carousel } from './Carousel';\n"]}
@@ -0,0 +1,15 @@
1
+ import { Animated } from 'react-native';
2
+ import type { CarouselProps } from '../../types/carousel';
3
+ /*** Own controlled/uncontrolled slide navigation, autoplay, and progress lifecycle. */
4
+ export declare function useCarouselPlayback({ slides, index, defaultIndex, onIndexChange, autoPlay, paused, loop, intervalMs, reducedMotion, }: CarouselPlaybackOptions): {
5
+ readonly activeIndex: number;
6
+ readonly controlledWithoutHandler: boolean;
7
+ readonly direction: 1 | -1;
8
+ readonly loop: boolean;
9
+ readonly navigate: (target: number, nextDirection: 1 | -1) => void;
10
+ readonly progress: Animated.Value;
11
+ readonly shouldReduceMotion: boolean;
12
+ };
13
+ type CarouselPlaybackOptions = Pick<CarouselProps, 'slides' | 'index' | 'defaultIndex' | 'onIndexChange' | 'autoPlay' | 'paused' | 'loop' | 'intervalMs' | 'reducedMotion'>;
14
+ export {};
15
+ //# sourceMappingURL=useCarouselPlayback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCarouselPlayback.d.ts","sourceRoot":"","sources":["../../../src/features/carousel/useCarouselPlayback.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,QAAQ,EAAU,MAAM,cAAc,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,uFAAuF;AACvF,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,KAAK,EACL,YAAgB,EAChB,aAAa,EACb,QAAe,EACf,MAAc,EACd,IAAW,EACX,UAAiB,EACjB,aAAa,GACd,EAAE,uBAAuB;;;;;gCAcb,MAAM,iBAAiB,CAAC,GAAG,CAAC,CAAC;;;EA0CzC;AAED,KAAK,uBAAuB,GAAG,IAAI,CACjC,aAAa,EACX,QAAQ,GACR,OAAO,GACP,cAAc,GACd,eAAe,GACf,UAAU,GACV,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,eAAe,CAClB,CAAC"}
@@ -0,0 +1,74 @@
1
+ import React from 'react';
2
+ import { AccessibilityInfo, Animated, Easing } from 'react-native';
3
+ /*** Own controlled/uncontrolled slide navigation, autoplay, and progress lifecycle. */
4
+ export function useCarouselPlayback({ slides, index, defaultIndex = 0, onIndexChange, autoPlay = true, paused = false, loop = true, intervalMs = 6000, reducedMotion, }) {
5
+ const [uncontrolledIndex, setUncontrolledIndex] = React.useState(defaultIndex);
6
+ const [direction, setDirection] = React.useState(1);
7
+ const [progress] = React.useState(() => new Animated.Value(0));
8
+ const systemReducedMotion = useSystemReducedMotion();
9
+ const shouldReduceMotion = reducedMotion ?? systemReducedMotion;
10
+ const activeIndex = normalizeIndex(index ?? uncontrolledIndex, slides.length);
11
+ const duration = Math.max(1, intervalMs);
12
+ const controlledWithoutHandler = index !== undefined && onIndexChange === undefined;
13
+ const canAdvance = loop || activeIndex < slides.length - 1;
14
+ const shouldPlay = autoPlay && !paused && slides.length > 1 && canAdvance && !controlledWithoutHandler;
15
+ const navigate = React.useCallback((target, nextDirection) => {
16
+ if (slides.length < 2 || controlledWithoutHandler)
17
+ return;
18
+ const next = loop
19
+ ? (target + slides.length) % slides.length
20
+ : normalizeIndex(target, slides.length);
21
+ if (next === activeIndex)
22
+ return;
23
+ setDirection(nextDirection);
24
+ if (index === undefined)
25
+ setUncontrolledIndex(next);
26
+ onIndexChange?.(next);
27
+ }, [activeIndex, controlledWithoutHandler, index, loop, onIndexChange, slides.length]);
28
+ React.useEffect(() => {
29
+ if (!shouldPlay)
30
+ return;
31
+ const timeout = setTimeout(() => navigate(activeIndex + 1, 1), duration);
32
+ return () => clearTimeout(timeout);
33
+ }, [activeIndex, duration, navigate, shouldPlay]);
34
+ React.useEffect(() => {
35
+ progress.stopAnimation();
36
+ progress.setValue(0);
37
+ if (!shouldPlay || shouldReduceMotion)
38
+ return;
39
+ const animation = Animated.timing(progress, {
40
+ toValue: 1,
41
+ duration,
42
+ easing: Easing.linear,
43
+ useNativeDriver: false,
44
+ });
45
+ animation.start();
46
+ return () => animation.stop();
47
+ }, [activeIndex, duration, progress, shouldPlay, shouldReduceMotion]);
48
+ return {
49
+ activeIndex,
50
+ controlledWithoutHandler,
51
+ direction,
52
+ loop,
53
+ navigate,
54
+ progress,
55
+ shouldReduceMotion,
56
+ };
57
+ }
58
+ /*** Clamp a controlled index whenever the consumer changes the slide collection. */
59
+ function normalizeIndex(value, count) {
60
+ if (count <= 0 || !Number.isFinite(value))
61
+ return 0;
62
+ return Math.min(Math.max(Math.trunc(value), 0), count - 1);
63
+ }
64
+ /*** Observe reduced-motion preferences without adding browser-only imports. */
65
+ function useSystemReducedMotion() {
66
+ const [reduced, setReduced] = React.useState(false);
67
+ React.useEffect(() => {
68
+ void AccessibilityInfo.isReduceMotionEnabled().then(setReduced);
69
+ const listener = AccessibilityInfo.addEventListener('reduceMotionChanged', setReduced);
70
+ return () => listener.remove();
71
+ }, []);
72
+ return reduced;
73
+ }
74
+ //# sourceMappingURL=useCarouselPlayback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCarouselPlayback.js","sourceRoot":"","sources":["../../../src/features/carousel/useCarouselPlayback.ts"],"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","sourcesContent":["import React from 'react';\nimport { AccessibilityInfo, Animated, Easing } from 'react-native';\n\nimport type { CarouselProps } from '../../types/carousel';\n\n/*** Own controlled/uncontrolled slide navigation, autoplay, and progress lifecycle. */\nexport function useCarouselPlayback({\n slides,\n index,\n defaultIndex = 0,\n onIndexChange,\n autoPlay = true,\n paused = false,\n loop = true,\n intervalMs = 6000,\n reducedMotion,\n}: CarouselPlaybackOptions) {\n const [uncontrolledIndex, setUncontrolledIndex] = React.useState(defaultIndex);\n const [direction, setDirection] = React.useState<1 | -1>(1);\n const [progress] = React.useState(() => new Animated.Value(0));\n const systemReducedMotion = useSystemReducedMotion();\n const shouldReduceMotion = reducedMotion ?? systemReducedMotion;\n const activeIndex = normalizeIndex(index ?? uncontrolledIndex, slides.length);\n const duration = Math.max(1, intervalMs);\n const controlledWithoutHandler = index !== undefined && onIndexChange === undefined;\n const canAdvance = loop || activeIndex < slides.length - 1;\n const shouldPlay =\n autoPlay && !paused && slides.length > 1 && canAdvance && !controlledWithoutHandler;\n\n const navigate = React.useCallback(\n (target: number, nextDirection: 1 | -1) => {\n if (slides.length < 2 || controlledWithoutHandler) return;\n const next = loop\n ? (target + slides.length) % slides.length\n : normalizeIndex(target, slides.length);\n if (next === activeIndex) return;\n setDirection(nextDirection);\n if (index === undefined) setUncontrolledIndex(next);\n onIndexChange?.(next);\n },\n [activeIndex, controlledWithoutHandler, index, loop, onIndexChange, slides.length],\n );\n\n React.useEffect(() => {\n if (!shouldPlay) return;\n const timeout = setTimeout(() => navigate(activeIndex + 1, 1), duration);\n return () => clearTimeout(timeout);\n }, [activeIndex, duration, navigate, shouldPlay]);\n\n React.useEffect(() => {\n progress.stopAnimation();\n progress.setValue(0);\n if (!shouldPlay || shouldReduceMotion) return;\n const animation = Animated.timing(progress, {\n toValue: 1,\n duration,\n easing: Easing.linear,\n useNativeDriver: false,\n });\n animation.start();\n return () => animation.stop();\n }, [activeIndex, duration, progress, shouldPlay, shouldReduceMotion]);\n\n return {\n activeIndex,\n controlledWithoutHandler,\n direction,\n loop,\n navigate,\n progress,\n shouldReduceMotion,\n } as const;\n}\n\ntype CarouselPlaybackOptions = Pick<\n CarouselProps,\n | 'slides'\n | 'index'\n | 'defaultIndex'\n | 'onIndexChange'\n | 'autoPlay'\n | 'paused'\n | 'loop'\n | 'intervalMs'\n | 'reducedMotion'\n>;\n\n/*** Clamp a controlled index whenever the consumer changes the slide collection. */\nfunction normalizeIndex(value: number, count: number): number {\n if (count <= 0 || !Number.isFinite(value)) return 0;\n return Math.min(Math.max(Math.trunc(value), 0), count - 1);\n}\n\n/*** Observe reduced-motion preferences without adding browser-only imports. */\nfunction useSystemReducedMotion(): boolean {\n const [reduced, setReduced] = React.useState(false);\n React.useEffect(() => {\n void AccessibilityInfo.isReduceMotionEnabled().then(setReduced);\n const listener = AccessibilityInfo.addEventListener('reduceMotionChanged', setReduced);\n return () => listener.remove();\n }, []);\n return reduced;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export type { AuthoringBindingControlState, AuthoringBindingEditorAdapterProps, AuthoringPropertyControlState, AuthoringPropertyInspectorAdapterProps, AuthoringSelectionAdapterProps, AuthoringSelectionItemState, ThemeEditorAdapterProps, ThemeRecipeFieldControlState, } from './authoring';
2
2
  export { AuthoringBindingEditorAdapter, AuthoringPropertyInspectorAdapter, AuthoringSelectionAdapter, ThemeEditorAdapter, } from './authoring';
3
+ export type { CarouselProps, CarouselSlide, CarouselTransition } from './features/carousel/public';
4
+ export { Carousel } from './features/carousel/public';
3
5
  export type { ColorHueScaleProps, ColorPickerProps, ColorPickerSelection, ColorPickerTab, ColorPickerValue, ColorToneDefinition, ColorToneProps, ColorToneSelection, ColorToneTarget, ColorWheelProps, ColorWheelSelection, } from './features/color/public';
4
6
  export { ColorHueScale, ColorPicker, ColorTone, ColorWheel } from './features/color/public';
5
7
  export type { ReaderColorScheme, ReaderDocumentFormat, ReaderErrorCode, ReaderErrorEvent, ReaderExternalLinkEvent, ReaderLineHeight, ReaderLocationChangeEvent, ReaderNavigationTrigger, ReaderProps, ReaderResolvedSource, ReaderStatus, } from './features/reader/public';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,sCAAsC,EACtC,8BAA8B,EAC9B,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC5F,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,cAAc,cAAc,CAAC;AAC7B,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,4BAA4B,EAC5B,kCAAkC,EAClC,6BAA6B,EAC7B,sCAAsC,EACtC,8BAA8B,EAC9B,2BAA2B,EAC3B,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC5F,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,cAAc,cAAc,CAAC;AAC7B,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export { AuthoringBindingEditorAdapter, AuthoringPropertyInspectorAdapter, AuthoringSelectionAdapter, ThemeEditorAdapter, } from './authoring';
2
+ export { Carousel } from './features/carousel/public';
2
3
  export { ColorHueScale, ColorPicker, ColorTone, ColorWheel } from './features/color/public';
3
4
  export { Reader, resolveReaderProgress } from './features/reader/public';
4
5
  export { ZORA_COMPONENT_REGISTRY } from './features/registry/public';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAcrB,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAc5F,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,cAAc,cAAc,CAAC","sourcesContent":["export type {\n AuthoringBindingControlState,\n AuthoringBindingEditorAdapterProps,\n AuthoringPropertyControlState,\n AuthoringPropertyInspectorAdapterProps,\n AuthoringSelectionAdapterProps,\n AuthoringSelectionItemState,\n ThemeEditorAdapterProps,\n ThemeRecipeFieldControlState,\n} from './authoring';\nexport {\n AuthoringBindingEditorAdapter,\n AuthoringPropertyInspectorAdapter,\n AuthoringSelectionAdapter,\n ThemeEditorAdapter,\n} from './authoring';\nexport type {\n ColorHueScaleProps,\n ColorPickerProps,\n ColorPickerSelection,\n ColorPickerTab,\n ColorPickerValue,\n ColorToneDefinition,\n ColorToneProps,\n ColorToneSelection,\n ColorToneTarget,\n ColorWheelProps,\n ColorWheelSelection,\n} from './features/color/public';\nexport { ColorHueScale, ColorPicker, ColorTone, ColorWheel } from './features/color/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderProps,\n ReaderResolvedSource,\n ReaderStatus,\n} from './features/reader/public';\nexport { Reader, resolveReaderProgress } from './features/reader/public';\nexport { ZORA_COMPONENT_REGISTRY } from './features/registry/public';\nexport * from './readerFree';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AActD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAc5F,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AACrE,cAAc,cAAc,CAAC","sourcesContent":["export type {\n AuthoringBindingControlState,\n AuthoringBindingEditorAdapterProps,\n AuthoringPropertyControlState,\n AuthoringPropertyInspectorAdapterProps,\n AuthoringSelectionAdapterProps,\n AuthoringSelectionItemState,\n ThemeEditorAdapterProps,\n ThemeRecipeFieldControlState,\n} from './authoring';\nexport {\n AuthoringBindingEditorAdapter,\n AuthoringPropertyInspectorAdapter,\n AuthoringSelectionAdapter,\n ThemeEditorAdapter,\n} from './authoring';\nexport type { CarouselProps, CarouselSlide, CarouselTransition } from './features/carousel/public';\nexport { Carousel } from './features/carousel/public';\nexport type {\n ColorHueScaleProps,\n ColorPickerProps,\n ColorPickerSelection,\n ColorPickerTab,\n ColorPickerValue,\n ColorToneDefinition,\n ColorToneProps,\n ColorToneSelection,\n ColorToneTarget,\n ColorWheelProps,\n ColorWheelSelection,\n} from './features/color/public';\nexport { ColorHueScale, ColorPicker, ColorTone, ColorWheel } from './features/color/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderProps,\n ReaderResolvedSource,\n ReaderStatus,\n} from './features/reader/public';\nexport { Reader, resolveReaderProgress } from './features/reader/public';\nexport { ZORA_COMPONENT_REGISTRY } from './features/registry/public';\nexport * from './readerFree';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
@@ -0,0 +1,52 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ImageResizeMode, ImageSourcePropType, ImageStyle, StyleProp, ViewStyle } from 'react-native';
3
+ export type CarouselTransition = 'fade' | 'slide' | 'none';
4
+ /** One presentation frame: an image, arbitrary React content, or both. */
5
+ export interface CarouselSlide {
6
+ key: string;
7
+ source?: string | ImageSourcePropType;
8
+ alt?: string;
9
+ content?: ReactNode;
10
+ }
11
+ /** Configurable cross-platform carousel; the consumer owns slide content. */
12
+ export interface CarouselProps {
13
+ slides: readonly CarouselSlide[];
14
+ /** Controlled index. If omitted, Carousel manages its own position. */
15
+ index?: number;
16
+ defaultIndex?: number;
17
+ onIndexChange?: (index: number) => void;
18
+ autoPlay?: boolean;
19
+ paused?: boolean;
20
+ loop?: boolean;
21
+ intervalMs?: number;
22
+ transition?: CarouselTransition;
23
+ enterDurationMs?: number;
24
+ exitDurationMs?: number;
25
+ initialScale?: number;
26
+ animateOnMount?: boolean;
27
+ /** Overrides the host OS preference when explicitly supplied. */
28
+ reducedMotion?: boolean;
29
+ showProgress?: boolean;
30
+ progressHeight?: number;
31
+ progressTrackColor?: string;
32
+ progressIndicatorColor?: string;
33
+ progressTrackStyle?: StyleProp<ViewStyle>;
34
+ progressIndicatorStyle?: StyleProp<ViewStyle>;
35
+ showArrows?: boolean;
36
+ showIndicators?: boolean;
37
+ previousLabel?: string;
38
+ nextLabel?: string;
39
+ controlColor?: string;
40
+ controlBackgroundColor?: string;
41
+ controlsStyle?: StyleProp<ViewStyle>;
42
+ activeIndicatorColor?: string;
43
+ inactiveIndicatorColor?: string;
44
+ indicatorsStyle?: StyleProp<ViewStyle>;
45
+ resizeMode?: ImageResizeMode;
46
+ imageStyle?: StyleProp<ImageStyle>;
47
+ style?: StyleProp<ViewStyle>;
48
+ /** Enables Next/Image or another consumer-specific image optimization. */
49
+ renderImage?: (slide: CarouselSlide, index: number) => ReactNode;
50
+ testID?: string;
51
+ }
52
+ //# sourceMappingURL=carousel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../src/types/carousel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3D,0EAA0E;AAC1E,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,mBAAmB,CAAC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IACjC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iEAAiE;IACjE,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,kBAAkB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC1C,sBAAsB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACrC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,0EAA0E;IAC1E,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../src/types/carousel.ts"],"names":[],"mappings":"","sourcesContent":["import type { ReactNode } from 'react';\nimport type {\n ImageResizeMode,\n ImageSourcePropType,\n ImageStyle,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nexport type CarouselTransition = 'fade' | 'slide' | 'none';\n\n/** One presentation frame: an image, arbitrary React content, or both. */\nexport interface CarouselSlide {\n key: string;\n source?: string | ImageSourcePropType;\n alt?: string;\n content?: ReactNode;\n}\n\n/** Configurable cross-platform carousel; the consumer owns slide content. */\nexport interface CarouselProps {\n slides: readonly CarouselSlide[];\n /** Controlled index. If omitted, Carousel manages its own position. */\n index?: number;\n defaultIndex?: number;\n onIndexChange?: (index: number) => void;\n autoPlay?: boolean;\n paused?: boolean;\n loop?: boolean;\n intervalMs?: number;\n transition?: CarouselTransition;\n enterDurationMs?: number;\n exitDurationMs?: number;\n initialScale?: number;\n animateOnMount?: boolean;\n /** Overrides the host OS preference when explicitly supplied. */\n reducedMotion?: boolean;\n showProgress?: boolean;\n progressHeight?: number;\n progressTrackColor?: string;\n progressIndicatorColor?: string;\n progressTrackStyle?: StyleProp<ViewStyle>;\n progressIndicatorStyle?: StyleProp<ViewStyle>;\n showArrows?: boolean;\n showIndicators?: boolean;\n previousLabel?: string;\n nextLabel?: string;\n controlColor?: string;\n controlBackgroundColor?: string;\n controlsStyle?: StyleProp<ViewStyle>;\n activeIndicatorColor?: string;\n inactiveIndicatorColor?: string;\n indicatorsStyle?: StyleProp<ViewStyle>;\n resizeMode?: ImageResizeMode;\n imageStyle?: StyleProp<ImageStyle>;\n style?: StyleProp<ViewStyle>;\n /** Enables Next/Image or another consumer-specific image optimization. */\n renderImage?: (slide: CarouselSlide, index: number) => ReactNode;\n testID?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "27.7.0",
4
+ "version": "27.8.0",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {