@ankhorage/zora 14.0.1 → 16.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 (561) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/constants.d.ts +5 -0
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/constants.js +5 -0
  6. package/dist/constants.js.map +1 -1
  7. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  8. package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
  9. package/dist/features/app-bar/adapters/inbound/AppBar.js +28 -27
  10. package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
  11. package/dist/features/app-bar/public.d.ts +1 -1
  12. package/dist/features/app-bar/public.d.ts.map +1 -1
  13. package/dist/features/app-bar/public.js.map +1 -1
  14. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  15. package/dist/features/bottom-sheet/public.d.ts +2 -2
  16. package/dist/features/bottom-sheet/public.d.ts.map +1 -1
  17. package/dist/features/bottom-sheet/public.js +1 -1
  18. package/dist/features/bottom-sheet/public.js.map +1 -1
  19. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts +5 -0
  20. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -0
  21. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +81 -0
  22. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -0
  23. package/dist/features/breadcrumbs/breadcrumbsMeta.d.ts +119 -0
  24. package/dist/features/breadcrumbs/breadcrumbsMeta.d.ts.map +1 -0
  25. package/dist/features/breadcrumbs/breadcrumbsMeta.js +94 -0
  26. package/dist/features/breadcrumbs/breadcrumbsMeta.js.map +1 -0
  27. package/dist/features/breadcrumbs/public.d.ts +3 -0
  28. package/dist/features/breadcrumbs/public.d.ts.map +1 -0
  29. package/dist/features/breadcrumbs/public.js +2 -0
  30. package/dist/features/breadcrumbs/public.js.map +1 -0
  31. package/dist/features/card/cardMeta.d.ts +1 -1
  32. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  33. package/dist/features/card/postCardMeta.d.ts +1 -1
  34. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  35. package/dist/features/data-table/adapters/inbound/DataTable.js +4 -2
  36. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  37. package/dist/features/dialog/adapters/inbound/Dialog.d.ts +5 -0
  38. package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -0
  39. package/dist/features/dialog/adapters/inbound/Dialog.js +45 -0
  40. package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -0
  41. package/dist/features/dialog/dialogMeta.d.ts +87 -0
  42. package/dist/features/dialog/dialogMeta.d.ts.map +1 -0
  43. package/dist/features/dialog/dialogMeta.js +59 -0
  44. package/dist/features/dialog/dialogMeta.js.map +1 -0
  45. package/dist/features/dialog/public.d.ts +3 -0
  46. package/dist/features/dialog/public.d.ts.map +1 -0
  47. package/dist/features/dialog/public.js +2 -0
  48. package/dist/features/dialog/public.js.map +1 -0
  49. package/dist/features/form/formFieldMeta.d.ts +1 -1
  50. package/dist/features/form/formFieldMeta.d.ts.map +1 -1
  51. package/dist/features/form/formFieldMeta.js +8 -1
  52. package/dist/features/form/formFieldMeta.js.map +1 -1
  53. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +1 -1
  54. package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts +4 -0
  55. package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -0
  56. package/dist/{components/search-bar/SearchBar.js → features/form/search-input/adapters/inbound/SearchInput.js} +8 -10
  57. package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -0
  58. package/dist/features/form/search-input/public.d.ts +3 -0
  59. package/dist/features/form/search-input/public.d.ts.map +1 -0
  60. package/dist/features/form/search-input/public.js +2 -0
  61. package/dist/features/form/search-input/public.js.map +1 -0
  62. package/dist/features/form/search-input/searchInputMeta.d.ts +126 -0
  63. package/dist/features/form/search-input/searchInputMeta.d.ts.map +1 -0
  64. package/dist/features/form/search-input/searchInputMeta.js +67 -0
  65. package/dist/features/form/search-input/searchInputMeta.js.map +1 -0
  66. package/dist/features/form/select/adapters/inbound/Select.d.ts +2 -0
  67. package/dist/features/form/select/adapters/inbound/Select.d.ts.map +1 -0
  68. package/dist/features/form/select/adapters/inbound/Select.js +2 -0
  69. package/dist/features/form/select/adapters/inbound/Select.js.map +1 -0
  70. package/dist/features/form/select/adapters/inbound/Select.native.d.ts +5 -0
  71. package/dist/features/form/select/adapters/inbound/Select.native.d.ts.map +1 -0
  72. package/dist/features/form/select/adapters/inbound/Select.native.js +42 -0
  73. package/dist/features/form/select/adapters/inbound/Select.native.js.map +1 -0
  74. package/dist/features/form/select/adapters/inbound/Select.web.d.ts +5 -0
  75. package/dist/features/form/select/adapters/inbound/Select.web.d.ts.map +1 -0
  76. package/dist/features/form/select/adapters/inbound/Select.web.js +31 -0
  77. package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -0
  78. package/dist/features/form/select/composition/SelectField.d.ts +10 -0
  79. package/dist/features/form/select/composition/SelectField.d.ts.map +1 -0
  80. package/dist/features/form/select/composition/SelectField.js +8 -0
  81. package/dist/features/form/select/composition/SelectField.js.map +1 -0
  82. package/dist/features/form/select/composition/SelectOptionRow.d.ts +12 -0
  83. package/dist/features/form/select/composition/SelectOptionRow.d.ts.map +1 -0
  84. package/dist/features/form/select/composition/SelectOptionRow.js +9 -0
  85. package/dist/features/form/select/composition/SelectOptionRow.js.map +1 -0
  86. package/dist/features/form/select/composition/SelectTrigger.d.ts +10 -0
  87. package/dist/features/form/select/composition/SelectTrigger.d.ts.map +1 -0
  88. package/dist/features/form/select/composition/SelectTrigger.js +9 -0
  89. package/dist/features/form/select/composition/SelectTrigger.js.map +1 -0
  90. package/dist/features/form/select/composition/useSelectController.d.ts +8 -0
  91. package/dist/features/form/select/composition/useSelectController.d.ts.map +1 -0
  92. package/dist/features/form/select/composition/useSelectController.js +15 -0
  93. package/dist/features/form/select/composition/useSelectController.js.map +1 -0
  94. package/dist/features/form/select/public.d.ts +3 -0
  95. package/dist/features/form/select/public.d.ts.map +1 -0
  96. package/dist/features/form/select/public.js +2 -0
  97. package/dist/features/form/select/public.js.map +1 -0
  98. package/dist/features/form/select/selectMeta.d.ts +195 -0
  99. package/dist/features/form/select/selectMeta.d.ts.map +1 -0
  100. package/dist/features/form/select/selectMeta.js +152 -0
  101. package/dist/features/form/select/selectMeta.js.map +1 -0
  102. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  103. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  104. package/dist/features/layout/boxMeta.d.ts +1 -1
  105. package/dist/features/layout/containerMeta.d.ts +1 -1
  106. package/dist/features/layout/gridMeta.d.ts +1 -1
  107. package/dist/features/layout/stackMeta.d.ts +1 -1
  108. package/dist/features/list/flatListMeta.d.ts +1 -1
  109. package/dist/features/list/sectionListMeta.d.ts +1 -1
  110. package/dist/features/pagination/adapters/inbound/Pagination.d.ts +5 -0
  111. package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -0
  112. package/dist/features/pagination/adapters/inbound/Pagination.js +43 -0
  113. package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -0
  114. package/dist/features/pagination/paginationMeta.d.ts +118 -0
  115. package/dist/features/pagination/paginationMeta.d.ts.map +1 -0
  116. package/dist/features/pagination/paginationMeta.js +53 -0
  117. package/dist/features/pagination/paginationMeta.js.map +1 -0
  118. package/dist/features/pagination/public.d.ts +3 -0
  119. package/dist/features/pagination/public.d.ts.map +1 -0
  120. package/dist/features/pagination/public.js +2 -0
  121. package/dist/features/pagination/public.js.map +1 -0
  122. package/dist/features/pagination/utils/resolvePaginationPage.d.ts +3 -0
  123. package/dist/features/pagination/utils/resolvePaginationPage.d.ts.map +1 -0
  124. package/dist/features/pagination/utils/resolvePaginationPage.js +7 -0
  125. package/dist/features/pagination/utils/resolvePaginationPage.js.map +1 -0
  126. package/dist/features/pagination/utils/resolvePaginationState.d.ts +17 -0
  127. package/dist/features/pagination/utils/resolvePaginationState.d.ts.map +1 -0
  128. package/dist/features/pagination/utils/resolvePaginationState.js +34 -0
  129. package/dist/features/pagination/utils/resolvePaginationState.js.map +1 -0
  130. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.d.ts +5 -0
  131. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.d.ts.map +1 -0
  132. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +43 -0
  133. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -0
  134. package/dist/features/popover-menu/popoverMenuMeta.d.ts +9 -0
  135. package/dist/features/popover-menu/popoverMenuMeta.d.ts.map +1 -0
  136. package/dist/features/popover-menu/popoverMenuMeta.js +9 -0
  137. package/dist/features/popover-menu/popoverMenuMeta.js.map +1 -0
  138. package/dist/features/popover-menu/public.d.ts +3 -0
  139. package/dist/features/popover-menu/public.d.ts.map +1 -0
  140. package/dist/features/popover-menu/public.js +2 -0
  141. package/dist/features/popover-menu/public.js.map +1 -0
  142. package/dist/features/rating/adapters/inbound/Rating.d.ts +4 -0
  143. package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -0
  144. package/dist/features/rating/adapters/inbound/Rating.js +49 -0
  145. package/dist/features/rating/adapters/inbound/Rating.js.map +1 -0
  146. package/dist/features/rating/public.d.ts +3 -0
  147. package/dist/features/rating/public.d.ts.map +1 -0
  148. package/dist/features/rating/public.js +2 -0
  149. package/dist/features/rating/public.js.map +1 -0
  150. package/dist/features/rating/ratingMeta.d.ts +57 -0
  151. package/dist/features/rating/ratingMeta.d.ts.map +1 -0
  152. package/dist/features/rating/ratingMeta.js +43 -0
  153. package/dist/features/rating/ratingMeta.js.map +1 -0
  154. package/dist/features/rating/utils/resolveRatingSegments.d.ts +9 -0
  155. package/dist/features/rating/utils/resolveRatingSegments.d.ts.map +1 -0
  156. package/dist/features/rating/utils/resolveRatingSegments.js +14 -0
  157. package/dist/features/rating/utils/resolveRatingSegments.js.map +1 -0
  158. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  159. package/dist/features/tabs/adapters/inbound/Tab.d.ts +5 -0
  160. package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -0
  161. package/dist/features/tabs/adapters/inbound/Tab.js +14 -0
  162. package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -0
  163. package/dist/features/tabs/adapters/inbound/TabList.d.ts +4 -0
  164. package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -0
  165. package/dist/features/tabs/adapters/inbound/TabList.js +9 -0
  166. package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -0
  167. package/dist/features/tabs/adapters/inbound/TabPanel.d.ts +4 -0
  168. package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -0
  169. package/dist/features/tabs/adapters/inbound/TabPanel.js +11 -0
  170. package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -0
  171. package/dist/features/tabs/adapters/inbound/Tabs.d.ts +4 -0
  172. package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -0
  173. package/dist/features/tabs/adapters/inbound/Tabs.js +12 -0
  174. package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -0
  175. package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts +3 -0
  176. package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts.map +1 -0
  177. package/dist/features/tabs/composition/TabsInteractionPolicyContext.js +3 -0
  178. package/dist/features/tabs/composition/TabsInteractionPolicyContext.js.map +1 -0
  179. package/dist/features/tabs/public.d.ts +6 -0
  180. package/dist/features/tabs/public.d.ts.map +1 -0
  181. package/dist/features/tabs/public.js +5 -0
  182. package/dist/features/tabs/public.js.map +1 -0
  183. package/dist/features/tabs/tabListMeta.d.ts +9 -0
  184. package/dist/features/tabs/tabListMeta.d.ts.map +1 -0
  185. package/dist/features/tabs/tabListMeta.js +9 -0
  186. package/dist/features/tabs/tabListMeta.js.map +1 -0
  187. package/dist/features/tabs/tabMeta.d.ts +32 -0
  188. package/dist/features/tabs/tabMeta.d.ts.map +1 -0
  189. package/dist/features/tabs/tabMeta.js +14 -0
  190. package/dist/features/tabs/tabMeta.js.map +1 -0
  191. package/dist/features/tabs/tabPanelMeta.d.ts +15 -0
  192. package/dist/features/tabs/tabPanelMeta.d.ts.map +1 -0
  193. package/dist/features/tabs/tabPanelMeta.js +12 -0
  194. package/dist/features/tabs/tabPanelMeta.js.map +1 -0
  195. package/dist/features/tabs/tabsMeta.d.ts +58 -0
  196. package/dist/features/tabs/tabsMeta.d.ts.map +1 -0
  197. package/dist/features/tabs/tabsMeta.js +40 -0
  198. package/dist/features/tabs/tabsMeta.js.map +1 -0
  199. package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts +4 -0
  200. package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -0
  201. package/dist/features/toolbar/adapters/inbound/Toolbar.js +14 -0
  202. package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -0
  203. package/dist/features/toolbar/public.d.ts +3 -0
  204. package/dist/features/toolbar/public.d.ts.map +1 -0
  205. package/dist/features/toolbar/public.js +2 -0
  206. package/dist/features/toolbar/public.js.map +1 -0
  207. package/dist/features/toolbar/toolbarMeta.d.ts +29 -0
  208. package/dist/features/toolbar/toolbarMeta.d.ts.map +1 -0
  209. package/dist/features/toolbar/toolbarMeta.js +22 -0
  210. package/dist/features/toolbar/toolbarMeta.js.map +1 -0
  211. package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
  212. package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
  213. package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
  214. package/dist/features/uploader/adapters/inbound/Uploader.js +3 -3
  215. package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
  216. package/dist/index.d.ts +10 -19
  217. package/dist/index.d.ts.map +1 -1
  218. package/dist/index.js +9 -9
  219. package/dist/index.js.map +1 -1
  220. package/dist/layout/screen/meta.d.ts +1 -1
  221. package/dist/layout/screen-section/meta.d.ts +1 -1
  222. package/dist/metadata/allowedChildren.d.ts +3 -3
  223. package/dist/metadata/allowedChildren.d.ts.map +1 -1
  224. package/dist/metadata/allowedChildren.js +6 -0
  225. package/dist/metadata/allowedChildren.js.map +1 -1
  226. package/dist/metadata/bindableComponentMeta.d.ts +3 -4
  227. package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
  228. package/dist/metadata/bindableComponentMeta.js +1 -2
  229. package/dist/metadata/bindableComponentMeta.js.map +1 -1
  230. package/dist/metadata/componentMeta.d.ts.map +1 -1
  231. package/dist/metadata/componentMeta.js +18 -14
  232. package/dist/metadata/componentMeta.js.map +1 -1
  233. package/dist/patterns/confirm-dialog/ConfirmDialog.js +3 -3
  234. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
  235. package/dist/patterns/message-bubble/meta.d.ts +1 -1
  236. package/dist/patterns/notice/meta.d.ts +1 -1
  237. package/dist/patterns/panel/meta.d.ts +1 -1
  238. package/dist/patterns/reader/meta.d.ts +2 -2
  239. package/dist/patterns/scanner/meta.d.ts +2 -2
  240. package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +1 -1
  241. package/dist/patterns/theme-composer/ThemeComposer.js +4 -4
  242. package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
  243. package/dist/registry.d.ts.map +1 -1
  244. package/dist/registry.js +15 -14
  245. package/dist/registry.js.map +1 -1
  246. package/dist/types/app-bar.d.ts +6 -3
  247. package/dist/types/app-bar.d.ts.map +1 -1
  248. package/dist/types/app-bar.js.map +1 -1
  249. package/dist/{components/breadcrumbs/types.d.ts → types/breadcrumbs.d.ts} +8 -6
  250. package/dist/types/breadcrumbs.d.ts.map +1 -0
  251. package/dist/types/breadcrumbs.js +2 -0
  252. package/dist/types/breadcrumbs.js.map +1 -0
  253. package/dist/types/data-table.d.ts +2 -2
  254. package/dist/types/data-table.d.ts.map +1 -1
  255. package/dist/types/data-table.js.map +1 -1
  256. package/dist/types/dialog.d.ts +14 -0
  257. package/dist/types/dialog.d.ts.map +1 -0
  258. package/dist/types/dialog.js +2 -0
  259. package/dist/types/dialog.js.map +1 -0
  260. package/dist/types/pagination.d.ts +16 -0
  261. package/dist/types/pagination.d.ts.map +1 -0
  262. package/dist/types/pagination.js +2 -0
  263. package/dist/types/pagination.js.map +1 -0
  264. package/dist/types/popover-menu.d.ts +24 -0
  265. package/dist/types/popover-menu.d.ts.map +1 -0
  266. package/dist/types/popover-menu.js +2 -0
  267. package/dist/types/popover-menu.js.map +1 -0
  268. package/dist/types/rating.d.ts +9 -0
  269. package/dist/types/rating.d.ts.map +1 -0
  270. package/dist/types/rating.js +2 -0
  271. package/dist/types/rating.js.map +1 -0
  272. package/dist/types/search-input.d.ts +14 -0
  273. package/dist/types/search-input.d.ts.map +1 -0
  274. package/dist/types/search-input.js +2 -0
  275. package/dist/types/search-input.js.map +1 -0
  276. package/dist/types/select.d.ts +22 -0
  277. package/dist/types/select.d.ts.map +1 -0
  278. package/dist/types/select.js +2 -0
  279. package/dist/types/select.js.map +1 -0
  280. package/dist/types/tabs.d.ts +21 -0
  281. package/dist/types/tabs.d.ts.map +1 -0
  282. package/dist/types/tabs.js +2 -0
  283. package/dist/types/tabs.js.map +1 -0
  284. package/dist/types/toolbar.d.ts +8 -0
  285. package/dist/types/toolbar.d.ts.map +1 -0
  286. package/dist/types/toolbar.js +2 -0
  287. package/dist/types/toolbar.js.map +1 -0
  288. package/package.json +2 -4
  289. package/src/audit.test.ts +8 -47
  290. package/src/constants.ts +5 -0
  291. package/src/featureManifest.test.ts +31 -2
  292. package/src/features/app-bar/adapters/inbound/AppBar.tsx +50 -42
  293. package/src/features/app-bar/public.ts +1 -1
  294. package/src/features/bottom-sheet/public.test.ts +10 -1
  295. package/src/features/bottom-sheet/public.ts +9 -1
  296. package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +179 -0
  297. package/src/features/breadcrumbs/breadcrumbsMeta.ts +95 -0
  298. package/src/features/breadcrumbs/public.test.ts +22 -0
  299. package/src/features/breadcrumbs/public.ts +6 -0
  300. package/src/features/data-table/adapters/inbound/DataTable.tsx +9 -5
  301. package/src/features/dialog/adapters/inbound/Dialog.tsx +70 -0
  302. package/src/features/dialog/dialogMeta.ts +60 -0
  303. package/src/features/dialog/public.ts +2 -0
  304. package/src/features/form/formFieldMeta.ts +8 -1
  305. package/src/{components/search-bar/SearchBar.tsx → features/form/search-input/adapters/inbound/SearchInput.tsx} +10 -15
  306. package/src/features/form/search-input/public.ts +2 -0
  307. package/src/features/form/search-input/searchInputMeta.ts +68 -0
  308. package/src/features/form/select/adapters/inbound/Select.native.tsx +78 -0
  309. package/src/features/form/select/adapters/inbound/Select.tsx +1 -0
  310. package/src/features/form/select/adapters/inbound/Select.web.tsx +63 -0
  311. package/src/features/form/select/composition/SelectField.tsx +27 -0
  312. package/src/features/form/select/composition/SelectOptionRow.tsx +36 -0
  313. package/src/features/form/select/composition/SelectTrigger.tsx +32 -0
  314. package/src/features/form/select/composition/useSelectController.ts +21 -0
  315. package/src/features/form/select/public.test.ts +25 -0
  316. package/src/features/form/select/public.ts +2 -0
  317. package/src/features/form/select/selectMeta.ts +154 -0
  318. package/src/features/pagination/adapters/inbound/Pagination.tsx +116 -0
  319. package/src/features/pagination/paginationMeta.ts +54 -0
  320. package/src/features/pagination/public.ts +2 -0
  321. package/src/features/pagination/utils/resolvePaginationPage.ts +6 -0
  322. package/src/features/pagination/utils/resolvePaginationState.test.ts +29 -0
  323. package/src/features/pagination/utils/resolvePaginationState.ts +70 -0
  324. package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +60 -0
  325. package/src/{components/rating/meta.ts → features/popover-menu/popoverMenuMeta.ts} +3 -3
  326. package/src/features/popover-menu/public.test.ts +11 -0
  327. package/src/features/popover-menu/public.ts +6 -0
  328. package/src/features/rating/adapters/inbound/Rating.tsx +70 -0
  329. package/src/features/rating/public.ts +2 -0
  330. package/src/features/rating/ratingMeta.ts +44 -0
  331. package/src/features/rating/utils/resolveRatingSegments.test.ts +20 -0
  332. package/src/features/rating/utils/resolveRatingSegments.ts +19 -0
  333. package/src/features/tabs/adapters/inbound/Tab.tsx +26 -0
  334. package/src/features/tabs/adapters/inbound/TabList.tsx +18 -0
  335. package/src/features/tabs/adapters/inbound/TabPanel.tsx +23 -0
  336. package/src/features/tabs/adapters/inbound/Tabs.tsx +23 -0
  337. package/src/features/tabs/composition/TabsInteractionPolicyContext.ts +4 -0
  338. package/src/features/tabs/public.ts +5 -0
  339. package/src/features/tabs/tabListMeta.ts +10 -0
  340. package/src/features/tabs/tabMeta.ts +15 -0
  341. package/src/features/tabs/tabPanelMeta.ts +13 -0
  342. package/src/features/tabs/tabsMeta.ts +41 -0
  343. package/src/features/toolbar/adapters/inbound/Toolbar.tsx +31 -0
  344. package/src/features/toolbar/public.ts +2 -0
  345. package/src/features/toolbar/toolbarMeta.ts +24 -0
  346. package/src/{components → features/typography}/contentFallback.test.ts +2 -8
  347. package/src/features/uploader/adapters/inbound/Uploader.tsx +3 -3
  348. package/src/index.ts +29 -19
  349. package/src/interactionPolicy.test.ts +19 -21
  350. package/src/metadata/allowedChildren.ts +6 -0
  351. package/src/metadata/bindableComponentMeta.test.ts +8 -0
  352. package/src/metadata/bindableComponentMeta.ts +1 -2
  353. package/src/metadata/componentMeta.test.ts +21 -1
  354. package/src/metadata/componentMeta.ts +18 -14
  355. package/src/nativePeerContract.test.ts +5 -19
  356. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +3 -3
  357. package/src/patterns/theme-composer/ThemeComposer.tsx +7 -8
  358. package/src/platformAcceptance.test.ts +1 -1
  359. package/src/registry.ts +15 -14
  360. package/src/showcaseCoverage.test.ts +6 -3
  361. package/src/theme/themeScopeStructure.test.ts +24 -14
  362. package/src/types/app-bar.ts +6 -3
  363. package/src/{components/breadcrumbs/types.ts → types/breadcrumbs.ts} +8 -5
  364. package/src/types/data-table.ts +2 -2
  365. package/src/types/dialog.ts +15 -0
  366. package/src/{components/pagination/types.ts → types/pagination.ts} +5 -8
  367. package/src/types/popover-menu.ts +31 -0
  368. package/src/types/rating.ts +9 -0
  369. package/src/types/search-input.ts +14 -0
  370. package/src/{components/select/types.ts → types/select.ts} +11 -3
  371. package/src/types/tabs.ts +25 -0
  372. package/src/types/toolbar.ts +9 -0
  373. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +0 -7
  374. package/dist/components/breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  375. package/dist/components/breadcrumbs/Breadcrumbs.js +0 -80
  376. package/dist/components/breadcrumbs/Breadcrumbs.js.map +0 -1
  377. package/dist/components/breadcrumbs/index.d.ts +0 -3
  378. package/dist/components/breadcrumbs/index.d.ts.map +0 -1
  379. package/dist/components/breadcrumbs/index.js +0 -2
  380. package/dist/components/breadcrumbs/index.js.map +0 -1
  381. package/dist/components/breadcrumbs/meta.d.ts +0 -9
  382. package/dist/components/breadcrumbs/meta.d.ts.map +0 -1
  383. package/dist/components/breadcrumbs/meta.js +0 -9
  384. package/dist/components/breadcrumbs/meta.js.map +0 -1
  385. package/dist/components/breadcrumbs/types.d.ts.map +0 -1
  386. package/dist/components/breadcrumbs/types.js +0 -2
  387. package/dist/components/breadcrumbs/types.js.map +0 -1
  388. package/dist/components/menu/DropdownMenu.d.ts +0 -7
  389. package/dist/components/menu/DropdownMenu.d.ts.map +0 -1
  390. package/dist/components/menu/DropdownMenu.js +0 -9
  391. package/dist/components/menu/DropdownMenu.js.map +0 -1
  392. package/dist/components/menu/Menu.d.ts +0 -7
  393. package/dist/components/menu/Menu.d.ts.map +0 -1
  394. package/dist/components/menu/Menu.js +0 -46
  395. package/dist/components/menu/Menu.js.map +0 -1
  396. package/dist/components/menu/index.d.ts +0 -4
  397. package/dist/components/menu/index.d.ts.map +0 -1
  398. package/dist/components/menu/index.js +0 -3
  399. package/dist/components/menu/index.js.map +0 -1
  400. package/dist/components/menu/meta.d.ts +0 -17
  401. package/dist/components/menu/meta.d.ts.map +0 -1
  402. package/dist/components/menu/meta.js +0 -17
  403. package/dist/components/menu/meta.js.map +0 -1
  404. package/dist/components/menu/types.d.ts +0 -22
  405. package/dist/components/menu/types.d.ts.map +0 -1
  406. package/dist/components/menu/types.js +0 -2
  407. package/dist/components/menu/types.js.map +0 -1
  408. package/dist/components/modal/Modal.d.ts +0 -7
  409. package/dist/components/modal/Modal.d.ts.map +0 -1
  410. package/dist/components/modal/Modal.js +0 -39
  411. package/dist/components/modal/Modal.js.map +0 -1
  412. package/dist/components/modal/index.d.ts +0 -3
  413. package/dist/components/modal/index.d.ts.map +0 -1
  414. package/dist/components/modal/index.js +0 -2
  415. package/dist/components/modal/index.js.map +0 -1
  416. package/dist/components/modal/meta.d.ts +0 -9
  417. package/dist/components/modal/meta.d.ts.map +0 -1
  418. package/dist/components/modal/meta.js +0 -9
  419. package/dist/components/modal/meta.js.map +0 -1
  420. package/dist/components/modal/types.d.ts +0 -12
  421. package/dist/components/modal/types.d.ts.map +0 -1
  422. package/dist/components/modal/types.js +0 -2
  423. package/dist/components/modal/types.js.map +0 -1
  424. package/dist/components/pagination/Pagination.d.ts +0 -7
  425. package/dist/components/pagination/Pagination.d.ts.map +0 -1
  426. package/dist/components/pagination/Pagination.js +0 -96
  427. package/dist/components/pagination/Pagination.js.map +0 -1
  428. package/dist/components/pagination/index.d.ts +0 -3
  429. package/dist/components/pagination/index.d.ts.map +0 -1
  430. package/dist/components/pagination/index.js +0 -2
  431. package/dist/components/pagination/index.js.map +0 -1
  432. package/dist/components/pagination/meta.d.ts +0 -9
  433. package/dist/components/pagination/meta.d.ts.map +0 -1
  434. package/dist/components/pagination/meta.js +0 -9
  435. package/dist/components/pagination/meta.js.map +0 -1
  436. package/dist/components/pagination/types.d.ts +0 -18
  437. package/dist/components/pagination/types.d.ts.map +0 -1
  438. package/dist/components/pagination/types.js +0 -2
  439. package/dist/components/pagination/types.js.map +0 -1
  440. package/dist/components/rating/Rating.d.ts +0 -7
  441. package/dist/components/rating/Rating.d.ts.map +0 -1
  442. package/dist/components/rating/Rating.js +0 -26
  443. package/dist/components/rating/Rating.js.map +0 -1
  444. package/dist/components/rating/index.d.ts +0 -3
  445. package/dist/components/rating/index.d.ts.map +0 -1
  446. package/dist/components/rating/index.js +0 -2
  447. package/dist/components/rating/index.js.map +0 -1
  448. package/dist/components/rating/meta.d.ts +0 -9
  449. package/dist/components/rating/meta.d.ts.map +0 -1
  450. package/dist/components/rating/meta.js +0 -9
  451. package/dist/components/rating/meta.js.map +0 -1
  452. package/dist/components/rating/resolveRatingSegments.d.ts +0 -7
  453. package/dist/components/rating/resolveRatingSegments.d.ts.map +0 -1
  454. package/dist/components/rating/resolveRatingSegments.js +0 -22
  455. package/dist/components/rating/resolveRatingSegments.js.map +0 -1
  456. package/dist/components/rating/types.d.ts +0 -11
  457. package/dist/components/rating/types.d.ts.map +0 -1
  458. package/dist/components/rating/types.js +0 -26
  459. package/dist/components/rating/types.js.map +0 -1
  460. package/dist/components/search-bar/SearchBar.d.ts +0 -7
  461. package/dist/components/search-bar/SearchBar.d.ts.map +0 -1
  462. package/dist/components/search-bar/SearchBar.js.map +0 -1
  463. package/dist/components/search-bar/index.d.ts +0 -3
  464. package/dist/components/search-bar/index.d.ts.map +0 -1
  465. package/dist/components/search-bar/index.js +0 -2
  466. package/dist/components/search-bar/index.js.map +0 -1
  467. package/dist/components/search-bar/meta.d.ts +0 -9
  468. package/dist/components/search-bar/meta.d.ts.map +0 -1
  469. package/dist/components/search-bar/meta.js +0 -9
  470. package/dist/components/search-bar/meta.js.map +0 -1
  471. package/dist/components/search-bar/types.d.ts +0 -14
  472. package/dist/components/search-bar/types.d.ts.map +0 -1
  473. package/dist/components/search-bar/types.js +0 -2
  474. package/dist/components/search-bar/types.js.map +0 -1
  475. package/dist/components/select/Select.d.ts +0 -7
  476. package/dist/components/select/Select.d.ts.map +0 -1
  477. package/dist/components/select/Select.js +0 -32
  478. package/dist/components/select/Select.js.map +0 -1
  479. package/dist/components/select/index.d.ts +0 -3
  480. package/dist/components/select/index.d.ts.map +0 -1
  481. package/dist/components/select/index.js +0 -3
  482. package/dist/components/select/index.js.map +0 -1
  483. package/dist/components/select/meta.d.ts +0 -9
  484. package/dist/components/select/meta.d.ts.map +0 -1
  485. package/dist/components/select/meta.js +0 -9
  486. package/dist/components/select/meta.js.map +0 -1
  487. package/dist/components/select/types.d.ts +0 -14
  488. package/dist/components/select/types.d.ts.map +0 -1
  489. package/dist/components/select/types.js +0 -2
  490. package/dist/components/select/types.js.map +0 -1
  491. package/dist/components/tabs/Tabs.d.ts +0 -9
  492. package/dist/components/tabs/Tabs.d.ts.map +0 -1
  493. package/dist/components/tabs/Tabs.js +0 -59
  494. package/dist/components/tabs/Tabs.js.map +0 -1
  495. package/dist/components/tabs/index.d.ts +0 -3
  496. package/dist/components/tabs/index.d.ts.map +0 -1
  497. package/dist/components/tabs/index.js +0 -3
  498. package/dist/components/tabs/index.js.map +0 -1
  499. package/dist/components/tabs/meta.d.ts +0 -9
  500. package/dist/components/tabs/meta.d.ts.map +0 -1
  501. package/dist/components/tabs/meta.js +0 -9
  502. package/dist/components/tabs/meta.js.map +0 -1
  503. package/dist/components/tabs/types.d.ts +0 -22
  504. package/dist/components/tabs/types.d.ts.map +0 -1
  505. package/dist/components/tabs/types.js +0 -2
  506. package/dist/components/tabs/types.js.map +0 -1
  507. package/dist/components/toolbar/Toolbar.d.ts +0 -9
  508. package/dist/components/toolbar/Toolbar.d.ts.map +0 -1
  509. package/dist/components/toolbar/Toolbar.js +0 -26
  510. package/dist/components/toolbar/Toolbar.js.map +0 -1
  511. package/dist/components/toolbar/ToolbarAction.d.ts +0 -9
  512. package/dist/components/toolbar/ToolbarAction.d.ts.map +0 -1
  513. package/dist/components/toolbar/ToolbarAction.js +0 -13
  514. package/dist/components/toolbar/ToolbarAction.js.map +0 -1
  515. package/dist/components/toolbar/index.d.ts +0 -4
  516. package/dist/components/toolbar/index.d.ts.map +0 -1
  517. package/dist/components/toolbar/index.js +0 -4
  518. package/dist/components/toolbar/index.js.map +0 -1
  519. package/dist/components/toolbar/meta.d.ts +0 -17
  520. package/dist/components/toolbar/meta.d.ts.map +0 -1
  521. package/dist/components/toolbar/meta.js +0 -17
  522. package/dist/components/toolbar/meta.js.map +0 -1
  523. package/dist/components/toolbar/types.d.ts +0 -18
  524. package/dist/components/toolbar/types.d.ts.map +0 -1
  525. package/dist/components/toolbar/types.js +0 -2
  526. package/dist/components/toolbar/types.js.map +0 -1
  527. package/src/components/breadcrumbs/Breadcrumbs.tsx +0 -147
  528. package/src/components/breadcrumbs/index.ts +0 -2
  529. package/src/components/breadcrumbs/meta.ts +0 -10
  530. package/src/components/menu/DropdownMenu.tsx +0 -11
  531. package/src/components/menu/Menu.tsx +0 -59
  532. package/src/components/menu/index.ts +0 -3
  533. package/src/components/menu/meta.ts +0 -19
  534. package/src/components/menu/types.ts +0 -31
  535. package/src/components/modal/Modal.tsx +0 -63
  536. package/src/components/modal/index.ts +0 -2
  537. package/src/components/modal/meta.ts +0 -10
  538. package/src/components/modal/types.ts +0 -16
  539. package/src/components/pagination/Pagination.tsx +0 -199
  540. package/src/components/pagination/index.ts +0 -2
  541. package/src/components/pagination/meta.ts +0 -10
  542. package/src/components/rating/Rating.tsx +0 -42
  543. package/src/components/rating/index.ts +0 -2
  544. package/src/components/rating/resolveRatingSegments.test.ts +0 -60
  545. package/src/components/rating/resolveRatingSegments.ts +0 -34
  546. package/src/components/rating/types.ts +0 -37
  547. package/src/components/search-bar/index.ts +0 -2
  548. package/src/components/search-bar/meta.ts +0 -10
  549. package/src/components/search-bar/types.ts +0 -14
  550. package/src/components/select/Select.tsx +0 -67
  551. package/src/components/select/index.ts +0 -2
  552. package/src/components/select/meta.ts +0 -10
  553. package/src/components/tabs/Tabs.tsx +0 -129
  554. package/src/components/tabs/index.ts +0 -2
  555. package/src/components/tabs/meta.ts +0 -10
  556. package/src/components/tabs/types.ts +0 -25
  557. package/src/components/toolbar/Toolbar.tsx +0 -48
  558. package/src/components/toolbar/ToolbarAction.tsx +0 -28
  559. package/src/components/toolbar/index.ts +0 -3
  560. package/src/components/toolbar/meta.ts +0 -19
  561. package/src/components/toolbar/types.ts +0 -21
