@mantine/core 7.14.2 → 7.15.0
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.
- package/cjs/components/ActionIcon/ActionIcon.cjs +2 -0
- package/cjs/components/ActionIcon/ActionIcon.cjs.map +1 -1
- package/cjs/components/ActionIcon/ActionIcon.module.css.cjs +1 -1
- package/cjs/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.cjs +79 -0
- package/cjs/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.cjs.map +1 -0
- package/cjs/components/AngleSlider/AngleSlider.cjs +37 -99
- package/cjs/components/AngleSlider/AngleSlider.cjs.map +1 -1
- package/cjs/components/AppShell/use-resizing/use-resizing.cjs +2 -2
- package/cjs/components/AppShell/use-resizing/use-resizing.cjs.map +1 -1
- package/cjs/components/Autocomplete/Autocomplete.cjs.map +1 -1
- package/cjs/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
- package/cjs/components/Button/Button.cjs +2 -0
- package/cjs/components/Button/Button.cjs.map +1 -1
- package/cjs/components/Button/Button.module.css.cjs +1 -1
- package/cjs/components/Button/ButtonGroupSection/ButtonGroupSection.cjs +79 -0
- package/cjs/components/Button/ButtonGroupSection/ButtonGroupSection.cjs.map +1 -0
- package/cjs/components/Card/Card.cjs.map +1 -1
- package/cjs/components/Checkbox/CheckboxCard/CheckboxCard.cjs +14 -5
- package/cjs/components/Checkbox/CheckboxCard/CheckboxCard.cjs.map +1 -1
- package/cjs/components/Collapse/use-collapse.cjs.map +1 -1
- package/cjs/components/ColorInput/ColorInput.cjs +1 -0
- package/cjs/components/ColorInput/ColorInput.cjs.map +1 -1
- package/cjs/components/ColorPicker/ColorPicker.cjs +1 -1
- package/cjs/components/ColorPicker/ColorPicker.cjs.map +1 -1
- package/cjs/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.cjs.map +1 -1
- package/cjs/components/Combobox/ComboboxTarget/ComboboxTarget.cjs.map +1 -1
- package/cjs/components/FileButton/FileButton.cjs +1 -1
- package/cjs/components/FileButton/FileButton.cjs.map +1 -1
- package/cjs/components/FileInput/FileInput.cjs.map +1 -1
- package/cjs/components/FloatingIndicator/FloatingIndicator.cjs.map +1 -1
- package/cjs/components/FloatingIndicator/use-floating-indicator.cjs +3 -3
- package/cjs/components/FloatingIndicator/use-floating-indicator.cjs.map +1 -1
- package/cjs/components/HoverCard/HoverCardTarget/HoverCardTarget.cjs.map +1 -1
- package/cjs/components/Menu/MenuItem/MenuItem.cjs +1 -1
- package/cjs/components/Menu/MenuItem/MenuItem.cjs.map +1 -1
- package/cjs/components/Menu/MenuTarget/MenuTarget.cjs +4 -3
- package/cjs/components/Menu/MenuTarget/MenuTarget.cjs.map +1 -1
- package/cjs/components/ModalBase/use-lock-scroll.cjs +1 -1
- package/cjs/components/ModalBase/use-lock-scroll.cjs.map +1 -1
- package/cjs/components/NumberInput/NumberInput.cjs +3 -2
- package/cjs/components/NumberInput/NumberInput.cjs.map +1 -1
- package/cjs/components/PasswordInput/PasswordInput.cjs +1 -0
- package/cjs/components/PasswordInput/PasswordInput.cjs.map +1 -1
- package/cjs/components/PillsInput/PillsInput.cjs +1 -1
- package/cjs/components/PillsInput/PillsInput.cjs.map +1 -1
- package/cjs/components/PillsInput/PillsInput.context.cjs.map +1 -1
- package/cjs/components/Popover/Popover.context.cjs.map +1 -1
- package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs +5 -1
- package/cjs/components/Popover/PopoverTarget/PopoverTarget.cjs.map +1 -1
- package/cjs/components/Popover/use-popover.cjs.map +1 -1
- package/cjs/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.cjs +2 -2
- package/cjs/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.cjs.map +1 -1
- package/cjs/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.cjs +10 -1
- package/cjs/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.cjs.map +1 -1
- package/cjs/components/Slider/Slider/Slider.cjs +37 -2
- package/cjs/components/Slider/Slider/Slider.cjs.map +1 -1
- package/cjs/components/Slider/utils/get-step-mark-value/get-step-mark-value.cjs +27 -0
- package/cjs/components/Slider/utils/get-step-mark-value/get-step-mark-value.cjs.map +1 -0
- package/cjs/components/Stepper/Stepper.cjs +50 -45
- package/cjs/components/Stepper/Stepper.cjs.map +1 -1
- package/cjs/components/Stepper/StepperStep/StepperStep.cjs.map +1 -1
- package/cjs/components/Table/Table.cjs +2 -1
- package/cjs/components/Table/Table.cjs.map +1 -1
- package/cjs/components/TagsInput/TagsInput.cjs.map +1 -1
- package/cjs/components/Tooltip/Tooltip.cjs +3 -2
- package/cjs/components/Tooltip/Tooltip.cjs.map +1 -1
- package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs +4 -3
- package/cjs/components/Tooltip/TooltipFloating/TooltipFloating.cjs.map +1 -1
- package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs +1 -1
- package/cjs/components/Tooltip/TooltipFloating/use-floating-tooltip.cjs.map +1 -1
- package/cjs/components/Tooltip/use-tooltip.cjs.map +1 -1
- package/cjs/components/Transition/Transition.cjs.map +1 -1
- package/cjs/components/Tree/Tree.cjs +3 -1
- package/cjs/components/Tree/Tree.cjs.map +1 -1
- package/cjs/components/Tree/TreeNode.cjs +15 -6
- package/cjs/components/Tree/TreeNode.cjs.map +1 -1
- package/cjs/core/MantineProvider/mantine-html-props.cjs +9 -0
- package/cjs/core/MantineProvider/mantine-html-props.cjs.map +1 -0
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.cjs +4 -2
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.cjs.map +1 -1
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.cjs +1 -1
- package/cjs/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.cjs.map +1 -1
- package/cjs/core/factory/create-polymorphic-component.cjs.map +1 -1
- package/cjs/index.cjs +6 -0
- package/cjs/index.cjs.map +1 -1
- package/esm/components/ActionIcon/ActionIcon.mjs +2 -0
- package/esm/components/ActionIcon/ActionIcon.mjs.map +1 -1
- package/esm/components/ActionIcon/ActionIcon.module.css.mjs +1 -1
- package/esm/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs +77 -0
- package/esm/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs.map +1 -0
- package/esm/components/AngleSlider/AngleSlider.mjs +39 -101
- package/esm/components/AngleSlider/AngleSlider.mjs.map +1 -1
- package/esm/components/AppShell/use-resizing/use-resizing.mjs +2 -2
- package/esm/components/AppShell/use-resizing/use-resizing.mjs.map +1 -1
- package/esm/components/Autocomplete/Autocomplete.mjs.map +1 -1
- package/esm/components/Breadcrumbs/Breadcrumbs.mjs.map +1 -1
- package/esm/components/Button/Button.mjs +2 -0
- package/esm/components/Button/Button.mjs.map +1 -1
- package/esm/components/Button/Button.module.css.mjs +1 -1
- package/esm/components/Button/ButtonGroupSection/ButtonGroupSection.mjs +77 -0
- package/esm/components/Button/ButtonGroupSection/ButtonGroupSection.mjs.map +1 -0
- package/esm/components/Card/Card.mjs.map +1 -1
- package/esm/components/Checkbox/CheckboxCard/CheckboxCard.mjs +14 -5
- package/esm/components/Checkbox/CheckboxCard/CheckboxCard.mjs.map +1 -1
- package/esm/components/Collapse/use-collapse.mjs.map +1 -1
- package/esm/components/ColorInput/ColorInput.mjs +1 -0
- package/esm/components/ColorInput/ColorInput.mjs.map +1 -1
- package/esm/components/ColorPicker/ColorPicker.mjs +1 -1
- package/esm/components/ColorPicker/ColorPicker.mjs.map +1 -1
- package/esm/components/Combobox/ComboboxEventsTarget/ComboboxEventsTarget.mjs.map +1 -1
- package/esm/components/Combobox/ComboboxTarget/ComboboxTarget.mjs.map +1 -1
- package/esm/components/FileButton/FileButton.mjs +1 -1
- package/esm/components/FileButton/FileButton.mjs.map +1 -1
- package/esm/components/FileInput/FileInput.mjs.map +1 -1
- package/esm/components/FloatingIndicator/FloatingIndicator.mjs.map +1 -1
- package/esm/components/FloatingIndicator/use-floating-indicator.mjs +3 -3
- package/esm/components/FloatingIndicator/use-floating-indicator.mjs.map +1 -1
- package/esm/components/HoverCard/HoverCardTarget/HoverCardTarget.mjs.map +1 -1
- package/esm/components/Menu/MenuItem/MenuItem.mjs +1 -1
- package/esm/components/Menu/MenuItem/MenuItem.mjs.map +1 -1
- package/esm/components/Menu/MenuTarget/MenuTarget.mjs +4 -3
- package/esm/components/Menu/MenuTarget/MenuTarget.mjs.map +1 -1
- package/esm/components/ModalBase/use-lock-scroll.mjs +1 -1
- package/esm/components/ModalBase/use-lock-scroll.mjs.map +1 -1
- package/esm/components/NumberInput/NumberInput.mjs +3 -2
- package/esm/components/NumberInput/NumberInput.mjs.map +1 -1
- package/esm/components/PasswordInput/PasswordInput.mjs +1 -0
- package/esm/components/PasswordInput/PasswordInput.mjs.map +1 -1
- package/esm/components/PillsInput/PillsInput.context.mjs.map +1 -1
- package/esm/components/PillsInput/PillsInput.mjs +1 -1
- package/esm/components/PillsInput/PillsInput.mjs.map +1 -1
- package/esm/components/Popover/Popover.context.mjs.map +1 -1
- package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs +5 -1
- package/esm/components/Popover/PopoverTarget/PopoverTarget.mjs.map +1 -1
- package/esm/components/Popover/use-popover.mjs.map +1 -1
- package/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.mjs +2 -2
- package/esm/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.mjs.map +1 -1
- package/esm/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.mjs +10 -1
- package/esm/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.mjs.map +1 -1
- package/esm/components/Slider/Slider/Slider.mjs +37 -2
- package/esm/components/Slider/Slider/Slider.mjs.map +1 -1
- package/esm/components/Slider/utils/get-step-mark-value/get-step-mark-value.mjs +22 -0
- package/esm/components/Slider/utils/get-step-mark-value/get-step-mark-value.mjs.map +1 -0
- package/esm/components/Stepper/Stepper.mjs +50 -45
- package/esm/components/Stepper/Stepper.mjs.map +1 -1
- package/esm/components/Stepper/StepperStep/StepperStep.mjs.map +1 -1
- package/esm/components/Table/Table.mjs +2 -1
- package/esm/components/Table/Table.mjs.map +1 -1
- package/esm/components/TagsInput/TagsInput.mjs.map +1 -1
- package/esm/components/Tooltip/Tooltip.mjs +3 -2
- package/esm/components/Tooltip/Tooltip.mjs.map +1 -1
- package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs +4 -3
- package/esm/components/Tooltip/TooltipFloating/TooltipFloating.mjs.map +1 -1
- package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs +1 -1
- package/esm/components/Tooltip/TooltipFloating/use-floating-tooltip.mjs.map +1 -1
- package/esm/components/Tooltip/use-tooltip.mjs.map +1 -1
- package/esm/components/Transition/Transition.mjs.map +1 -1
- package/esm/components/Tree/Tree.mjs +3 -1
- package/esm/components/Tree/Tree.mjs.map +1 -1
- package/esm/components/Tree/TreeNode.mjs +15 -6
- package/esm/components/Tree/TreeNode.mjs.map +1 -1
- package/esm/core/MantineProvider/mantine-html-props.mjs +7 -0
- package/esm/core/MantineProvider/mantine-html-props.mjs.map +1 -0
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.mjs +4 -2
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.mjs.map +1 -1
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.mjs +1 -1
- package/esm/core/MantineProvider/use-mantine-color-scheme/use-provider-color-scheme.mjs.map +1 -1
- package/esm/core/factory/create-polymorphic-component.mjs.map +1 -1
- package/esm/index.mjs +3 -0
- package/esm/index.mjs.map +1 -1
- package/lib/components/ActionIcon/ActionIcon.d.ts +6 -0
- package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.d.ts +30 -0
- package/lib/components/ActionIcon/index.d.ts +2 -0
- package/lib/components/AngleSlider/AngleSlider.d.ts +4 -0
- package/lib/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Button/Button.d.ts +6 -0
- package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.d.ts +30 -0
- package/lib/components/Button/index.d.ts +2 -0
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +5 -1
- package/lib/components/Collapse/use-collapse.d.ts +1 -1
- package/lib/components/Combobox/Combobox.types.d.ts +1 -1
- package/lib/components/FileInput/FileInput.d.ts +1 -1
- package/lib/components/Group/filter-falsy-children/filter-falsy-children.d.ts +1 -1
- package/lib/components/Input/use-input-props.d.ts +1 -1
- package/lib/components/PillsInput/PillsInput.context.d.ts +1 -1
- package/lib/components/Popover/Popover.context.d.ts +1 -1
- package/lib/components/Popover/use-popover.d.ts +1 -1
- package/lib/components/Slider/utils/get-step-mark-value/get-step-mark-value.d.ts +16 -0
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +1 -1
- package/lib/components/Table/Table.d.ts +5 -0
- package/lib/components/TagsInput/TagsInput.d.ts +1 -1
- package/lib/components/Tooltip/TooltipFloating/use-floating-tooltip.d.ts +1 -1
- package/lib/components/Tooltip/use-tooltip.d.ts +1 -1
- package/lib/components/Transition/Transition.d.ts +1 -1
- package/lib/components/Tree/Tree.d.ts +2 -0
- package/lib/components/Tree/TreeNode.d.ts +2 -1
- package/lib/core/MantineProvider/index.d.ts +1 -0
- package/lib/core/MantineProvider/mantine-html-props.d.ts +4 -0
- package/lib/core/factory/create-polymorphic-component.d.ts +2 -2
- package/package.json +5 -3
- package/styles/ActionIcon.css +45 -6
- package/styles/ActionIcon.layer.css +45 -6
- package/styles/Button.css +51 -6
- package/styles/Button.layer.css +51 -6
- package/styles/ScrollArea.css +1 -0
- package/styles/ScrollArea.layer.css +1 -0
- package/styles/Table.css +17 -0
- package/styles/Table.layer.css +17 -0
- package/styles.css +114 -12
- package/styles.layer.css +114 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-polymorphic-component.mjs","sources":["../../../src/core/factory/create-polymorphic-component.ts"],"sourcesContent":["type ExtendedProps<Props = {}, OverrideProps = {}> = OverrideProps &\n Omit<Props, keyof OverrideProps>;\n\ntype ElementType = keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>;\n\ntype PropsOf<C extends ElementType> = JSX.LibraryManagedAttributes<\n C,\n React.ComponentPropsWithoutRef<C>\n>;\n\ntype ComponentProp<C> = {\n component?: C;\n};\n\ntype InheritedProps<C extends ElementType, Props = {}> = ExtendedProps<PropsOf<C>, Props>;\n\nexport type PolymorphicRef<C> = C extends React.ElementType\n ? React.ComponentPropsWithRef<C>['ref']\n : never;\n\nexport type PolymorphicComponentProps<C, Props = {}> = C extends React.ElementType\n ? InheritedProps<C, Props & ComponentProp<C>> & {\n ref?: PolymorphicRef<C>;\n renderRoot?: (props: any) => any;\n }\n : Props & { component: React.ElementType; renderRoot?: (props: Record<string, any>) => any };\n\nexport function createPolymorphicComponent<\n ComponentDefaultType,\n Props,\n StaticComponents = Record<string, never>,\n>(component: any) {\n type ComponentProps<C> = PolymorphicComponentProps<C, Props>;\n\n type _PolymorphicComponent = <C = ComponentDefaultType>(\n props: ComponentProps<C>\n ) => React.ReactElement;\n\n type ComponentProperties = Omit<React.FunctionComponent<ComponentProps<any>>, never>;\n\n type PolymorphicComponent = _PolymorphicComponent & ComponentProperties & StaticComponents;\n\n return component as PolymorphicComponent;\n}\n"],"names":[],"mappings":"AACO,SAAS,0BAA0B,CAAC,SAAS,EAAE;AACtD,EAAE,OAAO,SAAS;AAClB;;;;"}
|
|
1
|
+
{"version":3,"file":"create-polymorphic-component.mjs","sources":["../../../src/core/factory/create-polymorphic-component.ts"],"sourcesContent":["type ExtendedProps<Props = {}, OverrideProps = {}> = OverrideProps &\n Omit<Props, keyof OverrideProps>;\n\ntype ElementType = keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>;\n\ntype PropsOf<C extends ElementType> = React.JSX.LibraryManagedAttributes<\n C,\n React.ComponentPropsWithoutRef<C>\n>;\n\ntype ComponentProp<C> = {\n component?: C;\n};\n\ntype InheritedProps<C extends ElementType, Props = {}> = ExtendedProps<PropsOf<C>, Props>;\n\nexport type PolymorphicRef<C> = C extends React.ElementType\n ? React.ComponentPropsWithRef<C>['ref']\n : never;\n\nexport type PolymorphicComponentProps<C, Props = {}> = C extends React.ElementType\n ? InheritedProps<C, Props & ComponentProp<C>> & {\n ref?: PolymorphicRef<C>;\n renderRoot?: (props: any) => any;\n }\n : Props & { component: React.ElementType; renderRoot?: (props: Record<string, any>) => any };\n\nexport function createPolymorphicComponent<\n ComponentDefaultType,\n Props,\n StaticComponents = Record<string, never>,\n>(component: any) {\n type ComponentProps<C> = PolymorphicComponentProps<C, Props>;\n\n type _PolymorphicComponent = <C = ComponentDefaultType>(\n props: ComponentProps<C>\n ) => React.ReactElement;\n\n type ComponentProperties = Omit<React.FunctionComponent<ComponentProps<any>>, never>;\n\n type PolymorphicComponent = _PolymorphicComponent & ComponentProperties & StaticComponents;\n\n return component as PolymorphicComponent;\n}\n"],"names":[],"mappings":"AACO,SAAS,0BAA0B,CAAC,SAAS,EAAE;AACtD,EAAE,OAAO,SAAS;AAClB;;;;"}
|
package/esm/index.mjs
CHANGED
|
@@ -66,6 +66,7 @@ import './core/MantineProvider/MantineCssVariables/MantineCssVariables.mjs';
|
|
|
66
66
|
export { getCSSColorVariables } from './core/MantineProvider/MantineCssVariables/get-css-color-variables.mjs';
|
|
67
67
|
export { isVirtualColor, virtualColor } from './core/MantineProvider/MantineCssVariables/virtual-color/virtual-color.mjs';
|
|
68
68
|
export { useMatches } from './core/MantineProvider/use-matches/use-matches.mjs';
|
|
69
|
+
export { mantineHtmlProps } from './core/MantineProvider/mantine-html-props.mjs';
|
|
69
70
|
export { InlineStyles } from './core/InlineStyles/InlineStyles.mjs';
|
|
70
71
|
export { stylesToString } from './core/InlineStyles/styles-to-string/styles-to-string.mjs';
|
|
71
72
|
export { extractStyleProps } from './core/Box/style-props/extract-style-props/extract-style-props.mjs';
|
|
@@ -88,6 +89,7 @@ export { PopoverDropdown } from './components/Popover/PopoverDropdown/PopoverDro
|
|
|
88
89
|
export { PopoverTarget } from './components/Popover/PopoverTarget/PopoverTarget.mjs';
|
|
89
90
|
export { ActionIcon } from './components/ActionIcon/ActionIcon.mjs';
|
|
90
91
|
export { ActionIconGroup } from './components/ActionIcon/ActionIconGroup/ActionIconGroup.mjs';
|
|
92
|
+
export { ActionIconGroupSection } from './components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.mjs';
|
|
91
93
|
export { CloseIcon } from './components/CloseButton/CloseIcon.mjs';
|
|
92
94
|
export { CloseButton } from './components/CloseButton/CloseButton.mjs';
|
|
93
95
|
export { Group } from './components/Group/Group.mjs';
|
|
@@ -140,6 +142,7 @@ export { Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.mjs';
|
|
|
140
142
|
export { Burger } from './components/Burger/Burger.mjs';
|
|
141
143
|
export { Button } from './components/Button/Button.mjs';
|
|
142
144
|
export { ButtonGroup } from './components/Button/ButtonGroup/ButtonGroup.mjs';
|
|
145
|
+
export { ButtonGroupSection } from './components/Button/ButtonGroupSection/ButtonGroupSection.mjs';
|
|
143
146
|
export { Card } from './components/Card/Card.mjs';
|
|
144
147
|
export { CardSection } from './components/Card/CardSection/CardSection.mjs';
|
|
145
148
|
export { Center } from './components/Center/Center.mjs';
|
package/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BoxProps, MantineColor, MantineGradient, MantineRadius, MantineSize, PolymorphicFactory, StylesApiProps } from '../../core';
|
|
2
2
|
import { LoaderProps } from '../Loader';
|
|
3
3
|
import { ActionIconGroup } from './ActionIconGroup/ActionIconGroup';
|
|
4
|
+
import { ActionIconGroupSection } from './ActionIconGroupSection/ActionIconGroupSection';
|
|
4
5
|
export type ActionIconVariant = 'filled' | 'light' | 'outline' | 'transparent' | 'white' | 'subtle' | 'default' | 'gradient';
|
|
5
6
|
export type ActionIconStylesNames = 'root' | 'loader' | 'icon';
|
|
6
7
|
export type ActionIconCssVariables = {
|
|
@@ -37,6 +38,7 @@ export type ActionIconFactory = PolymorphicFactory<{
|
|
|
37
38
|
vars: ActionIconCssVariables;
|
|
38
39
|
staticComponents: {
|
|
39
40
|
Group: typeof ActionIconGroup;
|
|
41
|
+
GroupSection: typeof ActionIconGroupSection;
|
|
40
42
|
};
|
|
41
43
|
}>;
|
|
42
44
|
export declare const ActionIcon: (<C = "button">(props: import("../../core").PolymorphicComponentProps<C, ActionIconProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ActionIconProps & {
|
|
@@ -56,6 +58,7 @@ export declare const ActionIcon: (<C = "button">(props: import("../../core").Pol
|
|
|
56
58
|
vars: ActionIconCssVariables;
|
|
57
59
|
staticComponents: {
|
|
58
60
|
Group: typeof ActionIconGroup;
|
|
61
|
+
GroupSection: typeof ActionIconGroupSection;
|
|
59
62
|
};
|
|
60
63
|
}> & import("../../core/factory/factory").ComponentClasses<{
|
|
61
64
|
props: ActionIconProps;
|
|
@@ -66,6 +69,7 @@ export declare const ActionIcon: (<C = "button">(props: import("../../core").Pol
|
|
|
66
69
|
vars: ActionIconCssVariables;
|
|
67
70
|
staticComponents: {
|
|
68
71
|
Group: typeof ActionIconGroup;
|
|
72
|
+
GroupSection: typeof ActionIconGroupSection;
|
|
69
73
|
};
|
|
70
74
|
}> & import("../../core/factory/polymorphic-factory").PolymorphicComponentWithProps<{
|
|
71
75
|
props: ActionIconProps;
|
|
@@ -76,7 +80,9 @@ export declare const ActionIcon: (<C = "button">(props: import("../../core").Pol
|
|
|
76
80
|
vars: ActionIconCssVariables;
|
|
77
81
|
staticComponents: {
|
|
78
82
|
Group: typeof ActionIconGroup;
|
|
83
|
+
GroupSection: typeof ActionIconGroupSection;
|
|
79
84
|
};
|
|
80
85
|
}> & {
|
|
81
86
|
Group: typeof ActionIconGroup;
|
|
87
|
+
GroupSection: typeof ActionIconGroupSection;
|
|
82
88
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BoxProps, ElementProps, Factory, MantineGradient, MantineRadius, MantineSize, StylesApiProps } from '../../../core';
|
|
2
|
+
import type { ActionIconVariant } from '../ActionIcon';
|
|
3
|
+
export type ActionIconGroupSectionStylesNames = 'groupSection';
|
|
4
|
+
export type ActionIconGroupSectionCssVariables = {
|
|
5
|
+
groupSection: '--section-radius' | '--section-bg' | '--section-color' | '--section-bd' | '--section-height' | '--section-padding-x' | '--section-fz';
|
|
6
|
+
};
|
|
7
|
+
export interface ActionIconGroupSectionProps extends BoxProps, StylesApiProps<ActionIconGroupSectionFactory>, ElementProps<'div'> {
|
|
8
|
+
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
|
|
9
|
+
radius?: MantineRadius;
|
|
10
|
+
/** Gradient configuration used when `variant="gradient"`, default value is `theme.defaultGradient` */
|
|
11
|
+
gradient?: MantineGradient;
|
|
12
|
+
/** Determines whether section text color with filled variant should depend on `background-color`. If luminosity of the `color` prop is less than `theme.luminosityThreshold`, then `theme.white` will be used for text color, otherwise `theme.black`. Overrides `theme.autoContrast`. */
|
|
13
|
+
autoContrast?: boolean;
|
|
14
|
+
/** Controls section `height`, `font-size` and horizontal `padding`, `'sm'` by default */
|
|
15
|
+
size?: MantineSize | (string & {}) | number;
|
|
16
|
+
}
|
|
17
|
+
export type ActionIconGroupSectionFactory = Factory<{
|
|
18
|
+
props: ActionIconGroupSectionProps;
|
|
19
|
+
ref: HTMLDivElement;
|
|
20
|
+
stylesNames: ActionIconGroupSectionStylesNames;
|
|
21
|
+
vars: ActionIconGroupSectionCssVariables;
|
|
22
|
+
variant: ActionIconVariant;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const ActionIconGroupSection: import("../../../core").MantineComponent<{
|
|
25
|
+
props: ActionIconGroupSectionProps;
|
|
26
|
+
ref: HTMLDivElement;
|
|
27
|
+
stylesNames: ActionIconGroupSectionStylesNames;
|
|
28
|
+
vars: ActionIconGroupSectionCssVariables;
|
|
29
|
+
variant: ActionIconVariant;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { ActionIcon } from './ActionIcon';
|
|
2
2
|
export { ActionIconGroup } from './ActionIconGroup/ActionIconGroup';
|
|
3
|
+
export { ActionIconGroupSection } from './ActionIconGroupSection/ActionIconGroupSection';
|
|
3
4
|
export type { ActionIconProps, ActionIconStylesNames, ActionIconFactory, ActionIconCssVariables, ActionIconVariant, } from './ActionIcon';
|
|
4
5
|
export type { ActionIconGroupProps, ActionIconGroupCssVariables, ActionIconGroupStylesNames, ActionIconGroupFactory, } from './ActionIconGroup/ActionIconGroup';
|
|
6
|
+
export type { ActionIconGroupSectionProps, ActionIconGroupSectionCssVariables, ActionIconGroupSectionStylesNames, ActionIconGroupSectionFactory, } from './ActionIconGroupSection/ActionIconGroupSection';
|
|
@@ -14,6 +14,10 @@ export interface AngleSliderProps extends BoxProps, StylesApiProps<AngleSliderFa
|
|
|
14
14
|
onChange?: (value: number) => void;
|
|
15
15
|
/** Called after the selection is finished */
|
|
16
16
|
onChangeEnd?: (value: number) => void;
|
|
17
|
+
/** Called in `onMouseDown` and `onTouchStart` events */
|
|
18
|
+
onScrubStart?: () => void;
|
|
19
|
+
/** Called in `onMouseUp` and `onTouchEnd` events */
|
|
20
|
+
onScrubEnd?: () => void;
|
|
17
21
|
/** Determines whether the label should be displayed inside the slider, `true` by default */
|
|
18
22
|
withLabel?: boolean;
|
|
19
23
|
/** Array of marks that are displayed on the slider */
|
|
@@ -4,7 +4,7 @@ import { __BaseInputProps, __InputStylesNames, InputVariant } from '../Input';
|
|
|
4
4
|
import { ScrollAreaProps } from '../ScrollArea';
|
|
5
5
|
export type AutocompleteStylesNames = __InputStylesNames | ComboboxLikeStylesNames;
|
|
6
6
|
export interface AutocompleteProps extends BoxProps, __BaseInputProps, Omit<ComboboxLikeProps, 'data'>, StylesApiProps<AutocompleteFactory>, ElementProps<'input', 'onChange' | 'size'> {
|
|
7
|
-
/** Data displayed in the dropdown */
|
|
7
|
+
/** Data displayed in the dropdown. Values must be unique, otherwise an error will be thrown and component will not render. */
|
|
8
8
|
data?: ComboboxStringData;
|
|
9
9
|
/** Controlled component value */
|
|
10
10
|
value?: string;
|
|
@@ -40,7 +40,7 @@ export declare const Badge: (<C = "div">(props: import("../../core").Polymorphic
|
|
|
40
40
|
ref?: any;
|
|
41
41
|
renderRoot?: (props: any) => any;
|
|
42
42
|
}) | (BadgeProps & {
|
|
43
|
-
component: React.ElementType
|
|
43
|
+
component: React.ElementType;
|
|
44
44
|
renderRoot?: (props: Record<string, any>) => any;
|
|
45
45
|
})>, never> & import("../../core/factory/factory").ThemeExtend<{
|
|
46
46
|
props: BadgeProps;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BoxProps, MantineColor, MantineGradient, MantineRadius, MantineSize, PolymorphicFactory, StylesApiProps } from '../../core';
|
|
2
2
|
import { LoaderProps } from '../Loader';
|
|
3
3
|
import { ButtonGroup } from './ButtonGroup/ButtonGroup';
|
|
4
|
+
import { ButtonGroupSection } from './ButtonGroupSection/ButtonGroupSection';
|
|
4
5
|
export type ButtonStylesNames = 'root' | 'inner' | 'loader' | 'section' | 'label';
|
|
5
6
|
export type ButtonVariant = 'filled' | 'light' | 'outline' | 'transparent' | 'white' | 'subtle' | 'default' | 'gradient';
|
|
6
7
|
export type ButtonCssVariables = {
|
|
@@ -44,6 +45,7 @@ export type ButtonFactory = PolymorphicFactory<{
|
|
|
44
45
|
variant: ButtonVariant;
|
|
45
46
|
staticComponents: {
|
|
46
47
|
Group: typeof ButtonGroup;
|
|
48
|
+
GroupSection: typeof ButtonGroupSection;
|
|
47
49
|
};
|
|
48
50
|
}>;
|
|
49
51
|
export declare const Button: (<C = "button">(props: import("../../core").PolymorphicComponentProps<C, ButtonProps>) => React.ReactElement) & Omit<import("react").FunctionComponent<(ButtonProps & {
|
|
@@ -63,6 +65,7 @@ export declare const Button: (<C = "button">(props: import("../../core").Polymor
|
|
|
63
65
|
variant: ButtonVariant;
|
|
64
66
|
staticComponents: {
|
|
65
67
|
Group: typeof ButtonGroup;
|
|
68
|
+
GroupSection: typeof ButtonGroupSection;
|
|
66
69
|
};
|
|
67
70
|
}> & import("../../core/factory/factory").ComponentClasses<{
|
|
68
71
|
props: ButtonProps;
|
|
@@ -73,6 +76,7 @@ export declare const Button: (<C = "button">(props: import("../../core").Polymor
|
|
|
73
76
|
variant: ButtonVariant;
|
|
74
77
|
staticComponents: {
|
|
75
78
|
Group: typeof ButtonGroup;
|
|
79
|
+
GroupSection: typeof ButtonGroupSection;
|
|
76
80
|
};
|
|
77
81
|
}> & import("../../core/factory/polymorphic-factory").PolymorphicComponentWithProps<{
|
|
78
82
|
props: ButtonProps;
|
|
@@ -83,7 +87,9 @@ export declare const Button: (<C = "button">(props: import("../../core").Polymor
|
|
|
83
87
|
variant: ButtonVariant;
|
|
84
88
|
staticComponents: {
|
|
85
89
|
Group: typeof ButtonGroup;
|
|
90
|
+
GroupSection: typeof ButtonGroupSection;
|
|
86
91
|
};
|
|
87
92
|
}> & {
|
|
88
93
|
Group: typeof ButtonGroup;
|
|
94
|
+
GroupSection: typeof ButtonGroupSection;
|
|
89
95
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BoxProps, ElementProps, Factory, MantineGradient, MantineRadius, MantineSize, StylesApiProps } from '../../../core';
|
|
2
|
+
import type { ButtonVariant } from '../Button';
|
|
3
|
+
export type ButtonGroupSectionStylesNames = 'groupSection';
|
|
4
|
+
export type ButtonGroupSectionCssVariables = {
|
|
5
|
+
groupSection: '--section-radius' | '--section-bg' | '--section-color' | '--section-bd' | '--section-height' | '--section-padding-x' | '--section-fz';
|
|
6
|
+
};
|
|
7
|
+
export interface ButtonGroupSectionProps extends BoxProps, StylesApiProps<ButtonGroupSectionFactory>, ElementProps<'div'> {
|
|
8
|
+
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, `theme.defaultRadius` by default */
|
|
9
|
+
radius?: MantineRadius;
|
|
10
|
+
/** Gradient configuration used when `variant="gradient"`, default value is `theme.defaultGradient` */
|
|
11
|
+
gradient?: MantineGradient;
|
|
12
|
+
/** Determines whether section text color with filled variant should depend on `background-color`. If luminosity of the `color` prop is less than `theme.luminosityThreshold`, then `theme.white` will be used for text color, otherwise `theme.black`. Overrides `theme.autoContrast`. */
|
|
13
|
+
autoContrast?: boolean;
|
|
14
|
+
/** Controls section `height`, `font-size` and horizontal `padding`, `'sm'` by default */
|
|
15
|
+
size?: MantineSize | `compact-${MantineSize}` | (string & {});
|
|
16
|
+
}
|
|
17
|
+
export type ButtonGroupSectionFactory = Factory<{
|
|
18
|
+
props: ButtonGroupSectionProps;
|
|
19
|
+
ref: HTMLDivElement;
|
|
20
|
+
stylesNames: ButtonGroupSectionStylesNames;
|
|
21
|
+
vars: ButtonGroupSectionCssVariables;
|
|
22
|
+
variant: ButtonVariant;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const ButtonGroupSection: import("../../../core").MantineComponent<{
|
|
25
|
+
props: ButtonGroupSectionProps;
|
|
26
|
+
ref: HTMLDivElement;
|
|
27
|
+
stylesNames: ButtonGroupSectionStylesNames;
|
|
28
|
+
vars: ButtonGroupSectionCssVariables;
|
|
29
|
+
variant: ButtonVariant;
|
|
30
|
+
}>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { Button } from './Button';
|
|
2
2
|
export { ButtonGroup } from './ButtonGroup/ButtonGroup';
|
|
3
|
+
export { ButtonGroupSection } from './ButtonGroupSection/ButtonGroupSection';
|
|
3
4
|
export type { ButtonProps, ButtonStylesNames, ButtonFactory, ButtonCssVariables, ButtonVariant, } from './Button';
|
|
4
5
|
export type { ButtonGroupProps, ButtonGroupCssVariables, ButtonGroupStylesNames, ButtonGroupFactory, } from './ButtonGroup/ButtonGroup';
|
|
6
|
+
export type { ButtonGroupSectionProps, ButtonGroupSectionCssVariables, ButtonGroupSectionStylesNames, ButtonGroupSectionFactory, } from './ButtonGroupSection/ButtonGroupSection';
|
|
@@ -4,8 +4,12 @@ export type CheckboxCardCssVariables = {
|
|
|
4
4
|
card: '--card-radius';
|
|
5
5
|
};
|
|
6
6
|
export interface CheckboxCardProps extends BoxProps, StylesApiProps<CheckboxCardFactory>, ElementProps<'button', 'onChange'> {
|
|
7
|
-
/**
|
|
7
|
+
/** Controlled component value */
|
|
8
8
|
checked?: boolean;
|
|
9
|
+
/** Uncontrolled component default value */
|
|
10
|
+
defaultChecked?: boolean;
|
|
11
|
+
/** Called when value changes */
|
|
12
|
+
onChange?: (checked: boolean) => void;
|
|
9
13
|
/** Determines whether the card should have border, `true` by default */
|
|
10
14
|
withBorder?: boolean;
|
|
11
15
|
/** Key of `theme.radius` or any valid CSS value to set `border-radius`, numbers are converted to rem, `theme.defaultRadius` by default */
|
|
@@ -20,7 +20,7 @@ export type ComboboxData = Array<string | ComboboxItem | ComboboxItemGroup> | Re
|
|
|
20
20
|
export type ComboboxParsedItem = ComboboxItem | ComboboxParsedItemGroup;
|
|
21
21
|
export type ComboboxLikeStylesNames = Exclude<ComboboxStylesNames, 'header' | 'footer' | 'search'>;
|
|
22
22
|
export interface ComboboxLikeProps {
|
|
23
|
-
/** Data used to generate options */
|
|
23
|
+
/** Data used to generate options. Values must be unique, otherwise an error will be thrown and component will not render. */
|
|
24
24
|
data?: ComboboxData;
|
|
25
25
|
/** Controlled dropdown opened state */
|
|
26
26
|
dropdownOpened?: boolean;
|
|
@@ -49,7 +49,7 @@ declare const _FileInput: import("../../core").MantineComponent<{
|
|
|
49
49
|
}>;
|
|
50
50
|
type FileInputComponent = (<Multiple extends boolean = false>(props: FileInputProps<Multiple> & {
|
|
51
51
|
ref?: React.ForwardedRef<HTMLButtonElement>;
|
|
52
|
-
}) => JSX.Element) & {
|
|
52
|
+
}) => React.JSX.Element) & {
|
|
53
53
|
extend: typeof _FileInput.extend;
|
|
54
54
|
};
|
|
55
55
|
export declare const FileInput: FileInputComponent;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
export declare function filterFalsyChildren(children: ReactNode): ReactElement<
|
|
2
|
+
export declare function filterFalsyChildren(children: ReactNode): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>[];
|
|
@@ -8,7 +8,7 @@ interface BaseProps extends __BaseInputProps, BoxProps, StylesApiProps<{
|
|
|
8
8
|
__stylesApiProps?: Record<string, any>;
|
|
9
9
|
id?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "label" | "style" | "size" | "styles" | "className" | "id" | "vars" | "variant" | "unstyled" | "classNames" | "
|
|
11
|
+
export declare function useInputProps<T extends BaseProps, U extends Partial<T>>(component: string, defaultProps: U, _props: T): Omit<T & { [Key in Extract<keyof T, never>]-?: {}[Key] | NonNullable<T[Key]>; }, "label" | "style" | "size" | "styles" | "className" | "id" | "vars" | "variant" | "unstyled" | "classNames" | "mod" | "error" | "description" | "__staticSelector" | "required" | "__stylesApiProps" | "withAsterisk" | "labelProps" | "descriptionProps" | "errorProps" | "inputContainer" | "inputWrapperOrder" | "wrapperProps"> & {
|
|
12
12
|
classNames: Partial<Record<string, string>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, string>>) | undefined;
|
|
13
13
|
styles: Partial<Record<string, import("../../core").CSSProperties>> | ((theme: import("../../core").MantineTheme, props: any, ctx: unknown) => Partial<Record<string, import("../../core").CSSProperties>>) | undefined;
|
|
14
14
|
unstyled: boolean | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MantineSize } from '../../core';
|
|
2
2
|
import { InputVariant } from '../Input';
|
|
3
3
|
export interface PillsInputContextValue {
|
|
4
|
-
fieldRef: React.
|
|
4
|
+
fieldRef: React.RefObject<HTMLInputElement | null>;
|
|
5
5
|
size: MantineSize | (string & {});
|
|
6
6
|
disabled: boolean | undefined;
|
|
7
7
|
hasError: boolean | undefined;
|
|
@@ -9,7 +9,7 @@ interface PopoverContext {
|
|
|
9
9
|
y: number;
|
|
10
10
|
arrowX: number | undefined;
|
|
11
11
|
arrowY: number | undefined;
|
|
12
|
-
arrowRef: React.RefObject<HTMLDivElement>;
|
|
12
|
+
arrowRef: React.RefObject<HTMLDivElement | null>;
|
|
13
13
|
opened: boolean;
|
|
14
14
|
transitionProps?: TransitionOverride;
|
|
15
15
|
reference: (node: HTMLElement) => void;
|
|
@@ -12,7 +12,7 @@ interface UsePopoverOptions {
|
|
|
12
12
|
onOpen?: () => void;
|
|
13
13
|
width: PopoverWidth;
|
|
14
14
|
middlewares: PopoverMiddlewares | undefined;
|
|
15
|
-
arrowRef: React.RefObject<HTMLDivElement>;
|
|
15
|
+
arrowRef: React.RefObject<HTMLDivElement | null>;
|
|
16
16
|
arrowOffset: number;
|
|
17
17
|
strategy?: FloatingStrategy;
|
|
18
18
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function getNextMarkValue(currentValue: number, marks: {
|
|
2
|
+
value: number;
|
|
3
|
+
label?: React.ReactNode;
|
|
4
|
+
}[]): number;
|
|
5
|
+
export declare function getPreviousMarkValue(currentValue: number, marks: {
|
|
6
|
+
value: number;
|
|
7
|
+
label?: React.ReactNode;
|
|
8
|
+
}[]): number;
|
|
9
|
+
export declare function getFirstMarkValue(marks: {
|
|
10
|
+
value: number;
|
|
11
|
+
label?: React.ReactNode;
|
|
12
|
+
}[]): number;
|
|
13
|
+
export declare function getLastMarkValue(marks: {
|
|
14
|
+
value: number;
|
|
15
|
+
label?: React.ReactNode;
|
|
16
|
+
}[]): number;
|
|
@@ -21,7 +21,7 @@ export interface StepperStepProps extends BoxProps, CompoundStylesApiProps<Stepp
|
|
|
21
21
|
/** Step description */
|
|
22
22
|
description?: React.ReactNode | StepFragmentComponent;
|
|
23
23
|
/** Icon wrapper size */
|
|
24
|
-
iconSize?: number;
|
|
24
|
+
iconSize?: string | number;
|
|
25
25
|
/** Icon position relative to step body, controlled by Stepper component */
|
|
26
26
|
iconPosition?: 'right' | 'left';
|
|
27
27
|
/** Indicates loading state of the step */
|
|
@@ -2,6 +2,7 @@ import { BoxProps, ElementProps, Factory, MantineColor, MantineSpacing, StylesAp
|
|
|
2
2
|
import { TableCaption, TableTbody, TableTd, TableTfoot, TableTh, TableThead, TableTr } from './Table.components';
|
|
3
3
|
import { TableDataRenderer } from './TableDataRenderer';
|
|
4
4
|
import { TableScrollContainer } from './TableScrollContainer';
|
|
5
|
+
export type TableVariant = 'default' | 'vertical';
|
|
5
6
|
export type TableStylesNames = 'table' | 'thead' | 'tbody' | 'tfoot' | 'tr' | 'th' | 'td' | 'caption';
|
|
6
7
|
export type TableCssVariables = {
|
|
7
8
|
table: '--table-layout' | '--table-border-color' | '--table-caption-side' | '--table-horizontal-spacing' | '--table-vertical-spacing' | '--table-striped-color' | '--table-highlight-on-hover-color' | '--table-sticky-header-offset';
|
|
@@ -43,12 +44,15 @@ export interface TableProps extends BoxProps, StylesApiProps<TableFactory>, Elem
|
|
|
43
44
|
stickyHeader?: boolean;
|
|
44
45
|
/** Offset from top at which `Table.Thead` should become sticky, `0` by default */
|
|
45
46
|
stickyHeaderOffset?: number | string;
|
|
47
|
+
/** Determines whether `font-variant-numeric: tabular-nums` style should be set, `false` by default */
|
|
48
|
+
tabularNums?: boolean;
|
|
46
49
|
}
|
|
47
50
|
export type TableFactory = Factory<{
|
|
48
51
|
props: TableProps;
|
|
49
52
|
ref: HTMLTableElement;
|
|
50
53
|
stylesNames: TableStylesNames;
|
|
51
54
|
vars: TableCssVariables;
|
|
55
|
+
variant: TableVariant;
|
|
52
56
|
staticComponents: {
|
|
53
57
|
Thead: typeof TableThead;
|
|
54
58
|
Tbody: typeof TableTbody;
|
|
@@ -66,6 +70,7 @@ export declare const Table: import("../../core").MantineComponent<{
|
|
|
66
70
|
ref: HTMLTableElement;
|
|
67
71
|
stylesNames: TableStylesNames;
|
|
68
72
|
vars: TableCssVariables;
|
|
73
|
+
variant: TableVariant;
|
|
69
74
|
staticComponents: {
|
|
70
75
|
Thead: typeof TableThead;
|
|
71
76
|
Tbody: typeof TableTbody;
|
|
@@ -5,7 +5,7 @@ import { __BaseInputProps, __InputStylesNames } from '../Input';
|
|
|
5
5
|
import { ScrollAreaProps } from '../ScrollArea';
|
|
6
6
|
export type TagsInputStylesNames = __InputStylesNames | ComboboxLikeStylesNames | 'pill' | 'pillsList' | 'inputField';
|
|
7
7
|
export interface TagsInputProps extends BoxProps, __BaseInputProps, Omit<ComboboxLikeProps, 'data'>, StylesApiProps<TagsInputFactory>, ElementProps<'input', 'size' | 'value' | 'defaultValue' | 'onChange'> {
|
|
8
|
-
/** Data displayed in the dropdown */
|
|
8
|
+
/** Data displayed in the dropdown. Values must be unique, otherwise an error will be thrown and component will not render. */
|
|
9
9
|
data?: ComboboxStringData;
|
|
10
10
|
/** Controlled component value */
|
|
11
11
|
value?: string[];
|
|
@@ -10,7 +10,7 @@ export declare function useFloatingTooltip<T extends HTMLElement = any>({ offset
|
|
|
10
10
|
y: number;
|
|
11
11
|
opened: boolean | undefined;
|
|
12
12
|
setOpened: import("react").Dispatch<import("react").SetStateAction<boolean | undefined>>;
|
|
13
|
-
boundaryRef: import("react").
|
|
13
|
+
boundaryRef: import("react").RefObject<T | null>;
|
|
14
14
|
floating: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -7,7 +7,7 @@ interface UseTooltip {
|
|
|
7
7
|
opened?: boolean;
|
|
8
8
|
defaultOpened?: boolean;
|
|
9
9
|
offset: number | FloatingAxesOffsets;
|
|
10
|
-
arrowRef?: React.RefObject<HTMLDivElement>;
|
|
10
|
+
arrowRef?: React.RefObject<HTMLDivElement | null>;
|
|
11
11
|
arrowOffset?: number;
|
|
12
12
|
events?: {
|
|
13
13
|
hover: boolean;
|
|
@@ -13,7 +13,7 @@ export interface TransitionProps {
|
|
|
13
13
|
/** Determines whether component should be mounted to the DOM */
|
|
14
14
|
mounted: boolean;
|
|
15
15
|
/** Render function with transition styles argument */
|
|
16
|
-
children: (styles: React.CSSProperties) => JSX.Element;
|
|
16
|
+
children: (styles: React.CSSProperties) => React.JSX.Element;
|
|
17
17
|
/** Called when exit transition ends */
|
|
18
18
|
onExited?: () => void;
|
|
19
19
|
/** Called when exit transition starts */
|
|
@@ -43,6 +43,8 @@ export interface TreeProps extends BoxProps, StylesApiProps<TreeFactory>, Elemen
|
|
|
43
43
|
expandOnClick?: boolean;
|
|
44
44
|
/** Determines whether tree node with children should be expanded on space key press, `true` by default */
|
|
45
45
|
expandOnSpace?: boolean;
|
|
46
|
+
/** Determines whether tree node should be checked on space key press, `false` by default */
|
|
47
|
+
checkOnSpace?: boolean;
|
|
46
48
|
/** Determines whether node should be selected on click, `false` by default */
|
|
47
49
|
selectOnClick?: boolean;
|
|
48
50
|
/** Use-tree hook instance that can be used to manipulate component state */
|
|
@@ -14,8 +14,9 @@ interface TreeNodeProps {
|
|
|
14
14
|
selectOnClick: boolean | undefined;
|
|
15
15
|
allowRangeSelection: boolean | undefined;
|
|
16
16
|
expandOnSpace: boolean | undefined;
|
|
17
|
+
checkOnSpace: boolean | undefined;
|
|
17
18
|
}
|
|
18
|
-
export declare function TreeNode({ node, getStyles, rootIndex, controller, expandOnClick, selectOnClick, isSubtree, level, renderNode, flatValues, allowRangeSelection, expandOnSpace, }: TreeNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function TreeNode({ node, getStyles, rootIndex, controller, expandOnClick, selectOnClick, isSubtree, level, renderNode, flatValues, allowRangeSelection, expandOnSpace, checkOnSpace, }: TreeNodeProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export declare namespace TreeNode {
|
|
20
21
|
var displayName: string;
|
|
21
22
|
}
|
|
@@ -20,3 +20,4 @@ export type { CSSVariablesResolver } from './MantineCssVariables/default-css-var
|
|
|
20
20
|
export { virtualColor, getCSSColorVariables, isVirtualColor } from './MantineCssVariables';
|
|
21
21
|
export { useMatches } from './use-matches/use-matches';
|
|
22
22
|
export type { MantineStylesTransform } from './Mantine.context';
|
|
23
|
+
export { mantineHtmlProps } from './mantine-html-props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type ExtendedProps<Props = {}, OverrideProps = {}> = OverrideProps & Omit<Props, keyof OverrideProps>;
|
|
2
|
-
type ElementType = keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>;
|
|
3
|
-
type PropsOf<C extends ElementType> = JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>;
|
|
2
|
+
type ElementType = keyof React.JSX.IntrinsicElements | React.JSXElementConstructor<any>;
|
|
3
|
+
type PropsOf<C extends ElementType> = React.JSX.LibraryManagedAttributes<C, React.ComponentPropsWithoutRef<C>>;
|
|
4
4
|
type ComponentProp<C> = {
|
|
5
5
|
component?: C;
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine/core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.15.0",
|
|
4
4
|
"description": "React components library focused on usability, accessibility and developer experience",
|
|
5
5
|
"homepage": "https://mantine.dev/",
|
|
6
6
|
"license": "MIT",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"directory": "packages/@mantine/core"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@mantine/hooks": "7.
|
|
46
|
+
"@mantine/hooks": "7.15.0",
|
|
47
47
|
"react": "^18.x || ^19.x",
|
|
48
48
|
"react-dom": "^18.x || ^19.x"
|
|
49
49
|
},
|
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@mantine-tests/core": "workspace:*",
|
|
60
|
-
"@mantine/hooks": "workspace:*"
|
|
60
|
+
"@mantine/hooks": "workspace:*",
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1"
|
|
61
63
|
}
|
|
62
64
|
}
|
package/styles/ActionIcon.css
CHANGED
|
@@ -106,19 +106,19 @@
|
|
|
106
106
|
flex-direction: row;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):first-child {
|
|
109
|
+
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):first-child, .m_1a0f1b21[data-orientation='horizontal'] .m_437b6484:not(:only-child):first-child {
|
|
110
110
|
border-end-end-radius: 0;
|
|
111
111
|
border-start-end-radius: 0;
|
|
112
112
|
border-inline-end-width: calc(var(--ai-border-width) / 2);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):last-child {
|
|
115
|
+
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):last-child, .m_1a0f1b21[data-orientation='horizontal'] .m_437b6484:not(:only-child):last-child {
|
|
116
116
|
border-end-start-radius: 0;
|
|
117
117
|
border-start-start-radius: 0;
|
|
118
118
|
border-inline-start-width: calc(var(--ai-border-width) / 2);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child) {
|
|
121
|
+
.m_1a0f1b21[data-orientation='horizontal'] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child), .m_1a0f1b21[data-orientation='horizontal'] .m_437b6484:not(:only-child):not(:first-child):not(:last-child) {
|
|
122
122
|
border-radius: 0;
|
|
123
123
|
border-inline-width: calc(var(--ai-border-width) / 2);
|
|
124
124
|
}
|
|
@@ -127,19 +127,19 @@
|
|
|
127
127
|
flex-direction: column;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):first-child {
|
|
130
|
+
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):first-child, .m_1a0f1b21[data-orientation='vertical'] .m_437b6484:not(:only-child):first-child {
|
|
131
131
|
border-end-start-radius: 0;
|
|
132
132
|
border-end-end-radius: 0;
|
|
133
133
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):last-child {
|
|
136
|
+
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):last-child, .m_1a0f1b21[data-orientation='vertical'] .m_437b6484:not(:only-child):last-child {
|
|
137
137
|
border-start-start-radius: 0;
|
|
138
138
|
border-start-end-radius: 0;
|
|
139
139
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child) {
|
|
142
|
+
.m_1a0f1b21[data-orientation='vertical'] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child), .m_1a0f1b21[data-orientation='vertical'] .m_437b6484:not(:only-child):not(:first-child):not(:last-child) {
|
|
143
143
|
border-radius: 0;
|
|
144
144
|
border-bottom-width: calc(var(--ai-border-width) / 2);
|
|
145
145
|
border-top-width: calc(var(--ai-border-width) / 2);
|
|
@@ -155,3 +155,42 @@
|
|
|
155
155
|
width: 100%;
|
|
156
156
|
height: 100%;
|
|
157
157
|
}
|
|
158
|
+
|
|
159
|
+
.m_437b6484 {
|
|
160
|
+
--section-height-xs: 18px;
|
|
161
|
+
--section-height-sm: 22px;
|
|
162
|
+
--section-height-md: 28px;
|
|
163
|
+
--section-height-lg: 34px;
|
|
164
|
+
--section-height-xl: 44px;
|
|
165
|
+
|
|
166
|
+
--section-height-input-xs: 30px;
|
|
167
|
+
--section-height-input-sm: 36px;
|
|
168
|
+
--section-height-input-md: 42px;
|
|
169
|
+
--section-height-input-lg: 50px;
|
|
170
|
+
--section-height-input-xl: 60px;
|
|
171
|
+
|
|
172
|
+
--section-padding-x-xs: 6px;
|
|
173
|
+
--section-padding-x-sm: 8px;
|
|
174
|
+
--section-padding-x-md: 10px;
|
|
175
|
+
--section-padding-x-lg: 12px;
|
|
176
|
+
--section-padding-x-xl: 16px;
|
|
177
|
+
|
|
178
|
+
--section-height: var(--section-height-sm);
|
|
179
|
+
--section-padding-x: var(--section-padding-x-sm);
|
|
180
|
+
--section-color: var(--mantine-color-white);
|
|
181
|
+
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
width: auto;
|
|
184
|
+
border-radius: var(--section-radius, var(--mantine-radius-default));
|
|
185
|
+
font-size: var(--section-fz, var(--mantine-font-size-sm));
|
|
186
|
+
background: var(--section-bg, var(--mantine-primary-color-filled));
|
|
187
|
+
border: var(--section-bd, calc(0.0625rem * var(--mantine-scale)) solid transparent);
|
|
188
|
+
color: var(--section-color, var(--mantine-color-white));
|
|
189
|
+
height: var(--section-height, var(--section-height-sm));
|
|
190
|
+
padding-inline: var(--section-padding-x, var(--section-padding-x-sm));
|
|
191
|
+
vertical-align: middle;
|
|
192
|
+
line-height: 1;
|
|
193
|
+
display: inline-flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
}
|