@mantine/core 7.0.0-alpha.15 → 7.0.0-alpha.16

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 (141) hide show
  1. package/cjs/components/Combobox/Combobox.js +9 -1
  2. package/cjs/components/Combobox/Combobox.js.map +1 -1
  3. package/cjs/components/Combobox/Combobox.module.css.js +1 -1
  4. package/cjs/components/Combobox/ComboboxDropdown/ComboboxDropdown.js +3 -5
  5. package/cjs/components/Combobox/ComboboxDropdown/ComboboxDropdown.js.map +1 -1
  6. package/cjs/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.js +32 -0
  7. package/cjs/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.js.map +1 -0
  8. package/cjs/components/Combobox/ComboboxEmpty/ComboboxEmpty.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.js +71 -0
  10. package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.js.map +1 -0
  11. package/cjs/components/Combobox/ComboboxFooter/ComboboxFooter.js.map +1 -1
  12. package/cjs/components/Combobox/ComboboxHeader/ComboboxHeader.js.map +1 -1
  13. package/cjs/components/Combobox/ComboboxOption/ComboboxOption.js +2 -3
  14. package/cjs/components/Combobox/ComboboxOption/ComboboxOption.js.map +1 -1
  15. package/cjs/components/Combobox/ComboboxSearch/ComboboxSearch.js +7 -2
  16. package/cjs/components/Combobox/ComboboxSearch/ComboboxSearch.js.map +1 -1
  17. package/cjs/components/Combobox/use-combobox/use-combobox.js.map +1 -1
  18. package/cjs/components/Input/Input.js +19 -10
  19. package/cjs/components/Input/Input.js.map +1 -1
  20. package/cjs/components/Input/InputDescription/InputDescription.js +1 -1
  21. package/cjs/components/Input/InputDescription/InputDescription.js.map +1 -1
  22. package/cjs/components/Input/InputError/InputError.js +1 -1
  23. package/cjs/components/Input/InputError/InputError.js.map +1 -1
  24. package/cjs/components/Input/InputLabel/InputLabel.js +1 -1
  25. package/cjs/components/Input/InputLabel/InputLabel.js.map +1 -1
  26. package/cjs/components/Input/InputWrapper/InputWrapper.js +9 -5
  27. package/cjs/components/Input/InputWrapper/InputWrapper.js.map +1 -1
  28. package/cjs/components/Input/InputWrapper.context.js +4 -5
  29. package/cjs/components/Input/InputWrapper.context.js.map +1 -1
  30. package/cjs/components/Input/use-input-props.js +0 -4
  31. package/cjs/components/Input/use-input-props.js.map +1 -1
  32. package/cjs/components/InputBase/InputBase.js +2 -1
  33. package/cjs/components/InputBase/InputBase.js.map +1 -1
  34. package/cjs/components/Pill/Pill.js +158 -0
  35. package/cjs/components/Pill/Pill.js.map +1 -0
  36. package/cjs/components/Pill/Pill.module.css.js +8 -0
  37. package/cjs/components/Pill/Pill.module.css.js.map +1 -0
  38. package/cjs/components/Pill/PillGroup/PillGroup.js +78 -0
  39. package/cjs/components/Pill/PillGroup/PillGroup.js.map +1 -0
  40. package/cjs/components/Pill/PillGroup/PillGroup.module.css.js +8 -0
  41. package/cjs/components/Pill/PillGroup/PillGroup.module.css.js.map +1 -0
  42. package/cjs/components/Pill/PillGroup.context.js +11 -0
  43. package/cjs/components/Pill/PillGroup.context.js.map +1 -0
  44. package/cjs/components/PillsInput/PillsInput.context.js +11 -0
  45. package/cjs/components/PillsInput/PillsInput.context.js.map +1 -0
  46. package/cjs/components/PillsInput/PillsInput.js +105 -0
  47. package/cjs/components/PillsInput/PillsInput.js.map +1 -0
  48. package/cjs/components/PillsInput/PillsInputField/PillsInputField.js +88 -0
  49. package/cjs/components/PillsInput/PillsInputField/PillsInputField.js.map +1 -0
  50. package/cjs/components/PillsInput/PillsInputField/PillsInputField.module.css.js +8 -0
  51. package/cjs/components/PillsInput/PillsInputField/PillsInputField.module.css.js.map +1 -0
  52. package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.js +2 -2
  53. package/cjs/components/Popover/PopoverDropdown/PopoverDropdown.js.map +1 -1
  54. package/cjs/core/utils/create-optional-context/create-optional-context.js +19 -0
  55. package/cjs/core/utils/create-optional-context/create-optional-context.js.map +1 -0
  56. package/cjs/index.css +182 -16
  57. package/cjs/index.js +20 -0
  58. package/cjs/index.js.map +1 -1
  59. package/esm/components/Combobox/Combobox.js +9 -1
  60. package/esm/components/Combobox/Combobox.js.map +1 -1
  61. package/esm/components/Combobox/Combobox.module.css.js +1 -1
  62. package/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.js +3 -5
  63. package/esm/components/Combobox/ComboboxDropdown/ComboboxDropdown.js.map +1 -1
  64. package/esm/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.js +24 -0
  65. package/esm/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.js.map +1 -0
  66. package/esm/components/Combobox/ComboboxEmpty/ComboboxEmpty.js.map +1 -1
  67. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.js +67 -0
  68. package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.js.map +1 -0
  69. package/esm/components/Combobox/ComboboxFooter/ComboboxFooter.js.map +1 -1
  70. package/esm/components/Combobox/ComboboxHeader/ComboboxHeader.js.map +1 -1
  71. package/esm/components/Combobox/ComboboxOption/ComboboxOption.js +2 -3
  72. package/esm/components/Combobox/ComboboxOption/ComboboxOption.js.map +1 -1
  73. package/esm/components/Combobox/ComboboxSearch/ComboboxSearch.js +7 -2
  74. package/esm/components/Combobox/ComboboxSearch/ComboboxSearch.js.map +1 -1
  75. package/esm/components/Combobox/use-combobox/use-combobox.js.map +1 -1
  76. package/esm/components/Input/Input.js +19 -10
  77. package/esm/components/Input/Input.js.map +1 -1
  78. package/esm/components/Input/InputDescription/InputDescription.js +1 -1
  79. package/esm/components/Input/InputDescription/InputDescription.js.map +1 -1
  80. package/esm/components/Input/InputError/InputError.js +1 -1
  81. package/esm/components/Input/InputError/InputError.js.map +1 -1
  82. package/esm/components/Input/InputLabel/InputLabel.js +1 -1
  83. package/esm/components/Input/InputLabel/InputLabel.js.map +1 -1
  84. package/esm/components/Input/InputWrapper/InputWrapper.js +9 -5
  85. package/esm/components/Input/InputWrapper/InputWrapper.js.map +1 -1
  86. package/esm/components/Input/InputWrapper.context.js +4 -5
  87. package/esm/components/Input/InputWrapper.context.js.map +1 -1
  88. package/esm/components/Input/use-input-props.js +0 -4
  89. package/esm/components/Input/use-input-props.js.map +1 -1
  90. package/esm/components/InputBase/InputBase.js +2 -1
  91. package/esm/components/InputBase/InputBase.js.map +1 -1
  92. package/esm/components/Pill/Pill.js +150 -0
  93. package/esm/components/Pill/Pill.js.map +1 -0
  94. package/esm/components/Pill/Pill.module.css.js +4 -0
  95. package/esm/components/Pill/Pill.module.css.js.map +1 -0
  96. package/esm/components/Pill/PillGroup/PillGroup.js +70 -0
  97. package/esm/components/Pill/PillGroup/PillGroup.js.map +1 -0
  98. package/esm/components/Pill/PillGroup/PillGroup.module.css.js +4 -0
  99. package/esm/components/Pill/PillGroup/PillGroup.module.css.js.map +1 -0
  100. package/esm/components/Pill/PillGroup.context.js +6 -0
  101. package/esm/components/Pill/PillGroup.context.js.map +1 -0
  102. package/esm/components/PillsInput/PillsInput.context.js +6 -0
  103. package/esm/components/PillsInput/PillsInput.context.js.map +1 -0
  104. package/esm/components/PillsInput/PillsInput.js +97 -0
  105. package/esm/components/PillsInput/PillsInput.js.map +1 -0
  106. package/esm/components/PillsInput/PillsInputField/PillsInputField.js +80 -0
  107. package/esm/components/PillsInput/PillsInputField/PillsInputField.js.map +1 -0
  108. package/esm/components/PillsInput/PillsInputField/PillsInputField.module.css.js +4 -0
  109. package/esm/components/PillsInput/PillsInputField/PillsInputField.module.css.js.map +1 -0
  110. package/esm/components/Popover/PopoverDropdown/PopoverDropdown.js +2 -2
  111. package/esm/components/Popover/PopoverDropdown/PopoverDropdown.js.map +1 -1
  112. package/esm/core/utils/create-optional-context/create-optional-context.js +11 -0
  113. package/esm/core/utils/create-optional-context/create-optional-context.js.map +1 -0
  114. package/esm/index.css +182 -16
  115. package/esm/index.js +10 -0
  116. package/esm/index.js.map +1 -1
  117. package/lib/components/Combobox/Combobox.d.ts +16 -1
  118. package/lib/components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.d.ts +18 -0
  119. package/lib/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.d.ts +27 -0
  120. package/lib/components/Combobox/index.d.ts +9 -1
  121. package/lib/components/Combobox/use-combobox/use-combobox.d.ts +33 -2
  122. package/lib/components/Input/Input.d.ts +6 -2
  123. package/lib/components/Input/InputWrapper.context.d.ts +5 -2
  124. package/lib/components/Input/index.d.ts +1 -0
  125. package/lib/components/Input/use-input-props.d.ts +48 -49
  126. package/lib/components/InputBase/InputBase.d.ts +2 -0
  127. package/lib/components/Pill/Pill.d.ts +48 -0
  128. package/lib/components/Pill/PillGroup/PillGroup.d.ts +31 -0
  129. package/lib/components/Pill/PillGroup.context.d.ts +10 -0
  130. package/lib/components/Pill/index.d.ts +4 -0
  131. package/lib/components/PillsInput/PillsInput.context.d.ts +14 -0
  132. package/lib/components/PillsInput/PillsInput.d.ts +22 -0
  133. package/lib/components/PillsInput/PillsInputField/PillsInputField.d.ts +22 -0
  134. package/lib/components/PillsInput/index.d.ts +4 -0
  135. package/lib/components/UnstyledButton/UnstyledButton.d.ts +1 -1
  136. package/lib/components/index.d.ts +2 -0
  137. package/lib/core/Box/Box.d.ts +1 -1
  138. package/lib/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.d.ts +1 -1
  139. package/lib/core/utils/create-optional-context/create-optional-context.d.ts +5 -0
  140. package/lib/core/utils/index.d.ts +1 -0
  141. package/package.json +2 -2
