@ankhorage/zora 16.0.0 → 18.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 +16 -0
- package/README.md +15 -15
- package/dist/constants.d.ts +3 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -2
- 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/AuthFormField.js +3 -3
- package/dist/features/auth/adapters/inbound/AuthFormField.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/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/field/adapters/inbound/Field.d.ts +5 -0
- package/dist/features/form/field/adapters/inbound/Field.d.ts.map +1 -0
- package/dist/features/form/field/adapters/inbound/Field.js +20 -0
- package/dist/features/form/field/adapters/inbound/Field.js.map +1 -0
- package/dist/features/form/{formFieldMeta.d.ts → field/meta.d.ts} +4 -4
- package/dist/features/form/field/meta.d.ts.map +1 -0
- package/dist/features/form/{formFieldMeta.js → field/meta.js} +4 -4
- package/dist/features/form/field/meta.js.map +1 -0
- package/dist/features/form/field/public.d.ts +2 -0
- package/dist/features/form/field/public.d.ts.map +1 -0
- package/dist/features/form/field/public.js +2 -0
- package/dist/features/form/field/public.js.map +1 -0
- package/dist/features/form/formMeta.d.ts +1 -1
- package/dist/features/form/formMeta.js +1 -1
- package/dist/features/form/formMeta.js.map +1 -1
- package/dist/features/form/public.d.ts +2 -2
- package/dist/features/form/public.d.ts.map +1 -1
- package/dist/features/form/public.js +1 -1
- package/dist/features/form/public.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/adapters/inbound/List.d.ts +5 -0
- package/dist/features/list/adapters/inbound/List.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/List.js +34 -0
- package/dist/features/list/adapters/inbound/List.js.map +1 -0
- package/dist/features/list/adapters/inbound/ListItem.d.ts +5 -0
- package/dist/features/list/adapters/inbound/ListItem.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/ListItem.js +43 -0
- package/dist/features/list/adapters/inbound/ListItem.js.map +1 -0
- package/dist/features/list/adapters/inbound/ListSection.d.ts +5 -0
- package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -0
- package/dist/{patterns/list → features/list/adapters/inbound}/ListSection.js +6 -10
- package/dist/features/list/adapters/inbound/ListSection.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/{patterns → features}/list/meta.d.ts +6 -6
- package/dist/features/list/meta.d.ts.map +1 -0
- package/dist/{patterns → features}/list/meta.js +6 -14
- package/dist/features/list/meta.js.map +1 -0
- package/dist/features/list/public.d.ts +4 -0
- package/dist/features/list/public.d.ts.map +1 -1
- package/dist/features/list/public.js +3 -0
- package/dist/features/list/public.js.map +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/list/utils/resolveListSeparator.d.ts +5 -0
- package/dist/features/list/utils/resolveListSeparator.d.ts.map +1 -0
- package/dist/{patterns/list → features/list/utils}/resolveListSeparator.js +1 -0
- package/dist/features/list/utils/resolveListSeparator.js.map +1 -0
- 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/SkeletonList.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js +2 -2
- package/dist/features/skeleton/adapters/inbound/SkeletonList.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 +22 -22
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/index.d.ts +10 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -13
- 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 +3 -3
- package/dist/metadata/bindableComponentMeta.js +1 -1
- package/dist/metadata/bindableComponentMeta.js.map +1 -1
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +13 -26
- 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 +8 -8
- package/dist/patterns/inspector-field/InspectorField.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 -2
- package/dist/patterns/switch-field/SwitchField.d.ts.map +1 -1
- package/dist/patterns/switch-field/SwitchField.js +3 -4
- 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 +9 -27
- 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/form.d.ts +1 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/types/form.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/{patterns/list/types.d.ts → types/list.d.ts} +14 -18
- package/dist/types/list.d.ts.map +1 -0
- package/dist/types/list.js +2 -0
- package/dist/types/list.js.map +1 -0
- 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 +3 -2
- 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/AuthFormField.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/checkbox/adapters/inbound/CheckboxGroup.tsx +5 -6
- package/src/features/form/{adapters/inbound/FormField.tsx → field/adapters/inbound/Field.tsx} +12 -12
- package/src/features/form/{formFieldMeta.ts → field/meta.ts} +5 -4
- package/src/features/form/field/public.ts +1 -0
- package/src/features/form/formMeta.ts +1 -1
- package/src/features/form/public.ts +2 -2
- 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/list/adapters/inbound/List.tsx +77 -0
- package/src/features/list/adapters/inbound/ListItem.tsx +89 -0
- package/src/{patterns/list → features/list/adapters/inbound}/ListSection.tsx +7 -12
- package/src/{patterns → features}/list/meta.ts +7 -14
- package/src/features/list/public.ts +11 -0
- package/src/features/list/utils/resolveListSeparator.ts +9 -0
- 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/SkeletonList.tsx +3 -3
- 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 +22 -22
- package/src/index.ts +36 -41
- package/src/interactionPolicy.test.ts +1 -1
- package/src/metadata/allowedChildren.ts +4 -6
- package/src/metadata/bindableComponentMeta.ts +1 -1
- package/src/metadata/componentMeta.test.ts +9 -11
- package/src/metadata/componentMeta.ts +13 -26
- 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 +8 -8
- 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 +9 -9
- 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 +17 -27
- package/src/showcaseCoverage.test.ts +4 -24
- package/src/theme/themeScopeStructure.test.ts +15 -36
- package/src/types/button-group.ts +2 -2
- package/src/types/form.ts +1 -1
- package/src/types/gradient.ts +6 -6
- package/src/types/layout.ts +28 -7
- package/src/{patterns/list/types.ts → types/list.ts} +17 -18
- package/src/types/palette-item.ts +14 -0
- package/src/types/skeleton.ts +5 -5
- package/dist/features/form/adapters/inbound/FormField.d.ts +0 -5
- package/dist/features/form/adapters/inbound/FormField.d.ts.map +0 -1
- package/dist/features/form/adapters/inbound/FormField.js +0 -20
- package/dist/features/form/adapters/inbound/FormField.js.map +0 -1
- package/dist/features/form/formFieldMeta.d.ts.map +0 -1
- package/dist/features/form/formFieldMeta.js.map +0 -1
- 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/list/List.d.ts +0 -9
- package/dist/patterns/list/List.d.ts.map +0 -1
- package/dist/patterns/list/List.js +0 -41
- package/dist/patterns/list/List.js.map +0 -1
- package/dist/patterns/list/ListRow.d.ts +0 -9
- package/dist/patterns/list/ListRow.d.ts.map +0 -1
- package/dist/patterns/list/ListRow.js +0 -114
- package/dist/patterns/list/ListRow.js.map +0 -1
- package/dist/patterns/list/ListSection.d.ts +0 -9
- package/dist/patterns/list/ListSection.d.ts.map +0 -1
- package/dist/patterns/list/ListSection.js.map +0 -1
- package/dist/patterns/list/index.d.ts +0 -5
- package/dist/patterns/list/index.d.ts.map +0 -1
- package/dist/patterns/list/index.js +0 -4
- package/dist/patterns/list/index.js.map +0 -1
- package/dist/patterns/list/meta.d.ts.map +0 -1
- package/dist/patterns/list/meta.js.map +0 -1
- package/dist/patterns/list/resolveListSeparator.d.ts +0 -5
- package/dist/patterns/list/resolveListSeparator.d.ts.map +0 -1
- package/dist/patterns/list/resolveListSeparator.js.map +0 -1
- package/dist/patterns/list/types.d.ts.map +0 -1
- package/dist/patterns/list/types.js +0 -2
- package/dist/patterns/list/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/list/List.tsx +0 -78
- package/src/patterns/list/ListRow.tsx +0 -199
- package/src/patterns/list/index.ts +0 -10
- package/src/patterns/list/resolveListSeparator.test.ts +0 -18
- package/src/patterns/list/resolveListSeparator.ts +0 -8
- 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
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Spacer as SurfaceSpacer,
|
|
3
|
-
type SpacerProps as SurfaceSpacerProps,
|
|
4
|
-
} from '@ankhorage/surface';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { withZoraThemeScope } from '../theme/withZoraThemeScope';
|
|
8
|
-
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
9
|
-
|
|
10
|
-
export interface SpacerProps extends ZoraBaseProps, Omit<SurfaceSpacerProps, 'mode' | 'themeId'> {}
|
|
11
|
-
|
|
12
|
-
function SpacerInner({
|
|
13
|
-
themeId: _themeId,
|
|
14
|
-
mode: _mode,
|
|
15
|
-
interactionPolicy: _interactionPolicy,
|
|
16
|
-
...props
|
|
17
|
-
}: SpacerProps) {
|
|
18
|
-
return <SurfaceSpacer {...props} />;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/***
|
|
22
|
-
* Adds flexible or fixed empty space in layout compositions.
|
|
23
|
-
*
|
|
24
|
-
|
|
25
|
-
*/
|
|
26
|
-
export const Spacer = withZoraThemeScope(SpacerInner);
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
|
|
4
|
-
import { describe, expect, it } from 'bun:test';
|
|
5
|
-
|
|
6
|
-
const foundationIndex = readFileSync(join(import.meta.dir, 'index.ts'), 'utf8');
|
|
7
|
-
const rootIndex = readFileSync(join(import.meta.dir, '..', 'index.ts'), 'utf8');
|
|
8
|
-
|
|
9
|
-
describe('foundation exports', () => {
|
|
10
|
-
it('defines a narrow ZORA foundation export layer', () => {
|
|
11
|
-
expect(foundationIndex).toMatch(/export type \{/);
|
|
12
|
-
expect(foundationIndex).toMatch(/CenterProps/);
|
|
13
|
-
expect(foundationIndex).toMatch(/InlineProps/);
|
|
14
|
-
expect(foundationIndex).toMatch(/ShowProps/);
|
|
15
|
-
expect(foundationIndex).toMatch(/SpacerProps/);
|
|
16
|
-
expect(foundationIndex).not.toMatch(/Box|Container|Grid|Stack|Surface/);
|
|
17
|
-
expect(foundationIndex).not.toMatch(/@ankhorage\/surface/);
|
|
18
|
-
expect(foundationIndex).not.toMatch(/Heading/);
|
|
19
|
-
expect(foundationIndex).not.toMatch(/Text/);
|
|
20
|
-
expect(foundationIndex).not.toMatch(/ThemeProvider/);
|
|
21
|
-
expect(foundationIndex).not.toMatch(/ResponsiveProvider/);
|
|
22
|
-
expect(foundationIndex).not.toMatch(/useTheme/);
|
|
23
|
-
expect(foundationIndex).not.toMatch(/useResponsiveRuntime/);
|
|
24
|
-
expect(foundationIndex).not.toMatch(/resolveResponsive/);
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it('re-exports the foundation layer from the ZORA root entrypoint', () => {
|
|
28
|
-
expect(rootIndex).toMatch(/from '\.\/foundation';/);
|
|
29
|
-
});
|
|
30
|
-
});
|
package/src/foundation/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type { CenterProps } from './Center';
|
|
2
|
-
export { Center } from './Center';
|
|
3
|
-
export type { InlineProps } from './Inline';
|
|
4
|
-
export { Inline } from './Inline';
|
|
5
|
-
export type { ShowProps } from './Show';
|
|
6
|
-
export { Show } from './Show';
|
|
7
|
-
export type { SpacerProps } from './Spacer';
|
|
8
|
-
export { Spacer } from './Spacer';
|
package/src/foundation/meta.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ZoraComponentMetaRegistry } from '../metadata';
|
|
2
|
-
|
|
3
|
-
export const foundationMetas = {
|
|
4
|
-
Center: {
|
|
5
|
-
name: 'Center',
|
|
6
|
-
category: 'foundation',
|
|
7
|
-
directManifestNode: false,
|
|
8
|
-
allowedChildren: [],
|
|
9
|
-
note: 'Layout helper component; not represented as a manifest node in v1.',
|
|
10
|
-
props: {},
|
|
11
|
-
},
|
|
12
|
-
Inline: {
|
|
13
|
-
name: 'Inline',
|
|
14
|
-
category: 'foundation',
|
|
15
|
-
directManifestNode: false,
|
|
16
|
-
allowedChildren: [],
|
|
17
|
-
note: 'Layout helper component; not represented as a manifest node in v1.',
|
|
18
|
-
props: {},
|
|
19
|
-
},
|
|
20
|
-
Show: {
|
|
21
|
-
name: 'Show',
|
|
22
|
-
category: 'foundation',
|
|
23
|
-
directManifestNode: false,
|
|
24
|
-
allowedChildren: [],
|
|
25
|
-
note: 'Responsive utility component; not represented as a manifest node in v1.',
|
|
26
|
-
props: {},
|
|
27
|
-
},
|
|
28
|
-
Spacer: {
|
|
29
|
-
name: 'Spacer',
|
|
30
|
-
category: 'foundation',
|
|
31
|
-
directManifestNode: false,
|
|
32
|
-
allowedChildren: [],
|
|
33
|
-
note: 'Spacing utility component; not represented as a manifest node in v1.',
|
|
34
|
-
props: {},
|
|
35
|
-
},
|
|
36
|
-
} as const satisfies ZoraComponentMetaRegistry;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { join } from 'node:path';
|
|
3
|
-
|
|
4
|
-
import { describe, expect, test } from 'bun:test';
|
|
5
|
-
|
|
6
|
-
const APP_SHELL_DIR = import.meta.dir;
|
|
7
|
-
|
|
8
|
-
function readAppShellFile(fileName: string): string {
|
|
9
|
-
return readFileSync(join(APP_SHELL_DIR, fileName), 'utf8');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
describe('AppShell public API', () => {
|
|
13
|
-
test('does not expose raw style escape hatches', () => {
|
|
14
|
-
const typesSource = readAppShellFile('types.ts');
|
|
15
|
-
const implementationSource = readAppShellFile('AppShell.tsx');
|
|
16
|
-
|
|
17
|
-
expect(typesSource).not.toContain('StyleProp');
|
|
18
|
-
expect(typesSource).not.toContain('ViewStyle');
|
|
19
|
-
expect(typesSource).not.toMatch(/\bstyle\??:/);
|
|
20
|
-
expect(typesSource).not.toMatch(/\bbodyStyle\??:/);
|
|
21
|
-
expect(implementationSource).not.toMatch(/\bbodyStyle\b/);
|
|
22
|
-
expect(implementationSource).not.toMatch(/\bstyle,\s*$/m);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
|
|
4
|
-
import { Box } from '../../features/layout/public';
|
|
5
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import type { AppShellProps } from './types';
|
|
7
|
-
|
|
8
|
-
function AppShellInner({
|
|
9
|
-
themeId: _themeId,
|
|
10
|
-
mode: _mode,
|
|
11
|
-
interactionPolicy: _interactionPolicy,
|
|
12
|
-
children,
|
|
13
|
-
header,
|
|
14
|
-
footer,
|
|
15
|
-
overlay,
|
|
16
|
-
testID,
|
|
17
|
-
}: AppShellProps) {
|
|
18
|
-
return (
|
|
19
|
-
<Box bg="background" flex={1} testID={testID}>
|
|
20
|
-
<View style={styles.root}>
|
|
21
|
-
{header ? <View style={styles.slot}>{header}</View> : null}
|
|
22
|
-
|
|
23
|
-
<View style={styles.body}>{children}</View>
|
|
24
|
-
|
|
25
|
-
{footer ? <View style={styles.slot}>{footer}</View> : null}
|
|
26
|
-
|
|
27
|
-
{overlay ? <View style={[StyleSheet.absoluteFill, styles.overlay]}>{overlay}</View> : null}
|
|
28
|
-
</View>
|
|
29
|
-
</Box>
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/***
|
|
34
|
-
* Root application shell with stable header, content, footer, and overlay slots.
|
|
35
|
-
*
|
|
36
|
-
* `AppShell` provides the top-level layout frame for cross-platform apps while
|
|
37
|
-
* leaving navigation, toolbars, and overlays composable through explicit slots.
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
* @example App frame
|
|
41
|
-
* ```tsx
|
|
42
|
-
* <AppShell header={<AppBar title="Dashboard" />}>...</AppShell>
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
export const AppShell = withZoraThemeScope(AppShellInner);
|
|
46
|
-
|
|
47
|
-
const styles = StyleSheet.create({
|
|
48
|
-
root: {
|
|
49
|
-
flex: 1,
|
|
50
|
-
minHeight: 0,
|
|
51
|
-
position: 'relative',
|
|
52
|
-
},
|
|
53
|
-
body: {
|
|
54
|
-
flex: 1,
|
|
55
|
-
minHeight: 0,
|
|
56
|
-
minWidth: 0,
|
|
57
|
-
},
|
|
58
|
-
slot: {
|
|
59
|
-
flexShrink: 0,
|
|
60
|
-
},
|
|
61
|
-
overlay: {
|
|
62
|
-
pointerEvents: 'box-none',
|
|
63
|
-
zIndex: 10,
|
|
64
|
-
},
|
|
65
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
|
-
|
|
5
|
-
export interface AppShellProps extends ZoraBaseProps {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
header?: React.ReactNode;
|
|
8
|
-
footer?: React.ReactNode;
|
|
9
|
-
overlay?: React.ReactNode;
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { readFile } from 'node:fs/promises';
|
|
2
|
-
|
|
3
|
-
import { describe, expect, it } from 'bun:test';
|
|
4
|
-
|
|
5
|
-
describe('Screen scroll ownership contract', () => {
|
|
6
|
-
it('keeps scroll=false as a bounded delegated viewport', async () => {
|
|
7
|
-
const source = await readFile(new URL('./Screen.tsx', import.meta.url), 'utf8');
|
|
8
|
-
|
|
9
|
-
expect(source).toContain('if (!scroll)');
|
|
10
|
-
expect(source).toContain('flex={1} minHeight={0} minWidth={0}');
|
|
11
|
-
expect(source).toContain('{children}');
|
|
12
|
-
expect(source).not.toContain('{content}');
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('keeps normal scrolling owned by Screen', async () => {
|
|
16
|
-
const source = await readFile(new URL('./Screen.tsx', import.meta.url), 'utf8');
|
|
17
|
-
|
|
18
|
-
expect(source).toContain('<ScrollArea');
|
|
19
|
-
expect(source).toContain('style={{ flex: 1, minHeight: 0, minWidth: 0 }}');
|
|
20
|
-
expect(source).toContain('<Container maxWidth={resolvePageMaxWidth(width)}');
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ScrollArea } from '@ankhorage/surface';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
import { Box, Container, Stack } from '../../features/layout/public';
|
|
5
|
-
import { resolvePageMaxWidth } from '../../internal/recipes';
|
|
6
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import type { ScreenProps } from './types';
|
|
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
|
-
if (!scroll) {
|
|
20
|
-
return (
|
|
21
|
-
<Box bg="background" flex={1} minHeight={0} minWidth={0} testID={testID}>
|
|
22
|
-
{children}
|
|
23
|
-
{footer}
|
|
24
|
-
</Box>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return (
|
|
29
|
-
<ScrollArea bg="background" style={{ flex: 1, minHeight: 0, minWidth: 0 }}>
|
|
30
|
-
<Container maxWidth={resolvePageMaxWidth(width)} py="xl" testID={testID}>
|
|
31
|
-
<Stack gap="l">
|
|
32
|
-
{children}
|
|
33
|
-
{footer}
|
|
34
|
-
</Stack>
|
|
35
|
-
</Container>
|
|
36
|
-
</ScrollArea>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Outer content boundary for one app screen.
|
|
42
|
-
*
|
|
43
|
-
* By default Screen owns normal vertical scrolling. Set `scroll={false}` to preserve a bounded
|
|
44
|
-
* viewport and delegate scroll or gesture ownership to specialized children such as lists, maps,
|
|
45
|
-
* chats, canvases, or editors.
|
|
46
|
-
*/
|
|
47
|
-
export const Screen = withZoraThemeScope(ScreenInner);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
import type { ZoraContentWidth } from '../../internal/recipes';
|
|
4
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
5
|
-
|
|
6
|
-
export interface ScreenProps extends ZoraBaseProps {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
footer?: React.ReactNode;
|
|
9
|
-
scroll?: boolean;
|
|
10
|
-
width?: ZoraContentWidth;
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
|
-
|
|
5
|
-
export interface ScreenSectionProps extends ZoraBaseProps {
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
actions?: React.ReactNode;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { AppBar } from '../../features/app-bar/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { Screen } from '../screen';
|
|
6
|
-
import { SidebarLayout } from '../sidebar-layout';
|
|
7
|
-
import type { SettingsLayoutProps } from './types';
|
|
8
|
-
|
|
9
|
-
function SettingsLayoutInner({
|
|
10
|
-
themeId: _themeId,
|
|
11
|
-
mode: _mode,
|
|
12
|
-
interactionPolicy: _interactionPolicy,
|
|
13
|
-
title,
|
|
14
|
-
description,
|
|
15
|
-
sidebar,
|
|
16
|
-
children,
|
|
17
|
-
actions,
|
|
18
|
-
testID,
|
|
19
|
-
}: SettingsLayoutProps) {
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
{title ? <AppBar actions={actions} subtitle={description} title={title} /> : null}
|
|
23
|
-
<Screen testID={testID}>
|
|
24
|
-
<SidebarLayout sidebar={sidebar}>{children}</SidebarLayout>
|
|
25
|
-
</Screen>
|
|
26
|
-
</>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/***
|
|
31
|
-
* Settings page layout with app bar, sidebar, and scrollable content area.
|
|
32
|
-
*/
|
|
33
|
-
export const SettingsLayout = withZoraThemeScope(SettingsLayoutInner);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ZoraComponentMeta } from '../../metadata';
|
|
2
|
-
|
|
3
|
-
export const settingsLayoutMeta = {
|
|
4
|
-
name: 'SettingsLayout',
|
|
5
|
-
category: 'layout',
|
|
6
|
-
directManifestNode: false,
|
|
7
|
-
allowedChildren: [],
|
|
8
|
-
note: 'Application layout; not represented as a manifest node in v1.',
|
|
9
|
-
props: {},
|
|
10
|
-
} as const satisfies ZoraComponentMeta;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
|
-
|
|
5
|
-
export interface SettingsLayoutProps extends ZoraBaseProps {
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
sidebar: React.ReactNode;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
actions?: React.ReactNode;
|
|
11
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
|
|
3
|
-
import { resolveSidebarLayoutSizing } from './resolveSidebarLayoutSizing';
|
|
4
|
-
|
|
5
|
-
describe('SidebarLayout sizing contract', () => {
|
|
6
|
-
it('keeps content-flow sizing as the default', () => {
|
|
7
|
-
expect(resolveSidebarLayoutSizing()).toEqual({
|
|
8
|
-
root: {
|
|
9
|
-
align: 'flex-start',
|
|
10
|
-
flex: undefined,
|
|
11
|
-
minHeight: undefined,
|
|
12
|
-
minWidth: undefined,
|
|
13
|
-
},
|
|
14
|
-
child: {
|
|
15
|
-
minHeight: undefined,
|
|
16
|
-
minWidth: undefined,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
it('fills a bounded parent for child-owned scroll areas', () => {
|
|
22
|
-
expect(resolveSidebarLayoutSizing('fill')).toEqual({
|
|
23
|
-
root: {
|
|
24
|
-
align: 'stretch',
|
|
25
|
-
flex: 1,
|
|
26
|
-
minHeight: 0,
|
|
27
|
-
minWidth: 0,
|
|
28
|
-
},
|
|
29
|
-
child: {
|
|
30
|
-
minHeight: 0,
|
|
31
|
-
minWidth: 0,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
});
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Box, Stack } from '../../features/layout/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { resolveSidebarLayoutSizing } from './resolveSidebarLayoutSizing';
|
|
6
|
-
import type { SidebarLayoutProps } from './types';
|
|
7
|
-
|
|
8
|
-
function SidebarLayoutInner({
|
|
9
|
-
themeId: _themeId,
|
|
10
|
-
mode: _mode,
|
|
11
|
-
interactionPolicy: _interactionPolicy,
|
|
12
|
-
sidebar,
|
|
13
|
-
children,
|
|
14
|
-
aside,
|
|
15
|
-
sidebarWidth = 280,
|
|
16
|
-
asideWidth = 280,
|
|
17
|
-
sizing,
|
|
18
|
-
testID,
|
|
19
|
-
}: SidebarLayoutProps) {
|
|
20
|
-
const layoutSizing = resolveSidebarLayoutSizing(sizing);
|
|
21
|
-
|
|
22
|
-
return (
|
|
23
|
-
<Stack {...layoutSizing.root} direction={{ base: 'column', lg: 'row' }} gap="l" testID={testID}>
|
|
24
|
-
<Box {...layoutSizing.child} width={{ base: '100%', lg: sidebarWidth }}>
|
|
25
|
-
{sidebar}
|
|
26
|
-
</Box>
|
|
27
|
-
<Box {...layoutSizing.child} flex={1} width="100%">
|
|
28
|
-
{children}
|
|
29
|
-
</Box>
|
|
30
|
-
{aside ? (
|
|
31
|
-
<Box {...layoutSizing.child} width={{ base: '100%', lg: asideWidth }}>
|
|
32
|
-
{aside}
|
|
33
|
-
</Box>
|
|
34
|
-
) : null}
|
|
35
|
-
</Stack>
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/***
|
|
40
|
-
* Responsive layout with a sidebar and main content area (and optional aside).
|
|
41
|
-
*
|
|
42
|
-
* `sizing="content"` keeps normal content-flow behavior. Use `sizing="fill"` when the layout
|
|
43
|
-
* should fill an already bounded parent so sidebar/content children receive the available space
|
|
44
|
-
* for their own scrolling or gesture ownership.
|
|
45
|
-
*/
|
|
46
|
-
export const SidebarLayout = withZoraThemeScope(SidebarLayoutInner);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { SidebarLayoutSizing } from './types';
|
|
2
|
-
|
|
3
|
-
export function resolveSidebarLayoutSizing(sizing: SidebarLayoutSizing = 'content') {
|
|
4
|
-
const fillsAvailableSpace = sizing === 'fill';
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
root: {
|
|
8
|
-
align: fillsAvailableSpace ? 'stretch' : 'flex-start',
|
|
9
|
-
flex: fillsAvailableSpace ? 1 : undefined,
|
|
10
|
-
minHeight: fillsAvailableSpace ? 0 : undefined,
|
|
11
|
-
minWidth: fillsAvailableSpace ? 0 : undefined,
|
|
12
|
-
},
|
|
13
|
-
child: {
|
|
14
|
-
minHeight: fillsAvailableSpace ? 0 : undefined,
|
|
15
|
-
minWidth: fillsAvailableSpace ? 0 : undefined,
|
|
16
|
-
},
|
|
17
|
-
} as const;
|
|
18
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
|
-
|
|
5
|
-
export type SidebarLayoutSizing = 'content' | 'fill';
|
|
6
|
-
|
|
7
|
-
export interface SidebarLayoutProps extends ZoraBaseProps {
|
|
8
|
-
sidebar: React.ReactNode;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
aside?: React.ReactNode;
|
|
11
|
-
sidebarWidth?: number;
|
|
12
|
-
asideWidth?: number;
|
|
13
|
-
sizing?: SidebarLayoutSizing;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Box, Stack } from '../../features/layout/public';
|
|
4
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { SidebarLayout } from '../sidebar-layout';
|
|
6
|
-
import type { TopbarLayoutProps } from './types';
|
|
7
|
-
|
|
8
|
-
function TopbarLayoutInner({
|
|
9
|
-
themeId: _themeId,
|
|
10
|
-
mode: _mode,
|
|
11
|
-
interactionPolicy: _interactionPolicy,
|
|
12
|
-
topbar,
|
|
13
|
-
children,
|
|
14
|
-
sidebar,
|
|
15
|
-
testID,
|
|
16
|
-
}: TopbarLayoutProps) {
|
|
17
|
-
return (
|
|
18
|
-
<Stack gap="l" testID={testID}>
|
|
19
|
-
<Box>{topbar}</Box>
|
|
20
|
-
{sidebar ? <SidebarLayout sidebar={sidebar}>{children}</SidebarLayout> : children}
|
|
21
|
-
</Stack>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/***
|
|
26
|
-
* Layout that composes a top bar with optional sidebar and content.
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
export const TopbarLayout = withZoraThemeScope(TopbarLayoutInner);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ZoraComponentMeta } from '../../metadata';
|
|
2
|
-
|
|
3
|
-
export const topbarLayoutMeta = {
|
|
4
|
-
name: 'TopbarLayout',
|
|
5
|
-
category: 'layout',
|
|
6
|
-
directManifestNode: false,
|
|
7
|
-
allowedChildren: [],
|
|
8
|
-
note: 'Application layout; not represented as a manifest node in v1.',
|
|
9
|
-
props: {},
|
|
10
|
-
} as const satisfies ZoraComponentMeta;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import { Divider, Stack } from '../../features/layout/public';
|
|
4
|
-
import { Spacer } from '../../foundation';
|
|
5
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import { ListRow } from './ListRow';
|
|
7
|
-
import { resolveListSeparator } from './resolveListSeparator';
|
|
8
|
-
import type { ListItemsProps, ListProps, ListRowProps, ListRowVariant } from './types';
|
|
9
|
-
|
|
10
|
-
function resolveRowVariant({
|
|
11
|
-
item,
|
|
12
|
-
defaultVariant,
|
|
13
|
-
}: {
|
|
14
|
-
item: ListRowProps;
|
|
15
|
-
defaultVariant: ListRowVariant;
|
|
16
|
-
}): ListRowVariant {
|
|
17
|
-
return item.variant ?? defaultVariant;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function resolveRowCompact({
|
|
21
|
-
item,
|
|
22
|
-
compact,
|
|
23
|
-
}: {
|
|
24
|
-
item: ListRowProps;
|
|
25
|
-
compact: boolean | undefined;
|
|
26
|
-
}): boolean {
|
|
27
|
-
return item.compact ?? compact ?? false;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function ListItemsInner({
|
|
31
|
-
themeId: _themeId,
|
|
32
|
-
mode: _mode,
|
|
33
|
-
testID,
|
|
34
|
-
items,
|
|
35
|
-
rowVariant = 'divider',
|
|
36
|
-
compact,
|
|
37
|
-
}: ListItemsProps) {
|
|
38
|
-
return (
|
|
39
|
-
<Stack gap="none" testID={testID}>
|
|
40
|
-
{items.map((item, index) => {
|
|
41
|
-
const effectiveVariant = resolveRowVariant({ item, defaultVariant: rowVariant });
|
|
42
|
-
const separator = resolveListSeparator(effectiveVariant, index);
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<React.Fragment key={`${index}`}>
|
|
46
|
-
{separator === 'divider' ? <Divider /> : null}
|
|
47
|
-
{separator === 'spacer' ? <Spacer size="s" /> : null}
|
|
48
|
-
<ListRow
|
|
49
|
-
{...item}
|
|
50
|
-
compact={resolveRowCompact({ item, compact })}
|
|
51
|
-
variant={effectiveVariant}
|
|
52
|
-
/>
|
|
53
|
-
</React.Fragment>
|
|
54
|
-
);
|
|
55
|
-
})}
|
|
56
|
-
</Stack>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
function ListInner(props: ListProps) {
|
|
61
|
-
if ('items' in props) {
|
|
62
|
-
return <ListItemsInner {...props} />;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const { themeId: _themeId, mode: _mode, children, testID } = props;
|
|
66
|
-
return (
|
|
67
|
-
<Stack gap="none" testID={testID}>
|
|
68
|
-
{children}
|
|
69
|
-
</Stack>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/***
|
|
74
|
-
* List container pattern for composing `ListRow` and `ListSection`.
|
|
75
|
-
*
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
export const List = withZoraThemeScope(ListInner);
|