@mantine/carousel 7.3.0-alpha.0 → 7.3.0-alpha.2

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.
@@ -7,6 +7,5 @@ interface CarouselContextValue {
7
7
  export declare const CarouselProvider: ({ children, value }: {
8
8
  value: CarouselContextValue;
9
9
  children: import("react").ReactNode;
10
- }) => import("react/jsx-runtime").JSX.Element, useCarouselContext: () => CarouselContextValue;
10
+ }) => import("react").JSX.Element, useCarouselContext: () => CarouselContextValue;
11
11
  export {};
12
- //# sourceMappingURL=Carousel.context.d.ts.map
package/lib/Carousel.d.ts CHANGED
@@ -86,4 +86,3 @@ export declare const Carousel: import("@mantine/core").MantineComponent<{
86
86
  Slide: typeof CarouselSlide;
87
87
  };
88
88
  }>;
89
- //# sourceMappingURL=Carousel.d.ts.map
@@ -14,4 +14,3 @@ export declare const CarouselSlide: import("@mantine/core").MantineComponent<{
14
14
  stylesNames: CarouselSlideStylesNames;
15
15
  compound: true;
16
16
  }>;
17
- //# sourceMappingURL=CarouselSlide.d.ts.map
@@ -5,4 +5,3 @@ interface CarouselVariablesProps extends CarouselProps {
5
5
  }
6
6
  export declare function CarouselVariables({ slideGap, slideSize, selector }: CarouselVariablesProps): React.JSX.Element;
7
7
  export {};
8
- //# sourceMappingURL=CarouselVariables.d.ts.map
@@ -5,4 +5,3 @@ interface Options {
5
5
  }
6
6
  export declare function getChevronRotation({ dir, orientation, direction }: Options): number;
7
7
  export {};
8
- //# sourceMappingURL=get-chevron-rotation.d.ts.map
package/lib/index.d.mts CHANGED
@@ -4,4 +4,3 @@ export { Carousel } from './Carousel';
4
4
  export { useAnimationOffsetEffect } from './use-animation-offset-effect';
5
5
  export { CarouselSlide } from './CarouselSlide/CarouselSlide';
6
6
  export type { CarouselProps, CarouselCssVariables, CarouselFactory, CarouselStylesNames, } from './Carousel';
7
- //# sourceMappingURL=index.d.ts.map
package/lib/index.d.ts CHANGED
@@ -4,4 +4,3 @@ export { Carousel } from './Carousel';
4
4
  export { useAnimationOffsetEffect } from './use-animation-offset-effect';
5
5
  export { CarouselSlide } from './CarouselSlide/CarouselSlide';
6
6
  export type { CarouselProps, CarouselCssVariables, CarouselFactory, CarouselStylesNames, } from './Carousel';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { EmblaCarouselType } from 'embla-carousel-react';
2
2
  export declare function useAnimationOffsetEffect(embla: EmblaCarouselType | null | undefined, transitionDuration: number): void;
3
- //# sourceMappingURL=use-animation-offset-effect.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/carousel",
3
- "version": "7.3.0-alpha.0",
3
+ "version": "7.3.0-alpha.2",
4
4
  "description": "Embla based carousel",
5
5
  "homepage": "https://mantine.dev/others/carousel/",
6
6
  "license": "MIT",
@@ -35,19 +35,24 @@
35
35
  "default": "./cjs/index.cjs"
36
36
  }
37
37
  },
38
- "./styles.css": "./esm/index.css",
39
- "./styles.layer.css": "./esm/index.layer.css",
40
- "./styles/*": "./esm/styles/*"
38
+ "./styles.css": "./styles.css",
39
+ "./styles.layer.css": "./styles.layer.css"
41
40
  },
42
41
  "repository": {
43
42
  "url": "https://github.com/mantinedev/mantine.git",
44
43
  "type": "git",
45
- "directory": "src/mantine-carousel"
44
+ "directory": "packages/@mantine/carousel"
46
45
  },
47
46
  "peerDependencies": {
48
- "@mantine/core": "7.3.0-alpha.0",
49
- "@mantine/hooks": "7.3.0-alpha.0",
47
+ "@mantine/core": "7.3.0-alpha.2",
48
+ "@mantine/hooks": "7.3.0-alpha.2",
50
49
  "embla-carousel-react": ">=7.0.0",
51
- "react": "^18.2.0"
50
+ "react": "^18.2.0",
51
+ "react-dom": "^18.2.0"
52
+ },
53
+ "devDependencies": {
54
+ "@mantine-tests/core": "1.0.1",
55
+ "@mantine/core": "7.3.0-alpha.2",
56
+ "@mantine/hooks": "7.3.0-alpha.2"
52
57
  }
