@ankhorage/zora 16.0.0 → 17.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 +10 -0
- package/README.md +15 -15
- 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/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.js +19 -19
- package/dist/features/accordion/adapters/inbound/AccordionItem.js.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.js +6 -7
- package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.js +3 -3
- package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +3 -3
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js +3 -3
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.js +3 -3
- package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.js +3 -3
- package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.js +3 -3
- package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -1
- package/dist/features/avatar/adapters/inbound/Avatar.js +3 -3
- package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -1
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +7 -7
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -1
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +3 -3
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +5 -5
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.js +3 -3
- package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -1
- package/dist/features/card/adapters/inbound/Card.js +12 -12
- package/dist/features/card/adapters/inbound/Card.js.map +1 -1
- package/dist/features/card/adapters/inbound/MediaCard.js +21 -21
- package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.js +10 -11
- package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.js +37 -38
- package/dist/features/card/adapters/inbound/PostCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.js +17 -18
- package/dist/features/card/adapters/inbound/ProductCard.js.map +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/features/chip/adapters/inbound/Chip.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/Chip.js +5 -6
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.js +3 -3
- package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRail.d.ts.map +1 -0
- package/dist/features/{layout → content-rail}/adapters/inbound/ContentRail.js +9 -10
- package/dist/features/content-rail/adapters/inbound/ContentRail.js.map +1 -0
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.d.ts.map +1 -0
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js.map +1 -0
- package/dist/features/content-rail/constants.d.ts +2 -0
- package/dist/features/content-rail/constants.d.ts.map +1 -0
- package/dist/features/content-rail/constants.js +2 -0
- package/dist/features/content-rail/constants.js.map +1 -0
- package/dist/features/{layout → content-rail}/contentRailMeta.d.ts +2 -2
- package/dist/features/content-rail/contentRailMeta.d.ts.map +1 -0
- package/dist/features/content-rail/contentRailMeta.js.map +1 -0
- package/dist/features/content-rail/public.d.ts +3 -0
- package/dist/features/content-rail/public.d.ts.map +1 -0
- package/dist/features/content-rail/public.js +2 -0
- package/dist/features/content-rail/public.js.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailItemWidth.d.ts.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailItemWidth.js.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailPhysicalOffset.d.ts.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailPhysicalOffset.js.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailState.d.ts.map +1 -0
- package/dist/features/content-rail/utils/resolveContentRailState.js.map +1 -0
- package/dist/features/content-rail/utils/useContentRailReducedMotion.d.ts.map +1 -0
- package/dist/features/content-rail/utils/useContentRailReducedMotion.js.map +1 -0
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +32 -32
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
- package/dist/features/date-picker/composition/DatePickerContent.js +16 -16
- package/dist/features/date-picker/composition/DatePickerContent.js.map +1 -1
- package/dist/features/date-picker/composition/DatePickerField.js +3 -3
- package/dist/features/date-picker/composition/DatePickerField.js.map +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.js +9 -9
- package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/empty-state/adapters/inbound/EmptyState.js +5 -5
- package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
- package/dist/features/form/adapters/inbound/Form.js +3 -3
- package/dist/features/form/adapters/inbound/Form.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormActions.js +4 -4
- package/dist/features/form/adapters/inbound/FormActions.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormError.js +3 -3
- package/dist/features/form/adapters/inbound/FormError.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormField.js +3 -3
- package/dist/features/form/adapters/inbound/FormField.js.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +5 -6
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js +10 -10
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js +3 -3
- package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.js +5 -5
- package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -1
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/hero/adapters/inbound/Hero.js +12 -12
- package/dist/features/hero/adapters/inbound/Hero.js.map +1 -1
- package/dist/features/image/adapters/inbound/Image.js +3 -3
- package/dist/features/image/adapters/inbound/Image.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/AppShell.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/AppShell.js +20 -0
- package/dist/features/layout/adapters/inbound/AppShell.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Screen.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Screen.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Screen.js +22 -0
- package/dist/features/layout/adapters/inbound/Screen.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ScreenSection.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/ScreenSection.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ScreenSection.js +13 -0
- package/dist/features/layout/adapters/inbound/ScreenSection.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ScrollView.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/ScrollView.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ScrollView.js +10 -0
- package/dist/features/layout/adapters/inbound/ScrollView.js.map +1 -0
- package/dist/features/layout/adapters/inbound/View.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/View.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/View.js +10 -0
- package/dist/features/layout/adapters/inbound/View.js.map +1 -0
- package/dist/{layout/app-shell/meta.d.ts → features/layout/appShellMeta.d.ts} +1 -1
- package/dist/features/layout/appShellMeta.d.ts.map +1 -0
- package/dist/{layout/app-shell/meta.js → features/layout/appShellMeta.js} +1 -1
- package/dist/features/layout/appShellMeta.js.map +1 -0
- package/dist/features/layout/constants.d.ts +0 -1
- package/dist/features/layout/constants.d.ts.map +1 -1
- package/dist/features/layout/constants.js +0 -1
- package/dist/features/layout/constants.js.map +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/public.d.ts +6 -6
- package/dist/features/layout/public.d.ts.map +1 -1
- package/dist/features/layout/public.js +5 -4
- package/dist/features/layout/public.js.map +1 -1
- package/dist/{layout/screen/meta.d.ts → features/layout/screenMeta.d.ts} +2 -2
- package/dist/features/layout/screenMeta.d.ts.map +1 -0
- package/dist/{layout/screen/meta.js → features/layout/screenMeta.js} +1 -1
- package/dist/features/layout/screenMeta.js.map +1 -0
- package/dist/{layout/screen-section/meta.d.ts → features/layout/screenSectionMeta.d.ts} +2 -2
- package/dist/features/layout/screenSectionMeta.d.ts.map +1 -0
- package/dist/{layout/screen-section/meta.js → features/layout/screenSectionMeta.js} +1 -1
- package/dist/features/layout/screenSectionMeta.js.map +1 -0
- package/dist/features/layout/{boxMeta.d.ts → scrollViewMeta.d.ts} +8 -15
- package/dist/features/layout/scrollViewMeta.d.ts.map +1 -0
- package/dist/features/layout/{boxMeta.js → scrollViewMeta.js} +4 -6
- package/dist/features/layout/scrollViewMeta.js.map +1 -0
- package/dist/features/layout/{stackMeta.d.ts → viewMeta.d.ts} +24 -4
- package/dist/features/layout/viewMeta.d.ts.map +1 -0
- package/dist/features/layout/{stackMeta.js → viewMeta.js} +8 -3
- package/dist/features/layout/viewMeta.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.js +5 -5
- package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js +3 -3
- package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -1
- package/dist/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.d.ts +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.d.ts.map +1 -0
- package/dist/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.js +10 -10
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js.map +1 -0
- package/dist/features/palette-item/paletteItemMeta.d.ts +9 -0
- package/dist/features/palette-item/paletteItemMeta.d.ts.map +1 -0
- package/dist/features/palette-item/paletteItemMeta.js +9 -0
- package/dist/features/palette-item/paletteItemMeta.js.map +1 -0
- package/dist/features/palette-item/public.d.ts +3 -0
- package/dist/features/palette-item/public.d.ts.map +1 -0
- package/dist/features/palette-item/public.js +2 -0
- package/dist/features/palette-item/public.js.map +1 -0
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +2 -2
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -1
- package/dist/features/progress/adapters/inbound/Progress.js +4 -4
- package/dist/features/progress/adapters/inbound/Progress.js.map +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.js +10 -10
- package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.js +3 -3
- package/dist/features/rating/adapters/inbound/Rating.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.js +2 -2
- package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +5 -5
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js +3 -3
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/time-picker/composition/TimePickerContent.js +7 -7
- package/dist/features/time-picker/composition/TimePickerContent.js.map +1 -1
- package/dist/features/time-picker/composition/TimePickerField.js +3 -3
- package/dist/features/time-picker/composition/TimePickerField.js.map +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.js +3 -3
- package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +19 -19
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/index.d.ts +6 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -11
- 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 +4 -6
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +2 -2
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +9 -22
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.js +22 -23
- package/dist/patterns/chat-list-item/ChatListItem.js.map +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.js +12 -12
- package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +3 -3
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.d.ts.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.js +6 -7
- package/dist/patterns/filter-bar/FilterBar.js.map +1 -1
- package/dist/patterns/inspector-field/InspectorField.js +5 -5
- package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
- package/dist/patterns/list/List.d.ts.map +1 -1
- package/dist/patterns/list/List.js +6 -7
- package/dist/patterns/list/List.js.map +1 -1
- package/dist/patterns/list/ListRow.d.ts.map +1 -1
- package/dist/patterns/list/ListRow.js +16 -17
- package/dist/patterns/list/ListRow.js.map +1 -1
- package/dist/patterns/list/ListSection.js +3 -3
- package/dist/patterns/list/ListSection.js.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.d.ts.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.js +21 -20
- package/dist/patterns/message-bubble/MessageBubble.js.map +1 -1
- package/dist/patterns/message-bubble/meta.d.ts +1 -1
- package/dist/patterns/notice/Notice.js +5 -5
- package/dist/patterns/notice/Notice.js.map +1 -1
- package/dist/patterns/notice/meta.d.ts +1 -1
- package/dist/patterns/panel/meta.d.ts +1 -1
- package/dist/patterns/reader/ReaderSurface.d.ts.map +1 -1
- package/dist/patterns/reader/ReaderSurface.js +18 -19
- package/dist/patterns/reader/ReaderSurface.js.map +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/BarcodeScannerView.js +7 -7
- package/dist/patterns/scanner/BarcodeScannerView.js.map +1 -1
- package/dist/patterns/scanner/CameraPermissionView.js +5 -5
- package/dist/patterns/scanner/CameraPermissionView.js.map +1 -1
- package/dist/patterns/scanner/ScanOverlay.js +8 -8
- package/dist/patterns/scanner/ScanOverlay.js.map +1 -1
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/patterns/section-header/SectionHeader.js +8 -8
- package/dist/patterns/section-header/SectionHeader.js.map +1 -1
- package/dist/patterns/switch-field/SwitchField.d.ts +1 -1
- package/dist/patterns/switch-field/SwitchField.js +3 -3
- package/dist/patterns/switch-field/SwitchField.js.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +30 -30
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/patterns/timeline/Timeline.d.ts.map +1 -1
- package/dist/patterns/timeline/Timeline.js +14 -15
- package/dist/patterns/timeline/Timeline.js.map +1 -1
- package/dist/patterns/tree-view/TreeItem.d.ts.map +1 -1
- package/dist/patterns/tree-view/TreeItem.js +9 -9
- package/dist/patterns/tree-view/TreeItem.js.map +1 -1
- package/dist/patterns/tree-view/TreeView.js +3 -3
- package/dist/patterns/tree-view/TreeView.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +5 -23
- package/dist/registry.js.map +1 -1
- package/dist/types/button-group.d.ts +2 -2
- package/dist/types/button-group.d.ts.map +1 -1
- package/dist/types/button-group.js.map +1 -1
- package/dist/types/gradient.d.ts +6 -6
- package/dist/types/gradient.d.ts.map +1 -1
- package/dist/types/gradient.js.map +1 -1
- package/dist/types/layout.d.ts +22 -4
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/dist/types/palette-item.d.ts +13 -0
- package/dist/types/palette-item.d.ts.map +1 -0
- package/dist/types/palette-item.js +2 -0
- package/dist/types/palette-item.js.map +1 -0
- package/dist/types/skeleton.d.ts +5 -5
- package/dist/types/skeleton.d.ts.map +1 -1
- package/dist/types/skeleton.js.map +1 -1
- package/package.json +2 -2
- package/src/audit.test.ts +7 -11
- package/src/constants.ts +2 -1
- package/src/expo57Migration.test.ts +4 -3
- package/src/features/accordion/adapters/inbound/AccordionItem.tsx +19 -19
- package/src/features/app-bar/adapters/inbound/AppBar.tsx +6 -7
- package/src/features/auth/adapters/inbound/AuthForm.tsx +3 -3
- package/src/features/auth/adapters/inbound/ForgotPasswordForm.tsx +3 -3
- package/src/features/auth/adapters/inbound/OAuthProviderList.tsx +3 -3
- package/src/features/auth/adapters/inbound/OtpForm.tsx +3 -3
- package/src/features/auth/adapters/inbound/SignInForm.tsx +3 -3
- package/src/features/auth/adapters/inbound/SignUpForm.tsx +3 -3
- package/src/features/avatar/adapters/inbound/Avatar.tsx +3 -3
- package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +7 -7
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +3 -3
- package/src/features/bottom-sheet/public.test.ts +1 -1
- package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +5 -5
- package/src/features/button/adapters/inbound/ButtonGroup.tsx +3 -3
- package/src/features/card/adapters/inbound/Card.tsx +12 -12
- package/src/features/card/adapters/inbound/MediaCard.tsx +21 -21
- package/src/features/card/adapters/inbound/MetricCard.tsx +10 -11
- package/src/features/card/adapters/inbound/PostCard.tsx +37 -38
- package/src/features/card/adapters/inbound/ProductCard.tsx +17 -18
- package/src/features/chip/adapters/inbound/Chip.tsx +5 -6
- package/src/features/chip/adapters/inbound/ChipGroup.tsx +3 -3
- package/src/features/{layout → content-rail}/adapters/inbound/ContentRail.test.ts +3 -1
- package/src/features/{layout → content-rail}/adapters/inbound/ContentRail.tsx +9 -10
- package/src/features/content-rail/constants.ts +1 -0
- package/src/features/content-rail/public.ts +10 -0
- package/src/features/data-table/adapters/inbound/DataTable.tsx +32 -32
- package/src/features/date-picker/composition/DatePickerContent.tsx +16 -16
- package/src/features/date-picker/composition/DatePickerField.tsx +3 -3
- package/src/features/dialog/adapters/inbound/Dialog.tsx +9 -9
- package/src/features/empty-state/adapters/inbound/EmptyState.tsx +5 -5
- package/src/features/form/adapters/inbound/Form.tsx +3 -3
- package/src/features/form/adapters/inbound/FormActions.tsx +4 -4
- package/src/features/form/adapters/inbound/FormError.tsx +3 -3
- package/src/features/form/adapters/inbound/FormField.tsx +3 -3
- package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +5 -6
- package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +10 -10
- package/src/features/form/select/adapters/inbound/Select.web.tsx +3 -3
- package/src/features/gradient/adapters/inbound/Gradient.tsx +5 -5
- package/src/features/hero/adapters/inbound/Hero.tsx +12 -12
- package/src/features/icon/utils/meta.test.ts +2 -3
- package/src/features/image/adapters/inbound/Image.tsx +3 -3
- package/src/features/layout/adapters/inbound/AppShell.test.ts +24 -0
- package/src/features/layout/adapters/inbound/AppShell.tsx +44 -0
- package/src/features/layout/adapters/inbound/Screen.tsx +50 -0
- package/src/{layout/screen-section → features/layout/adapters/inbound}/ScreenSection.tsx +7 -11
- package/src/features/layout/adapters/inbound/ScrollView.tsx +18 -0
- package/src/features/layout/adapters/inbound/View.tsx +18 -0
- package/src/features/layout/constants.ts +0 -2
- package/src/features/layout/public.test.ts +55 -0
- package/src/features/layout/public.ts +10 -16
- package/src/features/layout/{containerMeta.ts → scrollViewMeta.ts} +6 -3
- package/src/features/layout/{stackMeta.ts → viewMeta.ts} +7 -2
- package/src/features/missing-element/adapters/inbound/MissingElement.tsx +5 -5
- package/src/features/pagination/adapters/inbound/Pagination.tsx +3 -3
- package/src/{patterns/tile-grid → features/palette-item/adapters/inbound}/PaletteItem.tsx +11 -11
- package/src/{layout/sidebar-layout/meta.ts → features/palette-item/paletteItemMeta.ts} +4 -4
- package/src/features/palette-item/public.ts +2 -0
- package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +2 -2
- package/src/features/progress/adapters/inbound/Progress.tsx +4 -4
- package/src/features/progress/adapters/inbound/ProgressRing.tsx +10 -10
- package/src/features/rating/adapters/inbound/Rating.tsx +3 -3
- package/src/features/skeleton/adapters/inbound/Skeleton.tsx +2 -2
- package/src/features/skeleton/adapters/inbound/SkeletonCard.tsx +5 -5
- package/src/features/skeleton/adapters/inbound/SkeletonText.tsx +3 -3
- package/src/features/time-picker/composition/TimePickerContent.tsx +7 -7
- package/src/features/time-picker/composition/TimePickerField.tsx +3 -3
- package/src/features/toolbar/adapters/inbound/Toolbar.tsx +3 -3
- package/src/features/uploader/adapters/inbound/Uploader.tsx +19 -19
- package/src/index.ts +25 -31
- package/src/interactionPolicy.test.ts +1 -1
- package/src/metadata/allowedChildren.ts +4 -6
- package/src/metadata/componentMeta.test.ts +4 -6
- package/src/metadata/componentMeta.ts +9 -22
- package/src/metadata/radioGroupReachability.test.ts +2 -2
- package/src/patterns/chat-list-item/ChatListItem.tsx +22 -23
- package/src/patterns/collection-editor/CollectionEditor.tsx +13 -13
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +3 -3
- package/src/patterns/filter-bar/FilterBar.tsx +6 -7
- package/src/patterns/inspector-field/InspectorField.tsx +5 -5
- package/src/patterns/list/List.tsx +6 -7
- package/src/patterns/list/ListRow.tsx +16 -17
- package/src/patterns/list/ListSection.tsx +3 -3
- package/src/patterns/message-bubble/MessageBubble.tsx +23 -20
- package/src/patterns/notice/Notice.tsx +5 -5
- package/src/patterns/reader/ReaderSurface.tsx +18 -19
- package/src/patterns/scanner/BarcodeScannerView.tsx +7 -7
- package/src/patterns/scanner/CameraPermissionView.tsx +5 -5
- package/src/patterns/scanner/ScanOverlay.tsx +8 -8
- package/src/patterns/section-header/SectionHeader.tsx +8 -8
- package/src/patterns/switch-field/SwitchField.tsx +4 -4
- package/src/patterns/theme-composer/ThemeComposer.tsx +30 -30
- package/src/patterns/timeline/Timeline.tsx +21 -15
- package/src/patterns/tree-view/TreeItem.tsx +12 -11
- package/src/patterns/tree-view/TreeView.tsx +3 -3
- package/src/platformAcceptance.test.ts +1 -1
- package/src/registry.test.ts +1 -1
- package/src/registry.ts +13 -23
- package/src/showcaseCoverage.test.ts +2 -22
- package/src/theme/themeScopeStructure.test.ts +10 -31
- package/src/types/button-group.ts +2 -2
- package/src/types/gradient.ts +6 -6
- package/src/types/layout.ts +28 -7
- package/src/types/palette-item.ts +14 -0
- package/src/types/skeleton.ts +5 -5
- package/dist/features/layout/adapters/inbound/Box.d.ts +0 -5
- package/dist/features/layout/adapters/inbound/Box.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/Box.js +0 -10
- package/dist/features/layout/adapters/inbound/Box.js.map +0 -1
- package/dist/features/layout/adapters/inbound/Container.d.ts +0 -5
- package/dist/features/layout/adapters/inbound/Container.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/Container.js +0 -10
- package/dist/features/layout/adapters/inbound/Container.js.map +0 -1
- package/dist/features/layout/adapters/inbound/ContentRail.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/ContentRail.js.map +0 -1
- package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/ContentRailFlow.js.map +0 -1
- package/dist/features/layout/adapters/inbound/Stack.d.ts +0 -5
- package/dist/features/layout/adapters/inbound/Stack.d.ts.map +0 -1
- package/dist/features/layout/adapters/inbound/Stack.js +0 -10
- package/dist/features/layout/adapters/inbound/Stack.js.map +0 -1
- package/dist/features/layout/boxMeta.d.ts.map +0 -1
- package/dist/features/layout/boxMeta.js.map +0 -1
- package/dist/features/layout/containerMeta.d.ts +0 -55
- package/dist/features/layout/containerMeta.d.ts.map +0 -1
- package/dist/features/layout/containerMeta.js +0 -10
- package/dist/features/layout/containerMeta.js.map +0 -1
- package/dist/features/layout/contentRailMeta.d.ts.map +0 -1
- package/dist/features/layout/contentRailMeta.js.map +0 -1
- package/dist/features/layout/stackMeta.d.ts.map +0 -1
- package/dist/features/layout/stackMeta.js.map +0 -1
- package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts.map +0 -1
- package/dist/features/layout/utils/resolveContentRailItemWidth.js.map +0 -1
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.d.ts.map +0 -1
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.js.map +0 -1
- package/dist/features/layout/utils/resolveContentRailState.d.ts.map +0 -1
- package/dist/features/layout/utils/resolveContentRailState.js.map +0 -1
- package/dist/features/layout/utils/useContentRailReducedMotion.d.ts.map +0 -1
- package/dist/features/layout/utils/useContentRailReducedMotion.js.map +0 -1
- package/dist/foundation/Center.d.ts +0 -12
- package/dist/foundation/Center.d.ts.map +0 -1
- package/dist/foundation/Center.js +0 -13
- package/dist/foundation/Center.js.map +0 -1
- package/dist/foundation/Inline.d.ts +0 -12
- package/dist/foundation/Inline.d.ts.map +0 -1
- package/dist/foundation/Inline.js +0 -13
- package/dist/foundation/Inline.js.map +0 -1
- package/dist/foundation/Show.d.ts +0 -12
- package/dist/foundation/Show.d.ts.map +0 -1
- package/dist/foundation/Show.js +0 -13
- package/dist/foundation/Show.js.map +0 -1
- package/dist/foundation/Spacer.d.ts +0 -12
- package/dist/foundation/Spacer.d.ts.map +0 -1
- package/dist/foundation/Spacer.js +0 -13
- package/dist/foundation/Spacer.js.map +0 -1
- package/dist/foundation/index.d.ts +0 -9
- package/dist/foundation/index.d.ts.map +0 -1
- package/dist/foundation/index.js +0 -5
- package/dist/foundation/index.js.map +0 -1
- package/dist/foundation/meta.d.ts +0 -35
- package/dist/foundation/meta.d.ts.map +0 -1
- package/dist/foundation/meta.js +0 -35
- package/dist/foundation/meta.js.map +0 -1
- package/dist/layout/app-shell/AppShell.d.ts +0 -16
- package/dist/layout/app-shell/AppShell.d.ts.map +0 -1
- package/dist/layout/app-shell/AppShell.js +0 -50
- package/dist/layout/app-shell/AppShell.js.map +0 -1
- package/dist/layout/app-shell/index.d.ts +0 -3
- package/dist/layout/app-shell/index.d.ts.map +0 -1
- package/dist/layout/app-shell/index.js +0 -2
- package/dist/layout/app-shell/index.js.map +0 -1
- package/dist/layout/app-shell/meta.d.ts.map +0 -1
- package/dist/layout/app-shell/meta.js.map +0 -1
- package/dist/layout/app-shell/types.d.ts +0 -9
- package/dist/layout/app-shell/types.d.ts.map +0 -1
- package/dist/layout/app-shell/types.js +0 -2
- package/dist/layout/app-shell/types.js.map +0 -1
- package/dist/layout/screen/Screen.d.ts +0 -11
- package/dist/layout/screen/Screen.d.ts.map +0 -1
- package/dist/layout/screen/Screen.js +0 -30
- package/dist/layout/screen/Screen.js.map +0 -1
- package/dist/layout/screen/index.d.ts +0 -3
- package/dist/layout/screen/index.d.ts.map +0 -1
- package/dist/layout/screen/index.js +0 -2
- package/dist/layout/screen/index.js.map +0 -1
- package/dist/layout/screen/meta.d.ts.map +0 -1
- package/dist/layout/screen/meta.js.map +0 -1
- package/dist/layout/screen/types.d.ts +0 -10
- package/dist/layout/screen/types.d.ts.map +0 -1
- package/dist/layout/screen/types.js +0 -2
- package/dist/layout/screen/types.js.map +0 -1
- package/dist/layout/screen-section/ScreenSection.d.ts +0 -9
- package/dist/layout/screen-section/ScreenSection.d.ts.map +0 -1
- package/dist/layout/screen-section/ScreenSection.js +0 -17
- package/dist/layout/screen-section/ScreenSection.js.map +0 -1
- package/dist/layout/screen-section/index.d.ts +0 -3
- package/dist/layout/screen-section/index.d.ts.map +0 -1
- package/dist/layout/screen-section/index.js +0 -2
- package/dist/layout/screen-section/index.js.map +0 -1
- package/dist/layout/screen-section/meta.d.ts.map +0 -1
- package/dist/layout/screen-section/meta.js.map +0 -1
- package/dist/layout/screen-section/types.d.ts +0 -9
- package/dist/layout/screen-section/types.d.ts.map +0 -1
- package/dist/layout/screen-section/types.js +0 -2
- package/dist/layout/screen-section/types.js.map +0 -1
- package/dist/layout/settings-layout/SettingsLayout.d.ts +0 -7
- package/dist/layout/settings-layout/SettingsLayout.d.ts.map +0 -1
- package/dist/layout/settings-layout/SettingsLayout.js +0 -18
- package/dist/layout/settings-layout/SettingsLayout.js.map +0 -1
- package/dist/layout/settings-layout/index.d.ts +0 -3
- package/dist/layout/settings-layout/index.d.ts.map +0 -1
- package/dist/layout/settings-layout/index.js +0 -2
- package/dist/layout/settings-layout/index.js.map +0 -1
- package/dist/layout/settings-layout/meta.d.ts +0 -9
- package/dist/layout/settings-layout/meta.d.ts.map +0 -1
- package/dist/layout/settings-layout/meta.js +0 -9
- package/dist/layout/settings-layout/meta.js.map +0 -1
- package/dist/layout/settings-layout/types.d.ts +0 -10
- package/dist/layout/settings-layout/types.d.ts.map +0 -1
- package/dist/layout/settings-layout/types.js +0 -2
- package/dist/layout/settings-layout/types.js.map +0 -1
- package/dist/layout/sidebar-layout/SidebarLayout.d.ts +0 -11
- package/dist/layout/sidebar-layout/SidebarLayout.d.ts.map +0 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js +0 -27
- package/dist/layout/sidebar-layout/SidebarLayout.js.map +0 -1
- package/dist/layout/sidebar-layout/index.d.ts +0 -3
- package/dist/layout/sidebar-layout/index.d.ts.map +0 -1
- package/dist/layout/sidebar-layout/index.js +0 -2
- package/dist/layout/sidebar-layout/index.js.map +0 -1
- package/dist/layout/sidebar-layout/meta.d.ts +0 -9
- package/dist/layout/sidebar-layout/meta.d.ts.map +0 -1
- package/dist/layout/sidebar-layout/meta.js +0 -9
- package/dist/layout/sidebar-layout/meta.js.map +0 -1
- package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.d.ts +0 -14
- package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.d.ts.map +0 -1
- package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.js +0 -16
- package/dist/layout/sidebar-layout/resolveSidebarLayoutSizing.js.map +0 -1
- package/dist/layout/sidebar-layout/types.d.ts +0 -12
- package/dist/layout/sidebar-layout/types.d.ts.map +0 -1
- package/dist/layout/sidebar-layout/types.js +0 -2
- package/dist/layout/sidebar-layout/types.js.map +0 -1
- package/dist/layout/topbar-layout/TopbarLayout.d.ts +0 -9
- package/dist/layout/topbar-layout/TopbarLayout.d.ts.map +0 -1
- package/dist/layout/topbar-layout/TopbarLayout.js +0 -17
- package/dist/layout/topbar-layout/TopbarLayout.js.map +0 -1
- package/dist/layout/topbar-layout/index.d.ts +0 -3
- package/dist/layout/topbar-layout/index.d.ts.map +0 -1
- package/dist/layout/topbar-layout/index.js +0 -2
- package/dist/layout/topbar-layout/index.js.map +0 -1
- package/dist/layout/topbar-layout/meta.d.ts +0 -9
- package/dist/layout/topbar-layout/meta.d.ts.map +0 -1
- package/dist/layout/topbar-layout/meta.js +0 -9
- package/dist/layout/topbar-layout/meta.js.map +0 -1
- package/dist/layout/topbar-layout/types.d.ts +0 -8
- package/dist/layout/topbar-layout/types.d.ts.map +0 -1
- package/dist/layout/topbar-layout/types.js +0 -2
- package/dist/layout/topbar-layout/types.js.map +0 -1
- package/dist/patterns/settings-row/SettingsRow.d.ts +0 -9
- package/dist/patterns/settings-row/SettingsRow.d.ts.map +0 -1
- package/dist/patterns/settings-row/SettingsRow.js +0 -24
- package/dist/patterns/settings-row/SettingsRow.js.map +0 -1
- package/dist/patterns/settings-row/index.d.ts +0 -3
- package/dist/patterns/settings-row/index.d.ts.map +0 -1
- package/dist/patterns/settings-row/index.js +0 -2
- package/dist/patterns/settings-row/index.js.map +0 -1
- package/dist/patterns/settings-row/meta.d.ts +0 -39
- package/dist/patterns/settings-row/meta.d.ts.map +0 -1
- package/dist/patterns/settings-row/meta.js +0 -39
- package/dist/patterns/settings-row/meta.js.map +0 -1
- package/dist/patterns/settings-row/types.d.ts +0 -23
- package/dist/patterns/settings-row/types.d.ts.map +0 -1
- package/dist/patterns/settings-row/types.js +0 -2
- package/dist/patterns/settings-row/types.js.map +0 -1
- package/dist/patterns/tile-grid/PaletteItem.d.ts.map +0 -1
- package/dist/patterns/tile-grid/PaletteItem.js.map +0 -1
- package/dist/patterns/tile-grid/TileGrid.d.ts +0 -9
- package/dist/patterns/tile-grid/TileGrid.d.ts.map +0 -1
- package/dist/patterns/tile-grid/TileGrid.js +0 -33
- package/dist/patterns/tile-grid/TileGrid.js.map +0 -1
- package/dist/patterns/tile-grid/index.d.ts +0 -4
- package/dist/patterns/tile-grid/index.d.ts.map +0 -1
- package/dist/patterns/tile-grid/index.js +0 -4
- package/dist/patterns/tile-grid/index.js.map +0 -1
- package/dist/patterns/tile-grid/meta.d.ts +0 -17
- package/dist/patterns/tile-grid/meta.d.ts.map +0 -1
- package/dist/patterns/tile-grid/meta.js +0 -18
- package/dist/patterns/tile-grid/meta.js.map +0 -1
- package/dist/patterns/tile-grid/types.d.ts +0 -18
- package/dist/patterns/tile-grid/types.d.ts.map +0 -1
- package/dist/patterns/tile-grid/types.js +0 -2
- package/dist/patterns/tile-grid/types.js.map +0 -1
- package/src/features/layout/adapters/inbound/Box.tsx +0 -18
- package/src/features/layout/adapters/inbound/Container.tsx +0 -18
- package/src/features/layout/adapters/inbound/Stack.tsx +0 -18
- package/src/features/layout/boxMeta.ts +0 -16
- package/src/foundation/Center.tsx +0 -26
- package/src/foundation/Inline.tsx +0 -26
- package/src/foundation/Show.tsx +0 -23
- package/src/foundation/Spacer.tsx +0 -26
- package/src/foundation/index.test.ts +0 -30
- package/src/foundation/index.ts +0 -8
- package/src/foundation/meta.ts +0 -36
- package/src/layout/app-shell/AppShell.test.ts +0 -24
- package/src/layout/app-shell/AppShell.tsx +0 -65
- package/src/layout/app-shell/index.ts +0 -2
- package/src/layout/app-shell/types.ts +0 -10
- package/src/layout/screen/Screen.test.ts +0 -22
- package/src/layout/screen/Screen.tsx +0 -47
- package/src/layout/screen/index.ts +0 -2
- package/src/layout/screen/types.ts +0 -11
- package/src/layout/screen-section/index.ts +0 -2
- package/src/layout/screen-section/types.ts +0 -10
- package/src/layout/settings-layout/SettingsLayout.tsx +0 -33
- package/src/layout/settings-layout/index.ts +0 -2
- package/src/layout/settings-layout/meta.ts +0 -10
- package/src/layout/settings-layout/types.ts +0 -11
- package/src/layout/sidebar-layout/SidebarLayout.test.ts +0 -35
- package/src/layout/sidebar-layout/SidebarLayout.tsx +0 -46
- package/src/layout/sidebar-layout/index.ts +0 -2
- package/src/layout/sidebar-layout/resolveSidebarLayoutSizing.ts +0 -18
- package/src/layout/sidebar-layout/types.ts +0 -14
- package/src/layout/topbar-layout/TopbarLayout.tsx +0 -30
- package/src/layout/topbar-layout/index.ts +0 -2
- package/src/layout/topbar-layout/meta.ts +0 -10
- package/src/layout/topbar-layout/types.ts +0 -9
- package/src/patterns/settings-row/SettingsRow.tsx +0 -53
- package/src/patterns/settings-row/index.ts +0 -2
- package/src/patterns/settings-row/meta.ts +0 -40
- package/src/patterns/settings-row/types.ts +0 -28
- package/src/patterns/tile-grid/TileGrid.tsx +0 -55
- package/src/patterns/tile-grid/index.ts +0 -3
- package/src/patterns/tile-grid/meta.ts +0 -21
- package/src/patterns/tile-grid/types.ts +0 -20
- /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRail.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.js +0 -0
- /package/dist/features/{layout → content-rail}/contentRailMeta.js +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailItemWidth.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailItemWidth.js +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.js +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailState.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/utils/resolveContentRailState.js +0 -0
- /package/dist/features/{layout → content-rail}/utils/useContentRailReducedMotion.d.ts +0 -0
- /package/dist/features/{layout → content-rail}/utils/useContentRailReducedMotion.js +0 -0
- /package/src/features/{layout → content-rail}/adapters/inbound/ContentRailFlow.tsx +0 -0
- /package/src/features/{layout → content-rail}/contentRailMeta.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailItemWidth.test.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailItemWidth.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.test.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailPhysicalOffset.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailState.test.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/resolveContentRailState.ts +0 -0
- /package/src/features/{layout → content-rail}/utils/useContentRailReducedMotion.ts +0 -0
- /package/src/{layout/app-shell/meta.ts → features/layout/appShellMeta.ts} +0 -0
- /package/src/{layout/screen/meta.ts → features/layout/screenMeta.ts} +0 -0
- /package/src/{layout/screen-section/meta.ts → features/layout/screenSectionMeta.ts} +0 -0
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
4
|
import type { SkeletonTextProps } from '../../../../types/skeleton';
|
|
5
|
-
import {
|
|
5
|
+
import { View } from '../../../layout/public';
|
|
6
6
|
import { Skeleton } from './Skeleton';
|
|
7
7
|
|
|
8
8
|
function clampLines(lines: number): number {
|
|
@@ -26,7 +26,7 @@ function SkeletonTextInner({
|
|
|
26
26
|
const lineCount = clampLines(lines);
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
|
-
<
|
|
29
|
+
<View gap={gap} testID={testID}>
|
|
30
30
|
{Array.from({ length: lineCount }).map((_, index) => {
|
|
31
31
|
const isLastLine = index === lineCount - 1;
|
|
32
32
|
return (
|
|
@@ -38,7 +38,7 @@ function SkeletonTextInner({
|
|
|
38
38
|
/>
|
|
39
39
|
);
|
|
40
40
|
})}
|
|
41
|
-
</
|
|
41
|
+
</View>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -3,7 +3,7 @@ import { ScrollView, StyleSheet } from 'react-native';
|
|
|
3
3
|
|
|
4
4
|
import type { TimePickerProps } from '../../../types/time-picker';
|
|
5
5
|
import { Button } from '../../button/public';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../layout/public';
|
|
7
7
|
import { Text } from '../../typography/public';
|
|
8
8
|
|
|
9
9
|
const MINUTES_PER_DAY = 24 * 60;
|
|
@@ -29,10 +29,10 @@ export function TimePickerContent({
|
|
|
29
29
|
);
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
|
-
<
|
|
32
|
+
<View gap="m" p="m" testID={testID ? `${testID}-content` : undefined}>
|
|
33
33
|
<PickerHeader description={description} title={label ?? 'Choose time'} />
|
|
34
34
|
<ScrollView style={styles.options}>
|
|
35
|
-
<
|
|
35
|
+
<View gap="xxs">
|
|
36
36
|
{options.map((option) => (
|
|
37
37
|
<TimePickerOption
|
|
38
38
|
formatTime={formatTime}
|
|
@@ -44,12 +44,12 @@ export function TimePickerContent({
|
|
|
44
44
|
testID={testID}
|
|
45
45
|
/>
|
|
46
46
|
))}
|
|
47
|
-
</
|
|
47
|
+
</View>
|
|
48
48
|
</ScrollView>
|
|
49
49
|
<Button fullWidth interactionPolicy={interactionPolicy} onPress={onDismiss} variant="ghost">
|
|
50
50
|
Cancel
|
|
51
51
|
</Button>
|
|
52
|
-
</
|
|
52
|
+
</View>
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -78,7 +78,7 @@ function PickerHeader({
|
|
|
78
78
|
title: React.ReactNode;
|
|
79
79
|
}) {
|
|
80
80
|
return (
|
|
81
|
-
<
|
|
81
|
+
<View gap="xxs">
|
|
82
82
|
<Text align="center" variant="label" weight="semiBold">
|
|
83
83
|
{title}
|
|
84
84
|
</Text>
|
|
@@ -87,7 +87,7 @@ function PickerHeader({
|
|
|
87
87
|
{description}
|
|
88
88
|
</Text>
|
|
89
89
|
) : null}
|
|
90
|
-
</
|
|
90
|
+
</View>
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -2,7 +2,7 @@ import { Field } from '@ankhorage/surface';
|
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
4
|
import type { TimePickerProps } from '../../../types/time-picker';
|
|
5
|
-
import {
|
|
5
|
+
import { View } from '../../layout/public';
|
|
6
6
|
import { Text } from '../../typography/public';
|
|
7
7
|
|
|
8
8
|
/*** Renders the shared TimePicker field frame around a platform-specific trigger. */
|
|
@@ -39,7 +39,7 @@ interface TimePickerFieldProps extends Pick<
|
|
|
39
39
|
/*** Renders the picker label and optional supporting description. */
|
|
40
40
|
function renderLabel(label: React.ReactNode, description: React.ReactNode | undefined) {
|
|
41
41
|
return (
|
|
42
|
-
<
|
|
42
|
+
<View gap="xs">
|
|
43
43
|
<Text variant="label" weight="semiBold">
|
|
44
44
|
{label}
|
|
45
45
|
</Text>
|
|
@@ -48,6 +48,6 @@ function renderLabel(label: React.ReactNode, description: React.ReactNode | unde
|
|
|
48
48
|
{description}
|
|
49
49
|
</Text>
|
|
50
50
|
) : null}
|
|
51
|
-
</
|
|
51
|
+
</View>
|
|
52
52
|
);
|
|
53
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
2
2
|
import type { ToolbarProps } from '../../../../types/toolbar';
|
|
3
3
|
import { Card } from '../../../card/public';
|
|
4
|
-
import {
|
|
4
|
+
import { View } from '../../../layout/public';
|
|
5
5
|
|
|
6
6
|
/*** Renders a visible horizontal group of contextual actions and controls. */
|
|
7
7
|
export const Toolbar = withZoraThemeScope(ToolbarInner);
|
|
@@ -23,9 +23,9 @@ function ToolbarInner({
|
|
|
23
23
|
tone={floating ? 'default' : 'subtle'}
|
|
24
24
|
testID={testID}
|
|
25
25
|
>
|
|
26
|
-
<
|
|
26
|
+
<View align="center" direction="row" gap="s">
|
|
27
27
|
{children}
|
|
28
|
-
</
|
|
28
|
+
</View>
|
|
29
29
|
</Card>
|
|
30
30
|
);
|
|
31
31
|
}
|
|
@@ -7,7 +7,7 @@ import { Dialog } from '../../../dialog/public';
|
|
|
7
7
|
import { FormField } from '../../../form/public';
|
|
8
8
|
import { Icon } from '../../../icon/public';
|
|
9
9
|
import { Image } from '../../../image/public';
|
|
10
|
-
import {
|
|
10
|
+
import { View } from '../../../layout/public';
|
|
11
11
|
import { Progress } from '../../../progress/public';
|
|
12
12
|
import { Text } from '../../../typography/public';
|
|
13
13
|
import { validateUploadAsset } from '../../application/use-cases/validateUploadAsset';
|
|
@@ -218,11 +218,11 @@ function UploaderInner({
|
|
|
218
218
|
required={required}
|
|
219
219
|
testID={testID}
|
|
220
220
|
>
|
|
221
|
-
<
|
|
221
|
+
<View gap="m">
|
|
222
222
|
<UploadPresentation asset={value} aspectRatio={aspectRatio} type={type} />
|
|
223
223
|
|
|
224
224
|
{resolvedAccept || maxSizeBytes ? (
|
|
225
|
-
<
|
|
225
|
+
<View gap="xs">
|
|
226
226
|
{resolvedAccept ? (
|
|
227
227
|
<Text emphasis="muted" variant="caption">
|
|
228
228
|
Accepted: {resolvedAccept}
|
|
@@ -233,21 +233,21 @@ function UploaderInner({
|
|
|
233
233
|
Max size: {formatBytes(maxSizeBytes)}
|
|
234
234
|
</Text>
|
|
235
235
|
) : null}
|
|
236
|
-
</
|
|
236
|
+
</View>
|
|
237
237
|
) : null}
|
|
238
238
|
|
|
239
239
|
{uploading ? (
|
|
240
|
-
<
|
|
240
|
+
<View gap="xs">
|
|
241
241
|
<Text emphasis="muted" variant="caption">
|
|
242
242
|
Uploading…
|
|
243
243
|
</Text>
|
|
244
244
|
{uploadProgress !== undefined || progress !== null ? (
|
|
245
245
|
<Progress max={1} value={clampProgress(uploadProgress ?? progress) ?? 0} />
|
|
246
246
|
) : null}
|
|
247
|
-
</
|
|
247
|
+
</View>
|
|
248
248
|
) : null}
|
|
249
249
|
|
|
250
|
-
<
|
|
250
|
+
<View direction={{ base: 'column', md: 'row' }} gap="s">
|
|
251
251
|
<Button
|
|
252
252
|
disabled={actionsDisabled || uploading || removing}
|
|
253
253
|
interactionPolicy={interactionPolicy}
|
|
@@ -283,8 +283,8 @@ function UploaderInner({
|
|
|
283
283
|
Preview
|
|
284
284
|
</Button>
|
|
285
285
|
) : null}
|
|
286
|
-
</
|
|
287
|
-
</
|
|
286
|
+
</View>
|
|
287
|
+
</View>
|
|
288
288
|
</FormField>
|
|
289
289
|
|
|
290
290
|
{canPreviewImage ? (
|
|
@@ -295,9 +295,9 @@ function UploaderInner({
|
|
|
295
295
|
title="Image preview"
|
|
296
296
|
visible={previewOpen}
|
|
297
297
|
>
|
|
298
|
-
<
|
|
298
|
+
<View gap="m">
|
|
299
299
|
<Image aspectRatio={aspectRatio} fit="contain" source={value} />
|
|
300
|
-
<
|
|
300
|
+
<View direction="row" justify="flex-end">
|
|
301
301
|
<Button
|
|
302
302
|
color="neutral"
|
|
303
303
|
interactionPolicy={interactionPolicy}
|
|
@@ -306,8 +306,8 @@ function UploaderInner({
|
|
|
306
306
|
>
|
|
307
307
|
Close
|
|
308
308
|
</Button>
|
|
309
|
-
</
|
|
310
|
-
</
|
|
309
|
+
</View>
|
|
310
|
+
</View>
|
|
311
311
|
</Dialog>
|
|
312
312
|
) : null}
|
|
313
313
|
</>
|
|
@@ -329,10 +329,10 @@ function UploadPresentation({
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
return (
|
|
332
|
-
<
|
|
333
|
-
<
|
|
332
|
+
<View borderWidth={1} p="m" radius="m">
|
|
333
|
+
<View direction="row" gap="s">
|
|
334
334
|
<Icon name={resolveUploadIcon(type)} size={22} />
|
|
335
|
-
<
|
|
335
|
+
<View gap="xs">
|
|
336
336
|
<Text variant="label" weight="semiBold">
|
|
337
337
|
{asset?.fileName ?? 'No file selected'}
|
|
338
338
|
</Text>
|
|
@@ -341,9 +341,9 @@ function UploadPresentation({
|
|
|
341
341
|
{asset.contentType}
|
|
342
342
|
</Text>
|
|
343
343
|
) : null}
|
|
344
|
-
</
|
|
345
|
-
</
|
|
346
|
-
</
|
|
344
|
+
</View>
|
|
345
|
+
</View>
|
|
346
|
+
</View>
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
|
package/src/index.ts
CHANGED
|
@@ -88,6 +88,16 @@ export type { ChipProps } from './features/chip/public';
|
|
|
88
88
|
export type { ChipGroupItem, ChipGroupProps } from './features/chip/public';
|
|
89
89
|
export { Chip } from './features/chip/public';
|
|
90
90
|
export { ChipGroup } from './features/chip/public';
|
|
91
|
+
export type {
|
|
92
|
+
ContentRailControlPressEvent,
|
|
93
|
+
ContentRailDirection,
|
|
94
|
+
ContentRailItemSize,
|
|
95
|
+
ContentRailMotion,
|
|
96
|
+
ContentRailProps,
|
|
97
|
+
ContentRailSpacing,
|
|
98
|
+
ContentRailVisibleRangeChangeEvent,
|
|
99
|
+
} from './features/content-rail/public';
|
|
100
|
+
export { ContentRail } from './features/content-rail/public';
|
|
91
101
|
export type {
|
|
92
102
|
DataTableCellContext,
|
|
93
103
|
DataTableColumn,
|
|
@@ -186,23 +196,23 @@ export {
|
|
|
186
196
|
type KeyboardAvoidingViewProps,
|
|
187
197
|
} from './features/keyboard-avoiding-view/public';
|
|
188
198
|
export type {
|
|
189
|
-
|
|
190
|
-
ContainerProps,
|
|
199
|
+
AppShellProps,
|
|
191
200
|
DividerProps,
|
|
192
201
|
GridProps,
|
|
193
|
-
|
|
202
|
+
ScreenProps,
|
|
203
|
+
ScreenSectionProps,
|
|
204
|
+
ScrollViewProps,
|
|
205
|
+
ViewProps,
|
|
194
206
|
} from './features/layout/public';
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
207
|
+
export {
|
|
208
|
+
AppShell,
|
|
209
|
+
Divider,
|
|
210
|
+
Grid,
|
|
211
|
+
Screen,
|
|
212
|
+
ScreenSection,
|
|
213
|
+
ScrollView,
|
|
214
|
+
View,
|
|
203
215
|
} from './features/layout/public';
|
|
204
|
-
export { Box, Container, Divider, Grid, Stack } from './features/layout/public';
|
|
205
|
-
export { ContentRail } from './features/layout/public';
|
|
206
216
|
export type {
|
|
207
217
|
ManifestListProps,
|
|
208
218
|
ManifestListSection,
|
|
@@ -211,6 +221,8 @@ export type {
|
|
|
211
221
|
export { FlatList, SectionList } from './features/list/public';
|
|
212
222
|
export { MissingElement, type MissingElementProps } from './features/missing-element/public';
|
|
213
223
|
export { Pagination, type PaginationProps } from './features/pagination/public';
|
|
224
|
+
export type { PaletteItemProps } from './features/palette-item/public';
|
|
225
|
+
export { PaletteItem } from './features/palette-item/public';
|
|
214
226
|
export {
|
|
215
227
|
PopoverMenu,
|
|
216
228
|
type PopoverMenuAction,
|
|
@@ -291,8 +303,6 @@ export type {
|
|
|
291
303
|
ValidateUploadAssetInput,
|
|
292
304
|
} from './features/uploader/public';
|
|
293
305
|
export { Uploader, validateUploadAsset } from './features/uploader/public';
|
|
294
|
-
export type { CenterProps, InlineProps, ShowProps, SpacerProps } from './foundation';
|
|
295
|
-
export { Center, Inline, Show, Spacer } from './foundation';
|
|
296
306
|
export type {
|
|
297
307
|
ZoraColor,
|
|
298
308
|
ZoraEmphasis,
|
|
@@ -305,18 +315,6 @@ export {
|
|
|
305
315
|
ZORA_PALETTE_COLORS,
|
|
306
316
|
ZORA_STATUS_COLORS,
|
|
307
317
|
} from './internal/colorModel';
|
|
308
|
-
export type { AppShellProps } from './layout/app-shell';
|
|
309
|
-
export { AppShell } from './layout/app-shell';
|
|
310
|
-
export type { ScreenProps } from './layout/screen';
|
|
311
|
-
export { Screen } from './layout/screen';
|
|
312
|
-
export type { ScreenSectionProps } from './layout/screen-section';
|
|
313
|
-
export { ScreenSection } from './layout/screen-section';
|
|
314
|
-
export type { SettingsLayoutProps } from './layout/settings-layout';
|
|
315
|
-
export { SettingsLayout } from './layout/settings-layout';
|
|
316
|
-
export type { SidebarLayoutProps } from './layout/sidebar-layout';
|
|
317
|
-
export { SidebarLayout } from './layout/sidebar-layout';
|
|
318
|
-
export type { TopbarLayoutProps } from './layout/topbar-layout';
|
|
319
|
-
export { TopbarLayout } from './layout/topbar-layout';
|
|
320
318
|
export type {
|
|
321
319
|
ZoraBindableComponentType,
|
|
322
320
|
ZoraComponentBlueprint,
|
|
@@ -416,14 +414,10 @@ export type {
|
|
|
416
414
|
UseSelectionResult,
|
|
417
415
|
} from './patterns/selection';
|
|
418
416
|
export { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';
|
|
419
|
-
export type { SettingsRowProps } from './patterns/settings-row';
|
|
420
|
-
export { SettingsRow } from './patterns/settings-row';
|
|
421
417
|
export type { SwitchFieldProps } from './patterns/switch-field';
|
|
422
418
|
export { SwitchField } from './patterns/switch-field';
|
|
423
419
|
export type { ThemeComposerProps } from './patterns/theme-composer';
|
|
424
420
|
export { ThemeComposer } from './patterns/theme-composer';
|
|
425
|
-
export type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';
|
|
426
|
-
export { PaletteItem, TileGrid } from './patterns/tile-grid';
|
|
427
421
|
export type { TimelineItem, TimelineProps } from './patterns/timeline';
|
|
428
422
|
export { Timeline } from './patterns/timeline';
|
|
429
423
|
export type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';
|
|
@@ -195,7 +195,7 @@ describe('ContentRail', () => {
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
test('suppresses scrolling and forwards interactionPolicy to owned controls', () => {
|
|
198
|
-
const source = readSource('features/
|
|
198
|
+
const source = readSource('features/content-rail/adapters/inbound/ContentRail.tsx');
|
|
199
199
|
|
|
200
200
|
expect(source).not.toMatch(/interactionPolicy:\s*_interactionPolicy/);
|
|
201
201
|
expect(source).toContain('scrollEnabled={!passive}');
|
|
@@ -33,11 +33,10 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
33
33
|
'SectionList',
|
|
34
34
|
'BottomSheet',
|
|
35
35
|
'ProductCard',
|
|
36
|
-
'
|
|
37
|
-
'
|
|
36
|
+
'View',
|
|
37
|
+
'ScrollView',
|
|
38
38
|
'Grid',
|
|
39
39
|
'Gradient',
|
|
40
|
-
'Container',
|
|
41
40
|
'Divider',
|
|
42
41
|
'Text',
|
|
43
42
|
'Heading',
|
|
@@ -57,7 +56,6 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
57
56
|
'Notice',
|
|
58
57
|
'EmptyState',
|
|
59
58
|
'SectionHeader',
|
|
60
|
-
'SettingsRow',
|
|
61
59
|
'PostCard',
|
|
62
60
|
'ChatListItem',
|
|
63
61
|
'MessageBubble',
|
|
@@ -77,8 +75,8 @@ export const CONTENT_RAIL_ALLOWED_CHILDREN = [
|
|
|
77
75
|
'Badge',
|
|
78
76
|
'Button',
|
|
79
77
|
'IconButton',
|
|
80
|
-
'
|
|
81
|
-
'
|
|
78
|
+
'View',
|
|
79
|
+
'ScrollView',
|
|
82
80
|
'Card',
|
|
83
81
|
'Panel',
|
|
84
82
|
'Image',
|
|
@@ -165,7 +165,6 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
165
165
|
'MetricCard',
|
|
166
166
|
'Uploader',
|
|
167
167
|
'SectionHeader',
|
|
168
|
-
'SettingsRow',
|
|
169
168
|
'EmptyState',
|
|
170
169
|
'Hero',
|
|
171
170
|
'Button',
|
|
@@ -214,10 +213,9 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
214
213
|
'Notice',
|
|
215
214
|
'PostCard',
|
|
216
215
|
'MessageBubble',
|
|
217
|
-
'
|
|
218
|
-
'
|
|
216
|
+
'View',
|
|
217
|
+
'ScrollView',
|
|
219
218
|
'Grid',
|
|
220
|
-
'Container',
|
|
221
219
|
'BarcodeScannerView',
|
|
222
220
|
'ContentRail',
|
|
223
221
|
'Tabs',
|
|
@@ -386,8 +384,8 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
386
384
|
'Badge',
|
|
387
385
|
'Button',
|
|
388
386
|
'IconButton',
|
|
389
|
-
'
|
|
390
|
-
'
|
|
387
|
+
'View',
|
|
388
|
+
'ScrollView',
|
|
391
389
|
'Card',
|
|
392
390
|
'Panel',
|
|
393
391
|
'Image',
|
|
@@ -23,6 +23,7 @@ import { postCardMeta } from '../features/card/postCardMeta';
|
|
|
23
23
|
import { productCardMeta } from '../features/card/productCardMeta';
|
|
24
24
|
import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
25
25
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
26
|
+
import { contentRailMeta } from '../features/content-rail/contentRailMeta';
|
|
26
27
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
27
28
|
import { datePickerMeta } from '../features/date-picker/datePickerMeta';
|
|
28
29
|
import { dialogMeta } from '../features/dialog/dialogMeta';
|
|
@@ -41,16 +42,18 @@ import { heroMeta } from '../features/hero/heroMeta';
|
|
|
41
42
|
import { iconMeta } from '../features/icon/iconMeta';
|
|
42
43
|
import { imageMeta } from '../features/image/imageMeta';
|
|
43
44
|
import { keyboardAvoidingViewMeta } from '../features/keyboard-avoiding-view/keyboardAvoidingViewMeta';
|
|
44
|
-
import {
|
|
45
|
-
import { containerMeta } from '../features/layout/containerMeta';
|
|
46
|
-
import { contentRailMeta } from '../features/layout/contentRailMeta';
|
|
45
|
+
import { appShellMeta } from '../features/layout/appShellMeta';
|
|
47
46
|
import { dividerMeta } from '../features/layout/dividerMeta';
|
|
48
47
|
import { gridMeta } from '../features/layout/gridMeta';
|
|
49
|
-
import {
|
|
48
|
+
import { screenMeta } from '../features/layout/screenMeta';
|
|
49
|
+
import { screenSectionMeta } from '../features/layout/screenSectionMeta';
|
|
50
|
+
import { scrollViewMeta } from '../features/layout/scrollViewMeta';
|
|
51
|
+
import { viewMeta } from '../features/layout/viewMeta';
|
|
50
52
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
51
53
|
import { sectionListMeta } from '../features/list/sectionListMeta';
|
|
52
54
|
import { missingElementMeta } from '../features/missing-element/missingElementMeta';
|
|
53
55
|
import { paginationMeta } from '../features/pagination/paginationMeta';
|
|
56
|
+
import { paletteItemMeta } from '../features/palette-item/paletteItemMeta';
|
|
54
57
|
import { popoverMenuMeta } from '../features/popover-menu/popoverMenuMeta';
|
|
55
58
|
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
56
59
|
import { ratingMeta } from '../features/rating/ratingMeta';
|
|
@@ -72,13 +75,6 @@ import { toolbarMeta } from '../features/toolbar/toolbarMeta';
|
|
|
72
75
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
73
76
|
import { textMeta } from '../features/typography/textMeta';
|
|
74
77
|
import { uploaderMeta } from '../features/uploader/uploaderMeta';
|
|
75
|
-
import { foundationMetas } from '../foundation/meta';
|
|
76
|
-
import { appShellMeta } from '../layout/app-shell/meta';
|
|
77
|
-
import { screenMeta } from '../layout/screen/meta';
|
|
78
|
-
import { screenSectionMeta } from '../layout/screen-section/meta';
|
|
79
|
-
import { settingsLayoutMeta } from '../layout/settings-layout/meta';
|
|
80
|
-
import { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';
|
|
81
|
-
import { topbarLayoutMeta } from '../layout/topbar-layout/meta';
|
|
82
78
|
import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
83
79
|
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
84
80
|
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
@@ -96,10 +92,8 @@ import {
|
|
|
96
92
|
} from '../patterns/scanner/meta';
|
|
97
93
|
import { sectionHeaderMeta } from '../patterns/section-header/meta';
|
|
98
94
|
import { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';
|
|
99
|
-
import { settingsRowMeta } from '../patterns/settings-row/meta';
|
|
100
95
|
import { switchFieldMeta } from '../patterns/switch-field/meta';
|
|
101
96
|
import { themeComposerMeta } from '../patterns/theme-composer/meta';
|
|
102
|
-
import { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';
|
|
103
97
|
import { timelineMeta } from '../patterns/timeline/meta';
|
|
104
98
|
import { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';
|
|
105
99
|
import { themeModeToggleMeta } from '../theme/ThemeModeToggle.meta';
|
|
@@ -107,13 +101,11 @@ import { finalizeFeatureMetadata } from '../utils/finalizeFeatureMetadata';
|
|
|
107
101
|
import type { ZoraComponentMetaRegistry } from './types';
|
|
108
102
|
|
|
109
103
|
export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMetadata({
|
|
110
|
-
...foundationMetas,
|
|
111
104
|
Accordion: accordionMeta,
|
|
112
105
|
AccordionItem: accordionItemMeta,
|
|
113
106
|
ActivityIndicator: activityIndicatorMeta,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Stack: stackMeta,
|
|
107
|
+
View: viewMeta,
|
|
108
|
+
ScrollView: scrollViewMeta,
|
|
117
109
|
Grid: gridMeta,
|
|
118
110
|
Divider: dividerMeta,
|
|
119
111
|
Surface: surfaceMeta,
|
|
@@ -175,9 +167,6 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
175
167
|
AppShell: appShellMeta,
|
|
176
168
|
Screen: screenMeta,
|
|
177
169
|
ScreenSection: screenSectionMeta,
|
|
178
|
-
SettingsLayout: settingsLayoutMeta,
|
|
179
|
-
SidebarLayout: sidebarLayoutMeta,
|
|
180
|
-
TopbarLayout: topbarLayoutMeta,
|
|
181
170
|
ForgotPasswordForm: forgotPasswordFormMeta,
|
|
182
171
|
OAuthProviderButton: oauthProviderButtonMeta,
|
|
183
172
|
OAuthProviderList: oauthProviderListMeta,
|
|
@@ -208,11 +197,9 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
208
197
|
SectionHeader: sectionHeaderMeta,
|
|
209
198
|
SelectableItem: selectableItemMeta,
|
|
210
199
|
SelectionProvider: selectionProviderMeta,
|
|
211
|
-
SettingsRow: settingsRowMeta,
|
|
212
200
|
SwitchField: switchFieldMeta,
|
|
213
201
|
ThemeComposer: themeComposerMeta,
|
|
214
202
|
PaletteItem: paletteItemMeta,
|
|
215
|
-
TileGrid: tileGridMeta,
|
|
216
203
|
Timeline: timelineMeta,
|
|
217
204
|
TreeItem: treeItemMeta,
|
|
218
205
|
TreeView: treeViewMeta,
|
|
@@ -5,8 +5,8 @@ import { ZORA_COMPONENT_META } from '.';
|
|
|
5
5
|
const containers = [
|
|
6
6
|
['Screen', ZORA_COMPONENT_META.Screen],
|
|
7
7
|
['ScreenSection', ZORA_COMPONENT_META.ScreenSection],
|
|
8
|
-
['
|
|
9
|
-
['
|
|
8
|
+
['View', ZORA_COMPONENT_META.View],
|
|
9
|
+
['ScrollView', ZORA_COMPONENT_META.ScrollView],
|
|
10
10
|
['Card', ZORA_COMPONENT_META.Card],
|
|
11
11
|
['Panel', ZORA_COMPONENT_META.Panel],
|
|
12
12
|
] as const;
|
|
@@ -3,9 +3,8 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { Avatar } from '../../features/avatar/public';
|
|
5
5
|
import { Badge } from '../../features/badge/public';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../features/layout/public';
|
|
7
7
|
import { Text } from '../../features/typography/public';
|
|
8
|
-
import { Inline } from '../../foundation';
|
|
9
8
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
10
9
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
11
10
|
import type { ChatListAvatar, ChatListItemProps } from './types';
|
|
@@ -110,7 +109,7 @@ function ChatListItemInner({
|
|
|
110
109
|
});
|
|
111
110
|
|
|
112
111
|
return (
|
|
113
|
-
<
|
|
112
|
+
<View
|
|
114
113
|
bg={styles.bg}
|
|
115
114
|
borderColor={styles.borderColor}
|
|
116
115
|
borderWidth={styles.borderWidth}
|
|
@@ -119,7 +118,7 @@ function ChatListItemInner({
|
|
|
119
118
|
radius="m"
|
|
120
119
|
style={{ opacity: styles.opacity }}
|
|
121
120
|
>
|
|
122
|
-
<
|
|
121
|
+
<View direction="row" align="center" gap="m" wrap="nowrap">
|
|
123
122
|
{leading ?? (
|
|
124
123
|
<Avatar
|
|
125
124
|
initials={avatar?.initials}
|
|
@@ -132,10 +131,10 @@ function ChatListItemInner({
|
|
|
132
131
|
/>
|
|
133
132
|
)}
|
|
134
133
|
|
|
135
|
-
<
|
|
136
|
-
<
|
|
137
|
-
<
|
|
138
|
-
<
|
|
134
|
+
<View flex={1}>
|
|
135
|
+
<View gap="xxs">
|
|
136
|
+
<View direction="row" align="center" gap="s" justify="space-between" wrap="nowrap">
|
|
137
|
+
<View flex={1}>
|
|
139
138
|
<Text
|
|
140
139
|
numberOfLines={1}
|
|
141
140
|
emphasis={disabled ? 'muted' : 'default'}
|
|
@@ -144,7 +143,7 @@ function ChatListItemInner({
|
|
|
144
143
|
>
|
|
145
144
|
{title}
|
|
146
145
|
</Text>
|
|
147
|
-
</
|
|
146
|
+
</View>
|
|
148
147
|
{hasTimestamp ? (
|
|
149
148
|
<Text
|
|
150
149
|
numberOfLines={1}
|
|
@@ -156,12 +155,12 @@ function ChatListItemInner({
|
|
|
156
155
|
{timestamp}
|
|
157
156
|
</Text>
|
|
158
157
|
) : null}
|
|
159
|
-
</
|
|
158
|
+
</View>
|
|
160
159
|
|
|
161
160
|
{hasSecondaryRow ? (
|
|
162
|
-
<
|
|
163
|
-
<
|
|
164
|
-
<
|
|
161
|
+
<View direction="row" align="center" gap="s" justify="space-between" wrap="nowrap">
|
|
162
|
+
<View flex={1}>
|
|
163
|
+
<View gap="xxs">
|
|
165
164
|
{hasPreview ? (
|
|
166
165
|
<Text
|
|
167
166
|
numberOfLines={1}
|
|
@@ -177,26 +176,26 @@ function ChatListItemInner({
|
|
|
177
176
|
{meta}
|
|
178
177
|
</Text>
|
|
179
178
|
) : null}
|
|
180
|
-
</
|
|
181
|
-
</
|
|
179
|
+
</View>
|
|
180
|
+
</View>
|
|
182
181
|
|
|
183
182
|
{hasUnreadCount || hasTrailing ? (
|
|
184
|
-
<
|
|
183
|
+
<View direction="row" align="center" gap="s" wrap="nowrap">
|
|
185
184
|
{renderUnreadCount(unreadCount)}
|
|
186
185
|
{trailing}
|
|
187
|
-
</
|
|
186
|
+
</View>
|
|
188
187
|
) : null}
|
|
189
|
-
</
|
|
188
|
+
</View>
|
|
190
189
|
) : null}
|
|
191
|
-
</
|
|
192
|
-
</
|
|
193
|
-
</
|
|
194
|
-
</
|
|
190
|
+
</View>
|
|
191
|
+
</View>
|
|
192
|
+
</View>
|
|
193
|
+
</View>
|
|
195
194
|
);
|
|
196
195
|
};
|
|
197
196
|
|
|
198
197
|
if (!isInteractive) {
|
|
199
|
-
return <
|
|
198
|
+
return <View testID={testID}>{content({ pressed: false, hovered: false })}</View>;
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
return (
|