@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.
- package/CHANGELOG.md +12 -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 +9 -9
- 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 +8 -8
- 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/features/chip/adapters/inbound/Chip.js +3 -3
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
- 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/{patterns/selection → features/selection/adapters/inbound}/SelectableItem.js +4 -4
- 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 +2 -2
- 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/features/bottom-sheet/public.test.ts +1 -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 +10 -10
- package/src/{patterns/message-bubble → features/chat/adapters/inbound}/MessageBubble.tsx +9 -9
- package/src/features/chat/public.ts +11 -0
- package/src/features/chip/adapters/inbound/Chip.tsx +3 -3
- 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 +9 -5
- 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/platformAcceptance.test.ts +1 -1
- 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 → 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
|
@@ -21,8 +21,11 @@ import { mediaCardMeta } from '../features/card/mediaCardMeta';
|
|
|
21
21
|
import { metricCardMeta } from '../features/card/metricCardMeta';
|
|
22
22
|
import { postCardMeta } from '../features/card/postCardMeta';
|
|
23
23
|
import { productCardMeta } from '../features/card/productCardMeta';
|
|
24
|
+
import { chatListItemMeta } from '../features/chat/chatListItemMeta';
|
|
25
|
+
import { messageBubbleMeta } from '../features/chat/messageBubbleMeta';
|
|
24
26
|
import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
25
27
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
28
|
+
import { collectionEditorMeta } from '../features/collection-editor/meta';
|
|
26
29
|
import { contentRailMeta } from '../features/content-rail/contentRailMeta';
|
|
27
30
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
28
31
|
import { datePickerMeta } from '../features/date-picker/datePickerMeta';
|
|
@@ -36,6 +39,7 @@ import { formMeta } from '../features/form/formMeta';
|
|
|
36
39
|
import { radioGroupMeta, radioMeta } from '../features/form/radio/radioMeta';
|
|
37
40
|
import { searchInputMeta } from '../features/form/search-input/searchInputMeta';
|
|
38
41
|
import { selectMeta } from '../features/form/select/selectMeta';
|
|
42
|
+
import { switchMeta } from '../features/form/switch/switchMeta';
|
|
39
43
|
import { textInputMeta } from '../features/form/text-input/textInputMeta';
|
|
40
44
|
import { gradientMeta } from '../features/gradient/gradientMeta';
|
|
41
45
|
import { heroMeta } from '../features/hero/heroMeta';
|
|
@@ -46,7 +50,6 @@ import { appShellMeta } from '../features/layout/appShellMeta';
|
|
|
46
50
|
import { dividerMeta } from '../features/layout/dividerMeta';
|
|
47
51
|
import { gridMeta } from '../features/layout/gridMeta';
|
|
48
52
|
import { screenMeta } from '../features/layout/screenMeta';
|
|
49
|
-
import { screenSectionMeta } from '../features/layout/screenSectionMeta';
|
|
50
53
|
import { scrollViewMeta } from '../features/layout/scrollViewMeta';
|
|
51
54
|
import { viewMeta } from '../features/layout/viewMeta';
|
|
52
55
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
@@ -58,6 +61,15 @@ import { paletteItemMeta } from '../features/palette-item/paletteItemMeta';
|
|
|
58
61
|
import { popoverMenuMeta } from '../features/popover-menu/popoverMenuMeta';
|
|
59
62
|
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
60
63
|
import { ratingMeta } from '../features/rating/ratingMeta';
|
|
64
|
+
import { readerSurfaceMeta } from '../features/reader/meta';
|
|
65
|
+
import {
|
|
66
|
+
barcodeScannerViewMeta,
|
|
67
|
+
cameraPermissionViewMeta,
|
|
68
|
+
scanOverlayMeta,
|
|
69
|
+
} from '../features/scanner/meta';
|
|
70
|
+
import { screenSectionMeta } from '../features/section/screenSectionMeta';
|
|
71
|
+
import { sectionHeaderMeta } from '../features/section/sectionHeaderMeta';
|
|
72
|
+
import { selectableItemMeta, selectionProviderMeta } from '../features/selection/meta';
|
|
61
73
|
import {
|
|
62
74
|
skeletonCardMeta,
|
|
63
75
|
skeletonListMeta,
|
|
@@ -70,32 +82,14 @@ import { tabMeta } from '../features/tabs/tabMeta';
|
|
|
70
82
|
import { tabPanelMeta } from '../features/tabs/tabPanelMeta';
|
|
71
83
|
import { tabsMeta } from '../features/tabs/tabsMeta';
|
|
72
84
|
import { timePickerMeta } from '../features/time-picker/timePickerMeta';
|
|
85
|
+
import { timelineMeta } from '../features/timeline/meta';
|
|
73
86
|
import { toastMeta } from '../features/toast/toastMeta';
|
|
74
87
|
import { toastProviderMeta } from '../features/toast/toastProviderMeta';
|
|
75
88
|
import { toolbarMeta } from '../features/toolbar/toolbarMeta';
|
|
89
|
+
import { treeItemMeta, treeViewMeta } from '../features/tree-view/meta';
|
|
76
90
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
77
91
|
import { textMeta } from '../features/typography/textMeta';
|
|
78
92
|
import { uploaderMeta } from '../features/uploader/uploaderMeta';
|
|
79
|
-
import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
80
|
-
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
81
|
-
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
82
|
-
import { filterBarMeta } from '../patterns/filter-bar/meta';
|
|
83
|
-
import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
|
|
84
|
-
import { messageBubbleMeta } from '../patterns/message-bubble/meta';
|
|
85
|
-
import { noticeMeta } from '../patterns/notice/meta';
|
|
86
|
-
import { panelMeta } from '../patterns/panel/meta';
|
|
87
|
-
import { readerSurfaceMeta } from '../patterns/reader/meta';
|
|
88
|
-
import {
|
|
89
|
-
barcodeScannerViewMeta,
|
|
90
|
-
cameraPermissionViewMeta,
|
|
91
|
-
scanOverlayMeta,
|
|
92
|
-
} from '../patterns/scanner/meta';
|
|
93
|
-
import { sectionHeaderMeta } from '../patterns/section-header/meta';
|
|
94
|
-
import { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';
|
|
95
|
-
import { switchFieldMeta } from '../patterns/switch-field/meta';
|
|
96
|
-
import { themeComposerMeta } from '../patterns/theme-composer/meta';
|
|
97
|
-
import { timelineMeta } from '../patterns/timeline/meta';
|
|
98
|
-
import { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';
|
|
99
93
|
import { themeModeToggleMeta } from '../theme/ThemeModeToggle.meta';
|
|
100
94
|
import { finalizeFeatureMetadata } from '../utils/finalizeFeatureMetadata';
|
|
101
95
|
import type { ZoraComponentMetaRegistry } from './types';
|
|
@@ -146,6 +140,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
146
140
|
Rating: ratingMeta,
|
|
147
141
|
SearchInput: searchInputMeta,
|
|
148
142
|
Select: selectMeta,
|
|
143
|
+
Switch: switchMeta,
|
|
149
144
|
Skeleton: skeletonMeta,
|
|
150
145
|
SkeletonCard: skeletonCardMeta,
|
|
151
146
|
SkeletonList: skeletonListMeta,
|
|
@@ -175,19 +170,14 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
175
170
|
SignUpForm: signUpFormMeta,
|
|
176
171
|
ChatListItem: chatListItemMeta,
|
|
177
172
|
CollectionEditor: collectionEditorMeta,
|
|
178
|
-
ConfirmDialog: confirmDialogMeta,
|
|
179
173
|
ContentRail: contentRailMeta,
|
|
180
174
|
EmptyState: emptyStateMeta,
|
|
181
|
-
FilterBar: filterBarMeta,
|
|
182
175
|
Hero: heroMeta,
|
|
183
|
-
InspectorField: inspectorFieldMeta,
|
|
184
176
|
List: listMeta,
|
|
185
177
|
ListItem: listItemMeta,
|
|
186
178
|
ListSection: listSectionMeta,
|
|
187
179
|
MessageBubble: messageBubbleMeta,
|
|
188
180
|
MissingElement: missingElementMeta,
|
|
189
|
-
Notice: noticeMeta,
|
|
190
|
-
Panel: panelMeta,
|
|
191
181
|
PostCard: postCardMeta,
|
|
192
182
|
ProductCard: productCardMeta,
|
|
193
183
|
ReaderSurface: readerSurfaceMeta,
|
|
@@ -197,8 +187,6 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
197
187
|
SectionHeader: sectionHeaderMeta,
|
|
198
188
|
SelectableItem: selectableItemMeta,
|
|
199
189
|
SelectionProvider: selectionProviderMeta,
|
|
200
|
-
SwitchField: switchFieldMeta,
|
|
201
|
-
ThemeComposer: themeComposerMeta,
|
|
202
190
|
PaletteItem: paletteItemMeta,
|
|
203
191
|
Timeline: timelineMeta,
|
|
204
192
|
TreeItem: treeItemMeta,
|
|
@@ -8,7 +8,6 @@ const containers = [
|
|
|
8
8
|
['View', ZORA_COMPONENT_META.View],
|
|
9
9
|
['ScrollView', ZORA_COMPONENT_META.ScrollView],
|
|
10
10
|
['Card', ZORA_COMPONENT_META.Card],
|
|
11
|
-
['Panel', ZORA_COMPONENT_META.Panel],
|
|
12
11
|
] as const;
|
|
13
12
|
|
|
14
13
|
test('keeps manifest RadioGroup reachable through canonical container composition', () => {
|
|
@@ -3,7 +3,6 @@ import { cardThemeRecipeMeta } from '../features/card/utils/themeRecipeMeta';
|
|
|
3
3
|
import { radioGroupThemeRecipeMeta } from '../features/form/radio/themeRecipeMeta';
|
|
4
4
|
import { headingThemeRecipeMeta } from '../features/typography/utils/headingThemeRecipeMeta';
|
|
5
5
|
import { textThemeRecipeMeta } from '../features/typography/utils/textThemeRecipeMeta';
|
|
6
|
-
import { panelThemeRecipeMeta } from '../patterns/panel/themeRecipeMeta';
|
|
7
6
|
import type { ZoraThemeRecipeMetaRegistry } from './themeRecipeTypes';
|
|
8
7
|
|
|
9
8
|
export const ZORA_THEME_RECIPE_META: ZoraThemeRecipeMetaRegistry = {
|
|
@@ -12,5 +11,4 @@ export const ZORA_THEME_RECIPE_META: ZoraThemeRecipeMetaRegistry = {
|
|
|
12
11
|
Heading: headingThemeRecipeMeta,
|
|
13
12
|
RadioGroup: radioGroupThemeRecipeMeta,
|
|
14
13
|
Text: textThemeRecipeMeta,
|
|
15
|
-
Panel: panelThemeRecipeMeta,
|
|
16
14
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { expect, test } from 'bun:test';
|
|
2
2
|
|
|
3
|
-
test('passes the isolated Surface
|
|
3
|
+
test('passes the isolated Surface and RN Web 0.21 acceptance suite', () => {
|
|
4
4
|
const subprocess = Bun.spawnSync({
|
|
5
5
|
cmd: [process.execPath, 'test', 'test-fixtures/platformAcceptance.test.tsx'],
|
|
6
6
|
stderr: 'pipe',
|
package/src/registry.ts
CHANGED
|
@@ -25,8 +25,10 @@ import { MediaCard } from './features/card/public';
|
|
|
25
25
|
import { MetricCard } from './features/card/public';
|
|
26
26
|
import { PostCard } from './features/card/public';
|
|
27
27
|
import { ProductCard } from './features/card/public';
|
|
28
|
+
import { ChatListItem, MessageBubble } from './features/chat/public';
|
|
28
29
|
import { Chip } from './features/chip/public';
|
|
29
30
|
import { ChipGroup } from './features/chip/public';
|
|
31
|
+
import { CollectionEditor } from './features/collection-editor/public';
|
|
30
32
|
import { ContentRail } from './features/content-rail/public';
|
|
31
33
|
import { DataTable } from './features/data-table/public';
|
|
32
34
|
import { DatePicker } from './features/date-picker/public';
|
|
@@ -37,21 +39,14 @@ import { Field, Form, FormActions, FormError } from './features/form/public';
|
|
|
37
39
|
import { Radio, RadioGroup } from './features/form/radio/public';
|
|
38
40
|
import { SearchInput } from './features/form/search-input/public';
|
|
39
41
|
import { Select } from './features/form/select/public';
|
|
42
|
+
import { Switch } from './features/form/switch/public';
|
|
40
43
|
import { TextInput } from './features/form/text-input/public';
|
|
41
44
|
import { Gradient } from './features/gradient/public';
|
|
42
45
|
import { Hero } from './features/hero/public';
|
|
43
46
|
import { Icon } from './features/icon/public';
|
|
44
47
|
import { Image } from './features/image/public';
|
|
45
48
|
import { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';
|
|
46
|
-
import {
|
|
47
|
-
AppShell,
|
|
48
|
-
Divider,
|
|
49
|
-
Grid,
|
|
50
|
-
Screen,
|
|
51
|
-
ScreenSection,
|
|
52
|
-
ScrollView,
|
|
53
|
-
View,
|
|
54
|
-
} from './features/layout/public';
|
|
49
|
+
import { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';
|
|
55
50
|
import { FlatList, SectionList } from './features/list/public';
|
|
56
51
|
import { List, ListItem, ListSection } from './features/list/public';
|
|
57
52
|
import { MissingElement } from './features/missing-element/public';
|
|
@@ -60,31 +55,21 @@ import { PaletteItem } from './features/palette-item/public';
|
|
|
60
55
|
import { PopoverMenu } from './features/popover-menu/public';
|
|
61
56
|
import { Progress, ProgressRing } from './features/progress/public';
|
|
62
57
|
import { Rating } from './features/rating/public';
|
|
58
|
+
import { ReaderSurface } from './features/reader/public';
|
|
59
|
+
import { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';
|
|
60
|
+
import { ScreenSection, SectionHeader } from './features/section/public';
|
|
61
|
+
import { SelectableItem } from './features/selection/public';
|
|
63
62
|
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';
|
|
64
63
|
import { Surface } from './features/surface/public';
|
|
65
64
|
import { Tab, TabList, TabPanel, Tabs } from './features/tabs/public';
|
|
66
65
|
import { TimePicker } from './features/time-picker/public';
|
|
66
|
+
import { Timeline } from './features/timeline/public';
|
|
67
67
|
import { Toast } from './features/toast/public';
|
|
68
68
|
import { Toolbar } from './features/toolbar/public';
|
|
69
|
+
import { TreeItem, TreeView } from './features/tree-view/public';
|
|
69
70
|
import { Heading } from './features/typography/public';
|
|
70
71
|
import { Text } from './features/typography/public';
|
|
71
72
|
import { Uploader } from './features/uploader/public';
|
|
72
|
-
import { ChatListItem } from './patterns/chat-list-item';
|
|
73
|
-
import { CollectionEditor } from './patterns/collection-editor';
|
|
74
|
-
import { ConfirmDialog } from './patterns/confirm-dialog';
|
|
75
|
-
import { FilterBar } from './patterns/filter-bar';
|
|
76
|
-
import { InspectorField } from './patterns/inspector-field';
|
|
77
|
-
import { MessageBubble } from './patterns/message-bubble';
|
|
78
|
-
import { Notice } from './patterns/notice';
|
|
79
|
-
import { Panel } from './patterns/panel';
|
|
80
|
-
import { ReaderSurface } from './patterns/reader';
|
|
81
|
-
import { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './patterns/scanner';
|
|
82
|
-
import { SectionHeader } from './patterns/section-header';
|
|
83
|
-
import { SelectableItem } from './patterns/selection';
|
|
84
|
-
import { SwitchField } from './patterns/switch-field';
|
|
85
|
-
import { ThemeComposer } from './patterns/theme-composer';
|
|
86
|
-
import { Timeline } from './patterns/timeline';
|
|
87
|
-
import { TreeItem, TreeView } from './patterns/tree-view';
|
|
88
73
|
import { ThemeModeToggle } from './theme/ThemeModeToggle';
|
|
89
74
|
|
|
90
75
|
export type ZoraComponentRegistry = Readonly<Record<string, React.ElementType>>;
|
|
@@ -153,6 +138,7 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
153
138
|
Rating,
|
|
154
139
|
SearchInput,
|
|
155
140
|
Select,
|
|
141
|
+
Switch,
|
|
156
142
|
Skeleton,
|
|
157
143
|
SkeletonCard,
|
|
158
144
|
SkeletonList,
|
|
@@ -186,19 +172,14 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
186
172
|
SignUpForm,
|
|
187
173
|
ChatListItem,
|
|
188
174
|
CollectionEditor,
|
|
189
|
-
ConfirmDialog,
|
|
190
175
|
ContentRail,
|
|
191
176
|
EmptyState,
|
|
192
|
-
FilterBar,
|
|
193
177
|
Hero,
|
|
194
|
-
InspectorField,
|
|
195
178
|
List,
|
|
196
179
|
ListItem,
|
|
197
180
|
ListSection,
|
|
198
181
|
MessageBubble,
|
|
199
182
|
MissingElement,
|
|
200
|
-
Notice,
|
|
201
|
-
Panel,
|
|
202
183
|
PostCard,
|
|
203
184
|
ProductCard,
|
|
204
185
|
ReaderSurface,
|
|
@@ -207,8 +188,6 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
207
188
|
ScanOverlay,
|
|
208
189
|
SectionHeader,
|
|
209
190
|
SelectableItem,
|
|
210
|
-
SwitchField,
|
|
211
|
-
ThemeComposer,
|
|
212
191
|
PaletteItem,
|
|
213
192
|
Timeline,
|
|
214
193
|
TreeItem,
|
|
@@ -51,6 +51,7 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
51
51
|
'Rating',
|
|
52
52
|
'SearchInput',
|
|
53
53
|
'Select',
|
|
54
|
+
'Switch',
|
|
54
55
|
'Tab',
|
|
55
56
|
'TabList',
|
|
56
57
|
'TabPanel',
|
|
@@ -67,23 +68,16 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
67
68
|
'SignInForm',
|
|
68
69
|
'SignUpForm',
|
|
69
70
|
'CollectionEditor',
|
|
70
|
-
'ConfirmDialog',
|
|
71
71
|
'EmptyState',
|
|
72
|
-
'FilterBar',
|
|
73
72
|
'SelectableItem',
|
|
74
73
|
'SelectionProvider',
|
|
75
74
|
'useSelection',
|
|
76
75
|
'List',
|
|
77
76
|
'ListItem',
|
|
78
77
|
'ListSection',
|
|
79
|
-
'InspectorField',
|
|
80
|
-
'Notice',
|
|
81
|
-
'Panel',
|
|
82
78
|
'ReaderSurface',
|
|
83
79
|
'SectionHeader',
|
|
84
|
-
'SwitchField',
|
|
85
80
|
'Timeline',
|
|
86
|
-
'ThemeComposer',
|
|
87
81
|
'PaletteItem',
|
|
88
82
|
'TreeItem',
|
|
89
83
|
'TreeView',
|
|
@@ -43,14 +43,14 @@ const zoraProviderSource = readSource('ZoraProvider.tsx');
|
|
|
43
43
|
const themeScopeSource = readSource('ZoraThemeScope.tsx');
|
|
44
44
|
const hocSource = readSource('withZoraThemeScope.tsx');
|
|
45
45
|
|
|
46
|
-
const scopeGuardDirs = [join(srcDir, '
|
|
46
|
+
const scopeGuardDirs = [join(srcDir, 'features')] as const;
|
|
47
47
|
|
|
48
48
|
const scopeGuardFiles = scopeGuardDirs.flatMap(collectSourceFiles);
|
|
49
49
|
|
|
50
50
|
const scopedComponentFiles = [
|
|
51
51
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'AppShell.tsx'),
|
|
52
52
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'Screen.tsx'),
|
|
53
|
-
join(srcDir, 'features', '
|
|
53
|
+
join(srcDir, 'features', 'section', 'adapters', 'inbound', 'ScreenSection.tsx'),
|
|
54
54
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'ScrollView.tsx'),
|
|
55
55
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'View.tsx'),
|
|
56
56
|
join(srcDir, 'features', 'content-rail', 'adapters', 'inbound', 'ContentRail.tsx'),
|
|
@@ -105,20 +105,16 @@ const scopedComponentFiles = [
|
|
|
105
105
|
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'SignInForm.tsx'),
|
|
106
106
|
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'SignUpForm.tsx'),
|
|
107
107
|
join(srcDir, 'features', 'gradient', 'adapters', 'inbound', 'Gradient.tsx'),
|
|
108
|
-
join(srcDir, '
|
|
109
|
-
join(srcDir, 'patterns', 'confirm-dialog', 'ConfirmDialog.tsx'),
|
|
108
|
+
join(srcDir, 'features', 'collection-editor', 'adapters', 'inbound', 'CollectionEditor.tsx'),
|
|
110
109
|
join(srcDir, 'features', 'empty-state', 'adapters', 'inbound', 'EmptyState.tsx'),
|
|
111
|
-
join(srcDir, 'patterns', 'inspector-field', 'InspectorField.tsx'),
|
|
112
110
|
join(srcDir, 'features', 'list', 'adapters', 'inbound', 'List.tsx'),
|
|
113
111
|
join(srcDir, 'features', 'list', 'adapters', 'inbound', 'ListItem.tsx'),
|
|
114
112
|
join(srcDir, 'features', 'list', 'adapters', 'inbound', 'ListSection.tsx'),
|
|
115
|
-
join(srcDir, '
|
|
116
|
-
join(srcDir, '
|
|
117
|
-
join(srcDir, '
|
|
118
|
-
join(srcDir, '
|
|
119
|
-
join(srcDir, '
|
|
120
|
-
join(srcDir, 'patterns', 'tree-view', 'TreeItem.tsx'),
|
|
121
|
-
join(srcDir, 'patterns', 'tree-view', 'TreeView.tsx'),
|
|
113
|
+
join(srcDir, 'features', 'section', 'adapters', 'inbound', 'SectionHeader.tsx'),
|
|
114
|
+
join(srcDir, 'features', 'form', 'switch', 'adapters', 'inbound', 'Switch.tsx'),
|
|
115
|
+
join(srcDir, 'features', 'timeline', 'adapters', 'inbound', 'Timeline.tsx'),
|
|
116
|
+
join(srcDir, 'features', 'tree-view', 'adapters', 'inbound', 'TreeItem.tsx'),
|
|
117
|
+
join(srcDir, 'features', 'tree-view', 'adapters', 'inbound', 'TreeView.tsx'),
|
|
122
118
|
|
|
123
119
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'Divider.tsx'),
|
|
124
120
|
join(srcDir, 'features', 'layout', 'adapters', 'inbound', 'Grid.tsx'),
|
|
@@ -160,17 +156,13 @@ const scopedPropTypeFiles = [
|
|
|
160
156
|
|
|
161
157
|
join(srcDir, 'types', 'auth.ts'),
|
|
162
158
|
join(srcDir, 'types', 'gradient.ts'),
|
|
163
|
-
join(srcDir, '
|
|
164
|
-
join(srcDir, 'patterns', 'confirm-dialog', 'types.ts'),
|
|
159
|
+
join(srcDir, 'types', 'collection-editor.ts'),
|
|
165
160
|
join(srcDir, 'types', 'empty-state.ts'),
|
|
166
|
-
join(srcDir, 'patterns', 'inspector-field', 'types.ts'),
|
|
167
161
|
join(srcDir, 'types', 'list.ts'),
|
|
168
|
-
join(srcDir, '
|
|
169
|
-
join(srcDir, '
|
|
170
|
-
join(srcDir, '
|
|
171
|
-
join(srcDir, '
|
|
172
|
-
join(srcDir, 'patterns', 'timeline', 'types.ts'),
|
|
173
|
-
join(srcDir, 'patterns', 'tree-view', 'types.ts'),
|
|
162
|
+
join(srcDir, 'types', 'section.ts'),
|
|
163
|
+
join(srcDir, 'types', 'switch.ts'),
|
|
164
|
+
join(srcDir, 'types', 'timeline.ts'),
|
|
165
|
+
join(srcDir, 'types', 'tree-view.ts'),
|
|
174
166
|
] as const;
|
|
175
167
|
|
|
176
168
|
describe('theme scope structure', () => {
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { ImageSourcePropType } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import type { AvatarShape, AvatarSize } from '
|
|
5
|
-
import type { ZoraColor } from '
|
|
6
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { AvatarShape, AvatarSize } from '../features/avatar/public';
|
|
5
|
+
import type { ZoraColor } from '../internal/recipes';
|
|
6
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
7
|
+
|
|
8
|
+
export interface ChatListAvatar {
|
|
9
|
+
source?: ImageSourcePropType;
|
|
10
|
+
name?: string;
|
|
11
|
+
initials?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
size?: AvatarSize;
|
|
14
|
+
shape?: AvatarShape;
|
|
15
|
+
color?: ZoraColor;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ChatListItemProps extends ZoraBaseProps {
|
|
19
|
+
title: React.ReactNode;
|
|
20
|
+
preview?: React.ReactNode;
|
|
21
|
+
meta?: React.ReactNode;
|
|
22
|
+
timestamp?: React.ReactNode;
|
|
23
|
+
avatar?: ChatListAvatar;
|
|
24
|
+
leading?: React.ReactNode;
|
|
25
|
+
trailing?: React.ReactNode;
|
|
26
|
+
unread?: boolean;
|
|
27
|
+
unreadCount?: React.ReactNode;
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
compact?: boolean;
|
|
31
|
+
accessibilityLabel?: string;
|
|
32
|
+
onPress?: () => void;
|
|
33
|
+
}
|
|
7
34
|
|
|
8
35
|
export type MessageBubbleDirection = 'incoming' | 'outgoing' | 'system';
|
|
9
36
|
export type MessageBubbleStatus = 'sending' | 'sent' | 'delivered' | 'read' | 'failed';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
|
+
|
|
3
5
|
export interface CollectionEditorRenderItemProps<TItem> {
|
|
4
6
|
item: TItem;
|
|
5
7
|
index: number;
|
|
@@ -10,8 +12,6 @@ export interface CollectionEditorRenderItemProps<TItem> {
|
|
|
10
12
|
canMoveDown: boolean;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
14
|
-
|
|
15
15
|
export interface CollectionEditorProps<TItem> extends ZoraBaseProps {
|
|
16
16
|
title?: React.ReactNode;
|
|
17
17
|
description?: React.ReactNode;
|
package/src/types/layout.ts
CHANGED
|
@@ -29,10 +29,3 @@ export interface ScreenProps extends ZoraBaseProps {
|
|
|
29
29
|
scroll?: boolean;
|
|
30
30
|
width?: ZoraContentWidth;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
export interface ScreenSectionProps extends ZoraBaseProps {
|
|
34
|
-
title?: React.ReactNode;
|
|
35
|
-
description?: React.ReactNode;
|
|
36
|
-
actions?: React.ReactNode;
|
|
37
|
-
children?: React.ReactNode;
|
|
38
|
-
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
-
import type { ButtonProps } from '
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ButtonProps } from '../features/button/public';
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
|
|
6
6
|
export type CameraPermissionStatus = 'unknown' | 'requesting' | 'granted' | 'denied';
|
|
7
7
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
|
+
|
|
5
|
+
export interface SectionHeaderProps extends ZoraBaseProps {
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
eyebrow?: React.ReactNode;
|
|
9
|
+
actions?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ScreenSectionProps extends ZoraBaseProps {
|
|
13
|
+
title?: React.ReactNode;
|
|
14
|
+
description?: React.ReactNode;
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
|
-
import type { ZoraColor } from '
|
|
5
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { ZoraColor } from '../internal/recipes';
|
|
5
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
6
6
|
|
|
7
7
|
export interface TimelineItem {
|
|
8
8
|
id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
|
|
6
6
|
export interface TreeItemNode<TId extends string = string> {
|
|
7
7
|
id: TId;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenSection.d.ts","sourceRoot":"","sources":["../../../../../src/features/layout/adapters/inbound/ScreenSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAqBnE,gFAAgF;AAChF,eAAO,MAAM,aAAa,0DAAyC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenSection.js","sourceRoot":"","sources":["../../../../../src/features/layout/adapters/inbound/ScreenSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE1E,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,SAAS,kBAAkB,CAAC,EAC1B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,KAAK,EACL,WAAW,EACX,OAAO,EACP,QAAQ,EACR,MAAM,GACa;IACnB,OAAO,CACL,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAC3B;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAG,CAAC,CAAC,CAAC,IAAI,CAC3F;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { SectionHeader } from '../../../../patterns/section-header';\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { ScreenSectionProps } from '../../../../types/layout';\nimport { View } from './View';\n\nfunction ScreenSectionInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n title,\n description,\n actions,\n children,\n testID,\n}: ScreenSectionProps) {\n return (\n <View gap=\"m\" testID={testID}>\n {title ? <SectionHeader actions={actions} description={description} title={title} /> : null}\n {children}\n </View>\n );\n}\n\n/*** Screen section with optional heading, description, actions, and content. */\nexport const ScreenSection = withZoraThemeScope(ScreenSectionInner);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenSectionMeta.d.ts","sourceRoot":"","sources":["../../../src/features/layout/screenSectionMeta.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenSectionMeta.js","sourceRoot":"","sources":["../../../src/features/layout/screenSectionMeta.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,QAAQ;IAClB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,CAAC,GAAG,+BAA+B,CAAC;IACrD,SAAS,EAAE;QACT,KAAK,EAAE,gBAAgB;QACvB,YAAY,EAAE;YACZ,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,sBAAsB;SACpC;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,SAAS;SACnB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE,sBAAsB;SAChC;KACF;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\nimport { SCREEN_SECTION_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';\n\nexport const screenSectionMeta = {\n name: 'ScreenSection',\n category: 'layout',\n directManifestNode: true,\n allowedChildren: [...SCREEN_SECTION_ALLOWED_CHILDREN],\n blueprint: {\n label: 'Screen section',\n defaultProps: {\n title: 'Section',\n description: 'Section description.',\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Section',\n },\n description: {\n type: 'string',\n category: 'Content',\n label: 'Description',\n default: 'Section description.',\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatListItem.d.ts","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/ChatListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAkB,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAoNjE;;;;GAIG;AACH,eAAO,MAAM,YAAY,yDAAwC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatListItem.js","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/ChatListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,IAA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ACR,CAAC;IACJ,CAAC,CAAC;IAEF,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;IAED,OAAO,CACL,CAAC,UAAU,CACT,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,iBAAiB,CAAC,QAAQ,CAC1B,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAC3C,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,MAAM,CAAC,GAAG,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CAEf;MAAA,CAAC,CAAC,KAAK,EAAE,EAAE,CACT,OAAO,CAAC;YACN,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,OAAO,EAAE,KAAK,CAAC,OAAO;SACvB,CACH,CACF;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import { ButtonBase } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { Avatar } from '../../features/avatar/public';\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 { ChatListAvatar, ChatListItemProps } from './types';\n\nfunction resolveAvatarName({\n avatar,\n title,\n}: {\n avatar: ChatListAvatar | undefined;\n title: React.ReactNode;\n}): string | undefined {\n if (avatar?.name) {\n return avatar.name;\n }\n\n return typeof title === 'string' ? title : undefined;\n}\n\nfunction resolvePadding(compact: boolean) {\n return compact ? { px: 'm' as const, py: 's' as const } : { px: 'm' as const, py: 'm' as const };\n}\n\nfunction resolveContainerStyles({\n theme,\n selected,\n pressed,\n hovered,\n disabled,\n}: {\n theme: ReturnType<typeof useZoraTheme>['theme'];\n selected: boolean;\n pressed: boolean;\n hovered: boolean;\n disabled: boolean;\n}) {\n const borderColor = selected ? theme.semantics.border.focus : 'transparent';\n\n return {\n bg: pressed\n ? theme.semantics.neutral.surfaceActive\n : hovered\n ? theme.semantics.neutral.surfaceHover\n : selected\n ? theme.semantics.neutral.surface\n : 'transparent',\n borderColor,\n borderWidth: selected ? 1 : 0,\n opacity: disabled ? 0.72 : 1,\n };\n}\n\nfunction renderUnreadCount(unreadCount: React.ReactNode) {\n if (unreadCount == null) {\n return null;\n }\n\n return (\n <Badge size=\"s\" color=\"primary\">\n {unreadCount}\n </Badge>\n );\n}\n\nfunction ChatListItemInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy,\n testID,\n title,\n preview,\n meta,\n timestamp,\n avatar,\n leading,\n trailing,\n unread = false,\n unreadCount,\n selected = false,\n disabled = false,\n compact = false,\n accessibilityLabel,\n onPress,\n}: ChatListItemProps) {\n const { theme } = useZoraTheme();\n const padding = resolvePadding(compact);\n const avatarName = resolveAvatarName({ avatar, title });\n const isInteractive = Boolean(onPress);\n const hasTimestamp = timestamp != null;\n const hasPreview = preview != null;\n const hasMeta = meta != null;\n const hasTrailing = trailing != null;\n const hasUnreadCount = unreadCount != null;\n const hasSecondaryRow = hasPreview || hasMeta || hasUnreadCount || hasTrailing;\n\n const content = ({ pressed, hovered }: { pressed: boolean; hovered: boolean }) => {\n const styles = resolveContainerStyles({\n theme,\n selected,\n pressed,\n hovered,\n disabled,\n });\n\n return (\n <View\n bg={styles.bg}\n borderColor={styles.borderColor}\n borderWidth={styles.borderWidth}\n px={padding.px}\n py={padding.py}\n radius=\"m\"\n style={{ opacity: styles.opacity }}\n >\n <View direction=\"row\" align=\"center\" gap=\"m\" wrap=\"nowrap\">\n {leading ?? (\n <Avatar\n initials={avatar?.initials}\n label={avatar?.label ?? avatarName}\n name={avatarName}\n shape={avatar?.shape}\n size={avatar?.size ?? (compact ? 's' : 'm')}\n source={avatar?.source}\n color={avatar?.color}\n />\n )}\n\n <View flex={1}>\n <View gap=\"xxs\">\n <View direction=\"row\" align=\"center\" gap=\"s\" justify=\"space-between\" wrap=\"nowrap\">\n <View flex={1}>\n <Text\n numberOfLines={1}\n emphasis={disabled ? 'muted' : 'default'}\n variant=\"bodySmall\"\n weight={unread || selected ? 'semiBold' : 'medium'}\n >\n {title}\n </Text>\n </View>\n {hasTimestamp ? (\n <Text\n numberOfLines={1}\n color={unread ? 'primary' : undefined}\n emphasis={unread ? 'default' : 'subtle'}\n variant=\"caption\"\n weight={unread ? 'semiBold' : 'regular'}\n >\n {timestamp}\n </Text>\n ) : null}\n </View>\n\n {hasSecondaryRow ? (\n <View direction=\"row\" align=\"center\" gap=\"s\" justify=\"space-between\" wrap=\"nowrap\">\n <View flex={1}>\n <View gap=\"xxs\">\n {hasPreview ? (\n <Text\n numberOfLines={1}\n emphasis={unread ? 'default' : 'muted'}\n variant=\"bodySmall\"\n weight={unread ? 'medium' : 'regular'}\n >\n {preview}\n </Text>\n ) : null}\n {hasMeta ? (\n <Text numberOfLines={1} emphasis=\"subtle\" variant=\"caption\">\n {meta}\n </Text>\n ) : null}\n </View>\n </View>\n\n {hasUnreadCount || hasTrailing ? (\n <View direction=\"row\" align=\"center\" gap=\"s\" wrap=\"nowrap\">\n {renderUnreadCount(unreadCount)}\n {trailing}\n </View>\n ) : null}\n </View>\n ) : null}\n </View>\n </View>\n </View>\n </View>\n );\n };\n\n if (!isInteractive) {\n return <View testID={testID}>{content({ pressed: false, hovered: false })}</View>;\n }\n\n return (\n <ButtonBase\n accessibilityLabel={accessibilityLabel}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled, selected }}\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={onPress}\n radius=\"m\"\n testID={testID}\n >\n {(state) =>\n content({\n pressed: state.pressed,\n hovered: state.hovered,\n })\n }\n </ButtonBase>\n );\n}\n\n/***\n * Chat-style list row with avatar, title, preview text, and unread indicators.\n *\n \n */\nexport const ChatListItem = withZoraThemeScope(ChatListItemInner);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC","sourcesContent":["export { ChatListItem } from './ChatListItem';\nexport type { ChatListAvatar, ChatListItemProps } from './types';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuES,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,yFAAyF;IAC3F,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE;QACT,KAAK,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ZoraComponentMeta } from '../../metadata';\n\nexport const chatListItemMeta = {\n name: 'ChatListItem',\n category: 'pattern',\n description:\n 'Conversation preview row with avatar, title, preview text, timestamp, and unread state.',\n directManifestNode: true,\n allowedChildren: [],\n blueprint: {\n label: 'Chat list item',\n icon: { name: 'chatbubble-outline' },\n defaultProps: {\n title: 'Ada Lovelace',\n preview: 'Can you review the latest UI update?',\n timestamp: '2m',\n avatar: {\n name: 'Ada Lovelace',\n },\n },\n },\n props: {\n title: {\n type: 'string',\n category: 'Content',\n label: 'Title',\n default: 'Ada Lovelace',\n },\n preview: {\n type: 'string',\n category: 'Content',\n label: 'Preview',\n },\n meta: {\n type: 'string',\n category: 'Content',\n label: 'Meta',\n },\n timestamp: {\n type: 'string',\n category: 'Content',\n label: 'Timestamp',\n },\n unread: {\n type: 'boolean',\n category: 'State',\n label: 'Unread',\n default: false,\n },\n unreadCount: {\n type: 'string',\n category: 'State',\n label: 'Unread count',\n },\n selected: {\n type: 'boolean',\n category: 'State',\n label: 'Selected',\n default: false,\n },\n disabled: {\n type: 'boolean',\n category: 'State',\n label: 'Disabled',\n default: false,\n },\n compact: {\n type: 'boolean',\n category: 'Layout',\n label: 'Compact',\n default: false,\n },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ImageSourcePropType } from 'react-native';
|
|
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
|
-
}
|
|
31
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/types.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,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,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,iBAAkB,SAAQ,aAAa;IACtD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE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