@mantine-vue/core 2.4.0 → 3.1.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 +21433 -16837
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +21423 -16829
- package/esm/index.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.d.ts +47 -535
- package/lib/components/Accordion/Accordion.types.d.ts +86 -0
- package/lib/components/Accordion/Accordion.vue.d.ts +37 -0
- package/lib/components/Accordion/AccordionChevron.d.ts +2 -16
- package/lib/components/Accordion/AccordionChevron.types.d.ts +10 -0
- package/lib/components/Accordion/AccordionChevron.vue.d.ts +4 -0
- package/lib/components/Accordion/AccordionControl/AccordionControl.d.ts +8 -95
- package/lib/components/Accordion/AccordionControl/AccordionControl.types.d.ts +47 -0
- package/lib/components/Accordion/AccordionControl/AccordionControl.vue.d.ts +28 -0
- package/lib/components/Accordion/AccordionItem/AccordionItem.d.ts +7 -43
- package/lib/components/Accordion/AccordionItem/AccordionItem.types.d.ts +25 -0
- package/lib/components/Accordion/AccordionItem/AccordionItem.vue.d.ts +13 -0
- package/lib/components/Accordion/AccordionPanel/AccordionPanel.d.ts +12 -53
- package/lib/components/Accordion/AccordionPanel/AccordionPanel.types.d.ts +32 -0
- package/lib/components/Accordion/AccordionPanel/AccordionPanel.vue.d.ts +19 -0
- package/lib/components/Accordion/index.d.ts +4 -3
- package/lib/components/ActionIcon/ActionIcon.d.ts +20 -365
- package/lib/components/ActionIcon/ActionIcon.types.d.ts +92 -0
- package/lib/components/ActionIcon/ActionIcon.vue.d.ts +12 -0
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.d.ts +9 -54
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.types.d.ts +38 -0
- package/lib/components/ActionIcon/ActionIconGroup/ActionIconGroup.vue.d.ts +13 -0
- package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.d.ts +9 -85
- package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.types.d.ts +39 -0
- package/lib/components/ActionIcon/ActionIconGroupSection/ActionIconGroupSection.vue.d.ts +13 -0
- package/lib/components/Affix/Affix.d.ts +12 -86
- package/lib/components/Affix/Affix.types.d.ts +55 -0
- package/lib/components/Affix/Affix.vue.d.ts +13 -0
- package/lib/components/Affix/index.d.ts +1 -1
- package/lib/components/Alert/Alert.d.ts +10 -142
- package/lib/components/Alert/Alert.types.d.ts +79 -0
- package/lib/components/Alert/Alert.vue.d.ts +18 -0
- package/lib/components/Anchor/Anchor.d.ts +14 -72
- package/lib/components/Anchor/Anchor.types.d.ts +47 -0
- package/lib/components/Anchor/Anchor.vue.d.ts +11 -0
- package/lib/components/AngleSlider/AngleSlider.d.ts +7 -217
- package/lib/components/AngleSlider/AngleSlider.types.d.ts +63 -0
- package/lib/components/AngleSlider/AngleSlider.vue.d.ts +23 -0
- package/lib/components/AngleSlider/index.d.ts +1 -1
- package/lib/components/AppShell/AppShell.d.ts +20 -799
- package/lib/components/AppShell/AppShell.types.d.ts +107 -0
- package/lib/components/AppShell/AppShell.vue.d.ts +30 -0
- package/lib/components/AppShell/AppShellAside/AppShellAside.d.ts +6 -6
- package/lib/components/AppShell/AppShellFooter/AppShellFooter.d.ts +6 -6
- package/lib/components/AppShell/AppShellHeader/AppShellHeader.d.ts +6 -6
- package/lib/components/AppShell/AppShellMain/AppShellMain.d.ts +7 -20
- package/lib/components/AppShell/AppShellMain/AppShellMain.types.d.ts +28 -0
- package/lib/components/AppShell/AppShellMain/AppShellMain.vue.d.ts +13 -0
- package/lib/components/AppShell/AppShellNavbar/AppShellNavbar.d.ts +6 -6
- package/lib/components/AppShell/AppShellSection/AppShellSection.d.ts +12 -72
- package/lib/components/AppShell/AppShellSection/AppShellSection.types.d.ts +38 -0
- package/lib/components/AppShell/AppShellSection/AppShellSection.vue.d.ts +11 -0
- package/lib/components/AppShell/create-app-shell-component.d.ts +6 -6
- package/lib/components/AppShell/index.d.ts +2 -0
- package/lib/components/AspectRatio/AspectRatio.d.ts +8 -51
- package/lib/components/AspectRatio/AspectRatio.types.d.ts +26 -0
- package/lib/components/AspectRatio/AspectRatio.vue.d.ts +16 -0
- package/lib/components/Autocomplete/Autocomplete.d.ts +62 -154
- package/lib/components/Autocomplete/Autocomplete.types.d.ts +111 -0
- package/lib/components/Autocomplete/Autocomplete.vue.d.ts +25 -0
- package/lib/components/Autocomplete/index.d.ts +1 -1
- package/lib/components/Avatar/Avatar.d.ts +18 -304
- package/lib/components/Avatar/Avatar.types.d.ts +82 -0
- package/lib/components/Avatar/Avatar.vue.d.ts +12 -0
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.context.d.ts +6 -0
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.d.ts +11 -53
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.types.d.ts +34 -0
- package/lib/components/Avatar/AvatarGroup/AvatarGroup.vue.d.ts +12 -0
- package/lib/components/Avatar/AvatarPlaceholderIcon.d.ts +2 -3
- package/lib/components/Avatar/AvatarPlaceholderIcon.types.d.ts +6 -0
- package/lib/components/Avatar/AvatarPlaceholderIcon.vue.d.ts +3 -0
- package/lib/components/BackgroundImage/BackgroundImage.d.ts +13 -54
- package/lib/components/BackgroundImage/BackgroundImage.types.d.ts +39 -0
- package/lib/components/BackgroundImage/BackgroundImage.vue.d.ts +16 -0
- package/lib/components/Badge/Badge.d.ts +14 -140
- package/lib/components/Badge/Badge.types.d.ts +92 -0
- package/lib/components/Badge/Badge.vue.d.ts +14 -0
- package/lib/components/Blockquote/Blockquote.d.ts +8 -89
- package/lib/components/Blockquote/Blockquote.types.d.ts +53 -0
- package/lib/components/Blockquote/Blockquote.vue.d.ts +11 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +12 -59
- package/lib/components/Breadcrumbs/Breadcrumbs.types.d.ts +43 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.vue.d.ts +12 -0
- package/lib/components/Burger/Burger.d.ts +9 -84
- package/lib/components/Burger/Burger.types.d.ts +54 -0
- package/lib/components/Burger/Burger.vue.d.ts +12 -0
- package/lib/components/Button/Button.d.ts +20 -500
- package/lib/components/Button/Button.types.d.ts +126 -0
- package/lib/components/Button/Button.vue.d.ts +17 -0
- package/lib/components/Button/ButtonGroup/ButtonGroup.d.ts +9 -54
- package/lib/components/Button/ButtonGroup/ButtonGroup.types.d.ts +38 -0
- package/lib/components/Button/ButtonGroup/ButtonGroup.vue.d.ts +13 -0
- package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.d.ts +9 -85
- package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.types.d.ts +39 -0
- package/lib/components/Button/ButtonGroupSection/ButtonGroupSection.vue.d.ts +13 -0
- package/lib/components/Card/Card.d.ts +17 -223
- package/lib/components/Card/Card.types.d.ts +66 -0
- package/lib/components/Card/Card.vue.d.ts +12 -0
- package/lib/components/Card/CardSection/CardSection.d.ts +13 -70
- package/lib/components/Card/CardSection/CardSection.types.d.ts +50 -0
- package/lib/components/Card/CardSection/CardSection.vue.d.ts +11 -0
- package/lib/components/Cascader/Cascader.d.ts +68 -314
- package/lib/components/Cascader/Cascader.types.d.ts +213 -0
- package/lib/components/Cascader/Cascader.vue.d.ts +27 -0
- package/lib/components/Cascader/cascader-helpers.d.ts +5 -0
- package/lib/components/Center/Center.d.ts +12 -60
- package/lib/components/Center/Center.types.d.ts +37 -0
- package/lib/components/Center/Center.vue.d.ts +13 -0
- package/lib/components/Checkbox/CheckIcon.d.ts +3 -31
- package/lib/components/Checkbox/CheckIcon.types.d.ts +15 -0
- package/lib/components/Checkbox/CheckIcon.vue.d.ts +4 -0
- package/lib/components/Checkbox/Checkbox.d.ts +20 -817
- package/lib/components/Checkbox/Checkbox.types.d.ts +156 -0
- package/lib/components/Checkbox/Checkbox.vue.d.ts +37 -0
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.context.d.ts +5 -0
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.d.ts +10 -111
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.types.d.ts +52 -0
- package/lib/components/Checkbox/CheckboxCard/CheckboxCard.vue.d.ts +22 -0
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.context.d.ts +5 -0
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.d.ts +34 -183
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.types.d.ts +78 -0
- package/lib/components/Checkbox/CheckboxGroup/CheckboxGroup.vue.d.ts +19 -0
- package/lib/components/Checkbox/CheckboxIcon.vue.d.ts +4 -0
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.d.ts +10 -151
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.types.d.ts +78 -0
- package/lib/components/Checkbox/CheckboxIndicator/CheckboxIndicator.vue.d.ts +13 -0
- package/lib/components/Checkbox/index.d.ts +4 -3
- package/lib/components/Chip/Chip.d.ts +15 -372
- package/lib/components/Chip/Chip.types.d.ts +104 -0
- package/lib/components/Chip/Chip.vue.d.ts +27 -0
- package/lib/components/Chip/ChipGroup/ChipGroup.context.d.ts +5 -0
- package/lib/components/Chip/ChipGroup/ChipGroup.d.ts +33 -50
- package/lib/components/Chip/ChipGroup/ChipGroup.types.d.ts +28 -0
- package/lib/components/Chip/ChipGroup/ChipGroup.vue.d.ts +17 -0
- package/lib/components/Chip/index.d.ts +2 -2
- package/lib/components/CloseButton/CloseButton.d.ts +14 -100
- package/lib/components/CloseButton/CloseButton.types.d.ts +75 -0
- package/lib/components/CloseButton/CloseButton.vue.d.ts +11 -0
- package/lib/components/CloseButton/CloseIcon.d.ts +2 -15
- package/lib/components/CloseButton/CloseIcon.types.d.ts +8 -0
- package/lib/components/CloseButton/CloseIcon.vue.d.ts +4 -0
- package/lib/components/Code/Code.d.ts +9 -62
- package/lib/components/Code/Code.types.d.ts +36 -0
- package/lib/components/Code/Code.vue.d.ts +14 -0
- package/lib/components/Collapse/Collapse.d.ts +7 -78
- package/lib/components/Collapse/Collapse.types.d.ts +52 -0
- package/lib/components/Collapse/Collapse.vue.d.ts +17 -0
- package/lib/components/ColorInput/ColorInput.d.ts +48 -124
- package/lib/components/ColorInput/ColorInput.types.d.ts +85 -0
- package/lib/components/ColorInput/ColorInput.vue.d.ts +19 -0
- package/lib/components/ColorInput/EyeDropperIcon.d.ts +2 -3
- package/lib/components/ColorInput/EyeDropperIcon.types.d.ts +6 -0
- package/lib/components/ColorInput/EyeDropperIcon.vue.d.ts +3 -0
- package/lib/components/ColorInput/index.d.ts +1 -1
- package/lib/components/ColorPicker/AlphaSlider/AlphaSlider.d.ts +47 -77
- package/lib/components/ColorPicker/AlphaSlider/AlphaSlider.types.d.ts +9 -0
- package/lib/components/ColorPicker/AlphaSlider/AlphaSlider.vue.d.ts +25 -0
- package/lib/components/ColorPicker/ColorPicker.d.ts +42 -217
- package/lib/components/ColorPicker/ColorPicker.props.types.d.ts +72 -0
- package/lib/components/ColorPicker/ColorPicker.vue.d.ts +27 -0
- package/lib/components/ColorPicker/ColorSlider/ColorSlider.d.ts +47 -139
- package/lib/components/ColorPicker/ColorSlider/ColorSlider.types.d.ts +44 -0
- package/lib/components/ColorPicker/ColorSlider/ColorSlider.vue.d.ts +16 -0
- package/lib/components/ColorPicker/HueSlider/HueSlider.d.ts +47 -69
- package/lib/components/ColorPicker/HueSlider/HueSlider.types.d.ts +9 -0
- package/lib/components/ColorPicker/HueSlider/HueSlider.vue.d.ts +23 -0
- package/lib/components/ColorPicker/Saturation/Saturation.d.ts +13 -84
- package/lib/components/ColorPicker/Saturation/Saturation.types.d.ts +21 -0
- package/lib/components/ColorPicker/Saturation/Saturation.vue.d.ts +18 -0
- package/lib/components/ColorPicker/Swatches/Swatches.d.ts +7 -50
- package/lib/components/ColorPicker/Swatches/Swatches.types.d.ts +18 -0
- package/lib/components/ColorPicker/Swatches/Swatches.vue.d.ts +8 -0
- package/lib/components/ColorPicker/Thumb/Thumb.d.ts +3 -20
- package/lib/components/ColorPicker/Thumb/Thumb.types.d.ts +11 -0
- package/lib/components/ColorPicker/Thumb/Thumb.vue.d.ts +4 -0
- package/lib/components/ColorPicker/index.d.ts +4 -2
- package/lib/components/ColorSwatch/ColorSwatch.d.ts +13 -65
- package/lib/components/ColorSwatch/ColorSwatch.types.d.ts +51 -0
- package/lib/components/ColorSwatch/ColorSwatch.vue.d.ts +12 -0
- package/lib/components/Combobox/Combobox.d.ts +247 -481
- package/lib/components/Combobox/Combobox.types.d.ts +215 -0
- package/lib/components/Combobox/Combobox.vue.d.ts +15 -0
- package/lib/components/Combobox/ComboboxChevron.vue.d.ts +3 -0
- package/lib/components/Combobox/ComboboxClearButton.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxDropdown.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxDropdownTarget.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxGroup.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxHiddenInput.vue.d.ts +3 -0
- package/lib/components/Combobox/ComboboxOption.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxOptions.vue.d.ts +11 -0
- package/lib/components/Combobox/ComboboxSearch.vue.d.ts +9 -0
- package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.d.ts +2 -123
- package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.types.d.ts +103 -0
- package/lib/components/Combobox/OptionsDropdown/OptionsDropdown.vue.d.ts +23 -0
- package/lib/components/Combobox/combobox-utils.d.ts +12 -0
- package/lib/components/Combobox/create-combobox-section.d.ts +9 -0
- package/lib/components/Combobox/create-combobox-target.d.ts +64 -0
- package/lib/components/Combobox/index.d.ts +1 -1
- package/lib/components/ComboboxPopover/ComboboxPopover.d.ts +92 -948
- package/lib/components/ComboboxPopover/ComboboxPopover.types.d.ts +72 -1
- package/lib/components/ComboboxPopover/ComboboxPopover.vue.d.ts +25 -0
- package/lib/components/ComboboxPopover/ComboboxPopoverTarget.d.ts +8 -0
- package/lib/components/ComboboxPopover/render-popover-option.d.ts +28 -0
- package/lib/components/Container/Container.d.ts +8 -64
- package/lib/components/Container/Container.types.d.ts +38 -0
- package/lib/components/Container/Container.vue.d.ts +19 -0
- package/lib/components/CopyButton/CopyButton.d.ts +2 -23
- package/lib/components/CopyButton/CopyButton.types.d.ts +25 -0
- package/lib/components/CopyButton/CopyButton.vue.d.ts +9 -0
- package/lib/components/DataList/DataList.d.ts +15 -302
- package/lib/components/DataList/DataList.types.d.ts +50 -0
- package/lib/components/DataList/DataList.vue.d.ts +17 -0
- package/lib/components/DataList/DataListItem/DataListItem.d.ts +8 -44
- package/lib/components/DataList/DataListItem/DataListItem.types.d.ts +28 -0
- package/lib/components/DataList/DataListItem/DataListItem.vue.d.ts +13 -0
- package/lib/components/DataList/DataListItemLabel/DataListItemLabel.d.ts +8 -44
- package/lib/components/DataList/DataListItemLabel/DataListItemLabel.types.d.ts +28 -0
- package/lib/components/DataList/DataListItemLabel/DataListItemLabel.vue.d.ts +13 -0
- package/lib/components/DataList/DataListItemValue/DataListItemValue.d.ts +8 -44
- package/lib/components/DataList/DataListItemValue/DataListItemValue.types.d.ts +28 -0
- package/lib/components/DataList/DataListItemValue/DataListItemValue.vue.d.ts +13 -0
- package/lib/components/DataList/index.d.ts +4 -4
- package/lib/components/Dialog/Dialog.d.ts +29 -184
- package/lib/components/Dialog/Dialog.types.d.ts +91 -0
- package/lib/components/Dialog/Dialog.vue.d.ts +14 -0
- package/lib/components/Dialog/index.d.ts +1 -2
- package/lib/components/Divider/Divider.d.ts +10 -96
- package/lib/components/Divider/Divider.types.d.ts +58 -0
- package/lib/components/Divider/Divider.vue.d.ts +13 -0
- package/lib/components/Drawer/Drawer.compound.d.ts +124 -0
- package/lib/components/Drawer/Drawer.context.d.ts +28 -0
- package/lib/components/Drawer/Drawer.d.ts +55 -635
- package/lib/components/Drawer/Drawer.types.d.ts +121 -0
- package/lib/components/Drawer/Drawer.vue.d.ts +15 -0
- package/lib/components/Drawer/DrawerRoot.vue.d.ts +21 -0
- package/lib/components/Drawer/DrawerStack.vue.d.ts +11 -0
- package/lib/components/Drawer/create-drawer-compound-component.d.ts +29 -0
- package/lib/components/Drawer/index.d.ts +1 -1
- package/lib/components/Drawer/use-drawers-stack.d.ts +25 -0
- package/lib/components/EmptyState/EmptyState.d.ts +18 -399
- package/lib/components/EmptyState/EmptyState.types.d.ts +94 -0
- package/lib/components/EmptyState/EmptyState.vue.d.ts +24 -0
- package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.d.ts +8 -44
- package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.types.d.ts +28 -0
- package/lib/components/EmptyState/EmptyStateActions/EmptyStateActions.vue.d.ts +13 -0
- package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.d.ts +8 -44
- package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.types.d.ts +28 -0
- package/lib/components/EmptyState/EmptyStateDescription/EmptyStateDescription.vue.d.ts +13 -0
- package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.d.ts +8 -44
- package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.types.d.ts +28 -0
- package/lib/components/EmptyState/EmptyStateIndicator/EmptyStateIndicator.vue.d.ts +13 -0
- package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.d.ts +8 -55
- package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.types.d.ts +30 -0
- package/lib/components/EmptyState/EmptyStateTitle/EmptyStateTitle.vue.d.ts +13 -0
- package/lib/components/EmptyState/index.d.ts +5 -5
- package/lib/components/Fieldset/Fieldset.d.ts +10 -77
- package/lib/components/Fieldset/Fieldset.types.d.ts +44 -0
- package/lib/components/Fieldset/Fieldset.vue.d.ts +13 -0
- package/lib/components/Fieldset/index.d.ts +1 -0
- package/lib/components/FileButton/FileButton.d.ts +35 -98
- package/lib/components/FileButton/FileButton.types.d.ts +43 -0
- package/lib/components/FileButton/FileButton.vue.d.ts +17 -0
- package/lib/components/FileButton/index.d.ts +1 -0
- package/lib/components/FileInput/FileInput.d.ts +33 -282
- package/lib/components/FileInput/FileInput.types.d.ts +127 -0
- package/lib/components/FileInput/FileInput.vue.d.ts +24 -0
- package/lib/components/FileInput/index.d.ts +1 -0
- package/lib/components/Flex/Flex.d.ts +12 -67
- package/lib/components/Flex/Flex.types.d.ts +47 -0
- package/lib/components/Flex/Flex.vue.d.ts +16 -0
- package/lib/components/FloatingIndicator/FloatingIndicator.d.ts +11 -116
- package/lib/components/FloatingIndicator/FloatingIndicator.types.d.ts +58 -0
- package/lib/components/FloatingIndicator/FloatingIndicator.vue.d.ts +18 -0
- package/lib/components/FloatingIndicator/index.d.ts +1 -4
- package/lib/components/FloatingWindow/FloatingWindow.context.d.ts +3 -3
- package/lib/components/FloatingWindow/FloatingWindow.d.ts +65 -244
- package/lib/components/FloatingWindow/FloatingWindow.types.d.ts +66 -0
- package/lib/components/FloatingWindow/FloatingWindow.vue.d.ts +35 -0
- package/lib/components/FloatingWindow/FloatingWindowResizeHandle.d.ts +7 -27
- package/lib/components/FloatingWindow/FloatingWindowResizeHandle.types.d.ts +36 -0
- package/lib/components/FloatingWindow/FloatingWindowResizeHandle.vue.d.ts +23 -0
- package/lib/components/FloatingWindow/index.d.ts +2 -1
- package/lib/components/Grid/Grid.d.ts +14 -306
- package/lib/components/Grid/Grid.types.d.ts +81 -0
- package/lib/components/Grid/Grid.vue.d.ts +12 -0
- package/lib/components/Grid/GridCol/GridCol.d.ts +11 -72
- package/lib/components/Grid/GridCol/GridCol.types.d.ts +44 -0
- package/lib/components/Grid/GridCol/GridCol.vue.d.ts +11 -0
- package/lib/components/Grid/GridCol/GridColVariables.d.ts +2 -53
- package/lib/components/Grid/GridCol/GridColVariables.vue.d.ts +30 -0
- package/lib/components/Grid/GridVariables.d.ts +2 -63
- package/lib/components/Grid/GridVariables.vue.d.ts +23 -0
- package/lib/components/Group/Group.d.ts +12 -91
- package/lib/components/Group/Group.types.d.ts +65 -0
- package/lib/components/Group/Group.vue.d.ts +13 -0
- package/lib/components/Highlight/Highlight.d.ts +17 -119
- package/lib/components/Highlight/Highlight.types.d.ts +86 -0
- package/lib/components/Highlight/Highlight.vue.d.ts +11 -0
- package/lib/components/Highlight/index.d.ts +2 -1
- package/lib/components/HoverCard/HoverCard.d.ts +52 -93
- package/lib/components/HoverCard/HoverCard.types.d.ts +30 -0
- package/lib/components/HoverCard/HoverCard.vue.d.ts +17 -0
- package/lib/components/HoverCard/HoverCardDropdown/HoverCardDropdown.d.ts +16 -6
- package/lib/components/HoverCard/HoverCardDropdown/HoverCardDropdown.types.d.ts +11 -0
- package/lib/components/HoverCard/HoverCardDropdown/HoverCardDropdown.vue.d.ts +11 -0
- package/lib/components/HoverCard/HoverCardGroup/HoverCardGroup.context.d.ts +3 -0
- package/lib/components/HoverCard/HoverCardGroup/HoverCardGroup.d.ts +18 -35
- package/lib/components/HoverCard/HoverCardGroup/HoverCardGroup.types.d.ts +28 -0
- package/lib/components/HoverCard/HoverCardGroup/HoverCardGroup.vue.d.ts +11 -0
- package/lib/components/HoverCard/HoverCardTarget/HoverCardTarget.d.ts +8 -0
- package/lib/components/HoverCard/index.d.ts +3 -3
- package/lib/components/Image/Image.d.ts +13 -75
- package/lib/components/Image/Image.types.d.ts +46 -0
- package/lib/components/Image/Image.vue.d.ts +11 -0
- package/lib/components/Indicator/Indicator.d.ts +9 -172
- package/lib/components/Indicator/Indicator.types.d.ts +105 -0
- package/lib/components/Indicator/Indicator.vue.d.ts +13 -0
- package/lib/components/Input/Input.d.ts +30 -1090
- package/lib/components/Input/Input.types.d.ts +205 -0
- package/lib/components/Input/Input.vue.d.ts +33 -0
- package/lib/components/Input/InputClearButton/InputClearButton.d.ts +10 -44
- package/lib/components/Input/InputClearButton/InputClearButton.types.d.ts +31 -0
- package/lib/components/Input/InputClearButton/InputClearButton.vue.d.ts +13 -0
- package/lib/components/Input/InputDescription/InputDescription.d.ts +9 -63
- package/lib/components/Input/InputDescription/InputDescription.types.d.ts +39 -0
- package/lib/components/Input/InputDescription/InputDescription.vue.d.ts +14 -0
- package/lib/components/Input/InputError/InputError.d.ts +9 -63
- package/lib/components/Input/InputError/InputError.types.d.ts +39 -0
- package/lib/components/Input/InputError/InputError.vue.d.ts +14 -0
- package/lib/components/Input/InputLabel/InputLabel.d.ts +9 -90
- package/lib/components/Input/InputLabel/InputLabel.types.d.ts +48 -0
- package/lib/components/Input/InputLabel/InputLabel.vue.d.ts +17 -0
- package/lib/components/Input/InputPlaceholder/InputPlaceholder.d.ts +7 -53
- package/lib/components/Input/InputPlaceholder/InputPlaceholder.types.d.ts +35 -0
- package/lib/components/Input/InputPlaceholder/InputPlaceholder.vue.d.ts +13 -0
- package/lib/components/Input/InputWrapper/InputWrapper.d.ts +19 -187
- package/lib/components/Input/InputWrapper/InputWrapper.types.d.ts +88 -0
- package/lib/components/Input/InputWrapper/InputWrapper.vue.d.ts +22 -0
- package/lib/components/Input/InputWrapper.context.d.ts +1 -1
- package/lib/components/Input/index.d.ts +7 -6
- package/lib/components/InputBase/InputBase.d.ts +10 -439
- package/lib/components/InputBase/InputBase.types.d.ts +210 -0
- package/lib/components/InputBase/InputBase.vue.d.ts +24 -0
- package/lib/components/InputBase/index.d.ts +1 -1
- package/lib/components/JsonInput/JsonInput.d.ts +33 -106
- package/lib/components/JsonInput/JsonInput.types.d.ts +48 -0
- package/lib/components/JsonInput/JsonInput.vue.d.ts +18 -0
- package/lib/components/JsonInput/index.d.ts +1 -0
- package/lib/components/Kbd/Kbd.d.ts +9 -46
- package/lib/components/Kbd/Kbd.types.d.ts +31 -0
- package/lib/components/Kbd/Kbd.vue.d.ts +14 -0
- package/lib/components/List/List.context.d.ts +2 -1
- package/lib/components/List/List.d.ts +11 -279
- package/lib/components/List/List.types.d.ts +76 -0
- package/lib/components/List/List.vue.d.ts +12 -0
- package/lib/components/List/ListItem/ListItem.d.ts +8 -57
- package/lib/components/List/ListItem/ListItem.types.d.ts +28 -0
- package/lib/components/List/ListItem/ListItem.vue.d.ts +13 -0
- package/lib/components/Loader/Loader.d.ts +17 -75
- package/lib/components/Loader/Loader.types.d.ts +42 -1
- package/lib/components/Loader/Loader.vue.d.ts +14 -0
- package/lib/components/Loader/loaders/Bars.d.ts +1 -3
- package/lib/components/Loader/loaders/Bars.vue.d.ts +3 -0
- package/lib/components/Loader/loaders/Dots.d.ts +1 -3
- package/lib/components/Loader/loaders/Dots.vue.d.ts +3 -0
- package/lib/components/Loader/loaders/Oval.d.ts +1 -3
- package/lib/components/Loader/loaders/Oval.vue.d.ts +3 -0
- package/lib/components/LoadingOverlay/LoadingOverlay.d.ts +11 -117
- package/lib/components/LoadingOverlay/LoadingOverlay.types.d.ts +49 -0
- package/lib/components/LoadingOverlay/LoadingOverlay.vue.d.ts +18 -0
- package/lib/components/Mark/Mark.d.ts +9 -53
- package/lib/components/Mark/Mark.types.d.ts +31 -0
- package/lib/components/Mark/Mark.vue.d.ts +17 -0
- package/lib/components/Marquee/Marquee.d.ts +9 -135
- package/lib/components/Marquee/Marquee.types.d.ts +82 -0
- package/lib/components/Marquee/Marquee.vue.d.ts +12 -0
- package/lib/components/Marquee/index.d.ts +1 -2
- package/lib/components/MaskInput/MaskInput.d.ts +43 -147
- package/lib/components/MaskInput/MaskInput.types.d.ts +82 -0
- package/lib/components/MaskInput/MaskInput.vue.d.ts +22 -0
- package/lib/components/MaskInput/index.d.ts +1 -1
- package/lib/components/Menu/Menu.d.ts +504 -1108
- package/lib/components/Menu/Menu.select-context.d.ts +10 -0
- package/lib/components/Menu/Menu.types.d.ts +298 -0
- package/lib/components/Menu/Menu.vue.d.ts +19 -0
- package/lib/components/Menu/MenuCheckboxItem.vue.d.ts +17 -0
- package/lib/components/Menu/MenuContextMenu.vue.d.ts +11 -0
- package/lib/components/Menu/MenuDivider.vue.d.ts +3 -0
- package/lib/components/Menu/MenuDropdown.vue.d.ts +11 -0
- package/lib/components/Menu/MenuItem.vue.d.ts +11 -0
- package/lib/components/Menu/MenuLabel.vue.d.ts +11 -0
- package/lib/components/Menu/MenuRadioItem.vue.d.ts +15 -0
- package/lib/components/Menu/MenuSearch.vue.d.ts +9 -0
- package/lib/components/Menu/MenuSub.vue.d.ts +15 -0
- package/lib/components/Menu/MenuSubDropdown.vue.d.ts +11 -0
- package/lib/components/Menu/MenuSubItem.vue.d.ts +11 -0
- package/lib/components/Menu/MenuSubTarget.vue.d.ts +11 -0
- package/lib/components/Menu/MenuTarget.vue.d.ts +11 -0
- package/lib/components/Menu/create-menu-select-group.d.ts +37 -0
- package/lib/components/Menu/index.d.ts +1 -1
- package/lib/components/Menu/menu-utils.d.ts +25 -0
- package/lib/components/Menubar/Menubar.d.ts +13 -280
- package/lib/components/Menubar/Menubar.types.d.ts +55 -0
- package/lib/components/Menubar/Menubar.vue.d.ts +31 -0
- package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.d.ts +16 -10
- package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.types.d.ts +18 -0
- package/lib/components/Menubar/MenubarDropdown/MenubarDropdown.vue.d.ts +11 -0
- package/lib/components/Menubar/MenubarMenu/MenubarMenu.d.ts +17 -49
- package/lib/components/Menubar/MenubarMenu/MenubarMenu.types.d.ts +20 -0
- package/lib/components/Menubar/MenubarMenu/MenubarMenu.vue.d.ts +11 -0
- package/lib/components/Menubar/MenubarTarget/MenubarTarget.d.ts +17 -35
- package/lib/components/Menubar/MenubarTarget/MenubarTarget.types.d.ts +27 -0
- package/lib/components/Menubar/MenubarTarget/MenubarTarget.vue.d.ts +20 -0
- package/lib/components/Menubar/index.d.ts +3 -2
- package/lib/components/Modal/Modal.compound.d.ts +121 -0
- package/lib/components/Modal/Modal.context.d.ts +11 -0
- package/lib/components/Modal/Modal.d.ts +36 -586
- package/lib/components/Modal/Modal.types.d.ts +130 -0
- package/lib/components/Modal/Modal.vue.d.ts +15 -0
- package/lib/components/Modal/ModalRoot.vue.d.ts +16 -0
- package/lib/components/Modal/create-modal-compound-component.d.ts +27 -0
- package/lib/components/Modal/index.d.ts +1 -1
- package/lib/components/ModalBase/ModalBase.d.ts +10 -180
- package/lib/components/ModalBase/ModalBase.types.d.ts +101 -0
- package/lib/components/ModalBase/ModalBase.vue.d.ts +17 -0
- package/lib/components/ModalBase/ModalBaseBody.d.ts +6 -6
- package/lib/components/ModalBase/ModalBaseBody.types.d.ts +16 -0
- package/lib/components/ModalBase/ModalBaseBody.vue.d.ts +11 -0
- package/lib/components/ModalBase/ModalBaseCloseButton.d.ts +26 -6
- package/lib/components/ModalBase/ModalBaseCloseButton.types.d.ts +13 -0
- package/lib/components/ModalBase/ModalBaseCloseButton.vue.d.ts +15 -0
- package/lib/components/ModalBase/ModalBaseContent.d.ts +11 -29
- package/lib/components/ModalBase/ModalBaseContent.types.d.ts +30 -0
- package/lib/components/ModalBase/ModalBaseContent.vue.d.ts +13 -0
- package/lib/components/ModalBase/ModalBaseHeader.d.ts +6 -6
- package/lib/components/ModalBase/ModalBaseHeader.types.d.ts +16 -0
- package/lib/components/ModalBase/ModalBaseHeader.vue.d.ts +11 -0
- package/lib/components/ModalBase/ModalBaseOverlay.d.ts +2 -29
- package/lib/components/ModalBase/ModalBaseOverlay.types.d.ts +11 -0
- package/lib/components/ModalBase/ModalBaseOverlay.vue.d.ts +4 -0
- package/lib/components/ModalBase/ModalBaseTitle.d.ts +6 -6
- package/lib/components/ModalBase/ModalBaseTitle.types.d.ts +16 -0
- package/lib/components/ModalBase/ModalBaseTitle.vue.d.ts +11 -0
- package/lib/components/ModalBase/NativeScrollArea.d.ts +16 -3
- package/lib/components/ModalBase/NativeScrollArea.types.d.ts +5 -0
- package/lib/components/ModalBase/NativeScrollArea.vue.d.ts +11 -0
- package/lib/components/ModalBase/index.d.ts +12 -7
- package/lib/components/MultiSelect/MultiSelect.d.ts +83 -208
- package/lib/components/MultiSelect/MultiSelect.types.d.ts +181 -0
- package/lib/components/MultiSelect/MultiSelect.vue.d.ts +38 -0
- package/lib/components/MultiSelect/index.d.ts +1 -1
- package/lib/components/NativeSelect/NativeSelect.d.ts +8 -229
- package/lib/components/NativeSelect/NativeSelect.types.d.ts +108 -0
- package/lib/components/NativeSelect/NativeSelect.vue.d.ts +22 -0
- package/lib/components/NativeSelect/NativeSelectChevron.vue.d.ts +3 -0
- package/lib/components/NativeSelect/index.d.ts +1 -1
- package/lib/components/NavLink/NavLink.d.ts +15 -213
- package/lib/components/NavLink/NavLink.types.d.ts +118 -0
- package/lib/components/NavLink/NavLink.vue.d.ts +17 -0
- package/lib/components/NavLink/index.d.ts +1 -1
- package/lib/components/Notification/Notification.d.ts +9 -149
- package/lib/components/Notification/Notification.types.d.ts +70 -0
- package/lib/components/Notification/Notification.vue.d.ts +17 -0
- package/lib/components/Notification/index.d.ts +1 -1
- package/lib/components/NumberFormatter/NumberFormatter.d.ts +17 -100
- package/lib/components/NumberFormatter/NumberFormatter.types.d.ts +27 -0
- package/lib/components/NumberFormatter/NumberFormatter.vue.d.ts +4 -0
- package/lib/components/NumberFormatter/format-number.d.ts +2 -0
- package/lib/components/NumberFormatter/index.d.ts +1 -1
- package/lib/components/NumberInput/NumberInput.d.ts +9 -445
- package/lib/components/NumberInput/NumberInput.types.d.ts +239 -0
- package/lib/components/NumberInput/NumberInput.vue.d.ts +29 -0
- package/lib/components/NumberInput/NumberInputChevron.d.ts +2 -14
- package/lib/components/NumberInput/NumberInputChevron.types.d.ts +6 -0
- package/lib/components/NumberInput/NumberInputChevron.vue.d.ts +4 -0
- package/lib/components/NumberInput/index.d.ts +2 -2
- package/lib/components/NumberInput/number-input-utils.d.ts +19 -0
- package/lib/components/OverflowList/OverflowList.d.ts +9 -114
- package/lib/components/OverflowList/OverflowList.types.d.ts +76 -0
- package/lib/components/OverflowList/OverflowList.vue.d.ts +26 -0
- package/lib/components/OverflowList/index.d.ts +1 -1
- package/lib/components/Overlay/Overlay.d.ts +13 -104
- package/lib/components/Overlay/Overlay.types.d.ts +81 -0
- package/lib/components/Overlay/Overlay.vue.d.ts +19 -0
- package/lib/components/Pagination/Pagination.d.ts +95 -699
- package/lib/components/Pagination/Pagination.icons.d.ts +6 -15
- package/lib/components/Pagination/Pagination.types.d.ts +81 -0
- package/lib/components/Pagination/Pagination.vue.d.ts +18 -0
- package/lib/components/Pagination/PaginationControl/PaginationControl.d.ts +9 -70
- package/lib/components/Pagination/PaginationControl/PaginationControl.types.d.ts +50 -0
- package/lib/components/Pagination/PaginationControl/PaginationControl.vue.d.ts +13 -0
- package/lib/components/Pagination/PaginationDots/PaginationDots.d.ts +7 -19
- package/lib/components/Pagination/PaginationDots/PaginationDots.types.d.ts +23 -0
- package/lib/components/Pagination/PaginationDots/PaginationDots.vue.d.ts +13 -0
- package/lib/components/Pagination/PaginationDotsIcon.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationEdges/PaginationEdge.vue.d.ts +27 -0
- package/lib/components/Pagination/PaginationEdges/PaginationEdges.d.ts +32 -100
- package/lib/components/Pagination/PaginationEdges/PaginationEdges.types.d.ts +36 -0
- package/lib/components/Pagination/PaginationEdges/PaginationFirst.vue.d.ts +11 -0
- package/lib/components/Pagination/PaginationEdges/PaginationLast.vue.d.ts +11 -0
- package/lib/components/Pagination/PaginationEdges/PaginationNext.vue.d.ts +11 -0
- package/lib/components/Pagination/PaginationEdges/PaginationPrevious.vue.d.ts +11 -0
- package/lib/components/Pagination/PaginationFirstIcon.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationIcon.types.d.ts +6 -0
- package/lib/components/Pagination/PaginationItems/PaginationItems.d.ts +3 -6
- package/lib/components/Pagination/PaginationItems/PaginationItems.types.d.ts +12 -0
- package/lib/components/Pagination/PaginationItems/PaginationItems.vue.d.ts +4 -0
- package/lib/components/Pagination/PaginationItems/PaginationItemsGroup.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationLabel/PaginationLabel.d.ts +6 -3
- package/lib/components/Pagination/PaginationLabel/PaginationLabel.types.d.ts +15 -0
- package/lib/components/Pagination/PaginationLabel/PaginationLabel.vue.d.ts +11 -0
- package/lib/components/Pagination/PaginationLastIcon.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationNextIcon.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationPreviousIcon.vue.d.ts +3 -0
- package/lib/components/Pagination/PaginationRoot/PaginationRoot.d.ts +40 -171
- package/lib/components/Pagination/PaginationRoot/PaginationRoot.types.d.ts +73 -0
- package/lib/components/Pagination/PaginationRoot/PaginationRoot.vue.d.ts +25 -0
- package/lib/components/Pagination/index.d.ts +6 -2
- package/lib/components/Paper/Paper.d.ts +13 -73
- package/lib/components/Paper/Paper.types.d.ts +48 -0
- package/lib/components/Paper/Paper.vue.d.ts +14 -0
- package/lib/components/PasswordInput/PasswordInput.d.ts +41 -326
- package/lib/components/PasswordInput/PasswordInput.types.d.ts +150 -0
- package/lib/components/PasswordInput/PasswordInput.vue.d.ts +27 -0
- package/lib/components/PasswordInput/PasswordToggleIcon.d.ts +3 -15
- package/lib/components/PasswordInput/PasswordToggleIcon.types.d.ts +9 -0
- package/lib/components/PasswordInput/PasswordToggleIcon.vue.d.ts +4 -0
- package/lib/components/PasswordInput/index.d.ts +2 -1
- package/lib/components/Pill/Pill.d.ts +12 -279
- package/lib/components/Pill/Pill.types.d.ts +66 -0
- package/lib/components/Pill/Pill.vue.d.ts +17 -0
- package/lib/components/Pill/PillGroup/PillGroup.context.d.ts +4 -0
- package/lib/components/Pill/PillGroup/PillGroup.d.ts +11 -77
- package/lib/components/Pill/PillGroup/PillGroup.types.d.ts +40 -0
- package/lib/components/Pill/PillGroup/PillGroup.vue.d.ts +12 -0
- package/lib/components/Pill/index.d.ts +3 -2
- package/lib/components/PillsInput/PillsInput.d.ts +11 -388
- package/lib/components/PillsInput/PillsInput.types.d.ts +99 -0
- package/lib/components/PillsInput/PillsInput.vue.d.ts +14 -0
- package/lib/components/PillsInput/PillsInputField/PillsInputField.d.ts +7 -98
- package/lib/components/PillsInput/PillsInputField/PillsInputField.types.d.ts +49 -0
- package/lib/components/PillsInput/PillsInputField/PillsInputField.vue.d.ts +12 -0
- package/lib/components/PillsInput/index.d.ts +2 -1
- package/lib/components/PinInput/PinInput.d.ts +12 -337
- package/lib/components/PinInput/PinInput.types.d.ts +137 -0
- package/lib/components/PinInput/PinInput.vue.d.ts +37 -0
- package/lib/components/PinInput/index.d.ts +1 -1
- package/lib/components/Popover/Popover.d.ts +122 -483
- package/lib/components/Popover/Popover.types.d.ts +234 -0
- package/lib/components/Popover/Popover.vue.d.ts +45 -0
- package/lib/components/Popover/PopoverContextMenu.vue.d.ts +11 -0
- package/lib/components/Popover/PopoverDropdown.vue.d.ts +11 -0
- package/lib/components/Popover/PopoverTarget.vue.d.ts +11 -0
- package/lib/components/Popover/index.d.ts +1 -1
- package/lib/components/Popover/popover-utils.d.ts +13 -0
- package/lib/components/Portal/OptionalPortal.d.ts +2 -35
- package/lib/components/Portal/OptionalPortal.types.d.ts +37 -0
- package/lib/components/Portal/OptionalPortal.vue.d.ts +11 -0
- package/lib/components/Portal/Portal.d.ts +16 -25
- package/lib/components/Portal/Portal.types.d.ts +29 -0
- package/lib/components/Portal/Portal.vue.d.ts +11 -0
- package/lib/components/Progress/Progress.context.d.ts +2 -0
- package/lib/components/Progress/Progress.d.ts +19 -446
- package/lib/components/Progress/Progress.types.d.ts +75 -0
- package/lib/components/Progress/Progress.vue.d.ts +6 -0
- package/lib/components/Progress/ProgressLabel/ProgressLabel.d.ts +8 -43
- package/lib/components/Progress/ProgressLabel/ProgressLabel.types.d.ts +30 -0
- package/lib/components/Progress/ProgressLabel/ProgressLabel.vue.d.ts +13 -0
- package/lib/components/Progress/ProgressRoot/ProgressRoot.d.ts +9 -99
- package/lib/components/Progress/ProgressRoot/ProgressRoot.types.d.ts +54 -0
- package/lib/components/Progress/ProgressRoot/ProgressRoot.vue.d.ts +13 -0
- package/lib/components/Progress/ProgressSection/ProgressSection.d.ts +8 -88
- package/lib/components/Progress/ProgressSection/ProgressSection.types.d.ts +56 -0
- package/lib/components/Progress/ProgressSection/ProgressSection.vue.d.ts +11 -0
- package/lib/components/Progress/index.d.ts +5 -2
- package/lib/components/Radio/Radio.d.ts +20 -740
- package/lib/components/Radio/Radio.types.d.ts +148 -0
- package/lib/components/Radio/Radio.vue.d.ts +37 -0
- package/lib/components/Radio/RadioCard/RadioCard.context.d.ts +5 -0
- package/lib/components/Radio/RadioCard/RadioCard.d.ts +10 -102
- package/lib/components/Radio/RadioCard/RadioCard.types.d.ts +54 -0
- package/lib/components/Radio/RadioCard/RadioCard.vue.d.ts +22 -0
- package/lib/components/Radio/RadioGroup/RadioGroup.context.d.ts +5 -0
- package/lib/components/Radio/RadioGroup/RadioGroup.d.ts +34 -157
- package/lib/components/Radio/RadioGroup/RadioGroup.types.d.ts +70 -0
- package/lib/components/Radio/RadioGroup/RadioGroup.vue.d.ts +17 -0
- package/lib/components/Radio/RadioIcon.d.ts +2 -3
- package/lib/components/Radio/RadioIcon.types.d.ts +3 -0
- package/lib/components/Radio/RadioIcon.vue.d.ts +3 -0
- package/lib/components/Radio/RadioIndicator/RadioIndicator.d.ts +10 -141
- package/lib/components/Radio/RadioIndicator/RadioIndicator.types.d.ts +71 -0
- package/lib/components/Radio/RadioIndicator/RadioIndicator.vue.d.ts +13 -0
- package/lib/components/Radio/index.d.ts +4 -4
- package/lib/components/Rating/Rating.d.ts +8 -197
- package/lib/components/Rating/Rating.types.d.ts +94 -0
- package/lib/components/Rating/Rating.vue.d.ts +31 -0
- package/lib/components/Rating/RatingItem/RatingItem.d.ts +7 -124
- package/lib/components/Rating/RatingItem/RatingItem.types.d.ts +44 -0
- package/lib/components/Rating/RatingItem/RatingItem.vue.d.ts +17 -0
- package/lib/components/Rating/StarSymbol/StarIcon.d.ts +2 -3
- package/lib/components/Rating/StarSymbol/StarIcon.types.d.ts +6 -0
- package/lib/components/Rating/StarSymbol/StarIcon.vue.d.ts +3 -0
- package/lib/components/Rating/StarSymbol/StarSymbol.d.ts +3 -14
- package/lib/components/Rating/StarSymbol/StarSymbol.types.d.ts +5 -0
- package/lib/components/Rating/StarSymbol/StarSymbol.vue.d.ts +4 -0
- package/lib/components/Rating/index.d.ts +3 -1
- package/lib/components/RingProgress/Curve/Curve.d.ts +3 -84
- package/lib/components/RingProgress/Curve/Curve.types.d.ts +28 -0
- package/lib/components/RingProgress/Curve/Curve.vue.d.ts +4 -0
- package/lib/components/RingProgress/RingProgress.d.ts +9 -148
- package/lib/components/RingProgress/RingProgress.types.d.ts +73 -0
- package/lib/components/RingProgress/RingProgress.vue.d.ts +32 -0
- package/lib/components/RingProgress/index.d.ts +1 -1
- package/lib/components/RollingNumber/DigitColumn.d.ts +3 -49
- package/lib/components/RollingNumber/DigitColumn.types.d.ts +17 -0
- package/lib/components/RollingNumber/DigitColumn.vue.d.ts +10 -0
- package/lib/components/RollingNumber/RollingNumber.d.ts +8 -172
- package/lib/components/RollingNumber/RollingNumber.types.d.ts +72 -0
- package/lib/components/RollingNumber/RollingNumber.vue.d.ts +15 -0
- package/lib/components/RollingNumber/index.d.ts +1 -1
- package/lib/components/ScrollArea/ScrollArea.d.ts +24 -505
- package/lib/components/ScrollArea/ScrollArea.props.types.d.ts +94 -0
- package/lib/components/ScrollArea/ScrollArea.vue.d.ts +39 -0
- package/lib/components/ScrollArea/ScrollAreaAutosize.vue.d.ts +11 -0
- package/lib/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.d.ts +2 -3
- package/lib/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.types.d.ts +6 -0
- package/lib/components/ScrollArea/ScrollAreaCorner/ScrollAreaCorner.vue.d.ts +3 -0
- package/lib/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.d.ts +7 -43
- package/lib/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.types.d.ts +40 -0
- package/lib/components/ScrollArea/ScrollAreaRoot/ScrollAreaRoot.vue.d.ts +16 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.d.ts +17 -24
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.types.d.ts +25 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbar.vue.d.ts +11 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.d.ts +20 -16
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollAreaScrollbarVisible.vue.d.ts +11 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.d.ts +31 -106
- package/lib/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.types.d.ts +40 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.vue.d.ts +15 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollbarX.d.ts +16 -79
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollbarX.vue.d.ts +12 -0
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollbarY.d.ts +16 -79
- package/lib/components/ScrollArea/ScrollAreaScrollbar/ScrollbarY.vue.d.ts +12 -0
- package/lib/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.d.ts +2 -3
- package/lib/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.types.d.ts +9 -0
- package/lib/components/ScrollArea/ScrollAreaThumb/ScrollAreaThumb.vue.d.ts +4 -0
- package/lib/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.d.ts +8 -25
- package/lib/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.types.d.ts +27 -0
- package/lib/components/ScrollArea/ScrollAreaViewport/ScrollAreaViewport.vue.d.ts +19 -0
- package/lib/components/ScrollArea/index.d.ts +1 -1
- package/lib/components/Scroller/Scroller.d.ts +9 -160
- package/lib/components/Scroller/Scroller.types.d.ts +50 -0
- package/lib/components/Scroller/Scroller.vue.d.ts +13 -0
- package/lib/components/Scroller/index.d.ts +1 -1
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +32 -211
- package/lib/components/SegmentedControl/SegmentedControl.types.d.ts +85 -0
- package/lib/components/SegmentedControl/SegmentedControl.vue.d.ts +11 -0
- package/lib/components/SegmentedControl/index.d.ts +1 -2
- package/lib/components/Select/Select.d.ts +73 -239
- package/lib/components/Select/Select.types.d.ts +178 -0
- package/lib/components/Select/Select.vue.d.ts +30 -0
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/SemiCircleProgress/SemiCircleProgress.d.ts +9 -137
- package/lib/components/SemiCircleProgress/SemiCircleProgress.types.d.ts +78 -0
- package/lib/components/SemiCircleProgress/SemiCircleProgress.vue.d.ts +13 -0
- package/lib/components/SemiCircleProgress/index.d.ts +1 -1
- package/lib/components/SimpleGrid/SimpleGrid.d.ts +11 -101
- package/lib/components/SimpleGrid/SimpleGrid.types.d.ts +59 -0
- package/lib/components/SimpleGrid/SimpleGrid.vue.d.ts +11 -0
- package/lib/components/SimpleGrid/SimpleGridContainerVariables.vue.d.ts +4 -0
- package/lib/components/SimpleGrid/SimpleGridMediaVariables.vue.d.ts +4 -0
- package/lib/components/SimpleGrid/SimpleGridVariables.d.ts +3 -107
- package/lib/components/SimpleGrid/simple-grid-variables.d.ts +22 -0
- package/lib/components/Skeleton/Skeleton.d.ts +8 -76
- package/lib/components/Skeleton/Skeleton.types.d.ts +56 -0
- package/lib/components/Skeleton/Skeleton.vue.d.ts +20 -0
- package/lib/components/Slider/Marks/Marks.d.ts +3 -77
- package/lib/components/Slider/Marks/Marks.types.d.ts +28 -0
- package/lib/components/Slider/Marks/Marks.vue.d.ts +17 -0
- package/lib/components/Slider/RangeSlider/RangeSlider.d.ts +13 -334
- package/lib/components/Slider/RangeSlider/RangeSlider.types.d.ts +77 -0
- package/lib/components/Slider/RangeSlider/RangeSlider.vue.d.ts +41 -0
- package/lib/components/Slider/Slider/Slider.d.ts +13 -323
- package/lib/components/Slider/Slider/Slider.types.d.ts +169 -0
- package/lib/components/Slider/Slider/Slider.vue.d.ts +39 -0
- package/lib/components/Slider/SliderRoot/SliderRoot.d.ts +7 -42
- package/lib/components/Slider/SliderRoot/SliderRoot.types.d.ts +37 -0
- package/lib/components/Slider/SliderRoot/SliderRoot.vue.d.ts +13 -0
- package/lib/components/Slider/Thumb/Thumb.d.ts +37 -133
- package/lib/components/Slider/Thumb/Thumb.types.d.ts +63 -0
- package/lib/components/Slider/Thumb/Thumb.vue.d.ts +30 -0
- package/lib/components/Slider/Track/Track.d.ts +17 -103
- package/lib/components/Slider/Track/Track.types.d.ts +43 -0
- package/lib/components/Slider/Track/Track.vue.d.ts +11 -0
- package/lib/components/Slider/index.d.ts +3 -3
- package/lib/components/Space/Space.d.ts +6 -14
- package/lib/components/Space/Space.types.d.ts +22 -0
- package/lib/components/Space/Space.vue.d.ts +16 -0
- package/lib/components/Splitter/GripHorizontalIcon.vue.d.ts +3 -0
- package/lib/components/Splitter/GripIcon.d.ts +3 -6
- package/lib/components/Splitter/GripIcon.types.d.ts +6 -0
- package/lib/components/Splitter/GripVerticalIcon.vue.d.ts +3 -0
- package/lib/components/Splitter/Splitter.d.ts +12 -451
- package/lib/components/Splitter/Splitter.types.d.ts +103 -0
- package/lib/components/Splitter/Splitter.vue.d.ts +50 -0
- package/lib/components/Splitter/SplitterPane/SplitterPane.d.ts +8 -109
- package/lib/components/Splitter/SplitterPane/SplitterPane.types.d.ts +46 -0
- package/lib/components/Splitter/SplitterPane/SplitterPane.vue.d.ts +13 -0
- package/lib/components/Splitter/index.d.ts +1 -1
- package/lib/components/Spoiler/Spoiler.d.ts +10 -140
- package/lib/components/Spoiler/Spoiler.types.d.ts +70 -0
- package/lib/components/Spoiler/Spoiler.vue.d.ts +22 -0
- package/lib/components/Spoiler/index.d.ts +2 -0
- package/lib/components/Stack/Stack.d.ts +8 -64
- package/lib/components/Stack/Stack.types.d.ts +38 -0
- package/lib/components/Stack/Stack.vue.d.ts +21 -0
- package/lib/components/Stepper/Stepper.d.ts +14 -541
- package/lib/components/Stepper/Stepper.types.d.ts +119 -0
- package/lib/components/Stepper/Stepper.vue.d.ts +34 -0
- package/lib/components/Stepper/StepperCompleted/StepperCompleted.d.ts +2 -1
- package/lib/components/Stepper/StepperCompleted/StepperCompleted.types.d.ts +1 -0
- package/lib/components/Stepper/StepperCompleted/StepperCompleted.vue.d.ts +3 -0
- package/lib/components/Stepper/StepperStep/StepperStep.d.ts +8 -200
- package/lib/components/Stepper/StepperStep/StepperStep.types.d.ts +92 -0
- package/lib/components/Stepper/StepperStep/StepperStep.vue.d.ts +13 -0
- package/lib/components/Stepper/index.d.ts +3 -3
- package/lib/components/Switch/Switch.d.ts +15 -567
- package/lib/components/Switch/Switch.types.d.ts +138 -0
- package/lib/components/Switch/Switch.vue.d.ts +36 -0
- package/lib/components/Switch/SwitchGroup/SwitchGroup.context.d.ts +5 -0
- package/lib/components/Switch/SwitchGroup/SwitchGroup.d.ts +34 -183
- package/lib/components/Switch/SwitchGroup/SwitchGroup.types.d.ts +78 -0
- package/lib/components/Switch/SwitchGroup/SwitchGroup.vue.d.ts +19 -0
- package/lib/components/Switch/index.d.ts +2 -2
- package/lib/components/Table/Table.components.d.ts +44 -577
- package/lib/components/Table/Table.d.ts +22 -1064
- package/lib/components/Table/Table.types.d.ts +130 -0
- package/lib/components/Table/Table.vue.d.ts +18 -0
- package/lib/components/Table/TableCaption.vue.d.ts +11 -0
- package/lib/components/Table/TableElement.types.d.ts +33 -0
- package/lib/components/Table/TableElement.vue.d.ts +31 -0
- package/lib/components/Table/TableScrollContainer.d.ts +12 -86
- package/lib/components/Table/TableScrollContainer.types.d.ts +38 -0
- package/lib/components/Table/TableScrollContainer.vue.d.ts +13 -0
- package/lib/components/Table/TableTbody.vue.d.ts +11 -0
- package/lib/components/Table/TableTd.vue.d.ts +11 -0
- package/lib/components/Table/TableTfoot.vue.d.ts +11 -0
- package/lib/components/Table/TableTh.vue.d.ts +11 -0
- package/lib/components/Table/TableThead.vue.d.ts +11 -0
- package/lib/components/Table/TableTr.vue.d.ts +11 -0
- package/lib/components/Table/index.d.ts +3 -2
- package/lib/components/TableOfContents/TableOfContents.d.ts +12 -160
- package/lib/components/TableOfContents/TableOfContents.types.d.ts +80 -0
- package/lib/components/TableOfContents/TableOfContents.vue.d.ts +7 -0
- package/lib/components/TableOfContents/index.d.ts +1 -2
- package/lib/components/Tabs/Tabs.d.ts +43 -534
- package/lib/components/Tabs/Tabs.types.d.ts +88 -0
- package/lib/components/Tabs/Tabs.vue.d.ts +32 -0
- package/lib/components/Tabs/TabsList/TabsList.d.ts +7 -54
- package/lib/components/Tabs/TabsList/TabsList.types.d.ts +39 -0
- package/lib/components/Tabs/TabsList/TabsList.vue.d.ts +13 -0
- package/lib/components/Tabs/TabsPanel/TabsPanel.d.ts +8 -52
- package/lib/components/Tabs/TabsPanel/TabsPanel.types.d.ts +36 -0
- package/lib/components/Tabs/TabsPanel/TabsPanel.vue.d.ts +13 -0
- package/lib/components/Tabs/TabsTab/TabsTab.d.ts +9 -119
- package/lib/components/Tabs/TabsTab/TabsTab.types.d.ts +59 -0
- package/lib/components/Tabs/TabsTab/TabsTab.vue.d.ts +19 -0
- package/lib/components/Tabs/index.d.ts +4 -4
- package/lib/components/TagsInput/TagsInput.d.ts +89 -194
- package/lib/components/TagsInput/TagsInput.types.d.ts +186 -0
- package/lib/components/TagsInput/TagsInput.vue.d.ts +35 -0
- package/lib/components/TagsInput/get-splitted-tags.d.ts +9 -0
- package/lib/components/TagsInput/index.d.ts +1 -1
- package/lib/components/Text/Text.d.ts +14 -159
- package/lib/components/Text/Text.types.d.ts +84 -0
- package/lib/components/Text/Text.vue.d.ts +12 -0
- package/lib/components/TextInput/TextInput.d.ts +33 -3
- package/lib/components/TextInput/TextInput.types.d.ts +13 -0
- package/lib/components/TextInput/TextInput.vue.d.ts +17 -0
- package/lib/components/TextInput/index.d.ts +1 -0
- package/lib/components/Textarea/Autosize.d.ts +2 -38
- package/lib/components/Textarea/Autosize.vue.d.ts +15 -0
- package/lib/components/Textarea/Textarea.d.ts +8 -75
- package/lib/components/Textarea/Textarea.types.d.ts +65 -0
- package/lib/components/Textarea/Textarea.vue.d.ts +19 -0
- package/lib/components/Textarea/autosize-utils.d.ts +17 -0
- package/lib/components/Textarea/index.d.ts +1 -1
- package/lib/components/ThemeIcon/ThemeIcon.d.ts +10 -85
- package/lib/components/ThemeIcon/ThemeIcon.types.d.ts +59 -0
- package/lib/components/ThemeIcon/ThemeIcon.vue.d.ts +14 -0
- package/lib/components/Timeline/Timeline.context.d.ts +1 -1
- package/lib/components/Timeline/Timeline.d.ts +14 -383
- package/lib/components/Timeline/Timeline.types.d.ts +74 -0
- package/lib/components/Timeline/Timeline.vue.d.ts +12 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.d.ts +8 -168
- package/lib/components/Timeline/TimelineItem/TimelineItem.types.d.ts +108 -0
- package/lib/components/Timeline/TimelineItem/TimelineItem.vue.d.ts +13 -0
- package/lib/components/Timeline/index.d.ts +2 -3
- package/lib/components/Title/Title.d.ts +8 -73
- package/lib/components/Title/Title.types.d.ts +37 -0
- package/lib/components/Title/Title.vue.d.ts +15 -0
- package/lib/components/Tooltip/Tooltip.d.ts +47 -360
- package/lib/components/Tooltip/Tooltip.types.d.ts +161 -5
- package/lib/components/Tooltip/Tooltip.vue.d.ts +51 -0
- package/lib/components/Tooltip/TooltipFloating/TooltipFloating.d.ts +2 -69
- package/lib/components/Tooltip/TooltipFloating/TooltipFloating.types.d.ts +88 -0
- package/lib/components/Tooltip/TooltipFloating/TooltipFloating.vue.d.ts +27 -0
- package/lib/components/Tooltip/TooltipGroup/TooltipGroup.context.d.ts +3 -0
- package/lib/components/Tooltip/TooltipGroup/TooltipGroup.d.ts +18 -35
- package/lib/components/Tooltip/TooltipGroup/TooltipGroup.types.d.ts +28 -0
- package/lib/components/Tooltip/TooltipGroup/TooltipGroup.vue.d.ts +11 -0
- package/lib/components/Tooltip/index.d.ts +3 -4
- package/lib/components/Transition/Transition.d.ts +38 -105
- package/lib/components/Transition/Transition.types.d.ts +36 -0
- package/lib/components/Transition/Transition.vue.d.ts +21 -0
- package/lib/components/Tree/FlatTreeNode.d.ts +2 -145
- package/lib/components/Tree/FlatTreeNode.vue.d.ts +64 -0
- package/lib/components/Tree/Tree.d.ts +9 -242
- package/lib/components/Tree/Tree.types.d.ts +154 -0
- package/lib/components/Tree/Tree.vue.d.ts +25 -0
- package/lib/components/Tree/TreeNode.d.ts +2 -2
- package/lib/components/Tree/TreeNode.vue.d.ts +58 -0
- package/lib/components/Tree/index.d.ts +1 -1
- package/lib/components/TreeSelect/TreeSelect.d.ts +75 -363
- package/lib/components/TreeSelect/TreeSelect.types.d.ts +164 -0
- package/lib/components/TreeSelect/TreeSelect.vue.d.ts +30 -0
- package/lib/components/TreeSelect/TreeSelectOption.vue.d.ts +36 -0
- package/lib/components/TreeSelect/index.d.ts +1 -1
- package/lib/components/TreeSelect/tree-select-utils.d.ts +32 -0
- package/lib/components/Typography/Typography.d.ts +6 -34
- package/lib/components/Typography/Typography.types.d.ts +11 -0
- package/lib/components/Typography/Typography.vue.d.ts +14 -0
- package/lib/components/Typography/index.d.ts +1 -0
- package/lib/components/UnstyledButton/UnstyledButton.d.ts +12 -79
- package/lib/components/UnstyledButton/UnstyledButton.types.d.ts +42 -0
- package/lib/components/UnstyledButton/UnstyledButton.vue.d.ts +13 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.d.ts +6 -43
- package/lib/components/VisuallyHidden/VisuallyHidden.types.d.ts +11 -0
- package/lib/components/VisuallyHidden/VisuallyHidden.vue.d.ts +14 -0
- package/lib/components/component-props.d.ts +7 -170
- package/lib/core/Box/Box.d.ts +25 -3
- package/lib/core/InlineStyles/InlineStyles.d.ts +2 -2
- package/lib/core/MantineProvider/Mantine.context.d.ts +2 -2
- package/lib/core/MantineProvider/MantineProvider.d.ts +19 -19
- package/lib/core/MantineProvider/MantineThemeProvider.d.ts +9 -9
- package/lib/core/MantineProvider/use-props.d.ts +14 -1
- package/lib/core/factory/create-factory.d.ts +3 -0
- package/lib/core/factory/create-polymorphic-component.d.ts +69 -0
- package/lib/core/factory/factory-payload.d.ts +73 -0
- package/lib/core/factory/factory-styles-api.d.ts +39 -0
- package/lib/core/factory/factory.d.ts +83 -23
- package/lib/core/factory/index.d.ts +10 -4
- package/lib/core/factory/polymorphic-factory.d.ts +32 -1
- package/lib/core/factory/use-forwarded-ref.d.ts +6 -34
- package/lib/core/renderable-node.d.ts +6 -1
- package/lib/core/styles-api/styles-api.types.d.ts +57 -6
- package/lib/core/utils/index.d.ts +1 -0
- package/lib/core/utils/omit-attrs.d.ts +7 -0
- package/lib/utils/Floating/FloatingArrow/FloatingArrow.d.ts +3 -55
- package/lib/utils/Floating/FloatingArrow/FloatingArrow.types.d.ts +24 -0
- package/lib/utils/Floating/FloatingArrow/FloatingArrow.vue.d.ts +4 -0
- package/lib/utils/InlineInput/InlineInput.d.ts +5 -5
- package/lib/utils/InputsGroupFieldset.d.ts +10 -3
- package/lib/utils/InputsGroupFieldset.types.d.ts +17 -0
- package/lib/utils/InputsGroupFieldset.vue.d.ts +11 -0
- package/lib/utils/use-slot-revision.d.ts +13 -0
- package/package.json +3 -3
- package/lib/core/factory/with-box-props.d.ts +0 -18
|
@@ -157,19 +157,19 @@ export declare const MantineProvider: import("vue").DefineComponent<import("vue"
|
|
|
157
157
|
colors?: {
|
|
158
158
|
[x: string & {}]: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
159
159
|
dark?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
160
|
-
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
161
|
-
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
162
|
-
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
163
|
-
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
164
|
-
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
165
|
-
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
166
160
|
blue?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
167
161
|
cyan?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
162
|
+
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
168
163
|
green?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
164
|
+
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
169
165
|
lime?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
170
|
-
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
171
166
|
orange?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
167
|
+
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
168
|
+
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
172
169
|
teal?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
170
|
+
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
171
|
+
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
172
|
+
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
173
173
|
} | undefined;
|
|
174
174
|
primaryShade?: import("./theme.types").MantineColorShade | {
|
|
175
175
|
light?: import("./theme.types").MantineColorShade | undefined;
|
|
@@ -184,7 +184,7 @@ export declare const MantineProvider: import("vue").DefineComponent<import("vue"
|
|
|
184
184
|
headings?: {
|
|
185
185
|
fontFamily?: string | undefined;
|
|
186
186
|
fontWeight?: string | undefined;
|
|
187
|
-
textWrap?: "
|
|
187
|
+
textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
|
|
188
188
|
sizes?: {
|
|
189
189
|
h1?: {
|
|
190
190
|
fontSize?: string | undefined;
|
|
@@ -357,7 +357,7 @@ export declare const MantineProvider: import("vue").DefineComponent<import("vue"
|
|
|
357
357
|
} | undefined;
|
|
358
358
|
};
|
|
359
359
|
defaultColorScheme: MantineColorScheme;
|
|
360
|
-
forceColorScheme: "
|
|
360
|
+
forceColorScheme: "dark" | "light";
|
|
361
361
|
cssVariablesSelector: string;
|
|
362
362
|
withCssVariables: boolean;
|
|
363
363
|
deduplicateCssVariables: boolean;
|
|
@@ -369,7 +369,7 @@ export declare const MantineProvider: import("vue").DefineComponent<import("vue"
|
|
|
369
369
|
withGlobalClasses: boolean;
|
|
370
370
|
stylesTransform: MantineStylesTransform;
|
|
371
371
|
deduplicateInlineStyles: boolean;
|
|
372
|
-
env: "
|
|
372
|
+
env: "test" | "default";
|
|
373
373
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
374
374
|
export declare const HeadlessMantineProvider: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
375
375
|
theme: {
|
|
@@ -401,19 +401,19 @@ export declare const HeadlessMantineProvider: import("vue").DefineComponent<impo
|
|
|
401
401
|
colors?: {
|
|
402
402
|
[x: string & {}]: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
403
403
|
dark?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
404
|
-
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
405
|
-
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
406
|
-
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
407
|
-
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
408
|
-
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
409
|
-
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
410
404
|
blue?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
411
405
|
cyan?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
406
|
+
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
412
407
|
green?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
408
|
+
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
413
409
|
lime?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
414
|
-
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
415
410
|
orange?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
411
|
+
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
412
|
+
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
416
413
|
teal?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
414
|
+
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
415
|
+
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
416
|
+
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
417
417
|
} | undefined;
|
|
418
418
|
primaryShade?: import("./theme.types").MantineColorShade | {
|
|
419
419
|
light?: import("./theme.types").MantineColorShade | undefined;
|
|
@@ -428,7 +428,7 @@ export declare const HeadlessMantineProvider: import("vue").DefineComponent<impo
|
|
|
428
428
|
headings?: {
|
|
429
429
|
fontFamily?: string | undefined;
|
|
430
430
|
fontWeight?: string | undefined;
|
|
431
|
-
textWrap?: "
|
|
431
|
+
textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
|
|
432
432
|
sizes?: {
|
|
433
433
|
h1?: {
|
|
434
434
|
fontSize?: string | undefined;
|
|
@@ -600,7 +600,7 @@ export declare const HeadlessMantineProvider: import("vue").DefineComponent<impo
|
|
|
600
600
|
[x: string]: any;
|
|
601
601
|
} | undefined;
|
|
602
602
|
};
|
|
603
|
-
env: "
|
|
603
|
+
env: "test" | "default";
|
|
604
604
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
605
605
|
export declare const MantineCssVariables: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
606
606
|
[key: string]: any;
|
|
@@ -23,6 +23,7 @@ export declare const MantineThemeProvider: import("vue").DefineComponent<import(
|
|
|
23
23
|
default: undefined;
|
|
24
24
|
};
|
|
25
25
|
}>> & Readonly<{}>, {
|
|
26
|
+
inherit: boolean;
|
|
26
27
|
theme: {
|
|
27
28
|
focusRing?: "auto" | "always" | "never" | undefined;
|
|
28
29
|
scale?: number | undefined;
|
|
@@ -32,19 +33,19 @@ export declare const MantineThemeProvider: import("vue").DefineComponent<import(
|
|
|
32
33
|
colors?: {
|
|
33
34
|
[x: string & {}]: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
34
35
|
dark?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
35
|
-
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
36
|
-
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
37
|
-
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
38
|
-
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
39
|
-
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
40
|
-
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
41
36
|
blue?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
42
37
|
cyan?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
38
|
+
gray?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
43
39
|
green?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
40
|
+
indigo?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
44
41
|
lime?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
45
|
-
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
46
42
|
orange?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
43
|
+
pink?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
44
|
+
red?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
47
45
|
teal?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
46
|
+
violet?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
47
|
+
yellow?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
48
|
+
grape?: readonly [(string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?, ...(string | undefined)[]] | undefined;
|
|
48
49
|
} | undefined;
|
|
49
50
|
primaryShade?: import("./theme.types").MantineColorShade | {
|
|
50
51
|
light?: import("./theme.types").MantineColorShade | undefined;
|
|
@@ -59,7 +60,7 @@ export declare const MantineThemeProvider: import("vue").DefineComponent<import(
|
|
|
59
60
|
headings?: {
|
|
60
61
|
fontFamily?: string | undefined;
|
|
61
62
|
fontWeight?: string | undefined;
|
|
62
|
-
textWrap?: "
|
|
63
|
+
textWrap?: "balance" | "nowrap" | "wrap" | "stable" | "pretty" | undefined;
|
|
63
64
|
sizes?: {
|
|
64
65
|
h1?: {
|
|
65
66
|
fontSize?: string | undefined;
|
|
@@ -231,5 +232,4 @@ export declare const MantineThemeProvider: import("vue").DefineComponent<import(
|
|
|
231
232
|
[x: string]: any;
|
|
232
233
|
} | undefined;
|
|
233
234
|
};
|
|
234
|
-
inherit: boolean;
|
|
235
235
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a component's props against the theme.
|
|
3
|
+
*
|
|
4
|
+
* Precedence, lowest to highest: `defaultProps` → `theme.components[name].defaultProps`
|
|
5
|
+
* → the props the consumer actually passed.
|
|
6
|
+
*
|
|
7
|
+
* `component` accepts several names so a component can inherit theme defaults from the
|
|
8
|
+
* components it composes, with later names winning. The input family relies on this:
|
|
9
|
+
* `Textarea` resolves `['Input', 'InputWrapper', 'Textarea']`, so a theme-level `Input`
|
|
10
|
+
* default reaches every input unless the specific component overrides it.
|
|
11
|
+
*
|
|
12
|
+
* A theme's `defaultProps` may also be a function of the theme.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useProps<Props extends Record<string, any>>(component: string | (string | undefined)[], defaultProps: Partial<Props> | null, props: Props): Props;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Component, IntrinsicElementAttributes, ReservedProps } from 'vue';
|
|
2
|
+
import type { DataAttributes, EmitsToProps } from './factory-payload';
|
|
3
|
+
import type { RootRefProps } from './factory';
|
|
4
|
+
/** Every value the `component` prop accepts: an intrinsic tag name or a Vue component. */
|
|
5
|
+
export type MantineElementType = keyof IntrinsicElementAttributes | Component;
|
|
6
|
+
/**
|
|
7
|
+
* Neutral element for the prop intersections in this module.
|
|
8
|
+
*
|
|
9
|
+
* `unknown` because `T & unknown` reduces to exactly `T`. Not `Record<string, never>`, which
|
|
10
|
+
* would intersect every prop down to `never`.
|
|
11
|
+
*/
|
|
12
|
+
export type EmptyProps = unknown;
|
|
13
|
+
/** Props contributed by the value passed to `component`. */
|
|
14
|
+
export type PropsOf<C> = C extends keyof IntrinsicElementAttributes ? IntrinsicElementAttributes[C] : C extends abstract new (...args: any[]) => {
|
|
15
|
+
$props: infer Props;
|
|
16
|
+
} ? Props : C extends (props: infer Props, ...args: any[]) => any ? Props : EmptyProps;
|
|
17
|
+
/**
|
|
18
|
+
* Lets a polymorphic component's payload and default root be recovered from its type alone,
|
|
19
|
+
* which TypeScript cannot otherwise do because it cannot read a type parameter's default.
|
|
20
|
+
*
|
|
21
|
+
* Without this, `PropsOf<typeof Button>` resolves at the constraint (`MantineElementType`),
|
|
22
|
+
* whose functional-component member infers props as `any`, collapsing the whole result to `any`
|
|
23
|
+
* and silently accepting every invalid prop. Never present at runtime.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const MANTINE_PAYLOAD: unique symbol;
|
|
28
|
+
export interface PolymorphicMarker<Payload, Default> {
|
|
29
|
+
/** @internal type-only, never assigned */
|
|
30
|
+
readonly [MANTINE_PAYLOAD]?: {
|
|
31
|
+
payload: Payload;
|
|
32
|
+
default: Default;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Public props of any component, polymorphic or not.
|
|
37
|
+
*
|
|
38
|
+
* Replaces `InstanceType<typeof Component>['$props']`, which cannot work for polymorphic
|
|
39
|
+
* components. Pass `Root` to resolve against a root other than the default.
|
|
40
|
+
*/
|
|
41
|
+
export type ComponentProps<C, Root = void> = C extends PolymorphicMarker<infer Payload, infer Default> ? Payload extends {
|
|
42
|
+
props: any;
|
|
43
|
+
emits?: infer Emits;
|
|
44
|
+
} ? // `RootRefProps` is part of the call signature (`PolymorphicProps`), so it belongs here
|
|
45
|
+
PolymorphicComponentProps<Root extends void ? Default : Root, Payload['props'] & EmitsToProps<Emits>> & RootRefProps<PolymorphicRef<Root extends void ? Default : Root>> : PropsOf<C> : C extends abstract new (...args: any[]) => {
|
|
46
|
+
$props: infer Props;
|
|
47
|
+
} ? Props : PropsOf<C>;
|
|
48
|
+
/** The DOM node the root resolves to: `HTMLAnchorElement` for `'a'`, `Element` otherwise. */
|
|
49
|
+
export type PolymorphicRef<C> = C extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[C] : Element;
|
|
50
|
+
/**
|
|
51
|
+
* Props of a polymorphic component for a given root `C`.
|
|
52
|
+
*
|
|
53
|
+
* `Props` is subtracted from the root's props, so a Mantine prop wins over a conflicting root
|
|
54
|
+
* prop of the same name. `ReservedProps` is added unconditionally, without which
|
|
55
|
+
* `<Button ref="el" />` would be rejected once `strictTemplates` is enabled.
|
|
56
|
+
*/
|
|
57
|
+
export type PolymorphicComponentProps<C, Props = EmptyProps> = Props & Omit<PropsOf<C>, keyof Props> & DataAttributes & ReservedProps & {
|
|
58
|
+
/**
|
|
59
|
+
* Root element or component rendered by this component.
|
|
60
|
+
*
|
|
61
|
+
* Accepts an intrinsic tag name (`component="a"`) or a Vue component
|
|
62
|
+
* (`:component="RouterLink"`). Props of the selected root are inferred and type-checked
|
|
63
|
+
* alongside the component's own props.
|
|
64
|
+
*/
|
|
65
|
+
component?: C;
|
|
66
|
+
};
|
|
67
|
+
/** Casts an existing implementation to a polymorphic component type. */
|
|
68
|
+
export declare function createPolymorphicComponent<ComponentDefaultType extends MantineElementType, Props, Statics = Record<string, never>>(component: unknown): (<C extends MantineElementType = ComponentDefaultType>(props: PolymorphicComponentProps<C, Props>) => unknown) & Statics;
|
|
69
|
+
export declare const polymorphic: typeof createPolymorphicComponent;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { IntrinsicElementAttributes, ReservedProps } from 'vue';
|
|
2
|
+
import type { EmptyProps, MantineElementType } from './create-polymorphic-component';
|
|
3
|
+
/** `data-*` attributes, which are always permitted alongside a component's own props. */
|
|
4
|
+
export type DataAttributes = Record<`data-${string}`, any>;
|
|
5
|
+
/** Describes the public types and metadata used to construct a factory component. */
|
|
6
|
+
export interface FactoryPayload {
|
|
7
|
+
/** The component's full public props interface, including `BoxProps` when supported. */
|
|
8
|
+
props: Record<string, any>;
|
|
9
|
+
/** Slots, in `defineSlots` shape: `{ default?: () => VNodeChild }`. */
|
|
10
|
+
slots?: Record<string, any>;
|
|
11
|
+
/**
|
|
12
|
+
* Emitted events, in either shape `defineEmits` accepts: `{ error: [event: Event] }` or
|
|
13
|
+
* `{ error: (event: Event) => void }`.
|
|
14
|
+
*
|
|
15
|
+
* The overloaded call-signature form is not supported -- TypeScript cannot map over
|
|
16
|
+
* overloads, so every event but the last would be silently dropped.
|
|
17
|
+
*/
|
|
18
|
+
emits?: Record<string, any>;
|
|
19
|
+
/** Members made available through `defineExpose`, reachable via a template `ref`. */
|
|
20
|
+
exposed?: Record<string, any>;
|
|
21
|
+
/**
|
|
22
|
+
* Extra context the Styles API resolvers receive as their third argument, for components whose
|
|
23
|
+
* classes or CSS variables depend on state rather than props alone
|
|
24
|
+
*/
|
|
25
|
+
ctx?: Record<string, any>;
|
|
26
|
+
/** The DOM node the component's root resolves to. */
|
|
27
|
+
ref?: any;
|
|
28
|
+
/**
|
|
29
|
+
* Intrinsic tag the root renders, for non-polymorphic components. Contributes that element's
|
|
30
|
+
* native attributes and event handlers.
|
|
31
|
+
*/
|
|
32
|
+
element?: keyof IntrinsicElementAttributes;
|
|
33
|
+
/** Union of Styles API selectors, for example `'root' | 'label'`. */
|
|
34
|
+
stylesNames?: string;
|
|
35
|
+
/** Maps each style name to the CSS variables set on it. */
|
|
36
|
+
vars?: Record<string, any>;
|
|
37
|
+
/** Union of supported `variant` values. */
|
|
38
|
+
variant?: string;
|
|
39
|
+
/** Compound components exposed as statics, for example `{ Group: typeof ButtonGroup }`. */
|
|
40
|
+
staticComponents?: Record<string, any>;
|
|
41
|
+
/** Marks a compound component, whose `extend` accepts only `defaultProps`. */
|
|
42
|
+
compound?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/** A payload for a polymorphic component, which additionally declares its default root. */
|
|
45
|
+
export interface PolymorphicFactoryPayload extends FactoryPayload {
|
|
46
|
+
/** Root rendered when `component` is not set. */
|
|
47
|
+
defaultComponent: MantineElementType;
|
|
48
|
+
/** DOM node the default root resolves to. */
|
|
49
|
+
defaultRef: any;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Turns a payload's `emits` into the `onEvent` props Vue exposes, handling both `defineEmits`
|
|
53
|
+
* shapes. `Capitalize` also yields the right `v-model` name, so `{ 'update:opened': [boolean] }`
|
|
54
|
+
* becomes `{ 'onUpdate:opened'?: … }`.
|
|
55
|
+
*/
|
|
56
|
+
export type EmitsToProps<Emits> = Emits extends object ? {
|
|
57
|
+
[Key in keyof Emits & string as `on${Capitalize<Key>}`]?: Emits[Key] extends any[] ? (...args: Emits[Key]) => void : Emits[Key];
|
|
58
|
+
} : EmptyProps;
|
|
59
|
+
/**
|
|
60
|
+
* Native attributes contributed by a payload's `element`.
|
|
61
|
+
*
|
|
62
|
+
* Anything the component already declares is subtracted, so its own `onChange` wins over the
|
|
63
|
+
* DOM's. Without the subtraction the two intersect into an uncallable signature.
|
|
64
|
+
*/
|
|
65
|
+
export type ElementAttributes<Element, Declared> = Element extends keyof IntrinsicElementAttributes ? Omit<IntrinsicElementAttributes[Element], keyof Declared> : EmptyProps;
|
|
66
|
+
/**
|
|
67
|
+
* The full public props of a non-polymorphic factory component.
|
|
68
|
+
*
|
|
69
|
+
* `DataAttributes` is part of the contract because `data-*` is valid on every element and Vue's
|
|
70
|
+
* `IntrinsicElementAttributes` does not model it. Without it, `:data-active="…"` on a factory
|
|
71
|
+
* component is rejected under `strictTemplates` even though the DOM accepts it.
|
|
72
|
+
*/
|
|
73
|
+
export type FactoryComponentProps<Payload extends FactoryPayload> = Payload['props'] & EmitsToProps<Payload['emits']> & ElementAttributes<Payload['element'], Payload['props'] & EmitsToProps<Payload['emits']>> & DataAttributes & ReservedProps;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { MantineTheme } from '../MantineProvider';
|
|
3
|
+
import type { FactoryPayload } from './factory-payload';
|
|
4
|
+
/** Any CSS custom property name. */
|
|
5
|
+
export type CssVariable = `--${string}`;
|
|
6
|
+
/** The style names a payload declares, or any string when it declares none. */
|
|
7
|
+
export type StylesNamesOf<Payload extends FactoryPayload> = Payload['stylesNames'] extends string ? Payload['stylesNames'] : string;
|
|
8
|
+
export type StylesRecord<StylesNames extends string, Value> = Partial<Record<StylesNames, Value>>;
|
|
9
|
+
/**
|
|
10
|
+
* A `classNames`/`styles` value keyed by the payload's style names.
|
|
11
|
+
*
|
|
12
|
+
* Compound components resolve to the static record only: they cannot take a function,
|
|
13
|
+
* because they are configured through their parent's Styles API rather than their own.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export type StylesApiRecord<Payload extends FactoryPayload, Value> = Payload['compound'] extends true ? StylesRecord<StylesNamesOf<Payload>, Value> : StylesRecord<StylesNamesOf<Payload>, Value> | ((theme: MantineTheme, props: Payload['props'], ctx: Record<string, any>) => StylesRecord<StylesNamesOf<Payload>, Value>);
|
|
17
|
+
export type FactoryClassNames<Payload extends FactoryPayload> = StylesApiRecord<Payload, string>;
|
|
18
|
+
export type FactoryStyles<Payload extends FactoryPayload> = StylesApiRecord<Payload, CSSProperties>;
|
|
19
|
+
/** Maps a payload's `vars` description onto the record a resolver must return. */
|
|
20
|
+
export type TransformVars<Vars> = {
|
|
21
|
+
[Key in keyof Vars]: Vars[Key] extends CssVariable ? Record<Vars[Key], string | undefined> : never;
|
|
22
|
+
};
|
|
23
|
+
export type PartialTransformVars<Vars> = {
|
|
24
|
+
[Key in keyof Vars]: Vars[Key] extends CssVariable ? Partial<Record<Vars[Key], string | undefined>> : never;
|
|
25
|
+
};
|
|
26
|
+
export type FactoryVarsResolver<Payload extends FactoryPayload> = (theme: MantineTheme, props: Payload['props'], ctx: Record<string, any>) => TransformVars<Payload['vars']>;
|
|
27
|
+
export type FactoryPartialVarsResolver<Payload extends FactoryPayload> = (theme: MantineTheme, props: Payload['props'], ctx: Record<string, any>) => PartialTransformVars<Payload['vars']>;
|
|
28
|
+
/**
|
|
29
|
+
* The `vars` prop stays resolver-only, matching upstream.
|
|
30
|
+
*
|
|
31
|
+
* `useStyles` would also accept a plain record, and `classNames`/`styles` do -- but adding the
|
|
32
|
+
* record form here means mapping `Payload['vars']` in a *union* member rather than in a function's
|
|
33
|
+
* return position. Return positions are evaluated lazily; a union member is not, so the components
|
|
34
|
+
* still on the legacy props-keyed form (`vars?: Vars<XProps>` declared inside `XProps`) become
|
|
35
|
+
* circular, and several others blow the instantiation depth limit.
|
|
36
|
+
*
|
|
37
|
+
* Callers needing an arbitrary custom property should bind it through `style`, which is where
|
|
38
|
+
* upstream's `__vars` escape hatch ends up anyway.
|
|
39
|
+
*/
|
|
@@ -1,28 +1,88 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { type Component, type DefineSetupFnComponent, type SlotsType } from 'vue';
|
|
2
|
+
import type { VueRefTarget } from '@mantine-vue/hooks';
|
|
3
|
+
import type { MantineThemeComponent } from '../MantineProvider';
|
|
4
|
+
import type { EmptyProps } from './create-polymorphic-component';
|
|
5
|
+
import type { DataAttributes, FactoryComponentProps, FactoryPayload } from './factory-payload';
|
|
6
|
+
import type { FactoryClassNames, FactoryPartialVarsResolver, FactoryStyles, FactoryVarsResolver, StylesNamesOf } from './factory-styles-api';
|
|
7
|
+
/**
|
|
8
|
+
* Receives the component's root DOM node, since a template `ref` on a component resolves to
|
|
9
|
+
* that component's instance and Vue offers no supported way to change it.
|
|
10
|
+
*
|
|
11
|
+
* Use the callback form in templates -- Vue unwraps refs when binding, so `:rootRef="el"` would
|
|
12
|
+
* pass the element rather than the ref object. A ref object works from `h()`. The node is also
|
|
13
|
+
* exposed as `rootElement`. See the polymorphic components guide.
|
|
14
|
+
*/
|
|
15
|
+
export type RootRefProp<Element> = VueRefTarget<Element>;
|
|
16
|
+
export interface RootRefProps<Element> {
|
|
17
|
+
/** Receives the component's root DOM node. See `RootRefProp`. */
|
|
18
|
+
rootRef?: RootRefProp<Element>;
|
|
11
19
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export interface FactoryBoxProps {
|
|
16
|
-
component?: string;
|
|
17
|
-
class?: any;
|
|
18
|
-
style?: any;
|
|
20
|
+
/** `extend` input for a compound component: only `defaultProps` */
|
|
21
|
+
export interface ExtendCompoundComponent<Payload extends FactoryPayload> {
|
|
22
|
+
defaultProps?: Partial<Payload['props']> & DataAttributes;
|
|
19
23
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
/** `extend` input for a root component: default props plus full Styles API configuration. */
|
|
25
|
+
export interface ExtendsRootComponent<Payload extends FactoryPayload> {
|
|
26
|
+
defaultProps?: Partial<Payload['props']> & DataAttributes & {
|
|
27
|
+
component?: any;
|
|
24
28
|
};
|
|
29
|
+
classNames?: FactoryClassNames<Payload>;
|
|
30
|
+
styles?: FactoryStyles<Payload>;
|
|
31
|
+
vars?: FactoryPartialVarsResolver<Payload>;
|
|
32
|
+
}
|
|
33
|
+
export type ExtendComponent<Payload extends FactoryPayload> = Payload['compound'] extends true ? ExtendCompoundComponent<Payload> : ExtendsRootComponent<Payload>;
|
|
34
|
+
export interface ThemeExtend<Payload extends FactoryPayload> {
|
|
35
|
+
/** Builds a `MantineProvider` theme entry for this component. */
|
|
36
|
+
extend: (input: ExtendComponent<Payload>) => MantineThemeComponent;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The component's CSS module classes, keyed by its style names. Resolves to `never` for
|
|
40
|
+
* components that declare no `stylesNames`, so the property cannot be misused.
|
|
41
|
+
*/
|
|
42
|
+
export type ComponentClasses<Payload extends FactoryPayload> = {
|
|
43
|
+
classes: Payload['stylesNames'] extends string ? Record<StylesNamesOf<Payload>, string> : never;
|
|
25
44
|
};
|
|
26
|
-
|
|
45
|
+
/** `varsResolver` is exposed only by components that declare CSS variables. */
|
|
46
|
+
export type ComponentVariablesResolver<Payload extends FactoryPayload> = Payload['vars'] extends Record<string, any> ? {
|
|
47
|
+
varsResolver: FactoryVarsResolver<Payload>;
|
|
48
|
+
} : EmptyProps;
|
|
49
|
+
/**
|
|
50
|
+
* Compound components spread onto the component as statics.
|
|
51
|
+
*
|
|
52
|
+
* Resolves to `EmptyProps` rather than `Record<string, never>` when a payload declares none --
|
|
53
|
+
* that record's index signature would make `Badge.Section` type-check on any component.
|
|
54
|
+
*/
|
|
55
|
+
export type StaticComponents<Input> = Input extends Record<string, any> ? Input : EmptyProps;
|
|
56
|
+
export interface FactoryComponentWithProps<Payload extends FactoryPayload> {
|
|
57
|
+
/**
|
|
58
|
+
* Returns a new component with `props` pre-applied. Props passed by the caller win over
|
|
59
|
+
* the fixed ones.
|
|
60
|
+
*/
|
|
61
|
+
withProps: (props: Partial<Payload['props']>) => MantineComponent<Payload>;
|
|
62
|
+
}
|
|
63
|
+
export type MantineComponentStaticProperties<Payload extends FactoryPayload> = ThemeExtend<Payload> & ComponentClasses<Payload> & ComponentVariablesResolver<Payload> & FactoryComponentWithProps<Payload> & StaticComponents<Payload['staticComponents']>;
|
|
64
|
+
type MantineComponentProps<Payload extends FactoryPayload> = FactoryComponentProps<Payload> & RootRefProps<Payload['ref']>;
|
|
65
|
+
type MantineComponentEmits<Payload extends FactoryPayload> = Payload['emits'] extends Record<string, any> ? Payload['emits'] : Record<never, never>;
|
|
66
|
+
type MantineComponentSlots<Payload extends FactoryPayload> = Payload['slots'] extends Record<string, any> ? Payload['slots'] : Record<never, never>;
|
|
67
|
+
type VueMantineComponent<Payload extends FactoryPayload> = DefineSetupFnComponent<MantineComponentProps<Payload>, MantineComponentEmits<Payload>, SlotsType<MantineComponentSlots<Payload>>>;
|
|
68
|
+
/** A factory component compatible with Vue's public instance and `h()` types. */
|
|
69
|
+
export type MantineComponent<Payload extends FactoryPayload> = VueMantineComponent<Payload> & {
|
|
70
|
+
new (...args: any[]): InstanceType<VueMantineComponent<Payload>> & (Payload['exposed'] extends Record<string, any> ? Payload['exposed'] : EmptyProps);
|
|
71
|
+
} & MantineComponentStaticProperties<Payload>;
|
|
72
|
+
export declare function identity<T>(value: T): T;
|
|
73
|
+
/**
|
|
74
|
+
* Wraps a component so caller props override a fixed set of props. The wrapper declares no props
|
|
75
|
+
* of its own, so callers' props arrive in `attrs` and are spread last -- that ordering is what
|
|
76
|
+
* gives them precedence.
|
|
77
|
+
*/
|
|
78
|
+
export declare function createWithProps(target: Component, statics: Record<string, any>): (fixedProps: Record<string, any>) => import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
79
|
[key: string]: any;
|
|
28
|
-
}>;
|
|
80
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
/** Assigns the shared static API onto a component implementation. */
|
|
82
|
+
export declare function attachStatics(ui: Component, statics: Record<string, any> | undefined): Component & Record<string, any>;
|
|
83
|
+
/** Attaches the Mantine static API to a component implementation. */
|
|
84
|
+
export declare function factory<Payload extends FactoryPayload>(ui: Component, statics?: Payload['staticComponents'] & {
|
|
85
|
+
classes?: Record<string, string>;
|
|
86
|
+
varsResolver?: unknown;
|
|
87
|
+
}): MantineComponent<Payload>;
|
|
88
|
+
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type { Factory, PolymorphicFactory } from './create-factory';
|
|
2
|
+
export { createPolymorphicComponent, polymorphic } from './create-polymorphic-component';
|
|
3
|
+
export type { ComponentProps, EmptyProps, MantineElementType, PolymorphicComponentProps, PolymorphicMarker, PolymorphicRef, PropsOf, } from './create-polymorphic-component';
|
|
4
|
+
export { createWithProps, factory, identity } from './factory';
|
|
5
|
+
export type { ComponentClasses, ComponentVariablesResolver, ExtendComponent, ExtendCompoundComponent, ExtendsRootComponent, FactoryComponentWithProps, MantineComponent, MantineComponentStaticProperties, RootRefProp, RootRefProps, StaticComponents, ThemeExtend, } from './factory';
|
|
6
|
+
export type { DataAttributes, ElementAttributes, EmitsToProps, FactoryComponentProps, FactoryPayload, PolymorphicFactoryPayload, } from './factory-payload';
|
|
7
|
+
export type { CssVariable, FactoryClassNames, FactoryPartialVarsResolver, FactoryStyles, FactoryVarsResolver, PartialTransformVars, StylesApiRecord, StylesNamesOf, StylesRecord, TransformVars, } from './factory-styles-api';
|
|
8
|
+
export { polymorphicFactory } from './polymorphic-factory';
|
|
9
|
+
export type { MantinePolymorphicComponent, PolymorphicComponentWithProps, PolymorphicProps, } from './polymorphic-factory';
|
|
10
|
+
export { useForwardedRef } from './use-forwarded-ref';
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Component, EmitFn } from 'vue';
|
|
2
|
+
import type { MantineElementType, PolymorphicComponentProps, PolymorphicMarker, PolymorphicRef } from './create-polymorphic-component';
|
|
3
|
+
import { type ComponentClasses, type ComponentVariablesResolver, type RootRefProps, type StaticComponents, type ThemeExtend } from './factory';
|
|
4
|
+
import type { EmitsToProps, PolymorphicFactoryPayload } from './factory-payload';
|
|
5
|
+
/**
|
|
6
|
+
* Full props of a polymorphic component for a given root `C`: the component's own props,
|
|
7
|
+
* the root's props, emit handlers and the typed `rootRef`.
|
|
8
|
+
*/
|
|
9
|
+
export type PolymorphicProps<C, Payload extends PolymorphicFactoryPayload> = PolymorphicComponentProps<C, Payload['props'] & EmitsToProps<Payload['emits']>> & RootRefProps<PolymorphicRef<C>>;
|
|
10
|
+
export interface PolymorphicComponentWithProps<Payload extends PolymorphicFactoryPayload> {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a new component with props pre-applied, keeping polymorphic inference.
|
|
13
|
+
*
|
|
14
|
+
* A `component` fixed here becomes the new component's default root, so
|
|
15
|
+
* `Button.withProps({ component: RouterLink })` yields a component that accepts
|
|
16
|
+
* `RouterLink`'s props. Props passed by the caller win over the fixed ones.
|
|
17
|
+
*/
|
|
18
|
+
withProps: <Fixed extends MantineElementType = Payload['defaultComponent']>(fixedProps: PolymorphicProps<Fixed, Payload>) => MantinePolymorphicComponent<Payload, Fixed>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Generic function component used to infer the root from `component`. Slots and Vue's `EmitFn`
|
|
22
|
+
* are declared on the context parameter to remain compatible with `FunctionalComponent`.
|
|
23
|
+
*/
|
|
24
|
+
export type MantinePolymorphicComponent<Payload extends PolymorphicFactoryPayload, Default extends MantineElementType = Payload['defaultComponent']> = (<C extends MantineElementType = Default>(props: PolymorphicProps<C, Payload>, ctx?: {
|
|
25
|
+
slots: Payload['slots'];
|
|
26
|
+
emit: EmitFn<Payload['emits']>;
|
|
27
|
+
}) => unknown) & PolymorphicMarker<Payload, Default> & ThemeExtend<Payload> & ComponentClasses<Payload> & ComponentVariablesResolver<Payload> & PolymorphicComponentWithProps<Payload> & StaticComponents<Payload['staticComponents']>;
|
|
28
|
+
/** Attaches the Mantine static API to a polymorphic component implementation. */
|
|
29
|
+
export declare function polymorphicFactory<Payload extends PolymorphicFactoryPayload>(ui: Component, statics?: Payload['staticComponents'] & {
|
|
30
|
+
classes?: Record<string, string>;
|
|
31
|
+
varsResolver?: unknown;
|
|
32
|
+
}): MantinePolymorphicComponent<Payload>;
|
|
@@ -1,39 +1,11 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* public instance proxy, never to the DOM node it renders.
|
|
3
|
+
* Re-targets the `ref` a parent attached to this component so it points at the rendered DOM node
|
|
4
|
+
* instead of the component instance.
|
|
6
5
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* It relies on a documented-but-internal detail of Vue 3: whenever a `ref`
|
|
13
|
-
* prop is a string, a `Ref`, or a function, Vue normalizes `vnode.ref` into
|
|
14
|
-
* an `{ i, r, k, f }` descriptor before the component ever sees it, where `r`
|
|
15
|
-
* is the original value the parent passed (see `normalizeRef` in
|
|
16
|
-
* `@vue/runtime-core`'s `vnode.ts`). This shape has been stable across Vue
|
|
17
|
-
* 3.x, but it isn't public API, so treat this as a best-effort forwarder --
|
|
18
|
-
* if a future Vue version changes it, this degrades to a no-op (the ref
|
|
19
|
-
* simply won't forward), not a crash.
|
|
20
|
-
*
|
|
21
|
-
* Usage inside a component's `setup()`, once `elementRef` is bound to the
|
|
22
|
-
* component's real root element:
|
|
23
|
-
*
|
|
24
|
-
* ```ts
|
|
25
|
-
* setup(props, { attrs }) {
|
|
26
|
-
* const elementRef = ref<HTMLDivElement | null>(null)
|
|
27
|
-
* useForwardedRef(elementRef)
|
|
28
|
-
* return () => h('div', { ...attrs, ref: elementRef })
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* For multi-layer components (e.g. `Button` renders `UnstyledButton`, which
|
|
33
|
-
* renders `Box`, which renders the native element), every layer needs to
|
|
34
|
-
* call `useForwardedRef` and attach its own `elementRef` to whatever it
|
|
35
|
-
* renders -- each layer intercepts the ref passed by its parent and
|
|
36
|
-
* re-targets it one level down, the same way React's `forwardRef` calls are
|
|
37
|
-
* threaded explicitly through each wrapper.
|
|
6
|
+
* @deprecated Reads `vnode.ref`'s normalized `{ i, r, k, f }` shape, which is a Vue internal --
|
|
7
|
+
* best-effort, and degrades to a no-op rather than crashing if Vue changes it. Use the factory's
|
|
8
|
+
* `rootRef` prop or the exposed `rootElement` instead. Kept only for components not yet migrated
|
|
9
|
+
* to a factory payload.
|
|
38
10
|
*/
|
|
39
11
|
export declare function useForwardedRef<T extends Element>(elementRef: Ref<T | null>): void;
|
|
@@ -5,6 +5,11 @@ export interface SectionSlots {
|
|
|
5
5
|
leftSection?: () => VNodeChild;
|
|
6
6
|
rightSection?: () => VNodeChild;
|
|
7
7
|
}
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Resolves content for props that accept both a scoped slot and a plain prop.
|
|
10
|
+
* Precedence: slot > prop > undefined. A slot passed by the parent always wins,
|
|
11
|
+
* even if a prop is also set, so consumers can override built-in defaults from
|
|
12
|
+
* their template without fighting prop-driven content.
|
|
13
|
+
*/
|
|
9
14
|
export declare function resolveNode(prop: MantineNode | undefined, slot?: () => VNodeChild): VNodeChild;
|
|
10
15
|
export declare function hasNode(node: VNodeChild): boolean;
|