53
58
  }
package/esm/index.css DELETED
@@ -1 +0,0 @@
1
- .m-17884d0f{position:relative}.m-a2dae653{overflow:hidden}.m-a2dae653,.m-fcd81474{height:var(--carousel-height,auto)}.m-fcd81474{display:flex;flex-direction:var(--_container-direction,row);margin-bottom:var(--_container-mb);margin-left:var(--_container-ml);margin-right:var(--_container-mr)}[data-include-gap-in-size] .m-fcd81474[data-orientation=vertical]{--_container-mb:calc(var(--carousel-slide-gap)*-1)}[data-include-gap-in-size] .m-fcd81474[data-orientation=horizontal]{--_container-mr:calc(var(--carousel-slide-gap)*-1)}[dir=rtl] [data-include-gap-in-size] .m-fcd81474[data-orientation=horizontal]{--_container-ml:calc(var(--carousel-slide-gap)*-1);--_container-mr:0}.m-fcd81474[data-orientation=vertical]{--_container-direction:column}.m-39bc3463{align-items:center;bottom:var(--_controls-bottom);display:flex;flex-direction:var(--_controls-direction);justify-content:space-between;left:var(--_controls-left);padding:var(--_controls-padding);pointer-events:none;position:absolute;right:var(--_controls-right);top:var(--_controls-top);z-index:1}.m-17884d0f[data-orientation=vertical] .m-39bc3463{--_controls-left:calc(50% - var(--carousel-control-size)/2);--_controls-top:0;--_controls-bottom:0;--_controls-direction:column;--_controls-padding:var(--carousel-controls-offset) 0}.m-17884d0f[data-orientation=horizontal] .m-39bc3463{--_controls-left:0;--_controls-right:0;--_controls-top:calc(50% - var(--carousel-control-size)/2);--_controls-direction:row;--_controls-padding:0 var(--carousel-controls-offset)}.m-64f58e10{align-items:center;background-color:var(--mantine-color-white);border:calc(.0625rem*var(--mantine-scale)) solid var(--mantine-color-gray-3);border-radius:var(--carousel-control-size);box-shadow:var(--mantine-shadow-md);color:var(--mantine-color-black);display:flex;justify-content:center;min-height:var(--carousel-control-size);min-width:var(--carousel-control-size);opacity:var(--_control-opacity);pointer-events:all;transition:opacity .1s ease}[data-mantine-color-scheme=light] .m-64f58e10{--_control-opacity:0.85}[data-mantine-color-scheme=dark] .m-64f58e10{--_control-opacity:0.65}@media (hover:hover){.m-64f58e10:hover{--_control-opacity:1}}@media (hover:none){.m-64f58e10:active{--_control-opacity:1}}.m-71ea3ab1{bottom:var(--_indicators-bottom);display:flex;flex-direction:var(--_indicators-direction);gap:calc(.5rem*var(--mantine-scale));justify-content:center;left:var(--_indicators-left);pointer-events:none;position:absolute;right:var(--_indicators-right);top:var(--_indicators-top)}.m-17884d0f[data-orientation=vertical] .m-71ea3ab1{--_indicators-bottom:0;--_indicators-top:0;--_indicators-right:var(--mantine-spacing-md);--_indicators-direction:column}.m-17884d0f[data-orientation=horizontal] .m-71ea3ab1{--_indicators-bottom:var(--mantine-spacing-md);--_indicators-left:0;--_indicators-right:0;--_indicators-direction:row}.m-eae68602{background-color:var(--mantine-color-white);border-radius:var(--mantine-radius-xl);box-shadow:var(--mantine-shadow-sm);height:var(--_indicator-height);opacity:var(--_indicator-opacity,.6);pointer-events:all;width:var(--_indicator-width)}@media (hover:hover){.m-eae68602:hover{--_indicator-opacity:1}}@media (hover:none){.m-eae68602:active{--_indicator-opacity:1}}.m-eae68602[data-active]{--_indicator-opacity:1}.m-17884d0f[data-orientation=vertical] .m-eae68602{--_indicator-width:calc(0.3125rem*var(--mantine-scale));--_indicator-height:calc(1.5625rem*var(--mantine-scale))}.m-17884d0f[data-orientation=horizontal] .m-eae68602{--_indicator-width:calc(1.5625rem*var(--mantine-scale));--_indicator-height:calc(0.3125rem*var(--mantine-scale))}.m-d98df724{flex:0 0 var(--carousel-slide-size);margin-bottom:var(--_slide-mb,0);margin-left:var(--_slide-ml,0);margin-right:var(--_slide-mr,0);padding-bottom:var(--_slide-pb,0);padding-left:var(--_slide-pl,0);padding-right:var(--_slide-pr,0);position:relative}.m-17884d0f[data-include-gap-in-size] .m-d98df724[data-orientation=vertical]{--_slide-pb:var(--carousel-slide-gap)}.m-17884d0f[data-include-gap-in-size] .m-d98df724[data-orientation=horizontal]{--_slide-pr:var(--carousel-slide-gap)}[dir=rtl] .m-17884d0f[data-include-gap-in-size] .m-d98df724[data-orientation=horizontal]{--_slide-pl:var(--carousel-slide-gap);--_slide-pr:0}.m-17884d0f:not([data-include-gap-in-size]) .m-d98df724[data-orientation=vertical]{--_slide-mb:var(--carousel-slide-gap)}.m-17884d0f:not([data-include-gap-in-size]) .m-d98df724[data-orientation=horizontal]{--_slide-mr:var(--carousel-slide-gap)}[dir=rtl] .m-17884d0f:not([data-include-gap-in-size]) .m-d98df724[data-orientation=horizontal]{--_slide-ml:var(--carousel-slide-gap);--_slide-mr:0}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Carousel.context.d.ts","sourceRoot":"","sources":["../src/Carousel.context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,UAAU,oBAAoB;IAC5B,SAAS,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IACzC,WAAW,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;CACpD;AAED,eAAO,MAAO,gBAAgB;;;+CAAE,kBAAkB,4BAEjD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../src/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAC1E,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,YAAY,EAIZ,OAAO,EACP,cAAc,EACd,SAAS,EAOV,MAAM,eAAe,CAAC;AAEvB,OAAyB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG5F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAI9D,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,MAAM,GACN,UAAU,GACV,WAAW,GACX,UAAU,GACV,SAAS,GACT,YAAY,GACZ,WAAW,CAAC;AAEhB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,mBAAmB,GAAG,yBAAyB,GAAG,4BAA4B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+QD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselSlide.d.ts","sourceRoot":"","sources":["../../src/CarouselSlide/CarouselSlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,QAAQ,EACR,sBAAsB,EAEtB,YAAY,EAEZ,OAAO,EACR,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C,MAAM,WAAW,kBACf,SAAQ,QAAQ,EACd,sBAAsB,CAAC,oBAAoB,CAAC,EAC5C,YAAY,CAAC,KAAK,CAAC;CAAG;AAE1B,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;IACzC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,cAAc,CAAC;IACpB,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,IAAI,CAAC;CAChB,CAAC,CAAC;AAIH,eAAO,MAAM,aAAa;WARjB,kBAAkB;SACpB,cAAc;iBACN,wBAAwB;cAC3B,IAAI;EAsBd,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"CarouselVariables.d.ts","sourceRoot":"","sources":["../../src/CarouselVariables/CarouselVariables.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,UAAU,sBAAuB,SAAQ,aAAa;IACpD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBAqC1F"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-chevron-rotation.d.ts","sourceRoot":"","sources":["../src/get-chevron-rotation.ts"],"names":[],"mappings":"AAAA,UAAU,OAAO;IACf,GAAG,EAAE,KAAK,GAAG,KAAK,CAAC;IACnB,WAAW,EAAE,YAAY,GAAG,UAAU,GAAG,SAAS,CAAC;IACnD,SAAS,EAAE,MAAM,GAAG,UAAU,CAAC;CAChC;AAED,wBAAgB,kBAAkB,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,OAAO,UAM1E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,mBAAmB,GACpB,MAAM,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-animation-offset-effect.d.ts","sourceRoot":"","sources":["../src/use-animation-offset-effect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,EAC3C,kBAAkB,EAAE,MAAM,QAS3B"}
File without changes
File without changes