@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
|
+
import type { AppShellProps } from '../../../../types/layout';
|
|
5
|
+
import { View } from './View';
|
|
6
|
+
|
|
7
|
+
function AppShellInner({
|
|
8
|
+
themeId: _themeId,
|
|
9
|
+
mode: _mode,
|
|
10
|
+
interactionPolicy: _interactionPolicy,
|
|
11
|
+
children,
|
|
12
|
+
header,
|
|
13
|
+
footer,
|
|
14
|
+
overlay,
|
|
15
|
+
testID,
|
|
16
|
+
}: AppShellProps) {
|
|
17
|
+
return (
|
|
18
|
+
<View bg="background" flex={1} testID={testID}>
|
|
19
|
+
<View flex={1} minHeight={0} position="relative">
|
|
20
|
+
{header ? <View flexShrink={0}>{header}</View> : null}
|
|
21
|
+
<View flex={1} minHeight={0} minWidth={0}>
|
|
22
|
+
{children}
|
|
23
|
+
</View>
|
|
24
|
+
{footer ? <View flexShrink={0}>{footer}</View> : null}
|
|
25
|
+
{overlay ? (
|
|
26
|
+
<View
|
|
27
|
+
bottom={0}
|
|
28
|
+
left={0}
|
|
29
|
+
pointerEvents="box-none"
|
|
30
|
+
position="absolute"
|
|
31
|
+
right={0}
|
|
32
|
+
top={0}
|
|
33
|
+
zIndex={10}
|
|
34
|
+
>
|
|
35
|
+
{overlay}
|
|
36
|
+
</View>
|
|
37
|
+
) : null}
|
|
38
|
+
</View>
|
|
39
|
+
</View>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*** Root application frame with explicit header, content, footer, and overlay slots. */
|
|
44
|
+
export const AppShell = withZoraThemeScope(AppShellInner);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { resolvePageMaxWidth } from '../../../../internal/recipes';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
|
+
import type { ScreenProps } from '../../../../types/layout';
|
|
6
|
+
import { ScrollView } from './ScrollView';
|
|
7
|
+
import { View } from './View';
|
|
8
|
+
|
|
9
|
+
function ScreenInner({
|
|
10
|
+
themeId: _themeId,
|
|
11
|
+
mode: _mode,
|
|
12
|
+
interactionPolicy: _interactionPolicy,
|
|
13
|
+
children,
|
|
14
|
+
footer,
|
|
15
|
+
scroll = true,
|
|
16
|
+
width = 'default',
|
|
17
|
+
testID,
|
|
18
|
+
}: ScreenProps) {
|
|
19
|
+
const content = (
|
|
20
|
+
<View
|
|
21
|
+
alignSelf="center"
|
|
22
|
+
gap="l"
|
|
23
|
+
maxWidth={resolvePageMaxWidth(width)}
|
|
24
|
+
px={{ base: 16, md: 24, lg: 32 }}
|
|
25
|
+
py="xl"
|
|
26
|
+
testID={testID}
|
|
27
|
+
width="100%"
|
|
28
|
+
>
|
|
29
|
+
{children}
|
|
30
|
+
{footer}
|
|
31
|
+
</View>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
if (!scroll) {
|
|
35
|
+
return (
|
|
36
|
+
<View bg="background" flex={1} minHeight={0} minWidth={0}>
|
|
37
|
+
{content}
|
|
38
|
+
</View>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<ScrollView bg="background" flex={1} minHeight={0} minWidth={0}>
|
|
44
|
+
{content}
|
|
45
|
+
</ScrollView>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/*** Screen content boundary with independent width policy and scroll ownership. */
|
|
50
|
+
export const Screen = withZoraThemeScope(ScreenInner);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import { SectionHeader } from '../../../../patterns/section-header';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
|
+
import type { ScreenSectionProps } from '../../../../types/layout';
|
|
6
|
+
import { View } from './View';
|
|
7
7
|
|
|
8
8
|
function ScreenSectionInner({
|
|
9
9
|
themeId: _themeId,
|
|
@@ -16,16 +16,12 @@ function ScreenSectionInner({
|
|
|
16
16
|
testID,
|
|
17
17
|
}: ScreenSectionProps) {
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
19
|
+
<View gap="m" testID={testID}>
|
|
20
20
|
{title ? <SectionHeader actions={actions} description={description} title={title} /> : null}
|
|
21
21
|
{children}
|
|
22
|
-
</
|
|
22
|
+
</View>
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/***
|
|
27
|
-
* Screen section layout with optional title, description, and actions.
|
|
28
|
-
*
|
|
29
|
-
|
|
30
|
-
*/
|
|
26
|
+
/*** Screen section with optional heading, description, actions, and content. */
|
|
31
27
|
export const ScreenSection = withZoraThemeScope(ScreenSectionInner);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ScrollView as SurfaceScrollView } from '@ankhorage/surface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
|
+
import type { ScrollViewProps } from '../../../../types/layout';
|
|
6
|
+
|
|
7
|
+
/*** Adapts the token-aware Surface ScrollView primitive to ZORA theme scope. */
|
|
8
|
+
export const ScrollView = withZoraThemeScope(ScrollViewInner);
|
|
9
|
+
|
|
10
|
+
/*** Forwards ZORA scrolling props to the published Surface ScrollView boundary. */
|
|
11
|
+
function ScrollViewInner({
|
|
12
|
+
themeId: _themeId,
|
|
13
|
+
mode: _mode,
|
|
14
|
+
interactionPolicy: _interactionPolicy,
|
|
15
|
+
...props
|
|
16
|
+
}: ScrollViewProps) {
|
|
17
|
+
return <SurfaceScrollView {...props} />;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { View as SurfaceView } from '@ankhorage/surface';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
|
+
import type { ViewProps } from '../../../../types/layout';
|
|
6
|
+
|
|
7
|
+
/*** Adapts the token-aware Surface View primitive to ZORA theme scope. */
|
|
8
|
+
export const View = withZoraThemeScope(ViewInner);
|
|
9
|
+
|
|
10
|
+
/*** Forwards ZORA layout props to the published Surface View boundary. */
|
|
11
|
+
function ViewInner({
|
|
12
|
+
themeId: _themeId,
|
|
13
|
+
mode: _mode,
|
|
14
|
+
interactionPolicy: _interactionPolicy,
|
|
15
|
+
...props
|
|
16
|
+
}: ViewProps) {
|
|
17
|
+
return <SurfaceView {...props} />;
|
|
18
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ZoraComponentMeta } from '../../metadata/types';
|
|
2
2
|
|
|
3
|
-
export const CONTENT_RAIL_SPACING_VALUES = ['none', 'xs', 's', 'm', 'l', 'xl'] as const;
|
|
4
|
-
|
|
5
3
|
export const LAYOUT_PROPS = {
|
|
6
4
|
p: { type: 'spacing', category: 'Spacing' },
|
|
7
5
|
px: { type: 'spacing', category: 'Spacing' },
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
|
|
4
|
+
import { describe, expect, test } from 'bun:test';
|
|
5
|
+
|
|
6
|
+
const srcDir = join(import.meta.dir, '../..');
|
|
7
|
+
const publicSource = readFileSync(join(import.meta.dir, 'public.ts'), 'utf8');
|
|
8
|
+
const rootSource = readFileSync(join(srcDir, 'index.ts'), 'utf8');
|
|
9
|
+
|
|
10
|
+
const removedPublicNames = [
|
|
11
|
+
'Box',
|
|
12
|
+
'Center',
|
|
13
|
+
'Container',
|
|
14
|
+
'Inline',
|
|
15
|
+
'SettingsLayout',
|
|
16
|
+
'SettingsRow',
|
|
17
|
+
'SidebarLayout',
|
|
18
|
+
'Spacer',
|
|
19
|
+
'Stack',
|
|
20
|
+
'TileGrid',
|
|
21
|
+
'TopbarLayout',
|
|
22
|
+
] as const;
|
|
23
|
+
|
|
24
|
+
describe('canonical layout boundary', () => {
|
|
25
|
+
test('exports only the current layout primitives and semantic screen composition', () => {
|
|
26
|
+
for (const name of [
|
|
27
|
+
'AppShell',
|
|
28
|
+
'Divider',
|
|
29
|
+
'Grid',
|
|
30
|
+
'Screen',
|
|
31
|
+
'ScreenSection',
|
|
32
|
+
'ScrollView',
|
|
33
|
+
'View',
|
|
34
|
+
]) {
|
|
35
|
+
expect(publicSource).toMatch(new RegExp(`\\b${name}\\b`, 'u'));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
for (const name of removedPublicNames) {
|
|
39
|
+
expect(publicSource).not.toMatch(new RegExp(`\\b${name}\\b`, 'u'));
|
|
40
|
+
expect(rootSource).not.toMatch(new RegExp(`export[^\\n]*\\b${name}\\b`, 'u'));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
test('does not retain the legacy layout or foundation ownership roots', () => {
|
|
45
|
+
expect(existsSync(join(srcDir, 'layout'))).toBe(false);
|
|
46
|
+
expect(existsSync(join(srcDir, 'foundation'))).toBe(false);
|
|
47
|
+
expect(existsSync(join(srcDir, 'patterns', 'settings-row'))).toBe(false);
|
|
48
|
+
expect(existsSync(join(srcDir, 'patterns', 'tile-grid'))).toBe(false);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
test('keeps moved capabilities with their singular feature owners', () => {
|
|
52
|
+
expect(existsSync(join(srcDir, 'features', 'content-rail', 'public.ts'))).toBe(true);
|
|
53
|
+
expect(existsSync(join(srcDir, 'features', 'palette-item', 'public.ts'))).toBe(true);
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
export type {
|
|
2
|
-
|
|
3
|
-
ContentRailDirection,
|
|
4
|
-
ContentRailItemSize,
|
|
5
|
-
ContentRailMotion,
|
|
6
|
-
ContentRailProps,
|
|
7
|
-
ContentRailSpacing,
|
|
8
|
-
ContentRailVisibleRangeChangeEvent,
|
|
9
|
-
} from '../../types/content-rail';
|
|
10
|
-
export type {
|
|
11
|
-
BoxProps,
|
|
12
|
-
ContainerProps,
|
|
2
|
+
AppShellProps,
|
|
13
3
|
DividerProps,
|
|
14
4
|
GridProps,
|
|
15
|
-
|
|
5
|
+
ScreenProps,
|
|
6
|
+
ScreenSectionProps,
|
|
7
|
+
ScrollViewProps,
|
|
8
|
+
ViewProps,
|
|
16
9
|
} from '../../types/layout';
|
|
17
|
-
export {
|
|
18
|
-
export { Container } from './adapters/inbound/Container';
|
|
19
|
-
export { ContentRail } from './adapters/inbound/ContentRail';
|
|
10
|
+
export { AppShell } from './adapters/inbound/AppShell';
|
|
20
11
|
export { Divider } from './adapters/inbound/Divider';
|
|
21
12
|
export { Grid } from './adapters/inbound/Grid';
|
|
22
|
-
export {
|
|
13
|
+
export { Screen } from './adapters/inbound/Screen';
|
|
14
|
+
export { ScreenSection } from './adapters/inbound/ScreenSection';
|
|
15
|
+
export { ScrollView } from './adapters/inbound/ScrollView';
|
|
16
|
+
export { View } from './adapters/inbound/View';
|
|
@@ -2,10 +2,13 @@ import { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';
|
|
|
2
2
|
import type { ZoraComponentMeta } from '../../metadata/types';
|
|
3
3
|
import { LAYOUT_PROPS } from './constants';
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
name: '
|
|
5
|
+
export const scrollViewMeta = {
|
|
6
|
+
name: 'ScrollView',
|
|
7
7
|
category: 'foundation',
|
|
8
8
|
directManifestNode: true,
|
|
9
9
|
allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
|
|
10
|
-
props:
|
|
10
|
+
props: {
|
|
11
|
+
...LAYOUT_PROPS,
|
|
12
|
+
horizontal: { type: 'boolean', category: 'Layout', default: false },
|
|
13
|
+
},
|
|
11
14
|
} as const satisfies ZoraComponentMeta;
|
|
@@ -2,8 +2,8 @@ import { CONTAINER_ALLOWED_CHILDREN } from '../../metadata/allowedChildren';
|
|
|
2
2
|
import type { ZoraComponentMeta } from '../../metadata/types';
|
|
3
3
|
import { LAYOUT_PROPS } from './constants';
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
name: '
|
|
5
|
+
export const viewMeta = {
|
|
6
|
+
name: 'View',
|
|
7
7
|
category: 'foundation',
|
|
8
8
|
directManifestNode: true,
|
|
9
9
|
allowedChildren: [...CONTAINER_ALLOWED_CHILDREN],
|
|
@@ -11,6 +11,8 @@ export const stackMeta = {
|
|
|
11
11
|
...LAYOUT_PROPS,
|
|
12
12
|
direction: { type: 'enum', category: 'Layout', enum: ['row', 'column'] },
|
|
13
13
|
gap: { type: 'spacing', category: 'Spacing' },
|
|
14
|
+
rowGap: { type: 'spacing', category: 'Spacing' },
|
|
15
|
+
columnGap: { type: 'spacing', category: 'Spacing' },
|
|
14
16
|
align: {
|
|
15
17
|
type: 'enum',
|
|
16
18
|
category: 'Layout',
|
|
@@ -22,5 +24,8 @@ export const stackMeta = {
|
|
|
22
24
|
enum: ['flex-start', 'center', 'flex-end', 'space-between', 'space-around', 'space-evenly'],
|
|
23
25
|
},
|
|
24
26
|
wrap: { type: 'enum', category: 'Layout', enum: ['nowrap', 'wrap'] },
|
|
27
|
+
bg: { type: 'color', category: 'Style' },
|
|
28
|
+
borderColor: { type: 'color', category: 'Style' },
|
|
29
|
+
borderWidth: { type: 'number', category: 'Style' },
|
|
25
30
|
},
|
|
26
31
|
} as const satisfies ZoraComponentMeta;
|
|
@@ -5,7 +5,7 @@ import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
|
5
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
6
|
import type { MissingElementProps } from '../../../../types/missing-element';
|
|
7
7
|
import { Badge } from '../../../badge/public';
|
|
8
|
-
import {
|
|
8
|
+
import { View } from '../../../layout/public';
|
|
9
9
|
import { Text } from '../../../typography/public';
|
|
10
10
|
|
|
11
11
|
/***
|
|
@@ -26,7 +26,7 @@ function MissingElementInner({
|
|
|
26
26
|
const accessibilityLabel = `Missing element: ${requestedCapability}. ${reason}`;
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
|
-
<
|
|
29
|
+
<View
|
|
30
30
|
accessibilityLabel={accessibilityLabel}
|
|
31
31
|
accessibilityRole="text"
|
|
32
32
|
accessible
|
|
@@ -40,7 +40,7 @@ function MissingElementInner({
|
|
|
40
40
|
style={styles.root}
|
|
41
41
|
testID={testID}
|
|
42
42
|
>
|
|
43
|
-
<
|
|
43
|
+
<View gap="xs">
|
|
44
44
|
<Badge color="warning">Missing element</Badge>
|
|
45
45
|
<Text variant="label" weight="semiBold">
|
|
46
46
|
{requestedCapability}
|
|
@@ -53,8 +53,8 @@ function MissingElementInner({
|
|
|
53
53
|
Evidence: {evidenceId}
|
|
54
54
|
</Text>
|
|
55
55
|
) : null}
|
|
56
|
-
</
|
|
57
|
-
</
|
|
56
|
+
</View>
|
|
57
|
+
</View>
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
4
4
|
import type { PaginationProps } from '../../../../types/pagination';
|
|
5
5
|
import { Button } from '../../../button/public';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../../layout/public';
|
|
7
7
|
import { Text } from '../../../typography/public';
|
|
8
8
|
import { resolvePaginationPage } from '../../utils/resolvePaginationPage';
|
|
9
9
|
import { resolvePaginationState } from '../../utils/resolvePaginationState';
|
|
@@ -46,7 +46,7 @@ function PaginationInner({
|
|
|
46
46
|
);
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
|
-
<
|
|
49
|
+
<View align="center" direction="row" gap="xs" testID={testID}>
|
|
50
50
|
{showFirstLast ? (
|
|
51
51
|
<Button
|
|
52
52
|
disabled={navigationDisabled || state.currentPage === 1}
|
|
@@ -111,6 +111,6 @@ function PaginationInner({
|
|
|
111
111
|
{lastLabel}
|
|
112
112
|
</Button>
|
|
113
113
|
) : null}
|
|
114
|
-
</
|
|
114
|
+
</View>
|
|
115
115
|
);
|
|
116
116
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
3
|
+
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
|
+
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
|
+
import type { PaletteItemProps } from '../../../../types/palette-item';
|
|
6
|
+
import { Card } from '../../../card/public';
|
|
7
|
+
import { View } from '../../../layout/public';
|
|
8
|
+
import { Heading } from '../../../typography/public';
|
|
9
|
+
import { Text } from '../../../typography/public';
|
|
10
10
|
|
|
11
11
|
function PaletteItemInner({
|
|
12
12
|
themeId: _themeId,
|
|
@@ -38,8 +38,8 @@ function PaletteItemInner({
|
|
|
38
38
|
: undefined
|
|
39
39
|
}
|
|
40
40
|
>
|
|
41
|
-
<
|
|
42
|
-
{icon ? <
|
|
41
|
+
<View p="xs" style={{ alignItems: 'center' }}>
|
|
42
|
+
{icon ? <View pb="s">{/* Icon spec here */}</View> : null}
|
|
43
43
|
<Heading level={5} align="center">
|
|
44
44
|
{title}
|
|
45
45
|
</Heading>
|
|
@@ -48,8 +48,8 @@ function PaletteItemInner({
|
|
|
48
48
|
{description}
|
|
49
49
|
</Text>
|
|
50
50
|
) : null}
|
|
51
|
-
{badge ? <
|
|
52
|
-
</
|
|
51
|
+
{badge ? <View pt="xs">{badge}</View> : null}
|
|
52
|
+
</View>
|
|
53
53
|
</Card>
|
|
54
54
|
);
|
|
55
55
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ZoraComponentMeta } from '../../metadata';
|
|
2
2
|
|
|
3
|
-
export const
|
|
4
|
-
name: '
|
|
5
|
-
category: '
|
|
3
|
+
export const paletteItemMeta = {
|
|
4
|
+
name: 'PaletteItem',
|
|
5
|
+
category: 'pattern',
|
|
6
6
|
directManifestNode: false,
|
|
7
7
|
allowedChildren: [],
|
|
8
|
-
note: '
|
|
8
|
+
note: 'Palette option pattern; not represented as a manifest node in v1.',
|
|
9
9
|
props: {},
|
|
10
10
|
} as const satisfies ZoraComponentMeta;
|
|
@@ -9,7 +9,7 @@ import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
|
9
9
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
10
10
|
import type { PopoverMenuAction, PopoverMenuProps } from '../../../../types/popover-menu';
|
|
11
11
|
import { Icon } from '../../../icon/public';
|
|
12
|
-
import {
|
|
12
|
+
import { View } from '../../../layout/public';
|
|
13
13
|
|
|
14
14
|
/*** Presents a ZORA-styled action list through the Surface PopoverMenu capability. */
|
|
15
15
|
export const PopoverMenu = withZoraThemeScope(PopoverMenuInner);
|
|
@@ -56,5 +56,5 @@ function renderActionLeading(action: PopoverMenuAction, iconColor: string): Reac
|
|
|
56
56
|
|
|
57
57
|
/*** Wraps optional trailing action content in the ZORA layout boundary. */
|
|
58
58
|
function renderActionTrailing(action: PopoverMenuAction): React.ReactNode {
|
|
59
|
-
return action.trailing === undefined ? undefined : <
|
|
59
|
+
return action.trailing === undefined ? undefined : <View>{action.trailing}</View>;
|
|
60
60
|
}
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
4
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
5
|
import { type ProgressProps, resolveProgressRole } from '../../../../types/progress';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../../layout/public';
|
|
7
7
|
import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
8
8
|
|
|
9
9
|
function resolveProgressHeight(size: NonNullable<ProgressProps['size']>): number {
|
|
@@ -34,7 +34,7 @@ function ProgressInner({
|
|
|
34
34
|
const role = resolveProgressRole(theme, color);
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
|
-
<
|
|
37
|
+
<View
|
|
38
38
|
accessibilityRole="progressbar"
|
|
39
39
|
bg={theme.semantics.neutral.surface}
|
|
40
40
|
borderColor={theme.semantics.neutral.divider}
|
|
@@ -43,8 +43,8 @@ function ProgressInner({
|
|
|
43
43
|
testID={testID}
|
|
44
44
|
style={{ height, overflow: 'hidden' }}
|
|
45
45
|
>
|
|
46
|
-
<
|
|
47
|
-
</
|
|
46
|
+
<View bg={role.base} style={{ height: '100%', width: `${fraction * 100}%` }} />
|
|
47
|
+
</View>
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
2
|
+
import { StyleSheet, View as ReactNativeView } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
6
|
import { type ProgressRingProps, resolveProgressRole } from '../../../../types/progress';
|
|
7
|
-
import {
|
|
7
|
+
import { View } from '../../../layout/public';
|
|
8
8
|
import { Text } from '../../../typography/public';
|
|
9
9
|
import { resolveProgressFraction } from '../../utils/resolveProgressFraction';
|
|
10
10
|
import { resolveProgressRingGeometry } from '../../utils/resolveProgressRingGeometry';
|
|
@@ -36,7 +36,7 @@ function ProgressRingInner({
|
|
|
36
36
|
const segments = Array.from({ length: geometry.filledSegmentCount });
|
|
37
37
|
|
|
38
38
|
return (
|
|
39
|
-
<
|
|
39
|
+
<ReactNativeView
|
|
40
40
|
accessibilityLabel={accessibilityLabel}
|
|
41
41
|
accessibilityRole="progressbar"
|
|
42
42
|
accessibilityValue={{
|
|
@@ -49,7 +49,7 @@ function ProgressRingInner({
|
|
|
49
49
|
style={{ height: geometry.diameter, width: geometry.diameter }}
|
|
50
50
|
testID={testID}
|
|
51
51
|
>
|
|
52
|
-
<
|
|
52
|
+
<ReactNativeView
|
|
53
53
|
importantForAccessibility="no-hide-descendants"
|
|
54
54
|
pointerEvents="none"
|
|
55
55
|
style={styles.visual}
|
|
@@ -86,15 +86,15 @@ function ProgressRingInner({
|
|
|
86
86
|
/>
|
|
87
87
|
</View>
|
|
88
88
|
))}
|
|
89
|
-
</
|
|
89
|
+
</ReactNativeView>
|
|
90
90
|
|
|
91
91
|
{centerValue !== undefined || centerLabel !== undefined ? (
|
|
92
|
-
<
|
|
92
|
+
<ReactNativeView
|
|
93
93
|
importantForAccessibility="no-hide-descendants"
|
|
94
94
|
pointerEvents="none"
|
|
95
95
|
style={styles.center}
|
|
96
96
|
>
|
|
97
|
-
<
|
|
97
|
+
<View align="center" gap="xxs" px="s">
|
|
98
98
|
{centerValue !== undefined ? (
|
|
99
99
|
<Text align="center" variant="lead" weight="bold">
|
|
100
100
|
{centerValue}
|
|
@@ -105,10 +105,10 @@ function ProgressRingInner({
|
|
|
105
105
|
{centerLabel}
|
|
106
106
|
</Text>
|
|
107
107
|
) : null}
|
|
108
|
-
</
|
|
109
|
-
</
|
|
108
|
+
</View>
|
|
109
|
+
</ReactNativeView>
|
|
110
110
|
) : null}
|
|
111
|
-
</
|
|
111
|
+
</ReactNativeView>
|
|
112
112
|
);
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';
|
|
2
2
|
|
|
3
|
-
import { Inline } from '../../../../foundation';
|
|
4
3
|
import type { ZoraColor } from '../../../../internal/recipes';
|
|
5
4
|
import { resolveIconSize } from '../../../../internal/recipes';
|
|
6
5
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
7
6
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
8
7
|
import type { RatingProps } from '../../../../types/rating';
|
|
9
8
|
import { Icon } from '../../../icon/public';
|
|
9
|
+
import { View } from '../../../layout/public';
|
|
10
10
|
import { resolveRatingSegments } from '../../utils/resolveRatingSegments';
|
|
11
11
|
|
|
12
12
|
/*** Displays a read-only star rating with optional half steps. */
|
|
@@ -29,7 +29,7 @@ function RatingInner({
|
|
|
29
29
|
const iconSize = resolveIconSize(size);
|
|
30
30
|
|
|
31
31
|
return (
|
|
32
|
-
<
|
|
32
|
+
<View direction="row" align="center" gap="xxs" testID={testID} wrap="nowrap">
|
|
33
33
|
{segments.map((segment, index) => {
|
|
34
34
|
const name =
|
|
35
35
|
segment === 'full' ? 'star' : segment === 'half' ? 'star-half' : 'star-outline';
|
|
@@ -38,7 +38,7 @@ function RatingInner({
|
|
|
38
38
|
<Icon key={`${index}-${segment}`} color={segmentColor} name={name} size={iconSize} />
|
|
39
39
|
);
|
|
40
40
|
})}
|
|
41
|
-
</
|
|
41
|
+
</View>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
4
4
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
5
|
import type { SkeletonProps } from '../../../../types/skeleton';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../../layout/public';
|
|
7
7
|
|
|
8
8
|
function SkeletonInner({
|
|
9
9
|
themeId: _themeId,
|
|
@@ -16,7 +16,7 @@ function SkeletonInner({
|
|
|
16
16
|
const { theme } = useZoraTheme();
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
<
|
|
19
|
+
<View
|
|
20
20
|
accessibilityLabel="Loading"
|
|
21
21
|
accessibilityRole="text"
|
|
22
22
|
bg={theme.semantics.neutral.surfaceHover}
|
|
@@ -4,7 +4,7 @@ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
|
4
4
|
import type { SkeletonCardProps } from '../../../../types/skeleton';
|
|
5
5
|
import { ButtonGroup } from '../../../button/public';
|
|
6
6
|
import { Card } from '../../../card/public';
|
|
7
|
-
import {
|
|
7
|
+
import { View } from '../../../layout/public';
|
|
8
8
|
import { Skeleton } from './Skeleton';
|
|
9
9
|
import { SkeletonText } from './SkeletonText';
|
|
10
10
|
|
|
@@ -19,19 +19,19 @@ function SkeletonCardInner({
|
|
|
19
19
|
}: SkeletonCardProps) {
|
|
20
20
|
return (
|
|
21
21
|
<Card compact={compact} testID={testID} tone="default">
|
|
22
|
-
<
|
|
22
|
+
<View gap={compact ? 's' : 'm'}>
|
|
23
23
|
{media ? <Skeleton height={compact ? 120 : 180} radius="m" /> : null}
|
|
24
|
-
<
|
|
24
|
+
<View gap="s">
|
|
25
25
|
<Skeleton height={18} radius="full" width="54%" />
|
|
26
26
|
<SkeletonText lines={lines} />
|
|
27
|
-
</
|
|
27
|
+
</View>
|
|
28
28
|
{actions ? (
|
|
29
29
|
<ButtonGroup align="end">
|
|
30
30
|
<Skeleton height={36} radius="m" width={88} />
|
|
31
31
|
<Skeleton height={36} radius="m" width={120} />
|
|
32
32
|
</ButtonGroup>
|
|
33
33
|
) : null}
|
|
34
|
-
</
|
|
34
|
+
</View>
|
|
35
35
|
</Card>
|
|
36
36
|
);
|
|
37
37
|
}
|