Commit Graph

14016 Commits

Author SHA1 Message Date
Tanner Reits
95c5d1b86c fix: initial scroll must always be multiple of content offset 2024-10-15 17:35:47 -04:00
Tanner Reits
e26c8ff8ad fix: lol web APIs exist 2024-10-15 16:33:40 -04:00
Tanner Reits
7b67c26ba0 fix: math is hard 2024-10-15 16:26:20 -04:00
Tanner Reits
a75baa1f10 fix: button click scroll 2024-10-15 15:53:31 -04:00
Tanner Reits
7da0beb27f fancy color gradient 2024-10-11 16:44:21 -04:00
Tanner Reits
f171202ac7 fix segment right scroll 2024-10-11 15:51:47 -04:00
Tanner Reits
1bb7fe87f7 scroll end timing 2024-10-11 15:49:15 -04:00
Tanner Reits
9823e0d2a9 scroll segment view w/ indicator 2024-10-11 15:15:14 -04:00
Tanner Reits
26c2697830 disabled buttons 2024-10-11 15:11:26 -04:00
Tanner Reits
ca3e43bc3b transition indicator color 2024-10-11 13:13:34 -04:00
Tanner Reits
b8dd17eae7 support translation & width scaling 2024-10-11 12:47:19 -04:00
Brandy Carney
475de8b6c7 fix(segment-view): continue to search through segment contents for enabled 2024-10-10 12:04:03 -04:00
Brandy Carney
b94bec20de fix(segment): update segment content to disabled when button is 2024-10-09 18:05:17 -04:00
Brandy Carney
279300fd3e fix(segment): update segment view to scroll past disabled content 2024-10-08 17:35:14 -04:00
Brandy Carney
59e306bd6d test(segment-view): remove not disabled styles 2024-10-02 11:41:36 -04:00
Brandy Carney
641dc0b82a refactor(segment-content): use opacity for disabled content 2024-10-01 16:04:29 -04:00
Brandy Carney
e6547432e5 style: naming 2024-09-30 09:57:22 -04:00
Brandy Carney
c6ec156dcb chore: build 2024-09-30 09:51:19 -04:00
Tanner Reits
89d8e90ab7 fix(segment): scroll segment button into view if appropriate 2024-09-28 20:59:22 -04:00
Tanner Reits
ae2704fdc8 fix(segment): only handle events for correct instance 2024-09-28 20:33:48 -04:00
Tanner Reits
16c728b040 fix(segment): don't trigger scroll listener on segment button click 2024-09-28 20:29:03 -04:00
Tanner Reits
0fa5c99d99 fix(segment): handle change of direction scrolling 2024-09-27 18:34:19 -04:00
Tanner Reits
0a13ab449a fix(segment): clear transform styles on scroll end 2024-09-27 18:27:32 -04:00
Brandy Carney
cbee05e488 fix(segment): move indicator as a percentage of the width on scroll 2024-09-25 16:52:37 -04:00
Brandy Carney
bdc6933cf6 fix(segment): properly bound indicator transform for more than 2 contents 2024-09-25 15:50:39 -04:00
Brandy Carney
7fe1c094ec fix(segment-view): always check the scrollLeft against the initial to get scrollDistance 2024-09-25 15:16:54 -04:00
Brandy Carney
c7bae079c2 fix(segment-view): allow moving the indicator left on scroll without touch 2024-09-25 12:00:52 -04:00
Brandy Carney
1d645c9f3f style: lint 2024-09-24 19:55:25 -04:00
Brandy Carney
699ce9779f fix(segment): properly move the indicator when direction starts out on the left 2024-09-24 19:54:44 -04:00
Brandy Carney
d811221750 feat(segment): move indicator with scroll 2024-09-24 19:22:46 -04:00
Brandy Carney
798e725712 test: remove only 2024-09-24 11:38:13 -04:00
Brandy Carney
15b8b8fe68 chore(): add updated snapshots 2024-09-24 11:27:25 -04:00
Brandy Carney
522cbc6180 test(segment-view): add tests for disabled content scrolling 2024-09-24 11:27:13 -04:00
Brandy Carney
094d9a8553 test(segment-view): remove toolbars 2024-09-24 11:26:49 -04:00
Brandy Carney
b75650b2f7 fix(segment-view): don't query for disabled contents 2024-09-23 19:05:00 -04:00
Brandy Carney
f07a5b1039 fix(segment-view): split opacity by mode vars to match segment 2024-09-23 18:50:39 -04:00
Brandy Carney
5401e8dc24 test(segment-view): split out disabled segment view / content test 2024-09-23 18:44:14 -04:00
Brandy Carney
faa7065a70 feat(segment-content): add disabled prop and hide the content 2024-09-23 18:42:46 -04:00
Brandy Carney
d8f27d8f7b test(segment-view): update function for clearing segment value 2024-09-23 18:17:56 -04:00
Brandy Carney
4c0407ed52 test(segment-view): fix test 2024-09-23 16:23:37 -04:00
Brandy Carney
9103c403b2 docs(segment-view): document setContent method and add example 2024-09-23 16:18:37 -04:00
Brandy Carney
e6f76d53a9 style: lint 2024-09-23 15:57:52 -04:00
Brandy Carney
686d943b65 test(segment-view): add a test for the proper content being displayed 2024-09-23 15:56:33 -04:00
Brandy Carney
ba285306d6 fix(segment): set the view to the initial value without scrolling 2024-09-23 15:40:38 -04:00
Brandy Carney
44e8374791 fix(segment): only call updateSegmentView when gesture ends or button is clicked 2024-09-23 14:29:03 -04:00
Brandy Carney
678990d77a feat(segment-view): support disabled 2024-09-19 14:12:34 -04:00
Brandy Carney
44a0855844 refactor(segment): remove uneccessary function 2024-09-18 15:39:19 -04:00
Brandy Carney
00c378f0f5 refactor(segment): link the button and content with content-id and id 2024-09-18 15:32:48 -04:00
Brandy Carney
8af4d74846 style: lint 2024-09-17 14:17:45 -04:00
Brandy Carney
0324a78c2b feat(segment): add segment view and content components 2024-09-17 13:51:51 -04:00