@ankhorage/zora 7.0.0 → 8.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 +6 -0
- package/README.md +1 -1
- package/dist/components/app-bar/AppBar.d.ts.map +1 -1
- package/dist/components/app-bar/AppBar.js +5 -4
- package/dist/components/app-bar/AppBar.js.map +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/checkbox/CheckboxGroup.js +2 -2
- package/dist/components/checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/date-picker/DatePicker.js +3 -3
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/FormActions.js +2 -2
- package/dist/components/form/FormActions.js.map +1 -1
- package/dist/components/form/FormError.js +2 -2
- package/dist/components/form/FormError.js.map +1 -1
- package/dist/components/form/FormField.js +2 -2
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/components/gradient/Gradient.js +1 -1
- package/dist/components/gradient/Gradient.js.map +1 -1
- package/dist/components/gradient/types.d.ts +1 -1
- package/dist/components/gradient/types.d.ts.map +1 -1
- package/dist/components/gradient/types.js.map +1 -1
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/menu/Menu.js +2 -2
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/modal/Modal.js +3 -3
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/pagination/Pagination.js +3 -3
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/progress/Progress.js +1 -1
- package/dist/components/progress/Progress.js.map +1 -1
- package/dist/components/progress/ProgressRing.js +2 -2
- package/dist/components/progress/ProgressRing.js.map +1 -1
- package/dist/components/radio/RadioGroup.js +2 -2
- package/dist/components/radio/RadioGroup.js.map +1 -1
- package/dist/components/radio/RadioOptionControl.js +2 -2
- package/dist/components/radio/RadioOptionControl.js.map +1 -1
- package/dist/components/radio/resolveRadioGroupThemeRecipe.d.ts +1 -1
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/radio/types.d.ts.map +1 -1
- package/dist/components/radio/types.js.map +1 -1
- package/dist/components/rating/Rating.js +1 -1
- package/dist/components/rating/Rating.js.map +1 -1
- package/dist/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.js.map +1 -1
- package/dist/components/skeleton/SkeletonCard.js +3 -3
- package/dist/components/skeleton/SkeletonCard.js.map +1 -1
- package/dist/components/skeleton/SkeletonText.js +1 -1
- package/dist/components/skeleton/SkeletonText.js.map +1 -1
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/skeleton/types.d.ts.map +1 -1
- package/dist/components/skeleton/types.js.map +1 -1
- package/dist/components/tabs/Tabs.js +3 -3
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/time-picker/TimePicker.js +3 -3
- package/dist/components/time-picker/TimePicker.js.map +1 -1
- package/dist/components/toolbar/Toolbar.js +2 -2
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/components/toolbar/ToolbarAction.js +1 -1
- package/dist/components/toolbar/ToolbarAction.js.map +1 -1
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +23 -0
- package/dist/constants.js.map +1 -0
- package/dist/corePluginMetadata.js +10 -1
- package/dist/corePluginMetadata.js.map +1 -1
- package/dist/features/avatar/adapters/inbound/Avatar.d.ts +7 -0
- package/dist/features/avatar/adapters/inbound/Avatar.d.ts.map +1 -0
- package/dist/features/avatar/adapters/inbound/Avatar.js +101 -0
- package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts +7 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts.map +1 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +29 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -0
- package/dist/features/avatar/avatarGroupMeta.d.ts +68 -0
- package/dist/features/avatar/avatarGroupMeta.d.ts.map +1 -0
- package/dist/features/avatar/avatarGroupMeta.js +24 -0
- package/dist/features/avatar/avatarGroupMeta.js.map +1 -0
- package/dist/features/avatar/avatarMeta.d.ts +41 -0
- package/dist/features/avatar/avatarMeta.d.ts.map +1 -0
- package/dist/features/avatar/avatarMeta.js +41 -0
- package/dist/features/avatar/avatarMeta.js.map +1 -0
- package/dist/features/avatar/public.d.ts +6 -0
- package/dist/features/avatar/public.d.ts.map +1 -0
- package/dist/features/avatar/public.js +4 -0
- package/dist/features/avatar/public.js.map +1 -0
- package/dist/features/avatar/utils/resolveAvatarInitials.d.ts.map +1 -0
- package/dist/features/avatar/utils/resolveAvatarInitials.js.map +1 -0
- package/dist/features/badge/adapters/inbound/Badge.d.ts +7 -0
- package/dist/features/badge/adapters/inbound/Badge.d.ts.map +1 -0
- package/dist/features/badge/adapters/inbound/Badge.js +13 -0
- package/dist/features/badge/adapters/inbound/Badge.js.map +1 -0
- package/dist/features/badge/badgeMeta.d.ts +28 -0
- package/dist/features/badge/badgeMeta.d.ts.map +1 -0
- package/dist/features/badge/badgeMeta.js +28 -0
- package/dist/features/badge/badgeMeta.js.map +1 -0
- package/dist/features/badge/public.d.ts +3 -0
- package/dist/features/badge/public.d.ts.map +1 -0
- package/dist/features/badge/public.js +2 -0
- package/dist/features/badge/public.js.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts +5 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +63 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +60 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts.map +1 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.js +31 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -0
- package/dist/features/bottom-sheet/public.d.ts +2 -0
- package/dist/features/bottom-sheet/public.d.ts.map +1 -1
- package/dist/features/bottom-sheet/public.js +1 -0
- package/dist/features/bottom-sheet/public.js.map +1 -1
- package/dist/features/button/adapters/inbound/Button.d.ts +15 -0
- package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/Button.js +23 -0
- package/dist/features/button/adapters/inbound/Button.js.map +1 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts +7 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.js +76 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -0
- package/dist/features/button/adapters/inbound/IconButton.d.ts +7 -0
- package/dist/features/button/adapters/inbound/IconButton.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/IconButton.js +13 -0
- package/dist/features/button/adapters/inbound/IconButton.js.map +1 -0
- package/dist/features/button/buttonGroupMeta.d.ts +44 -0
- package/dist/features/button/buttonGroupMeta.d.ts.map +1 -0
- package/dist/features/button/buttonGroupMeta.js +44 -0
- package/dist/features/button/buttonGroupMeta.js.map +1 -0
- package/dist/features/button/buttonMeta.d.ts +73 -0
- package/dist/features/button/buttonMeta.d.ts.map +1 -0
- package/dist/features/button/buttonMeta.js +50 -0
- package/dist/features/button/buttonMeta.js.map +1 -0
- package/dist/features/button/iconButtonMeta.d.ts +47 -0
- package/dist/features/button/iconButtonMeta.d.ts.map +1 -0
- package/dist/features/button/iconButtonMeta.js +47 -0
- package/dist/features/button/iconButtonMeta.js.map +1 -0
- package/dist/features/button/public.d.ts +7 -0
- package/dist/features/button/public.d.ts.map +1 -0
- package/dist/features/button/public.js +4 -0
- package/dist/features/button/public.js.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +9 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.js +30 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.js.map +1 -0
- package/dist/features/button/utils/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/button/utils/themeRecipeMeta.js +28 -0
- package/dist/features/button/utils/themeRecipeMeta.js.map +1 -0
- package/dist/features/card/adapters/inbound/Card.d.ts +15 -0
- package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/Card.js +53 -0
- package/dist/features/card/adapters/inbound/Card.js.map +1 -0
- package/dist/features/card/adapters/inbound/MediaCard.d.ts +7 -0
- package/dist/features/card/adapters/inbound/MediaCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/MediaCard.js +67 -0
- package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/MetricCard.d.ts +7 -0
- package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/MetricCard.js +47 -0
- package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/PostCard.d.ts +9 -0
- package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/PostCard.js +139 -0
- package/dist/features/card/adapters/inbound/PostCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/ProductCard.d.ts +5 -0
- package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/ProductCard.js +71 -0
- package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -0
- package/dist/features/card/cardMeta.d.ts +87 -0
- package/dist/features/card/cardMeta.d.ts.map +1 -0
- package/dist/features/card/cardMeta.js +56 -0
- package/dist/features/card/cardMeta.js.map +1 -0
- package/dist/features/card/mediaCardMeta.d.ts +50 -0
- package/dist/features/card/mediaCardMeta.d.ts.map +1 -0
- package/dist/features/card/mediaCardMeta.js +51 -0
- package/dist/features/card/mediaCardMeta.js.map +1 -0
- package/dist/features/card/metricCardMeta.d.ts +46 -0
- package/dist/features/card/metricCardMeta.d.ts.map +1 -0
- package/dist/features/card/metricCardMeta.js +46 -0
- package/dist/features/card/metricCardMeta.js.map +1 -0
- package/dist/features/card/postCardMeta.d.ts +64 -0
- package/dist/features/card/postCardMeta.d.ts.map +1 -0
- package/dist/features/card/postCardMeta.js +66 -0
- package/dist/features/card/postCardMeta.js.map +1 -0
- package/dist/features/card/productCardMeta.d.ts +110 -0
- package/dist/features/card/productCardMeta.d.ts.map +1 -0
- package/dist/features/card/productCardMeta.js +110 -0
- package/dist/features/card/productCardMeta.js.map +1 -0
- package/dist/features/card/public.d.ts +11 -0
- package/dist/features/card/public.d.ts.map +1 -0
- package/dist/features/card/public.js +6 -0
- package/dist/features/card/public.js.map +1 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts +15 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts.map +1 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.js.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.js.map +1 -0
- package/dist/features/chip/adapters/inbound/Chip.d.ts +7 -0
- package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -0
- package/dist/features/chip/adapters/inbound/Chip.js +57 -0
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts +7 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.js +38 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -0
- package/dist/features/chip/chipGroupMeta.d.ts +75 -0
- package/dist/features/chip/chipGroupMeta.d.ts.map +1 -0
- package/dist/features/chip/chipGroupMeta.js +31 -0
- package/dist/features/chip/chipGroupMeta.js.map +1 -0
- package/dist/features/chip/chipMeta.d.ts +38 -0
- package/dist/features/chip/chipMeta.d.ts.map +1 -0
- package/dist/features/chip/chipMeta.js +38 -0
- package/dist/features/chip/chipMeta.js.map +1 -0
- package/dist/features/chip/public.d.ts +5 -0
- package/dist/features/chip/public.d.ts.map +1 -0
- package/dist/features/chip/public.js +3 -0
- package/dist/features/chip/public.js.map +1 -0
- package/dist/features/chip/utils/resolveChipColors.d.ts +10 -0
- package/dist/features/chip/utils/resolveChipColors.d.ts.map +1 -0
- package/dist/features/chip/utils/resolveChipColors.js +57 -0
- package/dist/features/chip/utils/resolveChipColors.js.map +1 -0
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts +7 -0
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -0
- package/dist/features/data-table/adapters/inbound/DataTable.js +218 -0
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -0
- package/dist/features/data-table/dataTableMeta.d.ts +125 -0
- package/dist/features/data-table/dataTableMeta.d.ts.map +1 -0
- package/dist/features/data-table/dataTableMeta.js +57 -0
- package/dist/features/data-table/dataTableMeta.js.map +1 -0
- package/dist/features/data-table/public.d.ts +3 -0
- package/dist/features/data-table/public.d.ts.map +1 -0
- package/dist/features/data-table/public.js +2 -0
- package/dist/features/data-table/public.js.map +1 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.d.ts +3 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.d.ts.map +1 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.js +10 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.js.map +1 -0
- package/dist/features/icon/adapters/inbound/Icon.d.ts +5 -0
- package/dist/features/icon/adapters/inbound/Icon.d.ts.map +1 -0
- package/dist/features/icon/adapters/inbound/Icon.js +10 -0
- package/dist/features/icon/adapters/inbound/Icon.js.map +1 -0
- package/dist/features/icon/iconMeta.d.ts +38 -0
- package/dist/features/icon/iconMeta.d.ts.map +1 -0
- package/dist/features/icon/iconMeta.js +30 -0
- package/dist/features/icon/iconMeta.js.map +1 -0
- package/dist/features/icon/public.d.ts +3 -0
- package/dist/features/icon/public.d.ts.map +1 -0
- package/dist/features/icon/public.js +2 -0
- package/dist/features/icon/public.js.map +1 -0
- package/dist/features/image/adapters/inbound/Image.d.ts +5 -0
- package/dist/features/image/adapters/inbound/Image.d.ts.map +1 -0
- package/dist/features/image/adapters/inbound/Image.js +84 -0
- package/dist/features/image/adapters/inbound/Image.js.map +1 -0
- package/dist/features/image/imageMeta.d.ts +56 -0
- package/dist/features/image/imageMeta.d.ts.map +1 -0
- package/dist/features/image/imageMeta.js +34 -0
- package/dist/features/image/imageMeta.js.map +1 -0
- package/dist/features/image/public.d.ts +3 -0
- package/dist/features/image/public.d.ts.map +1 -0
- package/dist/features/image/public.js +2 -0
- package/dist/features/image/public.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Box.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Box.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Box.js +10 -0
- package/dist/features/layout/adapters/inbound/Box.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Container.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Container.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Container.js +10 -0
- package/dist/features/layout/adapters/inbound/Container.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRail.d.ts +10 -0
- package/dist/features/layout/adapters/inbound/ContentRail.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRail.js +182 -0
- package/dist/features/layout/adapters/inbound/ContentRail.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.js +18 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Divider.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Divider.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Divider.js +10 -0
- package/dist/features/layout/adapters/inbound/Divider.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Grid.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Grid.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Grid.js +10 -0
- package/dist/features/layout/adapters/inbound/Grid.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Stack.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Stack.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Stack.js +10 -0
- package/dist/features/layout/adapters/inbound/Stack.js.map +1 -0
- package/dist/features/layout/boxMeta.d.ts +81 -0
- package/dist/features/layout/boxMeta.d.ts.map +1 -0
- package/dist/features/layout/boxMeta.js +15 -0
- package/dist/features/layout/boxMeta.js.map +1 -0
- package/dist/features/layout/constants.d.ts +64 -0
- package/dist/features/layout/constants.d.ts.map +1 -0
- package/dist/features/layout/constants.js +19 -0
- package/dist/features/layout/constants.js.map +1 -0
- package/dist/features/layout/containerMeta.d.ts +55 -0
- package/dist/features/layout/containerMeta.d.ts.map +1 -0
- package/dist/features/layout/containerMeta.js +10 -0
- package/dist/features/layout/containerMeta.js.map +1 -0
- package/dist/features/layout/contentRailMeta.d.ts +153 -0
- package/dist/features/layout/contentRailMeta.d.ts.map +1 -0
- package/dist/features/layout/contentRailMeta.js +132 -0
- package/dist/features/layout/contentRailMeta.js.map +1 -0
- package/dist/features/layout/dividerMeta.d.ts +22 -0
- package/dist/features/layout/dividerMeta.d.ts.map +1 -0
- package/dist/features/layout/dividerMeta.js +14 -0
- package/dist/features/layout/dividerMeta.js.map +1 -0
- package/dist/features/layout/gridMeta.d.ts +90 -0
- package/dist/features/layout/gridMeta.d.ts.map +1 -0
- package/dist/features/layout/gridMeta.js +17 -0
- package/dist/features/layout/gridMeta.js.map +1 -0
- package/dist/features/layout/public.d.ts +9 -0
- package/dist/features/layout/public.d.ts.map +1 -0
- package/dist/features/layout/public.js +7 -0
- package/dist/features/layout/public.js.map +1 -0
- package/dist/features/layout/stackMeta.d.ts +93 -0
- package/dist/features/layout/stackMeta.d.ts.map +1 -0
- package/dist/features/layout/stackMeta.js +25 -0
- package/dist/features/layout/stackMeta.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts +10 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.js +27 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailState.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailState.js.map +1 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.d.ts +3 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.d.ts.map +1 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.js.map +1 -0
- package/dist/features/list/adapters/inbound/FlatList.d.ts +5 -0
- package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/FlatList.js +17 -0
- package/dist/features/list/adapters/inbound/FlatList.js.map +1 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.d.ts +4 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.js +7 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.js.map +1 -0
- package/dist/features/list/adapters/inbound/SectionList.d.ts +5 -0
- package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/SectionList.js +18 -0
- package/dist/features/list/adapters/inbound/SectionList.js.map +1 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.d.ts +4 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.js +7 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.js.map +1 -0
- package/dist/features/list/adapters/inbound/useListVisibility.d.ts +7 -0
- package/dist/features/list/adapters/inbound/useListVisibility.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/useListVisibility.js +19 -0
- package/dist/features/list/adapters/inbound/useListVisibility.js.map +1 -0
- package/dist/features/list/application/use-cases/partitionListSections.d.ts +9 -0
- package/dist/features/list/application/use-cases/partitionListSections.d.ts.map +1 -0
- package/dist/features/list/application/use-cases/partitionListSections.js +19 -0
- package/dist/features/list/application/use-cases/partitionListSections.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +84 -0
- package/dist/features/list/flatListMeta.d.ts.map +1 -0
- package/dist/features/list/flatListMeta.js +37 -0
- package/dist/features/list/flatListMeta.js.map +1 -0
- package/dist/features/list/public.d.ts +4 -0
- package/dist/features/list/public.d.ts.map +1 -0
- package/dist/features/list/public.js +3 -0
- package/dist/features/list/public.js.map +1 -0
- package/dist/features/list/sectionListMeta.d.ts +114 -0
- package/dist/features/list/sectionListMeta.d.ts.map +1 -0
- package/dist/features/list/sectionListMeta.js +29 -0
- package/dist/features/list/sectionListMeta.js.map +1 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.d.ts +11 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.d.ts.map +1 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.js +55 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.js.map +1 -0
- package/dist/features/splash-screen/public.d.ts +3 -0
- package/dist/features/splash-screen/public.d.ts.map +1 -0
- package/dist/features/splash-screen/public.js +2 -0
- package/dist/features/splash-screen/public.js.map +1 -0
- package/dist/features/splash-screen/splashScreenMeta.d.ts +39 -0
- package/dist/features/splash-screen/splashScreenMeta.d.ts.map +1 -0
- package/dist/features/splash-screen/splashScreenMeta.js +40 -0
- package/dist/features/splash-screen/splashScreenMeta.js.map +1 -0
- package/dist/features/surface/adapters/inbound/Surface.d.ts +5 -0
- package/dist/features/surface/adapters/inbound/Surface.d.ts.map +1 -0
- package/dist/features/surface/adapters/inbound/Surface.js +10 -0
- package/dist/features/surface/adapters/inbound/Surface.js.map +1 -0
- package/dist/features/surface/public.d.ts +3 -0
- package/dist/features/surface/public.d.ts.map +1 -0
- package/dist/features/surface/public.js +2 -0
- package/dist/features/surface/public.js.map +1 -0
- package/dist/features/surface/surfaceMeta.d.ts +74 -0
- package/dist/features/surface/surfaceMeta.d.ts.map +1 -0
- package/dist/features/surface/surfaceMeta.js +13 -0
- package/dist/features/surface/surfaceMeta.js.map +1 -0
- package/dist/features/typography/adapters/inbound/Heading.d.ts +15 -0
- package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -0
- package/dist/features/typography/adapters/inbound/Heading.js +71 -0
- package/dist/features/typography/adapters/inbound/Heading.js.map +1 -0
- package/dist/features/typography/adapters/inbound/Text.d.ts +15 -0
- package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -0
- package/dist/features/typography/adapters/inbound/Text.js +64 -0
- package/dist/features/typography/adapters/inbound/Text.js.map +1 -0
- package/dist/features/typography/headingMeta.d.ts +122 -0
- package/dist/features/typography/headingMeta.d.ts.map +1 -0
- package/dist/features/typography/headingMeta.js +81 -0
- package/dist/features/typography/headingMeta.js.map +1 -0
- package/dist/features/typography/public.d.ts +5 -0
- package/dist/features/typography/public.d.ts.map +1 -0
- package/dist/features/typography/public.js +3 -0
- package/dist/features/typography/public.js.map +1 -0
- package/dist/features/typography/textMeta.d.ts +111 -0
- package/dist/features/typography/textMeta.d.ts.map +1 -0
- package/dist/features/typography/textMeta.js +73 -0
- package/dist/features/typography/textMeta.js.map +1 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.d.ts +39 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.d.ts.map +1 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.js +32 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.d.ts +15 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.js +112 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.d.ts +4 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.js +18 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +11 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.js.map +1 -0
- package/dist/features/typography/utils/resolveTextStyle.d.ts +17 -0
- package/dist/features/typography/utils/resolveTextStyle.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveTextStyle.js +149 -0
- package/dist/features/typography/utils/resolveTextStyle.js.map +1 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +11 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.js.map +1 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.d.ts +40 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.d.ts.map +1 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.js +33 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.js.map +1 -0
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +39 -15
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/features/uploader/uploaderMeta.d.ts +136 -0
- package/dist/features/uploader/uploaderMeta.d.ts.map +1 -0
- package/dist/features/uploader/uploaderMeta.js +66 -0
- package/dist/features/uploader/uploaderMeta.js.map +1 -0
- package/dist/foundation/index.d.ts +0 -12
- package/dist/foundation/index.d.ts.map +1 -1
- package/dist/foundation/index.js +0 -6
- package/dist/foundation/index.js.map +1 -1
- package/dist/foundation/meta.d.ts +0 -58
- package/dist/foundation/meta.d.ts.map +1 -1
- package/dist/foundation/meta.js +0 -49
- package/dist/foundation/meta.js.map +1 -1
- package/dist/index.d.ts +50 -42
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -21
- package/dist/index.js.map +1 -1
- package/dist/layout/app-shell/AppShell.js +1 -1
- package/dist/layout/app-shell/AppShell.js.map +1 -1
- package/dist/layout/screen/Screen.js +1 -1
- package/dist/layout/screen/Screen.js.map +1 -1
- package/dist/layout/screen/meta.d.ts +1 -1
- package/dist/layout/screen-section/ScreenSection.js +1 -1
- package/dist/layout/screen-section/ScreenSection.js.map +1 -1
- package/dist/layout/screen-section/meta.d.ts +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.js +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.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 +25 -0
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +28 -2
- package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
- 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 +42 -23
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/metadata/themeRecipeMeta.js +4 -4
- package/dist/metadata/themeRecipeMeta.js.map +1 -1
- package/dist/patterns/auth/ForgotPasswordForm.js +2 -2
- package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
- package/dist/patterns/auth/OAuthProviderButton.js +1 -1
- package/dist/patterns/auth/OAuthProviderButton.js.map +1 -1
- package/dist/patterns/auth/OAuthProviderList.js +1 -1
- package/dist/patterns/auth/OAuthProviderList.js.map +1 -1
- package/dist/patterns/auth/OtpForm.js +2 -2
- package/dist/patterns/auth/OtpForm.js.map +1 -1
- package/dist/patterns/auth/SignInForm.js +2 -2
- package/dist/patterns/auth/SignInForm.js.map +1 -1
- package/dist/patterns/auth/SignUpForm.js +2 -2
- package/dist/patterns/auth/SignUpForm.js.map +1 -1
- package/dist/patterns/auth/types.d.ts +1 -1
- package/dist/patterns/auth/types.d.ts.map +1 -1
- package/dist/patterns/auth/types.js.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.js +5 -4
- package/dist/patterns/chat-list-item/ChatListItem.js.map +1 -1
- package/dist/patterns/chat-list-item/types.d.ts +1 -1
- package/dist/patterns/chat-list-item/types.d.ts.map +1 -1
- package/dist/patterns/chat-list-item/types.js.map +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.js +4 -4
- package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +2 -2
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/patterns/disclosure-section/DisclosureSection.js +4 -4
- package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
- package/dist/patterns/empty-state/EmptyState.js +3 -3
- package/dist/patterns/empty-state/EmptyState.js.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.d.ts.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.js +2 -1
- package/dist/patterns/filter-bar/FilterBar.js.map +1 -1
- package/dist/patterns/form-field/FormField.js +2 -2
- package/dist/patterns/form-field/FormField.js.map +1 -1
- package/dist/patterns/hero/Hero.js +5 -5
- package/dist/patterns/hero/Hero.js.map +1 -1
- package/dist/patterns/inspector-field/InspectorField.js +1 -1
- package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
- package/dist/patterns/list/List.d.ts.map +1 -1
- package/dist/patterns/list/List.js +2 -1
- package/dist/patterns/list/List.js.map +1 -1
- package/dist/patterns/list/ListRow.d.ts.map +1 -1
- package/dist/patterns/list/ListRow.js +3 -2
- package/dist/patterns/list/ListRow.js.map +1 -1
- package/dist/patterns/list/ListSection.js +1 -1
- package/dist/patterns/list/ListSection.js.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.d.ts.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.js +4 -3
- package/dist/patterns/message-bubble/MessageBubble.js.map +1 -1
- package/dist/patterns/message-bubble/meta.d.ts +1 -1
- package/dist/patterns/message-bubble/types.d.ts +1 -1
- package/dist/patterns/message-bubble/types.d.ts.map +1 -1
- package/dist/patterns/message-bubble/types.js.map +1 -1
- package/dist/patterns/missing-element/MissingElement.js +3 -3
- package/dist/patterns/missing-element/MissingElement.js.map +1 -1
- package/dist/patterns/notice/Notice.js +3 -3
- package/dist/patterns/notice/Notice.js.map +1 -1
- package/dist/patterns/notice/meta.d.ts +1 -1
- package/dist/patterns/panel/Panel.js +2 -2
- package/dist/patterns/panel/Panel.js.map +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 +5 -3
- package/dist/patterns/reader/ReaderSurface.js.map +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/BarcodeScannerView.js +3 -3
- package/dist/patterns/scanner/BarcodeScannerView.js.map +1 -1
- package/dist/patterns/scanner/CameraPermissionView.js +4 -4
- package/dist/patterns/scanner/CameraPermissionView.js.map +1 -1
- package/dist/patterns/scanner/ScanOverlay.js +3 -3
- package/dist/patterns/scanner/ScanOverlay.js.map +1 -1
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/patterns/scanner/types.d.ts +1 -1
- package/dist/patterns/scanner/types.d.ts.map +1 -1
- package/dist/patterns/scanner/types.js.map +1 -1
- package/dist/patterns/section-header/SectionHeader.js +3 -3
- package/dist/patterns/section-header/SectionHeader.js.map +1 -1
- package/dist/patterns/settings-row/SettingsRow.js +3 -3
- package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +6 -6
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/patterns/tile-grid/PaletteItem.js +4 -4
- package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
- package/dist/patterns/tile-grid/TileGrid.js +1 -1
- package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
- package/dist/patterns/timeline/Timeline.d.ts.map +1 -1
- package/dist/patterns/timeline/Timeline.js +5 -4
- package/dist/patterns/timeline/Timeline.js.map +1 -1
- package/dist/patterns/tree-view/TreeItem.js +2 -2
- package/dist/patterns/tree-view/TreeItem.js.map +1 -1
- package/dist/patterns/tree-view/TreeView.js +1 -1
- package/dist/patterns/tree-view/TreeView.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +28 -21
- package/dist/registry.js.map +1 -1
- package/dist/theme/ThemeModeToggle.js +1 -1
- package/dist/theme/ThemeModeToggle.js.map +1 -1
- package/dist/theme/ThemeModeToggleProps.d.ts +1 -1
- package/dist/theme/ThemeModeToggleProps.js.map +1 -1
- package/dist/types/avatar-group.d.ts +22 -0
- package/dist/types/avatar-group.d.ts.map +1 -0
- package/dist/types/avatar-group.js +2 -0
- package/dist/types/avatar-group.js.map +1 -0
- package/dist/types/avatar.d.ts +17 -0
- package/dist/types/avatar.d.ts.map +1 -0
- package/dist/types/avatar.js +2 -0
- package/dist/types/avatar.js.map +1 -0
- package/dist/types/badge.d.ts +11 -0
- package/dist/types/badge.d.ts.map +1 -0
- package/dist/types/badge.js +2 -0
- package/dist/types/badge.js.map +1 -0
- package/dist/types/button-group.d.ts +13 -0
- package/dist/types/button-group.d.ts.map +1 -0
- package/dist/types/button-group.js +2 -0
- package/dist/types/button-group.js.map +1 -0
- package/dist/types/button.d.ts +13 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/button.js +2 -0
- package/dist/types/button.js.map +1 -0
- package/dist/types/card.d.ts +17 -0
- package/dist/types/card.d.ts.map +1 -0
- package/dist/types/card.js +2 -0
- package/dist/types/card.js.map +1 -0
- package/dist/types/chip-group.d.ts +31 -0
- package/dist/types/chip-group.d.ts.map +1 -0
- package/dist/types/chip-group.js +2 -0
- package/dist/types/chip-group.js.map +1 -0
- package/dist/types/chip.d.ts +26 -0
- package/dist/types/chip.d.ts.map +1 -0
- package/dist/types/chip.js +2 -0
- package/dist/types/chip.js.map +1 -0
- package/dist/types/content-rail.d.ts +33 -0
- package/dist/types/content-rail.d.ts.map +1 -0
- package/dist/types/content-rail.js +2 -0
- package/dist/types/content-rail.js.map +1 -0
- package/dist/types/data-table.d.ts +52 -0
- package/dist/types/data-table.d.ts.map +1 -0
- package/dist/types/data-table.js +2 -0
- package/dist/types/data-table.js.map +1 -0
- package/dist/types/heading.d.ts +32 -0
- package/dist/types/heading.d.ts.map +1 -0
- package/dist/types/heading.js +2 -0
- package/dist/types/heading.js.map +1 -0
- package/dist/types/icon-button.d.ts +18 -0
- package/dist/types/icon-button.d.ts.map +1 -0
- package/dist/types/icon-button.js +2 -0
- package/dist/types/icon-button.js.map +1 -0
- package/dist/types/icon.d.ts +4 -0
- package/dist/types/icon.d.ts.map +1 -0
- package/dist/types/icon.js +2 -0
- package/dist/types/icon.js.map +1 -0
- package/dist/types/image.d.ts +8 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/image.js +2 -0
- package/dist/types/image.js.map +1 -0
- package/dist/types/layout.d.ts +13 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/types/layout.js +2 -0
- package/dist/types/layout.js.map +1 -0
- package/dist/types/manifest-bottom-sheet.d.ts +18 -0
- package/dist/types/manifest-bottom-sheet.d.ts.map +1 -0
- package/dist/types/manifest-bottom-sheet.js +2 -0
- package/dist/types/manifest-bottom-sheet.js.map +1 -0
- package/dist/types/manifest-list.d.ts +34 -0
- package/dist/types/manifest-list.d.ts.map +1 -0
- package/dist/types/manifest-list.js +2 -0
- package/dist/types/manifest-list.js.map +1 -0
- package/dist/types/media-card.d.ts +36 -0
- package/dist/types/media-card.d.ts.map +1 -0
- package/dist/types/media-card.js +2 -0
- package/dist/types/media-card.js.map +1 -0
- package/dist/types/metric-card.d.ts +17 -0
- package/dist/types/metric-card.d.ts.map +1 -0
- package/dist/types/metric-card.js +2 -0
- package/dist/types/metric-card.js.map +1 -0
- package/dist/types/post-card.d.ts +64 -0
- package/dist/types/post-card.d.ts.map +1 -0
- package/dist/types/post-card.js +2 -0
- package/dist/types/post-card.js.map +1 -0
- package/dist/types/product-card.d.ts +23 -0
- package/dist/types/product-card.d.ts.map +1 -0
- package/dist/types/product-card.js +2 -0
- package/dist/types/product-card.js.map +1 -0
- package/dist/types/splash-screen.d.ts +16 -0
- package/dist/types/splash-screen.d.ts.map +1 -0
- package/dist/types/splash-screen.js +2 -0
- package/dist/types/splash-screen.js.map +1 -0
- package/dist/types/surface.d.ts +6 -0
- package/dist/types/surface.d.ts.map +1 -0
- package/dist/types/surface.js +2 -0
- package/dist/types/surface.js.map +1 -0
- package/dist/types/text.d.ts +31 -0
- package/dist/types/text.d.ts.map +1 -0
- package/dist/types/text.js +2 -0
- package/dist/types/text.js.map +1 -0
- package/dist/types/upload.d.ts +15 -3
- package/dist/types/upload.d.ts.map +1 -1
- package/dist/types/upload.js.map +1 -1
- package/dist/utils/createManifestBindings.d.ts +5 -0
- package/dist/utils/createManifestBindings.d.ts.map +1 -0
- package/dist/utils/createManifestBindings.js +36 -0
- package/dist/utils/createManifestBindings.js.map +1 -0
- package/dist/utils/finalizeFeatureMetadata.d.ts +4 -0
- package/dist/utils/finalizeFeatureMetadata.d.ts.map +1 -0
- package/dist/utils/finalizeFeatureMetadata.js +22 -0
- package/dist/utils/finalizeFeatureMetadata.js.map +1 -0
- package/package.json +1 -1
- package/src/audit.test.ts +5 -5
- package/src/components/app-bar/AppBar.tsx +5 -4
- package/src/components/breadcrumbs/Breadcrumbs.tsx +3 -3
- package/src/components/checkbox/CheckboxGroup.tsx +2 -2
- package/src/components/contentFallback.test.ts +8 -2
- package/src/components/date-picker/DatePicker.tsx +3 -3
- package/src/components/form/Form.tsx +1 -1
- package/src/components/form/FormActions.tsx +2 -2
- package/src/components/form/FormError.tsx +2 -2
- package/src/components/form/FormField.tsx +2 -2
- package/src/components/gradient/Gradient.tsx +1 -1
- package/src/components/gradient/types.ts +1 -1
- package/src/components/input/Input.tsx +1 -1
- package/src/components/menu/Menu.tsx +2 -2
- package/src/components/modal/Modal.tsx +3 -3
- package/src/components/pagination/Pagination.tsx +3 -3
- package/src/components/progress/Progress.tsx +1 -1
- package/src/components/progress/ProgressRing.tsx +2 -2
- package/src/components/radio/RadioGroup.tsx +2 -2
- package/src/components/radio/RadioOptionControl.tsx +2 -2
- package/src/components/radio/types.ts +1 -1
- package/src/components/rating/Rating.tsx +1 -1
- package/src/components/select/Select.tsx +1 -1
- package/src/components/skeleton/Skeleton.tsx +1 -1
- package/src/components/skeleton/SkeletonCard.tsx +3 -3
- package/src/components/skeleton/SkeletonText.tsx +1 -1
- package/src/components/skeleton/types.ts +1 -1
- package/src/components/tabs/Tabs.tsx +3 -3
- package/src/components/time-picker/TimePicker.tsx +3 -3
- package/src/components/toolbar/Toolbar.tsx +2 -2
- package/src/components/toolbar/ToolbarAction.tsx +1 -1
- package/src/constants.ts +23 -0
- package/src/corePluginMetadata.ts +10 -1
- package/src/featureManifest.test.ts +48 -0
- package/src/features/avatar/adapters/inbound/Avatar.tsx +147 -0
- package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +77 -0
- package/src/features/avatar/avatarGroupMeta.ts +25 -0
- package/src/features/avatar/avatarMeta.ts +42 -0
- package/src/features/avatar/public.ts +5 -0
- package/src/features/badge/adapters/inbound/Badge.tsx +33 -0
- package/src/features/badge/badgeMeta.ts +29 -0
- package/src/features/badge/public.ts +2 -0
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +85 -0
- package/src/features/bottom-sheet/bottomSheetMeta.ts +33 -0
- package/src/features/bottom-sheet/public.ts +2 -0
- package/src/features/button/adapters/inbound/Button.tsx +42 -0
- package/src/features/button/adapters/inbound/ButtonGroup.tsx +112 -0
- package/src/features/button/adapters/inbound/IconButton.tsx +37 -0
- package/src/features/button/buttonGroupMeta.ts +45 -0
- package/src/features/button/buttonMeta.ts +51 -0
- package/src/features/button/iconButtonMeta.ts +48 -0
- package/src/features/button/public.ts +10 -0
- package/src/features/button/utils/resolveButtonThemeRecipe.ts +41 -0
- package/src/features/button/utils/themeRecipeMeta.ts +29 -0
- package/src/features/card/adapters/inbound/Card.tsx +91 -0
- package/src/features/card/adapters/inbound/MediaCard.tsx +124 -0
- package/src/features/card/adapters/inbound/MetricCard.tsx +82 -0
- package/src/features/card/adapters/inbound/PostCard.test.tsx +11 -0
- package/src/features/card/adapters/inbound/PostCard.tsx +241 -0
- package/src/features/card/adapters/inbound/ProductCard.test.tsx +19 -0
- package/src/features/card/adapters/inbound/ProductCard.tsx +141 -0
- package/src/features/card/cardMeta.ts +57 -0
- package/src/features/card/mediaCardMeta.ts +52 -0
- package/src/features/card/metricCardMeta.ts +47 -0
- package/src/features/card/public.ts +16 -0
- package/src/features/card/utils/resolveCardThemeRecipe.ts +33 -0
- package/src/features/card/utils/themeRecipeMeta.ts +32 -0
- package/src/features/chip/adapters/inbound/Chip.tsx +97 -0
- package/src/features/chip/adapters/inbound/ChipGroup.tsx +73 -0
- package/src/features/chip/chipGroupMeta.ts +32 -0
- package/src/features/chip/chipMeta.ts +39 -0
- package/src/features/chip/public.ts +4 -0
- package/src/features/chip/utils/resolveChipColors.ts +74 -0
- package/src/features/data-table/adapters/inbound/DataTable.tsx +411 -0
- package/src/features/data-table/dataTableMeta.ts +58 -0
- package/src/features/data-table/public.ts +11 -0
- package/src/features/data-table/utils/resolveDataTableRowKey.test.ts +11 -0
- package/src/features/data-table/utils/resolveDataTableRowKey.ts +13 -0
- package/src/features/icon/adapters/inbound/Icon.tsx +18 -0
- package/src/features/icon/public.ts +2 -0
- package/src/features/icon/utils/meta.test.ts +22 -0
- package/src/features/image/adapters/inbound/Image.tsx +149 -0
- package/src/features/image/imageMeta.ts +35 -0
- package/src/features/image/public.ts +2 -0
- package/src/features/layout/adapters/inbound/Box.tsx +18 -0
- package/src/features/layout/adapters/inbound/Container.tsx +18 -0
- package/src/features/layout/adapters/inbound/ContentRail.test.ts +44 -0
- package/src/features/layout/adapters/inbound/ContentRail.tsx +262 -0
- package/src/features/layout/adapters/inbound/ContentRailFlow.tsx +40 -0
- package/src/features/layout/adapters/inbound/Divider.tsx +18 -0
- package/src/features/layout/adapters/inbound/Grid.tsx +18 -0
- package/src/features/layout/adapters/inbound/Stack.tsx +18 -0
- package/src/features/layout/boxMeta.ts +16 -0
- package/src/features/layout/constants.ts +21 -0
- package/src/features/layout/containerMeta.ts +11 -0
- package/src/features/layout/contentRailMeta.ts +134 -0
- package/src/features/layout/dividerMeta.ts +17 -0
- package/src/features/layout/gridMeta.ts +18 -0
- package/src/features/layout/public.ts +22 -0
- package/src/features/layout/stackMeta.ts +26 -0
- package/src/features/layout/utils/resolveContentRailItemWidth.ts +40 -0
- package/src/features/layout/utils/useContentRailReducedMotion.ts +28 -0
- package/src/features/list/adapters/inbound/FlatList.tsx +69 -0
- package/src/features/list/adapters/inbound/HorizontalListSeparator.tsx +8 -0
- package/src/features/list/adapters/inbound/SectionList.tsx +76 -0
- package/src/features/list/adapters/inbound/VerticalListSeparator.tsx +8 -0
- package/src/features/list/adapters/inbound/useListVisibility.ts +25 -0
- package/src/features/list/application/use-cases/partitionListSections.test.ts +30 -0
- package/src/features/list/application/use-cases/partitionListSections.ts +23 -0
- package/src/features/list/flatListMeta.ts +39 -0
- package/src/features/list/public.ts +7 -0
- package/src/features/list/sectionListMeta.ts +31 -0
- package/src/features/splash-screen/adapters/inbound/SplashScreen.tsx +98 -0
- package/src/features/splash-screen/public.ts +2 -0
- package/src/features/splash-screen/splashScreenMeta.ts +41 -0
- package/src/features/surface/adapters/inbound/Surface.tsx +18 -0
- package/src/features/surface/public.ts +2 -0
- package/src/features/surface/surfaceMeta.ts +14 -0
- package/src/features/typography/adapters/inbound/Heading.tsx +114 -0
- package/src/features/typography/adapters/inbound/Text.tsx +110 -0
- package/src/features/typography/headingMeta.ts +82 -0
- package/src/features/typography/public.ts +19 -0
- package/src/features/typography/textMeta.ts +74 -0
- package/src/features/typography/utils/headingThemeRecipeMeta.ts +33 -0
- package/src/features/typography/utils/resolveHeadingRecipe.test.ts +293 -0
- package/src/features/typography/utils/resolveHeadingRecipe.ts +174 -0
- package/src/features/typography/utils/resolveHeadingSizeFromLevel.ts +19 -0
- package/src/features/typography/utils/resolveHeadingThemeRecipe.ts +55 -0
- package/src/features/typography/utils/resolveTextStyle.test.ts +380 -0
- package/src/features/typography/utils/resolveTextStyle.ts +220 -0
- package/src/features/typography/utils/resolveTextThemeRecipe.ts +54 -0
- package/src/features/typography/utils/textThemeRecipeMeta.ts +34 -0
- package/src/features/uploader/adapters/inbound/Uploader.tsx +51 -16
- package/src/features/uploader/uploaderMeta.ts +68 -0
- package/src/foundation/index.test.ts +5 -10
- package/src/foundation/index.ts +0 -12
- package/src/foundation/meta.ts +0 -49
- package/src/index.ts +102 -107
- package/src/interactionPolicy.test.ts +6 -6
- package/src/layout/app-shell/AppShell.tsx +1 -1
- package/src/layout/screen/Screen.tsx +1 -1
- package/src/layout/screen-section/ScreenSection.tsx +1 -1
- package/src/layout/sidebar-layout/SidebarLayout.tsx +1 -1
- package/src/layout/topbar-layout/TopbarLayout.tsx +1 -1
- package/src/metadata/allowedChildren.ts +25 -0
- package/src/metadata/authoringMeta.test.ts +1 -1
- package/src/metadata/bindableComponentMeta.ts +1 -1
- package/src/metadata/componentMeta.test.ts +25 -1
- package/src/metadata/componentMeta.ts +42 -23
- package/src/metadata/radioGroupReachability.test.ts +1 -1
- package/src/metadata/themeRecipeMeta.test.ts +1 -1
- package/src/metadata/themeRecipeMeta.ts +4 -4
- package/src/patterns/auth/ForgotPasswordForm.tsx +2 -2
- package/src/patterns/auth/OAuthProviderButton.tsx +1 -1
- package/src/patterns/auth/OAuthProviderList.tsx +1 -1
- package/src/patterns/auth/OtpForm.tsx +2 -2
- package/src/patterns/auth/SignInForm.tsx +2 -2
- package/src/patterns/auth/SignUpForm.tsx +2 -2
- package/src/patterns/auth/types.ts +1 -1
- package/src/patterns/chat-list-item/ChatListItem.tsx +5 -4
- package/src/patterns/chat-list-item/types.ts +1 -1
- package/src/patterns/collection-editor/CollectionEditor.tsx +4 -4
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +2 -2
- package/src/patterns/disclosure-section/DisclosureSection.tsx +4 -4
- package/src/patterns/empty-state/EmptyState.tsx +3 -3
- package/src/patterns/filter-bar/FilterBar.tsx +2 -1
- package/src/patterns/form-field/FormField.tsx +2 -2
- package/src/patterns/hero/Hero.tsx +5 -5
- package/src/patterns/inspector-field/InspectorField.tsx +1 -1
- package/src/patterns/list/List.tsx +2 -1
- package/src/patterns/list/ListRow.tsx +3 -2
- package/src/patterns/list/ListSection.tsx +1 -1
- package/src/patterns/message-bubble/MessageBubble.tsx +4 -3
- package/src/patterns/message-bubble/types.ts +1 -1
- package/src/patterns/missing-element/MissingElement.tsx +3 -3
- package/src/patterns/notice/Notice.tsx +3 -3
- package/src/patterns/panel/Panel.tsx +2 -2
- package/src/patterns/reader/ReaderSurface.test.ts +1 -1
- package/src/patterns/reader/ReaderSurface.tsx +5 -3
- package/src/patterns/scanner/BarcodeScannerView.tsx +3 -3
- package/src/patterns/scanner/CameraPermissionView.tsx +4 -4
- package/src/patterns/scanner/ScanOverlay.tsx +3 -3
- package/src/patterns/scanner/types.ts +1 -1
- package/src/patterns/section-header/SectionHeader.tsx +3 -3
- package/src/patterns/settings-row/SettingsRow.tsx +3 -3
- package/src/patterns/theme-composer/ThemeComposer.tsx +6 -6
- package/src/patterns/tile-grid/PaletteItem.tsx +4 -4
- package/src/patterns/tile-grid/TileGrid.tsx +1 -1
- package/src/patterns/timeline/Timeline.tsx +5 -4
- package/src/patterns/tree-view/TreeItem.tsx +2 -2
- package/src/patterns/tree-view/TreeView.tsx +1 -1
- package/src/platformAcceptance.test.ts +1 -1
- package/src/registry.test.ts +1 -1
- package/src/registry.ts +28 -32
- package/src/showcaseCoverage.test.ts +1 -1
- package/src/theme/ThemeModeToggle.tsx +1 -1
- package/src/theme/ThemeModeToggleProps.ts +1 -1
- package/src/theme/themeScopeStructure.test.ts +29 -26
- package/src/types/avatar-group.ts +24 -0
- package/src/types/avatar.ts +20 -0
- package/src/types/badge.ts +15 -0
- package/src/types/button-group.ts +15 -0
- package/src/types/button.ts +15 -0
- package/src/types/card.ts +19 -0
- package/src/types/chip-group.ts +36 -0
- package/src/types/chip.ts +29 -0
- package/src/types/content-rail.ts +37 -0
- package/src/types/data-table.ts +58 -0
- package/src/types/heading.ts +38 -0
- package/src/types/icon-button.ts +17 -0
- package/src/types/icon.ts +5 -0
- package/src/types/image.ts +11 -0
- package/src/types/layout.ts +17 -0
- package/src/types/manifest-bottom-sheet.ts +17 -0
- package/src/types/manifest-list.ts +33 -0
- package/src/types/media-card.ts +42 -0
- package/src/types/metric-card.ts +18 -0
- package/src/types/post-card.ts +71 -0
- package/src/types/product-card.ts +23 -0
- package/src/types/splash-screen.ts +18 -0
- package/src/types/surface.ts +7 -0
- package/src/types/text.ts +41 -0
- package/src/types/upload.ts +9 -3
- package/src/utils/createManifestBindings.ts +47 -0
- package/src/utils/finalizeFeatureMetadata.ts +26 -0
- package/dist/components/avatar/Avatar.d.ts +0 -7
- package/dist/components/avatar/Avatar.d.ts.map +0 -1
- package/dist/components/avatar/Avatar.js +0 -101
- package/dist/components/avatar/Avatar.js.map +0 -1
- package/dist/components/avatar/index.d.ts +0 -4
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/avatar/meta.d.ts +0 -9
- package/dist/components/avatar/meta.d.ts.map +0 -1
- package/dist/components/avatar/meta.js +0 -9
- package/dist/components/avatar/meta.js.map +0 -1
- package/dist/components/avatar/resolveAvatarInitials.d.ts.map +0 -1
- package/dist/components/avatar/resolveAvatarInitials.js.map +0 -1
- package/dist/components/avatar/types.d.ts +0 -17
- package/dist/components/avatar/types.d.ts.map +0 -1
- package/dist/components/avatar/types.js +0 -2
- package/dist/components/avatar/types.js.map +0 -1
- package/dist/components/avatar-group/AvatarGroup.d.ts +0 -7
- package/dist/components/avatar-group/AvatarGroup.d.ts.map +0 -1
- package/dist/components/avatar-group/AvatarGroup.js +0 -29
- package/dist/components/avatar-group/AvatarGroup.js.map +0 -1
- package/dist/components/avatar-group/index.d.ts +0 -3
- package/dist/components/avatar-group/index.d.ts.map +0 -1
- package/dist/components/avatar-group/index.js +0 -2
- package/dist/components/avatar-group/index.js.map +0 -1
- package/dist/components/avatar-group/meta.d.ts +0 -9
- package/dist/components/avatar-group/meta.d.ts.map +0 -1
- package/dist/components/avatar-group/meta.js +0 -9
- package/dist/components/avatar-group/meta.js.map +0 -1
- package/dist/components/avatar-group/types.d.ts +0 -22
- package/dist/components/avatar-group/types.d.ts.map +0 -1
- package/dist/components/avatar-group/types.js +0 -2
- package/dist/components/avatar-group/types.js.map +0 -1
- package/dist/components/badge/Badge.d.ts +0 -7
- package/dist/components/badge/Badge.d.ts.map +0 -1
- package/dist/components/badge/Badge.js +0 -13
- package/dist/components/badge/Badge.js.map +0 -1
- package/dist/components/badge/index.d.ts +0 -3
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js +0 -2
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/meta.d.ts +0 -9
- package/dist/components/badge/meta.d.ts.map +0 -1
- package/dist/components/badge/meta.js +0 -9
- package/dist/components/badge/meta.js.map +0 -1
- package/dist/components/badge/types.d.ts +0 -11
- package/dist/components/badge/types.d.ts.map +0 -1
- package/dist/components/badge/types.js +0 -2
- package/dist/components/badge/types.js.map +0 -1
- package/dist/components/button/Button.d.ts +0 -15
- package/dist/components/button/Button.d.ts.map +0 -1
- package/dist/components/button/Button.js +0 -23
- package/dist/components/button/Button.js.map +0 -1
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js +0 -2
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button/meta.d.ts +0 -65
- package/dist/components/button/meta.d.ts.map +0 -1
- package/dist/components/button/meta.js +0 -52
- package/dist/components/button/meta.js.map +0 -1
- package/dist/components/button/resolveButtonThemeRecipe.d.ts +0 -9
- package/dist/components/button/resolveButtonThemeRecipe.d.ts.map +0 -1
- package/dist/components/button/resolveButtonThemeRecipe.js +0 -30
- package/dist/components/button/resolveButtonThemeRecipe.js.map +0 -1
- package/dist/components/button/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/button/themeRecipeMeta.js +0 -28
- package/dist/components/button/themeRecipeMeta.js.map +0 -1
- package/dist/components/button/types.d.ts +0 -13
- package/dist/components/button/types.d.ts.map +0 -1
- package/dist/components/button/types.js +0 -2
- package/dist/components/button/types.js.map +0 -1
- package/dist/components/button-group/ButtonGroup.d.ts +0 -7
- package/dist/components/button-group/ButtonGroup.d.ts.map +0 -1
- package/dist/components/button-group/ButtonGroup.js +0 -76
- package/dist/components/button-group/ButtonGroup.js.map +0 -1
- package/dist/components/button-group/index.d.ts +0 -3
- package/dist/components/button-group/index.d.ts.map +0 -1
- package/dist/components/button-group/index.js +0 -2
- package/dist/components/button-group/index.js.map +0 -1
- package/dist/components/button-group/meta.d.ts +0 -44
- package/dist/components/button-group/meta.d.ts.map +0 -1
- package/dist/components/button-group/meta.js +0 -44
- package/dist/components/button-group/meta.js.map +0 -1
- package/dist/components/button-group/types.d.ts +0 -13
- package/dist/components/button-group/types.d.ts.map +0 -1
- package/dist/components/button-group/types.js +0 -2
- package/dist/components/button-group/types.js.map +0 -1
- package/dist/components/card/Card.d.ts +0 -15
- package/dist/components/card/Card.d.ts.map +0 -1
- package/dist/components/card/Card.js +0 -53
- package/dist/components/card/Card.js.map +0 -1
- package/dist/components/card/index.d.ts +0 -3
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/index.js +0 -2
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/card/meta.d.ts +0 -80
- package/dist/components/card/meta.d.ts.map +0 -1
- package/dist/components/card/meta.js +0 -49
- package/dist/components/card/meta.js.map +0 -1
- package/dist/components/card/resolveCardThemeRecipe.d.ts +0 -15
- package/dist/components/card/resolveCardThemeRecipe.d.ts.map +0 -1
- package/dist/components/card/resolveCardThemeRecipe.js.map +0 -1
- package/dist/components/card/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/card/themeRecipeMeta.js.map +0 -1
- package/dist/components/card/types.d.ts +0 -17
- package/dist/components/card/types.d.ts.map +0 -1
- package/dist/components/card/types.js +0 -2
- package/dist/components/card/types.js.map +0 -1
- package/dist/components/chip/Chip.d.ts +0 -7
- package/dist/components/chip/Chip.d.ts.map +0 -1
- package/dist/components/chip/Chip.js +0 -56
- package/dist/components/chip/Chip.js.map +0 -1
- package/dist/components/chip/index.d.ts +0 -3
- package/dist/components/chip/index.d.ts.map +0 -1
- package/dist/components/chip/index.js +0 -2
- package/dist/components/chip/index.js.map +0 -1
- package/dist/components/chip/meta.d.ts +0 -9
- package/dist/components/chip/meta.d.ts.map +0 -1
- package/dist/components/chip/meta.js +0 -9
- package/dist/components/chip/meta.js.map +0 -1
- package/dist/components/chip/resolveChipColors.d.ts +0 -10
- package/dist/components/chip/resolveChipColors.d.ts.map +0 -1
- package/dist/components/chip/resolveChipColors.js +0 -57
- package/dist/components/chip/resolveChipColors.js.map +0 -1
- package/dist/components/chip/types.d.ts +0 -26
- package/dist/components/chip/types.d.ts.map +0 -1
- package/dist/components/chip/types.js +0 -2
- package/dist/components/chip/types.js.map +0 -1
- package/dist/components/chip-group/ChipGroup.d.ts +0 -7
- package/dist/components/chip-group/ChipGroup.d.ts.map +0 -1
- package/dist/components/chip-group/ChipGroup.js +0 -38
- package/dist/components/chip-group/ChipGroup.js.map +0 -1
- package/dist/components/chip-group/index.d.ts +0 -3
- package/dist/components/chip-group/index.d.ts.map +0 -1
- package/dist/components/chip-group/index.js +0 -2
- package/dist/components/chip-group/index.js.map +0 -1
- package/dist/components/chip-group/meta.d.ts +0 -9
- package/dist/components/chip-group/meta.d.ts.map +0 -1
- package/dist/components/chip-group/meta.js +0 -9
- package/dist/components/chip-group/meta.js.map +0 -1
- package/dist/components/chip-group/types.d.ts +0 -31
- package/dist/components/chip-group/types.d.ts.map +0 -1
- package/dist/components/chip-group/types.js +0 -2
- package/dist/components/chip-group/types.js.map +0 -1
- package/dist/components/data-table/DataTable.d.ts +0 -7
- package/dist/components/data-table/DataTable.d.ts.map +0 -1
- package/dist/components/data-table/DataTable.js +0 -216
- package/dist/components/data-table/DataTable.js.map +0 -1
- package/dist/components/data-table/index.d.ts +0 -3
- package/dist/components/data-table/index.d.ts.map +0 -1
- package/dist/components/data-table/index.js +0 -2
- package/dist/components/data-table/index.js.map +0 -1
- package/dist/components/data-table/meta.d.ts +0 -9
- package/dist/components/data-table/meta.d.ts.map +0 -1
- package/dist/components/data-table/meta.js +0 -9
- package/dist/components/data-table/meta.js.map +0 -1
- package/dist/components/data-table/types.d.ts +0 -51
- package/dist/components/data-table/types.d.ts.map +0 -1
- package/dist/components/data-table/types.js +0 -2
- package/dist/components/data-table/types.js.map +0 -1
- package/dist/components/heading/Heading.d.ts +0 -15
- package/dist/components/heading/Heading.d.ts.map +0 -1
- package/dist/components/heading/Heading.js +0 -70
- package/dist/components/heading/Heading.js.map +0 -1
- package/dist/components/heading/index.d.ts +0 -3
- package/dist/components/heading/index.d.ts.map +0 -1
- package/dist/components/heading/index.js +0 -2
- package/dist/components/heading/index.js.map +0 -1
- package/dist/components/heading/meta.d.ts +0 -122
- package/dist/components/heading/meta.d.ts.map +0 -1
- package/dist/components/heading/meta.js +0 -80
- package/dist/components/heading/meta.js.map +0 -1
- package/dist/components/heading/resolveHeadingRecipe.d.ts +0 -16
- package/dist/components/heading/resolveHeadingRecipe.d.ts.map +0 -1
- package/dist/components/heading/resolveHeadingRecipe.js +0 -127
- package/dist/components/heading/resolveHeadingRecipe.js.map +0 -1
- package/dist/components/heading/resolveHeadingThemeRecipe.d.ts +0 -11
- package/dist/components/heading/resolveHeadingThemeRecipe.d.ts.map +0 -1
- package/dist/components/heading/resolveHeadingThemeRecipe.js.map +0 -1
- package/dist/components/heading/themeRecipeMeta.d.ts +0 -39
- package/dist/components/heading/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/heading/themeRecipeMeta.js +0 -32
- package/dist/components/heading/themeRecipeMeta.js.map +0 -1
- package/dist/components/heading/types.d.ts +0 -32
- package/dist/components/heading/types.d.ts.map +0 -1
- package/dist/components/heading/types.js +0 -2
- package/dist/components/heading/types.js.map +0 -1
- package/dist/components/icon/Icon.d.ts +0 -9
- package/dist/components/icon/Icon.d.ts.map +0 -1
- package/dist/components/icon/Icon.js +0 -11
- package/dist/components/icon/Icon.js.map +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js +0 -2
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/meta.d.ts +0 -38
- package/dist/components/icon/meta.d.ts.map +0 -1
- package/dist/components/icon/meta.js +0 -30
- package/dist/components/icon/meta.js.map +0 -1
- package/dist/components/icon-button/IconButton.d.ts +0 -7
- package/dist/components/icon-button/IconButton.d.ts.map +0 -1
- package/dist/components/icon-button/IconButton.js +0 -13
- package/dist/components/icon-button/IconButton.js.map +0 -1
- package/dist/components/icon-button/index.d.ts +0 -3
- package/dist/components/icon-button/index.d.ts.map +0 -1
- package/dist/components/icon-button/index.js +0 -3
- package/dist/components/icon-button/index.js.map +0 -1
- package/dist/components/icon-button/meta.d.ts +0 -9
- package/dist/components/icon-button/meta.d.ts.map +0 -1
- package/dist/components/icon-button/meta.js +0 -9
- package/dist/components/icon-button/meta.js.map +0 -1
- package/dist/components/icon-button/types.d.ts +0 -15
- package/dist/components/icon-button/types.d.ts.map +0 -1
- package/dist/components/icon-button/types.js +0 -2
- package/dist/components/icon-button/types.js.map +0 -1
- package/dist/components/image/Image.d.ts +0 -5
- package/dist/components/image/Image.d.ts.map +0 -1
- package/dist/components/image/Image.js +0 -84
- package/dist/components/image/Image.js.map +0 -1
- package/dist/components/image/index.d.ts +0 -3
- package/dist/components/image/index.d.ts.map +0 -1
- package/dist/components/image/index.js +0 -2
- package/dist/components/image/index.js.map +0 -1
- package/dist/components/image/meta.d.ts +0 -30
- package/dist/components/image/meta.d.ts.map +0 -1
- package/dist/components/image/meta.js +0 -24
- package/dist/components/image/meta.js.map +0 -1
- package/dist/components/image/types.d.ts +0 -8
- package/dist/components/image/types.d.ts.map +0 -1
- package/dist/components/image/types.js +0 -2
- package/dist/components/image/types.js.map +0 -1
- package/dist/components/media-card/MediaCard.d.ts +0 -7
- package/dist/components/media-card/MediaCard.d.ts.map +0 -1
- package/dist/components/media-card/MediaCard.js +0 -67
- package/dist/components/media-card/MediaCard.js.map +0 -1
- package/dist/components/media-card/index.d.ts +0 -3
- package/dist/components/media-card/index.d.ts.map +0 -1
- package/dist/components/media-card/index.js +0 -2
- package/dist/components/media-card/index.js.map +0 -1
- package/dist/components/media-card/meta.d.ts +0 -9
- package/dist/components/media-card/meta.d.ts.map +0 -1
- package/dist/components/media-card/meta.js +0 -9
- package/dist/components/media-card/meta.js.map +0 -1
- package/dist/components/media-card/types.d.ts +0 -36
- package/dist/components/media-card/types.d.ts.map +0 -1
- package/dist/components/media-card/types.js +0 -2
- package/dist/components/media-card/types.js.map +0 -1
- package/dist/components/metric-card/MetricCard.d.ts +0 -7
- package/dist/components/metric-card/MetricCard.d.ts.map +0 -1
- package/dist/components/metric-card/MetricCard.js +0 -46
- package/dist/components/metric-card/MetricCard.js.map +0 -1
- package/dist/components/metric-card/index.d.ts +0 -3
- package/dist/components/metric-card/index.d.ts.map +0 -1
- package/dist/components/metric-card/index.js +0 -2
- package/dist/components/metric-card/index.js.map +0 -1
- package/dist/components/metric-card/meta.d.ts +0 -9
- package/dist/components/metric-card/meta.d.ts.map +0 -1
- package/dist/components/metric-card/meta.js +0 -9
- package/dist/components/metric-card/meta.js.map +0 -1
- package/dist/components/metric-card/types.d.ts +0 -17
- package/dist/components/metric-card/types.d.ts.map +0 -1
- package/dist/components/metric-card/types.js +0 -2
- package/dist/components/metric-card/types.js.map +0 -1
- package/dist/components/splash-screen/SplashScreen.d.ts +0 -11
- package/dist/components/splash-screen/SplashScreen.d.ts.map +0 -1
- package/dist/components/splash-screen/SplashScreen.js +0 -54
- package/dist/components/splash-screen/SplashScreen.js.map +0 -1
- package/dist/components/splash-screen/index.d.ts +0 -3
- package/dist/components/splash-screen/index.d.ts.map +0 -1
- package/dist/components/splash-screen/index.js +0 -2
- package/dist/components/splash-screen/index.js.map +0 -1
- package/dist/components/splash-screen/meta.d.ts +0 -9
- package/dist/components/splash-screen/meta.d.ts.map +0 -1
- package/dist/components/splash-screen/meta.js +0 -9
- package/dist/components/splash-screen/meta.js.map +0 -1
- package/dist/components/splash-screen/types.d.ts +0 -16
- package/dist/components/splash-screen/types.d.ts.map +0 -1
- package/dist/components/splash-screen/types.js +0 -2
- package/dist/components/splash-screen/types.js.map +0 -1
- package/dist/components/text/Text.d.ts +0 -15
- package/dist/components/text/Text.d.ts.map +0 -1
- package/dist/components/text/Text.js +0 -64
- package/dist/components/text/Text.js.map +0 -1
- package/dist/components/text/index.d.ts +0 -3
- package/dist/components/text/index.d.ts.map +0 -1
- package/dist/components/text/index.js +0 -2
- package/dist/components/text/index.js.map +0 -1
- package/dist/components/text/meta.d.ts +0 -111
- package/dist/components/text/meta.d.ts.map +0 -1
- package/dist/components/text/meta.js +0 -72
- package/dist/components/text/meta.js.map +0 -1
- package/dist/components/text/resolveTextRecipe.d.ts +0 -16
- package/dist/components/text/resolveTextRecipe.d.ts.map +0 -1
- package/dist/components/text/resolveTextRecipe.js +0 -148
- package/dist/components/text/resolveTextRecipe.js.map +0 -1
- package/dist/components/text/resolveTextThemeRecipe.d.ts +0 -11
- package/dist/components/text/resolveTextThemeRecipe.d.ts.map +0 -1
- package/dist/components/text/resolveTextThemeRecipe.js.map +0 -1
- package/dist/components/text/themeRecipeMeta.d.ts +0 -40
- package/dist/components/text/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/text/themeRecipeMeta.js +0 -33
- package/dist/components/text/themeRecipeMeta.js.map +0 -1
- package/dist/components/text/types.d.ts +0 -31
- package/dist/components/text/types.d.ts.map +0 -1
- package/dist/components/text/types.js +0 -2
- package/dist/components/text/types.js.map +0 -1
- package/dist/features/uploader/meta.d.ts +0 -10
- package/dist/features/uploader/meta.d.ts.map +0 -1
- package/dist/features/uploader/meta.js +0 -10
- package/dist/features/uploader/meta.js.map +0 -1
- package/dist/foundation/Box.d.ts +0 -12
- package/dist/foundation/Box.d.ts.map +0 -1
- package/dist/foundation/Box.js +0 -13
- package/dist/foundation/Box.js.map +0 -1
- package/dist/foundation/Container.d.ts +0 -12
- package/dist/foundation/Container.d.ts.map +0 -1
- package/dist/foundation/Container.js +0 -13
- package/dist/foundation/Container.js.map +0 -1
- package/dist/foundation/Divider.d.ts +0 -12
- package/dist/foundation/Divider.d.ts.map +0 -1
- package/dist/foundation/Divider.js +0 -13
- package/dist/foundation/Divider.js.map +0 -1
- package/dist/foundation/Grid.d.ts +0 -12
- package/dist/foundation/Grid.d.ts.map +0 -1
- package/dist/foundation/Grid.js +0 -13
- package/dist/foundation/Grid.js.map +0 -1
- package/dist/foundation/Stack.d.ts +0 -12
- package/dist/foundation/Stack.d.ts.map +0 -1
- package/dist/foundation/Stack.js +0 -13
- package/dist/foundation/Stack.js.map +0 -1
- package/dist/foundation/Surface.d.ts +0 -13
- package/dist/foundation/Surface.d.ts.map +0 -1
- package/dist/foundation/Surface.js +0 -13
- package/dist/foundation/Surface.js.map +0 -1
- package/dist/patterns/content-rail/ContentRail.d.ts +0 -10
- package/dist/patterns/content-rail/ContentRail.d.ts.map +0 -1
- package/dist/patterns/content-rail/ContentRail.js +0 -175
- package/dist/patterns/content-rail/ContentRail.js.map +0 -1
- package/dist/patterns/content-rail/index.d.ts +0 -3
- package/dist/patterns/content-rail/index.d.ts.map +0 -1
- package/dist/patterns/content-rail/index.js +0 -2
- package/dist/patterns/content-rail/index.js.map +0 -1
- package/dist/patterns/content-rail/meta.d.ts +0 -143
- package/dist/patterns/content-rail/meta.d.ts.map +0 -1
- package/dist/patterns/content-rail/meta.js +0 -130
- package/dist/patterns/content-rail/meta.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailItemWidth.d.ts +0 -10
- package/dist/patterns/content-rail/resolveContentRailItemWidth.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailItemWidth.js +0 -25
- package/dist/patterns/content-rail/resolveContentRailItemWidth.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailPhysicalOffset.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailPhysicalOffset.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailState.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailState.js.map +0 -1
- package/dist/patterns/content-rail/types.d.ts +0 -31
- package/dist/patterns/content-rail/types.d.ts.map +0 -1
- package/dist/patterns/content-rail/types.js +0 -2
- package/dist/patterns/content-rail/types.js.map +0 -1
- package/dist/patterns/content-rail/useContentRailReducedMotion.d.ts +0 -3
- package/dist/patterns/content-rail/useContentRailReducedMotion.d.ts.map +0 -1
- package/dist/patterns/content-rail/useContentRailReducedMotion.js.map +0 -1
- package/dist/patterns/post-card/PostCard.d.ts +0 -9
- package/dist/patterns/post-card/PostCard.d.ts.map +0 -1
- package/dist/patterns/post-card/PostCard.js +0 -138
- package/dist/patterns/post-card/PostCard.js.map +0 -1
- package/dist/patterns/post-card/index.d.ts +0 -3
- package/dist/patterns/post-card/index.d.ts.map +0 -1
- package/dist/patterns/post-card/index.js +0 -2
- package/dist/patterns/post-card/index.js.map +0 -1
- package/dist/patterns/post-card/meta.d.ts +0 -64
- package/dist/patterns/post-card/meta.d.ts.map +0 -1
- package/dist/patterns/post-card/meta.js +0 -66
- package/dist/patterns/post-card/meta.js.map +0 -1
- package/dist/patterns/post-card/types.d.ts +0 -64
- package/dist/patterns/post-card/types.d.ts.map +0 -1
- package/dist/patterns/post-card/types.js +0 -2
- package/dist/patterns/post-card/types.js.map +0 -1
- package/dist/patterns/product-card/ProductCard.d.ts +0 -5
- package/dist/patterns/product-card/ProductCard.d.ts.map +0 -1
- package/dist/patterns/product-card/ProductCard.js +0 -70
- package/dist/patterns/product-card/ProductCard.js.map +0 -1
- package/dist/patterns/product-card/index.d.ts +0 -3
- package/dist/patterns/product-card/index.d.ts.map +0 -1
- package/dist/patterns/product-card/index.js +0 -2
- package/dist/patterns/product-card/index.js.map +0 -1
- package/dist/patterns/product-card/meta.d.ts +0 -110
- package/dist/patterns/product-card/meta.d.ts.map +0 -1
- package/dist/patterns/product-card/meta.js +0 -110
- package/dist/patterns/product-card/meta.js.map +0 -1
- package/dist/patterns/product-card/types.d.ts +0 -23
- package/dist/patterns/product-card/types.d.ts.map +0 -1
- package/dist/patterns/product-card/types.js +0 -2
- package/dist/patterns/product-card/types.js.map +0 -1
- package/src/components/avatar/Avatar.tsx +0 -148
- package/src/components/avatar/index.ts +0 -3
- package/src/components/avatar/meta.ts +0 -10
- package/src/components/avatar/types.ts +0 -20
- package/src/components/avatar-group/AvatarGroup.tsx +0 -78
- package/src/components/avatar-group/index.ts +0 -2
- package/src/components/avatar-group/meta.ts +0 -10
- package/src/components/avatar-group/types.ts +0 -24
- package/src/components/badge/Badge.tsx +0 -34
- package/src/components/badge/index.ts +0 -2
- package/src/components/badge/meta.ts +0 -10
- package/src/components/badge/types.ts +0 -15
- package/src/components/button/Button.tsx +0 -43
- package/src/components/button/index.ts +0 -2
- package/src/components/button/meta.ts +0 -54
- package/src/components/button/resolveButtonThemeRecipe.ts +0 -41
- package/src/components/button/themeRecipeMeta.ts +0 -29
- package/src/components/button/types.ts +0 -15
- package/src/components/button-group/ButtonGroup.tsx +0 -109
- package/src/components/button-group/index.ts +0 -2
- package/src/components/button-group/meta.ts +0 -45
- package/src/components/button-group/types.ts +0 -15
- package/src/components/card/Card.tsx +0 -92
- package/src/components/card/index.ts +0 -2
- package/src/components/card/meta.ts +0 -51
- package/src/components/card/resolveCardThemeRecipe.ts +0 -33
- package/src/components/card/themeRecipeMeta.ts +0 -32
- package/src/components/card/types.ts +0 -19
- package/src/components/chip/Chip.tsx +0 -97
- package/src/components/chip/index.ts +0 -2
- package/src/components/chip/meta.ts +0 -10
- package/src/components/chip/resolveChipColors.ts +0 -75
- package/src/components/chip/types.ts +0 -29
- package/src/components/chip-group/ChipGroup.tsx +0 -74
- package/src/components/chip-group/index.ts +0 -2
- package/src/components/chip-group/meta.ts +0 -10
- package/src/components/chip-group/types.ts +0 -36
- package/src/components/data-table/DataTable.tsx +0 -408
- package/src/components/data-table/index.ts +0 -11
- package/src/components/data-table/meta.ts +0 -10
- package/src/components/data-table/types.ts +0 -57
- package/src/components/heading/Heading.tsx +0 -114
- package/src/components/heading/index.ts +0 -10
- package/src/components/heading/meta.ts +0 -82
- package/src/components/heading/resolveHeadingRecipe.test.ts +0 -292
- package/src/components/heading/resolveHeadingRecipe.ts +0 -191
- package/src/components/heading/resolveHeadingThemeRecipe.ts +0 -55
- package/src/components/heading/themeRecipeMeta.ts +0 -33
- package/src/components/heading/types.ts +0 -38
- package/src/components/icon/Icon.tsx +0 -21
- package/src/components/icon/index.ts +0 -2
- package/src/components/icon/meta.test.ts +0 -22
- package/src/components/icon-button/IconButton.tsx +0 -37
- package/src/components/icon-button/index.ts +0 -2
- package/src/components/icon-button/meta.ts +0 -10
- package/src/components/icon-button/types.ts +0 -16
- package/src/components/image/Image.tsx +0 -149
- package/src/components/image/index.ts +0 -2
- package/src/components/image/meta.ts +0 -25
- package/src/components/image/types.ts +0 -11
- package/src/components/media-card/MediaCard.tsx +0 -125
- package/src/components/media-card/index.ts +0 -2
- package/src/components/media-card/meta.ts +0 -10
- package/src/components/media-card/types.ts +0 -42
- package/src/components/metric-card/MetricCard.tsx +0 -82
- package/src/components/metric-card/index.ts +0 -2
- package/src/components/metric-card/meta.ts +0 -10
- package/src/components/metric-card/types.ts +0 -18
- package/src/components/splash-screen/SplashScreen.tsx +0 -98
- package/src/components/splash-screen/index.ts +0 -2
- package/src/components/splash-screen/meta.ts +0 -10
- package/src/components/splash-screen/types.ts +0 -18
- package/src/components/text/Text.tsx +0 -111
- package/src/components/text/index.ts +0 -9
- package/src/components/text/meta.ts +0 -74
- package/src/components/text/resolveTextRecipe.test.ts +0 -380
- package/src/components/text/resolveTextRecipe.ts +0 -214
- package/src/components/text/resolveTextThemeRecipe.ts +0 -48
- package/src/components/text/themeRecipeMeta.ts +0 -34
- package/src/components/text/types.ts +0 -41
- package/src/features/uploader/meta.ts +0 -11
- package/src/foundation/Box.tsx +0 -23
- package/src/foundation/Container.tsx +0 -27
- package/src/foundation/Divider.tsx +0 -27
- package/src/foundation/Grid.tsx +0 -23
- package/src/foundation/Stack.tsx +0 -23
- package/src/foundation/Surface.tsx +0 -30
- package/src/patterns/content-rail/ContentRail.test.ts +0 -44
- package/src/patterns/content-rail/ContentRail.tsx +0 -245
- package/src/patterns/content-rail/index.ts +0 -10
- package/src/patterns/content-rail/meta.ts +0 -133
- package/src/patterns/content-rail/resolveContentRailItemWidth.ts +0 -39
- package/src/patterns/content-rail/types.ts +0 -35
- package/src/patterns/content-rail/useContentRailReducedMotion.ts +0 -28
- package/src/patterns/post-card/PostCard.test.tsx +0 -11
- package/src/patterns/post-card/PostCard.tsx +0 -241
- package/src/patterns/post-card/index.ts +0 -8
- package/src/patterns/post-card/types.ts +0 -71
- package/src/patterns/product-card/ProductCard.test.tsx +0 -19
- package/src/patterns/product-card/ProductCard.tsx +0 -141
- package/src/patterns/product-card/index.ts +0 -2
- package/src/patterns/product-card/types.ts +0 -23
- /package/dist/{components/avatar → features/avatar/utils}/resolveAvatarInitials.d.ts +0 -0
- /package/dist/{components/avatar → features/avatar/utils}/resolveAvatarInitials.js +0 -0
- /package/dist/{components/button → features/button/utils}/themeRecipeMeta.d.ts +0 -0
- /package/dist/{components/card → features/card/utils}/resolveCardThemeRecipe.js +0 -0
- /package/dist/{components/card → features/card/utils}/themeRecipeMeta.d.ts +0 -0
- /package/dist/{components/card → features/card/utils}/themeRecipeMeta.js +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.d.ts +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.js +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailState.d.ts +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailState.js +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/useContentRailReducedMotion.js +0 -0
- /package/dist/{components/heading → features/typography/utils}/resolveHeadingThemeRecipe.js +0 -0
- /package/dist/{components/text → features/typography/utils}/resolveTextThemeRecipe.js +0 -0
- /package/src/{components/avatar → features/avatar/utils}/resolveAvatarInitials.test.ts +0 -0
- /package/src/{components/avatar → features/avatar/utils}/resolveAvatarInitials.ts +0 -0
- /package/src/{components/button → features/button/utils}/resolveButtonThemeRecipe.test.ts +0 -0
- /package/src/{patterns/post-card/meta.ts → features/card/postCardMeta.ts} +0 -0
- /package/src/{patterns/product-card/meta.ts → features/card/productCardMeta.ts} +0 -0
- /package/src/{components/card → features/card/utils}/resolveCardThemeRecipe.test.ts +0 -0
- /package/src/{components/icon/meta.ts → features/icon/iconMeta.ts} +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailItemWidth.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailState.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailState.ts +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*** Derives scalar bindings and normalized events from explicit component authoring schemas. */
|
|
2
|
+
export function createManifestBindings(props, events = {}) {
|
|
3
|
+
return {
|
|
4
|
+
props: Object.fromEntries(Object.entries(props)
|
|
5
|
+
.filter(([, schema]) => schema.type !== 'action')
|
|
6
|
+
.map(([key, schema]) => [
|
|
7
|
+
key,
|
|
8
|
+
{
|
|
9
|
+
label: schema.label ?? key,
|
|
10
|
+
acceptsFallback: true,
|
|
11
|
+
acceptsTransforms: true,
|
|
12
|
+
value: {
|
|
13
|
+
type: schema.type === 'boolean' || schema.type === 'number' || schema.type === 'array'
|
|
14
|
+
? schema.type
|
|
15
|
+
: schema.type === 'media' || schema.type === 'imageAsset'
|
|
16
|
+
? 'imageAsset'
|
|
17
|
+
: schema.type === 'spacing' || schema.type === 'radius'
|
|
18
|
+
? 'unknown'
|
|
19
|
+
: schema.type === 'enum' &&
|
|
20
|
+
schema.enum?.length &&
|
|
21
|
+
schema.enum.every((value) => typeof value === 'number')
|
|
22
|
+
? 'number'
|
|
23
|
+
: 'string',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
])),
|
|
27
|
+
events: Object.fromEntries(Object.entries(events).map(([key, event]) => [
|
|
28
|
+
key,
|
|
29
|
+
{
|
|
30
|
+
label: event.label,
|
|
31
|
+
payload: { eventType: event.eventType, fields: event.payloadFields ?? [] },
|
|
32
|
+
},
|
|
33
|
+
])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=createManifestBindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createManifestBindings.js","sourceRoot":"","sources":["../../src/utils/createManifestBindings.ts"],"names":[],"mappings":"AAIA,gGAAgG;AAChG,MAAM,UAAU,sBAAsB,CACpC,KAAiC,EACjC,SAAsC,EAAE;IAExC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;aAClB,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,QAAQ,CAAC;aAChD,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;YACtB,GAAG;YACH;gBACE,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,GAAG;gBAC1B,eAAe,EAAE,IAAI;gBACrB,iBAAiB,EAAE,IAAI;gBACvB,KAAK,EAAE;oBACL,IAAI,EACF,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,KAAK,OAAO;wBAC9E,CAAC,CAAC,MAAM,CAAC,IAAI;wBACb,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO,IAAI,MAAM,CAAC,IAAI,KAAK,YAAY;4BACvD,CAAC,CAAC,YAAY;4BACd,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ;gCACrD,CAAC,CAAC,SAAS;gCACX,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM;oCACpB,MAAM,CAAC,IAAI,EAAE,MAAM;oCACnB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;oCACzD,CAAC,CAAC,QAAQ;oCACV,CAAC,CAAC,QAAQ;iBACrB;aACF;SACF,CAAC,CACL;QACD,MAAM,EAAE,MAAM,CAAC,WAAW,CACxB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC;YAC3C,GAAG;YACH;gBACE,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,OAAO,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,aAAa,IAAI,EAAE,EAAE;aAC3E;SACF,CAAC,CACH;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { UiComponentBindingMeta } from '@ankhorage/contracts';\n\nimport type { ZoraComponentMeta } from '../metadata/types';\n\n/*** Derives scalar bindings and normalized events from explicit component authoring schemas. */\nexport function createManifestBindings(\n props: ZoraComponentMeta['props'],\n events: ZoraComponentMeta['events'] = {},\n): UiComponentBindingMeta {\n return {\n props: Object.fromEntries(\n Object.entries(props)\n .filter(([, schema]) => schema.type !== 'action')\n .map(([key, schema]) => [\n key,\n {\n label: schema.label ?? key,\n acceptsFallback: true,\n acceptsTransforms: true,\n value: {\n type:\n schema.type === 'boolean' || schema.type === 'number' || schema.type === 'array'\n ? schema.type\n : schema.type === 'media' || schema.type === 'imageAsset'\n ? 'imageAsset'\n : schema.type === 'spacing' || schema.type === 'radius'\n ? 'unknown'\n : schema.type === 'enum' &&\n schema.enum?.length &&\n schema.enum.every((value) => typeof value === 'number')\n ? 'number'\n : 'string',\n },\n },\n ]),\n ),\n events: Object.fromEntries(\n Object.entries(events).map(([key, event]) => [\n key,\n {\n label: event.label,\n payload: { eventType: event.eventType, fields: event.payloadFields ?? [] },\n },\n ]),\n ),\n };\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ZoraComponentMetaRegistry } from '../metadata/types';
|
|
2
|
+
/*** Completes feature bindings while preserving each component's explicit value contracts. */
|
|
3
|
+
export declare function finalizeFeatureMetadata(registry: ZoraComponentMetaRegistry): ZoraComponentMetaRegistry;
|
|
4
|
+
//# sourceMappingURL=finalizeFeatureMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizeFeatureMetadata.d.ts","sourceRoot":"","sources":["../../src/utils/finalizeFeatureMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAGnE,8FAA8F;AAC9F,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,yBAAyB,GAClC,yBAAyB,CAkB3B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FEATURE_MANIFEST_ELEMENTS } from '../constants';
|
|
2
|
+
import { createManifestBindings } from './createManifestBindings';
|
|
3
|
+
/*** Completes feature bindings while preserving each component's explicit value contracts. */
|
|
4
|
+
export function finalizeFeatureMetadata(registry) {
|
|
5
|
+
const names = new Set(Object.values(FEATURE_MANIFEST_ELEMENTS).flat());
|
|
6
|
+
return Object.fromEntries(Object.entries(registry).map(([name, meta]) => {
|
|
7
|
+
if (!names.has(name))
|
|
8
|
+
return [name, meta];
|
|
9
|
+
const bindings = createManifestBindings(meta.props, meta.events);
|
|
10
|
+
return [
|
|
11
|
+
name,
|
|
12
|
+
{
|
|
13
|
+
...meta,
|
|
14
|
+
bindings: {
|
|
15
|
+
props: { ...bindings.props, ...meta.bindings?.props },
|
|
16
|
+
events: { ...bindings.events, ...meta.bindings?.events },
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=finalizeFeatureMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalizeFeatureMetadata.js","sourceRoot":"","sources":["../../src/utils/finalizeFeatureMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,8FAA8F;AAC9F,MAAM,UAAU,uBAAuB,CACrC,QAAmC;IAEnC,MAAM,KAAK,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5F,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE;QAC5C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC1C,MAAM,QAAQ,GAAG,sBAAsB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACjE,OAAO;YACL,IAAI;YACJ;gBACE,GAAG,IAAI;gBACP,QAAQ,EAAE;oBACR,KAAK,EAAE,EAAE,GAAG,QAAQ,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE;oBACrD,MAAM,EAAE,EAAE,GAAG,QAAQ,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE;iBACzD;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;AACJ,CAAC","sourcesContent":["import { FEATURE_MANIFEST_ELEMENTS } from '../constants';\nimport type { ZoraComponentMetaRegistry } from '../metadata/types';\nimport { createManifestBindings } from './createManifestBindings';\n\n/*** Completes feature bindings while preserving each component's explicit value contracts. */\nexport function finalizeFeatureMetadata(\n registry: ZoraComponentMetaRegistry,\n): ZoraComponentMetaRegistry {\n const names: ReadonlySet<string> = new Set(Object.values(FEATURE_MANIFEST_ELEMENTS).flat());\n return Object.fromEntries(\n Object.entries(registry).map(([name, meta]) => {\n if (!names.has(name)) return [name, meta];\n const bindings = createManifestBindings(meta.props, meta.events);\n return [\n name,\n {\n ...meta,\n bindings: {\n props: { ...bindings.props, ...meta.bindings?.props },\n events: { ...bindings.events, ...meta.bindings?.events },\n },\n },\n ];\n }),\n );\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
package/src/audit.test.ts
CHANGED
|
@@ -136,19 +136,19 @@ describe('Plan 5 audit — product-facing src imports ZORA foundation, not Surfa
|
|
|
136
136
|
join(SRC_ROOT, 'internal'),
|
|
137
137
|
// Explicit Surface primitive wrappers.
|
|
138
138
|
join(SRC_ROOT, 'components', 'checkbox', 'Checkbox.tsx'),
|
|
139
|
-
join(SRC_ROOT, '
|
|
140
|
-
join(SRC_ROOT, '
|
|
139
|
+
join(SRC_ROOT, 'features', 'icon', 'adapters', 'inbound', 'Icon.tsx'),
|
|
140
|
+
join(SRC_ROOT, 'features', 'button', 'adapters', 'inbound', 'IconButton.tsx'),
|
|
141
141
|
join(SRC_ROOT, 'components', 'modal', 'Modal.tsx'),
|
|
142
142
|
join(SRC_ROOT, 'components', 'textarea', 'Textarea.tsx'),
|
|
143
|
-
join(SRC_ROOT, '
|
|
143
|
+
join(SRC_ROOT, 'features', 'typography', 'adapters', 'inbound', 'Text.tsx'),
|
|
144
144
|
join(SRC_ROOT, 'components', 'form', 'FormField.tsx'),
|
|
145
145
|
join(SRC_ROOT, 'patterns', 'form-field', 'FormField.tsx'),
|
|
146
146
|
// Type-only imports that intentionally expose Surface-compatible prop specs.
|
|
147
147
|
join(SRC_ROOT, 'components', 'checkbox', 'types.ts'),
|
|
148
148
|
join(SRC_ROOT, 'components', 'form', 'types.ts'),
|
|
149
|
-
join(SRC_ROOT, '
|
|
149
|
+
join(SRC_ROOT, 'types', 'icon-button.ts'),
|
|
150
150
|
join(SRC_ROOT, 'components', 'tabs', 'types.ts'),
|
|
151
|
-
join(SRC_ROOT, '
|
|
151
|
+
join(SRC_ROOT, 'types', 'text.ts'),
|
|
152
152
|
join(SRC_ROOT, 'components', 'textarea', 'types.ts'),
|
|
153
153
|
join(SRC_ROOT, 'components', 'toolbar', 'types.ts'),
|
|
154
154
|
join(SRC_ROOT, 'patterns', 'form-field', 'types.ts'),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AppBar as SurfaceAppBar, type ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { IconButton } from '../../features/button/public';
|
|
5
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
6
|
+
import { Heading } from '../../features/typography/public';
|
|
7
|
+
import { Text } from '../../features/typography/public';
|
|
8
|
+
import { Inline } from '../../foundation';
|
|
5
9
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
10
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Heading } from '../heading';
|
|
8
|
-
import { IconButton } from '../icon-button';
|
|
9
|
-
import { Text } from '../text';
|
|
10
11
|
import type { AppBarMode, AppBarOverflowAction, AppBarProps } from './types';
|
|
11
12
|
|
|
12
13
|
const DEFAULT_CANCEL_ICON = { name: 'close-outline' } satisfies ButtonIconSpec;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Button } from '../../features/button/public';
|
|
4
|
+
import { Icon } from '../../features/icon/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
3
6
|
import { Inline } from '../../foundation';
|
|
4
7
|
import { resolveIconSize } from '../../internal/recipes';
|
|
5
8
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
9
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Button } from '../button';
|
|
8
|
-
import { Icon } from '../icon';
|
|
9
|
-
import { Text } from '../text';
|
|
10
10
|
import type { BreadcrumbItem, BreadcrumbsProps } from './types';
|
|
11
11
|
|
|
12
12
|
type BreadcrumbRenderItem =
|
|
@@ -2,9 +2,9 @@ import { Checkbox } from '@ankhorage/surface';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Stack } from '../../
|
|
5
|
+
import { Stack } from '../../features/layout/public';
|
|
6
|
+
import { Text } from '../../features/typography/public';
|
|
6
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Text } from '../text';
|
|
8
8
|
import type { CheckboxGroupOption, CheckboxGroupProps } from './types';
|
|
9
9
|
|
|
10
10
|
function CheckboxGroupInner<TValue extends string>({
|
|
@@ -3,8 +3,14 @@ import { join } from 'node:path';
|
|
|
3
3
|
|
|
4
4
|
import { describe, expect, it } from 'bun:test';
|
|
5
5
|
|
|
6
|
-
const textSource = readFileSync(
|
|
7
|
-
|
|
6
|
+
const textSource = readFileSync(
|
|
7
|
+
join(import.meta.dir, '../features/typography/adapters/inbound/Text.tsx'),
|
|
8
|
+
'utf8',
|
|
9
|
+
);
|
|
10
|
+
const headingSource = readFileSync(
|
|
11
|
+
join(import.meta.dir, '../features/typography/adapters/inbound/Heading.tsx'),
|
|
12
|
+
'utf8',
|
|
13
|
+
);
|
|
8
14
|
|
|
9
15
|
describe('content fallback ownership', () => {
|
|
10
16
|
it('keeps Text free of translation context coupling', () => {
|
|
@@ -2,10 +2,10 @@ import { Field } from '@ankhorage/surface';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import { useBottomSheet } from '../../features/bottom-sheet/public';
|
|
5
|
-
import {
|
|
5
|
+
import { Button } from '../../features/button/public';
|
|
6
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
7
|
+
import { Text } from '../../features/typography/public';
|
|
6
8
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Button } from '../button';
|
|
8
|
-
import { Text } from '../text';
|
|
9
9
|
import type { DatePickerProps } from './types';
|
|
10
10
|
|
|
11
11
|
const WEEKDAY_LABELS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] as const;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Box, Stack } from '../../
|
|
3
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
4
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
5
|
import { FormActions } from './FormActions';
|
|
6
6
|
import { FormError } from './FormError';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Button } from '../../features/button/public';
|
|
4
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
4
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { Button } from '../button';
|
|
6
6
|
import type { FormActionsProps } from './types';
|
|
7
7
|
|
|
8
8
|
function FormActionsInner({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Box } from '../../
|
|
3
|
+
import { Box } from '../../features/layout/public';
|
|
4
|
+
import { Text } from '../../features/typography/public';
|
|
4
5
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
5
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import { Text } from '../text';
|
|
7
7
|
import type { FormErrorProps } from './types';
|
|
8
8
|
|
|
9
9
|
function FormErrorInner({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Field } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Stack } from '../../
|
|
4
|
+
import { Stack } from '../../features/layout/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
5
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
7
|
import { Input } from '../input';
|
|
7
|
-
import { Text } from '../text';
|
|
8
8
|
import type { FormFieldConfig, FormFieldControlProps, FormFieldProps } from './types';
|
|
9
9
|
import { hasRequiredRule } from './validation';
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Box } from '../../
|
|
3
|
+
import { Box } from '../../features/layout/public';
|
|
4
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
5
|
import { useGradientRenderer } from './GradientRendererContext';
|
|
6
6
|
import type { GradientProps } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import type { BoxProps } from '../../
|
|
4
|
+
import type { BoxProps } from '../../features/layout/public';
|
|
5
5
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
6
6
|
|
|
7
7
|
export type GradientColor = string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as Surface from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
+
import { IconButton } from '../../features/button/public';
|
|
4
5
|
import { resolveIconSize } from '../../internal/recipes';
|
|
5
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { IconButton } from '../icon-button';
|
|
8
8
|
import type { InputProps } from './types';
|
|
9
9
|
|
|
10
10
|
function InputInner({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Menu as SurfaceMenu, type MenuAction as SurfaceMenuAction } from '@ankhorage/surface';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { Icon } from '../../features/icon/public';
|
|
5
|
+
import { Box } from '../../features/layout/public';
|
|
5
6
|
import { resolveIconSize } from '../../internal/recipes';
|
|
6
7
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
7
8
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
8
|
-
import { Icon } from '../icon';
|
|
9
9
|
import type { MenuAction, MenuProps } from './types';
|
|
10
10
|
|
|
11
11
|
function renderActionLeading(action: MenuAction, iconColor: string) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Modal as SurfaceModal } from '@ankhorage/surface';
|
|
2
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
3
3
|
|
|
4
|
-
import { Box, Stack } from '../../
|
|
4
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
5
|
+
import { Heading } from '../../features/typography/public';
|
|
6
|
+
import { Text } from '../../features/typography/public';
|
|
5
7
|
import { resolveDialogWidth } from '../../internal/recipes';
|
|
6
8
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Heading } from '../heading';
|
|
8
|
-
import { Text } from '../text';
|
|
9
9
|
import type { ModalProps } from './types';
|
|
10
10
|
|
|
11
11
|
function useStableCallback(callback: (() => void) | undefined): (() => void) | undefined {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Button } from '../../features/button/public';
|
|
4
|
+
import { Stack } from '../../features/layout/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
4
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { Button } from '../button';
|
|
6
|
-
import { Text } from '../text';
|
|
7
7
|
import type { PaginationProps } from './types';
|
|
8
8
|
|
|
9
9
|
type PaginationItem = number | 'ellipsis';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Box } from '../../
|
|
3
|
+
import { Box } from '../../features/layout/public';
|
|
4
4
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
5
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
6
|
import { resolveProgressFraction } from './resolveProgressFraction';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet, View } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import { Stack } from '../../
|
|
4
|
+
import { Stack } from '../../features/layout/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
5
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Text } from '../text';
|
|
8
8
|
import { resolveProgressFraction } from './resolveProgressFraction';
|
|
9
9
|
import { resolveProgressRingGeometry } from './resolveProgressRingGeometry';
|
|
10
10
|
import { type ProgressRingProps, resolveProgressRole } from './types';
|
|
@@ -2,10 +2,10 @@ import { Radio } from '@ankhorage/surface';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { StyleSheet, View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Stack } from '../../
|
|
5
|
+
import { Stack } from '../../features/layout/public';
|
|
6
|
+
import { Text } from '../../features/typography/public';
|
|
6
7
|
import { useZoraThemeRecipe } from '../../theme/useZoraThemeRecipe';
|
|
7
8
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
8
|
-
import { Text } from '../text';
|
|
9
9
|
import { RadioOptionControl } from './RadioOptionControl';
|
|
10
10
|
import { resolveRadioGroupThemeRecipe } from './resolveRadioGroupThemeRecipe';
|
|
11
11
|
import type { RadioGroupProps } from './types';
|
|
@@ -2,8 +2,8 @@ import { useTheme } from '@ankhorage/surface';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Platform, Pressable, StyleSheet, View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Icon } from '
|
|
6
|
-
import { Text } from '
|
|
5
|
+
import { Icon } from '../../features/icon/public';
|
|
6
|
+
import { Text } from '../../features/typography/public';
|
|
7
7
|
import {
|
|
8
8
|
handleRadioOptionKeyDown,
|
|
9
9
|
type RadioOptionKeyboardTarget,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RadioProps as SurfaceRadioProps } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
|
+
import type { IconProps } from '../../features/icon/public';
|
|
4
5
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
5
|
-
import type { IconProps } from '../icon';
|
|
6
6
|
|
|
7
7
|
export interface RadioProps extends ZoraBaseProps, Omit<SurfaceRadioProps, 'mode' | 'themeId'> {}
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { Icon } from '../../features/icon/public';
|
|
3
4
|
import { Inline } from '../../foundation';
|
|
4
5
|
import { resolveIconSize } from '../../internal/recipes';
|
|
5
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Icon } from '../icon';
|
|
8
8
|
import { resolveRatingSegments } from './resolveRatingSegments';
|
|
9
9
|
import { type RatingProps, resolveRatingRole } from './types';
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ import { Picker } from '@react-native-picker/picker';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
4
|
|
|
5
|
-
import { Box } from '../../
|
|
5
|
+
import { Box } from '../../features/layout/public';
|
|
6
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
7
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
8
8
|
import type { SelectProps } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Box } from '../../
|
|
3
|
+
import { Box } from '../../features/layout/public';
|
|
4
4
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
5
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
6
|
import type { SkeletonProps } from './types';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { ButtonGroup } from '../../features/button/public';
|
|
4
|
+
import { Card } from '../../features/card/public';
|
|
5
|
+
import { Stack } from '../../features/layout/public';
|
|
4
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { ButtonGroup } from '../button-group';
|
|
6
|
-
import { Card } from '../card';
|
|
7
7
|
import { Skeleton } from './Skeleton';
|
|
8
8
|
import { SkeletonText } from './SkeletonText';
|
|
9
9
|
import type { SkeletonCardProps } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Stack } from '../../
|
|
3
|
+
import { Stack } from '../../features/layout/public';
|
|
4
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
5
|
import { Skeleton } from './Skeleton';
|
|
6
6
|
import type { SkeletonTextProps } from './types';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Button } from '../../features/button/public';
|
|
4
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
4
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
5
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import { Button } from '../button';
|
|
7
|
-
import { Text } from '../text';
|
|
8
8
|
import type { TabItem, TabsProps } from './types';
|
|
9
9
|
|
|
10
10
|
function TabsInner<TValue extends string = string>({
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { ScrollView, StyleSheet } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import { useBottomSheet } from '../../features/bottom-sheet/public';
|
|
6
|
-
import {
|
|
6
|
+
import { Button } from '../../features/button/public';
|
|
7
|
+
import { Stack } from '../../features/layout/public';
|
|
8
|
+
import { Text } from '../../features/typography/public';
|
|
7
9
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
8
|
-
import { Button } from '../button';
|
|
9
|
-
import { Text } from '../text';
|
|
10
10
|
import type { TimePickerProps } from './types';
|
|
11
11
|
|
|
12
12
|
const MINUTES_PER_DAY = 24 * 60;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Card } from '../../features/card/public';
|
|
4
|
+
import { Stack } from '../../features/layout/public';
|
|
4
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { Card } from '../card';
|
|
6
6
|
import type { ToolbarProps } from './types';
|
|
7
7
|
|
|
8
8
|
function ToolbarInner({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
import { IconButton } from '../../features/button/public';
|
|
3
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
-
import { IconButton } from '../icon-button';
|
|
5
5
|
import type { ToolbarActionProps } from './types';
|
|
6
6
|
|
|
7
7
|
function ToolbarActionInner({
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const COMPONENT_THEME_AUTHORING = {
|
|
2
|
+
authority: 'theme',
|
|
3
|
+
scope: 'component',
|
|
4
|
+
allowInstanceOverride: true,
|
|
5
|
+
} as const;
|
|
6
|
+
|
|
7
|
+
export const FEATURE_MANIFEST_ELEMENTS = {
|
|
8
|
+
surface: ['Surface'],
|
|
9
|
+
avatar: ['Avatar', 'AvatarGroup'],
|
|
10
|
+
badge: ['Badge'],
|
|
11
|
+
card: ['Card', 'MediaCard', 'MetricCard', 'PostCard', 'ProductCard'],
|
|
12
|
+
chip: ['Chip', 'ChipGroup'],
|
|
13
|
+
'data-table': ['DataTable'],
|
|
14
|
+
button: ['Button', 'IconButton', 'ButtonGroup'],
|
|
15
|
+
icon: ['Icon'],
|
|
16
|
+
image: ['Image'],
|
|
17
|
+
layout: ['Box', 'Container', 'ContentRail', 'Divider', 'Grid', 'Stack'],
|
|
18
|
+
list: ['FlatList', 'SectionList'],
|
|
19
|
+
'splash-screen': ['SplashScreen'],
|
|
20
|
+
typography: ['Heading', 'Text'],
|
|
21
|
+
uploader: ['Uploader'],
|
|
22
|
+
'bottom-sheet': ['BottomSheet'],
|
|
23
|
+
} as const;
|
|
@@ -37,7 +37,16 @@ function mergeBindableMeta(
|
|
|
37
37
|
Object.entries(componentMeta).map(([componentName, meta]) => [
|
|
38
38
|
componentName,
|
|
39
39
|
bindingsByComponent.get(componentName)
|
|
40
|
-
? {
|
|
40
|
+
? {
|
|
41
|
+
...meta,
|
|
42
|
+
bindings: {
|
|
43
|
+
props: { ...bindingsByComponent.get(componentName)?.props, ...meta.bindings?.props },
|
|
44
|
+
events: {
|
|
45
|
+
...bindingsByComponent.get(componentName)?.events,
|
|
46
|
+
...meta.bindings?.events,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
}
|
|
41
50
|
: meta,
|
|
42
51
|
]),
|
|
43
52
|
);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { expect, test } from 'bun:test';
|
|
2
|
+
|
|
3
|
+
import { FEATURE_MANIFEST_ELEMENTS } from './constants';
|
|
4
|
+
import { ZORA_CORE_PLUGIN_METADATA } from './corePluginMetadata';
|
|
5
|
+
import { ZORA_COMPONENT_META } from './metadata/componentMeta';
|
|
6
|
+
|
|
7
|
+
test('every selected feature element is directly authorable through its canonical public facade', async () => {
|
|
8
|
+
const catalog = new Map(Object.entries(ZORA_COMPONENT_META));
|
|
9
|
+
for (const [family, names] of Object.entries(FEATURE_MANIFEST_ELEMENTS)) {
|
|
10
|
+
const source = await Bun.file(`src/features/${family}/public.ts`).text();
|
|
11
|
+
for (const name of names) {
|
|
12
|
+
const meta = catalog.get(name);
|
|
13
|
+
expect(meta?.directManifestNode, name).toBe(true);
|
|
14
|
+
expect(Object.keys(meta?.props ?? {}).length, name).toBeGreaterThan(0);
|
|
15
|
+
expect(source, name).toContain(name);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('interactive authoring retains state and event payload bindings after plugin composition', () => {
|
|
21
|
+
const meta = ZORA_CORE_PLUGIN_METADATA.componentMeta;
|
|
22
|
+
expect(meta.DataTable?.bindings?.props?.sort?.value.type).toBe('object');
|
|
23
|
+
expect(meta.DataTable?.bindings?.props?.rows?.value.type).toBe('array');
|
|
24
|
+
expect(meta.Uploader?.bindings?.props?.value?.value.type).toBe('object');
|
|
25
|
+
expect(meta.Uploader?.bindings?.events?.uploadRequest?.payload?.fields).toContainEqual({
|
|
26
|
+
path: 'asset',
|
|
27
|
+
type: 'object',
|
|
28
|
+
});
|
|
29
|
+
expect(meta.BottomSheet?.bindings?.props?.open?.value.type).toBe('boolean');
|
|
30
|
+
expect(meta.Heading?.bindings?.props?.level?.value.type).toBe('number');
|
|
31
|
+
expect(meta.Image?.bindings?.props?.radius?.value.type).toBe('unknown');
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test('authoring schemas omit layout and avatar options ignored by the underlying components', () => {
|
|
35
|
+
const meta = ZORA_CORE_PLUGIN_METADATA.componentMeta;
|
|
36
|
+
expect(meta.Divider?.props).not.toHaveProperty('width');
|
|
37
|
+
expect(meta.Container?.props).not.toHaveProperty('width');
|
|
38
|
+
expect(meta.AvatarGroup?.props.items?.itemSchema?.map(({ key }) => key)).not.toContain('size');
|
|
39
|
+
expect(meta.AvatarGroup?.props.items?.itemSchema?.map(({ key }) => key)).not.toContain('shape');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test('ContentRail accepts chips and all card elements and offers intrinsic-width scrolling', () => {
|
|
43
|
+
const rail = ZORA_COMPONENT_META.ContentRail;
|
|
44
|
+
for (const child of ['ChipGroup', ...FEATURE_MANIFEST_ELEMENTS.card])
|
|
45
|
+
expect(rail.allowedChildren).toContain(child);
|
|
46
|
+
expect(rail.props.itemSize?.enum).toContain('content');
|
|
47
|
+
expect(rail.props).not.toHaveProperty('stickyHeaderIndices');
|
|
48
|
+
});
|