@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,7 +1,7 @@
|
|
|
1
1
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
2
2
|
import type { ToolbarProps } from '../../../../types/toolbar';
|
|
3
3
|
import { Card } from '../../../card/public';
|
|
4
|
-
import {
|
|
4
|
+
import { View } from '../../../layout/public';
|
|
5
5
|
|
|
6
6
|
/*** Renders a visible horizontal group of contextual actions and controls. */
|
|
7
7
|
export const Toolbar = withZoraThemeScope(ToolbarInner);
|
|
@@ -23,9 +23,9 @@ function ToolbarInner({
|
|
|
23
23
|
tone={floating ? 'default' : 'subtle'}
|
|
24
24
|
testID={testID}
|
|
25
25
|
>
|
|
26
|
-
<
|
|
26
|
+
<View align="center" direction="row" gap="s">
|
|
27
27
|
{children}
|
|
28
|
-
</
|
|
28
|
+
</View>
|
|
29
29
|
</Card>
|
|
30
30
|
);
|
|
31
31
|
}
|
|
@@ -4,10 +4,10 @@ import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
|
4
4
|
import type { UploadAsset, UploaderProps, UploadType } from '../../../../types/upload';
|
|
5
5
|
import { Button } from '../../../button/public';
|
|
6
6
|
import { Dialog } from '../../../dialog/public';
|
|
7
|
-
import {
|
|
7
|
+
import { Field } from '../../../form/public';
|
|
8
8
|
import { Icon } from '../../../icon/public';
|
|
9
9
|
import { Image } from '../../../image/public';
|
|
10
|
-
import {
|
|
10
|
+
import { View } from '../../../layout/public';
|
|
11
11
|
import { Progress } from '../../../progress/public';
|
|
12
12
|
import { Text } from '../../../typography/public';
|
|
13
13
|
import { validateUploadAsset } from '../../application/use-cases/validateUploadAsset';
|
|
@@ -206,7 +206,7 @@ function UploaderInner({
|
|
|
206
206
|
|
|
207
207
|
return (
|
|
208
208
|
<>
|
|
209
|
-
<
|
|
209
|
+
<Field
|
|
210
210
|
description={description}
|
|
211
211
|
disabled={disabled}
|
|
212
212
|
errorText={effectiveError}
|
|
@@ -218,11 +218,11 @@ function UploaderInner({
|
|
|
218
218
|
required={required}
|
|
219
219
|
testID={testID}
|
|
220
220
|
>
|
|
221
|
-
<
|
|
221
|
+
<View gap="m">
|
|
222
222
|
<UploadPresentation asset={value} aspectRatio={aspectRatio} type={type} />
|
|
223
223
|
|
|
224
224
|
{resolvedAccept || maxSizeBytes ? (
|
|
225
|
-
<
|
|
225
|
+
<View gap="xs">
|
|
226
226
|
{resolvedAccept ? (
|
|
227
227
|
<Text emphasis="muted" variant="caption">
|
|
228
228
|
Accepted: {resolvedAccept}
|
|
@@ -233,21 +233,21 @@ function UploaderInner({
|
|
|
233
233
|
Max size: {formatBytes(maxSizeBytes)}
|
|
234
234
|
</Text>
|
|
235
235
|
) : null}
|
|
236
|
-
</
|
|
236
|
+
</View>
|
|
237
237
|
) : null}
|
|
238
238
|
|
|
239
239
|
{uploading ? (
|
|
240
|
-
<
|
|
240
|
+
<View gap="xs">
|
|
241
241
|
<Text emphasis="muted" variant="caption">
|
|
242
242
|
Uploading…
|
|
243
243
|
</Text>
|
|
244
244
|
{uploadProgress !== undefined || progress !== null ? (
|
|
245
245
|
<Progress max={1} value={clampProgress(uploadProgress ?? progress) ?? 0} />
|
|
246
246
|
) : null}
|
|
247
|
-
</
|
|
247
|
+
</View>
|
|
248
248
|
) : null}
|
|
249
249
|
|
|
250
|
-
<
|
|
250
|
+
<View direction={{ base: 'column', md: 'row' }} gap="s">
|
|
251
251
|
<Button
|
|
252
252
|
disabled={actionsDisabled || uploading || removing}
|
|
253
253
|
interactionPolicy={interactionPolicy}
|
|
@@ -283,9 +283,9 @@ function UploaderInner({
|
|
|
283
283
|
Preview
|
|
284
284
|
</Button>
|
|
285
285
|
) : null}
|
|
286
|
-
</
|
|
287
|
-
</
|
|
288
|
-
</
|
|
286
|
+
</View>
|
|
287
|
+
</View>
|
|
288
|
+
</Field>
|
|
289
289
|
|
|
290
290
|
{canPreviewImage ? (
|
|
291
291
|
<Dialog
|
|
@@ -295,9 +295,9 @@ function UploaderInner({
|
|
|
295
295
|
title="Image preview"
|
|
296
296
|
visible={previewOpen}
|
|
297
297
|
>
|
|
298
|
-
<
|
|
298
|
+
<View gap="m">
|
|
299
299
|
<Image aspectRatio={aspectRatio} fit="contain" source={value} />
|
|
300
|
-
<
|
|
300
|
+
<View direction="row" justify="flex-end">
|
|
301
301
|
<Button
|
|
302
302
|
color="neutral"
|
|
303
303
|
interactionPolicy={interactionPolicy}
|
|
@@ -306,8 +306,8 @@ function UploaderInner({
|
|
|
306
306
|
>
|
|
307
307
|
Close
|
|
308
308
|
</Button>
|
|
309
|
-
</
|
|
310
|
-
</
|
|
309
|
+
</View>
|
|
310
|
+
</View>
|
|
311
311
|
</Dialog>
|
|
312
312
|
) : null}
|
|
313
313
|
</>
|
|
@@ -329,10 +329,10 @@ function UploadPresentation({
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
return (
|
|
332
|
-
<
|
|
333
|
-
<
|
|
332
|
+
<View borderWidth={1} p="m" radius="m">
|
|
333
|
+
<View direction="row" gap="s">
|
|
334
334
|
<Icon name={resolveUploadIcon(type)} size={22} />
|
|
335
|
-
<
|
|
335
|
+
<View gap="xs">
|
|
336
336
|
<Text variant="label" weight="semiBold">
|
|
337
337
|
{asset?.fileName ?? 'No file selected'}
|
|
338
338
|
</Text>
|
|
@@ -341,9 +341,9 @@ function UploadPresentation({
|
|
|
341
341
|
{asset.contentType}
|
|
342
342
|
</Text>
|
|
343
343
|
) : null}
|
|
344
|
-
</
|
|
345
|
-
</
|
|
346
|
-
</
|
|
344
|
+
</View>
|
|
345
|
+
</View>
|
|
346
|
+
</View>
|
|
347
347
|
);
|
|
348
348
|
}
|
|
349
349
|
|
package/src/index.ts
CHANGED
|
@@ -88,6 +88,16 @@ export type { ChipProps } from './features/chip/public';
|
|
|
88
88
|
export type { ChipGroupItem, ChipGroupProps } from './features/chip/public';
|
|
89
89
|
export { Chip } from './features/chip/public';
|
|
90
90
|
export { ChipGroup } from './features/chip/public';
|
|
91
|
+
export type {
|
|
92
|
+
ContentRailControlPressEvent,
|
|
93
|
+
ContentRailDirection,
|
|
94
|
+
ContentRailItemSize,
|
|
95
|
+
ContentRailMotion,
|
|
96
|
+
ContentRailProps,
|
|
97
|
+
ContentRailSpacing,
|
|
98
|
+
ContentRailVisibleRangeChangeEvent,
|
|
99
|
+
} from './features/content-rail/public';
|
|
100
|
+
export { ContentRail } from './features/content-rail/public';
|
|
91
101
|
export type {
|
|
92
102
|
DataTableCellContext,
|
|
93
103
|
DataTableColumn,
|
|
@@ -118,12 +128,12 @@ export {
|
|
|
118
128
|
type CheckboxProps,
|
|
119
129
|
} from './features/form/checkbox/public';
|
|
120
130
|
export type {
|
|
131
|
+
FieldProps,
|
|
121
132
|
FormActionsProps,
|
|
122
133
|
FormErrorProps,
|
|
123
134
|
FormErrors,
|
|
124
135
|
FormFieldConfig,
|
|
125
136
|
FormFieldInputType,
|
|
126
|
-
FormFieldProps,
|
|
127
137
|
FormProps,
|
|
128
138
|
FormValidationErrors,
|
|
129
139
|
FormValidationResult,
|
|
@@ -133,10 +143,10 @@ export type {
|
|
|
133
143
|
ValidationRule,
|
|
134
144
|
} from './features/form/public';
|
|
135
145
|
export {
|
|
146
|
+
Field,
|
|
136
147
|
Form,
|
|
137
148
|
FormActions,
|
|
138
149
|
FormError,
|
|
139
|
-
FormField,
|
|
140
150
|
hasRequiredRule,
|
|
141
151
|
useFormController,
|
|
142
152
|
validateField,
|
|
@@ -186,31 +196,42 @@ export {
|
|
|
186
196
|
type KeyboardAvoidingViewProps,
|
|
187
197
|
} from './features/keyboard-avoiding-view/public';
|
|
188
198
|
export type {
|
|
189
|
-
|
|
190
|
-
ContainerProps,
|
|
199
|
+
AppShellProps,
|
|
191
200
|
DividerProps,
|
|
192
201
|
GridProps,
|
|
193
|
-
|
|
202
|
+
ScreenProps,
|
|
203
|
+
ScreenSectionProps,
|
|
204
|
+
ScrollViewProps,
|
|
205
|
+
ViewProps,
|
|
194
206
|
} from './features/layout/public';
|
|
195
|
-
export
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
207
|
+
export {
|
|
208
|
+
AppShell,
|
|
209
|
+
Divider,
|
|
210
|
+
Grid,
|
|
211
|
+
Screen,
|
|
212
|
+
ScreenSection,
|
|
213
|
+
ScrollView,
|
|
214
|
+
View,
|
|
203
215
|
} from './features/layout/public';
|
|
204
|
-
export { Box, Container, Divider, Grid, Stack } from './features/layout/public';
|
|
205
|
-
export { ContentRail } from './features/layout/public';
|
|
206
216
|
export type {
|
|
207
217
|
ManifestListProps,
|
|
208
218
|
ManifestListSection,
|
|
209
219
|
ManifestSectionListProps,
|
|
210
220
|
} from './features/list/public';
|
|
221
|
+
export type {
|
|
222
|
+
ListChildrenProps,
|
|
223
|
+
ListItemProps,
|
|
224
|
+
ListItemsProps,
|
|
225
|
+
ListItemVariant,
|
|
226
|
+
ListProps,
|
|
227
|
+
ListSectionProps,
|
|
228
|
+
} from './features/list/public';
|
|
211
229
|
export { FlatList, SectionList } from './features/list/public';
|
|
230
|
+
export { List, ListItem, ListSection } from './features/list/public';
|
|
212
231
|
export { MissingElement, type MissingElementProps } from './features/missing-element/public';
|
|
213
232
|
export { Pagination, type PaginationProps } from './features/pagination/public';
|
|
233
|
+
export type { PaletteItemProps } from './features/palette-item/public';
|
|
234
|
+
export { PaletteItem } from './features/palette-item/public';
|
|
214
235
|
export {
|
|
215
236
|
PopoverMenu,
|
|
216
237
|
type PopoverMenuAction,
|
|
@@ -291,8 +312,6 @@ export type {
|
|
|
291
312
|
ValidateUploadAssetInput,
|
|
292
313
|
} from './features/uploader/public';
|
|
293
314
|
export { Uploader, validateUploadAsset } from './features/uploader/public';
|
|
294
|
-
export type { CenterProps, InlineProps, ShowProps, SpacerProps } from './foundation';
|
|
295
|
-
export { Center, Inline, Show, Spacer } from './foundation';
|
|
296
315
|
export type {
|
|
297
316
|
ZoraColor,
|
|
298
317
|
ZoraEmphasis,
|
|
@@ -305,18 +324,6 @@ export {
|
|
|
305
324
|
ZORA_PALETTE_COLORS,
|
|
306
325
|
ZORA_STATUS_COLORS,
|
|
307
326
|
} from './internal/colorModel';
|
|
308
|
-
export type { AppShellProps } from './layout/app-shell';
|
|
309
|
-
export { AppShell } from './layout/app-shell';
|
|
310
|
-
export type { ScreenProps } from './layout/screen';
|
|
311
|
-
export { Screen } from './layout/screen';
|
|
312
|
-
export type { ScreenSectionProps } from './layout/screen-section';
|
|
313
|
-
export { ScreenSection } from './layout/screen-section';
|
|
314
|
-
export type { SettingsLayoutProps } from './layout/settings-layout';
|
|
315
|
-
export { SettingsLayout } from './layout/settings-layout';
|
|
316
|
-
export type { SidebarLayoutProps } from './layout/sidebar-layout';
|
|
317
|
-
export { SidebarLayout } from './layout/sidebar-layout';
|
|
318
|
-
export type { TopbarLayoutProps } from './layout/topbar-layout';
|
|
319
|
-
export { TopbarLayout } from './layout/topbar-layout';
|
|
320
327
|
export type {
|
|
321
328
|
ZoraBindableComponentType,
|
|
322
329
|
ZoraComponentBlueprint,
|
|
@@ -363,14 +370,6 @@ export type { FilterBarProps } from './patterns/filter-bar';
|
|
|
363
370
|
export { FilterBar } from './patterns/filter-bar';
|
|
364
371
|
export type { InspectorFieldProps } from './patterns/inspector-field';
|
|
365
372
|
export { InspectorField } from './patterns/inspector-field';
|
|
366
|
-
export type {
|
|
367
|
-
ListChildrenProps,
|
|
368
|
-
ListItemsProps,
|
|
369
|
-
ListProps,
|
|
370
|
-
ListRowProps,
|
|
371
|
-
ListRowVariant,
|
|
372
|
-
} from './patterns/list';
|
|
373
|
-
export { List, ListRow, ListSection } from './patterns/list';
|
|
374
373
|
export type {
|
|
375
374
|
MessageBubbleAuthor,
|
|
376
375
|
MessageBubbleAvatar,
|
|
@@ -416,14 +415,10 @@ export type {
|
|
|
416
415
|
UseSelectionResult,
|
|
417
416
|
} from './patterns/selection';
|
|
418
417
|
export { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';
|
|
419
|
-
export type { SettingsRowProps } from './patterns/settings-row';
|
|
420
|
-
export { SettingsRow } from './patterns/settings-row';
|
|
421
418
|
export type { SwitchFieldProps } from './patterns/switch-field';
|
|
422
419
|
export { SwitchField } from './patterns/switch-field';
|
|
423
420
|
export type { ThemeComposerProps } from './patterns/theme-composer';
|
|
424
421
|
export { ThemeComposer } from './patterns/theme-composer';
|
|
425
|
-
export type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';
|
|
426
|
-
export { PaletteItem, TileGrid } from './patterns/tile-grid';
|
|
427
422
|
export type { TimelineItem, TimelineProps } from './patterns/timeline';
|
|
428
423
|
export { Timeline } from './patterns/timeline';
|
|
429
424
|
export type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';
|
|
@@ -195,7 +195,7 @@ describe('ContentRail', () => {
|
|
|
195
195
|
});
|
|
196
196
|
|
|
197
197
|
test('suppresses scrolling and forwards interactionPolicy to owned controls', () => {
|
|
198
|
-
const source = readSource('features/
|
|
198
|
+
const source = readSource('features/content-rail/adapters/inbound/ContentRail.tsx');
|
|
199
199
|
|
|
200
200
|
expect(source).not.toMatch(/interactionPolicy:\s*_interactionPolicy/);
|
|
201
201
|
expect(source).toContain('scrollEnabled={!passive}');
|
|
@@ -33,11 +33,10 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
33
33
|
'SectionList',
|
|
34
34
|
'BottomSheet',
|
|
35
35
|
'ProductCard',
|
|
36
|
-
'
|
|
37
|
-
'
|
|
36
|
+
'View',
|
|
37
|
+
'ScrollView',
|
|
38
38
|
'Grid',
|
|
39
39
|
'Gradient',
|
|
40
|
-
'Container',
|
|
41
40
|
'Divider',
|
|
42
41
|
'Text',
|
|
43
42
|
'Heading',
|
|
@@ -57,7 +56,6 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
57
56
|
'Notice',
|
|
58
57
|
'EmptyState',
|
|
59
58
|
'SectionHeader',
|
|
60
|
-
'SettingsRow',
|
|
61
59
|
'PostCard',
|
|
62
60
|
'ChatListItem',
|
|
63
61
|
'MessageBubble',
|
|
@@ -77,8 +75,8 @@ export const CONTENT_RAIL_ALLOWED_CHILDREN = [
|
|
|
77
75
|
'Badge',
|
|
78
76
|
'Button',
|
|
79
77
|
'IconButton',
|
|
80
|
-
'
|
|
81
|
-
'
|
|
78
|
+
'View',
|
|
79
|
+
'ScrollView',
|
|
82
80
|
'Card',
|
|
83
81
|
'Panel',
|
|
84
82
|
'Image',
|
|
@@ -356,7 +356,7 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
356
356
|
category: 'pattern',
|
|
357
357
|
description: 'Renders a collection of list items.',
|
|
358
358
|
directManifestNode: true,
|
|
359
|
-
allowedChildren: ['ListSection', '
|
|
359
|
+
allowedChildren: ['ListSection', 'ListItem'],
|
|
360
360
|
bindings: {
|
|
361
361
|
props: {
|
|
362
362
|
items: {
|
|
@@ -63,7 +63,7 @@ describe('ZORA_COMPONENT_META event metadata', () => {
|
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
test('declares collection item metadata for list rows', () => {
|
|
66
|
-
const event = ZORA_COMPONENT_META.
|
|
66
|
+
const event = ZORA_COMPONENT_META.ListItem.events?.itemPress;
|
|
67
67
|
const eventType: ZoraComponentEventPayloadKind = event?.eventType ?? 'collection.itemPress';
|
|
68
68
|
|
|
69
69
|
expect(eventType).toBe('collection.itemPress');
|
|
@@ -101,8 +101,8 @@ describe('ZORA_COMPONENT_META requirement metadata', () => {
|
|
|
101
101
|
|
|
102
102
|
describe('ZORA_COMPONENT_META invariants', () => {
|
|
103
103
|
test('keeps form nodes in their canonical hierarchy', () => {
|
|
104
|
-
expect(ZORA_COMPONENT_META.Form.allowedChildren).toEqual(['FormError', '
|
|
105
|
-
expect(ZORA_COMPONENT_META.
|
|
104
|
+
expect(ZORA_COMPONENT_META.Form.allowedChildren).toEqual(['FormError', 'Field']);
|
|
105
|
+
expect(ZORA_COMPONENT_META.Field.allowedChildren).toEqual([
|
|
106
106
|
'Checkbox',
|
|
107
107
|
'CheckboxGroup',
|
|
108
108
|
'RadioGroup',
|
|
@@ -113,7 +113,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
113
113
|
for (const [name, meta] of Object.entries(ZORA_COMPONENT_META)) {
|
|
114
114
|
if (name === 'Form') continue;
|
|
115
115
|
expect(meta.allowedChildren).not.toContain('FormError');
|
|
116
|
-
expect(meta.allowedChildren).not.toContain('
|
|
116
|
+
expect(meta.allowedChildren).not.toContain('Field');
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
|
|
@@ -165,7 +165,6 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
165
165
|
'MetricCard',
|
|
166
166
|
'Uploader',
|
|
167
167
|
'SectionHeader',
|
|
168
|
-
'SettingsRow',
|
|
169
168
|
'EmptyState',
|
|
170
169
|
'Hero',
|
|
171
170
|
'Button',
|
|
@@ -205,7 +204,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
205
204
|
'SectionList',
|
|
206
205
|
'BottomSheet',
|
|
207
206
|
'KeyboardAvoidingView',
|
|
208
|
-
'
|
|
207
|
+
'Field',
|
|
209
208
|
'ButtonGroup',
|
|
210
209
|
'Screen',
|
|
211
210
|
'ScreenSection',
|
|
@@ -214,10 +213,9 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
214
213
|
'Notice',
|
|
215
214
|
'PostCard',
|
|
216
215
|
'MessageBubble',
|
|
217
|
-
'
|
|
218
|
-
'
|
|
216
|
+
'View',
|
|
217
|
+
'ScrollView',
|
|
219
218
|
'Grid',
|
|
220
|
-
'Container',
|
|
221
219
|
'BarcodeScannerView',
|
|
222
220
|
'ContentRail',
|
|
223
221
|
'Tabs',
|
|
@@ -386,8 +384,8 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
386
384
|
'Badge',
|
|
387
385
|
'Button',
|
|
388
386
|
'IconButton',
|
|
389
|
-
'
|
|
390
|
-
'
|
|
387
|
+
'View',
|
|
388
|
+
'ScrollView',
|
|
391
389
|
'Card',
|
|
392
390
|
'Panel',
|
|
393
391
|
'Image',
|
|
@@ -23,14 +23,15 @@ import { postCardMeta } from '../features/card/postCardMeta';
|
|
|
23
23
|
import { productCardMeta } from '../features/card/productCardMeta';
|
|
24
24
|
import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
25
25
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
26
|
+
import { contentRailMeta } from '../features/content-rail/contentRailMeta';
|
|
26
27
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
27
28
|
import { datePickerMeta } from '../features/date-picker/datePickerMeta';
|
|
28
29
|
import { dialogMeta } from '../features/dialog/dialogMeta';
|
|
29
30
|
import { emptyStateMeta } from '../features/empty-state/emptyStateMeta';
|
|
30
31
|
import { checkboxGroupMeta, checkboxMeta } from '../features/form/checkbox/checkboxMeta';
|
|
32
|
+
import { fieldMeta } from '../features/form/field/meta';
|
|
31
33
|
import { formActionsMeta } from '../features/form/formActionsMeta';
|
|
32
34
|
import { formErrorMeta } from '../features/form/formErrorMeta';
|
|
33
|
-
import { formFieldMeta } from '../features/form/formFieldMeta';
|
|
34
35
|
import { formMeta } from '../features/form/formMeta';
|
|
35
36
|
import { radioGroupMeta, radioMeta } from '../features/form/radio/radioMeta';
|
|
36
37
|
import { searchInputMeta } from '../features/form/search-input/searchInputMeta';
|
|
@@ -41,16 +42,19 @@ import { heroMeta } from '../features/hero/heroMeta';
|
|
|
41
42
|
import { iconMeta } from '../features/icon/iconMeta';
|
|
42
43
|
import { imageMeta } from '../features/image/imageMeta';
|
|
43
44
|
import { keyboardAvoidingViewMeta } from '../features/keyboard-avoiding-view/keyboardAvoidingViewMeta';
|
|
44
|
-
import {
|
|
45
|
-
import { containerMeta } from '../features/layout/containerMeta';
|
|
46
|
-
import { contentRailMeta } from '../features/layout/contentRailMeta';
|
|
45
|
+
import { appShellMeta } from '../features/layout/appShellMeta';
|
|
47
46
|
import { dividerMeta } from '../features/layout/dividerMeta';
|
|
48
47
|
import { gridMeta } from '../features/layout/gridMeta';
|
|
49
|
-
import {
|
|
48
|
+
import { screenMeta } from '../features/layout/screenMeta';
|
|
49
|
+
import { screenSectionMeta } from '../features/layout/screenSectionMeta';
|
|
50
|
+
import { scrollViewMeta } from '../features/layout/scrollViewMeta';
|
|
51
|
+
import { viewMeta } from '../features/layout/viewMeta';
|
|
50
52
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
53
|
+
import { listItemMeta, listMeta, listSectionMeta } from '../features/list/meta';
|
|
51
54
|
import { sectionListMeta } from '../features/list/sectionListMeta';
|
|
52
55
|
import { missingElementMeta } from '../features/missing-element/missingElementMeta';
|
|
53
56
|
import { paginationMeta } from '../features/pagination/paginationMeta';
|
|
57
|
+
import { paletteItemMeta } from '../features/palette-item/paletteItemMeta';
|
|
54
58
|
import { popoverMenuMeta } from '../features/popover-menu/popoverMenuMeta';
|
|
55
59
|
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
56
60
|
import { ratingMeta } from '../features/rating/ratingMeta';
|
|
@@ -72,19 +76,11 @@ import { toolbarMeta } from '../features/toolbar/toolbarMeta';
|
|
|
72
76
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
73
77
|
import { textMeta } from '../features/typography/textMeta';
|
|
74
78
|
import { uploaderMeta } from '../features/uploader/uploaderMeta';
|
|
75
|
-
import { foundationMetas } from '../foundation/meta';
|
|
76
|
-
import { appShellMeta } from '../layout/app-shell/meta';
|
|
77
|
-
import { screenMeta } from '../layout/screen/meta';
|
|
78
|
-
import { screenSectionMeta } from '../layout/screen-section/meta';
|
|
79
|
-
import { settingsLayoutMeta } from '../layout/settings-layout/meta';
|
|
80
|
-
import { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';
|
|
81
|
-
import { topbarLayoutMeta } from '../layout/topbar-layout/meta';
|
|
82
79
|
import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
83
80
|
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
84
81
|
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
85
82
|
import { filterBarMeta } from '../patterns/filter-bar/meta';
|
|
86
83
|
import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
|
|
87
|
-
import { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';
|
|
88
84
|
import { messageBubbleMeta } from '../patterns/message-bubble/meta';
|
|
89
85
|
import { noticeMeta } from '../patterns/notice/meta';
|
|
90
86
|
import { panelMeta } from '../patterns/panel/meta';
|
|
@@ -96,10 +92,8 @@ import {
|
|
|
96
92
|
} from '../patterns/scanner/meta';
|
|
97
93
|
import { sectionHeaderMeta } from '../patterns/section-header/meta';
|
|
98
94
|
import { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';
|
|
99
|
-
import { settingsRowMeta } from '../patterns/settings-row/meta';
|
|
100
95
|
import { switchFieldMeta } from '../patterns/switch-field/meta';
|
|
101
96
|
import { themeComposerMeta } from '../patterns/theme-composer/meta';
|
|
102
|
-
import { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';
|
|
103
97
|
import { timelineMeta } from '../patterns/timeline/meta';
|
|
104
98
|
import { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';
|
|
105
99
|
import { themeModeToggleMeta } from '../theme/ThemeModeToggle.meta';
|
|
@@ -107,13 +101,11 @@ import { finalizeFeatureMetadata } from '../utils/finalizeFeatureMetadata';
|
|
|
107
101
|
import type { ZoraComponentMetaRegistry } from './types';
|
|
108
102
|
|
|
109
103
|
export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMetadata({
|
|
110
|
-
...foundationMetas,
|
|
111
104
|
Accordion: accordionMeta,
|
|
112
105
|
AccordionItem: accordionItemMeta,
|
|
113
106
|
ActivityIndicator: activityIndicatorMeta,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Stack: stackMeta,
|
|
107
|
+
View: viewMeta,
|
|
108
|
+
ScrollView: scrollViewMeta,
|
|
117
109
|
Grid: gridMeta,
|
|
118
110
|
Divider: dividerMeta,
|
|
119
111
|
Surface: surfaceMeta,
|
|
@@ -135,7 +127,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
135
127
|
Form: formMeta,
|
|
136
128
|
FormActions: formActionsMeta,
|
|
137
129
|
FormError: formErrorMeta,
|
|
138
|
-
|
|
130
|
+
Field: fieldMeta,
|
|
139
131
|
Gradient: gradientMeta,
|
|
140
132
|
Heading: headingMeta,
|
|
141
133
|
Icon: iconMeta,
|
|
@@ -175,9 +167,6 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
175
167
|
AppShell: appShellMeta,
|
|
176
168
|
Screen: screenMeta,
|
|
177
169
|
ScreenSection: screenSectionMeta,
|
|
178
|
-
SettingsLayout: settingsLayoutMeta,
|
|
179
|
-
SidebarLayout: sidebarLayoutMeta,
|
|
180
|
-
TopbarLayout: topbarLayoutMeta,
|
|
181
170
|
ForgotPasswordForm: forgotPasswordFormMeta,
|
|
182
171
|
OAuthProviderButton: oauthProviderButtonMeta,
|
|
183
172
|
OAuthProviderList: oauthProviderListMeta,
|
|
@@ -193,7 +182,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
193
182
|
Hero: heroMeta,
|
|
194
183
|
InspectorField: inspectorFieldMeta,
|
|
195
184
|
List: listMeta,
|
|
196
|
-
|
|
185
|
+
ListItem: listItemMeta,
|
|
197
186
|
ListSection: listSectionMeta,
|
|
198
187
|
MessageBubble: messageBubbleMeta,
|
|
199
188
|
MissingElement: missingElementMeta,
|
|
@@ -208,11 +197,9 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
208
197
|
SectionHeader: sectionHeaderMeta,
|
|
209
198
|
SelectableItem: selectableItemMeta,
|
|
210
199
|
SelectionProvider: selectionProviderMeta,
|
|
211
|
-
SettingsRow: settingsRowMeta,
|
|
212
200
|
SwitchField: switchFieldMeta,
|
|
213
201
|
ThemeComposer: themeComposerMeta,
|
|
214
202
|
PaletteItem: paletteItemMeta,
|
|
215
|
-
TileGrid: tileGridMeta,
|
|
216
203
|
Timeline: timelineMeta,
|
|
217
204
|
TreeItem: treeItemMeta,
|
|
218
205
|
TreeView: treeViewMeta,
|
|
@@ -5,8 +5,8 @@ import { ZORA_COMPONENT_META } from '.';
|
|
|
5
5
|
const containers = [
|
|
6
6
|
['Screen', ZORA_COMPONENT_META.Screen],
|
|
7
7
|
['ScreenSection', ZORA_COMPONENT_META.ScreenSection],
|
|
8
|
-
['
|
|
9
|
-
['
|
|
8
|
+
['View', ZORA_COMPONENT_META.View],
|
|
9
|
+
['ScrollView', ZORA_COMPONENT_META.ScrollView],
|
|
10
10
|
['Card', ZORA_COMPONENT_META.Card],
|
|
11
11
|
['Panel', ZORA_COMPONENT_META.Panel],
|
|
12
12
|
] as const;
|
|
@@ -3,9 +3,8 @@ import React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { Avatar } from '../../features/avatar/public';
|
|
5
5
|
import { Badge } from '../../features/badge/public';
|
|
6
|
-
import {
|
|
6
|
+
import { View } from '../../features/layout/public';
|
|
7
7
|
import { Text } from '../../features/typography/public';
|
|
8
|
-
import { Inline } from '../../foundation';
|
|
9
8
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
10
9
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
11
10
|
import type { ChatListAvatar, ChatListItemProps } from './types';
|
|
@@ -110,7 +109,7 @@ function ChatListItemInner({
|
|
|
110
109
|
});
|
|
111
110
|
|
|
112
111
|
return (
|
|
113
|
-
<
|
|
112
|
+
<View
|
|
114
113
|
bg={styles.bg}
|
|
115
114
|
borderColor={styles.borderColor}
|
|
116
115
|
borderWidth={styles.borderWidth}
|
|
@@ -119,7 +118,7 @@ function ChatListItemInner({
|
|
|
119
118
|
radius="m"
|
|
120
119
|
style={{ opacity: styles.opacity }}
|
|
121
120
|
>
|
|
122
|
-
<
|
|
121
|
+
<View direction="row" align="center" gap="m" wrap="nowrap">
|
|
123
122
|
{leading ?? (
|
|
124
123
|
<Avatar
|
|
125
124
|
initials={avatar?.initials}
|
|
@@ -132,10 +131,10 @@ function ChatListItemInner({
|
|
|
132
131
|
/>
|
|
133
132
|
)}
|
|
134
133
|
|
|
135
|
-
<
|
|
136
|
-
<
|
|
137
|
-
<
|
|
138
|
-
<
|
|
134
|
+
<View flex={1}>
|
|
135
|
+
<View gap="xxs">
|
|
136
|
+
<View direction="row" align="center" gap="s" justify="space-between" wrap="nowrap">
|
|
137
|
+
<View flex={1}>
|
|
139
138
|
<Text
|
|
140
139
|
numberOfLines={1}
|
|
141
140
|
emphasis={disabled ? 'muted' : 'default'}
|
|
@@ -144,7 +143,7 @@ function ChatListItemInner({
|
|
|
144
143
|
>
|
|
145
144
|
{title}
|
|
146
145
|
</Text>
|
|
147
|
-
</
|
|
146
|
+
</View>
|
|
148
147
|
{hasTimestamp ? (
|
|
149
148
|
<Text
|
|
150
149
|
numberOfLines={1}
|
|
@@ -156,12 +155,12 @@ function ChatListItemInner({
|
|
|
156
155
|
{timestamp}
|
|
157
156
|
</Text>
|
|
158
157
|
) : null}
|
|
159
|
-
</
|
|
158
|
+
</View>
|
|
160
159
|
|
|
161
160
|
{hasSecondaryRow ? (
|
|
162
|
-
<
|
|
163
|
-
<
|
|
164
|
-
<
|
|
161
|
+
<View direction="row" align="center" gap="s" justify="space-between" wrap="nowrap">
|
|
162
|
+
<View flex={1}>
|
|
163
|
+
<View gap="xxs">
|
|
165
164
|
{hasPreview ? (
|
|
166
165
|
<Text
|
|
167
166
|
numberOfLines={1}
|
|
@@ -177,26 +176,26 @@ function ChatListItemInner({
|
|
|
177
176
|
{meta}
|
|
178
177
|
</Text>
|
|
179
178
|
) : null}
|
|
180
|
-
</
|
|
181
|
-
</
|
|
179
|
+
</View>
|
|
180
|
+
</View>
|
|
182
181
|
|
|
183
182
|
{hasUnreadCount || hasTrailing ? (
|
|
184
|
-
<
|
|
183
|
+
<View direction="row" align="center" gap="s" wrap="nowrap">
|
|
185
184
|
{renderUnreadCount(unreadCount)}
|
|
186
185
|
{trailing}
|
|
187
|
-
</
|
|
186
|
+
</View>
|
|
188
187
|
) : null}
|
|
189
|
-
</
|
|
188
|
+
</View>
|
|
190
189
|
) : null}
|
|
191
|
-
</
|
|
192
|
-
</
|
|
193
|
-
</
|
|
194
|
-
</
|
|
190
|
+
</View>
|
|
191
|
+
</View>
|
|
192
|
+
</View>
|
|
193
|
+
</View>
|
|
195
194
|
);
|
|
196
195
|
};
|
|
197
196
|
|
|
198
197
|
if (!isInteractive) {
|
|
199
|
-
return <
|
|
198
|
+
return <View testID={testID}>{content({ pressed: false, hovered: false })}</View>;
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
return (
|