@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.
Files changed (77) hide show
  1. package/cjs/components/Floating/FloatingArrow/get-arrow-position-styles.cjs +4 -17
  2. package/cjs/components/Floating/FloatingArrow/get-arrow-position-styles.cjs.map +1 -1
  3. package/cjs/components/ModalBase/ModalBase.cjs +22 -13
  4. package/cjs/components/ModalBase/ModalBase.cjs.map +1 -1
  5. package/cjs/components/MultiSelect/MultiSelect.cjs +1 -1
  6. package/cjs/components/MultiSelect/MultiSelect.cjs.map +1 -1
  7. package/cjs/components/NumberInput/NumberInput.cjs +3 -1
  8. package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
  9. package/cjs/components/PinInput/PinInput.cjs +1 -0
  10. package/cjs/components/PinInput/PinInput.cjs.map +1 -1
  11. package/cjs/components/Popover/Popover.cjs +2 -1
  12. package/cjs/components/Popover/Popover.cjs.map +1 -1
  13. package/cjs/components/Popover/Popover.context.cjs.map +1 -1
  14. package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.cjs +1 -0
  15. package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.cjs.map +1 -1
  16. package/cjs/components/Select/Select.cjs +2 -2
  17. package/cjs/components/Select/Select.cjs.map +1 -1
  18. package/cjs/components/TagsInput/TagsInput.cjs +12 -0
  19. package/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
  20. package/cjs/components/Tooltip/Tooltip.cjs +3 -0
  21. package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  22. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +4 -1
  23. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
  24. package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs +3 -2
  25. package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs.map +1 -1
  26. package/cjs/components/Tooltip/use-tooltip.cjs +1 -1
  27. package/cjs/components/Tooltip/use-tooltip.cjs.map +1 -1
  28. package/cjs/components/Tree/Tree.cjs +1 -0
  29. package/cjs/components/Tree/Tree.cjs.map +1 -1
  30. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs +2 -2
  31. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs.map +1 -1
  32. package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs +4 -17
  33. package/esm/components/Floating/FloatingArrow/get-arrow-position-styles.mjs.map +1 -1
  34. package/esm/components/ModalBase/ModalBase.mjs +22 -13
  35. package/esm/components/ModalBase/ModalBase.mjs.map +1 -1
  36. package/esm/components/MultiSelect/MultiSelect.mjs +1 -1
  37. package/esm/components/MultiSelect/MultiSelect.mjs.map +1 -1
  38. package/esm/components/NumberInput/NumberInput.mjs +3 -1
  39. package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
  40. package/esm/components/PinInput/PinInput.mjs +1 -0
  41. package/esm/components/PinInput/PinInput.mjs.map +1 -1
  42. package/esm/components/Popover/Popover.context.mjs.map +1 -1
  43. package/esm/components/Popover/Popover.mjs +2 -1
  44. package/esm/components/Popover/Popover.mjs.map +1 -1
  45. package/esm/components/Popover/PopoverDropdown/PopoverDropdown.mjs +1 -0
  46. package/esm/components/Popover/PopoverDropdown/PopoverDropdown.mjs.map +1 -1
  47. package/esm/components/Select/Select.mjs +2 -2
  48. package/esm/components/Select/Select.mjs.map +1 -1
  49. package/esm/components/TagsInput/TagsInput.mjs +13 -1
  50. package/esm/components/TagsInput/TagsInput.mjs.map +1 -1
  51. package/esm/components/Tooltip/Tooltip.mjs +3 -0
  52. package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
  53. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +4 -1
  54. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
  55. package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs +3 -2
  56. package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs.map +1 -1
  57. package/esm/components/Tooltip/use-tooltip.mjs +1 -1
  58. package/esm/components/Tooltip/use-tooltip.mjs.map +1 -1
  59. package/esm/components/Tree/Tree.mjs +1 -0
  60. package/esm/components/Tree/Tree.mjs.map +1 -1
  61. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs +2 -2
  62. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs.map +1 -1
  63. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  64. package/lib/components/Popover/Popover.context.d.ts +2 -1
  65. package/lib/components/Select/Select.d.ts +1 -1
  66. package/lib/components/Tooltip/Tooltip.d.ts +2 -0
  67. package/lib/components/Tooltip/TooltipFloating/TooltipFloating.d.ts +2 -0
  68. package/lib/components/Tooltip/TooltipFloating/use-floating-tooltip.d.ts +4 -3
  69. package/lib/components/Tooltip/use-tooltip.d.ts +1 -0
  70. package/lib/core/Box/style-props/style-props.types.d.ts +41 -0
  71. package/package.json +3 -3
  72. package/styles/ActionIcon.css +2 -2
  73. package/styles/ActionIcon.layer.css +2 -2
  74. package/styles/Popover.css +4 -0
  75. package/styles/Popover.layer.css +4 -0
  76. package/styles.css +6 -2
  77. 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.0",
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.0",
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.0"
60
+ "@mantine/hooks": "7.11.1"
61
61
  }
62
62
  }
@@ -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.35);
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.35);
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.35);
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.35);
92
+ background-color: rgba(0, 0, 0, 0.15);
93
93
  }
94
94
 
95
95
  .m_1a0f1b21 {
@@ -6,6 +6,10 @@
6
6
  border-radius: var(--popover-radius, var(--mantine-radius-default));
7
7
  }
8
8
 
9
+ .m_38a85659:where([data-fixed]) {
10
+ position: fixed;
11
+ }
12
+
9
13
  .m_38a85659:focus {
10
14
  outline: none;
11
15
  }
@@ -6,6 +6,10 @@
6
6
  border-radius: var(--popover-radius, var(--mantine-radius-default));
7
7
  }
8
8
 
9
+ .m_38a85659:where([data-fixed]) {
10
+ position: fixed;
11
+ }
12
+
9
13
  .m_38a85659:focus {
10
14
  outline: none;
11
15
  }
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.35);
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.35);
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.35);
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.35);
1030
+ background-color: rgba(0, 0, 0, 0.15);
1027
1031
  }
1028
1032
 
1029
1033
  .m_1a0f1b21 {