@mantine/core 7.13.5 → 7.14.0
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/components/AngleSlider/AngleSlider.cjs +210 -0
- package/cjs/components/AngleSlider/AngleSlider.cjs.map +1 -0
- package/cjs/components/AngleSlider/AngleSlider.module.css.cjs +7 -0
- package/cjs/components/AngleSlider/AngleSlider.module.css.cjs.map +1 -0
- package/cjs/components/Drawer/Drawer.cjs +45 -11
- package/cjs/components/Drawer/Drawer.cjs.map +1 -1
- package/cjs/components/Drawer/DrawerContent.cjs +2 -1
- package/cjs/components/Drawer/DrawerContent.cjs.map +1 -1
- package/cjs/components/Drawer/DrawerStack.cjs +46 -0
- package/cjs/components/Drawer/DrawerStack.cjs.map +1 -0
- package/cjs/components/Modal/Modal.cjs +53 -11
- package/cjs/components/Modal/Modal.cjs.map +1 -1
- package/cjs/components/Modal/ModalContent.cjs +2 -1
- package/cjs/components/Modal/ModalContent.cjs.map +1 -1
- package/cjs/components/Modal/ModalStack.cjs +46 -0
- package/cjs/components/Modal/ModalStack.cjs.map +1 -0
- package/cjs/components/Modal/use-modals-stack.cjs +38 -0
- package/cjs/components/Modal/use-modals-stack.cjs.map +1 -0
- package/cjs/components/ModalBase/ModalBaseOverlay.cjs +22 -14
- package/cjs/components/ModalBase/ModalBaseOverlay.cjs.map +1 -1
- package/cjs/components/Slider/Slider/Slider.cjs +17 -3
- package/cjs/components/Slider/Slider/Slider.cjs.map +1 -1
- package/cjs/components/Tree/get-children-nodes-values/get-children-nodes-values.cjs +11 -0
- package/cjs/components/Tree/get-children-nodes-values/get-children-nodes-values.cjs.map +1 -1
- package/cjs/components/Tree/use-tree.cjs +59 -14
- package/cjs/components/Tree/use-tree.cjs.map +1 -1
- package/cjs/core/utils/find-closest-number/find-closest-number.cjs +14 -0
- package/cjs/core/utils/find-closest-number/find-closest-number.cjs.map +1 -0
- package/cjs/index.cjs +10 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/components/AngleSlider/AngleSlider.mjs +208 -0
- package/esm/components/AngleSlider/AngleSlider.mjs.map +1 -0
- package/esm/components/AngleSlider/AngleSlider.module.css.mjs +5 -0
- package/esm/components/AngleSlider/AngleSlider.module.css.mjs.map +1 -0
- package/esm/components/Drawer/Drawer.mjs +45 -11
- package/esm/components/Drawer/Drawer.mjs.map +1 -1
- package/esm/components/Drawer/DrawerContent.mjs +2 -1
- package/esm/components/Drawer/DrawerContent.mjs.map +1 -1
- package/esm/components/Drawer/DrawerStack.mjs +43 -0
- package/esm/components/Drawer/DrawerStack.mjs.map +1 -0
- package/esm/components/Modal/Modal.mjs +53 -11
- package/esm/components/Modal/Modal.mjs.map +1 -1
- package/esm/components/Modal/ModalContent.mjs +2 -1
- package/esm/components/Modal/ModalContent.mjs.map +1 -1
- package/esm/components/Modal/ModalStack.mjs +43 -0
- package/esm/components/Modal/ModalStack.mjs.map +1 -0
- package/esm/components/Modal/use-modals-stack.mjs +35 -0
- package/esm/components/Modal/use-modals-stack.mjs.map +1 -0
- package/esm/components/ModalBase/ModalBaseOverlay.mjs +22 -14
- package/esm/components/ModalBase/ModalBaseOverlay.mjs.map +1 -1
- package/esm/components/Slider/Slider/Slider.mjs +17 -3
- package/esm/components/Slider/Slider/Slider.mjs.map +1 -1
- package/esm/components/Tree/get-children-nodes-values/get-children-nodes-values.mjs +11 -1
- package/esm/components/Tree/get-children-nodes-values/get-children-nodes-values.mjs.map +1 -1
- package/esm/components/Tree/use-tree.mjs +60 -16
- package/esm/components/Tree/use-tree.mjs.map +1 -1
- package/esm/core/utils/find-closest-number/find-closest-number.mjs +12 -0
- package/esm/core/utils/find-closest-number/find-closest-number.mjs.map +1 -0
- package/esm/index.mjs +5 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/AngleSlider/AngleSlider.d.ts +50 -0
- package/lib/components/AngleSlider/index.d.ts +2 -0
- package/lib/components/Drawer/Drawer.d.ts +5 -0
- package/lib/components/Drawer/DrawerContent.d.ts +1 -0
- package/lib/components/Drawer/DrawerStack.d.ts +17 -0
- package/lib/components/Modal/Modal.d.ts +5 -0
- package/lib/components/Modal/ModalContent.d.ts +1 -0
- package/lib/components/Modal/ModalStack.d.ts +17 -0
- package/lib/components/Modal/index.d.ts +2 -0
- package/lib/components/Modal/use-modals-stack.d.ts +15 -0
- package/lib/components/ModalBase/ModalBaseOverlay.d.ts +2 -0
- package/lib/components/Slider/Slider/Slider.d.ts +2 -0
- package/lib/components/Tree/get-children-nodes-values/get-children-nodes-values.d.ts +1 -0
- package/lib/components/Tree/index.d.ts +1 -1
- package/lib/components/Tree/use-tree.d.ts +12 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/core/utils/find-closest-number/find-closest-number.d.ts +1 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/package.json +2 -2
- package/styles/AngleSlider.css +107 -0
- package/styles/AngleSlider.layer.css +108 -0
- package/styles/Drawer.css +5 -0
- package/styles/Drawer.layer.css +5 -0
- package/styles/Modal.css +5 -0
- package/styles/Modal.layer.css +5 -0
- package/styles.css +118 -0
- package/styles.layer.css +118 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { BoxProps, ElementProps, Factory, StylesApiProps } from '../../core';
|
|
2
|
+
export type AngleSliderStylesNames = 'root' | 'thumb' | 'label' | 'marks' | 'mark';
|
|
3
|
+
export type AngleSliderCssVariables = {
|
|
4
|
+
root: '--slider-size' | '--thumb-size';
|
|
5
|
+
};
|
|
6
|
+
export interface AngleSliderProps extends BoxProps, StylesApiProps<AngleSliderFactory>, ElementProps<'div', 'onChange'> {
|
|
7
|
+
/** Step between values, used when the component is controlled with keyboard, `1` by default */
|
|
8
|
+
step?: number;
|
|
9
|
+
/** Value of the controlled component */
|
|
10
|
+
value?: number;
|
|
11
|
+
/** Default value for uncontrolled component */
|
|
12
|
+
defaultValue?: number;
|
|
13
|
+
/** Called on value change */
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
/** Called after the selection is finished */
|
|
16
|
+
onChangeEnd?: (value: number) => void;
|
|
17
|
+
/** Determines whether the label should be displayed inside the slider, `true` by default */
|
|
18
|
+
withLabel?: boolean;
|
|
19
|
+
/** Array of marks that are displayed on the slider */
|
|
20
|
+
marks?: {
|
|
21
|
+
value: number;
|
|
22
|
+
label?: string;
|
|
23
|
+
}[];
|
|
24
|
+
/** Slider size in px, `60px` */
|
|
25
|
+
size?: number;
|
|
26
|
+
/** Size of the thumb in px, by default is calculated based on the `size` value */
|
|
27
|
+
thumbSize?: number;
|
|
28
|
+
/** Formats label based on the current value */
|
|
29
|
+
formatLabel?: (value: number) => React.ReactNode;
|
|
30
|
+
/** Disables interactions */
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/** Determines whether the selection should be only allowed from the given marks array, `false` by default */
|
|
33
|
+
restrictToMarks?: boolean;
|
|
34
|
+
/** Props passed down to the hidden input */
|
|
35
|
+
hiddenInputProps?: React.ComponentPropsWithoutRef<'input'>;
|
|
36
|
+
/** Hidden input name, use with uncontrolled component */
|
|
37
|
+
name?: string;
|
|
38
|
+
}
|
|
39
|
+
export type AngleSliderFactory = Factory<{
|
|
40
|
+
props: AngleSliderProps;
|
|
41
|
+
ref: HTMLDivElement;
|
|
42
|
+
stylesNames: AngleSliderStylesNames;
|
|
43
|
+
vars: AngleSliderCssVariables;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const AngleSlider: import("../../core").MantineComponent<{
|
|
46
|
+
props: AngleSliderProps;
|
|
47
|
+
ref: HTMLDivElement;
|
|
48
|
+
stylesNames: AngleSliderStylesNames;
|
|
49
|
+
vars: AngleSliderCssVariables;
|
|
50
|
+
}>;
|
|
@@ -6,6 +6,7 @@ import { DrawerContent } from './DrawerContent';
|
|
|
6
6
|
import { DrawerHeader } from './DrawerHeader';
|
|
7
7
|
import { DrawerOverlay } from './DrawerOverlay';
|
|
8
8
|
import { DrawerRoot, DrawerRootCssVariables, DrawerRootProps, DrawerRootStylesNames } from './DrawerRoot';
|
|
9
|
+
import { DrawerStack } from './DrawerStack';
|
|
9
10
|
import { DrawerTitle } from './DrawerTitle';
|
|
10
11
|
export type DrawerStylesNames = DrawerRootStylesNames;
|
|
11
12
|
export type DrawerCssVariables = DrawerRootCssVariables;
|
|
@@ -22,6 +23,8 @@ export interface DrawerProps extends DrawerRootProps {
|
|
|
22
23
|
withCloseButton?: boolean;
|
|
23
24
|
/** Props passed down to the close button */
|
|
24
25
|
closeButtonProps?: ModalBaseCloseButtonProps;
|
|
26
|
+
/** Id of the drawer in the `Drawer.Stack` */
|
|
27
|
+
stackId?: string;
|
|
25
28
|
}
|
|
26
29
|
export type DrawerFactory = Factory<{
|
|
27
30
|
props: DrawerProps;
|
|
@@ -36,6 +39,7 @@ export type DrawerFactory = Factory<{
|
|
|
36
39
|
Header: typeof DrawerHeader;
|
|
37
40
|
Title: typeof DrawerTitle;
|
|
38
41
|
CloseButton: typeof DrawerCloseButton;
|
|
42
|
+
Stack: typeof DrawerStack;
|
|
39
43
|
};
|
|
40
44
|
}>;
|
|
41
45
|
export declare const Drawer: import("../../core").MantineComponent<{
|
|
@@ -51,5 +55,6 @@ export declare const Drawer: import("../../core").MantineComponent<{
|
|
|
51
55
|
Header: typeof DrawerHeader;
|
|
52
56
|
Title: typeof DrawerTitle;
|
|
53
57
|
CloseButton: typeof DrawerCloseButton;
|
|
58
|
+
Stack: typeof DrawerStack;
|
|
54
59
|
};
|
|
55
60
|
}>;
|
|
@@ -2,6 +2,7 @@ import { CompoundStylesApiProps, Factory } from '../../core';
|
|
|
2
2
|
import { ModalBaseContentProps } from '../ModalBase';
|
|
3
3
|
export type DrawerContentStylesNames = 'content' | 'inner';
|
|
4
4
|
export interface DrawerContentProps extends ModalBaseContentProps, CompoundStylesApiProps<DrawerContentFactory> {
|
|
5
|
+
__hidden?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export type DrawerContentFactory = Factory<{
|
|
7
8
|
props: DrawerContentProps;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface DrawerStackContext {
|
|
2
|
+
stack: string[];
|
|
3
|
+
addModal: (id: string, zIndex: number | string) => void;
|
|
4
|
+
removeModal: (id: string) => void;
|
|
5
|
+
getZIndex: (id: string) => string;
|
|
6
|
+
currentId: string;
|
|
7
|
+
maxZIndex: string | number;
|
|
8
|
+
}
|
|
9
|
+
declare const useDrawerStackContext: () => DrawerStackContext | null;
|
|
10
|
+
export { useDrawerStackContext };
|
|
11
|
+
interface DrawerStackProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function DrawerStack({ children }: DrawerStackProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace DrawerStack {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -6,6 +6,7 @@ import { ModalContent } from './ModalContent';
|
|
|
6
6
|
import { ModalHeader } from './ModalHeader';
|
|
7
7
|
import { ModalOverlay } from './ModalOverlay';
|
|
8
8
|
import { ModalRoot, ModalRootCssVariables, ModalRootProps, ModalRootStylesNames } from './ModalRoot';
|
|
9
|
+
import { ModalStack } from './ModalStack';
|
|
9
10
|
import { ModalTitle } from './ModalTitle';
|
|
10
11
|
export type ModalStylesNames = ModalRootStylesNames;
|
|
11
12
|
export type ModalCssVariables = ModalRootCssVariables;
|
|
@@ -23,6 +24,8 @@ export interface ModalProps extends ModalRootProps {
|
|
|
23
24
|
withCloseButton?: boolean;
|
|
24
25
|
/** Props passed down to the close button */
|
|
25
26
|
closeButtonProps?: ModalBaseCloseButtonProps;
|
|
27
|
+
/** Id of the modal in the `Modal.Stack` */
|
|
28
|
+
stackId?: string;
|
|
26
29
|
}
|
|
27
30
|
export type ModalFactory = Factory<{
|
|
28
31
|
props: ModalProps;
|
|
@@ -37,6 +40,7 @@ export type ModalFactory = Factory<{
|
|
|
37
40
|
Header: typeof ModalHeader;
|
|
38
41
|
Title: typeof ModalTitle;
|
|
39
42
|
CloseButton: typeof ModalCloseButton;
|
|
43
|
+
Stack: typeof ModalStack;
|
|
40
44
|
};
|
|
41
45
|
}>;
|
|
42
46
|
export declare const Modal: import("../../core").MantineComponent<{
|
|
@@ -52,5 +56,6 @@ export declare const Modal: import("../../core").MantineComponent<{
|
|
|
52
56
|
Header: typeof ModalHeader;
|
|
53
57
|
Title: typeof ModalTitle;
|
|
54
58
|
CloseButton: typeof ModalCloseButton;
|
|
59
|
+
Stack: typeof ModalStack;
|
|
55
60
|
};
|
|
56
61
|
}>;
|
|
@@ -2,6 +2,7 @@ import { CompoundStylesApiProps, Factory } from '../../core';
|
|
|
2
2
|
import { ModalBaseContentProps } from '../ModalBase';
|
|
3
3
|
export type ModalContentStylesNames = 'content' | 'inner';
|
|
4
4
|
export interface ModalContentProps extends ModalBaseContentProps, CompoundStylesApiProps<ModalContentFactory> {
|
|
5
|
+
__hidden?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export type ModalContentFactory = Factory<{
|
|
7
8
|
props: ModalContentProps;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface ModalStackContext {
|
|
2
|
+
stack: string[];
|
|
3
|
+
addModal: (id: string, zIndex: number | string) => void;
|
|
4
|
+
removeModal: (id: string) => void;
|
|
5
|
+
getZIndex: (id: string) => string;
|
|
6
|
+
currentId: string;
|
|
7
|
+
maxZIndex: string | number;
|
|
8
|
+
}
|
|
9
|
+
declare const useModalStackContext: () => ModalStackContext | null;
|
|
10
|
+
export { useModalStackContext };
|
|
11
|
+
interface ModalStackProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare function ModalStack({ children }: ModalStackProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace ModalStack {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
@@ -6,6 +6,8 @@ export { ModalContent } from './ModalContent';
|
|
|
6
6
|
export { ModalHeader } from './ModalHeader';
|
|
7
7
|
export { ModalOverlay } from './ModalOverlay';
|
|
8
8
|
export { ModalTitle } from './ModalTitle';
|
|
9
|
+
export { ModalStack } from './ModalStack';
|
|
10
|
+
export { useModalsStack, useDrawersStack } from './use-modals-stack';
|
|
9
11
|
export type { ModalCssVariables, ModalFactory, ModalProps, ModalStylesNames } from './Modal';
|
|
10
12
|
export type { ModalRootProps } from './ModalRoot';
|
|
11
13
|
export type { ModalBodyProps } from './ModalBody';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface ModalStackReturnType<T extends string> {
|
|
2
|
+
state: Record<T, boolean>;
|
|
3
|
+
open: (id: T) => void;
|
|
4
|
+
close: (id: T) => void;
|
|
5
|
+
toggle: (id: T) => void;
|
|
6
|
+
closeAll: () => void;
|
|
7
|
+
register: (id: T) => {
|
|
8
|
+
opened: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
stackId: T;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function useModalsStack<const T extends string>(modals: T[]): ModalStackReturnType<T>;
|
|
14
|
+
export declare const useDrawersStack: typeof useModalsStack;
|
|
15
|
+
export {};
|
|
@@ -4,5 +4,7 @@ import { TransitionOverride } from '../Transition';
|
|
|
4
4
|
export interface ModalBaseOverlayProps extends Omit<OverlayProps, 'styles' | 'classNames' | 'variant' | 'vars'>, ElementProps<'div', 'color'> {
|
|
5
5
|
/** Props passed down to the `Transition` component */
|
|
6
6
|
transitionProps?: TransitionOverride;
|
|
7
|
+
/** Determines whether the overlay should be visible. By default, has the same value as `opened` state. */
|
|
8
|
+
visible?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export declare const ModalBaseOverlay: import("react").ForwardRefExoticComponent<ModalBaseOverlayProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -53,6 +53,8 @@ export interface SliderProps extends BoxProps, StylesApiProps<SliderFactory>, El
|
|
|
53
53
|
inverted?: boolean;
|
|
54
54
|
/** Props passed down to the hidden input */
|
|
55
55
|
hiddenInputProps?: React.ComponentPropsWithoutRef<'input'>;
|
|
56
|
+
/** Determines whether the selection should be only allowed from the given marks array, `false` by default */
|
|
57
|
+
restrictToMarks?: boolean;
|
|
56
58
|
}
|
|
57
59
|
export type SliderFactory = Factory<{
|
|
58
60
|
props: SliderProps;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { TreeNodeData } from '../Tree';
|
|
2
2
|
export declare function findTreeNode(value: string, data: TreeNodeData[]): TreeNodeData | null;
|
|
3
3
|
export declare function getChildrenNodesValues(value: string, data: TreeNodeData[], acc?: string[]): string[];
|
|
4
|
+
export declare function getAllChildrenNodes(data: TreeNodeData[]): string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Tree } from './Tree';
|
|
2
|
-
export { useTree } from './use-tree';
|
|
2
|
+
export { useTree, getTreeExpandedState } from './use-tree';
|
|
3
3
|
export type { TreeCssVariables, TreeFactory, TreeProps, TreeStylesNames, TreeNodeData, RenderTreeNodePayload, } from './Tree';
|
|
4
4
|
export type { UseTreeInput, UseTreeReturnType } from './use-tree';
|
|
5
5
|
export type { CheckedNodeStatus } from './get-all-checked-nodes/get-all-checked-nodes';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckedNodeStatus } from './get-all-checked-nodes/get-all-checked-nodes';
|
|
2
2
|
import type { TreeNodeData } from './Tree';
|
|
3
3
|
export type TreeExpandedState = Record<string, boolean>;
|
|
4
|
+
export declare function getTreeExpandedState(data: TreeNodeData[], expandedNodesValues: string[] | '*'): {};
|
|
4
5
|
export interface UseTreeInput {
|
|
5
6
|
/** Initial expanded state of all nodes */
|
|
6
7
|
initialExpandedState?: TreeExpandedState;
|
|
@@ -10,6 +11,10 @@ export interface UseTreeInput {
|
|
|
10
11
|
initialCheckedState?: string[];
|
|
11
12
|
/** Determines whether multiple node can be selected at a time */
|
|
12
13
|
multiple?: boolean;
|
|
14
|
+
/** Called with the node value when it is expanded */
|
|
15
|
+
onNodeExpand?: (value: string) => void;
|
|
16
|
+
/** Called with the node value when it is collapsed */
|
|
17
|
+
onNodeCollapse?: (value: string) => void;
|
|
13
18
|
}
|
|
14
19
|
export interface UseTreeReturnType {
|
|
15
20
|
/** Determines whether multiple node can be selected at a time */
|
|
@@ -56,6 +61,12 @@ export interface UseTreeReturnType {
|
|
|
56
61
|
checkNode: (value: string) => void;
|
|
57
62
|
/** Unchecks node with provided value */
|
|
58
63
|
uncheckNode: (value: string) => void;
|
|
64
|
+
/** Checks all nodes */
|
|
65
|
+
checkAllNodes: () => void;
|
|
66
|
+
/** Unchecks all nodes */
|
|
67
|
+
uncheckAllNodes: () => void;
|
|
68
|
+
/** Sets checked state */
|
|
69
|
+
setCheckedState: React.Dispatch<React.SetStateAction<string[]>>;
|
|
59
70
|
/** Returns all checked nodes with status */
|
|
60
71
|
getCheckedNodes: () => CheckedNodeStatus[];
|
|
61
72
|
/** Returns `true` if node with provided value is checked */
|
|
@@ -63,5 +74,5 @@ export interface UseTreeReturnType {
|
|
|
63
74
|
/** Returns `true` if node with provided value is indeterminate */
|
|
64
75
|
isNodeIndeterminate: (value: string) => boolean;
|
|
65
76
|
}
|
|
66
|
-
export declare function useTree({ initialSelectedState, initialCheckedState, initialExpandedState, multiple, }?: UseTreeInput): UseTreeReturnType;
|
|
77
|
+
export declare function useTree({ initialSelectedState, initialCheckedState, initialExpandedState, multiple, onNodeCollapse, onNodeExpand, }?: UseTreeInput): UseTreeReturnType;
|
|
67
78
|
export type TreeController = ReturnType<typeof useTree>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findClosestNumber(value: number, numbers: number[]): number;
|
|
@@ -23,4 +23,5 @@ export { useHovered } from './use-hovered/use-hovered';
|
|
|
23
23
|
export { createUseExternalEvents } from './create-use-external-events/create-use-external-events';
|
|
24
24
|
export { getEnv } from './get-env/get-env';
|
|
25
25
|
export { memoize } from './memoize/memoize';
|
|
26
|
+
export { findClosestNumber } from './find-closest-number/find-closest-number';
|
|
26
27
|
export { getRefProp } from './get-ref-prop/get-ref-prop';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.14.0",
|
|
4
4
|
"description": "React components library focused on usability, accessibility and developer experience",
|
|
5
5
|
"homepage": "https://mantine.dev/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"directory": "packages/@mantine/core"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@mantine/hooks": "7.
|
|
46
|
+
"@mantine/hooks": "7.14.0",
|
|
47
47
|
"react": "^18.x || ^19.x",
|
|
48
48
|
"react-dom": "^18.x || ^19.x"
|
|
49
49
|
},
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.m_48204f9b {
|
|
2
|
+
width: var(--slider-size);
|
|
3
|
+
height: var(--slider-size);
|
|
4
|
+
position: relative;
|
|
5
|
+
border-radius: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.m_48204f9b:focus-within {
|
|
13
|
+
outline: 2px solid var(--mantine-primary-color-filled);
|
|
14
|
+
outline-offset: 2px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m_48204f9b {
|
|
18
|
+
|
|
19
|
+
--slider-size: 60px;
|
|
20
|
+
--thumb-size: calc(var(--slider-size) / 5);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-mantine-color-scheme='light']) .m_48204f9b {
|
|
24
|
+
background-color: var(--mantine-color-gray-1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where([data-mantine-color-scheme='dark']) .m_48204f9b {
|
|
28
|
+
background-color: var(--mantine-color-dark-5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.m_bb9cdbad {
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 1px;
|
|
34
|
+
border-radius: var(--slider-size);
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.m_481dd586 {
|
|
39
|
+
width: 2px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: calc(50% - 1px);
|
|
44
|
+
transform: rotate(var(--angle));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.m_481dd586::before {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: calc(var(--thumb-size) / 3);
|
|
51
|
+
left: 0.5px;
|
|
52
|
+
width: 1px;
|
|
53
|
+
height: calc(var(--thumb-size) / 1.5);
|
|
54
|
+
transform: translate(-50%, -50%);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where([data-mantine-color-scheme='light']) .m_481dd586::before {
|
|
58
|
+
background-color: var(--mantine-color-gray-4);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where([data-mantine-color-scheme='dark']) .m_481dd586::before {
|
|
62
|
+
background-color: var(--mantine-color-dark-3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.m_481dd586[data-label]::after {
|
|
66
|
+
min-width: 18px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
content: attr(data-label);
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: -24px;
|
|
71
|
+
left: -7px;
|
|
72
|
+
transform: rotate(calc(360deg - var(--angle)));
|
|
73
|
+
font-size: var(--mantine-font-size-xs);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.m_bc02ba3d {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
left: calc(50% - 1.5px);
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 3px;
|
|
84
|
+
outline: none;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.m_bc02ba3d::before {
|
|
89
|
+
content: '';
|
|
90
|
+
position: absolute;
|
|
91
|
+
right: 0;
|
|
92
|
+
top: 0;
|
|
93
|
+
height: min(var(--thumb-size), calc(var(--slider-size) / 2));
|
|
94
|
+
width: 3px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where([data-mantine-color-scheme='light']) .m_bc02ba3d::before {
|
|
98
|
+
background-color: var(--mantine-color-gray-7);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where([data-mantine-color-scheme='dark']) .m_bc02ba3d::before {
|
|
102
|
+
background-color: var(--mantine-color-dark-1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.m_bb8e875b {
|
|
106
|
+
font-size: var(--mantine-font-size-xs);
|
|
107
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
@layer mantine {.m_48204f9b {
|
|
2
|
+
width: var(--slider-size);
|
|
3
|
+
height: var(--slider-size);
|
|
4
|
+
position: relative;
|
|
5
|
+
border-radius: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.m_48204f9b:focus-within {
|
|
13
|
+
outline: 2px solid var(--mantine-primary-color-filled);
|
|
14
|
+
outline-offset: 2px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.m_48204f9b {
|
|
18
|
+
|
|
19
|
+
--slider-size: 60px;
|
|
20
|
+
--thumb-size: calc(var(--slider-size) / 5);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where([data-mantine-color-scheme='light']) .m_48204f9b {
|
|
24
|
+
background-color: var(--mantine-color-gray-1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where([data-mantine-color-scheme='dark']) .m_48204f9b {
|
|
28
|
+
background-color: var(--mantine-color-dark-5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.m_bb9cdbad {
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: 1px;
|
|
34
|
+
border-radius: var(--slider-size);
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.m_481dd586 {
|
|
39
|
+
width: 2px;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: calc(50% - 1px);
|
|
44
|
+
transform: rotate(var(--angle));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.m_481dd586::before {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: calc(var(--thumb-size) / 3);
|
|
51
|
+
left: 0.5px;
|
|
52
|
+
width: 1px;
|
|
53
|
+
height: calc(var(--thumb-size) / 1.5);
|
|
54
|
+
transform: translate(-50%, -50%);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:where([data-mantine-color-scheme='light']) .m_481dd586::before {
|
|
58
|
+
background-color: var(--mantine-color-gray-4);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:where([data-mantine-color-scheme='dark']) .m_481dd586::before {
|
|
62
|
+
background-color: var(--mantine-color-dark-3);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.m_481dd586[data-label]::after {
|
|
66
|
+
min-width: 18px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
content: attr(data-label);
|
|
69
|
+
position: absolute;
|
|
70
|
+
top: -24px;
|
|
71
|
+
left: -7px;
|
|
72
|
+
transform: rotate(calc(360deg - var(--angle)));
|
|
73
|
+
font-size: var(--mantine-font-size-xs);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.m_bc02ba3d {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
bottom: 0;
|
|
81
|
+
left: calc(50% - 1.5px);
|
|
82
|
+
height: 100%;
|
|
83
|
+
width: 3px;
|
|
84
|
+
outline: none;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.m_bc02ba3d::before {
|
|
89
|
+
content: '';
|
|
90
|
+
position: absolute;
|
|
91
|
+
right: 0;
|
|
92
|
+
top: 0;
|
|
93
|
+
height: min(var(--thumb-size), calc(var(--slider-size) / 2));
|
|
94
|
+
width: 3px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where([data-mantine-color-scheme='light']) .m_bc02ba3d::before {
|
|
98
|
+
background-color: var(--mantine-color-gray-7);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:where([data-mantine-color-scheme='dark']) .m_bc02ba3d::before {
|
|
102
|
+
background-color: var(--mantine-color-dark-1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.m_bb8e875b {
|
|
106
|
+
font-size: var(--mantine-font-size-xs);
|
|
107
|
+
}
|
|
108
|
+
}
|
package/styles/Drawer.css
CHANGED
package/styles/Drawer.layer.css
CHANGED
package/styles/Modal.css
CHANGED