@mantine/carousel 6.0.17 → 7.0.0-alpha.21
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.context.js +4 -3
- package/cjs/Carousel.context.js.map +1 -1
- package/cjs/Carousel.js +150 -118
- package/cjs/Carousel.js.map +1 -1
- package/cjs/Carousel.module.css.js +8 -0
- package/cjs/Carousel.module.css.js.map +1 -0
- package/cjs/CarouselSlide/CarouselSlide.js +17 -21
- package/cjs/CarouselSlide/CarouselSlide.js.map +1 -1
- package/cjs/CarouselVariables/CarouselVariables.js +45 -0
- package/cjs/CarouselVariables/CarouselVariables.js.map +1 -0
- package/cjs/get-chevron-rotation.js.map +1 -1
- package/cjs/index.css +205 -0
- package/cjs/index.js +3 -0
- package/cjs/index.js.map +1 -1
- package/cjs/use-animation-offset-effect.js.map +1 -1
- package/esm/Carousel.context.js +4 -3
- package/esm/Carousel.context.js.map +1 -1
- package/esm/Carousel.js +151 -118
- package/esm/Carousel.js.map +1 -1
- package/esm/Carousel.module.css.js +4 -0
- package/esm/Carousel.module.css.js.map +1 -0
- package/esm/CarouselSlide/CarouselSlide.js +19 -23
- package/esm/CarouselSlide/CarouselSlide.js.map +1 -1
- package/esm/CarouselVariables/CarouselVariables.js +37 -0
- package/esm/CarouselVariables/CarouselVariables.js.map +1 -0
- package/esm/get-chevron-rotation.js.map +1 -1
- package/esm/index.css +205 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/use-animation-offset-effect.js.map +1 -1
- package/lib/Carousel.context.d.ts +8 -16
- package/lib/Carousel.context.d.ts.map +1 -1
- package/lib/Carousel.d.ts +54 -43
- package/lib/Carousel.d.ts.map +1 -1
- package/lib/CarouselSlide/CarouselSlide.d.ts +15 -12
- package/lib/CarouselSlide/CarouselSlide.d.ts.map +1 -1
- package/lib/CarouselVariables/CarouselVariables.d.ts +8 -0
- package/lib/CarouselVariables/CarouselVariables.d.ts.map +1 -0
- package/lib/get-chevron-rotation.d.ts +1 -2
- package/lib/get-chevron-rotation.d.ts.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/use-animation-offset-effect.d.ts +2 -2
- package/lib/use-animation-offset-effect.d.ts.map +1 -1
- package/package.json +18 -11
package/lib/Carousel.d.ts
CHANGED
|
@@ -1,52 +1,49 @@
|
|
|
1
|
-
import { DefaultProps, MantineNumberSize, Selectors } from '@mantine/core';
|
|
2
|
-
import { ForwardRefWithStaticComponents } from '@mantine/utils';
|
|
3
|
-
import { EmblaPluginType } from 'embla-carousel-react';
|
|
4
1
|
import React from 'react';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
export type CarouselStylesNames =
|
|
9
|
-
export
|
|
10
|
-
|
|
2
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory, MantineSpacing, StyleProp } from '@mantine/core';
|
|
3
|
+
import { EmblaPluginType, EmblaCarouselType } from 'embla-carousel-react';
|
|
4
|
+
import { CarouselSlide } from './CarouselSlide/CarouselSlide';
|
|
5
|
+
export type CarouselStylesNames = 'slide' | 'root' | 'viewport' | 'container' | 'controls' | 'control' | 'indicators' | 'indicator';
|
|
6
|
+
export type CarouselCssVariables = {
|
|
7
|
+
root: '--carousel-height' | '--carousel-control-size' | '--carousel-controls-offset';
|
|
8
|
+
};
|
|
9
|
+
export interface CarouselProps extends BoxProps, StylesApiProps<CarouselFactory>, ElementProps<'div'> {
|
|
11
10
|
/** <Carousel.Slide /> components */
|
|
12
11
|
children?: React.ReactNode;
|
|
13
|
-
/** Called when
|
|
12
|
+
/** Called when next slide is shown */
|
|
14
13
|
onNextSlide?(): void;
|
|
15
|
-
/** Called when
|
|
14
|
+
/** Called when previous slider is shown */
|
|
16
15
|
onPreviousSlide?(): void;
|
|
17
16
|
/** Called with slide index when slide changes */
|
|
18
17
|
onSlideChange?(index: number): void;
|
|
19
18
|
/** Get embla API as ref */
|
|
20
|
-
getEmblaApi?(embla:
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
controlSize?:
|
|
27
|
-
/**
|
|
28
|
-
controlsOffset?:
|
|
29
|
-
/**
|
|
30
|
-
slideSize?: string | number
|
|
19
|
+
getEmblaApi?(embla: EmblaCarouselType): void;
|
|
20
|
+
/** Props passed down to next control */
|
|
21
|
+
nextControlProps?: React.ComponentPropsWithoutRef<'button'>;
|
|
22
|
+
/** Props passed down to previous control */
|
|
23
|
+
previousControlProps?: React.ComponentPropsWithoutRef<'button'>;
|
|
24
|
+
/** Controls size of the next and previous controls, `26` by default */
|
|
25
|
+
controlSize?: React.CSSProperties['width'];
|
|
26
|
+
/** Controls position of the next and previous controls, key of `theme.spacing` or any valid CSS value, `'sm'` by default */
|
|
27
|
+
controlsOffset?: MantineSpacing | (string & {}) | number;
|
|
28
|
+
/** Controls slide width based on viewport width, `'100%'` by default */
|
|
29
|
+
slideSize?: StyleProp<string | number>;
|
|
31
30
|
/** Key of theme.spacing or number to set gap between slides */
|
|
32
|
-
slideGap?:
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
orientation?: CarouselOrientation;
|
|
37
|
-
/** Slides container height, required for vertical orientation */
|
|
31
|
+
slideGap?: StyleProp<MantineSpacing | (string & {}) | number>;
|
|
32
|
+
/** Carousel orientation, `'horizontal'` by default */
|
|
33
|
+
orientation?: 'horizontal' | 'vertical';
|
|
34
|
+
/** Slides container `height`, required for vertical orientation */
|
|
38
35
|
height?: React.CSSProperties['height'];
|
|
39
|
-
/** Determines how slides will be aligned relative to the container. Use number between 0-1 to align slides based on percentage, where 0.5
|
|
36
|
+
/** Determines how slides will be aligned relative to the container. Use number between 0-1 to align slides based on percentage, where 0.5 is 50%, `'center'` by default */
|
|
40
37
|
align?: 'start' | 'center' | 'end' | number;
|
|
41
|
-
/** Number of slides that
|
|
38
|
+
/** Number of slides that will be scrolled with next/previous buttons, `1` by default */
|
|
42
39
|
slidesToScroll?: number | 'auto';
|
|
43
|
-
/** Determines whether gap should be treated as part of the slide size, true by default */
|
|
40
|
+
/** Determines whether gap between slides should be treated as part of the slide size, `true` by default */
|
|
44
41
|
includeGapInSize?: boolean;
|
|
45
|
-
/** Determines whether carousel can be scrolled with mouse and touch interactions, true by default */
|
|
42
|
+
/** Determines whether the carousel can be scrolled with mouse and touch interactions, `true` by default */
|
|
46
43
|
draggable?: boolean;
|
|
47
|
-
/** Determines whether momentum scrolling should be enabled, false by default */
|
|
44
|
+
/** Determines whether momentum scrolling should be enabled, `false` by default */
|
|
48
45
|
dragFree?: boolean;
|
|
49
|
-
/** Enables infinite looping.
|
|
46
|
+
/** Enables infinite looping. `true` by default, automatically falls back to `false` if slide content isn't enough to loop. */
|
|
50
47
|
loop?: boolean;
|
|
51
48
|
/** Adjusts scroll speed when triggered by any of the methods. Higher numbers enables faster scrolling. */
|
|
52
49
|
speed?: number;
|
|
@@ -56,23 +53,37 @@ export interface CarouselProps extends DefaultProps<CarouselStylesNames, Carouse
|
|
|
56
53
|
inViewThreshold?: number;
|
|
57
54
|
/** Determines whether next/previous controls should be displayed, true by default */
|
|
58
55
|
withControls?: boolean;
|
|
59
|
-
/** Determines whether indicators should be displayed, false by default */
|
|
56
|
+
/** Determines whether indicators should be displayed, `false` by default */
|
|
60
57
|
withIndicators?: boolean;
|
|
61
58
|
/** An array of embla plugins */
|
|
62
59
|
plugins?: EmblaPluginType[];
|
|
63
|
-
/** Icon of next control */
|
|
60
|
+
/** Icon of the next control */
|
|
64
61
|
nextControlIcon?: React.ReactNode;
|
|
65
|
-
/**
|
|
62
|
+
/** Icon of the previous control */
|
|
66
63
|
previousControlIcon?: React.ReactNode;
|
|
67
|
-
/** Allow the carousel to skip scroll snaps if it
|
|
64
|
+
/** Allow the carousel to skip scroll snaps if it is dragged vigorously. Note that this option will be ignored if the dragFree option is set to `true`, `false` by default */
|
|
68
65
|
skipSnaps?: boolean;
|
|
69
|
-
/** Clear leading and trailing empty space that causes excessive scrolling. Use trimSnaps to only use snap points that trigger scrolling or keepSnaps to keep them. */
|
|
66
|
+
/** Clear leading and trailing empty space that causes excessive scrolling. Use `trimSnaps` to only use snap points that trigger scrolling or keepSnaps to keep them. */
|
|
70
67
|
containScroll?: 'trimSnaps' | 'keepSnaps' | '';
|
|
71
|
-
/** Determines whether arrow key should switch slides, true by default */
|
|
68
|
+
/** Determines whether arrow key should switch slides, `true` by default */
|
|
72
69
|
withKeyboardEvents?: boolean;
|
|
73
70
|
}
|
|
74
|
-
export
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
export type CarouselFactory = Factory<{
|
|
72
|
+
props: CarouselProps;
|
|
73
|
+
ref: HTMLDivElement;
|
|
74
|
+
stylesNames: CarouselStylesNames;
|
|
75
|
+
vars: CarouselCssVariables;
|
|
76
|
+
staticComponents: {
|
|
77
|
+
Slide: typeof CarouselSlide;
|
|
78
|
+
};
|
|
79
|
+
}>;
|
|
80
|
+
export declare const Carousel: import("@mantine/core").MantineComponent<{
|
|
81
|
+
props: CarouselProps;
|
|
82
|
+
ref: HTMLDivElement;
|
|
83
|
+
stylesNames: CarouselStylesNames;
|
|
84
|
+
vars: CarouselCssVariables;
|
|
85
|
+
staticComponents: {
|
|
86
|
+
Slide: typeof CarouselSlide;
|
|
87
|
+
};
|
|
77
88
|
}>;
|
|
78
89
|
//# sourceMappingURL=Carousel.d.ts.map
|
package/lib/Carousel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../src/Carousel.tsx"],"names":[],"mappings":"
|
|
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,MA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AkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC;IACpC,KAAK,EAAE,aAAa,CAAC;IACrB,GAAG,EAAE,cAAc,CAAC;IACpB,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,gBAAgB,EAAE;QAChB,KAAK,EAAE,OAAO,aAAa,CAAC;KAC7B,CAAC;CACH,CAAC,CAAC;AAkCH,eAAO,MAAM,QAAQ;WAzCZ,aAAa;SACf,cAAc;iBACN,mBAAmB;UAC1B,oBAAoB;sBACR;QAChB,KAAK,EAAE,oBAAoB,CAAC;KAC7B;EAmQD,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type CarouselSlideStylesNames = Selectors<typeof useStyles>;
|
|
5
|
-
export interface CarouselSlideProps extends DefaultProps, React.ComponentPropsWithoutRef<'div'> {
|
|
6
|
-
/** Slide content */
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
/** Slide width, defaults to 100%, examples: 40rem, 50% */
|
|
9
|
-
size?: string | number;
|
|
10
|
-
/** Key of theme.spacing or number to set gap between slides */
|
|
11
|
-
gap?: MantineNumberSize;
|
|
1
|
+
import { BoxProps, StylesApiProps, ElementProps, Factory } from '@mantine/core';
|
|
2
|
+
export type CarouselSlideStylesNames = 'slide';
|
|
3
|
+
export interface CarouselSlideProps extends BoxProps, StylesApiProps<CarouselSlideFactory>, ElementProps<'div'> {
|
|
12
4
|
}
|
|
13
|
-
export
|
|
5
|
+
export type CarouselSlideFactory = Factory<{
|
|
6
|
+
props: CarouselSlideProps;
|
|
7
|
+
ref: HTMLDivElement;
|
|
8
|
+
stylesNames: CarouselSlideStylesNames;
|
|
9
|
+
compound: true;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const CarouselSlide: import("@mantine/core").MantineComponent<{
|
|
12
|
+
props: CarouselSlideProps;
|
|
13
|
+
ref: HTMLDivElement;
|
|
14
|
+
stylesNames: CarouselSlideStylesNames;
|
|
15
|
+
compound: true;
|
|
16
|
+
}>;
|
|
14
17
|
//# sourceMappingURL=CarouselSlide.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselSlide.d.ts","sourceRoot":"","sources":["../../src/CarouselSlide/CarouselSlide.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CarouselSlide.d.ts","sourceRoot":"","sources":["../../src/CarouselSlide/CarouselSlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,QAAQ,EACR,cAAc,EAEd,YAAY,EAEZ,OAAO,EACR,MAAM,eAAe,CAAC;AAIvB,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAE/C,MAAM,WAAW,kBACf,SAAQ,QAAQ,EACd,cAAc,CAAC,oBAAoB,CAAC,EACpC,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CarouselProps } from '../Carousel';
|
|
3
|
+
interface CarouselVariablesProps extends CarouselProps {
|
|
4
|
+
selector: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function CarouselVariables({ slideGap, slideSize, selector }: CarouselVariablesProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=CarouselVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselVariables.d.ts","sourceRoot":"","sources":["../../src/CarouselVariables/CarouselVariables.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,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,7 +1,6 @@
|
|
|
1
|
-
import { CarouselOrientation } from './types';
|
|
2
1
|
interface Options {
|
|
3
2
|
dir: 'rtl' | 'ltr';
|
|
4
|
-
orientation:
|
|
3
|
+
orientation: 'horizontal' | 'vertical' | undefined;
|
|
5
4
|
direction: 'next' | 'previous';
|
|
6
5
|
}
|
|
7
6
|
export declare function getChevronRotation({ dir, orientation, direction }: Options): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chevron-rotation.d.ts","sourceRoot":"","sources":["../src/get-chevron-rotation.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { EmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
export type Embla = EmblaCarouselType;
|
|
1
3
|
export { Carousel } from './Carousel';
|
|
2
4
|
export { useAnimationOffsetEffect } from './use-animation-offset-effect';
|
|
3
|
-
export
|
|
4
|
-
export type {
|
|
5
|
+
export { CarouselSlide } from './CarouselSlide/CarouselSlide';
|
|
6
|
+
export type { CarouselProps, CarouselCssVariables, CarouselFactory, CarouselStylesNames, } from './Carousel';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,
|
|
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,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useAnimationOffsetEffect(embla:
|
|
1
|
+
import type { EmblaCarouselType } from 'embla-carousel-react';
|
|
2
|
+
export declare function useAnimationOffsetEffect(embla: EmblaCarouselType | null | undefined, transitionDuration: number): void;
|
|
3
3
|
//# sourceMappingURL=use-animation-offset-effect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-animation-offset-effect.d.ts","sourceRoot":"","sources":["../src/use-animation-offset-effect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/carousel",
|
|
3
3
|
"description": "Embla based carousel",
|
|
4
|
-
"version": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
4
|
+
"version": "7.0.0-alpha.21",
|
|
5
|
+
"types": "./lib/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./esm/index.js",
|
|
9
|
+
"require": "./cjs/index.js",
|
|
10
|
+
"types": "./lib/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./styles.css": "./esm/index.css",
|
|
13
|
+
"./styles/*": "./esm/styles/*"
|
|
14
|
+
},
|
|
8
15
|
"license": "MIT",
|
|
9
|
-
"sideEffects":
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"*.css"
|
|
18
|
+
],
|
|
10
19
|
"author": "Vitaly Rtishchev <rtivital@gmail.com>",
|
|
11
20
|
"homepage": "https://mantine.dev/others/carousel/",
|
|
12
21
|
"repository": {
|
|
@@ -28,13 +37,11 @@
|
|
|
28
37
|
"slick"
|
|
29
38
|
],
|
|
30
39
|
"peerDependencies": {
|
|
31
|
-
"@mantine/core": "
|
|
32
|
-
"@mantine/hooks": "
|
|
40
|
+
"@mantine/core": "7.0.0-alpha.21",
|
|
41
|
+
"@mantine/hooks": "7.0.0-alpha.21",
|
|
33
42
|
"embla-carousel-react": "^7.0.0",
|
|
34
|
-
"react": "
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@mantine/utils": "6.0.17"
|
|
43
|
+
"react": "^18.2.0"
|
|
38
44
|
},
|
|
45
|
+
"dependencies": {},
|
|
39
46
|
"devDependencies": {}
|
|
40
47
|
}
|