@@ -0,0 +1,118 @@
1
+ export declare const paginationMeta: {
2
+ readonly name: "Pagination";
3
+ readonly category: "component";
4
+ readonly directManifestNode: true;
5
+ readonly allowedChildren: readonly [];
6
+ readonly description: "Navigates between pages of a finite result set without changing app routes.";
7
+ readonly blueprint: {
8
+ readonly label: "Pagination";
9
+ readonly defaultProps: {
10
+ readonly boundaryCount: 1;
11
+ readonly compact: false;
12
+ readonly page: 1;
13
+ readonly pageCount: 10;
14
+ readonly siblingCount: 1;
15
+ };
16
+ };
17
+ readonly bindings: {
18
+ readonly props: {
19
+ readonly page: {
20
+ readonly label: "Page";
21
+ readonly description: "Current one-based page.";
22
+ readonly value: {
23
+ readonly type: "number";
24
+ };
25
+ readonly acceptsFallback: true;
26
+ readonly acceptsTransforms: true;
27
+ };
28
+ };
29
+ readonly events: {
30
+ readonly pageChange: {
31
+ readonly label: "Page change";
32
+ readonly description: "Runs when a new page is requested.";
33
+ readonly payload: {
34
+ readonly eventType: "pagination.pageChange";
35
+ readonly fields: readonly [{
36
+ readonly path: "page";
37
+ readonly type: "number";
38
+ readonly label: "Page";
39
+ }];
40
+ };
41
+ };
42
+ };
43
+ };
44
+ readonly events: {
45
+ readonly pageChange: {
46
+ readonly label: "Page change";
47
+ readonly eventType: "pagination.pageChange";
48
+ readonly payloadFields: readonly [{
49
+ readonly path: "page";
50
+ readonly type: "number";
51
+ readonly label: "Page";
52
+ }];
53
+ };
54
+ };
55
+ readonly props: {
56
+ readonly page: {
57
+ readonly type: "number";
58
+ readonly category: "State";
59
+ readonly label: "Page";
60
+ readonly default: 1;
61
+ };
62
+ readonly pageCount: {
63
+ readonly type: "number";
64
+ readonly category: "Data";
65
+ readonly label: "Page count";
66
+ readonly default: 10;
67
+ };
68
+ readonly siblingCount: {
69
+ readonly type: "number";
70
+ readonly category: "Layout";
71
+ readonly label: "Sibling count";
72
+ readonly default: 1;
73
+ };
74
+ readonly boundaryCount: {
75
+ readonly type: "number";
76
+ readonly category: "Layout";
77
+ readonly label: "Boundary count";
78
+ readonly default: 1;
79
+ };
80
+ readonly showFirstLast: {
81
+ readonly type: "boolean";
82
+ readonly category: "Behavior";
83
+ readonly label: "Show first/last";
84
+ };
85
+ readonly compact: {
86
+ readonly type: "boolean";
87
+ readonly category: "Layout";
88
+ readonly label: "Compact";
89
+ readonly default: false;
90
+ };
91
+ readonly disabled: {
92
+ readonly type: "boolean";
93
+ readonly category: "State";
94
+ readonly label: "Disabled";
95
+ };
96
+ readonly previousLabel: {
97
+ readonly type: "string";
98
+ readonly category: "Content";
99
+ readonly label: "Previous label";
100
+ };
101
+ readonly nextLabel: {
102
+ readonly type: "string";
103
+ readonly category: "Content";
104
+ readonly label: "Next label";
105
+ };
106
+ readonly firstLabel: {
107
+ readonly type: "string";
108
+ readonly category: "Content";
109
+ readonly label: "First label";
110
+ };
111
+ readonly lastLabel: {
112
+ readonly type: "string";
113
+ readonly category: "Content";
114
+ readonly label: "Last label";
115
+ };
116
+ };
117
+ };
118
+ //# sourceMappingURL=paginationMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginationMeta.d.ts","sourceRoot":"","sources":["../../../src/features/pagination/paginationMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDW,CAAC"}
@@ -0,0 +1,53 @@
1
+ export const paginationMeta = {
2
+ name: 'Pagination',
3
+ category: 'component',
4
+ directManifestNode: true,
5
+ allowedChildren: [],
6
+ description: 'Navigates between pages of a finite result set without changing app routes.',
7
+ blueprint: {
8
+ label: 'Pagination',
9
+ defaultProps: { boundaryCount: 1, compact: false, page: 1, pageCount: 10, siblingCount: 1 },
10
+ },
11
+ bindings: {
12
+ props: {
13
+ page: {
14
+ label: 'Page',
15
+ description: 'Current one-based page.',
16
+ value: { type: 'number' },
17
+ acceptsFallback: true,
18
+ acceptsTransforms: true,
19
+ },
20
+ },
21
+ events: {
22
+ pageChange: {
23
+ label: 'Page change',
24
+ description: 'Runs when a new page is requested.',
25
+ payload: {
26
+ eventType: 'pagination.pageChange',
27
+ fields: [{ path: 'page', type: 'number', label: 'Page' }],
28
+ },
29
+ },
30
+ },
31
+ },
32
+ events: {
33
+ pageChange: {
34
+ label: 'Page change',
35
+ eventType: 'pagination.pageChange',
36
+ payloadFields: [{ path: 'page', type: 'number', label: 'Page' }],
37
+ },
38
+ },
39
+ props: {
40
+ page: { type: 'number', category: 'State', label: 'Page', default: 1 },
41
+ pageCount: { type: 'number', category: 'Data', label: 'Page count', default: 10 },
42
+ siblingCount: { type: 'number', category: 'Layout', label: 'Sibling count', default: 1 },
43
+ boundaryCount: { type: 'number', category: 'Layout', label: 'Boundary count', default: 1 },
44
+ showFirstLast: { type: 'boolean', category: 'Behavior', label: 'Show first/last' },
45
+ compact: { type: 'boolean', category: 'Layout', label: 'Compact', default: false },
46
+ disabled: { type: 'boolean', category: 'State', label: 'Disabled' },
47
+ previousLabel: { type: 'string', category: 'Content', label: 'Previous label' },
48
+ nextLabel: { type: 'string', category: 'Content', label: 'Next label' },
49
+ firstLabel: { type: 'string', category: 'Content', label: 'First label' },
50
+ lastLabel: { type: 'string', category: 'Content', label: 'Last label' },
51
+ },
52
+ };
53
+ //# sourceMappingURL=paginationMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginationMeta.js","sourceRoot":"","sources":["../../../src/features/pagination/paginationMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B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EAAE,OAAO,EAAE,EAAE,EAAE;QACjF,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,EAAE;QACxF,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC,EAAE;QAC1F,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,iBAAiB,EAAE;QAClF,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE;QAClF,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE;QACnE,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,gBAAgB,EAAE;QAC/E,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE;QACvE,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;QACzE,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE;KACxE;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata/types';\n\nexport const paginationMeta = {\n name: 'Pagination',\n category: 'component',\n directManifestNode: true,\n allowedChildren: [],\n description: 'Navigates between pages of a finite result set without changing app routes.',\n blueprint: {\n label: 'Pagination',\n defaultProps: { boundaryCount: 1, compact: false, page: 1, pageCount: 10, siblingCount: 1 },\n },\n bindings: {\n props: {\n page: {\n label: 'Page',\n description: 'Current one-based page.',\n value: { type: 'number' },\n acceptsFallback: true,\n acceptsTransforms: true,\n },\n },\n events: {\n pageChange: {\n label: 'Page change',\n description: 'Runs when a new page is requested.',\n payload: {\n eventType: 'pagination.pageChange',\n fields: [{ path: 'page', type: 'number', label: 'Page' }],\n },\n },\n },\n },\n events: {\n pageChange: {\n label: 'Page change',\n eventType: 'pagination.pageChange',\n payloadFields: [{ path: 'page', type: 'number', label: 'Page' }],\n },\n },\n props: {\n page: { type: 'number', category: 'State', label: 'Page', default: 1 },\n pageCount: { type: 'number', category: 'Data', label: 'Page count', default: 10 },\n siblingCount: { type: 'number', category: 'Layout', label: 'Sibling count', default: 1 },\n boundaryCount: { type: 'number', category: 'Layout', label: 'Boundary count', default: 1 },\n showFirstLast: { type: 'boolean', category: 'Behavior', label: 'Show first/last' },\n compact: { type: 'boolean', category: 'Layout', label: 'Compact', default: false },\n disabled: { type: 'boolean', category: 'State', label: 'Disabled' },\n previousLabel: { type: 'string', category: 'Content', label: 'Previous label' },\n nextLabel: { type: 'string', category: 'Content', label: 'Next label' },\n firstLabel: { type: 'string', category: 'Content', label: 'First label' },\n lastLabel: { type: 'string', category: 'Content', label: 'Last label' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,3 @@
1
+ export type { PaginationProps } from '../../types/pagination';
2
+ export { Pagination } from './adapters/inbound/Pagination';
3
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/pagination/public.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Pagination } from './adapters/inbound/Pagination';
2
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/pagination/public.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export type { PaginationProps } from '../../types/pagination';\nexport { Pagination } from './adapters/inbound/Pagination';\n"]}
@@ -0,0 +1,3 @@
1
+ /*** Clamps a requested pagination page to the valid one-based page range. */
2
+ export declare function resolvePaginationPage(value: number, pageCount: number): number;
3
+ //# sourceMappingURL=resolvePaginationPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePaginationPage.d.ts","sourceRoot":"","sources":["../../../../src/features/pagination/utils/resolvePaginationPage.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E"}
@@ -0,0 +1,7 @@
1
+ /*** Clamps a requested pagination page to the valid one-based page range. */
2
+ export function resolvePaginationPage(value, pageCount) {
3
+ if (!Number.isFinite(value))
4
+ return 1;
5
+ return Math.min(Math.max(Math.trunc(value), 1), Math.max(pageCount, 1));
6
+ }
7
+ //# sourceMappingURL=resolvePaginationPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePaginationPage.js","sourceRoot":"","sources":["../../../../src/features/pagination/utils/resolvePaginationPage.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,MAAM,UAAU,qBAAqB,CAAC,KAAa,EAAE,SAAiB;IACpE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC;IAEtC,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1E,CAAC","sourcesContent":["/*** Clamps a requested pagination page to the valid one-based page range. */\nexport function resolvePaginationPage(value: number, pageCount: number): number {\n if (!Number.isFinite(value)) return 1;\n\n return Math.min(Math.max(Math.trunc(value), 1), Math.max(pageCount, 1));\n}\n"]}
@@ -0,0 +1,17 @@
1
+ /*** Normalizes pagination input and resolves visible page and ellipsis items. */
2
+ export declare function resolvePaginationState({ page, pageCount, siblingCount, boundaryCount, compact, }: PaginationStateInput): PaginationState;
3
+ type PaginationItem = number | 'ellipsis';
4
+ interface PaginationStateInput {
5
+ page: number;
6
+ pageCount: number;
7
+ siblingCount: number | undefined;
8
+ boundaryCount: number | undefined;
9
+ compact: boolean;
10
+ }
11
+ interface PaginationState {
12
+ currentPage: number;
13
+ pageCount: number;
14
+ items: readonly PaginationItem[];
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=resolvePaginationState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePaginationState.d.ts","sourceRoot":"","sources":["../../../../src/features/pagination/utils/resolvePaginationState.ts"],"names":[],"mappings":"AAEA,iFAAiF;AACjF,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,OAAO,GACR,EAAE,oBAAoB,GAAG,eAAe,CAkCxC;AAED,KAAK,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAE1C,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC"}
@@ -0,0 +1,34 @@
1
+ import { resolvePaginationPage } from './resolvePaginationPage';
2
+ /*** Normalizes pagination input and resolves visible page and ellipsis items. */
3
+ export function resolvePaginationState({ page, pageCount, siblingCount, boundaryCount, compact, }) {
4
+ const normalizedPageCount = Math.max(0, Math.trunc(Number.isFinite(pageCount) ? pageCount : 0));
5
+ const currentPage = resolvePaginationPage(page, normalizedPageCount);
6
+ const safeSiblingCount = normalizeCount(siblingCount, 1);
7
+ const safeBoundaryCount = normalizeCount(boundaryCount, 1);
8
+ if (normalizedPageCount <= 0) {
9
+ return { currentPage, items: [], pageCount: normalizedPageCount };
10
+ }
11
+ if (compact) {
12
+ return { currentPage, items: [currentPage], pageCount: normalizedPageCount };
13
+ }
14
+ const boundaries = createRange(1, Math.min(safeBoundaryCount, normalizedPageCount));
15
+ const trailingBoundaries = createRange(Math.max(normalizedPageCount - safeBoundaryCount + 1, 1), normalizedPageCount);
16
+ const siblings = createRange(Math.max(currentPage - safeSiblingCount, 1), Math.min(currentPage + safeSiblingCount, normalizedPageCount));
17
+ const pages = [...new Set([...boundaries, ...siblings, ...trailingBoundaries])].sort((left, right) => left - right);
18
+ const items = pages.flatMap((nextPage, index) => {
19
+ const previousPage = index > 0 ? pages.at(index - 1) : undefined;
20
+ return previousPage !== undefined && nextPage - previousPage > 1
21
+ ? ['ellipsis', nextPage]
22
+ : [nextPage];
23
+ });
24
+ return { currentPage, items, pageCount: normalizedPageCount };
25
+ }
26
+ /*** Creates an inclusive numeric range for pagination boundaries and siblings. */
27
+ function createRange(start, end) {
28
+ return end < start ? [] : Array.from({ length: end - start + 1 }, (_, index) => start + index);
29
+ }
30
+ /*** Normalizes optional pagination counts to finite non-negative integers. */
31
+ function normalizeCount(value, fallback) {
32
+ return value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.trunc(value));
33
+ }
34
+ //# sourceMappingURL=resolvePaginationState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvePaginationState.js","sourceRoot":"","sources":["../../../../src/features/pagination/utils/resolvePaginationState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB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CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AACpG,CAAC","sourcesContent":["import { resolvePaginationPage } from './resolvePaginationPage';\n\n/*** Normalizes pagination input and resolves visible page and ellipsis items. */\nexport function resolvePaginationState({\n page,\n pageCount,\n siblingCount,\n boundaryCount,\n compact,\n}: PaginationStateInput): PaginationState {\n const normalizedPageCount = Math.max(0, Math.trunc(Number.isFinite(pageCount) ? pageCount : 0));\n const currentPage = resolvePaginationPage(page, normalizedPageCount);\n const safeSiblingCount = normalizeCount(siblingCount, 1);\n const safeBoundaryCount = normalizeCount(boundaryCount, 1);\n\n if (normalizedPageCount <= 0) {\n return { currentPage, items: [], pageCount: normalizedPageCount };\n }\n\n if (compact) {\n return { currentPage, items: [currentPage], pageCount: normalizedPageCount };\n }\n\n const boundaries = createRange(1, Math.min(safeBoundaryCount, normalizedPageCount));\n const trailingBoundaries = createRange(\n Math.max(normalizedPageCount - safeBoundaryCount + 1, 1),\n normalizedPageCount,\n );\n const siblings = createRange(\n Math.max(currentPage - safeSiblingCount, 1),\n Math.min(currentPage + safeSiblingCount, normalizedPageCount),\n );\n const pages = [...new Set([...boundaries, ...siblings, ...trailingBoundaries])].sort(\n (left, right) => left - right,\n );\n const items = pages.flatMap<PaginationItem>((nextPage, index) => {\n const previousPage = index > 0 ? pages.at(index - 1) : undefined;\n return previousPage !== undefined && nextPage - previousPage > 1\n ? ['ellipsis', nextPage]\n : [nextPage];\n });\n\n return { currentPage, items, pageCount: normalizedPageCount };\n}\n\ntype PaginationItem = number | 'ellipsis';\n\ninterface PaginationStateInput {\n page: number;\n pageCount: number;\n siblingCount: number | undefined;\n boundaryCount: number | undefined;\n compact: boolean;\n}\n\ninterface PaginationState {\n currentPage: number;\n pageCount: number;\n items: readonly PaginationItem[];\n}\n\n/*** Creates an inclusive numeric range for pagination boundaries and siblings. */\nfunction createRange(start: number, end: number): number[] {\n return end < start ? [] : Array.from({ length: end - start + 1 }, (_, index) => start + index);\n}\n\n/*** Normalizes optional pagination counts to finite non-negative integers. */\nfunction normalizeCount(value: number | undefined, fallback: number): number {\n return value === undefined || !Number.isFinite(value) ? fallback : Math.max(0, Math.trunc(value));\n}\n"]}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { PopoverMenuProps } from '../../../../types/popover-menu';
3
+ /*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */
4
+ export declare const PopoverMenu: (props: PopoverMenuProps) => React.ReactElement | null;
5
+ //# sourceMappingURL=PopoverMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoverMenu.d.ts","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAqB,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAI1F,sFAAsF;AACtF,eAAO,MAAM,WAAW,wDAAuC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { PopoverMenu as SurfacePopoverMenu, } from '@ankhorage/surface';
2
+ import React from 'react';
3
+ import { resolveIconSize } from '../../../../internal/recipes';
4
+ import { useZoraTheme } from '../../../../theme/useZoraTheme';
5
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
6
+ import { Icon } from '../../../icon/public';
7
+ import { Box } from '../../../layout/public';
8
+ /*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */
9
+ export const PopoverMenu = withZoraThemeScope(PopoverMenuInner);
10
+ /*** Maps ZORA action presentation into the Surface action-menu boundary. */
11
+ function PopoverMenuInner({ themeId: _themeId, mode: _mode, actions, onDismiss, ...props }) {
12
+ const { theme } = useZoraTheme();
13
+ const iconColor = theme.semantics.content.muted;
14
+ const surfaceActions = React.useMemo(() => actions.map((action) => toSurfaceAction(action, iconColor)), [actions, iconColor]);
15
+ return <SurfacePopoverMenu {...props} actions={surfaceActions} dismiss={onDismiss}/>;
16
+ }
17
+ /*** Maps one ZORA PopoverMenu action to the Surface action contract. */
18
+ function toSurfaceAction(action, iconColor) {
19
+ return {
20
+ activate: action.onPress,
21
+ description: action.description,
22
+ disabled: action.disabled,
23
+ id: action.id,
24
+ intent: action.intent,
25
+ leading: renderActionLeading(action, iconColor),
26
+ selected: action.selected,
27
+ title: action.title,
28
+ trailing: renderActionTrailing(action),
29
+ };
30
+ }
31
+ /*** Resolves explicit leading content or the configured action icon. */
32
+ function renderActionLeading(action, iconColor) {
33
+ if (action.leading !== undefined)
34
+ return action.leading;
35
+ if (action.icon === undefined)
36
+ return undefined;
37
+ return <Icon {...action.icon} color={iconColor} size={resolveIconSize('s')}/>;
38
+ }
39
+ /*** Wraps optional trailing action content in the ZORA layout boundary. */
40
+ function renderActionTrailing(action) {
41
+ return action.trailing === undefined ? undefined : <Box>{action.trailing}</Box>;
42
+ }
43
+ //# sourceMappingURL=PopoverMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopoverMenu.js","sourceRoot":"","sources":["../../../../../src/features/popover-menu/adapters/inbound/PopoverMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,kBAAkB,GAElC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,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,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE7C,sFAAsF;AACtF,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;AAEhE,4EAA4E;AAC5E,SAAS,gBAAgB,CAAC,EACxB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,OA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,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,EAAG,CAAC;AACjF,CAAC;AAED,2EAA2E;AAC3E,SAAS,oBAAoB,CAAC,MAAyB;IACrD,OAAO,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC;AAClF,CAAC","sourcesContent":["import {\n PopoverMenu as SurfacePopoverMenu,\n type PopoverMenuAction as SurfacePopoverMenuAction,\n} from '@ankhorage/surface';\nimport React from 'react';\n\nimport { resolveIconSize } from '../../../../internal/recipes';\nimport { useZoraTheme } from '../../../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { PopoverMenuAction, PopoverMenuProps } from '../../../../types/popover-menu';\nimport { Icon } from '../../../icon/public';\nimport { Box } from '../../../layout/public';\n\n/*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */\nexport const PopoverMenu = withZoraThemeScope(PopoverMenuInner);\n\n/*** Maps ZORA action presentation into the Surface action-menu boundary. */\nfunction PopoverMenuInner({\n themeId: _themeId,\n mode: _mode,\n actions,\n onDismiss,\n ...props\n}: PopoverMenuProps) {\n const { theme } = useZoraTheme();\n const iconColor = theme.semantics.content.muted;\n const surfaceActions = React.useMemo(\n () => actions.map((action) => toSurfaceAction(action, iconColor)),\n [actions, iconColor],\n );\n\n return <SurfacePopoverMenu {...props} actions={surfaceActions} dismiss={onDismiss} />;\n}\n\n/*** Maps one ZORA PopoverMenu action to the Surface action contract. */\nfunction toSurfaceAction(action: PopoverMenuAction, iconColor: string): SurfacePopoverMenuAction {\n return {\n activate: action.onPress,\n description: action.description,\n disabled: action.disabled,\n id: action.id,\n intent: action.intent,\n leading: renderActionLeading(action, iconColor),\n selected: action.selected,\n title: action.title,\n trailing: renderActionTrailing(action),\n };\n}\n\n/*** Resolves explicit leading content or the configured action icon. */\nfunction renderActionLeading(action: PopoverMenuAction, iconColor: string): React.ReactNode {\n if (action.leading !== undefined) return action.leading;\n if (action.icon === undefined) return undefined;\n return <Icon {...action.icon} color={iconColor} size={resolveIconSize('s')} />;\n}\n\n/*** Wraps optional trailing action content in the ZORA layout boundary. */\nfunction renderActionTrailing(action: PopoverMenuAction): React.ReactNode {\n return action.trailing === undefined ? undefined : <Box>{action.trailing}</Box>;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ export declare const popoverMenuMeta: {
2
+ readonly name: "PopoverMenu";
3
+ readonly category: "component";
4
+ readonly directManifestNode: false;
5
+ readonly allowedChildren: readonly [];
6
+ readonly note: "Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.";
7
+ readonly props: {};
8
+ };
9
+ //# sourceMappingURL=popoverMenuMeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popoverMenuMeta.d.ts","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;CAOU,CAAC"}
@@ -0,0 +1,9 @@
1
+ export const popoverMenuMeta = {
2
+ name: 'PopoverMenu',
3
+ category: 'component',
4
+ directManifestNode: false,
5
+ allowedChildren: [],
6
+ note: 'Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.',
7
+ props: {},
8
+ };
9
+ //# sourceMappingURL=popoverMenuMeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popoverMenuMeta.js","sourceRoot":"","sources":["../../../src/features/popover-menu/popoverMenuMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,iHAAiH;IACvH,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const popoverMenuMeta = {\n name: 'PopoverMenu',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Code-facing anchored action menu; the trigger is a render prop and is not serialized as a direct manifest node.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -0,0 +1,3 @@
1
+ export type { PopoverMenuAction, PopoverMenuActionIntent, PopoverMenuProps, } from '../../types/popover-menu';
2
+ export { PopoverMenu } from './adapters/inbound/PopoverMenu';
3
+ //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/popover-menu/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { PopoverMenu } from './adapters/inbound/PopoverMenu';
2
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/popover-menu/public.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["export type {\n PopoverMenuAction,\n PopoverMenuActionIntent,\n PopoverMenuProps,\n} from '../../types/popover-menu';\nexport { PopoverMenu } from './adapters/inbound/PopoverMenu';\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":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAI5D,kEAAkE;AAClE,eAAO,MAAM,MAAM,mDAAkC,CAAC"}
@@ -0,0 +1,49 @@
1
+ import { Inline } from '../../../../foundation';
2
+ import { resolveIconSize } from '../../../../internal/recipes';
3
+ import { useZoraTheme } from '../../../../theme/useZoraTheme';
4
+ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
5
+ import { Icon } from '../../../icon/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 (<Inline 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
+ </Inline>);
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":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,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,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,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAC5D;MAAA,CAAC,QAAQ,C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S;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 { Inline } from '../../../../foundation';\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 { 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 <Inline 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 </Inline>\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"]}