@ankhorage/zora 18.0.1 → 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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/constants.d.ts +2 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/corePluginMetadata.d.ts.map +1 -1
- package/dist/corePluginMetadata.js +1 -5
- package/dist/corePluginMetadata.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.d.ts +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.d.ts.map +1 -0
- package/dist/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.js +6 -6
- package/dist/features/chat/adapters/inbound/ChatListItem.js.map +1 -0
- package/dist/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.d.ts +1 -1
- package/dist/features/chat/adapters/inbound/MessageBubble.d.ts.map +1 -0
- package/dist/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.js +5 -5
- package/dist/features/chat/adapters/inbound/MessageBubble.js.map +1 -0
- package/dist/{patterns/chat-list-item/meta.d.ts → features/chat/chatListItemMeta.d.ts} +1 -1
- package/dist/features/chat/chatListItemMeta.d.ts.map +1 -0
- package/dist/{patterns/chat-list-item/meta.js → features/chat/chatListItemMeta.js} +1 -1
- package/dist/features/chat/chatListItemMeta.js.map +1 -0
- package/dist/{patterns/message-bubble/meta.d.ts → features/chat/messageBubbleMeta.d.ts} +2 -2
- package/dist/features/chat/messageBubbleMeta.d.ts.map +1 -0
- package/dist/{patterns/message-bubble/meta.js → features/chat/messageBubbleMeta.js} +1 -1
- package/dist/features/chat/messageBubbleMeta.js.map +1 -0
- package/dist/features/chat/public.d.ts +4 -0
- package/dist/features/chat/public.d.ts.map +1 -0
- package/dist/features/chat/public.js +3 -0
- package/dist/features/chat/public.js.map +1 -0
- package/dist/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.d.ts +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.d.ts.map +1 -0
- package/dist/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.js +8 -8
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js.map +1 -0
- package/dist/features/collection-editor/meta.d.ts.map +1 -0
- package/dist/{patterns → features}/collection-editor/meta.js.map +1 -1
- package/dist/features/collection-editor/public.d.ts +3 -0
- package/dist/features/collection-editor/public.d.ts.map +1 -0
- package/dist/features/collection-editor/public.js +2 -0
- package/dist/features/collection-editor/public.js.map +1 -0
- package/dist/features/content-rail/contentRailMeta.d.ts +2 -2
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/form/field/meta.d.ts +1 -1
- package/dist/features/form/field/meta.d.ts.map +1 -1
- package/dist/features/form/field/meta.js +1 -0
- package/dist/features/form/field/meta.js.map +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.d.ts +5 -0
- package/dist/features/form/switch/adapters/inbound/Switch.d.ts.map +1 -0
- package/dist/features/form/switch/adapters/inbound/Switch.js +9 -0
- package/dist/features/form/switch/adapters/inbound/Switch.js.map +1 -0
- package/dist/features/form/switch/public.d.ts +3 -0
- package/dist/features/form/switch/public.d.ts.map +1 -0
- package/dist/features/form/switch/public.js +2 -0
- package/dist/features/form/switch/public.js.map +1 -0
- package/dist/features/form/switch/switchMeta.d.ts +33 -0
- package/dist/features/form/switch/switchMeta.d.ts.map +1 -0
- package/dist/features/form/switch/switchMeta.js +13 -0
- package/dist/features/form/switch/switchMeta.js.map +1 -0
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/public.d.ts +1 -2
- package/dist/features/layout/public.d.ts.map +1 -1
- package/dist/features/layout/public.js +0 -1
- package/dist/features/layout/public.js.map +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js.map +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.d.ts +1 -1
- package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +1 -0
- package/dist/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.js +9 -9
- package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +1 -0
- package/dist/{patterns → features}/reader/meta.d.ts +2 -2
- package/dist/{patterns → features}/reader/meta.d.ts.map +1 -1
- package/dist/{patterns → features}/reader/meta.js.map +1 -1
- package/dist/features/reader/public.d.ts +4 -0
- package/dist/features/reader/public.d.ts.map +1 -0
- package/dist/features/reader/public.js +3 -0
- package/dist/features/reader/public.js.map +1 -0
- package/dist/features/reader/utils/resolveReaderProgress.d.ts.map +1 -0
- package/dist/features/reader/utils/resolveReaderProgress.js.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.d.ts +1 -1
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.d.ts.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.js +5 -5
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.d.ts +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.d.ts.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.js +5 -5
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.d.ts +1 -1
- package/dist/features/scanner/adapters/inbound/ScanOverlay.d.ts.map +1 -0
- package/dist/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.js +5 -5
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js.map +1 -0
- package/dist/{patterns → features}/scanner/meta.d.ts +2 -2
- package/dist/{patterns → features}/scanner/meta.d.ts.map +1 -1
- package/dist/{patterns → features}/scanner/meta.js.map +1 -1
- package/dist/features/scanner/public.d.ts +5 -0
- package/dist/features/scanner/public.d.ts.map +1 -0
- package/dist/features/scanner/public.js +4 -0
- package/dist/features/scanner/public.js.map +1 -0
- package/dist/features/{layout → section}/adapters/inbound/ScreenSection.d.ts +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.d.ts.map +1 -0
- package/dist/features/{layout → section}/adapters/inbound/ScreenSection.js +2 -2
- package/dist/features/section/adapters/inbound/ScreenSection.js.map +1 -0
- package/dist/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.d.ts +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.d.ts.map +1 -0
- package/dist/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.js +4 -4
- package/dist/features/section/adapters/inbound/SectionHeader.js.map +1 -0
- package/dist/features/section/public.d.ts +4 -0
- package/dist/features/section/public.d.ts.map +1 -0
- package/dist/features/section/public.js +3 -0
- package/dist/features/section/public.js.map +1 -0
- package/dist/features/{layout → section}/screenSectionMeta.d.ts +1 -1
- package/dist/features/section/screenSectionMeta.d.ts.map +1 -0
- package/dist/features/section/screenSectionMeta.js.map +1 -0
- package/dist/{patterns/section-header/meta.d.ts → features/section/sectionHeaderMeta.d.ts} +1 -1
- package/dist/features/section/sectionHeaderMeta.d.ts.map +1 -0
- package/dist/{patterns/section-header/meta.js → features/section/sectionHeaderMeta.js} +1 -1
- package/dist/features/section/sectionHeaderMeta.js.map +1 -0
- package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.d.ts +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.d.ts.map +1 -0
- package/dist/features/selection/adapters/inbound/SelectableItem.js.map +1 -0
- package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.d.ts +1 -1
- package/dist/features/selection/adapters/inbound/SelectionProvider.d.ts.map +1 -0
- package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.js +1 -1
- package/dist/features/selection/adapters/inbound/SelectionProvider.js.map +1 -0
- package/dist/{patterns → features}/selection/meta.d.ts.map +1 -1
- package/dist/{patterns → features}/selection/meta.js.map +1 -1
- package/dist/features/selection/public.d.ts +4 -0
- package/dist/features/selection/public.d.ts.map +1 -0
- package/dist/features/selection/public.js +3 -0
- package/dist/features/selection/public.js.map +1 -0
- package/dist/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.d.ts +1 -1
- package/dist/features/selection/utils/resolveSelectionNextIds.d.ts.map +1 -0
- package/dist/features/selection/utils/resolveSelectionNextIds.js.map +1 -0
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.d.ts +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -0
- package/dist/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.js +7 -7
- package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -0
- package/dist/features/timeline/meta.d.ts.map +1 -0
- package/dist/{patterns → features}/timeline/meta.js.map +1 -1
- package/dist/features/timeline/public.d.ts +3 -0
- package/dist/features/timeline/public.d.ts.map +1 -0
- package/dist/features/timeline/public.js +2 -0
- package/dist/features/timeline/public.js.map +1 -0
- package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.d.ts +2 -2
- package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -0
- package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.js +4 -4
- package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -0
- package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.d.ts +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.d.ts.map +1 -0
- package/dist/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.js +2 -2
- package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -0
- package/dist/{patterns → features}/tree-view/meta.d.ts.map +1 -1
- package/dist/{patterns → features}/tree-view/meta.js.map +1 -1
- package/dist/features/tree-view/public.d.ts +4 -0
- package/dist/features/tree-view/public.d.ts.map +1 -0
- package/dist/features/tree-view/public.js +3 -0
- package/dist/features/tree-view/public.js.map +1 -0
- package/dist/index.d.ts +18 -34
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -17
- package/dist/index.js.map +1 -1
- package/dist/metadata/allowedChildren.d.ts +4 -4
- package/dist/metadata/allowedChildren.d.ts.map +1 -1
- package/dist/metadata/allowedChildren.js +0 -3
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +23 -23
- package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
- package/dist/metadata/bindableComponentMeta.js +20 -28
- package/dist/metadata/bindableComponentMeta.js.map +1 -1
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +12 -24
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/metadata/themeRecipeMeta.d.ts.map +1 -1
- package/dist/metadata/themeRecipeMeta.js +0 -2
- package/dist/metadata/themeRecipeMeta.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +11 -24
- package/dist/registry.js.map +1 -1
- package/dist/{patterns/message-bubble/types.d.ts → types/chat.d.ts} +29 -4
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +2 -0
- package/dist/types/chat.js.map +1 -0
- package/dist/{patterns/collection-editor/types.d.ts → types/collection-editor.d.ts} +2 -2
- package/dist/types/collection-editor.d.ts.map +1 -0
- package/dist/types/collection-editor.js +2 -0
- package/dist/types/collection-editor.js.map +1 -0
- package/dist/types/layout.d.ts +0 -6
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/dist/{patterns/reader/types.d.ts → types/reader.d.ts} +2 -2
- package/dist/types/reader.d.ts.map +1 -0
- package/dist/types/reader.js +2 -0
- package/dist/types/reader.js.map +1 -0
- package/dist/{patterns/scanner/types.d.ts → types/scanner.d.ts} +3 -3
- package/dist/types/scanner.d.ts.map +1 -0
- package/dist/types/scanner.js +2 -0
- package/dist/types/scanner.js.map +1 -0
- package/dist/types/section.d.ts +15 -0
- package/dist/types/section.d.ts.map +1 -0
- package/dist/types/section.js +2 -0
- package/dist/types/section.js.map +1 -0
- package/dist/{patterns/selection/types.d.ts → types/selection.d.ts} +1 -1
- package/dist/types/selection.d.ts.map +1 -0
- package/dist/types/selection.js +2 -0
- package/dist/types/selection.js.map +1 -0
- package/dist/types/switch.d.ts +5 -0
- package/dist/types/switch.d.ts.map +1 -0
- package/dist/types/switch.js +2 -0
- package/dist/types/switch.js.map +1 -0
- package/dist/{patterns/timeline/types.d.ts → types/timeline.d.ts} +3 -3
- package/dist/types/timeline.d.ts.map +1 -0
- package/dist/types/timeline.js +2 -0
- package/dist/types/timeline.js.map +1 -0
- package/dist/{patterns/tree-view/types.d.ts → types/tree-view.d.ts} +2 -2
- package/dist/types/tree-view.d.ts.map +1 -0
- package/dist/types/tree-view.js +2 -0
- package/dist/types/tree-view.js.map +1 -0
- package/package.json +1 -1
- package/src/audit.test.ts +3 -3
- package/src/constants.ts +2 -1
- package/src/corePluginMetadata.ts +1 -5
- package/src/featureManifest.test.ts +2 -1
- package/src/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.test.tsx +1 -1
- package/src/{patterns/chat-list-item → features/chat/adapters/inbound}/ChatListItem.tsx +7 -7
- package/src/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.tsx +6 -6
- package/src/features/chat/public.ts +11 -0
- package/src/{patterns/collection-editor → features/collection-editor/adapters/inbound}/CollectionEditor.tsx +9 -9
- package/src/features/collection-editor/public.ts +5 -0
- package/src/features/form/field/meta.ts +1 -0
- package/src/features/form/switch/adapters/inbound/Switch.tsx +12 -0
- package/src/features/form/switch/public.ts +2 -0
- package/src/features/form/switch/switchMeta.ts +14 -0
- package/src/features/layout/public.test.ts +3 -11
- package/src/features/layout/public.ts +0 -2
- package/src/features/list/adapters/inbound/ListSection.tsx +1 -1
- package/src/features/missing-element/MissingElement.test.ts +2 -2
- package/src/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.test.ts +3 -3
- package/src/{patterns/reader → features/reader/adapters/inbound}/ReaderSurface.tsx +10 -10
- package/src/{patterns/reader/index.ts → features/reader/public.ts} +3 -3
- package/src/{patterns/scanner → features/scanner/adapters/inbound}/BarcodeScannerView.tsx +6 -6
- package/src/{patterns/scanner → features/scanner/adapters/inbound}/CameraPermissionView.tsx +6 -6
- package/src/{patterns/scanner → features/scanner/adapters/inbound}/ScanOverlay.tsx +6 -6
- package/src/features/scanner/public.ts +10 -0
- package/src/features/{layout → section}/adapters/inbound/ScreenSection.tsx +3 -3
- package/src/{patterns/section-header → features/section/adapters/inbound}/SectionHeader.tsx +5 -5
- package/src/features/section/public.ts +3 -0
- package/src/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.tsx +5 -1
- package/src/{patterns/selection → features/selection/adapters/inbound}/SelectionProvider.tsx +12 -2
- package/src/features/selection/public.ts +10 -0
- package/src/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.test.ts +1 -1
- package/src/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.ts +1 -1
- package/src/{patterns/timeline → features/timeline/adapters/inbound}/Timeline.tsx +9 -9
- package/src/features/timeline/public.ts +2 -0
- package/src/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeItem.tsx +6 -6
- package/src/{patterns/tree-view → features/tree-view/adapters/inbound}/TreeView.tsx +3 -3
- package/src/features/tree-view/public.ts +3 -0
- package/src/index.ts +58 -76
- package/src/interactionPolicy.test.ts +8 -12
- package/src/metadata/allowedChildren.ts +0 -3
- package/src/metadata/authoringMeta.test.ts +1 -1
- package/src/metadata/bindableComponentMeta.ts +20 -28
- package/src/metadata/componentMeta.test.ts +2 -3
- package/src/metadata/componentMeta.ts +16 -28
- package/src/metadata/radioGroupReachability.test.ts +0 -1
- package/src/metadata/themeRecipeMeta.test.ts +0 -1
- package/src/metadata/themeRecipeMeta.ts +0 -2
- package/src/registry.ts +11 -32
- package/src/showcaseCoverage.test.ts +1 -7
- package/src/theme/themeScopeStructure.test.ts +13 -21
- package/src/{patterns/message-bubble/types.ts → types/chat.ts} +30 -3
- package/src/{patterns/collection-editor/types.ts → types/collection-editor.ts} +2 -2
- package/src/types/layout.ts +0 -7
- package/src/{patterns/reader/types.ts → types/reader.ts} +1 -1
- package/src/{patterns/scanner/types.ts → types/scanner.ts} +2 -2
- package/src/types/section.ts +17 -0
- package/src/types/switch.ts +5 -0
- package/src/{patterns/timeline/types.ts → types/timeline.ts} +2 -2
- package/src/{patterns/tree-view/types.ts → types/tree-view.ts} +1 -1
- package/dist/features/layout/adapters/inbound/ScreenSection.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/ScreenSection.js.map +0 -1
- package/dist/features/layout/screenSectionMeta.d.ts.map +0 -1
- package/dist/features/layout/screenSectionMeta.js.map +0 -1
- package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +0 -1
- package/dist/patterns/chat-list-item/ChatListItem.js.map +0 -1
- package/dist/patterns/chat-list-item/index.d.ts +0 -3
- package/dist/patterns/chat-list-item/index.d.ts.map +0 -1
- package/dist/patterns/chat-list-item/index.js +0 -2
- package/dist/patterns/chat-list-item/index.js.map +0 -1
- package/dist/patterns/chat-list-item/meta.d.ts.map +0 -1
- package/dist/patterns/chat-list-item/meta.js.map +0 -1
- package/dist/patterns/chat-list-item/types.d.ts +0 -31
- package/dist/patterns/chat-list-item/types.d.ts.map +0 -1
- package/dist/patterns/chat-list-item/types.js +0 -2
- package/dist/patterns/chat-list-item/types.js.map +0 -1
- package/dist/patterns/collection-editor/CollectionEditor.d.ts.map +0 -1
- package/dist/patterns/collection-editor/CollectionEditor.js.map +0 -1
- package/dist/patterns/collection-editor/index.d.ts +0 -3
- package/dist/patterns/collection-editor/index.d.ts.map +0 -1
- package/dist/patterns/collection-editor/index.js +0 -3
- package/dist/patterns/collection-editor/index.js.map +0 -1
- package/dist/patterns/collection-editor/meta.d.ts.map +0 -1
- package/dist/patterns/collection-editor/types.d.ts.map +0 -1
- package/dist/patterns/collection-editor/types.js +0 -2
- package/dist/patterns/collection-editor/types.js.map +0 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts +0 -9
- package/dist/patterns/confirm-dialog/ConfirmDialog.d.ts.map +0 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +0 -24
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +0 -1
- package/dist/patterns/confirm-dialog/index.d.ts +0 -3
- package/dist/patterns/confirm-dialog/index.d.ts.map +0 -1
- package/dist/patterns/confirm-dialog/index.js +0 -2
- package/dist/patterns/confirm-dialog/index.js.map +0 -1
- package/dist/patterns/confirm-dialog/meta.d.ts +0 -9
- package/dist/patterns/confirm-dialog/meta.d.ts.map +0 -1
- package/dist/patterns/confirm-dialog/meta.js +0 -9
- package/dist/patterns/confirm-dialog/meta.js.map +0 -1
- package/dist/patterns/confirm-dialog/types.d.ts +0 -18
- package/dist/patterns/confirm-dialog/types.d.ts.map +0 -1
- package/dist/patterns/confirm-dialog/types.js +0 -2
- package/dist/patterns/confirm-dialog/types.js.map +0 -1
- package/dist/patterns/filter-bar/FilterBar.d.ts +0 -9
- package/dist/patterns/filter-bar/FilterBar.d.ts.map +0 -1
- package/dist/patterns/filter-bar/FilterBar.js +0 -17
- package/dist/patterns/filter-bar/FilterBar.js.map +0 -1
- package/dist/patterns/filter-bar/index.d.ts +0 -3
- package/dist/patterns/filter-bar/index.d.ts.map +0 -1
- package/dist/patterns/filter-bar/index.js +0 -2
- package/dist/patterns/filter-bar/index.js.map +0 -1
- package/dist/patterns/filter-bar/meta.d.ts +0 -9
- package/dist/patterns/filter-bar/meta.d.ts.map +0 -1
- package/dist/patterns/filter-bar/meta.js +0 -9
- package/dist/patterns/filter-bar/meta.js.map +0 -1
- package/dist/patterns/filter-bar/types.d.ts +0 -9
- package/dist/patterns/filter-bar/types.d.ts.map +0 -1
- package/dist/patterns/filter-bar/types.js +0 -2
- package/dist/patterns/filter-bar/types.js.map +0 -1
- package/dist/patterns/inspector-field/InspectorField.d.ts +0 -9
- package/dist/patterns/inspector-field/InspectorField.d.ts.map +0 -1
- package/dist/patterns/inspector-field/InspectorField.js +0 -19
- package/dist/patterns/inspector-field/InspectorField.js.map +0 -1
- package/dist/patterns/inspector-field/index.d.ts +0 -3
- package/dist/patterns/inspector-field/index.d.ts.map +0 -1
- package/dist/patterns/inspector-field/index.js +0 -3
- package/dist/patterns/inspector-field/index.js.map +0 -1
- package/dist/patterns/inspector-field/meta.d.ts +0 -9
- package/dist/patterns/inspector-field/meta.d.ts.map +0 -1
- package/dist/patterns/inspector-field/meta.js +0 -9
- package/dist/patterns/inspector-field/meta.js.map +0 -1
- package/dist/patterns/inspector-field/types.d.ts +0 -15
- package/dist/patterns/inspector-field/types.d.ts.map +0 -1
- package/dist/patterns/inspector-field/types.js +0 -2
- package/dist/patterns/inspector-field/types.js.map +0 -1
- package/dist/patterns/message-bubble/MessageBubble.d.ts.map +0 -1
- package/dist/patterns/message-bubble/MessageBubble.js.map +0 -1
- package/dist/patterns/message-bubble/index.d.ts +0 -3
- package/dist/patterns/message-bubble/index.d.ts.map +0 -1
- package/dist/patterns/message-bubble/index.js +0 -2
- package/dist/patterns/message-bubble/index.js.map +0 -1
- package/dist/patterns/message-bubble/meta.d.ts.map +0 -1
- package/dist/patterns/message-bubble/meta.js.map +0 -1
- package/dist/patterns/message-bubble/types.d.ts.map +0 -1
- package/dist/patterns/message-bubble/types.js +0 -2
- package/dist/patterns/message-bubble/types.js.map +0 -1
- package/dist/patterns/notice/Notice.d.ts +0 -9
- package/dist/patterns/notice/Notice.d.ts.map +0 -1
- package/dist/patterns/notice/Notice.js +0 -20
- package/dist/patterns/notice/Notice.js.map +0 -1
- package/dist/patterns/notice/index.d.ts +0 -3
- package/dist/patterns/notice/index.d.ts.map +0 -1
- package/dist/patterns/notice/index.js +0 -2
- package/dist/patterns/notice/index.js.map +0 -1
- package/dist/patterns/notice/meta.d.ts +0 -34
- package/dist/patterns/notice/meta.d.ts.map +0 -1
- package/dist/patterns/notice/meta.js +0 -35
- package/dist/patterns/notice/meta.js.map +0 -1
- package/dist/patterns/notice/types.d.ts +0 -11
- package/dist/patterns/notice/types.d.ts.map +0 -1
- package/dist/patterns/notice/types.js +0 -2
- package/dist/patterns/notice/types.js.map +0 -1
- package/dist/patterns/panel/Panel.d.ts +0 -7
- package/dist/patterns/panel/Panel.d.ts.map +0 -1
- package/dist/patterns/panel/Panel.js +0 -15
- package/dist/patterns/panel/Panel.js.map +0 -1
- package/dist/patterns/panel/index.d.ts +0 -3
- package/dist/patterns/panel/index.d.ts.map +0 -1
- package/dist/patterns/panel/index.js +0 -2
- package/dist/patterns/panel/index.js.map +0 -1
- package/dist/patterns/panel/meta.d.ts +0 -80
- package/dist/patterns/panel/meta.d.ts.map +0 -1
- package/dist/patterns/panel/meta.js +0 -49
- package/dist/patterns/panel/meta.js.map +0 -1
- package/dist/patterns/panel/themeRecipeMeta.d.ts +0 -31
- package/dist/patterns/panel/themeRecipeMeta.d.ts.map +0 -1
- package/dist/patterns/panel/themeRecipeMeta.js +0 -31
- package/dist/patterns/panel/themeRecipeMeta.js.map +0 -1
- package/dist/patterns/panel/types.d.ts +0 -16
- package/dist/patterns/panel/types.d.ts.map +0 -1
- package/dist/patterns/panel/types.js +0 -2
- package/dist/patterns/panel/types.js.map +0 -1
- package/dist/patterns/reader/ReaderSurface.d.ts.map +0 -1
- package/dist/patterns/reader/ReaderSurface.js.map +0 -1
- package/dist/patterns/reader/index.d.ts +0 -4
- package/dist/patterns/reader/index.d.ts.map +0 -1
- package/dist/patterns/reader/index.js +0 -3
- package/dist/patterns/reader/index.js.map +0 -1
- package/dist/patterns/reader/resolveReaderProgress.d.ts.map +0 -1
- package/dist/patterns/reader/resolveReaderProgress.js.map +0 -1
- package/dist/patterns/reader/types.d.ts.map +0 -1
- package/dist/patterns/reader/types.js +0 -2
- package/dist/patterns/reader/types.js.map +0 -1
- package/dist/patterns/scanner/BarcodeScannerView.d.ts.map +0 -1
- package/dist/patterns/scanner/BarcodeScannerView.js.map +0 -1
- package/dist/patterns/scanner/CameraPermissionView.d.ts.map +0 -1
- package/dist/patterns/scanner/CameraPermissionView.js.map +0 -1
- package/dist/patterns/scanner/ScanOverlay.d.ts.map +0 -1
- package/dist/patterns/scanner/ScanOverlay.js.map +0 -1
- package/dist/patterns/scanner/index.d.ts +0 -5
- package/dist/patterns/scanner/index.d.ts.map +0 -1
- package/dist/patterns/scanner/index.js +0 -4
- package/dist/patterns/scanner/index.js.map +0 -1
- package/dist/patterns/scanner/types.d.ts.map +0 -1
- package/dist/patterns/scanner/types.js +0 -2
- package/dist/patterns/scanner/types.js.map +0 -1
- package/dist/patterns/section-header/SectionHeader.d.ts.map +0 -1
- package/dist/patterns/section-header/SectionHeader.js.map +0 -1
- package/dist/patterns/section-header/index.d.ts +0 -3
- package/dist/patterns/section-header/index.d.ts.map +0 -1
- package/dist/patterns/section-header/index.js +0 -2
- package/dist/patterns/section-header/index.js.map +0 -1
- package/dist/patterns/section-header/meta.d.ts.map +0 -1
- package/dist/patterns/section-header/meta.js.map +0 -1
- package/dist/patterns/section-header/types.d.ts +0 -9
- package/dist/patterns/section-header/types.d.ts.map +0 -1
- package/dist/patterns/section-header/types.js +0 -2
- package/dist/patterns/section-header/types.js.map +0 -1
- package/dist/patterns/selection/SelectableItem.d.ts.map +0 -1
- package/dist/patterns/selection/SelectableItem.js.map +0 -1
- package/dist/patterns/selection/SelectionProvider.d.ts.map +0 -1
- package/dist/patterns/selection/SelectionProvider.js.map +0 -1
- package/dist/patterns/selection/index.d.ts +0 -4
- package/dist/patterns/selection/index.d.ts.map +0 -1
- package/dist/patterns/selection/index.js +0 -3
- package/dist/patterns/selection/index.js.map +0 -1
- package/dist/patterns/selection/resolveSelectionNextIds.d.ts.map +0 -1
- package/dist/patterns/selection/resolveSelectionNextIds.js.map +0 -1
- package/dist/patterns/selection/types.d.ts.map +0 -1
- package/dist/patterns/selection/types.js +0 -2
- package/dist/patterns/selection/types.js.map +0 -1
- package/dist/patterns/switch-field/SwitchField.d.ts +0 -8
- package/dist/patterns/switch-field/SwitchField.d.ts.map +0 -1
- package/dist/patterns/switch-field/SwitchField.js +0 -13
- package/dist/patterns/switch-field/SwitchField.js.map +0 -1
- package/dist/patterns/switch-field/index.d.ts +0 -3
- package/dist/patterns/switch-field/index.d.ts.map +0 -1
- package/dist/patterns/switch-field/index.js +0 -3
- package/dist/patterns/switch-field/index.js.map +0 -1
- package/dist/patterns/switch-field/meta.d.ts +0 -9
- package/dist/patterns/switch-field/meta.d.ts.map +0 -1
- package/dist/patterns/switch-field/meta.js +0 -9
- package/dist/patterns/switch-field/meta.js.map +0 -1
- package/dist/patterns/switch-field/types.d.ts +0 -10
- package/dist/patterns/switch-field/types.d.ts.map +0 -1
- package/dist/patterns/switch-field/types.js +0 -2
- package/dist/patterns/switch-field/types.js.map +0 -1
- package/dist/patterns/theme-composer/ThemeComposer.d.ts +0 -9
- package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +0 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +0 -217
- package/dist/patterns/theme-composer/ThemeComposer.js.map +0 -1
- package/dist/patterns/theme-composer/index.d.ts +0 -3
- package/dist/patterns/theme-composer/index.d.ts.map +0 -1
- package/dist/patterns/theme-composer/index.js +0 -2
- package/dist/patterns/theme-composer/index.js.map +0 -1
- package/dist/patterns/theme-composer/meta.d.ts +0 -9
- package/dist/patterns/theme-composer/meta.d.ts.map +0 -1
- package/dist/patterns/theme-composer/meta.js +0 -9
- package/dist/patterns/theme-composer/meta.js.map +0 -1
- package/dist/patterns/theme-composer/types.d.ts +0 -12
- package/dist/patterns/theme-composer/types.d.ts.map +0 -1
- package/dist/patterns/theme-composer/types.js +0 -2
- package/dist/patterns/theme-composer/types.js.map +0 -1
- package/dist/patterns/timeline/Timeline.d.ts.map +0 -1
- package/dist/patterns/timeline/Timeline.js.map +0 -1
- package/dist/patterns/timeline/index.d.ts +0 -3
- package/dist/patterns/timeline/index.d.ts.map +0 -1
- package/dist/patterns/timeline/index.js +0 -2
- package/dist/patterns/timeline/index.js.map +0 -1
- package/dist/patterns/timeline/meta.d.ts.map +0 -1
- package/dist/patterns/timeline/types.d.ts.map +0 -1
- package/dist/patterns/timeline/types.js +0 -2
- package/dist/patterns/timeline/types.js.map +0 -1
- package/dist/patterns/tree-view/TreeItem.d.ts.map +0 -1
- package/dist/patterns/tree-view/TreeItem.js.map +0 -1
- package/dist/patterns/tree-view/TreeView.d.ts.map +0 -1
- package/dist/patterns/tree-view/TreeView.js.map +0 -1
- package/dist/patterns/tree-view/index.d.ts +0 -4
- package/dist/patterns/tree-view/index.d.ts.map +0 -1
- package/dist/patterns/tree-view/index.js +0 -4
- package/dist/patterns/tree-view/index.js.map +0 -1
- package/dist/patterns/tree-view/types.d.ts.map +0 -1
- package/dist/patterns/tree-view/types.js +0 -2
- package/dist/patterns/tree-view/types.js.map +0 -1
- package/src/patterns/chat-list-item/index.ts +0 -2
- package/src/patterns/chat-list-item/types.ts +0 -33
- package/src/patterns/collection-editor/index.ts +0 -2
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +0 -69
- package/src/patterns/confirm-dialog/index.ts +0 -2
- package/src/patterns/confirm-dialog/meta.ts +0 -10
- package/src/patterns/confirm-dialog/types.ts +0 -19
- package/src/patterns/filter-bar/FilterBar.tsx +0 -31
- package/src/patterns/filter-bar/index.ts +0 -2
- package/src/patterns/filter-bar/meta.ts +0 -10
- package/src/patterns/filter-bar/types.ts +0 -10
- package/src/patterns/inspector-field/InspectorField.tsx +0 -32
- package/src/patterns/inspector-field/index.ts +0 -2
- package/src/patterns/inspector-field/meta.ts +0 -10
- package/src/patterns/inspector-field/types.ts +0 -16
- package/src/patterns/message-bubble/index.ts +0 -8
- package/src/patterns/notice/Notice.tsx +0 -41
- package/src/patterns/notice/index.ts +0 -2
- package/src/patterns/notice/meta.ts +0 -36
- package/src/patterns/notice/types.ts +0 -12
- package/src/patterns/panel/Panel.tsx +0 -26
- package/src/patterns/panel/index.ts +0 -2
- package/src/patterns/panel/meta.ts +0 -51
- package/src/patterns/panel/themeRecipeMeta.ts +0 -32
- package/src/patterns/panel/types.ts +0 -17
- package/src/patterns/scanner/index.ts +0 -10
- package/src/patterns/section-header/index.ts +0 -2
- package/src/patterns/section-header/types.ts +0 -10
- package/src/patterns/selection/index.ts +0 -10
- package/src/patterns/switch-field/SwitchField.tsx +0 -42
- package/src/patterns/switch-field/index.ts +0 -2
- package/src/patterns/switch-field/meta.ts +0 -10
- package/src/patterns/switch-field/types.ts +0 -11
- package/src/patterns/theme-composer/ThemeComposer.test.ts +0 -212
- package/src/patterns/theme-composer/ThemeComposer.tsx +0 -321
- package/src/patterns/theme-composer/index.ts +0 -2
- package/src/patterns/theme-composer/meta.ts +0 -10
- package/src/patterns/theme-composer/types.ts +0 -13
- package/src/patterns/timeline/index.ts +0 -2
- package/src/patterns/tree-view/index.ts +0 -3
- /package/dist/{patterns → features}/collection-editor/meta.d.ts +0 -0
- /package/dist/{patterns → features}/collection-editor/meta.js +0 -0
- /package/dist/{patterns → features}/reader/meta.js +0 -0
- /package/dist/{patterns/reader → features/reader/utils}/resolveReaderProgress.d.ts +0 -0
- /package/dist/{patterns/reader → features/reader/utils}/resolveReaderProgress.js +0 -0
- /package/dist/{patterns → features}/scanner/meta.js +0 -0
- /package/dist/features/{layout → section}/screenSectionMeta.js +0 -0
- /package/dist/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.js +0 -0
- /package/dist/{patterns → features}/selection/meta.d.ts +0 -0
- /package/dist/{patterns → features}/selection/meta.js +0 -0
- /package/dist/{patterns/selection → features/selection/utils}/resolveSelectionNextIds.js +0 -0
- /package/dist/{patterns → features}/timeline/meta.d.ts +0 -0
- /package/dist/{patterns → features}/timeline/meta.js +0 -0
- /package/dist/{patterns → features}/tree-view/meta.d.ts +0 -0
- /package/dist/{patterns → features}/tree-view/meta.js +0 -0
- /package/src/{patterns/chat-list-item/meta.ts → features/chat/chatListItemMeta.ts} +0 -0
- /package/src/{patterns/message-bubble/meta.ts → features/chat/messageBubbleMeta.ts} +0 -0
- /package/src/{patterns → features}/collection-editor/meta.ts +0 -0
- /package/src/{patterns → features}/reader/meta.ts +0 -0
- /package/src/{patterns/reader → features/reader/utils}/resolveReaderProgress.test.ts +0 -0
- /package/src/{patterns/reader → features/reader/utils}/resolveReaderProgress.ts +0 -0
- /package/src/{patterns → features}/scanner/meta.ts +0 -0
- /package/src/features/{layout → section}/screenSectionMeta.ts +0 -0
- /package/src/{patterns/section-header/meta.ts → features/section/sectionHeaderMeta.ts} +0 -0
- /package/src/{patterns → features}/selection/meta.ts +0 -0
- /package/src/{patterns → features}/timeline/meta.ts +0 -0
- /package/src/{patterns → features}/tree-view/meta.ts +0 -0
- /package/src/{patterns/selection/types.ts → types/selection.ts} +0 -0
package/dist/registry.js
CHANGED
|
@@ -15,8 +15,10 @@ import { MediaCard } from './features/card/public';
|
|
|
15
15
|
import { MetricCard } from './features/card/public';
|
|
16
16
|
import { PostCard } from './features/card/public';
|
|
17
17
|
import { ProductCard } from './features/card/public';
|
|
18
|
+
import { ChatListItem, MessageBubble } from './features/chat/public';
|
|
18
19
|
import { Chip } from './features/chip/public';
|
|
19
20
|
import { ChipGroup } from './features/chip/public';
|
|
21
|
+
import { CollectionEditor } from './features/collection-editor/public';
|
|
20
22
|
import { ContentRail } from './features/content-rail/public';
|
|
21
23
|
import { DataTable } from './features/data-table/public';
|
|
22
24
|
import { DatePicker } from './features/date-picker/public';
|
|
@@ -27,13 +29,14 @@ import { Field, Form, FormActions, FormError } from './features/form/public';
|
|
|
27
29
|
import { Radio, RadioGroup } from './features/form/radio/public';
|
|
28
30
|
import { SearchInput } from './features/form/search-input/public';
|
|
29
31
|
import { Select } from './features/form/select/public';
|
|
32
|
+
import { Switch } from './features/form/switch/public';
|
|
30
33
|
import { TextInput } from './features/form/text-input/public';
|
|
31
34
|
import { Gradient } from './features/gradient/public';
|
|
32
35
|
import { Hero } from './features/hero/public';
|
|
33
36
|
import { Icon } from './features/icon/public';
|
|
34
37
|
import { Image } from './features/image/public';
|
|
35
38
|
import { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';
|
|
36
|
-
import { AppShell, Divider, Grid, Screen,
|
|
39
|
+
import { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';
|
|
37
40
|
import { FlatList, SectionList } from './features/list/public';
|
|
38
41
|
import { List, ListItem, ListSection } from './features/list/public';
|
|
39
42
|
import { MissingElement } from './features/missing-element/public';
|
|
@@ -42,31 +45,21 @@ import { PaletteItem } from './features/palette-item/public';
|
|
|
42
45
|
import { PopoverMenu } from './features/popover-menu/public';
|
|
43
46
|
import { Progress, ProgressRing } from './features/progress/public';
|
|
44
47
|
import { Rating } from './features/rating/public';
|
|
48
|
+
import { ReaderSurface } from './features/reader/public';
|
|
49
|
+
import { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';
|
|
50
|
+
import { ScreenSection, SectionHeader } from './features/section/public';
|
|
51
|
+
import { SelectableItem } from './features/selection/public';
|
|
45
52
|
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';
|
|
46
53
|
import { Surface } from './features/surface/public';
|
|
47
54
|
import { Tab, TabList, TabPanel, Tabs } from './features/tabs/public';
|
|
48
55
|
import { TimePicker } from './features/time-picker/public';
|
|
56
|
+
import { Timeline } from './features/timeline/public';
|
|
49
57
|
import { Toast } from './features/toast/public';
|
|
50
58
|
import { Toolbar } from './features/toolbar/public';
|
|
59
|
+
import { TreeItem, TreeView } from './features/tree-view/public';
|
|
51
60
|
import { Heading } from './features/typography/public';
|
|
52
61
|
import { Text } from './features/typography/public';
|
|
53
62
|
import { Uploader } from './features/uploader/public';
|
|
54
|
-
import { ChatListItem } from './patterns/chat-list-item';
|
|
55
|
-
import { CollectionEditor } from './patterns/collection-editor';
|
|
56
|
-
import { ConfirmDialog } from './patterns/confirm-dialog';
|
|
57
|
-
import { FilterBar } from './patterns/filter-bar';
|
|
58
|
-
import { InspectorField } from './patterns/inspector-field';
|
|
59
|
-
import { MessageBubble } from './patterns/message-bubble';
|
|
60
|
-
import { Notice } from './patterns/notice';
|
|
61
|
-
import { Panel } from './patterns/panel';
|
|
62
|
-
import { ReaderSurface } from './patterns/reader';
|
|
63
|
-
import { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './patterns/scanner';
|
|
64
|
-
import { SectionHeader } from './patterns/section-header';
|
|
65
|
-
import { SelectableItem } from './patterns/selection';
|
|
66
|
-
import { SwitchField } from './patterns/switch-field';
|
|
67
|
-
import { ThemeComposer } from './patterns/theme-composer';
|
|
68
|
-
import { Timeline } from './patterns/timeline';
|
|
69
|
-
import { TreeItem, TreeView } from './patterns/tree-view';
|
|
70
63
|
import { ThemeModeToggle } from './theme/ThemeModeToggle';
|
|
71
64
|
const _ZORA_COMPONENT_REGISTRY = {
|
|
72
65
|
Accordion,
|
|
@@ -109,6 +102,7 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
109
102
|
Rating,
|
|
110
103
|
SearchInput,
|
|
111
104
|
Select,
|
|
105
|
+
Switch,
|
|
112
106
|
Skeleton,
|
|
113
107
|
SkeletonCard,
|
|
114
108
|
SkeletonList,
|
|
@@ -142,19 +136,14 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
142
136
|
SignUpForm,
|
|
143
137
|
ChatListItem,
|
|
144
138
|
CollectionEditor,
|
|
145
|
-
ConfirmDialog,
|
|
146
139
|
ContentRail,
|
|
147
140
|
EmptyState,
|
|
148
|
-
FilterBar,
|
|
149
141
|
Hero,
|
|
150
|
-
InspectorField,
|
|
151
142
|
List,
|
|
152
143
|
ListItem,
|
|
153
144
|
ListSection,
|
|
154
145
|
MessageBubble,
|
|
155
146
|
MissingElement,
|
|
156
|
-
Notice,
|
|
157
|
-
Panel,
|
|
158
147
|
PostCard,
|
|
159
148
|
ProductCard,
|
|
160
149
|
ReaderSurface,
|
|
@@ -163,8 +152,6 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
163
152
|
ScanOverlay,
|
|
164
153
|
SectionHeader,
|
|
165
154
|
SelectableItem,
|
|
166
|
-
SwitchField,
|
|
167
|
-
ThemeComposer,
|
|
168
155
|
PaletteItem,
|
|
169
156
|
Timeline,
|
|
170
157
|
TreeItem,
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,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IACX,IAAI;IACJ,QAAQ;IACR,aAAa;IACb,IAAI;IACJ,SAAS;IACT,SAAS;IACT,UAAU;IACV,MAAM;IACN,IAAI;IACJ,WAAW;IACX,SAAS;IACT,KAAK;IACL,QAAQ;IACR,OAAO;IACP,IAAI;IACJ,UAAU;IACV,KAAK;IACL,oBAAoB;IACpB,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,KAAK;IACL,UAAU;IACV,MAAM;IACN,WAAW;IACX,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,GAAG;IACH,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,IAAI;IACJ,UAAU;IACV,KAAK;IACL,OAAO;IACP,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,WAAW;IACX,UAAU;IACV,IAAI;IACJ,eAAe;IACf,OAAO;IACP,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,UAAU;IACV,SAAS;IACT,IAAI;IACJ,cAAc;IACd,IAAI;IACJ,QAAQ;IACR,WAAW;IACX,aAAa;IACb,cAAc;IACd,MAAM;IACN,KAAK;IACL,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,WAAW;IACX,aAAa;IACb,cAAc;IACd,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,QAAQ;CACgC,CAAC;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAA0B,wBAAwB,CAAC","sourcesContent":["import type { InteractionPolicyProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport { Accordion, AccordionItem } from './features/accordion/public';\nimport { ActivityIndicator } from './features/activity-indicator/public';\nimport { AppBar } from './features/app-bar/public';\nimport {\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nimport { Avatar } from './features/avatar/public';\nimport { AvatarGroup } from './features/avatar/public';\nimport { Badge } from './features/badge/public';\nimport { BottomSheet } from './features/bottom-sheet/public';\nimport { Breadcrumbs } from './features/breadcrumbs/public';\nimport { Button } from './features/button/public';\nimport { ButtonGroup } from './features/button/public';\nimport { IconButton } from './features/button/public';\nimport { Card } from './features/card/public';\nimport { MediaCard } from './features/card/public';\nimport { MetricCard } from './features/card/public';\nimport { PostCard } from './features/card/public';\nimport { ProductCard } from './features/card/public';\nimport { Chip } from './features/chip/public';\nimport { ChipGroup } from './features/chip/public';\nimport { ContentRail } from './features/content-rail/public';\nimport { DataTable } from './features/data-table/public';\nimport { DatePicker } from './features/date-picker/public';\nimport { Dialog } from './features/dialog/public';\nimport { EmptyState } from './features/empty-state/public';\nimport { Checkbox, CheckboxGroup } from './features/form/checkbox/public';\nimport { Field, Form, FormActions, FormError } from './features/form/public';\nimport { Radio, RadioGroup } from './features/form/radio/public';\nimport { SearchInput } from './features/form/search-input/public';\nimport { Select } from './features/form/select/public';\nimport { TextInput } from './features/form/text-input/public';\nimport { Gradient } from './features/gradient/public';\nimport { Hero } from './features/hero/public';\nimport { Icon } from './features/icon/public';\nimport { Image } from './features/image/public';\nimport { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';\nimport {\n AppShell,\n Divider,\n Grid,\n Screen,\n ScreenSection,\n ScrollView,\n View,\n} from './features/layout/public';\nimport { FlatList, SectionList } from './features/list/public';\nimport { List, ListItem, ListSection } from './features/list/public';\nimport { MissingElement } from './features/missing-element/public';\nimport { Pagination } from './features/pagination/public';\nimport { PaletteItem } from './features/palette-item/public';\nimport { PopoverMenu } from './features/popover-menu/public';\nimport { Progress, ProgressRing } from './features/progress/public';\nimport { Rating } from './features/rating/public';\nimport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';\nimport { Surface } from './features/surface/public';\nimport { Tab, TabList, TabPanel, Tabs } from './features/tabs/public';\nimport { TimePicker } from './features/time-picker/public';\nimport { Toast } from './features/toast/public';\nimport { Toolbar } from './features/toolbar/public';\nimport { Heading } from './features/typography/public';\nimport { Text } from './features/typography/public';\nimport { Uploader } from './features/uploader/public';\nimport { ChatListItem } from './patterns/chat-list-item';\nimport { CollectionEditor } from './patterns/collection-editor';\nimport { ConfirmDialog } from './patterns/confirm-dialog';\nimport { FilterBar } from './patterns/filter-bar';\nimport { InspectorField } from './patterns/inspector-field';\nimport { MessageBubble } from './patterns/message-bubble';\nimport { Notice } from './patterns/notice';\nimport { Panel } from './patterns/panel';\nimport { ReaderSurface } from './patterns/reader';\nimport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './patterns/scanner';\nimport { SectionHeader } from './patterns/section-header';\nimport { SelectableItem } from './patterns/selection';\nimport { SwitchField } from './patterns/switch-field';\nimport { ThemeComposer } from './patterns/theme-composer';\nimport { Timeline } from './patterns/timeline';\nimport { TreeItem, TreeView } from './patterns/tree-view';\nimport { ThemeModeToggle } from './theme/ThemeModeToggle';\n\nexport type ZoraComponentRegistry = Readonly<Record<string, React.ElementType>>;\n\ntype ComponentPropsFor<K extends keyof typeof _ZORA_COMPONENT_REGISTRY> = React.ComponentProps<\n (typeof _ZORA_COMPONENT_REGISTRY)[K]\n>;\n\ntype AcceptsSurfaceInteractionPolicyProps<P> = 'interactionPolicy' extends keyof P\n ? InteractionPolicyProps extends Pick<P, 'interactionPolicy'>\n ? Pick<P, 'interactionPolicy'> extends InteractionPolicyProps\n ? true\n : false\n : false\n : false;\n\ntype RegistryInteractionPolicyContract = {\n [K in keyof typeof _ZORA_COMPONENT_REGISTRY]: AcceptsSurfaceInteractionPolicyProps<\n ComponentPropsFor<K>\n >;\n};\n\ntype _AssertTrue<T extends true> = T;\ntype _RegistryInteractionPolicyCheck = _AssertTrue<\n RegistryInteractionPolicyContract[keyof typeof _ZORA_COMPONENT_REGISTRY]\n>;\n\nconst _ZORA_COMPONENT_REGISTRY = {\n Accordion,\n AccordionItem,\n ActivityIndicator,\n AppBar,\n Avatar,\n AvatarGroup,\n Badge,\n Breadcrumbs,\n Button,\n ButtonGroup,\n Card,\n Checkbox,\n CheckboxGroup,\n Chip,\n ChipGroup,\n DataTable,\n DatePicker,\n Dialog,\n Form,\n FormActions,\n FormError,\n Field,\n Gradient,\n Heading,\n Icon,\n IconButton,\n Image,\n KeyboardAvoidingView,\n TextInput,\n MediaCard,\n MetricCard,\n Pagination,\n PopoverMenu,\n Progress,\n ProgressRing,\n Radio,\n RadioGroup,\n Rating,\n SearchInput,\n Select,\n Skeleton,\n SkeletonCard,\n SkeletonList,\n SkeletonText,\n Tab,\n TabList,\n TabPanel,\n Tabs,\n Text,\n TimePicker,\n Toast,\n Toolbar,\n Uploader,\n BottomSheet,\n FlatList,\n SectionList,\n ScrollView,\n View,\n ThemeModeToggle,\n Divider,\n Grid,\n Surface,\n AppShell,\n Screen,\n ScreenSection,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n ChatListItem,\n CollectionEditor,\n ConfirmDialog,\n ContentRail,\n EmptyState,\n FilterBar,\n Hero,\n InspectorField,\n List,\n ListItem,\n ListSection,\n MessageBubble,\n MissingElement,\n Notice,\n Panel,\n PostCard,\n ProductCard,\n ReaderSurface,\n BarcodeScannerView,\n CameraPermissionView,\n ScanOverlay,\n SectionHeader,\n SelectableItem,\n SwitchField,\n ThemeComposer,\n PaletteItem,\n Timeline,\n TreeItem,\n TreeView,\n} as const satisfies ZoraComponentRegistry;\n\nexport const ZORA_COMPONENT_REGISTRY: ZoraComponentRegistry = _ZORA_COMPONENT_REGISTRY;\n"]}
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAA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IACN,WAAW;IACX,IAAI;IACJ,QAAQ;IACR,aAAa;IACb,IAAI;IACJ,SAAS;IACT,SAAS;IACT,UAAU;IACV,MAAM;IACN,IAAI;IACJ,WAAW;IACX,SAAS;IACT,KAAK;IACL,QAAQ;IACR,OAAO;IACP,IAAI;IACJ,UAAU;IACV,KAAK;IACL,oBAAoB;IACpB,SAAS;IACT,SAAS;IACT,UAAU;IACV,UAAU;IACV,WAAW;IACX,QAAQ;IACR,YAAY;IACZ,KAAK;IACL,UAAU;IACV,MAAM;IACN,WAAW;IACX,MAAM;IACN,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,GAAG;IACH,OAAO;IACP,QAAQ;IACR,IAAI;IACJ,IAAI;IACJ,UAAU;IACV,KAAK;IACL,OAAO;IACP,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,WAAW;IACX,UAAU;IACV,IAAI;IACJ,eAAe;IACf,OAAO;IACP,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,WAAW;IACX,UAAU;IACV,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,WAAW;IACX,aAAa;IACb,cAAc;IACd,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,oBAAoB;IACpB,WAAW;IACX,aAAa;IACb,cAAc;IACd,WAAW;IACX,QAAQ;IACR,QAAQ;IACR,QAAQ;CACgC,CAAC;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAA0B,wBAAwB,CAAC","sourcesContent":["import type { InteractionPolicyProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport { Accordion, AccordionItem } from './features/accordion/public';\nimport { ActivityIndicator } from './features/activity-indicator/public';\nimport { AppBar } from './features/app-bar/public';\nimport {\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nimport { Avatar } from './features/avatar/public';\nimport { AvatarGroup } from './features/avatar/public';\nimport { Badge } from './features/badge/public';\nimport { BottomSheet } from './features/bottom-sheet/public';\nimport { Breadcrumbs } from './features/breadcrumbs/public';\nimport { Button } from './features/button/public';\nimport { ButtonGroup } from './features/button/public';\nimport { IconButton } from './features/button/public';\nimport { Card } from './features/card/public';\nimport { MediaCard } from './features/card/public';\nimport { MetricCard } from './features/card/public';\nimport { PostCard } from './features/card/public';\nimport { ProductCard } from './features/card/public';\nimport { ChatListItem, MessageBubble } from './features/chat/public';\nimport { Chip } from './features/chip/public';\nimport { ChipGroup } from './features/chip/public';\nimport { CollectionEditor } from './features/collection-editor/public';\nimport { ContentRail } from './features/content-rail/public';\nimport { DataTable } from './features/data-table/public';\nimport { DatePicker } from './features/date-picker/public';\nimport { Dialog } from './features/dialog/public';\nimport { EmptyState } from './features/empty-state/public';\nimport { Checkbox, CheckboxGroup } from './features/form/checkbox/public';\nimport { Field, Form, FormActions, FormError } from './features/form/public';\nimport { Radio, RadioGroup } from './features/form/radio/public';\nimport { SearchInput } from './features/form/search-input/public';\nimport { Select } from './features/form/select/public';\nimport { Switch } from './features/form/switch/public';\nimport { TextInput } from './features/form/text-input/public';\nimport { Gradient } from './features/gradient/public';\nimport { Hero } from './features/hero/public';\nimport { Icon } from './features/icon/public';\nimport { Image } from './features/image/public';\nimport { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';\nimport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nimport { FlatList, SectionList } from './features/list/public';\nimport { List, ListItem, ListSection } from './features/list/public';\nimport { MissingElement } from './features/missing-element/public';\nimport { Pagination } from './features/pagination/public';\nimport { PaletteItem } from './features/palette-item/public';\nimport { PopoverMenu } from './features/popover-menu/public';\nimport { Progress, ProgressRing } from './features/progress/public';\nimport { Rating } from './features/rating/public';\nimport { ReaderSurface } from './features/reader/public';\nimport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nimport { ScreenSection, SectionHeader } from './features/section/public';\nimport { SelectableItem } from './features/selection/public';\nimport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';\nimport { Surface } from './features/surface/public';\nimport { Tab, TabList, TabPanel, Tabs } from './features/tabs/public';\nimport { TimePicker } from './features/time-picker/public';\nimport { Timeline } from './features/timeline/public';\nimport { Toast } from './features/toast/public';\nimport { Toolbar } from './features/toolbar/public';\nimport { TreeItem, TreeView } from './features/tree-view/public';\nimport { Heading } from './features/typography/public';\nimport { Text } from './features/typography/public';\nimport { Uploader } from './features/uploader/public';\nimport { ThemeModeToggle } from './theme/ThemeModeToggle';\n\nexport type ZoraComponentRegistry = Readonly<Record<string, React.ElementType>>;\n\ntype ComponentPropsFor<K extends keyof typeof _ZORA_COMPONENT_REGISTRY> = React.ComponentProps<\n (typeof _ZORA_COMPONENT_REGISTRY)[K]\n>;\n\ntype AcceptsSurfaceInteractionPolicyProps<P> = 'interactionPolicy' extends keyof P\n ? InteractionPolicyProps extends Pick<P, 'interactionPolicy'>\n ? Pick<P, 'interactionPolicy'> extends InteractionPolicyProps\n ? true\n : false\n : false\n : false;\n\ntype RegistryInteractionPolicyContract = {\n [K in keyof typeof _ZORA_COMPONENT_REGISTRY]: AcceptsSurfaceInteractionPolicyProps<\n ComponentPropsFor<K>\n >;\n};\n\ntype _AssertTrue<T extends true> = T;\ntype _RegistryInteractionPolicyCheck = _AssertTrue<\n RegistryInteractionPolicyContract[keyof typeof _ZORA_COMPONENT_REGISTRY]\n>;\n\nconst _ZORA_COMPONENT_REGISTRY = {\n Accordion,\n AccordionItem,\n ActivityIndicator,\n AppBar,\n Avatar,\n AvatarGroup,\n Badge,\n Breadcrumbs,\n Button,\n ButtonGroup,\n Card,\n Checkbox,\n CheckboxGroup,\n Chip,\n ChipGroup,\n DataTable,\n DatePicker,\n Dialog,\n Form,\n FormActions,\n FormError,\n Field,\n Gradient,\n Heading,\n Icon,\n IconButton,\n Image,\n KeyboardAvoidingView,\n TextInput,\n MediaCard,\n MetricCard,\n Pagination,\n PopoverMenu,\n Progress,\n ProgressRing,\n Radio,\n RadioGroup,\n Rating,\n SearchInput,\n Select,\n Switch,\n Skeleton,\n SkeletonCard,\n SkeletonList,\n SkeletonText,\n Tab,\n TabList,\n TabPanel,\n Tabs,\n Text,\n TimePicker,\n Toast,\n Toolbar,\n Uploader,\n BottomSheet,\n FlatList,\n SectionList,\n ScrollView,\n View,\n ThemeModeToggle,\n Divider,\n Grid,\n Surface,\n AppShell,\n Screen,\n ScreenSection,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n SignInForm,\n SignUpForm,\n ChatListItem,\n CollectionEditor,\n ContentRail,\n EmptyState,\n Hero,\n List,\n ListItem,\n ListSection,\n MessageBubble,\n MissingElement,\n PostCard,\n ProductCard,\n ReaderSurface,\n BarcodeScannerView,\n CameraPermissionView,\n ScanOverlay,\n SectionHeader,\n SelectableItem,\n PaletteItem,\n Timeline,\n TreeItem,\n TreeView,\n} as const satisfies ZoraComponentRegistry;\n\nexport const ZORA_COMPONENT_REGISTRY: ZoraComponentRegistry = _ZORA_COMPONENT_REGISTRY;\n"]}
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { ImageSourcePropType } from 'react-native';
|
|
3
|
-
import type { AvatarShape, AvatarSize } from '
|
|
4
|
-
import type { ZoraColor } from '
|
|
5
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { AvatarShape, AvatarSize } from '../features/avatar/public';
|
|
4
|
+
import type { ZoraColor } from '../internal/recipes';
|
|
5
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
6
|
+
export interface ChatListAvatar {
|
|
7
|
+
source?: ImageSourcePropType;
|
|
8
|
+
name?: string;
|
|
9
|
+
initials?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
shape?: AvatarShape;
|
|
13
|
+
color?: ZoraColor;
|
|
14
|
+
}
|
|
15
|
+
export interface ChatListItemProps extends ZoraBaseProps {
|
|
16
|
+
title: React.ReactNode;
|
|
17
|
+
preview?: React.ReactNode;
|
|
18
|
+
meta?: React.ReactNode;
|
|
19
|
+
timestamp?: React.ReactNode;
|
|
20
|
+
avatar?: ChatListAvatar;
|
|
21
|
+
leading?: React.ReactNode;
|
|
22
|
+
trailing?: React.ReactNode;
|
|
23
|
+
unread?: boolean;
|
|
24
|
+
unreadCount?: React.ReactNode;
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
compact?: boolean;
|
|
28
|
+
accessibilityLabel?: string;
|
|
29
|
+
onPress?: () => void;
|
|
30
|
+
}
|
|
6
31
|
export type MessageBubbleDirection = 'incoming' | 'outgoing' | 'system';
|
|
7
32
|
export type MessageBubbleStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
8
33
|
type MessageBubbleStatusContent = MessageBubbleStatus | Exclude<React.ReactNode, string>;
|
|
@@ -37,4 +62,4 @@ export interface MessageBubbleProps extends ZoraBaseProps {
|
|
|
37
62
|
onPress?: () => void;
|
|
38
63
|
}
|
|
39
64
|
export {};
|
|
40
|
-
//# sourceMappingURL=
|
|
65
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAA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ClC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { ImageSourcePropType } from 'react-native';\n\nimport type { AvatarShape, AvatarSize } from '../features/avatar/public';\nimport type { ZoraColor } from '../internal/recipes';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface ChatListAvatar {\n source?: ImageSourcePropType;\n name?: string;\n initials?: string;\n label?: string;\n size?: AvatarSize;\n shape?: AvatarShape;\n color?: ZoraColor;\n}\n\nexport interface ChatListItemProps extends ZoraBaseProps {\n title: React.ReactNode;\n preview?: React.ReactNode;\n meta?: React.ReactNode;\n timestamp?: React.ReactNode;\n avatar?: ChatListAvatar;\n leading?: React.ReactNode;\n trailing?: React.ReactNode;\n unread?: boolean;\n unreadCount?: React.ReactNode;\n selected?: boolean;\n disabled?: boolean;\n compact?: boolean;\n accessibilityLabel?: string;\n onPress?: () => void;\n}\n\nexport type MessageBubbleDirection = 'incoming' | 'outgoing' | 'system';\nexport type MessageBubbleStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'failed';\ntype MessageBubbleStatusContent = MessageBubbleStatus | Exclude<React.ReactNode, string>;\n\nexport interface MessageBubbleAvatar {\n source?: ImageSourcePropType;\n name?: string;\n initials?: string;\n label?: string;\n size?: AvatarSize;\n shape?: AvatarShape;\n color?: ZoraColor;\n}\n\nexport interface MessageBubbleAuthor {\n name?: React.ReactNode;\n avatar?: MessageBubbleAvatar;\n}\n\nexport interface MessageBubbleProps extends ZoraBaseProps {\n direction?: MessageBubbleDirection;\n text?: React.ReactNode;\n children?: React.ReactNode;\n author?: MessageBubbleAuthor;\n timestamp?: React.ReactNode;\n meta?: React.ReactNode;\n status?: MessageBubbleStatusContent;\n leading?: React.ReactNode;\n trailing?: React.ReactNode;\n footer?: React.ReactNode;\n selected?: boolean;\n disabled?: boolean;\n compact?: boolean;\n accessibilityLabel?: string;\n onPress?: () => void;\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
2
3
|
export interface CollectionEditorRenderItemProps<TItem> {
|
|
3
4
|
item: TItem;
|
|
4
5
|
index: number;
|
|
@@ -8,7 +9,6 @@ export interface CollectionEditorRenderItemProps<TItem> {
|
|
|
8
9
|
canMoveUp: boolean;
|
|
9
10
|
canMoveDown: boolean;
|
|
10
11
|
}
|
|
11
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
12
12
|
export interface CollectionEditorProps<TItem> extends ZoraBaseProps {
|
|
13
13
|
title?: React.ReactNode;
|
|
14
14
|
description?: React.ReactNode;
|
|
@@ -21,4 +21,4 @@ export interface CollectionEditorProps<TItem> extends ZoraBaseProps {
|
|
|
21
21
|
emptyLabel?: React.ReactNode;
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=
|
|
24
|
+
//# sourceMappingURL=collection-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-editor.d.ts","sourceRoot":"","sources":["../../src/types/collection-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,+BAA+B,CAAC,KAAK;IACpD,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB,CAAC,KAAK,CAAE,SAAQ,aAAa;IACjE,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC;IACxB,UAAU,EAAE,CAAC,KAAK,EAAE,+BAA+B,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/E,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-editor.js","sourceRoot":"","sources":["../../src/types/collection-editor.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface CollectionEditorRenderItemProps<TItem> {\n item: TItem;\n index: number;\n remove: () => void;\n moveUp: () => void;\n moveDown: () => void;\n canMoveUp: boolean;\n canMoveDown: boolean;\n}\n\nexport interface CollectionEditorProps<TItem> extends ZoraBaseProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n items: readonly TItem[];\n renderItem: (props: CollectionEditorRenderItemProps<TItem>) => React.ReactNode;\n onAdd?: () => void;\n onRemove?: (index: number) => void;\n onMove?: (from: number, to: number) => void;\n addLabel?: React.ReactNode;\n emptyLabel?: React.ReactNode;\n disabled?: boolean;\n}\n"]}
|
package/dist/types/layout.d.ts
CHANGED
|
@@ -22,10 +22,4 @@ export interface ScreenProps extends ZoraBaseProps {
|
|
|
22
22
|
scroll?: boolean;
|
|
23
23
|
width?: ZoraContentWidth;
|
|
24
24
|
}
|
|
25
|
-
export interface ScreenSectionProps extends ZoraBaseProps {
|
|
26
|
-
title?: React.ReactNode;
|
|
27
|
-
description?: React.ReactNode;
|
|
28
|
-
actions?: React.ReactNode;
|
|
29
|
-
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AM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B"}
|
package/dist/types/layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/types/layout.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n DividerProps as SurfaceDividerProps,\n GridProps as SurfaceGridProps,\n ScrollViewProps as SurfaceScrollViewProps,\n ViewProps as SurfaceViewProps,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraContentWidth } from '../internal/recipes';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface ViewProps extends ZoraBaseProps, Omit<SurfaceViewProps, 'mode' | 'themeId'> {}\nexport interface ScrollViewProps\n extends ZoraBaseProps, Omit<SurfaceScrollViewProps, 'mode' | 'themeId'> {}\nexport interface DividerProps\n extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {}\nexport interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {}\n\nexport interface AppShellProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n}\n\nexport interface ScreenProps extends ZoraBaseProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n scroll?: boolean;\n width?: ZoraContentWidth;\n}\n
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/types/layout.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n DividerProps as SurfaceDividerProps,\n GridProps as SurfaceGridProps,\n ScrollViewProps as SurfaceScrollViewProps,\n ViewProps as SurfaceViewProps,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraContentWidth } from '../internal/recipes';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface ViewProps extends ZoraBaseProps, Omit<SurfaceViewProps, 'mode' | 'themeId'> {}\nexport interface ScrollViewProps\n extends ZoraBaseProps, Omit<SurfaceScrollViewProps, 'mode' | 'themeId'> {}\nexport interface DividerProps\n extends ZoraBaseProps, Omit<SurfaceDividerProps, 'mode' | 'themeId'> {}\nexport interface GridProps extends ZoraBaseProps, Omit<SurfaceGridProps, 'mode' | 'themeId'> {}\n\nexport interface AppShellProps extends ZoraBaseProps {\n children?: React.ReactNode;\n header?: React.ReactNode;\n footer?: React.ReactNode;\n overlay?: React.ReactNode;\n}\n\nexport interface ScreenProps extends ZoraBaseProps {\n children?: React.ReactNode;\n footer?: React.ReactNode;\n scroll?: boolean;\n width?: ZoraContentWidth;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { ZoraBaseProps } from '
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
3
|
export type ReaderDocumentFormat = 'epub' | 'pdf';
|
|
4
4
|
export type ReaderStatus = 'idle' | 'loading' | 'ready' | 'error';
|
|
5
5
|
export type ReaderNavigationTrigger = 'swipe' | 'previousControl' | 'nextControl' | 'keyboard' | 'location';
|
|
@@ -66,4 +66,4 @@ export interface ReaderSurfaceProps extends ZoraBaseProps {
|
|
|
66
66
|
onOpenExternalLink?: (event: ReaderExternalLinkEvent) => void | Promise<void>;
|
|
67
67
|
onReaderError?: (event: ReaderErrorEvent) => void | Promise<void>;
|
|
68
68
|
}
|
|
69
|
-
//# sourceMappingURL=
|
|
69
|
+
//# sourceMappingURL=reader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["../../src/types/reader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAAG,M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AAM,IAAI,GAAG,OAAO,CAAC,IAAI,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reader.js","sourceRoot":"","sources":["../../src/types/reader.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,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { ButtonProps } from '
|
|
3
|
-
import type { ZoraBaseProps } from '
|
|
2
|
+
import type { ButtonProps } from '../features/button/public';
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
4
|
export type CameraPermissionStatus = 'unknown' | 'requesting' | 'granted' | 'denied';
|
|
5
5
|
export interface BarcodeScanResult {
|
|
6
6
|
value: string;
|
|
@@ -39,4 +39,4 @@ export interface BarcodeScannerViewProps extends ZoraBaseProps {
|
|
|
39
39
|
onManualEntry?: () => void | Promise<void>;
|
|
40
40
|
onBarcodeScanned?: (result: BarcodeScanResult) => void | Promise<void>;
|
|
41
41
|
}
|
|
42
|
-
//# sourceMappingURL=
|
|
42
|
+
//# sourceMappingURL=scanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,UAAU,GAAG,SAAS,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,sBAAsB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzC,qBAAqB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxC,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../src/types/scanner.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ButtonProps } from '../features/button/public';\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport type CameraPermissionStatus = 'unknown' | 'requesting' | 'granted' | 'denied';\n\nexport interface BarcodeScanResult {\n value: string;\n type?: string;\n}\n\nexport interface ScanOverlayProps extends ZoraBaseProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n cornerLabel?: React.ReactNode;\n}\n\nexport interface CameraPermissionViewProps extends ZoraBaseProps {\n status: Exclude<CameraPermissionStatus, 'granted'>;\n title?: React.ReactNode;\n description?: React.ReactNode;\n requestLabel?: React.ReactNode;\n deniedLabel?: React.ReactNode;\n manualEntryLabel?: React.ReactNode;\n onRequestPermission?: () => void | Promise<void>;\n onManualEntry?: () => void | Promise<void>;\n requestButtonProps?: Omit<ButtonProps, 'children' | 'onPress'>;\n manualEntryButtonProps?: Omit<ButtonProps, 'children' | 'onPress'>;\n}\n\nexport interface BarcodeScannerViewProps extends ZoraBaseProps {\n permissionStatus: CameraPermissionStatus;\n camera?: React.ReactNode;\n children?: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n overlayTitle?: React.ReactNode;\n overlayDescription?: React.ReactNode;\n cornerLabel?: React.ReactNode;\n requestPermissionLabel?: React.ReactNode;\n deniedPermissionLabel?: React.ReactNode;\n manualEntryLabel?: React.ReactNode;\n onRequestPermission?: () => void | Promise<void>;\n onManualEntry?: () => void | Promise<void>;\n onBarcodeScanned?: (result: BarcodeScanResult) => void | Promise<void>;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
|
+
export interface SectionHeaderProps extends ZoraBaseProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
eyebrow?: React.ReactNode;
|
|
7
|
+
actions?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface ScreenSectionProps extends ZoraBaseProps {
|
|
10
|
+
title?: React.ReactNode;
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
actions?: React.ReactNode;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/types/section.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/types/section.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface SectionHeaderProps extends ZoraBaseProps {\n title: React.ReactNode;\n description?: React.ReactNode;\n eyebrow?: React.ReactNode;\n actions?: React.ReactNode;\n}\n\nexport interface ScreenSectionProps extends ZoraBaseProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n actions?: React.ReactNode;\n children?: React.ReactNode;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/types/selection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,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CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;CAC/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../src/types/selection.ts"],"names":[],"mappings":"","sourcesContent":["import type { InteractionPolicy } from '@ankhorage/surface';\nimport type React from 'react';\n\nexport type SelectionMode = 'single' | 'multi';\n\nexport type SelectionTrigger = 'press' | 'longPress' | 'manual';\n\nexport interface SelectionProviderProps {\n children: React.ReactNode;\n selectedIds?: readonly string[];\n defaultSelectedIds?: readonly string[];\n mode?: SelectionMode;\n disabled?: boolean;\n onSelectionChange?: (ids: readonly string[]) => void;\n interactionPolicy?: InteractionPolicy;\n}\n\nexport interface UseSelectionResult {\n mode: SelectionMode;\n disabled: boolean;\n selectedIds: readonly string[];\n selectedCount: number;\n hasSelection: boolean;\n isSelected: (id: string) => boolean;\n select: (id: string) => void;\n toggle: (id: string) => void;\n clear: () => void;\n}\n\nexport interface SelectableItemState {\n id: string;\n selected: boolean;\n disabled: boolean;\n mode: SelectionMode;\n select: () => void;\n toggle: () => void;\n clear: () => void;\n}\n\nexport interface SelectableItemProps {\n id: string;\n trigger?: SelectionTrigger;\n disabled?: boolean;\n interactionPolicy?: InteractionPolicy;\n children: React.ReactNode | ((state: SelectableItemState) => React.ReactNode);\n}\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SwitchProps as SurfaceSwitchProps } from '@ankhorage/surface';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
|
+
export interface SwitchProps extends ZoraBaseProps, Omit<SurfaceSwitchProps, 'mode' | 'themeId'> {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/types/switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,WAAY,SAAQ,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../src/types/switch.ts"],"names":[],"mappings":"","sourcesContent":["import type { SwitchProps as SurfaceSwitchProps } from '@ankhorage/surface';\n\nimport type { ZoraBaseProps } from '../theme/ZoraBaseProps';\n\nexport interface SwitchProps extends ZoraBaseProps, Omit<SurfaceSwitchProps, 'mode' | 'themeId'> {}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type { ZoraColor } from '
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraColor } from '../internal/recipes';
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
export interface TimelineItem {
|
|
6
6
|
id: string;
|
|
7
7
|
title: React.ReactNode;
|
|
@@ -15,4 +15,4 @@ export interface TimelineProps extends ZoraBaseProps {
|
|
|
15
15
|
items: readonly TimelineItem[];
|
|
16
16
|
compact?: boolean;
|
|
17
17
|
}
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../src/types/timeline.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,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../src/types/timeline.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,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
4
|
export interface TreeItemNode<TId extends string = string> {
|
|
5
5
|
id: TId;
|
|
6
6
|
label: ReactNode;
|
|
@@ -26,4 +26,4 @@ export interface TreeViewProps<TId extends string = string> extends ZoraBaseProp
|
|
|
26
26
|
onExpandedChange?: (ids: readonly TId[]) => void;
|
|
27
27
|
renderItem?: (props: TreeItemRenderProps<TId>) => ReactNode;
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
29
|
+
//# sourceMappingURL=tree-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-view.d.ts","sourceRoot":"","sources":["../../src/types/tree-view.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,wBAAwB,CAAC;AAE5D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree-view.js","sourceRoot":"","sources":["../../src/types/tree-view.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"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "19.0.0",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
package/src/audit.test.ts
CHANGED
|
@@ -120,16 +120,16 @@ describe('Plan 5 audit — no showcase bridge or direct Surface imports in examp
|
|
|
120
120
|
|
|
121
121
|
describe('Plan 5 audit — product-facing src imports ZORA layout primitives, not Surface directly', () => {
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
123
|
+
* Product-facing features that compose ZORA layout primitives should import them from ZORA,
|
|
124
124
|
* not directly from @ankhorage/surface. The feature-owned layout adapters are the deliberate
|
|
125
125
|
* Surface foundation boundary.
|
|
126
126
|
*/
|
|
127
127
|
const SURFACE_FOUNDATION_BOUNDARY = join(SRC_ROOT, 'features', 'layout');
|
|
128
|
-
const PRODUCT_FACING_DIRS = [join(SRC_ROOT, 'features')
|
|
128
|
+
const PRODUCT_FACING_DIRS = [join(SRC_ROOT, 'features')];
|
|
129
129
|
const FOUNDATION_PRIMITIVES_PATTERN =
|
|
130
130
|
/import \{[^}]*\b(View|ScrollView|Grid|Divider)\b[^}]*\} from '@ankhorage\/surface'/;
|
|
131
131
|
|
|
132
|
-
test('feature
|
|
132
|
+
test('product-facing feature files do not import foundation primitives directly from @ankhorage/surface', () => {
|
|
133
133
|
for (const dir of PRODUCT_FACING_DIRS) {
|
|
134
134
|
for (const filePath of listFiles(dir)) {
|
|
135
135
|
if (isPathWithin(filePath, SURFACE_FOUNDATION_BOUNDARY)) continue;
|
package/src/constants.ts
CHANGED
|
@@ -28,7 +28,8 @@ export const FEATURE_MANIFEST_ELEMENTS = {
|
|
|
28
28
|
image: ['Image'],
|
|
29
29
|
'keyboard-avoiding-view': ['KeyboardAvoidingView'],
|
|
30
30
|
'content-rail': ['ContentRail'],
|
|
31
|
-
layout: ['Divider', 'Grid', 'Screen', '
|
|
31
|
+
layout: ['Divider', 'Grid', 'Screen', 'ScrollView', 'View'],
|
|
32
|
+
section: ['ScreenSection', 'SectionHeader'],
|
|
32
33
|
list: ['FlatList', 'SectionList'],
|
|
33
34
|
pagination: ['Pagination'],
|
|
34
35
|
rating: ['Rating'],
|
|
@@ -6,17 +6,13 @@ import type { ZoraComponentMetaRegistry } from './metadata/types';
|
|
|
6
6
|
import type { ZoraPluginMetadata } from './pluginComposition';
|
|
7
7
|
|
|
8
8
|
const CORE_EXTENSION_HOSTS = [
|
|
9
|
-
'Box',
|
|
10
9
|
'Card',
|
|
11
|
-
'Container',
|
|
12
10
|
'Grid',
|
|
13
11
|
'MessageBubble',
|
|
14
|
-
'Notice',
|
|
15
|
-
'Panel',
|
|
16
12
|
'PostCard',
|
|
17
13
|
'Screen',
|
|
18
14
|
'ScreenSection',
|
|
19
|
-
'
|
|
15
|
+
'View',
|
|
20
16
|
] as const;
|
|
21
17
|
|
|
22
18
|
export const ZORA_CORE_PLUGIN_METADATA: ZoraPluginMetadata = {
|
|
@@ -21,8 +21,9 @@ test('every selected feature element is directly authorable through its canonica
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
test('feature ownership has no remaining legacy
|
|
24
|
+
test('feature ownership has no remaining legacy ownership roots', () => {
|
|
25
25
|
expect(existsSync('src/components')).toBe(false);
|
|
26
|
+
expect(existsSync('src/patterns')).toBe(false);
|
|
26
27
|
});
|
|
27
28
|
|
|
28
29
|
test('form composition has one canonical feature owner', () => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Pressable } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
4
|
+
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
|
+
import type { ChatListAvatar, ChatListItemProps } from '../../../../types/chat';
|
|
7
|
+
import { Avatar } from '../../../avatar/public';
|
|
8
|
+
import { Badge } from '../../../badge/public';
|
|
9
|
+
import { View } from '../../../layout/public';
|
|
10
|
+
import { Text } from '../../../typography/public';
|
|
11
11
|
|
|
12
12
|
function resolveAvatarName({
|
|
13
13
|
avatar,
|