@ankhorage/zora 15.0.0 → 17.0.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 (952) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +15 -15
  3. package/dist/constants.d.ts +7 -1
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/constants.js +7 -1
  6. package/dist/constants.js.map +1 -1
  7. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  8. package/dist/features/accordion/adapters/inbound/AccordionItem.js +19 -19
  9. package/dist/features/accordion/adapters/inbound/AccordionItem.js.map +1 -1
  10. package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
  11. package/dist/features/app-bar/adapters/inbound/AppBar.js +6 -7
  12. package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
  13. package/dist/features/auth/adapters/inbound/AuthForm.js +3 -3
  14. package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -1
  15. package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +3 -3
  16. package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -1
  17. package/dist/features/auth/adapters/inbound/OAuthProviderList.js +3 -3
  18. package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -1
  19. package/dist/features/auth/adapters/inbound/OtpForm.js +3 -3
  20. package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -1
  21. package/dist/features/auth/adapters/inbound/SignInForm.js +3 -3
  22. package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -1
  23. package/dist/features/auth/adapters/inbound/SignUpForm.js +3 -3
  24. package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -1
  25. package/dist/features/avatar/adapters/inbound/Avatar.js +3 -3
  26. package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -1
  27. package/dist/features/avatar/adapters/inbound/AvatarGroup.js +7 -7
  28. package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -1
  29. package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +3 -3
  30. package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
  31. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  32. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -1
  33. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +5 -5
  34. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -1
  35. package/dist/features/button/adapters/inbound/ButtonGroup.js +3 -3
  36. package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -1
  37. package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +1 -1
  38. package/dist/features/card/adapters/inbound/Card.js +12 -12
  39. package/dist/features/card/adapters/inbound/Card.js.map +1 -1
  40. package/dist/features/card/adapters/inbound/MediaCard.js +21 -21
  41. package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -1
  42. package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -1
  43. package/dist/features/card/adapters/inbound/MetricCard.js +10 -11
  44. package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -1
  45. package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -1
  46. package/dist/features/card/adapters/inbound/PostCard.js +37 -38
  47. package/dist/features/card/adapters/inbound/PostCard.js.map +1 -1
  48. package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -1
  49. package/dist/features/card/adapters/inbound/ProductCard.js +17 -18
  50. package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -1
  51. package/dist/features/card/cardMeta.d.ts +1 -1
  52. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  53. package/dist/features/card/postCardMeta.d.ts +1 -1
  54. package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -1
  55. package/dist/features/chip/adapters/inbound/Chip.js +5 -6
  56. package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
  57. package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -1
  58. package/dist/features/chip/adapters/inbound/ChipGroup.js +3 -3
  59. package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -1
  60. package/dist/features/content-rail/adapters/inbound/ContentRail.d.ts.map +1 -0
  61. package/dist/features/{layout → content-rail}/adapters/inbound/ContentRail.js +9 -10
  62. package/dist/features/content-rail/adapters/inbound/ContentRail.js.map +1 -0
  63. package/dist/features/content-rail/adapters/inbound/ContentRailFlow.d.ts.map +1 -0
  64. package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js.map +1 -0
  65. package/dist/features/content-rail/constants.d.ts +2 -0
  66. package/dist/features/content-rail/constants.d.ts.map +1 -0
  67. package/dist/features/content-rail/constants.js +2 -0
  68. package/dist/features/content-rail/constants.js.map +1 -0
  69. package/dist/features/{layout → content-rail}/contentRailMeta.d.ts +2 -2
  70. package/dist/features/content-rail/contentRailMeta.d.ts.map +1 -0
  71. package/dist/features/content-rail/contentRailMeta.js.map +1 -0
  72. package/dist/features/content-rail/public.d.ts +3 -0
  73. package/dist/features/content-rail/public.d.ts.map +1 -0
  74. package/dist/features/content-rail/public.js +2 -0
  75. package/dist/features/content-rail/public.js.map +1 -0
  76. package/dist/features/content-rail/utils/resolveContentRailItemWidth.d.ts.map +1 -0
  77. package/dist/features/content-rail/utils/resolveContentRailItemWidth.js.map +1 -0
  78. package/dist/features/content-rail/utils/resolveContentRailPhysicalOffset.d.ts.map +1 -0
  79. package/dist/features/content-rail/utils/resolveContentRailPhysicalOffset.js.map +1 -0
  80. package/dist/features/content-rail/utils/resolveContentRailState.d.ts.map +1 -0
  81. package/dist/features/content-rail/utils/resolveContentRailState.js.map +1 -0
  82. package/dist/features/content-rail/utils/useContentRailReducedMotion.d.ts.map +1 -0
  83. package/dist/features/content-rail/utils/useContentRailReducedMotion.js.map +1 -0
  84. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  85. package/dist/features/data-table/adapters/inbound/DataTable.js +32 -32
  86. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  87. package/dist/features/date-picker/composition/DatePickerContent.js +16 -16
  88. package/dist/features/date-picker/composition/DatePickerContent.js.map +1 -1
  89. package/dist/features/date-picker/composition/DatePickerField.js +3 -3
  90. package/dist/features/date-picker/composition/DatePickerField.js.map +1 -1
  91. package/dist/features/dialog/adapters/inbound/Dialog.d.ts +5 -0
  92. package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -0
  93. package/dist/features/dialog/adapters/inbound/Dialog.js +45 -0
  94. package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -0
  95. package/dist/features/dialog/dialogMeta.d.ts +87 -0
  96. package/dist/features/dialog/dialogMeta.d.ts.map +1 -0
  97. package/dist/features/dialog/dialogMeta.js +59 -0
  98. package/dist/features/dialog/dialogMeta.js.map +1 -0
  99. package/dist/features/dialog/public.d.ts +3 -0
  100. package/dist/features/dialog/public.d.ts.map +1 -0
  101. package/dist/features/dialog/public.js +2 -0
  102. package/dist/features/dialog/public.js.map +1 -0
  103. package/dist/features/empty-state/adapters/inbound/EmptyState.js +5 -5
  104. package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
  105. package/dist/features/form/adapters/inbound/Form.js +3 -3
  106. package/dist/features/form/adapters/inbound/Form.js.map +1 -1
  107. package/dist/features/form/adapters/inbound/FormActions.js +4 -4
  108. package/dist/features/form/adapters/inbound/FormActions.js.map +1 -1
  109. package/dist/features/form/adapters/inbound/FormError.js +3 -3
  110. package/dist/features/form/adapters/inbound/FormError.js.map +1 -1
  111. package/dist/features/form/adapters/inbound/FormField.js +3 -3
  112. package/dist/features/form/adapters/inbound/FormField.js.map +1 -1
  113. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -1
  114. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +5 -6
  115. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -1
  116. package/dist/features/form/formFieldMeta.d.ts +1 -1
  117. package/dist/features/form/formFieldMeta.d.ts.map +1 -1
  118. package/dist/features/form/formFieldMeta.js +8 -1
  119. package/dist/features/form/formFieldMeta.js.map +1 -1
  120. package/dist/features/form/radio/adapters/inbound/RadioGroup.js +10 -10
  121. package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
  122. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +1 -1
  123. package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts +4 -0
  124. package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -0
  125. package/dist/{components/search-bar/SearchBar.js → features/form/search-input/adapters/inbound/SearchInput.js} +8 -10
  126. package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -0
  127. package/dist/features/form/search-input/public.d.ts +3 -0
  128. package/dist/features/form/search-input/public.d.ts.map +1 -0
  129. package/dist/features/form/search-input/public.js +2 -0
  130. package/dist/features/form/search-input/public.js.map +1 -0
  131. package/dist/features/form/search-input/searchInputMeta.d.ts +126 -0
  132. package/dist/features/form/search-input/searchInputMeta.d.ts.map +1 -0
  133. package/dist/features/form/search-input/searchInputMeta.js +67 -0
  134. package/dist/features/form/search-input/searchInputMeta.js.map +1 -0
  135. package/dist/features/form/select/adapters/inbound/Select.web.js +3 -3
  136. package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
  137. package/dist/features/gradient/adapters/inbound/Gradient.js +5 -5
  138. package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -1
  139. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  140. package/dist/features/hero/adapters/inbound/Hero.js +12 -12
  141. package/dist/features/hero/adapters/inbound/Hero.js.map +1 -1
  142. package/dist/features/image/adapters/inbound/Image.js +3 -3
  143. package/dist/features/image/adapters/inbound/Image.js.map +1 -1
  144. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  145. package/dist/features/layout/adapters/inbound/AppShell.d.ts +5 -0
  146. package/dist/features/layout/adapters/inbound/AppShell.d.ts.map +1 -0
  147. package/dist/features/layout/adapters/inbound/AppShell.js +20 -0
  148. package/dist/features/layout/adapters/inbound/AppShell.js.map +1 -0
  149. package/dist/features/layout/adapters/inbound/Screen.d.ts +5 -0
  150. package/dist/features/layout/adapters/inbound/Screen.d.ts.map +1 -0
  151. package/dist/features/layout/adapters/inbound/Screen.js +22 -0
  152. package/dist/features/layout/adapters/inbound/Screen.js.map +1 -0
  153. package/dist/features/layout/adapters/inbound/ScreenSection.d.ts +5 -0
  154. package/dist/features/layout/adapters/inbound/ScreenSection.d.ts.map +1 -0
  155. package/dist/features/layout/adapters/inbound/ScreenSection.js +13 -0
  156. package/dist/features/layout/adapters/inbound/ScreenSection.js.map +1 -0
  157. package/dist/features/layout/adapters/inbound/ScrollView.d.ts +5 -0
  158. package/dist/features/layout/adapters/inbound/ScrollView.d.ts.map +1 -0
  159. package/dist/features/layout/adapters/inbound/ScrollView.js +10 -0
  160. package/dist/features/layout/adapters/inbound/ScrollView.js.map +1 -0
  161. package/dist/features/layout/adapters/inbound/View.d.ts +5 -0
  162. package/dist/features/layout/adapters/inbound/View.d.ts.map +1 -0
  163. package/dist/features/layout/adapters/inbound/View.js +10 -0
  164. package/dist/features/layout/adapters/inbound/View.js.map +1 -0
  165. package/dist/{layout/app-shell/meta.d.ts → features/layout/appShellMeta.d.ts} +1 -1
  166. package/dist/features/layout/appShellMeta.d.ts.map +1 -0
  167. package/dist/{layout/app-shell/meta.js → features/layout/appShellMeta.js} +1 -1
  168. package/dist/features/layout/appShellMeta.js.map +1 -0
  169. package/dist/features/layout/constants.d.ts +0 -1
  170. package/dist/features/layout/constants.d.ts.map +1 -1
  171. package/dist/features/layout/constants.js +0 -1
  172. package/dist/features/layout/constants.js.map +1 -1
  173. package/dist/features/layout/gridMeta.d.ts +1 -1
  174. package/dist/features/layout/public.d.ts +6 -6
  175. package/dist/features/layout/public.d.ts.map +1 -1
  176. package/dist/features/layout/public.js +5 -4
  177. package/dist/features/layout/public.js.map +1 -1
  178. package/dist/{layout/screen/meta.d.ts → features/layout/screenMeta.d.ts} +2 -2
  179. package/dist/features/layout/screenMeta.d.ts.map +1 -0
  180. package/dist/{layout/screen/meta.js → features/layout/screenMeta.js} +1 -1
  181. package/dist/features/layout/screenMeta.js.map +1 -0
  182. package/dist/{layout/screen-section/meta.d.ts → features/layout/screenSectionMeta.d.ts} +2 -2
  183. package/dist/features/layout/screenSectionMeta.d.ts.map +1 -0
  184. package/dist/{layout/screen-section/meta.js → features/layout/screenSectionMeta.js} +1 -1
  185. package/dist/features/layout/screenSectionMeta.js.map +1 -0
  186. package/dist/features/layout/{boxMeta.d.ts → scrollViewMeta.d.ts} +8 -15
  187. package/dist/features/layout/scrollViewMeta.d.ts.map +1 -0
  188. package/dist/features/layout/{boxMeta.js → scrollViewMeta.js} +4 -6
  189. package/dist/features/layout/scrollViewMeta.js.map +1 -0
  190. package/dist/features/layout/{stackMeta.d.ts → viewMeta.d.ts} +24 -4
  191. package/dist/features/layout/viewMeta.d.ts.map +1 -0
  192. package/dist/features/layout/{stackMeta.js → viewMeta.js} +8 -3
  193. package/dist/features/layout/viewMeta.js.map +1 -0
  194. package/dist/features/list/flatListMeta.d.ts +1 -1
  195. package/dist/features/list/sectionListMeta.d.ts +1 -1
  196. package/dist/features/missing-element/adapters/inbound/MissingElement.js +5 -5
  197. package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -1
  198. package/dist/features/pagination/adapters/inbound/Pagination.d.ts +5 -0
  199. package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -0
  200. package/dist/features/pagination/adapters/inbound/Pagination.js +43 -0
  201. package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -0
  202. package/dist/features/pagination/paginationMeta.d.ts +118 -0
  203. package/dist/features/pagination/paginationMeta.d.ts.map +1 -0
  204. package/dist/features/pagination/paginationMeta.js +53 -0
  205. package/dist/features/pagination/paginationMeta.js.map +1 -0
  206. package/dist/features/pagination/public.d.ts +3 -0
  207. package/dist/features/pagination/public.d.ts.map +1 -0
  208. package/dist/features/pagination/public.js +2 -0
  209. package/dist/features/pagination/public.js.map +1 -0
  210. package/dist/features/pagination/utils/resolvePaginationPage.d.ts +3 -0
  211. package/dist/features/pagination/utils/resolvePaginationPage.d.ts.map +1 -0
  212. package/dist/features/pagination/utils/resolvePaginationPage.js +7 -0
  213. package/dist/features/pagination/utils/resolvePaginationPage.js.map +1 -0
  214. package/dist/features/pagination/utils/resolvePaginationState.d.ts +17 -0
  215. package/dist/features/pagination/utils/resolvePaginationState.d.ts.map +1 -0
  216. package/dist/features/pagination/utils/resolvePaginationState.js +34 -0
  217. package/dist/features/pagination/utils/resolvePaginationState.js.map +1 -0
  218. package/dist/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.d.ts +1 -1
  219. package/dist/features/palette-item/adapters/inbound/PaletteItem.d.ts.map +1 -0
  220. package/dist/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.js +10 -10
  221. package/dist/features/palette-item/adapters/inbound/PaletteItem.js.map +1 -0
  222. package/dist/features/palette-item/paletteItemMeta.d.ts +9 -0
  223. package/dist/features/palette-item/paletteItemMeta.d.ts.map +1 -0
  224. package/dist/features/palette-item/paletteItemMeta.js +9 -0
  225. package/dist/features/palette-item/paletteItemMeta.js.map +1 -0
  226. package/dist/features/palette-item/public.d.ts +3 -0
  227. package/dist/features/palette-item/public.d.ts.map +1 -0
  228. package/dist/features/palette-item/public.js +2 -0
  229. package/dist/features/palette-item/public.js.map +1 -0
  230. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +2 -2
  231. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -1
  232. package/dist/features/progress/adapters/inbound/Progress.js +4 -4
  233. package/dist/features/progress/adapters/inbound/Progress.js.map +1 -1
  234. package/dist/features/progress/adapters/inbound/ProgressRing.js +10 -10
  235. package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -1
  236. package/dist/features/rating/adapters/inbound/Rating.d.ts +4 -0
  237. package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -0
  238. package/dist/features/rating/adapters/inbound/Rating.js +49 -0
  239. package/dist/features/rating/adapters/inbound/Rating.js.map +1 -0
  240. package/dist/features/rating/public.d.ts +3 -0
  241. package/dist/features/rating/public.d.ts.map +1 -0
  242. package/dist/features/rating/public.js +2 -0
  243. package/dist/features/rating/public.js.map +1 -0
  244. package/dist/features/rating/ratingMeta.d.ts +57 -0
  245. package/dist/features/rating/ratingMeta.d.ts.map +1 -0
  246. package/dist/features/rating/ratingMeta.js +43 -0
  247. package/dist/features/rating/ratingMeta.js.map +1 -0
  248. package/dist/features/rating/utils/resolveRatingSegments.d.ts +9 -0
  249. package/dist/features/rating/utils/resolveRatingSegments.d.ts.map +1 -0
  250. package/dist/features/rating/utils/resolveRatingSegments.js +14 -0
  251. package/dist/features/rating/utils/resolveRatingSegments.js.map +1 -0
  252. package/dist/features/skeleton/adapters/inbound/Skeleton.js +2 -2
  253. package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -1
  254. package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +5 -5
  255. package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -1
  256. package/dist/features/skeleton/adapters/inbound/SkeletonText.js +3 -3
  257. package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -1
  258. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  259. package/dist/features/tabs/adapters/inbound/Tab.d.ts +5 -0
  260. package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -0
  261. package/dist/features/tabs/adapters/inbound/Tab.js +14 -0
  262. package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -0
  263. package/dist/features/tabs/adapters/inbound/TabList.d.ts +4 -0
  264. package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -0
  265. package/dist/features/tabs/adapters/inbound/TabList.js +9 -0
  266. package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -0
  267. package/dist/features/tabs/adapters/inbound/TabPanel.d.ts +4 -0
  268. package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -0
  269. package/dist/features/tabs/adapters/inbound/TabPanel.js +11 -0
  270. package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -0
  271. package/dist/features/tabs/adapters/inbound/Tabs.d.ts +4 -0
  272. package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -0
  273. package/dist/features/tabs/adapters/inbound/Tabs.js +12 -0
  274. package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -0
  275. package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts +3 -0
  276. package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts.map +1 -0
  277. package/dist/features/tabs/composition/TabsInteractionPolicyContext.js +3 -0
  278. package/dist/features/tabs/composition/TabsInteractionPolicyContext.js.map +1 -0
  279. package/dist/features/tabs/public.d.ts +6 -0
  280. package/dist/features/tabs/public.d.ts.map +1 -0
  281. package/dist/features/tabs/public.js +5 -0
  282. package/dist/features/tabs/public.js.map +1 -0
  283. package/dist/features/tabs/tabListMeta.d.ts +9 -0
  284. package/dist/features/tabs/tabListMeta.d.ts.map +1 -0
  285. package/dist/features/tabs/tabListMeta.js +9 -0
  286. package/dist/features/tabs/tabListMeta.js.map +1 -0
  287. package/dist/features/tabs/tabMeta.d.ts +32 -0
  288. package/dist/features/tabs/tabMeta.d.ts.map +1 -0
  289. package/dist/features/tabs/tabMeta.js +14 -0
  290. package/dist/features/tabs/tabMeta.js.map +1 -0
  291. package/dist/features/tabs/tabPanelMeta.d.ts +15 -0
  292. package/dist/features/tabs/tabPanelMeta.d.ts.map +1 -0
  293. package/dist/features/tabs/tabPanelMeta.js +12 -0
  294. package/dist/features/tabs/tabPanelMeta.js.map +1 -0
  295. package/dist/features/tabs/tabsMeta.d.ts +58 -0
  296. package/dist/features/tabs/tabsMeta.d.ts.map +1 -0
  297. package/dist/features/tabs/tabsMeta.js +40 -0
  298. package/dist/features/tabs/tabsMeta.js.map +1 -0
  299. package/dist/features/time-picker/composition/TimePickerContent.js +7 -7
  300. package/dist/features/time-picker/composition/TimePickerContent.js.map +1 -1
  301. package/dist/features/time-picker/composition/TimePickerField.js +3 -3
  302. package/dist/features/time-picker/composition/TimePickerField.js.map +1 -1
  303. package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts +4 -0
  304. package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -0
  305. package/dist/features/toolbar/adapters/inbound/Toolbar.js +14 -0
  306. package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -0
  307. package/dist/features/toolbar/public.d.ts +3 -0
  308. package/dist/features/toolbar/public.d.ts.map +1 -0
  309. package/dist/features/toolbar/public.js +2 -0
  310. package/dist/features/toolbar/public.js.map +1 -0
  311. package/dist/features/toolbar/toolbarMeta.d.ts +29 -0
  312. package/dist/features/toolbar/toolbarMeta.d.ts.map +1 -0
  313. package/dist/features/toolbar/toolbarMeta.js +22 -0
  314. package/dist/features/toolbar/toolbarMeta.js.map +1 -0
  315. package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
  316. package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
  317. package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
  318. package/dist/features/uploader/adapters/inbound/Uploader.js +22 -22
  319. package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
  320. package/dist/index.d.ts +12 -34
  321. package/dist/index.d.ts.map +1 -1
  322. package/dist/index.js +9 -17
  323. package/dist/index.js.map +1 -1
  324. package/dist/metadata/allowedChildren.d.ts +4 -4
  325. package/dist/metadata/allowedChildren.d.ts.map +1 -1
  326. package/dist/metadata/allowedChildren.js +10 -6
  327. package/dist/metadata/allowedChildren.js.map +1 -1
  328. package/dist/metadata/bindableComponentMeta.d.ts +2 -2
  329. package/dist/metadata/componentMeta.d.ts.map +1 -1
  330. package/dist/metadata/componentMeta.js +23 -31
  331. package/dist/metadata/componentMeta.js.map +1 -1
  332. package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +1 -1
  333. package/dist/patterns/chat-list-item/ChatListItem.js +22 -23
  334. package/dist/patterns/chat-list-item/ChatListItem.js.map +1 -1
  335. package/dist/patterns/collection-editor/CollectionEditor.js +12 -12
  336. package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
  337. package/dist/patterns/confirm-dialog/ConfirmDialog.js +5 -5
  338. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
  339. package/dist/patterns/filter-bar/FilterBar.d.ts.map +1 -1
  340. package/dist/patterns/filter-bar/FilterBar.js +6 -7
  341. package/dist/patterns/filter-bar/FilterBar.js.map +1 -1
  342. package/dist/patterns/inspector-field/InspectorField.js +5 -5
  343. package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
  344. package/dist/patterns/list/List.d.ts.map +1 -1
  345. package/dist/patterns/list/List.js +6 -7
  346. package/dist/patterns/list/List.js.map +1 -1
  347. package/dist/patterns/list/ListRow.d.ts.map +1 -1
  348. package/dist/patterns/list/ListRow.js +16 -17
  349. package/dist/patterns/list/ListRow.js.map +1 -1
  350. package/dist/patterns/list/ListSection.js +3 -3
  351. package/dist/patterns/list/ListSection.js.map +1 -1
  352. package/dist/patterns/message-bubble/MessageBubble.d.ts.map +1 -1
  353. package/dist/patterns/message-bubble/MessageBubble.js +21 -20
  354. package/dist/patterns/message-bubble/MessageBubble.js.map +1 -1
  355. package/dist/patterns/message-bubble/meta.d.ts +1 -1
  356. package/dist/patterns/notice/Notice.js +5 -5
  357. package/dist/patterns/notice/Notice.js.map +1 -1
  358. package/dist/patterns/notice/meta.d.ts +1 -1
  359. package/dist/patterns/panel/meta.d.ts +1 -1
  360. package/dist/patterns/reader/ReaderSurface.d.ts.map +1 -1
  361. package/dist/patterns/reader/ReaderSurface.js +18 -19
  362. package/dist/patterns/reader/ReaderSurface.js.map +1 -1
  363. package/dist/patterns/reader/meta.d.ts +2 -2
  364. package/dist/patterns/scanner/BarcodeScannerView.js +7 -7
  365. package/dist/patterns/scanner/BarcodeScannerView.js.map +1 -1
  366. package/dist/patterns/scanner/CameraPermissionView.js +5 -5
  367. package/dist/patterns/scanner/CameraPermissionView.js.map +1 -1
  368. package/dist/patterns/scanner/ScanOverlay.js +8 -8
  369. package/dist/patterns/scanner/ScanOverlay.js.map +1 -1
  370. package/dist/patterns/scanner/meta.d.ts +2 -2
  371. package/dist/patterns/section-header/SectionHeader.js +8 -8
  372. package/dist/patterns/section-header/SectionHeader.js.map +1 -1
  373. package/dist/patterns/switch-field/SwitchField.d.ts +1 -1
  374. package/dist/patterns/switch-field/SwitchField.js +3 -3
  375. package/dist/patterns/switch-field/SwitchField.js.map +1 -1
  376. package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +1 -1
  377. package/dist/patterns/theme-composer/ThemeComposer.js +33 -33
  378. package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
  379. package/dist/patterns/timeline/Timeline.d.ts.map +1 -1
  380. package/dist/patterns/timeline/Timeline.js +14 -15
  381. package/dist/patterns/timeline/Timeline.js.map +1 -1
  382. package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
  383. package/dist/patterns/tree-view/TreeItem.js +9 -9
  384. package/dist/patterns/tree-view/TreeItem.js.map +1 -1
  385. package/dist/patterns/tree-view/TreeView.js +3 -3
  386. package/dist/patterns/tree-view/TreeView.js.map +1 -1
  387. package/dist/registry.d.ts.map +1 -1
  388. package/dist/registry.js +16 -32
  389. package/dist/registry.js.map +1 -1
  390. package/dist/types/button-group.d.ts +2 -2
  391. package/dist/types/button-group.d.ts.map +1 -1
  392. package/dist/types/button-group.js.map +1 -1
  393. package/dist/types/dialog.d.ts +14 -0
  394. package/dist/types/dialog.d.ts.map +1 -0
  395. package/dist/types/dialog.js +2 -0
  396. package/dist/types/dialog.js.map +1 -0
  397. package/dist/types/gradient.d.ts +6 -6
  398. package/dist/types/gradient.d.ts.map +1 -1
  399. package/dist/types/gradient.js.map +1 -1
  400. package/dist/types/layout.d.ts +22 -4
  401. package/dist/types/layout.d.ts.map +1 -1
  402. package/dist/types/layout.js.map +1 -1
  403. package/dist/types/pagination.d.ts +16 -0
  404. package/dist/types/pagination.d.ts.map +1 -0
  405. package/dist/types/pagination.js +2 -0
  406. package/dist/types/pagination.js.map +1 -0
  407. package/dist/types/palette-item.d.ts +13 -0
  408. package/dist/types/palette-item.d.ts.map +1 -0
  409. package/dist/types/palette-item.js +2 -0
  410. package/dist/types/palette-item.js.map +1 -0
  411. package/dist/types/rating.d.ts +9 -0
  412. package/dist/types/rating.d.ts.map +1 -0
  413. package/dist/types/rating.js +2 -0
  414. package/dist/types/rating.js.map +1 -0
  415. package/dist/types/search-input.d.ts +14 -0
  416. package/dist/types/search-input.d.ts.map +1 -0
  417. package/dist/types/search-input.js +2 -0
  418. package/dist/types/search-input.js.map +1 -0
  419. package/dist/types/skeleton.d.ts +5 -5
  420. package/dist/types/skeleton.d.ts.map +1 -1
  421. package/dist/types/skeleton.js.map +1 -1
  422. package/dist/types/tabs.d.ts +21 -0
  423. package/dist/types/tabs.d.ts.map +1 -0
  424. package/dist/types/tabs.js +2 -0
  425. package/dist/types/tabs.js.map +1 -0
  426. package/dist/types/toolbar.d.ts +8 -0
  427. package/dist/types/toolbar.d.ts.map +1 -0
  428. package/dist/types/toolbar.js +2 -0
  429. package/dist/types/toolbar.js.map +1 -0
  430. package/package.json +2 -2
  431. package/src/audit.test.ts +10 -53
  432. package/src/constants.ts +7 -1
  433. package/src/expo57Migration.test.ts +4 -3
  434. package/src/featureManifest.test.ts +31 -2
  435. package/src/features/accordion/adapters/inbound/AccordionItem.tsx +19 -19
  436. package/src/features/app-bar/adapters/inbound/AppBar.tsx +6 -7
  437. package/src/features/auth/adapters/inbound/AuthForm.tsx +3 -3
  438. package/src/features/auth/adapters/inbound/ForgotPasswordForm.tsx +3 -3
  439. package/src/features/auth/adapters/inbound/OAuthProviderList.tsx +3 -3
  440. package/src/features/auth/adapters/inbound/OtpForm.tsx +3 -3
  441. package/src/features/auth/adapters/inbound/SignInForm.tsx +3 -3
  442. package/src/features/auth/adapters/inbound/SignUpForm.tsx +3 -3
  443. package/src/features/avatar/adapters/inbound/Avatar.tsx +3 -3
  444. package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +7 -7
  445. package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +3 -3
  446. package/src/features/bottom-sheet/public.test.ts +1 -1
  447. package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +5 -5
  448. package/src/features/button/adapters/inbound/ButtonGroup.tsx +3 -3
  449. package/src/features/card/adapters/inbound/Card.tsx +12 -12
  450. package/src/features/card/adapters/inbound/MediaCard.tsx +21 -21
  451. package/src/features/card/adapters/inbound/MetricCard.tsx +10 -11
  452. package/src/features/card/adapters/inbound/PostCard.tsx +37 -38
  453. package/src/features/card/adapters/inbound/ProductCard.tsx +17 -18
  454. package/src/features/chip/adapters/inbound/Chip.tsx +5 -6
  455. package/src/features/chip/adapters/inbound/ChipGroup.tsx +3 -3
  456. package/src/features/{layout → content-rail}/adapters/inbound/ContentRail.test.ts +3 -1
  457. package/src/features/{layout → content-rail}/adapters/inbound/ContentRail.tsx +9 -10
  458. package/src/features/content-rail/constants.ts +1 -0
  459. package/src/features/content-rail/public.ts +10 -0
  460. package/src/features/data-table/adapters/inbound/DataTable.tsx +32 -32
  461. package/src/features/date-picker/composition/DatePickerContent.tsx +16 -16
  462. package/src/features/date-picker/composition/DatePickerField.tsx +3 -3
  463. package/src/features/dialog/adapters/inbound/Dialog.tsx +70 -0
  464. package/src/features/dialog/dialogMeta.ts +60 -0
  465. package/src/features/dialog/public.ts +2 -0
  466. package/src/features/empty-state/adapters/inbound/EmptyState.tsx +5 -5
  467. package/src/features/form/adapters/inbound/Form.tsx +3 -3
  468. package/src/features/form/adapters/inbound/FormActions.tsx +4 -4
  469. package/src/features/form/adapters/inbound/FormError.tsx +3 -3
  470. package/src/features/form/adapters/inbound/FormField.tsx +3 -3
  471. package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +5 -6
  472. package/src/features/form/formFieldMeta.ts +8 -1
  473. package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +10 -10
  474. package/src/{components/search-bar/SearchBar.tsx → features/form/search-input/adapters/inbound/SearchInput.tsx} +10 -15
  475. package/src/features/form/search-input/public.ts +2 -0
  476. package/src/features/form/search-input/searchInputMeta.ts +68 -0
  477. package/src/features/form/select/adapters/inbound/Select.web.tsx +3 -3
  478. package/src/features/gradient/adapters/inbound/Gradient.tsx +5 -5
  479. package/src/features/hero/adapters/inbound/Hero.tsx +12 -12
  480. package/src/features/icon/utils/meta.test.ts +2 -3
  481. package/src/features/image/adapters/inbound/Image.tsx +3 -3
  482. package/src/features/layout/adapters/inbound/AppShell.test.ts +24 -0
  483. package/src/features/layout/adapters/inbound/AppShell.tsx +44 -0
  484. package/src/features/layout/adapters/inbound/Screen.tsx +50 -0
  485. package/src/{layout/screen-section → features/layout/adapters/inbound}/ScreenSection.tsx +7 -11
  486. package/src/features/layout/adapters/inbound/ScrollView.tsx +18 -0
  487. package/src/features/layout/adapters/inbound/View.tsx +18 -0
  488. package/src/features/layout/constants.ts +0 -2
  489. package/src/features/layout/public.test.ts +55 -0
  490. package/src/features/layout/public.ts +10 -16
  491. package/src/features/layout/{containerMeta.ts → scrollViewMeta.ts} +6 -3
  492. package/src/features/layout/{stackMeta.ts → viewMeta.ts} +7 -2
  493. package/src/features/missing-element/adapters/inbound/MissingElement.tsx +5 -5
  494. package/src/features/pagination/adapters/inbound/Pagination.tsx +116 -0
  495. package/src/features/pagination/paginationMeta.ts +54 -0
  496. package/src/features/pagination/public.ts +2 -0
  497. package/src/features/pagination/utils/resolvePaginationPage.ts +6 -0
  498. package/src/features/pagination/utils/resolvePaginationState.test.ts +29 -0
  499. package/src/features/pagination/utils/resolvePaginationState.ts +70 -0
  500. package/src/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.tsx +11 -11
  501. package/src/{components/rating/meta.ts → features/palette-item/paletteItemMeta.ts} +4 -4
  502. package/src/features/palette-item/public.ts +2 -0
  503. package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +2 -2
  504. package/src/features/progress/adapters/inbound/Progress.tsx +4 -4
  505. package/src/features/progress/adapters/inbound/ProgressRing.tsx +10 -10
  506. package/src/features/rating/adapters/inbound/Rating.tsx +70 -0
  507. package/src/features/rating/public.ts +2 -0
  508. package/src/features/rating/ratingMeta.ts +44 -0
  509. package/src/features/rating/utils/resolveRatingSegments.test.ts +20 -0
  510. package/src/features/rating/utils/resolveRatingSegments.ts +19 -0
  511. package/src/features/skeleton/adapters/inbound/Skeleton.tsx +2 -2
  512. package/src/features/skeleton/adapters/inbound/SkeletonCard.tsx +5 -5
  513. package/src/features/skeleton/adapters/inbound/SkeletonText.tsx +3 -3
  514. package/src/features/tabs/adapters/inbound/Tab.tsx +26 -0
  515. package/src/features/tabs/adapters/inbound/TabList.tsx +18 -0
  516. package/src/features/tabs/adapters/inbound/TabPanel.tsx +23 -0
  517. package/src/features/tabs/adapters/inbound/Tabs.tsx +23 -0
  518. package/src/features/tabs/composition/TabsInteractionPolicyContext.ts +4 -0
  519. package/src/features/tabs/public.ts +5 -0
  520. package/src/features/tabs/tabListMeta.ts +10 -0
  521. package/src/features/tabs/tabMeta.ts +15 -0
  522. package/src/features/tabs/tabPanelMeta.ts +13 -0
  523. package/src/features/tabs/tabsMeta.ts +41 -0
  524. package/src/features/time-picker/composition/TimePickerContent.tsx +7 -7
  525. package/src/features/time-picker/composition/TimePickerField.tsx +3 -3
  526. package/src/features/toolbar/adapters/inbound/Toolbar.tsx +31 -0
  527. package/src/features/toolbar/public.ts +2 -0
  528. package/src/features/toolbar/toolbarMeta.ts +24 -0
  529. package/src/{components → features/typography}/contentFallback.test.ts +2 -8
  530. package/src/features/uploader/adapters/inbound/Uploader.tsx +22 -22
  531. package/src/index.ts +40 -43
  532. package/src/interactionPolicy.test.ts +1 -1
  533. package/src/metadata/allowedChildren.ts +10 -6
  534. package/src/metadata/componentMeta.test.ts +22 -7
  535. package/src/metadata/componentMeta.ts +23 -31
  536. package/src/metadata/radioGroupReachability.test.ts +2 -2
  537. package/src/patterns/chat-list-item/ChatListItem.tsx +22 -23
  538. package/src/patterns/collection-editor/CollectionEditor.tsx +13 -13
  539. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +6 -6
  540. package/src/patterns/filter-bar/FilterBar.tsx +6 -7
  541. package/src/patterns/inspector-field/InspectorField.tsx +5 -5
  542. package/src/patterns/list/List.tsx +6 -7
  543. package/src/patterns/list/ListRow.tsx +16 -17
  544. package/src/patterns/list/ListSection.tsx +3 -3
  545. package/src/patterns/message-bubble/MessageBubble.tsx +23 -20
  546. package/src/patterns/notice/Notice.tsx +5 -5
  547. package/src/patterns/reader/ReaderSurface.tsx +18 -19
  548. package/src/patterns/scanner/BarcodeScannerView.tsx +7 -7
  549. package/src/patterns/scanner/CameraPermissionView.tsx +5 -5
  550. package/src/patterns/scanner/ScanOverlay.tsx +8 -8
  551. package/src/patterns/section-header/SectionHeader.tsx +8 -8
  552. package/src/patterns/switch-field/SwitchField.tsx +4 -4
  553. package/src/patterns/theme-composer/ThemeComposer.tsx +36 -37
  554. package/src/patterns/timeline/Timeline.tsx +21 -15
  555. package/src/patterns/tree-view/TreeItem.tsx +12 -11
  556. package/src/patterns/tree-view/TreeView.tsx +3 -3
  557. package/src/platformAcceptance.test.ts +1 -1
  558. package/src/registry.test.ts +1 -1
  559. package/src/registry.ts +24 -32
  560. package/src/showcaseCoverage.test.ts +8 -25
  561. package/src/theme/themeScopeStructure.test.ts +26 -42
  562. package/src/types/button-group.ts +2 -2
  563. package/src/types/dialog.ts +15 -0
  564. package/src/types/gradient.ts +6 -6
  565. package/src/types/layout.ts +28 -7
  566. package/src/{components/pagination/types.ts → types/pagination.ts} +5 -8
  567. package/src/types/palette-item.ts +14 -0
  568. package/src/types/rating.ts +9 -0
  569. package/src/types/search-input.ts +14 -0
  570. package/src/types/skeleton.ts +5 -5
  571. package/src/types/tabs.ts +25 -0
  572. package/src/types/toolbar.ts +9 -0
  573. package/dist/components/modal/Modal.d.ts +0 -7
  574. package/dist/components/modal/Modal.d.ts.map +0 -1
  575. package/dist/components/modal/Modal.js +0 -39
  576. package/dist/components/modal/Modal.js.map +0 -1
  577. package/dist/components/modal/index.d.ts +0 -3
  578. package/dist/components/modal/index.d.ts.map +0 -1
  579. package/dist/components/modal/index.js +0 -2
  580. package/dist/components/modal/index.js.map +0 -1
  581. package/dist/components/modal/meta.d.ts +0 -9
  582. package/dist/components/modal/meta.d.ts.map +0 -1
  583. package/dist/components/modal/meta.js +0 -9
  584. package/dist/components/modal/meta.js.map +0 -1
  585. package/dist/components/modal/types.d.ts +0 -12
  586. package/dist/components/modal/types.d.ts.map +0 -1
  587. package/dist/components/modal/types.js +0 -2
  588. package/dist/components/modal/types.js.map +0 -1
  589. package/dist/components/pagination/Pagination.d.ts +0 -7
  590. package/dist/components/pagination/Pagination.d.ts.map +0 -1
  591. package/dist/components/pagination/Pagination.js +0 -96
  592. package/dist/components/pagination/Pagination.js.map +0 -1
  593. package/dist/components/pagination/index.d.ts +0 -3
  594. package/dist/components/pagination/index.d.ts.map +0 -1
  595. package/dist/components/pagination/index.js +0 -2
  596. package/dist/components/pagination/index.js.map +0 -1
  597. package/dist/components/pagination/meta.d.ts +0 -9
  598. package/dist/components/pagination/meta.d.ts.map +0 -1
  599. package/dist/components/pagination/meta.js +0 -9
  600. package/dist/components/pagination/meta.js.map +0 -1
  601. package/dist/components/pagination/types.d.ts +0 -18
  602. package/dist/components/pagination/types.d.ts.map +0 -1
  603. package/dist/components/pagination/types.js +0 -2
  604. package/dist/components/pagination/types.js.map +0 -1
  605. package/dist/components/rating/Rating.d.ts +0 -7
  606. package/dist/components/rating/Rating.d.ts.map +0 -1
  607. package/dist/components/rating/Rating.js +0 -26
  608. package/dist/components/rating/Rating.js.map +0 -1
  609. package/dist/components/rating/index.d.ts +0 -3
  610. package/dist/components/rating/index.d.ts.map +0 -1
  611. package/dist/components/rating/index.js +0 -2
  612. package/dist/components/rating/index.js.map +0 -1
  613. package/dist/components/rating/meta.d.ts +0 -9
  614. package/dist/components/rating/meta.d.ts.map +0 -1
  615. package/dist/components/rating/meta.js +0 -9
  616. package/dist/components/rating/meta.js.map +0 -1
  617. package/dist/components/rating/resolveRatingSegments.d.ts +0 -7
  618. package/dist/components/rating/resolveRatingSegments.d.ts.map +0 -1
  619. package/dist/components/rating/resolveRatingSegments.js +0 -22
  620. package/dist/components/rating/resolveRatingSegments.js.map +0 -1
  621. package/dist/components/rating/types.d.ts +0 -11
  622. package/dist/components/rating/types.d.ts.map +0 -1
  623. package/dist/components/rating/types.js +0 -26
  624. package/dist/components/rating/types.js.map +0 -1
  625. package/dist/components/search-bar/SearchBar.d.ts +0 -7
  626. package/dist/components/search-bar/SearchBar.d.ts.map +0 -1
  627. package/dist/components/search-bar/SearchBar.js.map +0 -1
  628. package/dist/components/search-bar/index.d.ts +0 -3
  629. package/dist/components/search-bar/index.d.ts.map +0 -1
  630. package/dist/components/search-bar/index.js +0 -2
  631. package/dist/components/search-bar/index.js.map +0 -1
  632. package/dist/components/search-bar/meta.d.ts +0 -9
  633. package/dist/components/search-bar/meta.d.ts.map +0 -1
  634. package/dist/components/search-bar/meta.js +0 -9
  635. package/dist/components/search-bar/meta.js.map +0 -1
  636. package/dist/components/search-bar/types.d.ts +0 -14
  637. package/dist/components/search-bar/types.d.ts.map +0 -1
  638. package/dist/components/search-bar/types.js +0 -2
  639. package/dist/components/search-bar/types.js.map +0 -1
  640. package/dist/components/tabs/Tabs.d.ts +0 -9
  641. package/dist/components/tabs/Tabs.d.ts.map +0 -1
  642. package/dist/components/tabs/Tabs.js +0 -59
  643. package/dist/components/tabs/Tabs.js.map +0 -1
  644. package/dist/components/tabs/index.d.ts +0 -3
  645. package/dist/components/tabs/index.d.ts.map +0 -1
  646. package/dist/components/tabs/index.js +0 -3
  647. package/dist/components/tabs/index.js.map +0 -1
  648. package/dist/components/tabs/meta.d.ts +0 -9
  649. package/dist/components/tabs/meta.d.ts.map +0 -1
  650. package/dist/components/tabs/meta.js +0 -9
  651. package/dist/components/tabs/meta.js.map +0 -1
  652. package/dist/components/tabs/types.d.ts +0 -22
  653. package/dist/components/tabs/types.d.ts.map +0 -1
  654. package/dist/components/tabs/types.js +0 -2
  655. package/dist/components/tabs/types.js.map +0 -1
  656. package/dist/components/toolbar/Toolbar.d.ts +0 -9
  657. package/dist/components/toolbar/Toolbar.d.ts.map +0 -1
  658. package/dist/components/toolbar/Toolbar.js +0 -26
  659. package/dist/components/toolbar/Toolbar.js.map +0 -1
  660. package/dist/components/toolbar/ToolbarAction.d.ts +0 -9
  661. package/dist/components/toolbar/ToolbarAction.d.ts.map +0 -1
  662. package/dist/components/toolbar/ToolbarAction.js +0 -13
  663. package/dist/components/toolbar/ToolbarAction.js.map +0 -1
  664. package/dist/components/toolbar/index.d.ts +0 -4
  665. package/dist/components/toolbar/index.d.ts.map +0 -1
  666. package/dist/components/toolbar/index.js +0 -4
  667. package/dist/components/toolbar/index.js.map +0 -1
  668. package/dist/components/toolbar/meta.d.ts +0 -17
  669. package/dist/components/toolbar/meta.d.ts.map +0 -1
  670. package/dist/components/toolbar/meta.js +0 -17
  671. package/dist/components/toolbar/meta.js.map +0 -1
  672. package/dist/components/toolbar/types.d.ts +0 -18
  673. package/dist/components/toolbar/types.d.ts.map +0 -1
  674. package/dist/components/toolbar/types.js +0 -2
  675. package/dist/components/toolbar/types.js.map +0 -1
  676. package/dist/features/layout/adapters/inbound/Box.d.ts +0 -5
  677. package/dist/features/layout/adapters/inbound/Box.d.ts.map +0 -1
  678. package/dist/features/layout/adapters/inbound/Box.js +0 -10
  679. package/dist/features/layout/adapters/inbound/Box.js.map +0 -1
  680. package/dist/features/layout/adapters/inbound/Container.d.ts +0 -5
  681. package/dist/features/layout/adapters/inbound/Container.d.ts.map +0 -1
  682. package/dist/features/layout/adapters/inbound/Container.js +0 -10
  683. package/dist/features/layout/adapters/inbound/Container.js.map +0 -1
  684. package/dist/features/layout/adapters/inbound/ContentRail.d.ts.map +0 -1
  685. package/dist/features/layout/adapters/inbound/ContentRail.js.map +0 -1
  686. package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts.map +0 -1
  687. package/dist/features/layout/adapters/inbound/ContentRailFlow.js.map +0 -1
  688. package/dist/features/layout/adapters/inbound/Stack.d.ts +0 -5
  689. package/dist/features/layout/adapters/inbound/Stack.d.ts.map +0 -1
  690. package/dist/features/layout/adapters/inbound/Stack.js +0 -10
  691. package/dist/features/layout/adapters/inbound/Stack.js.map +0 -1
  692. package/dist/features/layout/boxMeta.d.ts.map +0 -1
  693. package/dist/features/layout/boxMeta.js.map +0 -1
  694. package/dist/features/layout/containerMeta.d.ts +0 -55
  695. package/dist/features/layout/containerMeta.d.ts.map +0 -1
  696. package/dist/features/layout/containerMeta.js +0 -10
  697. package/dist/features/layout/containerMeta.js.map +0 -1
  698. package/dist/features/layout/contentRailMeta.d.ts.map +0 -1
  699. package/dist/features/layout/contentRailMeta.js.map +0 -1
  700. package/dist/features/layout/stackMeta.d.ts.map +0 -1
  701. package/dist/features/layout/stackMeta.js.map +0 -1
  702. package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts.map +0 -1
  703. package/dist/features/layout/utils/resolveContentRailItemWidth.js.map +0 -1
  704. package/dist/features/layout/utils/resolveContentRailPhysicalOffset.d.ts.map +0 -1
  705. package/dist/features/layout/utils/resolveContentRailPhysicalOffset.js.map +0 -1
  706. package/dist/features/layout/utils/resolveContentRailState.d.ts.map +0 -1
  707. package/dist/features/layout/utils/resolveContentRailState.js.map +0 -1
  708. package/dist/features/layout/utils/useContentRailReducedMotion.d.ts.map +0 -1
  709. package/dist/features/layout/utils/useContentRailReducedMotion.js.map +0 -1
  710. package/dist/foundation/Center.d.ts +0 -12
  711. package/dist/foundation/Center.d.ts.map +0 -1
  712. package/dist/foundation/Center.js +0 -13
  713. package/dist/foundation/Center.js.map +0 -1
  714. package/dist/foundation/Inline.d.ts +0 -12
  715. package/dist/foundation/Inline.d.ts.map +0 -1
  716. package/dist/foundation/Inline.js +0 -13
  717. package/dist/foundation/Inline.js.map +0 -1
  718. package/dist/foundation/Show.d.ts +0 -12
  719. package/dist/foundation/Show.d.ts.map +0 -1
  720. package/dist/foundation/Show.js +0 -13
  721. package/dist/foundation/Show.js.map +0 -1
  722. package/dist/foundation/Spacer.d.ts +0 -12
  723. package/dist/foundation/Spacer.d.ts.map +0 -1
  724. package/dist/foundation/Spacer.js +0 -13
  725. package/dist/foundation/Spacer.js.map +0 -1
  726. package/dist/foundation/index.d.ts +0 -9
  727. package/dist/foundation/index.d.ts.map +0 -1
  728. package/dist/foundation/index.js +0 -5
  729. package/dist/foundation/index.js.map +0 -1
  730. package/dist/foundation/meta.d.ts +0 -35
  731. package/dist/foundation/meta.d.ts.map +0 -1
  732. package/dist/foundation/meta.js +0 -35
  733. package/dist/foundation/meta.js.map +0 -1
  734. package/dist/layout/app-shell/AppShell.d.ts +0 -16
  735. package/dist/layout/app-shell/AppShell.d.ts.map +0 -1
  736. package/dist/layout/app-shell/AppShell.js +0 -50
  737. package/dist/layout/app-shell/AppShell.js.map +0 -1
  738. package/dist/layout/app-shell/index.d.ts +0 -3
  739. package/dist/layout/app-shell/index.d.ts.map +0 -1
  740. package/dist/layout/app-shell/index.js +0 -2
  741. package/dist/layout/app-shell/index.js.map +0 -1
  742. package/dist/layout/app-shell/meta.d.ts.map +0 -1
  743. package/dist/layout/app-shell/meta.js.map +0 -1
  744. package/dist/layout/app-shell/types.d.ts +0 -9
  745. package/dist/layout/app-shell/types.d.ts.map +0 -1
  746. package/dist/layout/app-shell/types.js +0 -2
  747. package/dist/layout/app-shell/types.js.map +0 -1
  748. package/dist/layout/screen/Screen.d.ts +0 -11
  749. package/dist/layout/screen/Screen.d.ts.map +0 -1
  750. package/dist/layout/screen/Screen.js +0 -30
  751. package/dist/layout/screen/Screen.js.map +0 -1
  752. package/dist/layout/screen/index.d.ts +0 -3
  753. package/dist/layout/screen/index.d.ts.map +0 -1
  754. package/dist/layout/screen/index.js +0 -2
  755. package/dist/layout/screen/index.js.map +0 -1
  756. package/dist/layout/screen/meta.d.ts.map +0 -1
  757. package/dist/layout/screen/meta.js.map +0 -1
  758. package/dist/layout/screen/types.d.ts +0 -10
  759. package/dist/layout/screen/types.d.ts.map +0 -1
  760. package/dist/layout/screen/types.js +0 -2
  761. package/dist/layout/screen/types.js.map +0 -1
  762. package/dist/layout/screen-section/ScreenSection.d.ts +0 -9
  763. package/dist/layout/screen-section/ScreenSection.d.ts.map +0 -1
  764. package/dist/layout/screen-section/ScreenSection.js +0 -17
  765. package/dist/layout/screen-section/ScreenSection.js.map +0 -1
  766. package/dist/layout/screen-section/index.d.ts +0 -3
  767. package/dist/layout/screen-section/index.d.ts.map +0 -1
  768. package/dist/layout/screen-section/index.js +0 -2
  769. package/dist/layout/screen-section/index.js.map +0 -1
  770. package/dist/layout/screen-section/meta.d.ts.map +0 -1
  771. package/dist/layout/screen-section/meta.js.map +0 -1
  772. package/dist/layout/screen-section/types.d.ts +0 -9
  773. package/dist/layout/screen-section/types.d.ts.map +0 -1
  774. package/dist/layout/screen-section/types.js +0 -2
  775. package/dist/layout/screen-section/types.js.map +0 -1
  776. package/dist/layout/settings-layout/SettingsLayout.d.ts +0 -7
  777. package/dist/layout/settings-layout/SettingsLayout.d.ts.map +0 -1
  778. package/dist/layout/settings-layout/SettingsLayout.js +0 -18
  779. package/dist/layout/settings-layout/SettingsLayout.js.map +0 -1
  780. package/dist/layout/settings-layout/index.d.ts +0 -3
  781. package/dist/layout/settings-layout/index.d.ts.map +0 -1
  782. package/dist/layout/settings-layout/index.js +0 -2
  783. package/dist/layout/settings-layout/index.js.map +0 -1
  784. package/dist/layout/settings-layout/meta.d.ts +0 -9
  785. package/dist/layout/settings-layout/meta.d.ts.map +0 -1
  786. package/dist/layout/settings-layout/meta.js +0 -9
  787. package/dist/layout/settings-layout/meta.js.map +0 -1
  788. package/dist/layout/settings-layout/types.d.ts +0 -10
  789. package/dist/layout/settings-layout/types.d.ts.map +0 -1
  790. package/dist/layout/settings-layout/types.js +0 -2
  791. package/dist/layout/settings-layout/types.js.map +0 -1
  792. package/dist/layout/sidebar-layout/SidebarLayout.d.ts +0 -11
  793. package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +0 -1
  794. package/dist/layout/sidebar-layout/SidebarLayout.js +0 -27
  795. package/dist/layout/sidebar-layout/SidebarLayout.js.map +0 -1
  796. package/dist/layout/sidebar-layout/index.d.ts +0 -3
  797. package/dist/layout/sidebar-layout/index.d.ts.map +0 -1
  798. package/dist/layout/sidebar-layout/index.js +0 -2
  799. package/dist/layout/sidebar-layout/index.js.map +0 -1
  800. package/dist/layout/sidebar-layout/meta.d.ts +0 -9
  801. package/dist/layout/sidebar-layout/meta.d.ts.map +0 -1
  802. package/dist/layout/sidebar-layout/meta.js +0 -9
  803. package/dist/layout/sidebar-layout/meta.js.map +0 -1
  804. package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.d.ts +0 -14
  805. package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.d.ts.map +0 -1
  806. package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.js +0 -16
  807. package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.js.map +0 -1
  808. package/dist/layout/sidebar-layout/types.d.ts +0 -12
  809. package/dist/layout/sidebar-layout/types.d.ts.map +0 -1
  810. package/dist/layout/sidebar-layout/types.js +0 -2
  811. package/dist/layout/sidebar-layout/types.js.map +0 -1
  812. package/dist/layout/topbar-layout/TopbarLayout.d.ts +0 -9
  813. package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +0 -1
  814. package/dist/layout/topbar-layout/TopbarLayout.js +0 -17
  815. package/dist/layout/topbar-layout/TopbarLayout.js.map +0 -1
  816. package/dist/layout/topbar-layout/index.d.ts +0 -3
  817. package/dist/layout/topbar-layout/index.d.ts.map +0 -1
  818. package/dist/layout/topbar-layout/index.js +0 -2
  819. package/dist/layout/topbar-layout/index.js.map +0 -1
  820. package/dist/layout/topbar-layout/meta.d.ts +0 -9
  821. package/dist/layout/topbar-layout/meta.d.ts.map +0 -1
  822. package/dist/layout/topbar-layout/meta.js +0 -9
  823. package/dist/layout/topbar-layout/meta.js.map +0 -1
  824. package/dist/layout/topbar-layout/types.d.ts +0 -8
  825. package/dist/layout/topbar-layout/types.d.ts.map +0 -1
  826. package/dist/layout/topbar-layout/types.js +0 -2
  827. package/dist/layout/topbar-layout/types.js.map +0 -1
  828. package/dist/patterns/settings-row/SettingsRow.d.ts +0 -9
  829. package/dist/patterns/settings-row/SettingsRow.d.ts.map +0 -1
  830. package/dist/patterns/settings-row/SettingsRow.js +0 -24
  831. package/dist/patterns/settings-row/SettingsRow.js.map +0 -1
  832. package/dist/patterns/settings-row/index.d.ts +0 -3
  833. package/dist/patterns/settings-row/index.d.ts.map +0 -1
  834. package/dist/patterns/settings-row/index.js +0 -2
  835. package/dist/patterns/settings-row/index.js.map +0 -1
  836. package/dist/patterns/settings-row/meta.d.ts +0 -39
  837. package/dist/patterns/settings-row/meta.d.ts.map +0 -1
  838. package/dist/patterns/settings-row/meta.js +0 -39
  839. package/dist/patterns/settings-row/meta.js.map +0 -1
  840. package/dist/patterns/settings-row/types.d.ts +0 -23
  841. package/dist/patterns/settings-row/types.d.ts.map +0 -1
  842. package/dist/patterns/settings-row/types.js +0 -2
  843. package/dist/patterns/settings-row/types.js.map +0 -1
  844. package/dist/patterns/tile-grid/PaletteItem.d.ts.map +0 -1
  845. package/dist/patterns/tile-grid/PaletteItem.js.map +0 -1
  846. package/dist/patterns/tile-grid/TileGrid.d.ts +0 -9
  847. package/dist/patterns/tile-grid/TileGrid.d.ts.map +0 -1
  848. package/dist/patterns/tile-grid/TileGrid.js +0 -33
  849. package/dist/patterns/tile-grid/TileGrid.js.map +0 -1
  850. package/dist/patterns/tile-grid/index.d.ts +0 -4
  851. package/dist/patterns/tile-grid/index.d.ts.map +0 -1
  852. package/dist/patterns/tile-grid/index.js +0 -4
  853. package/dist/patterns/tile-grid/index.js.map +0 -1
  854. package/dist/patterns/tile-grid/meta.d.ts +0 -17
  855. package/dist/patterns/tile-grid/meta.d.ts.map +0 -1
  856. package/dist/patterns/tile-grid/meta.js +0 -18
  857. package/dist/patterns/tile-grid/meta.js.map +0 -1
  858. package/dist/patterns/tile-grid/types.d.ts +0 -18
  859. package/dist/patterns/tile-grid/types.d.ts.map +0 -1
  860. package/dist/patterns/tile-grid/types.js +0 -2
  861. package/dist/patterns/tile-grid/types.js.map +0 -1
  862. package/src/components/modal/Modal.tsx +0 -63
  863. package/src/components/modal/index.ts +0 -2
  864. package/src/components/modal/meta.ts +0 -10
  865. package/src/components/modal/types.ts +0 -16
  866. package/src/components/pagination/Pagination.tsx +0 -199
  867. package/src/components/pagination/index.ts +0 -2
  868. package/src/components/pagination/meta.ts +0 -10
  869. package/src/components/rating/Rating.tsx +0 -42
  870. package/src/components/rating/index.ts +0 -2
  871. package/src/components/rating/resolveRatingSegments.test.ts +0 -60
  872. package/src/components/rating/resolveRatingSegments.ts +0 -34
  873. package/src/components/rating/types.ts +0 -37
  874. package/src/components/search-bar/index.ts +0 -2
  875. package/src/components/search-bar/meta.ts +0 -10
  876. package/src/components/search-bar/types.ts +0 -14
  877. package/src/components/tabs/Tabs.tsx +0 -129
  878. package/src/components/tabs/index.ts +0 -2
  879. package/src/components/tabs/meta.ts +0 -10
  880. package/src/components/tabs/types.ts +0 -25
  881. package/src/components/toolbar/Toolbar.tsx +0 -48
  882. package/src/components/toolbar/ToolbarAction.tsx +0 -28
  883. package/src/components/toolbar/index.ts +0 -3
  884. package/src/components/toolbar/meta.ts +0 -19
  885. package/src/components/toolbar/types.ts +0 -21
  886. package/src/features/layout/adapters/inbound/Box.tsx +0 -18
  887. package/src/features/layout/adapters/inbound/Container.tsx +0 -18
  888. package/src/features/layout/adapters/inbound/Stack.tsx +0 -18
  889. package/src/features/layout/boxMeta.ts +0 -16
  890. package/src/foundation/Center.tsx +0 -26
  891. package/src/foundation/Inline.tsx +0 -26
  892. package/src/foundation/Show.tsx +0 -23
  893. package/src/foundation/Spacer.tsx +0 -26
  894. package/src/foundation/index.test.ts +0 -30
  895. package/src/foundation/index.ts +0 -8
  896. package/src/foundation/meta.ts +0 -36
  897. package/src/layout/app-shell/AppShell.test.ts +0 -24
  898. package/src/layout/app-shell/AppShell.tsx +0 -65
  899. package/src/layout/app-shell/index.ts +0 -2
  900. package/src/layout/app-shell/types.ts +0 -10
  901. package/src/layout/screen/Screen.test.ts +0 -22
  902. package/src/layout/screen/Screen.tsx +0 -47
  903. package/src/layout/screen/index.ts +0 -2
  904. package/src/layout/screen/types.ts +0 -11
  905. package/src/layout/screen-section/index.ts +0 -2
  906. package/src/layout/screen-section/types.ts +0 -10
  907. package/src/layout/settings-layout/SettingsLayout.tsx +0 -33
  908. package/src/layout/settings-layout/index.ts +0 -2
  909. package/src/layout/settings-layout/meta.ts +0 -10
  910. package/src/layout/settings-layout/types.ts +0 -11
  911. package/src/layout/sidebar-layout/SidebarLayout.test.ts +0 -35
  912. package/src/layout/sidebar-layout/SidebarLayout.tsx +0 -46
  913. package/src/layout/sidebar-layout/index.ts +0 -2
  914. package/src/layout/sidebar-layout/meta.ts +0 -10
  915. package/src/layout/sidebar-layout/resolveSidebarLayoutSizing.ts +0 -18
  916. package/src/layout/sidebar-layout/types.ts +0 -14
  917. package/src/layout/topbar-layout/TopbarLayout.tsx +0 -30
  918. package/src/layout/topbar-layout/index.ts +0 -2
  919. package/src/layout/topbar-layout/meta.ts +0 -10
  920. package/src/layout/topbar-layout/types.ts +0 -9
  921. package/src/patterns/settings-row/SettingsRow.tsx +0 -53
  922. package/src/patterns/settings-row/index.ts +0 -2
  923. package/src/patterns/settings-row/meta.ts +0 -40
  924. package/src/patterns/settings-row/types.ts +0 -28
  925. package/src/patterns/tile-grid/TileGrid.tsx +0 -55
  926. package/src/patterns/tile-grid/index.ts +0 -3
  927. package/src/patterns/tile-grid/meta.ts +0 -21
  928. package/src/patterns/tile-grid/types.ts +0 -20
  929. /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRail.d.ts +0 -0
  930. /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.d.ts +0 -0
  931. /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.js +0 -0
  932. /package/dist/features/{layout → content-rail}/contentRailMeta.js +0 -0
  933. /package/dist/features/{layout → content-rail}/utils/resolveContentRailItemWidth.d.ts +0 -0
  934. /package/dist/features/{layout → content-rail}/utils/resolveContentRailItemWidth.js +0 -0
  935. /package/dist/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.d.ts +0 -0
  936. /package/dist/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.js +0 -0
  937. /package/dist/features/{layout → content-rail}/utils/resolveContentRailState.d.ts +0 -0
  938. /package/dist/features/{layout → content-rail}/utils/resolveContentRailState.js +0 -0
  939. /package/dist/features/{layout → content-rail}/utils/useContentRailReducedMotion.d.ts +0 -0
  940. /package/dist/features/{layout → content-rail}/utils/useContentRailReducedMotion.js +0 -0
  941. /package/src/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.tsx +0 -0
  942. /package/src/features/{layout → content-rail}/contentRailMeta.ts +0 -0
  943. /package/src/features/{layout → content-rail}/utils/resolveContentRailItemWidth.test.ts +0 -0
  944. /package/src/features/{layout → content-rail}/utils/resolveContentRailItemWidth.ts +0 -0
  945. /package/src/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.test.ts +0 -0
  946. /package/src/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.ts +0 -0
  947. /package/src/features/{layout → content-rail}/utils/resolveContentRailState.test.ts +0 -0
  948. /package/src/features/{layout → content-rail}/utils/resolveContentRailState.ts +0 -0
  949. /package/src/features/{layout → content-rail}/utils/useContentRailReducedMotion.ts +0 -0
  950. /package/src/{layout/app-shell/meta.ts → features/layout/appShellMeta.ts} +0 -0
  951. /package/src/{layout/screen/meta.ts → features/layout/screenMeta.ts} +0 -0
  952. /package/src/{layout/screen-section/meta.ts → features/layout/screenSectionMeta.ts} +0 -0
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { StyleSheet, View } from 'react-native';
2
+ import { StyleSheet, View as ReactNativeView } from 'react-native';
3
3
  import { useZoraTheme } from '../../../../theme/useZoraTheme';
