@mantine-vue/core 2.0.1 → 2.2.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/index.cjs +2873 -1241
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +2854 -1242
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +4 -4
- package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +1 -1
- package/lib/components/ActionIcon/ActionIcon.d.ts +1 -1
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.d.ts +1 -1
- package/lib/components/Alert/Alert.d.ts +1 -1
- package/lib/components/AppShell/AppShell.d.ts +3 -3
- package/lib/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Blockquote/Blockquote.d.ts +1 -1
- package/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +3 -3
- package/lib/components/Checkbox/Checkbox.d.ts +4 -4
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/components/Collapse/Collapse.d.ts +1 -1
- package/lib/components/Combobox/Combobox.d.ts +4 -4
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +970 -0
- package/lib/components/ComboboxPopover/ComboboxPopover.types.d.ts +2 -0
- package/lib/components/ComboboxPopover/ComboboxPopoverTarget.d.ts +24 -0
- package/lib/components/ComboboxPopover/index.d.ts +5 -0
- package/lib/components/DataList/DataList.context.d.ts +4 -0
- package/lib/components/DataList/DataList.d.ts +304 -0
- package/lib/components/DataList/DataListItem/DataListItem.d.ts +44 -0
- package/lib/components/DataList/DataListItemLabel/DataListItemLabel.d.ts +44 -0
- package/lib/components/DataList/DataListItemValue/DataListItemValue.d.ts +44 -0
- package/lib/components/DataList/index.d.ts +10 -0
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Divider/Divider.d.ts +2 -2
- package/lib/components/EmptyState/EmptyState.context.d.ts +5 -0
- package/lib/components/EmptyState/EmptyState.d.ts +401 -0
- package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.d.ts +44 -0
- package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.d.ts +55 -0
- package/lib/components/EmptyState/index.d.ts +12 -0
- package/lib/components/Fieldset/Fieldset.d.ts +1 -1
- package/lib/components/FileButton/FileButton.d.ts +1 -1
- package/lib/components/FileInput/FileInput.d.ts +2 -2
- package/lib/components/Highlight/Highlight.d.ts +1 -1
- package/lib/components/HoverCard/HoverCard.context.d.ts +1 -0
- package/lib/components/HoverCard/use-hover-card.d.ts +1 -0
- package/lib/components/Indicator/Indicator.d.ts +1 -1
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/InputWrapper/InputWrapper.d.ts +1 -1
- package/lib/components/InputBase/InputBase.d.ts +2 -2
- package/lib/components/List/List.d.ts +3 -3
- package/lib/components/Marquee/Marquee.d.ts +1 -1
- package/lib/components/Menu/Menu.d.ts +3 -3
- package/lib/components/Menubar/Menubar.context.d.ts +51 -0
- package/lib/components/Menubar/Menubar.d.ts +282 -0
- package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.d.ts +10 -0
- package/lib/components/Menubar/MenubarMenu/MenubarMenu.d.ts +49 -0
- package/lib/components/Menubar/MenubarTarget/MenubarTarget.d.ts +35 -0
- package/lib/components/Menubar/index.d.ts +10 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +2 -2
- package/lib/components/NativeSelect/NativeSelect.d.ts +3 -3
- package/lib/components/NavLink/NavLink.d.ts +1 -1
- package/lib/components/Notification/Notification.d.ts +1 -1
- package/lib/components/NumberInput/NumberInput.d.ts +1 -1
- package/lib/components/Overlay/Overlay.d.ts +1 -1
- package/lib/components/PasswordInput/PasswordInput.d.ts +2 -2
- package/lib/components/PillsInput/PillsInput.d.ts +3 -3
- package/lib/components/PinInput/PinInput.d.ts +2 -2
- package/lib/components/Progress/Progress.d.ts +4 -4
- package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +1 -1
- package/lib/components/Radio/Radio.d.ts +4 -4
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +1 -1
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.d.ts +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/lib/components/Select/Select.d.ts +3 -3
- package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +1 -1
- package/lib/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +2 -2
- package/lib/components/Slider/Slider/Slider.d.ts +2 -2
- package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +1 -1
- package/lib/components/Slider/Thumb/Thumb.d.ts +1 -1
- package/lib/components/Splitter/Splitter.d.ts +3 -3
- package/lib/components/Stepper/Stepper.d.ts +6 -6
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +3 -3
- package/lib/components/Switch/Switch.d.ts +4 -4
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +1 -1
- package/lib/components/Table/Table.d.ts +3 -3
- package/lib/components/Tabs/Tabs.d.ts +7 -7
- package/lib/components/Tabs/TabsTab/TabsTab.d.ts +1 -1
- package/lib/components/TagsInput/TagsInput.d.ts +1 -1
- package/lib/components/Text/Text.d.ts +1 -1
- package/lib/components/Textarea/Textarea.d.ts +1 -1
- package/lib/components/Timeline/Timeline.d.ts +2 -2
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +2 -2
- package/lib/components/TreeSelect/TreeSelect.d.ts +3 -3
- package/lib/components/index.d.ts +4 -0
- package/lib/core/Box/Box.d.ts +2 -2
- package/lib/core/utils/create-scoped-keydown-handler.d.ts +10 -0
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/utils/InlineInput/InlineInput.d.ts +1 -1
- package/package.json +3 -3
|
@@ -178,8 +178,8 @@ export declare const TagsInput: import("vue").DefineComponent<import("vue").Extr
|
|
|
178
178
|
dropdownOpened: boolean;
|
|
179
179
|
defaultDropdownOpened: boolean;
|
|
180
180
|
selectFirstOptionOnDropdownOpen: boolean;
|
|
181
|
-
openOnFocus: boolean;
|
|
182
181
|
hiddenInputValuesDivider: string;
|
|
182
|
+
openOnFocus: boolean;
|
|
183
183
|
maxTags: number;
|
|
184
184
|
allowDuplicates: boolean;
|
|
185
185
|
splitChars: string[];
|
|
@@ -136,6 +136,7 @@ export declare const Text: import("../..").WithBoxProps<import("vue").DefineComp
|
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
138
|
}>> & Readonly<{}>, {
|
|
139
|
+
span: boolean;
|
|
139
140
|
variant: TextVariant;
|
|
140
141
|
gradient: {
|
|
141
142
|
from: string;
|
|
@@ -144,7 +145,6 @@ export declare const Text: import("../..").WithBoxProps<import("vue").DefineComp
|
|
|
144
145
|
};
|
|
145
146
|
inherit: boolean;
|
|
146
147
|
textWrap: "wrap" | "nowrap" | "balance" | "pretty" | "stable";
|
|
147
|
-
span: boolean;
|
|
148
148
|
classNames: Function | Record<string, any>;
|
|
149
149
|
styles: Function | Record<string, any>;
|
|
150
150
|
mod: any;
|
|
@@ -60,7 +60,7 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
60
60
|
default: undefined;
|
|
61
61
|
};
|
|
62
62
|
}>> & Readonly<{}>, {
|
|
63
|
-
resize: "
|
|
63
|
+
resize: "vertical" | "horizontal" | "none" | "both";
|
|
64
64
|
__staticSelector: string;
|
|
65
65
|
autosize: boolean;
|
|
66
66
|
bottomSection: any;
|
|
@@ -347,10 +347,10 @@ export declare const Timeline: import("../..").WithBoxProps<{
|
|
|
347
347
|
default: undefined;
|
|
348
348
|
};
|
|
349
349
|
}>> & Readonly<{}>, {
|
|
350
|
-
radius: string | number;
|
|
351
|
-
color: string;
|
|
352
350
|
style: any;
|
|
353
351
|
title: import("../..").MantineNode;
|
|
352
|
+
radius: string | number;
|
|
353
|
+
color: string;
|
|
354
354
|
classNames: Function | Record<string, any>;
|
|
355
355
|
styles: Function | Record<string, any>;
|
|
356
356
|
active: boolean;
|
|
@@ -131,10 +131,10 @@ export declare const TimelineItem: import("../../..").WithBoxProps<import("vue")
|
|
|
131
131
|
default: undefined;
|
|
132
132
|
};
|
|
133
133
|
}>> & Readonly<{}>, {
|
|
134
|
-
radius: string | number;
|
|
135
|
-
color: string;
|
|
136
134
|
style: any;
|
|
137
135
|
title: MantineNode;
|
|
136
|
+
radius: string | number;
|
|
137
|
+
color: string;
|
|
138
138
|
classNames: Function | Record<string, any>;
|
|
139
139
|
styles: Function | Record<string, any>;
|
|
140
140
|
active: boolean;
|
|
@@ -347,14 +347,14 @@ export declare const TreeSelect: import("vue").DefineComponent<import("vue").Ext
|
|
|
347
347
|
modelValue: any;
|
|
348
348
|
maxDropdownHeight: string | number;
|
|
349
349
|
nothingFoundMessage: any;
|
|
350
|
-
searchable: boolean;
|
|
351
|
-
allowDeselect: boolean;
|
|
352
350
|
dropdownOpened: boolean;
|
|
353
351
|
defaultDropdownOpened: boolean;
|
|
352
|
+
searchable: boolean;
|
|
353
|
+
allowDeselect: boolean;
|
|
354
|
+
hiddenInputValuesDivider: string;
|
|
354
355
|
openOnFocus: boolean;
|
|
355
356
|
maxValues: number;
|
|
356
357
|
clearSearchOnChange: boolean;
|
|
357
|
-
hiddenInputValuesDivider: string;
|
|
358
358
|
checkedStrategy: CheckedStrategy;
|
|
359
359
|
defaultExpandAll: boolean;
|
|
360
360
|
maxDisplayedValuesContent: any;
|
|
@@ -101,7 +101,11 @@ export * from './Popover';
|
|
|
101
101
|
export * from './Tooltip';
|
|
102
102
|
export * from './HoverCard';
|
|
103
103
|
export * from './Menu';
|
|
104
|
+
export * from './Menubar';
|
|
104
105
|
export * from './Combobox';
|
|
106
|
+
export * from './ComboboxPopover';
|
|
107
|
+
export * from './DataList';
|
|
108
|
+
export * from './EmptyState';
|
|
105
109
|
export * from './Select';
|
|
106
110
|
export * from './Autocomplete';
|
|
107
111
|
export * from './MultiSelect';
|
package/lib/core/Box/Box.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
78
78
|
/** Opacity */
|
|
79
79
|
opacity: PropType<import("./style-props").StyleProp<import("csstype").Property.Opacity | undefined>>;
|
|
80
80
|
/** FontFamily */
|
|
81
|
-
ff: PropType<import("./style-props").StyleProp<(string & {}) | "headings" | "
|
|
81
|
+
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
82
82
|
/** FontSize, theme key: theme.fontSizes */
|
|
83
83
|
fz: PropType<import("./style-props").StyleProp<string | number> | undefined>;
|
|
84
84
|
/** FontWeight */
|
|
@@ -201,7 +201,7 @@ export declare const Box: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
201
201
|
/** Opacity */
|
|
202
202
|
opacity: PropType<import("./style-props").StyleProp<import("csstype").Property.Opacity | undefined>>;
|
|
203
203
|
/** FontFamily */
|
|
204
|
-
ff: PropType<import("./style-props").StyleProp<(string & {}) | "headings" | "
|
|
204
|
+
ff: PropType<import("./style-props").StyleProp<"text" | (string & {}) | "headings" | "monospace" | "mono" | "heading"> | undefined>;
|
|
205
205
|
/** FontSize, theme key: theme.fontSizes */
|
|
206
206
|
fz: PropType<import("./style-props").StyleProp<string | number> | undefined>;
|
|
207
207
|
/** FontWeight */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface CreateScopedKeydownHandlerInput {
|
|
2
|
+
parentSelector: string;
|
|
3
|
+
siblingSelector: string;
|
|
4
|
+
loop?: boolean;
|
|
5
|
+
orientation: 'vertical' | 'horizontal';
|
|
6
|
+
dir?: 'rtl' | 'ltr';
|
|
7
|
+
activateOnFocus?: boolean;
|
|
8
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createScopedKeydownHandler({ parentSelector, siblingSelector, onKeydown, loop, activateOnFocus, dir, orientation, }: CreateScopedKeydownHandlerInput): (event: KeyboardEvent) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type InjectionKey } from 'vue';
|
|
2
2
|
export * from '@mantine-vue/utils';
|
|
3
|
+
export * from './create-scoped-keydown-handler';
|
|
3
4
|
export declare function createSafeInjectionContext<T>(errorMessage: string): readonly [(value: T) => void, () => T & ({} | undefined), InjectionKey<T>];
|
|
4
5
|
export declare const createSafeContext: typeof createSafeInjectionContext;
|
|
@@ -135,9 +135,9 @@ export declare const InlineInput: import("vue").DefineComponent<import("vue").Ex
|
|
|
135
135
|
};
|
|
136
136
|
}>> & Readonly<{}>, {
|
|
137
137
|
size: string | number;
|
|
138
|
+
label: any;
|
|
138
139
|
variant: string;
|
|
139
140
|
error: any;
|
|
140
|
-
label: any;
|
|
141
141
|
classNames: Function | Record<string, any>;
|
|
142
142
|
styles: Function | Record<string, any>;
|
|
143
143
|
description: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/core",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Vue component foundation architecturally equivalent to @mantine/core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue": "^3.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@mantine-vue/hooks": "2.0
|
|
48
|
-
"@mantine-vue/utils": "2.0
|
|
47
|
+
"@mantine-vue/hooks": "2.2.0",
|
|
48
|
+
"@mantine-vue/utils": "2.2.0",
|
|
49
49
|
"vue": "^3.5.0"
|
|
50
50
|
}
|
|
51
51
|
}
|