Skip to content

Conversation

@antoine4livre
Copy link
Contributor

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

The Indexable primitive provides a robust index management system for components that need to navigate between multiple items. It offers methods to move between indices (goNext(), goPrev(), goTo()), supports different navigation modes (normal, infinite loop, alternate), and emits events when the index changes. It's ideal for building components like sliders, carousels, tabs, or any component that needs to track and navigate through a collection of items.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.
  • I have updated the changelog.

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Export Size

@studiometa/ui

Name Size Diff
Indexable 926 B +926 B (+100.00%) πŸ”Ί
withIndex 882 B +882 B (+100.00%) πŸ”Ί
Unchanged

@studiometa/ui

Name Size Diff
AbstractFrameTrigger 1.74 kB -
AbstractPrefetch 366 B -
AbstractScrollAnimation 3.56 kB -
AbstractSliderChild 600 B -
Accordion 1.77 kB -
AccordionItem 1.75 kB -
Action 1.11 kB -
AnchorNav 3.85 kB -
AnchorNavLink 3.74 kB -
AnchorNavTarget 125 B -
AnchorScrollTo 2.53 kB -
animationScrollWithEase 648 B -
CircularMarquee 550 B -
Cursor 650 B -
DataBind 697 B -
DataComputed 856 B -
DataEffect 837 B -
DataModel 780 B -
Draggable 1.64 kB -
Fetch 2.34 kB -
Figure 1.72 kB -
FigureShopify 1.98 kB -
FigureTwicpics 2.26 kB -
FigureVideo 1.87 kB -
FigureVideoTwicpics 2.44 kB -
Frame 3.47 kB -
FrameAnchor 1.84 kB -
FrameForm 1.92 kB -
FrameLoader 1.45 kB -
FrameTarget 1.75 kB -
FrameTriggerLoader 1.46 kB -
Hoverable 953 B -
LargeText 713 B -
LazyInclude 322 B -
Menu 2.33 kB -
MenuBtn 140 B -
MenuList 1.9 kB -
Modal 1.99 kB -
ModalWithTransition 2.09 kB -
Panel 2.38 kB -
PrefetchWhenOver 408 B -
PrefetchWhenVisible 417 B -
ScrollAnimation 3.62 kB -
ScrollAnimationChild 3.75 kB -
ScrollAnimationChildWithEase 4.3 kB -
ScrollAnimationParent 3.8 kB -
ScrollAnimationWithEase 4.16 kB -
ScrollReveal 1.63 kB -
Sentinel 129 B -
Slider 2.3 kB -
SliderBtn 817 B -
SliderCount 650 B -
SliderDots 1.86 kB -
SliderDrag 269 B -
SliderItem 998 B -
SliderProgress 961 B -
Sticky 771 B -
Tabs 1.38 kB -
Target 86 B -
Transition 1.41 kB -
withDeprecation 166 B -
withTransition 1.39 kB -

@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 52.32%. Comparing base (c1e03eb) to head (6200a2f).

❗ There is a different number of reports uploaded between BASE (c1e03eb) and HEAD (6200a2f). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (c1e03eb) HEAD (6200a2f)
unittests 5 4
Additional details and impacted files
@@              Coverage Diff               @@
##             develop     #491       +/-   ##
==============================================
- Coverage      71.02%   52.32%   -18.71%     
  Complexity        20       20               
==============================================
  Files             74        4       -70     
  Lines           1850       86     -1764     
  Branches         332        0      -332     
==============================================
- Hits            1314       45     -1269     
+ Misses           473       41      -432     
+ Partials          63        0       -63     
Flag Coverage Ξ”
unittests 52.32% <ΓΈ> (-18.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@antoine4livre antoine4livre changed the title [Feature] Indexable [Feature] Add a primitive Indexable component Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants