@mantine/core 8.3.8 → 8.3.10

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 (131) hide show
  1. package/cjs/components/Badge/Badge.cjs +2 -2
  2. package/cjs/components/Badge/Badge.cjs.map +1 -1
  3. package/cjs/components/Checkbox/Checkbox.cjs +1 -1
  4. package/cjs/components/Checkbox/Checkbox.cjs.map +1 -1
  5. package/cjs/components/ColorInput/ColorInput.cjs +5 -2
  6. package/cjs/components/ColorInput/ColorInput.cjs.map +1 -1
  7. package/cjs/components/ColorInput/ColorInput.module.css.cjs +1 -1
  8. package/cjs/components/Combobox/Combobox.module.css.cjs +1 -1
  9. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.cjs +6 -5
  10. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.cjs.map +1 -1
  11. package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.cjs +5 -4
  12. package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.cjs.map +1 -1
  13. package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.cjs +5 -1
  14. package/cjs/components/Combobox/OptionsDropdown/OptionsDropdown.cjs.map +1 -1
  15. package/cjs/components/FocusTrap/FocusTrap.cjs +4 -3
  16. package/cjs/components/FocusTrap/FocusTrap.cjs.map +1 -1
  17. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs +7 -6
  18. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs.map +1 -1
  19. package/cjs/components/List/List.cjs +1 -1
  20. package/cjs/components/List/List.cjs.map +1 -1
  21. package/cjs/components/Menu/Menu.cjs +1 -0
  22. package/cjs/components/Menu/Menu.cjs.map +1 -1
  23. package/cjs/components/Menu/MenuTarget/MenuTarget.cjs +8 -7
  24. package/cjs/components/Menu/MenuTarget/MenuTarget.cjs.map +1 -1
  25. package/cjs/components/MultiSelect/MultiSelect.cjs +2 -0
  26. package/cjs/components/MultiSelect/MultiSelect.cjs.map +1 -1
  27. package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
  28. package/cjs/components/PasswordInput/PasswordInput.cjs.map +1 -1
  29. package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs +8 -10
  30. package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs.map +1 -1
  31. package/cjs/components/Popover/use-popover.cjs +1 -1
  32. package/cjs/components/Popover/use-popover.cjs.map +1 -1
  33. package/cjs/components/Radio/Radio.cjs +3 -2
  34. package/cjs/components/Radio/Radio.cjs.map +1 -1
  35. package/cjs/components/Select/Select.cjs +2 -0
  36. package/cjs/components/Select/Select.cjs.map +1 -1
  37. package/cjs/components/Tooltip/Tooltip.cjs +8 -8
  38. package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  39. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +9 -8
  40. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
  41. package/cjs/core/MantineProvider/MantineCssVariables/MantineCssVariables.cjs +10 -6
  42. package/cjs/core/MantineProvider/MantineCssVariables/MantineCssVariables.cjs.map +1 -1
  43. package/cjs/core/MantineProvider/MantineProvider.cjs +2 -2
  44. package/cjs/core/MantineProvider/MantineProvider.cjs.map +1 -1
  45. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs +8 -5
  46. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs.map +1 -1
  47. package/cjs/core/utils/get-single-element-child/get-single-element-child.cjs +16 -0
  48. package/cjs/core/utils/get-single-element-child/get-single-element-child.cjs.map +1 -0
  49. package/cjs/index.cjs +2 -0
  50. package/cjs/index.cjs.map +1 -1
  51. package/esm/components/Badge/Badge.mjs +2 -2
  52. package/esm/components/Badge/Badge.mjs.map +1 -1
  53. package/esm/components/Checkbox/Checkbox.mjs +1 -1
  54. package/esm/components/Checkbox/Checkbox.mjs.map +1 -1
  55. package/esm/components/ColorInput/ColorInput.mjs +5 -2
  56. package/esm/components/ColorInput/ColorInput.mjs.map +1 -1
  57. package/esm/components/ColorInput/ColorInput.module.css.mjs +1 -1
  58. package/esm/components/Combobox/Combobox.module.css.mjs +1 -1
  59. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs +6 -5
  60. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs.map +1 -1
  61. package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs +5 -4
  62. package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs.map +1 -1
  63. package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.mjs +5 -1
  64. package/esm/components/Combobox/OptionsDropdown/OptionsDropdown.mjs.map +1 -1
  65. package/esm/components/FocusTrap/FocusTrap.mjs +4 -3
  66. package/esm/components/FocusTrap/FocusTrap.mjs.map +1 -1
  67. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs +7 -6
  68. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs.map +1 -1
  69. package/esm/components/List/List.mjs +1 -1
  70. package/esm/components/List/List.mjs.map +1 -1
  71. package/esm/components/Menu/Menu.mjs +1 -0
  72. package/esm/components/Menu/Menu.mjs.map +1 -1
  73. package/esm/components/Menu/MenuTarget/MenuTarget.mjs +8 -7
  74. package/esm/components/Menu/MenuTarget/MenuTarget.mjs.map +1 -1
  75. package/esm/components/MultiSelect/MultiSelect.mjs +2 -0
  76. package/esm/components/MultiSelect/MultiSelect.mjs.map +1 -1
  77. package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
  78. package/esm/components/PasswordInput/PasswordInput.mjs.map +1 -1
  79. package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs +8 -10
  80. package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs.map +1 -1
  81. package/esm/components/Popover/use-popover.mjs +2 -2
  82. package/esm/components/Popover/use-popover.mjs.map +1 -1
  83. package/esm/components/Radio/Radio.mjs +3 -2
  84. package/esm/components/Radio/Radio.mjs.map +1 -1
  85. package/esm/components/Select/Select.mjs +2 -0
  86. package/esm/components/Select/Select.mjs.map +1 -1
  87. package/esm/components/Tooltip/Tooltip.mjs +8 -8
  88. package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
  89. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +9 -8
  90. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
  91. package/esm/core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs +10 -6
  92. package/esm/core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs.map +1 -1
  93. package/esm/core/MantineProvider/MantineProvider.mjs +2 -2
  94. package/esm/core/MantineProvider/MantineProvider.mjs.map +1 -1
  95. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs +8 -5
  96. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs.map +1 -1
  97. package/esm/core/utils/get-single-element-child/get-single-element-child.mjs +14 -0
  98. package/esm/core/utils/get-single-element-child/get-single-element-child.mjs.map +1 -0
  99. package/esm/index.mjs +1 -0
  100. package/esm/index.mjs.map +1 -1
  101. package/lib/components/ColorInput/ColorInput.d.ts +1 -0
  102. package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +2 -1
  103. package/lib/components/MultiSelect/MultiSelect.d.ts +2 -0
  104. package/lib/components/NumberInput/NumberInput.d.ts +1 -1
  105. package/lib/components/PasswordInput/PasswordInput.d.ts +1 -1
  106. package/lib/components/Select/Select.d.ts +2 -0
  107. package/lib/core/MantineProvider/MantineCssVariables/MantineCssVariables.d.ts +1 -1
  108. package/lib/core/MantineProvider/MantineProvider.d.ts +1 -1
  109. package/lib/core/MantineProvider/convert-css-variables/convert-css-variables.d.ts +1 -1
  110. package/lib/core/utils/get-single-element-child/get-single-element-child.d.ts +1 -0
  111. package/lib/core/utils/index.d.ts +1 -0
  112. package/package.json +2 -2
  113. package/styles/ActionIcon.css +1 -1
  114. package/styles/ActionIcon.layer.css +1 -1
  115. package/styles/ColorInput.css +14 -0
  116. package/styles/ColorInput.layer.css +14 -0
  117. package/styles/Combobox.css +6 -0
  118. package/styles/Combobox.layer.css +6 -0
  119. package/styles/InlineInput.css +1 -0
  120. package/styles/InlineInput.layer.css +1 -0
  121. package/styles/baseline.css +6 -3
  122. package/styles/baseline.layer.css +6 -3
  123. package/styles/default-css-variables.css +6 -3
  124. package/styles/default-css-variables.layer.css +6 -3
  125. package/styles.css +34 -7
  126. package/styles.layer.css +34 -7
  127. package/cjs/core/MantineProvider/convert-css-variables/wrap-with-selector.cjs +0 -10
  128. package/cjs/core/MantineProvider/convert-css-variables/wrap-with-selector.cjs.map +0 -1
  129. package/esm/core/MantineProvider/convert-css-variables/wrap-with-selector.mjs +0 -8
  130. package/esm/core/MantineProvider/convert-css-variables/wrap-with-selector.mjs.map +0 -1
  131. package/lib/core/MantineProvider/convert-css-variables/wrap-with-selector.d.ts +0 -1
