@mantine/core 9.5.1 → 9.5.2

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 (58) hide show
  1. package/cjs/components/Cascader/Cascader.cjs +5 -1
  2. package/cjs/components/Cascader/Cascader.cjs.map +1 -1
  3. package/cjs/components/Combobox/get-options-lockup/get-option-by-label.cjs +17 -0
  4. package/cjs/components/Combobox/get-options-lockup/get-option-by-label.cjs.map +1 -0
  5. package/cjs/components/Combobox/is-external-input-change/is-external-input-change.cjs +17 -0
  6. package/cjs/components/Combobox/is-external-input-change/is-external-input-change.cjs.map +1 -0
  7. package/cjs/components/ComboboxPopover/ComboboxPopover.cjs.map +1 -1
  8. package/cjs/components/MultiSelect/MultiSelect.cjs +9 -0
  9. package/cjs/components/MultiSelect/MultiSelect.cjs.map +1 -1
  10. package/cjs/components/Notification/Notification.cjs.map +1 -1
  11. package/cjs/components/RollingNumber/RollingNumber.cjs +7 -3
  12. package/cjs/components/RollingNumber/RollingNumber.cjs.map +1 -1
  13. package/cjs/components/RollingNumber/RollingNumber.module.cjs +1 -0
  14. package/cjs/components/RollingNumber/RollingNumber.module.cjs.map +1 -1
  15. package/cjs/components/Select/Select.cjs +12 -0
  16. package/cjs/components/Select/Select.cjs.map +1 -1
  17. package/cjs/components/TagsInput/TagsInput.cjs +5 -1
  18. package/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
  19. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +2 -2
  20. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
  21. package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs +1 -0
  22. package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs.map +1 -1
  23. package/cjs/components/TreeSelect/TreeSelect.cjs +3 -0
  24. package/cjs/components/TreeSelect/TreeSelect.cjs.map +1 -1
  25. package/esm/components/Cascader/Cascader.mjs +5 -1
  26. package/esm/components/Cascader/Cascader.mjs.map +1 -1
  27. package/esm/components/Combobox/get-options-lockup/get-option-by-label.mjs +17 -0
  28. package/esm/components/Combobox/get-options-lockup/get-option-by-label.mjs.map +1 -0
  29. package/esm/components/Combobox/is-external-input-change/is-external-input-change.mjs +17 -0
  30. package/esm/components/Combobox/is-external-input-change/is-external-input-change.mjs.map +1 -0
  31. package/esm/components/ComboboxPopover/ComboboxPopover.mjs.map +1 -1
  32. package/esm/components/MultiSelect/MultiSelect.mjs +9 -0
  33. package/esm/components/MultiSelect/MultiSelect.mjs.map +1 -1
  34. package/esm/components/Notification/Notification.mjs.map +1 -1
  35. package/esm/components/RollingNumber/RollingNumber.mjs +8 -4
  36. package/esm/components/RollingNumber/RollingNumber.mjs.map +1 -1
  37. package/esm/components/RollingNumber/RollingNumber.module.mjs +1 -0
  38. package/esm/components/RollingNumber/RollingNumber.module.mjs.map +1 -1
  39. package/esm/components/Select/Select.mjs +12 -0
  40. package/esm/components/Select/Select.mjs.map +1 -1
  41. package/esm/components/TagsInput/TagsInput.mjs +5 -1
  42. package/esm/components/TagsInput/TagsInput.mjs.map +1 -1
  43. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +2 -2
  44. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
  45. package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs +1 -0
  46. package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs.map +1 -1
  47. package/esm/components/TreeSelect/TreeSelect.mjs +3 -0
  48. package/esm/components/TreeSelect/TreeSelect.mjs.map +1 -1
  49. package/lib/components/Combobox/get-options-lockup/get-option-by-label.d.ts +8 -0
  50. package/lib/components/Combobox/is-external-input-change/is-external-input-change.d.ts +7 -0
  51. package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +1 -1
  52. package/lib/components/Notification/Notification.d.ts +2 -1
  53. package/lib/components/RollingNumber/RollingNumber.d.ts +1 -1
  54. package/package.json +2 -2
  55. package/styles/RollingNumber.css +21 -0
  56. package/styles/RollingNumber.layer.css +21 -0
  57. package/styles.css +21 -0
  58. package/styles.layer.css +21 -0
@@ -1,4 +1,5 @@
1
1
  import { BoxProps, DataAttributes, ElementProps, Factory, MantineColor, MantineRadius, StylesApiProps } from '../../core';
