@ankhorage/zora 18.0.0 → 19.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 (587) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/constants.d.ts +2 -1
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/constants.js +2 -1
  6. package/dist/constants.js.map +1 -1
  7. package/dist/corePluginMetadata.d.ts.map +1 -1
  8. package/dist/corePluginMetadata.js +1 -5
  9. package/dist/corePluginMetadata.js.map +1 -1
  10. package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
  11. package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
  12. package/dist/features/card/cardMeta.d.ts +1 -1
  13. package/dist/features/card/mediaCardMeta.d.ts +1 -1
  14. package/dist/features/card/postCardMeta.d.ts +1 -1
  15. package/dist/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.d.ts +1 -1
  16. package/dist/features/chat/adapters/inbound/ChatListItem.d.ts.map +1 -0
  17. package/dist/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.js +9 -9
  18. package/dist/features/chat/adapters/inbound/ChatListItem.js.map +1 -0
  19. package/dist/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.d.ts +1 -1
  20. package/dist/features/chat/adapters/inbound/MessageBubble.d.ts.map +1 -0
  21. package/dist/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.js +8 -8
  22. package/dist/features/chat/adapters/inbound/MessageBubble.js.map +1 -0
  23. package/dist/{patterns/chat-list-item/meta.d.ts → features/chat/chatListItemMeta.d.ts} +1 -1
  24. package/dist/features/chat/chatListItemMeta.d.ts.map +1 -0
  25. package/dist/{patterns/chat-list-item/meta.js → features/chat/chatListItemMeta.js} +1 -1
  26. package/dist/features/chat/chatListItemMeta.js.map +1 -0
  27. package/dist/{patterns/message-bubble/meta.d.ts → features/chat/messageBubbleMeta.d.ts} +2 -2
  28. package/dist/features/chat/messageBubbleMeta.d.ts.map +1 -0
  29. package/dist/{patterns/message-bubble/meta.js → features/chat/messageBubbleMeta.js} +1 -1
  30. package/dist/features/chat/messageBubbleMeta.js.map +1 -0
  31. package/dist/features/chat/public.d.ts +4 -0
  32. package/dist/features/chat/public.d.ts.map +1 -0
  33. package/dist/features/chat/public.js +3 -0
  34. package/dist/features/chat/public.js.map +1 -0
  35. package/dist/features/chip/adapters/inbound/Chip.js +3 -3
  36. package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
  37. package/dist/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.d.ts +1 -1
  38. package/dist/features/collection-editor/adapters/inbound/CollectionEditor.d.ts.map +1 -0
  39. package/dist/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.js +8 -8
  40. package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js.map +1 -0
  41. package/dist/features/collection-editor/meta.d.ts.map +1 -0
  42. package/dist/{patterns → features}/collection-editor/meta.js.map +1 -1
  43. package/dist/features/collection-editor/public.d.ts +3 -0
  44. package/dist/features/collection-editor/public.d.ts.map +1 -0
  45. package/dist/features/collection-editor/public.js +2 -0
  46. package/dist/features/collection-editor/public.js.map +1 -0
  47. package/dist/features/content-rail/contentRailMeta.d.ts +2 -2
  48. package/dist/features/dialog/dialogMeta.d.ts +2 -2
  49. package/dist/features/form/field/meta.d.ts +1 -1
  50. package/dist/features/form/field/meta.d.ts.map +1 -1
  51. package/dist/features/form/field/meta.js +1 -0
  52. package/dist/features/form/field/meta.js.map +1 -1
  53. package/dist/features/form/switch/adapters/inbound/Switch.d.ts +5 -0
  54. package/dist/features/form/switch/adapters/inbound/Switch.d.ts.map +1 -0
  55. package/dist/features/form/switch/adapters/inbound/Switch.js +9 -0
  56. package/dist/features/form/switch/adapters/inbound/Switch.js.map +1 -0
  57. package/dist/features/form/switch/public.d.ts +3 -0
  58. package/dist/features/form/switch/public.d.ts.map +1 -0
  59. package/dist/features/form/switch/public.js +2 -0
  60. package/dist/features/form/switch/public.js.map +1 -0
  61. package/dist/features/form/switch/switchMeta.d.ts +33 -0
  62. package/dist/features/form/switch/switchMeta.d.ts.map +1 -0
  63. package/dist/features/form/switch/switchMeta.js +13 -0
  64. package/dist/features/form/switch/switchMeta.js.map +1 -0
  65. package/dist/features/gradient/gradientMeta.d.ts +1 -1
  66. package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
  67. package/dist/features/layout/gridMeta.d.ts +1 -1
  68. package/dist/features/layout/public.d.ts +1 -2
  69. package/dist/features/layout/public.d.ts.map +1 -1
  70. package/dist/features/layout/public.js +0 -1
  71. package/dist/features/layout/public.js.map +1 -1
  72. package/dist/features/layout/screenMeta.d.ts +1 -1
  73. package/dist/features/layout/scrollViewMeta.d.ts +1 -1
  74. package/dist/features/layout/viewMeta.d.ts +1 -1
  75. package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -1
  76. package/dist/features/list/adapters/inbound/ListSection.js +1 -1
  77. package/dist/features/list/adapters/inbound/ListSection.js.map +1 -1
  78. package/dist/features/list/flatListMeta.d.ts +1 -1
  79. package/dist/features/list/sectionListMeta.d.ts +1 -1
  80. package/dist/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.d.ts +1 -1
  81. package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +1 -0
  82. package/dist/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.js +9 -9
  83. package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +1 -0
  84. package/dist/{patterns → features}/reader/meta.d.ts +2 -2
  85. package/dist/{patterns → features}/reader/meta.d.ts.map +1 -1
  86. package/dist/{patterns → features}/reader/meta.js.map +1 -1
  87. package/dist/features/reader/public.d.ts +4 -0
  88. package/dist/features/reader/public.d.ts.map +1 -0
  89. package/dist/features/reader/public.js +3 -0
  90. package/dist/features/reader/public.js.map +1 -0
  91. package/dist/features/reader/utils/resolveReaderProgress.d.ts.map +1 -0
  92. package/dist/features/reader/utils/resolveReaderProgress.js.map +1 -0
  93. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.d.ts +1 -1
  94. package/dist/features/scanner/adapters/inbound/BarcodeScannerView.d.ts.map +1 -0
  95. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.js +5 -5
  96. package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js.map +1 -0
  97. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.d.ts +1 -1
  98. package/dist/features/scanner/adapters/inbound/CameraPermissionView.d.ts.map +1 -0
  99. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.js +5 -5
  100. package/dist/features/scanner/adapters/inbound/CameraPermissionView.js.map +1 -0
  101. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.d.ts +1 -1
  102. package/dist/features/scanner/adapters/inbound/ScanOverlay.d.ts.map +1 -0
  103. package/dist/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.js +5 -5
  104. package/dist/features/scanner/adapters/inbound/ScanOverlay.js.map +1 -0
  105. package/dist/{patterns → features}/scanner/meta.d.ts +2 -2
  106. package/dist/{patterns → features}/scanner/meta.d.ts.map +1 -1
  107. package/dist/{patterns → features}/scanner/meta.js.map +1 -1
  108. package/dist/features/scanner/public.d.ts +5 -0
  109. package/dist/features/scanner/public.d.ts.map +1 -0
  110. package/dist/features/scanner/public.js +4 -0
  111. package/dist/features/scanner/public.js.map +1 -0
  112. package/dist/features/{layout → section}/adapters/inbound/ScreenSection.d.ts +1 -1
  113. package/dist/features/section/adapters/inbound/ScreenSection.d.ts.map +1 -0
  114. package/dist/features/{layout → section}/adapters/inbound/ScreenSection.js +2 -2
  115. package/dist/features/section/adapters/inbound/ScreenSection.js.map +1 -0
  116. package/dist/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.d.ts +1 -1
  117. package/dist/features/section/adapters/inbound/SectionHeader.d.ts.map +1 -0
  118. package/dist/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.js +4 -4
  119. package/dist/features/section/adapters/inbound/SectionHeader.js.map +1 -0
  120. package/dist/features/section/public.d.ts +4 -0
  121. package/dist/features/section/public.d.ts.map +1 -0
  122. package/dist/features/section/public.js +3 -0
  123. package/dist/features/section/public.js.map +1 -0
  124. package/dist/features/{layout → section}/screenSectionMeta.d.ts +1 -1
  125. package/dist/features/section/screenSectionMeta.d.ts.map +1 -0
  126. package/dist/features/section/screenSectionMeta.js.map +1 -0
  127. package/dist/{patterns/section-header/meta.d.ts → features/section/sectionHeaderMeta.d.ts} +1 -1
  128. package/dist/features/section/sectionHeaderMeta.d.ts.map +1 -0
  129. package/dist/{patterns/section-header/meta.js → features/section/sectionHeaderMeta.js} +1 -1
  130. package/dist/features/section/sectionHeaderMeta.js.map +1 -0
  131. package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.d.ts +1 -1
  132. package/dist/features/selection/adapters/inbound/SelectableItem.d.ts.map +1 -0
  133. package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.js +4 -4
  134. package/dist/features/selection/adapters/inbound/SelectableItem.js.map +1 -0
  135. package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.d.ts +1 -1
  136. package/dist/features/selection/adapters/inbound/SelectionProvider.d.ts.map +1 -0
  137. package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.js +1 -1
  138. package/dist/features/selection/adapters/inbound/SelectionProvider.js.map +1 -0
  139. package/dist/{patterns → features}/selection/meta.d.ts.map +1 -1
  140. package/dist/{patterns → features}/selection/meta.js.map +1 -1
  141. package/dist/features/selection/public.d.ts +4 -0
  142. package/dist/features/selection/public.d.ts.map +1 -0
  143. package/dist/features/selection/public.js +3 -0
  144. package/dist/features/selection/public.js.map +1 -0
  145. package/dist/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.d.ts +1 -1
  146. package/dist/features/selection/utils/resolveSelectionNextIds.d.ts.map +1 -0
  147. package/dist/features/selection/utils/resolveSelectionNextIds.js.map +1 -0
  148. package/dist/features/surface/surfaceMeta.d.ts +1 -1
  149. package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
  150. package/dist/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.d.ts +1 -1
  151. package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -0
  152. package/dist/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.js +7 -7
  153. package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -0
  154. package/dist/features/timeline/meta.d.ts.map +1 -0
  155. package/dist/{patterns → features}/timeline/meta.js.map +1 -1
  156. package/dist/features/timeline/public.d.ts +3 -0
  157. package/dist/features/timeline/public.d.ts.map +1 -0
  158. package/dist/features/timeline/public.js +2 -0
  159. package/dist/features/timeline/public.js.map +1 -0
  160. package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.d.ts +2 -2
  161. package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -0
  162. package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.js +4 -4
  163. package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -0
  164. package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.d.ts +1 -1
  165. package/dist/features/tree-view/adapters/inbound/TreeView.d.ts.map +1 -0
  166. package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.js +2 -2
  167. package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -0
  168. package/dist/{patterns → features}/tree-view/meta.d.ts.map +1 -1
  169. package/dist/{patterns → features}/tree-view/meta.js.map +1 -1
  170. package/dist/features/tree-view/public.d.ts +4 -0
  171. package/dist/features/tree-view/public.d.ts.map +1 -0
  172. package/dist/features/tree-view/public.js +3 -0
  173. package/dist/features/tree-view/public.js.map +1 -0
  174. package/dist/index.d.ts +18 -34
  175. package/dist/index.d.ts.map +1 -1
  176. package/dist/index.js +10 -17
  177. package/dist/index.js.map +1 -1
  178. package/dist/metadata/allowedChildren.d.ts +4 -4
  179. package/dist/metadata/allowedChildren.d.ts.map +1 -1
  180. package/dist/metadata/allowedChildren.js +0 -3
  181. package/dist/metadata/allowedChildren.js.map +1 -1
  182. package/dist/metadata/bindableComponentMeta.d.ts +23 -23
  183. package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
  184. package/dist/metadata/bindableComponentMeta.js +20 -28
  185. package/dist/metadata/bindableComponentMeta.js.map +1 -1
  186. package/dist/metadata/componentMeta.d.ts.map +1 -1
  187. package/dist/metadata/componentMeta.js +12 -24
  188. package/dist/metadata/componentMeta.js.map +1 -1
  189. package/dist/metadata/themeRecipeMeta.d.ts.map +1 -1
  190. package/dist/metadata/themeRecipeMeta.js +0 -2
  191. package/dist/metadata/themeRecipeMeta.js.map +1 -1
  192. package/dist/registry.d.ts.map +1 -1
  193. package/dist/registry.js +11 -24
  194. package/dist/registry.js.map +1 -1
  195. package/dist/{patterns/message-bubble/types.d.ts → types/chat.d.ts} +29 -4
  196. package/dist/types/chat.d.ts.map +1 -0
  197. package/dist/types/chat.js +2 -0
  198. package/dist/types/chat.js.map +1 -0
  199. package/dist/{patterns/collection-editor/types.d.ts → types/collection-editor.d.ts} +2 -2
  200. package/dist/types/collection-editor.d.ts.map +1 -0
  201. package/dist/types/collection-editor.js +2 -0
  202. package/dist/types/collection-editor.js.map +1 -0
  203. package/dist/types/layout.d.ts +0 -6
  204. package/dist/types/layout.d.ts.map +1 -1
  205. package/dist/types/layout.js.map +1 -1
  206. package/dist/{patterns/reader/types.d.ts → types/reader.d.ts} +2 -2
  207. package/dist/types/reader.d.ts.map +1 -0
  208. package/dist/types/reader.js +2 -0
  209. package/dist/types/reader.js.map +1 -0
  210. package/dist/{patterns/scanner/types.d.ts → types/scanner.d.ts} +3 -3
  211. package/dist/types/scanner.d.ts.map +1 -0
  212. package/dist/types/scanner.js +2 -0
  213. package/dist/types/scanner.js.map +1 -0
  214. package/dist/types/section.d.ts +15 -0
  215. package/dist/types/section.d.ts.map +1 -0
  216. package/dist/types/section.js +2 -0
  217. package/dist/types/section.js.map +1 -0
  218. package/dist/{patterns/selection/types.d.ts → types/selection.d.ts} +1 -1
  219. package/dist/types/selection.d.ts.map +1 -0
  220. package/dist/types/selection.js +2 -0
  221. package/dist/types/selection.js.map +1 -0
  222. package/dist/types/switch.d.ts +5 -0
  223. package/dist/types/switch.d.ts.map +1 -0
  224. package/dist/types/switch.js +2 -0
  225. package/dist/types/switch.js.map +1 -0
  226. package/dist/{patterns/timeline/types.d.ts → types/timeline.d.ts} +3 -3
  227. package/dist/types/timeline.d.ts.map +1 -0
  228. package/dist/types/timeline.js +2 -0
  229. package/dist/types/timeline.js.map +1 -0
  230. package/dist/{patterns/tree-view/types.d.ts → types/tree-view.d.ts} +2 -2
  231. package/dist/types/tree-view.d.ts.map +1 -0
  232. package/dist/types/tree-view.js +2 -0
  233. package/dist/types/tree-view.js.map +1 -0
  234. package/package.json +2 -2
  235. package/src/audit.test.ts +3 -3
  236. package/src/constants.ts +2 -1
  237. package/src/corePluginMetadata.ts +1 -5
  238. package/src/featureManifest.test.ts +2 -1
  239. package/src/features/bottom-sheet/public.test.ts +1 -1
  240. package/src/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.test.tsx +1 -1
  241. package/src/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.tsx +10 -10
  242. package/src/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.tsx +9 -9
  243. package/src/features/chat/public.ts +11 -0
  244. package/src/features/chip/adapters/inbound/Chip.tsx +3 -3
  245. package/src/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.tsx +9 -9
  246. package/src/features/collection-editor/public.ts +5 -0
  247. package/src/features/form/field/meta.ts +1 -0
  248. package/src/features/form/switch/adapters/inbound/Switch.tsx +12 -0
  249. package/src/features/form/switch/public.ts +2 -0
  250. package/src/features/form/switch/switchMeta.ts +14 -0
  251. package/src/features/layout/public.test.ts +3 -11
  252. package/src/features/layout/public.ts +0 -2
  253. package/src/features/list/adapters/inbound/ListSection.tsx +1 -1
  254. package/src/features/missing-element/MissingElement.test.ts +2 -2
  255. package/src/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.test.ts +3 -3
  256. package/src/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.tsx +10 -10
  257. package/src/{patterns/reader/index.ts → features/reader/public.ts} +3 -3
  258. package/src/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.tsx +6 -6
  259. package/src/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.tsx +6 -6
  260. package/src/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.tsx +6 -6
  261. package/src/features/scanner/public.ts +10 -0
  262. package/src/features/{layout → section}/adapters/inbound/ScreenSection.tsx +3 -3
  263. package/src/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.tsx +5 -5
  264. package/src/features/section/public.ts +3 -0
  265. package/src/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.tsx +9 -5
  266. package/src/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.tsx +12 -2
  267. package/src/features/selection/public.ts +10 -0
  268. package/src/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.test.ts +1 -1
  269. package/src/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.ts +1 -1
  270. package/src/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.tsx +9 -9
  271. package/src/features/timeline/public.ts +2 -0
  272. package/src/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.tsx +6 -6
  273. package/src/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.tsx +3 -3
  274. package/src/features/tree-view/public.ts +3 -0
  275. package/src/index.ts +58 -76
  276. package/src/interactionPolicy.test.ts +8 -12
  277. package/src/metadata/allowedChildren.ts +0 -3
  278. package/src/metadata/authoringMeta.test.ts +1 -1
  279. package/src/metadata/bindableComponentMeta.ts +20 -28
  280. package/src/metadata/componentMeta.test.ts +2 -3
  281. package/src/metadata/componentMeta.ts +16 -28
  282. package/src/metadata/radioGroupReachability.test.ts +0 -1
  283. package/src/metadata/themeRecipeMeta.test.ts +0 -1
  284. package/src/metadata/themeRecipeMeta.ts +0 -2
  285. package/src/platformAcceptance.test.ts +1 -1
  286. package/src/registry.ts +11 -32
  287. package/src/showcaseCoverage.test.ts +1 -7
  288. package/src/theme/themeScopeStructure.test.ts +13 -21
  289. package/src/{patterns/message-bubble/types.ts → types/chat.ts} +30 -3
  290. package/src/{patterns/collection-editor/types.ts → types/collection-editor.ts} +2 -2
  291. package/src/types/layout.ts +0 -7
  292. package/src/{patterns/reader/types.ts → types/reader.ts} +1 -1
  293. package/src/{patterns/scanner/types.ts → types/scanner.ts} +2 -2
  294. package/src/types/section.ts +17 -0
  295. package/src/types/switch.ts +5 -0
  296. package/src/{patterns/timeline/types.ts → types/timeline.ts} +2 -2
  297. package/src/{patterns/tree-view/types.ts → types/tree-view.ts} +1 -1
  298. package/dist/features/layout/adapters/inbound/ScreenSection.d.ts.map +0 -1
  299. package/dist/features/layout/adapters/inbound/ScreenSection.js.map +0 -1
  300. package/dist/features/layout/screenSectionMeta.d.ts.map +0 -1
  301. package/dist/features/layout/screenSectionMeta.js.map +0 -1
  302. package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +0 -1
  303. package/dist/patterns/chat-list-item/ChatListItem.js.map +0 -1
  304. package/dist/patterns/chat-list-item/index.d.ts +0 -3
  305. package/dist/patterns/chat-list-item/index.d.ts.map +0 -1
  306. package/dist/patterns/chat-list-item/index.js +0 -2
  307. package/dist/patterns/chat-list-item/index.js.map +0 -1
  308. package/dist/patterns/chat-list-item/meta.d.ts.map +0 -1
  309. package/dist/patterns/chat-list-item/meta.js.map +0 -1
  310. package/dist/patterns/chat-list-item/types.d.ts +0 -31
  311. package/dist/patterns/chat-list-item/types.d.ts.map +0 -1
  312. package/dist/patterns/chat-list-item/types.js +0 -2
  313. package/dist/patterns/chat-list-item/types.js.map +0 -1
  314. package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +0 -1
  315. package/dist/patterns/collection-editor/CollectionEditor.js.map +0 -1
  316. package/dist/patterns/collection-editor/index.d.ts +0 -3
  317. package/dist/patterns/collection-editor/index.d.ts.map +0 -1
  318. package/dist/patterns/collection-editor/index.js +0 -3
  319. package/dist/patterns/collection-editor/index.js.map +0 -1
  320. package/dist/patterns/collection-editor/meta.d.ts.map +0 -1
  321. package/dist/patterns/collection-editor/types.d.ts.map +0 -1
  322. package/dist/patterns/collection-editor/types.js +0 -2
  323. package/dist/patterns/collection-editor/types.js.map +0 -1
  324. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts +0 -9
  325. package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +0 -1
  326. package/dist/patterns/confirm-dialog/ConfirmDialog.js +0 -24
  327. package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +0 -1
  328. package/dist/patterns/confirm-dialog/index.d.ts +0 -3
  329. package/dist/patterns/confirm-dialog/index.d.ts.map +0 -1
  330. package/dist/patterns/confirm-dialog/index.js +0 -2
  331. package/dist/patterns/confirm-dialog/index.js.map +0 -1
  332. package/dist/patterns/confirm-dialog/meta.d.ts +0 -9
  333. package/dist/patterns/confirm-dialog/meta.d.ts.map +0 -1
  334. package/dist/patterns/confirm-dialog/meta.js +0 -9
  335. package/dist/patterns/confirm-dialog/meta.js.map +0 -1
  336. package/dist/patterns/confirm-dialog/types.d.ts +0 -18
  337. package/dist/patterns/confirm-dialog/types.d.ts.map +0 -1
  338. package/dist/patterns/confirm-dialog/types.js +0 -2
  339. package/dist/patterns/confirm-dialog/types.js.map +0 -1
  340. package/dist/patterns/filter-bar/FilterBar.d.ts +0 -9
  341. package/dist/patterns/filter-bar/FilterBar.d.ts.map +0 -1
  342. package/dist/patterns/filter-bar/FilterBar.js +0 -17
  343. package/dist/patterns/filter-bar/FilterBar.js.map +0 -1
  344. package/dist/patterns/filter-bar/index.d.ts +0 -3
  345. package/dist/patterns/filter-bar/index.d.ts.map +0 -1
  346. package/dist/patterns/filter-bar/index.js +0 -2
  347. package/dist/patterns/filter-bar/index.js.map +0 -1
  348. package/dist/patterns/filter-bar/meta.d.ts +0 -9
  349. package/dist/patterns/filter-bar/meta.d.ts.map +0 -1
  350. package/dist/patterns/filter-bar/meta.js +0 -9
  351. package/dist/patterns/filter-bar/meta.js.map +0 -1
  352. package/dist/patterns/filter-bar/types.d.ts +0 -9
  353. package/dist/patterns/filter-bar/types.d.ts.map +0 -1
  354. package/dist/patterns/filter-bar/types.js +0 -2
  355. package/dist/patterns/filter-bar/types.js.map +0 -1
  356. package/dist/patterns/inspector-field/InspectorField.d.ts +0 -9
  357. package/dist/patterns/inspector-field/InspectorField.d.ts.map +0 -1
  358. package/dist/patterns/inspector-field/InspectorField.js +0 -19
  359. package/dist/patterns/inspector-field/InspectorField.js.map +0 -1
  360. package/dist/patterns/inspector-field/index.d.ts +0 -3
  361. package/dist/patterns/inspector-field/index.d.ts.map +0 -1
  362. package/dist/patterns/inspector-field/index.js +0 -3
  363. package/dist/patterns/inspector-field/index.js.map +0 -1
  364. package/dist/patterns/inspector-field/meta.d.ts +0 -9
  365. package/dist/patterns/inspector-field/meta.d.ts.map +0 -1
  366. package/dist/patterns/inspector-field/meta.js +0 -9
  367. package/dist/patterns/inspector-field/meta.js.map +0 -1
  368. package/dist/patterns/inspector-field/types.d.ts +0 -15
  369. package/dist/patterns/inspector-field/types.d.ts.map +0 -1
  370. package/dist/patterns/inspector-field/types.js +0 -2
  371. package/dist/patterns/inspector-field/types.js.map +0 -1
  372. package/dist/patterns/message-bubble/MessageBubble.d.ts.map +0 -1
  373. package/dist/patterns/message-bubble/MessageBubble.js.map +0 -1
  374. package/dist/patterns/message-bubble/index.d.ts +0 -3
  375. package/dist/patterns/message-bubble/index.d.ts.map +0 -1
  376. package/dist/patterns/message-bubble/index.js +0 -2
  377. package/dist/patterns/message-bubble/index.js.map +0 -1
  378. package/dist/patterns/message-bubble/meta.d.ts.map +0 -1
  379. package/dist/patterns/message-bubble/meta.js.map +0 -1
  380. package/dist/patterns/message-bubble/types.d.ts.map +0 -1
  381. package/dist/patterns/message-bubble/types.js +0 -2
  382. package/dist/patterns/message-bubble/types.js.map +0 -1
  383. package/dist/patterns/notice/Notice.d.ts +0 -9
  384. package/dist/patterns/notice/Notice.d.ts.map +0 -1
  385. package/dist/patterns/notice/Notice.js +0 -20
  386. package/dist/patterns/notice/Notice.js.map +0 -1
  387. package/dist/patterns/notice/index.d.ts +0 -3
  388. package/dist/patterns/notice/index.d.ts.map +0 -1
  389. package/dist/patterns/notice/index.js +0 -2
  390. package/dist/patterns/notice/index.js.map +0 -1
  391. package/dist/patterns/notice/meta.d.ts +0 -34
  392. package/dist/patterns/notice/meta.d.ts.map +0 -1
  393. package/dist/patterns/notice/meta.js +0 -35
  394. package/dist/patterns/notice/meta.js.map +0 -1
  395. package/dist/patterns/notice/types.d.ts +0 -11
  396. package/dist/patterns/notice/types.d.ts.map +0 -1
  397. package/dist/patterns/notice/types.js +0 -2
  398. package/dist/patterns/notice/types.js.map +0 -1
  399. package/dist/patterns/panel/Panel.d.ts +0 -7
  400. package/dist/patterns/panel/Panel.d.ts.map +0 -1
  401. package/dist/patterns/panel/Panel.js +0 -15
  402. package/dist/patterns/panel/Panel.js.map +0 -1
  403. package/dist/patterns/panel/index.d.ts +0 -3
  404. package/dist/patterns/panel/index.d.ts.map +0 -1
  405. package/dist/patterns/panel/index.js +0 -2
  406. package/dist/patterns/panel/index.js.map +0 -1
  407. package/dist/patterns/panel/meta.d.ts +0 -80
  408. package/dist/patterns/panel/meta.d.ts.map +0 -1
  409. package/dist/patterns/panel/meta.js +0 -49
  410. package/dist/patterns/panel/meta.js.map +0 -1
  411. package/dist/patterns/panel/themeRecipeMeta.d.ts +0 -31
  412. package/dist/patterns/panel/themeRecipeMeta.d.ts.map +0 -1
  413. package/dist/patterns/panel/themeRecipeMeta.js +0 -31
  414. package/dist/patterns/panel/themeRecipeMeta.js.map +0 -1
  415. package/dist/patterns/panel/types.d.ts +0 -16
  416. package/dist/patterns/panel/types.d.ts.map +0 -1
  417. package/dist/patterns/panel/types.js +0 -2
  418. package/dist/patterns/panel/types.js.map +0 -1
  419. package/dist/patterns/reader/ReaderSurface.d.ts.map +0 -1
  420. package/dist/patterns/reader/ReaderSurface.js.map +0 -1
  421. package/dist/patterns/reader/index.d.ts +0 -4
  422. package/dist/patterns/reader/index.d.ts.map +0 -1
  423. package/dist/patterns/reader/index.js +0 -3
  424. package/dist/patterns/reader/index.js.map +0 -1
  425. package/dist/patterns/reader/resolveReaderProgress.d.ts.map +0 -1
  426. package/dist/patterns/reader/resolveReaderProgress.js.map +0 -1
  427. package/dist/patterns/reader/types.d.ts.map +0 -1
  428. package/dist/patterns/reader/types.js +0 -2
  429. package/dist/patterns/reader/types.js.map +0 -1
  430. package/dist/patterns/scanner/BarcodeScannerView.d.ts.map +0 -1
  431. package/dist/patterns/scanner/BarcodeScannerView.js.map +0 -1
  432. package/dist/patterns/scanner/CameraPermissionView.d.ts.map +0 -1
  433. package/dist/patterns/scanner/CameraPermissionView.js.map +0 -1
  434. package/dist/patterns/scanner/ScanOverlay.d.ts.map +0 -1
  435. package/dist/patterns/scanner/ScanOverlay.js.map +0 -1
  436. package/dist/patterns/scanner/index.d.ts +0 -5
  437. package/dist/patterns/scanner/index.d.ts.map +0 -1
  438. package/dist/patterns/scanner/index.js +0 -4
  439. package/dist/patterns/scanner/index.js.map +0 -1
  440. package/dist/patterns/scanner/types.d.ts.map +0 -1
  441. package/dist/patterns/scanner/types.js +0 -2
  442. package/dist/patterns/scanner/types.js.map +0 -1
  443. package/dist/patterns/section-header/SectionHeader.d.ts.map +0 -1
  444. package/dist/patterns/section-header/SectionHeader.js.map +0 -1
  445. package/dist/patterns/section-header/index.d.ts +0 -3
  446. package/dist/patterns/section-header/index.d.ts.map +0 -1
  447. package/dist/patterns/section-header/index.js +0 -2
  448. package/dist/patterns/section-header/index.js.map +0 -1
  449. package/dist/patterns/section-header/meta.d.ts.map +0 -1
  450. package/dist/patterns/section-header/meta.js.map +0 -1
  451. package/dist/patterns/section-header/types.d.ts +0 -9
  452. package/dist/patterns/section-header/types.d.ts.map +0 -1
  453. package/dist/patterns/section-header/types.js +0 -2
  454. package/dist/patterns/section-header/types.js.map +0 -1
  455. package/dist/patterns/selection/SelectableItem.d.ts.map +0 -1
  456. package/dist/patterns/selection/SelectableItem.js.map +0 -1
  457. package/dist/patterns/selection/SelectionProvider.d.ts.map +0 -1
  458. package/dist/patterns/selection/SelectionProvider.js.map +0 -1
  459. package/dist/patterns/selection/index.d.ts +0 -4
  460. package/dist/patterns/selection/index.d.ts.map +0 -1
  461. package/dist/patterns/selection/index.js +0 -3
  462. package/dist/patterns/selection/index.js.map +0 -1
  463. package/dist/patterns/selection/resolveSelectionNextIds.d.ts.map +0 -1
  464. package/dist/patterns/selection/resolveSelectionNextIds.js.map +0 -1
  465. package/dist/patterns/selection/types.d.ts.map +0 -1
  466. package/dist/patterns/selection/types.js +0 -2
  467. package/dist/patterns/selection/types.js.map +0 -1
  468. package/dist/patterns/switch-field/SwitchField.d.ts +0 -8
  469. package/dist/patterns/switch-field/SwitchField.d.ts.map +0 -1
  470. package/dist/patterns/switch-field/SwitchField.js +0 -13
  471. package/dist/patterns/switch-field/SwitchField.js.map +0 -1
  472. package/dist/patterns/switch-field/index.d.ts +0 -3
  473. package/dist/patterns/switch-field/index.d.ts.map +0 -1
  474. package/dist/patterns/switch-field/index.js +0 -3
  475. package/dist/patterns/switch-field/index.js.map +0 -1
  476. package/dist/patterns/switch-field/meta.d.ts +0 -9
  477. package/dist/patterns/switch-field/meta.d.ts.map +0 -1
  478. package/dist/patterns/switch-field/meta.js +0 -9
  479. package/dist/patterns/switch-field/meta.js.map +0 -1
  480. package/dist/patterns/switch-field/types.d.ts +0 -10
  481. package/dist/patterns/switch-field/types.d.ts.map +0 -1
  482. package/dist/patterns/switch-field/types.js +0 -2
  483. package/dist/patterns/switch-field/types.js.map +0 -1
  484. package/dist/patterns/theme-composer/ThemeComposer.d.ts +0 -9
  485. package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +0 -1
  486. package/dist/patterns/theme-composer/ThemeComposer.js +0 -217
  487. package/dist/patterns/theme-composer/ThemeComposer.js.map +0 -1
  488. package/dist/patterns/theme-composer/index.d.ts +0 -3
  489. package/dist/patterns/theme-composer/index.d.ts.map +0 -1
  490. package/dist/patterns/theme-composer/index.js +0 -2
  491. package/dist/patterns/theme-composer/index.js.map +0 -1
  492. package/dist/patterns/theme-composer/meta.d.ts +0 -9
  493. package/dist/patterns/theme-composer/meta.d.ts.map +0 -1
  494. package/dist/patterns/theme-composer/meta.js +0 -9
  495. package/dist/patterns/theme-composer/meta.js.map +0 -1
  496. package/dist/patterns/theme-composer/types.d.ts +0 -12
  497. package/dist/patterns/theme-composer/types.d.ts.map +0 -1
  498. package/dist/patterns/theme-composer/types.js +0 -2
  499. package/dist/patterns/theme-composer/types.js.map +0 -1
  500. package/dist/patterns/timeline/Timeline.d.ts.map +0 -1
  501. package/dist/patterns/timeline/Timeline.js.map +0 -1
  502. package/dist/patterns/timeline/index.d.ts +0 -3
  503. package/dist/patterns/timeline/index.d.ts.map +0 -1
  504. package/dist/patterns/timeline/index.js +0 -2
  505. package/dist/patterns/timeline/index.js.map +0 -1
  506. package/dist/patterns/timeline/meta.d.ts.map +0 -1
  507. package/dist/patterns/timeline/types.d.ts.map +0 -1
  508. package/dist/patterns/timeline/types.js +0 -2
  509. package/dist/patterns/timeline/types.js.map +0 -1
  510. package/dist/patterns/tree-view/TreeItem.d.ts.map +0 -1
  511. package/dist/patterns/tree-view/TreeItem.js.map +0 -1
  512. package/dist/patterns/tree-view/TreeView.d.ts.map +0 -1
  513. package/dist/patterns/tree-view/TreeView.js.map +0 -1
  514. package/dist/patterns/tree-view/index.d.ts +0 -4
  515. package/dist/patterns/tree-view/index.d.ts.map +0 -1
  516. package/dist/patterns/tree-view/index.js +0 -4
  517. package/dist/patterns/tree-view/index.js.map +0 -1
  518. package/dist/patterns/tree-view/types.d.ts.map +0 -1
  519. package/dist/patterns/tree-view/types.js +0 -2
  520. package/dist/patterns/tree-view/types.js.map +0 -1
  521. package/src/patterns/chat-list-item/index.ts +0 -2
  522. package/src/patterns/chat-list-item/types.ts +0 -33
  523. package/src/patterns/collection-editor/index.ts +0 -2
  524. package/src/patterns/confirm-dialog/ConfirmDialog.tsx +0 -69
  525. package/src/patterns/confirm-dialog/index.ts +0 -2
  526. package/src/patterns/confirm-dialog/meta.ts +0 -10
  527. package/src/patterns/confirm-dialog/types.ts +0 -19
  528. package/src/patterns/filter-bar/FilterBar.tsx +0 -31
  529. package/src/patterns/filter-bar/index.ts +0 -2
  530. package/src/patterns/filter-bar/meta.ts +0 -10
  531. package/src/patterns/filter-bar/types.ts +0 -10
  532. package/src/patterns/inspector-field/InspectorField.tsx +0 -32
  533. package/src/patterns/inspector-field/index.ts +0 -2
  534. package/src/patterns/inspector-field/meta.ts +0 -10
  535. package/src/patterns/inspector-field/types.ts +0 -16
  536. package/src/patterns/message-bubble/index.ts +0 -8
  537. package/src/patterns/notice/Notice.tsx +0 -41
  538. package/src/patterns/notice/index.ts +0 -2
  539. package/src/patterns/notice/meta.ts +0 -36
  540. package/src/patterns/notice/types.ts +0 -12
  541. package/src/patterns/panel/Panel.tsx +0 -26
  542. package/src/patterns/panel/index.ts +0 -2
  543. package/src/patterns/panel/meta.ts +0 -51
  544. package/src/patterns/panel/themeRecipeMeta.ts +0 -32
  545. package/src/patterns/panel/types.ts +0 -17
  546. package/src/patterns/scanner/index.ts +0 -10
  547. package/src/patterns/section-header/index.ts +0 -2
  548. package/src/patterns/section-header/types.ts +0 -10
  549. package/src/patterns/selection/index.ts +0 -10
  550. package/src/patterns/switch-field/SwitchField.tsx +0 -42
  551. package/src/patterns/switch-field/index.ts +0 -2
  552. package/src/patterns/switch-field/meta.ts +0 -10
  553. package/src/patterns/switch-field/types.ts +0 -11
  554. package/src/patterns/theme-composer/ThemeComposer.test.ts +0 -212
  555. package/src/patterns/theme-composer/ThemeComposer.tsx +0 -321
  556. package/src/patterns/theme-composer/index.ts +0 -2
  557. package/src/patterns/theme-composer/meta.ts +0 -10
  558. package/src/patterns/theme-composer/types.ts +0 -13
  559. package/src/patterns/timeline/index.ts +0 -2
  560. package/src/patterns/tree-view/index.ts +0 -3
  561. /package/dist/{patterns → features}/collection-editor/meta.d.ts +0 -0
  562. /package/dist/{patterns → features}/collection-editor/meta.js +0 -0
  563. /package/dist/{patterns → features}/reader/meta.js +0 -0
  564. /package/dist/{patterns/reader → features/reader/utils}/resolveReaderProgress.d.ts +0 -0
  565. /package/dist/{patterns/reader → features/reader/utils}/resolveReaderProgress.js +0 -0
  566. /package/dist/{patterns → features}/scanner/meta.js +0 -0
  567. /package/dist/features/{layout → section}/screenSectionMeta.js +0 -0
  568. /package/dist/{patterns → features}/selection/meta.d.ts +0 -0
  569. /package/dist/{patterns → features}/selection/meta.js +0 -0
  570. /package/dist/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.js +0 -0
  571. /package/dist/{patterns → features}/timeline/meta.d.ts +0 -0
  572. /package/dist/{patterns → features}/timeline/meta.js +0 -0
  573. /package/dist/{patterns → features}/tree-view/meta.d.ts +0 -0
  574. /package/dist/{patterns → features}/tree-view/meta.js +0 -0
  575. /package/src/{patterns/chat-list-item/meta.ts → features/chat/chatListItemMeta.ts} +0 -0
  576. /package/src/{patterns/message-bubble/meta.ts → features/chat/messageBubbleMeta.ts} +0 -0
  577. /package/src/{patterns → features}/collection-editor/meta.ts +0 -0
  578. /package/src/{patterns → features}/reader/meta.ts +0 -0
  579. /package/src/{patterns/reader → features/reader/utils}/resolveReaderProgress.test.ts +0 -0
  580. /package/src/{patterns/reader → features/reader/utils}/resolveReaderProgress.ts +0 -0
  581. /package/src/{patterns → features}/scanner/meta.ts +0 -0
  582. /package/src/features/{layout → section}/screenSectionMeta.ts +0 -0
  583. /package/src/{patterns/section-header/meta.ts → features/section/sectionHeaderMeta.ts} +0 -0
  584. /package/src/{patterns → features}/selection/meta.ts +0 -0
  585. /package/src/{patterns → features}/timeline/meta.ts +0 -0
  586. /package/src/{patterns → features}/tree-view/meta.ts +0 -0
  587. /package/src/{patterns/selection/types.ts → types/selection.ts} +0 -0
