Skip to content

Commit

Permalink
some more
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 30, 2024
1 parent f633442 commit db27902
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
17 changes: 3 additions & 14 deletions sites/docs/src/lib/content/api-reference/extended-types/index.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import rawFocusProp from "$lib/content/api-reference/extended-types/focus-target.js?raw";
import rawPageItemProp from "$lib/content/api-reference/extended-types/page-item.js?raw";
import { DateValueProp, MonthProp } from "./shared/index.js";
import { DateValueProp } from "./shared/index.js";
import type { PropType } from "$lib/types/index.js";
import { PaginationPageItemProp } from "./pagination/index.js";

export const dateValueProp: PropType = {
type: "DateValue",
definition: DateValueProp,
};

export const monthsPropType: PropType = {
type: "Month[]",
definition: MonthProp,
};

export const focusProp: PropType = {
type: "FocusProp",
definition: rawFocusProp,
};

export const pageItemProp: PropType = {
type: "PageItem",
definition: rawPageItemProp,
definition: PaginationPageItemProp,
};
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as PaginationOnPageChangeProp } from "./pagination-on-page-change-prop.md";
export { default as PaginationChildSnippetProps } from "./pagination-child-snippet-props.md";
export { default as PaginationChildrenSnippetProps } from "./pagination-children-snippet-props.md";
export { default as PaginationPageItemProp } from "./pagination-page-item-prop.md";
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
```ts
export type Page = {
type: "page";
/** The page number the `PageItem` represents */
value: number;
};

export type Ellipsis = {
type: "ellipsis";
};

export type PageItem = (Page | Ellipsis) & {
/** Unique key for the item, for svelte #each block */
key: string;
};
```

0 comments on commit db27902

Please sign in to comment.