2
+ import { __CloseButtonProps } from '../CloseButton';
2
3
  import { LoaderProps } from '../Loader';
3
4
  export type NotificationStylesNames = 'root' | 'icon' | 'loader' | 'body' | 'title' | 'description' | 'closeButton';
4
5
  export type NotificationCssVariables = {
@@ -24,7 +25,7 @@ export interface NotificationProps extends BoxProps, StylesApiProps<Notification
24
25
  /** If set, the close button is visible @default true */
25
26
  withCloseButton?: boolean;
26
27
  /** Props passed down to the close button */
27
- closeButtonProps?: ElementProps<'button'> & DataAttributes;
28
+ closeButtonProps?: __CloseButtonProps & ElementProps<'button'> & DataAttributes;
28
29
  /** Props passed down to the `Loader` component */
29
30
  loaderProps?: LoaderProps;
30
31
  }
@@ -1,5 +1,5 @@
1
1
  import { BoxProps, ElementProps, Factory, StylesApiProps } from '../../core';
2
- export type RollingNumberStylesNames = 'root' | 'digit' | 'digitColumn' | 'char';
2
+ export type RollingNumberStylesNames = 'root' | 'copyValue' | 'digit' | 'digitColumn' | 'char';
3
3
  export type RollingNumberCssVariables = {
4
4
  root: '--rn-duration' | '--rn-timing-function';
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/core",
3
- "version": "9.5.1",
3
+ "version": "9.5.2",
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": "9.5.1",
46
+ "@mantine/hooks": "9.5.2",
47
47
  "react": "^19.2.0",
48
48
  "react-dom": "^19.2.0"
49
49
  },
@@ -1,4 +1,5 @@
1
1
  .m_47dd3981 {
2
+ position: relative;
2
3
  display: inline-flex;
3
4
  align-items: baseline;
4
5
  overflow: hidden;
@@ -8,12 +9,27 @@
8
9
  font-variant-numeric: tabular-nums;
9
10
  }
10
11
 
12
+ .m_ccf525bd {
13
+ position: absolute;
14
+ inset: 0;
15
+ z-index: 1;
16
+ overflow: hidden;
17
+ white-space: pre;
18
+ color: transparent;
19
+ forced-color-adjust: none;
20
+ }
21
+
11
22
  .m_b301d46e {
23
+ position: relative;
24
+ z-index: 2;
12
25
  display: inline-block;
13
26
  width: 1ch;
14
27
  height: 1em;
15
28
  overflow: hidden;
16
29
  line-height: 1;
30
+ pointer-events: none;
31
+ user-select: none;
32
+ -webkit-user-select: none;
17
33
  transition:
18
34
  width var(--rn-duration) var(--rn-timing-function),
19
35
  opacity var(--rn-duration) var(--rn-timing-function);
@@ -38,9 +54,14 @@
38
54
  }
39
55
 
40
56
  .m_47d64bf5 {
57
+ position: relative;
58
+ z-index: 2;
41
59
  display: inline-block;
42
60
  overflow: hidden;
43
61
  white-space: pre;
62
+ pointer-events: none;
63
+ user-select: none;
64
+ -webkit-user-select: none;
44
65
  transition: opacity var(--rn-duration) var(--rn-timing-function);
45
66
  }
46
67
 
@@ -1,4 +1,5 @@
1
1
  @layer mantine {.m_47dd3981 {
2
+ position: relative;
2
3
  display: inline-flex;
3
4
  align-items: baseline;
4
5
  overflow: hidden;
@@ -8,12 +9,27 @@
8
9
  font-variant-numeric: tabular-nums;
9
10
  }
10
11
 
12
+ .m_ccf525bd {
13
+ position: absolute;
14
+ inset: 0;
15
+ z-index: 1;
16
+ overflow: hidden;
17
+ white-space: pre;
18
+ color: transparent;
19
+ forced-color-adjust: none;
20
+ }
21
+
11
22
  .m_b301d46e {
23
+ position: relative;
24
+ z-index: 2;
12
25
  display: inline-block;
13
26
  width: 1ch;
14
27
  height: 1em;
15
28
  overflow: hidden;
16
29
  line-height: 1;
30
+ pointer-events: none;
31
+ user-select: none;
32
+ -webkit-user-select: none;
17
33
  transition:
18
34
  width var(--rn-duration) var(--rn-timing-function),
19
35
  opacity var(--rn-duration) var(--rn-timing-function);
@@ -38,9 +54,14 @@
38
54
  }
39
55
 
40
56
  .m_47d64bf5 {
57
+ position: relative;
58
+ z-index: 2;
41
59
  display: inline-block;
42
60
  overflow: hidden;
43
61
  white-space: pre;
62
+ pointer-events: none;
63
+ user-select: none;
64
+ -webkit-user-select: none;
44
65
  transition: opacity var(--rn-duration) var(--rn-timing-function);
45
66
  }
46
67
 
package/styles.css CHANGED
@@ -6626,6 +6626,7 @@ fieldset:disabled .m_8ee546b8,
6626
6626
  }
