@ankhorage/zora 19.0.0 → 20.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 (1287) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -2
  3. package/dist/features/accordion/accordionItemMeta.js +1 -1
  4. package/dist/features/accordion/accordionItemMeta.js.map +1 -1
  5. package/dist/features/accordion/accordionMeta.js.map +1 -1
  6. package/dist/features/accordion/adapters/inbound/Accordion.d.ts.map +1 -1
  7. package/dist/features/accordion/adapters/inbound/Accordion.js +1 -1
  8. package/dist/features/accordion/adapters/inbound/Accordion.js.map +1 -1
  9. package/dist/features/accordion/adapters/inbound/AccordionItem.d.ts.map +1 -1
  10. package/dist/features/accordion/adapters/inbound/AccordionItem.js +1 -1
  11. package/dist/features/accordion/adapters/inbound/AccordionItem.js.map +1 -1
  12. package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -1
  13. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts.map +1 -1
  14. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +2 -2
  15. package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js.map +1 -1
  16. package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
  17. package/dist/features/app-bar/adapters/inbound/AppBar.js +2 -2
  18. package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
  19. package/dist/features/app-bar/appBarMeta.js.map +1 -1
  20. package/dist/features/auth/adapters/inbound/AuthForm.d.ts +1 -1
  21. package/dist/features/auth/adapters/inbound/AuthForm.d.ts.map +1 -1
  22. package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -1
  23. package/dist/features/auth/adapters/inbound/AuthFormField.d.ts +1 -1
  24. package/dist/features/auth/adapters/inbound/AuthFormField.d.ts.map +1 -1
  25. package/dist/features/auth/adapters/inbound/AuthFormField.js.map +1 -1
  26. package/dist/features/auth/adapters/inbound/ForgotPasswordForm.d.ts.map +1 -1
  27. package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +1 -1
  28. package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -1
  29. package/dist/features/auth/adapters/inbound/OAuthProviderButton.d.ts.map +1 -1
  30. package/dist/features/auth/adapters/inbound/OAuthProviderButton.js +1 -1
  31. package/dist/features/auth/adapters/inbound/OAuthProviderButton.js.map +1 -1
  32. package/dist/features/auth/adapters/inbound/OAuthProviderList.d.ts.map +1 -1
  33. package/dist/features/auth/adapters/inbound/OAuthProviderList.js +1 -1
  34. package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -1
  35. package/dist/features/auth/adapters/inbound/OtpForm.d.ts.map +1 -1
  36. package/dist/features/auth/adapters/inbound/OtpForm.js +1 -1
  37. package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -1
  38. package/dist/features/auth/adapters/inbound/SignInForm.d.ts.map +1 -1
  39. package/dist/features/auth/adapters/inbound/SignInForm.js +1 -1
  40. package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -1
  41. package/dist/features/auth/adapters/inbound/SignUpForm.d.ts.map +1 -1
  42. package/dist/features/auth/adapters/inbound/SignUpForm.js +1 -1
  43. package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -1
  44. package/dist/features/auth/forgotPasswordFormMeta.js.map +1 -1
  45. package/dist/features/auth/oauthProviderButtonMeta.js +1 -1
  46. package/dist/features/auth/oauthProviderButtonMeta.js.map +1 -1
  47. package/dist/features/auth/oauthProviderListMeta.js +1 -1
  48. package/dist/features/auth/oauthProviderListMeta.js.map +1 -1
  49. package/dist/features/auth/otpFormMeta.js.map +1 -1
  50. package/dist/features/auth/signInFormMeta.js.map +1 -1
  51. package/dist/features/auth/signUpFormMeta.js.map +1 -1
  52. package/dist/features/authoring/allowedChildren.d.ts.map +1 -0
  53. package/dist/features/authoring/allowedChildren.js.map +1 -0
  54. package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts +3 -3
  55. package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts.map +1 -1
  56. package/dist/{metadata → features/authoring}/bindableComponentMeta.js +2 -2
  57. package/dist/features/authoring/bindableComponentMeta.js.map +1 -0
  58. package/dist/features/authoring/componentMeta.d.ts +3 -0
  59. package/dist/features/authoring/componentMeta.d.ts.map +1 -0
  60. package/dist/features/authoring/componentMeta.js +184 -0
  61. package/dist/features/authoring/componentMeta.js.map +1 -0
  62. package/dist/{constants.d.ts → features/authoring/constants.d.ts} +1 -0
  63. package/dist/features/authoring/constants.d.ts.map +1 -0
  64. package/dist/{constants.js → features/authoring/constants.js} +7 -0
  65. package/dist/features/authoring/constants.js.map +1 -0
  66. package/dist/{metadata → features/authoring}/index.d.ts +7 -6
  67. package/dist/features/authoring/index.d.ts.map +1 -0
  68. package/dist/features/authoring/index.js +8 -0
  69. package/dist/features/authoring/index.js.map +1 -0
  70. package/dist/features/authoring/themeRecipeMeta.d.ts +3 -0
  71. package/dist/features/authoring/themeRecipeMeta.d.ts.map +1 -0
  72. package/dist/features/authoring/themeRecipeMeta.js +13 -0
  73. package/dist/features/authoring/themeRecipeMeta.js.map +1 -0
  74. package/dist/{utils → features/authoring/utils}/createManifestBindings.d.ts +1 -1
  75. package/dist/features/authoring/utils/createManifestBindings.d.ts.map +1 -0
  76. package/dist/features/authoring/utils/createManifestBindings.js.map +1 -0
  77. package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.d.ts +1 -1
  78. package/dist/features/authoring/utils/finalizeFeatureMetadata.d.ts.map +1 -0
  79. package/dist/features/authoring/utils/finalizeFeatureMetadata.js.map +1 -0
  80. package/dist/features/avatar/adapters/inbound/Avatar.d.ts.map +1 -1
  81. package/dist/features/avatar/adapters/inbound/Avatar.js +2 -2
  82. package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -1
  83. package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts.map +1 -1
  84. package/dist/features/avatar/adapters/inbound/AvatarGroup.js +2 -2
  85. package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -1
  86. package/dist/features/avatar/avatarGroupMeta.js.map +1 -1
  87. package/dist/features/avatar/avatarMeta.js.map +1 -1
  88. package/dist/features/badge/adapters/inbound/Badge.d.ts.map +1 -1
  89. package/dist/features/badge/adapters/inbound/Badge.js +2 -2
  90. package/dist/features/badge/adapters/inbound/Badge.js.map +1 -1
  91. package/dist/features/badge/badgeMeta.js.map +1 -1
  92. package/dist/features/badge/utils/resolveBadgeRecipe.d.ts +10 -0
  93. package/dist/features/badge/utils/resolveBadgeRecipe.d.ts.map +1 -0
  94. package/dist/features/badge/utils/resolveBadgeRecipe.js +4 -0
  95. package/dist/features/badge/utils/resolveBadgeRecipe.js.map +1 -0
  96. package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts.map +1 -1
  97. package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +3 -3
  98. package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
  99. package/dist/features/bottom-sheet/bottomSheetMeta.js +1 -1
  100. package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -1
  101. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -1
  102. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +3 -3
  103. package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -1
  104. package/dist/features/breadcrumbs/breadcrumbsMeta.js.map +1 -1
  105. package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -1
  106. package/dist/features/button/adapters/inbound/Button.js +2 -2
  107. package/dist/features/button/adapters/inbound/Button.js.map +1 -1
  108. package/dist/features/button/adapters/inbound/ButtonGroup.d.ts.map +1 -1
  109. package/dist/features/button/adapters/inbound/ButtonGroup.js +1 -1
  110. package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -1
  111. package/dist/features/button/adapters/inbound/IconButton.d.ts.map +1 -1
  112. package/dist/features/button/adapters/inbound/IconButton.js +2 -2
  113. package/dist/features/button/adapters/inbound/IconButton.js.map +1 -1
  114. package/dist/features/button/buttonGroupMeta.js.map +1 -1
  115. package/dist/features/button/buttonMeta.js +2 -2
  116. package/dist/features/button/buttonMeta.js.map +1 -1
  117. package/dist/features/button/iconButtonMeta.js.map +1 -1
  118. package/dist/features/button/utils/resolveButtonRecipe.d.ts +10 -0
  119. package/dist/features/button/utils/resolveButtonRecipe.d.ts.map +1 -0
  120. package/dist/features/button/utils/resolveButtonRecipe.js +4 -0
  121. package/dist/features/button/utils/resolveButtonRecipe.js.map +1 -0
  122. package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +4 -2
  123. package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts.map +1 -1
  124. package/dist/features/button/utils/resolveButtonThemeRecipe.js +1 -1
  125. package/dist/features/button/utils/resolveButtonThemeRecipe.js.map +1 -1
  126. package/dist/features/button/utils/themeRecipeMeta.js +1 -1
  127. package/dist/features/button/utils/themeRecipeMeta.js.map +1 -1
  128. package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -1
  129. package/dist/features/card/adapters/inbound/Card.js +3 -3
  130. package/dist/features/card/adapters/inbound/Card.js.map +1 -1
  131. package/dist/features/card/adapters/inbound/MediaCard.d.ts.map +1 -1
  132. package/dist/features/card/adapters/inbound/MediaCard.js +2 -2
  133. package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -1
  134. package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -1
  135. package/dist/features/card/adapters/inbound/MetricCard.js +4 -3
  136. package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -1
  137. package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -1
  138. package/dist/features/card/adapters/inbound/PostCard.js +2 -2
  139. package/dist/features/card/adapters/inbound/PostCard.js.map +1 -1
  140. package/dist/features/card/adapters/inbound/ProductCard.d.ts +1 -1
  141. package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -1
  142. package/dist/features/card/adapters/inbound/ProductCard.js +1 -1
  143. package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -1
  144. package/dist/features/card/cardMeta.js +2 -2
  145. package/dist/features/card/cardMeta.js.map +1 -1
  146. package/dist/features/card/mediaCardMeta.js +1 -1
  147. package/dist/features/card/mediaCardMeta.js.map +1 -1
  148. package/dist/features/card/metricCardMeta.js.map +1 -1
  149. package/dist/features/card/postCardMeta.js +1 -1
  150. package/dist/features/card/postCardMeta.js.map +1 -1
  151. package/dist/features/card/productCardMeta.js.map +1 -1
  152. package/dist/features/card/utils/resolveCardThemeRecipe.d.ts +1 -1
  153. package/dist/features/card/utils/resolveCardThemeRecipe.d.ts.map +1 -1
  154. package/dist/features/card/utils/resolveCardThemeRecipe.js.map +1 -1
  155. package/dist/features/card/utils/resolveCardVariant.d.ts +4 -0
  156. package/dist/features/card/utils/resolveCardVariant.d.ts.map +1 -0
  157. package/dist/features/card/utils/resolveCardVariant.js +12 -0
  158. package/dist/features/card/utils/resolveCardVariant.js.map +1 -0
  159. package/dist/features/card/utils/themeRecipeMeta.js.map +1 -1
  160. package/dist/features/chat/adapters/inbound/ChatListItem.d.ts.map +1 -1
  161. package/dist/features/chat/adapters/inbound/ChatListItem.js +2 -2
  162. package/dist/features/chat/adapters/inbound/ChatListItem.js.map +1 -1
  163. package/dist/features/chat/adapters/inbound/MessageBubble.d.ts.map +1 -1
  164. package/dist/features/chat/adapters/inbound/MessageBubble.js +2 -2
  165. package/dist/features/chat/adapters/inbound/MessageBubble.js.map +1 -1
  166. package/dist/features/chat/chatListItemMeta.js.map +1 -1
  167. package/dist/features/chat/messageBubbleMeta.js +1 -1
  168. package/dist/features/chat/messageBubbleMeta.js.map +1 -1
  169. package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -1
  170. package/dist/features/chip/adapters/inbound/Chip.js +3 -3
  171. package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
  172. package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -1
  173. package/dist/features/chip/adapters/inbound/ChipGroup.js +1 -1
  174. package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -1
  175. package/dist/features/chip/chipGroupMeta.js.map +1 -1
  176. package/dist/features/chip/chipMeta.js.map +1 -1
  177. package/dist/features/chip/utils/resolveChipColors.d.ts +1 -1
  178. package/dist/features/chip/utils/resolveChipColors.d.ts.map +1 -1
  179. package/dist/features/chip/utils/resolveChipColors.js.map +1 -1
  180. package/dist/features/collection-editor/adapters/inbound/CollectionEditor.d.ts.map +1 -1
  181. package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js +1 -1
  182. package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js.map +1 -1
  183. package/dist/features/collection-editor/meta.js.map +1 -1
  184. package/dist/features/content-rail/adapters/inbound/ContentRail.d.ts.map +1 -1
  185. package/dist/features/content-rail/adapters/inbound/ContentRail.js +2 -2
  186. package/dist/features/content-rail/adapters/inbound/ContentRail.js.map +1 -1
  187. package/dist/features/content-rail/adapters/inbound/ContentRailFlow.d.ts.map +1 -1
  188. package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js +1 -1
  189. package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js.map +1 -1
  190. package/dist/features/content-rail/contentRailMeta.js +1 -1
  191. package/dist/features/content-rail/contentRailMeta.js.map +1 -1
  192. package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
  193. package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
  194. package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
  195. package/dist/features/data-table/dataTableMeta.js.map +1 -1
  196. package/dist/features/date-picker/adapters/inbound/DatePicker.native.d.ts.map +1 -1
  197. package/dist/features/date-picker/adapters/inbound/DatePicker.native.js +1 -1
  198. package/dist/features/date-picker/adapters/inbound/DatePicker.native.js.map +1 -1
  199. package/dist/features/date-picker/adapters/inbound/DatePicker.web.d.ts.map +1 -1
  200. package/dist/features/date-picker/adapters/inbound/DatePicker.web.js +1 -1
  201. package/dist/features/date-picker/adapters/inbound/DatePicker.web.js.map +1 -1
  202. package/dist/features/date-picker/datePickerMeta.js.map +1 -1
  203. package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -1
  204. package/dist/features/dialog/adapters/inbound/Dialog.js +2 -2
  205. package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -1
  206. package/dist/features/dialog/dialogMeta.js +1 -1
  207. package/dist/features/dialog/dialogMeta.js.map +1 -1
  208. package/dist/features/dialog/utils/resolveDialogWidth.d.ts +3 -0
  209. package/dist/features/dialog/utils/resolveDialogWidth.d.ts.map +1 -0
  210. package/dist/features/dialog/utils/resolveDialogWidth.js +12 -0
  211. package/dist/features/dialog/utils/resolveDialogWidth.js.map +1 -0
  212. package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -1
  213. package/dist/features/empty-state/adapters/inbound/EmptyState.js +1 -1
  214. package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
  215. package/dist/features/empty-state/emptyStateMeta.js.map +1 -1
  216. package/dist/features/form/adapters/inbound/Form.d.ts.map +1 -1
  217. package/dist/features/form/adapters/inbound/Form.js +1 -1
  218. package/dist/features/form/adapters/inbound/Form.js.map +1 -1
  219. package/dist/features/form/adapters/inbound/FormActions.d.ts.map +1 -1
  220. package/dist/features/form/adapters/inbound/FormActions.js +1 -1
  221. package/dist/features/form/adapters/inbound/FormActions.js.map +1 -1
  222. package/dist/features/form/adapters/inbound/FormError.d.ts.map +1 -1
  223. package/dist/features/form/adapters/inbound/FormError.js +2 -2
  224. package/dist/features/form/adapters/inbound/FormError.js.map +1 -1
  225. package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -1
  226. package/dist/features/form/checkbox/adapters/inbound/Checkbox.js +1 -1
  227. package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -1
  228. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -1
  229. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +1 -1
  230. package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -1
  231. package/dist/features/form/checkbox/checkboxMeta.js.map +1 -1
  232. package/dist/features/form/field/adapters/inbound/Field.d.ts.map +1 -1
  233. package/dist/features/form/field/adapters/inbound/Field.js +1 -1
  234. package/dist/features/form/field/adapters/inbound/Field.js.map +1 -1
  235. package/dist/features/form/field/meta.js.map +1 -1
  236. package/dist/features/form/formActionsMeta.js.map +1 -1
  237. package/dist/features/form/formErrorMeta.js.map +1 -1
  238. package/dist/features/form/formMeta.js.map +1 -1
  239. package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -1
  240. package/dist/features/form/radio/adapters/inbound/Radio.js +1 -1
  241. package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -1
  242. package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -1
  243. package/dist/features/form/radio/adapters/inbound/RadioGroup.js +2 -2
  244. package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
  245. package/dist/{constants/keyboard.d.ts → features/form/radio/constants.d.ts} +1 -1
  246. package/dist/features/form/radio/constants.d.ts.map +1 -0
  247. package/dist/{constants/keyboard.js → features/form/radio/constants.js} +1 -1
  248. package/dist/features/form/radio/constants.js.map +1 -0
  249. package/dist/features/form/radio/radioMeta.js +1 -1
  250. package/dist/features/form/radio/radioMeta.js.map +1 -1
  251. package/dist/features/form/radio/themeRecipeMeta.js +1 -1
  252. package/dist/features/form/radio/themeRecipeMeta.js.map +1 -1
  253. package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js +1 -1
  254. package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -1
  255. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +2 -2
  256. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts.map +1 -1
  257. package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.js.map +1 -1
  258. package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -1
  259. package/dist/features/form/search-input/adapters/inbound/SearchInput.js +1 -1
  260. package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -1
  261. package/dist/features/form/search-input/searchInputMeta.js.map +1 -1
  262. package/dist/features/form/select/adapters/inbound/Select.native.d.ts.map +1 -1
  263. package/dist/features/form/select/adapters/inbound/Select.native.js +1 -1
  264. package/dist/features/form/select/adapters/inbound/Select.native.js.map +1 -1
  265. package/dist/features/form/select/adapters/inbound/Select.web.d.ts.map +1 -1
  266. package/dist/features/form/select/adapters/inbound/Select.web.js +1 -1
  267. package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
  268. package/dist/features/form/select/selectMeta.js.map +1 -1
  269. package/dist/features/form/switch/adapters/inbound/Switch.d.ts.map +1 -1
  270. package/dist/features/form/switch/adapters/inbound/Switch.js +1 -1
  271. package/dist/features/form/switch/adapters/inbound/Switch.js.map +1 -1
  272. package/dist/features/form/switch/switchMeta.js.map +1 -1
  273. package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -1
  274. package/dist/features/form/text-input/adapters/inbound/TextInput.js +3 -3
  275. package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -1
  276. package/dist/features/form/text-input/textInputMeta.js.map +1 -1
  277. package/dist/features/gradient/adapters/inbound/Gradient.d.ts.map +1 -1
  278. package/dist/features/gradient/adapters/inbound/Gradient.js +1 -1
  279. package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -1
  280. package/dist/features/gradient/gradientMeta.js +1 -1
  281. package/dist/features/gradient/gradientMeta.js.map +1 -1
  282. package/dist/features/hero/adapters/inbound/Hero.d.ts.map +1 -1
  283. package/dist/features/hero/adapters/inbound/Hero.js +1 -1
  284. package/dist/features/hero/adapters/inbound/Hero.js.map +1 -1
  285. package/dist/features/hero/heroMeta.js.map +1 -1
  286. package/dist/features/icon/adapters/inbound/Icon.d.ts.map +1 -1
  287. package/dist/features/icon/adapters/inbound/Icon.js +1 -1
  288. package/dist/features/icon/adapters/inbound/Icon.js.map +1 -1
  289. package/dist/features/icon/iconMeta.js.map +1 -1
  290. package/dist/features/icon/utils/resolveIconSize.d.ts +3 -0
  291. package/dist/features/icon/utils/resolveIconSize.d.ts.map +1 -0
  292. package/dist/features/icon/utils/resolveIconSize.js +12 -0
  293. package/dist/features/icon/utils/resolveIconSize.js.map +1 -0
  294. package/dist/features/image/adapters/inbound/Image.d.ts.map +1 -1
  295. package/dist/features/image/adapters/inbound/Image.js +2 -2
  296. package/dist/features/image/adapters/inbound/Image.js.map +1 -1
  297. package/dist/features/image/imageMeta.js.map +1 -1
  298. package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.d.ts.map +1 -1
  299. package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js +1 -1
  300. package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js.map +1 -1
  301. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js +1 -1
  302. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js.map +1 -1
  303. package/dist/features/layout/adapters/inbound/AppShell.d.ts.map +1 -1
  304. package/dist/features/layout/adapters/inbound/AppShell.js +1 -1
  305. package/dist/features/layout/adapters/inbound/AppShell.js.map +1 -1
  306. package/dist/features/layout/adapters/inbound/Divider.d.ts.map +1 -1
  307. package/dist/features/layout/adapters/inbound/Divider.js +1 -1
  308. package/dist/features/layout/adapters/inbound/Divider.js.map +1 -1
  309. package/dist/features/layout/adapters/inbound/Grid.d.ts.map +1 -1
  310. package/dist/features/layout/adapters/inbound/Grid.js +1 -1
  311. package/dist/features/layout/adapters/inbound/Grid.js.map +1 -1
  312. package/dist/features/layout/adapters/inbound/Screen.d.ts.map +1 -1
  313. package/dist/features/layout/adapters/inbound/Screen.js +2 -2
  314. package/dist/features/layout/adapters/inbound/Screen.js.map +1 -1
  315. package/dist/features/layout/adapters/inbound/ScrollView.d.ts.map +1 -1
  316. package/dist/features/layout/adapters/inbound/ScrollView.js +1 -1
  317. package/dist/features/layout/adapters/inbound/ScrollView.js.map +1 -1
  318. package/dist/features/layout/adapters/inbound/View.d.ts.map +1 -1
  319. package/dist/features/layout/adapters/inbound/View.js +1 -1
  320. package/dist/features/layout/adapters/inbound/View.js.map +1 -1
  321. package/dist/features/layout/appShellMeta.js.map +1 -1
  322. package/dist/features/layout/constants.js.map +1 -1
  323. package/dist/features/layout/dividerMeta.js.map +1 -1
  324. package/dist/features/layout/gridMeta.js +1 -1
  325. package/dist/features/layout/gridMeta.js.map +1 -1
  326. package/dist/features/layout/screenMeta.js +1 -1
  327. package/dist/features/layout/screenMeta.js.map +1 -1
  328. package/dist/features/layout/scrollViewMeta.js +1 -1
  329. package/dist/features/layout/scrollViewMeta.js.map +1 -1
  330. package/dist/features/layout/utils/resolvePageMaxWidth.d.ts +3 -0
  331. package/dist/features/layout/utils/resolvePageMaxWidth.d.ts.map +1 -0
  332. package/dist/features/layout/utils/resolvePageMaxWidth.js +12 -0
  333. package/dist/features/layout/utils/resolvePageMaxWidth.js.map +1 -0
  334. package/dist/features/layout/viewMeta.js +1 -1
  335. package/dist/features/layout/viewMeta.js.map +1 -1
  336. package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -1
  337. package/dist/features/list/adapters/inbound/FlatList.js +1 -1
  338. package/dist/features/list/adapters/inbound/FlatList.js.map +1 -1
  339. package/dist/features/list/adapters/inbound/List.d.ts.map +1 -1
  340. package/dist/features/list/adapters/inbound/List.js +1 -1
  341. package/dist/features/list/adapters/inbound/List.js.map +1 -1
  342. package/dist/features/list/adapters/inbound/ListItem.d.ts.map +1 -1
  343. package/dist/features/list/adapters/inbound/ListItem.js +2 -2
  344. package/dist/features/list/adapters/inbound/ListItem.js.map +1 -1
  345. package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -1
  346. package/dist/features/list/adapters/inbound/ListSection.js +1 -1
  347. package/dist/features/list/adapters/inbound/ListSection.js.map +1 -1
  348. package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -1
  349. package/dist/features/list/adapters/inbound/SectionList.js +1 -1
  350. package/dist/features/list/adapters/inbound/SectionList.js.map +1 -1
  351. package/dist/features/list/flatListMeta.js +1 -1
  352. package/dist/features/list/flatListMeta.js.map +1 -1
  353. package/dist/features/list/meta.js.map +1 -1
  354. package/dist/features/list/sectionListMeta.js.map +1 -1
  355. package/dist/features/missing-element/adapters/inbound/MissingElement.d.ts.map +1 -1
  356. package/dist/features/missing-element/adapters/inbound/MissingElement.js +2 -2
  357. package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -1
  358. package/dist/features/missing-element/missingElementMeta.js.map +1 -1
  359. package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -1
  360. package/dist/features/pagination/adapters/inbound/Pagination.js +1 -1
  361. package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -1
  362. package/dist/features/pagination/paginationMeta.js.map +1 -1
  363. package/dist/features/palette-item/adapters/inbound/PaletteItem.d.ts.map +1 -1
  364. package/dist/features/palette-item/adapters/inbound/PaletteItem.js +2 -2
  365. package/dist/features/palette-item/adapters/inbound/PaletteItem.js.map +1 -1
  366. package/dist/features/palette-item/paletteItemMeta.js.map +1 -1
  367. package/dist/{corePlugin.d.ts → features/plugin/ZORA_CORE_PLUGIN.d.ts} +2 -2
  368. package/dist/features/plugin/ZORA_CORE_PLUGIN.d.ts.map +1 -0
  369. package/dist/{corePlugin.js → features/plugin/ZORA_CORE_PLUGIN.js} +3 -3
  370. package/dist/features/plugin/ZORA_CORE_PLUGIN.js.map +1 -0
  371. package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts +3 -0
  372. package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts.map +1 -0
  373. package/dist/{corePluginMetadata.js → features/plugin/ZORA_CORE_PLUGIN_METADATA.js} +3 -3
  374. package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.js.map +1 -0
  375. package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts +4 -0
  376. package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts.map +1 -0
  377. package/dist/{pluginComposition.js → features/plugin/application/use-cases/composeZoraPluginMetadata.js} +4 -51
  378. package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.js.map +1 -0
  379. package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts +4 -0
  380. package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts.map +1 -0
  381. package/dist/features/plugin/application/use-cases/composeZoraPlugins.js +41 -0
  382. package/dist/features/plugin/application/use-cases/composeZoraPlugins.js.map +1 -0
  383. package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts +14 -0
  384. package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts.map +1 -0
  385. package/dist/features/plugin/domain/ZoraPluginCompositionError.js +14 -0
  386. package/dist/features/plugin/domain/ZoraPluginCompositionError.js.map +1 -0
  387. package/dist/features/plugin/public.d.ts +4 -0
  388. package/dist/features/plugin/public.d.ts.map +1 -0
  389. package/dist/features/plugin/public.js +4 -0
  390. package/dist/features/plugin/public.js.map +1 -0
  391. package/dist/features/plugin/runtime.d.ts +3 -0
  392. package/dist/features/plugin/runtime.d.ts.map +1 -0
  393. package/dist/features/plugin/runtime.js +3 -0
  394. package/dist/features/plugin/runtime.js.map +1 -0
  395. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.d.ts.map +1 -1
  396. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +3 -3
  397. package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -1
  398. package/dist/features/popover-menu/popoverMenuMeta.js.map +1 -1
  399. package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -1
  400. package/dist/features/progress/adapters/inbound/Progress.js +2 -2
  401. package/dist/features/progress/adapters/inbound/Progress.js.map +1 -1
  402. package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -1
  403. package/dist/features/progress/adapters/inbound/ProgressRing.js +2 -2
  404. package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -1
  405. package/dist/features/progress/progressMeta.js +1 -1
  406. package/dist/features/progress/progressMeta.js.map +1 -1
  407. package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -1
  408. package/dist/features/rating/adapters/inbound/Rating.js +3 -3
  409. package/dist/features/rating/adapters/inbound/Rating.js.map +1 -1
  410. package/dist/features/rating/ratingMeta.js.map +1 -1
  411. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +1 -1
  412. package/dist/features/reader/adapters/inbound/ReaderSurface.js +2 -2
  413. package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +1 -1
  414. package/dist/features/reader/meta.d.ts +3 -3
  415. package/dist/features/reader/meta.js +2 -2
  416. package/dist/features/reader/meta.js.map +1 -1
  417. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts +3 -0
  418. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -0
  419. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +151 -0
  420. package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -0
  421. package/dist/features/registry/public.d.ts +2 -0
  422. package/dist/features/registry/public.d.ts.map +1 -0
  423. package/dist/features/registry/public.js +2 -0
  424. package/dist/features/registry/public.js.map +1 -0
  425. package/dist/features/scanner/adapters/inbound/BarcodeScannerView.d.ts.map +1 -1
  426. package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js +2 -2
  427. package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js.map +1 -1
  428. package/dist/features/scanner/adapters/inbound/CameraPermissionView.d.ts.map +1 -1
  429. package/dist/features/scanner/adapters/inbound/CameraPermissionView.js +1 -1
  430. package/dist/features/scanner/adapters/inbound/CameraPermissionView.js.map +1 -1
  431. package/dist/features/scanner/adapters/inbound/ScanOverlay.d.ts.map +1 -1
  432. package/dist/features/scanner/adapters/inbound/ScanOverlay.js +2 -2
  433. package/dist/features/scanner/adapters/inbound/ScanOverlay.js.map +1 -1
  434. package/dist/features/scanner/meta.d.ts +9 -9
  435. package/dist/features/scanner/meta.js +4 -4
  436. package/dist/features/scanner/meta.js.map +1 -1
  437. package/dist/features/section/adapters/inbound/ScreenSection.d.ts.map +1 -1
  438. package/dist/features/section/adapters/inbound/ScreenSection.js +1 -1
  439. package/dist/features/section/adapters/inbound/ScreenSection.js.map +1 -1
  440. package/dist/features/section/adapters/inbound/SectionHeader.d.ts.map +1 -1
  441. package/dist/features/section/adapters/inbound/SectionHeader.js +1 -1
  442. package/dist/features/section/adapters/inbound/SectionHeader.js.map +1 -1
  443. package/dist/features/section/screenSectionMeta.js +1 -1
  444. package/dist/features/section/screenSectionMeta.js.map +1 -1
  445. package/dist/features/section/sectionHeaderMeta.js.map +1 -1
  446. package/dist/features/selection/meta.js.map +1 -1
  447. package/dist/features/skeleton/adapters/inbound/Skeleton.d.ts.map +1 -1
  448. package/dist/features/skeleton/adapters/inbound/Skeleton.js +2 -2
  449. package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -1
  450. package/dist/features/skeleton/adapters/inbound/SkeletonCard.d.ts.map +1 -1
  451. package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +1 -1
  452. package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -1
  453. package/dist/features/skeleton/adapters/inbound/SkeletonList.d.ts.map +1 -1
  454. package/dist/features/skeleton/adapters/inbound/SkeletonList.js +1 -1
  455. package/dist/features/skeleton/adapters/inbound/SkeletonList.js.map +1 -1
  456. package/dist/features/skeleton/adapters/inbound/SkeletonText.d.ts.map +1 -1
  457. package/dist/features/skeleton/adapters/inbound/SkeletonText.js +1 -1
  458. package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -1
  459. package/dist/features/skeleton/skeletonMeta.js.map +1 -1
  460. package/dist/features/surface/adapters/inbound/Surface.d.ts.map +1 -1
  461. package/dist/features/surface/adapters/inbound/Surface.js +1 -1
  462. package/dist/features/surface/adapters/inbound/Surface.js.map +1 -1
  463. package/dist/features/surface/surfaceMeta.js +1 -1
  464. package/dist/features/surface/surfaceMeta.js.map +1 -1
  465. package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -1
  466. package/dist/features/tabs/adapters/inbound/Tab.js +1 -1
  467. package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -1
  468. package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -1
  469. package/dist/features/tabs/adapters/inbound/TabList.js +1 -1
  470. package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -1
  471. package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -1
  472. package/dist/features/tabs/adapters/inbound/TabPanel.js +1 -1
  473. package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -1
  474. package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -1
  475. package/dist/features/tabs/adapters/inbound/Tabs.js +1 -1
  476. package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -1
  477. package/dist/features/tabs/tabListMeta.js.map +1 -1
  478. package/dist/features/tabs/tabMeta.js.map +1 -1
  479. package/dist/features/tabs/tabPanelMeta.js +1 -1
  480. package/dist/features/tabs/tabPanelMeta.js.map +1 -1
  481. package/dist/features/tabs/tabsMeta.js.map +1 -1
  482. package/dist/features/theme/ThemeModeToggle.meta.d.ts.map +1 -0
  483. package/dist/features/theme/ThemeModeToggle.meta.js.map +1 -0
  484. package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.d.ts +1 -1
  485. package/dist/features/theme/adapters/inbound/ThemeModeToggle.d.ts.map +1 -0
  486. package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.js +3 -3
  487. package/dist/features/theme/adapters/inbound/ThemeModeToggle.js.map +1 -0
  488. package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.d.ts +2 -2
  489. package/dist/features/theme/adapters/inbound/ZoraProvider.d.ts.map +1 -0
  490. package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.js +4 -4
  491. package/dist/features/theme/adapters/inbound/ZoraProvider.js.map +1 -0
  492. package/dist/{theme → features/theme/adapters/inbound}/ZoraThemeScope.d.ts +2 -2
  493. package/dist/features/theme/adapters/inbound/ZoraThemeScope.d.ts.map +1 -0
  494. package/dist/features/theme/adapters/inbound/ZoraThemeScope.js +24 -0
  495. package/dist/features/theme/adapters/inbound/ZoraThemeScope.js.map +1 -0
  496. package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.d.ts +1 -1
  497. package/dist/features/theme/adapters/inbound/withZoraThemeScope.d.ts.map +1 -0
  498. package/dist/features/theme/adapters/inbound/withZoraThemeScope.js.map +1 -0
  499. package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.d.ts +1 -1
  500. package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts.map +1 -0
  501. package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.js +2 -1
  502. package/dist/features/theme/application/use-cases/compileZoraTheme.js.map +1 -0
  503. package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.d.ts +1 -1
  504. package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts.map +1 -0
  505. package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.js +1 -1
  506. package/dist/features/theme/application/use-cases/createZoraThemeConfig.js.map +1 -0
  507. package/dist/{internal → features/theme}/colorModel.d.ts +1 -5
  508. package/dist/features/theme/colorModel.d.ts.map +1 -0
  509. package/dist/features/theme/colorModel.js +6 -0
  510. package/dist/features/theme/colorModel.js.map +1 -0
  511. package/dist/features/theme/composition/ZoraRuntimeCapabilities.d.ts.map +1 -0
  512. package/dist/features/theme/composition/ZoraRuntimeCapabilities.js.map +1 -0
  513. package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.d.ts +1 -1
  514. package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.d.ts.map +1 -0
  515. package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.js.map +1 -0
  516. package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.d.ts +1 -1
  517. package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.d.ts.map +1 -0
  518. package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.js.map +1 -0
  519. package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.d.ts +1 -1
  520. package/dist/features/theme/composition/ZoraThemeRuntimeContext.d.ts.map +1 -0
  521. package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.js +1 -1
  522. package/dist/features/theme/composition/ZoraThemeRuntimeContext.js.map +1 -0
  523. package/dist/features/theme/composition/useZoraTheme.d.ts +2 -0
  524. package/dist/features/theme/composition/useZoraTheme.d.ts.map +1 -0
  525. package/dist/features/theme/composition/useZoraTheme.js.map +1 -0
  526. package/dist/features/theme/composition/useZoraThemeRecipe.d.ts.map +1 -0
  527. package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.js +1 -1
  528. package/dist/features/theme/composition/useZoraThemeRecipe.js.map +1 -0
  529. package/dist/{theme → features/theme}/public.d.ts +3 -3
  530. package/dist/features/theme/public.d.ts.map +1 -0
  531. package/dist/features/theme/public.js +4 -0
  532. package/dist/features/theme/public.js.map +1 -0
  533. package/dist/features/theme/runtime.d.ts +10 -0
  534. package/dist/features/theme/runtime.d.ts.map +1 -0
  535. package/dist/features/theme/runtime.js +6 -0
  536. package/dist/features/theme/runtime.js.map +1 -0
  537. package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.d.ts +1 -1
  538. package/dist/features/theme/utils/resolveThemeModeToggleState.d.ts.map +1 -0
  539. package/dist/features/theme/utils/resolveThemeModeToggleState.js.map +1 -0
  540. package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.d.ts +1 -1
  541. package/dist/features/theme/utils/resolveZoraScopedThemeId.d.ts.map +1 -0
  542. package/dist/features/theme/utils/resolveZoraScopedThemeId.js.map +1 -0
  543. package/dist/features/theme/utils/resolveZoraThemeRecipe.d.ts.map +1 -0
  544. package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.js +1 -1
  545. package/dist/features/theme/utils/resolveZoraThemeRecipe.js.map +1 -0
  546. package/dist/features/theme/zoraDefaultTheme.d.ts +3 -0
  547. package/dist/features/theme/zoraDefaultTheme.d.ts.map +1 -0
  548. package/dist/features/theme/zoraDefaultTheme.js.map +1 -0
  549. package/dist/features/time-picker/adapters/inbound/TimePicker.native.d.ts.map +1 -1
  550. package/dist/features/time-picker/adapters/inbound/TimePicker.native.js +1 -1
  551. package/dist/features/time-picker/adapters/inbound/TimePicker.native.js.map +1 -1
  552. package/dist/features/time-picker/adapters/inbound/TimePicker.web.d.ts.map +1 -1
  553. package/dist/features/time-picker/adapters/inbound/TimePicker.web.js +1 -1
  554. package/dist/features/time-picker/adapters/inbound/TimePicker.web.js.map +1 -1
  555. package/dist/features/time-picker/timePickerMeta.js.map +1 -1
  556. package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -1
  557. package/dist/features/timeline/adapters/inbound/Timeline.js +3 -3
  558. package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -1
  559. package/dist/features/timeline/meta.js.map +1 -1
  560. package/dist/features/toast/adapters/inbound/Toast.d.ts.map +1 -1
  561. package/dist/features/toast/adapters/inbound/Toast.js +1 -1
  562. package/dist/features/toast/adapters/inbound/Toast.js.map +1 -1
  563. package/dist/features/toast/toastMeta.js.map +1 -1
  564. package/dist/features/toast/toastProviderMeta.js.map +1 -1
  565. package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -1
  566. package/dist/features/toolbar/adapters/inbound/Toolbar.js +1 -1
  567. package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -1
  568. package/dist/features/toolbar/toolbarMeta.js.map +1 -1
  569. package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts +1 -1
  570. package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -1
  571. package/dist/features/tree-view/adapters/inbound/TreeItem.js +1 -1
  572. package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -1
  573. package/dist/features/tree-view/adapters/inbound/TreeView.d.ts.map +1 -1
  574. package/dist/features/tree-view/adapters/inbound/TreeView.js +1 -1
  575. package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -1
  576. package/dist/features/tree-view/meta.js.map +1 -1
  577. package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -1
  578. package/dist/features/typography/adapters/inbound/Heading.js +3 -3
  579. package/dist/features/typography/adapters/inbound/Heading.js.map +1 -1
  580. package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -1
  581. package/dist/features/typography/adapters/inbound/Text.js +3 -3
  582. package/dist/features/typography/adapters/inbound/Text.js.map +1 -1
  583. package/dist/features/typography/headingMeta.js +2 -2
  584. package/dist/features/typography/headingMeta.js.map +1 -1
  585. package/dist/features/typography/textMeta.js +2 -2
  586. package/dist/features/typography/textMeta.js.map +1 -1
  587. package/dist/features/typography/utils/headingThemeRecipeMeta.js +1 -1
  588. package/dist/features/typography/utils/headingThemeRecipeMeta.js.map +1 -1
  589. package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
  590. package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
  591. package/dist/features/typography/utils/textThemeRecipeMeta.js +1 -1
  592. package/dist/features/typography/utils/textThemeRecipeMeta.js.map +1 -1
  593. package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
  594. package/dist/features/uploader/adapters/inbound/Uploader.js +1 -1
  595. package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
  596. package/dist/features/uploader/uploaderMeta.js.map +1 -1
  597. package/dist/index.d.ts +11 -11
  598. package/dist/index.d.ts.map +1 -1
  599. package/dist/index.js +7 -7
  600. package/dist/index.js.map +1 -1
  601. package/dist/types/accordion.d.ts +1 -1
  602. package/dist/types/accordion.d.ts.map +1 -1
  603. package/dist/types/accordion.js.map +1 -1
  604. package/dist/types/activity-indicator.d.ts +1 -1
  605. package/dist/types/activity-indicator.d.ts.map +1 -1
  606. package/dist/types/activity-indicator.js.map +1 -1
  607. package/dist/types/app-bar.d.ts +1 -1
  608. package/dist/types/app-bar.d.ts.map +1 -1
  609. package/dist/types/app-bar.js.map +1 -1
  610. package/dist/types/auth.d.ts +1 -1
  611. package/dist/types/auth.d.ts.map +1 -1
  612. package/dist/types/auth.js.map +1 -1
  613. package/dist/{metadata/types.d.ts → types/authoring.d.ts} +1 -1
  614. package/dist/types/authoring.d.ts.map +1 -0
  615. package/dist/types/authoring.js +2 -0
  616. package/dist/types/authoring.js.map +1 -0
  617. package/dist/types/avatar-group.d.ts +2 -2
  618. package/dist/types/avatar-group.d.ts.map +1 -1
  619. package/dist/types/avatar-group.js.map +1 -1
  620. package/dist/types/avatar.d.ts +2 -2
  621. package/dist/types/avatar.d.ts.map +1 -1
  622. package/dist/types/avatar.js.map +1 -1
  623. package/dist/types/badge.d.ts +4 -2
  624. package/dist/types/badge.d.ts.map +1 -1
  625. package/dist/types/badge.js.map +1 -1
  626. package/dist/{theme/ZoraBaseProps.d.ts → types/base.d.ts} +2 -2
  627. package/dist/types/base.d.ts.map +1 -0
  628. package/dist/types/base.js +2 -0
  629. package/dist/types/base.js.map +1 -0
  630. package/dist/types/breadcrumbs.d.ts +1 -1
  631. package/dist/types/breadcrumbs.d.ts.map +1 -1
  632. package/dist/types/breadcrumbs.js.map +1 -1
  633. package/dist/types/button-group.d.ts +1 -1
  634. package/dist/types/button-group.d.ts.map +1 -1
  635. package/dist/types/button-group.js.map +1 -1
  636. package/dist/types/button.d.ts +4 -2
  637. package/dist/types/button.d.ts.map +1 -1
  638. package/dist/types/button.js.map +1 -1
  639. package/dist/types/card.d.ts +2 -2
  640. package/dist/types/card.d.ts.map +1 -1
  641. package/dist/types/card.js.map +1 -1
  642. package/dist/types/chat.d.ts +2 -2
  643. package/dist/types/chat.d.ts.map +1 -1
  644. package/dist/types/chat.js.map +1 -1
  645. package/dist/types/checkbox.d.ts +1 -1
  646. package/dist/types/checkbox.d.ts.map +1 -1
  647. package/dist/types/checkbox.js.map +1 -1
  648. package/dist/types/chip-group.d.ts +3 -2
  649. package/dist/types/chip-group.d.ts.map +1 -1
  650. package/dist/types/chip-group.js.map +1 -1
  651. package/dist/types/chip.d.ts +3 -2
  652. package/dist/types/chip.d.ts.map +1 -1
  653. package/dist/types/chip.js.map +1 -1
  654. package/dist/types/collection-editor.d.ts +1 -1
  655. package/dist/types/collection-editor.d.ts.map +1 -1
  656. package/dist/types/collection-editor.js.map +1 -1
  657. package/dist/types/content-rail.d.ts +1 -1
  658. package/dist/types/content-rail.d.ts.map +1 -1
  659. package/dist/types/content-rail.js.map +1 -1
  660. package/dist/types/control.d.ts +3 -0
  661. package/dist/types/control.d.ts.map +1 -0
  662. package/dist/types/control.js +2 -0
  663. package/dist/types/control.js.map +1 -0
  664. package/dist/types/data-table.d.ts +1 -1
  665. package/dist/types/data-table.d.ts.map +1 -1
  666. package/dist/types/data-table.js.map +1 -1
  667. package/dist/types/date-picker.d.ts +1 -1
  668. package/dist/types/date-picker.d.ts.map +1 -1
  669. package/dist/types/date-picker.js.map +1 -1
  670. package/dist/types/dialog.d.ts +2 -2
  671. package/dist/types/dialog.d.ts.map +1 -1
  672. package/dist/types/dialog.js.map +1 -1
  673. package/dist/types/empty-state.d.ts +3 -2
  674. package/dist/types/empty-state.d.ts.map +1 -1
  675. package/dist/types/empty-state.js.map +1 -1
  676. package/dist/types/form.d.ts +1 -1
  677. package/dist/types/form.d.ts.map +1 -1
  678. package/dist/types/form.js.map +1 -1
  679. package/dist/types/gradient.d.ts +1 -1
  680. package/dist/types/gradient.d.ts.map +1 -1
  681. package/dist/types/gradient.js.map +1 -1
  682. package/dist/types/heading.d.ts +2 -2
  683. package/dist/types/heading.d.ts.map +1 -1
  684. package/dist/types/heading.js.map +1 -1
  685. package/dist/types/hero.d.ts +3 -2
  686. package/dist/types/hero.d.ts.map +1 -1
  687. package/dist/types/hero.js.map +1 -1
  688. package/dist/types/icon-button.d.ts +4 -2
  689. package/dist/types/icon-button.d.ts.map +1 -1
  690. package/dist/types/icon-button.js.map +1 -1
  691. package/dist/types/icon.d.ts +1 -1
  692. package/dist/types/icon.d.ts.map +1 -1
  693. package/dist/types/icon.js.map +1 -1
  694. package/dist/types/image.d.ts +1 -1
  695. package/dist/types/image.d.ts.map +1 -1
  696. package/dist/types/image.js.map +1 -1
  697. package/dist/types/keyboard-avoiding-view.d.ts +1 -1
  698. package/dist/types/keyboard-avoiding-view.d.ts.map +1 -1
  699. package/dist/types/keyboard-avoiding-view.js.map +1 -1
  700. package/dist/types/layout.d.ts +2 -2
  701. package/dist/types/layout.d.ts.map +1 -1
  702. package/dist/types/layout.js.map +1 -1
  703. package/dist/types/list.d.ts +1 -1
  704. package/dist/types/list.d.ts.map +1 -1
  705. package/dist/types/list.js.map +1 -1
  706. package/dist/types/manifest-bottom-sheet.d.ts +1 -1
  707. package/dist/types/manifest-bottom-sheet.d.ts.map +1 -1
  708. package/dist/types/manifest-bottom-sheet.js.map +1 -1
  709. package/dist/types/manifest-list.d.ts +1 -1
  710. package/dist/types/manifest-list.d.ts.map +1 -1
  711. package/dist/types/manifest-list.js.map +1 -1
  712. package/dist/types/media-card.d.ts +2 -2
  713. package/dist/types/media-card.d.ts.map +1 -1
  714. package/dist/types/media-card.js.map +1 -1
  715. package/dist/types/metric-card.d.ts +3 -2
  716. package/dist/types/metric-card.d.ts.map +1 -1
  717. package/dist/types/metric-card.js.map +1 -1
  718. package/dist/types/missing-element.d.ts +1 -1
  719. package/dist/types/missing-element.d.ts.map +1 -1
  720. package/dist/types/missing-element.js.map +1 -1
  721. package/dist/types/pagination.d.ts +1 -1
  722. package/dist/types/pagination.d.ts.map +1 -1
  723. package/dist/types/pagination.js.map +1 -1
  724. package/dist/types/palette-item.d.ts +1 -1
  725. package/dist/types/palette-item.d.ts.map +1 -1
  726. package/dist/types/palette-item.js.map +1 -1
  727. package/dist/{pluginComposition.d.ts → types/plugin.d.ts} +2 -18
  728. package/dist/types/plugin.d.ts.map +1 -0
  729. package/dist/types/plugin.js +2 -0
  730. package/dist/types/plugin.js.map +1 -0
  731. package/dist/types/popover-menu.d.ts +1 -1
  732. package/dist/types/popover-menu.d.ts.map +1 -1
  733. package/dist/types/popover-menu.js.map +1 -1
  734. package/dist/types/post-card.d.ts +3 -2
  735. package/dist/types/post-card.d.ts.map +1 -1
  736. package/dist/types/post-card.js.map +1 -1
  737. package/dist/types/product-card.d.ts +1 -1
  738. package/dist/types/product-card.d.ts.map +1 -1
  739. package/dist/types/product-card.js.map +1 -1
  740. package/dist/types/progress.d.ts +3 -2
  741. package/dist/types/progress.d.ts.map +1 -1
  742. package/dist/types/progress.js.map +1 -1
  743. package/dist/types/provider.d.ts +1 -1
  744. package/dist/types/provider.d.ts.map +1 -1
  745. package/dist/types/provider.js.map +1 -1
  746. package/dist/types/radio.d.ts +1 -1
  747. package/dist/types/radio.d.ts.map +1 -1
  748. package/dist/types/radio.js.map +1 -1
  749. package/dist/types/rating.d.ts +3 -2
  750. package/dist/types/rating.d.ts.map +1 -1
  751. package/dist/types/rating.js.map +1 -1
  752. package/dist/types/reader.d.ts +1 -1
  753. package/dist/types/reader.d.ts.map +1 -1
  754. package/dist/types/reader.js.map +1 -1
  755. package/dist/{registry.d.ts → types/registry.d.ts} +0 -1
  756. package/dist/types/registry.d.ts.map +1 -0
  757. package/dist/types/registry.js +2 -0
  758. package/dist/types/registry.js.map +1 -0
  759. package/dist/types/scanner.d.ts +1 -1
  760. package/dist/types/scanner.d.ts.map +1 -1
  761. package/dist/types/scanner.js.map +1 -1
  762. package/dist/types/search-input.d.ts +2 -2
  763. package/dist/types/search-input.d.ts.map +1 -1
  764. package/dist/types/search-input.js.map +1 -1
  765. package/dist/types/section.d.ts +1 -1
  766. package/dist/types/section.d.ts.map +1 -1
  767. package/dist/types/section.js.map +1 -1
  768. package/dist/types/select.d.ts +1 -1
  769. package/dist/types/select.d.ts.map +1 -1
  770. package/dist/types/select.js.map +1 -1
  771. package/dist/types/skeleton.d.ts +1 -1
  772. package/dist/types/skeleton.d.ts.map +1 -1
  773. package/dist/types/skeleton.js.map +1 -1
  774. package/dist/types/surface.d.ts +1 -1
  775. package/dist/types/surface.d.ts.map +1 -1
  776. package/dist/types/surface.js.map +1 -1
  777. package/dist/types/switch.d.ts +1 -1
  778. package/dist/types/switch.d.ts.map +1 -1
  779. package/dist/types/switch.js.map +1 -1
  780. package/dist/types/tabs.d.ts +1 -1
  781. package/dist/types/tabs.d.ts.map +1 -1
  782. package/dist/types/tabs.js.map +1 -1
  783. package/dist/types/text-input.d.ts +2 -2
  784. package/dist/types/text-input.d.ts.map +1 -1
  785. package/dist/types/text-input.js.map +1 -1
  786. package/dist/types/text.d.ts +2 -2
  787. package/dist/types/text.d.ts.map +1 -1
  788. package/dist/types/text.js.map +1 -1
  789. package/dist/{theme/ThemeModeToggleProps.d.ts → types/theme-mode-toggle.d.ts} +1 -1
  790. package/dist/types/theme-mode-toggle.d.ts.map +1 -0
  791. package/dist/types/theme-mode-toggle.js +2 -0
  792. package/dist/types/theme-mode-toggle.js.map +1 -0
  793. package/dist/{metadata/themeRecipeTypes.d.ts → types/theme-recipe.d.ts} +2 -3
  794. package/dist/types/theme-recipe.d.ts.map +1 -0
  795. package/dist/types/theme-recipe.js +2 -0
  796. package/dist/types/theme-recipe.js.map +1 -0
  797. package/dist/{theme/types.d.ts → types/theme.d.ts} +6 -1
  798. package/dist/types/theme.d.ts.map +1 -0
  799. package/dist/types/theme.js +2 -0
  800. package/dist/types/theme.js.map +1 -0
  801. package/dist/types/time-picker.d.ts +1 -1
  802. package/dist/types/time-picker.d.ts.map +1 -1
  803. package/dist/types/time-picker.js.map +1 -1
  804. package/dist/types/timeline.d.ts +2 -2
  805. package/dist/types/timeline.d.ts.map +1 -1
  806. package/dist/types/timeline.js.map +1 -1
  807. package/dist/types/toast.d.ts +1 -1
  808. package/dist/types/toast.d.ts.map +1 -1
  809. package/dist/types/toast.js.map +1 -1
  810. package/dist/types/toolbar.d.ts +1 -1
  811. package/dist/types/toolbar.d.ts.map +1 -1
  812. package/dist/types/toolbar.js.map +1 -1
  813. package/dist/types/tree-view.d.ts +1 -1
  814. package/dist/types/tree-view.d.ts.map +1 -1
  815. package/dist/types/tree-view.js.map +1 -1
  816. package/dist/types/upload.d.ts +1 -1
  817. package/dist/types/upload.d.ts.map +1 -1
  818. package/dist/types/upload.js.map +1 -1
  819. package/package.json +20 -19
  820. package/src/audit.test.ts +1 -1
  821. package/src/features/accordion/accordionItemMeta.ts +2 -2
  822. package/src/features/accordion/accordionMeta.ts +1 -1
  823. package/src/features/accordion/adapters/inbound/Accordion.tsx +1 -1
  824. package/src/features/accordion/adapters/inbound/AccordionItem.tsx +1 -1
  825. package/src/features/activity-indicator/activityIndicatorMeta.ts +1 -1
  826. package/src/features/activity-indicator/adapters/inbound/ActivityIndicator.tsx +2 -2
  827. package/src/features/app-bar/adapters/inbound/AppBar.tsx +2 -2
  828. package/src/features/app-bar/appBarMeta.ts +1 -1
  829. package/src/features/auth/adapters/inbound/AuthForm.tsx +1 -1
  830. package/src/features/auth/adapters/inbound/AuthFormField.tsx +1 -1
  831. package/src/features/auth/adapters/inbound/ForgotPasswordForm.tsx +1 -1
  832. package/src/features/auth/adapters/inbound/OAuthProviderButton.tsx +1 -1
  833. package/src/features/auth/adapters/inbound/OAuthProviderList.tsx +1 -1
  834. package/src/features/auth/adapters/inbound/OtpForm.tsx +1 -1
  835. package/src/features/auth/adapters/inbound/SignInForm.tsx +1 -1
  836. package/src/features/auth/adapters/inbound/SignUpForm.tsx +1 -1
  837. package/src/features/auth/forgotPasswordFormMeta.ts +1 -1
  838. package/src/features/auth/oauthProviderButtonMeta.ts +2 -2
  839. package/src/features/auth/oauthProviderListMeta.ts +2 -2
  840. package/src/features/auth/otpFormMeta.ts +1 -1
  841. package/src/features/auth/public.test.ts +1 -1
  842. package/src/features/auth/signInFormMeta.ts +1 -1
  843. package/src/features/auth/signUpFormMeta.ts +1 -1
  844. package/src/{metadata → features/authoring}/bindableComponentMeta.ts +2 -2
  845. package/src/{metadata → features/authoring}/componentMeta.test.ts +4 -4
  846. package/src/features/authoring/componentMeta.ts +190 -0
  847. package/src/{constants.ts → features/authoring/constants.ts} +10 -0
  848. package/src/{featureManifest.test.ts → features/authoring/featureManifest.test.ts} +2 -2
  849. package/src/{metadata → features/authoring}/index.ts +24 -23
  850. package/src/features/authoring/themeRecipeMeta.ts +14 -0
  851. package/src/{utils → features/authoring/utils}/createManifestBindings.ts +1 -1
  852. package/src/{utils → features/authoring/utils}/finalizeFeatureMetadata.ts +1 -1
  853. package/src/features/avatar/adapters/inbound/Avatar.tsx +3 -3
  854. package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +2 -2
  855. package/src/features/avatar/avatarGroupMeta.ts +1 -1
  856. package/src/features/avatar/avatarMeta.ts +1 -1
  857. package/src/features/badge/adapters/inbound/Badge.tsx +2 -2
  858. package/src/features/badge/badgeMeta.ts +1 -1
  859. package/src/features/badge/utils/resolveBadgeRecipe.test.ts +9 -0
  860. package/src/features/badge/utils/resolveBadgeRecipe.ts +17 -0
  861. package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +3 -3
  862. package/src/features/bottom-sheet/bottomSheetMeta.ts +2 -2
  863. package/src/features/bottom-sheet/public.test.ts +3 -3
  864. package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +3 -3
  865. package/src/features/breadcrumbs/breadcrumbsMeta.ts +1 -1
  866. package/src/features/button/adapters/inbound/Button.tsx +2 -2
  867. package/src/features/button/adapters/inbound/ButtonGroup.tsx +1 -1
  868. package/src/features/button/adapters/inbound/IconButton.tsx +2 -2
  869. package/src/features/button/buttonGroupMeta.ts +1 -1
  870. package/src/features/button/buttonMeta.ts +3 -3
  871. package/src/features/button/iconButtonMeta.ts +1 -1
  872. package/src/features/button/utils/resolveButtonRecipe.test.ts +9 -0
  873. package/src/features/button/utils/resolveButtonRecipe.ts +17 -0
  874. package/src/features/button/utils/resolveButtonThemeRecipe.ts +4 -6
  875. package/src/features/button/utils/themeRecipeMeta.ts +2 -2
  876. package/src/features/card/adapters/inbound/Card.tsx +3 -3
  877. package/src/features/card/adapters/inbound/MediaCard.tsx +2 -2
  878. package/src/features/card/adapters/inbound/MetricCard.tsx +4 -3
  879. package/src/features/card/adapters/inbound/PostCard.test.tsx +1 -1
  880. package/src/features/card/adapters/inbound/PostCard.tsx +2 -2
  881. package/src/features/card/adapters/inbound/ProductCard.test.tsx +1 -1
  882. package/src/features/card/adapters/inbound/ProductCard.tsx +2 -2
  883. package/src/features/card/cardMeta.ts +3 -3
  884. package/src/features/card/mediaCardMeta.ts +2 -2
  885. package/src/features/card/metricCardMeta.ts +1 -1
  886. package/src/features/card/postCardMeta.ts +2 -2
  887. package/src/features/card/productCardMeta.ts +1 -1
  888. package/src/features/card/utils/resolveCardThemeRecipe.ts +1 -1
  889. package/src/features/card/utils/resolveCardVariant.test.ts +11 -0
  890. package/src/features/card/utils/resolveCardVariant.ts +15 -0
  891. package/src/features/card/utils/themeRecipeMeta.ts +1 -1
  892. package/src/features/chat/adapters/inbound/ChatListItem.test.tsx +1 -1
  893. package/src/features/chat/adapters/inbound/ChatListItem.tsx +2 -2
  894. package/src/features/chat/adapters/inbound/MessageBubble.tsx +2 -2
  895. package/src/features/chat/chatListItemMeta.ts +1 -1
  896. package/src/features/chat/messageBubbleMeta.ts +2 -2
  897. package/src/features/chip/adapters/inbound/Chip.tsx +3 -3
  898. package/src/features/chip/adapters/inbound/ChipGroup.tsx +1 -1
  899. package/src/features/chip/chipGroupMeta.ts +1 -1
  900. package/src/features/chip/chipMeta.ts +1 -1
  901. package/src/features/chip/utils/resolveChipColors.ts +1 -1
  902. package/src/features/collection-editor/adapters/inbound/CollectionEditor.tsx +1 -1
  903. package/src/features/collection-editor/meta.ts +1 -1
  904. package/src/features/content-rail/adapters/inbound/ContentRail.tsx +2 -2
  905. package/src/features/content-rail/adapters/inbound/ContentRailFlow.tsx +1 -1
  906. package/src/features/content-rail/contentRailMeta.ts +2 -2
  907. package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
  908. package/src/features/data-table/dataTableMeta.ts +1 -1
  909. package/src/features/date-picker/adapters/inbound/DatePicker.native.tsx +1 -1
  910. package/src/features/date-picker/adapters/inbound/DatePicker.web.tsx +1 -1
  911. package/src/features/date-picker/datePickerMeta.ts +1 -1
  912. package/src/features/date-picker/public.test.ts +1 -1
  913. package/src/features/dialog/adapters/inbound/Dialog.tsx +2 -2
  914. package/src/features/dialog/dialogMeta.ts +2 -2
  915. package/src/features/dialog/utils/resolveDialogWidth.test.ts +10 -0
  916. package/src/features/dialog/utils/resolveDialogWidth.ts +13 -0
  917. package/src/features/empty-state/adapters/inbound/EmptyState.tsx +1 -1
  918. package/src/features/empty-state/emptyStateMeta.ts +1 -1
  919. package/src/features/form/adapters/inbound/Form.tsx +1 -1
  920. package/src/features/form/adapters/inbound/FormActions.tsx +1 -1
  921. package/src/features/form/adapters/inbound/FormError.tsx +2 -2
  922. package/src/features/form/checkbox/adapters/inbound/Checkbox.tsx +1 -1
  923. package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +1 -1
  924. package/src/features/form/checkbox/checkboxMeta.ts +1 -1
  925. package/src/features/form/field/adapters/inbound/Field.tsx +1 -1
  926. package/src/features/form/field/meta.ts +1 -1
  927. package/src/features/form/formActionsMeta.ts +1 -1
  928. package/src/features/form/formErrorMeta.ts +1 -1
  929. package/src/features/form/formMeta.ts +1 -1
  930. package/src/features/form/radio/adapters/inbound/Radio.tsx +1 -1
  931. package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +2 -2
  932. package/src/features/form/radio/radioMeta.ts +2 -2
  933. package/src/features/form/radio/themeRecipeMeta.ts +2 -2
  934. package/src/features/form/radio/utils/handleRadioOptionKeyDown.test.ts +1 -1
  935. package/src/features/form/radio/utils/handleRadioOptionKeyDown.ts +1 -1
  936. package/src/features/form/radio/utils/resolveRadioGroupThemeRecipe.ts +1 -1
  937. package/src/features/form/search-input/adapters/inbound/SearchInput.tsx +1 -1
  938. package/src/features/form/search-input/searchInputMeta.ts +1 -1
  939. package/src/features/form/select/adapters/inbound/Select.native.tsx +1 -1
  940. package/src/features/form/select/adapters/inbound/Select.web.tsx +1 -1
  941. package/src/features/form/select/selectMeta.ts +1 -1
  942. package/src/features/form/switch/adapters/inbound/Switch.tsx +1 -1
  943. package/src/features/form/switch/switchMeta.ts +1 -1
  944. package/src/features/form/text-input/adapters/inbound/TextInput.tsx +3 -3
  945. package/src/features/form/text-input/textInputMeta.ts +1 -1
  946. package/src/features/gradient/adapters/inbound/Gradient.tsx +1 -1
  947. package/src/features/gradient/gradientMeta.ts +2 -2
  948. package/src/features/gradient/public.test.ts +1 -1
  949. package/src/features/hero/adapters/inbound/Hero.tsx +1 -1
  950. package/src/features/hero/heroMeta.ts +1 -1
  951. package/src/features/icon/adapters/inbound/Icon.tsx +1 -1
  952. package/src/features/icon/iconMeta.ts +1 -1
  953. package/src/features/icon/utils/meta.test.ts +1 -1
  954. package/src/features/icon/utils/resolveIconSize.test.ts +11 -0
  955. package/src/features/icon/utils/resolveIconSize.ts +13 -0
  956. package/src/features/image/adapters/inbound/Image.tsx +2 -2
  957. package/src/features/image/imageMeta.ts +1 -1
  958. package/src/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.tsx +1 -1
  959. package/src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts +2 -2
  960. package/src/features/layout/adapters/inbound/AppShell.tsx +1 -1
  961. package/src/features/layout/adapters/inbound/Divider.tsx +1 -1
  962. package/src/features/layout/adapters/inbound/Grid.tsx +1 -1
  963. package/src/features/layout/adapters/inbound/Screen.tsx +2 -2
  964. package/src/features/layout/adapters/inbound/ScrollView.tsx +1 -1
  965. package/src/features/layout/adapters/inbound/View.tsx +1 -1
  966. package/src/features/layout/appShellMeta.ts +1 -1
  967. package/src/features/layout/constants.ts +1 -1
  968. package/src/features/layout/dividerMeta.ts +1 -1
  969. package/src/features/layout/gridMeta.ts +2 -2
  970. package/src/features/layout/screenMeta.ts +2 -2
  971. package/src/features/layout/scrollViewMeta.ts +2 -2
  972. package/src/features/layout/utils/resolvePageMaxWidth.test.ts +10 -0
  973. package/src/features/layout/utils/resolvePageMaxWidth.ts +13 -0
  974. package/src/features/layout/viewMeta.ts +2 -2
  975. package/src/features/list/adapters/inbound/FlatList.tsx +1 -1
  976. package/src/features/list/adapters/inbound/List.tsx +1 -1
  977. package/src/features/list/adapters/inbound/ListItem.tsx +2 -2
  978. package/src/features/list/adapters/inbound/ListSection.tsx +1 -1
  979. package/src/features/list/adapters/inbound/SectionList.tsx +1 -1
  980. package/src/features/list/flatListMeta.ts +2 -2
  981. package/src/features/list/meta.ts +1 -1
  982. package/src/features/list/sectionListMeta.ts +1 -1
  983. package/src/features/missing-element/MissingElement.test.ts +1 -1
  984. package/src/features/missing-element/adapters/inbound/MissingElement.tsx +2 -2
  985. package/src/features/missing-element/missingElementMeta.ts +1 -1
  986. package/src/features/pagination/adapters/inbound/Pagination.tsx +1 -1
  987. package/src/features/pagination/paginationMeta.ts +1 -1
  988. package/src/features/palette-item/adapters/inbound/PaletteItem.tsx +2 -2
  989. package/src/features/palette-item/paletteItemMeta.ts +1 -1
  990. package/src/{corePlugin.ts → features/plugin/ZORA_CORE_PLUGIN.ts} +3 -3
  991. package/src/{corePluginMetadata.ts → features/plugin/ZORA_CORE_PLUGIN_METADATA.ts} +4 -4
  992. package/src/{pluginComposition.ts → features/plugin/application/use-cases/composeZoraPluginMetadata.ts} +10 -122
  993. package/src/features/plugin/application/use-cases/composeZoraPlugins.ts +76 -0
  994. package/src/features/plugin/domain/ZoraPluginCompositionError.ts +21 -0
  995. package/src/{pluginComposition.test.ts → features/plugin/pluginComposition.test.ts} +4 -6
  996. package/src/features/plugin/public.ts +3 -0
  997. package/src/features/plugin/runtime.ts +2 -0
  998. package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +3 -3
  999. package/src/features/popover-menu/popoverMenuMeta.ts +1 -1
  1000. package/src/features/progress/adapters/inbound/Progress.tsx +2 -2
  1001. package/src/features/progress/adapters/inbound/ProgressRing.tsx +2 -2
  1002. package/src/features/progress/progressMeta.ts +2 -2
  1003. package/src/features/rating/adapters/inbound/Rating.tsx +4 -4
  1004. package/src/features/rating/ratingMeta.ts +1 -1
  1005. package/src/features/reader/adapters/inbound/ReaderSurface.tsx +2 -2
  1006. package/src/features/reader/meta.ts +3 -3
  1007. package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +186 -0
  1008. package/src/features/registry/public.ts +1 -0
  1009. package/src/{registry.test.ts → features/registry/registry.test.ts} +6 -3
  1010. package/src/features/scanner/adapters/inbound/BarcodeScannerView.tsx +2 -2
  1011. package/src/features/scanner/adapters/inbound/CameraPermissionView.tsx +1 -1
  1012. package/src/features/scanner/adapters/inbound/ScanOverlay.tsx +2 -2
  1013. package/src/features/scanner/meta.ts +5 -5
  1014. package/src/features/section/adapters/inbound/ScreenSection.tsx +1 -1
  1015. package/src/features/section/adapters/inbound/SectionHeader.tsx +1 -1
  1016. package/src/features/section/screenSectionMeta.ts +2 -2
  1017. package/src/features/section/sectionHeaderMeta.ts +1 -1
  1018. package/src/features/selection/meta.ts +1 -1
  1019. package/src/features/skeleton/adapters/inbound/Skeleton.tsx +2 -2
  1020. package/src/features/skeleton/adapters/inbound/SkeletonCard.tsx +1 -1
  1021. package/src/features/skeleton/adapters/inbound/SkeletonList.tsx +1 -1
  1022. package/src/features/skeleton/adapters/inbound/SkeletonText.tsx +1 -1
  1023. package/src/features/skeleton/public.test.ts +1 -1
  1024. package/src/features/skeleton/skeletonMeta.ts +1 -1
  1025. package/src/features/surface/adapters/inbound/Surface.tsx +1 -1
  1026. package/src/features/surface/surfaceMeta.ts +2 -2
  1027. package/src/features/tabs/adapters/inbound/Tab.tsx +1 -1
  1028. package/src/features/tabs/adapters/inbound/TabList.tsx +1 -1
  1029. package/src/features/tabs/adapters/inbound/TabPanel.tsx +1 -1
  1030. package/src/features/tabs/adapters/inbound/Tabs.tsx +1 -1
  1031. package/src/features/tabs/tabListMeta.ts +1 -1
  1032. package/src/features/tabs/tabMeta.ts +1 -1
  1033. package/src/features/tabs/tabPanelMeta.ts +2 -2
  1034. package/src/features/tabs/tabsMeta.ts +1 -1
  1035. package/src/{theme → features/theme}/ThemeModeToggle.meta.ts +1 -1
  1036. package/src/{theme → features/theme/adapters/inbound}/ThemeModeToggle.tsx +4 -4
  1037. package/src/{theme → features/theme/adapters/inbound}/ZoraProvider.tsx +6 -6
  1038. package/src/features/theme/adapters/inbound/ZoraThemeScope.tsx +41 -0
  1039. package/src/{theme → features/theme/adapters/inbound}/withZoraThemeScope.tsx +1 -1
  1040. package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.test.ts +5 -1
  1041. package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.ts +3 -2
  1042. package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.test.ts +1 -1
  1043. package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.ts +2 -2
  1044. package/src/features/theme/colorModel.ts +13 -0
  1045. package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.tsx +1 -1
  1046. package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.tsx +1 -1
  1047. package/src/{theme → features/theme/composition}/ZoraThemeRuntimeContext.tsx +2 -2
  1048. package/src/{theme → features/theme/composition}/useZoraThemeRecipe.ts +1 -1
  1049. package/src/{theme → features/theme}/public.ts +3 -3
  1050. package/src/features/theme/runtime.ts +9 -0
  1051. package/src/{theme → features/theme}/themeConfigScope.test.ts +16 -7
  1052. package/src/{theme → features/theme}/themeScopeStructure.test.ts +16 -9
  1053. package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.ts +1 -1
  1054. package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.ts +1 -1
  1055. package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.ts +2 -2
  1056. package/src/{theme → features/theme}/zoraDefaultTheme.ts +1 -1
  1057. package/src/features/time-picker/adapters/inbound/TimePicker.native.tsx +1 -1
  1058. package/src/features/time-picker/adapters/inbound/TimePicker.web.tsx +1 -1
  1059. package/src/features/time-picker/public.test.ts +1 -1
  1060. package/src/features/time-picker/timePickerMeta.ts +1 -1
  1061. package/src/features/timeline/adapters/inbound/Timeline.tsx +4 -4
  1062. package/src/features/timeline/meta.ts +1 -1
  1063. package/src/features/toast/adapters/inbound/Toast.tsx +1 -1
  1064. package/src/features/toast/public.test.ts +4 -4
  1065. package/src/features/toast/toastMeta.ts +1 -1
  1066. package/src/features/toast/toastProviderMeta.ts +1 -1
  1067. package/src/features/toolbar/adapters/inbound/Toolbar.tsx +1 -1
  1068. package/src/features/toolbar/toolbarMeta.ts +1 -1
  1069. package/src/features/tree-view/adapters/inbound/TreeItem.tsx +2 -2
  1070. package/src/features/tree-view/adapters/inbound/TreeView.tsx +1 -1
  1071. package/src/features/tree-view/meta.ts +1 -1
  1072. package/src/features/typography/adapters/inbound/Heading.tsx +3 -3
  1073. package/src/features/typography/adapters/inbound/Text.tsx +3 -3
  1074. package/src/features/typography/headingMeta.ts +3 -3
  1075. package/src/features/typography/textMeta.ts +3 -3
  1076. package/src/features/typography/utils/headingThemeRecipeMeta.ts +2 -2
  1077. package/src/features/typography/utils/textThemeRecipeMeta.ts +2 -2
  1078. package/src/features/uploader/adapters/inbound/Uploader.tsx +1 -1
  1079. package/src/features/uploader/public.test.ts +2 -2
  1080. package/src/features/uploader/uploaderMeta.ts +1 -1
  1081. package/src/index.ts +56 -56
  1082. package/src/interactionPolicy.test.ts +3 -3
  1083. package/src/structureOwnership.test.ts +71 -0
  1084. package/src/types/accordion.ts +1 -1
  1085. package/src/types/activity-indicator.ts +1 -1
  1086. package/src/types/app-bar.ts +1 -1
  1087. package/src/types/auth.ts +1 -1
  1088. package/src/types/avatar-group.ts +2 -2
  1089. package/src/types/avatar.ts +2 -2
  1090. package/src/types/badge.ts +5 -2
  1091. package/src/{theme/ZoraBaseProps.ts → types/base.ts} +1 -1
  1092. package/src/types/breadcrumbs.ts +1 -1
  1093. package/src/types/button-group.ts +1 -1
  1094. package/src/types/button.ts +5 -2
  1095. package/src/types/card.ts +3 -2
  1096. package/src/types/chat.ts +2 -2
  1097. package/src/types/checkbox.ts +1 -1
  1098. package/src/types/chip-group.ts +3 -2
  1099. package/src/types/chip.ts +3 -2
  1100. package/src/types/collection-editor.ts +1 -1
  1101. package/src/types/content-rail.ts +1 -1
  1102. package/src/types/control.ts +3 -0
  1103. package/src/types/data-table.ts +1 -1
  1104. package/src/types/date-picker.ts +1 -1
  1105. package/src/types/dialog.ts +2 -2
  1106. package/src/types/empty-state.ts +3 -2
  1107. package/src/types/form.ts +1 -1
  1108. package/src/types/gradient.ts +1 -1
  1109. package/src/types/heading.ts +2 -2
  1110. package/src/types/hero.ts +3 -2
  1111. package/src/types/icon-button.ts +4 -2
  1112. package/src/types/icon.ts +1 -1
  1113. package/src/types/image.ts +1 -1
  1114. package/src/types/keyboard-avoiding-view.ts +1 -1
  1115. package/src/types/layout.ts +3 -2
  1116. package/src/types/list.ts +1 -1
  1117. package/src/types/manifest-bottom-sheet.ts +1 -1
  1118. package/src/types/manifest-list.ts +1 -1
  1119. package/src/types/media-card.ts +2 -2
  1120. package/src/types/metric-card.ts +3 -2
  1121. package/src/types/missing-element.ts +1 -1
  1122. package/src/types/pagination.ts +1 -1
  1123. package/src/types/palette-item.ts +1 -1
  1124. package/src/types/plugin.ts +43 -0
  1125. package/src/types/popover-menu.ts +1 -1
  1126. package/src/types/post-card.ts +3 -2
  1127. package/src/types/product-card.ts +1 -1
  1128. package/src/types/progress.ts +3 -2
  1129. package/src/types/provider.ts +1 -1
  1130. package/src/types/radio.ts +1 -1
  1131. package/src/types/rating.ts +3 -2
  1132. package/src/types/reader.ts +1 -1
  1133. package/src/types/registry.ts +3 -0
  1134. package/src/types/scanner.ts +1 -1
  1135. package/src/types/search-input.ts +2 -2
  1136. package/src/types/section.ts +1 -1
  1137. package/src/types/select.ts +1 -1
  1138. package/src/types/skeleton.ts +1 -1
  1139. package/src/types/surface.ts +1 -1
  1140. package/src/types/switch.ts +1 -1
  1141. package/src/types/tabs.ts +1 -1
  1142. package/src/types/text-input.ts +2 -2
  1143. package/src/types/text.ts +2 -2
  1144. package/src/{metadata/themeRecipeTypes.ts → types/theme-recipe.ts} +1 -9
  1145. package/src/{theme/types.ts → types/theme.ts} +11 -0
  1146. package/src/types/time-picker.ts +1 -1
  1147. package/src/types/timeline.ts +2 -2
  1148. package/src/types/toast.ts +1 -1
  1149. package/src/types/toolbar.ts +1 -1
  1150. package/src/types/tree-view.ts +1 -1
  1151. package/src/types/upload.ts +1 -1
  1152. package/dist/constants/keyboard.d.ts.map +0 -1
  1153. package/dist/constants/keyboard.js.map +0 -1
  1154. package/dist/constants.d.ts.map +0 -1
  1155. package/dist/constants.js.map +0 -1
  1156. package/dist/corePlugin.d.ts.map +0 -1
  1157. package/dist/corePlugin.js.map +0 -1
  1158. package/dist/corePluginMetadata.d.ts +0 -3
  1159. package/dist/corePluginMetadata.d.ts.map +0 -1
  1160. package/dist/corePluginMetadata.js.map +0 -1
  1161. package/dist/internal/colorModel.d.ts.map +0 -1
  1162. package/dist/internal/colorModel.js +0 -25
  1163. package/dist/internal/colorModel.js.map +0 -1
  1164. package/dist/internal/recipes.d.ts +0 -23
  1165. package/dist/internal/recipes.d.ts.map +0 -1
  1166. package/dist/internal/recipes.js +0 -59
  1167. package/dist/internal/recipes.js.map +0 -1
  1168. package/dist/metadata/allowedChildren.d.ts.map +0 -1
  1169. package/dist/metadata/allowedChildren.js.map +0 -1
  1170. package/dist/metadata/bindableComponentMeta.js.map +0 -1
  1171. package/dist/metadata/componentMeta.d.ts +0 -3
  1172. package/dist/metadata/componentMeta.d.ts.map +0 -1
  1173. package/dist/metadata/componentMeta.js +0 -184
  1174. package/dist/metadata/componentMeta.js.map +0 -1
  1175. package/dist/metadata/index.d.ts.map +0 -1
  1176. package/dist/metadata/index.js +0 -7
  1177. package/dist/metadata/index.js.map +0 -1
  1178. package/dist/metadata/themeRecipeMeta.d.ts +0 -3
  1179. package/dist/metadata/themeRecipeMeta.d.ts.map +0 -1
  1180. package/dist/metadata/themeRecipeMeta.js +0 -13
  1181. package/dist/metadata/themeRecipeMeta.js.map +0 -1
  1182. package/dist/metadata/themeRecipeTypes.d.ts.map +0 -1
  1183. package/dist/metadata/themeRecipeTypes.js +0 -8
  1184. package/dist/metadata/themeRecipeTypes.js.map +0 -1
  1185. package/dist/metadata/types.d.ts.map +0 -1
  1186. package/dist/metadata/types.js +0 -2
  1187. package/dist/metadata/types.js.map +0 -1
  1188. package/dist/pluginComposition.d.ts.map +0 -1
  1189. package/dist/pluginComposition.js.map +0 -1
  1190. package/dist/registry.d.ts.map +0 -1
  1191. package/dist/registry.js +0 -161
  1192. package/dist/registry.js.map +0 -1
  1193. package/dist/theme/ThemeModeToggle.d.ts.map +0 -1
  1194. package/dist/theme/ThemeModeToggle.js.map +0 -1
  1195. package/dist/theme/ThemeModeToggle.meta.d.ts.map +0 -1
  1196. package/dist/theme/ThemeModeToggle.meta.js.map +0 -1
  1197. package/dist/theme/ThemeModeToggleProps.d.ts.map +0 -1
  1198. package/dist/theme/ThemeModeToggleProps.js +0 -2
  1199. package/dist/theme/ThemeModeToggleProps.js.map +0 -1
  1200. package/dist/theme/ZoraBaseProps.d.ts.map +0 -1
  1201. package/dist/theme/ZoraBaseProps.js +0 -2
  1202. package/dist/theme/ZoraBaseProps.js.map +0 -1
  1203. package/dist/theme/ZoraProvider.d.ts.map +0 -1
  1204. package/dist/theme/ZoraProvider.js.map +0 -1
  1205. package/dist/theme/ZoraRuntimeCapabilities.d.ts.map +0 -1
  1206. package/dist/theme/ZoraRuntimeCapabilities.js.map +0 -1
  1207. package/dist/theme/ZoraRuntimeCapabilities.native.d.ts.map +0 -1
  1208. package/dist/theme/ZoraRuntimeCapabilities.native.js.map +0 -1
  1209. package/dist/theme/ZoraRuntimeCapabilities.web.d.ts.map +0 -1
  1210. package/dist/theme/ZoraRuntimeCapabilities.web.js.map +0 -1
  1211. package/dist/theme/ZoraThemeRuntimeContext.d.ts.map +0 -1
  1212. package/dist/theme/ZoraThemeRuntimeContext.js.map +0 -1
  1213. package/dist/theme/ZoraThemeScope.d.ts.map +0 -1
  1214. package/dist/theme/ZoraThemeScope.js +0 -37
  1215. package/dist/theme/ZoraThemeScope.js.map +0 -1
  1216. package/dist/theme/compileZoraTheme.d.ts.map +0 -1
  1217. package/dist/theme/compileZoraTheme.js.map +0 -1
  1218. package/dist/theme/createZoraThemeConfig.d.ts.map +0 -1
  1219. package/dist/theme/createZoraThemeConfig.js.map +0 -1
  1220. package/dist/theme/index.d.ts +0 -11
  1221. package/dist/theme/index.d.ts.map +0 -1
  1222. package/dist/theme/index.js +0 -7
  1223. package/dist/theme/index.js.map +0 -1
  1224. package/dist/theme/public.d.ts.map +0 -1
  1225. package/dist/theme/public.js +0 -4
  1226. package/dist/theme/public.js.map +0 -1
  1227. package/dist/theme/resolveThemeModeToggleState.d.ts.map +0 -1
  1228. package/dist/theme/resolveThemeModeToggleState.js.map +0 -1
  1229. package/dist/theme/resolveZoraScopedThemeId.d.ts.map +0 -1
  1230. package/dist/theme/resolveZoraScopedThemeId.js.map +0 -1
  1231. package/dist/theme/resolveZoraThemeRecipe.d.ts.map +0 -1
  1232. package/dist/theme/resolveZoraThemeRecipe.js.map +0 -1
  1233. package/dist/theme/types.d.ts.map +0 -1
  1234. package/dist/theme/types.js +0 -2
  1235. package/dist/theme/types.js.map +0 -1
  1236. package/dist/theme/useZoraTheme.d.ts +0 -8
  1237. package/dist/theme/useZoraTheme.d.ts.map +0 -1
  1238. package/dist/theme/useZoraTheme.js.map +0 -1
  1239. package/dist/theme/useZoraThemeRecipe.d.ts.map +0 -1
  1240. package/dist/theme/useZoraThemeRecipe.js.map +0 -1
  1241. package/dist/theme/withZoraThemeScope.d.ts.map +0 -1
  1242. package/dist/theme/withZoraThemeScope.js.map +0 -1
  1243. package/dist/theme/zoraDefaultTheme.d.ts +0 -3
  1244. package/dist/theme/zoraDefaultTheme.d.ts.map +0 -1
  1245. package/dist/theme/zoraDefaultTheme.js.map +0 -1
  1246. package/dist/utils/createManifestBindings.d.ts.map +0 -1
  1247. package/dist/utils/createManifestBindings.js.map +0 -1
  1248. package/dist/utils/finalizeFeatureMetadata.d.ts.map +0 -1
  1249. package/dist/utils/finalizeFeatureMetadata.js.map +0 -1
  1250. package/src/internal/colorModel.ts +0 -39
  1251. package/src/internal/recipes.test.ts +0 -46
  1252. package/src/internal/recipes.ts +0 -92
  1253. package/src/metadata/componentMeta.ts +0 -194
  1254. package/src/metadata/themeRecipeMeta.ts +0 -14
  1255. package/src/registry.ts +0 -197
  1256. package/src/theme/ZoraThemeScope.tsx +0 -56
  1257. package/src/theme/index.ts +0 -10
  1258. /package/dist/{metadata → features/authoring}/allowedChildren.d.ts +0 -0
  1259. /package/dist/{metadata → features/authoring}/allowedChildren.js +0 -0
  1260. /package/dist/{utils → features/authoring/utils}/createManifestBindings.js +0 -0
  1261. /package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.js +0 -0
  1262. /package/dist/{theme → features/theme}/ThemeModeToggle.meta.d.ts +0 -0
  1263. /package/dist/{theme → features/theme}/ThemeModeToggle.meta.js +0 -0
  1264. /package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.js +0 -0
  1265. /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.d.ts +0 -0
  1266. /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.js +0 -0
  1267. /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.js +0 -0
  1268. /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.js +0 -0
  1269. /package/dist/{theme → features/theme/composition}/useZoraTheme.js +0 -0
  1270. /package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.d.ts +0 -0
  1271. /package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.js +0 -0
  1272. /package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.js +0 -0
  1273. /package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.d.ts +0 -0
  1274. /package/dist/{theme → features/theme}/zoraDefaultTheme.js +0 -0
  1275. /package/src/{metadata → features/authoring}/allowedChildren.ts +0 -0
  1276. /package/src/{metadata → features/authoring}/authoringMeta.test.ts +0 -0
  1277. /package/src/{metadata → features/authoring}/bindableComponentMeta.test.ts +0 -0
  1278. /package/src/{metadata → features/authoring}/radioGroupReachability.test.ts +0 -0
  1279. /package/src/{metadata → features/authoring}/themeRecipeMeta.test.ts +0 -0
  1280. /package/src/{constants/keyboard.ts → features/form/radio/constants.ts} +0 -0
  1281. /package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.tsx +0 -0
  1282. /package/src/{theme → features/theme/composition}/useZoraTheme.ts +0 -0
  1283. /package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.test.ts +0 -0
  1284. /package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.test.ts +0 -0
  1285. /package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.test.ts +0 -0
  1286. /package/src/{metadata/types.ts → types/authoring.ts} +0 -0
  1287. /package/src/{theme/ThemeModeToggleProps.ts → types/theme-mode-toggle.ts} +0 -0
