@mantine/core 8.3.9 → 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 (89) hide show
  1. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.cjs +6 -5
  2. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.cjs.map +1 -1
  3. package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.cjs +5 -4
  4. package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.cjs.map +1 -1
  5. package/cjs/components/FocusTrap/FocusTrap.cjs +4 -3
  6. package/cjs/components/FocusTrap/FocusTrap.cjs.map +1 -1
  7. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs +7 -6
  8. package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs.map +1 -1
  9. package/cjs/components/List/List.cjs +1 -1
  10. package/cjs/components/List/List.cjs.map +1 -1
  11. package/cjs/components/Menu/Menu.cjs +1 -0
  12. package/cjs/components/Menu/Menu.cjs.map +1 -1
  13. package/cjs/components/Menu/MenuTarget/MenuTarget.cjs +8 -7
  14. package/cjs/components/Menu/MenuTarget/MenuTarget.cjs.map +1 -1
  15. package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
  16. package/cjs/components/PasswordInput/PasswordInput.cjs.map +1 -1
  17. package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs +8 -10
  18. package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs.map +1 -1
  19. package/cjs/components/Popover/use-popover.cjs +1 -1
  20. package/cjs/components/Popover/use-popover.cjs.map +1 -1
  21. package/cjs/components/Tooltip/Tooltip.cjs +8 -8
  22. package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
  23. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +9 -8
  24. package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
  25. package/cjs/core/MantineProvider/MantineCssVariables/MantineCssVariables.cjs +10 -6
  26. package/cjs/core/MantineProvider/MantineCssVariables/MantineCssVariables.cjs.map +1 -1
  27. package/cjs/core/MantineProvider/MantineProvider.cjs +2 -2
  28. package/cjs/core/MantineProvider/MantineProvider.cjs.map +1 -1
  29. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs +8 -5
  30. package/cjs/core/MantineProvider/convert-css-variables/convert-css-variables.cjs.map +1 -1
  31. package/cjs/core/utils/get-single-element-child/get-single-element-child.cjs +16 -0
  32. package/cjs/core/utils/get-single-element-child/get-single-element-child.cjs.map +1 -0
  33. package/cjs/index.cjs +2 -0
  34. package/cjs/index.cjs.map +1 -1
  35. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs +6 -5
  36. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs.map +1 -1
  37. package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs +5 -4
  38. package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs.map +1 -1
  39. package/esm/components/FocusTrap/FocusTrap.mjs +4 -3
  40. package/esm/components/FocusTrap/FocusTrap.mjs.map +1 -1
  41. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs +7 -6
  42. package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs.map +1 -1
  43. package/esm/components/List/List.mjs +1 -1
  44. package/esm/components/List/List.mjs.map +1 -1
  45. package/esm/components/Menu/Menu.mjs +1 -0
  46. package/esm/components/Menu/Menu.mjs.map +1 -1
  47. package/esm/components/Menu/MenuTarget/MenuTarget.mjs +8 -7
  48. package/esm/components/Menu/MenuTarget/MenuTarget.mjs.map +1 -1
  49. package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
  50. package/esm/components/PasswordInput/PasswordInput.mjs.map +1 -1
  51. package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs +8 -10
  52. package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs.map +1 -1
  53. package/esm/components/Popover/use-popover.mjs +2 -2
  54. package/esm/components/Popover/use-popover.mjs.map +1 -1
  55. package/esm/components/Tooltip/Tooltip.mjs +8 -8
  56. package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
  57. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +9 -8
  58. package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
  59. package/esm/core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs +10 -6
  60. package/esm/core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs.map +1 -1
  61. package/esm/core/MantineProvider/MantineProvider.mjs +2 -2
  62. package/esm/core/MantineProvider/MantineProvider.mjs.map +1 -1
  63. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs +8 -5
  64. package/esm/core/MantineProvider/convert-css-variables/convert-css-variables.mjs.map +1 -1
  65. package/esm/core/utils/get-single-element-child/get-single-element-child.mjs +14 -0
  66. package/esm/core/utils/get-single-element-child/get-single-element-child.mjs.map +1 -0
  67. package/esm/index.mjs +1 -0
  68. package/esm/index.mjs.map +1 -1
  69. package/lib/components/NumberInput/NumberInput.d.ts +1 -1
  70. package/lib/components/PasswordInput/PasswordInput.d.ts +1 -1
  71. package/lib/core/MantineProvider/MantineCssVariables/MantineCssVariables.d.ts +1 -1
  72. package/lib/core/MantineProvider/MantineProvider.d.ts +1 -1
  73. package/lib/core/MantineProvider/convert-css-variables/convert-css-variables.d.ts +1 -1
  74. package/lib/core/utils/get-single-element-child/get-single-element-child.d.ts +1 -0
  75. package/lib/core/utils/index.d.ts +1 -0
  76. package/package.json +2 -2
  77. package/styles/InlineInput.css +1 -0
  78. package/styles/InlineInput.layer.css +1 -0
  79. package/styles/baseline.css +6 -3
  80. package/styles/baseline.layer.css +6 -3
  81. package/styles/default-css-variables.css +6 -3
  82. package/styles/default-css-variables.layer.css +6 -3
  83. package/styles.css +13 -6
  84. package/styles.layer.css +13 -6
  85. package/cjs/core/MantineProvider/convert-css-variables/wrap-with-selector.cjs +0 -10
  86. package/cjs/core/MantineProvider/convert-css-variables/wrap-with-selector.cjs.map +0 -1
  87. package/esm/core/MantineProvider/convert-css-variables/wrap-with-selector.mjs +0 -8
  88. package/esm/core/MantineProvider/convert-css-variables/wrap-with-selector.mjs.map +0 -1
  89. package/lib/core/MantineProvider/convert-css-variables/wrap-with-selector.d.ts +0 -1
@@ -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;
@@ -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.9",
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.9",
46
+ "@mantine/hooks": "8.3.10",
47
47
  "react": "^18.x || ^19.x",
48
48
  "react-dom": "^18.x || ^19.x"
49
49
  },
@@ -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);
@@ -2604,6 +2610,7 @@ fieldset:disabled .m_8ee546b8,
2604
2610
  margin-top: calc(var(--mantine-spacing-xs) / 2);
2605
2611
  padding-inline-start: var(--label-offset-start);
2606
2612
  padding-inline-end: var(--label-offset-end);
2613
+ cursor: default;
2607
2614
  }
2608
2615
 
2609
2616
  .m_8e8a99cc {
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);
@@ -2604,6 +2610,7 @@ fieldset:disabled .m_8ee546b8,
2604
2610
  margin-top: calc(var(--mantine-spacing-xs) / 2);
2605
2611
  padding-inline-start: var(--label-offset-start);
2606
2612
  padding-inline-end: var(--label-offset-end);
2613
+ cursor: default;
2607
2614
  }
2608
2615
 
2609
2616
  .m_8e8a99cc {
@@ -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;