4
4
  import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
5
5
  import { resolveProgressRole } from '../../../../types/progress';
6
- import { Stack } from '../../../layout/public';
6
+ import { View } from '../../../layout/public';
7
7
  import { Text } from '../../../typography/public';
8
8
  import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
9
9
  import { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';
@@ -17,13 +17,13 @@ function ProgressRingInner({ themeId: _themeId, mode: _mode, interactionPolicy:
17
17
  const accessibilityValue = fraction * accessibilityMaximum;
18
18
  const valueText = accessibilityValueText ?? `${Math.round(fraction * 100)}%`;
19
19
  const segments = Array.from({ length: geometry.filledSegmentCount });
20
- return (<View accessibilityLabel={accessibilityLabel} accessibilityRole="progressbar" accessibilityValue={{
20
+ return (<ReactNativeView accessibilityLabel={accessibilityLabel} accessibilityRole="progressbar" accessibilityValue={{
21
21
  max: accessibilityMaximum,
22
22
  min: 0,
23
23
  now: accessibilityValue,
24
24
  text: valueText,
25
25
  }} accessible style={{ height: geometry.diameter, width: geometry.diameter }} testID={testID}>
26
- <View importantForAccessibility="no-hide-descendants" pointerEvents="none" style={styles.visual}>
26
+ <ReactNativeView importantForAccessibility="no-hide-descendants" pointerEvents="none" style={styles.visual}>
27
27
  <View style={[
28
28
  styles.track,
29
29
  {
@@ -47,19 +47,19 @@ function ProgressRingInner({ themeId: _themeId, mode: _mode, interactionPolicy:
47
47
  width: geometry.segmentWidth,
48
48
  }}/>
49
49
  </View>))}
50
- </View>
50
+ </ReactNativeView>
51
51
 
52
- {centerValue !== undefined || centerLabel !== undefined ? (<View importantForAccessibility="no-hide-descendants" pointerEvents="none" style={styles.center}>
53
- <Stack align="center" gap="xxs" px="s">
52
+ {centerValue !== undefined || centerLabel !== undefined ? (<ReactNativeView importantForAccessibility="no-hide-descendants" pointerEvents="none" style={styles.center}>
53
+ <View align="center" gap="xxs" px="s">
54
54
  {centerValue !== undefined ? (<Text align="center" variant="lead" weight="bold">
55
55
  {centerValue}
56
56
  </Text>) : null}
57
57
  {centerLabel !== undefined ? (<Text align="center" emphasis="muted" numberOfLines={2} variant="caption">
58
58
  {centerLabel}
59
59
  </Text>) : null}
60
- </Stack>
61
- </View>) : null}
62
- </View>);
60
+ </View>
61
+ </ReactNativeView>) : null}
62
+ </ReactNativeView>);
63
63
  }
64
64
  const styles = StyleSheet.create({
65
65
  center: {
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressRing.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEtF,SAAS,iBAAiB,CAAC,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,kBAAkB,GAAG,UAAU,EAC/B,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX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CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,KAAK,EAAE;QACL,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,MAAM,EAAE;QACN,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { StyleSheet, View } from 'react-native';\n\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport { type ProgressRingProps, resolveProgressRole } from '../../../../types/progress';\nimport { Stack } from '../../../layout/public';\nimport { Text } from '../../../typography/public';\nimport { resolveProgressFraction } from '../../utils/resolveProgressFraction';\nimport { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';\n\nfunction ProgressRingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n accessibilityLabel = 'Progress',\n accessibilityValueText,\n centerLabel,\n centerValue,\n color = 'primary',\n max = 100,\n size = 120,\n testID,\n thickness = 10,\n trackColor = 'neutral',\n value,\n}: ProgressRingProps) {\n const { theme } = useZoraTheme();\n const fraction = resolveProgressFraction({ max, value });\n const geometry = resolveProgressRingGeometry({ fraction, size, thickness });\n const progressRole = resolveProgressRole(theme, color);\n const trackRole = resolveProgressRole(theme, trackColor);\n const accessibilityMaximum = Number.isFinite(max) && max > 0 ? max : 1;\n const accessibilityValue = fraction * accessibilityMaximum;\n const valueText = accessibilityValueText ?? `${Math.round(fraction * 100)}%`;\n const segments = Array.from({ length: geometry.filledSegmentCount });\n\n return (\n <View\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"progressbar\"\n accessibilityValue={{\n max: accessibilityMaximum,\n min: 0,\n now: accessibilityValue,\n text: valueText,\n }}\n accessible\n style={{ height: geometry.diameter, width: geometry.diameter }}\n testID={testID}\n >\n <View\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.visual}\n >\n <View\n style={[\n styles.track,\n {\n borderColor: trackRole.softBg,\n borderRadius: geometry.diameter / 2,\n borderWidth: geometry.strokeWidth,\n },\n ]}\n />\n\n {segments.map((_, index) => (\n <View\n key={index}\n style={[\n styles.segmentLayer,\n { transform: [{ rotate: `${index * (360 / geometry.segmentCount)}deg` }] },\n ]}\n >\n <View\n style={{\n backgroundColor: progressRole.base,\n borderRadius: geometry.strokeWidth / 2,\n height: geometry.strokeWidth,\n left: (geometry.diameter - geometry.segmentWidth) / 2,\n position: 'absolute',\n top: 0,\n width: geometry.segmentWidth,\n }}\n />\n </View>\n ))}\n </View>\n\n {centerValue !== undefined || centerLabel !== undefined ? (\n <View\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.center}\n >\n <Stack align=\"center\" gap=\"xxs\" px=\"s\">\n {centerValue !== undefined ? (\n <Text align=\"center\" variant=\"lead\" weight=\"bold\">\n {centerValue}\n </Text>\n ) : null}\n {centerLabel !== undefined ? (\n <Text align=\"center\" emphasis=\"muted\" numberOfLines={2} variant=\"caption\">\n {centerLabel}\n </Text>\n ) : null}\n </Stack>\n </View>\n ) : null}\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n center: {\n alignItems: 'center',\n bottom: 0,\n justifyContent: 'center',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n segmentLayer: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n track: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n visual: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n});\n\n/***\n * Circular determinate progress with optional serializable center value and label content.\n */\nexport const ProgressRing = withZoraThemeScope(ProgressRingInner);\n"]}
1
+ {"version":3,"file":"ProgressRing.js","sourceRoot":"","sources":["../../../../../src/features/progress/adapters/inbound/ProgressRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAA0B,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEtF,SAAS,iBAAiB,CAAC,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,kBAAkB,GAAG,UAAU,EAC/B,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,KAAK,GAAG,SAAS,EACjB,GAAG,GAAG,GAAG,EACT,IAAI,GAAG,GAAG,EACV,MAAM,EACN,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,SAAS,EACtB,KAAK,GACa;IAClB,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,uBAAuB,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,2BAA2B,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5E,MAAM,YAAY,GAAG,mBAAmB,CAAC,KAA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sourcesContent":["import React from 'react';\nimport { StyleSheet, View as ReactNativeView } from 'react-native';\n\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport { type ProgressRingProps, resolveProgressRole } from '../../../../types/progress';\nimport { View } from '../../../layout/public';\nimport { Text } from '../../../typography/public';\nimport { resolveProgressFraction } from '../../utils/resolveProgressFraction';\nimport { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';\n\nfunction ProgressRingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n accessibilityLabel = 'Progress',\n accessibilityValueText,\n centerLabel,\n centerValue,\n color = 'primary',\n max = 100,\n size = 120,\n testID,\n thickness = 10,\n trackColor = 'neutral',\n value,\n}: ProgressRingProps) {\n const { theme } = useZoraTheme();\n const fraction = resolveProgressFraction({ max, value });\n const geometry = resolveProgressRingGeometry({ fraction, size, thickness });\n const progressRole = resolveProgressRole(theme, color);\n const trackRole = resolveProgressRole(theme, trackColor);\n const accessibilityMaximum = Number.isFinite(max) && max > 0 ? max : 1;\n const accessibilityValue = fraction * accessibilityMaximum;\n const valueText = accessibilityValueText ?? `${Math.round(fraction * 100)}%`;\n const segments = Array.from({ length: geometry.filledSegmentCount });\n\n return (\n <ReactNativeView\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"progressbar\"\n accessibilityValue={{\n max: accessibilityMaximum,\n min: 0,\n now: accessibilityValue,\n text: valueText,\n }}\n accessible\n style={{ height: geometry.diameter, width: geometry.diameter }}\n testID={testID}\n >\n <ReactNativeView\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.visual}\n >\n <View\n style={[\n styles.track,\n {\n borderColor: trackRole.softBg,\n borderRadius: geometry.diameter / 2,\n borderWidth: geometry.strokeWidth,\n },\n ]}\n />\n\n {segments.map((_, index) => (\n <View\n key={index}\n style={[\n styles.segmentLayer,\n { transform: [{ rotate: `${index * (360 / geometry.segmentCount)}deg` }] },\n ]}\n >\n <View\n style={{\n backgroundColor: progressRole.base,\n borderRadius: geometry.strokeWidth / 2,\n height: geometry.strokeWidth,\n left: (geometry.diameter - geometry.segmentWidth) / 2,\n position: 'absolute',\n top: 0,\n width: geometry.segmentWidth,\n }}\n />\n </View>\n ))}\n </ReactNativeView>\n\n {centerValue !== undefined || centerLabel !== undefined ? (\n <ReactNativeView\n importantForAccessibility=\"no-hide-descendants\"\n pointerEvents=\"none\"\n style={styles.center}\n >\n <View align=\"center\" gap=\"xxs\" px=\"s\">\n {centerValue !== undefined ? (\n <Text align=\"center\" variant=\"lead\" weight=\"bold\">\n {centerValue}\n </Text>\n ) : null}\n {centerLabel !== undefined ? (\n <Text align=\"center\" emphasis=\"muted\" numberOfLines={2} variant=\"caption\">\n {centerLabel}\n </Text>\n ) : null}\n </View>\n </ReactNativeView>\n ) : null}\n </ReactNativeView>\n );\n}\n\nconst styles = StyleSheet.create({\n center: {\n alignItems: 'center',\n bottom: 0,\n justifyContent: 'center',\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n segmentLayer: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n track: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n visual: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n});\n\n/***\n * Circular determinate progress with optional serializable center value and label content.\n */\nexport const ProgressRing = withZoraThemeScope(ProgressRingInner);\n"]}
@@ -0,0 +1,4 @@
1
+ import type { RatingProps } from '../../../../types/rating';
2
+ /*** Displays a read-only star rating with optional half steps. */
3
+ export declare const Rating: (props: RatingProps) => React.ReactElement | null;
4
+ //# sourceMappingURL=Rating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAK5D,kEAAkE;AAClE,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { resolveIconSize } from '../../../../internal/recipes';
2
+ import { useZoraTheme } from '../../../../theme/useZoraTheme';
3
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
4
+ import { Icon } from '../../../icon/public';
5
+ import { View } from '../../../layout/public';
6
+ import { resolveRatingSegments } from '../../utils/resolveRatingSegments';
7
+ /*** Displays a read-only star rating with optional half steps. */
8
+ export const Rating = withZoraThemeScope(RatingInner);
9
+ /*** Resolves rating visuals from the active ZORA theme. */
10
+ function RatingInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, testID, value, max = 5, color = 'warning', size = 'm', }) {
11
+ const { theme } = useZoraTheme();
12
+ const role = resolveRatingRole(theme, color);
13
+ const segments = resolveRatingSegments({ value, max });
14
+ const iconSize = resolveIconSize(size);
15
+ return (<View direction="row" align="center" gap="xxs" testID={testID} wrap="nowrap">
16
+ {segments.map((segment, index) => {
17
+ const name = segment === 'full' ? 'star' : segment === 'half' ? 'star-half' : 'star-outline';
18
+ const segmentColor = segment === 'empty' ? theme.semantics.content.muted : role.base;
19
+ return (<Icon key={`${index}-${segment}`} color={segmentColor} name={name} size={iconSize}/>);
20
+ })}
21
+ </View>);
22
+ }
23
+ /*** Resolves the semantic theme role for a ZORA rating color. */
24
+ function resolveRatingRole(theme, color) {
25
+ switch (color) {
26
+ case 'secondary':
27
+ return theme.semantics.secondary;
28
+ case 'tertiary':
29
+ return theme.semantics.accent;
30
+ case 'quaternary':
31
+ return theme.semantics.highlight;
32
+ case 'error':
33
+ return theme.semantics.error;
34
+ case 'info':
35
+ return theme.semantics.info;
36
+ case 'primary':
37
+ return theme.semantics.action.primary;
38
+ case 'danger':
39
+ return theme.semantics.action.danger;
40
+ case 'success':
41
+ return theme.semantics.success;
42
+ case 'warning':
43
+ return theme.semantics.warning;
44
+ case 'neutral':
45
+ default:
46
+ return theme.semantics.action.neutral;
47
+ }
48
+ }
49
+ //# sourceMappingURL=Rating.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rating.js","sourceRoot":"","sources":["../../../../../src/features/rating/adapters/inbound/Rating.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,kEAAkE;AAClE,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC;AAEtD,2DAA2D;AAC3D,SAAS,WAAW,CAAC,EACnB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,MAAM,EACN,KAAK,EACL,GAAG,GAAG,CAAC,EACP,KAAK,GAAG,SAAS,EACjB,IAAI,GAAG,GAAG,GACE;IACZ,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,IAAI,GAAG,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,qBAAqB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAEvC,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAC1E;MAAA,CAAC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KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;QACjC,KAAK,SAAS;YACZ,OAAO,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC;QACjC,KAAK,SAAS,CAAC;QACf;YACE,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC;IAC1C,CAAC;AACH,CAAC","sourcesContent":["import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';\n\nimport type { ZoraColor } from '../../../../internal/recipes';\nimport { resolveIconSize } from '../../../../internal/recipes';\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { RatingProps } from '../../../../types/rating';\nimport { Icon } from '../../../icon/public';\nimport { View } from '../../../layout/public';\nimport { resolveRatingSegments } from '../../utils/resolveRatingSegments';\n\n/*** Displays a read-only star rating with optional half steps. */\nexport const Rating = withZoraThemeScope(RatingInner);\n\n/*** Resolves rating visuals from the active ZORA theme. */\nfunction RatingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n testID,\n value,\n max = 5,\n color = 'warning',\n size = 'm',\n}: RatingProps) {\n const { theme } = useZoraTheme();\n const role = resolveRatingRole(theme, color);\n const segments = resolveRatingSegments({ value, max });\n const iconSize = resolveIconSize(size);\n\n return (\n <View direction=\"row\" align=\"center\" gap=\"xxs\" testID={testID} wrap=\"nowrap\">\n {segments.map((segment, index) => {\n const name =\n segment === 'full' ? 'star' : segment === 'half' ? 'star-half' : 'star-outline';\n const segmentColor = segment === 'empty' ? theme.semantics.content.muted : role.base;\n return (\n <Icon key={`${index}-${segment}`} color={segmentColor} name={name} size={iconSize} />\n );\n })}\n </View>\n );\n}\n\n/*** Resolves the semantic theme role for a ZORA rating color. */\nfunction resolveRatingRole(theme: SurfaceTheme, color: ZoraColor): RoleSemantics {\n switch (color) {\n case 'secondary':\n return theme.semantics.secondary;\n case 'tertiary':\n return theme.semantics.accent;\n case 'quaternary':\n return theme.semantics.highlight;\n case 'error':\n return theme.semantics.error;\n case 'info':\n return theme.semantics.info;\n case 'primary':\n return theme.semantics.action.primary;\n case 'danger':\n return theme.semantics.action.danger;\n case 'success':\n return theme.semantics.success;\n case 'warning':\n return theme.semantics.warning;\n case 'neutral':\n default:\n return theme.semantics.action.neutral;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ export type { RatingProps } from '../../types/rating';
2
+ export { Rating } from './adapters/inbound/Rating';
3
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/rating/public.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Rating } from './adapters/inbound/Rating';
2
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/rating/public.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC","sourcesContent":["export type { RatingProps } from '../../types/rating';\nexport { Rating } from './adapters/inbound/Rating';\n"]}
@@ -0,0 +1,57 @@
1
+ export declare const ratingMeta: {
2
+ readonly name: "Rating";
3
+ readonly category: "component";
4
+ readonly directManifestNode: true;
5
+ readonly allowedChildren: readonly [];
6
+ readonly description: "Displays a read-only star-based rating value.";
7
+ readonly blueprint: {
8
+ readonly label: "Rating";
9
+ readonly defaultProps: {
10
+ readonly color: "warning";
11
+ readonly max: 5;
12
+ readonly size: "m";
13
+ readonly value: 4.5;
14
+ };
15
+ };
16
+ readonly bindings: {
17
+ readonly props: {
18
+ readonly value: {
19
+ readonly label: "Value";
20
+ readonly description: "Current rating value.";
21
+ readonly value: {
22
+ readonly type: "number";
23
+ };
24
+ readonly acceptsFallback: true;
25
+ readonly acceptsTransforms: true;
26
+ };
27
+ };
28
+ };
29
+ readonly props: {
30
+ readonly value: {
31
+ readonly type: "number";
32
+ readonly category: "Data";
33
+ readonly label: "Value";
34
+ };
35
+ readonly max: {
36
+ readonly type: "number";
37
+ readonly category: "Data";
38
+ readonly label: "Maximum";
39
+ readonly default: 5;
40
+ };
41
+ readonly color: {
42
+ readonly type: "enum";
43
+ readonly category: "Style";
44
+ readonly label: "Color";
45
+ readonly enum: readonly ["neutral", "primary", "secondary", "tertiary", "quaternary", "success", "warning", "danger", "error", "info"];
46
+ readonly default: "warning";
47
+ };
48
+ readonly size: {
49
+ readonly type: "enum";
50
+ readonly category: "Style";
51
+ readonly label: "Size";
52
+ readonly enum: readonly ["s", "m", "l"];
53
+ readonly default: "m";
54
+ };
55
+ };
56
+ };
57
+ //# sourceMappingURL=ratingMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ratingMeta.d.ts","sourceRoot":"","sources":["../../../src/features/rating/ratingMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCe,CAAC"}
@@ -0,0 +1,43 @@
1
+ export const ratingMeta = {
2
+ name: 'Rating',
3
+ category: 'component',
4
+ directManifestNode: true,
5
+ allowedChildren: [],
6
+ description: 'Displays a read-only star-based rating value.',
7
+ blueprint: { label: 'Rating', defaultProps: { color: 'warning', max: 5, size: 'm', value: 4.5 } },
8
+ bindings: {
9
+ props: {
10
+ value: {
11
+ label: 'Value',
12
+ description: 'Current rating value.',
13
+ value: { type: 'number' },
14
+ acceptsFallback: true,
15
+ acceptsTransforms: true,
16
+ },
17
+ },
18
+ },
19
+ props: {
20
+ value: { type: 'number', category: 'Data', label: 'Value' },
21
+ max: { type: 'number', category: 'Data', label: 'Maximum', default: 5 },
22
+ color: {
23
+ type: 'enum',
24
+ category: 'Style',
25
+ label: 'Color',
26
+ enum: [
27
+ 'neutral',
28
+ 'primary',
29
+ 'secondary',
30
+ 'tertiary',
31
+ 'quaternary',
32
+ 'success',
33
+ 'warning',
34
+ 'danger',
35
+ 'error',
36
+ 'info',
37
+ ],
38
+ default: 'warning',
39
+ },
40
+ size: { type: 'enum', category: 'Style', label: 'Size', enum: ['s', 'm', 'l'], default: 'm' },
41
+ },
42
+ };
43
+ //# sourceMappingURL=ratingMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ratingMeta.js","sourceRoot":"","sources":["../../../src/features/rating/ratingMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,WAAW,EAAE,+CAA+C;IAC5D,SAAS,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;IACjG,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,uBAAuB;gBACpC,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,eAAe,EAAE,IAAI;gBACrB,iBAAiB,EAAE,IAAI;aACxB;SACF;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE;QAC3D,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;QACvE,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,SAAS;gBACT,SAAS;gBACT,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,SAAS;gBACT,SAAS;gBACT,QAAQ;gBACR,OAAO;gBACP,MAAM;aACP;YACD,OAAO,EAAE,SAAS;SACnB;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE;KAC9F;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata/types';\n\nexport const ratingMeta = {\n name: 'Rating',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n description: 'Displays a read-only star-based rating value.',\n blueprint: { label: 'Rating', defaultProps: { color: 'warning', max: 5, size: 'm', value: 4.5 } },\n bindings: {\n props: {\n value: {\n label: 'Value',\n description: 'Current rating value.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n },\n props: {\n value: { type: 'number', category: 'Data', label: 'Value' },\n max: { type: 'number', category: 'Data', label: 'Maximum', default: 5 },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: [\n 'neutral',\n 'primary',\n 'secondary',\n 'tertiary',\n 'quaternary',\n 'success',\n 'warning',\n 'danger',\n 'error',\n 'info',\n ],\n default: 'warning',\n },\n size: { type: 'enum', category: 'Style', label: 'Size', enum: ['s', 'm', 'l'], default: 'm' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,9 @@
1
+ export type RatingSegment = 'empty' | 'full' | 'half';
2
+ /*** Resolves a numeric rating into full, half, and empty visual segments. */
3
+ export declare function resolveRatingSegments({ value, max }: ResolveRatingSegmentsInput): RatingSegment[];
4
+ interface ResolveRatingSegmentsInput {
5
+ value: number;
6
+ max: number;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=resolveRatingSegments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRatingSegments.d.ts","sourceRoot":"","sources":["../../../../src/features/rating/utils/resolveRatingSegments.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,0BAA0B,GAAG,aAAa,EAAE,CAUjG;AAED,UAAU,0BAA0B;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,14 @@
1
+ /*** Resolves a numeric rating into full, half, and empty visual segments. */
2
+ export function resolveRatingSegments({ value, max }) {
3
+ const normalizedMax = Math.max(0, Math.trunc(Number.isFinite(max) ? max : 0));
4
+ const normalizedValue = Math.min(Math.max(Number.isFinite(value) ? value : 0, 0), normalizedMax);
5
+ return Array.from({ length: normalizedMax }, (_, index) => {
6
+ const remaining = normalizedValue - index;
7
+ if (remaining >= 1)
8
+ return 'full';
9
+ if (remaining >= 0.5)
10
+ return 'half';
11
+ return 'empty';
12
+ });
13
+ }
14
+ //# sourceMappingURL=resolveRatingSegments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRatingSegments.js","sourceRoot":"","sources":["../../../../src/features/rating/utils/resolveRatingSegments.ts"],"names":[],"mappings":"AAEA,6EAA6E;AAC7E,MAAM,UAAU,qBAAqB,CAAC,EAAE,KAAK,EAAE,GAAG,EAA8B;IAC9E,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IAEjG,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;QACxD,MAAM,SAAS,GAAG,eAAe,GAAG,KAAK,CAAC;QAC1C,IAAI,SAAS,IAAI,CAAC;YAAE,OAAO,MAAM,CAAC;QAClC,IAAI,SAAS,IAAI,GAAG;YAAE,OAAO,MAAM,CAAC;QACpC,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["export type RatingSegment = 'empty' | 'full' | 'half';\n\n/*** Resolves a numeric rating into full, half, and empty visual segments. */\nexport function resolveRatingSegments({ value, max }: ResolveRatingSegmentsInput): RatingSegment[] {\n const normalizedMax = Math.max(0, Math.trunc(Number.isFinite(max) ? max : 0));\n const normalizedValue = Math.min(Math.max(Number.isFinite(value) ? value : 0, 0), normalizedMax);\n\n return Array.from({ length: normalizedMax }, (_, index) => {\n const remaining = normalizedValue - index;\n if (remaining >= 1) return 'full';\n if (remaining >= 0.5) return 'half';\n return 'empty';\n });\n}\n\ninterface ResolveRatingSegmentsInput {\n value: number;\n max: number;\n}\n"]}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { useZoraTheme } from '../../../../theme/useZoraTheme';
3
3
  import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
4
- import { Box } from '../../../layout/public';
4
+ import { View } from '../../../layout/public';
5
5
  function SkeletonInner({ themeId: _themeId, mode: _mode, testID, width = '100%', height = 16, radius = 'm', }) {
6
6
  const { theme } = useZoraTheme();
7
- return (<Box accessibilityLabel="Loading" accessibilityRole="text" bg={theme.semantics.neutral.surfaceHover} height={height} radius={radius} testID={testID} width={width} style={{ opacity: 0.72 }}/>);
7
+ return (<View accessibilityLabel="Loading" accessibilityRole="text" bg={theme.semantics.neutral.surfaceHover} height={height} radius={radius} testID={testID} width={width} style={{ opacity: 0.72 }}/>);
8
8
  }
9
9
  /***
10
10
  * Generic skeleton placeholder for loading states.
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE7C,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,GAAG,GACE;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IAEjC,OAAO,CACL,CAAC,GAAG,CACF,kBAAkB,CAAC,SAAS,CAC5B,iBAAiB,CAAC,MAAM,CACxB,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CACzC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzB,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonProps } from '../../../../types/skeleton';\nimport { Box } from '../../../layout/public';\n\nfunction SkeletonInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n width = '100%',\n height = 16,\n radius = 'm',\n}: SkeletonProps) {\n const { theme } = useZoraTheme();\n\n return (\n <Box\n accessibilityLabel=\"Loading\"\n accessibilityRole=\"text\"\n bg={theme.semantics.neutral.surfaceHover}\n height={height}\n radius={radius}\n testID={testID}\n width={width}\n style={{ opacity: 0.72 }}\n />\n );\n}\n\n/***\n * Generic skeleton placeholder for loading states.\n */\nexport const Skeleton = withZoraThemeScope(SkeletonInner);\n"]}
1
+ {"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,GAAG,GACE;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IAEjC,OAAO,CACL,CAAC,IAAI,CACH,kBAAkB,CAAC,SAAS,CAC5B,iBAAiB,CAAC,MAAM,CACxB,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CACzC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzB,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonProps } from '../../../../types/skeleton';\nimport { View } from '../../../layout/public';\n\nfunction SkeletonInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n width = '100%',\n height = 16,\n radius = 'm',\n}: SkeletonProps) {\n const { theme } = useZoraTheme();\n\n return (\n <View\n accessibilityLabel=\"Loading\"\n accessibilityRole=\"text\"\n bg={theme.semantics.neutral.surfaceHover}\n height={height}\n radius={radius}\n testID={testID}\n width={width}\n style={{ opacity: 0.72 }}\n />\n );\n}\n\n/***\n * Generic skeleton placeholder for loading states.\n */\nexport const Skeleton = withZoraThemeScope(SkeletonInner);\n"]}
@@ -2,22 +2,22 @@ import React from 'react';
2
2
  import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
3
  import { ButtonGroup } from '../../../button/public';
4
4
  import { Card } from '../../../card/public';
5
- import { Stack } from '../../../layout/public';
5
+ import { View } from '../../../layout/public';
6
6
  import { Skeleton } from './Skeleton';
7
7
  import { SkeletonText } from './SkeletonText';
8
8
  function SkeletonCardInner({ themeId: _themeId, mode: _mode, testID, media = false, actions = false, lines = 3, compact = false, }) {
9
9
  return (<Card compact={compact} testID={testID} tone="default">
10
- <Stack gap={compact ? 's' : 'm'}>
10
+ <View gap={compact ? 's' : 'm'}>
11
11
  {media ? <Skeleton height={compact ? 120 : 180} radius="m"/> : null}
12
- <Stack gap="s">
12
+ <View gap="s">
13
13
  <Skeleton height={18} radius="full" width="54%"/>
14
14
  <SkeletonText lines={lines}/>
15
- </Stack>
15
+ </View>
16
16
  {actions ? (<ButtonGroup align="end">
17
17
  <Skeleton height={36} radius="m" width={88}/>
18
18
  <Skeleton height={36} radius="m" width={120}/>
19
19
  </ButtonGroup>) : null}
20
- </Stack>
20
+ </View>
21
21
  </Card>);
22
22
  }
23
23
  /***
@@ -1 +1 @@
1
- {"version":3,"file":"SkeletonCard.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/SkeletonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,SAAS,iBAAiB,CAAC,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,KAAK,EACb,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,CAAC,EACT,OAAO,GAAG,KAAK,GACG;IAClB,OAAO,CACL,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CACpD;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAC9B;QAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,IAAI,CACpE;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;UAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAC/C;UAAA,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAC7B;QAAA,EAAE,KAAK,CACP;QAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CACtB;YAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAC3C;YAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAC9C;UAAA,EAAE,WAAW,CAAC,CACf,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonCardProps } from '../../../../types/skeleton';\nimport { ButtonGroup } from '../../../button/public';\nimport { Card } from '../../../card/public';\nimport { Stack } from '../../../layout/public';\nimport { Skeleton } from './Skeleton';\nimport { SkeletonText } from './SkeletonText';\n\nfunction SkeletonCardInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n media = false,\n actions = false,\n lines = 3,\n compact = false,\n}: SkeletonCardProps) {\n return (\n <Card compact={compact} testID={testID} tone=\"default\">\n <Stack gap={compact ? 's' : 'm'}>\n {media ? <Skeleton height={compact ? 120 : 180} radius=\"m\" /> : null}\n <Stack gap=\"s\">\n <Skeleton height={18} radius=\"full\" width=\"54%\" />\n <SkeletonText lines={lines} />\n </Stack>\n {actions ? (\n <ButtonGroup align=\"end\">\n <Skeleton height={36} radius=\"m\" width={88} />\n <Skeleton height={36} radius=\"m\" width={120} />\n </ButtonGroup>\n ) : null}\n </Stack>\n </Card>\n );\n}\n\n/***\n * Skeleton placeholder that matches the structure of a `Card`.\n */\nexport const SkeletonCard = withZoraThemeScope(SkeletonCardInner);\n"]}
1
+ {"version":3,"file":"SkeletonCard.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/SkeletonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,SAAS,iBAAiB,CAAC,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,KAAK,EACb,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,CAAC,EACT,OAAO,GAAG,KAAK,GACG;IAClB,OAAO,CACL,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CACpD;MAAA,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAC7B;QAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,IAAI,CACpE;QAAA,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CACX;UAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,EAC/C;UAAA,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAC7B;QAAA,EAAE,IAAI,CACN;QAAA,CAAC,OAAO,CAAC,CAAC,CAAC,CACT,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CACtB;YAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAC3C;YAAA,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAC9C;UAAA,EAAE,WAAW,CAAC,CACf,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonCardProps } from '../../../../types/skeleton';\nimport { ButtonGroup } from '../../../button/public';\nimport { Card } from '../../../card/public';\nimport { View } from '../../../layout/public';\nimport { Skeleton } from './Skeleton';\nimport { SkeletonText } from './SkeletonText';\n\nfunction SkeletonCardInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n media = false,\n actions = false,\n lines = 3,\n compact = false,\n}: SkeletonCardProps) {\n return (\n <Card compact={compact} testID={testID} tone=\"default\">\n <View gap={compact ? 's' : 'm'}>\n {media ? <Skeleton height={compact ? 120 : 180} radius=\"m\" /> : null}\n <View gap=\"s\">\n <Skeleton height={18} radius=\"full\" width=\"54%\" />\n <SkeletonText lines={lines} />\n </View>\n {actions ? (\n <ButtonGroup align=\"end\">\n <Skeleton height={36} radius=\"m\" width={88} />\n <Skeleton height={36} radius=\"m\" width={120} />\n </ButtonGroup>\n ) : null}\n </View>\n </Card>\n );\n}\n\n/***\n * Skeleton placeholder that matches the structure of a `Card`.\n */\nexport const SkeletonCard = withZoraThemeScope(SkeletonCardInner);\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
- import { Stack } from '../../../layout/public';
3
+ import { View } from '../../../layout/public';
4
4
  import { Skeleton } from './Skeleton';
5
5
  function clampLines(lines) {
6
6
  if (!Number.isFinite(lines)) {
@@ -10,12 +10,12 @@ function clampLines(lines) {
10
10
  }
11
11
  function SkeletonTextInner({ themeId: _themeId, mode: _mode, testID, lines = 3, lineHeight = 12, gap = 'xs', width = '100%', lastLineWidth = '70%', }) {
12
12
  const lineCount = clampLines(lines);
13
- return (<Stack gap={gap} testID={testID}>
13
+ return (<View gap={gap} testID={testID}>
14
14
  {Array.from({ length: lineCount }).map((_, index) => {
15
15
  const isLastLine = index === lineCount - 1;
16
16
  return (<Skeleton height={lineHeight} key={`${index}`} radius="full" width={isLastLine && lineCount > 1 ? lastLineWidth : width}/>);
17
17
  })}
18
- </Stack>);
18
+ </View>);
19
19
  }
20
20
  /***
21
21
  * Multi-line skeleton placeholder for text content.
@@ -1 +1 @@
1
- {"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/SkeletonText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,C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React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonTextProps } from '../../../../types/skeleton';\nimport { Stack } from '../../../layout/public';\nimport { Skeleton } from './Skeleton';\n\nfunction clampLines(lines: number): number {\n if (!Number.isFinite(lines)) {\n return 1;\n }\n\n return Math.max(1, Math.floor(lines));\n}\n\nfunction SkeletonTextInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n lines = 3,\n lineHeight = 12,\n gap = 'xs',\n width = '100%',\n lastLineWidth = '70%',\n}: SkeletonTextProps) {\n const lineCount = clampLines(lines);\n\n return (\n <Stack gap={gap} testID={testID}>\n {Array.from({ length: lineCount }).map((_, index) => {\n const isLastLine = index === lineCount - 1;\n return (\n <Skeleton\n height={lineHeight}\n key={`${index}`}\n radius=\"full\"\n width={isLastLine && lineCount > 1 ? lastLineWidth : width}\n />\n );\n })}\n </Stack>\n );\n}\n\n/***\n * Multi-line skeleton placeholder for text content.\n *\n \n */\nexport const SkeletonText = withZoraThemeScope(SkeletonTextInner);\n"]}
1
+ {"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../../../src/features/skeleton/adapters/inbound/SkeletonText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,SAAS,UAAU,CAAC,KAAa;IAC/B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACxC,CAAC;AAED,SAAS,iBAAiB,CAAC,EACzB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,CAAC,EACT,UAAU,GAAG,EAAE,EACf,GAAG,GAAG,IAAI,EACV,KAAK,GAAG,MAAM,EACd,aAAa,GAAG,KAAK,GACH;IAClB,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAEpC,OAAO,CACL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAC7B;MAAA,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;YAClD,MAAM,UAAU,GAAG,KAAK,KAAK,SAAS,GAAG,CAAC,CAAC;YAC3C,OAAO,CACL,CAAC,QAAQ,CACP,MAAM,CAAC,CAAC,UAAU,CAAC,CACnB,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAChB,MAAM,CAAC,MAAM,CACb,KAAK,CAAC,CAAC,UAAU,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,EAC3D,CACH,CAAC;QACJ,CAAC,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { SkeletonTextProps } from '../../../../types/skeleton';\nimport { View } from '../../../layout/public';\nimport { Skeleton } from './Skeleton';\n\nfunction clampLines(lines: number): number {\n if (!Number.isFinite(lines)) {\n return 1;\n }\n\n return Math.max(1, Math.floor(lines));\n}\n\nfunction SkeletonTextInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n lines = 3,\n lineHeight = 12,\n gap = 'xs',\n width = '100%',\n lastLineWidth = '70%',\n}: SkeletonTextProps) {\n const lineCount = clampLines(lines);\n\n return (\n <View gap={gap} testID={testID}>\n {Array.from({ length: lineCount }).map((_, index) => {\n const isLastLine = index === lineCount - 1;\n return (\n <Skeleton\n height={lineHeight}\n key={`${index}`}\n radius=\"full\"\n width={isLastLine && lineCount > 1 ? lastLineWidth : width}\n />\n );\n })}\n </View>\n );\n}\n\n/***\n * Multi-line skeleton placeholder for text content.\n *\n \n */\nexport const SkeletonText = withZoraThemeScope(SkeletonTextInner);\n"]}
@@ -2,7 +2,7 @@ export declare const surfaceMeta: {
2
2
  readonly name: "Surface";
3
3
  readonly category: "foundation";
4
4
  readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "FlatList", "SectionList", "BottomSheet", "ProductCard", "Box", "Stack", "Grid", "Gradient", "Container", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Form", "Card", "Panel", "Notice", "EmptyState", "SectionHeader", "SettingsRow", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "ReaderSurface", "ContentRail", "MissingElement"];
5
+ readonly allowedChildren: readonly ["ActivityIndicator", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Form", "Card", "Panel", "Notice", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "ReaderSurface", "ContentRail", "MissingElement"];
6
6
  readonly props: {
7
7
  readonly variant: {
8
8
  readonly type: "enum";
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { TabProps } from '../../../../types/tabs';
3
+ /*** Renders one labeled selectable tab backed by Surface accessibility semantics. */
4
+ export declare const Tab: (props: TabProps) => React.ReactElement | null;
5
+ //# sourceMappingURL=Tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/Tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,qFAAqF;AACrF,eAAO,MAAM,GAAG,gDAA+B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Tab as SurfaceTab } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
4
+ import { TabsInteractionPolicyContext } from '../../composition/TabsInteractionPolicyContext';
5
+ /*** Renders one labeled selectable tab backed by Surface accessibility semantics. */
6
+ export const Tab = withZoraThemeScope(TabInner);
7
+ /*** Resolves inherited interaction policy before delegating tab behavior to Surface. */
8
+ function TabInner({ themeId: _themeId, mode: _mode, interactionPolicy, label, ...props }) {
9
+ const inheritedInteractionPolicy = React.use(TabsInteractionPolicyContext);
10
+ return (<SurfaceTab {...props} interactionPolicy={interactionPolicy ?? inheritedInteractionPolicy}>
11
+ {label}
12
+ </SurfaceTab>);
13
+ }
14
+ //# sourceMappingURL=Tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tab.js","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAE9F,qFAAqF;AACrF,MAAM,CAAC,MAAM,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAEhD,wFAAwF;AACxF,SAAS,QAAQ,CAAC,EAChB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EACjB,KAAK,EACL,GAAG,KAAK,EACC;IACT,MAAM,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE3E,OAAO,CACL,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,IAAI,0BAA0B,CAAC,CACxF;MAAA,CAAC,KAAK,CACR;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC","sourcesContent":["import { Tab as SurfaceTab } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TabProps } from '../../../../types/tabs';\nimport { TabsInteractionPolicyContext } from '../../composition/TabsInteractionPolicyContext';\n\n/*** Renders one labeled selectable tab backed by Surface accessibility semantics. */\nexport const Tab = withZoraThemeScope(TabInner);\n\n/*** Resolves inherited interaction policy before delegating tab behavior to Surface. */\nfunction TabInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy,\n label,\n ...props\n}: TabProps) {\n const inheritedInteractionPolicy = React.use(TabsInteractionPolicyContext);\n\n return (\n <SurfaceTab {...props} interactionPolicy={interactionPolicy ?? inheritedInteractionPolicy}>\n {label}\n </SurfaceTab>\n );\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { TabListProps } from '../../../../types/tabs';
2
+ /*** Renders the accessible list of tabs for a Tabs composition. */
3
+ export declare const TabList: (props: TabListProps) => React.ReactElement | null;
4
+ //# sourceMappingURL=TabList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/TabList.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D,mEAAmE;AACnE,eAAO,MAAM,OAAO,oDAAmC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { TabList as SurfaceTabList } from '@ankhorage/surface';
2
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
+ /*** Renders the accessible list of tabs for a Tabs composition. */
4
+ export const TabList = withZoraThemeScope(TabListInner);
5
+ /*** Delegates tablist semantics and keyboard navigation to Surface. */
6
+ function TabListInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, children, testID, }) {
7
+ return <SurfaceTabList testID={testID}>{children}</SurfaceTabList>;
8
+ }
9
+ //# sourceMappingURL=TabList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabList.js","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,mEAAmE;AACnE,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;AAExD,uEAAuE;AACvE,SAAS,YAAY,CAAC,EACpB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,QAAQ,EACR,MAAM,GACO;IACb,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAC,CAAC;AACrE,CAAC","sourcesContent":["import { TabList as SurfaceTabList } from '@ankhorage/surface';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TabListProps } from '../../../../types/tabs';\n\n/*** Renders the accessible list of tabs for a Tabs composition. */\nexport const TabList = withZoraThemeScope(TabListInner);\n\n/*** Delegates tablist semantics and keyboard navigation to Surface. */\nfunction TabListInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n children,\n testID,\n}: TabListProps) {\n return <SurfaceTabList testID={testID}>{children}</SurfaceTabList>;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { TabPanelProps } from '../../../../types/tabs';
2
+ /*** Renders content associated with one selected Tab. */
3
+ export declare const TabPanel: (props: TabPanelProps) => React.ReactElement | null;
4
+ //# sourceMappingURL=TabPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/TabPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,yDAAyD;AACzD,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { TabPanel as SurfaceTabPanel } from '@ankhorage/surface';
2
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
+ /*** Renders content associated with one selected Tab. */
4
+ export const TabPanel = withZoraThemeScope(TabPanelInner);
5
+ /*** Delegates tabpanel visibility and accessibility linkage to Surface. */
6
+ function TabPanelInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, children, value, testID, }) {
7
+ return (<SurfaceTabPanel testID={testID} value={value}>
8
+ {children}
9
+ </SurfaceTabPanel>);
10
+ }
11
+ //# sourceMappingURL=TabPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAG1E,yDAAyD;AACzD,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC;AAE1D,2EAA2E;AAC3E,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,QAAQ,EACR,KAAK,EACL,MAAM,GACQ;IACd,OAAO,CACL,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAC5C;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { TabPanel as SurfaceTabPanel } from '@ankhorage/surface';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TabPanelProps } from '../../../../types/tabs';\n\n/*** Renders content associated with one selected Tab. */\nexport const TabPanel = withZoraThemeScope(TabPanelInner);\n\n/*** Delegates tabpanel visibility and accessibility linkage to Surface. */\nfunction TabPanelInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n children,\n value,\n testID,\n}: TabPanelProps) {\n return (\n <SurfaceTabPanel testID={testID} value={value}>\n {children}\n </SurfaceTabPanel>\n );\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import type { TabsProps } from '../../../../types/tabs';
2
+ /*** Provides accessible tab state and interaction policy through the Surface Tabs primitive. */
3
+ export declare const Tabs: (props: TabsProps) => React.ReactElement | null;
4
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/Tabs.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,gGAAgG;AAChG,eAAO,MAAM,IAAI,iDAAgC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Tabs as SurfaceTabs } from '@ankhorage/surface';
2
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
+ import { TabsInteractionPolicyContext } from '../../composition/TabsInteractionPolicyContext';
4
+ /*** Provides accessible tab state and interaction policy through the Surface Tabs primitive. */
5
+ export const Tabs = withZoraThemeScope(TabsInner);
6
+ /*** Connects ZORA tab composition to the Surface tab state owner. */
7
+ function TabsInner({ themeId: _themeId, mode: _mode, interactionPolicy = 'enabled', children, ...props }) {
8
+ return (<TabsInteractionPolicyContext value={interactionPolicy}>
9
+ <SurfaceTabs {...props}>{children}</SurfaceTabs>
10
+ </TabsInteractionPolicyContext>);
11
+ }
12
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../../src/features/tabs/adapters/inbound/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAE9F,gGAAgG;AAChG,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAElD,qEAAqE;AACrE,SAAS,SAAS,CAAC,EACjB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,GAAG,SAAS,EAC7B,QAAQ,EACR,GAAG,KAAK,EACE;IACV,OAAO,CACL,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC,iBAAiB,CAAC,CACrD;MAAA,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CACjD;IAAA,EAAE,4BAA4B,CAAC,CAChC,CAAC;AACJ,CAAC","sourcesContent":["import { Tabs as SurfaceTabs } from '@ankhorage/surface';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TabsProps } from '../../../../types/tabs';\nimport { TabsInteractionPolicyContext } from '../../composition/TabsInteractionPolicyContext';\n\n/*** Provides accessible tab state and interaction policy through the Surface Tabs primitive. */\nexport const Tabs = withZoraThemeScope(TabsInner);\n\n/*** Connects ZORA tab composition to the Surface tab state owner. */\nfunction TabsInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy = 'enabled',\n children,\n ...props\n}: TabsProps) {\n return (\n <TabsInteractionPolicyContext value={interactionPolicy}>\n <SurfaceTabs {...props}>{children}</SurfaceTabs>\n </TabsInteractionPolicyContext>\n );\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { InteractionPolicy } from '@ankhorage/surface';
2
+ export declare const TabsInteractionPolicyContext: import("react").Context<InteractionPolicy>;
3
+ //# sourceMappingURL=TabsInteractionPolicyContext.d.ts.map