@@ -1,3 +1,3 @@
1
- import type { ThemeModeToggleProps } from './ThemeModeToggleProps';
1
+ import type { ThemeModeToggleProps } from '../../../../types/theme-mode-toggle';
2
2
  export declare function ThemeModeToggle({ disabled, interactionPolicy, size, testID, }: ThemeModeToggleProps): import("react").JSX.Element;
3
3
  //# sourceMappingURL=ThemeModeToggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeModeToggle.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ThemeModeToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAKhF,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,iBAAiB,EACjB,IAAU,EACV,MAAM,GACP,EAAE,oBAAoB,+BAiBtB"}
@@ -1,6 +1,6 @@
1
- import { IconButton } from '../features/button/public';
2
- import { resolveThemeModeToggleState } from './resolveThemeModeToggleState';
3
- import { useZoraTheme } from './useZoraTheme';
1
+ import { IconButton } from '../../../button/public';
2
+ import { useZoraTheme } from '../../composition/useZoraTheme';
3
+ import { resolveThemeModeToggleState } from '../../utils/resolveThemeModeToggleState';
4
4
  export function ThemeModeToggle({ disabled, interactionPolicy, size = 'm', testID, }) {
5
5
  const { mode, setMode } = useZoraTheme();
6
6
  const state = resolveThemeModeToggleState(mode);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeModeToggle.js","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ThemeModeToggle.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AAEtF,MAAM,UAAU,eAAe,CAAC,EAC9B,QAAQ,EACR,iBAAiB,EACjB,IAAI,GAAG,GAAG,EACV,MAAM,GACe;IACrB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;IAEhD,OAAO,CACL,CAAC,UAAU,CACT,KAAK,CAAC,SAAS,CACf,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAC/B,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CACvC,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,OAAO,CAAC,OAAO,EACf,CACH,CAAC;AACJ,CAAC","sourcesContent":["import type { ThemeModeToggleProps } from '../../../../types/theme-mode-toggle';\nimport { IconButton } from '../../../button/public';\nimport { useZoraTheme } from '../../composition/useZoraTheme';\nimport { resolveThemeModeToggleState } from '../../utils/resolveThemeModeToggleState';\n\nexport function ThemeModeToggle({\n disabled,\n interactionPolicy,\n size = 'm',\n testID,\n}: ThemeModeToggleProps) {\n const { mode, setMode } = useZoraTheme();\n const state = resolveThemeModeToggleState(mode);\n\n return (\n <IconButton\n color=\"neutral\"\n disabled={disabled}\n icon={{ name: state.iconName }}\n interactionPolicy={interactionPolicy}\n label={state.label}\n onPress={() => setMode(state.nextMode)}\n size={size}\n testID={testID}\n variant=\"ghost\"\n />\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { ZoraProviderProps } from '../types/provider';
3
- export type { ZoraProviderProps, ZoraToastCapability } from '../types/provider';
2
+ import type { ZoraProviderProps } from '../../../../types/provider';
3
+ export type { ZoraProviderProps, ZoraToastCapability } from '../../../../types/provider';
4
4
  /*** Installs the core ZORA theme runtime and explicitly enabled optional capabilities. */
5
5
  export declare function ZoraProvider({ bottomSheet, children, theme, themeConfig, initialMode, toast, }: ZoraProviderProps): React.JSX.Element;
6
6
  //# sourceMappingURL=ZoraProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraProvider.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ZoraProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAMpE,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEzF,0FAA0F;AAC1F,wBAAgB,YAAY,CAAC,EAC3B,WAAmB,EACnB,QAAQ,EACR,KAAwB,EACxB,WAAW,EACX,WAAqB,EACrB,KAAa,GACd,EAAE,iBAAiB,qBAgBnB"}
@@ -1,9 +1,9 @@
1
1
  import { ThemeProvider } from '@ankhorage/surface';
2
2
  import React from 'react';
3
- import { createZoraThemeConfig } from './createZoraThemeConfig';
4
- import { zoraDefaultTheme } from './zoraDefaultTheme';
5
- import { ZoraRuntimeCapabilities } from './ZoraRuntimeCapabilities';
6
- import { ZoraThemeRuntimeContext } from './ZoraThemeRuntimeContext';
3
+ import { createZoraThemeConfig } from '../../application/use-cases/createZoraThemeConfig';
4
+ import { ZoraRuntimeCapabilities } from '../../composition/ZoraRuntimeCapabilities';
5
+ import { ZoraThemeRuntimeContext } from '../../composition/ZoraThemeRuntimeContext';
6
+ import { zoraDefaultTheme } from '../../zoraDefaultTheme';
7
7
  /*** Installs the core ZORA theme runtime and explicitly enabled optional capabilities. */
8
8
  export function ZoraProvider({ bottomSheet = false, children, theme = zoraDefaultTheme, themeConfig, initialMode = 'light', toast = false, }) {
9
9
  const resolvedConfig = React.useMemo(() => themeConfig ?? createZoraThemeConfig(theme), [theme, themeConfig]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraProvider.js","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ZoraProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,0FAA0F;AAC1F,MAAM,UAAU,YAAY,CAAC,EAC3B,WAAW,GAAG,KAAK,EACnB,QAAQ,EACR,KAAK,GAAG,gBAAgB,EACxB,WAAW,EACX,WAAW,GAAG,OAAO,EACrB,KAAK,GAAG,KAAK,GACK;IAClB,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAClC,GAAG,EAAE,CAAC,WAAW,IAAI,qBAAqB,CAAC,KAAK,CAAC,EACjD,CAAC,KAAK,EAAE,WAAW,CAAC,CACrB,CAAC;IACF,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAEhG,OAAO,CACL,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAC3C;MAAA,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CACrE;QAAA,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAC9D;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,uBAAuB,CAC3B;MAAA,EAAE,aAAa,CACjB;IAAA,EAAE,uBAAuB,CAAC,CAC3B,CAAC;AACJ,CAAC","sourcesContent":["import { ThemeProvider } from '@ankhorage/surface';\nimport React from 'react';\n\nimport type { ZoraProviderProps } from '../../../../types/provider';\nimport { createZoraThemeConfig } from '../../application/use-cases/createZoraThemeConfig';\nimport { ZoraRuntimeCapabilities } from '../../composition/ZoraRuntimeCapabilities';\nimport { ZoraThemeRuntimeContext } from '../../composition/ZoraThemeRuntimeContext';\nimport { zoraDefaultTheme } from '../../zoraDefaultTheme';\n\nexport type { ZoraProviderProps, ZoraToastCapability } from '../../../../types/provider';\n\n/*** Installs the core ZORA theme runtime and explicitly enabled optional capabilities. */\nexport function ZoraProvider({\n bottomSheet = false,\n children,\n theme = zoraDefaultTheme,\n themeConfig,\n initialMode = 'light',\n toast = false,\n}: ZoraProviderProps) {\n const resolvedConfig = React.useMemo(\n () => themeConfig ?? createZoraThemeConfig(theme),\n [theme, themeConfig],\n );\n const runtimeValue = React.useMemo(() => ({ themeId: resolvedConfig.id }), [resolvedConfig.id]);\n\n return (\n <ZoraThemeRuntimeContext value={runtimeValue}>\n <ThemeProvider initialConfig={resolvedConfig} initialMode={initialMode}>\n <ZoraRuntimeCapabilities bottomSheet={bottomSheet} toast={toast}>\n {children}\n </ZoraRuntimeCapabilities>\n </ThemeProvider>\n </ZoraThemeRuntimeContext>\n );\n}\n"]}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import type { ZoraThemeId, ZoraThemeMode } from './types';
2
+ import type { ZoraThemeId, ZoraThemeMode } from '../../../../types/theme';
3
3
  export interface ZoraThemeScopeProps {
4
4
  children: React.ReactNode;
5
5
  themeId?: ZoraThemeId;
6
6
  mode?: ZoraThemeMode;
7
7
  }
8
- /*** Applies nested ZORA theme overrides without installing another Surface theme runtime. */
8
+ /*** Applies nested ZORA theme overrides through the public Surface theme scope. */
9
9
  export declare function ZoraThemeScope({ children, themeId, mode }: ZoraThemeScopeProps): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined;
10
10
  //# sourceMappingURL=ZoraThemeScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraThemeScope.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ZoraThemeScope.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAO1E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,mBAAmB,mSAO9E"}
@@ -0,0 +1,24 @@
1
+ import { ThemeScope } from '@ankhorage/surface';
2
+ import React, { useMemo } from 'react';
3
+ import { useZoraThemeRuntime, ZoraThemeRuntimeContext, } from '../../composition/ZoraThemeRuntimeContext';
4
+ import { resolveZoraScopedThemeId } from '../../utils/resolveZoraScopedThemeId';
5
+ /*** Applies nested ZORA theme overrides through the public Surface theme scope. */
6
+ export function ZoraThemeScope({ children, themeId, mode }) {
7
+ if (mode === undefined && themeId === undefined)
8
+ return children;
9
+ return (<ZoraThemeScopeInner mode={mode} themeId={themeId}>
10
+ {children}
11
+ </ZoraThemeScopeInner>);
12
+ }
13
+ /*** Resolves and provides the scoped Surface and ZORA theme runtime values. */
14
+ function ZoraThemeScopeInner({ children, themeId, mode }) {
15
+ const parentRuntime = useZoraThemeRuntime();
16
+ const scopedThemeId = resolveZoraScopedThemeId({
17
+ desiredThemeId: themeId,
18
+ inheritedThemeId: parentRuntime.themeId,
19
+ });
20
+ const scopedRuntimeValue = useMemo(() => ({ themeId: scopedThemeId }), [scopedThemeId]);
21
+ const scopedChildren = mode === undefined ? children : <ThemeScope mode={mode}>{children}</ThemeScope>;
22
+ return (<ZoraThemeRuntimeContext value={scopedRuntimeValue}>{scopedChildren}</ZoraThemeRuntimeContext>);
23
+ }
24
+ //# sourceMappingURL=ZoraThemeScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraThemeScope.js","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/ZoraThemeScope.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAA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React, { useMemo } from 'react';\n\nimport type { ZoraThemeId, ZoraThemeMode } from '../../../../types/theme';\nimport {\n useZoraThemeRuntime,\n ZoraThemeRuntimeContext,\n} from '../../composition/ZoraThemeRuntimeContext';\nimport { resolveZoraScopedThemeId } from '../../utils/resolveZoraScopedThemeId';\n\nexport interface ZoraThemeScopeProps {\n children: React.ReactNode;\n themeId?: ZoraThemeId;\n mode?: ZoraThemeMode;\n}\n\n/*** Applies nested ZORA theme overrides through the public Surface theme scope. */\nexport function ZoraThemeScope({ children, themeId, mode }: ZoraThemeScopeProps) {\n if (mode === undefined && themeId === undefined) return children;\n return (\n <ZoraThemeScopeInner mode={mode} themeId={themeId}>\n {children}\n </ZoraThemeScopeInner>\n );\n}\n\n/*** Resolves and provides the scoped Surface and ZORA theme runtime values. */\nfunction ZoraThemeScopeInner({ children, themeId, mode }: ZoraThemeScopeProps) {\n const parentRuntime = useZoraThemeRuntime();\n const scopedThemeId = resolveZoraScopedThemeId({\n desiredThemeId: themeId,\n inheritedThemeId: parentRuntime.themeId,\n });\n const scopedRuntimeValue = useMemo(() => ({ themeId: scopedThemeId }), [scopedThemeId]);\n const scopedChildren =\n mode === undefined ? children : <ThemeScope mode={mode}>{children}</ThemeScope>;\n\n return (\n <ZoraThemeRuntimeContext value={scopedRuntimeValue}>{scopedChildren}</ZoraThemeRuntimeContext>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import type { ZoraBaseProps } from './ZoraBaseProps';
2
+ import type { ZoraBaseProps } from '../../../../types/base';
3
3
  export declare function withZoraThemeScope<P extends ZoraBaseProps>(Component: (props: P) => React.ReactElement | null): (props: P) => React.ReactElement | null;
4
4
  //# sourceMappingURL=withZoraThemeScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withZoraThemeScope.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/withZoraThemeScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,aAAa,EACxD,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,GACjD,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAkBzC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withZoraThemeScope.js","sourceRoot":"","sources":["../../../../../src/features/theme/adapters/inbound/withZoraThemeScope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,UAAU,kBAAkB,CAChC,SAAkD;IAElD,MAAM,OAAO,GAAG,CAAC,KAAQ,EAAE,EAAE;QAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAC5D,OAAO,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,CACL,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACvD;QAAA,CAAC,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE,KAAK,CAAC,CACxC;MAAA,EAAE,cAAc,CAAC,CAClB,CAAC;IACJ,CAAC,CAAC;IAEF,MAAM,IAAI,GACP,SAAsC,CAAC,WAAW,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,WAAW,CAAC,CAAC;IACxF,OAAoC,CAAC,WAAW,GAAG,sBAAsB,IAAI,GAAG,CAAC;IAElF,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["import React from 'react';\n\nimport type { ZoraBaseProps } from '../../../../types/base';\nimport { ZoraThemeScope } from './ZoraThemeScope';\n\nexport function withZoraThemeScope<P extends ZoraBaseProps>(\n Component: (props: P) => React.ReactElement | null,\n): (props: P) => React.ReactElement | null {\n const Wrapped = (props: P) => {\n if (props.mode === undefined && props.themeId === undefined) {\n return React.createElement(Component, props);\n }\n\n return (\n <ZoraThemeScope mode={props.mode} themeId={props.themeId}>\n {React.createElement(Component, props)}\n </ZoraThemeScope>\n );\n };\n\n const name =\n (Component as { displayName?: string }).displayName ?? (Component.name || 'Component');\n (Wrapped as { displayName?: string }).displayName = `withZoraThemeScope(${name})`;\n\n return Wrapped;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ThemeConfig } from '@ankhorage/contracts';
2
- import type { ZoraComputedTheme, ZoraThemeCompilationOptions } from './types';
2
+ import type { ZoraComputedTheme, ZoraThemeCompilationOptions } from '../../../../types/theme';
3
3
  /***
4
4
  * Compile canonical theme source into Color Theory evidence and resolved Surface themes.
5
5
  * This function is pure and does not mount React or reproduce owner algorithms.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compileZoraTheme.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EACV,iBAAiB,EAGjB,2BAA2B,EAK5B,MAAM,yBAAyB,CAAC;AAOjC;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,WAAW,EACxB,OAAO,GAAE,2BAAgC,GACxC,iBAAiB,CAYnB"}
@@ -1,5 +1,6 @@
1
1
  import { generateThemeModeColors, selectColorSwatchStep } from '@ankhorage/color-theory';
2
2
  import { createTheme } from '@ankhorage/surface/theme';
3
+ import { isDeepEqual } from '@ankhorage/utility/object';
3
4
  const CONTRACTS_OWNER = '@ankhorage/contracts';
4
5
  const COLOR_THEORY_OWNER = '@ankhorage/color-theory';
5
6
  const SURFACE_OWNER = '@ankhorage/surface';
@@ -123,6 +124,6 @@ function createModeProvenance(mode, targets) {
123
124
  }
124
125
  /*** Compare deterministic owner result records for divergence diagnostics. */
125
126
  function outputsAgree(left, right) {
126
- return JSON.stringify(left) === JSON.stringify(right);
127
+ return isDeepEqual(left, right);
127
128
  }
128
129
  //# sourceMappingURL=compileZoraTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compileZoraTheme.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/compileZoraTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAaxD,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAC/C,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAC3C,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAErC;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAC9B,WAAwB,EACxB,UAAuC,EAAE;IAEzC,MAAM,KAAK,GAAG,WAAW,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IACvF,MAAM,IAAI,GAAG,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,gBAAgB,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACpF,MAAM,WAAW,GAAG,CAAC,GAAG,KAAK,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IAEhE,OAAO;QACL,WAAW;QACX,KAAK;QACL,IAAI;QACJ,WAAW;QACX,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;KAC9C,CAAC;AACJ,CAAC;AAED,6EAA6E;AAC7E,SAAS,WAAW,CAClB,WAAwB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K,CAAC,CAAC;AAClC,CAAC","sourcesContent":["import { generateThemeModeColors, selectColorSwatchStep } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\nimport { createTheme } from '@ankhorage/surface/theme';\nimport { isDeepEqual } from '@ankhorage/utility/object';\n\nimport type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationOptions,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n} from '../../../../types/theme';\n\nconst CONTRACTS_OWNER = '@ankhorage/contracts';\nconst COLOR_THEORY_OWNER = '@ankhorage/color-theory';\nconst SURFACE_OWNER = '@ankhorage/surface';\nconst ZORA_OWNER = '@ankhorage/zora';\n\n/***\n * Compile canonical theme source into Color Theory evidence and resolved Surface themes.\n * This function is pure and does not mount React or reproduce owner algorithms.\n */\nexport function compileZoraTheme(\n themeConfig: ThemeConfig,\n options: ZoraThemeCompilationOptions = {},\n): ZoraComputedTheme {\n const light = compileMode(themeConfig, 'light', options.selectionTargets?.light ?? []);\n const dark = compileMode(themeConfig, 'dark', options.selectionTargets?.dark ?? []);\n const diagnostics = [...light.diagnostics, ...dark.diagnostics];\n\n return {\n themeConfig,\n light,\n dark,\n diagnostics,\n provenance: createRootProvenance(themeConfig),\n };\n}\n\n/*** Compile one canonical mode and compare the independent owner results. */\nfunction compileMode(\n themeConfig: ThemeConfig,\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraComputedThemeMode {\n const modeConfig = mode === 'light' ? themeConfig.light : themeConfig.dark;\n const generated = generateThemeModeColors(modeConfig);\n const surfaceTheme = createTheme(themeConfig, mode);\n const { diagnostics, selections } = resolveSelections(generated, mode, targets);\n\n if (!outputsAgree(generated, surfaceTheme.colorDiagnostics.generated)) {\n diagnostics.push({\n code: 'generated-output-divergence',\n message: 'Surface and Color Theory returned different generated color evidence.',\n mode,\n path: `${mode}.generated`,\n severity: 'error',\n });\n }\n\n return {\n mode,\n generated,\n surfaceTheme,\n selections,\n diagnostics,\n provenance: createModeProvenance(mode, targets),\n };\n}\n\n/*** Resolve measurable swatch targets without substituting unavailable roles. */\nfunction resolveSelections(\n generated: ZoraComputedThemeMode['generated'],\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): {\n diagnostics: ZoraThemeCompilationDiagnostic[];\n selections: ZoraThemeSelectionResult[];\n} {\n const diagnostics: ZoraThemeCompilationDiagnostic[] = [];\n const selections = targets.map((request) => {\n const swatch = generated.swatches[request.swatch];\n const result = swatch\n ? selectColorSwatchStep(swatch, request.target, request.contexts, request.tiePolicy)\n : null;\n\n if (!swatch) diagnostics.push(createMissingSwatchDiagnostic(mode, request));\n else if (!result?.selected) diagnostics.push(createUnresolvedTargetDiagnostic(mode, request));\n\n return { request, result };\n });\n\n return { diagnostics, selections };\n}\n\n/*** Describe a requested swatch that the selected harmony does not generate. */\nfunction createMissingSwatchDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'missing-target-swatch',\n message: `The selected harmony does not generate the '${request.swatch}' swatch.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Describe a measurable target that has no passing swatch candidate. */\nfunction createUnresolvedTargetDiagnostic(\n mode: ZoraThemeMode,\n request: ZoraThemeSelectionTarget,\n): ZoraThemeCompilationDiagnostic {\n return {\n code: 'unresolved-selection-target',\n message: `No '${request.swatch}' step satisfies selection target '${request.id}'.`,\n mode,\n path: `${mode}.selectionTargets.${request.id}`,\n severity: 'error',\n };\n}\n\n/*** Record direct source and Surface-owned default provenance. */\nfunction createRootProvenance(themeConfig: ThemeConfig): ZoraThemeProvenanceEntry[] {\n return [\n { path: 'themeConfig', origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: 'themeConfig.tokens',\n origin: themeConfig.tokens ? 'direct' : 'defaulted',\n owner: themeConfig.tokens ? CONTRACTS_OWNER : SURFACE_OWNER,\n },\n ];\n}\n\n/*** Record the owner transformation chain for one compiled mode. */\nfunction createModeProvenance(\n mode: ZoraThemeMode,\n targets: readonly ZoraThemeSelectionTarget[],\n): ZoraThemeProvenanceEntry[] {\n const inputPath = `themeConfig.${mode}`;\n const entries: ZoraThemeProvenanceEntry[] = [\n { path: inputPath, origin: 'direct', owner: CONTRACTS_OWNER },\n {\n path: `${mode}.generated`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [inputPath],\n },\n {\n path: `${mode}.surfaceTheme`,\n origin: 'derived',\n owner: SURFACE_OWNER,\n inputs: ['themeConfig', inputPath],\n },\n ];\n\n for (const target of targets) {\n const targetPath = `${mode}.selectionTargets.${target.id}`;\n entries.push({ path: targetPath, origin: 'direct', owner: ZORA_OWNER });\n entries.push({\n path: `${mode}.selections.${target.id}`,\n origin: 'derived',\n owner: COLOR_THEORY_OWNER,\n inputs: [`${mode}.generated.swatches.${target.swatch}`, targetPath],\n });\n }\n\n return entries;\n}\n\n/*** Compare deterministic owner result records for divergence diagnostics. */\nfunction outputsAgree(left: unknown, right: unknown): boolean {\n return isDeepEqual(left, right);\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ThemeConfig } from '@ankhorage/contracts';
2
- import type { ZoraTheme } from './types';
2
+ import type { ZoraTheme } from '../../../../types/theme';
3
3
  /*** Convert the concise ZORA design seed into canonical persisted theme source. */
4
4
  export declare function createZoraThemeConfig(theme?: ZoraTheme): ThemeConfig;
5
5
  //# sourceMappingURL=createZoraThemeConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createZoraThemeConfig.d.ts","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGzD,mFAAmF;AACnF,wBAAgB,qBAAqB,CAAC,KAAK,GAAE,SAA4B,GAAG,WAAW,CAetF"}
@@ -1,5 +1,5 @@
1
1
  import { parseHexColorOrThrow } from '@ankhorage/color-theory';
2
- import { zoraDefaultTheme } from './zoraDefaultTheme';
2
+ import { zoraDefaultTheme } from '../../zoraDefaultTheme';
3
3
  /*** Convert the concise ZORA design seed into canonical persisted theme source. */
4
4
  export function createZoraThemeConfig(theme = zoraDefaultTheme) {
5
5
  const primaryColor = parseHexColorOrThrow(theme.primaryColor);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createZoraThemeConfig.js","sourceRoot":"","sources":["../../../../../src/features/theme/application/use-cases/createZoraThemeConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,mFAAmF;AACnF,MAAM,UAAU,qBAAqB,CAAC,QAAmB,gBAAgB;IACvE,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAE9D,OAAO;QACL,EAAE,EAAE,KAAK,CAAC,EAAE;QACZ,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE;YACL,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;QACD,IAAI,EAAE;YACJ,YAAY;YACZ,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { parseHexColorOrThrow } from '@ankhorage/color-theory';\nimport type { ThemeConfig } from '@ankhorage/contracts';\n\nimport type { ZoraTheme } from '../../../../types/theme';\nimport { zoraDefaultTheme } from '../../zoraDefaultTheme';\n\n/*** Convert the concise ZORA design seed into canonical persisted theme source. */\nexport function createZoraThemeConfig(theme: ZoraTheme = zoraDefaultTheme): ThemeConfig {\n const primaryColor = parseHexColorOrThrow(theme.primaryColor);\n\n return {\n id: theme.id,\n name: theme.name,\n light: {\n primaryColor,\n harmony: theme.harmony,\n },\n dark: {\n primaryColor,\n harmony: theme.harmony,\n },\n };\n}\n"]}
@@ -1,8 +1,4 @@
1
- import type { SurfaceColor, SurfaceEmphasis, SurfacePaletteColor, SurfaceStatusColor } from '@ankhorage/surface';
2
- export type ZoraPaletteColor = SurfacePaletteColor;
3
- export type ZoraStatusColor = SurfaceStatusColor;
4
- export type ZoraColor = SurfaceColor;
5
- export type ZoraEmphasis = SurfaceEmphasis;
1
+ export type { ZoraColor, ZoraEmphasis, ZoraPaletteColor, ZoraStatusColor } from '../../types/theme';
6
2
  export declare const ZORA_PALETTE_COLORS: readonly ["primary", "secondary", "tertiary", "quaternary", "neutral"];
7
3
  export declare const ZORA_STATUS_COLORS: readonly ["success", "warning", "error", "info"];
8
4
  export declare const ZORA_COLORS: readonly ["primary", "secondary", "tertiary", "quaternary", "neutral", "success", "warning", "error", "info", "danger"];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorModel.d.ts","sourceRoot":"","sources":["../../../src/features/theme/colorModel.ts"],"names":[],"mappings":"AAOA,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpG,eAAO,MAAM,mBAAmB,wEAAyB,CAAC;AAC1D,eAAO,MAAM,kBAAkB,kDAAwB,CAAC;AACxD,eAAO,MAAM,WAAW,yHAAiB,CAAC;AAC1C,eAAO,MAAM,aAAa,oDAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { SURFACE_COLORS, SURFACE_EMPHASES, SURFACE_PALETTE_COLORS, SURFACE_STATUS_COLORS, } from '@ankhorage/surface/color';
2
+ export const ZORA_PALETTE_COLORS = SURFACE_PALETTE_COLORS;
3
+ export const ZORA_STATUS_COLORS = SURFACE_STATUS_COLORS;
4
+ export const ZORA_COLORS = SURFACE_COLORS;
5
+ export const ZORA_EMPHASES = SURFACE_EMPHASES;
6
+ //# sourceMappingURL=colorModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorModel.js","sourceRoot":"","sources":["../../../src/features/theme/colorModel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAIlC,MAAM,CAAC,MAAM,mBAAmB,GAAG,sBAAsB,CAAC;AAC1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AACxD,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAC1C,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC","sourcesContent":["import {\n SURFACE_COLORS,\n SURFACE_EMPHASES,\n SURFACE_PALETTE_COLORS,\n SURFACE_STATUS_COLORS,\n} from '@ankhorage/surface/color';\n\nexport type { ZoraColor, ZoraEmphasis, ZoraPaletteColor, ZoraStatusColor } from '../../types/theme';\n\nexport const ZORA_PALETTE_COLORS = SURFACE_PALETTE_COLORS;\nexport const ZORA_STATUS_COLORS = SURFACE_STATUS_COLORS;\nexport const ZORA_COLORS = SURFACE_COLORS;\nexport const ZORA_EMPHASES = SURFACE_EMPHASES;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC","sourcesContent":["export { ZoraRuntimeCapabilities } from './ZoraRuntimeCapabilities.web';\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraRuntimeCapabilitiesProps } from '../types/provider';
1
+ import type { ZoraRuntimeCapabilitiesProps } from '../../../types/provider';
2
2
  /*** Installs optional native runtime capabilities without forcing unused hosts. */
3
3
  export declare function ZoraRuntimeCapabilities({ bottomSheet, children, toast, }: ZoraRuntimeCapabilitiesProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
4
4
  //# sourceMappingURL=ZoraRuntimeCapabilities.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.native.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.native.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAE5E,mFAAmF;AACnF,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,QAAQ,EACR,KAAK,GACN,EAAE,4BAA4B,+VAQ9B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.native.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAItE,mFAAmF;AACnF,MAAM,UAAU,uBAAuB,CAAC,EACtC,WAAW,EACX,QAAQ,EACR,KAAK,GACwB;IAC7B,MAAM,YAAY,GAAG,KAAK,CAAC,CAAC,CAAC,CAC3B,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAC3F,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CAAC;IAEF,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,YAAY,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;AAChG,CAAC","sourcesContent":["import { ToastProvider as SurfaceToastProvider } from '@ankhorage/surface';\nimport { BottomSheetProvider } from '@ankhorage/surface/bottom-sheet';\n\nimport type { ZoraRuntimeCapabilitiesProps } from '../../../types/provider';\n\n/*** Installs optional native runtime capabilities without forcing unused hosts. */\nexport function ZoraRuntimeCapabilities({\n bottomSheet,\n children,\n toast,\n}: ZoraRuntimeCapabilitiesProps) {\n const toastContent = toast ? (\n <SurfaceToastProvider {...(toast === true ? {} : toast)}>{children}</SurfaceToastProvider>\n ) : (\n children\n );\n\n return bottomSheet ? <BottomSheetProvider>{toastContent}</BottomSheetProvider> : toastContent;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraRuntimeCapabilitiesProps } from '../types/provider';
1
+ import type { ZoraRuntimeCapabilitiesProps } from '../../../types/provider';
2
2
  /*** Installs only web-relevant optional runtime capabilities. */
3
3
  export declare function ZoraRuntimeCapabilities({ children, toast }: ZoraRuntimeCapabilitiesProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
4
4
  //# sourceMappingURL=ZoraRuntimeCapabilities.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.web.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.web.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAE5E,iEAAiE;AACjE,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,4BAA4B,+VAIxF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraRuntimeCapabilities.web.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraRuntimeCapabilities.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAI3E,iEAAiE;AACjE,MAAM,UAAU,uBAAuB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAgC;IACvF,IAAI,CAAC,KAAK;QAAE,OAAO,QAAQ,CAAC;IAE5B,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAC,CAAC;AACpG,CAAC","sourcesContent":["import { ToastProvider as SurfaceToastProvider } from '@ankhorage/surface';\n\nimport type { ZoraRuntimeCapabilitiesProps } from '../../../types/provider';\n\n/*** Installs only web-relevant optional runtime capabilities. */\nexport function ZoraRuntimeCapabilities({ children, toast }: ZoraRuntimeCapabilitiesProps) {\n if (!toast) return children;\n\n return <SurfaceToastProvider {...(toast === true ? {} : toast)}>{children}</SurfaceToastProvider>;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraThemeId } from './types';
1
+ import type { ZoraThemeId } from '../../../types/theme';
2
2
  interface ZoraThemeRuntime {
3
3
  themeId: ZoraThemeId;
4
4
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraThemeRuntimeContext.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraThemeRuntimeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,UAAU,gBAAgB;IACxB,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,2CAElC,CAAC;AAEH,8CAA8C;AAC9C,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
@@ -1,5 +1,5 @@
1
1
  import { createContext, use } from 'react';
2
- import { zoraDefaultTheme } from './zoraDefaultTheme';
2
+ import { zoraDefaultTheme } from '../zoraDefaultTheme';
3
3
  export const ZoraThemeRuntimeContext = createContext({
4
4
  themeId: zoraDefaultTheme.id,
5
5
  });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZoraThemeRuntimeContext.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/ZoraThemeRuntimeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAmB;IACrE,OAAO,EAAE,gBAAgB,CAAC,EAAE;CAC7B,CAAC,CAAC;AAEH,8CAA8C;AAC9C,MAAM,UAAU,mBAAmB;IACjC,OAAO,GAAG,CAAC,uBAAuB,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { createContext, use } from 'react';\n\nimport type { ZoraThemeId } from '../../../types/theme';\nimport { zoraDefaultTheme } from '../zoraDefaultTheme';\n\ninterface ZoraThemeRuntime {\n themeId: ZoraThemeId;\n}\n\nexport const ZoraThemeRuntimeContext = createContext<ZoraThemeRuntime>({\n themeId: zoraDefaultTheme.id,\n});\n\n/*** Returns the active ZORA theme runtime. */\nexport function useZoraThemeRuntime(): ZoraThemeRuntime {\n return use(ZoraThemeRuntimeContext);\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export declare function useZoraTheme(): import("@ankhorage/surface").ThemeRuntime;
2
+ //# sourceMappingURL=useZoraTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraTheme.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/useZoraTheme.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,8CAE3B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraTheme.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/useZoraTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,UAAU,YAAY;IAC1B,OAAO,QAAQ,EAAE,CAAC;AACpB,CAAC","sourcesContent":["import { useTheme } from '@ankhorage/surface';\n\nexport function useZoraTheme() {\n return useTheme();\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraThemeRecipe.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/composition/useZoraThemeRecipe.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,qFAGpD"}
@@ -1,4 +1,4 @@
1
- import { resolveZoraThemeRecipe } from './resolveZoraThemeRecipe';
1
+ import { resolveZoraThemeRecipe } from '../utils/resolveZoraThemeRecipe';
2
2
  import { useZoraTheme } from './useZoraTheme';
3
3
  export function useZoraThemeRecipe(recipeName) {
4
4
  const { theme } = useZoraTheme();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useZoraThemeRecipe.js","sourceRoot":"","sources":["../../../../src/features/theme/composition/useZoraThemeRecipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,UAAU,kBAAkB,CAAC,UAAkB;IACnD,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,OAAO,sBAAsB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AACnD,CAAC","sourcesContent":["import { resolveZoraThemeRecipe } from '../utils/resolveZoraThemeRecipe';\nimport { useZoraTheme } from './useZoraTheme';\n\nexport function useZoraThemeRecipe(recipeName: string) {\n const { theme } = useZoraTheme();\n return resolveZoraThemeRecipe(theme, recipeName);\n}\n"]}
@@ -1,5 +1,5 @@
1
- export { compileZoraTheme } from './compileZoraTheme';
2
- export { createZoraThemeConfig } from './createZoraThemeConfig';
3
- export type { ZoraComputedTheme, ZoraComputedThemeMode, ZoraTheme, ZoraThemeCompilationDiagnostic, ZoraThemeCompilationDiagnosticCode, ZoraThemeCompilationOptions, ZoraThemeId, ZoraThemeMode, ZoraThemeProvenanceEntry, ZoraThemeSelectionResult, ZoraThemeSelectionTarget, ZoraThemeSwatchRole, ZoraThemeValueOrigin, } from './types';
1
+ export type { ZoraComputedTheme, ZoraComputedThemeMode, ZoraTheme, ZoraThemeCompilationDiagnostic, ZoraThemeCompilationDiagnosticCode, ZoraThemeCompilationOptions, ZoraThemeId, ZoraThemeMode, ZoraThemeProvenanceEntry, ZoraThemeSelectionResult, ZoraThemeSelectionTarget, ZoraThemeSwatchRole, ZoraThemeValueOrigin, } from '../../types/theme';
2
+ export { compileZoraTheme } from './application/use-cases/compileZoraTheme';
3
+ export { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';
4
4
  export { zoraDefaultTheme } from './zoraDefaultTheme';
5
5
  //# sourceMappingURL=public.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,SAAS,EACT,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { compileZoraTheme } from './application/use-cases/compileZoraTheme';
2
+ export { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';
3
+ export { zoraDefaultTheme } from './zoraDefaultTheme';
4
+ //# sourceMappingURL=public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/features/theme/public.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC","sourcesContent":["export type {\n ZoraComputedTheme,\n ZoraComputedThemeMode,\n ZoraTheme,\n ZoraThemeCompilationDiagnostic,\n ZoraThemeCompilationDiagnosticCode,\n ZoraThemeCompilationOptions,\n ZoraThemeId,\n ZoraThemeMode,\n ZoraThemeProvenanceEntry,\n ZoraThemeSelectionResult,\n ZoraThemeSelectionTarget,\n ZoraThemeSwatchRole,\n ZoraThemeValueOrigin,\n} from '../../types/theme';\nexport { compileZoraTheme } from './application/use-cases/compileZoraTheme';\nexport { createZoraThemeConfig } from './application/use-cases/createZoraThemeConfig';\nexport { zoraDefaultTheme } from './zoraDefaultTheme';\n"]}
@@ -0,0 +1,10 @@
1
+ export type { ZoraBaseProps } from '../../types/base';
2
+ export type { ThemeModeToggleProps } from '../../types/theme-mode-toggle';
3
+ export { ThemeModeToggle } from './adapters/inbound/ThemeModeToggle';
4
+ export { withZoraThemeScope } from './adapters/inbound/withZoraThemeScope';
5
+ export type { ZoraProviderProps, ZoraToastCapability } from './adapters/inbound/ZoraProvider';
6
+ export { ZoraProvider } from './adapters/inbound/ZoraProvider';
7
+ export type { ZoraThemeScopeProps } from './adapters/inbound/ZoraThemeScope';
8
+ export { ZoraThemeScope } from './adapters/inbound/ZoraThemeScope';
9
+ export { useZoraTheme } from './composition/useZoraTheme';
10
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/features/theme/runtime.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ThemeModeToggle } from './adapters/inbound/ThemeModeToggle';
2
+ export { withZoraThemeScope } from './adapters/inbound/withZoraThemeScope';
3
+ export { ZoraProvider } from './adapters/inbound/ZoraProvider';
4
+ export { ZoraThemeScope } from './adapters/inbound/ZoraThemeScope';
5
+ export { useZoraTheme } from './composition/useZoraTheme';
6
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/features/theme/runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAE3E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export type { ZoraBaseProps } from '../../types/base';\nexport type { ThemeModeToggleProps } from '../../types/theme-mode-toggle';\nexport { ThemeModeToggle } from './adapters/inbound/ThemeModeToggle';\nexport { withZoraThemeScope } from './adapters/inbound/withZoraThemeScope';\nexport type { ZoraProviderProps, ZoraToastCapability } from './adapters/inbound/ZoraProvider';\nexport { ZoraProvider } from './adapters/inbound/ZoraProvider';\nexport type { ZoraThemeScopeProps } from './adapters/inbound/ZoraThemeScope';\nexport { ZoraThemeScope } from './adapters/inbound/ZoraThemeScope';\nexport { useZoraTheme } from './composition/useZoraTheme';\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraThemeMode } from './types';
1
+ import type { ZoraThemeMode } from '../../../types/theme';
2
2
  interface ThemeModeToggleState {
3
3
  readonly iconName: 'moon-outline' | 'sunny-outline';
4
4
  readonly label: 'Use dark mode' | 'Use light mode';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveThemeModeToggleState.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveThemeModeToggleState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,QAAQ,EAAE,cAAc,GAAG,eAAe,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;CAClC;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,aAAa,GAAG,oBAAoB,CAYrF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveThemeModeToggleState.js","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveThemeModeToggleState.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,2BAA2B,CAAC,IAAmB;IAC7D,OAAO,IAAI,KAAK,MAAM;QACpB,CAAC,CAAC;YACE,QAAQ,EAAE,eAAe;YACzB,KAAK,EAAE,gBAAgB;YACvB,QAAQ,EAAE,OAAO;SAClB;QACH,CAAC,CAAC;YACE,QAAQ,EAAE,cAAc;YACxB,KAAK,EAAE,eAAe;YACtB,QAAQ,EAAE,MAAM;SACjB,CAAC;AACR,CAAC","sourcesContent":["import type { ZoraThemeMode } from '../../../types/theme';\n\ninterface ThemeModeToggleState {\n readonly iconName: 'moon-outline' | 'sunny-outline';\n readonly label: 'Use dark mode' | 'Use light mode';\n readonly nextMode: ZoraThemeMode;\n}\n\nexport function resolveThemeModeToggleState(mode: ZoraThemeMode): ThemeModeToggleState {\n return mode === 'dark'\n ? {\n iconName: 'sunny-outline',\n label: 'Use light mode',\n nextMode: 'light',\n }\n : {\n iconName: 'moon-outline',\n label: 'Use dark mode',\n nextMode: 'dark',\n };\n}\n"]}
@@ -1,4 +1,4 @@
1
- import type { ZoraThemeId } from './types';
1
+ import type { ZoraThemeId } from '../../../types/theme';
2
2
  export declare function resolveZoraScopedThemeId({ desiredThemeId, inheritedThemeId, }: {
3
3
  desiredThemeId: ZoraThemeId | undefined;
4
4
  inheritedThemeId: ZoraThemeId;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveZoraScopedThemeId.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveZoraScopedThemeId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,wBAAgB,wBAAwB,CAAC,EACvC,cAAc,EACd,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IACxC,gBAAgB,EAAE,WAAW,CAAC;CAC/B,GAAG,WAAW,CAgBd"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveZoraScopedThemeId.js","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveZoraScopedThemeId.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,wBAAwB,CAAC,EACvC,cAAc,EACd,gBAAgB,GAIjB;IACC,IAAI,cAAc,KAAK,SAAS,IAAI,cAAc,KAAK,gBAAgB,EAAE,CAAC;QACxE,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,OAAO,GAAG;QACd,0BAA0B,cAAc,IAAI;QAC5C,yFAAyF;KAC1F,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAEZ,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AAC3B,CAAC","sourcesContent":["import type { ZoraThemeId } from '../../../types/theme';\n\nexport function resolveZoraScopedThemeId({\n desiredThemeId,\n inheritedThemeId,\n}: {\n desiredThemeId: ZoraThemeId | undefined;\n inheritedThemeId: ZoraThemeId;\n}): ZoraThemeId {\n if (desiredThemeId === undefined || desiredThemeId === inheritedThemeId) {\n return inheritedThemeId;\n }\n\n const message = [\n `Unknown ZORA theme id '${desiredThemeId}'.`,\n 'Theme registries are not available yet; register the theme before using themeId scopes.',\n ].join(' ');\n\n if (process.env.NODE_ENV === 'production') {\n console.warn(message);\n return inheritedThemeId;\n }\n\n throw new Error(message);\n}\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveZoraThemeRecipe.d.ts","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveZoraThemeRecipe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAKlF,UAAU,2BAA2B;IACnC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE;QACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;KAC3B,CAAC;CACH;AAID,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,EAClC,UAAU,EAAE,MAAM,GACjB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAqBpD"}
@@ -1,4 +1,4 @@
1
- import { ZORA_THEME_RECIPE_META } from '../metadata/themeRecipeMeta';
1
+ import { ZORA_THEME_RECIPE_META } from '../../authoring/themeRecipeMeta';
2
2
  const recipeMetaByName = new Map(Object.entries(ZORA_THEME_RECIPE_META));
3
3
  export function resolveZoraThemeRecipe(theme, recipeName) {
4
4
  const meta = recipeMetaByName.get(recipeName);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveZoraThemeRecipe.js","sourceRoot":"","sources":["../../../../src/features/theme/utils/resolveZoraThemeRecipe.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAezE,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC;AAEzE,MAAM,UAAU,sBAAsB,CACpC,KAAkC,EAClC,UAAkB;IAElB,MAAM,IAAI,GAAG,gBAAgB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC9C,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,UAAU,CAAC,8BAA8B,UAAU,GAAG,CAAC,CAAC;IAE7E,MAAM,OAAO,GACX,IAAI,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;IAChG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,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,EAAE,GAAgB;IAC7C,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAC1D,CAAC","sourcesContent":["import type { ThemeConfig, ThemeRecipeOverrideValue } from '@ankhorage/contracts';\n\nimport type { ZoraThemeRecipeFieldMeta, ZoraThemeTokenFamily } from '../../../types/theme-recipe';\nimport { ZORA_THEME_RECIPE_META } from '../../authoring/themeRecipeMeta';\n\ninterface ZoraThemeRecipeRuntimeTheme {\n readonly config: ThemeConfig;\n readonly colors: object;\n readonly spacing: object;\n readonly radii: object;\n readonly shadows: object;\n readonly typography: {\n readonly sizes: object;\n readonly weights: object;\n readonly headings: object;\n };\n}\n\nconst recipeMetaByName = new Map(Object.entries(ZORA_THEME_RECIPE_META));\n\nexport function resolveZoraThemeRecipe(\n theme: ZoraThemeRecipeRuntimeTheme,\n recipeName: string,\n): Readonly<Record<string, ThemeRecipeOverrideValue>> {\n const meta = recipeMetaByName.get(recipeName);\n if (!meta) throw new RangeError(`Unknown ZORA theme recipe: ${recipeName}.`);\n\n const recipes =\n meta.kind === 'component' ? theme.config.recipes?.components : theme.config.recipes?.patterns;\n const overrides = new Map(Object.entries(recipes ?? {})).get(recipeName);\n const overrideByField = new Map(Object.entries(overrides ?? {}));\n const resolved: [string, ThemeRecipeOverrideValue][] = [];\n\n for (const [fieldName, fieldMeta] of Object.entries(meta.fields)) {\n const override = overrideByField.get(fieldName);\n if (override !== undefined) {\n validateFieldValue(theme, recipeName, fieldName, fieldMeta, override);\n resolved.push([fieldName, override]);\n } else if (fieldMeta.default !== undefined) {\n resolved.push([fieldName, fieldMeta.default]);\n }\n }\n\n return Object.fromEntries(resolved);\n}\n\nfunction validateFieldValue(\n theme: ZoraThemeRecipeRuntimeTheme,\n recipeName: string,\n fieldName: string,\n meta: ZoraThemeRecipeFieldMeta,\n value: ThemeRecipeOverrideValue,\n): void {\n if (meta.type === 'boolean') {\n if (typeof value !== 'boolean') {\n throw new TypeError(`Theme recipe ${recipeName}.${fieldName} must be boolean.`);\n }\n return;\n }\n if (typeof value !== 'string') {\n throw new TypeError(`Theme recipe ${recipeName}.${fieldName} must be a string.`);\n }\n if (meta.type === 'choice' && !meta.options.includes(value)) {\n throw new RangeError(`Invalid theme recipe choice for ${recipeName}.${fieldName}: ${value}.`);\n }\n if (meta.type === 'token' && !hasThemeToken(theme, meta.tokenFamily, value)) {\n throw new RangeError(\n `Unknown ${meta.tokenFamily} token for ${recipeName}.${fieldName}: ${value}.`,\n );\n }\n}\n\nfunction hasThemeToken(\n theme: ZoraThemeRecipeRuntimeTheme,\n family: ZoraThemeTokenFamily,\n token: string,\n): boolean {\n if (family === 'colors') return hasOwn(theme.colors, token);\n if (family === 'spacing') return hasOwn(theme.spacing, token);\n if (family === 'radii') return hasOwn(theme.radii, token);\n if (family === 'shadows') return hasOwn(theme.shadows, token);\n return (\n hasOwn(theme.typography.sizes, token) ||\n hasOwn(theme.typography.weights, token) ||\n hasOwn(theme.typography.headings, token)\n );\n}\n\nfunction hasOwn(value: object, key: PropertyKey): boolean {\n return Object.prototype.hasOwnProperty.call(value, key);\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ZoraTheme } from '../../types/theme';
2
+ export declare const zoraDefaultTheme: ZoraTheme;
3
+ //# sourceMappingURL=zoraDefaultTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoraDefaultTheme.d.ts","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAO,MAAM,gBAAgB,EAAE,SAM9B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoraDefaultTheme.js","sourceRoot":"","sources":["../../../src/features/theme/zoraDefaultTheme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAc;IACzC,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,iBAAiB;IAC9B,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,WAAW;CACrB,CAAC","sourcesContent":["import type { ZoraTheme } from '../../types/theme';\n\nexport const zoraDefaultTheme: ZoraTheme = {\n id: 'zora',\n name: 'ZORA',\n appCategory: 'developer_tools',\n primaryColor: '#0f766e',\n harmony: 'analogous',\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.native.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAMrE,gEAAgE;AAChE,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
1
+ {"version":3,"file":"TimePicker.native.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAOrE,gEAAgE;AAChE,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
3
2
  import { useBottomSheet } from '../../../bottom-sheet/public';
3
+ import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
4
4
  import { TimePickerContent } from '../../composition/TimePickerContent';
5
5
  import { TimePickerField } from '../../composition/TimePickerField';
6
6
  import { TimePickerTrigger } from '../../composition/TimePickerTrigger';
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.native.js","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAA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AAK,CAAC,MAAM,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnB,CACH;SACF,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAE9B,OAAO,CACL,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,CACzB;MAAA,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,EACpD;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TimePickerProps } from '../../../../types/time-picker';\nimport { useBottomSheet } from '../../../bottom-sheet/public';\nimport { TimePickerContent } from '../../composition/TimePickerContent';\nimport { TimePickerField } from '../../composition/TimePickerField';\nimport { TimePickerTrigger } from '../../composition/TimePickerTrigger';\n\n/*** Renders TimePicker with native BottomSheet presentation. */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n\n/*** Connects the shared TimePicker field and content to the native BottomSheet host. */\nfunction TimePickerInner({ themeId: _themeId, mode: _mode, ...props }: TimePickerProps) {\n const { dismiss, present } = useBottomSheet();\n\n const openPicker = React.useCallback(() => {\n if (props.interactionPolicy === 'passive') return;\n\n present({\n content: (\n <TimePickerContent\n description={props.description}\n formatTime={props.formatTime}\n interactionPolicy={props.interactionPolicy}\n label={props.label}\n maxTime={props.maxTime}\n minTime={props.minTime}\n onDismiss={dismiss}\n onSelect={(time) => {\n props.onValueChange?.(time);\n dismiss();\n }}\n stepMinutes={props.stepMinutes}\n testID={props.testID}\n value={props.value}\n />\n ),\n });\n }, [dismiss, present, props]);\n\n return (\n <TimePickerField {...props}>\n <TimePickerTrigger {...props} onPress={openPicker} />\n </TimePickerField>\n );\n}\n"]}
1
+ {"version":3,"file":"TimePicker.native.js","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound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Z,CAAC,CAAC,CACF,WAAW,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAC/B,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EACnB,CACH;SACF,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAE9B,OAAO,CACL,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,CACzB;MAAA,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,EACpD;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import React from 'react';\n\nimport type { TimePickerProps } from '../../../../types/time-picker';\nimport { useBottomSheet } from '../../../bottom-sheet/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { TimePickerContent } from '../../composition/TimePickerContent';\nimport { TimePickerField } from '../../composition/TimePickerField';\nimport { TimePickerTrigger } from '../../composition/TimePickerTrigger';\n\n/*** Renders TimePicker with native BottomSheet presentation. */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n\n/*** Connects the shared TimePicker field and content to the native BottomSheet host. */\nfunction TimePickerInner({ themeId: _themeId, mode: _mode, ...props }: TimePickerProps) {\n const { dismiss, present } = useBottomSheet();\n\n const openPicker = React.useCallback(() => {\n if (props.interactionPolicy === 'passive') return;\n\n present({\n content: (\n <TimePickerContent\n description={props.description}\n formatTime={props.formatTime}\n interactionPolicy={props.interactionPolicy}\n label={props.label}\n maxTime={props.maxTime}\n minTime={props.minTime}\n onDismiss={dismiss}\n onSelect={(time) => {\n props.onValueChange?.(time);\n dismiss();\n }}\n stepMinutes={props.stepMinutes}\n testID={props.testID}\n value={props.value}\n />\n ),\n });\n }, [dismiss, present, props]);\n\n return (\n <TimePickerField {...props}>\n <TimePickerTrigger {...props} onPress={openPicker} />\n </TimePickerField>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.web.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAMrE,kEAAkE;AAClE,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
1
+ {"version":3,"file":"TimePicker.web.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAOrE,kEAAkE;AAClE,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Popover } from '@ankhorage/surface';
2
2
  import React from 'react';
3
- import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
4
3
  import { Surface } from '../../../surface/public';
4
+ import { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';
5
5
  import { TimePickerContent } from '../../composition/TimePickerContent';
6
6
  import { TimePickerField } from '../../composition/TimePickerField';
7
7
  import { TimePickerTrigger } from '../../composition/TimePickerTrigger';
@@ -1 +1 @@
1
- {"version":3,"file":"TimePicker.web.js","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,eAAe,EAA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,CAAC,CACvB,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAChC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,CAAC,CACF,WAAW,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAC/B,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAEvB;QAAA,EAAE,OAAO,CACX;MAAA,EAAE,OAAO,CACX;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { Popover } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { TimePickerProps } from '../../../../types/time-picker';\nimport { Surface } from '../../../surface/public';\nimport { TimePickerContent } from '../../composition/TimePickerContent';\nimport { TimePickerField } from '../../composition/TimePickerField';\nimport { TimePickerTrigger } from '../../composition/TimePickerTrigger';\n\n/*** Renders TimePicker with anchored web Popover presentation. */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n\n/*** Connects the shared TimePicker field and content to the web Popover host. */\nfunction TimePickerInner({ themeId: _themeId, mode: _mode, ...props }: TimePickerProps) {\n const [open, setOpen] = React.useState(false);\n\n return (\n <TimePickerField {...props}>\n <Popover\n anchor={({ toggle }) => <TimePickerTrigger {...props} onPress={toggle} />}\n interactionPolicy={props.interactionPolicy}\n onOpenChange={setOpen}\n open={open}\n placement=\"bottom-start\"\n testID={props.testID ? `${props.testID}-popover` : undefined}\n >\n <Surface variant=\"raised\">\n <TimePickerContent\n description={props.description}\n formatTime={props.formatTime}\n interactionPolicy={props.interactionPolicy}\n label={props.label}\n maxTime={props.maxTime}\n minTime={props.minTime}\n onDismiss={() => setOpen(false)}\n onSelect={(time) => {\n props.onValueChange?.(time);\n setOpen(false);\n }}\n stepMinutes={props.stepMinutes}\n testID={props.testID}\n value={props.value}\n />\n </Surface>\n </Popover>\n </TimePickerField>\n );\n}\n"]}
1
+ {"version":3,"file":"TimePicker.web.js","sourceRoot":"","sources":["../../../../../src/features/time-picker/adapters/inbound/TimePicker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAExE,kEAAkE;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC;AAE9D,iFAAiF;AACjF,SAAS,eAAe,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAmB;IACpF,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,CACL,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,CACzB;MAAA,CAAC,OAAO,CACN,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAG,CAAC,CAC1E,iBAAiB,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC3C,YAAY,CAAC,CAAC,OAAO,CAAC,CACtB,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,CAAC,cAAc,CACxB,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAE7D;QAAA,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CACvB;UAAA,CAAC,iBAAiB,CAChB,WAAW,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAC/B,UAAU,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAC7B,iBAAiB,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC3C,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CACnB,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACvB,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CACvB,SAAS,CAAC,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAChC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE;YACjB,KAAK,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC,CAAC,CACF,WAAW,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAC/B,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CACrB,KAAK,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAEvB;QAAA,EAAE,OAAO,CACX;MAAA,EAAE,OAAO,CACX;IAAA,EAAE,eAAe,CAAC,CACnB,CAAC;AACJ,CAAC","sourcesContent":["import { Popover } from '@ankhorage/surface';\nimport React from 'react';\n\nimport type { TimePickerProps } from '../../../../types/time-picker';\nimport { Surface } from '../../../surface/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { TimePickerContent } from '../../composition/TimePickerContent';\nimport { TimePickerField } from '../../composition/TimePickerField';\nimport { TimePickerTrigger } from '../../composition/TimePickerTrigger';\n\n/*** Renders TimePicker with anchored web Popover presentation. */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n\n/*** Connects the shared TimePicker field and content to the web Popover host. */\nfunction TimePickerInner({ themeId: _themeId, mode: _mode, ...props }: TimePickerProps) {\n const [open, setOpen] = React.useState(false);\n\n return (\n <TimePickerField {...props}>\n <Popover\n anchor={({ toggle }) => <TimePickerTrigger {...props} onPress={toggle} />}\n interactionPolicy={props.interactionPolicy}\n onOpenChange={setOpen}\n open={open}\n placement=\"bottom-start\"\n testID={props.testID ? `${props.testID}-popover` : undefined}\n >\n <Surface variant=\"raised\">\n <TimePickerContent\n description={props.description}\n formatTime={props.formatTime}\n interactionPolicy={props.interactionPolicy}\n label={props.label}\n maxTime={props.maxTime}\n minTime={props.minTime}\n onDismiss={() => setOpen(false)}\n onSelect={(time) => {\n props.onValueChange?.(time);\n setOpen(false);\n }}\n stepMinutes={props.stepMinutes}\n testID={props.testID}\n value={props.value}\n />\n </Surface>\n </Popover>\n </TimePickerField>\n );\n}\n"]}