@ankhorage/zora 28.11.0 → 28.11.1
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 +8 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +2 -1
- package/dist/capabilities/index.js.map +3 -3
- package/dist/constants/authoring.d.ts +3 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +1 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/calendar/adapters/inbound/Calendar.d.ts.map +1 -1
- package/dist/features/calendar/adapters/inbound/Calendar.js +91 -7
- package/dist/features/calendar/adapters/inbound/Calendar.js.map +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
- package/dist/features/popover/popoverMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.d.ts +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.d.ts.map +1 -1
- package/dist/features/time-grid/adapters/inbound/TimeGrid.js +45 -22
- package/dist/features/time-grid/adapters/inbound/TimeGrid.js.map +1 -1
- package/dist/types/color.d.ts +3 -3
- package/dist/types/color.d.ts.map +1 -1
- package/dist/types/color.js.map +1 -1
- package/dist/types/time-grid.d.ts +9 -0
- package/dist/types/time-grid.d.ts.map +1 -1
- package/dist/types/time-grid.js.map +1 -1
- package/package.json +4 -4
- package/src/constants/authoring.ts +1 -0
- package/src/features/calendar/adapters/inbound/Calendar.interaction.test.tsx +65 -4
- package/src/features/calendar/adapters/inbound/Calendar.tsx +172 -22
- package/src/features/time-grid/adapters/inbound/TimeGrid.tsx +64 -21
- package/src/types/color.ts +3 -3
- package/src/types/time-grid.ts +9 -0
- package/web-dist/chunks/{Accordion-j3esnt3f.js → Accordion-95003ycq.js} +139 -22
- package/web-dist/chunks/{Accordion-91qf4q27.js → Accordion-gb3mfjmx.js} +42 -19
- package/web-dist/components/calendar/Calendar.js +2 -2
- package/web-dist/components/color-picker/ColorPicker.types-0.d.ts +3 -3
- package/web-dist/components/color-tone/ColorTone.types-0.d.ts +3 -3
- package/web-dist/components/color-wheel/ColorWheel.types-0.d.ts +1 -1
- package/web-dist/components/date-picker/DatePicker.js +2 -2
- package/web-dist/components/time-grid/TimeGrid.d.ts +1 -1
- package/web-dist/components/time-grid/TimeGrid.dependency-2.d.ts +13 -0
- package/web-dist/components/time-grid/TimeGrid.js +1 -1
- package/web-dist/components/time-grid/TimeGrid.types-0.d.ts +10 -0
- package/web-dist/manifest.json +6 -5
|
@@ -2,7 +2,7 @@ export declare const keyboardAvoidingViewMeta: {
|
|
|
2
2
|
readonly name: "KeyboardAvoidingView";
|
|
3
3
|
readonly category: "layout";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly blueprint: {
|
|
7
7
|
readonly label: "Keyboard avoiding view";
|
|
8
8
|
readonly defaultProps: {
|
|
@@ -2,7 +2,7 @@ export declare const gridMeta: {
|
|
|
2
2
|
readonly name: "Grid";
|
|
3
3
|
readonly category: "foundation";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
6
6
|
readonly props: {
|
|
7
7
|
readonly cols: {
|
|
8
8
|
readonly type: "number";
|
|
@@ -2,7 +2,7 @@ export declare const screenMeta: {
|
|
|
2
2
|
readonly name: "Screen";
|
|
3
3
|
readonly category: "layout";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ScreenSection", "ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
5
|
+
readonly allowedChildren: readonly ["ScreenSection", "ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
6
6
|
readonly blueprint: {
|
|
7
7
|
readonly label: "Screen";
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@ export declare const scrollViewMeta: {
|
|
|
2
2
|
readonly name: "ScrollView";
|
|
3
3
|
readonly category: "foundation";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly events: {
|
|
7
7
|
readonly refresh: {
|
|
8
8
|
readonly label: "Refresh";
|
|
@@ -2,7 +2,7 @@ export declare const viewMeta: {
|
|
|
2
2
|
readonly name: "View";
|
|
3
3
|
readonly category: "foundation";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField"];
|
|
6
6
|
readonly props: {
|
|
7
7
|
readonly direction: {
|
|
8
8
|
readonly type: "enum";
|
|
@@ -9,7 +9,7 @@ export declare const flatListMeta: {
|
|
|
9
9
|
readonly onEndReachedThreshold: 2;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
12
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
13
13
|
readonly description: "Virtualized children. Put node.repeat on this list for keyed data and item bindings; bind selection on the child Button/Card press event. Bound the list viewport and avoid nesting in a same-direction ScrollView.";
|
|
14
14
|
readonly events: {
|
|
15
15
|
readonly visibleItemsChange: {
|
|
@@ -111,6 +111,6 @@ export declare const sectionListMeta: {
|
|
|
111
111
|
};
|
|
112
112
|
readonly category: "layout";
|
|
113
113
|
readonly directManifestNode: true;
|
|
114
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
114
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
115
115
|
};
|
|
116
116
|
//# sourceMappingURL=sectionListMeta.d.ts.map
|
|
@@ -2,7 +2,7 @@ export declare const masterDetailMeta: {
|
|
|
2
2
|
readonly name: "MasterDetail";
|
|
3
3
|
readonly category: "layout";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly description: "Responsive visual projection for host-owned list and detail routes. Its first child is the master list and its second child is the detail pane. Place it as a direct child of a non-scrolling Screen. On expanded widths it displays both in independently bounded panes that scroll by default; set masterScroll or detailScroll to false to give a pane bounded, non-scrolling space for children with flex: 1 that own their scrolling; on compact widths it displays the pane selected by activePane.";
|
|
7
7
|
readonly blueprint: {
|
|
8
8
|
readonly label: "Master detail";
|
|
@@ -2,7 +2,7 @@ export declare const popoverMeta: {
|
|
|
2
2
|
readonly name: "Popover";
|
|
3
3
|
readonly category: "component";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly description: "Controlled anchored presentation with an ordinary manifest-content subtree.";
|
|
7
7
|
readonly blueprint: {
|
|
8
8
|
readonly label: "Popover";
|
|
@@ -121,11 +121,11 @@ export declare const readerMeta: {
|
|
|
121
121
|
readonly slots: {
|
|
122
122
|
readonly headerActions: {
|
|
123
123
|
readonly label: "Header actions";
|
|
124
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
124
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
125
125
|
};
|
|
126
126
|
readonly footerActions: {
|
|
127
127
|
readonly label: "Footer actions";
|
|
128
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
128
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
129
129
|
};
|
|
130
130
|
};
|
|
131
131
|
readonly props: {
|
|
@@ -1121,11 +1121,11 @@ export declare const ZORA_BINDABLE_COMPONENT_META: {
|
|
|
1121
1121
|
readonly slots: {
|
|
1122
1122
|
readonly headerActions: {
|
|
1123
1123
|
readonly label: "Header actions";
|
|
1124
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
1124
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
1125
1125
|
};
|
|
1126
1126
|
readonly footerActions: {
|
|
1127
1127
|
readonly label: "Footer actions";
|
|
1128
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
1128
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
1131
|
};
|
|
@@ -105,7 +105,7 @@ export declare const barcodeScannerViewMeta: {
|
|
|
105
105
|
readonly category: "pattern";
|
|
106
106
|
readonly description: "Composed scanner shell with permission, camera slot, scan overlay, and manual entry affordance.";
|
|
107
107
|
readonly directManifestNode: true;
|
|
108
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
108
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
109
109
|
readonly requirements: {
|
|
110
110
|
readonly permissions: {
|
|
111
111
|
readonly camera: true;
|
|
@@ -129,7 +129,7 @@ export declare const barcodeScannerViewMeta: {
|
|
|
129
129
|
};
|
|
130
130
|
readonly children: {
|
|
131
131
|
readonly label: "Scanner footer";
|
|
132
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
132
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
133
133
|
};
|
|
134
134
|
};
|
|
135
135
|
readonly props: {
|
|
@@ -2,7 +2,7 @@ export declare const screenSectionMeta: {
|
|
|
2
2
|
readonly name: "ScreenSection";
|
|
3
3
|
readonly category: "layout";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video", "ChessBoard", "OpeningBook", "Game", "GameField", "TabletopTable", "PokerTrainingTable"];
|
|
6
6
|
readonly blueprint: {
|
|
7
7
|
readonly label: "Screen section";
|
|
8
8
|
readonly defaultProps: {
|
|
@@ -2,7 +2,7 @@ export declare const surfaceMeta: {
|
|
|
2
2
|
readonly name: "Surface";
|
|
3
3
|
readonly category: "foundation";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly props: {
|
|
7
7
|
readonly variant: {
|
|
8
8
|
readonly type: "enum";
|
|
@@ -2,7 +2,7 @@ export declare const tabPanelMeta: {
|
|
|
2
2
|
readonly name: "TabPanel";
|
|
3
3
|
readonly category: "component";
|
|
4
4
|
readonly directManifestNode: true;
|
|
5
|
-
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
5
|
+
readonly allowedChildren: readonly ["ActivityIndicator", "Audio", "AuthScreen", "ForgotPasswordForm", "OAuthProviderButton", "OAuthProviderList", "OtpForm", "SignInForm", "SignUpForm", "Accordion", "Surface", "Avatar", "AvatarGroup", "Badge", "MediaCard", "MetricCard", "Chip", "ChipGroup", "DataTable", "DatePicker", "Dialog", "Pagination", "Rating", "SearchInput", "Tabs", "Toolbar", "Skeleton", "SkeletonCard", "SkeletonList", "SkeletonText", "IconButton", "Uploader", "MediaExplorer", "FileExplorer", "FlatList", "SectionList", "BottomSheet", "Popover", "Select", "ProductCard", "View", "ScrollView", "Grid", "Gradient", "Divider", "Text", "Heading", "Icon", "Image", "Hero", "KeyboardAvoidingView", "Link", "MasterDetail", "Button", "ButtonGroup", "RadioGroup", "ThemeModeToggle", "TextInput", "RichText", "TimePicker", "Timeline", "Form", "Card", "EmptyState", "SectionHeader", "PostCard", "ChatListItem", "MessageBubble", "Progress", "ProgressRing", "Reader", "ContentRail", "MissingElement", "Video"];
|
|
6
6
|
readonly description: "Content panel associated with one Tab value.";
|
|
7
7
|
readonly props: {
|
|
8
8
|
readonly value: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TimeGridProps } from '../../../../types/time-grid';
|
|
3
3
|
/*** Presents virtualized variable-height interval lanes through ZORA's shared GridView renderer. */
|
|
4
|
-
export declare function TimeGrid({ contentWidth, focusedIntervalId, height, interactionPolicy, intervals, lanes, onFocusedIntervalIdChange, onIntervalPress, onViewportChange, onVisibleIntervalIdsChange, overscanPixels, renderInterval, renderLaneLabel, revealPaddingPixels, selectedIntervalIds, testID, width, zoom, }: TimeGridProps): React.JSX.Element;
|
|
4
|
+
export declare function TimeGrid({ contentHeight: requestedContentHeight, contentWidth, focusedIntervalId, height, interactionPolicy, intervals, lanes, onFocusedIntervalIdChange, onIntervalPress, onViewportChange, onVisibleIntervalIdsChange, orientation, overscanPixels, renderInterval, renderLaneLabel, renderWorldLayer, revealPaddingPixels, selectedIntervalIds, testID, viewportControls, width, zoom, }: TimeGridProps): React.JSX.Element;
|
|
5
5
|
//# sourceMappingURL=TimeGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeGrid.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-grid/adapters/inbound/TimeGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimeGrid.d.ts","sourceRoot":"","sources":["../../../../../src/features/time-grid/adapters/inbound/TimeGrid.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMjE,oGAAoG;AACpG,wBAAgB,QAAQ,CAAC,EACvB,aAAa,EAAE,sBAAsB,EACrC,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,0BAA0B,EAC1B,WAA0B,EAC1B,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,mBAAwB,EACxB,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,IAAI,GACL,EAAE,aAAa,qBAkKf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLaneIntervalPlacement } from '@ankhorage/grid-view';
|
|
1
|
+
import { getLaneIntervalPlacement, getVisibleGridItems, } from '@ankhorage/grid-view';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Pressable, View } from 'react-native';
|
|
4
4
|
import { GridView } from '../../../grid-view/public.js';
|
|
@@ -6,7 +6,7 @@ import { resolveTimeGridNextFocusId } from '../../application/resolveTimeGridNex
|
|
|
6
6
|
import { resolveTimeGridVisibleIntervals } from '../../application/resolveTimeGridVisibleIntervals.js';
|
|
7
7
|
import { TimeGridKeyboardProxy } from './TimeGridKeyboardProxy.js';
|
|
8
8
|
/*** Presents virtualized variable-height interval lanes through ZORA's shared GridView renderer. */
|
|
9
|
-
export function TimeGrid({ contentWidth, focusedIntervalId, height, interactionPolicy, intervals, lanes, onFocusedIntervalIdChange, onIntervalPress, onViewportChange, onVisibleIntervalIdsChange, overscanPixels, renderInterval, renderLaneLabel, revealPaddingPixels, selectedIntervalIds = [], testID, width, zoom, }) {
|
|
9
|
+
export function TimeGrid({ contentHeight: requestedContentHeight, contentWidth, focusedIntervalId, height, interactionPolicy, intervals, lanes, onFocusedIntervalIdChange, onIntervalPress, onViewportChange, onVisibleIntervalIdsChange, orientation = 'horizontal', overscanPixels, renderInterval, renderLaneLabel, renderWorldLayer, revealPaddingPixels, selectedIntervalIds = [], testID, viewportControls, width, zoom, }) {
|
|
10
10
|
const scale = Math.max(0.01, zoom ?? 1);
|
|
11
11
|
const [scrollOffsets, setScrollOffsets] = React.useState(() => ({
|
|
12
12
|
offsetX: 0,
|
|
@@ -21,21 +21,27 @@ export function TimeGrid({ contentWidth, focusedIntervalId, height, interactionP
|
|
|
21
21
|
}), [height, scale, scrollOffsets, width]);
|
|
22
22
|
const intervalById = React.useMemo(() => new Map(intervals.map((interval) => [interval.id, interval])), [intervals]);
|
|
23
23
|
const selectedIds = React.useMemo(() => new Set(selectedIntervalIds), [selectedIntervalIds]);
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const laneExtent = React.useMemo(() => lanes.reduce((total, lane) => total + lane.height, 0), [lanes]);
|
|
25
|
+
const contentHeight = orientation === 'vertical' ? (requestedContentHeight ?? 0) : laneExtent;
|
|
26
|
+
const resolvedContentWidth = orientation === 'vertical' ? laneExtent : contentWidth;
|
|
27
|
+
const placements = React.useMemo(() => orientation === 'vertical'
|
|
28
|
+
? createVerticalPlacements(lanes, intervals)
|
|
29
|
+
: intervals.map((interval) => getLaneIntervalPlacement(lanes, interval)), [intervals, lanes, orientation]);
|
|
30
|
+
const visibleIntervals = React.useMemo(() => orientation === 'vertical'
|
|
31
|
+
? getVisibleGridItems(placements, viewport, overscanPixels)
|
|
32
|
+
: resolveTimeGridVisibleIntervals(lanes, intervals, viewport, overscanPixels), [intervals, lanes, orientation, overscanPixels, placements, viewport]);
|
|
26
33
|
const focusedPlacement = React.useMemo(() => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, [focusedIntervalId, intervals, lanes]);
|
|
34
|
+
return placements.find((interval) => interval.id === focusedIntervalId);
|
|
35
|
+
}, [focusedIntervalId, placements]);
|
|
30
36
|
const gridItems = React.useMemo(() => focusedPlacement && !visibleIntervals.some((interval) => interval.id === focusedPlacement.id)
|
|
31
37
|
? [...visibleIntervals, focusedPlacement]
|
|
32
38
|
: visibleIntervals, [focusedPlacement, visibleIntervals]);
|
|
33
39
|
const labelIntervals = React.useMemo(() => lanes.map((lane) => ({
|
|
34
|
-
extent:
|
|
40
|
+
extent: resolvedContentWidth,
|
|
35
41
|
id: `lane-label-${lane.id}`,
|
|
36
42
|
laneId: lane.id,
|
|
37
43
|
start: 0,
|
|
38
|
-
})), [
|
|
44
|
+
})), [lanes, resolvedContentWidth]);
|
|
39
45
|
const visibleLabels = React.useMemo(() => resolveTimeGridVisibleIntervals(lanes, labelIntervals, viewport, overscanPixels), [labelIntervals, lanes, overscanPixels, viewport]);
|
|
40
46
|
const handleViewportChange = React.useCallback((nextViewport) => {
|
|
41
47
|
setScrollOffsets((current) => current.offsetX === nextViewport.offsetX && current.offsetY === nextViewport.offsetY
|
|
@@ -44,18 +50,10 @@ export function TimeGrid({ contentWidth, focusedIntervalId, height, interactionP
|
|
|
44
50
|
onViewportChange?.(nextViewport);
|
|
45
51
|
}, [onViewportChange]);
|
|
46
52
|
const resolveNextFocusId = React.useCallback((intervalId, direction) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
offsetX: 0,
|
|
50
|
-
offsetY: 0,
|
|
51
|
-
pixelsPerUnitX: 1,
|
|
52
|
-
pixelsPerUnitY: 1,
|
|
53
|
-
width: contentWidth,
|
|
54
|
-
});
|
|
55
|
-
return resolveTimeGridNextFocusId(allIntervals, intervalId, direction);
|
|
56
|
-
}, [contentHeight, contentWidth, intervals, lanes]);
|
|
53
|
+
return resolveTimeGridNextFocusId(placements, intervalId, direction);
|
|
54
|
+
}, [placements]);
|
|
57
55
|
return (<View style={{ flexDirection: 'row', height, width }} testID={testID}>
|
|
58
|
-
{renderLaneLabel ? (<View accessibilityElementsHidden pointerEvents="none" style={{ height, overflow: 'hidden' }}>
|
|
56
|
+
{orientation === 'horizontal' && renderLaneLabel ? (<View accessibilityElementsHidden pointerEvents="none" style={{ height, overflow: 'hidden' }}>
|
|
59
57
|
{visibleLabels.map((placement) => {
|
|
60
58
|
const lane = lanes[placement.laneIndex];
|
|
61
59
|
if (!lane)
|
|
@@ -69,7 +67,7 @@ export function TimeGrid({ contentWidth, focusedIntervalId, height, interactionP
|
|
|
69
67
|
</View>);
|
|
70
68
|
})}
|
|
71
69
|
</View>) : null}
|
|
72
|
-
<GridView contentHeight={contentHeight} contentWidth={
|
|
70
|
+
<GridView contentHeight={contentHeight} contentWidth={resolvedContentWidth} focusedItemId={focusedIntervalId} height={height} interactionPolicy={interactionPolicy} items={gridItems} onViewportChange={handleViewportChange} onVisibleItemIdsChange={onVisibleIntervalIdsChange} overscanPixels={overscanPixels} renderItem={(placement) => {
|
|
73
71
|
const interval = intervalById.get(placement.id);
|
|
74
72
|
if (!interval)
|
|
75
73
|
return null;
|
|
@@ -89,9 +87,34 @@ export function TimeGrid({ contentWidth, focusedIntervalId, height, interactionP
|
|
|
89
87
|
{renderInterval(interval, selected)}
|
|
90
88
|
</Pressable>
|
|
91
89
|
</TimeGridKeyboardProxy>);
|
|
92
|
-
}} revealPaddingPixels={revealPaddingPixels} testID={testID === undefined ? undefined : `${testID}-viewport`} width={width} zoom={zoom}/>
|
|
90
|
+
}} revealPaddingPixels={revealPaddingPixels} renderWorldLayer={renderWorldLayer} testID={testID === undefined ? undefined : `${testID}-viewport`} viewportControls={viewportControls} width={width} zoom={zoom}/>
|
|
93
91
|
</View>);
|
|
94
92
|
}
|
|
93
|
+
/*** Maps date lanes and time intervals into a conventional vertical-time world. */
|
|
94
|
+
function createVerticalPlacements(lanes, intervals) {
|
|
95
|
+
const offsets = new Map();
|
|
96
|
+
lanes.reduce((offset, lane) => {
|
|
97
|
+
offsets.set(lane.id, offset);
|
|
98
|
+
return offset + lane.height;
|
|
99
|
+
}, 0);
|
|
100
|
+
return intervals.flatMap((interval) => {
|
|
101
|
+
const x = offsets.get(interval.laneId);
|
|
102
|
+
const laneIndex = lanes.findIndex((candidate) => candidate.id === interval.laneId);
|
|
103
|
+
const lane = lanes.find((candidate) => candidate.id === interval.laneId);
|
|
104
|
+
return x === undefined || lane === undefined || laneIndex < 0
|
|
105
|
+
? []
|
|
106
|
+
: [
|
|
107
|
+
{
|
|
108
|
+
...interval,
|
|
109
|
+
height: interval.extent,
|
|
110
|
+
laneIndex,
|
|
111
|
+
width: lane.height,
|
|
112
|
+
x,
|
|
113
|
+
y: interval.start,
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
});
|
|
117
|
+
}
|
|
95
118
|
/*** Maps desktop arrow keys to the platform-neutral interval navigation directions. */
|
|
96
119
|
function resolveKeyboardDirection(key) {
|
|
97
120
|
if (key === 'ArrowDown')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimeGrid.js","sourceRoot":"","sources":["../../../../../src/features/time-grid/adapters/inbound/TimeGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAqB,MAAM,sBAAsB,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,oGAAoG;AACpG,MAAM,UAAU,QAAQ,CAAC,EACvB,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EACd,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,GAAG,EAAE,EACxB,MAAM,EACN,KAAK,EACL,IAAI,GACU;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;IACxC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC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AK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,WAAW,CAAC,CAChE,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,CAAC,CAAC,IAAI,CAAC,EAEf;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED,uFAAuF;AACvF,SAAS,wBAAwB,CAAC,GAAW;IAC3C,IAAI,GAAG,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,GAAG,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,GAAG,KAAK,YAAY;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import { getLaneIntervalPlacement, type GridViewport } from '@ankhorage/grid-view';\nimport React from 'react';\nimport { Pressable, View } from 'react-native';\n\nimport type { TimeGridProps } from '../../../../types/time-grid';\nimport { GridView } from '../../../grid-view/public';\nimport { resolveTimeGridNextFocusId } from '../../application/resolveTimeGridNextFocusId';\nimport { resolveTimeGridVisibleIntervals } from '../../application/resolveTimeGridVisibleIntervals';\nimport { TimeGridKeyboardProxy } from './TimeGridKeyboardProxy';\n\n/*** Presents virtualized variable-height interval lanes through ZORA's shared GridView renderer. */\nexport function TimeGrid({\n contentWidth,\n focusedIntervalId,\n height,\n interactionPolicy,\n intervals,\n lanes,\n onFocusedIntervalIdChange,\n onIntervalPress,\n onViewportChange,\n onVisibleIntervalIdsChange,\n overscanPixels,\n renderInterval,\n renderLaneLabel,\n revealPaddingPixels,\n selectedIntervalIds = [],\n testID,\n width,\n zoom,\n}: TimeGridProps) {\n const scale = Math.max(0.01, zoom ?? 1);\n const [scrollOffsets, setScrollOffsets] = React.useState(() => ({\n offsetX: 0,\n offsetY: 0,\n }));\n const viewport = React.useMemo<GridViewport>(\n () => ({\n ...scrollOffsets,\n height,\n pixelsPerUnitX: scale,\n pixelsPerUnitY: scale,\n width,\n }),\n [height, scale, scrollOffsets, width],\n );\n const intervalById = React.useMemo(\n () => new Map(intervals.map((interval) => [interval.id, interval])),\n [intervals],\n );\n const selectedIds = React.useMemo(() => new Set(selectedIntervalIds), [selectedIntervalIds]);\n const contentHeight = React.useMemo(\n () => lanes.reduce((total, lane) => total + lane.height, 0),\n [lanes],\n );\n const visibleIntervals = React.useMemo(\n () => resolveTimeGridVisibleIntervals(lanes, intervals, viewport, overscanPixels),\n [intervals, lanes, overscanPixels, viewport],\n );\n const focusedPlacement = React.useMemo(() => {\n const focusedInterval = intervals.find((interval) => interval.id === focusedIntervalId);\n return focusedInterval ? getLaneIntervalPlacement(lanes, focusedInterval) : undefined;\n }, [focusedIntervalId, intervals, lanes]);\n const gridItems = React.useMemo(\n () =>\n focusedPlacement && !visibleIntervals.some((interval) => interval.id === focusedPlacement.id)\n ? [...visibleIntervals, focusedPlacement]\n : visibleIntervals,\n [focusedPlacement, visibleIntervals],\n );\n const labelIntervals = React.useMemo(\n () =>\n lanes.map((lane) => ({\n extent: contentWidth,\n id: `lane-label-${lane.id}`,\n laneId: lane.id,\n start: 0,\n })),\n [contentWidth, lanes],\n );\n const visibleLabels = React.useMemo(\n () => resolveTimeGridVisibleIntervals(lanes, labelIntervals, viewport, overscanPixels),\n [labelIntervals, lanes, overscanPixels, viewport],\n );\n\n const handleViewportChange = React.useCallback(\n (nextViewport: GridViewport) => {\n setScrollOffsets((current) =>\n current.offsetX === nextViewport.offsetX && current.offsetY === nextViewport.offsetY\n ? current\n : { offsetX: nextViewport.offsetX, offsetY: nextViewport.offsetY },\n );\n onViewportChange?.(nextViewport);\n },\n [onViewportChange],\n );\n\n const resolveNextFocusId = React.useCallback(\n (intervalId: string, direction: 'down' | 'left' | 'right' | 'up') => {\n const allIntervals = resolveTimeGridVisibleIntervals(lanes, intervals, {\n height: contentHeight,\n offsetX: 0,\n offsetY: 0,\n pixelsPerUnitX: 1,\n pixelsPerUnitY: 1,\n width: contentWidth,\n });\n return resolveTimeGridNextFocusId(allIntervals, intervalId, direction);\n },\n [contentHeight, contentWidth, intervals, lanes],\n );\n\n return (\n <View style={{ flexDirection: 'row', height, width }} testID={testID}>\n {renderLaneLabel ? (\n <View\n accessibilityElementsHidden\n pointerEvents=\"none\"\n style={{ height, overflow: 'hidden' }}\n >\n {visibleLabels.map((placement) => {\n const lane = lanes[placement.laneIndex];\n if (!lane) return null;\n return (\n <View\n key={lane.id}\n style={{\n height: placement.height * scale,\n position: 'absolute',\n top: (placement.y - viewport.offsetY) * scale,\n }}\n testID={testID === undefined ? undefined : `${testID}-lane-label-${lane.id}`}\n >\n {renderLaneLabel(lane)}\n </View>\n );\n })}\n </View>\n ) : null}\n <GridView\n contentHeight={contentHeight}\n contentWidth={contentWidth}\n focusedItemId={focusedIntervalId}\n height={height}\n interactionPolicy={interactionPolicy}\n items={gridItems}\n onViewportChange={handleViewportChange}\n onVisibleItemIdsChange={onVisibleIntervalIdsChange}\n overscanPixels={overscanPixels}\n renderItem={(placement) => {\n const interval = intervalById.get(placement.id);\n if (!interval) return null;\n const selected = selectedIds.has(interval.id);\n return (\n <TimeGridKeyboardProxy\n onKeyDown={(key) => {\n const direction = resolveKeyboardDirection(key);\n const nextId =\n direction === undefined ? undefined : resolveNextFocusId(interval.id, direction);\n if (!nextId) return false;\n onFocusedIntervalIdChange?.(nextId);\n return true;\n }}\n >\n <Pressable\n accessibilityLabel={`Interval ${interval.id}`}\n accessibilityRole=\"button\"\n disabled={interactionPolicy === 'passive'}\n onPress={() => {\n onFocusedIntervalIdChange?.(interval.id);\n onIntervalPress?.(interval);\n }}\n style={{ flex: 1 }}\n testID={testID === undefined ? undefined : `${testID}-interval-${interval.id}`}\n >\n {renderInterval(interval, selected)}\n </Pressable>\n </TimeGridKeyboardProxy>\n );\n }}\n revealPaddingPixels={revealPaddingPixels}\n testID={testID === undefined ? undefined : `${testID}-viewport`}\n width={width}\n zoom={zoom}\n />\n </View>\n );\n}\n\n/*** Maps desktop arrow keys to the platform-neutral interval navigation directions. */\nfunction resolveKeyboardDirection(key: string): 'down' | 'left' | 'right' | 'up' | undefined {\n if (key === 'ArrowDown') return 'down';\n if (key === 'ArrowLeft') return 'left';\n if (key === 'ArrowRight') return 'right';\n if (key === 'ArrowUp') return 'up';\n return undefined;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"TimeGrid.js","sourceRoot":"","sources":["../../../../../src/features/time-grid/adapters/inbound/TimeGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,mBAAmB,GAGpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,mDAAmD,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,oGAAoG;AACpG,MAAM,UAAU,QAAQ,CAAC,EACvB,aAAa,EAAE,sBAAsB,EACrC,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,0BAA0B,EAC1B,WAAW,GAAG,YAAY,EAC1B,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,GAAG,EAAE,EACxB,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,IAAI,GACU;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC;IACxC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,E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,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzE,OAAO,CAAC,KAAK,SAAS,IAAI,IAAI,KAAK,SAAS,IAAI,SAAS,GAAG,CAAC;YAC3D,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC;gBACE;oBACE,GAAG,QAAQ;oBACX,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,SAAS;oBACT,KAAK,EAAE,IAAI,CAAC,MAAM;oBAClB,CAAC;oBACD,CAAC,EAAE,QAAQ,CAAC,KAAK;iBAClB;aACF,CAAC;IACR,CAAC,CAAC,CAAC;AACL,CAAC;AAED,uFAAuF;AACvF,SAAS,wBAAwB,CAAC,GAAW;IAC3C,IAAI,GAAG,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,GAAG,KAAK,WAAW;QAAE,OAAO,MAAM,CAAC;IACvC,IAAI,GAAG,KAAK,YAAY;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import {\n getLaneIntervalPlacement,\n getVisibleGridItems,\n type GridLaneIntervalPlacement,\n type GridViewport,\n} from '@ankhorage/grid-view';\nimport React from 'react';\nimport { Pressable, View } from 'react-native';\n\nimport type { TimeGridProps } from '../../../../types/time-grid';\nimport { GridView } from '../../../grid-view/public';\nimport { resolveTimeGridNextFocusId } from '../../application/resolveTimeGridNextFocusId';\nimport { resolveTimeGridVisibleIntervals } from '../../application/resolveTimeGridVisibleIntervals';\nimport { TimeGridKeyboardProxy } from './TimeGridKeyboardProxy';\n\n/*** Presents virtualized variable-height interval lanes through ZORA's shared GridView renderer. */\nexport function TimeGrid({\n contentHeight: requestedContentHeight,\n contentWidth,\n focusedIntervalId,\n height,\n interactionPolicy,\n intervals,\n lanes,\n onFocusedIntervalIdChange,\n onIntervalPress,\n onViewportChange,\n onVisibleIntervalIdsChange,\n orientation = 'horizontal',\n overscanPixels,\n renderInterval,\n renderLaneLabel,\n renderWorldLayer,\n revealPaddingPixels,\n selectedIntervalIds = [],\n testID,\n viewportControls,\n width,\n zoom,\n}: TimeGridProps) {\n const scale = Math.max(0.01, zoom ?? 1);\n const [scrollOffsets, setScrollOffsets] = React.useState(() => ({\n offsetX: 0,\n offsetY: 0,\n }));\n const viewport = React.useMemo<GridViewport>(\n () => ({\n ...scrollOffsets,\n height,\n pixelsPerUnitX: scale,\n pixelsPerUnitY: scale,\n width,\n }),\n [height, scale, scrollOffsets, width],\n );\n const intervalById = React.useMemo(\n () => new Map(intervals.map((interval) => [interval.id, interval])),\n [intervals],\n );\n const selectedIds = React.useMemo(() => new Set(selectedIntervalIds), [selectedIntervalIds]);\n const laneExtent = React.useMemo(\n () => lanes.reduce((total, lane) => total + lane.height, 0),\n [lanes],\n );\n const contentHeight = orientation === 'vertical' ? (requestedContentHeight ?? 0) : laneExtent;\n const resolvedContentWidth = orientation === 'vertical' ? laneExtent : contentWidth;\n const placements = React.useMemo(\n () =>\n orientation === 'vertical'\n ? createVerticalPlacements(lanes, intervals)\n : intervals.map((interval) => getLaneIntervalPlacement(lanes, interval)),\n [intervals, lanes, orientation],\n );\n const visibleIntervals = React.useMemo(\n () =>\n orientation === 'vertical'\n ? getVisibleGridItems(placements, viewport, overscanPixels)\n : resolveTimeGridVisibleIntervals(lanes, intervals, viewport, overscanPixels),\n [intervals, lanes, orientation, overscanPixels, placements, viewport],\n );\n const focusedPlacement = React.useMemo(() => {\n return placements.find((interval) => interval.id === focusedIntervalId);\n }, [focusedIntervalId, placements]);\n const gridItems = React.useMemo(\n () =>\n focusedPlacement && !visibleIntervals.some((interval) => interval.id === focusedPlacement.id)\n ? [...visibleIntervals, focusedPlacement]\n : visibleIntervals,\n [focusedPlacement, visibleIntervals],\n );\n const labelIntervals = React.useMemo(\n () =>\n lanes.map((lane) => ({\n extent: resolvedContentWidth,\n id: `lane-label-${lane.id}`,\n laneId: lane.id,\n start: 0,\n })),\n [lanes, resolvedContentWidth],\n );\n const visibleLabels = React.useMemo(\n () => resolveTimeGridVisibleIntervals(lanes, labelIntervals, viewport, overscanPixels),\n [labelIntervals, lanes, overscanPixels, viewport],\n );\n\n const handleViewportChange = React.useCallback(\n (nextViewport: GridViewport) => {\n setScrollOffsets((current) =>\n current.offsetX === nextViewport.offsetX && current.offsetY === nextViewport.offsetY\n ? current\n : { offsetX: nextViewport.offsetX, offsetY: nextViewport.offsetY },\n );\n onViewportChange?.(nextViewport);\n },\n [onViewportChange],\n );\n\n const resolveNextFocusId = React.useCallback(\n (intervalId: string, direction: 'down' | 'left' | 'right' | 'up') => {\n return resolveTimeGridNextFocusId(placements, intervalId, direction);\n },\n [placements],\n );\n\n return (\n <View style={{ flexDirection: 'row', height, width }} testID={testID}>\n {orientation === 'horizontal' && renderLaneLabel ? (\n <View\n accessibilityElementsHidden\n pointerEvents=\"none\"\n style={{ height, overflow: 'hidden' }}\n >\n {visibleLabels.map((placement) => {\n const lane = lanes[placement.laneIndex];\n if (!lane) return null;\n return (\n <View\n key={lane.id}\n style={{\n height: placement.height * scale,\n position: 'absolute',\n top: (placement.y - viewport.offsetY) * scale,\n }}\n testID={testID === undefined ? undefined : `${testID}-lane-label-${lane.id}`}\n >\n {renderLaneLabel(lane)}\n </View>\n );\n })}\n </View>\n ) : null}\n <GridView\n contentHeight={contentHeight}\n contentWidth={resolvedContentWidth}\n focusedItemId={focusedIntervalId}\n height={height}\n interactionPolicy={interactionPolicy}\n items={gridItems}\n onViewportChange={handleViewportChange}\n onVisibleItemIdsChange={onVisibleIntervalIdsChange}\n overscanPixels={overscanPixels}\n renderItem={(placement) => {\n const interval = intervalById.get(placement.id);\n if (!interval) return null;\n const selected = selectedIds.has(interval.id);\n return (\n <TimeGridKeyboardProxy\n onKeyDown={(key) => {\n const direction = resolveKeyboardDirection(key);\n const nextId =\n direction === undefined ? undefined : resolveNextFocusId(interval.id, direction);\n if (!nextId) return false;\n onFocusedIntervalIdChange?.(nextId);\n return true;\n }}\n >\n <Pressable\n accessibilityLabel={`Interval ${interval.id}`}\n accessibilityRole=\"button\"\n disabled={interactionPolicy === 'passive'}\n onPress={() => {\n onFocusedIntervalIdChange?.(interval.id);\n onIntervalPress?.(interval);\n }}\n style={{ flex: 1 }}\n testID={testID === undefined ? undefined : `${testID}-interval-${interval.id}`}\n >\n {renderInterval(interval, selected)}\n </Pressable>\n </TimeGridKeyboardProxy>\n );\n }}\n revealPaddingPixels={revealPaddingPixels}\n renderWorldLayer={renderWorldLayer}\n testID={testID === undefined ? undefined : `${testID}-viewport`}\n viewportControls={viewportControls}\n width={width}\n zoom={zoom}\n />\n </View>\n );\n}\n\n/*** Maps date lanes and time intervals into a conventional vertical-time world. */\nfunction createVerticalPlacements(\n lanes: TimeGridProps['lanes'],\n intervals: TimeGridProps['intervals'],\n): readonly GridLaneIntervalPlacement[] {\n const offsets = new Map<string, number>();\n lanes.reduce((offset, lane) => {\n offsets.set(lane.id, offset);\n return offset + lane.height;\n }, 0);\n return intervals.flatMap((interval) => {\n const x = offsets.get(interval.laneId);\n const laneIndex = lanes.findIndex((candidate) => candidate.id === interval.laneId);\n const lane = lanes.find((candidate) => candidate.id === interval.laneId);\n return x === undefined || lane === undefined || laneIndex < 0\n ? []\n : [\n {\n ...interval,\n height: interval.extent,\n laneIndex,\n width: lane.height,\n x,\n y: interval.start,\n },\n ];\n });\n}\n\n/*** Maps desktop arrow keys to the platform-neutral interval navigation directions. */\nfunction resolveKeyboardDirection(key: string): 'down' | 'left' | 'right' | 'up' | undefined {\n if (key === 'ArrowDown') return 'down';\n if (key === 'ArrowLeft') return 'left';\n if (key === 'ArrowRight') return 'right';\n if (key === 'ArrowUp') return 'up';\n return undefined;\n}\n"]}
|
package/dist/types/color.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ColorHarmony, HexColor } from '@ankhorage/color-theory';
|
|
2
2
|
import type { ZoraBaseProps } from './base';
|
|
3
3
|
export type ColorPickerTab = 'grid' | 'wheel';
|
|
4
|
-
/** A consumer-owned OKLCH target from
|
|
4
|
+
/** A consumer-owned OKLCH target from a tone catalog. */
|
|
5
5
|
export interface ColorToneTarget {
|
|
6
6
|
readonly lightness: number;
|
|
7
7
|
readonly chroma: number;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Structural boundary for a
|
|
11
|
-
* neither the catalog nor its classifications.
|
|
10
|
+
* Structural boundary for a consumer-owned tone-pair entry. ZORA intentionally
|
|
11
|
+
* owns neither the catalog nor its classifications.
|
|
12
12
|
*/
|
|
13
13
|
export interface ColorToneDefinition {
|
|
14
14
|
readonly id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/types/color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/types/color.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;AAE9C,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;I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AO,GAAG,SAAS,CAAC,CAAC;CAC1E"}
|
package/dist/types/color.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/types/color.ts"],"names":[],"mappings":"","sourcesContent":["import type { ColorHarmony, HexColor } from '@ankhorage/color-theory';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type ColorPickerTab = 'grid' | 'wheel';\n\n/** A consumer-owned OKLCH target from
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/types/color.ts"],"names":[],"mappings":"","sourcesContent":["import type { ColorHarmony, HexColor } from '@ankhorage/color-theory';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type ColorPickerTab = 'grid' | 'wheel';\n\n/** A consumer-owned OKLCH target from a tone catalog. */\nexport interface ColorToneTarget {\n readonly lightness: number;\n readonly chroma: number;\n}\n\n/**\n * Structural boundary for a consumer-owned tone-pair entry. ZORA intentionally\n * owns neither the catalog nor its classifications.\n */\nexport interface ColorToneDefinition {\n readonly id: string;\n readonly accent: string;\n readonly accentTarget: ColorToneTarget;\n}\n\nexport interface ColorWheelSelection {\n readonly color: HexColor;\n readonly harmony: ColorHarmony | null;\n}\n\nexport interface ColorToneSelection {\n readonly toneId: string;\n readonly colors: readonly HexColor[];\n}\n\nexport interface ColorWheelProps extends ZoraBaseProps {\n readonly value: HexColor;\n /** Square stage side derived by the owning ColorPicker geometry. */\n readonly size?: number;\n readonly harmony?: ColorHarmony | null;\n /** Optional consumer-provided target applied consistently to wheel rendering and selection. */\n readonly toneTarget?: ColorToneTarget;\n readonly harmonies?: readonly ColorHarmony[];\n readonly onChange: (selection: ColorWheelSelection) => void;\n}\n\nexport interface ColorToneProps extends ZoraBaseProps {\n readonly tones: readonly ColorToneDefinition[];\n readonly selectionMode?: 'single' | 'multiple';\n readonly value: ColorToneSelection | null;\n readonly onChange: (selection: ColorToneSelection) => void;\n}\n\nexport interface ColorHueScaleProps extends ZoraBaseProps {\n readonly value: HexColor;\n readonly onChange: (color: HexColor) => void;\n}\n\nexport interface ColorPickerProps extends ZoraBaseProps {\n /** Enabled presentations, in Grid then Wheel order by default. */\n readonly tabs?: readonly ColorPickerTab[];\n /** The one authoritative selected colour. */\n readonly primaryColor: HexColor;\n /** Optional owner-provided harmony applied to both presentations. */\n readonly harmony?: ColorHarmony;\n /** Optional consumer-owned tone-family id. */\n readonly tone?: string;\n /** Consumer-owned tone catalogue; ZORA deliberately does not copy it. */\n readonly tones?: readonly ColorToneDefinition[];\n /** Requested outer logical width; it is clamped to the measured host width. */\n readonly width?: number;\n /** Requested outer logical height; it is clamped to the measured host height. */\n readonly height?: number;\n /** Receives whether the host must provide a larger or full-screen presentation. */\n readonly onInsufficientSpaceChange?: (insufficient: boolean) => void;\n /** Optional one-line contextual information rendered above the footer. */\n readonly infoLine?: string;\n /** Controlled active presentation. */\n readonly activeTab?: ColorPickerTab;\n /** Emits one canonical controlled selection payload. */\n readonly onValueChange: (value: {\n readonly primaryColor: HexColor;\n readonly harmony?: ColorHarmony;\n readonly tone?: string;\n }) => void;\n /** Notifies a consumer that a controlled active presentation must change. */\n readonly onActiveTabChange?: (tab: ColorPickerTab) => void;\n /** Requests dismissal from the owning Popover or BottomSheet presentation. */\n readonly onDismiss?: () => void;\n readonly hideTabListWhenSingle?: boolean;\n readonly wheel?: Omit<ColorWheelProps, 'onChange' | 'value' | 'harmony'>;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GridLane, GridLaneInterval, GridViewport } from '@ankhorage/grid-view';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { ZoraBaseProps } from './base';
|
|
4
|
+
import type { GridWorldLayerContext } from './grid-view';
|
|
4
5
|
/** An ordered, variable-height track rendered by the generic TimeGrid. */
|
|
5
6
|
export type TimeGridLane = GridLane;
|
|
6
7
|
/** A stable world-space interval rendered by the generic TimeGrid. */
|
|
@@ -13,8 +14,14 @@ export interface TimeGridProps extends ZoraBaseProps {
|
|
|
13
14
|
readonly lanes: readonly TimeGridLane[];
|
|
14
15
|
readonly intervals: readonly TimeGridInterval[];
|
|
15
16
|
readonly contentWidth: number;
|
|
17
|
+
/** Required for vertical time progression, where intervals extend down the grid. */
|
|
18
|
+
readonly contentHeight?: number;
|
|
16
19
|
readonly width: number;
|
|
17
20
|
readonly height: number;
|
|
21
|
+
/** Selects whether lane intervals progress across or down the shared GridView world. */
|
|
22
|
+
readonly orientation?: 'horizontal' | 'vertical';
|
|
23
|
+
/** Controls the shared viewport affordances for compositions that provide their own navigation. */
|
|
24
|
+
readonly viewportControls?: 'hidden' | 'visible';
|
|
18
25
|
readonly zoom?: number;
|
|
19
26
|
readonly overscanPixels?: number;
|
|
20
27
|
readonly focusedIntervalId?: string;
|
|
@@ -26,5 +33,7 @@ export interface TimeGridProps extends ZoraBaseProps {
|
|
|
26
33
|
readonly onVisibleIntervalIdsChange?: (ids: readonly string[]) => void;
|
|
27
34
|
readonly renderInterval: (interval: TimeGridInterval, selected: boolean) => React.ReactNode;
|
|
28
35
|
readonly renderLaneLabel?: (lane: TimeGridLane) => React.ReactNode;
|
|
36
|
+
/** Draws owner-defined geometry behind virtualized intervals without duplicating GridView. */
|
|
37
|
+
readonly renderWorldLayer?: (layer: GridWorldLayerContext) => React.ReactNode;
|
|
29
38
|
}
|
|
30
39
|
//# sourceMappingURL=time-grid.d.ts.map
|