@mantine/carousel 7.13.5-alpha.1 → 7.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/Carousel.cjs +272 -0
- package/cjs/Carousel.cjs.map +1 -0
- package/cjs/Carousel.context.cjs +12 -0
- package/cjs/Carousel.context.cjs.map +1 -0
- package/cjs/Carousel.module.css.cjs +7 -0
- package/cjs/Carousel.module.css.cjs.map +1 -0
- package/cjs/CarouselSlide/CarouselSlide.cjs +31 -0
- package/cjs/CarouselSlide/CarouselSlide.cjs.map +1 -0
- package/cjs/CarouselVariables/CarouselVariables.cjs +39 -0
- package/cjs/CarouselVariables/CarouselVariables.cjs.map +1 -0
- package/cjs/get-chevron-rotation.cjs +12 -0
- package/cjs/get-chevron-rotation.cjs.map +1 -0
- package/cjs/index.cjs +12 -0
- package/cjs/index.cjs.map +1 -0
- package/cjs/use-animation-offset-effect.cjs +17 -0
- package/cjs/use-animation-offset-effect.cjs.map +1 -0
- package/esm/Carousel.context.mjs +9 -0
- package/esm/Carousel.context.mjs.map +1 -0
- package/esm/Carousel.mjs +266 -0
- package/esm/Carousel.mjs.map +1 -0
- package/esm/Carousel.module.css.mjs +5 -0
- package/esm/Carousel.module.css.mjs.map +1 -0
- package/esm/CarouselSlide/CarouselSlide.mjs +29 -0
- package/esm/CarouselSlide/CarouselSlide.mjs.map +1 -0
- package/esm/CarouselVariables/CarouselVariables.mjs +37 -0
- package/esm/CarouselVariables/CarouselVariables.mjs.map +1 -0
- package/esm/get-chevron-rotation.mjs +10 -0
- package/esm/get-chevron-rotation.mjs.map +1 -0
- package/esm/index.mjs +4 -0
- package/esm/index.mjs.map +1 -0
- package/esm/use-animation-offset-effect.mjs +15 -0
- package/esm/use-animation-offset-effect.mjs.map +1 -0
- package/lib/Carousel.context.d.ts +11 -0
- package/lib/Carousel.d.ts +87 -0
- package/lib/CarouselSlide/CarouselSlide.d.ts +16 -0
- package/lib/CarouselVariables/CarouselVariables.d.ts +6 -0
- package/lib/get-chevron-rotation.d.ts +7 -0
- package/lib/index.d.mts +6 -0
- package/lib/index.d.ts +6 -0
- package/lib/use-animation-offset-effect.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CarouselProps } from '../Carousel';
|
|
2
|
+
interface CarouselVariablesProps extends CarouselProps {
|
|
3
|
+
selector: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function CarouselVariables({ slideGap, slideSize, selector }: CarouselVariablesProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
export type Embla = EmblaCarouselType;
|
|
3
|
+
export { Carousel } from './Carousel';
|
|
4
|
+
export { useAnimationOffsetEffect } from './use-animation-offset-effect';
|
|
5
|
+
export { CarouselSlide } from './CarouselSlide/CarouselSlide';
|
|
6
|
+
export type { CarouselProps, CarouselCssVariables, CarouselFactory, CarouselStylesNames, } from './Carousel';
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
export type Embla = EmblaCarouselType;
|
|
3
|
+
export { Carousel } from './Carousel';
|
|
4
|
+
export { useAnimationOffsetEffect } from './use-animation-offset-effect';
|
|
5
|
+
export { CarouselSlide } from './CarouselSlide/CarouselSlide';
|
|
6
|
+
export type { CarouselProps, CarouselCssVariables, CarouselFactory, CarouselStylesNames, } from './Carousel';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/carousel",
|
|
3
|
-
"version": "7.13.5
|
|
3
|
+
"version": "7.13.5",
|
|
4
4
|
"description": "Embla based carousel",
|
|
5
5
|
"homepage": "https://mantine.dev/x/carousel/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"directory": "packages/@mantine/carousel"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine/core": "7.13.5
|
|
48
|
-
"@mantine/hooks": "7.13.5
|
|
47
|
+
"@mantine/core": "7.13.5",
|
|
48
|
+
"@mantine/hooks": "7.13.5",
|
|
49
49
|
"embla-carousel-react": ">=7.0.0",
|
|
50
50
|
"react": "^18.x || ^19.x",
|
|
51
51
|
"react-dom": "^18.x || ^19.x"
|