@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
|
@@ -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,YAA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able } 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 <Pressable\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 </Pressable>\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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,KAAK;SACf;KACF;CACmC,CAAC","sourcesContent":["import type { 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,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/chat-list-item/types.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"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionEditor.d.ts","sourceRoot":"","sources":["../../../src/patterns/collection-editor/CollectionEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AA4GrD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GA/GE,KAAK,mEA+GqC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionEditor.js","sourceRoot":"","sources":["../../../src/patterns/collection-editor/CollectionEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,SAAS,qBAAqB,CAAQ,EACpC,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,KAAK,EACL,QAAQ,EACR,MAAM,EACN,QAAQ,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GAAG,CAAC,CAAC,CACjD,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CACxC,IAAI,CAAC,GAAG,CACR,OAAO,CAAC,OAAO,EAEnB;oBAAA,GAAG,CACJ,CAAC,CAAC,CAAC,IAAI,CACR;kBAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,CACV,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAChC,KAAK,CAAC,QAAQ,CACd,KAAK,CAAC,QAAQ,CACd,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAC/B,IAAI,CAAC,GAAG,CACR,OAAO,CAAC,OAAO,EACf,CACH,CAAC,CAAC,CAAC,IAAI,CACV;gBAAA,EAAE,IAAI,CACR;cAAA,EAAE,IAAI,CACR;YAAA,EAAE,IAAI,CAAC,CACR,CAAC,CACH,CACH;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,qBAAqB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { IconButton } from '../../features/button/public';\nimport { View } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Panel } from '../panel';\nimport type { CollectionEditorProps } from './types';\n\nfunction CollectionEditorInner<TItem>({\n themeId: _themeId,\n mode: _mode,\n title,\n description,\n items,\n renderItem,\n onAdd,\n onRemove,\n onMove,\n addLabel = 'Add Item',\n emptyLabel = 'No items yet.',\n disabled,\n testID,\n interactionPolicy,\n}: CollectionEditorProps<TItem>) {\n const isEmpty = items.length === 0;\n\n return (\n <Panel\n compact\n description={description}\n interactionPolicy={interactionPolicy}\n testID={testID}\n title={title}\n actions={\n onAdd ? (\n <Button\n variant=\"soft\"\n size=\"s\"\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={onAdd}\n >\n {addLabel}\n </Button>\n ) : null\n }\n >\n <View gap=\"s\">\n {isEmpty ? (\n <View py=\"m\">\n <Text align=\"center\" emphasis=\"muted\">\n {emptyLabel}\n </Text>\n </View>\n ) : (\n items.map((item, index) => (\n <View key={index} bg=\"subtle\" p=\"s\" radius=\"m\" borderColor=\"border\" borderWidth={1}>\n <View direction=\"row\" gap=\"m\" align=\"center\">\n <View flex={1}>\n {renderItem({\n item,\n index,\n remove: () => onRemove?.(index),\n moveUp: () => onMove?.(index, index - 1),\n moveDown: () => onMove?.(index, index + 1),\n canMoveUp: index > 0,\n canMoveDown: index < items.length - 1,\n })}\n </View>\n <View direction=\"row\" gap=\"xs\">\n {onMove ? (\n <>\n <IconButton\n icon={{ name: 'arrow-up-outline' }}\n label=\"Move Up\"\n disabled={disabled ?? index === 0}\n interactionPolicy={interactionPolicy}\n onPress={() => onMove(index, index - 1)}\n size=\"s\"\n variant=\"ghost\"\n />\n <IconButton\n icon={{ name: 'arrow-down-outline' }}\n label=\"Move Down\"\n disabled={disabled ?? index === items.length - 1}\n interactionPolicy={interactionPolicy}\n onPress={() => onMove(index, index + 1)}\n size=\"s\"\n variant=\"ghost\"\n />\n </>\n ) : null}\n {onRemove ? (\n <IconButton\n icon={{ name: 'trash-outline' }}\n label=\"Remove\"\n color=\"danger\"\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={() => onRemove(index)}\n size=\"s\"\n variant=\"ghost\"\n />\n ) : null}\n </View>\n </View>\n </View>\n ))\n )}\n </View>\n </Panel>\n );\n}\n\n/***\n * Editor pattern for adding, removing, and reordering a collection of items.\n *\n \n */\nexport const CollectionEditor = withZoraThemeScope(CollectionEditorInner);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/collection-editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/collection-editor/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC","sourcesContent":["export * from './CollectionEditor';\nexport * from './types';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/collection-editor/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;CAOK,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/collection-editor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,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,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/collection-editor/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\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\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\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"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ConfirmDialogProps } from './types';
|
|
3
|
-
/***
|
|
4
|
-
* Confirmation dialog pattern with cancel/confirm actions.
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
export declare const ConfirmDialog: (props: ConfirmDialogProps) => React.ReactElement | null;
|
|
9
|
-
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAyDlD;;;;GAIG;AACH,eAAO,MAAM,aAAa,0DAAyC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Button } from '../../features/button/public';
|
|
3
|
-
import { Dialog } from '../../features/dialog/public';
|
|
4
|
-
import { View } from '../../features/layout/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
function ConfirmDialogInner({ themeId: _themeId, mode: _mode, visible, title, description, children, confirmLabel = 'Confirm', cancelLabel = 'Cancel', confirmColor = 'danger', confirmVariant = 'solid', busy = false, closeOnBackdrop = true, onConfirm, onCancel, testID, interactionPolicy, }) {
|
|
7
|
-
return (<Dialog closeOnBackdrop={closeOnBackdrop} description={description} interactionPolicy={interactionPolicy} footer={<View direction={{ base: 'column', md: 'row' }} gap="s" justify="flex-end">
|
|
8
|
-
<Button variant="soft" interactionPolicy={interactionPolicy} onPress={onCancel} color="neutral">
|
|
9
|
-
{cancelLabel}
|
|
10
|
-
</Button>
|
|
11
|
-
<Button variant={confirmVariant} loading={busy} interactionPolicy={interactionPolicy} onPress={onConfirm} color={confirmColor}>
|
|
12
|
-
{confirmLabel}
|
|
13
|
-
</Button>
|
|
14
|
-
</View>} onDismiss={onCancel} testID={testID} title={title} visible={visible} width="narrow">
|
|
15
|
-
{children}
|
|
16
|
-
</Dialog>);
|
|
17
|
-
}
|
|
18
|
-
/***
|
|
19
|
-
* Confirmation dialog pattern with cancel/confirm actions.
|
|
20
|
-
*
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
export const ConfirmDialog = withZoraThemeScope(ConfirmDialogInner);
|
|
24
|
-
//# sourceMappingURL=ConfirmDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.js","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,kBAAkB,CAAC,EAC1B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,YAAY,GAAG,SAAS,EACxB,WAAW,GAAG,QAAQ,EACtB,YAAY,GAAG,QAAQ,EACvB,cAAc,GAAG,OAAO,EACxB,IAAI,GAAG,KAAK,EACZ,eAAe,GAAG,IAAI,EACtB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,iBAAiB,GACE;IACnB,OAAO,CACL,CAAC,MAAM,CACL,eAAe,CAAC,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,MAAM,CAAC,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CACxE;UAAA,CAAC,MAAM,CACL,OAAO,CAAC,MAAM,CACd,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,KAAK,CAAC,SAAS,CAEf;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,MAAM,CACR;UAAA,CAAC,MAAM,CACL,OAAO,CAAC,CAAC,cAAc,CAAC,CACxB,OAAO,CAAC,CAAC,IAAI,CAAC,CACd,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,SAAS,CAAC,CACnB,KAAK,CAAC,CAAC,YAAY,CAAC,CAEpB;YAAA,CAAC,YAAY,CACf;UAAA,EAAE,MAAM,CACV;QAAA,EAAE,IAAI,CACR,CAAC,CACD,SAAS,CAAC,CAAC,QAAQ,CAAC,CACpB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,KAAK,CAAC,QAAQ,CAEd;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { Dialog } from '../../features/dialog/public';\nimport { View } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ConfirmDialogProps } from './types';\n\nfunction ConfirmDialogInner({\n themeId: _themeId,\n mode: _mode,\n visible,\n title,\n description,\n children,\n confirmLabel = 'Confirm',\n cancelLabel = 'Cancel',\n confirmColor = 'danger',\n confirmVariant = 'solid',\n busy = false,\n closeOnBackdrop = true,\n onConfirm,\n onCancel,\n testID,\n interactionPolicy,\n}: ConfirmDialogProps) {\n return (\n <Dialog\n closeOnBackdrop={closeOnBackdrop}\n description={description}\n interactionPolicy={interactionPolicy}\n footer={\n <View direction={{ base: 'column', md: 'row' }} gap=\"s\" justify=\"flex-end\">\n <Button\n variant=\"soft\"\n interactionPolicy={interactionPolicy}\n onPress={onCancel}\n color=\"neutral\"\n >\n {cancelLabel}\n </Button>\n <Button\n variant={confirmVariant}\n loading={busy}\n interactionPolicy={interactionPolicy}\n onPress={onConfirm}\n color={confirmColor}\n >\n {confirmLabel}\n </Button>\n </View>\n }\n onDismiss={onCancel}\n testID={testID}\n title={title}\n visible={visible}\n width=\"narrow\"\n >\n {children}\n </Dialog>\n );\n}\n\n/***\n * Confirmation dialog pattern with cancel/confirm actions.\n *\n \n */\nexport const ConfirmDialog = withZoraThemeScope(ConfirmDialogInner);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["export { ConfirmDialog } from './ConfirmDialog';\nexport type { ConfirmDialogProps } from './types';\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const confirmDialogMeta: {
|
|
2
|
-
readonly name: "ConfirmDialog";
|
|
3
|
-
readonly category: "pattern";
|
|
4
|
-
readonly directManifestNode: false;
|
|
5
|
-
readonly allowedChildren: readonly [];
|
|
6
|
-
readonly note: "Dialog pattern; not represented as a manifest node in v1.";
|
|
7
|
-
readonly props: {};
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;CAOQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,2DAA2D;IACjE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const confirmDialogMeta = {\n name: 'ConfirmDialog',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Dialog pattern; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
import type { ZoraButtonVariant, ZoraColor } from '../../internal/recipes';
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
|
-
export interface ConfirmDialogProps extends ZoraBaseProps {
|
|
5
|
-
visible: boolean;
|
|
6
|
-
title: React.ReactNode;
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
confirmLabel?: React.ReactNode;
|
|
10
|
-
cancelLabel?: React.ReactNode;
|
|
11
|
-
confirmColor?: ZoraColor;
|
|
12
|
-
confirmVariant?: ZoraButtonVariant;
|
|
13
|
-
busy?: boolean;
|
|
14
|
-
closeOnBackdrop?: boolean;
|
|
15
|
-
onConfirm?: () => void;
|
|
16
|
-
onCancel?: () => void;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/confirm-dialog/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ZoraButtonVariant, ZoraColor } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ConfirmDialogProps extends ZoraBaseProps {\n visible: boolean;\n title: React.ReactNode;\n description?: React.ReactNode;\n children?: React.ReactNode;\n confirmLabel?: React.ReactNode;\n cancelLabel?: React.ReactNode;\n confirmColor?: ZoraColor;\n confirmVariant?: ZoraButtonVariant;\n busy?: boolean;\n closeOnBackdrop?: boolean;\n onConfirm?: () => void;\n onCancel?: () => void;\n}\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { FilterBarProps } from './types';
|
|
3
|
-
/***
|
|
4
|
-
* Horizontal filter/action bar layout with leading/trailing slots.
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
*/
|
|
8
|
-
export declare const FilterBar: (props: FilterBarProps) => React.ReactElement | null;
|
|
9
|
-
//# sourceMappingURL=FilterBar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterBar.d.ts","sourceRoot":"","sources":["../../../src/patterns/filter-bar/FilterBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAqB9C;;;;GAIG;AACH,eAAO,MAAM,SAAS,sDAAqC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { View } from '../../features/layout/public';
|
|
3
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
-
function FilterBarInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, testID, leading, trailing, children, wrap = true, }) {
|
|
5
|
-
return (<View direction="row" align="center" gap="s" testID={testID} wrap={wrap ? 'wrap' : 'nowrap'}>
|
|
6
|
-
{leading ? <View>{leading}</View> : null}
|
|
7
|
-
<View flex={1}>{children}</View>
|
|
8
|
-
{trailing ? <View>{trailing}</View> : null}
|
|
9
|
-
</View>);
|
|
10
|
-
}
|
|
11
|
-
/***
|
|
12
|
-
* Horizontal filter/action bar layout with leading/trailing slots.
|
|
13
|
-
*
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
export const FilterBar = withZoraThemeScope(FilterBarInner);
|
|
17
|
-
//# sourceMappingURL=FilterBar.js.map
|