@@ -0,0 +1,80 @@
1
+ import React from 'react';
2
+ import { useMergedRef } from '@mantine/hooks';
3
+ import { usePillsInputContext } from '../PillsInput.context.js';
4
+ import classes from './PillsInputField.module.css.js';
5
+ import { useInputWrapperContext } from '../../Input/InputWrapper.context.js';
6
+ import { factory } from '../../../core/factory/factory.js';
7
+ import { useProps } from '../../../core/MantineProvider/use-props/use-props.js';
8
+ import { useStyles } from '../../../core/styles-api/use-styles/use-styles.js';
9
+ import { Box } from '../../../core/Box/Box.js';
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __defProps = Object.defineProperties;
13
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
14
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
17
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18
+ var __spreadValues = (a, b) => {
19
+ for (var prop in b || (b = {}))
20
+ if (__hasOwnProp.call(b, prop))
21
+ __defNormalProp(a, prop, b[prop]);
22
+ if (__getOwnPropSymbols)
23
+ for (var prop of __getOwnPropSymbols(b)) {
24
+ if (__propIsEnum.call(b, prop))
25
+ __defNormalProp(a, prop, b[prop]);
26
+ }
27
+ return a;
28
+ };
29
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
30
+ var __objRest = (source, exclude) => {
31
+ var target = {};
32
+ for (var prop in source)
33
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
34
+ target[prop] = source[prop];
35
+ if (source != null && __getOwnPropSymbols)
36
+ for (var prop of __getOwnPropSymbols(source)) {
37
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
38
+ target[prop] = source[prop];
39
+ }
40
+ return target;
41
+ };
42
+ const defaultProps = {
43
+ type: "visible"
44
+ };
45
+ const PillsInputField = factory((_props, ref) => {
46
+ const props = useProps("PillsInputField", defaultProps, _props);
47
+ const _a = props, { classNames, className, style, styles, unstyled, vars, type, disabled, id } = _a, others = __objRest(_a, ["classNames", "className", "style", "styles", "unstyled", "vars", "type", "disabled", "id"]);
48
+ const ctx = usePillsInputContext();
49
+ const inputWrapperCtx = useInputWrapperContext();
50
+ const getStyles = useStyles({
51
+ name: "PillsInputField",
52
+ classes,
53
+ props,
54
+ className,
55
+ style,
56
+ classNames,
57
+ styles,
58
+ unstyled
59
+ });
60
+ const _disabled = disabled || (ctx == null ? void 0 : ctx.disabled);
61
+ return /* @__PURE__ */ React.createElement(
62
+ Box,
63
+ __spreadProps(__spreadValues(__spreadValues({
64
+ component: "input",
65
+ ref: useMergedRef(ref, ctx == null ? void 0 : ctx.fieldRef),
66
+ "data-type": type,
67
+ disabled: _disabled,
68
+ mod: { disabled: _disabled }
69
+ }, getStyles("root")), others), {
70
+ id: (inputWrapperCtx == null ? void 0 : inputWrapperCtx.inputId) || id,
71
+ "aria-invalid": ctx == null ? void 0 : ctx.hasError,
72
+ "aria-describedby": inputWrapperCtx == null ? void 0 : inputWrapperCtx.describedBy
73
+ })
74
+ );
75
+ });
76
+ PillsInputField.classes = classes;
77
+ PillsInputField.displayName = "@mantine/core/PillsInputField";
78
+
79
+ export { PillsInputField };
80
+ //# sourceMappingURL=PillsInputField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillsInputField.js","sources":["../../../../src/components/PillsInput/PillsInputField/PillsInputField.tsx"],"sourcesContent":["import React from 'react';\nimport { useMergedRef } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n useStyles,\n Factory,\n MantineSize,\n} from '../../../core';\nimport { useInputWrapperContext } from '../../Input';\nimport { usePillsInputContext } from '../PillsInput.context';\nimport classes from './PillsInputField.module.css';\n\nexport type PillsInputFieldStylesNames = 'root';\n\nexport interface PillsInputFieldProps\n extends BoxProps,\n StylesApiProps<PillsInputFieldFactory>,\n ElementProps<'input', 'type'> {\n /** Controls input styles when focused. If `auto` the input is hidden when not focused. If `visible` the input will always remain visible. `'visible'` by default */\n type?: 'auto' | 'visible' | 'hidden';\n}\n\nexport type PillsInputFieldFactory = Factory<{\n props: PillsInputFieldProps;\n ref: HTMLInputElement;\n stylesNames: PillsInputFieldStylesNames;\n ctx: {\n size: MantineSize | (string & {});\n };\n}>;\n\nconst defaultProps: Partial<PillsInputFieldProps> = {\n type: 'visible',\n};\n\nexport const PillsInputField = factory<PillsInputFieldFactory>((_props, ref) => {\n const props = useProps('PillsInputField', defaultProps, _props);\n const { classNames, className, style, styles, unstyled, vars, type, disabled, id, ...others } =\n props;\n const ctx = usePillsInputContext();\n const inputWrapperCtx = useInputWrapperContext();\n\n const getStyles = useStyles<PillsInputFieldFactory>({\n name: 'PillsInputField',\n classes,\n props,\n className,\n style,\n classNames,\n styles,\n unstyled,\n });\n\n const _disabled = disabled || ctx?.disabled;\n\n return (\n <Box\n component=\"input\"\n ref={useMergedRef(ref, ctx?.fieldRef)}\n data-type={type}\n disabled={_disabled}\n mod={{ disabled: _disabled }}\n {...getStyles('root')}\n {...others}\n id={inputWrapperCtx?.inputId || id}\n aria-invalid={ctx?.hasError}\n aria-describedby={inputWrapperCtx?.describedBy}\n />\n );\n});\n\nPillsInputField.classes = classes;\nPillsInputField.displayName = '@mantine/core/PillsInputField';\n"],"names":[],"mappings":";;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD,IAAI,eAAe,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,KAAK,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAChK,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,IAAI,aAAa,CAAC,cAAc,CAAC,cAAc,CAAC;AAChD,MAAM,SAAS,EAAE,OAAO;AACxB,MAAM,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC;AACjE,MAAM,WAAW,EAAE,IAAI;AACvB,MAAM,QAAQ,EAAE,SAAS;AACzB,MAAM,GAAG,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE;AAClC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;AACpC,MAAM,EAAE,EAAE,CAAC,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,OAAO,KAAK,EAAE;AAC5E,MAAM,cAAc,EAAE,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,QAAQ;AACzD,MAAM,kBAAkB,EAAE,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,WAAW;AACxF,KAAK,CAAC;AACN,GAAG,CAAC;AACJ,CAAC,EAAE;AACH,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
@@ -0,0 +1,4 @@
1
+ var classes = {"root":"mantine-WAKiSWq"};
2
+
3
+ export default classes;
4
+ //# sourceMappingURL=PillsInputField.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PillsInputField.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -76,7 +76,8 @@ const PopoverDropdown = factory((_props, ref) => {
76
76
  const accessibleProps = ctx.withRoles ? {
77
77
  "aria-labelledby": ctx.getTargetId(),
78
78
  id: ctx.getDropdownId(),
79
- role: "dialog"
79
+ role: "dialog",
80
+ tabIndex: -1
80
81
  } : {};
