-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: carousel now uses auto api * fix: rollup warning to properly export toggle group
- Loading branch information
1 parent
27474ea
commit 8545cba
Showing
9 changed files
with
144 additions
and
83 deletions.
There are no files selected for viewing
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
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
122 changes: 122 additions & 0 deletions
122
apps/website/src/routes/docs/headless/carousel/auto-api/api.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 |
---|---|---|
@@ -0,0 +1,122 @@ | ||
export const api = { | ||
carousel: [ | ||
{ | ||
bullet: [], | ||
}, | ||
{ | ||
inline: [], | ||
}, | ||
{ | ||
next: [], | ||
}, | ||
{ | ||
pagination: [], | ||
}, | ||
{ | ||
player: [], | ||
}, | ||
{ | ||
previous: [], | ||
}, | ||
{ | ||
root: [ | ||
{ | ||
CarouselRootProps: [ | ||
{ | ||
comment: 'The gap between slides', | ||
prop: 'gap?', | ||
type: 'number', | ||
}, | ||
{ | ||
comment: 'Number of slides to show at once', | ||
prop: 'slidesPerView?', | ||
type: 'number', | ||
}, | ||
{ | ||
comment: 'Whether the carousel is draggable', | ||
prop: 'draggable?', | ||
type: 'boolean', | ||
}, | ||
{ | ||
comment: 'Alignment of slides within the viewport', | ||
prop: 'align?', | ||
type: "'start' | 'center' | 'end'", | ||
}, | ||
{ | ||
comment: 'Whether the carousel should rewind', | ||
prop: 'rewind?', | ||
type: 'boolean', | ||
}, | ||
{ | ||
comment: 'Bind the selected index to a signal', | ||
prop: "'bind:selectedIndex'?", | ||
type: 'Signal<number>', | ||
}, | ||
{ | ||
comment: 'change the initial index of the carousel on render', | ||
prop: 'startIndex?', | ||
type: 'number', | ||
}, | ||
{ | ||
comment: | ||
'@deprecated Use bind:selectedIndex instead\n Bind the current slide index to a signal', | ||
prop: "'bind:currSlideIndex'?", | ||
type: 'Signal<number>', | ||
}, | ||
{ | ||
comment: 'Whether the carousel should autoplay', | ||
prop: "'bind:autoplay'?", | ||
type: 'Signal<boolean>', | ||
}, | ||
{ | ||
comment: 'the current progress of the carousel', | ||
prop: "'bind:progress'?", | ||
type: 'Signal<number>', | ||
}, | ||
{ | ||
comment: 'Time in milliseconds before the next slide plays during autoplay', | ||
prop: 'autoPlayIntervalMs?', | ||
type: 'number', | ||
}, | ||
{ | ||
comment: '@internal Total number of slides', | ||
prop: '_numSlides?', | ||
type: 'number', | ||
}, | ||
{ | ||
comment: '@internal Whether this carousel has a title', | ||
prop: '_isTitle?', | ||
type: 'boolean', | ||
}, | ||
{ | ||
comment: 'The sensitivity of the carousel dragging', | ||
prop: 'sensitivity?', | ||
type: '{', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
scroller: [], | ||
}, | ||
{ | ||
slide: [], | ||
}, | ||
{ | ||
step: [], | ||
}, | ||
{ | ||
stepper: [], | ||
}, | ||
{ | ||
title: [], | ||
}, | ||
{ | ||
'use-carousel': [], | ||
}, | ||
{ | ||
'use-scroller': [], | ||
}, | ||
], | ||
}; |
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
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
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
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
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,6 +1,2 @@ | ||
import { HToggleGroupItem } from './toggle-group-item'; | ||
import { HToggleGroupRoot } from './toggle-group-root'; | ||
export const ToggleGroup = { | ||
Root: HToggleGroupRoot, | ||
Item: HToggleGroupItem, | ||
}; | ||
export { HToggleGroupItem as Item } from './toggle-group-item'; | ||
export { HToggleGroupRoot as Root } from './toggle-group-root'; |
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