@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
|
@@ -4,7 +4,7 @@ import { Image } from 'react-native';
|
|
|
4
4
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
5
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
6
6
|
import type { MediaCardProps } from '../../../../types/media-card';
|
|
7
|
-
import {
|
|
7
|
+
import { View } from '../../../layout/public';
|
|
8
8
|
import { Heading } from '../../../typography/public';
|
|
9
9
|
import { Text } from '../../../typography/public';
|
|
10
10
|
import { Card } from '../../public';
|
|
@@ -51,9 +51,9 @@ function MediaCardInner({
|
|
|
51
51
|
const renderImage = () => {
|
|
52
52
|
if (image) {
|
|
53
53
|
return (
|
|
54
|
-
<
|
|
54
|
+
<View radius="m" style={{ overflow: 'hidden' }}>
|
|
55
55
|
{image}
|
|
56
|
-
</
|
|
56
|
+
</View>
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -62,15 +62,15 @@ function MediaCardInner({
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
return (
|
|
65
|
-
<
|
|
66
|
-
<
|
|
65
|
+
<View bg={theme.semantics.neutral.surface} radius="m" style={{ overflow: 'hidden' }}>
|
|
66
|
+
<View style={{ aspectRatio: resolvedAspectRatio, width: '100%' }}>
|
|
67
67
|
<Image
|
|
68
68
|
accessibilityLabel={imageLabel}
|
|
69
69
|
source={imageSource}
|
|
70
70
|
style={{ height: '100%', width: '100%' }}
|
|
71
71
|
/>
|
|
72
|
-
</
|
|
73
|
-
</
|
|
72
|
+
</View>
|
|
73
|
+
</View>
|
|
74
74
|
);
|
|
75
75
|
};
|
|
76
76
|
|
|
@@ -84,41 +84,41 @@ function MediaCardInner({
|
|
|
84
84
|
testID={testID}
|
|
85
85
|
tone={tone}
|
|
86
86
|
>
|
|
87
|
-
<
|
|
87
|
+
<View gap={gap}>
|
|
88
88
|
{renderImage()}
|
|
89
89
|
|
|
90
90
|
{hasHeader ? (
|
|
91
|
-
<
|
|
91
|
+
<View
|
|
92
92
|
align={{ base: 'flex-start', md: 'center' }}
|
|
93
93
|
direction={{ base: 'column', md: 'row' }}
|
|
94
94
|
gap="m"
|
|
95
95
|
justify="space-between"
|
|
96
96
|
>
|
|
97
|
-
<
|
|
98
|
-
<
|
|
97
|
+
<View flex={{ md: 1 }} width={{ base: '100%', md: 'auto' }}>
|
|
98
|
+
<View gap="xs">
|
|
99
99
|
{eyebrow ? (
|
|
100
100
|
<Text emphasis="muted" variant="caption" weight="semiBold">
|
|
101
101
|
{eyebrow}
|
|
102
102
|
</Text>
|
|
103
103
|
) : null}
|
|
104
|
-
<
|
|
104
|
+
<View gap="xs">
|
|
105
105
|
<Heading level={compact ? 4 : 3}>{title}</Heading>
|
|
106
|
-
{badges ? <
|
|
107
|
-
</
|
|
106
|
+
{badges ? <View>{badges}</View> : null}
|
|
107
|
+
</View>
|
|
108
108
|
{description ? (
|
|
109
109
|
<Text emphasis="muted" variant="bodySmall">
|
|
110
110
|
{description}
|
|
111
111
|
</Text>
|
|
112
112
|
) : null}
|
|
113
|
-
</
|
|
114
|
-
</
|
|
115
|
-
{actions ? <
|
|
116
|
-
</
|
|
113
|
+
</View>
|
|
114
|
+
</View>
|
|
115
|
+
{actions ? <View>{actions}</View> : null}
|
|
116
|
+
</View>
|
|
117
117
|
) : null}
|
|
118
118
|
|
|
119
|
-
{children ? <
|
|
120
|
-
{footer ? <
|
|
121
|
-
</
|
|
119
|
+
{children ? <View>{children}</View> : null}
|
|
120
|
+
{footer ? <View pt="xs">{footer}</View> : null}
|
|
121
|
+
</View>
|
|
122
122
|
</Card>
|
|
123
123
|
);
|
|
124
124
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Inline } from '../../../../foundation';
|
|
4
3
|
import { resolveBadgeRecipe, resolveIconSize } from '../../../../internal/recipes';
|
|
5
4
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
6
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
7
6
|
import type { MetricCardProps } from '../../../../types/metric-card';
|
|
8
7
|
import { Badge } from '../../../badge/public';
|
|
9
8
|
import { Icon } from '../../../icon/public';
|
|
10
|
-
import {
|
|
9
|
+
import { View } from '../../../layout/public';
|
|
11
10
|
import { Heading } from '../../../typography/public';
|
|
12
11
|
import { Text } from '../../../typography/public';
|
|
13
12
|
import { Card } from '../../public';
|
|
@@ -46,10 +45,10 @@ function MetricCardInner({
|
|
|
46
45
|
testID={testID}
|
|
47
46
|
tone={tone}
|
|
48
47
|
>
|
|
49
|
-
<
|
|
50
|
-
<
|
|
51
|
-
<
|
|
52
|
-
<
|
|
48
|
+
<View gap={compact ? 's' : 'm'}>
|
|
49
|
+
<View direction="row" align="flex-start" gap="m" justify="space-between">
|
|
50
|
+
<View flex={1} gap="xs">
|
|
51
|
+
<View direction="row" align="center" gap="xs" wrap="wrap">
|
|
53
52
|
{icon ? <Icon {...icon} color={iconColor} size={resolveIconSize('s')} /> : null}
|
|
54
53
|
<Text emphasis="muted" variant="caption" weight="semiBold">
|
|
55
54
|
{label}
|
|
@@ -63,7 +62,7 @@ function MetricCardInner({
|
|
|
63
62
|
{delta}
|
|
64
63
|
</Badge>
|
|
65
64
|
) : null}
|
|
66
|
-
</
|
|
65
|
+
</View>
|
|
67
66
|
|
|
68
67
|
<Heading level={compact ? 3 : 2}>{value}</Heading>
|
|
69
68
|
|
|
@@ -72,11 +71,11 @@ function MetricCardInner({
|
|
|
72
71
|
{description}
|
|
73
72
|
</Text>
|
|
74
73
|
) : null}
|
|
75
|
-
</
|
|
74
|
+
</View>
|
|
76
75
|
|
|
77
|
-
{actions ? <
|
|
78
|
-
</
|
|
79
|
-
</
|
|
76
|
+
{actions ? <View>{actions}</View> : null}
|
|
77
|
+
</View>
|
|
78
|
+
</View>
|
|
80
79
|
</Card>
|
|
81
80
|
);
|
|
82
81
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Image as ReactNativeImage } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { Inline } from '../../../../foundation';
|
|
5
4
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
6
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
7
6
|
import type {
|
|
@@ -13,7 +12,7 @@ import type {
|
|
|
13
12
|
} from '../../../../types/post-card';
|
|
14
13
|
import { Avatar } from '../../../avatar/public';
|
|
15
14
|
import { Button } from '../../../button/public';
|
|
16
|
-
import {
|
|
15
|
+
import { Divider, View } from '../../../layout/public';
|
|
17
16
|
import { Text } from '../../../typography/public';
|
|
18
17
|
import { Card } from '../../public';
|
|
19
18
|
/***
|
|
@@ -58,7 +57,7 @@ function PostCardAuthor({ author, compact = false }: { author: PostAuthor; compa
|
|
|
58
57
|
const { avatar } = author;
|
|
59
58
|
|
|
60
59
|
return (
|
|
61
|
-
<
|
|
60
|
+
<View direction="row" align="center" gap="s" wrap="nowrap">
|
|
62
61
|
<Avatar
|
|
63
62
|
initials={avatar?.initials}
|
|
64
63
|
label={avatar?.label ?? avatarName}
|
|
@@ -68,8 +67,8 @@ function PostCardAuthor({ author, compact = false }: { author: PostAuthor; compa
|
|
|
68
67
|
source={avatar?.source}
|
|
69
68
|
color={avatar?.color}
|
|
70
69
|
/>
|
|
71
|
-
<
|
|
72
|
-
<
|
|
70
|
+
<View flex={1}>
|
|
71
|
+
<View gap="xxs">
|
|
73
72
|
<Text variant="bodySmall" weight="semiBold">
|
|
74
73
|
{author.name}
|
|
75
74
|
</Text>
|
|
@@ -78,9 +77,9 @@ function PostCardAuthor({ author, compact = false }: { author: PostAuthor; compa
|
|
|
78
77
|
{author.subtitle}
|
|
79
78
|
</Text>
|
|
80
79
|
) : null}
|
|
81
|
-
</
|
|
82
|
-
</
|
|
83
|
-
</
|
|
80
|
+
</View>
|
|
81
|
+
</View>
|
|
82
|
+
</View>
|
|
84
83
|
);
|
|
85
84
|
}
|
|
86
85
|
|
|
@@ -90,22 +89,22 @@ function PostCardMediaItem({ media }: { media: PostCardMedia }) {
|
|
|
90
89
|
|
|
91
90
|
if (!('source' in media)) {
|
|
92
91
|
return (
|
|
93
|
-
<
|
|
92
|
+
<View radius="m" style={{ overflow: 'hidden' }}>
|
|
94
93
|
{media.children}
|
|
95
|
-
</
|
|
94
|
+
</View>
|
|
96
95
|
);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
return (
|
|
100
|
-
<
|
|
101
|
-
<
|
|
99
|
+
<View bg={theme.semantics.neutral.surface} radius="m" style={{ overflow: 'hidden' }}>
|
|
100
|
+
<View style={{ aspectRatio, width: '100%' }}>
|
|
102
101
|
<ReactNativeImage
|
|
103
102
|
accessibilityLabel={media.label}
|
|
104
103
|
source={media.source}
|
|
105
104
|
style={{ height: '100%', width: '100%' }}
|
|
106
105
|
/>
|
|
107
|
-
</
|
|
108
|
-
</
|
|
106
|
+
</View>
|
|
107
|
+
</View>
|
|
109
108
|
);
|
|
110
109
|
}
|
|
111
110
|
|
|
@@ -127,7 +126,7 @@ function PostCardActions({ actions }: { actions: readonly PostAction[] }) {
|
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
return (
|
|
130
|
-
<
|
|
129
|
+
<View direction="row" align="center" gap="s" wrap="wrap">
|
|
131
130
|
{actions.map((action) => (
|
|
132
131
|
<Button
|
|
133
132
|
key={action.id}
|
|
@@ -141,26 +140,26 @@ function PostCardActions({ actions }: { actions: readonly PostAction[] }) {
|
|
|
141
140
|
<PostActionLabel action={action} />
|
|
142
141
|
</Button>
|
|
143
142
|
))}
|
|
144
|
-
</
|
|
143
|
+
</View>
|
|
145
144
|
);
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
function PostCommentPreviewItem({ comment }: { comment: PostCommentPreview }) {
|
|
149
148
|
return (
|
|
150
|
-
<
|
|
149
|
+
<View direction="row" align="flex-start" gap="s" wrap="nowrap">
|
|
151
150
|
{comment.author ? <PostCardAuthor author={comment.author} compact /> : null}
|
|
152
|
-
<
|
|
153
|
-
<
|
|
151
|
+
<View flex={1}>
|
|
152
|
+
<View gap="xxs">
|
|
154
153
|
<Text variant="bodySmall">{comment.text}</Text>
|
|
155
154
|
{comment.meta ? (
|
|
156
155
|
<Text emphasis="subtle" variant="caption">
|
|
157
156
|
{comment.meta}
|
|
158
157
|
</Text>
|
|
159
158
|
) : null}
|
|
160
|
-
{comment.action ? <
|
|
161
|
-
</
|
|
162
|
-
</
|
|
163
|
-
</
|
|
159
|
+
{comment.action ? <View>{comment.action}</View> : null}
|
|
160
|
+
</View>
|
|
161
|
+
</View>
|
|
162
|
+
</View>
|
|
164
163
|
);
|
|
165
164
|
}
|
|
166
165
|
|
|
@@ -170,11 +169,11 @@ function PostCardComments({ comments }: { comments: readonly PostCommentPreview[
|
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
return (
|
|
173
|
-
<
|
|
172
|
+
<View gap="s">
|
|
174
173
|
{comments.map((comment) => (
|
|
175
174
|
<PostCommentPreviewItem key={comment.id} comment={comment} />
|
|
176
175
|
))}
|
|
177
|
-
</
|
|
176
|
+
</View>
|
|
178
177
|
);
|
|
179
178
|
}
|
|
180
179
|
|
|
@@ -209,33 +208,33 @@ function PostCardInner({
|
|
|
209
208
|
testID={testID}
|
|
210
209
|
tone={tone}
|
|
211
210
|
>
|
|
212
|
-
<
|
|
213
|
-
<
|
|
214
|
-
<
|
|
211
|
+
<View gap={gap}>
|
|
212
|
+
<View direction="row" align="center" gap="m" justify="space-between" wrap="nowrap">
|
|
213
|
+
<View flex={1}>
|
|
215
214
|
<PostCardAuthor author={author} compact={compact} />
|
|
216
|
-
</
|
|
217
|
-
{headerAction ? <
|
|
218
|
-
</
|
|
215
|
+
</View>
|
|
216
|
+
{headerAction ? <View>{headerAction}</View> : null}
|
|
217
|
+
</View>
|
|
219
218
|
|
|
220
219
|
{hasBody ? (
|
|
221
|
-
<
|
|
220
|
+
<View gap={gap}>
|
|
222
221
|
{text ? <Text variant="body">{text}</Text> : null}
|
|
223
|
-
{children ? <
|
|
222
|
+
{children ? <View>{children}</View> : null}
|
|
224
223
|
{mediaItems.length > 0 ? (
|
|
225
|
-
<
|
|
224
|
+
<View gap="s">
|
|
226
225
|
{mediaItems.map((item, index) => (
|
|
227
226
|
<PostCardMediaItem key={`${index}`} media={item} />
|
|
228
227
|
))}
|
|
229
|
-
</
|
|
228
|
+
</View>
|
|
230
229
|
) : null}
|
|
231
|
-
</
|
|
230
|
+
</View>
|
|
232
231
|
) : null}
|
|
233
232
|
|
|
234
233
|
{hasEngagement ? <Divider /> : null}
|
|
235
234
|
<PostCardActions actions={actions} />
|
|
236
235
|
<PostCardComments comments={comments} />
|
|
237
|
-
{footer ? <
|
|
238
|
-
</
|
|
236
|
+
{footer ? <View pt="xs">{footer}</View> : null}
|
|
237
|
+
</View>
|
|
239
238
|
</Card>
|
|
240
239
|
);
|
|
241
240
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Inline } from '../../../../foundation';
|
|
4
3
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
4
|
import type { ZoraBaseProps } from '../../../../theme/ZoraBaseProps';
|
|
6
5
|
import type { ProductCardProps } from '../../../../types/product-card';
|
|
7
6
|
import { Badge } from '../../../badge/public';
|
|
8
7
|
import { Button } from '../../../button/public';
|
|
9
8
|
import { Image } from '../../../image/public';
|
|
10
|
-
import { Divider,
|
|
9
|
+
import { Divider, View } from '../../../layout/public';
|
|
11
10
|
import { Heading } from '../../../typography/public';
|
|
12
11
|
import { Text } from '../../../typography/public';
|
|
13
12
|
import { Card } from '../../public';
|
|
@@ -46,7 +45,7 @@ function ProductCardInner({
|
|
|
46
45
|
interactionPolicy={interactionPolicy}
|
|
47
46
|
{...rest}
|
|
48
47
|
>
|
|
49
|
-
<
|
|
48
|
+
<View gap="m">
|
|
50
49
|
{imageUrl ? (
|
|
51
50
|
<Image
|
|
52
51
|
accessibilityLabel={imageAlt ?? title}
|
|
@@ -56,9 +55,9 @@ function ProductCardInner({
|
|
|
56
55
|
/>
|
|
57
56
|
) : null}
|
|
58
57
|
|
|
59
|
-
<
|
|
58
|
+
<View gap="s">
|
|
60
59
|
{hasHeaderInfo ? (
|
|
61
|
-
<
|
|
60
|
+
<View gap="xxs">
|
|
62
61
|
{eyebrow ? (
|
|
63
62
|
<Text variant="caption" weight="semiBold" emphasis="muted">
|
|
64
63
|
{eyebrow}
|
|
@@ -70,19 +69,19 @@ function ProductCardInner({
|
|
|
70
69
|
{subtitle}
|
|
71
70
|
</Text>
|
|
72
71
|
) : null}
|
|
73
|
-
</
|
|
72
|
+
</View>
|
|
74
73
|
) : null}
|
|
75
74
|
|
|
76
75
|
{description ? <Text variant="bodySmall">{description}</Text> : null}
|
|
77
76
|
|
|
78
77
|
{badges && badges.length > 0 ? (
|
|
79
|
-
<
|
|
78
|
+
<View direction="row" gap="xs" wrap="wrap">
|
|
80
79
|
{badges.map((badge, index) => (
|
|
81
80
|
<Badge key={`${badge}-${index}`}>{badge}</Badge>
|
|
82
81
|
))}
|
|
83
|
-
</
|
|
82
|
+
</View>
|
|
84
83
|
) : null}
|
|
85
|
-
</
|
|
84
|
+
</View>
|
|
86
85
|
|
|
87
86
|
{price ? (
|
|
88
87
|
<Text variant="bodySmall" weight="bold">
|
|
@@ -92,25 +91,25 @@ function ProductCardInner({
|
|
|
92
91
|
) : null}
|
|
93
92
|
|
|
94
93
|
{hasMeta ? (
|
|
95
|
-
<
|
|
94
|
+
<View gap="xs">
|
|
96
95
|
<Divider />
|
|
97
96
|
{meta.map((item, index) => (
|
|
98
|
-
<
|
|
97
|
+
<View direction="row" key={`${item.label}-${index}`} justify="space-between">
|
|
99
98
|
<Text variant="bodySmall" emphasis="muted">
|
|
100
99
|
{item.label}
|
|
101
100
|
</Text>
|
|
102
101
|
<Text variant="bodySmall" weight="semiBold">
|
|
103
102
|
{item.value}
|
|
104
103
|
</Text>
|
|
105
|
-
</
|
|
104
|
+
</View>
|
|
106
105
|
))}
|
|
107
|
-
</
|
|
106
|
+
</View>
|
|
108
107
|
) : null}
|
|
109
108
|
|
|
110
109
|
{hasActions ? (
|
|
111
|
-
<
|
|
110
|
+
<View gap="s">
|
|
112
111
|
<Divider />
|
|
113
|
-
<
|
|
112
|
+
<View direction="row" gap="s">
|
|
114
113
|
{secondaryActionLabel ? (
|
|
115
114
|
<Button
|
|
116
115
|
interactionPolicy={interactionPolicy}
|
|
@@ -132,10 +131,10 @@ function ProductCardInner({
|
|
|
132
131
|
{primaryActionLabel}
|
|
133
132
|
</Button>
|
|
134
133
|
) : null}
|
|
135
|
-
</
|
|
136
|
-
</
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
137
136
|
) : null}
|
|
138
|
-
</
|
|
137
|
+
</View>
|
|
139
138
|
</Card>
|
|
140
139
|
);
|
|
141
140
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ButtonBase } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Inline } from '../../../../foundation';
|
|
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 { ChipInteractionState, ChipProps } from '../../../../types/chip';
|
|
9
8
|
import { Icon } from '../../../icon/public';
|
|
10
|
-
import {
|
|
9
|
+
import { View } from '../../../layout/public';
|
|
11
10
|
import { Text } from '../../../typography/public';
|
|
12
11
|
import { resolveChipColors } from '../../utils/resolveChipColors';
|
|
13
12
|
/***
|
|
@@ -57,7 +56,7 @@ function ChipInner({
|
|
|
57
56
|
const textEmphasis = state.disabled ? 'muted' : 'default';
|
|
58
57
|
|
|
59
58
|
return (
|
|
60
|
-
<
|
|
59
|
+
<View
|
|
61
60
|
bg={colors.backgroundColor}
|
|
62
61
|
borderColor={colors.borderColor}
|
|
63
62
|
borderWidth={1}
|
|
@@ -69,13 +68,13 @@ function ChipInner({
|
|
|
69
68
|
opacity: colors.opacity,
|
|
70
69
|
}}
|
|
71
70
|
>
|
|
72
|
-
<
|
|
71
|
+
<View direction="row" align="center" gap="xs" wrap="nowrap">
|
|
73
72
|
{icon ? <Icon {...icon} color={colors.contentColor} size={iconSize} /> : null}
|
|
74
73
|
<Text color={textColor} emphasis={textEmphasis} variant="label">
|
|
75
74
|
{children}
|
|
76
75
|
</Text>
|
|
77
|
-
</
|
|
78
|
-
</
|
|
76
|
+
</View>
|
|
77
|
+
</View>
|
|
79
78
|
);
|
|
80
79
|
};
|
|
81
80
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Inline } from '../../../../foundation';
|
|
4
3
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
5
4
|
import type { ChipGroupItem, ChipGroupProps } from '../../../../types/chip-group';
|
|
5
|
+
import { View } from '../../../layout/public';
|
|
6
6
|
import { Chip } from '../../public';
|
|
7
7
|
/***
|
|
8
8
|
* Renders a row or wrap layout of `Chip` items.
|
|
@@ -66,8 +66,8 @@ function ChipGroupInner<TValue extends string = string>({
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
|
-
<
|
|
69
|
+
<View direction="row" align="center" gap="s" testID={testID} wrap={wrap ? 'wrap' : 'nowrap'}>
|
|
70
70
|
{items.map(renderChip)}
|
|
71
|
-
</
|
|
71
|
+
</View>
|
|
72
72
|
);
|
|
73
73
|
}
|
|
@@ -30,7 +30,9 @@ describe('ContentRail public contract', () => {
|
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
test('keeps product data, navigation, and platform coupling outside the pattern', async () => {
|
|
33
|
-
const source = await Bun.file(
|
|
33
|
+
const source = await Bun.file(
|
|
34
|
+
'src/features/content-rail/adapters/inbound/ContentRail.tsx',
|
|
35
|
+
).text();
|
|
34
36
|
|
|
35
37
|
expect(source).toContain('ScrollView');
|
|
36
38
|
expect(source).toContain('I18nManager.isRTL');
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
type ViewStyle,
|
|
8
8
|
} from 'react-native';
|
|
9
9
|
|
|
10
|
-
import { Inline } from '../../../../foundation';
|
|
11
10
|
import { useZoraTheme } from '../../../../theme/useZoraTheme';
|
|
12
11
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
13
12
|
import type {
|
|
@@ -15,8 +14,8 @@ import type {
|
|
|
15
14
|
ContentRailVisibleRangeChangeEvent,
|
|
16
15
|
} from '../../../../types/content-rail';
|
|
17
16
|
import { IconButton } from '../../../button/public';
|
|
17
|
+
import { View } from '../../../layout/public';
|
|
18
18
|
import { Text } from '../../../typography/public';
|
|
19
|
-
import { Box, Stack } from '../../public';
|
|
20
19
|
import { resolveContentRailItemWidth } from '../../utils/resolveContentRailItemWidth';
|
|
21
20
|
import { resolveContentRailPhysicalOffset } from '../../utils/resolveContentRailPhysicalOffset';
|
|
22
21
|
import { resolveContentRailState } from '../../utils/resolveContentRailState';
|
|
@@ -190,13 +189,13 @@ function ContentRailCarousel({
|
|
|
190
189
|
};
|
|
191
190
|
|
|
192
191
|
return (
|
|
193
|
-
<
|
|
192
|
+
<View gap="s" testID={testID}>
|
|
194
193
|
{showControls && hasOverflow ? (
|
|
195
|
-
<
|
|
194
|
+
<View direction="row" justify="space-between" wrap="nowrap">
|
|
196
195
|
<Text accessibilityLiveRegion="polite" emphasis="muted" variant="caption">
|
|
197
196
|
{rangeLabel}
|
|
198
197
|
</Text>
|
|
199
|
-
<
|
|
198
|
+
<View direction="row" gap="xs" wrap="nowrap">
|
|
200
199
|
<IconButton
|
|
201
200
|
disabled={passive || !railState.canGoPrevious}
|
|
202
201
|
icon={{ name: isRtl ? 'chevron-forward' : 'chevron-back' }}
|
|
@@ -213,8 +212,8 @@ function ContentRailCarousel({
|
|
|
213
212
|
onPress={() => scrollToIndex(railState.anchorIndex + 1, 'next')}
|
|
214
213
|
size="l"
|
|
215
214
|
/>
|
|
216
|
-
</
|
|
217
|
-
</
|
|
215
|
+
</View>
|
|
216
|
+
</View>
|
|
218
217
|
) : null}
|
|
219
218
|
<ScrollView
|
|
220
219
|
accessibilityLabel={accessibilityLabel}
|
|
@@ -240,12 +239,12 @@ function ContentRailCarousel({
|
|
|
240
239
|
snapToInterval={itemWidth > 0 ? itemWidth + gapValue : undefined}
|
|
241
240
|
>
|
|
242
241
|
{items.map((item, index) => (
|
|
243
|
-
<
|
|
242
|
+
<View key={index} style={{ flexShrink: 0, width: itemWidth || undefined }}>
|
|
244
243
|
{item}
|
|
245
|
-
</
|
|
244
|
+
</View>
|
|
246
245
|
))}
|
|
247
246
|
</ScrollView>
|
|
248
|
-
</
|
|
247
|
+
</View>
|
|
249
248
|
);
|
|
250
249
|
}
|
|
251
250
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const CONTENT_RAIL_SPACING_VALUES = ['none', 'xs', 's', 'm', 'l', 'xl'] as const;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type {
|
|
2
|
+
ContentRailControlPressEvent,
|
|
3
|
+
ContentRailDirection,
|
|
4
|
+
ContentRailItemSize,
|
|
5
|
+
ContentRailMotion,
|
|
6
|
+
ContentRailProps,
|
|
7
|
+
ContentRailSpacing,
|
|
8
|
+
ContentRailVisibleRangeChangeEvent,
|
|
9
|
+
} from '../../types/content-rail';
|
|
10
|
+
export { ContentRail } from './adapters/inbound/ContentRail';
|