@mantine/core 7.11.0 → 7.11.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/Floating/FloatingArrow/get-arrow-position-styles.cjs +4 -17
- package/cjs/components/Floating/FloatingArrow/get-arrow-position-styles.cjs.map +1 -1
- package/cjs/components/ModalBase/ModalBase.cjs +22 -13
- package/cjs/components/ModalBase/ModalBase.cjs.map +1 -1
- package/cjs/components/MultiSelect/MultiSelect.cjs +1 -1
- package/cjs/components/MultiSelect/MultiSelect.cjs.map +1 -1
- package/cjs/components/NumberInput/NumberInput.cjs +3 -1
- package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
- package/cjs/components/PinInput/PinInput.cjs +1 -0
- package/cjs/components/PinInput/PinInput.cjs.map +1 -1
- package/cjs/components/Popover/Popover.cjs +2 -1
- package/cjs/components/Popover/Popover.cjs.map +1 -1
- package/cjs/components/Popover/Popover.context.cjs.map +1 -1
- package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.cjs +1 -0
- package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.cjs.map +1 -1
- package/cjs/components/Select/Select.cjs +2 -2
- package/cjs/components/Select/Select.cjs.map +1 -1
- package/cjs/components/TagsInput/TagsInput.cjs +12 -0
- package/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
- package/cjs/components/Tooltip/Tooltip.cjs +3 -0
- package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
- package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +4 -1
- package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
- package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs +3 -2
- package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs.map +1 -1
- package/cjs/components/Tooltip/use-tooltip.cjs +1 -1
- package/cjs/components/Tooltip/use-tooltip.cjs.map +1 -1
- package/cjs/components/Tree/Tree.cjs +1 -0
- package/cjs/components/Tree/Tree.cjs.map +1 -1
- package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs +2 -2
- package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs.map +1 -1
- package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs +4 -17
- package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs.map +1 -1
- package/esm/components/ModalBase/ModalBase.mjs +22 -13
- package/esm/components/ModalBase/ModalBase.mjs.map +1 -1
- package/esm/components/MultiSelect/MultiSelect.mjs +1 -1
- package/esm/components/MultiSelect/MultiSelect.mjs.map +1 -1
- package/esm/components/NumberInput/NumberInput.mjs +3 -1
- package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
- package/esm/components/PinInput/PinInput.mjs +1 -0
- package/esm/components/PinInput/PinInput.mjs.map +1 -1
- package/esm/components/Popover/Popover.context.mjs.map +1 -1
- package/esm/components/Popover/Popover.mjs +2 -1
- package/esm/components/Popover/Popover.mjs.map +1 -1
- package/esm/components/Popover/PopoverDropdown/PopoverDropdown.mjs +1 -0
- package/esm/components/Popover/PopoverDropdown/PopoverDropdown.mjs.map +1 -1
- package/esm/components/Select/Select.mjs +2 -2
- package/esm/components/Select/Select.mjs.map +1 -1
- package/esm/components/TagsInput/TagsInput.mjs +13 -1
- package/esm/components/TagsInput/TagsInput.mjs.map +1 -1
- package/esm/components/Tooltip/Tooltip.mjs +3 -0
- package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
- package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +4 -1
- package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
- package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs +3 -2
- package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs.map +1 -1
- package/esm/components/Tooltip/use-tooltip.mjs +1 -1
- package/esm/components/Tooltip/use-tooltip.mjs.map +1 -1
- package/esm/components/Tree/Tree.mjs +1 -0
- package/esm/components/Tree/Tree.mjs.map +1 -1
- package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs +2 -2
- package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs.map +1 -1
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/Popover/Popover.context.d.ts +2 -1
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.d.ts +2 -0
- package/lib/components/Tooltip/TooltipFloating/TooltipFloating.d.ts +2 -0
- package/lib/components/Tooltip/TooltipFloating/use-floating-tooltip.d.ts +4 -3
- package/lib/components/Tooltip/use-tooltip.d.ts +1 -0
- package/lib/core/Box/style-props/style-props.types.d.ts +41 -0
- package/package.json +3 -3
- package/styles/ActionIcon.css +2 -2
- package/styles/ActionIcon.layer.css +2 -2
- package/styles/Popover.css +4 -0
- package/styles/Popover.layer.css +4 -0
- package/styles.css +6 -2
- package/styles.layer.css +6 -2
|
@@ -1,47 +1,88 @@
|
|
|
1
1
|
import type { MantineBreakpoint, MantineColor, MantineFontSize, MantineLineHeight, MantineSpacing } from '../../MantineProvider';
|
|
2
2
|
export type StyleProp<Value> = Value | Partial<Record<MantineBreakpoint | (string & {}), Value>>;
|
|
3
3
|
export interface MantineStyleProps {
|
|
4
|
+
/** margin, theme key: theme.spacing */
|
|
4
5
|
m?: StyleProp<MantineSpacing>;
|
|
6
|
+
/** marginBlock, theme key: theme.spacing */
|
|
5
7
|
my?: StyleProp<MantineSpacing>;
|
|
8
|
+
/** marginInline, theme key: theme.spacing */
|
|
6
9
|
mx?: StyleProp<MantineSpacing>;
|
|
10
|
+
/** marginTop, theme key: theme.spacing */
|
|
7
11
|
mt?: StyleProp<MantineSpacing>;
|
|
12
|
+
/** marginBottom, theme key: theme.spacing */
|
|
8
13
|
mb?: StyleProp<MantineSpacing>;
|
|
14
|
+
/** marginInlineStart, theme key: theme.spacing */
|
|
9
15
|
ms?: StyleProp<MantineSpacing>;
|
|
16
|
+
/** marginInlineEnd, theme key: theme.spacing */
|
|
10
17
|
me?: StyleProp<MantineSpacing>;
|
|
18
|
+
/** marginLeft, theme key: theme.spacing */
|
|
11
19
|
ml?: StyleProp<MantineSpacing>;
|
|
20
|
+
/** marginRight, theme key: theme.spacing */
|
|
12
21
|
mr?: StyleProp<MantineSpacing>;
|
|
22
|
+
/** padding, theme key: theme.spacing */
|
|
13
23
|
p?: StyleProp<MantineSpacing>;
|
|
24
|
+
/** paddingBlock, theme key: theme.spacing */
|
|
14
25
|
py?: StyleProp<MantineSpacing>;
|
|
26
|
+
/** paddingInline, theme key: theme.spacing */
|
|
15
27
|
px?: StyleProp<MantineSpacing>;
|
|
28
|
+
/** paddingTop, theme key: theme.spacing */
|
|
16
29
|
pt?: StyleProp<MantineSpacing>;
|
|
30
|
+
/** paddingBottom, theme key: theme.spacing */
|
|
17
31
|
pb?: StyleProp<MantineSpacing>;
|
|
32
|
+
/** paddingInlineStart, theme key: theme.spacing */
|
|
18
33
|
ps?: StyleProp<MantineSpacing>;
|
|
34
|
+
/** paddingInlineEnd, theme key: theme.spacing */
|
|
19
35
|
pe?: StyleProp<MantineSpacing>;
|
|
36
|
+
/** paddingLeft, theme key: theme.spacing */
|
|
20
37
|
pl?: StyleProp<MantineSpacing>;
|
|
38
|
+
/** paddingRight, theme key: theme.spacing */
|
|
21
39
|
pr?: StyleProp<MantineSpacing>;
|
|
40
|
+
/** border */
|
|
22
41
|
bd?: StyleProp<React.CSSProperties['border']>;
|
|
42
|
+
/** background, theme key: theme.colors */
|
|
23
43
|
bg?: StyleProp<MantineColor>;
|
|
44
|
+
/** color */
|
|
24
45
|
c?: StyleProp<MantineColor>;
|
|
25
46
|
opacity?: StyleProp<React.CSSProperties['opacity']>;
|
|
47
|
+
/** fontFamily */
|
|
26
48
|
ff?: StyleProp<'monospace' | 'text' | 'heading' | (string & {})>;
|
|
49
|
+
/** fontSize, theme key: theme.fontSizes */
|
|
27
50
|
fz?: StyleProp<MantineFontSize | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
51
|
+
/** fontWeight */
|
|
28
52
|
fw?: StyleProp<React.CSSProperties['fontWeight']>;
|
|
53
|
+
/** letterSpacing */
|
|
29
54
|
lts?: StyleProp<React.CSSProperties['letterSpacing']>;
|
|
55
|
+
/** textAlign */
|
|
30
56
|
ta?: StyleProp<React.CSSProperties['textAlign']>;
|
|
57
|
+
/** lineHeight, theme key: lineHeights */
|
|
31
58
|
lh?: StyleProp<MantineLineHeight | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})>;
|
|
59
|
+
/** fontStyle */
|
|
32
60
|
fs?: StyleProp<React.CSSProperties['fontStyle']>;
|
|
61
|
+
/** textTransform */
|
|
33
62
|
tt?: StyleProp<React.CSSProperties['textTransform']>;
|
|
63
|
+
/** textDecoration */
|
|
34
64
|
td?: StyleProp<React.CSSProperties['textDecoration']>;
|
|
65
|
+
/** width, theme key: theme.spacing */
|
|
35
66
|
w?: StyleProp<React.CSSProperties['width']>;
|
|
67
|
+
/** minWidth, theme key: theme.spacing*/
|
|
36
68
|
miw?: StyleProp<React.CSSProperties['minWidth']>;
|
|
69
|
+
/** maxWidth, theme key: theme.spacing */
|
|
37
70
|
maw?: StyleProp<React.CSSProperties['maxWidth']>;
|
|
71
|
+
/** height, theme key: theme.spacing */
|
|
38
72
|
h?: StyleProp<React.CSSProperties['height']>;
|
|
73
|
+
/** minHeight, theme key: theme.spacing */
|
|
39
74
|
mih?: StyleProp<React.CSSProperties['minHeight']>;
|
|
75
|
+
/** maxHeight, theme key: theme.spacing */
|
|
40
76
|
mah?: StyleProp<React.CSSProperties['maxHeight']>;
|
|
77
|
+
/** backgroundSize */
|
|
41
78
|
bgsz?: StyleProp<React.CSSProperties['backgroundSize']>;
|
|
79
|
+
/** backgroundPosition */
|
|
42
80
|
bgp?: StyleProp<React.CSSProperties['backgroundPosition']>;
|
|
81
|
+
/** backgroundRepeat */
|
|
43
82
|
bgr?: StyleProp<React.CSSProperties['backgroundRepeat']>;
|
|
83
|
+
/** backgroundAttachment */
|
|
44
84
|
bga?: StyleProp<React.CSSProperties['backgroundAttachment']>;
|
|
85
|
+
/** position */
|
|
45
86
|
pos?: StyleProp<React.CSSProperties['position']>;
|
|
46
87
|
top?: StyleProp<React.CSSProperties['top']>;
|
|
47
88
|
left?: StyleProp<React.CSSProperties['left']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "7.11.
|
|
3
|
+
"version": "7.11.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.11.
|
|
46
|
+
"@mantine/hooks": "7.11.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.11.
|
|
60
|
+
"@mantine/hooks": "7.11.1"
|
|
61
61
|
}
|
|
62
62
|
}
|
package/styles/ActionIcon.css
CHANGED
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
:where([data-mantine-color-scheme='light']) .m_302b9fb1 {
|
|
88
|
-
background-color: rgba(255, 255, 255, 0.
|
|
88
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
:where([data-mantine-color-scheme='dark']) .m_302b9fb1 {
|
|
92
|
-
background-color: rgba(0, 0, 0, 0.
|
|
92
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.m_1a0f1b21 {
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
:where([data-mantine-color-scheme='light']) .m_302b9fb1 {
|
|
88
|
-
background-color: rgba(255, 255, 255, 0.
|
|
88
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
:where([data-mantine-color-scheme='dark']) .m_302b9fb1 {
|
|
92
|
-
background-color: rgba(0, 0, 0, 0.
|
|
92
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.m_1a0f1b21 {
|
package/styles/Popover.css
CHANGED
package/styles/Popover.layer.css
CHANGED
package/styles.css
CHANGED
|
@@ -797,6 +797,10 @@ body {
|
|
|
797
797
|
border-radius: var(--popover-radius, var(--mantine-radius-default));
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
+
.m_38a85659:where([data-fixed]) {
|
|
801
|
+
position: fixed;
|
|
802
|
+
}
|
|
803
|
+
|
|
800
804
|
.m_38a85659:focus {
|
|
801
805
|
outline: none;
|
|
802
806
|
}
|
|
@@ -1019,11 +1023,11 @@ body {
|
|
|
1019
1023
|
}
|
|
1020
1024
|
|
|
1021
1025
|
:where([data-mantine-color-scheme='light']) .m_302b9fb1 {
|
|
1022
|
-
background-color: rgba(255, 255, 255, 0.
|
|
1026
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
1023
1027
|
}
|
|
1024
1028
|
|
|
1025
1029
|
:where([data-mantine-color-scheme='dark']) .m_302b9fb1 {
|
|
1026
|
-
background-color: rgba(0, 0, 0, 0.
|
|
1030
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
1027
1031
|
}
|
|
1028
1032
|
|
|
1029
1033
|
.m_1a0f1b21 {
|
package/styles.layer.css
CHANGED
|
@@ -797,6 +797,10 @@ body {
|
|
|
797
797
|
border-radius: var(--popover-radius, var(--mantine-radius-default));
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
+
.m_38a85659:where([data-fixed]) {
|
|
801
|
+
position: fixed;
|
|
802
|
+
}
|
|
803
|
+
|
|
800
804
|
.m_38a85659:focus {
|
|
801
805
|
outline: none;
|
|
802
806
|
}
|
|
@@ -1019,11 +1023,11 @@ body {
|
|
|
1019
1023
|
}
|
|
1020
1024
|
|
|
1021
1025
|
:where([data-mantine-color-scheme='light']) .m_302b9fb1 {
|
|
1022
|
-
background-color: rgba(255, 255, 255, 0.
|
|
1026
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
1023
1027
|
}
|
|
1024
1028
|
|
|
1025
1029
|
:where([data-mantine-color-scheme='dark']) .m_302b9fb1 {
|
|
1026
|
-
background-color: rgba(0, 0, 0, 0.
|
|
1030
|
+
background-color: rgba(0, 0, 0, 0.15);
|
|
1027
1031
|
}
|
|
1028
1032
|
|
|
1029
1033
|
.m_1a0f1b21 {
|