@mantine/core 7.11.2 → 7.12.1
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/Accordion/Accordion.cjs +2 -0
- package/cjs/components/Accordion/Accordion.cjs.map +1 -1
- package/cjs/components/Accordion/AccordionPanel/AccordionPanel.cjs.map +1 -1
- package/cjs/components/Combobox/Combobox.module.css.cjs +1 -1
- package/cjs/components/FloatingIndicator/use-floating-indicator.cjs +2 -2
- package/cjs/components/FloatingIndicator/use-floating-indicator.cjs.map +1 -1
- package/cjs/components/Menu/MenuDropdown/MenuDropdown.cjs +10 -1
- package/cjs/components/Menu/MenuDropdown/MenuDropdown.cjs.map +1 -1
- package/cjs/components/Menu/MenuItem/MenuItem.cjs +1 -0
- package/cjs/components/Menu/MenuItem/MenuItem.cjs.map +1 -1
- package/cjs/components/PinInput/PinInput.cjs +3 -1
- package/cjs/components/PinInput/PinInput.cjs.map +1 -1
- package/cjs/components/Popover/use-popover.cjs +9 -5
- package/cjs/components/Popover/use-popover.cjs.map +1 -1
- package/cjs/components/ScrollArea/ScrollArea.cjs +9 -0
- package/cjs/components/ScrollArea/ScrollArea.cjs.map +1 -1
- package/cjs/components/SegmentedControl/SegmentedControl.cjs +1 -0
- package/cjs/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/cjs/components/SemiCircleProgress/SemiCircleProgress.cjs +136 -0
- package/cjs/components/SemiCircleProgress/SemiCircleProgress.cjs.map +1 -0
- package/cjs/components/SemiCircleProgress/SemiCircleProgress.module.css.cjs +7 -0
- package/cjs/components/SemiCircleProgress/SemiCircleProgress.module.css.cjs.map +1 -0
- package/cjs/components/Switch/Switch.cjs +1 -1
- package/cjs/components/Switch/Switch.cjs.map +1 -1
- package/cjs/components/TagsInput/TagsInput.cjs +2 -0
- package/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
- package/cjs/components/Tooltip/TooltipGroup/TooltipGroup.cjs +1 -0
- package/cjs/components/Tooltip/TooltipGroup/TooltipGroup.cjs.map +1 -1
- package/cjs/components/Tree/Tree.cjs.map +1 -1
- package/cjs/components/Tree/TreeNode.cjs +1 -0
- package/cjs/components/Tree/TreeNode.cjs.map +1 -1
- package/cjs/components/Tree/get-all-checked-nodes/get-all-checked-nodes.cjs +39 -0
- package/cjs/components/Tree/get-all-checked-nodes/get-all-checked-nodes.cjs.map +1 -0
- package/cjs/components/Tree/get-children-nodes-values/get-children-nodes-values.cjs +38 -0
- package/cjs/components/Tree/get-children-nodes-values/get-children-nodes-values.cjs.map +1 -0
- package/cjs/components/Tree/is-node-checked/is-node-checked.cjs +32 -0
- package/cjs/components/Tree/is-node-checked/is-node-checked.cjs.map +1 -0
- package/cjs/components/Tree/is-node-indeterminate/is-node-indeterminate.cjs +29 -0
- package/cjs/components/Tree/is-node-indeterminate/is-node-indeterminate.cjs.map +1 -0
- package/cjs/components/Tree/use-tree.cjs +33 -3
- package/cjs/components/Tree/use-tree.cjs.map +1 -1
- package/cjs/core/factory/factory.cjs +10 -0
- package/cjs/core/factory/factory.cjs.map +1 -1
- package/cjs/core/utils/memoize/memoize.cjs +18 -0
- package/cjs/core/utils/memoize/memoize.cjs.map +1 -0
- package/cjs/index.cjs +5 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/components/Accordion/Accordion.mjs +2 -0
- package/esm/components/Accordion/Accordion.mjs.map +1 -1
- package/esm/components/Accordion/AccordionPanel/AccordionPanel.mjs.map +1 -1
- package/esm/components/Combobox/Combobox.module.css.mjs +1 -1
- package/esm/components/FloatingIndicator/use-floating-indicator.mjs +2 -2
- package/esm/components/FloatingIndicator/use-floating-indicator.mjs.map +1 -1
- package/esm/components/Menu/MenuDropdown/MenuDropdown.mjs +10 -1
- package/esm/components/Menu/MenuDropdown/MenuDropdown.mjs.map +1 -1
- package/esm/components/Menu/MenuItem/MenuItem.mjs +1 -0
- package/esm/components/Menu/MenuItem/MenuItem.mjs.map +1 -1
- package/esm/components/PinInput/PinInput.mjs +3 -1
- package/esm/components/PinInput/PinInput.mjs.map +1 -1
- package/esm/components/Popover/use-popover.mjs +9 -5
- package/esm/components/Popover/use-popover.mjs.map +1 -1
- package/esm/components/ScrollArea/ScrollArea.mjs +9 -0
- package/esm/components/ScrollArea/ScrollArea.mjs.map +1 -1
- package/esm/components/SegmentedControl/SegmentedControl.mjs +1 -0
- package/esm/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/esm/components/SemiCircleProgress/SemiCircleProgress.mjs +134 -0
- package/esm/components/SemiCircleProgress/SemiCircleProgress.mjs.map +1 -0
- package/esm/components/SemiCircleProgress/SemiCircleProgress.module.css.mjs +5 -0
- package/esm/components/SemiCircleProgress/SemiCircleProgress.module.css.mjs.map +1 -0
- package/esm/components/Switch/Switch.mjs +1 -1
- package/esm/components/Switch/Switch.mjs.map +1 -1
- package/esm/components/TagsInput/TagsInput.mjs +2 -0
- package/esm/components/TagsInput/TagsInput.mjs.map +1 -1
- package/esm/components/Tooltip/TooltipGroup/TooltipGroup.mjs +1 -0
- package/esm/components/Tooltip/TooltipGroup/TooltipGroup.mjs.map +1 -1
- package/esm/components/Tree/Tree.mjs.map +1 -1
- package/esm/components/Tree/TreeNode.mjs +1 -0
- package/esm/components/Tree/TreeNode.mjs.map +1 -1
- package/esm/components/Tree/get-all-checked-nodes/get-all-checked-nodes.mjs +37 -0
- package/esm/components/Tree/get-all-checked-nodes/get-all-checked-nodes.mjs.map +1 -0
- package/esm/components/Tree/get-children-nodes-values/get-children-nodes-values.mjs +35 -0
- package/esm/components/Tree/get-children-nodes-values/get-children-nodes-values.mjs.map +1 -0
- package/esm/components/Tree/is-node-checked/is-node-checked.mjs +29 -0
- package/esm/components/Tree/is-node-checked/is-node-checked.mjs.map +1 -0
- package/esm/components/Tree/is-node-indeterminate/is-node-indeterminate.mjs +26 -0
- package/esm/components/Tree/is-node-indeterminate/is-node-indeterminate.mjs.map +1 -0
- package/esm/components/Tree/use-tree.mjs +33 -3
- package/esm/components/Tree/use-tree.mjs.map +1 -1
- package/esm/core/factory/factory.mjs +10 -1
- package/esm/core/factory/factory.mjs.map +1 -1
- package/esm/core/utils/memoize/memoize.mjs +16 -0
- package/esm/core/utils/memoize/memoize.mjs.map +1 -0
- package/esm/index.mjs +3 -1
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +1 -0
- package/lib/components/Accordion/AccordionPanel/AccordionPanel.d.ts +3 -1
- package/lib/components/PinInput/PinInput.d.ts +3 -0
- package/lib/components/ScrollArea/ScrollArea.d.ts +4 -0
- package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +39 -0
- package/lib/components/SemiCircleProgress/index.d.ts +2 -0
- package/lib/components/Tooltip/TooltipGroup/TooltipGroup.d.ts +7 -0
- package/lib/components/Tree/Tree.d.ts +2 -0
- package/lib/components/Tree/get-all-checked-nodes/get-all-checked-nodes.d.ts +11 -0
- package/lib/components/Tree/get-children-nodes-values/get-children-nodes-values.d.ts +3 -0
- package/lib/components/Tree/index.d.ts +1 -0
- package/lib/components/Tree/is-node-checked/is-node-checked.d.ts +3 -0
- package/lib/components/Tree/is-node-indeterminate/is-node-indeterminate.d.ts +3 -0
- package/lib/components/Tree/use-tree.d.ts +13 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/core/factory/factory.d.ts +1 -0
- package/lib/core/factory/index.d.ts +1 -1
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/core/utils/memoize/memoize.d.ts +1 -0
- package/package.json +3 -3
- package/styles/Badge.css +3 -1
- package/styles/Badge.layer.css +3 -1
- package/styles/Chip.css +1 -1
- package/styles/Chip.layer.css +1 -1
- package/styles/Combobox.css +4 -0
- package/styles/Combobox.layer.css +4 -0
- package/styles/Pill.css +2 -0
- package/styles/Pill.layer.css +2 -0
- package/styles/ScrollArea.css +1 -1
- package/styles/ScrollArea.layer.css +1 -1
- package/styles/SemiCircleProgress.css +56 -0
- package/styles/SemiCircleProgress.layer.css +57 -0
- package/styles/Slider.css +1 -1
- package/styles/Slider.layer.css +1 -1
- package/styles/Switch.css +4 -0
- package/styles/Switch.layer.css +4 -0
- package/styles/global.css +4 -0
- package/styles/global.layer.css +4 -0
- package/styles.css +77 -4
- package/styles.layer.css +77 -4
|
@@ -48,6 +48,7 @@ export declare namespace Accordion {
|
|
|
48
48
|
vars: AccordionCssVariables;
|
|
49
49
|
variant: AccordionVariant;
|
|
50
50
|
}>) => MantineThemeComponent;
|
|
51
|
+
var withProps: (props: Partial<AccordionProps<false>>) => AccordionProps<false>;
|
|
51
52
|
var classes: any;
|
|
52
53
|
var displayName: string;
|
|
53
54
|
var Item: import("../../core").MantineComponent<{
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core';
|
|
2
2
|
export type AccordionPanelStylesNames = 'panel' | 'content';
|
|
3
|
-
export interface AccordionPanelProps extends BoxProps, CompoundStylesApiProps<AccordionPanelFactory>, ElementProps<'div'
|
|
3
|
+
export interface AccordionPanelProps extends BoxProps, CompoundStylesApiProps<AccordionPanelFactory>, ElementProps<'div'> {
|
|
4
|
+
/** Called when the panel animation completes */
|
|
5
|
+
onTransitionEnd?: () => void;
|
|
4
6
|
}
|
|
5
7
|
export type AccordionPanelFactory = Factory<{
|
|
6
8
|
props: AccordionPanelProps;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BoxProps, ElementProps, Factory, MantineRadius, MantineSize, MantineSpacing, StylesApiProps } from '../../core';
|
|
2
|
+
import { InputProps } from '../Input';
|
|
2
3
|
export type PinInputStylesNames = 'root' | 'pinInput' | 'input';
|
|
3
4
|
export type PinInputCssVariables = {
|
|
4
5
|
root: '--pin-input-size';
|
|
@@ -54,6 +55,8 @@ export interface PinInputProps extends BoxProps, StylesApiProps<PinInputFactory>
|
|
|
54
55
|
hiddenInputProps?: React.ComponentPropsWithoutRef<'input'>;
|
|
55
56
|
/** Assigns ref of the root element */
|
|
56
57
|
rootRef?: React.ForwardedRef<HTMLDivElement>;
|
|
58
|
+
/** Props added to the input element depending on its index */
|
|
59
|
+
getInputProps?: (index: number) => InputProps & ElementProps<'input', 'size'>;
|
|
57
60
|
}
|
|
58
61
|
export type PinInputFactory = Factory<{
|
|
59
62
|
props: PinInputProps;
|
|
@@ -30,6 +30,10 @@ export interface ScrollAreaProps extends BoxProps, StylesApiProps<ScrollAreaFact
|
|
|
30
30
|
x: number;
|
|
31
31
|
y: number;
|
|
32
32
|
}) => void;
|
|
33
|
+
/** Called when scrollarea is scrolled all the way to the bottom */
|
|
34
|
+
onBottomReached?: () => void;
|
|
35
|
+
/** Called when scrollarea is scrolled all the way to the top */
|
|
36
|
+
onTopReached?: () => void;
|
|
33
37
|
}
|
|
34
38
|
export interface ScrollAreaAutosizeProps extends ScrollAreaProps {
|
|
35
39
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BoxProps, ElementProps, Factory, MantineColor, StylesApiProps } from '../../core';
|
|
2
|
+
export type SemiCircleProgressStylesNames = 'root' | 'svg' | 'emptySegment' | 'filledSegment' | 'label';
|
|
3
|
+
export type SemiCircleProgressCssVariables = {
|
|
4
|
+
root: '--scp-filled-segment-color' | '--scp-empty-segment-color' | '--scp-rotation' | '--scp-transition-duration' | '--scp-thickness';
|
|
5
|
+
};
|
|
6
|
+
export interface SemiCircleProgressProps extends BoxProps, StylesApiProps<SemiCircleProgressFactory>, ElementProps<'div'> {
|
|
7
|
+
/** Progress value from `0` to `100` */
|
|
8
|
+
value: number;
|
|
9
|
+
/** Diameter of the svg in px, `200` by default */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Circle thickness in px, `12` by default */
|
|
12
|
+
thickness?: number;
|
|
13
|
+
/** Orientation of the circle, `'up'` by default */
|
|
14
|
+
orientation?: 'up' | 'down';
|
|
15
|
+
/** Direction from which the circle is filled, `'left-to-right'` by default */
|
|
16
|
+
fillDirection?: 'right-to-left' | 'left-to-right';
|
|
17
|
+
/** Key of `theme.colors` or any valid CSS color value, `theme.primaryColor` by default */
|
|
18
|
+
filledSegmentColor?: MantineColor;
|
|
19
|
+
/** Key of `theme.colors` or any valid CSS color value, by default the value is determined based on the color scheme value */
|
|
20
|
+
emptySegmentColor?: MantineColor;
|
|
21
|
+
/** Transition duration of filled section styles changes in ms, `0` by default */
|
|
22
|
+
transitionDuration?: number;
|
|
23
|
+
/** Label rendered inside the circle */
|
|
24
|
+
label?: React.ReactNode;
|
|
25
|
+
/** Label position relative to the circle center, `'bottom'` by default */
|
|
26
|
+
labelPosition?: 'center' | 'bottom';
|
|
27
|
+
}
|
|
28
|
+
export type SemiCircleProgressFactory = Factory<{
|
|
29
|
+
props: SemiCircleProgressProps;
|
|
30
|
+
ref: HTMLDivElement;
|
|
31
|
+
stylesNames: SemiCircleProgressStylesNames;
|
|
32
|
+
vars: SemiCircleProgressCssVariables;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const SemiCircleProgress: import("../../core").MantineComponent<{
|
|
35
|
+
props: SemiCircleProgressProps;
|
|
36
|
+
ref: HTMLDivElement;
|
|
37
|
+
stylesNames: SemiCircleProgressStylesNames;
|
|
38
|
+
vars: SemiCircleProgressCssVariables;
|
|
39
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Factory, MantineThemeComponent } from '../../../core';
|
|
1
2
|
export interface TooltipGroupProps {
|
|
2
3
|
/** <Tooltip /> components */
|
|
3
4
|
children: React.ReactNode;
|
|
@@ -9,4 +10,10 @@ export interface TooltipGroupProps {
|
|
|
9
10
|
export declare function TooltipGroup(props: TooltipGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export declare namespace TooltipGroup {
|
|
11
12
|
var displayName: string;
|
|
13
|
+
var extend: (c: import("../../../core/factory/factory").ExtendsRootComponent<{
|
|
14
|
+
props: TooltipGroupProps;
|
|
15
|
+
}>) => MantineThemeComponent;
|
|
12
16
|
}
|
|
17
|
+
export type TooltipGroupFactory = Factory<{
|
|
18
|
+
props: TooltipGroupProps;
|
|
19
|
+
}>;
|
|
@@ -17,6 +17,8 @@ export interface RenderTreeNodePayload {
|
|
|
17
17
|
selected: boolean;
|
|
18
18
|
/** Node data from the `data` prop of `Tree` */
|
|
19
19
|
node: TreeNodeData;
|
|
20
|
+
/** Tree controller instance, return value of `useTree` hook */
|
|
21
|
+
tree: TreeController;
|
|
20
22
|
/** Props to spread into the root node element */
|
|
21
23
|
elementProps: {
|
|
22
24
|
className: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TreeNodeData } from '../Tree';
|
|
2
|
+
export interface CheckedNodeStatus {
|
|
3
|
+
checked: boolean;
|
|
4
|
+
indeterminate: boolean;
|
|
5
|
+
hasChildren: boolean;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function getAllCheckedNodes(data: TreeNodeData[], checkedState: string[], acc?: CheckedNodeStatus[]): {
|
|
9
|
+
result: CheckedNodeStatus[];
|
|
10
|
+
currentTreeChecked: CheckedNodeStatus[];
|
|
11
|
+
};
|
|
@@ -2,3 +2,4 @@ export { Tree } from './Tree';
|
|
|
2
2
|
export { useTree } 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
|
+
export type { CheckedNodeStatus } from './get-all-checked-nodes/get-all-checked-nodes';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TreeNodeData } from '../Tree';
|
|
2
|
+
export declare function isNodeIndeterminate(value: string, data: TreeNodeData[], checkedState: string[]): boolean;
|
|
3
|
+
export declare const memoizedIsNodeIndeterminate: (value: string, data: TreeNodeData[], checkedState: string[]) => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CheckedNodeStatus } from './get-all-checked-nodes/get-all-checked-nodes';
|
|
1
2
|
import type { TreeNodeData } from './Tree';
|
|
2
3
|
export type TreeExpandedState = Record<string, boolean>;
|
|
3
4
|
export interface UseTreeInput {
|
|
@@ -15,6 +16,8 @@ export interface UseTreeReturnType {
|
|
|
15
16
|
expandedState: TreeExpandedState;
|
|
16
17
|
/** An array of selected nodes values */
|
|
17
18
|
selectedState: string[];
|
|
19
|
+
/** An array of checked nodes values */
|
|
20
|
+
checkedState: string[];
|
|
18
21
|
/** A value of the node that was last clicked
|
|
19
22
|
* Anchor node is used to determine range of selected nodes for multiple selection
|
|
20
23
|
*/
|
|
@@ -47,6 +50,16 @@ export interface UseTreeReturnType {
|
|
|
47
50
|
hoveredNode: string | null;
|
|
48
51
|
/** Sets hovered node */
|
|
49
52
|
setHoveredNode: React.Dispatch<React.SetStateAction<string | null>>;
|
|
53
|
+
/** Checks node with provided value */
|
|
54
|
+
checkNode: (value: string) => void;
|
|
55
|
+
/** Unchecks node with provided value */
|
|
56
|
+
uncheckNode: (value: string) => void;
|
|
57
|
+
/** Returns all checked nodes with status */
|
|
58
|
+
getCheckedNodes: () => CheckedNodeStatus[];
|
|
59
|
+
/** Returns `true` if node with provided value is checked */
|
|
60
|
+
isNodeChecked: (value: string) => boolean;
|
|
61
|
+
/** Returns `true` if node with provided value is indeterminate */
|
|
62
|
+
isNodeIndeterminate: (value: string) => boolean;
|
|
50
63
|
}
|
|
51
64
|
export declare function useTree({ initialSelectedState, initialExpandedState, multiple, }?: UseTreeInput): UseTreeReturnType;
|
|
52
65
|
export type TreeController = ReturnType<typeof useTree>;
|
|
@@ -77,6 +77,7 @@ export * from './Rating';
|
|
|
77
77
|
export * from './RingProgress';
|
|
78
78
|
export * from './SegmentedControl';
|
|
79
79
|
export * from './Select';
|
|
80
|
+
export * from './SemiCircleProgress';
|
|
80
81
|
export * from './SimpleGrid';
|
|
81
82
|
export * from './Skeleton';
|
|
82
83
|
export * from './Slider';
|
|
@@ -40,4 +40,5 @@ export type MantineComponent<Payload extends FactoryPayload> = React.ForwardRefE
|
|
|
40
40
|
renderRoot?: (props: Record<string, any>) => React.ReactNode;
|
|
41
41
|
}> & MantineComponentStaticProperties<Payload>;
|
|
42
42
|
export declare function identity<T>(value: T): T;
|
|
43
|
+
export declare function getWithProps<T, Props>(Component: T): (props: Partial<Props>) => T;
|
|
43
44
|
export declare function factory<Payload extends FactoryPayload>(ui: React.ForwardRefRenderFunction<Payload['ref'], Payload['props']>): MantineComponent<Payload>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { factory } from './factory';
|
|
1
|
+
export { factory, getWithProps } from './factory';
|
|
2
2
|
export { polymorphicFactory } from './polymorphic-factory';
|
|
3
3
|
export { createPolymorphicComponent } from './create-polymorphic-component';
|
|
4
4
|
export type { FactoryPayload, ExtendComponent, MantineComponent, MantineComponentStaticProperties, FactoryComponentWithProps, } from './factory';
|
|
@@ -22,3 +22,4 @@ export { getContextItemIndex } from './get-context-item-index/get-context-item-i
|
|
|
22
22
|
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
|
+
export { memoize } from './memoize/memoize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function memoize<T extends (...args: any[]) => any>(func: T): (...args: Parameters<T>) => ReturnType<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.12.1",
|
|
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.12.1",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0"
|
|
49
49
|
},
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@mantine-tests/core": "1.1.0",
|
|
60
|
-
"@mantine/hooks": "7.
|
|
60
|
+
"@mantine/hooks": "7.12.1"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/styles/Badge.css
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
line-height: var(--badge-lh);
|
|
34
34
|
text-decoration: none;
|
|
35
35
|
padding: 0 var(--badge-padding-x);
|
|
36
|
-
display:
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: auto 1fr auto;
|
|
37
38
|
align-items: center;
|
|
38
39
|
justify-content: center;
|
|
39
40
|
width: fit-content;
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
|
|
56
57
|
.m_347db0ec:where([data-circle]) {
|
|
57
58
|
padding-inline: 2px;
|
|
59
|
+
display: flex;
|
|
58
60
|
width: var(--badge-height);
|
|
59
61
|
}
|
|
60
62
|
|
package/styles/Badge.layer.css
CHANGED
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
line-height: var(--badge-lh);
|
|
34
34
|
text-decoration: none;
|
|
35
35
|
padding: 0 var(--badge-padding-x);
|
|
36
|
-
display:
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: auto 1fr auto;
|
|
37
38
|
align-items: center;
|
|
38
39
|
justify-content: center;
|
|
39
40
|
width: fit-content;
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
|
|
56
57
|
.m_347db0ec:where([data-circle]) {
|
|
57
58
|
padding-inline: 2px;
|
|
59
|
+
display: flex;
|
|
58
60
|
width: var(--badge-height);
|
|
59
61
|
}
|
|
60
62
|
|
package/styles/Chip.css
CHANGED
package/styles/Chip.layer.css
CHANGED
package/styles/Combobox.css
CHANGED
package/styles/Pill.css
CHANGED
package/styles/Pill.layer.css
CHANGED
package/styles/ScrollArea.css
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.m_fa528724 {
|
|
2
|
+
--scp-filled-segment-color: var(--mantine-primary-color-filled);
|
|
3
|
+
--scp-transition-duration: 0ms;
|
|
4
|
+
--scp-thickness: 10px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where([data-mantine-color-scheme='light']) .m_fa528724 {
|
|
8
|
+
--scp-empty-segment-color: var(--mantine-color-gray-2);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-mantine-color-scheme='dark']) .m_fa528724 {
|
|
12
|
+
--scp-empty-segment-color: var(--mantine-color-dark-4);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.m_fa528724 {
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
width: fit-content;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m_62e9e7e2 {
|
|
22
|
+
display: block;
|
|
23
|
+
transform: var(--scp-rotation);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_c573fb6f {
|
|
28
|
+
transition:
|
|
29
|
+
stroke-dashoffset var(--scp-transition-duration) ease,
|
|
30
|
+
stroke-dasharray var(--scp-transition-duration) ease,
|
|
31
|
+
stroke var(--scp-transition-duration);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m_4fa340f2 {
|
|
35
|
+
position: absolute;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
inset-inline: 0;
|
|
39
|
+
text-align: center;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.m_4fa340f2:where([data-position='bottom']) {
|
|
44
|
+
bottom: 0;
|
|
45
|
+
padding-inline: calc(var(--scp-thickness) * 2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.m_4fa340f2:where([data-position='bottom']):where([data-orientation='down']) {
|
|
49
|
+
bottom: auto;
|
|
50
|
+
top: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.m_4fa340f2:where([data-position='center']) {
|
|
54
|
+
top: 50%;
|
|
55
|
+
padding-inline: calc(var(--scp-thickness) * 3);
|
|
56
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@layer mantine {.m_fa528724 {
|
|
2
|
+
--scp-filled-segment-color: var(--mantine-primary-color-filled);
|
|
3
|
+
--scp-transition-duration: 0ms;
|
|
4
|
+
--scp-thickness: 10px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where([data-mantine-color-scheme='light']) .m_fa528724 {
|
|
8
|
+
--scp-empty-segment-color: var(--mantine-color-gray-2);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:where([data-mantine-color-scheme='dark']) .m_fa528724 {
|
|
12
|
+
--scp-empty-segment-color: var(--mantine-color-dark-4);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.m_fa528724 {
|
|
16
|
+
|
|
17
|
+
position: relative;
|
|
18
|
+
width: fit-content;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.m_62e9e7e2 {
|
|
22
|
+
display: block;
|
|
23
|
+
transform: var(--scp-rotation);
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.m_c573fb6f {
|
|
28
|
+
transition:
|
|
29
|
+
stroke-dashoffset var(--scp-transition-duration) ease,
|
|
30
|
+
stroke-dasharray var(--scp-transition-duration) ease,
|
|
31
|
+
stroke var(--scp-transition-duration);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.m_4fa340f2 {
|
|
35
|
+
position: absolute;
|
|
36
|
+
margin: 0;
|
|
37
|
+
padding: 0;
|
|
38
|
+
inset-inline: 0;
|
|
39
|
+
text-align: center;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.m_4fa340f2:where([data-position='bottom']) {
|
|
44
|
+
bottom: 0;
|
|
45
|
+
padding-inline: calc(var(--scp-thickness) * 2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.m_4fa340f2:where([data-position='bottom']):where([data-orientation='down']) {
|
|
49
|
+
bottom: auto;
|
|
50
|
+
top: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.m_4fa340f2:where([data-position='center']) {
|
|
54
|
+
top: 50%;
|
|
55
|
+
padding-inline: calc(var(--scp-thickness) * 3);
|
|
56
|
+
}
|
|
57
|
+
}
|
package/styles/Slider.css
CHANGED
|
@@ -175,7 +175,7 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
175
175
|
height: var(--slider-size);
|
|
176
176
|
width: var(--slider-size);
|
|
177
177
|
border-radius: 1000px;
|
|
178
|
-
transform: translateX(
|
|
178
|
+
transform: translateX(calc(var(--slider-size) / -2));
|
|
179
179
|
background-color: var(--mantine-color-white);
|
|
180
180
|
pointer-events: none;
|
|
181
181
|
}
|
package/styles/Slider.layer.css
CHANGED
|
@@ -175,7 +175,7 @@ fieldset:disabled .m_c9ade57f:where([data-inverted]),
|
|
|
175
175
|
height: var(--slider-size);
|
|
176
176
|
width: var(--slider-size);
|
|
177
177
|
border-radius: 1000px;
|
|
178
|
-
transform: translateX(
|
|
178
|
+
transform: translateX(calc(var(--slider-size) / -2));
|
|
179
179
|
background-color: var(--mantine-color-white);
|
|
180
180
|
pointer-events: none;
|
|
181
181
|
}
|
package/styles/Switch.css
CHANGED
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
color: var(--switch-text-color);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.m_9307d992:where([data-without-labels]) {
|
|
81
|
+
width: var(--switch-width);
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
.m_926b4011:focus-visible + .m_9307d992 {
|
|
81
85
|
outline: 2px solid var(--mantine-primary-color-filled);
|
|
82
86
|
outline-offset: 2px;
|
package/styles/Switch.layer.css
CHANGED
|
@@ -77,6 +77,10 @@
|
|
|
77
77
|
color: var(--switch-text-color);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.m_9307d992:where([data-without-labels]) {
|
|
81
|
+
width: var(--switch-width);
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
.m_926b4011:focus-visible + .m_9307d992 {
|
|
81
85
|
outline: 2px solid var(--mantine-primary-color-filled);
|
|
82
86
|
outline-offset: 2px;
|
package/styles/global.css
CHANGED
package/styles/global.layer.css
CHANGED