81
82
  const mergedRef = useMergedRef(ref, ctx.floating);
82
83
  if (ctx.disabled) {
@@ -98,7 +99,6 @@ const PopoverDropdown = factory((_props, ref) => {
98
99
  Box,
99
100
  __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, accessibleProps), others), {
100
101
  variant,
101
- tabIndex: -1,
102
102
  ref: mergedRef,
103
103
  onKeyDownCapture: closeOnEscape(ctx.onClose, {
104
104
  active: ctx.closeOnEscape,
@@ -1 +1 @@
1
- {"version":3,"file":"PopoverDropdown.js","sources":["../../../../src/components/Popover/PopoverDropdown/PopoverDropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { useFocusReturn, useMergedRef } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n rem,\n closeOnEscape,\n Factory,\n} from '../../../core';\nimport { OptionalPortal } from '../../Portal';\nimport { Transition } from '../../Transition';\nimport { FocusTrap } from '../../FocusTrap';\nimport { FloatingArrow } from '../../Floating';\nimport type { PopoverStylesNames } from '../Popover';\nimport { usePopoverContext } from '../Popover.context';\nimport classes from '../Popover.module.css';\n\nexport interface PopoverDropdownProps\n extends BoxProps,\n StylesApiProps<PopoverDropdownFactory>,\n ElementProps<'div'> {}\n\nexport type PopoverDropdownFactory = Factory<{\n props: PopoverDropdownProps;\n ref: HTMLDivElement;\n stylesNames: PopoverStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<PopoverDropdownProps> = {};\n\nexport const PopoverDropdown = factory<PopoverDropdownFactory>((_props, ref) => {\n const props = useProps('PopoverDropdown', defaultProps, _props);\n const {\n className,\n style,\n unstyled,\n vars,\n children,\n onKeyDownCapture,\n variant,\n classNames,\n styles,\n ...others\n } = props;\n\n const ctx = usePopoverContext();\n\n const returnFocus = useFocusReturn({\n opened: ctx.opened,\n shouldReturnFocus: ctx.returnFocus,\n });\n\n const accessibleProps = ctx.withRoles\n ? {\n 'aria-labelledby': ctx.getTargetId(),\n id: ctx.getDropdownId(),\n role: 'dialog',\n }\n : {};\n\n const mergedRef = useMergedRef(ref, ctx.floating);\n\n if (ctx.disabled) {\n return null;\n }\n\n return (\n <OptionalPortal {...ctx.portalProps} withinPortal={ctx.withinPortal}>\n <Transition\n mounted={ctx.opened}\n {...ctx.transitionProps}\n transition={ctx.transitionProps?.transition || 'fade'}\n duration={ctx.transitionProps?.duration ?? 150}\n keepMounted={ctx.keepMounted}\n exitDuration={\n typeof ctx.transitionProps?.exitDuration === 'number'\n ? ctx.transitionProps.exitDuration\n : ctx.transitionProps?.duration\n }\n >\n {(transitionStyles) => (\n <FocusTrap active={ctx.trapFocus}>\n <Box\n {...accessibleProps}\n {...others}\n variant={variant}\n tabIndex={-1}\n ref={mergedRef}\n onKeyDownCapture={closeOnEscape(ctx.onClose, {\n active: ctx.closeOnEscape,\n onTrigger: returnFocus,\n onKeyDown: onKeyDownCapture,\n })}\n data-position={ctx.placement}\n {...ctx.getStyles('dropdown', {\n className,\n props,\n classNames,\n styles,\n style: [\n {\n ...transitionStyles,\n zIndex: ctx.zIndex,\n top: ctx.y ?? 0,\n left: ctx.x ?? 0,\n width: ctx.width === 'target' ? undefined : rem(ctx.width),\n },\n style,\n ],\n })}\n >\n {children}\n\n <FloatingArrow\n ref={ctx.arrowRef}\n arrowX={ctx.arrowX}\n arrowY={ctx.arrowY}\n visible={ctx.withArrow}\n position={ctx.placement}\n arrowSize={ctx.arrowSize}\n arrowRadius={ctx.arrowRadius}\n arrowOffset={ctx.arrowOffset}\n arrowPosition={ctx.arrowPosition}\n {...ctx.getStyles('arrow', {\n props,\n classNames,\n styles,\n })}\n />\n </Box>\n </FocusTrap>\n )}\n </Transition>\n </OptionalPortal>\n );\n});\n\nPopoverDropdown.classes = classes;\nPopoverDropdown.displayName = '@mantine/core/PopoverDropdown';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC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C;AAClC,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
1
+ {"version":3,"file":"PopoverDropdown.js","sources":["../../../../src/components/Popover/PopoverDropdown/PopoverDropdown.tsx"],"sourcesContent":["import React from 'react';\nimport { useFocusReturn, useMergedRef } from '@mantine/hooks';\nimport {\n Box,\n BoxProps,\n StylesApiProps,\n factory,\n ElementProps,\n useProps,\n rem,\n closeOnEscape,\n Factory,\n} from '../../../core';\nimport { OptionalPortal } from '../../Portal';\nimport { Transition } from '../../Transition';\nimport { FocusTrap } from '../../FocusTrap';\nimport { FloatingArrow } from '../../Floating';\nimport type { PopoverStylesNames } from '../Popover';\nimport { usePopoverContext } from '../Popover.context';\nimport classes from '../Popover.module.css';\n\nexport interface PopoverDropdownProps\n extends BoxProps,\n StylesApiProps<PopoverDropdownFactory>,\n ElementProps<'div'> {}\n\nexport type PopoverDropdownFactory = Factory<{\n props: PopoverDropdownProps;\n ref: HTMLDivElement;\n stylesNames: PopoverStylesNames;\n compound: true;\n}>;\n\nconst defaultProps: Partial<PopoverDropdownProps> = {};\n\nexport const PopoverDropdown = factory<PopoverDropdownFactory>((_props, ref) => {\n const props = useProps('PopoverDropdown', defaultProps, _props);\n const {\n className,\n style,\n unstyled,\n vars,\n children,\n onKeyDownCapture,\n variant,\n classNames,\n styles,\n ...others\n } = props;\n\n const ctx = usePopoverContext();\n\n const returnFocus = useFocusReturn({\n opened: ctx.opened,\n shouldReturnFocus: ctx.returnFocus,\n });\n\n const accessibleProps = ctx.withRoles\n ? {\n 'aria-labelledby': ctx.getTargetId(),\n id: ctx.getDropdownId(),\n role: 'dialog',\n tabIndex: -1,\n }\n : {};\n\n const mergedRef = useMergedRef(ref, ctx.floating);\n\n if (ctx.disabled) {\n return null;\n }\n\n return (\n <OptionalPortal {...ctx.portalProps} withinPortal={ctx.withinPortal}>\n <Transition\n mounted={ctx.opened}\n {...ctx.transitionProps}\n transition={ctx.transitionProps?.transition || 'fade'}\n duration={ctx.transitionProps?.duration ?? 150}\n keepMounted={ctx.keepMounted}\n exitDuration={\n typeof ctx.transitionProps?.exitDuration === 'number'\n ? ctx.transitionProps.exitDuration\n : ctx.transitionProps?.duration\n }\n >\n {(transitionStyles) => (\n <FocusTrap active={ctx.trapFocus}>\n <Box\n {...accessibleProps}\n {...others}\n variant={variant}\n ref={mergedRef}\n onKeyDownCapture={closeOnEscape(ctx.onClose, {\n active: ctx.closeOnEscape,\n onTrigger: returnFocus,\n onKeyDown: onKeyDownCapture,\n })}\n data-position={ctx.placement}\n {...ctx.getStyles('dropdown', {\n className,\n props,\n classNames,\n styles,\n style: [\n {\n ...transitionStyles,\n zIndex: ctx.zIndex,\n top: ctx.y ?? 0,\n left: ctx.x ?? 0,\n width: ctx.width === 'target' ? undefined : rem(ctx.width),\n },\n style,\n ],\n })}\n >\n {children}\n\n <FloatingArrow\n ref={ctx.arrowRef}\n arrowX={ctx.arrowX}\n arrowY={ctx.arrowY}\n visible={ctx.withArrow}\n position={ctx.placement}\n arrowSize={ctx.arrowSize}\n arrowRadius={ctx.arrowRadius}\n arrowOffset={ctx.arrowOffset}\n arrowPosition={ctx.arrowPosition}\n {...ctx.getStyles('arrow', {\n props,\n classNames,\n styles,\n })}\n />\n </Box>\n </FocusTrap>\n )}\n </Transition>\n </OptionalPortal>\n );\n});\n\nPopoverDropdown.classes = classes;\nPopoverDropdown.displayName = '@mantine/core/PopoverDropdown';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,IAAI,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC;AACtC,IAAI,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACzC,IAAI,iBAAiB,GAAG,MAAM,CAAC,yBAAyB,CAAC;AACzD,IAAI,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC;AACvD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AACnD,IAAI,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC;AACzD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K,IAAI,GAAG,GAAG,GAAG,CAAC;AAClD,cAAc,IAAI,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,KAAK,IAAI,GAAG,GAAG,GAAG,CAAC;AACnD,cAAc,KAAK,EAAE,GAAG,CAAC,KAAK,KAAK,QAAQ,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;AACrE,aAAa,CAAC;AACd,YAAY,KAAK;AACjB,WAAW;AACX,SAAS,CAAC,CAAC;AACX,QAAQ,QAAQ;AAChB,wBAAwB,KAAK,CAAC,aAAa;AAC3C,UAAU,aAAa;AACvB,UAAU,cAAc,CAAC;AACzB,YAAY,GAAG,EAAE,GAAG,CAAC,QAAQ;AAC7B,YAAY,MAAM,EAAE,GAAG,CAAC,MAAM;AAC9B,YAAY,MAAM,EAAE,GAAG,CAAC,MAAM;AAC9B,YAAY,OAAO,EAAE,GAAG,CAAC,SAAS;AAClC,YAAY,QAAQ,EAAE,GAAG,CAAC,SAAS;AACnC,YAAY,SAAS,EAAE,GAAG,CAAC,SAAS;AACpC,YAAY,WAAW,EAAE,GAAG,CAAC,WAAW;AACxC,YAAY,WAAW,EAAE,GAAG,CAAC,WAAW;AACxC,YAAY,aAAa,EAAE,GAAG,CAAC,aAAa;AAC5C,WAAW,EAAE,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE;AACpC,YAAY,KAAK;AACjB,YAAY,UAAU;AACtB,YAAY,MAAM;AAClB,WAAW,CAAC,CAAC;AACb,SAAS;AACT,OAAO,CAAC,CAAC;AACT,KAAK;AACL,GAAG,CAAC,CAAC;AACL,CAAC,EAAE;AACH,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;AAClC,eAAe,CAAC,WAAW,GAAG,+BAA+B;;;;"}
@@ -0,0 +1,11 @@
1
+ import React, { createContext, useContext } from 'react';
2
+
3
+ function createOptionalContext(initialValue = null) {
4
+ const Context = createContext(initialValue);
5
+ const useOptionalContext = () => useContext(Context);
6
+ const Provider = ({ children, value }) => /* @__PURE__ */ React.createElement(Context.Provider, { value }, children);
7
+ return [Provider, useOptionalContext];
8
+ }
9
+
10
+ export { createOptionalContext };
11
+ //# sourceMappingURL=create-optional-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-optional-context.js","sources":["../../../../src/core/utils/create-optional-context/create-optional-context.tsx"],"sourcesContent":["import React, { createContext, useContext } from 'react';\n\nexport function createOptionalContext<ContextValue>(initialValue: ContextValue | null = null) {\n const Context = createContext<ContextValue | null>(initialValue);\n\n const useOptionalContext = () => useContext(Context);\n\n const Provider = ({ children, value }: { value: ContextValue; children: React.ReactNode }) => (\n <Context.Provider value={value}>{children}</Context.Provider>\n );\n\n return [Provider, useOptionalContext] as const;\n}\n"],"names":[],"mappings":";;AACO,SAAS,qBAAqB,CAAC,YAAY,GAAG,IAAI,EAAE;AAC3D,EAAE,MAAM,OAAO,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;AAC9C,EAAE,MAAM,kBAAkB,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;AACvD,EAAE,MAAM,QAAQ,GAAG,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,CAAC;AACvH,EAAE,OAAO,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAAC;AACxC;;;;"}
package/esm/index.css CHANGED
@@ -633,7 +633,7 @@ body {
633
633
  .mantine-wi6tb4S {
634
634
  color: inherit;
635
635
  font-weight: 400;
636
- flex: 1;
636
+ flex: 1 1;
637
637
  overflow: hidden;
638
638
  text-overflow: ellipsis;
639
639
  padding-top: var(--mantine-spacing-sm);
@@ -802,7 +802,7 @@ body {
802
802
  }
803
803
 
804
804
  .mantine-Vr3xFOO {
805
- flex: 1;
805
+ flex: 1 1;
806
806
  background: var(--loader-color);
807
807
  animation: mantine-CbbKYq7 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
808
808
  border-radius: calc(0.125rem * var(--mantine-scale));
@@ -1062,7 +1062,7 @@ body {
1062
1062
  }
1063
1063
 
1064
1064
  .mantine-9PtDsve {
1065
- flex: 1;
1065
+ flex: 1 1;
1066
1066
  }
1067
1067
 
1068
1068
  .mantine-dlG1-0a {
@@ -2029,7 +2029,8 @@ body {
2029
2029
  -moz-appearance: textfield;
2030
2030
  }
2031
2031
 
2032
- .mantine-SbVPkHB:disabled,
2032
+ .mantine-SbVPkHB:has(input:disabled),
2033
+ .mantine-SbVPkHB:disabled,
2033
2034
  .mantine-SbVPkHB[data-disabled] {
2034
2035
  cursor: not-allowed;
2035
2036
  opacity: 0.6;
@@ -2362,7 +2363,7 @@ body {
2362
2363
  }
2363
2364
 
2364
2365
  .mantine-bzrGvmu {
2365
- flex: 1;
2366
+ flex: 1 1;
2366
2367
  }
2367
2368
 
2368
2369
  .mantine-bzrGvmu:not(:only-child) {
@@ -2513,12 +2514,6 @@ body {
2513
2514
  }
2514
2515
 
2515
2516
  .mantine-oGVJEaz {
2516
- --combobox-option-padding-xs: calc(0.25rem * var(--mantine-scale)) calc(0.5rem * var(--mantine-scale));
2517
- --combobox-option-padding-sm: calc(0.375rem * var(--mantine-scale)) calc(0.625rem * var(--mantine-scale));
2518
- --combobox-option-padding-md: calc(0.5rem * var(--mantine-scale)) calc(0.75rem * var(--mantine-scale));
2519
- --combobox-option-padding-lg: calc(0.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));
2520
- --combobox-option-padding-xl: calc(0.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));
2521
-
2522
2517
  padding: var(--combobox-padding);
2523
2518
  }
2524
2519
 
@@ -2526,6 +2521,16 @@ body {
2526
2521
  display: none;
2527
2522
  }
2528
2523
 
2524
+ /* Variables must be both on dropdown and options to support usage of Combobox.Options without Combobox.Dropdown */
2525
+ .mantine-oGVJEaz,
2526
+ .mantine-5kIu9Ez {
2527
+ --combobox-option-padding-xs: calc(0.25rem * var(--mantine-scale)) calc(0.5rem * var(--mantine-scale));
2528
+ --combobox-option-padding-sm: calc(0.375rem * var(--mantine-scale)) calc(0.625rem * var(--mantine-scale));
2529
+ --combobox-option-padding-md: calc(0.5rem * var(--mantine-scale)) calc(0.75rem * var(--mantine-scale));
2530
+ --combobox-option-padding-lg: calc(0.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));
2531
+ --combobox-option-padding-xl: calc(0.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));
2532
+ }
2533
+
2529
2534
  .mantine-Jvh599k {
2530
2535
  padding: var(--combobox-option-padding);
2531
2536
  font-size: var(--combobox-option-fz);
@@ -2697,7 +2702,7 @@ body {
2697
2702
 
2698
2703
  .mantine--fjjU6c::before {
2699
2704
  content: '';
2700
- flex: 1;
2705
+ flex: 1 1;
2701
2706
  height: calc(0.0625rem * var(--mantine-scale));
2702
2707
  border-top: var(--divider-size) var(--divider-border-style, solid)
2703
2708
  var(--divider-color, var(--_divider-color));
@@ -2711,7 +2716,7 @@ body {
2711
2716
 
2712
2717
  .mantine--fjjU6c::after {
2713
2718
  content: '';
2714
- flex: 1;
2719
+ flex: 1 1;
2715
2720
  height: calc(0.0625rem * var(--mantine-scale));
2716
2721
  border-top: var(--divider-size) var(--divider-border-style, solid)
2717
2722
  var(--divider-color, var(--_divider-color));
@@ -3112,7 +3117,7 @@ body {
3112
3117
  }
3113
3118
 
3114
3119
  .mantine-afBXh4T {
3115
- flex: 1;
3120
+ flex: 1 1;
3116
3121
  overflow: hidden;
3117
3122
  margin-right: var(--_body-margin-right, var(--mantine-spacing-xs));
3118
3123
  margin-left: var(--_body-margin-left, 0);
@@ -3174,6 +3179,167 @@ body {
3174
3179
  --_close-button-hover-bg: var(--mantine-color-dark-8);
3175
3180
  }
3176
3181
 
3182
+ .mantine-RShN60E {
3183
+ --pg-gap-xs: calc(0.375rem * var(--mantine-scale));
3184
+ --pg-gap-sm: calc(0.5rem * var(--mantine-scale));
3185
+ --pg-gap-md: calc(0.625rem * var(--mantine-scale));
3186
+ --pg-gap-lg: calc(0.75rem * var(--mantine-scale));
3187
+ --pg-gap-xl: calc(0.75rem * var(--mantine-scale));
3188
+
3189
+ display: flex;
3190
+ align-items: center;
3191
+ gap: var(--pg-gap);
3192
+ flex-wrap: wrap;
3193
+ }
3194
+
3195
+ .mantine-J5gv-yj {
3196
+ --pill-fz-xs: calc(0.625rem * var(--mantine-scale));
3197
+ --pill-fz-sm: calc(0.75rem * var(--mantine-scale));
3198
+ --pill-fz-md: calc(0.875rem * var(--mantine-scale));
3199
+ --pill-fz-lg: calc(1rem * var(--mantine-scale));
3200
+ --pill-fz-xl: calc(1.125rem * var(--mantine-scale));
3201
+
3202
+ --pill-height-xs: calc(1.125rem * var(--mantine-scale));
3203
+ --pill-height-sm: calc(1.375rem * var(--mantine-scale));
3204
+ --pill-height-md: calc(1.5625rem * var(--mantine-scale));
3205
+ --pill-height-lg: calc(1.75rem * var(--mantine-scale));
3206
+ --pill-height-xl: calc(2rem * var(--mantine-scale));
3207
+
3208
+ font-size: var(--pill-fz);
3209
+ flex: 0 1;
3210
+ height: var(--pill-height);
3211
+ padding-left: 0.8em;
3212
+ padding-right: var(--_pill-padding-right, 0.8em);
3213
+ display: inline-flex;
3214
+ align-items: center;
3215
+ border-radius: var(--pill-radius);
3216
+ background-color: var(--_pill-bg);
3217
+ line-height: 1;
3218
+ white-space: nowrap;
3219
+ user-select: none;
3220
+ -webkit-user-select: none;
3221
+ max-width: 100%;
3222
+ color: var(--_pill-color);
3223
+ }
3224
+
3225
+ [data-mantine-color-scheme='dark'] .mantine-J5gv-yj {
3226
+ --_pill-bg: var(--mantine-color-dark-7);
3227
+ --_pill-color: var(--mantine-color-dark-0);
3228
+ }
3229
+
3230
+ [data-mantine-color-scheme='light'] .mantine-J5gv-yj {
3231
+ --_pill-color: var(--mantine-color-black);
3232
+ }
3233
+
3234
+ .mantine-J5gv-yj[data-with-remove] {
3235
+ --_pill-padding-right: 0;
3236
+ }
3237
+
3238
+ .mantine-J5gv-yj[data-disabled],
3239
+ .mantine-J5gv-yj:has(button:disabled) {
3240
+ --_pill-cursor: not-allowed;
3241
+ }
3242
+
3243
+ [data-mantine-color-scheme='light'] .mantine-rXyJVOg {
3244
+ --_pill-bg: var(--mantine-color-gray-1);
3245
+ }
3246
+
3247
+ [data-mantine-color-scheme='light'] .mantine-rXyJVOg[data-disabled],
3248
+ [data-mantine-color-scheme='light'] .mantine-rXyJVOg:has(button:disabled) {
3249
+ --_pill-bg: var(--mantine-color-gray-3);
3250
+ }
3251
+
3252
+ [data-mantine-color-scheme='light'] .mantine-mDSPFyE {
3253
+ --_pill-bg: var(--mantine-color-white);
3254
+ }
3255
+
3256
+ [data-mantine-color-scheme='light'] .mantine-mDSPFyE[data-disabled],
3257
+ [data-mantine-color-scheme='light'] .mantine-mDSPFyE:has(button:disabled) {
3258
+ --_pill-bg: var(--mantine-color-gray-3);
3259
+ }
3260
+
3261
+ .mantine-BmcncON {
3262
+ cursor: var(--_pill-cursor, default);
3263
+ overflow: hidden;
3264
+ height: 100%;
3265
+ line-height: var(--pill-height);
3266
+ text-overflow: ellipsis;
3267
+ }
3268
+
3269
+ .mantine-wJMJ0gV {
3270
+ color: inherit;
3271
+ font-size: inherit;
3272
+ height: 100%;
3273
+ min-height: unset;
3274
+ min-width: 2em;
3275
+ width: unset;
3276
+ border-radius: 0;
3277
+ padding-left: 0.1em;
3278
+ padding-right: 0.3em;
3279
+ flex: 0 1;
3280
+ }
3281
+
3282
+ .mantine-J5gv-yj[data-disabled] > .mantine-wJMJ0gV,
3283
+ .mantine-wJMJ0gV:disabled {
3284
+ background-color: transparent;
3285
+ width: 0.8em;
3286
+ min-width: 0.8em;
3287
+ padding: 0;
3288
+ cursor: not-allowed;
3289
+ }
3290
+
3291
+ .mantine-J5gv-yj[data-disabled] > .mantine-wJMJ0gV > svg, .mantine-wJMJ0gV:disabled > svg {
3292
+ display: none;
3293
+ }
3294
+
3295
+ .mantine-wJMJ0gV > svg {
3296
+ pointer-events: none;
3297
+ }
3298
+
3299
+ .mantine-WAKiSWq {
3300
+ background-color: transparent;
3301
+ appearance: none;
3302
+ min-width: calc(6.25rem * var(--mantine-scale));
3303
+ flex: 1 1;
3304
+ border: 0;
3305
+ font-size: inherit;
3306
+ height: 1.6em;
3307
+ color: inherit;
3308
+ padding: 0;
3309
+ }
3310
+
3311
+ .mantine-WAKiSWq::placeholder {
3312
+ color: var(--_input-placeholder-color);
3313
+ opacity: 1;
3314
+ }
3315
+
3316
+ .mantine-WAKiSWq[data-type='hidden'],
3317
+ .mantine-WAKiSWq[data-type='auto'] {
3318
+ height: calc(0.0625rem * var(--mantine-scale));
3319
+ width: calc(0.0625rem * var(--mantine-scale));
3320
+ top: 0;
3321
+ left: 0;
3322
+ pointer-events: none;
3323
+ position: absolute;
3324
+ opacity: 0;
3325
+ }
3326
+
3327
+ .mantine-WAKiSWq:focus {
3328
+ outline: none;
3329
+ }
3330
+
3331
+ .mantine-WAKiSWq[data-type='auto']:focus {
3332
+ height: 1.6em;
3333
+ visibility: visible;
3334
+ opacity: 1;
3335
+ position: static;
3336
+ }
3337
+
3338
+ .mantine-WAKiSWq[data-disabled],
3339
+ .mantine-WAKiSWq:disabled {
3340
+ cursor: not-allowed;
3341
+ }
3342
+
3177
3343
  .mantine--CW641A {
3178
3344
  position: relative;
3179
3345
  overflow: hidden;
@@ -3285,7 +3451,7 @@ body {
3285
3451
  }
3286
3452
 
3287
3453
  .mantine-5u72r1f {
3288
- flex: 1;
3454
+ flex: 1 1;
3289
3455
  border-radius: var(--scrollarea-scrollbar-size);
3290
3456
  position: relative;
3291
3457
  transition: background-color 150ms ease;
@@ -3516,7 +3682,7 @@ fieldset:disabled .mantine-xOh3CVo,
3516
3682
 
3517
3683
  .mantine-y34erSP {
3518
3684
  position: relative;
3519
- flex: 1;
3685
+ flex: 1 1;
3520
3686
  z-index: 2;
3521
3687
  transition: border-color var(--sc-transition-duration) var(--sc-transition-timing-function);
3522
3688
  }
package/esm/index.js CHANGED
@@ -9,6 +9,7 @@ export { filterProps } from './core/utils/filter-props/filter-props.js';
9
9
  export { isNumberLike } from './core/utils/is-number-like/is-number-like.js';
10
10
  export { isElement } from './core/utils/is-element/is-element.js';
11
11
  export { createSafeContext } from './core/utils/create-safe-context/create-safe-context.js';
12
+ export { createOptionalContext } from './core/utils/create-optional-context/create-optional-context.js';
12
13
  export { getSafeId } from './core/utils/get-safe-id/get-safe-id.js';
13
14
  export { createScopedKeydownHandler } from './core/utils/create-scoped-keydown-handler/create-scoped-keydown-handler.js';
14
15
  export { findElementAncestor } from './core/utils/find-element-ancestor/find-element-ancestor.js';
@@ -100,6 +101,10 @@ export { ComboboxOption } from './components/Combobox/ComboboxOption/ComboboxOpt
100
101
  export { ComboboxTarget } from './components/Combobox/ComboboxTarget/ComboboxTarget.js';
101
102
  export { ComboboxSearch } from './components/Combobox/ComboboxSearch/ComboboxSearch.js';
102
103
  export { ComboboxEmpty } from './components/Combobox/ComboboxEmpty/ComboboxEmpty.js';
104
+ export { ComboboxFooter } from './components/Combobox/ComboboxFooter/ComboboxFooter.js';
105
+ export { ComboboxHeader } from './components/Combobox/ComboboxHeader/ComboboxHeader.js';
106
+ export { ComboboxEventsTarget } from './components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.js';
107
+ export { ComboboxDropdownTarget } from './components/Combobox/ComboboxDropdownTarget/ComboboxDropdownTarget.js';
103
108
  export { useCombobox } from './components/Combobox/use-combobox/use-combobox.js';
104
109
  export { useVirtualizedCombobox } from './components/Combobox/use-combobox/use-virtualized-combobox.js';
105
110
  export { useComboboxTargetProps } from './components/Combobox/use-combobox-target-props/use-combobox-target-props.js';
@@ -130,6 +135,7 @@ export { InputError } from './components/Input/InputError/InputError.js';
130
135
  export { InputLabel } from './components/Input/InputLabel/InputLabel.js';
131
136
  export { InputPlaceholder } from './components/Input/InputPlaceholder/InputPlaceholder.js';
132
137
  export { useInputProps } from './components/Input/use-input-props.js';
138
+ export { useInputWrapperContext } from './components/Input/InputWrapper.context.js';
133
139
  export { InputBase } from './components/InputBase/InputBase.js';
134
140
  export { Kbd } from './components/Kbd/Kbd.js';
135
141
  export { Loader, defaultLoaders } from './components/Loader/Loader.js';
@@ -154,6 +160,10 @@ export { NativeSelect } from './components/NativeSelect/NativeSelect.js';
154
160
  export { Notification } from './components/Notification/Notification.js';
155
161
  export { Overlay } from './components/Overlay/Overlay.js';
156
162
  export { Paper } from './components/Paper/Paper.js';
163
+ export { Pill } from './components/Pill/Pill.js';
164
+ export { PillGroup } from './components/Pill/PillGroup/PillGroup.js';
165
+ export { PillsInput } from './components/PillsInput/PillsInput.js';
166
+ export { PillsInputField } from './components/PillsInput/PillsInputField/PillsInputField.js';
157
167
  export { Popover } from './components/Popover/Popover.js';
158
168
  export { PopoverDropdown } from './components/Popover/PopoverDropdown/PopoverDropdown.js';
159
169
  export { PopoverTarget } from './components/Popover/PopoverTarget/PopoverTarget.js';
package/esm/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -11,9 +11,12 @@ import { ComboboxEmpty } from './ComboboxEmpty/ComboboxEmpty';
11
11
  import { ComboboxChevron } from './ComboboxChevron/ComboboxChevron';
12
12
  import { ComboboxFooter } from './ComboboxFooter/ComboboxFooter';
13
13
  import { ComboboxHeader } from './ComboboxHeader/ComboboxHeader';
14
+ import { ComboboxEventsTarget } from './ComboboxEventsTarget/ComboboxEventsTarget';
15
+ import { ComboboxDropdownTarget } from './ComboboxDropdownTarget/ComboboxDropdownTarget';
14
16
  export type ComboboxStylesNames = 'options' | 'dropdown' | 'option' | 'search' | 'empty' | 'footer' | 'header';
15
17
  export type ComboboxCSSVariables = {
16
- dropdown: '--combobox-option-fz' | '--combobox-padding' | '--combobox-option-padding';
18
+ options: '--combobox-option-fz' | '--combobox-option-padding';
19
+ dropdown: '--combobox-padding' | '--combobox-option-fz' | '--combobox-option-padding';
17
20
  };
18
21
  export interface ComboboxProps extends __PopoverProps, StylesApiProps<ComboboxFactory> {
19
22
  /** Combobox content */
@@ -44,6 +47,8 @@ export type ComboboxFactory = Factory<{
44
47
  Chevron: typeof ComboboxChevron;
45
48
  Footer: typeof ComboboxFooter;
46
49
  Header: typeof ComboboxHeader;
50
+ EventsTarget: typeof ComboboxEventsTarget;
51
+ DropdownTarget: typeof ComboboxDropdownTarget;
47
52
  };
48
53
  }>;
49
54
  export declare function Combobox(_props: ComboboxProps): JSX.Element;
@@ -102,4 +107,14 @@ export declare namespace Combobox {
102
107
  stylesNames: "header";
103
108
  compound: true;
104
109
  }>;
110
+ var EventsTarget: import("../../core").MantineComponent<{
111
+ props: import("./ComboboxEventsTarget/ComboboxEventsTarget").ComboboxEventsTargetProps;
112
+ ref: HTMLElement;
113
+ compound: true;
114
+ }>;
115
+ var DropdownTarget: import("../../core").MantineComponent<{
116
+ props: import("./ComboboxDropdownTarget/ComboboxDropdownTarget").ComboboxDropdownTargetProps;
117
+ ref: HTMLElement;
118
+ compound: true;
119
+ }>;
105
120
  }
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Factory } from '../../../core';
3
+ export interface ComboboxDropdownTargetProps {
4
+ /** Target element */
5
+ children: React.ReactNode;
6
+ /** Key of the prop that should be used to access element ref */
7
+ refProp?: string;
8
+ }
9
+ export type ComboboxDropdownTargetFactory = Factory<{
10
+ props: ComboboxDropdownTargetProps;
11
+ ref: HTMLElement;
12
+ compound: true;
13
+ }>;
14
+ export declare const ComboboxDropdownTarget: import("../../../core").MantineComponent<{
15
+ props: ComboboxDropdownTargetProps;
16
+ ref: HTMLElement;
17
+ compound: true;
18
+ }>;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Factory } from '../../../core';
3
+ export interface ComboboxEventsTargetProps {
4
+ /** Target element */
5
+ children: React.ReactNode;
6
+ /** Key of the prop that should be used to access element ref */
7
+ refProp?: string;
8
+ /** Determines whether component should respond to keyboard events, `true` by default */
9
+ withKeyboardNavigation?: boolean;
10
+ /** Determines whether the target should have `aria-` attributes, `true` by default */
11
+ withAriaAttributes?: boolean;
12
+ /** Determines which events should be handled by the target element.
13
+ * `button` target type handles `Space` and `Enter` keys to toggle dropdown opened state.
14
+ * `input` by default.
15
+ * */
16
+ targetType?: 'button' | 'input';
17
+ }
18
+ export type ComboboxEventsTargetFactory = Factory<{
19
+ props: ComboboxEventsTargetProps;
20
+ ref: HTMLElement;
21
+ compound: true;
22
+ }>;
23
+ export declare const ComboboxEventsTarget: import("../../../core").MantineComponent<{
24
+ props: ComboboxEventsTargetProps;
25
+ ref: HTMLElement;
26
+ compound: true;
27
+ }>;
@@ -7,10 +7,14 @@ export { ComboboxOption } from './ComboboxOption/ComboboxOption';
7
7
  export { ComboboxTarget } from './ComboboxTarget/ComboboxTarget';
8
8
  export { ComboboxSearch } from './ComboboxSearch/ComboboxSearch';
9
9
  export { ComboboxEmpty } from './ComboboxEmpty/ComboboxEmpty';
10
+ export { ComboboxFooter } from './ComboboxFooter/ComboboxFooter';
11
+ export { ComboboxHeader } from './ComboboxHeader/ComboboxHeader';
12
+ export { ComboboxEventsTarget } from './ComboboxEventsTarget/ComboboxEventsTarget';
13
+ export { ComboboxDropdownTarget } from './ComboboxDropdownTarget/ComboboxDropdownTarget';
10
14
  export { useCombobox } from './use-combobox/use-combobox';
11
15
  export { useVirtualizedCombobox } from './use-combobox/use-virtualized-combobox';
12
16
  export { useComboboxTargetProps } from './use-combobox-target-props/use-combobox-target-props';
13
- export type { ComboboxStore, ComboboxDropdownEventSource } from './use-combobox/use-combobox';
17
+ export type { ComboboxStore, ComboboxDropdownEventSource, UseComboboxOptions, } from './use-combobox/use-combobox';
14
18
  export type { ComboboxItem, ComboboxData, ComboboxParsedItem, ComboboxItemGroup, ComboboxParsedItemGroup, } from './Combobox.types';
15
19
  export type { ComboboxFactory, ComboboxProps, ComboboxStylesNames } from './Combobox';
16
20
  export type { ComboboxDropdownProps } from './ComboboxDropdown/ComboboxDropdown';
@@ -20,3 +24,7 @@ export type { ComboboxTargetProps } from './ComboboxTarget/ComboboxTarget';
20
24
  export type { ComboboxChevronProps } from './ComboboxChevron/ComboboxChevron';
21
25
  export type { ComboboxEmptyProps } from './ComboboxEmpty/ComboboxEmpty';
22
26
  export type { ComboboxSearchProps } from './ComboboxSearch/ComboboxSearch';
27
+ export type { ComboboxFooterProps } from './ComboboxFooter/ComboboxFooter';
28
+ export type { ComboboxHeaderProps } from './ComboboxHeader/ComboboxHeader';
29
+ export type { ComboboxDropdownTargetProps } from './ComboboxDropdownTarget/ComboboxDropdownTarget';
30
+ export type { ComboboxEventsTargetProps } from './ComboboxEventsTarget/ComboboxEventsTarget';