@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,2 +0,0 @@
1
- export { Notice } from './Notice';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/notice/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["export { Notice } from './Notice';\nexport type { NoticeProps } from './types';\n"]}
@@ -1,34 +0,0 @@
1
- export declare const noticeMeta: {
2
- readonly name: "Notice";
3
- readonly category: "pattern";
4
- readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Form", "Card", "Panel", "Notice", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "ReaderSurface", "ContentRail", "MissingElement"];
6
- readonly blueprint: {
7
- readonly label: "Notice";
8
- readonly defaultProps: {
9
- readonly title: "Notice";
10
- readonly color: "primary";
11
- };
12
- };
13
- readonly props: {
14
- readonly title: {
15
- readonly type: "string";
16
- readonly category: "Content";
17
- readonly label: "Title";
18
- readonly default: "Notice";
19
- };
20
- readonly description: {
21
- readonly type: "string";
22
- readonly category: "Content";
23
- readonly label: "Description";
24
- };
25
- readonly color: {
26
- readonly type: "enum";
27
- readonly category: "Style";
28
- readonly label: "Color";
29
- readonly enum: readonly ["primary", "neutral", "danger", "success", "warning"];
30
- readonly default: "primary";
31
- };
32
- };
33
- };
34
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/notice/meta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCe,CAAC"}
@@ -1,35 +0,0 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';
2
- export const noticeMeta = {
3
- name: 'Notice',
4
- category: 'pattern',
5
- directManifestNode: true,
6
- allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
7
- blueprint: {
8
- label: 'Notice',
9
- defaultProps: {
10
- title: 'Notice',
11
- color: 'primary',
12
- },
13
- },
14
- props: {
15
- title: {
16
- type: 'string',
17
- category: 'Content',
18
- label: 'Title',
19
- default: 'Notice',
20
- },
21
- description: {
22
- type: 'string',
23
- category: 'Content',
24
- label: 'Description',
25
- },
26
- color: {
27
- type: 'enum',
28
- category: 'Style',
29
- label: 'Color',
30
- enum: ['primary', 'neutral', 'danger', 'success', 'warning'],
31
- default: 'primary',
32
- },
33
- },
34
- };
35
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/notice/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE;QACT,KAAK,EAAE,QAAQ;QACf,YAAY,EAAE;YACZ,KAAK,EAAE,QAAQ;YACf,KAAK,EAAE,SAAS;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,QAAQ;SAClB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;SACrB;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC;YAC5D,OAAO,EAAE,SAAS;SACnB;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nexport const noticeMeta = {\n name: 'Notice',\n category: 'pattern',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Notice',\n defaultProps: {\n title: 'Notice',\n color: 'primary',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Notice',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n },\n color: {\n type: 'enum',\n category: 'Style',\n label: 'Color',\n enum: ['primary', 'neutral', 'danger', 'success', 'warning'],\n default: 'primary',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,11 +0,0 @@
1
- import type React from 'react';
2
- import type { ZoraColor } from '../../internal/recipes';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface NoticeProps extends ZoraBaseProps {
5
- title: React.ReactNode;
6
- description?: React.ReactNode;
7
- children?: React.ReactNode;
8
- actions?: React.ReactNode;
9
- color?: ZoraColor;
10
- }
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/notice/types.ts"],"names":[],"mappings":"AAAA,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,WAAY,SAAQ,aAAa;IAChD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,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/notice/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraColor } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface NoticeProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n children?: React.ReactNode;\n actions?: React.ReactNode;\n color?: ZoraColor;\n}\n"]}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { PanelProps } from './types';
3
- /***
4
- * Semantic wrapper around `Card` for panel-style page sections.
5
- */
6
- export declare const Panel: (props: PanelProps) => React.ReactElement | null;
7
- //# sourceMappingURL=Panel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/patterns/panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAgB1C;;GAEG;AACH,eAAO,MAAM,KAAK,kDAAiC,CAAC"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import { Card } from '../../features/card/public';
3
- import { resolveCardThemeRecipe } from '../../features/card/utils/resolveCardThemeRecipe';
4
- import { useZoraThemeRecipe } from '../../theme/useZoraThemeRecipe';
5
- import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
6
- function PanelInner({ themeId: _themeId, mode: _mode, tone, compact, padding, radius, ...props }) {
7
- const themeFields = useZoraThemeRecipe('Panel');
8
- const recipe = resolveCardThemeRecipe({ tone, compact, padding, radius, themeFields });
9
- return <Card {...props} {...recipe}/>;
10
- }
11
- /***
12
- * Semantic wrapper around `Card` for panel-style page sections.
13
- */
14
- export const Panel = withZoraThemeScope(PanelInner);
15
- //# sourceMappingURL=Panel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel.js","sourceRoot":"","sources":["../../../src/patterns/panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,UAAU,CAAC,EAClB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,IAAI,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,GAAG,KAAK,EACG;IACX,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,sBAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;IACvF,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,EAAG,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Card } from '../../features/card/public';\nimport { resolveCardThemeRecipe } from '../../features/card/utils/resolveCardThemeRecipe';\nimport { useZoraThemeRecipe } from '../../theme/useZoraThemeRecipe';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { PanelProps } from './types';\n\nfunction PanelInner({\n themeId: _themeId,\n mode: _mode,\n tone,\n compact,\n padding,\n radius,\n ...props\n}: PanelProps) {\n const themeFields = useZoraThemeRecipe('Panel');\n const recipe = resolveCardThemeRecipe({ tone, compact, padding, radius, themeFields });\n return <Card {...props} {...recipe} />;\n}\n\n/***\n * Semantic wrapper around `Card` for panel-style page sections.\n */\nexport const Panel = withZoraThemeScope(PanelInner);\n"]}
@@ -1,3 +0,0 @@
1
- export { Panel } from './Panel';
2
- export type { PanelProps } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Panel } from './Panel';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC","sourcesContent":["export { Panel } from './Panel';\nexport type { PanelProps } from './types';\n"]}
@@ -1,80 +0,0 @@
1
- export declare const panelMeta: {
2
- readonly name: "Panel";
3
- readonly category: "pattern";
4
- readonly directManifestNode: true;
5
- readonly allowedChildren: readonly ["ActivityIndicator", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "FlatList", "SectionList", "BottomSheet", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "TimePicker", "Form", "Card", "Panel", "Notice", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "ReaderSurface", "ContentRail", "MissingElement"];
6
- readonly blueprint: {
7
- readonly label: "Panel";
8
- readonly defaultProps: {
9
- readonly title: "Panel";
10
- };
11
- };
12
- readonly props: {
13
- readonly title: {
14
- readonly type: "string";
15
- readonly category: "Content";
16
- readonly label: "Title";
17
- readonly authoring: {
18
- readonly authority: "instance";
19
- };
20
- };
21
- readonly description: {
22
- readonly type: "string";
23
- readonly category: "Content";
24
- readonly label: "Description";
25
- readonly authoring: {
26
- readonly authority: "instance";
27
- };
28
- };
29
- readonly eyebrow: {
30
- readonly type: "string";
31
- readonly category: "Content";
32
- readonly label: "Eyebrow";
33
- readonly authoring: {
34
- readonly authority: "instance";
35
- };
36
- };
37
- readonly tone: {
38
- readonly type: "enum";
39
- readonly category: "Style";
40
- readonly label: "Tone";
41
- readonly enum: readonly ["default", "subtle", "outline"];
42
- readonly authoring: {
43
- readonly authority: "theme";
44
- readonly scope: "pattern";
45
- readonly allowInstanceOverride: true;
46
- };
47
- };
48
- readonly compact: {
49
- readonly type: "boolean";
50
- readonly category: "Layout";
51
- readonly label: "Compact";
52
- readonly authoring: {
53
- readonly authority: "theme";
54
- readonly scope: "pattern";
55
- readonly allowInstanceOverride: true;
56
- };
57
- };
58
- readonly padding: {
59
- readonly type: "spacing";
60
- readonly category: "Layout";
61
- readonly label: "Padding";
62
- readonly authoring: {
63
- readonly authority: "theme";
64
- readonly scope: "pattern";
65
- readonly allowInstanceOverride: true;
66
- };
67
- };
68
- readonly radius: {
69
- readonly type: "radius";
70
- readonly category: "Style";
71
- readonly label: "Corner radius";
72
- readonly authoring: {
73
- readonly authority: "theme";
74
- readonly scope: "pattern";
75
- readonly allowInstanceOverride: true;
76
- };
77
- };
78
- };
79
- };
80
- //# sourceMappingURL=meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/panel/meta.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCgB,CAAC"}
@@ -1,49 +0,0 @@
1
- import { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';
2
- const themeAuthoring = {
3
- authority: 'theme',
4
- scope: 'pattern',
5
- allowInstanceOverride: true,
6
- };
7
- export const panelMeta = {
8
- name: 'Panel',
9
- category: 'pattern',
10
- directManifestNode: true,
11
- allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
12
- blueprint: { label: 'Panel', defaultProps: { title: 'Panel' } },
13
- props: {
14
- title: {
15
- type: 'string',
16
- category: 'Content',
17
- label: 'Title',
18
- authoring: { authority: 'instance' },
19
- },
20
- description: {
21
- type: 'string',
22
- category: 'Content',
23
- label: 'Description',
24
- authoring: { authority: 'instance' },
25
- },
26
- eyebrow: {
27
- type: 'string',
28
- category: 'Content',
29
- label: 'Eyebrow',
30
- authoring: { authority: 'instance' },
31
- },
32
- tone: {
33
- type: 'enum',
34
- category: 'Style',
35
- label: 'Tone',
36
- enum: ['default', 'subtle', 'outline'],
37
- authoring: themeAuthoring,
38
- },
39
- compact: { type: 'boolean', category: 'Layout', label: 'Compact', authoring: themeAuthoring },
40
- padding: { type: 'spacing', category: 'Layout', label: 'Padding', authoring: themeAuthoring },
41
- radius: {
42
- type: 'radius',
43
- category: 'Style',
44
- label: 'Corner radius',
45
- authoring: themeAuthoring,
46
- },
47
- },
48
- };
49
- //# sourceMappingURL=meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/panel/meta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAE5E,MAAM,cAAc,GAAG;IACrB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,SAAS;IAChB,qBAAqB,EAAE,IAAI;CACnB,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,0BAA0B,CAAC;IAChD,SAAS,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAC/D,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,SAAS;YAChB,SAAS,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACtC,SAAS,EAAE,cAAc;SAC1B;QACD,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;QAC7F,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE;QAC7F,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,eAAe;YACtB,SAAS,EAAE,cAAc;SAC1B;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nconst themeAuthoring = {\n authority: 'theme',\n scope: 'pattern',\n allowInstanceOverride: true,\n} as const;\n\nexport const panelMeta = {\n name: 'Panel',\n category: 'pattern',\n directManifestNode: true,\n allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],\n blueprint: { label: 'Panel', defaultProps: { title: 'Panel' } },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n authoring: { authority: 'instance' },\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n authoring: { authority: 'instance' },\n },\n eyebrow: {\n type: 'string',\n category: 'Content',\n label: 'Eyebrow',\n authoring: { authority: 'instance' },\n },\n tone: {\n type: 'enum',\n category: 'Style',\n label: 'Tone',\n enum: ['default', 'subtle', 'outline'],\n authoring: themeAuthoring,\n },\n compact: { type: 'boolean', category: 'Layout', label: 'Compact', authoring: themeAuthoring },\n padding: { type: 'spacing', category: 'Layout', label: 'Padding', authoring: themeAuthoring },\n radius: {\n type: 'radius',\n category: 'Style',\n label: 'Corner radius',\n authoring: themeAuthoring,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
@@ -1,31 +0,0 @@
1
- export declare const panelThemeRecipeMeta: {
2
- readonly name: "Panel";
3
- readonly kind: "pattern";
4
- readonly description: "Maps global rhythm and surface tokens into Panel presentation.";
5
- readonly fields: {
6
- readonly tone: {
7
- readonly type: "choice";
8
- readonly label: "Tone";
9
- readonly options: readonly ["default", "subtle", "outline"];
10
- readonly default: "default";
11
- };
12
- readonly padding: {
13
- readonly type: "token";
14
- readonly tokenFamily: "spacing";
15
- readonly label: "Padding";
16
- readonly description: "When unset, Panel keeps Card compact-aware spacing.";
17
- };
18
- readonly radius: {
19
- readonly type: "token";
20
- readonly tokenFamily: "radii";
21
- readonly label: "Corner radius";
22
- readonly default: "l";
23
- };
24
- readonly compact: {
25
- readonly type: "boolean";
26
- readonly label: "Compact";
27
- readonly default: false;
28
- };
29
- };
30
- };
31
- //# sourceMappingURL=themeRecipeMeta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeRecipeMeta.d.ts","sourceRoot":"","sources":["../../../src/patterns/panel/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BO,CAAC"}
@@ -1,31 +0,0 @@
1
- export const panelThemeRecipeMeta = {
2
- name: 'Panel',
3
- kind: 'pattern',
4
- description: 'Maps global rhythm and surface tokens into Panel presentation.',
5
- fields: {
6
- tone: {
7
- type: 'choice',
8
- label: 'Tone',
9
- options: ['default', 'subtle', 'outline'],
10
- default: 'default',
11
- },
12
- padding: {
13
- type: 'token',
14
- tokenFamily: 'spacing',
15
- label: 'Padding',
16
- description: 'When unset, Panel keeps Card compact-aware spacing.',
17
- },
18
- radius: {
19
- type: 'token',
20
- tokenFamily: 'radii',
21
- label: 'Corner radius',
22
- default: 'l',
23
- },
24
- compact: {
25
- type: 'boolean',
26
- label: 'Compact',
27
- default: false,
28
- },
29
- },
30
- };
31
- //# sourceMappingURL=themeRecipeMeta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"themeRecipeMeta.js","sourceRoot":"","sources":["../../../src/patterns/panel/themeRecipeMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,gEAAgE;IAC7E,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAC;YACzC,OAAO,EAAE,SAAS;SACnB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,SAAS;YACtB,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,qDAAqD;SACnE;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO;YACpB,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,GAAG;SACb;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;KACF;CACqC,CAAC","sourcesContent":["import type { ZoraThemeRecipeMeta } from '../../metadata/themeRecipeTypes';\n\nexport const panelThemeRecipeMeta = {\n name: 'Panel',\n kind: 'pattern',\n description: 'Maps global rhythm and surface tokens into Panel presentation.',\n fields: {\n tone: {\n type: 'choice',\n label: 'Tone',\n options: ['default', 'subtle', 'outline'],\n default: 'default',\n },\n padding: {\n type: 'token',\n tokenFamily: 'spacing',\n label: 'Padding',\n description: 'When unset, Panel keeps Card compact-aware spacing.',\n },\n radius: {\n type: 'token',\n tokenFamily: 'radii',\n label: 'Corner radius',\n default: 'l',\n },\n compact: {\n type: 'boolean',\n label: 'Compact',\n default: false,\n },\n },\n} as const satisfies ZoraThemeRecipeMeta;\n"]}
@@ -1,16 +0,0 @@
1
- import type React from 'react';
2
- import type { ZoraCardTone } from '../../internal/recipes';
3
- import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
- export interface PanelProps extends ZoraBaseProps {
5
- title?: React.ReactNode;
6
- description?: React.ReactNode;
7
- eyebrow?: React.ReactNode;
8
- actions?: React.ReactNode;
9
- footer?: React.ReactNode;
10
- children?: React.ReactNode;
11
- tone?: ZoraCardTone;
12
- compact?: boolean;
13
- padding?: string;
14
- radius?: string;
15
- }
16
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/panel/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,UAAW,SAAQ,aAAa;IAC/C,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/panel/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraCardTone } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface PanelProps extends ZoraBaseProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n actions?: React.ReactNode;\n footer?: React.ReactNode;\n children?: React.ReactNode;\n tone?: ZoraCardTone;\n compact?: boolean;\n padding?: string;\n radius?: string;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReaderSurface.d.ts","sourceRoot":"","sources":["../../../src/patterns/reader/ReaderSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,KAAK,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA0UhE;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,0DAAyC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReaderSurface.js","sourceRoot":"","sources":["../../../src/patterns/reader/ReaderSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,SAAS,gBAAgB,CAAC,IAAwB,EAAE,SAA6B;IAC/E,IAAI,IAAI,KAAK,SAAS,IAAI,CAAC,M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B,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,MAAM,CAAC,CAAC,MAAM,CAAC,EACf,CACH,CAAC,CAAC,CAAC,IAAI,CACV;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,OAAO,CAAC,CACX,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { AppBar } from '../../features/app-bar/public';\nimport { IconButton } from '../../features/button/public';\nimport { View } from '../../features/layout/public';\nimport { Progress } from '../../features/progress/public';\nimport { Surface } from '../../features/surface/public';\nimport { Text } from '../../features/typography/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { resolveReaderProgress } from './resolveReaderProgress';\nimport type { ReaderStatus, ReaderSurfaceProps } from './types';\n\nfunction resolvePageLabel(page: number | undefined, pageCount: number | undefined): string | null {\n if (page === undefined || !Number.isFinite(page)) return null;\n if (pageCount === undefined || !Number.isFinite(pageCount)) return `Page ${page}`;\n return `Page ${page} of ${pageCount}`;\n}\n\nfunction resolveCanGoPrevious({\n canGoPrevious,\n page,\n}: Pick<ReaderSurfaceProps, 'canGoPrevious' | 'page'>): boolean {\n if (canGoPrevious !== undefined) return canGoPrevious;\n return page === undefined || page > 1;\n}\n\nfunction resolveCanGoNext({\n canGoNext,\n page,\n pageCount,\n}: Pick<ReaderSurfaceProps, 'canGoNext' | 'page' | 'pageCount'>): boolean {\n if (canGoNext !== undefined) return canGoNext;\n return page === undefined || pageCount === undefined || page < pageCount;\n}\n\nfunction ReaderEmptyState({\n status,\n loadingLabel,\n errorTitle,\n unavailableTitle,\n}: {\n status: ReaderStatus;\n loadingLabel: string;\n errorTitle: string;\n unavailableTitle: string;\n}) {\n const title =\n status === 'loading' ? loadingLabel : status === 'error' ? errorTitle : unavailableTitle;\n\n return (\n <View align=\"center\" justify=\"center\" flex={1} minHeight={360} p=\"l\">\n <Text align=\"center\" emphasis=\"muted\" variant=\"bodySmall\">\n {title}\n </Text>\n </View>\n );\n}\n\nfunction invokeReaderAction(action: (() => void | Promise<void>) | undefined): void {\n void action?.();\n}\n\nfunction ReaderHeader({\n interactionPolicy,\n title,\n subtitle,\n contentsLabel,\n appearanceLabel,\n highlightLabel,\n highlighted,\n headerActions,\n onOpenContents,\n onOpenAppearance,\n onToggleHighlight,\n}: Pick<\n ReaderSurfaceProps,\n | 'interactionPolicy'\n | 'title'\n | 'subtitle'\n | 'contentsLabel'\n | 'appearanceLabel'\n | 'highlightLabel'\n | 'highlighted'\n | 'headerActions'\n | 'onOpenContents'\n | 'onOpenAppearance'\n | 'onToggleHighlight'\n>) {\n const actions =\n onOpenContents || onOpenAppearance || onToggleHighlight || headerActions ? (\n <View direction=\"row\" align=\"center\" gap=\"xs\" wrap=\"nowrap\">\n {onOpenContents ? (\n <IconButton\n icon={{ name: 'list-outline' }}\n interactionPolicy={interactionPolicy}\n label={contentsLabel ?? 'Table of contents'}\n onPress={() => invokeReaderAction(onOpenContents)}\n size=\"l\"\n />\n ) : null}\n {onOpenAppearance ? (\n <IconButton\n icon={{ name: 'text-outline' }}\n interactionPolicy={interactionPolicy}\n label={appearanceLabel ?? 'Reading appearance'}\n onPress={() => invokeReaderAction(onOpenAppearance)}\n size=\"l\"\n />\n ) : null}\n {onToggleHighlight ? (\n <IconButton\n color={highlighted ? 'primary' : 'neutral'}\n icon={{ name: highlighted ? 'bookmark' : 'bookmark-outline' }}\n interactionPolicy={interactionPolicy}\n label={highlightLabel ?? 'Toggle highlight'}\n onPress={() => invokeReaderAction(onToggleHighlight)}\n size=\"l\"\n />\n ) : null}\n {headerActions}\n </View>\n ) : undefined;\n\n return (\n <AppBar\n actions={actions}\n divider\n interactionPolicy={interactionPolicy}\n safeAreaTop\n subtitle={subtitle}\n title={title}\n />\n );\n}\n\nfunction ReaderFooter({\n interactionPolicy,\n status,\n page,\n pageCount,\n progress,\n canGoPrevious,\n canGoNext,\n chapterLabel,\n pageLabel,\n previousPageLabel,\n nextPageLabel,\n footerActions,\n onPreviousPage,\n onNextPage,\n}: Pick<\n ReaderSurfaceProps,\n | 'interactionPolicy'\n | 'status'\n | 'page'\n | 'pageCount'\n | 'progress'\n | 'canGoPrevious'\n | 'canGoNext'\n | 'chapterLabel'\n | 'pageLabel'\n | 'previousPageLabel'\n | 'nextPageLabel'\n | 'footerActions'\n | 'onPreviousPage'\n | 'onNextPage'\n>) {\n const { theme } = useZoraTheme();\n const resolvedProgress = resolveReaderProgress({ progress, page, pageCount });\n const resolvedPageLabel = pageLabel ?? resolvePageLabel(page, pageCount);\n const previousEnabled =\n status === 'ready' && Boolean(onPreviousPage) && resolveCanGoPrevious({ canGoPrevious, page });\n const nextEnabled =\n status === 'ready' && Boolean(onNextPage) && resolveCanGoNext({ canGoNext, page, pageCount });\n\n return (\n <View\n bg={theme.semantics.surface.raised}\n borderColor={theme.semantics.neutral.divider}\n borderWidth={1}\n gap=\"s\"\n p=\"m\"\n >\n <Progress value={resolvedProgress} max={1} size=\"s\" />\n <View align=\"center\" direction=\"row\" gap=\"m\" justify=\"space-between\" wrap=\"nowrap\">\n <IconButton\n disabled={!previousEnabled}\n icon={{ name: 'chevron-back' }}\n interactionPolicy={interactionPolicy}\n label={previousPageLabel ?? 'Previous page'}\n onPress={() => invokeReaderAction(onPreviousPage)}\n size=\"l\"\n />\n <View flex={1} minWidth={0}>\n <View align=\"center\" gap=\"xs\">\n {chapterLabel ? (\n <Text\n align=\"center\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n variant=\"label\"\n weight=\"semiBold\"\n >\n {chapterLabel}\n </Text>\n ) : null}\n {resolvedPageLabel ? (\n <Text\n accessibilityLiveRegion=\"polite\"\n align=\"center\"\n emphasis=\"muted\"\n variant=\"caption\"\n >\n {resolvedPageLabel}\n </Text>\n ) : null}\n </View>\n </View>\n <IconButton\n disabled={!nextEnabled}\n icon={{ name: 'chevron-forward' }}\n interactionPolicy={interactionPolicy}\n label={nextPageLabel ?? 'Next page'}\n onPress={() => invokeReaderAction(onNextPage)}\n size=\"l\"\n />\n </View>\n {footerActions ? <View>{footerActions}</View> : null}\n </View>\n );\n}\n\nfunction ReaderSurfaceInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy,\n source: _source,\n format: _format,\n location: _location,\n status = 'idle',\n page,\n pageCount,\n progress,\n canGoPrevious,\n canGoNext,\n title,\n subtitle,\n chapterLabel,\n pageLabel,\n previousPageLabel = 'Previous page',\n nextPageLabel = 'Next page',\n contentsLabel = 'Table of contents',\n appearanceLabel = 'Reading appearance',\n highlightLabel = 'Toggle highlight',\n loadingLabel = 'Loading document…',\n errorTitle = 'Unable to open this document.',\n unavailableTitle = 'Reader preview unavailable.',\n showChrome = true,\n readerColorScheme: _readerColorScheme = 'system',\n fontScale: _fontScale = 1,\n lineHeight: _lineHeight = 'normal',\n highlighted = false,\n viewport,\n headerActions,\n footerActions,\n onPreviousPage,\n onNextPage,\n onLocationChange: _onLocationChange,\n onOpenContents,\n onOpenAppearance,\n onToggleHighlight,\n onOpenExternalLink: _onOpenExternalLink,\n onReaderError: _onReaderError,\n testID,\n}: ReaderSurfaceProps) {\n const { theme } = useZoraTheme();\n\n const viewportContent =\n viewport && status !== 'error' ? (\n viewport\n ) : (\n <ReaderEmptyState\n errorTitle={errorTitle}\n loadingLabel={loadingLabel}\n status={status}\n unavailableTitle={unavailableTitle}\n />\n );\n\n return (\n <Surface\n radius=\"l\"\n testID={testID}\n variant=\"default\"\n style={{ minHeight: 480, overflow: 'hidden' }}\n >\n <View flex={1} gap={0}>\n {showChrome ? (\n <ReaderHeader\n appearanceLabel={appearanceLabel}\n contentsLabel={contentsLabel}\n headerActions={headerActions}\n highlightLabel={highlightLabel}\n highlighted={highlighted}\n interactionPolicy={interactionPolicy}\n onOpenAppearance={onOpenAppearance}\n onOpenContents={onOpenContents}\n onToggleHighlight={onToggleHighlight}\n subtitle={subtitle}\n title={title}\n />\n ) : null}\n\n <View bg={theme.semantics.surface.default} flex={1} minHeight={360} overflow=\"hidden\">\n {viewportContent}\n </View>\n\n {showChrome ? (\n <ReaderFooter\n canGoNext={canGoNext}\n canGoPrevious={canGoPrevious}\n chapterLabel={chapterLabel}\n footerActions={footerActions}\n interactionPolicy={interactionPolicy}\n nextPageLabel={nextPageLabel}\n onNextPage={onNextPage}\n onPreviousPage={onPreviousPage}\n page={page}\n pageCount={pageCount}\n pageLabel={pageLabel}\n previousPageLabel={previousPageLabel}\n progress={progress}\n status={status}\n />\n ) : null}\n </View>\n </Surface>\n );\n}\n\n/***\n * Adapter-neutral reader shell for EPUB and PDF experiences.\n *\n * Supply the actual renderer through `viewport`; ZORA owns only the reader\n * chrome, controlled state, progress, accessible controls, and normalized\n * adapter callbacks.\n */\nexport const ReaderSurface = withZoraThemeScope(ReaderSurfaceInner);\n"]}
@@ -1,4 +0,0 @@
1
- export { ReaderSurface } from './ReaderSurface';
2
- export { resolveReaderProgress } from './resolveReaderProgress';
3
- export type { ReaderColorScheme, ReaderDocumentFormat, ReaderErrorCode, ReaderErrorEvent, ReaderExternalLinkEvent, ReaderLineHeight, ReaderLocationChangeEvent, ReaderNavigationTrigger, ReaderResolvedSource, ReaderStatus, ReaderSurfaceProps, } from './types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/reader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EACV,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,GACnB,MAAM,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- export { ReaderSurface } from './ReaderSurface';
2
- export { resolveReaderProgress } from './resolveReaderProgress';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/reader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export { ReaderSurface } from './ReaderSurface';\nexport { resolveReaderProgress } from './resolveReaderProgress';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderResolvedSource,\n ReaderStatus,\n ReaderSurfaceProps,\n} from './types';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveReaderProgress.d.ts","sourceRoot":"","sources":["../../../src/patterns/reader/resolveReaderProgress.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,SAAS,GACV,EAAE;IACD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,MAAM,CAoBT"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolveReaderProgress.js","sourceRoot":"","sources":["../../../src/patterns/reader/resolveReaderProgress.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,qBAAqB,CAAC,EACpC,QAAQ,EACR,IAAI,EACJ,SAAS,GAKV;IACC,IAAI,QAAQ,KAAK,SAAS,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QACxD,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,IACE,IAAI,KAAK,SAAS;QAClB,SAAS,KAAK,SAAS;QACvB,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtB,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC3B,SAAS,GAAG,CAAC,EACb,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IAED,IAAI,SAAS,KAAK,CAAC,EAAE,CAAC;QACpB,OAAO,CAAC,CAAC;IACX,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAChE,CAAC","sourcesContent":["export function resolveReaderProgress({\n progress,\n page,\n pageCount,\n}: {\n progress?: number;\n page?: number;\n pageCount?: number;\n}): number {\n if (progress !== undefined && Number.isFinite(progress)) {\n return Math.min(1, Math.max(0, progress));\n }\n\n if (\n page === undefined ||\n pageCount === undefined ||\n !Number.isFinite(page) ||\n !Number.isFinite(pageCount) ||\n pageCount < 1\n ) {\n return 0;\n }\n\n if (pageCount === 1) {\n return 1;\n }\n\n return Math.min(1, Math.max(0, (page - 1) / (pageCount - 1)));\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/reader/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,KAAK,CAAC;AAElD,MAAM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,CAAC,CAAC;IAC5C,gBAAgB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,iBAAiB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/reader/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type ReaderDocumentFormat = 'epub' | 'pdf';\n\nexport type ReaderStatus = 'idle' | 'loading' | 'ready' | 'error';\n\nexport type ReaderNavigationTrigger =\n 'swipe' | 'previousControl' | 'nextControl' | 'keyboard' | 'location';\n\nexport interface ReaderLocationChangeEvent {\n format: ReaderDocumentFormat;\n locator: string;\n page: number;\n pageCount?: number;\n progression: number;\n chapterId?: string;\n chapterTitle?: string;\n trigger: ReaderNavigationTrigger;\n}\n\nexport type ReaderErrorCode =\n 'invalid-document' | 'load-failed' | 'protected-document' | 'unsupported-format';\n\nexport interface ReaderErrorEvent {\n code: ReaderErrorCode;\n format?: ReaderDocumentFormat;\n message: string;\n}\n\nexport type ReaderColorScheme = 'system' | 'light' | 'dark' | 'sepia';\n\nexport type ReaderLineHeight = 'compact' | 'normal' | 'relaxed';\n\nexport type ReaderResolvedSource = string | number | { readonly uri: string };\n\nexport interface ReaderExternalLinkEvent {\n url: string;\n}\n\nexport interface ReaderSurfaceProps extends ZoraBaseProps {\n source?: ReaderResolvedSource | null;\n format: ReaderDocumentFormat;\n location?: string;\n status?: ReaderStatus;\n page?: number;\n pageCount?: number;\n progress?: number;\n canGoPrevious?: boolean;\n canGoNext?: boolean;\n title?: string;\n subtitle?: string;\n chapterLabel?: string;\n pageLabel?: string;\n previousPageLabel?: string;\n nextPageLabel?: string;\n contentsLabel?: string;\n appearanceLabel?: string;\n highlightLabel?: string;\n loadingLabel?: string;\n errorTitle?: string;\n unavailableTitle?: string;\n showChrome?: boolean;\n readerColorScheme?: ReaderColorScheme;\n fontScale?: number;\n lineHeight?: ReaderLineHeight;\n highlighted?: boolean;\n viewport?: React.ReactNode;\n headerActions?: React.ReactNode;\n footerActions?: React.ReactNode;\n onPreviousPage?: () => void | Promise<void>;\n onNextPage?: () => void | Promise<void>;\n onLocationChange?: (event: ReaderLocationChangeEvent) => void | Promise<void>;\n onOpenContents?: () => void | Promise<void>;\n onOpenAppearance?: () => void | Promise<void>;\n onToggleHighlight?: () => void | Promise<void>;\n onOpenExternalLink?: (event: ReaderExternalLinkEvent) => void | Promise<void>;\n onReaderError?: (event: ReaderErrorEvent) => void | Promise<void>;\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BarcodeScannerView.d.ts","sourceRoot":"","sources":["../../../src/patterns/scanner/BarcodeScannerView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAgHvD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,+DAA8C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BarcodeScannerView.js","sourceRoot":"","sources":["../../../src/patterns/scanner/BarcodeScannerView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MA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,CACR;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE;QACR,WAAW,EAAE,IAAI;QACjB,YAAY,EAAE,EAAE;QAChB,SAAS,EAAE,GAAG;QACd,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,UAAU;KACrB;IACD,UAAU,EAAE;QACV,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,WAAW,EAAE;QACX,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,CAAC;QACR,GAAG,EAAE,CAAC;KACP;IACD,OAAO,EAAE;QACP,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;QACR,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;KACR;CACF,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC,uBAAuB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport { Card } from '../../features/card/public';\nimport { View } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { CameraPermissionView } from './CameraPermissionView';\nimport { ScanOverlay } from './ScanOverlay';\nimport type { BarcodeScannerViewProps } from './types';\n\nfunction BarcodeScannerViewInner({\n themeId: _themeId,\n interactionPolicy,\n mode: _mode,\n permissionStatus,\n camera,\n children,\n title = 'Scan barcode',\n description = 'Point the camera at a barcode to continue.',\n overlayTitle,\n overlayDescription,\n cornerLabel,\n requestPermissionLabel,\n deniedPermissionLabel,\n manualEntryLabel,\n onRequestPermission,\n onManualEntry,\n testID,\n}: BarcodeScannerViewProps) {\n const { theme } = useZoraTheme();\n const viewportStyle = {\n backgroundColor: theme.semantics.surface.default,\n };\n const placeholderStyle = {\n backgroundColor: theme.semantics.surface.default,\n };\n\n if (permissionStatus !== 'granted') {\n return (\n <CameraPermissionView\n deniedLabel={deniedPermissionLabel}\n manualEntryLabel={manualEntryLabel}\n onManualEntry={onManualEntry}\n onRequestPermission={onRequestPermission}\n requestLabel={requestPermissionLabel}\n status={permissionStatus}\n testID={testID}\n interactionPolicy={interactionPolicy}\n />\n );\n }\n\n return (\n <Card\n compact\n description={description}\n eyebrow=\"Scanner\"\n interactionPolicy={interactionPolicy}\n testID={testID}\n title={title}\n tone=\"subtle\"\n >\n <View gap=\"m\">\n <View>\n <View style={[styles.viewport, viewportStyle]}>\n {camera ? (\n <View style={styles.cameraSlot}>{camera}</View>\n ) : (\n <View style={[styles.placeholder, placeholderStyle]} />\n )}\n <View style={[styles.overlay, { pointerEvents: 'none' }]}>\n <ScanOverlay\n cornerLabel={cornerLabel}\n description={overlayDescription}\n title={overlayTitle}\n />\n </View>\n </View>\n </View>\n {children ? <View>{children}</View> : null}\n <Text emphasis=\"muted\" variant=\"caption\">\n Native scanning belongs to an app adapter such as expo-camera. ZORA owns this visible\n scanner surface.\n </Text>\n </View>\n </Card>\n );\n}\n\nconst styles = StyleSheet.create({\n viewport: {\n aspectRatio: 0.72,\n borderRadius: 28,\n minHeight: 360,\n overflow: 'hidden',\n position: 'relative',\n },\n cameraSlot: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n placeholder: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n overlay: {\n bottom: 24,\n left: 24,\n position: 'absolute',\n right: 24,\n top: 24,\n },\n});\n\n/***\n * Composed ZORA scanner shell for barcode scanning experiences.\n *\n * `BarcodeScannerView` is camera-adapter-neutral: pass an `expo-camera`, web,\n * or test camera element through `camera`; keep permission and fallback UI here.\n *\n */\nexport const BarcodeScannerView = withZoraThemeScope(BarcodeScannerViewInner);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CameraPermissionView.d.ts","sourceRoot":"","sources":["../../../src/patterns/scanner/CameraPermissionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAiGzD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,iEAAgD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CameraPermissionView.js","sourceRoot":"","sources":["../../../src/patterns/scanner/CameraPermissionView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,qBAAqB,CAAC,MAA2C;IACxE,IAAI,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO;YACL,KAAK,EAAE,0BAA0B;YACjC,WAAW,EACT,iGAAiG;SACpG,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,KAAK,YAAY,EAAE,CAAC;QAC5B,OAAO;YACL,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,2CAA2C;SACzD,CAAC;IACJ,CAAC;IAED,OAAO;QACL,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EACT,sFAAsF;KACzF,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAAC,EACjC,OAAO,EAAE,QAAQ,EACjB,iBAAiB,EACjB,IAAI,EAAE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BAAuB,CAAC,CAAC,CAAC,CACzB,CAAC,MAAM,CACL,KAAK,CAAC,SAAS,CACf,QAAQ,CAAC,CAAC,MAAM,KAAK,YAAY,CAAC,CAClC,OAAO,CAAC,CAAC,uBAAuB,CAAC,CACjC,IAAI,kBAAkB,CAAC,CACvB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAErC;cAAA,CAAC,YAAY,CACf;YAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,iBAAiB,CAAC,CAAC,CAAC,CACnB,CAAC,MAAM,CACL,KAAK,CAAC,SAAS,CACf,OAAO,CAAC,CAAC,iBAAiB,CAAC,CAC3B,OAAO,CAAC,MAAM,CACd,IAAI,sBAAsB,CAAC,CAC3B,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CAErC;cAAA,CAAC,gBAAgB,CACnB;YAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC,yBAAyB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { Card } from '../../features/card/public';\nimport { View } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { CameraPermissionViewProps } from './types';\n\nfunction resolvePermissionCopy(status: CameraPermissionViewProps['status']) {\n if (status === 'denied') {\n return {\n title: 'Camera permission needed',\n description:\n 'Camera access is denied. Enable camera access in system settings or enter the barcode manually.',\n };\n }\n\n if (status === 'requesting') {\n return {\n title: 'Requesting camera access',\n description: 'Waiting for the system permission prompt.',\n };\n }\n\n return {\n title: 'Allow camera access',\n description:\n 'Camera access is required to scan barcodes. You can also enter the barcode manually.',\n };\n}\n\nfunction CameraPermissionViewInner({\n themeId: _themeId,\n interactionPolicy,\n mode: _mode,\n status,\n title,\n description,\n requestLabel = 'Allow camera access',\n deniedLabel = 'Open settings',\n manualEntryLabel = 'Enter barcode manually',\n onRequestPermission,\n onManualEntry,\n requestButtonProps,\n manualEntryButtonProps,\n testID,\n}: CameraPermissionViewProps) {\n const copy = resolvePermissionCopy(status);\n const primaryLabel = status === 'denied' ? deniedLabel : requestLabel;\n const handleRequestPermission = onRequestPermission\n ? () => {\n void onRequestPermission();\n }\n : undefined;\n const handleManualEntry = onManualEntry\n ? () => {\n void onManualEntry();\n }\n : undefined;\n\n return (\n <Card\n compact\n description={description ?? copy.description}\n eyebrow=\"Scanner permission\"\n interactionPolicy={interactionPolicy}\n testID={testID}\n title={title ?? copy.title}\n tone=\"subtle\"\n >\n <View gap=\"m\">\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n Permission state: {status}\n </Text>\n <View direction={{ base: 'column', md: 'row' }} gap=\"s\">\n {handleRequestPermission ? (\n <Button\n color=\"primary\"\n disabled={status === 'requesting'}\n onPress={handleRequestPermission}\n {...requestButtonProps}\n interactionPolicy={interactionPolicy}\n >\n {primaryLabel}\n </Button>\n ) : null}\n {handleManualEntry ? (\n <Button\n color=\"neutral\"\n onPress={handleManualEntry}\n variant=\"soft\"\n {...manualEntryButtonProps}\n interactionPolicy={interactionPolicy}\n >\n {manualEntryLabel}\n </Button>\n ) : null}\n </View>\n </View>\n </Card>\n );\n}\n\n/***\n * ZORA-owned camera permission state for scanner flows.\n *\n * Native permission APIs stay in app adapters. This component renders the\n * request, denied, requesting, and manual-entry surfaces consistently.\n *\n */\nexport const CameraPermissionView = withZoraThemeScope(CameraPermissionViewInner);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScanOverlay.d.ts","sourceRoot":"","sources":["../../../src/patterns/scanner/ScanOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,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AE,GAAG;QACd,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,UAAU;KACrB;IACD,MAAM,EAAE;QACN,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,UAAU;QACpB,KAAK,EAAE,EAAE;KACV;IACD,OAAO,EAAE;QACP,eAAe,EAAE,CAAC;QAClB,cAAc,EAAE,CAAC;QACjB,IAAI,EAAE,EAAE;QACR,GAAG,EAAE,EAAE;KACR;IACD,QAAQ,EAAE;QACR,gBAAgB,EAAE,CAAC;QACnB,cAAc,EAAE,CAAC;QACjB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;KACR;IACD,UAAU,EAAE;QACV,iBAAiB,EAAE,CAAC;QACpB,eAAe,EAAE,CAAC;QAClB,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,EAAE;KACT;IACD,WAAW,EAAE;QACX,iBAAiB,EAAE,CAAC;QACpB,gBAAgB,EAAE,CAAC;QACnB,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;KACV;CACF,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport { Badge } from '../../features/badge/public';\nimport { View } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ScanOverlayProps } from './types';\n\nfunction ScanOverlayInner({\n themeId: _themeId,\n interactionPolicy: _interactionPolicy,\n mode: _mode,\n title = 'Align the barcode',\n description = 'Hold the barcode inside the frame. Scanning starts automatically.',\n cornerLabel = 'SCAN',\n testID,\n}: ScanOverlayProps) {\n const { theme } = useZoraTheme();\n const frameStyle = {\n borderColor: theme.semantics.border.default,\n };\n const cornerStyle = {\n borderColor: theme.semantics.border.focus,\n };\n\n return (\n <View testID={testID}>\n <View gap=\"m\">\n <View accessibilityRole=\"image\" style={[styles.frame, frameStyle]}>\n <View style={[styles.corner, styles.topLeft, cornerStyle]} />\n <View style={[styles.corner, styles.topRight, cornerStyle]} />\n <View style={[styles.corner, styles.bottomLeft, cornerStyle]} />\n <View style={[styles.corner, styles.bottomRight, cornerStyle]} />\n <Badge color=\"primary\">{cornerLabel}</Badge>\n </View>\n <View gap=\"xs\">\n <Text align=\"center\" variant=\"label\" weight=\"semiBold\">\n {title}\n </Text>\n <Text align=\"center\" emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n </View>\n </View>\n </View>\n );\n}\n\nconst styles = StyleSheet.create({\n frame: {\n alignItems: 'center',\n aspectRatio: 1.55,\n borderRadius: 28,\n borderWidth: 1,\n justifyContent: 'center',\n minHeight: 180,\n overflow: 'hidden',\n position: 'relative',\n },\n corner: {\n height: 34,\n position: 'absolute',\n width: 34,\n },\n topLeft: {\n borderLeftWidth: 4,\n borderTopWidth: 4,\n left: 18,\n top: 18,\n },\n topRight: {\n borderRightWidth: 4,\n borderTopWidth: 4,\n right: 18,\n top: 18,\n },\n bottomLeft: {\n borderBottomWidth: 4,\n borderLeftWidth: 4,\n bottom: 18,\n left: 18,\n },\n bottomRight: {\n borderBottomWidth: 4,\n borderRightWidth: 4,\n bottom: 18,\n right: 18,\n },\n});\n\n/***\n * Camera-agnostic scan frame overlay for barcode and QR scanning flows.\n *\n * `ScanOverlay` intentionally renders no native camera. Apps provide camera\n * capability separately while ZORA owns the visible scan affordance.\n *\n */\nexport const ScanOverlay = withZoraThemeScope(ScanOverlayInner);\n"]}
@@ -1,5 +0,0 @@
1
- export { BarcodeScannerView } from './BarcodeScannerView';
2
- export { CameraPermissionView } from './CameraPermissionView';
3
- export { ScanOverlay } from './ScanOverlay';
4
- export type { BarcodeScannerViewProps, BarcodeScanResult, CameraPermissionStatus, CameraPermissionViewProps, ScanOverlayProps, } from './types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/scanner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EACV,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACtB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
@@ -1,4 +0,0 @@
1
- export { BarcodeScannerView } from './BarcodeScannerView';
2
- export { CameraPermissionView } from './CameraPermissionView';
3
- export { ScanOverlay } from './ScanOverlay';
4
- //# sourceMappingURL=index.js.map