6627
6627
 
6628
6628
  .m_47dd3981 {
6629
+ position: relative;
6629
6630
  display: inline-flex;
6630
6631
  align-items: baseline;
6631
6632
  overflow: hidden;
@@ -6635,12 +6636,27 @@ fieldset:disabled .m_8ee546b8,
6635
6636
  font-variant-numeric: tabular-nums;
6636
6637
  }
6637
6638
 
6639
+ .m_ccf525bd {
6640
+ position: absolute;
6641
+ inset: 0;
6642
+ z-index: 1;
6643
+ overflow: hidden;
6644
+ white-space: pre;
6645
+ color: transparent;
6646
+ forced-color-adjust: none;
6647
+ }
6648
+
6638
6649
  .m_b301d46e {
6650
+ position: relative;
6651
+ z-index: 2;
6639
6652
  display: inline-block;
6640
6653
  width: 1ch;
6641
6654
  height: 1em;
6642
6655
  overflow: hidden;
6643
6656
  line-height: 1;
6657
+ pointer-events: none;
6658
+ user-select: none;
6659
+ -webkit-user-select: none;
6644
6660
  transition:
6645
6661
  width var(--rn-duration) var(--rn-timing-function),
6646
6662
  opacity var(--rn-duration) var(--rn-timing-function);
@@ -6665,9 +6681,14 @@ fieldset:disabled .m_8ee546b8,
6665
6681
  }
6666
6682
 
6667
6683
  .m_47d64bf5 {
6684
+ position: relative;
6685
+ z-index: 2;
6668
6686
  display: inline-block;
6669
6687
  overflow: hidden;
6670
6688
  white-space: pre;
6689
+ pointer-events: none;
6690
+ user-select: none;
6691
+ -webkit-user-select: none;
6671
6692
  transition: opacity var(--rn-duration) var(--rn-timing-function);
6672
6693
  }
6673
6694
 
package/styles.layer.css CHANGED
@@ -6626,6 +6626,7 @@ fieldset:disabled .m_8ee546b8,
6626
6626
  }
6627
6627
 
6628
6628
  .m_47dd3981 {
6629
+ position: relative;
6629
6630
  display: inline-flex;
6630
6631
  align-items: baseline;
6631
6632
  overflow: hidden;
@@ -6635,12 +6636,27 @@ fieldset:disabled .m_8ee546b8,
6635
6636
  font-variant-numeric: tabular-nums;
6636
6637
  }
6637
6638
 
6639
+ .m_ccf525bd {
6640
+ position: absolute;
6641
+ inset: 0;
6642
+ z-index: 1;
6643
+ overflow: hidden;
6644
+ white-space: pre;
6645
+ color: transparent;
6646
+ forced-color-adjust: none;
6647
+ }
6648
+
6638
6649
  .m_b301d46e {
6650
+ position: relative;
6651
+ z-index: 2;
6639
6652
  display: inline-block;
6640
6653
  width: 1ch;
6641
6654
  height: 1em;
6642
6655
  overflow: hidden;
6643
6656
  line-height: 1;
6657
+ pointer-events: none;
6658
+ user-select: none;
6659
+ -webkit-user-select: none;
6644
6660
  transition:
6645
6661
  width var(--rn-duration) var(--rn-timing-function),
6646
6662
  opacity var(--rn-duration) var(--rn-timing-function);
@@ -6665,9 +6681,14 @@ fieldset:disabled .m_8ee546b8,
6665
6681
  }
6666
6682
 
6667
6683
  .m_47d64bf5 {
6684
+ position: relative;
6685
+ z-index: 2;
6668
6686
  display: inline-block;
6669
6687
  overflow: hidden;
6670
6688
  white-space: pre;
6689
+ pointer-events: none;
6690
+ user-select: none;
6691
+ -webkit-user-select: none;
6671
6692
  transition: opacity var(--rn-duration) var(--rn-timing-function);
6672
6693
  }
6673
6694