@@ -5,6 +5,7 @@ import { PopoverProps } from '../Popover';
5
5
  export type ColorInputStylesNames = 'dropdown' | 'eyeDropperButton' | 'eyeDropperIcon' | 'colorPreview' | ColorPickerStylesNames | __InputStylesNames;
6
6
  export type ColorInputCssVariables = {
7
7
  eyeDropperIcon: '--ci-eye-dropper-icon-size';
8
+ eyeDropperButton: '--ci-button-size';
8
9
  colorPreview: '--ci-preview-size';
9
10
  };
10
11
  export interface ColorInputProps extends BoxProps, __BaseInputProps, __ColorPickerProps, StylesApiProps<ColorInputFactory>, ElementProps<'input', 'size' | 'onChange' | 'value' | 'defaultValue'> {
@@ -18,6 +18,7 @@ export interface OptionsDropdownProps {
18
18
  hiddenWhenEmpty?: boolean;
19
19
  filterOptions?: boolean;
20
20
  withCheckIcon?: boolean;
21
+ withAlignedLabels?: boolean;
21
22
  value?: string | string[] | null;
22
23
  checkIconPosition?: 'left' | 'right';
23
24
  nothingFoundMessage?: React.ReactNode;
@@ -27,4 +28,4 @@ export interface OptionsDropdownProps {
27
28
  renderOption?: (input: ComboboxLikeRenderOptionInput<any>) => React.ReactNode;
28
29
  scrollAreaProps: ScrollAreaProps | undefined;
29
30
  }
30
- export declare function OptionsDropdown({ data, hidden, hiddenWhenEmpty, filter, search, limit, maxDropdownHeight, withScrollArea, filterOptions, withCheckIcon, value, checkIconPosition, nothingFoundMessage, unstyled, labelId, renderOption, scrollAreaProps, 'aria-label': ariaLabel, }: OptionsDropdownProps): import("react/jsx-runtime").JSX.Element;
31
+ export declare function OptionsDropdown({ data, hidden, hiddenWhenEmpty, filter, search, limit, maxDropdownHeight, withScrollArea, filterOptions, withCheckIcon, withAlignedLabels, value, checkIconPosition, nothingFoundMessage, unstyled, labelId, renderOption, scrollAreaProps, 'aria-label': ariaLabel, }: OptionsDropdownProps): import("react/jsx-runtime").JSX.Element;
@@ -28,6 +28,8 @@ export interface MultiSelectProps extends BoxProps, __BaseInputProps, ComboboxLi
28
28
  nothingFoundMessage?: React.ReactNode;
29
29
  /** If set, the check icon is displayed near the selected option label @default `true` */
30
30
  withCheckIcon?: boolean;
31
+ /** If set, unchecked labels are aligned with checked ones @default `false` */
32
+ withAlignedLabels?: boolean;
31
33
  /** Position of the check icon relative to the option label @default `'left'` */
32
34
  checkIconPosition?: 'left' | 'right';
33
35
  /** If set, picked options are removed from the options list @default `false` */
@@ -10,7 +10,7 @@ export type NumberInputStylesNames = 'controls' | 'control' | __InputStylesNames
10
10
  export type NumberInputCssVariables = {
11
11
  controls: '--ni-chevron-size';
12
12
  };
13
- export interface NumberInputProps extends BoxProps, __BaseInputProps, StylesApiProps<NumberInputFactory>, ElementProps<'input', 'size' | 'type' | 'onChange'> {
13
+ export interface NumberInputProps extends BoxProps, Omit<__BaseInputProps, 'pointer'>, StylesApiProps<NumberInputFactory>, ElementProps<'input', 'size' | 'type' | 'onChange'> {
14
14
  /** Controlled component value */
15
15
  value?: number | string;
16
16
  /** Uncontrolled component default value */
@@ -4,7 +4,7 @@ export type PasswordInputStylesNames = 'root' | 'visibilityToggle' | 'innerInput
4
4
  export type PasswordInputCssVariables = {
5
5
  root: '--psi-icon-size' | '--psi-button-size';
6
6
  };
7
- export interface PasswordInputProps extends BoxProps, __BaseInputProps, StylesApiProps<PasswordInputFactory>, ElementProps<'input', 'size'> {
7
+ export interface PasswordInputProps extends BoxProps, Omit<__BaseInputProps, 'pointer'>, StylesApiProps<PasswordInputFactory>, ElementProps<'input', 'size'> {
8
8
  /** A component to replace the visibility toggle icon */
9
9
  visibilityToggleIcon?: React.FC<{
10
10
  reveal: boolean;
@@ -16,6 +16,8 @@ export interface SelectProps extends BoxProps, __BaseInputProps, ComboboxLikePro
16
16
  searchable?: boolean;
17
17
  /** If set, the check icon is displayed near the selected option label @default `true` */
18
18
  withCheckIcon?: boolean;
19
+ /** If set, unchecked labels are aligned with the checked one @default `false` */
20
+ withAlignedLabels?: boolean;
19
21
  /** Position of the check icon relative to the option label @default `'left'` */
20
22
  checkIconPosition?: 'left' | 'right';
21
23
  /** Message displayed when no option matches the current search query when the `searchable` prop is set or there is no data */
@@ -1,5 +1,5 @@
1
1
  interface MantineCssVariablesProps {
2
- cssVariablesSelector: string;
2
+ cssVariablesSelector?: string;
3
3
  deduplicateCssVariables: boolean;
4
4
  }
5
5
  export declare function MantineCssVariables({ cssVariablesSelector, deduplicateCssVariables, }: MantineCssVariablesProps): import("react/jsx-runtime").JSX.Element | null;
@@ -14,7 +14,7 @@ export interface MantineProviderProps {
14
14
  defaultColorScheme?: MantineColorScheme;
15
15
  /** Forces color scheme value, if set, MantineProvider ignores `colorSchemeManager` and `defaultColorScheme` */
16
16
  forceColorScheme?: 'light' | 'dark';
17
- /** CSS selector to which CSS variables should be added, `:root` by default */
17
+ /** CSS selector to which CSS variables should be added, by default variables are applied to `:root` and `:host` */
18
18
  cssVariablesSelector?: string;
19
19
  /** Determines whether theme CSS variables should be added to given `cssVariablesSelector` @default `true` */
20
20
  withCssVariables?: boolean;
@@ -7,4 +7,4 @@ export interface ConvertCSSVariablesInput {
7
7
  /** CSS variables available only in light color scheme */
8
8
  light: CSSVariables;
9
9
  }
10
- export declare function convertCssVariables(input: ConvertCSSVariablesInput, selector: string): string;
10
+ export declare function convertCssVariables(input: ConvertCSSVariablesInput, selectorOverride?: string): string;
@@ -0,0 +1 @@
1
+ export declare function getSingleElementChild(children: React.ReactNode): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
@@ -26,3 +26,4 @@ export { memoize } from './memoize/memoize';
26
26
  export { findClosestNumber } from './find-closest-number/find-closest-number';
27
27
  export { getRefProp } from './get-ref-prop/get-ref-prop';
28
28
  export { findElementBySelector, findElementsBySelector, getRootElement, } from './find-element-in-shadow-dom/find-element-in-shadow-dom';
29
+ export { getSingleElementChild } from './get-single-element-child/get-single-element-child';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/core",
3
- "version": "8.3.8",
3
+ "version": "8.3.10",
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": "8.3.8",
46
+ "@mantine/hooks": "8.3.10",
47
47
  "react": "^18.x || ^19.x",
48
48
  "react-dom": "^18.x || ^19.x"
49
49
  },
@@ -60,7 +60,7 @@
60
60
  cursor: not-allowed;
61
61
  border: 1px solid transparent;
62
62
  color: var(--mantine-color-disabled-color);
63
- background-color: var(--mantine-color-disabled);
63
+ background: var(--mantine-color-disabled);
64
64
  }
65
65
 
66
66
  .m_8d3f4000:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
@@ -60,7 +60,7 @@
60
60
  cursor: not-allowed;
61
61
  border: 1px solid transparent;
62
62
  color: var(--mantine-color-disabled-color);
63
- background-color: var(--mantine-color-disabled);
63
+ background: var(--mantine-color-disabled);
64
64
  }
65
65
 
66
66
  .m_8d3f4000:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
@@ -7,6 +7,20 @@
7
7
  --ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm);
8
8
  }
9
9
 
10
+ .m_66a028b5 {
11
+ --ci-button-size-xs: 22px;
12
+ --ci-button-size-sm: 26px;
13
+ --ci-button-size-md: 28px;
14
+ --ci-button-size-lg: 32px;
15
+ --ci-button-size-xl: 40px;
16
+ --ci-button-size: var(--ci-button-size-sm);
17
+
18
+ width: var(--ci-button-size);
19
+ height: var(--ci-button-size);
20
+ min-width: var(--ci-button-size);
21
+ min-height: var(--ci-button-size);
22
+ }
23
+
10
24
  .m_c5ccdcab {
11
25
  --ci-preview-size-xs: 16px;
12
26
  --ci-preview-size-sm: 18px;
@@ -7,6 +7,20 @@
7
7
  --ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm);
8
8
  }
9
9
 
10
+ .m_66a028b5 {
11
+ --ci-button-size-xs: 22px;
12
+ --ci-button-size-sm: 26px;
13
+ --ci-button-size-md: 28px;
14
+ --ci-button-size-lg: 32px;
15
+ --ci-button-size-xl: 40px;
16
+ --ci-button-size: var(--ci-button-size-sm);
17
+
18
+ width: var(--ci-button-size);
19
+ height: var(--ci-button-size);
20
+ min-width: var(--ci-button-size);
21
+ min-height: var(--ci-button-size);
22
+ }
23
+
10
24
  .m_c5ccdcab {
11
25
  --ci-preview-size-xs: 16px;
12
26
  --ci-preview-size-sm: 18px;
@@ -208,3 +208,9 @@
208
208
  :where([data-combobox-selected]) .m_8ee53fc2 {
209
209
  opacity: 1;
210
210
  }
211
+
212
+ .m_a530ee0a {
213
+ width: 0.8em;
214
+ min-width: 0.8em;
215
+ height: 0.8em;
216
+ }
@@ -208,4 +208,10 @@
208
208
  :where([data-combobox-selected]) .m_8ee53fc2 {
209
209
  opacity: 1;
210
210
  }
211
+
212
+ .m_a530ee0a {
213
+ width: 0.8em;
214
+ min-width: 0.8em;
215
+ height: 0.8em;
216
+ }
211
217
  }
@@ -57,6 +57,7 @@ fieldset:disabled .m_8ee546b8,
57
57
  margin-top: calc(var(--mantine-spacing-xs) / 2);
58
58
  padding-inline-start: var(--label-offset-start);
59
59
  padding-inline-end: var(--label-offset-end);
60
+ cursor: default;
60
61
  }
61
62
 
62
63
  .m_8e8a99cc {
@@ -57,6 +57,7 @@ fieldset:disabled .m_8ee546b8,
57
57
  margin-top: calc(var(--mantine-spacing-xs) / 2);
58
58
  padding-inline-start: var(--label-offset-start);
59
59
  padding-inline-end: var(--label-offset-end);
60
+ cursor: default;
60
61
  }
61
62
 
62
63
  .m_8e8a99cc {
@@ -1,4 +1,5 @@
1
- :root {
1
+ :root,
2
+ :host {
2
3
  color-scheme: var(--mantine-color-scheme);
3
4
  }
4
5
 
@@ -20,7 +21,8 @@ select {
20
21
  text-transform: none;
21
22
  }
22
23
 
23
- body {
24
+ body,
25
+ :host {
24
26
  margin: 0;
25
27
  font-family: var(--mantine-font-family);
26
28
  font-size: var(--mantine-font-size-md);
@@ -34,7 +36,8 @@ body {
34
36
 
35
37
  @media screen and (max-device-width: 31.25em) {
36
38
 
37
- body {
39
+ body,
40
+ :host {
38
41
  -webkit-text-size-adjust: 100%
39
42
  }
40
43
  }
@@ -1,4 +1,5 @@
1
- @layer mantine {:root {
1
+ @layer mantine {:root,
2
+ :host {
2
3
  color-scheme: var(--mantine-color-scheme);
3
4
  }
4
5
 
@@ -20,7 +21,8 @@ select {
20
21
  text-transform: none;
21
22
  }
22
23
 
23
- body {
24
+ body,
25
+ :host {
24
26
  margin: 0;
25
27
  font-family: var(--mantine-font-family);
26
28
  font-size: var(--mantine-font-size-md);
@@ -34,7 +36,8 @@ body {
34
36
 
35
37
  @media screen and (max-device-width: 31.25em) {
36
38
 
37
- body {
39
+ body,
40
+ :host {
38
41
  -webkit-text-size-adjust: 100%
39
42
  }
40
43
  }
@@ -1,5 +1,6 @@
1
1
  /* This file is automatically generated, do not modify it directly. */
2
- :root {
2
+ :root,
3
+ :host {
3
4
  --mantine-z-index-app: 100;
4
5
  --mantine-z-index-modal: 200;
5
6
  --mantine-z-index-popover: 300;
@@ -256,7 +257,8 @@
256
257
  --mantine-h6-font-weight: 700;
257
258
  }
258
259
 
259
- :root[data-mantine-color-scheme='dark'] {
260
+ :root[data-mantine-color-scheme='dark'],
261
+ :host([data-mantine-color-scheme='dark']) {
260
262
  --mantine-color-scheme: dark;
261
263
  --mantine-primary-color-contrast: var(--mantine-color-white);
262
264
  --mantine-color-bright: var(--mantine-color-white);
@@ -387,7 +389,8 @@
387
389
  --mantine-color-orange-outline-hover: rgba(255, 169, 77, 0.05);
388
390
  }
389
391
 
390
- :root[data-mantine-color-scheme='light'] {
392
+ :root[data-mantine-color-scheme='light'],
393
+ :host([data-mantine-color-scheme='light']) {
391
394
  --mantine-color-scheme: light;
392
395
  --mantine-primary-color-contrast: var(--mantine-color-white);
393
396
  --mantine-color-bright: var(--mantine-color-black);
@@ -1,5 +1,6 @@
1
1
  @layer mantine {/* This file is automatically generated, do not modify it directly. */
2
- :root {
2
+ :root,
3
+ :host {
3
4
  --mantine-z-index-app: 100;
4
5
  --mantine-z-index-modal: 200;
5
6
  --mantine-z-index-popover: 300;
@@ -256,7 +257,8 @@
256
257
  --mantine-h6-font-weight: 700;
257
258
  }
258
259
 
259
- :root[data-mantine-color-scheme='dark'] {
260
+ :root[data-mantine-color-scheme='dark'],
261
+ :host([data-mantine-color-scheme='dark']) {
260
262
  --mantine-color-scheme: dark;
261
263
  --mantine-primary-color-contrast: var(--mantine-color-white);
262
264
  --mantine-color-bright: var(--mantine-color-white);
@@ -387,7 +389,8 @@
387
389
  --mantine-color-orange-outline-hover: rgba(255, 169, 77, 0.05);
388
390
  }
389
391
 
390
- :root[data-mantine-color-scheme='light'] {
392
+ :root[data-mantine-color-scheme='light'],
393
+ :host([data-mantine-color-scheme='light']) {
391
394
  --mantine-color-scheme: light;
392
395
  --mantine-primary-color-contrast: var(--mantine-color-white);
393
396
  --mantine-color-bright: var(--mantine-color-black);
package/styles.css CHANGED
@@ -1,4 +1,5 @@
1
- :root {
1
+ :root,
2
+ :host {
2
3
  color-scheme: var(--mantine-color-scheme);
3
4
  }
4
5
 
@@ -20,7 +21,8 @@ select {
20
21
  text-transform: none;
21
22
  }
22
23
 
23
- body {
24
+ body,
25
+ :host {
24
26
  margin: 0;
25
27
  font-family: var(--mantine-font-family);
26
28
  font-size: var(--mantine-font-size-md);
@@ -34,7 +36,8 @@ body {
34
36
 
35
37
  @media screen and (max-device-width: 31.25em) {
36
38
 
37
- body {
39
+ body,
40
+ :host {
38
41
  -webkit-text-size-adjust: 100%
39
42
  }
40
43
  }
@@ -81,7 +84,8 @@ fieldset:disabled .mantine-active:active {
81
84
  }
82
85
 
83
86
  /* This file is automatically generated, do not modify it directly. */
84
- :root {
87
+ :root,
88
+ :host {
85
89
  --mantine-z-index-app: 100;
86
90
  --mantine-z-index-modal: 200;
87
91
  --mantine-z-index-popover: 300;
@@ -338,7 +342,8 @@ fieldset:disabled .mantine-active:active {
338
342
  --mantine-h6-font-weight: 700;
339
343
  }
340
344
 
341
- :root[data-mantine-color-scheme='dark'] {
345
+ :root[data-mantine-color-scheme='dark'],
346
+ :host([data-mantine-color-scheme='dark']) {
342
347
  --mantine-color-scheme: dark;
343
348
  --mantine-primary-color-contrast: var(--mantine-color-white);
344
349
  --mantine-color-bright: var(--mantine-color-white);
@@ -469,7 +474,8 @@ fieldset:disabled .mantine-active:active {
469
474
  --mantine-color-orange-outline-hover: rgba(255, 169, 77, 0.05);
470
475
  }
471
476
 
472
- :root[data-mantine-color-scheme='light'] {
477
+ :root[data-mantine-color-scheme='light'],
478
+ :host([data-mantine-color-scheme='light']) {
473
479
  --mantine-color-scheme: light;
474
480
  --mantine-primary-color-contrast: var(--mantine-color-white);
475
481
  --mantine-color-bright: var(--mantine-color-black);
@@ -1079,7 +1085,7 @@ fieldset:disabled .mantine-active:active {
1079
1085
  cursor: not-allowed;
1080
1086
  border: calc(0.0625rem * var(--mantine-scale)) solid transparent;
1081
1087
  color: var(--mantine-color-disabled-color);
1082
- background-color: var(--mantine-color-disabled);
1088
+ background: var(--mantine-color-disabled);
1083
1089
  }
1084
1090
 
1085
1091
  .m_8d3f4000:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
@@ -2539,6 +2545,12 @@ fieldset:disabled .mantine-active:active {
2539
2545
  opacity: 1;
2540
2546
  }
2541
2547
 
2548
+ .m_a530ee0a {
2549
+ width: 0.8em;
2550
+ min-width: 0.8em;
2551
+ height: 0.8em;
2552
+ }
2553
+
2542
2554
  .m_5f75b09e {
2543
2555
  --label-lh-xs: calc(1rem * var(--mantine-scale));
2544
2556
  --label-lh-sm: calc(1.25rem * var(--mantine-scale));
@@ -2598,6 +2610,7 @@ fieldset:disabled .m_8ee546b8,
2598
2610
  margin-top: calc(var(--mantine-spacing-xs) / 2);
2599
2611
  padding-inline-start: var(--label-offset-start);
2600
2612
  padding-inline-end: var(--label-offset-end);
2613
+ cursor: default;
2601
2614
  }
2602
2615
 
2603
2616
  .m_8e8a99cc {
@@ -3977,6 +3990,20 @@ fieldset:disabled .m_8ee546b8,
3977
3990
  --ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm);
3978
3991
  }
3979
3992
 
3993
+ .m_66a028b5 {
3994
+ --ci-button-size-xs: calc(1.375rem * var(--mantine-scale));
3995
+ --ci-button-size-sm: calc(1.625rem * var(--mantine-scale));
3996
+ --ci-button-size-md: calc(1.75rem * var(--mantine-scale));
3997
+ --ci-button-size-lg: calc(2rem * var(--mantine-scale));
3998
+ --ci-button-size-xl: calc(2.5rem * var(--mantine-scale));
3999
+ --ci-button-size: var(--ci-button-size-sm);
4000
+
4001
+ width: var(--ci-button-size);
4002
+ height: var(--ci-button-size);
4003
+ min-width: var(--ci-button-size);
4004
+ min-height: var(--ci-button-size);
4005
+ }
4006
+
3980
4007
  .m_c5ccdcab {
3981
4008
  --ci-preview-size-xs: calc(1rem * var(--mantine-scale));
3982
4009
  --ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));
package/styles.layer.css CHANGED
@@ -1,4 +1,5 @@
1
- @layer mantine {:root {
1
+ @layer mantine {:root,
2
+ :host {
2
3
  color-scheme: var(--mantine-color-scheme);
3
4
  }
4
5
 
@@ -20,7 +21,8 @@ select {
20
21
  text-transform: none;
21
22
  }
22
23
 
23
- body {
24
+ body,
25
+ :host {
24
26
  margin: 0;
25
27
  font-family: var(--mantine-font-family);
26
28
  font-size: var(--mantine-font-size-md);
@@ -34,7 +36,8 @@ body {
34
36
 
35
37
  @media screen and (max-device-width: 31.25em) {
36
38
 
37
- body {
39
+ body,
40
+ :host {
38
41
  -webkit-text-size-adjust: 100%
39
42
  }
40
43
  }
@@ -81,7 +84,8 @@ fieldset:disabled .mantine-active:active {
81
84
  }
82
85
 
83
86
  /* This file is automatically generated, do not modify it directly. */
84
- :root {
87
+ :root,
88
+ :host {
85
89
  --mantine-z-index-app: 100;
86
90
  --mantine-z-index-modal: 200;
87
91
  --mantine-z-index-popover: 300;
@@ -338,7 +342,8 @@ fieldset:disabled .mantine-active:active {
338
342
  --mantine-h6-font-weight: 700;
339
343
  }
340
344
 
341
- :root[data-mantine-color-scheme='dark'] {
345
+ :root[data-mantine-color-scheme='dark'],
346
+ :host([data-mantine-color-scheme='dark']) {
342
347
  --mantine-color-scheme: dark;
343
348
  --mantine-primary-color-contrast: var(--mantine-color-white);
344
349
  --mantine-color-bright: var(--mantine-color-white);
@@ -469,7 +474,8 @@ fieldset:disabled .mantine-active:active {
469
474
  --mantine-color-orange-outline-hover: rgba(255, 169, 77, 0.05);
470
475
  }
471
476
 
472
- :root[data-mantine-color-scheme='light'] {
477
+ :root[data-mantine-color-scheme='light'],
478
+ :host([data-mantine-color-scheme='light']) {
473
479
  --mantine-color-scheme: light;
474
480
  --mantine-primary-color-contrast: var(--mantine-color-white);
475
481
  --mantine-color-bright: var(--mantine-color-black);
@@ -1079,7 +1085,7 @@ fieldset:disabled .mantine-active:active {
1079
1085
  cursor: not-allowed;
1080
1086
  border: calc(0.0625rem * var(--mantine-scale)) solid transparent;
1081
1087
  color: var(--mantine-color-disabled-color);
1082
- background-color: var(--mantine-color-disabled);
1088
+ background: var(--mantine-color-disabled);
1083
1089
  }
1084
1090
 
1085
1091
  .m_8d3f4000:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
@@ -2539,6 +2545,12 @@ fieldset:disabled .mantine-active:active {
2539
2545
  opacity: 1;
2540
2546
  }
2541
2547
 
2548
+ .m_a530ee0a {
2549
+ width: 0.8em;
2550
+ min-width: 0.8em;
2551
+ height: 0.8em;
2552
+ }
2553
+
2542
2554
  .m_5f75b09e {
2543
2555
  --label-lh-xs: calc(1rem * var(--mantine-scale));
2544
2556
  --label-lh-sm: calc(1.25rem * var(--mantine-scale));
@@ -2598,6 +2610,7 @@ fieldset:disabled .m_8ee546b8,
2598
2610
  margin-top: calc(var(--mantine-spacing-xs) / 2);
2599
2611
  padding-inline-start: var(--label-offset-start);
2600
2612
  padding-inline-end: var(--label-offset-end);
2613
+ cursor: default;
2601
2614
  }
2602
2615
 
2603
2616
  .m_8e8a99cc {
@@ -3977,6 +3990,20 @@ fieldset:disabled .m_8ee546b8,
3977
3990
  --ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm);
3978
3991
  }
3979
3992
 
3993
+ .m_66a028b5 {
3994
+ --ci-button-size-xs: calc(1.375rem * var(--mantine-scale));
3995
+ --ci-button-size-sm: calc(1.625rem * var(--mantine-scale));
3996
+ --ci-button-size-md: calc(1.75rem * var(--mantine-scale));
3997
+ --ci-button-size-lg: calc(2rem * var(--mantine-scale));
3998
+ --ci-button-size-xl: calc(2.5rem * var(--mantine-scale));
3999
+ --ci-button-size: var(--ci-button-size-sm);
4000
+
4001
+ width: var(--ci-button-size);
4002
+ height: var(--ci-button-size);
4003
+ min-width: var(--ci-button-size);
4004
+ min-height: var(--ci-button-size);
4005
+ }
4006
+
3980
4007
  .m_c5ccdcab {
3981
4008
  --ci-preview-size-xs: calc(1rem * var(--mantine-scale));
3982
4009
  --ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));
@@ -1,10 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- function wrapWithSelector(selectors, code) {
5
- const _selectors = Array.isArray(selectors) ? selectors : [selectors];
6
- return _selectors.reduce((acc, selector) => `${selector}{${acc}}`, code);
7
- }
8
-
9
- exports.wrapWithSelector = wrapWithSelector;
10
- //# sourceMappingURL=wrap-with-selector.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrap-with-selector.cjs","sources":["../../../../src/core/MantineProvider/convert-css-variables/wrap-with-selector.ts"],"sourcesContent":["export function wrapWithSelector(selectors: string | string[], code: string) {\n const _selectors = Array.isArray(selectors) ? selectors : [selectors];\n return _selectors.reduce((acc, selector) => `${selector}{${acc}}`, code);\n}\n"],"names":[],"mappings":";;;AAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAA8B,IAAA,CAAA,CAAc,CAAA;AAC3E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,SAAS,CAAA,CAAA;AACpE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,UAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA;AACzE,CAAA;;"}
@@ -1,8 +0,0 @@
1
- 'use client';
2
- function wrapWithSelector(selectors, code) {
3
- const _selectors = Array.isArray(selectors) ? selectors : [selectors];
4
- return _selectors.reduce((acc, selector) => `${selector}{${acc}}`, code);
5
- }
6
-
7
- export { wrapWithSelector };
8
- //# sourceMappingURL=wrap-with-selector.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wrap-with-selector.mjs","sources":["../../../../src/core/MantineProvider/convert-css-variables/wrap-with-selector.ts"],"sourcesContent":["export function wrapWithSelector(selectors: string | string[], code: string) {\n const _selectors = Array.isArray(selectors) ? selectors : [selectors];\n return _selectors.reduce((acc, selector) => `${selector}{${acc}}`, code);\n}\n"],"names":[],"mappings":";AAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,GAA8B,IAAA,CAAA,CAAc,CAAA;AAC3E,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAa,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,CAAC,SAAS,CAAA,CAAA;AACpE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,UAAA,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,CAAC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA;AACzE,CAAA;;"}
@@ -1 +0,0 @@
1
- export declare function wrapWithSelector(selectors: string | string[], code: string): string;