Commit ff7fade
authored
Carousel (#894)
* refactor: setup initial carousel testsw
* fix: carousel in CSR
* add expectation
* test: added test cases
* test: some additional test cases
* not draggable
* CSS scroll snapping on mobile
* threshold tests
* try simpler code refactor
* small docs
* grab index from inline
* improved examples
* use scorllLeft instead
* hacky impl
* fix: slide snapping
* better naming
* much simpler carousel
* fix: get proper array order
* account for slide margin
* updated correct index
* update with css scroll snapping
* simplify container
* get buttons working again
* setup for drag to do its own behavior
* get mouse working again
* correct indexes again
* it worksgit add .
* down to touch interacitons
* initial touch working
* finally workinggit add .
* add pagination
* carousel pagination
* first attempt at multiple slides per view
* update next button based on slidesPerView
* feat: keyboard navigation with pagination
* focus management from previous and next when out of slides
* bullets render based on slides in view
* add non-draggable example
* touch ups
* correct styles
* mouse dragging works on variable slide widths
* works on variable widths for index changes
* pagination works again
* correct scroll snapping again
* improve carousel a11y
* without scrollbar
* better styles and remove num slides in inline
* transitions sort of working
* center and end alignments
* more tests notes
* feat: looped support
* improved a11ty
* home and enter keys for pagination
* add home & end test cases w/ pagination
* add aria live polite
* add announcements to the content inside of the carousel and collapsible
* add inert based on slidesPerView
* tabpanel in pagination carousels
* add accessible name
* cleaner code
* initial working autoplay
* bound signals
* simplify bound signal
* improved autoplay and tabs aria
* add in aria-selected
* accessible name for autoplay player button
* respecting reduced motion
* autoplay looping working
* improved experience when consuming and also support for updating flex-basis automatically when slides per view change
* setup for the initial index
* more test cases
* multiple slides working on the server
* proper gap
* add correct initial index
* get initial indexes sort of working
* correct snapping again on mobile with initial index
* almost
* next and prev buttons should work
* improved styling
* upgrade to 1.7.2
* no caret
* add in caret only in root
* initial working
* initial working in all snap modes
* carousel docs
* add in changeset1 parent cf6d30e commit ff7fade
File tree
54 files changed
+2426
-698
lines changed- .changeset
- apps/website/src/routes/docs/headless/carousel
- examples
- cla-signs/v1
- packages
- kit-headless
- src
- components
- carousel
- collapsible
- utils
- kit-styled
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54 files changed
+2426
-698
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
Lines changed: 29 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
7 | 3 | | |
8 | 4 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 5 | + | |
| 6 | + | |
18 | 7 | | |
19 | 8 | | |
20 | 9 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 10 | | |
27 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
28 | 14 | | |
29 | 15 | | |
30 | 16 | | |
31 | 17 | | |
32 | 18 | | |
33 | 19 | | |
34 | 20 | | |
| 21 | + | |
35 | 22 | | |
36 | 23 | | |
37 | 24 | | |
| |||
40 | 27 | | |
41 | 28 | | |
42 | 29 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 30 | | |
48 | 31 | | |
49 | 32 | | |
| |||
53 | 36 | | |
54 | 37 | | |
55 | 38 | | |
56 | | - | |
57 | | - | |
| 39 | + | |
| 40 | + | |
58 | 41 | | |
59 | 42 | | |
60 | 43 | | |
61 | 44 | | |
62 | 45 | | |
63 | 46 | | |
64 | 47 | | |
65 | | - | |
| 48 | + | |
66 | 49 | | |
67 | 50 | | |
68 | 51 | | |
69 | 52 | | |
70 | 53 | | |
71 | 54 | | |
72 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments