-
-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
17 changes: 3 additions & 14 deletions
17
sites/docs/src/lib/content/api-reference/extended-types/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; |
1 change: 1 addition & 0 deletions
1
sites/docs/src/lib/content/api-reference/extended-types/pagination/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
16 changes: 16 additions & 0 deletions
16
...ib/content/api-reference/extended-types/pagination/pagination-page-item-prop.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
``` |