@@ -1,9 +0,0 @@
1
- export declare const themeComposerMeta: {
2
- readonly name: "ThemeComposer";
3
- readonly category: "pattern";
4
- readonly directManifestNode: false;
5
- readonly allowedChildren: readonly [];
6
- readonly note: "Theme tooling pattern; not represented as a manifest node in v1.";
7
- readonly props: {};
8
- };
9
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/theme-composer/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;CAOQ,CAAC"}
@@ -1,9 +0,0 @@
1
- export const themeComposerMeta = {
2
- name: 'ThemeComposer',
3
- category: 'pattern',
4
- directManifestNode: false,
5
- allowedChildren: [],
6
- note: 'Theme tooling pattern; not represented as a manifest node in v1.',
7
- props: {},
8
- };
9
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/theme-composer/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,kEAAkE;IACxE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const themeComposerMeta = {\n name: 'ThemeComposer',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Theme tooling pattern; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,12 +0,0 @@
1
- import type { AppCategory } from '@ankhorage/contracts';
2
- import type { ZoraTheme, ZoraThemeMode } from '../../theme/types';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface ThemeComposerProps extends ZoraBaseProps {
5
- value: ZoraTheme;
6
- onChange: (theme: ZoraTheme) => void;
7
- mode?: ZoraThemeMode;
8
- onModeChange?: (mode: ZoraThemeMode) => void;
9
- onSubmit?: (theme: ZoraTheme) => void;
10
- appCategories?: readonly AppCategory[];
11
- }
12
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/theme-composer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACtC,aAAa,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CACxC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/theme-composer/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { AppCategory } from '@ankhorage/contracts';\n\nimport type { ZoraTheme, ZoraThemeMode } from '../../theme/types';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ThemeComposerProps extends ZoraBaseProps {\n value: ZoraTheme;\n onChange: (theme: ZoraTheme) => void;\n mode?: ZoraThemeMode;\n onModeChange?: (mode: ZoraThemeMode) => void;\n onSubmit?: (theme: ZoraTheme) => void;\n appCategories?: readonly AppCategory[];\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../../src/patterns/timeline/Timeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,SAAS,CAAC;AA8G3D;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qDAAoC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Timeline.js","sourceRoot":"","sources":["../../../src/patterns/timeline/Timeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,oBAAoB,CAAC,KAAmB,EAAE,KAAgB;IACjE,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,WAAW;YACd,OAAO,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;QACnC,KAAK,UAAU;YACb,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC;QAChC,KAAK,YAAY;YACf,OAAO,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;QACnC,KAAK,OAAO;YACV,OAAO,KAAK,CA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CACR;MAAA,EAAE,IAAI,CAAC,CACR,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAC7B;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CACxB;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Icon } from '../../features/icon/public';\nimport { View } from '../../features/layout/public';\nimport { Heading } from '../../features/typography/public';\nimport { Text } from '../../features/typography/public';\nimport type { ZoraColor } from '../../internal/recipes';\nimport { resolveIconSize } from '../../internal/recipes';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { TimelineItem, TimelineProps } from './types';\n\nfunction resolveRoleSemantics(theme: SurfaceTheme, color: ZoraColor): RoleSemantics {\n switch (color) {\n case 'secondary':\n return theme.semantics.secondary;\n case 'tertiary':\n return theme.semantics.accent;\n case 'quaternary':\n return theme.semantics.highlight;\n case 'error':\n return theme.semantics.error;\n case 'info':\n return theme.semantics.info;\n case 'primary':\n return theme.semantics.action.primary;\n case 'danger':\n return theme.semantics.action.danger;\n case 'success':\n return theme.semantics.success;\n case 'warning':\n return theme.semantics.warning;\n case 'neutral':\n default:\n return theme.semantics.action.neutral;\n }\n}\n\nfunction TimelineInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n testID,\n items,\n compact = false,\n}: TimelineProps) {\n const { theme } = useZoraTheme();\n const gap = compact ? 'm' : 'l';\n const connectorHeight = compact ? 20 : 36;\n\n const renderItem = (item: TimelineItem, index: number) => {\n const status = item.status ?? 'neutral';\n const role = resolveRoleSemantics(theme, status);\n const showConnector = index < items.length - 1;\n const iconSize = Math.max(12, resolveIconSize('s'));\n\n return (\n <View\n direction=\"row\"\n key={item.id}\n align=\"flex-start\"\n gap=\"m\"\n testID={item.testID}\n wrap=\"nowrap\"\n >\n <View align=\"center\" flexShrink={0} gap=\"xs\" style={{ width: 24 }}>\n <View\n bg={status === 'neutral' ? theme.semantics.neutral.surface : role.softBg}\n borderColor={status === 'neutral' ? theme.semantics.neutral.divider : role.base}\n borderWidth={1}\n height={20}\n radius=\"full\"\n width={20}\n style={{ alignItems: 'center', justifyContent: 'center' }}\n >\n {item.icon ? (\n <Icon\n {...item.icon}\n color={status === 'neutral' ? theme.semantics.content.muted : role.base}\n size={iconSize}\n />\n ) : null}\n </View>\n\n {showConnector ? (\n <View\n bg={theme.semantics.neutral.divider}\n height={connectorHeight}\n radius=\"full\"\n style={{ width: 2 }}\n />\n ) : null}\n </View>\n\n <View flex={1} gap=\"xs\" testID={testID}>\n <View direction=\"row\" align=\"flex-start\" gap=\"s\" justify=\"space-between\" wrap=\"wrap\">\n <Heading level={compact ? 4 : 3}>{item.title}</Heading>\n {item.meta ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n {item.meta}\n </Text>\n ) : null}\n </View>\n {item.description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {item.description}\n </Text>\n ) : null}\n </View>\n </View>\n );\n };\n\n return (\n <View gap={gap} testID={testID}>\n {items.map(renderItem)}\n </View>\n );\n}\n\n/***\n * Timeline pattern for displaying a sequence of events.\n *\n \n */\nexport const Timeline = withZoraThemeScope(TimelineInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { Timeline } from './Timeline';
2
- export type { TimelineItem, TimelineProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Timeline } from './Timeline';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/timeline/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC","sourcesContent":["export { Timeline } from './Timeline';\nexport type { TimelineItem, TimelineProps } from './types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/timeline/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;CAOa,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAc,SAAQ,aAAa;IAClD,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/timeline/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraColor } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface TimelineItem {\n id: string;\n title: React.ReactNode;\n description?: React.ReactNode;\n meta?: React.ReactNode;\n status?: ZoraColor;\n icon?: ButtonIconSpec;\n testID?: string;\n}\n\nexport interface TimelineProps extends ZoraBaseProps {\n items: readonly TimelineItem[];\n compact?: boolean;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TreeItem.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree-view/TreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEjE,UAAU,aAAa,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa;IACxE,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,WAAW,EAAE,SAAS,GAAG,EAAE,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,cAAc,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CACnE;AA+ED;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAlFE,GAAG,SAAS,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,CAAC,CAAC,KAAK,CAAC,CACZ,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,EACvB,CACH,CAAC,CACJ;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { IconButton } from '../../features/button/public';\nimport { View } from '../../features/layout/public';\nimport { ListItem } from '../../features/list/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\nimport type { TreeItemNode, TreeItemRenderProps } from './types';\n\ninterface TreeItemProps<TId extends string = string> extends ZoraBaseProps {\n node: TreeItemNode<TId>;\n depth: number;\n selectedId?: TId;\n expandedIds: readonly TId[];\n onSelect?: (id: TId) => void;\n onToggleExpand: (id: TId) => void;\n renderItem?: (props: TreeItemRenderProps<TId>) => React.ReactNode;\n}\n\nfunction TreeItemInner<TId extends string = string>({\n themeId: _themeId,\n mode: _mode,\n node,\n depth,\n selectedId,\n expandedIds,\n onSelect,\n onToggleExpand,\n renderItem,\n testID,\n interactionPolicy,\n}: TreeItemProps<TId>) {\n const hasChildren = node.children !== undefined && node.children.length > 0;\n const isExpanded = expandedIds.includes(node.id);\n const isSelected = selectedId === node.id;\n\n const renderContent = () => {\n if (renderItem) {\n return renderItem({\n node,\n depth,\n selected: isSelected,\n expanded: isExpanded,\n hasChildren,\n });\n }\n\n return (\n <ListItem\n title={node.label}\n action={\n <View direction=\"row\" gap=\"xs\" align=\"center\">\n {node.actions}\n {hasChildren ? (\n <IconButton\n icon={{ name: isExpanded ? 'chevron-down-outline' : 'chevron-forward-outline' }}\n interactionPolicy={interactionPolicy}\n label={isExpanded ? 'Collapse' : 'Expand'}\n onPress={() => onToggleExpand(node.id)}\n size=\"s\"\n variant=\"ghost\"\n />\n ) : null}\n </View>\n }\n meta={node.meta}\n disabled={node.disabled}\n selected={isSelected}\n />\n );\n };\n\n return (\n <View testID={testID}>\n <View style={{ paddingLeft: depth * 16 }}>{renderContent()}</View>\n {hasChildren && isExpanded ? (\n <View>\n {node.children?.map((child) => (\n <TreeItem\n key={child.id}\n depth={depth + 1}\n expandedIds={expandedIds}\n interactionPolicy={interactionPolicy}\n node={child}\n onSelect={onSelect}\n onToggleExpand={onToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n />\n ))}\n </View>\n ) : null}\n </View>\n );\n}\n\n/***\n * Single tree node row used within `TreeView`.\n *\n \n */\nexport const TreeItem = withZoraThemeScope(TreeItemInner);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree-view/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAoD7C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAvDE,GAAG,SAAS,MAAM,kEAuDgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TreeView.js","sourceRoot":"","sources":["../../../src/patterns/tree-view/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,SAAS,aAAa,CAA8B,EAClD,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,UAAU,EACV,WAAW,EAAE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C,CAAC,kBAAkB,CAAC,CACnC,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,EACrC,CACH,CAAC,CACJ;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { View } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { TreeItem } from './TreeItem';\nimport type { TreeViewProps } from './types';\n\nfunction TreeViewInner<TId extends string = string>({\n themeId: _themeId,\n mode: _mode,\n nodes,\n selectedId,\n expandedIds: controlledExpandedIds,\n defaultExpandedIds,\n onSelect,\n onExpandedChange,\n renderItem,\n testID,\n interactionPolicy,\n}: TreeViewProps<TId>) {\n const [internalExpandedIds, setInternalExpandedIds] = React.useState<readonly TId[]>(\n defaultExpandedIds ?? [],\n );\n\n const isControlled = controlledExpandedIds !== undefined;\n const expandedIds = isControlled ? controlledExpandedIds : internalExpandedIds;\n\n const handleToggleExpand = (id: TId) => {\n if (interactionPolicy === 'passive') return;\n const isExpanded = expandedIds.includes(id);\n const newIds = isExpanded ? expandedIds.filter((eid) => eid !== id) : [...expandedIds, id];\n\n if (!isControlled) {\n setInternalExpandedIds(newIds);\n }\n onExpandedChange?.(newIds);\n };\n\n return (\n <View gap=\"none\" testID={testID}>\n {nodes.map((node) => (\n <TreeItem\n key={node.id}\n depth={0}\n expandedIds={expandedIds}\n node={node}\n onSelect={onSelect}\n onToggleExpand={handleToggleExpand}\n renderItem={renderItem}\n selectedId={selectedId}\n interactionPolicy={interactionPolicy}\n />\n ))}\n </View>\n );\n}\n\n/***\n * Tree view pattern for hierarchical navigation and expandable lists.\n *\n \n */\nexport const TreeView = withZoraThemeScope(TreeViewInner);\n"]}
@@ -1,4 +0,0 @@
1
- export * from './TreeItem';
2
- export * from './TreeView';
3
- export * from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree-view/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './TreeItem';
2
- export * from './TreeView';
3
- export * from './types';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/tree-view/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC","sourcesContent":["export * from './TreeItem';\nexport * from './TreeView';\nexport * from './types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree-view/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,YAAY,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM;IACvD,EAAE,EAAE,GAAG,CAAC;IACR,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM;IAC9D,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,aAAa,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,aAAa;IAC/E,KAAK,EAAE,SAAS,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC;IAC7B,kBAAkB,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,SAAS,GAAG,EAAE,KAAK,IAAI,CAAC;IACjD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC;CAC7D"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/tree-view/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type { ReactNode } from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface TreeItemNode<TId extends string = string> {\n id: TId;\n label: ReactNode;\n icon?: ButtonIconSpec;\n children?: readonly TreeItemNode<TId>[];\n disabled?: boolean;\n meta?: ReactNode;\n actions?: ReactNode;\n}\n\nexport interface TreeItemRenderProps<TId extends string = string> {\n node: TreeItemNode<TId>;\n depth: number;\n selected: boolean;\n expanded: boolean;\n hasChildren: boolean;\n}\n\nexport interface TreeViewProps<TId extends string = string> extends ZoraBaseProps {\n nodes: readonly TreeItemNode<TId>[];\n selectedId?: TId;\n expandedIds?: readonly TId[];\n defaultExpandedIds?: readonly TId[];\n onSelect?: (id: TId) => void;\n onExpandedChange?: (ids: readonly TId[]) => void;\n renderItem?: (props: TreeItemRenderProps<TId>) => ReactNode;\n}\n"]}
@@ -1,2 +0,0 @@
1
- export { ChatListItem } from './ChatListItem';
2
- export type { ChatListAvatar, ChatListItemProps } from './types';
@@ -1,33 +0,0 @@
1
- import type React from 'react';
2
- import type { ImageSourcePropType } from 'react-native';
3
-
4
- import type { AvatarShape, AvatarSize } from '../../features/avatar/public';
5
- import type { ZoraColor } from '../../internal/recipes';
6
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
7
-
8
- export interface ChatListAvatar {
9
- source?: ImageSourcePropType;
10
- name?: string;
11
- initials?: string;
12
- label?: string;
13
- size?: AvatarSize;
14
- shape?: AvatarShape;
15
- color?: ZoraColor;
16
- }
17
-
18
- export interface ChatListItemProps extends ZoraBaseProps {
19
- title: React.ReactNode;
20
- preview?: React.ReactNode;
21
- meta?: React.ReactNode;
22
- timestamp?: React.ReactNode;
23
- avatar?: ChatListAvatar;
24
- leading?: React.ReactNode;
25
- trailing?: React.ReactNode;
26
- unread?: boolean;
27
- unreadCount?: React.ReactNode;
28
- selected?: boolean;
29
- disabled?: boolean;
30
- compact?: boolean;
31
- accessibilityLabel?: string;
32
- onPress?: () => void;
33
- }
@@ -1,2 +0,0 @@
1
- export * from './CollectionEditor';
2
- export * from './types';
@@ -1,69 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Button } from '../../features/button/public';
4
- import { Dialog } from '../../features/dialog/public';
5
- import { View } from '../../features/layout/public';
6
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
- import type { ConfirmDialogProps } from './types';
8
-
9
- function ConfirmDialogInner({
10
- themeId: _themeId,
11
- mode: _mode,
12
- visible,
13
- title,
14
- description,
15
- children,
16
- confirmLabel = 'Confirm',
17
- cancelLabel = 'Cancel',
18
- confirmColor = 'danger',
19
- confirmVariant = 'solid',
20
- busy = false,
21
- closeOnBackdrop = true,
22
- onConfirm,
23
- onCancel,
24
- testID,
25
- interactionPolicy,
26
- }: ConfirmDialogProps) {
27
- return (
28
- <Dialog
29
- closeOnBackdrop={closeOnBackdrop}
30
- description={description}
31
- interactionPolicy={interactionPolicy}
32
- footer={
33
- <View direction={{ base: 'column', md: 'row' }} gap="s" justify="flex-end">
34
- <Button
35
- variant="soft"
36
- interactionPolicy={interactionPolicy}
37
- onPress={onCancel}
38
- color="neutral"
39
- >
40
- {cancelLabel}
41
- </Button>
42
- <Button
43
- variant={confirmVariant}
44
- loading={busy}
45
- interactionPolicy={interactionPolicy}
46
- onPress={onConfirm}
47
- color={confirmColor}
48
- >
49
- {confirmLabel}
50
- </Button>
51
- </View>
52
- }
53
- onDismiss={onCancel}
54
- testID={testID}
55
- title={title}
56
- visible={visible}
57
- width="narrow"
58
- >
59
- {children}
60
- </Dialog>
61
- );
62
- }
63
-
64
- /***
65
- * Confirmation dialog pattern with cancel/confirm actions.
66
- *
67
-
68
- */
69
- export const ConfirmDialog = withZoraThemeScope(ConfirmDialogInner);
@@ -1,2 +0,0 @@
1
- export { ConfirmDialog } from './ConfirmDialog';
2
- export type { ConfirmDialogProps } from './types';
@@ -1,10 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
-
3
- export const confirmDialogMeta = {
4
- name: 'ConfirmDialog',
5
- category: 'pattern',
6
- directManifestNode: false,
7
- allowedChildren: [],
8
- note: 'Dialog pattern; not represented as a manifest node in v1.',
9
- props: {},
10
- } as const satisfies ZoraComponentMeta;
@@ -1,19 +0,0 @@
1
- import type React from 'react';
2
-
3
- import type { ZoraButtonVariant, ZoraColor } from '../../internal/recipes';
4
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
-
6
- export interface ConfirmDialogProps extends ZoraBaseProps {
7
- visible: boolean;
8
- title: React.ReactNode;
9
- description?: React.ReactNode;
10
- children?: React.ReactNode;
11
- confirmLabel?: React.ReactNode;
12
- cancelLabel?: React.ReactNode;
13
- confirmColor?: ZoraColor;
14
- confirmVariant?: ZoraButtonVariant;
15
- busy?: boolean;
16
- closeOnBackdrop?: boolean;
17
- onConfirm?: () => void;
18
- onCancel?: () => void;
19
- }
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
-
3
- import { View } from '../../features/layout/public';
4
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
5
- import type { FilterBarProps } from './types';
6
-
7
- function FilterBarInner({
8
- themeId: _themeId,
9
- mode: _mode,
10
- interactionPolicy: _interactionPolicy,
11
- testID,
12
- leading,
13
- trailing,
14
- children,
15
- wrap = true,
16
- }: FilterBarProps) {
17
- return (
18
- <View direction="row" align="center" gap="s" testID={testID} wrap={wrap ? 'wrap' : 'nowrap'}>
19
- {leading ? <View>{leading}</View> : null}
20
- <View flex={1}>{children}</View>
21
- {trailing ? <View>{trailing}</View> : null}
22
- </View>
23
- );
24
- }
25
-
26
- /***
27
- * Horizontal filter/action bar layout with leading/trailing slots.
28
- *
29
-
30
- */
31
- export const FilterBar = withZoraThemeScope(FilterBarInner);
@@ -1,2 +0,0 @@
1
- export { FilterBar } from './FilterBar';
2
- export type { FilterBarProps } from './types';
@@ -1,10 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
-
3
- export const filterBarMeta = {
4
- name: 'FilterBar',
5
- category: 'pattern',
6
- directManifestNode: false,
7
- allowedChildren: [],
8
- note: 'Filtering pattern; not represented as a manifest node in v1.',
9
- props: {},
10
- } as const satisfies ZoraComponentMeta;
@@ -1,10 +0,0 @@
1
- import type React from 'react';
2
-
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
-
5
- export interface FilterBarProps extends ZoraBaseProps {
6
- leading?: React.ReactNode;
7
- trailing?: React.ReactNode;
8
- children: React.ReactNode;
9
- wrap?: boolean;
10
- }
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Field } from '../../features/form/public';
4
- import { View } from '../../features/layout/public';
5
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
- import type { InspectorFieldProps } from './types';
7
-
8
- function InspectorFieldInner({
9
- themeId: _themeId,
10
- mode: _mode,
11
- label,
12
- control,
13
- children,
14
- interactionPolicy: _interactionPolicy,
15
- ...props
16
- }: InspectorFieldProps) {
17
- return (
18
- <Field {...props} label={label}>
19
- <View direction="row" gap="s" align="center">
20
- <View flex={1}>{children}</View>
21
- {control ? <View>{control}</View> : null}
22
- </View>
23
- </Field>
24
- );
25
- }
26
-
27
- /***
28
- * Inspector row pattern with label, description, and control slot.
29
- *
30
-
31
- */
32
- export const InspectorField = withZoraThemeScope(InspectorFieldInner);
@@ -1,2 +0,0 @@
1
- export * from './InspectorField';
2
- export * from './types';
@@ -1,10 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
-
3
- export const inspectorFieldMeta = {
4
- name: 'InspectorField',
5
- category: 'pattern',
6
- directManifestNode: false,
7
- allowedChildren: [],
8
- note: 'Inspector pattern; not represented as a manifest node in v1.',
9
- props: {},
10
- } as const satisfies ZoraComponentMeta;
@@ -1,16 +0,0 @@
1
- import type { ReactNode } from 'react';
2
-
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
-
5
- export interface InspectorFieldProps extends ZoraBaseProps {
6
- label: ReactNode;
7
- description?: ReactNode;
8
- helperText?: ReactNode;
9
- errorText?: ReactNode;
10
- required?: boolean;
11
- invalid?: boolean;
12
- disabled?: boolean;
13
- readOnly?: boolean;
14
- control?: ReactNode;
15
- children?: ReactNode;
16
- }
@@ -1,8 +0,0 @@
1
- export { MessageBubble } from './MessageBubble';
2
- export type {
3
- MessageBubbleAuthor,
4
- MessageBubbleAvatar,
5
- MessageBubbleDirection,
6
- MessageBubbleProps,
7
- MessageBubbleStatus,
8
- } from './types';
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Badge } from '../../features/badge/public';
4
- import { Card } from '../../features/card/public';
5
- import { View } from '../../features/layout/public';
6
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
- import type { NoticeProps } from './types';
8
-
9
- function NoticeInner({
10
- themeId: _themeId,
11
- mode: _mode,
12
- interactionPolicy: _interactionPolicy,
13
- title,
14
- description,
15
- children,
16
- actions,
17
- color = 'primary',
18
- testID,
19
- }: NoticeProps) {
20
- return (
21
- <Card
22
- description={description}
23
- eyebrow={<Badge color={color}>{String(color).toUpperCase()}</Badge>}
24
- testID={testID}
25
- title={title}
26
- tone="subtle"
27
- >
28
- <View gap="m">
29
- {children ? <View>{children}</View> : null}
30
- {actions ? <View>{actions}</View> : null}
31
- </View>
32
- </Card>
33
- );
34
- }
35
-
36
- /***
37
- * Notice pattern for inline feedback with tone, title, and actions.
38
- *
39
-
40
- */
41
- export const Notice = withZoraThemeScope(NoticeInner);
@@ -1,2 +0,0 @@
1
- export { Notice } from './Notice';
2
- export type { NoticeProps } from './types';
@@ -1,36 +0,0 @@
1
- import type { ZoraComponentMeta } from '../../metadata';
2
- import { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';
3
-
4
- export const noticeMeta = {
5
- name: 'Notice',
6
- category: 'pattern',
7
- directManifestNode: true,
8
- allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
9
- blueprint: {
10
- label: 'Notice',
11
- defaultProps: {
12
- title: 'Notice',
13
- color: 'primary',
14
- },
15
- },
16
- props: {
17
- title: {
18
- type: 'string',
19
- category: 'Content',
20
- label: 'Title',
21
- default: 'Notice',
22
- },
23
- description: {
24
- type: 'string',
25
- category: 'Content',
26
- label: 'Description',
27
- },
28
- color: {
29
- type: 'enum',
30
- category: 'Style',
31
- label: 'Color',
32
- enum: ['primary', 'neutral', 'danger', 'success', 'warning'],
33
- default: 'primary',
34
- },
35
- },
36
- } as const satisfies ZoraComponentMeta;
@@ -1,12 +0,0 @@
1
- import type React from 'react';
2
-
3
- import type { ZoraColor } from '../../internal/recipes';
4
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
5
-
6
- export interface NoticeProps extends ZoraBaseProps {
7
- title: React.ReactNode;
8
- description?: React.ReactNode;
9
- children?: React.ReactNode;
10
- actions?: React.ReactNode;
11
- color?: ZoraColor;
12
- }
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
-
3
- import { Card } from '../../features/card/public';
4
- import { resolveCardThemeRecipe } from '../../features/card/utils/resolveCardThemeRecipe';
5
- import { useZoraThemeRecipe } from '../../theme/useZoraThemeRecipe';
6
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
7
- import type { PanelProps } from './types';
8
-
9
- function PanelInner({
10
- themeId: _themeId,
11
- mode: _mode,
12
- tone,
13
- compact,
14
- padding,
15
- radius,
16
- ...props
17
- }: PanelProps) {
18
- const themeFields = useZoraThemeRecipe('Panel');
19
- const recipe = resolveCardThemeRecipe({ tone, compact, padding, radius, themeFields });
20
- return <Card {...props} {...recipe} />;
21
- }
22
-
23
- /***
24
- * Semantic wrapper around `Card` for panel-style page sections.
25
- */
26
- export const Panel = withZoraThemeScope(PanelInner);
@@ -1,2 +0,0 @@
1
- export { Panel } from './Panel';
2
- export type { PanelProps } from './types';