Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,24 @@
import { createContext, useContextSelector } from '@fluentui/react-context-selector';
export const carouselContextDefaultValue = {
activeIndex: 0,
selectPageByElement: ()=>{
return 0;
},
selectPageByDirection: ()=>{
return 0;
},
selectPageByIndex: ()=>{
/** noop */ },
subscribeForValues: ()=>()=>{
/** noop */ },
enableAutoplay: ()=>{
/** noop */ },
resetAutoplay: ()=>{
/** noop */ },
circular: false,
containerRef: undefined,
viewportRef: undefined
};
const CarouselContext = createContext(undefined);
export const CarouselProvider = CarouselContext.Provider;
export const useCarouselContext_unstable = (selector)=>useContextSelector(CarouselContext, (ctx = carouselContextDefaultValue)=>selector(ctx));